var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var X='split;length;G;U;startsWith;set;hE;/videoplayback;r;Hl;signatureCipher;get;prototype;unshift;;n;pop;1970-01-01T07:45:05.000+07:45;path;1;s;http://local;,""/;j;undefined;mn;slice;cmo;/;url;redirector.googlevideo.com;a1.googlevideo.com;scheme;push;join;splice;rr;/api/manifest;1970-01-01T05:30:30.000+05:30;oG;youtube.player.web_20250721_08_RC00;T;fromCharCode;clone;indexOf;assign;Ra;,;1970-01-01T10:15:08.000+10:15;&;index.m3u8;=;/initplayback;:;cmo=;1970-01-01T11:15:39.000+11:15;cmo=pf;forEach;,}"()}(;://;Ei;\\.a1\\.googlevideo\\.com$;/file/index.m3u8;\\.googlevideo\\.com$;match;fallback_count;replace;%3D;https://local;0;cmo=td;sp;local;//;fvip;cL;toString;Untrusted URL;---;file;reverse;?;1969-12-31T21:00:02.000-03:00;rr?[1-9].*\\.c\\.youtube\\.com$;playerfallback;1970-01-01T00:59:56.000+01:00;XR;pow;www.youtube.com;w18PggyGkZgw54BvOH-_w8_;throw'.split(";"), dI,q6_,TI1,gI,Y62,UHn,yf,bND,hY,Xg1,Hg,Qf,MH,cg,JY7,sQn,k2,Pg,$HN,Wg,g2f,u_,DX,Fjf,fN,z7,i_,mj,l_,NIf,vg,Yc,RnY,yYX,hnD,Nx,HNg,QQY,xc,MDf,cYH,HR,jQ7,aXQ,LB,AY_,wL,pgQ,ZND,CB,OND,n26,rYI,tDn,vR,db,BIf,KjH,eY,gb,G7D,H2,Ql,M$,c2,EN,jY,P_Y,aT,Az,ph,Wjg,u1I,ON,DHN,B2,GX,wb,fh,zX,iw,wgn,fX2,IT,SY,mf,znN,iN_,IXX,mHX,lXI,v2,oT,dt,qX,TP,ev,UD,dxH,Jn,$S,gt,Fk,NX,xS,yY,qI6,hn,HZ,cZ,YIX,e77,Uxf,ED,ay,An,OD,nn,tn,BZ,NLN,R7D,xxf,yE2,Kn,h72,GP,Ln,kS,HB6,PZ,Qsj,cEI,DG,fn,Iy,Sv,l4,anH,jsg,ncf,ZBf,tjD,VY,TO,XE,GlN, kl7,LqQ,sM,g_,PQI,$E,yp,oy,CQQ,Wq_,cB,MQ,vZ,u_N,A4,Zv,pT,Dxj,nT,wRn,t4,BB,KT,GO,LT,kE,PB,CT,uY,zO,iY,SV,z7D,InQ,iBj,mxf,SIg,qq,TI,YQ,vcj,e0,ocD,XQ,J0,$Q,d$j,qNg,eiN,TbH,U$D,sT7,gv,JzQ,bhX,FQ,Nq,$$2,Rc,g9Y,xQ,Nb7,FfQ,RiD,x$g,QC,Mq,yz7,hiI,Hh6,cz,Ew,QT1,jTj,j0,amI,Azj,rz6,ZV,n96,p2f,Bb1,Lf_,np,t0,Kp,Bz,kXg,GI,Lp,kQ,Cp,u$,DV,fp,w22,zI,fm_,Ic,vz,m$j,dY,Ti,eE,SN_,Yj,lmD,v92,US,qb,bl,Xe,o9f,JA,gY,dXn,Fe,Nb,R4,YDg,cE,eSf,UXg,bn2,XZ_,Mb,QX,xj,qDj,TtY,Jnj,$XX,gS6,Fng,a4,AA,p$,Ntn,n$,tA,BE,K$,RSQ,ynI,L$,hSX, ul,C$,ESf,wY,DY,aGX,pZ6,il,f$,ZnH,I4,mT,SE,zi,vE,ll,VX,o4,es,OnN,d2,Tg,Uy,nSI,bD,rn6,X2,JI,F2,NA,Rl,sy,g2,$J,yw,tvY,hI,BtH,HV,GPn,Qw,LnH,al,YJ,AI,p2,Zc,P4n,Oy,n2,tI,BV,K2,Gg,L2,Wn6,kJ,C46,PV,WV,C2,Dc,uD,w2,f2,zg,iD,Il,uk1,wZQ,Ss,fGj,zS2,in6,vV,ol,gz,mX7,Fj,lG6,NV,oS1,Rb,xY,yu,VvN,h3,dQg,H0,qMn,T_Q,Qu,YM_,MV,c0,Et,eu2,ab,A3,bT6,Ot,sr2,UQH,ng,t3,B0,FZX,$Q_,kY,wz,N_1,xQ6,y42,fg,zU,Ib,m3,S8,lL,v0,Qr1,MV1,c4D,jr2,avg,A4_,Vu,dQ,pB_,qj,ZTD,OT7,r42,GO7,T3,LZ7,kOH,PYD,WZn,CYY,Ub,uE6,Xm,wB_,$f,gQ,zu_,Fm,Nj, Rq,iT_,Iv1,hq,HK,cK,Eb,SMj,lv6,vE1,Ob,Z7,p5,oEY,VV1,dqN,n5,rQ,tq,Tv_,kf,PK,ekN,UqY,bpn,WK,C5,Xz1,J0Q,uB,scf,$qD,gQ6,FA6,z3,wQ,iB,Iq,SG,NvX,Rkg,xqY,lB,vK,y01,oq,hk2,HpY,Qc7,V6,M0X,dD,q8,c07,EQn,cAD,Ejg,j4g,aY_,e9,UR,bp,Jy,Z$Y,sR,$t,O$H,pEQ,Xc,njX,gD,Fc,N8,xt,RO,rA7,tE_,BYH,M8,Gin,c5,ki6,Pl7,WT1,ClX,ueQ,Dbf,wEn,fY1,aO,Ay,pF,i$j,z1N,IYY,mbn,OR,SS1,nF,lY1,vj6,rD,ty,B5,oj6,G1,LF,VE2,kt,P5,W5,CF,up,Dl,wD,fF,dA1,qyf,T2I,YyH,z1,eZN,b2Y,UA1,IO,mv,JI7,XVX,gJX,RZ1,N2j,S9,xAY,yII,hZI,Ql6,H2I,MsQ,lp,cIf,EJn,oO, jlN,acQ,AIn,pVn,Vg,Z26,dS,O2N,q5,Ts,rIX,Y3,tsn,eI,Ur,B2f,Kg_,b3,JD,Lg6,sr,Ggn,kg7,PDH,Wg2,u2g,$3,DAX,N5,RL,fcN,zZf,mAj,SyI,x3,yc,hD,H3,Qc,M5,c3,Er,jI,aL,AD,pJ,ZU,VsQ,oJD,dVj,TzI,qt7,eRg,vJQ,YtI,lcI,Or,nJ,bgH,X0N,J3Y,P3,W3,CJ,rS,$Vn,u3,UVQ,F37,NzI,gYg,DU,wS,fJ,zs,RRI,sbI,xVY,i3,y3I,hRf,Hgg,Qb6,M86,jb2,aLj,A3f,p07,IL,mt,Zgn,Og2,t81,BzY,SI,v3,GUX,oL,l3,kUY,L3_,PLI,W3g,CLH,dq,qS,DVH,w07,fLn,zR2,igN,ILH,mVj,Stn,lL1,vYf,Ym,e$,UE,bm,XP,JS,oYn,qbQ,TQn,Yb2,Uj6,ex_,b5N,gq,FP,XK2,Jqg,sqD,NS,RB,xm,y1,hS,HP,Q1, MS,$jg,EE,Fb7,aB,NQY,Rxf,AS,pb,ZQ,nb,OE,xjf,hx6,rq,ob,EEg,Lb,H5_,Qqn,km,MGj,Gx,Ef6,cq_,Kb,PP,WP,jqg,a7N,AqX,pKI,Cb,Z5Q,um,djI,V8j,DQ,wq,zx,im,rqg,IB,m4,lm,tGN,BQ6,vP,PBj,TB,G3Q,k3I,d1,V1,g1,F6,Wbn,x1,CBj,y7,hK,umN,wKf,zxj,ZZ,nK,SbX,l7I,vfN,r1,qRI,cd,I72,YR6,d8Y,ofj,VG1,eD7,TDX,Bd,LK,bFf,X51,JyH,sOn,$8_,Pd,gtf,CK,Fv_,x8f,yy_,uZ,HFg,M97,QO_,cyg,w1,iZ,lZ,o_,V7,de,q0,TA,al_,Ayg,p56,YH,e_,vd,Uq,bj,XT,ZFN,Vc,Jf,OFQ,$H,t91,ge,FT,Kv_,BDf,G1j,Lvn,k1Y,N0,PpX,WvI,Cpn,R2,xH,D82,zDg,iFD,ym,llI,SRN,vtQ,otN,V9Y, hf,d56,Ilf,HJ,qr6,TS6,Qm,e46,U5g,bJf,X3j,JDD,cJ,sL7,$5I,g3D,Ft1,x5I,NSn,Eq,j_,a2,Af,pi,Z_,Oq,ni,h4f,tf,re,HJg,Ki,cD6,BJ,E3N,jLf,OJ2,aUn,ADQ,p3n,ZJH,GA,Li,kH,n32,PJ,WJ,Ci,uj,D_,we,GsD,rDg,I2,Kt_,m6,BSX,ij,fi,tIN,zA,lj,ksH,o2,vJ,P3X,WtI,C3I,YM,eA,bc,w3H,UC,sC,fU7,$M,uz_,IU6,m5f,Srj,NK,R1,xM,lUI,y5,h_,Hh,Q5,v3Y,MK,ch,EC,o37,VIf,jA,dSN,flf,Tqg,YEf,eKn,US1,XPY,qE_,JSI,gm2,A_,Z6,NqQ,RK6,xSD,yS1,Hbj,rW,n9,QBI,hKI,jBY,Em_,t_,K9,AS_,Bh,pPf,L9,Zb1,kM,Wh,C9,ObX,nm1,SA,rS1,vh,t$7,BqI,bM,K4Y,L4g,Xr,kx1,PmD,wPX, W4D,g9,Fr,Ng,xG,yy,mSH,hx,H7,Qy,lQ1,EA,vmY,omn,jp,dLY,Ax,pv,Zg,OA,qfj,nv,tx,B7,Kv,GR,T1g,YfY,eFD,kG,P7,W7,Cv,uM,Dg,UL2,bKg,Xd2,JKf,s_2,$LQ,w9,g1X,lM,FWg,N17,RFn,v7,Vy,dw,qv,eW,Us,bF,yKQ,$5,gw,FM,hFf,HKY,Nv,Q_X,M4j,x5,OKN,n1g,rKI,yH,t4n,B12,LW2,Hq,PZ1,kB1,WWI,u6j,DL7,cq,Es,wdX,jW,aE,A1,ps,ZA,Os,ns,rw,t1,Bq,Ks,G2,Ls,k5,fZ7,zFY,iKD,Wq,ww,IZ7,IE,mR,SW,lF,vq,VH,d7,v1j,q4,Tt,YA,V4H,o1f,mL2,bb,U3,Yqf,Xq,yB,N4,hd,HL,U0g,M4,s26,XJY,Jf7,gHN,yfN,F61,RJQ,x0Q,eJ1,E3,cL,Hi6,aD,Ad,pZ,Q2Y,BL,M_6,KZ,Gt,LZ,PL,cfQ, CZ,ub,EH1,Dq,w7,a_f,ib,m9,Se,lb,vL,oD,VB,d8,qs,Ty,pJ7,YO,b5,Ud,Oi_,Bej,rf_,t_1,K61,GAj,kAI,PjD,L6n,Cj2,sd,$O,Ns,uTY,D0I,FH,RY,f__,zJ7,Sqn,m0n,Hu,Qi,Ms,cu,Ed,vH7,oHg,r8,tB,V_2,dK7,qCI,kO,Pu,Wu,TW2,YC6,UK_,Xhj,w8,J_2,i5,fW,SX,l5,oY,s1I,U2,bR,X8,Jr,$7,gO,Nw,RN7,xKX,x7,y_I,hNN,Hj,H9Q,Q16,Qt,Mw,MAn,c_g,j1Y,aJ,A_I,phN,E2,Z9j,O9f,r_f,nM6,O2,a66,BWf,KE1,Ga,Bj,GhH,LEI,L7,k7,khj,PcI,C7,WEH,Cc1,uO2,DKf,za,whD,f61,zN7,i9_,I6g,mKn,SCD,l6Q,IJ,vMj,SF,VAj,dg6,qAN,T96,YAX,lR,TN,Ug2,Jx7,YL,sM2,gGI,e6H,F$_,N9Q,R6_, bvf,X7j,vj,oJ,qz,$gQ,dM,Vt,xgg,yx1,h6_,HvX,QMD,MpQ,AxD,cxn,JL,sg,gM,Ovf,tp7,rx2,$L,RR,B97,hL,K$f,L$2,Eg,GRQ,z66,kRj,fgg,p4,ivX,SAX,Zd,AL,IgX,mg1,lg7,n4,oG6,VpQ,dvH,qsD,TwH,Ysn,eYH,vGD,bsN,Xq2,J1g,$vX,sEg,FRH,K4,Nwf,GN,L4,kL,RY6,xvD,C4,uI,hYg,y11,Dd,Hs1,MW6,E5D,c1Q,jEN,pqN,aA6,Yy,by,Uu,ZsI,ea,XZ,J$,$y,g4,OsY,N9,r1I,h$,yF,QF,M9,ci,Eu,tW6,aC,pC,BwQ,Ou,r4,t$,KRQ,G2X,LR2,k26,Bi,GT,PF1,LC,ky,Pi,CFg,Wi,CC,uMg,D5,zT,fC,w4,iy,IC,fAN,lAN,o56,Ssg,mvf,v5H,ly,VF,T77,VW_,d41,q3g,wq_,gAH,sL,$4H,RB7,sDY,Sa,$z,Yz, Xn,F9D,qh,isg,zYY,IA1,oC,Jd7,R$,MeD,xz,EAQ,jD2,aq2,ht,AdD,pLf,ZZI,nA_,rdI,Mh,B77,ca,K9I,GtH,ktD,PbD,W9g,jn,CbN,D4Y,a$,wLD,At,p1,qw,S3X,dsf,Ba,T81,Usj,Gp,Xuf,JBN,sYD,md,I$,$sQ,f1,nGj,Dz,zp,wi,L1,TW,qP,ex,bE,F2g,XA,sx,$P,N8g,RT1,NP,yBf,hTj,HWN,hi,QYn,MXj,cBH,EO1,jYX,asg,AB7,Hk,puf,Q9,ck,ZWj,OWN,nOn,rBI,tXD,Ex,jx,B8H,K2D,GyN,L2n,kyD,P5_,W26,C5I,Zy,Ox,nM,uHn,rx,Dsf,Bk,fs6,wu_,GW,LM,kP,Pk,zTf,Wk,CM,iWj,IsI,uE,Dy,vO2,msg,lsN,SdI,wx,fM,zW,oO_,VX2,dwN,iE,TO6,Uw7,eG_,Ih,mr,Sx,lE,vk,V9,ds,qY,Tc,Yo,eC,b7H,Xj_, Jr6,UP,b2,X$,Jm,$o,F$,g7_,$wf,Ru,FYQ,xo,yZ,hm,HG,QZ,EP,jC,au,Am,pG,Z0,OP,nG,xw2,rs,tm,BG,yr1,H7f,ko,QJ6,PG,WG,E7Q,jJg,aPY,pjg,O7X,zc,n7j,Iu,i2,BOI,KY_,GaD,SC,l2,kaY,ou,VZ,dc,q3,WY1,TY,Yh,el,CRY,UG,PR7,b9,XK,DwD,u87,JU,sG,$h,FK,Ra,fPn,zGg,ya,hU,Qa,M3,i7Q,Hm,S27,lPQ,v7D,o71,VFj,dzY,qg6,EG,cm,mwI,e2_,jl,b4N,XWf,OG,JL6,AU,pU,sRD,nU,gLg,NMD,rc,tU,R26,Bm,yLX,KU,EL1,MT_,h2j,QRn,H4N,LU,kh,Pm,Wm,CU,u9,DO,fU,adX,Z4_,Ia,K3D,mM,O4Q,rL6,l9,d5,vm,Va,oa,KLg,BMg,tT6,GN1,qt,LL2,CIg,Tq,e2,DzX,Uv,bz,XJ,JV,wWf,fd7,$X, g5,FJ,z2n,i4D,Re,H6,QA,Mt,c6,Ev,j2,Id2,ae,AV,po,ZS,Ov,no,r5,mz7,Sg2,tV,w5,fo,zq,iz,Ie,ld7,vLj,mP,oe,d9N,quf,VA,dE,ba,Yu1,sn,$U,eW6,N1,U9j,XiY,bCH,J$D,sC1,$9f,gyX,FIX,N41,x9f,RWI,y$f,QCH,c$N,HC2,Ey2,jC1,A$H,xU,yK,ZC6,pig,HD,QK,M1,ny6,cD,En,jo,taQ,B4D,aw,r$_,Ab,LIQ,p3,Zh,On,n3,rE,tb,BD,K3,Gm,L3,kU,PD,WD,C3,ua,Dh,wE,f3,zm,ia,Iw,m0,So,la,vD,ow,VK,dJ,q_,Te,Yg,et,UH,b7,Xb,Js,sH,$g,gJ,Fb,N_,RV,xg,yq,hs,H4,Qq,M_,c4,EH,jt,aV,As,pm,Z3,OH,nm,rJ,ts,B4,Km,Ge,Lm,kg,P4,W4,Cm,u7,D3,wJ,fm,i7,IV,PyQ,m5,S,St,ze,l7, v4,oV,Cyg,dp,D96,Vq,wi2,Tn,f5_,eh,qE,U5,bG,XX,s5,iCI,I52,m9_,Su_,HA,Qz,Rj,ME,vyn,oy1,Va_,dhg,zWX,qL6,Jo,Ti2,YLf,E5,Zp,jh,gp,emj,$v,cA,aj,O5,b17,FX,NE,pu,Ao,Xaj,nu,rp,to,BA,Jtf,Ku,Gn,Lu,kv,PA,s$2,$h1,Fdg,Nij,uG,Dp,xh7,wp,Q$2,ctg,j$_,azQ,zn,pan,Z1f,vA,O1Y,oj,Vz,dX,qo,TS,Yu,nz7,tnI,BiI,rtD,Kd2,Gp7,XI,J8,$u,FI,No,R5,Ld_,xu,kpH,yT,h8,s0,Mo,cp,E0,jP,PnX,QT,CnH,a5,unD,Dh_,A8,waj,pw,Zb,fzQ,zmI,O0,i1Y,Iz7,nw,mh6,SLf,lz7,vz_,rX,t8,ozn,VnH,Bp,Kw,GS,dP_,Lw,ku,Pp,Wp,qx1,Cw,uO,TxN,Db,YxI,wX,esf,UPg,bMI,Xk7,Jig, shg,fw,$PI,gP_,Frn,zS,Nx_,iO,Rs_,I5,xP2,ma,yiN,hs6,SP,dP,HMN,qI,TL,YV,e7,Qh6,UJ,bW,Xg,Mxj,ciD,sJ,$V,jhn,gP,ayg,AiI,EPQ,pk1,ZMf,OMf,NI,nPD,RI,yb,hQ,ri7,HH,Qb,cH,txf,EJ,j7,BxD,AQ,OJ,pe,BH,Ke,Kr7,GL,GW7,kV,PH,WH,LrX,uW,kWX,wP,zL,iW,rP,II,m1,S7,PEN,lW,vH,oI,Wr1,Vb,dC,qF,T5,Yx,e1,bN,XD,Je,sX,CEn,uAN,DPX,NF,$x,Rp,xx,wkN,fyD,zsX,yQ,he,Hl,iM_,Iy6,FD,mP2,SxH,QQ,ly2,MF,cl,j1,ap,Ae,pk,Z2,nk,rC,Bl,Kk,G5,Lk,te,Vx7,dYn,Pl,Wl,Ck,qPH,D2,YPn,wC,fk,evN,z5,Ip,S1,UY1,mi,lN,vl,op,bGQ,qB,Jm_,suQ,$Yf,YK,Tu,go1,FVD,Ns7, ed,xY7,uN,Rvg,ymH,U_,hvI,bu,HGN,XF,Quf,MC7,cm7,EoH,juj,JP,AmN,a06,s_,FF,pGX,NB,ZGg,R0,OG_,noI,xK,rmn,tC1,BsN,KVf,yj,GcQ,hP,kc1,Qj,MB,WVI,P2N,C2X,u$I,DYI,E_,jd,a0,wGX,f0n,zv2,iGf,I0D,mY6,SPn,l01,vof,oo_,pd,ZD,VC2,d3f,O_,nd,qGD,rU,tP,Kd,TcY,Gu,Ld,kK,YG2,Pn,eUD,Wn,U3N,Cd,bUD,XmN,uu,JUn,saY,$3_,DD,wU,fd,zu,iu,ghg,FM6,I0,ml,Sd,Ncn,lu,vn,o0,Vj,dG,RUY,x37,qm,T8,yU7,Yb,e5,UO,bV,gzn,hUH,HUY,XY,Qa_,Ml1,cU7,JR,sO,$b,gG,FY,Nm,RF,EO,j5,aF,AR,Ehn,jaX,BY,KS,AU2,G8,DJ,kb,z8,tlX,kYf,BcX,P9D,C9_,uKY,WMg,D3X,wmI,fO2, Yq,IO6,lOn,SGX,oh7,VlD,dtX,XC,JC,T5f,YvN,X6n,s7,JV6,epg,$q,gN,FC,N6,$tn,N5Q,gXD,yVN,je_,EX1,hpj,aSn,xq,QeH,Hoj,Zo1,rV6,nXQ,Gqn,t21,yE,hC,Czg,M6,uJI,mt_,IS2,ion,zpY,w6N,vXf,lSY,fSX,TE2,qnY,Ynn,AC,b3n,erX,U1H,DtQ,XDH,Jb_,c_,ji,V2_,oX1,d12,swH,E7,Svg,gUI,NEI,x1D,hr2,Mon,cbg,jwf,ah2,pDf,Abj,tog,O3n,Z3Y,BE7,L0Y,kmf,Pa_,W0X,kq,U7,D1N,CaD,C6,wN,f6,zr1,i3g,fhg,zb,Ihj,iv,Ix,eP,mo,iUN,Si,lv,v_,m1D,Snf,ox,lhI,vUX,oUf,VE,dg,q7,TD,YC,eN,UT,bq,X4,Voj,d_n,JH,qHX,sT,gU,$C,gg,eoX,TJ7,F4,U__,bm1,X4g,N7,YHH,Rm,Jsf, xC,sVg,$_n,vh7,ggX,yI,U0,Cu,p6,F5Y,NJY,HN,WPQ,H_,Roj,P_,W_,O7,Zw,Rx,rN,H3Q,EUj,n6,LPg,K0I,x_Q,AV7,M2j,QI,wDH,bv,ho7,ys_,seX,QwH,Hmj,Gmf,Gb,kqn,Pzj,OoQ,yb6,RrY,xtn,FPg,bo1,Utn,qvQ,$1Q,cVI,nU6,B5j,KP6,B_,K6,tC,rbH,F0n,MtX,QV1,M7,cN,ET,jN,am,AH,csI,OT,n0,rg,BN,K0,Eg7,tH,GD,L0,jVX,kC,PN,WN,uq,AsD,p4Y,D4,wg,f0,zD,iq,Im,mx,SN,rs6,vN,tt6,lq,BJN,Om2,ng1,K5D,om,VI,Ge2,L5j,dj,ke_,dO,W5X,P76,ubY,w4I,f36,D_6,I3I,m_Y,vg6,VtH,dE2,og2,JF,$e,so,q5X,Tp7,eOI,Y5g,bt,UE6,buf,XAn,JoX,XL,FX2,Npf,ROX,gv6,$EN,sjj,xE6,gj, SHH,yoN,l32,hON,Hu7,cog,Qjg,FL,MhQ,ap_,EvQ,jj_,pAN,AoN,ZuN,OuI,Rg,thn,nv2,BpN,roI,KXg,Gn6,LXI,knI,PG_,WX1,CG7,uX7,DE_,wAH,fpY,zO6,xe,IpQ,mE6,S52,iu7,lp2,ovN,yR,hF,VhD,do7,HI,QR,q07,TXn,Y0D,elf,cI,UoH,bwQ,jK,ag,J8f,s5D,$oN,NX1,pY,nY,tF,RlY,BI,KY,GG,Hw7,MP6,Q5I,EuN,tPD,abj,wj,ke,c8j,hlY,y86,xoj,DW,PI,ut,SK,lt,GS6,vI,og,mp,Wa6,La_,kSf,COf,VR,d0,Do2,Tz,Yk,eL,UK,b8,X0,Ju,wpX,fb6,sK,$k,F0,iwj,IbN,g0,moQ,vun,ou2,Nn,VPD,yL,dI_,hu,QL,qJ2,Ht,Mn,TPD,EK,eIN,UIg,a8,Au,r0,XH6,ZT,tu,Kj,JQX,Lj,nj,Bt,sIn,kk,$In,Pt, gV1,pj,OK,beI,Gz,Wt,F16,NP2,Cj,RIn,u8,DT,w0,fj,xIg,i8,zz,I8,mU,yQX,hI_,SL,l8,vt,o8,VL,HeD,dT,qG,QIj,M7N,TE,Yw,eu,EV7,cQ1,U$,jIf,aBj,AQY,bP,pHI,Ze6,OeH,nVI,rQD,Xo,Jl,s$,$w,t7j,BPj,Fo,K1D,NG,Rd,GLN,L17,xw,kLQ,PWX,DIX,wHQ,W1Y,CWY,ugn,hl,Hb,Q8,MG,fBD,zIH,ieH,IBH,E$,lBI,ju,oV2,dFf,V7j,O$,Ze,TCI,YXn,e0Q,UF1,ny,bkY,tl,Bb,Xl6,spD,$F2,GE,Wb,R0H,nuX,WI,yeY,h0g,HkQ,QpD,M17,LY,Ly,De,wT,jpY,a22,AeN,fy,nxH,plH,Zk7,t1D,BCX,zE,Kif,rej,G51,iP,Id,mF,LiD,k5g,Su,lP,PND,vb,Wig,od,Cy,TH,CN_,r8N,j5H,Y8,eJ,be,Xv,Jj,s4,$8, U4,Nd,DF_,x8,f2f,yU,ikg,z0H,wln,I2g,mFI,SX6,Md,l2f,vx_,V1D,cx,Ka2,E4,q_2,Y_I,fY,ecf,UB7,CY,A8D,Zw7,OwI,dB1,a9,Aj,ZN,bdf,XnQ,JPn,s0I,$BY,gKN,Fl_,xB1,yPf,RcY,hc7,Hd_,Q0j,Mdf,O4,cP7,tj,EKQ,j0_,aDD,Bx,AP2,GH,LO,k8,Px,Wx,pn_,CO,ue,ZdI,OdX,DN,w6,fO,zH,ie,I9,rP1,nKH,mz,tdf,KlY,SJ,Gug,BUI,Rn,FW,xl,hJ,HT,Hx,Ll2,fD6,yz,Ni,Em,mB7,lD_,TF,Zi,qi,Om,tJ,oKH,gn,BT,TG1,KI,GF,YO_,eEH,Um_,bSj,LI,XY1,JRX,kl,sFn,REY,NG6,$mX,Fun,gbD,PT,xm2,WT,yRX,hEj,QF6,M5H,cR7,Eb2,ZS7,fI,zF,rRY,iS,In,t5H,G81,LuX,k8H,PV6,m8,SZ,lS,vT,Wug, uY_,DmQ,bx,vbY,iSY,IJD,V51,Xx,d6I,TNQ,q77,Y7H,sB,Fx,eyf,Jw,NR,Rf,U6Q,X_j,Hr,cr,pt,nt,cCj,Eq1,GC,Kt,kp,Pr,jxj,p_I,ACD,Z6f,Ct,Wr,O6_,rCj,tij,KoD,wd,BN7,GbY,Loj,zC,ix,Pvn,hw,Du,NN6,b6g,hyY,of,Lt,nqn,bH,Zu,J7,sF,lwg,oqX,vqN,OB,rd,Vi7,gm,FG,qTj,NC,R6,TgY,tw,x4,awj,h7,w_n,HU,gqg,$61,JC1,Q2,efY,cU,Ng6,FxX,x7N,yHI,a6,pV,Z$,A7,nV,rm,hfQ,t7,Qmn,BU,cHf,LV,MNH,k4,PU,AHj,WU,O0Y,nC6,D$,rHY,KxD,dR,Tk,eq,Xp,GD7,JM,sc,Nf,Rz,xT,yD,LxH,hM,Hs,Cq1,QD,Mf,u47,D7H,cs,Ec,wN2,f42,zfY,i07,jq,az,I4j,m7Q,STI,Oc,nR,Bs,KR,l4f, vCj,Gk,LR,kT,Ps,oC2,VNg,Ws,de_,qo2,CR,YoQ,TjQ,eH1,ui,bYI,Uef,XIg,Dx,wR,JFg,$eD,ge1,fR,zk,ii,Fp1,RHY,Iz,xeI,Sq,yFg,hHj,mH,li,vs,oz,MKf,EeY,HY_,cFg,jg1,QgH,aWI,AFg,VD,pI2,OYf,tKn,KpY,BjD,Xs,bk,$I,Lpf,gK,Fs,NO,Ptj,R3,Wp_,kG1,xI,De7,yh,hk,wIX,HX,fWn,zE7,lJ2,iYg,zHY,meD,IWX,Soj,Qh,MO,cX,Ej,lWN,VKI,Ak,pz,Za,qK6,dnj,j6,T0D,YKf,ej6,bjI,Oj,xnf,cu_,Kz,EkN,qO,aT2,Auj,pt2,Zj1,OjY,Lz,nkI,kI,PX,WX,ruH,Da,tL_,B0f,wK,fz,KUQ,Gz1,LUI,kzY,P86,zM,uk,WUg,C87,ik,Dnn,wt7,fTN,I3,zjX,ijQ,ITN,mn1,SKQ,lTf,vk6,ok2,VLn,dGN,mD, TTI,S6,e86,Y$Q,byg,UGQ,JlQ,Vh,q$2,lk,df,sdY,$GX,qM,gwD,T0,Y_,eM,Uz,bs,FFH,Xt,NTN,sz,HyD,clf,Ew7,jd_,ae1,Ft,Alg,MuQ,h8n,pbn,$_,Zyj,nwI,J5,gf,xGf,ylY,NM,rl2,tuX,Qdj,R8Q,BTN,x_,KFI,yx,h5,GE2,Ho,PPX,LFH,kEY,Qx,WFj,MM,co,Ez,jM,CP6,uog,DGj,ao,fe7,z82,A5,iyH,pP,Z9,Ie6,mGg,S$1,lej,vwn,owf,Y4Q,ddj,nej,nP,UdQ,bOQ,q4I,T6X,Vu7,Bo,g8D,t5,rf,ehH,N66,$d2,s9Q,Jj2,XxN,G0,Rhn,dK,LP,k_,Po,xd1,Wo,yjf,CP,hh7,sj,HOI,us,YI,Uj,ZYQ,fP,is,cj_,E87,Io,SM,z0,wf,ls,D9,Q97,MJH,vo,j9Q,aNg,o3,Xb1,TM,oo,Ajn,mh,pxH,ZOX,OON,n82,Vx, dZ,rjf,tJj,B61,KzQ,GHN,Oyg,BX,T$,YW,qy,kHI,Ctf,uL2,eB,Pen,Wz7,CeD,uvn,UY,Ddj,bo,wxg,zhY,Xw,iOX,INj,$W,md6,sY,BM,lN_,S4Q,VJH,o8_,diD,qmf,v8g,KH,TnH,G$,YmQ,Ui6,eqX,LH,u0N,bID,XT2,JJX,snQ,$i_,F8D,NnY,Rq2,xin,yJj,gl1,kW,oeN,PM,Qn1,WM,HIj,MZX,cJg,veH,a3,ElY,jnI,uo,rJ7,nlX,io,tZn,OIf,L82,kF6,PS2,W8I,CSf,uWI,Di_,wT_,fi_,zq6,iIN,Ii7,miX,Smn,SB,CH,vlI,ol6,I7,dRf,lig,mc,qBY,Tdf,URg,JwH,btj,vM,sf2,o7,YBH,lo,Ve,eVD,qZ,FJ6,RVj,Ndj,xRj,gp6,ywj,hVQ,HtD,QfX,MHg,Epn,jf6,cwg,AwD,Ztg,prD,tH1,np2,auD,OtH,BdN,rwQ,KJ_, GC2,LJn,WJj,Pxj,kC_,T6,Cxn,uxQ,DRg,wrj,fu2,it_,mRI,SB2,luX,vpf,opD,YN,VH_,dCQ,TmI,YFD,Xf,UCN,sV,XUj,J7H,s62,$CY,F7H,g4f,xC_,y7Y,hX6,$N,HV_,NmN,RXI,MfH,c7I,E47,j6_,a$H,A7_,vX,pUf,ZVY,OV_,r71,n4N,tfH,K7H,GJH,Bmf,dk,gZ,kJH,PHf,W7D,iV2,DC1,wUn,f$I,I$6,SFX,FzI,Ff,uG7,CH1,mCH,Jk,zX1,Oz,e6,XrQ,df2,VfY,qcD,TRN,e9N,Ufg,Q6j,R7,Fw,v4_,bR6,o4j,s7I,JW,$yj,fN2,$RY,l$D,Ny,xN,yo,Fc7,hp,NZY,RQD,xyQ,yWn,hQ_,Q72,MB6,aMD,cWf,j7f,AW1,Qo,nW2,ZH7,OH6,BZ1,Kc1,G$f,MZ,LcN,H8,k$7,tBI,pM_,c8,Po1,EWg,WcI,EV,uwn,CoY,wMj,fMX,zQj, DyY,jO,myn,IM2,vWX,lMD,SY6,oW2,VBf,ai,dZX,qVg,YVj,e5Q,Tk6,UZQ,$Zn,X82,JpD,siI,gNI,F_D,Nkj,xZf,R5f,yp7,h5f,Ap,HEf,Qi2,cpN,MOH,EN_,jiD,Apf,p86,OEI,rpN,ZEX,tOg,Bk6,K_2,aKD,G62,nN2,ZK,L_H,k66,PC2,W_Q,nE,ufn,CCn,DZQ,w8Q,fKH,IK2,z52,lKI,rk,iEQ,vNN,tp,TFI,oNH,KE,G6,Y82,B8,eaD,LE,X$2,bcj,daN,q8Q,JG_,sZ_,$aI,VOI,gsj,kN,FBD,Ua1,bVH,OV,Raj,xaY,yGQ,ha6,HcN,QZ1,MRN,cGn,Esg,jZf,AG1,p$D,ZcI,atN,Oc7,ns7,rG2,tR7,BFN,KBn,kQ6,LBD,GQ7,Pf2,CE,oPf,WBf,CfX,uC,uaD,DaI,wk,zaY,icI,fE,maD,S8H,ItH,ftg,z6,DK,w$7,m_,iC,lt7,SO, Ii,dcN,Yif,UcY,baj,Jc7,osY,eAg,sNg,VRf,$c_,grQ,FS2,dF,lC,xc7,yc2,NVX,oi,Ha_,QNQ,TV1,qi_,hAH,MzY,Xcn,RAj,vsf,qa,TQ,Ys,ccg,eR,ZaI,afN,OaN,Acg,jNf,nrQ,ErY,BVD,rc2,U8,KSX,LSX,P0N,WSQ,DcX,s8,wcQ,C0_,Vo,iaI,IfD,RZ,VZY,bf,mcI,Si1,vrj,lf2,orI,zA2,gF,Vzj,dlg,qaD,YaD,Tr6,L7Y,$s,e$_,bqD,UlQ,Jg6,X9D,kV1,$lf,sW7,Fa,Xa,gBI,yk,FG_,Nr1,R$Q,xln,yg6,xs,uif,gWN,v8,h$j,hG,Hq1,QWn,Mgn,cg1,EBQ,jWj,H$,Qk,p9_,Zqj,Oq_,aIg,AgQ,Ma,Br1,rgD,tg1,KGN,c$,GZ_,LGX,kZf,E8,Pg_,CgN,uyH,DlD,jR,WGY,aZ,AG,w9f,fIN,z$j,iqN,II7,mlH,San,O8, pc,Zt,lI7,nc,vB2,oBI,VgH,qkI,dN1,Lc,Ykj,et2,TlY,UN1,ks,bAQ,P$,XFN,W$,JZI,sk6,FN_,xNN,$Nf,Nl1,Cc,gng,Rt1,yZ1,htY,HAN,Qk7,Dt,Mw1,zQ,wF,cZj,IZ,mB,jk1,akI,lf,v$,AZg,SR,pFY,oZ,OAf,ZA1,dV,qc,TV,twn,nnX,rZ1,Yr,BlX,kjn,GjX,KNN,LNQ,ez,WND,wFg,fk6,Ui,zt_,Cr7,iA6,b0,u3_,SkN,Xi,Jc,lk2,vnn,onI,Vwn,dUI,gV,YeY,ebI,UU7,Fi,Ta_,JaY,$r,Nc,RN,qeH,giN,$Un,QV,FKQ,Rb_,yaf,Na7,Mc,hc,Ei,Hc,xUf,cc,hbf,jz,HlQ,QUg,Mkn,aN,Ac,caN,Eig,jUD,ajn,Aa2,p1H,ZlY,raD,Oln,tkX,BaH,LKD,krg,fj1,kr,IjY,lj1,SeX,mU6,DUY,w1j,P6j,C6D,zbI,Pc,Wc, oi_,I6,EC_,Vk6,u0,wV,dkN,qWD,WK6,ilY,YWQ,ez6,UkI,fa,vc,Xef,JT_,sP2,oN,$k7,FON,g$j,NB1,VV,dr,Rz6,hzf,Hrf,YB,yT2,QPj,My_,xkN,bg,cT2,E$n,Ua,jPQ,ar_,ATg,peD,Or_,Zrj,ty2,BBN,n$n,G_I,LOD,rTf,sa,$B,k_Y,CU2,gr,WOn,PUY,uUH,weD,Dkg,frQ,Fy,zzY,irD,Ir7,mk1,SW1,lr2,v$1,VyD,o$D,dJD,qU_,TAX,YUf,eMI,b87,RW,Nl,xB,XyD,JXj,UJH,NA2,RM7,xJ7,H8I,hMH,yXn,QS_,MrH,yr,hg,cXQ,E01,jSg,aF7,pyN,Z8X,Qr,O8n,H9,c9,AX_,Ea,n0_,rXQ,trQ,BAD,KyI,jg,Gon,LyY,Wyf,aW,CKD,PK2,Ag,pq,ZI,DJ6,wy1,fFH,uu7,i8D,zM2,IF6,Oa,mJ7,SUQ,v0X,dpf,lFf,o0Y, nq,qQf,YQf,eeQ,bf_,XS1,rr,tg,JN_,T$7,gdN,$p_,sKY,B9,Kq,N$6,Fkf,GZ,Lq,kB,Re1,P9,xp6,yND,heQ,Hf_,W9,QK_,Cq,MQ6,ug,cN7,DI,wr,EdY,fq,jKX,zZ,ig,ANQ,OfN,ndn,aoD,rN_,KkY,GwD,LkQ,B$_,tQY,PJn,kw6,WkN,Dp7,Sg,foY,wSD,CJY,u5N,ze_,ifQ,lg,v9,Io7,mpf,SQn,lof,vd7,odg,d21,qhj,sX6,ewN,U2H,Ty6,gFX,Yn,Uk,y27,hw6,JZ,H_D,sk,QXj,Fs1,Tj,F3,gl,br,c2D,EF7,NN,aRj,pwQ,A2I,Rk,X3,qN,jXQ,$n,NyX,MmQ,O_I,oW,xn,nFj,r2_,ew,RwH,yW,hZ,tmn,HF,QW,MN,ByY,Ks7,Ls1,k9Y,G96,cF,PX6,Ek,jw,Wsj,CX1,uBY,D2g,wwj,fR2,i_7,zwn,AZ,ak,IRX,ShD,m2H,pA, Zk,lRQ,oFg,VmN,Ok,vFn,dD7,qZN,YZX,nA,T31,e_6,UD2,bQH,tZ,BF,J97,XCj,st_,KA,Gj,g6D,$DX,FCH,R_n,N3Q,xDg,kn,y9N,h__,WF,HQ6,MUH,Qt7,ur,c9n,E6Y,jtH,A9j,pC7,ZQN,aHD,OQQ,n61,r9j,tU1,B3_,KCX,G4j,LC6,k42,fA,PT_,WCX,CT6,DDg,iQ2,fH7,udg,Ik,wCY,ir,z_N,mN,mD1,IHY,Sw,lH1,v6j,o66,bEX,VW,BgI,vF,da,ok,Tr,VUj,Yi,eL1,Ur6,bDQ,JO6,XQ_,sv2,$rn,ga2,NHQ,RLN,xrN,Fmj,EaN,jvn,cO6,aE6,pQf,OD_,naf,rO1,Ja,ZDn,AOn,yOg,se,BH1,KmX,tcY,kvn,Lmn,Phf,Wmj,ChX,u9D,$i,Drg,QvY,b6,wQI,fEj,zLg,iDj,hLg,HD1,Xh,Spf,lE7,va2,oaN,IEn,Fh,mrf,dT_, eCD,RU,UT6,bxj,ToY,y3,Xfj,JhI,VcX,sGY,Yl6,$T7,ha,xi,gR7,NoQ,FwD,NU,xTI,H1,ffD,yhY,QGg,HxI,chY,ERj,M3_,MU,Q3,a1D,Ahf,pfQ,Zxf,kf6,BoN,Kw6,rhn,nRN,jk,ulQ,WwX,DT2,wf2,Ee,Aa,pl,I1Y,ixI,zC6,Oe,Lwg,B1,Sln,ta,Zj,vR6,oRN,V3f,P1_,Ll,P1,dWn,GfD,mTQ,nl,q9X,aU,ThY,Y9j,ePH,u6,l12,UW1,bLj,Dj,wa,XO7,ra,C1g,Jvg,sAX,ki,$WX,Kl,gZI,Gr,GJ,FQ7,RPY,fl,zr,xWH,yvj,hPf,Cl,W1,HL6,hC_,QAD,t3Q,MSn,cv1,EZf,jAj,i6,IU,pOH,nZ1,tS2,Avf,CA7,uSN,DW7,wOg,fC6,zPD,iL_,mWf,IC1,mK,Sk,l6,S97,lCD,vZn,$K,oZ1,v1,VS1,oU,du_,V3,dB,q1D,Fg,qk,WA, TuX,uv,uN7,Y1D,QE,edj,VQ,dU,Uu1,hH,bXN,Xvn,Dw,m36,J6I,sH1,$u1,T_,Fe_,NuQ,Y$,UW,bU,Rd7,hdX,HX2,XU,QH1,xuH,c6g,y6g,MbD,EDf,jHY,a82,A6f,JT,ZX1,WdY,gX,Hn,OX2,nDf,cn,pvH,Hp,r66,tbg,Buf,sW,kx,Gdg,LeD,$$,gB,kdD,FU,Nk,ey,Pdg,WeX,XGD,RP,x$,Cdf,y_,hT,uRI,He,Du1,Q_,Mk,wv1,f8Q,LV1,ce,zdD,I8f,iXj,EW,jy,muQ,aP,S1n,l8N,vDX,oD7,Vb1,dHN,TI_,pr,q6Q,Y6c,enE,UH7,bNj,$HB,Xg_,JYl,sQ7,FjN,RnE,xH7,yYn,NIN,Zr,hnj,HNR,QQE,MDN,cYx,nr,E2j,rB,tT,Be,jQl,aXs,pgs,ZNj,ONj,n2I,tD7,rYL,BIN,Kr,G_,Ljj,Kjx,G7j,Lr,k7L,P_E,k$,Pe,WjR,We, C_n,Cr,u1L,uU,Dr,DHB,wB,fr,wg7,fXc,z_,iU,znB,IP,iNQ,IXn,ve,oP,mHn,S6j,lXL,VD7,o2N,V_,dxx,qII,TLI,zU1,v2s,e7l,UxN,XRq,dHf,$2;dI=function(d){return function(){return dHf[d].apply(this,arguments)}}; g.eD=function(d,q){return dHf[d]=q}; q6_=function(d){var q=0;return function(){return q=this.length))return this[d]}; l_=function(d){return d?d:mj}; NIf=function(d,q,T){d instanceof String&&(d=String(d));for(var Y=d.length-1;Y>=0;Y--){var e=d[Y];if(q.call(T,e,Y,d))return{jg:Y,LP:e}}return{jg:-1,LP:void 0}}; vg=function(d){return d?d:function(q,T){return NIf(this,q,T).jg}}; g.Vf=function(d,q,T){d=d.split(".");T=T||g.oQ;for(var Y;d.length&&(Y=d.shift());)d.length||q===void 0?T[Y]&&T[Y]!==Object.prototype[Y]?T=T[Y]:T=T[Y]={}:T[Y]=q}; Yc=function(d,q){var T=g.qx("CLOSURE_FLAGS");d=T&&T[d];return d!=null?d:q}; g.qx=function(d,q){d=d.split(".");q=q||g.oQ;for(var T=0;T2){var Y=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,Y);return d.apply(q,e)}}return function(){return d.apply(q,arguments)}}; g.sI=function(d,q,T){g.sI=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?yYX:hnD;return g.sI.apply(null,arguments)}; g.$c=function(d,q){var T=Array.prototype.slice.call(arguments,1);return function(){var Y=T.slice();Y.push.apply(Y,arguments);return d.apply(this,Y)}}; g.F_=function(){return Date.now()}; Nx=function(d){return d}; g.Rs=function(d,q){function T(){} T.prototype=q.prototype;d.VX=q.prototype;d.prototype=new T;d.prototype.constructor=d;d.Wf=function(Y,e,U){for(var b=Array(arguments.length-2),J=2;J=0;--T)T in Y&&q.call(void 0,Y[T],T,d)}; g.QN=function(d,q,T){q=HR(d,q,T);return q<0?null:typeof d==="string"?d.charAt(q):d[q]}; HR=function(d,q,T){for(var Y=d.length,e=typeof d==="string"?d.split(""):d,U=0;U=0;Y--)if(Y in e&&q.call(T,e[Y],Y,d))return Y;return-1}; g.cR=function(d,q){return E2D(d,q)>=0}; jQ7=function(d){if(!Array.isArray(d))for(var q=d.length-1;q>=0;q--)delete d[q];d.length=0}; g.jj=function(d,q){q=E2D(d,q);var T;(T=q>=0)&&g.EI(d,q);return T}; g.EI=function(d,q){return Array.prototype.splice.call(d,q,1).length==1}; g.OI=function(d,q){q=HR(d,q);q>=0&&g.EI(d,q)}; aXQ=function(d,q){var T=0;cYH(d,function(Y,e){q.call(void 0,Y,e,d)&&g.EI(d,e)&&T++})}; g.nB=function(d){return Array.prototype.concat.apply([],arguments)}; g.rL=function(d){var q=d.length;if(q>0){for(var T=Array(q),Y=0;Y>>1),F=void 0;T?F=q.call(void 0,d[J],J,d):F=q(Y,d[J]);F>0?e=J+1:(U=J,b=!F)}return b?e:-e-1}; g.iQ=function(d,q){d.sort(q||CB)}; ZND=function(d,q){var T=CB;g.iQ(d,function(Y,e){return T(q(Y),q(e))})}; g.Is=function(d,q,T){if(!g.ej(d)||!g.ej(q)||d.length!=q.length)return!1;var Y=d.length;T=T||OND;for(var e=0;eq?1:d0&&(q[e]=Y)},d); return q}; Wjg=function(d){d=ph(d);var q=[];g.os(d,function(T,Y){Y in Object.prototype||typeof T!="undefined"&&q.push([Y,":",T].join(""))}); return q}; u1I=function(d){jY(d,"od",C_X);jY(d,"opac",Zm).G=!0;jY(d,"sbeos",Zm).G=!0;jY(d,"prf",Zm).G=!0;jY(d,"mwt",Zm).G=!0;jY(d,"iogeo",Zm)}; ON=function(d,q){return d.lastIndexOf(q,0)==0}; DHN=function(d,q){var T=d.length-q.length;return T>=0&&d.indexOf(q,T)==T}; g.nh=function(d){return/^[\s\xa0]*$/.test(d)}; g.rb=function(d,q){return d.indexOf(q)!=-1}; B2=function(d,q){return g.rb(d.toLowerCase(),q.toLowerCase())}; g.Lh=function(d,q){var T=0;d=Kh(String(d)).split(".");q=Kh(String(q)).split(".");for(var Y=Math.max(d.length,q.length),e=0;T==0&&eq?1:0}; g.k9=function(){var d=g.oQ.navigator;return d&&(d=d.userAgent)?d:""}; wb=function(d){if(!P2&&!W2||!Dm)return!1;for(var q=0;q0:!1}; iw=function(){return zX()?!1:fh("Opera")}; wgn=function(){return zX()?!1:fh("Trident")||fh("MSIE")}; fX2=function(){return zX()?wb("Microsoft Edge"):fh("Edg/")}; IT=function(){return fh("Firefox")||fh("FxiOS")}; SY=function(){return fh("Safari")&&!(mf()||(zX()?0:fh("Coast"))||iw()||(zX()?0:fh("Edge"))||fX2()||(zX()?wb("Opera"):fh("OPR"))||IT()||fh("Silk")||fh("Android"))}; mf=function(){return zX()?wb("Chromium"):(fh("Chrome")||fh("CriOS"))&&!(zX()?0:fh("Edge"))||fh("Silk")}; znN=function(){return fh("Android")&&!(mf()||IT()||iw()||fh("Silk"))}; iN_=function(d){var q={};d.forEach(function(T){q[T[0]]=T[1]}); return function(T){return q[T.find(function(Y){return Y in q})]||""}}; IXX=function(d){var q=g.k9();if(d==="Internet Explorer"){if(wgn())if((d=/rv: *([\d\.]*)/.exec(q))&&d[1])q=d[1];else{d="";var T=/MSIE +([\d\.]+)/.exec(q);if(T&&T[1])if(q=/Trident\/(\d.\d)/.exec(q),T[1]=="7.0")if(q&&q[1])switch(q[1]){case "4.0":d="8.0";break;case "5.0":d="9.0";break;case "6.0":d="10.0";break;case "7.0":d="11.0"}else d="7.0";else d=T[1];q=d}else q="";return q}var Y=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");T=[];for(var e;e=Y.exec(q);)T.push([e[1],e[2],e[3]||void 0]); q=iN_(T);switch(d){case "Opera":if(iw())return q(["Version","Opera"]);if(zX()?wb("Opera"):fh("OPR"))return q(["OPR"]);break;case "Microsoft Edge":if(zX()?0:fh("Edge"))return q(["Edge"]);if(fX2())return q(["Edg"]);break;case "Chromium":if(mf())return q(["Chrome","CriOS","HeadlessChrome"])}return d==="Firefox"&&IT()||d==="Safari"&&SY()||d==="Android Browser"&&znN()||d==="Silk"&&fh("Silk")?(q=T[2])&&q[1]||"":""}; mHX=function(d){if(zX()&&d!=="Silk"){var q=Dm.brands.find(function(T){return T.brand===d}); if(!q||!q.version)return NaN;q=q.version.split(".")}else{q=IXX(d);if(q==="")return NaN;q=q.split(".")}return q.length===0?NaN:Number(q[0])}; lXI=function(){var d=null;if(!S6D)return d;try{var q=function(T){return T}; d=S6D.createPolicy("goog#html",{createHTML:q,createScript:q,createScriptURL:q})}catch(T){}return d}; v2=function(){lw===void 0&&(lw=lXI());return lw}; oT=function(d){this.G=d}; dt=function(d){var q=v2();d=q?q.createScriptURL(d):d;return new oT(d)}; qX=function(d){if(d instanceof oT)return d.G;throw Error("");}; TP=function(d){this.G=d}; g.YS=function(d){if(d instanceof TP)return d.G;throw Error("");}; ev=function(d){this.LH=d}; UD=function(d){return new ev(function(q){return q.substr(0,d.length+1).toLowerCase()===d+":"})}; g.b4=function(d,q){q=q===void 0?v2Q:q;a:if(q=q===void 0?v2Q:q,!(d instanceof TP)){for(var T=0;T4);e++)q[ay(d[e])]||(T+="\nInner error "+Y++ +": ",d[e].stack&&d[e].stack.indexOf(d[e].toString())==0||(T+=typeof d[e]==="string"?d[e]:d[e].message+"\n"),T+=ED(d[e],q));e")!=-1&&(d=d.replace(ssQ,">")),d.indexOf('"')!=-1&&(d=d.replace($x1,""")),d.indexOf("'")!=-1&&(d=d.replace(gcN,"'")),d.indexOf("\x00")!=-1&&(d=d.replace(Fqn,"�")));return d}; g.rt=function(d){return d==null?"":String(d)}; tn=function(d){for(var q=0,T=0;T>>0;return q}; BZ=function(d){var q=Number(d);return q==0&&g.nh(d)?NaN:q}; NLN=function(d){return String(d).replace(/\-([a-z])/g,function(q,T){return T.toUpperCase()})}; R7D=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; xxf=function(d){return d.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(q,T,Y){return T+Y.toUpperCase()})}; yE2=function(d){var q=1;d=d.split(":");for(var T=[];q>0&&d.length;)T.push(d.shift()),q--;d.length&&T.push(d.join(":"));return T}; Kn=function(){return P2||W2?!!Dm&&!!Dm.platform:!1}; h72=function(){return Kn()?Dm.platform==="Android":fh("Android")}; GP=function(){return fh("iPhone")&&!fh("iPod")&&!fh("iPad")}; Ln=function(){return GP()||fh("iPad")||fh("iPod")}; kS=function(){return Kn()?Dm.platform==="macOS":fh("Macintosh")}; HB6=function(){return Kn()?Dm.platform==="Windows":fh("Windows")}; PZ=function(d){PZ[" "](d);return d}; Qsj=function(d,q){try{return PZ(d[q]),!0}catch(T){}return!1}; cEI=function(d,q){var T=Mjg;return Object.prototype.hasOwnProperty.call(T,d)?T[d]:T[d]=q(d)}; g.WZ=function(d){return cEI(d,function(){return g.Lh(Ecn,d)>=0})}; g.Cn=function(d,q,T){return Math.min(Math.max(d,q),T)}; g.u4=function(d,q){d%=q;return d*q<0?d+q:d}; DG=function(d,q,T){return d+T*(q-d)}; g.wt=function(d,q){this.x=d!==void 0?d:0;this.y=q!==void 0?q:0}; fn=function(d,q){return d==q?!0:d&&q?d.x==q.x&&d.y==q.y:!1}; g.zP=function(d,q){this.width=d;this.height=q}; g.i4=function(d,q){return d==q?!0:d&&q?d.width==q.width&&d.height==q.height:!1}; Iy=function(d){return d.width*d.height}; Sv=function(d,q){this.G=d===mn&&q||""}; l4=function(d){if(d instanceof gt)return d;d=String(d).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return Fk(d)}; anH=function(d){return jsg(d)}; jsg=function(d){var q=l4("");return Fk(d.map(function(T){return NX(l4(T))}).join(NX(q).toString()))}; ncf=function(d){var q;if(!AEH.test("div"))throw Error("");if(pRN.indexOf("DIV")!==-1)throw Error("");var T="":(d=anH(q.map(function(Y){return Y instanceof gt?Y:l4(String(Y))})),T+=">"+d.toString()+""); return Fk(T)}; ZBf=function(d){for(var q="",T=Object.keys(d),Y=0;Y2&&PQI(e,b,Y,2);return b}; PQI=function(d,q,T,Y){function e(J){J&&q.appendChild(typeof J==="string"?d.createTextNode(J):J)} for(;Y0)e(U);else{a:{if(U&&typeof U.length=="number"){if(g.UI(U)){var b=typeof U.item=="function"||typeof U.item=="string";break a}if(typeof U==="function"){b=typeof U.item=="function";break a}}b=!1}g.Sj(b?g.rL(U):U,e)}}}; g.FE=function(d){return $E(document,d)}; $E=function(d,q){q=String(q);d.contentType==="application/xhtml+xml"&&(q=q.toLowerCase());return d.createElement(q)}; g.NQ=function(d){return document.createTextNode(String(d))}; g.Rr=function(d,q){d.appendChild(q)}; g.xE=function(d){for(var q;q=d.firstChild;)d.removeChild(q)}; yp=function(d,q,T){d.insertBefore(q,d.childNodes[T]||null)}; g.h4=function(d){return d&&d.parentNode?d.parentNode.removeChild(d):null}; g.HB=function(d,q){if(!d||!q)return!1;if(d.contains&&q.nodeType==1)return d==q||d.contains(q);if(typeof d.compareDocumentPosition!="undefined")return d==q||!!(d.compareDocumentPosition(q)&16);for(;q&&d!=q;)q=q.parentNode;return q==d}; oy=function(d){return d.nodeType==9?d:d.ownerDocument||d.document}; g.Qp=function(d,q){if("textContent"in d)d.textContent=q;else if(d.nodeType==3)d.data=String(q);else if(d.firstChild&&d.firstChild.nodeType==3){for(;d.lastChild!=d.firstChild;)d.removeChild(d.lastChild);d.firstChild.data=String(q)}else g.xE(d),d.appendChild(oy(d).createTextNode(String(q)))}; CQQ=function(d){return d.tagName=="A"&&d.hasAttribute("href")||d.tagName=="INPUT"||d.tagName=="TEXTAREA"||d.tagName=="SELECT"||d.tagName=="BUTTON"?!d.disabled&&(!d.hasAttribute("tabindex")||Wq_(d)):d.hasAttribute("tabindex")&&Wq_(d)}; Wq_=function(d){d=d.tabIndex;return typeof d==="number"&&d>=0&&d<32768}; cB=function(d,q,T){if(!q&&!T)return null;var Y=q?String(q).toUpperCase():null;return MQ(d,function(e){return(!Y||e.nodeName==Y)&&(!T||typeof e.className==="string"&&g.cR(e.className.split(/\s+/),T))},!0)}; MQ=function(d,q,T){d&&!T&&(d=d.parentNode);for(T=0;d;){if(q(d))return d;d=d.parentNode;T++}return null}; vZ=function(d){this.G=d||g.oQ.document||document}; u_N=function(){this.G=this.Qm=null}; A4=function(){}; Zv=function(){if(!pT())throw Error();}; pT=function(){return!(!OM||!OM.performance)}; Dxj=function(d){return g.J4?"webkit"+d:d.toLowerCase()}; nT=function(d){return function(){return d}}; g.r_=function(){}; wRn=function(d){var q=q||0;return function(){return d.apply(this,Array.prototype.slice.call(arguments,0,q))}}; t4=function(d){var q=!1,T;return function(){q||(T=d(),q=!0);return T}}; BB=function(d){var q=d;return function(){if(q){var T=q;q=null;T()}}}; KT=function(d,q,T){var Y=0;return function(e){g.oQ.clearTimeout(Y);var U=arguments;Y=g.oQ.setTimeout(function(){d.apply(T,U)},q)}}; GO=function(d,q,T,Y){this.top=d;this.right=q;this.bottom=T;this.left=Y}; LT=function(d){return d.right-d.left}; kE=function(d,q){return d==q?!0:d&&q?d.top==q.top&&d.right==q.right&&d.bottom==q.bottom&&d.left==q.left:!1}; PB=function(d,q,T){q instanceof g.wt?(d.left+=q.x,d.right+=q.x,d.top+=q.y,d.bottom+=q.y):(d.left+=q,d.right+=q,typeof T==="number"&&(d.top+=T,d.bottom+=T));return d}; g.WB=function(d,q,T,Y){this.left=d;this.top=q;this.width=T;this.height=Y}; CT=function(d,q){return d==q?!0:d&&q?d.left==q.left&&d.width==q.width&&d.top==q.top&&d.height==q.height:!1}; g.Dv=function(d,q,T){if(typeof q==="string")(q=uY(d,q))&&(d.style[q]=T);else for(var Y in q){T=d;var e=q[Y],U=uY(T,Y);U&&(T.style[U]=e)}}; uY=function(d,q){var T=fnf[q];if(!T){var Y=NLN(q);T=Y;d.style[Y]===void 0&&(Y=(g.J4?"Webkit":w_?"Moz":null)+xxf(Y),d.style[Y]!==void 0&&(T=Y));fnf[q]=T}return T}; g.fT=function(d,q){var T=d.style[NLN(q)];return typeof T!=="undefined"?T:d.style[uY(d,q)]||""}; zO=function(d,q){var T=oy(d);return T.defaultView&&T.defaultView.getComputedStyle&&(d=T.defaultView.getComputedStyle(d,null))?d[q]||d.getPropertyValue(q)||"":""}; iY=function(d,q){return zO(d,q)||(d.currentStyle?d.currentStyle[q]:null)||d.style&&d.style[q]}; g.mZ=function(d,q,T){if(q instanceof g.wt){var Y=q.x;q=q.y}else Y=q,q=T;d.style.left=g.Ir(Y,!1);d.style.top=g.Ir(q,!1)}; SV=function(d){try{return d.getBoundingClientRect()}catch(q){return{left:0,top:0,right:0,bottom:0}}}; z7D=function(d){var q=oy(d),T=iY(d,"position"),Y=T=="fixed"||T=="absolute";for(d=d.parentNode;d&&d!=q;d=d.parentNode)if(d.nodeType==11&&d.host&&(d=d.host),T=iY(d,"position"),Y=Y&&T=="static"&&d!=q.documentElement&&d!=q.body,!Y&&(d.scrollWidth>d.clientWidth||d.scrollHeight>d.clientHeight||T=="fixed"||T=="absolute"||T=="relative"))return d;return null}; g.lY=function(d){var q=oy(d),T=new g.wt(0,0);if(d==(q?oy(q):document).documentElement)return T;d=SV(d);q=VY(q);q=kl7(q.G);T.x=d.left+q.x;T.y=d.top+q.y;return T}; InQ=function(d,q){var T=new g.wt(0,0),Y=sM(oy(d));if(!Qsj(Y,"parent"))return T;do{var e=Y==q?g.lY(d):iBj(d);T.x+=e.x;T.y+=e.y}while(Y&&Y!=q&&Y!=Y.parent&&(d=Y.frameElement)&&(Y=Y.parent));return T}; g.vB=function(d,q){d=mxf(d);q=mxf(q);return new g.wt(d.x-q.x,d.y-q.y)}; iBj=function(d){d=SV(d);return new g.wt(d.left,d.top)}; mxf=function(d){if(d.nodeType==1)return iBj(d);d=d.changedTouches?d.changedTouches[0]:d;return new g.wt(d.clientX,d.clientY)}; g.or=function(d,q,T){if(q instanceof g.zP)T=q.height,q=q.width;else if(T==void 0)throw Error("missing height argument");d.style.width=g.Ir(q,!0);d.style.height=g.Ir(T,!0)}; g.Ir=function(d,q){typeof d=="number"&&(d=(q?Math.round(d):d)+"px");return d}; g.Vp=function(d){var q=SIg;if(iY(d,"display")!="none")return q(d);var T=d.style,Y=T.display,e=T.visibility,U=T.position;T.visibility="hidden";T.position="absolute";T.display="inline";d=q(d);T.display=Y;T.position=U;T.visibility=e;return d}; SIg=function(d){var q=d.offsetWidth,T=d.offsetHeight,Y=g.J4&&!q&&!T;return(q===void 0||Y)&&d.getBoundingClientRect?(d=SV(d),new g.zP(d.right-d.left,d.bottom-d.top)):new g.zP(q,T)}; g.dv=function(d,q){d.style.display=q?"":"none"}; qq=function(d){return d?d.passive&&lnN()?d:d.capture||!1:!1}; TI=function(d,q,T,Y){return typeof d.addEventListener==="function"?(d.addEventListener(q,T,qq(Y)),!0):!1}; YQ=function(d){if(d.prerendering)return 3;var q;return(q={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[d.visibilityState||d.webkitVisibilityState||d.mozVisibilityState||""])!=null?q:0}; vcj=function(){}; e0=function(d){d.Www=!0;return d}; ocD=function(){return(P2||W2)&&Dm?Dm.mobile:!XQ()&&(fh("iPod")||fh("iPhone")||fh("Android")||fh("IEMobile"))}; XQ=function(){return(P2||W2)&&Dm?!Dm.mobile&&(fh("iPad")||fh("Android")||fh("Silk")):fh("iPad")||fh("Android")&&!fh("Mobile")||fh("Silk")}; J0=function(d){try{return!!d&&d.location.href!=null&&Qsj(d,"foo")}catch(q){return!1}}; $Q=function(d,q){if(d)for(var T in d)Object.prototype.hasOwnProperty.call(d,T)&&q(d[T],T,d)}; d$j=function(){var d=[];$Q(VjN,function(q){d.push(q)}); return d}; qNg=function(d){var q,T;return(T=(q=/https?:\/\/[^\/]+/.exec(d))==null?void 0:q[0])!=null?T:""}; eiN=function(){var d=TbH("IFRAME"),q={};g.Sj(YNg(),function(T){d.sandbox&&d.sandbox.supports&&d.sandbox.supports(T)&&(q[T]=!0)}); return q}; TbH=function(d,q){q=q===void 0?document:q;return q.createElement(String(d).toLowerCase())}; U$D=function(d){for(var q=d;d&&d!=d.parent;)d=d.parent,J0(d)&&(q=d);return q}; sT7=function(d){d=d||gv();for(var q=new bhX(g.oQ.location.href,!1),T=null,Y=d.length-1,e=Y;e>=0;--e){var U=d[e];!T&&X2I.test(U.url)&&(T=U);if(U.url&&!U.G){q=U;break}}e=null;U=d.length&&d[Y].url;q.depth!==0&&U&&(e=d[Y]);return new JzQ(q,e,T)}; gv=function(){var d=g.oQ,q=[],T=null;do{var Y=d;if(J0(Y)){var e=Y.location.href;T=Y.document&&Y.document.referrer||null}else e=T,T=null;q.push(new bhX(e||""));try{d=Y.parent}catch(U){d=null}}while(d&&Y!==d);Y=0;for(d=q.length-1;Y<=d;++Y)q[Y].depth=d-Y;Y=g.oQ;if(Y.location&&Y.location.ancestorOrigins&&Y.location.ancestorOrigins.length===q.length-1)for(d=1;dq&&(q=T.length);return 3997-q-d.j.length-1}; xQ=function(d,q){this.G=d;this.depth=q}; Nb7=function(){function d(J,F){return J==null?F:J} var q=gv(),T=Math.max(q.length-1,0),Y=sT7(q);q=Y.G;var e=Y.U,U=Y.j,b=[];U&&b.push(new xQ([U.url,U.G?2:0],d(U.depth,1)));e&&e!=U&&b.push(new xQ([e.url,2],0));q.url&&q!=U&&b.push(new xQ([q.url,0],d(q.depth,T)));Y=g.yC(b,function(J,F){return b.slice(0,b.length-F)}); !q.url||(U||e)&&q!=U||(e=qNg(q.url))&&Y.push([new xQ([e,1],d(q.depth,T))]);Y.push([]);return g.yC(Y,function(J){return FfQ(T,J)})}; FfQ=function(d,q){g.h0(q,function(e){return e.depth>=0}); var T=Hz(q,function(e,U){return Math.max(e,U.depth)},-1),Y=n26(T+2); Y[0]=d;g.Sj(q,function(e){return Y[e.depth+1]=e.G}); return Y}; RiD=function(){var d=d===void 0?Nb7():d;return d.map(function(q){return Rc(q)})}; x$g=function(d){var q=!1;q=q===void 0?!1:q;OM.google_image_requests||(OM.google_image_requests=[]);var T=TbH("IMG",OM.document);q&&(T.attributionSrc="");T.src=d;OM.google_image_requests.push(T)}; QC=function(d){var q="zS";if(d.zS&&d.hasOwnProperty(q))return d.zS;var T=new d;d.zS=T;d.hasOwnProperty(q);return T}; Mq=function(){this.U=new vcj;this.G=pT()?new Zv:new A4}; yz7=function(){cz();var d=OM.document;return!!(d&&d.body&&d.body.getBoundingClientRect&&typeof OM.setInterval==="function"&&typeof OM.clearInterval==="function"&&typeof OM.setTimeout==="function"&&typeof OM.clearTimeout==="function")}; hiI=function(){cz();return RiD()}; Hh6=function(){}; cz=function(){var d=QC(Hh6);if(!d.G){if(!OM)throw Error("Context has not been set and window is undefined.");d.G=QC(Mq)}return d.G}; Ew=function(){throw Error("Invalid UTF8");}; QT1=function(d,q){q=String.fromCharCode.apply(null,q);return d==null?q:d+q}; jTj=function(d){var q=!1;q=q===void 0?!1:q;if(MYn){if(q&&(cz_?!d.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(d)))throw Error("Found an unpaired surrogate");d=(E97||(E97=new TextEncoder)).encode(d)}else{for(var T=0,Y=new Uint8Array(3*d.length),e=0;e>6|192;else{if(U>=55296&&U<=57343){if(U<=56319&&e=56320&&b<=57343){U=(U-55296)*1024+ b-56320+65536;Y[T++]=U>>18|240;Y[T++]=U>>12&63|128;Y[T++]=U>>6&63|128;Y[T++]=U&63|128;continue}else e--}if(q)throw Error("Found an unpaired surrogate");U=65533}Y[T++]=U>>12|224;Y[T++]=U>>6&63|128}Y[T++]=U&63|128}}d=T===Y.length?Y:Y.subarray(0,T)}return d}; j0=function(d){g.oQ.setTimeout(function(){throw d;},0)}; amI=function(d){return Array.prototype.map.call(d,function(q){q=q.toString(16);return q.length>1?q:"0"+q}).join("")}; Azj=function(d){for(var q=[],T=0;T>6|192:((e&64512)==55296&&Y+1>18|240,q[T++]=e>>12&63|128):q[T++]=e>>12|224,q[T++]=e>>6&63|128),q[T++]=e&63|128)}return q}; g.A0=function(d,q){q===void 0&&(q=0);p2f();q=ZhN[q];for(var T=Array(Math.floor(d.length/3)),Y=q[64]||"",e=0,U=0;e>2];b=q[(b&3)<<4|J>>4];J=q[(J&15)<<2|F>>6];F=q[F&63];T[U++]=""+N+b+J+F}N=0;F=Y;switch(d.length-e){case 2:N=d[e+1],F=q[(N&15)<<2]||Y;case 1:d=d[e],T[U]=""+q[d>>2]+q[(d&3)<<4|N>>4]+F+Y}return T.join("")}; g.pp=function(d,q){if(OhI&&!q)d=g.oQ.btoa(d);else{for(var T=[],Y=0,e=0;e255&&(T[Y++]=U&255,U>>=8);T[Y++]=U}d=g.A0(T,q)}return d}; rz6=function(d){var q=[];n96(d,function(T){q.push(T)}); return q}; ZV=function(d){var q=d.length,T=q*3/4;T%3?T=Math.floor(T):g.rb("=.",d[q-1])&&(T=g.rb("=.",d[q-2])?T-2:T-1);var Y=new Uint8Array(T),e=0;n96(d,function(U){Y[e++]=U}); return e!==T?Y.subarray(0,e):Y}; n96=function(d,q){function T(F){for(;Y>4);b!=64&&(q(U<<4&240|b>>2),J!=64&&q(b<<6&192|J))}}; p2f=function(){if(!Ow){Ow={};for(var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),q=["+/=","+/","-_=","-_.","-_"],T=0;T<5;T++){var Y=d.concat(q[T].split(""));ZhN[T]=Y;for(var e=0;e=q||(Y[d]=T+1,d=Error(),e77(d,"incident"),j0(d))}}; kQ=function(d,q,T){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(T===void 0?0:T)&&Symbol.for&&d?Symbol.for(d):d!=null?Symbol(d):Symbol():q}; Cp=function(d,q){Pz||Wz in d||uVI(d,D$I);d[Wz]|=q}; u$=function(d,q){Pz||Wz in d||uVI(d,D$I);d[Wz]=q}; DV=function(){return typeof BigInt==="function"}; fp=function(d,q){return q===void 0?d.G!==wv&&!!(2&(d.Kf[Wz]|0)):!!(2&q)&&d.G!==wv}; w22=function(d,q){if(d!=null)if(typeof d==="string")d=d?new np(d,rv):t0();else if(d.constructor!==np)if(Wfj&&d!=null&&d instanceof Uint8Array)d=d.length?new np(new Uint8Array(d),rv):t0();else{if(!q)throw Error();d=void 0}return d}; zI=function(d,q){if(typeof q!=="number"||q<0||q>=d.length)throw Error();}; fm_=function(d,q,T){var Y=q&128?0:-1,e=d.length,U;if(U=!!e)U=d[e-1],U=U!=null&&typeof U==="object"&&U.constructor===Object;var b=e+(U?-1:0);for(q=q&128?1:0;qq.length)return!1;if(d.lengthe)return!1;if(Y>>0;oc=q;VC=(d-q)/4294967296>>>0}; Ti=function(d){if(d<0){dY(0-d);var q=g.E(qb(oc,VC));d=q.next().value;q=q.next().value;oc=d>>>0;VC=q>>>0}else dY(d)}; eE=function(d,q){var T=q*4294967296+(d>>>0);return Number.isSafeInteger(T)?T:Yj(d,q)}; SN_=function(d,q){var T=q&2147483648;T&&(d=~d+1>>>0,q=~q>>>0,d==0&&(q=q+1>>>0));d=eE(d,q);return typeof d==="number"?T?-d:d:T?"-"+d:d}; Yj=function(d,q){q>>>=0;d>>>=0;if(q<=2097151)var T=""+(4294967296*q+d);else DV()?T=""+(BigInt(q)<>>24|q<<8)&16777215,q=q>>16&65535,d=(d&16777215)+T*6777216+q*6710656,T+=q*8147497,q*=2,d>=1E7&&(T+=d/1E7>>>0,d%=1E7),T>=1E7&&(q+=T/1E7>>>0,T%=1E7),T=q+lmD(T)+lmD(d));return T}; lmD=function(d){d=String(d);return"0000000".slice(d.length)+d}; v92=function(){var d=oc,q=VC;q&2147483648?DV()?d=""+(BigInt(q|0)<>>0)):(q=g.E(qb(d,q)),d=q.next().value,q=q.next().value,d="-"+Yj(d,q)):d=Yj(d,q);return d}; US=function(d){if(d.length<16)Ti(Number(d));else if(DV())d=BigInt(d),oc=Number(d&BigInt(4294967295))>>>0,VC=Number(d>>BigInt(32)&BigInt(4294967295));else{var q=+(d[0]==="-");VC=oc=0;for(var T=d.length,Y=0+q,e=(T-q)%6+q;e<=T;Y=e,e+=6)Y=Number(d.slice(Y,e)),VC*=1E6,oc=oc*1E6+Y,oc>=4294967296&&(VC+=Math.trunc(oc/4294967296),VC>>>=0,oc>>>=0);q&&(q=g.E(qb(oc,VC)),d=q.next().value,q=q.next().value,oc=d,VC=q)}}; qb=function(d,q){q=~q;d?d=~d+1:q+=1;return[d,q]}; bl=function(d){return Array.prototype.slice.call(d)}; Xe=function(d){if(d!=null&&typeof d!=="number")throw Error("Value of float/double field must be a number, found "+typeof d+": "+d);return d}; o9f=function(d){return d.displayName||d.name||"unknown type name"}; JA=function(d){if(d!=null&&typeof d!=="boolean")throw Error("Expected boolean but got "+RnY(d)+": "+d);return d}; gY=function(d){switch(typeof d){case "bigint":return!0;case "number":return sS(d);case "string":return VY_.test(d);default:return!1}}; dXn=function(d){if(typeof d!=="number")throw GI("int32");if(!sS(d))throw GI("int32");return d|0}; Fe=function(d){return d==null?d:dXn(d)}; Nb=function(d){if(d==null)return d;if(typeof d==="string"&&d)d=+d;else if(typeof d!=="number")return;return sS(d)?d|0:void 0}; R4=function(d){if(d==null)return d;if(typeof d==="string"&&d)d=+d;else if(typeof d!=="number")return;return sS(d)?d>>>0:void 0}; YDg=function(d){var q=0;q=q===void 0?0:q;if(!gY(d))throw GI("int64");var T=typeof d;switch(q){case 512:switch(T){case "string":return xj(d);case "bigint":return String(yX(64,d));default:return QX(d)}case 1024:switch(T){case "string":return qDj(d);case "bigint":return vz(yX(64,d));default:return TtY(d)}case 0:switch(T){case "string":return xj(d);case "bigint":return vz(yX(64,d));default:return Mb(d)}default:return $S(q,"Unknown format requested type for int64")}}; cE=function(d){return d==null?d:YDg(d)}; eSf=function(d){if(d[0]==="-")return!1;var q=d.length;return q<20?!0:q===20&&Number(d.substring(0,6))<184467}; UXg=function(d){var q=d.length;return d[0]==="-"?q<20?!0:q===20&&Number(d.substring(0,7))>-922337:q<19?!0:q===19&&Number(d.substring(0,6))<922337}; bn2=function(d){if(d<0){Ti(d);var q=Yj(oc,VC);d=Number(q);return ES(d)?d:q}q=String(d);if(eSf(q))return q;Ti(d);return eE(oc,VC)}; XZ_=function(d){if(UXg(d))return d;US(d);return v92()}; Mb=function(d){gY(d);d=jE(d);ES(d)||(Ti(d),d=SN_(oc,VC));return d}; QX=function(d){gY(d);d=jE(d);if(ES(d))d=String(d);else{var q=String(d);UXg(q)?d=q:(Ti(d),d=v92())}return d}; xj=function(d){gY(d);var q=jE(Number(d));if(ES(q))return String(q);q=d.indexOf(".");q!==-1&&(d=d.substring(0,q));return XZ_(d)}; qDj=function(d){var q=jE(Number(d));if(ES(q))return vz(q);q=d.indexOf(".");q!==-1&&(d=d.substring(0,q));return DV()?vz(yX(64,BigInt(d))):vz(XZ_(d))}; TtY=function(d){return ES(d)?vz(Mb(d)):vz(QX(d))}; Jnj=function(d){if(d==null)return d;var q=typeof d;if(q==="bigint")return String(yX(64,d));if(gY(d)){if(q==="string")return xj(d);if(q==="number")return Mb(d)}}; $XX=function(d){if(d==null)return d;var q=typeof d;if(q==="bigint")return String(syI(64,d));if(gY(d)){if(q==="string")return gY(d),q=jE(Number(d)),ES(q)&&q>=0?d=String(q):(q=d.indexOf("."),q!==-1&&(d=d.substring(0,q)),eSf(d)||(US(d),d=Yj(oc,VC))),d;if(q==="number")return gY(d),d=jE(d),d>=0&&ES(d)?d:bn2(d)}}; gS6=function(d){if(d==null||typeof d=="string"||d instanceof np)return d}; Fng=function(d){if(typeof d!=="string")throw Error();return d}; a4=function(d){if(d!=null&&typeof d!=="string")throw Error();return d}; AA=function(d){return d==null||typeof d==="string"?d:void 0}; p$=function(d,q){if(!(d instanceof q))throw Error("Expected instanceof "+o9f(q)+" but got "+(d&&o9f(d.constructor)));return d}; Ntn=function(d,q,T){if(d!=null&&d[ZY]===OS)return d;if(Array.isArray(d)){var Y=d[Wz]|0;T=Y|T&32|T&2;T!==Y&&u$(d,T);return new q(d)}}; n$=function(d){return d}; tA=function(d){var q=Nx(rY);return q?d[q]:void 0}; BE=function(){}; K$=function(d,q){for(var T in d)!isNaN(T)&&q(d,+T,d[T])}; RSQ=function(d){var q=new BE;K$(d,function(T,Y,e){q[Y]=bl(e)}); q.hX=d.hX;return q}; ynI=function(d,q){q<100||Lp(xXQ,1)}; L$=function(d,q,T,Y){var e=Y!==void 0;Y=!!Y;var U=Nx(rY),b;!e&&Pz&&U&&(b=d[U])&&K$(b,ynI);U=[];var J=d.length;b=4294967295;var F=!1,N=!!(q&64),R=N?q&128?0:-1:void 0;if(!(q&1)){var x=J&&d[J-1];x!=null&&typeof x==="object"&&x.constructor===Object?(J--,b=J):x=void 0;if(N&&!(q&128)&&!e){F=!0;var y;b=((y=Gi)!=null?y:n$)(b-R,R,d,x,void 0)+R}}q=void 0;for(y=0;y=b){var H=y-R,a=void 0;((a=q)!=null?a:q={})[H]=h}else U[y]=h}if(x)for(var p in x)J=x[p],J!= null&&(J=T(J,Y))!=null&&(y=+p,h=void 0,N&&!Number.isNaN(y)&&(h=y+R)0?void 0:d===0?cn2||(cn2=[0,void 0]):[-d,void 0];case "string":return[0,d];case "object":return d}}; wY=function(d,q,T){return d=DY(d,q[0],q[1],T?1:2)}; DY=function(d,q,T,Y){Y=Y===void 0?0:Y;if(d==null){var e=32;T?(d=[T],e|=128):d=[];q&&(e=e&-8380417|(q&1023)<<13)}else{if(!Array.isArray(d))throw Error("narr");e=d[Wz]|0;if(jy7&&1&e)throw Error("rfarr");2048&e&&!(2&e)&&aGX();if(e&256)throw Error("farr");if(e&64)return Y!==0||e&2048||u$(d,e|2048),d;if(T&&(e|=128,T!==d[0]))throw Error("mid");a:{T=d;e|=64;var U=T.length;if(U){var b=U-1,J=T[b];if(J!=null&&typeof J==="object"&&J.constructor===Object){q=e&128?0:-1;b-=q;if(b>=1024)throw Error("pvtlmt");for(var F in J)U= +F,U1024)throw Error("spvt");e=e&-8380417|(F&1023)<<13}}}e|=64;Y===0&&(e|=2048);u$(d,e);return d}; aGX=function(){if(jy7)throw Error("carr");Lp(Anf,5)}; pZ6=function(d,q){if(typeof d!=="object")return d;if(Array.isArray(d)){var T=d[Wz]|0;d.length===0&&T&1?d=void 0:T&2||(!q||4096&T||16&T?d=f$(d,T,!1,q&&!(T&16)):(Cp(d,34),T&4&&Object.freeze(d)));return d}if(d!=null&&d[ZY]===OS)return q=d.Kf,T=q[Wz]|0,fp(d,T)?d:zi(d,q,T)?il(d,q):f$(q,T);if(d instanceof np)return d}; il=function(d,q,T){d=new d.constructor(q);T&&(d.G=wv);d.U=wv;return d}; f$=function(d,q,T,Y){Y!=null||(Y=!!(34&q));d=L$(d,q,pZ6,Y);Y=32;T&&(Y|=2);q=q&8380609|Y;u$(d,q);return d}; ZnH=function(d){var q=d.Kf,T=q[Wz]|0;return fp(d,T)?zi(d,q,T)?il(d,q,!0):new d.constructor(f$(q,T,!1)):d}; I4=function(d){if(d.G!==wv)return!1;var q=d.Kf;q=f$(q,q[Wz]|0);Cp(q,2048);d.Kf=q;d.G=void 0;d.U=void 0;return!0}; mT=function(d){if(!I4(d)&&fp(d,d.Kf[Wz]|0))throw Error();}; SE=function(d,q){q===void 0&&(q=d[Wz]|0);q&32&&!(q&4096)&&u$(d,q|4096)}; zi=function(d,q,T){return T&2?!0:T&32&&!(T&4096)?(u$(q,T|2),d.G=wv,!0):!1}; vE=function(d,q,T,Y,e){Object.isExtensible(d);q=ll(d.Kf,q,T,e);if(q!==null||Y&&d.U!==wv)return q}; ll=function(d,q,T,Y){if(q===-1)return null;var e=q+(T?0:-1),U=d.length-1;if(!(U<1+(T?0:-1))){if(e>=U){var b=d[U];if(b!=null&&typeof b==="object"&&b.constructor===Object){T=b[q];var J=!0}else if(e===U)T=b;else return}else T=d[e];if(Y&&T!=null){Y=Y(T);if(Y==null)return Y;if(!Object.is(Y,T))return J?b[q]=Y:d[e]=Y,Y}return T}}; VX=function(d,q,T,Y){mT(d);var e=d.Kf;o4(e,e[Wz]|0,q,T,Y);return d}; o4=function(d,q,T,Y,e){var U=T+(e?0:-1),b=d.length-1;if(b>=1+(e?0:-1)&&U>=b){var J=d[b];if(J!=null&&typeof J==="object"&&J.constructor===Object)return J[T]=Y,q}if(U<=b)return d[U]=Y,q;if(Y!==void 0){var F;b=((F=q)!=null?F:q=d[Wz]|0)>>13&1023||536870912;T>=b?Y!=null&&(U={},d[b+(e?0:-1)]=(U[T]=Y,U)):d[U]=Y}return q}; es=function(d,q,T,Y,e){var U=d.Kf,b=U[Wz]|0;Y=fp(d,b)?1:Y;e=!!e||Y===3;Y===2&&I4(d)&&(U=d.Kf,b=U[Wz]|0);d=d2(U,q);var J=d===qA?7:d[Wz]|0,F=Tg(J,b);var N=4&F?!1:!0;if(N){4&F&&(d=bl(d),J=0,F=YJ(F,b),b=o4(U,b,q,d));for(var R=0,x=0;R "+d)}; PV=function(d,q,T){this.buffer=d;if(T&&!q)throw Error();this.G=q}; WV=function(d,q){if(typeof d==="string")return new PV(Lf_(d),q);if(Array.isArray(d))return new PV(new Uint8Array(d),q);if(d.constructor===Uint8Array)return new PV(d,!1);if(d.constructor===ArrayBuffer)return d=new Uint8Array(d),new PV(d,!1);if(d.constructor===np)return q=Bz(d)||new Uint8Array(0),new PV(q,!0,d);if(d instanceof Uint8Array)return d=d.constructor===Uint8Array?d:new Uint8Array(d.buffer,d.byteOffset,d.byteLength),new PV(d,!1);throw Error();}; C2=function(d,q,T,Y){this.U=null;this.S=!1;this.G=this.j=this.T=0;this.init(d,q,T,Y)}; Dc=function(d){var q=0,T=0,Y=0,e=d.U,U=d.G;do{var b=e[U++];q|=(b&127)<32&&(T|=(b&127)>>4);for(Y=3;Y<32&&b&128;Y+=7)b=e[U++],T|=(b&127)<>>0,T>>>0);throw kJ();}; uD=function(d,q){d.G=q;if(q>d.j)throw C46(d.j,q);}; w2=function(d){var q=d.U,T=d.G,Y=q[T++],e=Y&127;if(Y&128&&(Y=q[T++],e|=(Y&127)<<7,Y&128&&(Y=q[T++],e|=(Y&127)<<14,Y&128&&(Y=q[T++],e|=(Y&127)<<21,Y&128&&(Y=q[T++],e|=Y<<28,Y&128&&q[T++]&128&&q[T++]&128&&q[T++]&128&&q[T++]&128&&q[T++]&128)))))throw kJ();uD(d,T);return e}; f2=function(d){var q=d.U,T=d.G,Y=q[T+0],e=q[T+1],U=q[T+2];q=q[T+3];uD(d,d.G+4);return(Y<<0|e<<8|U<<16|q<<24)>>>0}; zg=function(d){var q=f2(d);d=f2(d);return eE(q,d)}; iD=function(d){var q=f2(d),T=f2(d);d=(T>>31)*2+1;var Y=T>>>20&2047;q=4294967296*(T&1048575)+q;return Y==2047?q?NaN:d*Infinity:Y==0?d*4.9E-324*q:d*Math.pow(2,Y-1075)*(q+4503599627370496)}; Il=function(d){for(var q=0,T=d.G,Y=T+10,e=d.U;Td.j)throw C46(q,d.j-T);d.G=Y;return T}; wZQ=function(d,q){if(q==0)return t0();var T=uk1(d,q);d.Xj&&d.S?T=d.U.subarray(T,T+q):(d=d.U,q=T+q,T=T===q?new Uint8Array(0):DX2?d.slice(T,q):new Uint8Array(d.subarray(T,q)));return T.length==0?t0():new np(T,rv)}; Ss=function(d,q,T,Y){if(mg.length){var e=mg.pop();e.init(d,q,T,Y);d=e}else d=new C2(d,q,T,Y);this.G=d;this.j=this.G.G;this.U=this.T=-1;fGj(this,Y)}; fGj=function(d,q){q=q===void 0?{}:q;d.o3=q.o3===void 0?!1:q.o3}; zS2=function(d,q,T,Y){if(lD.length){var e=lD.pop();fGj(e,Y);e.G.init(d,q,T,Y);return e}return new Ss(d,q,T,Y)}; in6=function(d){var q=d.G;if(q.G==q.j)return!1;d.j=d.G.G;var T=w2(d.G)>>>0;q=T>>>3;T&=7;if(!(T>=0&&T<=5))throw Wn6(T,d.j);if(q<1)throw Error("Invalid field number: "+q+" (at position "+d.j+")");d.T=q;d.U=T;return!0}; vV=function(d){switch(d.U){case 0:d.U!=0?vV(d):Il(d.G);break;case 1:d=d.G;uD(d,d.G+8);break;case 2:if(d.U!=2)vV(d);else{var q=w2(d.G)>>>0;d=d.G;uD(d,d.G+q)}break;case 5:d=d.G;uD(d,d.G+4);break;case 3:q=d.T;do{if(!in6(d))throw Error("Unmatched start-group tag: stream EOF");if(d.U==4){if(d.T!=q)throw Error("Unmatched end-group tag");break}vV(d)}while(1);break;default:throw Wn6(d.U,d.j);}}; ol=function(d,q,T){var Y=d.G.j,e=w2(d.G)>>>0,U=d.G.G+e,b=U-Y;b<=0&&(d.G.j=U,T(q,d,void 0,void 0,void 0),b=U-d.G.G);if(b)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-b)+" bytes, either the data ended unexpectedly or the message misreported its own length"));d.G.G=U;d.G.j=Y}; gz=function(d){var q=w2(d.G)>>>0;d=d.G;var T=uk1(d,q);d=d.U;if(IG6){var Y=d,e;(e=J3)||(e=J3=new TextDecoder("utf-8",{fatal:!0}));q=T+q;Y=T===0&&q===Y.length?Y:Y.subarray(T,q);try{var U=e.decode(Y)}catch(N){if($Y===void 0){try{e.decode(new Uint8Array([128]))}catch(R){}try{e.decode(new Uint8Array([97])),$Y=!0}catch(R){$Y=!1}}!$Y&&(J3=void 0);throw N;}}else{U=T;q=U+q;T=[];for(var b=null,J,F;U=q?Ew():(F=d[U++],J<194||(F&192)!==128?(U--,Ew()):T.push((J&31)<<6|F&63)): J<240?U>=q-1?Ew():(F=d[U++],(F&192)!==128||J===224&&F<160||J===237&&F>=160||((e=d[U++])&192)!==128?(U--,Ew()):T.push((J&15)<<12|(F&63)<<6|e&63)):J<=244?U>=q-2?Ew():(F=d[U++],(F&192)!==128||(J<<28)+(F-144)>>30!==0||((e=d[U++])&192)!==128||((Y=d[U++])&192)!==128?(U--,Ew()):(J=(J&7)<<18|(F&63)<<12|(e&63)<<6|Y&63,J-=65536,T.push((J>>10&1023)+55296,(J&1023)+56320))):Ew(),T.length>=8192&&(b=QT1(b,T),T.length=0);U=QT1(b,T)}return U}; mX7=function(d){var q=w2(d.G)>>>0;return wZQ(d.G,q)}; Fj=function(d,q){this.U=d>>>0;this.G=q>>>0}; lG6=function(d){if(!d)return SDj||(SDj=new Fj(0,0));if(!/^\d+$/.test(d))return null;US(d);return new Fj(oc,VC)}; NV=function(d,q){this.U=d>>>0;this.G=q>>>0}; oS1=function(d){if(!d)return vSN||(vSN=new NV(0,0));if(!/^-?\d+$/.test(d))return null;US(d);return new NV(oc,VC)}; Rb=function(){this.G=[]}; xY=function(d,q,T){for(;T>0||q>127;)d.G.push(q&127|128),q=(q>>>7|T<<25)>>>0,T>>>=7;d.G.push(q)}; yu=function(d,q){for(;q>127;)d.G.push(q&127|128),q>>>=7;d.G.push(q)}; VvN=function(d,q){if(q>=0)yu(d,q);else{for(var T=0;T<9;T++)d.G.push(q&127|128),q>>=7;d.G.push(1)}}; h3=function(d,q){d.G.push(q>>>0&255);d.G.push(q>>>8&255);d.G.push(q>>>16&255);d.G.push(q>>>24&255)}; dQg=function(){this.j=[];this.U=0;this.G=new Rb}; H0=function(d,q){q.length!==0&&(d.j.push(q),d.U+=q.length)}; qMn=function(d,q){Qu(d,q,2);q=d.G.end();H0(d,q);q.push(d.U);return q}; T_Q=function(d,q){var T=q.pop();for(T=d.U+d.G.length()-T;T>127;)q.push(T&127|128),T>>>=7,d.U++;q.push(T);d.U++}; Qu=function(d,q,T){yu(d.G,q*8+T)}; YM_=function(d,q,T){if(T!=null){switch(typeof T){case "string":lG6(T)}Qu(d,q,1);switch(typeof T){case "number":d=d.G;dY(T);h3(d,oc);h3(d,VC);break;case "bigint":T=BigInt.asUintN(64,T);T=new Fj(Number(T&BigInt(4294967295)),Number(T>>BigInt(32)));d=d.G;q=T.G;h3(d,T.U);h3(d,q);break;default:T=lG6(T),d=d.G,q=T.G,h3(d,T.U),h3(d,q)}}}; MV=function(d,q,T){Qu(d,q,2);yu(d.G,T.length);H0(d,d.G.end());H0(d,T)}; c0=function(){function d(){throw Error();} Object.setPrototypeOf(d,d.prototype);return d}; Et=function(d,q,T){this.Kf=DY(d,q,T)}; eu2=function(d,q){if(q==null||q=="")return new d;q=JSON.parse(q);if(!Array.isArray(q))throw Error("dnarr");Cp(q,32);return new d(q)}; ab=function(d,q,T){this.Wp=d;this.Bp=q;d=Nx(j8);this.G=!!d&&T===d||!1}; A3=function(d,q){var T=T===void 0?j8:T;return new ab(d,q,T)}; bT6=function(d,q,T,Y,e){q=UQH(q,Y);q!=null&&(T=qMn(d,T),e(q,d),T_Q(d,T))}; Ot=function(d,q,T,Y){var e=Y[d];if(e)return e;e={};e.fQ=Y;e.Jy=ESf(Y[0]);var U=Y[1],b=1;U&&U.constructor===Object&&(e.extensions=U,U=Y[++b],typeof U==="function"&&(e.RY=!0,pg!=null||(pg=U),ZL!=null||(ZL=Y[b+1]),U=Y[b+=2]));for(var J={};U&&Array.isArray(U)&&U.length&&typeof U[0]==="number"&&U[0]>0;){for(var F=0;F>BigInt(32)));xY(d.G,T.U,T.G);break;default:T=oS1(q),xY(d.G,T.U,T.G)}}}; v0=function(d,q,T){q=Nb(q);q!=null&&q!=null&&(Qu(d,T,0),VvN(d.G,q))}; Qr1=function(d,q,T){q=q==null||typeof q==="boolean"?q:typeof q==="number"?!!q:void 0;q!=null&&(Qu(d,T,0),d.G.G.push(q?1:0))}; MV1=function(d,q,T){q=AA(q);q!=null&&MV(d,T,jTj(q))}; c4D=function(d,q,T,Y,e){q=UQH(q,Y);q!=null&&(T=qMn(d,T),e(q,d),T_Q(d,T))}; jr2=function(){var d=ob;this.G=EEg;this.isRepeated=0;this.U=hI;this.defaultValue=void 0;this.j=d.messageId!=null?i$:void 0}; avg=function(d,q){return function(T,Y){var e={Re:!0};Y&&Object.assign(e,Y);T=zS2(T,void 0,void 0,e);try{var U=new d,b=U.Kf;B0(q)(b,T);var J=U}finally{T.free()}return J}}; A4_=function(d){return function(){var q=new dQg;xQ6(this.Kf,q,Ot(DL,kY,wz,d));H0(q,q.G.end());for(var T=new Uint8Array(q.U),Y=q.j,e=Y.length,U=0,b=0;b-1)return q.apply(null,g.RQ(T));try{return d.G=d.j.G.now(),q.apply(null,g.RQ(T))}finally{d.T+=d.j.G.now()-d.G,d.G=-1,d.U+=1}}}; ZTD=function(d,q){this.U=d;this.j=q;this.G=new pB_(d)}; OT7=function(){this.G={}}; r42=function(){var d=T3().flags,q=nE6;d=d.G[q.key];if(q.valueType==="proto"){try{var T=JSON.parse(d);if(Array.isArray(T))return T}catch(Y){}return q.defaultValue}return typeof d===typeof q.defaultValue?d:q.defaultValue}; GO7=function(){this.j=void 0;this.U=this.X=0;this.S=-1;this.QU=new EN;jY(this.QU,"mv",tVn).G=!0;jY(this.QU,"omid",Zm);jY(this.QU,"epoh",Zm).G=!0;jY(this.QU,"epph",Zm).G=!0;jY(this.QU,"umt",Zm).G=!0;jY(this.QU,"phel",Zm).G=!0;jY(this.QU,"phell",Zm).G=!0;jY(this.QU,"oseid",B_Q).G=!0;var d=this.QU;d.G.sloi||(d.G.sloi=new M$);d.G.sloi.G=!0;jY(this.QU,"mm",Yf);jY(this.QU,"ovms",KZ6).G=!0;jY(this.QU,"xdi",Zm).G=!0;jY(this.QU,"amp",Zm).G=!0;jY(this.QU,"prf",Zm).G=!0;jY(this.QU,"gtx",Zm).G=!0;jY(this.QU, "mvp_lv",Zm).G=!0;jY(this.QU,"ssmol",Zm).G=!0;jY(this.QU,"fmd",Zm).G=!0;jY(this.QU,"gen204simple",Zm);this.G=new ZTD(cz(),this.QU);this.T=!1;this.flags=new OT7}; T3=function(){return QC(GO7)}; LZ7=function(d,q,T,Y){if(Math.random()<(Y||d.G))try{if(T instanceof FQ)var e=T;else e=new FQ,$Q(T,function(b,J){var F=e,N=F.T++;b=Nq(J,b);F.G.push(N);F.U[N]=b}); var U=e.Hl(d.U,"pagead2.googlesyndication.com","/pagead/gen_204?id="+q+"&");U&&(cz(),x$g(U))}catch(b){}}; kOH=function(d,q,T){T=T===void 0?{}:T;this.error=d;this.meta=T;this.context=q.context;this.msg=q.message||"";this.id=q.id||"jserror"}; PYD=function(){var d=d===void 0?g.oQ:d;return(d=d.performance)&&d.now&&d.timing?Math.floor(d.now()+d.timing.navigationStart):g.F_()}; WZn=function(){var d=d===void 0?g.oQ:d;return(d=d.performance)&&d.now?d.now():null}; CYY=function(d,q,T){this.label=d;this.type=q;this.value=T;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; Ub=function(){var d=window;this.events=[];this.U=d||g.oQ;var q=null;d&&(d.google_js_reporting_queue=d.google_js_reporting_queue||[],this.events=d.google_js_reporting_queue,q=d.google_measure_js_timing);this.G=eG()||(q!=null?q:Math.random()<1)}; uE6=function(d){d&&bB&&eG()&&(bB.clearMarks("goog_"+d.label+"_"+d.uniqueId+"_start"),bB.clearMarks("goog_"+d.label+"_"+d.uniqueId+"_end"))}; Xm=function(d,q,T,Y,e,U,b){var J="";d&&(J+=d+":");T&&(J+="//",q&&(J+=q+"@"),J+=T,Y&&(J+=":"+Y));e&&(J+=e);U&&(J+="?"+U);b&&(J+="#"+b);return J}; g.Jq=function(d){return d.match(DQn)}; wB_=function(d){return d?decodeURI(d):d}; g.sb=function(d){return wB_(g.Jq(d)[3]||null)}; $f=function(d){return wB_(g.Jq(d)[5]||null)}; g.fvY=function(d){d=g.Jq(d);return Xm(d[1],d[2],d[3],d[4])}; gQ=function(d){d=g.Jq(d);return Xm(null,null,null,null,d[5],d[6],d[7])}; zu_=function(d){var q=d.indexOf("#");return q<0?d:d.slice(0,q)}; Fm=function(d,q){if(d){d=d.split("&");for(var T=0;T=0){var U=d[T].substring(0,Y);e=d[T].substring(Y+1)}else U=d[T];q(U,e?OD(e):"")}}}; Nj=function(d,q){if(!q)return d;var T=d.indexOf("#");T<0&&(T=d.length);var Y=d.indexOf("?");if(Y<0||Y>T){Y=T;var e=""}else e=d.substring(Y+1,T);d=[d.slice(0,Y),e,d.slice(T)];T=d[1];d[1]=q?T?T+"&"+q:q:T;return d[0]+(d[1]?"?"+d[1]:"")+d[2]}; Rq=function(d,q,T){if(Array.isArray(q))for(var Y=0;Y=0&&qT)e=T;Y+=q.length+1;return OD(d.slice(Y,e!==-1?e:0))}; Eb=function(d,q){for(var T=d.search(Q6),Y=0,e,U=[];(e=HK(d,Y,q,T))>=0;)U.push(d.substring(Y,e)),Y=Math.min(d.indexOf("&",e)+1||T,T);U.push(d.slice(Y));return U.join("").replace(mQj,"$1")}; SMj=function(d,q,T){return hq(Eb(d,q),q,T)}; lv6=function(){var d=jG;this.G=aq;this.g7="jserror";this.K_=!0;this.CU=null;this.U=this.RT;this.EF=d===void 0?null:d}; vE1=function(d,q,T){var Y=Aq;return qj(T3().G.G,function(){try{if(Y.EF&&Y.EF.G){var e=Y.EF.start(d.toString(),3);var U=q();Y.EF.end(e)}else U=q()}catch(J){var b=Y.K_;try{uE6(e),b=Y.U(d,new p5(Z7(J)),void 0,T)}catch(F){Y.RT(217,F)}if(!b)throw J;}return U})()}; Ob=function(d,q,T,Y){return qj(T3().G.G,function(){var e=g.CN.apply(0,arguments);return vE1(d,function(){return q.apply(T,e)},Y)})}; Z7=function(d){var q=d.toString();d.name&&q.indexOf(d.name)==-1&&(q+=": "+d.name);d.message&&q.indexOf(d.message)==-1&&(q+=": "+d.message);if(d.stack)a:{d=d.stack;var T=q;try{d.indexOf(T)==-1&&(d=T+"\n"+d);for(var Y;d!=Y;)Y=d,d=d.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");q=d.replace(/\n */g,"\n");break a}catch(e){q=T;break a}q=void 0}return q}; p5=function(d){kOH.call(this,Error(d),{message:d})}; oEY=function(){OM&&typeof OM.google_measure_js_timing!="undefined"&&(OM.google_measure_js_timing||jG.disable())}; VV1=function(d){Aq.CU=function(q){g.Sj(d,function(T){T(q)})}}; dqN=function(d,q){return vE1(d,q)}; n5=function(d,q){return Ob(d,q)}; rQ=function(d,q,T,Y){Aq.RT(d,q,T,Y)}; tq=function(){return Date.now()-qwN}; Tv_=function(){var d=T3().j,q=BK>=0?tq()-BK:-1,T=K5?tq()-G3:-1,Y=L5>=0?tq()-L5:-1;if(d==947190542)return 100;if(d==79463069)return 200;d=[2E3,4E3];var e=[250,500,1E3];rQ(637,Error(),.001);var U=q;T!=-1&&T1500&&Y<4E3?500:b}; kf=function(d,q,T){var Y=new GO(0,0,0,0);this.time=d;this.volume=null;this.j=q;this.G=Y;this.U=T}; PK=function(d,q,T,Y,e,U,b,J){this.T=d;this.L=q;this.j=T;this.X=Y;this.G=e;this.S=U;this.U=b;this.B=J}; ekN=function(d){var q=d!==d.top,T=d.top===U$D(d),Y=-1,e=0;if(q&&T&&d.top.mraid){Y=3;var U=d.top.mraid}else Y=(U=d.mraid)?q?T?2:1:0:-1;U&&(U.IS_GMA_SDK||(e=2),BIf(YwH,function(b){return typeof U[b]==="function"})||(e=1)); return{oi:U,compatibility:e,POf:Y}}; UqY=function(){var d=window.document;return d&&typeof d.elementFromPoint==="function"}; bpn=function(d,q,T){if(d&&q!==null&&q!=q.top){if(!q.top)return new g.zP(-12245933,-12245933);q=q.top}try{return(T===void 0?0:T)?(new g.zP(q.innerWidth,q.innerHeight)).round():GlN(q||window).round()}catch(Y){return new g.zP(-12245933,-12245933)}}; WK=function(d,q,T){try{if(d){if(!q.top)return new GO(-12245933,-12245933,-12245933,-12245933);q=q.top}var Y=bpn(d,q,T),e=Y.height,U=Y.width;if(U===-12245933)return new GO(U,U,U,U);var b=VY(q.document);var J=kl7(b.G);var F=J.x,N=J.y;return new GO(N,F+U,N+e,F)}catch(R){return new GO(-12245933,-12245933,-12245933,-12245933)}}; C5=function(d,q){q=Math.pow(10,q);return Math.floor(d*q)/q}; Xz1=function(d){return new GO(d.top,d.right,d.bottom,d.left)}; J0Q=function(d){var q=d.top||0,T=d.left||0;return new GO(q,T+(d.width||0),q+(d.height||0),T)}; uB=function(d){return d!=null&&d>=0&&d<=1}; scf=function(){var d=g.k9();return d?D7("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(q){return B2(d,q)})||B2(d,"OMI/")&&!B2(d,"XiaoMi/")?!0:B2(d,"Presto")&&B2(d,"Linux")&&!B2(d,"X11")&&!B2(d,"Android")&&!B2(d,"Mobi"):!1}; $qD=function(){this.j=!J0(OM.top);this.isMobileDevice=XQ()||ocD();var d=gv();this.domain=d.length>0&&d[d.length-1]!=null&&d[d.length-1].url!=null?g.sb(d[d.length-1].url)||"":"";this.G=new GO(0,0,0,0);this.T=new g.zP(0,0);this.S=new g.zP(0,0);this.L=new GO(0,0,0,0);this.frameOffset=new g.wt(0,0);this.X=0;this.B=!1;this.U=!(!OM||!ekN(OM).oi);this.update(OM)}; gQ6=function(d,q){q&&q.screen&&(d.T=new g.zP(q.screen.width,q.screen.height))}; FA6=function(d,q){a:{var T=d.G?new g.zP(LT(d.G),d.G.getHeight()):new g.zP(0,0);q=q===void 0?OM:q;q!==null&&q!=q.top&&(q=q.top);var Y=0,e=0;try{var U=q.document,b=U.body,J=U.documentElement;if(U.compatMode=="CSS1Compat"&&J.scrollHeight)Y=J.scrollHeight!=T.height?J.scrollHeight:J.offsetHeight,e=J.scrollWidth!=T.width?J.scrollWidth:J.offsetWidth;else{var F=J.scrollHeight,N=J.scrollWidth,R=J.offsetHeight,x=J.offsetWidth;J.clientHeight!=R&&(F=b.scrollHeight,N=b.scrollWidth,R=b.offsetHeight,x=b.offsetWidth); F>T.height?F>R?(Y=F,e=N):(Y=R,e=x):F0||d.B)return!0;d=cz().U.isVisible();var q=YQ(f5)===0;return d||q}; wQ=function(){return QC($qD)}; iB=function(d){this.j=d;this.U=0;this.G=null}; Iq=function(d,q,T){this.j=d;this.RU=T===void 0?"na":T;this.S=[];this.isInitialized=!1;this.T=new kf(-1,!0,this);this.G=this;this.B=q;this.lr=this.K=!1;this.z2="uk";this.rO=!1;this.X=!0}; SG=function(d,q){g.cR(d.S,q)||(d.S.push(q),q.GK(d.G),q.BZ(d.T),q.c$()&&(d.K=!0))}; NvX=function(d){d=d.G;d.UB();d.l7();var q=wQ();q.L=WK(!1,d.j,q.isMobileDevice);FA6(wQ(),d.j);d.T.G=d.qg()}; Rkg=function(d){d.K=d.S.length?D7(d.S,function(q){return q.c$()}):!1}; xqY=function(d){var q=g.rL(d.S);g.Sj(q,function(T){T.BZ(d.T)})}; lB=function(d){var q=g.rL(d.S);g.Sj(q,function(T){T.GK(d.G)}); d.G!=d||xqY(d)}; vK=function(d,q,T,Y){this.element=d;this.G=new GO(0,0,0,0);this.j=null;this.X=new GO(0,0,0,0);this.U=q;this.QU=T;this.rO=Y;this.yv=!1;this.timestamp=-1;this.K=new PK(q.T,this.element,this.G,new GO(0,0,0,0),0,0,tq(),0);this.S=void 0}; y01=function(d,q){return d.S?new GO(Math.max(q.top+d.S.top,q.top),Math.min(q.left+d.S.right,q.right),Math.min(q.top+d.S.bottom,q.bottom),Math.max(q.left+d.S.left,q.left)):q.clone()}; oq=function(d){this.S=!1;this.G=d;this.T=function(){}}; hk2=function(d,q,T){this.j=T===void 0?0:T;this.U=d;this.G=q==null?"":q}; HpY=function(d){switch(Math.trunc(d.j)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; Qc7=function(d,q){return d.jq.j?!1:d.Uq.U?!1:typeof d.Gtypeof q.G?!1:d.G0?Y[T]-Y[T-1]:Y[T]})}; gD=function(){this.U=new UR;this.RU=this.aU=0;this.xx=new e9;this.UD=this.L=-1;this.Bv=1E3;this.kx=new UR([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.z2=this.yv=-1}; Fc=function(d,q){return Z$Y(d.U,q===void 0?!0:q)}; N8=function(d,q,T,Y){var e=e===void 0?!1:e;T=Ob(Y,T);TI(d,q,T,{capture:e})}; xt=function(d,q){q=RO(q);return q===0?0:RO(d)/q}; RO=function(d){return Math.max(d.bottom-d.top,0)*Math.max(d.right-d.left,0)}; rA7=function(d,q){if(!d||!q)return!1;for(var T=0;d!==null&&T++<100;){if(d===q)return!0;try{if(d=d.parentElement||d){var Y=oy(d),e=Y&&sM(Y),U=e&&e.frameElement;U&&(d=U)}}catch(b){break}}return!1}; tE_=function(d,q,T){if(!d||!q)return!1;q=PB(d.clone(),-q.left,-q.top);d=(q.left+q.right)/2;q=(q.top+q.bottom)/2;J0(window.top)&&window.top&&window.top.document&&(window=window.top);if(!UqY())return!1;d=window.document.elementFromPoint(d,q);if(!d)return!1;q=(q=(q=oy(T))&&q.defaultView&&q.defaultView.frameElement)&&rA7(q,d);var Y=d===T;d=!Y&&d&&MQ(d,function(e){return e===T}); return!(q||Y||d)}; BYH=function(d,q,T,Y){return wQ().j?!1:LT(d)<=0||d.getHeight()<=0?!0:T&&Y?dqN(208,function(){return tE_(d,q,T)}):!1}; M8=function(d,q,T){g.W.call(this);this.position=KTH.clone();this.fJ=this.KB();this.H5=-2;this.timeCreated=Date.now();this.qB=-1;this.ul=q;this.AS=null;this.cC=!1;this.JL=null;this.opacity=-1;this.requestSource=T;this.mpv=!1;this.v5=function(){}; this.Kr=function(){}; this.tp=new u_N;this.tp.Qm=d;this.tp.G=d;this.Vh=!1;this.zw={Fo:null,LT:null};this.Bw=!0;this.iK=null;this.tO=this.Hc=!1;T3().X++;this.zN=this.Pt();this.ue=-1;this.vl=null;this.hasCompleted=this.bJ=!1;this.QU=new EN;u1I(this.QU);Gin(this);this.requestSource==1?aT(this.QU,"od",1):aT(this.QU,"od",0)}; Gin=function(d){d=d.tp.Qm;var q;if(q=d&&d.getAttribute)q=/-[a-z]/.test("googleAvInapp")?!1:LT7&&d.dataset?"googleAvInapp"in d.dataset:d.hasAttribute?d.hasAttribute("data-"+R7D()):!!d.getAttribute("data-"+R7D());q&&(wQ().U=!0)}; c5=function(d,q){q!=d.tO&&(d.tO=q,d=wQ(),q?d.X++:d.X>0&&d.X--)}; ki6=function(d,q){if(d.vl){if(q.getName()===d.vl.getName())return;d.vl.dispose();d.vl=null}q=q.create(d.tp.G,d.QU,d.c$());if(q=q!=null&&q.observe()?q:null)d.vl=q}; Pl7=function(d,q,T){if(!d.AS||d.ul==-1||q.U===-1||d.AS.U===-1)return 0;d=q.U-d.AS.U;return d>T?0:d}; WT1=function(d,q,T){if(d.vl){d.vl.tv();var Y=d.vl.K,e=Y.T,U=e.G;if(Y.X!=null){var b=Y.j;d.JL=new g.wt(b.left-U.left,b.top-U.top)}U=d.yG()?Math.max(Y.G,Y.S):Y.G;b={};e.volume!==null&&(b.volume=e.volume);e=d.Yn(Y);d.AS=Y;d.S5(U,q,T,!1,b,e,Y.B)}}; ClX=function(d){if(d.cC&&d.iK){var q=Az(d.QU,"od")==1,T=wQ().G,Y=d.iK,e=d.vl?d.vl.getName():"ns",U=d.JL,b=new g.zP(LT(T),T.getHeight());T=d.yG();d={M$v:e,JL:U,UMD:b,yG:T,Rc:d.zN.Rc,w4O:q};if(q=Y.U){q.tv();e=q.K;U=e.T.G;var J=b=null;e.X!=null&&U&&(b=e.j,b=new g.wt(b.left-U.left,b.top-U.top),J=new g.zP(U.right-U.left,U.bottom-U.top));e=T?Math.max(e.G,e.S):e.G;T={M$v:q.getName(),JL:b,UMD:J,yG:T,w4O:!1,Rc:e}}else T=null;T&&aY_(Y,d,T)}}; ueQ=function(d,q,T){q&&(d.v5=q);T&&(d.Kr=T)}; g.ER=function(){}; g.j9=function(d){return{value:d,done:!1}}; Dbf=function(){this.T=this.G=this.j=this.U=this.S=0}; wEn=function(d){var q={};var T=g.F_()-d.S;q=(q.ptlt=T,q);(T=d.U)&&(q.pnk=T);(T=d.j)&&(q.pnc=T);(T=d.T)&&(q.pnmm=T);(d=d.G)&&(q.pns=d);return q}; fY1=function(){vR.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; aO=function(d){return uB(d.volume)&&d.volume>0}; Ay=function(d,q,T,Y){T=T===void 0?!0:T;Y=Y===void 0?function(){return!0}:Y; return function(e){var U=e[d];if(Array.isArray(U)&&Y(e))return z1N(U,q,T)}}; pF=function(d,q){return function(T){return q(T)?T[d]:void 0}}; i$j=function(d){return function(q){for(var T=0;T0?U[e-1]+1:0,Y+1).reduce(function(b,J){return b+J},0)})}; IYY=function(){this.U=this.G=""}; mbn=function(){}; OR=function(d,q){var T={};if(d!==void 0)if(q!=null)for(var Y in q){var e=q[Y];Y in Object.prototype||e!=null&&(T[Y]=typeof e==="function"?e(d):d[e])}else g.hz(T,d);return q8(dD(new V6,T))}; SS1=function(){var d={};this.U=(d.vs=[1,0],d.vw=[0,1],d.am=[2,2],d.a=[4,4],d.f=[8,8],d.bm=[16,16],d.b=[32,32],d.avw=[0,64],d.avs=[64,0],d.pv=[256,256],d.gdr=[0,512],d.p=[0,1024],d.r=[0,2048],d.m=[0,4096],d.um=[0,8192],d.ef=[0,16384],d.s=[0,32768],d.pmx=[0,16777216],d.mut=[33554432,33554432],d.umutb=[67108864,67108864],d.tvoff=[134217728,134217728],d);this.G={};for(var q in this.U)this.U[q][1]>0&&(this.G[q]=0);this.j=0}; nF=function(d,q){var T=d.U[q],Y=T[1];d.j+=T[0];Y>0&&d.G[q]==0&&(d.G[q]=1)}; lY1=function(d){var q=g.UN(d.U),T=0,Y;for(Y in d.G)g.cR(q,Y)&&d.G[Y]==1&&(T+=d.U[Y][1],d.G[Y]=2);return T}; vj6=function(d){var q=0,T;for(T in d.G){var Y=d.G[T];if(Y==1||Y==2)q+=d.U[T][1]}return q}; rD=function(){this.G=this.U=0}; ty=function(){gD.call(this);this.j=new e9;this.qk=this.K=this.rO=0;this.B=-1;this.wO=new e9;this.S=new e9;this.G=new UR;this.X=this.T=-1;this.lr=new e9;this.Bv=2E3;this.dO=new rD;this.Fw=new rD;this.AF=new rD}; B5=function(d,q,T){var Y=d.qk;K5||T||d.B==-1||(Y+=q-d.B);return Y}; oj6=function(){this.j=!1}; G1=function(d,q){this.j=!1;this.T=d;this.K=q;this.S=0}; LF=function(d,q){G1.call(this,d,q);this.L=[]}; VE2=function(){}; kt=function(){}; P5=function(d,q,T,Y){vK.call(this,d,q,T,Y)}; W5=function(d,q,T){vK.call(this,null,d,q,T);this.B=d.isActive();this.L=0}; CF=function(d){return[d.top,d.left,d.bottom,d.right]}; up=function(d,q,T,Y,e,U){U=U===void 0?new kt:U;M8.call(this,q,T,Y);this.AT=e;this.Pm=0;this.uw={};this.Dh=new SS1;this.t$={};this.UN="";this.AF=null;this.lF=!1;this.G=[];this.QY=U.U();this.X=U.j();this.T=null;this.j=-1;this.RU=this.K=void 0;this.UD=this.lr=0;this.z2=-1;this.Bv=this.Fw=!1;this.rO=this.B=this.U=this.c6=this.fn=0;new UR;this.dO=this.qk=0;this.xx=-1;this.eV=0;this.L=g.r_;this.yv=[this.KB()];this.q5=2;this.nh={};this.nh.pause="p";this.nh.resume="r";this.nh.skip="s";this.nh.mute="m";this.nh.unmute= "um";this.nh.exitfullscreen="ef";this.S=null;this.kx=this.wO=!1;this.Qp=Math.floor(Date.now()/1E3-1704067200);this.aU=0}; Dl=function(d){d.hasCompleted=!0;d.eV!=0&&(d.eV=3)}; wD=function(d){return d===void 0?d:Number(d)?C5(d,3):0}; fF=function(d,q){return d.yv[q!=null&&qMath.max(1E4,d.j/3)?0:q);var T=d.L(d)||{};T=T.currentTime!==void 0?T.currentTime:d.lr;var Y=T-d.lr,e=0;Y>=0?(d.UD+=q,d.dO+=Math.max(q-Y,0),e=Math.min(Y,d.UD)):d.qk+=Math.abs(Y);Y!=0&&(d.UD=0);d.xx==-1&&Y>0&&(d.xx=L5>=0?tq()-L5:-1);d.lr=T;return e}; T2I=function(d,q){D7(d.X,function(T){return T.T==q.T})||d.X.push(q)}; YyH=function(d){var q=Jy(d.Rk().G,1);return z1(d,q)}; z1=function(d,q,T){return q>=15E3?!0:d.Fw?(T===void 0?0:T)?!0:d.j>0?q>=d.j/2:d.z2>0?q>=d.z2:!1:!1}; eZN=function(d){var q=C5(d.zN.Rc,2),T=d.Dh.j,Y=d.zN,e=fF(d),U=wD(e.T),b=wD(e.X),J=wD(Y.volume),F=C5(e.L,2),N=C5(e.UD,2),R=C5(Y.Rc,2),x=C5(e.yv,2),y=C5(e.z2,2);Y=C5(Y.Cq,2);var h=d.eE().clone().round();d=d.vl&&d.vl.j?(d.vl?d.vl.j:null).clone().round():null;e=Fc(e,!1);return{lfx:q,WS:T,jB:U,KO:b,h5:J,TR:F,wE:N,Rc:R,Q3:x,Pe:y,Cq:Y,position:h,nk:d,tL:e}}; b2Y=function(d,q){UA1(d.G,q,function(){return{lfx:0,WS:void 0,jB:-1,KO:-1,h5:-1,TR:-1,wE:-1,Rc:-1,Q3:-1,Pe:-1,Cq:-1,position:void 0,nk:void 0,tL:[]}}); d.G[q]=eZN(d)}; UA1=function(d,q,T){for(var Y=d.length;Y0?1:0;x.atos= bp(N.G);x.ssb=bp(N.kx,!1);x.amtos=Z$Y(N.G,!1);x.uac=d.fn;x.vpt=N.j.G;R=="nio"&&(x.nio=1,x.avms="nio");x.gmm="4";x.gdr=z1(d,N.j.G,!0)?1:0;x.efpf=d.q5;if(R=="gsv"||R=="nis")R=d.vl,R.L>0&&(x.nnut=R.L);x.tcm=dA1(d);x.nmt=d.qk;x.bt=d.dO;x.pst=d.xx;x.vpaid=d.K;x.dur=d.j;x.vmtime=d.lr;x.is=d.Dh.j;d.G.length>=1&&(x.i0=d.G[0].WS,x.a0=[d.G[0].h5],x.c0=[d.G[0].Rc],x.ss0=[d.G[0].Cq],R=d.G[0].position,U=d.G[0].nk,x.p0=R?CF(R):void 0,R&&U&&!kE(U,R)&&(x.cp0=CF(U)));d.G.length>=2&&(x.i1=d.G[1].WS,x.a1=mv(d.G[1].jB, d.G[1].h5,d.G[1].KO),x.c1=mv(d.G[1].TR,d.G[1].Rc,d.G[1].wE),x.ss1=mv(d.G[1].Q3,d.G[1].Cq,d.G[1].Pe),R=d.G[1].position,U=d.G[1].nk,x.p1=R?CF(R):void 0,R&&U&&!kE(U,R)&&(x.cp1=CF(U)),x.mtos1=d.G[1].tL);d.G.length>=3&&(x.i2=d.G[2].WS,x.a2=mv(d.G[2].jB,d.G[2].h5,d.G[2].KO),x.c2=mv(d.G[2].TR,d.G[2].Rc,d.G[2].wE),x.ss2=mv(d.G[2].Q3,d.G[2].Cq,d.G[2].Pe),R=d.G[2].position,U=d.G[2].nk,x.p2=R?CF(R):void 0,R&&U&&!kE(U,R)&&(x.cp2=CF(U)),x.mtos2=d.G[2].tL);d.G.length>=4&&(x.i3=d.G[3].WS,x.a3=mv(d.G[3].jB,d.G[3].h5, d.G[3].KO),x.c3=mv(d.G[3].TR,d.G[3].Rc,d.G[3].wE),x.ss3=mv(d.G[3].Q3,d.G[3].Cq,d.G[3].Pe),R=d.G[3].position,U=d.G[3].nk,x.p3=R?CF(R):void 0,R&&U&&!kE(U,R)&&(x.cp3=CF(U)),x.mtos3=d.G[3].tL);x.cs=vj6(d.Dh);q&&(x.ic=lY1(d.Dh),x.dvpt=N.j.U,x.dvs=$t(N.U,.5),x.dfvs=$t(N.U,1),x.davs=$t(N.G,.5),x.dafvs=$t(N.G,1),T&&(N.j.U=0,O$H(N.U),O$H(N.G)),d.i8()&&(x.dtos=N.rO,x.dav=N.K,x.dtoss=d.Pm+1,T&&(N.rO=0,N.K=0,d.Pm++)),x.dat=N.S.U,x.dft=N.lr.U,T&&(N.S.U=0,N.lr.U=0));x.ps=[J.S.width,J.S.height];x.bs=[LT(J.G),J.G.getHeight()]; x.scs=[J.T.width,J.T.height];x.dom=J.domain;d.c6&&(x.vds=d.c6);if(d.X.length>0||d.QY)q=g.rL(d.X),d.QY&&q.push(d.QY),x.pings=g.yC(q,function(y){return y.toString()}); q=g.yC(g.Zl(d.X,function(y){return y.X()}),function(y){return y.getId()}); AY_(q);x.ces=q;d.U&&(x.vmer=d.U);d.B&&(x.vmmk=d.B);d.rO&&(x.vmiec=d.rO);x.avms=d.vl?d.vl.getName():"ns";d.vl&&g.hz(x,d.vl.EX());Y?(x.c=C5(d.zN.Rc,2),x.ss=C5(d.zN.Cq,2)):x.tth=tq()-$AN;x.mc=C5(N.UD,2);x.nc=C5(N.L,2);x.mv=wD(N.X);x.nv=wD(N.T);x.lte=C5(d.H5,2);Y=fF(d,e);Fc(N);x.qmtos=Fc(Y);x.qnc=C5(Y.L,2);x.qmv=wD(Y.X);x.qnv=wD(Y.T);x.qas=Y.T>0?1:0;x.qi=d.UN;x.avms||(x.avms="geo");x.psm=N.dO.G;x.psv=N.dO.getValue();x.psfv=N.Fw.getValue();x.psa=N.AF.getValue();F=Wjg(F.QU);F.length&&(x.veid=F);d.S&&g.hz(x, wEn(d.S));x.avas=d.NW();x.vs=d.EY();x.co=gJX(d);x.tm=N.aU;x.tu=N.RU;return x}; XVX=function(d,q){if(g.cR(Fg7,q))return!0;var T=d.uw[q];return T!==void 0?(d.uw[q]=!0,!T):!1}; gJX=function(d){var q=d.aU.toString(10).padStart(2,"0");q=""+d.Qp+q;d.aU<99&&d.aU++;return q}; RZ1=function(){this.G={};var d=sM();S9(this,d,document);var q=N2j();try{if("1"==q){for(var T=d.parent;T!=d.top;T=T.parent)S9(this,T,T.document);S9(this,d.top,d.top.document)}}catch(Y){}}; N2j=function(){var d=document.documentElement;try{if(!J0(sM().top))return"2";var q=[],T=sM(d.ownerDocument);for(d=T;d!=T.top;d=d.parent)if(d.frameElement)q.push(d.frameElement);else break;return q&&q.length!=0?"1":"0"}catch(Y){return"2"}}; S9=function(d,q,T){N8(T,"mousedown",function(){return xAY(d)},301); N8(q,"scroll",function(){return yII(d)},302); N8(T,"touchmove",function(){return hZI(d)},303); N8(T,"mousemove",function(){return H2I(d)},304); N8(T,"keydown",function(){return Ql6(d)},305)}; xAY=function(d){g.os(d.G,function(q){q.j>1E5||++q.j})}; yII=function(d){g.os(d.G,function(q){q.G>1E5||++q.G})}; hZI=function(d){g.os(d.G,function(q){q.G>1E5||++q.G})}; Ql6=function(d){g.os(d.G,function(q){q.U>1E5||++q.U})}; H2I=function(d){g.os(d.G,function(q){q.T>1E5||++q.T})}; MsQ=function(){this.G=[];this.U=[]}; lp=function(d,q){return g.QN(d.G,function(T){return T.UN==q})}; cIf=function(d,q){return q?g.QN(d.G,function(T){return T.tp.Qm==q}):null}; EJn=function(d,q){return g.QN(d.U,function(T){return T.T3()==2&&T.UN==q})}; oO=function(){var d=v5;return d.G.length==0?d.U:d.U.length==0?d.G:g.nB(d.U,d.G)}; jlN=function(d,q){d=q.T3()==1?d.G:d.U;var T=HR(d,function(Y){return Y==q}); return T!=-1?(d.splice(T,1),q.vl&&q.vl.unobserve(),q.dispose(),!0):!1}; acQ=function(d){var q=v5;if(jlN(q,d)){switch(d.T3()){case 0:var T=function(){return null}; case 2:T=function(){return EJn(q,d.UN)}; break;case 1:T=function(){return lp(q,d.UN)}}for(var Y=T();Y;Y=T())jlN(q,Y)}}; AIn=function(d){var q=v5;d=g.Zl(d,function(T){return!cIf(q,T.tp.Qm)}); q.G.push.apply(q.G,g.RQ(d))}; pVn=function(d){var q=[];g.Sj(d,function(T){D7(v5.G,function(Y){return Y.tp.Qm===T.tp.Qm&&Y.UN===T.UN})||(v5.G.push(T),q.push(T))})}; Vg=function(){this.G=this.U=null}; Z26=function(d,q){function T(Y,e){q(Y,e)} if(d.U==null)return!1;d.G=g.QN(d.U,function(Y){return Y!=null&&Y.oM()}); d.G&&(d.G.init(T)?NvX(d.G.G):q(d.G.G.gD(),d.G));return d.G!=null}; dS=function(d){d=O2N(d);oq.call(this,d.length?d[d.length-1]:new Iq(OM,0));this.j=d;this.U=null}; O2N=function(d){if(!d.length)return[];d=(0,g.Zl)(d,function(T){return T!=null&&T.mU()}); for(var q=1;qT.time?q:T},d[0])}; eI=function(d){d=d===void 0?OM:d;oq.call(this,new Iq(d,2))}; Ur=function(){var d=B2f();Iq.call(this,OM.top,d,"geo")}; B2f=function(){T3();var d=wQ();return d.j||d.U?0:2}; Kg_=function(){}; b3=function(){this.done=!1;this.G={DU:0,Y3:0,xsw:0,n6:0,Wt:-1,Rq:0,JG:0,v8:0,yEx:0};this.S=null;this.X=!1;this.j=null;this.L=0;this.U=new iB(this)}; JD=function(){var d=Xz;d.X||(d.X=!0,Ggn(d,function(){return d.T.apply(d,g.RQ(g.CN.apply(0,arguments)))}),d.T())}; Lg6=function(){QC(Kg_);var d=QC(Vg);d.G!=null&&d.G.G?NvX(d.G.G):wQ().update(OM)}; sr=function(d,q,T){if(!d.done&&(d.U.cancel(),q.length!=0)){d.j=null;try{Lg6();var Y=tq();T3().S=Y;if(QC(Vg).G!=null)for(var e=0;e=0?tq()-BK:-1,J=tq();e.G.Wt==-1&&(b=J);var F=wQ(),N=T3(),R=ph(N.QU),x=oO();try{if(x.length>0){var y=F.G;y&&(R.bs=[LT(y),y.getHeight()]);var h=F.S;h&&(R.ps=[h.width,h.height]);OM.screen&&(R.scs=[OM.screen.width,OM.screen.height])}else R.url=encodeURIComponent(OM.location.href.substring(0,512)),U.referrer&&(R.referrer=encodeURIComponent(U.referrer.substring(0,512))); R.tt=b;R.pt=BK;R.bin=N.U;OM.google_osd_load_pub_page_exp!==void 0&&(R.olpp=OM.google_osd_load_pub_page_exp);R.deb=[1,e.G.DU,e.G.Y3,e.G.n6,e.G.Wt,0,e.U.U,e.G.Rq,e.G.JG,e.G.v8,e.G.yEx,-1].join(";");R.tvt=PDH(e,J);F.U&&(R.inapp=1);if(OM!==null&&OM!=OM.top){x.length>0&&(R.iframe_loc=encodeURIComponent(OM.location.href.substring(0,512)));var H=F.L;R.is=[LT(H),H.getHeight()]}}catch(a){R.error=1}Xz.j=R}y=g.x9(Xz.j);h=T3().G;Az(h.j,"prf")==1?(H=new dQ,e=h.G,U=0,e.G>-1&&(U=e.j.G.now()-e.G),H=X2(H,1,Xe(e.T+ U),0),e=h.G,H=X2(H,5,Fe(e.G>-1?e.U+1:e.U),0),H=X2(H,2,cE(h.U.G.j()),"0"),H=X2(H,3,cE(h.U.G.U()),"0"),h=X2(H,4,cE(h.U.G.G()),"0"),H={},h=(H.pf=g.A0(h.j()),H)):h={};g.hz(y,h);g.hz(q,Y,T,y,d())}])}; u2g=function(){var d=CDI||OM;if(!d)return"";var q=[];if(!d.location||!d.location.href)return"";q.push("url="+encodeURIComponent(d.location.href.substring(0,512)));d.document&&d.document.referrer&&q.push("referrer="+encodeURIComponent(d.document.referrer.substring(0,512)));return q.join("&")}; $3=function(){var d="youtube.player.web_20250721_08_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250721_08_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250721_08_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250721_08_RC00".match(/_(\d{8})_\d+_RC\d+$/),q;if(((q=d)==null?void 0:q.length)==2)return d[1];d="youtube.player.web_20250721_08_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var T;return((T=d)==null?void 0:T.length)==3?"20"+d[1]+d[2]:null}; DAX=function(){return"av.default_js".includes("ima_html5_sdk")?{WO:"ima",Z7:null}:"av.default_js".includes("ima_native_sdk")?{WO:"nima",Z7:null}:"av.default_js".includes("admob-native-video-javascript")?{WO:"an",Z7:null}:"youtube.player.web_20250721_08_RC00".includes("cast_js_sdk")?{WO:"cast",Z7:$3()}:"youtube.player.web_20250721_08_RC00".includes("youtube.player.web")?{WO:"yw",Z7:$3()}:"youtube.player.web_20250721_08_RC00".includes("outstream_web_client")?{WO:"out",Z7:$3()}:"youtube.player.web_20250721_08_RC00".includes("drx_rewarded_web")? {WO:"r",Z7:$3()}:"youtube.player.web_20250721_08_RC00".includes("gam_native_web_video")?{WO:"n",Z7:$3()}:"youtube.player.web_20250721_08_RC00".includes("admob_interstitial_video")?{WO:"int",Z7:$3()}:{WO:"j",Z7:null}}; N5=function(d,q){var T={sv:"967"};gS!==null&&(T.v=gS);T.cb=wVg;T.nas=v5.G.length;T.msg=d;q!==void 0&&(d=fcN(q))&&(T.e=Fz[d]);return T}; RL=function(d){return ON(d,"custom_metric_viewable")}; fcN=function(d){var q=RL(d)?"custom_metric_viewable":d.toLowerCase();return gb(ip,function(T){return T==q})}; zZf=function(){this.G=void 0;this.U=!1;this.j=0;this.T=-1;this.S="tos"}; mAj=function(d){try{var q=d.split(",");return q.length>g.UN(i21).length?null:Hz(q,function(T,Y){Y=Y.toLowerCase().split("=");if(Y.length!=2||IcY[Y[0]]===void 0||!IcY[Y[0]](Y[1]))throw Error("Entry ("+Y[0]+", "+Y[1]+") is invalid.");T[Y[0]]=Y[1];return T},{})}catch(T){return null}}; SyI=function(d,q){if(d.G==void 0)return 0;switch(d.S){case "mtos":return d.U?sR(q.G,d.G):sR(q.U,d.G);case "tos":return d.U?Jy(q.G,d.G):Jy(q.U,d.G)}return 0}; x3=function(d,q,T,Y){G1.call(this,q,Y);this.L=d;this.B=T}; yc=function(){}; hD=function(d){G1.call(this,"fully_viewable_audible_half_duration_impression",d)}; H3=function(d){this.G=d}; Qc=function(d,q){G1.call(this,d,q)}; M5=function(d){LF.call(this,"measurable_impression",d)}; c3=function(){H3.apply(this,arguments)}; Er=function(d,q,T){W5.call(this,d,q,T)}; jI=function(d){d=d===void 0?OM:d;oq.call(this,new Iq(d,2))}; aL=function(d,q,T){W5.call(this,d,q,T)}; AD=function(d){d=d===void 0?OM:d;oq.call(this,new Iq(d,2))}; pJ=function(){Iq.call(this,OM,2,"mraid");this.dO=0;this.UD=this.yv=!1;this.L=null;this.U=ekN(this.j);this.T.G=new GO(0,0,0,0);this.aU=!1}; ZU=function(d,q,T){d.gf("addEventListener",q,T)}; VsQ=function(d){T3().T=!!d.gf("isViewable");ZU(d,"viewableChange",lcI);d.gf("getState")==="loading"?ZU(d,"ready",vJQ):oJD(d)}; oJD=function(d){typeof d.U.oi.AFMA_LIDAR==="string"?(d.yv=!0,dVj(d)):(d.U.compatibility=3,d.L="nc",d.fail("w"))}; dVj=function(d){d.UD=!1;var q=Az(T3().QU,"rmmt")==1,T=!!d.gf("isViewable");(q?!T:1)&&cz().setTimeout(n5(524,function(){d.UD||(qt7(d),rQ(540,Error()),d.L="mt",d.fail("w"))}),500); TzI(d);ZU(d,d.U.oi.AFMA_LIDAR,YtI)}; TzI=function(d){var q=Az(T3().QU,"sneio")==1,T=d.U.oi.AFMA_LIDAR_EXP_1!==void 0,Y=d.U.oi.AFMA_LIDAR_EXP_2!==void 0;(q=q&&Y)&&(d.U.oi.AFMA_LIDAR_EXP_2=!0);T&&(d.U.oi.AFMA_LIDAR_EXP_1=!q)}; qt7=function(d){d.gf("removeEventListener",d.U.oi.AFMA_LIDAR,YtI);d.yv=!1}; eRg=function(d,q){if(d.gf("getState")==="loading")return new g.zP(-1,-1);q=d.gf(q);if(!q)return new g.zP(-1,-1);d=parseInt(q.width,10);q=parseInt(q.height,10);return isNaN(d)||isNaN(q)?new g.zP(-1,-1):new g.zP(d,q)}; vJQ=function(){try{var d=QC(pJ);d.gf("removeEventListener","ready",vJQ);oJD(d)}catch(q){rQ(541,q)}}; YtI=function(d,q){try{var T=QC(pJ);T.UD=!0;var Y=d?new GO(d.y,d.x+d.width,d.y+d.height,d.x):new GO(0,0,0,0);var e=tq(),U=z3();var b=new kf(e,U,T);b.G=Y;b.volume=q;T.BZ(b)}catch(J){rQ(542,J)}}; lcI=function(d){var q=T3(),T=QC(pJ);d&&!q.T&&(q.T=!0,T.aU=!0,T.L&&T.fail("w",!0))}; Or=function(){this.isInitialized=!1;this.G=this.U=null;var d={};this.L=(d.start=this.GL,d.firstquartile=this.kW,d.midpoint=this.KI,d.thirdquartile=this.fV,d.complete=this.O3,d.error=this.cI,d.pause=this.xC,d.resume=this.hn,d.skip=this.Pc,d.viewable_impression=this.yj,d.mute=this.ZV,d.unmute=this.ZV,d.fullscreen=this.V7,d.exitfullscreen=this.CI,d.fully_viewable_audible_half_duration_impression=this.yj,d.measurable_impression=this.yj,d.abandon=this.xC,d.engagedview=this.yj,d.impression=this.yj,d.creativeview= this.yj,d.progress=this.ZV,d.custom_metric_viewable=this.yj,d.bufferstart=this.xC,d.bufferfinish=this.hn,d.audio_measurable=this.yj,d.audio_audible=this.yj,d);d={};this.B=(d.overlay_resize=this.w2,d.abandon=this.XY,d.close=this.XY,d.collapse=this.XY,d.overlay_unmeasurable_impression=function(q){return IO(q,"overlay_unmeasurable_impression",z3())},d.overlay_viewable_immediate_impression=function(q){return IO(q,"overlay_viewable_immediate_impression",z3())},d.overlay_unviewable_impression=function(q){return IO(q, "overlay_unviewable_impression",z3())},d.overlay_viewable_end_of_session_impression=function(q){return IO(q,"overlay_viewable_end_of_session_impression",z3())},d); T3().U=3;UVQ(this);this.j=null}; nJ=function(d,q,T,Y){d=d.R$(null,Y,!0,q);d.T=T;AIn([d]);return d}; bgH=function(d,q,T){tDn(q);var Y=d.G;g.Sj(q,function(e){var U=g.yC(e.criteria,function(b){var J=mAj(b);if(J==null)b=null;else if(b=new zZf,J.visible!=null&&(b.G=J.visible/100),J.audible!=null&&(b.U=J.audible==1),J.time!=null){var F=J.timetype=="mtos"?"mtos":"tos",N=DHN(J.time,"%")?"%":"ms";J=parseInt(J.time,10);N=="%"&&(J/=100);b.setTime(J,N,F)}return b}); D7(U,function(b){return b==null})||T2I(T,new x3(e.id,e.event,U,Y))})}; X0N=function(){var d=[],q=T3();d.push(QC(Ur));Az(q.QU,"mvp_lv")&&d.push(QC(pJ));q=[new jI,new AD];q.push(new dS(d));q.push(new eI(OM));return q}; J3Y=function(d){if(!d.isInitialized){d.isInitialized=!0;try{var q=tq(),T=T3(),Y=wQ();BK=q;T.j=79463069;d.U!=="o"&&(CDI=U$D(OM));if(yz7()){Xz.G.Y3=0;Xz.G.Wt=tq()-q;var e=X0N(),U=QC(Vg);U.U=e;Z26(U,function(){rS()})?Xz.done||(kg7(),SG(U.G.G,d),JD()):Y.j?rS():JD()}else tD=!0}catch(b){throw v5.reset(),b; }}}; P3=function(d){Xz.U.cancel();k3=d;Xz.done=!0}; W3=function(d){if(d.U)return d.U;var q=QC(Vg).G;if(q)switch(q.getName()){case "nis":d.U="n";break;case "gsv":d.U="m"}d.U||(d.U="h");return d.U}; CJ=function(d,q,T){if(d.G==null)return q.c6|=4,!1;d=sbI(d.G,T,q);q.c6|=d;return d==0}; rS=function(){var d=[new eI(OM)],q=QC(Vg);q.U=d;Z26(q,function(){P3("i")})?Xz.done||(kg7(),JD()):P3("i")}; $Vn=function(d,q){if(!d.lF){var T=IO(d,"start",z3());T=d.AT.G(T).G;var Y={id:"lidarv"};Y.r=q;Y.sv="967";gS!==null&&(Y.v=gS);Fm(T,function(e,U){return Y[e]=e=="mtos"||e=="tos"?U:encodeURIComponent(U)}); q=u2g();Fm(q,function(e,U){return Y[e]=encodeURIComponent(U)}); q="//pagead2.googlesyndication.com/pagead/gen_204?"+q8(dD(new V6,Y));Ejg(q);d.lF=!0}}; u3=function(d,q,T){sr(Xz,[d],!z3());b2Y(d,T);T!=4&&UA1(d.yv,T,d.KB);return IO(d,q,z3())}; UVQ=function(d){Wg2(function(){var q=gYg();d.U!=null&&(q.sdk=d.U);var T=QC(Vg);T.G!=null&&(q.avms=T.G.getName());return q})}; F37=function(d,q,T,Y){var e=cIf(v5,T);e!==null&&e.UN!==q&&(d.Qa(e),e=null);e||(q=d.R$(T,tq(),!1,q),v5.U.length==0&&(T3().j=79463069),pVn([q]),e=q,e.T=W3(d),Y&&(e.AF=Y));return e}; NzI=function(d,q){var T=d[q];T!==void 0&&T>0&&(d[q]=Math.floor(T*1E3))}; gYg=function(){var d=wQ(),q={},T={},Y={};return Object.assign({},(q.sv="967",q),gS!==null&&(T.v=gS,T),(Y["if"]=d.j?"1":"0",Y.nas=String(v5.G.length),Y))}; DU=function(d){G1.call(this,"audio_audible",d)}; wS=function(d){LF.call(this,"audio_measurable",d)}; fJ=function(){H3.apply(this,arguments)}; zs=function(){}; RRI=function(d){this.G=d}; sbI=function(d,q,T){d=d.U();if(typeof d==="function"){var Y={};var e={};Y=Object.assign({},gS!==null&&(Y.v=gS,Y),(e.sv="967",e.cb=wVg,e.e=xVY(q),e));e=IO(T,q,z3());g.hz(Y,e);T.t$[q]=e;Y=T.T3()==2?cAD(Y).join("&"):T.AT.G(Y).G;try{return d(T.UN,Y,q),0}catch(U){return 2}}else return 1}; xVY=function(d){var q=RL(d)?"custom_metric_viewable":d;d=gb(ip,function(T){return T==q}); return Fz[d]}; i3=function(){Or.call(this);this.X=null;this.S=!1;this.T="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; y3I=function(d,q,T){T=T.opt_configurable_tracking_events;d.G!=null&&Array.isArray(T)&&bgH(d,T,q)}; hRf=function(d,q,T){var Y=lp(v5,q);Y||(Y=T.opt_nativeTime||-1,Y=nJ(d,q,W3(d),Y),T.opt_osdId&&(Y.AF=T.opt_osdId));return Y}; Hgg=function(d,q,T){var Y=lp(v5,q);Y||(Y=nJ(d,q,"n",T.opt_nativeTime||-1));return Y}; Qb6=function(d,q){var T=lp(v5,q);T||(T=nJ(d,q,"h",-1));return T}; M86=function(d){T3();switch(W3(d)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; jb2=function(d,q,T,Y){T=T===void 0?{}:T;var e={};g.hz(e,{opt_adElement:void 0,opt_fullscreen:void 0},T);var U=d.i4(q,T);T=U?U.AT:d.Bz();if(e.opt_bounds)return T.G(N5("ol",Y));if(Y!==void 0)if(fcN(Y)!==void 0)if(tD)d=N5("ue",Y);else if(J3Y(d),k3=="i")d=N5("i",Y),d["if"]=0;else if(q=d.i4(q,e)){b:{k3=="i"&&(q.Vh=!0);U=e.opt_fullscreen;U!==void 0&&c5(q,!!U);var b;if(U=!wQ().U)(U=B2(g.k9(),"CrKey")&&!(B2(g.k9(),"CrKey")&&B2(g.k9(),"SmartSpeaker"))||B2(g.k9(),"PlayStation")||B2(g.k9(),"Roku")||scf()||B2(g.k9(), "Xbox"))||(U=g.k9(),U=B2(U,"AppleTV")||B2(U,"Apple TV")||B2(U,"CFNetwork")||B2(U,"tvOS")),U||(U=g.k9(),U=B2(U,"sdk_google_atv_x86")||B2(U,"Android TV")),U=!U;U&&(cz(),U=YQ(f5)===0);if(b=U){switch(q.T3()){case 1:$Vn(q,"pv");break;case 2:d.jy(q)}P3("pv")}U=Y.toLowerCase();if(b=!b)b=Az(T3().QU,"ssmol")&&U==="loaded"?!1:g.cR(c31,U);if(b&&q.eV==0){k3!="i"&&(Xz.done=!1);b=e!==void 0?e.opt_nativeTime:void 0;L5=b=typeof b==="number"?b:tq();q.cC=!0;var J=z3();q.eV=1;q.uw={};q.uw.start=!1;q.uw.firstquartile= !1;q.uw.midpoint=!1;q.uw.thirdquartile=!1;q.uw.complete=!1;q.uw.resume=!1;q.uw.pause=!1;q.uw.skip=!1;q.uw.mute=!1;q.uw.unmute=!1;q.uw.viewable_impression=!1;q.uw.measurable_impression=!1;q.uw.fully_viewable_audible_half_duration_impression=!1;q.uw.fullscreen=!1;q.uw.exitfullscreen=!1;q.Pm=0;J||(q.Rk().B=b);sr(Xz,[q],!J)}(b=q.nh[U])&&nF(q.Dh,b);Az(T3().QU,"fmd")||g.cR(EYX,U)&&q.QY&&q.QY.U(q,null);switch(q.T3()){case 1:var F=RL(U)?d.L.custom_metric_viewable:d.L[U];break;case 2:F=d.B[U]}if(F&&(Y=F.call(d, q,e,Y),Az(T3().QU,"fmd")&&g.cR(EYX,U)&&q.QY&&q.QY.U(q,null),Y!==void 0)){e=N5(void 0,U);g.hz(e,Y);Y=e;break b}Y=void 0}q.eV==3&&d.Qa(q);d=Y}else d=N5("nf",Y);else d=void 0;else tD?d=N5("ue"):U?(d=N5(),g.hz(d,JI7(U,!0,!1,!1))):d=N5("nf");return typeof d==="string"?T.G():T.G(d)}; aLj=function(d,q){q&&(d.T=q)}; A3f=function(d){var q={};return q.viewability=d.G,q.googleViewability=d.U,q}; p07=function(d,q,T){T=T===void 0?{}:T;d=jb2(QC(i3),q,T,d);return A3f(d)}; IL=function(d){var q=g.CN.apply(1,arguments).filter(Boolean).join("&");if(!q)return d;var T=d.match(/[?&]adurl=/);return T?d.slice(0,T.index+1)+q+"&"+d.slice(T.index+1):d+(d.indexOf("?")<0?"?":"&")+q}; mt=function(d,q){return q?"&"+d+"="+encodeURIComponent(q):""}; Zgn=function(d){var q=d.url;d=d.YXg;this.U=q;this.T=d;this.j=(new Date).getTime()-17040672E5;this.G={};for(var T=/[?&]([^&=]+)=([^&]*)/g;d=T.exec(q);)this.G[d[1]]=d[2]}; Og2=function(d){d=d.T;if(!d)return"";var q=mt("uap",d.platform)+mt("uapv",d.platformVersion)+mt("uafv",d.uaFullVersion)+mt("uaa",d.architecture)+mt("uam",d.model)+mt("uab",d.bitness);d.fullVersionList&&(q+="&uafvl="+encodeURIComponent(d.fullVersionList.map(function(T){return encodeURIComponent(T.brand)+";"+encodeURIComponent(T.version)}).join("|"))); d.wow64!=null&&(q+="&uaw="+Number(d.wow64));return q.slice(1)}; t81=function(d,q,T,Y,e){var U=window;var b=b===void 0?!1:b;var J;T?J=(b===void 0?0:b)?"//ep1.adtrafficquality.google/bg/"+nn(T)+".js":"//pagead2.googlesyndication.com/bg/"+nn(T)+".js":J="";b=b===void 0?!1:b;T=U.document;var F={};q&&(F._scs_=q);F._bgu_=J;F._bgp_=Y;F._li_="v_h.3.0.0.0";e&&(F._upb_=e);(q=U.GoogleTyFxhY)&&typeof q.push=="function"||(q=U.GoogleTyFxhY=[]);q.push(F);q=VY(T).createElement("SCRIPT");q.type="text/javascript";q.async=!0;d=(b===void 0?0:b)?tjD(nYQ,nn(d)+".js"):tjD(r3g,nn(d)+ ".js");g.QY(q,d);(U=(U.GoogleTyFxhYEET||{})[q.src])?U():T.getElementsByTagName("head")[0].appendChild(q)}; BzY=function(){try{var d,q;return!!((d=window)==null?0:(q=d.top)==null?0:q.location.href)&&!1}catch(T){return!0}}; SI=function(d,q,T){T=T===void 0?Error():T;var Y=Error.call(this);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.code=d;q+=":";T instanceof Error?(this.message=q+T.message,this.stack=T.stack||""):(this.message=q+String(T),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; v3=function(){var d=K3D();d=d===void 0?"bevasrsg":d;return new Promise(function(q){var T=window===window.top?window:BzY()?window:window.top,Y=T[d],e;((e=Y)==null?0:e.bevasrs)?q(new l3(Y.bevasrs)):(Y||(Y={},Y=(Y.nqfbel=[],Y),T[d]=Y),Y.nqfbel.push(function(U){q(new l3(U))}))})}; GUX=function(d){var q={c:d.BO,e:d.yE,mc:d.qw,me:d.m9};d.MI&&(q.co={c:d.MI.yO,a:d.MI.vN,s:d.MI.Tn});return q}; oL=function(d){g.W.call(this);this.wpc=d}; l3=function(d){g.W.call(this);var q=this;this.CH=d;this.j="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.U=void 0;this.w0=this.CH.p;this.T=this.f0.bind(this);this.addOnDisposeCallback(function(){return void L3_(q)})}; kUY=function(d){var q;return g.G(function(T){if(T.U==1){if(!d.CH.wpc)throw new SI(30,"NWA");return d.G?T.return(d.G):g.B(T,d.CH.wpc(),2)}q=T.G;d.G=new oL(q);return T.return(d.G)})}; L3_=function(d){d.U!==void 0&&(d.j.forEach(function(q){var T;(T=d.U)==null||T.removeEventListener(q,d.T)}),d.U=void 0)}; PLI=function(d){var q=q===void 0?50:q;var T=[];HV(d,Vc,6).forEach(function(Y){p2(Y,2)<=q&&T.push(p2(Y,1))}); return T}; W3g=function(d){var q=q===void 0?50:q;var T=[];HV(d,Vc,6).forEach(function(Y){p2(Y,2)>q&&T.push(p2(Y,1))}); return T}; CLH=function(d){d.then(function(){},function(){})}; dq=function(){g.W.apply(this,arguments);this.U=1;this[uj_]=this.dispose}; qS=function(d){return{fieldType:2,fieldName:d}}; g.Tx=function(d){return{fieldType:3,fieldName:d}}; DVH=function(d){this.G=d;d.cU("/client_streamz/bg/frs",g.Tx("mk"))}; w07=function(d){this.G=d;d.cU("/client_streamz/bg/wrl",g.Tx("mn"),qS("ac"),qS("sc"),g.Tx("rk"),g.Tx("mk"))}; fLn=function(d){this.G=d;d.Ib("/client_streamz/bg/ec",g.Tx("en"),g.Tx("mk"))}; zR2=function(d){this.G=d;d.cU("/client_streamz/bg/el",g.Tx("en"),g.Tx("mk"))}; igN=function(d){this.G=d;d.Ib("/client_streamz/bg/cec",qS("ec"),g.Tx("mk"))}; ILH=function(d){this.G=d;d.Ib("/client_streamz/bg/po/csc",qS("cs"),g.Tx("mk"))}; mVj=function(d){this.G=d;d.Ib("/client_streamz/bg/po/ctav",g.Tx("av"),g.Tx("mk"))}; Stn=function(d){this.G=d;d.Ib("/client_streamz/bg/po/cwsc",g.Tx("su"),g.Tx("mk"))}; lL1=function(d){this.Kf=DY(d)}; vYf=function(d,q){return rn6(d,q,dXn)}; Ym=function(d){this.Kf=DY(d)}; e$=function(d){this.Kf=DY(d)}; UE=function(d){this.Kf=DY(d)}; bm=function(d){this.Kf=DY(d)}; XP=function(d){this.Kf=DY(d)}; JS=function(d){this.Kf=DY(d)}; oYn=function(d){this.Kf=DY(d)}; qbQ=function(d){var q=new JS;q=K2(q,1,d.U);var T=V8j(d);q=rn6(q,T,Fng);T=[];for(var Y=[],e=g.E(d.G.keys()),U=e.next();!U.done;U=e.next())Y.push(U.value.split(","));for(e=0;e>>31)&4294967295;x=e[0];var H=e[1],a=e[2],p=e[3],t=e[4];for(h=0;h<80;h++){if(h<40)if(h<20){var n=p^H&(a^p);var K=1518500249}else n=H^a^p,K=1859775393;else h<60?(n=H&a|p&(H|a),K=2400959708):(n=H^a^p,K=3395469782);n=((x<<5|x>>>27)&4294967295)+n+t+K+y[h]&4294967295;t=p;p=a;a=(H<<30|H>>>2)&4294967295;H=x;x=n}e[0]=e[0]+x&4294967295;e[1]=e[1]+H&4294967295;e[2]= e[2]+a&4294967295;e[3]=e[3]+p&4294967295;e[4]=e[4]+t&4294967295} function T(x,y){if(typeof x==="string"){x=unescape(encodeURIComponent(x));for(var h=[],H=0,a=x.length;H=56;h--)U[h]=y&255,y>>>=8;q(U);for(h=y=0;h<5;h++)for(var H=24;H>=0;H-=8)x[y++]=e[h]>>H&255;return x} for(var e=[],U=[],b=[],J=[128],F=1;F<64;++F)J[F]=0;var N,R;d();return{reset:d,update:T,digest:Y,W8:function(){for(var x=Y(),y="",h=0;h1)));b=b.next)e||(U=b);e&&(T.G==0&&Y==1?vfN(T,q):(U?(Y=U,Y.next==T.T&&(T.T=Y),Y.next=Y.next.next):ofj(T),VG1(T,e,3,q)))}d.j=null}else cd(d,3,q)}; r1=function(d,q){d.U||d.G!=2&&d.G!=3||d8Y(d);d.T?d.T.next=q:d.U=q;d.T=q}; qRI=function(d,q,T,Y){var e=ZZ(null,null,null);e.G=new g.pK(function(U,b){e.j=q?function(J){try{var F=q.call(Y,J);U(F)}catch(N){b(N)}}:U; e.U=T?function(J){try{var F=T.call(Y,J);F===void 0&&J instanceof Bd?b(J):U(F)}catch(N){b(N)}}:b}); e.G.j=d;r1(d,e);return e.G}; cd=function(d,q,T){d.G==0&&(d===T&&(q=3,T=new TypeError("Promise cannot resolve to itself")),d.G=1,I72(T,d.Lfr,d.FfU,d)||(d.L=T,d.G=q,d.j=null,d8Y(d),q!=3||T instanceof Bd||TDX(d,T)))}; I72=function(d,q,T,Y){if(d instanceof g.pK)return l7I(d,q,T,Y),!0;if(d)try{var e=!!d.$goog_Thenable}catch(b){e=!1}else e=!1;if(e)return d.then(q,T,Y),!0;if(g.UI(d))try{var U=d.then;if(typeof U==="function")return YR6(d,U,q,T,Y),!0}catch(b){return T.call(Y,b),!0}return!1}; YR6=function(d,q,T,Y,e){function U(F){J||(J=!0,Y.call(e,F))} function b(F){J||(J=!0,T.call(e,F))} var J=!1;try{q.call(d,b,U)}catch(F){U(F)}}; d8Y=function(d){d.X||(d.X=!0,g.ML(d.bU,d))}; ofj=function(d){var q=null;d.U&&(q=d.U,d.U=q.next,q.next=null);d.U||(d.T=null);return q}; VG1=function(d,q,T,Y){if(T==3&&q.U&&!q.T)for(;d&&d.S;d=d.j)d.S=!1;if(q.G)q.G.j=null,eD7(q,T,Y);else try{q.T?q.j.call(q.context):eD7(q,T,Y)}catch(e){U8g.call(null,e)}Wbn(i51,q)}; eD7=function(d,q,T){q==2?d.j.call(d.context,T):d.U&&d.U.call(d.context,T)}; TDX=function(d,q){d.S=!0;g.ML(function(){d.S&&U8g.call(null,q)})}; Bd=function(d){xc.call(this,d)}; g.KK=function(d,q){g.$1.call(this);this.VS=d||1;this.bK=q||g.oQ;this.BN=(0,g.sI)(this.HjF,this);this.Dz=g.F_()}; g.GB=function(d,q,T){if(typeof d==="function")T&&(d=(0,g.sI)(d,T));else if(d&&typeof d.handleEvent=="function")d=(0,g.sI)(d.handleEvent,d);else throw Error("Invalid listener argument");return Number(q)>2147483647?-1:g.oQ.setTimeout(d,q||0)}; LK=function(d,q){var T=null;return(new g.pK(function(Y,e){T=g.GB(function(){Y(q)},d); T==-1&&e(Error("Failed to schedule timer."))})).C8(function(Y){g.oQ.clearTimeout(T); throw Y;})}; g.k1=function(d){g.W.call(this);this.L=d;this.T=0;this.j=100;this.S=!1;this.U=new Map;this.X=new Set;this.flushInterval=3E4;this.G=new g.KK(this.flushInterval);this.G.listen("tick",this.pP,!1,this);g.C(this,this.G)}; bFf=function(d){d.G.enabled||d.G.start();d.T++;d.T>=d.j&&d.pP()}; X51=function(d,q){return d.X.has(q)?void 0:d.U.get(q)}; JyH=function(d){for(var q=0;q2?d.G.statusText:""}catch(T){q=""}d.T=q+" ["+d.getStatus()+"]";QO_(d)}}finally{w1(d)}}}; w1=function(d,q){if(d.G){d.X&&(clearTimeout(d.X),d.X=null);var T=d.G;d.G=null;q||d.dispatchEvent("ready");try{T.onreadystatechange=null}catch(Y){}}}; iZ=function(d){var q=d.getStatus();a:switch(q){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var T=!0;break a;default:T=!1}if(!T){if(q=q===0)d=g.Jq(String(d.B))[1]||null,!d&&g.oQ.self&&g.oQ.self.location&&(d=g.oQ.self.location.protocol.slice(0,-1)),q=!Etf.test(d?d.toLowerCase():"");T=q}return T}; g.zB=function(d){return d.G?d.G.readyState:0}; g.I_=function(d){try{return d.G?d.G.responseText:""}catch(q){return""}}; g.mW=function(d){try{if(!d.G)return null;if("response"in d.G)return d.G.response;switch(d.rO){case "":case "text":return d.G.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in d.G)return d.G.mozResponseArrayBuffer}return null}catch(q){return null}}; g.jOY=function(d){var q={};d=(d.G&&g.zB(d)>=2?d.G.getAllResponseHeaders()||"":"").split("\r\n");for(var T=0;T0&&F>=q};T=T===void 0?[]:T;return new e_(Y,T)}; $H=function(d){function q(H,a,p,t){Promise.resolve().then(function(){F.done();J.qs();J.dispose();b.resolve({KK:H,Kjk:a,RUF:p,F1D:t})})} function T(H,a,p,t){if(!Y.logger.JF()){var n="k";a?n="h":p&&(n="u");n!=="k"?t!==0&&(Y.logger.v$(n),Y.logger.bA(n,H)):Y.U<=0?(Y.logger.v$(n),Y.logger.bA(n,H),Y.U=Math.floor(Math.random()*200)):Y.U--}} g.W.call(this);var Y=this;this.U=Math.floor(Math.random()*200);this.G=new Jf;if("challenge"in d&&nt2(d.challenge)){var e=Oy(d.challenge,4,void 0,i$);var U=Oy(d.challenge,5,void 0,i$);Oy(d.challenge,7,void 0,i$)&&(this.G=ryQ(Oy(d.challenge,7,void 0,i$)))}else e=d.program,U=d.globalName;this.addOnDisposeCallback(function(){var H,a,p;return g.G(function(t){if(t.U==1)return g.B(t,Y.j,2);H=t.G;a=H.Kjk;(p=a)==null||p();g.E6(t)})}); this.logger=OFQ(d.AO||{},this.G);g.C(this,this.logger);var b=new g.sq;this.j=b.promise;this.logger.v$("t");var J=this.logger.share(),F=new o_(J,"t");if(!g.oQ[U])throw this.logger.EP(25),Error("EGOU");if(!g.oQ[U].a)throw this.logger.EP(26),Error("ELIU");try{var N=g.oQ[U].a;U=[];for(var R=[],x=PLI(this.G),y=0;y>1,q),Qm(d,d.length>>1)]}; U5g=function(d){var q=g.E(e46(d,M0));d=q.next().value;q=q.next().value;return d.toString(16)+q.toString(16)}; bJf=function(d,q){var T=e46(q);d=new Uint32Array(d.buffer);q=d[0];var Y=g.E(T);T=Y.next().value;Y=Y.next().value;for(var e=1;e>>8|b<<24,b+=U|0,b^=J+38293,U=U<<3|U>>>29,U^=b,F=F>>>8|F<<24,F+=J|0,F^=N+38293,J=J<<3|J>>>29,J^=F;U=[U,b];d[e]^=U[0];e+1=T?(globalThis.sessionStorage.removeItem(d),["e"]):["a",new Uint8Array(Y.buffer,q+4)]}; cJ=function(d,q,T){T=T===void 0?[]:T;this.maxItems=d;this.G=q===void 0?0:q;this.U=T}; sL7=function(d){var q=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!q)return new cJ(d);var T=q.split(",");if(T.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new cJ(d);q=T.slice(1);q.length===1&&q[0]===""&&(q=[]);T=Number(T[0]);return isNaN(T)||T<0||T>q.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new cJ(d)):new cJ(d,T,q)}; $5I=function(d,q){this.logger=q;try{var T=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(Y){T=!1}T&&(this.index=sL7(d))}; g3D=function(d,q,T,Y,e){var U=d.index?de(d.logger,function(){return X3j(d.index,U5g(q),T,Y,e)},"W"):"u"; d.logger.cH(U)}; Ft1=function(d,q,T){var Y=g.E(d.index?de(d.logger,function(){return JDD(U5g(q),T)},"R"):["u"]),e=Y.next().value; Y=Y.next().value;d.logger.Zl(e);return Y}; x5I=function(d){function q(){T-=Y;T-=e;T^=e>>>13;Y-=e;Y-=T;Y^=T<<8;e-=T;e-=Y;e^=Y>>>13;T-=Y;T-=e;T^=e>>>12;Y-=e;Y-=T;Y^=T<<16;e-=T;e-=Y;e^=Y>>>5;T-=Y;T-=e;T^=e>>>3;Y-=e;Y-=T;Y^=T<<10;e-=T;e-=Y;e^=Y>>>15} d=NSn(d);for(var T=2654435769,Y=2654435769,e=314159265,U=d.length,b=U,J=0;b>=12;b-=12,J+=12)T+=Eq(d,J),Y+=Eq(d,J+4),e+=Eq(d,J+8),q();e+=U;switch(b){case 11:e+=d[J+10]<<24;case 10:e+=d[J+9]<<16;case 9:e+=d[J+8]<<8;case 8:Y+=d[J+7]<<24;case 7:Y+=d[J+6]<<16;case 6:Y+=d[J+5]<<8;case 5:Y+=d[J+4];case 4:T+=d[J+3]<<24;case 3:T+=d[J+2]<<16;case 2:T+=d[J+1]<<8;case 1:T+=d[J+0]}q();return R4H.toString(e)}; NSn=function(d){for(var q=[],T=0;T>7,d.error.code]);Y.set(T,4);return Y}; tf=function(d,q,T){j_.call(this,d);this.T=q;this.clientState=T;this.G="S";this.U="q"}; re=function(d){return globalThis.TextEncoder?(new TextEncoder).encode(d):g.ac(d)}; HJg=function(d,q,T){return d instanceof xH?zDg(d,T,q,1):d.ut(T)}; Ki=function(d){g.W.call(this);var q=this;this.j=new g.sq;this.T=0;this.U=void 0;this.state=2;this.CH=d.CH;this.J6=d.J6;this.aG=Object.assign({},QLY,d.aG||{});this.logger=d.CH.oe();var T;this.onError=(T=d.onError)!=null?T:function(){}; this.d$=d.d$||!1;if(MI_(d)){var Y=this.CH;this.S=function(){return llI(Y).catch(function(b){b=q.reportError(new SI(q.G?20:32,"TRG:Disposed",b));q.U=b;var J;(J=q.G)==null||J.dispose();q.G=void 0;q.j.reject(b)})}; vtQ(Y,function(){return void BJ(q)}); Y.B===2&&BJ(this)}else this.S=d.a8x,BJ(this);var e=this.logger.share();e.v$("o");var U=new o_(e,"o");this.j.promise.then(function(){U.done();e.qs();e.dispose()},function(){return void e.dispose()}); this.addOnDisposeCallback(function(){q.G?(q.G.dispose(),q.G=void 0):q.U?q.logger.qs():(q.U=q.reportError(new SI(32,"TNP:Disposed")),q.logger.qs(),q.j.reject(q.U))}); g.C(this,this.logger)}; cD6=function(d,q){if(!(q instanceof SI))if(q instanceof Pd){var T=Error(q.toString());T.stack=q.stack;q=new SI(11,"EBH:Error",T)}else q=new SI(12,"BSO:Unknown",q);return d.reportError(q)}; BJ=function(d){var q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a;return g.G(function(p){switch(p.U){case 1:q=void 0;d.T++;T=new g.sq;d.CH instanceof ym&&d.CH.T.push(T.promise);if(!d.d$){p.tF(2);break}Y=new g.sq;setTimeout(function(){return void Y.resolve()}); return g.B(p,Y.promise,2);case 2:return e=d.logger.share(),g.jD(p,4,5),d.state=5,U={},b=[],g.B(p,HJ(d.CH.snapshot({BO:U,r$:b}),d.aG.lhO,function(){return Promise.reject(new SI(15,"MDA:Timeout"))}),7); case 7:J=p.G;if(d.JF())throw new SI(d.G?20:32,"MDA:Disposed");F=b[0];d.state=6;return g.B(p,HJ(HJg(d.J6,e,J),d.aG.X1,function(){return Promise.reject(new SI(10,"BWB:Timeout"))}),8); case 8:N=p.G;if(d.JF())throw new SI(d.G?20:32,"BWB:Disposed");d.state=7;q=de(e,function(){var n=E3N(d,N,T,F);n.j.promise.then(function(){return void d.S()}); return n},"i"); case 5:g.KN(p);e.dispose();g.LN(p,6);break;case 4:R=g.nN(p);(x=q)==null||x.dispose();if(!d.U){y=cD6(d,R);T.resolve();var t;if(t=d.CH instanceof ym&&d.T<2)a:if(R instanceof SI)t=R.code!==32&&R.code!==20&&R.code!==10;else{if(R instanceof Pd)switch(R.code){case 2:case 13:case 14:case 4:break;default:t=!1;break a}t=!0}if(t)return h=(1+Math.random()*.25)*(d.G?6E4:1E3),H=setTimeout(function(){return void d.S()},h),d.addOnDisposeCallback(function(){return void clearTimeout(H)}),p.return(); d.U=y}e.EP(d.G?13:14);d.j.reject(d.U);return p.return();case 6:d.state=8,d.T=0,(a=d.G)==null||a.dispose(),d.G=q,d.j.resolve(),g.E6(p)}})}; E3N=function(d,q,T,Y){var e=Zc(q,2)*1E3;if(e<=0)throw new SI(31,"TTM:Invalid");if(Oy(q,4))return new Oq(d.logger,Oy(q,4),e);if(!Zc(q,3))return new Z_(d.logger,Kp(bD(q,1)),e);if(!Y)throw new SI(4,"PMD:Undefined");Y=Y(Kp(bD(q,1)));if(!(Y instanceof Function))throw new SI(16,"APF:Failed");d.X=Math.floor((Date.now()+e)/1E3);d=new pi(d.logger,Y,Zc(q,3),e);d.addOnDisposeCallback(function(){return void T.resolve()}); return d}; jLf=function(d,q){q=q instanceof SI?q:new SI(5,"TVD:error",q);return d.reportError(q)}; OJ2=function(d,q,T){try{if(d.JF())throw new SI(21,"BNT:disposed");if(!d.G&&d.U)throw d.U;var Y,e;return(e=(Y=aUn(d,q,T))!=null?Y:ADQ(d,q,T))!=null?e:p3n(d,q,T)}catch(U){if(!q.m9)throw jLf(d,U);return ZJH(d,T,U)}}; aUn=function(d,q,T){var Y;return(Y=d.G)==null?void 0:Af(Y,function(){return GA(d,q)},T,function(e){var U; if(d.G instanceof pi&&((U=q.MI)==null?0:U.Tn))try{var b;(b=d.cache)==null||g3D(b,GA(d,q),e,q.MI.yO,d.X-120)}catch(J){d.reportError(new SI(24,"ELX:write",J))}})}; ADQ=function(d,q,T){var Y;if((Y=q.MI)!=null&&Y.vN)try{var e,U=(e=d.cache)==null?void 0:Ft1(e,GA(d,q),q.MI.yO);return U?T?de(d.logger,function(){return g.A0(U,2)},"a"):U:void 0}catch(b){d.reportError(new SI(23,"RXO:read",b))}}; p3n=function(d,q,T){var Y={stack:[],error:void 0,hasError:!1};try{if(!q.qw)throw new SI(29,"SDF:notready");return Af(HNg(Y,new tf(d.logger,0,d.state)),function(){return GA(d,q)},T)}catch(e){Y.error=e,Y.hasError=!0}finally{QQY(Y)}}; ZJH=function(d,q,T){var Y={stack:[],error:void 0,hasError:!1};try{var e=jLf(d,T);return Af(HNg(Y,new ni(d.logger,e)),function(){return[]},q)}catch(U){Y.error=U,Y.hasError=!0}finally{QQY(Y)}}; GA=function(d,q){return q.yE?q.yE:q.BO?de(d.logger,function(){return q.yE=re(q.BO)},"c"):[]}; Li=function(){var d=0,q;return function(T){q||(q=new q0);var Y=new tf(q,d,1),e=Af(Y,function(){return re(T)},!0); Y.dispose();d++;return e}}; kH=function(d){this.Kf=DY(d)}; n32=function(d,q,T){this.Qy=d;this.Ji=q;this.metadata=T}; PJ=function(d,q){q=q===void 0?{}:q;this.YrO=d;this.metadata=q;this.status=null}; WJ=function(d,q,T,Y,e){this.name=d;this.methodType="unary";this.requestType=q;this.responseType=T;this.G=Y;this.U=e}; Ci=function(d){this.Kf=DY(d)}; uj=function(d){this.Kf=DY(d)}; D_=function(d){this.Kf=DY(d)}; we=function(d,q){this.L=d.Iwr;this.B=q;this.G=d.xhr;this.j=[];this.S=[];this.X=[];this.T=[];this.U=[];this.L&&rDg(this)}; GsD=function(d,q){var T=new tIN;g.oB(d.G,"complete",function(){if(iZ(d.G)){var Y=g.I_(d.G);if(q&&d.G.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");Y=atob(Y)}try{var e=d.B(Y)}catch(J){fi(d,zA(new Pd(13,"Error when deserializing response data; error: "+J+(", response: "+Y)),T));return}Y=sOn(d.G.getStatus());ij(d,I2(d));Y==0?BSX(d,e):fi(d,zA(new Pd(Y,"Xhr succeeded but the status code is not 200"),T))}else{Y=g.I_(d.G);e=I2(d);if(Y){var U=Kt_(d, Y);Y=U.code;var b=U.details;U=U.metadata}else Y=2,b="Rpc failed due to xhr error. uri: "+String(d.G.B)+", error code: "+d.G.U+", error: "+d.G.getLastError(),U=e;ij(d,e);fi(d,zA(new Pd(Y,b,U),T))}})}; rDg=function(d){d.L.rJ("data",function(q){if("1"in q){var T=q["1"];try{var Y=d.B(T)}catch(e){fi(d,new Pd(13,"Error when deserializing response data; error: "+e+(", response: "+T)))}Y&&BSX(d,Y)}if("2"in q)for(q=Kt_(d,q["2"]),T=0;T-1&&d.splice(q,1)}; BSX=function(d,q){for(var T=0;T>4&15).toString(16)+(d&15).toString(16)}; UC=function(d,q){this.U=this.G=null;this.j=d||null;this.T=!!q}; sC=function(d){d.G||(d.G=new Map,d.U=0,d.j&&Fm(d.j,function(q,T){d.add(OD(q),T)}))}; fU7=function(d,q){sC(d);q=$M(d,q);return d.G.has(q)}; g.z46=function(d,q,T){d.remove(q);T.length>0&&(d.j=null,d.G.set($M(d,q),g.rL(T)),d.U=d.U+T.length)}; $M=function(d,q){q=String(q);d.T&&(q=q.toLowerCase());return q}; uz_=function(d,q){q&&!d.T&&(sC(d),d.j=null,d.G.forEach(function(T,Y){var e=Y.toLowerCase();Y!=e&&(this.remove(Y),g.z46(this,e,T))},d)); d.T=q}; g.iJQ=function(d){var q="";g.os(d,function(T,Y){q+=Y;q+=":";q+=T;q+="\r\n"}); return q}; g.gW=function(d,q,T){if(g.FV(T))return d;T=g.iJQ(T);if(typeof d==="string")return hq(d,g.pn(q),T);g.XO(d,q,T);return d}; g.FO=function(d){g.W.call(this);this.U=d;this.G={}}; IU6=function(d,q,T,Y,e,U){if(Array.isArray(T))for(var b=0;b=0)return!0;try{var q=new g.Vm(d)}catch(T){return g.QN(sB_,function(Y){return d.search(Y)>0})!=null}return q.X.match($SQ)?!0:g.QN(sB_,function(T){return d.match(T)!=null})!=null}; g.a1=function(d,q){return d.replace(F47,function(T,Y){try{var e=g.N$(q,Y);if(e==null||e.toString()==null)return T;e=e.toString();if(e==""||!g.nh(g.rt(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(U){}return T})}; A_=function(d,q){return Object.is(d,q)}; Z6=function(d){var q=p9;p9=d;return q}; NqQ=function(d){if(d.SV!==void 0){var q=OC;OC=!0;try{for(var T=g.E(d.SV),Y=T.next();!Y.done;Y=T.next()){var e=Y.value;e.eP||(d=void 0,e.eP=!0,NqQ(e),(d=e.Yi)==null||d.call(e,e))}}finally{OC=q}}}; RK6=function(){var d;return((d=p9)==null?void 0:d.r7)!==!1}; xSD=function(d){d&&(d.rF=0);return Z6(d)}; yS1=function(d,q){Z6(q);if(d&&d.s6!==void 0&&d.DX!==void 0&&d.ML!==void 0){if(n9(d))for(q=d.rF;qd.rF;)d.s6.pop(),d.ML.pop(),d.DX.pop()}}; Hbj=function(d,q,T){hKI(d);if(d.SV.length===0&&d.s6!==void 0)for(var Y=0;Y0}; QBI=function(d){d.s6!=null||(d.s6=[]);d.DX!=null||(d.DX=[]);d.ML!=null||(d.ML=[])}; hKI=function(d){d.SV!=null||(d.SV=[]);d.pZ!=null||(d.pZ=[])}; jBY=function(d){function q(){if(OC)throw Error("");if(p9!==null){var Y=p9.rF++;QBI(p9);Y0?" "+q:q))}}; g.qg=function(d,q){if(d.classList)Array.prototype.forEach.call(q,function(e){g.d9(d,e)}); else{var T={};Array.prototype.forEach.call(vh(d),function(e){T[e]=!0}); Array.prototype.forEach.call(q,function(e){T[e]=!0}); q="";for(var Y in T)q+=q.length>0?" "+Y:Y;g.o1(d,q)}}; g.TR=function(d,q){d.classList?d.classList.remove(q):g.V5(d,q)&&g.o1(d,Array.prototype.filter.call(vh(d),function(T){return T!=q}).join(" "))}; g.YG=function(d,q){d.classList?Array.prototype.forEach.call(q,function(T){g.TR(d,T)}):g.o1(d,Array.prototype.filter.call(vh(d),function(T){return!g.cR(q,T)}).join(" "))}; g.ep=function(d,q,T){T?g.d9(d,q):g.TR(d,q)}; t$7=function(d,q){var T=!g.V5(d,q);g.ep(d,q,T)}; g.UA=function(){g.$1.call(this);this.G=0;this.endTime=this.startTime=null}; BqI=function(d,q){Array.isArray(q)||(q=[q]);q=q.map(function(T){return typeof T==="string"?T:T.property+" "+T.duration+"s "+T.timing+" "+T.delay+"s"}); g.Dv(d,"transition",q.join(","))}; bM=function(d,q,T,Y,e){g.UA.call(this);this.U=d;this.S=q;this.X=T;this.T=Y;this.L=Array.isArray(e)?e:[e]}; K4Y=function(d,q,T,Y){return new bM(d,q,{opacity:T},{opacity:Y},{property:"opacity",duration:q,timing:"ease-in",delay:0})}; L4g=function(d){d=Kh(d);if(d=="")return null;var q=String(d.slice(0,4)).toLowerCase();if(("url("1||d&&d.split(")"),null;if(d.indexOf("(")>0){if(/"|'/.test(d))return null;q=/([\-\w]+)\(/g;for(var T;T=q.exec(d);)if(!(T[1].toLowerCase()in GxN))return null}return d}; Xr=function(d,q){d=g.oQ[d];return d&&d.prototype?(q=Object.getOwnPropertyDescriptor(d.prototype,q))&&q.get||null:null}; kx1=function(d){var q=g.oQ.CSSStyleDeclaration;return q&&q.prototype&&q.prototype[d]||null}; PmD=function(d,q,T,Y){if(d)return d.apply(q,Y);if(g.Jx&&document.documentMode<10){if(!q[T].call)throw Error("IE Clobbering detected");}else if(typeof q[T]!="function")throw Error("Clobbering detected");return q[T].apply(q,Y)}; wPX=function(d){if(!d)return"";var q=document.createElement("div").style;W4D(d).forEach(function(T){var Y=g.J4&&T in CmH?T:T.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");ON(Y,"--")||ON(Y,"var")||(T=PmD(uPI,d,d.getPropertyValue?"getPropertyValue":"getAttribute",[T])||"",T=L4g(T),T!=null&&PmD(DSH,q,q.setProperty?"setProperty":"setAttribute",[Y,T]))}); return q.cssText||""}; W4D=function(d){g.ej(d)?d=g.rL(d):(d=g.UN(d),g.jj(d,"cssText"));return d}; g.$G=function(d){var q,T=q=0,Y=!1;d=d.split(fQ1);for(var e=0;e.4?-1:1;return(q==0?null:q)==-1?"rtl":"ltr"}; g.RM=function(d){if(d instanceof g9||d instanceof Fr||d instanceof Ng)return d;if(typeof d.next=="function")return new g9(function(){return d}); if(typeof d[Symbol.iterator]=="function")return new g9(function(){return d[Symbol.iterator]()}); if(typeof d.zp=="function")return new g9(function(){return d.zp()}); throw Error("Not an iterator or iterable.");}; g9=function(d){this.U=d}; Fr=function(d){this.U=d}; Ng=function(d){g9.call(this,function(){return d}); this.j=d}; xG=function(d,q,T,Y,e,U,b,J){this.G=d;this.L=q;this.j=T;this.S=Y;this.T=e;this.X=U;this.U=b;this.B=J}; yy=function(d,q){if(q==0)return d.G;if(q==1)return d.U;var T=DG(d.G,d.j,q),Y=DG(d.j,d.T,q);d=DG(d.T,d.U,q);T=DG(T,Y,q);Y=DG(Y,d,q);return DG(T,Y,q)}; mSH=function(d,q){var T=(q-d.G)/(d.U-d.G);if(T<=0)return 0;if(T>=1)return 1;for(var Y=0,e=1,U=0,b=0;b<8;b++){U=yy(d,T);var J=(yy(d,T+1E-6)-U)/1E-6;if(Math.abs(U-q)<1E-6)return T;if(Math.abs(J)<1E-6)break;else U1E-6&&b<8;b++)U=0}; g.Mg=function(d){g.W.call(this);this.X=1;this.j=[];this.T=0;this.G=[];this.U={};this.L=!!d}; lQ1=function(d,q,T){g.ML(function(){d.apply(q,T)})}; g.c7=function(d){this.G=d}; EA=function(d){this.G=d}; vmY=function(d){this.data=d}; omn=function(d){return d===void 0||d instanceof vmY?d:new vmY(d)}; jp=function(d){this.G=d}; g.V$f=function(d){var q=d.creation;d=d.expiration;return!!d&&dg.F_()}; g.aM=function(d){this.G=d}; dLY=function(){}; Ax=function(){}; pv=function(d){this.G=d;this.U=null}; Zg=function(d){if(d.G==null)throw Error("Storage mechanism: Storage unavailable");d.isAvailable()||j0(Error("Storage mechanism: Storage unavailable"))}; OA=function(){var d=null;try{d=g.oQ.localStorage||null}catch(q){}pv.call(this,d)}; qfj=function(){var d=null;try{d=g.oQ.sessionStorage||null}catch(q){}pv.call(this,d)}; nv=function(d,q){this.U=d;this.G=q+"::"}; g.r9=function(d){var q=new OA;return q.isAvailable()?d?new nv(q,d):q:null}; tx=function(d,q){this.G=d;this.U=q}; B7=function(d){this.G=[];if(d)a:{if(d instanceof B7){var q=d.ll();d=d.N0();if(this.G.length<=0){for(var T=this.G,Y=0;Y>>6:(U<65536?J[T++]=224|U>>>12:(J[T++]=240|U>>>18,J[T++]=128|U>>>12&63),J[T++]=128|U>>> 6&63),J[T++]=128|U&63);return J}; kG=function(d){for(var q=d.length;--q>=0;)d[q]=0}; P7=function(d,q,T,Y,e){this.Ua=d;this.Hd=q;this.s0=T;this.Pd=Y;this.PrF=e;this.UR=d&&d.length}; W7=function(d,q){this.L6=d;this.DN=0;this.Ky=q}; Cv=function(d,q){d.Il[d.pending++]=q&255;d.Il[d.pending++]=q>>>8&255}; uM=function(d,q,T){d.qN>16-T?(d.sN|=q<>16-d.qN,d.qN+=T-16):(d.sN|=q<>>=1,T<<=1;while(--q>0);return T>>>1}; bKg=function(d,q,T){var Y=Array(16),e=0,U;for(U=1;U<=15;U++)Y[U]=e=e+T[U-1]<<1;for(T=0;T<=q;T++)e=d[T*2+1],e!==0&&(d[T*2]=UL2(Y[e]++,e))}; Xd2=function(d){var q;for(q=0;q<286;q++)d.rB[q*2]=0;for(q=0;q<30;q++)d.Hu[q*2]=0;for(q=0;q<19;q++)d.Bf[q*2]=0;d.rB[512]=1;d.HW=d.L5=0;d.WK=d.matches=0}; JKf=function(d){d.qN>8?Cv(d,d.sN):d.qN>0&&(d.Il[d.pending++]=d.sN);d.sN=0;d.qN=0}; s_2=function(d,q,T){JKf(d);Cv(d,T);Cv(d,~T);Lv.iZ(d.Il,d.window,q,T,d.pending);d.pending+=T}; $LQ=function(d,q,T,Y){var e=q*2,U=T*2;return d[e]>>7)];Dg(d,b,T);J=m$[b];J!==0&&(e-=Sp[b],uM(d,e,J))}}while(Y>1;b>=1;b--)w9(d,T,b);F=U;do b=d.d1[1],d.d1[1]=d.d1[d.Vl--],w9(d,T,1),Y=d.d1[1],d.d1[--d.Um]=b,d.d1[--d.Um]=Y,T[F*2]=T[b*2]+T[Y*2],d.depth[F]=(d.depth[b]>=d.depth[Y]?d.depth[b]:d.depth[Y])+1,T[b*2+1]=T[Y*2+1]=F,d.d1[1]=F++,w9(d,T,1);while(d.Vl>= 2);d.d1[--d.Um]=d.d1[1];b=q.L6;F=q.DN;Y=q.Ky.Ua;e=q.Ky.UR;U=q.Ky.Hd;var N=q.Ky.s0,R=q.Ky.PrF,x,y=0;for(x=0;x<=15;x++)d.SP[x]=0;b[d.d1[d.Um]*2+1]=0;for(q=d.Um+1;q<573;q++){var h=d.d1[q];x=b[b[h*2+1]*2+1]+1;x>R&&(x=R,y++);b[h*2+1]=x;if(!(h>F)){d.SP[x]++;var H=0;h>=N&&(H=U[h-N]);var a=b[h*2];d.HW+=a*(x+H);e&&(d.L5+=a*(Y[h*2+1]+H))}}if(y!==0){do{for(x=R-1;d.SP[x]===0;)x--;d.SP[x]--;d.SP[x+1]+=2;d.SP[R]--;y-=2}while(y>0);for(x=R;x!==0;x--)for(h=d.SP[x];h!==0;)Y=d.d1[--q],Y>F||(b[Y*2+1]!==x&&(d.HW+=(x- b[Y*2+1])*b[Y*2],b[Y*2+1]=x),h--)}bKg(T,J,d.SP)}; FWg=function(d,q,T){var Y,e=-1,U=q[1],b=0,J=7,F=4;U===0&&(J=138,F=3);q[(T+1)*2+1]=65535;for(Y=0;Y<=T;Y++){var N=U;U=q[(Y+1)*2+1];++b>>=1)if(q&1&&d.rB[T*2]!==0)return 0;if(d.rB[18]!==0||d.rB[20]!==0||d.rB[26]!==0)return 1;for(T=32;T<256;T++)if(d.rB[T*2]!==0)return 1;return 0}; v7=function(d,q,T){d.Il[d.xw+d.WK*2]=q>>>8&255;d.Il[d.xw+d.WK*2+1]=q&255;d.Il[d.MA+d.WK]=T&255;d.WK++;q===0?d.rB[T*2]++:(d.matches++,q--,d.rB[(fv[T]+256+1)*2]++,d.Hu[(q<256?IM[q]:IM[256+(q>>>7)])*2]++);return d.WK===d.pm-1}; Vy=function(d,q){d.msg=oM[q];return q}; dw=function(d){for(var q=d.length;--q>=0;)d[q]=0}; qv=function(d){var q=d.state,T=q.pending;T>d.Wl&&(T=d.Wl);T!==0&&(Lv.iZ(d.output,q.Il,q.jq,T,d.ZN),d.ZN+=T,q.jq+=T,d.H_+=T,d.Wl-=T,q.pending-=T,q.pending===0&&(q.jq=0))}; eW=function(d,q){var T=d.s5>=0?d.s5:-1,Y=d.pn-d.s5,e=0;if(d.level>0){d.q3.VO===2&&(d.q3.VO=RFn(d));lM(d,d.Dl);lM(d,d.Tk);FWg(d,d.rB,d.Dl.DN);FWg(d,d.Hu,d.Tk.DN);lM(d,d.WN);for(e=18;e>=3&&d.Bf[xLN[e]*2+1]===0;e--);d.HW+=3*(e+1)+5+5+4;var U=d.HW+3+7>>>3;var b=d.L5+3+7>>>3;b<=U&&(U=b)}else U=b=Y+5;if(Y+4<=U&&T!==-1)uM(d,q?1:0,3),s_2(d,T,Y);else if(d.strategy===4||b===U)uM(d,2+(q?1:0),3),g1X(d,T2,Y5);else{uM(d,4+(q?1:0),3);T=d.Dl.DN+1;Y=d.Tk.DN+1;e+=1;uM(d,T-257,5);uM(d,Y-1,5);uM(d,e-4,4);for(U=0;U>>8&255;d.Il[d.pending++]=q&255}; yKQ=function(d,q){var T=d.zC,Y=d.pn,e=d.Wa,U=d.FX,b=d.pn>d.r4-262?d.pn-(d.r4-262):0,J=d.window,F=d.Mj,N=d.FQ,R=d.pn+258,x=J[Y+e-1],y=J[Y+e];d.Wa>=d.Ng&&(T>>=2);U>d.xB&&(U=d.xB);do{var h=q;if(J[h+e]===y&&J[h+e-1]===x&&J[h]===J[Y]&&J[++h]===J[Y+1]){Y+=2;for(h++;J[++Y]===J[++h]&&J[++Y]===J[++h]&&J[++Y]===J[++h]&&J[++Y]===J[++h]&&J[++Y]===J[++h]&&J[++Y]===J[++h]&&J[++Y]===J[++h]&&J[++Y]===J[++h]&&Ye){d.LM=q;e=h;if(h>=U)break;x=J[Y+e-1];y=J[Y+e]}}}while((q=N[q&F])>b&&--T!== 0);return e<=d.xB?e:d.xB}; $5=function(d){var q=d.r4,T;do{var Y=d.h$-d.xB-d.pn;if(d.pn>=q+(q-262)){Lv.iZ(d.window,d.window,q,q,0);d.LM-=q;d.pn-=q;d.s5-=q;var e=T=d.Yg;do{var U=d.head[--e];d.head[e]=U>=q?U-q:0}while(--T);e=T=q;do U=d.FQ[--e],d.FQ[e]=U>=q?U-q:0;while(--T);Y+=q}if(d.q3.b1===0)break;e=d.q3;T=d.window;U=d.pn+d.xB;var b=e.b1;b>Y&&(b=Y);b===0?T=0:(e.b1-=b,Lv.iZ(T,e.input,e.EO,b,U),e.state.wrap===1?e.Ic=XM(e.Ic,T,b,U):e.state.wrap===2&&(e.Ic=J1(e.Ic,T,b,U)),e.EO+=b,e.vV+=b,T=b);d.xB+=T;if(d.xB+d.LA>=3)for(Y=d.pn-d.LA, d.N3=d.window[Y],d.N3=(d.N3<=3&&(d.N3=(d.N3<=3)if(T=v7(d,d.pn-d.LM,d.Ur-3),d.xB-=d.Ur,d.Ur<=d.Jb&&d.xB>=3){d.Ur--;do d.pn++,d.N3=(d.N3<=3&&(d.N3=(d.N3<4096)&&(d.Ur=2));if(d.Wa>=3&&d.Ur<=d.Wa){Y=d.pn+d.xB-3;T=v7(d,d.pn-1-d.C4,d.Wa-3);d.xB-=d.Wa-1;d.Wa-=2;do++d.pn<=Y&&(d.N3=(d.N3<=3&&d.pn>0&&(Y=d.pn-1,T=U[Y],T===U[++Y]&&T===U[++Y]&&T===U[++Y])){for(e=d.pn+258;T===U[++Y]&&T===U[++Y]&&T===U[++Y]&&T===U[++Y]&&T===U[++Y]&&T===U[++Y]&&T===U[++Y]&&T===U[++Y]&&Yd.xB&&(d.Ur=d.xB)}d.Ur>=3?(T=v7(d,1,d.Ur-3),d.xB-=d.Ur,d.pn+=d.Ur,d.Ur=0):(T=v7(d,0,d.window[d.pn]),d.xB--,d.pn++);if(T&&(eW(d,!1),d.q3.Wl===0))return 1}d.LA=0;return q=== 4?(eW(d,!0),d.q3.Wl===0?3:4):d.WK&&(eW(d,!1),d.q3.Wl===0)?1:2}; HKY=function(d,q){for(var T;;){if(d.xB===0&&($5(d),d.xB===0)){if(q===0)return 1;break}d.Ur=0;T=v7(d,0,d.window[d.pn]);d.xB--;d.pn++;if(T&&(eW(d,!1),d.q3.Wl===0))return 1}d.LA=0;return q===4?(eW(d,!0),d.q3.Wl===0?3:4):d.WK&&(eW(d,!1),d.q3.Wl===0)?1:2}; Nv=function(d,q,T,Y,e){this.JB=d;this.w6=q;this.rFf=T;this.KV=Y;this.func=e}; Q_X=function(){this.q3=null;this.status=0;this.Il=null;this.wrap=this.pending=this.jq=this.C3=0;this.TX=null;this.B1=0;this.method=8;this.qG=-1;this.Mj=this.Zu=this.r4=0;this.window=null;this.h$=0;this.head=this.FQ=null;this.FX=this.Ng=this.strategy=this.level=this.Jb=this.zC=this.Wa=this.xB=this.LM=this.pn=this.a4=this.C4=this.Ur=this.s5=this.kH=this.c9=this.Su=this.Yg=this.N3=0;this.rB=new Lv.b3(1146);this.Hu=new Lv.b3(122);this.Bf=new Lv.b3(78);dw(this.rB);dw(this.Hu);dw(this.Bf);this.WN=this.Tk= this.Dl=null;this.SP=new Lv.b3(16);this.d1=new Lv.b3(573);dw(this.d1);this.Um=this.Vl=0;this.depth=new Lv.b3(573);dw(this.depth);this.qN=this.sN=this.LA=this.matches=this.L5=this.HW=this.xw=this.WK=this.pm=this.MA=0}; M4j=function(d,q){if(!d||!d.state||q>5||q<0)return d?Vy(d,-2):-2;var T=d.state;if(!d.output||!d.input&&d.b1!==0||T.status===666&&q!==4)return Vy(d,d.Wl===0?-5:-2);T.q3=d;var Y=T.qG;T.qG=q;if(T.status===42)if(T.wrap===2)d.Ic=0,Us(T,31),Us(T,139),Us(T,8),T.TX?(Us(T,(T.TX.text?1:0)+(T.TX.cZ?2:0)+(T.TX.extra?4:0)+(T.TX.name?8:0)+(T.TX.comment?16:0)),Us(T,T.TX.time&255),Us(T,T.TX.time>>8&255),Us(T,T.TX.time>>16&255),Us(T,T.TX.time>>24&255),Us(T,T.level===9?2:T.strategy>=2||T.level<2?4:0),Us(T,T.TX.os& 255),T.TX.extra&&T.TX.extra.length&&(Us(T,T.TX.extra.length&255),Us(T,T.TX.extra.length>>8&255)),T.TX.cZ&&(d.Ic=J1(d.Ic,T.Il,T.pending,0)),T.B1=0,T.status=69):(Us(T,0),Us(T,0),Us(T,0),Us(T,0),Us(T,0),Us(T,T.level===9?2:T.strategy>=2||T.level<2?4:0),Us(T,3),T.status=113);else{var e=8+(T.Zu-8<<4)<<8;e|=(T.strategy>=2||T.level<2?0:T.level<6?1:T.level===6?2:3)<<6;T.pn!==0&&(e|=32);T.status=113;bF(T,e+(31-e%31));T.pn!==0&&(bF(T,d.Ic>>>16),bF(T,d.Ic&65535));d.Ic=1}if(T.status===69)if(T.TX.extra){for(e= T.pending;T.B1<(T.TX.extra.length&65535)&&(T.pending!==T.C3||(T.TX.cZ&&T.pending>e&&(d.Ic=J1(d.Ic,T.Il,T.pending-e,e)),qv(d),e=T.pending,T.pending!==T.C3));)Us(T,T.TX.extra[T.B1]&255),T.B1++;T.TX.cZ&&T.pending>e&&(d.Ic=J1(d.Ic,T.Il,T.pending-e,e));T.B1===T.TX.extra.length&&(T.B1=0,T.status=73)}else T.status=73;if(T.status===73)if(T.TX.name){e=T.pending;do{if(T.pending===T.C3&&(T.TX.cZ&&T.pending>e&&(d.Ic=J1(d.Ic,T.Il,T.pending-e,e)),qv(d),e=T.pending,T.pending===T.C3)){var U=1;break}U=T.B1e&&(d.Ic=J1(d.Ic,T.Il,T.pending-e,e));U===0&&(T.B1=0,T.status=91)}else T.status=91;if(T.status===91)if(T.TX.comment){e=T.pending;do{if(T.pending===T.C3&&(T.TX.cZ&&T.pending>e&&(d.Ic=J1(d.Ic,T.Il,T.pending-e,e)),qv(d),e=T.pending,T.pending===T.C3)){U=1;break}U=T.B1e&&(d.Ic=J1(d.Ic,T.Il,T.pending-e,e));U===0&&(T.status=103)}else T.status= 103;T.status===103&&(T.TX.cZ?(T.pending+2>T.C3&&qv(d),T.pending+2<=T.C3&&(Us(T,d.Ic&255),Us(T,d.Ic>>8&255),d.Ic=0,T.status=113)):T.status=113);if(T.pending!==0){if(qv(d),d.Wl===0)return T.qG=-1,0}else if(d.b1===0&&(q<<1)-(q>4?9:0)<=(Y<<1)-(Y>4?9:0)&&q!==4)return Vy(d,-5);if(T.status===666&&d.b1!==0)return Vy(d,-5);if(d.b1!==0||T.xB!==0||q!==0&&T.status!==666){Y=T.strategy===2?HKY(T,q):T.strategy===3?hFf(T,q):RE[T.level].func(T,q);if(Y===3||Y===4)T.status=666;if(Y===1||Y===3)return d.Wl===0&&(T.qG= -1),0;if(Y===2&&(q===1?(uM(T,2,3),Dg(T,256,T2),T.qN===16?(Cv(T,T.sN),T.sN=0,T.qN=0):T.qN>=8&&(T.Il[T.pending++]=T.sN&255,T.sN>>=8,T.qN-=8)):q!==5&&(uM(T,0,3),s_2(T,0,0),q===3&&(dw(T.head),T.xB===0&&(T.pn=0,T.s5=0,T.LA=0))),qv(d),d.Wl===0))return T.qG=-1,0}if(q!==4)return 0;if(T.wrap<=0)return 1;T.wrap===2?(Us(T,d.Ic&255),Us(T,d.Ic>>8&255),Us(T,d.Ic>>16&255),Us(T,d.Ic>>24&255),Us(T,d.vV&255),Us(T,d.vV>>8&255),Us(T,d.vV>>16&255),Us(T,d.vV>>24&255)):(bF(T,d.Ic>>>16),bF(T,d.Ic&65535));qv(d);T.wrap>0&& (T.wrap=-T.wrap);return T.pending!==0?0:1}; x5=function(d){if(!(this instanceof x5))return new x5(d);d=this.options=Lv.assign({level:-1,method:8,chunkSize:16384,zT:15,oxw:8,strategy:0,to:""},d||{});d.raw&&d.zT>0?d.zT=-d.zT:d.Rp&&d.zT>0&&d.zT<16&&(d.zT+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.q3=new cKn;this.q3.Wl=0;var q=this.q3;var T=d.level,Y=d.method,e=d.zT,U=d.oxw,b=d.strategy;if(q){var J=1;T===-1&&(T=6);e<0?(J=0,e=-e):e>15&&(J=2,e-=16);if(U<1||U>9||Y!==8||e<8||e>15||T<0||T>9||b<0||b>4)q=Vy(q,-2);else{e===8&&(e=9); var F=new Q_X;q.state=F;F.q3=q;F.wrap=J;F.TX=null;F.Zu=e;F.r4=1<>=7;U<30;U++)for(Sp[U]=b<<7,e=0;e<1<=N.r4&&(q===0&&(dw(N.head),N.pn=0,N.s5=0,N.LA=0),T=new Lv.gi(N.r4),Lv.iZ(T,U,b-N.r4,N.r4,0),U=T,b=N.r4);T=d.b1;Y=d.EO;e=d.input;d.b1=b;d.EO=0;d.input=U;for($5(N);N.xB>=3;){U=N.pn;b=N.xB-2;do N.N3=(N.N3<=-4||((0,T[18])(T[59],T[52]),0))&&(0,T[37])(T[30]),T[55]>=7&&(0,T[1])(T[30],T[55]),T[64]!==-3&&(0,T[18])(T[40],T[72]),T[8]<0&&(T[new Date(X[48])/1E3]!==-6||((((((0,T[52])(T[42],T[80]),T[2])((0,T[14])(),T[56],T[80]),(((0,T[52])(T[55],T[74]),T[52])(T[49],T[74]),T[6])((0,T[52])(T[35],T[74]),T[52],(0,T[52])(T[63],T[78]),T[5],T[74]),T[52])(T[64],T[78]),T[16])((0,T[52])(T[27],T[84]),T[2],(0,T[57])(), T[56],T[78]),T[2])((0,T[44])(),T[56],T[74]),X[14]))&&(0,T[40])(((((0,T[47])(T[70],T[84]),T[10])(T[34],T[80]),T[52])(T[37],T[74]),T[10])(T[1],T[15]),T[62],(0,T[39])(T[38]),(((0,T[62])((0,T[20])(T[4],T[66]),T[84],T[40],T[83]),T[84])(T[76],T[23]),T[84])(T[80],T[83]),(0,T[84])(T[Math[X[87]](4,new Date(X[82])/1E3)+17280+-17209],T[27]),T[30],T[27])}catch(Y){(0,T[53])((0,T[47])(T[2],T[23]),T[new Date(X[38])/1E3],T[83]),((0,T[39])((0,T[6])(),T[5],T[27]),T[1])(T[67],T[23])}try{(T[18]<=-3||((0,T[39])((0,T[81])(), T[new Date(X[17])/1E3],T[29]),0))&&(0,T[1])(T[15],T[23]),T[86]<=-2&&(T[21]>=-8&&(((((0,T[11])(T[29],T[49]),T[30])(T[23]),(0,T[84])(T[35],T[27]),(0,T[82])(T[29],T[56]),T[32])(T[52]),T[5])(T[60],T[56]),7)||(((((0,T[5])(T[64],T[9]),T[86])(T[27],T[58]),T[76])(T[4],T[46]),T[86])(T[71],T[64]),T[86])(T[12],T[64])^(0,T[5])(T[64],T[62])),T[26]!=9&&(((((0,T[76])(T[4],T[79]),T[43])((0,T[12])(T[34],T[67]),T[49],T[42],T[69]),T[57])((0,T[54])(),T[3],T[73]),T[12])(T[30],T[44]),X[69])||((0,T[14])(T[73],T[78]),(0,T[43])((0,T[43])((0,T[7])(T[87], T[73]),T[12],T[68],T[67]),T[85],T[63],T[76]),T[7])(T[37],T[73]),T[56]!==-5?(0,T[23])((0,T[64])(T[69]),(0,T[43])((0,T[85])(T[63],T[59]),T[22],T[19]),T[29],(0,T[67])(T[30]),(0,T[30])((0,T[56])(T[35],T[57]),T[87],(0,T[51])(T[1],T[23]),T[5],T[28],T[57]),(0,T[52])(T[1]),T[47],T[64]):(((((0,T[56])((0,T[33])(T[30]),T[4],T[55],T[30]),T[42])((0,T[9])(),T[8],T[30]),T[35])(T[26])>>>(0,T[85])(T[36],T[61])<<(0,T[4])(T[72],T[26]),(0,T[14])(T[36],T[58]),T[42])((0,T[9])(),T[8],T[26]),(0,T[50])(T[53],T[30])),T[1]<= new Date(X[85])/1E3&&(T[64]<-7||((0,T[42])((0,T[10])(),T[8],T[30]),0))&&(0,T[14])(T[36],T[29]),T[67]<-4&&(0,T[19])((0,T[65])(T[49],T[34]),T[19],T[6],T[55]),T[19]!=-10?(0,T[58])(T[57],T[44]):(0,T[11])(T[83],T[21])}catch(Y){(((0,T[new Date(X[55])/1E3])((0,T[7])(),T[5],T[29]),T[82])(T[83],T[63]),T[47])(T[14],T[29]),(0,T[1])(T[10],T[29]),((0,T[53])((0,T[32])(T[83]),T[39],(0,T[6])(),T[5],T[29]),T[82])(T[33],T[3])}}catch(Y){return X[89]+d}return q[X[34]](X[14])}; g.Mv=function(d){this.name=d}; DL7=function(d){this.Kf=DY(d)}; cq=function(d){this.Kf=DY(d)}; Es=function(d){this.Kf=DY(d)}; wdX=function(d){this.Kf=DY(d)}; jW=function(d){this.Kf=DY(d)}; aE=function(d){this.Kf=DY(d)}; A1=function(d){this.Kf=DY(d)}; ps=function(d){this.Kf=DY(d)}; ZA=function(d){this.Kf=DY(d)}; Os=function(d){this.Kf=DY(d)}; ns=function(d){this.Kf=DY(d)}; rw=function(d){this.Kf=DY(d)}; t1=function(d){this.Kf=DY(d)}; Bq=function(d){this.Kf=DY(d)}; Ks=function(d){this.Kf=DY(d)}; G2=function(d){this.Kf=DY(d,500)}; Ls=function(d){this.Kf=DY(d)}; k5=function(d){this.Kf=DY(d)}; fZ7=function(d){this.Kf=DY(d)}; zFY=function(){return g.qx("yt.ads.biscotti.lastId_")||""}; iKD=function(d){g.Vf("yt.ads.biscotti.lastId_",d)}; Wq=function(){var d=arguments,q=Pq;d.length>1?q[d[0]]=d[1]:d.length===1&&Object.assign(q,d[0])}; g.Cs=function(d,q){return d in Pq?Pq[d]:q}; ww=function(d){var q=Pq.EXPERIMENT_FLAGS;return q?q[d]:void 0}; IZ7=function(d){fs.forEach(function(q){return q(d)})}; g.iF=function(d){return d&&window.yterr?function(){try{return d.apply(this,arguments)}catch(q){g.z2(q)}}:d}; g.z2=function(d){var q=g.qx("yt.logging.errors.log");q?q(d,"ERROR",void 0,void 0,void 0,void 0,void 0):(q=g.Cs("ERRORS",[]),q.push([d,"ERROR",void 0,void 0,void 0,void 0,void 0]),Wq("ERRORS",q));IZ7(d)}; IE=function(d,q,T,Y,e){var U=g.qx("yt.logging.errors.log");U?U(d,"WARNING",q,T,Y,void 0,e):(U=g.Cs("ERRORS",[]),U.push([d,"WARNING",q,T,Y,void 0,e]),Wq("ERRORS",U))}; mR=function(d,q){q=d.split(q);for(var T={},Y=0,e=q.length;Y1?d[1]:d[0])):{}}; VH=function(d,q){return v1j(d,q||{},!0)}; d7=function(d,q){return v1j(d,q||{},!1)}; v1j=function(d,q,T){var Y=d.split("#",2);d=Y[0];Y=Y.length>1?"#"+Y[1]:"";var e=d.split("?",2);d=e[0];e=lF(e[1]||"");for(var U in q)if(T||!g.sN(e,U))e[U]=q[U];return g.y6(d,e)+Y}; q4=function(d){if(!q)var q=window.location.href;var T=g.Jq(d)[1]||null,Y=g.sb(d);T&&Y?(d=g.Jq(d),q=g.Jq(q),d=d[3]==q[3]&&d[1]==q[1]&&d[4]==q[4]):d=Y?g.sb(q)===Y&&(Number(g.Jq(q)[4]||null)||null)===(Number(g.Jq(d)[4]||null)||null):!0;return d}; Tt=function(d){d||(d=document.location.href);d=g.Jq(d)[1]||null;return d!==null&&d==="https"}; YA=function(d){d=o1f(d);return d===null?!1:d[0]==="com"&&d[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; V4H=function(d){d=o1f(d);return d===null?!1:d[1]==="google"?!0:d[2]==="google"?d[0]==="au"&&d[1]==="com"?!0:d[0]==="uk"&&d[1]==="co"?!0:!1:!1}; o1f=function(d){d=g.sb(d);return d!==null?d.split(".").reverse():null}; mL2=function(d){return d&&d.match(d07)?d:OD(d)}; bb=function(d){var q=ee;d=d===void 0?zFY():d;var T=Object,Y=T.assign,e=U3(q);var U=q.G;try{var b=U.screenX;var J=U.screenY}catch(t){}try{var F=U.outerWidth;var N=U.outerHeight}catch(t){}try{var R=U.innerWidth;var x=U.innerHeight}catch(t){}try{var y=U.screenLeft;var h=U.screenTop}catch(t){}try{R=U.innerWidth,x=U.innerHeight}catch(t){}try{var H=U.screen.availWidth;var a=U.screen.availTop}catch(t){}U=[y,h,b,J,H,a,F,N,R,x];b=bpn(!1,q.G.top);J={};var p=p===void 0?g.oQ:p;F=new L9;"SVGElement"in p&&"createElementNS"in p.document&&F.set(0);N=eiN();N["allow-top-navigation-by-user-activation"]&&F.set(1);N["allow-popups-to-escape-sandbox"]&&F.set(2);p.crypto&&p.crypto.subtle&&F.set(3);"TextDecoder"in p&&"TextEncoder"in p&&F.set(4);p=Zb1(F);q=(J.bc=p,J.bih=b.height,J.biw=b.width,J.brdim=U.join(),J.vis=YQ(q.U),J.wgl=!!OM.WebGLRenderingContext,J);T=Y.call(T,e,q);T.ca_type="image";d&&(T.bid=d);return T}; U3=function(d){var q={};q.dt=qqg;q.flash="0";a:{try{var T=d.G.top.location.href}catch(N){d=2;break a}d=T?T===d.U.location.href?0:1:2}q=(q.frm=d,q);try{q.u_tz=-(new Date).getTimezoneOffset();try{var Y=OM.history.length}catch(N){Y=0}q.u_his=Y;var e;q.u_h=(e=OM.screen)==null?void 0:e.height;var U;q.u_w=(U=OM.screen)==null?void 0:U.width;var b;q.u_ah=(b=OM.screen)==null?void 0:b.availHeight;var J;q.u_aw=(J=OM.screen)==null?void 0:J.availWidth;var F;q.u_cd=(F=OM.screen)==null?void 0:F.colorDepth}catch(N){}return q}; Yqf=function(){if(!Te7)return null;var d=Te7();return"open"in d?d:null}; g.Jd=function(d){switch(Xq(d)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; Xq=function(d){return d&&"status"in d?d.status:-1}; g.s3=function(d,q){typeof d==="function"&&(d=g.iF(d));return window.setTimeout(d,q)}; g.$A=function(d,q){typeof d==="function"&&(d=g.iF(d));return window.setInterval(d,q)}; g.g7=function(d){window.clearTimeout(d)}; g.Fq=function(d){window.clearInterval(d)}; g.RD=function(d){d=N4(d);return typeof d==="string"&&d==="false"?!1:!!d}; g.xA=function(d,q){d=N4(d);return d===void 0&&q!==void 0?q:Number(d||0)}; yB=function(){return g.Cs("EXPERIMENTS_TOKEN","")}; N4=function(d){return g.Cs("EXPERIMENT_FLAGS",{})[d]}; hd=function(){for(var d=[],q=g.Cs("EXPERIMENTS_FORCED_FLAGS",{}),T=g.E(Object.keys(q)),Y=T.next();!Y.done;Y=T.next())Y=Y.value,d.push({key:Y,value:String(q[Y])});T=g.Cs("EXPERIMENT_FLAGS",{});Y=g.E(Object.keys(T));for(var e=Y.next();!e.done;e=Y.next())e=e.value,e.startsWith("force_")&&q[e]===void 0&&d.push({key:e,value:String(T[e])});return d}; HL=function(d,q,T,Y,e,U,b,J){function F(){(N&&"readyState"in N?N.readyState:0)===4&&q&&g.iF(q)(N)} T=T===void 0?"GET":T;Y=Y===void 0?"":Y;J=J===void 0?!1:J;var N=Yqf();if(!N)return null;"onloadend"in N?N.addEventListener("loadend",F,!1):N.onreadystatechange=F;g.RD("debug_forward_web_query_parameters")&&(d=eJ1(d));N.open(T,d,!0);U&&(N.responseType=U);b&&(N.withCredentials=!0);T=T==="POST"&&(window.FormData===void 0||!(Y instanceof FormData));if(e=U0g(d,e))for(var R in e)N.setRequestHeader(R,e[R]),"content-type"===R.toLowerCase()&&(T=!1);T&&N.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(J&&"setAttributionReporting"in XMLHttpRequest.prototype){d={eventSourceEligible:!0,triggerEligible:!1};try{N.setAttributionReporting(d)}catch(x){IE(x)}}N.send(Y);return N}; U0g=function(d,q){q=q===void 0?{}:q;var T=q4(d),Y=g.Cs("INNERTUBE_CLIENT_NAME"),e=g.RD("web_ajax_ignore_global_headers_if_set"),U;for(U in biD){var b=g.Cs(biD[U]),J=U==="X-Goog-AuthUser"||U==="X-Goog-PageId";U!=="X-Goog-Visitor-Id"||b||(b=g.Cs("VISITOR_DATA"));var F;if(!(F=!b)){if(!(F=T||(g.sb(d)?!1:!0))){F=d;var N;if(N=g.RD("add_auth_headers_to_remarketing_google_dot_com_ping")&&U==="Authorization"&&(Y==="TVHTML5"||Y==="TVHTML5_UNPLUGGED"||Y==="TVHTML5_SIMPLY")&&V4H(F))F=$f(F)||"",F=F.split("/"), F="/"+(F.length>1?F[1]:""),N=F==="/pagead";F=N?!0:!1}F=!F}F||e&&q[U]!==void 0||Y==="TVHTML5_UNPLUGGED"&&J||(q[U]=b)}"X-Goog-EOM-Visitor-Id"in q&&"X-Goog-Visitor-Id"in q&&delete q["X-Goog-Visitor-Id"];if(T||!g.sb(d))q["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(T||!g.sb(d)){try{var R=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(x){}R&&(q["X-YouTube-Time-Zone"]=R)}document.location.hostname.endsWith("youtubeeducation.com")||!T&&g.sb(d)||(q["X-YouTube-Ad-Signals"]= SW(bb()));return q}; M4=function(d,q){q.method="POST";q.postParams||(q.postParams={});return g.QB(d,q)}; s26=function(d,q){if(window.fetch&&q.format!=="XML"){var T={method:q.method||"GET",credentials:"same-origin"};q.headers&&(T.headers=q.headers);q.priority&&(T.priority=q.priority);d=XJY(d,q);var Y=Jf7(d,q);Y&&(T.body=Y);q.withCredentials&&(T.credentials="include");var e=q.context||g.oQ,U=!1,b;fetch(d,T).then(function(J){if(!U){U=!0;b&&g.g7(b);var F=J.ok,N=function(R){R=R||{};F?q.onSuccess&&q.onSuccess.call(e,R,J):q.onError&&q.onError.call(e,R,J);q.onFinish&&q.onFinish.call(e,R,J)}; (q.format||"JSON")==="JSON"&&(F||J.status>=400&&J.status<500)?J.json().then(N,function(){N(null)}):N(null)}}).catch(function(){q.onError&&q.onError.call(e,{},{})}); d=q.timeout||0;q.onFetchTimeout&&d>0&&(b=g.s3(function(){U||(U=!0,g.g7(b),q.onFetchTimeout.call(q.context||g.oQ))},d))}else g.QB(d,q)}; g.QB=function(d,q){var T=q.format||"JSON";d=XJY(d,q);var Y=Jf7(d,q),e=!1,U=$07(d,function(F){if(!e){e=!0;J&&g.g7(J);var N=g.Jd(F),R=null,x=400<=F.status&&F.status<500,y=500<=F.status&&F.status<600;if(N||x||y)R=gHN(d,T,F,q.convertToSafeHtml);N&&(N=F61(T,F,R));R=R||{};x=q.context||g.oQ;N?q.onSuccess&&q.onSuccess.call(x,F,R):q.onError&&q.onError.call(x,F,R);q.onFinish&&q.onFinish.call(x,F,R)}},q.method,Y,q.headers,q.responseType,q.withCredentials); Y=q.timeout||0;if(q.onTimeout&&Y>0){var b=q.onTimeout;var J=g.s3(function(){e||(e=!0,U.abort(),g.g7(J),b.call(q.context||g.oQ,U))},Y)}return U}; XJY=function(d,q){q.includeDomain&&(d=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+d);var T=g.Cs("XSRF_FIELD_NAME");if(q=q.urlParams)q[T]&&delete q[T],d=VH(d,q);return d}; Jf7=function(d,q){var T=g.Cs("XSRF_FIELD_NAME"),Y=g.Cs("XSRF_TOKEN"),e=q.postBody||"",U=q.postParams,b=g.Cs("XSRF_FIELD_NAME"),J;q.headers&&(J=q.headers["Content-Type"]);q.excludeXsrf||g.sb(d)&&!q.withCredentials&&g.sb(d)!==document.location.hostname||q.method!=="POST"||J&&J!=="application/x-www-form-urlencoded"||q.postParams&&q.postParams[b]||(U||(U={}),U[T]=Y);(g.RD("ajax_parse_query_data_only_when_filled")&&U&&Object.keys(U).length>0||U)&&typeof e==="string"&&(e=lF(e),g.hz(e,U),e=q.postBodyFormat&& q.postBodyFormat==="JSON"?JSON.stringify(e):g.xf(e));U=e||U&&!g.FV(U);!Ne2&&U&&q.method!=="POST"&&(Ne2=!0,g.z2(Error("AJAX request with postData should use POST")));return e}; gHN=function(d,q,T,Y){var e=null;switch(q){case "JSON":try{var U=T.responseText}catch(b){throw Y=Error("Error reading responseText"),Y.params=d,IE(Y),b;}d=T.getResponseHeader("Content-Type")||"";U&&d.indexOf("json")>=0&&(U.substring(0,5)===")]}'\n"&&(U=U.substring(5)),e=JSON.parse(U));break;case "XML":if(d=(d=T.responseXML)?RJQ(d):null)e={},g.Sj(d.getElementsByTagName("*"),function(b){e[b.tagName]=x0Q(b)})}Y&&yfN(e); return e}; yfN=function(d){if(g.UI(d))for(var q in d)q==="html_content"||DHN(q,"_html")?d[q]=Fk(d[q]):yfN(d[q])}; F61=function(d,q,T){if(q&&q.status===204)return!0;switch(d){case "JSON":return!!T;case "XML":return Number(T&&T.return_code)===0;case "RAW":return!0;default:return!!T}}; RJQ=function(d){return d?(d=("responseXML"in d?d.responseXML:d).getElementsByTagName("root"))&&d.length>0?d[0]:null:null}; x0Q=function(d){var q="";g.Sj(d.childNodes,function(T){q+=T.nodeValue}); return q}; eJ1=function(d){var q=window.location.search,T=g.sb(d);g.RD("debug_handle_relative_url_for_query_forward_killswitch")||!T&&q4(d)&&(T=document.location.hostname);var Y=$f(d);Y=(T=T&&(T.endsWith("youtube.com")||T.endsWith("youtube-nocookie.com")))&&Y&&Y.startsWith("/api/");if(!T||Y)return d;var e=lF(q),U={};g.Sj(hJN,function(b){e[b]&&(U[b]=e[b])}); return d7(d,U)}; E3=function(d,q){var T=g.x9(q),Y;return(new g.pK(function(e,U){T.onSuccess=function(b){g.Jd(b)?e(new Hi6(b)):U(new cL("Request failed, status="+Xq(b),"net.badstatus",b))}; T.onError=function(b){U(new cL("Unknown request error","net.unknown",b))}; T.onTimeout=function(b){U(new cL("Request timed out","net.timeout",b))}; Y=g.QB(d,T)})).C8(function(e){if(e instanceof Bd){var U; (U=Y)==null||U.abort()}return nK(e)})}; g.je=function(d,q,T,Y,e,U){function b(F,N,R){return F.C8(function(x){if(N<=0||Xq(x.xhr)===403)return nK(new cL("Request retried too many times","net.retryexhausted",x.xhr,x));var y=Math.pow(2,T-N+1)*R,h=e>0?Math.min(e,y):y;return J(R).then(function(){U&&U(x,N-1);return b(E3(d,q),N-1,h)})})} function J(F){return new g.pK(function(N){setTimeout(N,F)})} e=e===void 0?-1:e;return b(E3(d,q),T-1,Y)}; cL=function(d,q,T){xc.call(this,d+", errorCode="+q);this.errorCode=q;this.xhr=T;this.name="PromiseAjaxError"}; Hi6=function(d){this.xhr=d}; aD=function(d){this.G=d===void 0?null:d;this.j=0;this.U=null}; Ad=function(d){var q=new aD;d=d===void 0?null:d;q.j=2;q.U=d===void 0?null:d;return q}; pZ=function(d){var q=new aD;d=d===void 0?null:d;q.j=1;q.U=d===void 0?null:d;return q}; g.nZ=function(d,q,T,Y,e){Zq||O3.set(""+d,q,{s2:T,path:"/",domain:Y===void 0?"youtube.com":Y,secure:e===void 0?!1:e})}; g.r7=function(d,q){if(!Zq)return O3.get(""+d,q)}; g.td=function(d,q,T){Zq||O3.remove(""+d,q===void 0?"/":q,T===void 0?"youtube.com":T)}; Q2Y=function(){if(g.RD("embeds_web_enable_cookie_detection_fix")){if(!g.oQ.navigator.cookieEnabled)return!1}else if(!O3.isEnabled())return!1;if(!O3.isEmpty())return!0;g.RD("embeds_web_enable_cookie_detection_fix")?O3.set("TESTCOOKIESENABLED","1",{s2:60,Jew:"none",secure:!0}):O3.set("TESTCOOKIESENABLED","1",{s2:60});if(O3.get("TESTCOOKIESENABLED")!=="1")return!1;O3.remove("TESTCOOKIESENABLED");return!0}; g.D=function(d,q){if(d)return d[q.name]}; BL=function(d){var q=g.Cs("INNERTUBE_HOST_OVERRIDE");q&&(d=String(q)+String(gQ(d)));return d}; M_6=function(d){var q={};g.RD("json_condensed_response")&&(q.prettyPrint="false");return d=d7(d,q)}; KZ=function(d,q){var T=T===void 0?{}:T;d={method:q===void 0?"POST":q,mode:q4(d)?"same-origin":"cors",credentials:q4(d)?"same-origin":"include"};q={};for(var Y=g.E(Object.keys(T)),e=Y.next();!e.done;e=Y.next())e=e.value,T[e]&&(q[e]=T[e]);Object.keys(q).length>0&&(d.headers=q);return d}; Gt=function(){var d=/Chrome\/(\d+)/.exec(g.k9());return d?parseFloat(d[1]):NaN}; LZ=function(){var d=/\sCobalt\/(\S+)\s/.exec(g.k9());if(!d)return NaN;var q=[];d=g.E(d[1].split("."));for(var T=d.next();!T.done;T=d.next())T=parseInt(T.value,10),T>=0&&q.push(T);return parseFloat(q.join("."))}; PL=function(){return g.kA("android")&&g.kA("chrome")&&!(g.kA("trident/")||g.kA("edge/"))&&!g.kA("cobalt")}; cfQ=function(){return g.kA("armv7")||g.kA("aarch64")||g.kA("android")}; g.WL=function(){return g.kA("cobalt")}; CZ=function(){return g.kA("cobalt")&&g.kA("appletv")}; ub=function(){return g.kA("(ps3; leanback shell)")||g.kA("ps3")&&g.WL()}; EH1=function(){return g.kA("(ps4; leanback shell)")||g.kA("ps4")&&g.WL()}; g.j2g=function(){return g.WL()&&(g.kA("ps4 vr")||g.kA("ps4 pro vr"))}; Dq=function(){var d=/WebKit\/([0-9]+)/.exec(g.k9());return!!(d&&parseInt(d[1],10)>=600)}; w7=function(){var d=/WebKit\/([0-9]+)/.exec(g.k9());return!!(d&&parseInt(d[1],10)>=602)}; a_f=function(){return g.kA("iemobile")||g.kA("windows phone")&&g.kA("edge")}; ib=function(){return(fZ||zt)&&g.kA("applewebkit")&&!g.kA("version")&&(!g.kA("safari")||g.kA("gsa/"))}; m9=function(){return g.ID&&g.kA("version/")}; Se=function(){return g.kA("smart-tv")&&g.kA("samsung")}; g.kA=function(d){var q=g.k9();return q?q.toLowerCase().indexOf(d)>=0:!1}; lb=function(){return XK2()||ib()||m9()?!0:g.Cs("EOM_VISITOR_DATA")?!1:!0}; vL=function(d,q){return q===void 0||q===null?d:q==="1"||q===!0||q===1||q==="True"?!0:!1}; oD=function(d,q,T){for(var Y in T)if(T[Y]==q)return T[Y];return d}; VB=function(d,q){return q===void 0||q===null?d:Number(q)}; d8=function(d,q){return q===void 0||q===null?d:q.toString()}; qs=function(d,q){if(q){if(d==="fullwidth")return Infinity;if(d==="fullheight")return 0}return d&&(q=d.match(Afj))&&(d=Number(q[2]),q=Number(q[1]),!isNaN(d)&&!isNaN(q)&&d>0)?q/d:NaN}; Ty=function(d){var q=d.docid||d.video_id||d.videoId||d.id;if(q)return q;q=d.raw_player_response;q||(d=d.player_response)&&(q=JSON.parse(d));return q&&q.videoDetails&&q.videoDetails.videoId||null}; pJ7=function(d){return YO(d,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.eX=function(d){return d==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||d==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; YO=function(d,q){q=(q===void 0?0:q)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(q="EMBEDDED_PLAYER_MODE_PFL");var T=d.raw_embedded_player_response;if(!T&&(d=d.embedded_player_response))try{T=JSON.parse(d)}catch(Y){return q}return T?oD(q,T.embeddedPlayerMode,Zi_):q}; b5=function(d){xc.call(this,d.message||d.description||d.name);this.isMissing=d instanceof Ud;this.isTimeout=d instanceof cL&&d.errorCode=="net.timeout";this.isCanceled=d instanceof Bd}; Ud=function(){xc.call(this,"Biscotti ID is missing from server")}; Oi_=function(){if(g.RD("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!lb())return Error("User has not consented - not fetching biscotti id.");var d=g.Cs("PLAYER_VARS",{});if(g.N$(d,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(pJ7(d))return Error("Biscotti id fetching has been disabled for pfl.")}; Bej=function(){var d=Oi_();if(d!==void 0)return nK(d);XH||(XH=E3("//googleads.g.doubleclick.net/pagead/id",nH_).then(rf_).C8(function(q){return t_1(2,q)})); return XH}; rf_=function(d){d=d.xhr.responseText;if(!ON(d,")]}'"))throw new Ud;d=JSON.parse(d.substr(4));if((d.type||1)>1)throw new Ud;d=d.id;iKD(d);XH=pZ(d);K61(18E5,2);return d}; t_1=function(d,q){q=new b5(q);iKD("");XH=Ad(q);d>0&&K61(12E4,d-1);throw q;}; K61=function(d,q){g.s3(function(){E3("//googleads.g.doubleclick.net/pagead/id",nH_).then(rf_,function(T){return t_1(q,T)}).C8(g.r_)},d)}; GAj=function(){try{var d=g.qx("yt.ads.biscotti.getId_");return d?d():Bej()}catch(q){return nK(q)}}; kAI=function(d){d&&(d.dataset?d.dataset[L6n()]="true":YIX(d))}; PjD=function(d){return d?d.dataset?d.dataset[L6n()]:d.getAttribute("data-loaded"):null}; L6n=function(){return W6N.loaded||(W6N.loaded="loaded".replace(/\-([a-z])/g,function(d,q){return q.toUpperCase()}))}; Cj2=function(){var d=document;if("visibilityState"in d)return d.visibilityState;var q=JB+"VisibilityState";if(q in d)return d[q]}; sd=function(d,q){var T;D7(d,function(Y){T=q[Y];return!!T}); return T}; $O=function(d){if(d.requestFullscreen)d=d.requestFullscreen(void 0);else if(d.webkitRequestFullscreen)d=d.webkitRequestFullscreen();else if(d.mozRequestFullScreen)d=d.mozRequestFullScreen();else if(d.msRequestFullscreen)d=d.msRequestFullscreen();else if(d.webkitEnterFullscreen)d=d.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return d instanceof Promise?d:Promise.resolve()}; Ns=function(d){var q;g.g8()?FH()==d&&(q=document):q=d;return q&&(d=sd(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],q))?(q=d.call(q),q instanceof Promise?q:Promise.resolve()):Promise.resolve()}; uTY=function(d){return g.QN(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(q){return"on"+q.toLowerCase()in d})}; D0I=function(){var d=document;return g.QN(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(q){return"on"+q.toLowerCase()in d})}; g.g8=function(){return!!sd(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; FH=function(d){d=d===void 0?!1:d;var q=sd(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(d)for(;q&&q.shadowRoot;)q=q.shadowRoot.fullscreenElement;return q?q:null}; RY=function(d){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(d=d||window.event){this.event=d;for(var q in d)q in wJ_||(this[q]=d[q]);this.scale=d.scale;this.rotation=d.rotation;var T=d.target||d.srcElement;T&&T.nodeType==3&&(T=T.parentNode);this.target=T;var Y=d.relatedTarget; if(Y)try{Y=Y.nodeName?Y:null}catch(e){Y=null}else this.type=="mouseover"?Y=d.fromElement:this.type=="mouseout"&&(Y=d.toElement);this.relatedTarget=Y;this.clientX=d.clientX!=void 0?d.clientX:d.pageX;this.clientY=d.clientY!=void 0?d.clientY:d.pageY;this.keyCode=d.keyCode?d.keyCode:d.which;this.charCode=d.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=d.altKey;this.ctrlKey=d.ctrlKey;this.shiftKey=d.shiftKey;this.metaKey=d.metaKey;this.G=d.pageX;this.U=d.pageY}}catch(e){}}; f__=function(d){if(document.body&&document.documentElement){var q=document.body.scrollTop+document.documentElement.scrollTop;d.G=d.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);d.U=d.clientY+q}}; zJ7=function(d,q,T,Y){Y=Y===void 0?{}:Y;d.addEventListener&&(q!="mouseenter"||"onmouseenter"in document?q!="mouseleave"||"onmouseenter"in document?q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(q="MozMousePixelScroll"):q="mouseout":q="mouseover");return gb(xO,function(e){var U=typeof e[4]==="boolean"&&e[4]==!!Y,b=g.UI(e[4])&&g.UI(Y)&&g.RT(e[4],Y);return!!e.length&&e[0]==d&&e[1]==q&&e[2]==T&&(U||b)})}; g.yi=function(d,q,T,Y){Y=Y===void 0?{}:Y;if(!d||!d.addEventListener&&!d.attachEvent)return"";var e=zJ7(d,q,T,Y);if(e)return e;e=++ii_.count+"";var U=!(q!="mouseenter"&&q!="mouseleave"||!d.addEventListener||"onmouseenter"in document);var b=U?function(J){J=new RY(J);if(!MQ(J.relatedTarget,function(F){return F==d},!0))return J.currentTarget=d,J.type=q,T.call(d,J)}:function(J){J=new RY(J); J.currentTarget=d;return T.call(d,J)}; b=g.iF(b);d.addEventListener?(q=="mouseenter"&&U?q="mouseover":q=="mouseleave"&&U?q="mouseout":q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(q="MozMousePixelScroll"),I_6()||typeof Y==="boolean"?d.addEventListener(q,b,Y):d.addEventListener(q,b,!!Y.capture)):d.attachEvent("on"+q,b);xO[e]=[d,q,T,b,Y];return e}; Sqn=function(d){return m0n(d,function(q){return g.V5(q,"ytp-ad-has-logging-urls")})}; m0n=function(d,q){var T=document.body||document;return g.yi(T,"click",function(Y){var e=MQ(Y.target,function(U){return U===T||q(U)},!0); e&&e!==T&&!e.disabled&&(Y.currentTarget=e,d.call(e,Y))})}; g.hB=function(d){d&&(typeof d=="string"&&(d=[d]),g.Sj(d,function(q){if(q in xO){var T=xO[q],Y=T[0],e=T[1],U=T[3];T=T[4];Y.removeEventListener?I_6()||typeof T==="boolean"?Y.removeEventListener(e,U,T):Y.removeEventListener(e,U,!!T.capture):Y.detachEvent&&Y.detachEvent("on"+e,U);delete xO[q]}}))}; Hu=function(d){for(var q in xO)xO[q][0]==d&&g.hB(q)}; Qi=function(d){d=d||window.event;var q;d.composedPath&&typeof d.composedPath==="function"?q=d.composedPath():q=d.path;q&&q.length?d=q[0]:(d=d||window.event,d=d.target||d.srcElement,d.nodeType==3&&(d=d.parentNode));return d}; Ms=function(d){this.L=d;this.G=null;this.T=0;this.X=null;this.S=0;this.U=[];for(d=0;d<4;d++)this.U.push(0);this.j=0;this.UD=g.yi(window,"mousemove",(0,g.sI)(this.K,this));this.B=g.$A((0,g.sI)(this.lr,this),25)}; cu=function(d){g.W.call(this);this.L=[];this.Qp=d||this}; Ed=function(d,q,T,Y){for(var e=0;e0?T:0;T=Y?Date.now()+Y*1E3:0;if((Y=Y?(0,g.aY)():AB())&&window.JSON){typeof q!=="string"&&(q=JSON.stringify(q,void 0));try{Y.set(d,q,T)}catch(e){Y.remove(d)}}}; g.Zs=function(d){var q=AB(),T=(0,g.aY)();if(!q&&!T||!window.JSON)return null;try{var Y=q.get(d)}catch(e){}if(typeof Y!=="string")try{Y=T.get(d)}catch(e){}if(typeof Y!=="string")return null;try{Y=JSON.parse(Y,void 0)}catch(e){}return Y}; vH7=function(){var d=(0,g.aY)();if(d&&(d=d.U("yt-player-quality")))return d.creation}; g.Od=function(d){try{var q=AB(),T=(0,g.aY)();q&&q.remove(d);T&&T.remove(d)}catch(Y){}}; g.nW=function(){return g.Zs("yt-remote-session-screen-id")}; oHg=function(d){var q=this;this.U=void 0;this.G=!1;d.addEventListener("beforeinstallprompt",function(T){T.preventDefault();q.U=T}); d.addEventListener("appinstalled",function(){q.G=!0},{once:!0})}; r8=function(){if(!g.oQ.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.oQ.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.oQ.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.oQ.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.oQ.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(d){return"WEB_DISPLAY_MODE_UNKNOWN"}}; tB=function(){this.zn=!0}; V_2=function(){tB.instance||(tB.instance=new tB);return tB.instance}; dK7=function(d){switch(d){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}}; qCI=function(){this.G=g.Cs("ALT_PREF_COOKIE_NAME","PREF");this.U=g.Cs("ALT_PREF_COOKIE_DOMAIN","youtube.com");var d=g.r7(this.G);d&&this.parse(d)}; g.KW=function(){Bu||(Bu=new qCI);return Bu}; g.Gy=function(d,q){return!!((TW2("f"+(Math.floor(q/31)+1))||0)&1<0;)switch(d=Y7.shift(),d.type){case "ERROR":Vi.EP(d.payload);break;case "EVENT":Vi.logEvent(d.eventType,d.payload)}}; U2=function(d){eF||(Vi?Vi.EP(d):(Y7.push({type:"ERROR",payload:d}),Y7.length>10&&Y7.shift()))}; bR=function(d,q){eF||(Vi?Vi.logEvent(d,q):(Y7.push({type:"EVENT",eventType:d,payload:q}),Y7.length>10&&Y7.shift()))}; X8=function(d){if(d.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; Jr=function(d){return d.substr(0,d.indexOf(":"))||d}; g.s2=function(d,q,T,Y,e){q=q===void 0?{}:q;T=T===void 0?$K2[d]:T;Y=Y===void 0?gM_[d]:Y;e=e===void 0?FEg[d]:e;g.CW.call(this,T,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:d},q));this.type=d;this.message=T;this.level=Y;this.G=e;Object.setPrototypeOf(this,g.s2.prototype)}; $7=function(d,q){g.s2.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:q,foundObjectStores:d},$K2.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,$7.prototype)}; gO=function(d,q){var T=Error.call(this);this.message=T.message;"stack"in T&&(this.stack=T.stack);this.index=d;this.objectStore=q;Object.setPrototypeOf(this,gO.prototype)}; Nw=function(d,q,T,Y){q=Jr(q);var e=d instanceof Error?d:Error("Unexpected error: "+d);if(e instanceof g.s2)return e;d={objectStoreNames:T,dbName:q,dbVersion:Y};if(e.name==="QuotaExceededError")return new g.s2("QUOTA_EXCEEDED",d);if(g.F8&&e.name==="UnknownError")return new g.s2("QUOTA_MAYBE_EXCEEDED",d);if(e instanceof gO)return new g.s2("MISSING_INDEX",Object.assign({},d,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&NW1.some(function(U){return e.message.includes(U)}))return new g.s2("EXECUTE_TRANSACTION_ON_CLOSED_DB", d); if(e.name==="AbortError")return new g.s2("UNKNOWN_ABORT",d,e.message);e.args=[Object.assign({},d,{name:"IdbError",V3:e.name})];e.level="WARNING";return e}; g.RJ=function(d,q,T){var Y=oY();return new g.s2("IDB_NOT_SUPPORTED",{context:{caller:d,publicName:q,version:T,hasSucceededOnce:Y==null?void 0:Y.hasSucceededOnce}})}; RN7=function(d){if(!d)throw Error();throw d;}; xKX=function(d){return d}; x7=function(d){this.G=d}; g.hr=function(d){function q(e){if(Y.state.status==="PENDING"){Y.state={status:"REJECTED",reason:e};e=g.E(Y.U);for(var U=e.next();!U.done;U=e.next())U=U.value,U()}} function T(e){if(Y.state.status==="PENDING"){Y.state={status:"FULFILLED",value:e};e=g.E(Y.G);for(var U=e.next();!U.done;U=e.next())U=U.value,U()}} var Y=this;this.state={status:"PENDING"};this.G=[];this.U=[];d=d.G;try{d(T,q)}catch(e){q(e)}}; y_I=function(d,q,T,Y,e){try{if(d.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var U=T(d.state.value);U instanceof g.hr?Hj(d,q,U,Y,e):Y(U)}catch(b){e(b)}}; hNN=function(d,q,T,Y,e){try{if(d.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var U=T(d.state.reason);U instanceof g.hr?Hj(d,q,U,Y,e):Y(U)}catch(b){e(b)}}; Hj=function(d,q,T,Y,e){q===T?e(new TypeError("Circular promise chain detected.")):T.then(function(U){U instanceof g.hr?Hj(d,q,U,Y,e):Y(U)},function(U){e(U)})}; H9Q=function(d,q,T){function Y(){T(d.error);U()} function e(){q(d.result);U()} function U(){try{d.removeEventListener("success",e),d.removeEventListener("error",Y)}catch(b){}} d.addEventListener("success",e);d.addEventListener("error",Y)}; Q16=function(d){return new Promise(function(q,T){H9Q(d,q,T)})}; Qt=function(d){return new g.hr(new x7(function(q,T){H9Q(d,q,T)}))}; Mw=function(d,q){return new g.hr(new x7(function(T,Y){function e(){var U=d?q(d):null;U?U.then(function(b){d=b;e()},Y):T()} e()}))}; MAn=function(d,q){this.request=d;this.cursor=q}; c_g=function(d){return Qt(d).then(function(q){return q?new MAn(d,q):null})}; g.EMn=function(d){d.cursor.continue(void 0);return c_g(d.request)}; j1Y=function(d,q){this.G=d;this.options=q;this.transactionCount=0;this.j=Math.round((0,g.cj)());this.U=!1}; g.jF=function(d,q,T){d=d.G.createObjectStore(q,T);return new E2(d)}; aJ=function(d,q){d.G.objectStoreNames.contains(q)&&d.G.deleteObjectStore(q)}; g.ZP=function(d,q,T){return g.Ar(d,[q],{mode:"readwrite",sM:!0},function(Y){return g.p7(Y.objectStore(q),T)})}; g.Ar=function(d,q,T,Y){var e,U,b,J,F,N,R,x,y,h,H,a;return g.G(function(p){switch(p.U){case 1:var t={mode:"readonly",sM:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof T==="string"?t.mode=T:Object.assign(t,T);e=t;d.transactionCount++;U=e.sM?3:1;b=0;case 2:if(J){p.tF(4);break}b++;F=Math.round((0,g.cj)());g.jD(p,5);N=d.G.transaction(q,e.mode);t=new O2(N);t=a66(t,Y);return g.B(p,t,7);case 7:return R=p.G,x=Math.round((0,g.cj)()),A_I(d,F,x,b,void 0,q.join(),e),p.return(R);case 5:y=g.nN(p);h=Math.round((0,g.cj)()); H=Nw(y,d.G.name,q.join(),d.G.version);if((a=H instanceof g.s2&&!H.G)||b>=U)A_I(d,F,h,b,H,q.join(),e),J=H;p.tF(2);break;case 4:return p.return(Promise.reject(J))}})}; A_I=function(d,q,T,Y,e,U,b){q=T-q;e?(e instanceof g.s2&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&bR("QUOTA_EXCEEDED",{dbName:Jr(d.G.name),objectStoreNames:U,transactionCount:d.transactionCount,transactionMode:b.mode}),e instanceof g.s2&&e.type==="UNKNOWN_ABORT"&&(T-=d.j,T<0&&T>=2147483648&&(T=0),bR("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:U,transactionDuration:q,transactionCount:d.transactionCount,dbDuration:T}),d.U=!0),phN(d,!1,Y,U,q,b.tag),U2(e)):phN(d,!0,Y,U,q, b.tag)}; phN=function(d,q,T,Y,e,U){bR("TRANSACTION_ENDED",{objectStoreNames:Y,connectionHasUnknownAbortedTransaction:d.U,duration:e,isSuccessful:q,tryCount:T,tag:U===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":U})}; E2=function(d){this.G=d}; g.n7=function(d,q,T){d.G.createIndex(q,T,{unique:!1})}; Z9j=function(d,q){return g.rO(d,{query:q},function(T){return T.delete().then(function(){return g.tr(T)})}).then(function(){})}; O9f=function(d,q,T){var Y=[];return g.rO(d,{query:q},function(e){if(!(T!==void 0&&Y.length>=T))return Y.push(e.getValue()),g.tr(e)}).then(function(){return Y})}; r_f=function(d){return"getAllKeys"in IDBObjectStore.prototype?Qt(d.G.getAllKeys(void 0,void 0)):nM6(d)}; nM6=function(d){var q=[];return g.tAQ(d,{query:void 0},function(T){q.push(T.cursor.primaryKey);return g.EMn(T)}).then(function(){return q})}; g.p7=function(d,q,T){return Qt(d.G.put(q,T))}; g.rO=function(d,q,T){d=d.G.openCursor(q.query,q.direction);return Bj(d).then(function(Y){return Mw(Y,T)})}; g.tAQ=function(d,q,T){var Y=q.query;q=q.direction;d="openKeyCursor"in IDBObjectStore.prototype?d.G.openKeyCursor(Y,q):d.G.openCursor(Y,q);return c_g(d).then(function(e){return Mw(e,T)})}; O2=function(d){var q=this;this.G=d;this.j=new Map;this.U=!1;this.done=new Promise(function(T,Y){q.G.addEventListener("complete",function(){T()}); q.G.addEventListener("error",function(e){e.currentTarget===e.target&&Y(q.G.error)}); q.G.addEventListener("abort",function(){var e=q.G.error;if(e)Y(e);else if(!q.U){e=g.s2;for(var U=q.G.objectStoreNames,b=[],J=0;J=T))return Y.push(e.getValue()),g.tr(e)}).then(function(){return Y})}; g.K7=function(d,q,T){d=d.G.openCursor(q.query===void 0?null:q.query,q.direction===void 0?"next":q.direction);return Bj(d).then(function(Y){return Mw(Y,T)})}; Ga=function(d,q){this.request=d;this.cursor=q}; Bj=function(d){return Qt(d).then(function(q){return q?new Ga(d,q):null})}; g.tr=function(d){d.cursor.continue(void 0);return Bj(d.request)}; GhH=function(d,q,T){return new Promise(function(Y,e){function U(){y||(y=new j1Y(b.result,{closed:x}));return y} var b=q!==void 0?self.indexedDB.open(d,q):self.indexedDB.open(d);var J=T.blocked,F=T.blocking,N=T.bjO,R=T.upgrade,x=T.closed,y;b.addEventListener("upgradeneeded",function(h){try{if(h.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(b.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");h.dataLoss&&h.dataLoss!=="none"&&bR("IDB_DATA_CORRUPTED",{reason:h.dataLossMessage||"unknown reason",dbName:Jr(d)});var H=U(),a=new O2(b.transaction); R&&R(H,function(p){return h.oldVersion=p},a); a.done.catch(function(p){e(p)})}catch(p){e(p)}}); b.addEventListener("success",function(){var h=b.result;F&&h.addEventListener("versionchange",function(){F(U())}); h.addEventListener("close",function(){bR("IDB_UNEXPECTEDLY_CLOSED",{dbName:Jr(d),dbVersion:h.version});N&&N()}); Y(U())}); b.addEventListener("error",function(){e(b.error)}); J&&b.addEventListener("blocked",function(){J()})})}; LEI=function(d,q,T){T=T===void 0?{}:T;return GhH(d,q,T)}; L7=function(d,q){q=q===void 0?{}:q;var T,Y,e,U;return g.G(function(b){if(b.U==1)return g.jD(b,2),T=self.indexedDB.deleteDatabase(d),Y=q,(e=Y.blocked)&&T.addEventListener("blocked",function(){e()}),g.B(b,Q16(T),4); if(b.U!=2)return g.ZX(b,0);U=g.nN(b);throw Nw(U,d,"",-1);})}; k7=function(d,q){this.name=d;this.options=q;this.j=!0;this.S=this.T=0}; khj=function(d,q){return new g.s2("INCOMPATIBLE_DB_VERSION",{dbName:d.name,oldVersion:d.options.version,newVersion:q})}; g.Pj=function(d,q){if(!q)throw g.RJ("openWithToken",Jr(d.name));return d.open()}; PcI=function(d,q){var T;return g.G(function(Y){if(Y.U==1)return g.B(Y,g.Pj(Wj,q),2);T=Y.G;return Y.return(g.Ar(T,["databases"],{sM:!0,mode:"readwrite"},function(e){var U=e.objectStore("databases");return U.get(d.actualName).then(function(b){if(b?d.actualName!==b.actualName||d.publicName!==b.publicName||d.userIdentifier!==b.userIdentifier:1)return g.p7(U,d).then(function(){})})}))})}; C7=function(d,q){var T;return g.G(function(Y){if(Y.U==1)return d?g.B(Y,g.Pj(Wj,q),2):Y.return();T=Y.G;return Y.return(T.delete("databases",d))})}; WEH=function(d,q){var T,Y;return g.G(function(e){return e.U==1?(T=[],g.B(e,g.Pj(Wj,q),2)):e.U!=3?(Y=e.G,g.B(e,g.Ar(Y,["databases"],{sM:!0,mode:"readonly"},function(U){T.length=0;return g.rO(U.objectStore("databases"),{},function(b){d(b.getValue())&&T.push(b.getValue());return g.tr(b)})}),3)):e.return(T)})}; Cc1=function(d,q){return WEH(function(T){return T.publicName===d&&T.userIdentifier!==void 0},q)}; uO2=function(){var d,q,T,Y;return g.G(function(e){switch(e.U){case 1:d=oY();if((q=d)==null?0:q.hasSucceededOnce)return e.return(!0);if(uR&&Dq()&&!w7()||g.DP)return e.return(!1);try{if(T=self,!(T.indexedDB&&T.IDBIndex&&T.IDBKeyRange&&T.IDBObjectStore))return e.return(!1)}catch(U){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.jD(e,2);Y={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.B(e,PcI(Y,wO),4);case 4:return g.B(e,C7("yt-idb-test-do-not-use",wO),5);case 5:return e.return(!0);case 2:return g.nN(e),e.return(!1)}})}; DKf=function(){if(f7!==void 0)return f7;eF=!0;return f7=uO2().then(function(d){eF=!1;var q;if((q=vu())!=null&&q.G){var T;q={hasSucceededOnce:((T=oY())==null?void 0:T.hasSucceededOnce)||d};var Y;(Y=vu())==null||Y.set("LAST_RESULT_ENTRY_KEY",q,2592E3,!0)}return d})}; za=function(){return g.qx("ytglobal.idbToken_")||void 0}; g.iR=function(){var d=za();return d?Promise.resolve(d):DKf().then(function(q){(q=q?wO:void 0)&&g.Vf("ytglobal.idbToken_",q);return q})}; whD=function(d){if(!g.Ds())throw d=new g.s2("AUTH_INVALID",{dbName:d}),U2(d),d;var q=g.u5();return{actualName:d+":"+q,publicName:d,userIdentifier:q}}; f61=function(d,q,T,Y){var e,U,b,J,F,N;return g.G(function(R){switch(R.U){case 1:return U=(e=Error().stack)!=null?e:"",g.B(R,g.iR(),2);case 2:b=R.G;if(!b)throw J=g.RJ("openDbImpl",d,q),g.RD("ytidb_async_stack_killswitch")||(J.stack=J.stack+"\n"+U.substring(U.indexOf("\n")+1)),U2(J),J;X8(d);F=T?{actualName:d,publicName:d,userIdentifier:void 0}:whD(d);g.jD(R,3);return g.B(R,PcI(F,b),5);case 5:return g.B(R,LEI(F.actualName,q,Y),6);case 6:return R.return(R.G);case 3:return N=g.nN(R),g.jD(R,7),g.B(R,C7(F.actualName, b),9);case 9:g.ZX(R,8);break;case 7:g.nN(R);case 8:throw N;}})}; zN7=function(d,q,T){T=T===void 0?{}:T;return f61(d,q,!1,T)}; i9_=function(d,q,T){T=T===void 0?{}:T;return f61(d,q,!0,T)}; I6g=function(d,q){q=q===void 0?{}:q;var T,Y;return g.G(function(e){if(e.U==1)return g.B(e,g.iR(),2);if(e.U!=3){T=e.G;if(!T)return e.return();X8(d);Y=whD(d);return g.B(e,L7(Y.actualName,q),3)}return g.B(e,C7(Y.actualName,T),0)})}; mKn=function(d,q,T){d=d.map(function(Y){return g.G(function(e){return e.U==1?g.B(e,L7(Y.actualName,q),2):g.B(e,C7(Y.actualName,T),0)})}); return Promise.all(d).then(function(){})}; SCD=function(d){var q=q===void 0?{}:q;var T,Y;return g.G(function(e){if(e.U==1)return g.B(e,g.iR(),2);if(e.U!=3){T=e.G;if(!T)return e.return();X8(d);return g.B(e,Cc1(d,T),3)}Y=e.G;return g.B(e,mKn(Y,q,T),0)})}; l6Q=function(d,q){q=q===void 0?{}:q;var T;return g.G(function(Y){if(Y.U==1)return g.B(Y,g.iR(),2);if(Y.U!=3){T=Y.G;if(!T)return Y.return();X8(d);return g.B(Y,L7(d,q),3)}return g.B(Y,C7(d,T),0)})}; IJ=function(d,q){k7.call(this,d,q);this.options=q;X8(d)}; vMj=function(d,q){var T;return function(){T||(T=new IJ(d,q));return T}}; g.mY=function(d,q){return vMj(d,q)}; SF=function(d){return g.Pj(oM1(),d)}; VAj=function(d,q,T,Y){var e,U,b;return g.G(function(J){switch(J.U){case 1:return e={config:d,hashData:q,timestamp:Y!==void 0?Y:(0,g.cj)()},g.B(J,SF(T),2);case 2:return U=J.G,g.B(J,U.clear("hotConfigStore"),3);case 3:return g.B(J,g.ZP(U,"hotConfigStore",e),4);case 4:return b=J.G,J.return(b)}})}; dg6=function(d,q,T,Y,e){var U,b,J;return g.G(function(F){switch(F.U){case 1:return U={config:d,hashData:q,configData:T,timestamp:e!==void 0?e:(0,g.cj)()},g.B(F,SF(Y),2);case 2:return b=F.G,g.B(F,b.clear("coldConfigStore"),3);case 3:return g.B(F,g.ZP(b,"coldConfigStore",U),4);case 4:return J=F.G,F.return(J)}})}; qAN=function(d){var q,T;return g.G(function(Y){return Y.U==1?g.B(Y,SF(d),2):Y.U!=3?(q=Y.G,T=void 0,g.B(Y,g.Ar(q,["coldConfigStore"],{mode:"readwrite",sM:!0},function(e){return g.K7(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(U){T=U.getValue()})}),3)):Y.return(T)})}; T96=function(d){var q,T;return g.G(function(Y){return Y.U==1?g.B(Y,SF(d),2):Y.U!=3?(q=Y.G,T=void 0,g.B(Y,g.Ar(q,["hotConfigStore"],{mode:"readwrite",sM:!0},function(e){return g.K7(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(U){T=U.getValue()})}),3)):Y.return(T)})}; YAX=function(){return g.G(function(d){return g.B(d,SCD("ytGcfConfig"),0)})}; lR=function(){g.W.call(this);this.U=[];this.G=[];var d=g.qx("yt.gcf.config.hotUpdateCallbacks");d?(this.U=[].concat(g.RQ(d)),this.G=d):(this.G=[],g.Vf("yt.gcf.config.hotUpdateCallbacks",this.G))}; TN=function(){var d=this;this.S=!1;this.j=this.T=0;this.X=new lR;this.fC={D2v:function(){d.S=!0}, LLx:function(){return d.G}, KNf:function(q){vj(d,q)}, Lw:function(q){d.Lw(q)}, Zw2:function(q){oJ(d,q)}, Wd:function(){return d.coldHashData}, Ki:function(){return d.hotHashData}, w$2:function(){return d.U}, Bak:function(){return Vt()}, Otk:function(){return dM()}, Ztv:function(){return g.qx("yt.gcf.config.coldHashData")}, cWv:function(){return g.qx("yt.gcf.config.hotHashData")}, rvw:function(){e6H(d)}, LNU:function(){d.Lw(void 0);qz(d);delete TN.instance}, C82:function(q){d.j=q}, AWw:function(){return d.j}}}; Ug2=function(){if(!TN.instance){var d=new TN;TN.instance=d}return TN.instance}; Jx7=function(d){var q;g.G(function(T){if(T.U==1)return g.RD("start_client_gcf")||g.RD("delete_gcf_config_db")?g.RD("start_client_gcf")?g.B(T,g.iR(),3):T.tF(2):T.return();T.U!=2&&((q=T.G)&&g.Ds()&&!g.RD("delete_gcf_config_db")?(d.S=!0,e6H(d)):(bvf(d),X7j(d)));return g.RD("delete_gcf_config_db")?g.B(T,YAX(),0):T.tF(0)})}; YL=function(){var d;return(d=dM())!=null?d:g.Cs("RAW_HOT_CONFIG_GROUP")}; sM2=function(d){var q,T,Y,e,U,b;return g.G(function(J){switch(J.U){case 1:if(d.U)return J.return(dM());if(!d.S)return q=g.RJ("getHotConfig IDB not initialized"),IE(q),J.return(Promise.reject(q));T=za();Y=g.Cs("TIME_CREATED_MS");if(!T){e=g.RJ("getHotConfig token error");IE(e);J.tF(2);break}return g.B(J,T96(T),3);case 3:if((U=J.G)&&U.timestamp>Y)return vj(d,U.config),d.Lw(U.hashData),J.return(dM());case 2:X7j(d);if(!(T&&d.U&&d.hotHashData)){J.tF(4);break}return g.B(J,VAj(d.U,d.hotHashData,T,Y),4);case 4:return d.U? J.return(dM()):(b=new g.CW("Config not available in ytConfig"),IE(b),J.return(Promise.reject(b)))}})}; gGI=function(d){var q,T,Y,e,U,b;return g.G(function(J){switch(J.U){case 1:if(d.G)return J.return(Vt());if(!d.S)return q=g.RJ("getColdConfig IDB not initialized"),IE(q),J.return(Promise.reject(q));T=za();Y=g.Cs("TIME_CREATED_MS");if(!T){e=g.RJ("getColdConfig");IE(e);J.tF(2);break}return g.B(J,qAN(T),3);case 3:if((U=J.G)&&U.timestamp>Y)return oJ(d,U.config),$gQ(d,U.configData),qz(d,U.hashData),J.return(Vt());case 2:bvf(d);if(!(T&&d.G&&d.coldHashData&&d.configData)){J.tF(4);break}return g.B(J,dg6(d.G, d.coldHashData,d.configData,T,Y),4);case 4:return d.G?J.return(Vt()):(b=new g.CW("Config not available in ytConfig"),IE(b),J.return(Promise.reject(b)))}})}; e6H=function(d){if(!d.U||!d.G){if(!za()){var q=g.RJ("scheduleGetConfigs");IE(q)}d.T||(d.T=g.Gh.DE(function(){return g.G(function(T){switch(T.U){case 1:return g.jD(T,2),g.B(T,sM2(d),4);case 4:g.ZX(T,3);break;case 2:g.nN(T);case 3:return g.jD(T,5),g.B(T,gGI(d),7);case 7:g.ZX(T,6);break;case 5:g.nN(T);case 6:d.T&&(d.T=0),g.E6(T)}})},100))}}; F$_=function(d,q,T){var Y,e,U;return g.G(function(b){switch(b.U){case 1:if(!g.RD("start_client_gcf")){b.tF(0);break}T&&vj(d,T);d.Lw(q);Y=za();if(!Y){b.tF(3);break}if(T){b.tF(4);break}return g.B(b,T96(Y),5);case 5:e=b.G,T=(U=e)==null?void 0:U.config;case 4:return g.B(b,VAj(T,q,Y),3);case 3:if(T)for(var J=T,F=g.E(d.X.G),N=F.next();!N.done;N=F.next())N=N.value,N(J);g.E6(b)}})}; N9Q=function(d,q,T){var Y,e,U,b;return g.G(function(J){if(J.U==1){if(!g.RD("start_client_gcf"))return J.tF(0);qz(d,q);return(Y=za())?T?J.tF(4):g.B(J,qAN(Y),5):J.tF(0)}J.U!=4&&(e=J.G,T=(U=e)==null?void 0:U.config);if(!T)return J.tF(0);b=T.configData;return g.B(J,dg6(T,q,b,Y),0)})}; R6_=function(){var d=Ug2(),q=(0,g.cj)()-d.j;if(!(d.j!==0&&q0&&(q.request={internalExperimentFlags:T});yx1(d,void 0,q);h6_(void 0,q);HvX(void 0,q);QMD(d,void 0,q);MpQ(void 0,q);g.RD("start_client_gcf")&&cxn(void 0,q);g.Cs("DELEGATED_SESSION_ID")&& !g.RD("pageid_as_header_web")&&(q.user={onBehalfOfUser:g.Cs("DELEGATED_SESSION_ID")});!g.RD("fill_delegate_context_in_gel_killswitch")&&(d=g.Cs("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(q.user=Object.assign({},q.user,{serializedDelegationContext:d}));d=g.Cs("INNERTUBE_CONTEXT");var Y;if(g.RD("enable_persistent_device_token")&&(d==null?0:(Y=d.client)==null?0:Y.rolloutToken)){var e;q.client.rolloutToken=d==null?void 0:(e=d.client)==null?void 0:e.rolloutToken}Y=Object;e=Y.assign;d=q.client; T={};for(var U=g.E(Object.entries(lF(g.Cs("DEVICE","")))),b=U.next();!b.done;b=U.next()){var J=g.E(b.value);b=J.next().value;J=J.next().value;b==="cbrand"?T.deviceMake=J:b==="cmodel"?T.deviceModel=J:b==="cbr"?T.browserName=J:b==="cbrver"?T.browserVersion=J:b==="cos"?T.osName=J:b==="cosver"?T.osVersion=J:b==="cplatform"&&(T.platform=J)}q.client=e.call(Y,d,T);return q}; yx1=function(d,q,T){d=d.Bt;if(d==="WEB"||d==="MWEB"||d===1||d===2)if(q){T=hI(q,Es,96)||new Es;var Y=r8();Y=Object.keys(EGQ).indexOf(Y);Y=Y===-1?null:Y;Y!==null&&L2(T,3,Y);Qw(q,Es,96,T)}else T&&(T.client.mainAppWebInfo=(Y=T.client.mainAppWebInfo)!=null?Y:{},T.client.mainAppWebInfo.webDisplayMode=r8())}; h6_=function(d,q){var T=g.qx("yt.embedded_player.embed_url");T&&(d?(q=hI(d,ZA,7)||new ZA,K2(q,4,T),Qw(d,ZA,7,q)):q&&(q.thirdParty={embedUrl:T}))}; HvX=function(d,q){var T;if(g.RD("web_log_memory_total_kbytes")&&((T=g.oQ.navigator)==null?0:T.deviceMemory)){var Y;T=(Y=g.oQ.navigator)==null?void 0:Y.deviceMemory;d?VX(d,95,cE(T*1E6)):q&&(q.client.memoryTotalKbytes=""+T*1E6)}}; QMD=function(d,q,T){if(d.appInstallData)if(q){var Y;T=(Y=hI(q,cq,62))!=null?Y:new cq;K2(T,6,d.appInstallData);Qw(q,cq,62,T)}else T&&(T.client.configInfo=T.client.configInfo||{},T.client.configInfo.appInstallData=d.appInstallData)}; MpQ=function(d,q){var T=UK_();T&&(d?L2(d,61,jM1[T]):q&&(q.client.connectionType=T));g.RD("web_log_effective_connection_type")&&(T=Xhj())&&(d?L2(d,94,ag2[T]):q&&(q.client.effectiveConnectionType=T))}; AxD=function(d,q,T){T=T===void 0?{}:T;var Y={};g.Cs("EOM_VISITOR_DATA")?Y={"X-Goog-EOM-Visitor-Id":g.Cs("EOM_VISITOR_DATA")}:Y={"X-Goog-Visitor-Id":T.visitorData||g.Cs("VISITOR_DATA","")};if(q&&q.includes("www.youtube-nocookie.com"))return Y;q=T.qy||g.Cs("AUTHORIZATION");q||(d?q="Bearer "+g.qx("gapi.auth.getToken")().access_token:(d=V_2().Tf(X7),g.RD("pageid_as_header_web")||delete d["X-Goog-PageId"],Y=Object.assign({},Y,d)));q&&(Y.Authorization=q);return Y}; cxn=function(d,q){var T=R6_();if(T){var Y=T.coldConfigData,e=T.coldHashData;T=T.hotHashData;if(d){var U;q=(U=hI(d,cq,62))!=null?U:new cq;Y=K2(q,1,Y);K2(Y,3,e).Lw(T);Qw(d,cq,62,q)}else q&&(q.client.configInfo=q.client.configInfo||{},Y&&(q.client.configInfo.coldConfigData=Y),e&&(q.client.configInfo.coldHashData=e),T&&(q.client.configInfo.hotHashData=T))}}; JL=function(d,q){this.version=d;this.args=q}; sg=function(d,q){this.topic=d;this.G=q}; gM=function(d,q){var T=$L();T&&T.publish.call(T,d.toString(),d,q)}; Ovf=function(d){var q=p72,T=$L();if(!T)return 0;var Y=T.subscribe(q.toString(),function(e,U){var b=g.qx("ytPubsub2Pubsub2SkipSubKey");b&&b==Y||(b=function(){if(F7[Y])try{if(U&&q instanceof sg&&q!=e)try{var J=q.G,F=U;if(!F.args||!F.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!J.QA){var N=new J;J.QA=N.version}var R=J.QA}catch(x){}if(!R||F.version!=R)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{U=Reflect.construct(J, g.rL(F.args))}catch(x){throw x.message="yt.pubsub2.Data.deserialize(): "+x.message,x;}}catch(x){throw x.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+q.toString()+": "+x.message,x;}d.call(window,U)}catch(x){g.z2(x)}},Zv1[q.toString()]?g.m2()?g.Gh.DE(b):g.s3(b,0):b())}); F7[Y]=!0;Nz[q.toString()]||(Nz[q.toString()]=[]);Nz[q.toString()].push(Y);return Y}; tp7=function(){var d=nGj,q=Ovf(function(T){d.apply(void 0,arguments);rx2(q)}); return q}; rx2=function(d){var q=$L();q&&(typeof d==="number"&&(d=[d]),g.Sj(d,function(T){q.unsubscribeByKey(T);delete F7[T]}))}; $L=function(){return g.qx("ytPubsub2Pubsub2Instance")}; RR=function(d,q,T){T=T===void 0?{sampleRate:.1}:T;Math.random()PMf||b=DgQ&&(aR++,g.RD("abandon_compression_after_N_slow_zips")?jT===g.xA("compression_disable_point")&&aR>w7I&&(Mz=!1):Mz=!1);fgg(q);Y.headers||(Y.headers={});Y.headers["Content-Encoding"]="gzip";Y.postBody=d;Y.postParams=void 0;e(T,Y)}; z66=function(d){var q=q===void 0?!1:q;var T=T===void 0?!1:T;var Y=(0,g.cj)(),e={startTime:Y,ticks:{},infos:{}},U=q?g.qx("yt.logging.gzipForFetch",!1):!0;if(Mz&&U){if(!d.body)return d;try{var b=T?d.body:typeof d.body==="string"?d.body:JSON.stringify(d.body);U=b;if(!T&&typeof b==="string"){var J=kRj(b);if(J!=null&&(J>PMf||J=DgQ)if(aR++,g.RD("abandon_compression_after_N_slow_zips")||g.RD("abandon_compression_after_N_slow_zips_lr")){q=aR/jT;var N=w7I/g.xA("compression_disable_point");jT>0&&jT%g.xA("compression_disable_point")===0&&q>=N&&(Mz=!1)}else Mz=!1;fgg(e)}}d.headers=Object.assign({},{"Content-Encoding":"gzip"},d.headers||{});d.body=U;return d}catch(R){return IE(R),d}}else return d}; kRj=function(d){try{return(new Blob(d.split(""))).size}catch(q){return IE(q),null}}; fgg=function(d){g.RD("gel_compression_csi_killswitch")||!g.RD("log_gel_compression_latency")&&!g.RD("log_gel_compression_latency_lr")||RR("gel_compression",d,{sampleRate:.1})}; p4=function(d){var q=this;this.DP=this.G=!1;this.potentialEsfErrorCounter=this.U=0;this.handleError=function(){}; this.fM=function(){}; this.now=Date.now;this.WC=!1;this.fC={cdr:function(R){q.gA=R}, ILk:function(){q.A4()}, yb:function(){q.pu()}, A9:function(R){return g.G(function(x){return g.B(x,q.A9(R),0)})}, eL:function(R,x){return q.eL(R,x)}, FA:function(){q.FA()}}; var T;this.hZ=(T=d.hZ)!=null?T:100;var Y;this.s8=(Y=d.s8)!=null?Y:1;var e;this.iM=(e=d.iM)!=null?e:2592E6;var U;this.Pw=(U=d.Pw)!=null?U:12E4;var b;this.aO=(b=d.aO)!=null?b:5E3;var J;this.gA=(J=d.gA)!=null?J:void 0;this.I8=!!d.I8;var F;this.kY=(F=d.kY)!=null?F:.1;var N;this.MZ=(N=d.MZ)!=null?N:10;d.handleError&&(this.handleError=d.handleError);d.fM&&(this.fM=d.fM);d.WC&&(this.WC=d.WC);d.DP&&(this.DP=d.DP);this.Wv=d.Wv;this.PO=d.PO;this.Fn=d.Fn;this.hk=d.hk;this.sendFn=d.sendFn;this.EL=d.EL;this.gC= d.gC;AL(this)&&(!this.Wv||this.Wv("networkless_logging"))&&ivX(this)}; ivX=function(d){AL(d)&&!d.WC&&(d.G=!0,d.I8&&Math.random()<=d.kY&&d.Fn.pQ(d.gA),d.FA(),d.hk.YL()&&d.A4(),d.hk.listen(d.EL,d.A4.bind(d)),d.hk.listen(d.gC,d.pu.bind(d)))}; SAX=function(d,q){if(!AL(d))throw Error("IndexedDB is not supported: updateRequestHandlers");var T=q.options.onError?q.options.onError:function(){}; q.options.onError=function(e,U){var b,J,F,N;return g.G(function(R){switch(R.U){case 1:b=IgX(U);(J=mg1(U))&&d.Wv&&d.Wv("web_enable_error_204")&&d.handleError(Error("Request failed due to compression"),q.url,U);if(!(d.Wv&&d.Wv("nwl_consider_error_code")&&b||d.Wv&&!d.Wv("nwl_consider_error_code")&&d.potentialEsfErrorCounter<=d.MZ)){R.tF(2);break}if(!d.hk.Zd){R.tF(3);break}return g.B(R,d.hk.Zd(),3);case 3:if(d.hk.YL()){R.tF(2);break}T(e,U);if(!d.Wv||!d.Wv("nwl_consider_error_code")||((F=q)==null?void 0: F.id)===void 0){R.tF(6);break}return g.B(R,d.Fn.p_(q.id,d.gA,!1),6);case 6:return R.return();case 2:if(d.Wv&&d.Wv("nwl_consider_error_code")&&!b&&d.potentialEsfErrorCounter>d.MZ)return R.return();d.potentialEsfErrorCounter++;if(((N=q)==null?void 0:N.id)===void 0){R.tF(8);break}return q.sendCount=400&&d<=599?!1:!0}; mg1=function(d){var q;d=d==null?void 0:(q=d.error)==null?void 0:q.code;return!(d!==400&&d!==415)}; lg7=function(){if(Og)return Og();var d={};Og=g.mY("LogsDatabaseV2",{pw:(d.LogsRequestsStore={JC:2},d),shared:!1,upgrade:function(q,T,Y){T(2)&&g.jF(q,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});T(3);T(5)&&(Y=Y.objectStore("LogsRequestsStore"),Y.G.indexNames.contains("newRequest")&&Y.G.deleteIndex("newRequest"),g.n7(Y,"newRequestV2",["status","interface","timestamp"]));T(7)&&aJ(q,"sapisid");T(9)&&aJ(q,"SWHealthLog")}, version:9});return Og()}; n4=function(d){return g.Pj(lg7(),d)}; oG6=function(d,q){var T,Y,e,U;return g.G(function(b){if(b.U==1)return T={startTime:(0,g.cj)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.B(b,n4(q),2);if(b.U!=3)return Y=b.G,e=Object.assign({},d,{options:JSON.parse(JSON.stringify(d.options)),interface:g.Cs("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.B(b,g.ZP(Y,"LogsRequestsStore",e),3);U=b.G;T.ticks.tc=(0,g.cj)();vGD(T);return b.return(U)})}; VpQ=function(d,q){var T,Y,e,U,b,J,F,N;return g.G(function(R){if(R.U==1)return T={startTime:(0,g.cj)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.B(R,n4(q),2);if(R.U!=3)return Y=R.G,e=g.Cs("INNERTUBE_CONTEXT_CLIENT_NAME",0),U=[d,e,0],b=[d,e,(0,g.cj)()],J=IDBKeyRange.bound(U,b),F="prev",g.RD("use_fifo_for_networkless")&&(F="next"),N=void 0,g.B(R,g.Ar(Y,["LogsRequestsStore"],{mode:"readwrite",sM:!0},function(x){return g.K7(x.objectStore("LogsRequestsStore").index("newRequestV2"), {query:J,direction:F},function(y){y.getValue()&&(N=y.getValue(),d==="NEW"&&(N.status="QUEUED",y.update(N)))})}),3); T.ticks.tc=(0,g.cj)();vGD(T);return R.return(N)})}; dvH=function(d,q){var T;return g.G(function(Y){if(Y.U==1)return g.B(Y,n4(q),2);T=Y.G;return Y.return(g.Ar(T,["LogsRequestsStore"],{mode:"readwrite",sM:!0},function(e){var U=e.objectStore("LogsRequestsStore");return U.get(d).then(function(b){if(b)return b.status="QUEUED",g.p7(U,b).then(function(){return b})})}))})}; qsD=function(d,q,T,Y){T=T===void 0?!0:T;var e;return g.G(function(U){if(U.U==1)return g.B(U,n4(q),2);e=U.G;return U.return(g.Ar(e,["LogsRequestsStore"],{mode:"readwrite",sM:!0},function(b){var J=b.objectStore("LogsRequestsStore");return J.get(d).then(function(F){return F?(F.status="NEW",T&&(F.sendCount+=1),Y!==void 0&&(F.options.compress=Y),g.p7(J,F).then(function(){return F})):g.hr.resolve(void 0)})}))})}; TwH=function(d,q){var T;return g.G(function(Y){if(Y.U==1)return g.B(Y,n4(q),2);T=Y.G;return Y.return(T.delete("LogsRequestsStore",d))})}; Ysn=function(d){var q,T;return g.G(function(Y){if(Y.U==1)return g.B(Y,n4(d),2);q=Y.G;T=(0,g.cj)()-2592E6;return g.B(Y,g.Ar(q,["LogsRequestsStore"],{mode:"readwrite",sM:!0},function(e){return g.rO(e.objectStore("LogsRequestsStore"),{},function(U){if(U.getValue().timestamp<=T)return U.delete().then(function(){return g.tr(U)})})}),0)})}; eYH=function(){g.G(function(d){return g.B(d,SCD("LogsDatabaseV2"),0)})}; vGD=function(d){g.RD("nwl_csi_killswitch")||RR("networkless_performance",d,{sampleRate:1})}; bsN=function(d){return g.Pj(Uv2(),d)}; Xq2=function(d){var q,T;g.G(function(Y){if(Y.U==1)return g.B(Y,bsN(d),2);q=Y.G;T=(0,g.cj)()-2592E6;return g.B(Y,g.Ar(q,["SWHealthLog"],{mode:"readwrite",sM:!0},function(e){return g.rO(e.objectStore("SWHealthLog"),{},function(U){if(U.getValue().timestamp<=T)return U.delete().then(function(){return g.tr(U)})})}),0)})}; J1g=function(d){var q;return g.G(function(T){if(T.U==1)return g.B(T,bsN(d),2);q=T.G;return g.B(T,q.clear("SWHealthLog"),0)})}; g.rM=function(d,q,T,Y,e,U,b){e=e===void 0?"":e;U=U===void 0?!1:U;b=b===void 0?!1:b;if(d)if(T&&!g.WL())IE(new g.CW("Legacy referrer-scrubbed ping detected")),d&&sEg(d,void 0,{scrubReferrer:!0});else if(e)HL(d,q,"POST",e,Y);else if(g.Cs("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Y||b)HL(d,q,"GET","",Y,void 0,U,b);else{b:{try{c:{var J=new Zgn({url:d});if(J.G.dsh==="1")var F=null;else{var N=J.G.ae;if(N==="1"){var R=J.G.adurl;if(R)try{F={version:3,B8:decodeURIComponent(R),wX:IL(J.U,"act=1","ri=1",Og2(J))}; break c}catch(h){}}F=N==="2"?{version:4,B8:IL(J.U,"dct=1","suid="+J.j,""),wX:IL(J.U,"act=1","ri=1","suid="+J.j)}:null}}if(F){var x=$f(d);var y=!(!x||!x.endsWith("/aclk")||cK(d,"ri")!=="1");break b}}catch(h){}y=!1}y?$vX(d)?(q&&q(),T=!0):T=!1:T=!1;T||sEg(d,q)}}; $vX=function(d,q){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(d,q===void 0?"":q))return!0}catch(T){}return!1}; sEg=function(d,q,T){T=T===void 0?{}:T;var Y=new Image,e=""+g51++;tL[e]=Y;Y.onload=Y.onerror=function(){q&&tL[e]&&q();delete tL[e]}; T.scrubReferrer&&(Y.referrerPolicy="no-referrer");Y.src=d}; FRH=function(d){var q;return((q=document.featurePolicy)==null?0:q.allowedFeatures().includes("attribution-reporting"))?d+"&nis=6":d+"&nis=5"}; K4=function(){BW||(BW=new l5("yt.offline"));return BW}; Nwf=function(d){if(g.RD("offline_error_handling")){var q=K4().get("errors",!0)||{};q[d.message]={name:d.name,stack:d.stack};d.level&&(q[d.message].level=d.level);K4().set("errors",q,2592E3,!0)}}; GN=function(){this.G=new Map;this.U=!1}; L4=function(){if(!GN.instance){var d=g.qx("yt.networkRequestMonitor.instance")||new GN;g.Vf("yt.networkRequestMonitor.instance",d);GN.instance=d}return GN.instance}; kL=function(){g.$1.call(this);var d=this;this.U=!1;this.G=AS_();this.G.listen("networkstatus-online",function(){if(d.U&&g.RD("offline_error_handling")){var q=K4().get("errors",!0);if(q){for(var T in q)if(q[T]){var Y=new g.CW(T,"sent via offline_errors");Y.name=q[T].name;Y.stack=q[T].stack;Y.level=q[T].level;g.z2(Y)}K4().set("errors",{},2592E3,!0)}}})}; RY6=function(){if(!kL.instance){var d=g.qx("yt.networkStatusManager.instance")||new kL;g.Vf("yt.networkStatusManager.instance",d);kL.instance=d}return kL.instance}; g.PW=function(d){d=d===void 0?{}:d;g.$1.call(this);var q=this;this.G=this.T=0;this.U=RY6();var T=g.qx("yt.networkStatusManager.instance.listen").bind(this.U);T&&(d.rateLimit?(this.rateLimit=d.rateLimit,T("networkstatus-online",function(){xvD(q,"publicytnetworkstatus-online")}),T("networkstatus-offline",function(){xvD(q,"publicytnetworkstatus-offline")})):(T("networkstatus-online",function(){q.dispatchEvent("publicytnetworkstatus-online")}),T("networkstatus-offline",function(){q.dispatchEvent("publicytnetworkstatus-offline")})))}; xvD=function(d,q){d.rateLimit?d.G?(g.Gh.Qt(d.T),d.T=g.Gh.DE(function(){d.j!==q&&(d.dispatchEvent(q),d.j=q,d.G=(0,g.cj)())},d.rateLimit-((0,g.cj)()-d.G))):(d.dispatchEvent(q),d.j=q,d.G=(0,g.cj)()):d.dispatchEvent(q)}; C4=function(){var d=p4.call;WW||(WW=new g.PW({UsZ:!0,U1k:!0}));d.call(p4,this,{Fn:{pQ:Ysn,uZ:TwH,hj:VpQ,Oz:dvH,p_:qsD,set:oG6},hk:WW,handleError:function(q,T,Y){var e,U=Y==null?void 0:(e=Y.error)==null?void 0:e.code;if(U===400||U===415){var b;q=new g.CW(q.message,T,Y==null?void 0:(b=Y.error)==null?void 0:b.code);IE(q,void 0,void 0,void 0,!0)}else g.z2(q)}, fM:IE,sendFn:y11,now:g.cj,bD:Nwf,PO:g.IY(),EL:"publicytnetworkstatus-online",gC:"publicytnetworkstatus-offline",I8:!0,kY:.1,MZ:g.xA("potential_esf_error_limit",10),Wv:g.RD,WC:!(g.Ds()&&g.sb(document.location.toString())!=="www.youtube-nocookie.com")});this.j=new g.sq;g.RD("networkless_immediately_drop_all_requests")&&eYH();l6Q("LogsDatabaseV2")}; uI=function(){var d=g.qx("yt.networklessRequestController.instance");d||(d=new C4,g.Vf("yt.networklessRequestController.instance",d),g.RD("networkless_logging")&&g.iR().then(function(q){d.gA=q;ivX(d);d.j.resolve();d.I8&&Math.random()<=d.kY&&d.gA&&Xq2(d.gA);g.RD("networkless_immediately_drop_sw_health_store")&&hYg(d)})); return d}; hYg=function(d){var q;g.G(function(T){if(!d.gA)throw q=g.RJ("clearSWHealthLogsDb"),q;return T.return(J1g(d.gA).catch(function(Y){d.handleError(Y)}))})}; y11=function(d,q,T,Y){Y=Y===void 0?!1:Y;q=g.RD("web_fp_via_jspb")?Object.assign({},q):q;g.RD("use_cfr_monitor")&&Hs1(d,q);if(g.RD("use_request_time_ms_header"))q.headers&&q4(d)&&(q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.cj)())));else{var e;if((e=q.postParams)==null?0:e.requestTimeMs)q.postParams.requestTimeMs=Math.round((0,g.cj)())}T&&Object.keys(q).length===0?g.rM(d):q.compress?q.postBody?(typeof q.postBody!=="string"&&(q.postBody=JSON.stringify(q.postBody)),Eg(d,q.postBody, q,g.QB,Y)):Eg(d,JSON.stringify(q.postParams),q,M4,Y):g.QB(d,q)}; Dd=function(d,q){g.RD("use_event_time_ms_header")&&q4(d)&&(q.headers||(q.headers={}),q.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.cj)())));return q}; Hs1=function(d,q){var T=q.onError?q.onError:function(){}; q.onError=function(e,U){L4().requestComplete(d,!1);T(e,U)}; var Y=q.onSuccess?q.onSuccess:function(){}; q.onSuccess=function(e,U){L4().requestComplete(d,!0);Y(e,U)}}; g.wM=function(d){this.config_=null;d?this.config_=d:xgg()&&(this.config_=g.Ug())}; g.f4=function(d,q,T,Y){function e(N){try{if((N===void 0?0:N)&&Y.retry&&!Y.networklessOptions.bypassNetworkless)U.method="POST",Y.networklessOptions.writeThenSend?uI().writeThenSend(F,U):uI().sendAndWrite(F,U);else if(Y.compress){var R=!Y.networklessOptions.writeThenSend;if(U.postBody){var x=U.postBody;typeof x!=="string"&&(x=JSON.stringify(U.postBody));Eg(F,x,U,g.QB,R)}else Eg(F,JSON.stringify(U.postParams),U,M4,R)}else g.RD("web_all_payloads_via_jspb")?g.QB(F,U):M4(F,U)}catch(y){if(y.name==="InvalidAccessError")IE(Error("An extension is blocking network request.")); else throw y;}} !g.Cs("VISITOR_DATA")&&q!=="visitor_id"&&Math.random()<.01&&IE(new g.CW("Missing VISITOR_DATA when sending innertube request.",q,T,Y));if(!d.isReady())throw d=new g.CW("innertube xhrclient not ready",q,T,Y),g.z2(d),d;var U={headers:Y.headers||{},method:"POST",postParams:T,postBody:Y.postBody,postBodyFormat:Y.postBodyFormat||"JSON",onTimeout:function(){Y.onTimeout()}, onFetchTimeout:Y.onTimeout,onSuccess:function(N,R){if(Y.onSuccess)Y.onSuccess(R)}, onFetchSuccess:function(N){if(Y.onSuccess)Y.onSuccess(N)}, onError:function(N,R){if(Y.onError)Y.onError(R)}, onFetchError:function(N){if(Y.onError)Y.onError(N)}, timeout:Y.timeout,withCredentials:!0,compress:Y.compress};U.headers["Content-Type"]||(U.headers["Content-Type"]="application/json");T="";var b=d.config_.hU;b&&(T=b);b=d.config_.bQ||!1;var J=AxD(b,T,Y);Object.assign(U.headers,J);U.headers.Authorization&&!T&&b&&(U.headers["x-origin"]=window.location.origin);var F=VH(""+T+("/youtubei/"+d.config_.innertubeApiVersion+"/"+q),{alt:"json"});g.qx("ytNetworklessLoggingInitializationOptions")&&QE6.isNwlInitialized?DKf().then(function(N){e(N)}):e(!1)}; g.ST=function(d,q,T){var Y=g.zN();if(Y&&q){var e=Y.subscribe(d,function(){function U(){iI[e]&&q.apply&&typeof q.apply=="function"&&q.apply(T||window,b)} var b=arguments;try{g.IR[d]?U():g.s3(U,0)}catch(J){g.z2(J)}},T); iI[e]=!0;mL[d]||(mL[d]=[]);mL[d].push(e);return e}return 0}; MW6=function(d){var q=g.ST("LOGGED_IN",function(T){d.apply(void 0,arguments);g.lI(q)})}; g.lI=function(d){var q=g.zN();q&&(typeof d==="number"?d=[d]:typeof d==="string"&&(d=[parseInt(d,10)]),g.Sj(d,function(T){q.unsubscribeByKey(T);delete iI[T]}))}; g.vW=function(d,q){var T=g.zN();return T?T.publish.apply(T,arguments):!1}; E5D=function(d){var q=g.zN();if(q)if(q.clear(d),d)c1Q(d);else for(var T in mL)c1Q(T)}; g.zN=function(){return g.oQ.ytPubsubPubsubInstance}; c1Q=function(d){mL[d]&&(d=mL[d],g.Sj(d,function(q){iI[q]&&delete iI[q]}),d.length=0)}; g.TT=function(d,q,T){jEN(d,q,T===void 0?null:T)}; jEN=function(d,q,T){T=T===void 0?null:T;var Y=aA6(d),e=document.getElementById(Y),U=e&&PjD(e),b=e&&!U;U?q&&q():(q&&(U=g.ST(Y,q),q=""+g.X_(q),A1X[q]=U),b||(e=pqN(d,Y,function(){PjD(e)||(kAI(e),g.vW(Y),g.s3(function(){E5D(Y)},0))},T)))}; pqN=function(d,q,T,Y){Y=Y===void 0?null:Y;var e=g.FE("SCRIPT");e.id=q;e.onload=function(){T&&setTimeout(T,0)}; e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}}; Y&&e.setAttribute("nonce",Y);g.QY(e,g.QH(d));d=document.getElementsByTagName("head")[0]||document.body;d.insertBefore(e,d.firstChild);return e}; aA6=function(d){var q=document.createElement("a");g.sD(q,d);d=q.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+tn(d)}; Yy=function(d,q){if(d===q)d=!0;else if(Array.isArray(d)&&Array.isArray(q))d=g.Is(d,q,Yy);else if(g.UI(d)&&g.UI(q))a:if(g.UN(d).length!=g.UN(q).length)d=!1;else{for(var T in d)if(!Yy(d[T],q[T])){d=!1;break a}d=!0}else d=!1;return d}; by=function(d){var q=g.CN.apply(1,arguments);if(!ea(d)||q.some(function(Y){return!ea(Y)}))throw Error("Only objects may be merged."); q=g.E(q);for(var T=q.next();!T.done;T=q.next())Uu(d,T.value)}; Uu=function(d,q){for(var T in q)if(ea(q[T])){if(T in d&&!ea(d[T]))throw Error("Cannot merge an object into a non-object.");T in d||(d[T]={});Uu(d[T],q[T])}else if(XZ(q[T])){if(T in d&&!XZ(d[T]))throw Error("Cannot merge an array into a non-array.");T in d||(d[T]=[]);ZsI(d[T],q[T])}else d[T]=q[T];return d}; ZsI=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next())T=T.value,ea(T)?d.push(Uu({},T)):XZ(T)?d.push(ZsI([],T)):d.push(T);return d}; ea=function(d){return typeof d==="object"&&!Array.isArray(d)}; XZ=function(d){return typeof d==="object"&&Array.isArray(d)}; J$=function(d){g.W.call(this);this.U=d}; $y=function(d){J$.call(this,!0);this.G=d}; g4=function(d,q){g.W.call(this);var T=this;this.j=[];this.L=!1;this.U=0;this.S=this.X=this.T=!1;this.lr=null;var Y=(0,g.sI)(d,q);this.G=new g.f9(function(){return Y(T.lr)},300); g.C(this,this.G);this.K=this.B=Infinity}; OsY=function(d,q){if(!q)return!1;for(var T=0;T-1)throw Error("Deps cycle for: "+q);if(d.U.has(q))return d.U.get(q);if(!d.G.has(q)){if(Y)return;throw Error("No provider for: "+q);}Y=d.G.get(q);T.push(q);if(Y.xj!==void 0)var e=Y.xj;else if(Y.V$v)e=Y[A$]?BwQ(d,Y[A$],T):[],e=Y.V$v.apply(Y,g.RQ(e));else if(Y.Du){e=Y.Du;var U=e[A$]?BwQ(d,e[A$],T):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.RQ(U))))}else throw Error("Could not resolve providers for: "+q);T.pop();Y.Q92||d.U.set(q,e); return e}; BwQ=function(d,q,T){return q?q.map(function(Y){return Y instanceof ci?pC(d,Y.key,T,!0):pC(d,Y,T)}):[]}; Ou=function(){Z5||(Z5=new tW6);return Z5}; r4=function(){var d,q;return"h5vcc"in nC&&((d=nC.h5vcc.traceEvent)==null?0:d.traceBegin)&&((q=nC.h5vcc.traceEvent)==null?0:q.traceEnd)?1:"performance"in nC&&nC.performance.mark&&nC.performance.measure?2:0}; t$=function(d){var q=r4();switch(q){case 1:nC.h5vcc.traceEvent.traceBegin("YTLR",d);break;case 2:nC.performance.mark(d+"-start");break;case 0:break;default:$S(q,"unknown trace type")}}; KRQ=function(d){var q=r4();switch(q){case 1:nC.h5vcc.traceEvent.traceEnd("YTLR",d);break;case 2:q=d+"-start";var T=d+"-end";nC.performance.mark(T);nC.performance.measure(d,q,T);break;case 0:break;default:$S(q,"unknown trace type")}}; G2X=function(d){var q,T;(T=(q=window).onerror)==null||T.call(q,d.message,"",0,0,d)}; LR2=function(d){var q=this;var T=T===void 0?0:T;var Y=Y===void 0?g.IY():Y;this.j=T;this.scheduler=Y;this.U=new g.sq;this.G=d;for(d={gZ:0};d.gZ=1E3?e():Y>=d?Tp||(Tp=Yz(function(){e();Tp=void 0},0)):U-J>=10&&(VW_(q,T.tier),b.T=U)}; mvf=function(d,q){if(d.endpoint==="log_event"){g.RD("more_accurate_gel_parser")&&IC().storePayload({isJspb:!1},d.payload);Sa(d);var T=ly(d),Y=new Map;Y.set(T,[d.payload]);var e=zYY(d.payload)||"";q&&(di=new q);return new g.pK(function(U,b){di&&di.isReady()?d41(Y,di,U,b,{bypassNetworkless:!0},!0,oC(e)):U()})}}; v5H=function(d,q,T){if(q.endpoint==="log_event"){Sa(void 0,q);var Y=ly(q,!0),e=new Map;e.set(Y,[ul(q.payload)]);T&&(di=new T);return new g.pK(function(U){di&&di.isReady()?q3g(e,di,U,{bypassNetworkless:!0},!0,oC(d)):U()})}}; ly=function(d,q){var T="";if(d.dangerousLogToVisitorSession)T="visitorOnlyApprovedKey";else if(d.cttAuthInfo){if(q===void 0?0:q){q=d.cttAuthInfo.token;T=d.cttAuthInfo;var Y=new k5;T.videoId?Y.setVideoId(T.videoId):T.playlistId&&F2(Y,2,en,a4(T.playlistId));UL[q]=Y}else q=d.cttAuthInfo,T={},q.videoId?T.videoId=q.videoId:q.playlistId&&(T.playlistId=q.playlistId),bn[d.cttAuthInfo.token]=T;T=d.cttAuthInfo.token}return T}; VF=function(d,q,T){d=d===void 0?{}:d;q=q===void 0?!1:q;new g.pK(function(Y,e){var U=qh(q,T),b=U.j;U.j=!1;Xn(U.U);Xn(U.G);U.G=0;di&&di.isReady()?T===void 0&&g.RD("enable_web_tiered_gel")?T77(Y,e,d,q,300,b):T77(Y,e,d,q,T,b):(VW_(q,T),Y())})}; T77=function(d,q,T,Y,e,U){var b=di;T=T===void 0?{}:T;Y=Y===void 0?!1:Y;e=e===void 0?200:e;U=U===void 0?!1:U;var J=new Map,F=new Map,N={isJspb:Y,cttAuthInfo:void 0,tier:e},R={isJspb:Y,cttAuthInfo:void 0};if(Y){q=g.E(Object.keys(vi));for(e=q.next();!e.done;e=q.next())e=e.value,F=g.RD("enable_web_tiered_gel")?IC().smartExtractMatchingEntries({keys:[N,R],sizeLimit:1E3}):IC().extractMatchingEntries({isJspb:!0,cttAuthInfo:e}),F.length>0&&J.set(e,F),(g.RD("web_fp_via_jspb_and_json")&&T.writeThenSend||!g.RD("web_fp_via_jspb_and_json"))&& delete vi[e];q3g(J,b,d,T,!1,U)}else{J=g.E(Object.keys(vi));for(N=J.next();!N.done;N=J.next())N=N.value,R=g.RD("enable_web_tiered_gel")?IC().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:N,tier:e},{isJspb:!1,cttAuthInfo:N}],sizeLimit:1E3}):IC().extractMatchingEntries({isJspb:!1,cttAuthInfo:N}),R.length>0&&F.set(N,R),(g.RD("web_fp_via_jspb_and_json")&&T.writeThenSend||!g.RD("web_fp_via_jspb_and_json"))&&delete vi[N];d41(F,b,d,q,T,!1,U)}}; VW_=function(d,q){function T(){VF({writeThenSend:!0},d,q)} d=d===void 0?!1:d;q=q===void 0?200:q;var Y=qh(d,q),e=Y===Y3Q||Y===eBN?5E3:U4_;g.RD("web_gel_timeout_cap")&&!Y.G&&(e=Yz(function(){T()},e),Y.G=e); Xn(Y.U);e=g.Cs("LOGGING_BATCH_TIMEOUT",g.xA("web_gel_debounce_ms",1E4));g.RD("shorten_initial_gel_batch_timeout")&&Jt&&(e=bZ6);e=Yz(function(){g.xA("gel_min_batch_size")>0?IC().getSequenceCount({cttAuthInfo:void 0,isJspb:d,tier:q})>=XLj&&T():T()},e); Y.U=e}; d41=function(d,q,T,Y,e,U,b){e=e===void 0?{}:e;var J=Math.round((0,g.cj)()),F=d.size,N=Jd7(b);d=g.E(d);var R=d.next();for(b={};!R.done;b={xv:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,vg:void 0,Pg:void 0},R=d.next()){var x=g.E(R.value);R=x.next().value;x=x.next().value;b.batchRequest=g.yl({context:g.bI(q.config_||g.Ug())});if(!g.ej(x)&&!g.RD("throw_err_when_logevent_malformed_killswitch")){Y();break}b.batchRequest.events=x;(x=bn[R])&&sDY(b.batchRequest,R,x);delete bn[R];b.dangerousLogToVisitorSession= R==="visitorOnlyApprovedKey";$4H(b.batchRequest,J,b.dangerousLogToVisitorSession);gAH(e);b.vg=function(y){g.RD("start_client_gcf")&&g.Gh.DE(function(){return g.G(function(h){return g.B(h,F9D(y),0)})}); F--;F||T()}; b.xv=0;b.Pg=function(y){return function(){y.xv++;if(e.bypassNetworkless&&y.xv===1)try{g.f4(q,N,y.batchRequest,sL({writeThenSend:!0},y.dangerousLogToVisitorSession,y.vg,y.Pg,U)),Jt=!1}catch(h){g.z2(h),Y()}F--;F||T()}}(b); try{g.f4(q,N,b.batchRequest,sL(e,b.dangerousLogToVisitorSession,b.vg,b.Pg,U)),Jt=!1}catch(y){g.z2(y),Y()}}}; q3g=function(d,q,T,Y,e,U){Y=Y===void 0?{}:Y;var b=Math.round((0,g.cj)()),J={value:d.size},F=new Map([].concat(g.RQ(d)));F=g.E(F);for(var N=F.next();!N.done;N=F.next()){var R=g.E(N.value).next().value,x=d.get(R);N=new fZ7;var y=q.config_||g.Ug(),h=new rw,H=new jW;K2(H,1,y.Os);K2(H,2,y.ZH);L2(H,16,y.Y$);K2(H,17,y.innertubeContextClientVersion);if(y.RR){var a=y.RR,p=new cq;a.coldConfigData&&K2(p,1,a.coldConfigData);a.appInstallData&&K2(p,6,a.appInstallData);a.coldHashData&&K2(p,3,a.coldHashData);a.hotHashData&& p.Lw(a.hotHashData);Qw(H,cq,62,p)}(a=g.oQ.devicePixelRatio)&&a!=1&&VX(H,65,Xe(a));a=yB();a!==""&&K2(H,54,a);a=hd();if(a.length>0){p=new ps;for(var t=0;t65535&&(d=1);Wq("BATCH_CLIENT_COUNTER",d);return d}; sDY=function(d,q,T){if(T.videoId)var Y="VIDEO";else if(T.playlistId)Y="PLAYLIST";else return;d.credentialTransferTokenTargetId=T;d.context=d.context||{};d.context.user=d.context.user||{};d.context.user.credentialTransferTokens=[{token:q,scope:Y}]}; Sa=function(d,q){var T=g.qx("yt.logging.transport.enableScrapingForTest"),Y=N4("il_payload_scraping");Y=(Y!==void 0?String(Y):"")==="enable_il_payload_scraping";if(!T)if(Y)Fn=[],g.Vf("yt.logging.transport.enableScrapingForTest",!0),g.Vf("yt.logging.transport.scrapedPayloadsForTesting",Fn),g.Vf("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Vf("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Vf("yt.logging.transport.scrapeClientEvent",!0);else return;T=g.qx("yt.logging.transport.scrapedPayloadsForTesting");Y=g.qx("yt.logging.transport.payloadToScrape");q&&(q=q.payload,(q=g.qx("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(q)())&&T.push(q));q=g.qx("yt.logging.transport.scrapeClientEvent");if(Y&&Y.length>=1)for(var e=0;e0&&K9I(d,q,U)}else K9I(d,q)}; K9I=function(d,q,T){d=GtH(d);q=q?g.xf(q):"";T=T||5;lb()&&g.nZ(d,q,T)}; GtH=function(d){for(var q=g.E(L9_),T=q.next();!T.done;T=q.next())d=Eb(d,T.value);return"ST-"+tn(d).toString(36)}; ktD=function(d){if(d.name==="JavaException")return!0;d=d.stack;return d.includes("chrome://")||d.includes("-extension://")||d.includes("webkit-masked-url://")}; PbD=function(d){if(!d.stack)return!0;var q=!d.stack.includes("\n");return q&&d.stack.includes("ErrorType: ")||q&&d.stack.includes("Anonymous function (Unknown script")||d.stack.toLowerCase()==="not available"||d.fileName==="user-script"||d.fileName.startsWith("user-script:")?!0:!1}; W9g=function(){this.EQ=[];this.td=[]}; jn=function(){if(!EL){var d=EL=new W9g;d.td.length=0;d.EQ.length=0;CbN(d,uqN)}return EL}; CbN=function(d,q){q.td&&d.td.push.apply(d.td,q.td);q.EQ&&d.EQ.push.apply(d.EQ,q.EQ)}; D4Y=function(d){function q(){return d.charCodeAt(Y++)} var T=d.length,Y=0;do{var e=a$(q);if(e===Infinity)break;var U=e>>3;switch(e&7){case 0:e=a$(q);if(U===2)return e;break;case 1:if(U===2)return;Y+=8;break;case 2:e=a$(q);if(U===2)return d.substr(Y,e);Y+=e;break;case 5:if(U===2)return;Y+=4;break;default:return}}while(Y500));Y++);Y=e}else if(typeof d==="object")for(e in d){if(d[e]){var U=e;var b=d[e],J=q,F=T;U=typeof b!=="string"||U!=="clickTrackingParams"&&U!=="trackingParams"?0:(b=D4Y(atob(b.replace(/-/g,"+").replace(/_/g,"/"))))?At(U+".ve",b,J,F):0;Y+=U;Y+=At(e,d[e],q,T);if(Y>500)break}}else T[q]=p1(d),Y+=T[q].length;else T[q]=p1(d),Y+=T[q].length;return Y}; At=function(d,q,T,Y){T+="."+d;d=p1(q);Y[T]=d;return T.length+d.length}; p1=function(d){try{return(typeof d==="string"?d:String(JSON.stringify(d))).substr(0,500)}catch(q){return"unable to serialize "+typeof d+" ("+q.message+")"}}; qw=function(d){g.Zz(d)}; g.OL=function(d){g.Zz(d,"WARNING")}; g.Zz=function(d,q){var T=T===void 0?{}:T;T.name=g.Cs("INNERTUBE_CONTEXT_CLIENT_NAME",1);T.version=g.Cs("INNERTUBE_CONTEXT_CLIENT_VERSION");q=q===void 0?"ERROR":q;var Y=!1;q=q===void 0?"ERROR":q;Y=Y===void 0?!1:Y;if(d){d.hasOwnProperty("level")&&d.level&&(q=d.level);if(g.RD("console_log_js_exceptions")){var e=[];e.push("Name: "+d.name);e.push("Message: "+d.message);d.hasOwnProperty("params")&&e.push("Error Params: "+JSON.stringify(d.params));d.hasOwnProperty("args")&&e.push("Error args: "+JSON.stringify(d.args)); e.push("File name: "+d.fileName);e.push("Stacktrace: "+d.stack);window.console.log(e.join("\n"),d)}if(!(fq6>=5)){e=[];for(var U=g.E(zBN),b=U.next();!b.done;b=U.next()){b=b.value;try{b()&&e.push(b())}catch(a){}}e=[].concat(g.RQ(iZ_),g.RQ(e));var J=Uxf(d);U=J.message||"Unknown Error";b=J.name||"UnknownError";var F=J.stack||d.U||"Not available";if(F.startsWith(b+": "+U)){var N=F.split("\n");N.shift();F=N.join("\n")}N=J.lineNumber||"Not available";J=J.fileName||"Not available";var R=0;if(d.hasOwnProperty("args")&& d.args&&d.args.length)for(var x=0;x=500);x++);else if(d.hasOwnProperty("params")&&d.params){var y=d.params;if(typeof d.params==="object")for(x in y){if(y[x]){var h="params."+x,H=p1(y[x]);T[h]=H;R+=h.length+H.length;if(R>500)break}}else T.params=p1(y)}if(e.length)for(x=0;x=500);x++);navigator.vendor&&!T.hasOwnProperty("vendor")&&(T["device.vendor"]=navigator.vendor);T={message:U,name:b,lineNumber:N, fileName:J,stack:F,params:T,sampleWeight:1};x=Number(d.columnNumber);isNaN(x)||(T.lineNumber=T.lineNumber+":"+x);if(d.level==="IGNORED")d=0;else a:{d=jn();x=g.E(d.td);for(e=x.next();!e.done;e=x.next())if(e=e.value,T.message&&T.message.match(e.Ms)){d=e.weight;break a}d=g.E(d.EQ);for(x=d.next();!x.done;x=d.next())if(x=x.value,x.callback(T)){d=x.weight;break a}d=1}T.sampleWeight=d;d=g.E(Iqf);for(x=d.next();!x.done;x=d.next())if(x=x.value,x.lH[T.name])for(U=g.E(x.lH[T.name]),e=U.next();!e.done;e=U.next())if(b= e.value,e=T.message.match(b.xq)){T.params["params.error.original"]=e[0];U=b.groups;b={};for(N=0;N1E3&&g.OL(new g.CW("IL Attach cache exceeded limit"))}J= Dz(T,q);kz.has(J)?wi(T,q):Wa.set(J,!0)}}Y=Y.filter(function(R){R.csn!==q?(R.csn=q,R=!0):R=!1;return R}); T={csn:q,parentVe:T.getAsJson(),childVes:g.yC(Y,function(R){return R.getAsJson()})}; q==="UNDEFINED_CSN"?f1("visualElementAttached",U,T):d?R$("visualElementAttached",T,d,U):g.Ta("visualElementAttached",T,U)}; JBN=function(d,q,T,Y,e){zp(T,q);Y=L1({cttAuthInfo:Mh(q)||void 0},q);T={csn:q,ve:T.getAsJson(),eventType:1};e&&(T.clientData=e);q==="UNDEFINED_CSN"?f1("visualElementShown",Y,T):d?R$("visualElementShown",T,d,Y):g.Ta("visualElementShown",T,Y)}; sYD=function(d,q,T,Y){var e=(Y=Y===void 0?!1:Y)?16:8;Y=L1({cttAuthInfo:Mh(q)||void 0,endOfSequence:Y},q);T={csn:q,ve:T.getAsJson(),eventType:e};q==="UNDEFINED_CSN"?f1("visualElementHidden",Y,T):d?R$("visualElementHidden",T,d,Y):g.Ta("visualElementHidden",T,Y)}; md=function(d,q,T,Y,e){I$(d,q,T,void 0,Y,e)}; I$=function(d,q,T,Y,e){zp(T,q);Y=Y||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var U=L1({cttAuthInfo:Mh(q)||void 0},q);T={csn:q,ve:T.getAsJson(),gestureType:Y};e&&(T.clientData=e);q==="UNDEFINED_CSN"?f1("visualElementGestured",U,T):d?R$("visualElementGestured",T,d,U):g.Ta("visualElementGestured",T,U)}; $sQ=function(){var d=N9(16);for(var q=[],T=0;T0&&T.push(g.FE("BR"));T.push(g.NQ(U))}):T.push(g.NQ(Y))}return T}; XA=function(d,q,T,Y){if(T==="child"){g.xE(q);var e;Y===void 0?e=void 0:e=!Array.isArray(Y)||Y&&typeof Y.Y==="string"?[Y]:Y;T=F2g(d,e);T=g.E(T);for(d=T.next();!d.done;d=T.next())q.appendChild(d.value)}else T==="style"?g.Dv(q,"cssText",Y?Y:""):Y===null||Y===void 0?q.removeAttribute(T):(d=Y.toString(),T==="href"&&(d=g.YS(g.b4(d))),q.setAttribute(T,d))}; g.f=function(d){g.Ux.call(this,d);this.PF=!0;this.S=!1;this.listeners=[]}; g.Ji=function(d){g.f.call(this,d);this.AF=new g.YP;g.C(this,this.AF)}; sx=function(d,q,T,Y,e,U,b){b=b===void 0?null:b;g.Ji.call(this,q);this.api=d;this.macros={};this.componentType=T;this.L=this.B=null;this.wO=b;this.layoutId=Y;this.interactionLoggingClientData=e;this.Nk=U;this.xx=null;this.bW=new $y(this.element);g.C(this,this.bW);this.kx=this.W(this.element,"click",this.onClick);this.rO=[];this.yv=new g4(this.onClick,this);g.C(this,this.yv);this.fn=!1;this.dO=this.lr=null}; $P=function(d,q){d=d===void 0?null:d;q=q===void 0?null:q;if(d==null)return g.OL(Error("Got null or undefined adText object")),"";var T=g.rt(d.text);if(!d.isTemplated)return T;if(q==null)return g.OL(Error("Missing required parameters for a templated message")),T;d=g.E(Object.entries(q));for(q=d.next();!q.done;q=d.next()){var Y=g.E(q.value);q=Y.next().value;Y=Y.next().value;T=T.replace("{"+q+"}",Y)}return T}; N8g=function(d){d=d===void 0?null:d;return d!=null&&(d=d.thumbnail,d!=null&&d.thumbnails!=null&&d.thumbnails.length!=0&&d.thumbnails[0].url!=null)?g.rt(d.thumbnails[0].url):""}; RT1=function(d){d=d===void 0?null:d;return d!=null&&(d=d.thumbnail,d!=null&&d.thumbnails!=null&&d.thumbnails.length!=0&&d.thumbnails[0].width!=null&&d.thumbnails[0].height!=null)?new g.zP(d.thumbnails[0].width||0,d.thumbnails[0].height||0):new g.zP(0,0)}; g.gx=function(d){if(d.simpleText)return d.simpleText;if(d.runs){var q=[];d=g.E(d.runs);for(var T=d.next();!T.done;T=d.next())T=T.value,T.text&&q.push(T.text);return q.join("")}return""}; g.FA=function(d){if(d.simpleText)return d=document.createTextNode(d.simpleText),d;var q=[];if(d.runs)for(var T=0;T1){for(var q=[d[0]],T=1;T0&&(this.G=new g.f9(this.Sx,q,this),g.C(this,this.G));this.S=new g.f9(this.Sx,T,this);g.C(this,this.S);this.B=K4Y(this.U,e,1,Y);g.C(this,this.B);this.L=K4Y(this.U,0,Y,1);g.C(this,this.L);this.T=new cu;g.C(this,this.T)}; eC=function(d,q,T){this.U=d;this.isAsync=q;this.G=T}; b7H=function(d){switch(d){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:$S(d,"unknown result type")}}; Xj_=function(d,q){var T=1;d.isTrusted===!1&&(T=0);Wq("ISDSTAT",T);UP(T,"i.s_",{triggerContext:"sk",metadata:q});return T}; Jr6=function(d,q){var T=[];q?q.isTrusted===!0?T.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):q.isTrusted===!1?T.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):T.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):T.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");UP(0,"a.s_",{metadata:d,states:T});Wq("ASDSTAT",0)}; UP=function(d,q,T){q=sJ1[q];var Y,e,U={detected:d===0,source:""+q.U+((Y=T.triggerContext)!=null?Y:"")+((e=T.gX)!=null?e:""),detectionStates:T.states,durationMs:T.AR};T.metadata&&(U.contentCpn=T.metadata.contentCpn,U.adCpn=T.metadata.adCpn);g.Ta("biscottiBasedDetection",U);q.G!==void 0&&(T=Number(g.Cs("CATSTAT",0)),q.G!==void 0?(q=q.G,d=b7H(d),d=T&~(3<0}; F$=function(d,q,T,Y,e,U){Sx.call(this,d,{Y:"div",D:"ytp-ad-skip-button-slot"},"skip-button",q,T,Y,e);var b=this;this.UD=null;this.z2=!1;this.qk=U;this.X=this.api.C().experiments.Wv("enable_modern_skip_button_on_web");this.Fw=!1;this.T=new g.Ji({Y:"span",hF:["ytp-ad-skip-button-container"]});this.X&&this.T.element.classList.add("ytp-ad-skip-button-container-detached");g.C(this,this.T);this.T.IU(this.element);this.U=this.j=null;this.Bv=new g.oh(this.T,500,!1,100,function(){return b.hide()}); g.C(this,this.Bv);this.aU=new Yo(this.T.element,15E3,5E3,.5,.5,this.X);g.C(this,this.aU);this.hide()}; g7_=function(d){d=d.UD&&d.UD.adRendererCommands;return(d&&d.clickCommand&&g.D(d.clickCommand,g.NY)&&g.D(d.clickCommand,g.NY).commands||[]).some(function(q){return q.adLifecycleCommand?$wf(q.adLifecycleCommand):!1})}; $wf=function(d){return d.action==="END_LINEAR_AD"||d.action==="END_LINEAR_AD_PLACEMENT"}; Ru=function(d,q,T,Y,e,U){Sx.call(this,d,{Y:"div",D:"ytp-ad-skip-ad-slot"},"skip-ad",q,T,Y,e);this.UD=U;this.T=!1;this.X=0;this.j=this.U=null;this.hide()}; FYQ=function(d,q){d.T||(d.T=!0,d.U&&(q?d.U.UD.hide():d.U.hide()),q?(d=d.j,d.Bv.show(),d.show()):d.j.show())}; xo=function(d,q,T,Y){nM.call(this,d,q,T,Y,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; yZ=function(d,q,T,Y,e,U,b){U=U===void 0?!1:U;b=b===void 0?!1:b;sx.call(this,d,{Y:"span",D:"ytp-ad-simple-ad-badge"},"simple-ad-badge",q,T,Y);this.j=e;this.G=this.Qv("ytp-ad-simple-ad-badge");(this.U=U)&&this.G.classList.add("ytp-ad-simple-ad-badge--clean-player");b&&this.G.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; hm=function(d,q,T,Y,e){e=e===void 0?!1:e;TW.call(this,"player-overlay",d,{},q,Y);this.videoAdDurationSeconds=T;this.interactionLoggingClientData=Y;this.jO=e}; HG=function(d,q){g.YP.call(this);this.api=d;this.durationMs=q;this.G=null;this.CC=new cu(this);g.C(this,this.CC);this.U=NO2;this.CC.W(this.api,"presentingplayerstatechange",this.Ml);this.G=this.CC.W(this.api,"onAdPlaybackProgress",this.Yc)}; QZ=function(d){g.YP.call(this);this.G=!1;this.MQ=0;this.CC=new cu(this);g.C(this,this.CC);this.durationMs=d;this.timer=new g.KK(100);g.C(this,this.timer);this.CC.W(this.timer,"tick",this.Yc);this.U={seekableStart:0,seekableEnd:d/1E3,current:0};this.start()}; g.MY=function(d,q){var T=Math.abs(Math.floor(d)),Y=Math.floor(T/86400),e=Math.floor(T%86400/3600),U=Math.floor(T%3600/60);T=Math.floor(T%60);if(q){q="";Y>0&&(q+=" "+Y+" \u5929");if(Y>0||e>0)q+=" "+e+" \u5c0f\u65f6";q+=" "+U+" \u5206\u949f";q+=" "+T+" \u79d2";Y=q.trim()}else{q="";Y>0&&(q+=Y+":",e<10&&(q+="0"));if(Y>0||e>0)q+=e+":",U<10&&(q+="0");q+=U+":";T<10&&(q+="0");Y=q+T}return d>=0?Y:"-"+Y}; g.cG=function(d){return(!("button"in d)||typeof d.button!=="number"||d.button===0)&&!("shiftKey"in d&&d.shiftKey)&&!("altKey"in d&&d.altKey)&&!("metaKey"in d&&d.metaKey)&&!("ctrlKey"in d&&d.ctrlKey)}; EP=function(d,q,T,Y,e,U,b){Sx.call(this,d,{Y:"span",D:b?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",q,T,Y,e);this.videoAdDurationSeconds=U;this.U=null;b&&this.api.C().U&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),uR&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; jC=function(d,q,T,Y){Ih.call(this,d,q,T,Y,"ytp-video-ad-top-bar-title","ad-title")}; au=function(d){this.content=d.content;if(d.commandRuns){d=g.E(d.commandRuns);for(var q=d.next();!q.done;q=d.next())q=q.value,this.loggingDirectives=g.D(q,RGD),q.onTap&&(this.interaction={onTap:q.onTap})}}; Am=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ad-simple-attributed-string"},"ad-simple-attributed-string",q,T,Y);this.hide()}; pG=function(d,q,T,Y,e){sx.call(this,d,{Y:"span",D:e?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",q,T,Y);this.U=e;this.adBadgeText=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);this.adBadgeText.IU(this.element);g.C(this,this.adBadgeText);e?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),uR&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; Z0=function(d,q,T,Y){sx.call(this,d,{Y:"span",D:"ytp-ad-pod-index"},"ad-pod-index",q,T,Y);this.api.C().U&&(this.element.classList.add("ytp-ad-pod-index--mweb"),uR&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; OP=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",q,T,Y);this.hide()}; nG=function(d,q){this.U=d;this.G=q}; xw2=function(d,q){return d.U+q*(d.G-d.U)}; rs=function(d,q,T){return d.G-d.U?g.Cn((q-d.U)/(d.G-d.U),0,1):T!=null?T:Infinity}; tm=function(d,q,T,Y){Y=Y===void 0?!1:Y;g.Ji.call(this,{Y:"div",D:"ytp-ad-persistent-progress-bar-container",V:[{Y:"div",D:"ytp-ad-persistent-progress-bar"}]});this.api=d;this.U=q;this.j=T;Y&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.C(this,this.U);this.progressBar=this.Qv("ytp-ad-persistent-progress-bar");this.G=-1;this.W(d,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; BG=function(d,q,T,Y,e,U){sx.call(this,d,{Y:"div",D:"ytp-ad-player-overlay",V:[{Y:"div",D:"ytp-ad-player-overlay-flyout-cta"},{Y:"div",D:"ytp-ad-player-overlay-instream-info"},{Y:"div",D:"ytp-ad-player-overlay-skip-or-preview"},{Y:"div",D:"ytp-ad-player-overlay-progress-bar"},{Y:"div",D:"ytp-ad-player-overlay-instream-user-sentiment"},{Y:"div",D:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",q,T,Y);this.K=U;this.X=this.Qv("ytp-ad-player-overlay-flyout-cta");this.X.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.G=this.Qv("ytp-ad-player-overlay-instream-info");this.T=null;yr1(this)&&(d=g_("div"),g.d9(d,"ytp-ad-player-overlay-top-bar-gradients"),q=this.G,q.parentNode&&q.parentNode.insertBefore(d,q),(q=this.api.getVideoData(2))&&q.isListed&&q.title&&(T=new jC(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),T.IU(d),T.init(qP("ad-title"),{text:q.title},this.macros),g.C(this,T)),this.T=d);this.j=null;this.RU=this.Qv("ytp-ad-player-overlay-skip-or-preview");this.aU=this.Qv("ytp-ad-player-overlay-progress-bar"); this.z2=this.Qv("ytp-ad-player-overlay-instream-user-sentiment");this.UD=this.Qv("ytp-ad-player-overlay-ad-disclosure-banner");this.U=e;g.C(this,this.U);this.hide()}; yr1=function(d){d=d.api.C();return g.KG(d)&&d.U}; g.Gc=function(d){d&=16777215;var q=[(d&16711680)>>16,(d&65280)>>8,d&255];d=q[0];var T=q[1];q=q[2];d=Number(d);T=Number(T);q=Number(q);if(d!=(d&255)||T!=(T&255)||q!=(q&255))throw Error('"('+d+","+T+","+q+'") is not a valid RGB color');T=d<<16|T<<8|q;return d<16?"#"+(16777216|T).toString(16).slice(1):"#"+T.toString(16)}; g.LG=function(){}; H7f=function(d){var q=new XP;var T=new bm;T=K2(T,1,"botguard");d=K2(T,2,d);this.G=LnH(q,bm,1,hG6,d)}; ko=function(d){this.G=new jp(d)}; QJ6=function(){var d=!1;try{d=!!window.sessionStorage.getItem("session_logininfo")}catch(q){d=!0}return(g.Cs("INNERTUBE_CLIENT_NAME")==="WEB"||g.Cs("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&d}; PG=function(){var d=d===void 0?!0:d;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Wq("LOGIN_INFO","");d&&window.sessionStorage.setItem("from_switch_account","1");d=!0;d=d===void 0?!1:d;var q,T=MF_;T||(T=document.querySelector("#persist_identity"));if(q=T){var Y=q.src?(new URL(q.src)).origin:"*";if(d){var e;(e=q.contentWindow)==null||e.postMessage({action:"clear"},Y)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var U=window.sessionStorage.getItem("session_logininfo");if(U){var b;(b=q.contentWindow)==null||b.postMessage({loginInfo:U},Y)}}}}catch(J){}}; WG=function(d){d&&(d.startsWith("https://accounts.google.com/AddSession")?PG():d.startsWith("https://accounts.google.com/ServiceLogin")?PG():d.startsWith("https://myaccount.google.com")&&g.J_(d).U.endsWith("/youtubeoptions")&&PG());if(g.Cs("LOGGED_IN",!0)&&QJ6()){var q=g.Cs("VALID_SESSION_TEMPDATA_DOMAINS",[]);var T=g.sb(window.location.href);T&&q.push(T);T=g.sb(d);g.cR(q,T)||!T&&ON(d,"/")?(q=gQ(d),(q=zu_(q))?(q=GtH(q),q=(q=g.r7(q)||null)?lF(q):{}):q=null):q=null;q==null&&(q={});T=q;var Y=void 0; QJ6()?(Y||(Y=g.Cs("LOGIN_INFO")),Y?(T.session_logininfo=Y,T=!0):T=!1):T=!1;T&&ca(d,q)}}; g.cr1=function(d){var q=q===void 0?{}:q;var T=T===void 0?"":T;var Y=Y===void 0?window:Y;d=g.y6(d,q);WG(d);T=g.b4(d+T);Y=Y.location;T=Jn(T);T!==void 0&&(Y.href=T)}; g.CG=function(d,q,T){q=q===void 0?{}:q;T=T===void 0?!1:T;var Y=g.Cs("EVENT_ID");Y&&(q.ei||(q.ei=Y));q&&ca(d,q);T||(WG(d),g.cr1(d))}; g.u2=function(d,q,T,Y,e){e=e===void 0?!1:e;T&&ca(d,T);T=g.b4(d);var U=g.YS(T);d!=U&&IE(Error("Unsafe window.open URL: "+d));d=U;q=q||tn(d).toString(36);try{if(e)return e=d,e=FRH(e),WG(e),g.Ry(window,e,q,"attributionsrc")}catch(b){g.z2(b)}WG(d);return g.Ry(window,T,q,Y)}; E7Q=function(d){D0=d}; jJg=function(d){ws=d}; aPY=function(d){fG=d}; pjg=function(){Ar7=fG=ws=D0=null}; O7X=function(){var d=d===void 0?window.location.href:d;if(g.RD("kevlar_disable_theme_param"))return null;var q=$f(d);if(g.RD("enable_dark_theme_only_on_shorts")&&q!=null&&q.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var T=g.oE(d).theme;return Z7D.get(T)||null}catch(Y){}return null}; zc=function(){this.G={};if(this.U=Q2Y()){var d=g.r7("CONSISTENCY");d&&n7j(this,{encryptedTokenJarContents:d})}}; n7j=function(d,q){if(q.encryptedTokenJarContents&&(d.G[q.encryptedTokenJarContents]=q,typeof q.expirationSeconds==="string")){var T=Number(q.expirationSeconds);setTimeout(function(){delete d.G[q.encryptedTokenJarContents]},T*1E3); d.U&&g.nZ("CONSISTENCY",q.encryptedTokenJarContents,T,void 0,!0)}}; Iu=function(){this.U=-1;var d=g.Cs("LOCATION_PLAYABILITY_TOKEN");g.Cs("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=i2(this))&&(d=this.localStorage.get("yt-location-playability-token"));d&&(this.locationPlayabilityToken=d,this.G=void 0)}; i2=function(d){return d.localStorage===void 0?new l5("yt-client-location"):d.localStorage}; g.mV=function(d,q,T){q=q===void 0?!1:q;T=T===void 0?!1:T;var Y=g.Cs("INNERTUBE_CONTEXT");if(!Y)return g.Zz(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};Y=g.yl(Y);g.RD("web_no_tracking_params_in_shell_killswitch")||delete Y.clickTracking;Y.client||(Y.client={});var e=Y.client;e.clientName==="MWEB"&&e.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(e.clientFormFactor=g.Cs("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints= window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var U=U===void 0?!1:U;g.KW();var b="USER_INTERFACE_THEME_LIGHT";g.Gy(0,165)?b="USER_INTERFACE_THEME_DARK":g.Gy(0,174)?b="USER_INTERFACE_THEME_LIGHT":!g.RD("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (b="USER_INTERFACE_THEME_DARK");U=U?b:O7X()||b;e.userInterfaceTheme=U;if(!q){if(U=UK_())e.connectionType=U;g.RD("web_log_effective_connection_type")&&(U=Xhj())&&(Y.client.effectiveConnectionType=U)}var J;if(g.RD("web_log_memory_total_kbytes")&&((J=g.oQ.navigator)==null?0:J.deviceMemory)){var F;J=(F=g.oQ.navigator)==null?void 0:F.deviceMemory;Y.client.memoryTotalKbytes=""+J*1E6}g.RD("web_gcf_hashes_innertube")&&(U=R6_())&&(F=U.coldConfigData,J=U.coldHashData,U=U.hotHashData,Y.client.configInfo=Y.client.configInfo|| {},F&&(Y.client.configInfo.coldConfigData=F),J&&(Y.client.configInfo.coldHashData=J),U&&(Y.client.configInfo.hotHashData=U));F=g.oE(g.oQ.location.href);!g.RD("web_populate_internal_geo_killswitch")&&F.internalcountrycode&&(e.internalGeo=F.internalcountrycode);e.clientName==="MWEB"||e.clientName==="WEB"?(e.mainAppWebInfo||(e.mainAppWebInfo={}),e.mainAppWebInfo.graftUrl=g.oQ.location.href,g.RD("kevlar_woffle")&&oHg.instance&&(F=oHg.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!F.G&&F.U?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=r8(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):e.clientName==="TVHTML5"&&(!g.RD("web_lr_app_quality_killswitch")&&(F=g.Cs("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:F})),F=g.Cs("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:F}));if(!g.RD("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var N=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(P){}N=void 0}N&&(e.timeZone=N)}(N=yB())?e.experimentsToken=N:delete e.experimentsToken;N=hd();zc.instance||(zc.instance=new zc);Y.request=Object.assign({},Y.request,{internalExperimentFlags:N,consistencyTokenJars:eY(zc.instance.G)});!g.RD("web_prequest_context_killswitch")&&(N=g.Cs("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(Y.request.externalPrequestContext=N);e=g.KW();N=g.Gy(0,58);e=e.get("gsml","");Y.user=Object.assign({}, Y.user);N&&(Y.user.enableSafetyMode=N);e&&(Y.user.lockedSafetyMode=!0);g.RD("warm_op_csn_cleanup")?T&&(q=g.Q0())&&(Y.clientScreenNonce=q):!q&&(q=g.Q0())&&(Y.clientScreenNonce=q);d&&(Y.clickTracking={clickTrackingParams:d});if(d=g.qx("yt.mdx.remote.remoteClient_"))Y.remoteClient=d;Iu.getInstance().setLocationOnInnerTubeContext(Y);try{var R=bb(),x=R.bid;delete R.bid;Y.adSignalsInfo={params:[],bid:x};for(var y=g.E(Object.entries(R)),h=y.next();!h.done;h=y.next()){var H=g.E(h.value),a=H.next().value, p=H.next().value;R=a;x=p;d=void 0;(d=Y.adSignalsInfo.params)==null||d.push({key:R,value:""+x})}var t,n;if(((t=Y.client)==null?void 0:t.clientName)==="TVHTML5"||((n=Y.client)==null?void 0:n.clientName)==="TVHTML5_UNPLUGGED"){var K=g.Cs("INNERTUBE_CONTEXT");K.adSignalsInfo&&(Y.adSignalsInfo.advertisingId=K.adSignalsInfo.advertisingId,Y.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",Y.adSignalsInfo.limitAdTracking=K.adSignalsInfo.limitAdTracking)}}catch(P){g.Zz(P)}return Y}; BOI=function(d,q){if(!d)return!1;var T,Y=(T=g.D(d,rrg))==null?void 0:T.signal;if(Y&&q.aP)return!!q.aP[Y];var e;if((T=(e=g.D(d,tF_))==null?void 0:e.request)&&q.F$)return!!q.F$[T];for(var U in d)if(q.SY[U])return!0;return!1}; KY_=function(d){var q={"Content-Type":"application/json"};g.Cs("EOM_VISITOR_DATA")?q["X-Goog-EOM-Visitor-Id"]=g.Cs("EOM_VISITOR_DATA"):g.Cs("VISITOR_DATA")&&(q["X-Goog-Visitor-Id"]=g.Cs("VISITOR_DATA"));q["X-Youtube-Bootstrap-Logged-In"]=g.Cs("LOGGED_IN",!1);g.Cs("DEBUG_SETTINGS_METADATA")&&(q["X-Debug-Settings-Metadata"]=g.Cs("DEBUG_SETTINGS_METADATA"));d!=="cors"&&((d=g.Cs("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(q["X-Youtube-Client-Name"]=d),(d=g.Cs("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(q["X-Youtube-Client-Version"]= d),(d=g.Cs("CHROME_CONNECTED_HEADER"))&&(q["X-Youtube-Chrome-Connected"]=d),(d=g.Cs("DOMAIN_ADMIN_STATE"))&&(q["X-Youtube-Domain-Admin-State"]=d),g.Cs("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(d=g.Cs("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(q["X-YouTube-Lava-Device-Context"]=d));return q}; GaD=function(){this.G={}}; SC=function(){this.mappings=new GaD}; l2=function(d){return function(){return new d}}; kaY=function(d){var q=q===void 0?"UNKNOWN_INTERFACE":q;if(d.length===1)return d[0];var T=LY2[q];if(T){T=new RegExp(T);for(var Y=g.E(d),e=Y.next();!e.done;e=Y.next())if(e=e.value,T.exec(e))return e}var U=[];Object.entries(LY2).forEach(function(b){var J=g.E(b);b=J.next().value;J=J.next().value;q!==b&&U.push(J)}); T=new RegExp(U.join("|"));d.sort(function(b,J){return b.length-J.length}); Y=g.E(d);for(e=Y.next();!e.done;e=Y.next())if(e=e.value,!T.exec(e))return e;return d[0]}; g.vG=function(d){return"/youtubei/v1/"+kaY(d)}; ou=function(){}; VZ=function(){}; dc=function(){}; q3=function(d){return g.qx("ytcsi."+(d||"")+"data_")||PR7(d)}; WY1=function(){var d=q3();d.info||(d.info={});return d.info}; TY=function(d){d=q3(d);d.metadata||(d.metadata={});return d.metadata}; Yh=function(d){d=q3(d);d.tick||(d.tick={});return d.tick}; el=function(d){d=q3(d);if(d.gel){var q=d.gel;q.gelInfos||(q.gelInfos={});q.gelTicks||(q.gelTicks={})}else d.gel={gelTicks:{},gelInfos:{}};return d.gel}; CRY=function(d){d=el(d);d.gelInfos||(d.gelInfos={});return d.gelInfos}; UG=function(d){var q=q3(d).nonce;q||(q=g.RC(16),q3(d).nonce=q);return q}; PR7=function(d){var q={tick:{},info:{}};g.Vf("ytcsi."+(d||"")+"data_",q);return q}; b9=function(){var d=g.qx("ytcsi.debug");d||(d=[],g.Vf("ytcsi.debug",d),g.Vf("ytcsi.reference",{}));return d}; XK=function(d){d=d||"";var q=u87();if(q[d])return q[d];var T=b9(),Y={timerName:d,info:{},tick:{},span:{},jspbInfo:[]};T.push(Y);return q[d]=Y}; DwD=function(d){d=d||"";var q=u87();q[d]&&delete q[d];var T=b9(),Y={timerName:d,info:{},tick:{},span:{},jspbInfo:[]};T.push(Y);q[d]=Y}; u87=function(){var d=g.qx("ytcsi.reference");if(d)return d;b9();return g.qx("ytcsi.reference")}; JU=function(d){return wjn[d]||"LATENCY_ACTION_UNKNOWN"}; sG=function(d,q){JL.call(this,1,arguments);this.timer=q}; $h=function(){this.G=0}; FK=function(){$h.instance||($h.instance=new $h);return $h.instance}; Ra=function(d,q){N3[q]=N3[q]||{count:0};var T=N3[q];T.count++;T.time=(0,g.cj)();d.G||(d.G=g.zy(0,function(){var Y=(0,g.cj)(),e;for(e in N3)N3[e]&&Y-N3[e].time>6E4&&delete N3[e];d&&(d.G=0)},5E3)); return T.count>5?(T.count===6&&Math.random()*1E5<1&&(T=new g.CW("CSI data exceeded logging limit with key",q.split("_")),q.indexOf("plev")>=0||g.OL(T)),!0):!1}; fPn=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; zGg=function(){var d;if(g.RD("csi_use_performance_navigation_timing")){var q,T,Y,e=xh==null?void 0:(d=xh.getEntriesByType)==null?void 0:(q=d.call(xh,"navigation"))==null?void 0:(T=q[0])==null?void 0:(Y=T.toJSON)==null?void 0:Y.call(T);e?(e.requestStart=ya(e.requestStart),e.responseEnd=ya(e.responseEnd),e.redirectStart=ya(e.redirectStart),e.redirectEnd=ya(e.redirectEnd),e.domainLookupEnd=ya(e.domainLookupEnd),e.connectStart=ya(e.connectStart),e.connectEnd=ya(e.connectEnd),e.responseStart=ya(e.responseStart), e.secureConnectionStart=ya(e.secureConnectionStart),e.domainLookupStart=ya(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,d=e):d=xh.timing}else d=g.RD("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(xh.timing)):xh.timing;return d}; ya=function(d){return Math.round(hU()+d)}; hU=function(){return(g.RD("csi_use_time_origin")||g.RD("csi_use_time_origin_tvhtml5"))&&xh.timeOrigin?Math.floor(xh.timeOrigin):xh.timing.navigationStart}; Qa=function(d,q){Hm("_start",d,q)}; M3=function(d,q){if(!g.RD("web_csi_action_sampling_enabled")||!q3(q).actionDisabled){var T=XK(q||"");by(T.info,d);d.loadType&&(T=d.loadType,TY(q).loadType=T);by(CRY(q),d);T=UG(q);q=q3(q).cttAuthInfo;FK().info(d,T,q)}}; i7Q=function(){var d,q,T,Y;return((Y=Ou().resolve(Eu(TN))==null?void 0:(d=YL())==null?void 0:(q=d.loggingHotConfig)==null?void 0:(T=q.csiConfig)==null?void 0:T.debugTicks)!=null?Y:[]).map(function(e){return Object.values(e)[0]})}; Hm=function(d,q,T){if(!g.RD("web_csi_action_sampling_enabled")||!q3(T).actionDisabled){var Y=UG(T),e;if(e=g.RD("web_csi_debug_sample_enabled")&&Y){(Ou().resolve(Eu(TN))==null?0:YL())&&!IP2&&(IP2=!0,Hm("gcfl",(0,g.cj)(),T));var U,b,J;e=(Ou().resolve(Eu(TN))==null?void 0:(U=YL())==null?void 0:(b=U.loggingHotConfig)==null?void 0:(J=b.csiConfig)==null?void 0:J.debugSampleWeight)||0;if(U=e!==0)b:{U=i7Q();if(U.length>0)for(b=0;bT.duration?Y:T},{duration:0}))&&q.startTime>0&&q.responseEnd>0&&(Hm("wffs",ya(q.startTime)),Hm("wffe",ya(q.responseEnd)))}; dzY=function(d,q,T){xh&&xh.measure&&(d.startsWith("measure_")||(d="measure_"+d),T?xh.measure(d,q,T):q?xh.measure(d,q):xh.measure(d))}; qg6=function(d){var q=cm("aft",d);if(q)return q;q=g.Cs((d||"")+"TIMING_AFT_KEYS",["ol"]);for(var T=q.length,Y=0;Y0&&M3(q);q={isNavigation:!0,actionType:JU(g.Cs("TIMING_ACTION"))};var T=g.Cs("PREVIOUS_ACTION");T&&(q.previousAction=JU(T));if(T=g.Cs("CLIENT_PROTOCOL"))q.httpProtocol=T;if(T=g.Cs("CLIENT_TRANSPORT"))q.transportProtocol=T;(T=g.Q0())&&T!=="UNDEFINED_CSN"&&(q.clientScreenNonce=T);T=lPQ();if(T===1||T===-1)q.isVisible= !0;T=TY().loadType==="cold";var Y=WY1();T||(T=Y.yt_lt==="cold");if(T){q.loadType="cold";T=WY1();Y=zGg();var e=hU(),U=g.Cs("CSI_START_TIMESTAMP_MILLIS",0);U>0&&!g.RD("embeds_web_enable_csi_start_override_killswitch")&&(e=U);e&&(Hm("srt",Y.responseStart),T.prerender!==1&&Qa(e));T=e2_();T>0&&Hm("fpt",T);T=zGg();T.isPerformanceNavigationTiming&&M3({performanceNavigationTiming:!0},void 0);Hm("nreqs",T.requestStart,void 0);Hm("nress",T.responseStart,void 0);Hm("nrese",T.responseEnd,void 0);T.redirectEnd- T.redirectStart>0&&(Hm("nrs",T.redirectStart,void 0),Hm("nre",T.redirectEnd,void 0));T.domainLookupEnd-T.domainLookupStart>0&&(Hm("ndnss",T.domainLookupStart,void 0),Hm("ndnse",T.domainLookupEnd,void 0));T.connectEnd-T.connectStart>0&&(Hm("ntcps",T.connectStart,void 0),Hm("ntcpe",T.connectEnd,void 0));T.secureConnectionStart>=hU()&&T.connectEnd-T.secureConnectionStart>0&&(Hm("nstcps",T.secureConnectionStart,void 0),Hm("ntcpe",T.connectEnd,void 0));xh&&"getEntriesByType"in xh&&VFj();T=[];if(document.querySelector&& xh&&xh.getEntriesByName)for(var b in aa)aa.hasOwnProperty(b)&&(Y=aa[b],o71(b,Y)&&T.push(Y));if(T.length>0)for(q.resourceInfo=[],b=g.E(T),T=b.next();!T.done;T=b.next())q.resourceInfo.push({resourceCache:T.value})}M3(q);q=el();q.preLoggedGelInfos||(q.preLoggedGelInfos=[]);b=q.preLoggedGelInfos;q=CRY();T=void 0;for(Y=0;Y-1&&(delete O6["@type"],m=O6);a&&d.U.has(a)&&d.U.delete(a);((dL=q.config)==null?0:dL.hzv)&&pU(q.config.hzv);if(m||(hE=d.j)==null||!hE.L12(q.input,q.Yy)){tY.tF(15);break}return g.B(tY,d.j.P8D(q.input,q.Yy),16);case 16:m=tY.G;case 15:return EL1(d, m,q),((JE=q.config)==null?0:JE.VTU)&&pU(q.config.VTU),Y(),tY.return(m||void 0)}})}; h2j=function(d,q){a:{d=d.Me;var T,Y=(T=g.D(q,rrg))==null?void 0:T.signal;if(Y&&d.aP&&(T=d.aP[Y])){var e=T();break a}var U;if((T=(U=g.D(q,tF_))==null?void 0:U.request)&&d.F$&&(U=d.F$[T])){e=U();break a}for(e in q)if(d.SY[e]&&(q=d.SY[e])){e=q();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)}; QRn=function(d,q,T){var Y,e,U,b,J,F,N;return g.G(function(R){if(R.U==1){U=((Y=q)==null?void 0:(e=Y.VA)==null?void 0:e.identity)||X7;F=(b=q)==null?void 0:(J=b.VA)==null?void 0:J.sessionIndex;var x=g.Of(d.G.Tf(U,{sessionIndex:F}));return g.B(R,x,2)}N=R.G;return R.return(Promise.resolve(Object.assign({},KY_(T),N)))})}; H4N=function(d,q,T){var Y,e=(q==null?void 0:(Y=q.VA)==null?void 0:Y.identity)||X7,U;q=q==null?void 0:(U=q.VA)==null?void 0:U.sessionIndex;d=d.G.Tf(e,{sessionIndex:q});return Object.assign({},KY_(T),d)}; LU=function(){}; kh=function(){}; Pm=function(d){this.X=d}; Wm=function(){}; CU=function(){}; u9=function(){}; DO=function(){}; g.wc=function(d,q){var T=g.CN.apply(2,arguments);d=d===void 0?0:d;g.CW.call(this,q,T);this.errorType=d;Object.setPrototypeOf(this,this.constructor.prototype)}; fU=function(d,q,T,Y){this.G=d;this.U=q;this.j=T;this.T=Y}; adX=function(d,q,T){if(d.G){var Y=$f(Eb(q,"key"))||"/UNKNOWN_PATH";d.G.start(Y)}Y=T;g.RD("wug_networking_gzip_request")&&(Y=z66(T));var e;return new ((e=d.T)!=null?e:window.Request)(q,Y)}; g.i9=function(d,q){if(!zY){var T=Ou();aC(T,{Mn:ALQ,Du:fU});var Y={SY:{feedbackEndpoint:l2(Wm),modifyChannelNotificationPreferenceEndpoint:l2(CU),playlistEditEndpoint:l2(u9),shareEntityEndpoint:l2(Pm),subscribeEndpoint:l2(LU),unsubscribeEndpoint:l2(kh),webPlayerShareEntityServiceEndpoint:l2(DO)}},e=Iu.getInstance(),U={};e&&(U.client_location=e);d===void 0&&(d=V_2());q===void 0&&(q=T.resolve(ALQ));yLX(Y,q,d,U);aC(T,{Mn:pWn,xj:Bm.instance});zY=T.resolve(pWn)}return zY}; Z4_=function(d){var q=new XT;if(d.interpreterJavascript){var T=LW2(d.interpreterJavascript);T=hn(T).toString();var Y=new Uq;K2(Y,6,T);Qw(q,Uq,1,Y,i$)}else d.interpreterUrl&&(T=Hq(d.interpreterUrl),T=qX(T).toString(),Y=new bj,K2(Y,4,T),Qw(q,bj,2,Y,i$));d.interpreterHash&&Gg(q,3,d.interpreterHash,i$);d.program&&Gg(q,4,d.program,i$);d.globalName&&Gg(q,5,d.globalName,i$);d.clientExperimentsStateBlob&&Gg(q,7,d.clientExperimentsStateBlob,i$);return q}; Ia=function(d){var q={};d=d.split("&");d=g.E(d);for(var T=d.next();!T.done;T=d.next())T=T.value.split("="),T.length===2&&(q[T[0]]=T[1]);return q}; K3D=function(){if(g.RD("bg_st_hr"))return"havuokmhhs-0";var d,q=((d=performance)==null?void 0:d.timeOrigin)||0;return"havuokmhhs-"+Math.floor(q)}; mM=function(d){this.G=d}; O4Q=function(){return new Promise(function(d){var q=window.top;q.ntpevasrs!==void 0?d(new mM(q.ntpevasrs)):(q.ntpqfbel===void 0&&(q.ntpqfbel=[]),q.ntpqfbel.push(function(T){d(new mM(T))}))})}; rL6=function(){if(lb()){var d=g.Cs("PLAYER_VARS",{});if(g.N$(d,"privembed",!1)!="1"&&!pJ7(d)){var q=function(){Sl=!0;"google_ad_status"in window?Wq("DCLKSTAT",1):Wq("DCLKSTAT",2)}; try{g.TT("//static.doubleclick.net/instream/ad_status.js",q)}catch(T){}nLY.push(g.Gh.DE(function(){if(!(Sl||"google_ad_status"in window)){try{if(q){var T=""+g.X_(q),Y=A1X[T];Y&&g.lI(Y)}}catch(e){}Sl=!0;Wq("DCLKSTAT",3)}},5E3))}}}; l9=function(){var d=Number(g.Cs("DCLKSTAT",0));return isNaN(d)?0:d}; d5=function(d,q,T){var Y=this;this.network=d;this.options=q;this.U=T;this.G=null;if(q.hsD){var e=new g.sq;this.G=e.promise;g.oQ.ytAtRC&&fW(function(){var U,b;return g.G(function(J){if(J.U==1){if(!g.oQ.ytAtRC)return J.return();U=vm(null);return g.B(J,oa(Y,U),2)}b=J.G;g.oQ.ytAtRC&&g.oQ.ytAtRC(JSON.stringify(b));g.E6(J)})},2); O4Q().then(function(U){var b,J,F,N;return g.G(function(R){if(R.U==1)return U.bindInnertubeChallengeFetcher(function(x){return oa(Y,vm(x))}),g.B(R,v3(),2); b=R.G;J=U.getLatestChallengeResponse();F=J.challenge;if(!F)throw Error("BGE_MACIL");N={challenge:F,Rb:Ia(F),CH:b,bgChallenge:new XT};e.resolve(N);U.registerChallengeFetchedCallback(function(x){x=x.challenge;if(!x)throw Error("BGE_MACR");x={challenge:x,Rb:Ia(x),CH:b,bgChallenge:new XT};Y.G=Promise.resolve(x)}); g.E6(R)})})}else q.preload&&tT6(this,new Promise(function(U){g.zy(0,function(){U(Va(Y))},0)}))}; vm=function(d){var q={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};d&&(q.interpreterHash=d);return q}; Va=function(d,q){q=q===void 0?0:q;var T,Y,e,U,b,J,F,N,R,x,y,h;return g.G(function(H){switch(H.U){case 1:T=vm(FT().G);if(g.RD("att_fet_ks"))return g.jD(H,7),g.B(H,oa(d,T),9);g.jD(H,4);return g.B(H,BMg(d,T),6);case 6:b=H.G;e=b.udv;U=b.d3v;Y=b;g.ZX(H,3);break;case 4:return g.nN(H),g.OL(Error("Failed to fetch attestation challenge after "+(q+" attempts; not retrying for 24h."))),qt(d,864E5),H.return({challenge:"",Rb:{},CH:void 0,bgChallenge:void 0});case 9:Y=H.G;if(!Y)throw Error("Fetching Attestation challenge returned falsy"); if(!Y.challenge)throw Error("Missing Attestation challenge");e=Y.challenge;U=Ia(e);if("c1a"in U&&(!Y.bgChallenge||!Y.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.ZX(H,3);break;case 7:J=g.nN(H);g.OL(J);q++;if(q>=5)return g.OL(Error("Failed to fetch attestation challenge after "+(q+" attempts; not retrying for 24h."))),qt(d,864E5),H.return({challenge:"",Rb:{},CH:void 0,bgChallenge:void 0});F=1E3*Math.pow(2,q-1)+Math.random()*1E3;return H.return(new Promise(function(a){g.zy(0, function(){a(Va(d,q))},F)})); case 3:N=Number(U.t)||7200;qt(d,N*1E3);R=void 0;if(!("c1a"in U&&Y.bgChallenge)){H.tF(10);break}x=Z4_(Y.bgChallenge);g.jD(H,11);return g.B(H,Kv_(FT(),x),13);case 13:g.ZX(H,12);break;case 11:return y=g.nN(H),g.OL(y),H.return({challenge:e,Rb:U,CH:R,bgChallenge:x});case 12:return g.jD(H,14),R=new $H({challenge:x,AO:{wH:"aGIf"}}),g.B(H,R.w0,16);case 16:g.ZX(H,10);break;case 14:h=g.nN(H),g.OL(h),R=void 0;case 10:return H.return({challenge:e,Rb:U,CH:R,bgChallenge:x})}})}; oa=function(d,q){var T;return g.G(function(Y){T=d.U;if(!T||T.YL())return Y.return(oa(d.network,q));tU("att_pna",void 0,"attestation_challenge_fetch");return Y.return(new Promise(function(e){T.zg("publicytnetworkstatus-online",function(){oa(d.network,q).then(e)})}))})}; KLg=function(d){if(!d)throw Error("Fetching Attestation challenge returned falsy");if(!d.challenge)throw Error("Missing Attestation challenge");var q=d.challenge,T=Ia(q);if("c1a"in T&&(!d.bgChallenge||!d.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},d,{udv:q,d3v:T})}; BMg=function(d,q){var T,Y,e,U,b;return g.G(function(J){switch(J.U){case 1:T=void 0,Y=0,e={};case 2:if(!(Y<5)){J.tF(4);break}if(!(Y>0)){J.tF(5);break}e.x3=1E3*Math.pow(2,Y-1)+Math.random()*1E3;return g.B(J,new Promise(function(F){return function(N){g.zy(0,function(){N(void 0)},F.x3)}}(e)),5); case 5:return g.jD(J,7),g.B(J,oa(d,q),9);case 9:return U=J.G,J.return(KLg(U));case 7:T=b=g.nN(J),b instanceof Error&&g.OL(b);case 8:Y++;e={x3:void 0};J.tF(2);break;case 4:throw T;}})}; tT6=function(d,q){d.G=q}; GN1=function(d){var q,T,Y;return g.G(function(e){if(e.U==1)return g.B(e,Promise.race([d.G,null]),2);q=e.G;var U=Va(d);d.G=U;(T=q)==null||(Y=T.CH)==null||Y.dispose();g.E6(e)})}; qt=function(d,q){function T(){var e;return g.G(function(U){e=Y-Date.now();return e<1E3?g.B(U,GN1(d),0):(fW(T,0,Math.min(e,6E4)),U.tF(0))})} var Y=Date.now()+q;T()}; LL2=function(d,q){return new Promise(function(T){g.zy(0,function(){T(q())},d)})}; g.kNf=function(d,q){var T;return g.G(function(Y){var e=g.qx("yt.aba.att");return(T=e?e:d5.instance!==void 0?d5.instance.j.bind(d5.instance):null)?Y.return(T("ENGAGEMENT_TYPE_PLAYBACK",d,q)):Y.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.PIQ=function(){var d;return(d=(d=g.qx("yt.aba.att2"))?d:d5.instance!==void 0?d5.instance.T.bind(d5.instance):null)?d():Promise.resolve(!1)}; CIg=function(d,q){var T=g.qx("ytDebugData.callbacks");T||(T={},g.Vf("ytDebugData.callbacks",T));if(g.RD("web_dd_iu")||WLI.includes(d))T[d]=q}; Tq=function(){var d=u7N;var q=q===void 0?[]:q;var T=T===void 0?[]:T;q=n1g.apply(null,[rKI.apply(null,g.RQ(q))].concat(g.RQ(T)));this.store=B12(d,void 0,q)}; g.YX=function(d,q,T){for(var Y=Object.assign({},d),e=g.E(Object.keys(q)),U=e.next();!U.done;U=e.next()){U=U.value;var b=d[U],J=q[U];if(J===void 0)delete Y[U];else if(b===void 0)Y[U]=J;else if(Array.isArray(J)&&Array.isArray(b))Y[U]=T?[].concat(g.RQ(b),g.RQ(J)):J;else if(!Array.isArray(J)&&g.UI(J)&&!Array.isArray(b)&&g.UI(b))Y[U]=g.YX(b,J,T);else if(typeof J===typeof b)Y[U]=J;else return q=new g.CW("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:U,Hw2:b,updateValue:J}),g.Zz(q), d}return Y}; e2=function(d){var q=this;d=d===void 0?[]:d;this.G=[];this.j=this.U=0;this.T=void 0;this.totalLength=0;d.forEach(function(T){q.append(T)})}; DzX=function(d,q){return d.G.length===0?!1:(d=d.G[d.G.length-1])&&d.buffer===q.buffer&&d.byteOffset+d.length===q.byteOffset}; Uv=function(d,q){q=g.E(q.G);for(var T=q.next();!T.done;T=q.next())d.append(T.value)}; bz=function(d,q,T){return d.split(q).Kp.split(T).hS}; XJ=function(d){d.T=void 0;d.U=0;d.j=0}; JV=function(d,q,T){d.isFocused(q);return q-d.j+T<=d.G[d.U].length}; wWf=function(d){if(!d.T){var q=d.G[d.U];d.T=new DataView(q.buffer,q.byteOffset,q.length)}return d.T}; fd7=function(d,q,T){q=q===void 0?0:q;T=T===void 0?-1:T;if(!d.totalLength||!T)return new DataView(new ArrayBuffer(0));T<0&&(T=d.totalLength-q);d.focus(q);if(!JV(d,q,T)){var Y=d.U,e=d.j;d.focus(q+T-1);e=new Uint8Array(d.j+d.G[d.U].length-e);for(var U=0,b=Y;b<=d.U;b++)e.set(d.G[b],U),U+=d.G[b].length;d.G.splice(Y,d.U-Y+1,e);XJ(d);d.focus(q)}Y=d.G[d.U];return new DataView(Y.buffer,Y.byteOffset+q-d.j,T)}; $X=function(d,q,T){d=fd7(d,q===void 0?0:q,T===void 0?-1:T);return new Uint8Array(d.buffer,d.byteOffset,d.byteLength)}; g5=function(d,q,T){d=$X(d,q===void 0?0:q,T===void 0?-1:T);q=new Uint8Array(d.length);try{q.set(d)}catch(Y){for(T=0;T>10;U=56320|U&1023}xX[e++]=U}}U=String.fromCharCode.apply(String,xX); e<1024&&(U=U.substring(0,e));T.push(U)}return T.join("")}; H6=function(d,q){var T;if((T=hV)==null?0:T.encodeInto)return q=hV.encodeInto(d,q),q.read>6|192:((e&64512)===55296&&Y+1>18|240,q[T++]=e>>12&63|128):q[T++]=e>>12|224,q[T++]=e>>6&63|128),q[T++]=e&63|128)}return T}; QA=function(d){if(hV)return hV.encode(d);var q=new Uint8Array(Math.ceil(d.length*1.2)),T=H6(d,q);q.lengthT&&(q=q.subarray(0,T));return q}; Mt=function(d){this.G=d;this.pos=0;this.U=-1}; c6=function(d){var q=FJ(d.G,d.pos);++d.pos;if(q<128)return q;for(var T=q&127,Y=1;q>=128;)q=FJ(d.G,d.pos),++d.pos,Y*=128,T+=(q&127)*Y;return T}; Ev=function(d,q){var T=d.U;for(d.U=-1;d.pos+1<=d.G.totalLength;){T<0&&(T=c6(d));var Y=T>>3,e=T&7;if(Y===q)return!0;if(Y>q){d.U=T;break}T=-1;switch(e){case 0:c6(d);break;case 1:d.pos+=8;break;case 2:Y=c6(d);d.pos+=Y;break;case 5:d.pos+=4}}return!1}; j2=function(d,q){if(Ev(d,q))return c6(d)}; Id2=function(d,q){if(Ev(d,q))return q=$X(d.G,d.pos,8),d.pos+=8,(new DataView(q.buffer,q.byteOffset,q.byteLength)).getFloat64(0,!0)}; ae=function(d,q){if(Ev(d,q))return!!c6(d)}; AV=function(d,q){if(Ev(d,q)){q=c6(d);var T=$X(d.G,d.pos,q);d.pos+=q;return T}}; po=function(d,q){if(d=AV(d,q))return g.yA(d)}; ZS=function(d,q,T){if(d=AV(d,q))return T(new Mt(new e2([d])))}; Ov=function(d,q){for(var T=[];Ev(d,q);)T.push(c6(d));return T.length?T:void 0}; no=function(d,q,T){for(var Y=[],e;e=AV(d,q);)Y.push(T(new Mt(new e2([e]))));return Y.length?Y:void 0}; r5=function(d,q){d=d instanceof Uint8Array?new e2([d]):d;return q(new Mt(d))}; mz7=function(d,q){d=new Uint8Array(d);q&&d.set(q);return d}; Sg2=function(d){this.pos=0;this.U=[];this.G=mz7(d===void 0?4096:d);this.view=new DataView(this.G.buffer,this.G.byteOffset,this.G.byteLength)}; tV=function(d,q){q=d.pos+q;if(!(d.G.length>=q)){for(var T=d.G.length*2;T268435455){tV(d,4);for(var T=q&1073741823,Y=0;Y<4;Y++)d.view.setUint8(d.pos,T&127|128),T>>=7,d.pos+=1;q=Math.floor(q/268435456)}for(tV(d,4);q>127;)d.view.setUint8(d.pos,q&127|128),q>>=7,d.pos+=1;d.view.setUint8(d.pos,q);d.pos+=1}; fo=function(d,q,T){T!==void 0&&(w5(d,q*8),w5(d,T))}; zq=function(d,q,T){T!==void 0&&fo(d,q,T?1:0)}; iz=function(d,q,T){T!==void 0&&(w5(d,q*8+2),q=T.length,w5(d,q),tV(d,q),d.G.set(T,d.pos),d.pos+=q)}; Ie=function(d,q,T){T!==void 0&&(ld7(d,q,Math.ceil(Math.log2(T.length*4+2)/7)),tV(d,T.length*1.2),q=H6(T,d.G.subarray(d.pos)),d.pos+q>d.G.length&&(tV(d,q),q=H6(T,d.G.subarray(d.pos))),d.pos+=q,vLj(d))}; ld7=function(d,q,T){T=T===void 0?2:T;w5(d,q*8+2);d.U.push(d.pos);d.U.push(T);d.pos+=T}; vLj=function(d){for(var q=d.U.pop(),T=d.U.pop(),Y=d.pos-T-q;q--;){var e=q?128:0;d.view.setUint8(T++,Y&127|e);Y>>=7}}; mP=function(d,q,T,Y,e){T&&(ld7(d,q,e===void 0?3:e),Y(d,T),vLj(d))}; g.S2=function(d,q){var T=new Sg2(4096);q(T,d);return new Uint8Array(T.G.buffer,T.G.byteOffset,T.pos)}; g.lz=function(d){var q=new Mt(new e2([ZV(decodeURIComponent(d))]));d=po(q,2);q=j2(q,4);var T=oLQ[q];if(typeof T==="undefined")throw d=new g.CW("Failed to recognize field number",{name:"EntityKeyHelperError",h2Z:q}),g.Zz(d),d;return{Qn:q,entityType:T,entityId:d}}; g.v6=function(d,q){var T=T===void 0?0:T;var Y=new Sg2;iz(Y,2,QA(d));d=VTQ[q];if(typeof d==="undefined")throw T=new g.CW("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:q}),g.Zz(T),T;fo(Y,4,d);fo(Y,5,1);q=new Uint8Array(Y.G.buffer,Y.G.byteOffset,Y.pos);return encodeURIComponent(g.A0(q,T))}; oe=function(d,q,T,Y){if(Y===void 0)return Y=Object.assign({},d[q]||{}),T=(delete Y[T],Y),Y={},Object.assign({},d,(Y[q]=T,Y));var e={},U={};return Object.assign({},d,(U[q]=Object.assign({},d[q],(e[T]=Y,e)),U))}; d9N=function(d,q,T,Y,e){var U=d[q];if(U==null||!U[T])return d;Y=g.YX(U[T],Y,e==="REPEATED_FIELDS_MERGE_OPTION_APPEND");e={};U={};return Object.assign({},d,(U[q]=Object.assign({},d[q],(e[T]=Y,e)),U))}; quf=function(d,q){d=d===void 0?{}:d;switch(q.type){case "ENTITY_LOADED":return q.payload.reduce(function(Y,e){var U,b=(U=e.options)==null?void 0:U.persistenceOption;if(b&&b!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&b!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Y;if(!e.entityKey)return g.Zz(Error("Missing entity key")),Y;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return e=new g.CW("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey}),g.Zz(e),Y;var J=g.TX(e.payload); return oe(Y,J,e.entityKey,e.payload[J])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var F=g.lz(e).entityType;J=oe(Y,F,e);break a}catch(x){if(x instanceof Error){e=new g.CW("Failed to deserialize entity key",{entityKey:e,originalMessage:x.message});g.Zz(e);J=Y;break a}throw x;}J=void 0}return J}if(e.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!e.payload)return e=new g.CW("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey}),g.Zz(e),Y;J=g.TX(e.payload);var N,R;return d9N(Y, J,e.entityKey,e.payload[J],(N=e.fieldMask)==null?void 0:(R=N.mergeOptions)==null?void 0:R.repeatedFieldsMergeOption)}return Y},d); case "REPLACE_ENTITY":var T=q.payload;return oe(d,T.entityType,T.key,T.yn);case "REPLACE_ENTITIES":return Object.keys(q.payload).reduce(function(Y,e){var U=q.payload[e];return Object.keys(U).reduce(function(b,J){return oe(b,e,J,U[J])},Y)},d); case "UPDATE_ENTITY":return T=q.payload,d9N(d,T.entityType,T.key,T.yn,T.TJ2);default:return d}}; VA=function(d,q,T){return d[q]?d[q][T]||null:null}; dE=function(d){return window.Int32Array?new Int32Array(d):Array(d)}; ba=function(d){g.W.call(this);this.counter=[0,0,0,0];this.U=new Uint8Array(16);this.G=16;if(!T42){var q,T=new Uint8Array(256),Y=new Uint8Array(256);var e=1;for(q=0;q<256;q++)T[e]=q,Y[q]=e,e^=e<<1^(e>>7&&283);q1=new Uint8Array(256);Tm=dE(256);YU=dE(256);eo=dE(256);Un=dE(256);for(var U=0;U<256;U++){e=U?Y[255^T[U]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;q1[U]=e;q=e<<1^(e>>7&&283);var b=q^e;Tm[U]=q<<24|e<<16|e<<8|b;YU[U]=b<<24|Tm[U]>>>8;eo[U]=e<<24|YU[U]>>>8;Un[U]=e<<24|eo[U]>>>8}T42=!0}e=dE(44);for(T= 0;T<4;T++)e[T]=d[4*T]<<24|d[4*T+1]<<16|d[4*T+2]<<8|d[4*T+3];for(Y=1;T<44;T++)d=e[T-1],T%4||(d=(q1[d>>16&255]^Y)<<24|q1[d>>8&255]<<16|q1[d&255]<<8|q1[d>>>24],Y=Y<<1^(Y>>7&&283)),e[T]=e[T-4]^d;this.key=e}; Yu1=function(d){for(var q=d.key,T=d.counter[0]^q[0],Y=d.counter[1]^q[1],e=d.counter[2]^q[2],U=d.counter[3]^q[3],b=3;b>=0&&!(d.counter[b]=-~d.counter[b]);b--);for(var J,F,N=4;N<40;)b=Tm[T>>>24]^YU[Y>>16&255]^eo[e>>8&255]^Un[U&255]^q[N++],J=Tm[Y>>>24]^YU[e>>16&255]^eo[U>>8&255]^Un[T&255]^q[N++],F=Tm[e>>>24]^YU[U>>16&255]^eo[T>>8&255]^Un[Y&255]^q[N++],U=Tm[U>>>24]^YU[T>>16&255]^eo[Y>>8&255]^Un[e&255]^q[N++],T=b,Y=J,e=F;d=d.U;b=q[40];d[0]=q1[T>>>24]^b>>>24;d[1]=q1[Y>>16&255]^b>>16&255;d[2]=q1[e>>8&255]^ b>>8&255;d[3]=q1[U&255]^b&255;b=q[41];d[4]=q1[Y>>>24]^b>>>24;d[5]=q1[e>>16&255]^b>>16&255;d[6]=q1[U>>8&255]^b>>8&255;d[7]=q1[T&255]^b&255;b=q[42];d[8]=q1[e>>>24]^b>>>24;d[9]=q1[U>>16&255]^b>>16&255;d[10]=q1[T>>8&255]^b>>8&255;d[11]=q1[Y&255]^b&255;b=q[43];d[12]=q1[U>>>24]^b>>>24;d[13]=q1[T>>16&255]^b>>16&255;d[14]=q1[Y>>8&255]^b>>8&255;d[15]=q1[e&255]^b&255}; sn=function(){if(!XN&&!g.DP){if(Jb)return Jb;var d;Jb=(d=window.crypto)==null?void 0:d.subtle;var q,T,Y;if(((q=Jb)==null?0:q.importKey)&&((T=Jb)==null?0:T.sign)&&((Y=Jb)==null?0:Y.encrypt))return Jb;Jb=void 0}}; g.FN=function(d){var q=sn();q&&(this.G=new $U(d,q));this.U=new g.gE(d)}; $U=function(d,q){this.U=d;this.subtleCrypto=q}; eW6=function(d,q,T){var Y,e;return g.G(function(U){switch(U.U){case 1:if(d.G){U.tF(2);break}return g.B(U,d.subtleCrypto.importKey("raw",d.U,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:d.G=U.G;case 2:return Y={name:"AES-CTR",counter:T,length:128},g.B(U,d.subtleCrypto.encrypt(Y,d.G,q),4);case 4:return e=U.G,U.return(new Uint8Array(e))}})}; g.gE=function(d){this.U=d}; N1=function(d){this.S=new Uint8Array(64);this.j=new Uint8Array(64);this.T=0;this.X=new Uint8Array(64);this.U=0;this.S.set(d);this.j.set(d);for(d=0;d<64;d++)this.S[d]^=92,this.j[d]^=54;this.reset()}; U9j=function(d,q,T){for(var Y=d.L,e=d.G[0],U=d.G[1],b=d.G[2],J=d.G[3],F=d.G[4],N=d.G[5],R=d.G[6],x=d.G[7],y,h,H,a=0;a<64;)a<16?(Y[a]=H=q[T]<<24|q[T+1]<<16|q[T+2]<<8|q[T+3],T+=4):(y=Y[a-2],h=Y[a-15],H=Y[a-7]+Y[a-16]+((y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+((h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3),Y[a]=H),y=x+Rw[a]+H+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&N^~F&R),h=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&U^e&b^U&b),x=y+h,J+=y,a++,a<16?(Y[a]=H=q[T]<<24|q[T+1]<<16|q[T+2]<<8|q[T+3],T+=4):(y= Y[a-2],h=Y[a-15],H=Y[a-7]+Y[a-16]+((y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+((h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3),Y[a]=H),y=R+Rw[a]+H+((J>>>6|J<<26)^(J>>>11|J<<21)^(J>>>25|J<<7))+(J&F^~J&N),h=((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+(x&e^x&U^e&U),R=y+h,b+=y,a++,a<16?(Y[a]=H=q[T]<<24|q[T+1]<<16|q[T+2]<<8|q[T+3],T+=4):(y=Y[a-2],h=Y[a-15],H=Y[a-7]+Y[a-16]+((y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+((h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3),Y[a]=H),y=N+Rw[a]+H+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&J^ ~b&F),h=((R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10))+(R&x^R&e^x&e),N=y+h,U+=y,a++,a<16?(Y[a]=H=q[T]<<24|q[T+1]<<16|q[T+2]<<8|q[T+3],T+=4):(y=Y[a-2],h=Y[a-15],H=Y[a-7]+Y[a-16]+((y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+((h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3),Y[a]=H),y=F+Rw[a]+H+((U>>>6|U<<26)^(U>>>11|U<<21)^(U>>>25|U<<7))+(U&b^~U&J),h=((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+(N&R^N&x^R&x),H=x,x=J,J=H,H=R,R=b,b=H,H=N,N=U,U=H,F=e+y,e=y+h,a++;d.G[0]=e+d.G[0]|0;d.G[1]=U+d.G[1]|0;d.G[2]=b+d.G[2]|0;d.G[3]= J+d.G[3]|0;d.G[4]=F+d.G[4]|0;d.G[5]=N+d.G[5]|0;d.G[6]=R+d.G[6]|0;d.G[7]=x+d.G[7]|0}; XiY=function(d){var q=new Uint8Array(32),T=64-d.U;d.U>55&&(T+=64);var Y=new Uint8Array(T);Y[0]=128;for(var e=d.T*8,U=1;U<9;U++){var b=e%256;Y[T-U]=b;e=(e-b)/256}d.update(Y);for(T=0;T<8;T++)q[T*4]=d.G[T]>>>24,q[T*4+1]=d.G[T]>>>16&255,q[T*4+2]=d.G[T]>>>8&255,q[T*4+3]=d.G[T]&255;bCH(d);return q}; bCH=function(d){d.G=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];d.L=[];d.L.length=64;d.T=0;d.U=0}; J$D=function(d){this.G=d}; sC1=function(d,q,T){d=new N1(d.G);d.update(q);d.update(T);q=XiY(d);d.update(d.S);d.update(q);q=XiY(d);d.reset();return q}; $9f=function(d){this.U=d}; gyX=function(d,q,T,Y){var e,U,b;return g.G(function(J){switch(J.U){case 1:if(d.G){J.tF(2);break}return g.B(J,Y.importKey("raw",d.U,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:d.G=J.G;case 2:return e=new Uint8Array(q.length+T.length),e.set(q),e.set(T,q.length),U={name:"HMAC",hash:"SHA-256"},g.B(J,Y.sign(U,d.G,e),4);case 4:return b=J.G,J.return(new Uint8Array(b))}})}; FIX=function(d,q,T){d.j||(d.j=new J$D(d.U));return sC1(d.j,q,T)}; N41=function(d,q,T){var Y,e;return g.G(function(U){if(U.U==1){Y=sn();if(!Y)return U.return(FIX(d,q,T));g.jD(U,3);return g.B(U,gyX(d,q,T,Y),5)}if(U.U!=3)return U.return(U.G);e=g.nN(U);g.OL(e);XN=!0;return U.return(FIX(d,q,T))})}; x9f=function(d){for(var q="",T=0;T=0||HK(d,0,"gad_source",d.search(Q6))>=0}; jC1=function(){this.G=new Map}; A$H=function(d,q){var T=Ou().resolve(a5I);if(Ey2(q)){var Y=cK(q,"gclid");q={handleEvent:function(J){d&&!d.closed&&typeof d.postMessage==="function"&&J&&J.origin&&J.source===d&&J.data&&J.data.action==="gcl_setup"&&d.postMessage(Object.assign({},{action:"gcl_transfer"},Y&&{gclid:Y},{gadSource:2}),J.origin)}}; for(var e=g.E(T.G),U=e.next();!U.done;U=e.next()){var b=g.E(U.value);U=b.next().value;b=b.next().value;if(U.closed)try{window.removeEventListener("message",b),T.G.delete(U)}catch(J){g.Zz(J)}}d&&T.G.size<15&&(T.G.set(d,q),window.addEventListener("message",q))}}; xU=function(d,q,T){if(!q)return d.length>=1?d[d.length-1]:null;for(var Y=g.E(d),e=Y.next();!e.done;e=Y.next())if(e=e.value,e.width&&e.height&&(T&&e.width>=q||!T&&e.height>=q))return e;for(q=d.length-1;q>=0;q--)if(T&&d[q].width||!T&&d[q].height)return d[q];return d[0]}; yK=function(){this.state=1;this.CH=null;this.XM=void 0}; ZC6=function(d,q,T,Y,e,U){var b=b===void 0?"trayride":b;T?(d.XC(2),g.TT(T,function(){if(window[b])pig(d,Y,b,e);else{d.XC(3);var J=aA6(T),F=document.getElementById(J);F&&(E5D(J),F.parentNode.removeChild(F));g.OL(new g.CW("BL:ULB",""+T))}},U)):q?(U=g.FE("SCRIPT"),q instanceof yY?(U.textContent=hn(q),HZ(U)):U.textContent=q,U.nonce=xS(document),document.head.appendChild(U),document.head.removeChild(U),window[b]?pig(d,Y,b,e):(d.XC(4),g.OL(new g.CW("BL:ULBJ")))):g.OL(new g.CW("BL:ULV"))}; pig=function(d,q,T,Y){d.XC(5);var e=!!d.XM&&OCn.includes(g.sb(d.XM)||"");try{var U=new $H({program:q,globalName:T,AO:{disable:!g.RD("att_web_record_metrics")||!g.RD("att_skip_metrics_for_cookieless_domains_ks")&&e,wH:"aGIf"}});U.w0.then(function(){d.XC(6);Y&&Y(q)}); d.xd(U)}catch(b){d.XC(7),b instanceof Error&&g.OL(b)}}; HD=function(){var d=g.qx("yt.abuse.playerAttLoader");return d&&["bgvma","bgvmb","bgvmc"].every(function(q){return q in d})?d:null}; QK=function(){yK.apply(this,arguments)}; M1=function(){}; ny6=function(d,q,T){for(var Y=!1,e=g.E(d.yK.entries()),U=e.next();!U.done;U=e.next())U=g.E(U.value).next().value,U.slotType==="SLOT_TYPE_PLAYER_BYTES"&&U.nf==="core"&&(Y=!0);if(Y){a:if(!T){d=g.E(d.yK.entries());for(T=d.next();!T.done;T=d.next())if(Y=g.E(T.value),T=Y.next().value,Y=Y.next().value,T.slotType==="SLOT_TYPE_IN_PLAYER"&&T.nf==="core"){T=Y.layoutId;break a}T=void 0}T?q.dj(T):Jm("No triggering layout ID available when attempting to mute.")}}; cD=function(d,q){this.NF=d;this.je=q}; En=function(){}; jo=function(){}; taQ=function(d){g.W.call(this);var q=this;this.FC=d;this.G=new Map;aw(this,"commandExecutorCommand",function(T,Y,e){r$_(q,T.commands,Y,e)}); aw(this,"clickTrackingParams",function(){})}; B4D=function(d,q){aw(d,q.xH(),function(T,Y,e){q.WZ(T,Y,e)})}; aw=function(d,q,T){d.JF();d.G.get(q)&&g.Zz(Error("Extension name "+q+" already registered"));d.G.set(q,T)}; r$_=function(d,q,T,Y){q=q===void 0?[]:q;d.JF();var e=[],U=[];q=g.E(q);for(var b=q.next();!b.done;b=q.next())b=b.value,g.D(b,KIX)||g.D(b,GTj)?e.push(b):U.push(b);e=g.E(e);for(q=e.next();!q.done;q=e.next())Ab(d,q.value,T,Y);U=g.E(U);for(e=U.next();!e.done;e=U.next())Ab(d,e.value,T,Y)}; Ab=function(d,q,T,Y){d.JF();q.loggingUrls&&LIQ(d,"loggingUrls",q.loggingUrls,T,Y);q=g.E(Object.entries(q));for(var e=q.next();!e.done;e=q.next()){var U=g.E(e.value);e=U.next().value;U=U.next().value;e==="openPopupAction"?d.FC.get().qd("innertubeCommand",{openPopupAction:U}):e==="confirmDialogEndpoint"?d.FC.get().qd("innertubeCommand",{confirmDialogEndpoint:U}):kT7.hasOwnProperty(e)||LIQ(d,e,U,T,Y)}}; LIQ=function(d,q,T,Y,e){if((d=d.G.get(q))&&typeof d==="function")try{d(T,Y,e)}catch(U){g.Zz(U)}else q=new g.CW("Unhandled field",q),g.OL(q)}; p3=function(d,q,T){this.kP=d;this.G=q;this.Hv=T;aC(Ou(),{Mn:a5I,Du:jC1})}; Zh=function(d){this.value=d}; On=function(d){this.value=d}; n3=function(d){this.value=d}; rE=function(d){this.value=d}; tb=function(d){this.value=d}; BD=function(d){this.value=d}; K3=function(d){this.value=d}; Gm=function(){Zh.apply(this,arguments)}; L3=function(d){this.value=d}; kU=function(d){this.value=d}; PD=function(d){this.value=d}; WD=function(d){this.value=d}; C3=function(d){this.value=d}; ua=function(d){this.value=d}; Dh=function(d){this.value=d}; wE=function(d){this.value=d}; f3=function(d){this.value=d}; zm=function(d){this.value=d}; ia=function(){Zh.apply(this,arguments)}; Iw=function(d){this.value=d}; m0=function(d){this.value=d}; So=function(d){this.value=d}; la=function(d){this.value=d}; vD=function(d){this.value=d}; ow=function(d){this.value=d}; VK=function(d){this.value=d}; dJ=function(d){this.value=d}; q_=function(d){this.value=d}; Te=function(d){this.value=d}; Yg=function(d){this.value=d}; et=function(d){this.value=d}; UH=function(d){this.value=d}; b7=function(d){this.value=d}; Xb=function(d){this.value=d}; Js=function(d){this.value=d}; sH=function(d){this.value=d}; $g=function(d){this.value=d}; gJ=function(d){this.value=d}; Fb=function(d){this.value=d}; N_=function(d){this.value=d}; RV=function(d){this.value=d}; xg=function(d){this.value=d}; yq=function(d){this.value=d}; hs=function(d){this.value=d}; H4=function(d){this.value=d}; Qq=function(d){this.value=d}; M_=function(d){this.value=d}; c4=function(d){this.value=d}; EH=function(d){this.value=d}; jt=function(d){this.value=d}; aV=function(d){this.value=d}; As=function(d){this.value=d}; pm=function(d){this.value=d}; Z3=function(d){this.value=d}; OH=function(d){this.value=d}; nm=function(d){this.value=d}; rJ=function(d){this.value=d}; ts=function(d){this.value=d}; B4=function(){Zh.apply(this,arguments)}; Km=function(d){this.value=d}; Ge=function(){Zh.apply(this,arguments)}; Lm=function(){Zh.apply(this,arguments)}; kg=function(){Zh.apply(this,arguments)}; P4=function(){Zh.apply(this,arguments)}; W4=function(){Zh.apply(this,arguments)}; Cm=function(d){this.value=d}; u7=function(d){this.value=d}; D3=function(d){this.value=d}; wJ=function(d){this.value=d}; fm=function(d){this.value=d}; i7=function(d,q,T){if(T&&!T.includes(d.layoutType))return!1;q=g.E(q);for(T=q.next();!T.done;T=q.next())if(!ze(d.clientMetadata,T.value))return!1;return!0}; IV=function(){return""}; PyQ=function(d,q){switch(d){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 q(d),8}}; m5=function(d,q,T,Y){Y=Y===void 0?!1:Y;xc.call(this,d);this.b9=T;this.kA=Y;this.args=[];q&&this.args.push(q)}; S=function(d,q,T,Y){Y=Y===void 0?!1:Y;xc.call(this,d);this.b9=T;this.kA=Y;this.args=[];q&&this.args.push(q)}; St=function(d){var q=new Map;d.forEach(function(T){q.set(T.G(),T)}); this.G=q}; ze=function(d,q){return d.G.has(q)}; l7=function(d,q){d=d.G.get(q);if(d!==void 0)return d.get()}; v4=function(d){return Array.from(d.G.keys())}; oV=function(d,q,T){if(T&&T!==d.slotType)return!1;q=g.E(q);for(T=q.next();!T.done;T=q.next())if(!ze(d.clientMetadata,T.value))return!1;return!0}; Cyg=function(d){var q;return((q=WIn.get(d))==null?void 0:q.uy)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; dp=function(d,q){var T={type:q.slotType,controlFlowManagerLayer:uZ7.get(q.nf)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};q.slotEntryTrigger&&(T.entryTriggerType=q.slotEntryTrigger.triggerType);q.slotPhysicalPosition!==1&&(T.slotPhysicalPosition=q.slotPhysicalPosition);if(d){T.debugData={slotId:q.slotId};if(d=q.slotEntryTrigger)T.debugData.slotEntryTriggerData=Vq(d);d=q.slotFulfillmentTriggers;T.debugData.fulfillmentTriggerData=[];d=g.E(d);for(var Y=d.next();!Y.done;Y=d.next())T.debugData.fulfillmentTriggerData.push(Vq(Y.value)); q=q.slotExpirationTriggers;T.debugData.expirationTriggerData=[];q=g.E(q);for(d=q.next();!d.done;d=q.next())T.debugData.expirationTriggerData.push(Vq(d.value))}return T}; D96=function(d,q){var T={type:q.layoutType,controlFlowManagerLayer:uZ7.get(q.nf)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};d&&(T.debugData={layoutId:q.layoutId});return T}; Vq=function(d,q){var T={type:d.triggerType};q!=null&&(T.category=q);d.triggeringSlotId!=null&&(T.triggerSourceData||(T.triggerSourceData={}),T.triggerSourceData.associatedSlotId=d.triggeringSlotId);d.triggeringLayoutId!=null&&(T.triggerSourceData||(T.triggerSourceData={}),T.triggerSourceData.associatedLayoutId=d.triggeringLayoutId);return T}; wi2=function(d,q,T,Y){q={opportunityType:q};d&&(Y||T)&&(Y=g.yC(Y||[],function(e){return dp(d,e)}),q.debugData=Object.assign({},T&&T.length>0?{associatedSlotId:T}:{},Y.length>0?{slots:Y}:{})); return q}; Tn=function(d,q){return function(T){return f5_(qE(d),q.slotId,q.slotType,q.slotPhysicalPosition,q.nf,q.slotEntryTrigger,q.slotFulfillmentTriggers,q.slotExpirationTriggers,T.layoutId,T.layoutType,T.nf)}}; f5_=function(d,q,T,Y,e,U,b,J,F,N,R){return{adClientDataEntry:{slotData:dp(d,{slotId:q,slotType:T,slotPhysicalPosition:Y,nf:e,slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:J,clientMetadata:new St([])}),layoutData:D96(d,{layoutId:F,layoutType:N,nf:R,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],GG:new Map,clientMetadata:new St([]),HF:{}})}}}; eh=function(d){this.T2=d;d=Math.random();var q=this.T2.get();q=g.Yv(q.J.C().experiments,"html5_debug_data_log_probability");q=Number.isFinite(q)&&q>=0&&q<=1?q:0;this.G=d1){g.OL(new g.CW("Exit already started",{current:d.currentState}));var T=!1}else T=!0;if(!T)return!1;d.currentState=2;d.G=q;return!0}; Xg=function(d){if(d.currentState!==2)return!1;d.currentState=3;return!0}; Mxj=function(d,q){var T=new Map;d=g.E(d);for(var Y=d.next();!Y.done;Y=d.next()){Y=Y.value;if(Y.layoutType==="LAYOUT_TYPE_MEDIA")var e="v";else Y.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(e=l7(Y.clientMetadata,"metadata_type_linked_in_player_layout_type"),e=e==="LAYOUT_TYPE_ENDCAP"||e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":e==="LAYOUT_TYPE_SURVEY"?"s":e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):e="u";T.set(Y.layoutId,e);if(e==="u"){var U={};e=q;Y=(U.c=Y.layoutId,U);e.J.oU("uct",Y)}}d= q.dc();JQ={contentCpn:d,mJ:T};Y={};T=(Y.ct=T.size,Y.c=d,Y);q.J.oU("acc",T)}; ciD=function(){JQ={contentCpn:"",mJ:new Map}}; sJ=function(d){var q;return(q=JQ.mJ.get(d))!=null?q:"u"}; $V=function(d,q,T){d.J.oU(q,T);EPQ(d)}; jhn=function(d){var q=d.layoutId,T=d.jc;if(d.KS){var Y={};$V(d.kP,"slso",(Y.ec=q,Y.is=T,Y.ctp=sJ(q),Y))}}; gP=function(d){var q=d.layoutId,T=d.jc;if(d.KS){var Y={};$V(d.kP,"slse",(Y.ec=q,Y.is=T,Y.ctp=sJ(q),Y))}}; ayg=function(d){var q=d.layoutId,T=d.jc,Y=d.kP;d.KS&&(d={},$V(Y,"sleo",(d.xc=q,d.is=T,d.ctp=sJ(q),d)),EPQ(Y))}; AiI=function(d){var q=d.cpn,T=d.kP;d=d.jc;var Y=T.dc(),e={};$V(T,"ce",(e.ec=q,e.ia=q!==Y,e.r=JQ.mJ.has(q),e.is=d,e.ctp=sJ(q),e))}; EPQ=function(d){if(d.dc()!==JQ.contentCpn){var q={};q=(q.c=JQ.contentCpn,q);d.J.oU("ccm",q)}}; pk1=function(d){var q=d.cpn,T=d.kP;d=d.jc;var Y=T.dc(),e={};$V(T,"cx",(e.xc=q,e.ia=q!==Y,e.r=JQ.mJ.has(q),e.is=d,e.ctp=sJ(q),e))}; ZMf=function(d){this.params=d;this.G=new Set}; OMf=function(d,q,T){if(!d.G.has(q)){d.G.add(q);var Y={};d.params.cf.oN(q,Object.assign({},T,(Y.p_ac=d.params.adCpn,Y.p_isv=d.params.uJ&&d.params.eh,Y)))}}; NI=function(d,q,T){if(Fg(d.params.cf.T2.get(),!0)){var Y=T.flush,e={};OMf(d,q,(e.cts=T.currentTimeSec,e.f=Y,e))}}; nPD=function(d,q){this.kP=d;this.T2=q}; RI=function(d){var q=[];if(d){d=g.E(Object.entries(d));for(var T=d.next();!T.done;T=d.next()){var Y=g.E(T.value);T=Y.next().value;Y=Y.next().value;Y!==void 0&&(Y=typeof Y==="boolean"?""+ +Y:(""+Y).replace(/[:,=]/g,"_"),q.push(T+"."+Y))}}return q.join(";")}; g.xV=function(d,q,T){q=q===void 0?{}:q;this.errorCode=d;this.details=q;this.severity=T===void 0?0:T}; yb=function(d){return d===1||d===2}; hQ=function(d,q){q=q===void 0?0:q;if(d instanceof g.xV)return d;d=d&&d instanceof Error?d:Error(""+d);yb(q)?g.Zz(d):g.OL(d);return new g.xV(q===1?"player.fatalexception":"player.exception",{name:""+d.name,message:""+d.message},q)}; ri7=function(d,q){function T(){var Y=g.CN.apply(0,arguments);d.removeEventListener("playing",T);q.apply(null,g.RQ(Y))} d.addEventListener("playing",T)}; HH=function(){var d=g.qx("yt.player.utils.videoElement_");d||(d=g.FE("VIDEO"),g.Vf("yt.player.utils.videoElement_",d));return d}; Qb=function(d){var q=HH();return!!(q&&q.canPlayType&&q.canPlayType(d))}; cH=function(d){if(/opus/.test(d)&&g.MI&&!Qy("38")&&!g.WL())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(d);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(d);if(/webm/.test(d)&&!EH1())return!1;d==='audio/mp4; codecs="mp4a.40.2"'&&(d='video/mp4; codecs="avc1.4d401f"');return!!Qb(d)}; txf=function(d){try{var q=cH('video/mp4; codecs="avc1.42001E"')||cH('video/webm; codecs="vp9"');return(cH('audio/mp4; codecs="mp4a.40.2"')||cH('audio/webm; codecs="opus"'))&&(q||!d)||Qb('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(T){return"html5.missingapi"}}; EJ=function(){var d=HH();return!(!d.webkitSupportsPresentationMode||typeof d.webkitSetPresentationMode!=="function")}; j7=function(){var d=HH();try{var q=d.muted;d.muted=!q;return d.muted!==q}catch(T){}return!1}; BxD=function(){var d;return((d=navigator.connection)==null?void 0:d.type)||""}; g.aI=function(){cu.apply(this,arguments)}; AQ=function(d,q,T,Y,e,U,b,J){this.sampleRate=d===void 0?0:d;this.numChannels=q===void 0?0:q;this.spatialAudioType=T===void 0?"SPATIAL_AUDIO_TYPE_NONE":T;this.G=Y===void 0?!1:Y;this.j=e;this.T=U;this.audioQuality=b===void 0?"AUDIO_QUALITY_UNKNOWN":b;this.U=J===void 0?!1:J}; OJ=function(d,q,T,Y,e,U,b,J,F){this.width=d;this.height=q;this.quality=U||pe(d,q);this.qualityOrdinal=g.ZB[this.quality];this.fps=T||0;this.stereoLayout=!e||Y!=null&&Y!=="UNKNOWN"&&Y!=="RECTANGULAR"?0:e;this.projectionType=Y?Y==="EQUIRECTANGULAR"&&e===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":Y:"UNKNOWN";(d=b)||(d=g.ZB[this.quality],d===0?d="\u81ea\u52a8":(q=this.fps,T=this.projectionType,d=d.toString()+(T==="EQUIRECTANGULAR"||T==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||T==="MESH"?"s":"p")+(q>55?"60":q> 49?"50":q>39?"48":"")));this.qualityLabel=d;this.G=J||"";this.primaries=F||""}; pe=function(d,q){var T=Math.max(d,q);d=Math.min(d,q);q=ne[0];for(var Y=0;Y=Math.floor(U*16/9)*1.3||d>=U*1.3)return q;q=e}return"tiny"}; BH=function(d,q,T){T=T===void 0?{}:T;this.id=d;this.mimeType=q;T.Vv>0||(T.Vv=16E3);Object.assign(this,T);d=g.E(this.id.split(";"));this.itag=d.next().value;this.G=d.next().value;this.containerType=rP(q);this.Cf=tQ[this.itag]||""}; Ke=function(d){return d.Cf==="9"||d.Cf==="("||d.Cf==="9h"||d.Cf==="(h"}; Kr7=function(d){return d.Cf==="H"||d.Cf==="h"}; GL=function(d){return d.Cf==="9h"||d.Cf==="(h"}; GW7=function(d){return!!d.ac&&!!d.ac.fairplay&&(d.Cf==="("||d.Cf==="(h"||d.Cf==="A"||d.Cf==="MEAC3")||Le&&!!d.ac&&d.Cf==="1e"}; kV=function(d){return d.Cf==="1"||d.Cf==="1h"||Le&&d.Cf==="1e"}; PH=function(d){return d.Cf==="mac3"||d.Cf==="meac3"||d.Cf==="m"||d.Cf==="i"}; WH=function(d){return d.Cf==="MAC3"||d.Cf==="MEAC3"||d.Cf==="M"||d.Cf==="I"}; g.Ce=function(d){return d.containerType===1}; LrX=function(d){return d.Cf==="("||d.Cf==="(h"||d.Cf==="H"||Le&&d.Cf==="1e"}; uW=function(d){return d.mimeType==="application/x-mpegURL"}; g.DB=function(d,q){return{itag:+d.itag,lmt:q?0:d.lastModified,xtags:d.G||""}}; kWX=function(d){var q=navigator.mediaCapabilities;if(q==null||!q.decodingInfo||d.Cf==="f")return Promise.resolve();var T={type:d.audio&&d.video?"file":"media-source"};d.video&&(T.video={contentType:d.mimeType,width:d.video.width||640,height:d.video.height||360,bitrate:d.Vv*8||1E6,framerate:d.video.fps||30});d.audio&&(T.audio={contentType:d.mimeType,channels:""+(d.audio.numChannels||2),bitrate:d.Vv*8||128E3,samplerate:d.audio.sampleRate||44100});return q.decodingInfo(T).then(function(Y){d.U=Y})}; wP=function(d){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(d)}; zL=function(d){return/(vp9|vp09|vp8|avc1|av01)/.test(d)}; iW=function(d){return d.includes("vtt")||d.includes("text/mp4")}; rP=function(d){return d.indexOf("/mp4")>=0?1:d.indexOf("/webm")>=0?2:d.indexOf("/x-flv")>=0?3:d.indexOf("/vtt")>=0?4:0}; II=function(d,q,T,Y,e,U){var b=new AQ;q in g.ZB||(q="small");q==="light"&&(q="tiny");Y&&e?(e=Number(e),Y=Number(Y)):(e=g.ZB[q],Y=Math.round(e*16/9));U=new OJ(Y,e,0,null,void 0,q,U);d=unescape(d.replace(/"/g,'"'));return new BH(T,d,{audio:b,video:U})}; m1=function(d){var q="id="+d.id;d.video&&(q+=", res="+d.video.qualityLabel);var T,Y;return q+", byterate=("+((T=d.wx)==null?void 0:T.toFixed(0))+", "+((Y=d.Vv)==null?void 0:Y.toFixed(0))+")"}; S7=function(d,q){return{start:function(T){return d[T]}, end:function(T){return q[T]}, length:d.length}}; PEN=function(d,q,T){for(var Y=[],e=[],U=0;U=q)return T}catch(Y){}return-1}; oI=function(d,q){return vH(d,q)>=0}; Wr1=function(d,q){if(!d)return NaN;q=vH(d,q);return q>=0?d.start(q):NaN}; Vb=function(d,q){if(!d)return NaN;q=vH(d,q);return q>=0?d.end(q):NaN}; dC=function(d){return d&&d.length?d.end(d.length-1):NaN}; qF=function(d){return dC(d)>0}; T5=function(d,q){d=Vb(d,q);return d>=0?d-q:0}; Yx=function(d,q,T){for(var Y=[],e=[],U=0;UT||(Y.push(Math.max(q,d.start(U))-q),e.push(Math.min(T,d.end(U))-q));return S7(Y,e)}; e1=function(d,q,T,Y){g.YP.call(this);var e=this;this.KC=d;this.start=q;this.end=T;this.isActive=Y;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.Zj={error:function(){!e.JF()&&e.isActive&&e.publish("error",e)}, updateend:function(){!e.JF()&&e.isActive&&e.publish("updateend",e)}}; this.KC.Ts(this.Zj);this.DZ=this.isActive}; bN=function(d,q,T,Y,e,U){g.YP.call(this);var b=this;this.RN=d;this.Jk=q;this.id=T;this.containerType=Y;this.Cf=e;this.eh=U;this.pT=this.U2=this.Or=null;this.KR=!1;this.appendWindowStart=this.timestampOffset=0;this.QO=S7([],[]);this.Rv=!1;this.fm=[];this.Yr=UX?[]:void 0;this.CC=function(F){return b.publish(F.type,b)}; var J;if((J=this.RN)==null?0:J.addEventListener)this.RN.addEventListener("updateend",this.CC),this.RN.addEventListener("error",this.CC)}; XD=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Je=function(d,q){this.zG=d;this.G=q===void 0?!1:q;this.U=!1}; sX=function(d,q,T){T=T===void 0?!1:T;g.W.call(this);this.mediaElement=d;this.ED=q;this.isView=T;this.X=0;this.T=!1;this.S=!0;this.K=0;this.callback=null;this.B=!1;this.ED||(this.Jk=this.mediaElement.tA());this.events=new g.aI(this);g.C(this,this.events);this.j=new Je(this.ED?window.URL.createObjectURL(this.ED):this.Jk.webkitMediaSourceURL,!0);d=this.ED||this.Jk;Ed(this.events,d,["sourceopen","webkitsourceopen"],this.GX5);Ed(this.events,d,["sourceclose","webkitsourceclose"],this.PCx);this.L={updateend:this.tf}}; CEn=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; uAN=function(d,q){$x(d)?g.ML(function(){q(d)}):d.callback=q}; DPX=function(d,q,T){if(gC){var Y;FD(d.mediaElement,{l:"mswssb",sr:(Y=d.mediaElement.G2)==null?void 0:Y.Tz()},!1);q.Ts(d.L,d);T.Ts(d.L,d)}d.G=q;d.U=T;g.C(d,q);g.C(d,T)}; NF=function(d){return!!d.G||!!d.U}; $x=function(d){try{return Rp(d)==="open"}catch(q){return!1}}; Rp=function(d){if(d.ED)return d.ED.readyState;switch(d.Jk.webkitSourceState){case d.Jk.SOURCE_OPEN:return"open";case d.Jk.SOURCE_ENDED:return"ended";default:return"closed"}}; xx=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; wkN=function(d){$x(d)&&(d.ED?d.ED.endOfStream():d.Jk.webkitSourceEndOfStream(d.Jk.EOS_NO_ERROR))}; fyD=function(d,q,T,Y){if(!d.G||!d.U)return null;var e=d.G.isView()?d.G.KC:d.G,U=d.U.isView()?d.U.KC:d.U,b=new sX(d.mediaElement,d.ED,!0);b.j=d.j;DPX(b,new e1(e,q,T,Y),new e1(U,q,T,Y));$x(d)||d.G.Ii(d.G.mz());return b}; zsX=function(d){var q;(q=d.G)==null||q.zc();var T;(T=d.U)==null||T.zc();d.S=!1}; yQ=function(){var d=this;this.oA=this.MK=MDf;this.promise=new g.pK(function(q,T){d.MK=q;d.oA=T})}; he=function(){g.W.call(this);this.HH=!1;this.zG=null;this.L=this.X=!1;this.T=new g.$1;this.G2=null;g.C(this,this.T)}; Hl=function(d){d=d.kF();return d.length<1?NaN:d.end(d.length-1)}; iM_=function(d){!d.U&&CEn()&&(d.j?d.j.then(function(){return iM_(d)}):d.j0()||(d.U=d.Eg()))}; Iy6=function(d){d.U&&(d.U.dispose(),d.U=void 0)}; FD=function(d,q,T){var Y;((Y=d.G2)==null?0:Y.uF())&&d.G2.oU("rms",q,T===void 0?!1:T)}; mP2=function(d,q,T){d.isPaused()||d.getCurrentTime()>q||T>10||(d.play(),g.s3(function(){mP2(d,d.getCurrentTime(),T+1)},500))}; SxH=function(d,q){d.zG&&d.zG.equals(q)||(d.zG&&d.zG.dispose(),d.zG=q)}; QQ=function(d){return T5(d.g1(),d.getCurrentTime())}; ly2=function(d,q){if(d.Tr()===0||d.hasError())return!1;var T=d.getCurrentTime()>0;return q>=0&&(d=d.kF(),d.length||!T)?oI(d,q):T}; MF=function(d){d.j0()&&(d.G2&&d.G2.GT("rs_s"),uR&&d.getCurrentTime()>0&&d.seekTo(0),d.qZ(),d.load(),SxH(d,null));delete d.j}; cl=function(d){switch(d.nA()){case 2:return"progressive.net.retryexhausted";case 3:return d=d.P4(),(d==null?0:d.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||vPf&&(d==null?0:d.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.EX=function(d,q,T){this.eF=q===void 0?null:q;this.seekSource=T===void 0?null:T;this.state=d||64}; j1=function(d,q,T){T=T===void 0?!1:T;return oPf(d,q.getCurrentTime(),(0,g.cj)(),QQ(q),T)}; ap=function(d,q,T,Y){if(!(q===d.state&&T===d.eF&&Y===d.seekSource||q!==void 0&&(q&128&&!T||q&2&&q&16))){var e;if(e=q)e=q||d.state,e=!!(e&16||e&32);d=new g.EX(q,T,e?Y?Y:d.seekSource:null)}return d}; Ae=function(d,q,T){return ap(d,d.state|q,null,T===void 0?null:T)}; pk=function(d,q){return ap(d,d.state&~q,null,null)}; Z2=function(d,q,T,Y){return ap(d,(d.state|q)&~T,null,Y===void 0?null:Y)}; g.I=function(d,q){return!!(d.state&q)}; g.OX=function(d,q){return q.state===d.state&&q.eF===d.eF}; nk=function(d){return d.isPlaying()&&!g.I(d,16)&&!g.I(d,32)}; rC=function(d){return g.I(d,128)?-1:g.I(d,2)?0:g.I(d,2048)?3:g.I(d,64)?-1:g.I(d,1)&&!g.I(d,32)?3:g.I(d,8)?1:g.I(d,4)?2:-1}; Bl=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p){g.W.call(this);var t=this;this.ai=d;this.slot=q;this.layout=T;this.Hv=Y;this.iF=e;this.Xw=U;this.Yx=b;this.yU=J;this.hA=F;this.wr=N;this.position=x;this.X=y;this.T2=h;this.lI=H;this.Df=a;this.context=p;this.B4=!0;this.S=!1;this.WF="not_rendering";this.U=!1;this.j=new UJ;d=l7(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,d,T.layoutId);var n;d=((n=te(this))==null?void 0:n.progressCommands)||[];this.T=new vz_(F, d,T.layoutId,function(){return t.Bs()}); this.G=new ZMf({adCpn:this.layout.layoutId,cf:p.cf,uJ:this.lI,eh:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; Kk=function(d){return{layoutId:d.Z6(),jc:d.lI,kP:d.Xw.get(),KS:d.pz()}}; G5=function(d,q){return q.layoutId!==d.layout.layoutId?(d.ai.Cz(d.slot,q,new m5("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+d.layout.layoutId+("and LayoutType: "+d.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; Lk=function(d){d.WF="rendering_start_requested";d.wr(-1)}; te=function(d){return l7(d.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; Vx7=function(d){Jm("Received layout exit signal when not in layout exit flow.",d.slot,d.layout)}; dYn=function(d){var q;return((q=kx(d.Xw.get(),2))==null?void 0:q.clientPlaybackNonce)||""}; Pl=function(d,q){switch(q){case "normal":d.EM("complete");break;case "skipped":d.EM("skip");break;case "abandoned":E0(d.Dw,"impression")&&d.EM("abandon")}}; Wl=function(d,q){d.S||(q=new g.sP(q.state,new g.EX),d.S=!0);return q}; Ck=function(d,q){qI(q)?d.wr(1):g.gs(q,4)&&!g.gs(q,2)&&d.DB();$o(q,4)<0&&!($o(q,2)<0)&&d.x0()}; qPH=function(d){d.position===0&&(d.yU.get(),d=l7(d.layout.clientMetadata,"metadata_type_ad_placement_config").kind,d={adBreakType:uN(d)},pU("ad_bl"),g.ZO(d))}; D2=function(d,q){Mo(d.Dw,q,!d.U)}; YPn=function(d){var q;return(((q=te(d))==null?void 0:q.progressCommands)||[]).findIndex(function(T){return!!g.D(T==null?void 0:T.command,TsN)})!==-1}; wC=function(d,q){var T=l7(d.clientMetadata,"metadata_type_eligible_for_ssap");return T===void 0?(Jm("Expected SSAP eligibility in PlayerBytes factory",d),!1):q.pz(T)}; fk=function(d,q){if(!WA(q.get(),"html5_ssap_pass_transition_reason"))return 3;switch(d){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Jm("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Jm("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:d}),3;default:$S(d,"unknown layoutExitReason")}}; evN=function(d){Jm("getExitReason: unexpected reason",void 0,void 0,{reason:d})}; z5=function(d,q){if(WA(q.get(),"html5_ssap_pass_transition_reason"))switch(d){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return evN(d),"abandoned";case 3:case 1:return evN(d),"error";default:$S(d,"unexpected transition reason")}else switch(d){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Jm("getExitReason: unexpected reason",void 0,void 0,{reason:d}),"error";default:$S(d,"unexpected transition reason")}}; g.iN=function(d,q,T){nU(d,T)||tU(d,q,T);nU(d,"video_to_ad")||tU(d,q,"video_to_ad");nU(d,"ad_to_video")||tU(d,q,"ad_to_video");nU(d,"ad_to_ad")||tU(d,q,"ad_to_ad")}; Ip=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t){Bl.call(this,d,q,T,Y,e,U,b,J,N,R,x,y,h,H,a,p,t);var n=this;this.FC=F;this.Is=x;this.E9=!0;this.bj=this.MQ=0;this.Gk=BB(function(){jhn(Kk(n));n.ai.AA(n.slot,n.layout)}); this.e9=BB(function(){ayg(Kk(n));n.WF!=="rendering_stop_requested"&&n.Is(n);n.layoutExitReason?n.ai.i$(n.slot,n.layout,n.layoutExitReason):Vx7(n)}); this.timer=new g.KK(200);this.timer.listen("tick",function(){n.Yc()}); g.C(this,this.timer)}; S1=function(d){d.bj=Date.now();mi(d,d.MQ);d.timer.start()}; UY1=function(d){d.MQ=d.Bs();d.Xs(d.MQ/1E3,!0);mi(d,d.MQ)}; mi=function(d,q){q={current:q/1E3,duration:d.Bs()/1E3};d.FC.get().qd("onAdPlaybackProgress",q)}; lN=function(d){Ip.call(this,d.ai,d.slot,d.Y9,d.Hv,d.iF,d.Xw,d.Yx,d.yU,d.FC,d.hA,d.wr,d.Is,d.jU,d.Hy,d.T2,d.lI,d.Df,d.context)}; vl=function(d){Ip.call(this,d.ai,d.slot,d.Y9,d.Hv,d.iF,d.Xw,d.Yx,d.yU,d.FC,d.hA,d.wr,d.Is,d.jU,d.Hy,d.T2,d.lI,d.Df,d.context)}; op=function(){vl.apply(this,arguments)}; bGQ=function(d){return wC(d.slot,d.T2.get())?new op(d):new lN(d)}; qB=function(d){Bl.call(this,d.callback,d.slot,d.Y9,d.Hv,d.iF,d.Xw,d.Yx,d.yU,d.hA,d.wr,d.Is,d.jU,d.Hy,d.T2,d.lI,d.Df,d.context);var q=this;this.adCpn="";this.ER=this.aS=0;this.Gk=BB(function(){jhn(Kk(q));q.ai.AA(q.slot,q.layout)}); this.e9=BB(function(){ayg(Kk(q));q.WF!=="rendering_stop_requested"&&q.Is(q);q.layoutExitReason?q.ai.i$(q.slot,q.layout,q.layoutExitReason):Vx7(q)}); this.DY=d.DY;this.UF=d.UF;this.l$=d.l$;this.FC=d.FC;this.XW=d.XW;this.Is=d.Is;if(!this.pz()){WA(this.T2.get(),"html5_disable_media_load_timeout")||(this.UU=new g.f9(function(){q.He("load_timeout",new m5("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); d=VQ(this.T2.get());var T=dU(this.T2.get());d&&T&&(this.xM=new g.f9(function(){var Y=l7(q.layout.clientMetadata,"metadata_type_preload_player_vars");Y&&q.UF.get().J.preloadVideoByPlayerVars(Y,2,300)}))}}; Jm_=function(d,q){var T=l7(q.clientMetadata,"metadata_type_ad_video_id"),Y=l7(q.clientMetadata,"metadata_type_legacy_info_card_vast_extension");T&&Y&&d.XW.get().J.C().aU.add(T,{cQ:Y});(q=l7(q.clientMetadata,"metadata_type_sodar_extension_data"))&&s$2(d.DY.get(),q);XGD(d.Yx.get(),!1)}; suQ=function(d){XGD(d.Yx.get(),!0);var q;((q=d.shrunkenPlayerBytesConfig)==null?0:q.shouldRequestShrunkenPlayerBytes)&&d.Yx.get().Kt(!1)}; $Yf=function(d){return new Tu(d)}; YK=function(){qB.apply(this,arguments)}; Tu=function(){YK.apply(this,arguments)}; go1=function(d){return bGQ(Object.assign({},d,{ai:d.callback,wr:function(){}}))}; FVD=function(d){return new qB(Object.assign({},d,{wr:function(q){d.FC.get().qd("onAdIntroStateChange",q)}}))}; Ns7=function(d){function q(T){d.FC.get().r0(T)} return wC(d.slot,d.T2.get())?$Yf(Object.assign({},d,{wr:q})):new qB(Object.assign({},d,{wr:q}))}; ed=function(d){for(var q=d.Y9,T=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],Y=g.E(h8()),e=Y.next();!e.done;e=Y.next())T.push(e.value);if(Cw(q,{Pl:T,Dm:["LAYOUT_TYPE_MEDIA_BREAK"]}))return go1(d);q=d.Y9;T=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];Y=g.E(h8());for(e=Y.next();!e.done;e=Y.next())T.push(e.value);if(Cw(q,{Pl:T,Dm:["LAYOUT_TYPE_MEDIA"]}))return ze(d.Y9.clientMetadata,"metadata_type_ad_intro")?FVD(d):Ns7(d)}; xY7=function(d){var q=l7(d.clientMetadata,"metadata_type_ad_placement_config").kind,T=l7(d.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:d.layoutId,adType:Rvg(T),adBreakType:uN(q)}}; uN=function(d){switch(d){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; Rvg=function(d){switch(d){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; ymH=function(d){try{return new U_(d.Ov,d.slot,d.layout,d.bC,d.MU,d.Xw,d.Gq,d.UF,d.cF,d.Yx,d.t$2,d)}catch(q){}}; U_=function(d,q,T,Y,e,U,b,J,F,N,R,x){g.W.call(this);this.Ov=d;this.slot=q;this.layout=T;this.bC=Y;this.MU=e;this.Xw=U;this.Gq=b;this.UF=J;this.cF=F;this.Yx=N;this.params=x;this.B4=!0;d=ed(R);if(!d)throw Error("Invalid params for sublayout");this.NC=d}; hvI=function(){this.G=1;this.U=new UJ}; bu=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h){g.W.call(this);this.callback=d;this.Xw=q;this.Gq=T;this.UF=Y;this.Yx=e;this.ol=U;this.yU=b;this.bu=J;this.slot=F;this.layout=N;this.bC=R;this.nx=x;this.cF=y;this.T2=h;this.B4=!0;this.Oq=!1;this.gU=[];this.rS=-1;this.Vo=!1;this.I9=new hvI}; HGN=function(d){var q;return(q=d.layout.iV)!=null?q:l7(d.layout.clientMetadata,"metadata_type_sub_layouts")}; XF=function(d){return{kP:d.Xw.get(),jc:!1,KS:d.pz()}}; Quf=function(d,q,T){if(d.hp()===d.gU.length-1){var Y,e;Jm("Unexpected skip requested during the last sublayout",(Y=d.WA())==null?void 0:Y.Sv(),(e=d.WA())==null?void 0:e.e5(),{requestingSlot:q,requestingLayout:T})}}; MC7=function(d,q,T){return T.layoutId!==JP(d,q,T)?(Jm("onSkipRequested for a PlayerBytes layout that is not currently active",d.Sv(),d.e5()),!1):!0}; cm7=function(d){d.hp()===d.gU.length-1&&Jm("Unexpected skip with target requested during the last sublayout")}; EoH=function(d,q,T){return T.renderingContent===void 0&&T.layoutId!==JP(d,q,T)?(Jm("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.Sv(),d.e5(),{requestingSlot:q,requestingLayout:T}),!1):!0}; juj=function(d,q,T,Y){var e=l7(q.e5().clientMetadata,"metadata_type_ad_pod_skip_target");if(e&&e>0&&e0)){Jm("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",d.slot,d.layout,{indexToPlay:q,layoutId:d.layout.layoutId});break a}d.rS=q;q=d.WA();if(d.hp()>0&&!d.pz()){var T=d.yU.get();T.U=!1;var Y={};T.G&&T.videoId&&(Y.cttAuthInfo={token:T.G,videoId:T.videoId});OG("ad_to_ad",Y)}T=g.D(q.e5().renderingContent,o5);if(T==null?0: T.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var e;T=!((e=d.ol.get().Ns2.get(T.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&e)}else T=!1;T?s_(d,d.hp()+1):d.j2(q)}}; FF=function(d){bu.call(this,d.Ov,d.Xw,d.Gq,d.UF,d.Yx,d.ol,d.yU,d.bu,d.slot,d.layout,d.bC,d.nx,d.cF,d.T2)}; pGX=function(d){(d=d.WA())&&d.wD()}; NB=function(d){bu.call(this,d.Ov,d.Xw,d.Gq,d.UF,d.Yx,d.ol,d.yU,d.bu,d.slot,d.layout,d.bC,d.nx,d.cF,d.T2);this.I6=void 0}; ZGg=function(d,q){d.OI()&&!Xg(d.I9.U)||d.callback.i$(d.slot,d.layout,q)}; R0=function(d){return WA(d.T2.get(),"html5_ssap_pass_transition_reason")}; OG_=function(d,q,T){q.Ft().currentState<2&&(T=z5(T,d.T2),q.OF(q.e5(),T));T=q.Ft().G;d.nu(d.slot,q.e5(),T)}; noI=function(d,q){if(d.I9.U.currentState<2){var T=z5(q,d.T2);T==="error"?d.callback.Cz(d.slot,d.layout,new m5("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:q},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):gU(d.nx,d.layout,T)}}; xK=function(d,q,T){q.Ft().currentState>=2||(q.OF(q.e5(),T),Xg(q.Ft())&&(Qz(d.bu,d.slot,q.e5(),T),d.I6=void 0))}; rmn=function(d,q){d.I9.G===2&&q!==d.dc()&&Jm("onClipEntered: unknown cpn",d.slot,d.layout,{cpn:q})}; tC1=function(d,q){var T=d.WA();if(T){var Y=T.e5().layoutId,e=d.hp()+1;d.OI()?xK(d,T,q):T.OF(T.e5(),q);e>=0&&ee&&b.Jh(R,e-Y);return R}; u$I=function(d,q,T){var Y=l7(q.clientMetadata,"metadata_type_sodar_extension_data");if(Y)try{s$2(T,Y)}catch(e){Jm("Unexpected error when loading Sodar",d,q,{error:e})}}; DYI=function(d,q,T,Y,e,U,b){E_(d,q,new g.sP(T,new g.EX),Y,e,b,!1,U)}; E_=function(d,q,T,Y,e,U,b,J){b=b===void 0?!0:b;qI(T)&&TL(e,0,null)&&(!E0(d,"impression")&&J&&J(),d.EM("impression"));E0(d,"impression")&&(g.gs(T,4)&&!g.gs(T,2)&&d.Wr("pause"),$o(T,4)<0&&!($o(T,2)<0)&&d.Wr("resume"),g.gs(T,16)&&e>=.5&&d.Wr("seek"),b&&g.gs(T,2)&&jd(d,T.state,q,Y,e,U))}; jd=function(d,q,T,Y,e,U,b,J,F){E0(d,"impression")&&(U?(U=e-Y,U=U>=-1&&U<=2):U=Math.abs(Y-e)<=1,a0(d,q,U?Y:e,T,Y,b,J&&U),U&&!F&&d.EM("complete"))}; a0=function(d,q,T,Y,e,U,b){cp(d,T*1E3,b);e<=0||T<=0||(q==null?0:g.I(q,16))||(q==null?0:g.I(q,32))||(TL(T,e*.25,Y)&&(U&&!E0(d,"first_quartile")&&U("first"),d.EM("first_quartile")),TL(T,e*.5,Y)&&(U&&!E0(d,"midpoint")&&U("second"),d.EM("midpoint")),TL(T,e*.75,Y)&&(U&&!E0(d,"third_quartile")&&U("third"),d.EM("third_quartile")))}; wGX=function(d,q){E0(d,"impression")&&d.Wr(q?"fullscreen":"end_fullscreen")}; f0n=function(d){E0(d,"impression")&&d.Wr("clickthrough")}; zv2=function(d){d.Wr("active_view_measurable")}; iGf=function(d){E0(d,"impression")&&!E0(d,"seek")&&d.Wr("active_view_fully_viewable_audible_half_duration")}; I0D=function(d){E0(d,"impression")&&!E0(d,"seek")&&d.Wr("active_view_viewable")}; mY6=function(d){E0(d,"impression")&&!E0(d,"seek")&&d.Wr("audio_audible")}; SPn=function(d){E0(d,"impression")&&!E0(d,"seek")&&d.Wr("audio_measurable")}; l01=function(d,q,T,Y,e,U,b,J,F,N,R,x,y){this.callback=d;this.slot=q;this.layout=T;this.Gq=Y;this.Dw=e;this.Yx=U;this.UQ=b;this.iF=J;this.DY=F;this.T2=N;this.Hv=R;this.Xw=x;this.l$=y;this.E9=!0;this.HG=this.WF=null;this.adCpn=void 0;this.G=!1}; vof=function(d,q,T){var Y;cn(d.Hv.get(),"ads_qua","cpn."+l7(d.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Y=kx(d.Xw.get(),2))==null?void 0:Y.clientPlaybackNonce)+";qt."+q+";clr."+T)}; oo_=function(d,q){var T,Y;cn(d.Hv.get(),"ads_imp","cpn."+l7(d.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((T=kx(d.Xw.get(),2))==null?void 0:T.clientPlaybackNonce)+";clr."+q+";skp."+!!g.D((Y=l7(d.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:Y.skipOrPreviewRenderer,AP))}; pd=function(d){return{enterMs:l7(d.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:l7(d.clientMetadata,"metadata_type_layout_exit_ms")}}; ZD=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h){hP.call(this,d,q,T,Y,e,b,J,F,N,x);this.UQ=U;this.DY=R;this.iF=y;this.T2=h;this.HG=this.WF=null}; VC2=function(d,q){var T;cn(d.Hv.get(),"ads_imp","acpn."+((T=kx(d.Xw.get(),2))==null?void 0:T.clientPlaybackNonce)+";clr."+q)}; d3f=function(d,q,T){var Y;cn(d.Hv.get(),"ads_qua","cpn."+l7(d.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Y=kx(d.Xw.get(),2))==null?void 0:Y.clientPlaybackNonce)+";qt."+q+";clr."+T)}; O_=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t,n,K,P,w){this.cF=d;this.bC=q;this.nx=T;this.Xw=Y;this.Gq=e;this.Yx=U;this.ol=b;this.Hv=J;this.UQ=F;this.eT=N;this.iF=R;this.DY=x;this.UF=y;this.l$=h;this.yU=H;this.FC=a;this.hA=p;this.XW=t;this.T2=n;this.G=K;this.context=P;this.Df=w}; nd=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t,n){this.cF=d;this.bC=q;this.nx=T;this.Hv=Y;this.iF=e;this.DY=U;this.UF=b;this.Xw=J;this.Yx=F;this.ol=N;this.l$=R;this.yU=x;this.FC=y;this.hA=h;this.XW=H;this.T2=a;this.Gq=p;this.context=t;this.Df=n}; qGD=function(d,q,T,Y){TW.call(this,"survey-interstitial",d,q,T,Y)}; rU=function(d,q,T,Y,e){J8.call(this,T,d,q,Y);this.Hv=e;d=l7(q.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(q.GG,e,d,q.layoutId)}; tP=function(d){return Math.round(d.width)+"x"+Math.round(d.height)}; Kd=function(d,q,T){T=T===void 0?Bn:T;T.widthd.width*d.height*.2)return{gY:3,Ej:501,errorMessage:"ad("+tP(T)+") to container("+tP(d)+") ratio exceeds limit."};if(T.height>d.height/3-q)return{gY:3,Ej:501,errorMessage:"ad("+tP(T)+") covers container("+tP(d)+") center."}}; TcY=function(d,q){var T=l7(d.clientMetadata,"metadata_type_ad_placement_config");return new yT(d.GG,q,T,d.layoutId)}; Gu=function(d){return l7(d.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; Ld=function(d,q,T,Y){TW.call(this,"invideo-overlay",d,q,T,Y);this.interactionLoggingClientData=Y}; kK=function(d,q,T,Y,e,U,b,J,F,N,R,x){J8.call(this,U,d,q,e);this.Hv=T;this.T=b;this.Yx=J;this.hA=F;this.T2=N;this.X=R;this.S=x;this.Dw=TcY(q,T)}; YG2=function(){var d=["metadata_type_invideo_overlay_ad_renderer"];h8().forEach(function(q){d.push(q)}); return{Pl:d,Dm:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; Pn=function(d,q,T,Y,e,U,b,J,F,N,R,x,y){J8.call(this,U,d,q,e);this.Hv=T;this.T=b;this.B=J;this.Yx=F;this.hA=N;this.T2=R;this.X=x;this.S=y;this.Dw=TcY(q,T)}; eUD=function(){for(var d=["metadata_type_invideo_overlay_ad_renderer"],q=g.E(h8()),T=q.next();!T.done;T=q.next())d.push(T.value);return{Pl:d,Dm:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; Wn=function(d){this.Yx=d;this.G=!1}; U3N=function(d,q,T){TW.call(this,"survey",d,{},q,T)}; Cd=function(d,q,T,Y,e,U,b){J8.call(this,T,d,q,Y);this.T=e;this.Yx=U;this.T2=b}; bUD=function(d,q,T,Y,e,U,b,J,F,N){this.kB=d;this.Yx=q;this.Hv=T;this.T=Y;this.iF=e;this.U=U;this.j=b;this.hA=J;this.T2=F;this.G=N}; XmN=function(d,q,T,Y,e,U,b,J,F,N){this.kB=d;this.Yx=q;this.Hv=T;this.T=Y;this.iF=e;this.U=U;this.j=b;this.hA=J;this.T2=F;this.G=N}; uu=function(d,q,T,Y,e,U,b,J,F,N){iO.call(this,d,q,T,Y,e,U,b,F);this.uV=J;this.Xw=N}; JUn=function(){var d=Rs_();d.Pl.push("metadata_type_ad_info_ad_metadata");return d}; saY=function(d,q,T,Y,e,U,b){this.kB=d;this.Yx=q;this.Hv=T;this.U=Y;this.uV=e;this.G=U;this.Xw=b}; $3_=function(d,q,T,Y,e,U,b,J){this.kB=d;this.Yx=q;this.Hv=T;this.U=Y;this.uV=e;this.G=U;this.T2=b;this.Xw=J}; DD=function(d,q){this.slotId=q;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=d(this.triggerType)}; wU=function(d,q){this.adPodIndex=d;this.G=q.length;this.adBreakLengthSeconds=q.reduce(function(Y,e){return Y+e},0); var T=0;for(d+=1;d0}; BY=function(d){return!!(d.r6&&d.slot&&d.layout)}; KS=function(d){var q,T=(q=d.config)==null?void 0:q.adPlacementConfig;d=d.renderer;return!(!T||T.kind==null||!d)}; AU2=function(d){if(!AR(d.adLayoutMetadata))return!1;d=d.renderingContent;return g.D(d,o5)||g.D(d,VT)||g.D(d,aOX)||g.D(d,lO)||g.D(d,vp)?!0:!1}; G8=function(d){return d.playerVars!==void 0&&d.pings!==void 0&&d.externalVideoId!==void 0}; DJ=function(d){if(!AR(d.adLayoutMetadata))return!1;d=d.renderingContent;var q=g.D(d,LS);return q?kb(q):(q=g.D(d,PY))?G8(q):(q=g.D(d,WY))?q.playerVars!==void 0:(q=g.D(d,o5))?q.durationMilliseconds!==void 0:g.D(d,CS)||g.D(d,uV)?!0:!1}; kb=function(d){d=(d.sequentialLayouts||[]).map(function(q){return g.D(q,wG)}); return d.length>0&&d.every(DJ)}; z8=function(d){return AR(d.adLayoutMetadata)?(d=g.D(d.renderingContent,fS))&&d.pings?!0:!1:!1}; tlX=function(d){if(!AR(d.adLayoutMetadata))return!1;if(g.D(d.renderingContent,pm1)||g.D(d.renderingContent,ZUI))return!0;var q=g.D(d.renderingContent,iV);return g.D(d.renderingContent,IF)||g.D(q==null?void 0:q.sidePanel,OU1)||g.D(q==null?void 0:q.sidePanel,nhD)||g.D(q==null?void 0:q.sidePanel,rU_)?!0:!1}; kYf=function(d){var q;(q=!d)||(q=d.adSlotMetadata,q=!((q==null?void 0:q.slotId)!==void 0&&(q==null?void 0:q.slotType)!==void 0));if(q||!(BcX(d)||d.slotEntryTrigger&&d.slotFulfillmentTriggers&&d.slotExpirationTriggers))return!1;var T;d=(T=d.fulfillmentContent)==null?void 0:T.fulfilledLayout;return(T=g.D(d,wG))?DJ(T):(T=g.D(d,mu))?tlX(T):(T=g.D(d,KM6))?AU2(T):(T=g.D(d,GYX))?Ehn(T):(T=g.D(d,LM6))?AR(T.adLayoutMetadata)?g.D(T.renderingContent,pS)?!0:!1:!1:(d=g.D(d,S5))?z8(d):!1}; BcX=function(d){var q;d=g.D((q=d.fulfillmentContent)==null?void 0:q.fulfilledLayout,mu);var T;return d&&((T=d.adLayoutMetadata)==null?void 0:T.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&d.layoutExitNormalTriggers===void 0}; P9D=function(d){var q;return(d==null?void 0:(q=d.adSlotMetadata)==null?void 0:q.slotType)==="SLOT_TYPE_IN_PLAYER"}; C9_=function(d,q){var T;if((T=d.questions)==null||!T.length||!d.playbackCommands||(q===void 0||!q)&&d.questions.length!==1)return!1;d=g.E(d.questions);for(q=d.next();!q.done;q=d.next()){q=q.value;var Y=T=void 0,e=((T=g.D(q,lV))==null?void 0:T.surveyAdQuestionCommon)||((Y=g.D(q,vY))==null?void 0:Y.surveyAdQuestionCommon);if(!WMg(e))return!1}return!0}; uKY=function(d){d=((d==null?void 0:d.playerOverlay)||{}).instreamSurveyAdRenderer;var q;if(d)if(d.playbackCommands&&d.questions&&d.questions.length===1){var T,Y=((q=g.D(d.questions[0],lV))==null?void 0:q.surveyAdQuestionCommon)||((T=g.D(d.questions[0],vY))==null?void 0:T.surveyAdQuestionCommon);q=WMg(Y)}else q=!1;else q=!1;return q}; WMg=function(d){if(!d)return!1;d=g.D(d.instreamAdPlayerOverlay,oF);var q=g.D(d==null?void 0:d.skipOrPreviewRenderer,AP),T=g.D(d==null?void 0:d.adInfoRenderer,VP);return(g.D(d==null?void 0:d.skipOrPreviewRenderer,dN)||q)&&T?!0:!1}; D3X=function(d){return d.linearAds!=null&&AR(d.adLayoutMetadata)}; wmI=function(d){return d.linearAd!=null&&d.adVideoStart!=null}; fO2=function(d){if(isNaN(Number(d.timeoutSeconds))||!d.text||!d.ctaButton||!g.D(d.ctaButton,g.q6)||!d.brandImage)return!1;var q;return d.backgroundImage&&g.D(d.backgroundImage,Tb)&&((q=g.D(d.backgroundImage,Tb))==null?0:q.landscape)?!0:!1}; Yq=function(d,q,T,Y,e,U,b,J){g.W.call(this);this.T2=d;this.G=q;this.U=Y;this.Xw=e;this.T=U;this.j=b;this.UF=J}; IO6=function(d,q,T){var Y,e=((Y=T.adSlots)!=null?Y:[]).map(function(J){return g.D(J,ei)}); if(T.xr)if(l7(q.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))eP(d.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId); else{if(d.T2.get().J.C().N("h5_check_forecasting_renderer_for_throttled_midroll")){var U=T.CL.filter(function(J){var F;return((F=J.renderer)==null?void 0:F.clientForecastingAdRenderer)!=null}); U.length!==0?zU1(d.j,U,e,q.slotId,T.ssdaiAdsConfig):eP(d.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId)}else eP(d.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId); iUN(d.T,q)}else{var b;Y={vW:Math.round(((U=l7(q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:U.vW)||0),RW:(b=l7(q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:b.RW};U=l7(q.clientMetadata,"metadata_type_cue_point");zU1(d.j,T.CL,e,q.slotId,T.ssdaiAdsConfig,Y,U)}}; lOn=function(d,q,T,Y,e,U,b,J){var F=kx(d.Xw.get(),1);if(m36(d.T2.get())){var N=U7(d.U.get(),T,Y,e,F.clientPlaybackNonce,F.O6,F.daiEnabled,F,U,b);SGX(d,N);eP(d.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return N},q)}else eP(d.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return U7(d.U.get(),T,Y,e,F.clientPlaybackNonce,F.O6,F.daiEnabled,F,U,b,J)},q)}; SGX=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next()){var Y=T.value;if(Y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Y.fulfilledLayout)if(T=void 0,Y.fulfilledLayout.renderingContent)T=l7(Y.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(Y.fulfilledLayout.iV){Y=g.E(Y.fulfilledLayout.iV);for(var e=Y.next();!e.done&&(e=e.value,!e.renderingContent||!(T=l7(e.clientMetadata,"metadata_type_player_vars")));e=Y.next());}}else T=void 0;if(T){d.UF.get().J.preloadVideoByPlayerVars(T, 2,300);break}}}; oh7=function(d,q,T,Y,e,U,b){q=vh7(q,U,Number(Y.prefetchMilliseconds)||0,b);d=q instanceof S?q:bv(d,Y,e,q,T);return d instanceof S?d:[d]}; VlD=function(d,q,T,Y,e){var U=U0(d.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");Y=[new Z3({getAdBreakUrl:Y.getAdBreakUrl,vW:0,RW:0}),new D3(!0)];d=q.pauseDurationMs?q.lactThresholdMs?{slotId:U,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Nm(d.G,U),slotFulfillmentTriggers:[new FM6(d.G)],slotExpirationTriggers:[new bV(d.G,e),new $b(d.G,U)],nf:"core",clientMetadata:new St(Y),adSlotLoggingData:T}:new S("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new S("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return d instanceof S?d:[d]}; dtX=function(d){var q,T;return((q=d.renderer)==null?void 0:(T=q.adBreakServiceRenderer)==null?void 0:T.getAdBreakUrl)!==void 0}; XC=function(d,q,T){if(d.beforeContentVideoIdStartedTrigger)d=d.beforeContentVideoIdStartedTrigger?new fd(IV,q,d.id):new S("Not able to create BeforeContentVideoIdStartedTrigger");else{if(d.layoutIdExitedTrigger){var Y;q=(Y=d.layoutIdExitedTrigger)!=null&&Y.triggeringLayoutId?new lu(IV,d.layoutIdExitedTrigger.triggeringLayoutId,d.id):new S("Not able to create LayoutIdExitedTrigger")}else{if(d.layoutExitedForReasonTrigger){var e,U;((e=d.layoutExitedForReasonTrigger)==null?0:e.triggeringLayoutId)&&((U= d.layoutExitedForReasonTrigger)==null?0:U.layoutExitReason)?(q=Ncn(d.layoutExitedForReasonTrigger.layoutExitReason),d=q instanceof S?q:new Sd(IV,d.layoutExitedForReasonTrigger.triggeringLayoutId,[q],d.id)):d=new S("Not able to create LayoutIdExitedForReasonTrigger")}else{if(d.onLayoutSelfExitRequestedTrigger){var b;q=(b=d.onLayoutSelfExitRequestedTrigger)!=null&&b.triggeringLayoutId?new UO(IV,d.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,d.id):new S("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(d.onNewPlaybackAfterContentVideoIdTrigger)d= d.onNewPlaybackAfterContentVideoIdTrigger?new bV(IV,q,d.id):new S("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(d.skipRequestedTrigger){var J;q=(J=d.skipRequestedTrigger)!=null&&J.triggeringLayoutId?new JR(IV,d.skipRequestedTrigger.triggeringLayoutId,d.id):new S("Not able to create SkipRequestedTrigger")}else if(d.slotIdEnteredTrigger){var F;q=(F=d.slotIdEnteredTrigger)!=null&&F.triggeringSlotId?new sO(IV,d.slotIdEnteredTrigger.triggeringSlotId,d.id):new S("Not able to create SlotIdEnteredTrigger")}else if(d.slotIdExitedTrigger){var N; q=(N=d.slotIdExitedTrigger)!=null&&N.triggeringSlotId?new $b(IV,d.slotIdExitedTrigger.triggeringSlotId,d.id):new S("Not able to create SkipRequestedTrigger")}else if(d.surveySubmittedTrigger){var R;q=(R=d.surveySubmittedTrigger)!=null&&R.triggeringLayoutId?new EO(IV,d.surveySubmittedTrigger.triggeringLayoutId,d.id):new S("Not able to create SurveySubmittedTrigger")}else{if(d.mediaResumedTrigger)d=d.mediaResumedTrigger&&d.id?new RUY(d.id):new S("Not able to create MediaResumedTrigger");else{if(d.closeRequestedTrigger){var x; q=(x=d.closeRequestedTrigger)!=null&&x.triggeringLayoutId?new zu(IV,d.closeRequestedTrigger.triggeringLayoutId,d.id):new S("Not able to create CloseRequestedTrigger")}else if(d.slotIdScheduledTrigger){var y;q=(y=d.slotIdScheduledTrigger)!=null&&y.triggeringSlotId?new Nm(IV,d.slotIdScheduledTrigger.triggeringSlotId,d.id):new S("Not able to create SlotIdScheduledTrigger")}else{if(d.mediaTimeRangeTrigger){var h;Y=Number((h=d.mediaTimeRangeTrigger)==null?void 0:h.offsetStartMilliseconds);var H;b=Number((H= d.mediaTimeRangeTrigger)==null?void 0:H.offsetEndMilliseconds);isFinite(Y)&&isFinite(b)?(H=b,H===-1&&(H=T),T=Y>H?new S("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:Y,offsetEndMs:H},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",H===T&&Y-500<=H):new hx(Y,H),d=T instanceof S?T:new qm(IV,q,T,!1,d.id)):d=new S("Not able to create MediaTimeRangeTrigger")}else if(d.contentVideoIdEndedTrigger)d=d.contentVideoIdEndedTrigger?new iu(IV,q,!1,d.id):new S("Not able to create ContentVideoIdEndedTrigger"); else{if(d.layoutIdEnteredTrigger){var a;q=(a=d.layoutIdEnteredTrigger)!=null&&a.triggeringLayoutId?new ml(IV,d.layoutIdEnteredTrigger.triggeringLayoutId,d.id):new S("Not able to create LayoutIdEnteredTrigger")}else if(d.timeRelativeToLayoutEnterTrigger){var p;q=(p=d.timeRelativeToLayoutEnterTrigger)!=null&&p.triggeringLayoutId?new j5(IV,Number(d.timeRelativeToLayoutEnterTrigger.durationMs),d.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,d.id):new S("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(d.onDifferentLayoutIdEnteredTrigger){var t; q=(t=d.onDifferentLayoutIdEnteredTrigger)!=null&&t.triggeringLayoutId&&d.onDifferentLayoutIdEnteredTrigger.slotType&&d.onDifferentLayoutIdEnteredTrigger.layoutType?new Yb(IV,d.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,d.onDifferentLayoutIdEnteredTrigger.slotType,d.onDifferentLayoutIdEnteredTrigger.layoutType,d.id):new S("Not able to create CloseRequestedTrigger")}else{if(d.liveStreamBreakStartedTrigger)d=d.liveStreamBreakStartedTrigger&&d.id?new dG(IV,d.id):new S("Not able to create LiveStreamBreakStartedTrigger"); else if(d.liveStreamBreakEndedTrigger)d=d.liveStreamBreakEndedTrigger&&d.id?new vn(IV,d.id):new S("Not able to create LiveStreamBreakEndedTrigger");else{if(d.liveStreamBreakScheduledDurationMatchedTrigger){var n;q=(n=d.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&n.breakDurationMs?new o0(Number(d.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,d.id):new S("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(d.liveStreamBreakScheduledDurationNotMatchedTrigger){var K; q=(K=d.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&K.breakDurationMs?new Vj(Number(d.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,d.id):new S("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(d.newSlotScheduledWithBreakDurationTrigger){var P;q=(P=d.newSlotScheduledWithBreakDurationTrigger)!=null&&P.breakDurationMs?new T8(Number(d.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,d.id):new S("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else q= d.prefetchCacheExpiredTrigger?new XY(IV,d.id):new S("Not able to convert an AdsControlflowTrigger.");d=q}q=d}d=q}q=d}d=q}q=d}d=q}q=d}d=q}q=d}d=q}return d}; JC=function(d,q){q.G>=2&&(d.slot_pos=q.adPodIndex);d.autoplay="1"}; T5f=function(d,q,T,Y,e,U,b,J){return q===null?new S("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:q,ActionCompanionAdRenderer:Y}):[qvQ(d,q,b,U,function(F){var N=F.slotId;F=J(F);var R=Y.adLayoutLoggingData,x=new St([new On(Y),new ua(e)]);N=Cu(T.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",N);var y={layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",nf:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",GG:new Map, layoutExitNormalTriggers:[new bV(T.G,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:x,HF:F(y),adLayoutLoggingData:R}})]}; YvN=function(d,q,T,Y,e,U,b,J){return q===null?new S("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:q,TopBannerImageTextIconButtonedLayoutViewModel:Y}):[qvQ(d,q,b,U,function(F){var N=F.slotId;F=J(F);var R=Y.adLayoutLoggingData,x=new St([new n3(Y),new ua(e)]);N=Cu(T.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",N);var y={layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",nf:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", GG:new Map,layoutExitNormalTriggers:[new bV(T.G,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:x,HF:F(y),adLayoutLoggingData:R}})]}; X6n=function(d,q,T,Y,e,U){if(!U)for(q=g.E(q),U=q.next();!U.done;U=q.next())U=U.value,s7(d,U.renderer,U.config.adPlacementConfig.kind);d=Array.from(d.values()).filter(function(R){return epg(R)}); q=[];U=g.E(d);for(var b=U.next(),J={};!b.done;J={iX:void 0},b=U.next()){J.iX=b.value;b=g.E(J.iX.BU);for(var F=b.next(),N={};!F.done;N={dK:void 0},F=b.next())N.dK=F.value,F=function(R,x){return function(y){return R.dK.Wz(y,x.iX.instreamVideoAdRenderer.elementId,R.dK.WU)}}(N,J),N.dK.isContentVideoCompanion?q.push(Utn(T,Y,e,J.iX.instreamVideoAdRenderer.elementId,N.dK.associatedCompositePlayerBytesLayoutId,N.dK.adSlotLoggingData,F)):d.length>1?q.push(bo1(T,Y,e,J.iX.instreamVideoAdRenderer.elementId,N.dK.adSlotLoggingData, function(R,x){return function(y){return R.dK.Wz(y,x.iX.instreamVideoAdRenderer.elementId,R.dK.WU,R.dK.associatedCompositePlayerBytesLayoutId)}}(N,J))):q.push(bo1(T,Y,e,J.iX.instreamVideoAdRenderer.elementId,N.dK.adSlotLoggingData,F))}return q}; s7=function(d,q,T){if(q=JV6(q)){q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next())if((Y=Y.value)&&Y.externalVideoId){var e=$q(d,Y.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=Y,e.BS=T)}else Jm("InstreamVideoAdRenderer without externalVideoId")}}; JV6=function(d){var q=[],T=d.sandwichedLinearAdRenderer&&d.sandwichedLinearAdRenderer.linearAd&&g.D(d.sandwichedLinearAdRenderer.linearAd,PY);if(T)return q.push(T),q;if(d.instreamVideoAdRenderer)return q.push(d.instreamVideoAdRenderer),q;if(d.linearAdSequenceRenderer&&d.linearAdSequenceRenderer.linearAds){d=g.E(d.linearAdSequenceRenderer.linearAds);for(T=d.next();!T.done;T=d.next())T=T.value,g.D(T,PY)&&q.push(g.D(T,PY));return q}return null}; epg=function(d){if(d.instreamVideoAdRenderer===void 0)return Jm("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var q=g.E(d.BU),T=q.next();!T.done;T=q.next()){T=T.value;if(T.Wz===void 0)return!1;if(T.WU===void 0)return Jm("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(d.BS===void 0||T.JY===void 0||d.BS!==T.JY&&T.JY!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(d.instreamVideoAdRenderer.elementId===void 0)return Jm("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:d.BS,"matching APSR kind":T.JY}),!1}return!0}; $q=function(d,q){d.has(q)||d.set(q,{instreamVideoAdRenderer:void 0,BS:void 0,adVideoId:q,BU:[]});return d.get(q)}; gN=function(d,q,T,Y,e,U,b,J,F){e?$q(d,e).BU.push({XO2:q,JY:T,isContentVideoCompanion:Y,WU:b,associatedCompositePlayerBytesLayoutId:U,adSlotLoggingData:J,Wz:F}):Jm("Companion AdPlacementSupportedRenderer without adVideoId")}; FC=function(d){var q=0;d=g.E(d.questions);for(var T=d.next();!T.done;T=d.next())if(T=T.value,T=g.D(T,lV)||g.D(T,vY)){var Y=void 0;q+=((Y=T.surveyAdQuestionCommon)==null?void 0:Y.durationMilliseconds)||0}return q}; N6=function(d){var q,T,Y,e,U=((T=g.D((q=d.questions)==null?void 0:q[0],lV))==null?void 0:T.surveyAdQuestionCommon)||((e=g.D((Y=d.questions)==null?void 0:Y[0],vY))==null?void 0:e.surveyAdQuestionCommon),b;q=[].concat(g.RQ(((b=d.playbackCommands)==null?void 0:b.instreamAdCompleteCommands)||[]),g.RQ((U==null?void 0:U.timeoutCommands)||[]));var J,F,N,R,x,y,h,H,a,p,t,n,K,P,w,l,m,b_,x2,JY;return{impressionCommands:(J=d.playbackCommands)==null?void 0:J.impressionCommands,errorCommands:(F=d.playbackCommands)== null?void 0:F.errorCommands,muteCommands:(N=d.playbackCommands)==null?void 0:N.muteCommands,unmuteCommands:(R=d.playbackCommands)==null?void 0:R.unmuteCommands,pauseCommands:(x=d.playbackCommands)==null?void 0:x.pauseCommands,rewindCommands:(y=d.playbackCommands)==null?void 0:y.rewindCommands,resumeCommands:(h=d.playbackCommands)==null?void 0:h.resumeCommands,skipCommands:(H=d.playbackCommands)==null?void 0:H.skipCommands,progressCommands:(a=d.playbackCommands)==null?void 0:a.progressCommands,A85:(p= d.playbackCommands)==null?void 0:p.clickthroughCommands,fullscreenCommands:(t=d.playbackCommands)==null?void 0:t.fullscreenCommands,activeViewViewableCommands:(n=d.playbackCommands)==null?void 0:n.activeViewViewableCommands,activeViewMeasurableCommands:(K=d.playbackCommands)==null?void 0:K.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(P=d.playbackCommands)==null?void 0:P.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(w=d.playbackCommands)== null?void 0:(l=w.activeViewTracking)==null?void 0:l.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(m=d.playbackCommands)==null?void 0:(b_=m.activeViewTracking)==null?void 0:b_.activeViewAudioMeasurableCommands,endFullscreenCommands:(x2=d.playbackCommands)==null?void 0:x2.endFullscreenCommands,abandonCommands:(JY=d.playbackCommands)==null?void 0:JY.abandonCommands,completeCommands:q}}; $tn=function(d,q,T,Y,e,U,b){return function(J,F){return seX(d,F.slotId,J,U,function(N,R){var x=F.layoutId;N=b(N);return Rx(q,x,R,e,N,"LAYOUT_TYPE_SURVEY",[new Yg(T),Y],T.adLayoutLoggingData)})}}; N5Q=function(d,q,T,Y,e,U,b){if(!gXD(d))return new S("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:d});var J=d.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[FPg(U,q,T,Y,function(F){var N=F.slotId;F=b(F);N=Cu(e.U.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",N);var R={layoutId:N,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",nf:"core"},x=new lu(e.G,Y);return{layoutId:N,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",GG:new Map,layoutExitNormalTriggers:[x], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([new et(J)]),HF:F(R)}})]}; gXD=function(d){d=g.D(d==null?void 0:d.additionalPlayerOverlay,RpD);if(!d)return!1;var q=d.slidingMessages;return d.title&&q&&q.length!==0?!0:!1}; yVN=function(d,q,T,Y,e){var U;if((U=d.playerOverlay)==null||!U.instreamSurveyAdRenderer)return function(){return[]}; if(!uKY(d))return function(){return new S("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:d})}; var b=d.playerOverlay.instreamSurveyAdRenderer,J=FC(b);return J<=0?function(){return new S("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:b})}:function(F,N){var R=xtn(F,T,Y,function(x){var y=x.slotId; x=N(x);var h=N6(b);y=Cu(e.U.get(),"LAYOUT_TYPE_SURVEY",y);var H={layoutId:y,layoutType:"LAYOUT_TYPE_SURVEY",nf:"core"},a=new lu(e.G,Y),p=new JR(e.G,y),t=new EO(e.G,y),n=new HUY(e.G);return{layoutId:y,layoutType:"LAYOUT_TYPE_SURVEY",GG:new Map,layoutExitNormalTriggers:[a,n],layoutExitSkipTriggers:[p],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[t],J1:[],nf:"core",clientMetadata:new St([new Te(b),new ua(q),new rJ(J/1E3),new Ge(h)]),HF:x(H),adLayoutLoggingData:b.adLayoutLoggingData}}); F=N5Q(d,T,R.slotId,Y,e,F,N);return F instanceof S?F:[R].concat(g.RQ(F))}}; je_=function(d,q,T,Y,e,U,b){b=b===void 0?!1:b;var J=[];try{var F=[];if(T.renderer.linearAdSequenceRenderer)var N=function(a){a=hpj(a.slotId,T,q,e(a),Y,U,b);F=a.IhZ;return a.Dr}; else if(T.renderer.instreamVideoAdRenderer)N=function(a){var p=a.slotId;a=e(a);var t=b,n=T.config.adPlacementConfig,K=Hoj(n),P=K.A7,w=K.Z4;K=T.renderer.instreamVideoAdRenderer;var l;if(K==null?0:(l=K.playerOverlay)==null?0:l.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var m=xq(K,t);l=Math.min(P+m.videoLengthSeconds*1E3,w);t=new wU(0,[m.videoLengthSeconds]);w=m.videoLengthSeconds;var b_=m.playerVars,x2=m.instreamAdPlayerOverlayRenderer,JY=m.playerOverlayLayoutRenderer, s6=m.adVideoId,qH=QeH(T),O6=m.GG;m=m.jE;var SD=K==null?void 0:K.adLayoutLoggingData;K=K==null?void 0:K.sodarExtensionData;p=Cu(q.U.get(),"LAYOUT_TYPE_MEDIA",p);var dL={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",nf:"core"};return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",GG:O6,layoutExitNormalTriggers:[new vn(q.G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([new Iw(Y),new xg(w),new yq(b_),new Qq(P),new M_(l),x2&& new m0(x2),JY&&new So(JY),new ua(n),new ia(s6),new Dh(t),new As(qH),K&&new H4(K),new $g({current:null}),new EH({}),new P4(m)].filter(M2j)),HF:a(dL),adLayoutLoggingData:SD}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var R=cVI(d,Y,T.adSlotLoggingData,N);J.push(R);for(var x=g.E(F),y=x.next();!y.done;y=x.next()){var h=y.value,H=h(d,e);if(H instanceof S)return H;J.push.apply(J,g.RQ(H))}}catch(a){return new S(a,{errorMessage:a.message,AdPlacementRenderer:T,numberOfSurveyRenderers:EX1(T)})}return J}; EX1=function(d){d=(d.renderer.linearAdSequenceRenderer||{}).linearAds;return d!=null&&d.length?d.filter(function(q){var T,Y;return((T=g.D(q,PY))==null?void 0:(Y=T.playerOverlay)==null?void 0:Y.instreamSurveyAdRenderer)!=null}).length:0}; hpj=function(d,q,T,Y,e,U,b){var J=q.config.adPlacementConfig,F=Hoj(J),N=F.A7,R=F.Z4;F=(q.renderer.linearAdSequenceRenderer||{}).linearAds;if(F==null||!F.length)throw new TypeError("Expected linear ads");var x=[],y={QT:N,jU:0,zfF:x};F=F.map(function(H){return aSn(d,H,y,T,Y,J,e,R,b)}).map(function(H,a){a=new wU(a,x); return H(a)}); var h=F.map(function(H){return H.xb}); return{Dr:AV7(T,d,N,h,J,QeH(q),Y,R,U),IhZ:F.map(function(H){return H.rEZ})}}; aSn=function(d,q,T,Y,e,U,b,J,F){var N=xq(g.D(q,PY),F),R=T.QT,x=T.jU,y=Math.min(R+N.videoLengthSeconds*1E3,J);T.QT=y;T.jU++;T.zfF.push(N.videoLengthSeconds);var h,H,a=(h=g.D(q,PY))==null?void 0:(H=h.playerOverlay)==null?void 0:H.instreamSurveyAdRenderer;if(N.adVideoId==="nPpU29QrbiU"&&a==null)throw new TypeError("Survey slate media has no survey overlay");return function(p){JC(N.playerVars,p);var t,n,K=N.videoLengthSeconds,P=N.playerVars,w=N.GG,l=N.jE,m=N.instreamAdPlayerOverlayRenderer,b_=N.playerOverlayLayoutRenderer, x2=N.adVideoId,JY=(t=g.D(q,PY))==null?void 0:t.adLayoutLoggingData;t=(n=g.D(q,PY))==null?void 0:n.sodarExtensionData;n=Cu(Y.U.get(),"LAYOUT_TYPE_MEDIA",d);var s6={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",nf:"adapter"};p={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",GG:w,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"adapter",clientMetadata:new St([new Iw(b),new xg(K),new yq(P),new Qq(R),new M_(y),new c4(x),new $g({current:null}), m&&new m0(m),b_&&new So(b_),new ua(U),new ia(x2),new Dh(p),t&&new H4(t),a&&new kg(a),new EH({}),new P4(l)].filter(M2j)),HF:e(s6),adLayoutLoggingData:JY};K=yVN(g.D(q,PY),U,b,p.layoutId,Y);return{xb:p,rEZ:K}}}; xq=function(d,q){if(!d)throw new TypeError("Expected instream video ad renderer");if(!d.playerVars)throw new TypeError("Expected player vars in url encoded string");var T=lF(d.playerVars),Y=Number(T.length_seconds);if(isNaN(Y))throw new TypeError("Expected valid length seconds in player vars");var e=Number(d.trimmedMaxNonSkippableAdDurationMs);Y=isNaN(e)?Y:Math.min(Y,e/1E3);e=d.playerOverlay||{};e=e.instreamAdPlayerOverlayRenderer===void 0?null:e.instreamAdPlayerOverlayRenderer;var U=d.playerOverlay|| {};U=U.playerOverlayLayoutRenderer===void 0?null:U.playerOverlayLayoutRenderer;var b=T.video_id;b||(b=(b=d.externalVideoId)?b:void 0);if(!b)throw new TypeError("Expected valid video id in IVAR");if(q&&Y===0){var J;q=(J=p6n[b])!=null?J:Y}else q=Y;return{playerVars:T,videoLengthSeconds:q,instreamAdPlayerOverlayRenderer:e,playerOverlayLayoutRenderer:U,adVideoId:b,GG:d.pings?xu(d.pings):new Map,jE:R5(d.pings)}}; QeH=function(d){d=Number(d.driftRecoveryMs);return isNaN(d)||d<=0?null:d}; Hoj=function(d){var q=d.adTimeOffset||{};d=q.offsetEndMilliseconds;q=Number(q.offsetStartMilliseconds);if(isNaN(q))throw new TypeError("Expected valid start offset");d=Number(d);if(isNaN(d))throw new TypeError("Expected valid end offset");return{A7:q,Z4:d}}; Zo1=function(d){var q,T=(q=l7(d.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:q.current;if(!T)return null;q=l7(d.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var Y=d.layoutId,e=l7(d.clientMetadata,"metadata_type_content_cpn"),U=l7(d.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b=l7(d.clientMetadata,"metadata_type_player_underlay_renderer"),J=l7(d.clientMetadata,"metadata_type_ad_placement_config"),F=l7(d.clientMetadata,"metadata_type_video_length_seconds"); var N=ze(d.clientMetadata,"metadata_type_layout_enter_ms")&&ze(d.clientMetadata,"metadata_type_layout_exit_ms")?(l7(d.clientMetadata,"metadata_type_layout_exit_ms")-l7(d.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{jP:Y,contentCpn:e,Z2:T,Z3:q,instreamAdPlayerOverlayRenderer:U,instreamAdPlayerUnderlayRenderer:b,adPlacementConfig:J,videoLengthSeconds:F,lc:N,inPlayerLayoutId:l7(d.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:l7(d.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; rV6=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H){Y=U0(Y,"SLOT_TYPE_PLAYER_BYTES");d=OoQ(e,d,b,T,Y,F,N);if(d instanceof S)return d;var a;N=(a=l7(d.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:a.layoutId;if(!N)return new S("Invalid adNotify layout");q=nXQ(N,e,U,T,J,q,F,R,x,y,h,H,b);return q instanceof S?q:[d].concat(g.RQ(q))}; nXQ=function(d,q,T,Y,e,U,b,J,F,N,R,x,y){T=t21(q,T,Y,U,b,J,F,N,R,x,y);if(T instanceof S)return T;d=B5j(q,d,b,e,T);return d instanceof S?d:[].concat(g.RQ(d.HA),[d.kX])}; Gqn=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h){q=t21(d,q,T,e,U,J,F,N,R,x,y,h);if(q instanceof S)return q;d=KP6(d,T,U,b,Y,J.aN,q);return d instanceof S?d:d.HA.concat(d.kX)}; t21=function(d,q,T,Y,e,U,b,J,F,N,R,x){var y=yE(Y,T,N);return y instanceof m5?new S(y):N.J.C().experiments.Wv("html5_refactor_in_player_slot_generation")?function(h){var H=new wU(0,[y.FU]);h=LPg(q,y.layoutId,y.Ri,T,hC(y.playerVars,y.t4,U,F,H),y.FU,e,H,b(h),J.get(y.Ri.externalVideoId),x);H=[];if(y.Ri.playerOverlay.instreamAdPlayerOverlayRenderer){var a=Zo1(h);if(!a)return Jm("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,h),{layout:h,HA:[]}; H=[kqn(d,a.contentCpn,a.jP,function(t){return H_(q,t.slotId,"core",a,Tn(R,t))},a.inPlayerSlotId)].concat(g.RQ(H)); if(a.instreamAdPlayerUnderlayRenderer&&QE(N)){var p=a.instreamAdPlayerUnderlayRenderer;H=[Pzj(d,a.contentCpn,a.jP,function(t){return WPQ(q,t.slotId,p,a.adPlacementConfig,a.jP,Tn(R,t))})].concat(g.RQ(H))}}return{layout:h, HA:H}}:function(h){var H=new wU(0,[y.FU]); return{layout:LPg(q,y.layoutId,y.Ri,T,hC(y.playerVars,y.t4,U,F,H),y.FU,e,H,b(h),J.get(y.Ri.externalVideoId),x),HA:[]}}}; yE=function(d,q,T){if(!d.playerVars)return new m5("No playerVars available in InstreamVideoAdRenderer.");var Y,e;if(d.elementId==null||d.playerVars==null||d.playerOverlay==null||((Y=d.playerOverlay)==null?void 0:Y.instreamAdPlayerOverlayRenderer)==null&&((e=d.playerOverlay)==null?void 0:e.playerOverlayLayoutRenderer)==null||d.pings==null||d.externalVideoId==null)return new m5("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:d});Y=lF(d.playerVars);e=Number(Y.length_seconds); isNaN(e)&&(e=0,Jm("Expected valid length seconds in player vars but got NaN"));if(T.pz(q.kind==="AD_PLACEMENT_KIND_START")){if(d.layoutId===void 0)return new m5("Expected server generated layout ID in instreamVideoAdRenderer");q=d.layoutId}else q=d.elementId;return{layoutId:q,Ri:d,playerVars:Y,t4:d.playerVars,FU:e}}; hC=function(d,q,T,Y,e){d.iv_load_policy=Y;q=lF(q);if(q.cta_conversion_urls)try{d.cta_conversion_urls=JSON.parse(q.cta_conversion_urls)}catch(U){Jm(U)}T.jj&&(d.ctrl=T.jj);T.OP&&(d.ytr=T.OP);T.Eu&&(d.ytrcc=T.Eu);T.isMdxPlayback&&(d.mdx="1");d.vvt&&(d.vss_credentials_token=d.vvt,T.M4&&(d.vss_credentials_token_type=T.M4),T.mdxEnvironment&&(d.mdx_environment=T.mdxEnvironment));JC(d,e);return d}; Czg=function(d){var q=new Map;d=g.E(d);for(var T=d.next();!T.done;T=d.next())(T=T.value.renderer.remoteSlotsRenderer)&&T.hostElementId&&q.set(T.hostElementId,T);return q}; M6=function(d){return d.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; uJI=function(d){return d!=null}; mt_=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H){for(var a=[],p=g.E(d),t=p.next();!t.done;t=p.next())if(t=t.value,!BcX(t)&&!P9D(t)){var n=M6(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger,K=F.pz(n),P=DtQ(t,N,Y,T.O6,K);if(P instanceof S)return P;var w=void 0,l={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:(w=t.adSlotMetadata.slotPhysicalPosition)!=null?w:1,nf:"core",slotEntryTrigger:P.slotEntryTrigger,slotFulfillmentTriggers:P.slotFulfillmentTriggers, slotExpirationTriggers:P.slotExpirationTriggers},m=g.D(t.fulfillmentContent.fulfilledLayout,wG);if(m){if(!DJ(m))return new S("Invalid PlayerBytesAdLayoutRenderer");w=x&&!(M6(t)&&t.slotEntryTrigger.beforeContentVideoIdStartedTrigger);P=P.slotFulfillmentTriggers.some(function(b_){return b_ instanceof o0}); K=w?w6N(l,t.adSlotMetadata.triggerEvent,m,T,Y,U,N,d,K,y,P,h):fSX(l,t.adSlotMetadata.triggerEvent,m,q,T,Y,e,U,b,J,F,N,d,R,K,t.adSlotMetadata.triggeringSourceLayoutId);if(K instanceof S)return K;P=[];H?P.push(new RV({current:H})):P.push(new RV({current:null}));M6(t)&&P.push(new wJ({Px:M6(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));w&&P.push(new EH({}));T.aN&&P.push(new Lm({}));P.push(new u7(n));t=Object.assign({},l,{clientMetadata:new St(P),fulfilledLayout:K.layout,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData}); a.push.apply(a,g.RQ(K.HA));a.push(t)}else if(n=g.D(t.fulfillmentContent.fulfilledLayout,mu)){if(!tlX(n))return new S("Invalid PlayerUnderlayAdLayoutRenderer");n=zpY(n,Y,T.O6,U,l,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(n instanceof S)return n;t=Object.assign({},l,{clientMetadata:new St([]),fulfilledLayout:n,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});a.push(t)}else if(n=g.D(t.fulfillmentContent.fulfilledLayout,GYX)){if(!Ehn(n))return new S("Invalid AboveFeedAdLayoutRenderer"); n=ion(n,Y,T.O6,U,l,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(n instanceof S)return n;t=Object.assign({},l,{clientMetadata:new St([]),fulfilledLayout:n,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});a.push(t)}else if(n=g.D(t.fulfillmentContent.fulfilledLayout,LM6)){if(!AR(n.adLayoutMetadata)||!g.D(n.renderingContent,pS))return new S("Invalid BelowPlayerAdLayoutRenderer");n=ion(n,Y,T.O6,U,l,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId); if(n instanceof S)return n;t=Object.assign({},l,{clientMetadata:new St([]),fulfilledLayout:n,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});a.push(t)}else if(n=g.D(t.fulfillmentContent.fulfilledLayout,S5)){if(!z8(n))return new S("Invalid PlayerBytesSequenceItemAdLayoutRenderer");n=IS2(n,Y,T.O6,U,l,t.adSlotMetadata.triggerEvent);if(n instanceof S)return n;t=Object.assign({},l,{clientMetadata:new St([]),fulfilledLayout:n,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});a.push(t)}else return new S("Unable to retrieve a client slot ["+ l.slotType+"] from a given AdSlotRenderer")}return a}; IS2=function(d,q,T,Y,e,U){var b={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,nf:"core"};q=c_(d,q,T);return q instanceof S?q:(T=g.D(d.renderingContent,fS))&&T.pings?Object.assign({},b,{renderingContent:d.renderingContent,GG:xu(T.pings)},q,{HF:Tn(Y,e)(b),clientMetadata:new St([new ua(E7(U))]),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData}):new S("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; ion=function(d,q,T,Y,e,U,b){var J={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,nf:"core"};q=c_(d,q,T);if(q instanceof S)return q;T=[];T.push(new ua(E7(U)));U==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&b!==void 0&&T.push(new UH(b));return Object.assign({},J,{renderingContent:d.renderingContent,GG:new Map([["impression",Svg(d)]])},q,{HF:Tn(Y,e)(J),clientMetadata:new St(T),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData})}; zpY=function(d,q,T,Y,e,U,b){if(d.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(b=g.D(d.renderingContent,iV))if(b=g.D(b.sidePanel,nhD)){var J={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,nf:"core"};q=c_(d,q,T);d=q instanceof S?q:Object.assign({},J,{renderingContent:d.renderingContent,GG:new Map([["impression",b.impressionPings||[]],["resume",b.resumePings||[]]])},q,{HF:Tn(Y,e)(J),clientMetadata:new St([new ua(E7(U))]),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData})}else d= new S("DismissablePanelTextPortraitImageRenderer is missing");else d=new S("SqueezebackPlayerSidePanelRenderer is missing");else d.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.D(d.renderingContent,pm1)?(b={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,nf:"core"},q=c_(d,q,T),d=q instanceof S?q:Object.assign({},b,{renderingContent:d.renderingContent,GG:new Map},q,{HF:Tn(Y,e)(b),clientMetadata:new St([new ua(E7(U))]),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData})): d=new S("CounterfactualRenderer is missing"):d.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?d=new S("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):d.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?d=new S("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):d.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.D(d.renderingContent,IF)?(U={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType, nf:"core"},q=c_(d,q,T),d=q instanceof S?q:b?Object.assign({},U,{renderingContent:d.renderingContent,GG:new Map},q,{HF:Tn(Y,e)(U),clientMetadata:new St([new UH(b)]),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData}):new S("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):d=new S("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):d.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.D(d.renderingContent,ZUI)? (U={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,nf:"core"},q=c_(d,q,T),d=q instanceof S?q:Object.assign({},U,{renderingContent:d.renderingContent,GG:new Map([])},q,{HF:Tn(Y,e)(U),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new St([])})):d=new S("AdsEngagementPanelSectionListViewModel is missing"):d=new S("LayoutType ["+d.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return d}; w6N=function(d,q,T,Y,e,U,b,J,F,N,R,x){if((x==null?void 0:x.vW)===void 0||(x==null?void 0:x.RW)===void 0)return new S("Cached ad break range from cue point is missing");var y=c_(T,e,Y.O6);if(y instanceof S)return y;y={layoutExitMuteTriggers:[],layoutExitNormalTriggers:y.layoutExitNormalTriggers,layoutExitSkipTriggers:[],J1:[],layoutExitUserInputSubmittedTriggers:[]};if(g.D(T.renderingContent,PY))return d=lSY(d,q,T,y,e,U,J,F,Y.O6,b,x.vW,x.RW),d instanceof S?d:d.Xd===void 0?new S("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:d.layout,HA:[d.Xd]};var h=g.D(T.renderingContent,LS);if(h){if(!AR(T.adLayoutMetadata))return new S("Invalid ad layout metadata");if(!kb(h))return new S("Invalid sequential layout");h=h.sequentialLayouts.map(function(H){return H.playerBytesAdLayoutRenderer}); d=vXf(d,q,T,y,h,e,Y,U,b,F,J,N,x.vW,x.RW,R);return d instanceof S?d:{layout:d.E7,HA:d.HA}}return new S("Not able to convert a sequential layout")}; vXf=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H){var a=oX1(e,y,h);if(a instanceof S)return a;var p=[],t=[];a=g.E(a);for(var n=a.next();!n.done;n=a.next()){var K=n.value;n=d;var P=e[K.jU],w=K,l=q;K=U;var m=b,b_=J,x2=F,JY=N,s6=R,qH=ji(P);if(qH instanceof S)n=qH;else{var O6={layoutId:P.adLayoutMetadata.layoutId,layoutType:P.adLayoutMetadata.layoutType,nf:"adapter"};w=V2_(l,P,w,K);w instanceof S?n=w:(n=Object.assign({},O6,ax,{GG:qH,renderingContent:P.renderingContent,clientMetadata:new St(w),HF:Tn(b_,n)(O6), adLayoutLoggingData:P.adLayoutMetadata.adLayoutLoggingData}),n=(P=AC(s6,n,K,m.O6,b_,x2,JY,void 0,!0))?P instanceof S?P:{layout:n,Xd:P}:new S("Expecting associatedInPlayerSlot"))}if(n instanceof S)return n;p.push(n.layout);t.push(n.Xd)}e={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,nf:"core"};q=[new As(Number(T.driftRecoveryMs)),new Qq(y),new M_(h),new ua(E7(q)),new Cm(x),new EH({})];H&&q.push(new fm({}));return{E7:Object.assign({},e,Y,{iV:p,GG:new Map,clientMetadata:new St(q), HF:Tn(J,d)(e)}),HA:t}}; lSY=function(d,q,T,Y,e,U,b,J,F,N,R,x){if(!DJ(T))return new S("Invalid PlayerBytesAdLayoutRenderer");var y=ji(T);if(y instanceof S)return y;var h={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,nf:"core"},H=g.D(T.renderingContent,PY);if(!H)return new S("Invalid rendering content for DAI media layout");H=xq(H,!1);R={ya:H,jU:0,QT:R,MB:Math.min(R+H.videoLengthSeconds*1E3,x),Lo:new wU(0,[H.videoLengthSeconds])};var a;x=(a=Number(T.driftRecoveryMs))!=null?a:void 0;q=V2_(q, T,R,e,x);if(q instanceof S)return q;d=Object.assign({},h,Y,{GG:y,renderingContent:T.renderingContent,clientMetadata:new St(q),HF:Tn(U,d)(h),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData});return(e=AC(b,d,e,F,U,N,J,void 0,!0))?e instanceof S?e:{layout:d,Xd:e}:new S("Expecting associatedInPlayerSlot")}; fSX=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a){var p=c_(T,U,e.O6);if(p instanceof S)return p;if(g.D(T.renderingContent,PY)){F=d12([T],e,F);if(F instanceof S)return F;if(F.length!==1)return new S("Only expected one media layout.");d=qnY(d,q,T,p,F[0],void 0,"core",Y,U,b,J,N,y,h,H,e.O6,x,void 0,a);return d instanceof S?d:{layout:d.layout,HA:d.Xd?[d.Xd]:[]}}var t=g.D(T.renderingContent,LS);if(t){if(!AR(T.adLayoutMetadata))return new S("Invalid ad layout metadata");if(!kb(t))return new S("Invalid sequential layout"); t=t.sequentialLayouts.map(function(n){return n.playerBytesAdLayoutRenderer}); d=TE2(d,q,T.adLayoutMetadata,p,t,Y,U,e,F,b,J,N,R,x,H,y,h,a);return d instanceof S?d:{layout:d.E7,HA:d.HA}}return new S("Not able to convert a sequential layout")}; TE2=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t){var n=new zm({current:null}),K=d12(e,J,F);if(K instanceof S)return K;F=[];for(var P=[],w=void 0,l=0;l0&&(l.push(t),l.push(new f3(w.adPodSkipTarget)));(U=N.get(w.externalVideoId))&&l.push(new nm(U));U=l}else U=new S("Invalid vod media renderer")}if(U instanceof S)return U;d=Object.assign({},b,Y,{GG:K,renderingContent:T.renderingContent,clientMetadata:new St(U),HF:Tn(R,d)(b),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData});T=g.D(T.renderingContent,PY);if(!T||!G8(T))return new S("Invalid meida renderer");x=$q(x,T.externalVideoId);x.instreamVideoAdRenderer=T;x.BS="AD_PLACEMENT_KIND_START";return h?(F=AC(y,d,F,a,R,p,H,t,!1),F instanceof S?F:U1H(d.layoutId,y)&&F?{layout:Object.assign({},d,{clientMetadata:new St(U.concat(new ow(F)))})}:{layout:d,Xd:F}): {layout:d}}; Ynn=function(d,q,T,Y,e){if(!DJ(q))return new S("Invalid PlayerBytesAdLayoutRenderer");var U=g.D(q.renderingContent,o5);if(!U||U.durationMilliseconds===void 0)return new S("Invalid endcap renderer");var b={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,nf:"adapter"};Y=[new ts(U.durationMilliseconds),new Ge({impressionCommands:void 0,abandonCommands:U.abandonCommands?[{commandExecutorCommand:U.abandonCommands}]:void 0,completeCommands:U.completionCommands}),new ua(Y), new Xb("LAYOUT_TYPE_ENDCAP")];if(e){Y.push(new wE(e.Lo.adPodIndex-1));Y.push(new c4(e.Lo.adPodIndex));var J;Y.push(new f3((J=e.adPodSkipTarget)!=null?J:-1))}return Object.assign({},b,ax,{renderingContent:q.renderingContent,clientMetadata:new St(Y),GG:U.skipPings?new Map([["skip",U.skipPings]]):new Map,HF:Tn(T,d)(b),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData})}; AC=function(d,q,T,Y,e,U,b,J,F){d=d.filter(function(x){return x.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&x.adSlotMetadata.triggeringSourceLayoutId===q.layoutId}); if(d.length!==0){if(d.length!==1)return new S("Invalid InPlayer slot association for the given PlayerBytes layout");d=d[0];b=DtQ(d,U,T,Y,b);if(b instanceof S)return b;var N;U={slotId:d.adSlotMetadata.slotId,slotType:d.adSlotMetadata.slotType,slotPhysicalPosition:(N=d.adSlotMetadata.slotPhysicalPosition)!=null?N:1,nf:"core",slotEntryTrigger:b.slotEntryTrigger,slotFulfillmentTriggers:b.slotFulfillmentTriggers,slotExpirationTriggers:b.slotExpirationTriggers};N=g.D(d.fulfillmentContent.fulfilledLayout, KM6);if(!N||!AU2(N))return new S("Invalid InPlayerAdLayoutRenderer");b={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,nf:"core"};T=c_(N,T,Y);if(T instanceof S)return T;Y=[];var R=N.adLayoutMetadata.layoutType;F&&Y.push(new EH({}));if(R==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")Y.push.apply(Y,g.RQ(b3n(d.adSlotMetadata.triggerEvent,q)));else if(R==="LAYOUT_TYPE_ENDCAP"||R==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){Y.push(new ua(E7(d.adSlotMetadata.triggerEvent))); if(R==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new S("Cannot parse endcap layout since AdUxReadyApi is not provided");J&&Y.push(J)}else return new S("Not able to parse an SDF InPlayer layout");e=Object.assign({},b,T,{renderingContent:N.renderingContent,GG:new Map,HF:Tn(e,U)(b),clientMetadata:new St(Y),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},U,{fulfilledLayout:e,clientMetadata:new St([])})}}; b3n=function(d,q){var T=[];T.push(new ua(E7(d)));T.push(new UH(q.layoutId));(d=l7(q.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&T.push(new $g(d));(d=l7(q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&T.push(new zm(d));(d=l7(q.clientMetadata,"metadata_type_remote_slots_data"))&&T.push(new nm(d));(d=l7(q.clientMetadata,"metadata_type_ad_next_params"))&&T.push(new BD(d));(d=l7(q.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&T.push(new K3(d));(d= l7(q.clientMetadata,"metadata_type_ad_pod_info"))&&T.push(new Dh(d));(q=l7(q.clientMetadata,"metadata_type_ad_video_id"))&&T.push(new ia(q));return T}; erX=function(d,q,T,Y,e,U){function b(N){return p6(q,N)} var J=Y.a8.inPlayerSlotId,F={layoutId:Y.a8.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",nf:"core"};T={slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:new ml(b,d),slotFulfillmentTriggers:[new sO(b,J)],slotExpirationTriggers:[new $b(b,J),new bV(b,T)]};d=Object.assign({},F,{layoutExitNormalTriggers:[new lu(b,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],GG:new Map,clientMetadata:new St([new dJ(Y.a8), new ua(Y.adPlacementConfig),e]),HF:Tn(U,T)(F),adLayoutLoggingData:Y.a8.adLayoutLoggingData});return Object.assign({},T,{clientMetadata:new St([new pm(d)])})}; U1H=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next())if(T=T.value,T.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var Y=g.D(T.fulfillmentContent.fulfilledLayout,mu);if(Y&&(Y=g.D(Y.renderingContent,iV))&&Y.associatedPlayerBytesLayoutId===d)return T}}; DtQ=function(d,q,T,Y,e){var U=XDH(XC(d.slotEntryTrigger,T,Y),e,d,q);if(U instanceof S)return U;for(var b=[],J=g.E(d.slotFulfillmentTriggers),F=J.next();!F.done;F=J.next()){F=XC(F.value,T,Y);if(F instanceof S)return F;b.push(F)}b=Jb_(b,e,d,q);q=[];d=g.E(d.slotExpirationTriggers);for(e=d.next();!e.done;e=d.next()){e=XC(e.value,T,Y);if(e instanceof S)return e;q.push(e)}return{slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:q}}; XDH=function(d,q,T,Y){return q&&T.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&d instanceof fd?new DD(function(e){return p6(Y,e)},T.adSlotMetadata.slotId):d}; Jb_=function(d,q,T,Y){return q&&T.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?d.map(function(e){return e instanceof sO?new Nm(function(U){return p6(Y,U)},T.adSlotMetadata.slotId):e}):d}; c_=function(d,q,T){for(var Y=[],e=g.E(d.layoutExitNormalTriggers||[]),U=e.next();!U.done;U=e.next()){U=XC(U.value,q,T);if(U instanceof S)return U;Y.push(U)}e=[];U=g.E(d.layoutExitSkipTriggers||[]);for(var b=U.next();!b.done;b=U.next()){b=XC(b.value,q,T);if(b instanceof S)return b;e.push(b)}U=[];b=g.E(d.layoutExitMuteTriggers||[]);for(var J=b.next();!J.done;J=b.next()){J=XC(J.value,q,T);if(J instanceof S)return J;U.push(J)}b=[];d=g.E(d.layoutExitUserInputSubmittedTriggers||[]);for(J=d.next();!J.done;J= d.next()){J=XC(J.value,q,T);if(J instanceof S)return J;b.push(J)}return{layoutExitNormalTriggers:Y,layoutExitSkipTriggers:e,layoutExitMuteTriggers:U,layoutExitUserInputSubmittedTriggers:b,J1:[]}}; ji=function(d){var q=g.D(d.renderingContent,PY);if(q==null?0:q.pings)return xu(q.pings);d=g.D(d.renderingContent,o5);return(d==null?0:d.skipPings)?new Map([["skip",d.skipPings]]):new Map}; V2_=function(d,q,T,Y,e){q=g.D(q.renderingContent,PY);if(!q)return new S("Invalid rendering content for DAI media layout");d=[new Iw(Y),new xg(T.ya.videoLengthSeconds),new yq(T.ya.playerVars),new Qq(T.QT),new M_(T.MB),new c4(T.jU),new ua(E7(d)),new ia(T.ya.adVideoId),new Dh(T.Lo),q.sodarExtensionData&&new H4(q.sodarExtensionData),new $g({current:null}),new EH({}),new P4(R5(q.pings))].filter(uJI);e!==void 0&&d.push(new As(e));return d}; oX1=function(d,q,T){d=d.map(function(F){return xq(g.D(F.renderingContent,PY),!1)}); var Y=d.map(function(F){return F.videoLengthSeconds}),e=Y.map(function(F,N){return new wU(N,Y)}),U=q,b=T,J=[]; d.forEach(function(F,N){b=Math.min(U+F.videoLengthSeconds*1E3,T);JC(F.playerVars,e[N]);J.push({ya:F,QT:U,MB:b,jU:N,Lo:e[N]});U=b}); return J}; d12=function(d,q,T){for(var Y=[],e=g.E(d),U=e.next();!U.done;U=e.next())if(U=g.D(U.value.renderingContent,PY)){if(!G8(U))return new S("Invalid vod media renderer");Y.push(swH(U))}e=Y.map(function(x){return x.FU}); U=[];for(var b=0,J=0;J0?JY:-1;else if(O6= g.D(qH,o5)){qH=Mon(d,q,T,O6,U,a,J,m,JY);if(qH instanceof S){h=qH;break a}qH=qH(y);p.push(qH.Y9);t=[].concat(g.RQ(qH.Xu),g.RQ(t));n=[].concat(g.RQ(qH.MO),g.RQ(n));qH.Xd&&(x2=[qH.Xd].concat(g.RQ(x2)))}else if(O6=g.D(qH,CS)){if(h===void 0){h=new S("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:O6});break a}qH=jwf(d,q,T,U,O6,l,J,h,a,WA(R,"supports_multi_step_on_desktop"));if(qH instanceof S){h=qH;break a}qH=qH(y);p.push(qH.Y9);qH.Xd&&x2.push(qH.Xd); t=[].concat(g.RQ(qH.Xu),g.RQ(t));n=[].concat(g.RQ(qH.MO),g.RQ(n));K=[].concat(g.RQ(qH.hI),g.RQ(K));P=[].concat(g.RQ(qH.YF),g.RQ(P));w=[l].concat(g.RQ(w))}else if(qH=g.D(qH,uV)){qH=ah2(d,q,T,U,qH,l,J,a);if(qH instanceof S){h=qH;break a}qH=qH(y);p.push(qH.Y9);qH.Xd&&x2.push(qH.Xd);n=[].concat(g.RQ(qH.MO),g.RQ(n))}else{h=new S("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}h={iV:p,layoutExitSkipTriggers:t,layoutExitUserInputSubmittedTriggers:K,J1:P,layoutExitMuteTriggers:n,rD:w,HA:x2}}}else a:if(a= BE7(Y,T,R),a instanceof S)h=a;else{p=0;t=[];n=[];K=[];P=[];w=[];l=[];m=new gJ({current:null});b_=new zm({current:null});x2=!1;s6=[];JY=-1;H=g.E(Y);for(qH=H.next();!qH.done;qH=H.next())if(qH=qH.value,g.D(qH,WY)){qH=cbg(q,T,g.D(qH,WY),J);if(qH instanceof S){h=qH;break a}qH=qH(y);t.push(qH.Y9);n=[].concat(g.RQ(qH.Xu),g.RQ(n));K=[].concat(g.RQ(qH.MO),g.RQ(K));qH.Xd&&(s6=[qH.Xd].concat(g.RQ(s6)))}else if(g.D(qH,PY)){JY=yE(g.D(qH,PY),T,R);if(JY instanceof m5){h=new S(JY);break a}qH=new wU(p,a);qH=K0I(q, JY.layoutId,JY.Ri,T,hC(JY.playerVars,JY.t4,b,N,qH),JY.FU,U,qH,J(y),b_,F.get(JY.Ri.externalVideoId),void 0,x);p++;t.push(qH.Y9);n=[].concat(g.RQ(qH.Xu),g.RQ(n));K=[].concat(g.RQ(qH.MO),g.RQ(K));x2||(l.push(b_),x2=!0);JY=(JY=JY.Ri.adPodSkipTarget)&&JY>0?JY:-1}else if(g.D(qH,o5)){qH=Mon(d,q,T,g.D(qH,o5),U,p,J,b_,JY);if(qH instanceof S){h=qH;break a}qH=qH(y);t.push(qH.Y9);n=[].concat(g.RQ(qH.Xu),g.RQ(n));K=[].concat(g.RQ(qH.MO),g.RQ(K));qH.Xd&&(s6=[qH.Xd].concat(g.RQ(s6)))}else if(g.D(qH,CS)){if(h=== void 0){h=new S("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.D(qH,CS)});break a}qH=jwf(d,q,T,U,g.D(qH,CS),m,J,h,p,WA(R,"supports_multi_step_on_desktop"));if(qH instanceof S){h=qH;break a}qH=qH(y);t.push(qH.Y9);qH.Xd&&s6.push(qH.Xd);n=[].concat(g.RQ(qH.Xu),g.RQ(n));K=[].concat(g.RQ(qH.MO),g.RQ(K));P=[].concat(g.RQ(qH.hI),g.RQ(P));w=[].concat(g.RQ(qH.YF),g.RQ(w));l=[m].concat(g.RQ(l))}else if(g.D(qH,uV)){qH=ah2(d,q,T,U,g.D(qH,uV),m,J,p);if(qH instanceof S){h=qH;break a}qH=qH(y);t.push(qH.Y9);qH.Xd&&s6.push(qH.Xd);K=[].concat(g.RQ(qH.MO),g.RQ(K))}else{h=new S("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}h={iV:t,layoutExitSkipTriggers:n,layoutExitUserInputSubmittedTriggers:P,J1:w,layoutExitMuteTriggers:K,rD:l,HA:s6}}h instanceof S?y=h:(w=y.slotId,a=h.iV,p=h.layoutExitSkipTriggers,t=h.layoutExitMuteTriggers,n=h.layoutExitUserInputSubmittedTriggers,K=h.rD,y=J(y),P=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",w=e?e.layoutId: Cu(q.U.get(),P,w),l={layoutId:w,layoutType:P,nf:"core"},y={layout:{layoutId:w,layoutType:P,GG:new Map,layoutExitNormalTriggers:[new UO(q.G,w)],layoutExitSkipTriggers:p,layoutExitMuteTriggers:t,layoutExitUserInputSubmittedTriggers:n,J1:[],nf:"core",clientMetadata:new St([new Fb(a)].concat(g.RQ(K))),HF:y(l)},HA:h.HA});return y}}; BE7=function(d,q,T){var Y=[];d=g.E(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,g.D(e,PY)){e=yE(g.D(e,PY),q,T);if(e instanceof m5)return new S(e);Y.push(e.FU)}return Y}; L0Y=function(d,q,T,Y,e,U,b,J){if(!C9_(T,J===void 0?!1:J))return new S("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:T});var F=FC(T);if(F<=0)return new S("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:T});var N=new gJ({current:null}),R=$tn(d,q,T,N,Y,U,b);return Gmf(d,Y,U,F,e,function(x,y){var h=x.slotId,H=N6(T);x=b(x);var a,p=(a=rN(q,Y,T.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?a: Cu(q.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",h);h={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",nf:"core"};a=R(p,y);var t=l7(a.clientMetadata,"metadata_type_fulfilled_layout");t||Jm("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");H=[new ua(Y),new ts(F),new Ge(H),N];t&&H.push(new Xb(t.layoutType));return{lwv:{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",GG:new Map,layoutExitNormalTriggers:[new UO(q.G,p)],layoutExitSkipTriggers:[new JR(q.G, y.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new EO(q.G,y.layoutId)],J1:[],nf:"core",clientMetadata:new St(H),HF:x(h)},TL:a}})}; kmf=function(d){if(!wmI(d))return!1;var q=g.D(d.adVideoStart,L6);return q?g.D(d.linearAd,PY)&&BY(q)?!0:(Jm("Invalid Sandwich with notify"),!1):!1}; Pa_=function(d){if(d.linearAds==null)return!1;d=g.D(d.adStart,L6);return d?BY(d)?!0:(Jm("Invalid LASR with notify"),!1):!1}; W0X=function(d){if(!D3X(d))return!1;d=g.D(d.adStart,L6);return d?BY(d)?!0:(Jm("Invalid LASR with notify"),!1):!1}; kq=function(d,q,T,Y,e,U,b,J,F,N){this.T=d;this.U=q;this.G=T;this.T2=Y;this.KH=e;this.j=U;this.Yx=b;this.qM=J;this.NU=F;this.loadPolicy=N===void 0?1:N}; U7=function(d,q,T,Y,e,U,b,J,F,N,R){var x=[];if(q.length===0&&Y.length===0&&T.length===0)return x;q=q.filter(KS);var y=T.filter(kYf),h=Y.filter(KS),H=new Map,a=Czg(q),p=T.some(function(dL){var hE;return(dL==null?void 0:(hE=dL.adSlotMetadata)==null?void 0:hE.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),t=T.some(function(dL){var hE; return(dL==null?void 0:(hE=dL.adSlotMetadata)==null?void 0:hE.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),n=T.some(function(dL){var hE; return(dL==null?void 0:(hE=dL.adSlotMetadata)==null?void 0:hE.slotType)==="SLOT_TYPE_IN_PLAYER"}),K=T.some(function(dL){var hE,JE; return(dL==null?void 0:(hE=dL.adSlotMetadata)==null?void 0:hE.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(dL==null?void 0:(JE=dL.adSlotMetadata)==null?void 0:JE.slotType)==="SLOT_TYPE_ABOVE_FEED"}); T=T.some(function(dL){var hE;return(dL==null?void 0:(hE=dL.adSlotMetadata)==null?void 0:hE.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(p||t||n||K||T)N=mt_(y,q,J,e,a,d.KH.get(),d.loadPolicy,H,d.T2.get(),d.T.get(),n,b,F,N,R),N instanceof S?Jm(N,void 0,void 0,{contentCpn:e}):x.push.apply(x,g.RQ(N));N=g.E(q);for(R=N.next();!R.done;R=N.next())R=R.value,T=CaD(d,H,R,e,U,b,p,J,a,F,y),T instanceof S?Jm(T,void 0,void 0,{renderer:R.renderer,config:R.config.adPlacementConfig,kind:R.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:b}):x.push.apply(x,g.RQ(T));uN7(d.T2.get())||(U=D1N(d,h,e,J,a,H),x.push.apply(x,g.RQ(U)));if(d.j===null|| b&&!J.qR){var P,w,l;d=J.aN&&q.length===1&&((P=q[0].config)==null?void 0:(w=P.adPlacementConfig)==null?void 0:w.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((l=q[0].renderer)==null?void 0:l.adBreakServiceRenderer);if(!x.length&&!d){var m,b_,x2,JY;Jm("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":q.length,contentCpn:e,"first APR kind":(m=q[0])==null?void 0:(b_=m.config)==null?void 0:(x2=b_.adPlacementConfig)==null?void 0:x2.kind,renderer:(JY= q[0])==null?void 0:JY.renderer})}return x}P=Y.filter(KS);x.push.apply(x,g.RQ(X6n(H,P,d.U.get(),d.j,e,p)));if(!x.length){var s6,qH,O6,SD;Jm("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":q.length,contentCpn:e,daiEnabled:b.toString(),"first APR kind":(s6=q[0])==null?void 0:(qH=s6.config)==null?void 0:(O6=qH.adPlacementConfig)==null?void 0:O6.kind,renderer:(SD=q[0])==null?void 0:SD.renderer})}return x}; D1N=function(d,q,T,Y,e,U){function b(y){return Tn(d.KH.get(),y)} var J=[];q=g.E(q);for(var F=q.next();!F.done;F=q.next()){F=F.value;var N=F.renderer,R=N.sandwichedLinearAdRenderer,x=N.linearAdSequenceRenderer;R&&kmf(R)?(Jm("Found AdNotify with SandwichedLinearAdRenderer"),x=g.D(R.adVideoStart,L6),R=g.D(R.linearAd,PY),s7(U,N,F.config.adPlacementConfig.kind),N=void 0,x=nXQ((N=x)==null?void 0:N.layout.layoutId,d.U.get(),d.G.get(),F.config.adPlacementConfig,F.adSlotLoggingData,R,T,Y,b,e,d.loadPolicy,d.T2.get(),d.KH.get()),x instanceof S?Jm(x):J.push.apply(J,g.RQ(x))): x&&(!x.adLayoutMetadata&&Pa_(x)||x.adLayoutMetadata&&W0X(x))&&(Jm("Found AdNotify with LinearAdSequenceRenderer"),s7(U,N,F.config.adPlacementConfig.kind),N=void 0,R=Abj((N=g.D(x.adStart,L6))==null?void 0:N.layout.layoutId,d.U.get(),d.G.get(),F.config.adPlacementConfig,F.adSlotLoggingData,x.linearAds,AR(x.adLayoutMetadata)?x.adLayoutMetadata:void 0,T,Y,b,e,d.loadPolicy,d.T2.get()),R instanceof S?Jm(R):J.push.apply(J,g.RQ(R)))}return J}; CaD=function(d,q,T,Y,e,U,b,J,F,N,R){function x(t){return Tn(d.KH.get(),t)} var y=T.renderer,h=T.config.adPlacementConfig,H=h.kind,a=T.adSlotLoggingData,p=J.qR&&H==="AD_PLACEMENT_KIND_START";p=U&&!p;if(y.adsEngagementPanelRenderer!=null)return gN(q,T.elementId,H,y.adsEngagementPanelRenderer.isContentVideoEngagementPanel,y.adsEngagementPanelRenderer.adVideoId,y.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,h,a,function(t,n,K,P){var w=d.G.get(),l=t.slotId,m=y.adsEngagementPanelRenderer;t=Tn(d.KH.get(),t);return P_(w,l,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new rE(m),n,K,m.impressionPings,t,y.adsEngagementPanelRenderer.adLayoutLoggingData,P)}),[]; if(y.adsEngagementPanelLayoutViewModel)return gN(q,T.elementId,H,y.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,y.adsEngagementPanelLayoutViewModel.adVideoId,y.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,h,a,function(t,n,K,P){var w=d.G.get(),l=t.slotId,m=y.adsEngagementPanelLayoutViewModel;t=Tn(d.KH.get(),t);return W_(w,l,"LAYOUT_TYPE_PANEL",new tb(m),n,K,t,y.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,P)}),[]; if(y.actionCompanionAdRenderer!=null){if(y.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return T5f(d.U.get(),d.j,d.G.get(),y.actionCompanionAdRenderer,h,a,Y,x);gN(q,T.elementId,H,y.actionCompanionAdRenderer.isContentVideoCompanion,y.actionCompanionAdRenderer.adVideoId,y.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,h,a,function(t,n,K,P){var w=d.G.get(),l=t.slotId,m=y.actionCompanionAdRenderer;t=Tn(d.KH.get(),t);return P_(w,l,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new On(m),n,K,m.impressionPings,t,y.actionCompanionAdRenderer.adLayoutLoggingData,P)})}else if(y.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(y.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return YvN(d.U.get(),d.j,d.G.get(),y.topBannerImageTextIconButtonedLayoutViewModel,h,a,Y,x); gN(q,T.elementId,H,y.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,y.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,y.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,h,a,function(t,n,K,P){var w=d.G.get(),l=t.slotId,m=y.topBannerImageTextIconButtonedLayoutViewModel;t=Tn(d.KH.get(),t);return W_(w,l,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new n3(m),n,K,t,y.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,P)})}else if(y.imageCompanionAdRenderer)gN(q, T.elementId,H,y.imageCompanionAdRenderer.isContentVideoCompanion,y.imageCompanionAdRenderer.adVideoId,y.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,h,a,function(t,n,K,P){var w=d.G.get(),l=t.slotId,m=y.imageCompanionAdRenderer; t=Tn(d.KH.get(),t);return P_(w,l,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new L3(m),n,K,m.impressionPings,t,y.imageCompanionAdRenderer.adLayoutLoggingData,P)}); else if(y.bannerImageLayoutViewModel)gN(q,T.elementId,H,y.bannerImageLayoutViewModel.isContentVideoCompanion,y.bannerImageLayoutViewModel.adVideoId,y.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,h,a,function(t,n,K,P){var w=d.G.get(),l=t.slotId,m=y.bannerImageLayoutViewModel;t=Tn(d.KH.get(),t);return W_(w,l,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new kU(m),n,K,t,y.bannerImageLayoutViewModel.adLayoutLoggingData,P)}); else if(y.shoppingCompanionCarouselRenderer)gN(q,T.elementId,H,y.shoppingCompanionCarouselRenderer.isContentVideoCompanion,y.shoppingCompanionCarouselRenderer.adVideoId,y.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,h,a,function(t,n,K,P){var w=d.G.get(),l=t.slotId,m=y.shoppingCompanionCarouselRenderer;t=Tn(d.KH.get(),t);return P_(w,l,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new PD(m),n,K,m.impressionPings,t,y.shoppingCompanionCarouselRenderer.adLayoutLoggingData,P)}); else if(y.adBreakServiceRenderer){if(!dtX(T))return[];if(H==="AD_PLACEMENT_KIND_PAUSE")return VlD(d.U.get(),h,a,T.renderer.adBreakServiceRenderer,Y);if(H!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&H!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return oh7(d.U.get(),h,a,T.renderer.adBreakServiceRenderer,Y,e,U);J.aN||Jm("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:H,adPlacementConfig:h,daiEnabledForContentVideo:String(U),isServedFromLiveInfra:String(J.aN),clientPlaybackNonce:J.clientPlaybackNonce}); if(H==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!d.Yx)return new S("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!d.NU)return new S("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");d.NU.fg({adPlacementRenderer:T,contentCpn:Y,O6:e});e=d.Yx.get().getCurrentTimeSec(1,!1);return wDH(d.U.get(),T.renderer.adBreakServiceRenderer,h,e,Y,a,U)}if(!d.qM)return new S("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); d.qM.fg({adPlacementRenderer:T,contentCpn:Y,O6:e})}else{if(y.clientForecastingAdRenderer)return NEI(d.U.get(),d.G.get(),h,a,y.clientForecastingAdRenderer,Y,e,x);if(y.invideoOverlayAdRenderer)return hr2(d.U.get(),d.G.get(),h,a,y.invideoOverlayAdRenderer,Y,e,x);if(y.instreamAdPlayerOverlayRenderer)return x1D(d.U.get(),d.G.get(),h,a,y.instreamAdPlayerOverlayRenderer,Y,x);if((y.linearAdSequenceRenderer||y.instreamVideoAdRenderer)&&p)return je_(d.U.get(),d.G.get(),T,Y,x,N,!d.T2.get().J.C().N("html5_override_ad_video_length_killswitch")); if(y.linearAdSequenceRenderer&&!p){if(b)return[];s7(q,y,H);if(y.linearAdSequenceRenderer.adLayoutMetadata){if(!D3X(y.linearAdSequenceRenderer))return new S("Received invalid LinearAdSequenceRenderer.")}else if(y.linearAdSequenceRenderer.linearAds==null)return new S("Received invalid LinearAdSequenceRenderer.");if(g.D(y.linearAdSequenceRenderer.adStart,L6)){Jm("Found AdNotify in LinearAdSequenceRenderer");T=g.D(y.linearAdSequenceRenderer.adStart,L6);if(!jaX(T))return new S("Invalid AdMessageRenderer."); U=y.linearAdSequenceRenderer.linearAds;return pDf(d.T.get(),d.U.get(),d.G.get(),d.KH.get(),h,a,T,AR(y.linearAdSequenceRenderer.adLayoutMetadata)?y.linearAdSequenceRenderer.adLayoutMetadata:void 0,U,Y,e,J,x,F,d.loadPolicy,d.T2.get())}return tog(d.U.get(),d.G.get(),h,a,y.linearAdSequenceRenderer.linearAds,AR(y.linearAdSequenceRenderer.adLayoutMetadata)?y.linearAdSequenceRenderer.adLayoutMetadata:void 0,Y,e,J,x,F,d.loadPolicy,d.T2.get(),R)}if(!y.remoteSlotsRenderer||U){if(y.instreamVideoAdRenderer&& !p){if(b)return[];s7(q,y,H);return Gqn(d.U.get(),d.G.get(),h,a,y.instreamVideoAdRenderer,Y,e,J,x,F,d.loadPolicy,d.T2.get(),d.KH.get(),R)}if(y.instreamSurveyAdRenderer)return L0Y(d.U.get(),d.G.get(),y.instreamSurveyAdRenderer,h,a,Y,x,WA(d.T2.get(),"supports_multi_step_on_desktop"));if(y.sandwichedLinearAdRenderer!=null)return wmI(y.sandwichedLinearAdRenderer)?g.D(y.sandwichedLinearAdRenderer.adVideoStart,L6)?(Jm("Found AdNotify in SandwichedLinearAdRenderer"),T=g.D(y.sandwichedLinearAdRenderer.adVideoStart, L6),jaX(T)?(U=g.D(y.sandwichedLinearAdRenderer.linearAd,PY))?rV6(T,U,h,d.T.get(),d.U.get(),d.G.get(),d.KH.get(),a,Y,e,J,x,F,d.loadPolicy,d.T2.get()):new S("Missing IVAR from Sandwich"):new S("Invalid AdMessageRenderer.")):tog(d.U.get(),d.G.get(),h,a,[y.sandwichedLinearAdRenderer.adVideoStart,y.sandwichedLinearAdRenderer.linearAd],void 0,Y,e,J,x,F,d.loadPolicy,d.T2.get()):new S("Received invalid SandwichedLinearAdRenderer.");if(y.videoAdTrackingRenderer!=null)return gUI(d.U.get(),d.G.get(),y.videoAdTrackingRenderer, h,a,Y,e,J.mT,x)}}return[]}; C6=function(d,q,T,Y,e,U,b,J){g.W.call(this);var F=this;this.U=d;this.j=q;this.eT=Y;this.Yx=e;this.T2=U;this.Hv=b;this.Gq=J;this.G=null;T.get().addListener(this);this.addOnDisposeCallback(function(){T.JF()||T.get().removeListener(F)}); Y.get().addListener(this);this.addOnDisposeCallback(function(){Y.JF()||Y.get().removeListener(F)})}; wN=function(d,q,T){var Y=d.Yx.get().getCurrentTimeSec(1,!1);d.T2.get().J.C().uF()&&cn(d.Hv.get(),"sdai","onopp.1;evt."+T.event+";start."+T.startSecs.toFixed(3)+";d."+T.sS.toFixed(3));eP(d.U.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=d.j.get(),U=q.adPlacementRenderer.renderer.adBreakServiceRenderer,b=q.contentCpn,J=q.adPlacementRenderer.adSlotLoggingData;uv(d.T2.get());var F=d.Hv;var N=e.T2.get();N=g.Yv(N.J.C().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var R=e.T2.get();var x=g.Yv(R.J.C().experiments,"min_prefetch_offset_sec_for_livestream_optimization");R=T.startSecs*1E3;R={t8:new hx(R,R+T.sS*1E3),b0:!1,cueProcessedMs:Y*1E3};var y=T.startSecs+T.sS;if(Y===0)R.kp=new hx(0,y*1E3);else{x=T.startSecs-x;var h=x-Y;R.kp=h<=0?new hx(x*1E3,y*1E3):new hx(Math.floor(Y+Math.random()*Math.min(h,N))*1E3,y*1E3)}U=bv(e,U,b,R,J,[new N_(T)]);Dw(e.T2.get())&&cn(F.get(),"abrsm","cpi."+T.identifier+";cps."+T.startSecs+";cpd."+T.sS+";cts."+Y+";rbf."+R.kp.start);F.get().J.Nd(T.startSecs- Y,R.kp.start/1E3-Y);return[U]})}; f6=function(d){var q,T=(q=l7(d.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:q.current;if(!T)return null;q=l7(d.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var Y=d.layoutId,e=l7(d.clientMetadata,"metadata_type_content_cpn"),U=l7(d.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b=l7(d.clientMetadata,"metadata_type_player_overlay_layout_renderer"),J=l7(d.clientMetadata,"metadata_type_player_underlay_renderer"),F=l7(d.clientMetadata, "metadata_type_ad_placement_config"),N=l7(d.clientMetadata,"metadata_type_video_length_seconds");var R=ze(d.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?l7(d.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):ze(d.clientMetadata,"metadata_type_layout_enter_ms")&&ze(d.clientMetadata,"metadata_type_layout_exit_ms")?(l7(d.clientMetadata,"metadata_type_layout_exit_ms")-l7(d.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{jP:Y,contentCpn:e,Z2:T,Z3:q,instreamAdPlayerOverlayRenderer:U, playerOverlayLayoutRenderer:b,instreamAdPlayerUnderlayRenderer:J,adPlacementConfig:F,videoLengthSeconds:N,lc:R,inPlayerLayoutId:l7(d.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:l7(d.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; zr1=function(d,q){return fhg(d,q)}; i3g=function(d,q){q=fhg(d,q);if(!q)return null;var T;q.lc=(T=l7(d.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:T.adBreakRemainingLengthSeconds;return q}; fhg=function(d,q){var T,Y=(T=l7(d.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:T.current;if(!Y)return null;T=gP_(d,q);return{x7:$PI(d,q),adPlacementConfig:l7(d.clientMetadata,"metadata_type_ad_placement_config"),Wb:T,contentCpn:l7(d.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:l7(d.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:l7(d.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:l7(d.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,lc:void 0,Z2:Y,jP:d.layoutId,videoLengthSeconds:l7(d.clientMetadata,"metadata_type_video_length_seconds")}}; zb=function(d,q,T,Y,e,U,b,J,F){g.W.call(this);this.T=d;this.X=q;this.S=T;this.j=Y;this.G=e;this.U=U;this.KH=b;this.T2=J;this.Xw=F;this.B4=!0}; Ihj=function(d,q,T){return Pzj(d.G.get(),q.contentCpn,q.jP,function(Y){return WPQ(d.U.get(),Y.slotId,T,q.adPlacementConfig,q.jP,Tn(d.KH.get(),Y))})}; iv=function(d,q,T,Y,e,U,b,J){g.W.call(this);this.U=d;this.G=q;this.j=T;this.T2=Y;this.T=e;this.Xw=U;this.Yx=b;this.yU=J}; Ix=function(d){g.W.call(this);this.G=d}; eP=function(d,q,T,Y){d.G().qp(q,Y);T=T();d=d.G();d.JA.o1("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",q,Y,T);q=g.E(T);for(T=q.next();!T.done;T=q.next())a:{Y=d;T=T.value;Y.JA.fq("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",T);Y.JA.fq("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",T);try{var e=Y.G;if(g.nh(T.slotId))throw new S("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(gp(e,T))throw new S("Duplicate registration for slot.",{slotId:T.slotId,slotEntryTriggerType:T.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.Rt.Xg.has(T.slotType))throw new S("No fulfillment adapter factory registered for slot of type: "+T.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.Rt.kI.has(T.slotType))throw new S("No SlotAdapterFactory registered for slot of type: "+T.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");O5(e,"TRIGGER_CATEGORY_SLOT_ENTRY",T.slotEntryTrigger?[T.slotEntryTrigger]:[]);O5(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", T.slotFulfillmentTriggers);O5(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",T.slotExpirationTriggers);var U=Y.G,b=T.slotType+"_"+T.slotPhysicalPosition,J=jh(U,b);if(gp(U,T))throw new S("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");J.set(T.slotId,new YLf(T));U.G.set(b,J)}catch(b_){b_ instanceof S&&b_.b9?(Y.JA.ys("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",b_.b9,T),Jm(b_,T,void 0,void 0,b_.kA)):(Y.JA.ys("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", T),Jm(b_,T));break a}gp(Y.G,T).X=!0;try{var F=Y.G,N=gp(F,T),R=T.slotEntryTrigger,x=F.Rt.QP.get(R.triggerType);x&&(x.BR("TRIGGER_CATEGORY_SLOT_ENTRY",R,T,null),N.yv.set(R.triggerId,x));for(var y=g.E(T.slotFulfillmentTriggers),h=y.next();!h.done;h=y.next()){var H=h.value,a=F.Rt.QP.get(H.triggerType);a&&(a.BR("TRIGGER_CATEGORY_SLOT_FULFILLMENT",H,T,null),N.lr.set(H.triggerId,a))}for(var p=g.E(T.slotExpirationTriggers),t=p.next();!t.done;t=p.next()){var n=t.value,K=F.Rt.QP.get(n.triggerType);K&&(K.BR("TRIGGER_CATEGORY_SLOT_EXPIRATION", n,T,null),N.K.set(n.triggerId,K))}var P=F.Rt.Xg.get(T.slotType).get().build(F.j,T);N.L=P;var w=F.Rt.kI.get(T.slotType).get().build(F.S,T);w.init();N.U=w}catch(b_){b_ instanceof S&&b_.b9?(Y.JA.ys("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",b_.b9,T),Jm(b_,T,void 0,void 0,b_.kA)):(Y.JA.ys("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",T),Jm(b_,T));Jo(Y,T,!0);break a}Y.JA.fq("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",T);Y.G.Ec(T);for(var l=g.E(Y.U),m=l.next();!m.done;m= l.next())m.value.Ec(T);Rj(Y,T)}}; mo=function(d,q,T,Y,e){g.W.call(this);var U=this;this.U=d;this.j=q;this.l$=T;this.context=e;this.G=new Map;Y.get().addListener(this);this.addOnDisposeCallback(function(){Y.JF()||Y.get().removeListener(U)})}; iUN=function(d,q){var T=0x8000000000000,Y=0,e=0x8000000000000;var U=g.E(q.slotFulfillmentTriggers);for(var b=U.next();!b.done;b=U.next())if(b=b.value,b instanceof qm){var J=b.G.start;T=Math.min(T,J);Y=Math.max(Y,b.G.end);b.visible&&(e=Math.min(e,J))}else Jm("Found unexpected fulfillment trigger for throttled slot.",q,null,{fulfillmentTrigger:b});U=T;e=e<0x8000000000000&&T0&&ME(d.X(),T)}; F4=function(d,q,T,Y,e){for(var U=[],b=g.E(d.YB.values()),J=b.next();!J.done;J=b.next()){var F=J=J.value,N=F.trigger;F=F.slot;if(N.triggerType===q){if(N instanceof o0||N instanceof Vj||N instanceof T8){if(e&&N.breakDurationMs!==T)continue;if(!e&&N.breakDurationMs===T)continue;if(Y.has(F.slotId))continue}U.push(J)}}U.length>0&&ME(d.X(),U)}; U__=function(d,q){q=(q.sS+1)*1E3;var T=void 0;d=g.E(d.YB.values());for(var Y=d.next();!Y.done;Y=d.next()){var e=Y.value;Y=e.trigger;e=e.slot;Y instanceof o0&&Y.breakDurationMs<=q&&(!T||Y.breakDurationMs>T.trigger.breakDurationMs)&&(T={slot:e,trigger:Y})}return T}; bm1=function(d){d=d.adPlacementRenderer.config.adPlacementConfig;if(!d.prefetchModeConfig||!d.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;d=Number(d.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(d)||d<=0?0:Math.floor(Math.random()*d)}; X4g=function(d){d=d.adPlacementRenderer.config.adPlacementConfig;if(d.prefetchModeConfig&&d.prefetchModeConfig.cacheFetchRefreshDurationMs&&(d=Number(d.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(d)||d<=0)))return d}; N7=function(d){d.G=null;d.YB.clear();d.U&&d.U.stop();d.S&&d.S.stop();var q;(q=d.j)==null||q.stop();delete d.j}; YHH=function(d){var q=[];d=g.E(d.YB.values());for(var T=d.next();!T.done;T=d.next())T=T.value.trigger,T instanceof o0&&q.push(T.breakDurationMs);return q}; Rm=function(d){g.W.call(this);this.j=d;this.B4=!0;this.YB=new Map;this.G=new Map;this.U=new Map}; Jsf=function(d,q){var T=[];if(q=d.G.get(q.layoutId)){q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next())(Y=d.U.get(Y.value.triggerId))&&T.push(Y)}return T}; xC=function(d){g.W.call(this);this.G=d;this.YB=new Map}; sVg=function(d,q){for(var T=[],Y=g.E(d.YB.values()),e=Y.next();!e.done;e=Y.next())e=e.value,e.trigger instanceof DD&&e.trigger.slotId===q&&T.push(e);T.length>=1&&ME(d.G(),T)}; $_n=function(d,q){var T={slotId:U0(q,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],nf:"surface",clientMetadata:new St([])},Y=Object,e=Y.assign;q=Cu(q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",T.slotId);q={layoutId:q,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",GG:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"surface", clientMetadata:new St([]),HF:f5_(!1,T.slotId,T.slotType,T.slotPhysicalPosition,T.nf,T.slotEntryTrigger,T.slotFulfillmentTriggers,T.slotExpirationTriggers,q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(Y,{},d,{r6:!0,slot:T,layout:q})}; vh7=function(d,q,T,Y){var e=d.kind;Y=Y?!1:!d.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return Y={t8:new hx(-0x8000000000000,-0x8000000000000),b0:Y},T!=null&&(Y.kp=new hx(-0x8000000000000,-0x8000000000000)),Y;case "AD_PLACEMENT_KIND_END":return Y={t8:new hx(0x7ffffffffffff,0x8000000000000),b0:Y},T!=null&&(Y.kp=new hx(Math.max(0,q-T),0x8000000000000)),Y;case "AD_PLACEMENT_KIND_MILLISECONDS":e=d.adTimeOffset;e.offsetStartMilliseconds||Jm("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); e.offsetEndMilliseconds||Jm("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");d=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);e===-1&&(e=q);if(Number.isNaN(d)||Number.isNaN(e)||d>e)return new S("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:e},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",e===q&&d-500<=e);Y={t8:new hx(d,e),b0:Y};if(T!=null){d=Math.max(0,d-T);if(d===e)return Y;Y.kp=new hx(d,e)}return Y; default:return new S("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:d})}}; ggX=function(d){if(!d||!d.adPlacements&&!d.adSlots)return!1;for(var q=g.E(d.adPlacements||[]),T=q.next();!T.done;T=q.next())if(T=T.value)if(T=T.adPlacementRenderer,T!=null&&(T.config&&T.config.adPlacementConfig&&T.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;d=g.E(d.adSlots||[]);for(q=d.next();!q.done;q=d.next()){var Y=T=void 0;if(((T=g.D(q.value,ei))==null?void 0:(Y=T.adSlotMetadata)==null?void 0:Y.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; yI=function(d){this.T2=d;this.U=new Map;this.G=new Map;this.j=new Map}; U0=function(d,q){if(hH(d.T2.get())){var T=d.U.get(q)||0;T++;d.U.set(q,T);return q+"_"+T}return g.RC(16)}; Cu=function(d,q,T){if(hH(d.T2.get())){var Y=d.G.get(q)||0;Y++;d.G.set(q,Y);return T+"_"+q+"_"+Y}return g.RC(16)}; p6=function(d,q){if(hH(d.T2.get())){var T=d.j.get(q)||0;T++;d.j.set(q,T);return q+"_"+T}return g.RC(16)}; F5Y=function(d){var q=[new UH(d.jP),new sH(d.Z2),new ua(d.adPlacementConfig),new xg(d.videoLengthSeconds),new rJ(d.lc)];d.instreamAdPlayerOverlayRenderer&&q.push(new m0(d.instreamAdPlayerOverlayRenderer));d.playerOverlayLayoutRenderer&&q.push(new So(d.playerOverlayLayoutRenderer));d.Z3&&q.push(new zm(d.Z3));return q}; NJY=function(d,q,T,Y,e,U){d=T.inPlayerLayoutId?T.inPlayerLayoutId:Cu(U,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",d);var b,J,F=T.instreamAdPlayerOverlayRenderer?(b=T.instreamAdPlayerOverlayRenderer)==null?void 0:b.adLayoutLoggingData:(J=T.playerOverlayLayoutRenderer)==null?void 0:J.adLayoutLoggingData;b={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",nf:q};return{layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",GG:new Map,layoutExitNormalTriggers:[new lu(function(N){return p6(U, N)},T.jP)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:q,clientMetadata:Y,HF:e(b),adLayoutLoggingData:F}}; HN=function(d,q){var T=this;this.U=d;this.T2=q;this.G=function(Y){return p6(T.U.get(),Y)}}; WPQ=function(d,q,T,Y,e,U){T=new St([new la(T),new ua(Y)]);q=Cu(d.U.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",q);Y={layoutId:q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",nf:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",GG:new Map,layoutExitNormalTriggers:[new lu(function(b){return p6(d.U.get(),b)},e)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:T,HF:U(Y),adLayoutLoggingData:void 0}}; H_=function(d,q,T,Y,e){var U=F5Y(Y);return NJY(q,T,Y,new St(U),e,d.U.get())}; Roj=function(d,q,T,Y,e){var U=F5Y(Y);U.push(new WD(Y.x7));U.push(new C3(Y.Wb));return NJY(q,T,Y,new St(U),e,d.U.get())}; P_=function(d,q,T,Y,e,U,b,J,F,N){q=Cu(d.U.get(),T,q);var R={layoutId:q,layoutType:T,nf:"core"},x=new Map;b&&x.set("impression",b);b=[new Yb(d.G,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];N&&b.push(new Sd(d.G,N,["normal"]));return{layoutId:q,layoutType:T,GG:x,layoutExitNormalTriggers:b,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([Y,new ua(U),new UH(e)]),HF:J(R),adLayoutLoggingData:F}}; W_=function(d,q,T,Y,e,U,b,J,F){q=Cu(d.U.get(),T,q);var N={layoutId:q,layoutType:T,nf:"core"},R=[new Yb(d.G,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];F&&R.push(new Sd(d.G,F,["normal"]));return{layoutId:q,layoutType:T,GG:new Map,layoutExitNormalTriggers:R,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([Y,new ua(U),new UH(e)]),HF:b(N),adLayoutLoggingData:J}}; O7=function(d,q,T){var Y=[];Y.push(new e5(d.G,T));q&&Y.push(q);return Y}; Zw=function(d,q,T,Y,e,U,b){var J={layoutId:q,layoutType:T,nf:"core"};return{layoutId:q,layoutType:T,GG:new Map,layoutExitNormalTriggers:b,layoutExitSkipTriggers:[new zu(d.G,q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([new Gm(Y),new ua(e)]),HF:U(J),adLayoutLoggingData:Y.adLayoutLoggingData}}; Rx=function(d,q,T,Y,e,U,b,J){var F={layoutId:q,layoutType:U,nf:"core"};return{layoutId:q,layoutType:U,GG:new Map,layoutExitNormalTriggers:[new lu(d.G,T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([new ua(Y)].concat(g.RQ(b))),HF:e(F),adLayoutLoggingData:J}}; rN=function(d,q,T,Y){if(d.T2.get().pz(q.kind==="AD_PLACEMENT_KIND_START"))if(T===void 0)Jm("Expected SSAP layout ID in renderer",void 0,void 0,{caller:Y});else return T}; H3Q=function(d,q,T,Y,e,U,b,J,F,N,R,x,y){d=n6(d,q,T,e,U,b,J,F,x,rN(d,T,Y.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),y);q=d.rD;T=new b7(d.KJ);Y=d.layoutExitSkipTriggers;N>0&&(q.push(T),q.push(new f3(N)),Y=[]);q.push(new wE(R));return{Y9:{layoutId:d.layoutId,layoutType:d.layoutType,GG:d.GG,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:d.nf,clientMetadata:new St(q),HF:d.HF,adLayoutLoggingData:d.adLayoutLoggingData}, Xu:Y,MO:d.layoutExitMuteTriggers,hI:d.layoutExitUserInputSubmittedTriggers,YF:d.J1,Xd:d.Xd}}; EUj=function(d,q,T,Y,e,U,b,J,F,N){q=n6(d,q,T,Y,U,new Map,b,function(R){return J(R,F)},void 0,rN(d,T,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); d=new EO(d.G,q.KJ);T=new b7(q.KJ);N=new wE(N);return{Y9:{layoutId:q.layoutId,layoutType:q.layoutType,GG:q.GG,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:q.nf,clientMetadata:new St([].concat(g.RQ(q.rD),[T,N])),HF:q.HF,adLayoutLoggingData:q.adLayoutLoggingData},Xu:q.layoutExitSkipTriggers,MO:q.layoutExitMuteTriggers,hI:[].concat(g.RQ(q.layoutExitUserInputSubmittedTriggers),[d]),YF:q.J1,Xd:q.Xd}}; n6=function(d,q,T,Y,e,U,b,J,F,N,R){q=N!=null?N:Cu(d.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",q);N={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",nf:"adapter"};J=J(q);var x=l7(J.clientMetadata,"metadata_type_fulfilled_layout");x||Jm("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var y=x?x.layoutId:"";T=[new ua(T),new ts(Y),new Ge(e)];x&&T.push(new Xb(x.layoutType));R&&T.push(new c4(R));return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", GG:U,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new JR(d.G,y)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"adapter",rD:T,HF:b(N),adLayoutLoggingData:F,Xd:J,KJ:y}}; LPg=function(d,q,T,Y,e,U,b,J,F,N,R){d=x_Q(d,q,"core",T,Y,e,U,b,J,F,N,void 0,R);return{layoutId:d.layoutId,layoutType:d.layoutType,GG:d.GG,layoutExitNormalTriggers:d.layoutExitNormalTriggers,layoutExitSkipTriggers:d.layoutExitSkipTriggers,layoutExitMuteTriggers:d.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:d.layoutExitUserInputSubmittedTriggers,J1:d.J1,nf:d.nf,clientMetadata:new St(d.TJ),HF:d.HF,adLayoutLoggingData:d.adLayoutLoggingData}}; K0I=function(d,q,T,Y,e,U,b,J,F,N,R,x,y){q=x_Q(d,q,"adapter",T,Y,e,U,b,J,F,R,x,y);Y=q.layoutExitSkipTriggers;e=q.TJ;T.adPodSkipTarget&&T.adPodSkipTarget>0&&(e.push(N),e.push(new f3(T.adPodSkipTarget)),Y=[]);e.push(new wE(J.adPodIndex));T.isCritical&&(Y=[new Sd(d.G,q.layoutId,["error"])].concat(g.RQ(Y)));return{Y9:{layoutId:q.layoutId,layoutType:q.layoutType,GG:q.GG,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:q.nf, clientMetadata:new St(e),HF:q.HF,adLayoutLoggingData:q.adLayoutLoggingData},Xu:Y,MO:q.layoutExitMuteTriggers,hI:q.layoutExitUserInputSubmittedTriggers,YF:q.J1}}; x_Q=function(d,q,T,Y,e,U,b,J,F,N,R,x,y){var h={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",nf:T};e=[new ua(e),new Dh(F),new ia(Y.externalVideoId),new Iw(J),new Ge({impressionCommands:Y.impressionCommands,abandonCommands:Y.onAbandonCommands,completeCommands:Y.completeCommands,progressCommands:Y.adVideoProgressCommands}),new yq(U),new $g({current:null}),new xg(b)];(U=Y.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new m0(U));(b=Y.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new So(b)); x&&e.push(new hs(x));(x=Y.playerUnderlay)&&e.push(new la(x));J=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER");x=(x=U?U.elementId:b==null?void 0:b.layoutId)?x:Cu(d.U.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",J);e.push(new b7(x));e.push(new Js(J));e.push(new c4(F.adPodIndex));Y.adNextParams&&e.push(new BD(Y.adNextParams));Y.shrunkenPlayerBytesConfig&&e.push(new VK(Y.shrunkenPlayerBytesConfig));Y.clickthroughEndpoint&&e.push(new K3(Y.clickthroughEndpoint));Y.legacyInfoCardVastExtension&&e.push(new B4(Y.legacyInfoCardVastExtension)); Y.sodarExtensionData&&e.push(new H4(Y.sodarExtensionData));R&&e.push(new nm(R));e.push(new P4(R5(Y.pings)));F=xu(Y.pings);if(y){a:{y=g.E(y);for(R=y.next();!R.done;R=y.next())if(R=R.value,R.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(U=g.D(R.fulfillmentContent.fulfilledLayout,mu))&&(U=g.D(U.renderingContent,iV))&&U.associatedPlayerBytesLayoutId===q){y=R;break a}y=void 0}y&&e.push(new vD(y))}return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",GG:F,layoutExitNormalTriggers:[new UO(d.G,q)],layoutExitSkipTriggers:Y.skipOffsetMilliseconds? [new JR(d.G,x)]:[],layoutExitMuteTriggers:[new JR(d.G,x)],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:T,TJ:e,HF:N(h),adLayoutLoggingData:Y.adLayoutLoggingData}}; AV7=function(d,q,T,Y,e,U,b,J,F){Y.every(function(R){return i7(R,[],["LAYOUT_TYPE_MEDIA"])})||Jm("Unexpect subLayout type for DAI composite layout"); q=Cu(d.U.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",q);var N={layoutId:q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",nf:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",GG:new Map,layoutExitNormalTriggers:[new vn(d.G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([new Qq(T),new M_(J),new Fb(Y),new ua(e),new As(U),new EH({}),new Cm(F)]),HF:b(N)}}; M2j=function(d){return d!=null}; QI=function(d,q,T){var Y=this;this.U=d;this.j=q;this.T2=T;this.G=function(e){return p6(Y.U.get(),e)}}; wDH=function(d,q,T,Y,e,U,b){if(!T.prefetchModeConfig)return new S("AdPlacementConfig for Live Prefetch is missing prefetch_config");T=T.prefetchModeConfig;Y*=1E3;var J=[];if(!T.breakLengthMs)return new S("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var F=g.E(T.breakLengthMs),N=F.next();!N.done;N=F.next())if(N=N.value,Number(N)>0){var R=Y+Number(T.startTimeOffsetMs),x=R+Number(T.cacheFetchSmearingDurationMs);N={t8:new hx(x,x+Number(N)),b0:!1,kp:new hx(Math.floor(R+Math.random()* Number(T.cacheFetchSmearingDurationMs)),x),cueProcessedMs:Y?Y:R};R=[];R.push(new fm({}));x=[];x.push(new XY(d.G));x.push(new ghg(d.G));b&&R.push(new EH({}));J.push(bv(d,q,e,N,U,R,x))}return J}; bv=function(d,q,T,Y,e,U,b){U=U===void 0?[]:U;var J=U0(d.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");b||(b=[],Y.kp&&Y.kp.start!==Y.t8.start&&b.push(new qm(d.G,T,new hx(Y.kp.start,Y.t8.start),!1)),b.push(new qm(d.G,T,new hx(Y.t8.start,Y.t8.end),Y.b0)));Y={getAdBreakUrl:q.getAdBreakUrl,vW:Y.t8.start,RW:Y.t8.end,cueProcessedMs:Y.cueProcessedMs};q=new FY(d.G,J);U=[new Z3(Y)].concat(g.RQ(U));return{slotId:J,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:b, slotExpirationTriggers:[new bV(d.G,T),new $b(d.G,J),new gG(d.G,J)],nf:"core",clientMetadata:new St(U),adSlotLoggingData:e}}; ho7=function(d,q,T){var Y=[];T=g.E(T);for(var e=T.next();!e.done;e=T.next())Y.push(ys_(d,q,e.value));return Y}; ys_=function(d,q,T){return T.triggeringSlotId!=null&&T.triggeringSlotId===d?T.clone(q):T}; seX=function(d,q,T,Y,e){return Hmj(d,q,T,Y,e)}; QwH=function(d,q,T,Y){var e=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER");return Hmj(d,e,q,T,Y)}; Hmj=function(d,q,T,Y,e){var U=new ml(d.G,T),b=[new sO(d.G,q)];d=[new $b(d.G,q),new bV(d.G,Y)];return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(e({slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:d},T))]),adSlotLoggingData:void 0}}; Gmf=function(d,q,T,Y,e,U){var b=U0(d.U.get(),"SLOT_TYPE_PLAYER_BYTES"),J=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER"),F=Cu(d.U.get(),"LAYOUT_TYPE_SURVEY",J);Y=M7(d,q,T,Y);var N=[new sO(d.G,b)];T=[new $b(d.G,b),new bV(d.G,T),new zu(d.G,F)];if(Y instanceof S)return Y;J=U({slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:N,slotExpirationTriggers:T},{slotId:J,layoutId:F});U=J.lwv;J=J.TL;return[{slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:B_(d,q,b,Y),slotFulfillmentTriggers:K6(d,q,b,N),slotExpirationTriggers:T,nf:"core",clientMetadata:new St([new pm(U),new u7(Gb(q)),new wJ({Px:d.Px(q)})]),adSlotLoggingData:e},J]}; Gb=function(d){return d.kind==="AD_PLACEMENT_KIND_START"}; kqn=function(d,q,T,Y,e){e=e?e:U0(d.U.get(),"SLOT_TYPE_IN_PLAYER");T=new ml(d.G,T);var U=[new sO(d.G,e)];d=[new bV(d.G,q),new $b(d.G,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:U,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(Y({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:T,slotFulfillmentTriggers:U,slotExpirationTriggers:d}))])}}; Pzj=function(d,q,T,Y){var e=U0(d.U.get(),"SLOT_TYPE_PLAYER_UNDERLAY");T=new ml(d.G,T);var U=[new sO(d.G,e)];d=[new bV(d.G,q),new $b(d.G,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:U,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(Y({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:T,slotFulfillmentTriggers:U,slotExpirationTriggers:d}))])}}; OoQ=function(d,q,T,Y,e,U,b){var J=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER"),F=Cu(d.U.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",J);Y=QV1(d,Y,U,b,F);if(Y instanceof S)return Y;b=[new sO(d.G,J)];e=[new bV(d.G,U),new sO(d.G,e),new RF(d.G,e)];T=Tn(T,{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:b,slotExpirationTriggers:e});d=d.j.get();U={layoutId:F,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",nf:"core"};q={layoutId:F,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", GG:new Map,layoutExitNormalTriggers:[new Qa_(d.G,F,q.durationMs)],layoutExitSkipTriggers:[new cU7(d.G,F,q.durationMs)],J1:[new Ml1(d.G,F)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],nf:"core",clientMetadata:new St([new Km(q)]),HF:T(U)};return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:b,slotExpirationTriggers:e,clientMetadata:new St([new pm(q)])}}; yb6=function(d,q,T,Y,e,U){q=M7(d,q,T,Y);if(q instanceof S)return q;var b=q instanceof qm?new yU7(d.G,T,q.G):null;Y=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER");var J=[new sO(d.G,Y)];d=[new bV(d.G,T),new $b(d.G,Y)];U=U({slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:q,slotFulfillmentTriggers:J,slotExpirationTriggers:d},b);return U instanceof m5?new S(U):{slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:J,slotExpirationTriggers:d, nf:"core",clientMetadata:new St([new pm(U)]),adSlotLoggingData:e}}; RrY=function(d,q,T,Y){var e=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER"),U=new fd(d.G,q),b=[new Nm(d.G,e)];d=[new bV(d.G,q),new $b(d.G,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(Y({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:d}))]),adSlotLoggingData:T}}; xtn=function(d,q,T,Y){var e=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER");T=new ml(d.G,T);var U=[new sO(d.G,e)],b=[new $b(d.G,e),new bV(d.G,q)];U={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:T,slotFulfillmentTriggers:U,slotExpirationTriggers:b};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:[new sO(d.G,e)],slotExpirationTriggers:[new bV(d.G,q),new $b(d.G,e)],nf:"core",clientMetadata:new St([new pm(Y(U))])}}; FPg=function(d,q,T,Y,e){var U=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER");T=new I0(d.G,Y,T);Y=[new sO(d.G,U)];d=[new bV(d.G,q)];return{slotId:U,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:Y,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(e({slotId:U,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:T,slotFulfillmentTriggers:Y,slotExpirationTriggers:d}))])}}; bo1=function(d,q,T,Y,e,U){var b=U0(d.U.get(),q);return cN(d,b,q,new ml(d.G,Y),[new bV(d.G,T),new $b(d.G,b),new Sd(d.G,Y,["error"])],e,U)}; Utn=function(d,q,T,Y,e,U,b){var J=U0(d.U.get(),q);return cN(d,J,q,new Sd(d.G,e,["normal"]),[new bV(d.G,T),new $b(d.G,J),new Sd(d.G,Y,["error"])],U,b)}; qvQ=function(d,q,T,Y,e){var U=U0(d.U.get(),q);return cN(d,U,q,new fd(d.G,T),[new bV(d.G,T),new $b(d.G,U)],Y,e)}; $1Q=function(d,q,T,Y,e){T=T?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var U=U0(d.U.get(),T);q=new fd(d.G,q);var b=[new sO(d.G,U)];d=[new $b(d.G,U)];return{slotId:U,slotType:T,slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:b,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(e({slotId:U,slotType:T,slotPhysicalPosition:1,nf:"core",slotEntryTrigger:q,slotFulfillmentTriggers:b,slotExpirationTriggers:d}))]),adSlotLoggingData:Y}}; cVI=function(d,q,T,Y){var e=U0(d.U.get(),"SLOT_TYPE_PLAYER_BYTES"),U=new dG(d.G),b=[new Nm(d.G,e)];d=[new bV(d.G,q)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(Y({slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:d})),new EH({})]),adSlotLoggingData:T}}; nU6=function(d,q){return uN7(d.T2.get())?new Sd(d.G,q,["normal","error","skipped"]):new Sd(d.G,q,["normal"])}; B5j=function(d,q,T,Y,e){q=nU6(d,q);d=tC(d,q,T);e=e({slotId:d.slotId,slotType:d.slotType,slotPhysicalPosition:d.slotPhysicalPosition,slotEntryTrigger:d.slotEntryTrigger,slotFulfillmentTriggers:d.slotFulfillmentTriggers,slotExpirationTriggers:d.slotExpirationTriggers,nf:d.nf});return e instanceof S?e:{kX:Object.assign({},d,{clientMetadata:new St([new pm(e.layout)]),adSlotLoggingData:Y}),HA:e.HA}}; KP6=function(d,q,T,Y,e,U,b){T=rbH(d,q,T,Y);if(T instanceof S)return T;b=b({slotId:T.slotId,slotType:T.slotType,slotPhysicalPosition:T.slotPhysicalPosition,slotEntryTrigger:T.slotEntryTrigger,slotFulfillmentTriggers:T.slotFulfillmentTriggers,slotExpirationTriggers:T.slotExpirationTriggers,nf:T.nf});if(b instanceof S)return b;Y=[new u7(Gb(q)),new pm(b.layout),new wJ({Px:d.Px(q)})];U&&Y.push(new Lm({}));return{kX:{slotId:T.slotId,slotType:T.slotType,slotPhysicalPosition:T.slotPhysicalPosition,slotEntryTrigger:B_(d, q,T.slotId,T.slotEntryTrigger),slotFulfillmentTriggers:K6(d,q,T.slotId,T.slotFulfillmentTriggers),slotExpirationTriggers:T.slotExpirationTriggers,nf:T.nf,clientMetadata:new St(Y),adSlotLoggingData:e},HA:b.HA}}; B_=function(d,q,T,Y){return d.T2.get().pz(Gb(q))?new DD(d.G,T):Y}; K6=function(d,q,T,Y){return d.T2.get().pz(Gb(q))?[new Nm(d.G,T)]:Y}; tC=function(d,q,T){var Y=U0(d.U.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new sO(d.G,Y)];d=[new $b(d.G,Y),new bV(d.G,T)];return{slotId:Y,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:e,slotExpirationTriggers:d,nf:"core"}}; rbH=function(d,q,T,Y){q=M7(d,q,T,Y);return q instanceof S?q:tC(d,q,T)}; F0n=function(d,q,T,Y,e,U){var b=U0(d.U.get(),"SLOT_TYPE_FORECASTING");q=M7(d,q,T,Y);if(q instanceof S)return q;Y=[new sO(d.G,b)];d=[new $b(d.G,b),new bV(d.G,T)];return{slotId:b,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:Y,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(U({slotId:b,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:q,slotFulfillmentTriggers:Y,slotExpirationTriggers:d}))]),adSlotLoggingData:e}}; MtX=function(d,q,T,Y,e){var U=!q.hideCueRangeMarker;switch(q.kind){case "AD_PLACEMENT_KIND_START":return new fd(d.G,T);case "AD_PLACEMENT_KIND_MILLISECONDS":return d=vh7(q,Y),d instanceof S?d:e(d.t8,U);case "AD_PLACEMENT_KIND_END":return new iu(d.G,T,U);default:return new S("Cannot construct entry trigger",{kind:q.kind})}}; QV1=function(d,q,T,Y,e){return MtX(d,q,T,Y,function(U,b){return new x37(d.G,T,U,b,e)})}; M7=function(d,q,T,Y){return MtX(d,q,T,Y,function(e,U){return new qm(d.G,T,e,U)})}; cN=function(d,q,T,Y,e,U,b){d=[new Nm(d.G,q)];return{slotId:q,slotType:T,slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:d,slotExpirationTriggers:e,nf:"core",clientMetadata:new St([new pm(b({slotId:q,slotType:T,slotPhysicalPosition:1,nf:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:d,slotExpirationTriggers:e}))]),adSlotLoggingData:U}}; ET=function(d,q){g.W.call(this);this.T2=d;this.G=q;this.eventCount=0}; jN=function(d,q,T,Y){ET.call(this,d,q);this.T2=d;this.Xw=T;this.context=Y}; am=function(){this.G=new Map}; AH=function(d){this.G="pending";this.U=[];this.j=[];try{d(this.T.bind(this),this.reject.bind(this))}catch(q){this.reject(q)}}; csI=function(){var d,q;return{EH:new AH(function(T,Y){d=T;q=Y}), resolve:d,reject:q}}; OT=function(d){return p0(d)?d:Z4(d)?new AH(function(q,T){d.then(q,T)}):new AH(function(q){q(d)})}; n0=function(d){return new AH(function(q,T){T(d)})}; rg=function(d){try{return OT(d())}catch(q){return n0(q)}}; BN=function(d,q,T){var Y=csI(),e=Y.EH,U=Y.resolve,b=Y.reject;d.U.push(function(J){if(q)try{var F=q(J);U(F)}catch(N){b(N)}else U(J)}); d.j.push(function(J){if(T)try{var F=T(J);U(F)}catch(N){b(N)}else b(J)}); tH(d);return e}; K0=function(d,q){return BN(d,void 0,q)}; Eg7=function(d,q){BN(d,function(T){return BN(OT(q()),function(){return T})},function(T){return BN(OT(q()),function(){return n0(T)})})}; tH=function(d){if(d.G==="fulfilled"){var q=d.U;d.U=[];d.j=[];q=g.E(q);for(var T=q.next();!T.done;T=q.next())T=T.value,T(d.result)}else if(d.G==="rejected")for(q=d.j,d.U=[],d.j=[],q=g.E(q),T=q.next();!T.done;T=q.next())T=T.value,T(d.error)}; GD=function(d,q){return jVX(q.call(d))}; L0=function(d){return function T(){return Wg(T,function(Y){if(Y.U==1)return g.aQ(Y,2),g.B(Y,{EH:OT(d)},4);if(Y.U!=2)return Y.return(Y.G);g.KN(Y);return g.LN(Y,0)})}()}; jVX=function(d){return rg(function(){return kC(d,d.next())})}; kC=function(d,q){return q.done?OT(q.value):K0(BN(q.value.EH,function(T){return kC(d,d.next(T))}),function(T){return kC(d,d.throw(T))})}; PN=function(d,q){if(d.length===0)return OT(NaN);var T=csI(),Y=T.EH,e=T.resolve,U=d.length;d=g.E(d.entries());var b=d.next();for(T={};!b.done;T={xa:void 0},b=d.next()){var J=g.E(b.value);b=J.next().value;J=J.next().value;T.xa=b;Eg7(J,function(F){return function(){Y.G==="pending"&&(a36(q)&&q(F.xa)&&Y.G==="pending"?e(F.xa):(--U,U===0&&e(NaN)))}}(T))}return Y}; WN=function(d){return d.map(function(q){return OT(q)})}; uq=function(d){var q=d.hours||0;var T=d.minutes||0,Y=d.seconds||0;q=Y+T*60+q*3600+(d.days||0)*86400+(d.weeks||0)*604800+(d.months||0)*2629800+(d.years||0)*31557600;q<=0?q={hours:0,minutes:0,seconds:0}:(d=q,q=Math.floor(d/3600),d%=3600,T=Math.floor(d/60),Y=Math.floor(d%60),q={hours:q,minutes:T,seconds:Y});var e=q.hours===void 0?0:q.hours;T=q.minutes===void 0?0:q.minutes;d=q.seconds===void 0?0:q.seconds;Y=e>0;q=[];if(Y){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var U=["fr"],b="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); e="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(C0)?e.replace(",","\u00a0"):U.includes(C0)?e.replace(",","\u202f"):b.includes(C0)?e.replace(",","."):e;q.push(e)}Y=Y===void 0?!1:Y;T=(["af","be","lt"].includes(C0)||Y)&&T<10?AsD().format(T):(new Intl.NumberFormat("en-u-nu-latn")).format(T);q.push(T);T=AsD().format(d);q.push(T);T=":";"da fi id si sr sr-Latn".split(" ").includes(C0)&&(T=".");return q.join(T)}; AsD=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; p4Y=function(d,q){var T,Y;d=((T=d.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Y=T.videoAuthorizationToken)==null?void 0:Y.credentialTransferTokens)||[];for(T=0;Tq;d=T}else d=!1;return d}; g.Ye=function(d,q){return d.XM+"timedtext_video?ref=player&v="+q.videoId}; g.zoD=function(d){var q=this;this.videoData=d;d={};this.G=(d.c1a=function(){var T=[];if(g.qe.isInitialized()){var Y="";q.videoData&&q.videoData.q2&&(Y=q.videoData.q2+("&r1b="+q.videoData.clientPlaybackNonce));var e={};Y=(e.atr_challenge=Y,e);tU("bg_v",void 0,"player_att");(Y=f36(Y))?(tU("bg_s",void 0,"player_att"),T.push("r1a="+Y)):(tU("bg_e",void 0,"player_att"),T.push("r1c=2"))}else tU("bg_e",void 0,"player_att"),window.trayride||window.botguard?T.push("r1c=1"):T.push("r1c=4");T.push("r1d="+g.qe.getState()); return T.join("&")},d.c6a=function(T){return"r6a="+(Number(T.c)^l9())},d.c6b=function(T){return"r6b="+(Number(T.c)^Number(g.Cs("CATSTAT",0)))},d); this.videoData&&this.videoData.q2?this.Rb=lF(this.videoData.q2):this.Rb={}}; g.imI=function(d){if(d.videoData&&d.videoData.q2){for(var q=[d.videoData.q2],T=g.E(Object.keys(d.G)),Y=T.next();!Y.done;Y=T.next())Y=Y.value,d.Rb[Y]&&d.G[Y]&&(Y=d.G[Y](d.Rb))&&q.push(Y);return q.join("&")}return null}; g.eK=function(d,q){w4I(d,{UU2:g.Yv(q.experiments,"bg_vm_reinit_threshold"),cspNonce:q.cspNonce,XM:q.XM||""})}; I3I=function(){var d=XMLHttpRequest.prototype.fetch;return!!d&&d.length===3}; m_Y=function(d){d=d[X[0]](X[14]);Uo[X[6]](d,62);Uo[X[60]](d,1);Uo[X[46]](d,60);return d[X[34]](X[14])}; vg6=function(d,q){mP(d,2,q.zd,bt,3);mP(d,3,q.innertubeRequest,SHH,3);iz(d,4,q.onesieUstreamerConfig);iz(d,9,q.vO);mP(d,10,q.Ti,XL,3);mP(d,15,q.reloadPlaybackParams,l32,3)}; VtH=function(d,q){mP(d,1,q.formatId,JF,3);fo(d,2,q.startTimeMs);fo(d,3,q.durationMs);fo(d,4,q.QK);fo(d,5,q.wA);mP(d,9,q.Siw,og2,3);mP(d,11,q.RoZ,so,1);mP(d,12,q.FV,so,1)}; dE2=function(d,q){Ie(d,1,q.videoId);fo(d,2,q.lmt)}; og2=function(d,q){if(q.hJ)for(var T=0;T>31));fo(d,16,q.qP);fo(d,17,q.detailedNetworkType);fo(d,18,q.t7);fo(d,19,q.MR);fo(d,21,q.ijU);fo(d,23,q.Gy);fo(d,28,q.cg);fo(d,29,q.dpv);fo(d,34,q.visibility);T=q.playbackRate;if(T!==void 0){var Y=new ArrayBuffer(4);(new Float32Array(Y))[0]=T;T=(new Uint32Array(Y))[0];if(T!==void 0)for(w5(d,285),tV(d,4),Y=0;Y<4;)d.view.setUint8(d.pos,T&255),T>>=8,d.pos+=1,Y+=1}fo(d,36,q.wq); mP(d,38,q.mediaCapabilities,UE6,3);fo(d,39,q.uWO);fo(d,40,q.Kk);fo(d,44,q.playerState);zq(d,46,q.c8);fo(d,48,q.ph);fo(d,50,q.lX);fo(d,51,q.Ju);fo(d,54,q.OZ);if(q.m_)for(T=0;T>31));Ie(d,2,q.message)}; ROX=function(d,q){fo(d,1,q.clientState);mP(d,2,q.tcF,FX2,1)}; gv6=function(d,q){iz(d,1,q.SSw);mP(d,2,q.m3D,Npf,3);mP(d,3,q.coldStartInfo,ROX,3)}; $EN=function(d,q){fo(d,1,q.type);iz(d,2,q.value)}; sjj=function(d,q){Ie(d,1,q.hl);Ie(d,12,q.deviceMake);Ie(d,13,q.deviceModel);fo(d,16,q.clientName);Ie(d,17,q.clientVersion);Ie(d,18,q.osName);Ie(d,19,q.osVersion)}; xE6=function(d,q){Ie(d,1,q.name);Ie(d,2,q.value)}; gj=function(d,q){Ie(d,1,q.url);if(q.FY)for(var T=0;T0&&!(vH7()>(0,g.cj)()-d*1E3))return 0;d=g.Zs("yt-player-quality");if(typeof d==="string"){if(d=g.ZB[d],d>0)return d}else if(d instanceof Object)return d.quality;return 0}; hF=function(){var d=g.Zs("yt-player-proxima-pref");return d==null?null:d}; VhD=function(){var d=g.Zs("yt-player-quality");if(d instanceof Object&&d.quality&&d.previousQuality){if(d.quality>d.previousQuality)return 1;if(d.quality0&&q[0]?d.getAutoplayPolicy(q[0]):d.getAutoplayPolicy("mediaelement");if(Xp1[T])return Xp1[T]}}catch(Y){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; ag=function(d){return d.yH||d.k9||d.mutedAutoplay}; J8f=function(d,q){return ag(d)?q!==1&&q!==2&&q!==0?"AUTOPLAY_STATUS_UNAVAILABLE":d.I1?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; s5D=function(d,q,T){var Y=q.C();d.thirdParty||(d.thirdParty={});Y.ancestorOrigins&&(d.thirdParty.embeddedPlayerContext=Object.assign({},d.thirdParty.embeddedPlayerContext,{ancestorOrigins:Y.ancestorOrigins}));Y.N("embeds_enable_autoplay_and_visibility_signals")&&(Y.U5!=null&&(d.thirdParty.embeddedPlayerContext=Object.assign({},d.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(Y.U5)})),Y.j8&&(d.thirdParty.embeddedPlayerContext=Object.assign({},d.thirdParty.embeddedPlayerContext,{visibilityFractionSource:Y.j8})), d.thirdParty.embeddedPlayerContext=Object.assign({},d.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:jK(),autoplayIntended:ag(q),autoplayStatus:J8f(q,T)}))}; $oN=function(d){var q=[];d=g.E(d.split(","));for(var T=d.next();!T.done;T=d.next()){var Y=T.value;Y&&((T=Y.startsWith("!"))&&(Y=Y.substring(1)),Y=Y.split("-"),Y.length<3||q.push({kE:Y[0],platform:Y[1],deviceVersion:Y[2],ye:T}))}return q}; NX1=function(d){return $oN(d).map(function(q){return{deviceInterface:guQ[Fan[q.kE]]||0,deviceVersion:q.deviceVersion||"",isSleeping:q.ye}})}; g.AF=function(d,q){this.id=d;this.DQ=q;this.captionTracks=[];this.j=this.T=null;this.xtags="";this.S=!1;this.G=null;this.U="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";d=this.DQ.id.split(".");d.length>1&&(this.S=d[1]==="2")}; pY=function(d,q,T,Y,e){this.U=d;this.G=q;this.j=T;this.reason=Y;this.Vv=e===void 0?0:e}; g.ZW=function(d,q,T,Y){return new pY(g.ZB[d]||0,g.ZB[q]||0,T,Y)}; nY=function(d){if(Oo&&d.Vv)return!1;var q=g.ZB.auto;return d.U===q&&d.G===q}; tF=function(d){return rj[d.G||d.U]||"auto"}; RlY=function(d,q){q=g.ZB[q];return d.U<=q&&(!d.G||d.G>=q)}; BI=function(d){return"["+d.U+"-"+d.G+", override: "+(d.j+", reason: "+d.reason+"]")}; KY=function(d,q,T){this.videoInfos=d;this.G=q;this.audioTracks=[];if(this.G){d=new Set;T==null||T({ainfolen:this.G.length});q=g.E(this.G);for(var Y=q.next();!Y.done;Y=q.next())if(Y=Y.value,!Y.DQ||d.has(Y.DQ.id)){var e=void 0,U=void 0,b=void 0;(b=T)==null||b({atkerr:!!Y.DQ,itag:Y.itag,xtag:Y.G,lang:((e=Y.DQ)==null?void 0:e.name)||"",langid:((U=Y.DQ)==null?void 0:U.id)||""})}else e=new g.AF(Y.id,Y.DQ),d.add(Y.DQ.id),this.audioTracks.push(e);T==null||T({atklen:this.audioTracks.length})}}; GG=function(){g.W.apply(this,arguments);this.G=null}; Hw7=function(d,q,T,Y,e,U,b){if(d.G)return d.G;var J={},F=new Set,N={};if(LY(Y)){for(var R in Y.G)Y.G.hasOwnProperty(R)&&(d=Y.G[R],N[d.info.Cf]=[d.info]);return N}R=xoj(q,Y,J);U&&e({aftsrt:ke(R)});for(var x={},y=g.E(Object.keys(R)),h=y.next();!h.done;h=y.next()){h=h.value;for(var H=g.E(R[h]),a=H.next();!a.done;a=H.next()){a=a.value;var p=a.itag,t=void 0,n=h+"_"+(((t=a.video)==null?void 0:t.fps)||0);x.hasOwnProperty(n)?x[n]===!0?N[h].push(a):J[p]=x[n]:(t=PI(q,a,T,Y.isLive,F),t!==!0?(b.add(h),J[p]=t, t==="disablevp9hfr"&&(x[n]="disablevp9hfr")):(N[h]=N[h]||[],N[h].push(a),x[n]=!0))}}U&&e({bfflt:ke(N)});for(var K in N)N.hasOwnProperty(K)&&(Y=K,N[Y]&&N[Y][0].eh()&&(N[Y]=N[Y],N[Y]=y86(q,N[Y],J),N[Y]=hlY(N[Y],J)));U&&Object.keys(J).length>0&&e({rjr:RI(J)});q=g.E(F.values());for(Y=q.next();!Y.done;Y=q.next())(Y=T.T.get(Y.value))&&--Y.bM;U&&e({aftflt:ke(N)});d.G=g.VN(N,function(P){return!!P.length}); return d.G}; MP6=function(d,q,T,Y,e,U,b,J){J=J===void 0?!1:J;if(q.LC&&b&&b.length>1&&!(q.hq>0||q.B)){for(var F=q.U||!!e,N=F&&q.vF?U:void 0,R=xoj(q,Y),x=[],y=[],h={},H=0;H0&&y&&e&&(R=[b,T],K=e.concat(y).filter(function(P){return P})); if(K.length&&!q.Mf){ut(K,R);if(F){F=[];q=g.E(K);for(Y=q.next();!Y.done;Y=q.next())F.push(Y.value.itag);U({hbdfmt:F.join(".")})}return pZ(new KY(K,d,N))}K=r8N(q);K=g.QN(K,J);if(!K){if(x[b])return U=x[b],ut(U),pZ(new KY(U,d,N));F&&U({novideo:1});return Ad()}q.pC&&(K==="1"||K==="1h")&&x[T]&&(b=DW(x[K]),R=DW(x[T]),R>b?K=T:R===b&&tPD(x[T])&&(K=T));K==="9"&&x.h&&DW(x.h)>DW(x["9"])&&(K="h");q.wO&&Y.isLive&&K==="("&&x.H&&DW(x["("])<1440&&(K="H");F&&U({vfmly:wj(K)});q=x[K];if(!q.length)return F&&U({novfmly:wj(K)}), Ad();ut(q);return pZ(new KY(q,d,N))}; EuN=function(d,q){var T=!(!d.m&&!d.M),Y=!(!d.mac3&&!d.MAC3),e=!(!d.meac3&&!d.MEAC3);d=!(!d.i&&!d.I);q.wk=d;return T||Y||e||d}; tPD=function(d){d=g.E(d);for(var q=d.next();!q.done;q=d.next())if(q=q.value,q.itag&&BXN.has(q.itag))return!0;return!1}; abj=function(d){d=g.E(d);for(var q=d.next();!q.done;q=d.next())if(q.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; wj=function(d){switch(d){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return d}}; ke=function(d){var q=[],T;for(T in d)if(d.hasOwnProperty(T)){var Y=T;q.push(wj(Y));Y=g.E(d[Y]);for(var e=Y.next();!e.done;e=Y.next())q.push(e.value.itag)}return q.join(".")}; c8j=function(d,q,T,Y,e,U){var b={},J={};g.os(q,function(F,N){F=F.filter(function(R){var x=R.itag;if(!R.ac)return J[x]="noenc",!1;if(U.Qp&&R.Cf==="(h"&&U.kx)return J[x]="lichdr",!1;if(!d.S&&R.Cf==="1e")return J[x]="noav1enc",!1;if(R.Cf==="("||R.Cf==="(h"){if(d.j&&T&&T.flavor==="widevine"){var y=R.mimeType+"; experimental=allowed";(y=!!R.ac[T.flavor]&&!!T.G[y])||(J[x]=R.ac[T.flavor]?"unspt":"noflv");return y}if(!fY(d,zG.CRYPTOBLOCKFORMAT)&&!d.z2||d.yv)return J[x]=d.yv?"disvp":"vpsub",!1}return T&&R.ac[T.flavor]&& T.G[R.mimeType]?!0:(J[x]=T?R.ac[T.flavor]?"unspt":"noflv":"nosys",!1)}); F.length&&(b[N]=F)}); Y&&Object.entries(J).length&&e({rjr:RI(J)});return b}; hlY=function(d,q){var T=Hz(d,function(Y,e){return e.video.fps>32?Math.min(Y,e.video.width):Y},Infinity); T32||Y.video.widthd.X)return"max"+d.X;if(d.Fw&&q.Cf==="h"&&q.video&&q.video.qualityOrdinal>1080)return"blkhigh264";if(q.Cf==="(h"&&!T.L)return"enchdr";if((Y===void 0?0:Y)&&WH(q)&&!d.dO)return"blk51live";if((q.Cf==="MAC3"||q.Cf==="mac3")&&!d.T)return"blkac3";if((q.Cf==="MEAC3"||q.Cf==="meac3")&&!d.S)return"blkeac3";if(q.Cf==="M"||q.Cf==="m")return"blkaac51"; if((q.Cf==="so"||q.Cf==="sa")&&!d.lr)return"blkamb";if(!d.Qp&&GW7(q)&&(!T.S||q.Cf!=="1e"))return"cbc";if(!T.S&&GW7(q)&&q.Cf==="1e")return"cbcav1";if((q.Cf==="i"||q.Cf==="I")&&!d.q5)return"blkiamf";var U;if(d.lF&&((U=q.audio)==null?void 0:U.U)===!0)return"blkvbcabr";var b,J;if(d.qk&&(q.Cf==="1"||q.Cf==="1h"||T.S&&q.Cf==="1e")&&((b=q.video)==null?0:b.qualityOrdinal)&&((J=q.video)==null?void 0:J.qualityOrdinal)>d.qk)return"av1cap";Y=T.T.get(q.Cf);if(!d.fn&&Y&&Y.bM>0)return e.add(q.Cf),"byerr";var F; if((F=q.video)==null?0:F.fps>32){if(!T.rO&&!fY(T,zG.FRAMERATE))return"capHfr";if(d.AF&&q.video.qualityOrdinal>=4320)return"blk8khfr";if(Ke(q)&&d.ST&&q.ac&&q.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(d.Vv&&q.Vv>d.Vv)return"ratecap";d=Ka2(T,q);return d!==!0?d:!0}; ut=function(d,q){q=q===void 0?[]:q;g.iQ(d,function(T,Y){var e=Y.Vv-T.Vv;if(!T.eh()||!Y.eh())return e;var U=Y.video.height*Y.video.width-T.video.height*T.video.width;!U&&q&&q.length>0&&(T=q.indexOf(T.Cf)+1,Y=q.indexOf(Y.Cf)+1,U=T===0||Y===0?Y||-1:T-Y);U||(U=e);return U})}; g.Ig=function(d,q){this[X[3]]=d;this[X[41]]=q===void 0?!1:q;this[X[23]]=this[X[18]]=this[X[32]]=X[14];this[X[2]]={};this[X[29]]=X[14]}; SK=function(d){mp(d);return d[X[23]]}; lt=function(d){return d[X[3]]?d[X[3]][X[4]](X[72]):d[X[32]]===X[72]}; GS6=function(d){mp(d);return g.q$(d[X[2]],function(q){return q!==null})}; vI=function(d){mp(d);var q=decodeURIComponent(d[X[11]](X[25])||X[14])[X[0]](X[47]);return d[X[18]]===X[7]&&q[X[1]]>1&&!!q[1]}; og=function(d,q){q=q===void 0?!1:q;mp(d);if(d[X[18]]!==X[7]){var T=d[X[43]]();T[X[5]](X[84],X[19]);return T}var Y=d[X[9]]();T=new g.Vm(Y);var e=d[X[11]](X[74]),U=decodeURIComponent(d[X[11]](X[25])||X[14])[X[0]](X[47]);if(e&&U&&U[X[1]]>1&&U[1])return Y=T.G,d=Y[X[66]](/^[^.]*/,X[14]),g.qK(T,(Y[X[44]](X[36])===0?X[36]:X[8])+e+X[78]+U[1]+d),T=new g.Ig(T[X[76]]()),T[X[5]](X[65],X[19]),T;if(q)return T=d[X[43]](),T[X[5]](X[65],X[19]),T;e=T.G[X[64]](X[61]);T.G[X[64]](X[63])?(g.qK(T,X[30]),Y=T[X[76]]()):T.G[X[64]](X[83])? (g.qK(T,X[88]),Y=T[X[76]]()):(T=azQ(Y),wp(T)&&(Y=T));T=new g.Ig(Y);T[X[5]](X[56],X[19]);e&&T[X[5]](X[70],X[31]);return T}; mp=function(d){if(d[X[3]]){if(!(wp(d[X[3]])||d[X[3]][X[4]](X[72])||d[X[3]][X[4]](X[68])||d[X[3]][X[4]](X[21])))throw new g.CW(X[77],d[X[3]]);var q=g.J_(d[X[3]]);d[X[32]]=q.S;d[X[23]]=q.G+(q.j!=null?X[53]+q.j:X[14]);var T=q.U;if(T[X[4]](X[7]))d[X[18]]=X[7],T=T[X[26]](14);else if(T[X[4]](X[52]))d[X[18]]=X[52],T=T[X[26]](13);else if(T[X[4]](X[37])){var Y=T[X[44]](X[28],12),e=T[X[44]](X[28],Y+1);Y>0&&e>0?(d[X[18]]=T[X[26]](0,e),T=T[X[26]](e+1)):(d[X[18]]=T,T=X[14])}else d[X[18]]=T,T=X[14];Y=d[X[2]];d[X[2]]= La_(T);Object[X[45]](d[X[2]],kSf(q.T.toString()));Object[X[45]](d[X[2]],Y);d[X[2]][X[79]]===X[50]&&(delete d[X[2]][X[79]],d[X[18]]+=X[62]);d[X[3]]=X[14];d[X[29]]=X[14];d[X[41]]&&(mp(d),q=d[X[2]][X[15]]||null)&&(q=PON[0](q),d[X[5]](X[15],q))}}; Wa6=function(d){mp(d);var q=d[X[32]]+(d[X[32]]?X[59]:X[73])+d[X[23]]+d[X[18]];if(GS6(d)){var T=[];g.os(d[X[2]],function(Y,e){Y!==null&&T[X[33]](e+X[51]+Y)}); q+=X[81]+T[X[34]](X[49])}return q}; La_=function(d){d=d[X[0]](X[28]);var q=0;d[0]||q++;for(var T={};q0?COf(q,Y[X[26]](0,e),Y[X[26]](e+1)):Y&&(q[Y]=X[14])}return q}; COf=function(d,q,T){if(q===X[27]){var Y;(Y=T[X[44]](X[51]))>=0?(q=X[54]+T[X[26]](0,Y),T=T[X[26]](Y+1)):(Y=T[X[44]](X[67]))>=0&&(q=X[54]+T[X[26]](0,Y),T=T[X[26]](Y+3))}d[q]=T}; VR=function(d){var q=g.D(d,uI1)||d[X[10]];d={cL:!1,XR:X[14],oG:X[14],s:X[14]};if(!q)return d;q=lF(q);d[X[75]]=!0;d[X[86]]=q[X[29]];d[X[39]]=q[X[71]];d[X[20]]=q[X[20]];return d}; d0=function(d,q,T,Y,e,U,b,J,F){this.sD=d;this.startTime=q;this.duration=T;this.ingestionTime=Y;this.sourceURL=e;this.iC=F;this.endTime=q+T;this.G=b||0;this.range=U||null;this.pending=J||!1;this.iC=F||null}; g.qn=function(){this.segments=[];this.G=null;this.U=!0;this.j=""}; Do2=function(d,q){if(q>d.nC())d.segments=[];else{var T=HR(d.segments,function(Y){return Y.sD>=q},d); T>0&&d.segments.splice(0,T)}}; Tz=function(d,q,T,Y,e){e=e===void 0?!1:e;this.data=d;this.offset=q;this.size=T;this.type=Y;this.G=(this.U=e)?0:8;this.dataOffset=this.offset+this.G}; Yk=function(d){var q=d.data.getUint8(d.offset+d.G);d.G+=1;return q}; eL=function(d){var q=d.data.getUint16(d.offset+d.G);d.G+=2;return q}; UK=function(d){var q=d.data.getInt32(d.offset+d.G);d.G+=4;return q}; b8=function(d){var q=d.data.getUint32(d.offset+d.G);d.G+=4;return q}; X0=function(d){var q=d.data;var T=d.offset+d.G;q=q.getUint32(T)*4294967296+q.getUint32(T+4);d.G+=8;return q}; Ju=function(d,q){q=q===void 0?NaN:q;if(isNaN(q))var T=d.size;else for(T=d.G;T1?Math.ceil(e*q):Math.floor(e*q))}d.skip(1);T=Yk(d)<<16|eL(d);if(T&256){Y=T&1;e=T&4;var U=T&512,b=T&1024,J=T&2048;T=b8(d);Y&&d.skip(4);e&&d.skip(4);Y=(U?4:0)+(b?4:0)+(J?4:0);for(e=0;e1?Math.ceil(b*q):Math.floor(b*q)),d.skip(Y)}}}; yL=function(d){d=new DataView(d.buffer,d.byteOffset,d.byteLength);return(d=g.R8(d,0,1836476516))?g.xk(d):NaN}; dI_=function(d){var q=g.R8(d,0,1937011556);if(!q)return null;q=hu(d,q.dataOffset+8,1635148593)||hu(d,q.dataOffset+8,1635135537);if(!q)return null;var T=hu(d,q.dataOffset+78,1936995172),Y=hu(d,q.dataOffset+78,1937126244);if(!Y)return null;q=null;if(T)switch(T.skip(4),Yk(T)){default:q=0;break;case 1:q=2;break;case 2:q=1;break;case 3:q=255}var e=T=null,U=null;if(Y=hu(d,Y.dataOffset,1886547818)){var b=hu(d,Y.dataOffset,1886546020),J=hu(d,Y.dataOffset,2037673328);if(!J&&(J=hu(d,Y.dataOffset,1836279920), !J))return null;b&&(b.skip(4),T=UK(b)/65536,U=UK(b)/65536,e=UK(b)/65536);d=wpX(J);d=new DataView(d.buffer,d.byteOffset+8,d.byteLength-8);return new ou2(q,T,U,e,d)}return null}; hu=function(d,q,T){for(;Ht(d,q);){var Y=QL(d,q);if(Y.type===T)return Y;q+=Y.size}return null}; g.R8=function(d,q,T){for(;Ht(d,q);){var Y=QL(d,q);if(Y.type===T)return Y;q=Mn(Y.type)?q+8:q+Y.size}return null}; g.ct=function(d){if(d.data.getUint8(d.dataOffset)){var q=d.data;d=d.dataOffset+4;q=q.getUint32(d)*4294967296+q.getUint32(d+4)}else q=d.data.getUint32(d.dataOffset+4);return q}; QL=function(d,q){var T=d.getUint32(q),Y=d.getUint32(q+4);return new Tz(d,q,T,Y)}; g.xk=function(d){var q=d.data.getUint8(d.dataOffset)?20:12;return d.data.getUint32(d.dataOffset+q)}; qJ2=function(d){d=new Tz(d.data,d.offset,d.size,d.type,d.U);var q=Yk(d);d.skip(7);var T=b8(d);if(q===0){q=b8(d);var Y=b8(d)}else q=X0(d),Y=X0(d);d.skip(2);for(var e=eL(d),U=[],b=[],J=0;J122)return!1}return!0}; Mn=function(d){return d===1701082227||d===1836019558||d===1836019574||d===1835297121||d===1835626086||d===1937007212||d===1953653094||d===1953653099||d===1836475768}; TPD=function(d){d.skip(4);return{RzD:Ju(d,0),value:Ju(d,0),timescale:b8(d),eow:b8(d),eventDuration:b8(d),id:b8(d),uh:Ju(d),offset:d.offset}}; g.YJ7=function(d){var q=hu(d,0,1701671783);if(!q)return null;var T=TPD(q),Y=T.RzD;T=Nn(T.uh);if(d=hu(d,q.offset+q.size,1701671783))if(d=TPD(d),d=Nn(d.uh),T&&d){q=g.E(Object.keys(d));for(var e=q.next();!e.done;e=q.next())e=e.value,T[e]=d[e]}return T?new F0(T,Y):null}; EK=function(d,q){for(var T=hu(d,0,q);T;){var Y=T;Y.type=1936419184;Y.data.setUint32(Y.offset+4,1936419184);T=hu(d,T.offset+T.size,q)}}; g.jL=function(d,q){for(var T=0,Y=[];Ht(d,T);){var e=QL(d,T);e.type===q&&Y.push(e);T=Mn(e.type)?T+8:T+e.size}return Y}; eIN=function(d,q){var T=g.R8(d,0,1937011556),Y=g.R8(d,0,1953654136);if(!T||!Y||d.getUint32(T.offset+12)>=2)return null;var e=new DataView(q.buffer,q.byteOffset,q.length),U=g.R8(e,0,1937011556);if(!U)return null;q=e.getUint32(U.dataOffset+8);Y=e.getUint32(U.dataOffset+12);if(Y!==1701733217&&Y!==1701733238)return null;Y=new fb6(d.byteLength+q);sK(Y,d,0,T.offset+12);Y.data.setInt32(Y.offset,2);Y.offset+=4;sK(Y,d,T.offset+16,T.size-16);sK(Y,e,e.byteOffset+U.dataOffset+8,q);sK(Y,d,T.offset+T.size,d.byteLength- (T.offset+T.size));T=g.E([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=T.next();!e.done;e=T.next())e=g.R8(d,0,e.value),Y.data.setUint32(e.offset,e.size+q);d=g.R8(Y.data,0,1953654136);Y.data.setUint32(d.offset+16,2);return Y.data}; UIg=function(d){var q=g.R8(d,0,1937011556);if(!q)return null;var T=d.getUint32(q.dataOffset+12);if(T!==1701733217&&T!==1701733238)return null;q=hu(d,q.offset+24+(T===1701733217?28:78),1936289382);if(!q)return null;T=hu(d,q.offset+8,1935894637);if(!T||d.getUint32(T.offset+12)!==1667392371)return null;q=hu(d,q.offset+8,1935894633);if(!q)return null;q=hu(d,q.offset+8,1952804451);if(!q)return null;T=new Uint8Array(16);for(var Y=0;Y<16;Y++)T[Y]=d.getInt8(q.offset+16+Y);return T}; a8=function(d,q){this.G=d;this.pos=0;this.start=q||0}; Au=function(d){return d.pos>=d.G.byteLength}; r0=function(d,q,T){var Y=new a8(T);if(!pj(Y,d))return!1;Y=ZT(Y);if(!OK(Y,q))return!1;for(d=0;q;)q>>>=8,d++;q=Y.start+Y.pos;var e=nj(Y,!0);Y=d+(Y.start+Y.pos-q)+e;Y=Y>9?beI(Y-9,8):beI(Y-2,1);d=q-d;T.setUint8(d++,236);for(q=0;qT;e++)T=T*256+Lj(d),Y*=128;return q?T-Y:T}; Bt=function(d){var q=nj(d,!0);d.pos+=q}; sIn=function(d){if(!OK(d,440786851,!0))return null;var q=d.pos;nj(d,!1);var T=nj(d,!0)+d.pos-q;d.pos=q+T;if(!OK(d,408125543,!1))return null;nj(d,!0);if(!OK(d,357149030,!0))return null;var Y=d.pos;nj(d,!1);var e=nj(d,!0)+d.pos-Y;d.pos=Y+e;if(!OK(d,374648427,!0))return null;var U=d.pos;nj(d,!1);var b=nj(d,!0)+d.pos-U,J=new Uint8Array(T+12+e+b),F=new DataView(J.buffer);J.set(new Uint8Array(d.G.buffer,d.G.byteOffset+q,T));F.setUint32(T,408125543);F.setUint32(T+4,33554431);F.setUint32(T+8,4294967295); J.set(new Uint8Array(d.G.buffer,d.G.byteOffset+Y,e),T+12);J.set(new Uint8Array(d.G.buffer,d.G.byteOffset+U,b),T+12+e);return J}; kk=function(d){var q=d.pos;d.pos=0;var T=1E6;pj(d,[408125543,357149030,2807729])&&(T=tu(d));d.pos=q;return T}; $In=function(d,q){var T=d.pos;d.pos=0;if(d.G.getUint8(d.pos)!==160&&!Pt(d)||!OK(d,160))return d.pos=T,NaN;nj(d,!0);var Y=d.pos;if(!OK(d,161))return d.pos=T,NaN;nj(d,!0);Lj(d);var e=Lj(d)<<8|Lj(d);d.pos=Y;if(!OK(d,155))return d.pos=T,NaN;Y=tu(d);d.pos=T;return(e+Y)*q/1E9}; Pt=function(d){if(!gV1(d)||!OK(d,524531317))return!1;nj(d,!0);return!0}; gV1=function(d){if(d.VP()){if(!OK(d,408125543))return!1;nj(d,!0)}return!0}; pj=function(d,q){for(var T=0;T0){var Y=kSf(q.substring(T+1));g.os(Y,function(e,U){this.set(U,e)},d); q=q.substring(0,T)}q=La_(q);g.os(q,function(e,U){this.set(U,e)},d)}; NP2=function(d){var q=d.Wf.Hl(),T=[];g.os(d.G,function(e,U){T.push(U+"="+e)}); if(!T.length)return q;var Y=T.join("&");d=GS6(d.Wf)?"&":"?";return q+d+Y}; Cj=function(d,q){var T=new g.Ig(q);(q=T.get("req_id"))&&d.set("req_id",q);g.os(d.G,function(Y,e){T["set"](e,null)}); return T}; RIn=function(){this.T=this.j=this.G=this.timedOut=this.started=this.S=this.U=0}; u8=function(d){d.S=(0,g.cj)();d.started=0;d.timedOut=0;d.G=0}; DT=function(d,q){var T=d.started+d.G*4;q&&(T+=d.j);T=Math.max(0,T-3);return Math.pow(1.6,T)}; w0=function(d,q){d[q]||(d[q]=new RIn);return d[q]}; fj=function(d){this.K=this.L=this.S=this.j=0;this.B=this.X=!1;this.G=d;this.U=d.clone()}; xIg=function(d,q,T){if(lt(d.G))return!1;var Y=w0(T,SK(d.G));if(Y.timedOut<1&&Y.G<1)return!1;Y=Y.timedOut+Y.G;d=zz(d,q);T=w0(T,SK(d));return T.timedOut+T.G+01?q=q.Q_:(T=w0(T,I8(d,d.VK(q,T),q)),q=Math.max(d.S,T.timedOut)+q.hY*(d.j-d.S)+.25*d.L,q=q>3?1E3*Math.pow(1.6,q-3):0);return q===0?!0:d.K+q<(0,g.cj)()}; yQX=function(d,q,T){d.G.set(q,T);d.U.set(q,T);d.T&&d.T.set(q,T)}; hI_=function(d,q,T,Y,e){++d.j;q&&++d.S;SK(T.Wf).startsWith("redirector.")&&(d.G=d.U.clone(),delete d.T,Y.YY&&delete e[SK(d.G)])}; SL=function(d){return d?(d.itag||"")+";"+(d.lmt||0)+";"+(d.xtags||""):""}; l8=function(d,q,T,Y){this.initRange=T;this.indexRange=Y;this.G=null;this.j=!1;this.X=0;this.T=this.ZC=this.U=null;this.info=q;this.zG=new fj(d)}; vt=function(d,q){this.start=d;this.end=q;this.length=q-d+1}; o8=function(d){d=d.split("-");var q=Number(d[0]),T=Number(d[1]);if(!isNaN(q)&&!isNaN(T)&&d.length===2&&(d=new vt(q,T),!isNaN(d.start)&&!isNaN(d.end)&&!isNaN(d.length)&&d.length>0))return d}; VL=function(d,q){return new vt(d,d+q-1)}; HeD=function(d){return d.end==null?{start:String(d.start)}:{start:String(d.start),end:String(d.end)}}; dT=function(d){if(!d)return new vt(0,0);var q=Number(d.start);d=Number(d.end);if(!isNaN(q)&&!isNaN(d)&&(q=new vt(q,d),q.length>0))return q}; qG=function(d,q,T,Y,e,U,b,J,F,N,R,x){Y=Y===void 0?"":Y;this.type=d;this.G=q;this.range=T;this.source=Y;this.g4=R;this.clipId=x===void 0?"":x;this.K=[];this.L="";this.sD=-1;this.lr=this.UD=0;this.L=Y;this.sD=e>=0?e:-1;this.startTime=U||0;this.duration=b||0;this.U=J||0;this.j=F>=0?F:this.range?this.range.length:NaN;this.S=this.range?this.U+this.j===this.range.length:N===void 0?!!this.j:N;this.range?(this.T=this.startTime+this.duration*this.U/this.range.length,this.B=this.duration*this.j/this.range.length, this.X=this.T+this.B):QIj(this)}; QIj=function(d){d.T=d.startTime;d.B=d.duration;d.X=d.T+d.B}; M7N=function(d,q,T){var Y=!(!q||q.G!==d.G||q.type!==d.type||q.sD!==d.sD);return T?Y&&!!q&&(d.range&&q.range?q.range.end===d.range.end:q.range===d.range)&&q.U+q.j===d.U+d.j:Y}; TE=function(d){return d.type===1||d.type===2}; Yw=function(d){return d.type===3||d.type===6}; eu=function(d,q){return d.G===q.G?d.range&&q.range?d.range.start+d.U+d.j===q.range.start+q.U:d.sD===q.sD?d.U+d.j===q.U:d.sD+1===q.sD&&q.U===0&&d.S:!1}; EV7=function(d,q){return d.sD!==q.sD&&q.sD!==d.sD+1||d.type!==q.type?!1:eu(d,q)?!0:Math.abs(d.T-q.T)<=1E-6&&d.sD===q.sD?!1:cQ1(d,q)}; cQ1=function(d,q){return eu(d,q)||Math.abs(d.X-q.T)<=1E-6||d.sD+1===q.sD&&q.U===0&&d.S?!0:!1}; U$=function(d){return d.sD+(d.S?1:0)}; jIf=function(d){d.length===1||g.h0(d,function(T){return!!T.range}); for(var q=1;q=q.range.start+q.U&&d.range.start+d.U+d.j<=q.range.start+q.U+q.j:d.sD===q.sD&&d.U>=q.U&&(d.U+d.j<=q.U+q.j||q.S)}; rQD=function(d,q){return d.G!==q.G?!1:d.type===4&&q.type===3&&d.G.pj()?(d=d.G.IV(d),D7(d,function(T){return rQD(T,q)})):d.sD===q.sD&&!!q.j&&q.U+q.j>d.U&&q.U+q.j<=d.U+d.j}; Xo=function(d,q){var T=q.sD;d.L="updateWithSegmentInfo";d.sD=T;if(d.startTime!==q.startTime||d.duration!==q.duration)d.startTime=q.startTime+d.UD,d.duration=q.duration,QIj(d)}; Jl=function(d,q){var T=this;this.Zw=d;this.T=this.G=null;this.S=this.MM=NaN;this.VK=this.requestId=null;this.fC={rsD:function(){return T.range}}; this.zG=d[0].G.zG;this.U=q||"";this.Zw[0].range&&this.Zw[0].j>0&&(aBj(d)?(this.range=jIf(d),this.j=this.range.length):(this.range=this.Zw[this.Zw.length-1].range,this.j=AQY(d)))}; s$=function(d){return!TE(d.Zw[d.Zw.length-1])}; $w=function(d){return d.Zw[d.Zw.length-1].type===4}; g.gT=function(d,q,T){T=d.VK===null?d.zG.VK(q,T,d.Zw[0].type):d.VK;if(d.G){q=T?og(d.G,q.aF):d.G;var Y=new Wt(q);Y.get("alr")||Y.set("alr","yes");d.U&&F16(Y,d.U)}else/http[s]?:\/\//.test(d.U)?Y=new Wt(new g.Ig(d.U)):(Y=i8(d.zG,T,q),d.U&&F16(Y,d.U));(q=d.range)?Y.set("range",q.toString()):d.Zw[0].G.Gb()&&d.Zw.length===1&&d.Zw[0].U&&Y.set("range",d.Zw[0].U+"-");d.requestId&&Y.set("req_id",d.requestId);isNaN(d.MM)||Y.set("headm",d.MM.toString());isNaN(d.S)||Y.set("mffa",d.S+"ms");d.urlParams&&g.os(d.urlParams, function(e,U){Y.set(U,e)}); return Y}; t7j=function(d){if(d.range)return d.j;d=d.Zw[0];return Math.round(d.B*d.G.info.Vv)}; BPj=function(d,q){return Math.max(0,d.Zw[0].T-q)}; Fo=function(d,q,T,Y,e,U){U=U===void 0?0:U;l8.call(this,d,q,Y,void 0);this.S=T;this.W3=U;this.index=e||new g.qn}; K1D=function(d,q,T,Y,e){this.sD=d;this.startSecs=q;this.sS=T;this.G=Y||NaN;this.U=e||NaN}; NG=function(d,q,T){for(;d;d=d.parentNode)if(d.attributes&&(!T||d.nodeName===T)){var Y=d.getAttribute(q);if(Y)return Y}return""}; Rd=function(d,q){for(;d;d=d.parentNode){var T=d.getElementsByTagName(q);if(T.length>0)return T[0]}return null}; GLN=function(d){if(!d)return 0;var q=d.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return q?(Number(q[2])|0)*3600+(Number(q[4])|0)*60+(Number(q[6])|0):Number(d)|0}; L17=function(d){return d.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?d+"Z":d}; xw=function(){this.G=[];this.U=null;this.X=0;this.j=[];this.S=!1;this.L="";this.T=-1}; kLQ=function(d){var q=d.j;d.j=[];return q}; PWX=function(){this.T=[];this.G=null;this.U={};this.j={}}; DIX=function(d,q){var T=[];q=Array.from(q.getElementsByTagName("SegmentTimeline"));q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next()){Y=Y.value;var e=Y.parentNode.parentNode,U=null;e.nodeName==="Period"?U=W1Y(d):e.nodeName==="AdaptationSet"?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",U=CWY(d,e)):e.nodeName==="Representation"&&(e=e.getAttribute("id")||"",U=ugn(d,e));if(U==null)return;U.update(Y);g.tE(T,kLQ(U))}g.tE(d.T,T);ZND(d.T,function(b){return b.startSecs*1E3+b.G})}; wHQ=function(d){d.G&&(d.G.G=[]);g.os(d.U,function(q){q.G=[]}); g.os(d.j,function(q){q.G=[]})}; W1Y=function(d){d.G||(d.G=new xw);return d.G}; CWY=function(d,q){d.U[q]||(d.U[q]=new xw);return d.U[q]}; ugn=function(d,q){d.j[q]||(d.j[q]=new xw);return d.j[q]}; hl=function(d){var q=d===void 0?{}:d;d=q.W3===void 0?0:q.W3;var T=q.RF===void 0?!1:q.RF;var Y=q.nW===void 0?0:q.nW;var e=q.QX===void 0?0:q.QX;var U=q.rH===void 0?Infinity:q.rH;var b=q.Fp===void 0?0:q.Fp;var J=q.uC===void 0?!1:q.uC;q=q.qx===void 0?!1:q.qx;g.qn.call(this);this.Dt=this.z3=-1;this.bO=d;this.nW=Y;this.RF=T;this.QX=e;this.rH=U;this.Fp=b;((this.uC=J)||isFinite(U)&&this.rH>0)&&T&&y8&&(this.U=!1,this.j="postLive");this.qx=q}; Hb=function(d,q){return wL(d.segments,function(T){return q-T.sD})}; Q8=function(d,q,T){T=T===void 0?{}:T;Fo.call(this,d,q,"",void 0,void 0,T.W3||0);this.index=new hl(T)}; MG=function(d,q,T){l8.call(this,d,q);this.S=T;d=this.index=new g.qn;d.U=!1;d.j="d"}; fBD=function(d,q,T){var Y=d.index.fO(q),e=d.index.getStartTime(q),U=d.index.getDuration(q);T?U=T=0:T=d.info.Vv*U;return new Jl([new qG(3,d,void 0,"otfCreateRequestInfoForSegment",q,e,U,0,T)],Y)}; zIH=function(d,q){if(!d.index.isLoaded()){var T=[],Y=q.T;q=q.S.split(",").filter(function(R){return R.length>0}); for(var e=0,U=0,b=0,J=/^(\d+)/,F=/r=(\d+)/,N=0;N0&&(e.G=Math.min(e.G+b,10),e.U=U);e.G>0?(e.G--,e=!0):e=!1;if(e)typeof Y==="function"&&(Y=Y()),console.log("plyr."+q,Y);else{var J;Y=((J=vV2.get(q))!=null?J:0)+1;vV2.set(q,Y);Y%100===1&&console.warn("plyr","plyr."+q+" is chatty, dropping logs.")}}}; lBI=function(){this.G=10;this.U=Date.now()}; ju=function(d,q){this.info=d;this.U=q;this.G=null;this.T=this.j=-1;this.timestampOffset=0;this.isLocked=this.X=!1;this.S=this.info.G.Rw()&&!this.info.U}; g.ad=function(d){return fd7(d.U)}; oV2=function(d,q){q=Math.min(q,d.info.j);var T=d.U.split(q),Y=T.Kp;T=new ju(new qG(d.info.type,d.info.G,d.info.range,d.info.L,d.info.sD,d.info.startTime,d.info.duration,d.info.U,q,!1,d.info.g4,d.info.clipId),T.hS);T.T=d.T;T.j=d.j;q=new ju(new qG(d.info.type,d.info.G,d.info.range,d.info.L,d.info.sD,d.info.startTime,d.info.duration,d.info.U+q,d.info.j-q,d.info.S,d.info.g4,d.info.clipId),Y);q.T=d.T;q.j=d.j;return[T,q]}; g.Al=function(d,q,T,Y){T=T===void 0?!1:T;Y=Y===void 0?0:Y;if(d.isLocked||q.isLocked||!eu(d.info,q.info)||d.info.S)return null;if(Y){if(d.U.totalLength+q.U.totalLength>Y)return null}else if(T&&(T=d.U,Y=q.U,T=!(Y.G.length?DzX(T,Y.G[0]):1)),T)return null;T=new qG(d.info.type,d.info.G,d.info.range,d.info.L,d.info.sD,d.info.startTime,d.info.duration,d.info.U,d.info.j,d.info.S,d.info.g4,d.info.clipId);Y=q.info;T.j+=Y.j;T.range&&(T.B+=Y.B);T.X=Y.X;T.S=Y.S;Y=new e2;Uv(Y,d.U);Uv(Y,q.U);T=new ju(T,Y);T.G!= null&&q.G!=null&&(new g.cb("dash")).G(414627957,"merged slice emsg overridden; prev: "+T.G.OX()+" next: "+q.G.OX());T.G=q.G||d.G;T.j=d.j!==-1?d.j:q.j;T.T=d.T!==-1?d.T:q.T;return T}; g.py=function(d){g.Ce(d.info.G.info)||d.info.G.info.fz();if(d.j!==-1)return d.j;if(d.G&&IbN(d.G))return d.j=IbN(d.G),d.j;if(g.Ce(d.info.G.info)){var q=g.ad(d);for(var T=d.info.G.G,Y=NaN,e=NaN,U=0;Ht(q,U);){var b=QL(q,U);b.type===1936286840?e=b.data.getUint32(b.dataOffset+8):b.type===1836476516?e=g.xk(b):b.type===1952867444&&isNaN(Y)&&(Y=g.ct(b));U=Mn(b.type)?U+8:U+b.size}!e&&T&&(e=yL(T));q=Y/e}else q=new a8(g.ad(d)),T=d.S?q:new a8(new DataView(d.info.G.G.buffer)),Y=kk(T),T=q.pos,q.pos=0,Pt(q)?OK(q, 231)?(Y=tu(q)*Y/1E9,q.pos=T,q=Y):(q.pos=T,q=NaN):(q.pos=T,q=NaN);d.j=q||d.info.T;return d.j}; dFf=function(d,q){d.timestampOffset>0&&(q-=d.timestampOffset);var T=g.py(d)+q;V7j(d,T);d.timestampOffset=q}; V7j=function(d,q){g.Ce(d.info.G.info)||d.info.G.info.fz();d.j=q;if(g.Ce(d.info.G.info)){var T=g.ad(d);d=d.info.G.G;for(var Y=NaN,e=NaN,U=0;Ht(T,U);){var b=QL(T,U);isNaN(Y)&&(b.type===1936286840?Y=b.data.getUint32(b.dataOffset+8):b.type===1836476516&&(Y=g.xk(b)));if(b.type===1952867444){!Y&&d&&(Y=yL(d));var J=g.ct(b);isNaN(e)&&(e=Math.round(q*Y)-J);var F=b;J+=e;if(F.data.getUint8(F.dataOffset)){var N=F.data;F=F.dataOffset+4;N.setUint32(F,Math.floor(J/4294967296));N.setUint32(F+4,J&4294967295)}else F.data.setUint32(F.dataOffset+ 4,J)}U=Mn(b.type)?U+8:U+b.size}return!0}T=new a8(g.ad(d));d=d.S?T:new a8(new DataView(d.info.G.G.buffer));Y=kk(d);d=T.pos;T.pos=0;if(Pt(T)&&OK(T,231))if(e=nj(T,!0),q=Math.floor(q*1E9/Y),Math.ceil(Math.log(q)/Math.log(2)/8)>e)q=!1;else{for(Y=e-1;Y>=0;Y--)T.G.setUint8(T.pos+Y,q&255),q>>>=8;T.pos=d;q=!0}else q=!1;return q}; O$=function(d,q){q=q===void 0?!1:q;var T=Ze(d);d=q?0:d.info.B;return T||d}; Ze=function(d){g.Ce(d.info.G.info)||d.info.G.info.fz();if(d.G&&d.info.type===6)return d.G.W3;if(g.Ce(d.info.G.info)){var q=g.ad(d);var T=0;q=g.jL(q,1936286840);q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next())Y=qJ2(Y.value),T+=Y.yL[0]/Y.timescale;T=T||NaN;if(!(T>=0))a:{T=g.ad(d);q=d.info.G.G;for(var e=Y=0,U=0;Ht(T,Y);){var b=QL(T,Y);if(b.type===1836476516)e=g.xk(b);else if(b.type===1836019558){!e&&q&&(e=yL(q));if(!e){T=NaN;break a}var J=hu(b.data,b.dataOffset,1953653094),F=J;J=e;var N=hu(F.data,F.dataOffset, 1952868452);F=hu(F.data,F.dataOffset,1953658222);var R=UK(N);UK(N);R&2&&UK(N);N=R&8?UK(N):0;var x=UK(F),y=x&1;R=x&4;var h=x&256,H=x&512,a=x&1024;x&=2048;var p=b8(F);y&&UK(F);R&&UK(F);for(var t=y=0;t2048?"":q.indexOf("https://")===0?q:""}; GE=function(d,q,T){q.match(Fif);return d(q,T).then(function(Y){var e=g.gxN(Y.xhr);return e?GE(d,e,T):Y.xhr})}; Wb=function(d,q,T){d=d===void 0?"":d;q=q===void 0?null:q;T=T===void 0?!1:T;g.YP.call(this);var Y=this;this.sourceUrl=d;this.isLivePlayback=T;this.qk=this.duration=0;this.isPremiere=this.uC=this.T=this.isLiveHeadPlayable=this.isLive=this.U=!1;this.rH=this.QX=0;this.isOtf=this.aN=!1;this.aU=(0,g.cj)();this.lr=Infinity;this.G={};this.j=new Map;this.state=this.v4=0;this.timeline=null;this.isManifestless=!1;this.yv=[];this.X=null;this.z2=0;this.S="";this.dO=NaN;this.rO=this.Qp=this.timestampOffset=this.L= 0;this.Gr=this.m1=NaN;this.vF=0;this.RU=this.K=!1;this.xx=[];this.AF={};this.UD=NaN;this.fC={qir:function(J){Ly(Y,J)}}; var e;this.Fw=(e=q)==null?void 0:e.Wv("html5_use_network_error_code_enums");NCN=!!q&&q.Wv("html5_modern_vp9_mime_type");var U;kw=!((U=q)==null||!U.Wv("html5_enable_flush_during_seek"))&&g.WL();var b;Pb=!((b=q)==null||!b.Wv("html5_enable_reset_audio_decoder"))&&g.WL()}; R0H=function(d){return g.q$(d.G,function(q){return!!q.info.video&&q.info.video.qualityOrdinal>=2160})}; nuX=function(d){return g.q$(d.G,function(q){return!!q.info.video&&q.info.video.isHdr()})}; WI=function(d){return g.q$(d.G,function(q){return!!q.info.ac})}; g.xF_=function(d){return g.q$(d.G,function(q){return iW(q.info.mimeType)})}; yeY=function(d){return g.q$(d.G,function(q){return q.info.video?q.info.video.projectionType==="EQUIRECTANGULAR":!1})}; h0g=function(d){return g.q$(d.G,function(q){return q.info.video?q.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; HkQ=function(d){return g.q$(d.G,function(q){return q.info.video?q.info.video.projectionType==="MESH":!1})}; QpD=function(d){return g.q$(d.G,function(q){return q.info.video?q.info.video.stereoLayout===1:!1})}; M17=function(d){return BIf(d.G,function(q){return q.info.video?q.gV():!0})}; LY=function(d){return g.q$(d.G,function(q){return lt(q.zG.G)})}; Ly=function(d,q){d.G[q.info.id]=q;d.j.set(SL(g.DB(q.info,d.aN)),q)}; De=function(d,q,T){T=T===void 0?0:T;var Y=d.mimeType||"",e=d.itag;var U=d.xtags;e=e?e.toString():"";U&&(e+=";"+U);U=e;if(zL(Y)){var b=d.width||640;e=d.height||360;var J=d.fps,F=d.qualityLabel,N=d.colorInfo,R=d.projectionType,x;d.stereoLayout&&(x=ce7[d.stereoLayout]);var y=spD(d)||void 0;if(N==null?0:N.primaries)var h=ExY[N.primaries]||void 0;b=new OJ(b,e,J,R,x,void 0,F,y,h);Y=Cy(Y,b,tQ[d.itag||""]);kw&&(Y+="; enableflushduringseek=true");Pb&&(Y+="; enableresetaudiodecoder=true")}var H;if(wP(Y)){var a= d.audioSampleRate;x=d.audioTrack;a=new AQ(a?+a:void 0,d.audioChannels,d.spatialAudioType,d.isDrc,d.loudnessDb,d.trackAbsoluteLoudnessLkfs,d.audioQuality||"AUDIO_QUALITY_UNKNOWN",d.isVb);x&&(h=x.displayName,e=x.id,x=x.audioIsDefault,h&&(H=new g.Ky(h,e||"",!!x)))}var p;d.captionTrack&&(F=d.captionTrack,x=F.displayName,h=F.vssId,e=F.languageCode,J=F.kind,F=F.id,x&&h&&e&&(p=new Xl6(x,h,e,J,d.xtags,F)));x=Number(d.bitrate)/8;h=Number(d.contentLength);e=Number(d.lastModified);F=d.drmFamilies;J=d.type;T= T&&h?h/T:0;d=Number(d.approxDurationMs);if(q&&F){var t={};F=g.E(F);for(N=F.next();!N.done;N=F.next())(N=uP[N.value])&&(t[N]=q[N])}return new BH(U,Y,{audio:a,video:b,DQ:H,ac:t,Vv:x,wx:T,contentLength:h,lastModified:e,captionTrack:p,streamType:J,approxDurationMs:d})}; wT=function(d,q,T){T=T===void 0?0:T;var Y=d.type;var e=d.itag;var U=d.xtags;U&&(e=d.itag+";"+U);if(zL(Y)){var b=(d.size||"640x360").split("x");b=new OJ(+b[0],+b[1],+d.fps,d.projection_type,+d.stereo_layout,void 0,d.quality_label,d.eotf,d.primaries);Y=Cy(Y,b,tQ[d.itag]);kw&&(Y+="; enableflushduringseek=true");Pb&&(Y+="; enableresetaudiodecoder=true")}var J;if(wP(Y)){var F=new AQ(+d.audio_sample_rate||void 0,+d.audio_channels||0,d.spatial_audio_type,!!d.drc);d.name&&(J=new g.Ky(d.name,d.audio_track_id, d.isDefault==="1"))}var N;d.caption_display_name&&d.caption_vss_id&&d.caption_language_code&&(N=new Xl6(d.caption_display_name,d.caption_vss_id,d.caption_language_code,d.caption_kind,d.xtags,d.caption_id));U=Number(d.bitrate)/8;var R=Number(d.clen),x=Number(d.lmt);T=T&&R?R/T:0;if(q&&d.drm_families){var y={};for(var h=g.E(d.drm_families.split(",")),H=h.next();!H.done;H=h.next())H=H.value,y[H]=q[H]}return new BH(e,Y,{audio:F,video:b,DQ:J,ac:y,Vv:U,wx:T,contentLength:R,lastModified:x,captionTrack:N, streamType:d.stream_type,approxDurationMs:Number(d.approx_duration_ms)})}; jpY=function(d){return D7(d,function(q){return"FORMAT_STREAM_TYPE_OTF"===q.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; a22=function(d){return D7(d,function(q){return"FORMAT_STREAM_TYPE_OTF"===q.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; AeN=function(d,q){return d.timeline?LB(d.timeline.T,q):d.yv.length?LB(d.yv,q):[]}; fy=function(d,q,T){q=q===void 0?"":q;T=T===void 0?"":T;d=new g.Ig(d,!0);d.set("alr","yes");T&&(T=m_Y(decodeURIComponent(T)),d[X[5]](q,encodeURIComponent(T)));return d}; nxH=function(d,q){var T=NG(q,"id");T=T.replace(":",";");var Y=NG(q,"mimeType"),e=NG(q,"codecs");Y=e?Y+'; codecs="'+e+'"':Y;e=Number(NG(q,"bandwidth"))/8;var U=Number(Rd(q,"BaseURL").getAttribute(d.S+":contentLength")),b=d.duration&&U?U/d.duration:0;if(zL(Y)){var J=Number(NG(q,"width"));var F=Number(NG(q,"height")),N=Number(NG(q,"frameRate")),R=plH(NG(q,d.S+":projectionType"));a:switch(NG(q,d.S+":stereoLayout")){case "layout_left_right":var x=1;break a;case "layout_top_bottom":x=2;break a;default:x= 0}J=new OJ(J,F,N,R,x)}if(wP(Y)){var y=Number(NG(q,"audioSamplingRate"));var h=Number(NG(q.getElementsByTagName("AudioChannelConfiguration")[0],"value"));F=Zk7(NG(q,d.S+":spatialAudioType"));y=new AQ(y,h,F);a:{h=NG(q,"lang")||"und";if(F=Rd(q,"Role"))if(R=NG(F,"value")||"",g.sN(OkD,R)){F=h+"."+OkD[R];N=R==="main";d=NG(q,d.S+":langName")||h+" - "+R;h=new g.Ky(d,F,N);break a}h=void 0}}if(q=Rd(q,"ContentProtection"))if(q.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var H={};for(q= q.firstChild;q!=null;q=q.nextSibling)q instanceof Element&&/SystemURL/.test(q.nodeName)&&(d=q.getAttribute("type"),F=q.textContent,d&&F&&(H[d]=F.trim()))}else H=void 0;return new BH(T,Y,{audio:y,video:J,DQ:h,ac:H,Vv:e,wx:b,contentLength:U})}; plH=function(d){switch(d){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"}}; Zk7=function(d){switch(d){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"}}; t1D=function(d,q){q=q===void 0?"":q;d.state=1;d.aU=(0,g.cj)();return $F2(q||d.sourceUrl).then(function(T){if(!d.JF()){d.v4=T.status;T=T.responseText;var Y=new DOMParser;T=An(Y,PZ1(T),"text/xml").getElementsByTagName("MPD")[0];d.lr=GLN(NG(T,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(T.attributes){Y=g.E(T.attributes);for(var e=Y.next();!e.done;e=Y.next())if(e=e.value,e.value==="http://youtube.com/yt/2012/10/10"){Y=e.name.split(":")[1];break b}}Y=""}d.S=Y;d.isLive=d.lr=d.lr}; Kif=function(d){d.X&&d.X.stop()}; rej=function(d){var q=d.lr;isFinite(q)&&(zE(d)?d.refresh():(q=Math.max(0,d.aU+q-(0,g.cj)()),d.X||(d.X=new g.f9(d.refresh,q,d),g.C(d,d.X)),d.X.start(q)))}; G51=function(d){d=d.G;for(var q in d){var T=d[q].index;if(T.isLoaded())return T.nC()+1}return 0}; iP=function(d){return d.Qp?d.Qp-(d.L||d.timestampOffset):0}; Id=function(d){return d.rO?d.rO-(d.L||d.timestampOffset):0}; mF=function(d){if(!isNaN(d.dO))return d.dO;var q=d.G,T;for(T in q){var Y=q[T].index;if(Y.isLoaded()&&!iW(q[T].info.mimeType)){q=0;for(T=Y.Db();T<=Y.nC();T++)q+=Y.getDuration(T);q/=Y.Od();q=Math.round(q/.5)*.5;Y.Od()>10&&(d.dO=q);return q}if(d.isLive&&(Y=q[T],Y.W3))return Y.W3}return NaN}; LiD=function(d,q){d=G7D(d.G,function(Y){return Y.index.isLoaded()}); if(!d)return NaN;d=d.index;var T=d.yg(q);return d.getStartTime(T)===q?q:T=0&&e.segments.splice(U,1)}}}; PND=function(d){for(var q in d.G)iW(d.G[q].info.mimeType)||Do2(d.G[q].index,Infinity)}; vb=function(d,q,T){for(var Y in d.G){var e=d.G[Y].index,U=q,b=T;e.RF&&(U&&(e.z3=Math.max(e.z3,U)),b&&(e.Dt=Math.max(e.Dt||0,b)))}T&&(d.UD=T/1E3)}; Wig=function(d){d.rO=0;d.Qp=0;d.vF=0}; od=function(d){return d.RU&&d.isManifestless?d.isLiveHeadPlayable:d.isLive}; Cy=function(d,q,T){V8===null&&(V8=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(NCN&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return V8||T!=="9"&&T!=="("?V8||T!=="9h"&&T!=="(h"||(d='video/webm; codecs="vp9.2"'):d='video/webm; codecs="vp9"',d;if(!V8&&!d6||d!=='video/webm; codecs="vp9"'&&d!=='video/webm; codecs="vp9.2"')return d; T="00";var Y="08",e="01",U="01",b="01";d==='video/webm; codecs="vp9.2"'&&(T="02",Y="10",q.primaries==="bt2020"&&(b=e="09"),q.G==="smpte2084"&&(U="16"),q.G==="arib-std-b67"&&(U="18"));return'video/webm; codecs="'+["vp09",T,"51",Y,"01",e,U,b,"00"].join(".")+'"'}; TH=function(d,q,T){d=""+d+(q>49?"p60":q>32?"p48":"");q=HI()[d];if(q!=null&&q>0)return q;q=qd.get(d);if(q!=null&&q>0)return q;T=T==null?void 0:T.get(d);return T!=null&&T>0?T:8192}; CN_=function(d){this.Mk=d;this.zq=this.Mf=this.z2=this.S=this.T=this.xx=this.RU=this.lr=!1;this.L=this.X=0;this.Fw=!1;this.UD=!0;this.AF=!1;this.hq=0;this.qr=this.yv=!1;this.pC=!0;this.aU=this.dO=!1;this.G={};this.fn=this.lF=this.Ln=this.disableAv1=this.kx=this.wk=this.Bv=this.wO=this.U=this.B=!1;this.zX=this.Mk.N("html5_disable_aac_preference");this.ev=Infinity;this.rO=0;this.vF=this.Mk.uF();this.Qp=this.Mk.experiments.Wv("html5_enable_vp9_fairplay");this.V5=this.Mk.N("html5_force_av1_for_testing"); this.qk=g.Yv(this.Mk.experiments,"html5_av1_ordinal_cap");this.ST=this.Mk.N("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.LC=this.Mk.N("html5_account_onesie_format_selection_during_format_filter");this.Vv=g.Yv(this.Mk.experiments,"html5_max_byterate");this.q5=this.Mk.N("html5_enable_iamf_audio");this.gk=this.Mk.experiments.Wv("html5_allow_capability_merge");this.qC=this.Mk.N("html5_enable_encrypted_av1")}; r8N=function(d){if(d.RU)return["f"];if(g.kA("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var q=["9h","9","h","8"];d.qC&&q.push("1e");q=q.concat(["(h","(","H","*"]);d.yv&&(q.unshift("1"),q.unshift("1h"));d.Mf&&q.unshift("h");d.K&&(q=(uD_[d.K]||[d.K]).concat(q));return q}; j5H=function(d){var q=["o","a","A"];d.rO===1&&(d.T&&(q=["mac3","MAC3"].concat(q)),d.S&&(q=["meac3","MEAC3"].concat(q)),d.q5&&(q=["i","I"].concat(q)));d.lr&&(q=["so","sa"].concat(q));!d.zq||d.z2||d.j||d.zX||q.unshift("a");d.j&&(q=(uD_[d.j]||[d.j]).concat(q));return q}; Y8=function(d,q,T,Y){q=q===void 0?{}:q;if(Y===void 0?0:Y)return q.disabled=1,0;if(fY(d.S,zG.AV1_CODECS)&&fY(d.S,zG.HEIGHT)&&fY(d.S,zG.BITRATE))return q.isCapabilityUsable=1,8192;try{var e=elf();if(e&&!d.N("disable_av1_setting"))return q.localPref=e}catch(J){}Y=1080;e=navigator.hardwareConcurrency;e<=2&&(Y=480);q.coreCount=e;if(e=g.Yv(d.experiments,"html5_default_av1_threshold"))Y=q["default"]=e;!d.N("html5_disable_av1_arm_check")&&cfQ()&&(q.isArm=1,Y=240);if(d=d.S.UD)q.mcap=d,Y=Math.max(Y,d);if(T){var U, b;if(d=(U=T.videoInfos.find(function(J){return kV(J)}))==null?void 0:(b=U.U)==null?void 0:b.powerEfficient)Y=8192,q.isEfficient=1; T=T.videoInfos[0].video;U=Math.min(TH("1",T.fps),TH("1",30));q.perfCap=U;Y=Math.min(Y,U);T.isHdr()&&!d&&(q.hdr=1,Y*=.75)}else T=TH("1",30),q.perfCap30=T,Y=Math.min(Y,T),T=TH("1",60),q.perfCap60=T,Y=Math.min(Y,T);return q.av1Threshold=Y}; eJ=function(d,q,T,Y){this.flavor=d;this.keySystem=q;this.U=T;this.experiments=Y;this.G={};this.qk=this.keySystemAccess=null;this.LL=this.Fc=-1;this.zr=null;this.j=!!Y&&Y.Wv("edge_nonprefixed_eme");Y&&Y.Wv("html5_enable_vp9_fairplay")}; be=function(d){return d.j?!1:!d.keySystemAccess&&!!U4()&&d.keySystem==="com.microsoft.playready"}; Xv=function(d){return d.keySystem==="com.microsoft.playready"}; Jj=function(d){return!d.keySystemAccess&&!!U4()&&d.keySystem==="com.apple.fps.1_0"}; s4=function(d){return d.keySystem==="com.youtube.fairplay"}; $8=function(d){return d.keySystem==="com.youtube.fairplay.sbdl"}; g.g6=function(d){return d.flavor==="fairplay"}; U4=function(){var d=window,q=d.MSMediaKeys;Dq()&&!q&&(q=d.WebKitMediaKeys);return q&&q.isTypeSupported?q:null}; Nd=function(d){return navigator.requestMediaKeySystemAccess?g.MI&&!g.WL()?Qy("45"):g.DP||g.Jx?d.Wv("edge_nonprefixed_eme"):g.Fv?Qy("47"):g.F8&&d.Wv("html5_enable_safari_fairplay")?!1:!0:!1}; DF_=function(d,q,T,Y){var e=CZ(),U=(T=e||T&&Dq())?["com.youtube.fairplay"]:["com.widevine.alpha"];q&&U.unshift("com.youtube.widevine.l3");e&&Y&&U.unshift("com.youtube.fairplay.sbdl");return T?U:d?[].concat(g.RQ(U),g.RQ(R9.playready)):[].concat(g.RQ(R9.playready),g.RQ(U))}; x8=function(d,q,T,Y,e){Y=Y===void 0?!1:Y;g.W.call(this);this.Mk=q;this.useCobaltWidevine=Y;this.oU=e;this.U=[];this.j={};this.G={};this.callback=null;this.S=!1;this.T=[];this.initialize(d,!T)}; f2f=function(d,q){d.callback=q;d.T=[];Nd(d.Mk.experiments)?yU(d):wln(d)}; yU=function(d){if(!d.JF())if(d.U.length===0)d.callback(d.T);else{var q=d.U[0],T=d.j[q],Y=z0H(d,T);if(hj&&hj.keySystem===q&&hj.reZ===JSON.stringify(Y))d.oU("remksa",{re:!0}),ikg(d,T,hj.keySystemAccess);else{var e,U;d.oU("remksa",{re:!1,ok:(U=(e=hj)==null?void 0:e.keySystem)!=null?U:""});hj=void 0;navigator.requestMediaKeySystemAccess(q,Y).then(wg(function(b){ikg(d,T,b,Y)}),wg(function(){d.S=!d.S&&d.j[d.U[0]].flavor==="widevine"; d.S||d.U.shift();yU(d)}))}}}; ikg=function(d,q,T,Y){if(!d.JF()){Y&&(hj={keySystem:q.keySystem,keySystemAccess:T,reZ:JSON.stringify(Y)});q.keySystemAccess=T;if(Xv(q)){T=HH();Y=g.E(Object.keys(d.G[q.flavor]));for(var e=Y.next();!e.done;e=Y.next())e=e.value,q.G[e]=!!T.canPlayType(e)}else{T=q.keySystemAccess.getConfiguration();if(T.audioCapabilities)for(Y=g.E(T.audioCapabilities),e=Y.next();!e.done;e=Y.next())q.G[e.value.contentType]=!0;if(T.videoCapabilities)for(T=g.E(T.videoCapabilities),Y=T.next();!Y.done;Y=T.next())q.G[Y.value.contentType]= !0}d.T.push(q);d.useCobaltWidevine||d.N("html5_enable_vp9_fairplay")&&$8(q)?(d.U.shift(),yU(d)):d.callback(d.T)}}; z0H=function(d,q){var T={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(d.N("html5_enable_vp9_fairplay")&&s4(q))return T.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),T.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[T];Xv(q)&&(T.initDataTypes=["keyids","cenc"]);for(var Y=g.E(Object.keys(d.G[q.flavor])),e=Y.next();!e.done;e=Y.next()){e=e.value;var U=e.indexOf("audio/")===0,b=U?T.audioCapabilities:T.videoCapabilities;q.flavor!== "widevine"||d.S?b.push({contentType:e}):U?b.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.MI&&g.kA("windows nt")&&!d.N("html5_drm_enable_moho")||b.push({contentType:e,robustness:"HW_SECURE_ALL"}),U=e,d.Mk.S.j&&e.includes("vp09")&&(U=e+"; experimental=allowed"),b.push({contentType:U,robustness:"SW_SECURE_DECODE"}),Hx(d.Mk)==="MWEB"&&(m9()||PL())&&(d.oU("swcrypto",{}),b.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[T]}; wln=function(d){if(U4()&&(g.F8||fZ))d.T.push(new eJ("fairplay","com.apple.fps.1_0","",d.Mk.experiments));else{var q=I2g(),T=g.QN(d.U,function(Y){var e=d.j[Y],U=!1,b=!1,J;for(J in d.G[e.flavor])q(J,Y)&&(e.G[J]=!0,U=U||J.indexOf("audio/")===0,b=b||J.indexOf("video/")===0);return U&&b}); T&&d.T.push(d.j[T]);d.U=[]}d.callback(d.T)}; I2g=function(){var d=U4();if(d){var q=d.isTypeSupported;return function(Y,e){return q(e,Y)}}var T=HH(); return T&&(T.addKey||T.webkitAddKey)?function(Y,e){return!!T.canPlayType(Y,e)}:function(){return!1}}; mFI=function(d){this.experiments=d;this.G=2048;this.T=0;this.lr=(this.L=this.N("html5_streaming_resilience"))?.5:.25;var q=q===void 0?0:q;this.j=g.Yv(this.experiments,"html5_media_time_weight_prop")||q;this.K=(this.S=this.experiments.Wv("html5_consider_end_stall"))&&QU;this.U=this.experiments.Wv("html5_measure_max_progress_handling");this.B=this.N("html5_treat_requests_pre_elbow_as_metadata");this.X=this.N("html5_media_time_weight")||!!this.j;this.N("html5_sabr_live_audio_early_return_fix")&&QU&& (this.G=65536)}; SX6=function(d,q){this.G=void 0;this.experimentIds=d?d.split(","):[];this.flags=mR(q||"","&");d={};q=g.E(this.experimentIds);for(var T=q.next();!T.done;T=q.next())d[T.value]=!0;this.experiments=d}; g.Yv=function(d,q){d=d.flags[q];JSON.stringify(d);return Number(d)||0}; Md=function(d,q){return(d=d.flags[q])?d.toString():""}; l2f=function(d){if(d=d.flags.html5_web_po_experiment_ids)if(d=d.replace(/\[ *(.*?) *\]/,"$1"))return d.split(",").map(Number);return[]}; vx_=function(d){if(d.G)return d.G;if(d.experimentIds.length<=1)return d.G=d.experimentIds,d.G;var q=[].concat(g.RQ(d.experimentIds)).map(function(Y){return Number(Y)}); q.sort();for(var T=q.length-1;T>0;--T)q[T]-=q[T-1];d.G=q.map(function(Y){return Y.toString()}); d.G.unshift("v1");return d.G}; V1D=function(d){return ox1.then(d)}; cx=function(d,q,T){this.experiments=d;this.rO=q;this.z2=T===void 0?!1:T;this.K=!!g.qx("cast.receiver.platform.canDisplayType");this.B={};this.lr=!1;this.T=new Map;this.L=!0;this.U=this.j=!1;this.G=new Map;this.UD=0;this.yv=this.experiments.Wv("html5_disable_vp9_encrypted");this.S=this.experiments.Wv("html5_enable_encrypted_av1");d=g.qx("cast.receiver.platform.getValue");this.X=!this.K&&d&&d("max-video-resolution-vpx")||null;dB1(this);this.j=!!(CZ()&&LZ()>=21)}; Ka2=function(d,q,T){T=T===void 0?1:T;var Y=q.itag;if(Y==="0")return!0;var e=q.mimeType;if(q.Cf==="1e"&&!d.S)return"dav1enc";if(kV(q)&&d.lr)return"dav1";if(q.video&&(q.video.isHdr()||q.video.primaries==="bt2020")&&!(fY(d,zG.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.MI?Qy(53):g.Fv&&Qy(64)))return"dopus";var U=T;U=U===void 0?1: U;T={};q.video&&(q.video.width&&(T[zG.WIDTH.name]=q.video.width),q.video.height&&(T[zG.HEIGHT.name]=q.video.height),q.video.fps&&(T[zG.FRAMERATE.name]=q.video.fps*U),q.video.G&&(T[zG.EOTF.name]=q.video.G),q.Vv&&(T[zG.BITRATE.name]=q.Vv*8*U),q.Cf==="("&&(T[zG.CRYPTOBLOCKFORMAT.name]="subsample"),q.video.projectionType==="EQUIRECTANGULAR"||q.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||q.video.projectionType==="MESH")&&(T[zG.DECODETOTEXTURE.name]="true");q.audio&&q.audio.numChannels&& (T[zG.CHANNELS.name]=q.audio.numChannels);d.j&&Ke(q)&&(T[zG.EXPERIMENTAL.name]="allowed");U=g.E(Object.keys(zG));for(var b=U.next();!b.done;b=U.next()){b=zG[b.value];var J;if(J=T[b.name])if(J=!(b===zG.EOTF&&q.mimeType.indexOf("vp09.02")>0)){J=b;var F=q;J=!(d.experiments.Wv("html5_ignore_h264_framerate_cap")&&J===zG.FRAMERATE&&Kr7(F))}if(J)if(fY(d,b))if(d.X){if(d.X[b.name] 1080&&q.ac&&(e+="; hdcp=2.2");return Y==="227"?"hqcenc":Y!=="585"&&Y!=="588"&&Y!=="583"&&Y!=="586"&&Y!=="584"&&Y!=="587"&&Y!=="591"&&Y!=="592"||d.experiments.Wv("html5_enable_new_hvc_enc")?CZ()&&LZ()>=21&&g.kA("appletv5")&&(Y==="410"||Y==="845")?!0:d.isTypeSupported(e)?!0:"tpus":"newhvc"}; E4=function(){var d=PL()&&!Qy(29),q=g.kA("google tv")&&g.kA("chrome")&&!Qy(30);return d||q?!1:CEn()}; q_2=function(d,q,T){var Y=480;q=g.E(q);for(var e=q.next();!e.done;e=q.next()){e=e.value;var U=e.video.qualityOrdinal;U<=1080&&U>Y&&Ka2(d,e,T)===!0&&(Y=U)}return Y}; g.jJ=function(d,q){q=q===void 0?!1:q;return E4()&&d.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!q&&d.canPlayType(HH(),"application/x-mpegURL")?!0:!1}; Y_I=function(d){TUD(function(){for(var q=g.E(Object.keys(zG)),T=q.next();!T.done;T=q.next())fY(d,zG[T.value])})}; fY=function(d,q){q.name in d.B||(d.B[q.name]=ecf(d,q));return d.B[q.name]}; ecf=function(d,q){if(d.X)return!!d.X[q.name];if(q===zG.BITRATE&&d.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!d.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(q===zG.AV1_CODECS)return d.isTypeSupported("video/mp4; codecs="+q.valid)&&!d.isTypeSupported("video/mp4; codecs="+q.xl);if(q.video){var T='video/webm; codecs="vp9"';d.isTypeSupported(T)||(T='video/mp4; codecs="avc1.4d401e"')}else T='audio/webm; codecs="opus"', d.isTypeSupported(T)||(T='audio/mp4; codecs="mp4a.40.2"');return d.isTypeSupported(T+"; "+q.name+"="+q.valid)&&!d.isTypeSupported(T+"; "+q.name+"="+q.xl)}; UB7=function(d,q){var T=0;d.T.has(q)&&(T=d.T.get(q).uU);d.T.set(q,{uU:T+1,bM:Math.pow(2,T+1)});d.U=!0}; CY=function(d){for(var q=[],T=g.E(d.G.keys()),Y=T.next();!Y.done;Y=T.next()){Y=Y.value;var e=d.G.get(Y);q.push(Y+"_"+e.maxWidth+"_"+e.maxHeight)}return q.join(".")}; A8D=function(d,q){for(var T=new Map,Y=g.E(d.G.keys()),e=Y.next();!e.done;e=Y.next()){e=e.value;var U=e.split("_")[0];q.has(U)||T.set(e,d.G.get(e))}d.G=T}; Zw7=function(d,q,T){var Y,e=((Y=T.video)==null?void 0:Y.fps)||0;Y=q+"_"+e;var U=!!T.audio,b={itag:T.itag,Cf:q,JE:U};if(U)b.numChannels=T.audio.numChannels;else{var J=T.video;b.maxWidth=J==null?void 0:J.width;b.maxHeight=J==null?void 0:J.height;b.maxFramerate=e;fY(d,zG.BITRATE)&&(b.maxBitrateBps=T.Vv*8);b.OE=J==null?void 0:J.isHdr()}J=d.G.get(Y);J?U||(T=Math.max(J.maxWidth||0,J.maxHeight||0)>Math.max(b.maxWidth||0,b.maxHeight||0)?J:b,q={itag:T.itag,Cf:q,JE:U,maxWidth:Math.max(J.maxWidth||0,b.maxWidth|| 0),maxHeight:Math.max(J.maxHeight||0,b.maxHeight||0),maxFramerate:e,OE:T.OE},fY(d,zG.BITRATE)&&(q.maxBitrateBps=T.maxBitrateBps),d.G.set(Y,q)):d.G.set(Y,b)}; OwI=function(d,q,T){var Y,e=((Y=T.video)==null?void 0:Y.fps)||0;Y=q+"_"+e;var U=!!T.audio,b=d.G.get(Y);a:{var J=d.G.get(Y),F=!!T.audio;if(J){if(F){var N=!1;break a}var R;if(!F&&((N=T.video)==null?0:N.height)&&J.maxHeight&&J.maxHeight>=((R=T.video)==null?void 0:R.height)){N=!1;break a}}N=!0}N&&(N=T.itag,q=b?b:{itag:N,Cf:q,JE:U},U?q.numChannels=T.audio.numChannels:(U=T.video,q.maxWidth=U==null?void 0:U.width,q.maxHeight=U==null?void 0:U.height,q.maxFramerate=e,fY(d,zG.BITRATE)&&(q.maxBitrateBps=T.Vv* 8),q.OE=U==null?void 0:U.isHdr()),d.G.set(Y,q))}; dB1=function(d){var q;(q=navigator.mediaCapabilities)!=null&&q.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(T){T.smooth&&T.powerEfficient&&(d.UD=2160)})}; a9=function(){g.YP.call(this);this.items={}}; Aj=function(d,q){this.G=d;this.cipher=this.G.exports.AES128CTRCipher_create(q.byteOffset)}; ZN=function(){this.U=this.oI=0;this.G=Array.from({length:pO.length}).fill(0)}; bdf=function(){}; XnQ=function(){this.startTimeMs=(0,g.cj)();this.G=!1}; JPn=function(){this.G=new bdf}; s0I=function(d,q,T,Y){Y=Y===void 0?1:Y;T>=0&&(q in d.G||(d.G[q]=new ZN),d.G[q].Z5(T,Y))}; $BY=function(d,q,T,Y,e){var U=(0,g.cj)(),b=e?e(q):void 0,J;e=(J=b==null?void 0:b.oI)!=null?J:1;if(e!==0){var F;J=(F=b==null?void 0:b.profile)!=null?F:T;s0I(d,J,U-Y,e)}return q}; gKN=function(d,q,T,Y,e){if(q&&typeof q==="object"){var U=function(b){return $BY(d,b,T,Y,e)}; if(Z4(q))return q.then(U);if(p0(q))return BN(q,U)}return $BY(d,q,T,Y,e)}; Fl_=function(){}; xB1=function(d,q){return GD(NUD,function(){var T=this;return function e(){var U,b,J;return Wg(e,function(F){switch(F.U){case 1:g.aQ(F,2);if(!T.T)throw"wasm.ps.ns";U=d;b=u_;return cg(F,L0(RcY(T,q)),4);case 4:J=b(F.G);if(!J)throw"wasm.ps.um";try{return F.return(new WebAssembly.Instance(J,U))}catch(N){}return cg(F,L0(WebAssembly.instantiate(J,U)),5);case 5:return F.return(F.G);case 2:g.KN(F),g.LN(F,0)}})}()})}; yPf=function(d,q){d.G||(d.G=BN(rg(function(){return fetch(q)}),function(T){return T.arrayBuffer()}),K0(d.G,function(T){d.G=void 0; throw"wasm.ps.f: "+T;}))}; RcY=function(d,q){if(d.U)return d.U;d.U=hc7(d,q);K0(d.U,function(T){d.U=void 0;throw"wasm.ps.c: "+T;}); return d.U}; hc7=function(d,q){return GD(d,function(){var T=this;return function e(){var U,b,J,F,N,R,x,y,h,H,a,p,t,n;return Wg(e,function(K){switch(K.U){case 1:g.aQ(K,2);U=[];b=window.ywc;if(!b){K.tF(4);break}J=b[q];if(!J){K.tF(4);break}if(J.mod)return K.return(J.mod);if(!J.modP){K.tF(6);break}g.jD(K,7);F=u_;return cg(K,L0(J.modP),9);case 9:return K.return(F(K.G));case 7:g.nN(K),U.unshift("pcm");case 6:if(J.bin){T.G=OT(J.bin);K.tF(4);break}if(!J.binP){K.tF(4);break}g.jD(K,12);N=AH;R=OT;x=u_;return cg(K,L0(J.binP), 14);case 14:T.G=R.call(N,x(K.G));g.ZX(K,4);break;case 12:g.nN(K),T.G=void 0,U.unshift("pfb");case 4:if(!T.G){K.tF(15);break}g.jD(K,16);y=u_;return cg(K,L0(T.G),18);case 18:h=y(K.G);if(T.j)try{return K.return(new WebAssembly.Module(h))}catch(P){T.j=!1,U.unshift("f0cs")}H=u_;return cg(K,L0(WebAssembly.compile(h)),19);case 19:return K.return(H(K.G));case 16:g.nN(K),T.G=void 0,U.unshift("f0ca");case 15:return g.jD(K,20),yPf(T,q),a=u_,cg(K,L0(T.G),22);case 22:p=a(K.G);if(T.j)try{return K.return(new WebAssembly.Module(p))}catch(P){T.j= !1,U.unshift("f1cs")}t=u_;return cg(K,L0(WebAssembly.compile(p)),23);case 23:return K.return(t(K.G));case 20:n=g.nN(K),T.G=void 0,T.T=!1,U.unshift("f1ca: "+n);case 21:throw"["+U.map(function(P){return'"'+P+'"'}).join(", ")+"]"; case 2:g.KN(K),g.LN(K,0)}})}()})}; Hd_=function(){}; Q0j=function(){var d=this;this.proc_exit=function(){}; this.fd_write=function(q,T,Y){if(!d.exports)return 1;q=new Uint32Array(d.exports.memory.buffer,T,Y*2);T=[];for(var e=0;e0)q=d.byterate,this.lr=!0;else{var Y; T=(((Y=navigator.connection)==null?void 0:Y.downlink)||0)*64*1024;T>0&&(q=T,this.lr=!0)}this.j.gH(this.policy.X,q);d.delay>0&&this.B.gH(1,Math.min(d.delay,2));d.stall>0&&this.L.gH(1,d.stall);d.init>0&&(this.aU=Math.min(d.init,this.aU));d.interruptions&&(this.T=this.T.concat(d.interruptions),this.T.length>16&&this.T.pop());this.UD=(0,g.cj)();this.policy.L>0&&(this.RU=new g.f9(this.xx,this.policy.L,this),g.C(this,this.RU),this.RU.start())}; ue=function(d,q,T,Y){d.j.gH(Y===void 0?q:Y,T/q);d.X=(0,g.cj)()}; ZdI=function(d){d.S||(d.S=(0,g.cj)());d.policy.K&&(d.X=(0,g.cj)())}; OdX=function(d,q){if(d.S){var T=q-d.S;if(T<6E4){if(T>1E3){var Y=d.interruptions;Y.push(Math.ceil(T));Y.sort(function(e,U){return U-e}); Y.length>16&&Y.pop()}d.rO+=T}}d.S=q}; DN=function(d,q,T,Y,e,U){U=U===void 0?!1:U;d.dO.gH(q,T/q);d.X=(0,g.cj)();e||d.K.gH(1,q-Y);U||(d.S=0);d.UD>-1&&(0,g.cj)()-d.UD>3E4&&nKH(d)}; w6=function(d,q,T){q=Math.max(q,d.U.G);d.L.gH(1,T/q)}; fO=function(d){d=d.B.W4()+d.z2.W4()||0;d=isNaN(d)?.5:d;return d=Math.min(d,5)}; zH=function(d,q,T){isNaN(T)||(d.yv+=T);isNaN(q)||(d.qk+=q)}; ie=function(d){d=d.j.W4();return d>0?d:1}; I9=function(d,q,T){q=q===void 0?!1:q;T=T===void 0?1048576:T;var Y=ie(d);Y=1/((d.L.W4()||0)*d.policy.lr+1/Y);var e=d.dO.W4();e=e>0?e:1;var U=Math.max(Y,e);d.policy.S>0&&e=4E3}; tdf=function(d){this.experiments=d;this.G=17;this.j=13E4;this.X=.5;this.T=this.U=!1;this.UD=this.N("html5_use_histogram_for_bandwidth");this.S=g.Yv(this.experiments,"html5_auxiliary_estimate_weight");this.lr=g.Yv(this.experiments,"html5_stall_factor")||1;this.L=g.Yv(this.experiments,"html5_check_for_idle_network_interval_ms");this.B=this.experiments.Wv("html5_trigger_loader_when_idle_network");this.K=this.experiments.Wv("html5_sabr_fetch_on_idle_network_preloaded_players")}; KlY=function(d,q){d=d===void 0?{}:d;q=q===void 0?{}:q;g.W.call(this);var T=this;this.values=d;this.OQ=q;this.U={};this.j=this.G=0;this.T=new g.f9(function(){BUI(T)},1E4); g.C(this,this.T)}; SJ=function(d,q){Gug(d,q);return d.values[q]&&d.OQ[q]?d.values[q]/Math.pow(2,d.G/d.OQ[q]):0}; Gug=function(d,q){d.values[q]||(q=do7(),d.values=q.values||{},d.OQ=q.halfLives||{},d.U=q.values?Object.assign({},q.values):{})}; BUI=function(d){var q=do7();if(q.values){q=q.values;for(var T={},Y=g.E(Object.keys(d.values)),e=Y.next();!e.done;e=Y.next())e=e.value,q[e]&&d.U[e]&&(d.values[e]+=q[e]-d.U[e]),T[e]=SJ(d,e);d.U=T}q=d.OQ;T={};T.values=d.U;T.halfLives=q;g.pW("yt-player-memory",T,2592E3)}; Rn=function(d,q,T,Y,e){g.W.call(this);this.webPlayerContextConfig=q;this.If=Y;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Y1=this.fn=this.ST=this.wU=this.userDisplayName=this.userDisplayImage=this.E$="";this.G={};this.Qp={};this.controlsType="0";this.zq=NaN;this.Bv=!1;this.vA=(0,g.cj)();this.lF=0;this.Yz=this.m1=!1;this.PR=!0;this.preferGapless=this.zr=this.R6=this.j=this.Je=!1;this.gB=[];this.XF=!1;this.H1=0;d=d?g.x9(d):{};q&&q.csiPageType&&(this.csiPageType=q.csiPageType);q&&q.csiServiceName&& (this.csiServiceName=q.csiServiceName);q&&q.preferGapless&&(this.preferGapless=q.preferGapless);this.experiments=new SX6(q?q.serializedExperimentIds:d.fexp,q?q.serializedExperimentFlags:d.fflags);this.forcedExperiments=q?q.serializedForcedExperimentIds:d8("",d.forced_experiments)||void 0;this.cspNonce=(q==null?0:q.cspNonce)?q.cspNonce:d8("",d.csp_nonce);this.N("web_player_deprecated_uvr_killswitch");try{var U=document.location.toString()}catch(b_){U=""}this.rA=U;this.ancestorOrigins=(Y=window.location.ancestorOrigins)? Array.from(Y):[];this.T=vL(!1,q?q.isEmbed:d.is_embed);if(q&&q.device){if(Y=q.device,Y.androidOsExperience&&(this.G.caoe=""+Y.androidOsExperience),Y.androidPlayServicesVersion&&(this.G.capsv=""+Y.androidPlayServicesVersion),Y.brand&&(this.G.cbrand=Y.brand),Y.browser&&(this.G.cbr=Y.browser),Y.browserVersion&&(this.G.cbrver=Y.browserVersion),Y.cobaltReleaseVehicle&&(this.G.ccrv=""+Y.cobaltReleaseVehicle),this.G.c=Y.interfaceName||"WEB",this.G.cver=Y.interfaceVersion||"html5",Y.interfaceTheme&&(this.G.ctheme= Y.interfaceTheme),this.G.cplayer=Y.interfacePlayerType||"UNIPLAYER",Y.model&&(this.G.cmodel=Y.model),Y.network&&(this.G.cnetwork=Y.network),Y.os&&(this.G.cos=Y.os),Y.osVersion&&(this.G.cosver=Y.osVersion),Y.platform&&(this.G.cplatform=Y.platform),U=Md(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),U==="all"||U==="once")Y.chipset&&(this.Qp.cchip=Y.chipset),Y.cobaltAppVersion&&(this.Qp.ccappver=Y.cobaltAppVersion),Y.firmwareVersion&&(this.Qp.cfrmver=Y.firmwareVersion),Y.deviceYear&&(this.Qp.crqyear= Y.deviceYear)}else this.G.c=d.c||"web",this.G.cver=d.cver||"html5",this.G.cplayer="UNIPLAYER";this.loaderUrl=q?this.T||Ll2(this)&&q.loaderUrl?q.loaderUrl||"":this.rA:this.T||Ll2(this)&&d.loaderUrl?d8("",d.loaderUrl):this.rA;this.T&&g.Vf("yt.embedded_player.embed_url",this.loaderUrl);this.B=Dp(this.loaderUrl,ku_);Y=this.loaderUrl;var b=b===void 0?!1:b;this.W$=uG(Dp(Y,PuQ),Y,b,"Trusted Ad Domain URL");this.ev=vL(!1,d.privembed);this.protocol=this.rA.indexOf("http:")===0?"http":"https";this.XM=xh7((q? q.customBaseYoutubeUrl:d.BASE_YT_URL)||"")||xh7(this.rA)||this.protocol+"://www.youtube.com/";b=q?q.eventLabel:d.el;Y="detailpage";b==="adunit"?Y=this.T?"embedded":"detailpage":b==="embedded"||this.B?Y=oD(Y,b,WlN):b&&(Y="embedded");this.z2=Y;r1I();b=null;Y=q?q.playerStyle:d.ps;U=g.cR(Cu6,Y);!Y||U&&!this.B||(b=Y);this.playerStyle=b;this.X=g.cR(Cu6,this.playerStyle);this.houseBrandUserStatus=q==null?void 0:q.houseBrandUserStatus;this.UD=this.X&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.JW=!this.UD;this.RU=vL(!1,d.disableplaybackui);this.disablePaidContentOverlay=vL(!1,q==null?void 0:q.disablePaidContentOverlay);this.disableSeek=vL(!1,q==null?void 0:q.disableSeek);this.enableSpeedOptions=(q==null?void 0:q.enableSpeedOptions)||(HH().defaultPlaybackRate?le||g.ID||vx?g.Fv&&Qy("20")||g.MI&&Qy("4")||g.o9&&Qy("11")||w7():!(g.o9&&!g.kA("chrome")||le||g.kA("android")||g.kA("silk")):!1);this.Nf=vL(!1,d.enable_faster_speeds);var J;this.supportsVarispeedExtendedFeatures=(J=q==null?void 0: q.supportsVarispeedExtendedFeatures)!=null?J:!1;this.U=vL(this.playerStyle==="blazer",d.is_html5_mobile_device||q&&q.isMobileDevice);this.qk=ib()||m9();this.H$=this.N("mweb_allow_background_playback")?!1:this.U&&!this.X;this.dO=j7();this.hs=g.VU;var F;this.Qs=!!(q==null?0:(F=q.embedsHostFlags)==null?0:F.optOutApiDeprecation);var N;q?q.hideInfo!==void 0&&(N=!q.hideInfo):N=d.showinfo;this.Y6=g.dn(this)&&!this.Qs||vL(!qi(this)&&!TF(this)&&!this.X,N);this.rK=q?!!q.mobileIphoneSupportsInlinePlayback:vL(!1, d.playsinline);J=this.U&&Yl&&eZ!=null&&eZ>0&&eZ<=2.3;F=q?q.useNativeControls:d.use_native_controls;this.L=g.dn(this)&&this.U;N=this.U&&!this.L;F=g.Um(this)||!J&&vL(N,F)?"3":"1";this.disableOrganicUi=!(q==null||!q.disableOrganicUi);N=q?q.controlsType:d.controls;this.controlsType=this.disableOrganicUi||N==="0"||N===0?"0":F;this.Gv=this.U;this.color=oD("red",q?q.progressBarColor:d.color,uF2);this.r3=this.controlsType==="3";this.vF=!this.T;this.hC=(F=!this.vF&&!TF(this)&&!this.UD&&!this.X&&!qi(this))&& !this.r3&&this.controlsType==="1";this.gk=g.bS(this)&&F&&this.controlsType==="0"&&!this.hC&&!(q==null?0:q.embedsEnableEmc3ds);this.u3=this.YH=J;this.qC=(this.controlsType==="3"||this.U||vL(!1,d.use_media_volume))&&!this.L;this.bV=fZ&&!g.WZ(601)?!1:!0;this.sZ=this.T||!1;this.Ln=TF(this)?"":(this.loaderUrl||d.post_message_origin||"").substring(0,128);this.widgetReferrer=d8("",q?q.widgetReferrer:d.widget_referrer);var R;q?q.disableCastApi&&(R=!1):R=d.enablecastapi;R=!this.B||vL(!0,R);J=!0;q&&q.disableMdxCast&& (J=!1);this.Aq=this.N("enable_cast_for_web_unplugged")&&g.XW(this)&&J||g.KG(this)&&J||R&&J&&this.controlsType==="1"&&!this.U&&(TF(this)||g.bS(this)||g.JJ(this));this.H9=!!window.document.pictureInPictureEnabled||EJ();R=q?!!q.supportsAutoplayOverride:vL(!1,d.autoplayoverride);this.yH=!(this.U&&!g.dn(this))&&!g.kA("nintendo wiiu")||R;this.lS=(q?!!q.enableMutedAutoplay:vL(!1,d.mutedautoplay))&&!1;R=(TF(this)||qi(this))&&this.playerStyle==="blazer";this.B3=q?!!q.disableFullscreen:!vL(!0,d.fs);J=g.eX(g.sm(this))&& g.dn(this);this.wO=!this.B3&&(R||g.g8())&&!J;this.Kw=this.N("html5_picture_in_picture_logging_onresize");var x;this.wJ=(x=g.Yv(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?x:.33;this.M0=this.N("html5_picture_in_picture_blocking_onresize");this.zs=this.N("html5_picture_in_picture_blocking_ontimeupdate");this.VY=this.N("html5_picture_in_picture_blocking_document_fullscreen");this.pS=this.N("html5_picture_in_picture_blocking_standard_api");x=PL()&&Qy(58)&&!m9();R=uR||typeof MediaSource=== "undefined";this.fp=this.N("uniplayer_block_pip")&&(x||R)||this.M0||this.zs||this.pS;x=g.dn(this)&&!this.Qs;var y;q?q.disableRelatedVideos!==void 0&&(y=!q.disableRelatedVideos):y=d.rel;this.LC=x||vL(!this.X,y);this.sQ=vL(!1,q?q.enableContentOwnerRelatedVideos:d.co_rel);this.K=m9()&&eZ>0&&eZ<=4.4?"_top":"_blank";this.Kz=g.JJ(this);this.w4=vL(this.playerStyle==="blazer",q?q.enableCsiLogging:d.enablecsi);switch(this.playerStyle){case "blogger":y="bl";break;case "gmail":y="gm";break;case "gac":y="ga"; break;case "ads-preview":y="ap";break;case "books":y="gb";break;case "docs":case "flix":y="gd";break;case "duo":y="gu";break;case "google-live":y="gl";break;case "google-one":y="go";break;case "play":case "play-ads":y="gp";break;case "chat":y="hc";break;case "hangouts-meet":y="hm";break;case "photos-edu":case "picasaweb":y="pw";break;default:y="yt"}this.lr=y;this.yv=d8("",q?q.authorizedUserIndex:d.authuser);this.q5=g.dn(this)&&(this.ev||!Q2Y()||this.qk);var h;q?q.disableWatchLater!==void 0&&(h=!q.disableWatchLater): h=d.showwatchlater;this.FW=((y=!this.q5)||!!this.yv&&y)&&vL(!this.UD,this.B?h:void 0);this.V5=q?q.isMobileDevice||!!q.disableKeyboardControls:vL(!1,d.disablekb);this.loop=vL(!1,d.loop);this.pageId=d8("",q?q.initialDelegatedSessionId:d.pageid);this.aZ=vL(!0,d.canplaylive);h=g.Yv(this.experiments,"html5_default_audio_quality_setting_lr");var H;this.mw=(H=DBH[DBH[h]])!=null?H:0;this.kx=vL(!1,d.livemonitor);this.disableSharing=vL(this.X,q?q.disableSharing:d.ss);(H=q&&this.N("fill_video_container_size_override_from_wpcc")? q.videoContainerOverride:d.video_container_override)?(h=H.split("x"),h.length!==2?H=null:(H=Number(h[0]),h=Number(h[1]),H=isNaN(H)||isNaN(h)||H*h<=0?null:new g.zP(H,h))):H=null;this.aF=H;this.mute=q?!!q.startMuted:vL(!1,d.mute);this.storeUserVolume=!this.mute&&vL(this.controlsType!=="0",q?q.storeUserVolume:d.store_user_volume);H=q?q.annotationsLoadPolicy:d.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:oD(void 0,H,$l);this.captionsLanguagePreference=q?q.captionsLanguagePreference|| "":d8("",d.cc_lang_pref);H=oD(2,q?q.captionsLanguageLoadPolicy:d.cc_load_policy,$l);this.controlsType==="3"&&H===2&&(H=3);this.Gr=H;this.wk=q?q.hl||"en_US":d8("en_US",d.hl);this.region=q?q.contentRegion||"US":d8("US",d.cr);this.hostLanguage=q?q.hostLanguage||"en":d8("en",d.host_language);this.Se=!this.ev&&Math.random()=480;this.schedule=new CO(x,new mFI(this.experiments),e);g.C(this,this.schedule);var a;this.enableSafetyMode=(a=q==null?void 0:q.initialEnableSafetyMode)!=null?a:vL(!1,d.enable_safety_mode);e=this.RU?!1:TF(this)&&this.playerStyle!== "blazer";var p;q?q.disableAutonav!=null&&(p=!q.disableAutonav):p=d.allow_autonav;this.zX=vL(e,!this.UD&&p);this.sendVisitorIdHeader=q?!!q.sendVisitorIdHeader:vL(!1,d.send_visitor_id_header);var t;this.playerStyle==="docs"&&(q?t=q.disableNativeContextMenu:t=d.disable_native_context_menu);this.disableNativeContextMenu=vL(!1,t);this.tW=yz(this)&&this.N("enable_skip_intro_button");this.embedConfig=d8("",q?q.serializedEmbedConfig:d.embed_config);this.rO=YO(d,g.dn(this));this.j=this.rO==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(q==null||!q.embedsErrorLinks);this.Vt=vL(!1,d.full_window);var n;this.AF=!((n=this.webPlayerContextConfig)==null?0:n.chromeless);var K;this.livingRoomAppMode=oD("LIVING_ROOM_APP_MODE_UNSPECIFIED",d.living_room_app_mode||(q==null?void 0:(K=q.device)==null?void 0:K.livingRoomAppMode),zcn);var P;p=VB(NaN,q==null?void 0:(P=q.device)==null?void 0:P.deviceYear);isNaN(p)||(this.deviceYear=p);this.transparentBackground=q?!!q.transparentBackground:vL(!1,d.transparent_background);this.showMiniplayerButton= q?!!q.showMiniplayerButton:vL(!1,d.show_miniplayer_button);var w;g.dn(this)&&!(q==null?0:(w=q.embedsHostFlags)==null?0:w.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=q?!!q.externalFullscreen:vL(!1,d.external_fullscreen);this.showMiniplayerUiWhenMinimized=q?!!q.showMiniplayerUiWhenMinimized:vL(!1,d.use_miniplayer_ui);var l;this.PR=(l=d.show_loop_video_toggle)!=null?l:!0;this.yl=Math.random()<1E-4;if(d.onesie_hot_config||(q==null?0:q.onesieHotConfig))this.pC=new AP2(d.onesie_hot_config, q==null?void 0:q.onesieHotConfig),g.C(this,this.pC);this.isTectonic=q?!!q.isTectonic:!!d.isTectonic;this.playerCanaryState=T;this.playerCanaryStage=q==null?void 0:q.canaryStage;this.dA=new KlY;g.C(this,this.dA);this.datasyncId=(q==null?void 0:q.datasyncId)||g.Cs("DATASYNC_ID");this.wB=g.Cs("LOGGED_IN",!1);this.t0=(q==null?void 0:q.allowWoffleManagement)||!1;this.Pa=Infinity;this.K8=NaN;this.livingRoomPoTokenId=q==null?void 0:q.livingRoomPoTokenId;this.N("html5_high_res_logging_always")?this.R6=!0: this.R6=Math.random()*100=0&&d0&&d.yl&&(Y.sort(),g.OL(new g.CW("Player client parameters changed after startup",Y)));d.userAge=VB(d.userAge,q.user_age);d.E$=d8(d.E$,q.user_display_email);d.userDisplayImage=d8(d.userDisplayImage,q.user_display_image);g.fu(d.userDisplayImage)||(d.userDisplayImage= "");d.userDisplayName=d8(d.userDisplayName,q.user_display_name);d.wU=d8(d.wU,q.user_gender);d.csiPageType=d8(d.csiPageType,q.csi_page_type);d.csiServiceName=d8(d.csiServiceName,q.csi_service_name);d.w4=vL(d.w4,q.enablecsi);d.pageId=d8(d.pageId,q.pageid);if(T=q.enabled_engage_types)d.enabledEngageTypes=new Set(T.split(","));q.living_room_session_po_token&&(d.qU=q.living_room_session_po_token.toString())}; xl=function(d,q){return!d.X&&PL()&&Qy(55)&&d.controlsType==="3"&&!q}; g.yv=function(d){d=gn(d.XM);return d==="www.youtube-nocookie.com"?"www.youtube.com":d}; hJ=function(d,q,T){return d.protocol+"://i1.ytimg.com/vi/"+q+"/"+(T||"hqdefault.jpg")}; HT=function(d){return TF(d)&&!g.XW(d)}; g.Um=function(d){return d.N("html5_local_playsinline")?fZ&&!g.WZ(602)&&!("playsInline"in HH()):fZ&&!d.rK||g.kA("nintendo wiiu")?!0:!1}; Hx=function(d){return d.G.c}; g.ho=function(d){return/^TVHTML5/.test(Hx(d))}; g.Qv=function(d){return Hx(d)==="TVHTML5"}; Ll2=function(d){return Hx(d)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; fD6=function(d){return d.G.cmodel==="CHROMECAST ULTRA/STEAK"||d.G.cmodel==="CHROMECAST/STEAK"}; g.Mi=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; yz=function(d){return/web/i.test(Hx(d))}; g.cT=function(d){return Hx(d).toUpperCase()==="WEB"}; Ni=function(d){return Hx(d)==="WEB_KIDS"}; g.XW=function(d){return Hx(d)==="WEB_UNPLUGGED"}; Em=function(d){return Hx(d)==="TVHTML5_UNPLUGGED"}; g.xv=function(d){return g.XW(d)||Hx(d)==="TV_UNPLUGGED_CAST"||Em(d)}; g.KG=function(d){return Hx(d)==="WEB_REMIX"}; g.jZ=function(d){return Hx(d)==="WEB_MUSIC_INTEGRATIONS"}; g.an=function(d){return Hx(d)==="WEB_EMBEDDED_PLAYER"}; g.pI=function(d){return(d.deviceIsAudioOnly||!g.MI||uR||d.controlsType==="3"?!1:g.ID?d.T&&g.WZ(51):!0)||(d.deviceIsAudioOnly||!g.Fv||uR||d.controlsType==="3"?!1:g.ID?d.T&&g.WZ(48):g.WZ(38))||(d.deviceIsAudioOnly||!g.o9||uR||d.controlsType==="3"?!1:g.ID?d.T&&g.WZ(37):g.WZ(27))||!d.deviceIsAudioOnly&&g.AJ&&!a_f()&&g.WZ(11)||!d.deviceIsAudioOnly&&g.F8&&g.WZ("604.4")}; mB7=function(d){if(g.bS(d)&&Yl)return!1;if(g.Fv){if(!g.WZ(47)||!g.WZ(52)&&g.WZ(51))return!1}else if(g.F8)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; lD_=function(d,q){return d.enabledEngageTypes.has(q.toString())||S_g.includes(q)}; TF=function(d){return d.z2==="detailpage"}; g.bS=function(d){return d.z2==="embedded"}; Zi=function(d){return d.z2==="leanback"}; qi=function(d){return d.z2==="adunit"||d.playerStyle==="gvn"}; g.JJ=function(d){return d.z2==="profilepage"}; g.dn=function(d){return d.T&&g.bS(d)&&!qi(d)&&!d.X}; Om=function(d){if(!d.userDisplayImage)return"";var q=d.userDisplayImage.split("/");if(q.length===5)return d=q[q.length-1].split("="),d[1]="s20-c",q[q.length-1]=d.join("="),q.join("/");if(q.length===8)return q.splice(7,0,"s20-c"),q.join("/");if(q.length===9)return q[7]+="-s20-c",q.join("/");g.OL(new g.CW("Profile image not a FIFE URL.",d.userDisplayImage));return d.userDisplayImage}; g.nI=function(d){var q=g.yv(d);vK7.includes(q)&&(q="www.youtube.com");return d.protocol+"://"+q}; g.rn=function(d,q){q=q===void 0?"":q;if(d.If){var T=new yQ,Y,e=d.If();e.signedOut?Y="":e.token?Y=e.token:e.pendingResult.then(function(U){e.signedOut?T.resolve(""):T.resolve(U.token)},function(U){g.OL(new g.CW("b189348328_oauth_callback_failed",{error:U})); T.resolve(q)}); return Y!==void 0?pZ(Y):new aD(T)}return pZ(q)}; tJ=function(d,q){q=q===void 0?"":q;return d.wB?OT(!0):K0(BN(OT(g.rn(d,q)),function(T){return OT(!!T)}),function(){return OT(!1)})}; oKH=function(d,q){q==null||BN(q,function(T){d.Pf=T;var Y,e;(Y=d.pC)!=null&&(e=Y.G)!=null&&(e.G=new tj(T,e.U,e.j),g.C(e,e.G))})}; gn=function(d){var q=g.sb(d);return(d=Number(g.Jq(d)[4]||null)||null)?q+":"+d:q}; BT=function(d,q){q=q===void 0?!1:q;var T=tQ[d],Y=VdN[T],e=dm1[d];if(!e||!Y)return null;q=new OJ(q?e.height:e.width,q?e.width:e.height,e.fps);Y=Cy(Y,q,T);return new BH(d,Y,{video:q,Vv:e.bitrate/8})}; TG1=function(d){var q=VdN[tQ[d]],T=qOH[d];return T&&q?new BH(d,q,{audio:new AQ(T.audioSampleRate,T.numChannels)}):null}; KI=function(d){this.G=d}; GF=function(d,q,T,Y){if(T)return Ad();T={};var e=HH();q=g.E(q);for(var U=q.next();!U.done;U=q.next())if(U=U.value,d.canPlayType(e,U.getInfo().mimeType)||Y){var b=U.G.video.quality;if(!T[b]||T[b].getInfo().fz())T[b]=U}d=[];T.auto&&d.push(T.auto);Y=g.E(ne);for(e=Y.next();!e.done;e=Y.next())(e=T[e.value])&&d.push(e);return d.length?pZ(d):Ad()}; YO_=function(d){this.itag=d.itag;this.url=d.url;this.codecs=d.codecs;this.width=d.width;this.height=d.height;this.fps=d.fps;this.bitrate=d.bitrate;var q;this.U=((q=d.audioItag)==null?void 0:q.split(","))||[];this.C5=d.C5;this.ac=d.ac||"";this.DQ=d.DQ;this.audioChannels=d.audioChannels;this.G=""}; eEH=function(d,q,T,Y){q=q===void 0?!1:q;T=T===void 0?!0:T;Y=Y===void 0?{}:Y;var e={};d=g.E(d);for(var U=d.next();!U.done;U=d.next()){U=U.value;if(q&&MediaSource&&MediaSource.isTypeSupported){var b=U.type;U.audio_channels&&(b=b+"; channels="+U.audio_channels);if(!MediaSource.isTypeSupported(b)){Y[U.itag]="tpus";continue}}if(T||!U.drm_families||U.eotf!=="smpte2084"&&U.eotf!=="arib-std-b67"){b=void 0;var J={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},F=U.type.match(/codecs="([^"]*)"/); F=F?F[1]:"";U.audio_track_id&&(b=new g.Ky(U.name,U.audio_track_id,!!U.is_default));var N=U.eotf;U=new YO_({itag:U.itag,url:U.url,codecs:F,width:Number(U.width),height:Number(U.height),fps:Number(U.fps),bitrate:Number(U.bitrate),audioItag:U.audio_itag,C5:N?J[N]:void 0,ac:U.drm_families,DQ:b,audioChannels:Number(U.audio_channels)});e[U.itag]=e[U.itag]||[];e[U.itag].push(U)}else Y[U.itag]="enchdr"}return e}; Um_=function(d,q,T,Y,e){this.j=d;this.U=q;this.S=T;this.cpn=Y;this.X=e;this.T=0;this.G=""}; bSj=function(d,q){d.j.some(function(T){var Y;return((Y=T.DQ)==null?void 0:Y.getId())===q}); d.G=q}; LI=function(d,q,T){d.cpn&&(q=g.y6(q,{cpn:d.cpn}));T&&(q=g.y6(q,{paired:T}));return q}; XY1=function(d,q){d=d.itag.toString();q!==null&&(d+=q.itag.toString());return d}; JRX=function(d){for(var q=[],T=[],Y=g.E(d.U),e=Y.next();!e.done;e=Y.next())e=e.value,e.bitrate<=d.T?q.push(e):T.push(e);q.sort(function(U,b){return b.bitrate-U.bitrate}); T.sort(function(U,b){return U.bitrate-b.bitrate}); d.U=q.concat(T)}; kl=function(d,q,T){this.G=d;this.U=q;this.expiration=T;this.zG=null}; sFn=function(d,q){if(!(uR||Dq()||CZ()))return null;d=eEH(q,d.N("html5_filter_fmp4_in_hls"));if(!d)return null;q=[];for(var T={},Y=g.E(Object.keys(d)),e=Y.next();!e.done;e=Y.next()){e=g.E(d[e.value]);for(var U=e.next();!U.done;U=e.next()){var b=U.value;b.DQ&&(U=b.DQ.getId(),T[U]||(b=new g.AF(U,b.DQ),T[U]=b,q.push(b)))}}return q.length>0?q:null}; REY=function(d,q,T,Y,e,U,b){if(!(uR||Dq()||CZ()))return Ad();var J={},F=$mX(T),N=eEH(T,d.N("html5_filter_fmp4_in_hls"),d.S.L,J);if(!N)return b({noplst:1}),Ad();gbD(N);T={};var R=(T.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",T),x;T=[];var y=[],h=[],H=null,a="";Y=Y&&Y.match(/hls_timedtext_playlist/)?new YO_({itag:"0",url:Y,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,DQ:new g.Ky("English","en",!1)}):null;for(var p=g.E(Object.keys(N)),t=p.next();!t.done;t=p.next())if(t=t.value,!d.N("html5_disable_drm_hfr_1080")|| t!=="383"&&t!=="373"){t=g.E(N[t]);for(var n=t.next();!n.done;n=t.next())if(n=n.value,n.width){for(var K=g.E(n.U),P=K.next();!P.done;P=K.next())if(P=P.value,N[P]){n.G=P;break}n.G||(n.G=Fun(N,n));if(K=N[n.G])if(T.push(n),n.ac==="fairplay"&&(x=R),P="",n.C5==="PQ"?P="smpte2084":n.C5==="HLG"&&(P="arib-std-b67"),P&&(a=P),h.push(NG6(K,[n],Y,U,n.itag,n.width,n.height,n.fps,F,void 0,void 0,x,P)),!H||n.width*n.height*n.fps>H.width*H.height*H.fps)H=n}else y.push(n)}else J[t]="disdrmhfr";h.reduce(function(w, l){return l.getInfo().isEncrypted()&&w},!0)&&(x=R); e=Math.max(e,0);R=H||{};N=R.fps===void 0?0:R.fps;H=R.width===void 0?0:R.width;R=R.height===void 0?0:R.height;p=d.N("html5_native_audio_track_switching");h.push(NG6(y,T,Y,U,"93",H,R,N,F,"auto",e,x,a,p));Object.entries(J).length&&b(J);return GF(d.S,h,xl(d,q),!1)}; NG6=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h){for(var H=0,a="",p=g.E(d),t=p.next();!t.done;t=p.next())t=t.value,a||(a=t.itag),t.audioChannels&&t.audioChannels>H&&(H=t.audioChannels,a=t.itag);e=new BH(e,"application/x-mpegURL",{audio:new AQ(0,H),video:new OJ(U,b,J,null,void 0,N,void 0,y),ac:x,pJ:a});d=new Um_(d,q,T?[T]:[],Y,!!h);d.T=R?R:1369843;return new kl(e,d,F)}; $mX=function(d){d=g.E(d);for(var q=d.next();!q.done;q=d.next())if(q=q.value,q.url&&(q=q.url.split("expire/"),!(q.length<=1)))return+q[1].split("/")[0];return NaN}; Fun=function(d,q){for(var T=g.E(Object.keys(d)),Y=T.next();!Y.done;Y=T.next()){Y=Y.value;var e=d[Y][0];if(!e.width&&e.ac===q.ac&&!e.audioChannels)return Y}return""}; gbD=function(d){for(var q=new Set,T=g.E(Object.values(d)),Y=T.next();!Y.done;Y=T.next())Y=Y.value,Y.length&&(Y=Y[0],Y.height&&Y.codecs.startsWith("vp09")&&q.add(Y.height));T=[];if(q.size){Y=g.E(Object.keys(d));for(var e=Y.next();!e.done;e=Y.next())if(e=e.value,d[e].length){var U=d[e][0];U.height&&q.has(U.height)&&!U.codecs.startsWith("vp09")&&T.push(e)}}q=g.E(T);for(T=q.next();!T.done;T=q.next())delete d[T.value]}; PT=function(d,q){this.G=d;this.U=q}; xm2=function(d,q,T,Y){var e=[];T=g.E(T);for(var U=T.next();!U.done;U=T.next()){var b=U.value;if(b.url){U=new g.Ig(b.url,!0);if(b.s){var J=U,F=b.sp,N=m_Y(decodeURIComponent(b.s));J[X[5]](F,encodeURIComponent(N))}J=g.E(Object.keys(Y));for(F=J.next();!F.done;F=J.next())F=F.value,U.set(F,Y[F]);b=II(b.type,b.quality,b.itag,b.width,b.height);e.push(new PT(b,U))}}return GF(d.S,e,xl(d,q),!1)}; WT=function(d,q){this.G=d;this.U=q}; yRX=function(d,q,T){var Y=[];T=g.E(T);for(var e=T.next();!e.done;e=T.next())if((e=e.value)&&e.url){var U=II(e.type,"medium","0");Y.push(new WT(U,e.url))}return GF(d.S,Y,xl(d,q),!1)}; hEj=function(d,q){var T=[],Y=II(q.type,"auto",q.itag);T.push(new WT(Y,q.url));return GF(d.S,T,!1,!0)}; QF6=function(d){return d&&HSQ[d]?HSQ[d]:null}; M5H=function(d){switch(d){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return d;default:return"sabr.config"}}; cR7=function(d){if(d=d.commonConfig)this.url=d.url,this.urlQueryOverride=d.urlQueryOverride,d.ustreamerConfig&&(this.vO=Bx(d.ustreamerConfig)||void 0)}; Eb2=function(d,q){var T;if(q=q==null?void 0:(T=q.watchEndpointSupportedOnesieConfig)==null?void 0:T.html5PlaybackOnesieConfig)d.kt=new cR7(q)}; g.CI=function(d){d=d===void 0?{}:d;this.languageCode=d.languageCode||"";this.languageName=d.languageName||null;this.kind=d.kind||"";this.name=d.name===void 0?null:d.name;this.displayName=d.displayName||null;this.id=d.id||null;this.G=d.is_servable||!1;this.isTranslateable=d.is_translateable||!1;this.url=d.url||null;this.vssId=d.vss_id||"";this.isDefault=d.is_default||!1;this.translationLanguage=d.translationLanguage||null;this.xtags=d.xtags||"";this.captionId=d.captionId||""}; g.Di=function(d){var q={languageCode:d.languageCode,languageName:d.languageName,displayName:g.uS(d),kind:d.kind,name:d.name,id:d.id,is_servable:d.G,is_default:d.isDefault,is_translateable:d.isTranslateable,vss_id:d.vssId};d.xtags&&(q.xtags=d.xtags);d.captionId&&(q.captionId=d.captionId);d.translationLanguage&&(q.translationLanguage=d.translationLanguage);return q}; g.wn=function(d){return d.translationLanguage?d.translationLanguage.languageCode:d.languageCode}; g.jFn=function(d){var q=d.vssId;d.translationLanguage&&q&&(q="t"+q+"."+g.wn(d));return q}; g.uS=function(d){var q=[];if(d.displayName)q.push(d.displayName);else{var T=d.languageName||"";q.push(T);d.kind==="asr"&&T.indexOf("(")===-1&&q.push(" (\u81ea\u52a8\u751f\u6210\u7684\u5b57\u5e55)");d.name&&q.push(" - "+d.name)}d.translationLanguage&&q.push(" >> "+d.translationLanguage.languageName);return q.join("")}; ZS7=function(d,q,T,Y){d||(d=q&&aJ6.hasOwnProperty(q)&&ARn.hasOwnProperty(q)?ARn[q]+"_"+aJ6[q]:void 0);q=d;if(!q)return null;d=q.match(pYg);if(!d||d.length!==5)return null;if(d=q.match(pYg)){var e=Number(d[3]),U=[7,8,10,5,6];d=!(Number(d[1])===1&&e===8)&&U.indexOf(e)>=0}else d=!1;return T||Y||d?q:null}; fI=function(d,q){for(var T={},Y=g.E(Object.keys(OS6)),e=Y.next();!e.done;e=Y.next()){e=e.value;var U=q?q+e:e;U=d[U+"_webp"]||d[U];g.fu(U)&&(T[OS6[e]]=U)}return T}; zF=function(d){var q={};if(!d||!d.thumbnails)return q;d=d.thumbnails.filter(function(J){return!!J.url}); d.sort(function(J,F){return J.width-F.width||J.height-F.height}); for(var T=g.E(Object.keys(nb_)),Y=T.next();!Y.done;Y=T.next()){var e=Number(Y.value);Y=nb_[e];for(var U=g.E(d),b=U.next();!b.done;b=U.next())if(b=b.value,b.width>=e){e=rRY(b.url);g.fu(e)&&(q[Y]=e);break}}(d=d.pop())&&d.width>=1280&&(d=rRY(d.url),g.fu(d)&&(q["maxresdefault.jpg"]=d));return q}; rRY=function(d){return d.startsWith("//")?"https:"+d:d}; iS=function(d){return d&&d.baseUrl||""}; In=function(d){d=g.oE(d);for(var q=g.E(Object.keys(d)),T=q.next();!T.done;T=q.next()){T=T.value;var Y=d[T];d[T]=Array.isArray(Y)?Y[0]:Y}return d}; t5H=function(d,q){d.botguardData=q.playerAttestationRenderer.botguardData;q=q.playerAttestationRenderer.challenge;q!=null&&(d.q2=q)}; G81=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next()){T=T.value;var Y=T.interstitials.map(function(b){var J=g.D(b,BGn);if(J)return{is_yto_interstitial:!0,raw_player_response:J};if(b=g.D(b,Kuf))return Object.assign({is_yto_interstitial:!0},lF(b))}); Y=g.E(Y);for(var e=Y.next();!e.done;e=Y.next())switch(e=e.value,T.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":d.interstitials=d.interstitials.concat({time:0,playerVars:e,f3:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":d.interstitials=d.interstitials.concat({time:0x7ffffffffffff,playerVars:e,f3:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var U=Number(T.podConfig.timeToInsertAtMillis);d.interstitials=d.interstitials.concat({time:U,playerVars:e, f3:U===0?5:7})}}}; LuX=function(d,q){if(q=q.find(function(T){return!(!T||!T.tooltipRenderer)}))d.tooltipRenderer=q.tooltipRenderer}; k8H=function(d,q){q.subscribeCommand&&(d.subscribeCommand=q.subscribeCommand);q.unsubscribeCommand&&(d.unsubscribeCommand=q.unsubscribeCommand);q.addToWatchLaterCommand&&(d.addToWatchLaterCommand=q.addToWatchLaterCommand);q.removeFromWatchLaterCommand&&(d.removeFromWatchLaterCommand=q.removeFromWatchLaterCommand);q.getSharePanelCommand&&(d.getSharePanelCommand=q.getSharePanelCommand)}; PV6=function(d,q){q!=null?(d.Co=q,d.kc=!0):(d.Co="",d.kc=!1)}; m8=function(d,q){this.type=d||"";this.id=q||""}; SZ=function(d){return new m8(d.substring(0,2),d.substring(2))}; lS=function(d,q){this.Mk=d;this.author="";this.wS=null;this.playlistLength=0;this.G=this.sessionData=null;this.B={};this.title="";if(q){this.author=q.author||q.playlist_author||"";this.title=q.playlist_title||"";if(d=q.session_data)this.sessionData=mR(d,"&");var T;this.G=((T=q.thumbnail_ids)==null?void 0:T.split(",")[0])||null;this.B=fI(q,"playlist_");this.videoId=q.video_id||void 0;if(T=q.list)switch(q.listType){case "user_uploads":this.playlistId=(new m8("UU","PLAYER_"+T)).toString();break;default:if(d= q.playlist_length)this.playlistLength=Number(d)||0;this.playlistId=SZ(T).toString();if(q=q.video)this.videoId=(q[0]||null).video_id||void 0}else q.playlist&&(this.playlistLength=q.playlist.toString().split(",").length)}}; vT=function(d,q){this.Mk=d;this.yh=this.author="";this.wS=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.MD=this.lengthText="";this.sessionData=null;this.B={};this.title="";if(q){this.ariaLabel=q.aria_label||void 0;this.author=q.author||"";this.yh=q.yh||"";if(d=q.endscreen_autoplay_session_data)this.wS=mR(d,"&");this.qq=q.qq;this.isLivePlayback=q.live_playback==="1";this.isUpcoming=!!q.isUpcoming;if(d=q.length_seconds)this.lengthSeconds=typeof d==="string"?Number(d):d;this.lengthText= q.lengthText||"";this.MD=q.MD||"";this.publishedTimeText=q.publishedTimeText||void 0;if(d=q.session_data)this.sessionData=mR(d,"&");this.shortViewCount=q.short_view_count_text||void 0;this.B=fI(q);this.title=q.title||"";this.videoId=q.docid||q.video_id||q.videoId||q.id||void 0;this.watchUrl=q.watchUrl||void 0}}; Wug=function(d){var q,T,Y=(q=d.getWatchNextResponse())==null?void 0:(T=q.contents)==null?void 0:T.twoColumnWatchNextResults,e,U,b,J,F;d=(e=d.getWatchNextResponse())==null?void 0:(U=e.playerOverlays)==null?void 0:(b=U.playerOverlayRenderer)==null?void 0:(J=b.endScreen)==null?void 0:(F=J.watchNextEndScreenRenderer)==null?void 0:F.results;if(!d){var N,R;d=Y==null?void 0:(N=Y.endScreen)==null?void 0:(R=N.endScreen)==null?void 0:R.results}return d}; g.Vv=function(d){var q,T,Y;d=g.D((q=d.getWatchNextResponse())==null?void 0:(T=q.playerOverlays)==null?void 0:(Y=T.playerOverlayRenderer)==null?void 0:Y.decoratedPlayerBarRenderer,on);return g.D(d==null?void 0:d.playerBar,CVg)}; uY_=function(d){this.G=d.playback_progress_0s_url;this.j=d.playback_progress_2s_url;this.U=d.playback_progress_10s_url}; DmQ=function(){if(dd===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(q){}a:{try{var d=!!self.localStorage}catch(q){d=!1}if(d&&(d=g.r9(g.u5()+"::yt-player"))){dd=new ko(d);break a}dd=void 0}}return dd}; g.qR=function(){var d=DmQ();if(!d)return{};try{var q=d.get("yt-player-lv");return JSON.parse(q||"{}")}catch(T){return{}}}; g.wYg=function(d){var q=DmQ();q&&(d=JSON.stringify(d),q.set("yt-player-lv",d))}; g.TC=function(d){return g.qR()[d]||0}; g.Yp=function(d,q){var T=g.qR();q!==T[d]&&(q!==0?T[d]=q:delete T[d],g.wYg(T))}; g.eH=function(d){return g.G(function(q){return q.return(g.Pj(fJD(),d))})}; bx=function(d,q,T,Y,e,U,b,J){var F,N,R,x,y,h;return g.G(function(H){switch(H.U){case 1:return F=g.TC(d),F===4?H.return(4):g.B(H,g.iR(),2);case 2:N=H.G;if(!N)throw g.RJ("wiac");if(!J||b===void 0){H.tF(3);break}return g.B(H,zE7(J,b),4);case 4:b=H.G;case 3:return R=T.lastModified||"0",g.B(H,g.eH(N),5);case 5:return x=H.G,g.jD(H,6),UB++,g.B(H,g.Ar(x,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",sM:!0},function(a){if(U!==void 0&&b!==void 0){var p=""+d+"|"+q.id+"|"+R+"|"+String(U).padStart(10, "0");p=g.p7(a.objectStore("media"),b,p)}else p=g.hr.resolve(void 0);var t=iSY(d,q.eh()),n=iSY(d,!q.eh()),K={fmts:IJD(Y),format:T||{}};t=g.p7(a.objectStore("index"),K,t);var P=Y.downloadedEndTime===-1;K=P?a.objectStore("index").get(n):g.hr.resolve(void 0);var w={fmts:"music",format:{}};a=P&&e&&!q.eh()?g.p7(a.objectStore("index"),w,n):g.hr.resolve(void 0);return g.hr.all([a,K,p,t]).then(function(l){l=g.E(l);l.next();l=l.next().value;UB--;var m=g.TC(d);if(m!==4&&P&&e||l!==void 0&&g.mmD(l.fmts))m=1,g.Yp(d, m);return m})}),8); case 8:return H.return(H.G);case 6:y=g.nN(H);UB--;h=g.TC(d);if(h===4)return H.return(h);g.Yp(d,4);throw y;}})}; g.SO2=function(d){var q,T;return g.G(function(Y){if(Y.U==1)return g.B(Y,g.iR(),2);if(Y.U!=3){q=Y.G;if(!q)throw g.RJ("ri");return g.B(Y,g.eH(q),3)}T=Y.G;return Y.return(g.Ar(T,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var U=IDBKeyRange.bound(d+"|",d+"~");return e.objectStore("index").getAll(U).then(function(b){return b.map(function(J){return J?J.format:{}})})}))})}; vbY=function(d,q,T,Y,e){var U,b,J;return g.G(function(F){if(F.U==1)return g.B(F,g.iR(),2);if(F.U!=3){U=F.G;if(!U)throw g.RJ("rc");return g.B(F,g.eH(U),3)}b=F.G;J=g.Ar(b,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(N){var R=""+d+"|"+q+"|"+T+"|"+String(Y).padStart(10,"0");return N.objectStore("media").get(R)}); return e?F.return(J.then(function(N){if(N===void 0)throw Error("No data from indexDb");return lJ2(e,N)}).catch(function(N){throw new g.CW("Error while reading chunk: "+N.name+", "+N.message); })):F.return(J)})}; g.mmD=function(d){return d?d==="music"?!0:d.includes("dlt=-1")||!d.includes("dlt="):!1}; iSY=function(d,q){return""+d+"|"+(q?"v":"a")}; IJD=function(d){var q={};return SW((q.dlt=d.downloadedEndTime.toString(),q.mket=d.maxKnownEndTime.toString(),q.avbr=d.averageByteRate.toString(),q))}; V51=function(d){var q={},T={};d=g.E(d);for(var Y=d.next();!Y.done;Y=d.next()){var e=Y.value,U=e.split("|");e.match(g.ob_)?(Y=Number(U.pop()),isNaN(Y)?T[e]="?":(U=U.join("|"),(e=q[U])?(U=e[e.length-1],Y===U.end+1?U.end=Y:e.push({start:Y,end:Y})):q[U]=[{start:Y,end:Y}])):T[e]="?"}d=g.E(Object.keys(q));for(Y=d.next();!Y.done;Y=d.next())Y=Y.value,T[Y]=q[Y].map(function(b){return b.start+"-"+b.end}).join(","); return T}; Xx=function(d){g.YP.call(this);this.G=null;this.j=new Kv;this.G=null;this.X=new Set;this.crossOrigin=d||""}; d6I=function(d,q,T){for(T=Jw(d,T);T>=0;){var Y=d.levels[T];if(Y.isLoaded(sB(Y,q))&&(Y=g.$p(Y,q)))return Y;T--}return g.$p(d.levels[0],q)}; TNQ=function(d,q,T){T=Jw(d,T);for(var Y,e;T>=0;T--)if(Y=d.levels[T],e=sB(Y,q),!Y.isLoaded(e)){Y=d;var U=T,b=U+"-"+e;Y.X.has(b)||(Y.X.add(b),Y.j.enqueue(U,{Cs:U,S3:e}))}q77(d)}; q77=function(d){if(!d.G&&!d.j.isEmpty()){var q=d.j.remove();d.G=Y7H(d,q)}}; Y7H=function(d,q){var T=document.createElement("img");d.crossOrigin&&(T.crossOrigin=d.crossOrigin);T.src=d.levels[q.Cs].Hl(q.S3);T.onload=function(){var Y=q.Cs,e=q.S3;d.G!==null&&(d.G.onload=null,d.G=null);Y=d.levels[Y];Y.loaded.add(e);q77(d);var U=Y.columns*Y.rows;e*=U;Y=Math.min(e+U-1,Y.Az()-1);e=[e,Y];d.publish("l",e[0],e[1])}; return T}; g.gd=function(d,q,T,Y){this.level=d;this.T=q;this.loaded=new Set;this.level=d;this.T=q;d=T.split("#");this.width=Math.floor(Number(d[0]));this.height=Math.floor(Number(d[1]));this.frameCount=Math.floor(Number(d[2]));this.columns=Math.floor(Number(d[3]));this.rows=Math.floor(Number(d[4]));this.G=Math.floor(Number(d[5]));this.j=d[6];this.signature=d[7];this.videoLength=Y}; sB=function(d,q){return Math.floor(q/(d.columns*d.rows))}; g.$p=function(d,q){q>=d.HU()&&d.wi();var T=sB(d,q),Y=d.columns*d.rows,e=q%Y;q=e%d.columns;e=Math.floor(e/d.columns);var U=d.wi()+1-Y*T;if(U1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; eyf=function(d,q,T){return(d=d.levels[q])?d.i_(T):-1}; Jw=function(d,q){var T=d.T.get(q);if(T)return T;T=d.levels.length;for(var Y=0;Y=q)return d.T.set(q,Y),Y;d.T.set(q,T-1);return T-1}; NR=function(d,q,T,Y){T=T.split("#");T=[T[1],T[2],0,T[3],T[4],-1,T[0],""].join("#");g.gd.call(this,d,q,T,0);this.U=null;this.S=Y?2:0}; Rf=function(d,q,T,Y){Fx.call(this,d,0,void 0,q,!(Y===void 0||!Y));for(d=0;d=0?s6.countDownSecsForFullscreen*1E3:-1);d.N("web_autonav_color_transition")&&s6.watchToWatchTransitionRenderer&&(d.watchToWatchTransitionRenderer=g.D(s6.watchToWatchTransitionRenderer, Qxn))}var Ey=Wug(d);if(Ey){var b$,Xj,yg,hy=Ey==null?void 0:(b$=Ey[0])==null?void 0:(Xj=b$.endScreenVideoRenderer)==null?void 0:(yg=Xj.navigationEndpoint)==null?void 0:yg.clickTrackingParams,B3=g.jH(d);hy&&B3&&(B3.sessionData={itct:hy})}d.dO.currentVideoThumbnail&&(d.B=zF(d.dO.currentVideoThumbnail));var P0,W0,Cg,e4,KJ,Mj=(P0=d.dO)==null?void 0:(W0=P0.contents)==null?void 0:(Cg=W0.twoColumnWatchNextResults)==null?void 0:(e4=Cg.results)==null?void 0:(KJ=e4.results)==null?void 0:KJ.contents;if(Mj&&Mj[1]){var Gs, Uf,uL,ar,js=(Gs=Mj[1].videoSecondaryInfoRenderer)==null?void 0:(Uf=Gs.owner)==null?void 0:(uL=Uf.videoOwnerRenderer)==null?void 0:(ar=uL.thumbnail)==null?void 0:ar.thumbnails;js&&js.length&&(d.profilePicture=js[js.length-1].url)}var uF=Ty(q),bZ,H5=(bZ=d.getWatchNextResponse())==null?void 0:bZ.onResponseReceivedEndpoints;if(H5)for(var X6=g.E(H5),LJ=X6.next();!LJ.done;LJ=X6.next()){var Qg=LJ.value;g.D(Qg,af)&&(d.J$=g.D(Qg,af));var eT=g.D(Qg,MiH),fe=void 0;if((fe=eT)==null?0:fe.entityKeys)d.WJ=eT.entityKeys|| [],eT.visibleOnLoadKeys&&(d.visibleOnLoadKeys=eT.visibleOnLoadKeys)}if(d.N("web_key_moments_markers")){var ef=g.Aw.getState().entities,sf=g.v6("visibility_override","markersVisibilityOverrideEntity");var DA=VA(ef,"markersVisibilityOverrideEntity",sf);d.Fw=(DA==null?void 0:DA.videoId)===(d.videoId||uF)&&(DA==null?0:DA.visibilityOverrideMarkersKey)?DA.visibilityOverrideMarkersKey:d.visibleOnLoadKeys;d.visibleOnLoadKeys=[].concat(g.RQ(d.Fw))}}}; cr=function(d){var q;return((q=d.autoplaySwitchButtonRenderer)==null?void 0:q.enabled)!==void 0}; pt=function(d){return!!(d.j&&d.j.videoInfos&&d.j.videoInfos.length)}; g.Br=function(d){var q=d.L;d.N("html5_gapless_unlimit_format_selection")&&Zu(d)&&(q=!1);var T=!!d.G&&d.G.aN,Y=d.Mk,e=d.P5(),U=OB(d),b=d.xx,J=q,F=d.isOtf();q=d.qr();var N=d.kx,R=d.getUserAudio51Preference(),x=nt(d),y=rd(d),h=new CN_(Y);if(Y.uF()||Y.N("html5_logging_format_selection"))h.U=!0;h.RU=U;h.xx=b&&Y.B;h.rO=R;g.kA("windows nt 5.1")&&!g.Fv&&(h.Mf=!0);if(U=e)U=g.pI(Y)?mB7(Y):!1;U&&(h.lr=!0);J&&(h.Mf=!0,h.zq=!0);F&&!Y.N("html5_otf_prefer_vp9")&&(h.Mf=!0);Y.playerStyle==="picasaweb"&&(F&&(h.Mf= !1),h.UD=!1);N&&(h.Mf=!0);fY(Y.S,zG.CHANNELS)&&(Y.N("html5_enable_ac3")&&(h.T=!0),Y.N("html5_enable_eac3")&&(h.S=!0),Y.N("html5_enable_ac3_gapless")&&(h.z2=!0));Y.N("html5_block_8k_hfr")&&(h.AF=!0);h.X=g.Yv(Y.experiments,"html5_max_selectable_quality_ordinal");h.L=g.Yv(Y.experiments,"html5_min_selectable_quality_ordinal");vx&&(h.ev=480);if(T||e)h.UD=!1;h.Fw=!1;h.disableAv1=x;T=Y8(Y,h.G,void 0,h.disableAv1);T>0&&T<2160&&(XD()||Y.N("html5_format_hybridization"))&&(h.G.supportsChangeType=+XD(),h.hq= T);T>=2160&&(h.yv=!0);elf()&&!Y.N("disable_av1_setting")&&(h.G.serveVp9OverAv1IfHigherRes=0,h.pC=!1);h.qr=q;h.aU=g.DP||Se()&&!q?!1:!0;h.B=Y.N("html5_format_hybridization");h.wO=Y.N("html5_disable_encrypted_vp9_live_non_2k_4k");h.fn=y;tw(d)&&(h.Ln=d.N("html5_prefer_language_over_codec"));CZ()&&d.playerResponse&&d.playerResponse.playerConfig&&d.playerResponse.playerConfig.webPlayerConfig&&d.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(h.T=!0,h.S=!0);d.L&&d.isAd()&&(d.YH&& (h.K=d.YH),d.wJ&&(h.j=d.wJ));h.dO=d.isLivePlayback&&d.It()&&d.Mk.N("html5_drm_live_audio_51");h.kx=d.Kd;h.lF=!tw(d);return d.rA=h}; nt=function(d){return d.Mk.N("html5_disable_av1")||d.N("html5_gapless_shorts_disable_av1")&&Zu(d)?!0:!1}; cCj=function(d){pU("drm_pb_s",void 0,d.lr);d.qk||d.G&&WI(d.G);var q={};d.G&&(q=Hw7(d.SC,g.Br(d),d.Mk.S,d.G,function(T){return d.publish("ctmp","fmtflt",T)},!0,new Set)); q=new x8(q,d.Mk,d.TP,d.useCobaltWidevine?CZ()?Kt(d):!1:!1,function(T,Y){d.oU(T,Y)}); g.C(d,q);d.rK=!1;d.loading=!0;f2f(q,function(T){pU("drm_pb_f",void 0,d.lr);for(var Y=g.E(T),e=Y.next();!e.done;e=Y.next())switch(e=e.value,e.flavor){case "fairplay":e.qk=d.qk;e.Fc=d.Fc;e.LL=d.LL;break;case "widevine":e.zr=d.zr}d.bV=T;if(d.bV.length>0&&(d.S=d.bV[0],d.Mk.uF())){T={};Y=g.E(Object.entries(d.S.G));for(e=Y.next();!e.done;e=Y.next()){var U=g.E(e.value);e=U.next().value;U=U.next().value;var b="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(b=e[2]);T[b]=U}d.oU("drmProbe",T)}d.kM()})}; Eq1=function(d,q){if(q.length===0||GC(d))return null;d.Mk.S.j&&(d6=!0);var T=d.ac;var Y=d.lengthSeconds,e=d.isLivePlayback,U=d.uC,b=d.Mk,J=a22(q);if(e||U){b=b.experiments;Y=new Wb("",b,!0);Y.U=!U;Y.aN=!0;Y.isManifestless=!0;Y.isLive=!U;Y.uC=U;q=g.E(q);for(e=q.next();!e.done;e=q.next()){var F=e.value;e=De(F,T);J=VR(F);J=fy(J.XR||F.url||"",J.oG,J.s);var N=J.get("id");N&&N.includes("%7E")&&(Y.K=!0);var R=void 0;N=(R=b)==null?void 0:R.Wv("html5_max_known_end_time_rebase");R=Number(F.targetDurationSec|| 5);F=Number(F.maxDvrDurationSec||14400);var x=Number(J.get("mindsq")||J.get("min_sq")||"0"),y=Number(J.get("maxdsq")||J.get("max_sq")||"0")||Infinity;Y.QX=Y.QX||x;Y.rH=Y.rH||y;var h=!iW(e.mimeType);J&&Ly(Y,new Q8(J,e,{W3:R,RF:h,nW:F,QX:x,rH:y,Fp:300,uC:U,qx:N}))}T=Y}else if(J==="FORMAT_STREAM_TYPE_OTF"){Y=Y===void 0?0:Y;U=new Wb("",b.experiments,!1);U.duration=Y||0;b=g.E(q);for(Y=b.next();!Y.done;Y=b.next())Y=Y.value,q=De(Y,T,U.duration),e=VR(Y),(e=fy(e.XR||Y.url||"",e.oG,e.s))&&(q.streamType==="FORMAT_STREAM_TYPE_OTF"? Ly(U,new MG(e,q,"sq/0")):Ly(U,new Bb(e,q,dT(Y.initRange),dT(Y.indexRange))));U.isOtf=!0;T=U}else{Y=Y===void 0?0:Y;U=new Wb("",b.experiments,!1);U.duration=Y||0;b=g.E(q);for(Y=b.next();!Y.done;Y=b.next())J=Y.value,Y=De(J,T,U.duration),q=dT(J.initRange),e=dT(J.indexRange),N=VR(J),(J=fy(N.XR||J.url||"",N.oG,N.s))&&Ly(U,new Bb(J,Y,q,e));T=U}U=d.isLivePlayback&&!d.uC&&!d.yv&&!d.isPremiere;d.N("html5_live_head_playable")&&(!Lt(d)&&U&&d.oU("missingLiveHeadPlayable",{}),d.Mk.lr==="yt"&&(T.RU=!0));return T}; GC=function(d){return CZ()?!Kt(d):Dq()?!(!d.qk||!d.N("html5_enable_safari_fairplay")&&E4()):!1}; Kt=function(d){return d.N("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.MR=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next())if(T=T.value,T.cueRangeSetIdentifier){var Y=void 0;d.fd.set(T.cueRangeSetIdentifier,(Y=T.playerCueRanges)!=null?Y:[])}}; kp=function(d){return!(!d.G||!d.G.isManifestless)}; Pr=function(d){return d.ev?d.isLowLatencyLiveStream&&d.G!=null&&mF(d.G)>=5:d.isLowLatencyLiveStream&&d.G!=void 0&&mF(d.G)>=5}; jxj=function(d){return CZ()&&Kt(d)?!1:GC(d)&&(g.xv(d.Mk)?!d.isLivePlayback:d.hlsvp)||!E4()||d.kh?!0:!1}; p_I=function(d){d.loading=!0;d.E$=!1;if(awj(d))g.SO2(d.videoId).then(function(Y){ACD(d,Y)}).then(function(){d.kM()}); else{wp(d.Ln)||g.OL(new g.CW("DASH MPD Origin invalid: ",d.Ln));var q=d.Ln,T=g.Yv(d.Mk.experiments,"dash_manifest_version")||4;q=g.y6(q,{mpd_version:T});d.isLowLatencyLiveStream&&d.latencyClass!=="NORMAL"||(q=g.y6(q,{pacing:0}));BCX(q,d.Mk.experiments,d.isLivePlayback).then(function(Y){d.JF()||(Wr(d,Y,!0),pU("mrc",void 0,d.lr),d.kM())},function(Y){d.JF()||(d.loading=!1,d.publish("dataloaderror",new g.xV("manifest.net.retryexhausted",{backend:"manifest", rc:Y.status},1)))}); pU("mrs",void 0,d.lr)}}; ACD=function(d,q){var T=q.map(function(F){return F.itag}),Y; if((Y=d.playerResponse)!=null&&Y.streamingData){Y=[];if(d.N("html5_offline_always_use_local_formats")){T=0;for(var e=g.E(q),U=e.next();!U.done;U=e.next()){U=U.value;var b=Object.assign({},U);b.signatureCipher="";Y.push(b);b=g.E(d.playerResponse.streamingData.adaptiveFormats);for(var J=b.next();!J.done;J=b.next())if(J=J.value,U.itag===J.itag&&U.xtags===J.xtags){T+=1;break}}TR&&(R=h.getInfo().audio.numChannels)}R>2&&d.oU("hlschl",{mn:R});var p;((p=d.rA)==null?0:p.U)&&d.oU("hlsfmtaf",{itags:x.join(".")});var t;if(d.N("html5_enable_vp9_fairplay")&&((t=d.S)==null?0:$8(t)))for(d.oU("drm",{sbdlfbk:1}),R=g.E(d.bV),x=R.next();!x.done;x=R.next())if(x=x.value,s4(x)){d.S=x;break}wd(d,N)})}return Ad()}; tij=function(d){if(d.isExternallyHostedPodcast&&d.vA){var q=Du(d.vA);if(!q[0])return Ad();d.zqD=q[0];return hEj(d.Mk,q[0]).then(function(T){wd(d,T)})}return d.j8&&d.Hi?yRX(d.Mk,d.isAd(),d.j8).then(function(T){wd(d,T)}):Ad()}; KoD=function(d){if(d.isExternallyHostedPodcast)return Ad();var q=Du(d.vA,d.Uu);if(d.hlsvp){var T=U6Q(d.hlsvp,d.clientPlaybackNonce,d.zq);q.push(T)}return xm2(d.Mk,d.isAd(),q,BN7(d)).then(function(Y){wd(d,Y)})}; wd=function(d,q){d.qC=q;d.Vc(new KY(g.yC(d.qC,function(T){return T.getInfo()})))}; BN7=function(d){var q={cpn:d.clientPlaybackNonce,c:d.Mk.G.c,cver:d.Mk.G.cver};d.BJ&&(q.ptk=d.BJ,q.oid=d.KN,q.ptchn=d.VL,q.pltype=d.wM,d.Nj&&(q.m=d.Nj));return q}; g.ft=function(d){return GC(d)&&d.qk?(d={},d.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",d):d.U&&d.U.ac||null}; GbY=function(d){var q=zC(d);return q&&q.text?g.gx(q.text):d.paidContentOverlayText}; Loj=function(d){var q=zC(d);return q&&q.durationMs?BZ(q.durationMs):d.paidContentOverlayDurationMs}; zC=function(d){var q,T,Y;return d.playerResponse&&d.playerResponse.paidContentOverlay&&d.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.D((q=d.dO)==null?void 0:(T=q.playerOverlays)==null?void 0:(Y=T.playerOverlayRenderer)==null?void 0:Y.playerDisclosure,kbN)||null}; ix=function(d){var q="";if(d.wm)return d.wm;d.isLivePlayback&&(q=d.allowLiveDvr?"dvr":d.isPremiere?"lp":d.yv?"window":"live");d.uC&&(q="post");return q}; g.If=function(d,q){return typeof d.keywords[q]!=="string"?null:d.keywords[q]}; Pvn=function(d){return!!d.dZ||!!d.uK||!!d.OW||!!d.Gw||d.WH}; g.mJ=function(d){return!!(d.Ln||d.vA||d.j8||d.hlsvp||d.xk())}; hw=function(d){if(d.N("html5_onesie")&&d.errorCode)return!1;var q=g.cR(d.K,"ypc");d.ypcPreview&&(q=!1);return d.LH()&&!d.loading&&(g.mJ(d)||g.cR(d.K,"heartbeat")||q)}; Du=function(d,q){d=vq(d);var T={};if(q){q=g.E(q.split(","));for(var Y=q.next();!Y.done;Y=q.next())(Y=Y.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(T[Y[1]]={width:Y[2],height:Y[3]})}q=g.E(d);for(Y=q.next();!Y.done;Y=q.next()){Y=Y.value;var e=T[Y.itag];e&&(Y.width=e.width,Y.height=e.height)}return d}; NN6=function(d,q){d.showShareButton=!!q;var T,Y,e=((T=g.D(q,g.q6))==null?void 0:T.navigationEndpoint)||((Y=g.D(q,g.q6))==null?void 0:Y.command);e&&(d.Oi=!!g.D(e,Wo1))}; b6g=function(d,q){var T=q.raw_embedded_player_response;if(!T){var Y=q.embedded_player_response;Y&&(T=JSON.parse(Y))}T&&(d.mV=T);if(d.mV){d.embeddedPlayerConfig=d.mV.embeddedPlayerConfig||null;if(T=d.mV.videoFlags)T.playableInEmbed&&(d.allowEmbed=!0),T.isPrivate&&(d.isPrivate=!0),T.userDisplayName&&(q.user_display_name=T.userDisplayName),T.userDisplayImage&&(q.user_display_image=T.userDisplayImage);if(T=d.mV.embedPreview){T=T.thumbnailPreviewRenderer;PV6(d,T.controlBgHtml);if(Y=T.defaultThumbnail)d.B= zF(Y);d.N("embeds_web_enable_search_button")&&T.searchButton&&(Y=g.D(T.searchButton,g.q6))&&(d.ff5=g.D(Y.navigationEndpoint,g.SH));(Y=g.D(T==null?void 0:T.videoDetails,Cv_))&&hyY(d,q,Y);Y=g.D(T==null?void 0:T.videoDetails,uCj);d.FW=!!T.addToWatchLaterButton;NN6(d,T.shareButton);if(Y==null?0:Y.musicVideoType)d.musicVideoType=Y.musicVideoType;var e,U,b,J,F;if(Y=g.D((e=d.getEmbeddedPlayerResponse())==null?void 0:(U=e.embedPreview)==null?void 0:(b=U.thumbnailPreviewRenderer)==null?void 0:(J=b.playButton)== null?void 0:(F=J.buttonRenderer)==null?void 0:F.navigationEndpoint,g.EB))Eb2(d,Y),d.videoId=Y.videoId||d.videoId;T.videoDurationSeconds&&(d.lengthSeconds=BZ(T.videoDurationSeconds));T.webPlayerActionsPorting&&k8H(d,T.webPlayerActionsPorting);if(e=g.D(T==null?void 0:T.playlist,D6_)){d.Qs=!0;U=[];b=Number(e.currentIndex);if(e.contents)for(J=0,F=e.contents.length;J0:d.qU?!1:d.Mk.yH||d.Mk.lS||!g.dn(d.Mk)?!0:!1:(d.qU?0:d.yH)&&g.dn(d.Mk)?!0:!1;d.N("html5_log_detailpage_autoplay")&&bH(d)==="detailpage"&&d.oU("autoplay_info",{autoplay:d.k9,autonav:d.isAutonav,wasDompaused:d.qU,result:q});return q}; g.$4=function(d){return d.oauthToken||d.Mk.Y1}; oqX=function(d){if(d.N("html5_stateful_audio_normalization")){var q=1,T=g.Yv(d.Mk.experiments,"html5_default_ad_gain");T&&d.isAd()&&(q=T);var Y,e;T=(e=(Y=d.T)==null?void 0:Y.audio.T)!=null?e:d.N9;if(T==null||isNaN(T))d=vqN(d);else{Y=(0,g.cj)();d.IF=2;e=Y-d.Mk.K8<=d.maxStatefulTimeThresholdSec*1E3;d.applyStatefulNormalization&&e?d.IF=4:e||(d.Mk.Pa=Infinity,d.Mk.K8=NaN);e=(d.IF===4?g.Cn(d.Mk.Pa,d.minimumLoudnessTargetLkfs,d.loudnessTargetLkfs):d.loudnessTargetLkfs)-T;if(d.IF!==4){var U,b,J,F,N=((U= d.playerResponse)==null?void 0:(b=U.playerConfig)==null?void 0:(J=b.audioConfig)==null?void 0:(F=J.loudnessNormalizationConfig)==null?void 0:F.statelessLoudnessAdjustmentGain)||0;e+=N}e=Math.min(e,0);d.preserveStatefulLoudnessTarget&&(d.Mk.Pa=T+e,d.Mk.K8=Y);d=Math.min(1,Math.pow(10,e/20))||q}}else d=vqN(d);return d}; vqN=function(d){var q=1,T=g.Yv(d.Mk.experiments,"html5_default_ad_gain");T&&d.isAd()&&(q=T);if(d.Mk.experiments.Wv("html5_audio_gain_null_coalescing")){var Y,e;T=(e=(Y=d.T)==null?void 0:Y.audio.j)!=null?e:d.LC;T==0&&d.oU("db0fix",{rldb:d.LC},!0)}else{var U;T=((U=d.T)==null?void 0:U.audio.j)||d.LC}isNaN(T)||(d.IF=1);return Math.min(1,Math.pow(10,-T/20))||q}; OB=function(d){var q=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],T=Hx(d.Mk)==="TVHTML5_SIMPLY"&&d.Mk.G.ctheme==="MUSIC";!d.XF&&(g.KG(d.Mk)||g.jZ(d.Mk)||T)&&(q.includes(d.musicVideoType)||d.isExternallyHostedPodcast)&&(d.XF=!0);if(q=g.WL())q=/Starboard\/([0-9]+)/.exec(g.k9()),q=(q?parseInt(q[1],10):NaN)<10;T=d.Mk;T=(Hx(T)==="TVHTML5_CAST"||Hx(T)==="TVHTML5"&&(T.G.cver.startsWith("6.20130725")||T.G.cver.startsWith("6.20130726")))&&d.Mk.G.ctheme==="MUSIC";var Y;if(Y=!d.XF)T||(T= d.Mk,T=Hx(T)==="TVHTML5"&&T.G.cver.startsWith("7")),Y=T;Y&&!q&&(q=d.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",T=(d.N("cast_prefer_audio_only_for_atv_and_uploads")||d.N("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&d.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",q||T||d.isExternallyHostedPodcast)&&(d.XF=!0);return d.Mk.deviceIsAudioOnly||d.XF&&d.Mk.B}; rd=function(d){var q,T,Y;return((q=d.playerResponse)==null?void 0:(T=q.playerConfig)==null?void 0:(Y=T.compositeVideoConfig)==null?void 0:Y.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; Vi7=function(d){var q,T,Y,e=(q=d.playerResponse)==null?void 0:(T=q.playerConfig)==null?void 0:(Y=T.compositeVideoConfig)==null?void 0:Y.sourceConfigs,U,b,J;d=(U=d.playerResponse)==null?void 0:(b=U.playerConfig)==null?void 0:(J=b.compositeVideoConfig)==null?void 0:J.defaultActiveSourceVideoId;if(!e||!d)return"";e=g.E(e);for(U=e.next();!U.done;U=e.next())if(U=U.value,U.videoId===d&&U.audioTracks)for(U=g.E(U.audioTracks),b=U.next();!b.done;b=U.next())if(b=b.value,b.isDefaultForSource)return b.id||""; return""}; g.d7_=function(d){return d.N("html5_enable_sabr_live_captions")&&d.aN()&&tw(d)||rd(d)}; gm=function(d){var q,T,Y;return!!((q=d.playerResponse)==null?0:(T=q.playerConfig)==null?0:(Y=T.mediaCommonConfig)==null?0:Y.splitScreenEligible)}; FG=function(d){var q;return!((q=d.playerResponse)==null||!q.compositePlayabilityStatus)}; qTj=function(d){return isNaN(d)?0:Math.max((Date.now()-d)/1E3-30,0)}; NC=function(d){return!(!d.EW||!d.Mk.B)&&d.xk()}; R6=function(d){return d.nL&&d.enableServerStitchedDai}; TgY=function(d){return d.Aq&&!d.Dc}; tw=function(d){var q=d.N("html5_enable_sabr_on_drive")&&d.Mk.lr==="gd";if(d.F7)return d.Aq&&d.oU("fds",{fds:!0},!0),!1;if(d.Mk.lr!=="yt"&&!q)return d.Aq&&d.oU("dsvn",{ns:d.Mk.lr},!0),!1;if(d.cotn||!d.G||d.G.isOtf&&!d.N("html5_enable_sabr_otf_in_client")||d.j&&!d.j.G||d.Y0&&!d.N("html5_enable_sabr_csdai"))return!1;if(d.N("html5_use_sabr_requests_for_debugging"))return!0;d.Aq&&d.oU("esfw",{usbc:d.Aq,hsu:!!d.Dc},!0);if(d.Aq&&d.Dc)return!0;if(d.N("html5_remove_client_sabr_determination"))return!1;var T= !d.G.aN&&!d.It();q=T&&QU&&d.N("html5_enable_sabr_vod_streaming_xhr");T=T&&!QU&&d.N("html5_enable_sabr_vod_non_streaming_xhr");var Y=x4(d),e=d.N("html5_enable_sabr_drm_vod_streaming_xhr")&&QU&&d.It()&&!d.G.aN&&(d.drmProduct==="1"?!1:!0);(q=q||T||Y||e)&&!d.Dc&&d.oU("sabr",{loc:"m"},!0);return q&&!!d.Dc}; x4=function(d){var q;if(!(q=QU&&d.aN()&&d.It()&&(d.drmProduct==="1"?!1:!0)&&d.N("html5_sabr_live_drm_streaming_xhr"))){q=d.aN()&&!d.It()&&QU;var T=d.aN()&&d.latencyClass!=="ULTRALOW"&&!d.isLowLatencyLiveStream&&d.N("html5_sabr_live_normal_latency_streaming_xhr"),Y=d.isLowLatencyLiveStream&&d.N("html5_sabr_live_low_latency_streaming_xhr"),e=d.latencyClass==="ULTRALOW"&&d.N("html5_sabr_live_ultra_low_latency_streaming_xhr");q=q&&(T||Y||e)}T=q;q=d.enableServerStitchedDai&&T&&d.N("html5_enable_sabr_ssdai_streaming_xhr"); T=!d.enableServerStitchedDai&&T;Y=d.aN()&&!QU&&d.N("html5_enable_sabr_live_non_streaming_xhr");d=QU&&(d.y5()||gm(d)&&d.N("html5_enable_sabr_for_lifa_eligible_streams"));return q||T||Y||d}; awj=function(d){var q;if(q=!!d.cotn)q=d.videoId,q=!!q&&g.TC(q)===1;return q&&!d.EW}; g.y2=function(d){if(!d.G||!d.U||!d.T)return!1;var q=d.G.G,T=!!q[d.U.id]&<(q[d.U.id].zG.G);q=!!q[d.T.id]&<(q[d.T.id].zG.G);return(d.U.itag==="0"||T)&&q}; h7=function(d){return d.Zs?["OK","LIVE_STREAM_OFFLINE"].includes(d.Zs.status):!0}; w_n=function(d){return(d=d.zs)&&d.showError?d.showError:!1}; HU=function(d,q){return d.N(q)?!0:(d.fflags||"").includes(q+"=true")}; gqg=function(d,q){q.inlineMetricEnabled&&(d.inlineMetricEnabled=!0);q.playback_progress_0s_url&&(d.Gw=new uY_(q));if(q=q.video_masthead_ad_quartile_urls)d.uK=q.quartile_0_url,d.Qk=q.quartile_25_url,d.Ni=q.quartile_50_url,d.DS=q.quartile_75_url,d.yk=q.quartile_100_url,d.OW=q.quartile_0_urls,d.Ah=q.quartile_25_urls,d.g5=q.quartile_50_urls,d.PD=q.quartile_75_urls,d.xN=q.quartile_100_urls}; $61=function(d){var q={};d=g.E(d);for(var T=d.next();!T.done;T=d.next()){T=T.value;var Y=T.split("=");Y.length===2?q[Y[0]]=Y[1]:q[T]=!0}return q}; JC1=function(d){if(d){if(j$_(d))return d;d=azQ(d);if(j$_(d,!0))return d}return""}; g.YTD=function(d){return d.captionsLanguagePreference||d.Mk.captionsLanguagePreference||g.If(d,"yt:cc_default_lang")||d.Mk.wk}; Q2=function(d){return!(!d.isLivePlayback||!d.hasProgressBarBoundaries())}; g.jH=function(d){var q;return d.u3||((q=d.suggestions)==null?void 0:q[0])||null}; g.MC=function(d){var q,T;return!!((q=d.embeddedPlayerConfig)==null?0:(T=q.embeddedPlayerFlags)==null?0:T.enableMusicUx)}; efY=function(d){return d.L||d.N("web_player_media_session_infinity")&&d.isLivePlayback}; cU=function(d){return d.Mk.T&&d.isPrivate}; g.jf=function(d){var q=d.C(),T=g.EF(q),Y=q.Ln;(q.N("embeds_web_enable_iframe_api_send_full_embed_url")||q.N("embeds_web_enable_rcat_validation_in_havs")||q.N("embeds_enable_autoplay_and_visibility_signals"))&&g.bS(q)&&(Y&&(T.thirdParty=Object.assign({},T.thirdParty,{embedUrl:Y})),s5D(T,d));if(Y=d.aU)T.clickTracking={clickTrackingParams:Y};else if(g.bS(d.C())&&g.Cs("EVENT_ID"))T.clickTracking={clickTrackingParams:g.Cs("EVENT_ID")};else if(q.N("html5_log_missing_itct")){var e;Y=new g.CW("Missing ITCT in InnerTubeContext", {isAd:d.isAd(),Zow:(e=q.getWebPlayerContextConfig())==null?void 0:e.contextId});g.Zz(Y)}e=T.client||{};Y="EMBED";var U=bH(d);U==="leanback"?Y="WATCH":q.N("gvi_channel_client_screen")&&U==="profilepage"?Y="CHANNEL":d.kx?Y="LIVE_MONITOR":U==="detailpage"?Y="WATCH_FULL_SCREEN":U==="adunit"?Y="ADUNIT":U==="sponsorshipsoffer"&&(Y="UNKNOWN");e.clientScreen=Y;if(q=d.kidsAppInfo)e.kidsAppInfo=JSON.parse(q);(Y=d.t5)&&!q&&(e.kidsAppInfo={contentSettings:{ageUpMode:U7j[Y]}});if(q=d.ZD)e.unpluggedAppInfo={enableFilterMode:!0}; (Y=d.unpluggedFilterModeType)&&!q&&(e.unpluggedAppInfo={filterModeType:b0_[Y]});if(q=d.zX)e.unpluggedLocationInfo=q;T.client=e;e=T.request||{};d.t0&&(e.isPrefetch=!0);if(q=d.mdxEnvironment)e.mdxEnvironment=q;if(q=d.mdxControlMode)e.mdxControlMode=XNY[q];T.request=e;e=T.user||{};if(q=d.z2)e.credentialTransferTokens=[{token:q,scope:"VIDEO"}];if(q=d.pC)e.delegatePurchases={oauthToken:q},e.kidsParent={oauthToken:q};T.user=e;if(e=d.contextParams)T.activePlayers=[{playerContextParams:e}];if(d=d.clientScreenNonce)T.clientScreenNonce= d;return T}; g.EF=function(d){var q=g.mV(),T=q.client||{};if(d.forcedExperiments){var Y=d.forcedExperiments.split(","),e=[];Y=g.E(Y);for(var U=Y.next();!U.done;U=Y.next())e.push(Number(U.value));T.experimentIds=e}if(e=d.homeGroupInfo)T.homeGroupInfo=JSON.parse(e);if(e=d.getPlayerType())T.playerType=e;if(e=d.G.ctheme)T.theme=e;if(e=d.livingRoomAppMode)T.tvAppInfo=Object.assign({},T.tvAppInfo,{livingRoomAppMode:e});e=d.deviceYear;d.N("html5_propagate_device_year")&&e&&(T.tvAppInfo=Object.assign({},T.tvAppInfo,{deviceYear:e})); if(e=d.livingRoomPoTokenId)T.tvAppInfo=Object.assign({},T.tvAppInfo,{livingRoomPoTokenId:e});q.client=T;T=q.user||{};d.enableSafetyMode&&(T=Object.assign({},T,{enableSafetyMode:!0}));d.pageId&&(T=Object.assign({},T,{onBehalfOfUser:d.pageId}));q.user=T;T=d.Ln;d.N("embeds_web_enable_iframe_api_send_full_embed_url")||d.N("embeds_web_enable_rcat_validation_in_havs")||d.N("embeds_enable_autoplay_and_visibility_signals")||!T||(q.thirdParty={embedUrl:T});return q}; Ng6=function(d,q,T){var Y=d.videoId,e=g.jf(d),U=d.C(),b={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(QF()),referer:document.location.toString(),signatureTimestamp:20291};g.KW();d.isAutonav&&(b.autonav=!0);g.Gy(0,141)&&(b.autonavState=g.Gy(0,140)?"STATE_OFF":"STATE_ON");b.autoCaptionsDefaultOn=g.Gy(0,66);lwg(d)&&(b.autoplay=!0);U.B&&d.cycToken&&(b.cycToken=d.cycToken);U.enablePrivacyFilter&&(b.enablePrivacyFilter=!0);d.isFling&&(b.fling=!0);var J=d.forceAdsUrl;if(J){var F={},N=[];J= J.split(",");J=g.E(J);for(var R=J.next();!R.done;R=J.next()){R=R.value;var x=R.split("|");x.length!==3||R.includes("=")||(x[0]="breaktype="+x[0],x[1]="offset="+x[1],x[2]="url="+x[2]);R={adtype:"video_ad"};x=g.E(x);for(var y=x.next();!y.done;y=x.next()){var h=g.E(y.value.split("="));y=h.next().value;h=UHn(h);R[y]=h.join("=")}x=R.url;y=R.presetad;h=R.viralresponseurl;var H=Number(R.campaignid);if(R.adtype==="in_display_ad")x&&(F.url=x),y&&(F.presetAd=y),h&&(F.viralAdResponseUrl=h),H&&(F.viralCampaignId= String(H));else if(R.adtype==="video_ad"){var a={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(R.offset)||0)}};if(R=JHI[R.breaktype])a.breakType=R;x&&(a.url=x);y&&(a.presetAd=y);h&&(a.viralAdResponseUrl=h);H&&(a.viralCampaignId=String(H));N.push(a)}}b.forceAdParameters={videoAds:N,inDisplayAd:F}}d.isInlinePlaybackNoAd&&(b.isInlinePlaybackNoAd=!0);d.isLivingRoomDeeplink&&(b.isLivingRoomDeeplink=!0);F=d.d6;if(F!=null){F={startWalltime:String(F)};if(N=d.Ar)F.manifestDuration=String(N||14400); b.liveContext=F}if(d.mutedAutoplay){b.mutedAutoplay=!0;F=U.getWebPlayerContextConfig();var p,t;(F==null?0:(p=F.embedsHostFlags)==null?0:p.allowMutedAutoplayDurationMode)&&(F==null?0:(t=F.embedsHostFlags)==null?0:t.allowMutedAutoplayDurationMode.includes(sm_[d.mutedAutoplayDurationMode]))&&(b.mutedAutoplayDurationMode=sm_[d.mutedAutoplayDurationMode])}if(d.qU?0:d.yH)b.splay=!0;p=d.vnd;p===5&&(b.vnd=p);p={};if(t=d.isMdxPlayback)p.triggeredByMdx=t;if(t=d.Eu)p.skippableAdsSupported=t.split(",").includes("ska"); if(N=d.OP){t=d.GE;F=[];N=g.E($oN(N));for(J=N.next();!J.done;J=N.next()){J=J.value;R=J.platform;J={applicationState:J.ye?"INACTIVE":"ACTIVE",clientFormFactor:$7H[R]||"UNKNOWN_FORM_FACTOR",clientName:Fan[J.kE]||"UNKNOWN_INTERFACE",clientVersion:J.deviceVersion||"",platform:gCY[R]||"UNKNOWN_PLATFORM"};R={};if(t){x=void 0;try{x=JSON.parse(t)}catch(K){g.OL(K)}x&&(R={params:[{key:"ms",value:x.ms}]},x.advertising_id&&(R.advertisingId=x.advertising_id),x.limit_ad_tracking!==void 0&&x.limit_ad_tracking!== null&&(R.limitAdTracking=x.limit_ad_tracking),J.osName=x.os_name,J.userAgent=x.user_agent,J.windowHeightPoints=x.window_height_points,J.windowWidthPoints=x.window_width_points)}F.push({adSignalsInfo:R,remoteClient:J})}p.remoteContexts=F}t=d.sourceContainerPlaylistId;F=d.serializedMdxMetadata;if(t||F)N={},t&&(N.mdxPlaybackContainerInfo={sourceContainerPlaylistId:t}),F&&(N.serializedMdxMetadata=F),p.mdxPlaybackSourceContext=N;b.mdxContext=p;p=q.width;p>0&&(b.playerWidthPixels=Math.round(p));if(q=q.height)b.playerHeightPixels= Math.round(q);T!==0&&(b.vis=T);if(T=U.widgetReferrer)b.widgetReferrer=T.substring(0,128);g.dn(U)&&b&&(b.ancestorOrigins=U.ancestorOrigins);d.defaultActiveSourceVideoId&&(b.compositeVideoContext={defaultActiveSourceVideoId:d.defaultActiveSourceVideoId});if(U=U.getWebPlayerContextConfig())b.encryptedHostFlags=U.encryptedHostFlags;Y={videoId:Y,context:e,playbackContext:{contentPlaybackContext:b}};if(d.H1){var n;Y.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(n=d.H1)==null?void 0:n.reloadPlaybackParams}}d.contentCheckOk&& (Y.contentCheckOk=!0);if(n=d.clientPlaybackNonce)Y.cpn=n;if(n=d.playerParams)Y.params=n;if(n=d.playlistId)Y.playlistId=n;d.racyCheckOk&&(Y.racyCheckOk=!0);n=d.C();e=n.embedConfig;d.eC&&n.N("embeds_enable_per_video_embed_config")?Y.serializedThirdPartyEmbedConfig=d.eC:e&&(Y.serializedThirdPartyEmbedConfig=e);Y.captionParams={};e=g.Gy(g.KW(),65);d.deviceCaptionsOn!=null?Y.captionParams.deviceCaptionsOn=d.deviceCaptionsOn:g.cT(n)&&(Y.captionParams.deviceCaptionsOn=e!=null?!e:!1);d.CR&&(Y.captionParams.deviceCaptionsLangPref= d.CR);d.Cd.length?Y.captionParams.viewerSelectedCaptionLangs=d.Cd:g.cT(n)&&(e=g.Me(),e==null?0:e.length)&&(Y.captionParams.viewerSelectedCaptionLangs=e);e=d.fetchType==="onesie"&&d.N("html5_onesie_attach_po_token");b=d.fetchType!=="onesie"&&d.N("html5_non_onesie_attach_po_token");if(e||b)e=d.C(),e.qU&&(Y.serviceIntegrityDimensions={},Y.serviceIntegrityDimensions.poToken=e.qU);n.N("fetch_att_independently")&&(Y.attestationRequest={omitBotguardData:!0});Y.playbackContext||(Y.playbackContext={});Y.playbackContext.devicePlaybackCapabilities= FxX(d);Y.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&d.oU("noVp9",{});return Y}; FxX=function(d){var q=!(d==null?0:d.qr())&&(d==null?void 0:d.aN())&&Se(),T;if(!(T=d==null)){T=g.Br(d);d=d.C().S;var Y=BT("243");T=!(Y&&PI(T,Y,d,!0)===!0)}return{supportsVp9Encoding:!(T||q),supportXhr:QU}}; x7N=function(d,q){var T,Y,e;return g.G(function(U){if(U.U==1)return T={context:g.EF(d.C()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:d.videoId,cpn:d.clientPlaybackNonce}}]},Y=g.vG(RfQ),g.B(U,g.GY(q,T,Y),2);e=U.G;return U.return(e)})}; yHI=function(d,q,T){var Y=g.Yv(q.experiments,"bg_vm_reinit_threshold");(!TG||(0,g.cj)()-TG>Y)&&x7N(d,T).then(function(e){e&&(e=e.botguardData)&&g.eK(e,q)},function(e){d.JF()||(e=hQ(e),d.oU("attf",e.details))})}; a6=function(d,q){g.W.call(this);this.app=d;this.state=q}; pV=function(d,q,T){d.state.G.hasOwnProperty(q)||A7(d,q,T);d.state.L[q]=function(){return T.apply(d,g.CN.apply(0,arguments))}; d.state.X.add(q)}; Z$=function(d,q,T){d.state.G.hasOwnProperty(q)||A7(d,q,T);d.app.C().B&&(d.state.B[q]=function(){return T.apply(d,g.CN.apply(0,arguments))},d.state.X.add(q))}; A7=function(d,q,T){d.state.G[q]=function(){return T.apply(d,g.CN.apply(0,arguments))}}; g.OF=function(d,q,T){return d.state.G[q].apply(d.state.G,g.RQ(T))}; nV=function(){g.Mg.call(this);this.S=new Map}; rm=function(){g.W.apply(this,arguments);this.element=null;this.X=new Set;this.L={};this.B={};this.G={};this.K=new Set;this.j=new nV;this.U=new nV;this.T=new nV;this.S=new nV}; hfQ=function(d,q,T){typeof d==="string"&&(d={mediaContentUrl:d,startSeconds:q,suggestedQuality:T});a:{if((q=d.mediaContentUrl)&&(q=/\/([ve]|embed)\/([^#?]+)/.exec(q))&&q[2]){q=q[2];break a}q=null}d.videoId=q;return t7(d)}; t7=function(d,q,T){if(typeof d==="string")return{videoId:d,startSeconds:q,suggestedQuality:T};q={};T=g.E(H0Y);for(var Y=T.next();!Y.done;Y=T.next())Y=Y.value,d[Y]&&(q[Y]=d[Y]);if(d=d.embedConfig||d.embed_config)if(typeof d==="string")q.embed_config=d;else if(g.UI(d))try{var e=JSON.stringify(d);q.embed_config=e}catch(U){console.error("Invalid embedConfig JSON",U)}return q}; Qmn=function(d,q,T,Y){if(g.UI(d)&&!Array.isArray(d)){q="playlist list listType index startSeconds suggestedQuality".split(" ");T={};for(Y=0;Y32&&Y.push("hfr");q.isHdr()&&Y.push("hdr");q.primaries==="bt2020"&&Y.push("wcg");T.video_quality_features=Y}}if(d=d.getPlaylistId())T.list=d;return T}; k4=function(){BU.apply(this,arguments)}; PU=function(d,q){var T={};if(d.app.C().UD){d=g.E(jm1);for(var Y=d.next();!Y.done;Y=d.next())Y=Y.value,q.hasOwnProperty(Y)&&(T[Y]=q[Y]);if(q=T.qoe_cat)d="",typeof q==="string"&&q.length>0&&(d=q.split(",").filter(function(e){return a4f.includes(e)}).join(",")),T.qoe_cat=d; AHj(T)}else for(d=g.E(pNN),Y=d.next();!Y.done;Y=d.next())Y=Y.value,q.hasOwnProperty(Y)&&(T[Y]=q[Y]);return T}; AHj=function(d){var q=d.raw_player_response;if(!q){var T=d.player_response;T&&(q=JSON.parse(T))}delete d.player_response;delete d.raw_player_response;if(q){d.raw_player_response={streamingData:q.streamingData,playerConfig:q.playerConfig};var Y;if((Y=q.playbackTracking)==null?0:Y.qoeUrl)d.raw_player_response=Object.assign({},d.raw_player_response,{playbackTracking:{qoeUrl:q.playbackTracking.qoeUrl}});q.videoDetails&&(q.videoDetails.videoId||q.videoDetails.lengthSeconds)&&(T={},q.videoDetails.videoId&& (T.videoId=q.videoDetails.videoId),q.videoDetails.lengthSeconds&&(T.lengthSeconds=q.videoDetails.lengthSeconds),d.raw_player_response=Object.assign({},d.raw_player_response,{videoDetails:T}))}}; WU=function(d,q,T){var Y=d.app.fH(T);if(!Y)return 0;d=Y-d.app.getCurrentTime(T);return q-d}; O0Y=function(d){var q=q===void 0?5:q;return d?Z06[d]||q:q}; g.CV=function(){k4.apply(this,arguments)}; nC6=function(d){A7(d,"getInternalApiInterface",d.getInternalApiInterface);A7(d,"addEventListener",d.Of);A7(d,"removeEventListener",d.izZ);A7(d,"cueVideoByPlayerVars",d.nQ);A7(d,"loadVideoByPlayerVars",d.Do);A7(d,"preloadVideoByPlayerVars",d.WMv);A7(d,"getAdState",d.getAdState);A7(d,"sendAbandonmentPing",d.sendAbandonmentPing);A7(d,"setLoopRange",d.setLoopRange);A7(d,"getLoopRange",d.getLoopRange);A7(d,"setAutonavState",d.setAutonavState);A7(d,"seekTo",d.qrD);A7(d,"seekBy",d.vPv);A7(d,"seekToLiveHead", d.seekToLiveHead);A7(d,"requestSeekToWallTimeSeconds",d.requestSeekToWallTimeSeconds);A7(d,"seekToStreamTime",d.seekToStreamTime);A7(d,"prefetchKeyPlay",d.prefetchKeyPlay);A7(d,"startSeekCsiAction",d.startSeekCsiAction);A7(d,"getStreamTimeOffset",d.getStreamTimeOffset);A7(d,"getVideoData",d.pI);A7(d,"setInlinePreview",d.setInlinePreview);A7(d,"getAppState",d.getAppState);A7(d,"updateLastActiveTime",d.updateLastActiveTime);A7(d,"setBlackout",d.setBlackout);A7(d,"setUserEngagement",d.setUserEngagement); A7(d,"updateSubtitlesUserSettings",d.updateSubtitlesUserSettings);A7(d,"getPresentingPlayerType",d.Jj);A7(d,"canPlayType",d.canPlayType);A7(d,"updatePlaylist",d.updatePlaylist);A7(d,"updateVideoData",d.updateVideoData);A7(d,"updateEnvironmentData",d.updateEnvironmentData);A7(d,"sendVideoStatsEngageEvent",d.ezD);A7(d,"productsInVideoVisibilityUpdated",d.productsInVideoVisibilityUpdated);A7(d,"setSafetyMode",d.setSafetyMode);A7(d,"isAtLiveHead",function(q){return d.isAtLiveHead(void 0,q)}); A7(d,"getVideoAspectRatio",d.getVideoAspectRatio);A7(d,"getPreferredQuality",d.getPreferredQuality);A7(d,"getPlaybackQualityLabel",d.getPlaybackQualityLabel);A7(d,"setPlaybackQualityRange",d.Wjv);A7(d,"onAdUxClicked",d.onAdUxClicked);A7(d,"getFeedbackProductData",d.getFeedbackProductData);A7(d,"getStoryboardFrame",d.getStoryboardFrame);A7(d,"getStoryboardFrameIndex",d.getStoryboardFrameIndex);A7(d,"getStoryboardLevel",d.getStoryboardLevel);A7(d,"getNumberOfStoryboardLevels",d.getNumberOfStoryboardLevels); A7(d,"getCaptionWindowContainerId",d.getCaptionWindowContainerId);A7(d,"getAvailableQualityLabels",d.getAvailableQualityLabels);A7(d,"addCueRange",d.addCueRange);A7(d,"addUtcCueRange",d.addUtcCueRange);A7(d,"showAirplayPicker",d.showAirplayPicker);A7(d,"dispatchReduxAction",d.dispatchReduxAction);A7(d,"getPlayerResponse",d.U3);A7(d,"getWatchNextResponse",d.s3);A7(d,"getHeartbeatResponse",d.Vn);A7(d,"getCurrentTime",d.Bd);A7(d,"getDuration",d.iN);A7(d,"getPlayerState",d.getPlayerState);A7(d,"getPlayerStateObject", d.jK);A7(d,"getVideoLoadedFraction",d.getVideoLoadedFraction);A7(d,"getProgressState",d.getProgressState);A7(d,"getVolume",d.getVolume);A7(d,"setVolume",d.fP);A7(d,"isMuted",d.isMuted);A7(d,"mute",d.zR);A7(d,"unMute",d.md);A7(d,"loadModule",d.loadModule);A7(d,"unloadModule",d.unloadModule);A7(d,"getOption",d.sY);A7(d,"getOptions",d.getOptions);A7(d,"setOption",d.setOption);A7(d,"loadVideoById",d.GC);A7(d,"loadVideoByUrl",d.Un);A7(d,"playVideo",d.Wg);A7(d,"loadPlaylist",d.loadPlaylist);A7(d,"nextVideo", d.nextVideo);A7(d,"previousVideo",d.previousVideo);A7(d,"playVideoAt",d.playVideoAt);A7(d,"getDebugText",d.getDebugText);A7(d,"getWebPlayerContextConfig",d.getWebPlayerContextConfig);A7(d,"notifyShortsAdSwipeEvent",d.notifyShortsAdSwipeEvent);A7(d,"getVideoContentRect",d.getVideoContentRect);A7(d,"setSqueezeback",d.setSqueezeback);A7(d,"toggleSubtitlesOn",d.toggleSubtitlesOn);A7(d,"isSubtitlesOn",d.isSubtitlesOn);A7(d,"reportPlaybackIssue",d.reportPlaybackIssue);A7(d,"setAutonav",d.setAutonav);A7(d, "isNotServable",d.isNotServable);A7(d,"channelSubscribed",d.channelSubscribed);A7(d,"channelUnsubscribed",d.channelUnsubscribed);A7(d,"togglePictureInPicture",d.togglePictureInPicture);A7(d,"supportsGaplessAudio",d.supportsGaplessAudio);A7(d,"supportsGaplessShorts",d.supportsGaplessShorts);A7(d,"enqueueVideoByPlayerVars",function(q){return void d.enqueueVideoByPlayerVars(q)}); A7(d,"clearQueue",d.clearQueue);A7(d,"getAudioTrack",d.Li);A7(d,"setAudioTrack",d.NAx);A7(d,"getAvailableAudioTracks",d.x5);A7(d,"getMaxPlaybackQuality",d.getMaxPlaybackQuality);A7(d,"getUserPlaybackQualityPreference",d.getUserPlaybackQualityPreference);A7(d,"getSubtitlesUserSettings",d.getSubtitlesUserSettings);A7(d,"resetSubtitlesUserSettings",d.resetSubtitlesUserSettings);A7(d,"setMinimized",d.setMinimized);A7(d,"setOverlayVisibility",d.setOverlayVisibility);A7(d,"confirmYpcRental",d.confirmYpcRental); A7(d,"queueNextVideo",d.queueNextVideo);A7(d,"handleExternalCall",d.handleExternalCall);A7(d,"logApiCall",d.logApiCall);A7(d,"isExternalMethodAvailable",d.isExternalMethodAvailable);A7(d,"setScreenLayer",d.setScreenLayer);A7(d,"getCurrentPlaylistSequence",d.getCurrentPlaylistSequence);A7(d,"getPlaylistSequenceForTime",d.getPlaylistSequenceForTime);A7(d,"shouldSendVisibilityState",d.shouldSendVisibilityState);A7(d,"syncVolume",d.syncVolume);A7(d,"highlightSettingsMenuItem",d.highlightSettingsMenuItem); A7(d,"openSettingsMenuItem",d.openSettingsMenuItem);A7(d,"getEmbeddedPlayerResponse",d.getEmbeddedPlayerResponse);A7(d,"getVisibilityState",d.getVisibilityState);A7(d,"isMutedByMutedAutoplay",d.isMutedByMutedAutoplay);A7(d,"isMutedByEmbedsMutedAutoplay",d.isMutedByEmbedsMutedAutoplay);A7(d,"setGlobalCrop",d.setGlobalCrop);A7(d,"setInternalSize",d.setInternalSize);A7(d,"setFauxFullscreen",d.setFauxFullscreen);A7(d,"setAppFullscreen",d.setAppFullscreen)}; D$=function(d,q,T){d=g.uH(d.nH(),q);return T?(T.addOnDisposeCallback(d),null):d}; g.wm=function(d,q,T){return d.app.C().V5?q:g.bO("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:q,SHORTCUT:T})}; rHY=function(d){d.nH().element.setAttribute("aria-live","polite")}; g.fV=function(d,q){g.CV.call(this,d,q);nC6(this);Z$(this,"addEventListener",this.k7);Z$(this,"removeEventListener",this.yeF);Z$(this,"cueVideoByPlayerVars",this.Nv);Z$(this,"loadVideoByPlayerVars",this.xs);Z$(this,"preloadVideoByPlayerVars",this.Bsf);Z$(this,"loadVideoById",this.GC);Z$(this,"loadVideoByUrl",this.Un);Z$(this,"playVideo",this.Wg);Z$(this,"loadPlaylist",this.loadPlaylist);Z$(this,"nextVideo",this.nextVideo);Z$(this,"previousVideo",this.previousVideo);Z$(this,"playVideoAt",this.playVideoAt); Z$(this,"getVideoData",this.mY);Z$(this,"seekBy",this.XAg);Z$(this,"seekTo",this.SrZ);Z$(this,"showControls",this.showControls);Z$(this,"hideControls",this.hideControls);Z$(this,"cancelPlayback",this.cancelPlayback);Z$(this,"getProgressState",this.getProgressState);Z$(this,"isInline",this.isInline);Z$(this,"setInline",this.setInline);Z$(this,"setLoopVideo",this.setLoopVideo);Z$(this,"getLoopVideo",this.getLoopVideo);Z$(this,"getVideoContentRect",this.getVideoContentRect);Z$(this,"getVideoStats",this.hB); Z$(this,"getCurrentTime",this.O0);Z$(this,"getDuration",this.iN);Z$(this,"getPlayerState",this.Tl);Z$(this,"getVideoLoadedFraction",this.Ip);Z$(this,"mute",this.zR);Z$(this,"unMute",this.md);Z$(this,"setVolume",this.fP);Z$(this,"loadModule",this.loadModule);Z$(this,"unloadModule",this.unloadModule);Z$(this,"getOption",this.sY);Z$(this,"getOptions",this.getOptions);Z$(this,"setOption",this.setOption);Z$(this,"addCueRange",this.addCueRange);Z$(this,"getDebugText",this.getDebugText);Z$(this,"getStoryboardFormat", this.getStoryboardFormat);Z$(this,"toggleFullscreen",this.toggleFullscreen);Z$(this,"isFullscreen",this.isFullscreen);Z$(this,"getPlayerSize",this.getPlayerSize);Z$(this,"toggleSubtitles",this.toggleSubtitles);Z$(this,"setCenterCrop",this.setCenterCrop);Z$(this,"setFauxFullscreen",this.setFauxFullscreen);Z$(this,"setSizeStyle",this.setSizeStyle);Z$(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Z$(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);cHf(this)}; g.zJ=function(d){d=d.M5();var q=d.OS.get("endscreen");return q&&q.GB()?!0:d.Gi()}; g.iH=function(d,q){d.getPresentingPlayerType()===3?d.publish("mdxautoplaycancel"):d.gO("onAutonavCancelled",q)}; g.m7=function(d){var q=I6(d.M5());return d.app.H3&&!d.isFullscreen()||d.getPresentingPlayerType()===3&&q&&q.mB()&&q.M1()||!!d.getPlaylist()}; g.Sf=function(d,q){g.OF(d,"addEmbedsConversionTrackingParams",[q])}; g.vU=function(d){return(d=g.lH(d.M5()))?d.l4():{}}; g.tNf=function(d){d=(d=d.getVideoData())&&d.U;return!!d&&!(!d.audio||!d.video)&&d.mimeType!=="application/x-mpegURL"}; g.o6=function(d,q,T){d=d.OD().element;var Y=wL(d.children,function(e){e=Number(e.getAttribute("data-layer"));return T-e||1}); Y<0&&(Y=-(Y+1));yp(d,q,Y);q.setAttribute("data-layer",String(T))}; g.V2=function(d){var q=d.C();if(!q.zX)return!1;var T=d.getVideoData();if(!T||d.getPresentingPlayerType()===3)return!1;var Y=(!T.isLiveDefaultBroadcast||q.N("allow_poltergust_autoplay"))&&!Q2(T);Y=T.isLivePlayback&&(!q.N("allow_live_autoplay")||!Y);var e=T.isLivePlayback&&q.N("allow_live_autoplay_on_mweb");d=d.getPlaylist();d=!!d&&d.mB();var U=T.dO&&T.dO.playerOverlays||null;U=!!(U&&U.playerOverlayRenderer&&U.playerOverlayRenderer.autoplay);U=T.kc&&U;return!T.ypcPreview&&(!Y||e)&&!g.cR(T.K,"ypc")&& !d&&(!g.dn(q)||U)}; KxD=function(d,q){d=BgI(d.app.v3().S);d=g.E(d);for(var T=d.next();!T.done;T=d.next()){T=T.value;var Y=T.getAvailableAudioTracks(),e=null;Y=g.E(Y);for(var U=Y.next();!U.done;U=Y.next())if(U=U.value,U.getLanguageInfo().getId()===q){e=U;break}e&&T.mG(e,!0)}}; dR=function(){tB.apply(this,arguments);this.requestHeaders={}}; Tk=function(){qf||(qf=new dR);return qf}; eq=function(d,q){q?d.requestHeaders.Authorization="Bearer "+q:delete d.requestHeaders.Authorization}; g.Uc=function(d){g.W.call(this);var q=this;this.G2=d;this.fC={I_:function(){return q.G2}}}; g.bi=function(d,q,T,Y){Y=Y===void 0?!1:Y;g.Ji.call(this,q);var e=this;this.J=d;this.yv=Y;this.B=new g.aI(this);this.fade=new g.oh(this,T,!0,void 0,void 0,function(){e.w7()}); g.C(this,this.B);g.C(this,this.fade)}; Xp=function(d){var q=d.J.getRootNode();return d.J.N("web_watch_pip")||d.J.N("web_shorts_pip")?oy(q):document}; GD7=function(d){d.U&&(document.activeElement&&g.HB(d.element,document.activeElement)&&d.U.focus(),d.U.setAttribute("aria-expanded","false"),d.U=void 0);g.jX(d.B);d.K=void 0}; JM=function(d,q,T){d.vR()?d.bF():d.St(q,T)}; sc=function(d,q,T,Y){Y=new g.f({Y:"div",hF:["ytp-linked-account-popup-button"],j5:Y,Z:{role:"button",tabindex:"0"}});q=new g.f({Y:"div",D:"ytp-linked-account-popup",Z:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{Y:"div",D:"ytp-linked-account-popup-title",j5:q},{Y:"div",D:"ytp-linked-account-popup-description",j5:T},{Y:"div",D:"ytp-linked-account-popup-buttons",V:[Y]}]});g.bi.call(this,d,{Y:"div",D:"ytp-linked-account-popup-container",V:[q]},100);var e=this;this.dialog=q;g.C(this,this.dialog); Y.listen("click",function(){e.bF()}); g.C(this,Y);g.o6(this.J,this.element,4);this.hide()}; g.gR=function(d,q,T,Y){g.Ji.call(this,d);this.priority=q;T&&g.$T(this,T);Y&&this.A1(Y)}; g.Fp=function(d,q,T,Y){d=d===void 0?{}:d;q=q===void 0?[]:q;T=T===void 0?!1:T;Y=Y===void 0?!1:Y;q.push("ytp-menuitem");var e=d;"role"in e||(e.role="menuitem");T||(e=d,"tabindex"in e||(e.tabindex="0"));d={Y:T?"a":"div",hF:q,Z:d,V:[{Y:"div",D:"ytp-menuitem-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-menuitem-label",j5:"{{label}}"},{Y:"div",D:"ytp-menuitem-content",j5:"{{content}}"}]};Y&&d.V.push({Y:"div",D:"ytp-menuitem-secondary-icon",j5:"{{secondaryIcon}}"});return d}; g.$T=function(d,q){d.updateValue("label",q)}; Nf=function(d){g.gR.call(this,g.Fp({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var q=this;this.J=d;this.U=this.G=!1;this.TG=d.dB();d.createServerVe(this.element,this,!0);this.W(this.J,"settingsMenuVisibilityChanged",function(T){q.N5(T)}); this.W(this.J,"videodatachange",this.T);this.listen("click",this.onClick);this.T()}; Rz=function(d){return d?g.gx(d):""}; xT=function(d){g.W.call(this);this.api=d}; yD=function(d){xT.call(this,d);var q=this;A7(d,"setAccountLinkState",function(T){q.setAccountLinkState(T)}); A7(d,"updateAccountLinkingConfig",function(T){q.updateAccountLinkingConfig(T)}); d.addEventListener("videodatachange",function(T,Y){q.onVideoDataChange(Y)}); d.addEventListener("settingsMenuInitialized",function(){q.menuItem=new Nf(q.api);g.C(q,q.menuItem)})}; LxH=function(d){this.api=d;this.G={}}; hM=function(d,q,T,Y){q in d.G||(T=new g.Ij(T,Y,{id:q,priority:2,namespace:"appad"}),d.api.ES([T],1),d.G[q]=T)}; Hs=function(d){xT.call(this,d);var q=this;this.events=new g.aI(this);g.C(this,this.events);this.G=new LxH(this.api);this.events.W(this.api,"legacyadtrackingpingreset",function(){q.G.G={}}); this.events.W(this.api,"legacyadtrackingpingchange",function(T){var Y=q.G;hM(Y,"part2viewed",1,0x8000000000000);hM(Y,"engagedview",Math.max(1,T.fn*1E3),0x8000000000000);if(!T.isLivePlayback){var e=T.lengthSeconds*1E3;Zu(T)&&Y.api.N("html5_shorts_gapless_ads_duration_fix")&&(e=Y.api.getProgressState().seekableEnd*1E3-T.oS);hM(Y,"videoplaytime25",e*.25,e);hM(Y,"videoplaytime50",e*.5,e);hM(Y,"videoplaytime75",e*.75,e);hM(Y,"videoplaytime100",e,0x8000000000000);hM(Y,"conversionview",e,0x8000000000000); hM(Y,"videoplaybackstart",1,e);hM(Y,"videoplayback2s",2E3,e);hM(Y,"videoplayback10s",1E4,e)}}); this.events.W(this.api,g.Sh("appad"),this.U);this.events.W(this.api,g.lG("appad"),this.U)}; Cq1=function(d,q,T){if(!(T in q))return!1;q=q[T];Array.isArray(q)||(q=[q]);q=g.E(q);for(T=q.next();!T.done;T=q.next()){T=T.value;var Y={CPN:d.api.getVideoData().clientPlaybackNonce};T=g.a1(T,Y);Y=void 0;Y=Y===void 0?!1:Y;(Y=uG(Dp(T,kDH),T,Y,"Active View 3rd Party Integration URL"))||(Y=void 0,Y=Y===void 0?!1:Y,Y=uG(Dp(T,Pq1),T,Y,"Google/YouTube Brand Lift URL"));Y||(Y=void 0,Y=Y===void 0?!1:Y,Y=uG(Dp(T,Wx1),T,Y,"Nielsen OCR URL"));g.rM(T,void 0,Y)}return!0}; QD=function(d,q){u47(d,q).then(function(T){g.rM(q,void 0,void 0,T)})}; Mf=function(d,q){q.forEach(function(T){QD(d,T)})}; u47=function(d,q){return g.ho(d.api.C())&&YA(q)&&Tt(q)?g.rn(d.api.C(),g.$4(d.api.getVideoData())).then(function(T){var Y;T&&(Y={Authorization:"Bearer "+T});return Y},void 0):pZ()}; D7H=function(d){xT.call(this,d);this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"videoready",function(q){if(d.getPresentingPlayerType()===1){var T,Y,e={playerDebugData:{pmlSignal:!!((T=q.getPlayerResponse())==null?0:(Y=T.adPlacements)==null?0:Y.some(function(U){var b;return U==null?void 0:(b=U.adPlacementRenderer)==null?void 0:b.renderer})), contentCpn:q.clientPlaybackNonce}};g.Ta("adsClientStateChange",e)}})}; cs=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);A7(this.api,"getUserAudioQualitySetting",function(){return q.getUserAudioQualitySetting()}); A7(this.api,"setUserAudioQualitySetting",function(T){q.setUserAudioQualitySetting(T)}); A7(this.api,"hasHqaAudioTrack",function(){return q.hasHqaAudioTrack()}); this.mw=bwQ();this.updateEnvironmentData()}; Ec=function(d){g.f.call(this,{Y:"button",hF:["ytp-button","ytp-autonav-toggle"],Z:{title:d.N("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"},V:[{Y:"div",D:"ytp-autonav-toggle-button-container",V:[{Y:"div",D:"ytp-autonav-toggle-button",Z:{"aria-checked":"true"}}]}]});this.J=d;this.U=[];this.G=!1;this.isChecked=!0;d.createClientVe(this.element,this, 113681);this.W(d,"presentingplayerstatechange",this.FB);this.listen("click",this.onClick);this.J.C().N("web_player_autonav_toggle_always_listen")&&wN2(this);D$(d,this.element,this);this.FB()}; wN2=function(d){d.U.push(d.W(d.J,"videodatachange",d.FB));d.U.push(d.W(d.J,"videoplayerreset",d.FB));d.U.push(d.W(d.J,"onPlaylistUpdate",d.FB));d.U.push(d.W(d.J,"autonavchange",d.b7))}; f42=function(d){d.isChecked=d.isChecked;d.Qv("ytp-autonav-toggle-button").setAttribute("aria-checked",String(d.isChecked));var q=d.isChecked?"\u81ea\u52a8\u64ad\u653e\u6a21\u5f0f\u5df2\u5f00\u542f":"\u81ea\u52a8\u64ad\u653e\u6a21\u5f0f\u5df2\u5173\u95ed";d.J.C().N("player_tooltip_data_title_killswitch")?d.update({title:q,label:q}):d.update({"data-tooltip-title":q,label:q});d.J.U$()}; zfY=function(d){return d.J.C().N("web_player_autonav_use_server_provided_state")&&cr(d.GX())}; i07=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"standardControlsInitialized",function(){var T=new Ec(d);g.C(q,T);d.j_(T,"RIGHT_CONTROLS_LEFT")})}; jq=function(d,q){g.gR.call(this,g.Fp({role:"menuitemcheckbox","aria-checked":"false"}),q,d,{Y:"div",D:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; az=function(d,q){d.checked=q;d.element.setAttribute("aria-checked",String(d.checked))}; I4j=function(d){var q=!d.C().B3&&d.getPresentingPlayerType()!==3;return d.isFullscreen()||q}; g.AM=function(d,q,T,Y){var e=d.currentTarget;if((T===void 0||!T)&&g.cG(d))return d.preventDefault(),!0;q.pauseVideo();d=e.getAttribute("href");g.CG(d,Y,!0);return!1}; g.pR=function(d,q,T){if(HT(q.C())&&q.getPresentingPlayerType()!==2){if(g.cG(T))return q.isFullscreen()&&!q.C().externalFullscreen&&q.toggleFullscreen(),T.preventDefault(),!0}else{var Y=g.cG(T);Y&&q.pauseVideo();g.CG(d,void 0,!0);Y&&(g.u2(d),T.preventDefault())}return!1}; m7Q=function(d){d=Zx.includes("zh-CN")?d.N("delhi_modern_web_player_icons")?hi():{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!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"}}]}:d.N("delhi_modern_web_player_icons")?C5I():{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!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"}}]};d.D="ytp-subtitles-button-icon"; return d}; STI=function(d){return Zx.includes("zh-CN")?d?hi():{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:d?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},V:[{Y:"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 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; Oc=function(){return{Y:"div",D:"ytp-spinner-container",V:[{Y:"div",D:"ytp-spinner-rotator",V:[{Y:"div",D:"ytp-spinner-left",V:[{Y:"div",D:"ytp-spinner-circle"}]},{Y:"div",D:"ytp-spinner-right",V:[{Y:"div",D:"ytp-spinner-circle"}]}]}]}}; nR=function(d){if(document.createRange){var q=document.createRange();q&&(q.selectNodeContents(d),d=window.getSelection())&&(d.removeAllRanges(),d.addRange(q))}}; Bs=function(d){var q=d.N("web_player_use_cinematic_label_2")?"\u6c1b\u56f4\u6a21\u5f0f":"\u5f71\u9662\u706f\u6548";jq.call(this,q,g.rR.xJ);var T=this;this.J=d;this.G=!1;this.U=new g.f9(function(){g.TR(T.element,"ytp-menuitem-highlighted")},0); this.TG=d.dB();d=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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(d);this.subscribe("select",this.j,this);this.listen(tM,this.T);g.C(this,this.U)}; KR=function(d){xT.call(this,d);var q=this;this.G=!1;d.addEventListener("settingsMenuInitialized",function(){l4f(q)}); d.addEventListener("highlightSettingsMenu",function(T){l4f(q);var Y=q.menuItem;T==="menu_item_cinematic_lighting"&&(g.d9(Y.element,"ytp-menuitem-highlighted"),g.d9(Y.element,"ytp-menuitem-highlight-transition-enabled"),Y.U.start())}); A7(d,"updateCinematicSettings",function(T){q.updateCinematicSettings(T)})}; l4f=function(d){d.menuItem||(d.menuItem=new Bs(d.api),g.C(d,d.menuItem),d.menuItem.S5(d.G))}; vCj=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"applicationvideodatachange",function(T,Y){Y=Y.clipConfig;T==="dataloaded"&&Y&&Y.startTimeMs!=null&&Y.endTimeMs!=null&&q.api.setLoopRange({startTimeMs:Math.floor(Number(Y.startTimeMs)),endTimeMs:Math.floor(Number(Y.endTimeMs)),postId:Y.postId,type:"clips"})})}; Gk=function(d){xT.call(this,d);this.events=new g.aI(d);g.C(this,this.events);A7(d,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));A7(d,"setCreatorEndscreenHideButton",this.G.bind(this))}; LR=function(d,q,T,Y){jq.call(this,"\u7a33\u5b9a\u97f3\u91cf",g.rR.dX);g.d9(this.element,"ytp-drc-menu-item");this.TG=d.dB();this.j=q;this.G=T;this.hasDrcAudioTrack=Y;d.addEventListener("videodatachange",this.U.bind(this));d.N("mta_drc_mutual_exclusion_removal")&&this.W(d,"onPlaybackAudioChange",this.U);q=this.G()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());d=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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(d);this.subscribe("select",this.T,this);az(this,q);this.TG.rk(this)}; kT=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);d.N("html5_show_drc_toggle")&&d.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new LR(q.api,q.setDrcUserPreference.bind(q),q.getDrcUserPreference.bind(q),q.U.bind(q)),g.C(q,q.menuItem))}); A7(this.api,"setDrcUserPreference",function(Y){q.setDrcUserPreference(Y)}); A7(this.api,"getDrcUserPreference",function(){return q.getDrcUserPreference()}); A7(this.api,"hasDrcAudioTrack",function(){return q.U()}); var T;this.G=(T=g.Zs("yt-player-drc-pref"))!=null?T:1;this.updateEnvironmentData()}; Ps=function(d){xT.call(this,d);var q=this;this.G={};this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"videodatachange",function(){q.onVideoDataChange()}); this.events.W(d,g.Sh("embargo"),function(T){q.api.WR(!0);var Y,e=(Y=q.G[T.id])!=null?Y:[];Y=g.E(e);for(e=Y.next();!e.done;e=Y.next()){var U=e.value;q.api.hideControls();q.api.o6("auth",2,"This video isn't available in your current playback area",RI({embargoed:1,id:T.id,idx:T.U,start:T.start}));e=void 0;(U=(e=U.embargo)==null?void 0:e.onTrigger)&&q.api.gO("innertubeCommand",U)}})}; oC2=function(d,q){var T;return(T=q.onEnter)==null?void 0:T.some(d.U)}; VNg=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next()){T=T.value;var Y=void 0,e=Number((Y=T.playbackPosition)==null?void 0:Y.utcTimeMillis)/1E3,U=void 0;Y=e+Number((U=T.duration)==null?void 0:U.seconds);U="embargo_"+e;d.api.addUtcCueRange(U,e,Y,"embargo",!1);T.onEnter&&(d.G[U]=T.onEnter.filter(d.U))}}; Ws=function(d){xT.call(this,d);var q=this;this.G=[];this.events=new g.aI(d);g.C(this,this.events);A7(d,"addEmbedsConversionTrackingParams",function(T){q.addEmbedsConversionTrackingParams(T)}); this.events.W(d,"veClickLogged",function(T){q.api.hasVe(T)&&(T=T.visualElement.getAsJspb(),T=p2(T,2),q.G.push(T))})}; de_=function(d){xT.call(this,d);A7(d,"isEmbedsShortsMode",function(){return d.isEmbedsShortsMode()})}; qo2=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"initialvideodatacreated",function(T){SN(mx(),16623);q.G=g.Q0();var Y=d.C().yH&&!T.qU;if(sF(T)&&Y){SN(mx(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(T.getWatchNextResponse()){var e,U=(e=T.getWatchNextResponse())==null?void 0:e.trackingParams;U&&vN(U)}if(T.getPlayerResponse()){var b;(T=(b=T.getPlayerResponse())==null?void 0:b.trackingParams)&&vN(T)}}else SN(mx(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),T.getEmbeddedPlayerResponse()&&(b=(U=T.getEmbeddedPlayerResponse())==null?void 0:U.trackingParams)&&vN(b)}); this.events.W(d,"loadvideo",function(){SN(mx(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:q.G})}); this.events.W(d,"cuevideo",function(){SN(mx(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:q.G})}); this.events.W(d,"largeplaybuttonclicked",function(T){SN(mx(),27240,T.visualElement)}); this.events.W(d,"playlistnextbuttonclicked",function(T){SN(mx(),27240,T.visualElement)}); this.events.W(d,"playlistprevbuttonclicked",function(T){SN(mx(),27240,T.visualElement)}); this.events.W(d,"playlistautonextvideo",function(){SN(mx(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; CR=function(d,q){g.W.call(this);var T=this;this.G=null;this.j=q;q=[];for(var Y=0;Y<=100;Y++)q.push(Y/100);q={threshold:q,trackVisibility:!0,delay:1E3};(this.U=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];var U=null;typeof e.isVisible==="undefined"?document.visibilityState==="visible"&&e.isIntersecting&&e.intersectionRatio>0?U=e.intersectionRatio:document.visibilityState==="hidden"?U=0:U=null:U=e.isVisible?e.intersectionRatio:0;U!=null&&(U=Math.max(U,0),U=Math.min(U, 1));T.G=U;typeof T.j==="function"&&T.j(T.G)},q):null)&&this.U.observe(d)}; YoQ=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"applicationInitialized",function(){TjQ(q)})}; TjQ=function(d){var q=d.api.getRootNode(),T,Y=d.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((T=q.parentElement)==null?void 0:T.parentElement)||q:q;d.G=new CR(Y,function(e){e!=null&&(d.api.C().U5=e,d.api.C().j8="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.C(d,d.G);d.events.W(d.api,"videoStatsPingCreated",function(e){var U=d.G;U=U.G==null?null:Math.round(U.G*100)/100;e.inview=U!=null?U:void 0;U=d.api.getPlayerSize();if(U.height>0&&U.width>0){U=[Math.round(U.width),Math.round(U.height)];var b=g.Mi();b>1&&U.push(b);U=U.join(":")}else U=void 0;e.size=U})}; eH1=function(d){var q;return((q=((d==null?void 0:d.messageRenderers)||[]).find(function(T){return!!T.timeCounterRenderer}))==null?void 0:q.timeCounterRenderer)||null}; ui=function(d){g.f.call(this,{Y:"div",hF:["ytp-player-content","ytp-iv-player-content"],V:[{Y:"div",D:"ytp-free-preview-countdown-timer",V:[{Y:"span",j5:"{{label}}"},{Y:"span",D:"ytp-free-preview-countdown-timer-separator",j5:"\u2022"},{Y:"span",j5:"{{duration}}"}]}]});this.api=d;this.G=null;this.j=this.U=0;this.W(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; bYI=function(d,q){d.G||(d.U=q,d.j=(0,g.cj)(),d.G=new g.uc(function(){Uef(d)},null),Uef(d))}; Uef=function(d){var q=Math,T=q.round,Y=Math.min((0,g.cj)()-d.j,d.U);q=T.call(q,(d.U-Y)/1E3);d.updateValue("duration",uq({seconds:q}));q<=0&&d.G?d.stopTimer():d.G&&d.G.start()}; XIg=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"basechromeinitialized",function(){q.G=new ui(d);g.C(q,q.G);g.o6(d,q.G.element,4);q.G.hide()})}; Dx=function(d){g.f.call(this,{Y:"button",hF:["ytp-fullerscreen-edu-button","ytp-button"],V:[{Y:"div",hF:["ytp-fullerscreen-edu-text"],j5:"\u6eda\u52a8\u6d4f\u89c8\u8be6\u60c5"},{Y:"div",hF:["ytp-fullerscreen-edu-chevron"],V:[{Y:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",Z:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],Z:{"data-priority":"2"}});this.mZ=d;this.fade=new g.oh(this,250,void 0,100);this.U=this.G=!1;d.createClientVe(this.element, this,61214);g.C(this,this.fade);this.W(d,"fullscreentoggled",this.S5);this.W(d,"presentingplayerstatechange",this.S5);this.listen("click",this.onClick);this.S5()}; wR=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);A7(this.api,"updateFullerscreenEduButtonSubtleModeState",function(Y){q.updateFullerscreenEduButtonSubtleModeState(Y)}); A7(this.api,"updateFullerscreenEduButtonVisibility",function(Y){q.updateFullerscreenEduButtonVisibility(Y)}); var T=d.C();d.N("external_fullscreen_with_edu")&&T.externalFullscreen&&HT(T)&&T.controlsType==="1"&&this.events.W(d,"standardControlsInitialized",function(){q.G=new Dx(d);g.C(q,q.G);d.j_(q.G)})}; JFg=function(d){g.f.call(this,{Y:"div",D:"ytp-gated-actions-overlay",V:[{Y:"div",D:"ytp-gated-actions-overlay-background",V:[{Y:"div",D:"ytp-gated-actions-overlay-background-overlay"}]},{Y:"button",hF:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Z:{"aria-label":"\u5173\u95ed"},V:[g.y9()]},{Y:"div",D:"ytp-gated-actions-overlay-bar",V:[{Y:"div",D:"ytp-gated-actions-overlay-text-container",V:[{Y:"div",D:"ytp-gated-actions-overlay-title",j5:"{{title}}"},{Y:"div",D:"ytp-gated-actions-overlay-subtitle", j5:"{{subtitle}}"}]},{Y:"div",D:"ytp-gated-actions-overlay-button-container"}]}]});var q=this;this.api=d;this.background=this.Qv("ytp-gated-actions-overlay-background");this.U=this.Qv("ytp-gated-actions-overlay-button-container");this.G=[];this.W(this.Qv("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){q.api.gO("onCloseMiniplayer")}); this.hide()}; $eD=function(d,q){var T=0;T=0;for(var Y={};T e&&(e=J.width,U="url("+J.url+")")}T.background.style.backgroundImage=U;$eD(T,Y.actionButtons||[]);T.show()}else T.hide()}); g.o6(this.api,this.G.element,4)}; fR=function(d){xT.call(this,d);var q=this;Z$(this.api,"getSphericalProperties",function(){return q.getSphericalProperties()}); Z$(this.api,"setSphericalProperties",function(){q.setSphericalProperties.apply(q,g.RQ(g.CN.apply(0,arguments)))}); pV(this.api,"getSphericalProperties",function(){return q.api.getPresentingPlayerType()===2?{}:q.getSphericalProperties()}); pV(this.api,"setSphericalProperties",function(){var T=g.CN.apply(0,arguments);q.api.getPresentingPlayerType()!==2&&q.setSphericalProperties.apply(q,g.RQ(T))})}; zk=function(d){xT.call(this,d);A7(d,"createClientVe",this.createClientVe.bind(this));A7(d,"createServerVe",this.createServerVe.bind(this));A7(d,"destroyVe",this.destroyVe.bind(this));A7(d,"hasVe",this.hasVe.bind(this));A7(d,"logClick",this.logClick.bind(this));A7(d,"logVisibility",this.logVisibility.bind(this));A7(d,"setTrackingParams",this.setTrackingParams.bind(this))}; ii=function(d,q,T,Y){function e(b){var J=!(b.status!==204&&b.status!==200&&!b.response),F;b={succ:""+ +J,rc:b.status,lb:((F=b.response)==null?void 0:F.byteLength)||0,rt:((0,g.cj)()-U).toFixed(),shost:g.sb(d),trigger:q};Fp1(b,d);T&&T(b);Y&&!J&&Y(new g.xV("pathprobe.net",b))} var U=(0,g.cj)();g.QB(d,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})}; Fp1=function(d,q){var T;((T=window.performance)==null?0:T.getEntriesByName)&&(q=performance.getEntriesByName(q))&&q.length&&(q=q[0],d.pedns=(q.domainLookupEnd-q.startTime).toFixed(),d.pecon=(q.connectEnd-q.domainLookupEnd).toFixed(),d.perqs=(q.requestStart-q.connectEnd).toFixed(),NjN&&(d.perqsa=q.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; RHY=function(d){NjN=d}; Iz=function(d,q){this.Tq=d;this.policy=q;this.playbackRate=1}; xeI=function(d,q){var T=Math.min(2.5,fO(d.Tq));d=mH(d);return q-T*d}; Sq=function(d,q,T,Y,e){e=e===void 0?!1:e;if(d.policy.wJ)return Math.ceil(d.policy.wJ*q);d.policy.pS&&(Y=Math.abs(Y));Y/=d.playbackRate;var U=1/I9(d.Tq);T=Math.max(.9*(Y-3),fO(d.Tq)+d.Tq.U.G*U)/U*.8/(q+T);T=Math.min(T,Y);d.policy.Kq>0&&e&&(T=Math.max(T,d.policy.Kq));return yFg(d,T,q)}; yFg=function(d,q,T){return Math.ceil(Math.max(Math.max(d.policy.Gr,d.policy.dZ*T),Math.min(Math.min(d.policy.RU,31*T),Math.ceil(q*T))))||d.policy.Gr}; hHj=function(d,q,T){T=Sq(d,q.G.info.Vv,T.G.info.Vv,0);var Y=fO(d.Tq)+T/I9(d.Tq);return Math.max(Y,Y+d.policy.zE-T/q.G.info.Vv)}; mH=function(d){return I9(d.Tq,!d.policy.wB,d.policy.Gw)}; li=function(d){return mH(d)/d.playbackRate}; vs=function(d,q,T){var Y=d.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=d.policy.playbackStartPolicy.startMinReadaheadPolicy||[];d=Infinity;q=g.E(q&&Y.length>0?Y:e);for(Y=q.next();!Y.done;Y=q.next())Y=Y.value,e=Y.minReadaheadMs||0,T<(Y.minBandwidthBytesPerSec||0)||d>e&&(d=e);return d0&&(this.U=T.EW)}; MKf=function(d,q,T,Y,e){if(!Y.info.S){if(T.length===0)T.push(Y);else{var U;(d=(U=T.pop())==null?void 0:g.Al(U,Y))?T.push(d):T.push(Y)}return e}var b;(T=(b=T.pop())==null?void 0:g.Al(b,Y))||(T=Y);if(T.info.U)return d.logger&&d.logger({incompleteSegment:T.info.jt()}),e;Y=d.sE(T);e=Y.sD;Y={clipId:Y.clipId,formatId:Y.formatId,startTimeMs:Y.startTimeMs,durationMs:Y.CQ,QK:e,wA:e};e=HY_(q,Y.startTimeMs);if(U=T=e>=0?q[e]:null){U=Y;var J=e;b=T.startTimeMs+T.durationMs;var F=U.startTimeMs+U.durationMs;if(U.startTimeMs- b>d.U)U=!1;else if(QgH(d,T.formatId,U.formatId))T.durationMs=Math.max(b,F)-T.startTimeMs,T.wA=Math.max(T.wA,U.wA),U=!0;else if(Math.abs(T.startTimeMs-U.startTimeMs)<=d.U)if(T.durationMs>U.durationMs+d.U){var N=T.formatId,R=T.QK;J=T.wA;T.formatId=U.formatId;T.durationMs=U.durationMs;T.QK=U.QK;T.wA=U.wA;U.formatId=N;U.startTimeMs=F;U.durationMs=b-F;U.QK=R;U.wA=J;U=!1}else T.formatId=U.formatId,U=!0;else b>U.startTimeMs&&(b>F&&(q.splice(J+1,0,{formatId:T.formatId,startTimeMs:F,durationMs:b-F,QK:U.wA+ 1,wA:T.wA}),d.logger&&d.logger({splitOldStart:(N=T.startTimeMs)==null?void 0:N.toFixed(3),splitOldEnd:b==null?void 0:b.toFixed(3),splitNewStart:(R=U.startTimeMs)==null?void 0:R.toFixed(3),splitNewEnd:F==null?void 0:F.toFixed(3)})),T.durationMs=U.startTimeMs-T.startTimeMs,T.wA=U.QK-1),U=!1}U?Y=T:(e+=1,q.splice(e,0,Y));N=0;for(R=e+1;R=F+T.U?T=!0:J+T.U=0?d:-d-2}; cFg=function(d,q){if(d.RN){var T=d.RN.Zm();if(T.length!==0){if(d.j&&q){var Y=d.j,e=Y.info.T;!oI(T,e)&&Y.info.B>0&&(0,g.cj)()-d.X<5E3&&(d.logger&&d.logger({dend:Y.info.jt()}),T=PEN(T,e,e+.01))}d.policy.Qs&&d.logger&&d.logger({cbri:""+d.G});Y=[];for(var U=e=0;e=b){var R=Object.assign({},d.wz[U]),x=d.vv.j.get(SL(d.wz[U].formatId)),y=Math.max(F,b);b=x.index.yg(y+d.U/ 1E3);F=x.index.getStartTime(b);var h=b+ +(Math.abs(F-y)>d.U/1E3);y=h+d.T;h=x.index.getStartTime(h)*1E3;U!==d.G||q?(R.QK=y,R.startTimeMs=h):(d.logger&&d.logger({pEvict:"1",og:R.startTimeMs,adj:F*1E3}),R.QK=b+d.T,R.startTimeMs=F*1E3);b=void 0;F=((b=d.j)==null?void 0:b.info.duration)||11;U===d.G&&Jd.U/1E3);b=F+d.T;x=x.index.Zq(F)*1E3;R.wA=b;R.durationMs=x-R.startTimeMs;R.QK<=R.wA&&Y.push(R)}N=0&&YI(d.audioTrack,d.targetTime)>=0&&U?((d.videoTrack.S||d.audioTrack.S)&&d.loader.oU("iterativeSeeking",{status:"done",count:d.seekCount}),d.videoTrack.S=!1,d.audioTrack.S=!1):Y&&g.ML(function(){if(d.G||!d.policy.fn)bk(d);else{var b=q.startTime,J=q.duration;if(!d.policy.S){var F=T?d.videoTrack.S:d.audioTrack.S,N=d.videoTrack.X!==-1&&d.audioTrack.X!==-1,R=d.targetTime>=b&&d.targetTime432E3&&Wig(d.vv);d.U&&(e=d.U,d.U=0);g.ML(function(){d.policy.S||Xs(d,e,102)}); d.loader.oU("initManifestlessSync",{st:e,ost:e+d.loader.mz(),a:d.audioTrack.X,v:d.videoTrack.X});d.j&&(d.j.resolve(e+.1),d.j=null);d.policy.S&&Xs(d,e,102)}}}; $I=function(d,q){var T=this;this.yp=d;this.requestNumber=++GG_;this.G=this.now();this.B=this.K=NaN;this.L=this.G;this.j=this.vF=this.S=0;this.X=this.G;this.Bv=this.UD=this.dO=this.zq=this.Ln=this.rO=this.U=this.T=0;this.lr=this.isActive=!1;this.Qp=this.kx=0;this.fC={csO:function(){return T.q4}}; this.Tq=q.Tq;this.snapshot=rP1(this.Tq);this.policy=this.Tq.U;this.cO=!!q.cO;this.D1=q.D1;this.D5=q.D5||0;this.bO=q.bO||0;q.Y4&&(this.z2=new GH);var Y;this.q4=(Y=q.q4)!=null?Y:!1;this.cO||ZdI(this.Tq)}; Lpf=function(d){d.dO=Math.max(d.dO,d.S-d.Ln);d.UD=Math.max(d.UD,d.L-d.zq);d.rO=0}; gK=function(d,q,T){OdX(d.Tq,q);d.z2&&(d.z2.add(Math.ceil(q)-Math.ceil(d.L)),d.z2.add(Math.max(0,Math.ceil(T/1024)-Math.ceil(d.S/1024))));var Y=q-d.L,e=T-d.S;d.vF=e;d.Bv=Math.max(d.Bv,e/(Y+.01)*1E3);d.L=q;d.S=T;d.rO&&T>d.rO&&Lpf(d)}; Fs=function(d,q){d.url=q;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; NO=function(d,q){$I.call(this,d,q);this.fn=this.q5=!1;this.aU=this.yv=Infinity;this.RU=NaN;this.lF=!1;this.Fw=NaN;this.ev=this.qk=this.xx=0;this.mO=q.mO||1;this.e4=q.e4||this.mO;this.Fb=q.Fb;this.sD=q.sD;this.MM=q.MM;kG1(this);this.iW(this.G);this.wO=(this.Fw-this.G)/1E3}; Ptj=function(d){var q=d.qk||d.xx;return q?d.snapshot.delay+Math.min(d.bO,(d.B-d.K)/1E3)+q:d.wO}; R3=function(d,q,T){if(!d.cO){q=Math.max(q,.01);var Y=d.D5?Math.max(q,T/d.D5):q,e=d.Tq.U.j;e&&(Y=q,d.D5&&(Y=Math.max(q,T/d.D5*e)));ue(d.Tq,q,T,Y)}}; Wp_=function(d){return(d.X-d.G)/1E3}; kG1=function(d){d.RU=d.G+d.snapshot.delay*1E3;d.lF=!1}; xI=function(d,q){if(d.Fb&&d.sD!==void 0&&d.MM!==void 0){var T=Math,Y=T.min,e=d.yv;var U=d.Fb;var b=d.G;if(Ctf(U,d.sD))U=q;else{var J=0;U.zz&&(J=.2);U=b+(U.bO+J)*1E3}d.yv=Y.call(T,e,U);T=Math;Y=T.min;e=d.aU;U=d.Fb;b=d.G;J=uL2(U,d.sD,d.MM);J!==2&&(q=J?q:b+U.bO*1E3,U.zz&&(q+=U.bO*1E3));d.aU=Y.call(T,e,q);d.yv<=d.G?kG1(d):(d.RU=d.yv,d.lF=!0)}}; De7=function(d,q){if(q+1<=d.totalLength){var T=FJ(d,q);T=T<128?1:T<192?2:T<224?3:T<240?4:5}else T=0;if(T<1||!(q+T<=d.totalLength))return[-1,q];if(T===1)d=FJ(d,q++);else if(T===2)T=FJ(d,q++),d=FJ(d,q++),d=(T&63)+64*d;else if(T===3){T=FJ(d,q++);var Y=FJ(d,q++);d=FJ(d,q++);d=(T&31)+32*(Y+256*d)}else if(T===4){T=FJ(d,q++);Y=FJ(d,q++);var e=FJ(d,q++);d=FJ(d,q++);d=(T&15)+16*(Y+256*(e+256*d))}else T=q+1,d.focus(T),JV(d,T,4)?d=wWf(d).getUint32(T-d.j,!0):(Y=FJ(d,T+2)+256*FJ(d,T+3),d=FJ(d,T)+256*(FJ(d,T+1)+ 256*Y)),q+=5;return[d,q]}; yh=function(d){this.yp=d;this.G=new e2}; hk=function(d,q){this.info=d;this.callback=q;this.state=1;this.f5=this.mR=!1;this.j$=null}; wIX=function(d){return g.h0(d.info.Zw,function(q){return q.type===3})}; HX=function(d,q,T,Y){var e=this;Y=Y===void 0?{}:Y;this.policy=q;this.yp=T;this.status=0;this.G=new e2;this.U=0;this.JF=this.T=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(Y.method||"GET",d);if(Y.headers)for(d=Y.headers,q=g.E(Object.keys(d)),T=q.next();!T.done;T=q.next())T=T.value,this.xhr.setRequestHeader(T,d[T]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.VZ()}; this.xhr.onload=function(){return e.onDone()}; this.xhr.onerror=function(){return e.onError()}; this.xhr.fetch(function(U){e.G.append(U);e.U+=U.length;U=(0,g.cj)();e.yp.aW(U,e.U)},function(){},Y.body||null)}; fWn=function(d,q){this.U=(new TextEncoder).encode(d);this.G=(new TextEncoder).encode(q)}; zE7=function(d,q){var T;return g.G(function(Y){if(!q)return Y.return(q);T=new g.FN(d.U);return Y.return(T.encrypt(q,d.G))})}; lJ2=function(d,q){var T;return g.G(function(Y){if(Y.U==1){if(!q)return Y.return(q);T=new g.FN(d.U);return g.B(Y,T.decrypt(q,d.G),2)}return Y.return(Y.G)})}; iYg=function(d,q){var T=this;this.G=d;this.yp=q;this.loaded=this.status=0;this.error="";d=o8(this.G.get("range")||"");if(!d)throw Error("bad range");this.range=d;this.U=new e2;zHY(this).then(function(){T.yp.Q2()},function(Y){T.error=""+Y||"unknown_err"; T.yp.Q2()})}; zHY=function(d){var q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a;return g.G(function(p){if(p.U==1){d.status=200;q=d.G.get("docid");T=OD(d.G.get("fmtid")||"");Y=d.G.get("lmt")||"0";e=+(d.G.get("csz")||0);if(!q||!T||!e)throw Error("Invalid local URL");d.G.get("ck")&&d.G.get("civ")&&(U=new fWn(d.G.get("ck"),d.G.get("civ")));b=d.range;J=Math.floor(b.start/e);F=Math.floor(b.end/e);N=J}if(p.U!=5)return N<=F?g.B(p,vbY(q,T,Y,N,U),5):p.tF(0);R=p.G;if(R===void 0)throw Error("invariant: data is undefined");x=N*e;y=(N+1)*e; h=Math.max(0,b.start-x);H=Math.min(b.end+1,y)-(h+x);a=new Uint8Array(R.buffer,h,H);d.U.append(a);d.loaded+=H;d.loaded=400?(d.lastError="net.badstatus",!0):(e===void 0?0:e)?(d.lastError="ump.spsrejectfailure",!0):T||Y!==void 0&&Y?!1:(d.lastError=q===204?"net.nocontent":"net.connect",!0)}; Za=function(d,q){if(d.policy.cD)return!1;var T=q.getResponseHeader("content-type"),Y=q.QN();d=!Y||Y<=d.policy.IK;return(!q.wf()||!T||T.indexOf("text/plain")!==-1)&&d}; qK6=function(d,q){var T="";q=q.oD();q.totalLength<=d.policy.IK&&(T=dnj(d,$X(q)));return T}; dnj=function(d,q){var T=Re(q);return wp(T)?(d.logger.debug(function(){return"Redirecting to "+T}),T):""}; j6=function(d){return w0(d.j,SK(d.M3.Wf))}; T0D=function(d){var q=d.timing.Xq();q.shost=SK(d.M3.Wf);return q}; YKf=function(d,q){return(d==null?void 0:d.maxWidth)>(q==null?void 0:q.maxWidth)||(d==null?void 0:d.maxHeight)>(q==null?void 0:q.maxHeight)}; ej6=function(d,q){for(var T=g.E(q.keys()),Y=T.next();!Y.done;Y=T.next())if(Y=q.get(Y.value),Y.length!==0){g.iQ(Y,function(J,F){return F.maxFramerate-J.maxFramerate}); for(var e=[Y[0]],U=0,b=1;bd.G||T.push(Y)}return T}; Oj=function(d,q,T){var Y=XtD[d]||[];T.N("html5_shorts_onesie_mismatched_fix")&&(Y=Ju_[d]||[]);q.push.apply(q,g.RQ(Y));T.N("html5_early_media_for_drm")&&q.push.apply(q,g.RQ(s8I[d]||[]))}; xnf=function(d,q){var T=g.Br(d),Y=d.C(),e=Y.S;Y=Y.N("html5_shorts_onesie_mismatched_fix");var U=d.mT();if(Y){if(!e.U){if(U&&nz)return nz;if(rK)return rK}}else if(rK&&!e.U)return rK;var b=[],J=[],F={},N=tk.concat($n7);Y&&(N=tk.concat(gkn));d.N("html5_early_media_for_drm")&&(N=N.concat(FUf),d.N("allow_vp9_1080p_mq_enc")&&N.push(N0j));var R=[].concat(g.RQ(RjD));d.N("html5_iamf_audio_onesie_fmt")&&R.push(["773"]);N=g.E(N);for(var x=N.next();!x.done;x=N.next()){var y=!1;x=g.E(x.value);for(var h=x.next();!h.done;h= x.next()){h=h.value;var H=BT(h,U&&Y);if(H&&H.video&&!(kV(H)&&!T.yv&&H.video.qualityOrdinal>T.hq)){var a=g.Yv(d.C().experiments,"html5_drm_byterate_soft_cap");a>0&&LrX(H)&&H.Vv>a||(y?(b.push(h),Oj(h,b,d)):(H=PI(T,H,e),H===!0?(y=!0,b.push(h),Oj(h,b,d)):F[h]=H))}}}R=g.E(R);for(N=R.next();!N.done;N=R.next())for(N=g.E(N.value),y=N.next();!y.done;y=N.next())if(y=y.value,(x=TG1(y))&&x.audio&&(d.N("html5_onesie_51_audio")||!PH(x)&&!WH(x)))if(x=PI(T,x,e),x===!0){J.push(y);Oj(y,J,d);break}else F[y]=x;if(!d.N("html5_enable_audio_quality_setting"))for(d= g.E(["141","774"]),R=d.next();!R.done;R=d.next())R=R.value,J.includes(R)&&(g.jj(J,R),F[R]="blkhqa");T.U&&q("orfmts",F);if(Y)return e.U&&(e.U=!1,nz=rK=void 0),U?nz={video:b,audio:J}:rK={video:b,audio:J};rK={video:b,audio:J};e.U=!1;return rK}; g.HjY=function(d,q,T){var Y=T.S,e=[],U=[],b=T.N("html5_shorts_onesie_mismatched_fix");d=d.mT();var J=tk.concat($n7);b&&(J=tk.concat(gkn));T.N("html5_early_media_for_drm")&&(J=J.concat(FUf),T.N("allow_vp9_1080p_mq_enc")&&J.push(N0j));var F=[].concat(g.RQ(RjD));T.N("html5_iamf_audio_onesie_fmt")&&F.push(["773"]);J=g.E(J);for(var N=J.next();!N.done;N=J.next()){N=g.E(N.value);for(var R=N.next();!R.done;R=N.next()){R=R.value;var x=BT(R,d&&b);if(x&&x.video){var y=g.Yv(T.experiments,"html5_drm_byterate_soft_cap"); if(!(y>0&&LrX(x)&&x.Vv>y)&&PI(q,x,Y)===!0){e.push({videoCodec:yuY[tQ[R]],maxWidth:x.video.width,maxHeight:x.video.height,maxFramerate:x.video.fps});break}}}}b=g.E(F);for(d=b.next();!d.done;d=b.next())for(d=g.E(d.value),F=d.next();!F.done;F=d.next())if(F=F.value,(J=TG1(F))&&J.audio&&(T.N("html5_onesie_51_audio")||!PH(J)&&!WH(J))&&PI(q,J,Y)===!0){U.push({audioCodec:hjN[tQ[F]],numChannels:J.audio.numChannels});break}return{videoFormatCapabilities:e,audioFormatCapabilities:U}}; cu_=function(d){var q,T={},Y=d.G2,e=d.Mk,U=Y.getVideoData(),b=yR(0),J=Y.getVisibilityState(),F;if((F=d.xo)==null?0:F.gB)T.mw=e.mw;b&&(T.qP=b,T.lastManualDirection=VhD(),b=vH7()||0,b>0&&(b=(e.N("html5_use_date_now_for_local_storage")?Date.now():(0,g.cj)())-b,e.N("html5_use_date_now_for_local_storage")?b>0&&(T.timeSinceLastManualFormatSelectionMs=b):T.timeSinceLastManualFormatSelectionMs=b));b=e.N("html5_use_streamer_bandwidth_for_low_latency_live")&&U.isLowLatencyLiveStream;if(e.schedule.lr&&!b){var N; b=e.N("html5_disable_bandwidth_cofactors_for_sabr_live")?!((N=d.xo)==null||!N.wB):!1;T.Gy=I9(e.schedule,!b)}b=g.ZB.medium;F=Math.floor(b*16/9);(N=U.mT())||(U.G&&U.j&&U.j.videoInfos.length!==0?(N=U.j.videoInfos[0],N=!!N.video&&N.video.width0?{authorizedFormats:d.authorizedFormats}:{authorizedFormats:q};d.sabrLicenseConstraint&&(T.k$.sabrLicenseConstraint=d.sabrLicenseConstraint);if(e.N("html5_onesie_media_capabilities")||e.N("html5_enable_server_format_filter"))T.Kk= 3;e.N("html5_onesie_audio_only_playback")&&OB(U)&&(T.Kk=1);var t;((t=d.xo)==null?0:t.wk)&&d.Ys&&(T.Kk=T.Kk===void 0?7:T.Kk|4);t=U.rA?U.rA:g.Br(U);e.N("html5_onesie_media_capabilities")&&(T.mediaCapabilities=g.HjY(U,t,e));var n;if((n=d.xo)==null?0:BX(n)){x=e.S;n=[];q=[];y=new Map;h=Array.from(x.G.values());h=g.E(h);for(H=h.next();!H.done;H=h.next())a=H.value,a.JE?q.push({audioCodec:hjN[a.Cf],numChannels:a.numChannels,spatialCapabilityBitmask:Q8_[a.Cf]}):(p=yuY[a.Cf],H={videoCodec:p,maxWidth:a.maxWidth|| 0,maxHeight:a.maxHeight||0,maxFramerate:a.maxFramerate||0,is10BitSupported:a.OE||!1},a.maxBitrateBps&&(H.maxBitrateBps=a.maxBitrateBps,J=BT(a.itag),N=void 0,((N=J)==null?0:N.video)&&PI(t,J,x)===!0&&(J=J.Vv*8,J>H.maxBitrateBps&&(H.maxBitrateBps=J))),a=p+"_"+a.OE,p=y.get(a)||[],p.push(H),y.set(a,p));n=ej6(n,y);x={};e.N("html5_ssff_denylist_opus_low")&&(x={itagDenylist:[249,350]});T.mediaCapabilities={videoFormatCapabilities:n,audioFormatCapabilities:q,hdrModeBitmask:3,perPlaybackAttributes:x}}var K; if((K=d.xo)==null?0:K.G){T.Mf=t.Mf;var P;T.hq=(P=d.xo)==null?void 0:P.hq}e.XF&&(T.c8=e.XF);T.cg=d.o8;T.Hh=d.Hh;T.un=d.un;T.ph=d.ph;d.gE&&(T.dpv=(0,g.cj)()-d.gE);d.isPrefetch&&e.N("html5_report_prefetch_requests")&&(T.isPrefetch=!0);QU||(T.yFv=!0);K=fO(e.schedule)*1E3;K>0&&(T.H8=K);var w;((w=d.xo)==null?0:w.OW)&&d.SI&&d.SI0?l:e.schedule.interruptions[0]||0;var m;if((m=d.xo)==null?0:m.Qp)T.jd=d.jd;e.Fw&&(T.audioTrackId=e.Fw);FG(U)&&!T.audioTrackId&&(e.N("html5_fill_default_mosaic_audio_track_id")||(d=Vi7(U),T.audioTrackId=d),U==null||U.oU("misstrkchg",{"default":T.audioTrackId}));if(U=BxD())T.detailedNetworkType=ML7[U]||ML7.other;e.N("html5_enable_voice_boost")&&(T.oLU=e.H1);return T}; Kz=function(d,q,T,Y,e,U,b){var J={};q&&(J.UJ=q);if(!d)return J;J.playbackCookie=T==null?void 0:T.playbackCookie;e&&(J.pD=e);J.B6=[];J.zD=[];if(b==null?0:b.size)for(q=g.E(b.values()),T=q.next();!T.done;T=q.next())J.zD.push(T.value);if(d.sabrContextUpdates.size>0)for(q=g.E(d.sabrContextUpdates.values()),T=q.next();!T.done;T=q.next())EkN(J,T.value,Y);tw(d)&&U&&EkN(J,U,Y);d.TE&&(J.wAk=d.TE);Y=d.C().G;J.clientInfo={clientName:j82[Y.c.toUpperCase()]||0};Y.cbrand&&(J.clientInfo.deviceMake=Y.cbrand);Y.cmodel&& (J.clientInfo.deviceModel=Y.cmodel);Y.cver&&(J.clientInfo.clientVersion=Y.cver);Y.cos&&(J.clientInfo.osName=Y.cos);Y.cosver&&(J.clientInfo.osVersion=Y.cosver);Y=d.C();Y.N("html5_sabr_enable_server_xtag_selection")&&Y.wk&&(J.clientInfo.hl=Y.wk);d.vO&&(J.vO=d.vO);return J}; EkN=function(d,q,T){var Y=q.type||0;(T==null?0:T.has(Y))?d.zD.push(q):d.B6.push(Y)}; qO=function(d,q,T,Y,e,U){var b=U===void 0?{}:U;var J=b.Te===void 0?[]:b.Te;var F=b.yT===void 0?!1:b.yT;var N=b.fb===void 0?0:b.fb;var R=b.poToken===void 0?"":b.poToken;var x=b.cq===void 0?void 0:b.cq;var y=b.hP===void 0?"":b.hP;var h=b.vr===void 0?0:b.vr;var H=b.Rg===void 0?new Uint8Array(0):b.Rg;var a=b.Ie===void 0?!1:b.Ie;U=b.XQ===void 0?0:b.XQ;b=b.UJ===void 0?void 0:b.UJ;hk.call(this,q,e);var p=this;this.policy=d;this.logger=new g.cb("dash/request");this.Iu=this.v4=0;this.m5=!1;this.Dt=this.z3= null;this.P2=!1;this.Rg=this.vr=null;this.qS=this.Oa=!1;this.AY=null;this.XQ=this.d9=0;this.UO=!1;this.fC={XC:function(n){p.XC(n)}, h1r:function(){return p.j$}, Gdv:function(n){p.j$=n}, PGr:function(n){p.v4=n}, wWv:function(n){p.Id.lastError=n}, Ya:function(){return p.xhr}}; this.timing=new NO(this,T);this.yT=F;this.vr=h;this.Rg=H;this.M3=g.gT(this.info,this.policy,Y);this.M3.set("rn",this.HR().toString());this.M3.set("rbuf",(N*1E3).toFixed().toString());this.yT&&this.M3.set("smb","1");this.policy.IF&&R&&this.M3.set("pot",R);y&&this.M3.set("bbs",y);this.policy.useUmp&&!lt(this.M3.Wf)&&(this.PK=new yh(this),this.M3.set("ump","1"),this.M3.set("srfvp","1"));if(d=this.policy.pW?this.policy.b_&&!isNaN(this.info.MM)&&this.info.MM>this.policy.GE?!1:!0:!1)q=null,this.policy.N$&& this.policy.zv?q=[1]:a&&(q=[]),q!=null&&(this.policy.pR&&q.push(2),this.M3.set("defsel",q.join(",")));this.Id=new Ej(this,this.policy,this.M3,this.info.zG,this.timing,this.logger,Y,x);this.Te=J||null;this.f5=aT2(this);lWN(this.Id);Y=void 0;if(this.policy.Dd||this.PK||this.policy.dO)Y={method:"POST"},J=(0,g.GM)([120,0]),x={},this.policy.Uu&&b&&(b=Kz(void 0,b),x.Ti=b),this.policy.Ja&&this.Rg&&(x.videoPlaybackUstreamerConfig=this.Rg),this.policy.dO&&(b=this.info.T)&&Object.assign(x,b),Object.keys(x).length> 0?Y.body=g.S2(x,g.Ne):Y.body=J;if(this.vr&&this.Rg){this.M3.set("iwts","1");Y={method:"POST"};b={ph:this.vr*1E3};var t;J=(t=this.info.T)==null?void 0:t.Gs;t=g.S2({zd:b,Gs:J||void 0,videoPlaybackUstreamerConfig:this.Rg},g.Ne);Y.body=t}try{this.xhr=Qh(this.M3,this.policy.L,this.timing,d,Y),this.Id.U.start(),U&&(this.IC=new g.f9(this.IL,U,this),this.IC.start(U+(this.timing.Tq.B.W4()||0)*1E3)),this.policy.Ar&&Fs(this.timing,this.Hl()),this.logger.debug(function(){return"Sent, itag="+p.M3.get("itag")+ " seg="+p.info.Zw[0].sD+" range="+p.M3.get("range")+" time="+Math.round(p.info.Zw[0].T)+"-"+Math.round(g.yN(p.info.Zw).X)+" rtp="+(p.timing.Ga()-Date.now()).toFixed(0)}),g.ML(function(){})}catch(n){Auj(this,n,!0)}}; aT2=function(d){if(!($w(d.info)&&d.info.q4()&&d.policy.vA&&d.Te)||d.info.zG.j>=2||yR()>0||!Y0D())return!1;var q=d.M3.get("aitags");if(!q)return!1;q=OD(q).split(",");for(var T=[],Y=g.E(d.Te),e=Y.next();!e.done;e=Y.next())e=e.value,g.cR(q,e)&&T.push(e);if(!T.length)return!1;d.M3.set("altitags",g.pn(T.join(",")));return!0}; Auj=function(d,q,T){T=T===void 0?!1:T;g.Zz(q);d.Id.lastError="player.exception";d.errorMessage=q.name+"_"+q.message;T?g.ML(function(){Ak(d.Id)}):Ak(d.Id)}; pt2=function(d,q){d.timing.lr=!0;d.xhr.wf()&&d.timing.ez();if(d.policy.LC){var T;(T=d.IC)==null||T.stop()}cX(d.j$,q,!1)}; Zj1=function(d,q){d.info=q;if(d.j$){var T=d.j$;q=q.Zw;(q.length!==T.Zw.length||q.length0){q=g.E(q.Zw);for(var T=q.next();!T.done;T=q.next()){var Y=void 0;d+=((Y=T.value.range)==null?void 0:Y.length)||0}return d}if(q.dl.length>0)for(T=g.E(q.dl),Y=T.next();!Y.done;Y=T.next())d+=Y.value.Ns||0;return d+q.tU}; wK=function(d,q){if(Cz){var T=0;d=d.vG.get(q);if(d==null||!d.Sj)return 0;d=g.E(d.Sj.values());for(q=d.next();!q.done;q=d.next())T+=q.value.data.totalLength;return T}return((T=d.vG.get(q))==null?void 0:T.FF.totalLength)||0}; fz=function(d,q){d=d.vG.get(q);if(Cz){if(d==null||!d.pk)return!1;q=d.Sj.size>0;return d.R4.length>0||q}return!(d==null||!d.pk)&&!(d==null||!d.FF.totalLength)}; KUQ=function(d,q){var T=d.vG.get(q),Y=B0f(d,q),e=!Y&&!!T.bytesReceived;if(Cz){var U;if((U=d.vv)==null?0:U.aN){d=g.E(T.Sj.values());for(q=d.next();!q.done;q=d.next())if(!q.value.Pq)return!1;return e}}else if(U=d.Cb(q),e&&d.G&&U!==void 0)return U;return(e||T.bytesReceived===Y)&&T.Mq+wK(d,q)===T.bytesReceived}; Gz1=function(d,q,T){d.vG.set(q,{FF:new e2,Mq:0,bytesReceived:0,tU:0,Kg:!1,Zh:!1,Cb:!1,JE:T,JX:[],Zw:[],dl:[],pk:!1,Sj:new Map,Uj:new Map,R4:[]});d.logger.debug(function(){return"[initStream] formatId: "+q})}; LUI=function(d,q,T,Y){T.Zw.push.apply(T.Zw,g.RQ(Y));if(Cz){T.Uj.has(q)||T.Uj.set(q,[]);var e;(e=T.Uj.get(q)).push.apply(e,g.RQ(Y))}else if(T.j$)for(d=g.E(Y),q=d.next();!q.done;q=d.next())T.j$.Zw.push(q.value);else{T.j$=new MO(d.xo,[].concat(g.RQ(T.Zw)));var U;((U=d.xo)==null?0:U.l9)&&g.C(d,T.j$)}}; kzY=function(d,q,T){var Y,e=(Y=d.vv)==null?void 0:Y.j.get(q);if(!e)return[];if(T.VP){var U;return((U=e.Sd(0,T.clipId))==null?void 0:U.Zw)||[]}if(e.gr()){var b=T.startMs,J=T.durationMs;Y=1E3;var F;if(((F=d.xo)==null?0:F.G)&&T.timeRange){var N;b=(N=T.timeRange.startTicks)!=null?N:-1;var R;J=(R=T.timeRange.Ou)!=null?R:-1;var x;Y=(x=T.timeRange.timescale)!=null?x:-1}if(T.aV<0||T.P1<0||J<0||b<0||T.Ns<0||Y<0)return Da(d,q),[];d=VL(T.aV,T.Ns);q=T.dF||0;return[new qG(3,e,d,"makeSliceInfosMediaBytes",T.P1- 1,b/Y,J/Y,q,d.length-q,void 0,T.g4,T.clipId)]}if(T.P1<0)return Da(d,q),[];var y;return((y=d.vv)==null?0:y.aN)?(q=e.W3,F=q*e.info.Vv,N=T.dF,((J=d.xo)==null?0:J.xU)&&T.timeRange&&!N&&(b=T.timeRange.startTicks/T.timeRange.timescale),[new qG(3,e,void 0,"makeSliceInfosMediaBytes",T.P1,b,q,N,F,!0,T.g4,T.clipId)]):[]}; P86=function(d,q,T){d.vv=q;d.xo=T;q=g.E(d.vG);for(T=q.next();!T.done;T=q.next()){var Y=g.E(T.value);T=Y.next().value;Y=Y.next().value;for(var e=g.E(Y.JX),U=e.next();!U.done;U=e.next()){U=U.value;var b=kzY(d,T,U);LUI(d,U.ra,Y,b)}}}; zM=function(d,q,T,Y){d.logger.debug(function(){return"[addStreamData] formatId: "+T+",headerId: "+q+" bytes: "+Y.totalLength}); (d=d.vG.get(T))&&!d.Zh&&(Cz?(d.Sj.has(q)||d.Sj.set(q,{data:new e2,xY:0,Pq:!1}),Uv(d.Sj.get(q).data,Y)):Uv(d.FF,Y),d.bytesReceived+=Y.totalLength,d.Kg=!0)}; uk=function(d,q){d.logger.debug(function(){return"[closeStream] formatId: "+q}); var T=d.vG.get(q);T&&!T.Zh&&(T.Zh=!0,T.S$&&T.S$(),WUg(d)&&d.T.xf())}; WUg=function(d){d=g.E(d.vG.values());for(var q=d.next();!q.done;q=d.next())if(!q.value.Zh)return!1;return!0}; C87=function(d){Cz=d}; ik=function(d,q,T,Y,e,U,b){g.W.call(this);this.policy=d;this.info=q;this.vv=T;this.yp=e;this.logger=new g.cb("sabr");this.PK=new yh(this);this.Jn=new PX(this);this.cA=new WX(this);this.state=1;this.uM=!1;this.yf=0;this.clipId="";this.O5=-1;this.Tm=0;this.kR=-1;this.UO=this.JJ=!1;this.wP=0;this.D4=!1;this.policy.j9?this.VU=new Lz(this,U):this.VU=new NO(this,U);this.M3=this.policy.Qp?q.W0:u0N(q,this.policy,Y);this.M3.set("rn",""+this.HR());this.M3.set("alr","yes");P86(this.cA,T,d);this.Id=new Ej(this, this.policy,this.M3,q.zG,this.VU,this.logger,Y,b,this.policy.enableServerDrivenRequestCancellation);lWN(this.Id);var J;if((J=this.policy)==null?0:J.l9)g.C(this,this.cA),g.C(this,this.Id);d=q.U;q={method:"POST",body:d};d&&(this.Tm=d.length);try{this.xhr=Qh(this.M3,this.policy.L,this.VU,QU,q),this.policy.Ar&&Fs(this.VU,this.Hl()),this.Id.U.start()}catch(F){g.OL(F)}}; Dnn=function(d){d.policy.Tb&&d.xK&&!d.D4?d.D4=!0:d.VU.ez()}; wt7=function(d,q){var T=-1,Y=-1,e=-1,U;if((U=d.TZ)==null?0:U.items)for(d=g.E(d.TZ.items),U=d.next();!U.done;U=d.next())U=U.value,q=J,F=d.vv.isManifestless&&d.policy.xA,b){var N;if(((N=d.G)==null?void 0:N.iC.event)==="predictStart"&&d.G.sDd.X&&(d.X=NaN,d.L=NaN);d.G&&d.G.sD===q?UGQ(d,q,T,d.G,e):d.U===1&&lk(d,5,"noad")}; byg=function(d,q,T,Y,e){Y.OX?lk(d,4,"cue"):(d.X=q,d.L=T,d.oU("sdai",{joinad:d.U,sg:d.X,st:d.L.toFixed(3)}),d.K=Date.now(),lk(d,2,d.U===3?"staftpred":"join"),e.M9(Y.iC))}; UGQ=function(d,q,T,Y,e){if(e&&Y){var U=Y.iC,b=e.sI(U);U.event==="predictStart"&&(d.UD=q);d.oU("sdai",{onqevt:U.event,sq:q,mt:T,gab:b,cst:U.startSecs,cueid:d.policy.BD&&(b||U.event==="start")?U.identifier:void 0},!0);if(b)U.event!=="predictStart"?(U.event==="start"&&d.UD===q-1&&d.oU("sdai",{gabonstart:q}),byg(d,q,T,Y,e)):d.policy.Kz?lk(d,3,"predict"):(q+=Math.max(Math.ceil(-U.G/5E3),1),U=Math.floor(T-U.G/1E3),d.policy.U?d.S=U:d.T=q,d.oU("sdai",{onpred:T,estsq:q,estmt:U.toFixed(3)}),vX(d.loader,U,U, q),d.K=Date.now(),lk(d,3,"predict"),e.M9(Y.iC));else if(d.U===1){var J;((J=d.j)==null?0:J.jX(T))?(vX(d.loader,T,T,q),lk(d,4,"sk2head")):lk(d,5,"nogab")}else U.event==="predictStart"?d.policy.U&&d.S>0?(T=Math.floor(T-U.G/1E3),d.S!==T&&d.oU("sdai",{updateSt:T,old:d.S}),d.S=T):d.T>0&&(T=q+Math.max(Math.ceil(-U.G/5E3),1),d.T!==T&&(d.oU("sdai",{updateSt:T,old:d.T}),d.T=T)):d.policy.Kz&&d.U===3&&byg(d,q,T,Y,e)}else d.oU("sdai",{nulldec:1,sq:q,mt:T.toFixed(3),evt:(Y==null?void 0:(U=Y.iC)==null?void 0:U.event)|| "none"})}; JlQ=function(d,q,T){if(d.policy.H$&&d.policy.U)return!(d.U===1||d.U===2||!d.policy.Kz&&d.U===3&&T>=d.T);if(d.U===1||d.U===2)return!1;if(d.U!==0&&q===d.audioTrack){if(d.policy.U)return Xb1(d.videoTrack,T)||Xb1(d.videoTrack,T+1);d=o3(d.videoTrack);if(T>(d?d.sD:-1))return!1}return!0}; Vh=function(d,q,T){return(T<0||T===d.X)&&!isNaN(d.L)?d.L:q}; q$2=function(d,q){if(d.G){var T=d.G.iC.sS-(q.startTime+d.B-d.G.iC.startSecs);T<=0||(T=new $k(d.G.iC.startSecs-(isNaN(d.B)?0:d.B),T,d.G.iC.context,d.G.iC.identifier,"stop",d.G.iC.G+q.duration*1E3),d.oU("cuepointdiscontinuity",{segNum:q.sD}),S6(d,T,q.sD))}}; lk=function(d,q,T){d.U!==q&&(d.oU("sdai",{setsst:q,old:d.U,r:T}),d.U=q)}; df=function(d,q,T,Y){(Y===void 0?0:Y)?lk(d,1,"seek"):q>0&&Math.abs(q-T)>=5&&d.U===4&&lk(d,5,"sk2t")}; sdY=function(d){this.oU=d;this.G="";this.U=new Map}; $GX=function(d,q,T){if(d.U.has(q.identifier)){var Y=d.U.get(q.identifier);var e=qM(Y.event||"unknown");qM(q.event)>e&&(Y.startTimeSecs=q.startSecs,Y.sS=q.sS,Y.event=q.event,e===qM("predictStart")&&(Y.aq=Date.now()))}else Y={event:q.event,startTimeSecs:q.startSecs,sS:q.sS,vQ:[]},d.U.set(q.identifier,Y);d.j&&T>-1&&T0}; Xt=function(d,q){d.G!==q&&(d.G=q,d.U=!0)}; NTN=function(d,q){var T;q&&(T=g.QN(d.T.G,function(e){return e.id===q})); if(!T&&(T=g.QN(d.T.G,function(e){var U;return!((U=e.DQ)==null||!U.isDefault)}),q)){var Y; d.oU("iaf",{id:q,sid:(Y=T)==null?void 0:Y.id})}return T}; sz=function(d,q,T,Y,e,U){var b=this;U=U===void 0?[]:U;this.loader=d;this.yv=q;this.policy=T;this.vv=Y;this.X=e;this.Bv=U;this.logger=new g.cb("dash/abr");this.G=xp;this.j=this.L=null;this.K=-1;this.aU=!1;this.nextVideo=this.U=null;this.T=[];this.qk=new Set;this.dO={};this.Fw=new k8(1);this.B=0;this.xx=this.UD=this.lr=!1;this.rO=0;this.AF=!1;this.z2=new Set;this.RU=!1;this.fC={X3:function(){J5(b)}}; this.S=new eM(this.policy,e,function(J,F){b.loader.oU(J,F)})}; HyD=function(d,q,T){$_(d,q);q=NTN(d.S,T);T||q||(q=R8Q(d));q=q||d.X.G[0];d.U=d.vv.G[q.id];J5(d);d.L=d.U;xGf(d);ylY(d);d.j=d.nextVideo;d.L=d.U;return h8n(d)}; clf=function(d,q){if(Qdj(d,q))return null;if(q.reason==="m"&&q.isLocked())return d.logger.debug(function(){return"User sets constraint to: "+BI(q)}),$_(d,q),d.B=d.T.length-1,J5(d),gf(d),d.UD=d.UD||d.j!==d.nextVideo,d.j=d.nextVideo,new T0(d.U,d.j,q.reason); q.reason==="r"&&(d.K=-1);$_(d,q);gf(d);if(q.reason==="r"&&d.nextVideo===d.j)return new T0(d.U,d.nextVideo,q.reason);MuQ(d);return null}; Ew7=function(d,q,T){d.U=d.vv.G[q];d.L=d.U;return new T0(d.L,d.j,T?"t":"m")}; jd_=function(d,q){if(q.info.video){if(d.j!==q)return d.j=q,h8n(d)}else d.xx=d.L!==q,d.L=q;return null}; ae1=function(d,q){if(q.G.info.video&&q.S){var T=(q.U+q.j)/q.duration,Y=q.G.info.Vv;T&&Y&&(d.Fw.gH(1,T/Y),d.policy.j&&T/Y>1.5&&d.loader.oU("overshoot",{sq:q.sD,br:T,max:Y}))}}; Ft=function(d,q,T){Uz(d.S,q,T===void 0?!1:T);d.K=-1;$_(d,d.G)}; Alg=function(d,q){return new T0(d.L,d.j,q||d.G.reason)}; MuQ=function(d){if(d.j&&d.nextVideo&&NM(d,d.j.info)d.policy.hq,J=e<=d.policy.hq?kV(Y):Ke(Y);if(!U||b||J)T[e]=Y}return T}; $_=function(d,q){d.G=q;var T=d.X.videoInfos;if(!d.G.isLocked()){var Y=(0,g.cj)();T=g.Zl(T,function(J){if(J.Vv>this.policy.Vv)return!1;var F=this.vv.G[J.id];return bs(this.S).get(J.id)>Y?!1:F.zG.j>4||F.X>4?(this.logger.debug(function(){return"Remove "+m1(J)+"; 4 load failures"}),!1):this.z2.has(+J.itag)?!1:!0},d); FFH(d.S)&&(T=g.Zl(T,function(J){return J.video.width<=854&&J.video.height<=480}))}T.length||(T=d.X.videoInfos); var e=T;d.policy.YH&&(e=Zyj(d,e,q));e=g.Zl(e,q.T,q);if(d.G.isLocked()&&d.S.G){var U=g.QN(T,function(J){return J.id===d.S.G}); U?e=[U]:Xt(d.S,"")}d.policy.YH||(e=Zyj(d,e,q));e.length||(e=[T[0]]);e.sort(function(J,F){return NM(d,J)-NM(d,F)}); q={};for(T=1;Tq.jY.video.width?(g.EI(e,T),T--):NM(d,q.N_)*d.policy.B>NM(d,q.jY)&&(g.EI(e,T-1),T--);var b=e[e.length-1];d.AF=!!d.j&&!!d.j.info&&d.j.info.Cf!==b.Cf;d.logger.debug(function(){return"Constraint: "+BI(d.G)+", "+e.length+" fmts selectable, max selectable fmt: "+m1(b)}); d.T=e;d.qk.clear();q=!1;for(T=0;T=1080&&(q=!0);Oyg(d.policy,b,d.vv.aN)}; Zyj=function(d,q,T){var Y=T.reason==="m"||T.reason==="s";d.policy.Q8&&Ro&&g.F8&&(!Y||T.G<1080)&&(q=q.filter(function(N){return N.video&&(!N.U||N.U.powerEfficient)})); if(q.length>0)if(XD()){var e=pbn(d,q);q=q.filter(function(N){return!!N&&!!N.video&&N.Cf===e[N.video.qualityOrdinal].Cf})}else{var U,b,J=(U=q[0])==null?void 0:(b=U.video)==null?void 0:b.qualityOrdinal; if(J){T=q.filter(function(N){return!!N&&!!N.video&&N.video.qualityOrdinal===J}); var F=pbn(d,T)[J].Cf;q=q.filter(function(N){return!!N&&!!N.video&&N.Cf===F})}}return q}; nwI=function(d,q){for(var T=0;T+1Y}; J5=function(d){if(!d.U||!d.policy.T&&!d.U.info.DQ){var q=d.X.G;d.U&&(q=q.filter(function(Y){return Y.audio.G===d.U.info.audio.G}),q.length||(q=d.X.G)); d.U=d.vv.G[q[0].id];if(q.length>1&&!d.policy.xx){if(!d.policy.gB){var T=g.QN(q,function(Y){return Y.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); T&&(d.U=d.vv.G[T.id])}T=!1;if(T=d.policy.gk?!0:d.G.isLocked()?d.G.G<240:nwI(d,d.U))d.U=d.vv.G[g.yN(q).id]}}}; gf=function(d){if(!d.nextVideo||!d.policy.T)if(d.G.isLocked())d.nextVideo=d.G.G<=360?d.vv.G[d.T[0].id]:d.vv.G[g.yN(d.T).id],d.logger.debug(function(){return"Select max fmt: "+m1(d.nextVideo.info)}); else{for(var q=Math.min(d.B,d.T.length-1),T=li(d.yv),Y=NM(d,d.U.info),e=T/d.policy.lr-Y;q>0&&!(NM(d,d.T[q])<=e);q--);for(var U=T/d.policy.B-Y;q=U);q++);d.nextVideo=d.vv.G[d.T[q].id];d.B!==q&&d.logger.info(function(){return"Adapt to: "+m1(d.nextVideo.info)+", bandwidth: "+T.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+U.toFixed(0)+", constraint: "+BI(d.G)}); d.B=q}}; xGf=function(d){var q=d.policy.lr,T=li(d.yv),Y=T/q-NM(d,d.U.info);q=g.Mx(d.T,function(e){return NM(this,e)U?e=0:Y[b]>d.buffered[b]&&(b===U-1?e=2:b===U-2&&Y[b+1]>d.buffered[b+1]&&(e=3))}d.G.add(q<<3|(T&&4)|e);q=Math.ceil(d.track.Rf()*1E3);d.G.add(q-d.S);d.S=q;if(e===1)for(d.G.add(U),b=q=0;b=2&&d.G.add(Y[U- 1]-d.buffered[U-1]);T&&d.G.add(T);d.buffered=Y}; h5=function(d,q,T){var Y=this;this.policy=d;this.G=q;this.rO=T;this.T=this.U=0;this.Or=null;this.lr=new Set;this.K=[];this.indexRange=this.initRange=null;this.B=new yQ;this.UD=this.yv=!1;this.fC={tP5:function(){return Y.j}, Na2:function(){return Y.chunkSize}, X$x:function(){return Y.L}, vyg:function(){return Y.X}}; (q=GE2(this))?(this.chunkSize=q.csz,this.j=Math.floor(q.clen/q.csz),this.L=q.ck,this.X=q.civ):(this.chunkSize=d.G_,this.j=0,this.L=g.RC(16),this.X=g.RC(16));this.S=new Uint8Array(this.chunkSize);this.L&&this.X&&(this.crypto=new fWn(this.L,this.X))}; GE2=function(d){if(d.policy.E$&&d.policy.fk)for(var q=g.E(d.policy.E$),T=q.next(),Y={};!T.done;Y={qX:void 0,O7:void 0},T=q.next())if(T=g.oE(T.value),Y.qX=+T.clen,Y.O7=+T.csz,Y.qX>0&&Y.O7>0&&d.policy.T===T.docid&&d.G.info.id===T.fmtid&&d.G.info.lastModified===+T.lmt)return d={},d.clen=Y.qX,d.csz=Y.O7,d.ck=T.ck,d.civ=T.civ,d}; Ho=function(d){return!!d.Or&&d.Or.qQ()}; PPX=function(d,q){if(!Ho(d)&&!d.JF()){if(!(d.yv||(d.yv=!0,d.j>0))){var T=Qx(d);T=bx(d.policy.T,d.G.info,MM(d),T,d.policy.Fw);co(d,T)}if(q.info.type===1){if(d.Or){Ez(d,Error("Woffle: Expect INIT slices to always start us off"));return}d.initRange=VL(0,q.U.totalLength)}else if(q.info.type===2)d.Or&&d.Or.type===1||Ez(d,Error("Woffle: Index before init")),d.indexRange=VL(d.initRange.end+1,q.U.totalLength);else if(q.info.type===3){if(!d.Or){Ez(d,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(d.Or.type===3&&!eu(d.Or,q.info)&&(d.K=[],q.info.sD!==U$(d.Or)||q.info.U!==0))return;if(q.info.S){T=g.E(d.K);for(var Y=T.next();!Y.done;Y=T.next())LFH(d,Y.value);d.K=[]}else{d.K.push(q);d.Or=q.info;return}}else{Ez(d,Error("Woffle: Unexpected slice type"));return}d.Or=q.info;LFH(d,q);kEY(d)}}; LFH=function(d,q){var T=0,Y=$X(q.U);if(d.T=Y.length)return;if(T<0)throw Error("Missing data");d.T=d.j;d.U=0}for(e={};T0){var b=Y.getUint32(T+28);U+=b*16+4}var J=Y.getUint32(T+U-4);try{var F=wbj(q.subarray(T+U,T+U+J));if(F!==null){var N=F;break a}}catch(R){}}T+=e}N=null;break a}catch(R){N=null;break a}N=void 0}if(N!=null)for(q=R4(vE(N,7,void 0,r2)),q==null||d.fz||(d.cryptoPeriodIndex=q),q=R4(vE(N,10,void 0,r2)),q!=null&&q>0&& !d.fz&&(d.G=q),N=es(N,2,nSI,void 0===KnN?2:4),N=g.E(N),Y=N.next();!Y.done;Y=N.next())q=d.j,T=q.push,Y=Kp(Y.value),Y=g.A0(Y,4),T.call(q,Y)}; z82=function(d){return isNaN(d.cryptoPeriodIndex)?g.A0(d.initData):""+d.cryptoPeriodIndex}; A5=function(d,q,T){var Y=T===void 0?{}:T;T=Y.videoDuration===void 0?0:Y.videoDuration;var e=Y.tP===void 0?void 0:Y.tP;Y=Y.s9===void 0?!1:Y.s9;this.videoId=d;this.status=q;this.videoDuration=T;this.tP=e;this.s9=Y}; iyH=function(d,q,T,Y,e){this.videoId=d;this.qe=q;this.U=T;this.bytesDownloaded=Y;this.G=e}; pP=function(d){this.G=d;this.offset=0}; Z9=function(d){if(d.offset>=d.G.totalLength)throw Error();return FJ(d.G,d.offset++)}; Ie6=function(d,q){q=q===void 0?!1:q;var T=Z9(d);if(T===1){q=-1;for(T=0;T<7;T++){var Y=Z9(d);q===-1&&Y!==255&&(q=0);q>-1&&(q=q*256+Y)}return q}Y=128;for(var e=0;e<6&&Y>T;e++)T=T*256+Z9(d),Y*=128;return q?T:T-Y}; mGg=function(d){try{var q=Ie6(d,!0),T=Ie6(d,!1);return{id:q,size:T}}catch(Y){return{id:-1,size:-1}}}; S$1=function(d){for(var q=new pP(d),T=-1,Y=0,e=0;!Y||!e;){var U=mGg(q),b=U.id;U=U.size;if(b<0)return;if(b===176){if(U!==2)return;Y=q.n3()}else if(b===186){if(U!==2)return;e=q.n3()}b===374648427?T=q.n3()+U:b!==408125543&&b!==174&&b!==224&&q.skip(U)}q=g5(d,0,T);T=new DataView(q.buffer);T.setUint16(Y,3840);T.setUint16(e,2160);Y=new e2([q]);Uv(Y,d);return Y}; lej=function(d,q,T){var Y=this;this.loader=d;this.policy=q;this.S=T;this.logger=new g.cb("dash");this.U=[];this.G=null;this.yv=-1;this.K=0;this.z2=NaN;this.lr=0;this.j=NaN;this.B=this.aU=0;this.AF=-1;this.dO=this.T=this.X=this.rO=null;this.Fw=this.xx=NaN;this.L=this.UD=this.qk=this.Bv=null;this.kx=!1;this.RU=this.timestampOffset=0;this.fC={uN:function(){return Y.U}}; if(this.policy.T){var e=this.S,U=this.policy.T;this.policy.Fw&&d.oU("atv",{ap:this.policy.Fw});this.L=new h5(this.policy,e,function(b,J,F){Oz(d,new A5(Y.policy.T,2,{tP:new iyH(U,b,e.info,J,F)}))}); this.L.B.promise.then(function(b){Y.L=null;b===1?Oz(d,new A5(Y.policy.T,b)):Y.loader.oU("offlineerr",{status:b.toString()})},function(b){var J=(b.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); b instanceof jM&&!b.G?(Y.logger.info(function(){return"Assertion failed: "+J}),Y.loader.oU("offlinenwerr",{em:J}),nP(Y),Oz(d,new A5(Y.policy.T,4))):(Y.logger.info(function(){return"Failed to write to disk: "+J}),Y.loader.oU("dldbwerr",{em:J}),nP(Y),Oz(d,new A5(Y.policy.T,4,{s9:!0})))})}}; vwn=function(d){return d.U.length?d.U[0]:null}; owf=function(d,q){return d.U.some(function(T){return T.info.sD===q})}; Y4Q=function(d,q,T,Y){Y=Y===void 0?0:Y;if(d.T){var e=d.T.U+d.T.j;if(T.info.U>0)if(T.info.sD===d.T.sD&&T.info.U=0&&d.T.sD>=0&&!eu(d.T,T.info))throw new g.CW("improper_continuation",d.T.jt(),T.info.jt());EV7(d.T,T.info)||rf(d,"d")}else if(T.info.U>0)throw new g.CW("continuation_of_null",T.info.jt());d.T=T.info;d.S=T.info.G;if(T.info.U===0){if(d.G)if(!d.loader.isOffline()||d.policy.PR)d.loader.oU("slice_not_fully_processed", {buffered:d.G.info.jt(),push:T.info.jt()});else throw new g.CW("slice_not_fully_processed",d.G.info.jt(),T.info.jt());t5(d);d.aU=Y}else{if(d.aU&&Y&&d.aU!==Y)throw d=new g.CW("lmt_mismatch",T.info.sD,d.aU,Y),d.level="WARNING",d;!T.info.G.gr()&&d.X&&(Y=T.info,e=d.X.O5,Y.L="updateWithEmsg",Y.sD=e)}if(d.G){Y=g.Al(d.G,T);if(!Y)throw new g.CW("failed_to_merge",d.G.info.jt(),T.info.jt());d.G=Y}else d.G=T;a:{T=g.Ce(d.G.info.G.info);if(d.G.info.type!==3){if(!d.G.info.S)break a;d.G.info.type===6?Vu7(d,q,d.G): ddj(d,d.G);d.G=null}for(;d.G;){Y=d.G.U.totalLength;if(d.yv<=0&&d.K===0){var U=d.G.U,b=-1;e=-1;if(T){for(var J=0;J+80))break;if(x!==408125543)if(x===524531317)J=!0,R>=0&&(e=U.n3()+R,F=!0);else{if(J&&(x===160||x===163)&&(b<0&&(b=N),F))break;x===163&&(b=Math.max(0,b),e=U.n3()+R);if(x===160){b<0&&(e=b=U.n3()+ R);break}U.skip(R)}}b<0&&(e=-1)}if(b<0)break;d.yv=b;d.K=e-b}if(d.yv>Y)break;d.yv?(Y=q4I(d,d.yv),Y.S&&T6X(d,Y),Vu7(d,q,Y),Bo(d,Y),d.yv=0):d.K&&(Y=q4I(d,d.K<0?Infinity:d.K),d.K-=Y.U.totalLength,Bo(d,Y))}}d.G&&d.G.info.S&&(Bo(d,d.G),d.G=null)}; ddj=function(d,q){!q.info.G.gr()&&q.info.U===0&&(g.Ce(q.info.G.info)||q.info.G.info.fz())&&e0Q(q);if(q.info.type===1)try{T6X(d,q),ehH(d,q)}catch(e){g.Zz(e);var T=bP(q.info);T.hms="1";d.loader.handleError("fmt.unparseable",T||{},1)}T=q.info.G;T.u5(q);d.L&&PPX(d.L,q);if(T.pj()&&d.policy.G)a:{d=d.loader.vv;q=q.info.clipId;T=g.DB(T.info,d.aN);if(q){var Y=SL({itag:T.itag,lmt:d.aN?0:T.lmt||0,xtags:T.xtags});if(d.AF[Y])break a;d.AF[Y]=q}d.xx.push(T)}}; nej=function(d,q,T){if(d.U.length!==0&&(T||d.U.some(function(U){return U.info.T=G0(b)+J):q=d.getDuration()>=b.getDuration(),q=!q;q&&XxN(T)&&(q=d.rO,KP?(J=TCI(T),b=1/J,J=G0(d,J),q=G0(q)+b-J):q=q.getDuration()- d.getDuration(),q=1+q/T.info.duration,VPD(g.ad(T),q))}else{b=!1;d.X||(e0Q(T),T.G&&(d.X=T.G,b=!0,e=T.info,U=T.G.O5,e.L="updateWithEmsg",e.sD=U,e=T.G,e.qQ&&(U=d.S.index,U.U=!e.qQ,U.j="emsg"),e=T.info.G.info,U=g.ad(T),g.Ce(e)?EK(U,1701671783):e.fz()&&r0([408125543],307544935,U)));a:if((e=O$(T,d.policy.ev))&&YXn(T))J=Jj2(d,T),d.B+=J,e-=J,d.lr+=e,d.j=d.policy.fp?d.j+e:NaN;else{if(d.policy.fh){if(U=F=d.loader.Xt(g.py(T),1),d.j>=0&&T.info.type!==6){if(d.policy.fp&&isNaN(d.xx)){g.OL(new g.CW("Missing duration while processing previous chunk", T.info.jt()));d.loader.isOffline()&&!d.policy.PR||s9Q(d,T,U);rf(d,"m");break a}Y=F-d.j;var N=Y-d.B,R=T.info.sD,x=d.dO?d.dO.sD:-1,y=d.Fw,h=d.xx,H=d.policy.u3&&Y>d.policy.u3,a=Math.abs(N)>10,p=Math.abs(d.j-U)<1E-7;if(Math.abs(N)>1E-4){d.RU+=1;var t=(J=d.X)==null?void 0:moQ(J);J={audio:""+ +d.JE(),sq:R.toFixed(),sliceStart:F,lastSq:x.toFixed(),lastSliceStart:y,lastSliceDuration:h,totalDrift:(Y*1E3).toFixed(),segDrift:(N*1E3).toFixed(),skipRewrite:""+ +(H||a)};if(t==null?0:t.length)J.adCpn=t[0];d.loader.handleError("qoe.avsync", J);d.AF=R}H||a||p||(U=d.j);J=Jj2(d,T,F);e-=J;d.B=Y+J}}else U=isNaN(d.j)?T.info.startTime:d.j;s9Q(d,T,U)&&(d.lr+=e,d.j=U+e,d.policy.H9&&d.RU>=d.policy.H9&&(d.RU=0,d.loader.zH({resetForRewrites:"count"})))}d.dO=T.info;d.xx=Ze(T);T.j>=0&&(d.Fw=T.j);if(b&&d.X){b=$d2(d,!0);Xo(T.info,b);d.G&&Xo(d.G.info,b);q=g.E(q);for(J=q.next();!J.done;J=q.next())J=J.value,e=void 0,d.policy.S&&J.sD!==((e=d.X)==null?void 0:e.O5)||Xo(J,b);(T.info.S||d.G&&d.G.info.S)&&T.info.type!==6||(d.UD=b,d.policy.U?(q=g8D(d.X),d.loader.DI(d.S, b,q)):(q=d.loader,q.vv.isManifestless&&FzI(q,b,null,!!d.S.info.video)),d.policy.lS||N66(d))}}ehH(d,T);d.timestampOffset&&dFf(T,d.timestampOffset)}; Bo=function(d,q){if(q.info.S){d.Bv=q.info;if(d.X){var T=d.X,Y=$d2(d,!1);T=g8D(T);d.loader.DI(d.S,Y,T);d.UD||d.policy.lS||N66(d);d.UD=null}t5(d)}d.L&&PPX(d.L,q);if(Y=d.N1())if(Y=g.Al(Y,q,d.policy.yq,d.policy.FW)){d.U.pop();d.U.push(Y);return}d.U.push(q)}; g8D=function(d){if(d.OX()){var q=d.data["Stitched-Video-Id"]?d.data["Stitched-Video-Id"].split(",").slice(0,-1):[],T=moQ(d),Y=[];if(d.data["Stitched-Video-Duration-Us"])for(var e=g.E(d.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),U=e.next();!U.done;U=e.next())Y.push((Number(U.value)||0)/1E6);e=[];if(d.data["Stitched-Video-Start-Frame-Index"]){U=g.E(d.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var b=U.next();!b.done;b=U.next())e.push(Number(b.value)||0)}e=[]; if(d.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(U=g.E(d.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),b=U.next();!b.done;b=U.next())e.push((Number(b.value)||0)/1E6);d=new DGj(q,T,Y,e,g.S06(d),g.lbj(d))}else d=null;return d}; t5=function(d){d.G=null;d.yv=-1;d.K=0;d.X=null;d.z2=NaN;d.lr=0;d.UD=null}; rf=function(d,q){q={rst4disc:q,cd:d.B.toFixed(3),sq:d.dO?d.dO.sD:-1};d.j=NaN;d.B=0;d.AF=-1;d.dO=null;d.Fw=NaN;d.xx=NaN;d.qk=null;d.loader.oU("mdstm",q)}; ehH=function(d,q){if(d.isDrm()){if(q.info.G.info.fz()){var T=new a8(g.ad(q));if(pj(T,[408125543,374648427,174,28032,25152,20533,18402])){var Y=nj(T,!0);T=Y!==16?null:Gz(T,Y)}else T=null;Y="webm"}else q.info.K=CP6(g.ad(q)),T=uog(q.info.K),Y="cenc";T&&T.length&&(T=new ao(T,Y),d.policy.ZD&&g.Ce(q.info.G.info)&&(Y=UIg(g.ad(q)))&&(T.U=Y),T.fz=q.info.G.info.fz(),q.G&&q.G.cryptoPeriodIndex&&(T.cryptoPeriodIndex=q.G.cryptoPeriodIndex),q.G&&q.G.U&&(T.G=q.G.U),d.loader.Wq(T))}}; N66=function(d){var q=d.X,T=iwj(q);T&&(T.startSecs+=d.z2,d.loader.rV(d.S,T,q.O5,q.OX()))}; $d2=function(d,q){var T,Y=d.X;if(T=iwj(Y))T.startSecs+=d.z2;return new d0(Y.O5,d.z2,q?Y.W3:d.lr,Y.ingestionTime,"sq/"+Y.O5,void 0,void 0,q,T)}; s9Q=function(d,q,T){if(!V7j(q,T))return q=bP(q.info),q.smst="1",d.loader.handleError("fmt.unparseable",q||{},1),!1;isNaN(d.z2)&&(d.z2=T);return!0}; Jj2=function(d,q,T){var Y=0;if(q.info.G.info.fz()&&!YXn(q))return 0;if(d.rO&&!d.JE()){var e=0;T&&g.Ce(q.info.G.info)?e=T-d.j:q.info.G.info.fz()&&(e=d.B);var U=q.info.sD;T=O$(q,d.policy.ev);var b=d.rO;var J=b.AF;b=b.B;var F=Math.abs(b-e)>.02;if((U===J||U>J&&U>d.AF)&&F){Y=Math.max(.95,Math.min(1.05,(T-(b-e))/T));if(g.Ce(q.info.G.info))VPD(g.ad(q),Y);else if(q.info.G.info.fz()&&(U=e-b,!g.Ce(q.info.G.info)&&(q.info.G.info.fz(),Y=new a8(g.ad(q)),J=q.S?Y:new a8(new DataView(q.info.G.G.buffer)),O$(q,!0)))){var N= U*1E3,R=kk(J);J=Y.pos;Y.pos=0;if(Y.G.getUint8(Y.pos)===160||Pt(Y))if(OK(Y,160))if(nj(Y,!0),OK(Y,155)){if(U=Y.pos,F=nj(Y,!0),Y.pos=U,N=N*1E9/R,R=tu(Y),N=R+Math.max(-R*.7,Math.min(R,N)),N=Math.sign(N)*Math.floor(Math.abs(N)),!(Math.ceil(Math.log(N)/Math.log(2)/8)>F)){Y.pos=U+1;for(U=F-1;U>=0;U--)Y.G.setUint8(Y.pos+U,N&255),N>>>=8;Y.pos=J}}else Y.pos=J;else Y.pos=J;else Y.pos=J}Y=O$(q,d.policy.ev);Y=T-Y}Y&&q.info.G.info.fz()&&d.loader.oU("webmDurationAdjustment",{durationAdjustment:Y,videoDrift:e+Y, audioDrift:b})}return Y}; XxN=function(d){return d.info.G.gr()&&d.info.sD===d.info.G.index.nC()}; G0=function(d,q){q=(q=q===void 0?0:q)?Math.round(d.timestampOffset*q)/q:d.timestampOffset;d.S.T&&q&&(q+=d.S.T.G);return q+d.getDuration()}; Rhn=function(d,q){q<0||(d.U.forEach(function(T){dFf(T,q)}),d.timestampOffset=q)}; dK=function(d,q,T,Y,e){hk.call(this,T,e);var U=this;this.policy=d;this.formatId=q;this.cA=Y;this.lastError=null;this.S$=function(){U.JF()||(U.cA.vG.has(U.formatId)?(U.isComplete()||U.G.start(),fz(U.cA,U.formatId)&&U.Om(2),U.cA.Zh(U.formatId)&&(KUQ(U.cA,U.formatId)?U.XC(4):(U.lastError="net.closed",U.XC(5)))):(U.lastError="player.exception",U.XC(5)))}; this.G=new g.f9(function(){U.isComplete()||(U.lastError="net.timeout",U.XC(5))},1E3); this.G.start();ruH(this.cA,this.formatId,this.S$);g.ML(this.S$)}; LP=function(d,q,T,Y){g.W.call(this);var e=this;this.loader=d;this.policy=q;this.G=T;this.timing=Y;this.logger=new g.cb("dash");this.j=[];this.rO=[];this.U=this.RN=null;this.qk=!1;this.aU=this.RU=0;this.X=-1;this.yv=!1;this.z2=-1;this.dO=null;this.UD=NaN;this.lr=[];this.fC={K7:function(){return e.T}, QZw:function(){return e.j}, Eyx:function(){return e.B}}; this.T=new lej(d,q,T);this.policy.G&&(this.B=new oz(this.T,this.loader.getManifest(),this.policy,function(U){e.policy.aZ&&e.oU("buftl",U)})); this.policy.vF&&(this.K=new x_(this));this.Vv=T.info.Vv;this.L=this.policy.UD?!1:T.hO();this.isManifestless=T.hO();this.S=this.L;g.C(this,this.dO)}; k_=function(d,q,T){T=T===void 0?!1:T;q&&KP&&Rhn(d.T,q.zI());if(!T){var Y;(Y=d.B)==null||AFg(Y)}d.RN=q;(q=d.B)!=null&&(q.RN=d.RN)}; Po=function(d){var q=d.RN&&d.RN.ZG();if(d.policy.M0){if((d=d.B)==null)d=void 0;else{var T;d=(T=d.j)==null?void 0:T.info}return d||null}return q}; xd1=function(d){for(var q={},T=0;T4&&d.rO.shift()}; yjf=function(d,q){if(q.Vs()){var T=q.kz();T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next())Y=Y.value,d.policy.j&&q instanceof dK&&d.oU("omblss",{s:Y.info.jt()}),CP(d,q.info.Zw,Y,q.TI())}}; CP=function(d,q,T,Y){Y=Y===void 0?0:Y;isNaN(d.UD)||(d.oU("aswm",{sq:q[0].sD,id:q[0].G.info.itag,xtag:q[0].G.info.G,ep:Date.now()-d.UD}),d.UD=NaN);switch(T.info.type){case 1:case 2:hh7(d,T);break;case 4:var e=T.info.G,U=e.IM(T),b;((b=d.U)==null?0:b.type===4)&&nVI(T.info,d.U)&&(d.U=e.IV(d.U).pop());T=g.E(U);for(e=T.next();!e.done;e=T.next())CP(d,q,e.value,Y);break;case 3:T.info.G.info.video?(e=d.timing,e.z2||(e.z2=(0,g.cj)(),g.iN("fvb_r",e.z2,e.G))):(e=d.timing,e.X||(e.X=(0,g.cj)(),g.iN("fab_r",e.X, e.G)));Y4Q(d.T,q,T,Y);d.policy.G&&HOI(d);break;case 6:Y4Q(d.T,q,T,Y),d.U=T.info}}; hh7=function(d,q){if(q.info.type===1)if(q.info.G.info.video){var T=d.timing;T.aU||(T.aU=(0,g.cj)(),g.iN("vis_r",T.aU,T.G))}else T=d.timing,T.B||(T.B=(0,g.cj)(),g.iN("ais_r",T.B,T.G));ddj(d.T,q);d=d.loader;d.videoTrack.G.pj()&&d.audioTrack.G.pj()&&d.policy.G&&!d.vv.aN&&(q=d.audioTrack.getDuration(),T=d.videoTrack.getDuration(),Math.abs(q-T)>1&&d.oU("trBug",{af:""+g.DB(d.audioTrack.G.info,!1),vf:""+g.DB(d.videoTrack.G.info,!1),a:""+q,v:""+T}))}; sj=function(d){return vwn(d.T)}; HOI=function(d){d.j.length?d.U=g.yN(g.yN(d.j).info.Zw):d.T.U.length?d.U=d.T.N1().info:d.U=Po(d)}; us=function(d,q){var T={wz:[],At:[]},Y;if((d=d.B)==null)d=void 0;else{aWI(d,d.wz,"og");cFg(d,q);aWI(d,d.wz,"trim");var e=jg1(d);q=e.wz;e=e.cK;for(var U=[],b=0;b0){var y=vH(x,F);y>=0&&(R=(x.end(y)-F+.1)*1E3)}U.push({formatId:g.DB(J.info.G.info,d.vv.aN), g4:J.info.g4,sequenceNumber:J.info.sD+d.T,Ss:N,OR:J.info.j,Wk:R})}d={wz:q,At:U}}return(Y=d)!=null?Y:T}; YI=function(d,q,T){T=T===void 0?!1:T;if(d.RN){var Y=d.RN.Zm(),e=Vb(Y,q),U=NaN,b=Po(d);b&&(U=Vb(Y,b.G.index.getStartTime(b.sD)));if(e===U&&d.U&&d.U.j&&Q97(D9(d),0))return q}d=MJH(d,q,T);return d>=0?d:NaN}; Uj=function(d,q,T){d.G.pj();var Y=MJH(d,q);if(Y>=0)return Y;var e;(e=d.B)==null||EeY(e,q,T);Y=Math;e=Y.min;var U=d.T;if(U.L)if(U=U.L,U.Or&&U.Or.type===3)U=U.Or.startTime;else if(U.j>0){var b=U.G.index;b=g.Dn(b.offsets.subarray(0,b.count),U.j*U.chunkSize);U=U.G.index.getStartTime(b>=0?b:Math.max(0,-b-2))}else U=0;else U=Infinity;q=e.call(Y,q,U);d.U=d.policy.UD?null:d.G.Fg(q).Zw[0];wf(d)&&(d.policy.di&&(T==null?void 0:T.seekSource)===60||d.RN&&d.RN.abort(),d.policy.iA&&(T=d.B)!=null&&(T.j=void 0)); d.aU=0;return d.U?d.U.startTime:q}; ZYQ=function(d){d.L=!0;d.S=!0;d.X=-1;Uj(d,Infinity)}; fP=function(d){for(var q=0,T=g.E(d.j),Y=T.next();!Y.done;Y=T.next())q+=t7j(Y.value.info);return q+=UdQ(d.T)}; is=function(d,q){q=q===void 0?!1:q;var T=d.loader.getCurrentTime(),Y=d.T.N1(),e=(Y==null?void 0:Y.info.X)||0;if((Y==null?0:Y.info.G.hO())&&!Y.info.S)if(d.policy.Pa)e=Y.info.T;else if(d.policy.VY){var U=Y.info;e=U.range?U.X:Math.min(U.startTime+Math.min(U.duration*U.U/U.G.info.Vv,U.duration)+(U.range?U.B:Math.min(U.duration,U.duration*U.j/U.G.info.Vv)),U.startTime+U.duration)}if(!d.RN)return d.policy.G&&q&&!isNaN(T)&&Y?e-T:0;if((U=Po(d))&&z0(U))return U.X;var b=d.RN.Zm(!0);if(q&&Y)return U=0,d.policy.G&& (U=T5(b,e+.02)),U+e-T;q=T5(b,T);d.policy.gQ&&U&&(Y=vH(b,T),b=vH(b,U.T-.02),Y===b&&(T=U.X-T,d.policy.j&&T>q+.02&&d.oU("abh",{bh:q,bhtls:T}),q=Math.max(q,T)));return q}; cj_=function(d){var q=Po(d);return q?q.X-d.loader.getCurrentTime():0}; E87=function(d,q){if(d.j.length){if(d.j[0].info.Zw[0].startTime<=q)return;TM(d)}for(var T=d.T,Y=T.U.length-1;Y>=0;Y--)T.U[Y].info.startTime>q&&T.U.pop();HOI(d);d.U&&q=0;b--){var J=e.U[b];J.info.sD>=q&&(e.U.pop(),e.j-=O$(J,e.policy.ev),U=J.info)}U&&(e.T=e.U.length>0?e.U[e.U.length-1].info:e.qk,e.U.length!==0||e.T||rf(e,"r"));e.loader.oU("mdstm",{rollbk:1,itag:U?U.G.info.itag:"",popped:U?U.sD:-1,sq:q,lastslc:e.T?e.T.sD:-1,lastfraget:e.j.toFixed(3)});if(d.policy.G)return d.U=null,!0;Y>T?Uj(d,Y):d.U=d.G.UX(q-1,!1).Zw[0]}catch(F){return q=hQ(F),q.details.reason="rollbkerr", d.loader.handleError(q.errorCode,q.details,q.severity),!1}return!0}; SM=function(d,q){var T;for(T=0;T0?T||q.sD>=d.z2:T}; ls=function(d){var q;return wf(d)||z0((q=d.T.N1())==null?void 0:q.info)}; D9=function(d){var q=[],T=Po(d);T&&q.push(T);q=g.nB(q,d.T.jN());T=g.E(d.j);for(var Y=T.next();!Y.done;Y=T.next()){Y=Y.value;for(var e=g.E(Y.info.Zw),U=e.next(),b={};!U.done;b={eq:void 0},U=e.next())b.eq=U.value,Y.mR&&(q=g.Zl(q,function(J){return function(F){return!nVI(F,J.eq)}}(b))),(Yw(b.eq)||b.eq.type===4)&&q.push(b.eq)}d.U&&!M7N(d.U,g.yN(q),d.U.G.gr())&&q.push(d.U); return q}; Q97=function(d,q){if(!d.length)return!1;for(q+=1;q=q){q=U;break a}}q=e}return q<0?NaN:Q97(d,T?q:0)?d[q].startTime:NaN}; vo=function(d){return!(!d.U||d.U.G===d.G)}; j9Q=function(d){return vo(d)&&d.G.pj()&&d.U.G.info.Vvq&&d.X1080&&!d.nL&&(d.aU=36700160,d.Bv=5242880,d.RU=Math.max(4194304,d.RU),d.nL=!0);q.video.qualityOrdinal>2160&&!d.Nj&&(d.aU=104857600,d.Vv=13107200,d.Nj=!0);g.Yv(d.Mk.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?q.isEncrypted()&&g.WL()&&g.kA("samsung")&&(g.kA("kant")||g.kA("muse"))&&(d.Vv=g.Yv(d.Mk.experiments,"html5_samsung_kant_limit_max_bitrate")):q.isEncrypted()&&g.WL()&&g.kA("kant")&&(d.Vv=1310720);d.Oi!==0&&q.isEncrypted()&& (d.Vv=d.Oi);d.tW!==0&&q.isEncrypted()&&T&&(d.Vv=d.tW);q.Vv&&(d.Gw=Math.max(d.Gr,Math.min(d.RU,5*q.Vv)))}; BX=function(d){return d.G&&d.yl}; T$=function(d){return d.G&&d.Dc&&d.playbackStartPolicy}; YW=function(d,q,T,Y){d.Dc&&(d.playbackStartPolicy=q,d.Th=T,d.wQ=Y)}; qy=function(d,q,T){T=T===void 0?0:T;return g.Yv(d.Mk.experiments,q)||T}; kHI=function(d){var q=d===void 0?{}:d;d=q.zv;var T=q.zz;var Y=q.bO;var e=q.nC;q=q.XZ;this.zv=d;this.zz=T;this.bO=Y;this.nC=e;this.XZ=q}; Ctf=function(d,q){if(q<0)return!0;var T=d.nC();return q0)return 2;if(q<0)return 1;T=d.nC();return q(0,g.cj)()?0:1}; UY=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h){h=h===void 0?null:h;g.W.call(this);var H=this;this.loader=d;this.policy=q;this.videoTrack=T;this.audioTrack=Y;this.T=e;this.G=U;this.timing=b;this.S=J;this.schedule=F;this.vv=N;this.j=R;this.lr=x;this.Ie=y;this.Rg=h;this.UD=!1;this.hP="";this.Fb=null;this.MM=NaN;this.yv=!1;this.U=null;this.vr=this.K=NaN;this.XQ=this.X=0;this.logger=new g.cb("dash");this.fC={Ub:function(a,p){return H.Ub(a,p)}}; this.policy.SC>0&&(this.hP=g.RC(this.policy.SC));this.policy.t0&&(this.B=new eB(this.loader,this.policy,this.schedule),g.C(this,this.B))}; Ddj=function(d,q,T){var Y=q.U?q.U.G.zG:q.G.zG;var e=d.T,U;(U=!d.policy.Mr)||(U=SK(Y.G)===SK(Y.U));U?Y=!1:(e=w0(e,SK(Y.U)),U=6E4*Math.pow(e.T,1.6),(0,g.cj)()=e.T?(e.oU("sdai",{haltrq:U+1,est:e.T}),Y=!1):Y=e.U!==2;if(!Y||!mU(q.U?q.U.G.zG:q.G.zG,d.policy,d.T,d.loader.DL())||d.loader.isSuspended&&(!mz(d.schedule)||d.loader.zk))return!1;if(d.policy.T&&UB>=5)return g.zh(d.loader.nM),!1;if(d.vv.isManifestless){if(q.j.length>0&&q.U&&q.U.sD===-1||q.j.length>=d.policy.sQ||!d.policy.Cd&&q.j.length>0&&!d.policy.L.zz)return!1;if(q.L)return!d.vv.isLive|| !isNaN(d.MM)}if(OON(q))return d.logger.debug("Pending request with server-selectable format found"),!1;if(!q.U){if(!q.G.pj())return!1;Uj(q,d.loader.getCurrentTime())}if(sj(q)&&(q.N1()!==sj(q)||d.loader.isSuspended))return!1;e=(Y=d.policy.MJ)&&!q.j.length&&is(q,!0)=d.policy.pL)return!1;Y=q.U;if(!Y)return!0;Y.type===4&&Y.G.pj()&&(q.U=g.yN(Y.G.IV(Y)),Y= q.U);if(!Y.qQ()&&!Y.G.lG(Y))return!1;U=d.vv.uC||d.vv.T;if(d.vv.isManifestless&&U){U=q.G.index.nC();var b=T.G.index.nC();U=Math.min(U,b);if(q.G.index.YD()>0&&U>0&&Y.sD>=U)return q.z2=U,T.z2=U,!1}if(Y.G.info.audio&&Y.type===4||Y.qQ())return!1;U=!q.S&&!T.S;if(e=!e)e=Y.X,e=!!(T.U&&!z0(T.U)&&T.U.Xwxg(d,q)?(wxg(d,q),!1):(d=q.RN)&&d.isLocked()?!1:!0}; wxg=function(d,q){var T=d.G;T=T.G?T.G.iC:null;if(d.policy.rO&&T)return T.startSecs+T.sS+15;q=e6(d.loader,q);d.policy.lF>0&&(T=((0,g.cj)()-d.loader.IT)/1E3,q=Math.min(q,d.policy.lF+d.policy.Y1*T));q=d.loader.getCurrentTime()+q;return d.policy.LL&&(T=fN2(d.loader)+d.policy.LL,T=0||q.zG.w_("defrag")==="1"||q.zG.w_("otf")==="1"){q=null;break a}e=VL(0,4096)}e=new Jl([new qG(5,Y.G,e,"createProbeRequestInfo"+Y.L,Y.sD)],q.U);e.VK=T;e.G=q.G;q=e}q&&Xw(d,q)}}; Xw=function(d,q){d.loader.FO(q);var T=t7j(q),Y=d.loader.PH();T={Tq:d.schedule,mO:T,e4:xeI(d.S,T),q4:TE(q.Zw[0]),cO:lt(q.zG.G),Y4:d.policy.j,D1:function(b,J){d.loader.d0(b,J)}}; if(d.schedule.U.X){var e,U;T.D5=(((e=d.videoTrack.G)==null?void 0:e.info.Vv)||0)+(((U=d.audioTrack.G)==null?void 0:U.info.Vv)||0)}d.Fb&&(T.sD=q.Zw[0].sD,T.MM=q.MM,T.Fb=d.Fb);Y={fb:BPj(q,d.loader.getCurrentTime()),Te:d.policy.vA&&$w(q)&&q.Zw[0].G.info.video?tuX(d.j):void 0,yT:d.policy.rO,poToken:d.loader.gK(),cq:d.loader.C9(),hP:d.hP,vr:isNaN(d.vr)?null:d.vr,Rg:d.Rg,Ie:d.Ie,XQ:d.XQ,UJ:Y};return new qO(d.policy,q,T,d.T,function(b,J){try{a:{var F=b.info.Zw[0].G,N=F.info.video?d.videoTrack:d.audioTrack; if(!(b.state>=2)||b.isComplete()||b.W9()||!(!d.loader.ED||d.loader.isSuspended||is(N)>3)){var R=CeD(b,d.policy,d.T);R===1&&(d.yv=!0);zhY(d,b,R);if(b.isComplete()||b.JF()&&J<3){if(d.policy.j){var x=b.timing.Xq();x.rst=b.state;x.strm=b.xhr.wf();x.cncl=b.xhr&&b.Id.T?1:0;d.loader.oU("rqs",x)}b.m5&&d.loader.oU("sbwe3",{},!0)}if(!d.JF()&&b.state>=2){VLn(d.timing,b,F);var y=d.loader;d.vr&&b.AY&&y&&(d.vr=NaN,d.loader.DK(b.AY),d.loader.q7(),d.loader.oU("cabrUtcSeek",{mediaTimeSeconds:b.AY}));b.bY&&d.vr&&b.bY&& !b.bY.action&&(d.loader.Md(d.vr),d.vr=NaN,d.loader.oU("cabrUtcSeekFallback",{targetUtcTimeSeconds:d.vr}));b.fW&&d.loader.J3(b.fW);d.policy.LC&&(d.XQ=b.XQ);if(b.state===3){SM(N,b);$w(b.info)&&sY(d,N,F,!0);if(d.U){var h=b.info.xF();h&&d.U.RQ(b.info.Zw[0].sD,F.info.id,h)}d.loader.Yo()}else if(b.isComplete()&&b.info.Zw[0].type===5){if(b.state!==4)b.E5()&&d.loader.handleError(b.nA(),b.P$());else{var H=(b.info.Zw[0].G.info.video?d.videoTrack:d.audioTrack).j[0]||null;H&&H instanceof qO&&H.W9()&&H.UW()}b.dispose()}else{b.E5()|| iOX(d,b);var a;((a=b.Sg)==null?0:a.itagDenylist)&&d.loader.NH(b.Sg.itagDenylist);if(b.state===4)$W(d,b),d.G&&e86(d.G,b.info,d.U);else if(d.policy.pW&&b.Vs()&&!b.isComplete()&&!$W(d,b)&&!b.E5())break a;b.E5()&&(INj(d,b),isNaN(d.vr)||(d.loader.Md(d.vr),d.vr=NaN));d.policy.Ln&&!b.isComplete()?gZ(d.loader):d.loader.Yo();var p=uvn(b,d.policy,d.T);zhY(d,b,p)}}}}}catch(t){J=d.UD?1:0,d.UD=!0,b=yb(J),J=hQ(t,J),d.loader.handleError(J.errorCode,J.details,J.severity),b||d.loader.ZE()}},Y)}; iOX=function(d,q){if(q.f5&&q.state>=2&&q.state!==3){var T=q.xhr.getResponseHeader("X-Response-Itag");if(T){d.logger.debug(function(){return"Applying streamer-selected format "+T}); var Y=rl2(d.j,T),e=q.info.j;e&&(e-=Y.wG(),Y.j=!0,q.info.Zw[0].G.j=!1,Zj1(q,Y.Sd(e)),Fw(d.loader,d.videoTrack,Y),n82(d.videoTrack,Y),d.loader.q6(Y.info.video.quality),(e=q.TI())&&Y.info.lastModified&&Y.info.lastModified!==+e&&SM(d.videoTrack,q))}else q.f5=!1}}; INj=function(d,q){var T=q.info.Zw[0].G,Y=q.nA();if(lt(T.zG.G)){var e=g.pp(q.P4(),3);d.loader.oU("dldbrerr",{em:e||"none"})}e=q.info.Zw[0].sD;var U=Vh(d.G,q.info.Zw[0].T,e);Y==="net.badstatus"&&(d.X+=1);if(q.canRetry()&&Ny(d.loader)){if(!(q.info.zG.j>=d.policy.NK&&d.U&&q.info.isDecorated()&&Y==="net.badstatus"&&d.U.JI(U,e))){e=(T.info.video&&T.zG.j>1||q.v4===410||q.v4===500||q.v4===503)&&!(bs(d.j.S).size>0)&&!lt(T.zG.G);U=q.P$();var b=T.info.video?d.videoTrack:d.audioTrack;e&&(U.stun="1");d.loader.handleError(Y, U);d.JF()||(e&&(d.logger.debug(function(){return"Stunning format "+T.info.id}),Ft(d.j,T)),SM(b,q),d.loader.Yo())}}else b=1,d.U&&q.info.isDecorated()&&Y==="net.badstatus"&&d.U.JI(U,e)&&(b=0),d.vv.isLive&&q.nA()==="net.badstatus"&&d.X<=d.policy.TB*2?(PND(d.vv),d.vv.uC||d.vv.isPremiere?Jk(d.loader,0,{b$:"badStatusWorkaround"}):d.vv.T?Jk(d.loader,d.vv.rO,{b$:"badStatusWorkaround", Xt:!0}):R7(d.loader)):d.loader.handleError(Y,q.P$(),b)}; $W=function(d,q){if(d.policy.useUmp&&q.JF())return!1;try{var T=q.info.Zw[0].G,Y=T.info.video?d.videoTrack:d.audioTrack;if(d.vv.isManifestless&&Y){d.X=0;Y.L&&(q.JF(),q.isComplete()||q.Vs(),Y.L=!1);q.Dq()&&d.loader.S9.gH(1,q.Dq());var e=q.YD(),U=q.Mg();vb(d.vv,e,U)}if(q.info.q4()&&!s$(q.info))for(var b=g.E(q.kz()),J=b.next();!J.done;J=b.next())hh7(Y,J.value);for(d.loader.getCurrentTime();Y.j.length&&Y.j[0].state===4;){var F=Y.j.shift();yjf(Y,F);Y.RU=F.oh()}Y.j.length&&yjf(Y,Y.j[0]);var N=!!sj(Y);N&& q instanceof dK&&(T.info.JE()?ijQ(d.timing):zjX(d.timing));return N}catch(R){q=q.P$();q.origin="hrhs";a:{d=d.loader;T=R;if(T instanceof Error){q.msg||(q.msg=""+T.message);q.name||(q.name=""+T.name);if(T instanceof g.CW&&T.args)for(Y=g.E(Object.entries(T.args)),e=Y.next();!e.done;e=Y.next())U=g.E(e.value),e=U.next().value,U=U.next().value,q["arg"+e]=""+U;g.OL(T);if(T.level==="WARNING"){d.G2.zH(q);break a}}d.handleError("fmt.unplayable",q,1)}return!1}}; md6=function(d){var q=d.videoTrack.G.index;d.Fb=new kHI({zv:d.policy.zv,zz:d.policy.L.zz,bO:q.qc(),nC:function(){return q.nC()}, XZ:function(){return q.XZ()}})}; sY=function(d,q,T,Y){if(!(T.pj()||T.Rw()||T.j||!mU(T.zG,d.policy,d.T,d.loader.DL())||T.info.Cf==="f"||d.policy.G)){if(Y){Y=d.S;var e=T.info;Y=yFg(Y,e.video?Y.policy.WV:Y.policy.Y6,e.Vv)}else Y=0;Y=T.Sd(Y);d=Xw(d,Y);s$(Y)&&Wo(q,d);T.j=!0}}; BM=function(d,q,T,Y,e,U,b,J){g.W.call(this);var F=this;this.loader=d;this.xo=q;this.videoTrack=T;this.audioTrack=Y;this.vv=e;this.K=U;this.isAudioOnly=b;this.B=J;this.U=xp;this.yv=!1;this.logger=new g.cb("sabr");this.L=this.UD=this.lr=!1;this.videoInfos=this.X=this.K.videoInfos;this.j=this.rO=this.K.G;this.G=new eM(q,U,function(N,R){F.loader.oU(N,R)}); this.isAudioOnly&&S4Q(this,this.vv.G["0"])}; lN_=function(d,q){var T=[];q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next())T.push(g.DB(Y.value,d.vv.aN));return T}; S4Q=function(d,q,T){q!==d.T&&(d.T&&(d.yv=!0),d.T=q,d.nJ(q,d.videoTrack,T))}; VJH=function(d,q){d.logger.debug("setConstraint: "+BI(q));BX(d.xo)&&(d.UD=q.reason==="m"||q.reason==="l"?!0:!1);q.reason==="m"?q.isLocked()&&v8g(d,q.G):o8_(d,q)?KH(d,q.U,q.G):d.videoInfos=d.X;d.U=q}; o8_=function(d,q){return d.xo.ov&&q.reason==="b"||d.xo.MW&&q.reason==="l"||d.xo.tY?!1:d.xo.iq?!0:q.reason==="l"||q.reason==="b"||q.reason==="o"}; diD=function(d,q){return q.isLocked()&&d.G.U||d.U===void 0?!1:q.equals(d.U)}; qmf=function(d,q){var T,Y=(T=d.T)==null?void 0:T.info.video.qualityOrdinal;return d.yv?!0:d.T?q!==Y?!0:!d.G.U||d.xo.Vt&&d.G.G===d.T.info.itag?!1:!0:!1}; v8g=function(d,q){var T=d.G.G;if(T){d.videoInfos=d.X;var Y=g.QN(d.videoInfos,function(e){return e.id===T}); Y&&Y.video.qualityOrdinal===q?d.videoInfos=[Y]:(Y=d.videoInfos.map(function(e){return e.id}),d.loader.oU("sabrpf",{pfid:""+T, vfids:""+Y.join(".")}),KH(d,q,q),Xt(d.G,""))}else KH(d,q,q)}; KH=function(d,q,T){d.videoInfos=d.X;d.videoInfos=g.Zl(d.videoInfos,function(Y){return Y.video.qualityOrdinal>=q&&Y.video.qualityOrdinal<=T})}; TnH=function(d,q,T){if(d.B){var Y=g.Zl(d.j,function(e){return e.id===d.B}); return G$(Y,T).includes(q)}Y=g.Zl(d.j,function(e){var U;return!((U=e.DQ)==null||!U.isDefault)}); return Y.length>0?G$(Y,T).includes(q):G$(d.j,T).includes(q)}; G$=function(d,q){return d.map(function(T){return SL(g.DB(T,q))})}; YmQ=function(d){var q;if((q=d.U)==null?0:q.isLocked())return d.videoInfos;var T=bs(d.G);q=g.Zl(d.videoInfos,function(Y){return Y.Vv>d.xo.Vv?!1:!T.has(Y.id)}); FFH(d.G)&&(q=g.Zl(q,function(Y){return Y.video.width<=854&&Y.video.height<=480})); return q}; Ui6=function(d,q,T){var Y=d.vv,e=d.G2.getVideoData(),U=d.Wj,b=cu_({Mk:e.C(),G2:d.G2,o8:d.o8,xo:d.xo,gE:d.gE,SI:d.SI,lX:d.lX,Ju:d.Ju,OZ:d.OZ,isPrefetch:d.isPrefetch,yF:d.yF,sabrLicenseConstraint:e.sabrLicenseConstraint,ph:d.ph,jd:d.jd,Hh:d.Hh,un:d.un,Ys:!!U,authorizedFormats:e.authorizedFormats}),J=Kz(e,d.UJ,d.nextRequestPolicy,d.AD,d.pD,d.Qf,d.XP);T&&q&&(T=J.zD?J.zD.map(function(x){return x.type}):[],q("sabr",{stmctxt:T.join("_"), unsntctxt:J.B6?J.B6.join("_"):""}));q=d.g0;T=d.Bj;if(T===void 0&&q===void 0){var F;T=eqX(Y.aN,(F=d.j6)==null?void 0:F.video);var N;q=eqX(Y.aN,(N=d.j6)==null?void 0:N.audio)}if(e.Rg)var R=e.Rg;e={zd:b,At:d.At,g0:q,Bj:T,Wj:U,videoPlaybackUstreamerConfig:R,Ti:J};d.Gs&&(e.Gs=d.Gs);e.wz=d.wz;e.rb=Y.xx;return e}; eqX=function(d,q){return q?[g.DB(q.info,d)]:[]}; LH=function(d,q,T){var Y=this;this.requestType=d;this.zG=q;this.yp=T;this.U=null;this.fC={OWf:function(){var e;return(e=Y.data)==null?void 0:e.isPrefetch}, pD:function(){var e;return(e=Y.data)==null?void 0:e.pD}}}; u0N=function(d,q,T){q=i8(d.zG,bID(d,q,T),q);d.l8()&&q.set("probe","1");return q}; bID=function(d,q,T){d.VK===void 0&&(d.VK=d.zG.VK(q,T));return d.VK}; XT2=function(d){var q,T;return((q=d.G)==null?void 0:(T=q.zd)==null?void 0:T.cg)||0}; JJX=function(d){var q,T;return!!((q=d.G)==null?0:(T=q.zd)==null?0:T.ph)}; snQ=function(d){var q={},T=[],Y=[];if(!d.data)return q;for(var e=0;e0;F--)T.push(J)}T.length!==b?q.error=!0:(U=T.slice(-U),T.length=e,rJ7(q,T,U));break;case 1:rJ7(q,DM,ain);break;case 0:tZn(q, q.G&7);T=io(q,16);e=io(q,16);(T^e)!==65535&&(q.error=!0);q.output.set(q.data.subarray(q.U,q.U+T),q.j);q.U+=T;q.j+=T;break;default:q.error=!0}d.j>d.output.length&&(d.output=new Uint8Array(d.j*2),d.j=0,d.U=0,d.T=!1,d.G=0,d.register=0)}d.output.length!==d.j&&(d.output=d.output.subarray(0,d.j));return d.error?new Uint8Array(0):d.output}; rJ7=function(d,q,T){q=OIf(q);T=OIf(T);for(var Y=d.data,e=d.output,U=d.j,b=d.register,J=d.G,F=d.U;;){if(J<15){if(F>Y.length){d.error=!0;break}b|=(Y[F+1]<<8)+Y[F]<>=7;N<0;)N=q[(b&1)-N],b>>=1;else b>>=N&15;J-=N&15;N>>=4;if(N<256)e[U++]=N;else if(d.register=b,d.G=J,d.U=F,N>256){b=fH[N];b+=io(d,wZ[N]);F=nlX(d,T);J=z$[F];J+=io(d,AJY[F]);if(K86&&bT.length&&(d.error=!0);d.register|=(T[Y+1]<<8)+T[Y]<=0)return tZn(d,T&15),T>>4;for(tZn(d,7);T<0;)T=q[io(d,1)-T];return T>>4}; io=function(d,q){for(;d.G=d.data.length)return d.error=!0,0;d.register|=d.data[d.U++]<>=q;d.G-=q;return T}; tZn=function(d,q){d.G-=q;d.register>>=q}; OIf=function(d){for(var q=[],T=g.E(d),Y=T.next();!Y.done;Y=T.next())Y=Y.value,q[Y]||(q[Y]=0),q[Y]++;var e=q[0]=0;T=[];var U=0;Y=0;for(var b=1;b7&&(U+=q[b]);for(e=1;e>F&1;J=U<<4|b;if(b<=7)for(F=1<<7-b;F--;)Y[F<>=7;b--;){Y[F]||(Y[F]=-q,q+=2);var N=e&1;e>>=1;F=N-Y[F]}Y[F]=J}}return Y}; L82=function(d){var q,T,Y,e,U,b,J,F,N;return g.G(function(R){switch(R.U){case 1:if(!GFQ)throw Error("DecompressionStream is not supported");q=nO.ji();T=new DecompressionStream("gzip");Y=T.writable.getWriter();Y.write(d);Y.close();e=T.readable.getReader();U=new e2([]);case 2:return g.B(R,e.read(),5);case 5:b=R.G;J=b.value;if(F=b.done){R.tF(4);break}U.append(J);R.tF(2);break;case 4:return N=$X(U),nO.Ed("gznb",q,Math.ceil(N.byteLength/16)),R.return(N)}})}; kF6=function(d){kI.call(this,"onesie");this.u$=d;this.G={};this.T=!0;this.j=null;this.queue=new jnI(this);this.S={}}; PS2=function(d){var q=d.queue;q.G.length&&q.G[0].isEncrypted&&!q.U&&(q.G.length=0);q=g.E(Object.keys(d.G));for(var T=q.next();!T.done;T=q.next()){T=T.value;var Y=d.G[T];if(!Y.Cc){var e=d.queue;e.G.push({videoId:Y.videoId,formatId:T,isEncrypted:!1});e.U||uo(e)}}}; W8I=function(d,q){var T=q.totalLength,Y=!1;switch(d.j){case 0:d.aX(q,d.T).then(function(e){var U=d.u$;U.D$("oprr");U.playerResponse=e;U.Xo||(U.NL=!1);I7(U)},function(e){d.u$.fail(e)}); break;case 2:d.D$("ormk");q=$X(q);d.queue.decrypt(q);break;default:Y=!0}d.u$.Fu&&d.u$.oU("ombup","id.11;pt."+d.j+";len."+T+(Y?";ignored.1":""));d.j=null}; CSf=function(d,q){var T,Y,e,U,b;return g.G(function(J){switch(J.U){case 1:d.u$.D$("oprgz_s");if(!GFQ){J.tF(2);break}g.jD(J,3);return g.B(J,L82(q),5);case 5:return T=J.G,d.u$.D$("oprgz_n"),J.return(T);case 3:Y=g.nN(J),d.u$.oU("gzerr",{impl:"native",err:""+Y});case 2:if(e=d.u$.C().Pf)try{var F=nO.ji(),N=e.rZ(q),R=e,x=N!=null?N:q,y=x.byteOffset,h=x.byteLength,H=R.exports.getInflatedSize(y,h);if(H===0)throw Error("wasm_gz: bad input");var a=R.malloc(H),p=R.exports.inflateGzip(y,h,a);if(p)throw R.free(a), Error("wasm_gz: fail"+p);var t=new Uint8Array(R.exports.memory.buffer,a,H);N&&e.free(N.byteOffset);var n=e.q$(t);nO.Ed("gzwb",F,Math.ceil(n.byteLength/16));U=n;d.u$.D$("oprgz_w");return J.return(U)}catch(K){d.u$.oU("gzerr",{impl:"wasm",err:""+K})}F=nO.ji();N=g.Bn2(new g.pT1(q));nO.Ed("gzjb",F,Math.ceil(N.byteLength/16));b=N;d.u$.D$("oprgz_p");return J.return(b)}})}; uWI=function(d){return new Promise(function(q){setTimeout(q,d)})}; Di_=function(d,q){var T=d.C();T=d.t0&&T.N("html5_onesie_preload_use_content_owner");var Y=d.kt,e=Md(q.Pv.experiments,"debug_bandaid_hostname");if(e)q=PM(q,e);else if((T===void 0?0:T)&&(Y==null?0:Y.url)&&!q.U){var U=SK(new g.Ig(Y.url));q=PM(q,U)}else q=(U=q.G.get(0))==null?void 0:U.location.clone();if(q&&d.videoId){U=Bx(d.videoId);d=[];if(U)for(U=g.E(U),T=U.next();!T.done;T=U.next())d.push(T.value.toString(16).padStart(2,"0"));q.set("id",d.join(""));return q}}; wT_=function(d,q,T){T=T===void 0?0:T;var Y,e;return g.G(function(U){if(U.U==1)return Y=[],Y.push(q.load()),T>0&&Y.push(uWI(T)),g.B(U,Promise.race(Y),2);e=Di_(d,q);return U.return(e)})}; fi_=function(d,q,T,Y){Y=Y===void 0?!1:Y;d.set("cpn",q.clientPlaybackNonce);d.set("opr","1");var e=q.C();d.set("por","1");sn()||d.set("onem","1");q.startSeconds>0&&d.set("osts",""+q.startSeconds);Y||(e.N("html5_onesie_disable_partial_segments")&&d.set("oses","1"),q=e.N("html5_gapless_onesie_no_media_bytes")&&Zu(q)&&q.t0,T&&!q?(q=T.audio,d.set("pvi",T.video.join(",")),e.N("html5_onesie_disable_audio_bytes")||d.set("pai",q.join(",")),QU||d.set("osh","1")):(d.set("oad","0"),d.set("ovd","0"),d.set("oaad", "0"),d.set("oavd","0")))}; zq6=function(d,q,T,Y,e){e=e===void 0?!1:e;var U="https://youtubei.googleapis.com/youtubei/"+q.Kq.innertubeApiVersion+"/player",b=[{name:"Content-Type",value:"application/json"}];Y&&b.push({name:"Authorization",value:"Bearer "+Y});b.push({name:"User-Agent",value:g.k9()});g.Cs("EOM_VISITOR_DATA")?b.push({name:"X-Goog-EOM-Visitor-Id",value:g.Cs("EOM_VISITOR_DATA")}):(T=T.visitorData||g.Cs("VISITOR_DATA"))&&b.push({name:"X-Goog-Visitor-Id",value:T});(T=g.Cs("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&b.push({name:"X-YouTube-Lava-Device-Context", value:T});(q=Md(q.experiments,"debug_sherlog_username"))&&b.push({name:"X-Youtube-Sherlog-Username",value:q});d=QA(JSON.stringify(d));return{url:U,FY:b,postBody:d,KMD:e,sC:e}}; iIN=function(d,q,T,Y,e,U,b){var J=d.QE,F=d.D_;d=d.xpD;var N=J!==void 0&&F!==void 0,R=Y.getVideoData(),x,y=q.G.encryptedClientKey;q=N?q.iv:void 0;N=I9(T.schedule,!0);e=e||!!sn()&&N>1572864;return{innertubeRequest:{Dp2:d,jr:J,D_:F,encryptedClientKey:y,iv:q,nP5:!0,G7:!0,Fl:"DecompressionStream"in window||!e,Kfg:T.experiments.Wv("html5_use_jsonformatter_to_parse_player_response")},zd:cu_({Mk:T,G2:Y,o8:R.startSeconds*1E3}),onesieUstreamerConfig:U,vO:b,Ti:Kz(R),reloadPlaybackParams:(x=R.H1)==null?void 0: x.reloadPlaybackParams}}; Ii7=function(d,q,T,Y,e,U){var b=g.S2(d,gj),J;if(!d.sC)if(J=NnY(q,b)){var F=J.jw;J=J.signature}else J=F=q.encrypt(b),(0,g.cj)(),J=sC1(new J$D(q.G.j),J,q.iv);return iIN(F&&J?{QE:F,D_:J}:{xpD:b},q,T,Y,!!d.sC,e,U)}; miX=function(d,q,T,Y,e,U){var b,J,F;return g.G(function(N){if(N.U==1)return b=g.S2(d,gj),g.B(N,F8D(q,b),2);if(N.U!=3)return J=N.G,g.B(N,Rq2(q,J),3);F=N.G;return N.return(iIN({QE:J,D_:F},q,T,Y,!!d.sC,e,U))})}; Smn=function(d,q,T,Y,e,U){var b=g.S2(d,gj);if(b=NnY(q,b))return iIN({QE:b.jw,D_:b.signature},q,T,Y,!!d.sC,e,U)}; SB=function(d,q){g.W.call(this);var T=this;this.G2=d;this.playerRequest=q;this.logger=new g.cb("onesie");this.xhr=null;this.state=1;this.l3=new yQ;this.wN=!1;this.playerResponse="";this.PK=new yh(this);this.Og=new kF6(this);this.Xz="";this.SA=this.sR=!1;this.S4="";this.enableCompression=this.Xo=this.Iw=!1;this.Mx=[];this.O5=-1;this.MY=0;this.Pv=this.G2.C();this.videoData=this.G2.getVideoData();this.Fu=this.Pv.uF();this.UH=this.Pv.pC;this.Ge=new $i_(this.UH.G);this.Xa=this.Pv.N("html5_onesie_check_timeout"); this.aJ=new g.f9(this.zy,500,this);this.fD=new g.f9(this.vt,1E4,this);this.CJ=new g.f9(function(){if(!T.isComplete()){var Y=mc(T);T.fail(new g.xV("net.timeout",Y))}},1E3); this.vn=new g.f9(this.G2w,2E3,this);this.ow=this.G2.C9();this.NL=this.N("html5_onesie_wait_for_media_availability");g.C(this.videoData,this);g.C(this,this.aJ);g.C(this,this.fD);g.C(this,this.vn);d=E4();QU&&d&&(this.lO=new Map);this.Gx=new Map;this.Nw=new Map;this.yy=new Map;this.Xe=new Map}; CH=function(d,q){var T;return(T=d.lO)==null?void 0:T.get(q)}; vlI=function(d,q,T){var Y;return g.G(function(e){if(e.U==1)return d.D$("oprd_s"),lig(d)?g.B(e,xin(d.Ge,q,T),3):(Y=d.Ge.decrypt(q,T),e.tF(2));e.U!=2&&(Y=e.G);d.D$("oprd_c");return e.return(Y)})}; ol6=function(d){return d.N("html5_onesie_host_probing")||d.Fu?QU:!1}; I7=function(d){if(!d.playerResponse)return!1;if(d.Iw)return!0;var q=d.videoData.N("html5_onesie_audio_only_playback")&&OB(d.videoData);if(d.lO&&d.NL){if(!d.lO.has(d.Xz))return!1;var T=d.lO.get(d.Xz),Y;if(Y=T){Y=!1;for(var e=g.E(T.vG.keys()),U=e.next();!U.done;U=e.next())if(U=T.vG.get(U.value))for(var b=g.E(U.dl),J=b.next();!J.done;J=b.next())J.value.Ns>0&&(U.JE?Y=!0:q=!0);Y=!(q&&Y)}if(Y)return!1}d.D$("ofr");d.l3.resolve(d.playerResponse);if(!d.Xa){var F;(F=d.CJ)==null||F.start();d.fD.start()}return d.Iw= !0}; dRf=function(d){if(d.lO&&!d.N("html5_onesie_media_capabilities")){d.D$("ogsf_s");var q=xnf(d.G2.getVideoData(),function(Y,e){d.oU(Y,e)}),T=VZY(d.G2); q.video=bjI(T,q.video);d.D$("ogsf_c");if(q.video.length)return q;d.oU("ombspf","l."+T.U+";u."+T.G+";o."+T.j+";r."+T.reason)}}; lig=function(d,q){return d.N("html5_onesie_sync_request_encryption")||(q==null?0:q.sC)||g.an(d.Pv)&&d.N("html5_embed_onesie_use_sync_encryption")?!1:!!sn()}; mc=function(d){if(!d.VU)return{};var q=d.VU.Xq(),T;q.d=(T=d.VU.z2)==null?void 0:T.VH();q.shost=d.W0;q.ty="o";return q}; qBY=function(d,q){var T,Y;(Y=(d=(T=d.lO)==null?void 0:T.get(q))==null)||(q=d.j?!1:d.j=!0,Y=!q);return!Y}; Tdf=function(d,q,T,Y,e,U,b,J,F,N,R){g.W.call(this);var x=this;this.G2=d;this.loader=q;this.policy=T;this.audioTrack=Y;this.videoTrack=e;this.vv=U;this.Tq=b;this.Fw=J;this.j=F;this.timing=N;this.K=R;this.G=[];this.S={};this.qk=this.AF=!1;this.T=this.RU=this.lr=this.xx=this.OZ=0;this.B=null;this.yv={wz:[],At:[]};this.rO={wz:[],At:[]};this.L=null;this.X=[];this.fC={YQv:function(){return x.G}, D1f:function(){return x.S}, xfZ:function(){x.G.length=0}, P3w:function(){return x.videoData.Bv}, k3O:function(){return x.lr}, Vcw:function(y){x.lr=y}, fLg:function(y){x.T=y}, Dv:function(y){x.L=y}, mD:function(y){x.X=y}}; this.videoData=this.G2.getVideoData();this.policy.t0&&(this.dO=new eB(this.loader,this.policy,this.Tq),g.C(this,this.dO))}; URg=function(d,q){q=q===void 0?!1:q;if(YBH(d)){d.policy.X&&d.loader.oU("sabrcrq",{create:1});var T=new LH(0,d.vv.B,d);d.policy.qU>0&&d.T++;q=eVD(d,T,q);d.G.push(q);var Y;(Y=d.dO)==null||Pen(Y,d.vv.B)}}; JwH=function(d,q){var T=btj(d);if(d.policy.yH){var Y=d.yv;var e=d.rO}else Y=lo(d,d.audioTrack),e=lo(d,d.videoTrack);var U=[].concat(g.RQ(Y.wz),g.RQ(e.wz));vM(d)&&U.push.apply(U,g.RQ(d.X));var b=[].concat(g.RQ(Y.At),g.RQ(e.At)),J=d.loader.PH();if(d.policy.W$&&!d.videoData.isLivePlayback){var F=d.videoData.lengthSeconds*1E3;T>=F&&d.loader.oU("invalidSabrCmt",{cmt:T,vd:F})}var N,R;F=d.G2;var x=d.vv,y=d.U,h=d.videoData.Bv,H=d.policy,a=d.loader.IT,p=fN2(d.loader)*1E3,t=(N=d.z2)==null?void 0:N.lX;N=(R= d.z2)==null?void 0:R.Ju;var n;R=Number((n=d.j.T)==null?void 0:n.info.itag)||0;var K;n=Number((K=d.j.S)==null?void 0:K.info.itag)||0;q={G2:F,vv:x,wz:U,At:b,o8:T,nextRequestPolicy:y,AD:h,xo:H,gE:a,SI:p,lX:t,Ju:N,OZ:d.OZ,isPrefetch:q||d.loader.isSuspended,m4:R,Xv:n,UJ:J,XP:d.G2.x8()};T=d.loader.gK();U=Bx(T);T&&(q.pD=U);if(T=d.G2.Eq())q.ph=T*1E3;var P;T=d.j;U=T.lr;if(((P=T.xo)==null?0:BX(P))&&!U)for(P=g.E(T.j),b=P.next();!b.done;b=P.next())if(b.value.DQ){U=!0;break}P=BX(T.xo)&&!U?[]:lN_(T,T.j);q.g0=P; P=d.j;BX(P.xo)&&!P.UD?P=[]:(T=YmQ(P),T.length===0&&(T=P.X),P=lN_(P,T));q.Bj=P;q.Wj=vM(d)?[d.L]:void 0;d.policy.I1&&(q.Hh=XrQ(d.loader,d.audioTrack),q.un=XrQ(d.loader,d.videoTrack));if(d.policy.U){P=d.loader.getCurrentTime();Y=o7(d,Y.wz,P);e=o7(d,e.wz,P);e=Math.min(Y,e);vM(d)&&(Y=o7(d,d.X,P),d.G2.uF()&&Y0&&d.G[0].tV()&&(q.Qf=d.G[0].ju());return q}; btj=function(d){var q,T=d.policy.S&&((q=d.loader)==null?void 0:q.VN());q=d.loader.getCurrentTime()||0;q=sf2(d,q);var Y=d.loader.mz()||0;q+=Y;Y=of(d.videoData)||g.vr(d.videoData);var e=0;T?(Y&&(e=Number.MAX_SAFE_INTEGER),d.videoData.yv&&(e=Math.ceil(d.videoData.rO*1E3))):e=Math.ceil(q*1E3);return Math.min(Number.MAX_SAFE_INTEGER,e)}; vM=function(d){return d.policy.wk&&!!d.L}; sf2=function(d,q){if(d.loader.isSeeking())return q;var T=d.G2.WG();if(!T)return q;T=T.g1();if(T.length===0||oI(T,q))return q;if(!Vx(d.videoTrack,q)&&!Vx(d.audioTrack,q))return d.loader.oU("sundrn",{b:0,lt:q}),q;for(var Y=q,e=Infinity,U=0;Uq)){var b=q-T.end(U);b=20)?(d.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),q):Y}; o7=function(d,q,T){d=d.loader.mz()||0;return Ve(q,(T+d)*1E3)/1E3+T}; YBH=function(d){if(d.policy.qU>0){var q=Math.floor((0,g.cj)()/1E4);if(q===d.RU){if(d.T>=d.policy.qU){if(d.T===d.policy.qU){var T={reason:"toomanyrequests"};T.limit=d.T;d.loader.handleError("player.exception",T);d.T+=1}return!1}}else d.RU=q,d.T=0}if(d.loader.isSuspended&&d.loader.zk)return!1;if(d.UD&&(0,g.cj)()0&&(!d.policy.K||d.G.length!==1||!d.G[0].tV()))return!1;var Y;if(!(q=(Y=d.vv.B)==null||!mU(Y,d.policy,d.S,d.loader.DL())||ls(d.audioTrack)&&ls(d.videoTrack))){if(Y= d.policy.U){Y=!1;if(d.K.U===2)Y=!0;else if(d.K.U===3){btj(d);d.loader.mz();var e=us(d.audioTrack,d.loader.isSeeking()).wz;q=us(d.videoTrack,d.loader.isSeeking()).wz;var U=d.loader.getCurrentTime()||0;e=o7(d,e,U);q=o7(d,q,U);q=Math.min(e,q);U=d.K;q>=U.S?(U.oU("sdai",{haltrq:q,est:U.S}),q=!0):q=!1;q&&(Y=!0)}Y&&d.policy.X&&d.loader.oU("sabrcrq",{waitad:1})}q=Y}if(q)return!1;d.policy.yH&&(d.yv=lo(d,d.audioTrack),d.rO=lo(d,d.videoTrack));if(!d.U)return d.policy.X&&d.loader.oU("sabrcrq",{nopolicy:1}),!0; if(d.G2.Eq())return d.policy.X&&d.loader.oU("sabrcrq",{utc:1}),!0;if(d.j.L)return d.policy.X&&d.loader.oU("sabrcrq",{audio:1}),!0;if(!d.U.targetAudioReadaheadMs||!d.U.targetVideoReadaheadMs)return d.policy.X&&d.loader.oU("sabrcrq",{noreadahead:1}),!0;if(d.policy.S&&d.loader.VN())return d.policy.X&&d.loader.oU("sabrcrq",{seekToHead:1}),!0;Y=Math.min(e6(d.loader,d.audioTrack)*1E3,d.U.targetAudioReadaheadMs);q=Math.min(e6(d.loader,d.videoTrack)*1E3,d.U.targetVideoReadaheadMs);var b=Math.min(Y,q);U=is(d.audioTrack, !0)*1E3;e=is(d.videoTrack,!0)*1E3;var J=d.G2.getCurrentTime()*1E3;if(d.policy.yH){var F=Ve(d.yv.wz,J);var N=Ve(d.rO.wz,J)}else F=U,N=e;var R=Fq||Y>=0&&e.QK>Y+1)break;T=Math.max(T,e.startTimeMs+e.durationMs);Y=Math.max(Y,e.wA)}return Math.max(0,T-q)}; eVD=function(d,q,T){var Y={Tq:d.Tq,D1:function(F,N){d.G2.d0(F,N)}, q4:d.policy.Nf,Y4:d.policy.j};d.Tq.U.X&&(Y.D5=(d.videoTrack.G.info.Vv||0)+(d.audioTrack.G.info.Vv||0));d.policy.U5&&(Y.bO=d.audioTrack.G.index.qc(),Y.q4=!1);var e=bID(q,d.policy,d.S)?2:1;e!==d.lr&&(d.lr=e,gp6(d));T=JwH(d,T);if(d.policy.K&&d.policy.j&&T.AD){for(var U=e="",b=g.E(T.AD),J=b.next();!J.done;J=b.next())J=J.value,d.videoData.sabrContextUpdates.has(J)||d.policy.K&&T.Qf&&T.Qf.type===J?e+="_"+J:U+="_"+J;d.loader.oU("sabrbldrqs",{ctxts:e,misctxts:U})}!q.setData(T,d.policy,d.S)&&d.policy.K&&d.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);Y=new ik(d.policy,q,d.vv,d.S,d,Y,d.loader.C9());I3(d.timing);d.policy.X&&d.loader.oU("sabrcrq",{rn:Y.HR(),probe:q.l8()});return Y}; qZ=function(d,q){if(q.JF()||d.JF())d.policy.m1||(d.policy.S?dk(d.loader):d.loader.Yo());else{if(d.policy.j&&q.isComplete()&&q instanceof ik){var T=d.loader,Y=T.oU,e,U,b=Object.assign(q.VU.Xq(),{rst:q.state,strm:q.xhr.wf(),d:(e=q.VU.z2)==null?void 0:e.VH(),cncl:q.xhr&&q.Id.T?1:0,rqb:q.Tm,cwt:q.wP,swt:(U=q.xK)==null?void 0:U.Ok});e=Object.assign(snQ(q.info),b);Y.call(T,"rqs",e)}if(q.isComplete()&&q.l8()&&q instanceof ik)d.policy.zq?q.mq()?(q.dispose(),d.G.length===0?d.loader.Yo():(d=d.G[0],d instanceof ik&&d.W9()&&d.UW())):q.E5()&&d.loader.handleError(q.nA(),q.P$()):(q.dispose(),d.loader.Yo());else{if(q.v2())q instanceof ik&&VLn(d.timing,q),gp6(d),FJ6(d);else if(q.E5())T=d.G2.Eq(),q instanceof ik&&JJX(q.info)&&T&&d.loader.Md(T),q instanceof SB?d.G.pop():(T=1,q.canRetry()&&Ny(d.loader)&&(Ndj(d,q),T=0),d.loader.handleError(q.nA(),q.P$(),T));else{if(d.loader.isSuspended&&!q.isComplete())return;FJ6(d)}q.JF()||q instanceof SB||(q.isComplete()?T=uvn(q,d.policy,d.S):(T=CeD(q,d.policy,d.S),T===1&&(d.AF= !0)),T!==0&&(Y=new LH(1,q.info.zG),Y.VK=T===2,eVD(d,Y)));d.policy.Ln&&!q.isComplete()?gZ(d.loader):d.loader.Yo()}}}; FJ6=function(d){for(;d.G.length&&d.G[0].lQ(d.Sh());){var q=d.G.shift();RVj(d,q)}d.G.length&&RVj(d,d.G[0])}; RVj=function(d,q){q instanceof ik&&(d.aU=q);var T=new Set(q.mF(d.Sh()));T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next()){var e=Y.value;if(!(Y=!(q instanceof SB))){Y=d.j;var U=Y.vv.aN,b=G$(Y.videoInfos,U);U=TnH(Y,e,U);var J=b.includes(e);!Y.xo.xN||U||J||Y.loader.oU("sabrcpf",{fid:""+e,vfids:""+b.join("."),said:Y.B||""});Y=U||b.includes(e)}if(Y&&(Y=q.jN(e,d.Sh()),b=d.policy.wk&&iW(Y[0].G.info.mimeType),q.Vs(e,d.Sh())))for(e=q.kz(e,d.Sh()),e=g.E(e),U=e.next();!U.done;U=e.next())if(U=U.value,d.policy.j&& q instanceof SB&&d.loader.oU("omblss",{s:U.info.jt()}),b)J=d.timing,J.lr||(J.lr=(0,g.cj)(),g.iN("fcb_r",J.lr,J.G)),J=d,J.videoData.aN()&&J.L&&SL(J.L)===SL(g.DB(U.info.G.info,J.vv.aN))&&J.G2.publish("sabrCaptionsDataLoaded",U,J.mD.bind(J));else{J=U.info.G.info.JE();var F=U.info.G;if(J){var N=void 0;var R=d.j,x=(N=q.Us(d.Sh()))==null?void 0:N.token;R.L&&F!==R.S?N=!0:(R.L=!1,F!==R.S&&(R.S=F,R.nJ(F,R.audioTrack,x)),N=!1);if(N)continue}else N=void 0,S4Q(d.j,F,(N=q.Us(d.Sh()))==null?void 0:N.token);N=J? d.audioTrack:d.videoTrack;q instanceof SB&&(N.L=!1,q instanceof SB&&(J?ijQ(d.timing):zjX(d.timing)));try{CP(N,Y,U)}catch(y){U=hQ(y),d.loader.handleError(U.errorCode,U.details,U.severity),N.ZE(),d.Sc(!1,"pushSlice"),dk(d.loader)}}}}; Ndj=function(d,q){d.policy.K?d.G.splice(d.G.indexOf(q)).forEach(function(T){T.dispose()}):(d.G.pop(),q==null||q.dispose())}; xRj=function(d,q,T){for(var Y=[],e=0;e0)for(var q=g.E(d.videoData.sabrContextUpdates.keys()),T=q.next();!T.done;T=q.next()){T=T.value;var Y=void 0;((Y=d.videoData.sabrContextUpdates.get(T))==null?0:Y.sendByDefault)&&d.videoData.Bv.add(T)}if(d.policy.K&&d.G.length)for(q=g.E(d.G),T=q.next();!T.done;T=q.next())(T=T.value.ju())&&T.type&&T.sendByDefault&&d.videoData.Bv.add(T.type)}; ywj=function(d){d.policy.pC&&(d.z2=void 0,d.OZ=0)}; hVQ=function(d,q){if(q.E5()||q.JF()){var T=d.loader,Y=T.oU,e=q.state;d=d.Sh();var U,b;if((q=(U=q.lO)==null?void 0:U.get(d))==null)q=void 0;else{U=0;d=q.mF();for(var J=0;J=q.mediaTime&&g.I(d.G2.getPlayerState(),8)?(q.resolve([q.mediaTime,q.id]),d.G.delete(q.id)):(q.delay.dispose(),q.delay=new g.f9(function(){cwg(d,q)},(q.mediaTime-T)*1E3/d.G2.getPlaybackRate()),q.delay.start())}; AwD=function(d,q,T,Y){var e=this;this.j=d;this.cpn=q;this.G2=T;this.G=Y;this.U=new Map;this.S=new Map;this.L=this.B=NaN;this.X=!1;this.KA="";this.isSeeking=!1;this.K=0;this.T=new QfX(T);this.Mp=T.Mp;this.G2.subscribe("SEEK_TO",function(){e.VI()}); this.G2.subscribe("SEEK_COMPLETE",function(){auD(e)})}; Ztg=function(d,q){if(!d.isSeeking&&d.K!==q&&!isNaN(d.B)){d.K=q;var T=d.X?d.L:d.j.yg(q);(T!==d.L||d.X)&&prD(d,T,q)}}; prD=function(d,q,T){var Y=d.U.get(q),e=d.j.getStartTime(q),U=d.j.getDuration(q);d.X=!1;d.L=q;var b=e,J;((J=Y==null?void 0:Y.G)!=null?J:[d.cpn]).forEach(function(F,N){var R;N=(R=Y==null?void 0:Y.U[N])!=null?R:U;T>=b&&Te?tH1(d,U,d.U.get(U)):U===e&&tH1(d,U,d.U.get(U),Y-d.j.getStartTime(U))})}; OtH=function(d,q,T,Y){q!==d.KA&&(d.G2.oU("ssevt",{tag:d.G===0?"sstd-cr":d.G===1?"sstd-tm":d.G===2?"sstd-poll":d.G===3?"sstd-poll100":"sstd-unknown",ad:d.cpn!==q,cpn:q,st:T.toFixed(3),late:Math.round(d.isSeeking?0:(Y-T)*1E3)}),d.KA=q)}; BdN=function(d){var q=g.E(d.split("."));d=q.next().value;q=q.next().value;return[Number(d),q]}; rwQ=function(d,q,T,Y){T=q+"."+T;d.S.has(q)?d.S.get(q).push(T):d.S.set(q,[T]);d.G===1&&Epn(d.T,Y,T).then(function(e){var U=g.E(e);e=U.next().value;U=U.next().value;U=g.E(BdN(U));U.next();U=U.next().value;OtH(d,U,e,MHg(d.T))}); d.G===0&&(d.Mp.XA("transitiondetector",T),q=(Y+d.G2.mz())*1E3,d.Mp.ES([new g.Ij(q,q+5E3,{id:T,namespace:"transitiondetector",priority:9})]))}; KJ_=function(d,q,T,Y,e){this.loader=d;this.policy=q;this.schedule=T;this.Iu=Y;this.K=e;this.lr=NaN;this.U=this.L=this.T=null;this.G=this.S=this.X=this.startTimeSecs=NaN;this.j=!1;this.B=NaN}; GC2=function(d,q,T,Y,e,U){return q.Aq&&q.ST&&T===3?new KJ_(d,q,Y,e,U):null}; LJn=function(d,q){if(d.policy.N9){var T=q.info.Vv,Y=I9(d.schedule);q=q.index.qc();T=Math.max(1,Y/T);d.B=Math.round(Math.max(((T-1)*q+d.policy.qC)/T,q-d.policy.Yz)*1E3)}}; WJj=function(d,q){var T=Date.now()/1E3,Y=T-d.startTimeSecs,e=T-d.X,U=e>=d.policy.Fs,b=!1;if(U){var J=0;!isNaN(q)&&q>d.S&&(J=q-d.S,d.S=q);J/e=d.policy.Yz&&!d.j;if(!U&&!T&&kC_(d,q))return NaN;T&&(d.j=!0);a:{Y=b;T=(0,g.cj)()/1E3-(d.Iu.W4()||0)-d.L.G-d.policy.qC;U=d.U.startTime;T=U+T;if(Y){if(isNaN(q)){T6(d,NaN,"n",q);U=NaN;break a}Y=q-d.policy.If;Y0&&(J.headers=F);U&&(J.onFinish=U);return Object.keys(J).length>1? J:null}; SB2=function(d,q,T,Y,e,U,b,J){Tt()&&T.token&&(d=VH(d,{ctt:T.token,cttype:T.Yj,mdx_environment:T.mdxEnvironment}));Y.N("net_pings_low_priority")&&(q||(q={}),q.priority="low");U||J&&Y.N("nwl_skip_retry")?(q==null?q={}:it_(d,Y.N("html5_assert_cpn_with_regex")),b?uI().sendAndWrite(d,q):uI().sendThenWrite(d,q,J)):q?(it_(d,Y.N("html5_assert_cpn_with_regex")),s26(d,q)):g.rM(d,e)}; luX=function(d){for(var q=[],T=0;T0&&T>0&&!d.U&&d.j<1E7)try{d.T=d.S({sampleInterval:q,maxBufferSize:T});var Y;(Y=d.T)==null||Y.addEventListener("samplebufferfull",function(){return g.G(function(e){if(e.U==1)return g.B(e,d.stop(),2);VH_(d);g.E6(e)})})}catch(e){d.U=opD(e.message)}}; dCQ=function(d,q){var T,Y;return!!((T=window.h5vcc)==null?0:(Y=T.settings)==null?0:Y.set(d,q))}; TmI=function(){var d,q,T,Y=(d=window.h5vcc)==null?void 0:(q=d.settings)==null?void 0:(T=q.getPersistentSettingAsString)==null?void 0:T.call(q,"cpu_usage_tracker_intervals");if(Y!=null){var e;d=(e=JSON.parse(Y))!=null?e:[];e=d.filter(function(N){return N.type==="total"}).map(function(N){return N.seconds}); q=g.E(qFH);for(T=q.next();!T.done;T=q.next())T=T.value,e.indexOf(T)===-1&&d.push({type:"total",seconds:T});var U,b;(U=window.h5vcc)==null||(b=U.settings)==null||b.set("cpu_usage_tracker_intervals_enabled",1);var J,F;(J=window.h5vcc)==null||(F=J.settings)==null||F.set("cpu_usage_tracker_intervals",JSON.stringify(d))}}; YFD=function(){var d=window.H5vccPlatformService,q="";if(d&&d.has("dev.cobalt.coat.clientloginfo")&&(d=d.open("dev.cobalt.coat.clientloginfo",function(){}))){var T=d.send(new ArrayBuffer(0)); T&&(q=String.fromCharCode.apply(String,g.RQ(new Uint8Array(T))));d.close()}return q}; g.bC=function(d){g.W.call(this);var q=this;this.provider=d;this.logger=new g.cb("qoe");this.G=new Map;this.sequenceNumber=1;this.UD=NaN;this.Fd="N";this.B=this.yu=this.TW=this.lr=this.U=0;this.ev=this.aU=this.X=this.qk="";this.zq=this.RU=NaN;this.Ln=0;this.qC=-1;this.pC=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.fn=this.isEmbargoed=this.z2=this.isOffline=this.isBuffering=!1;this.gk=[];this.K=null;this.wO=this.T=this.kx=this.L=!1;this.j=-1;this.AF=!1;this.LC=new g.f9(this.xW,750,this);this.Ud= this.adCpn=this.rO=this.contentCpn="";this.adFormat=void 0;this.ST=0;this.Bv=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.zX=new Set(["gd","pw","gp"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.lF=!1;this.vF=NaN;this.dO=0;this.Qp=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.q5=!1;this.wk=new Set;this.fC={Hj:function(Y){q.Hj(Y)}, f0g:function(){return q.S}, dc:function(){return q.contentCpn}, FL5:function(){return q.rO}, reportStats:function(){q.reportStats()}, e2r:function(){return q.G.get("cat")||[]}, w_:function(Y){return q.G.get(Y)||[]}, vH2:function(){return q.G}, SQg:function(){return 0}, uQw:function(){return{adCpn:q.adCpn,Ud:q.Ud,adFormat:q.adFormat}}}; this.yv=this.provider.Pv.N("html5_qoe_relaxed_reporting");var T=g.Yv(this.provider.Pv.experiments,"html5_qoe_proto_mock_length");T&&!eO.length&&(eO=luX(T));g.C(this,this.LC);try{navigator.getBattery().then(function(Y){q.K=Y})}catch(Y){}g.UV(this,0,"vps",["N"]); d.Pv.uF()&&(this.dO=(0,g.cj)(),this.vF=g.$A(function(){var Y=(0,g.cj)(),e=Y-q.dO;e>500&&q.oU("vmlock",{diff:e.toFixed()});q.dO=Y},250)); this.provider.videoData.jj&&(this.remoteControlMode=eXg[this.provider.videoData.jj]||0);this.provider.videoData.OP&&(T=NX1(this.provider.videoData.OP),T==null?0:T.length)&&(this.remoteConnectedDevices=T);d.Pv.uF()&&(this.Fw=new DRg,g.C(this,this.Fw));T=g.Yv(d.Pv.experiments,"html5_js_self_profiler_sample_interval_ms");d=g.Yv(d.Pv.experiments,"html5_js_self_profiler_max_samples");T>0&&d>0&&(this.xx=new YN(T,d),g.C(this,this.xx))}; Xf=function(d,q,T){var Y=d.G.get(q);Y?Y.push(T):d.G.set(q,[T])}; g.UV=function(d,q,T,Y){Xf(d,T,q.toFixed(3)+":"+Y.join(":"))}; UCN=function(d,q){var T=d.adCpn||d.provider.videoData.clientPlaybackNonce,Y=d.provider.getCurrentTime(T);g.UV(d,q,"cmt",[Y.toFixed(3)]);T=Y=d.provider.tE(T);if((!d.S||d.provider.Pv.N("html5_shorts_gapless_no_gllat")&&Zu(d.provider.videoData)?0:T*1E3>d.S.Le+100)&&d.S){var e=d.S;T=e.isAd;Y=Y*1E3-e.Le;d.Xp=q*1E3-e.uFx-Y-e.j6r;e=(0,g.cj)()-Y;q=d.Xp;Y=d.provider.videoData;var U=Y.isAd();if(T||U){U=(T?"ad":"video")+"_to_"+(U?"ad":"video");var b={};Y.X&&(b.cttAuthInfo={token:Y.X,videoId:Y.videoId});b.startTime= e-q;OG(U,b);g.ZO({targetVideoId:Y.videoId,targetCpn:Y.clientPlaybackNonce},U);pU("pbs",e,U)}else e=d.provider.G2.GN(),e.X!==Y.clientPlaybackNonce?(e.S=Y.clientPlaybackNonce,e.U=q):Y.mT()||g.OL(new g.CW("CSI timing logged before gllat",{cpn:Y.clientPlaybackNonce}));d.oU("gllat",{l:d.Xp.toFixed(),prev_ad:+T});delete d.S}}; sV=function(d,q){q=q===void 0?NaN:q;q=q>=0?q:g.Jp(d.provider);var T=d.provider.G2.vS(),Y=T.Cw-(d.RU||0);Y>0&&g.UV(d,q,"bwm",[Y,(T.fL-(d.zq||0)).toFixed(3)]);isNaN(d.RU)&&T.Cw&&d.isOffline&&d.Hj(!1);d.RU=T.Cw;d.zq=T.fL;isNaN(T.bandwidthEstimate)||g.UV(d,q,"bwe",[T.bandwidthEstimate.toFixed(0)]);d.provider.Pv.uF()&&Object.keys(T.G).length!==0&&d.oU("bwinfo",T.G);if(d.provider.Pv.uF()||d.provider.Pv.N("html5_log_meminfo"))Y=Cxn(),Object.values(Y).some(function(U){return U!==void 0})&&d.oU("meminfo", Y); if(d.provider.Pv.uF()){var e;(Y=(e=d.Fw)==null?void 0:wrj(e))&&Object.values(Y).some(function(U){return U!=null})&&d.oU("cpuinfo",Y)}d.xx&&d.oU("jsprof",d.xx.flush()); d.K&&g.UV(d,q,"bat",[d.K.level,d.K.charging?"1":"0"]);e=d.provider.G2.getVisibilityState();d.qC!==e&&(g.UV(d,q,"vis",[e]),d.qC=e);UCN(d,q);(e=bVH(d.provider))&&e!==d.Ln&&(g.UV(d,q,"conn",[e]),d.Ln=e);XUj(d,q,T)}; XUj=function(d,q,T){if(!isNaN(T.fb)){var Y=T.fb;T.U96E3&&(new g.f9(d.reportStats,0,d)).start()}}; $CY=function(d){d.provider.videoData.t0&&$N(d,"prefetch");d.provider.videoData.q5&&d.oU("reload",{r:d.provider.videoData.reloadReason,ct:d.provider.videoData.q5});d.provider.videoData.kx&&$N(d,"monitor");d.provider.videoData.isLivePlayback&&$N(d,"live");QU&&$N(d,"streaming");d.provider.videoData.jj&&d.oU("ctrl",{mode:d.provider.videoData.jj},!0);if(d.provider.videoData.OP){var q=d.provider.videoData.OP.replace(/,/g,"_");d.oU("ytp",{type:q},!0)}d.provider.videoData.wL&&(q=d.provider.videoData.wL.replace(/,/g, "."),d.oU("ytrexp",{ids:q},!0));q=d.provider.videoData;var T=d.provider.Pv.N("enable_white_noise")||d.provider.Pv.N("enable_webgl_noop"),Y=g.ux(q)||g.VM(q)||g.dm(q)||g.qC(q);(T||Y)&&(T=(0,g.gk)())&&d.G.set("gpu",[T]);NC(d.provider.videoData)&&g.UV(d,g.Jp(d.provider),"dt",["1"]);d.provider.N("html5_record_is_offline_on_playback_attempt_start")&&q.cotn&&!NC(q)&&d.Hj(!0);d.provider.Pv.uF()&&(q=(0,g.cj)()-d.provider.Pv.vA,d.oU("playerage",{secs:Math.pow(1.6,Math.round(Math.log(q/1E3)/Math.log(1.6))).toFixed()})); d.T=!0;d.UD=g.$A(function(){d.reportStats()},1E4)}; F7H=function(d,q,T){var Y=g.Jp(d.provider);g4f(d,Y,q,0,T);sV(d,Y);s62(d)}; g4f=function(d,q,T,Y,e){var U=d.provider.Pv.G.cbrver;d.provider.Pv.G.cbr==="Chrome"&&/^96[.]/.test(U)&&T==="net.badstatus"&&/rc\.500/.test(e)&&NmN(d,3);d.provider.Pv.N("html5_use_ump")&&/b248180278/.test(e)&&NmN(d,4);U=d.provider.getCurrentTime(d.adCpn||d.provider.videoData.clientPlaybackNonce);Y=Y===1?"fatal":"";T=[T,Y,U.toFixed(3)];Y&&(e+=";a6s."+l9());e&&T.push(RXI(e));g.UV(d,q,"error",T);d.T=!0}; xC_=function(d,q){var T=g.Jp(d.provider);if(!d.provider.Pv.experiments.Wv("html5_refactor_sabr_video_format_selection_logging")||q.G.id!==d.qk){var Y=[q.G.id,q.U,d.qk,q.reason];q.token&&Y.push(q.token);g.UV(d,T,"vfs",Y);d.qk=q.G.id;Y=d.provider.G2.getPlayerSize();if(Y.width>0&&Y.height>0){Y=[Math.round(Y.width),Math.round(Y.height)];var e=g.Mi();e>1&&Y.push(e);g.UV(d,T,"view",Y)}d.kx||(d.provider.Pv.uF()&&$N(d,"rqs2"),d.provider.videoData.G&&LY(d.provider.videoData.G)&&d.G.set("preload",["1"]));d.kx= !0;d.T=!0}q.reason==="m"&&++d.ST===100&&NmN(d,2);g.UV(d,T,"vps",[d.Fd]);d.yv||d.reportStats(T)}; y7Y=function(d){d.j>=0||(d.provider.Pv.Je||d.provider.G2.getVisibilityState()!==3?d.j=g.Jp(d.provider):d.AF=!0)}; hX6=function(d,q,T){if(d.provider.Pv.experiments.Wv("html5_refactor_sabr_audio_format_selection_logging")){q=T.G;var Y=[q.audio&&q.video?q.pJ?q.pJ:"":q.id];q.DQ&&q.DQ.id&&Y.push(q.DQ.id);q=Y.join(";");q!==d.X&&(Y=[q,d.X,T.reason],T.token&&Y.push(T.token),g.UV(d,g.Jp(d.provider),"afs",Y),d.X=q)}else T.G.id!==d.X&&(Y=[T.G.id,d.X,T.reason],T.token&&Y.push(T.token),g.UV(d,q,"afs",Y),d.X=T.G.id)}; $N=function(d,q){Xf(d,"cat",q)}; HV_=function(d,q,T,Y,e){var U=g.Jp(d.provider);q!==1&&q!==3&&q!==5||g.UV(d,U,"vps",[d.Fd]);Xf(d,"xvt","t."+U.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+q+";np.0;c."+T+";d."+Y)}; NmN=function(d,q){d.wO||(Xf(d,"fcnz",""+q),d.wO=!0)}; RXI=function(d){/[^a-zA-Z0-9;.!_-]/.test(d)&&(d=d.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return d}; g.NZ=function(d,q,T,Y,e,U,b,J,F,N){J=J===void 0?!1:J;g.W.call(this);var R=this;this.G2=d;this.schedule=q;this.policy=T;this.vv=Y;this.yv=F;this.wk=N;this.ED=null;this.RU=this.qk=this.aU=this.UD=0;this.Uv=this.zk=this.isSuspended=!1;this.Bv="";this.zX={};this.Qp=NaN;this.lF=0;this.lr=null;this.vF=this.xx=!1;this.IT=0;this.kx=!1;this.dO=this.wO=0;this.zq=null;this.Rf=function(){return R.G2.Rf()}; this.timing=new fTN(this.wk);this.B=new Iz(this.schedule,this.policy);this.Ln=new g.f9(this.Yo,0,this);this.ev=new g.f9(this.Yo,this.policy.Ln,this);this.nM=new g.f9(this.Yo,1E3,this);this.gk=new g.f9(this.Yo,void 0,this);this.Fw=new g.f9(function(){R.isSuspended||R.Yo()},1E4,this); this.qC=new g.f9(this.D3w,250,this);this.X=this.currentTime=NaN;this.S9=new k8(5);this.z2=this.timestampOffset=NaN;this.logger=new g.cb("dash");this.LC=Infinity;this.fC={getAudioTrack:function(){return R.audioTrack}, qQv:function(){return R.videoTrack}, getManifest:function(){return R.vv}, sZr:function(){return R.U}, Yo:function(){R.Yo()}, jb:function(){R.UD=0;R.jb()}, EGU:function(y){return Ff(R,R.videoTrack,R.ED.U,y)}}; d=F&&F.mF();F&&(P86(F,this.vv,this.policy),this.z2=Date.now());this.G=new sz(this,this.B,T,this.vv,e,d);T=HyD(this.G,U,b&&b.id);this.audioTrack=new LP(this,this.policy,T.audio,this.timing);this.videoTrack=new LP(this,this.policy,T.video,this.timing);this.videoTrack.T.rO=this.audioTrack.K7();this.AF={updateend:this.rT,error:this.Rg5};g.C(this,this.Ln);g.C(this,this.ev);g.C(this,this.nM);g.C(this,this.gk);g.C(this,this.Fw);T=this.policy.I$&&this.policy.zv?!Kr7(this.videoTrack.G.info):!1;this.pC=BTN({zz:this.policy.L.zz|| T,zv:this.policy.zv&&!T,pW:this.policy.pW});this.L=GC2(this,this.policy,this.pC,this.schedule,this.S9,function(y,h){return Q6j(R,y,h)}); this.j=new mD(this,this.vv,this.policy,this.videoTrack,this.audioTrack,J);this.policy.wO&&this.policy.U&&(this.rO=new sdY(function(y,h){R.oU(y,h)})); this.AE=new VD(this,this.vv,this.videoTrack,this.audioTrack,this.policy);J=this.policy.Ja?this.G2.getVideoData().Rg:null;this.S=new UY(this,this.policy,this.videoTrack,this.audioTrack,this.zX,this.j,this.timing,this.B,this.schedule,this.vv,this.G,this.L,T,J);g.C(this,this.S);this.T=new BM(this,this.policy,this.videoTrack,this.audioTrack,this.vv,e,OB(this.G2.getVideoData()),b==null?void 0:b.id);g.C(this,this.T);VJH(this.T,U);this.U=new Tdf(this.G2,this,this.policy,this.audioTrack,this.videoTrack,this.vv, this.schedule,this.G,this.T,this.timing,this.j);g.C(this,this.U);this.K=this.G2.h1.z0.J6;this.policy.S||MfH(this);if(this.policy.R6){var x;this.fn=new AwD(this.videoTrack.G.index,(x=this.G2.getVideoData().clientPlaybackNonce)!=null?x:"",this.G2,this.policy.kx);this.policy.kx===3&&(this.q5=new g.f9(this.Mv,200,this),this.q5.start(),g.C(this,this.q5))}this.logger.debug("Created")}; MfH=function(d){var q,T;if((q=d.K)==null?0:(T=q.Sg)==null?0:T.itagDenylist){var Y;d.NH((Y=d.K)==null?void 0:Y.Sg.itagDenylist)}var e;if((e=d.K)==null?0:e.playbackStartPolicy){var U,b;YW(d.policy,(U=d.K)==null?void 0:U.playbackStartPolicy,3,(b=d.K)==null?void 0:b.HR())}if(d.policy.H1){q=d.Sh();var J;(T=q?(J=d.K)==null?void 0:J.Nw.get(q):void 0)&&d.U.EZ(T)}if(!d.vv.K){var F;J=(F=d.K)==null?void 0:F.Ks;(J==null?0:J.F5)&&(J==null?0:J.lB)&&d.vv.aN&&vb(d.vv,J.F5,J.lB)}var N;((N=d.K)==null?0:N.Xe)&&(F=d.K.Xe.get(d.Sh()|| ""))&&d.vv&&F.formatId&&(d=d.vv.j.get(SL(F.formatId)))&&(d.info.debugInfo=F.debugInfo)}; c7I=function(d,q){var T=SL(g.DB(q.G.info,d.vv.aN)),Y,e=((Y=d.yv)==null?void 0:Y.jN(T))||[];if(e.length===0)return d.oU("ombmsi",{}),!1;e=new Jl(e);if(Y=!d.policy.UD||isFinite(d.getCurrentTime())||d.G2.Eq()){a:{Y=d.getCurrentTime();e=g.E(e.Zw);for(var U=e.next();!U.done;U=e.next())if(U=U.value,U.type===3&&Y>=U.T&&Y<=U.X){Y=!0;break a}Y=!1}Y=!Y}if(Y)return d.oU("ostmf",{ct:d.getCurrentTime(),a:q.G.info.JE()}),!1;(d=d.yv)!=null&&(d.vG.get(T).pk=!0);return!0}; E47=function(d){if(!d.vv.aN)return!0;var q=d.G2.getVideoData();if(d.G2.k6())return d.oU("ombpa",{}),!1;var T,Y;if(!!((T=d.K)==null?0:(Y=T.Ks)==null?0:Y.x32)!==d.vv.uC)return d.oU("ombplmm",{}),!1;T=q.lF||q.liveUtcStartSeconds||q.wk;if(d.vv.uC&&T)return d.oU("ombplst",{}),!1;if(d.vv.K)return d.oU("ombab",{}),!1;T=Date.now();return od(d.vv)&&!isNaN(d.z2)&&T-d.z2>d.policy.hg*1E3?(d.oU("ombttl",{}),!1):d.vv.QX&&d.vv.T||!d.policy.Yt&&d.vv.isPremiere||Ct(q)!==0&&!d.policy.G||q.N("html5_disable_onesie_media_for_mosaic")&& FG(q)||q.y5()&&!q.N("html5_enable_onesie_media_for_lifa")&&q.isDaiEnabled()&&q.enableServerStitchedDai||q.N("html5_disable_onesie_media_for_lifa_eligible")&&gm(q)?!1:!0}; j6_=function(d,q){var T=q.G,Y=d.vv.aN;if(E47(d))if(d.yv&&d.yv.vG.has(SL(g.DB(T.info,Y)))){if(Y=SL(g.DB(T.info,Y)),c7I(d,q)){var e=new Jl(d.yv.jN(Y)),U=function(b){try{if(b.E5())d.handleError(b.nA(),b.P$()),SM(q,b),$w(b.info)&&sY(d.S,q,T,!0),d.Yo();else if($W(d.S,b)){var J;(J=d.j)==null||e86(J,b.info,d.lr);d.Yo()}}catch(F){b=hQ(F),d.handleError(b.errorCode,b.details,b.severity),d.ZE()}}; T.j=!0;s$(e)&&(Wo(q,new dK(d.policy,Y,e,d.yv,U)),I3(d.timing))}}else d.oU("ombfmt",{})}; a$H=function(d,q){q=q||d.videoTrack&&d.videoTrack.U&&d.videoTrack.U.startTime||d.getCurrentTime();var T=Fw,Y=d.videoTrack,e=d.G;q=e.nextVideo&&e.nextVideo.index.yg(q)||0;e.rO!==q&&(e.dO={},e.rO=q,$_(e,e.G));q=!e.G.isLocked()&&e.K>-1&&(0,g.cj)()-e.Kq.G&&q.reason==="b";Y||e||T?(d.G2.zH({reattachOnConstraint:Y?"u":e?"drm":"perf",lo:q.U,up:q.G}),d.policy.Vt||(d.T.G.U=!1)):(d.policy.Vt&&(d.T.G.U=!1),dk(d))}}else if(!Qdj(d.G,q)&&d.videoTrack){d.logger.debug(function(){return"Setting constraint: r="+q.reason+" u="+q.G}); T=d.G.G;Bmf(d,clf(d.G,q));a$H(d);Y=q.isLocked()&&q.reason==="m"&&d.G.UD;e=d.policy.Pf&&q.reason==="l"&&vo(d.videoTrack);T=T.G>q.G&&q.reason==="b";var U=d.G.AF&&!XD();Y||e||T||U?d.G2.zH({reattachOnConstraint:Y?"u":e?"drm":U?"codec":"perf"}):dk(d)}}; GJH=function(d,q,T){if((!d.ED||$x(d.ED)&&!d.policy.sx)&&!d.AE.isSeeking()&&(d.policy.G||vo(q)&&q.G.pj()&&d.G.lr)){var Y=d.getCurrentTime()+hHj(d.B,q,T);d.logger.debug(function(){return"Clearing back to "+Y.toFixed(3)}); E87(q,Y)}}; Bmf=function(d,q){q&&(d.logger.debug(function(){return"Logging new format: "+m1(q.video.info)}),L7Y(d.G2,new Y_(q.video,q.reason))); if(d.G.xx){var T=Alg(d.G,"a");d.G2.Aa(new Y_(T.audio,T.reason))}}; dk=function(d){g.zh(d.Ln)}; gZ=function(d){d.policy.Ln&&d.policy.pW&&Math.min(cj_(d.videoTrack),cj_(d.audioTrack))*1E3>d.policy.WD?g.zh(d.ev):d.Yo()}; kJH=function(d,q){var T=(0,g.cj)()-q,Y=is(d.audioTrack,!0)*1E3,e=is(d.videoTrack,!0)*1E3;d.logger.debug(function(){return"Appends paused for "+T}); if(d.policy.j&&(d.oU("apdpe",{dur:T.toFixed(),abuf:Y.toFixed(),vbuf:e.toFixed()}),T$(d.policy))){var U=li(d.B);d.oU("sdps",{ct:q,ah:Y.toFixed(),vh:e.toFixed(),mr:vs(d.B,d.Uv,U),bw:U.toFixed(),js:d.isSeeking(),re:+d.Uv,ps:(d.policy.Th||"").toString(),rn:(d.policy.wQ||"").toString()})}}; PHf=function(d){if(OON(d.videoTrack))return d.logger.debug("Pausing appends for server-selectable format"),"ssf";if(d.policy.qk&&dZ(d.videoTrack)&&dZ(d.audioTrack))return"updateEnd";if(ls(d.audioTrack)||ls(d.videoTrack)&&d.videoTrack.G.info.Cf!=="f")return"";if(d.AE.isSeeking()){var q=d.B;var T=d.videoTrack;var Y=d.audioTrack;if(q.policy.G){var e=q.policy.w4;T$(q.policy)&&(e=vs(q,!1,li(q)));q=e;T=is(Y,!0)>=q&&is(T,!0)>=q}else T.j.length||Y.j.length?(e=T.G.info.Vv+Y.G.info.Vv,e=10*(1-li(q)/e),q=Math.max(e, q.policy.w4),T=is(Y,!0)>=q&&is(T,!0)>=q):T=!0;if(!T)return"abr";T=d.videoTrack;if(T.j.length>0&&T.T.U.length===1&&vwn(T.T).info.B360);Y=T$(d.policy)&&d.policy.Se;if(!d.Uv||!Y&&T)return"";T=d.policy.K8;T$(d.policy)&&(T=vs(d.B,d.Uv,li(d.B)));T=aNg(d.videoTrack,d.getCurrentTime(),T)||aNg(d.audioTrack,d.getCurrentTime(), T);return T$(d.policy)?T?"mbnm":"":(d.videoTrack.j.length>0||d.audioTrack.j.length>0||bo(d.S,d.videoTrack,d.audioTrack)||bo(d.S,d.audioTrack,d.videoTrack))&&T?"nord":""}; W7D=function(d){if(d.L){var q=d.L.Yo(d.audioTrack,dC(d.ED.U.Zm()));q&&d.G2.seekTo(q,{Zn:!0,b$:"pollSubsegmentReadahead",Xt:!0})}}; iV2=function(d,q,T){if(d.policy.qk&&dZ(q))return!1;if(T.Ka())return!0;if(!T.ZP())return!1;var Y=sj(q);if(!Y||Y.info.type===6)return!1;var e;if(d.policy.gx||((e=d.j)==null?0:JlQ(e,q,Y.info.sD)))d.RU=0;else return d.AE.isSeeking()&&dk(d),d.RU=d.RU||(0,g.cj)(),!1;if(!Ff(d,q,T,Y.info))return!1;if(d.vv.U&&Y.info.U===0){if(e=CH1(q,T,Y)){var U=Po(q);d.oU("initchg",{it:Y.info.G.info.id,sr:!!U&&U.G===Y.info.G,ty:Y.info.type,seg:Y.info.sD})}U=g.Ce(Y.info.G.info);d.policy.V5&&U&&!e&&UF1(Y)}U=d.L&&!!d.L.T&&q.G.info.audio; e=d.vv.isManifestless||Y.S;if(!(d.vv.U&&Y.info.U!==0||e&&!U)&&uG7(d,q,T,Y))return!0;if(U)return!1;U=e6(d,q);U=d.getCurrentTime()+U;if(Y.info.T>U)return d.policy.G&&DC1(d,q),d.policy.BJ&&nej(q.T,U,!1),!1;wUn(d,q);var b;d.policy.Je&&T===((b=d.ED)==null?void 0:b.G)&&d.kx&&(T.y_()===0?(d.kx=!1,d.policy.Je=!1):d.wO=T.y_());if(!f$I(d,T,Y,q))return!1;d.policy.qk&&Y.info.qQ()?(d.G2.C().uF()&&d.oU("eosl",{ls:Y.info.jt()}),Y.isLocked=!0):(q.Ad(Y),ae1(d.G,Y.info),d.logger.debug(function(){return"Appended "+ Y.info.jt()+", buffered: "+lW(T.Zm())})); e&&zX1(d,Y.info.G.ZC);return!0}; DC1=function(d,q){q===d.videoTrack?d.qk=d.qk||(0,g.cj)():d.aU=d.aU||(0,g.cj)()}; wUn=function(d,q){q===d.videoTrack?d.qk=0:d.aU=0}; f$I=function(d,q,T,Y){var e=d.policy.vF?(0,g.cj)():0,U=T.S&&T.info.G.G||void 0,b=T.U;T.S&&(b=I$6(d,T,b)||b);var J=$X(b);b=d.policy.vF?(0,g.cj)():0;q=mCH(d,q,J,T.info,U);(Y=Y.K)!=null&&(U=T.info,e=b-e,b=(0,g.cj)()-b,!Y.U||EV7(Y.U,U)&&Y.U.sD===U.sD||Y.flush(),Y.T+=e,Y.j+=b,e=1,!Y.U&&U.U&&(e=2),yx(Y,e,q),b=Math.ceil(U.U/1024),e===2&&Y.G.add(b),Y.G.add(Math.ceil((U.U+U.j)/1024)-b),Y.U=U);d.dO=0;if(q===0)return d.xx&&(d.logger.debug("Retry succeed, back to normal append logic."),d.xx=!1,d.vF=!1),d.lF= 0,!0;if(q===2||q===5)return SFX(d,"checked",q,T.info),!1;if(q===1){if(!d.xx)return d.logger.debug("QuotaExceeded, retrying."),d.xx=!0,!1;if(!d.vF)return d.vF=!0,d.G2.seekTo(d.getCurrentTime(),{b$:"quotaExceeded",Xt:!0}),!1;T.info.eh()?(e=d.policy,e.aU=Math.floor(e.aU*.8),e.yv=Math.floor(e.yv*.8)):(e=d.policy,e.Bv=Math.floor(e.Bv*.8),e.yv=Math.floor(e.yv*.8));d.policy.G?Uz(d.T.G,T.info.G,!1):Ft(d.G,T.info.G)}d.G2.zH({reattachOnAppend:q});return!1}; I$6=function(d,q,T){var Y;if(Y=d.policy.qK&&d.ED&&!d.ED.B&&!d.G2.bk())q=q.info.G.info,Y=q.fz()&&Ke(q)&&q.video&&q.video.width<3840&&q.video.width>q.video.height;if(Y&&(d.ED.B=!0,cH('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return T=S$1(T),d.policy.j&&d.oU("sp4k",{s:!!T}),T}; SFX=function(d,q,T,Y){var e="fmt.unplayable",U=1;T===5||T===3?(e="fmt.unparseable",d.policy.G?!Y.G.info.video||bs(d.T.G).size>0||Uz(d.T.G,Y.G,!1):!Y.G.info.video||bs(d.G.S).size>0||Ft(d.G,Y.G)):T===2&&(d.lF<15?(d.lF++,e="html5.invalidstate",U=0):e="fmt.unplayable");Y=bP(Y);var b;Y.mrs=(b=d.ED)==null?void 0:Rp(b);Y.origin=q;Y.reason=T;Y.trg="appenderr";d.handleError(e,Y,U)}; FzI=function(d,q,T,Y,e){var U=d.vv;var b=d.policy.G,J=!1,F=-1,N;for(N in U.G){var R=iW(U.G[N].info.mimeType)||U.G[N].info.eh();if(Y===R)if(R=U.G[N].index,R.Zb(q.sD)){J=R;var x=q,y=J.nS(x.sD);y&&y.startTime!==x.startTime?(J.segments=[],J.jS(x),J=!0):J=!1;J?F=q.sD:!q.pending&&b&&(x=R.getDuration(q.sD),x!==q.duration&&(U.publish("clienttemp","mfldurUpdate",{itag:U.G[N].info.itag,seg:q.sD,od:x,nd:q.duration},!1),R.jS(q),J=!0))}else R.jS(q),J=!0}F>=0&&(b={},U.publish("clienttemp","resetMflIndex",(b[Y? "v":"a"]=F,b),!1));U=J;KpY(d.AE,q,Y,U);if(d.policy.wO&&d.policy.U&&(F=q.iC||null)){var h;b=(h=d.U)==null?void 0:HtD(h).requestNumber;var H;(H=d.rO)==null||$GX(H,F,b)}d.j.DI(q,T,Y,e);q.sD===d.vv.QX&&U&&Id(d.vv)&&q.startTime>Id(d.vv)&&(d.vv.rO=q.startTime+(isNaN(d.timestampOffset)?0:d.timestampOffset),d.AE.isSeeking()&&d.AE.targetTime5)return d.dO= 0,d.G2.zH({initSegStuck:1,as:Y.info.jt()}),!0}else d.dO=0,d.zq=Y;d.policy.lq&&(T.abort(),(b=q.K)!=null&&(yx(b,4),b.flush()));e=mCH(d,T,U,F,e);var N;(N=q.K)==null||KFI(N,e,F);if(e!==0)return l$D(d,e,Y),!0;Y.info.eh()?SKQ(d.timing):lTf(d.timing);d.logger.debug(function(){return"Appended init for "+Y.info.G.info.id}); zX1(d,Y.info.G.ZC);return T.e8()}; CH1=function(d,q,T){if(q.vu()==null){d=Po(d);if(!(q=!d||d.G!==T.info.G)){a:if(d=d.K,T=T.info.K,d.length!==T.length)T=!1;else{for(q=0;q1)return 6;b.dO=new g.f9(function(){var J=sj(b);d.JF()||J==null||!J.isLocked?d.G2.C().uF()&&d.oU("eosl",{delayA:J==null?void 0:J.info.jt()}):v4_(b)?(d.G2.C().uF()&&d.oU("eosl",{dunlock:J==null?void 0:J.info.jt()}),o4j(d,b===d.audioTrack)):(d.oU("nue",{ls:J.info.jt()}),J.info.lr+=1,d.ED&&d.jb())},1E4,d); d.G2.C().uF()&&d.oU("eosl",{delayS:Y.jt()});b.dO.start()}d.policy.Au&&(Y==null?void 0:Y.G)instanceof Fo&&Y.qQ()&&d.oU("poseos",{itag:Y.G.info.itag,seg:Y.sD,lseg:Y.G.index.nC(),es:Y.G.index.j});q.appendBuffer(T,Y,e)}catch(J){if(J instanceof DOMException){if(J.code===11)return 2;if(J.code===12)return 5;if(J.code===22||J.message.indexOf("Not enough storage")===0)return q=Object.assign({name:"QuotaExceededError",buffered:lW(q.Zm()).replace(/,/g,"_"),vheap:fP(d.videoTrack),aheap:fP(d.audioTrack),message:g.pp(J.message, 3),track:d.ED?q===d.ED.U?"v":"a":"u"},Cxn()),d.handleError("player.exception",q),1;g.Zz(J)}return 4}return d.ED.Zh()?3:0}; Jk=function(d,q,T){pUf(d,T.b$||"unknown");d.G2.seekTo(q,T)}; zX1=function(d,q){q&&d.G2.Wq(new ao(q.key,q.type))}; Oz=function(d,q){d.G2.FH(q)}; e6=function(d,q){if(d.xx&&!d.Uv)return 3;if(d.isSuspended)return 1;var T;if((T=d.ED)==null?0:T.ED&&T.ED.streaming===!1)return 4;T=(q.G.info.audio?d.policy.Bv:d.policy.aU)/(q.Vv*d.policy.hC);if(d.policy.Xc>0&&d.ED&&$x(d.ED)&&(q=q.G.info.video?d.ED.U:d.ED.G)&&!q.e8()){q=q.Zm();var Y=vH(q,d.getCurrentTime());Y>=0&&(q=d.getCurrentTime()-q.start(Y),T+=Math.max(0,Math.min(q-d.policy.Xc,d.policy.TE)))}d.policy.yv>0&&(T=Math.min(T,d.policy.yv));return T}; XrQ=function(d,q){return(e6(d,q)+d.policy.Vq)*q.Vv}; df2=function(d){d.Bv&&!d.isSuspended&&mz(d.schedule)&&(VfY(d,d.Bv),d.Bv="")}; VfY=function(d,q){ii(q,"cms",function(T){d.policy.j&&d.oU("pathprobe",T)},function(T){d.G2.handleError(T)})}; qcD=function(d,q){if(d.ED&&d.ED.T&&!d.ED.Zh()&&(q.fb=is(d.videoTrack),q.U=is(d.audioTrack),d.policy.j)){var T=fP(d.videoTrack),Y=fP(d.audioTrack),e=lW(d.ED.U.Zm(),"_",5),U=lW(d.ED.G.Zm(),"_",5);Object.assign(q.G,{lvq:T,laq:Y,lvb:e,lab:U})}q.bandwidthEstimate=mH(d.B);var b;(b=d.audioTrack.K)==null||b.flush();var J;(J=d.videoTrack.K)==null||J.flush();d.logger.debug(function(){return RI(q.G)})}; TRN=function(d,q){d.lr=q;d.j&&(d.j.j=q);d.lr.AX(d.videoTrack.G.info.fz());d.S.U=d.lr;d.policy.U&&(d.U.B=d.lr)}; e9N=function(d,q){if(d.ED&&d.ED.U){if(d.policy.t5){var T=tJj(d.audioTrack);if(T&&T.JE()){var Y=d.G2;if(Y.eS&&(Y.eS.G=T,T=Y.X9,T.qoe)){T=T.qoe;Y=Y.eS;var e=g.Jp(T.provider);hX6(T,e,Y)}}}d.policy.j1&&(T=tJj(d.videoTrack))&&T.eh()&&(Y=d.G2,Y.DR&&(Y.DR.G=T,T=Y.X9,T.qoe&&xC_(T.qoe,Y.DR)));q-=isNaN(d.timestampOffset)?0:d.timestampOffset;d.getCurrentTime()!==q&&d.resume();d.AE.isSeeking()&&d.ED&&!d.ED.Zh()&&(Y=d.getCurrentTime()<=q&&q=q&&Q6j(d,Y.startTime,!1)}); return T&&T.startTimed.getCurrentTime())return T.start/1E3;return Infinity}; $RY=function(d){if(d.G2.getVideoData().isLivePlayback)return!1;var q=d.G2.WG();if(!q)return!1;q=q.getDuration();if(d.ED&&d.ED.G&&d.ED.U){var T=d.getCurrentTime(),Y=d.ED.G.Zm();d=d.ED.U.Zm();Y=Y?Vb(Y,T):T;T=d?Vb(d,T):T;T=Math.min(Y,T);q=isNaN(T)?!1:T>=q-.01}else q=!1;return q}; l$D=function(d,q,T){d.policy.M7&&Zu(d.G2.getVideoData())?(d.G2.lj()||SFX(d,"sepInit",q,T.info),gWN(d.G2,"sie")):SFX(d,"sepInit",q,T.info)}; Ny=function(d){return d.G2.DL()0){var Y=T.G.shift();NZY(T,Y.info)}T.G.length>0&&(Y=T.G[0].time-(0,g.cj)(),T.U.start(Math.max(0,Y)))}},0); g.C(this,this.U);q.subscribe("widevine_set_need_key_info",this.T,this)}; NZY=function(d,q){a:{var T=q.cryptoPeriodIndex;if(isNaN(T)&&d.j.size>0)T=!0;else{for(var Y=g.E(d.j.values()),e=Y.next();!e.done;e=Y.next())if(e.value.cryptoPeriodIndex===T){T=!0;break a}T=!1}}d.publish("log_qoe",{wvagt:"reqnews",canskip:T});T||d.publish("rotated_need_key_info_ready",q)}; RQD=function(){var d={};var q=d.url;var T=d.interval;d=d.retries;this.url=q;this.interval=T;this.retries=d}; xyQ=function(d,q){this.statusCode=d;this.message=q;this.U=this.heartbeatParams=this.errorMessage=null;this.G={};this.nextFairplayKeyId=null}; yWn=function(d,q,T){T=T===void 0?"":T;g.W.call(this);this.message=d;this.requestNumber=q;this.timer=T;this.onError=this.onSuccess=null;this.G=new g.tS(5E3,2E4,.2)}; hQ_=function(d,q,T){d.onSuccess=q;d.onError=T}; Q72=function(d,q,T,Y){var e={timeout:3E4,onSuccess:function(U){if(!d.JF()){pU("drm_net_r",void 0,d.timer);var b=U.status==="LICENSE_STATUS_OK"?0:9999,J=null;if(U.license)try{J=ZV(U.license)}catch(H){g.Zz(H)}if(b!==0||J){J=new xyQ(b,J);b!==0&&U.reason&&(J.errorMessage=U.reason);if(U.authorizedFormats){b={};for(var F=[],N={},R=g.E(U.authorizedFormats),x=R.next();!x.done;x=R.next())if(x=x.value,x.trackType&&x.keyId){var y=HH7[x.trackType];if(y){y==="HD"&&U.isHd720&&(y="HD720");x.isHdr&&(y+="HDR");b[y]|| (F.push(y),b[y]=!0);var h=null;try{h=ZV(x.keyId)}catch(H){g.Zz(H)}h&&(N[g.A0(h,4)]=y)}}J.U=F;J.G=N}U.nextFairplayKeyId&&(J.nextFairplayKeyId=U.nextFairplayKeyId);U.sabrLicenseConstraint&&(J.sabrLicenseConstraint=ZV(U.sabrLicenseConstraint));U=J}else U=null;if(U)d.onSuccess(U,d.requestNumber);else d.onError(d,"drm.net","t.p;p.i")}}, onError:function(U){if(!d.JF())if(U&&U.error)U=U.error,d.onError(d,"drm.net.badstatus","t.r;p.i;c."+U.code+";s."+U.status,U.code);else d.onError(d,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){d.onError(d,"drm.net","rt.req."+d.requestNumber)}}; Y&&(e.qy="Bearer "+Y);g.f4(T,"player/get_drm_license",q,e)}; MB6=function(d,q,T,Y){g.YP.call(this);this.videoData=d;this.Pv=q;this.B=T;this.sessionId=Y;this.S={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.lr=this.UD=!1;this.j=null;this.yv=[];this.T=[];this.authorizedFormats=[];this.L=!1;this.G={};this.status="";this.X=NaN;this.U=d.S;this.cryptoPeriodIndex=T.cryptoPeriodIndex;d={};Object.assign(d,this.Pv.G);d.cpn=this.videoData.clientPlaybackNonce;this.videoData.z2&&(d.vvt=this.videoData.z2,this.videoData.mdxEnvironment&&(d.mdx_environment= this.videoData.mdxEnvironment));this.Pv.yv&&(d.authuser=this.Pv.yv);this.Pv.pageId&&(d.pageid=this.Pv.pageId);isNaN(this.cryptoPeriodIndex)||(d.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.k9()))?e[1]:"";e==="ATV"&&(d.cdt=e);this.S=d;this.S.session_id=Y;this.K=!0;this.U.flavor==="widevine"&&(this.S.hdr="1");this.U.flavor==="playready"&&(q=Number(Md(q.experiments,"playready_first_play_expiration")),!isNaN(q)&&q>=0&&(this.S.mfpe=""+q),this.K=!1);q="";g.g6(this.U)? $8(this.U)?(Y=T.U)&&(q="https://www.youtube.com/api/drm/fps?ek="+amI(Y)):(q=T.initData.subarray(4),q=new Uint16Array(q.buffer,q.byteOffset,q.byteLength/2),q=String.fromCharCode.apply(null,q).replace("skd://","https://")):q=this.U.U;this.baseUrl=q;this.fairplayKeyId=cK(this.baseUrl,"ek")||"";if(q=cK(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(q);this.yv=T.fz?[g.A0(T.initData,4)]:T.j;H8(this,{sessioninit:T.cryptoPeriodIndex});this.status="in"}; aMD=function(d,q){H8(d,{createkeysession:1});d.status="gr";pU("drm_gk_s",void 0,d.videoData.lr);d.url=cWf(d);try{d.j=q.createSession(d.B,function(T){H8(d,{m:T})})}catch(T){q="t.g"; T instanceof DOMException&&(q+=";c."+T.code);d.publish("licenseerror","drm.unavailable",1,q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}d.j&&(EWg(d.j,function(T,Y){j7f(d,T,Y)},function(T,Y,e){if(!d.JF()){Y=void 0; var U=1;g.g6(d.U)&&g.XW(d.Pv)&&d.Pv.N("html5_enable_safari_fairplay")&&e===1212433232&&(Y="ERROR_HDCP",U=d.Pv.N("html5_safari_fairplay_ignore_hdcp")?0:U);d.error("drm.keyerror",U,T,Y)}},function(){d.JF()||(H8(d,{onkyadd:1}),d.lr||(d.publish("sessionready"),d.lr=!0))},function(T){d.mL(T)}),g.C(d,d.j))}; cWf=function(d){var q=d.baseUrl;ctg(q)||d.error("drm.net",2,"t.x");if(!cK(q,"fexp")){var T=["23898307","23914062","23916106","23883098"].filter(function(e){return d.Pv.experiments.experiments[e]}); T.length>0&&(d.S.fexp=T.join())}T=g.E(Object.keys(d.S));for(var Y=T.next();!Y.done;Y=T.next())Y=Y.value,q=SMj(q,Y,d.S[Y]);return q}; j7f=function(d,q,T){if(!d.JF())if(q){H8(d,{onkmtyp:T});d.status="km";switch(T){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":AW1(d,q);return;default:d.publish("ctmp","message_type",{t:T,l:q.byteLength})}d.UD||(pU("drm_gk_f",void 0,d.videoData.lr),d.UD=!0,d.publish("newsession",d));if(Xv(d.U)&&(q=pM_(q),!q))return;q=new yWn(q,++d.requestNumber,d.videoData.lr);hQ_(q,function(Y){ZH7(d,Y)},function(Y,e,U){if(!d.JF()){var b=0; Y.G.U>=3&&(b=1,e="drm.net.retryexhausted");H8(d,{onlcsrqerr:e,info:U});d.error(e,b,U);d.shouldRetry(yb(b),Y)&&OH6(d,Y)}}); g.C(d,q);nW2(d,q)}else d.error("drm.unavailable",1,"km.empty")}; AW1=function(d,q){H8(d,{sdpvrq:1});d.X=Date.now();if(d.U.flavor!=="widevine")d.error("drm.provision",1,"e.flavor;f."+d.U.flavor+";l."+q.byteLength);else{var T={cpn:d.videoData.clientPlaybackNonce};Object.assign(T,d.Pv.G);T=g.y6("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",T);q={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, q)}),responseType:"arraybuffer"};g.je(T,q,3,500).then(wg(function(Y){Y=Y.xhr;if(!d.JF()){Y=new Uint8Array(Y.response);var e=String.fromCharCode.apply(null,Y);try{var U=JSON.parse(e)}catch(b){}U&&U.signedResponse?(d.publish("ctmp","drminfo",{provisioning:1}),U=(Date.now()-d.X)/1E3,d.X=NaN,d.publish("ctmp","provs",{et:U.toFixed(3)}),d.j&&d.j.update(Y)):(U=U&&U.error&&U.error.message,Y="e.parse",U&&(Y+=";m."+U),d.error("drm.provision",1,Y))}}),wg(function(Y){d.JF()||d.error("drm.provision",1,"e."+Y.errorCode+ ";c."+(Y.xhr&&Y.xhr.status))}))}}; Qo=function(d){var q;if(q=d.K&&d.j!=null)d=d.j,q=!(!d.G||!d.G.keyStatuses);return q}; nW2=function(d,q){d.status="km";pU("drm_net_s",void 0,d.videoData.lr);var T=new g.wM(d.Pv.Kq),Y={context:g.bI(T.config_||g.Ug())};Y.drmSystem=rWj[d.U.flavor];Y.videoId=d.videoData.videoId;Y.cpn=d.videoData.clientPlaybackNonce;Y.sessionId=d.sessionId;Y.licenseRequest=g.A0(q.message);Y.drmParams=d.videoData.drmParams;isNaN(d.cryptoPeriodIndex)||(Y.isKeyRotated=!0,Y.cryptoPeriodIndex=d.cryptoPeriodIndex);var e,U,b=!!((e=d.videoData.U)==null?0:(U=e.video)==null?0:U.isHdr());Y.drmVideoFeature=b?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(Y.context&&Y.context.client){if(e=d.Pv.G)Y.context.client.deviceMake=e.cbrand,Y.context.client.deviceModel=e.cmodel,Y.context.client.browserName=e.cbr,Y.context.client.browserVersion=e.cbrver,Y.context.client.osName=e.cos,Y.context.client.osVersion=e.cosver;Y.context.user=Y.context.user||{};Y.context.request=Y.context.request||{};d.videoData.z2&&(Y.context.user.credentialTransferTokens=[{token:d.videoData.z2,scope:"VIDEO"}]);Y.context.request.mdxEnvironment=d.videoData.mdxEnvironment|| Y.context.request.mdxEnvironment;d.videoData.pC&&(Y.context.user.kidsParent={oauthToken:d.videoData.pC});g.g6(d.U)&&(Y.fairplayKeyId=g.A0(Azj(d.fairplayKeyId)));g.rn(d.Pv,g.$4(d.videoData)).then(function(J){Q72(q,Y,T,J);d.status="rs"})}else d.error("drm.net",2,"t.r;ic.0")}; ZH7=function(d,q){if(!d.JF())if(H8(d,{onlcsrsp:1}),d.status="rr",q.statusCode!==0)d.error("drm.auth",1,"t.f;c."+q.statusCode,q.errorMessage||void 0);else{pU("drm_kr_s",void 0,d.videoData.lr);if(q.heartbeatParams&&q.heartbeatParams.url&&d.videoData.N("outertube_streaming_data_always_use_staging_license_service")){var T=d.U.U.match(/(.*)youtube.com/g);T&&(q.heartbeatParams.url=T[0]+q.heartbeatParams.url)}q.heartbeatParams&&d.publish("newlicense",q.heartbeatParams);q.U&&(d.T=q.U,d.videoData.lL||d.publish("newlicense", new RQD),d.videoData.lL=!0,d.L=D7(d.T,function(Y){return Y.includes("HDR")})); q.G&&(d.Pv.N("html5_enable_vp9_fairplay")&&$8(d.U)?(T=g.A0(Azj(d.fairplayKeyId),4),d.G[T]={type:q.G[T],status:"unknown"}):d.G=db(q.G,function(Y){return{type:Y,status:"unknown"}})); s4(d.U)&&(q.message=i4D(g.A0(q.message)));d.j&&(H8(d,{updtks:1}),d.status="ku",d.j.update(q.message).then(function(){pU("drm_kr_f",void 0,d.videoData.lr);Qo(d)||(H8(d,{ksApiUnsup:1}),d.publish("keystatuseschange",d))},function(Y){Y="msuf.req."+d.requestNumber+";msg."+g.pp(Y.message,3); d.error("drm.keyerror",1,Y)})); g.g6(d.U)&&d.publish("fairplay_next_need_key_info",d.baseUrl,q.nextFairplayKeyId);d.Pv.N("html5_enable_vp9_fairplay")&&$8(d.U)&&d.publish("qualitychange",tBI(d.T));q.sabrLicenseConstraint&&d.publish("sabrlicenseconstraint",q.sabrLicenseConstraint)}}; OH6=function(d,q){var T=q.G.getValue();T=new g.f9(function(){nW2(d,q)},T); g.C(d,T);T.start();g.BP(q.G);H8(d,{rtyrq:1})}; BZ1=function(d,q){for(var T=[],Y=g.E(Object.keys(d.G)),e=Y.next();!e.done;e=Y.next())e=e.value,T.push(e+"_"+d.G[e].type+"_"+d.G[e].status);return T.join(q)}; Kc1=function(d){var q={};q[d.status]=Qo(d)?BZ1(d,"."):d.T.join(".");return q}; G$f=function(d,q,T){var Y={};Y.isHdr=q.includes("HDR");switch(q.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||T[q]||Qo(d)&&!MZ(d,q)||(d.authorizedFormats.push(Y),T[q]=!0)}; MZ=function(d,q){for(var T in d.G)if(d.G[T].status==="usable"&&d.G[T].type===q)return!0;return!1}; LcN=function(d,q){for(var T in d.G)if(d.G[T].type===q)return d.G[T].status}; H8=function(d,q){var T=T===void 0?!1:T;RI(q);(T||d.Pv.uF())&&d.publish("ctmp","drmlog",q)}; k$7=function(d){var q=d[0];d[0]=d[3];d[3]=q;q=d[1];d[1]=d[2];d[2]=q;q=d[4];d[4]=d[5];d[5]=q;q=d[6];d[6]=d[7];d[7]=q}; tBI=function(d){return g.cR(d,"UHD2")||g.cR(d,"UHD2HDR")?"highres":g.cR(d,"UHD1")||g.cR(d,"UHD1HDR")?"hd2160":g.cR(d,"HD")||g.cR(d,"HDHDR")?"hd1080":g.cR(d,"HD720")||g.cR(d,"HD720HDR")?"hd720":"large"}; pM_=function(d){for(var q="",T=0;T'.charCodeAt(Y);d=d.j.createSession("video/mp4",q,T);return new c8(null,null,null,null,d)}; zQj=function(d,q){var T=d.X[q.sessionId];!T&&d.T&&(T=d.T,d.T=null,T.sessionId=q.sessionId,d.X[q.sessionId]=T);return T}; DyY=function(d,q){var T=d.subarray(4);T=new Uint16Array(T.buffer,T.byteOffset,T.byteLength/2);T=String.fromCharCode.apply(null,T).match(/ek=([0-9a-f]+)/)[1];for(var Y="",e=0;e19.2999?(d=T.Fc,T=T.LL,T>=d&&(T=d* .75),q=(d-T)*.5,T=new yo(q,d,d-q-T,this)):T=null;break a;case "widevine":T=new hp(q,this,d);break a;default:T=null}if(this.S=T)g.C(this,this.S),this.S.subscribe("rotated_need_key_info_ready",this.HN,this),this.S.subscribe("log_qoe",this.Yq,this);Nd(this.Pv.experiments);this.Yq({cks:this.G.getInfo()})}; IM2=function(d){var q=uwn(d.T);q?q.then(wg(function(){SY6(d)}),wg(function(T){if(!d.JF()){g.Zz(T); var Y="t.a";T instanceof DOMException&&(Y+=";n."+T.name+";m."+T.message);d.publish("licenseerror","drm.unavailable",1,Y,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(d.Yq({mdkrdy:1}),d.K=!0); d.lr&&(q=uwn(d.lr))}; vWX=function(d,q,T){d.RU=!0;T=new ao(q,T);d.Pv.N("html5_eme_loader_sync")&&(d.X.get(q)||d.X.set(q,T));lMD(d,T)}; lMD=function(d,q){if(!d.JF()){d.Yq({onInitData:1});if(d.Pv.N("html5_eme_loader_sync")&&d.videoData.j&&d.videoData.j.G){var T=d.L.get(q.initData);q=d.X.get(q.initData);if(!T||!q)return;q=T;T=q.initData;d.X.remove(T);d.L.remove(T)}d.Yq({initd:q.initData.length,ct:q.contentType});if(d.G.flavor==="widevine")if(d.z2&&!d.videoData.isLivePlayback)ai(d);else{if(!(d.Pv.N("vp9_drm_live")&&d.videoData.isLivePlayback&&q.fz)){d.z2=!0;T=q.cryptoPeriodIndex;var Y=q.G;fe7(q);q.fz||(Y&&q.G!==Y?d.publish("ctmp","cpsmm", {emsg:Y,pssh:q.G}):T&&q.cryptoPeriodIndex!==T&&d.publish("ctmp","cpimm",{emsg:T,pssh:q.cryptoPeriodIndex}));d.publish("widevine_set_need_key_info",q)}}else d.HN(q)}}; SY6=function(d){if(!d.JF())if(d.Pv.N("html5_drm_set_server_cert")||$8(d.G)){var q=d.T.setServerCertificate();q?q.then(wg(function(T){d.Pv.uF()&&d.publish("ctmp","ssc",{success:T})}),wg(function(T){d.publish("ctmp","ssce",{n:T.name, m:T.message})})).then(wg(function(){oW2(d)})):oW2(d)}else oW2(d)}; oW2=function(d){d.JF()||(d.K=!0,d.Yq({onmdkrdy:1}),ai(d))}; VBf=function(d){return d.G.flavor==="widevine"&&d.videoData.N("html5_drm_cpi_license_key")}; ai=function(d){if(d.RU&&d.K&&!d.rO){for(;d.j.length;){var q=d.j[0],T=VBf(d)?z82(q):g.A0(q.initData);if($8(d.G)&&!q.U)d.j.shift();else{if(d.U.get(T))if(d.G.flavor!=="fairplay"||$8(d.G)){d.j.shift();continue}else d.U.delete(T);fe7(q);break}}d.j.length&&d.createSession(d.j[0])}}; dZX=function(d){var q;if(q=g.WL()){var T;q=!((T=d.T.U)==null||!T.getMetrics)}q&&(q=d.T.getMetrics())&&(q=g.yA(q),d.publish("ctmp","drm",{metrics:q}))}; qVg=function(){var d=Cj2();return!(!d||d==="visible")}; YVj=function(d){var q=Tk6();q&&document.addEventListener(q,d,!1)}; e5Q=function(d){var q=Tk6();q&&document.removeEventListener(q,d,!1)}; Tk6=function(){if(document.visibilityState)var d="visibilitychange";else{if(!document[JB+"VisibilityState"])return"";d=JB+"visibilitychange"}return d}; UZQ=function(d){g.W.call(this);var q=this;this.G2=d;this.jR=0;this.X=this.U=this.S=!1;this.T=0;this.Mk=this.G2.C();this.videoData=this.G2.getVideoData();this.j=g.Yv(this.Mk.experiments,"html5_delayed_retry_count");this.G=new g.f9(function(){q.G2.U6()},g.Yv(this.Mk.experiments,"html5_delayed_retry_delay_ms")); g.C(this,this.G)}; $Zn=function(d,q,T){var Y=d.videoData.U,e=d.videoData.T,U=d.Mk.N("html5_disable_codec_fallback_for_drm")&&d.videoData.It();Zu(d.G2.getVideoData())&&d.Mk.N("html5_gapless_fallback_on_qoe_restart")&&gWN(d.G2,"pe");if((q==="progressive.net.retryexhausted"||q==="fmt.unplayable"||q==="fmt.decode")&&!d.G2.f8.S&&Y&&Y.itag==="22")return d.G2.f8.S=!0,d.jT("qoe.restart",{reason:"fmt.unplayable.22"}),d.G2.Ql(),!0;var b=!1;if(d.videoData.isExternallyHostedPodcast){if(b=d.videoData.zqD)T.mimeType=b.type,d.oU("3pp", {url:b.url});T.ns="3pp";d.G2.o6(q,1,"VIDEO_UNAVAILABLE",RI((new g.xV(q,T,1)).details));return!0}var J=d.jR+3E4<(0,g.cj)()||d.G.isActive();if(d.Mk.N("html5_empty_src")&&d.videoData.isAd()&&q==="fmt.unplayable"&&/Empty src/.test(""+T.msg))return T.origin="emptysrc",d.jT("auth",T),!0;J||bEX(d.G2.Jp())||(T.nonfg="paused",J=!0,d.G2.pauseVideo());(q==="fmt.decode"||q==="fmt.unplayable")&&(e==null?0:PH(e)||WH(e))&&(UB7(d.Mk.S,e.Cf),T.acfallexp=e.Cf,b=J=!0);!J&&d.j>0&&(d.G.start(),J=!0,T.delayed="1",--d.j); e=d.G2.loader;J||!((Y==null?0:kV(Y))||(Y==null?0:Ke(Y)))||U||(UB7(d.Mk.S,Y.Cf),b=J=!0,T.cfallexp=Y.Cf);if(!J)return X82(d,T);U=!1;d.S?d.jR=(0,g.cj)():U=d.S=!0;J=d.videoData;if(J.AF){J=J.AF.Tx();var F=Date.now()/1E3+1800;J=J6048E5&&R5f(d,"signature");return!1}; R5f=function(d,q){try{q={detail:"pr."+q},g.Qv(d.Mk)&&d.Mk.N("html5_reload_by_kabuki_app")?d.G2.o6("qoe.restart",1,void 0,RI(q),"7"):(d.jT("qoe.restart",q),window.location.reload())}catch(T){}}; yp7=function(d,q){var T=d.Mk.S;T.L=!1;T.U=!0;d.jT("qoe.restart",{e:q===void 0?"fmt.noneavailable":q,detail:"hdr"});d.G2.U6(!0)}; h5f=function(d,q,T,Y,e,U){this.videoData=d;this.G=q;this.reason=T;this.U=Y;this.token=e;this.videoId=U}; Ap=function(d,q,T){this.Pv=d;this.eb=q;this.G2=T;this.B=this.X=this.G=this.T=this.L=this.U=0;this.S=!1;this.K=g.Yv(this.Pv.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.j=new Map}; HEf=function(d,q,T){!d.Pv.N("html5_tv_ignore_capable_constraint")&&g.ho(d.Pv)&&(T=T.compose(d.e1(q)));return T}; Qi2=function(d){if(d.G2.Jp().isInline())return xp;var q;d.N("html5_exponential_memory_for_sticky")?q=SJ(d.Pv.dA,"sticky-lifetime")<.5?"auto":rj[yR()]:q=rj[yR()];return g.ZW("auto",q,!1,"s")}; cpN=function(d,q){var T,Y=MOH(d,(T=q.G)==null?void 0:T.videoInfos);T=d.G2.getPlaybackRate();return T>1&&Y?(d=q_2(d.Pv.S,q.G.videoInfos,T),new pY(0,d,!0,"o")):new pY(0,0,!1,"o")}; MOH=function(d,q){return q&&g.ho(d.Pv)?q.some(function(T){return T.video.fps>32}):!1}; EN_=function(d,q){if(d.N("html5_disable_ustreamer_constraint_for_sabr")&&tw(q.videoData))return xp;var T=d.G2.x4();d.N("html5_use_video_quality_cap_for_ustreamer_constraint")&&T&&T.W_>0&&nY(q.videoData.GD)&&(d=T.W_,q.videoData.GD=new pY(0,d,!1,"u"));return q.videoData.GD}; jiD=function(d,q){var T;a:if((T=q.G)&&T.videoInfos.length){for(var Y=g.E(T.videoInfos),e=Y.next();!e.done;e=Y.next()){e=e.value;var U=void 0;if((U=e.U)==null?0:U.smooth){T=e.video.qualityOrdinal;break a}}T=T.videoInfos[0].video.qualityOrdinal}else T=0;cfQ()&&!g.ho(d.Pv)&&Ke(q.G.videoInfos[0])&&(T=Math.min(T,g.ZB.large));Y=g.Yv(d.Pv.experiments,"html5_chipset_soft_cap");Y>0&&(T=Math.min(T,Y));if(Y=g.Yv(d.Pv.experiments,"html5_max_vertical_resolution")){e=4320;for(U=0;UY&&(e=Math.min(e,b.video.qualityOrdinal))}if(e<4320){for(b=U=0;b32){e=!0;break a}}e=!1}e&&(T=Math.min(T,Y));(Y=g.Yv(d.Pv.experiments,"html5_live_quality_cap"))&&q.videoData.isLivePlayback&&(T=Math.min(T,Y));T=aKD(d,q,T);d=g.Yv(d.Pv.experiments,"html5_byterate_soft_cap");return new pY(0,T===4320?0:T,!1,"d",d)}; p86=function(d){var q,T,Y,e;return g.G(function(U){switch(U.U){case 1:return d.G.G&&typeof((q=navigator.mediaCapabilities)==null?void 0:q.decodingInfo)==="function"?g.B(U,Promise.resolve(),2):U.return(Promise.resolve());case 2:T=g.E(d.G.videoInfos),Y=T.next();case 3:if(Y.done){U.tF(0);break}e=Y.value;return g.B(U,kWX(e),4);case 4:Y=T.next(),U.tF(3)}})}; OEI=function(d,q){if(!q.videoData.U||d.N("html5_disable_performance_downgrade"))return!1;Date.now()-d.L>6E4&&(d.U=0);d.U++;d.L=Date.now();if(d.U!==4)return!1;ZEX(d,q.videoData.U);return!0}; rpN=function(d,q,T,Y){if(!q||!T||!q.videoData.U)return!1;var e=g.Yv(d.Pv.experiments,"html5_df_downgrade_thresh"),U=d.N("html5_log_media_perf_info");if(!((0,g.cj)()-d.T<5E3?0:U||e>0))return!1;var b=((0,g.cj)()-d.T)/1E3;d.T=(0,g.cj)();T=T.getVideoPlaybackQuality();if(!T)return!1;var J=T.droppedVideoFrames-d.X,F=T.totalVideoFrames-d.B;d.X=T.droppedVideoFrames;d.B=T.totalVideoFrames;var N=T.displayCompositedVideoFrames===0?0:T.displayCompositedVideoFrames||-1;U&&d.Pv.uF()&&d.G2.oU("ddf",{dr:T.droppedVideoFrames, de:T.totalVideoFrames,comp:N});if(Y)return d.G=0,!1;if((F-J)/b>d.K||!e||g.ho(d.Pv))return!1;d.G=(F>60?J/F:0)>e?d.G+1:0;if(d.G!==3)return!1;ZEX(d,q.videoData.U);d.G2.oU("dfd",Object.assign({dr:T.droppedVideoFrames,de:T.totalVideoFrames},nN2()));return!0}; ZEX=function(d,q){var T=q.Cf,Y=q.video.fps,e=q.video.qualityOrdinal-1,U=d.j;q=""+T+(Y>49?"p60":Y>32?"p48":"");T=TH(T,Y,U);e>0&&(T=Math.min(T,e));if(!pE.has(q)&&QR().includes(q)){var b=T;T=HI();+T[q]>0&&(b=Math.min(+T[q],b));T[q]!==b&&(T[q]=b,g.pW("yt-player-performance-cap",T,2592E3))}else if(pE.has(q)||U==null){a:{b=b===void 0?!0:b;Y=QR().slice();if(b){if(Y.includes(q))break a;Y.push(q)}else{if(!Y.includes(q))break a;Y.splice(Y.indexOf(q),1)}g.pW("yt-player-performance-cap-active-set",Y,2592E3)}qd.set(q, T)}else pE.add(q),U==null||U.set(q,T);d.G2.J8()}; tOg=function(d,q){if(!q.G.G)return d.S?new pY(0,360,!1,"b"):xp;for(var T=!1,Y=!1,e=g.E(q.G.videoInfos),U=e.next();!U.done;U=e.next())kV(U.value)?T=!0:Y=!0;T=T&&Y;Y=0;e=g.Yv(d.Pv.experiments,"html5_performance_cap_floor");e=d.Pv.U?240:e;q=g.E(q.G.videoInfos);for(U=q.next();!U.done;U=q.next()){var b=U.value;if(!T||!kV(b))if(U=TH(b.Cf,b.video.fps,d.j),b=b.video.qualityOrdinal,Math.max(U,e)>=b){Y=b;break}}return new pY(0,Y,!1,"b")}; Bk6=function(d,q){var T=d.G2.Jp();return T.isInline()&&!q.WD?new pY(0,480,!1,"v"):tw(q)?xp:T.isBackground()&&QF()/1E3>60&&!g.ho(d.Pv)?new pY(0,360,!1,"v"):xp}; K_2=function(d,q,T){if(d.Pv.experiments.Wv("html5_disable_client_autonav_cap_for_onesie")&&q.fetchType==="onesie"||g.ho(d.Pv)&&(yR(-1)>=1080||q.osid))return xp;var Y=g.Yv(d.Pv.experiments,"html5_autonav_quality_cap"),e=g.Yv(d.Pv.experiments,"html5_autonav_cap_idle_secs");return Y&&q.isAutonav&&QF()/1E3>e?(T&&(Y=aKD(d,T,Y)),new pY(0,Y,!1,"e")):xp}; aKD=function(d,q,T){if(d.N("html5_optimality_defaults_chooses_next_higher")&&T)for(d=q.G.videoInfos,q=1;q=0||(d.provider.G2.getVisibilityState()===3?d.S=!0:(d.G=g.Jp(d.provider),d.delay.start()))}; k66=function(d){if(!(d.U<0)){var q=g.Jp(d.provider),T=q-d.T;d.T=q;d.playerState.state===8?d.playTimeSecs+=T:d.playerState.isBuffering()&&!g.I(d.playerState,16)&&(d.rebufferTimeSecs+=T)}}; PC2=function(d){var q;switch((q=d.Pv.playerCanaryStage)==null?void 0:q.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; W_Q=function(d){this.provider=d;this.L=!1;this.G=0;this.T=-1;this.ul=NaN;this.j=0;this.segments=[];this.X=this.S=0;this.previouslyEnded=!1;this.K=this.provider.G2.getVolume();this.B=this.provider.G2.isMuted()?1:0;this.U=OV(this.provider)}; nE=function(d){d.U.startTime=d.j;d.U.endTime=d.G;var q=!1;d.segments.length&&g.yN(d.segments).isEmpty()?(d.segments[d.segments.length-1].previouslyEnded&&(d.U.previouslyEnded=!0),d.segments[d.segments.length-1]=d.U,q=!0):d.segments.length&&d.U.isEmpty()||(d.segments.push(d.U),q=!0);q?d.U.endTime===0&&(d.previouslyEnded=!1):d.U.previouslyEnded&&(d.previouslyEnded=!0);d.S+=d.G-d.j;d.U=OV(d.provider);d.U.previouslyEnded=d.previouslyEnded;d.previouslyEnded=!1;d.j=d.G}; ufn=function(d){CCn(d);d.X=g.$A(function(){d.update()},100); d.ul=g.Jp(d.provider);d.U=OV(d.provider)}; CCn=function(d){g.Fq(d.X);d.X=NaN}; DZQ=function(d,q,T){T-=d.ul;return q===d.G&&T>.5}; w8Q=function(d,q,T,Y){this.Pv=q;this.ev=T;this.segments=[];this.experimentIds=[];this.AF=this.vF=this.isFinal=this.delayThresholdMet=this.Qp=this.qC=this.autoplay=this.autonav=!1;this.Ln="yt";this.X=[];this.L=this.K=null;this.sendVisitorIdHeader=this.Fw=!1;this.B=this.pageId="";this.S=T==="watchtime";this.j=T==="playback";this.rO=T==="atr";this.FW=T==="engage";this.sendVisitorIdHeader=!1;this.uri=this.rO?"/api/stats/"+T:"//"+q.sx+"/api/stats/"+T;Y&&(this.vF=Y.fs,Y.rtn&&(this.L=Y.rtn),this.S?(this.playerState= Y.state,Y.rti>0&&(this.K=Y.rti)):(this.vA=Y.mos,this.yH=Y.volume,Y.at&&(this.adType=Y.at)),Y.autonav&&(this.autonav=Y.autonav),Y.inview!=null&&(this.pC=Y.inview),Y.size&&(this.zq=Y.size),Y.playerwidth&&(this.dA=Y.playerwidth),Y.playerheight&&(this.rA=Y.playerheight));this.zX=g.x9(q.G);this.B=Md(q.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.B==="all"||this.B==="once")this.q5=g.x9(q.Qp);this.R6=q.Ln;this.experimentIds=vx_(q.experiments);this.xx=q.wk;this.Ln=q.lr;this.region=q.region; this.userAge=q.userAge;this.kx=q.wU;this.gk=QF();this.sendVisitorIdHeader=q.sendVisitorIdHeader;this.z2=q.N("vss_pings_using_networkless")||q.N("kevlar_woffle");this.XF=q.N("vss_final_ping_send_and_write");this.dO=q.N("vss_use_send_and_write");this.pageId=q.pageId;this.qU=q.N("vss_playback_use_send_and_write");q.livingRoomAppMode&&(this.livingRoomAppMode=q.livingRoomAppMode);this.Je=q.T&&q.N("embeds_append_synth_ch_headers");g.dn(q)&&(this.RU=q.rO);g.eX(g.sm(q))&&this.X.push(1);this.accessToken=g.$4(d); d.Y6[this.ev]?this.T=d.Y6[this.ev]:d.Y6.playback&&(this.T=d.Y6.playback);this.adFormat=d.adFormat;this.adQueryId=d.adQueryId;this.autoplay=lwg(d);this.j&&(this.qC=d.Ct&&bH(d)==="adunit"?!0:!1);this.autonav=d.isAutonav||this.autonav;this.contentVideoId=J7(d);this.clientPlaybackNonce=d.clientPlaybackNonce;this.Qp=d.kc;d.X&&(this.UD=d.X,this.lF=d.M4);d.mdxEnvironment&&(this.mdxEnvironment=d.mdxEnvironment);this.G=d.ST;this.fn=d.fn;d.U&&(this.wk=d.U.itag,d.T&&d.T.itag!==this.wk&&(this.wO=d.T.itag));d.G&& LY(d.G)&&(this.offlineDownloadUserChoice="1");this.eventLabel=bH(d);this.AF=d.qU?!1:d.yH;this.ST=d.Au;if(q=ix(d))this.Kz=q;this.V5=d.WV;this.partnerId=d.partnerId;this.eventId=d.eventId;this.playlistId=d.My||d.playlistId;this.A6=d.A6;this.jj=d.jj;this.OP=d.OP;this.Nf=d.Nf;this.subscribed=d.subscribed;this.videoId=d.videoId;this.videoMetadata=d.videoMetadata;this.visitorData=d.visitorData;this.osid=d.osid;this.I$=d.I$;this.referrer=d.referrer;this.sx=d.KE||d.sx;this.Bv=d.iq;this.Tb=d.Tb;this.userGenderAge= d.userGenderAge;this.hs=d.hs;this.embedsRct=d.embedsRct;this.embedsRctn=d.embedsRctn;g.dn(this.Pv)&&d.mutedAutoplay&&(d.mutedAutoplayDurationMode===2&&d.limitedPlaybackDurationInSeconds===0&&d.endSeconds===0?this.X.push(7):this.X.push(2));d.isEmbedsShortsMode(new g.zP(this.dA,this.rA),!!this.playlistId)&&this.X.push(3);g.MC(d)&&this.X.push(4);this.qk=d.yM;d.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=d.compositeLiveIngestionOffsetToken)}; fKH=function(d,q){var T=d.sendVisitorIdHeader?d.visitorData:void 0;return g.rn(d.Pv,d.accessToken).then(function(Y){return mRI(d.uri,d.Pv,d.pageId,T,Y,q,d.Je)})}; IK2=function(d,q){return function(){d.Pv.N("html5_simplify_pings")?(d.G=d.aU,d.LC=q(),d.gk=0,d.send()):fKH(d).then(function(T){var Y=z52(d);Y.cmt=Y.len;Y.lact="0";var e=q().toFixed(3);Y.rt=Number(e).toString();Y=g.y6(d.uri,Y);d.Pv.N("vss_through_gel_double")&&iEQ(Y);d.z2?(T==null&&(T={}),d.dO?uI().sendAndWrite(Y,T):uI().sendThenWrite(Y,T)):T?g.QB(Y,T):g.rM(Y)})}}; z52=function(d){var q={ns:d.Ln,el:d.eventLabel,cpn:d.clientPlaybackNonce,ver:2,cmt:d.U(d.G),fmt:d.wk,fs:d.vF?"1":"0",rt:d.U(d.LC),adformat:d.adFormat,content_v:d.contentVideoId,euri:d.R6,lact:d.gk,live:d.Kz,cl:(785662079).toString(),mos:d.vA,state:d.playerState,volume:d.yH};d.subscribed&&(q.subscribed="1");Object.assign(q,d.zX);d.B==="all"?Object.assign(q,d.q5):d.B==="once"&&d.j&&Object.assign(q,d.q5);d.autoplay&&(q.autoplay="1");d.qC&&(q.sautoplay="1");d.Qp&&(q.dni="1");!d.S&&d.RU&&(q.epm=mZ7[d.RU]); d.isFinal&&(q["final"]="1");d.AF&&(q.splay="1");d.fn&&(q.delay=d.fn);d.xx&&(q.hl=d.xx);d.region&&(q.cr=d.region);d.userGenderAge&&(q.uga=d.userGenderAge);d.userAge!==void 0&&d.kx&&(q.uga=d.kx+d.userAge);d.aU!==void 0&&(q.len=d.U(d.aU));!d.S&&d.experimentIds.length>0&&(q.fexp=d.experimentIds.toString());d.L!==null&&(q.rtn=d.U(d.L));d.sx&&(q.feature=d.sx);d.jj&&(q.ctrl=d.jj);d.OP&&(q.ytr=d.OP);d.wO&&(q.afmt=d.wO);d.offlineDownloadUserChoice&&(q.ODUC=d.offlineDownloadUserChoice);d.lr&&(q.lio=d.U(d.lr)); d.S?(q.idpj=d.ST,q.ldpj=d.V5,d.delayThresholdMet&&(q.dtm="1"),d.K!=null&&(q.rti=d.U(d.K)),d.hs&&(q.ald=d.hs),d.compositeLiveIngestionOffsetToken&&(q.clio=d.compositeLiveIngestionOffsetToken)):d.adType!==void 0&&(q.at=d.adType);d.zq&&(d.j||d.S)&&(q.size=d.zq);d.j&&d.X.length&&(q.pbstyle=d.X.join(","));d.pC!=null&&(d.j||d.S)&&(q.inview=d.U(d.pC));d.S&&(q.volume=rk(d,g.yC(d.segments,function(Y){return Y.volume})),q.st=rk(d,g.yC(d.segments,function(Y){return Y.startTime})),q.et=rk(d,g.yC(d.segments,function(Y){return Y.endTime})), D7(d.segments,function(Y){return Y.playbackRate!==1})&&(q.rate=rk(d,g.yC(d.segments,function(Y){return Y.playbackRate}))),D7(d.segments,function(Y){return Y.G!=="-"})&&(q.als=g.yC(d.segments,function(Y){return Y.G}).join(",")),D7(d.segments,function(Y){return Y.previouslyEnded})&&(q.pe=g.yC(d.segments,function(Y){return""+ +Y.previouslyEnded}).join(","))); q.muted=rk(d,g.yC(d.segments,function(Y){return Y.muted?1:0})); D7(d.segments,function(Y){return Y.visibilityState!==0})&&(q.vis=rk(d,g.yC(d.segments,function(Y){return Y.visibilityState}))); D7(d.segments,function(Y){return Y.connectionType!==0})&&(q.conn=rk(d,g.yC(d.segments,function(Y){return Y.connectionType}))); D7(d.segments,function(Y){return Y.U!==0})&&(q.blo=rk(d,g.yC(d.segments,function(Y){return Y.U}))); D7(d.segments,function(Y){return!!Y.j})&&(q.blo=g.yC(d.segments,function(Y){return Y.j}).join(",")); D7(d.segments,function(Y){return!!Y.compositeLiveStatusToken})&&(q.cbs=g.yC(d.segments,function(Y){return Y.compositeLiveStatusToken}).join(",")); D7(d.segments,function(Y){return Y.T!=="-"})&&(q.cc=g.yC(d.segments,function(Y){return Y.T}).join(",")); D7(d.segments,function(Y){return Y.clipId!=="-"})&&(q.clipid=g.yC(d.segments,function(Y){return Y.clipId}).join(",")); if(D7(d.segments,function(Y){return!!Y.audioId})){var T="au"; d.j&&(T="au_d");q[T]=g.yC(d.segments,function(Y){return Y.audioId}).join(",")}Tt()&&d.UD&&(q.ctt=d.UD,q.cttype=d.lF,q.mdx_environment=d.mdxEnvironment); d.FW&&(q.etype=d.yv!==void 0?d.yv:0);d.Bv&&(q.uoo=d.Bv);d.livingRoomAppMode&&d.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(q.clram=SVX[d.livingRoomAppMode]||d.livingRoomAppMode);d.T?lKI(d,q):(q.docid=d.videoId,q.referrer=d.referrer,q.ei=d.eventId,q.of=d.I$,q.osid=d.osid,q.vm=d.videoMetadata,d.adQueryId&&(q.aqi=d.adQueryId),d.autonav&&(q.autonav="1"),d.playlistId&&(q.list=d.playlistId),d.Nf&&(q.ssrt="1"),d.Tb&&(q.upt=d.Tb));d.j&&(d.embedsRct&&(q.rct=d.embedsRct),d.embedsRctn&&(q.rctn= d.embedsRctn),d.compositeLiveIngestionOffsetToken&&(q.clio=d.compositeLiveIngestionOffsetToken));d.qk&&(q.host_cpn=d.qk);return q}; lKI=function(d,q){if(q&&d.T){var T=new Set(["q","feature","mos"]),Y=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]);d.T.ns==="3pp"&&(q.ns="3pp");for(var U=g.E(Object.keys(d.T)),b=U.next();!b.done;b=U.next())b=b.value,Y.has(b)||T.has(b)||e.has(b)&&!d.T[b]||(q[b]=d.T[b])}}; rk=function(d,q){return g.yC(q,d.U).join(",")}; iEQ=function(d){d.indexOf("watchtime")!==-1&&g.Ta("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:d}})}; vNN=function(d,q){d.attestationResponse&&fKH(d).then(function(T){T=T||{};T.method="POST";T.postParams={atr:d.attestationResponse};d.z2?d.dO?uI().sendAndWrite(q,T):uI().sendThenWrite(q,T):g.QB(q,T)})}; tp=function(d){g.W.call(this);this.provider=d;this.X="paused";this.S=NaN;this.L=[10,10,10,40];this.K=this.B=0;this.UD=this.rO=this.yv=this.lr=this.j=!1;this.U=this.T=NaN;this.logger=new g.cb("vss");this.G=new W_Q(d)}; TFI=function(d){if(!d.j){d.provider.videoData.Dk===16623&&g.OL(Error("Playback for EmbedPage"));var q=B8(d,"playback");d.L=oNH(d);ufn(d.G);q.L=KE(d);d.U>0&&(q.G-=d.U);q.send();if(d.provider.videoData.BJ){q=d.provider.Pv;var T=d.provider.videoData,Y={html5:"1",video_id:T.videoId,cpn:T.clientPlaybackNonce,ei:T.eventId,ptk:T.BJ,oid:T.KN,ptchn:T.VL,pltype:T.wM,content_v:J7(T)};T.Nj&&Object.assign(Y,{m:T.Nj});q=g.y6(q.XM+"ptracking",Y);VOI(d,q)}d.provider.videoData.fn||(daN(d),q8Q(d));d.j=!0;d=d.G;d.G= d.tE();d.ul=g.Jp(d.provider);!(d.j===0&&d.G<5)&&d.G-d.j>2&&(d.j=d.G);d.L=!0}}; oNH=function(d){var q=d.provider.videoData.Au,T=d.provider.videoData.WV,Y=[10+q,10,10,40+T-q,40],e,U=(e=d.provider.videoData.getPlayerResponse())==null?void 0:e.playbackTracking,b=U==null?void 0:U.videostatsScheduledFlushWalltimeSeconds;e=U==null?void 0:U.videostatsDefaultFlushIntervalSeconds;if(!(b&&b.length>0&&e))return d.logger.info("Missing valid scheduled pings config "+b+" "+e),Y;q=[b[0]+q].concat(g.RQ(b.slice(1).map(function(J,F){return J-b[F]})),[e+T-q, e]);return q.some(function(J){return J<0})?(d.logger.G(347111855,"Neg vss scheduled pings "+b+" "+e),Y):q}; KE=function(d,q){q=q===void 0?NaN:q;var T=g.Jp(d.provider);q=isNaN(q)?T:q;q=Math.ceil(q);var Y=d.L[d.B];d.B+11E3;!(U.length>1)&&U[0].isEmpty()||J||(b.L=KE(d,e));b.send();d.K++}},(e-T)*1E3); return d.T=e}; G6=function(d){g.g7(d.S);d.S=NaN}; Y82=function(d){d.G.update();d=d.G;d.segments.length&&d.G===d.j||nE(d);var q=d.segments;d.segments=[];return q}; B8=function(d,q){var T=Ua1(d.provider);Object.assign(T,{state:d.X});q=new w8Q(d.provider.videoData,d.provider.Pv,q,T);q.G=d.provider.G2.tE();T=d.provider.videoData.clientPlaybackNonce;q.G=d.provider.G2.gG(T);d.provider.videoData.isLivePlayback||(q.aU=d.provider.G2.getDuration(T));d.provider.videoData.G&&(T=d.provider.videoData.G.fH(q.G))&&(q.lr=T-q.G,d.provider.Pv.N("html5_disable_live_dvr_shrink_for_cdm_vss")&&rd(d.provider.videoData)&&(q.G+=d.provider.G2.mz(),q.lr-=d.provider.G2.mz()));q.LC=g.Jp(d.provider); q.segments=[OV(d.provider)];return q}; eaD=function(d,q){var T=B8(d,"watchtime");bcj(d)&&(T.delayThresholdMet=!0,d.yv=!0);if(d.U>0){for(var Y=g.E(q),e=Y.next();!e.done;e=Y.next())e=e.value,e.startTime-=d.U,e.endTime-=d.U;T.G-=d.U}else T.G=d.G.G;T.segments=q;return T}; LE=function(d,q){var T=X$2(d,!isNaN(d.T));q&&(d.T=NaN);return T}; X$2=function(d,q){var T=eaD(d,Y82(d));!isNaN(d.T)&&q&&(T.K=d.T);return T}; bcj=function(d){var q;if(q=d.provider.videoData.isLoaded()&&d.provider.videoData.fn&&d.j&&!d.yv)q=d.G,q=q.S+q.tE()-q.j>=d.provider.videoData.fn;return!!q}; daN=function(d){d.provider.videoData.youtubeRemarketingUrl&&!d.rO&&(VOI(d,d.provider.videoData.youtubeRemarketingUrl),d.rO=!0)}; q8Q=function(d){d.provider.videoData.googleRemarketingUrl&&!d.UD&&(VOI(d,d.provider.videoData.googleRemarketingUrl),d.UD=!0)}; JG_=function(d){if(!d.JF()&&d.j){d.X="paused";var q=LE(d);q.isFinal=!0;q.send();d.dispose()}}; sZ_=function(d,q){if(!d.JF())if(g.I(q.state,2)||g.I(q.state,512)){if(d.X="paused",g.gs(q,2)||g.gs(q,512))g.gs(q,2)&&(d.G.previouslyEnded=!0),d.j&&(G6(d),LE(d).send(),d.T=NaN)}else if(g.I(q.state,8)){d.X="playing";var T=d.j&&isNaN(d.S)?KE(d):NaN;if(!isNaN(T)&&($o(q,64)<0||$o(q,512)<0)){var Y=X$2(d,!1);Y.L=T;Y.send()}g.gs(q,16)&&q.state.seekSource===58&&(d.G.previouslyEnded=!0)}else d.X="paused"}; $aI=function(d,q,T){if(!d.lr){T||(T=B8(d,"atr"));T.attestationResponse=q;try{T.send()}catch(Y){if(Y.message!=="Unknown Error")throw Y;}d.lr=!0}}; VOI=function(d,q){var T=d.provider.Pv;g.rn(d.provider.Pv,g.$4(d.provider.videoData)).then(function(Y){var e=d.provider.Pv.pageId,U=d.provider.Pv.sendVisitorIdHeader?d.provider.videoData.visitorData:void 0,b=d.provider.Pv.N("vss_pings_using_networkless")||d.provider.Pv.N("kevlar_woffle"),J=d.provider.Pv.N("allow_skip_networkless");Y=mRI(q,T,e,U,Y);SB2(q,Y,{token:d.provider.videoData.X,Yj:d.provider.videoData.M4,mdxEnvironment:d.provider.videoData.mdxEnvironment},T,void 0,b&&!J,!1,!0)})}; gsj=function(){this.endTime=this.startTime=-1;this.T="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.U=0;this.compositeLiveStatusToken=this.j=void 0;this.volume=this.connectionType=0;this.muted=!1;this.G=this.clipId="-";this.previouslyEnded=!1}; kN=function(d,q,T){this.videoData=d;this.Pv=q;this.G2=T;this.G=void 0}; g.Jp=function(d){return FBD(d)()}; FBD=function(d){if(!d.G){var q=g.$c(function(Y){var e=(0,g.cj)();Y&&e<=631152E6&&(d.G2.oU("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},d.Pv.N("html5_validate_yt_now")),T=q(); d.G=function(){return Math.round(q()-T)/1E3}; d.G2.u6()}return d.G}; Ua1=function(d){var q=d.G2.B9()||{};q.fs=d.G2.hW();q.volume=d.G2.getVolume();q.muted=d.G2.isMuted()?1:0;q.mos=q.muted;q.clipid=d.G2.L9();var T;q.playerheight=((T=d.G2.getPlayerSize())==null?void 0:T.height)||0;var Y;q.playerwidth=((Y=d.G2.getPlayerSize())==null?void 0:Y.width)||0;d=d.videoData;T={};d.U&&(T.fmt=d.U.itag,d.T&&(d.ev?d.T.itag!==d.U.itag:d.T.itag!=d.U.itag)&&(T.afmt=d.T.itag));T.ei=d.eventId;T.list=d.playlistId;T.cpn=d.clientPlaybackNonce;d.videoId&&(T.v=d.videoId);d.wB&&(T.infringe=1); (d.qU?0:d.yH)&&(T.splay=1);(Y=ix(d))&&(T.live=Y);d.Ct&&(T.sautoplay=1);d.k9&&(T.autoplay=1);d.A6&&(T.sdetail=d.A6);d.partnerId&&(T.partnerid=d.partnerId);d.osid&&(T.osid=d.osid);d.cD&&(T.cc=g.jFn(d.cD));return Object.assign(q,T)}; bVH=function(d){var q=BxD();if(q)return NFD[q]||NFD.other;if(g.ho(d.Pv)){d=navigator.userAgent;if(/[Ww]ireless[)]/.test(d))return 3;if(/[Ww]ired[)]/.test(d))return 30}return 0}; OV=function(d){var q=new gsj,T;q.T=((T=Ua1(d).cc)==null?void 0:T.toString())||"-";q.playbackRate=d.G2.getPlaybackRate();T=d.G2.getVisibilityState();T!==0&&(q.visibilityState=T);d.Pv.Bv&&(q.U=1);q.j=d.videoData.VY;q.compositeLiveStatusToken=d.videoData.compositeLiveStatusToken;T=d.G2.getAudioTrack();T.DQ&&T.DQ.id&&T.DQ.id!=="und"&&(q.audioId=T.DQ.id);q.connectionType=bVH(d);q.volume=d.G2.getVolume();q.muted=d.G2.isMuted();q.clipId=d.G2.L9()||"-";q.G=d.videoData.Th||"-";return q}; g.P8=function(d,q){g.W.call(this);var T=this;this.provider=d;this.j=new Map;this.Fd=new g.EX;this.fC={z1f:function(){return T.qoe}, m2k:function(){return T.G}, Clw:function(){return T.U}}; this.provider.videoData.LH()&&!this.provider.videoData.j8&&(this.G=new tp(this.provider),this.G.U=0,g.C(this,this.G),this.qoe=new g.bC(this.provider,q),g.C(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.KA=this.provider.videoData.clientPlaybackNonce)&&this.j.set(this.KA,this.G));if(d.Pv.playerCanaryState==="canary"||d.Pv.playerCanaryState==="holdback")this.U=new ZK(this.provider),g.C(this,this.U)}; Raj=function(d){d.U&&L_H(d.U);d.qoe&&y7Y(d.qoe)}; xaY=function(d){if(d.qoe){d=d.qoe;for(var q=d.provider.videoData,T=d.provider.Pv,Y=g.E(T.gB),e=Y.next();!e.done;e=Y.next())$N(d,e.value);if(d.provider.N("html5_enable_qoe_cat_list"))for(Y=g.E(q.aF),e=Y.next();!e.done;e=Y.next())$N(d,e.value);else q.gB&&$N(d,d.provider.videoData.gB);q.aN()&&(Y=q.G,kp(q)&&$N(d,"manifestless"),Y&&mF(Y)&&$N(d,"live-segment-"+mF(Y).toFixed(1)));tw(q)?$N(d,"sabr"):d.oP(Ct(q));if(gm(q)||q.y5())q.y5()&&$N(d,"ssa"),$N(d,"lifa");rd(q)&&$N(d,"cdm");q.gatewayExperimentGroup&& (Y=q.gatewayExperimentGroup,Y==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?Y="spkadtrt":Y==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(Y="spkadctrl"),$N(d,Y));T.lr!=="yt"&&d.G.set("len",[q.lengthSeconds.toFixed(2)]);q.cotn&&!NC(q)&&d.Hj(!0);T.uF()&&(q=YFD())&&d.oU("cblt",{m:q});if(T.N("html5_log_screen_diagonal")){T=d.oU;var U;q=((U=window.H5vccScreen)==null?0:U.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;T.call(d,"cbltdiag",{v:q})}}}; yGQ=function(d,q){d.G&&(d=d.G,q===58?d.G.update():d.j&&(G6(d),LE(d).send(),d.T=NaN))}; ha6=function(d,q){if(g.gs(q,1024)||g.gs(q,512)||g.gs(q,4)){if(d.U){var T=d.U;T.U>=0||(T.G=-1,T.delay.stop())}d.qoe&&(T=d.qoe,T.L||(T.j=-1))}if(d.provider.videoData.enableServerStitchedDai&&d.KA){var Y;(Y=d.j.get(d.KA))==null||sZ_(Y,q)}else d.G&&sZ_(d.G,q);if(d.qoe){Y=d.qoe;T=q.state;var e=g.Jp(Y.provider),U=Y.getPlayerState(T),b=T.seekSource||void 0;if(U!==Y.Fd){Y.yv||e= 10&&Y.playTimeSecs<=180&&(Y.G.set("qoealert",["1"]),Y.fn=!0)),U!=="B"||Y.Fd!=="PL"&&Y.Fd!=="PB"||(Y.isBuffering=!0),Y.U=e);Y.Fd==="PL"&&(U==="B"||U==="S")||Y.provider.Pv.uF()?sV(Y,e):(Y.lF||U!=="PL"||(Y.lF=!0,XUj(Y,e,Y.provider.G2.vS())),UCN(Y,e));U==="PL"&&g.zh(Y.LC);var J=[U];U==="S"&&b&&J.push("ss."+b);g.UV(Y,e,"vps",J);Y.Fd=U;Y.lr=e;Y.U=e;Y.T=!0}U=T.eF;g.I(T,128)&&U&&(U.bH=U.bH||"",g4f(Y,e,U.errorCode,U.d_,U.bH));(g.I(T,2)||g.I(T,128))&&Y.reportStats(e);T.isPlaying()&&!Y.L&&(Y.j>=0&&Y.G.set("user_intent", [Y.j.toString()]),Y.L=!0);s62(Y)}d.U&&(d=d.U,k66(d),d.playerState=q.state,d.U>=0&&g.gs(q,16)&&d.seekCount++,q.state.isError()&&d.send())}; HcN=function(d){d.U&&d.U.send();if(d.qoe){var q=d.qoe;if(q.T){q.Fd==="PL"&&(q.Fd="N");var T=g.Jp(q.provider);g.UV(q,T,"vps",[q.Fd]);q.L||(q.j>=0&&q.G.set("user_intent",[q.j.toString()]),q.L=!0);q.provider.Pv.uF()&&q.oU("finalized",{});q.z2=!0;q.reportStats(T)}}if(d.provider.videoData.enableServerStitchedDai)for(q=g.E(d.j.values()),T=q.next();!T.done;T=q.next())JG_(T.value);else d.G&&JG_(d.G);d.dispose()}; QZ1=function(d,q){d.G&&$aI(d.G,q)}; MRN=function(d){if(!d.G)return null;var q=B8(d.G,"atr");return function(T){d.G&&$aI(d.G,T,q)}}; cGn=function(d,q,T,Y){T.adFormat=T.R6;var e=q.G2;q=new tp(new kN(T,q.Pv,{getDuration:function(){return T.lengthSeconds}, getCurrentTime:function(){return e.getCurrentTime()}, tE:function(){return e.tE()}, gG:function(){return e.gG()}, vS:function(){return e.vS()}, getPlayerSize:function(){return e.getPlayerSize()}, getAudioTrack:function(){return T.getAudioTrack()}, getPlaybackRate:function(){return e.getPlaybackRate()}, EE:function(){return e.EE()}, getVisibilityState:function(){return e.getVisibilityState()}, GN:function(){return e.GN()}, B9:function(){return e.B9()}, getVolume:function(){return e.getVolume()}, isMuted:function(){return e.isMuted()}, hW:function(){return e.hW()}, L9:function(){return e.L9()}, getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()}, u6:function(){e.u6()}, oU:function(U,b){e.oU(U,b)}, Ne:function(){return e.Ne()}, mz:function(){return e.mz()}})); q.U=Y;g.C(d,q);return q}; Esg=function(){this.fb=0;this.j=this.fL=this.Cw=this.U=NaN;this.G={};this.bandwidthEstimate=NaN}; jZf=function(){this.G=g.mX;this.array=[]}; AG1=function(d,q,T){var Y=[];for(q=atN(d,q);qT)break}return Y}; p$D=function(d,q){var T=[];d=g.E(d.array);for(var Y=d.next();!Y.done&&!(Y=Y.value,Y.contains(q)&&T.push(Y),Y.start>q);Y=d.next());return T}; ZcI=function(d){return d.array.slice(atN(d,0x7ffffffffffff),d.array.length)}; atN=function(d,q){d=wL(d.array,function(T){return q-T.start||1}); return d<0?-(d+1):d}; Oc7=function(d,q){var T=NaN;d=g.E(d.array);for(var Y=d.next();!Y.done;Y=d.next())if(Y=Y.value,Y.contains(q)&&(isNaN(T)||Y.endq&&(isNaN(T)||Y.startd.mediaTime+d.S&&q1)d.T=!0;if((e===void 0?0:e)||isNaN(d.U))d.U=q;if(d.G)q!==d.mediaTime&&(d.G=!1);else if(q>0&&d.mediaTime===q){e=1500;if(d.Pv.N("html5_buffer_underrun_transition_fix")){e=g.Yv(d.Pv.experiments,"html5_min_playback_advance_for_steady_state_secs");var U=g.Yv(d.Pv.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");e=e>0&&U>0&&Math.abs(q-d.U)(Y||!d.T?e:400)}d.mediaTime=q;d.j=T;return!1}; WBf=function(d,q){this.videoData=d;this.G=q}; CfX=function(d,q,T){return q.LR(T).then(function(){return pZ(new WBf(q,q.j))},function(Y){Y instanceof Error&&g.OL(Y); var e=Qb('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),U=cH('audio/mp4; codecs="mp4a.40.2"'),b=e||U,J=q.isLivePlayback&&!g.jJ(d.S,!0);Y="fmt.noneavailable";J?Y="html5.unsupportedlive":b||(Y="html5.missingapi");b=J||!b?2:1;e={buildRej:"1",a:q.xk(),d:!!q.Ln,drm:q.It(),f18:q.vA.indexOf("itag=18")>=0,c18:e};q.G&&(q.It()?(e.f142=!!q.G.G["142"],e.f149=!!q.G.G["149"],e.f279=!!q.G.G["279"]):(e.f133=!!q.G.G["133"],e.f140=!!q.G.G["140"],e.f242=!!q.G.G["242"]),e.cAAC=U,e.cAVC=cH('video/mp4; codecs="avc1.42001E"'), e.cVP9=cH('video/webm; codecs="vp9"'));q.S&&(e.drmsys=q.S.keySystem,U=0,q.S.G&&(U=Object.keys(q.S.G).length),e.drmst=U);return new g.xV(Y,e,b)})}; uC=function(d){this.data=window.Float32Array?new Float32Array(d):Array(d);this.U=this.G=d-1}; uaD=function(d){return d.data[d.G]||0}; DaI=function(d){this.S=d;this.j=this.U=0;this.T=new uC(50)}; wk=function(d,q,T){g.YP.call(this);this.videoData=d;this.experiments=q;this.S=T;this.U=[];this.y9=0;this.j=!0;this.T=!1;this.X=0;T=new w$7;d.latencyClass==="ULTRALOW"&&(T.X=!1);d.kx?T.j=3:g.vr(d)&&(T.j=2);d.latencyClass==="NORMAL"&&(T.S=!0);T.lr=tw(d)&&q.Wv("html5_refactor_decouple_liveness");g.Yv(q,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.Yv(q,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||d.latencyClass!=="LOW"&&d.latencyClass!=="ULTRALOW"||(T.S=!0);var Y= g.Yv(q,"html5_liveness_drift_proxima_override");if(Ct(d)!==0&&Y){T.G=Y;var e;((e=d.G)==null?0:R0H(e))&&T.G--}tw(d)&&q.Wv("html5_sabr_parse_live_metadata_playback_boundaries")&&(T.UD=!0);if(g.kA("trident/")||g.kA("edge/"))e=g.Yv(q,"html5_platform_minimum_readahead_seconds")||3,T.T=Math.max(T.T,e);g.Yv(q,"html5_minimum_readahead_seconds")&&(T.T=g.Yv(q,"html5_minimum_readahead_seconds"));g.Yv(q,"html5_maximum_readahead_seconds")&&(T.K=g.Yv(q,"html5_maximum_readahead_seconds"));q.Wv("html5_force_adaptive_readahead")&& (T.X=!0);if(e=g.Yv(q,"html5_liveness_drift_chunk_override"))T.G=e;Pr(d)&&(T.G=(T.G+1)/5,d.latencyClass==="LOW"&&(T.G*=2));!tw(d)||d.latencyClass!=="ULTRALOW"&&d.latencyClass!=="LOW"||(T.B=g.Yv(q,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,T.L=g.Yv(q,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=T;this.L=this.policy.j!==1;this.G=DK(this,ftg(this,isNaN(d.liveChunkReadahead)?3:d.liveChunkReadahead,d))}; zaY=function(d,q){if(q)return q=d.videoData,q=ftg(d,isNaN(q.liveChunkReadahead)?3:q.liveChunkReadahead,q),DK(d,q);if(d.U.length){if(Math.min.apply(null,d.U)>1)return DK(d,d.G-1);if(d.policy.X)return DK(d,d.G+1)}return d.G}; icI=function(d,q){if(!d.U.length)return!1;var T=d.G;d.G=zaY(d,q===void 0?!1:q);if(q=T!==d.G)d.U=[],d.y9=0;return q}; fE=function(d,q){return q>=d.d4()-ItH(d)}; maD=function(d,q,T){q=fE(d,q);T||q?q&&(d.j=!0):d.j=!1;d.L=d.policy.j===2||d.policy.j===3&&d.j}; S8H=function(d,q){q=fE(d,q);d.T!==q&&d.publish("livestatusshift",q);d.T=q}; ItH=function(d){var q=d.policy.G;d.T||(q=Math.max(q-1,0));return q*z6(d)}; ftg=function(d,q,T){T.kx&&q--;Pr(T)&&(q=1);if(Ct(T)!==0&&(d=g.Yv(d.experiments,"html5_live_chunk_readahead_proxima_override"))){q=d;var Y;((Y=T.G)==null?0:R0H(Y))&&q++}return q}; z6=function(d){return d.videoData.G?mF(d.videoData.G)||5:5}; DK=function(d,q){q=Math.max(Math.max(1,Math.ceil(d.policy.T/z6(d))),q);return Math.min(Math.min(8,Math.floor(d.policy.K/z6(d))),q)}; w$7=function(){this.T=0;this.K=Infinity;this.X=!0;this.U=this.G=2;this.j=1;this.S=!1;this.L=10;this.UD=!1;this.B=1;this.lr=!1}; m_=function(d){g.W.call(this);this.G2=d;this.G=0;this.U=null;this.X=this.T=0;this.j={};this.Pv=this.G2.C();this.S=new g.f9(this.Yo,1E3,this);this.AF=iC(this,"html5_seek_timeout_delay_ms");this.yv=iC(this,"html5_long_rebuffer_threshold_ms");this.Fw=iC(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.dO=iC(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.RU=iC(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.Qp=iC(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.lr=iC(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.UD=new Ii(2E4);this.aU=iC(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.xx=iC(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.qk=iC(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.z2=iC(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.B=iC(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.K=iC(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.Bv=iC(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.kx=iC(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.L=iC(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.wO=new Ii(g.Yv(this.Pv.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Pv.N("html5_report_slow_ads_as_error"));this.fn=new Ii(g.Yv(this.Pv.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Pv.N("html5_skip_slow_buffering_ad"));this.lF=iC(this,"html5_slow_start_timeout_delay_ms");this.rO=iC(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.C(this,this.S)}; iC=function(d,q,T){T=T===void 0?null:T;var Y=Y===void 0?0:Y;return new Ii(g.Yv(d.Pv.experiments,q)||Y,T?d.Pv.N(T):!1)}; lt7=function(d,q){d.G=q}; SO=function(d,q,T,Y,e,U,b,J){q?q.test(T)?(d.jT(e,q,b),q.X||U()):(!q.U||q.T?T=!1:(T=(0,g.cj)(),Y?q.G||(q.G=T):q.G=0,U=!Y&&T-q.U>3E4,T=q.G&&T-q.G>1E3||U?q.T=!0:!1),T&&(J=Object.assign({},d.BF(q),J),J.wn=b,J.we=e,J.wsuc=Y,d.G2.oU("workaroundReport",J),Y&&(q.reset(),d.j[e]=!1))):d.G2.o6("auth",2,"BROWSER_OR_EXTENSION_ERROR",RI({source:"watchdog",name:b}))}; Ii=function(d,q){this.X=q===void 0?!1:q;this.G=this.U=this.j=this.startTimestamp=0;this.T=!1;this.S=Math.ceil(d/1E3)}; dcN=function(d){g.W.call(this);var q=this;this.G2=d;this.B=this.G=this.loader=this.mediaElement=this.playbackData=null;this.j=0;this.S=this.yv=this.T=null;this.z2=!1;this.lF=0;this.UD=!1;this.timestampOffset=0;this.K=!0;this.xx=0;this.Fw=this.q5=!1;this.L=0;this.kx=!1;this.rO=0;this.Pv=this.G2.C();this.videoData=this.G2.getVideoData();this.policy=new vsf;this.lr=new m_(this.G2);this.wO=this.qk=this.RU=this.X=this.U=NaN;this.aU=new g.f9(function(){osY(q,!1)},2E3); this.Qp=new g.f9(function(){lC(q)}); this.AF=new g.f9(function(){VRf(q,{})}); this.fn=NaN;this.dO=new g.f9(function(){var T=q.Pv.dA;T.G+=1E4/36E5;T.G-T.j>1/6&&(BUI(T),T.j=T.G);q.dO.start()},1E4); g.C(this,this.lr);g.C(this,this.aU);g.C(this,this.AF);g.C(this,this.Qp);g.C(this,this.dO)}; Yif=function(d,q){d.playbackData=q;d.videoData.isLivePlayback&&(d.B=new DaI(function(){a:{if(d.playbackData&&d.playbackData.G.G){if(kp(d.videoData)&&d.loader){var Y=d.loader.S9.W4()||0;break a}if(d.videoData.G){Y=d.videoData.G.z2;break a}}Y=0}return Y}),d.G=new wk(d.videoData,d.Pv.experiments,function(){return d.cG(!0)})); if(v8(d.G2)){var T;(T=d.videoData.H1)!=null&&T.yx||(q=qi_(d),q.NS?(tw(d.videoData)&&d.mN(q.NS,q.startSeconds),d.j=q.startSeconds):q.startSeconds>0&&d.seekTo(q.startSeconds,{b$:"seektimeline_startPlayback",seekSource:15}));d.K=!1}else TV1(d)||(d.j=d.j||d.videoData.startSeconds||0,d.videoData.isLivePlayback||(q=d.G2.videoData.cG(),d.j>q&&(d.N("html5_sabr_log_invalid_sabr_current_time")&&d.G2.oU("invalidSabrCmtStart",{rt:d.j,mst:q}),d.N("html5_sabr_vod_invalid_start_time_fallback")&&(d.j=0))))}; UcY=function(d,q){(d.loader=q)?eAg(d,!0):oi(d)}; baj=function(d,q){g.zh(d.lr.S);d.N("html5_exponential_memory_for_sticky")&&(q.state.isPlaying()?g.zh(d.dO):d.dO.stop());if(d.mediaElement)if(q.oldState.state===8&&nk(q.state)&&q.state.isBuffering()){q=d.mediaElement.getCurrentTime();var T=d.mediaElement.g1();var Y=d.N("manifestless_post_live_ufph")||d.N("manifestless_post_live")?vH(T,Math.max(q-3.5,0)):vH(T,q-3.5);Y>=0&&q>T.end(Y)-1.1&&Y+10?(Vo(d.G2,d.getCurrentTime()+d.videoData.limitedPlaybackDurationInSeconds),d.Fw=!0):d.videoData.isLivePlayback&&d.videoData.endSeconds>0&&(Vo(d.G2,d.getCurrentTime()+d.videoData.endSeconds),d.Fw=!0))}; Jc7=function(d,q){var T=d.getCurrentTime(),Y=d.isAtLiveHead(T);if(d.B&&Y){var e=d.B;if(e.G&&!(T>=e.U&&T50&&e.U.shift())),e=d.G,maD(e,T,q===void 0?!0:q),S8H(e,T),q&&osY(d,!0));Y!==d.q5&&(q=d.getCurrentTime()-d.wO<=500,T=d.lF>=1E3,q||T||(q=d.G2.X9,q.qoe&&(q=q.qoe,T=g.Jp(q.provider), g.UV(q,T,"lh",[Y?"1":"0"])),d.q5=Y,d.lF++,d.wO=d.getCurrentTime()))}; osY=function(d,q){if(d.G){var T=d.G;var Y=d.getCurrentTime(),e=T.d4();var U=T.policy.U;T.T||(U=Math.max(U-1,0));U*=z6(T);Y>=e-U||!T.bl()?T=YT+1&&q0&&Hl(d.mediaElement)>0&&(d.U=dF(d,d.U,!1)),q=d.N("html5_pseudogapless_shorts_seek_to_next_start")&&(q==null?void 0:q.seekSource)===60,!d.mediaElement||!xc7(d,q))d.Qp.start(750);else if(!isNaN(d.U)&&isFinite(d.U)&&(q=d.qk-(d.U-d.timestampOffset),!(q===0||Math.abs(q)<.005)))if(q=d.mediaElement.getCurrentTime()-d.U,Math.abs(q)<=d.xx||Math.abs(q)<.005)yc2(d);else{if(d.videoData.PC)d.videoData.PC= !1;else if(!Lt(d.videoData)&&d.U>=d.cG()-.1){d.U=d.cG();d.T.resolve(d.cG());d.Pv.uF()&&d.G2.oU("setEndedInSeek",{tgt:""+d.U,maxst:""+d.cG()});d.G2.Wx();return}try{var T=d.U-d.timestampOffset;d.mediaElement.seekTo(T);d.lr.G=T;d.qk=T;d.j=d.U;d.UD=!1}catch(Y){}}}; xc7=function(d,q){q=q===void 0?!1:q;if(!d.mediaElement||d.mediaElement.Tr()===0||d.mediaElement.hasError())return!1;var T=d.mediaElement.getCurrentTime()>0;return d.videoData.j&&d.videoData.j.G||d.videoData.isLivePlayback||!d.videoData.It()?d.U>=0&&!q&&(q=d.mediaElement.kF(),q.length||!T)?oI(q,d.U-d.timestampOffset):T:T}; yc2=function(d){d.T&&(d.T.resolve(d.mediaElement.getCurrentTime()),d.lr.U=null)}; NVX=function(d,q){d.S&&(d.S.resolve(q),d.G2.JT(),d.Pv.uF()||RAj(d))&&(q=d.BF(),q["native"]=""+ +d.UD,q.otgt=""+(d.U+d.timestampOffset),d.G2.oU("seekEnd",q));oi(d)}; oi=function(d){d.U=NaN;d.X=NaN;d.qk=NaN;d.T=null;d.yv=null;d.S=null;d.z2=!1;d.UD=!1;d.xx=0;d.aU.stop();d.AF.stop()}; Ha_=function(d,q){var T=d.mediaElement,Y=q.type;switch(Y){case "seeking":var e=T.getCurrentTime()+d.timestampOffset;if(!d.T||d.UD&&e!==d.U){d.T=new yQ;d.T.then(function(b){NVX(d,b)},function(){oi(d)}); if(d.videoData.isAd()){var U;Jr6({adCpn:d.videoData.clientPlaybackNonce,contentCpn:(U=d.videoData.yM)!=null?U:""},q.G)}d.qk=e;lt7(d.lr,T.getCurrentTime());d.seekTo(e,{seekSource:104,b$:"seektimeline_mediaElementEvent"});d.UD=!0}break;case "seeked":yc2(d);break;case "loadedmetadata":v8(d.G2)||hAH(d);lC(d);break;case "progress":lC(d);break;case "pause":d.L=d.getCurrentTime()}d.L&&((Y==="play"||Y==="playing"||Y==="timeupdate"||Y==="progress")&&d.getCurrentTime()-d.L>10&&(d.N("html5_sky_skip_pause_jump")? d.G2.oU("skipPauseJump",{evt:Y,cmt:d.getCurrentTime(),lpt:d.L}):d.seekTo(d.L,{b$:"pauseJump"})),Y!=="pause"&&Y!=="play"&&Y!=="playing"&&Y!=="progress"&&(d.L=0))}; QNQ=function(d){return(of(d.videoData)||!!d.videoData.liveUtcStartSeconds)&&(!!d.videoData.liveUtcStartSeconds||TV1(d))&&!!d.videoData.G}; TV1=function(d){return!!d.videoData.startSeconds&&isFinite(d.videoData.startSeconds)&&d.videoData.startSeconds>1E9}; qi_=function(d){var q=0,T=NaN,Y="";if(!d.K)return{startSeconds:q,NS:T,source:Y};d.videoData.yv?q=d.videoData.rO:Lt(d.videoData)&&(q=Infinity);if(g.vr(d.videoData))return{startSeconds:q,NS:T,source:Y};d.videoData.startSeconds?(Y="ss",q=d.videoData.startSeconds):d.videoData.wk&&(Y="stss",q=d.videoData.wk);d.videoData.liveUtcStartSeconds&&(T=d.videoData.liveUtcStartSeconds);if(isFinite(q)&&(q>d.cG()||qd.cG()||T 0?(Y.onesie="0",d.handleError(new g.xV("html5.missingapi",Y)),!1):!0}; OaN=function(d){var q=Tk();eq(q,d);return g.i9(q,Ge2())}; Acg=function(d,q){var T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t,n,K,P,w,l,m,b_,x2,JY,s6;return g.G(function(qH){if(qH.U==1)return q.fetchType="onesie",T=Ng6(q,d.getPlayerSize(),d.getVisibilityState()),Y=new SB(d,T),g.B(qH,Y.fetch(),2);e=qH.G;U={player_response:e};q.loading=!1;b=d.h1.z0;if(Y.lO){J=g.E(Y.lO.entries());for(F=J.next();!F.done;F=J.next())N=F.value,R=g.E(N),x=R.next().value,y=R.next().value,h=x,H=y,b.G.set(h,H,180),h===q.videoId&&(a=H.mF(),q.yI=a);b.J6=Y}p=g.E(Y.Gx.entries());for(t=p.next();!t.done;t= p.next())n=t.value,K=g.E(n),P=K.next().value,w=K.next().value,l=P,m=w,b.U.set(l,m,180);g.QM(q,U,!0);if(q.loading||hw(q))return qH.return(Promise.resolve());b.G.removeAll();b.U.removeAll();q.yI=[];b_={};x2="onesie.response";JY=0;q.errorCode?(x2="auth",b_.ec=q.errorCode,b_.ed=q.errorDetail,b_.es=q.eU||"",JY=2):(b_.successButUnplayable="1",b_.disposed=""+ +q.JF(),b_.afmts=""+ +/adaptiveFormats/.test(e),b_.cpn=q.clientPlaybackNonce);s6=new g.xV(x2,b_,JY);return qH.return(Promise.reject(s6))})}; jNf=function(d,q){var T,Y,e,U,b,J,F,N,R,x,y;return g.G(function(h){switch(h.U){case 1:T=q.isAd(),Y=!T,e=T?1:3,U=0;case 2:if(!(U0)){h.tF(5);break}return g.B(h,LK(5E3),6);case 6:b=new g.CW("Retrying OnePlatform request",{attempt:U}),g.OL(b);case 5:return g.jD(h,7),g.B(h,nrQ(d,q),9);case 9:return h.return();case 7:J=g.nN(h);F=hQ(J);N=F.errorCode;R=d.C();x=R.N("html5_use_network_error_code_enums")?401:"401";Y&&N==="manifest.net.badstatus"&&F.details.rc===x&&(Y=!1,U===e-1&&(e+= 1));if(U===e-1)return y=rc2(T,F.details),y.details.backend="op",y.details.originec=N,h.return(Promise.reject(y));if(N==="auth"||N==="manifest.net.retryexhausted")return h.return(Promise.reject(F));d.handleError(F);if(yb(F.severity)){h.tF(4);break}case 3:U++;h.tF(2);break;case 4:return h.return(Promise.reject(rc2(T,{backend:"op"})))}})}; nrQ=function(d,q){function T(x2){x2.readyState===2&&d.D$("ps_c")} var Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t,n,K,P,w,l,m,b_;return g.G(function(x2){switch(x2.U){case 1:q.fetchType="gp";Y=d.C();e=g.rn(Y,g.$4(q));if(!e.G){U=e.getValue();x2.tF(2);break}return g.B(x2,e.G,3);case 3:U=x2.G;case 2:return b=U,J=OaN(b),F=Ng6(q,d.getPlayerSize(),d.getVisibilityState()),N=g.vG(tzN),R=g.$4(q),x=(0,g.cj)(),y=!1,h="empty",H=0,d.D$("psns"),a={VZ:T},g.B(x2,g.GY(J,F,N,void 0,a),4);case 4:p=x2.G;d.D$("psnr");if(q.JF())return x2.return();p?"error"in p&&p.error?(y=!0,h="esf:"+p.error.message, H=p.error.code):p.errorMetadata&&(y=!0,h="its",H=p.errorMetadata.status):y=!0;if(y)return t=0,n=((0,g.cj)()-x).toFixed(),K={},K=Y.N("html5_use_network_error_code_enums")?{backend:"op",rc:H,rt:n,reason:h,has_kpt:q.pC?"1":"0",has_mdx_env:q.mdxEnvironment?"1":"0",has_omit_key_flag:g.Cs("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:Y.pageId?"1":"0",has_token:R?"1":"0",has_vvt:q.z2?"1":"0",is_mdx:q.isMdxPlayback?"1":"0",mdx_ctrl:q.jj||"",token_eq:R===g.$4(q)?"1":"0"}:{backend:"op", rc:""+H,rt:n,reason:h,has_kpt:q.pC?"1":"0",has_mdx_env:q.mdxEnvironment?"1":"0",has_omit_key_flag:g.Cs("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:Y.pageId?"1":"0",has_token:R?"1":"0",has_vvt:q.z2?"1":"0",is_mdx:q.isMdxPlayback?"1":"0",mdx_ctrl:q.jj||"",token_eq:R===g.$4(q)?"1":"0"},P="manifest.net.connect",H===429?(P="auth",t=2):H>200&&(P="manifest.net.badstatus",H===400&&(t=2)),x2.return(Promise.reject(new g.xV(P,K,t)));q.loading=!1;g.QM(q,{raw_player_response:p},!0); w=p;g.bS(q.C())&&w&&w.trackingParams&&vN(w.trackingParams);if(q.errorCode)return l={ec:q.errorCode,ed:q.errorDetail,es:q.eU||""},x2.return(Promise.reject(new g.xV("auth",l,2)));if(!q.loading&&!hw(q))return m=q.isAd()?"auth":"manifest.net.retryexhausted",b_=q.isAd()?2:1,x2.return(Promise.reject(new g.xV(m,{successButUnplayable:"1",hasMedia:g.mJ(q)?"1":"0"},b_)));g.E6(x2)}})}; ErY=function(d,q,T){function Y(H){H=hQ(H);if(yb(H.severity))return Promise.reject(H);d.handleError(H);return!1} function e(){return!0} var U,b,J,F,N,R,x,y,h;return g.G(function(H){switch(H.U){case 1:var a=d.C();d.getPlayerSize();d.getVisibilityState();d.isFullscreen();if(q.partnerId===38&&a.playerStyle==="books")a=q.videoId.indexOf(":"),a=g.y6("//play.google.com/books/volumes/"+q.videoId.slice(0,a)+"/content/media",{aid:q.videoId.slice(a+1),sig:q.qSD});else if(q.partnerId===30&&a.playerStyle==="docs")a=g.y6("https://docs.google.com/get_video_info",{docid:q.videoId,authuser:q.gq,authkey:q.lJ,eurl:a.Ln});else if(q.partnerId===33&& a.playerStyle==="google-live")a=g.y6("//google-liveplayer.appspot.com/get_video_info",{key:q.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+a.lr);U=a;J=(b=q.isAd())?1:3;F=0;case 2:if(!(F0)){H.tF(5);break}return g.B(H,LK(5E3),6);case 6:R={playerretry:F,playerretrysrc:T},b||(R.recover="embedded"),N=d7(U,R);case 5:return g.B(H,BVD(q,N).then(e,Y),7);case 7:if(x=H.G)return H.return();F++;H.tF(2);break;case 4:y=b?"auth":"manifest.net.retryexhausted";h= b?2:1;if(!b&&Math.random()<1E-4)try{g.OL(new g.CW("b/152131571",btoa(U)))}catch(p){}return H.return(Promise.reject(new g.xV(y,{backend:"gvi"},h)))}})}; BVD=function(d,q){function T(p){return Y(p.xhr)} function Y(p){if(!d.JF()){p=p?p.status:-1;var t=0,n=((0,g.cj)()-R).toFixed();n=e.N("html5_use_network_error_code_enums")?{backend:"gvi",rc:p,rt:n}:{backend:"gvi",rc:""+p,rt:n};var K="manifest.net.connect";p===429?(K="auth",t=2):p>200&&(K="manifest.net.badstatus",p===400&&(t=2));return Promise.reject(new g.xV(K,n,t))}} var e,U,b,J,F,N,R,x,y,h,H,a;return g.G(function(p){if(p.U==1){d.fetchType="gvi";e=d.C();var t={};d.GE&&(t.ytrext=d.GE);(J=g.FV(t)?void 0:t)?(U={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:J},b=d7(q,{action_display_post:1})):(U={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},b=q);F={};e.sendVisitorIdHeader&&d.visitorData&&(F["X-Goog-Visitor-Id"]=d.visitorData);(N=Md(e.experiments,"debug_sherlog_username"))&&(F["X-Youtube-Sherlog-Username"]=N);Object.keys(F).length> 0&&(U.headers=F);R=(0,g.cj)();return g.B(p,GE(E3,b,U).then(void 0,T),2)}x=p.G;if(!x||!x.responseText)return p.return(Y(x));d.loading=!1;y=lF(x.responseText);g.QM(d,y,!0);if(d.errorCode)return h={ec:d.errorCode,ed:d.errorDetail,es:d.eU||""},p.return(Promise.reject(new g.xV("auth",h,2)));if(!d.loading&&!hw(d))return H=d.isAd()?"auth":"manifest.net.retryexhausted",a=d.isAd()?2:1,p.return(Promise.reject(new g.xV(H,{successButUnplayable:"1"},a)));g.E6(p)})}; rc2=function(d,q){return new g.xV(d?"auth":"manifest.net.retryexhausted",q,d?2:1)}; U8=function(d,q,T){T=T===void 0?!1:T;var Y,e,U,b;g.G(function(J){if(J.U==1){Y=d.C();if(T&&(!g.an(Y)||bH(q)!=="embedded")||q.G_||bH(q)!=="adunit"&&(g.ho(Y)||Ni(Y)||g.KG(Y)||g.jZ(Y)||g.XW(Y)||Hx(Y)==="WEB_CREATOR"))return J.return();e=g.rn(Y,g.$4(q));return e.G?g.B(J,e.G,3):(U=e.getValue(),J.tF(2))}J.U!=2&&(U=J.G);b=U;return J.return(KSX(d,q,b))})}; KSX=function(d,q,T){var Y,e,U,b,J;return g.G(function(F){if(F.U==1){g.jD(F,2);Y=OaN(T);var N=q.C();g.KW();var R={context:g.jf(q),videoId:q.videoId,racyCheckOk:q.racyCheckOk,contentCheckOk:q.contentCheckOk,autonavState:"STATE_NONE"};bH(q)==="adunit"&&(R.isAdPlayback=!0);N.embedConfig&&(R.serializedThirdPartyEmbedConfig=N.embedConfig);N.sQ&&(R.showContentOwnerOnly=!0);q.jx&&(R.showShortsOnly=!0);g.Gy(0,141)&&(R.autonavState=g.Gy(0,140)?"STATE_OFF":"STATE_ON");if(g.cT(N)){var x=g.Gy(0,65);x=x!=null? !x:!1;var y=!!g.Zs("yt-player-sticky-caption");R.captionsRequested=x&&y}var h;if(N=(h=N.getWebPlayerContextConfig())==null?void 0:h.encryptedHostFlags)R.playbackContext={encryptedHostFlags:N};e=R;U=g.vG(GVH);d.D$("wn_s");return g.B(F,g.GY(Y,e,U),4)}if(F.U!=2)return b=F.G,d.D$("wn_r"),!b||"error"in b&&b.error||(J=b,g.bS(q.C())&&J.trackingParams&&vN(J.trackingParams),g.QM(q,{raw_watch_next_response:b},!1)),g.ZX(F,0);g.nN(F);g.E6(F)})}; LSX=function(d){d.D$("vir");d.D$("ps_s");tU("vir",void 0,"video_to_ad");var q=ZaI(d);q.then(function(){d.D$("virc");tU("virc",void 0,"video_to_ad");d.D$("ps_r");tU("ps_r",void 0,"video_to_ad")},function(){d.D$("virc"); tU("virc",void 0,"video_to_ad")}); return q}; g.JG=function(d,q,T,Y,e,U,b,J,F,N){F=F===void 0?new g.yM(d):F;N=N===void 0?!0:N;g.YP.call(this);var R=this;this.Pv=d;this.playerType=q;this.rz=T;this.eb=Y;this.getVisibilityState=U;this.visibility=b;this.h1=J;this.videoData=F;this.Ty=N;this.logger=new g.cb("VideoPlayer");this.Bl=null;this.lY=new jO;this.N2=null;this.OY=!0;this.ED=this.loader=null;this.Lt=[];this.dJ=new eR;this.zA=this.Ul=null;this.Jd=new eR;this.jL=null;this.GV=this.w9=!1;this.iH=NaN;this.FI=!1;this.playerState=new g.EX;this.yc=[]; this.nY=new g.aI;this.Ha=new UZQ(this);this.mediaElement=null;this.I4=new g.f9(this.zYF,15E3,this);this.dg=this.hL=!1;this.PV=NaN;this.E1=!1;this.GF=0;this.X7=!1;this.xg=NaN;this.im=new qa(new Map([["bufferhealth",function(){return Xcn(R.sF)}], ["bandwidth",function(){return R.L7()}], ["networkactivity",function(){return R.Pv.schedule.yv}], ["livelatency",function(){return R.isAtLiveHead()&&R.isPlaying()?kV1(R):NaN}], ["rawlivelatency",function(){return kV1(R)}]])); this.jR=0;this.loop=!1;this.playbackRate=1;this.eZ=0;this.sF=new dcN(this);this.Lv=!1;this.T8=[];this.zY=this.DW=0;this.Yd=this.lD=!1;this.fL=this.Cw=0;this.xu=new g.f9(this.vI,0,this);this.le=!1;this.Rd=null;this.YDv=[this.nY,this.xu,this.I4,this.im];this.DR=this.eS=null;this.nz=function(){var x=R.X9;x.provider.Pv.Je||x.provider.G2.getVisibilityState()===3||(x.provider.Pv.Je=!0);x.bX();if(x.U){var y=x.U;y.S&&y.G<0&&y.provider.G2.getVisibilityState()!==3&&L_H(y)}x.qoe&&(x=x.qoe,x.AF&&x.j<0&&x.provider.Pv.Je&& y7Y(x),x.T&&sV(x));R.loader&&bf(R);R.Pv.H$&&!R.videoData.backgroundable&&R.mediaElement&&!R.pA()&&(R.isBackground()&&R.mediaElement.l_()?(R.oU("bgmobile",{suspend:1}),R.Zp(!0,!0)):R.isBackground()||Xa(R)&&R.oU("bgmobile",{resume:1}))}; this.fC={mL:function(x){R.mL(x)}, kOk:function(x){R.Bl=x}, U2k:function(){return R.X9}, Eg:function(){return R.ED}, qZf:function(){return R.fu}, m15:function(){return R.U7}, ho2:function(){}, C:function(){return R.Pv}, WG:function(){return R.mediaElement}, bwU:function(x){R.Rx(x)}, d2w:function(){return R.eb}}; this.logger.debug(function(){return"creating, type "+q}); this.uL=new Pf2(this.Pv);this.f8=new Ap(this.Pv,this.eb,this);this.Mp=new g.W8(this,function(x,y){x!==g.Sh("endcr")||g.I(R.playerState,32)||R.Wx();e(x,y,R.playerType);if(x===g.Sh("transitiondetector")&&(x=R.loader)!=null&&(x=x.fn)!=null){var h=g.E(BdN(y.id));h.next();h=h.next().value;OtH(x,h,y.start/1E3-x.G2.mz(),MHg(x.T))}}); g.C(this,this.Mp);g.C(this,this.sF);P0N(this,F);this.videoData.subscribe("dataupdated",this.plk,this);this.videoData.subscribe("dataloaded",this.s7,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.oU,this);this.videoData.subscribe("ctmpstr",this.f_,this);!this.X9||this.X9.JF();this.X9=new g.P8(new kN(this.videoData,this.Pv,this));YVj(this.nz);this.visibility.subscribe("visibilitystatechange",this.nz);this.fu=new g.f9(this.B0,g.Yv(this.Pv.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.U7=new g.f9(this.B0,g.Yv(this.Pv.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.QR=new g.mE(this.YF5,350,this);g.C(this,this.QR)}; P0N=function(d,q){if(d.playerType===2||d.Pv.W$)q.Hi=!0;var T=ZS7(q.R6,q.fh,d.Pv.T,d.Pv.B);T&&(q.adFormat=T);d.playerType===2&&(q.k9=!0);if(d.isFullscreen()||d.Pv.T)T=g.Zs("yt-player-autonavstate"),q.autonavState=T||(d.Pv.T?2:d.videoData.autonavState);q.endSeconds&&q.endSeconds>q.startSeconds&&Vo(d,q.endSeconds)}; WSQ=function(d){var q=d.videoData;LSX(d).then(void 0,function(T){d.videoData!==q||q.JF()||(T=hQ(T),T.errorCode==="auth"&&d.videoData.errorDetail?d.o6(T.errorCode,2,unescape(d.videoData.errorReason),RI(T.details),d.videoData.errorDetail,d.videoData.eU||void 0):d.handleError(T))})}; DcX=function(d){if(!g.I(d.playerState,128))if(d.videoData.isLoaded(),d.logger.debug("finished loading playback data"),d.Lt=g.rL(d.videoData.K),g.mJ(d.videoData)){d.rz.tick("bpd_s");s8(d).then(function(){d.rz.tick("bpd_c");if(!d.JF()){d.w9&&(d.Vp(Ae(Ae(d.playerState,512),1)),Xa(d));var Y=d.videoData;Y.endSeconds&&Y.endSeconds>Y.startSeconds&&Vo(d,Y.endSeconds);d.dJ.finished=!0;$s(d,"dataloaded");d.Jd.G0()&&C0_(d);G62(d.f8,d.zA)}}); d.N("html5_log_media_perf_info")&&d.oU("loudness",{v:d.videoData.LC.toFixed(3)},!0);var q,T=(q=d.mediaElement)==null?void 0:q.tA();if(T&&"disablePictureInPicture"in T&&d.Pv.pS)try{T.disablePictureInPicture=d.Pv.fp&&!d.videoData.backgroundable}catch(Y){g.OL(Y)}uif(d)}else $s(d,"dataloaded")}; s8=function(d){gF(d);d.zA=null;var q=CfX(d.Pv,d.videoData,d.pA());d.Ul=q;d.Ul.then(function(T){wcQ(d,T)},function(T){d.JF()||(T=hQ(T),d.visibility.isBackground()?(Fa(d,"vp_none_avail"),d.Ul=null,d.dJ.reset()):(d.dJ.finished=!0,d.o6(T.errorCode,T.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",RI(T.details))))}); return q}; wcQ=function(d,q){if(!d.JF()&&!q.videoData.JF()){d.logger.debug("finished building playback data");d.zA=q;Yif(d.sF,d.zA);if(d.videoData.isLivePlayback){var T=ffD(d.h1.z0,d.videoData.videoId)||d.loader&&!isNaN(d.loader.z2);T=d.N("html5_onesie_live")&&T;v8(d)||d.videoData.lF>0&&!kp(d.videoData)||T||d.seekTo(d.cG(),{b$:"videoplayer_playbackData",seekSource:18})}if(d.videoData.j.G){if(TgY(d.videoData)){d.o6("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",RI({missabrurl:1}));return}d.loader?g.OL(Error("Duplicated Loader")): (T=g.Yv(d.Pv.experiments,"html5_onesie_defer_content_loader_ms"))&&d.k6()&&ffD(d.h1.z0,d.videoData.wlg)?g.s3(function(){d.JF()||d.loader||zA2(d)},T):zA2(d)}else!d.videoData.j.G&&NC(d.videoData)&&d.FH(new A5(d.videoData.videoId||"",4)); d.M2();p86(q).then(function(){var Y={};d.J8(Y);d.Pv.uF()&&d.N("html5_log_media_perf_info")&&d.oU("av1Info",Y);bf(d)})}}; C0_=function(d){d.JF();d.logger.debug("try finish readying playback");if(d.Jd.finished)d.logger.debug("already finished readying");else if(d.dJ.finished)if(g.I(d.playerState,128))d.logger.debug("cannot finish readying because of error");else if(d.Lt.length)d.logger.debug(function(){return"cannot finish readying because of pending preroll: "+d.Lt}); else if(d.Mp.started||rG2(d.Mp),d.S8())d.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{d.loader&&(d.GV=dGN(d.loader.timing));d.Jd.finished||(d.Jd.finished=!0);var q=d.N("html5_onesie_live")&&d.loader&&!isNaN(d.loader.z2);!d.videoData.isLivePlayback||d.videoData.lF>0&&!kp(d.videoData)||q||v8(d)||(d.logger.debug("seek to head for live"),d.seekTo(Infinity,{b$:"videoplayer_readying",seekSource:18}),d.isBackground()&&(d.dg=!0));xaY(d.X9);d.logger.debug("finished readying playback"); d.publish("playbackready");nU("pl_c",d.rz.timerName)||(d.rz.tick("pl_c"),tU("pl_c",void 0,"video_to_ad"));nU("pbr",d.rz.timerName)||(d.rz.tick("pbr"),tU("pbr",void 0,"video_to_ad"))}else d.logger.debug("playback data not loaded")}; Vo=function(d,q){d.N2&&iaI(d);d.N2=new g.Ij(q*1E3,0x7ffffffffffff);d.N2.namespace="endcr";d.addCueRange(d.N2)}; iaI=function(d){d.removeCueRange(d.N2);d.N2=null}; IfD=function(d,q,T,Y,e){var U=d.X9,b=d.videoData;b.U=T;var J=g.Na(d);T=new h5f(b,T,q,J?J.itag:"",Y);d.Pv.experiments.Wv("html5_refactor_sabr_video_format_selection_logging")?(T.videoId=e,d.DR=T):U.qoe&&xC_(U.qoe,T);e=d.f8;e.U=0;e.G=0;d.publish("internalvideoformatchange",b,q==="m")}; g.Na=function(d){var q=RZ(d);return nY(q)||!d.zA?null:g.QN(d.zA.G.videoInfos,function(T){return q.T(T)})}; RZ=function(d){if(d.zA){var q=d.f8;var T=d.zA;d=d.qT();var Y=Qi2(q);if(nY(Y)){if(Y=q.e1(T).compose(jiD(q,T)).compose(Apf(q,T)).compose(Bk6(q,T.videoData)).compose(K_2(q,T.videoData,T)).compose(tOg(q,T)).compose(cpN(q,T)),nY(d)||q.N("html5_apply_pbr_cap_for_drm"))Y=Y.compose(EN_(q,T))}else q.N("html5_perf_cap_override_sticky")&&(Y=Y.compose(tOg(q,T))),q.N("html5_ustreamer_cap_override_sticky")&&(Y=Y.compose(EN_(q,T)));Y=Y.compose(cpN(q,T));q=T.videoData.Ja.compose(Y).compose(T.videoData.b_).compose(d)}else q= xp;return q}; VZY=function(d){var q=d.f8;d=d.videoData;var T=Bk6(q,d);q.N("html5_disable_client_autonav_cap_for_onesie")||T.compose(K_2(q,d));return T}; bf=function(d){if(d.videoData.j&&d.videoData.j.G){var q=RZ(d);d.loader&&K7H(d.loader,q)}}; mcI=function(d){var q;return!!(d.N("html5_native_audio_track_switching")&&g.F8&&((q=d.videoData.U)==null?0:uW(q)))}; Si1=function(d){if(!mcI(d))return!1;var q;d=(q=d.mediaElement)==null?void 0:q.audioTracks();return!!(d&&d.length>1)}; vrj=function(d){var q=lf2(d);if(q)return d.videoData.getAvailableAudioTracks().find(function(T){return T.DQ.getName()===q})}; lf2=function(d){var q;if(d=(q=d.mediaElement)==null?void 0:q.audioTracks())for(q=0;q0&&(q.E$=T.Kw));q.Pf=T.wU;q.hq=Y8(Y,{},T.j||void 0,nt(T));q.Fw=OB(T)&&(g.KG(Y)||g.jZ(Y));tw(T)&&(q.S=!0,q.VY=Y.N("html5_estimate_live_partial_slice_duration"),q.ST=!0,Y.N("html5_sabr_report_partial_segment_estimated_duration")&& (q.Zs=!0),q.G=!0,q.JW=Y.N("html5_sabr_enable_live_clock_offset"),q.Se=Y.N("html5_disable_client_resume_policy_for_sabr"),q.Lh=Y.N("html5_trigger_loader_when_idle_network"),q.eC=Y.N("html5_sabr_parse_live_metadata_playback_boundaries"),q.H1=Y.N("html5_consume_onesie_next_request_policy_for_sabr"),q.OW=Y.N("html5_sabr_report_next_ad_break_time"),q.aZ=Y.N("html5_log_high_res_buffer_timeline")&&Y.uF(),q.BJ=Y.N("html5_remove_stuck_slices_beyond_max_buffer_limits"),q.M0=Y.N("html5_gapless_sabr_btl_last_slice")&& Zu(T),q.iA=Y.N("html5_reset_last_appended_slice_on_seek")&&Zu(T),kp(T)?(q.WJ=!0,q.Nf=Y.N("html5_disable_variability_tracker_for_live"),q.AF=!0,Y.N("html5_simplified_backup_timeout_sabr_live")&&(q.zr=!0,q.XF=q.hs)):q.zq=Y.N("html5_probe_request_on_sabr_request_progress"),q.Fc=Y.N("html5_serve_start_seconds_seek_for_post_live_sabr"),q.dA=Y.N("html5_flush_index_on_updated_timestamp_offset"),q.K=tw(T),q.Pa=Y.N("html5_ignore_partial_segment_from_live_readahead"),Y.N("html5_include_partial_segment_for_jumbo_ll")&& Pr(T)&&(q.Pa=!1),q.Au=Y.N("html5_use_non_active_broadcast_for_post_live"),q.z2=Y.N("html5_use_centralized_player_time"),q.q5=Y.N("html5_log_centralized_player_time"),q.Ox=Y.N("html5_consume_onesie_sabr_seek"),q.UD=Y.N("html5_enable_sabr_seek_loader_refactor"),q.xU=Y.N("html5_update_segment_start_time_from_media_header"),T.enableServerStitchedDai&&(q.U=!0,q.GD=Y.N("html5_reset_server_stitch_state_for_non_sabr_seek"),q.gx=Y.N("html5_remove_ssdai_append_pause")&&!T.y5(),q.R6=Y.N("html5_ssdai_log_ssevt_in_loader")|| Y.N("html5_ssdai_log_ssevt_in_loader_200ms")||Y.N("html5_ssdai_log_ssevt_in_loader_timers")||Y.N("html5_ssdai_log_ssevt_in_loader_cuerange"),Y.N("html5_ssdai_log_ssevt_in_loader_timers")?q.kx=1:Y.N("html5_ssdai_log_ssevt_in_loader_200ms")?q.kx=3:Y.N("html5_ssdai_log_ssevt_in_loader_cuerange")&&(q.kx=0)),q.r3=Y.uF()||T.y5());q.wk=g.d7_(T);fY(Y.S,zG.BITRATE)&&(q.Vv=NaN);if(J=g.Yv(Y.experiments,"html5_request_size_max_kb"))q.RU=J*1024;Y.S.j?q.B3="; "+zG.EXPERIMENTAL.name+"=allowed":Y.N("html5_enable_cobalt_tunnel_mode")&& g.WL()&&(J=zG.TUNNELMODE,q.B3="; "+J.name+"="+J.valid);T=T.serverPlaybackStartConfig;(T==null?0:T.enable)&&(T==null?0:T.playbackStartPolicy)&&(q.Dc=!0,YW(q,T.playbackStartPolicy,2));T=orI(d);d.lY.removeAll();a:{J=d.h1.z0;if(Y=d.videoData.videoId)if(e=J.G.get(Y)){J.G.remove(Y);J=e;break a}J=void 0}d.loader=new g.NZ(d,d.Pv.schedule,q,d.videoData.G,d.videoData.j,RZ(d),T,d.videoData.enableServerStitchedDai,J,d.videoData.lr);q=d.videoData.N("html5_disable_preload_for_ssdai_with_preroll")&&d.videoData.isLivePlayback&& d.k6()?!0:d.w9&&g.ho(d.Pv)&&d.videoData.isLivePlayback;d.loader.initialize(d.getCurrentTime(),RZ(d),q);d.videoData.probeUrl&&(d.loader.Bv=d.videoData.probeUrl);if(d.Lt.length||d.w9)d.videoData.cotn||xs(d,!1);UcY(d.sF,d.loader);d.Rd&&(TRN(d.loader,new g.Ri(d.Rd)),d.oU("sdai",{sdl:1}));g.y2(d.videoData)&&(d=d.loader,d.policy.TB=d.policy.In)}; gF=function(d){d.loader&&(d.loader.dispose(),d.loader=null,UcY(d.sF,null));d.Tz()?Vzj(d):d.B$()}; Vzj=function(d){if(d.ED)if(d.logger.debug("release media source"),d.dD(),d.ED.S)try{d.Pv.uF()&&d.oU("rms",{l:"vprms",sr:d.Tz(),rs:Rp(d.ED)});d.ED.clear();var q;(q=d.mediaElement)!=null&&(q.U=d.ED);d.ED=null}catch(T){q=new g.CW("Error while clearing Media Source in VideoPlayer: "+T.name+", "+T.message),q=hQ(q),d.handleError(q),d.B$()}else d.B$()}; dlg=function(d,q){q=q===void 0?!1:q;if(d.ED)return d.ED.j;d.logger.debug("update media source");a:{q=q===void 0?!1:q;try{g.WL()&&d.videoData.P5()&&Iy6(d.mediaElement);var T=d.mediaElement.Eg(d.Ko(),d.A_())}catch(e){if($Zn(d.Ha,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",e);d.o6("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}d.uY(T,!1,!1,q)}var Y;return((Y=d.Eg())==null?void 0:Y.j)||null}; qaD=function(d,q){q=q===void 0?!1:q;if(d.loader){d.videoData.enableServerStitchedDai&&$yj(d.loader);var T=d.getCurrentTime()-d.mz();d.loader.seek(T,{UI:q}).C8(function(){})}else zA2(d)}; YaD=function(d,q,T,Y){T=T===void 0?!1:T;Y=Y===void 0?!1:Y;if(d.ED&&(!q||d.ED===q)){d.logger.debug("media source opened");var e=d.getDuration();!e&&kp(d.videoData)&&(e=25200);if(d.ED.isView){var U=e;d.logger.debug(function(){return"Set media source duration to "+U+", video duration "+e}); U>d.ED.getDuration()&&Tr6(d,U)}else Tr6(d,e);r71(d.loader,d.ED,T,Y);d.publish("mediasourceattached")}}; Tr6=function(d,q){if(d.ED){d.ED.lV(q);var T;(T=d.loader)!=null&&T.policy.z2&&(T.X=q)}}; L7Y=function(d,q){IfD(d,q.reason,q.G.info,q.token,q.videoId)}; $s=function(d,q){d.publish("internalvideodatachange",q===void 0?"dataupdated":q,d.videoData)}; e$_=function(d){for(var q=g.E("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),T=q.next();!T.done;T=q.next())d.nY.W(d.mediaElement,T.value,d.Rx,d);d.Pv.IF&&d.mediaElement.RK()&&(d.nY.W(d.mediaElement,"webkitplaybacktargetavailabilitychanged",d.Hfr,d),d.nY.W(d.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",d.uwg,d))}; bqD=function(d){g.Fq(d.iH);UlQ(d)||(d.iH=g.$A(function(){return UlQ(d)},100))}; UlQ=function(d){var q=d.mediaElement;q&&d.hL&&!d.videoData.UD&&!nU("vfp",d.rz.timerName)&&q.Tr()>=2&&!q.isEnded()&&qF(q.g1())&&d.rz.tick("vfp");return(q=d.mediaElement)&&!d.videoData.UD&&q.getDuration()>0&&(q.isPaused()&&q.Tr()>=2&&qF(q.g1())&&(nU("pbp",d.rz.timerName)||d.rz.tick("pbp"),!d.videoData.PR||d.FI||q.isSeeking()||(d.FI=!0,d.publish("onPlaybackPauseAtStart"))),q=q.getCurrentTime(),CE(d.uL,q))?(d.eR(),!0):!1}; Jg6=function(d){d.X9.S$();if(Lt(d.videoData)&&Date.now()>d.eZ+6283){if(!(!d.isAtLiveHead()||d.videoData.G&&zE(d.videoData.G))){var q=d.X9;if(q.qoe){q=q.qoe;var T=q.provider.G2.vS(),Y=g.Jp(q.provider);XUj(q,Y,T);T=T.j;isNaN(T)||g.UV(q,Y,"e2el",[T.toFixed(3)])}}d.N("html5_alc_live_log_rawlat")?(q=d.videoData,q=g.xv(q.C())?!0:g.Qv(q.C())?q.drmProduct==="6":!1):q=g.xv(d.Pv);Y=d.N("html5_always_log_rawlat");(q||Y)&&d.oU("rawlat",{l:Ys(d.im,"rawlivelatency").toFixed(3)});d.eZ=Date.now()}d.videoData.U&& uW(d.videoData.U)&&(q=d.Av())&&q.videoHeight!==d.zY&&(d.zY=q.videoHeight,IfD(d,"a",X9D(d,d.videoData.AF)))}; X9D=function(d,q){if(q.G.video.quality==="auto"&&uW(q.getInfo())&&d.videoData.qC)for(var T=g.E(d.videoData.qC),Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,Y.getHeight()===d.zY&&Y.G.video.quality!=="auto")return Y.getInfo();return q.getInfo()}; kV1=function(d){if(!Lt(d.videoData))return NaN;var q=0;d.loader&&d.videoData.G&&(q=kp(d.videoData)?d.loader.S9.W4()||0:d.videoData.G.z2);return(0,g.cj)()/1E3-d.fH()-q}; $lf=function(d){d.mediaElement&&d.mediaElement.pA()&&(d.xg=(0,g.cj)());d.Pv.hs?g.s3(function(){sW7(d)},0):sW7(d)}; sW7=function(d){var q;if((q=d.ED)==null||!q.Ao()){if(d.mediaElement)try{d.jL=d.mediaElement.playVideo()}catch(Y){Fa(d,"err."+Y)}if(d.jL){var T=d.jL;T.then(void 0,function(Y){d.logger.debug(function(){return"playMediaElement failed: "+Y}); if(!g.I(d.playerState,4)&&!g.I(d.playerState,256)&&d.jL===T)if(Y&&Y.name==="AbortError"&&Y.message&&Y.message.includes("load"))d.logger.debug(function(){return"ignore play media element failure: "+Y.message}); else{var e="promise";Y&&Y.name&&(e+=";m."+Y.name);Fa(d,e);d.Lv=!0;d.videoData.qU=!0}})}}}; Fa=function(d,q){g.I(d.playerState,128)||(d.Vp(Z2(d.playerState,1028,9)),d.oU("dompaused",{r:q}),d.publish("onAutoplayBlocked"))}; Xa=function(d,q){q=q===void 0?!1:q;if(!d.mediaElement||!d.videoData.j)return!1;var T=q;T=T===void 0?!1:T;var Y=null;var e;if((e=d.videoData.j)==null?0:e.G){Y=dlg(d,T);var U;(U=d.loader)==null||U.resume()}else gF(d),d.videoData.AF&&(Y=d.videoData.AF.Ld());e=d.mediaElement.l_();T=!1;e&&e.equals(Y)||(gBI(d,Y),T=!0);g.I(d.playerState,2)||(Y=d.sF,q=q===void 0?!1:q,Y.S||!(Y.j>0)||Y.mediaElement&&Y.mediaElement.getCurrentTime()>0||(q={b$:"seektimeline_resumeTime",UI:q},Y.videoData.UD||(q.seekSource=15), Y.seekTo(Y.j,q)));a:{q=T;if(tw(d.videoData)){if(!d.videoData.It())break a}else if(!g.ft(d.videoData))break a;if(d.mediaElement)if((Y=d.videoData.S)&&d.mediaElement.RK()){e=d.mediaElement.tA();if(d.Bl)if(e!==d.Bl.element)yk(d);else if(q&&Y.flavor==="fairplay"&&!CZ())yk(d);else break a;if(d.N("html5_report_error_for_unsupported_tvos_widevine")&&CZ()&&Y.flavor==="widevine")d.o6("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{d.Bl=new myn(e,d.videoData,d.Pv);d.Bl.subscribe("licenseerror", d.LJ,d);d.Bl.subscribe("qualitychange",d.tvF,d);d.Bl.subscribe("heartbeatparams",d.i6,d);d.Bl.subscribe("keystatuseschange",d.mL,d);d.Bl.subscribe("ctmp",d.oU,d);q=g.E(d.lY.keys);for(Y=q.next();!Y.done;Y=q.next())Y=d.lY.get(Y.value),d.Bl.Wq(Y);d.N("html5_eme_loader_sync")||d.lY.removeAll()}}else d.o6("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return T}; gBI=function(d,q){d.rz.tick("vta");tU("vta",void 0,"video_to_ad");d.getCurrentTime()>0&&sNg(d.sF,d.getCurrentTime());d.mediaElement.activate(q);d.ED&&SX(4);!d.videoData.UD&&d.playerState.isOrWillBePlaying()&&d.I4.start();if(mcI(d)){var T;if(q=(T=d.mediaElement)==null?void 0:T.audioTracks())q.onchange=function(){d.publish("internalaudioformatchange",d.videoData,!0)}}}; yk=function(d){d.Bl&&(d.Bl.dispose(),d.Bl=null)}; FG_=function(d){var q=q===void 0?!1:q;d.logger.debug("reattachVideoSource");d.mediaElement&&(d.ED?(yk(d),d.B$(),dlg(d,q)):(d.videoData.AF&&d.videoData.AF.vT(),d.mediaElement.stopVideo()),d.playVideo())}; Nr1=function(d,q){d.Pv.N("html5_log_rebuffer_reason")&&(q={r:q,lact:QF()},d.mediaElement&&(q.bh=QQ(d.mediaElement)),d.oU("bufreason",q))}; R$Q=function(d,q){if(d.Pv.uF()&&d.mediaElement){var T=d.mediaElement.BF();T.omt=(d.mediaElement.getCurrentTime()+d.mz()).toFixed(3);T.ps=d.playerState.state.toString(16);T.rt=(g.Jp(d.X9.provider)*1E3).toFixed();T.e=q;d.T8[d.DW++%5]=T}try{if(q==="timeupdate"||q==="progress")return}catch(Y){}d.logger.debug(function(){return"video element event "+q})}; xln=function(d){if(d.Pv.uF()){d.T8.sort(function(Y,e){return+Y.rt-+e.rt}); for(var q=g.E(d.T8),T=q.next();!T.done;T=q.next())T=T.value,d.oU("vpe",Object.assign({t:T.rt},T));d.T8=[];d.DW=0}}; yg6=function(d){if(g.kA("cobalt")&&g.kA("nintendo switch")){var q=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;d.oU("nxdock",{d:q})}}; xs=function(d,q){var T;(T=d.loader)==null||A7_(T,q)}; uif=function(d){HU(d.videoData,"html5_set_debugging_opt_in")&&(d=g.KW(),g.Gy(0,183)||(kO(183,!0),d.save()))}; gWN=function(d,q){d.h1.MN()||(d.oU("sgap",{f:q}),d.h1.clearQueue(!1,q==="pe"))}; v8=function(d){return d.N("html5_disable_video_player_initiated_seeks")&&tw(d.videoData)}; h$j=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);A7(this.api,"isLifaAdPlaying",function(){return q.api.isLifaAdPlaying()}); this.events.W(d,"serverstitchedvideochange",function(){var T;(T=q.api.getVideoData())!=null&&T.y5()&&(q.api.isLifaAdPlaying()?(q.playbackRate=q.api.getPlaybackRate(),q.api.setPlaybackRate(1)):q.api.setPlaybackRate(q.playbackRate))}); this.playbackRate=1}; hG=function(d){jq.call(this,"\u5faa\u73af\u64ad\u653e",g.rR.yd);this.J=d;var q=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:L2n();this.setIcon(q);this.subscribe("select",this.U,this);d.createClientVe(this.element,this,28661);this.W(d,"settingsMenuVisibilityChanged",this.G);this.listen("click",this.logClick);this.W(d,"onLoopChange",this.onLoopChange);az(this,d.getLoopVideo());d.dB().rk(this)}; Hq1=function(d){xT.call(this,d);var q=this;d.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new hG(q.api),g.C(q,q.menuItem))}); d.addEventListener("videodatachange",function(T,Y){T=q.api.getPresentingPlayerType()===2;var e;(e=q.menuItem)==null||e.OM(!Y.isLivePlayback&&!T)})}; QWn=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);A7(this.api,"seekToChapterWithAnimation",function(T){q.seekToChapterWithAnimation(T)}); A7(this.api,"seekToTimeWithAnimation",function(T,Y){q.seekToTimeWithAnimation(T,Y)}); A7(this.api,"renderChapterSeekingAnimation",function(T,Y,e){q.api.renderChapterSeekingAnimation(T,Y,e)}); A7(this.api,"setMacroMarkers",function(T){q.setMacroMarkers(d,T)}); A7(this.api,"changeMarkerVisibility",function(T,Y,e){q.changeMarkerVisibility(T,Y,e)}); A7(this.api,"isSameMarkerTypeVisible",function(T){return q.isSameMarkerTypeVisible(T)})}; Mgn=function(d,q,T){var Y=d.api.getCurrentTime()*1E30&&e>0&&(T.width+=e,g.Dv(q.element,"width",T.width+"px")));d.size=T}}; g.Kc=function(d,q){var T=d.G[d.G.length-1];T!==q&&(d.G.push(q),VgH(d,T,q))}; g.GQ=function(d){if(!(d.G.length<=1)){var q=d.G.pop(),T=d.G[0];d.G=[T];VgH(d,q,T,!0)}}; VgH=function(d,q,T,Y){dN1(d);q&&(q.unsubscribe("size-change",d.OJ,d),q.unsubscribe("back",d.l1,d));T.subscribe("size-change",d.OJ,d);T.subscribe("back",d.l1,d);if(d.PF){g.d9(T.element,Y?"ytp-panel-animate-back":"ytp-panel-animate-forward");T.IU(d.element);T.focus();d.element.scrollLeft=0;d.element.scrollTop=0;var e=d.size;oBI(d);g.or(d.element,e);d.X=new g.f9(function(){qkI(d,q,T,Y)},20,d); d.X.start()}else T.IU(d.element),q&&q.detach()}; qkI=function(d,q,T,Y){d.X.dispose();d.X=null;g.d9(d.element,"ytp-popup-animating");Y?(g.d9(q.element,"ytp-panel-animate-forward"),g.TR(T.element,"ytp-panel-animate-back")):(g.d9(q.element,"ytp-panel-animate-back"),g.TR(T.element,"ytp-panel-animate-forward"));g.or(d.element,d.size);d.L=new g.f9(function(){g.TR(d.element,"ytp-popup-animating");q.detach();g.YG(q.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);d.L.dispose();d.L=null},250,d); d.L.start()}; dN1=function(d){d.X&&g.ic(d.X);d.L&&g.ic(d.L)}; Lc=function(d){g.B$.call(this,d,"ytp-shopping-product-menu");this.ws=new g.rF(this.J);g.C(this,this.ws);this.hide();g.Kc(this,this.ws);g.o6(this.J,this.element,4)}; Ykj=function(d,q,T){var Y,e=q==null?void 0:(Y=q.text)==null?void 0:Y.simpleText;e&&(T=TlY(d,T,e,q==null?void 0:q.icon,q==null?void 0:q.secondaryIcon),q.navigationEndpoint&&T.listen("click",function(){d.J.gO("innertubeCommand",q.navigationEndpoint);d.hide()},d))}; et2=function(d,q,T){var Y,e=q==null?void 0:(Y=q.text)==null?void 0:Y.simpleText;e&&TlY(d,T,e,q==null?void 0:q.icon).listen("click",function(){var U;(q==null?void 0:(U=q.icon)==null?void 0:U.iconType)==="HIDE"?d.J.publish("featuredproductdismissed"):q.serviceEndpoint&&d.J.gO("innertubeCommand",q.serviceEndpoint);d.hide()},d)}; TlY=function(d,q,T,Y,e){q=new g.gR(g.Fp({},[],!1,!!e),q,T);e&&q.updateValue("secondaryIcon",UN1(e));q.setIcon(UN1(Y));g.C(d,q);d.ws.rk(q,!0);return q}; UN1=function(d){if(!d)return null;switch(d.iconType){case "ACCOUNT_CIRCLE":return{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return EO1();case "HIDE":return{Y:"svg",Z:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"g",V:[{Y:"path",Z:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return ck()}}; ks=function(d){O8.call(this,d,!1,!0);this.isCounterfactual=this.U=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.B=!0;this.overflowButton=new g.f({Y:"button",hF:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.C(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.f({Y:"img",D:"ytp-suggested-action-badge-img",Z:{src:"{{url}}"}}); this.thumbnailImage.hide();g.C(this,this.thumbnailImage);this.thumbnailIcon=new g.f({Y:"div",D:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.C(this,this.thumbnailIcon);this.banner=new g.f({Y:"a",D:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{Y:"div",D:"ytp-suggested-action-details",V:[{Y:"text",D:"ytp-suggested-action-title",j5:"{{title}}"},{Y:"text",D:"ytp-suggested-action-subtitle",j5:"{{subtitle}}"},{Y:"text",D:"ytp-suggested-action-metadata-text", j5:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.C(this,this.banner);this.banner.IU(this.j.element);this.W(this.J,"videodatachange",this.onVideoDataChange);this.W(this.J,g.Sh("suggested_action_view_model"),this.fQw);this.W(this.J,g.lG("suggested_action_view_model"),this.U5v);this.W(this.overflowButton.element,"click",this.HB);this.W(d,"featuredproductdismissed",this.aC);this.J.createServerVe(this.banner.element,this.banner,!0)}; bAQ=function(d){d.isInitialized&&(d.enabled=d.isVisible,d.UD=d.isVisible,Zt(d),d.kq(),d.thumbnailImage.OM(d.isVisible),d.shouldHideDismissButton||d.dismissButton.OM(d.isVisible),d.shouldShowOverflowButton&&d.overflowButton.OM(d.isVisible))}; P$=function(){ks.apply(this,arguments)}; XFN=function(d){xT.call(this,d);this.G=new P$(this.api);g.C(this,this.G);g.o6(this.api,this.G.element,4)}; W$=function(d){xT.call(this,d);var q=this;this.G=!0;var T=new g.aI(d);g.C(this,T);T.W(d,"internalaudioformatchange",function(Y,e){JZI(q,Y,e)}); T.W(d,"videoplayerreset",function(){sk6(q)}); T.W(d,"videodatachange",function(Y,e){q.onVideoDataChange(Y,e)})}; JZI=function(d,q,T){if(T){var Y="";$Nf(d,q)&&(Y=q,d.api.C().Fw=q);if(Y&&gng(d,Y)){KxD(d.api,Y);var e;BN(tJ(d.api.C(),(e=d.api.getVideoData())==null?void 0:g.$4(e)),function(U){FN_(d,Y,U)})}}}; sk6=function(d){var q;if((q=cI())==null?0:q.size){var T;BN(tJ(d.api.C(),(T=d.api.getVideoData())==null?void 0:g.$4(T)),function(Y){(Y=Nl1(Y))&&gng(d,Y)&&(d.api.C().Fw=Y)})}}; FN_=function(d,q,T){Nl1(T)!==q&&(Rt1([{settingItemId:Cc(T),settingOptionValue:{stringValue:q}}]),BN(d.S0(),function(Y){c$N(Y,Cc(T),{stringValue:q})}))}; xNN=function(d,q){K0(BN(BN(d.S0(),function(T){return QCH(T,[Cc(q)])}),function(T){if(T){T=g.E(T); for(var Y=T.next();!Y.done;Y=T.next()){var e=Y.value;Y=e.key;e=e.value;Y&&e&&(Rt1([{settingItemId:Y,settingOptionValue:e}]),sk6(d))}}}),function(){d.G=!0})}; $Nf=function(d,q){d=d.api.getAvailableAudioTracks();d=g.E(d);for(var T=d.next();!T.done;T=d.next())if(T=T.value,T.getLanguageInfo().getId()===q)return T;return null}; Nl1=function(d){d=Cc(d);var q=cI();d=q?q.get(d):void 0;return d&&d.stringValue?d.stringValue:""}; Cc=function(d){var q=(484).toString();d&&(q=(483).toString());return q}; gng=function(d,q){var T;return q.split(".")[0]!==""&&((T=d.api.getVideoData())==null?void 0:!FG(T))}; Rt1=function(d){var q=cI();q||(q=new Map);d=g.E(d);for(var T=d.next();!T.done;T=d.next())T=T.value,q.set(T.settingItemId,T.settingOptionValue);q=JSON.stringify(Object.fromEntries(q));g.pW("yt-player-user-settings",q,2592E3)}; g.uf=function(d,q,T,Y,e,U,b){g.gR.call(this,g.Fp({"aria-haspopup":"true"}),q,d);this.TG=Y;this.B=!1;this.j=null;this.options={};this.U=new g.rF(T,void 0,d,e,U,b);g.C(this,this.U);this.listen("keydown",this.dT);this.listen("click",this.open)}; yZ1=function(d){if(d.j){var q=d.options[d.j];q.element.getAttribute("aria-checked");q.element.setAttribute("aria-checked","false");d.j=null}}; htY=function(d,q){g.uf.call(this,"\u4f11\u7720\u5b9a\u65f6\u5668",g.rR.SLEEP_TIMER,d,q);this.J=d;this.K={};this.X=this.Ws("Off");this.L=this.G="";d.N("web_settings_menu_icons")&&(q=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(q)); this.T=new g.f({Y:"div",hF:["ytp-menuitem-label-wrapper"],V:[{Y:"div",j5:"\u89c6\u9891\u7ed3\u5c3e"},{Y:"div",hF:["ytp-menuitem-sublabel"],j5:"{{content}}"}]});g.C(this,this.T);this.listen("click",this.onClick);this.W(d,"videodatachange",this.onVideoDataChange);this.W(d,"presentingplayerstatechange",this.S5);this.W(d,"settingsMenuVisibilityChanged",this.Jf);d.createClientVe(this.element,this,218889);this.S5();this.J.gO("onSleepTimerFeatureAvailable")}; HAN=function(d){var q="Off 10 15 20 30 45 60".split(" "),T;((T=d.J.getVideoData())==null?0:T.isLivePlayback)||q.push("End of video");T=d.J.getPlaylist();var Y;T&&((Y=T.listId)==null?void 0:Y.type)!=="RD"&&q.push("End of playlist");d.MF(g.yC(q,d.Ws));d.K=g.lQ(q,d.Ws,d);q=d.Ws("End of video");d.options[q]&&g.$T(d.options[q],d.T)}; Qk7=function(d,q){var T=d.K[q],Y=T==="End of video"||T==="End of playlist";T==="Off"&&(d.G="");d.J.getPlayerState()!==0&&d.J.getPlayerState()!==5||!Y?(d.X=q,g.uf.prototype.GS.call(d,q),d.kL(q),d.J.gO("onSleepTimerSettingsChanged",T)):d.J.gO("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"\u89c6\u9891\u5df2\u7ed3\u675f"}}}}})}; Dt=function(d){xT.call(this,d);var q=this;d.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new htY(q.api,q.api.dB()),g.C(q,q.menuItem))}); d.addEventListener("openSettingsMenuItem",function(T){if(T==="menu_item_sleep_timer"){if(!q.menuItem){var Y;(Y=q.api.dB())==null||Y.St()}q.menuItem.open()}}); A7(d,"resetSleepTimerMenuSettings",function(){q.resetSleepTimerMenuSettings()}); A7(d,"setSleepTimerTimeLeft",function(T){q.setSleepTimerTimeLeft(T)}); A7(d,"setVideoTimeLeft",function(T){q.setVideoTimeLeft(T)})}; Mw1=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"onSnackbarMessage",function(T){switch(T){case 1:T=q.api.getPlayerStateObject(),T.isBuffering()&&(q.api.N("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.I(T,8)&&g.I(T,16))&&q.api.gO("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u6709\u4e2d\u65ad\u95ee\u9898\uff1f"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"\u627e\u51fa\u539f\u56e0"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}}, durationHintMs:5E3,popupType:"TOAST"}})}})}; g.fc=function(d,q,T,Y,e){q=q===void 0?!1:q;Y=Y===void 0?!1:Y;e=e===void 0?!1:e;g.YP.call(this);this.K=e;this.L=!1;this.T=new cu(this);this.S=this.X=null;this.j=this.U=!1;g.C(this,this.T);this.target=d;this.G=q;this.B=T||d;this.L=Y;q&&(g.J4&&this.target.setAttribute("draggable","true"),e||(this.target.style.touchAction="none"));wF(this)}; zQ=function(d){g.jX(d.T,!d.G)}; wF=function(d){d.S=null;d.X=null;d.W(IZ("over"),d.qD);d.W("touchstart",d.JN);d.G&&d.W(IZ("down"),d.M5k)}; cZj=function(d,q){for(var T=0;TR.start&&T>=5;a+=t}e=a.substr(0,4)+" "+a.substr(4,4)+" "+a.substr(8,4)+" "+(a.substr(12,4)+" "+a.substr(16,4))}else e="";b={video_id_and_cpn:String(q.videoId)+" / "+e,codecs:"",dims_and_frames:"",bandwidth_kbps:b.toFixed(0)+" Kbps",buffer_health_seconds:F.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:N?"":"display:none",drm:N,debug_info:T,extra_debug_info:"",bandwidth_style:y,network_activity_style:y,network_activity_bytes:J.toFixed(0)+" KB",shader_info:x,shader_info_style:x?"":"display:none",playback_categories:""};J=Y.clientWidth+"x"+Y.clientHeight+(R>1?"*"+R.toFixed(2):"");F="-";U.totalVideoFrames&&(F=(U.droppedVideoFrames||0)+" dropped of "+U.totalVideoFrames);b.dims_and_frames=J+" / "+F;d=d.getVolume();J=oqX(q);var K;if((K=q.T)==null?0:K.audio.U)K= "VB";else{var P;K=((P=q.T)==null?0:P.audio.G)?"DRC":Math.round(d*J)+"%"}P=Math.round(d)+"% / "+K;K=q.LC.toFixed(1);isFinite(Number(K))&&(P+=" (content loudness "+K+"dB)");b.volume=P;b.resolution=Y.videoWidth+"x"+Y.videoHeight;if(Y=q.U){if(P=Y.video)K=P.fps,K>1&&(b.resolution+="@"+K),(K=U.Sf)&&K.video&&(b.resolution+=" / "+K.video.width+"x"+K.video.height,K.video.fps>1&&(b.resolution+="@"+K.video.fps)),b.codecs=ZA1(Y),!q.T||Y.audio&&Y.video?Y.pJ&&(b.codecs+=" / "+Y.pJ+"A"):b.codecs+=" / "+ZA1(q.T), P.G||P.primaries?(K=P.G||"unknown",K==="smpte2084"?K+=" (PQ)":K==="arib-std-b67"&&(K+=" (HLG)"),b.color=K+" / "+(P.primaries||"unknown"),b.color_style=""):b.color_style="display:none";if(Y.debugInfo)for(b.fmt_debug_info="",Y=g.E(Y.debugInfo),P=Y.next();!P.done;P=Y.next())P=P.value,b.fmt_debug_info+=P.label+":"+P.text+" ";b.fmt_debug_info_style=b.fmt_debug_info&&b.fmt_debug_info.length>0?"":"display:none"}Y=q.isLivePlayback;P=q.uC;b.live_mode_style=Y||P?"":"display:none";b.live_latency_style=Y?"": "display:none";if(P)b.live_mode="Post-Live"+(kp(q)?" Manifestless":"");else if(Y){P=U.B2;b.live_latency_secs=P.toFixed(2)+"s";Y=kp(q)?"Manifestless, ":"";q.yv&&(Y+="Windowed, ");K="Uncertain";if(P>=0&&P<120)if(q.latencyClass&&q.latencyClass!=="UNKNOWN")switch(q.latencyClass){case "NORMAL":K="Optimized for Normal Latency";break;case "LOW":K="Optimized for Low Latency";break;case "ULTRALOW":K="Optimized for Ultra Low Latency";break;default:K="Unknown Latency Setting"}else K=q.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";Y+=K;(P=U.gI)&&(Y+=", seq "+P.sequence);b.live_mode=Y}!U.isGapless||Zu(q)&&U.MN||(b.playback_categories+="Gapless ");b.playback_categories_style=b.playback_categories?"":"display:none";b.bandwidth_samples=U.AJ;b.network_activity_samples=U.En;b.live_latency_samples=U.Ve;b.buffer_health_samples=U.y9;U=g.y2(q);if(q.cotn||U)b.cotn_and_local_media=(q.cotn?q.cotn:"null")+" / "+U;b.cotn_and_local_media_style=b.cotn_and_local_media?"":"display:none"; HU(q,"web_player_release_debug")?(b.release_name=X[40],b.release_style=""):b.release_style="display:none";b.debug_info&&h.length>0&&b.debug_info.length+h.length<=60?b.debug_info+=" "+h:b.extra_debug_info=h;b.extra_debug_info_style=b.extra_debug_info&&b.extra_debug_info.length>0?"":"display:none";return b}; ZA1=function(d){var q=/codecs="([^"]*)"/.exec(d.mimeType);return q&&q[1]?q[1]+" ("+d.itag+")":d.itag}; dV=function(d,q,T,Y,e){g.f.call(this,{Y:"div",D:"ytp-horizonchart"});this.L=q;this.sampleCount=T;this.T=Y;this.X=e;this.index=0;this.heightPx=-1;this.j=this.U=null;this.G=Math.round(d/T);this.element.style.width=this.G*this.sampleCount+"px";this.element.style.height=this.L+"em"}; qc=function(d,q){if(d.heightPx===-1){var T=null;try{T=g.FE("CANVAS"),d.U=T.getContext("2d")}catch(J){}if(d.U){var Y=d.G*d.sampleCount;d.j=T;d.j.width=Y;d.j.style.width=Y+"px";d.element.appendChild(d.j)}else for(d.sampleCount=Math.floor(d.sampleCount/4),d.G*=4,T=0;T1?2:1,d.j.height=d.heightPx*T,d.j.style.height= d.heightPx+"px",d.U.scale(1,T)));q=g.E(q);for(Y=q.next();!Y.done;Y=q.next()){T=d;var e=d.index,U=Y.value;for(Y=0;Y+20&&g.xE(q.U.element);Y.classList.add("ytp-timely-actions-overlay");q.U.element.appendChild(Y)}); g.C(this,this.U);this.N("web_player_overlay_positioned_layout")?this.events.W(d,"basechromeinitialized",function(){q.api.A0(q.U.element,4,!0);q.U.element.setAttribute("data-overlay-order","10")}):g.o6(this.api,this.U.element,4)}; fk6=function(d){d.timelyActions&&(d.T=d.timelyActions.reduce(function(q,T){if(T.cueRangeId===void 0)return q;q[T.cueRangeId]=0;return q},{}))}; Ui=function(d,q){if(d.timelyActions){d=g.E(d.timelyActions);for(var T=d.next();!T.done;T=d.next())if(T=T.value,T.cueRangeId===q)return T}}; zt_=function(d,q){if((d=Ui(d,q))&&d.onCueRangeExit)return Ba(d.onCueRangeExit)}; Cr7=function(d,q){return d.j===void 0?!1:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(q.seekLengthMilliseconds)===5E3?d.j===72:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(q.seekLengthMilliseconds)===1E4?d.j===74:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(q.seekLengthMilliseconds)===5E3?d.j===71:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(q.seekLengthMilliseconds)===1E4?d.j===73:!1}; iA6=function(d,q){var T=Number(q==null?void 0:q.maxVisibleDurationMilliseconds);T&&(b0(d),d.UD=setTimeout(function(){if(d.G!==void 0&&(q==null?void 0:q.cueRangeId)===d.G){d.K=!1;var Y=zt_(d,d.G);Y&&d.api.gO("innertubeCommand",Y)}},T))}; b0=function(d){d.UD&&clearTimeout(d.UD);d.UD=void 0;d.K=!1}; u3_=function(d){if(d=d.getWatchNextResponse()){var q,T;d=(q=d.playerOverlays)==null?void 0:(T=q.playerOverlayRenderer)==null?void 0:T.timelyActionsOverlayViewModel;q=g.D(d,Ik2);if(q!=null&&q.timelyActions)return q==null?void 0:q.timelyActions.map(function(Y){return g.D(Y,mNI)}).filter(function(Y){return!!Y})}}; SkN=function(d){xT.call(this,d);var q=this;pV(this.api,"getPlaybackRate",function(){return q.api.getPlaybackRate()}); pV(this.api,"setPlaybackRate",function(T){typeof T==="number"&&q.api.setPlaybackRate(T)})}; Xi=function(d,q,T,Y){jq.call(this,"VOICE_BOOST",g.rR.eW);this.G=!1;this.J=d;this.TG=d.dB();this.T=q;this.j=T;this.hasVoiceBoostAudioTrack=Y;this.W(d,"videodatachange",this.U);this.setIcon(rBI());this.subscribe("select",this.X,this);this.U()}; Jc=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"settingsMenuInitialized",function(){lk2(q)}); A7(this.api,"getVoiceBoostUserPreference",function(){return q.getVoiceBoostUserPreference()}); A7(this.api,"setVoiceBoostUserPreference",function(Y){q.setVoiceBoostUserPreference(Y)}); A7(this.api,"hasVoiceBoostAudioTrack",function(){return q.hasVoiceBoostAudioTrack()}); var T;this.G=(T=UoH())!=null?T:0;this.updateEnvironmentData()}; lk2=function(d){d.menuItem||(d.menuItem=new Xi(d.api,function(q){d.setVoiceBoostUserPreference(q)},function(){return d.getVoiceBoostUserPreference()},function(){return d.hasVoiceBoostAudioTrack()}),g.C(d,d.menuItem))}; vnn=function(d){d=d.Hl();if(!d)return!1;d=g.oE(d).exp||"";return d.includes("xpv")||d.includes("xpe")}; onI=function(d){d=g.E(g.si(d,!0));for(var q=d.next();!q.done;q=d.next())if(vnn(q.value))return!0;return!1}; Vwn=function(d,q){d=g.E(g.si(d,!0));for(var T=d.next();!T.done;T=d.next())if(T=T.value,vnn(T)){var Y={potc:"1",pot:q};T.url&&(T.url=VH(T.url,Y))}}; dUI=function(d){return g.G(function(q){if(q.U==1)return g.jD(q,2),g.B(q,d,4);if(q.U!=2)return g.ZX(q,0);g.nN(q);g.E6(q)})}; gV=function(d){xT.call(this,d);var q=this;this.useLivingRoomPoToken=!1;this.S=new g.sq;this.G=!1;this.rz=null;this.B=!1;this.T=null;this.X=!1;var T=d.C().getWebPlayerContextConfig();this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"spsumpreject",function(Y,e,U){q.X=e;Y&&q.B&&!q.T&&(q.N("html5_generate_content_po_token")&&U?q.Sp(U):q.N("html5_generate_session_po_token")&&qeH(q));q.T||q.api.oU("stp",{s:+q.B,b:+q.X})}); this.events.W(d,"poTokenVideoBindingChange",function(Y){q.Sp(Y)}); this.useLivingRoomPoToken=!(T==null||!T.useLivingRoomPoToken);d.addEventListener("csiinitialized",function(){q.rz=d.GN();var Y=(q.N("html5_generate_session_po_token")||q.N("html5_generate_content_po_token"))&&!q.useLivingRoomPoToken;try{if(q.N("html5_use_shared_owl_instance"))Ta_(q);else if(Y){q.rz.w1("pot_isc");var e=g.Yv(q.api.C().experiments,"html5_webpo_kaios_defer_timeout_ms");e?(q.j=Li(),g.s3(function(){$r(q)},e)):q.N("html5_webpo_idle_priority_job")?(q.j=Li(),g.zy(g.IY(),function(){$r(q)})): $r(q)}}catch(U){U instanceof Error&&g.OL(U)}}); d.addEventListener("trackListLoaded",this.NN.bind(this));d.L_(this)}; YeY=function(d){var q=Md(d.experiments,"html5_web_po_request_key");return q?q:g.ho(d)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; ebI=function(d){var q=new JSI,T={},Y=(T["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",T);return new xH(q,d,function(){return Y})}; UU7=function(d){return new ym(d)}; Fi=function(d,q){d.N("html5_webpo_bge_ctmp")&&d.api.oU(q,{hwpo:!!d.U,hwpor:d.G})}; Ta_=function(d){var q,T;g.G(function(Y){if(Y.U==1)return Fi(d,"swpo_i"),d.j=Li(),Nc(d),g.B(Y,v3(),2);if(Y.U!=3)return q=Y.G,Fi(d,"swpo_co"),g.B(Y,kUY(q),3);T=Y.G;d.N("html5_web_po_token_disable_caching")||T.gt(150);d.U=T;Fi(d,"swpo_cc");dUI(T.J_()).then(function(){d.G=!0;d.S.resolve();Fi(d,"swpo_re")}); g.s3(function(){$r(d);Fi(d,"swpo_si")},0); g.E6(Y)})}; JaY=function(d){var q=d.api.C(),T=ebI(YeY(q)),Y=T.ut.bind(T);T.ut=function(J){var F;return g.G(function(N){if(N.U==1)return g.B(N,Y(J),2);F=N.G;d.api.oU("itr",{});return N.return(F)})}; try{var e=UU7({J6:T,aG:{maxAttempts:5},AO:{wH:"CLEn",disable:q.experiments.Wv("html5_web_po_disable_remote_logging")||blg.includes(g.sb(q.XM)||""),a5:l2f(q.experiments),FG:q.experiments.Wv("wpo_gel_strz")?function(J){var F=X1H.get(J);F||(F=new H7f(J),F=new g.k1(F),X1H.set(J,F));return F}:void 0, TOD:d.N("wpo_dis_lfdms")?0:1E3},lQw:g.OL});var U=new Ki({CH:e,J6:T,onError:g.OL});dUI(U.J_()).then(function(){d.G=!0;d.S.resolve()}); d.N("html5_web_po_token_disable_caching")||U.gt(150);g.C(d,e);g.C(d,U);d.U=U}catch(J){g.OL(J);var b;(b=e)==null||b.dispose()}}; $r=function(d){var q=d.api.C();d.rz.w1("pot_ist");d.U||JaY(d);d.N("html5_bandaid_attach_content_po_token")||(d.N("html5_generate_session_po_token")&&(Nc(d),qeH(d)),q=g.Yv(q.experiments,"html5_session_po_token_interval_time_ms")||0,q>0&&(d.L=g.$A(function(){Nc(d)},q)),d.B=!0)}; Nc=function(d){var q,T,Y,e;g.G(function(U){if(!d.N("html5_generate_session_po_token")||d.useLivingRoomPoToken)return U.return();q=d.api.C();T=g.Cs("EOM_VISITOR_DATA")||g.Cs("VISITOR_DATA");Y=q.wB?q.datasyncId:T;e=Md(q.experiments,"html5_mock_content_binding_for_session_token")||q.livingRoomPoTokenId||Y;q.qU=RN(d,e);g.E6(U)})}; RN=function(d,q){if(!d.U){if(d.j)try{return d.j(q)}catch(U){g.OL(U)}return""}try{d.rz.w1(d.G?"pot_cms":"pot_csms");var T={qw:!0,m9:!0,BO:q};d.N("html5_web_po_token_disable_caching")||(T.MI={yO:q,vN:!0,Tn:!0});var Y=d.U.RE(T);d.rz.w1(d.G?"pot_cmf":"pot_csmf");if(d.G){var e;(e=d.T)==null||e.resolve();d.T=null;d.X&&(d.X=!1,d.api.app.Lf().sO(!1))}return Y}catch(U){return g.OL(U),""}}; qeH=function(d){d.U&&(d.T=new yQ,d.S.promise.then(function(){d.rz.w1("pot_if");Nc(d)}))}; g.xr=function(d,q,T){g.ep(d.element,"ytp-suggestion-set",!!q.videoId);var Y=q.playlistId;T=q.Qg(T?T:"mqdefault.jpg");var e=null,U=null;q instanceof vT&&(q.lengthText?(e=q.lengthText||null,U=q.MD||null):q.lengthSeconds&&(e=g.MY(q.lengthSeconds),U=g.MY(q.lengthSeconds,!0)));var b=!!Y;Y=b&&SZ(Y).type==="RD";var J=q instanceof vT?q.isLivePlayback:null,F=q instanceof vT?q.isUpcoming:null,N=q.author,R=q.shortViewCount,x=q.publishedTimeText,y=[],h=[];N&&y.push(N);R&&(y.push(R),h.push(R));x&&h.push(x);T= {title:q.title,author:N,author_and_views:y.join(" \u2022 "),aria_label:q.ariaLabel||g.bO("\u89c2\u770b\u300a$TITLE\u300b",{TITLE:q.title}),duration:e,timestamp:U,url:q.Xk(),is_live:J,is_upcoming:F,is_list:b,is_mix:Y,background:T?"background-image: url("+T+")":"",views_and_publish_time:h.join(" \u2022 "),autoplayAlternativeHeader:q.yh};q instanceof lS&&(T.playlist_length=q.playlistLength);d.update(T)}; g.yV=function(d){var q=d.C(),T=g.MI||g.o9?{style:"will-change: opacity"}:void 0,Y=q.T,e=["ytp-modern-videowall-still"];q.U&&e.push("ytp-videowall-show-text");g.f.call(this,{Y:"a",hF:e,Z:{href:"{{url}}",target:Y?q.K:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},V:[{Y:"div",D:"ytp-modern-videowall-still-image",Z:{style:"{{background}}"},V:[{Y:"span",D:"ytp-modern-videowall-still-info-duration",j5:"{{duration}}"}]},{Y:"span",D:"ytp-modern-videowall-still-info", Z:{"aria-hidden":"true"},V:[{Y:"span",D:"ytp-modern-videowall-still-info-bg",V:[{Y:"span",D:"ytp-modern-videowall-still-info-content",Z:T,V:[{Y:"span",D:"ytp-modern-videowall-still-info-title",j5:"{{title}}"},{Y:"span",D:"ytp-modern-videowall-still-info-author",j5:"{{author_and_views}}"},{Y:"span",D:"ytp-modern-videowall-still-info-live",j5:"\u76f4\u64ad"}]}]}]},{Y:"span",hF:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],Z:{"aria-hidden":"true"},V:[{Y:"span", D:"ytp-modern-videowall-still-listlabel-icon"},"\u64ad\u653e\u5217\u8868",{Y:"span",D:"ytp-modern-videowall-still-listlabel-length",V:[" (",{Y:"span",j5:"{{playlist_length}}"},")"]}]},{Y:"span",hF:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],Z:{"aria-hidden":"true"},V:[{Y:"span",D:"ytp-modern-videowall-still-listlabel-mix-icon"},"\u89c6\u9891\u5408\u8f91",{Y:"span",D:"ytp-modern-videowall-still-listlabel-length",j5:" (50+)"}]}]});this.suggestion=null;this.U= Y;this.api=d;this.G=new g.aI(this);g.C(this,this.G);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.G.W(d,"videodatachange",this.onVideoDataChange);d.createServerVe(this.element,this);this.onVideoDataChange()}; g.sUj=function(d,q){if(d.suggestion!==q){d.suggestion=q;var T=d.api.C();g.xr(d,q,"hqdefault.jpg");if(g.dn(T)&&!d.api.N("web_player_log_click_before_generating_ve_conversion_params")){T=q.Xk();var Y={};g.OF(d.api,"addEmbedsConversionTrackingParams",[Y]);T=g.y6(T,Y);d.updateValue("url",T)}(q=(q=q.sessionData)&&q.itct)&&d.api.setTrackingParams(d.element,q)}}; giN=function(d,q){g.f.call(this,{Y:"div",hF:["ytp-fullscreen-grid"],V:[{Y:"div",D:"ytp-fullscreen-grid-hover-overlay",Z:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},V:[{Y:"div",D:"ytp-fullscreen-grid-hover-overlay-chevron",V:[{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"g",Z:{filter:"url(#filter0_d_3104_799356)"},V:[{Y:"path",Z:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z", fill:"white"}}]},{Y:"defs",V:[{Y:"filter",Z:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},V:[{Y:"feFlood",Z:{"flood-opacity":"0",result:"BackgroundImageFix"}},{Y:"feColorMatrix",Z:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{Y:"feOffset"},{Y:"feGaussianBlur",Z:{stdDeviation:"0.5"}},{Y:"feComposite",Z:{in2:"hardAlpha",operator:"out"}},{Y:"feColorMatrix",Z:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {Y:"feBlend",Z:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{Y:"feBlend",Z:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{Y:"div",D:"ytp-fullscreen-grid-main-content",V:[{Y:"div",D:"ytp-fullscreen-grid-header",V:[{Y:"div",D:"ytp-fullscreen-grid-header-buttons",V:[{Y:"button",hF:["ytp-grid-replay-button","ytp-button"],Z:{title:"\u91cd\u653e","aria-keyshortcuts":"r","aria-label":"\u91cd\u653e","data-title-no-tooltip":"\u91cd\u653e"}, V:[kyD()]},{Y:"button",D:"ytp-fullscreen-grid-header-button",Z:{"aria-label":"{{ariaLabel}}"}}]},{Y:"button",hF:["ytp-grid-menu-close","ytp-button"],Z:{"aria-label":"\u5173\u95ed"},V:[g.y9()]}]},{Y:"div",D:"ytp-fullscreen-grid-stills-container"}]}]});var T=this;this.player=d;this.stills=[];this.videoData=null;this.currentState=0;this.L=this.Qv("ytp-fullscreen-grid-main-content");this.X=this.Qv("ytp-fullscreen-grid-header");d=this.Qv("ytp-fullscreen-grid-header-buttons");this.j=this.Qv("ytp-grid-menu-close"); this.U=this.Qv("ytp-grid-replay-button");this.G=this.Qv("ytp-fullscreen-grid-header-button");this.K=this.Qv("ytp-fullscreen-grid-stills-container");this.T=new g.aI(this);g.C(this,this.T);this.B=q;if(this.X&&this.L&&d&&this.K&&this.G&&this.j){if(q=this.Qv("ytp-fullscreen-grid-hover-overlay"))this.W(q,"click",this.PE),D$(this.player,q,this);this.U&&(this.W(this.U,"click",function(Y){T.oO(Y)}),D$(this.player,this.U,this)); this.G&&this.W(this.G,"click",this.PE);this.j&&this.W(this.j,"click",this.PE);if(q=this.player.getVideoData(1))this.videoData=q,$Un(this);this.player.createClientVe(this.X,this,223051);this.T.W(this.player,"videodatachange",this.onVideoDataChange);this.T.W(this.player,"presentingplayerstatechange",this.h0)}}; $Un=function(d){var q=d.player.getPlayerStateObject();g.ep(d.player.getRootNode(),"ytp-grid-ended-state",g.I(q,2))}; QV=function(d){xT.call(this,d);var q=this;this.L=this.G=this.U=0;this.X=null;this.T=0;this.isEnded=!1;this.B=null;var T=new g.aI(d);g.C(this,T);this.UD=this.api.N("web_player_imax_theater_mode");this.j=this.api.N("web_player_enable_fullscreen_grid_components");T.W(d,"fullscreentoggled",function(){hc(q)}); T.W(d,"autohideupdate",function(Y){Y&&q.U===2&&Hc(q,1)}); T.W(d,"videodatachange",function(){if(q.j){var Y=q.api.getVideoData(1);q.videoData!==Y&&q.U===2&&Hc(q,1);q.videoData=Y}},this); T.W(d,"sizestylechange",function(){q.j&&hc(q)}); A7(this.api,"setFullscreenQuickActions",function(Y){q.setFullscreenQuickActions(Y)}); A7(this.api,"setPlayerOverlayVideoDetailsRenderer",function(Y){q.setPlayerOverlayVideoDetailsRenderer(Y)}); this.j&&FKQ(this,T,d)}; FKQ=function(d,q,T){q.W(T,"keyboardserviceglobalkeydown",function(Y,e){d.j&&Y.keyCode===86&&!Y.repeat&&d.U!==0&&(e&&(e.aB=!0),Na7(d))}); q.W(d.api.getRootNode(),"wheel",function(Y){if(!d.B){var e;if(d.j&&(e=d.S)!=null&&e.element&&d.U!==0&&Mc(d))if(g.d9(d.api.getRootNode(),"ytp-grid-scrolling"),d.T===0&&(d.T=window.innerHeight),d.U===1)d.T!==0&&(d.G+=Y.deltaY/d.T,d.G=Math.min(Math.max(d.G,0),.85),cc(d),Rb_(d,Math.abs(d.G)>=.85));else if(d.U===2){e=Y.deltaY<0;var U,b=((U=d.S)==null?void 0:U.element.scrollTop)===0;e&&b?d.T!==0&&(d.G+=Y.deltaY/d.T,cc(d),Rb_(d,Math.abs(d.G)>=.85)):d.G!==0&&(d.G=0,cc(d))}}},{passive:!0}); q.W(T,"standardControlsInitialized",function(){if(!d.S){d.S=new giN(d.api,d.lr.bind(d));g.C(d,d.S);var Y=d.api.getRootNode().querySelector(".ytp-chrome-bottom");Y&&Y.parentNode&&Y.parentNode.insertBefore(d.S.element,Y.nextSibling)}}); q.W(T,"presentingplayerstatechange",function(){Ei(d)}); q.W(T,"autonavvisibility",function(){Ei(d)}); d.api.Jp().subscribe("visibilitystatechange",function(){Ei(d)}); xUf(d,d.U)}; Rb_=function(d,q){d.X&&clearTimeout(d.X);q?yaf(d):d.X=window.setTimeout(function(){yaf(d)},150)}; yaf=function(d){d.X&&(clearTimeout(d.X),d.X=null);d.T=0;d.j&&d.U!==0&&(Math.abs(d.G)>=.15&&Na7(d,!0),d.G=0,cc(d),g.TR(d.api.getRootNode(),"ytp-grid-scrolling"))}; Na7=function(d,q){d.j&&(q!==void 0&&q||(d.B&&clearTimeout(d.B),d.B=window.setTimeout(function(){d.B=null},1E3)),d.U===1?Hc(d,2):Hc(d,1))}; Mc=function(d){return d.api.isFullscreen()||d.UD&&d.api.E6()}; hc=function(d){var q=Mc(d);g.ep(d.api.getRootNode(),"ytp-full-bleed-player",q);d.K&&g.dv(d.K,q);d.playerOverlayVideoDetailsRenderer&&g.dv(d.playerOverlayVideoDetailsRenderer,q);d.j&&Ei(d)}; Ei=function(d){if(d.j){var q;if(d.api.getPresentingPlayerType()===2||d.api.yX()||((q=g.KV(d.api))==null?0:q.Rl())||d.api.isMinimized())Hc(d,0);else{if(q=g.I(d.api.getPlayerStateObject(),2))Hc(d,2);else if(d.isEnded&&!q){var T=Mc(d)?1:0;d.isEnded=q;Hc(d,T)}else Mc(d)?d.U!==2&&Hc(d,1):Hc(d,0);d.isEnded=q}}}; Hc=function(d,q){d.U=q;var T;(T=d.S)==null||T.XC(q);d.G=0;cc(d);xUf(d,q)}; xUf=function(d,q){d=d.api.getRootNode();g.ep(d,"ytp-fullscreen-grid-peaking",q===1);g.ep(d,"ytp-fullscreen-grid-active",q===2)}; cc=function(d){requestAnimationFrame(function(){var q=d.G-d.L,T=q;d.G!==0&&(T=Math.max(-.01,Math.min(q,.01)));d.L+=T;d.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+d.L.toString());d.L!==d.G&&cc(d)})}; hbf=function(d){xT.call(this,d);var q=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"heartbeatRequest",function(T){if(q.freePreviewUsageDetails.length||q.freePreviewWatchedDuration!==null)T.heartbeatRequestParams||(T.heartbeatRequestParams={}),T.heartbeatRequestParams.unpluggedParams||(T.heartbeatRequestParams.unpluggedParams={}),q.freePreviewUsageDetails.length>0?T.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= q.freePreviewUsageDetails:T.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+q.freePreviewWatchedDuration}}); A7(d,"setFreePreviewWatchedDuration",function(T){q.freePreviewWatchedDuration=T}); A7(d,"setFreePreviewUsageDetails",function(T){q.freePreviewUsageDetails=T})}; jz=function(d){g.W.call(this);this.features=[];var q=this.G,T=new zk(d),Y=new yD(d),e=new c$(d),U=new gV(d);var b=g.xv(d.C())?void 0:new Ps(d);var J=new Ma(d),F=new twn(d),N=new SkN(d),R=new fR(d);var x=g.xv(d.C())?new hbf(d):void 0;var y=d.N("html5_enable_ssap")?new pFY(d):void 0;var h;var H=(h=d.C().getWebPlayerContextConfig())!=null&&h.cinematicSettingsAvailable?new KR(d):void 0;h=new wR(d);var a=d.N("enable_courses_player_overlay_purchase")?new ge1(d):void 0;var p=g.cT(d.C())?new XIg(d):void 0; var t=new Ws(d);var n=d.C().T?new qo2(d):void 0;var K=g.dn(d.C())?new de_(d):void 0;var P=d.N("web_player_move_autonav_toggle")&&d.C().zX?new i07(d):void 0;var w=g.cT(d.C())?new QWn(d):void 0;var l=d.N("web_enable_speedmaster")&&g.cT(d.C())?new lf(d):void 0;var m=d.C().Vt?void 0:new WND(d);var b_=d.N("report_pml_debug_signal")?new D7H(d):void 0;var x2=new KGN(d),JY=new AG(d);var s6=g.KG(d.C())?new San(d):void 0;var qH=navigator.mediaSession&&window.MediaMetadata&&d.C().Oi?new H$(d):void 0;var O6= d.N("html5_enable_drc")&&!d.C().X?new kT(d):void 0;var SD=new Hs(d);var dL=g.cT(d.C())?new XFN(d):void 0;var hE=d.N("html5_enable_d6de4")?new E8(d):void 0;var JE=g.cT(d.C())&&d.N("web_sleep_timer")?new Dt(d):void 0;var tY=g.dn(d.C())?new YoQ(d):void 0;var bw=new W$(d),kc=new vCj(d),fB=new h$j(d);var XV=d.N("enable_sabr_snackbar_message")?new Mw1(d):void 0;var r=d.N("web_enable_timely_actions")?new wFg(d):void 0;var Ch=new Gk(d);var BR=g.cT(d.C())?new QV(d):void 0;var Y2=d.N("html5_enable_voice_boost")? new Jc(d):void 0;var AE=d.N("web_player_loop_settings_menu")&&d.C().PR?new Hq1(d):void 0;var A=d.N("html5_masthead_default_playback_rate")&&!g.xv(d.C())?new jWj(d):void 0;var T7=d.N("web_player_playable_sequences_refactor")?new fIN(d):void 0;d=d.N("html5_enable_audio_quality_setting")&&d.N("html5_enable_audio_quality_setting_feature")?new cs(d):void 0;q.call(this,T,Y,e,U,b,J,F,N,R,x,y,H,h,a,p,t,n,K,P,w,l,m,b_,x2,JY,s6,void 0,qH,O6,SD,void 0,dL,hE,JE,tY,void 0,bw,kc,fB,void 0,XV,r,Ch,BR,Y2,void 0, AE,void 0,A,T7,d)}; HlQ=function(){this.U=this.G=NaN}; QUg=function(d,q){this.Pv=d;this.timerName="";this.j=!1;this.U=NaN;this.T=new HlQ;this.G=q||null;this.j=!1}; Mkn=function(d,q,T){var Y=g.bS(q.Mk)&&!q.Mk.X;if(q.Mk.w4&&(TF(q.Mk)||q.Mk.z2==="shortspage"||Zi(q.Mk)||Y)&&!d.j){d.j=!0;d.X=q.clientPlaybackNonce;g.Cs("TIMING_ACTION")||Wq("TIMING_ACTION",d.Pv.csiPageType);d.Pv.csiServiceName&&Wq("CSI_SERVICE_NAME",d.Pv.csiServiceName);if(d.G){Y=d.G.GN();for(var e=g.E(Object.keys(Y)),U=e.next();!U.done;U=e.next())U=U.value,pU(U,Y[U],d.timerName);Y=g.iF(v7D)(d.G.lk);g.ZO(Y,d.timerName);Y=d.G;Y.G={};Y.lk={}}g.ZO({playerInfo:{visibilityState:g.iF(lPQ)()},playerType:"LATENCY_PLAYER_HTML5"}, d.timerName);d.S!==q.clientPlaybackNonce||Number.isNaN(d.U)||(nU("_start",d.timerName)?T=g.iF(cm)("_start",d.timerName)+d.U:g.OL(new g.CW("attempted to log gapless pbs before CSI timeline started",{cpn:q.clientPlaybackNonce})));T&&!nU("pbs",d.timerName)&&aN(d,T)}}; aN=function(d,q,T){pU("pbs",q!=null?q:(0,g.cj)(),T!=null?T:d.timerName)}; Ac=function(d){XWf();b4N();d.timerName=""}; caN=function(d){if(d.G){var q=d.G;q.G={};q.lk={}}d.j=!1;d.S=void 0;d.U=NaN}; Eig=function(d,q){g.YP.call(this);this.Mk=d;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.G=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.B={};this.U=0;if(d=q.session_data)this.sessionData=mR(d,"&");this.index=Math.max(0,Number(q.index)||0);this.loop=!!q.loop;this.startSeconds=Number(q.startSeconds)||0;this.title=q.playlist_title||"";this.description=q.playlist_description||"";this.author= q.author||q.playlist_author||"";q.video_id&&(this.items[this.index]=q);if(d=q.api)typeof d==="string"&&d.length===16?q.list="PL"+d:q.playlist=d;if(d=q.list)switch(q.listType){case "user_uploads":this.listId=new m8("UU","PLAYER_"+d);break;default:var T=q.playlist_length;T&&(this.length=Number(T)||0);this.listId=SZ(d);if(d=q.video)this.items=d.slice(0),this.loaded=!0}else if(q.playlist){d=q.playlist.toString().split(",");this.index>0&&(this.items=[]);d=g.E(d);for(T=d.next();!T.done;T=d.next())(T=T.value)&& this.items.push({video_id:T});this.length=this.items.length;if(d=q.video)this.items=d.slice(0),this.loaded=!0}this.setShuffle(!!q.shuffle);if(d=q.suggestedQuality)this.quality=d;this.B=fI(q,"playlist_");this.j=(q=q.thumbnail_ids)?q.split(","):[]}; jUD=function(d){return!!(d.playlist||d.list||d.api)}; ajn=function(d){var q=d.index+1;return q>=d.length?0:q}; Aa2=function(d){var q=d.index-1;return q<0?d.length-1:q}; g.pa=function(d,q,T,Y){q=q!==void 0?q:d.index;q=d.items&&q in d.items?d.items[d.order[q]]:null;var e=null;q&&(T&&(q.autoplay="1"),Y&&(q.autonav="1"),e=new g.yM(d.Mk,q),g.C(d,e),e.Qs=!0,e.startSeconds=d.startSeconds||e.clipStart||0,d.listId&&(e.playlistId=d.listId.toString()));return e}; p1H=function(d,q){d.index=g.Cn(q,0,d.length-1);d.startSeconds=0}; ZlY=function(d,q){if(q.video&&q.video.length){d.title=q.title||"";d.description=q.description;d.views=q.views;d.likes=q.likes;d.dislikes=q.dislikes;d.author=q.author||"";var T=q.loop;T&&(d.loop=T);T=g.pa(d);d.items=[];for(var Y=g.E(q.video),e=Y.next();!e.done;e=Y.next())if(e=e.value)e.video_id=e.encrypted_id,d.items.push(e);d.length=d.items.length;(q=q.index)?d.index=q:d.findIndex(T);d.setShuffle(!1);d.loaded=!0;d.U++;d.G&&d.G()}}; raD=function(d,q){var T,Y,e,U,b,J,F;return g.G(function(N){if(N.U==1){T=g.i9();var R=d.C(),x={context:g.jf(d),playbackContext:{contentPlaybackContext:{ancestorOrigins:R.ancestorOrigins}}},y=R.getWebPlayerContextConfig();if(y==null?0:y.encryptedHostFlags)x.playbackContext.contentPlaybackContext.encryptedHostFlags=y.encryptedHostFlags;if(y==null?0:y.hideInfo)x.playerParams={showinfo:!1};y=R.embedConfig;var h=d.eC;var H=q.docid||q.video_id||q.videoId||q.id;if(!H){H=q.raw_embedded_player_response;if(!H){var a= q.embedded_player_response;a&&(H=JSON.parse(a))}if(H){var p,t,n,K,P,w;H=((w=g.D((p=H)==null?void 0:(t=p.embedPreview)==null?void 0:(n=t.thumbnailPreviewRenderer)==null?void 0:(K=n.playButton)==null?void 0:(P=K.buttonRenderer)==null?void 0:P.navigationEndpoint,g.EB))==null?void 0:w.videoId)||null}else H=null}p=(p=H)?p:void 0;t=d.playlistId?d.playlistId:q.list;n=q.listType;if(t){var l;n==="user_uploads"?l={username:t}:l={playlistId:t};Oln(y,h,p,q,l,R.experiments);x.playlistRequest=l}else q.playlist? (l={templistVideoIds:q.playlist.toString().split(",")},Oln(y,h,p,q,l,R.experiments),x.playlistRequest=l):p&&(l={videoId:p},h&&R.N("embeds_enable_per_video_embed_config")?l.serializedThirdPartyEmbedConfig=h:y&&(l.serializedThirdPartyEmbedConfig=y),x.singleVideoRequest=l);Y=x;e=g.vG(niN);g.jD(N,2);return g.B(N,g.GY(T,Y,e),4)}if(N.U!=2)return U=N.G,b=d.C(),q.raw_embedded_player_response=U,b.rO=YO(q,g.dn(b)),b.j=b.rO==="EMBEDDED_PLAYER_MODE_PFL",U&&(J=U,J.trackingParams&&vN(J.trackingParams)),N.return(new g.yM(b, q));F=g.nN(N);F instanceof Error||(F=Error("b259802748"));g.Zz(F);return N.return(d)})}; Oln=function(d,q,T,Y,e,U){Y.index&&(e.playlistIndex=String(Number(Y.index)+1));e.videoId=T?T:"";q&&U.Wv("embeds_enable_per_video_embed_config")?e.serializedThirdPartyEmbedConfig=q:d&&(e.serializedThirdPartyEmbedConfig=d)}; g.Oi=function(d,q){Zf.get(d);Zf.set(d,q)}; g.na=function(d){g.YP.call(this);this.loaded=!1;this.player=d}; tkX=function(){this.U=[];this.G=[]}; g.si=function(d,q){return q?d.G.concat(d.U):d.G}; g.rV=function(d,q){switch(q.kind){case "asr":BaH(q,d.U);break;default:BaH(q,d.G)}}; BaH=function(d,q){g.QN(q,function(T){return d.equals(T)})||q.push(d)}; g.tc=function(d){g.W.call(this);this.mZ=d;this.U=new tkX;this.T=null;this.S=[];this.B=[]}; g.Bc=function(d,q,T){g.tc.call(this,d);this.videoData=q;this.audioTrack=T;this.G=null;this.j=!1;this.S=q.YA;this.B=q.gQ;this.j=g.XG(q)}; g.KKN=function(d,q){var T;return d.C().N("safari_live_drm_captions_fix")&&((T=d.getVideoData())==null?0:T.It())?!1:g.xv(d.C())&&!q.isManifestless}; g.Ka=function(d,q){return iW(d.info.mimeType)?q?d.info.itag===q:!0:!1}; g.GrX=function(d,q){if(d.G!=null&&g.KKN(q,d.G)&&d.G.G.rawcc!=null)return!0;if(!d.aN())return!1;q=!!d.G&&d.G.isManifestless&&Object.values(d.G.G).some(function(T){return g.Ka(T,"386")}); d=!!d.G&&!d.G.isManifestless&&g.xF_(d.G);return q||d}; g.GV=function(d,q,T,Y,e,U){g.tc.call(this,d);this.videoId=T;this.Qe=e;this.eventId=U;this.X={};this.G=null;d=Y||g.oE(q).hl||"";d=d.split("_").join("-");this.j=VH(q,{hl:d})}; LKD=function(d,q){g.W.call(this);var T=this;this.J=d;this.T=q;this.lk={};this.G={};this.U=null;this.j=new Set;this.S=new g.aI(this);this.fC={a0D:function(){return T.T}}; this.X=this.J.N("web_player_defer_modules");this.OS=new Map;g.C(this,this.S);this.S.W(d,"videodatachange",this.onVideoDataChange)}; krg=function(d,q){d.U=q}; g.La=function(d){return d.OS.get("captions")}; fj1=function(d,q){switch(q){case "ad":return P6j(d);case "annotations_module":return d.J.isEmbedsShortsMode()?d=!1:(q=d.J,d=q.C(),q=q.getVideoData(),d=d.j||q.YJ||d.controlsType==="3"?!1:d.aU.isEmpty()&&d.playerStyle!=="annotation-editor"&&d.playerStyle!=="live-dashboard"?!!q.RU||!!g.Y4(q)||!!g.UF(q):!0),d;case "asmjs":return WK6(d);case "creatorendscreen":return C6D(d);case "embed":return g.dn(d.J.C());case "endscreen":return g.uh1(d);case "heartbeat":return d.ZK();case "kids":return Ni(d.J.C()); case "remote":return d.J.C().Aq;case "miniplayer":return d.J.C().showMiniplayerUiWhenMinimized;case "offline":return d.J.C().t0;case "captions":return DUY(d);case "unplugged":return g.XW(d.J.C());case "ux":return d.J.C().AF;case "webgl":return w1j(d);case "ypc":return d.Gi();case "ypc_clickwrap":return d=d.J.getVideoData(),d.Kz&&!d.Q8;case "yto":return d.J.N("web_player_playable_sequences_refactor")?!1:!!d.J.getVideoData().K.includes("yto");default:return g.Zz(Error("Module descriptor "+q+" does not match")), !1}}; kr=function(d,q,T,Y,e){var U;T=T===void 0?!1:T;Y=Y===void 0?!1:Y;var b=d.OS.get(q);if(!b||Y)if(e||(e=function(){kr(d,q,T,Y)}),U||(U=function(){d.J.Lz(q)}),b=b||zbI(d,q,fj1(d,q),e,U))d.OS.set(q,b),b.create(),d.J.publish("modulecreated",q),T&&d.J.uv("onApiChange")}; IjY=function(d){var q=q===void 0?!1:q;var T,Y,e,U,b;return g.G(function(J){if(J.U==1)return(T=d.OS.get("asmjs"))&&!q?J.return(T):(Y=Zf.get("asmjs"))!=null?(e=Y,J.tF(2)):g.B(J,new Promise(function(F,N){ilY(d,"asmjs",function(){var R=Zf.get("asmjs");R?F(R):N("cannot load module asmjs")},N)}),3); J.U!=2&&(e=J.G);U=e;if(!U)return J.return(Promise.reject("cannot load module asmjs"));b=new U(d.J);d.OS.set("asmjs",b);b.create();return J.return(b)})}; lj1=function(d){mU6(d)&&d.AV();SeX(d)&&(kr(d,"captions",!0),kr(d,"endscreen"),d.fB(),kr(d,"creatorendscreen",!0))}; SeX=function(d){var q=d.J.getVideoData(),T=d.X&&!q.isInlinePlaybackNoAd;d.J.N("html5_defer_modules_on_ads_only")&&!q.isAd()&&(T=!1);return T}; mU6=function(d){d=d.J.getVideoData();var q;if(q=d.N("web_player_defer_ad")){if(g.cR(d.K,"ad")||Pvn(d)||d.enableServerStitchedDai)d=!1;else{q=d.playerResponse;d=d.startSeconds;var T=q==null?void 0:q.adPlacements;if(q=T){q=Number.MAX_VALUE;T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next())if(Y=Y.value.adPlacementRenderer){var e=void 0,U=(e=Y.config)==null?void 0:e.adPlacementConfig;e=void 0;if(((e=U)==null?void 0:e.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var b=e=void 0;U=Number((e=U)==null?void 0:(b= e.adTimeOffset)==null?void 0:b.offsetStartMilliseconds)||0;b=e=void 0;Y=Number(((e=Y.renderer)==null?void 0:(b=e.adBreakServiceRenderer)==null?void 0:b.prefetchMilliseconds)||0);Y=U-Y;Y=11;d=d.api.C().L&&zV;return!(!q&&!d)}; YB=function(d,q){return!d.api.isInline()&&!hzf(d,Qi(q))&&g.cG(q)}; yT2=function(d){d.QH.oZ();if(d.Jw&&d.xR)d.xR=!1;else if(!d.api.C().RU&&!d.LW()){var q=d.api.getPlayerStateObject();g.I(q,2)&&g.zJ(d.api)||d.fY(q);!d.api.C().wO||q.isCued()||g.I(q,1024)?d.cW():d.sT.isActive()?(d.Nh(),d.sT.stop()):d.sT.start()}}; QPj=function(d,q){var T;if((T=d.api.getVideoData())==null?0:T.mutedAutoplay){var Y,e;if((Y=q.target)==null?0:(e=Y.className)==null?0:e.includes("ytp-info-panel"))return!1}return g.cG(q)&&d.api.isMutedByMutedAutoplay()?(d.api.unMute(),d.api.getPresentingPlayerType()===2&&d.api.playVideo(),q=d.api.getPlayerStateObject(),!g.I(q,4)||g.I(q,8)||g.I(q,2)||d.cW(),!0):!1}; My_=function(d,q,T){d.api.isFullscreen()?T<1-q&&d.api.toggleFullscreen():T>1+q&&d.api.toggleFullscreen()}; xkN=function(d){var q=PL()&&Gt()>=67&&!d.api.C().L;d=d.api.C().disableOrganicUi;return!g.kA("tizen")&&!vx&&!q&&!d}; g.eg=function(d){g.f.call(this,{Y:"div",V:[{Y:"div",D:"ytp-bezel-text-wrapper",V:[{Y:"div",D:"ytp-bezel-text",j5:"{{title}}"}]},{Y:"div",D:"ytp-bezel",Z:{role:"status","aria-label":"{{label}}"},V:[{Y:"div",D:"ytp-bezel-icon",j5:"{{icon}}"}]}]});this.J=d;this.U=new g.f9(this.show,10,this);d=this.J.N("delhi_modern_web_player")?1E3:500;this.G=new g.f9(this.hide,d,this);g.C(this,this.U);g.C(this,this.G);this.hide()}; bg=function(d,q,T){if(q<=0){T=Zy();q="\u5df2\u9759\u97f3";var Y=0}else T=T?{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,Z:{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"}}]}:{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,Z:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},Y=Math.floor(q),q=Y+"\u97f3\u91cf";Ua(d,T,q,Y+"%")}; cT2=function(d,q){q=q?{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"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"}}]}:cBH();var T=d.J.getPlaybackRate(),Y=g.bO("\u64ad\u653e\u901f\u5ea6\u4e3a $RATE",{RATE:String(T)});Ua(d,q,Y,T+"x")}; E$n=function(d,q){q=q?"\u5df2\u6253\u5f00\u5b57\u5e55":"\u5df2\u5173\u95ed\u5b57\u5e55";Ua(d,m7Q(d.J),q)}; Ua=function(d,q,T,Y){Y=Y===void 0?"":Y;d.updateValue("label",T===void 0?"":T);d.updateValue("icon",q);g.I1(d.G);d.U.start();d.updateValue("title",Y);g.ep(d.element,"ytp-bezel-text-hide",!Y)}; jPQ=function(d,q){g.f.call(this,{Y:"button",hF:["ytp-button","ytp-cards-button"],Z:{"aria-label":"\u663e\u793a\u4fe1\u606f\u5361","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.dn(d.C()))},V:[{Y:"span",D:"ytp-cards-button-icon-default",V:[{Y:"div",D:"ytp-cards-button-icon",V:[d.C().N("player_new_info_card_format")?asg():{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"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 M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {Y:"div",D:"ytp-cards-button-title",j5:"\u4fe1\u606f"}]},{Y:"span",D:"ytp-cards-button-icon-shopping",V:[{Y:"div",D:"ytp-cards-button-icon",V:[{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",D:"ytp-svg-shadow",Z:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{Y:"path",D:"ytp-svg-fill",Z:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{Y:"path",D:"ytp-svg-shadow-fill",Z:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{Y:"div", D:"ytp-cards-button-title",j5:"\u8d2d\u7269"}]}]});this.J=d;this.U=q;this.G=null;this.fade=new g.oh(this,250,!0,100);g.C(this,this.fade);g.ep(this.U,"ytp-show-cards-title",g.dn(d.C()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.VV(!0)}; ar_=function(d,q){g.f.call(this,{Y:"div",D:"ytp-cards-teaser",V:[{Y:"div",D:"ytp-cards-teaser-box"},{Y:"div",D:"ytp-cards-teaser-text",V:d.C().N("player_new_info_card_format")?[{Y:"button",D:"ytp-cards-teaser-info-icon",Z:{"aria-label":"\u663e\u793a\u4fe1\u606f\u5361","aria-haspopup":"true"},V:[asg()]},{Y:"img",D:"ytp-cards-teaser-channel-avatar",Z:{alt:"","aria-hidden":"true"}},{Y:"span",D:"ytp-cards-teaser-label",j5:"{{text}}"},{Y:"button",D:"ytp-cards-teaser-close-button",Z:{"aria-label":"\u5173\u95ed"}, V:[g.y9()]}]:[{Y:"span",D:"ytp-cards-teaser-label",j5:"{{text}}"}]}]});var T=this;this.J=d;this.x9=q;this.fade=new g.oh(this,250,!1,250);this.G=null;this.L=new g.f9(this.HnO,300,this);this.X=new g.f9(this.sNv,2E3,this);this.T=[];this.U=null;this.B=new g.f9(function(){T.element.style.margin="0"},250); this.onClickCommand=this.j=null;g.C(this,this.fade);g.C(this,this.L);g.C(this,this.X);g.C(this,this.B);d.C().N("player_new_info_card_format")?(g.d9(d.getRootNode(),"ytp-cards-teaser-dismissible"),this.W(this.Qv("ytp-cards-teaser-close-button"),"click",this.e7),this.W(this.Qv("ytp-cards-teaser-info-icon"),"click",this.M8),this.W(this.Qv("ytp-cards-teaser-label"),"click",this.M8)):this.listen("click",this.M8);this.W(q.element,"mouseover",this.v7);this.W(q.element,"mouseout",this.RM);this.W(d,"cardsteasershow", this.U3f);this.W(d,"cardsteaserhide",this.bF);this.W(d,"cardstatechange",this.Pi);this.W(d,"presentingplayerstatechange",this.Pi);this.W(d,"appresize",this.R0);this.W(d,"onShowControls",this.R0);this.W(d,"onHideControls",this.Iq);this.listen("mouseenter",this.n2)}; ATg=function(d){g.f.call(this,{Y:"button",hF:[Xy.BUTTON,Xy.TITLE_NOTIFICATIONS],Z:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{Y:"div",D:Xy.TITLE_NOTIFICATIONS_ON,Z:{title:"\u505c\u6b62\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5","aria-label":"\u53d1\u9001\u8ba2\u9605\u5185\u5bb9\u901a\u77e5"},V:[g.MP()]},{Y:"div",D:Xy.TITLE_NOTIFICATIONS_OFF,Z:{title:"\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5","aria-label":"\u53d1\u9001\u8ba2\u9605\u5185\u5bb9\u901a\u77e5"}, V:[{Y:"svg",Z:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{Y:"path",Z:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=d;this.G=!1;d.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5")}; peD=function(d,q){d.G=q;d.element.classList.toggle(Xy.NOTIFICATIONS_ENABLED,d.G);var T=d.api.getVideoData();T?(q=q?T.hg:T.In)?(d=d.api.S0())?KU(d,q):g.Zz(Error("No innertube service available when updating notification preferences.")):g.Zz(Error("No update preferences command available.")):g.Zz(Error("No video data when updating notification preferences."))}; Or_=function(d,q,T){var Y=Y===void 0?800:Y;var e=e===void 0?600:e;var U=document.location.protocol;d=Iv1(U+"//"+d+"/signin?context=popup","feature",q,"next",U+"//"+location.hostname+"/post_login");Zrj(d,T,Y,e)}; Zrj=function(d,q,T,Y){T=T===void 0?800:T;Y=Y===void 0?600:Y;if(d=g.Ry(window,d,"loginPopup","width="+T+",height="+Y+",resizable=yes,scrollbars=yes"))MW6(function(){q()}),d.moveTo((screen.width-T)/2,(screen.height-Y)/2)}; g.Jg=function(d,q,T,Y,e,U,b,J,F,N,R,x){d=d.charAt(0)+d.substring(1).toLowerCase();T=T.charAt(0)+T.substring(1).toLowerCase();if(q==="0"||q==="-1")q=null;if(Y==="0"||Y==="-1")Y=null;var y=R.C(),h=y.userDisplayName&&g.bS(y);g.f.call(this,{Y:"div",hF:["ytp-button","ytp-sb"],V:[{Y:"div",D:"ytp-sb-subscribe",Z:h?{title:R.C().N("player_tooltip_data_title_killswitch")?g.bO("\u4ee5$USER_NAME\u7684\u8eab\u4efd\u8ba2\u9605",{USER_NAME:y.userDisplayName}):"","data-tooltip-title":g.bO("\u4ee5$USER_NAME\u7684\u8eab\u4efd\u8ba2\u9605", {USER_NAME:y.userDisplayName}),"aria-label":"\u8ba2\u9605\u9891\u9053","data-tooltip-image":Om(y),"data-tooltip-opaque":String(g.dn(y)),tabindex:"0",role:"button"}:{"aria-label":"\u8ba2\u9605\u9891\u9053"},V:[{Y:"div",D:"ytp-sb-text",V:[{Y:"div",D:"ytp-sb-icon"},d]},q?{Y:"div",D:"ytp-sb-count",j5:q}:""]},{Y:"div",D:"ytp-sb-unsubscribe",Z:h?{title:R.N("player_tooltip_data_title_killswitch")?g.bO("\u4ee5\u201c$USER_NAME\u201d\u7684\u8eab\u4efd\u8ba2\u9605",{USER_NAME:y.userDisplayName}):"","data-tooltip-title":g.bO("\u4ee5\u201c$USER_NAME\u201d\u7684\u8eab\u4efd\u8ba2\u9605", {USER_NAME:y.userDisplayName}),"aria-label":"\u9000\u8ba2\u9891\u9053","data-tooltip-image":Om(y),"data-tooltip-opaque":String(g.dn(y)),tabindex:"0",role:"button"}:{"aria-label":"\u9000\u8ba2\u9891\u9053"},V:[{Y:"div",D:"ytp-sb-text",V:[{Y:"div",D:"ytp-sb-icon"},T]},Y?{Y:"div",D:"ytp-sb-count",j5:Y}:""]}],Z:{"aria-live":"polite"}});var H=this;this.channelId=b;this.J=R;this.j=x;var a=this.Qv("ytp-sb-subscribe"),p=this.Qv("ytp-sb-unsubscribe");U&&g.d9(this.element,"ytp-sb-classic");if(e){J?this.G(): this.U();var t=function(){if(y.yv){var K=H.channelId;if(F||N){var P={c:K};var w;g.qe.isInitialized()&&(w=f36(P));P=w||"";if(w=R.getVideoData())if(w=w.subscribeCommand){var l=R.S0();l?(KU(l,w,{botguardResponse:P,feature:F}),R.gO("SUBSCRIBE",K)):g.Zz(Error("No innertube service available when updating subscriptions."))}else g.Zz(Error("No subscribe command in videoData."));else g.Zz(Error("No video data available when updating subscription."))}p.focus();p.removeAttribute("aria-hidden");a.setAttribute("aria-hidden", "true")}else Or_(g.yv(H.J.C()),"sb_button",H.T)},n=function(){var K=H.channelId; if(F||N){var P=R.getVideoData();KU(R.S0(),P.unsubscribeCommand,{feature:F});R.gO("UNSUBSCRIBE",K)}a.focus();a.removeAttribute("aria-hidden");p.setAttribute("aria-hidden","true")}; this.W(a,"click",t);this.W(p,"click",n);this.W(a,"keypress",function(K){K.keyCode===13&&t(K)}); this.W(p,"keypress",function(K){K.keyCode===13&&n(K)}); this.W(R,"SUBSCRIBE",this.G);this.W(R,"UNSUBSCRIBE",this.U);this.j&&h&&(rHY(R),D$(R,a,this),D$(R,p,this))}else g.d9(a,"ytp-sb-disabled"),g.d9(p,"ytp-sb-disabled")}; ty2=function(d){g.f.call(this,{Y:"div",D:"ytp-title-channel",V:[{Y:"div",D:"ytp-title-beacon"},{Y:"a",D:"ytp-title-channel-logo",Z:{href:"{{channelLink}}",target:d.C().K,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{Y:"div",D:"ytp-title-expanded-overlay",Z:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{Y:"div",D:"ytp-title-expanded-heading",V:[{Y:"div",D:"ytp-title-expanded-title",V:[{Y:"a",j5:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:d.C().K,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{Y:"div",D:"ytp-title-expanded-subtitle",j5:"{{expandedSubtitle}}",Z:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var q=this;this.api=d;this.channel=this.Qv("ytp-title-channel");this.U=this.Qv("ytp-title-channel-logo");this.channelName=this.Qv("ytp-title-expanded-title");this.X=this.Qv("ytp-title-expanded-overlay");this.j=this.G=this.subscribeButton=null;this.T=!1;d.createClientVe(this.U,this,36925);d.createClientVe(this.channelName,this, 37220);g.dn(this.api.C())&&n$n(this);this.W(d,"videodatachange",this.S5);this.W(d,"videoplayerreset",this.S5);this.W(this.channelName,"click",function(T){q.api.logClick(q.channelName);g.Ry(window,rTf(q));T.preventDefault()}); this.W(this.U,"click",this.Dkv);this.S5()}; BBN=function(d){if(!d.api.C().q5){var q=d.api.getVideoData(),T=new g.Jg("\u8ba2\u9605",null,"\u5df2\u8ba2\u9605",null,!0,!1,q.Gp,q.subscribed,"channel_avatar",null,d.api,!0);d.api.createServerVe(T.element,d);var Y;d.api.setTrackingParams(T.element,((Y=q.subscribeButtonRenderer)==null?void 0:Y.trackingParams)||null);d.W(T.element,"click",function(){d.api.logClick(T.element)}); d.subscribeButton=T;g.C(d,d.subscribeButton);d.subscribeButton.IU(d.X);d.subscribeButton.hide();var e=new ATg(d.api);d.G=e;g.C(d,e);e.IU(d.X);e.hide();d.W(d.api,"SUBSCRIBE",function(){q.U5&&(e.show(),d.api.logVisibility(e.element,!0))}); d.W(d.api,"UNSUBSCRIBE",function(){q.U5&&(e.hide(),d.api.logVisibility(e.element,!1),peD(e,!1))})}}; n$n=function(d){var q=d.api.C();BBN(d);d.updateValue("flyoutUnfocusable","true");d.updateValue("channelTitleFocusable","-1");d.updateValue("shouldHideExpandedTitleForA11y","true");d.updateValue("shouldHideExpandedSubtitleForA11y","true");q.U||q.qk||(d.W(d.channel,"mouseenter",d.h_),d.W(d.channel,"mouseleave",d.mx),d.W(d.channel,"focusin",d.h_),d.W(d.channel,"focusout",function(T){d.channel.contains(T.relatedTarget)||d.mx()})); d.j=new g.f9(function(){d.isExpanded()&&(d.api.logVisibility(d.channelName,!1),d.subscribeButton&&(d.subscribeButton.hide(),d.api.logVisibility(d.subscribeButton.element,!1)),d.G&&(d.G.hide(),d.api.logVisibility(d.G.element,!1)),d.channel.classList.remove("ytp-title-expanded"),d.channel.classList.add("ytp-title-show-collapsed"))},500); g.C(d,d.j);d.W(d.channel,KOg,function(){G_I(d)}); d.W(d.api,"onHideControls",d.zZ);d.W(d.api,"appresize",d.zZ);d.W(d.api,"fullscreentoggled",d.zZ)}; G_I=function(d){d.channel.classList.remove("ytp-title-show-collapsed");d.channel.classList.remove("ytp-title-show-expanded")}; LOD=function(d){var q=d.api.getPlayerSize();return g.dn(d.api.C())&&q.width>=524}; rTf=function(d){var q=d.api.C(),T=d.api.getVideoData(),Y=g.nI(q)+T.wO;g.MC(T)&&(Y="https://music.youtube.com"+T.wO);if(!g.dn(q))return Y;q={};g.OF(d.api,"addEmbedsConversionTrackingParams",[q]);return g.y6(Y,q)}; sa=function(d){var q=g.Fp({"aria-haspopup":"true"});g.gR.call(this,q,d);this.listen("keydown",this.G)}; $B=function(d,q){d.element.setAttribute("aria-haspopup",String(q))}; k_Y=function(d,q){g.f.call(this,{Y:"div",D:"ytp-user-info-panel",Z:{"aria-label":"\u7528\u6237\u4fe1\u606f"},V:d.C().yv&&!d.N("embeds_web_always_enable_signed_out_state")?[{Y:"div",D:"ytp-user-info-panel-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-user-info-panel-content",V:[{Y:"div",D:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable}}",role:"text"},j5:"{{watchingAsUsername}}"},{Y:"div",D:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable2}}",role:"text"},j5:"{{watchingAsEmail}}"}]}]: [{Y:"div",D:"ytp-user-info-panel-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-user-info-panel-content",V:[{Y:"div",V:[{Y:"text",Z:{tabIndex:"{{userInfoFocusable}}"},j5:"\u672a\u767b\u5f55"}]},{Y:"div",D:"ytp-user-info-panel-login",V:[{Y:"a",Z:{tabIndex:"{{userInfoFocusable2}}",role:"button"},j5:d.C().q5?"":"\u767b\u5f55 YouTube"}]}]}]});this.mZ=d;this.G=q;d.C().yv||d.C().q5||this.W(this.Qv("ytp-user-info-panel-login"),"click",this.L2);this.closeButton=new g.f({Y:"button",hF:["ytp-collapse","ytp-button"], Z:{title:"\u5173\u95ed"},V:[g.pM()]});this.closeButton.IU(this.element);g.C(this,this.closeButton);this.W(window,"blur",this.hide);this.W(document,"click",this.Nl);this.S5()}; CU2=function(d,q,T){g.rF.call(this,d);this.TG=q;this.Jm=T;this.getVideoUrl=new sa(6);this.W1=new sa(5);this.LS=new sa(4);this.BF=new sa(3);this.m3=new g.gR(g.Fp({href:"{{href}}",target:this.J.C().K},void 0,!0),2,"\u6392\u67e5\u64ad\u653e\u95ee\u9898");this.showVideoInfo=new g.gR(g.Fp(),1,"\u8be6\u7ec6\u7edf\u8ba1\u4fe1\u606f");this.au=new g.Ji({Y:"div",hF:["ytp-copytext","ytp-no-contextmenu"],Z:{draggable:"false",tabindex:"1"},j5:"{{text}}"});this.aj=new nc(this.J,this.au);this.Si=this.Cl=null;g.dn(this.J.C())&& (this.closeButton=new g.f({Y:"button",hF:["ytp-collapse","ytp-button"],Z:{title:"\u5173\u95ed"},V:[g.pM()]}),g.C(this,this.closeButton),this.closeButton.IU(this.element),this.closeButton.listen("click",this.Yb,this));g.dn(this.J.C())&&(this.Vi=new g.gR(g.Fp(),8,"\u8d26\u53f7"),g.C(this,this.Vi),this.rk(this.Vi,!0),this.Vi.listen("click",this.kqg,this),d.createClientVe(this.Vi.element,this.Vi,137682));this.J.C().PR&&(this.Lp=new jq("\u5faa\u73af\u64ad\u653e",7),g.C(this,this.Lp),this.rk(this.Lp,!0), this.Lp.listen("click",this.rA2,this),d.createClientVe(this.Lp.element,this.Lp,28661));g.C(this,this.getVideoUrl);this.rk(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.TzO,this);d.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.C(this,this.W1);this.rk(this.W1,!0);this.W1.listen("click",this.yAw,this);d.createClientVe(this.W1.element,this.W1,28660);g.C(this,this.LS);this.rk(this.LS,!0);this.LS.listen("click",this.inD,this);d.createClientVe(this.LS.element,this.LS,28658); g.C(this,this.BF);this.rk(this.BF,!0);this.BF.listen("click",this.jNv,this);g.C(this,this.m3);this.rk(this.m3,!0);this.m3.listen("click",this.XG5,this);g.C(this,this.showVideoInfo);this.rk(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.Vtk,this);g.C(this,this.au);this.au.listen("click",this.BOO,this);g.C(this,this.aj);q=document.queryCommandSupported&&document.queryCommandSupported("copy");mHX("Chromium")>=43&&(q=!0);mHX("Firefox")<=40&&(q=!1);q&&(this.Cl=new g.f({Y:"textarea",D:"ytp-html5-clipboard", Z:{readonly:"",tabindex:"-1"}}),g.C(this,this.Cl),this.Cl.IU(this.element));var Y;(Y=this.Vi)==null||Y.setIcon(nOn());var e;(e=this.Lp)==null||e.setIcon(L2n());this.BF.setIcon({Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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.m3.setIcon(EO1());this.showVideoInfo.setIcon(jYX());this.W(d,"onLoopChange",this.onLoopChange);this.W(d,"videodatachange",this.onVideoDataChange);PUY(this);WOn(this,this.J.getVideoData())}; gr=function(d,q){var T=!1;if(d.Cl){var Y=d.Cl.element;Y.value=q;Y.select();try{T=document.execCommand("copy")}catch(e){}}T?d.TG.bF():(d.au.A1(q,"text"),g.Kc(d.TG,d.aj),nR(d.au.element),d.Cl&&(d.Cl=null,PUY(d)));return T}; WOn=function(d,q){var T=d.J.C(),Y=d.J.getPresentingPlayerType()===2,e=!Y||q.isListed;e=!T.UD&&!!q.videoId&&e;T.playerStyle!=="play"?T="https://support.google.com/youtube/?p=report_playback":(T={contact_type:"playbackissue",html5:1,ei:q.eventId,v:q.videoId,p:"movies_playback"},q.U&&(T.fmt=q.U.itag),q.clientPlaybackNonce&&(T.cpn=q.clientPlaybackNonce),q.partnerId&&(T.partnerid=q.partnerId),T=g.y6("//support.google.com/googleplay/",T));d.LS.OM(e&&q.allowEmbed);d.getVideoUrl.OM(e);d.W1.OM(e&&!q.isLivePlayback); d.m3.A1(T,"href");var U;(U=d.Lp)==null||U.OM(!q.isLivePlayback&&!Y);var b;(b=d.Vi)==null||b.OM(!Y)}; PUY=function(d){var q=!!d.Cl;g.$T(d.BF,q?"\u590d\u5236\u8c03\u8bd5\u4fe1\u606f":"\u83b7\u53d6\u8c03\u8bd5\u4fe1\u606f");$B(d.BF,!q);g.$T(d.LS,q?"\u590d\u5236\u5d4c\u5165\u4ee3\u7801":"\u83b7\u53d6\u5d4c\u5165\u4ee3\u7801");$B(d.LS,!q);g.$T(d.getVideoUrl,q?"\u590d\u5236\u89c6\u9891\u7f51\u5740":"\u83b7\u53d6\u89c6\u9891\u7f51\u5740");$B(d.getVideoUrl,!q);g.$T(d.W1,q?"\u590d\u5236\u5f53\u524d\u65f6\u95f4\u7684\u89c6\u9891\u7f51\u5740":"\u83b7\u53d6\u5728\u64ad\u89c6\u9891\u7684\u7f51\u5740");$B(d.W1, !q);d.LS.setIcon(q?QYn():null);d.getVideoUrl.setIcon(q?Hk():null);d.W1.setIcon(q?Hk():null)}; uUH=function(d){return g.dn(d.J.C())?d.Vi:d.Lp}; weD=function(d,q){g.B$.call(this,d);this.Jm=q;this.T=new g.aI(this);this.lr=new g.f9(this.Qc2,1E3,this);this.UD=this.j=null;g.C(this,this.T);g.C(this,this.lr);q=this.J.C();d.createClientVe(this.element,this,28656);g.d9(this.element,"ytp-contextmenu");this.J.C().experiments.Wv("delhi_modern_web_player")&&g.cT(q)&&g.d9(this.element,"ytp-delhi-modern-contextmenu");Dkg(this);this.hide()}; Dkg=function(d){g.jX(d.T);var q=d.J.C();q.playerStyle==="gvn"||q.U||q.qk||(q=d.J.OD(),d.T.W(q,"contextmenu",d.gxf),d.T.W(q,"touchstart",d.onTouchStart,null,!0),d.T.W(q,"touchmove",d.dI,null,!0),d.T.W(q,"touchend",d.dI,null,!0))}; frQ=function(d){d.J.isFullscreen()?g.o6(d.J,d.element,10):d.IU(Xp(d).body)}; Fy=function(d,q,T){T=T===void 0?240:T;g.f.call(this,{Y:"button",hF:["ytp-button","ytp-copylink-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.dn(d.C()))},V:[{Y:"div",D:"ytp-copylink-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-copylink-title",j5:"\u590d\u5236\u94fe\u63a5",Z:{"aria-hidden":"true"}}]});this.api=d;this.G=q;this.U=T;this.visible=!1;this.tooltip=this.G.nH();q=d.C();this.tooltip.element.setAttribute("aria-live", "polite");g.ep(this.element,"ytp-show-copylink-title",g.dn(q));d.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.W(d,"videodatachange",this.S5);this.W(d,"videoplayerreset",this.S5);this.W(d,"appresize",this.S5);this.S5();this.addOnDisposeCallback(g.uH(this.tooltip,this.element))}; zzY=function(d){var q=d.api.C(),T=d.api.getVideoData(),Y=d.api.OD().getPlayerSize().width;q=q.j;return!!T.videoId&&Y>=d.U&&T.Oi&&!T.kc&&!d.api.isEmbedsShortsMode()&&!q}; irD=function(d){d.updateValue("icon",NP());if(d.api.C().U)d.tooltip.lK(d.element,"\u94fe\u63a5\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f");else{d.updateValue("title-attr","\u94fe\u63a5\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f");d.updateValue("tooltip-title","\u94fe\u63a5\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f");d.tooltip.U$();d.tooltip.lK(d.element);var q=d.listen("mouseleave",function(){d.t1(q);d.S5();d.tooltip.Jo()})}}; Ir7=function(d,q){return g.G(function(T){if(T.U==1)return g.jD(T,2),g.B(T,navigator.clipboard.writeText(q),4);if(T.U!=2)return T.return(!0);g.nN(T);var Y=T.return,e=!1,U=g.FE("TEXTAREA");U.value=q;U.setAttribute("readonly","");var b=d.api.getRootNode();b.appendChild(U);if(uR){var J=window.getSelection();J.removeAllRanges();var F=document.createRange();F.selectNodeContents(U);J.addRange(F);U.setSelectionRange(0,q.length)}else U.select();try{e=document.execCommand("copy")}catch(N){}b.removeChild(U); return Y.call(T,e)})}; mk1=function(d){g.f.call(this,{Y:"div",D:"ytp-doubletap-ui-legacy",V:[{Y:"div",D:"ytp-doubletap-fast-forward-ve"},{Y:"div",D:"ytp-doubletap-rewind-ve"},{Y:"div",D:"ytp-doubletap-static-circle",V:[{Y:"div",D:"ytp-doubletap-ripple"}]},{Y:"div",D:"ytp-doubletap-overlay-a11y"},{Y:"div",D:"ytp-doubletap-seek-info-container",V:[{Y:"div",D:"ytp-doubletap-arrows-container",V:[{Y:"span",D:"ytp-doubletap-base-arrow"},{Y:"span",D:"ytp-doubletap-base-arrow"},{Y:"span",D:"ytp-doubletap-base-arrow"}]},{Y:"div", D:"ytp-doubletap-tooltip",V:[{Y:"div",D:"ytp-seek-icon-text-container",V:[{Y:"div",D:"ytp-seek-icon",j5:"{{seekIcon}}"},{Y:"div",D:"ytp-chapter-seek-text-legacy",j5:"{{seekText}}"}]},{Y:"div",D:"ytp-doubletap-tooltip-label",j5:"{{seekTime}}"}]}]}]});this.J=d;this.T=new g.f9(this.show,10,this);this.U=new g.f9(this.hide,700,this);this.L=this.j=0;this.lr=this.X=!1;this.G=this.Qv("ytp-doubletap-static-circle");g.C(this,this.T);g.C(this,this.U);this.hide();this.B=this.Qv("ytp-doubletap-fast-forward-ve"); this.K=this.Qv("ytp-doubletap-rewind-ve");this.J.createClientVe(this.B,this,28240);this.J.createClientVe(this.K,this,28239);this.J.logVisibility(this.B,!0);this.J.logVisibility(this.K,!0);this.X=d.N("web_show_cumulative_seek_time");this.lr=d.N("web_center_static_circles")}; SW1=function(d,q){q=g.bO("$TOTAL_SEEK_TIME \u79d2",{TOTAL_SEEK_TIME:q.toString()});d.updateValue("seekTime",q)}; lr2=function(d){O8.call(this,d,!1,!0);this.rO=[];this.vF=[];this.element.setAttribute("data-overlay-order","9");this.B=!0;this.badge.element.classList.add("ytp-featured-product");this.z2=new g.f({Y:"div",D:"ytp-featured-product-open-in-new"});g.C(this,this.z2);this.countdownTimer=new g.f({Y:"text",D:"ytp-featured-product-countdown",j5:"{{content}}"});this.countdownTimer.hide();g.C(this,this.countdownTimer);this.U=new g.f({Y:"div",D:"ytp-featured-product-trending",V:[{Y:"div",D:"ytp-featured-product-trending-icon"}, {Y:"text",D:"ytp-featured-product-trending-text",j5:"{{trendingOffer}}"}]});this.U.hide();g.C(this,this.U);this.overflowButton=new g.f({Y:"button",hF:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.C(this,this.overflowButton);this.L=new g.f({Y:"text",D:"ytp-featured-product-exclusive-countdown",j5:"{{content}}",Z:{id:"exclusiveCountdown","aria-hidden":"true"}});this.L.hide();g.C(this,this.L);this.X=new g.f({Y:"div",D:"ytp-featured-product-exclusive-container", Z:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{Y:"div",D:"ytp-featured-product-exclusive-badge-container",V:[{Y:"div",D:"ytp-featured-product-exclusive-badge",V:[{Y:"text",D:"ytp-featured-product-exclusive-badge-text",j5:"{{exclusive}}",Z:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.L]});this.X.hide();g.C(this,this.X);this.banner=new g.f({Y:"a",D:"ytp-featured-product-container",V:[{Y:"div",D:"ytp-featured-product-thumbnail",V:[{Y:"img",Z:{src:"{{thumbnail}}"}},this.z2]},{Y:"div", D:"ytp-featured-product-details",V:[{Y:"text",D:"ytp-featured-product-title",j5:"{{title}}"},this.J.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Y:"div",D:"ytp-featured-product-price-container",Z:{"aria-label":"{{priceA11yText}}"},V:[{Y:"text",D:"ytp-featured-product-price-when-promotion-text-enabled",j5:"{{price}}",Z:{"aria-hidden":"true"}},{Y:"text",D:"ytp-featured-product-promotion-text",j5:"{{promotionText}}",Z:{"aria-hidden":"true"}}]}:{Y:"div",Z:{"aria-label":"{{priceA11yText}}"}, V:[{Y:"text",D:"ytp-featured-product-price",j5:"{{price}}",Z:{"aria-hidden":"true"}},{Y:"text",D:"ytp-featured-product-sales-original-price",j5:"{{salesOriginalPrice}}",Z:{"aria-hidden":"true"}},{Y:"text",D:"ytp-featured-product-price-drop-reference-price",j5:"{{priceDropReferencePrice}}",Z:{"aria-hidden":"true"}}]},this.J.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Y:"div",D:"ytp-featured-product-when-promotion-text-enabled",V:[{Y:"text",D:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", j5:"{{affiliateDisclaimer}}"},this.U,{Y:"text",D:"ytp-featured-product-vendor-when-promotion-text-enabled",j5:"{{vendor}}"}]}:{Y:"div",V:[{Y:"text",D:"ytp-featured-product-affiliate-disclaimer",j5:"{{affiliateDisclaimer}}"},this.J.N("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.X:null,this.U,{Y:"text",D:"ytp-featured-product-vendor",j5:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.C(this,this.banner);this.banner.IU(this.j.element);this.W(this.J,g.Sh("featured_product"), this.DUF);this.W(this.J,g.lG("featured_product"),this.vj);this.W(this.J,"videodatachange",this.onVideoDataChange);this.W(this.overflowButton.element,"click",this.DJ);this.W(d,"featuredproductdismissed",this.aC)}; v$1=function(d){var q,T;d=(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:T.itemData;var Y,e,U;return(d==null||!d.affiliateDisclaimer)&&(d==null?0:(Y=d.exclusivesData)==null?0:Y.exclusiveOfferLabelText)&&(d==null?0:(e=d.exclusivesData)==null?0:e.expirationTimestampMs)&&(d==null?0:(U=d.exclusivesData)==null?0:U.exclusiveOfferCountdownText)?!0:!1}; VyD=function(d){var q,T,Y,e,U=(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:(Y=T.itemData)==null?void 0:(e=Y.exclusivesData)==null?void 0:e.expirationTimestampMs;q=(Number(U)-Date.now())/1E3;if(q>0){if(q<604800){var b,J,F,N;T=(b=d.G)==null?void 0:(J=b.bannerData)==null?void 0:(F=J.itemData)==null?void 0:(N=F.exclusivesData)==null?void 0:N.exclusiveOfferCountdownText;if(T!==void 0)for(b=Date.now(),J=g.E(T),F=J.next();!F.done;F=J.next())if(F=F.value,F!==void 0&&F.text!==void 0&&(N=Number(F.textDisplayStartTimestampMs), !isNaN(N)&&b>=N)){F.insertCountdown?(q=F.text.replace(/\$0/,String(uq({seconds:q}))),d.L.A1(q)):d.L.A1(F.text);d.L.show();break}}var R,x,y,h;d.X.update({exclusive:(R=d.G)==null?void 0:(x=R.bannerData)==null?void 0:(y=x.itemData)==null?void 0:(h=y.exclusivesData)==null?void 0:h.exclusiveOfferLabelText});d.X.show();Nl(d);var H;(H=d.ev)==null||H.start()}else o$D(d)}; o$D=function(d){var q;(q=d.ev)==null||q.stop();d.L.hide();d.X.hide();RW(d)}; dJD=function(d){var q,T,Y=(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:T.itemData;return d.J.N("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}; qU_=function(d){var q,T,Y=(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:T.itemData,e,U;if(!(Y!=null&&Y.priceReplacementText||d.J.N("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(Y==null?0:(e=Y.dealsData)==null?0:(U=e.sales)==null?0:U.originalPrice)){var b,J;return Y==null?void 0:(b=Y.dealsData)==null?void 0:(J=b.sales)==null?void 0:J.originalPrice}return null}; TAX=function(d){var q,T,Y=(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:T.itemData,e,U,b,J;if(!((Y==null?0:Y.priceReplacementText)||d.J.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(Y==null?0:(e=Y.dealsData)==null?0:(U=e.sales)==null?0:U.originalPrice))&&(Y==null?0:(b=Y.dealsData)==null?0:(J=b.priceDrop)==null?0:J.referencePrice)){var F,N;return Y==null?void 0:(F=Y.dealsData)==null?void 0:(N=F.priceDrop)==null?void 0:N.referencePrice}return null}; YUf=function(d){var q,T,Y=(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:T.itemData;if(Y==null?0:Y.priceReplacementText)return Y==null?void 0:Y.priceReplacementText;if((Y==null?0:Y.promotionText)&&d.J.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var e;return(Y==null?void 0:Y.price)+" "+(Y==null?void 0:(e=Y.promotionText)==null?void 0:e.content)}var U,b;if(Y==null?0:(U=Y.dealsData)==null?0:(b=U.sales)==null?0:b.originalPrice){var J,F;return Y==null?void 0:(J=Y.dealsData)== null?void 0:(F=J.sales)==null?void 0:F.salesPriceAccessibilityLabel}var N,R;if(Y==null?0:(N=Y.dealsData)==null?0:(R=N.priceDrop)==null?0:R.referencePrice){var x,y;return(Y==null?void 0:Y.price)+" "+(Y==null?void 0:(x=Y.dealsData)==null?void 0:(y=x.priceDrop)==null?void 0:y.referencePrice)}return Y==null?void 0:Y.price}; eMI=function(d){if(d.J.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var q,T,Y;return d.U.PF?null:(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:(Y=T.itemData)==null?void 0:Y.vendorName}var e,U,b,J,F,N;return d.U.PF||d.X.PF||((e=d.G)==null?0:(U=e.bannerData)==null?0:(b=U.itemData)==null?0:b.affiliateDisclaimer)?null:(J=d.G)==null?void 0:(F=J.bannerData)==null?void 0:(N=F.itemData)==null?void 0:N.vendorName}; b87=function(d,q){xB(d);if(q){var T=g.Aw.getState().entities;T=VA(T,"featuredProductsEntity",q);if(T!=null&&T.productsData){q=[];T=g.E(T.productsData);for(var Y=T.next();!Y.done;Y=T.next()){Y=Y.value;var e=void 0;if((e=Y)!=null&&e.identifier&&Y.featuredSegments){d.rO.push(Y);var U=void 0;e=g.E((U=Y)==null?void 0:U.featuredSegments);for(U=e.next();!U.done;U=e.next()){var b=U.value;U=UJH(b.startTimeSec);U!==void 0&&(b=UJH(b.endTimeSec),q.push(new g.Ij(U*1E3,b===void 0?0x7ffffffffffff:b*1E3,{id:Y.identifier, namespace:"featured_product"})))}}}d.J.ES(q)}}}; RW=function(d){if(d.trendingOfferEntityKey){var q=g.Aw.getState().entities;if(q=VA(q,"trendingOfferEntity",d.trendingOfferEntityKey)){var T,Y,e;q.encodedSkuId!==((T=d.G)==null?void 0:(Y=T.bannerData)==null?void 0:(e=Y.itemData)==null?void 0:e.encodedOfferSkuId)?Nl(d):(d.U.update({trendingOffer:q.shortLabel+" \u2022 "+q.countLabel}),d.U.show(),d.banner.update({vendor:eMI(d)}))}else Nl(d)}else Nl(d)}; Nl=function(d){d.U.hide();d.banner.update({vendor:eMI(d)})}; xB=function(d){d.rO=[];d.vj();d.J.hm("featured_product")}; XyD=function(d){var q,T,Y,e,U=(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:(Y=T.itemData)==null?void 0:(e=Y.hiddenProductOptions)==null?void 0:e.dropTimestampMs;q=(Number(U)-Date.now())/1E3;d.countdownTimer.A1(uq({seconds:q}));if(q>0){var b;(b=d.Qp)==null||b.start()}}; JXj=function(d){var q;(q=d.Qp)==null||q.stop();d.countdownTimer.hide()}; UJH=function(d){if(d!==void 0&&d.trim()!==""&&(d=Math.trunc(Number(d.trim())),!(isNaN(d)||d<0)))return d}; NA2=function(d,q,T){g.f.call(this,{Y:"div",hF:["ytp-info-panel-action-item"],V:[{Y:"div",D:"ytp-info-panel-action-item-disclaimer",j5:"{{disclaimer}}"},{Y:"a",hF:["ytp-info-panel-action-item-button","ytp-button"],Z:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{Y:"div",D:"ytp-info-panel-action-item-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-info-panel-action-item-label",j5:"{{label}}"}]}]});this.J=d;this.G=T;this.disclaimer=this.Qv("ytp-info-panel-action-item-disclaimer");this.button= this.Qv("ytp-info-panel-action-item-button");this.LH=!1;this.J.createServerVe(this.element,this,!0);this.listen("click",this.onClick);d="";T=g.D(q==null?void 0:q.onTap,ri);var Y=g.D(T,g.KM);this.LH=!1;Y?(d=Y.url||"",d.startsWith("//")&&(d="https:"+d),this.LH=!0,g.sD(this.button,g.b4(d))):(Y=g.D(T,sS6))&&!this.G?((d=Y.phoneNumbers)&&d.length>0?(d="sms:"+d[0],Y.messageText&&(d+="?&body="+encodeURI(Y.messageText))):d="",this.LH=!0,g.sD(this.button,g.b4(d,[$JY]))):(T=g.D(T,g01))&&!this.G&&(d=T.phoneNumber? "tel:"+T.phoneNumber:"",this.LH=!0,g.sD(this.button,g.b4(d,[Fy1])));var e;if(T=(e=q.disclaimerText)==null?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var U;this.update({label:(U=q.bodyText)==null?void 0:U.content,icon:ck(),disclaimer:T})}else{this.disclaimer.style.display="none";var b;this.update({label:(b=q.bodyText)==null?void 0:b.content,icon:ck()})}this.J.setTrackingParams(this.element,q.trackingParams||null);this.LH&&(this.U={externalLinkData:{url:d}})}; RM7=function(d,q){var T=ex();g.bi.call(this,d,{Y:"div",D:"ytp-info-panel-detail-skrim",V:[{Y:"div",D:"ytp-info-panel-detail",Z:{role:"dialog",id:T},V:[{Y:"div",D:"ytp-info-panel-detail-header",V:[{Y:"div",D:"ytp-info-panel-detail-title",j5:"{{title}}"},{Y:"button",hF:["ytp-info-panel-detail-close","ytp-button"],Z:{"aria-label":"\u5173\u95ed"},V:[g.y9()]}]},{Y:"div",D:"ytp-info-panel-detail-body",j5:"{{body}}"},{Y:"div",D:"ytp-info-panel-detail-items"}]}]},250);this.G=q;this.items=this.Qv("ytp-info-panel-detail-items"); this.j=new g.aI(this);this.itemData=[];this.T=T;this.W(this.Qv("ytp-info-panel-detail-close"),"click",this.bF);this.W(this.Qv("ytp-info-panel-detail-skrim"),"click",this.bF);this.W(this.Qv("ytp-info-panel-detail"),"click",function(Y){Y.stopPropagation()}); g.C(this,this.j);this.J.createServerVe(this.element,this,!0);this.W(d,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",d.getVideoData());this.hide()}; xJ7=function(d,q){d=g.E(d.itemData);for(var T=d.next();!T.done;T=d.next())T=T.value,T.J.logVisibility(T.element,q)}; H8I=function(d,q){g.f.call(this,{Y:"div",D:"ytp-info-panel-preview",Z:{"aria-live":"assertive","aria-atomic":"true","aria-owns":q.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.dn(d.C()))},V:[{Y:"div",D:"ytp-info-panel-preview-text",j5:"{{text}}"},{Y:"div",D:"ytp-info-panel-preview-chevron",j5:"{{chevron}}"}]});var T=this;this.J=d;this.Fd=this.G=this.videoId=null;this.j=this.showControls=this.U=!1;this.W(this.element,"click",function(){d.logClick(T.element);d.LW();JM(q)}); this.fade=new g.oh(this,250,!1,100);g.C(this,this.fade);this.J.createServerVe(this.element,this,!0);this.W(d,"videodatachange",this.onVideoDataChange);this.W(d,"presentingplayerstatechange",this.gT);this.W(this.J,"paidcontentoverlayvisibilitychange",this.Ce);this.W(this.J,"infopaneldetailvisibilitychange",this.Ce);var Y=d.getVideoData()||{};yXn(Y)&&hMH(this,Y);this.W(d,"onShowControls",this.Af);this.W(d,"onHideControls",this.xO)}; hMH=function(d,q){if(!q.Kz||!d.J.S8()){var T=q.j9||1E4,Y=yXn(q);d.G?q.videoId&&q.videoId!==d.videoId&&(g.I1(d.G),d.videoId=q.videoId,Y?(QS_(d,T,q),d.St()):(d.bF(),d.G.dispose(),d.G=null)):Y&&(q.videoId&&(d.videoId=q.videoId),QS_(d,T,q),d.St())}}; yXn=function(d){var q,T,Y,e;return!!((q=d.dA)==null?0:(T=q.title)==null?0:T.content)||!!((Y=d.dA)==null?0:(e=Y.bodyText)==null?0:e.content)}; QS_=function(d,q,T){d.G&&d.G.dispose();d.G=new g.f9(d.Zzk,q,d);g.C(d,d.G);var Y;q=((Y=T.dA)==null?void 0:Y.trackingParams)||null;d.J.setTrackingParams(d.element,q);var e;var U,b;if(T==null?0:(U=T.dA)==null?0:(b=U.title)==null?0:b.content){var J;Y=(e=T.dA)==null?void 0:(J=e.title)==null?void 0:J.content;var F,N;if((F=T.dA)==null?0:(N=F.bodyText)==null?0:N.content)Y+=" \u2022 ";e=Y}else e="";var R,x;T=((R=T.dA)==null?void 0:(x=R.bodyText)==null?void 0:x.content)||"";d.update({text:e+T,chevron:g.xP()})}; MrH=function(d,q){d.G&&(g.I(q,8)?(d.U=!0,d.St(),d.G.start()):(g.I(q,2)||g.I(q,64))&&d.videoId&&(d.videoId=null))}; yr=function(d){var q=null;try{q=d.toLocaleString("zh-CN",{style:"percent"})}catch(T){q=d.toLocaleString(void 0,{style:"percent"})}return q}; hg=function(d,q){var T=0;d=g.E(d);for(var Y=d.next();!(Y.done||Y.value.startTime>q);Y=d.next())T++;return T===0?T:T-1}; cXQ=function(d,q){for(var T=0,Y=g.E(d),e=Y.next();!e.done;e=Y.next()){e=e.value;if(q=e.timeRangeStartMillis&&q2147483647?"0":String(d)}; Qr=function(d,q,T){var Y=d.api.getCurrentTime(),e=Z8X(d,Y);d=Z8X(d,Y+q);return{startMediaTimeMs:e,endMediaTimeMs:d,seekSource:T}}; O8n=function(d){var q,T=(q=d.api.getVideoData())==null?void 0:q.y5();return d.api.getPresentingPlayerType(T)!==2}; H9=function(d,q){d.j.LO=q;g.ep(d.api.getRootNode(),"ytp-probably-keyboard-focus",q);g.ep(d.contextMenu.element,"ytp-probably-keyboard-focus",q)}; c9=function(d,q,T,Y){var e=g.La(d.api.M5());if(e&&e.loaded){var U=d.api.getSubtitlesUserSettings();e=void 0;for(var b=0;b0?q[0]:null;var T=g.bY("ytp-chrome-bottom"),Y=g.bY("ytp-ad-module");d.T=!(T==null||!T.contains(q));d.B=!(Y==null||!Y.contains(q));d.K=!(q==null||!q.hasAttribute("data-tooltip-target-fixed"));return q}; Wyf=function(d,q,T){if(!d.X){if(q){d.tooltipRenderer=q;q=d.tooltipRenderer.text;var Y=!1,e;(q==null?0:(e=q.runs)==null?0:e.length)&&q.runs[0].text&&(d.update({title:q.runs[0].text.toString()}),Y=!0);g.dv(d.title,Y);q=d.tooltipRenderer.detailsText;e=!1;var U;if((q==null?0:(U=q.runs)==null?0:U.length)&&q.runs[0].text){Y=q.runs[0].text.toString();U=Y.indexOf("$TARGET_ICON");if(U>-1)if(d.tooltipRenderer.targetId){q=[];Y=Y.split("$TARGET_ICON");var b=new g.Ux({Y:"span",D:"ytp-promotooltip-details-icon", V:[koI[d.tooltipRenderer.targetId]]});g.C(d,b);for(var J=[],F=g.E(Y),N=F.next();!N.done;N=F.next())N=new g.Ux({Y:"span",D:"ytp-promotooltip-details-component",j5:N.value}),g.C(d,N),J.push(N);Y.length===2?(q.push(J[0].element),q.push(b.element),q.push(J[1].element)):Y.length===1&&(U===0?(q.push(b.element),q.push(J[0].element)):(q.push(J[0].element),q.push(b.element)));U=q.length?q:null}else U=null;else U=Y;if(U){if(typeof U!=="string")for(g.xE(d.details),e=g.E(U),U=e.next();!U.done;U=e.next())d.details.appendChild(U.value); else d.update({details:U});e=!0}}g.dv(d.details,e);e=d.tooltipRenderer.acceptButton;U=!1;var R,x,y;((R=g.D(e,g.q6))==null?0:(x=R.text)==null?0:(y=x.runs)==null?0:y.length)&&g.D(e,g.q6).text.runs[0].text&&(d.update({acceptButtonText:g.D(e,g.q6).text.runs[0].text.toString()}),U=!0);g.dv(d.acceptButton,U);R=d.tooltipRenderer.dismissButton;x=!1;var h,H,a;((h=g.D(R,g.q6))==null?0:(H=h.text)==null?0:(a=H.runs)==null?0:a.length)&&g.D(R,g.q6).text.runs[0].text&&(d.update({dismissButtonText:g.D(R,g.q6).text.runs[0].text.toString()}), x=!0);g.dv(d.dismissButton,x)}T&&(d.j=T);d.G=LyY(d);d.L=!1;d.J.C().N("web_player_hide_nitrate_promo_tooltip")||d.OM(!0);PK2(d);d.PF&&!d.lr&&(d.lr=!0,d.fC.Zk(0));d.U&&d.J.logVisibility(d.element,d.PF)}}; aW=function(d){d.OM(!1);d.U&&d.J.logVisibility(d.element,d.PF)}; CKD=function(d){var q,T,Y,e=((q=g.D(d.acceptButton,g.q6))==null?void 0:(T=q.text)==null?void 0:(Y=T.runs)==null?void 0:Y.length)&&!!g.D(d.acceptButton,g.q6).text.runs[0].text,U,b,J;q=((U=g.D(d.dismissButton,g.q6))==null?void 0:(b=U.text)==null?void 0:(J=b.runs)==null?void 0:J.length)&&!!g.D(d.dismissButton,g.q6).text.runs[0].text;return e||q}; PK2=function(d){var q;if(!(q=!d.G)){q=d.G;var T=window.getComputedStyle(q);q=T.display==="none"||T.visibility==="hidden"||q.getAttribute("aria-hidden")==="true"}if(q||d.J.isMinimized())d.OM(!1);else if(q=g.Vp(d.G),q.width&&q.height){d.J.KZ(d.element,d.G);var Y=d.J.OD().getPlayerSize().height;T=g.Vp(d.Qv("ytp-promotooltip-container")).height;d.T?d.element.style.top=Y-T-q.height-12+"px":d.K||(Y=d.J.Xb().height-T-q.height-12,d.element.style.top=Y+"px");Y=d.Qv("ytp-promotooltip-pointer");var e=g.vB(d.G, d.J.getRootNode()),U=Number(d.element.style.left.replace(/[^\d\.]/g,""));d=d.J.isFullscreen()?18:12;Y.style.left=e.x-U+q.width/2-d+"px";Y.style.top=T+"px"}else d.OM(!1)}; Ag=function(d){g.f.call(this,{Y:"button",hF:["ytp-replay-button","ytp-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"\u91cd\u653e":"","data-tooltip-title":"\u91cd\u653e"},V:[g.ah()]});this.J=d;this.W(d,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.XC(d.getPlayerStateObject());D$(this.J,this.element,this)}; pq=function(d,q){q=q===void 0?240:q;g.f.call(this,{Y:"button",hF:["ytp-button","ytp-search-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"\u641c\u7d22":"","data-tooltip-title":"\u641c\u7d22","data-tooltip-opaque":String(g.dn(d.C()))},V:[{Y:"div",D:"ytp-search-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-search-title",j5:"\u641c\u7d22"}]});this.api=d;this.U=q;this.visible=!1;this.updateValue("icon",{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",D:"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"}}]});d.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.G();this.W(d,"appresize",this.G);this.W(d,"videodatachange",this.G);D$(d,this.element,this)}; ZI=function(d){g.f.call(this,{Y:"div",D:"ytp-seek-overlay",V:[{Y:"div",hF:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],V:[{Y:"div",hF:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{Y:"svg",Z:{viewBox:"0 0 22 32",width:"22",height:"32"},V:[{Y:"path",Z:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{Y:"div",D:"ytp-seek-overlay-duration",j5:"{{durationBack}}"}]},{Y:"div",hF:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],V:[{Y:"div",D:"ytp-seek-overlay-duration",j5:"{{durationForward}}"},{Y:"div",hF:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{Y:"svg",Z:{viewBox:"0 0 22 32",width:"22",height:"32"},V:[{Y:"path",Z:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{Y:"div",D:"ytp-seek-overlay-message",V:[{Y:"div",D:"ytp-seek-overlay-message-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-seek-overlay-message-text", j5:"{{text}}"}]}]});var q=this;this.J=d;this.L=0;this.G="hidden";this.B=this.Qv("ytp-seek-overlay-animation-back");this.K=this.Qv("ytp-seek-overlay-animation-forward");this.lr=this.Qv("ytp-seek-overlay-message");this.X=new g.f9(function(){uu7(q)},g.Yv(this.J.C().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.C(this,this.X);this.J.createClientVe(this.K,this,28240);this.J.createClientVe(this.B,this,28239);this.J.logVisibility(this.K,!0);this.J.logVisibility(this.B,!0);this.hide()}; DJ6=function(d,q){d.j=d.T.animate([{offset:0,opacity:q,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});d.j.addEventListener("finish",function(){d.j=void 0;d.X.start();d.G="lingering"})}; wy1=function(d,q,T,Y){T=T===void 0?!1:T;Y=Y===void 0?!1:Y;var e=[];e.push({offset:0,transform:"translateX("+(d.U===-1?30:-30)+"px)",opacity:T?"0":"1"});T&&e.push({offset:.5,opacity:"1"});e.push({offset:1,transform:"translateX(0)"});T=q.animate(e,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});q=q.querySelector("path");e=[];e.push({offset:0,d:d.U===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'});Y&&e.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"}); d={offset:1,d:d.U===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};Y&&(d.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");e.push(d);q.animate(e,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return T}; fFH=function(d){var q=d.T.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);q.classList.add("ytp-seek-overlay-arrow-additional");q.classList.remove("ytp-seek-overlay-arrow-persistent");d.T.appendChild(q);wy1(d,q,!0,!0).addEventListener("finish",function(){q.remove()})}; uu7=function(d,q,T){T=T===void 0?!0:T;d.j=d.T.animate([{offset:0,opacity:q===void 0?1:q},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});T&&(d.j.addEventListener("finish",function(){d.j=void 0;zM2(d);d.hide()}),d.G="fading-out")}; i8D=function(d){var q=Number(getComputedStyle(d.T).opacity),T;(T=d.j)==null||T.cancel();d.j=void 0;return q}; zM2=function(d){d.L=0;d.G="hidden";d.U=void 0;d.T=void 0;d.X.stop();d.j=void 0}; IF6=function(d,q,T){d.updateValue("text",q);if(T){a:{switch(T){case "PREMIUM_STANDALONE":q=B8H();break a;case "PREMIUM_STANDALONE_CAIRO":q=K2D();break a}q=void 0}d.updateValue("icon",q)}q=g.E(d.lr.getAnimations());for(T=q.next();!T.done;T=q.next())T.value.cancel();d.lr.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){d.updateValue("text","");d.updateValue("icon","")})}; Oa=function(d,q,T,Y){Y=Y===void 0?240:Y;g.f.call(this,{Y:"button",hF:["ytp-button","ytp-share-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"\u5206\u4eab":"","data-tooltip-title":"\u5206\u4eab","aria-haspopup":"true","aria-owns":T.element.id,"data-tooltip-opaque":String(g.dn(d.C()))},V:[{Y:"div",D:"ytp-share-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-share-title",j5:"\u5206\u4eab"}]});this.api=d;this.G=q;this.U=T;this.j=Y;this.visible=!1;this.tooltip=this.G.nH();d.createClientVe(this.element, this,28664);this.listen("click",this.onClick);this.W(d,"videodatachange",this.S5);this.W(d,"videoplayerreset",this.S5);this.W(d,"appresize",this.S5);this.W(d,"presentingplayerstatechange",this.S5);this.S5();this.addOnDisposeCallback(g.uH(this.tooltip,this.element))}; mJ7=function(d){var q=d.api.C(),T=d.api.getVideoData(),Y=g.dn(q)&&g.m7(d.api)&&g.I(d.api.getPlayerStateObject(),128);q=q.j||q.disableSharing&&d.api.getPresentingPlayerType()!==2||!T.showShareButton||T.Oi||Y||T.kc||!1;Y=d.api.OD().getPlayerSize().width;return!!T.videoId&&Y>=d.j&&!q}; SUQ=function(d,q){q.name!=="InvalidStateError"&&q.name!=="AbortError"&&(q.name==="NotAllowedError"?(d.G.LW(),JM(d.U,d.element,!1)):g.Zz(q))}; v0X=function(d,q){var T=ex(),Y=d.C();T={Y:"div",D:"ytp-share-panel",Z:{id:ex(),role:"dialog","aria-labelledby":T},V:[{Y:"div",D:"ytp-share-panel-inner-content",V:[{Y:"div",D:"ytp-share-panel-title",Z:{id:T},j5:"\u5206\u4eab"},{Y:"a",hF:["ytp-share-panel-link","ytp-no-contextmenu"],Z:{href:"{{link}}",target:Y.K,title:"\u5206\u4eab\u94fe\u63a5","aria-label":"{{shareLinkWithUrl}}"},j5:"{{linkText}}"},{Y:"label",D:"ytp-share-panel-include-playlist",V:[{Y:"input",D:"ytp-share-panel-include-playlist-checkbox", Z:{type:"checkbox",checked:"true"}},"\u5305\u62ec\u64ad\u653e\u5217\u8868"]},{Y:"div",D:"ytp-share-panel-loading-spinner",V:[Oc()]},{Y:"div",D:"ytp-share-panel-service-buttons",j5:"{{buttons}}"},{Y:"div",D:"ytp-share-panel-error",j5:"\u68c0\u7d22\u5206\u4eab\u4fe1\u606f\u65f6\u51fa\u9519\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002"}]},{Y:"button",hF:["ytp-share-panel-close","ytp-button"],Z:{title:"\u5173\u95ed"},V:[g.y9()]}]};g.bi.call(this,d,T,250);var e=this;this.moreButton=null;this.api=d;this.tooltip= q.nH();this.j=[];this.X=this.Qv("ytp-share-panel-inner-content");this.closeButton=this.Qv("ytp-share-panel-close");this.W(this.closeButton,"click",this.bF);this.addOnDisposeCallback(g.uH(this.tooltip,this.closeButton));this.T=this.Qv("ytp-share-panel-include-playlist-checkbox");this.W(this.T,"click",this.S5);this.G=this.Qv("ytp-share-panel-link");this.addOnDisposeCallback(g.uH(this.tooltip,this.G));this.api.createClientVe(this.G,this,164503);this.W(this.G,"click",function(U){U.preventDefault();e.api.logClick(e.G); var b=e.api.getVideoUrl(!0,!0,!1,!1);b=lFf(e,b);g.pR(b,e.api,U)&&e.api.gO("SHARE_CLICKED")}); this.listen("click",this.cB);this.W(d,"videoplayerreset",this.hide);this.W(d,"fullscreentoggled",this.onFullscreenToggled);this.W(d,"onLoopRangeChange",this.Zo);this.hide()}; dpf=function(d,q){o0Y(d);for(var T=q.links||q.shareTargets,Y=0,e={},U=0;U0&&!l&&!P?(K.length===2&&(K=["noreferrer"]),g.Ry(h,a,y,K[0]),h=YfY()):(p=n.join(","),Ln()&&h.navigator&&h.navigator.standalone&&y&&y!="_self"?(p=g.FE("A"),g.sD(p,a),p.target=y,t&&(p.rel="noreferrer"),((H=H.attributionsrc)||H==="")&&p.setAttribute("attributionsrc",H),H=document.createEvent("MouseEvent"), H.initMouseEvent("click",!0,!0,h,1),p.dispatchEvent(H),h=YfY()):t?(h=g.Ry(h,"",y,p),H=g.YS(a),h&&(h.opener=null,H===""&&(H="javascript:''"),H='',H=Fk(H),(a=h.document)&&a.write&&(a.write(NX(H)),a.close()))):((h=g.Ry(h,a,y,p))&&H.noopener&&(h.opener=null),h&&H.noreferrer&&(h.opener=null)));h&&(h.opener||(h.opener=window),h.focus());x.preventDefault()}}}(e)); e.fS.addOnDisposeCallback(g.uH(d.tooltip,e.fS.element));J==="Facebook"?d.api.createClientVe(e.fS.element,e.fS,164504):J==="Twitter"&&d.api.createClientVe(e.fS.element,e.fS,164505);d.W(e.fS.element,"click",function(R){return function(){d.api.logClick(R.fS.element)}}(e)); d.api.logVisibility(e.fS.element,!0);d.j.push(e.fS);Y++}}var F=q.more||q.moreLink,N=new g.f({Y:"a",hF:["ytp-share-panel-service-button","ytp-button"],V:[{Y:"span",D:"ytp-share-panel-service-button-more",V:[{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{Y:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Y:"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:F,target:"_blank",title:"\u66f4\u591a\u9009\u9879"}});N.listen("click",function(R){var x=F;d.api.logClick(d.moreButton.element);x=lFf(d,x);g.pR(x,d.api,R)&&d.api.gO("SHARE_CLICKED")}); N.addOnDisposeCallback(g.uH(d.tooltip,N.element));d.api.createClientVe(N.element,N,164506);d.W(N.element,"click",function(){d.api.logClick(N.element)}); d.api.logVisibility(N.element,!0);d.j.push(N);d.moreButton=N;d.updateValue("buttons",d.j)}; lFf=function(d,q){var T={};g.dn(d.api.C())&&(g.OF(d.api,"addEmbedsConversionTrackingParams",[T]),q=g.y6(q,T));return q}; o0Y=function(d){for(var q=g.E(d.j),T=q.next();!T.done;T=q.next())T=T.value,T.detach(),g.T1(T);d.j=[]}; nq=function(d){return d===void 0||d.startSec===void 0||d.endSec===void 0?!1:!0}; qQf=function(d,q){d.startSec+=q;d.endSec+=q}; YQf=function(d){O8.call(this,d);this.U=this.G=this.isContentForward=this.L=!1;this.element.setAttribute("data-overlay-order","8");T$7(this);this.W(this.J,"changeProductsInVideoVisibility",this.y1w);this.W(this.J,"videodatachange",this.onVideoDataChange)}; eeQ=function(d){d.X&&d.dO.element.removeChild(d.X.element);d.X=void 0}; bf_=function(d,q){return q.map(function(T){var Y,e;if((T=(Y=g.D(T,Upg))==null?void 0:(e=Y.thumbnail)==null?void 0:e.thumbnails)&&T.length!==0)return T[0].url}).filter(function(T){return T!==void 0}).map(function(T){T=new g.f({Y:"img", D:"ytp-suggested-action-product-thumbnail",Z:{alt:"",src:T}});g.C(d,T);return T})}; XS1=function(d,q){d.isContentForward=q;g.ep(d.badge.element,"ytp-suggested-action-badge-content-forward",q)}; rr=function(d){var q=d.isContentForward&&!d.To();g.ep(d.badge.element,"ytp-suggested-action-badge-preview-collapsed",q&&d.G);g.ep(d.badge.element,"ytp-suggested-action-badge-preview-expanded",q&&d.U)}; tg=function(d,q,T){return new g.Ij(d*1E3,q*1E3,{priority:9,namespace:T})}; JN_=function(d){d.J.hm("shopping_overlay_visible");d.J.hm("shopping_overlay_preview_collapsed");d.J.hm("shopping_overlay_preview_expanded");d.J.hm("shopping_overlay_expanded")}; T$7=function(d){d.W(d.J,g.Sh("shopping_overlay_visible"),function(){d.nz(!0)}); d.W(d.J,g.lG("shopping_overlay_visible"),function(){d.nz(!1)}); d.W(d.J,g.Sh("shopping_overlay_expanded"),function(){d.UD=!0;Zt(d)}); d.W(d.J,g.lG("shopping_overlay_expanded"),function(){d.UD=!1;Zt(d)}); d.W(d.J,g.Sh("shopping_overlay_preview_collapsed"),function(){d.G=!0;rr(d)}); d.W(d.J,g.lG("shopping_overlay_preview_collapsed"),function(){d.G=!1;rr(d)}); d.W(d.J,g.Sh("shopping_overlay_preview_expanded"),function(){d.U=!0;rr(d)}); d.W(d.J,g.lG("shopping_overlay_preview_expanded"),function(){d.U=!1;rr(d)})}; gdN=function(d){g.f.call(this,{Y:"div",D:"ytp-shorts-title-channel",V:[{Y:"a",D:"ytp-shorts-title-channel-logo",Z:{href:"{{channelLink}}",target:d.C().K,"aria-label":"{{channelLogoLabel}}"}},{Y:"div",D:"ytp-shorts-title-expanded-heading",V:[{Y:"div",D:"ytp-shorts-title-expanded-title",V:[{Y:"a",j5:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:d.C().K,tabIndex:"0"}}]}]}]});var q=this;this.api=d;this.G=this.Qv("ytp-shorts-title-channel-logo");this.channelName=this.Qv("ytp-shorts-title-expanded-title"); this.subscribeButton=null;d.createClientVe(this.G,this,36925);this.W(this.G,"click",function(T){q.api.logClick(q.G);g.Ry(window,sKY(q));T.preventDefault()}); d.createClientVe(this.channelName,this,37220);this.W(this.channelName,"click",function(T){q.api.logClick(q.channelName);g.Ry(window,sKY(q));T.preventDefault()}); $p_(this);this.W(d,"videodatachange",this.S5);this.W(d,"videoplayerreset",this.S5);this.S5()}; $p_=function(d){if(!d.api.C().q5){var q=d.api.getVideoData(),T=new g.Jg("\u8ba2\u9605",null,"\u5df2\u8ba2\u9605",null,!0,!1,q.Gp,q.subscribed,"channel_avatar",null,d.api,!0);d.api.createServerVe(T.element,d);var Y;d.api.setTrackingParams(T.element,((Y=q.subscribeButtonRenderer)==null?void 0:Y.trackingParams)||null);d.W(T.element,"click",function(){d.api.logClick(T.element)}); d.subscribeButton=T;g.C(d,d.subscribeButton);d.subscribeButton.IU(d.element)}}; sKY=function(d){var q=d.api.C(),T=d.api.getVideoData();T=g.nI(q)+T.wO;if(!g.dn(q))return T;q={};g.OF(d.api,"addEmbedsConversionTrackingParams",[q]);return g.y6(T,q)}; B9=function(d){g.bi.call(this,d,{Y:"button",hF:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{Y:"div",D:"ytp-skip-intro-button-text",j5:"\u8df3\u8fc7\u4ecb\u7ecd"}]},100);var q=this;this.j=!1;this.G=new g.f9(function(){q.hide()},5E3); this.Je=this.Pf=NaN;g.C(this,this.G);this.L=function(){q.show()}; this.X=function(){q.hide()}; this.T=function(){var T=q.J.getCurrentTime();T>q.Pf/1E3&&T0?{Y:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",hF:["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"}}, {Y:"text",hF:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"7.05",y:"15.05"}}]}:{Y:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",hF:["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"}}, {Y:"text",hF:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"6.5",y:"15"}}]}]});var T=this;this.J=d;this.G=q;this.U=new g.f9(function(){T.j?(T.j=!1,T.U.start()):T.element.classList.remove("ytp-jump-spin","backwards")},250); this.j=!1;(q=q>0)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var Y=g.bO(q?"\u5feb\u8fdb $SECONDS \u79d2\u3002(\u2192)":"\u5feb\u9000 $SECONDS \u79d2\u3002(\u2190)",{SECONDS:Math.abs(this.G).toString()});this.J.N("player_tooltip_data_title_killswitch")?this.update({title:Y,"data-title-no-tooltip":Y,"aria-keyshortcuts":q?"\u2192":"\u2190"}):this.update({"tooltip-title":Y,"data-title-no-tooltip":Y,"aria-keyshortcuts":q?"\u2192":"\u2190"});this.T=this.element.querySelector(".ytp-jump-button-text"); this.T.textContent=Math.abs(this.G).toString();this.listen("click",this.onClick,this);D$(d,this.element,this)}; QK_=function(d,q){q?d.element.classList.add("ytp-jump-button-enabled"):d.element.classList.remove("ytp-jump-button-enabled");d.J.logVisibility(d.element,q);d.J.U$()}; Cq=function(d,q){GZ.call(this,d,q,"timedMarkerCueRange","\u67e5\u770b\u91cd\u8981\u65f6\u523b");this.W(d,g.lG("timedMarkerCueRange"),this.Yc);this.W(d,"updatemarkervisibility",this.updateVideoData)}; MQ6=function(d){var q,T=(q=d.J.getVideoData())==null?void 0:q.Fw;if(T)for(d=d.T.xx,T=g.E(T),q=T.next();!q.done;q=T.next())if(q=d[q.value]){var Y=void 0,e=void 0,U=void 0;if(((Y=q.onTap)==null?void 0:(e=Y.innertubeCommand)==null?void 0:(U=e.changeEngagementPanelVisibilityAction)==null?void 0:U.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return q}}; ug=function(d){var q=d.N("web_enable_pip_on_miniplayer");g.f.call(this,{Y:"button",hF:["ytp-miniplayer-button","ytp-button"],Z:{title:d.N("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"},V:["{{icon}}"]});this.J=d;this.visible=!1;this.listen("click",this.onClick);this.W(d,"fullscreentoggled",this.S5);this.J.N("player_tooltip_data_title_killswitch")? this.update({title:g.wm(d,"\u8ff7\u4f60\u64ad\u653e\u5668","i"),"data-title-no-tooltip":"\u8ff7\u4f60\u64ad\u653e\u5668",icon:cN7(this,q)}):this.update({"tooltip-title":g.wm(d,"\u8ff7\u4f60\u64ad\u653e\u5668","i"),"data-title-no-tooltip":"\u8ff7\u4f60\u64ad\u653e\u5668",icon:cN7(this,q)});D$(d,this.element,this);d.createClientVe(this.element,this,62946);this.S5()}; cN7=function(d,q){return d.J.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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"}}]}:q?{Y:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},V:[{Y:"g",Z:{transform:"translate(96, -96) scale(0.8)"},V:[{Y:"path",Kn:!0,Z:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:tXD()}; DI=function(d,q,T,Y,e,U){U=U===void 0?!1:U;var b={Y:"div",hF:["ytp-input-slider-section"],V:[{Y:"input",D:"ytp-input-slider",Z:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};e&&b.V.unshift(e);U&&b.hF.push("ytp-vertical-slider");g.f.call(this,b);this.T=d;this.X=q;this.B=T;this.initialValue=Y;this.header=e;this.U=this.Qv("ytp-input-slider");this.G=Y?Y:d;this.init();this.W(this.U,"input",this.j);this.W(this.U,"keydown", this.L)}; wr=function(d,q){d.G=q;d.updateValue("slidervalue",d.G);d.U.valueAsNumber=d.G;EdY(d,q)}; EdY=function(d,q){d.U.style.setProperty("--yt-slider-shape-gradient-percent",(q-d.T)/(d.X-d.T)*100+"%")}; fq=function(d){var q=d.isMuted()?0:d.getVolume();DI.call(this,0,100,1,q,void 0,!0);this.J=d;this.lr=KT(this.yv,10,this);this.K=!1;this.W(d,"onVolumeChange",this.onVolumeChange);this.W(this.element,"wheel",this.UD)}; jKX=function(d,q){g.f.call(this,{Y:"div",Z:{tabindex:"0",title:d.N("player_tooltip_data_title_killswitch")?"\u97f3\u91cf":"","data-tooltip-title":"\u97f3\u91cf","data-tooltip-offset-y":"-120"},hF:["ytp-volume-popover"]});var T=this;this.isVisible=!1;this.tooltip=q.nH();this.U=new fq(d);g.C(this,this.U);this.U.IU(this.element);this.G=new g.f9(function(){zZ(T,!1)},300); this.listen("mouseenter",function(){T.G.stop()}); this.listen("mouseleave",function(){T.G.start()}); this.listen("focus",function(){T.G.stop()}); this.W(this.U.U,"focus",function(){T.G.stop()}); this.listen("focusout",function(){T.G.start();T.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.uH(q.nH(),this.element));g.C(this,this.G)}; zZ=function(d,q){d.element.classList.toggle("ytp-volume-popover-hovering",q);d.isVisible=q;(d=d.element.closest(".ytp-chrome-bottom"))&&d.classList.toggle("ytp-volume-popover-showing",q)}; ig=function(d,q,T){T=T===void 0?!1:T;var Y=d.C().dO?{"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:d.N("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};Y=d.N("delhi_modern_web_player")?{Y:"div",D:"ytp-mute-button",V:[{Y:"button",Z:Y,hF:["ytp-volume-icon", "ytp-button"],j5:"{{icon}}"}]}:{Y:"button",hF:["ytp-mute-button","ytp-button"],Z:Y,V:[{Y:"div",D:"ytp-volume-icon",j5:"{{icon}}"}]};g.f.call(this,Y);this.J=d;this.aU=T;this.U=null;this.L=this.yv=this.K=this.B=NaN;this.z2=this.lr=null;this.X=[];this.T=[];this.visible=!1;this.j=this.G=this.UD=null;d.N("delhi_modern_web_player")&&this.update({"data-priority":4});T=this.J.C();this.updateValue("icon",Zy());this.tooltip=q.nH();this.updateValue("dataTooltipOffsetY",0);this.j=g.bY("ytp-volume-icon",this.element); Y=this.J.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",hF:["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"}},{Y:"path",D:"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"}},{Y:"path",D:"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"}}]}:{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"defs",V:[{Y:"clipPath",Z:{id:"ytp-svg-volume-animation-mask"},V:[{Y:"path",Z:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{Y:"path",Z:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{Y:"path",D:"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"}}]},{Y:"clipPath",Z:{id:"ytp-svg-volume-animation-slash-mask"},V:[{Y:"path",D:"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"}}]}]},{Y:"path",Kn:!0,hF:["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"}},{Y:"path",Kn:!0,hF:["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.U=new g.Ux(Y);g.C(this,this.U);this.lr=this.U.Qv("ytp-svg-volume-animation-speaker");this.z2=this.lr.getAttribute("d");this.X=g.eV("ytp-svg-volume-animation-mover",this.U.element);this.J.N("delhi_modern_web_player_icons");this.T=g.eV("ytp-svg-volume-animation-hider",this.U.element);this.J.N("delhi_modern_web_player_icons");this.dO=new Yr;g.C(this,this.dO);this.rO=new Yr;g.C(this,this.rO);this.W(d,"appresize",this.mQ);this.W(d,"onVolumeChange",this.onVolumeChange);d.N("delhi_modern_web_player")? this.listen("click",this.rmg):this.listen("click",this.hT);T.dO?(d.N("delhi_modern_web_player")&&(this.G=new jKX(d,q),this.G.IU(this.element),g.C(this,this.G),this.W(this.j,"mouseover",this.X8),this.W(this.j,"focus",this.X8),this.W(this.j,"mouseout",this.oY),this.W(this.j,"blur",this.oY)),T=d.N("delhi_modern_web_player")?this.j:this.element,this.addOnDisposeCallback(g.uH(q.nH(),T))):aoD(this);this.message=null;d.createClientVe(this.element,this,28662);this.mQ(d.OD().getPlayerSize());this.setVolume(d.getVolume(), d.isMuted())}; ANQ=function(d,q){if(d.J.C().dO){var T=g.wm(d.J,"\u9759\u97f3","m"),Y=g.wm(d.J,"\u53d6\u6d88\u9759\u97f3","m");T=q?Y:T;d.J.C().N("player_tooltip_data_title_killswitch")?d.updateValue("title",T):d.update({"tooltip-title":T,"aria-label":T});d.update({"data-title-no-tooltip":q?"\u53d6\u6d88\u9759\u97f3":"\u9759\u97f3"});d.tooltip.U$()}}; OfN=function(d,q){d.B=q;var T=d.z2;d.J.N("delhi_modern_web_player_icons")?d.U.Qv("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(q+") translate(-22,-12)")):q&&(T+=LNQ(pSj,Zf6,q));d.lr.setAttribute("d",T)}; ndn=function(d,q){var T;q===1?T=d.J.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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"}}]}:Zy():T=d.U;d.yv=q;if(d.J.N("delhi_modern_web_player_icons"))d.U.Qv("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-q+") translate(-18,-12)")),d.U.Qv("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(d.B-q+") translate(-22, -12)"));else{for(var Y=20*q,e=0;e=3&&d.J.getPresentingPlayerType()!==2}; LkQ=function(d){var q=I6(d.J.M5());return q?d.G?q.mB():q.M1():!1}; B$_=function(d){var q={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},T=d.playlist!=null&&d.playlist.mB();T=g.m7(d.J)&&(!d.G||T);var Y=d.G&&g.V2(d.J),e=LkQ(d),U=d.G&&d.J.getPresentingPlayerType()===5,b=g.wm(d.J,"\u4e0b\u4e00\u4e2a","SHIFT+n"),J=g.wm(d.J,"\u4e0a\u4e00\u4e2a","SHIFT+p");if(U)q.title="\u5f00\u59cb\u64ad\u653e\u89c6\u9891",q["tooltip-title"]="\u5f00\u59cb\u64ad\u653e\u89c6\u9891";else if(d.j)q.title= "\u91cd\u653e",q["tooltip-title"]="\u91cd\u653e";else if(T){var F=null;d.playlist&&(F=g.pa(d.playlist,d.G?ajn(d.playlist):Aa2(d.playlist)));if(F){if(F.videoId){var N=d.playlist.listId;q.url=d.J.C().getVideoUrl(F.videoId,N?N.toString():void 0)}q.text=F.title;q.duration=F.lengthText?F.lengthText:F.lengthSeconds?g.MY(F.lengthSeconds):null;q.preview=F.Qg("mqdefault.jpg")}d.G?(q.title=b,q["tooltip-title"]=b,q["data-title-no-tooltip"]="\u4e0b\u4e00\u4e2a",q["aria-keyshortcuts"]="SHIFT+n"):(q.title=J,q["tooltip-title"]= J,q["data-title-no-tooltip"]="\u4e0a\u4e00\u4e2a",q["aria-keyshortcuts"]="SHIFT+p")}else if(Y){if(J=(F=d.videoData)==null?void 0:g.jH(F))q.url=J.Xk(),q.text=J.title,q.duration=J.lengthText?J.lengthText:J.lengthSeconds?g.MY(J.lengthSeconds):null,q.preview=J.Qg("mqdefault.jpg");q.title=b;q["tooltip-title"]=b;q["data-title-no-tooltip"]="\u4e0b\u4e00\u4e2a";q["aria-keyshortcuts"]="SHIFT+n"}q.disabled=!Y&&!T&&!e&&!U;d.update(q);d.L=!!q.url;Y||T||d.j||e||U?d.U||(d.U=g.uH(d.tooltip,d.element),d.X=d.listen("click", d.onClick,d)):d.U&&(d.U(),d.U=null,d.t1(d.X),d.X=null);d.tooltip.U$();g.ep(d.element,"ytp-playlist-ui",d.G&&(T||d.J.N("web_hide_next_button")))}; tQY=function(d,q){return d?q?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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"}}]}:Q9():q?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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"}}]}:GyN()}; PJn=function(d,q){g.f.call(this,{Y:"div",D:"ytp-fine-scrubbing",V:[{Y:"div",D:"ytp-fine-scrubbing-draggable",V:[{Y:"div",D:"ytp-fine-scrubbing-thumbnails",Z:{tabindex:"0",role:"slider",type:"range","aria-label":"\u70b9\u51fb\u6216\u6eda\u52a8\u9762\u677f\u53ef\u8fdb\u884c\u7cbe\u786e\u8df3\u8f6c\u3002","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{Y:"div",Z:{"aria-hidden":"true"},D:"ytp-fine-scrubbing-cursor"},{Y:"div", D:"ytp-fine-scrubbing-seek-time",Z:{"aria-hidden":"true"},j5:"{{seekTime}}"},{Y:"div",D:"ytp-fine-scrubbing-play",V:[d.N("delhi_modern_web_player_icons")?jx():Ex()],Z:{title:"\u4ece\u8fd9\u4e2a\u4f4d\u7f6e\u5f00\u59cb\u64ad\u653e",role:"button"}},{Y:"div",D:"ytp-fine-scrubbing-dismiss",V:[g.y9()],Z:{title:"\u9000\u51fa\u7cbe\u786e\u8df3\u8f6c\u6a21\u5f0f",role:"button"}}]});var T=this;this.api=d;this.X=this.Qv("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Qv("ytp-fine-scrubbing-dismiss"); this.yv=this.Qv("ytp-fine-scrubbing-draggable");this.playButton=this.Qv("ytp-fine-scrubbing-play");this.thumbnails=[];this.U=[];this.aU=this.G=0;this.dO=void 0;this.lr=NaN;this.RU=this.K=this.j=this.B=0;this.T=[];this.interval=this.frameCount=0;this.L=160;this.scale=1;this.qk=0;this.isEnabled=this.z2=!1;kw6(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.uH(q,this.dismissButton));this.addOnDisposeCallback(g.uH(q,this.playButton));this.rO=new g.fc(this.yv,!0);this.rO.subscribe("dragstart", this.m$,this);this.rO.subscribe("dragmove",this.q_,this);this.rO.subscribe("dragend",this.kO,this);this.W(d,"SEEK_COMPLETE",this.K2);d.N("web_fix_fine_scrubbing_false_play")&&this.W(d,"rootnodemousedown",function(Y){T.UD=Y}); this.X.addEventListener("keydown",function(){}); g.C(this,this.rO);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.X,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; kw6=function(d,q){var T=g.MY(q),Y=g.bO("\u8df3\u8f6c\u5230 $PROGRESS \u5904",{PROGRESS:g.MY(q,!0)});d.update({ariamin:0,ariamax:Math.floor(d.api.getDuration()),arianow:Math.floor(q),arianowtext:Y,seekTime:T})}; WkN=function(d){d.lr=NaN;d.K=0;d.B=d.j}; Dp7=function(d){var q=d.api.TN();if(q){var T=90*d.scale,Y=Jw(q,160*d.scale);if(q=q.levels[Y]){d.L=q.width;if(!d.T.length){Y=[];for(var e=sB(q,q.wi()),U=q.columns*q.rows,b=q.frameCount,J=0;J<=e;J++)for(var F=bd.T.length;)Y= void 0,(Y=d.thumbnails.pop())==null||Y.dispose();for(;d.thumbnails.lengthT.length;)Y=void 0,(Y=d.U.pop())==null||Y.dispose(); for(;d.U.length-T?-q/T*d.interval*.5:-(q+T/2)/T*d.interval}; wSD=function(d){return-((d.X.offsetWidth||(d.frameCount-1)*d.L*d.scale)-d.G/2)}; CJY=function(){g.f.call(this,{Y:"div",D:"ytp-fine-scrubbing-thumbnail"})}; u5N=function(){g.f.call(this,{Y:"div",D:"ytp-fine-scrubbing-chapter-title",V:[{Y:"div",D:"ytp-fine-scrubbing-chapter-title-content",j5:"{{chapterTitle}}"}]})}; ze_=function(d){g.f.call(this,{Y:"div",D:"ytp-heat-map-chapter",V:[{Y:"svg",D:"ytp-heat-map-svg",Z:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{Y:"defs",V:[{Y:"clipPath",Z:{id:"{{id}}"},V:[{Y:"path",D:"ytp-heat-map-path",Z:{d:"",fill:"white"}}]},{Y:"linearGradient",Z:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},V:[{Y:"stop",Z:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{Y:"stop",Z:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{Y:"rect",D:"ytp-heat-map-graph",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{Y:"rect",D:"ytp-heat-map-hover",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{Y:"rect",D:"ytp-heat-map-play",Z:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{Y:"path",D:"ytp-modern-heat-map",Z:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=d;this.B=this.Qv("ytp-heat-map-svg");this.X=this.Qv("ytp-heat-map-path");this.T=this.Qv("ytp-heat-map-graph");this.L=this.Qv("ytp-heat-map-play");this.G=this.Qv("ytp-heat-map-hover");this.j=this.Qv("ytp-modern-heat-map");this.LH=!1;this.U=60;d=""+g.X_(this);this.update({id:d});d="url(#"+d+")";this.T.setAttribute("clip-path",d);this.L.setAttribute("clip-path",d);this.G.setAttribute("clip-path", d)}; ifQ=function(d,q){q>0&&(d.U=q,d.B.style.height=d.U+"px")}; lg=function(){g.f.call(this,{Y:"div",D:"ytp-chapter-hover-container",V:[{Y:"div",D:"ytp-progress-bar-padding"},{Y:"div",D:"ytp-progress-list",V:[{Y:"div",hF:["ytp-play-progress","ytp-swatch-background-color"]},{Y:"div",D:"ytp-progress-linear-live-buffer"},{Y:"div",D:"ytp-load-progress"},{Y:"div",D:"ytp-hover-progress"},{Y:"div",D:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.U=this.Qv("ytp-progress-list");this.X=this.Qv("ytp-progress-linear-live-buffer"); this.T=this.Qv("ytp-ad-progress-list");this.L=this.Qv("ytp-load-progress");this.B=this.Qv("ytp-play-progress");this.j=this.Qv("ytp-hover-progress");this.G=this.Qv("ytp-chapter-hover-container")}; v9=function(d,q){g.Dv(d.G,"width",q)}; Io7=function(d,q){g.Dv(d.G,"margin-right",q+"px")}; mpf=function(){this.U=this.position=this.j=this.G=this.T=this.width=NaN}; SQn=function(){g.f.call(this,{Y:"div",D:"ytp-timed-marker"});this.G=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Vr=function(d,q){g.Ji.call(this,{Y:"div",D:"ytp-progress-bar-container",Z:{"aria-disabled":"true"},V:[{Y:"div",hF:["ytp-heat-map-container"],V:[{Y:"div",D:"ytp-heat-map-edu"}]},{Y:"div",hF:["ytp-progress-bar"],Z:{tabindex:"0",role:"slider","aria-label":"\u64ad\u653e\u6ed1\u5757","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{Y:"div",D:"ytp-chapters-container"},{Y:"div",D:"ytp-timed-markers-container"},{Y:"div",D:"ytp-clip-start-exclude"}, {Y:"div",D:"ytp-clip-end-exclude"},{Y:"div",D:"ytp-scrubber-container",V:[{Y:"div",hF:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{Y:"div",D:"ytp-scrubber-pull-indicator"},{Y:"img",hF:["ytp-decorated-scrubber-button"]}]}]}]},{Y:"div",hF:["ytp-fine-scrubbing-container"],V:[{Y:"div",D:"ytp-fine-scrubbing-edu"}]},{Y:"div",D:"ytp-bound-time-left",j5:"{{boundTimeLeft}}"},{Y:"div",D:"ytp-bound-time-right",j5:"{{boundTimeRight}}"},{Y:"div",D:"ytp-clip-start",Z:{title:"{{clipstarttitle}}"},j5:"{{clipstarticon}}"}, {Y:"div",D:"ytp-clip-end",Z:{title:"{{clipendtitle}}"},j5:"{{clipendicon}}"}]});this.api=d;this.yH=!1;this.R6=this.Y1=this.Fw=this.X=this.t0=0;this.FW=null;this.Je=!1;this.qk={};this.Ln={};this.clipEnd=Infinity;this.vF=this.Qv("ytp-clip-end");this.gk=new g.fc(this.vF,!0);this.LC=this.Qv("ytp-clip-end-exclude");this.wk=this.Qv("ytp-clip-start-exclude");this.clipStart=0;this.ev=this.Qv("ytp-clip-start");this.zX=new g.fc(this.ev,!0);this.lr=this.fn=0;this.progressBar=this.Qv("ytp-progress-bar");this.Qp= {};this.xx={};this.Bv=this.Qv("ytp-chapters-container");this.Pf=this.Qv("ytp-timed-markers-container");this.G=[];this.L=[];this.qU={};this.lS=null;this.z2=-1;this.lF=this.dO=0;this.rA=this.B=null;this.vA=this.Qv("ytp-scrubber-button");this.yv=this.Qv("ytp-decorated-scrubber-button");this.gB=this.Qv("ytp-scrubber-container");this.wO=new g.wt;this.qC=0;this.E$=new mpf;this.j=new nG(0,0);this.IN=null;this.K=this.Kz=!1;this.wU=null;this.UD=this.Qv("ytp-heat-map-container");this.V5=this.Qv("ytp-heat-map-edu"); this.T=[];this.heatMarkersDecorations=[];this.kx=this.Qv("ytp-fine-scrubbing-container");this.ST=this.Qv("ytp-fine-scrubbing-edu");this.U=void 0;this.aU=this.dA=this.RU=!1;this.tooltip=q.nH();this.addOnDisposeCallback(g.uH(this.tooltip,this.vF));g.C(this,this.gk);this.gk.subscribe("hoverstart",this.ZO,this);this.gk.subscribe("hoverend",this.BY,this);this.W(this.vF,"click",this.v0);this.addOnDisposeCallback(g.uH(this.tooltip,this.ev));g.C(this,this.zX);this.zX.subscribe("hoverstart",this.ZO,this); this.zX.subscribe("hoverend",this.BY,this);this.W(this.ev,"click",this.v0);lof(this);this.W(d,"resize",this.gz);this.W(d,"presentingplayerstatechange",this.FS);this.W(d,"videodatachange",this.qF);this.W(d,"videoplayerreset",this.LI);this.W(d,"cuerangesadded",this.OjF);this.W(d,"cuerangesremoved",this.Q6Z);this.W(d,"onLoopRangeChange",this.SG);this.W(d,"innertubeCommand",this.onClickCommand);this.W(d,"onRetroModeChanged",this.SFw);this.W(d,g.Sh("timedMarkerCueRange"),this.iHF);this.W(d,"updatemarkervisibility", this.fG);this.W(d,"serverstitchedvideochange",this.cEO);this.updateVideoData(d.getVideoData(),!0);this.SG(d.getLoopRange());oW(this)&&!this.U&&(this.U=new PJn(this.api,this.tooltip),d=g.lY(this.element).x||0,this.U.gz(d,this.X),this.U.IU(this.kx),g.C(this,this.U),this.W(this.U.dismissButton,"click",this.RI),this.W(this.U.playButton,"click",this.dG),this.W(this.U.element,"dblclick",this.dG));this.api.createClientVe(this.UD,this,139609,!0);this.api.createClientVe(this.V5,this,140127,!0);this.api.createClientVe(this.ST, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; lof=function(d){if(d.G.length===0){var q=new lg;d.G.push(q);g.C(d,q);q.IU(d.Bv,0)}for(;d.G.length>1;)d.G.pop().dispose();v9(d.G[0],"100%");d.G[0].startTime=0;d.G[0].title=""}; vd7=function(d){var q=q===void 0?NaN:q;var T=new ze_(d.api);d.T.push(T);g.C(d,T);T.IU(d.UD);q>=0&&(T.element.style.width=q+"px")}; odg=function(d){for(;d.L.length;)d.L.pop().dispose()}; d21=function(d){var q,T,Y,e,U;return(U=g.D((e=g.D((q=d.getWatchNextResponse())==null?void 0:(T=q.playerOverlays)==null?void 0:(Y=T.playerOverlayRenderer)==null?void 0:Y.decoratedPlayerBarRenderer,on))==null?void 0:e.playerBar,VQg))==null?void 0:U.chapters}; qhj=function(d){for(var q=d.G,T=[],Y=0;Y=b&&a<=R&&U.push(y)}F>0&&(d.UD.style.height=F+"px");b=d.T[Y];R=U;y=e;H=F;a=Y===0;a=a===void 0?!1:a;ifQ(b,H);x=R;h=b.U;a=a===void 0?!1:a;var p=1E3/x.length,t=[];t.push({x:0,y:100});for(var n=0;n0&&(T=U[U.length-1])}g.dl(d);J=[];q=g.E(q.heatMarkersDecorations||[]);for(e=q.next();!e.done;e=q.next())if(e=g.D(e.value,J26))F=e.label,Y=T=N=void 0,J.push({visibleTimeRangeStartMillis:(N=e.visibleTimeRangeStartMillis)!=null?N:-1,visibleTimeRangeEndMillis:(T=e.visibleTimeRangeEndMillis)!=null?T:-1,decorationTimeMillis:(Y=e.decorationTimeMillis)!=null?Y:NaN,label:F?g.gx(F):""});d.heatMarkersDecorations=J}}; ewN=function(d,q){d.L.push(q);g.C(d,q);q.IU(d.Pf,d.Pf.children.length)}; U2H=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next()){T=T.value;var Y=qN(d,T.timeRangeStartMillis/(d.j.G*1E3),Tj(d)),e=d.api.N("delhi_modern_web_player")?.667:.6;g.Dv(T.element,"transform","translateX("+Y+"px) scaleX("+e+")")}}; Ty6=function(d,q){var T=0,Y=!1;q=g.E(q);for(var e=q.next();!e.done;e=q.next()){e=e.value;if(g.D(e,$2Y)){e=g.D(e,$2Y);var U={startTime:NaN,title:null,onActiveCommand:void 0},b=e.title;U.title=b?g.gx(b):"";b=e.timeRangeStartMillis;b!=null&&(U.startTime=b);U.onActiveCommand=e.onActiveCommand;e=U;T===0&&e.startTime!==0&&(d.G[T].startTime=0,d.G[T].title="",d.G[T].onActiveCommand=e.onActiveCommand,T++,Y=!0);d.G.length<=T&&(U=new lg,d.G.push(U),g.C(d,U),U.IU(d.Bv,d.Bv.children.length));d.G[T].startTime= e.startTime;d.G[T].title=e.title?e.title:"";d.G[T].onActiveCommand=e.onActiveCommand;d.G[T].index=Y?T-1:T}T++}for(;T=0;Y--)if(d.G[Y].width>0){Io7(d.G[Y],0);var e=Math.floor(d.G[Y].width);d.G[Y].width=e;v9(d.G[Y],e+"px");break}d.G[T].width=0;v9(d.G[T],"0")}else T===d.G.length-1?(Y=Math.floor(d.G[T].width+q),d.G[T].width=Y,v9(d.G[T],Y+"px")):(q=d.G[T].width+q,Y=Math.round(q),q-=Y,d.G[T].width=Y,v9(d.G[T],Y+"px"));T=0;if(d.T.length===d.G.length)for(q=0;q< d.T.length;q++)Y=d.G[q].width,d.T[q].element.style.width=Y+"px",d.T[q].element.style.left=T+"px",T+=Y+ew(d);d.api.N("delhi_modern_web_player")&&(d.G.length===1?d.G[0].U.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(d.G[0].U.classList.remove("ytp-progress-bar-end"),d.G[0].U.classList.add("ytp-progress-bar-start"),d.G[d.G.length-1].U.classList.add("ytp-progress-bar-end")))}; gFX=function(d,q){var T=0,Y=!1,e=d.G.length,U=d.j.G*1E3;U===0&&(U=d.api.getProgressState().seekableEnd*1E3);if(U>0&&d.X>0){for(var b=d.X-ew(d)*d.dO,J=d.lF===0?3:b*d.lF,F=g.E(d.G),N=F.next();!N.done;N=F.next())N.value.width=0;for(;T1);N=(U===0?0:F/U*b)+d.G[T].width;if(N>J)d.G[T].width=N;else{d.G[T].width=0;var R=d,x=T,y=R.G[x-1];y!==void 0&&y.width>0? y.width+=N:xd.lF&&(d.lF=F/U),Y=!0)}T++}}return Y}; Yn=function(d){if(d.X){var q=d.api.getProgressState(),T=d.api.getVideoData();if(!(T&&T.enableServerStitchedDai&&T.nL)||isFinite(q.current)){var Y;if(((Y=d.api.getVideoData())==null?0:Q2(Y))&&q.airingStart&&q.airingEnd)var e=Uk(d,q.airingStart,q.airingEnd);else if(d.api.getPresentingPlayerType()===2){var U,b,J;e=(T=(e=d.api.getVideoData())==null?void 0:(U=e.getPlayerResponse())==null?void 0:(b=U.playerConfig)==null?void 0:(J=b.webPlayerConfig)==null?void 0:J.skippableAdProgressBarDuration)?Uk(d,q.seekableStart, T/1E3):Uk(d,q.seekableStart,q.seekableEnd)}else e=Uk(d,q.seekableStart,q.seekableEnd);U=rs(e,q.loaded,0);q=rs(e,q.current,0);b=d.j.U!==e.U||d.j.G!==e.G;d.j=e;br(d,q,U);b&&Fs1(d);NyX(d)}}}; Uk=function(d,q,T){return RwH(d)?new nG(Math.max(q,d.IN.startTimeMs/1E3),Math.min(T,d.IN.endTimeMs/1E3)):new nG(q,T)}; y27=function(d,q){var T,Y,e;q=g.D((T=q.getWatchNextResponse())==null?void 0:(Y=T.playerOverlays)==null?void 0:(e=Y.playerOverlayRenderer)==null?void 0:e.decoratedPlayerBarRenderer,on);if(q==null?0:q.progressColor)for(T=0;T1){T=X3(d,q.j,!0);for(var Y=0,e=0;e0&&(Y+=d.G[e].width,Y+=ew(d));T=(d.G[T].startTime+(q.j-Y)/d.G[T].width*((T===d.G.length-1?d.j.G*1E3:d.G[T+1].startTime)-d.G[T].startTime))/1E3||0}return T}; H_D=function(d,q){if(q<0)return"0";d=Math.floor(Math.min(q,d.api.getDuration())*1E3);return d>2147483647?"0":String(d)}; sk=function(d,q,T,Y,e){q=H_D(d,q);T=H_D(d,T);d=d.progressBar.visualElement;Y={seekData:{startMediaTimeMs:q,endMediaTimeMs:T,seekSource:Y}};(q=g.Q0())&&g.iF(I$)(void 0,q,d,e,Y,void 0)}; QXj=function(d,q,T){if(T>=d.G.length)return!1;var Y=d.X-ew(d)*d.dO;return Math.abs(q-d.G[T].startTime/1E3)/d.j.G*Y<4}; Fs1=function(d){d.vA.style.removeProperty("height");for(var q=g.E(Object.keys(d.qk)),T=q.next();!T.done;T=q.next())MmQ(d,T.value);$n(d);br(d,d.lr,d.fn)}; Tj=function(d){var q=d.wO.x;q=g.Cn(q,0,d.X);d.E$.update(q,d.X);return d.E$}; F3=function(d){return(d.K?135:90)-gl(d)}; gl=function(d){var q=48,T=d.api.C();d.api.N("delhi_modern_web_player")?q=d.api.getPlayerSize().width<=528?64:d.K?96:72:d.K?q=54:g.dn(T)&&!T.U&&(q=40);return q}; br=function(d,q,T){d.lr=q;d.fn=T;var Y=Tj(d),e=d.j.G,U=xw2(d.j,d.lr),b=g.bO("$PLAY_PROGRESS/$DURATION",{PLAY_PROGRESS:g.MY(U,!0),DURATION:g.MY(e,!0)}),J=hg(d.G,U*1E3);J=d.G[J].title;d.update({ariamin:Math.floor(d.j.U),ariamax:Math.floor(e),arianow:Math.floor(U),arianowtext:J?J+" "+b:b});e=d.clipStart;U=d.clipEnd;d.IN&&d.api.getPresentingPlayerType()!==2&&(e=d.IN.startTimeMs/1E3,U=d.IN.endTimeMs/1E3);e=rs(d.j,e,0);J=rs(d.j,U,1);b=d.api.getVideoData();U=g.Cn(q,e,J);T=(b==null?0:g.y2(b))?1:g.Cn(T,e, J);q=qN(d,q,Y);g.Dv(d.gB,"transform","translateX("+q+"px)");d.api.N("delhi_modern_web_player")&&d.api.N("delhi_modern_web_player_cutout")&&c2D(d,q);NN(d,Y,e,U,"PLAY_PROGRESS");(b==null?0:Q2(b))?(q=d.api.getProgressState().seekableEnd)&&NN(d,Y,U,rs(d.j,q),"LIVE_BUFFER"):NN(d,Y,e,T,"LOAD_PROGRESS");if(d.api.N("web_player_heat_map_played_bar")){var F;(F=d.T[0])!=null&&F.L.setAttribute("width",(U*100).toFixed(2)+"%")}}; c2D=function(d,q){d.api.getPresentingPlayerType()!==1?d.Bv.style.removeProperty("clip-path"):(q||(q=qN(d,d.lr,Tj(d))),d.Bv.style.clipPath='path("'+(d.Je?EF7(d,8,q,d.K?50:36,0,6):EF7(d,4,q,d.K?34:24,2,3))+'")')}; EF7=function(d,q,T,Y,e,U){var b=T-Y/2;T+=Y/2;q+=e;return"M 0 "+e+" L 0 "+(q+" L ")+(b+" "+q+" C ")+(b+U+" "+q+" "+(b+U)+" "+e+" "+b+" "+e+" L 0 ")+(e+" M ")+(T+" "+e+" L ")+(d.X+" "+e+" L ")+(d.X+" "+q+" L ")+(T+" "+q+" C ")+(T-U+" "+q+" "+(T-U)+" "+e+" "+T+" "+e)}; NN=function(d,q,T,Y,e){var U=d.G.length,b=q.G-d.dO*ew(d),J=T*b;T=X3(d,J);var F=Y*b;b=X3(d,F);e==="HOVER_PROGRESS"&&(b=X3(d,q.G*Y,!0),F=q.G*Y-jXQ(d,q.G*Y)*ew(d));Y=Math.max(J-aRj(d,T),0);for(J=T;J=d.G.length)return d.X;for(var T=0,Y=0;Y0||d.LC.clientWidth>0?(U=q.clientWidth/T,d=-1*d.wk.clientWidth/T):(U/=T,d=-1*d.G[e].element.offsetLeft/T),g.Dv(q,"background-size",U+"px"),g.Dv(q,"background-position-x",d+"px"))}; Rk=function(d,q,T,Y,e){e||d.api.C().U?q.style.width=T+"px":g.Dv(q,"transform","scalex("+(Y?T/Y:0)+")")}; X3=function(d,q,T){var Y=0;(T===void 0?0:T)&&(q-=jXQ(d,q)*ew(d));T=g.E(d.G);for(var e=T.next();!e.done;e=T.next()){e=e.value;if(q>e.width)q-=e.width;else break;Y++}return Y===d.G.length?Y-1:Y}; qN=function(d,q,T){var Y=q*d.j.G*1E3;for(var e=-1,U=g.E(d.G),b=U.next();!b.done;b=U.next())b=b.value,Y>b.startTime&&b.width>0&&e++;Y=e<0?0:e;e=T.G-ew(d)*d.dO;return q*e+ew(d)*Y+T.T}; jXQ=function(d,q){for(var T=d.G.length,Y=0,e=g.E(d.G),U=e.next();!U.done;U=e.next())if(U=U.value,U.width!==0)if(q>U.width)q-=U.width,q-=ew(d),Y++;else break;return Y===T?T-1:Y}; g.Z_Q=function(d,q,T,Y){var e=d.X!==T,U=d.K!==Y;d.t0=q;d.X=T;d.K=Y;oW(d)&&(q=d.U)!=null&&(q.scale=Y?1.5:1);Fs1(d);d.G.length===1&&(d.G[0].width=T||0);e&&g.dl(d);d.U&&U&&oW(d)&&(d.U.isEnabled&&(T=d.K?135:90,Y=T-gl(d),d.kx.style.height=T+"px",g.Dv(d.UD,"transform","translateY("+-Y+"px)"),g.Dv(d.progressBar,"transform","translateY("+-Y+"px)")),Dp7(d.U))}; $n=function(d){var q=!!d.IN&&d.api.getPresentingPlayerType()!==2,T=d.clipStart,Y=d.clipEnd,e=!0,U=!0;q&&d.IN?(T=d.IN.startTimeMs/1E3,Y=d.IN.endTimeMs/1E3):(e=T>d.j.U,U=d.j.G>0&&Yd.lr);g.ep(d.vA,"ytp-scrubber-button-hover",T===Y&&d.G.length>1);if(d.api.N("web_player_heat_map_played_bar")){var U;(U=d.T[0])!=null&&U.G.setAttribute("width",(q.U*100).toFixed(2)+"%")}}}; MmQ=function(d,q){var T=d.qk[q];q=d.Ln[q];var Y=Tj(d),e=rs(d.j,T.start/1E3,0),U=Z1f(T,d.K)/Y.width;var b=rs(d.j,T.end/1E3,1);U!==Number.POSITIVE_INFINITY&&(e=g.Cn(e,0,b-U));b=Math.min(b,e+U);T.color&&(q.style.background=T.color);T=e;q.style.left=Math.max(T*Y.G+Y.T,0)+"px";Rk(d,q,g.Cn((b-T)*Y.G+Y.T,0,Y.width),Y.width,!0)}; O_I=function(d,q){var T=q.getId();d.qk[T]===q&&(g.h4(d.Ln[T]),delete d.qk[T],delete d.Ln[T])}; oW=function(d){var q=g.cT(d.api.C())&&(d.api.N("web_shorts_pip")||d.api.N("web_watch_pip")),T;return!((T=d.api.getVideoData())==null?0:T.isLivePlayback)&&!d.api.isMinimized()&&!d.api.isInline()&&(!d.api.Kx()||!q)}; xn=function(d){d.U&&(d.U.disable(),d.Fw=0,d.UD.style.removeProperty("transform"),d.progressBar.style.removeProperty("transform"),d.kx.style.removeProperty("height"),d.element.parentElement&&d.element.parentElement.style.removeProperty("height"))}; nFj=function(d,q){var T=q/F3(d)*gl(d);g.Dv(d.progressBar,"transform","translateY("+-q+"px)");g.Dv(d.UD,"transform","translateY("+-q+"px)");g.Dv(d.kx,"transform","translateY("+T+"px)");d.kx.style.height=q+T+"px";d.element.parentElement&&(d.element.parentElement.style.height=gl(d)-T+"px")}; r2_=function(d,q){q?d.B||(d.element.removeAttribute("aria-disabled"),d.B=new g.fc(d.progressBar,!0),d.api.N("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&d.B.subscribe("hoverstart",d.Mtw,d),d.B.subscribe("hovermove",d.zlO,d),d.B.subscribe("hoverend",d.ttD,d),d.B.subscribe("dragstart",d.QdZ,d),d.B.subscribe("dragmove",d.r1O,d),d.B.subscribe("dragend",d.pGw,d),d.api&&d.api.N("delhi_modern_web_player")&&d.api.N("delhi_modern_web_player_cutout")&&(d.rA=new g.fc(d.progressBar, !0),d.rA.subscribe("hoverstart",function(){d.Je=!0;c2D(d)},d),d.rA.subscribe("hoverend",function(){d.Je=!1; c2D(d)},d)),d.wU=d.listen("keydown",d.wT)):d.B&&(d.element.setAttribute("aria-disabled","true"),d.t1(d.wU),d.B.cancel(),d.B.dispose(),d.B=null)}; ew=function(d){return d.api.N("delhi_modern_web_player")?4:d.K?3:2}; RwH=function(d){var q;return!((q=d.IN)==null||!q.postId)&&d.api.getPresentingPlayerType()!==2}; yW=function(d,q){g.f.call(this,{Y:"button",hF:["ytp-remote-button","ytp-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"\u5728\u7535\u89c6\u4e0a\u64ad\u653e":"","data-tooltip-title":"\u5728\u7535\u89c6\u4e0a\u64ad\u653e","aria-haspopup":"true","data-priority":"10"},j5:"{{icon}}"});this.J=d;this.TG=q;this.G=null;this.W(d,"onMdxReceiversChange",this.S5);this.W(d,"presentingplayerstatechange",this.S5);this.W(d,"appresize",this.S5);d.createClientVe(this.element,this,139118);this.S5();this.listen("click", this.U,this);D$(d,this.element,this)}; hZ=function(d,q){g.f.call(this,{Y:"button",hF:["ytp-button","ytp-settings-button"],Z:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":ex(),title:d.N("player_tooltip_data_title_killswitch")?"\u8bbe\u7f6e":"","data-tooltip-title":"\u8bbe\u7f6e","data-tooltip-target-id":"ytp-settings-button"},V:[d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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.Ai()]});this.J=d;this.TG=q;this.U=!0;this.listen("click",this.j);this.W(d,"onPlaybackQualityChange",this.updateBadge);this.W(d,"videodatachange",this.updateBadge);this.W(d,"webglsettingschanged",this.updateBadge);this.W(d,"appresize",this.G);D$(d,this.element,this);this.J.createClientVe(this.element,this,28663);this.updateBadge();this.G(d.OD().getPlayerSize())}; tmn=function(d,q){d.U=!!q;d.G(d.J.OD().getPlayerSize())}; HF=function(d,q){jq.call(this,"\u6ce8\u91ca",g.rR.qo);this.J=d;this.TG=q;this.G=!1;d.N("web_settings_menu_icons")&&(q=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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(q));this.W(d,"videodatachange",this.S5);this.W(d,"onApiChange",this.S5);this.subscribe("select",this.onSelect,this);this.S5()}; QW=function(d,q){g.uf.call(this,"\u97f3\u8f68",g.rR.AUDIO,d,q);this.J=d;this.tracks={};g.d9(this.element,"ytp-audio-menu-item");this.countLabel=new g.f({Y:"div",V:[{Y:"span",j5:"\u97f3\u8f68"},{Y:"span",D:"ytp-menuitem-label-count",j5:"{{content}}"}]});d.N("web_settings_menu_icons")&&(q=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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"}}]}:rBI(),this.setIcon(q));g.C(this,this.countLabel);g.$T(this,this.countLabel);this.W(d,"videodatachange",this.S5);this.W(d,"onPlaybackAudioChange",this.S5);this.S5()}; MN=function(d,q){jq.call(this,"\u81ea\u52a8\u64ad\u653e",g.rR.nG);this.J=d;this.TG=q;this.G=!1;this.j=[];this.W(d,"presentingplayerstatechange",this.U);this.subscribe("select",this.onSelect,this);d.createClientVe(this.element,this,113682);this.U()}; ByY=function(d,q){g.gR.call(this,g.Fp({"aria-haspopup":"false"}),0,"\u66f4\u591a\u9009\u9879");this.J=d;this.TG=q;this.W(this.element,"click",this.onClick);this.TG.rk(this)}; Ks7=function(d,q){var T;g.cT(d.C())&&(T={Y:"div",D:"ytp-panel-footer-content",V:[{Y:"span",j5:"\u901a\u8fc7\u4f60\u7684"},{Y:"a",D:"ytp-panel-footer-content-link",j5:"\u8bbe\u7f6e",Z:{href:"/account_downloads"}}]});g.uf.call(this,"\u753b\u8d28",g.rR.ao,d,q,void 0,void 0,T);this.J=d;this.yv={};this.K={};this.T={};this.rO=new Set;this.G=this.X=!1;this.L="unknown";this.lr="";this.UD=new g.PW;g.C(this,this.UD);this.X=this.J.N("web_player_use_new_api_for_quality_pullback");this.G=this.J.N("web_player_enable_premium_hbr_playback_cap"); d.N("web_settings_menu_icons")&&(q=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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(q));g.d9(this.U.element,"ytp-quality-menu");this.W(d,"videodatachange",this.DD);this.W(d,"videoplayerreset",this.DD);this.W(d,"onPlaybackQualityChange",this.EB);this.DD();d.createClientVe(this.element,this,137721)}; Ls1=function(d,q,T){var Y=d.yv[q],e=g.ZB[q];return G96(d,Y?Y.qualityLabel:e?e+"p":"\u81ea\u52a8",q,T)}; k9Y=function(d,q,T,Y,e){var U=(q=d.G?d.T[q]:d.K[q])&&q.quality,b=q&&q.qualityLabel;b=b?b:"\u81ea\u52a8";Y&&(b="("+b);d=G96(d,b,U||"",e);Y&&d.V.push(")");(Y=(Y=q&&q.paygatedQualityDetails)&&Y.paygatedIndicatorText)&&T&&d.V.push({Y:"div",D:"ytp-premium-label",j5:Y});return d}; G96=function(d,q,T,Y){q={Y:"span",hF:Y,V:[q]};var e;Y="ytp-swatch-color";if(d.X||d.G)Y="ytp-swatch-color-white";T==="highres"?e="8K":T==="hd2880"?e="5K":T==="hd2160"?e="4K":T.indexOf("hd")===0&&T!=="hd720"&&(e="HD");e&&(q.V.push(" "),q.V.push({Y:"sup",D:Y,j5:e}));return q}; cF=function(d){DI.call(this,d.getAvailablePlaybackRates()[0],d.getAvailablePlaybackRates()[d.getAvailablePlaybackRates().length-1],.05,d.getPlaybackRate(),{Y:"div",D:"ytp-speedslider-indicator-container",V:[{Y:"div",D:"ytp-speedslider-badge"},{Y:"p",D:"ytp-speedslider-text"}]});this.J=d;this.lr=KT(this.yv,50,this);g.d9(this.U,"ytp-speedslider");this.K=this.Qv("ytp-speedslider-text");this.UD=this.Qv("ytp-speedslider-badge");PX6(this);this.W(this.U,"change",this.rO)}; PX6=function(d){d.K.textContent=d.G.toFixed(2)+"x";var q=d.G>2&&d.J.N("enable_web_premium_varispeed");d.UD.classList.toggle("ytp-speedslider-premium-badge",q);d.UD.setAttribute("aria-label",q?"Premium":"")}; Ek=function(d,q,T,Y,e,U,b){g.f.call(this,{Y:"div",D:"ytp-slider-section",Z:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{Y:"div",D:"ytp-slider",V:[{Y:"div",D:"ytp-slider-handle"}]}]});this.B=d;this.K=q;this.U=T;this.j=Y;this.lr=e;this.z2=U;this.range=this.j-this.U;this.dO=this.Qv("ytp-slider-section");this.T=this.Qv("ytp-slider");this.UD=this.Qv("ytp-slider-handle");this.L=new g.fc(this.T, !0);this.G=b?b:T;g.C(this,this.L);this.L.subscribe("dragmove",this.GQ,this);this.W(this.element,"keydown",this.fK);this.W(this.element,"wheel",this.Pb);this.init()}; jw=function(d){Ek.call(this,.05,.05,d.getAvailablePlaybackRates()[0],d.getAvailablePlaybackRates()[d.getAvailablePlaybackRates().length-1],150,20,d.getPlaybackRate());this.J=d;this.X=g.FE("P");this.rO=KT(this.yv,50,this);g.d9(this.T,"ytp-speedslider");g.d9(this.X,"ytp-speedslider-text");d=this.X;var q=this.T;q.parentNode&&q.parentNode.insertBefore(d,q.nextSibling);Wsj(this);this.W(this.J,"onPlaybackRateChange",this.updateValues)}; Wsj=function(d){d.X.textContent=CX1(d,d.G)+"x"}; CX1=function(d,q){d=Number(g.Cn(q,d.U,d.j).toFixed(2));q=Math.floor((d+.001)*100%5+2E-15);var T=d;q!==0&&(T=d-q*.01);return Number(T.toFixed(2))}; uBY=function(d){g.Ji.call(this,{Y:"div",D:"ytp-speedslider-component"});d.N("web_settings_use_input_slider")?this.G=new cF(d):this.G=new jw(d);g.C(this,this.G);this.element.appendChild(this.G.element)}; D2g=function(d){var q=new uBY(d);nc.call(this,d,q,"\u81ea\u5b9a\u4e49");g.C(this,q)}; wwj=function(d,q){var T=new D2g(d);g.uf.call(this,"\u64ad\u653e\u901f\u5ea6",g.rR.uf,d,q,ak(d)?void 0:"\u81ea\u5b9a\u4e49",ak(d)?void 0:function(){g.Kc(q,T)}); var Y=this;this.T=!1;g.C(this,T);this.L=new cF(d);g.C(this,this.L);if(d.N("web_settings_menu_icons")){var e=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(e)}this.J=d;this.T=!1;this.lr=null;ak(d)?(this.G=g.bO("\u81ea\u5b9a\u4e49 ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.J.getPlaybackRate().toString()}),this.X=this.J.getPlaybackRate()):this.X=this.G=null;this.K=this.J.getAvailablePlaybackRates();this.W(d,"presentingplayerstatechange",this.S5);var U;((U=this.J.getVideoData())==null?0:U.y5())&&this.W(d,"serverstitchedvideochange",this.S5);this.W(this.L.U,"change",function(){Y.T=!0;Y.S5()}); this.S5()}; fR2=function(d,q){var T=AZ(q);d.G&&(d.T||q===d.X)?(d.kL(d.G),d.A1(q.toString())):d.kL(T)}; i_7=function(d){d.MF(d.K.map(AZ));d.G=null;d.X=null;var q=d.J.getPlaybackRate();ak(d.J)&&zwn(d,q);!d.K.includes(q)||d.T?d.kL(d.G):d.kL(AZ(q))}; zwn=function(d,q){d.X=q;d.G=g.bO("\u81ea\u5b9a\u4e49 ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:q.toString()});q=d.K.map(AZ);q.unshift(d.G);d.MF(q)}; AZ=function(d){return d.toString()}; ak=function(d){return d.N("web_settings_menu_surface_custom_playback")}; IRX=function(d){return d.N("web_settings_menu_surface_custom_playback")&&d.N("web_settings_use_input_slider")}; ShD=function(d,q,T,Y){var e=new g.rF(q,void 0,"\u8ddf\u968f\u89c6\u9891\u7684\u8bbe\u7f6e");g.uf.call(this,Y.text||"",d,q,T,"\u8ddf\u968f\u89c6\u9891\u7684\u8bbe\u7f6e",function(){g.Kc(T,e)}); var U=this;g.d9(this.element,"ytp-subtitles-options-menu-item");this.setting=Y.option.toString();d=Y.options;this.settings=g.lQ(d,this.eG,this);this.X=e;g.C(this,this.X);q=new g.gR({Y:"div",D:"ytp-menuitemtitle",j5:"\u5728\u89c6\u9891\u6307\u5b9a\u7684\u5b57\u5e55\u6837\u5f0f\u4e0e\u7528\u6237\u8bbe\u7f6e\u7684\u6837\u5f0f\u4e0d\u540c\u65f6\uff0c\u5141\u8bb8\u4f7f\u7528\u89c6\u9891\u6307\u5b9a\u7684\u6837\u5f0f\u3002"},0);g.C(this,q);this.X.rk(q,!0);this.T=new g.gR({Y:"div",D:"ytp-menuitem",Z:{role:"menuitemradio", tabindex:"0"},V:[{Y:"div",D:"ytp-menuitem-label",j5:"\u5f00\u542f"}]},-1);g.C(this,this.T);this.X.rk(this.T,!0);this.W(this.T.element,"click",function(){m2H(U,!0)}); this.G=new g.gR({Y:"div",D:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},V:[{Y:"div",D:"ytp-menuitem-label",j5:"\u5173\u95ed"}]},-2);g.C(this,this.G);this.X.rk(this.G,!0);this.W(this.G.element,"click",function(){m2H(U,!1)}); this.MF(g.yC(d,this.eG))}; m2H=function(d,q){d.publish("settingChange",d.setting+"Override",!q);d.TG.l1()}; pA=function(d,q){g.rF.call(this,d,void 0,"\u9009\u9879");var T=this;this.py={};for(var Y=0;Y=0);if(!(q<0||q===d.T)){d.T=q;q=243*d.scale;var T=141*d.scale,Y=d6I(d.U,d.T,q);Re1(d.bg,Y,q,T,!0);d.UD.start()}}; jtH=function(d){var q=d.G;d.type===3&&d.yv.stop();d.api.removeEventListener("appresize",d.lr);d.B||(d.env.N("player_tooltip_data_title_killswitch")?q.setAttribute("title",d.j):q.setAttribute("data-tooltip-title",d.j));d.j="";d.G=null;d.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});d.wrapper.style.width=""}; A9j=function(d){g.f.call(this,{Y:"button",hF:["ytp-watch-later-button","ytp-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.dn(d.C()))},V:[{Y:"div",D:"ytp-watch-later-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-watch-later-title",j5:"\u7a0d\u540e\u89c2\u770b"}]});this.J=d;this.icon=null;this.visible=this.isRequestPending=this.G=!1;rHY(d);d.createClientVe(this.element,this, 28665);this.listen("click",this.onClick,this);this.W(d,"videoplayerreset",this.onReset);this.W(d,"appresize",this.bq);this.W(d,"videodatachange",this.bq);this.W(d,"presentingplayerstatechange",this.bq);this.bq();d=this.J.C();var q=g.Zs("yt-player-watch-later-pending");d.T&&q?(TXn(),aHD(this)):this.S5(2);g.ep(this.element,"ytp-show-watch-later-title",g.dn(d));D$(this.J,this.element,this)}; pC7=function(d){var q=d.J.getPlayerSize(),T=d.J.C(),Y=d.J.getVideoData(),e=g.dn(T)&&g.m7(d.J)&&g.I(d.J.getPlayerStateObject(),128),U=T.j;return T.FW&&q.width>=240&&!Y.isAd()&&Y.FW&&!e&&!Y.kc&&!d.J.isEmbedsShortsMode()&&!U}; ZQN=function(d,q){Or_(g.yv(d.J.C()),"wl_button",function(){TXn({videoId:q});window.location.reload()})}; aHD=function(d){if(!d.isRequestPending){d.isRequestPending=!0;d.S5(3);var q=d.J.getVideoData();q=d.G?q.removeFromWatchLaterCommand:q.addToWatchLaterCommand;var T=d.J.S0(),Y=d.G?function(){d.G=!1;d.isRequestPending=!1;d.S5(2);d.J.C().B&&d.J.gO("WATCH_LATER_VIDEO_REMOVED")}:function(){d.G=!0; d.isRequestPending=!1;d.S5(1);d.J.C().U&&d.J.lK(d.element);d.J.C().B&&d.J.gO("WATCH_LATER_VIDEO_ADDED")}; KU(T,q).then(Y,function(){d.isRequestPending=!1;d.S5(4,"\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002");d.J.C().B&&d.J.gO("WATCH_LATER_ERROR","\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002")})}}; OQQ=function(d,q){if(q!==d.icon){switch(q){case 3:var T=Oc();break;case 1:T=NP();break;case 2:T={Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"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:T={Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path", Kn:!0,Z:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}d.updateValue("icon",T);d.icon=q}}; n61=function(){g.ql.apply(this,arguments);this.q9=(this.PW=g.dn(this.api.C()))&&(this.api.C().U||m9()||ib());this.JV=48;this.RJ=69;this.FR=this.mV=null;this.YI=[];this.Hp=this.J0=this.dY=this.HZ=this.Jm=null;this.sj=[];this.contextMenu=this.nj=this.overflowButton=this.ag=this.x9=this.searchButton=this.copyLinkButton=this.shareButton=this.XU=this.al=this.title=this.channelAvatar=this.VW=this.tooltip=null;this.oJ=!1;this.ze=this.yW=this.UE=this.o7=null;this.scv=this.qA=this.DF=!1}; r9j=function(d){var q=d.api.C(),T=g.I(d.api.getPlayerStateObject(),128);return q.T&&T&&!d.api.isFullscreen()}; tU1=function(d){if(d.Rl()&&!d.api.isEmbedsShortsMode()&&d.ag){var q=d.api.N("web_player_hide_overflow_button_if_empty_menu");!d.XU||q&&!pC7(d.XU)||rXQ(d.ag,d.XU);!d.shareButton||q&&!mJ7(d.shareButton)||rXQ(d.ag,d.shareButton);!d.copyLinkButton||q&&!zzY(d.copyLinkButton)||rXQ(d.ag,d.copyLinkButton)}else{q=d.api.C().getWebPlayerContextConfig();if(d.ag){for(var T=d.ag,Y=g.E(T.actionButtons),e=Y.next();!e.done;e=Y.next())e.value.detach();T.actionButtons=[]}d.searchButton&&!g.HB(d.al.element,d.searchButton.element)&& d.searchButton.IU(d.al.element);!d.XU||(q==null?0:q.hideTopWatchNextButton)||g.HB(d.al.element,d.XU.element)||d.XU.IU(d.al.element);!d.shareButton||(q==null?0:q.hideTopShareButton)||g.HB(d.al.element,d.shareButton.element)||d.shareButton.IU(d.al.element);d.copyLinkButton&&!g.HB(d.al.element,d.copyLinkButton.element)&&d.copyLinkButton.IU(d.al.element)}}; B3_=function(d,q,T){q=T?q.lastElementChild:q.firstElementChild;for(var Y=null;q;){if(zO(q,"display")!=="none"&&q.getAttribute("aria-hidden")!=="true"){var e=void 0;q.tabIndex>=0?e=q:e=B3_(d,q,T);e&&(Y?T?e.tabIndex>Y.tabIndex&&(Y=e):e.tabIndexY/1E3+1)return{msg:"in-the-past"};if(U.isLivePlayback&&!isFinite(Y))return{msg:"live-infinite"};(Y=q.WG())&&Y.isView()&&(Y=Y.mediaElement);if(Y&&Y.NT().length>12&&g.ft(e))return{msg:"played-ranges"};if(!e.j)return null;if(!b)return{msg:"no-pvd-formats"};if(!e.j.G||!b.G)return{msg:"non-dash"};Y=b.videoInfos[0];var J=e.j.videoInfos[0];d.lr&&Zu(U)&&(Y=q.Ko(), J=T.Ko());if(!Y||!J)return{msg:"no-video-info"};if(d.X&&(kV(Y)||kV(J)))return{msg:"av1"};q=d.T&&U.mT()&&XD();if(J.containerType!==Y.containerType)if(q)U.oU("sgap",{ierr:"container"});else return{msg:"container"};if(d.S&&!q&&(J.Cf!==Y.Cf||J.Cf===""||Y.Cf===""))return{msg:"codec"};if(d.L&&J.video&&Y.video&&Math.abs(J.video.width/J.video.height-Y.video.width/Y.video.height)>.01)return{msg:"ratio"};if(g.ft(U)&&g.ft(e))return{msg:"content-protection"};b=b.G[0];e=e.j.G[0];T=b.audio;var F=e.audio;if(T.sampleRate!== F.sampleRate&&!g.MI)if(q)U.oU("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:b.itag,cr:T.sampleRate,ni:e.itag,nr:F.sampleRate};return(T.numChannels||2)!==(F.numChannels||2)?{msg:"channel-count"}:d.B&&U.mT()&&Y.video.fps!==J.video.fps?{msg:"fps"}:null}; k42=function(d,q,T){var Y=d.getVideoData(),e=q.getVideoData();if(!Y.C().supportsGaplessShorts())return{nq:"env"};if((!T.K||Y.k9&&!Y.isAd()||e.k9&&!e.isAd())&&(!T.U||Y.k9&&!Y.isAd()||e.k9)&&(!T.j||e.k9&&!e.isAd()||Y.k9)&&(Y.k9||e.k9))return{nq:"autoplay"};if(Y.endSeconds>0)return{nq:"endcr"};if(!Y.L)return{nq:"client"};if(!d.MN())return{nq:"no-empty"};d=LC6(T,d,q,Infinity);return d!=null?{nq:d.msg}:null}; fA=function(d){g.W.call(this);this.app=d;this.S=this.T=this.U=this.G=null;this.j=1;this.events=new g.aI(this);this.events.W(this.app.mZ,g.lG("gaplessshortslooprange"),this.B);g.C(this,this.events)}; PT_=function(){this.G=this.L=this.j=this.U=this.K=this.X=this.lr=this.B=this.S=this.T=!1}; WCX=function(d){var q=new PT_;q.T=d.N("h5_gapless_support_types_diff");q.B=d.N("h5_gapless_error_on_fps_diff");q.lr=d.N("html5_gapless_use_format_info_fix");q.X=d.N("html5_gapless_disable_on_av1")&&!d.N("html5_gapless_enable_on_av1");q.S=d.N("html5_gapless_check_codec_diff_strictly");q.K=d.N("html5_gapless_on_ad_autoplay");q.L=d.N("html5_gapless_disable_diff_aspect_radio");q.U=d.N("html5_gapless_ad_autoplay_on_ad_to_video_only");q.G=d.N("html5_pseudogapless_shorts_seek_to_next_start");q.j=d.N("html5_gapless_ad_autoplay_on_video_to_ad_only"); return q}; g.zj=function(d,q,T,Y){Y=Y===void 0?!1:Y;he.call(this);this.mediaElement=d;this.start=q;this.end=T;this.G=Y}; CT6=function(d,q,T,Y,e,U){U=U===void 0?0:U;g.W.call(this);var b=this;this.policy=d;this.G=q;this.U=T;this.h1=e;this.S=U;this.T=this.j=null;this.currentVideoDuration=this.X=-1;this.L=!1;this.l3=new yQ;this.yP=Y-q.mz()*1E3;this.l3.then(void 0,function(){}); this.timeout=new g.f9(function(){b.Kj("timeout")},1E4); g.C(this,this.timeout);this.B=isFinite(Y)||this.h1.C().experiments.Wv("html5_pseudogapless_shorts")&&Zu(q.getVideoData());this.status={status:0,error:null}}; DDg=function(d){var q,T,Y,e,U,b,J,F,N;return g.G(function(R){if(R.U==1){if(d.JF())return R.return(Promise.reject(Error(d.status.error||"disposed")));d.timeout.start();return g.B(R,d.l3,2)}q=d.G.WG();if(q.isEnded())return d.Kj("ended_in_finishTransition"),R.return(Promise.reject(Error(d.status.error||"")));if(!d.T||!$x(d.T))return d.Kj("next_mse_closed"),R.return(Promise.reject(Error(d.status.error||"")));if(d.U.Eg()!==d.T)return d.Kj("next_mse_mismatch"),R.return(Promise.reject(Error(d.status.error|| "")));T=ir(d);Y=T.Iy;e=T.vk;U=T.e3;d.G.Hf(!1,!0);b=udg(q,Y,U,!d.U.getVideoData().isAd());d.U.setMediaElement(b);(J=d.G.NI())&&d.U.Z1(J.TW,J.yu);d.B&&(d.policy.G||d.U.seekTo(d.U.getCurrentTime()+.001,{Zn:!0,hc:3,b$:"gapless_pseudo"}),b.play(),pZ());F=q.BF();F.cpn=d.G.getVideoData().clientPlaybackNonce;F.st=""+Y;F.et=""+U;d.U.oU("gapless",F);d.G.oU("gaplessTo",{cpn:d.U.getVideoData().clientPlaybackNonce});N=d.G.getPlayerType()===d.U.getPlayerType();d.G.a$(e,!0,!1,N,d.U.getVideoData().clientPlaybackNonce); d.U.a$(d.U.getCurrentTime(),!0,!0,N,d.G.getVideoData().clientPlaybackNonce);d.U.Be();g.ML(function(){!d.U.getVideoData().UD&&d.U.getPlayerState().isOrWillBePlaying()&&d.U.eR()}); Ik(d,6);d.dispose();return R.return(Promise.resolve())})}; iQ2=function(d){if(d.U.getVideoData().j){var q=d.h1.C().N("html5_gapless_suspend_next_loader")&&d.S===1;d.U.uY(d.T,q,wCY(d));Ik(d,3);fH7(d);var T=z_N(d);q=T.gg;T=T.gy;q.subscribe("updateend",d.BV,d);T.subscribe("updateend",d.BV,d);d.BV(q);d.BV(T)}}; fH7=function(d){d.G.unsubscribe("internalvideodatachange",d.v1,d);d.U.unsubscribe("internalvideodatachange",d.v1,d);d.h1.C().N("html5_gapless_use_format_info_fix")&&(d.G.unsubscribe("internalvideoformatchange",d.v1,d),d.U.unsubscribe("internalvideoformatchange",d.v1,d));d.G.unsubscribe("mediasourceattached",d.v1,d);d.U.unsubscribe("statechange",d.tH,d)}; udg=function(d,q,T,Y){d=d.isView()?d.mediaElement:d;return new g.zj(d,q,T,Y)}; Ik=function(d,q){q<=d.status.status||(d.status={status:q,error:null},q===5&&d.l3.resolve())}; wCY=function(d){return d.h1.C().N("html5_gapless_no_clear_buffer_timeline")&&d.S===1&&tw(d.G.getVideoData())}; ir=function(d){var q=d.G.WG();q=q.isView()?q.start:0;var T=d.G.getVideoData().isLivePlayback?Infinity:d.G.Jq(!0);T=Math.min(d.yP/1E3,T)+q;var Y=d.B?100:0;d=T-d.U.tE()+Y;return{Xl:q,Iy:d,vk:T,e3:Infinity}}; z_N=function(d){return{gg:d.j.G.KC,gy:d.j.U.KC}}; mN=function(d){g.W.call(this);var q=this;this.app=d;this.X=this.U=this.G=null;this.B=!1;this.j=this.T=null;this.S=WCX(this.app.C());this.L=function(){g.ML(function(){IHY(q)})}}; mD1=function(d,q,T,Y,e){Y=Y===void 0?0:Y;e=e===void 0?0:e;d.MN()||Sw(d);d.T=new yQ;d.G=q;var U=T,b=e===0;b=b===void 0?!0:b;var J=d.app.Lf(),F=J.getVideoData().isLivePlayback?Infinity:J.Jq(!0)*1E3;U>F&&(U=F-200,d.B=!0);b&&J.getCurrentTime()>=U/1E3?d.L():(d.U=J,b&&(b=U,U=d.U,d.app.mZ.addEventListener(g.Sh("vqueued"),d.L),b=isFinite(b)||b/1E3>U.getDuration()?b:0x8000000000000,d.X=new g.Ij(b,0x8000000000000,{namespace:"vqueued"}),U.addCueRange(d.X)));b=Y/=1E3;U=q.getVideoData().G;Y&&U&&d.U&&(J=Y,F=0, q.getVideoData().isLivePlayback&&(b=Math.min(T/1E3,d.U.Jq(!0)),F=Math.max(0,b-d.U.getCurrentTime()),J=Math.min(Y,q.Jq()+F)),b=LiD(U,J)||Y,b!==Y&&d.G.oU("qvaln",{st:Y,at:b,rm:F,ct:J}));q=b;Y=d.G;Y.getVideoData().t0=!0;Y.getVideoData().L=!0;Y.Z8(!0);U={};d.U&&(U=d.U.Rf(),b=d.U.getVideoData().clientPlaybackNonce,U={crt:(U*1E3).toFixed(),cpn:b});Y.oU("queued",U);q!==0&&Y.seekTo(q+.01,{Zn:!0,hc:3,b$:"videoqueuer_queued"});d.j=new CT6(d.S,d.app.Lf(),d.G,T,d.app,e);T=d.j;T.status.status!==Infinity&&(Ik(T, 1),T.G.subscribe("internalvideodatachange",T.v1,T),T.U.subscribe("internalvideodatachange",T.v1,T),T.h1.C().N("html5_gapless_use_format_info_fix")&&(T.G.subscribe("internalvideoformatchange",T.v1,T),T.U.subscribe("internalvideoformatchange",T.v1,T)),T.G.subscribe("mediasourceattached",T.v1,T),T.U.subscribe("statechange",T.tH,T),T.G.subscribe("newelementrequired",T.Pn,T),T.v1());return d.T}; IHY=function(d){var q,T,Y,e,U,b,J;g.G(function(F){switch(F.U){case 1:if(d.JF()||!d.T||!d.G)return F.return();d.B&&d.app.Lf().Wx(!0,!1);q=null;if(!d.j){F.tF(2);break}g.jD(F,3);return g.B(F,DDg(d.j),5);case 5:g.ZX(F,2);break;case 3:q=T=g.nN(F);case 2:if(!d.G)return F.return();SZ6.GZ("vqsp",function(){d.app.D8(d.G)}); if(!d.G)return F.return();Y=d.G.WG();d.app.C().N("html5_gapless_seek_on_negative_time")&&Y&&Y.getCurrentTime()<-.01&&d.G.seekTo(0);SZ6.GZ("vqpv",function(){d.app.playVideo()}); q&&(d.G?(e=q?q.message:"forced",(U=d.U)==null||U.oU("gapfulfbk",{r:e}),d.G.rE(e)):(b=d.U)==null||b.oU("gapsp",{}));J=d.T;Sw(d);J&&J.resolve();return F.return(Promise.resolve())}})}; Sw=function(d,q){q=q===void 0?!1:q;if(d.U){if(d.X){var T=d.U;d.app.mZ.removeEventListener(g.Sh("vqueued"),d.L);T.removeCueRange(d.X)}d.U=null;d.X=null}d.j&&(d.j.status.status!==6&&(T=d.j,T.status.status!==Infinity&&T.S!==1&&T.Kj("Canceled")),d.j=null);d.T=null;d.G&&!q&&d.G!==d.app.UM()&&d.G!==d.app.Lf()&&d.G.dispose();d.G&&q&&d.G.B$();d.G=null;d.B=!1}; lH1=function(d){var q;return((q=d.j)==null?void 0:q.currentVideoDuration)||-1}; v6j=function(d,q,T){if(d.MN())return"qie";if(d.G==null||d.G.JF()||d.G.getVideoData()==null)return"qpd";if(q.videoId!==d.G.Sh())return"vinm";if(lH1(d)<=0)return"ivd";if(T!==1)return"upt";if((T=d.j)==null)d=void 0;else if(T.getStatus().status!==5)d="niss";else if(LC6(T.policy,T.G,T.U,T.yP)!=null)d="pge";else{q=z_N(T);d=q.gg;var Y=q.gy;q=g.Yv(T.h1.C().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var e=T.X+q;T.h1.C().experiments.Wv("html5_pseudogapless_shorts")&&(e=ir(T).Iy+q);T=oI(Y.Zm(), e);d=oI(d.Zm(),e);d=!(q>0)||T&&d?null:"neb"}return d!=null?d:null}; o66=function(){g.YP.call(this);var d=this;this.fullscreen=0;this.T=this.j=this.pictureInPicture=this.G=this.U=this.inline=!1;this.S=function(){d.nz()}; YVj(this.S);this.X=this.getVisibilityState(this.pA(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Kx(),this.YM(),this.vE(),this.E6())}; bEX=function(d){return!(d.isMinimized()||d.isInline()||d.isBackground()||d.Kx()||d.YM()||d.vE()||d.E6())}; g.lr=function(d){g.W.call(this);this.Pv=d;this.videoData=this.playerState=null}; VW=function(d,q){g.W.call(this);var T=this;this.data=[];this.j=d||NaN;this.U=q||null;this.G=new g.f9(function(){vF(T);ok(T)}); g.C(this,this.G)}; BgI=function(d){vF(d);return d.data.map(function(q){return q.value})}; vF=function(d){var q=(0,g.cj)();d.data.forEach(function(T){T.expire0));d.uF()&& TmI();Error.stackTraceLimit=50;var e=g.Yv(q,"html5_idle_rate_limit_ms");e&&Object.defineProperty(window,"requestIdleCallback",{value:function(U){return window.setTimeout(U,e)}}); Y_I(d.S);C87(T("html5_use_ump_request_slicer"));RHY(T("html5_record_now"));T("html5_disable_streaming_xhr")&&(QU=!1);T("html5_byterate_constraints")&&(Oo=!0);T("html5_use_non_active_broadcast_for_post_live")&&(y8=!0);T("html5_enable_encrypted_av1")&&(Le=!0);ovN(g.Yv(d.experiments,"html5_sticky_duration_mos"))}; Ur6=function(d,q){return d.slice(q.length).replace(/_[a-z]/g,function(T){return T.toUpperCase().replace("_","")}).replace("Dot",".")}; bDQ=function(d){var q={},T=Object.keys(d.experiments.flags);T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,Y.startsWith("cobalt_h5vcc"))if(Y.startsWith("cobalt_h5vcc_string")){var e=Ur6(Y,"cobalt_h5vcc_string");Y=Md(d.experiments,Y);e&&Y&&(q[e]=dCQ(e,Y))}else Y.startsWith("cobalt_h5vcc")&&(e=Ur6(Y,"cobalt_h5vcc"),Y=g.Yv(d.experiments,Y),e&&Y&&(q[e]=dCQ(e,Y)));return q}; JO6=function(d,q,T,Y){Y=Y===void 0?0:Y;g.Uc.call(this,T.I_());var e=this;this.Rd=d;this.videoData=q;this.duration=Y;this.endTime=this.startTime=0;this.G=new XQ_(function(U,b){return void e.oU(U,b)})}; XQ_=function(d){this.oU=d;this.G={}}; sv2=function(d,q,T){d.G[q]||(d.oU("huli-sdai-err",T),d.G[q]=!0)}; $rn=function(d){this.end=this.start=d}; g.ek=function(){this.G=new Map;this.j=new Map;this.U=new Map}; ga2=function(){var d=this;this.G=[];this.j=new Map;this.T=new Map;this.U=new Map;this.fC={lN:function(){return d.j}, R2D:function(){return d.T}}}; NHQ=function(d,q){g.mq(d.G,q,function(T,Y){return T.PG===Y.PG?T.durationMs-Y.durationMs:T.PG-Y.PG}); d.j.set(q.cpn,q);q.HG&&d.T.set(q.HG,q);q.UP&&Fmj(d,q.UP,q)}; RLN=function(d,q){q=g.Dn(d.G,{lC:q},function(T,Y){return T.lC-Y.lC}); return q>=0?d.G[q]:null}; xrN=function(d,q){var T=d.G.indexOf(q);T>=0&&d.G.splice(T,1);d.j.delete(q.cpn);q.HG&&d.T.delete(q.HG)}; Fmj=function(d,q,T){var Y=d.U.get(q);Y?(Y.push(T),g.iQ(Y,function(e,U){return e.PG-U.PG})):d.U.set(q,[T])}; g.Ue=function(d,q,T,Y){g.W.call(this);var e=this;this.api=d;this.Pv=q;this.playback=T;this.app=Y;this.UD=new g.ek;this.U=new Map;this.G=new ga2;this.z2=new Map;this.rO=null;this.kx=NaN;this.AF=this.Bv=null;this.Fw=new g.f9(function(){yOg(e,e.kx,e.Bv||void 0)}); this.events=new g.aI(this);this.RU=15E3;this.L=new g.f9(function(){e.B=!0;e.playback.uH(e.RU);hLg(e);if(e.playback.getVideoData().y5()){var U;e.oN({togab:(U=e.X)==null?void 0:U.identifier})}e.g9(!1)},this.RU); this.B=!1;this.S=new Map;this.dO=[];this.X=null;this.xx=new Set;this.K=[];this.wO=[];this.vF=[];this.Qp=[];this.CZ=0;this.lr=!1;this.q5=new Set;this.Ln=new Set;this.ev=new Set;this.qk=new Set;this.lF=this.Yk=0;this.q0=this.fn=!1;this.Ae=this.j="";this.yv=null;this.logger=new g.cb("dai");this.fC={Ht5:function(){return e.U}, lN:function(){return e.G.fC.lN()}, R1v:function(){return e.j}, Tar:function(U){e.onCueRangeEnter(e.U.get(U))}, p$5:function(U){e.onCueRangeExit(e.U.get(U))}, BJf:function(U,b){e.U.set(U,b)}, OwO:function(U){e.Ae=U}, D0:function(){return e.D0()}, JWk:function(U){return e.G.U.get(U)}, Jsv:function(){return e.yv}, d1x:function(){return e.G.G}}; this.playback.getPlayerType();this.playback.Go(this);this.aU=this.Pv.uF();g.C(this,this.Fw);g.C(this,this.events);g.C(this,this.L);this.events.W(this.api,g.Sh("serverstitchedcuerange"),this.onCueRangeEnter);this.events.W(this.api,g.lG("serverstitchedcuerange"),this.onCueRangeExit);Yi(this.app.v3(),this.playback,!1)}; EaN=function(d,q,T,Y,e,U,b,J,F){if(d.Pv.N("html5_ignore_ads_after_noadresponse")&&F&&d.xx.has(F))b6(d,{reason:"addafternoad",cueid:F});else{F=HD1(d,U,U+e);d.B&&d.oN({adaftto:1});T||d.oN({missadcon:1,enter:U,len:e,aid:J});d.T&&!d.T.u_&&(d.T.u_=J);d.q0&&d.oN({adfbk:1,enter:U,len:e,aid:J});var N=d.playback;U===b&&!e&&d.Pv.N("html5_allow_zero_duration_ads_on_timeline")&&d.oN({attl0d:1});U>b&&b6(d,{reason:"enterTime_greater_than_return",PG:U,lC:b});var R=N.BG()*1E3;UN&&b6(d,{reason:"parent_return_greater_than_content_duration",lC:b,uiv:N});(N=RLN(d.G,U))&&N.lC>U&&QvY(d,q.video_id||"",U,b,N);if(F&&N)for(R=0;R=0)for(var e=q*1E3,U=Y;U<=Y+1&&U=b.PG-T*1E3&&e<=b.lC+T*1E3)return{vK:b,bI:q}}return{vK:void 0,bI:q}}; ZDn=function(d,q){var T="";(q=AOn(d,q))&&(T=q.getId());return T?d.G.dk({cpn:T}):void 0}; AOn=function(d,q){if(d.Ae){var T=d.U.get(d.Ae);if(T&&T.start-200<=q&&T.end+200>=q)return T}d=g.E(d.U.values());for(T=d.next();!T.done;T=d.next())if(T=T.value,T.start<=q&&T.end>=q)return T}; yOg=function(d,q,T){var Y=d.AF||d.app.Lf().getPlayerState();se(d,!0);d.playback.seekTo(q,T);d=d.app.Lf();q=d.getPlayerState();Y.isOrWillBePlaying()&&!q.isOrWillBePlaying()?d.playVideo():Y.isPaused()&&!q.isPaused()&&d.pauseVideo()}; se=function(d,q){d.kx=NaN;d.Bv=null;d.Fw.stop();d.rO&&q&&d.rO.e_();d.AF=null;d.rO=null}; BH1=function(d){var q=q===void 0?-1:q;var T=T===void 0?Infinity:T;for(var Y=[],e=g.E(d.G.G),U=e.next();!U.done;U=e.next())U=U.value,(U.PGT)&&Y.push(U);d.G.G=Y;Y=g.E(d.U.values());for(e=Y.next();!e.done;e=Y.next())e=e.value,e.start>=q&&e.end<=T&&(d.playback.removeCueRange(e),d.U.delete(e.getId()),d.oN({rmAdCR:1}));Y=Ja(d,q/1E3);q=Y.vK;Y=Y.bI;q&&(Y=Y*1E3-q.PG,tcY(d,q,Y,q.PG+Y),Y=d.U.get(q.cpn))&&(Y.start=q.PG,Y.end=q.PG+q.durationMs);if(q=Ja(d,T/1E3).vK){var b;Y="playback_timelinePlaybackId_"+ q.HG+"_video_id_"+((b=q.videoData)==null?void 0:b.videoId)+"_durationMs_"+q.durationMs+"_enterTimeMs_"+q.PG+"_parentReturnTimeMs_"+q.lC;d.EP("Invalid_clearEndTimeMs_"+T+"_that_falls_during_"+Y+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; KmX=function(d){d.UD.clearAll();d.U.clear();d.G.clear();d.S.clear();d.dO=[];d.X=null;d.xx.clear();d.K=[];d.wO=[];d.vF=[];d.Qp=[];d.q5.clear();d.Ln.clear();d.ev.clear();d.qk.clear();d.B=!1;d.CZ=0;d.lr=!1;d.Yk=0;d.lF=0;d.fn=!1;d.q0=!1;d.j="";VUj(d.app.v3());Yi(d.app.v3(),d.playback,!1);d.z2.clear();d.L.isActive()&&Xh(d)}; tcY=function(d,q,T,Y){q.durationMs=T;q.lC=Y;(Y=d.z2.get(q.cpn))?Y.lV(T/1E3):d.oN({nop_d:q.cpn})}; kvn=function(d,q,T,Y,e,U){if(!d.q0)if(g.GvD(d,T))d.oN({gdu:"undec",seg:T,itag:e});else if(q=Lmn(d,q,T,Y,U),!(d.playback.getVideoData().y5()&&(q==null?0:q.XD)))return q}; Lmn=function(d,q,T,Y,e){var U=d.S.get(T);if(!U){if(U=Phf(d,q))return U;q=d.V9(T-1,Y!=null?Y:2);if(e)return d.oN({misscue:e,sq:T,type:Y,prevsstate:q==null?void 0:q.lZ,prevrecord:d.S.has(T-1)}),d.S.get(T-1);if((q==null?void 0:q.lZ)===2)return d.oN({adnf:1,sq:T,type:Y,prevrecord:d.S.has(T-1)}),d.S.get(T-1)}return U}; Phf=function(d,q){q+=d.il();if(d.playback.getVideoData().y5())a:{var T=1;T=T===void 0?0:T;var Y=q*1E3;d=g.E(d.G.G);for(var e=d.next();!e.done;e=d.next()){e=e.value;var U=e.ou?e.ou*1E3:e.PG;if(Y>=e.PG-T*1E3&&Y<=U+e.durationMs+T*1E3){Y={vK:e,bI:q};break a}}Y={vK:void 0,bI:q}}else Y=Ja(d,q),((T=Y)==null?0:T.vK)||(Y=Ja(d,q,1));var b;return(b=Y)==null?void 0:b.vK}; Wmj=function(d,q){q=q===void 0?"":q;var T=Bx(q)||void 0;if(!q||!T){var Y;d.oN({adcfg:(Y=q)==null?void 0:Y.length,dcfg:T==null?void 0:T.length})}return T}; ChX=function(d){for(var q=g.E(d.U.values()),T=q.next();!T.done;T=q.next())d.playback.removeCueRange(T.value);d.U.clear();d.UD.clearAll()}; u9D=function(d,q,T,Y,e,U,b){if(q&&T){d.Ae=T.cpn;d.FZ(T.cpn,T.PG/1E3);aE6(d,T);var J=jvn(d,"a2a",T);d.oN(J);d.Yk++;d.playback.JP(q,T,Y||0,e||0,!!U,!!b)}else d.oN({misspbkonadtrans:1,enter:(T==null?void 0:T.cpn)||"",exit:(q==null?void 0:q.cpn)||"",seek:U,skip:b})}; $i=function(d,q,T){if(T===void 0||!T){T=g.E(d.dO);for(var Y=T.next();!Y.done;Y=T.next()){Y=Y.value;if(q>=Y.start&&q<=Y.end)return;if(q===Y.end+1){Y.end+=1;return}}d.dO.push(new $rn(q))}}; g.GvD=function(d,q){d=g.E(d.dO);for(var T=d.next();!T.done;T=d.next())if(T=T.value,q>=T.start&&q<=T.end)return!0;return!1}; Drg=function(d,q,T){var Y;if(Y=d.playback.getVideoData().y5()||d.Pv.N("html5_ssdai_extent_last_unfinished_ad_cue_range"))Y=(Y=d.G.dk({cpn:q}))&&Y.UP?(d=d.G.U.get(Y==null?void 0:Y.UP))&&d.slice(-1)[0].cpn===q:!1;return Y&&T===2?1E3:0}; QvY=function(d,q,T,Y,e){var U;q={reason:"overlapping_playbacks",I8v:q,PG:T,lC:Y,tNv:e.HG,z2g:((U=e.videoData)==null?void 0:U.videoId)||"",yWg:e.durationMs,QsZ:e.PG,MNk:e.lC};b6(d,q)}; b6=function(d,q,T){d.playback.dn(q,T)}; wQI=function(d,q){var T=[];d=d.G.U.get(q);if(!d)return[];d=g.E(d);for(q=d.next();!q.done;q=d.next())q=q.value,q.cpn&&T.push(q.cpn);return T}; fEj=function(d,q,T){var Y=0;d=d.G.U.get(T);if(!d)return-1;d=g.E(d);for(T=d.next();!T.done;T=d.next()){if(T.value.cpn===q)return Y;Y++}return-1}; zLg=function(d,q){var T=0;d=d.G.U.get(q);if(!d)return 0;d=g.E(d);for(q=d.next();!q.done;q=d.next())q=q.value,q.durationMs!==0&&q.lC!==q.PG&&T++;return T}; iDj=function(d,q,T){var Y=!1;if(T=d.G.U.get(T)){T=g.E(T);for(var e=T.next();!e.done;e=T.next())e=e.value,e.durationMs!==0&&e.lC!==e.PG&&(e=e.cpn,q===e&&(Y=!0),Y&&!d.Ln.has(e)&&(d.oN({decoratedAd:e}),d.Ln.add(e)))}}; hLg=function(d){d.aU&&d.oN({adf:"0_"+((new Date).getTime()/1E3-d.lF)+"_isTimeout_"+d.B})}; HD1=function(d,q,T){if(d.K.length)for(var Y=g.E(d.K),e=Y.next(),U={};!e.done;U={Hs:void 0},e=Y.next()){U.Hs=e.value;e=U.Hs.startSecs*1E3;var b=U.Hs.sS*1E3+e;if(q>e&&qe&&T0?d:0}else d.D0().videoData.ST=d.playback.getCurrentTime()}; mrf=function(d){d.qk.add(d.j);d.j="";d.lr=!1}; dT_=function(d,q,T,Y){g.W.call(this);var e=this;this.api=d;this.Pv=q;this.G=T;this.app=Y;this.S=new Map;this.U=[];this.j=this.L=null;this.lr=NaN;this.X=this.T=this.K=null;this.B=new g.f9(function(){VcX(e,e.lr,e.K||void 0)}); this.UD=[];this.yv=new g.f9(function(){var U=e.UD.pop();if(U){var b=U.HG,J=U.playerVars;U=U.playerType;J&&(J.prefer_gapless=!0,e.api.preloadVideoByPlayerVars(J,U,NaN,"",b),e.UD.length&&g.zh(e.yv,4500))}}); this.events=new g.aI(this);this.fC={nyD:function(){return e.U}}; this.G.getPlayerType();g.C(this,this.B);g.C(this,this.yv);g.C(this,this.events);this.events.W(this.api,g.Sh("childplayback"),this.onCueRangeEnter);this.events.W(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.W(this.api,"presentingplayerstatechange",this.h0)}; eCD=function(d,q,T,Y,e,U){var b=q.cpn,J=q.docid||q.video_id||q.videoId||q.id,F=d.G;U=U===void 0?e+Y:U;if(e>U)return NU(d,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+U.toFixed(3),b,J),"";var N=F.BG()*1E3;if(eN)return F="returnAfterDuration parentReturnTimeMs="+U.toFixed(3)+" is greater than parentDurationMs="+N+". And timestampOffset in seconds is "+ F.mz(),NU(d,F,b,J),"";N=null;for(var R=g.E(d.U),x=R.next();!x.done;x=R.next()){x=x.value;if(e>=x.PG&&ex.PG)return NU(d,"overlappingReturn",b,J),"";if(U===x.PG)return NU(d,"outOfOrder",b,J),"";e===x.lC&&(N=x)}b="cs_childplayback_"+ql1++;J={SF:RU(Y,!0),yP:Infinity,target:null};var y={HG:b,playerVars:q,playerType:T,durationMs:Y,PG:e,lC:U,Jv:J};d.U=d.U.concat(y).sort(function(a,p){return a.PG-p.PG}); N?ToY(d,N,{SF:RU(N.durationMs,!0),yP:N.Jv.yP,target:y}):(q={SF:RU(e,!1),yP:e,target:y},d.S.set(q.SF,q),F.addCueRange(q.SF));q=!0;if(d.G===d.app.Lf()&&(F=F.getCurrentTime()*1E3,F>=y.PG&&Fq)break;if(U>q)return{vK:Y,bI:q-e};T=U-Y.lC/1E3}return{vK:null,bI:q-T}}; VcX=function(d,q,T){T=T===void 0?{}:T;var Y=d.X||d.app.Lf().getPlayerState();ha(d,!0);q=isFinite(q)?q:d.G.d4();var e=JhI(d,q);q=e.bI;var U=(e=e.vK)&&!xi(d,e)||!e&&d.G!==d.app.Lf(),b=q*1E3;b=d.j&&d.j.start<=b&&b<=d.j.end;!U&&b||y3(d);e?Yl6(d,e,q,T,Y):sGY(d,q,T,Y)}; sGY=function(d,q,T,Y){var e=d.G;e!==d.app.Lf()&&d.app.xI();e.seekTo(q,Object.assign({},{b$:"application_timelinemanager"},T));$T7(d,Y)}; Yl6=function(d,q,T,Y,e){var U=xi(d,q);if(!U){q.playerVars.prefer_gapless=!0;var b=new g.yM(d.Pv,q.playerVars);b.HG=q.HG;d.api.ym(b,q.playerType)}b=d.app.Lf();U||b.addCueRange(q.Jv.SF);b.seekTo(T,Object.assign({},{b$:"application_timelinemanager"},Y));$T7(d,e)}; $T7=function(d,q){d=d.app.Lf();var T=d.getPlayerState();q.isOrWillBePlaying()&&!T.isOrWillBePlaying()?d.playVideo():q.isPaused()&&!T.isPaused()&&d.pauseVideo()}; ha=function(d,q){d.lr=NaN;d.K=null;d.B.stop();d.T&&q&&d.T.e_();d.X=null;d.T=null}; xi=function(d,q){d=d.app.Lf();return!!d&&d.getVideoData().HG===q.HG}; gR7=function(d){var q=d.U.find(function(e){return xi(d,e)}); if(q){var T=d.app.Lf();y3(d);var Y=new g.EX(8);q=Xfj(d,q)/1E3;sGY(d,q,{},Y);T.oU("forceParentTransition",{childPlayback:1});d.G.oU("forceParentTransition",{parentPlayback:1})}}; NoQ=function(d,q,T){q=q===void 0?-1:q;T=T===void 0?Infinity:T;for(var Y=q,e=T,U=g.E(d.S),b=U.next();!b.done;b=U.next()){var J=g.E(b.value);b=J.next().value;J=J.next().value;J.yP>=Y&&J.target&&J.target.lC<=e&&(d.G.removeCueRange(b),d.S.delete(b))}Y=q;e=T;U=[];b=g.E(d.U);for(J=b.next();!J.done;J=b.next())if(J=J.value,J.PG>=Y&&J.lC<=e){var F=d;F.L===J&&y3(F);xi(F,J)&&F.app.xI()}else U.push(J);d.U=U;Y=JhI(d,q/1E3);q=Y.vK;Y=Y.bI;q&&(Y*=1E3,FwD(d,q,Y,q.lC===q.PG+q.durationMs?q.PG+Y:q.lC));(q=JhI(d,T/1E3).vK)&& NU(d,"Invalid clearEndTimeMs="+T+" that falls during playback={timelinePlaybackId="+(q.HG+" video_id="+q.playerVars.video_id+" durationMs="+q.durationMs+" enterTimeMs="+q.PG+" parentReturnTimeMs="+q.lC+"}.Child playbacks can only have duration updated not their start."))}; FwD=function(d,q,T,Y){q.durationMs=T;q.lC=Y;Y={SF:RU(T,!0),yP:T,target:null};ToY(d,q,Y);xi(d,q)&&d.app.Lf().getCurrentTime()*1E3>T&&(q=Xfj(d,q)/1E3,T=d.app.Lf().getPlayerState(),sGY(d,q,{},T))}; NU=function(d,q,T,Y){d.G.oU("timelineerror",{e:q,cpn:T?T:void 0,videoId:Y?Y:void 0})}; xTI=function(d){d&&d!=="web"&&RCD.includes(d)}; H1=function(){g.W.call(this);this.G=new VW(5,null);g.C(this,this.G);this.U=new VW(15,null);g.C(this,this.U)}; ffD=function(d,q){return q?!!d.G.get(q):!1}; yhY=function(d,q){d.dataset.version=q}; QGg=function(d){g.f.call(this,{Y:"div",hF:["html5-video-player"],Z:{tabindex:d.C().disableOrganicUi?"":"-1",id:d.webPlayerContextConfig.rootElementId},V:[{Y:"div",D:g.Eo.VIDEO_CONTAINER,Z:{"data-layer":"0"}}]});var q=this;this.app=d;this.t6=this.Qv(g.Eo.VIDEO_CONTAINER);this.iY=new g.WB(0,0,0,0);this.Cn=null;this.z8=new g.WB(0,0,0,0);this.hD=this.ek=this.Eb=NaN;this.aR=this.Qc=this.Cg=this.wu=!1;this.Lu=NaN;this.yB=!1;this.aE=null;this.UL=function(){q.element.focus({preventScroll:!0})}; this.ZI=function(){q.app.mZ.publish("playerUnderlayVisibilityChange","visible");q.Cn.classList.remove(g.Eo.VIDEO_CONTAINER_TRANSITIONING);q.Cn.removeEventListener(tM,q.ZI);q.Cn.removeEventListener("transitioncancel",q.ZI)}; this.rg=this.po=!1;var T=this.element.addEventListener,Y=this.element.removeEventListener;this.addEventListener=function(U,b,J){T.apply(q.element,[U,b,J])}; this.removeEventListener=function(U,b,J){Y.apply(q.element,[U,b,J])}; var e=d.C();e.transparentBackground&&this.iG("ytp-transparent");e.controlsType==="0"&&this.iG("ytp-hide-controls");g.d9(this.element,"ytp-exp-bottom-control-flexbox");g.d9(this.element,"ytp-modern-caption");e.N("enable_new_paid_product_placement")&&!g.an(e)&&g.d9(this.element,"ytp-exp-ppp-update");e.N("html5_enable_ssap")&&g.d9(this.element,"ytp-ssap");g.d9(this.element,"ytp-livebadge-color");if(e.N("delhi_modern_web_player"))switch(g.d9(this.element,"ytp-delhi-modern"),e.N("delhi_modern_web_player_icons")&& g.d9(this.element,"ytp-delhi-modern-icons"),Md(e.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.d9(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.d9(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.d9(this.element,"ytp-delhi-modern-with-exclusion")}yhY(this.element,hC_(d));this.Ww=!1;this.lE=new g.zP(NaN,NaN);HxI(this);this.W(d.mZ,"onMutedAutoplayChange",this.onMutedAutoplayChange);d=g.Yv(e.experiments,"html5_android_mweb_resize_delay"); d>0&&(this.RS=new g.f9(function(){return void q.resize()},d),g.C(this,this.RS))}; HxI=function(d){function q(b){d.Cn&&Q3(d);MU(d)!==d.yB&&d.resize();d.app.C().N("web_enable_smart_zoom")&&d.Cu&&(b.state.isPaused()?d.Cu.pause():g.gs(b,8)&&d.Cu.playState==="paused"&&d.Cu.play())} function T(b,J){d.qF(b,J)} function Y(b){b.getVideoData()&&d.updateVideoData(b.getVideoData())} function e(){d.z8=new g.WB(0,0,0,0);d.iY=new g.WB(0,0,0,0)} var U=d.app.mZ;U.addEventListener("initializingmode",e);U.addEventListener("videoplayerreset",Y);U.addEventListener("videodatachange",T);U.addEventListener("presentingplayerstatechange",q);d.addOnDisposeCallback(function(){U.removeEventListener("initializingmode",e);U.removeEventListener("videoplayerreset",Y);U.removeEventListener("videodatachange",T);U.removeEventListener("presentingplayerstatechange",q)})}; chY=function(d){var q=d.app.Lf();if(q=q?q.getVideoData():null){if(g.VM(q)||g.dm(q)||g.qC(q))return 16/9;if(pt(q)&&q.j.G)return d=q.j.videoInfos[0].video,M3_(d.width,d.height)}return(d=d.Cn)?M3_(d.videoWidth,d.videoHeight):16/9}; ERj=function(d,q,T,Y){var e=T,U=M3_(q.width,q.height);d.wu?e=TU?{width:q.width,height:q.width/e,aspectRatio:e}:ee?d.width=d.height*T:TF;if(MU(d)){var N=chY(d);var R=isNaN(N)||g.DP||Ro&&g.F8||F;uR&&!g.WZ(601)?N=e.aspectRatio:R=R||U.controlsType==="3";R?F?(R=U.N("place_shrunken_video_on_left_of_player")?16:d.getPlayerSize().width-q.width-16,N=Math.max((d.getPlayerSize().height-q.height)/2,0),R=new g.WB(R,N,q.width, q.height),d.Cn.style.setProperty("border-radius","12px")):R=new g.WB(0,0,q.width,q.height):(T=e.aspectRatio/N,R=new g.WB((q.width-e.width/T)/2,(q.height-e.height)/2,e.width/T,e.height),T===1&&g.F8&&(N=R.width-q.height*N,N>0&&(R.width+=N,R.height+=N)));g.ep(d.element,"ytp-fit-cover-video",Math.max(R.width-e.width,R.height-e.height)<1);if(J||d.Ww)d.Cn.style.display="";d.yB=!0}else{R=-q.height;uR?R*=window.devicePixelRatio:g.AJ&&(R-=window.screen.height);R=new g.WB(0,R,q.width,q.height);if(J||d.Ww)d.Cn.style.display= "none";d.yB=!1}CT(d.z8,R)||(d.z8=R,g.XW(U)?(d.Cn.style.setProperty("width",R.width+"px","important"),d.Cn.style.setProperty("height",R.height+"px","important")):g.or(d.Cn,R.getSize()),Y=new g.wt(R.left,R.top),g.mZ(d.Cn,Math.round(Y.x),Math.round(Y.y)),Y=!0);q=new g.WB((q.width-e.width)/2,(q.height-e.height)/2,e.width,e.height);CT(d.iY,q)||(d.iY=q,Y=!0);g.Dv(d.Cn,"transform",T===1?"":"scaleX("+T+")");b&&F!==d.Qc&&(F&&(d.Cn.addEventListener(tM,d.ZI),d.Cn.addEventListener("transitioncancel",d.ZI),d.Cn.classList.add(g.Eo.VIDEO_CONTAINER_TRANSITIONING)), d.Qc=F,d.app.mZ.publish("playerUnderlayVisibilityChange",d.Qc?"transitioning":"hidden"));return Y}; Ahf=function(d){d.po=!d.po;d.rg=!0;d.element.classList.toggle("ytp-retro-player",d.po);d.resize();d.rg=!1;d.app.mZ.gO("onRetroModeChanged",d.po)}; pfQ=function(){this.csn=g.Q0();this.clientPlaybackNonce=null;this.elements=new Set;this.j=new Set;this.G=new Set;this.U=new Set}; Zxf=function(d){if(d.csn!==g.Q0())if(d.csn==="UNDEFINED_CSN")d.csn=g.Q0();else{var q=g.Q0(),T=g.Ha();if(q&&T){d.csn=q;for(var Y=g.E(d.elements),e=Y.next();!e.done;e=Y.next())(e=e.value.visualElement)&&e.isClientVe()&&q&&T&&(g.RD("combine_ve_grafts")?lq(mx(),e,T):g.iF(g.un)(void 0,q,T,e))}if(q)for(d=g.E(d.G),T=d.next();!T.done;T=d.next())(T=T.value.visualElement)&&T.isClientVe()&&g.va(q,T)}}; g.c1=function(d,q,T,Y){g.W.call(this);var e=this;this.logger=new g.cb("App");this.BE=this.H3=!1;this.YK={};this.h4=[];this.IY=!1;this.Ca=null;this.intentionalPlayback=!1;this.lA=!0;this.OV=!1;this.Tg=this.FD=this.rC=null;this.oL=!0;this.mediaElement=this.IN=null;this.DA=NaN;this.l0=!1;this.mM=this.Vu=this.gs=this.screenLayer=this.playlist=null;this.Xx=[];this.dC=0;this.fC={v3:function(){return e.MC}, uqf:function(){return e.gs}}; this.logger.debug("constructor begin");if(!T)throw Error("b/179532961");this.JS=(q==null?void 0:q.args)||{};this.webPlayerContextConfig=T;s1I();q=this.JS;this.Pv=new Rn(q,T,T.canaryState,Y,this);g.C(this,this.Pv);eL1(this.Pv);T=bDQ(this.Pv);this.Pv.uF()&&this.lW("h5vcc",T);this.Pv.experiments.Wv("jspb_serialize_with_worker")&&fAN();this.Pv.experiments.Wv("gzip_gel_with_worker")&&L$2();this.Pv.U&&!Ox7&&(window.addEventListener(le?"touchstart":"click",G4j,{capture:!0,passive:!0}),Ox7=!0);this.N("html5_onesie")&& (this.cq=new kW(this.Pv),g.C(this,this.cq));this.Zv=vL(TF(this.Pv)&&!0,q.enablesizebutton);this.ij=vL(!1,q.player_wide);this.visibility=new o66;g.C(this,this.visibility);this.N("web_log_theater_mode_visibility")&&this.mp(vL(!1,q.player_wide));this.H3=vL(!1,q.external_list);this.events=new g.aI(this);g.C(this,this.events);this.N("start_client_gcf")&&(aC(Ou(),{Mn:TN,xj:Ug2()}),this.sA=Ou().resolve(TN),Jx7(this.sA));this.kXv=new nV;g.C(this,this.kXv);this.KW=new pfQ;T=new rm;this.mZ=new g.fV(this,T); g.C(this,this.mZ);this.template=new QGg(this);g.C(this,this.template);this.appState=1;this.FM=nRN(this);g.C(this,T);T={};this.Pz=(T.internalvideodatachange=this.ZA,T.playbackready=this.vxr,T.playbackstarted=this.Xvg,T.statechange=this.qDZ,T);this.JM=new jz(this.mZ);this.Am=rhn(this);T=this.Pv.X;!1!==T&&this.lW("badps",{hbp:T,hostname:window.location.hostname,ps:this.Pv.playerStyle});this.rz=new QUg(this.Pv,this.Am);this.mZ.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||WK6(this.Am))&& t3Q(this);T=10;g.ho(this.Pv)&&(T=3);Em(this.Pv)&&(T=g.Yv(this.Pv.experiments,"tvhtml5_unplugged_preload_cache_size"));this.MC=new g.qU(this.mZ,T);T=BoN(this);this.MC.Oh(T);Kw6(this);T={};this.Op=(T.airplayactivechange=this.eYk,T.airplayavailabilitychange=this.nBU,T.beginseeking=this.FzO,T.sabrCaptionsDataLoaded=this.wFv,T.endseeking=this.x5O,T.internalAbandon=this.gBO,T.internalaudioformatchange=this.NzO,T.internalvideodatachange=this.oc5,T.internalvideoformatchange=this.iCO,T.liveviewshift=this.Wz2, T.playbackstalledatstart=this.UCf,T.progresssync=this.Vvf,T.onAbnormalityDetected=this.EBU,T.onSnackbarMessage=this.l$5,T.onLoadProgress=this.BzF,T.SEEK_COMPLETE=this.P$U,T.SEEK_TO=this.Gqg,T.onVideoProgress=this.TkD,T.onLoadedMetadata=this.Znk,T.onAutoplayBlocked=this.Lzk,T.onPlaybackPauseAtStart=this.cA5,T.playbackready=this.CFv,T.statechange=this.T4,T.newelementrequired=this.iR,T.heartbeatparams=this.AAZ,T.videoelementevent=this.jdr,T.drmoutputrestricted=this.D55,T.signatureexpired=this.f$O,T.nonfatalerror= this.Onf,T.reloadplayer=this.KzU,T);this.t3=new g.aI(this);g.C(this,this.t3);this.z0=new H1;g.C(this,this.z0);this.sy=this.mW=-1;this.NZ=new g.f9(this.template.resize,16,this.template);g.C(this,this.NZ);this.Rd=new dT_(this.mZ,this.Pv,this.UM(),this);this.p8=new mN(this);g.C(this,this.p8);this.xe=new fA(this);g.C(this,this.xe);xTI(this.Pv.G.c);this.events.W(this.mZ,g.Sh("appapi"),this.dkf);this.events.W(this.mZ,g.lG("appapi"),this.JFv);this.events.W(this.mZ,g.Sh("appprogressboundary"),this.I$D);this.events.W(this.mZ, g.lG("applooprange"),this.A2);this.events.W(this.mZ,"presentingplayerstatechange",this.h0);this.events.W(this.mZ,"resize",this.qFk);this.template.IU(TO(document,d));this.events.W(this.mZ,"offlineslatestatechange",this.RYD);this.events.W(this.mZ,"sabrCaptionsTrackChanged",this.A1w);this.events.W(this.mZ,"sabrCaptionsBufferedRangesUpdated",this.xCr);this.Am.J.C().t0&&kr(this.Am,"offline");this.Pv.AF&&g.Oi("ux",g.Dk);d=g.Yv(this.Pv.experiments,"html5_defer_fetch_att_ms");this.XN=new g.f9(this.fYw,d, this);g.C(this,this.XN);this.GX().LH()&&(g.nW()&&this.GX().K.push("remote"),GfD(this));this.rz.tick("fs");Lwg(this);this.Pv.AF&&kr(this.Am,"ux",!0);g.dn(this.Am.J.C())&&kr(this.Am,"embed");this.N("web_player_sentinel_is_uniplayer")||g.OL(new g.CW("Player experiment flags missing","web_player_sentinel_is_uniplayer"));d=this.N("web_player_sentinel_yt_experiments_sync");T=g.RD("web_player_sentinel_yt_experiments_sync");d!==T&&g.OL(new g.CW("b/195699950",{yt:d,player:T}));this.Cr=kf6(this);if(d=g.Yv(this.Pv.experiments, "html5_block_pip_safari_delay"))this.Ey=new g.f9(this.cN,d,this),g.C(this,this.Ey);Zq=this.Pv.ev;this.mZ.publish("applicationInitialized");this.logger.debug("constructor end")}; kf6=function(d){function q(T){T.stack&&T.stack.indexOf("player")!==-1&&d.Lf().EU(T)} n1.subscribe("handleError",q);fs.push(q);return function(){n1.unsubscribe("handleError",q);var T=fs.indexOf(q);T!==-1&&fs.splice(T,1)}}; BoN=function(d){var q=new g.yM(d.Pv,d.JS);d.mZ.publish("initialvideodatacreated",q);return Ee(d,1,q,!1)}; Kw6=function(d){var q=d.UM();q.setPlaybackRate(d.Pv.T?1:P1_(d,Number(g.Zs("yt-player-playback-rate"))||1));q.Ts(d.Pz,d);q.Sb()}; rhn=function(d){var q="",T=hC_(d);T.indexOf("//")===0&&(T=d.Pv.protocol+":"+T);var Y=T.lastIndexOf("/base.js");Y!==-1&&(q=T.substring(0,Y+1));if(T=Error().stack)if(T=T.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))T=T[1],T.includes(q)||g.OL(Error("Player module URL mismatch: "+(T+" vs "+q+".")));q=new LKD(d.mZ,q);T={};krg(q,(T.destroyed=function(){d.onApiChange()},T)); return q}; nRN=function(d){if(d.Pv.storeUserVolume){d=g.Zs("yt-player-volume")||{};var q=d.volume;d={volume:isNaN(q)?100:g.Cn(Math.floor(q),0,100),muted:!!d.muted}}else d={volume:100,muted:d.Pv.mute};return d}; jk=function(d){d.mediaElement=d.Pv.deviceIsAudioOnly?new g.Vk(g.FE("AUDIO")):wl.pop()||new g.Vk(g.FE("VIDEO"));g.C(d,d.mediaElement);d.Lf().setMediaElement(d.mediaElement);try{d.Pv.qC?(d.Vu&&d.events.t1(d.Vu),d.Vu=d.events.W(d.mediaElement,"volumechange",d.aQZ)):(d.mediaElement.J4(d.FM.muted),d.mediaElement.setVolume(d.FM.volume/100))}catch(e){d.Kj("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g, "_")));return}g.jX(d.t3);WwX(d);var q=d.template,T=d.mediaElement.tA();q.Cn=T;q.aR=!1;q.Cn.parentNode||yp(q.t6,q.Cn,0);q.z8=new g.WB(0,0,0,0);a1D(q);Q3(q);T=q.Cn;g.d9(T,"video-stream");g.d9(T,g.Eo.MAIN_VIDEO);var Y=q.app.C();Y.B3&&T.setAttribute("data-no-fullscreen","true");Y.N("html5_local_playsinline")?"playsInline"in HH()&&(T.playsInline=!0):Y.rK&&(T.setAttribute("webkit-playsinline",""),T.setAttribute("playsinline",""));Y.YH&&q.Cn&&q.W(T,"click",T.play,T);try{d.mediaElement.activate()}catch(e){d.Kj("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g,"_")))}}; ulQ=function(d){if(!C1g(d)){var q=d.UM().WG();q&&(q=q.Gf(),q instanceof Promise&&q.catch(function(){})); aU(d,rC(d.getPlayerStateObject()))}}; WwX=function(d){var q=d.mediaElement;EJ()?d.t3.W(q,"webkitpresentationmodechanged",d.WcO):window.document.pictureInPictureEnabled&&(d.t3.W(q,"enterpictureinpicture",function(){d.Bx(!0)}),d.t3.W(q,"leavepictureinpicture",function(){d.Bx(!1)})); fZ&&(d.t3.W(q,"webkitbeginfullscreen",function(){d.Cp(3)}),d.t3.W(q,"webkitendfullscreen",function(){d.Cp(0)}))}; DT2=function(d,q){var T=q.getPlayerType(),Y=d.MC.j[T]||null;q!==d.UM()&&q!==Y&&(Y==null||Y.dispose(),d.MC.j[T]=q)}; wf2=function(d,q){q=q===void 0?!0:q;d.logger.debug("start clear presenting player");var T;if(T=d.mM){T=d.mM;var Y=d.mediaElement;T=!!Y&&Y===T.mediaElement}T&&(d.Hf(),jk(d));T=d.Lf();T.Hf(!q);T.jC(d.Op,d);T.getPlayerType()!==1&&T.dispose();q=d.MC;q.U=q.G;Tr(q);d.logger.debug("finish clear presenting player")}; g.f1j=function(d,q,T,Y){var e=d.rz;q===2&&(e=new QUg(d.Pv));return new g.JG(d.Pv,q,e,d.template,function(U,b,J){d.mZ.publish(U,b,J)},function(){return d.mZ.getVisibilityState()},d.visibility,d,T,Y)}; Ee=function(d,q,T,Y,e){d=g.f1j(d,q,T,e);d=new g.Uc(d);Y&&d.Sb();return d}; Aa=function(d,q){return d.ZY(q)?d.UM():q}; pl=function(d,q){var T=d.Lf();return q===d.UM()&&d.ZY(q)&&d.ZY(T)?T:q}; I1Y=function(d){d.logger.debug("start application playback");if(d.UM().getPlayerState().isError())d.logger.debug("start application playback done, player in error state");else{var q=Zj(d);d.GX().isLoaded();q&&d.Vj(6);zC6(d);mU6(d.Am)||ixI(d)}}; ixI=function(d){if(!Zj(d)){var q=Wc(d.Am);q&&!q.created&&P6j(d.Am)&&(d.logger.debug("reload ad module"),q.create())}}; zC6=function(d){d.logger.debug("start presenter playback");var q=d.getVideoData(),T=d.Am;mU6(T)||T.AV();!r6&&T.J.N("html5_allow_asmjs")&&dkN(T);kr(T,"embed");kr(T,"kids");kr(T,"remote");kr(T,"miniplayer");kr(T,"offline");kr(T,"unplugged");kr(T,"ypc",!1,!0);kr(T,"ypc_clickwrap",!1,!0);kr(T,"yto",!1,!0);kr(T,"webgl",!1,!0);SeX(T)||(kr(T,"captions",!0),kr(T,"endscreen"),T.fB(),kr(T,"creatorendscreen",!0));T.s_();T.J.publish("modulesCreated");d.mZ.publish("videoready",q)}; Oe=function(d){d=d.GX();d.LH();return sF(d)}; Lwg=function(d){d.logger.debug("start prepare initial playback");d.Ku();var q=d.JS;jk(d);d.events.W(window,"resize",d.mCk);var T=d.GX();d.mZ.uv("onVolumeChange",d.FM);if(q&&jUD(q)){var Y=HT(d.Pv);Y&&!d.H3&&(q.fetch=0);var e=g.dn(d.Pv);e&&!d.H3&&(q.fetch=0);nl(d,q);g.dn(d.Pv)&&d.rz.tick("ep_pr_s");if(!Y||d.H3)if(e&&!d.H3)mTQ(d);else if(!T.LH())d.playlist.onReady(function(){ra(d)})}d.D8(d.UM(),!1,!0); g.I(d.UM().getPlayerState(),128)||(q=txf(!d.Pv.deviceIsAudioOnly),q==="fmt.noneavailable"?d.Kj("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):q==="html5.missingapi"?d.Kj(q,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):T&&T.LH()&&Oe(d)&&(d.Pv.yH||d.Pv.lS)?ta(d):T.Qq?d.mZ.mutedAutoplay({durationMode:T.mutedAutoplayDurationMode}):g.Zs("yt-player-playback-on-reload")?(g.Ta("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!d.Pv.yv}),g.pW("yt-player-playback-on-reload",!1), ta(d)):Zi(d.Pv)||Sln(d),g.cT(d.Pv)||Hx(d.Pv)==="MWEB"?(g.zy(g.IY(),function(){B1(d)}),g.zy(g.IY(),function(){rL6()})):(B1(d),rL6()),d.logger.debug("finish prepare initial playback"))}; B1=function(d){if(!d.N("use_rta_for_player"))if(d.N("fetch_att_independently"))g.zh(d.XN);else{var q=d.getVideoData().botguardData;q&&g.eK(q,d.Pv,d.getVideoData().q2||"")}}; Sln=function(d){d.logger.debug("start initialize to CUED mode");d.mZ.publish("initializingmode");d.Vj(2);kr(d.Am,"remote");kr(d.Am,"miniplayer");d.logger.debug("initialized to CUED mode")}; ta=function(d){d.logger.debug("start initialize application playback");var q=d.UM();if(g.I(q.getPlayerState(),128))return!1;q=q.getVideoData();Oe(d)&&d.Pv.lS&&(wl.length&&d.BE?(Kl(d,{muted:!1,volume:d.FM.volume},!1),Gr(d,!1)):wl.length||d.FM.muted||(Kl(d,{muted:!0,volume:d.FM.volume},!1),Gr(d,!0)));Oe(d)&&g.dn(d.Pv)&&q.mutedAutoplay&&(Kl(d,{muted:!0,volume:d.FM.volume},!1),Gr(d,!0));q.rR&&Kl(d,{muted:!0,volume:d.FM.volume},!1);l12(d,1,q,!1);var T=d.UM();d.mZ.publish("initializingmode");d.D8(T);d.Vj(3); var Y;if(!(Y=!d.Pv.bV)){if(Y=d.mM){Y=d.mM;var e=d.mediaElement;Y=!!e&&e===Y.mediaElement}Y=Y&&d.IY}Y&&(d.Hf(),jk(d),T.setMediaElement(d.mediaElement));T.n5();if(g.I(T.getPlayerState(),128))return!1;q.PR||aU(d,3);return d.IY=!0}; Zj=function(d){d=I6(d.Am);return!!d&&d.loaded}; vR6=function(d,q){if(!d.IN)return!1;var T=d.IN.startTimeMs*.001-1,Y=d.IN.endTimeMs*.001;d.IN.type==="repeatChapter"&&Y--;return Math.abs(q-T)<=1E-6||Math.abs(q-Y)<=1E-6||q>=T&&q<=Y}; oRN=function(d){var q=d.Lf();Zu(q.getVideoData())&&!q.Kb()&&(q=Ll(d)*1E3-d.getVideoData().oS,d.N("html5_gapless_new_slr")?(d=d.xe,ki(d.app,"gaplessshortslooprange"),q=new g.Ij(0,q,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(d=d.app.Lf())&&d.addCueRange(q)):d.setLoopRange({startTimeMs:0,endTimeMs:q,type:"shortsLoop"}))}; V3f=function(d){var q=d.UM();if(!(g.I(q.getPlayerState(),64)&&d.GX().isLivePlayback&&d.IN.startTimeMs<5E3)){if(d.IN.type==="repeatChapter"){var T,Y=(T=EC_(d.M5()))==null?void 0:T.u1(),e;T=(e=d.getVideoData())==null?void 0:e.lS;Y instanceof g.ql&&T&&(e=T[hg(T,d.IN.startTimeMs)],Y.renderChapterSeekingAnimation(0,e.title));isNaN(Number(d.IN.loopCount))?d.IN.loopCount=0:d.IN.loopCount++;d.IN.loopCount===1&&d.mZ.gO("innertubeCommand",d.getVideoData().aYr)}Y={b$:"application_loopRangeStart"};if(d.IN.type=== "clips"||d.IN.type==="shortsLoop")Y.seekSource=58;q.seekTo(d.IN.startTimeMs*.001,Y)}}; P1_=function(d,q){var T=d.mZ.getAvailablePlaybackRates();q=Number(q.toFixed(2));d=T[0];T=T[T.length-1];q<=d?q=d:q>=T?q=T:(d=Math.floor(q*100+.001)%5,q=d===0?q:Math.floor((q-d*.01)*100+.001)/100);return q}; Ll=function(d,q){q=d.dk({playerType:q});if(!q)return d.MC.G.Jq();q=Aa(d,q);return P1(d,q.Jq(),q)}; P1=function(d,q,T){if(d.ZY(T)&&(T=T.getVideoData(),!W1(d))){d=d.Rd;for(var Y=g.E(d.U),e=Y.next();!e.done;e=Y.next())if(e=e.value,T.HG===e.HG){q+=e.PG/1E3;break}Y=q;d=g.E(d.U);for(e=d.next();!e.done;e=d.next()){e=e.value;if(T.HG===e.HG)break;var U=e.PG/1E3;if(U1&&(e=!1);if(!d.l0||e!==q){T=T.lock(e?"portrait":"landscape");if(T!=null)T["catch"](function(){}); d.l0=!0}}else d.l0&&(d.l0=!1,T.unlock())}; fl=function(d,q,T){d.mZ.publish(q,T);var Y=g.ho(d.Pv)||g.XW(d.Pv)||g.KG(d.Pv);if(T&&Y){switch(q){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&d.mZ.gO(e,T.map(function(U){return{getId:function(){return this.id}, end:U.end,id:U.getId(),namespace:U.namespace==="ad"?"ad":"",start:U.start,style:U.style,visible:U.visible,markerPositionMs:U.markerPositionMs}}))}}; zr=function(d,q,T,Y,e,U){T=T===void 0?!0:T;var b=d.dk({playerType:e});if(!b||(b.getPlayerType()!==2||d.ZY(b))&&!g.vr(b.getVideoData())){var J=d.MC.Ig;J?J.seekTo(q,{W6:!T,XL:Y,b$:"application",seekSource:U}):(b&&b===d.UM()&&d.IN&&!vR6(d,q)&&d.setLoopRange(null),d.seekTo(q,T,Y,e,U))}}; xWH=function(d,q,T,Y){T&&(d.Hf(),jk(d));T=d.Lf();T.J2(q);var e=d.getVideoData(),U={};U.video_id=e.videoId;U.adformat=e.adFormat;e.isLivePlayback||(U.start=T.getCurrentTime(),U.resume="1");e.isLivePlayback&&kp(e)&&g.xv(d.Pv)&&(U.live_utc_start=T.fH(),U.resume="1");e.z2&&(U.vvt=e.z2);e.X&&(U.vss_credentials_token=e.X,U.vss_credentials_token_type=e.M4);e.oauthToken&&(U.oauth_token=e.oauthToken);U.autoplay=1;U.reload_count=e.q5+1;U.reload_reason=q;e.iq&&(U.unplugged_partner_opt_out=e.iq);e.Vt&&(U.ypc_is_premiere_trailer= e.Vt);e.playerParams&&(U.player_params=e.playerParams);d.loadVideoByPlayerVars(U,void 0,!0,void 0,void 0,Y);q==="signature"&&d.gs&&ixI(d)}; yvj=function(d,q){d.GX().autonavState=q;g.pW("yt-player-autonavstate",q);d.mZ.publish("autonavchange",q)}; hPf=function(d){var q=d.getVideoData().wB,T=d.Pv.Bv,Y=d.isInline()&&!d.getVideoData().Q_,e=d.mediaElement;q||T||Y?e.G6():(e.T6(),Kl(d,d.FM))}; Cl=function(d){var q=Wc(d.M5());q&&q.created&&(d.logger.debug("reset ad module"),q.destroy())}; W1=function(d){return d.getVideoData().enableServerStitchedDai&&!!d.gs}; HL6=function(d,q){q.bounds=d.getBoundingClientRect();for(var T=g.E(["display","opacity","visibility","zIndex"]),Y=T.next();!Y.done;Y=T.next())Y=Y.value,q[Y]=zO(d,Y);q.hidden=!!d.hidden}; hC_=function(d){var q=d.webPlayerContextConfig.trustedJsUrl;return q?Hq(q).toString():d.webPlayerContextConfig.jsUrl}; QAD=function(d,q){var T=d.dk({playerType:1});if(T){if(T.getVideoData().clientPlaybackNonce===q)return T;if((d=d.p8.G)&&d.getVideoData().clientPlaybackNonce===q)return d}return null}; t3Q=function(d){function q(Y){return BN(qWD(d.Am),function(e){return e.MP(Y)})} d.rz.tick("wasm_s");var T=cP7(d.webPlayerContextConfig.wasmModuleUrl,WK6(d.Am)?q:void 0,d.lW.bind(d));T==null||BN(T,function(Y){d.rz.tick(Y.G?"wasm_fa":"wasm_fw")},function(){d.rz.tick("wasm_ferr")}); oKH(d.Pv,T)}; MSn=function(d){return d.name==="TypeError"&&d.stack.includes("/s/player/")&&Gt()<=105}; cv1=function(d){return d.isTimeout?"NO_BID":"ERR_BID"}; EZf=function(){var d=null;GAj().then(function(q){return d=q},function(q){return d=cv1(q)}); return d}; jAj=function(){var d=LK(1E3,"NO_BID");return g.tK(SbX([GAj(),d]).C8(cv1),function(){d.cancel()})}; i6=function(d){return d.zX?g.Gy(g.KW(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; IU=function(d){this.player=d;this.j=this.G=1}; pOH=function(d,q,T,Y,e,U){q.client||(q.client={});d.player.C().N("h5_remove_url_for_get_ad_break")||(q.client.originalUrl=T);var b=q4(T),J=g.sb(T)?!1:!0;(b||J)&&typeof Intl!=="undefined"&&(q.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);J=g.sb(T)?!1:!0;if(b||J||Y!==""){var F={};T=SW(bb(Y)).split("&");var N=new Map;T.forEach(function(R){R=R.split("=");R.length>1&&N.set(R[0].toString(),decodeURIComponent(R[1].toString()))}); N.has("bid")&&(F.bid=N.get("bid"));F.params=[];aCf.forEach(function(R){N.has(R)&&(R={key:R,value:N.get(R)},F.params.push(R))}); Avf(d,F);q.adSignalsInfo=F}q.client.unpluggedAppInfo||(q.client.unpluggedAppInfo={});q.client.unpluggedAppInfo.enableFilterMode=!1;T=e.G.cosver;T!=null&&T!=="cosver"&&(q.client.osVersion=T);T=e.G.cplatform;T!=null&&T!=="cplatform"&&T!==""&&(q.client.platform=T);T=e.G.cmodel;T!=null&&T!=="cmodel"&&(q.client.deviceModel=T);T=e.G.cplayer;T!=null&&T!=="cplayer"&&(q.client.playerType=T);T=e.G.cbrand;T!=null&&T!=="cbrand"&&(q.client.deviceMake=T);q.user||(q.user={});q.user.lockedSafetyMode=!1;(e.N("embeds_web_enable_iframe_api_send_full_embed_url")|| e.N("embeds_enable_autoplay_and_visibility_signals"))&&g.bS(e)&&s5D(q,U,d.player.getPlayerState(1))}; nZ1=function(d,q){var T=!1;if(q==="")return T;q.split(",").forEach(function(Y){var e={},U={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},b="ACTIVE";Y[0]==="!"&&(Y=Y.substring(1),b="INACTIVE");Y=Y.split("-");Y.length<3||(Y[0]in ZLI&&(U.clientName=ZLI[Y[0]]),Y[1]in OLN&&(U.platform=OLN[Y[1]]),U.applicationState=b,U.clientVersion=Y.length>2?Y[2]:"",e.remoteClient=U,d.remoteContexts?d.remoteContexts.push(e):d.remoteContexts=[e],T=!0)}); return T}; tS2=function(d){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in rv1))return!1;d=d.split(RegExp("[:&]"));var q=rv1.FLAG_AUTO_CAPTIONS_DEFAULT_ON,T="f"+(1+Math.floor(q/31)).toString();q=1<=2?b[1]:"";var J=KQ2.test(q),F=GKN.exec(q);F=F!=null&&F.length>=2?F[1]:"";var N=LQ2.exec(q);N=N!=null&&N.length>=2&&!Number.isNaN(Number(N[1]))?Number(N[1]):1;var R=kK_.exec(q);R=R!=null&&R.length>=2?R[1]:"0";var x=gn(d.player.C().XM),y=d.player.getVideoData(1),h=g.mV(y.aU,!0),H="BISCOTTI_ID"in T?T.BISCOTTI_ID:"";pOH(d,h,q,H.toString(),d.player.C(), y);y={splay:!1,lactMilliseconds:T.LACT.toString(),playerHeightPixels:Math.trunc(T.P_H),playerWidthPixels:Math.trunc(T.P_W),vis:Math.trunc(T.VIS),signatureTimestamp:20291,autonavState:i6(d.player.C())};Y&&(Y={},nZ1(Y,T.YT_REMOTE)&&(y.mdxContext=Y));if(Y=PAn.includes(x)?void 0:g.r7("PREF")){for(var a=Y.split(RegExp("[:&]")),p=0,t=a.length;p1&&n[1].toUpperCase()==="TRUE"){h.user.lockedSafetyMode=!0;break}}y.autoCaptionsDefaultOn= tS2(Y)}q=WQX.exec(q);(q=q!=null&&q.length>=2?q[1]:"")&&F&&(h.user.credentialTransferTokens=[{token:q,scope:"VIDEO"}]);q={contentPlaybackContext:y};b={adBlock:Math.trunc(T.AD_BLOCK),params:b,breakIndex:N,breakPositionMs:R,clientPlaybackNonce:T.CPN,topLevelDomain:x,isProxyAdTagRequest:J,context:h,adSignalsInfoString:SW(bb(H.toString())),overridePlaybackContext:q};e!==void 0&&(b.cueProcessedMs=Math.round(e).toString());F&&(b.videoId=F);T.LIVE_TARGETING_CONTEXT&&(b.liveTargetingParams=T.LIVE_TARGETING_CONTEXT); T.AD_BREAK_LENGTH&&(b.breakLengthMs=Math.trunc(T.AD_BREAK_LENGTH*1E3).toString());U&&(b.driftFromHeadMs=U.toString());b.currentMediaTimeMs=Math.round(d.player.getCurrentTime(1)*1E3);(d=d.player.getGetAdBreakContext())&&(b.getAdBreakContext=d);return b}; uSN=function(){IU.apply(this,arguments)}; DW7=function(d,q,T,Y,e){var U=T.II;var b=T.SF;var J=d.player.C().Dc,F=0;T.cueProcessedMs&&b&&!U&&(T=b.end-b.start,T>0&&(F=Math.floor(T/1E3)));var N={AD_BLOCK:e,AD_BREAK_LENGTH:U?U.sS:F,AUTONAV_STATE:i6(d.player.C()),CA_TYPE:"image",CPN:d.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:d.player.Jt()*1E3,LACT:QF(),LIVE_INDEX:U?d.j++:1,LIVE_TARGETING_CONTEXT:U&&U.context?U.context:"",MIDROLL_POS:b?Math.round(b.start/1E3):0,MIDROLL_POS_MS:b?Math.round(b.start):0,VIS:d.player.getVisibilityState(), P_H:d.player.OD().yS().height,P_W:d.player.OD().yS().width,YT_REMOTE:J?J.join(","):""},R=U3(ee);Object.keys(R).forEach(function(x){R[x]!=null&&(N[x.toUpperCase()]=R[x].toString())}); Y!==""&&(N.BISCOTTI_ID=Y);Y={};YA(q)&&(Y.sts="20291",(d=d.player.C().forcedExperiments)&&(Y.forced_experiments=d));return d7(g.a1(q,N),Y)}; wOg=function(d,q){var T=d.player.C(),Y,e=(Y=d.player.getVideoData(1))==null?void 0:Y.oauthToken;return g.rn(T,e).then(function(U){if(U&&Tt()){var b=Tk();eq(b,U)}return g.GY(d.player.S0(b),q,"/youtubei/v1/player/ad_break").then(function(J){return J})})}; fC6=function(d){this.Hv=d}; zPD=function(d){this.J=d}; iL_=function(d){this.Hv=d}; mWf=function(d){g.W.call(this);this.G=d;this.KG=IC1(this)}; IC1=function(d){var q=new taQ(d.G.FC);g.C(d,q);d=[new fC6(d.G.Hv),new zPD(d.G.J),new iL_(d.G.Hv),new cD(d.G.NF,d.G.je),new jo,new p3(d.G.kP,d.G.u9,d.G.Hv),new En,new M1];d=g.E(d);for(var T=d.next();!T.done;T=d.next())B4D(q,T.value);d=g.E(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(T=d.next();!T.done;T=d.next())aw(q,T.value,function(){}); return q}; mK=function(d){var q=d.Xw,T=d.T2;d=d.KH;var Y=new m1D,e={cf:new nPD(q.get(),T),T2:T};return{JA:new jN(T,d,q,e),context:e,Df:Y}}; Sk=function(d,q,T,Y,e){g.W.call(this);this.U=q;this.Yx=T;this.Xw=Y;this.eT=e;this.listeners=[];var U=new cu(this);g.C(this,U);U.W(d,"internalAbandon",this.QNU);this.addOnDisposeCallback(function(){g.jX(U)})}; l6=function(d){this.J=d;this.adVideoId=this.G=this.videoId=this.adCpn=this.contentCpn=null;this.S=!0;this.U=this.j=!1;this.adFormat=null;this.T="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; S97=function(d){d.contentCpn=null;d.adCpn=null;d.videoId=null;d.adVideoId=null;d.adFormat=null;d.T="AD_PLACEMENT_KIND_UNKNOWN";d.actionType="unknown_type";d.j=!1;d.U=!1}; lCD=function(d,q){d=g.E(q);for(q=d.next();!q.done;q=d.next())if((q=q.value.renderer)&&(q.instreamVideoAdRenderer||q.linearAdSequenceRenderer||q.sandwichedLinearAdRenderer||q.instreamSurveyAdRenderer)){pU("ad_i");g.ZO({isMonetized:!0});break}}; vZn=function(d){var q;(q=d.J.getVideoData(1))!=null&&q.UD&&(d.U=!1,q={},d.G&&d.videoId&&(q.cttAuthInfo={token:d.G,videoId:d.videoId}),OG("video_to_ad",q))}; $K=function(d){d.U=!1;var q={};d.G&&d.videoId&&(q.cttAuthInfo={token:d.G,videoId:d.videoId});OG("ad_to_video",q);oZ1(d)}; oZ1=function(d){if(d.j)if(d.T==="AD_PLACEMENT_KIND_START"&&d.actionType==="video_to_ad")jl("video_to_ad");else{var q={adBreakType:uN(d.T),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:d.videoStreamType};d.actionType==="ad_to_video"?(d.contentCpn&&(q.targetCpn=d.contentCpn),d.videoId&&(q.targetVideoId=d.videoId)):(d.adCpn&&(q.targetCpn=d.adCpn),d.adVideoId&&(q.targetVideoId=d.adVideoId));d.adFormat&&(q.adType=d.adFormat);d.contentCpn&& (q.clientPlaybackNonce=d.contentCpn);d.videoId&&(q.videoId=d.videoId);d.adCpn&&(q.adClientPlaybackNonce=d.adCpn);d.adVideoId&&(q.adVideoId=d.adVideoId);g.ZO(q,d.actionType);d.J.C().experiments.Wv("html5_ads_csi_qoes")&&(q=d.J.Rf(d.actionType==="ad_to_video"?1:2),q=(0,g.cj)()-1E3*q,rc("qoes",q,d.actionType))}}; v1=function(d){g.W.call(this);this.J=d;this.G=new Map;this.U=new cu(this);g.C(this,this.U);this.U.W(this.J,g.Sh("ad"),this.onCueRangeEnter,this);this.U.W(this.J,g.lG("ad"),this.onCueRangeExit,this)}; VS1=function(d,q,T,Y,e,U,b){g.Ij.call(this,q,T,{id:d,namespace:"ad",priority:e,visible:Y,associatedClipId:U,markerPositionMs:b})}; oU=function(d){this.J=d}; du_=function(d,q){d.J.cueVideoByPlayerVars(q,2)}; V3=function(d){this.J=d}; dB=function(d){this.J=d;g.Yv(this.J.C().experiments,"tv_pacf_logging_sample_rate")}; q1D=function(d){return WA(d,"html5_ssap_play_cached_preroll")}; Fg=function(d,q){q=q===void 0?!1:q;return d.J.C().N("html5_ssap_force_ads_ctmp")?!0:(q||d.J.C().uF())&&d.J.C().N("html5_ssap_pacf_qoe_ctmp")}; qk=function(d){var q;return(q=d.J.getVideoData(1)==null?void 0:!1)!=null?q:!1}; WA=function(d,q){return d.J.C().N(q)}; TuX=function(d){return d.J.C().N("substitute_ad_cpn_macro_in_ssdai")}; uv=function(d){var q,T,Y;return((q=d.J.getVideoData(1).getPlayerResponse())==null?void 0:(T=q.playerConfig)==null?void 0:(Y=T.daiConfig)==null?void 0:Y.enableServerStitchedDai)||!1}; uN7=function(d){return d.J.C().N("html5_enable_vod_slar_with_notify_pacf")}; Y1D=function(d){return d.J.C().N("html5_recognize_predict_start_cue_point")}; QE=function(d){return d.J.C().experiments.Wv("enable_desktop_player_underlay")}; edj=function(d){return d.J.C().experiments.Wv("html5_load_empty_player_in_media_break_sub_lra")}; VQ=function(d){return d.J.C().experiments.Wv("html5_load_ads_instead_of_cue")}; dU=function(d){return d.J.C().experiments.Wv("html5_preload_ads")}; Uu1=function(d){return d.J.C().experiments.Wv("should_ignore_cuepoints_during_lifa_preroll")}; hH=function(d){return d.J.C().experiments.Wv("enable_ads_control_flow_deterministic_id_generation")}; bXN=function(d){return d.J.C().experiments.Wv("enable_desktop_discovery_video_abandon_pings")||g.Qv(d.J.C())}; Xvn=function(d){return d.J.C().experiments.Wv("enable_progres_commands_lr_feeds")}; Dw=function(d){return d.J.C().experiments.Wv("html5_cuepoint_identifier_logging")}; m36=function(d){d=d.J.getVideoData(1);return!!d&&d.N("html5_preload_first_vod_video_ad")&&!d.isDaiEnabled()&&!d.isLivePlayback}; J6I=function(d){return d.J.C().experiments.Wv("html5_ssdai_enable_media_end_cue_range")}; sH1=function(d){switch(d){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}}; $u1=function(){g.YP.call(this);var d=this;this.G={};this.addOnDisposeCallback(function(){for(var q=g.E(Object.keys(d.G)),T=q.next();!T.done;T=q.next())delete d.G[T.value]})}; T_=function(){if(gD_===null){gD_=new $u1;QC(i3).U="b";var d=QC(i3),q=W3(d)=="h"||W3(d)=="b",T=!(T3(),!1);q&&T&&(d.S=!0,d.X=new RZ1)}return gD_}; Fe_=function(d,q,T){d.G[q]=T}; NuQ=function(d){switch(d){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}}; Y$=function(d,q,T){this.Yx=d;this.J=q;this.T2=T;this.U=new Set;this.G=new Map;T_().subscribe("adactiveviewmeasurable",this.LZ,this);T_().subscribe("adfullyviewableaudiblehalfdurationimpression",this.ND,this);T_().subscribe("adviewableimpression",this.Ff,this);T_().subscribe("adaudioaudible",this.eI,this);T_().subscribe("adaudiomeasurable",this.nZ,this)}; UW=function(d,q,T){var Y=T.jE,e=T.Nx,U=T.listener,b=T.LK;T=T.KS===void 0?!1:T.KS;if(d.G.has(q))Jm("Unexpected registration of layout in LidarApi");else{if(b){if(d.U.has(b))return;d.U.add(b)}d.G.set(q,U);aT(T3().QU,"fmd",1);aLj(QC(i3),Y);var J=T?q:void 0;Fe_(T_(),q,{Oy:function(){if(!e)return{};var F=d.J.getPresentingPlayerType(!0),N;return(N=d.J.getVideoData(F))!=null&&N.isAd()?{currentTime:d.Yx.get().getCurrentTimeSec(F,!1,J),duration:e,isPlaying:ey(d.Yx.get(),F).isPlaying(),isVpaid:!1,isYouTube:!0, volume:d.Yx.get().isMuted()?0:d.Yx.get().getVolume()/100}:{}}})}}; bU=function(d,q){d.G.has(q)?(d.G.delete(q),delete T_().G[q]):Jm("Unexpected unregistration of layout in LidarApi")}; Rd7=function(d,q){if(d.J.isLifaAdPlaying()){var T=d.J.Xb(!0,!0);d.yA(q,T.width*.5*1.1,T.height*.25*1.1,T.width*.5*.9,T.height*.5*.9)}}; hdX=function(d,q,T){var Y={};xuH(d,Y,q,T);y6g(Y);Y.LACT=XU(function(){return QF().toString()}); Y.VIS=XU(function(){return d.getVisibilityState().toString()}); Y.SDKV="h.3.0";Y.VOL=XU(function(){return d.isMuted()?"0":Math.round(d.getVolume()).toString()}); Y.VED="";return Y}; HX2=function(d,q){var T={};if(q||!d||!d.kind)return T;if(d.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||d.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!d.adTimeOffset||!d.adTimeOffset.offsetStartMilliseconds)return g.Zz(Error("malformed AdPlacementConfig")),T;T.MIDROLL_POS=XU(nT(Math.round(BZ(d.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else T.MIDROLL_POS=XU(nT("0"));return T}; XU=function(d){return{toString:function(){return d()}}}; QH1=function(d,q,T){function Y(J,F){(F=T[F])&&(U[J]=F)} function e(J,F){(F=T[F])&&(U[J]=b(F))} if(!T||g.FV(T))return d;var U=Object.assign({},d),b=q?encodeURIComponent:function(J){return J}; e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");Y("GOOGLE_VIEWABILITY","googleViewability");Y("VIEWABILITY","viewability");return U}; xuH=function(d,q,T,Y){q.CPN=XU(function(){var e;(e=d.getVideoData(1))?e=e.clientPlaybackNonce:(g.OL(Error("Video data is null.")),e=null);return e}); q.AD_MT=XU(function(){if(Y!=null)var e=Y;else{var U=T;d.C().N("html5_ssap_use_cpn_to_get_time")||(U=void 0);if(d.C().N("enable_h5_shorts_ad_fill_ad_mt_macro")||d.C().N("enable_desktop_discovery_pings_ad_mt_macro")||g.Qv(d.C())){var b=d.getPresentingPlayerType(!0),J;e=((J=d.getVideoData(b))==null?0:J.isAd())?MbD(d,b,U):0}else e=MbD(d,2,U)}return c6g(e)}); q.MT=XU(function(){return c6g(d.getCurrentTime(1,!1))}); q.P_H=XU(function(){return d.OD().yS().height.toString()}); q.P_W=XU(function(){return d.OD().yS().width.toString()}); q.PV_H=XU(function(){return d.OD().getVideoContentRect().height.toString()}); q.PV_W=XU(function(){return d.OD().getVideoContentRect().width.toString()})}; c6g=function(d){return Math.round(Math.max(0,d*1E3)).toString()}; y6g=function(d){d.CONN=XU(nT("0"));d.WT=XU(function(){return Date.now().toString()})}; MbD=function(d,q,T){return T!==void 0?d.getCurrentTime(q,!1,T):d.getCurrentTime(q,!1)}; EDf=function(){}; jHY=function(d,q,T,Y,e){var U,b,J,F,N,R,x,y,h,H,a,p,t;g.G(function(n){switch(n.U){case 1:U=!!q.scrubReferrer;b=g.a1(q.baseUrl,QH1(T,U,Y));J={};if(!q.headers){n.tF(2);break}F=d.T();if(!F.G){N=F.getValue();n.tF(3);break}return g.B(n,F.G,4);case 4:N=n.G;case 3:R=N;x=g.E(q.headers);for(y=x.next();!y.done;y=x.next())switch(h=y.value,h.headerType){case "VISITOR_ID":g.Cs("VISITOR_DATA")&&(J["X-Goog-Visitor-Id"]=g.Cs("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Cs("EOM_VISITOR_DATA")&&(J["X-Goog-EOM-Visitor-Id"]= g.Cs("EOM_VISITOR_DATA"));break;case "USER_AUTH":R&&(J.Authorization="Bearer "+R);break;case "PLUS_PAGE_ID":(H=d.S())&&(J["X-Goog-PageId"]=H);break;case "AUTH_USER":a=d.G();!R&&a&&(J["X-Goog-AuthUser"]=a);break;case "DATASYNC_ID":if(p=void 0,(p=d.j())==null?0:p.Wv("enable_datasync_id_header_in_web_vss_pings"))t=d.U(),q4(b)&&g.Cs("LOGGED_IN")&&t&&(J["X-YouTube-DataSync-Id"]=t)}"X-Goog-EOM-Visitor-Id"in J&&"X-Goog-Visitor-Id"in J&&delete J["X-Goog-Visitor-Id"];case 2:g.rM(b,void 0,U,Object.keys(J).length!== 0?J:void 0,"",!0,e),g.E6(n)}})}; a82=function(d,q,T,Y,e){this.T=d;this.S=q;this.G=T;this.U=Y;this.j=e}; A6f=function(d,q){this.G=d;this.T2=q}; JT=function(d,q,T,Y,e,U,b){var J=J===void 0?new a82(function(){var F=d.C(),N=d.getVideoData(1);return g.rn(F,N?g.$4(N):"")},function(){return d.C().pageId},function(){return d.C().yv},function(){var F; return(F=d.C().datasyncId)!=null?F:""},function(){return d.C().experiments}):J; this.J=d;this.U=q;this.iF=T;this.Xw=Y;this.JA=e;this.T2=U;this.Df=b;this.T=J;this.r5=null;this.G=new Map;this.j=new A6f(J,this.T2)}; ZX1=function(d,q,T,Y,e){var U=v_(d.U.get(),T);U?(T=Hp(d,pvH(U),U,void 0,void 0,Y),q.hasOwnProperty("baseUrl")?d.T.send(q,T):d.j.send(q,T,{},e)):Jm("Trying to ping from an unknown layout",void 0,void 0,{layoutId:T})}; WdY=function(d,q,T,Y,e,U){Y=Y===void 0?[]:Y;var b=v_(d.U.get(),q);if(b){var J=d.iF.get().Wr(q,T),F=Hp(d,pvH(b),b,e,U);Y.forEach(function(N,R){N.baseUrl&&(d.j.send(N.baseUrl,F,J,N.attributionSrcMode),N.serializedAdPingMetadata&&d.JA.yY("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,b,new hUH(N,R),void 0,void 0,b.adLayoutLoggingData))})}else Jm("Trying to track from an unknown layout.",void 0,void 0,{layoutId:q, trackingType:T})}; gX=function(d,q){d.J.sendVideoStatsEngageEvent(q,void 0,2)}; Hn=function(d,q){g.Ta("adsClientStateChange",q)}; OX2=function(d,q){d.G.has(q.Z6())?Jm("Trying to register an existing AdErrorInfoSupplier."):d.G.set(q.Z6(),q)}; nDf=function(d,q){d.G.delete(q.Z6())||Jm("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; cn=function(d,q,T){typeof T==="string"?d.J.getVideoData(1).f_(q,T):d.J.getVideoData(1).oU(q,T)}; pvH=function(d){var q=l7(d.clientMetadata,"metadata_type_ad_placement_config");d=l7(d.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:q,Yf:d}}; Hp=function(d,q,T,Y,e,U){var b=T?r66(d):{},J=T?tbg(d,T.layoutId):{},F=Buf(d),N,R=e!=null?e:(N=kx(d.Xw.get(),2))==null?void 0:N.clientPlaybackNonce;e=void 0;if(T){var x;if((x=d.Df.G.get(T.layoutId))==null?0:x.KS)e=T.layoutId}x={};d=Object.assign({},hdX(d.J,e,Y),HX2(q.adPlacementConfig,(T==null?void 0:T.renderingContent)!==void 0),J,b,F,(x.FINAL=XU(function(){return"1"}),x.AD_CPN=XU(function(){return R||""}),x)); (T==null?void 0:T.renderingContent)!==void 0||(d.SLOT_POS=XU(function(){return(q.Yf||0).toString()})); T={};U=Object.assign({},d,U);d=g.E(Object.values(KeQ));for(Y=d.next();!Y.done;Y=d.next())Y=Y.value,b=U[Y],b!=null&&b.toString()!=null&&(T[Y]=b.toString());return T}; r66=function(d){var q={},T,Y=(T=d.r5)==null?void 0:T.MQ/1E3;Y!=null&&(q.SURVEY_ELAPSED_MS=XU(function(){return Math.round(Y*1E3).toString()})); q.SURVEY_LOCAL_TIME_EPOCH_S=XU(function(){return Math.round(Date.now()/1E3).toString()}); return q}; tbg=function(d,q){d=d.G.get(q);if(!d)return{};d=d.eX();if(!d)return{};q={};return q.YT_ERROR_CODE=d.gY.toString(),q.ERRORCODE=d.Ej.toString(),q.ERROR_MSG=d.errorMessage,q}; Buf=function(d){var q={},T=d.J.getVideoData(1);q.ASR=XU(function(){var Y;return(Y=T==null?void 0:T.sQ)!=null?Y:null}); q.EI=XU(function(){var Y;return(Y=T==null?void 0:T.eventId)!=null?Y:null}); return q}; sW=function(d,q,T){g.W.call(this);this.J=d;this.UQ=q;this.T2=T;this.listeners=[];this.aT=null;this.Oo=new Map;q=new g.aI(this);g.C(this,q);q.W(d,"videodatachange",this.zUw);q.W(d,"serverstitchedvideochange",this.OCg);this.h6=kx(this)}; kx=function(d,q){var T=d.J.getVideoData(q);return T?d.LR(T,q||d.J.getPresentingPlayerType(!0)):null}; Gdg=function(d,q,T){var Y=d.LR(q,T);d.h6=Y;d.listeners.forEach(function(e){e.xt(Y)})}; LeD=function(d){switch(d){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}}; $$=function(d,q,T){g.W.call(this);this.J=d;this.Xw=q;this.T2=T;this.listeners=[];this.N7=[];this.G=function(){Jm("Called 'doUnlockPreroll' before it's initialized.")}; q=new cu(this);T=new g.aI(this);g.C(this,T);g.C(this,q);q.W(d,"progresssync",this.hlF);q.W(d,"presentingplayerstatechange",this.kGw);q.W(d,"fullscreentoggled",this.onFullscreenToggled);q.W(d,"onVolumeChange",this.onVolumeChange);q.W(d,"minimized",this.bS);q.W(d,"overlayvisibilitychange",this.n8);q.W(d,"shortsadswipe",this.L8);q.W(d,"resize",this.gz);T.W(d,g.Sh("appad"),this.EN)}; gB=function(d){qk(d.T2.get())||d.G()}; kdD=function(d,q){d.N7=d.N7.filter(function(T){return T!==q})}; FU=function(d,q,T){return d.getCurrentTimeSec(q,T)}; Nk=function(d,q){var T;q=(T=d.Xw.get().Oo.get(q))!=null?T:null;if(q===null)return Jm("Expected ad video start time on playback timeline"),0;d=d.J.getCurrentTime(2,!0);return d0){var U=q.end.toString();e.forEach(function(b){(b=b.config&&b.config.adPlacementConfig)&&b.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&b.adTimeOffset&&b.adTimeOffset.offsetEndMilliseconds==="-1"&&b.adTimeOffset.offsetEndMilliseconds!==U&&(b.adTimeOffset.offsetEndMilliseconds=U)}); Y.map(function(b){return g.D(b,ei)}).forEach(function(b){var J; (b=b==null?void 0:(J=b.slotEntryTrigger)==null?void 0:J.mediaTimeRangeTrigger)&&b.offsetEndMilliseconds==="-1"&&(b.offsetEndMilliseconds=U)})}return{CL:e, adSlots:Y,xr:!1,ssdaiAdsConfig:d.ssdaiAdsConfig}}; He=function(d){g.W.call(this);this.J=d;this.listeners=[];this.G=new cu(this);g.C(this,this.G);this.G.W(this.J,"aduxclicked",this.onAdUxClicked);this.G.W(this.J,"aduxmouseover",this.B5);this.G.W(this.J,"aduxmouseout",this.W5);this.G.W(this.J,"muteadaccepted",this.sUZ)}; Du1=function(d,q,T){q=g.yC(q,function(Y){return new IsI(Y,T,Y.id)}); d.J.gO("onAdUxUpdate",q)}; Q_=function(d,q){d=g.E(d.listeners);for(var T=d.next();!T.done;T=d.next())q(T.value)}; Mk=function(d,q){this.U=d;this.j=q===void 0?!1:q;this.G={}}; wv1=function(d,q){var T=d.startSecs+d.sS;T=T<=0?null:T;if(T===null)return null;switch(d.event){case "start":case "continue":case "stop":break;case "predictStart":if(q)break;return null;default:return null}q=Math.max(d.startSecs,0);return{S6:new hx(q,T),pV:new $k(q,T-q,d.context,d.identifier,d.event,d.G)}}; f8Q=function(){this.G=[]}; LV1=function(d,q,T){var Y=g.Dn(d.G,q);if(Y>=0)return q;q=-Y-1;return q>=d.G.length||d.G[q]>T?null:d.G[q]}; ce=function(d,q,T){g.W.call(this);this.J=d;this.T2=q;this.Hv=T;this.listeners=[];this.T=!1;this.gp=[];this.G=null;this.S=new Mk(this,Y1D(q.get()));this.j=new f8Q;this.U=null}; zdD=function(d,q){d.gp.push(q);for(var T=!1,Y=g.E(d.listeners),e=Y.next();!e.done;e=Y.next())T=e.value.b6(q)||T;d.T=T;Dw(d.T2.get())&&cn(d.Hv.get(),"onci","cpi."+q.identifier+";cpe."+q.event+";cps."+q.startSecs+";cbi."+T)}; I8f=function(d,q){Hn(d.Hv.get(),{cuepointTrigger:{event:iXj(q.event),cuepointId:q.identifier,totalCueDurationMs:q.sS*1E3,playheadTimeMs:q.G,cueStartTimeMs:q.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:d.J.getVideoData(1).clientPlaybackNonce}})}; iXj=function(d){switch(d){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return $S(d,"Unexpected cuepoint event")}}; EW=function(d){this.J=d}; jy=function(d){this.J=d}; muQ=function(d){switch(d){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:$S(d,"unknown transitionReason")}}; aP=function(){g.W.apply(this,arguments);this.Ns2=new Map}; S1n=function(d){this.J=d}; l8N=function(d,q,T,Y,e){g.W.call(this);var U=this,b=to(function(){return new yI(U.T2)}); g.C(this,b);var J=to(function(){return new HN(b,U.T2)}); g.C(this,J);var F=to(function(){return new Si}); g.C(this,F);var N=to(function(){return new Ix(d)}); g.C(this,N);var R=to(function(){return new QI(b,J,U.T2)}); g.C(this,R);var x=to(function(){return new am}); g.C(this,x);this.kB=to(function(){return new He(q)}); g.C(this,this.kB);this.hA=to(function(){return new Ku(e)}); g.C(this,this.hA);this.yU=to(function(){return new l6(q)}); g.C(this,this.yU);this.l$=to(function(){return new v1(q)}); g.C(this,this.l$);this.UF=to(function(){return new oU(q)}); g.C(this,this.UF);this.FC=to(function(){return new V3(q)}); g.C(this,this.FC);this.T2=to(function(){return new dB(q)}); g.C(this,this.T2);var y=to(function(){return new hT(Y)}); g.C(this,y);var h=to(function(){return new eh(U.T2)}); g.C(this,h);this.XW=to(function(){return new EW(q)}); g.C(this,this.XW);this.Ui=to(function(){return new kv}); g.C(this,this.Ui);this.Xw=to(function(){return new sW(q,x,U.T2)}); g.C(this,this.Xw);var H=mK({Xw:this.Xw,T2:this.T2,KH:h}),a=H.context,p=H.Df;this.JA=H.JA;this.eT=to(function(){return new ce(q,U.T2,U.Hv)}); g.C(this,this.eT);this.Gq=to(function(){return new jy(q)}); g.C(this,this.Gq);this.Yx=to(function(){return new $$(q,U.Xw,U.T2)}); g.C(this,this.Yx);this.ol=to(function(){return new aP}); g.C(this,this.ol);H=to(function(){return new kq(b,R,J,U.T2,h,"SLOT_TYPE_ABOVE_FEED",U.Yx,U.qM,U.NU)}); g.C(this,H);this.DY=to(function(){return new PA(U.T2)}); this.iF=to(function(){return new Y$(U.Yx,q,U.T2)}); g.C(this,this.iF);this.Hv=to(function(){return new JT(q,F,U.iF,U.Xw,U.JA,U.T2,p)}); g.C(this,this.Hv);this.xZ=new zb(f6,AT,function(n,K,P,w){return H_(J.get(),n,K,P,w)},N,R,J,h,this.T2,this.Xw); g.C(this,this.xZ);this.Q5=new iv(N,H,T,this.T2,d,this.Xw,this.Yx,this.yU);g.C(this,this.Q5);var t=new Sk(q,this.Q5,this.Yx,this.Xw,this.eT);this.H4=to(function(){return t}); this.Da=t;this.qM=new C6(N,R,this.H4,this.eT,this.Yx,this.T2,this.Hv,this.Gq);g.C(this,this.qM);this.Np=new mo(N,R,this.l$,this.H4,a);g.C(this,this.Np);this.pH=new Yq(this.T2,N,R,H,this.Xw,this.Np,T,this.UF);g.C(this,this.pH);this.jV=to(function(){return new TS(y,J,h,U.T2,U.Hv,U.Yx,U.Gq)}); g.C(this,this.jV);this.jh=to(function(){return new Yu}); g.C(this,this.jh);this.fA=new TD(d,this.kB,this.T2);g.C(this,this.fA);this.F9=new YC(d);g.C(this,this.F9);this.Q4=new eN(d);g.C(this,this.Q4);this.Xn=new bq(d,this.H4,a);g.C(this,this.Xn);this.xP=new X4(d,this.l$,this.Yx,this.Xw,a);g.C(this,this.xP);this.rd=new JH(d,this.Xw);g.C(this,this.rd);this.NU=new gg(d,this.eT,this.Yx,this.Hv,this.H4,this.qM);g.C(this,this.NU);this.MU=new sT(d);g.C(this,this.MU);this.bC=new xC(d);g.C(this,this.bC);this.FT=new $C(d);g.C(this,this.FT);this.RP=new Rm(d);g.C(this, this.RP);this.bC=new xC(d);g.C(this,this.bC);this.GA=to(function(){return new ox}); g.C(this,this.GA);this.Ap=to(function(){return new VE(U.Yx)}); g.C(this,this.Ap);this.IS=to(function(){return new UPg(U.kB,U.Hv,d,F,U.iF)}); g.C(this,this.IS);this.oQ=to(function(){return new uO(U.pH,N,b)}); g.C(this,this.oQ);this.IQ=to(function(){return new fw(U.T2,U.Hv,U.MU,U.iF)}); g.C(this,this.IQ);this.Dp=to(function(){return new O_(d,U.bC,U.MU,U.Xw,U.Gq,U.Yx,U.ol,U.Hv,x,U.eT,U.iF,U.DY,U.UF,U.l$,U.yU,U.FC,U.hA,U.XW,U.T2,F,a,p)}); g.C(this,this.Dp);this.Bg=to(function(){return new Qh6(U.Yx,U.Hv,U.hA,U.T2,U.iF,U.Xw)}); g.C(this,this.Bg);this.kT=to(function(){return new bUD(U.kB,U.Yx,U.Hv,F,U.iF,U.Q4,U.RP,U.hA,U.T2,T)}); g.C(this,this.kT);this.k0=to(function(){return new bMI(U.kB,U.Hv,F)}); g.C(this,this.k0);this.gw=new y_(d,this.Ui,b);g.C(this,this.gw);this.Rt={GW:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.pH],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.qM],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Q5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Np]]),Xg:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jV],["SLOT_TYPE_ABOVE_FEED",this.jh],["SLOT_TYPE_FORECASTING",this.jh], ["SLOT_TYPE_IN_PLAYER",this.jh],["SLOT_TYPE_PLAYER_BYTES",this.jh],["SLOT_TYPE_PLAYER_UNDERLAY",this.jh],["SLOT_TYPE_PLAYBACK_TRACKING",this.jh],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.jh]]),QP:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fA],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.fA],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.F9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.F9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.F9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.F9],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.F9],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.F9],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Q4],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xn],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.xP],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.xP],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.xP],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.xP],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.xP],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.xP],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.xP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.rd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.rd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.MU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Xn],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.FT],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.RP],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.NU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.NU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.NU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.NU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.NU]]),kI:new Map([["SLOT_TYPE_ABOVE_FEED",this.GA], ["SLOT_TYPE_AD_BREAK_REQUEST",this.GA],["SLOT_TYPE_FORECASTING",this.GA],["SLOT_TYPE_IN_PLAYER",this.GA],["SLOT_TYPE_PLAYER_BYTES",this.Ap],["SLOT_TYPE_PLAYER_UNDERLAY",this.GA],["SLOT_TYPE_PLAYBACK_TRACKING",this.GA],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.GA]]),iI:new Map([["SLOT_TYPE_ABOVE_FEED",this.IS],["SLOT_TYPE_AD_BREAK_REQUEST",this.oQ],["SLOT_TYPE_FORECASTING",this.IQ],["SLOT_TYPE_PLAYER_BYTES",this.Dp],["SLOT_TYPE_PLAYBACK_TRACKING",this.Bg],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.Bg],["SLOT_TYPE_IN_PLAYER",this.kT],["SLOT_TYPE_PLAYER_UNDERLAY",this.k0]])};this.listeners=[F.get()];this.Em={pH:this.pH,u9:this.T2.get(),Nk:this.hA.get(),oV:this.Yx.get(),Q5:this.Q5,Bu:b.get(),QI:this.Ui.get(),je:this.fA,NF:F.get(),kP:this.Xw.get()}}; vDX=function(d,q,T,Y,e){g.W.call(this);var U=this,b=to(function(){return new yI(U.T2)}); g.C(this,b);var J=to(function(){return new HN(b,U.T2)}); g.C(this,J);var F=to(function(){return new Si}); g.C(this,F);var N=to(function(){return new Ix(d)}); g.C(this,N);var R=to(function(){return new QI(b,J,U.T2)}); g.C(this,R);var x=to(function(){return new am}); g.C(this,x);this.kB=to(function(){return new He(q)}); g.C(this,this.kB);this.hA=to(function(){return new Ku(e)}); g.C(this,this.hA);this.yU=to(function(){return new l6(q)}); g.C(this,this.yU);this.l$=to(function(){return new v1(q)}); g.C(this,this.l$);this.UF=to(function(){return new oU(q)}); g.C(this,this.UF);this.FC=to(function(){return new V3(q)}); g.C(this,this.FC);this.T2=to(function(){return new dB(q)}); g.C(this,this.T2);var y=to(function(){return new hT(Y)}); g.C(this,y);var h=to(function(){return new eh(U.T2)}); g.C(this,h);var H=to(function(){return new kq(b,R,J,U.T2,h,null,null,U.qM,U.NU)}); g.C(this,H);this.XW=to(function(){return new EW(q)}); g.C(this,this.XW);this.Ui=to(function(){return new kv}); g.C(this,this.Ui);this.Xw=to(function(){return new sW(q,x,U.T2)}); g.C(this,this.Xw);var a=mK({Xw:this.Xw,T2:this.T2,KH:h}),p=a.context,t=a.Df;this.JA=a.JA;this.eT=to(function(){return new ce(q,U.T2,U.Hv)}); this.Yx=to(function(){return new $$(q,U.Xw,U.T2)}); g.C(this,this.Yx);this.ol=to(function(){return new aP}); g.C(this,this.ol);this.iF=to(function(){return new Y$(U.Yx,q,U.T2)}); g.C(this,this.iF);this.Hv=to(function(){return new JT(q,F,U.iF,U.Xw,U.JA,U.T2,t)}); g.C(this,this.Hv);this.DY=to(function(){return new PA(U.T2)}); g.C(this,this.DY);this.xZ=new zb(f6,AT,function(K,P,w,l){return H_(J.get(),K,P,w,l)},N,R,J,h,this.T2,this.Xw); g.C(this,this.xZ);this.Q5=new iv(N,H,T,this.T2,d,this.Xw,this.Yx,this.yU);g.C(this,this.Q5);var n=new Sk(q,this.Q5,this.Yx,this.Xw,this.eT);this.H4=to(function(){return n}); this.Da=n;this.qM=new C6(N,R,this.H4,this.eT,this.Yx,this.T2,this.Hv);g.C(this,this.qM);this.Np=new mo(N,R,this.l$,this.H4,p);g.C(this,this.Np);this.pH=new Yq(this.T2,N,R,H,this.Xw,this.Np,T,this.UF);g.C(this,this.pH);this.jV=to(function(){return new TS(y,J,h,U.T2,U.Hv,U.Yx)}); g.C(this,this.jV);this.jh=to(function(){return new Yu}); g.C(this,this.jh);this.fA=new TD(d,this.kB,this.T2);g.C(this,this.fA);this.F9=new YC(d);g.C(this,this.F9);this.Q4=new eN(d);g.C(this,this.Q4);this.Xn=new bq(d,this.H4,p);g.C(this,this.Xn);this.xP=new X4(d,this.l$,this.Yx,this.Xw,p);g.C(this,this.xP);this.MU=new sT(d);g.C(this,this.MU);this.FT=new $C(d);g.C(this,this.FT);this.RP=new Rm(d);g.C(this,this.RP);this.Gq=to(function(){return new jy(q)}); g.C(this,this.Gq);this.bC=new xC(d);g.C(this,this.bC);this.NU=new gg(d,this.eT,this.Yx,this.Hv,this.H4,this.qM);g.C(this,this.NU);this.GA=to(function(){return new ox}); g.C(this,this.GA);this.Ap=to(function(){return new VE(U.Yx)}); g.C(this,this.Ap);this.oQ=to(function(){return new uO(U.pH,N,b)}); g.C(this,this.oQ);this.IQ=to(function(){return new fw(U.T2,U.Hv,U.MU,U.iF)}); g.C(this,this.IQ);this.kT=to(function(){return new XmN(U.kB,U.Yx,U.Hv,F,U.iF,U.Q4,U.RP,U.hA,U.T2,T)}); g.C(this,this.kT);this.Dp=to(function(){return new nd(d,U.bC,U.MU,U.Hv,U.iF,U.DY,U.UF,U.Xw,U.Yx,U.ol,U.l$,U.yU,U.FC,U.hA,U.XW,U.T2,U.Gq,p,t)}); g.C(this,this.Dp);this.gw=new y_(d,this.Ui,b);g.C(this,this.gw);this.Rt={GW:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.pH],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.qM],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Q5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Np]]),Xg:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jV],["SLOT_TYPE_FORECASTING",this.jh],["SLOT_TYPE_IN_PLAYER",this.jh], ["SLOT_TYPE_PLAYER_BYTES",this.jh]]),QP:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fA],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.F9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.F9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.F9], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.F9],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Q4],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xn],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.xP],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.xP],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.xP],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.MU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xn],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.FT],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.RP],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.NU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.NU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.NU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.NU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.NU]]),kI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.GA],["SLOT_TYPE_FORECASTING",this.GA],["SLOT_TYPE_IN_PLAYER",this.GA],["SLOT_TYPE_PLAYER_BYTES",this.Ap]]), iI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oQ],["SLOT_TYPE_FORECASTING",this.IQ],["SLOT_TYPE_IN_PLAYER",this.kT],["SLOT_TYPE_PLAYER_BYTES",this.Dp]])};this.listeners=[F.get()];this.Em={pH:this.pH,u9:this.T2.get(),Nk:this.hA.get(),oV:this.Yx.get(),Q5:this.Q5,Bu:b.get(),QI:this.Ui.get(),je:this.fA,NF:F.get(),kP:this.Xw.get()}}; oD7=function(d,q,T,Y,e){g.W.call(this);var U=this,b=to(function(){return new yI(U.T2)}); g.C(this,b);var J=to(function(){return new HN(b,U.T2)}); g.C(this,J);var F=to(function(){return new Si}); g.C(this,F);var N=to(function(){return new Ix(d)}); g.C(this,N);var R=to(function(){return new QI(b,J,U.T2)}); g.C(this,R);var x=to(function(){return new am}); g.C(this,x);this.kB=to(function(){return new He(q)}); g.C(this,this.kB);this.hA=to(function(){return new Ku(e)}); g.C(this,this.hA);this.yU=to(function(){return new l6(q)}); g.C(this,this.yU);this.l$=to(function(){return new v1(q)}); g.C(this,this.l$);this.UF=to(function(){return new oU(q)}); g.C(this,this.UF);this.FC=to(function(){return new V3(q)}); g.C(this,this.FC);this.T2=to(function(){return new dB(q)}); g.C(this,this.T2);var y=to(function(){return new hT(Y)}); g.C(this,y);var h=to(function(){return new eh(U.T2)}); g.C(this,h);var H=to(function(){return new kq(b,R,J,U.T2,h,null,null,null,null)}); g.C(this,H);this.XW=to(function(){return new EW(q)}); g.C(this,this.XW);this.Xw=to(function(){return new sW(q,x,U.T2)}); g.C(this,this.Xw);var a=mK({Xw:this.Xw,T2:this.T2,KH:h}),p=a.context,t=a.Df;this.JA=a.JA;this.Yx=to(function(){return new $$(q,U.Xw,U.T2)}); g.C(this,this.Yx);this.ol=to(function(){return new aP}); g.C(this,this.ol);this.iF=to(function(){return new Y$(U.Yx,q,U.T2)}); g.C(this,this.iF);this.Hv=to(function(){return new JT(q,F,U.iF,U.Xw,U.JA,U.T2,t)}); g.C(this,this.Hv);this.DY=to(function(){return new PA(U.T2)}); g.C(this,this.DY);this.xZ=new zb(f6,AT,function(K,P,w,l){return H_(J.get(),K,P,w,l)},N,R,J,h,this.T2,this.Xw); g.C(this,this.xZ);this.Q5=new iv(N,H,T,this.T2,d,this.Xw,this.Yx,this.yU);g.C(this,this.Q5);var n=new Sk(q,this.Q5,this.Yx,this.Xw);this.H4=to(function(){return n}); this.Da=n;this.Np=new mo(N,R,this.l$,this.H4,p);g.C(this,this.Np);this.pH=new Yq(this.T2,N,R,H,this.Xw,this.Np,T,this.UF);g.C(this,this.pH);this.jV=to(function(){return new TS(y,J,h,U.T2,U.Hv,U.Yx)}); g.C(this,this.jV);this.jh=to(function(){return new Yu}); g.C(this,this.jh);this.fA=new TD(d,this.kB,this.T2);g.C(this,this.fA);this.F9=new YC(d);g.C(this,this.F9);this.Xn=new bq(d,this.H4,p);g.C(this,this.Xn);this.xP=new X4(d,this.l$,this.Yx,this.Xw,p);g.C(this,this.xP);this.MU=new sT(d);g.C(this,this.MU);this.FT=new $C(d);g.C(this,this.FT);this.Gq=to(function(){return new jy(q)}); g.C(this,this.Gq);this.bC=new xC(d);g.C(this,this.bC);this.GA=to(function(){return new ox}); g.C(this,this.GA);this.Ap=to(function(){return new VE(U.Yx)}); g.C(this,this.Ap);this.oQ=to(function(){return new uO(U.pH,N,b)}); g.C(this,this.oQ);this.IQ=to(function(){return new fw(U.T2,U.Hv,U.MU,U.iF)}); g.C(this,this.IQ);this.n4=to(function(){return new HMN(U.kB,U.Yx,U.Hv,F,T,U.T2)}); g.C(this,this.n4);this.Dp=to(function(){return new nd(d,U.bC,U.MU,U.Hv,U.iF,U.DY,U.UF,U.Xw,U.Yx,U.ol,U.l$,U.yU,U.FC,U.hA,U.XW,U.T2,U.Gq,p,t)}); g.C(this,this.Dp);this.Rt={GW:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.pH],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Q5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Np]]),Xg:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jV],["SLOT_TYPE_FORECASTING",this.jh],["SLOT_TYPE_IN_PLAYER",this.jh],["SLOT_TYPE_PLAYER_BYTES",this.jh]]),QP:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fA],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.F9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.F9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.F9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.F9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xn],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.xP],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.xP],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.MU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xn],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.FT],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bC]]),kI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.GA],["SLOT_TYPE_ABOVE_FEED",this.GA],["SLOT_TYPE_FORECASTING",this.GA],["SLOT_TYPE_IN_PLAYER",this.GA],["SLOT_TYPE_PLAYER_BYTES",this.Ap]]),iI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oQ],["SLOT_TYPE_FORECASTING",this.IQ],["SLOT_TYPE_IN_PLAYER", this.n4],["SLOT_TYPE_PLAYER_BYTES",this.Dp]])};this.listeners=[F.get()];this.Em={pH:this.pH,u9:this.T2.get(),Nk:this.hA.get(),oV:this.Yx.get(),Q5:this.Q5,Bu:b.get(),QI:null,je:this.fA,NF:F.get(),kP:this.Xw.get()}}; Vb1=function(d,q,T,Y,e){g.W.call(this);var U=this,b=to(function(){return new yI(U.T2)}); g.C(this,b);var J=to(function(){return new HN(b,U.T2)}); g.C(this,J);var F=to(function(){return new Si}); g.C(this,F);var N=to(function(){return new Ix(d)}); g.C(this,N);var R=to(function(){return new QI(b,J,U.T2)}); g.C(this,R);var x=to(function(){return new am}); g.C(this,x);this.uV=to(function(){return new S1n(q)}); g.C(this,this.uV);this.kB=to(function(){return new He(q)}); g.C(this,this.kB);this.hA=to(function(){return new Ku(e)}); g.C(this,this.hA);this.yU=to(function(){return new l6(q)}); g.C(this,this.yU);this.l$=to(function(){return new v1(q)}); g.C(this,this.l$);this.UF=to(function(){return new oU(q)}); g.C(this,this.UF);this.FC=to(function(){return new V3(q)}); g.C(this,this.FC);this.T2=to(function(){return new dB(q)}); g.C(this,this.T2);var y=to(function(){return new hT(Y)}); g.C(this,y);var h=to(function(){return new eh(U.T2)}); g.C(this,h);var H=to(function(){return new kq(b,R,J,U.T2,h,null,null,null,null)}); g.C(this,H);this.XW=to(function(){return new EW(q)}); g.C(this,this.XW);this.Xw=to(function(){return new sW(q,x,U.T2)}); g.C(this,this.Xw);var a=mK({Xw:this.Xw,T2:this.T2,KH:h}),p=a.context,t=a.Df;this.JA=a.JA;this.Yx=to(function(){return new $$(q,U.Xw,U.T2)}); g.C(this,this.Yx);this.ol=to(function(){return new aP}); g.C(this,this.ol);this.iF=to(function(){return new Y$(U.Yx,q,U.T2)}); g.C(this,this.iF);this.Hv=to(function(){return new JT(q,F,U.iF,U.Xw,U.JA,U.T2,t)}); g.C(this,this.Hv);this.DY=to(function(){return new PA(U.T2)}); g.C(this,this.DY);this.xZ=new zb(zr1,AT,function(K,P,w,l){return Roj(J.get(),K,P,w,l)},N,R,J,h,this.T2,this.Xw); g.C(this,this.xZ);this.Q5=new iv(N,H,T,this.T2,d,this.Xw,this.Yx,this.yU);g.C(this,this.Q5);var n=new Sk(q,this.Q5,this.Yx,this.Xw);this.H4=to(function(){return n}); this.Da=n;this.Np=new mo(N,R,this.l$,this.H4,p);g.C(this,this.Np);this.pH=new Yq(this.T2,N,R,H,this.Xw,this.Np,T,this.UF);g.C(this,this.pH);this.jV=to(function(){return new TS(y,J,h,U.T2,U.Hv,U.Yx)}); g.C(this,this.jV);this.jh=to(function(){return new Yu}); g.C(this,this.jh);this.fA=new TD(d,this.kB,this.T2);g.C(this,this.fA);this.F9=new YC(d);g.C(this,this.F9);this.Xn=new bq(d,this.H4,p);g.C(this,this.Xn);this.xP=new X4(d,this.l$,this.Yx,this.Xw,p);g.C(this,this.xP);this.MU=new sT(d);g.C(this,this.MU);this.FT=new $C(d);g.C(this,this.FT);this.Gq=to(function(){return new jy(q)}); g.C(this,this.Gq);this.bC=new xC(d);g.C(this,this.bC);this.GA=to(function(){return new ox}); g.C(this,this.GA);this.Ap=to(function(){return new VE(U.Yx)}); g.C(this,this.Ap);this.oQ=to(function(){return new uO(U.pH,N,b)}); g.C(this,this.oQ);this.IQ=to(function(){return new fw(U.T2,U.Hv,U.MU,U.iF)}); g.C(this,this.IQ);this.Dp=to(function(){return new nd(d,U.bC,U.MU,U.Hv,U.iF,U.DY,U.UF,U.Xw,U.Yx,U.ol,U.l$,U.yU,U.FC,U.hA,U.XW,U.T2,U.Gq,p,t)}); g.C(this,this.Dp);this.Ir=to(function(){return new saY(U.kB,U.Yx,U.Hv,F,U.uV,T,U.Xw)}); g.C(this,this.Ir);this.Rt={GW:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.pH],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Q5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Np]]),Xg:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jV],["SLOT_TYPE_FORECASTING",this.jh],["SLOT_TYPE_IN_PLAYER",this.jh],["SLOT_TYPE_PLAYER_BYTES",this.jh]]),QP:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fA],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.F9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.F9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.F9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.F9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xn],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.xP],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.xP],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.MU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xn],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.FT],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bC]]),kI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.GA],["SLOT_TYPE_FORECASTING",this.GA],["SLOT_TYPE_IN_PLAYER",this.GA],["SLOT_TYPE_PLAYER_BYTES",this.Ap]]),iI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oQ],["SLOT_TYPE_FORECASTING",this.IQ],["SLOT_TYPE_IN_PLAYER",this.Ir],["SLOT_TYPE_PLAYER_BYTES", this.Dp]])};this.listeners=[F.get()];this.Em={pH:this.pH,u9:this.T2.get(),Nk:this.hA.get(),oV:this.Yx.get(),Q5:this.Q5,Bu:b.get(),QI:null,je:this.fA,NF:F.get(),kP:this.Xw.get()}}; dHN=function(d,q,T,Y,e){g.W.call(this);var U=this,b=to(function(){return new yI(U.T2)}); g.C(this,b);var J=to(function(){return new HN(b,U.T2)}); g.C(this,J);var F=to(function(){return new Si}); g.C(this,F);var N=to(function(){return new Ix(d)}); g.C(this,N);var R=to(function(){return new QI(b,J,U.T2)}); g.C(this,R);var x=to(function(){return new am}); g.C(this,x);this.uV=to(function(){return new S1n(q)}); g.C(this,this.uV);this.kB=to(function(){return new He(q)}); g.C(this,this.kB);this.hA=to(function(){return new Ku(e)}); g.C(this,this.hA);this.yU=to(function(){return new l6(q)}); g.C(this,this.yU);this.l$=to(function(){return new v1(q)}); g.C(this,this.l$);this.UF=to(function(){return new oU(q)}); g.C(this,this.UF);this.FC=to(function(){return new V3(q)}); g.C(this,this.FC);this.T2=to(function(){return new dB(q)}); g.C(this,this.T2);var y=to(function(){return new hT(Y)}); g.C(this,y);var h=to(function(){return new eh(U.T2)}); g.C(this,h);this.XW=to(function(){return new EW(q)}); g.C(this,this.XW);this.Xw=to(function(){return new sW(q,x,U.T2)}); g.C(this,this.Xw);var H=mK({Xw:this.Xw,T2:this.T2,KH:h}),a=H.context,p=H.Df;this.JA=H.JA;this.eT=to(function(){return new ce(q,U.T2,U.Hv)}); g.C(this,this.eT);this.Gq=to(function(){return new jy(q)}); g.C(this,this.Gq);this.Yx=to(function(){return new $$(q,U.Xw,U.T2)}); g.C(this,this.Yx);this.ol=to(function(){return new aP}); g.C(this,this.ol);H=to(function(){return new kq(b,R,J,U.T2,h,null,U.Yx,U.qM,U.NU,3)}); g.C(this,H);this.DY=to(function(){return new PA(U.T2)}); this.iF=to(function(){return new Y$(U.Yx,q,U.T2)}); g.C(this,this.iF);this.Hv=to(function(){return new JT(q,F,U.iF,U.Xw,U.JA,U.T2,p)}); g.C(this,this.Hv);this.Q5=new iv(N,H,T,this.T2,d,this.Xw,this.Yx,this.yU);g.C(this,this.Q5);var t=new Sk(q,this.Q5,this.Yx,this.Xw,this.eT);this.H4=to(function(){return t}); this.Da=t;this.xZ=new zb(i3g,AT,function(n,K,P,w){return Roj(J.get(),n,K,P,w)},N,R,J,h,this.T2,this.Xw); g.C(this,this.xZ);this.qM=new C6(N,R,this.H4,this.eT,this.Yx,this.T2,this.Hv,this.Gq);g.C(this,this.qM);this.Np=new mo(N,R,this.l$,this.H4,a);g.C(this,this.Np);this.pH=new Yq(this.T2,N,R,H,this.Xw,this.Np,T,this.UF);g.C(this,this.pH);this.jV=to(function(){return new TS(y,J,h,U.T2,U.Hv,U.Yx,U.Gq)}); g.C(this,this.jV);this.jh=to(function(){return new Yu}); g.C(this,this.jh);this.fA=new TD(d,this.kB,this.T2);g.C(this,this.fA);this.F9=new YC(d);g.C(this,this.F9);this.Xn=new bq(d,this.H4,a);g.C(this,this.Xn);this.xP=new X4(d,this.l$,this.Yx,this.Xw,a);g.C(this,this.xP);this.rd=new JH(d,this.Xw);g.C(this,this.rd);this.NU=new gg(d,this.eT,this.Yx,this.Hv,this.H4,this.qM);g.C(this,this.NU);this.MU=new sT(d);g.C(this,this.MU);this.FT=new $C(d);g.C(this,this.FT);this.bC=new xC(d);g.C(this,this.bC);this.GA=to(function(){return new ox}); g.C(this,this.GA);this.Ap=to(function(){return new VE(U.Yx)}); g.C(this,this.Ap);this.oQ=to(function(){return new uO(U.pH,N,b)}); g.C(this,this.oQ);this.IQ=to(function(){return new fw(U.T2,U.Hv,U.MU,U.iF)}); g.C(this,this.IQ);this.Dp=to(function(){return new O_(d,U.bC,U.MU,U.Xw,U.Gq,U.Yx,U.ol,U.Hv,x,U.eT,U.iF,U.DY,U.UF,U.l$,U.yU,U.FC,U.hA,U.XW,U.T2,F,a,p)}); g.C(this,this.Dp);this.kT=to(function(){return new $3_(U.kB,U.Yx,U.Hv,F,U.uV,T,U.T2,U.Xw)}); g.C(this,this.kT);this.Rt={GW:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.pH],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.qM],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Q5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Np]]),Xg:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jV],["SLOT_TYPE_FORECASTING",this.jh],["SLOT_TYPE_IN_PLAYER",this.jh],["SLOT_TYPE_PLAYER_BYTES",this.jh]]),QP:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.fA],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.F9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.F9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.F9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xn],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.xP],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.xP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.rd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.rd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.MU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xn],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.FT],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.NU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.NU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.NU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.NU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.NU]]),kI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.GA],["SLOT_TYPE_FORECASTING",this.GA],["SLOT_TYPE_IN_PLAYER",this.GA],["SLOT_TYPE_PLAYER_BYTES",this.Ap]]),iI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oQ],["SLOT_TYPE_FORECASTING",this.IQ],["SLOT_TYPE_PLAYER_BYTES",this.Dp],["SLOT_TYPE_IN_PLAYER",this.kT]])};this.listeners=[F.get()]; this.Em={pH:this.pH,u9:this.T2.get(),Nk:this.hA.get(),oV:this.Yx.get(),Q5:this.Q5,Bu:b.get(),QI:null,je:this.fA,NF:F.get(),kP:this.Xw.get()}}; TI_=function(d,q,T,Y){function e(){return U.U} g.W.call(this);var U=this;d.C().experiments.Wv("html5_dispose_of_manager_before_dependency")?(this.G=q6Q(e,d,q,T,Y),this.U=(new BA(this.G)).j(),g.C(this,this.U),g.C(this,this.G)):(this.G=q6Q(e,d,q,T,Y),g.C(this,this.G),this.U=(new BA(this.G)).j(),g.C(this,this.U))}; pr=function(d){return d.G.Em}; q6Q=function(d,q,T,Y,e){try{var U=q.C();if(g.cT(U))var b=new l8N(d,q,T,Y,e);else if(g.an(U))b=new vDX(d,q,T,Y,e);else if(Ni(U))b=new oD7(d,q,T,Y,e);else if(g.KG(U))b=new Vb1(d,q,T,Y,e);else if(g.XW(U))b=new dHN(d,q,T,Y,e);else throw new TypeError("Unknown web interface");return b}catch(J){return b=q.C(),Jm("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:b.G.cplatform,interface:b.G.c,gHf:b.G.cver,As5:b.G.ctheme,x2D:b.G.cplayer,msv:b.playerStyle}),new Cdf(d,q,T,Y,e)}}; Y6c=function(d){uE.call(this,d)}; enE=function(d,q,T,Y,e){Sx.call(this,d,{Y:"div",D:"ytp-ad-timed-pie-countdown-container",V:[{Y:"svg",D:"ytp-ad-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},V:[{Y:"circle",D:"ytp-ad-timed-pie-countdown-background",Z:{r:"10",cx:"10",cy:"10"}},{Y:"circle",D:"ytp-ad-timed-pie-countdown-inner",Z:{r:"5",cx:"10",cy:"10"}},{Y:"circle",D:"ytp-ad-timed-pie-countdown-outer",Z:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",q,T,Y,e);this.T=this.Qv("ytp-ad-timed-pie-countdown-container");this.j=this.Qv("ytp-ad-timed-pie-countdown-inner"); this.X=this.Qv("ytp-ad-timed-pie-countdown-outer");this.U=Math.ceil(2*Math.PI*5);this.hide()}; UH7=function(d,q,T,Y,e,U){sx.call(this,d,{Y:"div",D:"ytp-ad-action-interstitial",Z:{tabindex:"0"},V:[{Y:"div",D:"ytp-ad-action-interstitial-background-container"},{Y:"div",D:"ytp-ad-action-interstitial-slot",V:[{Y:"div",D:"ytp-ad-action-interstitial-instream-info"},{Y:"div",D:"ytp-ad-action-interstitial-card",V:[{Y:"div",D:"ytp-ad-action-interstitial-image-container"},{Y:"div",D:"ytp-ad-action-interstitial-headline-container"},{Y:"div",D:"ytp-ad-action-interstitial-description-container"},{Y:"div", D:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",q,T,Y);this.C_=e;this.jO=U;this.navigationEndpoint=this.G=this.skipButton=this.U=this.actionButton=null;this.RU=this.Qv("ytp-ad-action-interstitial-instream-info");this.aU=this.Qv("ytp-ad-action-interstitial-image-container");this.K=new kP(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,"ytp-ad-action-interstitial-image");g.C(this,this.K);this.K.IU(this.aU);this.z2=this.Qv("ytp-ad-action-interstitial-headline-container"); this.X=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,"ytp-ad-action-interstitial-headline");g.C(this,this.X);this.X.IU(this.z2);this.UD=this.Qv("ytp-ad-action-interstitial-description-container");this.j=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,"ytp-ad-action-interstitial-description");g.C(this,this.j);this.j.IU(this.UD);this.Bv=this.Qv("ytp-ad-action-interstitial-background-container");this.qk=new kP(this.api,this.layoutId,this.interactionLoggingClientData, this.Nk,"ytp-ad-action-interstitial-background",!0);g.C(this,this.qk);this.qk.IU(this.Bv);this.Fw=this.Qv("ytp-ad-action-interstitial-action-button-container");this.slot=this.Qv("ytp-ad-action-interstitial-slot");this.mj=this.Qv("ytp-ad-action-interstitial-card");this.T=new cu;g.C(this,this.T);this.hide()}; bNj=function(d){var q=g.bY("html5-video-player");q&&g.ep(q,"ytp-ad-display-override",d)}; $HB=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-overlay-slot",V:[{Y:"div",D:"ytp-ad-overlay-container"}]},"invideo-overlay",q,T,Y);this.K=[];this.Bv=this.z2=this.T=this.Fw=this.RU=null;this.qk=!1;this.X=null;this.UD=0;d=this.Qv("ytp-ad-overlay-container");this.aU=new Yo(d,45E3,6E3,.3,.4);g.C(this,this.aU);this.j=Xg_(this);g.C(this,this.j);this.j.IU(d);this.U=JYl(this);g.C(this,this.U);this.U.IU(d);this.G=sQ7(this);g.C(this,this.G);this.G.IU(d);this.hide()}; Xg_=function(d){var q=new g.Ji({Y:"div",D:"ytp-ad-text-overlay",V:[{Y:"div",D:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",D:"ytp-ad-overlay-close-container",V:[{Y:"button",D:"ytp-ad-overlay-close-button",V:[Ox(g2N)]}]},{Y:"div",D:"ytp-ad-overlay-title",j5:"{{title}}"},{Y:"div",D:"ytp-ad-overlay-desc",j5:"{{description}}"},{Y:"div",hF:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],j5:"{{displayUrl}}"}]});d.W(q.Qv("ytp-ad-overlay-title"),"click",function(T){Zr(d,q.element,T)}); d.W(q.Qv("ytp-ad-overlay-link"),"click",function(T){Zr(d,q.element,T)}); d.W(q.Qv("ytp-ad-overlay-close-container"),"click",d.ZR);q.hide();return q}; JYl=function(d){var q=new g.Ji({Y:"div",hF:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{Y:"div",D:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",D:"ytp-ad-overlay-close-container",V:[{Y:"button",D:"ytp-ad-overlay-close-button",V:[Ox(g2N)]}]},{Y:"div",D:"ytp-ad-overlay-text-image",V:[{Y:"img",Z:{src:"{{imageUrl}}"}}]},{Y:"div",D:"ytp-ad-overlay-title",j5:"{{title}}"},{Y:"div",D:"ytp-ad-overlay-desc",j5:"{{description}}"},{Y:"div",hF:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], j5:"{{displayUrl}}"}]});d.W(q.Qv("ytp-ad-overlay-title"),"click",function(T){Zr(d,q.element,T)}); d.W(q.Qv("ytp-ad-overlay-link"),"click",function(T){Zr(d,q.element,T)}); d.W(q.Qv("ytp-ad-overlay-close-container"),"click",d.ZR);d.W(q.Qv("ytp-ad-overlay-text-image"),"click",d.oor);q.hide();return q}; sQ7=function(d){var q=new g.Ji({Y:"div",D:"ytp-ad-image-overlay",V:[{Y:"div",D:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",D:"ytp-ad-overlay-close-container",V:[{Y:"button",D:"ytp-ad-overlay-close-button",V:[Ox(g2N)]}]},{Y:"div",D:"ytp-ad-overlay-image",V:[{Y:"img",Z:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});d.W(q.Qv("ytp-ad-overlay-image"),"click",function(T){Zr(d,q.element,T)}); d.W(q.Qv("ytp-ad-overlay-close-container"),"click",d.ZR);q.hide();return q}; FjN=function(d,q){if(q){var T=g.D(q,VP)||null;T==null?g.Zz(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(q=g.bY("video-ads ytp-ad-module")||null,q==null?g.Zz(Error("Could not locate the root ads container element to attach the ad info dialog.")):(d.z2=new g.Ji({Y:"div",D:"ytp-ad-overlay-ad-info-dialog-container"}),g.C(d,d.z2),d.z2.IU(q),q=new iE(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk,d.z2.element,!1),g.C(d,q),q.init(qP("ad-info-hover-text-button"),T,d.macros), d.X?(q.IU(d.X,0),q.subscribe("f",d.bfr,d),q.subscribe("e",d.YC,d),d.W(d.X,"click",d.awZ),d.W(g.bY("ytp-ad-button",q.element),"click",function(){var Y;if(g.D((Y=g.D(T.button,g.q6))==null?void 0:Y.serviceEndpoint,Y2j))d.qk=d.api.getPlayerState(1)===2,d.api.pauseVideo();else d.api.onAdUxClicked("ad-info-hover-text-button",d.layoutId)}),d.Bv=q):g.Zz(Error("Ad info button container within overlay ad was not present."))))}else g.OL(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; RnE=function(d,q){if(NIN(d,OW)||d.api.isMinimized())return!1;var T=$P(q.title),Y=$P(q.description);if(g.nh(T)||g.nh(Y))return!1;d.createServerVe(d.j.element,q.trackingParams||null);d.j.updateValue("title",$P(q.title));d.j.updateValue("description",$P(q.description));d.j.updateValue("displayUrl",$P(q.displayUrl));q.navigationEndpoint&&g.tE(d.K,q.navigationEndpoint);d.j.show();d.aU.start();d.logVisibility(d.j.element,!0);d.W(d.j.element,"mouseover",function(){d.UD++}); return!0}; xH7=function(d,q){if(NIN(d,OW)||d.api.isMinimized())return!1;var T=$P(q.title),Y=$P(q.description);if(g.nh(T)||g.nh(Y))return!1;d.createServerVe(d.U.element,q.trackingParams||null);d.U.updateValue("title",$P(q.title));d.U.updateValue("description",$P(q.description));d.U.updateValue("displayUrl",$P(q.displayUrl));d.U.updateValue("imageUrl",N8g(q.image));q.navigationEndpoint&&g.tE(d.K,q.navigationEndpoint);d.Fw=q.imageNavigationEndpoint||null;d.U.show();d.aU.start();d.logVisibility(d.U.element,!0); d.W(d.U.element,"mouseover",function(){d.UD++}); return!0}; yYn=function(d,q){if(d.api.isMinimized())return!1;var T=RT1(q.image),Y=T;T.width0?(q=new tm(d.api,d.G), q.IU(d.playerOverlay),g.C(d,q)):(d=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(q)),g.Zz(d))}}else g.Zz(Error("addCommonComponents() needs to be called before starting countdown."))}; ZNj=function(d){function q(T){return{toString:function(){return T()}}} d.macros.SURVEY_LOCAL_TIME_EPOCH_S=q(function(){var T=new Date;return(Math.round(T.valueOf()/1E3)+-1*T.getTimezoneOffset()*60).toString()}); d.macros.SURVEY_ELAPSED_MS=q(function(){return(Date.now()-d.j).toString()})}; ONj=function(d,q,T,Y,e){Be.call(this,d,q,T,Y,"survey-question-multi-select");this.UD=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.X=null;this.hide()}; n2I=function(d,q,T){d.noneOfTheAbove=new E2j(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk);d.noneOfTheAbove.IU(d.answers);d.noneOfTheAbove.init(qP("survey-none-of-the-above"),q,T)}; tD7=function(d){d.U.forEach(function(q){q.G.toggleButton(!1)}); rYL(d,!0)}; rYL=function(d,q){var T=d.T;d=BIN(d);q=q===void 0?!1:q;T.G&&(d?T.G.hide():T.G.show(),q&&T.G instanceof Ru&&!T.G.T&&FYQ(T.G,!1));T.U&&(d?T.U.show():T.U.hide())}; BIN=function(d){return d.U.some(function(q){return q.G.isToggled()})||d.noneOfTheAbove.button.isToggled()}; Kr=function(d,q,T,Y,e){Be.call(this,d,q,T,Y,"survey-question-single-select",function(b){U.api.C().N("supports_multi_step_on_desktop")&&e([b])}); var U=this;this.hide()}; G_=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-survey",V:[{Y:"div",D:"ytp-ad-survey-questions"}]},"survey",q,T,Y);this.questions=[];this.U=[];this.conditioningRules=[];this.G=0;this.X=this.Qv("ytp-ad-survey-questions");this.api.C().N("fix_survey_color_contrast_on_destop")&&this.Qv("ytp-ad-survey").classList.add("color-contrast-fix");this.api.C().N("web_enable_speedmaster")&&this.Qv("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; Ljj=function(d,q){var T=d.U[q],Y;(Y=d.j)==null||Y.dispose();g.D(T,vY)?Kjx(d,g.D(T,vY),d.macros):g.D(T,lV)&&G7j(d,g.D(T,lV),d.macros);d.G=q}; Kjx=function(d,q,T){var Y=new Kr(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk,d.T.bind(d));Y.IU(d.X);Y.init(qP("survey-question-single-select"),q,T);d.api.C().N("supports_multi_step_on_desktop")?d.j=Y:d.questions.push(Y);g.C(d,Y)}; G7j=function(d,q,T){var Y=new ONj(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk,d.T.bind(d));Y.IU(d.X);Y.init(qP("survey-question-multi-select"),q,T);d.api.C().N("supports_multi_step_on_desktop")?d.j=Y:d.questions.push(Y);g.C(d,Y)}; Lr=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-survey-interstitial",V:[{Y:"div",D:"ytp-ad-survey-interstitial-contents",V:[{Y:"div",D:"ytp-ad-survey-interstitial-logo",V:[{Y:"div",D:"ytp-ad-survey-interstitial-logo-image"}]},{Y:"div",D:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",q,T,Y);this.G=this.actionButton=null;this.interstitial=this.Qv("ytp-ad-survey-interstitial");this.U=this.Qv("ytp-ad-survey-interstitial-contents");this.text=this.Qv("ytp-ad-survey-interstitial-text"); this.logoImage=this.Qv("ytp-ad-survey-interstitial-logo-image");this.transition=new g.oh(this,500,!1,300);g.C(this,this.transition)}; k7L=function(d,q){q=q&&LM(q)||"";if(g.nh(q))g.OL(Error("Found ThumbnailDetails without valid image URL"));else{var T=d.style;d=d.style.cssText;var Y=document.implementation.createHTMLDocument("").createElement("DIV");Y.style.cssText=d;d=wPX(Y.style);T.cssText=[d,'background-image:url("'+q+'");'].join("")}}; P_E=function(d){var q=g.bY("html5-video-player");q&&g.ep(q,"ytp-ad-display-override",d)}; k$=function(d,q,T,Y,e,U){U=U===void 0?0:U;Sx.call(this,d,{Y:"div",D:"ytp-preview-ad",V:[{Y:"div",D:"ytp-preview-ad__text"}]},"preview-ad",q,T,Y,e);var b=this;this.UD=U;this.U=0;this.T=-1;this.j=this.Qv("ytp-preview-ad__text");switch(this.UD){case 1:this.j.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.oh(this,400,!1,100,function(){b.hide()}); g.C(this,this.transition);this.hide()}; Pe=function(d,q,T,Y){sx.call(this,d,{Y:"img",D:"ytp-ad-avatar"},"ad-avatar",q,T,Y);this.hide()}; WjR=function(d){switch(d.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}}; We=function(d,q,T,Y,e,U){e=e===void 0?!1:e;U=U===void 0?!1:U;sx.call(this,d,{Y:"button",D:"ytp-ad-button-vm"},"ad-button",q,T,Y);this.buttonText=this.buttonIcon=null;this.hide();this.G=e;this.U=U}; C_n=function(d,q,T,Y,e){Sx.call(this,d,{Y:"div",hF:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{Y:"div",D:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{Y:"div",D:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",q,T,Y,e);this.startMilliseconds=0;this.adAvatar=new Pe(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.adAvatar);yp(this.element,this.adAvatar.element,0);this.headline=new Am(this.api,this.layoutId, this.interactionLoggingClientData,this.Nk);g.C(this,this.headline);this.headline.IU(this.Qv("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.description);this.description.IU(this.Qv("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new We(this.api, this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.adButton);this.adButton.IU(this.element);this.hide()}; Cr=function(d,q,T,Y){sx.call(this,d,{Y:"button",D:"ytp-skip-ad-button",V:[{Y:"div",D:"ytp-skip-ad-button__text"}]},"skip-button",q,T,Y);var e=this;this.U=!1;this.T=this.Qv("ytp-skip-ad-button__text");this.transition=new g.oh(this,500,!1,100,function(){e.hide()}); g.C(this,this.transition);this.G=new Yo(this.element,15E3,5E3,.5,.5,!0);g.C(this,this.G);this.hide()}; u1L=function(d,q,T,Y,e){Sx.call(this,d,{Y:"div",D:"ytp-skip-ad"},"skip-ad",q,T,Y,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.j=new Cr(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.j);this.j.IU(this.element);this.hide()}; uU=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-visit-advertiser-link"},"visit-advertiser-link",q,T,Y);this.hide()}; Dr=function(d,q,T,Y,e){sx.call(this,d,{Y:"div",D:"ytp-ad-player-overlay-layout",V:[{Y:"div",D:"ytp-ad-player-overlay-layout__player-card-container"},{Y:"div",D:"ytp-ad-player-overlay-layout__ad-info-container"},{Y:"div",D:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{Y:"div",D:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",q,T,Y);this.U=e;this.z2=this.Qv("ytp-ad-player-overlay-layout__player-card-container");this.G=this.Qv("ytp-ad-player-overlay-layout__ad-info-container"); this.K=this.Qv("ytp-ad-player-overlay-layout__skip-or-preview-container");this.UD=this.Qv("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; DHB=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-grid-card-text",V:[{Y:"div",D:"ytp-ad-grid-card-text__metadata",V:[{Y:"div",D:"ytp-ad-grid-card-text__metadata__headline"},{Y:"div",D:"ytp-ad-grid-card-text__metadata__description",V:[{Y:"div",D:"ytp-ad-grid-card-text__metadata__description__line"},{Y:"div",D:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{Y:"div",D:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",q,T,Y);this.headline=new Am(this.api,this.layoutId,this.interactionLoggingClientData, this.Nk);g.C(this,this.headline);this.headline.IU(this.Qv("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new We(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!0);g.C(this,this.moreInfoButton);this.moreInfoButton.IU(this.Qv("ytp-ad-grid-card-text__button"))}; wB=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",q,T,Y);this.G=[]}; fr=function(d,q,T,Y,e,U,b){Sx.call(this,d,U,b,q,T,Y,e);this.playerProgressOffsetMs=0;this.U=!1}; wg7=function(d){var q=g.bY("html5-video-player");q&&g.ep(q,"ytp-ad-display-override",d)}; fXc=function(d,q,T,Y,e){fr.call(this,d,q,T,Y,e,{Y:"div",D:"ytp-display-underlay-text-grid-cards",V:[{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container",V:[{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header",V:[{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new wB(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.adGridCardCollection);this.adGridCardCollection.IU(this.Qv("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new We(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.adButton);this.adButton.IU(this.Qv("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.j=this.Qv("ytp-display-underlay-text-grid-cards__content_container");this.T=this.Qv("ytp-display-underlay-text-grid-cards__content_container__header")}; z_=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-details-line"},"ad-details-line",q,T,Y);this.G=[];this.hide()}; iU=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-image-background",V:[{Y:"img",D:"ytp-image-background-image"}]},"image-background",q,T,Y);this.hide()}; znB=function(d,q,T,Y,e){Sx.call(this,d,{Y:"svg",D:"ytp-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},V:[{Y:"circle",D:"ytp-timed-pie-countdown__background",Z:{r:"10",cx:"10",cy:"10"}},{Y:"circle",D:"ytp-timed-pie-countdown__inner",Z:{r:"5",cx:"10",cy:"10"}},{Y:"circle",D:"ytp-timed-pie-countdown__outer",Z:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",q,T,Y,e);this.j=this.Qv("ytp-timed-pie-countdown__inner");this.U=Math.ceil(2*Math.PI*5);this.hide()}; IP=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout",Z:{tabindex:"0"},V:[{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content",V:[{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",V:[{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",q,T,Y);this.U=null;this.T=this.Qv("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.j=new cu;g.C(this,this.j);this.hide()}; iNQ=function(d){var q=g.bY("html5-video-player");q&&g.ep(q,"ytp-ad-display-override",d)}; IXn=function(d){if(!d.adAvatar||!g.D(d.adAvatar,mO))return g.Zz(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!d.headline)return g.Zz(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!d.adBadge||!g.D(d.adBadge,Sy))return g.Zz(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!d.adButton||!g.D(d.adButton,lU))return g.Zz(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!d.adInfoRenderer|| !g.D(d.adInfoRenderer,VP))return g.Zz(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;d=d.durationMilliseconds||0;return typeof d!=="number"||d<=0?(g.Zz(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+d)),!1):!0}; ve=function(d,q){q=q===void 0?2:q;g.YP.call(this);this.api=d;this.G=null;this.CC=new cu(this);g.C(this,this.CC);this.U=NO2;this.CC.W(this.api,"presentingplayerstatechange",this.w$);this.G=this.CC.W(this.api,"progresssync",this.Yc);this.f3=q;this.f3===1&&this.Yc()}; oP=function(d,q,T){uE.call(this,d);this.api=d;this.Nk=q;this.components={};d=new g.f({Y:"div",hF:["video-ads","ytp-ad-module"]});g.C(this,d);vx&&g.d9(d.element,"ytp-ads-tiny-mode");this.T=new $y(d.element);g.C(this,this.T);g.o6(this.api,d.element,4);QE(T)&&(T=new g.f({Y:"div",hF:["ytp-ad-underlay"]}),g.C(this,T),this.U=new $y(T.element),g.C(this,this.U),g.o6(this.api,T.element,0));g.C(this,Dsf())}; mHn=function(d,q){d=g.N$(d.components,q.id,null);d==null&&g.OL(Error("Component not found for element id: "+q.id));return d||null}; S6j=function(d){g.na.call(this,d);var q=this;this.U=null;this.created=!1;this.j=d.C().N("h5_use_refactored_get_ad_break")?new uSN(this.player):new IU(this.player);this.T=function(){if(q.U!=null)return q.U;var Y=new mWf({je:pr(q.G).je,kP:pr(q.G).kP,J:q.player,u9:pr(q.G).u9,Hv:q.G.G.Hv,NF:pr(q.G).NF,FC:q.G.G.FC});q.U=Y.KG;return q.U}; this.G=new TI_(this.player,this,this.j,this.T);g.C(this,this.G);var T=d.C();!yz(T)||g.XW(T)||Ni(T)||(g.C(this,new oP(d,pr(this.G).Nk,pr(this.G).u9)),g.C(this,new Y6c(d)))}; lXL=function(d){d.created!==d.loaded&&Jm("Created and loaded are out of sync")}; VD7=function(d){g.na.prototype.load.call(d);var q=pr(d.G).u9;try{d.player.getRootNode().classList.add("ad-created")}catch(F){Jm(F instanceof Error?F:String(F))}var T=d.player.getVideoData(1),Y=T&&T.videoId||"",e=T&&T.getPlayerResponse()||{},U=(e&&e.adPlacements||[]).map(function(F){return F.adPlacementRenderer}),b=((e==null?void 0:e.adSlots)||[]).map(function(F){return g.D(F,ei)}); e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;T&&T.aN();U=v2s(U,b,q,pr(d.G).Bu);b=T&&T.clientPlaybackNonce||"";T=T&&T.Uq||!1;if(Fg(q,!0)&&T){var J;q={};(J=d.player.getVideoData())==null||J.oU("p_cpb",(q.cc=b,q))}J=1E3*d.player.getDuration(1);o2N(d);d.G.G.Da.ej(b,J,T,U.G8,U.s4,U.G8,e,Y)}; o2N=function(d){var q,T;if(T=(q=d.player.getVideoData(1))==null||!q.Uq)q=d.player.C(),T=yz(q)&&!g.xv(q)&&q.playerStyle==="desktop-polymer";T&&(d=d.player.getInternalApi(),d.addEventListener("updateKevlarOrC3Companion",E7Q),d.addEventListener("updateEngagementPanelAction",jJg),d.addEventListener("changeEngagementPanelVisibility",aPY),window.addEventListener("yt-navigate-start",pjg))}; V_=function(d,q){q===d.o9&&(d.o9=void 0)}; dxx=function(d){var q=pr(d.G).Q5,T=q.T().i5("SLOT_TYPE_PLAYER_BYTES",1);q=kx(q.Xw.get(),1).clientPlaybackNonce;var Y=!1;T=g.E(T);for(var e=T.next();!e.done;e=T.next()){e=e.value;var U=e.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e.slotEntryTrigger instanceof fd?e.slotEntryTrigger.oK:void 0;U&&U===q&&(Y&&Jm("More than 1 preroll playerBytes slot detected",e),Y=!0)}Y||gB(pr(d.G).oV)}; qII=function(d){if(qk(pr(d.G).u9))return!0;var q="";d=g.E(pr(d.G).NF.yK.keys());for(var T=d.next();!T.done;T=d.next()){T=T.value;if(T.slotType==="SLOT_TYPE_PLAYER_BYTES"&&T.nf==="core")return!0;q+=T.slotType+" "}Math.random()<.01&&Jm("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:q});return!1}; TLI=function(d){d=g.E(pr(d.G).NF.yK.values());for(var q=d.next();!q.done;q=d.next())if(q.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; zU1=function(d,q,T,Y,e,U,b){T=T===void 0?[]:T;Y=Y===void 0?"":Y;e=e===void 0?"":e;var J=pr(d.G).u9,F=d.player.getVideoData(1);F&&F.getPlayerResponse();F&&F.aN();T=v2s(q,T,J,pr(d.G).Bu);lOn(pr(d.G).pH,Y,T.G8,T.s4,q,e,U,b)}; v2s=function(d,q,T,Y){q={G8:[],s4:q};d=g.E(d);for(var e=d.next();!e.done;e=d.next())if((e=e.value)&&e.renderer!=null){var U=e.renderer;if(!T.J.C().N("html5_enable_vod_lasr_with_notify_pacf")){var b=void 0,J=void 0,F=void 0,N=void 0,R=Y;g.D((N=U.sandwichedLinearAdRenderer)==null?void 0:N.adVideoStart,L6)?(b=g.D((F=U.sandwichedLinearAdRenderer)==null?void 0:F.adVideoStart,L6),b=$_n(b,R),g.K1(U.sandwichedLinearAdRenderer.adVideoStart,L6,b)):g.D((J=U.linearAdSequenceRenderer)==null?void 0:J.adStart,L6)&& (F=g.D((b=U.linearAdSequenceRenderer)==null?void 0:b.adStart,L6),b=$_n(F,R),g.K1(U.linearAdSequenceRenderer.adStart,L6,b))}q.G8.push(e)}return q}; g.dA=function(d){if(typeof DOMParser!="undefined")return An(new DOMParser,PZ1(d),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.qJ=function(d){g.W.call(this);this.callback=d;this.G=new xG(0,0,.4,0,.2,1,1,1);this.delay=new g.uc(this.next,window,this);g.C(this,this.delay)}; g.YIn=function(d){var q=d.C();return q.LC&&!q.j&&g.dn(q)?d.isEmbedsShortsMode()?(d=d.Xb(),Math.min(d.width,d.height)>=315):!d.Rl():!1}; g.To=function(d){g.f.call(this,{Y:"div",D:"ytp-more-videos-view",Z:{tabIndex:"-1"}});var q=this;this.api=d;this.U=!0;this.j=new g.aI(this);this.G=[];this.suggestionData=[];this.columns=this.containerWidth=this.B=this.T=this.scrollPosition=0;this.title=new g.f({Y:"h2",D:"ytp-related-title",j5:"{{title}}"});this.previous=new g.f({Y:"button",hF:["ytp-button","ytp-previous"],Z:{"aria-label":"\u663e\u793a\u4e4b\u524d\u7684\u63a8\u8350\u89c6\u9891"},V:[g.Rh()]});this.L=new g.qJ(function(T){q.suggestions.element.scrollLeft= -T}); this.next=new g.f({Y:"button",hF:["ytp-button","ytp-next"],Z:{"aria-label":"\u663e\u793a\u66f4\u591a\u63a8\u8350\u89c6\u9891"},V:[g.xP()]});g.C(this,this.j);this.X=d.C().T;g.C(this,this.title);this.title.IU(this.element);this.suggestions=new g.f({Y:"div",D:"ytp-suggestions"});g.C(this,this.suggestions);this.suggestions.IU(this.element);g.C(this,this.previous);this.previous.IU(this.element);this.previous.listen("click",this.G1,this);g.C(this,this.L);e7l(this);g.C(this,this.next);this.next.IU(this.element); this.next.listen("click",this.PX,this);this.j.W(this.api,"appresize",this.gz);this.j.W(this.api,"fullscreentoggled",this.xX);this.j.W(this.api,"videodatachange",this.onVideoDataChange);this.gz(this.api.OD().getPlayerSize());this.onVideoDataChange()}; e7l=function(d){for(var q={TK:0};q.TK<16;q={TK:q.TK},++q.TK){var T=new g.f({Y:"a",D:"ytp-suggestion-link",Z:{href:"{{link}}",target:d.api.C().K,"aria-label":"{{aria_label}}"},V:[{Y:"div",D:"ytp-suggestion-image"},{Y:"div",D:"ytp-suggestion-overlay",Z:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{Y:"div",D:"ytp-suggestion-title",j5:"{{title}}"},{Y:"div",D:"ytp-suggestion-author",j5:"{{author_and_views}}"},{Y:"div",Z:{"data-is-live":"{{is_live}}"},D:"ytp-suggestion-duration", j5:"{{duration}}"}]}]});g.C(d,T);var Y=T.Qv("ytp-suggestion-link");g.Dv(Y,"transitionDelay",q.TK/20+"s");d.j.W(Y,"click",function(e){return function(U){var b=e.TK;if(d.U){var J=d.suggestionData[b],F=J.sessionData;d.X&&d.api.N("web_player_log_click_before_generating_ve_conversion_params")?(d.api.logClick(d.G[b].element),b=J.Xk(),J={},g.Sf(d.api,J),b=g.y6(b,J),g.pR(b,d.api,U)):g.AM(U,d.api,d.X,F||void 0)&&d.api.tC(J.videoId,F,J.playlistId)}else U.preventDefault(),document.activeElement.blur()}}(q)); T.IU(d.suggestions.element);d.G.push(T);d.api.createServerVe(T.element,T)}}; UxN=function(d){if(d.api.C().N("web_player_log_click_before_generating_ve_conversion_params"))for(var q=Math.floor(-d.scrollPosition/(d.T+8)),T=Math.min(q+d.columns,d.suggestionData.length)-1;q<=T;q++)d.api.logVisibility(d.G[q].element,!0)}; g.Y0=function(d){var q=d.api.rU()?32:16;q=d.B/2+q;d.next.element.style.bottom=q+"px";d.previous.element.style.bottom=q+"px";q=d.scrollPosition;var T=d.containerWidth-d.suggestionData.length*(d.T+8);g.ep(d.element,"ytp-scroll-min",q>=0);g.ep(d.element,"ytp-scroll-max",q<=T)}; XRq=function(d){for(var q=d.suggestionData.length,T=0;T>>0)+"_",e=0;return q}); gI("Symbol.iterator",function(d){if(d)return d;d=Symbol("Symbol.iterator");for(var q="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),T=0;T0&&T>0;)if(Y[--T]!=q[--e])return!1;return e<=0}}); gI("Array.prototype.find",function(d){return d?d:function(q,T){return Fjf(this,q,T).LP}}); gI("Array.prototype.entries",function(d){return d?d:function(){return fN(this,function(q,T){return[q,T]})}}); gI("Array.prototype.keys",function(d){return d?d:function(){return fN(this,function(q){return q})}}); gI("String.prototype.startsWith",function(d){return d?d:function(q,T){var Y=DX(this,q,"startsWith");q+="";var e=Y.length,U=q.length;T=Math.max(0,Math.min(T|0,Y.length));for(var b=0;b=U}}); gI("Number.isFinite",function(d){return d?d:function(q){return typeof q!=="number"?!1:!isNaN(q)&&q!==Infinity&&q!==-Infinity}}); gI("String.prototype.repeat",function(d){return d?d:function(q){var T=DX(this,null,"repeat");if(q<0||q>1342177279)throw new RangeError("Invalid count value");q|=0;for(var Y="";q;)if(q&1&&(Y+=T),q>>>=1)T+=T;return Y}}); gI("Object.entries",function(d){return d?d:function(q){var T=[],Y;for(Y in q)hY(q,Y)&&T.push([Y,q[Y]]);return T}}); gI("Array.from",function(d){return d?d:function(q,T,Y){T=T!=null?T:function(J){return J}; var e=[],U=typeof Symbol!="undefined"&&Symbol.iterator&&q[Symbol.iterator];if(typeof U=="function"){q=U.call(q);for(var b=0;!(U=q.next()).done;)e.push(T.call(Y,U.value,b++))}else for(U=q.length,b=0;b>>0;if(q===0)return 32;var T=0;(q&4294901760)===0&&(q<<=16,T+=16);(q&4278190080)===0&&(q<<=8,T+=8);(q&4026531840)===0&&(q<<=4,T+=4);(q&3221225472)===0&&(q<<=2,T+=2);(q&2147483648)===0&&T++;return T}}); gI("Number.isNaN",function(d){return d?d:function(q){return typeof q==="number"&&isNaN(q)}}); gI("Array.prototype.values",function(d){return d?d:function(){return fN(this,function(q,T){return T})}}); gI("Array.prototype.fill",function(d){return d?d:function(q,T,Y){var e=this.length||0;T<0&&(T=Math.max(0,e+T));if(Y==null||Y>e)Y=e;Y=Number(Y);Y<0&&(Y=Math.max(0,e+Y));for(T=Number(T||0);T0&&T?T.repeat(Math.ceil(q/T.length)).substring(0,q):"")+Y}}); gI("Array.prototype.findIndex",function(d){return d?d:function(q,T){return Fjf(this,q,T).jg}}); gI("Promise.prototype.finally",function(d){return d?d:function(q){return this.then(function(T){return Promise.resolve(q()).then(function(){return T})},function(T){return Promise.resolve(q()).then(function(){throw T; })})}}); gI("Math.imul",function(d){return d?d:function(q,T){q=Number(q);T=Number(T);var Y=q&65535,e=T&65535;return Y*e+((q>>>16&65535)*e+Y*(T>>>16&65535)<<16>>>0)|0}}); gI("Math.sign",function(d){return d?d:function(q){q=Number(q);return q===0||isNaN(q)?q:q>0?1:-1}}); gI("WeakSet",function(d){function q(T){this.G=new WeakMap;if(T){T=g.E(T);for(var Y;!(Y=T.next()).done;)this.add(Y.value)}} if(function(){if(!d||!Object.seal)return!1;try{var T=Object.seal({}),Y=Object.seal({}),e=new d([T]);if(!e.has(T)||e.has(Y))return!1;e.delete(T);e.add(Y);return!e.has(T)&&e.has(Y)}catch(U){return!1}}())return d; q.prototype.add=function(T){this.G.set(T,!0);return this}; q.prototype.has=function(T){return this.G.has(T)}; q.prototype.delete=function(T){return this.G.delete(T)}; return q}); gI("AggregateError",function(d){function q(T,Y){Y=Error(Y);"stack"in Y&&(this.stack=Y.stack);this.errors=T;this.message=Y.message} if(d)return d;g.M(q,Error);q.prototype.name="AggregateError";return q}); gI("Array.prototype.copyWithin",function(d){function q(T){T=Number(T);return T===Infinity||T===-Infinity?T:T|0} return d?d:function(T,Y,e){var U=this.length;T=q(T);Y=q(Y);e=e===void 0?U:q(e);T=T<0?Math.max(U+T,0):Math.min(T,U);Y=Y<0?Math.max(U+Y,0):Math.min(Y,U);e=e<0?Math.max(U+e,0):Math.min(e,U);if(TY;)--e in this?this[--T]=this[e]:delete this[--T];return this}}); gI("Int8Array.prototype.copyWithin",i_);gI("Uint8Array.prototype.copyWithin",i_);gI("Uint8ClampedArray.prototype.copyWithin",i_);gI("Int16Array.prototype.copyWithin",i_);gI("Uint16Array.prototype.copyWithin",i_);gI("Int32Array.prototype.copyWithin",i_);gI("Uint32Array.prototype.copyWithin",i_);gI("Float32Array.prototype.copyWithin",i_);gI("Float64Array.prototype.copyWithin",i_);gI("Array.prototype.at",function(d){return d?d:mj}); gI("Int8Array.prototype.at",l_);gI("Uint8Array.prototype.at",l_);gI("Uint8ClampedArray.prototype.at",l_);gI("Int16Array.prototype.at",l_);gI("Uint16Array.prototype.at",l_);gI("Int32Array.prototype.at",l_);gI("Uint32Array.prototype.at",l_);gI("Float32Array.prototype.at",l_);gI("Float64Array.prototype.at",l_);gI("String.prototype.at",function(d){return d?d:mj}); gI("Array.prototype.findLastIndex",function(d){return d?d:function(q,T){return NIf(this,q,T).jg}}); gI("Int8Array.prototype.findLastIndex",vg);gI("Uint8Array.prototype.findLastIndex",vg);gI("Uint8ClampedArray.prototype.findLastIndex",vg);gI("Int16Array.prototype.findLastIndex",vg);gI("Uint16Array.prototype.findLastIndex",vg);gI("Int32Array.prototype.findLastIndex",vg);gI("Uint32Array.prototype.findLastIndex",vg);gI("Float32Array.prototype.findLastIndex",vg);gI("Float64Array.prototype.findLastIndex",vg);gI("Number.parseInt",function(d){return d||parseInt});var fK,bQ,xHn;fK=fK||{};g.oQ=this||self;bQ="closure_uid_"+(Math.random()*1E9>>>0);xHn=0;g.Rs(xc,Error);xc.prototype.name="CustomError";var BLg;var E2D,Hz,D7;E2D=Array.prototype.indexOf?function(d,q){return Array.prototype.indexOf.call(d,q,void 0)}:function(d,q){if(typeof d==="string")return typeof q!=="string"||q.length!=1?-1:d.indexOf(q,0); for(var T=0;T=0;T--)if(T in d&&d[T]===q)return T;return-1}; g.Sj=Array.prototype.forEach?function(d,q,T){Array.prototype.forEach.call(d,q,T)}:function(d,q,T){for(var Y=d.length,e=typeof d==="string"?d.split(""):d,U=0;U=.3:this.Rc>=.5};var Zm={Cw5:0,nqg:1},tVn={NONE:0,sQg:1,gqv:2};var k7I="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");H2.prototype.getValue=function(){return this.U}; g.M(Ql,H2);Ql.prototype.j=function(d){this.U===null&&g.$9(this.T,d)&&(this.U=d)}; g.M(M$,H2);M$.prototype.j=function(d){this.U===null&&typeof d==="number"&&(this.U=d)}; g.M(c2,H2);c2.prototype.j=function(d){this.U===null&&typeof d==="string"&&(this.U=d)};EN.prototype.disable=function(){this.U=!1}; EN.prototype.enable=function(){this.U=!0}; EN.prototype.isEnabled=function(){return this.U}; EN.prototype.reset=function(){this.G={};this.U=!0;this.j={}};var f5=document,OM=window;var xxN=Yc(1,!0),P2=Yc(610401301,!1);Yc(899588437,!1);var yEc=Yc(772657768,!1),h7c=Yc(513659523,!1),HBI=Yc(568333945,!1),Vrj=Yc(1331761403,!1);Yc(651175828,!1);Yc(722764542,!1);Yc(748402145,!1);Yc(748402146,!1);var jy7=Yc(748402147,!1);Yc(333098724,!1);Yc(2147483644,!1);Yc(2147483645,!1);Yc(2147483646,xxN);Yc(2147483647,!0);var W2=!!g.qx("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Kh=String.prototype.trim?function(d){return d.trim()}:function(d){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(d)[1]},XRj=/&/g,JE7=//g,$x1=/"/g,gcN=/'/g,Fqn=/\x00/g,bB_=/[\x00&<>"']/;var Dm,Qsq=g.oQ.navigator;Dm=Qsq?Qsq.userAgentData||null:null;var S6D=globalThis.trustedTypes,lw;oT.prototype.toString=function(){return this.G+""};TP.prototype.toString=function(){return this.G}; var o2f=new TP("about:invalid#zClosurez");var Fy1=UD("tel"),$JY=UD("sms"),v2Q=[UD("data"),UD("http"),UD("https"),UD("mailto"),UD("ftp"),new ev(function(d){return/^[^:]*([/?#]|$)/.test(d)})],VDn=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;gt.prototype.toString=function(){return this.G+""};yY.prototype.toString=function(){return this.G+""};cZ.prototype.toString=function(){return this.G};var jv={};g.MjR=String.prototype.repeat?function(d,q){return d.repeat(q)}:function(d,q){return Array(q+1).join(d)};PZ[" "]=function(){};var w_,Ro,NhX,cEL,Ec7,jsR,le,vx,anx;g.o9=iw();g.Jx=wgn();g.DP=fh("Edge");g.AJ=g.DP||g.Jx;w_=fh("Gecko")&&!(B2(g.k9(),"WebKit")&&!fh("Edge"))&&!(fh("Trident")||fh("MSIE"))&&!fh("Edge");g.J4=B2(g.k9(),"WebKit")&&!fh("Edge");Ro=kS();NhX=HB6();g.ID=h72();cEL=GP();Ec7=fh("iPad");jsR=fh("iPod");le=Ln();vx=B2(g.k9(),"KaiOS"); a:{var AEx="",pRB=function(){var d=g.k9();if(w_)return/rv:([^\);]+)(\)|;)/.exec(d);if(g.DP)return/Edge\/([\d\.]+)/.exec(d);if(g.Jx)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(d);if(g.J4)return/WebKit\/(\S+)/.exec(d);if(g.o9)return/(?:Version)[ \/]?(\S+)/.exec(d)}(); pRB&&(AEx=pRB?pRB[1]:"");if(g.Jx){var er,ZBN=g.oQ.document;er=ZBN?ZBN.documentMode:void 0;if(er!=null&&er>parseFloat(AEx)){anx=String(er);break a}}anx=AEx}var Ecn=anx,Mjg={};var fZ,zt;g.Fv=IT();fZ=GP()||fh("iPod");zt=fh("iPad");g.VU=znN();g.MI=mf();g.F8=SY()&&!Ln();var LT7=!g.Jx&&!SY();g.Q=g.wt.prototype;g.Q.clone=function(){return new g.wt(this.x,this.y)}; g.Q.equals=function(d){return d instanceof g.wt&&fn(this,d)}; 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(d,q){this.x*=d;this.y*=typeof q==="number"?q:d;return this};g.Q=g.zP.prototype;g.Q.clone=function(){return new g.zP(this.width,this.height)}; g.Q.aspectRatio=function(){return this.width/this.height}; g.Q.isEmpty=function(){return!Iy(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(d,q){this.width*=d;this.height*=typeof q==="number"?q:d;return this};Sv.prototype.toString=function(){return this.G}; var mn={};new Sv(mn,"");var AEH=/^[a-z][a-z\d-]*$/i,pRN="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),OBn="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),rEj=["action","formaction","href"];var KqI={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=vZ.prototype;g.Q.tA=function(d){return TO(this.G,d)}; g.Q.getElementsByTagName=function(d,q){return(q||this.G).getElementsByTagName(String(d))}; g.Q.Qv=function(d){return g.bY(d,this.G)}; g.Q.setProperties=XE;g.Q.createElement=function(d){return $E(this.G,d)}; g.Q.appendChild=g.Rr;g.Q.append=function(d,q){PQI(oy(d),d,arguments,1)}; g.Q.canHaveChildren=function(d){if(d.nodeType!=1)return!1;switch(d.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.h4;g.Q.getChildren=function(d){return d.children!=void 0?d.children:Array.prototype.filter.call(d.childNodes,function(q){return q.nodeType==1})}; g.Q.contains=g.HB;A4.prototype.now=function(){return 0}; A4.prototype.U=function(){return 0}; A4.prototype.j=function(){return 0}; A4.prototype.G=function(){return 0};g.M(Zv,A4);Zv.prototype.now=function(){return pT()&&OM.performance.now?OM.performance.now():A4.prototype.now.call(this)}; Zv.prototype.U=function(){return pT()&&OM.performance.memory?OM.performance.memory.totalJSHeapSize||0:A4.prototype.U.call(this)}; Zv.prototype.j=function(){return pT()&&OM.performance.memory?OM.performance.memory.usedJSHeapSize||0:A4.prototype.j.call(this)}; Zv.prototype.G=function(){return pT()&&OM.performance.memory?OM.performance.memory.jsHeapSizeLimit||0:A4.prototype.G.call(this)};var Kb6=function(){if(!g.oQ.addEventListener||!Object.defineProperty)return!1;var d=!1,q=Object.defineProperty({},"passive",{get:function(){d=!0}}); try{var T=function(){}; g.oQ.addEventListener("test",T,q);g.oQ.removeEventListener("test",T,q)}catch(Y){}return d}();var KOg=Dxj("AnimationEnd"),tM=Dxj("TransitionEnd");g.Q=GO.prototype;g.Q.getHeight=function(){return this.bottom-this.top}; g.Q.clone=function(){return new GO(this.top,this.right,this.bottom,this.left)}; g.Q.contains=function(d){return this&&d?d instanceof GO?d.left>=this.left&&d.right<=this.right&&d.top>=this.top&&d.bottom<=this.bottom:d.x>=this.left&&d.x<=this.right&&d.y>=this.top&&d.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(d,q){q=typeof q==="number"?q:d;this.left*=d;this.right*=d;this.top*=q;this.bottom*=q;return this};g.Q=g.WB.prototype;g.Q.clone=function(){return new g.WB(this.left,this.top,this.width,this.height)}; g.Q.contains=function(d){return d instanceof g.wt?d.x>=this.left&&d.x<=this.left+this.width&&d.y>=this.top&&d.y<=this.top+this.height:this.left<=d.left&&this.left+this.width>=d.left+d.width&&this.top<=d.top&&this.top+this.height>=d.top+d.height}; g.Q.getSize=function(){return new g.zP(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(d,q){q=typeof q==="number"?q:d;this.left*=d;this.width*=d;this.top*=q;this.height*=q;return this};var fnf={};var lnN=t4(function(){var d=!1;try{var q=Object.defineProperty({},"passive",{get:function(){d=!0}}); g.oQ.addEventListener("test",null,q)}catch(T){}return d});vcj.prototype.isVisible=function(){return YQ(f5)===1};var ihQ=e0(function(d){return typeof d==="number"}),ziQ=e0(function(d){return typeof d==="string"}),ImH=e0(function(d){return typeof d==="boolean"}),Z4=e0(function(d){return d!=null&&typeof d==="object"&&typeof d.then==="function"}),a36=e0(function(d){return typeof d==="function"}),OB7=e0(function(d){return!!d&&(typeof d==="object"||typeof d==="function")});var VjN={q$x:"allow-forms",mMF:"allow-modals",S$w:"allow-orientation-lock",ELw:"allow-pointer-lock",eqw:"allow-popups",nLF:"allow-popups-to-escape-sandbox",NU5:"allow-presentation",Li5:"allow-same-origin",Fiv:"allow-scripts",DMO:"allow-top-navigation",xM5:"allow-top-navigation-by-user-activation"},YNg=t4(function(){return d$j()});var X2I=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");FQ.prototype.Hl=function(d,q,T){d=d+"//"+q+T;var Y=g9Y(this)-T.length;if(Y<0)return"";this.G.sort(function(N,R){return N-R}); T=null;q="";for(var e=0;e=F.length){Y-=F.length;d+=F;q=this.j;break}T=T==null?U:T}}Y="";T!=null&&(Y=""+q+"trn="+T);return d+Y};Mq.prototype.setInterval=function(d,q){return OM.setInterval(d,q)}; Mq.prototype.clearInterval=function(d){OM.clearInterval(d)}; Mq.prototype.setTimeout=function(d,q){return OM.setTimeout(d,q)}; Mq.prototype.clearTimeout=function(d){OM.clearTimeout(d)};var $Y=void 0,J3,IG6=typeof TextDecoder!=="undefined",E97,cz_=typeof String.prototype.isWellFormed==="function",MYn=typeof TextEncoder!=="undefined";var ZhN={},Ow=null,OhI=w_||g.J4||typeof g.oQ.btoa=="function";var Wfj=typeof Uint8Array!=="undefined",Kfn=!g.Jx&&typeof btoa==="function",GXD=/[-_.]/g,tYY={"-":"+",_:"/",".":"="},rv={};np.prototype.isEmpty=function(){return this.G==null}; np.prototype.sizeBytes=function(){var d=Bz(this);return d?d.length:0}; var Pw_;var CwD=void 0;var Pz=typeof Symbol==="function"&&typeof Symbol()==="symbol",ncN=kQ("jas",void 0,!0),xJ=kQ(void 0,"1oa"),rY=kQ(void 0,Symbol()),rEq=kQ(void 0,"0ub"),xXQ=kQ(void 0,"0ubs"),hu6=kQ(void 0,"0ubsb"),Anf=kQ(void 0,"0actk"),ZY=kQ("m_m","yd2",!0),HnI=kQ(void 0,"vps"),tjj=kQ();Math.max.apply(Math,g.RQ(Object.values({gZO:1,Apv:2,xOF:4,Ncg:8,qxw:16,vzr:32,Zxv:64,Gv5:128,DQg:256,U4r:512,Aqw:1024,fpF:2048,XaZ:4096})));var D$I={tQ:{value:0,configurable:!0,writable:!0,enumerable:!1}},uVI=Object.defineProperties,Wz=Pz?ncN:"tQ",qA,BLR=[];u$(BLR,7);qA=Object.freeze(BLR);var OS={},wv={},KnN=Object.freeze({}),i$={};var mA=typeof g.oQ.BigInt==="function"&&typeof g.oQ.BigInt(0)==="bigint";var kj=e0(function(d){return mA?d>=KqL&&d<=GlB:d[0]==="-"?m$j(d,Lqs):m$j(d,kll)}),Lqs=Number.MIN_SAFE_INTEGER.toString(),KqL=mA?BigInt(Number.MIN_SAFE_INTEGER):void 0,kll=Number.MAX_SAFE_INTEGER.toString(),GlB=mA?BigInt(Number.MAX_SAFE_INTEGER):void 0;var DX2=typeof Uint8Array.prototype.slice==="function",oc=0,VC=0,HTg;var yX=typeof BigInt==="function"?BigInt.asIntN:void 0,syI=typeof BigInt==="function"?BigInt.asUintN:void 0,ES=Number.isSafeInteger,sS=Number.isFinite,jE=Math.trunc,VY_=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var QyD={};var PQL={bzf:!0};var Gi;var Mvj,cn2;var kPI=vz(0),r2={};C2.prototype.init=function(d,q,T,Y){var e=Y===void 0?{}:Y;Y=e.Xj===void 0?!1:e.Xj;e=e.Re===void 0?!1:e.Re;this.Xj=Y;this.Re=e;d&&(d=WV(d,this.Re),this.U=d.buffer,this.S=d.G,this.T=q||0,this.j=T!==void 0?this.T+T:this.U.length,this.G=this.T)}; C2.prototype.free=function(){this.clear();mg.length<100&&mg.push(this)}; C2.prototype.clear=function(){this.U=null;this.S=!1;this.G=this.j=this.T=0;this.Xj=!1}; C2.prototype.reset=function(){this.G=this.T}; var mg=[];Ss.prototype.free=function(){this.G.clear();this.U=this.T=-1;lD.length<100&&lD.push(this)}; Ss.prototype.reset=function(){this.G.reset();this.j=this.G.G;this.U=this.T=-1}; var lD=[];var SDj,vSN;Rb.prototype.length=function(){return this.G.length}; Rb.prototype.end=function(){var d=this.G;this.G=[];return d};var j8=c0(),WqQ=c0(),CQs=c0(),u_B=c0(),Dxq=c0(),wR7=c0(),fnN=c0(),z7j=c0(),iBq=c0(),Ins=c0(),mxN=c0();Et.prototype.toJSON=function(){return ul(this)}; Et.prototype.VH=function(d){return JSON.stringify(ul(this,d))}; Et.prototype.clone=function(){var d=this.Kf,q=d[Wz]|0;return zi(this,d,q)?il(this,d,!0):new this.constructor(f$(d,q,!1))}; Et.prototype[ZY]=OS;Et.prototype.toString=function(){return this.Kf.toString()};var XB6=A3(function(d,q,T,Y,e){if(d.U!==2)return!1;ol(d,yw(q,Y,T),e);return!0},bT6),J4I=A3(function(d,q,T,Y,e){if(d.U!==2)return!1; ol(d,yw(q,Y,T),e);return!0},bT6),DL=Symbol(),rz=Symbol(),Kg=Symbol(),RuN=Symbol(),gE6=Symbol(),pg,ZL;var SIR=zU(function(d,q,T){if(d.U!==1)return!1;m3(q,T,iD(d.G));return!0},S8,iBq),lnB=zU(function(d,q,T){if(d.U!==1)return!1; d=iD(d.G);m3(q,T,d===0?void 0:d);return!0},S8,iBq),vcq=zU(function(d,q,T,Y){if(d.U!==1)return!1; NA(q,T,Y,iD(d.G));return!0},S8,iBq),ocj=zU(function(d,q,T){if(d.U!==0)return!1; m3(q,T,Dc(d.G));return!0},lL,fnN),VjB=zU(function(d,q,T){if(d.U!==0)return!1; d=Dc(d.G);m3(q,T,d===0?void 0:d);return!0},lL,fnN),d$q=zU(function(d,q,T,Y){if(d.U!==0)return!1; NA(q,T,Y,Dc(d.G));return!0},lL,fnN),qNR=zU(function(d,q,T){if(d.U!==0)return!1; m3(q,T,w2(d.G));return!0},v0,u_B),Tbx=zU(function(d,q,T){if(d.U!==0)return!1; d=w2(d.G);m3(q,T,d===0?void 0:d);return!0},v0,u_B),YNR=zU(function(d,q,T,Y){if(d.U!==0)return!1; NA(q,T,Y,w2(d.G));return!0},v0,u_B),eiB=zU(function(d,q,T){if(d.U!==1)return!1; m3(q,T,zg(d.G));return!0},function(d,q,T){YM_(d,T,$XX(q))},z7j),U$j=Ib(function(d,q,T){if(d.U!==1&&d.U!==2)return!1; q=JI(q,q[Wz]|0,T);if(d.U==2)for(T=w2(d.G)>>>0,T=d.G.G+T;d.G.G>>0);return!0},function(d,q,T){q=R4(q); q!=null&&q!=null&&(Qu(d,T,0),yu(d.G,q))},Dxq),$0=zU(function(d,q,T){if(d.U!==0)return!1; m3(q,T,w2(d.G));return!0},function(d,q,T){q=Nb(q); q!=null&&(q=parseInt(q,10),Qu(d,T,0),VvN(d.G,q))},mxN);jr2.prototype.register=function(){PZ(this)};g.M(dQ,Et);dQ.prototype.j=A4_([0,lnB,VjB,-2,Tbx]);var B_Q={lt2:1,Ef:2,a5O:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};GO7.prototype.V6=function(d){if(typeof d==="string"&&d.length!=0){var q=this.QU;if(q.U){d=d.split("&");for(var T=d.length-1;T>=0;T--){var Y=d[T].split("="),e=decodeURIComponent(Y[0]);Y.length>1?(Y=decodeURIComponent(Y[1]),Y=/^[0-9]+$/g.exec(Y)?parseInt(Y,10):Y):Y=1;(e=q.G[e])&&e.j(Y)}}}};var gA=null;var bB=g.oQ.performance,Nbl=!!(bB&&bB.mark&&bB.measure&&bB.clearMarks),eG=t4(function(){var d;if(d=Nbl){var q=q===void 0?window:q;if(gA===null){gA="";try{d="";try{d=q.top.location.hash}catch(Y){d=q.location.hash}if(d){var T=d.match(/\bdeid=([\d,]+)/);gA=T?T[1]:""}}catch(Y){}}q=gA;d=!!q.indexOf&&q.indexOf("1337")>=0}return d}); Ub.prototype.disable=function(){this.G=!1;this.events!==this.U.google_js_reporting_queue&&(eG()&&g.Sj(this.events,uE6),this.events.length=0)}; Ub.prototype.start=function(d,q){if(!this.G)return null;var T=WZn()||PYD();d=new CYY(d,q,T);q="goog_"+d.label+"_"+d.uniqueId+"_start";bB&&eG()&&bB.mark(q);return d}; Ub.prototype.end=function(d){if(this.G&&typeof d.value==="number"){var q=WZn()||PYD();d.duration=q-d.value;q="goog_"+d.label+"_"+d.uniqueId+"_end";bB&&eG()&&bB.mark(q);!this.G||this.events.length>2048||this.events.push(d)}};var DQn=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Q6=/#|$/,mQj=/[?&]($|#)/;lv6.prototype.RT=function(d,q,T,Y,e){e=e||this.g7;try{var U=new FQ;U.G.push(1);U.U[1]=Nq("context",d);q.error&&q.meta&&q.id||(q=new p5(Z7(q)));if(q.msg){var b=q.msg.substring(0,512);U.G.push(2);U.U[2]=Nq("msg",b)}var J=q.meta||{};if(this.CU)try{this.CU(J)}catch(h){}if(Y)try{Y(J)}catch(h){}Y=[J];U.G.push(3);U.U[3]=Y;var F=sT7();if(F.U){var N=F.U.url||"";U.G.push(4);U.U[4]=Nq("top",N)}var R={url:F.G.url||""};if(F.G.url){var x=g.Jq(F.G.url);var y=Xm(x[1],null,x[3],x[4])}else y="";N=[R,{url:y}];U.G.push(5); U.U[5]=N;LZ7(this.G,e,U,T)}catch(h){try{LZ7(this.G,e,{context:"ecmserr",rctx:d,msg:Z7(h),url:F&&F.G.url},T)}catch(H){}}return this.K_}; g.M(p5,kOH);var aq,Aq,jG=new Ub;aq=new function(){var d="https:";OM&&OM.location&&OM.location.protocol==="http:"&&(d="http:");this.U=d;this.G=.01}; Aq=new lv6;OM&&OM.document&&(OM.document.readyState=="complete"?oEY():jG.G&&TI(OM,"load",function(){oEY()}));var qwN=Date.now(),G3=-1,BK=-1,$AN,L5=-1,K5=!1;kf.prototype.equals=function(d,q){return!!d&&(!(q===void 0?0:q)||this.volume==d.volume)&&this.j==d.j&&kE(this.G,d.G)&&!0};PK.prototype.tA=function(){return this.L}; PK.prototype.equals=function(d,q){return this.T.equals(d.T,q===void 0?!1:q)&&this.L==d.L&&kE(this.j,d.j)&&kE(this.X,d.X)&&this.G==d.G&&this.S==d.S&&this.U==d.U&&this.B==d.B};var Rij={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},ip={JR:"start",Ow:"firstquartile",tR:"midpoint",Ro:"thirdquartile",COMPLETE:"complete",ERROR:"error",Mm:"metric",PAUSE:"pause",sf:"resume",Hb:"skip",SW:"viewable_impression",pK:"mute",qm:"unmute",CG:"fullscreen",Zg:"exitfullscreen",Fm:"bufferstart",LG:"bufferfinish",kJ:"fully_viewable_audible_half_duration_impression",Qd:"measurable_impression",Rr:"abandon",Bi:"engagedview",Vx:"impression",A$:"creativeview",LOADED:"loaded", i3v:"progress",CLOSE:"close",WVO:"collapse",gzg:"overlay_resize",WBv:"overlay_unmeasurable_impression",Bcw:"overlay_unviewable_impression",Opk:"overlay_viewable_immediate_impression",Zpf:"overlay_viewable_end_of_session_impression",g$:"custom_metric_viewable",SQ:"audio_audible",eQ:"audio_measurable",Ew:"audio_impression"},c31="start firstquartile midpoint thirdquartile resume loaded".split(" "),EYX=["start","firstquartile","midpoint","thirdquartile"],Fg7=["abandon"],Fz={UNKNOWN:-1,JR:0,Ow:1,tR:2, Ro:3,COMPLETE:4,Mm:5,PAUSE:6,sf:7,Hb:8,SW:9,pK:10,qm:11,CG:12,Zg:13,kJ:14,Qd:15,Rr:16,Bi:17,Vx:18,A$:19,LOADED:20,g$:21,Fm:22,LG:23,Ew:27,eQ:28,SQ:29};var YwH={aff:"addEventListener",B45:"getMaxSize",Z8w:"getScreenSize",O8g:"getState",cqr:"getVersion",Ygv:"removeEventListener",W75:"isViewable"};$qD.prototype.update=function(d){d&&d.document&&(this.L=WK(!1,d,this.isMobileDevice),this.G=WK(!0,d,this.isMobileDevice),FA6(this,d),gQ6(this,d))};iB.prototype.cancel=function(){cz().clearTimeout(this.G);this.G=null}; iB.prototype.schedule=function(){var d=this,q=cz(),T=T3().G.G;this.G=q.setTimeout(qj(T,n5(143,function(){d.U++;d.j.sample()})),Tv_())};g.Q=Iq.prototype;g.Q.mU=function(){return!1}; g.Q.initialize=function(){return this.isInitialized=!0}; g.Q.gD=function(){return this.G.z2}; g.Q.Nc=function(){return this.G.lr}; g.Q.fail=function(d,q){if(!this.lr||(q===void 0?0:q))this.lr=!0,this.z2=d,this.B=0,this.G!=this||lB(this)}; g.Q.getName=function(){return this.G.RU}; g.Q.EX=function(){return this.G.tj()}; g.Q.tj=function(){return{}}; g.Q.Z0=function(){return this.G.B}; g.Q.l7=function(){var d=wQ();d.G=WK(!0,this.j,d.isMobileDevice)}; g.Q.UB=function(){gQ6(wQ(),this.j)}; g.Q.qg=function(){return this.T.G}; g.Q.sample=function(){}; g.Q.isActive=function(){return this.G.X}; g.Q.GK=function(d){var q=this.G;this.G=d.Z0()>=this.B?d:this;q!==this.G?(this.X=this.G.X,lB(this)):this.X!==this.G.X&&(this.X=this.G.X,lB(this))}; g.Q.BZ=function(d){if(d.U===this.G){var q=!this.T.equals(d,this.K);this.T=d;q&&xqY(this)}}; g.Q.c$=function(){return this.K}; g.Q.dispose=function(){this.rO=!0}; g.Q.JF=function(){return this.rO};g.Q=vK.prototype;g.Q.observe=function(){return!0}; g.Q.unobserve=function(){}; g.Q.yA=function(d){this.S=d}; g.Q.dispose=function(){if(!this.JF()){var d=this.U;g.jj(d.S,this);d.K&&this.c$()&&Rkg(d);this.unobserve();this.yv=!0}}; g.Q.JF=function(){return this.yv}; g.Q.EX=function(){return this.U.EX()}; g.Q.Z0=function(){return this.U.Z0()}; g.Q.gD=function(){return this.U.gD()}; g.Q.Nc=function(){return this.U.Nc()}; g.Q.GK=function(){}; g.Q.BZ=function(){this.tv()}; g.Q.c$=function(){return this.rO};g.Q=oq.prototype;g.Q.Z0=function(){return this.G.Z0()}; g.Q.gD=function(){return this.G.gD()}; g.Q.Nc=function(){return this.G.Nc()}; g.Q.create=function(d,q,T){var Y=null;this.G&&(Y=this.PQ(d,q,T),SG(this.G,Y));return Y}; g.Q.oM=function(){return this.Sm()}; g.Q.Sm=function(){return!1}; g.Q.init=function(d){return this.G.initialize()?(SG(this.G,this),this.T=d,!0):!1}; g.Q.GK=function(d){d.Z0()==0&&this.T(d.gD(),this)}; g.Q.BZ=function(){}; g.Q.c$=function(){return!1}; g.Q.dispose=function(){this.S=!0}; g.Q.JF=function(){return this.S}; g.Q.EX=function(){return{}};V6.prototype.add=function(d,q,T){++this.j;d=new hk2(d,q,T);this.G.push(new hk2(d.U,d.G,d.j+this.j/4096));this.U=!0;return this};EQn.prototype.toString=function(){var d="//pagead2.googlesyndication.com//pagead/gen_204",q=q8(this.G);q.length>0&&(d+="?"+q);return d};g.W.prototype.TB=!1;g.W.prototype.JF=function(){return this.TB}; g.W.prototype.dispose=function(){this.TB||(this.TB=!0,this.ir())}; g.W.prototype[Symbol.dispose]=function(){this.dispose()}; g.W.prototype.addOnDisposeCallback=function(d,q){this.TB?q!==void 0?d.call(q):d():(this.Ox||(this.Ox=[]),q&&(d=d.bind(q)),this.Ox.push(d))}; g.W.prototype.ir=function(){if(this.Ox)for(;this.Ox.length;)this.Ox.shift()()};var x$R=[0,ocj,bhn,-1];e9.prototype.update=function(d,q,T){d&&(this.G+=q,this.U+=q,this.T+=q,this.j=Math.max(this.j,this.T));if(T===void 0?!d:T)this.T=0};var AAj=[1,.75,.5,.3,0];UR.prototype.update=function(d,q,T,Y,e,U){U=U===void 0?!0:U;q=e?Math.min(d,q):q;for(e=0;e0&&q>=b;b=!(d>0&&d>=b)||T;this.G[e].update(U&&J,Y,!U||b)}};gD.prototype.update=function(d,q,T,Y){this.L=this.L!=-1?Math.min(this.L,q.Rc):q.Rc;this.UD=Math.max(this.UD,q.Rc);this.yv=this.yv!=-1?Math.min(this.yv,q.Cq):q.Cq;this.z2=Math.max(this.z2,q.Cq);this.kx.update(q.Cq,T.Cq,q.G,d,Y);this.aU+=d;q.Rc===0&&(this.RU+=d);this.U.update(q.Rc,T.Rc,q.G,d,Y);T=Y||T.wZ!=q.wZ?T.isVisible()&&q.isVisible():T.isVisible();q=!q.isVisible()||q.G;this.xx.update(T,d,q)}; gD.prototype.i8=function(){return this.xx.j>=this.Bv};if(f5&&f5.URL){var yzl=f5.URL,hiL;if(hiL=!!yzl){var HhI;a:{if(yzl){var QT_=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Fu=QT_.exec(decodeURIComponent(yzl));if(Fu){HhI=Fu[1]&&Fu[1].length>1?Fu[1].substring(1):"true";break a}}catch(d){}}HhI=""}hiL=HhI.length>0}Aq.K_=!hiL};var MY7=new GO(0,0,0,0);var KTH=new GO(0,0,0,0);g.M(M8,g.W);g.Q=M8.prototype; g.Q.ir=function(){if(this.tp.G){if(this.zw.Fo){var d=this.tp.G;typeof d.removeEventListener==="function"&&d.removeEventListener("mouseover",this.zw.Fo,qq());this.zw.Fo=null}this.zw.LT&&(d=this.tp.G,typeof d.removeEventListener==="function"&&d.removeEventListener("mouseout",this.zw.LT,qq()),this.zw.LT=null)}this.iK&&this.iK.dispose();this.vl&&this.vl.dispose();delete this.fJ;delete this.v5;delete this.Kr;delete this.tp.Qm;delete this.tp.G;delete this.zw;delete this.iK;delete this.vl;delete this.QU; g.W.prototype.ir.call(this)}; g.Q.eE=function(){return this.vl?this.vl.G:this.position}; g.Q.V6=function(d){T3().V6(d)}; g.Q.c$=function(){return!1}; g.Q.KB=function(){return new gD}; g.Q.Rk=function(){return this.fJ}; g.Q.Yn=function(d){return Pl7(this,d,1E4)}; g.Q.S5=function(d,q,T,Y,e,U,b){this.Vh||(this.cC&&(d=this.TF(d,T,e,b),Y=Y&&this.zN.Rc>=(this.wZ()?.3:.5),this.e2(U,d,Y),this.ul=q,d.Rc>0&&-1===this.ue&&(this.ue=q),this.qB==-1&&this.i8()&&(this.qB=q),this.H5==-2&&(this.H5=RO(this.eE())?d.Rc:-1),this.zN=d),this.v5(this))}; g.Q.e2=function(d,q,T){this.Rk().update(d,q,this.zN,T)}; g.Q.Pt=function(){return new vR}; g.Q.TF=function(d,q,T,Y){T=this.Pt();T.G=q;q=cz().U;q=YQ(f5)===0?-1:q.isVisible()?0:1;T.U=q;T.Rc=this.eY(d);T.wZ=this.wZ();T.Cq=Y;return T}; g.Q.eY=function(d){return this.opacity===0&&Az(this.QU,"opac")===1?0:d}; g.Q.wZ=function(){return!1}; g.Q.yG=function(){return this.bJ||this.Hc}; g.Q.qD=function(){tq()}; g.Q.WE=function(){tq()}; g.Q.T3=function(){return 0}; g.Q.i8=function(){return this.fJ.i8()}; g.Q.EY=function(){var d=this.cC;d=(this.hasCompleted||this.JF())&&!d;var q=T3().U!==2||this.mpv;return this.Vh||q&&d?2:this.i8()?4:3}; g.Q.NW=function(){return 0};g.ER.prototype.next=function(){return g.NJ}; g.NJ={done:!0,value:void 0};g.ER.prototype.zp=function(){return this};g.M(fY1,vR);var RS=i$j([void 0,1,2,3,4,8,16]),x0=i$j([void 0,4,8,16]),czQ={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:pF("p0",x0),p1:pF("p1",x0),p2:pF("p2",x0),p3:pF("p3",x0),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Ay("mtos1",[0,2,4],!1,x0),mtos2:Ay("mtos2",[0,2,4],!1,x0),mtos3:Ay("mtos3",[0,2,4],!1,x0),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:pF("a0",x0),a1:pF("a1",x0),a2:pF("a2",x0),a3:pF("a3",x0),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:pF("c0",x0),c1:pF("c1",x0),c2:pF("c2",x0),c3:pF("c3",x0),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:pF("qmtos",RS),qnc:pF("qnc",RS),qmv:pF("qmv",RS),qnv:pF("qnv",RS), 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:pF("ss0",x0),ss1:pF("ss1",x0),ss2:pF("ss2",x0),ss3:pF("ss3",x0),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"},E9l=Object.assign({},czQ,{avid:nT("audio"),avas:"avas",vs:"vs"}),jTq={atos:"atos",avt:Ay("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(d,q){return function(T){return T[d]===void 0&&q!==void 0?q:T[d]}}("ss",0), t:"t"};rD.prototype.getValue=function(){return this.U}; rD.prototype.update=function(d,q){d>=32||(this.G&1<=.5;uB(q.volume)&&(this.T=this.T!=-1?Math.min(this.T,q.volume):q.volume,this.X=Math.max(this.X,q.volume));U&&(this.rO+=d,this.K+=e?d:0);this.G.update(q.Rc,T.Rc,q.G,d,Y,e);this.j.update(!0,d);this.S.update(e,d);this.lr.update(T.fullscreen,d);this.wO.update(e&&!U,d);d=Math.floor(q.mediaTime/1E3);this.dO.update(d,q.isVisible());this.Fw.update(d,q.Rc>=1);this.AF.update(d, aO(q))}};oj6.prototype.U=function(d){this.j||(this.G(d)?(d=sbI(this.K,this.T,d),this.S|=d,d=d==0):d=!1,this.j=d)};g.M(G1,oj6);G1.prototype.G=function(){return!0}; G1.prototype.X=function(){return!1}; G1.prototype.getId=function(){var d=this,q=gb(ip,function(T){return T==d.T}); return Fz[q].toString()}; G1.prototype.toString=function(){var d="";this.X()&&(d+="c");this.j&&(d+="s");this.S>0&&(d+=":"+this.S);return this.getId()+d};g.M(LF,G1);LF.prototype.U=function(d,q){q=q===void 0?null:q;q!=null&&this.L.push(q);G1.prototype.U.call(this,d)};g.M(kt,VE2);kt.prototype.U=function(){return null}; kt.prototype.j=function(){return[]};g.M(P5,vK);g.Q=P5.prototype;g.Q.MX=function(){if(this.element){var d=this.element,q=this.U.G.j;try{try{var T=Xz1(d.getBoundingClientRect())}catch(N){T=new GO(0,0,0,0)}var Y=T.right-T.left,e=T.bottom-T.top,U=InQ(d,q),b=U.x,J=U.y;var F=new GO(Math.round(J),Math.round(b+Y),Math.round(J+e),Math.round(b))}catch(N){F=MY7.clone()}this.j=F;this.G=y01(this,this.j)}}; g.Q.Z9=function(){this.X=this.U.T.G}; g.Q.uQ=function(d){var q=Az(this.QU,"od")==1;return BYH(d,this.X,this.element,q)}; g.Q.O4=function(){this.timestamp=tq()}; g.Q.tv=function(){this.O4();this.MX();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var d=this.element;var q=new g.zP(d.videoWidth,d.videoHeight);d=this.G;var T=LT(d),Y=d.getHeight(),e=q.width;q=q.height;e<=0||q<=0||T<=0||Y<=0||(e/=q,q=T/Y,d=d.clone(),e>q?(T/=e,Y=(Y-T)/2,Y>0&&(Y=d.top+Y,d.top=Math.round(Y),d.bottom=Math.round(Y+T))):(Y*=e,T=Math.round((T-Y)/2),T>0&&(T=d.left+T,d.left=Math.round(T),d.right=Math.round(T+Y))));this.G=d}this.Z9(); d=this.G;T=this.X;d=d.left<=T.right&&T.left<=d.right&&d.top<=T.bottom&&T.top<=d.bottom?new GO(Math.max(d.top,T.top),Math.min(d.right,T.right),Math.min(d.bottom,T.bottom),Math.max(d.left,T.left)):new GO(0,0,0,0);T=d.top>=d.bottom||d.left>=d.right?new GO(0,0,0,0):d;d=this.U.T;q=e=Y=0;if((this.G.bottom-this.G.top)*(this.G.right-this.G.left)>0)if(this.uQ(T))T=new GO(0,0,0,0);else{Y=wQ().T;q=new GO(0,Y.height,Y.width,0);var U;Y=xt(T,(U=this.S)!=null?U:this.G);e=xt(T,wQ().G);q=xt(T,q)}U=T.top>=T.bottom|| T.left>=T.right?new GO(0,0,0,0):PB(T,-this.G.left,-this.G.top);z3()||(e=Y=0);this.K=new PK(d,this.element,this.G,U,Y,e,this.timestamp,q)}; g.Q.getName=function(){return this.U.getName()};var amL=new GO(0,0,0,0);g.M(W5,P5);g.Q=W5.prototype;g.Q.observe=function(){this.T();return!0}; g.Q.BZ=function(){P5.prototype.tv.call(this)}; g.Q.O4=function(){}; g.Q.MX=function(){}; g.Q.tv=function(){this.T();P5.prototype.tv.call(this)}; g.Q.GK=function(d){d=d.isActive();d!==this.B&&(d?this.T():(wQ().G=new GO(0,0,0,0),this.G=new GO(0,0,0,0),this.X=new GO(0,0,0,0),this.timestamp=-1));this.B=d};var yS={},sl2=(yS.firstquartile=0,yS.midpoint=1,yS.thirdquartile=2,yS.complete=3,yS);g.M(up,M8);g.Q=up.prototype;g.Q.c$=function(){return!0}; g.Q.wK=function(){return this.eV==2}; g.Q.Yn=function(d){return Pl7(this,d,Math.max(1E4,this.j/3))}; g.Q.S5=function(d,q,T,Y,e,U,b){var J=this,F=this.L(this)||{};g.hz(F,e);this.j=F.duration||this.j;this.K=F.isVpaid||this.K;this.RU=F.isYouTube||this.RU;cz();this.kx=!1;e=qyf(this,q);dA1(this)===1&&(U=e);M8.prototype.S5.call(this,d,q,T,Y,F,U,b);this.QY&&this.QY.j&&g.Sj(this.X,function(N){N.U(J)})}; g.Q.e2=function(d,q,T){M8.prototype.e2.call(this,d,q,T);fF(this).update(d,q,this.zN,T);this.Bv=aO(this.zN)&&aO(q);this.z2==-1&&this.Fw&&(this.z2=this.Rk().j.G);this.Dh.j=0;d=this.i8();q.isVisible()&&nF(this.Dh,"vs");d&&nF(this.Dh,"vw");uB(q.volume)&&nF(this.Dh,"am");aO(q)?nF(this.Dh,"a"):nF(this.Dh,"mut");this.tO&&nF(this.Dh,"f");q.U!=-1&&(nF(this.Dh,"bm"),q.U==1&&(nF(this.Dh,"b"),aO(q)&&nF(this.Dh,"umutb")));aO(q)&&q.isVisible()&&nF(this.Dh,"avs");this.Bv&&d&&nF(this.Dh,"avw");q.Rc>0&&nF(this.Dh, "pv");z1(this,this.Rk().j.G,!0)&&nF(this.Dh,"gdr");sR(this.Rk().U,1)>=2E3&&nF(this.Dh,"pmx");this.kx&&nF(this.Dh,"tvoff")}; g.Q.KB=function(){return new ty}; g.Q.Rk=function(){return this.fJ}; g.Q.Pt=function(){return new fY1}; g.Q.TF=function(d,q,T,Y){d=M8.prototype.TF.call(this,d,q,T,Y===void 0?-1:Y);d.fullscreen=this.tO;d.paused=this.wK();d.volume=T.volume;uB(d.volume)||(this.fn++,q=this.zN,uB(q.volume)&&(d.volume=q.volume));T=T.currentTime;d.mediaTime=T!==void 0&&T>=0?T:-1;return d}; g.Q.eY=function(d){return wQ(),this.tO?1:M8.prototype.eY.call(this,d)}; g.Q.T3=function(){return 1}; g.Q.getDuration=function(){return this.j}; g.Q.EY=function(){return this.Vh?2:YyH(this)?5:this.i8()?4:3}; g.Q.NW=function(){return this.wO?this.Rk().S.j>=2E3?4:3:2}; g.Q.yA=function(d){this.vl&&this.vl.yA(d)};var Azq=g.F_();MsQ.prototype.reset=function(){this.G=[];this.U=[]}; var v5=QC(MsQ);g.M(dS,oq);g.Q=dS.prototype;g.Q.getName=function(){return(this.U?this.U:this.G).getName()}; g.Q.EX=function(){return(this.U?this.U:this.G).EX()}; g.Q.Z0=function(){return(this.U?this.U:this.G).Z0()}; g.Q.init=function(d){var q=!1;(0,g.Sj)(this.j,function(T){T.initialize()&&(q=!0)}); q&&(this.T=d,SG(this.G,this));return q}; g.Q.dispose=function(){(0,g.Sj)(this.j,function(d){d.dispose()}); oq.prototype.dispose.call(this)}; g.Q.oM=function(){return D7(this.j,function(d){return d.mU()})}; g.Q.Sm=function(){return D7(this.j,function(d){return d.mU()})}; g.Q.PQ=function(d,q,T){return new P5(d,this.G,q,T)}; g.Q.BZ=function(d){this.U=d.U};var nJY={threshold:[0,.3,.5,.75,1]};g.M(q5,P5);g.Q=q5.prototype;g.Q.observe=function(){var d=this;this.UD||(this.UD=tq());if(dqN(298,function(){return rIX(d)}))return!0; this.U.fail("msf");return!1}; g.Q.unobserve=function(){if(this.T&&this.element)try{this.T.unobserve(this.element),this.B?(this.B.unobserve(this.element),this.B=null):this.L&&(this.L.disconnect(),this.L=null)}catch(d){}}; g.Q.tv=function(){var d=Ts(this);d.length>0&&Y3(this,d);P5.prototype.tv.call(this)}; g.Q.MX=function(){}; g.Q.uQ=function(){return!1}; g.Q.Z9=function(){}; g.Q.EX=function(){var d={};return Object.assign(this.U.EX(),(d.niot_obs=this.UD,d.niot_cbk=this.lr,d))}; g.Q.getName=function(){return"nio"};g.M(eI,oq);eI.prototype.getName=function(){return"nio"}; eI.prototype.Sm=function(){return!wQ().U&&this.G.G.j.IntersectionObserver!=null}; eI.prototype.PQ=function(d,q,T){return new q5(d,this.G,q,T)};g.M(Ur,Iq);Ur.prototype.qg=function(){return wQ().G}; Ur.prototype.mU=function(){var d=B2f();this.B!==d&&(this.G!=this&&d>this.G.B&&(this.G=this,lB(this)),this.B=d);return d==2};b3.prototype.sample=function(){sr(this,oO(),!1)}; b3.prototype.T=function(){var d=z3(),q=tq();d?(K5||(G3=q,g.Sj(v5.G,function(T){var Y=T.Rk();Y.qk=B5(Y,q,T.eV!=1)})),K5=!0):(this.L=PDH(this,q),K5=!1,$AN=q,g.Sj(v5.G,function(T){T.cC&&(T.Rk().B=q)})); sr(this,oO(),!d)}; var Xz=QC(b3);var CDI=null,k3="",tD=!1;var wVg=DAX().WO,gS=DAX().Z7;var i21={N4w:"visible",y0w:"audible",iSF:"time",TKD:"timetype"},IcY={visible:function(d){return/^(100|[0-9]{1,2})$/.test(d)}, audible:function(d){return d=="0"||d=="1"}, timetype:function(d){return d=="mtos"||d=="tos"}, time:function(d){return/^(100|[0-9]{1,2})%$/.test(d)||/^([0-9])+ms$/.test(d)}}; zZf.prototype.setTime=function(d,q,T){q=="ms"?(this.j=d,this.T=-1):(this.j=-1,this.T=d);this.S=T===void 0?"tos":T;return this};g.M(x3,G1);x3.prototype.getId=function(){return this.L}; x3.prototype.X=function(){return!0}; x3.prototype.G=function(d){var q=d.Rk(),T=d.getDuration();return D7(this.B,function(Y){if(Y.G!=void 0)var e=SyI(Y,q);else b:{switch(Y.S){case "mtos":e=Y.U?q.S.j:q.j.G;break b;case "tos":e=Y.U?q.S.G:q.j.G;break b}e=0}e==0?Y=!1:(Y=Y.j!=-1?Y.j:T!==void 0&&T>0?Y.T*T:-1,Y=Y!=-1&&e>=Y);return Y})};g.M(yc,mbn);yc.prototype.G=function(d){var q=new IYY;q.G=OR(d,czQ);q.U=OR(d,jTq);return q};g.M(hD,G1);hD.prototype.G=function(d){return YyH(d)};g.M(H3,VE2);g.M(Qc,G1);Qc.prototype.G=function(d){return d.Rk().i8()};g.M(M5,LF);M5.prototype.G=function(d){var q=g.cR(this.L,Az(T3().QU,"ovms"));return!d.Vh&&(d.eV!=0||q)};g.M(c3,H3);c3.prototype.U=function(){return new M5(this.G)}; c3.prototype.j=function(){return[new Qc("viewable_impression",this.G),new hD(this.G)]};g.M(Er,W5);Er.prototype.T=function(){var d=g.qx("ima.admob.getViewability"),q=Az(this.QU,"queryid");typeof d==="function"&&q&&d(q)}; Er.prototype.getName=function(){return"gsv"};g.M(jI,oq);jI.prototype.getName=function(){return"gsv"}; jI.prototype.Sm=function(){var d=wQ();T3();return d.U&&!1}; jI.prototype.PQ=function(d,q,T){return new Er(this.G,q,T)};g.M(aL,W5);aL.prototype.T=function(){var d=this,q=g.qx("ima.bridge.getNativeViewability"),T=Az(this.QU,"queryid");typeof q==="function"&&T&&q(T,function(Y){g.FV(Y)&&d.L++;var e=Y.opt_nativeViewVisibleBounds||{},U=Y.opt_nativeViewHidden;d.G=J0Q(Y.opt_nativeViewBounds||{});var b=d.U.T;b.G=U?amL.clone():J0Q(e);d.timestamp=Y.opt_nativeTime||-1;wQ().G=b.G;Y=Y.opt_nativeVolume;Y!==void 0&&(b.volume=Y)})}; aL.prototype.getName=function(){return"nis"};g.M(AD,oq);AD.prototype.getName=function(){return"nis"}; AD.prototype.Sm=function(){var d=wQ();T3();return d.U&&!1}; AD.prototype.PQ=function(d,q,T){return new aL(this.G,q,T)};g.M(pJ,Iq);g.Q=pJ.prototype;g.Q.mU=function(){return this.U.oi!=null}; g.Q.tj=function(){var d={};this.dO&&(d.mraid=this.dO);this.yv&&(d.mlc=1);d.mtop=this.U.POf;this.L&&(d.mse=this.L);this.aU&&(d.msc=1);d.mcp=this.U.compatibility;return d}; g.Q.gf=function(d){var q=g.CN.apply(1,arguments);try{return this.U.oi[d].apply(this.U.oi,q)}catch(T){rQ(538,T,.01,function(Y){Y.method=d})}}; g.Q.initialize=function(){var d=this;if(this.isInitialized)return!this.Nc();this.isInitialized=!0;if(this.U.compatibility===2)return this.L="ng",this.fail("w"),!1;if(this.U.compatibility===1)return this.L="mm",this.fail("w"),!1;wQ().B=!0;this.j.document.readyState&&this.j.document.readyState=="complete"?VsQ(this):N8(this.j,"load",function(){cz().setTimeout(n5(292,function(){return VsQ(d)}),100)},292); return!0}; g.Q.l7=function(){var d=wQ(),q=eRg(this,"getMaxSize");d.G=new GO(0,q.width,q.height,0)}; g.Q.UB=function(){wQ().T=eRg(this,"getScreenSize")}; g.Q.dispose=function(){qt7(this);Iq.prototype.dispose.call(this)};var nE6=new function(d,q){this.key=d;this.defaultValue=q===void 0?!1:q;this.valueType="boolean"}("45378663");g.Q=Or.prototype;g.Q.Qa=function(d){c5(d,!1);acQ(d)}; g.Q.i4=function(){}; g.Q.R$=function(d,q,T,Y){var e=this;d=new up(OM,d,T?q:-1,7,this.Bz(),this.Hk());d.UN=Y;P_Y(d.QU);aT(d.QU,"queryid",d.UN);d.V6("");ueQ(d,function(){return e.Aj.apply(e,g.RQ(g.CN.apply(0,arguments)))},function(){return e.ZM.apply(e,g.RQ(g.CN.apply(0,arguments)))}); (Y=QC(Vg).G)&&ki6(d,Y);this.j&&(d.yA(this.j),this.j=null);d.tp.Qm&&QC(Kg_);return d}; g.Q.GK=function(d){switch(d.Z0()){case 0:if(d=QC(Vg).G)d=d.G,g.jj(d.S,this),d.K&&this.c$()&&Rkg(d);rS();break;case 2:JD()}}; g.Q.BZ=function(){}; g.Q.c$=function(){return!1}; g.Q.ZM=function(d,q){d.Vh=!0;switch(d.T3()){case 1:$Vn(d,q);break;case 2:this.jy(d)}}; g.Q.GL=function(d){var q=d.L(d);q&&(q=q.volume,d.wO=uB(q)&&q>0);b2Y(d,0);return IO(d,"start",z3())}; g.Q.ZV=function(d,q,T){sr(Xz,[d],!z3());return this.yj(d,q,T)}; g.Q.yj=function(d,q,T){return IO(d,T,z3())}; g.Q.kW=function(d){return u3(d,"firstquartile",1)}; g.Q.KI=function(d){d.Fw=!0;return u3(d,"midpoint",2)}; g.Q.fV=function(d){return u3(d,"thirdquartile",3)}; g.Q.O3=function(d){var q=u3(d,"complete",4);Dl(d);return q}; g.Q.cI=function(d){d.eV=3;return IO(d,"error",z3())}; g.Q.hn=function(d,q,T){q=z3();if(d.wK()&&!q){var Y=d.Rk(),e=tq();Y.B=e}sr(Xz,[d],!q);d.wK()&&(d.eV=1);return IO(d,T,q)}; g.Q.Pc=function(d,q){q=this.ZV(d,q||{},"skip");Dl(d);return q}; g.Q.V7=function(d,q){c5(d,!0);return this.ZV(d,q||{},"fullscreen")}; g.Q.CI=function(d,q){c5(d,!1);return this.ZV(d,q||{},"exitfullscreen")}; g.Q.xC=function(d,q,T){q=d.Rk();var Y=tq();q.qk=B5(q,Y,d.eV!=1);sr(Xz,[d],!z3());d.eV==1&&(d.eV=2);return IO(d,T,z3())}; g.Q.w2=function(d){sr(Xz,[d],!z3());return d.U()}; g.Q.XY=function(d){sr(Xz,[d],!z3());this.jJ(d);Dl(d);return d.U()}; g.Q.Aj=function(){}; g.Q.jy=function(){}; g.Q.jJ=function(){}; g.Q.jG=function(){}; g.Q.ZF=function(){}; g.Q.Hk=function(){this.G||(this.G=this.ZF());return this.G==null?new kt:new c3(this.G)}; g.Q.Bz=function(){return new yc};g.M(DU,G1);DU.prototype.G=function(d){return d.NW()==4};g.M(wS,LF);wS.prototype.G=function(d){d=d.NW();return d==3||d==4};g.M(fJ,H3);fJ.prototype.U=function(){return new wS(this.G)}; fJ.prototype.j=function(){return[new DU(this.G)]};g.M(zs,mbn);zs.prototype.G=function(d){d&&(d.e===28&&(d=Object.assign({},d,{avas:3})),d.vs===4||d.vs===5)&&(d=Object.assign({},d,{vs:3}));var q=new IYY;q.G=OR(d,E9l);q.U=OR(d,jTq);return q};RRI.prototype.U=function(){return g.qx(this.G)};g.M(i3,Or);g.Q=i3.prototype;g.Q.i4=function(d,q){var T=this,Y=QC(Vg);if(Y.G!=null)switch(Y.G.getName()){case "nis":var e=Hgg(this,d,q);break;case "gsv":e=hRf(this,d,q);break;case "exc":e=Qb6(this,d)}e||(q.opt_overlayAdElement?e=void 0:q.opt_adElement&&(e=F37(this,d,q.opt_adElement,q.opt_osdId)));e&&e.T3()==1&&(e.L==g.r_&&(e.L=function(U){return T.jG(U)}),y3I(this,e,q)); return e}; g.Q.jG=function(d){d.U=0;d.rO=0;if(d.T=="h"||d.T=="n"){T3();d.AF&&(T3(),W3(this)!="h"&&W3(this));var q=g.qx("ima.common.getVideoMetadata");if(typeof q==="function")try{var T=q(d.UN)}catch(e){d.U|=4}else d.U|=2}else if(d.T=="b")if(q=g.qx("ytads.bulleit.getVideoMetadata"),typeof q==="function")try{T=q(d.UN)}catch(e){d.U|=4}else d.U|=2;else if(d.T=="ml")if(q=g.qx("ima.common.getVideoMetadata"),typeof q==="function")try{T=q(d.UN)}catch(e){d.U|=4}else d.U|=2;else d.U|=1;d.U||(T===void 0?d.U|=8:T===null? d.U|=16:g.FV(T)?d.U|=32:T.errorCode!=null&&(d.rO=T.errorCode,d.U|=64));T==null&&(T={});q=T;d.B=0;for(var Y in Rij)q[Y]==null&&(d.B|=Rij[Y]);NzI(q,"currentTime");NzI(q,"duration");uB(T.volume)&&uB()&&(T.volume*=NaN);return T}; g.Q.ZF=function(){T3();W3(this)!="h"&&W3(this);var d=M86(this);return d!=null?new RRI(d):null}; g.Q.jy=function(d){!d.G&&d.Vh&&CJ(this,d,"overlay_unmeasurable_impression")&&(d.G=!0)}; g.Q.jJ=function(d){d.Bw&&(d.i8()?CJ(this,d,"overlay_viewable_end_of_session_impression"):CJ(this,d,"overlay_unviewable_impression"),d.Bw=!1)}; g.Q.Aj=function(){}; g.Q.R$=function(d,q,T,Y){if(r42()){var e=Az(T3().QU,"mm"),U={};(e=(U[Yf.mX]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",U[Yf.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",U)[e])&&aLj(this,e);this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&rQ(1044,Error())}d=Or.prototype.R$.call(this,d,q,T,Y);this.S&&(q=this.X,d.S==null&&(d.S=new Dbf),q.G[d.UN]=d.S,d.S.S=Azq);return d}; g.Q.Qa=function(d){d&&d.T3()==1&&this.S&&delete this.X.G[d.UN];return Or.prototype.Qa.call(this,d)}; g.Q.Hk=function(){this.G||(this.G=this.ZF());return this.G==null?new kt:this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new fJ(this.G):new c3(this.G)}; g.Q.Bz=function(){return this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new zs:new yc}; g.Q.yA=function(d,q,T,Y,e){q=new GO(T,q+Y,T+e,q);(d=lp(v5,d))?d.yA(q):this.j=q}; var p2N=Ob(193,p07,void 0,gYg);g.Vf("Goog_AdSense_Lidar_sendVastEvent",p2N);var ZhB=n5(194,function(d,q){q=q===void 0?{}:q;d=jb2(QC(i3),d,q);return A3f(d)}); g.Vf("Goog_AdSense_Lidar_getViewability",ZhB);var OhL=Ob(195,function(){return hiI()}); g.Vf("Goog_AdSense_Lidar_getUrlSignalsArray",OhL);var n9I=n5(196,function(){return JSON.stringify(hiI())}); g.Vf("Goog_AdSense_Lidar_getUrlSignalsList",n9I);var nYQ=yf(["//ep2.adtrafficquality.google/sodar/",""]),r3g=yf(["//tpc.googlesyndication.com/sodar/",""]);g.M(SI,Error);g.M(oL,g.W);oL.prototype.J_=function(){return this.wpc.f()}; oL.prototype.gt=function(d){this.wpc.c(d)}; oL.prototype.rf=function(d){return this.wpc.m(GUX(d))}; oL.prototype.RE=function(d){return this.wpc.mws(GUX(d))}; g.M(l3,g.W);l3.prototype.snapshot=function(d){return this.CH.s(Object.assign({},d.BO&&{c:d.BO},d.Vf&&{s:d.Vf},d.P_!==void 0&&{p:d.P_}))}; l3.prototype.f0=function(d){this.CH.e(d)}; l3.prototype.oe=function(){return this.CH.l()};var uj_;g.M(dq,g.W);dq.prototype.share=function(){if(this.JF())throw Error("E:AD");this.U++;return this}; dq.prototype.dispose=function(){--this.U||g.W.prototype.dispose.call(this)}; uj_=Symbol.dispose;DVH.prototype.Z5=function(d,q){this.G.Z5("/client_streamz/bg/frs",d,q)}; w07.prototype.Z5=function(d,q,T,Y,e,U){this.G.Z5("/client_streamz/bg/wrl",d,q,T,Y,e,U)}; fLn.prototype.Er=function(d,q){this.G.Tp("/client_streamz/bg/ec",d,q)}; zR2.prototype.Z5=function(d,q,T){this.G.Z5("/client_streamz/bg/el",d,q,T)}; igN.prototype.Er=function(d,q){this.G.Tp("/client_streamz/bg/cec",d,q)}; ILH.prototype.Er=function(d,q){this.G.Tp("/client_streamz/bg/po/csc",d,q)}; mVj.prototype.Er=function(d,q){this.G.Tp("/client_streamz/bg/po/ctav",d,q)}; Stn.prototype.Er=function(d,q){this.G.Tp("/client_streamz/bg/po/cwsc",d,q)};g.M(lL1,Et);g.M(Ym,Et);var $m=[1,2,3];var rzI=[0,$m,$$c,YNR,Jzs];var tYE=[0,bK,[0,SIR,ocj]];g.M(e$,Et);var sE=[1,2,3];var Bb_=[0,sE,d$q,vcq,JX,tYE];g.M(UE,Et);var Kf7=[0,bK,rzI,Bb_];var GXj=[0,UU];g.M(bm,Et);var LfQ=[0,UU,-1,X2L];var kXR=[0,UU,-1,qNR,X2L];g.M(XP,Et);var hG6=[1,2,3];var PwQ=[0,hG6,JX,LfQ,JX,kXR,JX,GXj];g.M(JS,Et);JS.prototype.xH=function(){var d=es(this,3,AA,3,!0);zI(d);return d[void 0]};JS.prototype.j=A4_([0,UU,PwQ,sTl,bK,Kf7,eiB,U$j]);g.M(oYn,Et);g.Q=gq.prototype;g.Q.isEnabled=function(){if(!g.oQ.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{s2:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.Q.set=function(d,q,T){var Y=!1;if(typeof T==="object"){var e=T.Jew;Y=T.secure||!1;var U=T.domain||void 0;var b=T.path||void 0;var J=T.s2}if(/[;=\s]/.test(d))throw Error('Invalid cookie name "'+d+'"');if(/[;\r\n]/.test(q))throw Error('Invalid cookie value "'+q+'"');J===void 0&&(J=-1);T=U?";domain="+U:"";b=b?";path="+b:"";Y=Y?";secure":"";J=J<0?"":J==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+J*1E3)).toUTCString();this.G.cookie=d+"="+q+T+b+J+Y+(e!=null?";samesite="+ e:"")}; g.Q.get=function(d,q){for(var T=d+"=",Y=(this.G.cookie||"").split(";"),e=0,U;e=0;q--)this.remove(d[q])}; var O3=new gq(typeof document=="undefined"?null:document);NS.prototype.compress=function(d){var q,T,Y,e;return g.G(function(U){switch(U.U){case 1:return q=new CompressionStream("gzip"),T=(new Response(q.readable)).arrayBuffer(),Y=q.writable.getWriter(),g.B(U,Y.write((new TextEncoder).encode(d)),2);case 2:return g.B(U,Y.close(),3);case 3:return e=Uint8Array,g.B(U,T,4);case 4:return U.return(new e(U.G))}})}; NS.prototype.isSupported=function(d){return d<1024?!1:typeof CompressionStream!=="undefined"};g.M(RB,Et);xm.prototype.setInterval=function(d){this.intervalMs=d;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; xm.prototype.start=function(){var d=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){d.tick()},this.intervalMs),this.U=this.G())}; xm.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; xm.prototype.tick=function(){var d=this;if(this.enabled){var q=Math.max(this.G()-this.U,0);q0?T:void 0));T=VX(T,4,Fe(e>0?e:void 0));T=VX(T,5,Fe(U>0?U:void 0));e=T.Kf;U=e[Wz]|0;T=fp(T,U)?T:zi(T,e,U)?il(T,e):new T.constructor(f$(e,U,!0));Qw(b,HP,10,T)}b=this.G.clone();T=Date.now().toString();b=VX(b,4,cE(T));d=al(b,pb,3,d.slice());Y&&(b=new y1,Y=VX(b,13,Fe(Y)),b=new hS, Y=Qw(b,y1,2,Y),b=new AS,Y=Qw(b,hS,1,Y),Y=L2(Y,2,9),Qw(d,AS,18,Y));q&&BV(d,14,q);return d};g.tS.prototype.U=0;g.tS.prototype.reset=function(){this.G=this.j=this.T;this.U=0}; g.tS.prototype.getValue=function(){return this.j};g.M(ob,Et);var Wfq=Vu(ob);g.M(EEg,Et);var hX;hX=new jr2;g.M(Lb,g.W);g.Q=Lb.prototype;g.Q.ir=function(){Gx(this);this.U.stop();this.dO.stop();g.W.prototype.ir.call(this)}; g.Q.dispatch=function(d){if(d instanceof pb)this.log(d);else try{var q=new pb,T=d.VH();var Y=K2(q,8,T);this.log(Y)}catch(e){km(this,4,1)}}; g.Q.log=function(d){km(this,2,1);if(this.aU){d=d.clone();var q=this.xx++;d=BV(d,21,q);this.componentId&&K2(d,26,this.componentId);q=d;var T=vE(q,1);var Y=Y===void 0?!1:Y;var e=typeof T;Y=T==null?T:e==="bigint"?String(yX(64,T)):gY(T)?e==="string"?xj(T):Y?QX(T):Mb(T):void 0;Y==null&&(Y=Date.now(),Y=Number.isFinite(Y)?Y.toString():"0",VX(q,1,cE(Y)));Y=vE(q,15);Y!=null&&(typeof Y==="bigint"?kj(Y)?Y=Number(Y):(Y=yX(64,Y),Y=kj(Y)?Number(Y):String(Y)):Y=gY(Y)?typeof Y==="number"?Mb(Y):xj(Y):void 0);Y!=null|| BV(q,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(Y=this.experimentIds.clone(),Qw(q,RB,16,Y));km(this,1,1);q=this.G.length-1E3+1;q>0&&(this.G.splice(0,q),this.T+=q,km(this,3,q));this.G.push(d);this.gS||this.U.enabled||this.U.start()}}; g.Q.flush=function(d,q){var T=this;if(this.G.length===0)d&&d();else if(this.z2&&this.lr)this.j.U=3,Ef6(this);else{var Y=Date.now();if(this.qk>Y&&this.rO0&&(T.rO=Date.now(),T.qk=T.rO+y);y=Nx(rY);var a;Pz&&y&&((a=h.Kf[y])==null?void 0:a[175237375])!=null&&Lp(rEq,3);a:{var p=p===void 0?!1:p;if(Nx(tjj)&&Nx(rY)&&void 0===tjj){a=h.Kf;y=a[rY];if(!y)break a;if(y=y.hX)try{y(a,175237375,PQL);break a}catch(t){j0(t)}}p&&(p=h.Kf, (a=Nx(rY))&&a in p&&(p=p[a])&&delete p[175237375])}p=hX.G?hX.U(h,hX.G,175237375,hX.j):hX.U(h,175237375,null,hX.j);if(p=p===null?void 0:p)p=p2(p,1,-1),p!==-1&&(T.S=new g.tS(p<1?1:p,3E5,.1),T.U.setInterval(T.S.getValue()))}}d&&d();T.X=0},R=function(y,h){var H=HV(U,pb,3); var a=Number(P4n(U,14));g.BP(T.S);T.U.setInterval(T.S.getValue());y===401&&b&&(T.RU=b);a&&(T.T+=a);h===void 0&&(h=T.isRetryable(y));h&&(T.G=H.concat(T.G),T.gS||T.U.enabled||T.U.start());km(T,7,1);q&&q("net-send-failed",y);++T.X},x=function(){T.network&&T.network.send(F,N,R)}; J?J.then(function(y){km(T,5,e);F.requestHeaders["Content-Encoding"]="gzip";F.requestHeaders["Content-Type"]="application/binary";F.body=y;F.UA=2;x()},function(){km(T,6,e); x()}):x()}}}}; g.Q.isRetryable=function(d){return 500<=d&&d<600||d===401||d===0};PP.prototype.send=function(d,q,T){var Y=this,e,U,b,J,F,N,R,x,y,h;return g.G(function(H){switch(H.U){case 1:return U=(e=Y.nK?new AbortController:void 0)?setTimeout(function(){e.abort()},d.timeoutMillis):void 0,g.jD(H,2,3),b=Object.assign({},{method:d.requestType, headers:Object.assign({},d.requestHeaders)},d.body&&{body:d.body},d.withCredentials&&{credentials:"include"},{signal:d.timeoutMillis&&e?e.signal:null}),g.B(H,fetch(d.url,b),5);case 5:J=H.G;if(J.status!==200){(F=T)==null||F(J.status);H.tF(3);break}if((N=q)==null){H.tF(7);break}return g.B(H,J.text(),8);case 8:N(H.G);case 7:case 3:g.KN(H);clearTimeout(U);g.LN(H,0);break;case 2:R=g.nN(H);switch((x=R)==null?void 0:x.name){case "AbortError":(y=T)==null||y(408);break;default:(h=T)==null||h(400)}H.tF(3)}})}; PP.prototype.jA=function(){return 4};g.M(WP,g.W);WP.prototype.Uy=function(){this.S=!0;return this}; WP.prototype.build=function(){this.network||(this.network=new PP);var d=new Lb({logSource:this.logSource,Nq:this.Nq?this.Nq:sqD,sessionIndex:this.sessionIndex,kur:this.sX,oW:this.T,gS:!1,Uy:this.S,D9:this.D9,network:this.network});g.C(this,d);if(this.U){var q=this.U,T=rq(d.j);K2(T,7,q)}d.L=new NS;this.componentId&&(d.componentId=this.componentId);this.wd&&(d.wd=this.wd);this.pageId&&(d.pageId=this.pageId);this.G&&((T=this.G)?(d.experimentIds||(d.experimentIds=new RB),q=d.experimentIds,T=T.VH(),K2(q, 4,T)):d.experimentIds&&VX(d.experimentIds,4));this.j&&(d.z2=d.lr);hx6(d.j);this.network.cj&&this.network.cj(this.logSource);this.network.OzF&&this.network.OzF(d);return d};g.M(Cb,g.W);Cb.prototype.flush=function(d){d=d||[];if(d.length){for(var q=new oYn,T=[],Y=0;Y-1?(q=d[b],T||(q.WQ=!1)):(q=new rqg(q,this.src,U,!!Y,e),q.WQ=T,d.push(q));return q}; g.Q.remove=function(d,q,T,Y){d=d.toString();if(!(d in this.listeners))return!1;var e=this.listeners[d];q=lm(e,q,T,Y);return q>-1?(IB(e[q]),g.EI(e,q),e.length==0&&(delete this.listeners[d],this.G--),!0):!1}; g.Q.removeAll=function(d){d=d&&d.toString();var q=0,T;for(T in this.listeners)if(!d||T==d){for(var Y=this.listeners[T],e=0;e-1?d[e]:null}; g.Q.hasListener=function(d,q){var T=d!==void 0,Y=T?d.toString():"",e=q!==void 0;return g.q$(this.listeners,function(U){for(var b=0;b>>0);g.Rs(g.$1,g.W);g.$1.prototype[O5N]=!0;g.Q=g.$1.prototype;g.Q.addEventListener=function(d,q,T,Y){g.oB(this,d,q,T,Y)}; g.Q.removeEventListener=function(d,q,T,Y){PBj(this,d,q,T,Y)}; g.Q.dispatchEvent=function(d){var q=this.Lg;if(q){var T=[];for(var Y=1;q;q=q.Lg)T.push(q),++Y}q=this.F2;Y=d.type||d;if(typeof d==="string")d=new g.fb(d,q);else if(d instanceof g.fb)d.target=d.target||q;else{var e=d;d=new g.fb(Y,q);g.hz(d,e)}e=!0;var U;if(T)for(U=T.length-1;!d.U&&U>=0;U--){var b=d.currentTarget=T[U];e=g1(b,Y,!0,d)&&e}d.U||(b=d.currentTarget=q,e=g1(b,Y,!0,d)&&e,d.U||(e=g1(b,Y,!1,d)&&e));if(T)for(U=0;!d.U&&U0){this.U--;var d=this.G;this.G=d.next;d.next=null}else d=this.j();return d};var R_;y7.prototype.add=function(d,q){var T=f7_.get();T.set(d,q);this.U?this.U.next=T:this.G=T;this.U=T}; y7.prototype.remove=function(){var d=null;this.G&&(d=this.G,this.G=this.G.next,this.G||(this.U=null),d.next=null);return d}; var f7_=new F6(function(){return new hK},function(d){return d.reset()}); hK.prototype.set=function(d,q){this.G=d;this.scope=q;this.next=null}; hK.prototype.reset=function(){this.next=this.scope=this.G=null};var Hd,Q7=!1,Dj2=new y7;zxj.prototype.reset=function(){this.context=this.U=this.j=this.G=null;this.T=!1}; var i51=new F6(function(){return new zxj},function(d){d.reset()}); g.pK.prototype.then=function(d,q,T){return qRI(this,NL(typeof d==="function"?d:null),NL(typeof q==="function"?q:null),T)}; g.pK.prototype.$goog_Thenable=!0;g.Q=g.pK.prototype;g.Q.finally=function(d){var q=this;d=NL(d);return new Promise(function(T,Y){l7I(q,function(e){d();T(e)},function(e){d(); Y(e)})})}; g.Q.C8=function(d,q){return qRI(this,null,NL(d),q)}; g.Q.catch=g.pK.prototype.C8;g.Q.cancel=function(d){if(this.G==0){var q=new Bd(d);g.ML(function(){vfN(this,q)},this)}}; g.Q.Lfr=function(d){this.G=0;cd(this,2,d)}; g.Q.FfU=function(d){this.G=0;cd(this,3,d)}; g.Q.bU=function(){for(var d;d=ofj(this);)VG1(this,d,this.G,this.L);this.X=!1}; var U8g=j0;g.Rs(Bd,xc);Bd.prototype.name="cancel";g.Rs(g.KK,g.$1);g.Q=g.KK.prototype;g.Q.enabled=!1;g.Q.EF=null;g.Q.setInterval=function(d){this.VS=d;this.EF&&this.enabled?(this.stop(),this.start()):this.EF&&this.stop()}; g.Q.HjF=function(){if(this.enabled){var d=g.F_()-this.Dz;d>0&&d0&&(this.getStatus(),this.X=setTimeout(this.yJ.bind(this), this.lr)),this.getStatus(),this.K=!0,this.G.send(d),this.K=!1}catch(b){this.getStatus(),M97(this,b)}}; g.Q.yJ=function(){typeof fK!="undefined"&&this.G&&(this.T="Timed out after "+this.lr+"ms, aborting",this.U=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.Q.abort=function(d){this.G&&this.j&&(this.getStatus(),this.j=!1,this.S=!0,this.G.abort(),this.S=!1,this.U=d||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),w1(this))}; g.Q.ir=function(){this.G&&(this.j&&(this.j=!1,this.S=!0,this.G.abort(),this.S=!1),w1(this,!0));g.DZ.VX.ir.call(this)}; g.Q.Mz=function(){this.JF()||(this.yv||this.K||this.S?cyg(this):this.sdF())}; g.Q.sdF=function(){cyg(this)}; g.Q.isActive=function(){return!!this.G}; g.Q.isComplete=function(){return g.zB(this)==4}; g.Q.getStatus=function(){try{return g.zB(this)>2?this.G.status:-1}catch(d){return-1}}; g.Q.getResponseHeader=function(d){if(this.G&&this.isComplete())return d=this.G.getResponseHeader(d),d===null?void 0:d}; g.Q.getLastError=function(){return typeof this.T==="string"?this.T:String(this.T)};lZ.prototype.send=function(d,q,T){q=q===void 0?function(){}:q; T=T===void 0?function(){}:T; HFg(d.url,function(Y){Y=Y.target;iZ(Y)?q(g.I_(Y)):T(Y.getStatus())},d.requestType,d.body,d.requestHeaders,d.timeoutMillis,d.withCredentials)}; lZ.prototype.jA=function(){return 1};o_.prototype.done=function(){this.logger.bA(this.event,vd()-this.startTime)}; g.M(V7,dq);g.M(q0,V7);g.Q=q0.prototype;g.Q.rl=function(){}; g.Q.v$=function(){}; g.Q.bA=function(){}; g.Q.EP=function(){}; g.Q.qs=function(){}; g.Q.IE=function(d,q,T,Y){return Y}; g.Q.CO=function(){}; g.Q.Zl=function(){}; g.Q.cH=function(){}; g.M(TA,V7);g.Q=TA.prototype;g.Q.update=function(d){this.logger.dispose();this.logger=d}; g.Q.v$=function(d){this.logger.v$(d)}; g.Q.bA=function(d,q){this.logger.bA(d,q)}; g.Q.EP=function(d){this.logger.EP(d)}; g.Q.qs=function(){this.logger.qs()}; g.Q.IE=function(d,q,T,Y){return this.logger.IE(d,q,T,Y)}; g.Q.CO=function(d){this.logger.CO(d)}; g.Q.Zl=function(d){this.logger.Zl(d)}; g.Q.cH=function(d){this.logger.cH(d)}; g.Q.rl=function(d){this.logger.rl(d)}; g.M(Ayg,g.W);g.M(YH,V7);g.Q=YH.prototype;g.Q.rl=function(d){this.metrics.fhv.Z5(d,this.wH)}; g.Q.v$=function(d){this.metrics.eventCount.Er(d,this.wH)}; g.Q.bA=function(d,q){this.metrics.hM.Z5(q,d,this.wH)}; g.Q.EP=function(d){this.metrics.errorCount.Er(d,this.wH)}; g.Q.IE=function(d,q,T,Y){function e(J){if(!U.JF()){var F=vd()-b;U.metrics.jtk.Z5(F,d,T,J,q,U.wH)}} var U=this,b=vd();Y.then(function(){return void e(0)},function(J){return void e(J instanceof Pd?J.code:-1)}); return Y}; g.Q.CO=function(d){this.metrics.TU5.Er(d,this.wH)}; g.Q.Zl=function(d){this.metrics.ib.Er(d,this.wH)}; g.Q.cH=function(d){this.metrics.iAD.Er(d,this.wH)}; g.M(e_,YH);e_.prototype.qs=function(){p56(this.G)};g.M(Uq,Et);g.M(bj,Et);g.M(XT,Et);var ucQ=Vu(XT),nt2=function(d){return e0(function(q){return q instanceof d&&!fp(q)})}(XT); XT.messageId="bfkj";g.M(ZFN,Et);g.M(Vc,Et);g.M(Jf,Et);var ryQ=Vu(Jf);g.M($H,g.W);$H.prototype.snapshot=function(d){if(this.JF())throw Error("Already disposed");this.logger.v$("n");var q=this.logger.share();return this.j.then(function(T){var Y=T.KK;return new Promise(function(e){var U=new o_(q,"n");Y(function(b){U.done();q.rl(b.length);q.qs();q.dispose();e(b)},[d.BO, d.Vf,d.r$,d.P_])})})}; $H.prototype.CX=function(d){var q=this;if(this.JF())throw Error("Already disposed");this.logger.v$("n");var T=de(this.logger,function(){return q.T([d.BO,d.Vf,d.r$,d.P_])},"n"); this.logger.rl(T.length);this.logger.qs();return T}; $H.prototype.f0=function(d){this.j.then(function(q){var T;(T=q.RUF)==null||T(d)})}; $H.prototype.oe=function(){return this.logger.share()};g.M(N0,Et);g.M(R2,Et);xH.prototype.ut=function(d){return zDg(this,d,new q0,0)};g.M(ym,g.W);ym.prototype.snapshot=function(d){var q=this;return g.G(function(T){switch(T.U){case 1:if(q.JF())throw Error("Already disposed");if(q.U||q.L){T.tF(2);break}return g.B(T,q.S.promise,2);case 2:if(!q.U){T.tF(4);break}return g.B(T,q.U.snapshot(d),5);case 5:return T.return(T.G);case 4:throw q.L;}})}; ym.prototype.f0=function(d){var q,T;(q=this.U)==null||(T=q.f0)==null||T.call(q,d)}; ym.prototype.handleError=function(d){if(!this.JF()){this.L=d;this.S.resolve();var q,T;(T=(q=this.options).lQw)==null||T.call(q,d)}}; ym.prototype.oe=function(){return this.logger.share()}; var m8N={lYw:432E5,HP:3E5,XJ:10,ub:1E4,R5:3E4,LV:3E4,kAO:6E4,z7:1E3,tM:6E4,I5:6E5,Y5:.25,MV:2,maxAttempts:10};var D$L,YrI=(D$L=Math.imul)!=null?D$L:function(d,q){return d*q|0},M0=[196, 200,224,18];cJ.prototype.VH=function(){return String(this.G)+","+this.U.join()}; cJ.prototype.LA=function(d,q){var T=void 0;if(this.U[this.G]!==d){var Y=this.U.indexOf(d);Y!==-1?(this.U.splice(Y,1),Y0;)q[T++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(d%62),d=Math.floor(d/62);return q.join("")}};var yDN;g.M(j_,g.W);j_.prototype.RE=function(d,q){var T=this.rf(d);q==null||q(T);return de(this.logger,function(){return g.A0(T,2)},this.U)}; yDN=Symbol.dispose;g.M(pi,j_);pi.prototype.rf=function(d,q){var T=this;this.logger.v$(this.G);++this.S>=this.X&&this.j.resolve();var Y=d();d=de(this.logger,function(){return T.T(Y)},"C"); if(d===void 0)throw new SI(17,"YNJ:Undefined");if(!(d instanceof Uint8Array))throw new SI(18,"ODM:Invalid");q==null||q(d);return d}; g.M(Z_,j_);Z_.prototype.rf=function(){return this.T}; g.M(Oq,j_);Oq.prototype.rf=function(){var d=this;return de(this.logger,function(){return ZV(d.T)},"d")}; Oq.prototype.RE=function(){return this.T}; g.M(ni,j_);ni.prototype.rf=function(){if(this.T)return this.T;this.T=h4f(this,function(d){return"_"+x5I(d)}); return h4f(this,function(d){return d})}; g.M(tf,j_);tf.prototype.rf=function(){var d=Math.floor(Date.now()/1E3),q=[Math.random()*255,Math.random()*255],T=q.concat([this.T&255,this.clientState],[d>>24&255,d>>16&255,d>>8&255,d&255]);d=new Uint8Array(2+T.length);d[0]=34;d[1]=T.length;d.set(T,2);T=d.subarray(2);for(var Y=q=q.length;Y150))try{this.cache=new $5I(d,this.logger)}catch(q){this.reportError(new SI(22,"GBJ:init",q))}}; g.Q.reportError=function(d){this.logger.EP(d.code);this.onError(d);return d}; var MI_=function(d){return e0(function(q){if(!OB7(q))return!1;for(var T=g.E(Object.entries(d)),Y=T.next();!Y.done;Y=T.next()){var e=g.E(Y.value);Y=e.next().value;e=e.next().value;if(!(Y in q)){if(e.ZWZ===!0)continue;return!1}if(!e(q[Y]))return!1}return!0})}({CH:function(d){return e0(function(q){return q instanceof d})}(ym)},"");var qqg=(new Date).getTime();g.M(kH,Et);var w2c=Vu(kH);n32.prototype.getMetadata=function(){return this.metadata};PJ.prototype.getMetadata=function(){return this.metadata}; PJ.prototype.getStatus=function(){return this.status};WJ.prototype.L=function(d,q){q=q===void 0?{}:q;return new n32(d,this,q)}; WJ.prototype.getName=function(){return this.name};var fmQ=new WJ("/google.internal.waa.v1.Waa/Create",N0,kH,function(d){return d.VH()},w2c);g.M(Ci,Et);var w5j=new WJ("/google.internal.waa.v1.Waa/GenerateIT",R2,Ci,function(d){return d.VH()},Vu(Ci));var bbg=new Set(["SAPISIDHASH","APISIDHASH"]);g.M(uj,Et);uj.prototype.getValue=function(){var d=vE(this,2);if(Array.isArray(d)||d instanceof Et)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return bD(this,2)};g.M(D_,Et);D_.prototype.getMessage=function(){return Oy(this,2)}; var Lt6=Vu(D_);we.prototype.rJ=function(d,q){d=="data"?this.j.push(q):d=="metadata"?this.S.push(q):d=="status"?this.X.push(q):d=="end"?this.T.push(q):d=="error"&&this.U.push(q);return this}; we.prototype.removeListener=function(d,q){d=="data"?m6(this.j,q):d=="metadata"?m6(this.S,q):d=="status"?m6(this.X,q):d=="end"?m6(this.T,q):d=="error"&&m6(this.U,q);return this}; we.prototype.cancel=function(){this.G.abort()}; we.prototype.cancel=we.prototype.cancel;we.prototype.removeListener=we.prototype.removeListener;we.prototype.on=we.prototype.rJ;g.M(tIN,Error);g.Rs(g.S_,yy_);g.S_.prototype.G=function(){var d=new lj(this.T,this.j);this.U&&d.setCredentialsMode(this.U);return d}; g.S_.prototype.setCredentialsMode=function(d){this.U=d}; g.Rs(lj,g.$1);g.Q=lj.prototype;g.Q.open=function(d,q){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.UD=d;this.lr=q;this.readyState=1;vJ(this)}; g.Q.send=function(d){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.B.signal.aborted)throw this.abort(),Error("Request was aborted.");this.G=!0;var q={headers:this.K,method:this.UD,credentials:this.S,cache:void 0,signal:this.B.signal};d&&(q.body=d);(this.yv||g.oQ).fetch(new Request(this.lr,q)).then(this.WI.bind(this),this.IR.bind(this))}; g.Q.abort=function(){this.response=this.responseText="";this.K=new Headers;this.status=0;this.B.abort();this.j&&this.j.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.G&&this.readyState!=4&&(this.G=!1,o2(this));this.readyState=0}; g.Q.WI=function(d){if(this.G&&(this.T=d,this.U||(this.status=this.T.status,this.statusText=this.T.statusText,this.U=d.headers,this.readyState=2,vJ(this)),this.G&&(this.readyState=3,vJ(this),this.G)))if(this.responseType==="arraybuffer")d.arrayBuffer().then(this.AB.bind(this),this.IR.bind(this));else if(typeof g.oQ.ReadableStream!=="undefined"&&"body"in d){this.j=d.body.getReader();if(this.X){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.L=new TextDecoder;ksH(this)}else d.text().then(this.g2.bind(this),this.IR.bind(this))}; g.Q.SK=function(d){if(this.G){if(this.X&&d.value)this.response.push(d.value);else if(!this.X){var q=d.value?d.value:new Uint8Array(0);if(q=this.L.decode(q,{stream:!d.done}))this.response=this.responseText+=q}d.done?o2(this):vJ(this);this.readyState==3&&ksH(this)}}; g.Q.g2=function(d){this.G&&(this.response=this.responseText=d,o2(this))}; g.Q.AB=function(d){this.G&&(this.response=d,o2(this))}; g.Q.IR=function(){this.G&&o2(this)}; g.Q.setRequestHeader=function(d,q){this.K.append(d,q)}; g.Q.getResponseHeader=function(d){return this.U?this.U.get(d.toLowerCase())||"":""}; g.Q.getAllResponseHeaders=function(){if(!this.U)return"";for(var d=[],q=this.U.entries(),T=q.next();!T.done;)T=T.value,d.push(T[0]+": "+T[1]),T=q.next();return d.join("\r\n")}; g.Q.setCredentialsMode=function(d){this.S=d}; Object.defineProperty(lj.prototype,"withCredentials",{get:function(){return this.S==="include"}, set:function(d){this.setCredentialsMode(d?"include":"same-origin")}});g.Vm.prototype.toString=function(){var d=[],q=this.S;q&&d.push(bc(q,zis,!0),":");var T=this.G;if(T||q=="file")d.push("//"),(q=this.B)&&d.push(bc(q,zis,!0),"@"),d.push(g.pn(T).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),T=this.j,T!=null&&d.push(":",String(T));if(T=this.U)this.G&&T.charAt(0)!="/"&&d.push("/"),d.push(bc(T,T.charAt(0)=="/"?ihs:Imx,!0));(T=this.T.toString())&&d.push("?",T);(T=this.X)&&d.push("#",bc(T,m$q));return d.join("")}; g.Vm.prototype.resolve=function(d){var q=this.clone(),T=!!d.S;T?g.dW(q,d.S):T=!!d.B;T?q.B=d.B:T=!!d.G;T?g.qK(q,d.G):T=d.j!=null;var Y=d.U;if(T)g.Th(q,d.j);else if(T=!!d.U){if(Y.charAt(0)!="/")if(this.G&&!this.U)Y="/"+Y;else{var e=q.U.lastIndexOf("/");e!=-1&&(Y=q.U.slice(0,e+1)+Y)}e=Y;if(e==".."||e==".")Y="";else if(g.rb(e,"./")||g.rb(e,"/.")){Y=ON(e,"/");e=e.split("/");for(var U=[],b=0;b1||U.length==1&&U[0]!="")&&U.pop(), Y&&b==e.length&&U.push("")):(U.push(J),Y=!0)}Y=U.join("/")}else Y=e}T?q.U=Y:T=d.T.toString()!=="";T?YM(q,d.T.clone()):T=!!d.X;T&&(q.X=d.X);return q}; g.Vm.prototype.clone=function(){return new g.Vm(this)}; var zis=/[#\/\?@]/g,Imx=/[#\?:]/g,ihs=/[#\?]/g,D5D=/[#\?@]/g,m$q=/#/g;g.Q=UC.prototype;g.Q.add=function(d,q){sC(this);this.j=null;d=$M(this,d);var T=this.G.get(d);T||this.G.set(d,T=[]);T.push(q);this.U=this.U+1;return this}; g.Q.remove=function(d){sC(this);d=$M(this,d);return this.G.has(d)?(this.j=null,this.U=this.U-this.G.get(d).length,this.G.delete(d)):!1}; g.Q.clear=function(){this.G=this.j=null;this.U=0}; g.Q.isEmpty=function(){sC(this);return this.U==0}; g.Q.forEach=function(d,q){sC(this);this.G.forEach(function(T,Y){T.forEach(function(e){d.call(q,e,Y,this)},this)},this)}; g.Q.ll=function(){sC(this);for(var d=Array.from(this.G.values()),q=Array.from(this.G.keys()),T=[],Y=0;Y0?String(d[0]):q}; g.Q.toString=function(){if(this.j)return this.j;if(!this.G)return"";for(var d=[],q=Array.from(this.G.keys()),T=0;T>>3;U.j!=1&&U.j!=2&&U.j!=15&&R1(U,b,J,"unexpected tag");U.G=1;U.U=0;U.T=0} function T(F){U.T++;U.T==5&&F&240&&R1(U,b,J,"message length too long");U.U|=(F&127)<<(U.T-1)*7;F&128||(U.G=2,U.B=0,typeof Uint8Array!=="undefined"?U.S=new Uint8Array(U.U):U.S=Array(U.U),U.U==0&&e())} function Y(F){U.S[U.B++]=F;U.B==U.U&&e()} function e(){if(U.j<15){var F={};F[U.j]=U.S;U.L.push(F)}U.G=0} for(var U=this,b=d instanceof Array?d:new Uint8Array(d),J=0;J0?d:null};xM.prototype.isInputValid=function(){return this.G===null}; xM.prototype.P4=function(){return this.G}; xM.prototype.HQ=function(){return!1}; xM.prototype.parse=function(d){this.G!==null&&lUI(this,d,"stream already broken");var q=null;try{var T=this.j;T.j||Srj(T,d,"stream already broken");T.G+=d;var Y=Math.floor(T.G.length/4);if(Y==0)var e=null;else{try{var U=rz6(T.G.slice(0,Y*4))}catch(b){Srj(T,T.G,b.message)}T.U+=Y*4;T.G=T.G.slice(Y*4);e=U}q=e===null?null:this.T.parse(e)}catch(b){lUI(this,d,b.message)}this.U+=d.length;return q};var lmj={INIT:0,iL:1,nU:2,Gc:3,wp:4,K5:5,STRING:6,Sn:7,F8:8,PN:9,GP:10,fv:11,G$:12,f$:13,lP:14,Ue:15,W7:16,B7:17,ZS:18,Y7:19,Eo:20};g.Q=h_.prototype;g.Q.isInputValid=function(){return this.S!=3}; g.Q.P4=function(){return this.K}; g.Q.done=function(){return this.S===2}; g.Q.HQ=function(){return!1}; g.Q.parse=function(d){function q(){for(;y0;)if(H=d[y++], U.B===4?U.B=0:U.B++,!H)break a;if(H==='"'&&!U.L){U.G=Y();break}if(H==="\\"&&!U.L&&(U.L=!0,H=d[y++],!H))break;if(U.L)if(U.L=!1,H==="u"&&(U.B=1),H=d[y++])continue;else break;J.lastIndex=y;H=J.exec(d);if(!H){y=d.length+1;break}y=H.index+1;H=d[H.index];if(!H)break}U.j+=y-a;continue;case F.PN:if(!H)continue;H==="r"?U.G=F.GP:Hh(U,d,y);continue;case F.GP:if(!H)continue;H==="u"?U.G=F.fv:Hh(U,d,y);continue;case F.fv:if(!H)continue;H==="e"?U.G=Y():Hh(U,d,y);continue;case F.G$:if(!H)continue;H==="a"?U.G=F.f$: Hh(U,d,y);continue;case F.f$:if(!H)continue;H==="l"?U.G=F.lP:Hh(U,d,y);continue;case F.lP:if(!H)continue;H==="s"?U.G=F.Ue:Hh(U,d,y);continue;case F.Ue:if(!H)continue;H==="e"?U.G=Y():Hh(U,d,y);continue;case F.W7:if(!H)continue;H==="u"?U.G=F.B7:Hh(U,d,y);continue;case F.B7:if(!H)continue;H==="l"?U.G=F.ZS:Hh(U,d,y);continue;case F.ZS:if(!H)continue;H==="l"?U.G=Y():Hh(U,d,y);continue;case F.Y7:H==="."?U.G=F.Eo:Hh(U,d,y);continue;case F.Eo:if("0123456789.eE+-".indexOf(H)!==-1)continue;else y--,U.j--,U.G= Y();continue;default:Hh(U,d,y)}}} function Y(){var H=b.pop();return H!=null?H:F.iL} function e(H){U.U>1||(H||(H=x===-1?U.T+d.substring(R,y):d.substring(x,y)),U.lr?U.X.push(H):U.X.push(JSON.parse(H)),x=y)} for(var U=this,b=U.UD,J=U.yv,F=lmj,N=d.length,R=0,x=-1,y=0;y0?(h=U.X,U.X=[],h):null}return null};Q5.prototype.isInputValid=function(){return this.S===null}; Q5.prototype.P4=function(){return this.S}; Q5.prototype.HQ=function(){return!1}; Q5.prototype.parse=function(d){function q(F){U.U=6;U.S="The stream is broken @"+U.G+"/"+b+". Error: "+F+". With input:\n";throw Error(U.S);} function T(){U.j=new h_({Epg:!0,AG:!0})} function Y(F){if(F)for(var N=0;N1)&&q("extra status: "+F);U.X=!0;var N={};N[2]=F[0];U.T.push(N)}} for(var U=this,b=0;b0?(d=U.T,U.T=[],d):null};MK.prototype.Ya=function(){return this.G}; MK.prototype.getStatus=function(){return this.S}; MK.prototype.lr=function(d){d=d.target;try{if(d==this.G)a:{var q=g.zB(this.G),T=this.G.U,Y=this.G.getStatus(),e=g.I_(this.G);d=[];if(g.mW(this.G)instanceof Array){var U=g.mW(this.G);U.length>0&&U[0]instanceof Uint8Array&&(this.K=!0,d=U)}if(!(q<3||q==3&&!e&&d.length==0))if(Y=Y==200||Y==206,q==4&&(T==8?ch(this,7):T==7?ch(this,8):Y||ch(this,3)),this.U||(this.U=v3Y(this.G),this.U==null&&ch(this,5)),this.S>2)EC(this);else{if(d.length>this.j){var b=d.length;T=[];try{if(this.U.HQ())for(var J=0;Jthis.j){J=e.slice(this.j);this.j=e.length;try{var N=this.U.parse(J);N!=null&&this.T&&this.T(N)}catch(R){ch(this,5);EC(this);break a}}q==4?(e.length!= 0||this.K?ch(this,2):ch(this,4),EC(this)):ch(this,1)}}}catch(R){ch(this,6),EC(this)}};g.Q=o37.prototype;g.Q.rJ=function(d,q){var T=this.U[d];T||(T=[],this.U[d]=T);T.push(q);return this}; g.Q.addListener=function(d,q){this.rJ(d,q);return this}; g.Q.removeListener=function(d,q){var T=this.U[d];T&&g.jj(T,q);(d=this.G[d])&&g.jj(d,q);return this}; g.Q.once=function(d,q){var T=this.G[d];T||(T=[],this.G[d]=T);T.push(q);return this}; g.Q.Off=function(d){var q=this.U.data;q&&VIf(d,q);(q=this.G.data)&&VIf(d,q);this.G.data=[]}; g.Q.fmr=function(){switch(this.j.getStatus()){case 1:jA(this,"readable");break;case 5:case 6:case 4:case 7:case 3:jA(this,"error");break;case 8:jA(this,"close");break;case 2:jA(this,"end")}};dSN.prototype.serverStreaming=function(d,q,T,Y){var e=this,U=d.substring(0,d.length-Y.name.length);return XPY(function(b){var J=b.Ji,F=b.getMetadata(),N=YEf(e,!1);F=eKn(e,F,N,U+J.getName());var R=US1(N,J.U,!0);b=J.G(b.Qy);N.send(F,"POST",b);return R},this.Qr).call(this,Y.L(q,T))};JSI.prototype.create=function(d,q,T){var Y=this.G,e=this.U+"/$rpc/google.internal.waa.v1.Waa/Create";q=q||{};T=T===void 0?{}:T;return flf(Y,e,d,q,fmQ,T)};var sB_="://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(" "),$SQ=/\bocr\b/;var F47=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(d){throw d;}},{VeD:!0, wOv:!0,Pl2:!1,G3U:h7c,fXx:HBI,lXO:!1,eNf:!1,K15:!0,oyw:yEc,kHO:!1,btZ:!1,KwD:!1});var p9=null,OC=!1,aQj=1,cS2=Symbol("SIGNAL"),Hy={version:0,kBw:0,eP:!1,s6:void 0,ML:void 0,DX:void 0,rF:0,SV:void 0,pZ:void 0,r7:!1,Ij:!1,kind:"unknown",kV:function(){return!1}, VR:function(){}, Yi:function(){}, Bof:function(){}};var QS=Symbol("UNSET"),MJ=Symbol("COMPUTING"),cy=Symbol("ERRORED");Object.assign({},Hy,{value:QS,eP:!0,error:null,PS:A_,kind:"computed",kV:function(d){return d.value===QS||d.value===MJ}, VR:function(d){if(d.value===MJ)throw Error("");var q=d.value;d.value=MJ;var T=xSD(d),Y=!1;try{var e=d.bb();Z6(null);Y=q!==QS&&q!==cy&&e!==cy&&d.PS(q,e)}catch(U){e=cy,d.error=U}finally{yS1(d,T)}Y?d.value=q:(d.value=e,d.version++)}});var M$g=Object.assign({},Hy,{PS:A_,value:void 0,kind:"signal"});Object.assign({},Hy,{value:QS,eP:!0,error:null,PS:A_,kind:"linkedSignal",kV:function(d){return d.value===QS||d.value===MJ}, VR:function(d){if(d.value===MJ)throw Error("");var q=d.value;d.value=MJ;var T=xSD(d);try{var Y=d.source();var e=d.bb(Y,q===QS||q===cy?void 0:{source:d.Upv,value:q});d.Upv=Y}catch(U){e=cy,d.error=U}finally{yS1(d,T)}q!==QS&&e!==cy&&d.PS(q,e)?d.value=q:(d.value=e,d.version++)}});Object.assign({},Hy,{Ij:!0,r7:!1,Yi:function(d){d.schedule!==null&&d.schedule(d.NJF)}, e1U:!1,DfZ:function(){}});g.M(K9,g.$1);K9.prototype.dispose=function(){window.removeEventListener("offline",this.j);window.removeEventListener("online",this.j);this.PO.Qt(this.S);delete K9.instance}; K9.prototype.YL=function(){return this.G}; K9.prototype.Yo=function(){var d=this;this.S=this.PO.DE(function(){var q;return g.G(function(T){if(T.U==1)return d.G?((q=window.navigator)==null?0:q.onLine)?T.tF(3):g.B(T,Bh(d),3):g.B(T,Bh(d),3);d.Yo();g.E6(T)})},3E4)};g.M(pPf,Et);var v9c=avg(pPf,[0,$0,x$R,qNR,$0,-2,qNR,ocj]);L9.prototype.set=function(d,q){q=q===void 0?!0:q;0<=d&&d<52&&Number.isInteger(d)&&this.data[d]!==q&&(this.data[d]=q,this.G=-1)}; L9.prototype.get=function(d){return!!this.data[d]};var Ph;g.Rs(g.uc,g.W);g.Q=g.uc.prototype;g.Q.start=function(){this.stop();this.T=!1;var d=ObX(this),q=nm1(this);d&&!q&&this.U.mozRequestAnimationFrame?(this.G=g.oB(this.U,"MozBeforePaint",this.j),this.U.mozRequestAnimationFrame(null),this.T=!0):this.G=d&&q?d.call(this.U,this.j):this.U.setTimeout(wRn(this.j),20)}; g.Q.stop=function(){if(this.isActive()){var d=ObX(this),q=nm1(this);d&&!q&&this.U.mozRequestAnimationFrame?TB(this.G):d&&q?q.call(this.U,this.G):this.U.clearTimeout(this.G)}this.G=null}; g.Q.isActive=function(){return this.G!=null}; g.Q.QJ=function(){this.T&&this.G&&TB(this.G);this.G=null;this.X.call(this.S,g.F_())}; g.Q.ir=function(){this.stop();g.uc.VX.ir.call(this)};g.Rs(g.f9,g.W);g.Q=g.f9.prototype;g.Q.EK=0;g.Q.ir=function(){g.f9.VX.ir.call(this);this.stop();delete this.G;delete this.U}; g.Q.start=function(d){this.stop();this.EK=g.GB(this.j,d!==void 0?d:this.VS)}; g.Q.stop=function(){this.isActive()&&g.oQ.clearTimeout(this.EK);this.EK=0}; g.Q.isActive=function(){return this.EK!=0}; g.Q.T9=function(){this.EK=0;this.G&&this.G.call(this.U)};g.M(g.mE,g.W);g.Q=g.mE.prototype;g.Q.Gh=function(d){this.j=arguments;this.EF||this.U?this.G=!0:SA(this)}; g.Q.stop=function(){this.EF&&(g.oQ.clearTimeout(this.EF),this.EF=null,this.G=!1,this.j=null)}; g.Q.pause=function(){this.U++}; g.Q.resume=function(){this.U--;this.U||!this.G||this.EF||(this.G=!1,SA(this))}; g.Q.ir=function(){g.W.prototype.ir.call(this);this.stop()};g.lc.prototype[Symbol.iterator]=function(){return this}; g.lc.prototype.next=function(){var d=this.G.next();return{value:d.done?void 0:this.U.call(void 0,d.value),done:d.done}};g.Rs(g.UA,g.$1);g.Q=g.UA.prototype;g.Q.isPlaying=function(){return this.G==1}; g.Q.isPaused=function(){return this.G==-1}; g.Q.Ry=function(){this.Ex("begin")}; g.Q.YG=function(){this.Ex("end")}; g.Q.onFinish=function(){this.Ex("finish")}; g.Q.onStop=function(){this.Ex("stop")}; g.Q.Ex=function(d){this.dispatchEvent(d)};var o9N=t4(function(){var d=g.FE("DIV"),q=g.J4?"-webkit":w_?"-moz":null,T="transition:opacity 1s linear;";q&&(T+=q+"-transition:opacity 1s linear;");q=ncf({style:T});if(d.nodeType===1&&/^(script|style)$/i.test(d.tagName))throw Error("");d.innerHTML=NX(q);return g.fT(d.firstChild,"transition")!=""});g.Rs(bM,g.UA);g.Q=bM.prototype;g.Q.play=function(){if(this.isPlaying())return!1;this.Ry();this.Ex("play");this.startTime=g.F_();this.G=1;if(o9N())return g.Dv(this.U,this.X),this.j=g.GB(this.noO,void 0,this),!0;this.I0(!1);return!1}; g.Q.noO=function(){g.Vp(this.U);BqI(this.U,this.L);g.Dv(this.U,this.T);this.j=g.GB((0,g.sI)(this.I0,this,!1),this.S*1E3)}; g.Q.stop=function(){this.isPlaying()&&this.I0(!0)}; g.Q.I0=function(d){g.Dv(this.U,"transition","");g.oQ.clearTimeout(this.j);g.Dv(this.U,this.T);this.endTime=g.F_();this.G=0;if(d)this.onStop();else this.onFinish();this.YG()}; g.Q.ir=function(){this.stop();bM.VX.ir.call(this)}; g.Q.pause=function(){};var GxN={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};Xr("Element","attributes")||Xr("Node","attributes");Xr("Element","innerHTML")||Xr("HTMLElement","innerHTML");Xr("Node","nodeName");Xr("Node","nodeType");Xr("Node","parentNode");Xr("Node","childNodes");Xr("HTMLElement","style")||Xr("Element","style");Xr("HTMLStyleElement","sheet");var uPI=kx1("getPropertyValue"),DSH=kx1("setProperty");Xr("Element","namespaceURI")||Xr("Node","namespaceURI");var CmH={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var ibD,bBQ,zK7,fQ1,IQX;ibD=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]");bBQ=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.VYQ=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.sA=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]");zK7=/^http:\/\/.*/;g.dX7=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");fQ1=/\s+/;IQX=/[\d\u06f0-\u06f9]/;g9.prototype.zp=function(){return new Fr(this.U())}; g9.prototype[Symbol.iterator]=function(){return new Ng(this.U())}; g9.prototype.G=function(){return new Ng(this.U())}; g.M(Fr,g.ER);Fr.prototype.next=function(){return this.U.next()}; Fr.prototype[Symbol.iterator]=function(){return new Ng(this.U)}; Fr.prototype.G=function(){return new Ng(this.U)}; g.M(Ng,g9);Ng.prototype.next=function(){return this.j.next()};xG.prototype.clone=function(){return new xG(this.G,this.L,this.j,this.S,this.T,this.X,this.U,this.B)}; xG.prototype.equals=function(d){return this.G==d.G&&this.L==d.L&&this.j==d.j&&this.S==d.S&&this.T==d.T&&this.X==d.X&&this.U==d.U&&this.B==d.B};hx.prototype.clone=function(){return new hx(this.start,this.end)};(function(){if(NhX){var d=/Windows NT ([0-9.]+)/;return(d=d.exec(g.k9()))?d[1]:"0"}return Ro?(d=/1[0|1][_.][0-9_.]+/,(d=d.exec(g.k9()))?d[0].replace(/_/g,"."):"10"):g.ID?(d=/Android\s+([^\);]+)(\)|;)/,(d=d.exec(g.k9()))?d[1]:""):cEL||Ec7||jsR?(d=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(d=d.exec(g.k9()))?d[1].replace(/_/g,"."):""):""})();var SE6=function(){if(g.Fv)return H7(/Firefox\/([0-9.]+)/);if(g.Jx||g.DP||g.o9)return Ecn;if(g.MI){if(Ln()||kS()){var d=H7(/CriOS\/([0-9.]+)/);if(d)return d}return H7(/Chrome\/([0-9.]+)/)}if(g.F8&&!Ln())return H7(/Version\/([0-9.]+)/);if(fZ||zt){if(d=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.k9()))return d[1]+"."+d[2]}else if(g.VU)return(d=H7(/Android\s+([0-9.]+)/))?d:H7(/Version\/([0-9.]+)/);return""}();g.Rs(g.Mg,g.W);g.Q=g.Mg.prototype;g.Q.subscribe=function(d,q,T){var Y=this.U[d];Y||(Y=this.U[d]=[]);var e=this.X;this.G[e]=d;this.G[e+1]=q;this.G[e+2]=T;this.X=e+3;Y.push(e);return e}; g.Q.unsubscribe=function(d,q,T){if(d=this.U[d]){var Y=this.G;if(d=d.find(function(e){return Y[e+1]==q&&Y[e+2]==T}))return this.Br(d)}return!1}; g.Q.Br=function(d){var q=this.G[d];if(q){var T=this.U[q];this.T!=0?(this.j.push(d),this.G[d+1]=function(){}):(T&&g.jj(T,d),delete this.G[d],delete this.G[d+1],delete this.G[d+2])}return!!q}; g.Q.publish=function(d,q){var T=this.U[d];if(T){var Y=Array(arguments.length-1),e=arguments.length,U;for(U=1;U0&&this.T==0)for(;T=this.j.pop();)this.Br(T)}}return U!=0}return!1}; g.Q.clear=function(d){if(d){var q=this.U[d];q&&(q.forEach(this.Br,this),delete this.U[d])}else this.G.length=0,this.U={}}; g.Q.ir=function(){g.Mg.VX.ir.call(this);this.clear();this.j.length=0};g.c7.prototype.set=function(d,q){q===void 0?this.G.remove(d):this.G.set(d,g.Wd(q))}; g.c7.prototype.get=function(d){try{var q=this.G.get(d)}catch(T){return}if(q!==null)try{return JSON.parse(q)}catch(T){throw"Storage: Invalid value was encountered";}}; g.c7.prototype.remove=function(d){this.G.remove(d)};g.Rs(EA,g.c7);EA.prototype.set=function(d,q){EA.VX.set.call(this,d,omn(q))}; EA.prototype.U=function(d){d=EA.VX.get.call(this,d);if(d===void 0||d instanceof Object)return d;throw"Storage: Invalid value was encountered";}; EA.prototype.get=function(d){if(d=this.U(d)){if(d=d.data,d===void 0)throw"Storage: Invalid value was encountered";}else d=void 0;return d};g.Rs(jp,EA);jp.prototype.set=function(d,q,T){if(q=omn(q)){if(T){if(T=T.length)return g.NJ;var e=T.key(q++);if(d)return g.j9(e);e=T.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return g.j9(e)}; return Y}; g.Q.clear=function(){Zg(this);this.G.clear()}; g.Q.key=function(d){Zg(this);return this.G.key(d)};g.Rs(OA,pv);g.Rs(qfj,pv);g.Rs(nv,Ax);nv.prototype.set=function(d,q){this.U.set(this.G+d,q)}; nv.prototype.get=function(d){return this.U.get(this.G+d)}; nv.prototype.remove=function(d){this.U.remove(this.G+d)}; nv.prototype.zp=function(d){var q=this.U[Symbol.iterator](),T=this,Y=new g.ER;Y.next=function(){var e=q.next();if(e.done)return e;for(e=e.value;e.slice(0,T.G.length)!=T.G;){e=q.next();if(e.done)return e;e=e.value}return g.j9(d?e.slice(T.G.length):T.U.get(e))}; return Y};tx.prototype.getValue=function(){return this.U}; tx.prototype.clone=function(){return new tx(this.G,this.U)};g.Q=B7.prototype;g.Q.LA=function(d,q){var T=this.G;T.push(new tx(d,q));d=T.length-1;q=this.G;for(T=q[d];d>0;){var Y=d-1>>1;if(q[Y].G>T.G)q[d]=q[Y],d=Y;else break}q[d]=T}; g.Q.remove=function(){var d=this.G,q=d.length,T=d[0];if(!(q<=0)){if(q==1)d.length=0;else{d[0]=d.pop();d=0;q=this.G;for(var Y=q.length,e=q[d];d>1;){var U=d*2+1,b=d*2+2;U=be.G)break;q[d]=q[U];d=U}q[d]=e}return T.getValue()}}; g.Q.N0=function(){for(var d=this.G,q=[],T=d.length,Y=0;Y>>16&65535|0;for(var U;T!==0;){U=T>2E3?2E3:T;T-=U;do e=e+q[Y++]|0,d=d+e|0;while(--U);e%=65521;d%=65521}return e|d<<16|0};for(var J1={},EU,UXR=[],jr=0;jr<256;jr++){EU=jr;for(var bnc=0;bnc<8;bnc++)EU=EU&1?3988292384^EU>>>1:EU>>>1;UXR[jr]=EU}J1=function(d,q,T,Y){T=Y+T;for(d^=-1;Y>>8^UXR[(d^q[Y])&255];return d^-1};var oM={};oM={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 zR=[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],m$=[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],pd6=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],xLN=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T2=Array(576);kG(T2);var Y5=Array(60);kG(Y5);var IM=Array(512);kG(IM);var fv=Array(256);kG(fv);var iM=Array(29);kG(iM);var Sp=Array(30);kG(Sp);var j_D,aZ_,AKI,E1f=!1;var RE;RE=[new Nv(0,0,0,0,function(d,q){var T=65535;for(T>d.C3-5&&(T=d.C3-5);;){if(d.xB<=1){$5(d);if(d.xB===0&&q===0)return 1;if(d.xB===0)break}d.pn+=d.xB;d.xB=0;var Y=d.s5+T;if(d.pn===0||d.pn>=Y)if(d.xB=d.pn-Y,d.pn=Y,eW(d,!1),d.q3.Wl===0)return 1;if(d.pn-d.s5>=d.r4-262&&(eW(d,!1),d.q3.Wl===0))return 1}d.LA=0;if(q===4)return eW(d,!0),d.q3.Wl===0?3:4;d.pn>d.s5&&eW(d,!1);return 1}), new Nv(4,4,8,4,gw),new Nv(4,5,16,8,gw),new Nv(4,6,32,32,gw),new Nv(4,4,16,16,FM),new Nv(8,16,32,32,FM),new Nv(8,16,128,128,FM),new Nv(8,32,128,256,FM),new Nv(32,128,258,1024,FM),new Nv(32,258,258,4096,FM)];var cKn={};cKn=function(){this.input=null;this.vV=this.b1=this.EO=0;this.output=null;this.H_=this.Wl=this.ZN=0;this.msg="";this.state=null;this.VO=2;this.Ic=0};var ZKg=Object.prototype.toString; x5.prototype.push=function(d,q){var T=this.q3,Y=this.options.chunkSize;if(this.ended)return!1;var e=q===~~q?q:q===!0?4:0;typeof d==="string"?T.input=eFD(d):ZKg.call(d)==="[object ArrayBuffer]"?T.input=new Uint8Array(d):T.input=d;T.EO=0;T.b1=T.input.length;do{T.Wl===0&&(T.output=new Lv.gi(Y),T.ZN=0,T.Wl=Y);d=M4j(T,e);if(d!==1&&d!==0)return this.YG(d),this.ended=!0,!1;if(T.Wl===0||T.b1===0&&(e===4||e===2))if(this.options.to==="string"){var U=Lv.kd(T.output,T.ZN);q=U;U=U.length;if(U<65537&&(q.subarray&& eSN||!q.subarray))q=String.fromCharCode.apply(null,Lv.kd(q,U));else{for(var b="",J=0;J0||T.Wl===0)&&d!==1);if(e===4)return(T=this.q3)&&T.state?(Y=T.state.status,Y!==42&&Y!==69&&Y!==73&&Y!==91&&Y!==103&&Y!==113&&Y!==666?d=Vy(T,-2):(T.state=null,d=Y===113?Vy(T,-3):0)):d=-2,this.YG(d),this.ended=!0,d===0;e===2&&(this.YG(0),T.Wl=0);return!0}; x5.prototype.YG=function(d){d===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Lv.VF(this.chunks));this.chunks=[];this.err=d;this.msg=this.q3.msg};var h1="@@redux/INIT"+yH(),KWD="@@redux/REPLACE"+yH();var GB7=typeof Symbol==="function"&&Symbol.observable||"@@observable";var XZQ=[0,g9E,-3,sU];g.M(WWI,Et);var wbj=avg(WWI,[0,$0,Ffs,UU,g9E,UU,-1,sU,g9E,sU,-1,$0,sU,Ffs,bK,XZQ,UU,-1,sU]);var CZ1=317184834;var Y2j=new g.Mv("adInfoDialogEndpoint");var GTj=new g.Mv("adPingingEndpoint");var TsN=new g.Mv("crossDeviceProgressCommand");var pS=new g.Mv("actionCompanionAdRenderer");var o5=new g.Mv("adActionInterstitialRenderer");var Jnq=new g.Mv("adDurationRemainingRenderer");var VP=new g.Mv("adHoverTextButtonRenderer");var q2Q=new g.Mv("adInfoDialogRenderer");var L6=new g.Mv("adMessageRenderer");var dN=new g.Mv("adPreviewRenderer");var OO=new g.Mv("adsEngagementPanelRenderer");var nhD=new g.Mv("dismissablePanelTextPortraitImageRenderer");var ZUI=new g.Mv("adsEngagementPanelSectionListViewModel");var syL=new g.Mv("flyoutCtaRenderer");var ZJ=new g.Mv("imageCompanionAdRenderer");var lO=new g.Mv("instreamAdPlayerOverlayRenderer");var AYQ=new g.Mv("instreamSurveyAdBackgroundImageRenderer");var oF=new g.Mv("instreamSurveyAdPlayerOverlayRenderer");var CS=new g.Mv("instreamSurveyAdRenderer"),vY=new g.Mv("instreamSurveyAdSingleSelectQuestionRenderer"),lV=new g.Mv("instreamSurveyAdMultiSelectQuestionRenderer"),aS=new g.Mv("instreamSurveyAdAnswerRenderer"),$Xn=new g.Mv("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var PY=new g.Mv("instreamVideoAdRenderer");var gSI=new g.Mv("textOverlayAdContentRenderer"),FnR=new g.Mv("enhancedTextOverlayAdContentRenderer"),Nt7=new g.Mv("imageOverlayAdContentRenderer");var vp=new g.Mv("playerOverlayLayoutRenderer");var VT=new g.Mv("videoInterstitialButtonedCenteredLayoutRenderer");var GYX=new g.Mv("aboveFeedAdLayoutRenderer");var LM6=new g.Mv("belowPlayerAdLayoutRenderer");var KM6=new g.Mv("inPlayerAdLayoutRenderer");var wG=new g.Mv("playerBytesAdLayoutRenderer");var S5=new g.Mv("playerBytesSequenceItemAdLayoutRenderer");var mu=new g.Mv("playerUnderlayAdLayoutRenderer");var WY=new g.Mv("adIntroRenderer");var LS=new g.Mv("playerBytesSequentialLayoutRenderer");var RpD=new g.Mv("slidingTextPlayerOverlayRenderer");var uV=new g.Mv("surveyTextInterstitialRenderer");var fS=new g.Mv("videoAdTrackingRenderer");var aOX=new g.Mv("videoInterstitialCenteredLayoutViewModel");var RSs=new g.Mv("simpleAdBadgeRenderer");var AP=new g.Mv("skipAdRenderer"),xXs=new g.Mv("skipButtonRenderer");var ei=new g.Mv("adSlotRenderer");var iV=new g.Mv("squeezebackPlayerSidePanelRenderer");var ynL=new g.Mv("timedPieCountdownRenderer");var mO=new g.Mv("adAvatarViewModel");var Sy=new g.Mv("adBadgeViewModel");var lU=new g.Mv("adButtonViewModel");var hSn=new g.Mv("adDetailsLineViewModel");var HnL=new g.Mv("adDisclosureBannerViewModel");var Qyj=new g.Mv("adPodIndexViewModel");var Mvq=new g.Mv("imageBackgroundViewModel");var cnc=new g.Mv("adGridCardCollectionViewModel");var ESN=new g.Mv("adGridCardTextViewModel");var jyl=new g.Mv("adPreviewViewModel");var aGn=new g.Mv("playerAdAvatarLockupCardButtonedViewModel");var AnN=new g.Mv("skipAdButtonViewModel");var pZI=new g.Mv("skipAdViewModel");var Znx=new g.Mv("timedPieCountdownViewModel");var OnB=new g.Mv("visitAdvertiserLinkViewModel");var nS=new g.Mv("bannerImageLayoutViewModel");var rG=new g.Mv("topBannerImageTextIconButtonedLayoutViewModel");var tR=new g.Mv("adsEngagementPanelLayoutViewModel");var IF=new g.Mv("displayUnderlayTextGridCardsLayoutViewModel");g.SH=new g.Mv("browseEndpoint");var nSL=new g.Mv("confirmDialogEndpoint");var DNX=new g.Mv("commandContext");var yd7=new g.Mv("rawColdConfigGroup");var x4f=new g.Mv("rawHotConfigGroup");g.NY=new g.Mv("commandExecutorCommand");g.M(DL7,Et);var wn2={m4v:0,BKU:1,f7r:32,ToF:61,r8f:67,Me5:103,Qix:86,GHf:42,l7O:60,OSD:62,iog:73,op5:76,tev:88,zN2:90,I7x:99,w1Z:98,pOk:100,ji5:102,Yiv:41,hNf:69,bow:70,a7f:71,q5w:2,mFO:27,ANDROID:3,Wiv:54,BUO:14,GNw:91,ZAw:55,OAv:24,ckv:20,CSv:18,VFZ:21,Kiv:104,lE2:30,jgw:29,ixO:28,D4F:101,THw:34,fEZ:36,kSv:38,IOS:5,uTF:15,eF5:92,dOv:40,RFg:25,vZg:17,XRZ:19,qPk:64,mOf:66,SPg:26,NBw:22,L7F:33,F7k:68,DOk:35,EZv:53,nZw:37,Jp5:39,Ibf:7,YxO:57,h0v:43,abZ:59,bSZ:93,o1v:74,sFg:75,HSU:85,utx:65,JCw:80,R0k:8,p1k:10, X1k:58,v6Z:63,d4w:72,UNw:23,uUk:11,dfx:13,xNf:12,rCZ:16,PuU:56,y8D:31,Jtv:77,C1v:84,Ufv:87,Vjf:89,kzF:94,M8D:95};g.M(cq,Et);cq.prototype.Wd=function(){return Oy(this,3)}; cq.prototype.Ki=function(){return Oy(this,5)}; cq.prototype.Lw=function(d){return K2(this,5,d)};g.M(Es,Et);g.M(wdX,Et);g.M(jW,Et);g.Q=jW.prototype;g.Q.getDeviceId=function(){return Oy(this,6)}; g.Q.AI=function(d){var q=es(this,9,Nb,3,!0);zI(q,d);return q[d]}; g.Q.getPlayerType=function(){return n2(this,36)}; g.Q.setHomeGroupInfo=function(d){return Qw(this,wdX,81,d)}; g.Q.clearLocationPlayabilityToken=function(){return VX(this,89)};g.M(aE,Et);aE.prototype.getValue=function(){return Oy(this,Rl(this,N7j,2))}; var N7j=[2,3,4,5,6];g.M(A1,Et);A1.prototype.setTrackingParams=function(d){return VX(this,1,w22(d,!1))};g.M(ps,Et);g.M(ZA,Et);ZA.prototype.AI=function(d){var q=es(this,5,R4,3,!0);zI(q,d);return q[d]};g.M(Os,Et);Os.prototype.getToken=function(){return tI(this,2)}; Os.prototype.setToken=function(d){return K2(this,2,d)};g.M(ns,Et);ns.prototype.setSafetyMode=function(d){return L2(this,5,d)};g.M(rw,Et);rw.prototype.Ol=function(d){return Qw(this,jW,1,d)};var Tb=new g.Mv("thumbnailLandscapePortraitRenderer");g.rnI=new g.Mv("changeEngagementPanelVisibilityAction");var tF_=new g.Mv("continuationCommand");g.tvE=new g.Mv("openPopupAction");g.AX=new g.Mv("webCommandMetadata");var H6N=new g.Mv("metadataBadgeRenderer");var rrg=new g.Mv("signalServiceEndpoint");var ri=new g.Mv("innertubeCommand");var RGD=new g.Mv("loggingDirectives");var Zi_={H8O:"EMBEDDED_PLAYER_MODE_UNKNOWN",b82:"EMBEDDED_PLAYER_MODE_DEFAULT",skD:"EMBEDDED_PLAYER_MODE_PFP",acU:"EMBEDDED_PLAYER_MODE_PFL"};var zyX=new g.Mv("channelThumbnailEndpoint");var fwf=new g.Mv("embeddedPlayerErrorMessageRenderer");var Cv_=new g.Mv("embeddedPlayerOverlayVideoDetailsRenderer"),i61=new g.Mv("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),Iw_=new g.Mv("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var x66=new g.Mv("embedsInfoPanelRenderer");var Btx=new g.Mv("feedbackEndpoint");var KnB=new g.Mv("callToActionButtonViewModel");var GP7=new g.Mv("interactionLoggingCommandMetadata");var EGQ={Kmw:"WEB_DISPLAY_MODE_UNKNOWN",cCZ:"WEB_DISPLAY_MODE_BROWSER",ksk:"WEB_DISPLAY_MODE_MINIMAL_UI",VUZ:"WEB_DISPLAY_MODE_STANDALONE",CVv:"WEB_DISPLAY_MODE_FULLSCREEN"};g.M(t1,Et);t1.prototype.getPlayerType=function(){return n2(this,7)}; t1.prototype.Sh=function(){return Oy(this,19)}; t1.prototype.setVideoId=function(d){return K2(this,19,d)};g.M(Bq,Et);g.M(Ks,Et);g.M(G2,Et); var Lnx=[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];var kPL=new g.Mv("loggingContext");g.M(Ls,Et);g.M(k5,Et);k5.prototype.Sh=function(){return tI(this,Rl(this,en,1))}; k5.prototype.setVideoId=function(d){return F2(this,1,en,a4(d))}; k5.prototype.getPlaylistId=function(){return tI(this,Rl(this,en,2))}; var en=[1,2];g.M(fZ7,Et);var af=new g.Mv("changeKeyedMarkersVisibilityCommand");var P47=new g.Mv("changeMarkersVisibilityCommand");var MiH=new g.Mv("loadMarkersCommand");var WnI=new g.Mv("suggestedActionDataViewModel");var mNI=new g.Mv("timelyActionViewModel");var Ik2=new g.Mv("timelyActionsOverlayViewModel");var Upg=new g.Mv("productListItemRenderer");var C4I=new g.Mv("shoppingOverlayRenderer");var uCj=new g.Mv("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var uk_=new g.Mv("adFeedbackEndpoint");var DXc=new g.Mv("menuEndpoint");var g01=new g.Mv("phoneDialerEndpoint");var sS6=new g.Mv("sendSmsEndpoint");var Wo1=new g.Mv("copyTextEndpoint");var wZs=new g.Mv("shareEndpoint"),fGq=new g.Mv("shareEntityEndpoint"),zSc=new g.Mv("shareEntityServiceEndpoint"),inI=new g.Mv("webPlayerShareEntityServiceEndpoint");g.KM=new g.Mv("urlEndpoint");g.EB=new g.Mv("watchEndpoint");var IGI=new g.Mv("watchPlaylistEndpoint");g.mXl=new g.Mv("offlineOrchestrationActionCommand");var nBQ=new g.Mv("compositeVideoOverlayRenderer");var SDq=new g.Mv("miniplayerRenderer");var kbN=new g.Mv("paidContentOverlayRenderer");var lGI=new g.Mv("playerMutedAutoplayOverlayRenderer"),vSB=new g.Mv("playerMutedAutoplayEndScreenRenderer");var BGn=new g.Mv("unserializedPlayerResponse"),oS_=new g.Mv("unserializedPlayerResponse");var VvB=new g.Mv("playlistEditEndpoint");var p8;g.q6=new g.Mv("buttonRenderer");p8=new g.Mv("toggleButtonRenderer");var pm1=new g.Mv("counterfactualRenderer");var dQR=new g.Mv("resolveUrlCommandMetadata");var qM7=new g.Mv("modifyChannelNotificationPreferenceEndpoint");var KIX=new g.Mv("pingingEndpoint");var T_s=new g.Mv("unsubscribeEndpoint");g.lx=new g.Mv("subscribeButtonRenderer");var YMQ=new g.Mv("subscribeEndpoint");var sg6=new g.Mv("buttonViewModel");var OU1=new g.Mv("qrCodeRenderer");var zcn={f5r:"LIVING_ROOM_APP_MODE_UNSPECIFIED",wRg:"LIVING_ROOM_APP_MODE_MAIN",K7k:"LIVING_ROOM_APP_MODE_KIDS",P95:"LIVING_ROOM_APP_MODE_MUSIC",Grw:"LIVING_ROOM_APP_MODE_UNPLUGGED",VVw:"LIVING_ROOM_APP_MODE_GAMING"};var Fo_=new g.Mv("autoplaySwitchButtonRenderer");var on,VQg,CVg,$2Y;on=new g.Mv("decoratedPlayerBarRenderer");VQg=new g.Mv("chapteredPlayerBarRenderer");CVg=new g.Mv("multiMarkersPlayerBarRenderer");$2Y=new g.Mv("chapterRenderer");g.YhH=new g.Mv("markerRenderer");var x26=new g.Mv("decoratedPlayheadRenderer");var yC1=new g.Mv("desktopOverlayConfigRenderer");var rU_=new g.Mv("engagementPanelSectionListRenderer");var RyY=new g.Mv("gatedActionsOverlayViewModel");var XwD=new g.Mv("heatMarkerRenderer");var b_Q=new g.Mv("heatmapRenderer");var Qxn=new g.Mv("watchToWatchTransitionRenderer");var D6_=new g.Mv("playlistPanelRenderer");var euc=new g.Mv("productUpsellSuggestedActionViewModel");var UQx=new g.Mv("suggestedActionTimeRangeTrigger"),bTI=new g.Mv("suggestedActionsRenderer"),XBI=new g.Mv("suggestedActionRenderer");var J26=new g.Mv("timedMarkerDecorationRenderer");var uI1=new g.Mv("cipher");var Kuf=new g.Mv("playerVars");var J4L=new g.Mv("playerVars");var ZF=g.oQ.window,src,$QQ,Pq=(ZF==null?void 0:(src=ZF.yt)==null?void 0:src.config_)||(ZF==null?void 0:($QQ=ZF.ytcfg)==null?void 0:$QQ.data_)||{};g.Vf("yt.config_",Pq);var fs=[];var d07=/^[\w.]*$/,lZY={q:!0,search_query:!0},Sff=String(mR);var ee=new function(){var d=window.document;this.G=window;this.U=d}; g.Vf("yt.ads_.signals_.getAdSignalsString",function(d){return SW(bb(d))});g.F_();var Te7="XMLHttpRequest"in g.oQ?function(){return new XMLHttpRequest}:null;var gEI="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.RQ(gEI);var biD={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"},hJN="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.RQ(gEI)),Ne2=!1,$07=HL;g.M(cL,xc);aD.prototype.then=function(d,q,T){return this.G?this.G.then(d,q,T):this.j===1&&d?(d=d.call(T,this.U))&&typeof d.then==="function"?d:pZ(d):this.j===2&&q?(d=q.call(T,this.U))&&typeof d.then==="function"?d:Ad(d):this}; aD.prototype.getValue=function(){return this.U}; aD.prototype.$goog_Thenable=!0;var Zq=!1;var uR=fZ||zt;var Afj=/^([0-9\.]+):([0-9\.]+)$/;g.M(b5,xc);b5.prototype.name="BiscottiError";g.M(Ud,xc);Ud.prototype.name="BiscottiMissingError";var nH_={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},XH=null;var TL6=yf(["data-"]),W6N={};var FZn=0,JB=g.J4?"webkit":w_?"moz":g.Jx?"ms":g.o9?"o":"",N__=g.qx("ytDomDomGetNextId")||function(){return++FZn}; g.Vf("ytDomDomGetNextId",N__);var wJ_={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};RY.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; RY.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; RY.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var xO=g.oQ.ytEventsEventsListeners||{};g.Vf("ytEventsEventsListeners",xO);var ii_=g.oQ.ytEventsEventsCounter||{count:0};g.Vf("ytEventsEventsCounter",ii_);var l_g=t4(function(){var d=!1;try{var q=Object.defineProperty({},"passive",{get:function(){d=!0}}); window.addEventListener("test",null,q)}catch(T){}return d}),I_6=t4(function(){var d=!1; try{var q=Object.defineProperty({},"capture",{get:function(){d=!0}}); window.addEventListener("test",null,q)}catch(T){}return d});var OU;OU=window;g.cj=OU.ytcsi&&OU.ytcsi.now?OU.ytcsi.now:OU.performance&&OU.performance.timing&&OU.performance.now&&OU.performance.timing.navigationStart?function(){return OU.performance.timing.navigationStart+OU.performance.now()}:function(){return(new Date).getTime()};g.Rs(Ms,g.W);Ms.prototype.K=function(d){d.G===void 0&&f__(d);var q=d.G;d.U===void 0&&f__(d);this.G=new g.wt(q,d.U)}; Ms.prototype.eE=function(){return this.G||new g.wt}; Ms.prototype.lr=function(){if(this.G){var d=(0,g.cj)();if(this.T!=0){var q=this.X,T=this.G,Y=q.x-T.x;q=q.y-T.y;Y=Math.sqrt(Y*Y+q*q)/(d-this.T);this.U[this.j]=Math.abs((Y-this.S)/this.S)>.5?1:0;for(T=q=0;T<4;T++)q+=this.U[T]||0;q>=3&&this.L();this.S=Y}this.T=d;this.X=this.G;this.j=(this.j+1)%4}}; Ms.prototype.ir=function(){g.Fq(this.B);g.hB(this.UD)};g.M(cu,g.W);cu.prototype.W=function(d,q,T,Y,e){T=g.iF((0,g.sI)(T,Y||this.Qp));T={target:d,name:q,callback:T};var U;e&&l_g()&&(U={passive:!0});d.addEventListener(q,T.callback,U);this.L.push(T);return T}; cu.prototype.t1=function(d){for(var q=0;q=w.JC)||p.G.version>=l||p.G.objectStoreNames.contains(P)||n.push(P)}F=n;if(F.length===0){a.tF(5);break}N=Object.keys(T.options.pw); R=J.objectStoreNames();if(T.ST.options.version+1)throw y.close(),T.j=!1,khj(T,h);return a.return(y);case 8:throw q(), x instanceof Error&&!g.RD("ytidb_async_stack_killswitch")&&(x.stack=x.stack+"\n"+b.substring(b.indexOf("\n")+1)),Nw(x,T.name,"",(H=T.options.version)!=null?H:-1);}})} function q(){T.G===Y&&(T.G=void 0)} var T=this;if(!this.j)throw khj(this);if(this.G)return this.G;var Y,e={blocking:function(U){U.close()}, closed:q,bjO:q,upgrade:this.options.upgrade};return this.G=Y=d()};var Wj=new k7("YtIdbMeta",{pw:{databases:{JC:1}},upgrade:function(d,q){q(1)&&g.jF(d,"databases",{keyPath:"actualName"})}});var f7,wO=new function(){}(new function(){});new g.sq;g.M(IJ,k7);IJ.prototype.U=function(d,q,T){T=T===void 0?{}:T;return(this.options.shared?i9_:zN7)(d,q,Object.assign({},T))}; IJ.prototype.delete=function(d){d=d===void 0?{}:d;return(this.options.shared?l6Q:I6g)(this.name,d)};var EER={},oM1=g.mY("ytGcfConfig",{pw:(EER.coldConfigStore={JC:1},EER.hotConfigStore={JC:1},EER),shared:!1,upgrade:function(d,q){q(1)&&(g.n7(g.jF(d,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.n7(g.jF(d,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.M(lR,g.W);lR.prototype.ir=function(){for(var d=g.E(this.U),q=d.next();!q.done;q=d.next()){var T=this.G;q=T.indexOf(q.value);q>=0&&T.splice(q,1)}this.U.length=0;g.W.prototype.ir.call(this)};TN.prototype.Lw=function(d){this.hotHashData=d;g.Vf("yt.gcf.config.hotHashData",this.hotHashData||null)};var jrc=typeof TextEncoder!=="undefined"?new TextEncoder:null,urf=jrc?function(d){return jrc.encode(d)}:function(d){d=g.ac(d); for(var q=new Uint8Array(d.length),T=0;T=q?!1:!0}; g.Q.FA=function(){var d=this;if(!AL(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Fn.hj("QUEUED",this.gA).then(function(q){q&&!d.eL(q,d.Pw)?d.PO.DE(function(){return g.G(function(T){if(T.U==1)return q.id===void 0?T.tF(2):g.B(T,d.Fn.p_(q.id,d.gA),2);d.FA();g.E6(T)})}):d.hk.YL()&&d.A4()})};var Og;var QDj={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464, startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489, keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var A4Q={},Uv2=g.mY("ServiceWorkerLogsDatabase",{pw:(A4Q.SWHealthLog={JC:1},A4Q),shared:!0,upgrade:function(d,q){q(1)&&g.n7(g.jF(d,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var tL={},g51=0;var BW;GN.prototype.requestComplete=function(d,q){q&&(this.U=!0);d=this.removeParams(d);this.G.get(d)||this.G.set(d,q)}; GN.prototype.isEndpointCFR=function(d){d=this.removeParams(d);return(d=this.G.get(d))?!1:d===!1&&this.U?!0:null}; GN.prototype.removeParams=function(d){return d.split("?")[0]}; GN.prototype.removeParams=GN.prototype.removeParams;GN.prototype.isEndpointCFR=GN.prototype.isEndpointCFR;GN.prototype.requestComplete=GN.prototype.requestComplete;GN.getInstance=L4;g.M(kL,g.$1);g.Q=kL.prototype;g.Q.YL=function(){return this.G.YL()}; g.Q.m8=function(d){this.G.G=d}; g.Q.HI=function(){var d=window.navigator.onLine;return d===void 0?!0:d}; g.Q.lU=function(){this.U=!0}; g.Q.listen=function(d,q){return this.G.listen(d,q)}; g.Q.Zd=function(d){d=Bh(this.G,d);d.then(function(q){g.RD("use_cfr_monitor")&&L4().requestComplete("generate_204",q)}); return d}; kL.prototype.sendNetworkCheckRequest=kL.prototype.Zd;kL.prototype.listen=kL.prototype.listen;kL.prototype.enableErrorFlushing=kL.prototype.lU;kL.prototype.getWindowStatus=kL.prototype.HI;kL.prototype.networkStatusHint=kL.prototype.m8;kL.prototype.isNetworkAvailable=kL.prototype.YL;kL.getInstance=RY6;g.M(g.PW,g.$1);g.PW.prototype.YL=function(){var d=g.qx("yt.networkStatusManager.instance.isNetworkAvailable");return d?d.bind(this.U)():!0}; g.PW.prototype.m8=function(d){var q=g.qx("yt.networkStatusManager.instance.networkStatusHint").bind(this.U);q&&q(d)}; g.PW.prototype.Zd=function(d){var q=this,T;return g.G(function(Y){T=g.qx("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(q.U);return g.RD("skip_network_check_if_cfr")&&L4().isEndpointCFR("generate_204")?Y.return(new Promise(function(e){var U;q.m8(((U=window.navigator)==null?void 0:U.onLine)||!0);e(q.YL())})):T?Y.return(T(d)):Y.return(!0)})};var WW;g.M(C4,p4);C4.prototype.writeThenSend=function(d,q){q||(q={});q=Dd(d,q);g.Ds()||(this.G=!1);p4.prototype.writeThenSend.call(this,d,q)}; C4.prototype.sendThenWrite=function(d,q,T){q||(q={});q=Dd(d,q);g.Ds()||(this.G=!1);p4.prototype.sendThenWrite.call(this,d,q,T)}; C4.prototype.sendAndWrite=function(d,q){q||(q={});q=Dd(d,q);g.Ds()||(this.G=!1);p4.prototype.sendAndWrite.call(this,d,q)}; C4.prototype.awaitInitialization=function(){return this.j.promise};var QE6=g.oQ.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Vf("ytNetworklessLoggingInitializationOptions",QE6);g.wM.prototype.isReady=function(){!this.config_&&xgg()&&(this.config_=g.Ug());return!!this.config_};var pBQ,iI,mL;pBQ=g.oQ.ytPubsubPubsubInstance||new g.Mg;iI=g.oQ.ytPubsubPubsubSubscribedKeys||{};mL=g.oQ.ytPubsubPubsubTopicToKeys||{};g.IR=g.oQ.ytPubsubPubsubIsSynchronous||{};g.Mg.prototype.subscribe=g.Mg.prototype.subscribe;g.Mg.prototype.unsubscribeByKey=g.Mg.prototype.Br;g.Mg.prototype.publish=g.Mg.prototype.publish;g.Mg.prototype.clear=g.Mg.prototype.clear;g.Vf("ytPubsubPubsubInstance",pBQ);g.Vf("ytPubsubPubsubTopicToKeys",mL);g.Vf("ytPubsubPubsubIsSynchronous",g.IR); g.Vf("ytPubsubPubsubSubscribedKeys",iI);var A1X={};g.M(J$,g.W);J$.prototype.append=function(d){if(!this.U)throw Error("This does not support the append operation");d=d.tA();this.tA().appendChild(d)}; g.M($y,J$);$y.prototype.tA=function(){return this.G};g.M(g4,g.W);g4.prototype.onTouchStart=function(d){this.L=!0;this.U=d.touches.length;this.G.isActive()&&(this.G.stop(),this.S=!0);d=d.touches;this.X=OsY(this,d)||d.length!=1;var q=d.item(0);this.X||!q?this.K=this.B=Infinity:(this.B=q.clientX,this.K=q.clientY);for(q=this.j.length=0;q=0)}if(q||d&&Math.pow(d.clientX-this.B,2)+Math.pow(d.clientY-this.K,2)>25)this.T=!0}; g4.prototype.onTouchEnd=function(d){var q=d.changedTouches;q&&this.L&&this.U==1&&!this.T&&!this.S&&!this.X&&OsY(this,q)&&(this.lr=d,this.G.start());this.U=d.touches.length;this.U===0&&(this.T=this.L=!1,this.j.length=0);this.S=!1};var FZ=Date.now().toString();var Hi={};var A$=Symbol("injectionDeps");M9.prototype.toString=function(){return"InjectionToken("+this.name+")"}; tW6.prototype.resolve=function(d){return d instanceof ci?pC(this,d.key,[],!0):pC(this,d,[])};var Z5;var nC=window;var KC=g.RD("web_enable_lifecycle_monitoring")&&r4()!==0,WR_=g.RD("web_enable_lifecycle_monitoring");LR2.prototype.cancel=function(){for(var d=g.E(this.G),q=d.next();!q.done;q=d.next())q=q.value,q.jobId===void 0||q.ID||this.scheduler.Qt(q.jobId),q.ID=!0;this.U.resolve()};g.Q=GT.prototype;g.Q.install=function(d){this.plugins.push(d);return this}; g.Q.uninstall=function(){var d=this;g.CN.apply(0,arguments).forEach(function(q){q=d.plugins.indexOf(q);q>-1&&d.plugins.splice(q,1)})}; g.Q.transition=function(d,q){var T=this;KC&&KRQ(this.state);var Y=this.transitions.find(function(U){return Array.isArray(U.from)?U.from.find(function(b){return b===T.state&&U.to===d}):U.from===T.state&&U.to===d}); if(Y){this.U&&(k26(this.U),this.U=void 0);CFg(this,d,q);this.state=d;KC&&t$(this.state);Y=Y.action.bind(this);var e=this.plugins.filter(function(U){return U[d]}).map(function(U){return U[d]}); Y(PF1(this,e),q)}else throw Error("no transition specified from "+this.state+" to "+d);}; g.Q.HzF=function(d){var q=g.CN.apply(1,arguments);g.IY();for(var T=g.E(d),Y=T.next(),e={};!Y.done;e={M$:void 0},Y=T.next())e.M$=Y.value,J_2(function(U){return function(){ky(U.M$.name);Wi(function(){return U.M$.callback.apply(U.M$,g.RQ(q))}); Pi(U.M$.name)}}(e))}; g.Q.s6x=function(d){var q=g.CN.apply(1,arguments),T,Y,e,U;return g.G(function(b){b.U==1&&(g.IY(),T=g.E(d),Y=T.next(),e={});if(b.U!=3){if(Y.done)return b.tF(0);e.T0=Y.value;e.SS=void 0;U=function(J){return function(){ky(J.T0.name);var F=Wi(function(){return J.T0.callback.apply(J.T0,g.RQ(q))}); Z4(F)?J.SS=g.RD("web_lifecycle_error_handling_killswitch")?F.then(function(){Pi(J.T0.name)}):F.then(function(){Pi(J.T0.name)},function(N){G2X(N); Pi(J.T0.name)}):Pi(J.T0.name)}}(e); J_2(U);return e.SS?g.B(b,e.SS,3):b.tF(3)}e={T0:void 0,SS:void 0};Y=T.next();return b.tF(2)})}; g.Q.F3=function(d){var q=g.CN.apply(1,arguments),T=this,Y=d.map(function(e){return{QB:function(){ky(e.name);Wi(function(){return e.callback.apply(e,g.RQ(q))}); Pi(e.name)}, priority:LC(T,e)}}); Y.length&&(this.U=new LR2(Y))}; g.U6.Object.defineProperties(GT.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var uy;g.M(CC,GT);CC.prototype.S=function(d,q){var T=this;this.G=g.zy(0,function(){T.currentState==="application_navigating"&&T.transition("none")},5E3); d(q==null?void 0:q.event)}; CC.prototype.X=function(d,q){this.G&&(g.Gh.Qt(this.G),this.G=null);d(q==null?void 0:q.event)};var Fn=[];g.Vf("yt.logging.transport.getScrapedGelPayloads",function(){return Fn});D5.prototype.storePayload=function(d,q){d=w4(d);this.store[d]?this.store[d].push(q):(this.U={},this.store[d]=[q]);this.G++;g.RD("more_accurate_gel_parser")&&(q=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(q));return d}; D5.prototype.smartExtractMatchingEntries=function(d){if(!d.keys.length)return[];for(var q=zT(this,d.keys.splice(0,1)[0]),T=[],Y=0;Y=0){Y=!1;break a}}Y=!0}Y&&(q=Ba(q))&&this.xm(q)}}; g.Q.K4=function(d){return d}; g.Q.onTouchStart=function(d){this.yv.onTouchStart(d)}; g.Q.onTouchMove=function(d){this.yv.onTouchMove(d)}; g.Q.onTouchEnd=function(d){if(this.yv)this.yv.onTouchEnd(d)}; g.Q.xm=function(d){this.layoutId?this.Nk.executeCommand(d,this.layoutId):(d=new g.CW("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Zz(d))}; g.Q.createServerVe=function(d,q){this.api.createServerVe(d,this);this.api.setTrackingParams(d,q)}; g.Q.logVisibility=function(d,q){this.api.hasVe(d)&&this.api.logVisibility(d,q,this.interactionLoggingClientData)}; g.Q.ir=function(){this.clear(null);this.t1(this.kx);for(var d=g.E(this.rO),q=d.next();!q.done;q=d.next())this.t1(q.value);g.Ji.prototype.ir.call(this)};g.M(nM,sx); nM.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);this.G=q;if(q.text==null&&q.icon==null)g.OL(Error("ButtonRenderer did not have text or an icon set."));else{switch(q.style||null){case "STYLE_UNKNOWN":d="ytp-ad-button-link";break;default:d=null}d!=null&&g.d9(this.element,d);q.text!=null&&(d=g.gx(q.text),g.nh(d)||(this.element.setAttribute("aria-label",d),this.j=new g.Ji({Y:"span",D:"ytp-ad-button-text",j5:d}),g.C(this,this.j),this.j.IU(this.element)));q.accessibilityData&&q.accessibilityData.accessibilityData&& q.accessibilityData.accessibilityData.label&&!g.nh(q.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",q.accessibilityData.accessibilityData.label);q.icon!=null&&(q=Ox(q.icon,this.T),q!=null&&(this.U=new g.Ji({Y:"span",D:"ytp-ad-button-icon",V:[q]}),g.C(this,this.U)),this.X?yp(this.element,this.U.element,0):this.U.IU(this.element))}}; nM.prototype.clear=function(){this.hide()}; nM.prototype.onClick=function(d){sx.prototype.onClick.call(this,d);d=g.E(uHn(this));for(var q=d.next();!q.done;q=d.next())q=q.value,this.layoutId?this.Nk.executeCommand(q,this.layoutId):g.Zz(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.M(rx,g.W);rx.prototype.ir=function(){this.U&&g.hB(this.U);this.G.clear();ti=null;g.W.prototype.ir.call(this)}; rx.prototype.register=function(d,q){q&&this.G.set(d,q)}; var ti=null;g.M(GW,sx); GW.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);d=q.hoverText||null;q=q.button&&g.D(q.button,g.q6)||null;q==null?g.Zz(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new nM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,void 0,void 0,void 0,void 0,this.j),g.C(this,this.button),this.button.init(qP("button"),q,this.macros),d&&this.button.element.setAttribute("aria-label",g.gx(d)),this.button.IU(this.element),this.K&&!g.V5(this.button.element, "ytp-ad-clickable")&&g.d9(this.button.element,"ytp-ad-clickable"),this.j&&g.d9(this.button.element,"ytp-ad-hover-text-button--clean-player"),d&&(this.U=new g.Ji({Y:"div",D:"ytp-ad-hover-text-container"}),this.X&&(q=new g.Ji({Y:"div",D:"ytp-ad-hover-text-callout"}),q.IU(this.U.element),g.C(this,q)),g.C(this,this.U),this.U.IU(this.element),q=Bk(d),yp(this.U.element,q,0)),this.show())}; GW.prototype.hide=function(){this.button&&this.button.hide();this.U&&this.U.hide();sx.prototype.hide.call(this)}; GW.prototype.show=function(){this.button&&this.button.show();sx.prototype.show.call(this)};g.M(kP,sx); kP.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);T=(d=q.thumbnail)&&LM(d)||"";g.nh(T)?Math.random()<.01&&g.OL(Error("Found AdImage without valid image URL")):(this.G?g.Dv(this.element,"backgroundImage","url("+T+")"):XE(this.element,{src:T}),XE(this.element,{alt:d&&d.accessibility&&d.accessibility.label||""}),q&&q.adRendererCommands&&q.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; kP.prototype.clear=function(){this.hide()};g.M(Pk,sx);g.Q=Pk.prototype;g.Q.hide=function(){sx.prototype.hide.call(this);this.j&&this.j.focus()}; g.Q.show=function(){this.j=document.activeElement;sx.prototype.show.call(this);this.T.focus()}; g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);this.U=q;q.dialogMessages||q.title!=null?q.confirmLabel==null?g.Zz(Error("ConfirmDialogRenderer.confirmLabel was not set.")):q.cancelLabel==null?g.Zz(Error("ConfirmDialogRenderer.cancelLabel was not set.")):zTf(this,q):g.Zz(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.Q.clear=function(){g.jX(this.G);this.hide()}; g.Q.c5=function(){this.hide()}; g.Q.Yu=function(){var d=this.U.cancelEndpoint;d&&(this.layoutId?this.Nk.executeCommand(d,this.layoutId):g.Zz(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.Q.CT=function(){var d=this.U.confirmNavigationEndpoint||this.U.confirmEndpoint;d&&(this.layoutId?this.Nk.executeCommand(d,this.layoutId):g.Zz(Error("Missing layoutId for confirm dialog.")));this.hide()};g.M(Wk,sx);g.Q=Wk.prototype; g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);this.j=q;if(q.defaultText==null&&q.defaultIcon==null)g.Zz(Error("ToggleButtonRenderer must have either text or icon set."));else if(q.defaultIcon==null&&q.toggledIcon!=null)g.Zz(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(q.style){switch(q.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":d="ytp-ad-toggle-button-default-style";break;default:d=null}d!=null&&g.d9(this.T,d)}d={};q.defaultText? (T=g.gx(q.defaultText),g.nh(T)||(d.buttonText=T,this.api.C().experiments.Wv("a11y_h5_associate_survey_question")||this.G.setAttribute("aria-label",T),this.api.C().experiments.Wv("fix_h5_toggle_button_a11y")&&this.U.setAttribute("aria-label",T))):g.dv(this.z2,!1);q.defaultTooltip&&(d.tooltipText=q.defaultTooltip,this.G.hasAttribute("aria-label")||this.U.setAttribute("aria-label",q.defaultTooltip));q.defaultIcon?(T=Ox(q.defaultIcon),this.updateValue("untoggledIconTemplateSpec",T),q.toggledIcon?(this.UD= !0,T=Ox(q.toggledIcon),this.updateValue("toggledIconTemplateSpec",T)):(g.dv(this.K,!0),g.dv(this.X,!1)),g.dv(this.G,!1)):g.dv(this.U,!1);g.FV(d)||this.update(d);q.isToggled&&(g.d9(this.T,"ytp-ad-toggle-button-toggled"),this.toggleButton(q.isToggled));CM(this);this.W(this.element,"change",this.yQ);this.show()}}; g.Q.onClick=function(d){this.rO.length>0&&(this.toggleButton(!this.isToggled()),this.yQ());sx.prototype.onClick.call(this,d)}; g.Q.yQ=function(){g.ep(this.T,"ytp-ad-toggle-button-toggled",this.isToggled());for(var d=g.E(iWj(this,this.isToggled())),q=d.next();!q.done;q=d.next())q=q.value,this.layoutId?this.Nk.executeCommand(q,this.layoutId):g.Zz(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);CM(this)}; g.Q.clear=function(){this.hide()}; g.Q.toggleButton=function(d){g.ep(this.T,"ytp-ad-toggle-button-toggled",d);this.G.checked=d;CM(this)}; g.Q.isToggled=function(){return this.G.checked};g.M(uE,cu);uE.prototype.S=function(d){if(Array.isArray(d)){d=g.E(d);for(var q=d.next();!q.done;q=d.next())q=q.value,q instanceof IsI&&this.j(q)}};g.M(Dy,sx);g.Q=Dy.prototype;g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);q.reasons?q.confirmLabel==null?g.Zz(Error("AdFeedbackRenderer.confirmLabel was not set.")):(q.cancelLabel==null&&g.OL(Error("AdFeedbackRenderer.cancelLabel was not set.")),q.title==null&&g.OL(Error("AdFeedbackRenderer.title was not set.")),vO2(this,q)):g.Zz(Error("AdFeedbackRenderer.reasons were not set."))}; g.Q.clear=function(){Hu(this.X);Hu(this.K);this.T.length=0;this.hide()}; g.Q.hide=function(){this.G&&this.G.hide();this.U&&this.U.hide();sx.prototype.hide.call(this);this.j&&this.j.focus()}; g.Q.show=function(){this.G&&this.G.show();this.U&&this.U.show();this.j=document.activeElement;sx.prototype.show.call(this);this.X.focus()}; g.Q.On=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.Q.tTD=function(){this.hide()}; wx.prototype.tA=function(){return this.G.element}; wx.prototype.getCommand=function(){return this.U}; wx.prototype.isChecked=function(){return this.j.checked};g.M(fM,Pk);fM.prototype.c5=function(d){Pk.prototype.c5.call(this,d);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; fM.prototype.Yu=function(d){Pk.prototype.Yu.call(this,d);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; fM.prototype.CT=function(d){Pk.prototype.CT.call(this,d);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.M(zW,sx);g.Q=zW.prototype; g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);this.X=q;if(q.dialogMessage==null&&q.title==null)g.Zz(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{q.confirmLabel==null&&g.OL(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(d=q.closeOverlayRenderer&&g.D(q.closeOverlayRenderer,g.q6)||null)this.G=new nM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.C(this,this.G),this.G.init(qP("button"),d,this.macros),this.G.IU(this.element);q.title&&(d=g.gx(q.title),this.updateValue("title",d));if(q.adReasons)for(d=q.adReasons,T=0;T=this.aU?(this.UD.hide(),this.qk=!0,this.publish("i")):this.j&&this.j.isTemplated()&&(d=Math.max(0,Math.ceil((this.aU-d)/1E3)),d!=this.Fw&&(mr(this.j,{TIME_REMAINING:String(d)}),this.Fw=d)))}};g.M(qY,Sx);g.Q=qY.prototype; g.Q.init=function(d,q,T){Sx.prototype.init.call(this,d,q,T);if(q.image&&q.image.thumbnail)if(q.headline)if(q.description)if((d=q.actionButton&&g.D(q.actionButton,g.q6))&&d.navigationEndpoint){var Y=this.api.getVideoData(2);if(Y!=null)if(q.image&&q.image.thumbnail){var e=q.image.thumbnail.thumbnails;e!=null&&e.length>0&&g.nh(g.rt(e[0].url))&&(e[0].url=Y.profilePicture)}else g.OL(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.j.init(qP("ad-image"),q.image,T);this.X.init(qP("ad-text"), q.headline,T);this.T.init(qP("ad-text"),q.description,T);this.U.init(qP("button"),d,T);T=C9(this.U.element);Wh(this.U.element,T+" This link opens in new tab");this.UD=d.navigationEndpoint;this.api.uB()||this.show();this.api.C().N("enable_larger_flyout_cta_on_desktop")&&(this.Qv("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Qv("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Qv("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.Qv("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Qv("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Qv("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.U.element.classList.add("ytp-flyout-cta-action-button-large"),this.U.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Qv("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.Mi.bind(this));this.z2=q.startMs||0;lE(this)}else g.Zz(Error("FlyoutCtaRenderer has no valid action button."));else g.Zz(Error("FlyoutCtaRenderer has no description AdText."));else g.Zz(Error("FlyoutCtaRenderer has no headline AdText."));else g.OL(Error("FlyoutCtaRenderer has no image."))}; g.Q.onClick=function(d){Sx.prototype.onClick.call(this,d);this.api.pauseVideo();!g.HB(this.U.element,d.target)&&this.UD&&(this.layoutId?this.Nk.executeCommand(this.UD,this.layoutId):g.Zz(Error("Missing layoutId for flyout cta.")))}; g.Q.Ba=function(){if(this.G){var d=this.G.getProgressState();(d&&d.current||this.aU)&&1E3*d.current>=this.z2&&(vk(this),g.TR(this.element,"ytp-flyout-cta-inactive"),this.U.element.removeAttribute("tabIndex"))}}; g.Q.K3=function(){this.clear()}; g.Q.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Mi.bind(this))}; g.Q.show=function(){this.U&&this.U.show();Sx.prototype.show.call(this)}; g.Q.hide=function(){this.U&&this.U.hide();Sx.prototype.hide.call(this)}; g.Q.Mi=function(d){d=="hidden"?this.show():this.hide()};g.M(Tc,sx);g.Q=Tc.prototype; g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);this.G=q;if(this.G.rectangle)for(d=this.G.likeButton&&g.D(this.G.likeButton,p8),q=this.G.dislikeButton&&g.D(this.G.dislikeButton,p8),this.j.init(qP("toggle-button"),d,T),this.U.init(qP("toggle-button"),q,T),this.W(this.element,"change",this.z9),this.T.show(100),this.show(),T=g.E(this.G&&this.G.impressionCommands||[]),d=T.next();!d.done;d=T.next())d=d.value,this.layoutId?this.Nk.executeCommand(d,this.layoutId):g.Zz(Error("Missing layoutId for instream user sentiment."))}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){this.j.hide();this.U.hide();sx.prototype.hide.call(this)}; g.Q.show=function(){this.j.show();this.U.show();sx.prototype.show.call(this)}; g.Q.z9=function(){t$7(this.element,"ytp-ad-instream-user-sentiment-selected");this.G.postMessageAction&&this.api.gO("onYtShowToast",this.G.postMessageAction);this.T.hide()}; g.Q.onClick=function(d){this.rO.length>0&&this.z9();sx.prototype.onClick.call(this,d)};g.M(Yo,g.W);g.Q=Yo.prototype;g.Q.ir=function(){this.reset();g.W.prototype.ir.call(this)}; g.Q.reset=function(){g.jX(this.T);this.X=!1;this.G&&this.G.stop();this.S.stop();this.j&&(this.j=!1,this.L.play())}; g.Q.start=function(){this.reset();this.T.W(this.U,"mouseover",this.rL,this);this.T.W(this.U,"mouseout",this.pE,this);this.lr&&(this.T.W(this.U,"focusin",this.rL,this),this.T.W(this.U,"focusout",this.pE,this));this.G?this.G.start():(this.X=this.j=!0,g.Dv(this.U,{opacity:this.K}))}; g.Q.rL=function(){this.j&&(this.j=!1,this.L.play());this.S.stop();this.G&&this.G.stop()}; g.Q.pE=function(){this.X?this.S.start():this.G&&this.G.start()}; g.Q.Sx=function(){this.j||(this.j=!0,this.B.play(),this.X=!0)};var sJ1=[new eC("b.f_",!1,0),new eC("j.s_",!1,2),new eC("r.s_",!1,4),new eC("e.h_",!1,6),new eC("i.s_",!0,8),new eC("s.t_",!1,10),new eC("p.h_",!1,12),new eC("s.i_",!1,14),new eC("f.i_",!1,16),new eC("a.b_",!1,18),new eC("a.o_",!1),new eC("g.o_",!1,22),new eC("p.i_",!1,24),new eC("p.m_",!1),new eC("n.k_",!0,20),new eC("i.f_",!1),new eC("a.s_",!0),new eC("m.c_",!1),new eC("n.h_",!1,26),new eC("o.p_",!1),new eC("m.p_",!0,28),new eC("o.a_",!1),new eC("d.p_",!1),new eC("e.i_",!1)].reduce(function(d,q){d[q.U]= q;return d},{});g.M(F$,Sx);g.Q=F$.prototype; g.Q.init=function(d,q,T){Sx.prototype.init.call(this,d,q,T);this.UD=q;(this.z2=g7_(this))&&g.OL(Error("hasAdControlInClickCommands_ is true."));if(!q||g.FV(q))g.Zz(Error("SkipButtonRenderer was not specified or empty."));else if(!q.message||g.FV(q.message))g.Zz(Error("SkipButtonRenderer.message was not specified or empty."));else if(d=this.X?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},q=Ox(d),q==null?g.Zz(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+d.iconType+".")): (this.api.C().N("disable_touch_events_on_skip_button")&&(q.Z=Object.assign({},q.Z,{"aria-hidden":"true",aXU:"false"})),this.j=new g.Ji({Y:"button",hF:[this.X?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{Y:"span",D:this.X?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[q]}]}),g.C(this,this.j),this.j.IU(this.T.element),this.U=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,"ytp-ad-skip-button-text"),this.X&&this.U.element.classList.add("ytp-ad-skip-button-text-centered"), this.U.init(qP("ad-text"),this.UD.message,T),g.C(this,this.U),yp(this.j.element,this.U.element,0)),!this.api.C().N("disable_touch_events_on_skip_button")){var Y=Y===void 0?null:Y;T=this.api.C();!(this.rO.length>0)&&T.U&&(vx?0:"ontouchstart"in document.documentElement&&(ocD()||XQ()))&&(this.t1(this.kx),Y&&this.t1(Y),this.rO=[this.W(this.element,"touchstart",this.onTouchStart,this),this.W(this.element,"touchmove",this.onTouchMove,this),this.W(this.element,"touchend",this.onTouchEnd,this)])}}; g.Q.clear=function(){this.aU.reset();this.hide()}; g.Q.hide=function(){this.T.hide();this.U&&this.U.hide();vk(this);Sx.prototype.hide.call(this)}; g.Q.onClick=function(d){if(this.j!=null){if(d){var q=d||window.event;q.returnValue=!1;q.preventDefault&&q.preventDefault()}var T;if(Xj_(d,{contentCpn:((T=this.api.getVideoData(1))==null?void 0:T.clientPlaybackNonce)||""})===0)this.api.gO("onAbnormalityDetected");else if(Sx.prototype.onClick.call(this,d),this.publish("j"),this.api.gO("onAdSkip"),this.qk||!this.z2)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.Q.K4=function(d){if(!this.qk)return this.z2&&Jm("SkipButton click commands not pruned while ALC exist"),d;var q,T=(q=g.D(d,g.NY))==null?void 0:q.commands;if(!T)return d;d=[];for(q=0;q=this.X&&FYQ(this,!0)};g.M(xo,nM);xo.prototype.init=function(d,q,T){nM.prototype.init.call(this,d,q,T);d=!1;q.text!=null&&(d=g.gx(q.text),d=!g.nh(d));d?q.navigationEndpoint==null?g.OL(Error("No visit advertiser clickthrough provided in renderer,")):q.style!=="STYLE_UNKNOWN"?g.OL(Error("Button style was not a link-style type in renderer,")):this.show():g.OL(Error("No visit advertiser text was present in the renderer."))};g.M(yZ,sx); yZ.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);d=q.text;g.nh($P(d))?g.OL(Error("SimpleAdBadgeRenderer has invalid or empty text")):(d&&d.text&&(q=d.text,this.j&&!this.U&&(q=this.api.C(),q=d.text+" "+(q&&q.U?"\u2022":"\u00b7")),q={text:q,isTemplated:d.isTemplated},d.style&&(q.style=d.style),d.targetId&&(q.targetId=d.targetId),d=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),d.init(qP("simple-ad-badge"),q,T),d.IU(this.element),g.C(this,d)),this.show())}; yZ.prototype.clear=function(){this.hide()};g.M(hm,TW);g.M(HG,g.YP);g.Q=HG.prototype;g.Q.F0=function(){return this.durationMs}; g.Q.stop=function(){this.G&&this.CC.t1(this.G)}; g.Q.Yc=function(d){this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:d.current};this.publish("h")}; g.Q.getProgressState=function(){return this.U}; g.Q.Ml=function(d){g.gs(d,2)&&this.publish("g")};g.M(QZ,g.YP);g.Q=QZ.prototype;g.Q.F0=function(){return this.durationMs}; g.Q.start=function(){this.G||(this.G=!0,this.timer.start())}; g.Q.stop=function(){this.G&&(this.G=!1,this.timer.stop())}; g.Q.Yc=function(){this.MQ+=100;var d=!1;this.MQ>this.durationMs&&(this.MQ=this.durationMs,this.timer.stop(),d=!0);this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.MQ/1E3};this.publish("h");d&&this.publish("g")}; g.Q.getProgressState=function(){return this.U};g.M(EP,Sx);g.Q=EP.prototype;g.Q.init=function(d,q,T){Sx.prototype.init.call(this,d,q,T);var Y;if(q==null?0:(Y=q.templatedCountdown)==null?0:Y.templatedAdText){d=q.templatedCountdown.templatedAdText;if(!d.isTemplated){g.OL(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.U=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);this.U.init(qP("ad-text"),d,{});this.U.IU(this.element);g.C(this,this.U)}this.show()}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){vk(this);Sx.prototype.hide.call(this)}; g.Q.K3=function(){this.hide()}; g.Q.Ba=function(){if(this.G!=null){var d=this.G.getProgressState();if(d!=null&&d.current!=null&&this.U){var q=this.G instanceof HG?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:d.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.G instanceof QZ?d.seekableEnd:this.api.getDuration(2,!1);d=d.current;var T,Y,e=((T=this.api.getVideoData())==null?0:(Y=T.y5)==null?0:Y.call(T))?Math.max(q-d,0):q-d;mr(this.U,{FORMATTED_AD_DURATION_REMAINING:String(g.MY(e)), TIME_REMAINING:String(Math.ceil(e))})}}}; g.Q.show=function(){lE(this);Sx.prototype.show.call(this)};g.M(jC,Ih);jC.prototype.onClick=function(d){Ih.prototype.onClick.call(this,d);this.api.onAdUxClicked(this.componentType)};g.M(Am,sx);Am.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(d=q.content){g.Qp(this.element,d);var T,Y;q=((T=q.interaction)==null?void 0:(Y=T.accessibility)==null?void 0:Y.label)||d;this.element.setAttribute("aria-label",q)}else g.Zz(Error("AdSimpleAttributedString does not have text content"))}; Am.prototype.clear=function(){this.hide()}; Am.prototype.onClick=function(d){sx.prototype.onClick.call(this,d)};g.M(pG,sx); pG.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});(d=q.label)&&d.content&&!g.nh(d.content)?(this.adBadgeText.init(qP("ad-simple-attributed-string"),new au(d)),(q=q.adPodIndex)&&q.content&&!g.nh(q.content)&&(this.G=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),this.G.IU(this.element),g.C(this,this.G),this.G.element.classList.add("ytp-ad-badge__pod-index"),this.G.init(qP("ad-simple-attributed-string"),new au(q))),this.element.classList.add(this.U?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.Zz(Error("No label is returned in AdBadgeViewModel."))}; pG.prototype.show=function(){this.adBadgeText.show();var d;(d=this.G)==null||d.show();sx.prototype.show.call(this)}; pG.prototype.hide=function(){this.adBadgeText.hide();var d;(d=this.G)==null||d.hide();sx.prototype.hide.call(this)};g.M(Z0,sx);Z0.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});(d=q.adPodIndex)&&d.content&&!g.nh(d.content)&&(this.G=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),this.G.IU(this.element),g.C(this,this.G),this.G.init(qP("ad-simple-attributed-string"),new au(d)),q.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()}; Z0.prototype.show=function(){var d;(d=this.G)==null||d.show();sx.prototype.show.call(this)}; Z0.prototype.hide=function(){var d;(d=this.G)==null||d.hide();sx.prototype.hide.call(this)};g.M(OP,sx); OP.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(q!=null&&q.text){var T;if(((T=q.text)==null?0:T.content)&&!g.nh(q.text.content)){this.G=new g.Ji({Y:"div",D:"ytp-ad-disclosure-banner__text",j5:q.text.content});g.C(this,this.G);this.G.IU(this.element);var Y,e;d=((Y=q.interaction)==null?void 0:(e=Y.accessibility)==null?void 0:e.label)||q.text.content;this.element.setAttribute("aria-label",d);var U;if((U=q.interaction)==null?0:U.onTap)this.U=new g.Ji({Y:"div",D:"ytp-ad-disclosure-banner__chevron",V:[g.xP()]}), g.C(this,this.U),this.U.IU(this.element);this.show()}}else g.Zz(Error("No banner text found in AdDisclosureBanner."))}; OP.prototype.clear=function(){this.hide()};g.M(tm,g.Ji);tm.prototype.Yc=function(){var d=this.U.getProgressState(),q=d.seekableEnd;this.api.getPresentingPlayerType()===2&&(q=this.j?this.j/1E3:d.seekableEnd);this.progressBar.style.width=rs(new nG(d.seekableStart,q),d.current,0)*100+"%"}; tm.prototype.onStateChange=function(){g.XW(this.api.C())||(this.api.getPresentingPlayerType()===2?this.G===-1&&(this.show(),this.G=this.U.subscribe("h",this.Yc,this),this.Yc()):this.G!==-1&&(this.hide(),this.U.Br(this.G),this.G=-1))};g.M(BG,sx); BG.prototype.init=function(d,q,T,Y){sx.prototype.init.call(this,d,q,T);if(q.skipOrPreviewRenderer){if(d=g.D(q.skipOrPreviewRenderer,AP))T=new Ru(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.U,this.K),T.IU(this.RU),T.init(qP("skip-button"),d,this.macros),g.C(this,T);if(d=g.D(q.skipOrPreviewRenderer,AP))var e=d.skipOffsetMilliseconds}q.brandInteractionRenderer&&(d=q.brandInteractionRenderer.brandInteractionRenderer,T=new Tc(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk), T.IU(this.z2),T.init(qP("instream-user-sentiment"),d,this.macros),g.C(this,T));if(d=g.D(q,syL))if(d=g.D(d,syL))T=new qY(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.U,!!q.showWithoutLinkedMediaLayout),g.C(this,T),T.IU(this.X),T.init(qP("flyout-cta"),d,this.macros);Y=Y&&Y.videoAdDurationSeconds;q.adBadgeRenderer&&(T=q.adBadgeRenderer,d=g.D(T,Sy),d!=null?(T=new pG(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!1),g.C(this,T),T.IU(this.G),T.init(qP("ad-badge"), d,this.macros),this.j=T.element):(d=T.simpleAdBadgeRenderer,d==null&&(d={text:{text:"\u5e7f\u544a",isTemplated:!1}}),T=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!0),g.C(this,T),T.IU(this.G),T.init(qP("simple-ad-badge"),d,this.macros)));q.adPodIndex&&(d=g.D(q.adPodIndex,Qyj),d!=null&&(T=new Z0(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,T),T.IU(this.G),T.init(qP("ad-pod-index"),d)));q.adDurationRemaining&&!q.showWithoutLinkedMediaLayout&& (d=q.adDurationRemaining.adDurationRemainingRenderer,d==null&&(d={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),Y=new EP(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.U,Y,!1),g.C(this,Y),Y.IU(this.G),Y.init(qP("ad-duration-remaining"),d,this.macros));q.adInfoRenderer&&(Y=g.D(q.adInfoRenderer,VP))&&(d=new iE(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.element,void 0,!1),g.C(this,d),this.j!==null?this.G.insertBefore(d.element, this.j.nextSibling):d.IU(this.G),d.init(qP("ad-info-hover-text-button"),Y,this.macros));q.visitAdvertiserRenderer&&(d=g.D(q.visitAdvertiserRenderer,g.q6))&&(T=yr1(this)&&this.T?this.T:this.G)&&(Y=new xo(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,Y),Y.IU(T),Y.init(qP("visit-advertiser"),d,this.macros),kM(Y.element),d=C9(Y.element),Wh(Y.element,d+" This link opens in new tab"));!(Y=this.api.C())||g.Um(Y)||g.dn(Y)||Y.controlsType!="3"&&!Y.disableOrganicUi||(e=new tm(this.api, this.U,e,!1),e.IU(this.aU),g.C(this,e));q.adDisclosureBannerRenderer&&(q=g.D(q.adDisclosureBannerRenderer,HnL))&&(e=new OP(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),e.IU(this.UD),e.init(qP("ad-disclosure-banner"),q),g.C(this,e));this.api.C().N("enable_updated_html5_player_focus_style")&&g.d9(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; BG.prototype.clear=function(){this.hide()};g.LG.prototype.flush=function(d,q){d=d===void 0?[]:d;q=q===void 0?!1:q;if(g.RD("enable_client_streamz_web")){d=g.E(d);for(var T=d.next();!T.done;T=d.next())T=qbQ(T.value),this.G&&Qw(T,XP,2,this.G),T={serializedIncrementBatch:g.A0(T.j())},g.Ta("streamzIncremented",T,{sendIsolatedPayload:q})}}; g.M(H7f,g.LG);var X1H=new Map;ko.prototype.set=function(d,q,T){T=T!==void 0?Date.now()+T:void 0;this.G.set(d,q,T)}; ko.prototype.get=function(d){return this.G.get(d)}; ko.prototype.remove=function(d){this.G.remove(d)};var MF_=null;var D0=null,ws=null,fG=null,Ar7=null;g.Vf("yt.www.ads.eventcache.getLastCompanionData",function(){return D0}); g.Vf("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Vf("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return ws}); g.Vf("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return fG}); g.Vf("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Ar7});var Z7D=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);zc.prototype.handleResponse=function(d,q){if(!q)throw Error("request needs to be passed into ConsistencyService");var T,Y;q=((T=q.Yy.context)==null?void 0:(Y=T.request)==null?void 0:Y.consistencyTokenJars)||[];var e;(d=(e=d.responseContext)==null?void 0:e.consistencyTokenJar)&&this.replace(q,d)}; zc.prototype.replace=function(d,q){d=g.E(d);for(var T=d.next();!T.done;T=d.next())delete this.G[T.value.encryptedTokenJarContents];n7j(this,q)};var tV7=window.location.hostname.split(".").slice(-2).join("."),Go;Iu.getInstance=function(){Go=g.qx("yt.clientLocationService.instance");Go||(Go=new Iu,g.Vf("yt.clientLocationService.instance",Go));return Go}; g.Q=Iu.prototype; g.Q.setLocationOnInnerTubeContext=function(d){d.client||(d.client={});if(this.G)d.client.locationInfo||(d.client.locationInfo={}),d.client.locationInfo.latitudeE7=Math.floor(this.G.coords.latitude*1E7),d.client.locationInfo.longitudeE7=Math.floor(this.G.coords.longitude*1E7),d.client.locationInfo.horizontalAccuracyMeters=Math.round(this.G.coords.accuracy),d.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.j||this.locationPlayabilityToken)d.client.locationPlayabilityToken=this.j|| this.locationPlayabilityToken}; g.Q.handleResponse=function(d){var q;d=(q=d.responseContext)==null?void 0:q.locationPlayabilityToken;d!==void 0&&(this.locationPlayabilityToken=d,this.G=void 0,g.Cs("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=i2(this))&&this.localStorage.set("yt-location-playability-token",d,15552E3):g.nZ("YT_CL",JSON.stringify({loctok:d}),15552E3,tV7,!0))}; g.Q.clearLocationPlayabilityToken=function(d){d==="TVHTML5"?(this.localStorage=i2(this))&&this.localStorage.remove("yt-location-playability-token"):g.td("YT_CL");this.j=void 0;this.U!==-1&&(clearTimeout(this.U),this.U=-1)}; g.Q.getCurrentPositionFromGeolocation=function(){var d=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var q=!1,T=1E4;g.Cs("INNERTUBE_CLIENT_NAME")==="MWEB"&&(q=!0,T=15E3);return new Promise(function(Y,e){navigator.geolocation.getCurrentPosition(function(U){d.G=U;Y(U)},function(U){e(U)},{enableHighAccuracy:q, maximumAge:0,timeout:T})})}; g.Q.createUnpluggedLocationInfo=function(d){var q={};d=d.coords;if(d==null?0:d.latitude)q.latitudeE7=Math.floor(d.latitude*1E7);if(d==null?0:d.longitude)q.longitudeE7=Math.floor(d.longitude*1E7);if(d==null?0:d.accuracy)q.locationRadiusMeters=Math.round(d.accuracy);return q}; g.Q.createLocationInfo=function(d){var q={};d=d.coords;if(d==null?0:d.latitude)q.latitudeE7=Math.floor(d.latitude*1E7);if(d==null?0:d.longitude)q.longitudeE7=Math.floor(d.longitude*1E7);return q};g.Q=GaD.prototype;g.Q.contains=function(d){return Object.prototype.hasOwnProperty.call(this.G,d)}; g.Q.get=function(d){if(this.contains(d))return this.G[d]}; g.Q.set=function(d,q){this.G[d]=q}; g.Q.ll=function(){return Object.keys(this.G)}; g.Q.remove=function(d){delete this.G[d]};SC.prototype.getModuleId=function(d){return d.serviceId.getModuleId()}; SC.prototype.get=function(d){a:{var q=this.mappings.get(d.toString());switch(q.type){case "mapping":d=q.value;break a;case "factory":q=q.value();this.mappings.set(d.toString(),{type:"mapping",value:q});d=q;break a;default:d=$S(q)}}return d}; SC.prototype.registerService=function(d,q){this.mappings.set(d.toString(),{type:"mapping",value:q});return d}; new SC;var L8={},LY2=(L8.WEB_UNPLUGGED="^unplugged/",L8.WEB_UNPLUGGED_ONBOARDING="^unplugged/",L8.WEB_UNPLUGGED_OPS="^unplugged/",L8.WEB_UNPLUGGED_PUBLIC="^unplugged/",L8.WEB_CREATOR="^creator/",L8.WEB_KIDS="^kids/",L8.WEB_EXPERIMENTS="^experiments/",L8.WEB_MUSIC="^music/",L8.WEB_REMIX="^music/",L8.WEB_MUSIC_EMBEDDED_PLAYER="^music/",L8.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",L8);ou.prototype.S=function(d,q,T){q=q===void 0?{}:q;T=T===void 0?X7:T;var Y={context:g.mV(d.clickTrackingParams,!1,this.T)};var e=this.U(d);if(e){this.G(Y,e,q);var U;q=g.vG(this.j());(e=(U=g.D(d.commandMetadata,g.AX))==null?void 0:U.apiUrl)&&(q=e);U=M_6(BL(q));d=Object.assign({},{command:d},void 0);Y={input:U,A3:KZ(U),Yy:Y,config:d};Y.config.VA?Y.config.VA.identity=T:Y.config.VA={identity:T};return Y}T=new g.CW("Error: Failed to create Request from Command.",d);g.Zz(T)}; g.U6.Object.defineProperties(ou.prototype,{T:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.M(VZ,ou);g.M(dc,VZ);dc.prototype.S=function(){return{input:"/getDatasyncIdsEndpoint",A3:KZ("/getDatasyncIdsEndpoint","GET"),Yy:{}}}; dc.prototype.j=function(){return[]}; dc.prototype.U=function(){}; dc.prototype.G=function(){};var B_s={},xzI=(B_s.GET_DATASYNC_IDS=l2(dc),B_s);var k0={},KZI=(k0["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",k0["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",k0["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",k0["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",k0["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",k0["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",k0["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", k0["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",k0["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",k0["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",k0["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",k0["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",k0["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",k0["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",k0["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", k0["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",k0["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",k0["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",k0["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",k0["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",k0["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",k0["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", k0["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",k0.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",k0["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",k0["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",k0["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",k0["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",k0["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",k0["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", k0["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",k0["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",k0["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",k0["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",k0["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",k0["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",k0["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",k0["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",k0["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",k0["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",k0.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",k0["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",k0["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",k0["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",k0["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",k0["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",k0["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",k0["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",k0["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",k0["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",k0["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",k0["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",k0["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",k0["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",k0["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",k0["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",k0["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",k0["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",k0["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",k0["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",k0["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",k0["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", k0["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",k0["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",k0["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",k0["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",k0["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",k0["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",k0["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",k0["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",k0["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", k0["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",k0["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",k0["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",k0["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",k0["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",k0["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",k0["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",k0["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", k0),Py={},wjn=(Py.auto_search="LATENCY_ACTION_AUTO_SEARCH",Py.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Py.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Py.app_startup="LATENCY_ACTION_APP_STARTUP",Py.browse="LATENCY_ACTION_BROWSE",Py.cast_splash="LATENCY_ACTION_CAST_SPLASH",Py.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Py.channels="LATENCY_ACTION_CHANNELS",Py.chips="LATENCY_ACTION_CHIPS",Py.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Py.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", Py.editor="LATENCY_ACTION_EDITOR",Py.embed="LATENCY_ACTION_EMBED",Py.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Py.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Py.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Py.explore="LATENCY_ACTION_EXPLORE",Py.favorites="LATENCY_ACTION_FAVORITES",Py.home="LATENCY_ACTION_HOME",Py.inboarding="LATENCY_ACTION_INBOARDING",Py.landing="LATENCY_ACTION_LANDING",Py.learning="LATENCY_ACTION_LEARNING", Py.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Py.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Py.library="LATENCY_ACTION_LIBRARY",Py.live="LATENCY_ACTION_LIVE",Py.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Py.management="LATENCY_ACTION_MANAGEMENT",Py.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Py.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Py.onboarding="LATENCY_ACTION_ONBOARDING",Py.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", Py.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Py.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Py.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Py.prebuffer="LATENCY_ACTION_PREBUFFER",Py.prefetch="LATENCY_ACTION_PREFETCH",Py.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Py.profile_switcher="LATENCY_ACTION_LOGIN",Py.projects="LATENCY_ACTION_PROJECTS",Py.reel_watch="LATENCY_ACTION_REEL_WATCH",Py.results="LATENCY_ACTION_RESULTS",Py.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", Py.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Py.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Py.review="LATENCY_ACTION_REVIEW",Py.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Py.search_ui="LATENCY_ACTION_SEARCH_UI",Py.search_suggest="LATENCY_ACTION_SUGGEST",Py.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Py.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Py.seek="LATENCY_ACTION_PLAYER_SEEK",Py.settings="LATENCY_ACTION_SETTINGS",Py.store="LATENCY_ACTION_STORE", Py.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Py.tenx="LATENCY_ACTION_TENX",Py.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Py.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Py.watch="LATENCY_ACTION_WATCH",Py.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Py["watch,watch7"]="LATENCY_ACTION_WATCH",Py["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Py["watch,watch7ad"]="LATENCY_ACTION_WATCH",Py["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Py.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", Py.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Py.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Py.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Py.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Py.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Py.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Py.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Py);Object.assign(wjn,KZI);g.M(sG,JL);var Ygf=new sg("aft-recorded",sG);var GOl=g.oQ.ytLoggingGelSequenceIdObj_||{};g.Vf("ytLoggingGelSequenceIdObj_",GOl);var N3=g.oQ.ytLoggingLatencyUsageStats_||{};g.Vf("ytLoggingLatencyUsageStats_",N3);$h.prototype.tick=function(d,q,T,Y){Ra(this,"tick_"+d+"_"+q)||g.Ta("latencyActionTicked",{tickName:d,clientActionNonce:q},{timestamp:T,cttAuthInfo:Y})}; $h.prototype.info=function(d,q,T){var Y=Object.keys(d).join("");Ra(this,"info_"+Y+"_"+q)||(d=Object.assign({},d),d.clientActionNonce=q,g.Ta("latencyActionInfo",d,{cttAuthInfo:T}))}; $h.prototype.jspbInfo=function(d,q,T){for(var Y="",e=0;e=e.length?(q.append(e),d-=e.length):d?(q.append(new Uint8Array(e.buffer,e.byteOffset,d)),T.append(new Uint8Array(e.buffer,e.byteOffset+d,e.length-d)),d=0):T.append(e);return{hS:q,Kp:T}}; e2.prototype.isFocused=function(d){return d>=this.j&&d=64&&(this.X.set(d.subarray(0,64-this.U),this.U),q=64-this.U,this.U=0,U9j(this,this.X,0));for(;q+64<=T;q+=64)U9j(this,d,q);q=this.start&&(d=2&&T.ssdaiAdsConfig&&Jm("Unexpected ad placement renderers length",d.slot,null,{length:Y.length});var e;((e=T.adSlots)==null?0:e.some(function(U){var b,J;return((b=g.D(U,ei))==null?void 0:(J=b.adSlotMetadata)==null?void 0:J.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||Y.some(function(U){var b,J,F,N; return!!((b=U.renderer)==null?0:(J=b.linearAdSequenceRenderer)==null?0:(F=J.linearAds)==null?0:F.length)||!((N=U.renderer)==null||!N.instreamVideoAdRenderer)})||O1Y(d)})}; vA.prototype.zF=function(){Nij(this.G)};oj.prototype.f1=function(){var d=this;Fdg(this.U,function(){var q=l7(d.slot.clientMetadata,"metadata_type_ad_break_request_data");return q.cueProcessedMs?d.G.get().fetch({FL:q.getAdBreakUrl,cz:new g.Ij(q.vW,q.RW),cueProcessedMs:q.cueProcessedMs}):d.G.get().fetch({FL:q.getAdBreakUrl,cz:new g.Ij(q.vW,q.RW)})})}; oj.prototype.zF=function(){Nij(this.U)};Vz.prototype.f1=function(){var d=this.slot.clientMetadata,q,T=(q=this.slot.fulfilledLayout)!=null?q:l7(d,"metadata_type_fulfilled_layout");iCI(this.callback,this.slot,T)}; Vz.prototype.zF=function(){s5(this.callback,this.slot,new S("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")};qo.prototype.build=function(d,q){return q.fulfilledLayout||dX(q,{Pl:["metadata_type_fulfilled_layout"]})?new Vz(d,q):this.j(d,q)};g.M(TS,qo); TS.prototype.j=function(d,q){if(dX(q,{Pl:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new vA(d,q,this.G,this.U,this.KH,this.T2,this.Hv,this.Yx,this.Gq);if(dX(q,{Pl:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new oj(d,q,this.G,this.U,this.KH,this.T2);throw new S("Unsupported slot with type: "+q.slotType+" and client metadata: "+v4(q.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.M(Yu,qo);Yu.prototype.j=function(d,q){throw new S("Unsupported slot with type: "+q.slotType+" and client metadata: "+v4(q.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.Q=nz7.prototype;g.Q.Sv=function(){return this.slot}; g.Q.e5=function(){return this.layout}; g.Q.init=function(){}; g.Q.release=function(){}; g.Q.startRendering=function(d){if(d.layoutId!==this.layout.layoutId)this.callback.Cz(this.slot,d,new m5("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 q=l7(d.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.AA(this.slot,d),IO6(this.j, this.slot,q)):Jm("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,d)}}; g.Q.OF=function(d,q){d.layoutId!==this.layout.layoutId?this.callback.Cz(this.slot,d,new m5("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.i$(this.slot,d,q),tnI(this),BiI(this))};g.M(J8,g.YP);g.Q=J8.prototype;g.Q.Sv=function(){return this.U.slot}; g.Q.e5=function(){return this.U.layout}; g.Q.init=function(){this.j.get().addListener(this)}; g.Q.release=function(){this.j.get().removeListener(this);this.dispose()}; g.Q.dj=function(){}; g.Q.Ht=function(){}; g.Q.a_=function(){}; g.Q.tS=function(){}; g.Q.startRendering=function(d){var q=this;XI(this.U,d,function(){return void q.QG()})}; g.Q.QG=function(){this.j.get().QG(this.G)}; g.Q.OF=function(d,q){var T=this;XI(this.U,d,function(){var Y=T.j.get();Du1(Y,T.G,3);T.G=[];T.callback.i$(T.slot,d,q)})}; g.Q.ir=function(){this.j.JF()||this.j.get().removeListener(this);g.YP.prototype.ir.call(this)}; g.U6.Object.defineProperties(J8.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.U.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.U.layout}}});yT.prototype.Wr=function(d,q){q=q===void 0?!1:q;var T=(this.j.get(d)||[]).concat();if(q=q&&kpH(d)){var Y=this.j.get(q);Y&&T.push.apply(T,g.RQ(Y))}QT(this,d,T);this.G.add(d);q&&this.G.add(q)}; yT.prototype.EM=function(d,q){q=q===void 0?!1:q;if(!this.G.has(d)){var T=q&&kpH(d);T&&(q=!this.G.has(T));this.Wr(d,q)}};g.M(CnH,TW);g.M(a5,J8);g.Q=a5.prototype;g.Q.Gu=function(d,q){FI("ads-engagement-panel-layout",d,this.X.get().yK,this.Hv.get(),this.T,this.S,this.Sv(),this.e5(),q)}; g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),g.D(this.e5().renderingContent,tR),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(q,T,Y,e,U){return new CnH(q,T,Y,e,U)},this.G); J8.prototype.startRendering.call(this,d)}; g.Q.AA=function(d,q){this.S===q.layoutId&&(this.T===null?this.T=this.Hv.get().iS():Jm("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.i$=function(){}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.qp=function(){}; g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};g.M(Dh_,TW);g.M(A8,J8);g.Q=A8.prototype;g.Q.Gu=function(d,q){FI("banner-image",d,this.X.get().yK,this.Hv.get(),this.T,this.S,this.Sv(),this.e5(),q)}; g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),g.D(this.e5().renderingContent,nS),this.callback,"metadata_type_banner_image_layout_view_model",function(q,T,Y,e,U){return new Dh_(q,T,Y,e,U)},this.G); J8.prototype.startRendering.call(this,d)}; g.Q.AA=function(d,q){this.S===q.layoutId&&(this.T===null?this.T=this.Hv.get().iS():Jm("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.i$=function(){}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.qp=function(){}; g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};g.M(pw,TW);g.M(Zb,J8);g.Q=Zb.prototype;g.Q.Gu=function(d,q){FI("action-companion",d,this.X.get().yK,this.Hv.get(),this.T,this.S,this.Sv(),this.e5(),q)}; g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),g.D(this.e5().renderingContent,pS),this.callback,"metadata_type_action_companion_ad_renderer",function(q,T,Y,e,U){return new pw(q,T,Y,e,U)},this.G); J8.prototype.startRendering.call(this,d)}; g.Q.AA=function(d,q){q.layoutId===this.layout.layoutId?this.Dw.EM("impression"):this.S===q.layoutId&&(this.T===null?this.T=this.Hv.get().iS():Jm("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.i$=function(){}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.qp=function(){}; g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};g.M(zmI,TW);g.M(O0,J8);g.Q=O0.prototype;g.Q.Gu=function(d,q){FI("image-companion",d,this.X.get().yK,this.Hv.get(),this.T,this.S,this.Sv(),this.e5(),q)}; g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),g.D(this.e5().renderingContent,ZJ),this.callback,"metadata_type_image_companion_ad_renderer",function(q,T,Y,e,U){return new zmI(q,T,Y,e,U)},this.G); J8.prototype.startRendering.call(this,d)}; g.Q.AA=function(d,q){q.layoutId===this.layout.layoutId?this.Dw.EM("impression"):this.S===q.layoutId&&(this.T===null?this.T=this.Hv.get().iS():Jm("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.i$=function(){}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.qp=function(){}; g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};g.M(Iz7,TW);g.M(nw,J8);g.Q=nw.prototype;g.Q.Gu=function(d,q){FI("shopping-companion",d,this.X.get().yK,this.Hv.get(),this.T,this.S,this.Sv(),this.e5(),q)}; g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(q,T,Y,e,U){return new Iz7(q,T,Y,e,U)},this.G); J8.prototype.startRendering.call(this,d)}; g.Q.AA=function(d,q){q.layoutId===this.layout.layoutId?this.Dw.EM("impression"):this.S===q.layoutId&&(this.T===null?this.T=this.Hv.get().iS():Jm("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.i$=function(){}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.qp=function(){}; g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};g.M(t8,J8);g.Q=t8.prototype;g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(q,T,Y,e,U){return new pw(q,T,Y,e,U)},this.G); J8.prototype.startRendering.call(this,d)}; g.Q.AA=function(){}; g.Q.i$=function(){}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.qp=function(){}; g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)}; g.Q.Gu=function(){};g.Q=VnH.prototype;g.Q.Sv=function(){return this.slot}; g.Q.e5=function(){return this.layout}; g.Q.init=function(){this.Yx.get().addListener(this);this.Yx.get().N7.push(this);var d=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds"),q=l7(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");No(this.layout.GG)&&UW(this.iF.get(),this.layout.layoutId,{jE:q,Nx:d,listener:this})}; g.Q.release=function(){this.Yx.get().removeListener(this);kdD(this.Yx.get(),this);No(this.layout.GG)&&bU(this.iF.get(),this.layout.layoutId)}; g.Q.startRendering=function(d){this.callback.AA(this.slot,d)}; g.Q.OF=function(d,q){bXN(this.T2.get())&&!this.G&&(this.Dw.EM("abandon"),this.G=!0);this.callback.i$(this.slot,d,q)}; g.Q.EN=function(d){switch(d.id){case "part2viewed":this.Dw.EM("start");this.Dw.EM("impression");break;case "videoplaytime25":this.Dw.EM("first_quartile");break;case "videoplaytime50":this.Dw.EM("midpoint");break;case "videoplaytime75":this.Dw.EM("third_quartile");break;case "videoplaytime100":bXN(this.T2.get())?this.G||(this.Dw.EM("complete"),this.G=!0):this.Dw.EM("complete");jP(this.Dw)&&cp(this.Dw,Infinity,!0);Xvn(this.T2.get())&&rX(this.U,Infinity,!0);break;case "engagedview":jP(this.Dw)||this.Dw.EM("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Jm("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.Q.onVolumeChange=function(){}; g.Q.P3=function(){}; g.Q.bS=function(){}; g.Q.n8=function(){}; g.Q.onFullscreenToggled=function(){}; g.Q.mf=function(){}; g.Q.e0=function(){}; g.Q.VB=function(d){Xvn(this.T2.get())&&rX(this.U,d*1E3,!1);jP(this.Dw)&&cp(this.Dw,d*1E3,!1)}; g.Q.L8=function(){}; g.Q.LZ=function(){this.Dw.EM("active_view_measurable")}; g.Q.Ff=function(){this.Dw.EM("active_view_viewable")}; g.Q.ND=function(){this.Dw.EM("active_view_fully_viewable_audible_half_duration")}; g.Q.nZ=function(){this.Dw.EM("audio_measurable")}; g.Q.eI=function(){this.Dw.EM("audio_audible")};g.M(Bp,J8);g.Q=Bp.prototype;g.Q.init=function(){J8.prototype.init.call(this);var d=l7(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q={adsClientData:this.layout.HF};this.G.push(new hm(d,this.layout.layoutId,l7(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),q,!0))}; g.Q.q1=function(){this.T||this.Yx.get().resumeVideo(1)}; g.Q.startRendering=function(d){J8.prototype.startRendering.call(this,d);RP(this.Yx.get(),"ad-showing");this.callback.AA(this.slot,d);this.S.o9=this}; g.Q.OF=function(d,q){J8.prototype.OF.call(this,d,q);x$(this.Yx.get(),"ad-showing");V_(this.S,this)}; g.Q.Gu=function(d){switch(d){case "ad-info-icon-button":(this.T=this.Yx.get().wK(1))||this.Yx.get().pauseVideo();break;case "visit-advertiser":this.Yx.get().pauseVideo()}}; g.Q.ir=function(){J8.prototype.ir.call(this)};g.M(Kw,TW);g.M(GS,J8);g.Q=GS.prototype;g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(q,T,Y,e,U){return new Kw(q,T,Y,e,U)},this.G); J8.prototype.startRendering.call(this,d)}; g.Q.AA=function(){}; g.Q.i$=function(){}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.qp=function(){}; g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)}; g.Q.Gu=function(){};g.M(Lw,TW);g.M(ku,J8);ku.prototype.init=function(){J8.prototype.init.call(this);this.G.push(new Lw(g.D(this.layout.renderingContent,IF),this.layout.layoutId,{adsClientData:this.layout.HF}))}; ku.prototype.Gu=function(){lv(this.T.get(),this.S)&&gX(this.Hv.get(),3)}; ku.prototype.startRendering=function(d){J8.prototype.startRendering.call(this,d);this.callback.AA(this.slot,d)}; ku.prototype.ir=function(){J8.prototype.ir.call(this)};g.M(Pp,TW);g.M(Wp,J8);Wp.prototype.init=function(){J8.prototype.init.call(this);var d=g.D(this.layout.renderingContent,o5)||l7(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),q=s0(this.Dw);this.G.push(new Pp(d,q,this.layout.layoutId,{adsClientData:this.layout.HF},!0,!0))}; Wp.prototype.startRendering=function(d){J8.prototype.startRendering.call(this,d);this.callback.AA(this.slot,d)}; Wp.prototype.Gu=function(d,q){if(q===this.layout.layoutId)switch(d){case "skip-button":var T;(d=(T=l7(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:T.current)&&d.wl(this.Sv(),this.layout)}}; Wp.prototype.ir=function(){J8.prototype.ir.call(this)};uO.prototype.build=function(d,q,T,Y){if(Cw(Y,{Pl:["metadata_type_ad_break_response_data"],Dm:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new nz7(d,T,Y,this.U,this.j,this.G);throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.M(TxN,TW);g.M(Db,J8);g.Q=Db.prototype;g.Q.Gu=function(d,q){FI("ads-engagement-panel",d,this.X.get().yK,this.Hv.get(),this.T,this.S,this.Sv(),this.e5(),q)}; g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),g.D(this.e5().renderingContent,OO),this.callback,"metadata_type_ads_engagement_panel_renderer",function(q,T,Y,e,U){return new TxN(q,T,Y,e,U)},this.G); J8.prototype.startRendering.call(this,d)}; g.Q.AA=function(d,q){q.layoutId===this.layout.layoutId?this.Dw.EM("impression"):this.S===q.layoutId&&(this.T===null?this.T=this.Hv.get().iS():Jm("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.i$=function(){}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.qp=function(){}; g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};g.M(wX,J8);g.Q=wX.prototype;g.Q.Gu=function(d,q){FI("top-banner-image-text-icon-buttoned",d,this.X.get().yK,this.Hv.get(),this.T,this.S,this.Sv(),this.e5(),q)}; g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),g.D(this.e5().renderingContent,rG),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(q,T,Y,e,U){return new Kw(q,T,Y,e,U)},this.G); J8.prototype.startRendering.call(this,d)}; g.Q.AA=function(d,q){this.S===q.layoutId&&(this.T===null?this.T=this.Hv.get().iS():Jm("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.i$=function(){}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.qp=function(){}; g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};UPg.prototype.build=function(d,q,T,Y){if(Cw(Y,YxI())||g.D(Y.renderingContent,OO)!==void 0)return new Db(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);if(Cw(Y,fzQ())||g.D(Y.renderingContent,pS)!==void 0)return new Zb(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);if(Cw(Y,i1Y())||g.D(Y.renderingContent,ZJ)!==void 0)return new O0(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);if(Cw(Y,mh6()))return new nw(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);if(Cw(Y,ozn()))return new t8(d,T,Y,this.kB,this.Hv,this.cF, this.iF,this.G);if(Cw(Y,waj())||g.D(Y.renderingContent,nS)!==void 0)return new A8(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);if(Cw(Y,esf())||g.D(Y.renderingContent,rG)!==void 0)return new wX(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);if(Cw(Y,dP_()))return new GS(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);if(Cw(Y,unD())||g.D(Y.renderingContent,tR)!==void 0)return new a5(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+ v4(Y.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};bMI.prototype.build=function(d,q,T,Y){if(Cw(Y,{Pl:["metadata_type_linked_player_bytes_layout_id"],Dm:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new ku(d,T,Y,this.kB,this.Hv,this.G);throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.Q=Xk7.prototype;g.Q.Sv=function(){return this.slot}; g.Q.e5=function(){return this.layout}; g.Q.init=function(){}; g.Q.release=function(){}; g.Q.startRendering=function(d){d.layoutId!==this.layout.layoutId?this.callback.Cz(this.slot,d,new m5("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.AA(this.slot,d),this.Dw.EM("impression"),gU(this.nx,d,"normal"))}; g.Q.OF=function(d,q){d.layoutId!==this.layout.layoutId?this.callback.Cz(this.slot,d,new m5("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.i$(this.slot,d,q)};g.Q=shg.prototype;g.Q.Sv=function(){return this.slot}; g.Q.e5=function(){return this.layout}; g.Q.init=function(){}; g.Q.release=function(){}; g.Q.startRendering=function(d){d.layoutId!==this.layout.layoutId?this.callback.Cz(this.slot,d,new m5("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.AA(this.slot,d),this.Dw.EM("impression"),gU(this.nx,d,"normal"))}; g.Q.OF=function(d,q){d.layoutId!==this.layout.layoutId?this.callback.Cz(this.slot,d,new m5("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.i$(this.slot,d,q)};fw.prototype.build=function(d,q,T,Y){if(!this.T2.get().J.C().N("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Cw(Y,Jig()))return new Xk7(d,T,Y,this.Hv,this.nx)}else if(Cw(Y,{Pl:[],Dm:["LAYOUT_TYPE_FORECASTING"]}))return new shg(d,T,Y,this.Hv,this.nx);throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.M(Frn,TW);g.M(zS,J8);g.Q=zS.prototype;g.Q.init=function(){J8.prototype.init.call(this);var d=g.D(this.layout.renderingContent,vp)||l7(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),q={adsClientData:this.layout.HF};this.G.push(new Frn(d,l7(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,q))}; g.Q.q1=function(){this.T||this.Yx.get().resumeVideo(2)}; g.Q.startRendering=function(d){J8.prototype.startRendering.call(this,d);this.callback.AA(this.slot,d);this.S.o9=this}; g.Q.OF=function(d,q){J8.prototype.OF.call(this,d,q);V_(this.S,this)}; g.Q.Gu=function(d,q){if(!WA(this.T2.get(),"stop_handling_click_for_non_rendering_overlay_layout")||q===this.layout.layoutId){if(lv(this.X.get(),this.L))switch(d){case "visit-advertiser-link":gX(this.Hv.get(),3)}switch(d){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.T||this.Yx.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.T=this.Yx.get().wK(2))||this.Yx.get().pauseVideo();break; case "visit-advertiser-link":this.Yx.get().pauseVideo();Nx_(this).SL();break;case "skip-button":if(d=Nx_(this),this.layout.renderingContent&&!ze(this.layout.clientMetadata,"metadata_type_dai")||!d||!d.E9){var T;(d=(T=l7(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:T.current)&&d.wl(this.Sv(),this.layout)}else Jm("Requesting to skip by LegacyPlayerBytes when components enabled"),d.Za(this.Sv(),this.layout)}}}; g.Q.ir=function(){J8.prototype.ir.call(this)};g.M(iO,J8);g.Q=iO.prototype;g.Q.init=function(){J8.prototype.init.call(this);var d=g.D(this.layout.renderingContent,lO)||l7(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q={adsClientData:this.layout.HF},T;(T=!!this.layout.renderingContent)||(T=I5(this),T=!(T&&T.E9));this.G.push(new hm(d,this.layout.layoutId,l7(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),q,T))}; g.Q.q1=function(){this.T||this.Yx.get().resumeVideo(2)}; g.Q.startRendering=function(d){J8.prototype.startRendering.call(this,d);this.callback.AA(this.slot,d);this.S.o9=this}; g.Q.OF=function(d,q){J8.prototype.OF.call(this,d,q);V_(this.S,this)}; g.Q.Gu=function(d,q){if(!this.T2||!WA(this.T2.get(),"stop_handling_click_for_non_rendering_overlay_layout")||q===this.layout.layoutId){if(lv(this.X.get(),this.L))switch(d){case "visit-advertiser":gX(this.Hv.get(),3)}switch(d){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.T||this.Yx.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.T=this.Yx.get().wK(2))||this.Yx.get().pauseVideo();break; case "visit-advertiser":this.Yx.get().pauseVideo();I5(this).SL();break;case "skip-button":if(d=I5(this),this.layout.renderingContent&&!ze(this.layout.clientMetadata,"metadata_type_dai")||!d||!d.E9){var T;(d=(T=l7(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:T.current)&&d.wl(this.Sv(),this.layout)}else Jm("Requesting to skip by LegacyPlayerBytes"),d.Za(this.Sv(),this.layout)}}}; g.Q.ir=function(){J8.prototype.ir.call(this)};g.M(xP2,TW);g.M(ma,J8);g.Q=ma.prototype;g.Q.startRendering=function(d){var q=this;XI(this.U,d,function(){q.G.push(new xP2(l7(q.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),d.layoutId,d.HF));q.QG();q.callback.AA(q.slot,d);g.I(ey(q.Yx.get(),1),512)&&q.callback.Cz(q.Sv(),q.e5(),new m5("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.Q.e0=function(){}; g.Q.mf=function(d){if(d.state.isError()){var q;this.callback.Cz(this.Sv(),this.e5(),new m5("A player error happened during adNotify",{playerErrorCode:(q=d.state.eF)==null?void 0:q.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.Q.onFullscreenToggled=function(){}; g.Q.bS=function(){}; g.Q.n8=function(){}; g.Q.P3=function(){}; g.Q.onVolumeChange=function(){}; g.Q.EN=function(){}; g.Q.L8=function(){}; g.Q.Gu=function(){};g.M(hs6,TW);g.M(SP,J8);SP.prototype.init=function(){J8.prototype.init.call(this);var d=g.D(this.layout.renderingContent,VT),q=s0(this.Dw);this.G.push(new hs6(d,q,this.layout.layoutId,{adsClientData:this.layout.HF}))}; SP.prototype.startRendering=function(d){J8.prototype.startRendering.call(this,d);this.callback.AA(this.slot,d)}; SP.prototype.Gu=function(d,q){if(q===this.layout.layoutId)switch(d){case "skip-button":var T;(d=(T=l7(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:T.current)&&d.wl(this.Sv(),this.layout)}}; SP.prototype.ir=function(){J8.prototype.ir.call(this)};HMN.prototype.build=function(d,q,T,Y){if(d=dP(d,T,Y,this.kB,this.Yx,this.Hv,this.U,this.G,this.T2))return d;throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.Q=YV.prototype;g.Q.Sv=function(){return this.slot}; g.Q.e5=function(){return this.layout}; g.Q.init=function(){this.Yx.get().addListener(this);this.Yx.get().N7.push(this);if(this.layout.renderingContent){var d=this.Xw.get();d=kx(d,1).L4/1E3}else d=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds");var q=g.D(this.layout.renderingContent,fS),T=q?R5(q.pings):l7(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");q=q?Ld_(q.pings):l7(this.layout.clientMetadata,"metadata_type_active_view_identifier");No(this.layout.GG)&&UW(this.iF.get(),this.layout.layoutId, {jE:T,Nx:d,listener:this,LK:q})}; g.Q.release=function(){this.Yx.get().removeListener(this);kdD(this.Yx.get(),this);No(this.layout.GG)&&bU(this.iF.get(),this.layout.layoutId)}; g.Q.startRendering=function(d){this.callback.AA(this.slot,d)}; g.Q.OF=function(d,q){e7(this,"abandon");this.callback.i$(this.slot,d,q)}; g.Q.EN=function(d){switch(d.id){case "part2viewed":this.Dw.EM("start");this.Dw.EM("impression");break;case "videoplaytime25":this.Dw.EM("first_quartile");break;case "videoplaytime50":this.Dw.EM("midpoint");break;case "videoplaytime75":this.Dw.EM("third_quartile");break;case "videoplaytime100":e7(this,"complete");jP(this.Dw)&&cp(this.Dw,Infinity,!0);break;case "engagedview":jP(this.Dw)||this.Dw.EM("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Jm("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.Q.onVolumeChange=function(){}; g.Q.P3=function(){}; g.Q.bS=function(){}; g.Q.n8=function(){}; g.Q.onFullscreenToggled=function(){}; g.Q.mf=function(d){this.G||(g.gs(d,4)&&!g.gs(d,2)?Mo(this.Dw,"pause"):$o(d,4)<0&&!($o(d,2)<0)&&Mo(this.Dw,"resume"))}; g.Q.e0=function(){}; g.Q.VB=function(d){jP(this.Dw)&&cp(this.Dw,d*1E3,!1)}; g.Q.L8=function(){e7(this,"swipe")}; g.Q.LZ=function(){this.Dw.EM("active_view_measurable")}; g.Q.Ff=function(){this.Dw.EM("active_view_viewable")}; g.Q.ND=function(){this.Dw.EM("active_view_fully_viewable_audible_half_duration")}; g.Q.nZ=function(){this.Dw.EM("audio_measurable")}; g.Q.eI=function(){this.Dw.EM("audio_audible")};Qh6.prototype.build=function(d,q,T,Y){if(T.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.D(Y.renderingContent,fS)!==void 0)return new YV(d,T,Y,this.Yx,this.Hv,this.T2,this.iF,this.Xw);q=["metadata_type_ad_placement_config"];for(var e=g.E(h8()),U=e.next();!U.done;U=e.next())q.push(U.value);if(Cw(Y,{Pl:q,Dm:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return T.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new YV(d,T,Y,this.Yx,this.Hv,this.T2,this.iF,this.Xw):new VnH(d,T,Y,this.Yx,this.Hv, this.hA,this.T2,this.iF);throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var JQ={contentCpn:"",mJ:new Map};nPD.prototype.oN=function(d,q){var T={};q=Object.assign({},q,(T.cc=this.kP.dc(),T));this.kP.J.oU(d,q)};var dqB,wA; dqB={Akg:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",zZv:"AUTHENTICATION_MALFORMED",pfU:"AUTHENTICATION_MISSING",Y6x:"BAD_REQUEST",J0U:"CAST_SESSION_DEVICE_MISMATCHED",RZw:"CAST_SESSION_VIDEO_MISMATCHED",v1Z:"CAST_TOKEN_EXPIRED",XfZ:"CAST_TOKEN_FAILED",q6r:"CAST_TOKEN_MALFORMED",mNO:"CGI_PARAMS_MALFORMED",S65:"CGI_PARAMS_MISSING",UQk:"DEVICE_FALLBACK",vqf:"GENERIC_WITH_LINK_AND_CPN",X3Z:"ERROR_HDCP",qNv:"LICENSE",SNr:"VIDEO_UNAVAILABLE",FTf:"FORMAT_UNAVAILABLE",WTw:"GEO_FAILURE", iqf:"HTML5_AUDIO_RENDERER_ERROR",TBr:"GENERIC_WITHOUT_LINK",yp2:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",QQF:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",MVw:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",tVg:"HTML5_SPS_UMP_STATUS_REJECTED",Hqw:"INVALID_DRM_MESSAGE",QbD:"PURCHASE_NOT_FOUND",MHv:"PURCHASE_REFUNDED",hn5:"RENTAL_EXPIRED",RnF:"RETRYABLE_ERROR",nlw:"SERVER_ERROR",Z3F:"SIGNATURE_EXPIRED",wKv:"STOPPED_BY_ANOTHER_PLAYBACK",PVD:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Gs5:"STREAMING_NOT_ALLOWED", fbD:"STREAM_LICENSE_NOT_FOUND",QFD:"TOO_MANY_REQUESTS",MUk:"TOO_MANY_REQUESTS_WITH_LINK",tUw:"TOO_MANY_STREAMS_PER_ENTITLEMENT",z0k:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",NKr:"VIDEO_FORBIDDEN",Lmg:"VIDEO_NOT_FOUND",HxO:"BROWSER_OR_EXTENSION_ERROR"};wA={}; g.l0=(wA.ALREADY_PINNED_ON_A_DEVICE="\u4f60\u5c06\u6b64\u89c6\u9891\u4e0b\u8f7d\u5230\u7684\u8bbe\u5907\u7684\u6570\u91cf\u5df2\u8fbe\u5230\u5176\u7248\u6743\u6301\u6709\u8005\u89c4\u5b9a\u7684\u4e0a\u9650\u3002\u8981\u5728\u6b64\u8bbe\u5907\u4e0a\u64ad\u653e\uff0c\u5fc5\u987b\u5148\u5728\u53e6\u4e00\u8bbe\u5907\u4e2d\u53d6\u6d88\u56fa\u5b9a\u5b83\u3002",wA.DEVICE_FALLBACK="\u5f88\u62b1\u6b49\uff0c\u6b64\u89c6\u9891\u65e0\u6cd5\u5728\u8be5\u8bbe\u5907\u4e0a\u64ad\u653e\u3002",wA.GENERIC_WITH_LINK_AND_CPN= "\u51fa\u4e86\u70b9\u95ee\u9898\u3002\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002\uff08\u64ad\u653e ID\uff1a$CPN\uff09$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK",wA.LICENSE="\u5f88\u62b1\u6b49\uff0c\u4e3a\u6b64\u89c6\u9891\u6388\u4e88\u8bb8\u53ef\u65f6\u51fa\u9519\u3002",wA.VIDEO_UNAVAILABLE="\u89c6\u9891\u65e0\u6cd5\u64ad\u653e",wA.FORMAT_UNAVAILABLE="\u6b64\u89c6\u9891\u65e0\u6cd5\u4ee5\u6240\u9009\u753b\u8d28\u64ad\u653e\u3002\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",wA.GEO_FAILURE="\u6b64\u89c6\u9891\u65e0\u6cd5\u5728\u4f60\u6240\u5728\u7684\u56fd\u5bb6/\u5730\u533a\u64ad\u653e\u3002", wA.HTML5_AUDIO_RENDERER_ERROR="\u97f3\u9891\u6e32\u67d3\u5668\u9519\u8bef\u3002\u8bf7\u91cd\u542f\u8ba1\u7b97\u673a\u3002",wA.GENERIC_WITHOUT_LINK="\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",wA.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="\u4e0d\u652f\u6301\u6b64\u89c6\u9891\u683c\u5f0f\u3002",wA.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="\u4f60\u7684\u6d4f\u89c8\u5668\u76ee\u524d\u65e0\u6cd5\u8bc6\u522b\u4efb\u4f55\u53ef\u7528\u7684\u89c6\u9891\u683c\u5f0f\u3002$BEGIN_LINK\u8bf7\u70b9\u51fb\u6b64\u5904\uff0c\u67e5\u770b\u5173\u4e8eHTML5\u89c6\u9891\u7684\u5e38\u89c1\u95ee\u9898\u89e3\u7b54\u3002$END_LINK", wA.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="\u4f60\u7684\u6d4f\u89c8\u5668\u65e0\u6cd5\u64ad\u653e\u6b64\u89c6\u9891\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK",wA.HTML5_SPS_UMP_STATUS_REJECTED="\u51fa\u4e86\u70b9\u95ee\u9898\u3002\u8bf7\u5237\u65b0\u6216\u7a0d\u540e\u91cd\u8bd5\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK",wA.INVALID_DRM_MESSAGE="DRM\u7cfb\u7edf\u4e13\u7528\u6d88\u606f\u65e0\u6548\u3002",wA.PURCHASE_NOT_FOUND="\u6b64\u89c6\u9891\u9700\u8981\u4ed8\u8d39\u3002", wA.PURCHASE_REFUNDED="\u6b64\u89c6\u9891\u7684\u8d2d\u4e70\u8d39\u7528\u5df2\u9000\u8fd8\u3002",wA.RENTAL_EXPIRED="\u6b64\u89c6\u9891\u7684\u79df\u501f\u671f\u5df2\u8fc7\u3002",wA.CAST_SESSION_DEVICE_MISMATCHED="\u6295\u653e\u4f1a\u8bdd\u4e2d\u7684\u8bbe\u5907\u4e0e\u8981\u6c42\u7684\u8bbe\u5907\u4e0d\u76f8\u7b26\u3002",wA.CAST_SESSION_VIDEO_MISMATCHED="\u6295\u653e\u4f1a\u8bdd\u4e2d\u7684\u89c6\u9891\u4e0e\u8981\u6c42\u7684\u89c6\u9891\u4e0d\u76f8\u7b26\u3002",wA.CAST_TOKEN_FAILED="\u6295\u653e\u4f1a\u8bdd\u4e0d\u53ef\u7528\uff0c\u8bf7\u5237\u65b0\u6216\u7a0d\u540e\u91cd\u8bd5\u3002", wA.CAST_TOKEN_EXPIRED="\u6295\u653e\u4f1a\u8bdd\u5df2\u5931\u6548\uff0c\u8bf7\u5237\u65b0\u3002",wA.CAST_TOKEN_MALFORMED="\u6295\u653e\u4f1a\u8bdd\u65e0\u6548\uff0c\u8bf7\u5237\u65b0\u6216\u7a0d\u540e\u91cd\u8bd5\u3002",wA.SERVER_ERROR="\u51fa\u73b0\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",wA.STOPPED_BY_ANOTHER_PLAYBACK="\u4f60\u7684\u8d26\u53f7\u6b63\u5728\u5176\u4ed6\u4f4d\u7f6e\u64ad\u653e\u6b64\u89c6\u9891\u3002\u8981\u7ee7\u7eed\u89c2\u770b\uff0c\u8bf7\u91cd\u65b0\u52a0\u8f7d\u6b64\u9875\u9762\u3002", wA.STREAM_LICENSE_NOT_FOUND="\u89c6\u9891\u64ad\u653e\u5df2\u4e2d\u65ad\uff0c\u8bf7\u91cd\u8bd5\u3002",wA.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="\u8fc7\u53bb24\u5c0f\u65f6\u5185\u4f7f\u7528\u7684\u8bbe\u5907/IP\u5730\u5740\u592a\u591a\u3002",wA.STREAMING_NOT_ALLOWED="\u4e0d\u5141\u8bb8\u64ad\u653e\uff0c\u56e0\u4e3a\u6b64\u89c6\u9891\u5df2\u56fa\u5b9a\u5728\u53e6\u4e00\u53f0\u8bbe\u5907\u4e0a\u3002",wA.RETRYABLE_ERROR="\u51fa\u73b0\u6682\u65f6\u6027\u7684\u670d\u52a1\u5668\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002", wA.TOO_MANY_REQUESTS="\u8bf7\u767b\u5f55\u4ee5\u89c2\u770b\u6b64\u89c6\u9891\u3002",wA.TOO_MANY_REQUESTS_WITH_LINK="\u8981\u5728 YouTube \u4e0a\u89c2\u770b\u6b64\u89c6\u9891\uff0c\u8bf7$BEGIN_LINK\u70b9\u51fb\u6b64\u5904$END_LINK\u3002",wA.TOO_MANY_STREAMS_PER_USER="\u5df2\u505c\u6b62\u64ad\u653e\uff0c\u56e0\u4e3a\u76ee\u524d\u5728\u64ad\u653e\u7684\u89c6\u9891\u4e2d\u6709\u592a\u591a\u5c5e\u4e8e\u540c\u4e00\u8d26\u53f7\u3002",wA.TOO_MANY_STREAMS_PER_ENTITLEMENT="\u5df2\u505c\u6b62\u64ad\u653e\uff0c\u56e0\u4e3a\u6b64\u89c6\u9891\u5df2\u7ecf\u5728\u592a\u591a\u8bbe\u5907\u4e0a\u64ad\u653e\u8fc7\u3002", wA.UNSUPPORTED_DEVICE="\u4e0d\u652f\u6301\u5728\u6b64\u8bbe\u5907\u4e0a\u64ad\u653e\u3002",wA.VIDEO_FORBIDDEN="\u4f60\u8981\u6c42\u8bbf\u95ee\u6b64\u89c6\u9891\u7684\u8bf7\u6c42\u88ab\u62d2\u3002",wA.VIDEO_NOT_FOUND="\u627e\u4e0d\u5230\u6b64\u89c6\u9891\u3002",wA.BROWSER_OR_EXTENSION_ERROR="\u51fa\u4e86\u70b9\u95ee\u9898\u3002\u8bf7\u5237\u65b0\u6216\u7a0d\u540e\u91cd\u8bd5\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK",wA);var qwB;var TvQ=g.k9(),Ywx=TvQ.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Ywx||Ywx.length<2)qwB=void 0;else{var ekB=TvQ.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);qwB=ekB&&ekB.length===6?Number(ekB[5].replace("_",".")):0}var TZ=qwB,zV=TZ>=0;g.M(g.aI,cu);g.aI.prototype.W=function(d,q,T,Y,e){return cu.prototype.W.call(this,d,q,T,Y,e)};var f8={},uP=(f8.FAIRPLAY="fairplay",f8.PLAYREADY="playready",f8.WIDEVINE="widevine",f8.CLEARKEY=null,f8.FLASHACCESS=null,f8.UNKNOWN=null,f8.WIDEVINE_CLASSIC=null,f8);AQ.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var zo={},zG=(zo.WIDTH={name:"width",video:!0,valid:640,xl:99999},zo.HEIGHT={name:"height",video:!0,valid:360,xl:99999},zo.FRAMERATE={name:"framerate",video:!0,valid:30,xl:9999},zo.BITRATE={name:"bitrate",video:!0,valid:3E5,xl:2E9},zo.EOTF={name:"eotf",video:!0,valid:"bt709",xl:"catavision"},zo.CHANNELS={name:"channels",video:!1,valid:2,xl:99},zo.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",xl:"invalidformat"},zo.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", xl:"nope"},zo.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",xl:"av99.0.05M.08"},zo.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",xl:"invalid"},zo.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",xl:"false"},zo);var UqE=["h","H"],bp7=["9","("],Xz_=["9h","(h"],J0s=["8","*"],scN=["a","A"],$qj=["o","O"],gQI=["m","M"],FAI=["mac3","MAC3"],Nvn=["meac3","MEAC3"],iK={},uD_=(iK.h=UqE,iK.H=UqE,iK["9"]=bp7,iK["("]=bp7,iK["9h"]=Xz_,iK["(h"]=Xz_,iK["8"]=J0s,iK["*"]=J0s,iK.a=scN,iK.A=scN,iK.o=$qj,iK.O=$qj,iK.m=gQI,iK.M=gQI,iK.mac3=FAI,iK.MAC3=FAI,iK.meac3=Nvn,iK.MEAC3=Nvn,iK),RkR=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),ppj=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var v={},tQ=(v["0"]="f",v["160"]="h",v["133"]="h",v["134"]="h",v["135"]="h",v["136"]="h",v["137"]="h",v["264"]="h",v["266"]="h",v["138"]="h",v["298"]="h",v["299"]="h",v["304"]="h",v["305"]="h",v["214"]="h",v["216"]="h",v["374"]="h",v["375"]="h",v["140"]="a",v["141"]="a",v["327"]="sa",v["258"]="m",v["380"]="mac3",v["328"]="meac3",v["161"]="H",v["142"]="H",v["143"]="H",v["144"]="H",v["222"]="H",v["223"]="H",v["145"]="H",v["224"]="H",v["225"]="H",v["146"]="H",v["226"]="H",v["227"]="H",v["147"]="H",v["384"]= "H",v["376"]="H",v["385"]="H",v["377"]="H",v["149"]="A",v["261"]="M",v["381"]="MAC3",v["329"]="MEAC3",v["598"]="9",v["278"]="9",v["242"]="9",v["243"]="9",v["244"]="9",v["775"]="9",v["776"]="9",v["777"]="9",v["778"]="9",v["779"]="9",v["780"]="9",v["781"]="9",v["782"]="9",v["783"]="9",v["247"]="9",v["248"]="9",v["353"]="9",v["355"]="9",v["356"]="9",v["271"]="9",v["577"]="9",v["313"]="9",v["579"]="9",v["272"]="9",v["302"]="9",v["303"]="9",v["407"]="9",v["408"]="9",v["308"]="9",v["315"]="9",v["330"]= "9h",v["331"]="9h",v["332"]="9h",v["333"]="9h",v["334"]="9h",v["335"]="9h",v["336"]="9h",v["337"]="9h",v["338"]="so",v["600"]="o",v["250"]="o",v["251"]="o",v["774"]="o",v["194"]="*",v["195"]="*",v["220"]="*",v["221"]="*",v["196"]="*",v["197"]="*",v["279"]="(",v["280"]="(",v["317"]="(",v["318"]="(",v["273"]="(",v["274"]="(",v["357"]="(",v["358"]="(",v["275"]="(",v["359"]="(",v["360"]="(",v["276"]="(",v["583"]="(",v["584"]="(",v["314"]="(",v["585"]="(",v["561"]="(",v["277"]="(",v["361"]="(h",v["362"]= "(h",v["363"]="(h",v["364"]="(h",v["365"]="(h",v["366"]="(h",v["591"]="(h",v["592"]="(h",v["367"]="(h",v["586"]="(h",v["587"]="(h",v["368"]="(h",v["588"]="(h",v["562"]="(h",v["409"]="(",v["410"]="(",v["411"]="(",v["412"]="(",v["557"]="(",v["558"]="(",v["394"]="1",v["395"]="1",v["396"]="1",v["397"]="1",v["398"]="1",v["399"]="1",v["720"]="1",v["721"]="1",v["400"]="1",v["401"]="1",v["571"]="1",v["402"]="1",v["694"]="1h",v["695"]="1h",v["696"]="1h",v["697"]="1h",v["698"]="1h",v["699"]="1h",v["700"]="1h", v["701"]="1h",v["702"]="1h",v["703"]="1h",v["386"]="3",v["387"]="w",v["406"]="6",v["787"]="1",v["788"]="1",v["548"]="1e",v["549"]="1e",v["550"]="1e",v["551"]="1e",v["809"]="1e",v["810"]="1e",v["552"]="1e",v["811"]="1e",v["812"]="1e",v["553"]="1e",v["813"]="1e",v["814"]="1e",v["554"]="1e",v["815"]="1e",v["816"]="1e",v["555"]="1e",v["817"]="1e",v["818"]="1e",v["572"]="1e",v["556"]="1e",v["645"]="(",v["646"]="(",v["647"]="(",v["648"]="(",v["649"]="(",v["650"]="(",v["651"]="(",v["652"]="(",v["653"]="(", v["654"]="(",v["655"]="(",v["656"]="(",v["657"]="(",v["658"]="(",v["659"]="(",v["660"]="(",v["661"]="(",v["662"]="(",v["663"]="(",v["664"]="(",v["665"]="(",v["666"]="(",v["667"]="(",v["668"]="(",v["669"]="(",v["670"]="(",v["671"]="(",v["672"]="(",v["673"]="(",v["674"]="(h",v["675"]="(h",v["676"]="(h",v["677"]="(h",v["678"]="(h",v["679"]="(h",v["680"]="(h",v["681"]="(h",v["682"]="(h",v["683"]="(h",v["684"]="(h",v["685"]="(h",v["686"]="(h",v["687"]="(h",v["688"]="A",v["689"]="A",v["690"]="A",v["691"]= "MEAC3",v["773"]="i",v["806"]="I",v["805"]="I",v["829"]="9",v["830"]="9",v["831"]="9",v["832"]="9",v["833"]="9",v["834"]="9",v["835"]="9",v["836"]="9",v["892"]="9",v["893"]="9",v["837"]="9",v["838"]="9",v["839"]="9",v["840"]="9",v["841"]="(",v["842"]="(",v["843"]="(",v["844"]="(",v["845"]="(",v["846"]="(",v["847"]="(",v["848"]="(",v["894"]="(",v["895"]="(",v["849"]="(",v["850"]="(",v["851"]="(",v["852"]="(",v["865"]="9",v["866"]="9",v["867"]="9",v["868"]="9",v["869"]="9",v["870"]="9",v["871"]="9", v["872"]="9",v["896"]="9",v["897"]="9",v["873"]="9",v["874"]="9",v["875"]="9",v["876"]="9",v["877"]="(",v["878"]="(",v["879"]="(",v["880"]="(",v["881"]="(",v["882"]="(",v["883"]="(",v["884"]="(",v["898"]="(",v["899"]="(",v["885"]="(",v["886"]="(",v["887"]="(",v["888"]="(",v);var IS={},ce7=(IS.STEREO_LAYOUT_UNKNOWN=0,IS.STEREO_LAYOUT_LEFT_RIGHT=1,IS.STEREO_LAYOUT_TOP_BOTTOM=2,IS);var my,rj;my={};g.ZB=(my.auto=0,my.tiny=144,my.light=144,my.small=240,my.medium=360,my.large=480,my.hd720=720,my.hd1080=1080,my.hd1440=1440,my.hd2160=2160,my.hd2880=2880,my.highres=4320,my);rj={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var ne="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");OJ.prototype.isHdr=function(){return this.G==="smpte2084"||this.G==="arib-std-b67"};BH.prototype.fz=function(){return this.containerType===2}; BH.prototype.isEncrypted=function(){return!!this.ac}; BH.prototype.JE=function(){return!!this.audio}; BH.prototype.eh=function(){return!!this.video}; var Le=!1;g.M(e1,g.YP);g.Q=e1.prototype;g.Q.appendBuffer=function(d,q,T){if(this.KC.iE()!==this.appendWindowStart+this.start||this.KC.nB()!==this.appendWindowEnd+this.start||this.KC.mz()!==this.timestampOffset+this.start)this.KC.supports(1),this.KC.qa(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.KC.Ii(this.timestampOffset+this.start);this.KC.appendBuffer(d,q,T)}; g.Q.abort=function(){this.KC.abort()}; g.Q.remove=function(d,q){this.KC.remove(d+this.start,q+this.start)}; g.Q.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.Q.clear=function(){this.KC.clear()}; g.Q.qa=function(d,q){this.appendWindowStart=d;this.appendWindowEnd=q}; g.Q.zI=function(){return this.timestampOffset+this.start}; g.Q.iE=function(){return this.appendWindowStart}; g.Q.nB=function(){return this.appendWindowEnd}; g.Q.Ii=function(d){this.timestampOffset=d}; g.Q.mz=function(){return this.timestampOffset}; g.Q.Zm=function(d){d=this.KC.Zm(d===void 0?!1:d);return Yx(d,this.start,this.end)}; g.Q.e8=function(){return this.KC.e8()}; g.Q.y_=function(){return this.KC.y_()}; g.Q.Ao=function(){return this.KC.Ao()}; g.Q.Ka=function(){return this.KC.Ka()}; g.Q.zc=function(){this.KC.zc()}; g.Q.o4=function(d){return this.KC.o4(d)}; g.Q.vu=function(){return this.KC.vu()}; g.Q.Wo=function(){return this.KC.Wo()}; g.Q.m6=function(d,q,T){this.KC.m6(d,q,T)}; g.Q.S2=function(d,q,T){this.KC.S2(d,q,T)}; g.Q.nD=function(d,q){return this.KC.nD(d,q)}; g.Q.supports=function(d){return this.KC.supports(d)}; g.Q.ZG=function(){return this.KC.ZG()}; g.Q.isView=function(){return!0}; g.Q.ZP=function(){return this.KC.ZP()?this.isActive:!1}; g.Q.isLocked=function(){return this.DZ&&!this.isActive}; g.Q.BF=function(d){d=this.KC.BF(d);d.vw=this.start+"-"+this.end;return d}; g.Q.Bo=function(){return this.KC.Bo()}; g.Q.h9=function(){return this.KC.h9()}; g.Q.o_=function(){return this.KC.o_()}; g.Q.ir=function(){this.KC.jC(this.Zj);g.YP.prototype.ir.call(this)};var KP=!1;g.M(bN,g.YP);g.Q=bN.prototype;g.Q.appendBuffer=function(d,q,T){this.Rv=!1;T&&(this.U2=T);if(d.length){var Y;((Y=this.RN)==null?0:Y.appendBuffer)?this.RN.appendBuffer(d):this.RN?this.RN.append(d):this.Jk&&this.Jk.webkitSourceAppend(this.id,d)}q&&(q.isEncrypted()&&(this.pT=this.U2),q.type===3&&(this.Or=q),this.fm.push(q.jt()),this.fm.length>4&&this.fm.shift());this.Yr&&(this.Yr.length>=2||d.length>1048576?delete this.Yr:this.Yr.push(d))}; g.Q.abort=function(){try{this.RN?this.RN.abort():this.Jk&&this.Jk.webkitSourceAbort(this.id)}catch(q){if(Yp6){var d=new g.CW("Error while abort the source buffer: "+q.name+", "+q.message);g.Zz(d)}}this.U2=this.Or=null}; g.Q.remove=function(d,q,T){this.Rv=!1;var Y;if((Y=this.RN)==null?0:Y.remove)T&&T({b:lW(this.Zm()),s:d,e:q}),this.RN.remove(d,q)}; g.Q.removeAll=function(){this.remove(this.iE(),this.nB())}; g.Q.clear=function(){this.Ao()||(this.abort(),this.removeAll(),this.pT=this.U2=this.Or=null,this.appendWindowStart=this.timestampOffset=0,this.QO=S7([],[]),this.Rv=!1,this.Yr=UX?[]:void 0,this.KR=!0)}; g.Q.iE=function(){if(KP&&this.eh)return this.appendWindowStart;var d;return((d=this.RN)==null?void 0:d.appendWindowStart)||0}; g.Q.nB=function(){var d;return((d=this.RN)==null?void 0:d.appendWindowEnd)||0}; g.Q.qa=function(d,q){this.RN&&(KP&&this.eh?(this.appendWindowStart=d,this.RN.appendWindowEnd=q):d>this.iE()?(this.RN.appendWindowEnd=q,this.RN.appendWindowStart=d):(this.RN.appendWindowStart=d,this.RN.appendWindowEnd=q))}; g.Q.zI=function(){return this.timestampOffset}; g.Q.Ii=function(d){KP?this.timestampOffset=d:this.supports(1)&&(this.RN.timestampOffset=d)}; g.Q.mz=function(){return KP?this.timestampOffset:this.supports(1)?this.RN.timestampOffset:0}; g.Q.Zm=function(d){if(d===void 0?0:d)return this.Rv||this.e8()||(this.QO=this.Zm(!1),this.Rv=!0),this.QO;try{return this.RN?this.RN.buffered:this.Jk?this.Jk.webkitSourceBuffered(this.id):S7([0],[Infinity])}catch(q){return S7([],[])}}; g.Q.e8=function(){var d;return((d=this.RN)==null?void 0:d.updating)||!1}; g.Q.Ao=function(){return this.KR}; g.Q.Ka=function(){return!this.KR&&this.e8()}; g.Q.zc=function(){this.KR=!1}; g.Q.o4=function(d){var q=d==null?void 0:d.Cf;d=d==null?void 0:d.containerType;return!q&&!d||q===this.Cf&&d===this.containerType}; g.Q.vu=function(){return this.U2}; g.Q.Wo=function(){return this.pT}; g.Q.nD=function(d,q){return this.containerType!==d||this.Cf!==q}; g.Q.m6=function(d,q,T){if(this.containerType!==d||T&&this.nD(d,T))this.supports(4),XD()&&this.RN.changeType(q),T&&(this.Cf=T);this.containerType=d}; g.Q.S2=function(d,q,T){this.containerType&&this.nD(d,q)&&XD()&&this.RN.changeType(T);this.containerType=d;this.Cf=q}; g.Q.ZG=function(){return this.Or}; g.Q.isView=function(){return!1}; g.Q.supports=function(d){switch(d){case 1:var q;return((q=this.RN)==null?void 0:q.timestampOffset)!==void 0;case 0:var T;return!((T=this.RN)==null||!T.appendBuffer);case 2:var Y;return!((Y=this.RN)==null||!Y.remove);case 3:var e,U;return!!(((e=this.RN)==null?0:e.addEventListener)&&((U=this.RN)==null?0:U.removeEventListener));case 4:return!(!this.RN||!this.RN.changeType);default:return!1}}; g.Q.ZP=function(){return!this.e8()}; g.Q.isLocked=function(){return!1}; g.Q.BF=function(d){d.to=this.mz();d.up=this.e8();var q,T=((q=this.RN)==null?void 0:q.appendWindowStart)||0,Y;q=((Y=this.RN)==null?void 0:Y.appendWindowEnd)||Infinity;d.aw=T.toFixed(3)+"-"+q.toFixed(3);return d}; g.Q.y_=function(){var d;return((d=this.RN)==null?void 0:d.writeHead)||0}; g.Q.Bo=function(){for(var d={},q=0;q=7&&(!q||((Y=this.G2)==null?0:Y.N("mweb_ios_allow_playback_workaround_when_ready")))&&ri7(this,function(){g.s3(function(){mP2(d,d.getCurrentTime(),0)},500)})}return q}; g.Q.seekTo=function(d){this.Tr()>0&&(zV&&TZ<4&&(d=Math.max(.1,d)),this.setCurrentTime(d))}; g.Q.Zp=function(){if(!this.U&&this.ED)if(this.ED.S)try{var d;FD(this,{l:"mer",sr:(d=this.G2)==null?void 0:d.Tz(),rs:Rp(this.ED)});this.ED.clear();this.U=this.ED;this.ED=void 0}catch(q){d=new g.CW("Error while clearing Media Source in MediaElement: "+q.name+", "+q.message),g.Zz(d),this.stopVideo()}else this.stopVideo()}; g.Q.stopVideo=function(){var d=this;if(!this.U){var q;(q=this.ED)==null||zsX(q);if(drn){if(!this.j){var T=new yQ;T.then(void 0,function(){}); this.j=T;qpQ&&this.pause();g.s3(function(){d.j===T&&(MF(d),T.resolve())},200)}}else MF(this)}}; g.Q.sP=function(){var d=this.g1();return qF(d)&&this.getDuration()?Vb(d,this.getCurrentTime()):0}; g.Q.mE=function(){var d=this.getDuration();return d===Infinity?1:d?this.sP()/d:0}; g.Q.BF=function(){try{var d=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:lW(this.NT(),",",3),vbu:lW(this.g1()),vbs:lW(this.kF()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Tr(),vns:""+this.Va(),vec:""+this.nA(),vemsg:this.P4(),vvol:""+this.getVolume(),vdom:""+ +this.wj(),vsrc:""+ +!!this.j0(),vw:""+d.width,vh:""+d.height}}catch(q){return{}}}; g.Q.hasError=function(){return this.nA()>0}; g.Q.addEventListener=function(d,q){this.T.listen(d,q,!1,this);this.t_(d)}; g.Q.removeEventListener=function(d,q){this.T.t1(d,q,!1,this)}; g.Q.dispatchEvent=function(d){if(this.j&&d.type==="pause")return!1;if(THX){var q,T=((q=d.G)==null?void 0:q.timeStamp)||Infinity;q=T>performance.now()?T-Date.now()+performance.now():T;T=this.U||this.ED;if((T==null?0:T.Ao())||q<=((T==null?void 0:T.X)||0)){var Y;FD(this,{l:"mede",sr:(Y=this.G2)==null?void 0:Y.Tz(),et:d.type});return!1}if(this.HH)return FD(this,{l:"medes",et:d.type}),T&&d.type==="seeking"&&(T.X=performance.now(),this.HH=!1),!1}return this.T.dispatchEvent(d)}; g.Q.T6=function(){this.X=!1}; g.Q.G6=function(){this.X=!0;this.J4(!0)}; g.Q.U_=function(){this.X&&!this.CB()&&this.J4(!0)}; g.Q.equals=function(d){return!!d&&d.tA()===this.tA()}; g.Q.ir=function(){this.L&&this.removeEventListener("volumechange",this.U_);drn&&MF(this);g.W.prototype.ir.call(this)}; var drn=!1,qpQ=!1,THX=!1,vPf=!1;g.Q=g.EX.prototype;g.Q.isPaused=function(){return g.I(this,4)}; g.Q.isPlaying=function(){return g.I(this,8)&&!g.I(this,512)&&!g.I(this,64)&&!g.I(this,2)}; g.Q.isOrWillBePlaying=function(){return g.I(this,8)&&!g.I(this,2)&&!g.I(this,1024)}; g.Q.isCued=function(){return g.I(this,64)&&!g.I(this,8)&&!g.I(this,4)}; g.Q.isBuffering=function(){return g.I(this,1)&&!g.I(this,2)}; g.Q.isError=function(){return g.I(this,128)}; g.Q.isSuspended=function(){return g.I(this,512)}; g.Q.Kl=function(){return g.I(this,64)&&g.I(this,4)}; g.Q.toString=function(){return"PSt."+this.state.toString(16)}; var Sr={},lK=(Sr.BUFFERING="buffering-mode",Sr.CUED="cued-mode",Sr.ENDED="ended-mode",Sr.PAUSED="paused-mode",Sr.PLAYING="playing-mode",Sr.SEEKING="seeking-mode",Sr.UNSTARTED="unstarted-mode",Sr);g.M(Bl,g.W);g.Q=Bl.prototype;g.Q.Ft=function(){return this.j}; g.Q.Sv=function(){return this.slot}; g.Q.e5=function(){return this.layout}; g.Q.init=function(){var d=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds"),q=l7(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");No(this.layout.GG)&&UW(this.iF.get(),this.layout.layoutId,{jE:q,Nx:d,listener:this,KS:this.pz()});OX2(this.Hv.get(),this);d=this.Df;q=this.layout.layoutId;var T={KS:this.pz()};d.G.set(q,T);this.u4()}; g.Q.pM=function(){}; g.Q.release=function(){No(this.layout.GG)&&bU(this.iF.get(),this.layout.layoutId);nDf(this.Hv.get(),this);this.Df.G.delete(this.layout.layoutId);this.jp()}; g.Q.u8=function(){}; g.Q.Ev=function(){}; g.Q.startRendering=function(d){gP(Kk(this));if(G5(this,d)){var q=this.G;Fg(q.params.cf.T2.get(),!0)&&OMf(q,"p_sr",{});Lk(this);this.HV(d);this.pz()||this.Nr(!1)}}; g.Q.AA=function(d,q){if(q.layoutId===this.layout.layoutId){this.WF="rendering";this.U=this.Yx.get().isMuted()||this.Yx.get().getVolume()===0;this.EM("impression");this.EM("start");if(this.Yx.get().isMuted()){D2(this,"mute");var T;d=((T=te(this))==null?void 0:T.muteCommands)||[];Gn(this.hA.get(),d,this.layout.layoutId)}if(this.Yx.get().isFullscreen()){this.Wr("fullscreen");var Y;T=((Y=te(this))==null?void 0:Y.fullscreenCommands)||[];Gn(this.hA.get(),T,this.layout.layoutId)}this.pz()||(Y=this.yU.get(), Y.j&&!Y.U&&(Y.S=!1,Y.U=!0,Y.actionType!=="ad_to_video"&&(tU("pbs",void 0,Y.actionType),g.RD("finalize_all_timelines")&&JL6(Y.actionType))));this.wr(1);this.Q6(q);var e;q=((e=te(this))==null?void 0:e.impressionCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}}; g.Q.He=function(d,q,T){this.L={gY:3,Ej:d==="load_timeout"?402:400,errorMessage:q.message};this.EM("error");var Y;d=((Y=te(this))==null?void 0:Y.errorCommands)||[];Gn(this.hA.get(),d,this.layout.layoutId);this.pz()||this.ai.Cz(this.slot,this.layout,q,T)}; g.Q.DB=function(){if(this.WF==="rendering"){D2(this,"pause");var d,q=((d=te(this))==null?void 0:d.pauseCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId);this.wr(2)}}; g.Q.x0=function(){if(this.WF==="rendering"){D2(this,"resume");var d,q=((d=te(this))==null?void 0:d.resumeCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}}; g.Q.Xs=function(d,q){q=q===void 0?!1:q;if(this.WF==="rendering"){var T={currentTimeSec:d,flush:q};NI(this.G,"p_ip",T);cp(this.Dw,d*1E3,q);this.U||cp(this.Dw,d*1E3,q===void 0?!1:q);var Y=this.Bs();if(Y){Y/=1E3;if(d>=Y*.25||q)this.EM("first_quartile"),NI(this.G,"p_fq",T);if(d>=Y*.5||q)this.EM("midpoint"),NI(this.G,"p_sq",T);if(d>=Y*.75||q)this.EM("third_quartile"),NI(this.G,"p_tq",T);this.T2.get().J.C().experiments.Wv("enable_progress_command_flush_on_kabuki")?rX(this.T,d*1E3,q):rX(this.T,d*1E3,YPn(this)? q:!1)}}}; g.Q.dc=function(){var d;return((d=kx(this.Xw.get(),1))==null?void 0:d.clientPlaybackNonce)||""}; g.Q.EC=function(d,q){d.layoutId!==this.layout.layoutId?this.ai.Cz(this.slot,d,new m5("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"):q()}; g.Q.i$=function(d,q,T){if(q.layoutId===this.layout.layoutId)switch(this.WF="not_rendering",this.layoutExitReason=void 0,this.pz()||(d=T!=="normal"||this.position+1===this.X)&&this.Nr(d),this.FJ(T),this.wr(0),T){case "abandoned":if(E0(this.Dw,"impression")){var Y,e=((Y=te(this))==null?void 0:Y.abandonCommands)||[];Gn(this.hA.get(),e,this.layout.layoutId)}break;case "normal":Y=((e=te(this))==null?void 0:e.completeCommands)||[];Gn(this.hA.get(),Y,this.layout.layoutId);break;case "skipped":var U;Y=((U= te(this))==null?void 0:U.skipCommands)||[];Gn(this.hA.get(),Y,this.layout.layoutId)}}; g.Q.Z6=function(){return this.layout.layoutId}; g.Q.eX=function(){return this.L}; g.Q.LZ=function(){if(this.WF==="rendering"){this.Dw.EM("active_view_measurable");var d,q=((d=te(this))==null?void 0:d.activeViewMeasurableCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}}; g.Q.ND=function(){if(this.WF==="rendering"){this.Dw.EM("active_view_fully_viewable_audible_half_duration");var d,q=((d=te(this))==null?void 0:d.activeViewFullyViewableAudibleHalfDurationCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}}; g.Q.Ff=function(){if(this.WF==="rendering"){this.Dw.EM("active_view_viewable");var d,q=((d=te(this))==null?void 0:d.activeViewViewableCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}}; g.Q.eI=function(){if(this.WF==="rendering"){this.Dw.EM("audio_audible");var d,q=((d=te(this))==null?void 0:d.activeViewAudioAudibleCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}}; g.Q.nZ=function(){if(this.WF==="rendering"){this.Dw.EM("audio_measurable");var d,q=((d=te(this))==null?void 0:d.activeViewAudioMeasurableCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}}; g.Q.Nr=function(d){this.yU.get().Nr(l7(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,d,this.position,this.X,!1)}; g.Q.onFullscreenToggled=function(d){if(this.WF==="rendering")if(d){this.Wr("fullscreen");var q,T=((q=te(this))==null?void 0:q.fullscreenCommands)||[];Gn(this.hA.get(),T,this.layout.layoutId)}else this.Wr("end_fullscreen"),q=((T=te(this))==null?void 0:T.endFullscreenCommands)||[],Gn(this.hA.get(),q,this.layout.layoutId)}; g.Q.onVolumeChange=function(){if(this.WF==="rendering")if(this.Yx.get().isMuted()){D2(this,"mute");var d,q=((d=te(this))==null?void 0:d.muteCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}else D2(this,"unmute"),d=((q=te(this))==null?void 0:q.unmuteCommands)||[],Gn(this.hA.get(),d,this.layout.layoutId)}; g.Q.bS=function(){}; g.Q.n8=function(){}; g.Q.P3=function(){}; g.Q.EN=function(){}; g.Q.L8=function(){}; g.Q.Wr=function(d){this.Dw.Wr(d,!this.U)}; g.Q.EM=function(d){this.Dw.EM(d,!this.U)}; g.Q.pz=function(){var d=l7(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return d===void 0?(Jm("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.T2.get().pz(d)};g.M(Ip,Bl);g.Q=Ip.prototype;g.Q.u4=function(){}; g.Q.jp=function(){var d=this.Hv.get();d.r5===this&&(d.r5=null);this.timer.stop()}; g.Q.u8=function(){this.timer.stop();Bl.prototype.DB.call(this)}; g.Q.Ev=function(){S1(this);Bl.prototype.x0.call(this)}; g.Q.Bs=function(){return l7(this.e5().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.Q.OF=function(d,q){var T=this;this.EC(d,function(){T.WF!=="rendering_stop_requested"&&(T.WF="rendering_stop_requested",T.layoutExitReason=q,Pl(T,q),T.timer.stop())})}; g.Q.Yc=function(){var d=Date.now(),q=d-this.bj;this.bj=d;this.MQ+=q;this.MQ>=this.Bs()?this.Lc():(this.Xs(this.MQ/1E3),mi(this,this.MQ))}; g.Q.FJ=function(){}; g.Q.e0=function(){}; g.M(lN,Ip);g.Q=lN.prototype;g.Q.mf=function(d){if(this.WF!=="not_rendering"){d=Wl(this,d);var q=this.Yx.get().getPresentingPlayerType()===2;this.WF==="rendering_start_requested"?q&&qI(d)&&this.Gk():q?g.gs(d,2)?Jm("Receive player ended event during MediaBreak",this.Sv(),this.e5()):Ck(this,d):this.wD()}}; g.Q.HV=function(){qPH(this);WeX(this.Yx.get());this.Hv.get().r5=this;nU("pbp")||nU("pbs")||tU("pbp");nU("pbp","watch")||nU("pbs","watch")||tU("pbp",void 0,"watch");this.Gk()}; g.Q.Q6=function(d){this.yU.get();var q=l7(d.clientMetadata,"metadata_type_ad_placement_config").kind,T=this.position===0;d=l7(d.clientMetadata,"metadata_type_linked_in_player_layout_type");d={adBreakType:uN(q),adType:Rvg(d)};var Y=void 0;T?q!=="AD_PLACEMENT_KIND_START"&&(Y="video_to_ad"):Y="ad_to_ad";pU("ad_mbs",void 0,Y);g.ZO(d,Y);S1(this)}; g.Q.wD=function(){this.e9()}; g.Q.Lc=function(){UY1(this);this.e9()}; g.M(vl,Ip);g.Q=vl.prototype;g.Q.mf=function(d){this.WF!=="not_rendering"&&(d=Wl(this,d),Ck(this,d))}; g.Q.HV=function(){Jm("Not used in SSAP")}; g.Q.Q6=function(){S1(this)}; g.Q.wD=function(){Jm("Not used in SSAP")}; g.Q.Lc=function(){UY1(this);this.ai.rp(this.Sv(),this.e5(),"normal")}; g.M(op,vl);op.prototype.OF=function(d,q){var T=this;this.EC(d,function(){bW(T.j,q)&&(T.WF="rendering_stop_requested",T.layoutExitReason=q,Pl(T,q),T.timer.stop())})}; op.prototype.startRendering=function(d){gP(Kk(this));G5(this,d)&&(Lk(this),this.Hv.get().r5=this)};g.M(qB,Bl);g.Q=qB.prototype;g.Q.wD=function(){this.e9()}; g.Q.mf=function(d){if(this.WF!=="not_rendering"){d=Wl(this,d);var q=this.Yx.get().getPresentingPlayerType()===2;this.WF==="rendering_start_requested"?q&&qI(d)&&this.Gk():!q||g.gs(d,2)?this.e9():Ck(this,d)}}; g.Q.u4=function(){l7(this.e5().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=l7(this.e5().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.Q.jp=function(){l7(this.e5().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.jF){var d=this.context.cf,q=this.jF,T=this.e5().layoutId;if(Fg(d.T2.get(),!0)){var Y={};d.oN("mccru",(Y.cid=q,Y.p_ac=T,Y))}this.l$.get().removeCueRange(this.jF)}this.jF=void 0;var e;(e=this.UU)==null||e.dispose();this.xM&&this.xM.dispose()}; g.Q.HV=function(d){var q=VQ(this.T2.get()),T=dU(this.T2.get());if(q&&T&&!this.pz()){T=l7(d.clientMetadata,"metadata_type_preload_player_vars");var Y=this.T2.get();Y=g.Yv(Y.J.C().experiments,"html5_preload_wait_time_secs");T&&this.xM&&this.xM.start(Y*1E3)}Jm_(this,d);qPH(this);q?(T=this.UF.get(),d=l7(d.clientMetadata,"metadata_type_player_vars"),T.J.loadVideoByPlayerVars(d,!1,2)):du_(this.UF.get(),l7(d.clientMetadata,"metadata_type_player_vars"));var e;(e=this.UU)==null||e.start();q||this.UF.get().J.playVideo(2)}; g.Q.Q6=function(){var d;(d=this.UU)==null||d.stop();this.sb();(this.adCpn=dYn(this))||Jm("Media layout confirmed started, but ad CPN not set.");this.FC.get().qd("onAdStart",this.adCpn);this.aS=Date.now()}; g.Q.Bs=function(){var d;return(d=kx(this.Xw.get(),2))==null?void 0:d.L4}; g.Q.SL=function(){this.Dw.Wr("clickthrough")}; g.Q.OF=function(d,q){var T=this;this.EC(d,function(){if(T.WF!=="rendering_stop_requested"){T.WF="rendering_stop_requested";T.layoutExitReason=q;Pl(T,q);var Y;(Y=T.UU)==null||Y.stop();T.xM&&T.xM.stop();suQ(T)}})}; g.Q.onCueRangeEnter=function(d){if(d!==this.jF)Jm("Received CueRangeEnter signal for unknown layout.",this.Sv(),this.e5(),{cueRangeId:d});else{var q=this.context.cf,T=this.e5().layoutId;if(Fg(q.T2.get(),!0)){var Y={};q.oN("mccre",(Y.cid=d,Y.p_ac=T,Y))}this.l$.get().removeCueRange(this.jF);this.jF=void 0;WA(this.context.T2.get(),"html5_ssap_flush_at_stop_rendering")&&this.pz()||(d=l7(this.e5().clientMetadata,"metadata_type_video_length_seconds"),this.Xs(d,!0),this.EM("complete"))}}; g.Q.FJ=function(d){d!=="abandoned"&&this.FC.get().qd("onAdComplete");this.FC.get().qd("onAdEnd",this.adCpn)}; g.Q.sb=function(){this.jF="adcompletioncuerange:"+this.e5().layoutId;this.l$.get().addCueRange(this.jF,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var d=this.context.cf,q=this.jF,T=this.e5().layoutId;if(Fg(d.T2.get(),!0)){var Y={};d.oN("mccr",(Y.cid=q,Y.p_ac=T,Y))}}; g.Q.onCueRangeExit=function(){}; g.Q.e0=function(d){this.WF==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&d>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Yx.get().Kt(!0),this.Xs(d))}; g.Q.Xs=function(d,q){Bl.prototype.Xs.call(this,d,q===void 0?!1:q);q=Date.now()-this.aS;var T=d*1E3,Y={contentCpn:this.dc(),adCpn:dYn(this)};if(d-this.ER>=5){var e=q=2||(this.NC.OF(this.layout,q),d=WA(this.params.context.T2.get(),"html5_ssap_pass_transition_reason")&&q==="abandoned",this.vH()&&!d&&(WA(this.params.context.T2.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(q)||Jm("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:q})),this.Gq.get().finishSegmentByCpn(this.layout.layoutId, kx(this.Xw.get(),1).clientPlaybackNonce,fk(q,this.params.context.T2))),this.Yx.get().removeListener(this),this.OI()&&Xg(this.NC.Ft())&&this.Ov.i$(this.slot,this.layout,this.NC.Ft().G))}; g.Q.xQ=function(d,q,T){pk1({cpn:d,kP:this.Xw.get(),jc:!0});this.e5().layoutId!==d||WA(this.params.context.T2.get(),"html5_ssap_pass_transition_reason")&&T===5||(this.NC.Ft().currentState<2&&(d=z5(T,this.params.context.T2),d==="error"?this.Ov.Cz(this.slot,this.layout,new m5("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:T},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):gU(this.MU, this.layout,d)),WA(this.params.context.T2.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Ov.i$(this.slot,this.layout,this.NC.Ft().G))};g.M(bu,g.W);g.Q=bu.prototype;g.Q.Sv=function(){return this.slot}; g.Q.e5=function(){return this.layout}; g.Q.xt=function(){}; g.Q.WA=function(){return this.gU[this.rS]}; g.Q.hp=function(){return this.rS}; g.Q.u8=function(d,q){var T=this.WA();q.layoutId!==JP(T,d,q)?Jm("pauseLayout for a PlayerBytes layout that is not currently active",d,q):T.u8()}; g.Q.Ev=function(d,q){var T=this.WA();q.layoutId!==JP(T,d,q)?Jm("resumeLayout for a PlayerBytes layout that is not currently active",d,q):T.Ev()}; g.Q.Za=function(d,q){var T=this.WA();Quf(this,d,q);MC7(T,d,q)&&this.X0(T.Sv(),T.e5(),"skipped")}; g.Q.wl=function(d,q){var T=this.WA();cm7(this);EoH(T,d,q)&&(d=juj(this,T,d,q),d!==void 0&&(this.pz()?Jm("Should not happen. Should delete"):AmN(this,T.Sv(),T.e5(),d)))}; g.Q.bR=function(d,q){var T=Object.assign({},XF(this),{layoutId:q.layoutId}),Y=T.layoutId,e=T.jc;if(T.KS){var U={};$V(T.kP,"wrse",(U.ec=Y,U.is=e,U.ctp=sJ(Y),U))}HA(this.bu,d,q)}; g.Q.AA=function(d,q){var T;(T=this.WA())==null||T.AA(d,q)}; g.Q.i$=function(d,q,T){q.layoutId===this.e5().layoutId&&(this.Oq=!1,XX(this.cF(),this));var Y;(Y=this.WA())==null||Y.i$(d,q,T)}; g.Q.e0=function(d){var q;(q=this.WA())==null||q.e0(d)}; g.Q.pO=function(d,q,T){this.hp()===-1&&(this.callback.AA(this.slot,this.layout),this.rS++);var Y=this.WA();Y?(Y.He(d,q,T),this.pz()&&this.callback.Cz(this.slot,this.layout,q,T)):Jm("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.hp()),layoutId:this.e5().layoutId})}; g.Q.onFullscreenToggled=function(d){var q;(q=this.WA())==null||q.onFullscreenToggled(d)}; g.Q.bS=function(d){var q;(q=this.WA())==null||q.bS(d)}; g.Q.P3=function(d){var q;(q=this.WA())==null||q.P3(d)}; g.Q.onVolumeChange=function(){var d;(d=this.WA())==null||d.onVolumeChange()}; g.Q.nu=function(d,q,T){Qz(this.bu,d,q,T)}; g.Q.j2=function(d){d.startRendering(d.e5())}; g.Q.init=function(){var d=l7(this.e5().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");d&&(d.current=this);if(this.gU.length<1)throw new S("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.gU.length)});if(d=l7(this.e5().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))d.current=this;d=g.E(this.gU);for(var q=d.next();!q.done;q=d.next())q=q.value,q.init(),I52(this.bu,this.slot,q.e5()),m9_(this.bu,this.slot,q.e5()); if(this.pz())for(this.Xw.get().addListener(this),Mxj(HGN(this),this.Xw.get()),d=HGN(this),d=g.E(d),q=d.next();!q.done;q=d.next())this.V1(q.value)}; g.Q.V1=function(d){var q=l7(d.clientMetadata,"metadata_type_player_vars");q?(d.layoutType!=="LAYOUT_TYPE_MEDIA"&&Jm("Non-video ad contains playerVars",this.slot,d),this.UF.get().addPlayerResponseForAssociation({playerVars:q})):(d=xY7(d),this.UF.get().addPlayerResponseForAssociation({d7:d}))}; g.Q.release=function(){var d=l7(this.e5().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");d&&(d.current=null);if(d=l7(this.e5().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))d.current=null;d=g.E(this.gU);for(var q=d.next();!q.done;q=d.next())q=q.value,Su_(this.bu,this.slot,q.e5()),q.release();this.pz()&&(this.Xw.get().removeListener(this),ciD())}; g.Q.EC=function(d){return d.layoutId!==this.e5().layoutId?(this.callback.Cz(this.Sv(),d,new m5("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.e5().layoutId+("and LayoutType: "+this.e5().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.Q.R1=function(){this.Yx.get().addListener(this);bG(this.cF(),this)}; g.Q.mf=function(d){if(d.state.isError()){var q,T;this.pO((q=d.state.eF)==null?void 0:q.errorCode,new m5("There was a player error during this media layout.",{playerErrorCode:(T=d.state.eF)==null?void 0:T.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(q=this.WA())&&q.mf(d)}; g.Q.pz=function(){var d=l7(this.Sv().clientMetadata,"metadata_type_eligible_for_ssap");return d===void 0?(Jm("Expected SSAP eligibility in PlayerBytes slots",this.Sv(),this.e5()),!1):this.T2.get().pz(d)}; g.Q.n8=function(){}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.qp=function(){}; g.Q.EN=function(){}; g.Q.L8=function(){}; g.M(FF,bu);g.Q=FF.prototype;g.Q.uR=function(d,q,T){this.X0(d,q,T)}; g.Q.Hn=function(d,q){this.X0(d,q,"error")}; g.Q.X0=function(d,q,T){var Y=this;a06(this,d,q,T,function(){s_(Y,Y.hp()+1)})}; g.Q.startRendering=function(d){this.EC(d)&&(this.R1(),vZn(this.yU.get()),edj(this.T2.get())||WeX(this.Yx.get()),this.hp()===-1&&s_(this,this.hp()+1))}; g.Q.OF=function(d,q){var T=this;this.Oq=!0;this.hp()===this.gU.length?this.callback.i$(this.slot,this.layout,q):(d=this.WA(),d.OF(d.e5(),q),this.TV=function(){T.callback.i$(T.slot,T.layout,q)}); this.Yx.get().J.xI();du_(this.UF.get(),{});d=ey(this.Yx.get(),1);d.isPaused()&&!g.I(d,2)&&this.Yx.get().playVideo();this.Yx.get().removeListener(this);this.Oq&&pGX(this)}; g.Q.xQ=function(){}; g.Q.De=function(){}; g.Q.rp=function(){}; g.M(NB,bu);g.Q=NB.prototype;g.Q.uR=function(d,q,T){d=Object.assign({},XF(this),{layoutId:q.layoutId,layoutExitReason:T});q=d.layoutId;T=d.layoutExitReason;var Y={};$V(d.kP,"prse",(Y.xc=q,Y.ler=T,Y.ctp=sJ(q),Y))}; g.Q.Hn=function(){Jm("onSubLayoutError in SSAP")}; g.Q.X0=function(){Jm("exitSubLayoutAndPlayNext in SSAP")}; g.Q.WA=function(){return this.I6}; g.Q.hp=function(){var d=this;return this.gU.findIndex(function(q){var T;return q.e5().layoutId===((T=d.I6)==null?void 0:T.e5().layoutId)})}; g.Q.j2=function(d){X$(this.I6===void 0,"replacing another adapter");this.I6=d;d.startRendering(d.e5())}; g.Q.nu=function(d,q,T){Qz(this.bu,d,q,T);var Y;X$(q.layoutId===((Y=this.I6)==null?void 0:Y.e5().layoutId),"currentAdapter does not match exiting layout",{slot:d?"slot: "+d.slotType:"",subLayout:b2(q)})&&(this.I6=void 0)}; g.Q.release=function(){bu.prototype.release.call(this);X$(this.I6===void 0,"currentAdapter is still active during release");this.I6=void 0}; g.Q.vH=function(){return this.Yx.get().getPresentingPlayerType()===2}; g.Q.OF=function(d,q){function T(){R0(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(q)||Jm("Composite stopRendering: Unexpected layout exit reason",this.slot,d,{layoutExitReason:q}))} function Y(){this.I6&&xK(this,this.I6,q);if(this.vH()&&(!R0(this)||q!=="abandoned")){T.call(this);var U;var b=((U=this.Xw.get().J.getVideoData())==null?void 0:U.clientPlaybackNonce)||"";U=kx(this.Xw.get(),1).clientPlaybackNonce;this.Gq.get().finishSegmentByCpn(b,U,fk(q,this.T2))}ZGg(this,q)} function e(){if(this.I6){var U=this.I6;U.Ft().currentState<2&&U.OF(U.e5(),q);U=R0(this)&&q==="abandoned";this.vH()&&!U&&(T.call(this),this.Gq.get().finishSegmentByCpn(this.I6.e5().layoutId,kx(this.Xw.get(),1).clientPlaybackNonce,fk(q,this.T2)))}} X$(d.layoutId===this.e5().layoutId,"StopRendering for wrong layout")&&bW(this.I9.U,q)&&(this.OI()?Y.call(this):e.call(this))}; g.Q.i$=function(d,q,T){bu.prototype.i$.call(this,d,q,T);q.layoutId===this.e5().layoutId&&this.Yx.get().removeListener(this)}; g.Q.dc=function(){return kx(this.Xw.get(),1).clientPlaybackNonce}; g.Q.xQ=function(d,q,T){pk1(Object.assign({},XF(this),{cpn:d}));if(!R0(this)||T!==5)if(this.OI()){if(this.I6&&this.I6.e5().layoutId!==q){var Y=this.I6.e5().layoutId;Y!==d&&Jm("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:Y,exitingCpn:d,enteringCpn:q});d=z5(T,this.T2);xK(this,this.I6,d)}else this.I6&&Jm("onClipExited: active layout is entering again");q===this.dc()&&noI(this,T)}else{if(this.I6&&this.I6.e5().layoutId===d)OG_(this,this.I6,T);else{var e;Jm("Exiting cpn does not match active cpn", this.slot,(Y=this.I6)==null?void 0:Y.e5(),{exitingCpn:d,transitionReason:T,activeCpn:(e=this.I6)==null?void 0:e.e5().layoutId})}q===this.dc()&&(this.I6!==void 0&&(Jm("active adapter is not properly exited",this.slot,this.layout,{activeLayout:b2(this.I6.e5())}),OG_(this,this.I6,T)),noI(this,T),ZGg(this,this.I9.U.G))}}; g.Q.OI=function(){return WA(this.T2.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.Q.startRendering=function(d){this.EC(d)&&(d=this.I9,X$(d.G===1,"tickStartRendering: state is not initial"),d.G=2,this.R1())}; g.Q.De=function(d){AiI(Object.assign({},XF(this),{cpn:d}));var q=this.gU.find(function(T){return T.e5().layoutId===d}); q?(this.I9.G!==2&&(sVg(this.bC,this.slot.slotId),X$(this.I9.G===2,"Expect started"),this.callback.AA(this.slot,this.layout)),this.j2(q),HA(this.bu,this.slot,q.e5())):rmn(this,d)}; g.Q.Za=function(d,q){Quf(this,d,q);var T=this.WA();T?MC7(T,d,q)&&tC1(this,"skipped"):BsN(this,"onSkipRequested")}; g.Q.wl=function(d,q){var T;a:{if(T=this.WA()){if(cm7(this),EoH(T,d,q)&&(d=juj(this,T,d,q),d!==void 0)){T={Nm:T,Ycw:this.gU[d]};break a}}else BsN(this,"SkipWithAdPodSkip");T=void 0}if(d=T)T=d.Nm,q=d.Ycw,d=T.e5().layoutId,this.OI()?xK(this,T,"skipped"):T.OF(T.e5(),"skipped"),T=q.e5().layoutId,this.Gq.get().finishSegmentByCpn(d,T,fk("skipped",this.T2))}; g.Q.bR=function(){Jm("Not used in html5_ssap_fix_layout_exit")}; g.Q.mf=function(d){var q;(q=this.WA())==null||q.mf(d)}; g.Q.pO=function(){Jm("Not used in html5_ssap_fix_layout_exit")}; g.Q.rp=function(d,q,T){var Y;if(((Y=this.WA())==null?void 0:Y.e5().layoutId)!==q.layoutId)return void Jm("requestToExitSubLayout: wrong layout");tC1(this,T)};g.M(yj,g.W);g.Q=yj.prototype;g.Q.Sv=function(){return this.NC.Sv()}; g.Q.e5=function(){return this.NC.e5()}; g.Q.init=function(){var d=l7(this.e5().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");d&&(d.current=this);this.u4()}; g.Q.u4=function(){this.NC.init()}; g.Q.release=function(){var d=l7(this.e5().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");d&&(d.current=null);this.jp()}; g.Q.jp=function(){this.NC.release()}; g.Q.u8=function(){this.NC.u8()}; g.Q.Ev=function(){this.NC.Ev()}; g.Q.Za=function(d,q){Jm("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Sv(),this.e5(),{requestingSlot:d,requestingLayout:q})}; g.Q.startRendering=function(d){d.layoutId!==this.e5().layoutId?this.callback.Cz(this.Sv(),d,new m5("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.e5().layoutId+("and LayoutType: "+this.e5().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Yx.get().addListener(this),bG(this.cF(),this),vZn(this.yU.get()),edj(this.T2.get())||WeX(this.Yx.get()),this.NC.startRendering(d))}; g.Q.OF=function(d,q){this.Oq=!0;this.NC.OF(d,q);this.Yx.get().J.xI();du_(this.UF.get(),{});d=ey(this.Yx.get(),1);d.isPaused()&&!g.I(d,2)&&this.Yx.get().playVideo();this.Yx.get().removeListener(this);this.Oq&&this.NC.wD()}; g.Q.AA=function(d,q){this.NC.AA(d,q)}; g.Q.i$=function(d,q,T){q.layoutId===this.e5().layoutId&&(this.Oq=!1,XX(this.cF(),this));this.NC.i$(d,q,T);q.layoutId===this.e5().layoutId&&$K(this.yU.get())}; g.Q.e0=function(d){this.NC.e0(d)}; g.Q.mf=function(d){if(d.state.isError()){var q,T;this.pO((q=d.state.eF)==null?void 0:q.errorCode,new m5("There was a player error during this media layout.",{playerErrorCode:(T=d.state.eF)==null?void 0:T.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.NC.mf(d)}; g.Q.pO=function(d,q,T){this.NC.He(d,q,T)}; g.Q.onFullscreenToggled=function(d){this.NC.onFullscreenToggled(d)}; g.Q.bS=function(d){this.NC.bS(d)}; g.Q.P3=function(d){this.NC.P3(d)}; g.Q.onVolumeChange=function(){this.NC.onVolumeChange()}; g.Q.n8=function(){}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.qp=function(){}; g.Q.EN=function(){}; g.Q.L8=function(){};g.Q=hP.prototype;g.Q.Sv=function(){return this.slot}; g.Q.e5=function(){return this.layout}; g.Q.init=function(){this.eT.get().addListener(this);this.Yx.get().addListener(this);var d=l7(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var q=l7(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.T){var T=this.eT.get().gp.slice(-1)[0];T!==void 0&&(d=T.startSecs*1E3,q=(T.startSecs+T.sS)*1E3)}this.pM(d,q);var Y;T=(Y=this.Xw.get().h6)==null?void 0:Y.clientPlaybackNonce;Y=this.layout.HF.adClientDataEntry;Hn(this.Hv.get(),{daiStateTrigger:{filledAdsDurationMs:q-d,contentCpn:T, adClientData:Y}});var e=this.eT.get();e=LV1(e.j,d,q);e!==null&&(Hn(this.Hv.get(),{daiStateTrigger:{filledAdsDurationMs:e-d,contentCpn:T,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:Y}}),this.Gq.get().tI(e,q))}; g.Q.release=function(){this.jp();this.eT.get().removeListener(this);this.Yx.get().removeListener(this)}; g.Q.startRendering=function(){this.HV();this.callback.AA(this.slot,this.layout)}; g.Q.OF=function(d,q){this.jD(q);this.driftRecoveryMs!==null&&(Qj(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(kc1(this)-l7(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Yx.get().J.Jt()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.i$(this.slot,this.layout,q)}; g.Q.b6=function(){return!1}; g.Q.KT=function(d){var q=l7(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),T=l7(this.layout.clientMetadata,"metadata_type_layout_exit_ms");d*=1E3;if(q<=d&&d0&&ME(this.G(),q)}; g.Q.dU=function(d){this.S.delete(d.slotId);for(var q=[],T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next()){Y=Y.value;var e=Y.trigger;e instanceof RF&&e.triggeringSlotId===d.slotId&&q.push(Y)}q.length>0&&ME(this.G(),q)}; g.Q.s$=function(d){for(var q=[],T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next()){Y=Y.value;var e=Y.trigger;e instanceof e5&&e.slotType===d.slotType&&e.G!==d.slotId&&q.push(Y)}q.length>0&&ME(this.G(),q)}; g.Q.bv=function(d){this.j.add(d.slotId);for(var q=[],T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next())Y=Y.value,Y.trigger instanceof sO&&d.slotId===Y.trigger.triggeringSlotId&&q.push(Y);q.length>0&&ME(this.G(),q)}; g.Q.a6=function(d){this.j.delete(d.slotId);this.T.add(d.slotId);for(var q=[],T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,Y.trigger instanceof $b)d.slotId===Y.trigger.triggeringSlotId&&q.push(Y);else if(Y.trigger instanceof I0){var e=Y.trigger;d.slotId===e.slotId&&this.U.has(e.triggeringLayoutId)&&q.push(Y)}q.length>0&&ME(this.G(),q)}; g.Q.Hr=function(d){for(var q=[],T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next())Y=Y.value,Y.trigger instanceof gG&&d.slotId===Y.trigger.triggeringSlotId&&q.push(Y);q.length>0&&ME(this.G(),q)}; g.Q.uS=function(d){for(var q=[],T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next())Y=Y.value,Y.trigger instanceof FY&&d.slotId===Y.trigger.triggeringSlotId&&q.push(Y);q.length>0&&ME(this.G(),q)}; g.Q.Cj=function(d,q){this.X.add(q.layoutId)}; g.Q.Uc=function(d,q){this.X.delete(q.layoutId)}; g.Q.AA=function(d,q){this.U.add(q.layoutId);for(var T=[],Y=g.E(this.YB.values()),e=Y.next();!e.done;e=Y.next())if(e=e.value,e.trigger instanceof ml)q.layoutId===e.trigger.triggeringLayoutId&&T.push(e);else if(e.trigger instanceof Yb){var U=e.trigger;d.slotType===U.slotType&&q.layoutType===U.layoutType&&q.layoutId!==U.G&&T.push(e)}else e.trigger instanceof I0&&(U=e.trigger,q.layoutId===U.triggeringLayoutId&&this.T.has(U.slotId)&&T.push(e));T.length>0&&ME(this.G(),T)}; g.Q.i$=function(d,q,T){this.U.delete(q.layoutId);d=[];for(var Y=g.E(this.YB.values()),e=Y.next();!e.done;e=Y.next())if(e=e.value,e.trigger instanceof lu&&q.layoutId===e.trigger.triggeringLayoutId&&d.push(e),e.trigger instanceof Sd){var U=e.trigger;q.layoutId===U.triggeringLayoutId&&U.G.includes(T)&&d.push(e)}d.length>0&&ME(this.G(),d)}; g.Q.qp=function(){}; g.Q.ej=function(){this.T.clear()}; g.Q.Zt=function(){};g.M(eN,g.W);eN.prototype.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(q instanceof zu))throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in CloseRequestedTriggerAdapter");this.YB.set(q.triggerId,new aF(d,q,T,Y))}; eN.prototype.kZ=function(d){this.YB.delete(d.triggerId)};g.M(bq,g.W);bq.prototype.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(q instanceof fd||q instanceof bV))throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.YB.set(q.triggerId,new aF(d,q,T,Y))}; bq.prototype.kZ=function(d){this.YB.delete(d.triggerId)}; bq.prototype.ej=function(d){for(var q=[],T=q.push,Y=T.apply,e=[],U=g.E(this.YB.values()),b=U.next();!b.done;b=U.next())b=b.value,b.trigger instanceof fd&&b.trigger.oK===d&&e.push(b);Y.call(T,q,g.RQ(e));T=q.push;Y=T.apply;e=[];U=g.E(this.YB.values());for(b=U.next();!b.done;b=U.next())b=b.value,b.trigger instanceof bV&&b.trigger.G!==d&&e.push(b);Y.call(T,q,g.RQ(e));q.length&&ME(this.G(),q)}; bq.prototype.Zt=function(d){for(var q=[],T=q.push,Y=T.apply,e=[],U=g.E(this.YB.values()),b=U.next();!b.done;b=U.next()){b=b.value;var J=b.trigger;J instanceof bV&&J.G===d&&e.push(b)}Y.call(T,q,g.RQ(e));q.length&&ME(this.G(),q)};g.M(X4,g.W);g.Q=X4.prototype;g.Q.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+q.triggerId;if(q instanceof qm)Voj(this,d,q,T,Y,e,q.G.start,q.G.end,q.oK,q.visible);else if(q instanceof iu)Voj(this,d,q,T,Y,e,0x7ffffffffffff,0x8000000000000,q.oK,q.visible);else throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in CueRangeTriggerAdapter");}; g.Q.kZ=function(d){var q=this.YB.get(d.triggerId);q&&this.l$.get().removeCueRange(q.cueRangeId);this.YB.delete(d.triggerId)}; g.Q.onCueRangeEnter=function(d){var q=d_n(this,d);if(q&&(q=this.YB.get(q)))if(g.I(ey(this.Yx.get()),32))this.G.add(q.cueRangeId);else{var T=q==null?void 0:q.dS.trigger;if(T instanceof qm||T instanceof iu){if(Fg(this.context.T2.get())){var Y=q.dS.slot,e=q.dS.layout,U={};this.context.cf.oN("cre",(U.ca=q.dS.category,U.tt=T.triggerType,U.st=Y.slotType,U.lt=e==null?void 0:e.layoutType,U.cid=d,U))}ME(this.U(),[q.dS])}}}; g.Q.onCueRangeExit=function(d){(d=d_n(this,d))&&(d=this.YB.get(d))&&this.G.delete(d.cueRangeId)}; g.Q.mf=function(d){if($o(d,16)<0){d=g.E(this.G);for(var q=d.next();!q.done;q=d.next())this.onCueRangeEnter(q.value,!0);this.G.clear()}}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.AA=function(){}; g.Q.i$=function(){}; g.Q.qp=function(){}; g.Q.e0=function(){}; g.Q.onFullscreenToggled=function(){}; g.Q.bS=function(){}; g.Q.n8=function(){}; g.Q.P3=function(){}; g.Q.onVolumeChange=function(){}; g.Q.EN=function(){}; g.Q.L8=function(){};g.M(JH,g.W);g.Q=JH.prototype; g.Q.BR=function(d,q,T,Y){if(this.U.has(q.triggerId)||this.j.has(q.triggerId))throw new S("Tried to re-register the trigger.");d=new aF(d,q,T,Y);if(d.trigger instanceof dG)this.U.set(d.trigger.triggerId,d);else if(d.trigger instanceof vn)this.j.set(d.trigger.triggerId,d);else throw new S("Incorrect TriggerType: Tried to register trigger of type "+d.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.U.has(d.trigger.triggerId)&&d.slot.slotId===this.G&&ME(this.T(),[d])}; g.Q.kZ=function(d){this.U.delete(d.triggerId);this.j.delete(d.triggerId)}; g.Q.xt=function(d){d=d.slotId;if(this.G!==d){var q=[];this.G!=null&&q.push.apply(q,g.RQ(qHX(this.j,this.G)));d!=null&&q.push.apply(q,g.RQ(qHX(this.U,d)));this.G=d;q.length&&ME(this.T(),q)}}; g.Q.xQ=function(){}; g.Q.De=function(){};g.M(sT,g.W);g.Q=sT.prototype;g.Q.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(q instanceof UO))throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.YB.set(q.triggerId,new aF(d,q,T,Y))}; g.Q.kZ=function(d){this.YB.delete(d.triggerId)}; g.Q.AA=function(){}; g.Q.i$=function(){}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.qp=function(){};g.M($C,g.W);g.Q=$C.prototype;g.Q.qp=function(d,q){for(var T=[],Y=g.E(this.YB.values()),e=Y.next();!e.done;e=Y.next()){e=e.value;var U=e.trigger;U.opportunityType===d&&(U.associatedSlotId&&U.associatedSlotId!==q||T.push(e))}T.length&&ME(this.G(),T)}; g.Q.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(q instanceof gzn))throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in OpportunityEventTriggerAdapter");this.YB.set(q.triggerId,new aF(d,q,T,Y))}; g.Q.kZ=function(d){this.YB.delete(d.triggerId)}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.AA=function(){}; g.Q.i$=function(){};g.M(gg,g.W);g.Q=gg.prototype;g.Q.BR=function(d,q,T,Y){d=new aF(d,q,T,Y);if(q instanceof o0||q instanceof T8||q instanceof Vj||q instanceof XY||q instanceof ghg){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");this.YB.set(q.triggerId,d)}else throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in PrefetchTriggerAdapter");}; g.Q.kZ=function(d){this.YB.delete(d.triggerId)}; g.Q.Ec=function(d){var q=d.slotFulfillmentTriggers.find(function(T){return T instanceof o0}); q&&(F4(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",q.breakDurationMs,new Set([d.slotId]),!0),cn(this.Hv.get(),"ads_css","sid."+d.slotId+";bd."+q.breakDurationMs))}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.AA=function(){}; g.Q.i$=function(){}; g.Q.qp=function(){}; g.Q.b6=function(d){var q=this;if(!this.G)return Jm("Unexpected cue break before fetch instructions are available"),!1;this.U&&this.U.stop();this.S&&g.zh(this.S);var T=U__(this,d);if(!T){var Y=YHH(this),e=this.L!==void 0&&Date.now()<=this.L+1E4;cn(this.Hv.get(),"ads_ncfs","cid."+d.identifier+";cd."+d.sS.toFixed(3)+";ccs."+e+";cfa."+this.T+";bdc."+Y.length+";"+Y.slice(0,6).map(function(U){return";bd."+U}).join("")); return e?(wN(this.qM,this.G,d),!0):!1}(Y=l7(T.slot.clientMetadata,"metadata_type_triggering_cue_point"))?Y.current=d:Jm("Expected triggering cue point ref to be available",T.slot);(new g.f9(function(){var U=T.trigger,b=T.slot;F4(q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",U.breakDurationMs,new Set,!0);F4(q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",U.breakDurationMs,new Set,!1);for(var J=0,F=g.E(q.YB.values()),N=F.next();!N.done;N=F.next()){N=N.value;var R=N.trigger; N.slot.slotId===b.slotId&&(q.YB.delete(R.triggerId),J++)}cn(q.Hv.get(),"ads_csf","sid."+b.slotId+";bd."+U.breakDurationMs+";dt."+J)},10)).start(); return!0}; g.Q.KT=function(){}; g.Q.ej=function(d){var q=this;this.T=!1;this.L=Date.now();if(this.G&&this.G.contentCpn!==d)Jm("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:d,fetchInstructionsCpn:this.G.contentCpn}),N7(this);else{this.j=new g.f9(function(){if(q.T)delete q.j;else{var Y=q.Yx.get().getGetAdBreakContext(),e;if(Number(Y==null?void 0:(e=Y.livePlaybackPosition)==null?void 0:e.utcTimeMillis)>0)delete q.j,eoX(q);else{var U;(U=q.j)==null||U.start()}}},200); var T;(T=this.j)==null||T.start()}}; g.Q.Zt=function(d){this.G&&this.G.contentCpn!==d&&Jm("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:d,fetchInstructionsCpn:this.G.contentCpn},!0);N7(this)}; g.Q.fg=function(d){var q=this;if(this.G)Jm("Unexpected multiple fetch instructions for the current content");else{this.G=d;d=X4g(d);this.U=new g.f9(function(){eoX(q)},d?d:6E5); this.U.start();this.S=new g.f9(function(){q.G&&(q.U&&(q.U.stop(),q.U.start()),TJ7(q,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},bm1(this.G)); d=this.Yx.get().getCurrentTimeSec(1,!1);for(var T=g.E(this.eT.get().gp),Y=T.next();!Y.done;Y=T.next())Y=Y.value,cn(this.Hv.get(),"nocache","ct."+Date.now()+";cmt."+d+";d."+Y.sS.toFixed(3)+";tw."+(Y.startSecs-d)+";cid."+Y.identifier+";")}}; g.Q.ir=function(){g.W.prototype.ir.call(this);N7(this)};g.M(Rm,g.W);g.Q=Rm.prototype;g.Q.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(q instanceof j5))throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.YB.set(q.triggerId,new aF(d,q,T,Y));d=this.G.has(q.triggeringLayoutId)?this.G.get(q.triggeringLayoutId):new Set;d.add(q);this.G.set(q.triggeringLayoutId,d)}; g.Q.kZ=function(d){this.YB.delete(d.triggerId);if(!(d instanceof j5))throw new S("Incorrect TriggerType: Tried to unregister trigger of type "+d.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var q=this.U.get(d.triggerId);q&&(q.dispose(),this.U.delete(d.triggerId));if(q=this.G.get(d.triggeringLayoutId))q.delete(d),q.size===0&&this.G.delete(d.triggeringLayoutId)}; g.Q.Ec=function(){}; g.Q.dU=function(){}; g.Q.s$=function(){}; g.Q.bv=function(){}; g.Q.a6=function(){}; g.Q.Hr=function(){}; g.Q.uS=function(){}; g.Q.Cj=function(){}; g.Q.Uc=function(){}; g.Q.qp=function(){}; g.Q.AA=function(d,q){var T=this;if(this.G.has(q.layoutId)){d=this.G.get(q.layoutId);d=g.E(d);var Y=d.next();for(q={};!Y.done;q={vp:void 0},Y=d.next())q.vp=Y.value,Y=new g.f9(function(e){return function(){var U=T.YB.get(e.vp.triggerId);ME(T.j(),[U])}}(q),q.vp.durationMs),Y.start(),this.U.set(q.vp.triggerId,Y)}}; g.Q.i$=function(){};g.M(xC,g.W);xC.prototype.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(q instanceof DD))throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in VideoTransitionTriggerAdapter.");this.YB.set(q.triggerId,new aF(d,q,T,Y))}; xC.prototype.kZ=function(d){this.YB.delete(d.triggerId)};QI.prototype.Px=function(d){return d.kind==="AD_PLACEMENT_KIND_START"};g.M(ET,g.W);g.Q=ET.prototype;g.Q.logEvent=function(d){this.yY(d)}; g.Q.fq=function(d,q,T){this.yY(d,void 0,void 0,void 0,q,void 0,void 0,void 0,q.adSlotLoggingData,void 0,void 0,T)}; g.Q.CA=function(d,q,T,Y){this.yY(d,void 0,void 0,void 0,q,T?T:void 0,void 0,void 0,q.adSlotLoggingData,T?T.adLayoutLoggingData:void 0,void 0,Y)}; g.Q.bd=function(d,q,T,Y){WA(this.T2.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+d,"trigger:",T,"slot:",q,"layout:",Y);qE(this.G.get())&&this.yY(d,void 0,void 0,void 0,q,Y?Y:void 0,void 0,T,q.adSlotLoggingData,Y?Y.adLayoutLoggingData:void 0)}; g.Q.o1=function(d,q,T,Y,e){this.yY(d,q,T,Y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)}; g.Q.ys=function(d,q,T,Y){this.yY("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,T,Y,void 0,void 0,T.adSlotLoggingData,Y?Y.adLayoutLoggingData:void 0,{errorType:d,errorMessage:q})}; g.Q.yY=function(d,q,T,Y,e,U,b,J,F,N,R,x){var y=this;x=x===void 0?0:x;WA(this.T2.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+d,"slot:",e,"layout:",U,"ping:",b,"Opportunity:",{opportunityType:q,associatedSlotId:T,MED:Y,pZD:J,adSlotLoggingData:F,adLayoutLoggingData:N});try{var h=function(){if(!y.T2.get().J.C().N("html5_disable_client_tmp_logs")&&d!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){d||Jm("Empty PACF event type",e,U);var H=qE(y.G.get()),a={eventType:d,eventOrder:++y.eventCount},p={}; e&&(p.slotData=dp(H,e));U&&(p.layoutData=D96(H,U));b&&(p.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:b.G.serializedAdPingMetadata,pingIndex:b.index});J&&(p.triggerData=Vq(J.trigger,J.category));q&&(p.opportunityData=wi2(H,q,T,Y));H={organicPlaybackContext:{contentCpn:kx(y.Xw.get(),1).clientPlaybackNonce}};H.organicPlaybackContext.isLivePlayback=kx(y.Xw.get(),1).aN;var t;H.organicPlaybackContext.isMdxPlayback=(t=kx(y.Xw.get(),1))==null?void 0:t.isMdxPlayback; var n;if((n=kx(y.Xw.get(),1))==null?0:n.daiEnabled)H.organicPlaybackContext.isDaiContent=!0;var K;if(t=(K=kx(y.Xw.get(),2))==null?void 0:K.clientPlaybackNonce)H.adVideoPlaybackContext={adVideoCpn:t};H&&(p.externalContext=H);a.adClientData=p;F&&(a.serializedSlotAdServingData=F.serializedSlotAdServingDataEntry);N&&(a.serializedAdServingData=N.serializedAdServingDataEntry);R&&(a.errorInfo=R);g.Ta("adsClientStateChange",{adsClientEvent:a})}}; x&&x>0?g.zy(g.IY(),function(){return h()},x):h()}catch(H){WA(this.T2.get(),"html5_log_pacf_logging_errors")&&g.zy(g.IY(),function(){Jm(H instanceof Error?H:String(H),e,U,{pacf_message:"exception during pacf logging"})})}};var y0_=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.M(jN,ET);g.Q=jN.prototype; g.Q.fq=function(d,q,T){ET.prototype.fq.call(this,d,q,T);Fg(this.T2.get())&&(T={},this.context.cf.oN("pacf",(T.et=d,T.st=q.slotType,T.si=q.slotId,T)))}; g.Q.CA=function(d,q,T,Y){var e=y0_.has(d);ET.prototype.CA.call(this,d,q,T,Y);Fg(this.T2.get(),e)&&(Y={},this.context.cf.oN("pacf",(Y.et=d,Y.st=q.slotType,Y.si=q.slotId,Y.lt=T==null?void 0:T.layoutType,Y.li=T==null?void 0:T.layoutId,Y.p_ac=T==null?void 0:T.layoutId,Y)))}; g.Q.o1=function(d,q,T,Y,e){ET.prototype.o1.call(this,d,q,T,Y,e);Fg(this.T2.get())&&(T={},this.context.cf.oN("pacf",(T.et=d,T.ot=q,T.ss=Y==null?void 0:Y.length,T)))}; g.Q.bd=function(d,q,T,Y){ET.prototype.bd.call(this,d,q,T,Y);if(Fg(this.T2.get())){var e={};this.context.cf.oN("pacf",(e.et=d,e.tt=T.trigger.triggerType,e.tc=T.category,e.st=q.slotType,e.si=q.slotId,e.lt=Y==null?void 0:Y.layoutType,e.li=Y==null?void 0:Y.layoutId,e.p_ac=Y==null?void 0:Y.layoutId,e))}}; g.Q.ys=function(d,q,T,Y){ET.prototype.ys.call(this,d,q,T,Y);if(Fg(this.T2.get(),!0)){var e={};this.context.cf.oN("perror",(e.ert=d,e.erm=q,e.st=T.slotType,e.si=T.slotId,e.lt=Y==null?void 0:Y.layoutType,e.li=Y==null?void 0:Y.layoutId,e.p_ac=Y==null?void 0:Y.layoutId,e))}}; g.Q.yY=function(d,q,T,Y,e,U,b,J,F,N,R){var x=this.T2.get();g.ho(x.J.C())?(x=this.T2.get(),x=g.Yv(x.J.C().experiments,"H5_async_logging_delay_ms")):x=void 0;ET.prototype.yY.call(this,d,q,T,Y,e,U,b,J,F,N,R,x)};am.prototype.clear=function(){this.G.clear()};AH.prototype.state=function(){return this.G==="fulfilled"?{state:"fulfilled",value:this.result}:this.G==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; AH.prototype.T=function(d){Z4(d)||p0(d)?BN(OT(d),this.T.bind(this),this.reject.bind(this)):(this.G="fulfilled",this.result=d,tH(this))}; AH.prototype.reject=function(d){this.G="rejected";this.error=d;tH(this)}; var p0=e0(function(d){return OB7(d)?d instanceof AH:!1});Object.freeze({HlU:function(d){var q=WN(d);return BN(PN(q,function(T){return q[T].G==="rejected"}),function(T){return Number.isNaN(T)?q.map(function(Y){return Y.state().value}):q[T]})}, ugg:function(d){var q=WN(d);return BN(PN(q),function(){return q.map(function(T){return T.state()})})}, dIr:function(d){var q=WN(d);return BN(PN(q,function(T){return q[T].G==="fulfilled"}),function(T){return Number.isNaN(T)?n0(new AggregateError(q.map(function(Y){return Y.state().reason}))):q[T].state().value})}, Jvv:function(d){var q=WN(d);return BN(PN(q,function(){return!0}),function(T){return q[T]})}});var C0=window.RN2||"zh-CN";f0.prototype.Ol=function(d){this.client=d}; f0.prototype.G=function(){this.clear();this.csn=g.Q0()}; f0.prototype.clear=function(){this.j.clear();this.U.clear();this.T.clear();this.csn=null};iq.prototype.Ol=function(d){g.iF(zD().Ol).bind(zD())(d)}; iq.prototype.clear=function(){g.iF(zD().clear).bind(zD())()};g.Q=Im.prototype;g.Q.Ol=function(d){this.client=d}; g.Q.uo=function(d,q){var T=this;q=q===void 0?{}:q;g.iF(function(){var Y,e,U,b=((Y=g.D(d==null?void 0:d.commandMetadata,g.AX))==null?void 0:Y.rootVe)||((e=g.D(d==null?void 0:d.commandMetadata,GP7))==null?void 0:(U=e.screenVisualElement)==null?void 0:U.uiType);if(b){Y=g.D(d==null?void 0:d.commandMetadata,dQR);if(Y==null?0:Y.parentTrackingParams){var J=g.y0(Y.parentTrackingParams);if(Y.parentCsn)var F=Y.parentCsn}else q.clickedVisualElement?J=q.clickedVisualElement:d.clickTrackingParams&&(J=g.y0(d.clickTrackingParams)); a:{Y=g.D(d,g.EB);e=g.D(d,IGI);if(Y){if(e=p4Y(Y,"VIDEO")){Y={token:e,videoId:Y.videoId};break a}}else if(e&&(Y=p4Y(e,"PLAYLIST"))){Y={token:Y,playlistId:e.playlistId};break a}Y=void 0}q=Object.assign({},{cttAuthInfo:Y,parentCsn:F},q);if(g.RD("expectation_logging")){var N;q.loggingExpectations=((N=g.D(d==null?void 0:d.commandMetadata,GP7))==null?void 0:N.loggingExpectations)||void 0}SN(T,b,J,q)}else g.OL(new g.CW("Error: Trying to create a new screen without a rootVeType",d))})()}; g.Q.clickCommand=function(d,q,T){d=d.clickTrackingParams;T=T===void 0?0:T;d?(T=g.Q0(T===void 0?0:T))?(md(this.client,T,g.y0(d),q),q=!0):q=!1:q=!1;return q}; g.Q.stateChanged=function(d,q,T){this.visualElementStateChanged(g.y0(d),q,T===void 0?0:T)}; g.Q.visualElementStateChanged=function(d,q,T){T=T===void 0?0:T;T===0&&this.U.has(T)?this.B.push([d,q]):BJN(this,d,q,T)};VI.prototype.fetch=function(d,q,T){var Y=this,e=L5j(d,q,T);return new Promise(function(U,b){function J(){if(T==null?0:T.Fq)try{var N=Y.handleResponse(d,e.status,e.response,T);U(N)}catch(R){b(R)}else U(Y.handleResponse(d,e.status,e.response,T))} e.onerror=J;e.onload=J;var F;e.send((F=q.body)!=null?F:null)})}; VI.prototype.handleResponse=function(d,q,T,Y){T=T.replace(")]}'","");try{var e=JSON.parse(T)}catch(U){g.OL(new g.CW("JSON parsing failed after XHR fetch",d,q,T));if((Y==null?0:Y.Fq)&&T)throw new g.wc(1,"JSON parsing failed after XHR fetch");e={}}q!==200&&(g.OL(new g.CW("XHR API fetch failed",d,q,T)),e=Object.assign({},e,{errorMetadata:{status:q}}));return e};dj.getInstance=function(){var d=g.qx("ytglobal.storage_");d||(d=new dj,g.Vf("ytglobal.storage_",d));return d}; dj.prototype.estimate=function(){var d,q,T;return g.G(function(Y){d=navigator;return((q=d.storage)==null?0:q.estimate)?Y.return(d.storage.estimate()):((T=d.webkitTemporaryStorage)==null?0:T.queryUsageAndQuota)?Y.return(ke_()):Y.return()})}; g.Vf("ytglobal.storageClass_",dj);dO.prototype.EP=function(d){this.handleError(d)}; dO.prototype.logEvent=function(d,q){switch(d){case "IDB_DATA_CORRUPTED":g.RD("idb_data_corrupted_killswitch")||this.G("idbDataCorrupted",q);break;case "IDB_UNEXPECTEDLY_CLOSED":this.G("idbUnexpectedlyClosed",q);break;case "IS_SUPPORTED_COMPLETED":g.RD("idb_is_supported_completed_killswitch")||this.G("idbIsSupportedCompleted",q);break;case "QUOTA_EXCEEDED":W5X(this,q);break;case "TRANSACTION_ENDED":this.j&&Math.random()<=.1&&this.G("idbTransactionEnded",q);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":d= Object.assign({},q,{hasWindowUnloaded:this.U}),this.G("idbTransactionAborted",d)}};var vy={},fJD=g.mY("yt-player-local-media",{pw:(vy.index={JC:2},vy.media={JC:2},vy.captions={JC:5},vy),shared:!1,upgrade:function(d,q){q(2)&&(g.jF(d,"index"),g.jF(d,"media"));q(5)&&g.jF(d,"captions");q(6)&&(aJ(d,"metadata"),aJ(d,"playerdata"))}, version:5});var hkc={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},oS;a:{var VS=g.k9();VS=VS.toLowerCase();if(g.rb(VS,"android")){var HpE=VS.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(HpE){var Qcl=parseFloat(HpE[1]);if(Qcl<100){oS=Qcl;break a}}var M0n=VS.match("("+Object.keys(hkc).join("|")+")");oS=M0n?hkc[M0n[0]]:0}else oS=void 0}var eZ=oS,Yl=eZ>=0;var IuQ=window;var C7n=t4(function(){var d,q;return(q=(d=window).matchMedia)==null?void 0:q.call(d,"(prefers-reduced-motion: reduce)").matches});var TG;g.qe=new QK;TG=0;var QU=I3I()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.DP?!0:!1;var Uo={hE:function(d,q){var T=d[0];d[0]=d[q%d[X[1]]];d[q%d[X[1]]]=T}, Ei:function(d,q){d[X[35]](0,q)}, Ra:function(d){d[X[80]]()}};var WlN={vLZ:"adunit",lcO:"detailpage",IcF:"editpage",hLv:"embedded",cpf:"leanback",U0v:"previewpage",jbx:"profilepage",mK:"unplugged",Gp2:"playlistoverview",Kvr:"sponsorshipsoffer",Aof:"shortspage",w3k:"handlesclaiming",pRf:"immersivelivepage",wfx:"creatormusic",rpf:"immersivelivepreviewpage",str:"admintoolyurt",x0U:"shortsaudiopivot",Ox2:"consumption"};var DBH={t0Z:0,Qgk:1,M0w:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"};var vvY=2592E3;var d$,c0l,LA;d$={};g.Eo=(d$.STOP_EVENT_PROPAGATION="html5-stop-propagation",d$.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",d$.IV_DRAWER_OPEN="ytp-iv-drawer-open",d$.MAIN_VIDEO="html5-main-video",d$.VIDEO_CONTAINER="html5-video-container",d$.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",d$.HOUSE_BRAND="house-brand",d$);c0l={};LA=(c0l.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",c0l.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",c0l);var Xp1={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var guQ={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},Fan={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"},eXg={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var sxI={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.AF.prototype.getLanguageInfo=function(){return this.DQ}; g.AF.prototype.getXtags=function(){if(!this.xtags){var d=this.id.split(";");d.length>1&&(this.xtags=d[1])}return this.xtags}; g.AF.prototype.toString=function(){return this.DQ.name}; g.AF.prototype.getLanguageInfo=g.AF.prototype.getLanguageInfo;pY.prototype.equals=function(d){return this.U===d.U&&this.G===d.G&&this.j===d.j&&this.reason===d.reason&&(!Oo||this.Vv===d.Vv)}; pY.prototype.isLocked=function(){return this.j&&!!this.U&&this.U===this.G}; pY.prototype.compose=function(d){if(d.j&&nY(d))return xp;if(d.j||nY(this))return d;if(this.j||nY(d))return this;var q=this.U&&d.U?Math.max(this.U,d.U):this.U||d.U,T=this.G&&d.G?Math.min(this.G,d.G):this.G||d.G;q=Math.min(q,T);var Y=0;Oo&&(Y=this.Vv!==0&&d.Vv!==0?Math.min(this.Vv,d.Vv):this.Vv===0?d.Vv:this.Vv);return Oo&&q===this.U&&T===this.G&&Y===this.Vv||!Oo&&q===this.U&&T===this.G?this:Oo?new pY(q,T,!1,T===this.G&&Y===this.Vv?this.reason:d.reason,Y):new pY(q,T,!1,T===this.G?this.reason:d.reason)}; pY.prototype.T=function(d){return!d.video||Oo&&this.Vv!==0&&this.Vv=0}; g.Q.As=function(){var d=this.segments[this.segments.length-1];return d?d.endTime:NaN}; g.Q.BG=function(){return this.segments[0].startTime}; g.Q.Od=function(){return this.segments.length}; g.Q.n3=function(){return 0}; g.Q.yg=function(d){return(d=this.S_(d))?d.sD:-1}; g.Q.fO=function(d){return(d=this.nS(d))?d.sourceURL:""}; g.Q.getStartTime=function(d){return(d=this.nS(d))?d.startTime:0}; g.Q.Zq=function(d){return this.getStartTime(d)+this.getDuration(d)}; g.Q.oR=dI(1);g.Q.isLoaded=function(){return this.segments.length>0}; g.Q.nS=function(d){if(this.G&&this.G.sD===d)return this.G;d=g.Dn(this.segments,new d0(d,0,0,0,""),function(q,T){return q.sD-T.sD}); return this.G=d>=0?this.segments[d]:null}; g.Q.S_=function(d){if(this.G&&this.G.startTime<=d&&d=0?this.segments[d]:this.segments[Math.max(0,-d-2)]}; g.Q.append=function(d){if(d.length)if(d=g.rL(d),this.segments.length){var q=this.segments.length?g.yN(this.segments).endTime:0,T=d[0].sD-this.nC();T>1&&jQ7(this.segments);for(T=T>0?0:-T+1;Td.sD&&this.index.Db()<=d.sD+1}; g.Q.update=function(d,q,T){this.index.append(d);Do2(this.index,T);d=this.index;d.U=q;d.j="update"}; g.Q.pj=function(){return this.Rw()?!0:l8.prototype.pj.call(this)}; g.Q.UX=function(d,q){var T=this.index.fO(d),Y=this.index.getStartTime(d),e=this.index.getDuration(d),U;q?e=U=0:U=this.info.Vv>0?this.info.Vv*e:1E3;return new Jl([new qG(3,this,void 0,"liveCreateRequestInfoForSegment",d,Y,e,0,U,!q)],T)}; g.Q.wG=function(){return this.Rw()?0:this.initRange.length}; g.Q.gV=function(){return!1};xw.prototype.update=function(d){var q=void 0;this.U&&(q=this.U);var T=new xw,Y=Array.from(d.getElementsByTagName("S"));if(Y.length){var e=+NG(d,"timescale")||1,U=(+Y[0].getAttribute("t")||0)/e,b=+NG(d,"startNumber")||0;T.T=U;var J=q?q.startSecs+q.sS:0,F=Date.parse(L17(NG(d,"yt:segmentIngestTime")))/1E3;T.S=d.parentElement.tagName==="SegmentTemplate";T.S&&(T.L=NG(d,"media"));d=q?b-q.sD:1;T.X=d>0?0:-d+1;d=g.E(Y);for(Y=d.next();!Y.done;Y=d.next()){Y=Y.value;for(var N=+Y.getAttribute("d")/e,R=(+Y.getAttribute("yt:sid")|| 0)/e,x=+Y.getAttribute("r")||0,y=0;y<=x;y++)if(q&&b<=q.sD)b++;else{var h=new K1D(b,J,N,F+R,U);T.G.push(h);var H=Y;var a=e,p=h.startSecs;h=H.getAttribute("yt:cuepointTimeOffset");var t=H.getAttribute("yt:cuepointDuration");if(h&&t){h=Number(h);p=-h/a+p;a=Number(t)/a;t=H.getAttribute("yt:cuepointContext")||null;var n=H.getAttribute("yt:cuepointIdentifier")||"";H=H.getAttribute("yt:cuepointEvent")||"";H=new $k(p,a,t,n,jcE[H]||"unknown",h)}else H=null;H&&T.j.push(H);b++;J+=N;U+=N;F+=N+R}}T.G.length&& (T.U=g.yN(T.G))}this.X=T.X;this.U=T.U||this.U;g.tE(this.G,T.G);g.tE(this.j,T.j);this.S=T.S;this.L=T.L;this.T===-1&&(this.T=T.getStreamTimeOffset())}; xw.prototype.getStreamTimeOffset=function(){return this.T===-1?0:this.T};g.M(hl,g.qn);g.Q=hl.prototype;g.Q.qc=function(){return this.bO}; g.Q.Zb=function(d,q){d=Hb(this,d);return d>=0&&(q||!this.segments[d].pending)}; g.Q.Db=function(){return this.RF?this.segments.length?this.S_(this.BG()).sD:-1:g.qn.prototype.Db.call(this)}; g.Q.BG=function(){if(this.uC)return 0;if(!this.RF)return g.qn.prototype.BG.call(this);if(!this.segments.length)return 0;var d=Math.max(g.yN(this.segments).endTime-this.nW,0);return this.QX>0&&this.S_(d).sD0)return this.Dt/1E3;if(!this.segments.length)return g.qn.prototype.As.call(this);var d=this.nC();if(!this.RF||d<=this.segments[this.segments.length-1].sD)d=this.segments[this.segments.length-1];else{var q=this.segments[this.segments.length-1];d=new d0(d,Math.max(0,q.startTime-(q.sD-d)*this.bO),this.bO,0,"sq/"+d,void 0,void 0,!0)}return this.uC?Math.min(this.nW,d.endTime):d.endTime}; g.Q.Od=function(){return this.RF?this.segments.length?this.nC()-this.Db()+1:0:g.qn.prototype.Od.call(this)}; g.Q.nC=function(){var d=Math.min(this.rH,Math.max(g.qn.prototype.nC.call(this),this.z3)),q=this.nW*1E3;q=this.Dt>0&&this.Dt0&&this.z3>0&&!q&&(q=this.S_(this.nW))&&(d=Math.min(q.sD-1,d));return d}; g.Q.XZ=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.Q.jS=function(d){var q=Hb(this,d.sD);if(q>=0)this.segments[q]=d;else if(this.segments.splice(-(q+1),0,d),this.Fp&&d.sD%(300/this.bO)===0){var T=this.segments[0].sD,Y=Math.floor(this.Fp/this.bO);d=d.sD-Y;q=-(q+1)-Y;q>0&&d>T&&(this.segments=this.segments.slice(q))}}; g.Q.YD=function(){return this.z3}; g.Q.K1=function(d){return y8?!this.U&&d>=0&&this.nC()<=d:g.qn.prototype.K1.call(this,d)}; g.Q.S_=function(d){if(!this.RF)return g.qn.prototype.S_.call(this,d);if(!this.segments.length)return null;var q=this.segments[this.segments.length-1];if(d=q.endTime)q=q.sD+Math.floor((d-q.endTime)/this.bO+1);else{q=wL(this.segments,function(Y){return d=Y.endTime?1:0}); if(q>=0)return this.segments[q];var T=-(q+1);q=this.segments[T-1];T=this.segments[T];q=Math.floor((d-q.endTime)/((T.startTime-q.endTime)/(T.sD-q.sD-1))+1)+q.sD}return this.nS(q)}; g.Q.nS=function(d){if(!this.RF)return g.qn.prototype.nS.call(this,d);if(!this.segments.length)return null;var q=Hb(this,d);if(q>=0)return this.segments[q];var T=-(q+1);q=this.bO;if(T===0)var Y=Math.max(0,this.segments[0].startTime-(this.segments[0].sD-d)*q);else T===this.segments.length?(Y=this.segments[this.segments.length-1],Y=Y.endTime+(d-Y.sD-1)*q):(Y=this.segments[T-1],q=this.segments[T],q=(q.startTime-Y.endTime)/(q.sD-Y.sD-1),Y=Y.endTime+(d-Y.sD-1)*q);return new d0(d,Y,q,0,"sq/"+d,void 0,void 0, !0)}; var y8=!1;g.M(Q8,Fo);g.Q=Q8.prototype;g.Q.hO=function(){return!0}; g.Q.pj=function(){return!0}; g.Q.lG=function(d){return this.Gb()&&d.j&&!d.S||!d.G.index.K1(d.sD)}; g.Q.Sd=function(){}; g.Q.Fg=function(d,q){return typeof d!=="number"||isFinite(d)?Fo.prototype.Fg.call(this,d,q===void 0?!1:q):new Jl([new qG(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.W3,void 0,this.W3*this.info.Vv)],"")}; g.Q.UX=function(d,q){var T=T===void 0?!1:T;if(this.index.Zb(d))return Fo.prototype.UX.call(this,d,q);var Y=this.index.getStartTime(d),e=Math.round(this.W3*this.info.Vv),U=this.W3;q&&(U=e=0);return new Jl([new qG(T?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",d,Y,U,void 0,e,!q)],d>=0?"sq/"+d:"")};g.M(MG,l8);g.Q=MG.prototype;g.Q.gr=function(){return!1}; g.Q.Gb=function(){return!1}; g.Q.hO=function(){return!1}; g.Q.Sd=function(){return new Jl([new qG(1,this,void 0,"otfInit")],this.S)}; g.Q.Kh=function(){return null}; g.Q.NJ=function(d){this.lG(d);return fBD(this,U$(d),!1)}; g.Q.Fg=function(d,q){q=q===void 0?!1:q;d=this.index.yg(d);q&&(d=Math.min(this.index.nC(),d+1));return fBD(this,d,!0)}; g.Q.u5=function(d){d.info.type===1&&(this.G||(this.G=g5(d.U)),d.G&&d.G.uri==="http://youtube.com/streaming/otf/durations/112015"&&zIH(this,d.G))}; g.Q.lG=function(d){return d.j===0?!0:this.index.nC()>d.sD&&this.index.Db()<=d.sD+1}; g.Q.wG=function(){return 0}; g.Q.gV=function(){return!1};g.cb.prototype.info=function(){}; g.cb.prototype.debug=function(){}; g.cb.prototype.G=function(d){E$.apply(null,[5,this.tag,d].concat(g.RQ(g.CN.apply(1,arguments))))}; var mI7=new Map,vV2=new Map,SJg=new function(){var d=this;this.G=new Map;this.fC={SZD:function(){return d.G}}};g.Q=g.rT.prototype;g.Q.Zb=function(d){return d<=this.nC()}; g.Q.n3=function(d){return this.offsets[d]}; g.Q.getStartTime=function(d){return this.startTicks[d]/this.G}; g.Q.Zq=function(d){return this.getStartTime(d)+this.getDuration(d)}; g.Q.oR=dI(0);g.Q.fH=function(){return NaN}; g.Q.getDuration=function(d){d=this.jo(d);return d>=0?d/this.G:-1}; g.Q.jo=function(d){return d+1=0}; g.Q.As=function(){return this.U?this.startTicks[this.count]/this.G:NaN}; g.Q.BG=function(){return 0}; g.Q.Od=function(){return this.count}; g.Q.fO=function(){return""}; g.Q.yg=function(d){d=g.Dn(this.startTicks.subarray(0,this.count),d*this.G);return d>=0?d:Math.max(0,-d-2)}; g.Q.isLoaded=function(){return this.nC()>=0}; g.Q.rN=function(d,q){if(d>=this.nC())return 0;var T=0;for(q=this.getStartTime(d)+q;dthis.getStartTime(d);d++)T=Math.max(T,bkY(this,d)/this.getDuration(d));return T}; g.Q.resize=function(d){d+=2;var q=this.offsets;this.offsets=new Float64Array(d+1);var T=this.startTicks;this.startTicks=new Float64Array(d+1);for(d=0;d0&&d&&(T=T.range.end+1,d=Math.min(d,this.info.contentLength-T),d>0&&Y.push(new qG(4,this,VL(T,d),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,q)));return new Jl(Y)}; g.Q.u5=function(d){if(d.info.type===1){if(this.G)return;this.G=g5(d.U)}else if(d.info.type===2){if(this.S||this.index.nC()>=0)return;if(g.Ce(this.info)){var q=this.index,T=g.ad(d);d=d.info.range.start;var Y=g.R8(T,0,1936286840);T=qJ2(Y);q.G=T.timescale;var e=T.Vb;q.offsets[0]=T.mI+d+Y.size;q.startTicks[0]=e;q.U=!0;d=T.yL.length;for(Y=0;Y0&&d===U[0].Po)for(d=0;d=q+T)break}e.length||(d=new g.CW("b189619593",""+d,""+q,""+T),g.Zz(d));return new Jl(e)}; g.Q.IM=function(d){for(var q=this.IV(d.info),T=d.info.range.start+d.info.U,Y=[],e=0;e=this.index.n3(T+1);)T++;return this.R7(T,q,d.j).Zw}; g.Q.lG=function(d){d.qQ();return this.pj()?!0:d.range.end+1this.info.contentLength&&(q=new vt(q.start,this.info.contentLength-1)),new Jl([new qG(4,d.G,q,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,d.clipId)]);d.type===4&&(d=this.IV(d),d=d[d.length-1]);var T=0,Y=d.range.start+d.U+d.j;d.type===3&&(d.qQ(),T=d.sD,Y===d.range.end+1&&(T+=1));return this.R7(T,Y,q)}; g.Q.NJ=function(){return null}; g.Q.Fg=function(d,q){q=q===void 0?!1:q;d=this.index.yg(d);q&&(d=Math.min(this.index.nC(),d+1));return this.R7(d,this.index.n3(d),0,void 0)}; g.Q.gr=function(){return!0}; g.Q.Gb=function(){return!0}; g.Q.hO=function(){return!1}; g.Q.wG=function(){return this.indexRange.length+this.initRange.length}; g.Q.gV=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var Tw={},ExY=(Tw.COLOR_PRIMARIES_BT709="bt709",Tw.COLOR_PRIMARIES_BT2020="bt2020",Tw.COLOR_PRIMARIES_UNKNOWN=null,Tw.COLOR_PRIMARIES_UNSPECIFIED=null,Tw),Yd={},JeX=(Yd.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Yd.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Yd.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Yd.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Yd.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Yd.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Yd);g.Ky.prototype.getName=function(){return this.name}; g.Ky.prototype.getId=function(){return this.id}; g.Ky.prototype.getIsDefault=function(){return this.isDefault}; g.Ky.prototype.toString=function(){return this.name}; g.Ky.prototype.getName=g.Ky.prototype.getName;g.Ky.prototype.getId=g.Ky.prototype.getId;g.Ky.prototype.getIsDefault=g.Ky.prototype.getIsDefault;var Fif=/action_display_post/;var NCN,kw,Pb;g.M(Wb,g.YP);g.Q=Wb.prototype;g.Q.isLoading=function(){return this.state===1}; g.Q.E5=function(){return this.state===3}; g.Q.HH2=function(d){var q=d.getElementsByTagName("Representation");if(d.getElementsByTagName("SegmentList").length>0||d.getElementsByTagName("SegmentTemplate").length>0){this.aN=this.U=!0;this.timeline||(this.timeline=new PWX);DIX(this.timeline,d);this.publish("refresh");for(d=0;d=0?R=o8(y):x=x+"?range="+y}F.call(J,new d0(N.sD,N.startSecs,N.sS,N.G,x,R,N.U))}Y=e}T.update(Y,this.isLive,this.qk)}wHQ(this.timeline);return!0}this.duration=GLN(NG(d,"mediaPresentationDuration")); a:{for(d=0;d0))return this.cG()-d}}d=this.G;for(var q in d){var T=d[q].index;if(T.isLoaded()&&!iW(d[q].info.mimeType))return T.BG()}return 0}; g.Q.getStreamTimeOffset=function(){return this.L}; g.Q.fH=function(d){for(var q in this.G){var T=this.G[q].index;if(T.isLoaded()){var Y=T.yg(d),e=T.fH(Y);if(e)return e+d-T.getStartTime(Y)}}return NaN}; var V8=null,aV7,d6=!((aV7=navigator.mediaCapabilities)==null||!aV7.decodingInfo),OkD={commentary:1,alternate:2,dub:3,main:4};var pE=new Set,qd=new Map;eJ.prototype.clone=function(d){return new eJ(this.flavor,d,this.U,this.experiments)}; eJ.prototype.BF=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; eJ.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 A0N={},R9=(A0N.playready=["com.youtube.playready","com.microsoft.playready"],A0N.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],A0N),eQ={},rWj=(eQ.widevine="DRM_SYSTEM_WIDEVINE",eQ.fairplay="DRM_SYSTEM_FAIRPLAY",eQ.playready="DRM_SYSTEM_PLAYREADY",eQ),UQ={},pz_=(UQ.widevine=1,UQ.fairplay=2,UQ.playready=3,UQ);var hj;g.M(x8,g.W); x8.prototype.initialize=function(d,q){for(var T=this,Y=g.E(Object.keys(d)),e=Y.next();!e.done;e=Y.next()){e=g.E(d[e.value]);for(var U=e.next();!U.done;U=e.next())if(U=U.value,U.ac)for(var b=g.E(Object.keys(U.ac)),J=b.next();!J.done;J=b.next()){var F=J.value;J=F;F=R9[F];!F&&this.N("html5_enable_vp9_fairplay")&&J==="fairplay"&&(F=["com.youtube.fairplay.sbdl"]);if(F){F=g.E(F);for(var N=F.next();!N.done;N=F.next())N=N.value,this.j[N]=this.j[N]||new eJ(J,N,U.ac[J],this.Mk.experiments),this.G[J]=this.G[J]|| {},this.G[J][U.mimeType]=!0}}}CZ()&&(this.j["com.youtube.fairplay"]=new eJ("fairplay","com.youtube.fairplay","",this.Mk.experiments),this.N("html5_enable_vp9_fairplay")||(this.G.fairplay=this.G.fairplay||{},this.G.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.G.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.U=DF_(q,this.useCobaltWidevine,this.N("html5_enable_safari_fairplay")&&!0,this.N("html5_enable_vp9_fairplay")).filter(function(R){return!!T.j[R]})}; x8.prototype.N=function(d){return this.Mk.experiments.Wv(d)};var ZpB={"":"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"};mFI.prototype.N=function(d){return this.experiments.Wv(d)};var uF2={RED:"red",siO:"white"};SX6.prototype.Wv=function(d){d=this.flags[d];JSON.stringify(d);return d==="true"};var ox1=Promise.resolve(),TUD=window.queueMicrotask?window.queueMicrotask.bind(window):V1D;cx.prototype.canPlayType=function(d,q){d=d.canPlayType?d.canPlayType(q):!1;uR?d=d||Opx[q]:eZ===2.2?d=d||nQI[q]:PL()&&(d=d||r0c[q]);return!!d}; cx.prototype.isTypeSupported=function(d){return this.K?window.cast.receiver.platform.canDisplayType(d):cH(d)}; var nQI={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},r0c={"application/x-mpegURL":"maybe"},Opx={"application/x-mpegURL":"maybe"};g.M(a9,g.YP);a9.prototype.add=function(d,q){if(!this.items[d]&&(q.cQ||q.YR||q.NB)){var T=this.items,Y=q;Object.isFrozen&&!Object.isFrozen(q)&&(Y=Object.create(q),Object.freeze(Y));T[d]=Y;this.publish("vast_info_card_add",d)}}; a9.prototype.remove=function(d){var q=this.get(d);delete this.items[d];return q}; a9.prototype.get=function(d){return this.items[d]||null}; a9.prototype.isEmpty=function(){return g.FV(this.items)};Aj.prototype.encrypt=function(d){this.G.exports.AES128CTRCipher_encrypt(this.cipher,d.byteOffset,d.byteLength);return d}; Aj.prototype.JF=function(){return this.cipher===0}; Aj.prototype.dispose=function(){this.G.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};ZN.prototype.Z5=function(d,q){q=q===void 0?1:q;this.oI+=q;this.U+=d;d/=q;for(var T=0;T0)Y+="."+pO[e].toFixed(0)+"_"+T.G[e].toFixed(0);else break;T=Y}T&&(d[q]=T)}this.G=new bdf;return d}; g.Q.toString=function(){return""};g.Q=Fl_.prototype;g.Q.isActive=function(){return!1}; g.Q.aY=function(){}; g.Q.ji=function(){}; g.Q.Ed=function(){}; g.Q.GZ=function(d,q){q()}; g.Q.K6=function(){return{}}; g.Q.toString=function(){return""};var t0q=new Fl_,BvB=!!+ww("html5_enable_profiler"),KAx=!!+ww("html5_onesie_enable_profiler"),bJ=BvB||KAx?new JPn:t0q,SZ6=BvB?bJ:t0q,nO=KAx?bJ:t0q;Hd_.prototype.emscripten_notify_memory_growth=function(){};g.Q=O4.prototype;g.Q.malloc=function(d){return this.exports.malloc(d)}; g.Q.free=function(d){this.exports.free(d)}; g.Q.realloc=function(d,q){return this.exports.realloc(d,q)}; g.Q.rZ=function(d){if(d.buffer!==this.exports.memory.buffer){var q=this.malloc(d.byteLength);q=new Uint8Array(this.exports.memory.buffer,q,d.byteLength);q.set(d);return q}}; g.Q.q$=function(d){if(d.buffer===this.exports.memory.buffer){var q=d.slice();this.free(d.byteOffset);return q}}; var NUD=new function(){this.j=this.T="WebAssembly"in window},r6="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); nO.aY(O4,{rZ:function(d){return{profile:"copyj2w",oI:d===void 0?0:Math.ceil(d.byteLength/16)}}, q$:function(d){return{profile:"copyw2j",oI:d===void 0?0:Math.ceil(d.byteLength/16)}}});tj.prototype.encrypt=function(d,q){try{return this.G.q$(EKQ(this,d,q))}catch(T){g.OL(Error("ocwce: wasm encrypt failed: "+T))}}; tj.prototype.JF=function(){return this.j}; tj.prototype.dispose=function(){this.JF()||(g.T1(this.U),this.G.free(this.T.byteOffset),this.j=!0)};g.M(j0_,g.W);g.M(AP2,g.W);var KO;GH.prototype.add=function(d){if(this.pos+20>this.data.length){var q=new Uint8Array(this.data.length*2);q.set(this.data);this.data=q}for(;d>31;)this.data[this.pos++]=KO[(d&31)+32],d>>=5;this.data[this.pos++]=KO[d|0]}; GH.prototype.VH=function(){return g.yA(this.data.subarray(0,this.pos))}; GH.prototype.reset=function(){this.pos=0};k8.prototype.gH=function(d,q){var T=Math.pow(this.alpha,d);this.G=q*(1-T)+T*this.G;this.U+=d}; k8.prototype.W4=function(){return this.G/(1-Math.pow(this.alpha,this.U))};Px.prototype.gH=function(d,q){for(var T=0;T<10;T++){var Y=this.G[T],e=Y+(T===0?d:0),U=1*Math.pow(2,T);if(e<=U)break;Y=Math.min(1,(e-U*.5)/Y);for(e=0;e<16;e++)U=this.values[T*16+e]*Y,this.values[(T+1)*16+e]+=U,this.G[T+1]+=U,this.values[T*16+e]-=U,this.G[T]-=U}Y=T=0;e=8192;q>8192&&(T=Math.ceil(Math.log(q/8192)/Math.log(2)),Y=8192*Math.pow(2,T-1),e=Y*2);T+2>16?this.values[15]+=d:(q=(q-Y)/(e-Y),this.values[T]+=d*(1-q),this.values[T+1]+=d*q);this.G[0]+=d}; Px.prototype.W4=function(){var d=d===void 0?this.U:d;var q=q===void 0?.02:q;var T=T===void 0?.98:T;for(var Y=this.j,e=0;e<16;e++)Y[e]=this.values[e];e=this.G[0];for(var U=1;U<11;U++){var b=this.G[U];if(b===0)break;for(var J=Math.min(1,(d-e)/b),F=0;F<16;F++)Y[F]+=this.values[U*16+F]*J;e+=b*J;if(J<1)break}for(U=d=b=0;U<16;U++){J=b+Y[U]/e;d+=Math.max(0,Math.min(J,T)-Math.max(b,q))*(U>0?8192*Math.pow(2,U-1):0);if(J>T)break;b=J}return d/(T-q)};Wx.prototype.gH=function(d,q){d=Math.min(this.G,Math.max(1,Math.round(d*this.resolution)));d+this.U>=this.G&&(this.j=!0);for(;d--;)this.values[this.U]=q,this.U=(this.U+1)%this.G;this.eP=!0}; Wx.prototype.percentile=function(d){var q=this;if(!this.j&&this.U===0)return 0;this.eP&&(g.iQ(this.S,function(T,Y){return q.values[T]-q.values[Y]}),this.eP=!1); return this.values[this.S[Math.round(d*((this.j?this.G:this.U)-1))]]||0}; Wx.prototype.W4=function(){return this.X?(this.percentile(this.T-this.X)+this.percentile(this.T)+this.percentile(this.T+this.X))/3:this.percentile(this.T)};g.M(CO,g.W);CO.prototype.xx=function(){var d;(d=this.RU)==null||d.start();if(mz(this)&&this.policy.B){var q;(q=this.h1)==null||q.h3()}};tdf.prototype.N=function(d){return this.experiments.Wv(d)};g.M(KlY,g.W);var Cu6="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),ID1={wrZ:"caoe",Pwr:"capsv",aED:"cbrand",sgD:"cbr",uMv:"cbrver",eZf:"cchip",A0v:"ccappver",g1w:"ccrv",LT2:"cfrmver",YPg:"c",apr:"cver",bq5:"ctheme",hFv:"cplayer",bpg:"cmodel",rX:"cnetwork",Atg:"cos",OS_VERSION:"cosver",krv:"cplatform",H3U:"crqyear"};g.M(Rn,g.W);g.Q=Rn.prototype;g.Q.N=function(d){return this.experiments.Wv(d)}; g.Q.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.Q.getVideoUrl=function(d,q,T,Y,e,U,b){q={list:q};T&&(e?q.time_continue=T:q.t=T);T=b?"music.youtube.com":g.yv(this);e=T==="www.youtube.com";!U&&Y&&e?U="https://youtu.be/"+d:g.XW(this)?(U="https://"+T+"/fire",q.v=d):(U&&e?(U=this.protocol+"://"+T+"/shorts/"+d,Y&&(q.feature="share")):(U=this.protocol+"://"+T+"/watch",q.v=d),uR&&(d=zFY())&&(q.ebc=d));return g.y6(U,q)}; g.Q.getVideoEmbedCode=function(d,q,T,Y){q="https://"+g.yv(this)+"/embed/"+q;Y&&(q=g.y6(q,{list:Y}));Y=T.width;T=T.height;q=nn(q);d=nn(d!=null?d:"YouTube video player");return'')}; g.Q.supportsGaplessAudio=function(){return g.MI&&!uR&&Gt()>=74||g.Fv&&g.WZ(68)?!0:!1}; g.Q.supportsGaplessShorts=function(){return!this.N("html5_enable_short_gapless")||this.qk||g.F8?!1:!0}; g.Q.getPlayerType=function(){return this.G.cplayer}; g.Q.uF=function(){return this.R6}; var vK7=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],idN=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],S_g=[19];var X5={},qOH=(X5["140"]={numChannels:2},X5["141"]={numChannels:2},X5["251"]={audioSampleRate:48E3,numChannels:2},X5["774"]={audioSampleRate:48E3,numChannels:2},X5["380"]={numChannels:6},X5["328"]={numChannels:6},X5["773"]={},X5),JN={},VdN=(JN["1"]='video/mp4; codecs="av01.0.08M.08"',JN["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',JN["1e"]='video/mp4; codecs="av01.0.08M.08"',JN["9"]='video/webm; codecs="vp9"',JN["("]='video/webm; codecs="vp9"',JN["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', JN.h='video/mp4; codecs="avc1.64001e"',JN.H='video/mp4; codecs="avc1.64001e"',JN.o='audio/webm; codecs="opus"',JN.a='audio/mp4; codecs="mp4a.40.2"',JN.ah='audio/mp4; codecs="mp4a.40.2"',JN.mac3='audio/mp4; codecs="ac-3"; channels=6',JN.meac3='audio/mp4; codecs="ec-3"; channels=6',JN.i='audio/mp4; codecs="iamf.001.001.Opus"',JN),sQ={},dm1=(sQ["337"]={width:3840,height:2160,bitrate:3E7,fps:30},sQ["336"]={width:2560,height:1440,bitrate:15E6,fps:30},sQ["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, sQ["702"]={width:7680,height:4320,bitrate:4E7,fps:60},sQ["701"]={width:3840,height:2160,bitrate:2E7,fps:60},sQ["700"]={width:2560,height:1440,bitrate:1E7,fps:60},sQ["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},sQ["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},sQ["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},sQ["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, sQ["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},sQ["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},sQ["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},sQ["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},sQ["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},sQ["315"]={width:3840,height:2160,bitrate:2E7,fps:60},sQ["308"]={width:2560, height:1440,bitrate:1E7,fps:60},sQ["303"]={width:1920,height:1080,bitrate:5E6,fps:60},sQ["302"]={width:1280,height:720,bitrate:25E5,fps:60},sQ["299"]={width:1920,height:1080,bitrate:75E5,fps:60},sQ["298"]={width:1280,height:720,bitrate:35E5,fps:60},sQ["571"]={width:7680,height:4320,bitrate:3E7,fps:60},sQ["401"]={width:3840,height:2160,bitrate:15E6,fps:60},sQ["400"]={width:2560,height:1440,bitrate:75E5,fps:60},sQ["399"]={width:1920,height:1080,bitrate:2E6,fps:60},sQ["398"]={width:1280,height:720,bitrate:1E6, fps:60},sQ["397"]={width:854,height:480,bitrate:4E5,fps:30},sQ["396"]={width:640,height:360,bitrate:25E4,fps:30},sQ["787"]={width:1080,height:608,bitrate:2E5,fps:30},sQ["788"]={width:1080,height:608,bitrate:4E5,fps:30},sQ["572"]={width:7680,height:4320,bitrate:3E7,fps:60},sQ["555"]={width:3840,height:2160,bitrate:15E6,fps:60},sQ["554"]={width:2560,height:1440,bitrate:75E5,fps:60},sQ["553"]={width:1920,height:1080,bitrate:2E6,fps:60},sQ["552"]={width:1280,height:720,bitrate:1E6,fps:60},sQ["551"]={width:854, height:480,bitrate:4E5,fps:30},sQ["550"]={width:640,height:360,bitrate:25E4,fps:30},sQ["313"]={width:3840,height:2160,bitrate:8E6,fps:30},sQ["271"]={width:2560,height:1440,bitrate:4E6,fps:30},sQ["248"]={width:1920,height:1080,bitrate:2E6,fps:30},sQ["247"]={width:1280,height:720,bitrate:15E5,fps:30},sQ["244"]={width:854,height:480,bitrate:52E4,fps:30},sQ["243"]={width:640,height:360,bitrate:28E4,fps:30},sQ["137"]={width:1920,height:1080,bitrate:4E6,fps:30},sQ["136"]={width:1280,height:720,bitrate:3E6, fps:30},sQ["135"]={width:854,height:480,bitrate:1E6,fps:30},sQ["385"]={width:1920,height:1080,bitrate:6503313,fps:60},sQ["376"]={width:1280,height:720,bitrate:5706960,fps:60},sQ["384"]={width:1280,height:720,bitrate:3660979,fps:60},sQ["225"]={width:1280,height:720,bitrate:5805E3,fps:30},sQ["224"]={width:1280,height:720,bitrate:453E4,fps:30},sQ["145"]={width:1280,height:720,bitrate:2682052,fps:30},sQ);g.Q=KI.prototype;g.Q.getInfo=function(){return this.G}; g.Q.Ld=function(){return null}; g.Q.Tx=function(){var d=this.Ld();return d?(d=g.oE(d.zG),Number(d.expire)):NaN}; g.Q.vT=function(){}; g.Q.getHeight=function(){return this.G.video.height};Um_.prototype.build=function(){JRX(this);var d=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],q={};a:if(this.G)var T=this.G;else{T="";for(var Y=g.E(this.j),e=Y.next();!e.done;e=Y.next())if(e=e.value,e.DQ){if(e.DQ.getIsDefault()){T=e.DQ.getId();break a}T||(T=e.DQ.getId())}}Y=g.E(this.j);for(e=Y.next();!e.done;e=Y.next())if(e=e.value,this.X||!e.DQ||e.DQ.getId()===T)q[e.itag]||(q[e.itag]=[]),q[e.itag].push(e);T=g.E(this.U);for(Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,e=q[Y.G]){e=g.E(e);for(var U=e.next();!U.done;U= e.next()){var b=d,J=b.push;U=U.value;var F="#EXT-X-MEDIA:TYPE=AUDIO,",N="YES",R="audio";if(U.DQ){R=U.DQ;var x=R.getId().split(".")[0];x&&(F+='LANGUAGE="'+x+'",');(this.G?this.G===R.getId():R.getIsDefault())||(N="NO");R=R.getName()}x="";Y!==null&&(x=Y.itag.toString());x=LI(this,U.url,x);F=F+('NAME="'+R+'",DEFAULT='+(N+',AUTOSELECT=YES,GROUP-ID="'))+(XY1(U,Y)+'",URI="'+(x+'"'));J.call(b,F)}}T=g.E(this.S);for(Y=T.next();!Y.done;Y=T.next())Y=Y.value,e=GIs,Y=(b=Y.DQ)?'#EXT-X-MEDIA:URI="'+LI(this,Y.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+b.getId()+'",NAME="'+b.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,Y&&d.push(Y);T=this.S.length>0?GIs:void 0;Y=g.E(this.U);for(e=Y.next();!e.done;e=Y.next())e=e.value,J=q[e.G],b=void 0,((b=J)==null?void 0:b.length)>0&&(b=e,J=J[0],J="#EXT-X-STREAM-INF:BANDWIDTH="+(b.bitrate+J.bitrate)+',CODECS="'+(b.codecs+","+J.codecs+'",RESOLUTION=')+(b.width+"x"+b.height+',AUDIO="')+(XY1(J,b)+'",')+(T?'SUBTITLES="'+T+'",':"")+"CLOSED-CAPTIONS=NONE",b.fps>1&&(J+= ",FRAME-RATE="+b.fps),b.C5&&(J+=",VIDEO-RANGE="+b.C5),d.push(J),d.push(LI(this,e.url,"")));return d.join("\n")}; var GIs="text";g.M(kl,KI);kl.prototype.Tx=function(){return this.expiration}; kl.prototype.Ld=function(){if(!this.zG||this.zG.JF()){var d=this.U.build();d="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(d);this.zG=new Je(d)}return this.zG};g.M(PT,KI);PT.prototype.Ld=function(){return new Je(this.U.Hl())}; PT.prototype.vT=function(){this.U=og(this.U)};g.M(WT,KI);WT.prototype.Ld=function(){return new Je(this.U)};var $d={},HSQ=($d.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",$d.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",$d.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",$d.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",$d);g.Q=g.CI.prototype;g.Q.getId=function(){return this.id}; g.Q.getName=function(){return this.name}; g.Q.isServable=function(){return this.G}; g.Q.Hl=function(){return this.url}; g.Q.getXtags=function(){return this.xtags}; g.Q.toString=function(){return this.languageCode+": "+g.uS(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.Q.equals=function(d){return d?this.toString()===d.toString():!1}; g.Q.LH=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var aJ6={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},ARn={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},pYg=/^(\d*)_((\d*)_?(\d*))$/;var OS6={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},nb_={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var g$={},LAR=(g$.ALWAYS=1,g$.BY_REQUEST=3,g$.UNKNOWN=void 0,g$),F5={},kIB=(F5.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",F5.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",F5.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",F5.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",F5);var u7N; u7N=function(d){for(var q=Object.keys(d),T={},Y=0;YY-q?-1:d}; g.Q.wi=function(){return this.U.nC()}; g.Q.HU=function(){return this.U.Db()}; g.Q.Y2=function(d){this.U=d};g.M(Rf,Fx);Rf.prototype.U=function(d,q){return Fx.prototype.U.call(this,"$N|"+d,q)}; Rf.prototype.S=function(d,q,T){return new NR(d,q,T,this.isLive)};g.M(g.yM,g.YP);g.Q=g.yM.prototype; g.Q.setData=function(d){d=d||{};var q=d.errordetail;q!=null&&(this.errorDetail=q);var T=d.errorcode;T!=null?this.errorCode=T:d.status==="fail"&&(this.errorCode="auth");var Y=d.reason;Y!=null&&(this.errorReason=Y);var e=d.subreason;e!=null&&(this.eU=e);this.clientPlaybackNonce||(this.clientPlaybackNonce=d.cpn||(this.Mk.uF()?"r"+g.RC(15):g.RC(16)));this.kx=vL(this.Mk.kx,d.livemonitor);b6g(this,d);var U=d.raw_player_response;if(U)this.Ph=U;else{var b=d.player_response;b&&(U=JSON.parse(b))}U&&(this.playerResponse= U);if(this.playerResponse){var J=this.playerResponse.annotations;if(J)for(var F=g.E(J),N=F.next();!N.done;N=F.next()){var R=N.value.playerAnnotationsUrlsRenderer;if(R){R.adsOnly&&(this.H9=!0);var x=R.loadPolicy;x&&(this.annotationsLoadPolicy=LAR[x]);var y=R.invideoUrl;y&&(this.RU=zn(y));break}}var h=this.playerResponse.attestation;h&&t5H(this,h);var H=this.playerResponse.cotn;H&&(this.cotn=H);var a=this.playerResponse.heartbeatParams;if(a){this.oy=!0;var p=a.heartbeatToken;p&&(this.drmSessionId=a.drmSessionId|| "",this.heartbeatToken=p,this.xA=Number(a.intervalMilliseconds),this.Yt=Number(a.maxRetries),this.h2=!!a.softFailOnError,this.UT=!!a.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=a.heartbeatServerData;var t;this.Gv=!((t=a.heartbeatAttestationConfig)==null||!t.requiresAttestation)}var n=this.playerResponse.messages;n&&LuX(this,n);var K=this.playerResponse.overlay;if(K){var P=K.playerControlsOverlayRenderer;if(P)if(PV6(this,P.controlBgHtml),P.mutedAutoplay){var w=g.D(P.mutedAutoplay,lGI);if(w&& w.endScreen){var l=g.D(w.endScreen,vSB);l&&l.text&&(this.CN=g.gx(l.text))}}else this.mutedAutoplay=!1}var m=this.playerResponse.playabilityStatus;if(m){var b_=m.backgroundability;b_&&b_.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var x2,JY;if((x2=m.offlineability)==null?0:(JY=x2.offlineabilityRenderer)==null?0:JY.offlineable)this.offlineable=!0;var s6=m.contextParams;s6&&(this.contextParams=s6);var qH=m.pictureInPicture;qH&&qH.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);m.playableInEmbed&&(this.allowEmbed=!0);var O6=m.ypcClickwrap;if(O6){var SD=O6.playerLegacyDesktopYpcClickwrapRenderer,dL=O6.ypcRentalActivationRenderer;if(SD)this.sZ=SD.durationMessage||"",this.Kz=!0;else if(dL){var hE=dL.durationMessage;this.sZ=hE?g.gx(hE):"";this.Kz=!0}}var JE=m.errorScreen;if(JE){if(JE.playerLegacyDesktopYpcTrailerRenderer){var tY=JE.playerLegacyDesktopYpcTrailerRenderer;this.r3=tY.trailerVideoId||"";var bw=JE.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var kc=bw&&bw.ypcTrailerRenderer}else if(JE.playerLegacyDesktopYpcOfferRenderer)tY= JE.playerLegacyDesktopYpcOfferRenderer;else if(JE.ypcTrailerRenderer){kc=JE.ypcTrailerRenderer;var fB=kc.fullVideoMessage;this.H$=fB?g.gx(fB):"";var XV,r;this.r3=((XV=g.D(kc,oS_))==null?void 0:(r=XV.videoDetails)==null?void 0:r.videoId)||""}tY&&(this.JW=tY.itemTitle||"",tY.itemUrl&&(this.Lh=tY.itemUrl),tY.itemBuyUrl&&(this.qK=tY.itemBuyUrl),this.NK=tY.itemThumbnail||"",this.DT=tY.offerHeadline||"",this.W$=tY.offerDescription||"",this.If=tY.offerId||"",this.Fs=tY.offerButtonText||"",this.Vq=tY.offerButtonFormattedText|| null,this.yl=tY.overlayDurationMsec||NaN,this.H$=tY.fullVideoMessage||"",this.B3=!0);if(kc){var Ch=g.D(kc,oS_);if(Ch)this.Yz={raw_player_response:Ch};else{var BR=g.D(kc,J4L);this.Yz=BR?lF(BR):null}this.B3=!0}}}var Y2=this.playerResponse.playbackTracking;if(Y2){var AE=d,A=iS(Y2.googleRemarketingUrl);A&&(this.googleRemarketingUrl=A);var T7=iS(Y2.youtubeRemarketingUrl);T7&&(this.youtubeRemarketingUrl=T7);var tz={},Xk=iS(Y2.ptrackingUrl);if(Xk){var uQ=In(Xk),IQ=uQ.oid;IQ&&(this.KN=IQ);var Tl=uQ.pltype; Tl&&(this.wM=Tl);var Vl=uQ.ptchn;Vl&&(this.VL=Vl);var uw=uQ.ptk;uw&&(this.BJ=encodeURIComponent(uw));var Z=uQ.m;Z&&(this.Nj=Z)}var c=iS(Y2.qoeUrl);if(c){for(var O=g.oE(c),L=g.E(Object.keys(O)),u=L.next();!u.done;u=L.next()){var F1=u.value,z=O[F1];O[F1]=Array.isArray(z)?z.join(","):z}this.hY=O;var V=O.cat;V&&(this.N("html5_enable_qoe_cat_list")?this.aF=this.aF.concat(V.split(",")):this.gB=V);var k=O.live;k&&(this.wm=k);var G7=O.drm_product;G7&&(this.drmProduct=G7)}var wI=iS(Y2.videostatsPlaybackUrl); if(wI){var X1=In(wI),gL=X1.adformat;if(gL){AE.adformat=gL;var Bg=this.C(),AY=ZS7(gL,this.fh,Bg.T,Bg.B);AY&&(this.adFormat=AY)}var d_=X1.aqi;d_&&(AE.ad_query_id=d_);var as=X1.autoplay;as&&(this.k9=as=="1",this.Ct=as=="1");var PR=X1.autonav;PR&&(this.isAutonav=PR=="1");var pN=X1.delay;pN&&(this.fn=BZ(pN));var EM=X1.ei;EM&&(this.eventId=EM);var rI=Bx(X1.adcontext);if(rI)try{var KB=v9c(rI);KB&&(this.qV=KB)}catch(DPn){g.OL(Error("Malformed adContext"))}if(rI||gL)this.k9=!0;var pB=X1.feature;pB&&(this.sx= pB);var Jz=X1.list;Jz&&(this.playlistId=Jz);var Zn=X1.of;Zn&&(this.I$=Zn);var Vw=X1.osid;Vw&&(this.osid=Vw);var Y9=X1.referrer;Y9&&(this.referrer=Y9);var zl=X1.sdetail;zl&&(this.A6=zl);var Gl=X1.ssrt;Gl&&(this.Nf=Gl=="1");var ZG=X1.subscribed;ZG&&(this.subscribed=ZG=="1");var S0=X1.uga;S0&&(this.userGenderAge=S0);var hA=X1.upt;hA&&(this.Tb=hA);var PE=X1.vm;PE&&(this.videoMetadata=PE);tz.playback=X1}var dz=iS(Y2.videostatsWatchtimeUrl);if(dz){var qV=In(dz),Uw=qV.ald;Uw&&(this.hs=Uw);tz.watchtime=qV}var jV= iS(Y2.atrUrl);if(jV){var GU=In(jV);tz.atr=GU}var l$=iS(Y2.engageUrl);if(l$){var Lg=In(l$);tz.engage=Lg}this.Y6=tz;if(Y2.promotedPlaybackTracking){var qQ=Y2.promotedPlaybackTracking;qQ.startUrls&&(this.OW=qQ.startUrls);qQ.firstQuartileUrls&&(this.Ah=qQ.firstQuartileUrls);qQ.secondQuartileUrls&&(this.g5=qQ.secondQuartileUrls);qQ.thirdQuartileUrls&&(this.PD=qQ.thirdQuartileUrls);qQ.completeUrls&&(this.xN=qQ.completeUrls);qQ.engagedViewUrls&&(qQ.engagedViewUrls.length>1&&g.OL(new g.CW("There are more than one engaged_view_urls.")), this.dZ=qQ.engagedViewUrls[0])}}var HE=this.playerResponse.playerCueRanges;HE&&HE.length>0&&(this.cueRanges=HE);var WE=this.playerResponse.playerCueRangeSet;WE&&g.MR(this,WE);a:{var MA=this.playerResponse.adPlacements;if(MA)for(var TU=g.E(MA),cV=TU.next();!cV.done;cV=TU.next()){var YY=void 0,e8=void 0,Ut=(YY=cV.value.adPlacementRenderer)==null?void 0:(e8=YY.renderer)==null?void 0:e8.videoAdTrackingRenderer;if(Ut){var bL=Ut;break a}}bL=null}var Ey=bL;Y2&&Y2.promotedPlaybackTracking&&Ey&&g.OL(new g.CW("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); var b$;if(!(b$=Ey))a:{for(var Xj=g.E(this.playerResponse.adSlots||[]),yg=Xj.next();!yg.done;yg=Xj.next()){var hy=g.D(yg.value,ei);if(hy===void 0||!kYf(hy))break;var B3=void 0,P0=(B3=hy.fulfillmentContent)==null?void 0:B3.fulfilledLayout,W0=g.D(P0,S5);if(W0&&z8(W0)){b$=!0;break a}}b$=!1}b$&&(this.WH=!0);var Cg=this.playerResponse.playerAds;if(Cg)for(var e4=d,KJ=g.E(Cg),Mj=KJ.next();!Mj.done;Mj=KJ.next()){var Gs=Mj.value;if(Gs){var Uf=Gs.playerLegacyDesktopWatchAdsRenderer;if(Uf){var uL=Uf.playerAdParams; if(uL){uL.autoplay=="1"&&(this.Ct=this.k9=!0);this.sQ=uL.encodedAdSafetyReason||null;uL.showContentThumbnail!==void 0&&(this.fp=!!uL.showContentThumbnail);e4.enabled_engage_types=uL.enabledEngageTypes;break}}}}var ar=this.playerResponse.playerConfig;if(ar){var js=ar.manifestlessWindowedLiveConfig;if(js){var uF=Number(js.minDvrSequence),bZ=Number(js.maxDvrSequence),H5=Number(js.minDvrMediaTimeMs),X6=Number(js.maxDvrMediaTimeMs),LJ=Number(js.startWalltimeMs);uF&&(this.QX=uF);H5&&(this.rO=H5/1E3,this.N("html5_sabr_parse_live_metadata_playback_boundaries")&& tw(this)&&(this.m1=H5/1E3));bZ&&(this.rH=bZ);X6&&(this.Qp=X6/1E3,this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&tw(this)&&(this.Gr=X6/1E3));LJ&&(this.vF=LJ/1E3);(uF||H5)&&(bZ||X6)&&(this.allowLiveDvr=this.isLivePlayback=this.yv=!0,this.uC=!1)}var Qg=ar.daiConfig;if(Qg){if(Qg.enableDai){this.ZY=!0;var eT=Qg.enableServerStitchedDai;eT&&(this.enableServerStitchedDai=eT);var fe=Qg.enablePreroll;fe&&(this.nL=fe)}var ef;if(Qg.daiType==="DAI_TYPE_SS_DISABLED"||((ef=Qg.debugInfo)==null?0:ef.isDisabledUnpluggedChannel))this.y8= !0;Qg.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.Y0=!0);Qg.allowUstreamerRequestAdconfig&&(this.Qz=!0)}var sf=ar.audioConfig;if(sf){var DA=sf.loudnessDb;DA!=null&&(this.LC=DA);var XsH=sf.trackAbsoluteLoudnessLkfs;XsH!=null&&(this.N9=XsH);var JM2=sf.loudnessTargetLkfs;JM2!=null&&(this.loudnessTargetLkfs=JM2);sf.audioMuted&&(this.wB=!0);sf.muteOnStart&&(this.rR=!0);var xb=sf.loudnessNormalizationConfig;if(xb){xb.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);xb.preserveStatefulLoudnessTarget&& (this.preserveStatefulLoudnessTarget=!0);var szj=xb.minimumLoudnessTargetLkfs;szj!=null&&(this.minimumLoudnessTargetLkfs=szj);var $fY=xb.maxStatefulTimeThresholdSec;$fY!=null&&(this.maxStatefulTimeThresholdSec=$fY)}sf.playAudioOnly&&(this.XF=!0)}var jcY=ar.playbackEndConfig;if(jcY){var gTQ=jcY.endSeconds,FH6=jcY.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(gTQ&&(this.endSeconds=gTQ),FH6&&(this.limitedPlaybackDurationInSeconds=FH6))}var xW=ar.fairPlayConfig;if(xW){var NRX=xW.certificate;NRX&& (this.qk=Bx(NRX));var R9N=Number(xW.keyRotationPeriodMs);R9N>0&&(this.Fc=R9N);var xfj=Number(xW.keyPrefetchMarginMs);xfj>0&&(this.LL=xfj)}var B6=ar.playbackStartConfig;if(B6){this.hC=Number(B6.startSeconds);var yMj=B6.liveUtcStartSeconds,h92=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;yMj&&!h92&&(this.liveUtcStartSeconds=Number(yMj));var aVn=B6.startPosition;if(aVn){var HRI=aVn.utcTimeMillis;HRI&&!h92&&(this.liveUtcStartSeconds=Number(HRI)*.001);var QzX=aVn.streamTimeMillis;QzX&&(this.wk= Number(QzX)*.001)}this.progressBarStartPosition=B6.progressBarStartPosition;this.progressBarEndPosition=B6.progressBarEndPosition}else{var A0f=ar.skippableSegmentsConfig;if(A0f){var Mqn=A0f.introSkipDurationMs;Mqn&&(this.pS=Number(Mqn)/1E3);var cMX=A0f.outroSkipDurationMs;cMX&&(this.N$=Number(cMX)/1E3)}}var pz1=ar.skippableIntroConfig;if(pz1){var ETf=Number(pz1.startMs),jzg=Number(pz1.endMs);isNaN(ETf)||isNaN(jzg)||(this.Pf=ETf,this.Je=jzg)}var axf=ar.streamSelectionConfig;axf&&(this.zq=Number(axf.maxBitrate)); var AM_=ar.vrConfig;AM_&&(this.bB=AM_.partialSpherical=="1");var yP=ar.webDrmConfig;if(yP){yP.skipWidevine&&(this.TP=!0);var psI=yP.widevineServiceCert;psI&&(this.zr=Bx(psI));yP.useCobaltWidevine&&(this.useCobaltWidevine=!0);yP.startWithNoQualityConstraint&&(this.wU=!0)}var D6=ar.mediaCommonConfig;if(D6){var ye=D6.dynamicReadaheadConfig;if(ye){this.maxReadAheadMediaTimeMs=ye.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=ye.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=ye.readAheadGrowthRateMs|| NaN;var ZR_,ORD=D6==null?void 0:(ZR_=D6.mediaUstreamerRequestConfig)==null?void 0:ZR_.videoPlaybackUstreamerConfig;ORD&&(this.Rg=Bx(ORD));var ZpN=D6==null?void 0:D6.sabrContextUpdates;if(ZpN&&ZpN.length>0)for(var nT6=g.E(ZpN),OpH=nT6.next();!OpH.done;OpH=nT6.next()){var oR=OpH.value;if(oR.type&&oR.value){var $4x={type:oR.type,scope:oR.scope,value:Bx(oR.value)||void 0,sendByDefault:oR.sendByDefault};this.sabrContextUpdates.set(oR.type,$4x)}}}var rMX=D6.serverPlaybackStartConfig;rMX&&(this.serverPlaybackStartConfig= rMX);D6.useServerDrivenAbr&&(this.Aq=!0);var tqN=D6.requestPipeliningConfig;tqN&&(this.requestPipeliningConfig=tqN)}var BRH=ar.inlinePlaybackConfig;BRH&&(this.Q_=!!BRH.showAudioControls);var hW=ar.embeddedPlayerConfig;if(hW){this.embeddedPlayerConfig=hW;var nQ6=hW.embeddedPlayerMode;if(nQ6){var KHj=this.C();KHj.rO=nQ6;KHj.j=nQ6==="EMBEDDED_PLAYER_MODE_PFL"}var GkH=hW.permissions;GkH&&(this.allowImaMonetization=!!GkH.allowImaMonetization)}var HM=ar.webPlayerConfig;HM&&(HM.gatewayExperimentGroup&&(this.gatewayExperimentGroup= HM.gatewayExperimentGroup),HM.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var wW=this.playerResponse.streamingData;if(wW){var r02=wW.formats;if(r02){for(var hR=[],LHI=g.E(r02),t0j=LHI.next();!t0j.done;t0j=LHI.next()){var BvN=t0j.value;hR.push(BvN.itag+"/"+BvN.width+"x"+BvN.height)}this.Uu=hR.join(",");hR=[];for(var kk6=g.E(r02),KAH=kk6.next();!KAH.done;KAH=kk6.next()){var HY=KAH.value,QP={itag:HY.itag,type:HY.mimeType,quality:HY.quality},PiX=HY.url;PiX&&(QP.url=PiX);var Qe=VR(HY),gAx=Qe.XR, F9j=Qe.oG,N7q=Qe.s;Qe.cL&&(QP.url=gAx,QP.sp=F9j,QP.s=N7q);hR.push(g.xf(QP))}this.vA=hR.join(",")}var GIQ=wW.hlsFormats;if(GIQ){var WHj=ar||null,My={};if(WHj){var LAg=WHj.audioPairingConfig;if(LAg&&LAg.pairs)for(var Ci7=g.E(LAg.pairs),kIN=Ci7.next();!kIN.done;kIN=Ci7.next()){var up2=kIN.value,P$Q=up2.videoItag;My[P$Q]||(My[P$Q]=[]);My[P$Q].push(up2.audioItag)}}for(var Dfj={},wsY=g.E(GIQ),WA7=wsY.next();!WA7.done;WA7=wsY.next()){var fx1=WA7.value;Dfj[fx1.itag]=fx1.bitrate}for(var z91=[],iRg=g.E(GIQ), C$6=iRg.next();!C$6.done;C$6=iRg.next()){var iL=C$6.value,Ef={itag:iL.itag,type:iL.mimeType,url:iL.url,bitrate:iL.bitrate,width:iL.width,height:iL.height,fps:iL.fps},cM=iL.audioTrack;if(cM){var Ix2=cM.displayName;Ix2&&(Ef.name=Ix2,Ef.audio_track_id=cM.id,cM.audioIsDefault&&(Ef.is_default="1"))}if(iL.drmFamilies){for(var mfj=[],ScN=g.E(iL.drmFamilies),uQ1=ScN.next();!uQ1.done;uQ1=ScN.next())mfj.push(uP[uQ1.value]);Ef.drm_families=mfj.join(",")}var EY=My[iL.itag];if(EY&&EY.length){Ef.audio_itag=EY.join(","); var lxf=Dfj[EY[0]];lxf&&(Ef.bitrate+=lxf)}var vTg=spD(iL);vTg&&(Ef.eotf=vTg);iL.audioChannels&&(Ef.audio_channels=iL.audioChannels);z91.push(g.xf(Ef))}this.hlsFormats=z91.join(",")}var DqQ=wW.licenseInfos;if(DqQ&&DqQ.length>0){for(var oTf={},Vqn=g.E(DqQ),wzI=Vqn.next();!wzI.done;wzI=Vqn.next()){var dOf=wzI.value,qj1=dOf.drmFamily,TK6=dOf.url;qj1&&TK6&&(oTf[uP[qj1]]=TK6)}this.ac=oTf}var Yjg=wW.drmParams;Yjg&&(this.drmParams=Yjg);var egX=wW.dashManifestUrl;egX&&(this.Ln=g.y6(egX,{cpn:this.clientPlaybackNonce})); var UOY=wW.hlsManifestUrl;UOY&&(this.hlsvp=UOY);var bzN=wW.probeUrl;bzN&&(this.probeUrl=zn(g.y6(bzN,{cpn:this.clientPlaybackNonce})));var XX1=wW.serverAbrStreamingUrl;XX1&&(this.Dc=new g.Ig(XX1,!0))}var JkQ=this.playerResponse.trackingParams;JkQ&&(this.aU=JkQ);var MX=this.playerResponse.videoDetails;if(MX){var j4=d,fVn=MX.videoId;fVn&&(this.videoId=fVn,j4.video_id||(j4.video_id=fVn));var zkD=MX.title;zkD&&(this.title=zkD,j4.title||(j4.title=zkD));var ipI=MX.lengthSeconds;ipI&&(this.lengthSeconds= Number(ipI),j4.length_seconds||(j4.length_seconds=ipI));var s3N=MX.keywords;s3N&&(this.keywords=$61(s3N));var IV6=MX.channelId;IV6&&(this.Gp=IV6,j4.ucid||(j4.ucid=IV6));var $Og=MX.viewCount;$Og&&(this.rawViewCount=Number($Og));var mq2=MX.author;mq2&&(this.author=mq2,j4.author||(j4.author=mq2));var gI2=MX.shortDescription;gI2&&(this.shortDescription=gI2);var FD7=MX.isCrawlable;FD7&&(this.isListed=FD7);var NK_=MX.musicVideoType;NK_&&(this.musicVideoType=NK_);var Sw1=MX.isLive;Sw1!=null&&(this.isLivePlayback= Sw1);if(Sw1||MX.isUpcoming)this.isPremiere=!MX.isLiveContent;var RgD=MX.thumbnail;RgD&&(this.B=zF(RgD));var xOY=MX.isExternallyHostedPodcast;xOY&&(this.isExternallyHostedPodcast=xOY);var lV6=MX.viewerLivestreamJoinPosition;if(lV6==null?0:lV6.utcTimeMillis)this.di=BZ(lV6.utcTimeMillis);var ykI=ar||null,vQQ=d;MX.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);MX.isUpcoming&&(this.isUpcoming=!0);if(MX.isPostLiveDvr){this.uC=!0;var hgj=MX.latencyClass;hgj&&(this.latencyClass=kIB[hgj]||"UNKNOWN"); MX.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var oQ2=!1;this.kx?(this.allowLiveDvr=E4()?!0:zt&&TZ<5?!1:!0,this.isLivePlayback=!0):MX.isLive?(vQQ.livestream="1",this.allowLiveDvr=MX.isLiveDvrEnabled?E4()?!0:zt&&TZ<5?!1:!0:!1,this.partnerId=27,oQ2=!0):MX.isUpcoming&&(oQ2=!0);if(MX.isLive||this.kx){MX.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var HzY=MX.latencyClass;HzY&&(this.latencyClass=kIB[HzY]||"UNKNOWN");var Q3X=MX.liveChunkReadahead;Q3X&&(this.liveChunkReadahead= Q3X);var Ko=ykI&&ykI.livePlayerConfig;if(Ko){Ko.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);Ko.hasSubfragmentedWebm&&(this.L1=!0);Ko.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var M6D=Ko.liveExperimentalContentId;M6D&&(this.liveExperimentalContentId=Number(M6D));var ckf=Ko.isLiveHeadPlayable;this.N("html5_live_head_playable")&&ckf!=null&&(this.isLiveHeadPlayable=ckf)}}oQ2&&(this.isLivePlayback=!0,vQQ.adformat&&vQQ.adformat.split("_")[1]!=="8"||this.K.push("heartbeat"))}var EI6= MX.isPrivate;EI6!==void 0&&(this.isPrivate=vL(this.isPrivate,EI6))}if(m){var j3I=MX||null,aa_=!1,Gq=m.errorScreen;aa_=Gq&&(Gq.playerLegacyDesktopYpcOfferRenderer||Gq.playerLegacyDesktopYpcTrailerRenderer||Gq.ypcTrailerRenderer)?!0:j3I&&j3I.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(m.status);if(!aa_){this.errorCode=QF6(m.errorCode)||"auth";var jB=Gq&&Gq.playerErrorMessageRenderer;if(jB){this.playerErrorMessageRenderer=jB;var Akn=jB.reason;Akn&&(this.errorReason=g.gx(Akn)); var V0D=jB.subreason;V0D&&(this.eU=g.gx(V0D),this.Ds=V0D)}else this.errorReason=m.reason||null;var dbj=m.status;if(dbj==="LOGIN_REQUIRED")this.errorDetail="1";else if(dbj==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(dbj==="AGE_CHECK_REQUIRED"){var pXI=m.errorScreen,ZzH=pXI&&pXI.playerKavRenderer;this.errorDetail=ZzH&&ZzH.kavUrl?"4":"3"}else this.errorDetail=m.isBlockedInRestrictedMode?"5":"0"}}var OzY=this.playerResponse.interstitialPods;OzY&&G81(this,OzY);this.RU&&this.eventId&&(this.RU= d7(this.RU,{ei:this.eventId}));var qS6=this.playerResponse.captions;if(qS6&&qS6.playerCaptionsTracklistRenderer)a:{var a_=qS6.playerCaptionsTracklistRenderer;this.captionTracks=[];if(a_.captionTracks)for(var nID=g.E(a_.captionTracks),TYY=nID.next();!TYY.done;TYY=nID.next()){var AK=TYY.value,rkf=JC1(AK.baseUrl);if(!rkf)break a;var YS7={is_translateable:!!AK.isTranslatable,languageCode:AK.languageCode,languageName:AK.name&&g.gx(AK.name),url:rkf,vss_id:AK.vssId,kind:AK.kind};YS7.name=AK.trackName;YS7.displayName= AK.name&&g.gx(AK.name);this.captionTracks.push(new g.CI(YS7))}this.Yh=a_.audioTracks||[];this.s1=a_.defaultAudioTrackIndex||0;this.YA=[];if(a_.translationLanguages)for(var t6Q=g.E(a_.translationLanguages),e1Q=t6Q.next();!e1Q.done;e1Q=t6Q.next()){var Lo=e1Q.value,Vd={};Vd.languageCode=Lo.languageCode;Vd.languageName=g.gx(Lo.languageName);if(Lo.translationSourceTrackIndices){Vd.translationSourceTrackIndices=[];for(var BKQ=g.E(Lo.translationSourceTrackIndices),Ubj=BKQ.next();!Ubj.done;Ubj=BKQ.next())Vd.translationSourceTrackIndices.push(Ubj.value)}if(Lo.excludeAudioTrackIndices){Vd.excludeAudioTrackIndices= [];for(var KDX=g.E(Lo.excludeAudioTrackIndices),b$Q=KDX.next();!b$Q.done;b$Q=KDX.next())Vd.excludeAudioTrackIndices.push(b$Q.value)}this.YA.push(Vd)}this.gQ=[];if(a_.defaultTranslationSourceTrackIndices)for(var GMN=g.E(a_.defaultTranslationSourceTrackIndices),XE7=GMN.next();!XE7.done;XE7=GMN.next())this.gQ.push(XE7.value);this.IK=!!a_.contribute&&!!a_.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.hC=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&k8H(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var LDg;this.compositeLiveIngestionOffsetToken=(LDg=this.playerResponse.playbackTracking)==null?void 0:LDg.compositeLiveIngestionOffsetToken;var kMn;this.compositeLiveStatusToken=(kMn=this.playerResponse.playbackTracking)==null?void 0: kMn.compositeLiveStatusToken;this.N("html5_fill_default_mosaic_audio_track_id")&&FG(this)&&(this.Mk.Fw=Vi7(this))}Hr(this,d);d.queue_info&&(this.queueInfo=d.queue_info);var PkQ=d.hlsdvr;PkQ!=null&&(this.allowLiveDvr=Number(PkQ)===1?E4()?!0:zt&&TZ<5?!1:!0:!1);this.adQueryId=d.ad_query_id||null;this.sQ||(this.sQ=d.encoded_ad_safety_reason||null);this.wB=vL(this.wB,d.infringe||d.muted);this.lJ=d.authkey;this.gq=d.authuser;this.mutedAutoplay=vL(this.mutedAutoplay,d&&d.playmuted);this.mutedAutoplayDurationMode= VB(this.mutedAutoplayDurationMode,d&&d.muted_autoplay_duration_mode);this.Qq=vL(this.Qq,d&&d.mutedautoplay);var a7=d.length_seconds;a7&&(this.lengthSeconds=typeof a7==="string"?BZ(a7):a7);if(this.isAd()||this.Qs||!g.eX(g.sm(this.Mk)))this.endSeconds=VB(this.endSeconds,this.N$||d.end||d.endSeconds);else{var RBl=g.sm(this.Mk),AW=this.lengthSeconds;switch(RBl){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":AW>30?this.limitedPlaybackDurationInSeconds=30:AW<30&&AW>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=AW*.2}}this.aU=d8(this.aU,d.itct);this.M7=vL(this.M7,d.is_live_destination);this.isLivePlayback=vL(this.isLivePlayback,d.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.aN();d.isUpcoming&&(this.isUpcoming=vL(this.isUpcoming,d.isUpcoming));this.uC=vL(this.uC,d.post_live_playback);this.yv&&(this.uC=!1);this.isMdxPlayback=vL(this.isMdxPlayback,d.mdx);var pH=d.mdx_control_mode; pH&&(this.mdxControlMode=typeof pH==="number"?pH:BZ(pH));this.isInlinePlaybackNoAd=vL(this.isInlinePlaybackNoAd,d.is_inline_playback_no_ad);this.q5=VB(this.q5,d.reload_count);this.reloadReason=d8(this.reloadReason,d.reload_reason);this.fp=vL(this.fp,d.show_content_thumbnail);this.cycToken=d.cyc||null;var WDQ=fI(d);Object.keys(WDQ).length>0&&(this.B=WDQ);this.z2=d8(this.z2,d.vvt);this.mdxEnvironment=d8(this.mdxEnvironment,d.mdx_environment);d.source_container_playlist_id&&(this.sourceContainerPlaylistId= d.source_container_playlist_id);d.serialized_mdx_metadata&&(this.serializedMdxMetadata=d.serialized_mdx_metadata);this.qSD=d.osig;this.eventId||(this.eventId=d.eventid);this.osid||(this.osid=d.osid);this.playlistId=d8(this.playlistId,d.list);d.index&&(this.playlistIndex=this.playlistIndex===void 0?VB(0,d.index):VB(this.playlistIndex,d.index));this.Al=d.pyv_view_beacon_url;this.c7=d.pyv_quartile25_beacon_url;this.CE=d.pyv_quartile50_beacon_url;this.VQ=d.pyv_quartile75_beacon_url;this.OB=d.pyv_quartile100_beacon_url; var Ck_=d.session_data;!this.KE&&Ck_&&(this.KE=mR(Ck_,"&").feature);this.isFling=VB(this.isFling?1:0,d.is_fling)===1;this.vnd=VB(this.vnd,d.vnd);this.forceAdsUrl=d8(this.forceAdsUrl,d.force_ads_url);this.jj=d8(this.jj,d.ctrl);this.OP=d8(this.OP,d.ytr);this.Eu=d.ytrcc;this.wL=d.ytrexp;this.GE=d.ytrext;this.R6=d8(this.R6,d.adformat);this.fh=d8(this.fh,d.attrib);this.slotPosition=VB(this.slotPosition,d.slot_pos);this.breakType=d.break_type;this.Nf=vL(this.Nf,d.ssrt);this.videoId=Ty(d)||this.videoId; this.X=d8(this.X,d.vss_credentials_token);this.M4=d8(this.M4,d.vss_credentials_token_type);this.XF=vL(this.XF,d.audio_only);this.xx=vL(this.xx,d.aac_high);this.lq=vL(this.lq,d.prefer_low_quality_audio);this.WD=vL(this.WD,d.uncap_inline_quality);this.N("html5_enable_qoe_cat_list")?d.qoe_cat&&(this.aF=this.aF.concat(d.qoe_cat.split(","))):this.gB=d8(this.gB,d.qoe_cat);this.EW=vL(this.EW,d.download_media);var usj=d.prefer_gapless;this.L=usj!=null?vL(this.L,usj):this.L?this.L:this.Mk.preferGapless&&this.Mk.supportsGaplessShorts(); ggX(this.playerResponse)&&this.K.push("ad");var DOH=d.adaptive_fmts;DOH&&(this.adaptiveFormats=DOH,this.oU("adpfmts",{},!0));var wXn=d.allow_embed;wXn&&(this.allowEmbed=Number(wXn)===1);var faY=d.backgroundable;faY&&(this.backgroundable=Number(faY)===1);var zg2=d.autonav;zg2&&(this.isAutonav=Number(zg2)===1);var izj=d.autoplay;izj&&(this.k9=this.Ct=Number(izj)===1);var Ia2=d.iv_load_policy;Ia2&&(this.annotationsLoadPolicy=oD(this.annotationsLoadPolicy,Ia2,$l));var mON=d.cc_lang_pref;mON&&(this.captionsLanguagePreference= d8(mON,this.captionsLanguagePreference));var SjD=d.cc_load_policy;SjD&&(this.xU=oD(this.xU,SjD,$l));var laj;this.deviceCaptionsOn=(laj=d.device_captions_on)!=null?laj:void 0;var vI7;this.CR=(vI7=d.device_captions_lang_pref)!=null?vI7:"";var oI_;this.Cd=(oI_=d.viewer_selected_caption_langs)!=null?oI_:[];var V6I=d.cached_load;V6I&&(this.Uq=vL(this.Uq,V6I));if(d.dash==="0"||d.dash===0||d.dash===!1)this.kh=!0;var dMN=d.dashmpd;dMN&&(this.Ln=g.y6(dMN,{cpn:this.clientPlaybackNonce}));var qz1=d.delay;qz1&& (this.fn=BZ(qz1));var JA6=this.N$||d.end;if(this.ev?JA6!=null:JA6!=void 0)this.clipEnd=VB(this.clipEnd,JA6);var TfQ=d.fmt_list;TfQ&&(this.Uu=TfQ);d.heartbeat_preroll&&this.K.push("heartbeat");this.Au=-Math.floor(Math.random()*10);this.WV=-Math.floor(Math.random()*40);var YzH=d.is_listed;YzH&&(this.isListed=vL(this.isListed,YzH));var e3I=d.is_private;e3I&&(this.isPrivate=vL(this.isPrivate,e3I));var UM6=d.is_dni;UM6&&(this.kc=vL(this.kc,UM6));var bPj=d.dni_color;bPj&&(this.Co=d8(this.Co,bPj));var Xo7= d.pipable;Xo7&&(this.pipable=vL(this.pipable,Xo7));this.yz=(this.tY=this.pipable&&this.Mk.H9)&&!this.Mk.showMiniplayerButton;var J57=d.paid_content_overlay_duration_ms;J57&&(this.paidContentOverlayDurationMs=BZ(J57));var so7=d.paid_content_overlay_text;so7&&(this.paidContentOverlayText=so7);var $M7=d.url_encoded_fmt_stream_map;$M7&&(this.vA=$M7);var g_1=d.hls_formats;g_1&&(this.hlsFormats=g_1);var FhH=d.hlsvp;FhH&&(this.hlsvp=FhH);var ZM=d.live_start_walltime;ZM&&(this.d6=typeof ZM==="number"?ZM: BZ(ZM));var OY=d.live_manifest_duration;OY&&(this.Ar=typeof OY==="number"?OY:BZ(OY));var NfY=d.player_params;NfY&&(this.playerParams=NfY);var R37=d.partnerid;R37&&(this.partnerId=VB(this.partnerId,R37));var xMD=d.probe_url;xMD&&(this.probeUrl=zn(g.y6(xMD,{cpn:this.clientPlaybackNonce})));var s4N=d.pyv_billable_url;s4N&&Q$2(s4N)&&(this.dZ=s4N);var $bg=d.pyv_conv_url;$bg&&Q$2($bg)&&(this.gL=$bg);gqg(this,d);this.startSeconds>0?this.N("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.hC|| this.pS||d.start||d.startSeconds)&&this.oU("lss",{css:this.startSeconds,pcss:this.hC,iss:this.pS,ps:d.start||void 0,pss:d.startSeconds||void 0}):this.lF=this.startSeconds=VB(this.startSeconds,this.hC||this.pS||d.start||d.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var y5N=d.live_utc_start;if(y5N!=null)this.liveUtcStartSeconds=Number(y5N);else{var gjX=this.startSeconds;gjX&&isFinite(gjX)&&gjX>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var h3f=d.utc_start_millis;h3f&&(this.liveUtcStartSeconds=Number(h3f)*.001)}var HP7=d.stream_time_start_millis;HP7&&(this.wk=Number(HP7)*.001);var FTN=this.pS||d.start;(this.ev?FTN==null||Number(d.resume)===1:FTN==void 0||d.resume=="1")||this.isLivePlayback||(this.clipStart=VB(this.clipStart,FTN));var Qon=d.url_encoded_third_party_media;Qon&&(this.j8=vq(Qon));var NY2=d.ypc_offer_button_formatted_text;if(NY2){var MMI=JSON.parse(NY2);this.Vq=MMI!=null?MMI:null;this.Pk=NY2}var c5g= d.ypc_offer_button_text;c5g&&(this.Fs=c5g);var E_D=d.ypc_offer_description;E_D&&(this.W$=E_D);var joY=d.ypc_offer_headline;joY&&(this.DT=joY);var a9I=d.ypc_full_video_message;a9I&&(this.H$=a9I);var A5_=d.ypc_offer_id;A5_&&(this.If=A5_);var poH=d.ypc_buy_url;poH&&(this.qK=poH);var ZPf=d.ypc_item_thumbnail;ZPf&&(this.NK=ZPf);var OP2=d.ypc_item_title;OP2&&(this.JW=OP2);var n_f=d.ypc_item_url;n_f&&(this.Lh=n_f);var r5_=d.ypc_vid;r5_&&(this.r3=r5_);d.ypc_overlay_timeout&&(this.yl=Number(d.ypc_overlay_timeout)); var tM1=d.ypc_trailer_player_vars;tM1&&(this.Yz=lF(tM1));var Bf2=d.ypc_original_itct;Bf2&&(this.pr5=Bf2);this.Gp=d8(this.Gp,d.ucid);this.iA=d.storyboard_spec||null;this.gx=d.live_storyboard_spec||null;this.uD=d.iv_endscreen_url||null;this.B3=vL(this.B3,d.ypc_module);this.Kz=vL(this.Kz,d.ypc_clickwrap_module);this.B3&&this.K.push("ypc");this.Kz&&this.K.push("ypc_clickwrap");this.iP={video_id:d.video_id,eventid:d.eventid,cbrand:d.cbrand,cbr:d.cbr,cbrver:d.cbrver,c:d.c,cver:d.cver,ctheme:d.ctheme,cplayer:d.cplayer, cmodel:d.cmodel,cnetwork:d.cnetwork,cos:d.cos,cosver:d.cosver,cplatform:d.cplatform,user_age:d.user_age,user_display_image:d.user_display_image,user_display_name:d.user_display_name,user_gender:d.user_gender,csi_page_type:d.csi_page_type,csi_service_name:d.csi_service_name,enablecsi:d.enablecsi,enabled_engage_types:d.enabled_engage_types};X_j(this,d);var Kh2=d.cotn;Kh2&&(this.cotn=Kh2);if(jxj(this))GC(this)&&(this.isLivePlayback&&this.Ln&&(this.E$=!0),this.qk&&(this.rK=!0));else if(awj(this))this.E$= !0;else{var G0f,LhN,k0f=((G0f=this.playerResponse)==null?void 0:(LhN=G0f.streamingData)==null?void 0:LhN.adaptiveFormats)||[];if(k0f.length>0)var Mm=Eq1(this,k0f);else{var Psn=this.adaptiveFormats;if(Psn&&!GC(this)){this.Mk.S.j&&(d6=!0);var kX=Du(Psn),R1g=this.ac,Whg=this.lengthSeconds,x4N=this.isLivePlayback,cY=this.uC,P6=this.Mk,ydl=jpY(kX);if(x4N||cY){var CsQ=P6==null?void 0:P6.experiments,KF=new Wb("",CsQ,!0);KF.aN=!0;KF.isManifestless=!0;KF.U=!cY;KF.isLive=!cY;KF.uC=cY;for(var ut2=g.E(kX),xbf= ut2.next();!xbf.done;xbf=ut2.next()){var W6=xbf.value,DMI=wT(W6,R1g),d4=fy(W6.url,W6.sp,W6.s),woI=d4.get("id");woI&&woI.includes("%7E")&&(KF.K=!0);var f9Y=void 0,hBq=(f9Y=CsQ)==null?void 0:f9Y.Wv("html5_max_known_end_time_rebase"),HZ_=Number(W6.target_duration_sec)||5,QDq=Number(W6.max_dvr_duration_sec)||14400,z3N=Number(d4.get("mindsq")||d4.get("min_sq")||"0"),iPj=Number(d4.get("maxdsq")||d4.get("max_sq")||"0")||Infinity;KF.QX=KF.QX||z3N;KF.rH=KF.rH||iPj;var Mej=!iW(DMI.mimeType);d4&&Ly(KF,new Q8(d4, DMI,{W3:HZ_,RF:Mej,nW:QDq,QX:z3N,rH:iPj,Fp:300,uC:cY,qx:hBq}))}var I92=KF}else{if(ydl==="FORMAT_STREAM_TYPE_OTF"){var nH=Whg;nH=nH===void 0?0:nH;var Co=new Wb("",P6==null?void 0:P6.experiments,!1);Co.duration=nH||0;for(var mMY=g.E(kX),yAX=mMY.next();!yAX.done;yAX=mMY.next()){var uz=yAX.value,h1_=wT(uz,R1g,Co.duration),H$1=fy(uz.url,uz.sp,uz.s);if(H$1)if(h1_.streamType==="FORMAT_STREAM_TYPE_OTF")Ly(Co,new MG(H$1,h1_,"sq/0"));else{var cdQ=o8(uz.init),EAs=o8(uz.index);Ly(Co,new Bb(H$1,h1_,cdQ,EAs))}}Co.isOtf= !0;var Szn=Co}else{var rZ=Whg;rZ=rZ===void 0?0:rZ;var tW=new Wb("",P6==null?void 0:P6.experiments,!1);tW.duration=rZ||0;for(var l9H=g.E(kX),Q4I=l9H.next();!Q4I.done;Q4I=l9H.next()){var DS=Q4I.value,jDc=wT(DS,R1g,tW.duration),aqc=o8(DS.init),Adj=o8(DS.index),v_X=fy(DS.url,DS.sp,DS.s);v_X&&Ly(tW,new Bb(v_X,jDc,aqc,Adj))}Szn=tW}I92=Szn}var o_1=I92;if(kX.length>0){var VM_=kX[0];if(this.C().playerStyle==="hangouts-meet"&&VM_.url){var pLN=g.oE(VM_.url);this.tW=this.tW||Number(pLN.expire)}}var ZZL=this.isLivePlayback&& !this.uC&&!this.yv&&!this.isPremiere;this.N("html5_live_head_playable")&&(!Lt(this)&&ZZL&&this.oU("missingLiveHeadPlayable",{}),this.Mk.lr==="yt"&&(o_1.RU=!0));Mm=o_1}else Mm=null;this.oU("pafmts",{isManifestFilled:!!Mm})}if(Mm){Wr(this,Mm);var dyH=!0}else dyH=!1;dyH?this.enableServerStitchedDai=this.enableServerStitchedDai&&kp(this):this.Ln&&(this.Mk.lr==="yt"&&this.aN()&&this.N("drm_manifestless_unplugged")&&this.N("html5_deprecate_manifestful_fallback")?this.oU("deprecateMflFallback",{}):this.E$= !0)}var ME6=d.adpings;ME6&&(this.aZ=ME6?lF(ME6):null);var qYj=d.feature;qYj&&(this.sx=qYj);var TZf=d.referrer;TZf&&(this.referrer=TZf);this.clientScreenNonce=d8(this.clientScreenNonce,d.csn);this.Dk=VB(this.Dk,d.root_ve_type);this.t5=VB(this.t5,d.kids_age_up_mode);this.ev||d.kids_app_info==void 0||(this.kidsAppInfo=d.kids_app_info);this.ev&&d.kids_app_info!=null&&(this.kidsAppInfo=d.kids_app_info);this.ZD=vL(this.ZD,d.upg_content_filter_mode);this.unpluggedFilterModeType=VB(this.unpluggedFilterModeType, d.unplugged_filter_mode_type);var YYI=d.unplugged_location_info;YYI&&(this.zX=YYI);var eQf=d.unplugged_partner_opt_out;eQf&&(this.iq=d8("",eQf));this.G_=vL(this.G_,d.disable_watch_next);this.T_=d8(this.T_,d.internal_ip_override);this.Q8=!!d.is_yto_interstitial;(this.interstitials.length||this.Q8)&&this.K.push("yto");var Uy7=d.BK;Uy7&&(this.BK=Uy7);this.lr=d8(this.lr,d.csi_timer);d.watchUrl&&(this.watchUrl=d.watchUrl);var q9=d.watch_endpoint;this.N("html5_attach_watch_endpoint_ustreamer_config")&& q9&&Eb2(this,q9);if(q9==null?0:q9.ustreamerConfig)this.vO=Bx(q9.ustreamerConfig);var bHY,XMY,JWH=q9==null?void 0:(bHY=q9.loggingContext)==null?void 0:(XMY=bHY.qoeLoggingContext)==null?void 0:XMY.serializedContextData;JWH&&(this.ykO=JWH);g.dn(this.Mk)&&this.Mk.zr&&(this.embedsRct=d8(this.embedsRct,d.rct),this.embedsRctn=d8(this.embedsRctn,d.rctn));d.embed_config&&(this.eC=d.embed_config);this.PR=this.PR||!!d.pause_at_start;d.default_active_source_video_id&&(this.defaultActiveSourceVideoId=d.default_active_source_video_id)}; g.Q.C=function(){return this.Mk}; g.Q.N=function(d){return this.Mk.N(d)}; g.Q.Oc=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.Q.hasSupportedAudio51Tracks=function(){var d;return!((d=this.rA)==null||!d.Bv)}; g.Q.getUserAudio51Preference=function(){var d=1;Em(this.Mk)&&this.N("html5_ytv_surround_toggle_default_off")?d=0:g.Qv(this.Mk)&&this.isLivePlayback&&this.It()&&(d=0);var q;return(q=g.Zs("yt-player-audio51"))!=null?q:d}; g.Q.kf=function(){this.JF()||(this.G.U||this.G.unsubscribe("refresh",this.kf,this),this.GJ(-1))}; g.Q.GJ=function(d){if(!this.isLivePlayback||!this.S||this.S.flavor!=="fairplay"){var q=AeN(this.G,this.j1);if(q.length>0){for(var T=g.E(q),Y=T.next();!Y.done;Y=T.next())Y=Y.value,Y.startSecs=Math.max(Y.startSecs,this.BG()),this.N("html5_cuepoint_identifier_logging")&&Y.event==="start"&&this.oU("cuepoint",{pubCue:Y.identifier,segNum:d});this.publish("cuepointupdated",q,d);this.j1+=q.length;if(kp(this)&&this.Mk.uF())for(q=g.E(q),T=q.next();!T.done;T=q.next())T=T.value,this.oU("cuepoint",{segNum:d,event:T.event, startSecs:T.startSecs,id:T.identifier.slice(-16)}),T.event==="start"&&(T=T.startSecs,this.yq.start=this.ST,this.yq.end=T+3)}}}; g.Q.kM=function(){this.JF()||(this.loading=!1,this.publish("dataloaded"))}; g.Q.It=function(){return this.pL!==void 0?this.pL:this.pL=!!this.ac||!!this.G&&WI(this.G)}; g.Q.LR=function(d){var q=this;if(this.JF())return Ad();this.qC=this.AF=this.j=null;HU(this,"html5_high_res_logging_always")&&(this.Mk.R6=!0);return O6_(this,d).then(void 0,function(){return rCj(q,d)}).then(void 0,function(){return tij(q)}).then(void 0,function(){return KoD(q)})}; g.Q.Vc=function(d){this.j=d;nqn(this,this.j.getAvailableAudioTracks());if(this.j){d=g.E(this.j.videoInfos);for(var q=d.next();!q.done;q=d.next()){q=q.value;var T=q.containerType;T!==0&&(this.Xc[T]=q.id)}}d=this.getAvailableAudioTracks();d=d.concat(this.Pa);for(q=0;q0?this.j.getAvailableAudioTracks():this.K8||[]:[]}; g.Q.getAudioTrack=function(){var d=this;if(this.T&&!uW(this.T)){var q=g.QN(this.getAvailableAudioTracks(),function(e){return e.id===d.T.id}),T; if(!q&&((T=this.T.DQ)==null?0:T.id)){var Y=this.T.DQ.id;q=g.QN(this.getAvailableAudioTracks(),function(e){return e.DQ.id===Y}); this.oU("nat",{id:this.T.id,track:!!q})}return q||this.Pa}if(this.K8){if(!this.Se)for(q=g.E(this.K8),T=q.next();!T.done;T=q.next())if(T=T.value,T.DQ.getIsDefault()){this.Se=T;break}return this.Se||this.Pa}return this.Pa}; g.Q.getPlayerResponse=function(){return this.playerResponse}; g.Q.getWatchNextResponse=function(){return this.dO}; g.Q.getHeartbeatResponse=function(){return this.ov}; g.Q.Xk=function(){return this.watchUrl?this.watchUrl:this.Mk.getVideoUrl(this.videoId)}; g.Q.P5=function(){return!!this.G&&(yeY(this.G)||h0g(this.G)||HkQ(this.G))}; g.Q.getEmbeddedPlayerResponse=function(){return this.mV}; g.Q.mT=function(){return(this.eventLabel||this.Mk.z2)==="shortspage"}; g.Q.isAd=function(){return!!this.adFormat}; g.Q.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.Q.y5=function(){var d,q,T;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((d=this.playerResponse)==null?0:(q=d.playerConfig)==null?0:(T=q.daiConfig)==null?0:T.ssaEnabledPlayback)}; g.Q.ZK=function(){return this.oy}; g.Q.Gi=function(){return this.B3||this.Vt}; g.Q.qr=function(){return HU(this,"html5_samsung_vp9_live")}; g.Q.oU=function(d,q,T){this.publish("ctmp",d,q,T)}; g.Q.f_=function(d,q,T){this.publish("ctmpstr",d,q,T)}; g.Q.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.Q.getGetAdBreakContext=function(d,q){d=d===void 0?NaN:d;q=q===void 0?NaN:q;var T={isSabr:tw(this)},Y,e=(Y=this.getHeartbeatResponse())==null?void 0:Y.adBreakHeartbeatParams;e&&(T.adBreakHeartbeatParams=e);if(this.N("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.G&&!isNaN(d)&&!isNaN(q)){q=d-q;for(var U in this.G.G)if(Y=this.G.G[U],Y.info.eh()||Y.info.JE())if(Y=Y.index,Y.isLoaded()){U=Y.yg(q);Y=Y.fH(U)+q-Y.getStartTime(U);this.oU("gabc",{t:d.toFixed(3),mt:q.toFixed(3),sg:U,igt:Y.toFixed(3)}); T.livePlaybackPosition={utcTimeMillis:""+(Y*1E3).toFixed(0)};break}}return T}; g.Q.isEmbedsShortsMode=function(d,q){if(!g.dn(this.Mk)||(this.Mk.rO||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||q)return!1;var T,Y;return!!(((T=this.embeddedPlayerConfig)==null?0:(Y=T.embeddedPlayerFlags)==null?0:Y.isShortsExperienceEligible)&&d.width<=d.height)}; g.Q.ir=function(){g.YP.prototype.ir.call(this);this.aZ=null;delete this.d2;delete this.accountLinkingConfig;delete this.G;this.j=this.ov=this.playerResponse=this.dO=null;this.vA=this.adaptiveFormats="";delete this.botguardData;this.Fw=this.suggestions=this.u3=null;this.sabrContextUpdates.clear()};var $7H={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},gCY={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},JHI={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},U7j={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"},XNY={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},b0_={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"},sm_={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.M(a6,g.W);g.Q=a6.prototype;g.Q.handleExternalCall=function(d,q,T){var Y=this.state.L[d],e=this.state.B[d],U=Y;if(e)if(T&&Dp(T,VV_))U=e;else if(!Y)throw Error('API call from an untrusted origin: "'+T+'"');this.logApiCall(d,T);if(U){T=!1;Y=g.E(q);for(e=Y.next();!e.done;e=Y.next())if(String(e.value).includes("javascript:")){T=!0;break}T&&g.OL(Error('Dangerous call to "'+d+'" with ['+q+"]."));return U.apply(this,q)}throw Error('Unknown API method: "'+d+'".');}; g.Q.logApiCall=function(d,q,T){var Y=this.app.C();Y.Se&&!this.state.K.has(d)&&(this.state.K.add(d),g.Ta("webPlayerApiCalled",{callerUrl:Y.loaderUrl,methodName:d,origin:q||void 0,playerStyle:Y.playerStyle||void 0,embeddedPlayerMode:Y.rO,errorCode:T}))}; g.Q.publish=function(d){var q=g.CN.apply(1,arguments);this.state.j.publish.apply(this.state.j,[d].concat(g.RQ(q)));if(d==="videodatachange"||d==="resize"||d==="cardstatechange")this.state.U.publish.apply(this.state.U,[d].concat(g.RQ(q))),this.state.T.publish.apply(this.state.T,[d].concat(g.RQ(q)))}; g.Q.gO=function(d){var q=g.CN.apply(1,arguments);this.state.j.publish.apply(this.state.j,[d].concat(g.RQ(q)));this.state.U.publish.apply(this.state.U,[d].concat(g.RQ(q)))}; g.Q.US=function(d){var q=g.CN.apply(1,arguments);this.state.j.publish.apply(this.state.j,[d].concat(g.RQ(q)));this.state.U.publish.apply(this.state.U,[d].concat(g.RQ(q)));this.state.T.publish.apply(this.state.T,[d].concat(g.RQ(q)))}; g.Q.uv=function(d){var q=g.CN.apply(1,arguments);this.state.j.publish.apply(this.state.j,[d].concat(g.RQ(q)));this.state.U.publish.apply(this.state.U,[d].concat(g.RQ(q)));this.state.T.publish.apply(this.state.T,[d].concat(g.RQ(q)));this.state.S.publish.apply(this.state.S,[d].concat(g.RQ(q)))}; g.Q.N=function(d){return this.app.C().N(d)}; g.Q.ir=function(){if(this.state.element){var d=this.state.element,q;for(q in this.state.G)this.state.G.hasOwnProperty(q)&&(d[q]=null);this.state.element=null}g.W.prototype.ir.call(this)};g.M(nV,g.Mg);nV.prototype.publish=function(d){var q=g.CN.apply(1,arguments);if(this.S.has(d))return this.S.get(d).push(q),!0;var T=!1;try{for(q=[q],this.S.set(d,q);q.length;)T=g.Mg.prototype.publish.call.apply(g.Mg.prototype.publish,[this,d].concat(g.RQ(q.shift())))}finally{this.S.delete(d)}return T};g.M(rm,g.W);rm.prototype.ir=function(){this.S.dispose();this.T.dispose();this.U.dispose();this.j.dispose();this.K=this.G=this.B=this.L=this.X=void 0};var H0Y=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.M(BU,a6);g.Q=BU.prototype;g.Q.getApiInterface=function(){return Array.from(this.state.X)}; g.Q.CK=function(d,q){this.state.S.subscribe(d,q)}; g.Q.TAw=function(d,q){this.state.S.unsubscribe(d,q)}; g.Q.getPlayerState=function(d){return dWn(this.app,d)}; g.Q.ix=function(){return dWn(this.app)}; g.Q.mUD=function(d,q,T){LV(this)&&(Dj(this.app,!0,1),zr(this.app,d,q,T,1))}; g.Q.getCurrentTime=function(d,q,T){var Y=this.getPlayerState(d);if(this.app.getAppState()===2&&Y===5){var e;return((e=this.app.getVideoData())==null?void 0:e.startSeconds)||0}return this.N("web_player_max_seekable_on_ended")&&Y===0?Ll(this.app,d):d?this.app.getCurrentTime(d,q,T):this.app.getCurrentTime(d)}; g.Q.Zx=function(){return this.app.getCurrentTime(1)}; g.Q.Gl=function(){var d=this.app.fH(1);return isNaN(d)?this.getCurrentTime(1):d}; g.Q.k5=function(){return this.app.getDuration(1)}; g.Q.fP=function(d,q){d=g.Cn(Math.floor(d),0,100);isFinite(d)&&Kl(this.app,{volume:d,muted:this.isMuted()},q)}; g.Q.Cvr=function(d){this.fP(d,!1)}; g.Q.zR=function(d){Kl(this.app,{muted:!0,volume:this.getVolume()},d)}; g.Q.zgx=function(){this.zR(!1)}; g.Q.md=function(d){GJ(this.app)&&!this.N("embeds_enable_emc3ds_muted_autoplay")||Kl(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},d)}; g.Q.N12=function(){GJ(this.app)&&this.N("embeds_enable_emc3ds_muted_autoplay")||this.md(!1)}; g.Q.getPlayerMode=function(){var d={};this.app.getVideoData().kc&&(d.pfp={enableIma:this.app.GX().allowImaMonetization,autoplay:sF(this.app.GX()),mutedAutoplay:this.app.GX().mutedAutoplay});return d}; g.Q.Wg=function(){var d=this.app.getPresentingPlayerType();if(d===2&&!this.app.ZY()){var q=Wc(this.app.M5());if(!(qII(q)||g.dn(this.app.C())&&g.I(this.app.Lf().getPlayerState(),1024))||TLI(q))return}(q=this.app.v3().Ig)?q.playVideo():this.app.playVideo(d)}; g.Q.eU5=function(){Dj(this.app,!0,1);this.Wg()}; g.Q.pauseVideo=function(d){var q=this.app.getPresentingPlayerType();if(q!==2||this.app.ZY()||qII(Wc(this.app.M5()))){var T=this.app.v3().Ig;T?T.pauseVideo():this.app.pauseVideo(q,d)}}; g.Q.QlD=function(){var d=this.app,q=!1;d.Pv.vF&&(d.mZ.publish("pageTransition"),q=!0);d.stopVideo(q)}; g.Q.clearVideo=function(){}; g.Q.getAvailablePlaybackRates=function(){var d=this.app.C();return d.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(d.T?d.ancestorOrigins[0]:window.location.origin)||d.Nf?ZTj:d.supportsVarispeedExtendedFeatures?OTl:d.N("web_remix_allow_up_to_3x_playback_rate")&&g.KG(d)?nEI:K8:[1]}; g.Q.getPlaybackQuality=function(d){return(d=this.app.YP(d))?d.getPlaybackQuality():"unknown"}; g.Q.gPr=function(){}; g.Q.getAvailableQualityLevels=function(d){return(d=this.app.YP(d))?(d=g.yC(d.N4(),function(q){return q.quality}),d.length&&(d[0]==="auto"&&d.shift(),d=d.concat(["auto"])),d):[]}; g.Q.AM=function(){return this.getAvailableQualityLevels(1)}; g.Q.tB=function(){return this.So()}; g.Q.zl=function(){return 1}; g.Q.getVideoLoadedFraction=function(d){return this.app.getVideoLoadedFraction(d)}; g.Q.So=function(){return this.getVideoLoadedFraction()}; g.Q.YW=function(){return 0}; g.Q.getSize=function(){var d=this.app.OD().getPlayerSize();return{width:d.width,height:d.height}}; g.Q.setSize=function(){this.app.OD().resize()}; g.Q.loadVideoById=function(d,q,T,Y){if(!d)return!1;d=t7(d,q,T);return this.app.loadVideoByPlayerVars(d,Y)}; g.Q.Fv=function(d,q,T){d=this.loadVideoById(d,q,T,1);Dj(this.app,d,1)}; g.Q.cueVideoById=function(d,q,T,Y){d=t7(d,q,T);this.app.cueVideoByPlayerVars(d,Y)}; g.Q.e6=function(d,q,T){this.cueVideoById(d,q,T,1)}; g.Q.loadVideoByUrl=function(d,q,T,Y){d=hfQ(d,q,T);return this.app.loadVideoByPlayerVars(d,Y)}; g.Q.AQ=function(d,q,T){d=this.loadVideoByUrl(d,q,T,1);Dj(this.app,d,1)}; g.Q.cueVideoByUrl=function(d,q,T,Y){d=hfQ(d,q,T);this.app.cueVideoByPlayerVars(d,Y)}; g.Q.LQ=function(d,q,T){this.cueVideoByUrl(d,q,T,1)}; g.Q.bx=function(){var d=this.app.C();if(d.UD)return"";var q=this.app.GX(),T=void 0;q.isLivePlayback||(T=Math.floor(this.app.getCurrentTime(1)));return d.getVideoUrl(q.videoId,this.getPlaylistId()||void 0,T)}; g.Q.Ci=function(){return this.app.getDebugText()}; g.Q.getVideoEmbedCode=function(){var d=this.app.C();if(d.UD)return"";var q=this.app.GX();return d.getVideoEmbedCode(q.isPrivate?"":q.title,this.app.GX().videoId,this.app.OD().getPlayerSize(),this.getPlaylistId()||void 0)}; g.Q.ZU=function(d,q,T){return Jvg(this.app,d,q,T)}; g.Q.removeCueRange=function(d){return this.app.XA(d)}; g.Q.loadPlaylist=function(d,q,T,Y){this.app.loadPlaylist(d,q,T,Y)}; g.Q.NP=function(d,q,T,Y){this.loadPlaylist(d,q,T,Y);Dj(this.app,!0,1)}; g.Q.cuePlaylist=function(d,q,T,Y){this.app.cuePlaylist(d,q,T,Y)}; g.Q.nextVideo=function(d,q){this.app.nextVideo(d,q)}; g.Q.pvk=function(){this.nextVideo();Dj(this.app,!0,1)}; g.Q.previousVideo=function(d){this.app.previousVideo(d)}; g.Q.OHD=function(){this.previousVideo();Dj(this.app,!0,1)}; g.Q.playVideoAt=function(d){this.app.playVideoAt(d)}; g.Q.Eok=function(d){this.playVideoAt(d);Dj(this.app,!0,1)}; g.Q.setShuffle=function(d){var q=this.app.getPlaylist();q&&q.setShuffle(d)}; g.Q.setLoop=function(d){var q=this.app.getPlaylist();q&&(q.loop=d)}; g.Q.y7=function(){var d=this.app.getPlaylist();if(!d)return null;for(var q=[],T=0;T=400)if(d=this.GX(),this.J.C().N("client_respect_autoplay_switch_button_renderer"))d=!!d.autoplaySwitchButtonRenderer;else{var q,T,Y,e;d=!!((q=d.getWatchNextResponse())==null?0:(T=q.contents)==null?0:(Y=T.twoColumnWatchNextResults)==null?0:(e=Y.autoplay)==null?0:e.autoplay)!==!1}if(d)this.G||(this.G=!0,this.OM(this.G),this.J.C().N("web_player_autonav_toggle_always_listen")||wN2(this), q=this.GX(),this.b7(q.autonavState),this.J.logVisibility(this.element,this.G));else if(this.G=!1,this.OM(this.G),!this.J.C().N("web_player_autonav_toggle_always_listen"))for(this.J.C().N("web_player_autonav_toggle_always_listen"),q=g.E(this.U),T=q.next();!T.done;T=q.next())this.t1(T.value)}; g.Q.b7=function(d){zfY(this)?this.isChecked=d!==1:((d=d!==1)||(g.KW(),d=g.RD("web_autonav_allow_off_by_default")&&!g.Gy(0,141)&&g.Cs("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Gy(0,140)),this.isChecked=d);f42(this)}; g.Q.onClick=function(){this.isChecked=!this.isChecked;this.J.Eh(this.isChecked?2:1);f42(this);if(zfY(this)){var d=this.GX().autoplaySwitchButtonRenderer;this.isChecked&&(d==null?0:d.onEnabledCommand)?this.J.gO("innertubeCommand",d.onEnabledCommand):!this.isChecked&&(d==null?0:d.onDisabledCommand)&&this.J.gO("innertubeCommand",d.onDisabledCommand)}this.J.logClick(this.element)}; g.Q.getValue=function(){return this.isChecked}; g.Q.GX=function(){return this.J.getVideoData(1)};g.M(i07,xT);g.M(jq,g.gR);jq.prototype.onClick=function(){this.enabled&&(az(this,!this.checked),this.publish("select",this.checked))}; jq.prototype.getValue=function(){return this.checked}; jq.prototype.setEnabled=function(d){(this.enabled=d)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var Zx=["en-CA","en","es-MX","fr-CA"];g.M(Bs,jq);Bs.prototype.S5=function(d){d?this.G||(this.TG.rk(this),this.G=!0):this.G&&(this.TG.e$(this),this.G=!1);this.G&&az(this,ubY())}; Bs.prototype.T=function(){g.TR(this.element,"ytp-menuitem-highlight-transition-enabled")}; Bs.prototype.j=function(d){var q=ubY();d!==q&&(q=g.KW(),kO(190,d),kO(192,!0),q.save(),this.J.gO("cinematicSettingsToggleChange",d))}; Bs.prototype.ir=function(){this.G&&this.TG.e$(this);jq.prototype.ir.call(this)};g.M(KR,xT);KR.prototype.updateCinematicSettings=function(d){this.G=d;var q;(q=this.menuItem)==null||q.S5(d);this.api.publish("onCinematicSettingsVisibilityChange",d)};g.M(vCj,xT);g.M(Gk,xT);Gk.prototype.setCreatorEndscreenVisibility=function(d){var q;(q=wV(this.api.M5()))==null||q.OM(d)}; Gk.prototype.G=function(d){function q(Y){Y==="creatorendscreen"&&(Y=wV(T.api.M5()))&&Y.xUv(T.hideButton)} var T=this;this.hideButton=d;this.events.W(this.api,"modulecreated",q);q("creatorendscreen")};g.M(LR,jq);LR.prototype.T=function(d){this.j(d?1:0)}; LR.prototype.U=function(){var d=this.hasDrcAudioTrack(),q=this.G()===1&&d;az(this,q);this.setEnabled(d)}; LR.prototype.ir=function(){this.TG.e$(this);jq.prototype.ir.call(this)};g.M(kT,xT);kT.prototype.getDrcUserPreference=function(){return this.G}; kT.prototype.setDrcUserPreference=function(d){g.pW("yt-player-drc-pref",d,31536E3);d!==this.G&&(this.G=d,this.updateEnvironmentData(),this.U()&&this.api.Ql())}; kT.prototype.updateEnvironmentData=function(){this.api.C().XF=this.G===1}; kT.prototype.U=function(){var d,q,T=(d=this.api.getVideoData())==null?void 0:(q=d.j)==null?void 0:q.G;if(!T)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.N("mta_drc_mutual_exclusion_removal")){var Y,e,U=(Y=this.api.n9())==null?void 0:(e=Y.DQ)==null?void 0:e.id;return D7(T,function(b){var J;return b.audio.G&&((J=b.DQ)==null?void 0:J.id)===U})}return D7(T,function(b){var J; return((J=b.audio)==null?void 0:J.G)===!0})};g.M(Ps,xT);Ps.prototype.onVideoDataChange=function(){var d=this,q=this.api.getVideoData();this.api.hm("embargo",1);var T=q==null?void 0:q.fd.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(T==null?0:T.length)?VNg(this,T.filter(function(Y){return oC2(d,Y)})):(q==null?0:q.cueRanges)&&VNg(this,q.cueRanges.filter(function(Y){return oC2(d,Y)}))}; Ps.prototype.U=function(d){return d.embargo!==void 0}; Ps.prototype.ir=function(){xT.prototype.ir.call(this);this.G={}};g.M(Ws,xT); Ws.prototype.addEmbedsConversionTrackingParams=function(d){var q=this.api.C(),T=q.widgetReferrer,Y=q.Ln,e=this.G,U="",b=q.getWebPlayerContextConfig();b&&(U=b.embedsIframeOriginParam||"");T.length>0&&(d.embeds_widget_referrer=T);Y.length>0&&(d.embeds_referring_euri=Y);q.T&&U.length>0&&(d.embeds_referring_origin=U);b&&b.embedsFeature&&(d.feature=b.embedsFeature);e.length>0&&(q.N("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.eX(g.sm(q))&&e.unshift(159628),q=e.join(","),q= g.WL()?q:g.pp(q,4),d.source_ve_path=q);this.G.length=0};g.M(de_,xT);g.M(qo2,xT);g.M(CR,g.W);CR.prototype.ir=function(){g.W.prototype.ir.call(this);this.G=null;this.U&&this.U.disconnect()};g.M(YoQ,xT);g.M(ui,g.f);ui.prototype.show=function(){g.f.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; ui.prototype.stopTimer=function(){this.G&&(this.G.dispose(),this.G=null)}; ui.prototype.onVideoDataChange=function(d){var q,T,Y=(q=this.api.getVideoData())==null?void 0:(T=q.getPlayerResponse())==null?void 0:T.playabilityStatus;Y&&(q=eH1(Y),g.I(this.api.getPlayerStateObject(),128)||d==="dataloaderror"||!q?(this.U=0,this.stopTimer(),this.hide()):(d=(q.remainingTimeSecs||0)*1E3,d>0&&(this.show(),this.updateValue("label",D4(q.label)),bYI(this,d))))}; ui.prototype.ir=function(){this.stopTimer();g.f.prototype.ir.call(this)};g.M(XIg,xT);g.M(Dx,g.f);Dx.prototype.onClick=function(){this.mZ.logClick(this.element);this.mZ.gO("onFullerscreenEduClicked")}; Dx.prototype.S5=function(){this.mZ.isFullscreen()?this.G?this.fade.hide():this.fade.show():this.hide();this.mZ.logVisibility(this.element,this.mZ.isFullscreen()&&!this.G)};g.M(wR,xT);wR.prototype.updateFullerscreenEduButtonSubtleModeState=function(d){var q;(q=this.G)!=null&&(g.ep(q.element,"ytp-fullerscreen-edu-button-subtle",d),d&&!q.U&&(q.mZ.N("player_tooltip_data_title_killswitch")?q.element.setAttribute("title","\u6eda\u52a8\u6d4f\u89c8\u8be6\u60c5"):q.element.setAttribute("data-tooltip-title","\u6eda\u52a8\u6d4f\u89c8\u8be6\u60c5"),D$(q.mZ,q.element,q),q.U=!0))}; wR.prototype.updateFullerscreenEduButtonVisibility=function(d){var q;(q=this.G)!=null&&(q.G=d,q.S5())};g.M(JFg,g.f);g.M(ge1,xT);g.M(fR,xT);fR.prototype.getSphericalProperties=function(){var d=g.lH(this.api.M5());return d?d.getSphericalProperties():{}}; fR.prototype.setSphericalProperties=function(d){if(d){var q=g.lH(this.api.M5());q&&q.setSphericalProperties(d,!0)}};g.M(zk,xT);g.Q=zk.prototype;g.Q.createClientVe=function(d,q,T,Y){this.api.createClientVe(d,q,T,Y===void 0?!1:Y)}; g.Q.createServerVe=function(d,q,T){this.api.createServerVe(d,q,T===void 0?!1:T)}; g.Q.setTrackingParams=function(d,q){this.api.setTrackingParams(d,q)}; g.Q.logClick=function(d,q){this.api.logClick(d,q)}; g.Q.logVisibility=function(d,q,T){this.api.logVisibility(d,q,T)}; g.Q.hasVe=function(d){return this.api.hasVe(d)}; g.Q.destroyVe=function(d){this.api.destroyVe(d)};var NjN=!1;Iz.prototype.setPlaybackRate=function(d){this.playbackRate=Math.max(1,d)}; Iz.prototype.getPlaybackRate=function(){return this.playbackRate};oz.prototype.sE=function(d){var q=g.DB(d.info.G.info,this.vv.aN),T=d.info.sD+this.T,Y=d.info.startTime*1E3;if(this.policy.AF)try{Y=this.policy.AF?g.py(d)*1E3:d.info.startTime*1E3}catch(b){Math.random()>.99&&this.logger&&(Y=g5(d.U).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:d.info.jt(),encodedDataView:g.A0(Y,4)})),Y=d.info.startTime*1E3}var e=d.info.clipId,U=this.policy.AF?g.qXj(d)*1E3:d.info.duration*1E3;this.policy.AF&&(Y<0||U<0)&&(this.logger&&(this.logger({missingSegInfo:d.info.jt(), startTimeMs:Y,durationMs:U}),this.policy.rK||(Y<0&&(Y=d.info.startTime*1E3),U<0&&(U=d.info.duration*1E3))),this.policy.rK&&(Y<0&&(Y=d.info.startTime*1E3),U<0&&(U=d.info.duration*1E3)));return{formatId:q,sD:T,startTimeMs:Y,clipId:e,CQ:U}}; oz.prototype.Ii=function(d){this.timestampOffset=d};VD.prototype.seek=function(d,q){d!==this.targetTime&&(this.seekCount=0);this.targetTime=d;var T=this.videoTrack.U,Y=this.audioTrack.U,e=this.audioTrack.RN,U=tKn(this,this.videoTrack,d,this.videoTrack.RN,q);q=tKn(this,this.audioTrack,this.policy.ST?d:U,e,q);d=Math.max(d,U,q);this.T=!0;this.vv.isManifestless&&(pI2(this,this.videoTrack,T),pI2(this,this.audioTrack,Y));return d}; VD.prototype.isSeeking=function(){return this.T}; VD.prototype.DK=function(d){this.U=d}; var rFN=2/24;var GG_=0;g.Q=$I.prototype;g.Q.vx=function(){this.K=this.now();OdX(this.Tq,this.K);this.yp.vx()}; g.Q.aW=function(d,q){var T=this.policy.U?(0,g.cj)():0;gK(this,d,q);d-this.X<10&&this.U>0||this.vJ(d,q);this.yp.aW(d,q);this.policy.U&&(d=(0,g.cj)()-T,this.Qp+=d,this.kx=Math.max(d,this.kx))}; g.Q.vJ=function(d,q){var T=(d-this.X)/1E3,Y=q-this.j;this.cO||(zH(this.Tq,T,Y),this.D1(T,Y));this.X=d;this.j=q}; g.Q.Q2=function(){this.rO&&Lpf(this);this.yp.Q2()}; g.Q.hd=function(d){this.rO||(this.rO=this.S-this.vF+d,this.Ln=this.S,this.zq=this.L)}; g.Q.ez=function(d,q){d=d===void 0?this.L:d;q=q===void 0?this.S:q;this.U>0||(this.B=d,this.U=q,this.lr=this.isActive=!0)}; g.Q.OH=function(){return this.bO||2}; g.Q.fX=function(){}; g.Q.Xq=function(){var d,q={rn:this.requestNumber,rt:(this.L-this.G).toFixed(),lb:this.S,stall:(1E3*this.T).toFixed(),ht:(this.K-this.G).toFixed(),elt:(this.B-this.G).toFixed(),elb:this.U,d:(d=this.z2)==null?void 0:d.VH()};this.url&&Fp1(q,this.url);this.policy.U&&(q.mph=this.kx.toFixed(),q.tph=this.Qp.toFixed());q.ulb=this.dO;q.ult=this.UD;return q}; g.Q.now=function(){return(0,g.cj)()}; g.Q.deactivate=function(){this.isActive&&(this.isActive=!1)};g.M(NO,$I);g.Q=NO.prototype;g.Q.Xq=function(){var d=$I.prototype.Xq.call(this);d.pb=this.mO;d.pt=(1E3*this.wO).toFixed();d.se=this.ev;return d}; g.Q.V2=function(){var d=this.yp;this.AF||(this.AF=d.V2?d.V2():1);return this.AF}; g.Q.jk=function(){return this.Fb?this.V2()!==1:!1}; g.Q.Ab=function(d,q,T){if(!this.q5){this.q5=!0;if(!this.cO){gK(this,d,q);this.vJ(d,q);var Y=this.V2();this.ev=T;if(!this.cO)if(Y===2){Y=d-this.B0)||R3(this,Y,q),this.U>0&&w6(this.Tq,q,this.T));d=(d-this.G)/ 1E3||.01;this.policy.B&&!(this.U>0)||DN(this.Tq,d,this.j,Ptj(this),this.q4)}this.deactivate()}}; g.Q.df=function(d,q,T){T&&(this.AF=2);d<0&&this.bO&&(d=this.bO);q?this.xx+=d:this.qk+=d}; g.Q.OH=function(){return this.qk||this.xx||$I.prototype.OH.call(this)}; g.Q.vJ=function(d,q){var T=(d-this.X)/1E3,Y=q-this.j,e=this.V2();this.isActive?e===1&&((Y>0||this.policy.S)&&(T>.2||Y<1024)?(this.T+=T,Y>0&&T>.2&&R3(this,this.D5?T:.05,Y),this.fn=!0):Y>0&&(R3(this,T,Y),this.fn=!0)):q&&q>=this.policy.G&&this.ez(d,q);$I.prototype.vJ.call(this,d,q)}; g.Q.uc=function(d){if(!this.cO){gK(this,d,this.S);var q=(d-this.G)/1E3;this.V2()!==2&&this.U>0&&(this.T+=(d-this.X)/1E3,w6(this.Tq,this.j,this.T));DN(this.Tq,q,this.j,Ptj(this),this.q4,!0);d=(d-this.X)/1E3;zH(this.Tq,d,0);this.D1(d,0)}}; g.Q.ez=function(d,q){d=d===void 0?this.L:d;q=q===void 0?this.S:q;if(!(this.U>0)&&($I.prototype.ez.call(this,d,q),this.V2()===1)){q=(this.K-this.G)/1E3;var T=(d-this.K)/1E3;this.Fb&&xI(this,this.now());this.lF||this.cO||(this.bO&&(T=Math.max(0,T-this.bO)),d=this.Tq,d.B.gH(1,q),d.z2.gH(1,T))}}; g.Q.dN=function(){this.Fb&&xI(this,this.now());return this.RU}; g.Q.fZ=function(){var d;if(d=this.j>this.e4)d=(d=this.j)?d>=this.policy.G:!1;return d}; g.Q.Ga=function(){return this.Fw}; g.Q.iW=function(d){d=d===void 0?this.now():d;if(this.Fb){xI(this,d);if(this.AF?this.jk():this.yv!==this.aU){var q=this.aU;if(d0?T+d:T+Math.max(d,q)}; g.Q.DG=function(){return this.now()-this.B}; g.Q.l5=function(){return(this.j-this.U)*1E3/this.DG()||0}; g.Q.Rh=function(){return this.B};yh.prototype.feed=function(d){Uv(this.G,d);this.Yo()}; yh.prototype.Yo=function(){if(this.T){if(!this.G.totalLength)return;var d=this.G.split(this.j-this.U),q=d.hS;d=d.Kp;if(!this.yp.hd(this.T,q,this.U,this.j))return;this.U+=q.totalLength;this.G=d;this.U===this.j&&(this.T=this.j=this.U=void 0)}for(;;){var T=0;d=g.E(De7(this.G,T));q=d.next().value;T=d.next().value;T=g.E(De7(this.G,T));d=T.next().value;T=T.next().value;if(q<0||d<0)break;if(!(T+d<=this.G.totalLength)){if(!(this.yp.hd&&T+1<=this.G.totalLength))break;T=this.G.split(T).Kp;this.yp.hd(q,T,0, d)&&(this.T=q,this.U=T.totalLength,this.j=d,this.G=new e2([]));break}d=this.G.split(T).Kp.split(d);T=d.Kp;this.yp.P6(q,d.hS);this.G=T}}; yh.prototype.dispose=function(){this.G=new e2};g.Q=hk.prototype;g.Q.Dq=function(){return 0}; g.Q.YD=function(){return null}; g.Q.Mg=function(){return null}; g.Q.G0=function(){return this.state>=1}; g.Q.isComplete=function(){return this.state>=3}; g.Q.E5=function(){return this.state===5}; g.Q.onStateChange=function(){}; g.Q.XC=function(d){var q=this.state;this.state=d;this.onStateChange(q);this.callback&&this.callback(this,q)}; g.Q.Om=function(d){d&&this.state=this.xhr.HEADERS_RECEIVED}; g.Q.getResponseHeader=function(d){try{return this.xhr.getResponseHeader(d)}catch(q){return""}}; g.Q.QN=function(){return+this.getResponseHeader("content-length")}; g.Q.eH=function(){return this.U}; g.Q.ly=function(){return this.status>=200&&this.status<300&&!!this.U}; g.Q.w3=function(){return this.G.totalLength>0}; g.Q.by=function(){var d=this.G;this.G=new e2;return d}; g.Q.oD=function(){return this.G}; g.Q.abort=function(){this.JF=!0;this.xhr.abort()}; g.Q.wf=function(){return!0}; g.Q.aD=function(){return this.j}; g.Q.P4=function(){return""};g.Q=iYg.prototype;g.Q.getResponseHeader=function(d){return d==="content-type"?this.G.get("type"):""}; g.Q.abort=function(){}; g.Q.ZL=function(){return!0}; g.Q.QN=function(){return this.range.length}; g.Q.eH=function(){return this.loaded}; g.Q.ly=function(){return!!this.loaded}; g.Q.w3=function(){return!!this.U.totalLength}; g.Q.by=function(){var d=this.U;this.U=new e2;return d}; g.Q.oD=function(){return this.U}; g.Q.wf=function(){return!0}; g.Q.aD=function(){return!!this.error}; g.Q.P4=function(){return this.error};g.Q=meD.prototype;g.Q.start=function(d){var q={credentials:"include",cache:"no-store"};Object.assign(q,this.L);this.T&&(q.signal=this.T.signal);d=new Request(d,q);fetch(d).then(this.K,this.onError).then(void 0,qw)}; g.Q.onDone=function(){this.JF()||this.yp.Q2()}; g.Q.getResponseHeader=function(d){return this.responseHeaders?this.responseHeaders.get(d):null}; g.Q.ZL=function(){return!!this.responseHeaders}; g.Q.eH=function(){return this.U}; g.Q.QN=function(){return+this.getResponseHeader("content-length")}; g.Q.ly=function(){return this.status>=200&&this.status<300&&!!this.U}; g.Q.w3=function(){return!!this.G.totalLength}; g.Q.by=function(){var d=this.G;this.G=new e2;return d}; g.Q.oD=function(){return this.G}; g.Q.JF=function(){return this.S}; g.Q.abort=function(){this.j&&this.j.cancel().catch(function(){}); this.T&&this.T.abort();this.S=!0}; g.Q.wf=function(){return!0}; g.Q.aD=function(){return this.X}; g.Q.P4=function(){return this.errorMessage};g.Q=Soj.prototype;g.Q.onDone=function(){if(!this.JF){this.status=this.xhr.status;try{this.response=this.xhr.response,this.U=this.response.byteLength}catch(d){}this.G=!0;this.yp.Q2()}}; g.Q.VZ=function(){this.xhr.readyState===2&&this.yp.vx()}; g.Q.S$=function(d){this.JF||(this.status=this.xhr.status,this.G||(this.U=d.loaded),this.yp.aW((0,g.cj)(),d.loaded))}; g.Q.ZL=function(){return this.xhr.readyState>=2}; g.Q.getResponseHeader=function(d){try{return this.xhr.getResponseHeader(d)}catch(q){return g.OL(Error("Could not read XHR header "+d)),""}}; g.Q.QN=function(){return+this.getResponseHeader("content-length")}; g.Q.eH=function(){return this.U}; g.Q.ly=function(){return this.status>=200&&this.status<300&&this.G&&!!this.U}; g.Q.w3=function(){return this.G&&!!this.response&&!!this.response.byteLength}; g.Q.by=function(){var d=this.response;this.response=void 0;return new e2([new Uint8Array(d)])}; g.Q.oD=function(){return new e2([new Uint8Array(this.response)])}; g.Q.abort=function(){this.JF=!0;this.xhr.abort()}; g.Q.wf=function(){return!1}; g.Q.aD=function(){return!1}; g.Q.P4=function(){return""};g.M(MO,g.W);MO.prototype.kz=function(){if(!this.FF.length)return[];var d=this.FF;this.FF=[];this.j=g.yN(d).info;return d}; MO.prototype.o$=function(){return this.FF}; MO.prototype.ir=function(){g.W.prototype.ir.call(this);this.G=null;this.FF.length=0;this.Zw.length=0;this.j=null};g.M(Ej,g.W);g.Q=Ej.prototype; g.Q.zzF=function(){if(!this.JF()){var d=(0,g.cj)(),q=!1;if(this.policy.zr){d=d-(this.timing.U>0?this.timing.B:this.timing.G)-this.timing.OH()*1E3;var T=DT(j6(this),!1);d>=2E3*T?q=!0:d>=this.policy.hs*T&&(this.G=this.policy.Gv)}else if(this.timing.U>0){if(this.S){this.policy.zq&&(this.G=0);return}var Y=this.timing.Ga();this.timing.iW();var e=this.timing.Ga();e-Y>=this.policy.XF*.8?(this.G++,this.logger.debug(function(){return"Mispredicted by "+(e-Y).toFixed(0)}),q=this.G>=5):this.G=0}else{var U=d- this.timing.dN(); this.policy.Gv&&U>0&&(this.G+=1);q=DT(j6(this),!1)*this.policy.PD;(q=U>q*1E3)&&this.logger.debug(function(){return"Elbow late by "+U.toFixed(3)})}this.G>0&&this.yp.JD(); q?this.UW():this.U.start()}}; g.Q.UW=function(){this.T=!0;this.yp.f9();this.lastError="net.timeout";Ak(this)}; g.Q.canRetry=function(d){var q=j6(this);d=d?this.policy.NK:this.policy.TB;return q.timedOut0&&(q=FJ(q.G,0),d.ubyte=q,T===1&&q===0&&(d.b248180278=!0))}this.v4&&(d.rc=this.policy.zs?this.v4:this.v4.toString());this.policy.LC&&this.vP&&(d.tr=this.vP);d.itag=this.info.Zw[0].G.info.itag;d.ml=""+ +this.info.Zw[0].G.pj();d.sq=""+this.info.Zw[0].sD;this.M3&&(d.ifi=""+ +vI(this.info.zG.U));this.v4!==410&&this.v4!==500&&this.v4!==503||(d.fmt_unav="true");var Y;(T=this.errorMessage||((Y=this.xhr)==null?void 0: Y.P4()))&&(d.msg=T);this.yT&&(d.smb="1");this.info.isDecorated()&&(d.sdai="1");return d}; g.Q.oh=function(){return Wp_(this.timing)}; g.Q.P4=function(){return this.xhr.P4()||""}; g.Q.fZ=function(){return this.isComplete()||this.timing.fZ()}; g.Q.aW=function(){!this.JF()&&this.xhr&&(this.v4=this.xhr.status,this.policy.YA&&this.j$&&this.L3(!1),this.Vs()?this.Om(2):!this.P2&&this.fZ()&&(this.Om(),this.P2=!0))}; g.Q.vx=function(){if(!this.JF()&&this.xhr){if(!this.Iu&&this.xhr.ZL()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var d=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Iu=((0,g.cj)()-d)/1E3}this.xhr.ZL()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.b4&&!Y0D()&&g.pW("yt-player-headers-readable",!0,2592E3);d=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var q=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),T;(T=this.IC)==null||T.stop();this.z3=d||this.z3; this.Dt=q||this.Dt}}; g.Q.Q2=function(){var d=this.xhr;if(!this.JF()&&d){this.v4=d.status;d=this.qh(d);if(this.policy.LC){var q;(q=this.IC)==null||q.stop()}d===5?Ak(this.Id):this.XC(d);this.Id.U.stop()}}; g.Q.qh=function(d){var q=this;OjY(this);if(pz(this.Id,this.xhr.status,this.d9?this.timing.lr||this.qS:this.xhr.ly(),!1,this.UO))return 5;var T="";Za(this.Id,this.xhr)&&(T=qK6(this.Id,this.xhr));if(T)return u8(j6(this.Id)),this.info.RQ(this.M3,T),3;T=d.eH();if(this.PK){this.L3(!0);OjY(this);if(pz(this.Id,this.xhr.status,this.timing.lr||this.qS,!1,this.UO))return 5;if(!this.Oa){if(this.qS)return u8(j6(this.Id)),3;this.Id.lastError="net.closed";return 5}}else{if(pz(this.Id,this.xhr.status,this.xhr.ly(), !1,this.UO))return 5;var Y=this.info.j;if(Y&&Y!==T||d.aD())return this.Id.lastError="net.closed",5;this.L3(!0)}Y=wIX(this)?d.getResponseHeader("X-Bandwidth-Est"):0;if(d=wIX(this)?d.getResponseHeader("X-Bandwidth-Est3"):0)this.m5=!0,this.policy.QM&&(Y=d);VKI(this.Id,T,Y?Number(Y):0,this.info.Zw[0].type===5);this.logger.debug(function(){var e=q.timing;return"Succeeded, rtpd="+(e.wO*1E3+e.G-Date.now()).toFixed(0)}); return 4}; g.Q.canRetry=function(){this.JF();var d=this.info.isDecorated();return this.Id.canRetry(d)}; g.Q.onStateChange=function(){this.isComplete()&&(this.policy.Kw?this.f9():this.timing.deactivate())}; g.Q.UW=function(){this.Id.UW()}; g.Q.JD=function(){this.callback&&this.callback(this,this.state)}; g.Q.W9=function(){return this.Id.W9()}; g.Q.dispose=function(){hk.prototype.dispose.call(this);this.Id.dispose();var d;(d=this.IC)==null||d.dispose();this.policy.Kw||this.f9()}; g.Q.f9=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.Q.kz=function(){if(!this.o$().length)return[];this.mR=!0;return this.j$.kz()}; g.Q.Vs=function(){if(this.state<1)return!1;if(this.j$&&this.j$.FF.length)return!0;var d;return((d=this.xhr)==null?0:d.w3())?!0:!1}; g.Q.o$=function(){this.L3(!1);return this.j$?this.j$.o$():[]}; g.Q.L3=function(d){try{if(d||this.xhr.ZL()&&this.xhr.w3()&&!Za(this.Id,this.xhr)&&!this.f5)this.j$||(this.j$=new MO(this.policy,this.info.Zw)),this.xhr.w3()&&(this.PK?this.PK.feed(this.xhr.by()):cX(this.j$,this.xhr.by(),d&&!this.xhr.w3()))}catch(q){this.PK?Auj(this,q):g.OL(q)}}; g.Q.P6=function(d,q){switch(d){case 21:d=q.split(1).Kp;pt2(this,d);break;case 22:this.Oa=!0;cX(this.j$,new e2([]),!0);break;case 43:if(d=po(new Mt(q),1))this.info.RQ(this.M3,d),this.qS=!0;break;case 45:q=xe(new Mt(q));d=q.HT;q=q.uW;d&&q&&(this.AY=d/q);break;case 44:this.bY=zO6(new Mt(q));var T,Y,e;!this.timing.lr&&((T=this.bY)==null?void 0:T.action)===4&&((Y=this.bY)==null?0:(e=Y.Hw)==null?0:e.d9)&&(this.d9=this.bY.Hw.d9);break;case 53:this.policy.LC&&(d=DE_(new Mt(q)).XQ)&&(this.IC||(this.XQ=d,this.IC= new g.f9(this.IL,d,this)),this.IC.start());break;case 60:this.Sg=Rg(new Mt(q));break;case 58:if(d=Hu7(new Mt(q)))this.fW=d,d.fW===3&&(this.UO=!0)}}; g.Q.hd=function(d,q,T,Y){T||this.timing.hd(Y);if(d!==21)return!1;if(d=this.policy.YA)if(d*=this.info.Zw[0].G.info.Vv,q.totalLength+T!==Y&&q.totalLength0)return!1;if(!this.xhr.ZL())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.PK)var d=!this.info.j;else this.xhr.QN()?d=!1:(d=this.xhr.getResponseHeader("content-type"),d=d==="audio/mp4"||d==="video/mp4"||d==="video/webm");if(!d)return!1;if(isNaN(this.info.MM)){d=this.xhr.getResponseHeader("x-head-seqnum");var q=this.timing.policy.L?1:0;if(!d)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(d)>this.info.Zw[0].sD+q)return!1}return!0}; g.Q.TI=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.Q.YD=function(){this.xhr&&(this.z3=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.z3}; g.Q.Mg=function(){this.xhr&&(this.Dt=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Dt}; g.Q.nA=function(){return this.Id.nA()}; g.Q.IL=function(){if(!this.JF()&&this.xhr){this.vP="heartbeat";var d=this.Id;d.G+=2;this.JD()}};g.M(Lz,$I);g.Q=Lz.prototype;g.Q.vJ=function(d,q){var T=(d-this.X)/1E3,Y=q-this.j;this.U>0?Y>0&&(this.yv&&(T>.2||Y<1024?(this.T+=T,T>.2&&nkI(this,.05,Y)):nkI(this,T,Y)),this.aU&&(this.RU+=Y,this.qk+=T)):q>this.policy.G&&this.ez(d,q);$I.prototype.vJ.call(this,d,q)}; g.Q.Ab=function(d,q){gK(this,d,q);this.vJ(d,q);this.yv&&(q=this.j*this.snapshot.stall+this.j/this.snapshot.byterate,this.U>0&&w6(this.Tq,this.RU,this.T),d=(d-this.G)/1E3||.01,this.policy.B&&!(this.U>0)||DN(this.Tq,d,this.j,q,!1))}; g.Q.uc=function(d){gK(this,d,this.S);var q=(d-this.X)/1E3;zH(this.Tq,q,0);this.D1(q,0);!this.yv&&this.U>0||(q=this.j*this.snapshot.stall+this.j/this.snapshot.byterate,this.U>0&&(this.T+=(d-this.X)/1E3,w6(this.Tq,this.RU,this.T)),DN(this.Tq,(d-this.G)/1E3||.01,this.j,q,!1,!0))}; g.Q.Pj=function(d){d=d.ip||2147483647;(d&2)!==2&&(this.aU=!1);(d&1)===1&&(this.yv=!0)}; g.Q.Ay=function(d){d=d.ip||2147483647;(d&2)===2&&(this.aU=!1);(d&1)===1&&(this.yv=!1)}; g.Q.Rh=function(){return this.B}; g.Q.DG=function(){var d=this.aU?this.now()-this.X:0;return Math.max(this.qk*1E3+d,1)}; g.Q.l5=function(){return this.RU*1E3/this.DG()}; g.Q.ez=function(d,q){d=d===void 0?this.L:d;q=q===void 0?this.S:q;this.U>0||($I.prototype.ez.call(this,d,q),q=this.Tq,d=(d-this.K)/1E3,q.B.gH(1,(this.K-this.G)/1E3),q.z2.gH(1,d))}; g.Q.fX=function(d){this.xx=d}; g.Q.Xq=function(){var d=$I.prototype.Xq.call(this);d.rbw=this.l5();d.rbe=+this.aU;d.gbe=+this.yv;d.ackt=(this.xx-this.G).toFixed();return d}; g.Q.iW=function(){}; g.Q.Ga=function(){return NaN}; g.Q.dN=function(){return this.G+this.snapshot.delay*1E3};kI.prototype.P6=function(d,q){switch(d){case 20:d=new Mt(q);d={ra:j2(d,1),videoId:po(d,2),itag:j2(d,3),lmt:j2(d,4),xtags:po(d,5),aV:j2(d,6),VP:ae(d,8),P1:j2(d,9),c8Z:j2(d,10),startMs:j2(d,11),durationMs:j2(d,12),Ns:j2(d,14),timeRange:ZS(d,15,q5X),g4:j2(d,16),dF:j2(d,17),clipId:po(d,1E3)};this.pg(d);break;case 21:this.tT(q,!1);break;case 22:this.SN(q);break;case 31:d=r5(q,KXg);this.Hx(d);break;case 52:d=r5(q,wAH);this.KM(d);break;default:this.GU(d,q)}}; kI.prototype.pg=function(){}; kI.prototype.GU=function(){};g.M(PX,kI);g.Q=PX.prototype; g.Q.GU=function(d,q){switch(d){case 35:this.EZ(q);break;case 44:this.Cm(q);break;case 43:this.dV(q);break;case 53:this.sL(q);break;case 55:d=new Mt(q);ZS(d,1,IpQ);ZS(d,2,lp2);break;case 56:this.Ze();break;case 57:this.Bq(q);break;case 42:this.oX(q);break;case 45:this.eN(q);break;case 59:this.O2(q);break;case 51:this.Km(q);break;case 49:this.Pj(q);break;case 50:this.Ay(q);break;case 47:this.kQ(q);break;case 58:this.J3(q);break;case 61:this.yp.VU.fX((0,g.cj)());break;case 66:this.b8(q);break;case 46:this.Wh(q); break;case 67:this.onSnackbarMessage(q);break;case 68:this.IW(q)}}; g.Q.Km=function(d){d=new Mt(d);d={gGO:no(d,1,$e),Ad5:no(d,2,$e)};this.yp.Km(d)}; g.Q.O2=function(d){var q=new Mt(d);d=Ov(q,1);var T=Ov(q,2);q=Ov(q,3);this.yp.O2(d,T,q)}; g.Q.eN=function(d){d=xe(new Mt(d));this.yp.eN(d)}; g.Q.kQ=function(d){d=r5(d,knI);this.yp.kQ(d)}; g.Q.oX=function(d){d=new Mt(d);d={videoId:po(d,1),formatId:ZS(d,2,$e),endTimeMs:j2(d,3),itr:j2(d,4),mimeType:po(d,5),zV:ZS(d,6,ZuN),indexRange:ZS(d,7,ZuN),qe:ZS(d,8,OuI)};this.yp.oX(d)}; g.Q.Bq=function(d){d=lp2(new Mt(d));this.yp.Bq(d)}; g.Q.Ze=function(){this.yp.Ze()}; g.Q.EZ=function(d){d=Gn6(new Mt(d));this.yp.EZ(d)}; g.Q.sL=function(d){d=DE_(new Mt(d));this.yp.sL(d)}; g.Q.Cm=function(d){d=zO6(new Mt(d));this.yp.Cm(d)}; g.Q.dV=function(d){d={redirectUrl:po(new Mt(d),1)};this.yp.dV(d)}; g.Q.tT=function(d){var q=FJ(d,0);if(d.totalLength!==1){d=d.split(1).Kp;var T=this.U[q]||null;T&&zM(this.yp.cA,q,T,d)}}; g.Q.SN=function(d){d=FJ(d,0);var q=this.U[d]||null;q&&this.yp.SN(d,q)}; g.Q.KM=function(d){this.yp.KM(d)}; g.Q.pg=function(d){var q=d.ra,T=d.VP,Y=d.aV,e=d.dF,U=d.g4,b=d.P1,J=d.startMs,F=d.durationMs,N=d.timeRange,R=d.Ns,x=d.clipId,y=SL(d);d=RkR.has(tQ[""+d.itag]);this.U[q]=y;this.yp.df(y,d,{ra:q,VP:!!T,aV:Y!=null?Y:-1,P1:b!=null?b:-1,startMs:J!=null?J:-1,durationMs:F!=null?F:-1,Ns:R,dF:e,g4:U,clipId:x,timeRange:N})}; g.Q.Pj=function(d){d={ip:j2(new Mt(d),1)};this.yp.Pj(d)}; g.Q.Ay=function(d){d={ip:j2(new Mt(d),1)};this.yp.Ay(d)}; g.Q.Hx=function(d){this.yp.Hx(d)}; g.Q.J3=function(d){d=Hu7(new Mt(d));this.yp.J3(d)}; g.Q.b8=function(d){d={Z_:ZS(new Mt(d),1,CG7)};this.yp.b8(d)}; g.Q.onSnackbarMessage=function(d){d=j2(new Mt(d),1);this.yp.onSnackbarMessage(d)}; g.Q.IW=function(d){d={Rj:no(new Mt(d),1,pAN)};this.yp.IW(d)}; g.Q.Wh=function(d){d=new Mt(d);d={reloadPlaybackParams:ZS(d,1,hON),yx:ae(d,2)};this.yp.Wh(d)};g.M(WX,g.W);g.Q=WX.prototype;g.Q.mF=function(){return Array.from(this.vG.keys())}; g.Q.Ad=function(d){d=this.vG.get(d);var q=d.FF;d.Mq+=q.totalLength;d.FF=new e2;return q}; g.Q.Zh=function(d){return this.vG.get(d).Zh}; g.Q.Cb=function(d){return this.vG.get(d).Cb}; g.Q.df=function(d,q,T,Y){this.vG.get(d)||Gz1(this,d,q);q=this.vG.get(d);if(this.vv){d=kzY(this,d,T);if(Y)for(var e=g.E(d),U=e.next();!U.done;U=e.next()){U=U.value;var b=Y;U.UD=b;U.startTime+=b;U.T+=b;U.X+=b}LUI(this,T.ra,q,d)}else T.VP?q.tU=T.Ns:q.dl.push(T),q.JX.push(T)}; g.Q.jN=function(d){var q;return((q=this.vG.get(d))==null?void 0:q.Zw)||[]}; g.Q.Om=function(){for(var d=g.E(this.vG.values()),q=d.next();!q.done;q=d.next())q=q.value,q.Kg&&(q.S$&&q.S$(),q.Kg=!1)}; g.Q.SN=function(d,q){this.logger.debug(function(){return"[onMediaEnd] formatId: "+q}); var T=this.vG.get(q);Cz?T&&!T.Zh&&(T.Sj.get(d)?T.Sj.get(d).Pq=!0:T.Sj.set(d,{data:new e2,xY:0,Pq:!0}),T.Cb=!0):T&&!T.Cb&&(T.Cb=!0)}; g.Q.kz=function(d){if(Cz){var q=this.vG.get(d);if(q)for(var T=g.E(q.Sj),Y=T.next();!Y.done;Y=T.next()){var e=g.E(Y.value);Y=e.next().value;e=e.next().value;var U=q.Uj.get(Y);if(TE(U[0])){if(!e.Pq)continue;var b=e.data,J=0,F=[];U=g.E(U);for(var N=U.next();!N.done;N=U.next()){N=N.value;var R=N.j,x=bz(b,J,R);J+=R;F.push(new ju(N,x))}q.R4.push.apply(q.R4,g.RQ(F))}else if(e.data.totalLength>0||!U[0].range&&e.Pq)b=void 0,J=U[0],F=e.xY,U=e.data,J.range||(b=e.Pq),b=new ju(OeH(J,J.U+F,U.totalLength,b),U), e.xY+=b.info.j,q.R4.push(b);q.Sj.get(Y).data=new e2;e.Pq&&q.Sj.delete(Y)}d=this.vG.get(d);if(!d)return[];q=d.R4;d.R4=[];T=g.E(q);for(Y=T.next();!Y.done;Y=T.next())d.Mq+=Y.value.info.j;return q||[]}T=(q=this.vG.get(d))==null?void 0:q.j$;if(!T)return[];this.L3(d,T);return T.kz()}; g.Q.Vs=function(d){if(Cz)return fz(this,d);var q,T,Y;return!!((T=(q=this.vG.get(d))==null?void 0:q.j$)==null?0:(Y=T.o$())==null?0:Y.length)||fz(this,d)}; g.Q.L3=function(d,q){for(;fz(this,d);){var T=this.Ad(d);var Y=d;Y=this.vG.get(Y).Zh&&!wK(this,Y);cX(q,T,Y&&KUQ(this,d))}}; g.Q.ir=function(){g.W.prototype.ir.call(this);for(var d=g.E(this.vG.keys()),q=d.next();!q.done;q=d.next())uk(this,q.value);var T;if((T=this.xo)==null?0:T.l9)for(d=g.E(this.vG.values()),q=d.next();!q.done;q=d.next())q=q.value,q.Sj.clear(),q.Uj.clear(),q.R4.length=0,q.Zw.length=0,q.JX.length=0,q.dl.length=0;this.vG.clear()}; var Cz=!1;g.M(ik,g.W);g.Q=ik.prototype;g.Q.aW=function(){!this.JF()&&this.xhr&&(this.L3(!1),qZ(this.yp,this))}; g.Q.vx=function(){}; g.Q.Q2=function(){if(!this.JF()&&this.xhr){var d=this.qh();d===5?Ak(this.Id):this.XC(d);this.Id.U.stop();var q;(q=this.Sq)==null||q.stop()}}; g.Q.qh=function(){var d="";Za(this.Id,this.xhr)&&(d=qK6(this.Id,this.xhr));if(d)return this.info.zG.RQ(this.M3,d),3;this.L3(!0);if(pz(this.Id,this.xhr.status,this.xhr.ly(),this.info.l8(),this.UO))return 5;if(this.uM)return 3;VKI(this.Id,this.xhr.eH(),0,this.l8());this.policy.pC&&ywj(this.yp);return 4}; g.Q.L3=function(d){var q=this.xhr;if((d||!Za(this.Id,this.xhr))&&q.w3()){d=q.by();var T=d.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+T}); this.PK.feed(d)}}; g.Q.P6=function(d,q){this.xhr.wf()&&d===21&&Dnn(this);this.Jn.P6(d,q)}; g.Q.hd=function(d,q,T,Y){T||(this.VU.hd(Y),this.policy.Tb&&d===21&&Dnn(this));if(d!==21)return!1;this.VU.lr=!0;d=q.totalLength;T||(this.kR=FJ(q,0),q=q.split(1).Kp);var e=this.policy.UK,U=this.Jn.U[this.kR],b=this.vv.j.get(U);if(e&&b&&(e*=b.info.Vv,d+T!==Y&&d0){this.policy.zr&&this.Id.U.stop();d=this.VU.DG();q=this.VU.l5();var T=wt7(this,d);if(!(q>T.y3||T.NA>0&&this.info.Wm()>T.NA)){this.yf=(0,g.cj)();var Y;(Y=this.Sq)==null||Y.stop();this.policy.pC&&(Y=this.yp,d={lX:Math.round(q*d/1E3),Ju:d},Y.policy.pC&&(Y.z2=d,Y.OZ++));this.UW()}}}}; g.Q.UW=function(){this.Id.UW()}; g.Q.Cm=function(d){this.yp.Cm(d,this.HR())}; g.Q.dV=function(d){this.uM=!0;this.info.zG.RQ(this.M3,d.redirectUrl)}; g.Q.Pj=function(d){this.VU instanceof Lz&&this.VU.Pj(d)}; g.Q.Ay=function(d){this.VU instanceof Lz&&this.VU.Ay(d)}; g.Q.oX=function(d){var q=d.formatId,T=SL({itag:q.itag,lmt:q.lmt,xtags:q.xtags}),Y,e,U=new vt(((Y=d.zV)==null?void 0:Y.first)||0,((e=d.zV)==null?void 0:e.SZ)||0),b,J;Y=new vt(((b=d.indexRange)==null?void 0:b.first)||0,((J=d.indexRange)==null?void 0:J.SZ)||0);this.vv.j.get(T)||(T=d.qe||{},T.mimeType=d.mimeType,T.itag=q.itag,T.lastModified=""+(q.lmt||0),T.xtags=q.xtags,d=this.vv,q=fy(""),T=De(T,null),Ly(d,new Bb(q,T,U,Y)))}; g.Q.eN=function(d){this.yp.eN(d,this.HR())}; g.Q.onSnackbarMessage=function(d){if(this.policy.T_)this.yp.onSnackbarMessage(d)}; g.Q.IW=function(d){this.policy.rA&&this.yp.IW(d,this.HR())}; g.Q.Hx=function(d){this.xK=d;this.wP=(0,g.cj)();this.yp.Hx(d)}; g.Q.O2=function(d,q,T){this.yp.O2(d,q,T)}; g.Q.Bq=function(d){d.scope===2&&(this.sV=d);this.yp.Bq(d)}; g.Q.Ze=function(){this.JJ=!0;this.yp.Ze()}; g.Q.Km=function(d){this.policy.yl&&this.yp.Km(d)}; g.Q.kQ=function(d){this.yp.kQ(d,this.HR())}; g.Q.J3=function(d){d.fW===3&&(this.UO=!0);this.yp.J3(d)}; g.Q.b8=function(d){this.yp.b8(d)}; g.Q.Wh=function(d){this.yp.Wh(d)}; g.Q.canRetry=function(){this.JF();return this.Id.canRetry(!1)}; g.Q.dispose=function(){if(!this.JF()){g.W.prototype.dispose.call(this);this.Id.dispose();var d;(d=this.Sq)==null||d.dispose();this.XC(-1);this.f9()}}; g.Q.XC=function(d){this.state=d;qZ(this.yp,this)}; g.Q.l8=function(){return this.info.l8()}; g.Q.tV=function(){return this.JJ}; g.Q.ju=function(){return this.sV}; g.Q.df=function(d,q,T){T.clipId&&(this.clipId=T.clipId);this.policy.U&&!q&&(this.O5=T.P1);this.cA.df(d,q,T,0);if(this.policy.U5&&this.xK&&this.VU instanceof NO){var Y=this.xK.F5;this.VU.df(T.durationMs/1E3,q,Y>0&&T.P1+1>=Y)}this.cA.vG.get(d).pk=!0}; g.Q.SN=function(d,q){this.cA.SN(d,q)}; g.Q.KM=function(d){this.requestIdentifier=d}; g.Q.kz=function(d){return this.cA.kz(d)}; g.Q.jN=function(d){return this.cA.jN(d)}; g.Q.Vs=function(d){return this.cA.Vs(d)}; g.Q.mF=function(){return this.cA.mF()}; g.Q.V2=function(){return 1}; g.Q.HR=function(){return this.VU.requestNumber}; g.Q.Us=function(){return this.requestIdentifier}; g.Q.Hl=function(){return this.M3.Hl()}; g.Q.xf=function(){this.f9()}; g.Q.f9=function(){this.VU.deactivate();var d;(d=this.xhr)==null||d.abort()}; g.Q.isComplete=function(){return this.state>=3}; g.Q.v2=function(){return this.state===3}; g.Q.E5=function(){return this.state===5}; g.Q.mq=function(){return this.state===4}; g.Q.lQ=function(){return this.isComplete()}; g.Q.G0=function(){return this.state>=1}; g.Q.W9=function(){return this.policy.zq?this.Id.W9():0}; g.Q.JD=function(){this.policy.zq&&qZ(this.yp,this)}; g.Q.vL=function(){return XT2(this.info)}; g.Q.nA=function(){return this.Id.nA()}; g.Q.P$=function(){var d=T0D(this.Id);Object.assign(d,snQ(this.info));d.req="sabr";d.rn=this.HR();var q;if((q=this.xhr)==null?0:q.status)d.rc=this.policy.zs?this.xhr.status:this.xhr.status.toString();var T;(q=(T=this.xhr)==null?void 0:T.P4())&&(d.msg=q);this.yf&&(T=wt7(this,this.yf-this.VU.Rh()),d.letm=T.vc,d.mrbps=T.y3,d.mram=T.NA);return d};fTN.prototype.tick=function(d,q){this.ticks[d]=q?window.performance.timing.navigationStart+q:(0,g.cj)()};g.M(mD,g.YP);g.Q=mD.prototype; g.Q.DI=function(d,q,T,Y){if(this.policy.H$&&this.policy.U){var e=d.iC||null;e?(UGQ(this,d.sD,Vh(this,d.startTime,d.sD),{iC:e,sD:d.sD,OX:!!q,eh:T},this.j),Y&&this.j&&this.j.wb(d.sD,d.startTime,this.U,(q==null?void 0:q.G)||[],(q==null?void 0:q.U)||[],(q==null?void 0:q.T)||[],T,(q==null?void 0:q.lZ)||0,(q==null?void 0:q.j)||void 0)):this.U===1&&lk(this,5,"noad")}else{var U=!1;this.policy.U&&(U=T?this.rO===d.sD:this.yv===d.sD);if(this.j&&Y&&!U){Y=[];U=[];var b=[],J=void 0,F=0;q&&(Y=q.G,U=q.U,b=q.T,J= q.j,F=q.lZ,this.oU("sdai",{sq:d.sD,ssvicpns:Y.join("."),ssvid:U.join(".")}));this.policy.U&&(T?this.rO=d.sD:this.yv=d.sD);this.j.wb(d.sD,d.startTime,this.U,Y,U,b,T,F,J)}this.policy.U?T&&(this.U===1&&lk(this,5,"noad"),d.sD!==((e=this.G)==null?void 0:e.sD)&&(TTI(this,d,q,T),isNaN(d.startTime)||Y$Q(this,d.sD,Vh(this,d.startTime,d.sD),!!q,this.j))):T&&TTI(this,d,q)}}; g.Q.rV=function(d,q,T){var Y=this.videoTrack.G.index.nC()<=q;this.G={iC:d,sD:q,OX:T};Y&&S6(this,d,q)}; g.Q.Dn=function(){this.j&&this.j.Dn()}; g.Q.oU=function(d,q,T){(d!=="sdai"||this.policy.r3||(T===void 0?0:T))&&this.loader.oU(d,q)}; g.Q.oF=function(d,q){var T=this.videoTrack.G.index.yg(d);if(T>=0){var Y;var e=((Y=q.Rd.V9(T,2))==null?void 0:Y.aI)||"";if(this.policy.U||e)return q.gJ(d,T),vX(this.loader,d,d,T),this.oU("sdai",{cmskpad:1,t:d.toFixed(3),sq:T}),!0}this.oU("sdai",{cmskpad:0,t:d.toFixed(3),sq:T});return!1};g.Q=sdY.prototype;g.Q.xG=function(d,q,T){d=d||this.G;if(this.U.has(d)){if(d=this.U.get(d))d.AN=q,d.vQ.push(T)}else q={AN:q,vQ:[],startTimeSecs:0,sS:0,aq:Date.now()},q.vQ.push(T),this.U.set(d,q)}; g.Q.IW=function(d,q){var T;if(!((((T=d.Rj)==null?void 0:T.length)||0)<=0)&&(d=d.Rj[0],d.iC)){var Y,e,U,b,J,F;T=new $k(((Y=d.iC)==null?void 0:Y.AK)||0,((e=d.iC)==null?void 0:e.RfU)||0,((U=d.iC)==null?void 0:U.FP)||"",((b=d.iC)==null?void 0:b.identifier)||"",gwD(((J=d.iC)==null?void 0:J.event)||0),(((F=d.iC)==null?void 0:F.AK)||0)*1E3);$GX(this,T,q)}}; g.Q.Qo=function(d,q){d!==void 0&&this.vy(d);if(this.G&&(d=this.U.get(this.G),d!=null&&d.AN)){var T={cJ:d.vQ,KU:Bx(d.AN||"")||void 0,cuepointId:this.G};d.G5&&(T.zo=d.G5);q&&(T.Ac=BZ(q.split(";")[0]),T.gM=q.split(";")[1]||"");d.D3&&(T.D3=d.D3);return T}}; g.Q.gJ=function(d,q){this.vy(d);var T=this.U.get(this.G);T?(this.oU("ssskipad",{cid:this.G,sn:q,mt:d.toFixed(3)}),T.G5=q):this.oU("ssskipadfail",{cid:this.G,sn:q,mt:d.toFixed(3)})}; g.Q.LD=function(){for(var d=g.E(this.U.values()),q=d.next();!q.done;q=d.next())q.value.G5=NaN}; g.Q.vy=function(d,q){q&&(this.j=q);if(this.G&&(q=this.U.get(this.G))&&q.startTimeSecs<=d&&d<=q.startTimeSecs+q.sS)return;this.G="";q=g.E(this.U.entries());for(var T=q.next();!T.done;T=q.next()){var Y=g.E(T.value);T=Y.next().value;Y=Y.next().value;var e=void 0,U=void 0,b=void 0;if(((e=Y)==null?void 0:e.startTimeSecs)<=d&&d<=((U=Y)==null?void 0:U.startTimeSecs)+((b=Y)==null?void 0:b.sS)){this.G=T;break}}};g.M(eM,g.W);eM.prototype.J8=function(d,q,T){T=T===void 0?{}:T;this.policy.hq=Y8(d,T,this.T,q===void 0?!1:q)};sz.prototype.NH=function(d){var q=this;if(this.policy.lL){var T=new Set(d);T.size===this.z2.size&&[].concat(g.RQ(T)).every(function(Y){return q.z2.has(Y)})||(this.loader.oU("lwnmow",{itagDenylist:[].concat(g.RQ(d)).join(",")}),this.loader.yD(!!T.size),this.K=-1,this.z2=T,$_(this,this.G),this.RU=!0)}}; sz.prototype.J8=function(d,q,T){T=T===void 0?{}:T;var Y=this.policy.hq;this.S.J8(d,q===void 0?!1:q,T);if(Y!==this.policy.hq){$_(this,this.G);gf(this);var e,U;Y>this.policy.hq&&((e=this.j)==null?0:kV(e.info))&&((U=this.nextVideo)==null||!kV(U.info))&&(this.lr=!0)}};x_.prototype.Ii=function(d){this.timestampOffset=d;this.flush()}; x_.prototype.flush=function(){if(this.G.pos>0){var d={a:this.track.JE(),u:this.G.VH(),pd:Math.round(this.T),ad:Math.round(this.j)},q=this.U;if(q){var T=q.G.info;d.itag=T.itag;T.G&&(d.xtags=T.G);d.sq=q.sD;d.st=q.startTime;d.sd=q.duration;this.track.policy.Ah&&(d.si=q.jt());q.S&&(d.esl=q.U+q.j);q.qQ()&&(d.eos=1)}isNaN(this.timestampOffset)||(d.to=this.timestampOffset);var Y;if(q=(Y=this.track.RN)==null?void 0:Y.BF({})){for(var e in q)this.X[e]!==q[e]&&(d["sb_"+e]=q[e]);this.X=q}this.track.oU("sbu", d);this.G.reset();this.buffered=[];this.S=this.j=this.T=0;this.timestampOffset=this.U=void 0}};h5.prototype.dispose=function(){this.UD=!0}; h5.prototype.JF=function(){return this.UD}; g.M(jM,Error);pP.prototype.skip=function(d){this.offset+=d}; pP.prototype.n3=function(){return this.offset};g.Q=lej.prototype;g.Q.uN=function(){return this.U}; g.Q.N1=function(){return this.U.length?this.U[this.U.length-1]:null}; g.Q.ZE=function(){this.U=[];t5(this);nP(this)}; g.Q.Ad=function(d){this.qk=this.U.shift().info;d.info.equals(this.qk)}; g.Q.jN=function(){return g.yC(this.U,function(d){return d.info})}; g.Q.JE=function(){return!!this.S.info.audio}; g.Q.isDrm=function(){return!!this.S.info.ac}; g.Q.getDuration=function(){return this.S.index.As()};g.M(dK,hk);g.Q=dK.prototype;g.Q.onStateChange=function(){this.JF()&&(Da(this.cA,this.formatId),this.G.dispose())}; g.Q.P$=function(){var d=B0f(this.cA,this.formatId),q;var T=((q=this.cA.vG.get(this.formatId))==null?void 0:q.bytesReceived)||0;var Y;q=((Y=this.cA.vG.get(this.formatId))==null?void 0:Y.Mq)||0;return{expected:d,received:T,bytesShifted:q,sliceLength:wK(this.cA,this.formatId),isAnyMediaEndReceived:this.cA.Cb(this.formatId)}}; g.Q.oh=function(){return 0}; g.Q.fZ=function(){return!0}; g.Q.kz=function(){return this.cA.kz(this.formatId)}; g.Q.o$=function(){return[]}; g.Q.Vs=function(){return this.cA.Vs(this.formatId)}; g.Q.nA=function(){return this.lastError}; g.Q.W9=function(){return 0};g.M(LP,g.W);g.Q=LP.prototype;g.Q.JE=function(){return!!this.G.info.audio}; g.Q.N1=function(){return this.T.N1()}; g.Q.Ad=function(d){this.T.Ad(d);var q;(q=this.B)!=null&&(q.S.add(d.info.sD),q.G=MKf(q,q.wz,q.cK,d,q.G),q.j=d,q.X=(0,g.cj)());this.Vv=Math.max(this.Vv,d.info.G.info.Vv||0)}; g.Q.getDuration=function(){return this.G.index.As()}; g.Q.ZE=function(){TM(this);this.T.ZE()}; g.Q.K7=function(){return this.T}; g.Q.isRequestPending=function(d){return this.j.length?d===this.j[this.j.length-1].info.Zw[0].sD:!1}; g.Q.Ii=function(d){var q;(q=this.B)==null||q.Ii(d);var T;(T=this.K)==null||T.Ii(d)}; g.Q.oU=function(d,q){this.loader.oU(d,q)}; g.Q.Rf=function(){return this.loader.Rf()}; g.Q.dispose=function(){var d;(d=this.K)==null||d.flush();g.W.prototype.dispose.call(this)};g.M(eB,g.W);eB.prototype.j=function(){this.U++>15||(this.G=!this.G,new Wz7(this.loader,this.policy,this.Tq,this.zG,this.G),this.delay.start())}; g.Q=Wz7.prototype;g.Q.vx=function(){}; g.Q.aW=function(){}; g.Q.Q2=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.eH()===this.size)this.loader.oU("rqs",this.getInfo());else{var d="net.connect";this.xhr.status>200?d="net.badstatus":this.xhr.ZL()&&(d="net.closed");this.onError(d)}}; g.Q.onError=function(d){var q=this;this.loader.handleError(d,this.getInfo());ii("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(T){q.loader.oU("pathprobe",T)},function(T){q.loader.handleError(T.errorCode,T.details)})}; g.Q.getInfo=function(){var d=this.timing.Xq();d.shost=SK(this.location.Wf);d.pb=this.size;return d};g.M(UY,g.W); UY.prototype.L=function(d,q){if(d.L){this.vv.isLive?(d=this.vv.QX&&this.vv.T?d.G.UX(this.vv.QX,!1):d.G.Fg(Infinity),d.MM=this.MM):d=d.G.UX(0,!1);if(this.lr){var T=this.lr;d.MM===0&&(d.S=T.B)}else d.S=this.K;return d}T=d.U;if(!T.G.pj())return T.G.gr()?(d=Sq(this.S,d.G.info.Vv,q.G.info.Vv,0),d=T.G.Kh(T,d)):d=T.G.NJ(T),d;var Y=T.X-this.loader.getCurrentTime(),e=!T.range||T.j===0&&T.U===0?0:T.range.length-(T.U+T.j),U=T.G;this.Ub(d,Y)&&e===0&&(this.vv.isManifestless?U=d.G:(U=T.startTime+YcX,T.j&&(U+=T.duration), Uj(d,U),T=d.U,U=T.G));U.gr()?(e=this.j,q=Sq(this.S,U.info.Vv,q.G.info.Vv,Y,e.T.length>0&&e.B===0&&this.loader.Uv),Y=vo(d),d=T.G.Kh(T,q),(q=d.j)&&d.Zw.length>1&&(Y||d.zG.j||d.Zw[0].G!==T.G?d=T.G.Kh(T,d.Zw[0].j):(Y=d.Zw[d.Zw.length-1],U=Y.j/q,!Y.S&&U<.4&&(d=T.G.Kh(T,q-Y.j))))):(T.sD<0&&(q=bP(T),q.pr=""+d.j.length,this.loader.isSeeking()&&(q.sk="1"),q.snss=T.L,this.loader.oU("nosq",q)),d=U.NJ(T));if(this.policy.rO)for(T=g.E(d.Zw),q=T.next();!q.done;q=T.next())q.value.type=6;return d}; UY.prototype.Ub=function(d,q){if(!vo(d)||!d.G.pj())return!1;var T=this.j.RU||j9Q(d)||q<=this.policy.g5||this.j.lr;this.logger.debug(function(){return"ready to adapt: "+T+", upgrade pending: "+j9Q(d)+", health: "+q}); return T}; UY.prototype.ir=function(){g.W.prototype.ir.call(this)}; var YcX=2/24;g.M(BM,g.W);BM.prototype.nJ=function(d,q,T){var Y;var e=((Y=this.U)==null?void 0:Y.reason)==="m"?"m":this.U&&o8_(this,this.U)?this.U.reason:"a";this.loader.nJ(new Y_(d,e,T));Fw(this.loader,q,d,!0)}; BM.prototype.X3=function(d,q){for(var T=g.E(this.rO),Y=T.next();!Y.done;Y=T.next())if(Y.value.id===d)return this.S=this.vv.G[d],BX(this.xo)&&(this.lr=!0),d=new Y_(this.S,q?"t":"m"),q&&(this.L=!0),d;this.j=[];return null}; BM.prototype.J8=function(d,q,T){T=T===void 0?{}:T;this.G.J8(d,q===void 0?!1:q,T)};LH.prototype.setData=function(d,q,T){var Y=this;T=T===void 0?{}:T;if(q==null?0:q.Qp)this.W0=u0N(this,q,T),d.jd=this.zG.jd();if(this.l8())return!0;this.data=d;this.G=Ui6(d,function(e,U){var b;(b=Y.yp)==null||b.oN(e,U)},q==null?void 0:q.j); if(!this.G)return!1;this.U=g.S2(this.G,cog);return!0}; LH.prototype.l8=function(){return this.requestType===1}; LH.prototype.Wm=function(){var d;return((d=this.yp)==null?void 0:d.Wm())||0}; LH.prototype.isDecorated=function(){var d;return!((d=this.data)==null||!d.Gs)};$i_.prototype.encrypt=function(d){(0,g.cj)();return this.G.G?yJj(this,d,this.iv):(new g.gE(this.G.U)).encrypt(d,this.iv)}; $i_.prototype.decrypt=function(d,q){(0,g.cj)();return this.G.G?yJj(this,d,q):(new g.gE(this.G.U)).decrypt(d,q)};g.M(kW,g.W);kW.prototype.j=function(d,q){if(q){q=q instanceof g.Ig?q:PM(this,q);var T;((T=this.G.get(d))==null?void 0:SK(T.location))!==SK(q)&&this.G.set(d,new ElY(q,d))}else this.G.delete(d)}; kW.prototype.load=function(){var d=this,q,T,Y,e,U,b,J,F,N,R;return g.G(function(x){switch(x.U){case 1:q=d.G.get(0);g.jD(x,2);var y;if(y=q&&!d.U)y=SK(q.location),y=d.U===a3(y);if(y){x.tF(4);break}return g.B(x,MZX(d,d.U?2:0),5);case 5:if(T=x.G)d.j(0,T),vI(T)&&d.j(1,og(T));case 4:g.ZX(x,3);break;case 2:Y=g.nN(x);g.OL(Y);if(!d.U){x.tF(3);break}d.U=!1;return g.B(x,d.load(),7);case 7:return x.return();case 3:if(!d.Pv.experiments.Wv("html5_onesie_probe_ec_hosts")){x.tF(0);break}g.jD(x,9);e=d;U=e.j;b=3;return g.B(x, MZX(d,1),11);case 11:return U.call(e,b,x.G),J=d,F=J.j,N=4,g.B(x,MZX(d,2),12);case 12:F.call(J,N,x.G);g.ZX(x,0);break;case 9:R=g.nN(x),g.OL(R),g.E6(x)}})}; kW.prototype.L=function(){var d=this,q,T;return g.G(function(Y){g.zh(d.B);q=g.Yv(d.Pv.experiments,"html5_onesie_prewarm_max_lact_ms");if(QF()>=q)return Y.return();(T=d.G.get(0))&&Qn1(d,T);g.E6(Y)})}; var hq1={olD:0,ElF:1,pKO:2,enF:3,fcf:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};jnI.prototype.decrypt=function(d){var q=this,T,Y,e,U,b,J;return g.G(function(F){switch(F.U){case 1:if(q.G.length&&!q.G[0].isEncrypted)return F.return();q.U=!0;q.Og.D$("omd_s");T=new Uint8Array(16);sn()?Y=new g.FN(d):e=new g.gE(d);case 2:if(!q.G.length||!q.G[0].isEncrypted){F.tF(4);break}U=q.G.shift();if(!Y){b=e.decrypt($X(U.buffer),T);F.tF(5);break}return g.B(F,Y.decrypt($X(U.buffer),T),6);case 6:b=F.G;case 5:J=b;for(var N=0;N=4)){var q=mc(this),T=this.xhr;q.rc=T.status;d&&(q.ab=!0);if(T.P4()){var Y="onesie.net";q.msg=T.P4()}else T.status>=400?Y="onesie.net.badstatus":T.ly()?this.wN||(Y="onesie.response.noplayerresponse"):Y=T.status===204?"onesie.net.nocontent":"onesie.net.connect";Y?this.fail(new g.xV(Y,q)):(this.D$("or_fs"),this.VU.Ab((0,g.cj)(),T.eH(),0),this.XC(4),this.Fu&&this.oU("rqs",q));this.Fu&&this.oU("ombre", "ok."+ +!Y);this.NL=!1;I7(this);PS2(this.Og);if(!this.Xa){this.fD.stop();var e;(e=this.CJ)==null||e.stop()}var U;if(d=(U=this.ow)==null?void 0:cJg(U))for(U=0;U1E3){var d;(d=this.VU)==null||d.uc((0,g.cj)());d=mc(this);if(this.Pv.uF()&&this.xhr instanceof HX){var q=this.xhr;d.xrs=q.xhr.readyState;d.xpb=q.G.totalLength;d.xdc=q.T}this.fail(new g.xV("net.timeout",d))}}else(0,g.cj)()-this.VU.G>1E4&&((q=this.VU)==null||q.uc((0,g.cj)()),this.vt());this.isComplete()||this.aJ.start()}}; g.Q.vt=function(){this.logger.info("Onesie request timed out");this.NL=!1;if(!I7(this)){var d=mc(this);d.timeout="1";this.fail(new g.xV("onesie.request",d))}}; g.Q.fail=function(d){var q=this;d=hQ(d);this.Iw?this.G2.jT(d):(this.l3.reject(d),this.Iw=!0);PS2(this.Og);this.Xa||this.fD.stop();this.D$("or_fe");var T,Y;(T=this.ow)==null||(Y=cJg(T))==null||Y.forEach(function(e){q.oU("pathprobe",e)}); this.XC(5);this.dispose()}; g.Q.isComplete=function(){return this.state>=3}; g.Q.mq=function(){return this.state===4}; g.Q.lQ=function(d){var q,T;return this.isComplete()||!!((q=this.lO)==null?0:(T=q.get(d))==null?0:T.G)}; g.Q.v2=function(){return!1}; g.Q.E5=function(){return this.state===5}; g.Q.notifySubscribers=function(d){for(var q=0;q102400&&!this.sR&&(this.D$("or100k"),this.sR=!0);if(d.w3()){var q=d.by(),T=q.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+T}); this.Fu&&this.oU("ombrss","len."+T);this.PK.feed(q)}if(this.lO)for(var Y=g.E(this.lO.keys()),e=Y.next();!e.done;e=Y.next()){var U=e.value;d=void 0;(d=this.lO.get(U))==null||d.Om();this.notifySubscribers(U)}}catch(b){this.fail(b)}}; g.Q.HR=function(){return this.VU.requestNumber}; g.Q.Us=function(d){return this.yy.get(d)};g.M(Tdf,g.W);g.Q=Tdf.prototype;g.Q.Sc=function(d,q){this.UD=void 0;ywj(this);xRj(this,d,q)}; g.Q.fT=function(d){if(this.G.length===0)return!1;var q=this.G[0];return q instanceof SB?d===this.loader.getCurrentTime()*1E3:!(q instanceof ik&&JJX(q.info))&&Math.abs(q.vL()-d)<50}; g.Q.EZ=function(d){this.U=d;this.UD=(0,g.cj)()+(d.backoffTimeMs||0)}; g.Q.Cm=function(d,q){if(d.action===void 0){var T=this.G2.Eq();T!==void 0&&this.loader.Md(T)}else if(d.action!==0||!this.qk)if(d.action===0&&this.policy.Kd&&(d.action=2),d.Ym==="sabr.malformed_config"&&this.policy.j8>0&&this.xx++0&&(d.action=2),T={},T.reason=d.Ym,T.action=d.action,T.rn=q,d.action){case 1:this.policy.U&&this.B&&this.B.JI(void 0, void 0,T);break;case 0:this.qk=!0;this.videoData.y5()&&this.policy.U&&this.B&&this.B.JI(void 0,void 0,T,!1);this.loader.f7(T);break;case 2:M5H(d.Ym)!=="sabr.config"&&delete T.reason;this.loader.handleError(M5H(d.Ym),T,1);break;case 3:this.policy.Qp&&((d=this.vv.B)!=null&&(d.B=!0),this.loader.handleError("sabr.hostfallback",T))}}; g.Q.Bq=function(d){d&&(this.loader.oU("sabrctxt",{onsbrctxt:d.type,scp:d.scope,dflt:d.sendByDefault}),d.type&&d.sendByDefault&&this.videoData.Bv.add(d.type),d.scope!==2&&(d.type&&this.videoData.sabrContextUpdates.set(d.type,d),this.G2.Bq(d)))}; g.Q.Ze=function(){}; g.Q.eN=function(d,q){if(d.HT!==void 0&&d.uW){var T=d.HT/d.uW;this.audioTrack.L=!1;this.videoTrack.L=!1;if(this.policy.UD||this.policy.Ox||this.policy.m1)this.loader.AE.G=!1;var Y=this.loader.Xt(T,1);this.policy.wO&&this.policy.U&&this.loader.vy(Y,q);this.G2.getCurrentTime()!==T&&(q={b$:"sabr_seek",UI:!0,wg:!0},d.seekSource&&(q.seekSource=d.seekSource),Jk(this.loader,T+.1,q))}}; g.Q.onSnackbarMessage=function(d){this.G2.publish("onSnackbarMessage",d)}; g.Q.IW=function(d,q){this.policy.rA&&this.K&&this.loader.IW(d,q)}; g.Q.Hx=function(d){d.F5&&d.lB&&vb(this.vv,d.F5,d.lB);this.policy.eC&&(d.vY&&d.XX&&(this.vv.m1=d.vY/d.XX),d.QC&&d.Mw&&(this.vv.Gr=d.QC/d.Mw));of(this.videoData)&&!this.videoData.yv&&d.lB&&this.loader.Xt(d.lB,1E3);d.BH!=null&&this.G2.oP(d.BH);this.policy.JW&&d.Ok&&(d=((0,g.cj)()-d.Ok)/1E3,this.loader.S9.gH(1,d))}; g.Q.J3=function(d){this.loader.J3(d)}; g.Q.JO=function(d){return this.videoData.Bv.has(d)}; g.Q.O2=function(d,q,T){this.policy.j&&this.loader.oU("sabrctxtplc",{start:d?d.join("_"):"",stop:q?q.join("_"):"",discard:T?T.join("_"):""});if(d){d=g.E(d);for(var Y=d.next();!Y.done;Y=d.next())this.videoData.Bv.add(Y.value)}if(q)for(q=g.E(q),d=q.next();!d.done;d=q.next())d=d.value,this.videoData.Bv.has(d)&&this.videoData.Bv.delete(d);if(T)for(T=g.E(T),q=T.next();!q.done;q=T.next())if(q=q.value,this.videoData.sabrContextUpdates.has(q)&&(this.videoData.sabrContextUpdates.delete(q),q===3&&(this.videoData.TE= "")),this.policy.K&&this.G.length)for(d=g.E(this.G),Y=d.next();!Y.done;Y=d.next())if(Y=Y.value,!(Y instanceof SB)){var e=void 0;((e=Y.sV)==null?void 0:e.type)===q&&(Y.sV=void 0)}}; g.Q.Km=function(){}; g.Q.Dv=function(d){this.L=d}; g.Q.mD=function(d){this.X=d}; g.Q.kQ=function(d,q){YW(this.policy,d,4,q)}; g.Q.b8=function(d){if(d==null?0:d.Z_)if(d=d.Z_.PL){d=g.E(d);for(var q=d.next();!q.done;q=d.next())if(q=q.value,q.formatId){var T=this.vv.j.get(SL(q.formatId));T&&T.info&&(T.info.debugInfo=q.debugInfo)}}}; g.Q.Wh=function(d){this.G2.publish("reloadplayer",d)}; g.Q.Sh=function(){return this.G2.Sh()||""}; g.Q.Wm=function(){var d=is(this.audioTrack,!0)*1E3,q=is(this.videoTrack,!0)*1E3;return Math.min(d,q)}; g.Q.oN=function(d,q){this.loader.oU(d,q)}; g.Q.FO=function(d){Bmf(this.loader,jd_(this.Fw,d))}; g.Q.ir=function(){g.W.prototype.ir.call(this);this.U=void 0;xRj(this,!0,"i");this.G=[]};AwD.prototype.VI=function(){this.isSeeking=!0;this.G===1&&jf6(this.T);this.G===0&&this.Mp.hm("transitiondetector");this.X=!1};KJ_.prototype.Yo=function(d,q){if(this.T)return WJj(this,q);if(q=sj(d)){var T=q.G;T&&T.j&&T.G&&(d=d.j.length?d.j[0]:null)&&d.state>=2&&!d.E5()&&d.info.MM===0&&(this.T=d,this.L=T,this.U=q.info,this.X=this.startTimeSecs=Date.now()/1E3,this.S=this.U.startTime)}return NaN}; KJ_.prototype.clear=function(){this.U=this.L=this.T=null;this.G=this.S=this.X=this.startTimeSecs=NaN;this.j=!1};g.M(DRg,g.W);DRg.prototype.ir=function(){fu2(this);g.W.prototype.ir.call(this)};var zVH=/[?&]cpn=/;g.M(YN,g.W);YN.prototype.flush=function(){var d={};this.U&&(d.pe=this.U);this.G.length>0&&(d.pt=this.G.join("."));this.G=[];return d}; YN.prototype.stop=function(){var d=this,q,T,Y;return g.G(function(e){if(e.U==1)return g.jD(e,2),g.B(e,(q=d.T)==null?void 0:q.stop(),4);if(e.U!=2)return(T=e.G)&&d.logTrace(T),g.ZX(e,0);Y=g.nN(e);d.U=opD(Y.message);g.E6(e)})}; YN.prototype.logTrace=function(d){this.encoder.reset();this.encoder.add(1);this.encoder.add(d.resources.length);for(var q=g.E(d.resources),T=q.next();!T.done;T=q.next()){T=T.value.replace("https://www.youtube.com/s/","");this.encoder.add(T.length);for(var Y=0;Y=0?d:g.Jp(this.provider),this.yv?P$s.has(this.Fd)&&(this.G.size||(this.Fd==="PL"?d>=this.U+30:d<=this.lr+30||d>=this.U+1200&&d<=this.lr+86400))&&(g.UV(this,d,"vps",[this.Fd]),this.U=d):["PL","B","S"].indexOf(this.Fd)>-1&&(this.G.size||d>=this.U+30)&&(g.UV(this,d,"vps",[this.Fd]),this.U=d),this.G.size)){this.sequenceNumber===7E3&&g.OL(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){sV(this,d);var q=this.provider.G2.Ne(); q=g.E(q);for(var T=q.next();!T.done;T=q.next())T=T.value,this.oU(T.key,T.value);q=d;T=this.provider.G2.EE();var Y=T.droppedVideoFrames||0,e=T.totalVideoFrames||0,U=Y-this.TW,b=e&&!this.yu;Y>T.totalVideoFrames||U>5E3?F7H(this,"html5.badframedropcount","df."+Y+";tf."+T.totalVideoFrames):(U>0||b)&&g.UV(this,q,"df",[U]);this.TW=Y;this.yu=e;this.B>0&&(g.UV(this,d,"glf",[this.B]),this.B=0);bJ.isActive()&&(d=bJ.K6(),Object.keys(d).length>0&&this.oU("profile",d));this.Qp&&$N(this,"lwnmow");this.provider.Pv.uF()&& this.provider.N("html5_record_now")&&this.oU("now",{wt:(0,g.cj)()});d={};this.provider.videoData.U&&(d.fmt=this.provider.videoData.U.itag,(q=this.provider.videoData.T)&&q.itag!==d.fmt&&(d.afmt=q.itag));d.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(d.adcpn=this.adCpn);this.Ud&&(d.addocid=this.Ud);this.contentCpn&&(d.ccpn=this.contentCpn);this.rO&&(d.cdocid=this.rO);this.provider.videoData.cotn&&(d.cotn=this.provider.videoData.cotn);d.el=bH(this.provider.videoData);d.content_v=J7(this.provider.videoData); d.ns=this.provider.Pv.lr;d.fexp=vx_(this.provider.Pv.experiments).toString();d.cl=(785662079).toString();(q=this.provider.videoData.adFormat||this.adFormat)&&(d.adformat=q);(q=ix(this.provider.videoData))&&(d.live=q);this.provider.videoData.It()&&(d.drm=1,this.provider.videoData.S&&(d.drm_system=pz_[this.provider.videoData.S.flavor]||0),this.provider.videoData.drmProduct&&(d.drm_product=this.provider.videoData.drmProduct));Tt()&&this.provider.videoData.X&&(d.ctt=this.provider.videoData.X,d.cttype= this.provider.videoData.M4,this.provider.videoData.mdxEnvironment&&(d.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(d.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.ZB&&(d.dai_fallback="1")):this.provider.videoData.HG?d.dai="cs":this.provider.videoData.y8&&(d.dai="disabled");d.seq=this.sequenceNumber++;if(this.provider.videoData.hY){if(q=this.provider.videoData.hY,d&&q)for(q.ns==="3pp"&&(d.ns="3pp"),this.zX.has(q.ns)&& $N(this,"hbps"),q.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=q.shbpslc),this.provider.Pv.experiments.Wv("html5_use_server_qoe_el_value")&&this.Bv.delete("el"),T=g.E(Object.keys(q)),Y=T.next();!Y.done;Y=T.next())Y=Y.value,this.Bv.has(Y)||(d[Y]=q[Y])}else d.event="streamingstats",d.docid=this.provider.videoData.videoId,d.ei=this.provider.videoData.eventId;this.isEmbargoed&&(d.embargoed="1");Object.assign(d,this.provider.Pv.G);if(q=d.seq)q={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+q,serializedWatchEndpointLoggingContext:this.provider.videoData.ykO},this.serializedHouseBrandPlayerServiceLoggingContext&&(q.serializedHouseBrandPlayerServiceLoggingContext=ZV(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(q.playerResponseCpn=this.provider.videoData.playerResponseCpn),eO.length&&(q.decoderInfo=eO),this.remoteControlMode&&(q.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(q.remoteConnectedDevices= this.remoteConnectedDevices),q=g.S2(q,ap_),q=g.A0(q,4),this.G.set("qclc",[q]);d=g.y6("//"+this.provider.Pv.sx+"/api/stats/qoe",d);T=q="";Y=g.E(this.G.entries());for(e=Y.next();!e.done;e=Y.next())U=g.E(e.value),e=U.next().value,U=U.next().value,b=void 0,(b=U)!=null&&b.join&&(e="&"+e+"="+U.join(","),e.length>100?T+=e:q+=e);J7H(this,d+q,T.replace(/ /g,"%20"))}this.G.clear()}}; g.Q.yD=function(d){this.Qp=d}; g.Q.LX=function(){if(this.provider.videoData.S){var d=this.provider.videoData.S;$N(this,"eme-"+(d.keySystemAccess?"final":be(d)?"ms":s4(d)?"ytfp":Jj(d)?"safarifp":"nonfinal"))}}; g.Q.xz=dI(53);g.Q.WR=function(d){this.isEmbargoed=d}; g.Q.xL=dI(30);g.Q.Ak=dI(36);g.Q.onPlaybackRateChange=function(d){var q=g.Jp(this.provider);d&&d!==this.pC&&(g.UV(this,q,"rate",[d]),this.pC=d);this.yv||this.reportStats(q)}; g.Q.Gz=dI(24);g.Q.getPlayerState=function(d){if(g.I(d,128))return"ER";if(g.I(d,2048))return"B";if(g.I(d,512))return"SU";if(g.I(d,16)||g.I(d,32))return"S";if(d.isOrWillBePlaying()&&g.I(d,64))return"B";var q=WAl[rC(d)];g.ho(this.provider.Pv)&&q==="B"&&this.provider.G2.getVisibilityState()===3&&(q="SU");q==="B"&&g.I(d,4)&&(q="PB");return q}; g.Q.ir=function(){g.W.prototype.ir.call(this);g.Fq(this.UD);g.Fq(this.vF)}; g.Q.Hj=function(d){this.isOffline=d;g.UV(this,g.Jp(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.Q.oU=function(d,q,T){var Y=this.gk.indexOf(d)!==-1;Y||this.gk.push(d);if(!T||!Y){var e=typeof q!=="string"?RI(q):q;e=RXI(e);if(!T&&!/^t[.]/.test(e)){var U=g.Jp(this.provider)*1E3;e="t."+U.toFixed()+";"+e}Xf(this,"ctmp",d+":"+e);this.logger.debug(function(){return"ctmp "+d+" "+e}); s62(this);return U}}; g.Q.Ly=function(d,q,T){this.S={uFx:Number(this.oU("glrem",{nst:d.toFixed(),rem:q.toFixed(),ca:+T})),Le:d,j6r:q,isAd:T}}; g.Q.Xi=function(d,q,T){g.UV(this,g.Jp(this.provider),"ad_playback",[d,q,T])}; g.Q.Nd=function(d,q){var T=g.Jp(this.provider)*1E3;Xf(this,"daism","t."+T.toFixed(0)+";smw."+(d*1E3).toFixed(0)+";smo."+(q*1E3).toFixed(0))}; g.Q.resume=function(){var d=this;isNaN(this.UD)?$CY(this):this.UD=g.$A(function(){d.reportStats()},1E4)}; var cS={},WAl=(cS[5]="N",cS[-1]="N",cS[3]="B",cS[0]="EN",cS[2]="PA",cS[1]="PL",cS[-1E3]="ER",cS[1E3]="N",cS),P$s=new Set(["PL","B","S"]),eO=[];g.M(g.NZ,g.W);g.Q=g.NZ.prototype;g.Q.initialize=function(d,q,T){this.logger.debug(function(){return"Initialized, t="+d}); d=d||0;this.policy.G||(q=Alg(this.G),L7Y(this.G2,new Y_(q.video,q.reason)),this.G2.Aa(new Y_(q.audio,q.reason)));this.policy.G&&JW(this);this.vv.isManifestless&&md6(this.S);this.L&&LJn(this.L,this.videoTrack.G);q=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var Y=!this.vv.isManifestless;this.policy.Fc&&(Y=Y||this.vv.uC);if(!this.policy.z2||this.policy.q5)this.currentTime=Y?d:q;this.policy.UD&&this.seek(this.getCurrentTime(),{}).C8(function(){}); if(this.policy.G){var e;((e=this.K)==null?0:qBY(e,this.Sh()||""))&&E47(this)&&c7I(this,this.videoTrack)&&c7I(this,this.audioTrack)&&(hVQ(this.U,this.K),this.policy.S&&MfH(this))}else this.yv&&(j6_(this,this.videoTrack),j6_(this,this.audioTrack),tL_(this.yv),delete this.yv);T?(A7_(this,!1),g.zh(this.nM)):(T=this.getCurrentTime()===0,sY(this.S,this.videoTrack,this.videoTrack.G,T),sY(this.S,this.audioTrack,this.audioTrack.G,T),this.policy.G&&URg(this.U,!0),this.policy.UD||this.seek(this.getCurrentTime(), {}).C8(function(){}),this.timing.tick("gv")); (this.vv.QX||this.vv.rH||this.vv.rO||this.vv.Qp||this.vv.vF)&&this.G2.u0(this.vv)}; g.Q.resume=function(){if(this.isSuspended||this.Uv){this.logger.debug("Resumed.");this.zk=this.Uv=this.isSuspended=!1;try{this.Yo()}catch(d){g.Zz(d)}}}; g.Q.Kb=function(){return!this.policy.zX}; g.Q.dD=function(d,q){d=d===void 0?!1:d;q=q===void 0?!1:q;this.logger.debug("detaching media source");n4N(this);this.G2.Tz()&&(this.X=NaN);d?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.dO&&this.oU("loader",{setsmb:1}),this.policy.rO=!0,this.ZE()):(A7_(this,!1),q||this.ZE())}; g.Q.setAudioTrack=function(d,q,T){T=T===void 0?!1:T;if(!this.JF()){var Y=!isNaN(q);T&&Y&&(this.audioTrack.UD=Date.now(),this.policy.Je&&(this.kx=!0));if(this.policy.G){var e=this.T.X3(d.id,Y);this.logger.debug(function(){return"Logging new audio format: "+e.G.info.id}); this.G2.Aa(e)}else{var U=Ew7(this.G,d.id,Y);this.logger.debug(function(){return"Logging new audio format: "+U.audio.info.id}); this.G2.Aa(new Y_(U.audio,U.reason))}Y?(this.Qp=Date.now(),T=this.audioTrack.G.index.yg(q),this.oU("setAudio",{id:d.id,cmt:q,sq:T}),T>=0&&(d=this.policy.y8?T+1:T,this.policy.G&&this.Sc(!0,"mosaic"),Io(this.audioTrack,d,NaN,NaN),!this.policy.dA&&this.vv.isLive&&lP(this.vv,d,!1))):this.G2.zH()}}; g.Q.setPlaybackRate=function(d){d!==this.B.getPlaybackRate()&&this.B.setPlaybackRate(d)}; g.Q.XG=function(d){var q=this.U.L;this.U.Dv(d);this.oU("scfidc",{curr:SL(q),"new":SL(d)});d&&SL(d)!==SL(q)&&(this.Sc(!0,"caption change"),this.Yo())}; g.Q.v6=function(d){this.U.mD(d)}; g.Q.nJ=function(d){var q=d.G.info.JE();this.logger.debug(function(){return"New "+(q?"audio":"video")+" format from SABR: "+m1(d.G.info)}); q?this.G2.Aa(d):L7Y(this.G2,d)}; g.Q.FO=function(d){Yw(d.Zw[d.Zw.length-1])&&Bmf(this,jd_(this.G,d.Zw[0].G))}; g.Q.gK=function(){return this.G2.gK()}; g.Q.PH=function(){return this.G2.PH()}; g.Q.J3=function(d){this.G2.C().uF()&&this.oU("sps",{status:d.fW||""});if(d.fW===1)this.G2.videoData.UK=0;else if(d.fW===2||d.fW===3){var q=!1;if(d.fW===3){q=this.G2.DL();var T;this.LC=(T=d.oPv)!=null?T:Infinity;this.G2.videoData.UK=q+1;(q=Ny(this))&&this.sO(!0)}this.G2.RX(!0,q)}}; g.Q.C9=function(){return this.G2.C9()}; g.Q.lw=function(){return this.G2.lw()}; g.Q.q6=function(d){this.G2.q6(d)}; g.Q.D3w=function(){var d,q=(d=this.G2.WG())==null?void 0:d.getCurrentTime();q?this.G2.oU("rms",{cta:q}):g.zh(this.qC)}; g.Q.Yo=function(){tfH(this);if(this.ED&&$x(this.ED)&&!this.ED.e8()&&(!this.policy.z2||isFinite(this.getCurrentTime()))){var d=Po(this.videoTrack);d=this.policy.yI&&d&&d.qQ();this.vv.isManifestless&&this.vv.T&&iP(this.vv)?(this.X=iP(this.vv),this.ED.lV(this.X)):od(this.vv)&&!d?isNaN(this.X)?(this.X=this.getCurrentTime()+3600,this.ED.lV(this.X)):this.X<=this.getCurrentTime()+1800&&(this.X=Math.max(this.X+1800,this.getCurrentTime()+3600),this.ED.lV(this.X)):this.ED.isView||(d=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.X)||this.X!==d)&&d>0&&(this.ED.lV(d),this.X=d))}if(!this.JF())if(zE(this.vv)&&this.vv.E5()){var q=this.vv;this.handleError("manifest.net.retryexhausted",q.Fw?{rc:q.v4}:{rc:q.v4.toString()},1)}else if(this.policy.G)a:{try{FJ6(this.U);this.vv.isManifestless&&this.policy.S&&bk(this.AE);var T;((T=this.ED)==null?0:NF(T))&&this.jb();URg(this.U)}catch(b){g.OL(b);q=b;if(q.message.includes("changeType")){this.oU("ctype",{exp:q.name,msg:q.message,s:q.stack});break a}this.handleError("fmt.unplayable", {exp:q.name,msg:q.message,s:q.stack,trg:"sabrslicerqt"},1)}df2(this);g.zh(this.Fw)}else if(!this.vv.U||!pxH(this.videoTrack)&&!pxH(this.audioTrack)||(this.videoTrack.S||this.audioTrack.S)&&this.policy.fn?T=!1:(this.ZE(),this.G2.seekTo(Infinity,{b$:"checkLoaderTracksSync",Xt:!0}),T=!0),!T){tfH(this);this.vv.isManifestless&&(ZOX(this.videoTrack),ZOX(this.audioTrack),bk(this.AE),(T=sj(this.videoTrack))&&T.G&&(T=T.G.j&&!this.policy.zv,this.oU(T===this.policy.L.zz?"strm":"strmbug",{strm:T,sfmp4:this.policy.L.zz, dfs:this.policy.zv},!0)));if(this.ED)this.jb();else if(this.policy.T){var Y;T=!1;if(this.policy.Yh){var e;d=g.E([this.videoTrack,this.audioTrack]);for(e=d.next();!e.done;e=d.next()){var U=e.value;for(e=sj(U);e&&U.N1()!==Po(U);e=sj(U))U.Ad(e);T=T||!!e}}else(q=sj(this.videoTrack))&&this.videoTrack.Ad(q),(Y=sj(this.audioTrack))&&this.audioTrack.Ad(Y);wf(this.videoTrack)&&wf(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(q||Y||T)&&dk(this)}a$H(this);sY(this.S,this.videoTrack, this.videoTrack.G,!1);sY(this.S,this.audioTrack,this.audioTrack.G,!1);this.policy.PC||GJH(this,this.videoTrack,this.audioTrack);Ddj(this.S,this.videoTrack,this.audioTrack);Ddj(this.S,this.audioTrack,this.videoTrack);df2(this);this.L&&(q=this.L,q.T?(Y=q.X+q.policy.Fs,q.j||(Y=Math.min(Y,q.startTimeSecs+q.policy.Yz)),q=Math.max(0,Y*1E3-Date.now())):q=NaN,isNaN(q)||g.zh(this.gk,q));g.zh(this.Fw)}}; g.Q.f7=function(d){this.G2.f7(d)}; g.Q.jb=function(){var d=this;if(this.ED){var q=this.ED.G,T=this.ED.U;bR6(this,this.audioTrack);bR6(this,this.videoTrack);var Y=PHf(this);if(Y){if(this.policy.pW){if(!q.vu()){var e=sj(this.audioTrack);if(e){if(!Ff(this,this.audioTrack,q,e.info))return;uG7(this,this.audioTrack,q,e)}}if(!T.vu()&&(e=sj(this.videoTrack))){if(!Ff(this,this.videoTrack,T,e.info))return;uG7(this,this.videoTrack,T,e)}}this.UD||(this.UD=(0,g.cj)(),this.logger.debug(function(){return"Appends pause start "+d.UD+" reason "+Y}), this.policy.j&&this.oU("apdps",{r:Y}))}else if(this.UD&&(kJH(this,this.UD),this.UD=0),W7D(this),e=!1,iV2(this,this.videoTrack,T)&&(e=!0,ITN(this.timing),vk6(this.timing)),this.ED&&!this.ED.Zh()&&(iV2(this,this.audioTrack,q)&&(e=!0,mn1(this.timing),ok2(this.timing)),!this.JF()&&this.ED))!this.policy.zX&&wf(this.videoTrack)&&wf(this.audioTrack)&&$x(this.ED)&&!this.ED.e8()&&(T=!1,T=Po(this.audioTrack).G,T=T===this.vv.G[T.info.id])&&(this.logger.debug("Setting EOS"),wkN(this.ED),nKH(this.schedule),this.Fz("e")), e&&!this.ED.isAsync()&&dk(this)}}; g.Q.Fz=function(d){if(this.policy.rR&&this.vv.isManifestless){var q=this.videoTrack.G;if(q){var T=q.index.nC(),Y=-1,e=-1;q.index instanceof hl&&(Y=q.index.YD(),e=q.index.As());this.G2.Fz(d,T,Y,e)}}}; g.Q.rT=function(d){var q,T=d===((q=this.ED)==null?void 0:q.G)?this.audioTrack:this.videoTrack,Y;if((Y=sj(T))==null?0:Y.isLocked){if(this.G2.C().uF()){var e;this.oU("eosl",{ounlock:(e=sj(T))==null?void 0:e.info.jt()})}var U;o4j(this,d===((U=this.ED)==null?void 0:U.G))}var b;if(this.policy.Je&&d===((b=this.ED)==null?void 0:b.G)&&this.wO){q=this.wO-this.getCurrentTime();var J;this.G2.oU("asl",{l:q,xtag:(J=Po(this.audioTrack))==null?void 0:J.G.info.G});this.kx=!1;this.wO=0}d.Ao()&&d.Zm().length===0&& (d.zc(),this.ED&&!this.ED.Ao()&&(this.G2.C().uF()&&this.G2.oU("rms",{ld:"seek"}),this.ED.X=performance.now(),this.G2.R3(),this.G2.C().uF()&&g.zh(this.qC)));var F;(F=T.K)!=null&&yx(F,0);this.policy.Ln?gZ(this):this.Yo()}; g.Q.Rg5=function(d){if(this.ED){var q=Po(d===this.ED.G?this.audioTrack:this.videoTrack);if(d=d.o_())for(var T=0;T 5&&d.lr.shift();q=q.sD;var J;if((J=this.G2.getVideoData())==null?0:J.enableServerStitchedDai)J=B61(this.audioTrack,q),T=B61(this.videoTrack,q),J!==0&&T!==0&&J!==T&&this.handleError("ssdai.avsync",{sq:q,a:J,v:T},0)}}; g.Q.rV=function(d,q,T,Y){d.info.video&&this.j.rV(q,T,Y)}; g.Q.NH=function(d){this.G.NH(d)}; g.Q.mA=dI(12);g.Q.Mv=function(){if(g.I(this.G2.getPlayerState(),8)){var d,q,T=(q=(d=this.G2.WG())==null?void 0:d.getCurrentTime())!=null?q:this.G2.getCurrentTime(),Y;(Y=this.fn)==null||Ztg(Y,T)}var e;(e=this.q5)==null||g.zh(e)}; g.Q.VN=function(){return this.videoTrack.L||this.audioTrack.L}; g.Q.seek=function(d,q){if(this.JF())return nK();if(this.VN())return nK("seeking to head");if(this.policy.UD&&!isFinite(d))return OYf(this.AE),g.Of(Infinity);tfH(this);JW(this);this.policy.G||a$H(this,d);this.ED&&this.ED.G&&this.ED.U&&!this.G2.getVideoData().pR&&(this.ED.G.isLocked()||this.ED.U.isLocked())&&this.G2.zH({reattachOnLockedBuffer:1,vsb:""+this.ED.U.isLocked(),asb:""+this.ED.G.isLocked()});var T=this.getCurrentTime(),Y=this.AE.seek(d,q);if(!this.policy.z2||this.policy.q5)this.currentTime= Y;df(this.j,d,T,this.policy.GD&&!q.UI);dk(this);return g.Of(Y)}; g.Q.fT=function(d){return this.policy.G&&this.U.fT(d)}; g.Q.JO=function(d){return this.U.JO(d)}; g.Q.Sc=function(d,q){this.U.Sc(d,q)}; g.Q.getCurrentTime=function(){if(this.policy.z2){var d=this.mz()||0;return this.G2.getCurrentTime(!0)-d}return this.currentTime}; g.Q.A_=function(){return this.audioTrack.G.info}; g.Q.Ko=function(){return this.videoTrack.G.info}; g.Q.F4=function(){return this.audioTrack.G.info.Cf}; g.Q.D6=function(){return this.videoTrack.G.info.Cf}; g.Q.ir=function(){try{this.dD(),TM(this.audioTrack),TM(this.videoTrack),oo(this.audioTrack),oo(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.W.prototype.ir.call(this)}catch(d){g.Zz(d)}}; g.Q.handleError=function(d,q,T){T=T===void 0?0:T;var Y=yb(T);d==="fmt.unplayable"&&this.vv.isLive&&(this.policy.pW=!1,Su(this.vv));q=new g.xV(d,q,T);g.X_(this);RI(q.details);this.G2.handleError(q);d!=="html5.invalidstate"&&q.errorCode!=="fmt.unplayable"&&d!=="fmt.unparseable"&&Y&&this.dispose()}; g.Q.BF=function(){var d=Po(this.audioTrack),q=Po(this.videoTrack);d={lct:this.getCurrentTime().toFixed(3),lsk:this.AE.isSeeking(),lmf:this.G.G.isLocked(),lbw:ie(this.schedule).toFixed(3),lhd:fO(this.schedule).toFixed(3),lst:((this.schedule.L.W4()||0)*1E9).toFixed(3),laa:d?d.jt():"",lva:q?q.jt():"",lar:this.audioTrack.U?this.audioTrack.U.jt():"",lvr:this.videoTrack.U?this.videoTrack.U.jt():"",laq:""+fP(this.audioTrack),lvq:""+fP(this.videoTrack)};this.ED&&!this.ED.Zh()&&this.ED.G&&this.ED.U&&(d.lab= lW(this.ED.G.Zm()),d.lvb=lW(this.ED.U.Zm()));this.UD&&(d.lapt=((0,g.cj)()-this.UD).toFixed(0),d.lapr=PHf(this));this.aU&&(d.lapmabht=((0,g.cj)()-this.aU).toFixed(0),d.lapmabh=e6(this,this.audioTrack).toFixed(0));this.qk&&(d.lapmvbht=((0,g.cj)()-this.qk).toFixed(0),d.lapmvbh=e6(this,this.videoTrack).toFixed(0));this.RU&&(d.lapsdai=((0,g.cj)()-this.RU).toFixed(0));return d}; g.Q.ZE=function(){try{this.policy.G&&this.U.Sc(!1,"pending"),this.audioTrack.ZE(),this.videoTrack.ZE()}catch(d){g.Zz(d)}this.policy.T=""}; g.Q.L7=function(){return mH(this.B)}; g.Q.oU=function(d,q,T){this.G2.oU(d,q,T===void 0?!1:T)}; g.Q.Sh=function(){return this.G2.Sh()}; g.Q.Xt=function(d,q){d/=q;isNaN(this.timestampOffset)&&s7I(this,d-Math.min(d,this.policy.fd));return(d-this.timestampOffset)*q}; g.Q.mz=function(){return this.timestampOffset}; g.Q.isSeeking=function(){return this.AE.isSeeking()}; g.Q.Dn=function(){this.j.Dn()}; g.Q.J8=function(d,q,T){q=q===void 0?!1:q;T=T===void 0?{}:T;this.policy.G?this.T.J8(d,q,T):this.G.J8(d,q,T)}; g.Q.oF=function(d,q){if(this.lr&&this.j.oF(d,this.lr)){if(this.policy.wO&&this.policy.U){var T=this.videoTrack.G.index.yg(d),Y;(Y=this.rO)==null||Y.gJ(d,T)}s7I(this,this.timestampOffset-q);dk(this);this.policy.U&&(Su(this.vv),oo(this.audioTrack),oo(this.videoTrack),this.ZE());return!0}q=this.videoTrack.G.index.yg(d);this.handleError("ad.skipfailed",{dec:!!this.lr,t:d.toFixed(3),sq:q});return!1}; g.Q.getManifest=function(){return this.vv}; g.Q.isOffline=function(){return!!this.G2.getVideoData().cotn}; g.Q.d0=function(d,q){this.G2.d0(d,q)}; g.Q.mN=function(d){if(this.policy.G)this.U.Sc(!0,"utc"),this.Yo();else{var q=this.G2.getVideoData().Rg;if(q){var T=this.S;T.vr=d;T.Rg=q;R7(this)}}}; g.Q.Md=function(d){this.videoTrack.L=!1;this.audioTrack.L=!1;this.AE.G=!1;this.G2.Md(d)}; g.Q.DK=function(d){this.AE.DK(d-this.mz())}; g.Q.q7=function(){this.G2.q7()}; g.Q.sO=function(d){d!==this.policy.wU&&((this.policy.wU=d)||this.Yo())}; g.Q.zH=function(d){this.G2.zH(d)}; g.Q.yD=function(d){this.G2.yD(d)}; g.Q.xG=function(d,q,T){var Y;(Y=this.rO)==null||Y.xG(d,q,T)}; g.Q.vy=function(d,q){var T;(T=this.rO)==null||T.vy(d,q)}; g.Q.Qo=function(d){var q;return(q=this.rO)==null?void 0:q.Qo(void 0,d)}; g.Q.DL=function(){return this.G2.DL()}; g.Q.IW=function(d,q){if(this.policy.rA){var T;(T=this.rO)==null||T.IW(d,q)}};g.Q=g.Ri.prototype;g.Q.xF=function(d,q,T,Y,e,U){return this.Rd.xF(d,q,T,Y,e,U)}; g.Q.Ta=function(d,q,T,Y,e,U){return this.Rd.Ta(d,q,T,Y,e,U)}; g.Q.Mh=function(d){return this.Rd.Mh(d)}; g.Q.M9=function(d){this.Rd.M9(d)}; g.Q.JI=function(d,q,T,Y){return this.Rd.JI(d,q,T,Y)}; g.Q.Dn=function(){this.Rd.Dn()}; g.Q.gJ=function(d,q){this.Rd.gJ(d,q)}; g.Q.LD=function(){this.Rd.LD()}; g.Q.Mc=dI(56);g.Q.RQ=function(d,q,T){this.Rd.RQ(d,q,T)}; g.Q.iT=dI(59);g.Q.wb=function(d,q,T,Y,e,U,b,J,F){this.Rd.wb(d,q,T,Y,e,U,b,J,F)}; g.Q.AX=function(d){this.Rd.AX(d)}; g.Q.sI=function(d){return this.Rd.sI(d)}; g.Q.jX=function(d){return this.Rd.jX(d)};g.M(xN,g.YP);g.M(yo,xN);yo.prototype.X=function(d,q){if(d&&q){var T=Number(cK(d,"cpi"))*1+1;isNaN(T)||T<=0||Tthis.j&&(this.j=T,g.FV(this.G)||(this.G={},this.T.stop(),this.U.stop())),this.G[q]=d,g.zh(this.U))}}; yo.prototype.S=function(){for(var d=g.E(Object.keys(this.G)),q=d.next();!q.done;q=d.next()){var T=q.value;q=this.publish;for(var Y=this.j,e=g.Jq(this.G[T]),U=[],b=g.E(e[6].split("&")),J=b.next();!J.done;J=b.next())J=J.value,J.indexOf("cpi=")===0?U.push("cpi="+Y.toString()):J.indexOf("ek=")===0?U.push("ek="+g.pn(T)):U.push(J);e[6]="?"+U.join("&");T="skd://"+e.slice(2).join("");e=T.length*2;Y=new Uint8Array(e+4);Y[0]=e%256;Y[1]=(e-Y[0])/256;for(e=0;e0)for(var T=g.E(this.G),Y=T.next();!Y.done;Y=T.next())if(q===Y.value.info.cryptoPeriodIndex){q=!0;break a}q=!1}if(!q){q=(0,g.cj)();a:{T=d.cryptoPeriodIndex;if(!isNaN(T)){Y=g.E(this.j.values());for(var e=Y.next();!e.done;e=Y.next())if(Math.abs(e.value.cryptoPeriodIndex-T)<=1){T=!0;break a}}T=!1}T?(T=d.G,T=Math.max(0,Math.random()*((isNaN(T)?120:T)-30))*1E3):T=0;this.publish("log_qoe",{wvagt:"delay."+T,cpi:d.cryptoPeriodIndex,reqlen:this.G.length}); T<=0?NZY(this,d):(this.G.push({time:q+T,info:d}),g.zh(this.U,T))}}; hp.prototype.ir=function(){this.G=[];xN.prototype.ir.call(this)};var EQ={},HH7=(EQ.DRM_TRACK_TYPE_AUDIO="AUDIO",EQ.DRM_TRACK_TYPE_SD="SD",EQ.DRM_TRACK_TYPE_HD="HD",EQ.DRM_TRACK_TYPE_UHD1="UHD1",EQ);g.M(yWn,g.W);g.M(MB6,g.YP);g.Q=MB6.prototype;g.Q.mL=function(d){var q=this;if(!(this.JF()||d.size<=0)){var T={};d.forEach(function(Y,e){var U=Xv(q.U)?e:Y;e=new Uint8Array(Xv(q.U)?Y:e);Xv(q.U)&&k$7(e);Y=g.A0(e,4);k$7(e);e=g.A0(e,4);q.G[Y]?q.G[Y].status=U:q.G[e]?q.G[e].status=U:q.G[Y]={type:"",status:U};G$f(q,q.G[Y].type,T)}); BZ1(this,",");H8(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.Q.error=function(d,q,T,Y){this.JF()||(this.publish("licenseerror",d,q,T,Y),d==="drm.provision"&&(d=(Date.now()-this.X)/1E3,this.X=NaN,this.publish("ctmp","provf",{et:d.toFixed(3)})));yb(q)&&this.dispose()}; g.Q.shouldRetry=function(d,q){return!d&&this.requestNumber===q.requestNumber}; g.Q.ir=function(){this.G={};g.YP.prototype.ir.call(this)}; g.Q.BF=function(){var d={ctype:this.B.contentType||"",length:this.B.initData.length,requestedKeyIds:this.yv,cryptoPeriodIndex:this.cryptoPeriodIndex};this.j&&(d.keyStatuses=this.G);return d}; g.Q.getInfo=function(){var d=this.T.join();if(Qo(this)){var q=new Set,T;for(T in this.G)this.G[T].status!=="usable"&&q.add(this.G[T].type);d+="/UKS."+Array.from(q)}return d+="/"+this.cryptoPeriodIndex}; g.Q.Hl=function(){return this.url};g.M(c8,g.W);g.Q=c8.prototype;g.Q.Ia=function(d){if(this.S){var q=d.messageType||"license-request";this.S(new Uint8Array(d.message),q)}}; g.Q.mL=function(){this.L&&this.L(this.G.keyStatuses)}; g.Q.onClosed=function(){this.JF()||g.kA("xboxone")&&this.j&&this.j("closedShouldNotRetry")}; g.Q.jf=function(d){this.S&&this.S(d.message,"license-request")}; g.Q.ox=function(d){if(this.j){if(this.U){var q=this.U.error.code;d=this.U.error.systemCode}else q=d.errorCode,d=d.systemCode;this.j("t.prefixedKeyError;c."+q+";sc."+d,q,d)}}; g.Q.Up=function(){this.X&&this.X()}; g.Q.update=function(d){var q=this;if(this.G)return this.G.update(d).then(null,wg(function(T){WcI(q,"t.update",T)})); this.U?this.U.update(d):this.element.addKey?this.element.addKey(this.B.keySystem,d,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.B.keySystem,d,this.initData,this.sessionId);return pZ()}; g.Q.ir=function(){this.G&&(this.K?this.G.close().catch(g.OL):this.G.close());this.element=null;g.W.prototype.ir.call(this)};g.M(EV,g.W);g.Q=EV.prototype;g.Q.setServerCertificate=function(){return this.U.setServerCertificate?this.G.flavor==="widevine"&&this.G.zr?this.U.setServerCertificate(this.G.zr):$8(this.G)&&this.G.qk?this.U.setServerCertificate(this.G.qk):null:null}; g.Q.createSession=function(d,q){var T=d.initData;if(this.G.keySystemAccess){q&&q("createsession");var Y=this.U.createSession();s4(this.G)?T=DyY(T,this.G.qk):$8(this.G)&&(T=Fc7(T)||new Uint8Array(0));q&&q("genreq");d=Y.generateRequest(d.contentType,T);var e=new c8(null,null,null,Y,null,this.L);d.then(function(){q&&q("genreqsuccess")},wg(function(b){WcI(e,"t.generateRequest",b)})); return e}if(be(this.G))return fMX(this,T);if(Jj(this.G))return wMj(this,T);if((Y=this.element)==null?0:Y.generateKeyRequest)this.element.generateKeyRequest(this.G.keySystem,T);else{var U;(U=this.element)==null||U.webkitGenerateKeyRequest(this.G.keySystem,T)}return this.T=new c8(this.element,this.G,T,null,null,this.L)}; g.Q.bz=function(d){var q=zQj(this,d);q&&q.jf(d)}; g.Q.hf=function(d){var q=zQj(this,d);q&&q.ox(d)}; g.Q.YO=function(d){var q=zQj(this,d);q&&q.Up(d)}; g.Q.getMetrics=function(){if(this.U&&this.U.getMetrics)try{var d=this.U.getMetrics()}catch(q){}return d}; g.Q.ir=function(){this.j=this.U=null;var d;(d=this.T)==null||d.dispose();d=g.E(Object.values(this.X));for(var q=d.next();!q.done;q=d.next())q.value.dispose();this.X={};g.W.prototype.ir.call(this);delete this.element};g.Q=jO.prototype;g.Q.get=function(d){d=this.findIndex(d);return d!==-1?this.values[d]:null}; g.Q.remove=function(d){d=this.findIndex(d);d!==-1&&(this.keys.splice(d,1),this.values.splice(d,1))}; g.Q.removeAll=function(){this.keys=[];this.values=[]}; g.Q.set=function(d,q){var T=this.findIndex(d);T!==-1?this.values[T]=q:(this.keys.push(d),this.values.push(q))}; g.Q.findIndex=function(d){return g.Mx(this.keys,function(q){return g.Is(d,q)})};g.M(myn,g.YP);g.Q=myn.prototype;g.Q.GGr=function(d){this.Yq({onecpt:1});d.initData&&vWX(this,new Uint8Array(d.initData),d.initDataType)}; g.Q.d5D=function(d){this.Yq({onndky:1});vWX(this,d.initData,d.contentType)}; g.Q.Wq=function(d){this.Yq({onneedkeyinfo:1});this.Pv.N("html5_eme_loader_sync")&&(this.L.get(d.initData)||this.L.set(d.initData,d));lMD(this,d)}; g.Q.HN=function(d){this.j.push(d);ai(this)}; g.Q.createSession=function(d){var q=VBf(this)?z82(d):g.A0(d.initData);this.U.get(q);this.rO=!0;d=new MB6(this.videoData,this.Pv,d,this.drmSessionId);this.U.set(q,d);d.subscribe("ctmp",this.WY,this);d.subscribe("keystatuseschange",this.mL,this);d.subscribe("licenseerror",this.LJ,this);d.subscribe("newlicense",this.G4,this);d.subscribe("newsession",this.f4,this);d.subscribe("sessionready",this.YV,this);d.subscribe("fairplay_next_need_key_info",this.VC,this);this.Pv.N("html5_enable_vp9_fairplay")&&d.subscribe("qualitychange", this.LN,this);d.subscribe("sabrlicenseconstraint",this.gcf,this);aMD(d,this.T)}; g.Q.G4=function(d){this.JF()||(this.Yq({onnelcswhb:1}),d&&!this.heartbeatParams&&(this.heartbeatParams=d,this.publish("heartbeatparams",d)))}; g.Q.f4=function(){this.JF()||(this.Yq({newlcssn:1}),this.j.shift(),this.rO=!1,ai(this))}; g.Q.YV=function(){if(be(this.G)&&(this.Yq({onsnrdy:1}),this.aU--,this.aU===0)){var d=this.lr,q,T;(q=d.element)==null||(T=q.msSetMediaKeys)==null||T.call(q,d.j)}}; g.Q.mL=function(d){if(!this.JF()){!this.dO&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(dZX(this),this.dO=!0);this.Yq({onksch:1});var q=this.LN;if(!Qo(d)&&g.DP&&d.U.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var T="large";else{T=[];var Y=!0;if(Qo(d))for(var e=g.E(Object.keys(d.G)),U=e.next();!U.done;U=e.next())U=U.value,d.G[U].status==="usable"&&T.push(d.G[U].type),d.G[U].status!=="unknown"&&(Y=!1);if(!Qo(d)||Y)T=d.T;T=tBI(T)}q.call(this,T);if(!Qo(d))for(q= {},T=g.E(d.T),Y=T.next();!Y.done;Y=T.next())G$f(d,Y.value,q);this.videoData.authorizedFormats=d.authorizedFormats;this.publish("keystatuseschange",d)}}; g.Q.WY=function(d,q){this.JF()||this.publish("ctmp",d,q)}; g.Q.VC=function(d,q){this.JF()||this.publish("fairplay_next_need_key_info",d,q)}; g.Q.LJ=function(d,q,T,Y){this.JF()||(this.videoData.N("html5_log_drm_metrics_on_error")&&dZX(this),this.publish("licenseerror",d,q,T,Y))}; g.Q.qT=function(){return this.B}; g.Q.LN=function(d){var q=g.ZW("auto",d,!1,"l");if(this.videoData.wU){if(this.B.equals(q))return}else if(RlY(this.B,d))return;this.B=q;this.publish("qualitychange");this.Yq({updtlq:d})}; g.Q.gcf=function(d){this.videoData.sabrLicenseConstraint=d}; g.Q.ir=function(){this.G.keySystemAccess&&this.element&&(this.yv?this.element.setMediaKeys(null).catch(g.OL):this.element.setMediaKeys(null));this.element=null;this.j=[];for(var d=g.E(this.U.values()),q=d.next();!q.done;q=d.next())q=q.value,q.unsubscribe("ctmp",this.WY,this),q.unsubscribe("keystatuseschange",this.mL,this),q.unsubscribe("licenseerror",this.LJ,this),q.unsubscribe("newlicense",this.G4,this),q.unsubscribe("newsession",this.f4,this),q.unsubscribe("sessionready",this.YV,this),q.unsubscribe("fairplay_next_need_key_info", this.VC,this),this.Pv.N("html5_enable_vp9_fairplay")&&q.unsubscribe("qualitychange",this.LN,this),q.dispose();this.U.clear();this.X.removeAll();this.L.removeAll();this.heartbeatParams=null;g.YP.prototype.ir.call(this)}; g.Q.BF=function(){for(var d={systemInfo:this.G.BF(),sessions:[]},q=g.E(this.U.values()),T=q.next();!T.done;T=q.next())d.sessions.push(T.value.BF());return d}; g.Q.getInfo=function(){return this.U.size<=0?"no session":""+this.U.values().next().value.getInfo()+(this.S?"/KR":"")}; g.Q.Yq=function(d,q){q=q===void 0?!1:q;this.JF()||(RI(d),(this.Pv.uF()||q)&&this.publish("ctmp","drmlog",d))};g.M(UZQ,g.W);g.Q=UZQ.prototype;g.Q.bk=function(){return!!this.jR}; g.Q.jI=function(){return this.U}; g.Q.handleError=function(d){var q=this;gNI(this,d);if((d.errorCode!=="html5.invalidstate"&&d.errorCode!=="fmt.unplayable"&&d.errorCode!=="fmt.unparseable"||!$Zn(this,d.errorCode,d.details))&&!xZf(this,d)){if(this.Mk.lr!=="yt"&&Nkj(this,d)&&this.videoData.tW&&(0,g.cj)()/1E3>this.videoData.tW&&this.Mk.lr==="hm"){var T=Object.assign({e:d.errorCode},d.details);T.stalesigexp="1";T.expire=this.videoData.tW;T.init=this.videoData.PM/1E3;T.now=(0,g.cj)()/1E3;T.systelapsed=((0,g.cj)()-this.videoData.PM)/1E3; d=new g.xV(d.errorCode,T,2);this.G2.o6(d.errorCode,2,"SIGNATURE_EXPIRED",RI(d.details))}if(yb(d.severity)){var Y;T=(Y=this.G2.loader)==null?void 0:Y.G.G;if(this.Mk.N("html5_use_network_error_code_enums"))if(F_D(d)&&T&&T.isLocked())var e="FORMAT_UNAVAILABLE";else if(this.Mk.X||d.errorCode!=="auth"||d.details.rc!==429)d.errorCode==="ump.spsrejectfailure"&&(e="HTML5_SPS_UMP_STATUS_REJECTED");else{e="TOO_MANY_REQUESTS";var U="6"}else F_D(d)&&T&&T.isLocked()?e="FORMAT_UNAVAILABLE":this.Mk.X||d.errorCode!== "auth"||d.details.rc!=="429"?d.errorCode==="ump.spsrejectfailure"&&(e="HTML5_SPS_UMP_STATUS_REJECTED"):(e="TOO_MANY_REQUESTS",U="6");this.G2.o6(d.errorCode,d.severity,e,RI(d.details),U)}else this.G2.publish("nonfatalerror",d),Y=/^pp/.test(this.videoData.clientPlaybackNonce),this.jT(d.errorCode,d.details),Y&&d.errorCode==="manifest.net.connect"&&(d="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.cj)(),ii(d,"manifest",function(b){q.X=!0;q.oU("pathprobe",b)}, function(b){q.jT(b.errorCode,b.details)}))}}; g.Q.oU=function(d,q){this.G2.X9.oU(d,q)}; g.Q.jT=function(d,q){q=RI(q);this.G2.X9.jT(d,q)};Ap.prototype.n7=function(d){var q=Qi2(this);if(!d)return{Nz:xp,Sw:xp,cw:xp,zt:xp,xi:xp,Vy:xp,o2:q};var T=xp;if(nY(q)||this.N("html5_perf_cap_override_sticky"))T=tOg(this,d);return{Nz:T,Sw:Apf(this,d),cw:jiD(this,d),zt:Bk6(this,d.videoData),xi:K_2(this,d.videoData,d),Vy:cpN(this,d),o2:q}}; Ap.prototype.e1=function(d){if(g.ho(this.Pv)&&fY(this.Pv.S,zG.HEIGHT))var q=d.G.videoInfos[0].video.qualityOrdinal;else{var T=this.LB(!!d.G.G);OB(d.videoData)||NC(d.videoData);d=d.G.videoInfos;if(d.length){var Y=g.Yv(this.Pv.experiments,"html5_override_oversend_fraction")||.85,e=d[0].video;e.projectionType!=="MESH"&&e.projectionType!=="EQUIRECTANGULAR"&&e.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Yl||(Y=.45);e=g.Yv(this.Pv.experiments,"html5_viewport_undersend_maximum");for(var U=0;U< d.length;U++){q=d[U];var b=q.video;if(T===null||b.width*Y=0,stateAtSend:q,joinLatencySecs:U,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:Y,playerCanaryStage:e,isAd:this.provider.videoData.isAd(),liveMode:T,hasDrm:!!g.ft(this.provider.videoData),isGapless:this.provider.videoData.L,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:tw(this.provider.videoData)};d||g.Ta("html5PlayerHealthEvent",q);this.j=!0;this.dispose()}}; ZK.prototype.ir=function(){this.j||this.send();window.removeEventListener("error",this.CM);window.removeEventListener("unhandledrejection",this.CM);g.W.prototype.ir.call(this)}; var C$I=/\bnet\b/;W_Q.prototype.update=function(){if(this.L){var d=this.tE()||0,q=g.Jp(this.provider);d>=this.provider.G2.getDuration()-.1&&(this.previouslyEnded=!0);if(d!==this.G||DZQ(this,d,q)){var T;if(!(T=dq-this.ul+2||DZQ(this,d,q))){T=this.provider.G2.getVolume();var Y=T!==this.K,e=this.provider.G2.isMuted()?1:0;e!==this.B?(this.B=e,T=!0):(!Y||this.T>=0||(this.K=T,this.T=q),T=q-this.T,this.T>=0&&T>2?(this.T=-1,T=!0):T=!1)}T&&(nE(this),this.j=d);this.ul=q;this.G=d}}}; W_Q.prototype.tE=function(){var d=this.provider.G2.tE();return this.provider.Pv.N("html5_disable_live_dvr_shrink_for_cdm_vss")&&rd(this.provider.videoData)?d+this.provider.G2.mz():d};w8Q.prototype.send=function(d){var q=this;if(!this.Fw){var T=z52(this),Y=g.y6(this.uri,T);this.Pv.N("vss_through_gel_double")&&iEQ(Y);this.rO&&!this.Pv.N("html5_simplify_pings")?vNN(this,Y):fKH(this,d).then(function(e){q.rO&&(e=e||{},e.method="POST",e.postParams={atr:q.attestationResponse});SB2(Y,e,{token:q.UD,Yj:q.lF,mdxEnvironment:q.mdxEnvironment},q.Pv,d,q.z2,q.isFinal&&q.XF||q.dO||q.j&&q.qU)}); this.Fw=!0}}; w8Q.prototype.U=function(d){d===void 0&&(d=NaN);return Number(d.toFixed(3)).toString()}; var jQ={},SVX=(jQ.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,jQ.LIVING_ROOM_APP_MODE_MAIN=1,jQ.LIVING_ROOM_APP_MODE_KIDS=2,jQ.LIVING_ROOM_APP_MODE_MUSIC=3,jQ.LIVING_ROOM_APP_MODE_UNPLUGGED=4,jQ.LIVING_ROOM_APP_MODE_GAMING=5,jQ),aK={},mZ7=(aK.EMBEDDED_PLAYER_MODE_UNKNOWN=0,aK.EMBEDDED_PLAYER_MODE_DEFAULT=1,aK.EMBEDDED_PLAYER_MODE_PFP=2,aK.EMBEDDED_PLAYER_MODE_PFL=3,aK);g.M(tp,g.W);tp.prototype.S$=function(){this.G.update();bcj(this)&&(daN(this),q8Q(this))}; tp.prototype.ir=function(){g.W.prototype.ir.call(this);G6(this);CCn(this.G)}; tp.prototype.BF=function(){return z52(B8(this,"playback"))}; tp.prototype.iS=function(d){var q=B8(this,"engage");q.yv=d;return IK2(q,FBD(this.provider))};gsj.prototype.isEmpty=function(){return this.endTime===this.startTime};kN.prototype.N=function(d){return this.Pv.N(d)}; kN.prototype.getCurrentTime=function(){return this.G2.getCurrentTime()}; kN.prototype.tE=function(){return this.G2.tE()}; var NFD={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.M(g.P8,g.W);g.Q=g.P8.prototype;g.Q.S$=function(){if(this.provider.videoData.enableServerStitchedDai&&this.KA){var d;(d=this.j.get(this.KA))==null||d.S$()}else this.G&&this.G.S$()}; g.Q.WR=function(d){this.qoe&&this.qoe.WR(d)}; g.Q.xL=dI(29);g.Q.Ak=dI(35);g.Q.Nd=function(d,q){this.qoe&&this.qoe.Nd(d,q)}; g.Q.bX=function(){if(this.provider.videoData.enableServerStitchedDai&&this.KA){var d;(d=this.j.get(this.KA))!=null&&nE(d.G)}else this.G&&nE(this.G.G)}; g.Q.jT=function(d,q){this.qoe&&F7H(this.qoe,d,q);if(this.U)this.U.onError(d)}; g.Q.onPlaybackRateChange=function(d){if(this.qoe)this.qoe.onPlaybackRateChange(d);this.G&&nE(this.G.G)}; g.Q.xz=dI(52);g.Q.oU=function(d,q,T){this.qoe&&this.qoe.oU(d,q,T)}; g.Q.Ly=function(d,q,T){this.qoe&&this.qoe.Ly(d,q,T)}; g.Q.oP=function(d){var q;(q=this.qoe)==null||q.oP(d)}; g.Q.u0=function(d){var q;(q=this.qoe)==null||q.u0(d)}; g.Q.Fz=function(d,q,T,Y){var e;(e=this.qoe)==null||e.Fz(d,q,T,Y)}; g.Q.yD=function(d){this.qoe&&this.qoe.yD(d)}; g.Q.Xi=function(d,q,T){this.qoe&&this.qoe.Xi(d,q,T)}; g.Q.Gz=dI(23);g.Q.bE=function(){if(this.qoe)return this.qoe.bE()}; g.Q.BF=function(){if(this.provider.videoData.enableServerStitchedDai&&this.KA){var d,q;return(q=(d=this.j.get(this.KA))==null?void 0:d.BF())!=null?q:{}}return this.G?this.G.BF():{}}; g.Q.NI=function(){var d;return(d=this.qoe)==null?void 0:d.NI()}; g.Q.Z1=function(d,q){var T;(T=this.qoe)==null||T.Z1(d,q)}; g.Q.iS=function(d){return this.G?this.G.iS(d):function(){}}; g.Q.getVideoData=function(){return this.provider.videoData}; g.Q.resume=function(){this.qoe&&this.qoe.resume()};g.M(g.W8,g.W);g.Q=g.W8.prototype;g.Q.ES=function(d,q){this.sync();q&&this.G.array.length>=2E3&&this.uX("captions",1E4);q=this.G;if(d.length>1&&d.length>q.array.length)q.array=q.array.concat(d),q.array.sort(q.G);else{d=g.E(d);for(var T=d.next();!T.done;T=d.next())T=T.value,!q.array.length||q.G(T,q.array[q.array.length-1])>0?q.array.push(T):g.mq(q.array,T,q.G)}this.j=NaN;this.sync()}; g.Q.cR=function(d){d.length>1E4&&g.OL(new g.CW("Over 10k cueRanges removal occurs with a sample: ",d[0]));if(!this.JF()){var q=new Set(d);this.U=this.U.filter(function(T){return!q.has(T)}); ns7(this.G,q);this.sync()}}; g.Q.XA=function(d,q){if(!this.JF()){var T=this.lw().find(function(Y){return Y.id===q&&Y.namespace===d}); T&&this.cR([T])}}; g.Q.uX=function(d,q){var T=(isNaN(this.j)?GQ7(this):this.j)-q;q=this.lw().filter(function(Y){return Y.namespace===d&&Y.endthis.G,U=g.I(T,8)&&g.I(T,16),b=this.G2.Jp().isBackground()||T.isSuspended();SO(this,this.AF,U&&!b,e,"qoe.slowseek",function(){},"timeout"); var J=isFinite(this.G);J=U&&J&&ly2(q,this.G);var F=!Y||Math.abs(Y-this.G)>10,N=this.Pv.N("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),R=Y===0&&this.U&&[11,10].includes(this.U);SO(this,this.Fw,J&&F&&!b&&(!N||!R),e,"qoe.slowseek",function(){q.seekTo(d.G)},"set_cmt"); F=J&&oI(q.g1(),this.G);var x=this.G2.loader;J=!x||x.Kb();var y=function(){q.seekTo(d.G+.001)}; SO(this,this.dO,F&&J&&!b,e,"qoe.slowseek",y,"jiggle_cmt");J=function(){return d.G2.U6()}; SO(this,this.RU,F&&!b,e,"qoe.slowseek",J,"new_elem");var h=nk(T);R=T.isBuffering();var H=q.g1(),a=vH(H,Y),p=a>=0&&H.end(a)>Y+5;F=h&&R&&p;N=this.G2.getVideoData();SO(this,this.aU,Y<.002&&this.G<.002&&U&&g.ho(this.Pv)&&g.XG(N)&&!b,e,"qoe.slowseek",J,"slow_seek_shorts");SO(this,this.K,N.mT()&&U&&!b&&!N.UD,e,"qoe.slowseek",J,"slow_seek_gapless_shorts");SO(this,this.lr,F&&!b,h&&!R,"qoe.longrebuffer",y,"jiggle_cmt");SO(this,this.UD,F&&!b,h&&!R,"qoe.longrebuffer",J,"new_elem_nnr");if(x){var t=x.getCurrentTime(); U=q.NT();U=Wr1(U,t);U=!x.isSeeking()&&Y===U;SO(this,this.Qp,h&&R&&U&&!b,h&&!R&&!U,"qoe.longrebuffer",function(){q.seekTo(t)},"seek_to_loader")}U={}; y=vH(H,Math.max(Y-3.5,0));var n=y>=0&&Y>H.end(y)-1.1,K=y>=0&&y+1=0&&n&&K<11;U.close2edge=n;U.gapsize=K;U.buflen=H.length;this.U&&(U.seekSour=this.U);SO(this,this.yv,h&&R&&!b,h&&!R,"qoe.longrebuffer",function(){},"timeout",U); U=T.isSuspended();U=this.G2.k6()&&!U;SO(this,this.L,U,!U,"qoe.start15s",function(){d.G2.Lz("ad")},"ads_preroll_timeout"); U=this.Pv.experiments.Wv("html5_use_playback_rate_in_skip_slow_ad")?this.G2.getPlaybackRate()*1E3:1E3;a=Y-this.T5;SO(this,this.xx,g.XG(N)&&x,h&&!R,"qoe.longrebuffer",function(){d.G2.zH()},"reset_media_source"); SO(this,this.qk,g.XG(N)&&x,h&&!R,"qoe.longrebuffer",J,"reset_media_element");this.T===0&&(this.X=Y);x=R&&this.G===0&&Y>1&&Y===this.X;SO(this,this.z2,g.XG(N)&&x,h&&!R,"qoe.slowseek",function(){q.seekTo(0)},"reseek_after_time_jump"); b=T.isOrWillBePlaying()&&!b;p=this.G2.Jq()-Y<6&&!p&&this.G2.GO();SO(this,this.B,N.mT()&&b&&R&&p,h&&!R,"qoe.longrebuffer",function(){d.G2.U6(!1,!0)},"handoff_end_long_buffer_reload"); b=this.U===104||this.G2.le;T=Zu(N)&&N.isAd()&&!N.UD&&b&&(R||g.I(T,8)&&g.I(T,16));SO(this,this.Bv,T,e,"qoe.start15s",J,"gapless_ad_slow_start");T=Zu(N)&&!N.UD&&b&&F;SO(this,this.kx,T,e,"qoe.longrebuffer",J,"gapless_slow_start");this.T=Y;this.S.start()}}; m_.prototype.jT=function(d,q,T){q=this.BF(q);q.wn=T;q.wdup=this.j[d]?"1":"0";this.G2.jT(new g.xV(d,q));this.j[d]=!0}; m_.prototype.BF=function(d){d=Object.assign(this.G2.BF(!0),d.BF());this.G&&(d.stt=this.G.toFixed(3));this.G2.getVideoData().isLivePlayback&&(d.ct=this.G2.getCurrentTime().toFixed(3),d.to=this.G2.mz().toFixed(3));delete d.uga;delete d.euri;delete d.referrer;delete d.fexp;delete d.vm;return d}; Ii.prototype.reset=function(){this.G=this.U=this.j=this.startTimestamp=0;this.T=!1}; Ii.prototype.test=function(d){if(!this.S||this.U)return!1;if(!d)return this.reset(),!1;d=(0,g.cj)();if(!this.startTimestamp)this.startTimestamp=d,this.j=0;else if(this.j>=this.S)return this.U=d,!0;this.j+=1;return!1}; Ii.prototype.BF=function(){var d={},q=(0,g.cj)();this.startTimestamp&&(d.wsd=(q-this.startTimestamp).toFixed());this.U&&(d.wtd=(q-this.U).toFixed());this.G&&(d.wssd=(q-this.G).toFixed());return d};g.M(dcN,g.W);g.Q=dcN.prototype;g.Q.setMediaElement=function(d){(this.mediaElement=d)?(this.mediaElement&&(this.S||this.j||!this.mediaElement.tX()||this.seekTo(.01,{b$:"seektimeline_setupMediaElement"})),lC(this)):oi(this)}; g.Q.getCurrentTime=function(d){d=d===void 0?!1:d;if(v8(this.G2)){if(this.N("html5_use_centralized_player_time")&&!d&&!isNaN(this.X))return this.X;if(!isNaN(this.U))return this.U}else{if(this.N("html5_use_centralized_player_time")&&!d&&!isNaN(this.X)&&isFinite(this.X))return this.X;if(!isNaN(this.U)&&isFinite(this.U))return this.U}return this.mediaElement&&xc7(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.j||0}; g.Q.Eq=function(){return this.Bv}; g.Q.tE=function(){return this.getCurrentTime()-this.mz()}; g.Q.d4=function(){return this.G?this.G.d4():Infinity}; g.Q.isAtLiveHead=function(d){if(!this.G)return!1;d===void 0&&(d=this.getCurrentTime());return fE(this.G,d)}; g.Q.bl=function(){return!!this.G&&this.G.bl()}; g.Q.seekTo=function(d,q){var T=q===void 0?{}:q;q=T.W6===void 0?!1:T.W6;var Y=T.XL===void 0?0:T.XL;var e=T.Zn===void 0?!1:T.Zn;var U=T.hc===void 0?0:T.hc;var b=T.b$===void 0?"":T.b$;var J=T.seekSource===void 0?void 0:T.seekSource;var F=T.Xt===void 0?!1:T.Xt;var N=T.UI===void 0?!1:T.UI;T=T.wg===void 0?!1:T.wg;F&&(d+=this.mz());tw(this.videoData)&&J===29&&(this.Bv=void 0);F=d=this.cG())||!g.vr(this.videoData),a||(p={st:p,mst:this.cG()},this.G&&this.N("html5_high_res_seek_logging")&&(p.ht=this.G.d4(),p.adft=ItH(this.G)),this.G2.oU("seeknotallowed",p)),p=a));if(!p)return this.T&&(this.T=null,FS2(this)),g.Of(this.getCurrentTime());p=.005;N&&this.N("html5_sabr_seek_no_shift_tolerance")&&(p=0);if(Math.abs(d-this.U)<=p&&this.z2)return this.S;b&&(p=d,(this.Pv.uF()||this.N("html5_log_seek_reasons"))&& this.G2.oU("seekreason",{reason:b,tgt:p}));J&&(this.lr.U=J);this.z2&&oi(this);this.S||(this.S=new yQ);d&&!isFinite(d)&&eAg(this,!1);(b=T||F)||(b=d,b=!(this.videoData.isLivePlayback&&this.videoData.j&&!this.videoData.j.G&&!(this.mediaElement&&this.mediaElement.Tr()>0&&Hl(this.mediaElement)>0)||kp(this.videoData)&&this.BG()===this.cG(!1)?0:isFinite(b)||!kp(this.videoData)));b||(d=dF(this,d,e));d&&!isFinite(d)&&eAg(this,!1);this.N("html5_use_centralized_player_time")?this.X=d:this.U=this.j=d;this.xx= U;this.L=0;this.G&&(e=this.G,U=d,maD(e,U,!1),S8H(e,U));e=this.G2;U=d;b={W6:q,seekSource:J};e.sF.j=U;T=e.uL;T.mediaTime=U;T.G=!0;b.W6&&e.Nn(b);b=U>e.videoData.endSeconds&&U>e.videoData.limitedPlaybackDurationInSeconds;e.N2&&b&&isFinite(U)&&iaI(e);Uq.start&&iaI(this.G2);return this.S}; g.Q.cG=function(d){if(!this.videoData.isLivePlayback)return this.G2.videoData.cG();var q;return Q2(this.videoData)&&((q=this.mediaElement)==null?0:q.isPaused())&&this.videoData.G?(d=this.getCurrentTime(),qTj(this.fH(d)*1E3)+d):this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&tw(this.videoData)&&this.videoData.G?d?this.videoData.G.UD||0:this.videoData.G.Gr||0:kp(this.videoData)&&this.videoData.yv&&this.videoData.G?this.videoData.G.cG()+this.timestampOffset:this.videoData.j&&this.videoData.j.G? !d&&this.G?this.G.d4():this.G2.videoData.cG()+this.timestampOffset:this.mediaElement?CZ()?qTj(this.mediaElement.U1().getTime()):Hl(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.Q.BG=function(){if(this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&tw(this.videoData)){var d;return((d=this.videoData.G)==null?void 0:d.m1)||0}d=this.videoData?this.videoData.BG()+this.timestampOffset:this.timestampOffset;if(Q2(this.videoData)&&this.videoData.G){var q,T=Number((q=this.videoData.progressBarStartPosition)==null?void 0:q.utcTimeMillis)/1E3;q=this.getCurrentTime();q=this.fH(q)-q;if(!isNaN(T)&&!isNaN(q))return Math.max(d,T-q)}return d}; g.Q.R3=function(){this.S||this.seekTo(this.j,{b$:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.Q.VN=function(){return this.z2&&!isFinite(this.U)}; g.Q.ir=function(){UcY(this,null);this.lr.dispose();g.W.prototype.ir.call(this)}; g.Q.BF=function(){var d={};this.loader&&Object.assign(d,this.loader.BF());this.mediaElement&&Object.assign(d,this.mediaElement.BF());return d}; g.Q.XV=function(d){this.timestampOffset=d}; g.Q.getStreamTimeOffset=function(){return kp(this.videoData)?0:this.videoData.G?this.videoData.G.getStreamTimeOffset():0}; g.Q.mz=function(){return this.timestampOffset}; g.Q.fH=function(d){return this.videoData&&this.videoData.G?this.videoData.G.fH(d-this.timestampOffset):NaN}; g.Q.mE=function(){if(!this.mediaElement)return 0;if(of(this.videoData)){var d=this.mediaElement,q=d.g1();d=(qF(q)&&d.getDuration()?q.end(q.length-1):0)+this.timestampOffset-this.BG();q=this.cG()-this.BG();return Math.max(0,Math.min(1,d/q))}return this.mediaElement.mE()}; g.Q.Aa=function(d){this.B&&(this.B.G=d)}; g.Q.mN=function(d,q){this.G2.oU("requestUtcSeek",{time:d});tw(this.videoData)&&(this.Bv=d);var T;(T=this.loader)==null||T.mN(d);q&&(this.rO=q)}; g.Q.Md=function(d){tw(this.videoData)&&(this.Bv=void 0);if(this.rO)this.G2.oU("utcSeekingFallback",{source:"streamTime",timeSeconds:this.rO}),this.G2.seekTo(this.rO,{b$:"utcSeekingFallback_streamTime"}),this.rO=0;else{var q=this.getCurrentTime();isNaN(q)||(d=this.fH(q)-d,q-=d,this.G2.oU("utcSeekingFallback",{source:"estimate",timeSeconds:q}),this.G2.seekTo(q,{b$:"utcSeekingFallback_estimate"}))}}; g.Q.q7=function(){this.rO=0}; g.Q.N=function(d){return this.Pv&&this.Pv.N(d)};g.M(qa,g.W);qa.prototype.start=function(){this.U.start()}; qa.prototype.stop=function(){this.U.stop()}; qa.prototype.clear=function(){for(var d=g.E(this.G.values()),q=d.next();!q.done;q=d.next())q.value.clear()}; qa.prototype.sample=function(){for(var d=g.E(this.j),q=d.next();!q.done;q=d.next()){var T=g.E(q.value);q=T.next().value;T=T.next().value;this.G.has(q)||this.G.set(q,new ccg(uQ_.has(q)));this.G.get(q).update(T())}this.U.start()}; var uQ_=new Set(["networkactivity"]);ccg.prototype.update=function(d){this.U?(this.buffer.add(d-this.G||0),this.G=d):this.buffer.add(d)}; ccg.prototype.clear=function(){this.buffer.clear();this.G=0};eR.prototype.G0=function(){return this.started}; eR.prototype.start=function(){this.started=!0}; eR.prototype.reset=function(){this.finished=this.started=!1};var pcI=!1;g.M(g.JG,g.YP);g.Q=g.JG.prototype;g.Q.ir=function(){this.logger.debug("dispose");g.Fq(this.iH);e5Q(this.nz);this.visibility.unsubscribe("visibilitystatechange",this.nz);HcN(this.X9);g.T1(this.X9);gF(this);g.Gh.Qt(this.PV);this.Hf();this.zA=null;g.T1(this.videoData);g.T1(this.Ha);g.T1(this.fu);g.T1(this.U7);g.Yt(this.YDv);this.N2=null;g.YP.prototype.ir.call(this)}; g.Q.Xi=function(d,q,T,Y,e){if(this.Pv.N("html5_log_ad_playback_docid")){var U=this.X9;if(U.qoe){U=U.qoe;var b=this.Pv.lr||"yt";g.UV(U,g.Jp(U.provider),"ad_playback",[d,q,T,e,b])}}else this.X9.Xi(d,q,T);this.N("html5_log_media_perf_info")&&this.oU("adloudness",{ld:Y.toFixed(3),cpn:d})}; g.Q.F4=function(){var d;return(d=this.loader)==null?void 0:d.F4()}; g.Q.D6=function(){var d;return(d=this.loader)==null?void 0:d.D6()}; g.Q.Ko=function(){var d;return(d=this.loader)==null?void 0:d.Ko()}; g.Q.A_=function(){var d;return(d=this.loader)==null?void 0:d.A_()}; g.Q.It=function(){return this.videoData.It()}; g.Q.Tz=function(){return this.N("html5_not_reset_media_source")&&!this.It()&&!this.videoData.isLivePlayback&&g.XG(this.videoData)&&!this.Pv.supportsGaplessShorts()}; g.Q.Sb=function(){this.videoData.L&&(this.videoData.wJ=this.videoData.wJ||this.h1.Lf().F4(),this.videoData.YH=this.videoData.YH||this.h1.Lf().D6());if(w_n(this.videoData)||!h7(this.videoData)){var d=this.videoData.errorDetail;this.o6(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),d,d,this.videoData.eU||void 0)}this.N("html5_generate_content_po_token")&&this.Sp();this.N("html5_enable_d6de4")&&this.d5()}; g.Q.getVideoData=function(){return this.videoData}; g.Q.C=function(){return this.Pv}; g.Q.n7=function(){return this.f8.n7(this.zA)}; g.Q.Jp=function(){return this.visibility}; g.Q.Av=function(){return this.mediaElement&&this.mediaElement.RK()?this.mediaElement.tA():null}; g.Q.WG=function(){return this.mediaElement}; g.Q.y4=function(){if(this.videoData.errorCode)return!1;this.C().X&&this.C().houseBrandUserStatus&&this.oU("hbut",{status:this.C().houseBrandUserStatus},!0);if(this.videoData.LH())return!0;this.o6("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.Q.Z8=function(d){(d=d===void 0?!1:d)||Raj(this.X9);this.w9=d;!this.y4()||this.dJ.G0()?g.ho(this.Pv)&&this.videoData.isLivePlayback&&this.dJ.G0()&&!this.dJ.finished&&!this.w9&&this.s7():(this.dJ.start(),d=this.X9,g.Jp(d.provider),d.qoe&&$CY(d.qoe),this.s7())}; g.Q.s7=function(){if(this.videoData.isLoaded()){var d=this.Ha;g.Yv(d.Mk.experiments,"html5_player_min_build_cl")>0&&g.Yv(d.Mk.experiments,"html5_player_min_build_cl")>785662079&&R5f(d,"oldplayer");DcX(this)}else this.videoData.E$||this.videoData.rK?this.w9&&g.ho(this.Pv)&&this.videoData.isLivePlayback||(this.videoData.E$?p_I(this.videoData):(d=this.X9,d.qoe&&(d=d.qoe,$N(d,"protected"),d.provider.videoData.S?d.LX():d.provider.videoData.subscribe("dataloaded",d.LX,d)),cCj(this.videoData))):!this.videoData.loading&& this.Ty&&WSQ(this)}; g.Q.Go=function(d){this.Rd=d;this.loader&&(TRN(this.loader,new g.Ri(d)),this.oU("sdai",{sdsstm:1}))}; g.Q.xG=function(d,q,T){var Y;(Y=this.loader)==null||Y.xG(d,q,T)}; g.Q.x6=dI(8);g.Q.isFullscreen=function(){return this.visibility.isFullscreen()}; g.Q.isBackground=function(){return this.visibility.isBackground()}; g.Q.Ql=function(){var d=this;this.logger.debug("Updating for format change");s8(this).then(function(){return Xa(d)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.Q.n5=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.Z8();this.y4()&&!g.I(this.playerState,128)&&(this.Jd.G0()||(this.Jd.start(),this.videoData.PR?this.Vp(Ae(this.playerState,4)):this.Vp(Ae(Ae(this.playerState,8),1))),C0_(this))}; g.Q.kD=function(){return this.dJ.finished}; g.Q.sendAbandonmentPing=function(){g.I(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.B0(!0),HcN(this.X9),g.T1(this.X9),g.Gh.Qt(this.PV))}; g.Q.Wx=function(d,q,T){d=d===void 0?!0:d;(q===void 0||q)&&this.mediaElement&&this.mediaElement.pause();d&&T&&this.loader&&kp(this.videoData)&&this.loader.Fz(T);this.Vp(d?new g.EX(14):new g.EX)}; g.Q.kG=function(){this.X9.bX()}; g.Q.o6=function(d,q,T,Y,e,U){this.logger.debug(function(){return"set player error: ec="+d+", detail="+e}); var b,J;g.$9(dqB,T)?b=T:T?J=T:b="GENERIC_WITHOUT_LINK";Y=(Y||"")+(";a6s."+l9());if(d==="auth"||d==="drm.auth"||d==="heartbeat.stop")T&&(Y+=";r."+T.replaceAll(" ","_")),U&&(Y+="sr."+U.replaceAll(" ","_"));q={errorCode:d,errorDetail:e,errorMessage:J||g.l0[b]||"",rG:b,eU:U||"",bH:Y,d_:q,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=d;$s(this,"dataloaderror");this.Vp(ap(this.playerState,128,q));g.Gh.Qt(this.PV);gF(this);this.Zp()}; g.Q.Lz=function(d){this.Lt=this.Lt.filter(function(q){return d!==q}); this.logger.debug(function(){return"set preroll ready for "+d}); this.Jd.G0()&&C0_(this)}; g.Q.S8=function(){var d;(d=!!this.Lt.length)||(d=this.Mp.G.array[0],d=!!d&&d.start<=-0x8000000000000);return d}; g.Q.bl=function(){return this.sF.bl()}; g.Q.isPlaying=function(){return this.playerState.isPlaying()}; g.Q.Kl=function(){return this.playerState.Kl()&&this.videoData.PR}; g.Q.getPlayerState=function(){return this.playerState}; g.Q.XG=function(d){var q;(q=this.loader)==null||q.XG(d)}; g.Q.v6=function(d){var q;(q=this.loader)==null||q.v6(d)}; g.Q.getPlayerType=function(){return this.playerType}; g.Q.getPreferredQuality=function(){if(this.zA){var d=this.zA;d=d.videoData.Ja.compose(d.videoData.b_);d=tF(d)}else d="auto";return d}; g.Q.UZ=dI(16);g.Q.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.Q.setMediaElement=function(d){this.logger.debug("set media element");if(this.mediaElement&&d.tA()===this.mediaElement.tA()&&(d.isView()||this.mediaElement.isView())){if(d.isView()||!this.mediaElement.isView())this.zW(),this.mediaElement=d,this.mediaElement.G2=this,e$_(this),this.sF.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Hf();if(!this.playerState.isError()){var q=pk(this.playerState,512);g.I(q,8)&&!g.I(q,2)&&(q=Ae(q,1));d.isView()&&(q=pk(q,64));this.Vp(q)}this.mediaElement= d;this.mediaElement.G2=this;!g.ho(this.Pv)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);e$_(this);this.sF.setMediaElement(this.mediaElement);this.N("html5_prewarm_media_source")&&!this.Ha.bk()&&iM_(this.mediaElement)}}; g.Q.Hf=function(d,q,T){d=d===void 0?!1:d;q=q===void 0?!1:q;T=T===void 0?!1:T;this.logger.debug("remove media element");if(this.mediaElement){var Y=this.getCurrentTime();Y>0&&(this.sF.j=Y);this.sF.setMediaElement(null);!d&&this.Tz()?Vzj(this):this.B$(T);this.loader&&(dk(this.loader),xs(this,q));this.I4.stop();if(this.mediaElement&&(!this.Jd.G0()&&!this.k6()||this.playerState.isError()||g.I(this.playerState,2)||this.Vp(Ae(this.playerState,512)),this.mediaElement)){this.zW();if(d||!this.mediaElement.isView())this.rz.GT("mesv_s"), this.mediaElement.stopVideo(),yk(this);this.mediaElement=this.mediaElement.G2=null}}}; g.Q.playVideo=function(d,q){d=d===void 0?!1:d;q=q===void 0?!1:q;var T=this,Y,e,U,b,J,F;return g.G(function(N){if(N.U==1){T.logger.debug("start play video");var R=window.google_image_requests;R&&R.length>10&&(window.google_image_requests=R.slice(-10));if(g.I(T.playerState,128))return N.return();if(T.Ha.jI())return T.publish("signatureexpired"),N.return();T.mediaElement&&Raj(T.X9);T.n5();(g.I(T.playerState,64)||d)&&T.Vp(Ae(T.playerState,8));return T.Jd.finished&&T.mediaElement?T.zA||!T.Ul?N.tF(2):g.B(N, T.Ul,3):N.return()}if(N.U!=2&&g.I(T.playerState,128))return N.return();if(!T.videoData.j)return T.videoData.isLivePlayback&&!g.jJ(T.Pv.S,!0)?(Y="html5.unsupportedlive",e=2):(Y=T.videoData.It()?"fmt.unplayable":"fmt.noneavailable",e=1),g.OL(Error("selectableFormats")),T.o6(Y,e,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),N.return();if(T.pA()&&T.videoData.j.G)return T.logger.debug("rebuild playbackData for airplay"),N.return(s8(T));if(v8(T))R=T.sF,Lt(R.videoData)&&!R.isAtLiveHead(R.getCurrentTime())&& R.bl()&&R.G2.seekTo(Infinity,{b$:"seektimeline_peggedToLive",seekSource:34});else if(Lt(T.videoData)&&(U=T.getCurrentTime()b;if(!J||!b){U&&J&&(Y=Math.max(Y,U));var F;U=MOH(q,(F=e.G)==null?void 0:F.videoInfos);F=q.G2.getPlaybackRate();F>1&&U&&(F=q_2(q.Pv.S,e.G.videoInfos,F),d.G!==0&&F< d.G&&q.G2.setPlaybackRate(1));var N,R;d=((N=e.videoData.U)==null?void 0:(R=N.video)==null?void 0:R.qualityOrdinal)||0;g.pW("yt-player-quality",{quality:Y,previousQuality:d},31104E3);q.Pv.schedule.policy.T=yR()>=480;if(q.N("html5_exponential_memory_for_sticky")){N=q.Pv.dA;R=1;var x=x===void 0?!1:x;Gug(N,"sticky-lifetime");N.values["sticky-lifetime"]&&N.OQ["sticky-lifetime"]||(N.values["sticky-lifetime"]=0,N.OQ["sticky-lifetime"]=0);x&&SJ(N,"sticky-lifetime")>.0625&&(R=N.OQ["sticky-lifetime"]*2);N.values["sticky-lifetime"]+= 1*Math.pow(2,N.G/R);N.OQ["sticky-lifetime"]=R;N.T.start()}if(q.N("html5_perf_cap_override_sticky")){x=q.j;N=q.N("html5_perserve_av1_perf_cap");N=N===void 0?!1:N;if(N===void 0?0:N){R=HI();d=g.E(Object.keys(R));for(q=d.next();!q.done;q=d.next())q=q.value,q.indexOf("1")!==0&&delete R[q];g.pW("yt-player-performance-cap",R,2592E3)}else g.Od("yt-player-performance-cap");q07(N);if(N){N=g.E(qd.keys());for(R=N.next();!R.done;R=N.next())R=R.value,R.startsWith("1")||qd.delete(R);N=g.E(pE.values());for(R=N.next();!R.done;R= N.next())R=R.value,R.startsWith("1")||pE.delete(R);N=g.E(x.keys());for(R=N.next();!R.done;R=N.next())R=R.value,R.startsWith("1")||x.delete(R)}else qd.clear(),pE.clear(),x.clear()}}}this.loader&&(x=this.loader,T=T||"",x.policy.G?Xt(x.T.G,T):Xt(x.G.S,T));this.M2()}; g.Q.getUserPlaybackQualityPreference=function(){return this.videoData.j&&!this.videoData.j.G?tF(this.videoData.Ja):rj[yR()]}; g.Q.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.Q.setUserAudio51Preference=function(d,q){this.getUserAudio51Preference()!==d&&(this.oU("toggle51",{pref:d}),g.pW("yt-player-audio51",d,q?31536E3:2592E3),this.Ql())}; g.Q.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.Q.setProximaLatencyPreference=function(d){var q=this.getProximaLatencyPreference();this.oU("proxima",{pref:d});g.pW("yt-player-proxima-pref",d,31536E3);q!==d&&(d=this.sF,d.kx=!0,d.G2.seekTo(Infinity,{b$:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.Q.getProximaLatencyPreference=function(){var d;return(d=hF())!=null?d:0}; g.Q.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.Q.Sp=function(){this.videoData.videoId?this.h1.Sp(this.videoData):this.oU("povid",{})}; g.Q.d5=function(){this.videoData.videoId?this.h1.d5(this.videoData):this.oU("piavid",{})}; g.Q.M2=function(){if(!this.JF()&&!g.I(this.playerState,128)&&this.videoData.j){if(this.videoData.j.G)bf(this);else{var d=RZ(this),q=this.videoData;a:{var T=this.videoData.qC;if(d.G){for(var Y=g.E(T),e=Y.next();!e.done;e=Y.next()){e=e.value;var U=e.getInfo(),b=g.ZB[U.video.quality];if((!d.j||U.video.quality!=="auto")&&b<=d.G){T=e;break a}}T=T[T.length-1]}else T=T[0]}q.AF=T;IfD(this,d.reason,X9D(this,this.videoData.AF))}if(this.N("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.sF.K= !1,this.playVideo()}}; g.Q.mG=function(d,q){if(this.JF()||g.I(this.playerState,128))return!1;var T,Y=!((T=this.videoData.j)==null||!T.G);T=Y&&q?this.getCurrentTime()-this.mz():NaN;if(this.Pv.experiments.Wv("html5_record_audio_format_intent")){var e=this.X9;if(e.qoe){e=e.qoe;var U=[d.DQ.id,isNaN(T)?"m":"t"];g.UV(e,g.Jp(e.provider),"afi",U)}}if(Y)return q&&(Y=Xcn(this.sF),this.oU("aswh",{id:d.id,xtags:d.xtags,bh:Y.toFixed(3)})),this.loader.setAudioTrack(d,T,q),!0;if(Si1(this)){a:{q=this.mediaElement.audioTracks();for(Y=0;Y< q.length;++Y)if(T=q[Y],T.label===d.DQ.getName()){if(T.enabled){q=!1;break a}q=T.enabled=!0;break a}q=void 0}q&&this.oU("hlsaudio",{id:d.id})}else{a:if(q=this.videoData,q.T&&!uW(q.T)||d===q.Se||!q.qC||q.qC.length<=0)q=!1;else{Y=g.E(q.qC);for(T=Y.next();!T.done;T=Y.next()){T=T.value;if(!(T instanceof kl)){q=!1;break a}e=d.DQ.getId();T.U&&(bSj(T.U,e),T.zG=null)}q.Se=d;q=!0}q&&Xa(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.oU("hlsaudio",{id:d.id}))}return!0}; g.Q.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.Q.getAudioTrack=function(){if(Si1(this)){var d=vrj(this);if(d)return d}return this.videoData.getAudioTrack()}; g.Q.n9=function(){return this.videoData.T}; g.Q.h3=function(){if(this.videoData.N("html5_trigger_loader_when_idle_network")&&!this.videoData.aN()&&tw(this.videoData)){var d;(d=this.loader)!=null&&d.Yo()}}; g.Q.sU=function(){if(Zu(this.videoData)&&this.videoData.N("html5_gapless_append_early")){var d;(d=this.loader)!=null&&d.Yo()}}; g.Q.onPlayerRequestSent=function(d){this.h1.onPlayerRequestSent(d)}; g.Q.dD=function(d){d=d===void 0?!1:d;if(this.loader){var q=this.loader,T=q.dD;var Y=this.videoData;Y=Y.N("html5_ssdai_use_post_for_media")&&Y.enableServerStitchedDai?!1:kp(Y)&&Y.ZY&&!Y.isAd();T.call(q,Y,d)}}; g.Q.B$=function(d){d=d===void 0?!1:d;this.ED&&(this.logger.debug("remove media source"),zsX(this.ED),this.dD(d),this.ED.dispose(),this.ED=null)}; g.Q.Eg=function(){return this.ED}; g.Q.uY=function(d,q,T,Y){function e(b){try{YaD(U,b,q,T)}catch(J){g.OL(J),U.handleError(new g.xV("fmt.unplayable",{msi:"1",ename:J&&typeof J==="object"&&"name"in J?String(J.name):void 0,trg:"setmediasrc"},1))}} var U=this;q=q===void 0?!1:q;T=T===void 0?!1:T;qaD(this,Y===void 0?!1:Y);this.ED=d;this.Tz()&&Rp(this.ED)==="open"?e(this.ED):uAN(this.ED,e)}; g.Q.Wq=function(d){this.logger.debug("onNeedKeyInfo");this.lY.set(d.initData,d);this.Bl&&(this.Bl.Wq(d),this.N("html5_eme_loader_sync")||this.lY.remove(d.initData))}; g.Q.q6=function(d){this.videoData.GD=g.ZW("auto",d,!1,"u");bf(this)}; g.Q.Aa=function(d){var q=d.reason,T=d.G.info,Y=d.token,e=d.videoId,U=this.X9,b=this.videoData;if(T!==b.T){var J=!b.T;b.T=T;q!=="m"&&q!=="t"&&(q=J?"i":"a");var F=q==="m"||q==="t";this.Pv.experiments.Wv("html5_refactor_sabr_audio_format_selection_logging")?this.eS=new h5f(b,T,q,"",Y,e):(q=new h5f(b,T,q,"",Y),U.qoe&&(U=U.qoe,T=g.Jp(U.provider),hX6(U,T,q)));this.publish("internalaudioformatchange",b,!J&&F)}this.sF.Aa(d.G.index)}; g.Q.FH=function(d){this.publish("localmediachange",d)}; g.Q.J8=function(d){d=d===void 0?{}:d;var q;(q=this.loader)==null||q.J8(this.Pv,nt(this.videoData),d)}; g.Q.jI=function(){return this.Ha.jI()}; g.Q.J2=function(d){this.jT(new g.xV("staleconfig",{reason:d}))}; g.Q.handleError=function(d){this.Ha.handleError(d)}; g.Q.bk=function(){return this.Ha.bk()}; g.Q.Md=function(d){this.sF.Md(d)}; g.Q.U6=function(d,q){d=d===void 0?!1:d;q=q===void 0?!1:q;var T=this,Y,e,U;return g.G(function(b){if(b.U==1){T.loader&&T.loader.Dn();T.loader&&T.loader.JF()&&gF(T);if(T.N("html5_enable_vp9_fairplay")&&T.It()&&(Y=T.videoData.G)!=null)for(var J in Y.G)Y.G.hasOwnProperty(J)&&(Y.G[J].G=null,Y.G[J].j=!1);T.Vp(Ae(T.playerState,2048));T.publish("newelementrequired");return d?g.B(b,s8(T),2):b.tF(2)}T.videoData.aN()&&((e=T.loader)==null?0:e.z2)&&!v8(T)&&((U=T.isAtLiveHead())&&Lt(T.videoData)?T.seekTo(Infinity, {b$:"videoPlayer_getNewElement"}):T.videoData.uC&&T.loader&&(J=T.loader,J.vv.aN&&(J.vv.uC||J.vv.T||J.vv.isPremiere?(J.seek(0,{b$:"loader_resetSqless"}),J.videoTrack.L=!0,J.audioTrack.L=!0,J.videoTrack.S=!0,J.audioTrack.S=!0):od(J.vv)&&R7(J))));q&&T.seekTo(0,{seekSource:105});g.I(T.playerState,8)&&T.playVideo();g.E6(b)})}; g.Q.Lb=function(d){this.oU("hgte",{ne:+d});this.videoData.L=!1;d&&this.U6();this.loader&&OV_(this.loader)}; g.Q.rE=function(d){this.oU("newelem",{r:d});this.U6()}; g.Q.pauseVideo=function(d){d=d===void 0?!1:d;if((g.I(this.playerState,64)||g.I(this.playerState,2))&&!d)if(g.I(this.playerState,8))this.Vp(Z2(this.playerState,4,8));else if(this.Kl())Xa(this);else return;g.I(this.playerState,128)||(d?this.Vp(Ae(this.playerState,256)):this.Vp(Z2(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.vr(this.videoData)&&this.loader&&xs(this,!1)}; g.Q.stopVideo=function(){this.pauseVideo();this.loader&&(xs(this,!1),this.loader.ZE())}; g.Q.Zp=function(d,q){d=d===void 0?!1:d;q=q===void 0?!1:q;if(this.Tz()&&q){var T;(T=this.mediaElement)==null||T.Zp()}else{var Y;(Y=this.mediaElement)==null||Y.stopVideo()}yk(this);gF(this);g.I(this.playerState,128)||(d?this.Vp(pk(pk(Ae(this.playerState,4),8),16)):this.Vp(ap(this.playerState)));this.videoData.videoId&&this.Pv.aU.remove(this.videoData.videoId)}; g.Q.seekTo=function(d,q){q=q===void 0?{}:q;this.logger.debug(function(){return"SeekTo "+d+", "+JSON.stringify(q)}); g.I(this.playerState,2)&&Xa(this);q.jWZ&&this.Vp(Ae(this.playerState,2048));q.seekSource!==58&&q.seekSource!==60||!this.N("html5_update_vss_during_gapless_seeking")||yGQ(this.X9,q.seekSource);this.sF.seekTo(d,q);this.Mp.sync()}; g.Q.Nn=function(d){this.rz.T.U=(0,g.cj)();g.I(this.playerState,32)||(this.Vp(Ae(this.playerState,32,d==null?void 0:d.seekSource)),g.I(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.Yc()}; g.Q.e_=function(d){d=d==null?void 0:d.seekSource;g.I(this.playerState,32)?(this.Vp(Z2(this.playerState,16,32,d)),this.publish("endseeking")):g.I(this.playerState,2)||this.Vp(Ae(this.playerState,16,d));d=this.rz.T;var q=this.videoData,T=this.playerState.isPaused();if(q.clientPlaybackNonce&&!isNaN(d.G)){if(Math.random()<.01){T=T?"pbp":"pbs";var Y={startTime:d.G};q.X&&(Y.cttAuthInfo={token:q.X,videoId:q.videoId});OG("seek",Y);g.ZO({clientPlaybackNonce:q.clientPlaybackNonce},"seek");isNaN(d.U)||pU("pl_ss", d.U,"seek");pU(T,(0,g.cj)(),"seek")}d.reset()}}; g.Q.VI=function(d){this.e_(d)}; g.Q.JT=function(){this.publish("SEEK_COMPLETE")}; g.Q.Bq=function(d){var q=this.h1,T=this.videoData.clientPlaybackNonce,Y=this.playerType;if(d.scope===4){var e=d.type;if(e){var U=q.UM(),b=U.getVideoData().clientPlaybackNonce;Y===1&&(b=T);if(Y=QAD(q,b)){if(T=Y.getVideoData())d.writePolicy===2&&T.sabrContextUpdates.has(e)||(d.sendByDefault&&T.Bv.add(e),T.sabrContextUpdates.set(e,d)),q.N("html5_enable_t1_enf_on_sabr")&&(d=e===5,e=ggX(T.playerResponse),d?(d=e?1:0,UP(d,"m.p_",{}),Wq("MBSTAT",d)):d=1,d===0&&q.mZ.gO("onAbnormalityDetected"))}else U.oU("scuset", {ncpf:"1",ccpn:b,crcpn:T})}else g.OL(Error("b/380308491: contextUpdateType is undefined"))}}; g.Q.x8=function(){if(this.playerType===2)return this.h1.x8("")}; g.Q.getCurrentTime=function(d){return this.sF.getCurrentTime(d===void 0?!1:d)}; g.Q.Eq=function(){return this.sF.Eq()}; g.Q.tE=function(){return this.sF.tE()}; g.Q.gG=function(){return this.tE()}; g.Q.d4=function(){return this.sF.d4()}; g.Q.getPlaylistSequenceForTime=function(d){return this.videoData.getPlaylistSequenceForTime(d-this.mz())}; g.Q.sP=function(){var d=NaN;this.mediaElement&&(d=this.mediaElement.sP());return d>=0?d:this.getCurrentTime()}; g.Q.fH=function(){var d;return((d=this.videoData.G)==null?0:d.fH)?this.videoData.G.fH(this.getCurrentTime()-this.mz()):this.mediaElement&&(d=this.mediaElement.U1())&&(d=d.getTime(),!isNaN(d))?d/1E3+this.getCurrentTime():NaN}; g.Q.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.mz():this.cG()?this.cG():0}; g.Q.vS=function(){var d=new Esg;if(this.loader){var q=this.Pv.schedule,T=this.Pv.uF();T=T===void 0?!1:T;d.Cw=q.yv;d.fL=q.qk;d.bandwidthEstimate=I9(q);if(T){T=(q.B.W4()*1E3).toFixed();var Y=(q.z2.W4()*1E3).toFixed(),e=fO(q).toFixed(2),U=((q.L.W4()||0)*1E9).toFixed(2),b=q.j.W4().toFixed(0),J=q.dO.W4().toFixed(0),F=q.K.percentile(.5).toFixed(2),N=q.K.percentile(.92).toFixed(2),R=q.K.percentile(.96).toFixed(2),x=q.K.percentile(.98).toFixed(2);q.G?q.G.reset():q.G=new GH;q.G.add(q.rO);q.G.add(q.interruptions.length); for(var y=0,h=q.interruptions.length-1;h>=0;h--){var H=q.interruptions[h];q.G.add(H-y);y=H}y=0;for(h=q.T.length-1;h>=0;h--){H=q.T[h];var a=H.stamp/36E5;q.G.add(a-y);y=a;q.G.add(H.net/1E3);q.G.add(H.max)}q=q.G.VH();d.G={ttr:T,ttm:Y,d:e,st:U,bw:b,abw:J,v50:F,v92:N,v96:R,v98:x,"int":q}}qcD(this.loader,d)}else this.mediaElement&&(d.fb=QQ(this.mediaElement));d.Cw=this.Cw;d.fL=this.fL;d.j=this.isAtLiveHead()&&this.isPlaying()?kV1(this):NaN;return d}; g.Q.d0=function(d,q){this.fL+=d;this.Cw+=q}; g.Q.mE=function(){return this.mediaElement?g.vr(this.videoData)?1:of(this.videoData)?this.isAtLiveHead()||this.bl()?1:this.sF.mE():this.mediaElement.mE():0}; g.Q.K9=function(){var d=this.im,q=Ys(d,"bandwidth"),T=Ys(d,"bufferhealth"),Y=Ys(d,"livelatency"),e=Ys(d,"networkactivity"),U=TQ(d,"bandwidth"),b=TQ(d,"bufferhealth"),J=TQ(d,"livelatency");d=TQ(d,"networkactivity");var F=this.EE(),N=F.droppedVideoFrames;F=F.totalVideoFrames;var R=this.getCurrentTime();if(this.Bl){var x="IT/"+(this.Bl.G.getInfo()+"/"+tF(this.qT()));x+="/"+this.Bl.getInfo()}else x="";var y=this.isGapless(),h=this.MN(),H=this.bE(),a=g.Na(this),p=this.getPlayerState(),t=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var n=0;var K="";if(this.Rd){if(this.Rd.q0){K="D,";break a}n=this.Rd.Yk;K=this.Rd.Ae.substring(0,4)}n>0?(n="AD"+n+", ",K&&(n+=K+", "),K=n):K=""}return{AJ:U,y9:b,currentTime:R,ZC:x,droppedVideoFrames:N,isGapless:y,MN:h,Xp:H,x$:q,AU:T,B2:Y,Zz:e,Ve:J,En:d,Sf:a,playerState:p,gI:t,R2:K,totalVideoFrames:F}}; g.Q.BF=function(d){var q={};if(d===void 0?0:d){Object.assign(q,this.X9.BF());this.mediaElement&&(Object.assign(q,this.mediaElement.BF()),d=this.EE(),q.dvf=d.droppedVideoFrames,q.tvf=d.totalVideoFrames);this.loader&&Object.assign(q,this.loader.BF());this.Bl&&(q.drm=JSON.stringify(this.Bl.BF()));q.state=this.playerState.state.toString(16);g.I(this.playerState,128)&&(q.debug_error=JSON.stringify(this.playerState.eF));this.S8()&&(q.prerolls=this.Lt.join(","));this.videoData.zq&&(q.ismb=this.videoData.zq); this.videoData.latencyClass!=="UNKNOWN"&&(q.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(q.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)q.is_mosaic=1;this.videoData.cotn&&(q.is_offline=1,q.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(q.playerResponseCpn=this.videoData.playerResponseCpn);this.h1.isOrchestrationLeader()&&(q.leader=1);this.videoData.isLivePlayback&& (this.videoData.G&&mF(this.videoData.G)&&(q.segduration=mF(this.videoData.G)),d=this.sF,q.lat=d.B?uaD(d.B.T):0,q.liveutcstart=this.videoData.liveUtcStartSeconds);q.relative_loudness=this.videoData.LC.toFixed(3);if(d=g.Na(this))q.optimal_format=d.video.qualityLabel;q.user_qual=yR();q.release_version=X[40]}q.debug_videoId=this.videoData.videoId;return q}; g.Q.addCueRange=function(d){this.Td([d])}; g.Q.removeCueRange=function(d){this.Mp.cR([d])}; g.Q.SB=function(){this.Mp.sync()}; g.Q.uX=function(d,q){return this.Mp.uX(d,q)}; g.Q.Td=function(d,q){this.Mp.ES(d,q)}; g.Q.TD=function(d){this.Mp.cR(d)}; g.Q.lw=function(){return this.Mp.lw()||[]}; g.Q.g_=function(){return this.X7}; g.Q.pA=function(){return this.visibility.pA()}; g.Q.Yp=function(){this.mediaElement&&this.mediaElement.Yp()}; g.Q.plk=function(){$s(this)}; g.Q.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.Q.zW=function(){g.jX(this.nY)}; g.Q.YF5=function(){this.Yc();this.publish("onLoadProgress",this.mE())}; g.Q.Rx=function(d){var q=d.target.j0();if(this.mediaElement&&this.mediaElement.j0()&&this.mediaElement.j0()===q){R$Q(this,d.type);switch(d.type){case "error":var T=cl(this.mediaElement)||"",Y=this.mediaElement.P4();if(T==="capability.changed"){this.N("html5_restart_on_capability_change")?(this.oU("capchg",{msg:Y}),this.U6(!0)):s8(this);return}if(this.mediaElement.hasError()&&$Zn(this.Ha,T,{msg:Y,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.nA()===4){this.Zp();Fa(this,"unplayable"); return}break;case "durationchange":T=this.mediaElement.getDuration();isFinite(T)&&(!this.ED||T>0)&&T!==1&&this.lV(T);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());rG2(this.Mp);this.X9.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":yg6(this);this.publish("onLoadedMetadata");bqD(this);T=this.fH();this.videoData.di&&(this.videoData.di=T);break;case "loadstart":bqD(this);break;case "progress":case "suspend":this.QR.Gh(); break;case "playing":this.rz.GT("plev");this.dg&&!v8(this)&&(this.dg=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{b$:"videoplayer_onPlaying"})));break;case "timeupdate":T=this.mediaElement&&!this.mediaElement.getCurrentTime();Y=this.mediaElement&&this.mediaElement.Tr()===0;if(T&&(!this.hL||Y))return;this.hL=this.hL||!!this.mediaElement.getCurrentTime();UlQ(this);this.Yc();if(!this.mediaElement||this.mediaElement.j0()!==q)return;this.publish("onVideoProgress", this.getCurrentTime());break;case "waiting":if(this.mediaElement.NT().length>0&&this.mediaElement.g1().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.N("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Tr()>2||!this.mediaElement.isSeeking()&&oI(this.mediaElement.g1(),this.mediaElement.getCurrentTime()))&&(T=this.mediaElement.BF(),T.bh=QQ(this.mediaElement).toFixed(3),this.oU("uwe",T));break;case "resize":yg6(this); this.videoData.U&&this.videoData.U.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Lv&&g.I(this.playerState,8)&&!g.I(this.playerState,1024)&&this.getCurrentTime()===0&&g.F8){Fa(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.j0()===q){Ha_(this.sF,d);this.publish("videoelementevent",d);q=this.playerState;Y=this.uL;var e=this.mediaElement;T=this.videoData.clientPlaybackNonce;if(!g.I(q,128)){var U=q.state; e=e?e:d.target;var b=e.getCurrentTime();if(!g.I(q,64)||d.type!=="ended"&&d.type!=="pause"){var J=e.getDuration();J=e.isEnded()||b>1&&Math.abs(b-J)<1.1;var F=d.type==="pause"&&e.isEnded();b=d.type==="ended"||d.type==="waiting"||d.type==="timeupdate"&&!g.I(q,4)&&!CE(Y,b);if(F||J&&b)e.Va()>0&&e.j0()&&(U=14);else switch(d.type){case "error":cl(e)&&(U|=128);break;case "pause":g.I(q,256)?(U^=256)||(U=64):g.I(q,32)||g.I(q,2)||g.I(q,4)||(U=4,g.I(q,1)&&g.I(q,8)&&(U|=1));break;case "playing":b=U;U=(U|8)&-1093; b&4?(U|=1,j1(Y,e,!0)):CE(Y,e.getCurrentTime())&&(U&=-2);g.I(q,1)&&j1(Y,e)&&(U|=1);break;case "seeking":U|=16;g.I(q,8)&&(U|=1);U&=-3;break;case "seeked":U&=-17;j1(Y,e,!0);break;case "waiting":g.I(q,2)||(U|=1);j1(Y,e);break;case "timeupdate":b=g.I(q,16),J=g.I(q,4),(g.I(q,8)||b)&&!J&&CE(Y,e.getCurrentTime())&&(U=8),j1(Y,e)&&(U|=1)}}Y=U;U=null;Y&128&&(U=d.target,e=cl(U),b=1,e?(e==="capability.changed"&&(b=2),J="GENERIC_WITHOUT_LINK",F=U.BF(),F.mediaElem="1",F.trg="melem",/AUDIO_RENDERER/.test(U.P4())&& (J="HTML5_AUDIO_RENDERER_ERROR"),U={errorCode:e,errorMessage:g.l0[J]||"",rG:J,bH:RI(F),d_:b,cpn:q.eF?q.eF.cpn:""}):U=null,U&&(U.cpn=T));q=ap(q,Y,U)}!g.I(this.playerState,1)&&g.I(q,1)&&Nr1(this,"evt"+d.type);this.Vp(q)}}}; g.Q.Hfr=function(d){d=d.G.availability==="available";d!==this.X7&&(this.X7=d,this.publish("airplayavailabilitychange"))}; g.Q.uwg=function(){var d=(0,g.cj)(),q=this.mediaElement.pA();this.oU("airplay",{ia:q});!q&&!isNaN(this.xg)&&d-this.xg<2E3||(this.xg=d,q!==this.pA()&&(d=this.visibility,d.G!==q&&(d.G=q,d.nz()),this.oU("airplay",{rbld:q}),this.Ql()),this.publish("airplayactivechange"))}; g.Q.g9=function(d){if(this.loader){var q=this.loader,T=q.j,Y=q.getCurrentTime(),e=Date.now()-T.K;T.K=NaN;T.oU("sdai",{adfetchdone:d,d:e});d&&!isNaN(T.L)&&T.U!==3&&vX(T.loader,Y,T.L,T.X);T.policy.U?T.S=NaN:T.T=NaN;lk(T,4,T.U===3?"adfps":"adf");dk(q)}}; g.Q.eR=function(){g.Fq(this.iH);this.I4.stop();this.videoData.UD=!0;this.Pv.m1=!0;this.Pv.lF=0;var d=this.Ha;if(d.videoData.U){var q=d.Mk.S,T=d.videoData.U.Cf;q.T.has(T)&&(q.T.delete(T),q.U=!0)}d.G.stop();this.vC();g.I(this.playerState,8)&&this.Vp(pk(this.playerState,65));this.w9=!1;d=this.X9;d.G&&TFI(d.G);d.U&&(d=d.U,q=g.Jp(d.provider),d.G<0&&(d.G=q,d.delay.start()),d.U=q,d.T=q);g.zh(this.fu);this.publish("playbackstarted");(d=g.qx("yt.scheduler.instance.clearPriorityThreshold"))?d():SX(0)}; g.Q.vC=function(){var d=this.h1.GX(),q={},T={};!nU("pbs",this.rz.timerName)&&xh.measure&&xh.getEntriesByName&&(xh.getEntriesByName("mark_nr")[0]?sRD("mark_nr"):sRD());d.videoId&&(q.videoId=d.videoId);d.clientPlaybackNonce&&!this.N("web_player_early_cpn")&&(q.clientPlaybackNonce=d.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(T.isPausedOnLoad=!0);T.itag=d.U?Number(d.U.itag):-1;d.t0&&(T.preloadType=String(this.GV?2:1));q.liveStreamMode=ZpB[ix(d)];q.playerInfo=T;this.rz.infoGel(q); if(this.loader){d=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(d.j&&(q=window.performance.getEntriesByName(d.j),q.length&&(q=q[0],d.tick("vri",q.fetchStart),d.tick("vdns",q.domainLookupEnd),d.tick("vreq",q.requestStart),d.tick("vrc",q.responseEnd))),d.U&&(q=window.performance.getEntriesByName(d.U),q.length&&(q=q[0],d.tick("ari",q.fetchStart),d.tick("adns",q.domainLookupEnd),d.tick("areq",q.requestStart),d.tick("arc",q.responseEnd))));d=d.ticks;for(var Y in d)d.hasOwnProperty(Y)&& this.rz.tick(Y,d[Y])}}; g.Q.Yc=function(d){var q=this;d=d===void 0?!1:d;if(this.mediaElement&&this.videoData){Jc7(this.sF,this.isPlaying());var T=this.getCurrentTime();if(this.loader&&(g.I(this.playerState,4)&&g.vr(this.videoData)||g.I(this.playerState,32)&&tw(this.videoData)||e9N(this.loader,T),this.N("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var Y;this.oU("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(Y=this.loader)==null?void 0:Y.currentTime},!0)}T> 5&&(this.sF.j=T);(Y=g.m2())?g.Gh.Qt(this.PV):g.g7(this.PV);var e=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!e||Q2(this.videoData))&&!g.I(this.playerState,128)){var U=function(){if(q.mediaElement&&!g.I(q.playerState,128)){q.Pv.uF()&&R$Q(q,"pfx");var b=q.getCurrentTime();q.N("html5_buffer_underrun_transition_fix")&&(b-=q.mz());var J=QQ(q.mediaElement),F=g.I(q.playerState,8),N=CE(q.uL,b),R=oPf(q.uL,b,(0,g.cj)(),J);F&&N?q.Vp(pk(q.playerState,1)):F&&R?(F=q.getDuration(),N=Lt(q.videoData), F&&Math.abs(F-b)<1.1?(q.oU("setended",{ct:b,bh:J,dur:F,live:N}),q.mediaElement.AC()?(q.logger.debug("seek to 0 because of looping"),q.seekTo(0,{b$:"videoplayer_loop",seekSource:37})):q.Wx()):(q.playerState.isBuffering()||Nr1(q,"progress_fix"),q.Vp(Ae(q.playerState,1)))):(F&&!N&&!R&&b>0&&(F=(Date.now()-q.jR)/1E3,N=q.getDuration(),b>N-1&&q.oU("misspg",{t:b.toFixed(2),d:N.toFixed(2),r:F.toFixed(2),bh:J.toFixed(2)})),q.playerState.isPaused()&&q.playerState.isBuffering()&&QQ(q.mediaElement)>5&&q.Vp(pk(q.playerState, 1)));q.Yc()}}; this.mediaElement.NT().length===0?this.PV=Y?g.Gh.DE(U,100):g.s3(U,100):this.PV=Y?g.Gh.DE(U,500):g.s3(U,500)}this.videoData.ST=T;!d&&this.isPlaying()&&Jg6(this);rpN(this.f8,this.zA,this.WG(),this.isBackground())&&bf(this);this.publish("progresssync",d);e&&Q2(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.Q.vI=function(){this.o6("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.Q.bE=function(){return this.X9.bE()}; g.Q.L7=function(){return this.loader?this.loader.L7():I9(this.Pv.schedule,!0)}; g.Q.Vp=function(d){if(!g.OX(this.playerState,d)){this.logger.debug(function(){return"Setting state "+d.toString()}); var q=new g.sP(d,this.playerState);this.playerState=d;xln(this);var T=!this.yc.length;this.yc.push(q);var Y=this.mediaElement&&this.mediaElement.isSeeking();g.gs(q,1)&&this.loader&&pUf(this.loader);Y=q.oldState.state===8&&!Y;g.gs(q,1)&&Y&&g.I(this.playerState,8)&&!g.I(this.playerState,64)&&this.loader&&(ZVY(this.loader),this.mediaElement&&QQ(this.mediaElement)>=5&&OEI(this.f8,this.zA)&&bf(this));(Y=g.Yv(this.Pv.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.I(d,1)&&(g.I(d,8)||g.I(d, 16))?this.xu.start(Y):this.xu.stop();($o(q,8)<0||g.gs(q,1024))&&this.I4.stop();!g.gs(q,8)||this.videoData.UD||g.I(q.state,1024)||this.I4.start();g.I(q.state,8)&&$o(q,16)<0&&!g.I(q.state,32)&&!g.I(q.state,2)&&this.playVideo();g.I(q.state,2)&&of(this.videoData)&&(this.lV(this.getCurrentTime()),this.Yc(!0));g.gs(q,2)&&(this.B0(!0),this.Pv.uF()&&this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&tw(this.videoData)&&this.videoData.G&&(Y={minst:""+this.videoData.G.m1,cminst:""+(this.videoData.G.BG()+ this.mz()),maxst:""+this.videoData.G.Gr,hts:""+this.videoData.G.UD,cmaxst:""+(this.videoData.G.cG()+this.mz())},this.oU("sabrSeekableBoundaries",Y)));g.gs(q,128)&&this.Zp();this.videoData.G&&this.videoData.isLivePlayback&&!this.lD&&($o(q,8)<0?Kif(this.videoData.G):g.gs(q,8)&&this.videoData.G.resume());baj(this.sF,q);ha6(this.X9,q);if(T&&!this.JF())try{for(var e=g.E(this.yc),U=e.next();!U.done;U=e.next()){var b=U.value;tR7(this.Mp,b);this.publish("statechange",b)}}finally{this.yc.length=0}}}; g.Q.u6=function(){this.rz.tick("qoes")}; g.Q.R3=function(){this.sF.R3()}; g.Q.LJ=function(d,q,T,Y){a:{var e=this.Ha;Y=Y===void 0?"LICENSE":Y;T=T.substring(0,256);var U=yb(q);d==="drm.keyerror"&&this.Bl&&this.Bl.U.keys.length>1&&e.T<96&&(d="drm.sessionlimitexhausted",U=!1);var b=e.Mk.experiments.Wv("html5_retry_on_drm_unavailable"),J=e.Mk.experiments.Wv("html5_retry_on_drm_key_error"),F=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(b&&d==="drm.unavailable"||J&&d==="drm.keyerror"&&!T.match(F))e.jT("qoe.restart",{retryOnDrmError:1,e:d,detail:T}),e.G2.U6(!0);else{if(U)if(e.videoData.U&& e.videoData.U.video.isHdr())yp7(e,d);else{if(e.G2.o6(d,q,Y,T),X82(e,{detail:T}))break a}else e.jT(d,{detail:T});d==="drm.sessionlimitexhausted"&&(e.oU("retrydrm",{sessionLimitExhausted:1}),e.T++,FG_(e.G2))}}}; g.Q.tvF=function(){var d=this,q=g.Yv(this.Pv.experiments,"html5_license_constraint_delay"),T=Se();q&&T?(q=new g.f9(function(){d.M2();$s(d)},q),g.C(this,q),q.start()):(this.M2(),$s(this))}; g.Q.i6=function(d){this.publish("heartbeatparams",d)}; g.Q.mL=function(d){this.oU("keystatuses",Kc1(d));var q="auto",T=!1;this.videoData.U&&(q=this.videoData.U.video.quality,T=this.videoData.U.video.isHdr());a:{switch(q){case "highres":case "hd2880":q="UHD2";break;case "hd2160":case "hd1440":q="UHD1";break;case "hd1080":case "hd720":q="HD";break;case "large":case "medium":case "small":case "light":case "tiny":q="SD";break;default:q="";break a}T&&(q+="HDR")}q=Qo(d)?MZ(d,q):d.T.includes(q);if(this.N("html5_enable_vp9_fairplay")){if(T)if(d.L){var Y;if((Y= this.Bl)==null?0:$8(Y.G))if((T=this.Bl)==null)T=0;else{for(var e=Y=void 0,U=g.E(T.U.values()),b=U.next();!b.done;b=U.next())b=b.value,Y||(Y=LcN(b,"SD")),e||(e=LcN(b,"AUDIO"));T.Yq({sd:Y,audio:e});T=Y==="output-restricted"||e==="output-restricted"}else T=!q;if(T){this.oU("drm",{dshdr:1});yp7(this.Ha);return}}else{this.videoData.Kd||(this.videoData.Kd=!0,this.oU("drm",{dphdr:1}),this.U6(!0));return}var J;if((J=this.Bl)==null?0:$8(J.G))return}else if(J=d.L&&q,T&&!J){yp7(this.Ha);return}q||MZ(d,"AUDIO")&& MZ(d,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),d=Kc1(d),this.Yd?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.N("html5_report_fatal_drm_restricted_error_killswitch")||this.o6("drm.keyerror",2,void 0,"info."+d)):(this.Yd=!0,this.jT(new g.xV("qoe.restart",Object.assign({},{retrydrm:1},d))),bf(this),FG_(this)))}; g.Q.zYF=function(){if(!this.videoData.UD&&this.mediaElement&&!this.isBackground()){var d="0";this.mediaElement.Tr()>0&&QQ(this.mediaElement)>=5&&this.videoData.j&&this.videoData.j.G&&(this.Vp(Ae(this.playerState,1)),Nr1(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),d="1");xln(this);var q=this.videoData.j;d={restartmsg:d,mfmt:!pt(this.videoData),mdrm:!(!(q&&q.videoInfos&&q.videoInfos.length&&q.videoInfos[0].ac)||this.Bl),mfmtinfo:!this.videoData.U,prerolls:this.S8()?this.Lt.join(","): "0"};if(this.Bl){q=this.Bl;if(q.U.size<=0){var T="ns;";q.K||(T+="nr;");q=T+="ql."+q.j.length}else q=Kc1(q.U.values().next().value),q=RI(q);d.drmp=q}var Y;Object.assign(d,((Y=this.loader)==null?void 0:Y.BF())||{});var e;Object.assign(d,((e=this.mediaElement)==null?void 0:e.BF())||{});this.X9.jT("qoe.start15s",RI(d));this.publish("loadsofttimeout")}}; g.Q.lV=function(d){this.videoData.lengthSeconds!==d&&(this.videoData.lengthSeconds=d,$s(this))}; g.Q.B0=function(d,q){var T=this;d=d===void 0?!1:d;if(!this.E1)if(nU("att_s","player_att")||tU("att_s",void 0,"player_att"),this.N("use_rta_for_player"))(function(){var e,U,b,J;return g.G(function(F){switch(F.U){case 1:if(!(e=d)){F.tF(2);break}return g.B(F,g.PIQ(),3);case 3:e=!F.G;case 2:if(e)return F.return();g.jD(F,4);U=MRN(T.X9);if(!U)throw Error();b={};return g.B(F,g.kNf((b.cpn=T.videoData.clientPlaybackNonce,b.encryptedVideoId=T.videoData.videoId||"",b),3E4),6);case 6:J=F.G;if(T.E1)throw Error(); if(!J.challenge)throw g.OL(Error("Not sending attestation ping; no attestation challenge string")),Error();T.E1=!0;var N=[J.challenge];J.error?N.push("r1c="+J.error):J.webResponse&&N.push("r1a="+J.webResponse);var R;((R=J.adblockReporting)==null?void 0:R.reportingStatus)!==void 0&&N.push("r6a="+J.adblockReporting.reportingStatus);var x;((x=J.adblockReporting)==null?void 0:x.broadSpectrumDetectionResult)!==void 0&&N.push("r6b="+J.adblockReporting.broadSpectrumDetectionResult);U(N.join("&"));tU("att_f", void 0,"player_att");g.ZX(F,0);break;case 4:g.nN(F),tU("att_e",void 0,"player_att"),g.E6(F)}})})().then(function(){q==null||q()}); else{var Y=new g.zoD(this.videoData);if("c1a"in Y.Rb&&!g.qe.isInitialized()){tU("att_wb",void 0,"player_att");this.GF===2&&Math.random()<.01&&g.OL(Error("Botguard not available after 2 attempts"));if(d)return;if(this.GF<5){g.zh(this.U7);this.GF++;return}}(Y=g.imI(Y))?(tU("att_f",void 0,"player_att"),QZ1(this.X9,Y),this.E1=!0):tU("att_e",void 0,"player_att")}}; g.Q.Jq=function(d){d=d===void 0?!1:d;return Lt(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.bl()||g.vr(this.videoData))?this.getCurrentTime():this.cG(d)}; g.Q.g3=function(){return this.BG()}; g.Q.cG=function(d){return this.sF.cG(d===void 0?!1:d)}; g.Q.BG=function(){return this.sF.BG()}; g.Q.mz=function(){return this.sF?this.sF.mz():0}; g.Q.getStreamTimeOffset=function(){return this.sF?this.sF.getStreamTimeOffset():0}; g.Q.il=function(){var d=0;this.Pv.N("web_player_ss_media_time_offset")&&(d=this.getStreamTimeOffset()===0?this.mz():this.getStreamTimeOffset());return d}; g.Q.setPlaybackRate=function(d){var q;this.playbackRate!==d&&MOH(this.f8,(q=this.videoData.j)==null?void 0:q.videoInfos)&&(this.playbackRate=d,bf(this));this.playbackRate=d;this.mediaElement&&this.mediaElement.setPlaybackRate(d)}; g.Q.getPlaybackRate=function(){return this.playbackRate}; g.Q.getPlaybackQuality=function(){var d="unknown";if(this.videoData.U&&(d=this.videoData.U.video.quality,d==="auto"&&this.mediaElement)){var q=this.Av();q&&q.videoHeight>0&&(d=pe(q.videoWidth,q.videoHeight))}return d}; g.Q.isHdr=function(){return!!(this.videoData.U&&this.videoData.U.video&&this.videoData.U.video.isHdr())}; g.Q.sendVideoStatsEngageEvent=function(d,q){var T=this.X9;T.G?(T=B8(T.G,"engage"),T.yv=d,T.send(q)):q&&q()}; g.Q.iS=function(d){return this.X9.iS(d)}; g.Q.isAtLiveHead=function(d,q){q=q===void 0?!1:q;return Lt(this.videoData)&&(this.OY||q)?this.sF.isAtLiveHead(d):!1}; g.Q.Jt=function(){var d=this.cG(),q=this.getCurrentTime(),T;(T=!Lt(this.videoData))||(T=this.sF,T=!(T.G&&T.G.j));return T||this.bl()||isNaN(d)||isNaN(q)?0:Math.max(0,d-q)}; g.Q.eO=function(d){(this.OY=d)||this.I4.stop();this.videoData.G&&(d?this.videoData.G.resume():Kif(this.videoData.G));if(this.loader){var q=this.videoData.N("html5_disable_preload_for_ssdai_with_preroll")&&this.k6()&&this.videoData.isLivePlayback;d&&!q?this.loader.resume():xs(this,!0)}g.I(this.playerState,2)||d?g.I(this.playerState,512)&&d&&this.Vp(pk(this.playerState,512)):this.Vp(Ae(this.playerState,512));q=this.X9;q.qoe&&(q=q.qoe,g.UV(q,g.Jp(q.provider),"stream",[d?"A":"I"]))}; g.Q.EU=function(d){this.X9.jT("player.exception",RI({n:d.name,m:d.message}))}; g.Q.Gz=dI(22);g.Q.xz=dI(51);g.Q.WR=function(d){this.X9.WR(d)}; g.Q.oP=function(d){this.X9.oP(d)}; g.Q.yD=function(d){this.X9.yD(d)}; g.Q.xL=dI(28);g.Q.Ak=dI(34);g.Q.u0=function(d){this.X9.u0(d)}; g.Q.Fz=function(d,q,T,Y){this.X9.Fz(d,q,T,Y)}; g.Q.V_=function(){this.oU("hidden",{},!0)}; g.Q.EE=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.Q.Kb=function(){return this.loader?this.loader.Kb():!0}; g.Q.setLoop=function(d){this.loop=d;this.mediaElement&&!g.ho(this.Pv)&&this.mediaElement.setLoop(d)}; g.Q.AC=function(){return this.mediaElement&&!g.ho(this.Pv)?this.mediaElement.AC():this.loop}; g.Q.XV=function(d){this.oU("timestamp",{o:d.toString()});this.sF.XV(d)}; g.Q.D$=function(d){this.rz.tick(d)}; g.Q.w1=function(d){return this.rz.w1(d)}; g.Q.GT=function(d){this.rz.GT(d)}; g.Q.oU=function(d,q,T){this.X9.oU(d,q,T===void 0?!1:T)}; g.Q.f_=function(d,q,T){this.X9.oU(d,q,T===void 0?!1:T)}; g.Q.jT=function(d){this.X9.jT(d.errorCode,RI(d.details));d=d.errorCode;if(this.videoData.isLivePlayback&&(d==="qoe.longrebuffer"||d==="qoe.slowseek")||d==="qoe.restart"){d=this.loader?xd1(this.loader.videoTrack):{};var q,T;this.oU("lasoe",Object.assign(this.loader?xd1(this.loader.audioTrack):{},(q=this.ED)==null?void 0:(T=q.G)==null?void 0:T.Bo()));var Y,e;this.oU("lvsoe",Object.assign(d,(Y=this.ED)==null?void 0:(e=Y.U)==null?void 0:e.Bo()))}if(this.N("html5_log_centralized_player_time")){var U;this.oU("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(U=this.loader)==null?void 0:U.currentTime})}}; g.Q.Ly=function(d,q,T){this.X9.Ly(d,q,T)}; g.Q.JP=function(d,q,T,Y,e,U,b,J){var F;if((F=this.videoData.G)!=null&&F.isLive){var N=q.playerType===2?q:d,R=d.videoData.videoId,x=q.videoData.videoId;if(R&&x){F=this.X9;if(F.qoe){var y=F.qoe,h=d.cpn,H=q.cpn,a=N.videoData.R6,p=y.provider.videoData.clientPlaybackNonce,t=y.provider.videoData.videoId,n=H!==p&&x!==t;p=h!==p&&R!==t;y.reportStats();y.adCpn&&y.adCpn!==h||(y.adCpn=p?h:"",y.Ud=p?R:"",y.adFormat=p?a:void 0,HV_(y,U?4:e?2:0,H,x,Y),y.reportStats(),y.adCpn=n?H:"",y.Ud=n?x:"",y.adFormat=n?a:void 0, HV_(y,U?5:e?3:1,h,R,T),y.reportStats())}T=d.cpn;if(F.j.has(T)){if(e=F.j.get(T),LE(e,!0).send(),G6(e),T!==F.provider.videoData.clientPlaybackNonce){JG_(e);var K;(K=F.G)==null||Y82(K);F.j.delete(T)}}else F.KA=F.provider.videoData.clientPlaybackNonce,F.KA&&F.G&&(F.j.set(F.KA,F.G),LE(F.G).send(),G6(F.G));K=q.cpn;N=N.videoData;Y-=this.il();if(F.j.has(K)){Y=F.j.get(K);var P=Y.j&&isNaN(Y.S)?KE(Y):NaN;Y=X$2(Y,!1);isNaN(P)||(Y.L=P);Y.send()}else Y=cGn(F,F.provider,N,Y),F.j.set(K,Y),sZ_(Y,new g.sP(Ae(new g.EX, 8),new g.EX)),TFI(Y),(P=F.G)==null||G6(P);F.KA=K;if(this.N("html5_unify_csi_server_stitched_transition_logging")){if(F=this.rz,P=q.cpn,Y=this.videoData.clientPlaybackNonce,q=q.videoData,d=(d.cpn===Y?"video":"ad")+"_to_"+(P===Y?"video":"ad"),d!=="video_to_ad"){Y=d==="ad_to_video"?void 0:q;N=Y==null?void 0:Y.d7;K={};if(q==null?0:q.X)K.cttAuthInfo={token:q.X,videoId:q.videoId};b&&(K.startTime=b);OG(d,K);var w,l,m;b={targetVideoId:(w=q==null?void 0:q.videoId)!=null?w:"empty_video",targetCpn:P,adVideoId:(l= Y==null?void 0:Y.videoId)!=null?l:"empty_video",adClientPlaybackNonce:(m=N==null?void 0:N.cpn)!=null?m:Y==null?void 0:Y.clientPlaybackNonce};N&&(b.adBreakType=N.adBreakType,b.adType=N.adType);g.ZO(b,d);aN(F,J,d)}}else w=this.rz,m=this.videoData.clientPlaybackNonce,l=q.videoData,m=(d.cpn===m?"video":"ad")+"_to_"+(q.cpn===m?"video":"ad"),d={},l.X&&(d.cttAuthInfo={token:l.X,videoId:l.videoId}),b&&(d.startTime=b),OG(m,d),g.ZO({targetVideoId:l.videoId,targetCpn:q.cpn,isSsdai:!0},m),b||aN(w,J,m)}}else this.logger.G(360717806, "SSTEvent for nonSS")}; g.Q.Ne=function(){var d=this.h1,q=d.Xx;d.Xx=[];return q}; g.Q.f7=function(d){this.videoData.F7=!0;this.jT(new g.xV("sabr.fallback",d));this.U6(!0)}; g.Q.pB=function(d,q){this.videoData.ZB=!0;if(q===void 0||q)this.jT(new g.xV("qoe.restart",d)),this.U6(!0);this.videoData.y5()&&this.N("html5_reload_caption_on_ssdai_fallback")&&this.h1.iy()}; g.Q.uH=function(d){this.oU("sdai",{aftimeout:d});this.jT(new g.xV("ad.fetchtimeout",{timeout:d}))}; g.Q.dn=function(d,q){this.oU("timelineerror",d);d=new g.xV("dai.timelineerror",d);q?this.o6("dai.timelineerror",1,"RETRYABLE_ERROR",RI(d.details)):this.jT(d)}; g.Q.Rf=function(){return g.Jp(this.X9.provider)}; g.Q.getPlayerSize=function(){return this.eb.getPlayerSize()}; g.Q.yS=function(){return this.eb.yS()}; g.Q.GN=function(){return this.rz}; g.Q.B9=function(){return this.h1.B9()}; g.Q.getVolume=function(){return this.h1.getVolume()}; g.Q.hW=function(){return this.h1.hW()}; g.Q.isMuted=function(){return this.h1.isMuted()}; g.Q.L9=function(){return this.h1.L9()}; g.Q.kK=function(){this.lD=!0}; g.Q.N=function(d){return this.Pv.N(d)}; g.Q.a$=function(d,q,T,Y,e){this.oU("xvt",{m:d,g:q?1:0,tt:T?1:0,np:Y?1:0,c:e})}; g.Q.L0=function(){var d;(d=this.loader)==null||d.resume()}; g.Q.k6=function(){return g.cR(this.Lt,"ad")}; g.Q.oF=function(){var d=this.getCurrentTime(),q=d-this.mz();var T=this.mediaElement?dC(this.mediaElement.g1()):0;T=Math.floor(Math.max(T-q,0))+100;var Y;return((Y=this.loader)==null?0:Y.oF(q,T))?(this.oU("sdai",{skipad:1,ct:q.toFixed(3),adj:T.toFixed(3)}),tw(this.videoData)&&this.loader.seek(q+T,{seekSource:89,b$:"videoplayer_skipServerStitchedAd"}),MzY(this.sF,d),!0):!1}; g.Q.uF=function(){return this.Pv.uF()}; g.Q.gK=function(){if(this.N("html5_generate_content_po_token"))return this.videoData.nR||"";this.h1.nN();return this.Pv.qU||""}; g.Q.PH=function(){if(this.videoData.videoId)return this.videoData.BD}; g.Q.Sh=function(){return this.videoData.videoId}; g.Q.C9=function(){return this.h1.cq}; g.Q.HE=function(){return this.w9}; g.Q.GO=function(){return this.h1.GO()}; g.Q.mN=function(d,q,T){this.Vp(Ae(this.playerState,16,T));this.sF.mN(d,q)}; g.Q.prefetchKeyPlay=function(){}; g.Q.q7=function(){this.sF.q7()}; g.Q.RX=function(d,q){var T=this.N("html5_generate_content_po_token")?this.videoData:void 0;this.h1.RX(d,q,T)}; g.Q.Z1=function(d,q){this.X9.Z1(d,q)}; g.Q.NI=function(){return this.X9.NI()}; g.Q.DL=function(){return this.videoData.UK}; g.Q.MN=function(){return this.h1.MN()}; g.Q.lj=function(){return this.h1.lj(this)}; g.Q.Be=function(){this.le=!0}; g.Q.sO=function(d){var q;(q=this.loader)==null||q.sO(d)};g.M(h$j,xT);g.M(hG,jq);hG.prototype.G=function(d){d&&az(this,this.J.getLoopVideo());this.J.logVisibility(this.element,d)}; hG.prototype.logClick=function(){this.J.logClick(this.element)}; hG.prototype.onLoopChange=function(d){az(this,d)}; hG.prototype.U=function(d){this.J.setLoopVideo(d)};g.M(Hq1,xT);g.M(QWn,xT);g.Q=QWn.prototype;g.Q.seekToChapterWithAnimation=function(d){var q=this;if(g.KV(this.api)&&!(d<0)){var T=this.api.getVideoData(),Y=T.lS;if(Y&&d=0)return;q=~q;g.WR(this.items,q,0,d);yp(this.menuItems.element,d.element,q)}d.subscribe("size-change",this.IX,this);this.menuItems.publish("size-change")}; g.Q.e$=function(d){d.unsubscribe("size-change",this.IX,this);this.JF()||(g.jj(this.items,d),this.menuItems.element.removeChild(d.element),this.menuItems.publish("size-change"))}; g.Q.IX=function(){this.menuItems.publish("size-change")}; g.Q.focus=function(){for(var d=0,q=0;q1&&g.GQ(this)}; g.Q.OJ=function(){dN1(this);this.PF&&(oBI(this),g.or(this.element,this.size))}; g.Q.l1=function(){var d=this.G.pop();VgH(this,d,this.G[this.G.length-1],!0)}; g.Q.sG=function(d){if(!d.defaultPrevented)switch(d.keyCode){case 27:this.bF();d.preventDefault();break;case 37:this.G.length>1&&this.l1();d.preventDefault();break;case 39:d.preventDefault()}}; g.Q.focus=function(){this.G.length&&this.G[this.G.length-1].focus()}; g.Q.ir=function(){g.bi.prototype.ir.call(this);this.X&&this.X.dispose();this.L&&this.L.dispose()};g.M(Lc,g.B$);Lc.prototype.open=function(d,q){this.initialize(d.items)&&this.St(q,!!q)}; Lc.prototype.initialize=function(d){g.tG(this.ws);if(d===void 0||d.length===0)return!1;var q=d.length;d=g.E(d);for(var T=d.next();!T.done;T=d.next())this.rk(T.value,q--);return!0}; Lc.prototype.rk=function(d,q){d.menuNavigationItemRenderer?Ykj(this,d.menuNavigationItemRenderer,q):d.menuServiceItemRenderer&&et2(this,d.menuServiceItemRenderer,q)};g.M(ks,O8);g.Q=ks.prototype;g.Q.Lm=function(d){d.target!==this.dismissButton.element&&d.target!==this.overflowButton.element&&(this.uA(),this.onClickCommand&&this.J.gO("innertubeCommand",this.onClickCommand))}; g.Q.aC=function(){this.enabled=!1;this.K.hide()}; g.Q.Cy=function(){return!!this.G&&this.enabled}; g.Q.onVideoDataChange=function(d,q){this.E8(q);if(this.G){this.nX();a:if(!this.isCounterfactual){var T,Y,e;this.banner.update({title:(T=this.G)==null?void 0:T.title,subtitle:(Y=this.G)==null?void 0:Y.subtitle,metadata:(e=this.G)==null?void 0:e.metadataText});var U;this.onClickCommand=g.D((U=this.G)==null?void 0:U.onTap,ri);var b;if(d=g.D((b=this.G)==null?void 0:b.onOverflow,ri))this.L=g.D(d,DXc);var J;if((J=this.G)==null?0:J.thumbnailImage){var F,N;b=((F=this.G)==null?void 0:(N=F.thumbnailImage)== null?void 0:N.sources)||[];if(b.length===0)break a;this.thumbnailImage.update({url:b[0].url})}else{var R;if((R=this.G)==null?0:R.thumbnailIconName){var x;this.thumbnailIcon.update({icon:(x=this.G)==null?void 0:x.thumbnailIconName})}}var y;this.shouldShowOverflowButton=!((y=this.G)==null||!y.shouldShowOverflowButton);var h;this.shouldHideDismissButton=!((h=this.G)==null||!h.shouldHideDismissButton)}var H;this.banner.element.setAttribute("aria-label",((H=this.G)==null?void 0:H.a11yLabel)||"");var a; this.xx=(a=this.G)==null?void 0:a.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;bAQ(this)}}; g.Q.fQw=function(){this.isVisible=!0;bAQ(this)}; g.Q.U5v=function(){this.isVisible=!1;bAQ(this)}; g.Q.GR=function(){O8.prototype.GR.call(this);this.U&&this.J.logVisibility(this.banner.element,this.isVisible)}; g.Q.uA=function(){O8.prototype.uA.call(this,!1);this.U&&this.J.logClick(this.banner.element)}; g.Q.HB=function(d){this.X||(this.X=new Lc(this.J),g.C(this,this.X));var q,T;if((q=this.L)==null?0:(T=q.menu)==null?0:T.menuRenderer)this.X.open(this.L.menu.menuRenderer,d.target),d.preventDefault()}; g.Q.E8=function(){}; g.Q.nX=function(){}; g.Q.ir=function(){this.J.hm("suggested_action_view_model");O8.prototype.ir.call(this)};g.M(P$,ks); P$.prototype.E8=function(d){var q,T,Y;this.productUpsellSuggestedActionViewModel=g.D((q=d.getWatchNextResponse())==null?void 0:(T=q.playerOverlays)==null?void 0:(Y=T.playerOverlayRenderer)==null?void 0:Y.suggestedActionViewModel,euc);var e;if((e=this.productUpsellSuggestedActionViewModel)==null?0:e.content){var U;this.G=g.D((U=this.productUpsellSuggestedActionViewModel)==null?void 0:U.content,WnI)}var b,J;if(this.U=!!((b=this.productUpsellSuggestedActionViewModel)==null?0:(J=b.loggingDirectives)==null? 0:J.trackingParams)){var F,N;this.J.setTrackingParams(this.banner.element,((F=this.productUpsellSuggestedActionViewModel)==null?void 0:(N=F.loggingDirectives)==null?void 0:N.trackingParams)||null)}var R;this.isCounterfactual=!((R=this.productUpsellSuggestedActionViewModel)==null||!R.isCounterfactualServing)}; P$.prototype.nX=function(){var d=[],q,T=g.E(((q=this.productUpsellSuggestedActionViewModel)==null?void 0:q.ranges)||[]);for(q=T.next();!q.done;q=T.next()){var Y=q.value;Y&&(q=Number(Y.startTimeMilliseconds),Y=Number(Y.endTimeMilliseconds),isNaN(q)||isNaN(Y)||d.push(new g.Ij(q,Y,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.J.ES(d)};g.M(XFN,xT);g.M(W$,xT);W$.prototype.onVideoDataChange=function(d,q){var T=this;if(!FG(q)&&(d==="newdata"&&sk6(this),this.G&&d==="dataloaded")){this.G=!1;var Y;K0(BN(tJ(this.api.C(),(Y=this.api.getVideoData())==null?void 0:g.$4(Y)),function(e){xNN(T,e)}),function(){T.G=!0})}}; W$.prototype.S0=function(){var d=this;if(g.ho(this.api.C())){var q,T=g.rn(this.api.C(),(q=this.api.getVideoData())==null?void 0:g.$4(q));return BN(OT(T),function(Y){var e=Tk();eq(e,Y);return d.api.S0(e)})}return OT(this.api.S0())};g.M(g.uf,g.gR);g.Q=g.uf.prototype;g.Q.open=function(){g.Kc(this.TG,this.U)}; g.Q.kL=function(d){yZ1(this);var q=this.options[d];q&&(q.element.setAttribute("aria-checked","true"),this.A1(this.Qi(d)),this.j=d)}; g.Q.MF=function(d){g.tG(this.U);for(var q={},T=!1,Y=0;Y=0?this.G.playbackRate:1}catch(d){return 1}}; g.Q.setPlaybackRate=function(d){this.getPlaybackRate()!==d&&(this.G.playbackRate=d);return d}; g.Q.AC=function(){return this.G.loop}; g.Q.setLoop=function(d){this.G.loop=d}; g.Q.canPlayType=function(d,q){return this.G.canPlayType(d,q)}; g.Q.isPaused=function(){return this.G.paused}; g.Q.isSeeking=function(){return this.G.seeking}; g.Q.isEnded=function(){return this.G.ended}; g.Q.CB=function(){return this.G.muted}; g.Q.J4=function(d){j7();this.G.muted=d}; g.Q.NT=function(){return this.G.played||S7([],[])}; g.Q.g1=function(){try{var d=this.G.buffered}catch(q){}return d||S7([],[])}; g.Q.kF=function(){return this.G.seekable||S7([],[])}; g.Q.U1=function(){var d=this.G;return d.getStartDate?d.getStartDate():null}; g.Q.getCurrentTime=function(){return this.G.currentTime}; g.Q.setCurrentTime=function(d){this.G.currentTime=d}; g.Q.getDuration=function(){return this.G.duration}; g.Q.load=function(){var d=this.G.playbackRate;try{this.G.load()}catch(q){}this.G.playbackRate=d}; g.Q.pause=function(){this.G.pause()}; g.Q.play=function(){var d=this.G.play();if(!d||!d.then)return null;d.then(void 0,function(){}); return d}; g.Q.Tr=function(){return this.G.readyState}; g.Q.Va=function(){return this.G.networkState}; g.Q.nA=function(){return this.G.error?this.G.error.code:null}; g.Q.P4=function(){return this.G.error?this.G.error.message:""}; g.Q.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.G instanceof window.HTMLVideoElement&&this.G.getVideoPlaybackQuality)return this.G.getVideoPlaybackQuality();if(this.G){var d=this.G,q=d.webkitDroppedFrameCount;if(d=d.webkitDecodedFrameCount)return{droppedVideoFrames:q||0,totalVideoFrames:d}}return{}}; g.Q.pA=function(){return!!this.G.webkitCurrentPlaybackTargetIsWireless}; g.Q.Yp=function(){return!!this.G.webkitShowPlaybackTargetPicker()}; g.Q.togglePictureInPicture=function(){var d=this.G,q=window.document;window.document.pictureInPictureEnabled?this.G!==q.pictureInPictureElement?d.requestPictureInPicture():q.exitPictureInPicture():EJ()&&d.webkitSetPresentationMode(d.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.Q.eE=function(){var d=this.G;return new g.wt(d.offsetLeft,d.offsetTop)}; g.Q.getSize=function(){return g.Vp(this.G)}; g.Q.setSize=function(d){g.or(this.G,d)}; g.Q.getVolume=function(){return this.G.volume}; g.Q.setVolume=function(d){j7();this.G.volume=d}; g.Q.t_=function(d){this.S[d]||(this.G.addEventListener(d,this.listener),this.S[d]=this.listener)}; g.Q.setAttribute=function(d,q){this.G.setAttribute(d,q)}; g.Q.removeAttribute=function(d){this.G.removeAttribute(d)}; g.Q.hasAttribute=function(d){return this.G.hasAttribute(d)}; g.Q.Yw=dI(61);g.Q.zi=dI(63);g.Q.pY=dI(65);g.Q.p9=dI(67);g.Q.Gf=function(){return Ns(this.G)}; g.Q.iG=function(d){g.d9(this.G,d)}; g.Q.X5=function(d){return g.fT(this.G,d)}; g.Q.wj=function(){return g.HB(document.body,this.G)}; g.Q.audioTracks=function(){var d=this.G;if("audioTracks"in d)return d.audioTracks}; g.Q.ir=function(){for(var d=g.E(Object.keys(this.S)),q=d.next();!q.done;q=d.next())q=q.value,this.G.removeEventListener(q,this.S[q]);he.prototype.ir.call(this)}; g.Q.EV=function(d){this.G.disableRemotePlayback=d};g.M(dV,g.f);g.M(TV,g.f);TV.prototype.show=function(){g.f.prototype.show.call(this);this.S5();this.mZ.N("html5_enable_moving_s4n_window")&&g.ho(this.mZ.C())&&this.B()}; TV.prototype.hide=function(){g.f.prototype.hide.call(this);this.delay.stop();this.T.stop()}; TV.prototype.S5=function(){var d=(0,g.cj)(),q=OAf(this.mZ);qc(this.G,q.bandwidth_samples);qc(this.L,q.network_activity_samples);qc(this.j,q.live_latency_samples);qc(this.U,q.buffer_health_samples);var T={};q=g.E(Object.entries(q));for(var Y=q.next();!Y.done;Y=q.next()){var e=g.E(Y.value);Y=e.next().value;e=e.next().value;this.K[Y]!==e&&(T[Y]=" "+String(e));this.K[Y]=e}this.update(T);d=(0,g.cj)()-d>25?5E3:500;this.delay.start(d)}; TV.prototype.B=function(){this.X?(this.position+=1,this.position>15&&(this.X=!1)):(--this.position,this.position<=0&&(this.X=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.T.start(2E4)};g.M(twn,xT);g.M(Yr,g.W);Yr.prototype.G=function(){var d=(0,g.cj)()-this.startTime;d=dthis.T[d])&&(this.G=d,this.Hq())}; g.Q.onCueRangeExit=function(d){var q=zt_(this,d);q&&this.G===d&&this.api.gO("innertubeCommand",q);b0(this);this.G=void 0}; g.Q.VI=function(d){this.j=d}; g.Q.JT=function(){this.Hq();this.j=void 0}; g.Q.Hq=function(){if(this.G!==void 0){var d=(d=Ui(this,this.G))&&d.onCueRangeEnter?Ba(d.onCueRangeEnter):void 0;var q=Ui(this,this.G);a:if(q&&q.additionalTrigger){var T=g.E(q.additionalTrigger);for(var Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,Y.type){var e=void 0,U=void 0;if((e=this.rO[Y.type])==null?0:e((U=Y.args)!=null?U:{})){T=!0;break a}}T=!1}else T=!0;d&&T&&(this.api.gO("innertubeCommand",d),iA6(this,q),this.T[this.G]!==void 0&&this.T[this.G]++,this.K=!0)}}; g.Q.ir=function(){this.timelyActions=this.j=this.G=this.videoId=void 0;this.T={};this.cR();b0(this);xT.prototype.ir.call(this)};g.M(SkN,xT);g.M(Xi,jq);Xi.prototype.X=function(d){this.T(d?2:1)}; Xi.prototype.U=function(){var d=this.J.getPresentingPlayerType();d===2||d===3?(this.G=!1,this.TG.e$(this)):this.G||(d=this.hasVoiceBoostAudioTrack(),this.setEnabled(d),d=this.j()===2&&d,az(this,d),this.TG.rk(this),this.G=!0)}; Xi.prototype.ir=function(){this.TG.e$(this);jq.prototype.ir.call(this)};g.M(Jc,xT);Jc.prototype.getVoiceBoostUserPreference=function(){return this.G}; Jc.prototype.setVoiceBoostUserPreference=function(d){this.api.oU("vb_set",{pref:d});g.pW("yt-player-voice-boost",d);d!==this.G&&(this.G=d,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.Ql())}; Jc.prototype.hasVoiceBoostAudioTrack=function(){var d,q,T=(d=this.api.getVideoData())==null?void 0:(q=d.j)==null?void 0:q.G;return T?D7(T,function(Y){var e;return((e=Y.audio)==null?void 0:e.U)===!0}):!1}; Jc.prototype.updateEnvironmentData=function(){this.api.C().H1=this.G};var blg=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.M(gV,xT);gV.prototype.ir=function(){this.L&&(g.Fq(this.L),this.L=void 0);xT.prototype.ir.call(this)}; gV.prototype.nN=function(){(this.U?!this.G:this.j)&&Nc(this)}; gV.prototype.NN=function(d,q,T){var Y=this;if(onI(d)){var e=T||"";if(this.G)q=RN(this,e),Vwn(d,q);else{var U=new g.sq;q.push(U.promise);this.S.promise.then(function(){var b=RN(Y,e);Vwn(d,b);U.resolve()})}}}; gV.prototype.Sp=function(d){var q=this;if(this.U||this.j)d.nR=RN(this,d.videoId),this.G||(this.T=new yQ,this.S.promise.then(function(){q.rz.w1("pot_if");d.nR=RN(q,d.videoId)}))};g.M(g.yV,g.f);g.yV.prototype.select=function(){this.api.tC(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.qq||void 0)&&this.api.logClick(this.element)}; g.yV.prototype.onClick=function(d){if(g.dn(this.api.C())&&this.api.N("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var q=this.suggestion.Xk(),T={};g.Sf(this.api,T);q=g.y6(q,T);g.pR(q,this.api,d)}else g.AM(d,this.api,this.U,this.suggestion.sessionData||void 0)&&this.select()}; g.yV.prototype.onKeyPress=function(d){switch(d.keyCode){case 13:case 32:d.defaultPrevented||(this.select(),d.preventDefault())}}; g.yV.prototype.onVideoDataChange=function(){var d=this.api.getVideoData(),q=this.api.C();this.U=d.kc?!1:q.T};g.M(giN,g.f);g.Q=giN.prototype;g.Q.ir=function(){this.hide();g.jX(this.T);g.Yt(this.stills);this.stills.length=0;this.U&&this.U.removeEventListener("click",this.oO);this.j&&this.j.removeEventListener("click",this.PE);this.G&&this.G.removeEventListener("click",this.PE);g.f.prototype.ir.call(this)}; g.Q.PE=function(d){this.B&&this.B(d)}; g.Q.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var d,q,T,Y,e;var U=(((d=this.videoData)==null?0:(q=d.suggestions)==null?0:q.length)?(T=this.videoData)==null?void 0:T.suggestions:((Y=this.videoData)==null?0:g.jH(Y))?[(e=this.videoData)==null?void 0:g.jH(e)]:[]).slice(0,18);if((d=this.K)&&this.L&&this.X)if(g.xE(d),U.length)for(this.stills.length>U.length&&g.Yt(this.stills.splice(U.length)),this.stills.length=U.length,q=0;q=0;d--)this.features[d].dispose();this.features.length=0;g.W.prototype.ir.call(this)};HlQ.prototype.reset=function(){this.G=this.U=NaN};g.Q=QUg.prototype;g.Q.reset=function(){jl(this.timerName)}; g.Q.tick=function(d,q){pU(d,q,this.timerName)}; g.Q.w1=function(d){return rc(d,void 0,this.timerName)}; g.Q.GT=function(d){g.iN(d,void 0,this.timerName)}; g.Q.infoGel=function(d){g.ZO(d,this.timerName)};g.M(Eig,g.YP);g.Q=Eig.prototype;g.Q.mB=function(d){return this.loop||!!d||this.index+1=0}; g.Q.setShuffle=function(d){this.shuffle=d;d=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var q=0;q0)||fa(this,1,!0)}; g.Q.dL=function(){this.X=!0;this.G.t1(this.S);this.S=this.G.W(document,"mouseup",this.ql)}; g.Q.ql=function(){this.X=!1;fa(this,8,!1);this.G.t1(this.S);this.S=this.G.W(this.target,"mousedown",this.dL)}; g.Q.Jl=function(d){if(d=(d=d.changedTouches)&&d[0])this.rO=d.identifier,this.G.t1(this.B),this.B=this.G.W(this.target,"touchend",this.S7,void 0,!0),fa(this,1024,!0)}; g.Q.S7=function(d){if(d=d.changedTouches)for(var q=0;q1280||e>720)if(q=Y.Qg("maxresdefault.jpg"))break;if(U>640||e>480)if(q=Y.Qg("maxresdefault.jpg"))break;if(U>320||e>180)if(q=Y.Qg("sddefault.jpg")||Y.Qg("hqdefault.jpg")||Y.Qg("mqdefault.jpg"))break;if(q=Y.Qg("default.jpg"))break}g.an(d)&&(d=new Image,d.addEventListener("load", function(){R26()}),d.src=q?q:"",this.api.GN().tick("ftr")); this.T.style.backgroundImage=q?"url("+q+")":""};g.M(g.mS,g.f);g.mS.prototype.resize=function(){}; g.mS.prototype.U=function(d){var q=this;this.j=!1;JT_(this);var T=d.rG,Y=this.api.C();T!=="GENERIC_WITHOUT_LINK"||Y.X?T==="TOO_MANY_REQUESTS"?(Y=this.api.getVideoData(),this.A1(vc(this,"TOO_MANY_REQUESTS_WITH_LINK",Y.Xk(),void 0,void 0,void 0,!1))):T!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||Y.X?this.api.C().N("html5_enable_bandaid_error_screen")&&T==="HTML5_SPS_UMP_STATUS_REJECTED"&&!Y.X?(Y=Y.hostLanguage,d="//support.google.com/youtube?p=videoError",Y&&(d=g.y6(d,{hl:Y})),this.A1(vc(this,"HTML5_SPS_UMP_STATUS_REJECTED", d))):this.api.C().N("enable_adb_handling_in_sabr")&&T==="BROWSER_OR_EXTENSION_ERROR"&&!Y.X?(Y=Y.hostLanguage,d="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",Y&&(d=g.y6(d,{hl:Y})),this.A1(vc(this,"BROWSER_OR_EXTENSION_ERROR",d))):this.A1(g.Sz(d.errorMessage)):this.A1(vc(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(d=Y.hostLanguage,T="//support.google.com/youtube/?p=player_error1",d&&(T=g.y6(T, {hl:d})),this.A1(vc(this,"GENERIC_WITH_LINK_AND_CPN",T,!0)),Y.vF&&!Y.T&&Xef(this,function(U){if(g.AM(U,q.api,!HT(q.api.C()))){U={as3:!1,html5:!0,player:!0,cpn:q.api.getVideoData().clientPlaybackNonce};var b=q.api;b.US("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:U});b.isFullscreen()&&b.toggleFullscreen()}})); if(this.j){var e=this.Qv("ytp-error-link");e&&(this.api.createClientVe(e,this,216104),this.api.logVisibility(e,!0),Xef(this,function(){q.api.logClick(e)}))}}; var brn=/([^<>]+)<\/a>/;g.M(sP2,g.f);sP2.prototype.A0=function(d,q,T){T=T===void 0?!1:T;switch(q){case 1:oN(this,d,this.j,T);break;case 2:oN(this,d,this.T,T);break;case 3:oN(this,d,this.G,T);break;case 4:oN(this,d,this.U,T)}};g.M($k7,g.f);g.Q=$k7.prototype;g.Q.onClick=function(d){this.innertubeCommand?(this.J.gO("innertubeCommand",this.innertubeCommand),d.preventDefault()):g.AM(d,this.J,!0);this.J.logClick(this.element)}; g.Q.onVideoDataChange=function(d,q){FON(this,q);this.Fd&&NB1(this,this.Fd)}; g.Q.EG=function(d){var q=this.J.getVideoData();this.videoId!==q.videoId&&FON(this,q);this.G&&NB1(this,d.state);this.Fd=d.state}; g.Q.St=function(){this.fade.show();this.J.publish("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)}; g.Q.bF=function(){this.fade.hide();this.J.publish("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.M(VV,g.f);VV.prototype.hide=function(){this.G.stop();this.message.style.display="none";g.f.prototype.hide.call(this)}; VV.prototype.onStateChange=function(d){this.XC(d.state)}; VV.prototype.XC=function(d){if(g.I(d,128)||this.api.HE())var q=!1;else{var T;q=this.api.N("web_watch_enable_multiview_manager")&&((T=this.api.getVideoData())==null?0:FG(T))?!1:g.I(d,16)||g.I(d,1)?!0:!1}q?this.G.start():this.hide()}; VV.prototype.U=function(){this.message.style.display="block"};g.M(dr,g.bi);dr.prototype.onMutedAutoplayChange=function(d){this.j&&(d?(Rz6(this),this.St()):(this.G&&this.logClick(),this.bF()))}; dr.prototype.h0=function(d){this.api.isMutedByMutedAutoplay()&&g.gs(d,2)&&this.bF()}; dr.prototype.onClick=function(){this.api.unMute();this.logClick()}; dr.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.M(g.ql,g.aI);g.Q=g.ql.prototype;g.Q.init=function(){var d=this.api,q=d.getPlayerStateObject();this.dE=d.getPlayerSize();this.Vp(q);this.zB();this.gz();this.api.publish("basechromeinitialized",this);this.tD()&&this.api.publish("standardControlsInitialized")}; g.Q.onVideoDataChange=function(d,q){var T=this.oE!==q.videoId;if(T||d==="newdata")d=this.api,d.isFullscreen()||(this.dE=d.getPlayerSize());T&&(this.oE=q.videoId,T=this.QH,T.z2=3E3,fa(T,512,!0),this.zB());this.api.N("web_render_jump_buttons")&&q.showSeekingControls&&(this.O8=572)}; g.Q.SMZ=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.Q.EJ=function(){var d=this.api.Tv()&&this.api.D7(),q=this.api.eA();return this.DF||d||this.Es||q}; g.Q.TT=function(){var d=!this.EJ();g.ep(this.api.getRootNode(),"ytp-menu-shown",!d)}; g.Q.O1=function(d){try{if(!g.HB(this.api.getRootNode(),d))return!1}catch(q){return!1}for(;d&&!CQQ(d);)d=d===this.api.getRootNode()?null:d.parentElement||null;return!!d}; g.Q.cE=function(d){var q=this.api.getRootNode();g.ep(q,"ytp-autohide",d);g.ep(q,"ytp-autohide-active",!0);this.E4.start(d?250:100);d&&(this.Jw=!1,g.TR(q,"ytp-touch-mode"));this.xR=!d;this.api.C0(!d);this.api.N("delhi_modern_web_player")&&this.api.publish("autohideupdate",d)}; g.Q.Ob=function(){var d=this.api.getRootNode();g.ep(d,"ytp-autohide-active",!1)}; g.Q.DCw=function(){this.dM=!0}; g.Q.Fc2=function(d){if(this.api.C().N("player_doubletap_to_seek")||this.api.C().L)this.dM=!1,this.Jc&&this.t1(this.Jc),this.nm===0&&YB(this,d)?(this.Nh(),this.r_.start(),this.Jc=this.W(this.api.OD(),"touchmove",this.DCw,void 0,!0)):this.r_.stop();Hrf(this)&&YB(this,d)&&!this.api.C().L&&yT2(this);var q=this.q8.vR();if(!g.dn(this.api.C())&&le&&QPj(this,d))q&&d.preventDefault();else if(this.Jw=!0,g.d9(this.api.getRootNode(),"ytp-touch-mode"),this.QH.oZ(),this.api.C().N("player_doubletap_to_seek")||this.api.C().L)if(q= this.api.getPlayerStateObject(),!(!this.api.Oc()||g.I(q,2)&&g.zJ(this.api)||g.I(q,64))){q=Date.now()-this.Ls;this.nm+=1;if(q<=350){this.BC=!0;q=this.api.getPlayerSize().width/3;var T=this.api.getRootNode().getBoundingClientRect(),Y=d.targetTouches[0].clientX-T.left;T=d.targetTouches[0].clientY-T.top;var e=(this.nm-1)*10;Y>0&&Yq*2&&Y=650,Y=d.width<528;this.QH.resize();g.ep(q,"ytp-fullscreen",this.api.isFullscreen());g.ep(q,"ytp-large-width-mode",T);this.api.N("delhi_modern_web_player")?g.ep(q,"ytp-xsmall-width-mode",Y):g.ep(q,"ytp-small-mode",this.Rl());g.ep(q,"ytp-tiny-mode",this.nO());g.ep(q,"ytp-big-mode",this.rU());this.uO&&this.uO.resize(d)}; g.Q.h0=function(d){this.Vp(d.state);this.zB()}; g.Q.RV=dI(3);g.Q.k8=function(){var d=!!this.oE&&!this.api.yX()&&!this.N6,q=this.api.getPresentingPlayerType()===2,T=this.api.C();if(q)return T=Wc(this.api.M5()),d&&(T&&T.player?d=(d=T.player.getVideoData(2))?d.isListed&&!g.xv(T.player.C()):!1:(Jm("showInfoBarDuringAd: this is null"),d=!1)),d;q=T.N("web_player_imax_theater_mode")&&this.api.E6();return d&&(T.Y6||q||this.api.isFullscreen()||T.Vt)}; g.Q.zB=function(){var d=this.k8();this.CS!==d&&(this.CS=d,g.ep(this.api.getRootNode(),"ytp-hide-info-bar",!d))}; g.Q.Vp=function(d){var q=d.isCued()||this.api.S8()&&this.api.getPresentingPlayerType()!==3;q!==this.isCued&&(this.isCued=q,this.RB&&this.t1(this.RB),this.RB=this.W(this.api.OD(),"touchstart",this.Fc2,void 0,q));var T=this.QH,Y=d.isPlaying()&&!g.I(d,32)||this.api.C1();fa(T,128,!Y);T=this.QH;Y=this.api.getPresentingPlayerType()===3;fa(T,256,Y);T=this.api.getRootNode();g.I(d,2)?Y=[lK.ENDED]:(Y=[],g.I(d,8)?Y.push(lK.PLAYING):g.I(d,4)&&Y.push(lK.PAUSED),g.I(d,1)&&!g.I(d,32)&&Y.push(lK.BUFFERING),g.I(d, 32)&&Y.push(lK.SEEKING),g.I(d,64)&&Y.push(lK.UNSTARTED));g.Is(this.F6,Y)||(g.YG(T,this.F6),this.F6=Y,g.qg(T,Y));Y=this.api.C();var e=g.I(d,2);a:{var U=this.api.C();var b=U.controlsType;switch(b){case "2":case "0":U=!1;break a}U=b==="3"&&!g.I(d,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:TLI(Wc(this.api.M5())))||this.api.eA()||g.dn(U)&&this.api.getPresentingPlayerType()===2?!1:!0}g.ep(T,"ytp-hide-controls",!U);g.ep(T,"ytp-native-controls",Y.controlsType==="3"&&!q&&!e&&!this.Es);g.I(d, 128)&&!g.dn(Y)?(this.uO||(this.uO=new g.mS(this.api),g.C(this,this.uO),g.o6(this.api,this.uO.element,4)),this.uO.U(d.eF),this.uO.show()):this.uO&&(this.uO.dispose(),this.uO=null)}; g.Q.LW=function(){return this.api.Tv()&&this.api.D7()?(this.api.H6(!1,!1),!0):this.api.yX()?(g.iH(this.api,!0),!0):!1}; g.Q.onMutedAutoplayChange=function(d){this.Es=d;this.TT()}; g.Q.rU=function(){return!1}; g.Q.Rl=function(){return!this.rU()&&(this.api.getPlayerSize().width=0&&q.left>=0&&q.bottom>q.top&&q.right>q.left?q:null;q=this.size;d=d.clone();q=q.clone();Y&&(b=q,e=5,(e&65)==65&&(d.x=Y.right)&&(e&=-2),(e&132)==132&&(d.y=Y.bottom)&&(e&=-5),d.xY.right&&(b.width=Math.min(Y.right-d.x,U+b.width-Y.left),b.width=Math.max(b.width,0))),d.x+b.width>Y.right&&e&1&&(d.x=Math.max(Y.right-b.width,Y.left)),d.yY.bottom&&(b.height=Math.min(Y.bottom-d.y,U+b.height-Y.top),b.height=Math.max(b.height,0))),d.y+b.height>Y.bottom&&e&4&&(d.y=Math.max(Y.bottom-b.height,Y.top)));Y=new g.WB(0,0,0,0);Y.left=d.x;Y.top=d.y;Y.width= q.width;Y.height=q.height;g.mZ(this.element,new g.wt(Y.left,Y.top));g.jX(this.T);this.T.W(Xp(this),"contextmenu",this.V5w);this.T.W(this.J,"fullscreentoggled",this.onFullscreenToggled);this.T.W(this.J,"pageTransition",this.Fr)}; g.Q.V5w=function(d){if(!d.defaultPrevented){var q=Qi(d);g.HB(this.element,q)||this.bF();this.J.C().disableNativeContextMenu&&d.preventDefault()}}; g.Q.onFullscreenToggled=function(){this.bF();frQ(this)}; g.Q.Fr=function(){this.bF()};g.M(Fy,g.f);Fy.prototype.onClick=function(){var d=this,q,T,Y,e;return g.G(function(U){if(U.U==1)return q=d.api.C(),T=d.api.getVideoData(),Y=d.api.getPlaylistId(),e=q.getVideoUrl(T.videoId,Y,void 0,!0),g.B(U,Ir7(d,e),2);U.G&&irD(d);d.api.logClick(d.element);g.E6(U)})}; Fy.prototype.S5=function(){this.updateValue("icon",{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"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","\u590d\u5236\u94fe\u63a5");this.updateValue("tooltip-title","\u590d\u5236\u94fe\u63a5"); this.visible=zzY(this);g.ep(this.element,"ytp-copylink-button-visible",this.visible);this.OM(this.visible);this.tooltip.U$();this.api.logVisibility(this.element,this.visible&&this.S)}; Fy.prototype.N5=function(d){g.f.prototype.N5.call(this,d);this.api.logVisibility(this.element,this.visible&&d)}; Fy.prototype.ir=function(){g.f.prototype.ir.call(this);g.TR(this.element,"ytp-copylink-button-visible")};g.M(mk1,g.f);g.Q=mk1.prototype;g.Q.show=function(){g.f.prototype.show.call(this);g.zh(this.U)}; g.Q.hide=function(){this.T.stop();this.j=0;this.Qv("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.TR(this.element,"ytp-chapter-seek");g.TR(this.element,"ytp-time-seeking");g.f.prototype.hide.call(this)}; g.Q.p5=function(d,q,T,Y){this.j=d===this.L?this.j+Y:Y;this.L=d;var e=d===-1?this.K:this.B;e&&this.J.logClick(e);this.X?this.U.stop():g.I1(this.U);this.T.start();this.element.setAttribute("data-side",d===-1?"back":"forward");var U=3*this.J.OD().getPlayerSize().height;e=this.J.OD().getPlayerSize();e=e.width/3-3*e.height;this.G.style.width=U+"px";this.G.style.height=U+"px";d===1?(this.G.style.left="",this.G.style.right=e+"px"):d===-1&&(this.G.style.right="",this.G.style.left=e+"px");var b=U*2.5;U=b/ 2;var J=this.Qv("ytp-doubletap-ripple");J.style.width=b+"px";J.style.height=b+"px";d===1?(d=this.J.OD().getPlayerSize().width-q+Math.abs(e),J.style.left="",J.style.right=d-U+"px"):d===-1&&(d=Math.abs(e)+q,J.style.right="",J.style.left=d-U+"px");J.style.top="calc((33% + "+Math.round(T)+"px) - "+U+"px)";if(T=this.Qv("ytp-doubletap-ripple"))T.classList.remove("ytp-doubletap-ripple"),T.classList.add("ytp-doubletap-ripple");SW1(this,this.X?this.j:Y)}; g.Q.ZX=function(d,q,T){if(T=T===void 0?null:T){var Y=d===-1?this.K.visualElement:this.B.visualElement;T={seekData:T};var e=g.Q0();e&&g.iF(I$)(void 0,e,Y,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",T,void 0)}this.j=d===this.L?this.j+q:q;this.L=d;Y=this.J.OD().getPlayerSize();this.X?this.U.stop():g.I1(this.U);this.T.start();this.element.setAttribute("data-side",d===-1?"back":"forward");g.d9(this.element,"ytp-time-seeking");this.G.style.width="110px";this.G.style.height="110px";T=Y.width*.1-15;d=== 1?this.lr?(this.G.style.right=T+"px",this.G.style.left=""):(this.G.style.right="",this.G.style.left=Y.width*.8-30+"px"):d===-1&&(this.lr?(this.G.style.right="",this.G.style.left=T+"px"):(this.G.style.right="",this.G.style.left=Y.width*.1-15+"px"));this.G.style.top=Y.height*.5+15+"px";SW1(this,this.X?this.j:q)}; g.Q.qL=function(d,q,T){T=T===void 0?null:T;g.I1(this.U);this.T.start();switch(d){case -1:d="back";break;case 1:d="forward";break;default:d=""}this.element.setAttribute("data-side",d);this.G.style.width="0";this.G.style.height="0";g.d9(this.element,"ytp-chapter-seek");this.updateValue("seekText",q);this.updateValue("seekTime","");q=this.Qv("ytp-seek-icon");if(T){a:if(T){switch(T){case "PREMIUM_STANDALONE":T=B8H();break a;case "PREMIUM_STANDALONE_CAIRO":T=K2D();break a}T=void 0}else T=null;this.updateValue("seekIcon", T);q.style.display="inline-block"}else q.style.display="none"};g.M(lr2,O8);g.Q=lr2.prototype;g.Q.DJ=function(d){this.aU||(this.aU=new Lc(this.J),g.C(this,this.aU));var q,T;if((q=this.fn)==null?0:(T=q.menu)==null?0:T.menuRenderer)this.aU.open(this.fn.menu.menuRenderer,d.target),d.preventDefault()}; g.Q.Cy=function(){return!!this.G}; g.Q.To=function(){return!!this.G}; g.Q.Lm=function(d){d.target===this.overflowButton.element?d.preventDefault():(this.zq&&this.J.gO("innertubeCommand",this.zq),this.uA(!1))}; g.Q.aC=function(){this.uA(!0);var d,q;((d=this.G)==null?0:(q=d.bannerData)==null?0:q.dismissedStatusKey)&&this.vF.push(this.G.bannerData.dismissedStatusKey);this.vj()}; g.Q.aM=function(){this.vj();xB(this)}; g.Q.DUF=function(d){var q=this,T;if(d.id!==((T=this.G)==null?void 0:T.identifier)){this.vj();T=g.E(this.rO);for(var Y=T.next();!Y.done;Y=T.next()){var e=Y.value,U=void 0,b=void 0;if((Y=(U=e)==null?void 0:(b=U.bannerData)==null?void 0:b.itemData)&&e.identifier===d.id){b=U=void 0;var J=((U=e)==null?void 0:(b=U.bannerData)==null?void 0:b.dismissedStatusKey)||"";if(this.vF.includes(J))return;this.G=e;this.banner.element.setAttribute("aria-label",Y.accessibilityLabel||"");Y.trackingParams&&(this.T=!0, this.J.setTrackingParams(this.badge.element,Y.trackingParams));this.show();this.K.show();Zt(this);this.z2.OM(!Y.stayInApp);JXj(this);o$D(this);RW(this);this.zq=g.D(Y.onTapCommand,ri);if(e=g.D(Y.menuOnTap,ri))this.fn=g.D(e,DXc);e=void 0;this.banner.update({thumbnail:(e=(Y.thumbnailSources||[])[0])==null?void 0:e.url,title:Y.productTitle,price:Y.priceReplacementText?Y.priceReplacementText:Y.price,salesOriginalPrice:qU_(this),priceDropReferencePrice:TAX(this),promotionText:dJD(this),priceA11yText:YUf(this), affiliateDisclaimer:Y.affiliateDisclaimer,vendor:eMI(this)});J=b=U=e=void 0;((e=Y)==null?0:(U=e.hiddenProductOptions)==null?0:U.showDropCountdown)&&((b=Y)==null?0:(J=b.hiddenProductOptions)==null?0:J.dropTimestampMs)&&(this.Qp=new g.f9(function(){XyD(q)},1E3),this.z2.hide(),this.countdownTimer.show(),XyD(this)); this.J.N("web_player_enable_featured_product_banner_exclusives_on_desktop")&&v$1(this)&&(this.ev=new g.f9(function(){VyD(q)},1E3),VyD(this))}}this.J.getRootNode()&&g.d9(this.J.getRootNode(),"ytp-featured-product-shown")}}; g.Q.vj=function(){this.G&&(this.G=void 0,this.kq(),this.J.getRootNode()&&g.TR(this.J.getRootNode(),"ytp-featured-product-shown"))}; g.Q.onVideoDataChange=function(d,q){var T=this;d==="dataloaded"&&xB(this);var Y,e,U;d=g.D((Y=q.getWatchNextResponse())==null?void 0:(e=Y.playerOverlays)==null?void 0:(U=e.playerOverlayRenderer)==null?void 0:U.productsInVideoOverlayRenderer,C4I);this.overflowButton.show();this.dismissButton.hide();var b=d==null?void 0:d.featuredProductsEntityKey;this.trendingOfferEntityKey=d==null?void 0:d.trendingOfferEntityKey;this.rO.length||(b87(this,b),RW(this));var J;(J=this.pC)==null||J.call(this);this.pC=g.Aw.subscribe(function(){b87(T, b);RW(T)})}; g.Q.ir=function(){xB(this);JXj(this);o$D(this);O8.prototype.ir.call(this)};g.M(NA2,g.f);NA2.prototype.onClick=function(){this.J.logClick(this.element,this.U)};g.M(RM7,g.bi);g.Q=RM7.prototype;g.Q.show=function(){g.bi.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);xJ7(this,!0)}; g.Q.hide=function(){g.bi.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);xJ7(this,!1)}; g.Q.getId=function(){return this.T}; g.Q.G3=function(){return this.itemData.length}; g.Q.onVideoDataChange=function(d,q){if(q){var T,Y,e,U;this.update({title:((T=q.w4)==null?void 0:(Y=T.title)==null?void 0:Y.content)||"",body:((e=q.w4)==null?void 0:(U=e.bodyText)==null?void 0:U.content)||""});var b;d=((b=q.w4)==null?void 0:b.trackingParams)||null;this.J.setTrackingParams(this.element,d);b=g.E(this.itemData);for(d=b.next();!d.done;d=b.next())d.value.dispose();this.itemData=[];var J;if((J=q.w4)==null?0:J.ctaButtons)for(q=g.E(q.w4.ctaButtons),J=q.next();!J.done;J=q.next())if(J=g.D(J.value, KnB))J=new NA2(this.J,J,this.G),J.LH&&(this.itemData.push(J),J.IU(this.items))}}; g.Q.ir=function(){this.hide();g.bi.prototype.ir.call(this)};g.M(H8I,g.f);g.Q=H8I.prototype;g.Q.onVideoDataChange=function(d,q){hMH(this,q);this.Fd&&MrH(this,this.Fd)}; g.Q.gT=function(d){var q=this.J.getVideoData();this.videoId!==q.videoId&&hMH(this,q);MrH(this,d.state);this.Fd=d.state}; g.Q.Ce=function(d){(this.j=d)?this.hide():this.G&&this.show()}; g.Q.Af=function(){this.U||this.St();this.showControls=!0}; g.Q.xO=function(){this.U||this.bF();this.showControls=!1}; g.Q.St=function(){var d,q=(d=this.J)==null?void 0:d.getPlayerSize();d=q.width<380;var T;q=q.height<(((T=this.J)==null?0:T.isEmbedsShortsMode())?400:280);var Y,e;(((Y=this.J)==null?0:Y.getPlayerStateObject().isCued())||((e=this.J)==null?0:g.I(e.getPlayerStateObject(),1024)))&&d&&q||!this.G||this.j||(this.fade.show(),this.J.publish("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))}; g.Q.bF=function(){this.G&&!this.j&&(this.fade.hide(),this.J.publish("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))}; g.Q.Zzk=function(){this.U=!1;this.showControls||this.bF()};var zkj={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(zkj).reduce(function(d,q){d[zkj[q]]=q;return d},{}); var ipL={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(ipL).reduce(function(d,q){d[ipL[q]]=q;return d},{}); var IVI={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(IVI).reduce(function(d,q){d[IVI[q]]=q;return d},{});var mqc,Sw_;mqc=[{option:"#fff",text:"\u767d\u8272"},{option:"#ff0",text:"\u9ec4\u8272"},{option:"#0f0",text:"\u7eff\u8272"},{option:"#0ff",text:"\u9752\u8272"},{option:"#00f",text:"\u84dd\u8272"},{option:"#f0f",text:"\u6d0b\u7ea2\u8272"},{option:"#f00",text:"\u7ea2\u8272"},{option:"#080808",text:"\u9ed1\u8272"}];Sw_=[{option:0,text:yr(0)},{option:.25,text:yr(.25)},{option:.5,text:yr(.5)},{option:.75,text:yr(.75)},{option:1,text:yr(1)}]; g.Ml=[{option:"fontFamily",text:"\u5b57\u4f53\u7cfb\u5217",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:"\u5b57\u4f53\u989c\u8272",options:mqc},{option:"fontSizeIncrement",text:"\u5b57\u53f7",options:[{option:-2,text:yr(.5)},{option:-1,text:yr(.75)},{option:0,text:yr(1)},{option:1, text:yr(1.5)},{option:2,text:yr(2)},{option:3,text:yr(3)},{option:4,text:yr(4)}]},{option:"background",text:"\u80cc\u666f\u989c\u8272",options:mqc},{option:"backgroundOpacity",text:"\u80cc\u666f\u4e0d\u900f\u660e\u5ea6",options:Sw_},{option:"windowColor",text:"\u7a97\u53e3\u989c\u8272",options:mqc},{option:"windowOpacity",text:"\u7a97\u53e3\u4e0d\u900f\u660e\u5ea6",options:Sw_},{option:"charEdgeStyle",text:"\u5b57\u7b26\u8fb9\u7f18\u6837\u5f0f",options:[{option:0,text:"\u65e0"},{option:4,text:"\u9634\u5f71"}, {option:1,text:"\u51f8\u8d77"},{option:2,text:"\u4e0b\u6c89"},{option:3,text:"\u8fb9\u6846"}]},{option:"textOpacity",text:"\u5b57\u4f53\u4e0d\u900f\u660e\u5ea6",options:[{option:.25,text:yr(.25)},{option:.5,text:yr(.5)},{option:.75,text:yr(.75)},{option:1,text:yr(1)}]}];var lVI=[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.M(pyN,g.aI);g.Q=pyN.prototype; g.Q.gN=function(d){d.repeat||(this.j.xD=!1);var q=!1,T=d.keyCode,Y=Qi(d),e=!d.altKey&&!d.ctrlKey&&!d.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||lVI.includes(T)),U=!1,b=!1,J=this.api.C();d.defaultPrevented?(e=!1,b=!0):J.V5&&!this.api.isMutedByEmbedsMutedAutoplay()&&(e=!1);if(T===9)q=!0;else{if(Y)switch(T){case 32:case 13:if(Y.tagName==="BUTTON"||Y.tagName==="A"||Y.tagName==="INPUT")q=!0,e=!1;else if(e){var F=Y.getAttribute("role");!F||F!=="option"&&F!=="button"&&F.indexOf("menuitem")!==0|| (q=!0,Y.click(),U=!0)}break;case 37:case 39:case 36:case 35:q=Y.getAttribute("role")==="slider";break;case 38:case 40:F=Y.getAttribute("role"),Y=T===38?Y.previousSibling:Y.nextSibling,F==="slider"?q=!0:e&&(F==="option"?(Y&&Y.getAttribute("role")==="option"&&Y.focus(),U=q=!0):F&&F.indexOf("menuitem")===0&&(Y&&Y.hasAttribute("role")&&Y.getAttribute("role").indexOf("menuitem")===0&&Y.focus(),U=q=!0))}if(e&&!U)switch(T){case 38:U=Math.min(this.api.getVolume()+5,100);bg(this.Jm,U,!1);this.api.setVolume(U); b=U=!0;break;case 40:U=Math.max(this.api.getVolume()-5,0);bg(this.Jm,U,!0);this.api.setVolume(U);b=U=!0;break;case 36:this.api.Oc()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),b=U=!0);break;case 35:this.api.Oc()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),b=U=!0)}}q&&H9(this,!0);(q||b)&&this.QH.oZ();(U||e&&this.handleGlobalKeyDown(T,d.shiftKey,d.ctrlKey,d.altKey,d.metaKey,d.key,d.code,d.repeat))&&d.preventDefault();J.B&&(d={keyCode:d.keyCode, altKey:d.altKey,ctrlKey:d.ctrlKey,metaKey:d.metaKey,shiftKey:d.shiftKey,handled:d.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.uv("onKeyPress",d))}; g.Q.WL=function(d){var q=d.keyCode;(!this.api.N("web_player_spacebar_control_bugfix")||this.api.N("web_player_spacebar_control_bugfix")&&!this.j.LO)&&this.handleGlobalKeyUp(q,d.shiftKey,d.ctrlKey,d.altKey,d.metaKey,d.key,d.code)&&d.preventDefault()}; g.Q.handleGlobalKeyUp=function(d,q,T,Y,e,U,b){this.api.publish("keyboardserviceglobalkeyup",{keyCode:d,shiftKey:q,ctrlKey:T,altKey:Y,metaKey:e,key:U,code:b});q=!1;if(this.j.xD)return q;(U=g.lH(this.api.M5()))&&(U=U.BW)&&U.PF&&(U.xn(d),q=!0);switch(d){case 9:H9(this,!0);q=!0;break;case 32:if(this.api.N("web_speedmaster_spacebar_control")&&(!this.api.N("web_player_spacebar_control_bugfix")&&!this.j.LO||this.api.N("web_player_spacebar_control_bugfix"))&&!this.api.C().V5){var J,F;d=(J=this.progressBar)== null?void 0:(F=J.U)==null?void 0:F.isEnabled;q=this.cW(d)}break;case 39:(Ro?Y:T)&&!e&&this.api.Oc()&&this.api.N("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),J=(J=this.api.getVideoData())?J.lS:[],F=E01(J,this.api.getCurrentTime()*1E3),F!==-1&&this.G!=null&&(this.G.qL(1,J[F].title),this.api.seekTo(J[F].startTime/1E3,void 0,void 0,void 0,52),q=!0))}return q}; g.Q.handleGlobalKeyDown=function(d,q,T,Y,e,U,b,J){J||(this.j.xD=!1);var F=!1,N=this.api.C();if(N.V5&&!this.api.isMutedByEmbedsMutedAutoplay())return F;var R=g.lH(this.api.M5());if(R&&(R=R.BW)&&R.PF)switch(d){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:F=R.Dj(d)}N.X||F||(F=U||String.fromCharCode(d).toLowerCase(),this.U+=F,"awesome".indexOf(this.U)===0||this.api.N("web_player_rtr_ctrls")&&"bday".indexOf(this.U)===0?(F=!0,4===this.U.length&&this.U==="bday"&&this.api.N("web_player_rtr_ctrls")&& (Ahf(this.S),this.QH.oZ()),7===this.U.length&&this.U==="awesome"&&t$7(this.api.getRootNode(),"ytp-color-party")):(this.U=F,F="awesome".indexOf(this.U)===0||"bday".indexOf(this.U)===0));if(!F&&(!this.api.isMutedByEmbedsMutedAutoplay()||lVI.includes(d))){var x=this.api.getVideoData(),y,h;R=(y=this.progressBar)==null?void 0:(h=y.U)==null?void 0:h.isEnabled;y=x?x.lS:[];h=Ro?Y:T;switch(d){case 80:q&&!N.RU&&(Ua(this.Jm,GyN(),"\u4e0a\u4e00\u4e2a"),this.api.previousVideo(),F=!0);break;case 78:q&&!N.RU&&(Ua(this.Jm, Q9(),"\u4e0b\u4e00\u4e2a"),this.api.nextVideo(),F=!0);break;case 74:this.api.Oc()&&(this.api.startSeekCsiAction(),this.G?this.api.N("enable_key_press_seek_logging")?(F=Qr(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.G.ZX(-1,10,F)):this.G.ZX(-1,10):Ua(this.Jm,{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"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),F=!0);break;case 76:this.api.Oc()&&(this.api.startSeekCsiAction(),this.G?this.api.N("enable_key_press_seek_logging")?(F=Qr(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.G.ZX(1,10,F)):this.G.ZX(1,10):Ua(this.Jm,{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"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),F=!0);break;case 37:this.api.Oc()&&(this.api.startSeekCsiAction(),h?(h=jSg(y,this.api.getCurrentTime()*1E3),h!==-1&&this.G!=null&&(this.G.qL(-1,y[h].title),this.api.seekTo(y[h].startTime/1E3,void 0,void 0,void 0,53),F=!0)):(this.G?this.api.N("enable_key_press_seek_logging")?(F=Qr(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.G.ZX(-1,5,F)):this.G.ZX(-1,5):Ua(this.Jm,{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},V:[{Y:"path",Kn:!0,D:"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),F=!0));break;case 39:this.api.Oc()&&(this.api.startSeekCsiAction(),h?this.api.N("web_enable_keyboard_shortcut_for_timely_actions")||(h=E01(y,this.api.getCurrentTime()*1E3),h!==-1&&this.G!=null&&(this.G.qL(1,y[h].title),this.api.seekTo(y[h].startTime/1E3,void 0,void 0,void 0,52),F=!0)):(this.G!=null?this.api.N("enable_key_press_seek_logging")?(F=Qr(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.G.ZX(1,5,F)):this.G.ZX(1, 5):Ua(this.Jm,{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"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),F=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),bg(this.Jm,this.api.getVolume(),!1)):(this.api.mute(),bg(this.Jm,0,!0));F=!0;break;case 32:F=this.api.N("web_speedmaster_spacebar_control")?!this.api.C().RU:this.cW(R);break;case 75:F=this.cW(R);break;case 190:q?N.enableSpeedOptions&&O8n(this)&&(F=this.api.getPlaybackRate(),this.api.setPlaybackRate(F+.25,!0),cT2(this.Jm,!1),F=!0):this.api.Oc()&&(this.step(1),F=!0);break;case 188:q? N.enableSpeedOptions&&O8n(this)&&(F=this.api.getPlaybackRate(),this.api.setPlaybackRate(F-.25,!0),cT2(this.Jm,!0),F=!0):this.api.Oc()&&(this.step(-1),F=!0);break;case 70:I4j(this.api)&&(this.api.toggleFullscreen().catch(function(){}),F=!0); break;case 27:R?(this.progressBar.RI(),F=!0):this.X()&&(F=!0)}if(N.controlsType!=="3")switch(d){case 67:g.La(this.api.M5())&&(N=this.api.getOption("captions","track"),this.api.toggleSubtitles(),E$n(this.Jm,!N||N&&!N.displayName),F=!0);break;case 79:c9(this,"textOpacity");break;case 87:c9(this,"windowOpacity");break;case 187:case 61:c9(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:c9(this,"fontSizeIncrement",!0,!0)}var H;q||T||Y||(d>=48&&d<=57?H=d-48:d>=96&&d<=105&&(H=d-96));H!=null&&this.api.Oc()&& !this.api.N("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),N=this.api.getProgressState(),this.api.seekTo(H/10*(N.seekableEnd-N.seekableStart)+N.seekableStart,void 0,void 0,void 0,81),F=!0);F&&this.QH.oZ()}this.j.aB=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:d,shiftKey:q,ctrlKey:T,altKey:Y,metaKey:e,key:U,code:b,repeat:J},this.j);this.j.aB&&(F=!0,this.QH.oZ());return F}; g.Q.step=function(d){this.api.Oc();if(this.api.getPlayerStateObject().isPaused()){var q=this.api.getVideoData().U;q&&(q=q.video)&&this.api.seekBy(d/(q.fps||30),void 0,void 0,d>0?77:78)}}; g.Q.cW=function(d){if(!this.api.C().RU){var q;var T,Y=(q=this.api.getVideoData())==null?void 0:(T=q.getPlayerResponse())==null?void 0:T.playabilityStatus;if(Y){var e;q=((e=g.D(Y.miniplayer,SDq))==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else q=!1;q&&this.api.gO("onExpandMiniplayer");d?this.progressBar.dG():(d=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.Jm.fY(d),d?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.Q.ir=function(){g.I1(this.T);g.aI.prototype.ir.call(this)};g.M(Ea,g.f);Ea.prototype.S5=function(){var d=this.J.C(),q=d.j||this.J.N("web_player_hide_overflow_button_if_empty_menu")&&this.ag.isEmpty();d=g.dn(d)&&g.m7(this.J)&&g.I(this.J.getPlayerStateObject(),128);var T=this.J.getPlayerSize();this.visible=this.J.Rl()&&!d&&T.width>=240&&!this.J.getVideoData().kc&&!q&&!this.J.isEmbedsShortsMode();g.ep(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.U$();this.J.logVisibility(this.element,this.visible&&this.S)}; Ea.prototype.N5=function(d){g.f.prototype.N5.call(this,d);this.J.logVisibility(this.element,this.visible&&d)}; Ea.prototype.ir=function(){g.f.prototype.ir.call(this);g.TR(this.element,"ytp-overflow-button-visible")};g.M(n0_,g.bi);g.Q=n0_.prototype;g.Q.WB=function(d){d=Qi(d);g.HB(this.element,d)&&(g.HB(this.G,d)||g.HB(this.closeButton,d)||JM(this))}; g.Q.bF=function(){g.bi.prototype.bF.call(this);this.J.Jo(this.element)}; g.Q.show=function(){this.PF&&this.J.publish("OVERFLOW_PANEL_OPENED");g.bi.prototype.show.call(this);this.element.setAttribute("aria-modal","true");trQ(this,!0)}; g.Q.hide=function(){g.bi.prototype.hide.call(this);this.element.removeAttribute("aria-modal");trQ(this,!1)}; g.Q.onFullscreenToggled=function(d){!d&&this.vR()&&JM(this)}; g.Q.isEmpty=function(){return this.actionButtons.length===0}; g.Q.focus=function(){for(var d=g.E(this.actionButtons),q=d.next();!q.done;q=d.next())if(q=q.value,q.PF){q.focus();break}};g.M(BAD,g.f);BAD.prototype.onClick=function(d){g.AM(d,this.api)&&this.api.playVideoAt(this.index)};g.M(KyI,g.bi);g.Q=KyI.prototype;g.Q.show=function(){g.bi.prototype.show.call(this);this.G.W(this.api,"videodatachange",this.vU);this.G.W(this.api,"onPlaylistUpdate",this.vU);this.vU()}; g.Q.hide=function(){g.bi.prototype.hide.call(this);g.jX(this.G);this.updatePlaylist(null)}; g.Q.vU=function(){this.updatePlaylist(this.api.getPlaylist());this.api.C().j&&(this.Qv("ytp-playlist-menu-title-name").removeAttribute("href"),this.j&&(this.t1(this.j),this.j=null))}; g.Q.n0=function(){var d=this.playlist,q=d.author,T=q?"\u6765\u81ea$AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",Y={CURRENT_POSITION:String(d.index+1),PLAYLIST_LENGTH:String(d.length)};q&&(Y.AUTHOR=q);this.update({title:d.title,subtitle:g.bO(T,Y),playlisturl:this.api.getVideoUrl(!0)});q=d.U;if(q===this.T)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[d.index];else{T=g.E(this.playlistData);for(Y=T.next();!Y.done;Y= T.next())Y.value.dispose();T=d.length;this.playlistData=[];for(Y=0;Y=this.U&&!d.j&&!q.isAd()&&!this.api.isEmbedsShortsMode()}else d=!1;this.visible=d;this.OM(this.visible);g.ep(this.element,"ytp-search-button-visible",this.visible);g.ep(this.element,"ytp-show-search-title",!this.api.Rl());this.api.logVisibility(this.element,this.visible&&this.S)}; pq.prototype.N5=function(d){g.f.prototype.N5.call(this,d);this.api.logVisibility(this.element,this.visible&&d)};g.M(ZI,g.f); ZI.prototype.trigger=function(d,q,T,Y){this.show();if(this.U&&d!==this.U){var e=1;this.j&&(e=i8D(this));uu7(this,e,!1);zM2(this)}this.U=d;this.T=this.U===-1?this.B:this.K;d="";q?(this.L+=q,d=(this.U===-1?"\u2212":"+")+" "+this.L):this.L=0;this.updateValue(this.U===-1?"durationBack":"durationForward",d);if(this.G==="hidden"||this.G==="fading-out")q=0,this.G==="fading-out"&&(q=i8D(this),fFH(this)),DJ6(this,q),this.G!=="fading-out"&&wy1(this,this.T.querySelector(".ytp-seek-overlay-arrow-persistent")),this.G= "fading-in";else if(this.G==="fading-in"||this.G==="lingering")q=this.T.querySelector(".ytp-seek-overlay-duration"),d=g.Yv(this.J.C().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,q.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("+d+")"},{offset:1,transform:"scale(1)"}],{duration:184}),fFH(this),this.G==="lingering"&&(this.X.stop(),this.X.start());T&&IF6(this,T,Y)}; ZI.prototype.p5=function(d,q,T,Y){this.trigger(d,Y)}; ZI.prototype.ZX=function(d,q,T){this.trigger(d,q);T&&(d=d===-1?this.K.visualElement:this.B.visualElement,T={seekData:T},(q=g.Q0())&&g.iF(I$)(void 0,q,d,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",T,void 0))}; ZI.prototype.qL=function(d,q,T){this.trigger(d,void 0,q,T)};g.M(Oa,g.f);Oa.prototype.onClick=function(){var d=this,q=this.api.C(),T=this.api.getVideoData(this.api.getPresentingPlayerType()),Y=this.api.getPlaylistId();q=this.api.N("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):q.getVideoUrl(T.videoId,Y,void 0,!0);if(navigator.share)try{var e=navigator.share({title:T.title,url:q});e instanceof Promise&&e.catch(function(U){SUQ(d,U)})}catch(U){U instanceof Error&&SUQ(this,U)}else this.G.LW(),JM(this.U,this.element,!1); this.api.logClick(this.element)}; Oa.prototype.S5=function(){var d=this.api.C(),q=this.api.isEmbedsShortsMode();g.ep(this.element,"ytp-show-share-title",g.dn(d)&&!q);this.G.rU()&&q?(d=(this.api.OD().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Dv(this.element,"right",d+"px")):q&&g.Dv(this.element,"right","0px");this.updateValue("icon",{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"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=mJ7(this);g.ep(this.element,"ytp-share-button-visible",this.visible);this.OM(this.visible);this.tooltip.U$();this.api.logVisibility(this.element,mJ7(this)&&this.S)}; Oa.prototype.N5=function(d){g.f.prototype.N5.call(this,d);this.api.logVisibility(this.element,this.visible&&d)}; Oa.prototype.ir=function(){g.f.prototype.ir.call(this);g.TR(this.element,"ytp-share-button-visible")};g.M(v0X,g.bi);g.Q=v0X.prototype;g.Q.cB=function(d){d=Qi(d);g.HB(this.X,d)||g.HB(this.closeButton,d)||JM(this)}; g.Q.bF=function(){g.bi.prototype.bF.call(this);this.tooltip.Jo(this.element);this.api.logVisibility(this.G,!1);for(var d=g.E(this.j),q=d.next();!q.done;q=d.next())q=q.value,this.api.hasVe(q.element)&&this.api.logVisibility(q.element,!1)}; g.Q.show=function(){var d=this.PF;g.bi.prototype.show.call(this);this.S5();d||this.api.gO("onSharePanelOpened")}; g.Q.Zo=function(){this.PF&&this.S5()}; g.Q.S5=function(){var d=this;g.d9(this.element,"ytp-share-panel-loading");g.TR(this.element,"ytp-share-panel-fail");var q=this.api.getVideoData(),T=this.api.getPlaylistId()&&this.T.checked;q.getSharePanelCommand&&KU(this.api.S0(),q.getSharePanelCommand,{includeListId:T}).then(function(Y){d.JF()||(g.TR(d.element,"ytp-share-panel-loading"),dpf(d,Y))}); q=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",q);this.updateValue("linkText",q);this.updateValue("shareLinkWithUrl",g.bO("\u5206\u4eab\u94fe\u63a5 $URL",{URL:q}));nR(this.G);this.api.logVisibility(this.G,!0)}; g.Q.onFullscreenToggled=function(d){!d&&this.vR()&&JM(this)}; g.Q.focus=function(){this.G.focus()}; g.Q.ir=function(){g.bi.prototype.ir.call(this);o0Y(this)};g.M(YQf,O8);g.Q=YQf.prototype;g.Q.ir=function(){JN_(this);O8.prototype.ir.call(this)}; g.Q.Lm=function(d){d.target!==this.dismissButton.element&&(this.uA(!1),this.J.gO("innertubeCommand",this.onClickCommand))}; g.Q.aC=function(){this.AF=!0;this.uA(!0);this.kq()}; g.Q.y1w=function(d){this.L=d;this.kq()}; g.Q.onVideoDataChange=function(d,q){if(d=!!q.videoId&&this.videoId!==q.videoId)this.videoId=q.videoId,this.AF=!1,this.yv=!0,this.B=this.UD=!1,JN_(this),XS1(this,!1),this.U=this.G=!1,rr(this),eeQ(this);if(d||!q.videoId)this.lr=this.T=!1;var T,Y;if(q==null?0:(T=q.getPlayerResponse())==null?0:(Y=T.videoDetails)==null?0:Y.isLiveContent)this.nz(!1);else{var e,U,b;q=g.D((e=q.getWatchNextResponse())==null?void 0:(U=e.playerOverlays)==null?void 0:(b=U.playerOverlayRenderer)==null?void 0:b.productsInVideoOverlayRenderer, C4I);this.L=this.enabled=!1;if(q){if(e=q==null?void 0:q.featuredProductsEntityKey){U=g.Aw.getState().entities;var J;if((J=VA(U,"featuredProductsEntity",e))==null?0:J.productsData){this.nz(!1);return}}if(!q.text||!q.onClickCommand||!q.timing){this.nz(!1);return}this.enabled=!0;if(!this.T){var F;J=(F=q.badgeInteractionLogging)==null?void 0:F.trackingParams;(this.T=!!J)&&this.J.setTrackingParams(this.badge.element,J||null)}if(!this.lr){var N;if(this.lr=!((N=q.dismissButton)==null||!N.trackingParams)){var R; this.J.setTrackingParams(this.dismissButton.element,((R=q.dismissButton)==null?void 0:R.trackingParams)||null)}}q.isContentForward&&(F=q.productsData,XS1(this,!0),eeQ(this),F=bf_(this,F),N=[],F.length>0&&N.push(F[0]),F.length>1&&(R=new g.f({Y:"div",D:"ytp-suggested-action-more-products-icon"}),g.C(this,R),N.push(R),N.push.apply(N,g.RQ(F.slice(1)))),this.X=new g.f({Y:"div",V:N,D:"ytp-suggested-action-content-forward-container"}),g.C(this,this.X),this.dO.element.append(this.X.element));this.text=g.gx(q.text); var x;if(F=(x=q.dismissButton)==null?void 0:x.a11yLabel)this.xx=g.gx(F);this.onClickCommand=q.onClickCommand;this.timing=q.timing;this.ES()}lI7(this);Zt(this);this.kq()}}; g.Q.Cy=function(){return!this.L&&this.enabled&&!this.AF&&!this.J.Rl()&&!this.lF&&(this.B||this.yv)}; g.Q.qH=function(d){O8.prototype.qH.call(this,d);if(this.G||this.U)this.timing&&nq(this.timing.preview)&&(this.G=!1,rr(this),this.U=!1,rr(this),this.J.hm("shopping_overlay_preview_collapsed"),this.J.hm("shopping_overlay_preview_expanded"),d=tg(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),nq(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.hm("shopping_overlay_expanded"),d.end=this.timing.expanded.endSec*1E3),this.J.ES([d])), this.UD=!0,Zt(this);rr(this)}; g.Q.nz=function(d){(this.B=d)?(pc(this),Zt(this,!1)):(JN_(this),this.RU.start());this.kq()}; g.Q.ES=function(d){var q=this.timing;d=(d===void 0?0:d)+this.J.getCurrentTime();var T=[],Y=q.visible,e=q.preview;q=q.expanded;nq(Y)&&(qQf(Y,d),T.push(tg(Y.startSec,Y.endSec,"shopping_overlay_visible")));nq(e)&&(qQf(e,d),Y=e.startSec+1,T.push(tg(e.startSec,Y,"shopping_overlay_preview_collapsed")),T.push(tg(Y,e.endSec,"shopping_overlay_preview_expanded")));nq(q)&&(qQf(q,d),T.push(tg(q.startSec,q.endSec,"shopping_overlay_expanded")));this.J.ES(T)}; g.Q.kq=function(){O8.prototype.kq.call(this);this.J.getRootNode()&&g.ep(this.J.getRootNode(),"ytp-shopping-pill-shown",this.Cy())};g.M(gdN,g.f); gdN.prototype.S5=function(){var d=this.api.C();this.OM(g.dn(d)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.PF);var q=this.api.getVideoData(),T=!1;this.api.getPresentingPlayerType()===2?T=!!q.videoId&&!!q.isListed&&!!q.author&&!!q.wO&&!!q.profilePicture:g.dn(d)&&(T=!!q.videoId&&!!q.wO&&!!q.profilePicture&&!q.kc&&!d.j&&!(d.L&&this.api.getPlayerSize().width<200));var Y=q.profilePicture;d=g.dn(d)?q.expandedTitle:q.author;Y=Y===void 0? "":Y;d=d===void 0?"":d;T?(this.U!==Y&&(this.G.style.backgroundImage="url("+Y+")",this.U=Y),this.updateValue("channelLogoLabel",g.bO("$CHANNEL_NAME\u7684\u7167\u7247",{CHANNEL_NAME:d})),g.d9(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.TR(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.G,T&&this.S);this.api.logVisibility(this.channelName,T&&this.S);this.subscribeButton&&(this.subscribeButton.channelId=q.Gp);this.updateValue("expandedTitle",q.expandedTitle)};g.M(B9,g.bi);B9.prototype.show=function(){g.bi.prototype.show.call(this);this.G.start()}; B9.prototype.hide=function(){g.bi.prototype.hide.call(this);this.G.stop()}; B9.prototype.qF=function(d,q){d==="dataloaded"&&((this.Pf=q.Pf,this.Je=q.Je,isNaN(this.Pf)||isNaN(this.Je))?this.j&&(this.J.hm("intro"),this.J.removeEventListener(g.Sh("intro"),this.L),this.J.removeEventListener(g.lG("intro"),this.X),this.J.removeEventListener("onShowControls",this.T),this.hide(),this.j=!1):(this.J.addEventListener(g.Sh("intro"),this.L),this.J.addEventListener(g.lG("intro"),this.X),this.J.addEventListener("onShowControls",this.T),d=new g.Ij(this.Pf,this.Je,{priority:9,namespace:"intro"}), this.J.ES([d]),this.j=!0))};g.M(Kq,g.f);Kq.prototype.onClick=function(){this.J.Yp()}; Kq.prototype.S5=function(){var d=!0;g.dn(this.J.C())&&(d=d&&this.J.OD().getPlayerSize().width>=480);this.OM(d);d=this.updateValue;var q=this.J.N("delhi_modern_web_player_icons"),T=q?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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"}}]}:{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!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"}}]};q=q?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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"}}]}:{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"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"}}]};d.call(this,"icon",this.J.pA()?T:q)};g.M(N$6,g.f);N$6.prototype.ir=function(){this.G=null;g.f.prototype.ir.call(this)};g.M(GZ,g.f);GZ.prototype.onClick=function(){this.J.gO("innertubeCommand",this.U)}; GZ.prototype.K=function(){if(this.J.N("delhi_modern_web_player")){var d=this.J.getPlayerSize();d.width&&(this.element.style.maxWidth=d.width*.25+"px")}}; GZ.prototype.UD=function(d){d!==this.L&&(this.update({chapterTitle:d,ariaLabel:d}),this.L=d);d?this.show():this.hide()}; GZ.prototype.lr=function(){this.G.disabled=this.U==null;g.ep(this.G,"ytp-chapter-container-disabled",this.G.disabled);this.Yc()};g.M(Lq,GZ);Lq.prototype.onClickCommand=function(d){g.D(d,af)&&this.Yc()}; Lq.prototype.updateVideoData=function(d,q){var T,Y,e;d=g.D((T=q.getWatchNextResponse())==null?void 0:(Y=T.playerOverlays)==null?void 0:(e=Y.playerOverlayRenderer)==null?void 0:e.decoratedPlayerBarRenderer,on);T=g.D(d==null?void 0:d.playerBarActionButton,g.q6);if(this.J.N("web_player_updated_entrypoint")){this.B=D4(T==null?void 0:T.text);var U;Y=(U=T==null?void 0:T.tooltip)!=null?U:"\u67e5\u770b\u7ae0\u8282";this.X.setAttribute("title",Y)}this.U=T==null?void 0:T.command;GZ.prototype.lr.call(this)}; Lq.prototype.Yc=function(){var d=this.B,q=this.T.G,T,Y=((T=this.J.getLoopRange())==null?void 0:T.type)==="clips";if(q.length>1&&!Y){d=this.J.getProgressState().current*1E3;T=hg(q,d);d=q[T].title||"\u7ae0\u8282";if(T!==this.currentIndex||this.j)this.J.gO("innertubeCommand",q[T].onActiveCommand),this.currentIndex=T;this.j=!1}else this.j=!0;GZ.prototype.UD.call(this,d)};g.M(kB,g.Ji);kB.prototype.U=function(){var d;(d=this.element.parentElement)==null||d.classList.contains("ytp-right-controls-left");(this.G=!this.G)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; kB.prototype.isExpanded=function(){return this.G};g.M(P9,g.f);P9.prototype.j=function(d){g.I(d.state,32)?xp6(this,this.api.TN()):this.PF&&(g.I(d.state,16)||g.I(d.state,1))||this.fade.hide()}; P9.prototype.S$=function(){var d=this.api.getPlayerStateObject();(g.I(d,32)||g.I(d,16))&&yND(this)}; P9.prototype.T=function(){this.frameIndex=NaN;yND(this)}; P9.prototype.hide=function(){this.G&&xp6(this,null);g.f.prototype.hide.call(this)};g.M(heQ,g.f);g.Q=heQ.prototype;g.Q.onClick=function(){var d=this;if(this.J.C().wO||this.J.C().L){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(q){d.n1(q)})}catch(q){this.n1(q)}}else JM(this.message,this.element,!0)}; g.Q.n1=function(d){String(d).includes("fullscreen error")?g.OL(d):g.Zz(d);this.j4()}; g.Q.j4=function(){this.disable();this.message.St(this.element,!0)}; g.Q.xX=function(){FH()===this.J.getRootNode()?this.j.start():(this.j.stop(),this.message&&this.message.hide())}; g.Q.tG=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var d=window.screen.width*.9,q=window.screen.height*.9,T=Math.max(window.outerWidth,window.innerWidth),Y=Math.max(window.outerHeight,window.innerHeight);if(T>Y!==d>q){var e=T;T=Y;Y=e}d>T&&q>Y&&this.j4()}}; g.Q.disable=function(){var d=this;if(!this.message){var q=(sd(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"\u65e0\u6cd5\u5168\u5c4f\u64ad\u653e\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK":"\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u5168\u5c4f\u6a21\u5f0f\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.bi(this.J,{Y:"div",hF:["ytp-popup","ytp-generic-popup"],Z:{role:"alert", tabindex:"0"},V:[q[0],{Y:"a",Z:{href:"https://support.google.com/youtube/answer/6276924",target:this.J.C().K},j5:q[2]},q[4]]},100,!0);this.message.hide();g.C(this,this.message);this.message.subscribe("show",function(T){d.U.V8(d.message,T)}); g.o6(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.G)();this.G=null}}; g.Q.S5=function(){var d=I4j(this.J),q=this.J.C().L&&this.J.getPlayerSize().width<250;this.OM(d&&!q);var T;((T=this.J.C())==null?0:T.N("embeds_use_parent_visibility_in_ve_logging"))?this.J.logVisibility(this.element,this.PF&&this.S):this.J.logVisibility(this.element,this.PF)}; g.Q.Cp=function(d){if(d){var q=g.wm(this.J,"\u9000\u51fa\u5168\u5c4f","f");this.update({"data-title-no-tooltip":"\u9000\u51fa\u5168\u5c4f"});document.activeElement===this.element&&this.J.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(T){g.OL(T)})}else q=g.wm(this.J,"\u5168\u5c4f","f"),this.update({"data-title-no-tooltip":"\u5168\u5c4f"}); d=Hf_(this,d);q=this.message?null:q;this.J.C().N("player_tooltip_data_title_killswitch")?this.update({title:q,icon:d}):this.update({"tooltip-title":q,"aria-label":q,icon:d});this.U.nH().U$()}; g.Q.ir=function(){this.message||((0,this.G)(),this.G=null);g.f.prototype.ir.call(this)}; g.Q.N5=function(d){g.f.prototype.N5.call(this,d);var q;((q=this.J.C())==null?0:q.N("embeds_use_parent_visibility_in_ve_logging"))&&this.J.logVisibility(this.element,this.PF&&d)};g.M(W9,g.f);W9.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.G,!0);var d=this.G>0?1:-1,q=Math.abs(this.G),T=this.J.u1().HZ;T&&T.ZX(d,q);this.U.isActive()?this.j=!0:(d=["ytp-jump-spin"],this.G<0&&d.push("backwards"),this.element.classList.add.apply(this.element.classList,g.RQ(d)),g.zh(this.U))};g.M(Cq,GZ);Cq.prototype.onClickCommand=function(d){g.D(d,P47)&&this.Yc()}; Cq.prototype.updateVideoData=function(){var d,q;this.U=(d=MQ6(this))==null?void 0:(q=d.onTap)==null?void 0:q.innertubeCommand;GZ.prototype.lr.call(this)}; Cq.prototype.Yc=function(){var d="",q=this.T.L,T,Y=(T=MQ6(this))==null?void 0:T.headerTitle;T=Y?g.gx(Y):"";var e;Y=((e=this.J.getLoopRange())==null?void 0:e.type)==="clips";q.length>1&&!Y&&(d=this.J.getProgressState().current*1E3,e=cXQ(q,d),d=e!=null?q[e].title:T,e!=null&&e!==this.currentIndex&&(this.J.gO("innertubeCommand",q[e].onActiveCommand),this.currentIndex=e));GZ.prototype.UD.call(this,d)};g.M(ug,g.f);ug.prototype.onClick=function(){this.J.gO("onCollapseMiniplayer");this.J.logClick(this.element)}; ug.prototype.S5=function(){this.visible=!this.J.isFullscreen();this.OM(this.visible);this.J.logVisibility(this.element,this.visible&&this.S)}; ug.prototype.N5=function(d){g.f.prototype.N5.call(this,d);this.J.logVisibility(this.element,this.visible&&d)};g.M(DI,g.f);DI.prototype.init=function(){this.updateValue("minvalue",this.T);this.updateValue("maxvalue",this.X);this.updateValue("stepvalue",this.B);this.updateValue("slidervalue",this.G);EdY(this,this.G)}; DI.prototype.j=function(){wr(this,Number(this.U.value));this.U.focus()}; DI.prototype.L=function(d){if(!d.defaultPrevented){switch(d.code){case "ArrowDown":d=-this.B;break;case "ArrowUp":d=this.B;break;default:return}wr(this,Math.min(this.X,Math.max(Number((this.G+d).toFixed(2)),this.T)))}};g.M(fq,DI);fq.prototype.onVolumeChange=function(d){if(this.K)this.K=!1;else{var q=d.volume;q===0||d.muted?wr(this,0):wr(this,q)}}; fq.prototype.j=function(){DI.prototype.j.call(this);this.lr(this.G)}; fq.prototype.UD=function(d){var q=-d.deltaY;q=d.deltaMode===WheelEvent.DOM_DELTA_LINE||d.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.Cn(this.G+q,0,100):g.Cn(this.G+g.Cn(q/10,-10,10),0,100);q===0?wr(this,0):wr(this,q);this.lr(q);d.preventDefault();d.stopPropagation()}; fq.prototype.yv=function(d,q){this.K=!0;d===0||q?this.J.mute():(this.J.isMuted()&&this.J.unMute(),this.J.setVolume(d))};g.M(jKX,g.f);g.M(ig,g.f);g.Q=ig.prototype;g.Q.X8=function(){if(!this.J.qO()){this.updateValue("dataTooltipOffsetY",-120);var d;(d=this.G)!=null&&zZ(d,!0);var q;(q=this.G)!=null&&q.G.stop()}}; g.Q.oY=function(){var d;(d=this.G)!=null&&d.G.start()}; g.Q.mQ=function(d){this.visible=d.width>=300||this.aU;this.OM(this.visible);this.J.logVisibility(this.element,this.visible&&this.S)}; g.Q.hT=function(){this.J.C().dO?this.J.isMuted()?this.J.unMute():this.J.mute():JM(this.message,this.element,!0);this.J.logClick(this.element)}; g.Q.rmg=function(d){if(this.J.C().dO&&this.G)if(d.target===this.j){var q;if(!this.J.qO()||((q=this.G)==null?0:q.isVisible))this.hT();else{var T;(T=this.G)!=null&&zZ(T,!0)}}else{var Y;(Y=this.G)!=null&&zZ(Y,!0)}else this.hT()}; g.Q.onVolumeChange=function(d){this.setVolume(d.volume,d.muted)}; g.Q.setVolume=function(d,q){var T=this,Y=q?0:d/100;d=Y===0?1:d>50?1:0;if(this.K!==d){var e=this.B;isNaN(e)?OfN(this,d):GjX(this.dO,function(b){OfN(T,e+(T.K-e)*b)},250); this.K=d}Y=Y===0?1:0;if(this.L!==Y){var U=this.yv;isNaN(U)?ndn(this,Y):GjX(this.rO,function(b){ndn(T,U+(T.L-U)*b)},250); this.L=Y}ANQ(this,q)}; g.Q.N5=function(d){g.f.prototype.N5.call(this,d);this.J.logVisibility(this.element,this.visible&&d)}; var pSj=["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"],Zf6=["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.M(g.IW,g.f);g.Q=g.IW.prototype;g.Q.onStateChange=function(d){this.XC(d.state);var q;((q=this.J.C())==null?0:q.N("embeds_use_parent_visibility_in_ve_logging"))&&this.J.logVisibility(this.element,this.PF&&this.S)}; g.Q.XC=function(d){var q=g.vr(this.J.getVideoData()),T=!1;d.isOrWillBePlaying()?d=q?4:2:g.I(d,2)?(d=3,T=q):d=1;this.element.disabled=T;if(this.G!==d){q=null;switch(d){case 2:q=g.wm(this.J,"\u6682\u505c","k");this.update({"data-title-no-tooltip":"\u6682\u505c"});break;case 3:q="\u91cd\u653e";this.update({"data-title-no-tooltip":"\u91cd\u653e"});break;case 1:q=g.wm(this.J,"\u64ad\u653e","k");this.update({"data-title-no-tooltip":"\u64ad\u653e"});break;case 4:q="\u505c\u6b62\u76f4\u64ad",this.update({"data-title-no-tooltip":"\u505c\u6b62\u76f4\u64ad"})}d=== 3?this.J.C().N("player_tooltip_data_title_killswitch")?this.update({title:q,icon:rN_(this,d)}):this.update({"tooltip-title":q,icon:rN_(this,d)}):(this.J.N("player_tooltip_data_title_killswitch")?this.update({title:q}):this.update({"tooltip-title":q}),(q=rN_(this,d))&&this.G&&this.G!==3?kjn(this.transition,this.element,q):this.updateValue("icon",q));this.tooltip.U$();this.G=d}}; g.Q.onVideoDataChange=function(){g.ep(this.element,"ytp-play-button-playlist",g.m7(this.J))}; g.Q.cW=function(d){this.J.logClick(this.element);if(this.J.getPlayerStateObject().isOrWillBePlaying())this.J.pauseVideo();else{if(this.J.isMinimized()&&this.J.getPlayerStateObject().isCued()){var q={},T;if((T=this.J.getVideoData())==null?0:T.X)q.cttAuthInfo={token:this.J.getVideoData().X,videoId:this.J.getVideoData().videoId};OG("direct_playback",q);this.J.GN().timerName="direct_playback"}this.J.playVideo()}this.J.isMinimized()&&(d==null?void 0:d.type)==="click"&&this.element.blur()}; g.Q.N5=function(d){g.f.prototype.N5.call(this,d);var q;((q=this.J.C())==null?0:q.N("embeds_use_parent_visibility_in_ve_logging"))&&this.J.logVisibility(this.element,this.PF&&d)};g.M(g.mG,g.f);g.Q=g.mG.prototype;g.Q.onVideoDataChange=function(){KkY(this);this.T&&(this.t1(this.T),this.T=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.T=this.W(this.J,"progresssync",this.C2);this.j=GwD(this);B$_(this);this.X6(this.J.OD().getPlayerSize())}; g.Q.X6=function(d){d=d===void 0?this.J.OD().getPlayerSize():d;var q,T=((q=this.J.getLoopRange())==null?void 0:q.type)==="clips";d=(g.m7(this.J)||this.G&&g.V2(this.J)&&!this.J.N("web_hide_next_button")||LkQ(this))&&!T&&(this.G||d.width>=400);this.OM(d);this.J.logVisibility(this.element,d)}; g.Q.onClick=function(d){this.J.logClick(this.element);var q=!0;this.L?q=g.AM(d,this.J):d.preventDefault();q&&(this.G&&this.J.getPresentingPlayerType()===5?this.J.publish("ytoprerollinternstitialnext"):this.G?(Ac(this.J.GN()),this.J.publish("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.j?this.J.seekTo(0):(Ac(this.J.GN()),this.J.publish("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))}; g.Q.C2=function(){var d=GwD(this);d!==this.j&&(this.j=d,B$_(this))}; g.Q.ir=function(){this.U&&(this.U(),this.U=null);KkY(this);g.f.prototype.ir.call(this)};g.M(PJn,g.f);g.Q=PJn.prototype;g.Q.VJ=function(d){this.m$(d.pageX);this.q_(d.pageX+d.deltaX);WkN(this)}; g.Q.m$=function(d){this.lr=d-this.aU}; g.Q.q_=function(d){d-=this.aU;!isNaN(this.lr)&&this.thumbnails.length>0&&(this.K=d-this.lr,this.thumbnails.length>0&&this.K!==0&&(this.j=this.B+this.K,d=foY(this,this.j),this.j<=this.G/2&&this.j>=wSD(this)?(this.api.seekTo(d,!1,void 0,void 0,25),g.Dv(this.yv,"transform","translateX("+(this.j-this.G/2)+"px)"),kw6(this,d)):this.j=this.B))}; g.Q.kO=function(){this.UD&&(this.UD.MG=!0);var d=(0,g.cj)()-this.qk<300;if(Math.abs(this.K)<5&&!d){this.qk=(0,g.cj)();d=this.lr+this.K;var q=this.G/2-d;this.m$(d);this.q_(d+q);WkN(this);this.api.logClick(this.X)}WkN(this)}; g.Q.K2=function(){Sg(this,this.api.getCurrentTime())}; g.Q.play=function(d){this.api.seekTo(foY(this,this.j),void 0,void 0,void 0,26);this.api.playVideo();d&&this.api.logClick(this.playButton)}; g.Q.onExit=function(d){this.api.seekTo(this.RU,void 0,void 0,void 0,63);this.api.playVideo();d&&this.api.logClick(this.dismissButton)}; g.Q.gz=function(d,q){this.aU=d;this.G=q;Sg(this,this.api.getCurrentTime())}; g.Q.enable=function(){this.isEnabled||(this.isEnabled=!0,this.RU=this.api.getCurrentTime(),kw6(this,this.RU),g.ep(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.dO=this.W(this.element,"wheel",this.VJ),this.logVisibility(this.isEnabled))}; g.Q.disable=function(){this.isEnabled=!1;this.hide();g.ep(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.dO&&this.t1(this.dO);this.logVisibility(this.isEnabled)}; g.Q.reset=function(){this.disable();this.T=[];this.z2=!1}; g.Q.logVisibility=function(d){this.api.logVisibility(this.element,d);this.api.logVisibility(this.X,d);this.api.logVisibility(this.dismissButton,d);this.api.logVisibility(this.playButton,d)}; g.Q.ir=function(){for(;this.U.length;){var d=void 0;(d=this.U.pop())==null||d.dispose()}g.f.prototype.ir.call(this)}; g.M(CJY,g.f);g.M(u5N,g.f);g.M(ze_,g.f);g.M(lg,g.f);lg.prototype.tA=function(d){return d==="PLAY_PROGRESS"?this.B:d==="LOAD_PROGRESS"?this.L:d==="LIVE_BUFFER"?this.X:this.j};mpf.prototype.update=function(d,q,T,Y){T=T===void 0?0:T;this.width=q;this.T=T;this.G=q-T-(Y===void 0?0:Y);this.position=g.Cn(d,T,T+this.G);this.j=this.position-T;this.U=this.j/this.G};g.M(SQn,g.f);g.M(g.Vr,g.Ji);g.Q=g.Vr.prototype; g.Q.fG=function(){var d=!1,q=this.api.getVideoData();if(!q)return d;this.api.hm("timedMarkerCueRange");odg(this);for(var T=g.E(q.Fw),Y=T.next();!Y.done;Y=T.next()){Y=Y.value;var e=void 0,U=(e=this.xx[Y])==null?void 0:e.markerType,b=void 0;e=(b=this.xx[Y])==null?void 0:b.markers;if(!e)break;if(U==="MARKER_TYPE_TIMESTAMPS"){d=g.E(e);for(U=d.next();!U.done;U=d.next()){b=U.value;U=new SQn;var J=void 0;U.title=((J=b.title)==null?void 0:J.simpleText)||"";U.timeRangeStartMillis=Number(b.startMillis);U.G= Number(b.durationMillis);var F=J=void 0;U.onActiveCommand=(F=(J=b.onActive)==null?void 0:J.innertubeCommand)!=null?F:void 0;ewN(this,U)}U2H(this,this.L);d=this.L;U=this.qU;b=[];J=null;for(F=0;FN&&(J.end=N);N=aF7(N,N+x);b.push(N);J=N;U[N.id]=d[F].onActiveCommand}}this.api.ES(b);a:{d=g.E(e);for(e=d.next();!e.done;e=d.next())if(e.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){d= !1;break a}d=!0}d&&(this.lS=this.xx[Y]);d=!0}else if(U==="MARKER_TYPE_HEATMAP"){Y=this.xx[Y];R=N=U=F=J=b=void 0;if(Y&&Y.markers){e=(U=(R=Y.markersMetadata)==null?void 0:(N=R.heatmapMetadata)==null?void 0:N.minHeightDp)!=null?U:0;U=(b=(F=Y.markersMetadata)==null?void 0:(J=F.heatmapMetadata)==null?void 0:J.maxHeightDp)!=null?b:60;b=this.G.length;J=null;for(F=0;F=R&&H<=x&&N.push(h)}U>0&&(this.UD.style.height=U+"px");R=this.T[F];x=N;h=e;var a=U,p=F===0;p=p===void 0?!1:p;ifQ(R,a);y=x;H=R.U;p=p===void 0?!1:p;var t=1E3/y.length,n=[];n.push({x:0,y:100});for(var K=0;K0&&(J=N[N.length-1])}g.dl(this)}U=void 0;e=[];if(Y=(U=Y.markersDecoration)==null?void 0:U.timedMarkerDecorations)for(Y=g.E(Y),U=Y.next();!U.done;U=Y.next())U=U.value,F=J=b=void 0,e.push({visibleTimeRangeStartMillis:(b=U.visibleTimeRangeStartMillis)!= null?b:-1,visibleTimeRangeEndMillis:(J=U.visibleTimeRangeEndMillis)!=null?J:-1,decorationTimeMillis:(F=U.decorationTimeMillis)!=null?F:NaN,label:U.label?g.gx(U.label):""});Y=e;this.heatMarkersDecorations=Y}}q.Mr=this.L;g.ep(this.element,"ytp-timed-markers-enabled",d);return d}; g.Q.gz=function(){g.dl(this);Yn(this);U2H(this,this.L);if(this.U){var d=g.lY(this.element).x||0;this.U.gz(d,this.X)}}; g.Q.SFw=function(){var d=this.api.getVideoData();d&&y27(this,d)}; g.Q.onClickCommand=function(d){if(d=g.D(d,af)){var q=d.key;d.isVisible&&q&&sX6(this,q)}}; g.Q.iHF=function(d){this.api.gO("innertubeCommand",this.qU[d.id])}; g.Q.Yc=function(){Yn(this);var d=this.api.getCurrentTime();(dthis.clipEnd)&&this.v0()}; g.Q.wT=function(d){if(!d.defaultPrevented){var q=!1;switch(d.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);q=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);q=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);q=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);q=!0;break;case 38:this.api.N("enable_key_press_seek_logging")&&sk(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);q=!0;break;case 40:this.api.N("enable_key_press_seek_logging")&&sk(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),q=!0}q&&d.preventDefault()}}; g.Q.qF=function(d,q){this.updateVideoData(q,d==="newdata")}; g.Q.LI=function(){this.qF("newdata",this.api.getVideoData())}; g.Q.updateVideoData=function(d,q){q=q===void 0?!1:q;var T=!!d&&d.LH();T&&(Q2(d)||RwH(this)?this.Kz=!1:this.Kz=d.allowLiveDvr,g.ep(this.api.getRootNode(),"ytp-enable-live-buffer",!(d==null||!Q2(d))),y27(this,d));r2_(this,this.api.Oc());if(q){if(T){q=d.clipEnd;this.clipStart=d.clipStart;this.clipEnd=q;$n(this);for(br(this,this.lr,this.fn);this.T.length>0;)this.T.pop().dispose();this.heatMarkersDecorations=[];this.Qp={};var Y;(Y=this.U)==null||Y.reset();xn(this);g.ep(this.api.getRootNode(),"ytp-fine-scrubbing-exp", oW(this))}else this.v0();this.QS()}if(d){var e;Y=((e=this.IN)==null?void 0:e.type)==="clips";if(e=!d.isLivePlayback){e=this.api.getVideoData();q=g.Vv(e);T=d21(e);var U;e=q!=null||T!=null&&T.length>0||((U=e.WJ)==null?void 0:U.length)>0}if(e&&!Y){U=this.api.getVideoData();Y=g.Vv(U);e=!1;if(Y==null?0:Y.markersMap){e=this.api.getVideoData();var b;e.qj=((b=Y.visibleOnLoad)==null?void 0:b.key)||e.qj;b=g.E(Y.markersMap);for(Y=b.next();!Y.done;Y=b.next())Y=Y.value,Y.key&&Y.value&&(this.Qp[Y.key]=Y.value, Y.value.onChapterRepeat&&(e.aYr=Y.value.onChapterRepeat));e.qj!=null&&sX6(this,e.qj);e=!0}var J;if(((J=U.WJ)==null?void 0:J.length)>0){J=g.Aw.getState().entities;b=g.E(U.WJ);for(Y=b.next();!Y.done;Y=b.next()){Y=Y.value;T=void 0;q=(T=VA(J,"macroMarkersListEntity",Y))==null?void 0:T.markersList;var F=T=void 0;if(((T=q)==null?void 0:T.markerType)==="MARKER_TYPE_TIMESTAMPS"||((F=q)==null?void 0:F.markerType)==="MARKER_TYPE_HEATMAP")this.xx[Y]=q}e=this.fG()||e}!e&&(J=d21(U))&&(Ty6(this,J),U.lS=this.G, qhj(this));hw6(this,null);d.J$&&this.T.length===0&&(d=d.J$,J=d.key,d.isVisible&&J&&sX6(this,J))}else lof(this),odg(this)}Yn(this)}; g.Q.FS=function(d){this.B&&!g.I(d.state,32)&&this.api.getPresentingPlayerType()!==3&&this.B.cancel();var q;((q=this.U)==null?0:q.isEnabled)&&g.I(d.state,8)&&this.api.pauseVideo();d=this.api.getPresentingPlayerType()===2||!this.api.Oc()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.ep(this.vA,"ytp-hide-scrubber-button",d)}; g.Q.SG=function(d){var q=!!this.IN!==!!d,T=this.IN;this.IN=d;hw6(this,T);(d==null?void 0:d.type)!=="clips"&&d||(d?(this.updateValue("clipstarticon",puf()),this.updateValue("clipendicon",puf()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",HWN()),this.updateValue("clipendicon",hTj()),this.updateValue("clipstarttitle","\u89c2\u770b\u5b8c\u6574\u7248\u89c6\u9891"),this.updateValue("clipendtitle","\u89c2\u770b\u5b8c\u6574\u7248\u89c6\u9891")), q&&(this.updateVideoData(this.api.getVideoData(),!0),g.dl(this)),$n(this));br(this,this.lr,this.fn)}; g.Q.Mtw=function(){this.api.publish("progressBarHoverStart")}; g.Q.zlO=function(d,q,T){var Y=g.lY(this.element),e=Tj(this).G,U=T?T.getAttribute("data-tooltip"):void 0,b=T?T.getAttribute("data-position"):void 0,J=T?T.getAttribute("data-offset-y"):void 0;J=J?Number(J):0;b&&(d=rs(this.j,Number(T.getAttribute("data-position")),0)*e+g.lY(this.progressBar).x);this.wO.x=d-Y.x;this.wO.y=q-Y.y;d=Tj(this);T=JZ(this,d);q=0;var F;if((F=this.api.getVideoData())==null?0:Q2(F))(F=this.api.getProgressState().seekableEnd)&&T>F&&(T=F,d.position=rs(this.j,F)*Tj(this).G),q=this.j.U; RwH(this)&&(q=this.j.U);F=U||g.MY(this.Kz?T-this.j.G:T-q);q=d.position+this.t0;T-=this.api.mz();var N;if((N=this.U)==null||!N.isEnabled)if(this.api.TN()){if(this.G.length>1){N=X3(this,this.wO.x,!0);if(!this.IN)for(Y=0;Y1)for(Y=0;Y0)for(N=this.wO.x,Y=g.E(this.L),e=Y.next();!e.done;e=Y.next())e=e.value,b=qN(this,e.timeRangeStartMillis/ (this.j.G*1E3),Tj(this)),g.ep(e.element,"ytp-timed-marker-hover",b<=N&&b+6>=N);Y=this.tooltip.scale;N=this.api.N("delhi_modern_web_player")?67:45;J=(isNaN(J)?0:J)-N*Y;this.api.N("web_key_moments_markers")?this.lS?(N=cXQ(this.L,T*1E3),N=N!=null?this.L[N].title:""):(N=hg(this.G,T*1E3),N=this.G[N].title):(N=hg(this.G,T*1E3),N=this.G[N].title);N||(J+=16*Y);this.tooltip.scale===.6&&(g.cT(this.api.C())?(J=this.api.OD().getPlayerSize().height-225,Y=this.api.N("delhi_modern_web_player")?70:110,J=N?J+Y:J+ Y+16):J=N?110:126);Y=hg(this.G,T*1E3);this.z2=QXj(this,T,Y)?Y:QXj(this,T,Y+1)?Y+1:-1;g.ep(this.api.getRootNode(),"ytp-progress-bar-snap",this.z2!==-1&&this.G.length>1);Y=!1;e=g.E(this.heatMarkersDecorations);for(b=e.next();!b.done;b=e.next()){b=b.value;var R=T*1E3;R>=b.visibleTimeRangeStartMillis&&R<=b.visibleTimeRangeEndMillis&&(N=b.label,F=g.MY(b.decorationTimeMillis/1E3),Y=!0)}this.dA!==Y&&(this.dA=Y,this.api.logVisibility(this.V5,this.dA));g.ep(this.api.getRootNode(),"ytp-progress-bar-decoration", Y);Y=160*this.tooltip.scale*2;e=N.length*(this.K?8.55:5.7);e=e<=Y?e:Y;b=e<160*this.tooltip.scale;Y=3;!b&&e/2>d.position&&(Y=1);!b&&e/2>this.X-d.position&&(Y=2);this.api.C().L&&(J-=10);this.T.length&&this.T[0].LH&&(J-=14*(this.K?2:1),this.RU||(this.RU=!0,this.api.logVisibility(this.UD,this.RU)));var x;if(oW(this)&&(((x=this.U)==null?0:x.isEnabled)||this.Fw>0)){var y;J-=((y=this.U)==null?0:y.isEnabled)?F3(this):this.Fw}x=void 0;oW(this)&&!this.api.N("web_player_hide_fine_scrubbing_edu")&&(x="\u5411\u4e0a\u62c9\u4ee5\u7cbe\u786e\u5730\u8c03\u6574\u64ad\u653e\u8fdb\u5ea6", this.aU||(this.aU=!0,this.api.logVisibility(this.ST,this.aU)));this.tooltip.MS(q,T,F,!!U,J,N,Y,x)}else this.tooltip.MS(q,T,F,!!U,J);g.d9(this.api.getRootNode(),"ytp-progress-bar-hover");NyX(this)}; g.Q.ttD=function(){this.QS();g.TR(this.api.getRootNode(),"ytp-progress-bar-hover");this.RU&&(this.RU=!1,this.api.logVisibility(this.UD,this.RU));this.aU&&(this.aU=!1,this.api.logVisibility(this.ST,this.aU));this.api.N("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.Q.QdZ=function(d,q){var T=g.lY(this.element);this.qC=d-T.x;oW(this)&&this.U&&(this.U.z2?Sg(this.U,this.api.getCurrentTime()):Dp7(this.U),this.U.show(),g.ep(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.U.isEnabled));this.FW&&(this.FW.dispose(),this.FW=null);this.Y1=q;this.R6=this.api.getCurrentTime();this.G.length>1&&this.z2!==-1?this.api.seekTo(this.G[this.z2].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(JZ(this,Tj(this)),!1,void 0,void 0,7);g.d9(this.element,"ytp-drag");(this.yH= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.Q.pGw=function(){if(oW(this)&&this.U){var d=F3(this);this.Fw>=d*.5?(this.U.enable(),Sg(this.U,this.api.getCurrentTime()),nFj(this,d)):xn(this)}if(g.I(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var q;if((q=this.U)==null?0:q.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.G.length>1&&this.z2!==-1)this.api.N("html5_enable_progress_bar_slide_seek_logging")&&sk(this,this.R6,this.G[this.z2].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.G[this.z2].startTime/1E3,void 0,void 0,void 0,7);else{d=JZ(this,Tj(this));this.api.N("html5_enable_progress_bar_slide_seek_logging")&&sk(this,this.R6,d,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(d,void 0,void 0,void 0,7);q=g.E(this.heatMarkersDecorations);for(var T=q.next();!T.done;T=q.next())T=T.value,d*1E3>=T.visibleTimeRangeStartMillis&&d*1E3<=T.visibleTimeRangeEndMillis&& this.api.logClick(this.V5)}g.TR(this.element,"ytp-drag");this.rO&&(this.yv.src=this.rO);this.yH&&!g.I(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.Q.r1O=function(d,q){var T=this,Y=Tj(this),e=JZ(this,Y);this.api.OD().po||(Y.position>this.qC+2?this.zq&&(this.yv.src=this.zq):Y.position1);this.OM(d&&this.J.OD().getPlayerSize().width>=400);this.J.logVisibility(this.element,this.PF);var q=1;d&&this.isActive()&&(q=2);if(this.G!==q){this.G=q;d=this.J.N("delhi_modern_web_player_icons");switch(q){case 1:this.updateValue("icon",d?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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"}}]}:{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!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", d?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"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.xs1())}g.ep(this.element,"ytp-remote-button-active",this.isActive())}}; yW.prototype.U=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var d=this.TG,q=this.element;if(d.vR())d.bF();else{d.initialize();a:{var T=g.E(d.ws.items);for(var Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,Y.priority===1){T=Y;break a}T=null}T&&(T.open(),d.St(q));d.St(q)}}this.J.logClick(this.element)};g.M(hZ,g.f);hZ.prototype.G=function(d){var q=this.J.C(),T=400;this.J.N("web_player_small_hbp_settings_menu")&&q.X?T=300:q.L&&(T=200);d=this.U&&d.width>=T;this.OM(d);this.J.N("embeds_use_parent_visibility_in_ve_logging")?this.J.logVisibility(this.element,d&&this.S):this.J.logVisibility(this.element,d)}; hZ.prototype.j=function(){if(this.TG.PF)this.TG.bF();else{var d=g.La(this.J.M5());d&&!d.loaded&&(d.Vg("tracklist",{includeAsr:!0}).length||d.load());this.J.logClick(this.element);this.TG.St(this.element)}}; hZ.prototype.updateBadge=function(){var d=this.J.isHdr(),q=this.J.getPresentingPlayerType(),T=q!==2&&q!==3,Y=g.vU(this.J),e=T&&!!g.lH(this.J.M5());q=e&&Y.displayMode===1;Y=e&&Y.displayMode===2;T=(e=q||Y)||!T?null:this.J.getPlaybackQuality();g.ep(this.element,"ytp-hdr-quality-badge",d);g.ep(this.element,"ytp-hd-quality-badge",!d&&(T==="hd1080"||T==="hd1440"));g.ep(this.element,"ytp-4k-quality-badge",!d&&T==="hd2160");g.ep(this.element,"ytp-5k-quality-badge",!d&&T==="hd2880");g.ep(this.element,"ytp-8k-quality-badge", !d&&T==="highres");g.ep(this.element,"ytp-3d-badge-grey",!d&&e&&q);g.ep(this.element,"ytp-3d-badge",!d&&e&&Y)};g.M(HF,jq);HF.prototype.isLoaded=function(){var d=g.Df(this.J.M5());return d!==void 0&&d.loaded}; HF.prototype.S5=function(){g.Df(this.J.M5())!==void 0&&this.J.getPresentingPlayerType()!==3?this.G||(this.TG.rk(this),this.G=!0):this.G&&(this.TG.e$(this),this.G=!1);az(this,this.isLoaded())}; HF.prototype.onSelect=function(d){this.isLoaded();d?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",d)}; HF.prototype.ir=function(){this.G&&this.TG.e$(this);jq.prototype.ir.call(this)};g.M(QW,g.uf);QW.prototype.S5=function(){var d=this.J.getAvailableAudioTracks();d.length>1?(this.MF(g.yC(d,this.G)),this.tracks=g.lQ(d,this.G,this),this.countLabel.A1(d.length?" ("+d.length+")":""),this.publish("size-change"),this.kL(this.G(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)}; QW.prototype.GS=function(d){g.uf.prototype.GS.call(this,d);this.J.setAudioTrack(this.tracks[d]);this.TG.l1()}; QW.prototype.G=function(d){return d.toString()};g.M(MN,jq); MN.prototype.U=function(){var d=this.J.getPresentingPlayerType();if(d!==2&&d!==3&&g.V2(this.J))this.G||(this.TG.rk(this),this.G=!0,this.j.push(this.W(this.J,"videodatachange",this.U)),this.j.push(this.W(this.J,"videoplayerreset",this.U)),this.j.push(this.W(this.J,"onPlaylistUpdate",this.U)),this.j.push(this.W(this.J,"autonavchange",this.T)),d=this.J.getVideoData(),this.T(d.autonavState),this.J.logVisibility(this.element,this.G));else if(this.G){this.TG.e$(this);this.G=!1;d=g.E(this.j);for(var q=d.next();!q.done;q= d.next())this.t1(q.value)}}; MN.prototype.T=function(d){az(this,d!==1)}; MN.prototype.onSelect=function(d){this.J.Eh(d?2:1);this.G&&(this.J.logVisibility(this.element,this.G),this.J.logClick(this.element))}; MN.prototype.ir=function(){this.G&&this.TG.e$(this);jq.prototype.ir.call(this)};g.M(ByY,g.gR);ByY.prototype.onClick=function(d){d.preventDefault();var q,T;(q=g.KV(this.J))==null||(T=q.dB())==null||T.bF();var Y,e;(Y=g.KV(this.J))==null||(e=Y.UY())==null||e.St(d.target)};g.M(Ks7,g.uf);g.Q=Ks7.prototype; g.Q.DD=function(){var d=this.J.getPresentingPlayerType();if(d!==2&&d!==3){this.yv=this.J.N4();var q=this.J.getAvailableQualityLevels();if(this.G){this.T={};d=g.OF(this.J,"getAvailableQualityData",[]);d=g.E(d);for(var T=d.next();!T.done;T=d.next())T=T.value,this.T[T.qualityLabel]=T;d=Object.keys(this.T);q[q.length-1]==="auto"&&d.push("auto");this.rO=new Set(q)}else if(this.X){T=g.OF(this.J,"getAvailableQualityData",[]);d=[];T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next())Y=Y.value,this.K[Y.quality]= Y,Y.quality&&d.push(Y.quality);q[q.length-1]==="auto"&&d.push("auto")}else d=q;g.tNf(this.J)&&this.J.xk()&&d.unshift("missing-qualities");q=this.J.app.Lf();T=q.getVideoData();if(!T.U||!T.U.video||T.U.video.qualityOrdinal<1080||T.Dd)q=!1;else{Y=/^qsa/.test(T.clientPlaybackNonce);var e="r";T.U.id.indexOf(";")>=0&&(Y=/^[a-p]/.test(T.clientPlaybackNonce),e="x");Y?(q.oU("iqss",{trigger:e},!0),q=!0):q=!1}q&&d.unshift("inline-survey");this.MF(d);q=this.J.getVideoData().cotn?!0:!1;T=this.UD.YL();T=!g.cT(this.J.C())|| !(q===void 0?0:q)||!(T===void 0||T);q=this.U;T=T===void 0?!1:T;q.V0&&g.ep(q.Qv("ytp-panel-footer"),"ytp-panel-hide-footer",T===void 0?!1:T);if(d.length){this.EB();this.enable(!0);return}}this.enable(!1)}; g.Q.EB=function(){if(this.G){var d=this.J.getPreferredQuality();this.rO.has(d)&&(this.L=this.J.getPlaybackQuality(),this.lr=this.J.getPlaybackQualityLabel(),d==="auto"?(this.kL(d),this.A1(this.Qi(d))):this.kL(this.lr))}else d=this.J.getPreferredQuality(),this.options[d]&&(this.L=this.J.getPlaybackQuality(),this.kL(d),d==="auto"&&this.A1(this.Qi(d)))}; g.Q.GS=function(d){if(d!=="missing-qualities"){g.uf.prototype.GS.call(this,d);var q=this.G?this.T[d]:this.K[d];var T=q==null?void 0:q.quality,Y=q==null?void 0:q.formatId,e=q==null?void 0:q.paygatedQualityDetails;q=e==null?void 0:e.endpoint;if(e){var U;e=(U=this.options[d])==null?void 0:U.element;this.J.logClick(e)}if(this.G){var b,J;if((b=g.D(q,g.tvE))==null?0:(J=b.popup)==null?0:J.notificationActionRenderer)this.J.gO("innertubeCommand",q);else if(q){this.J.gO("innertubeCommand",q);return}Y?this.J.setPlaybackQuality(T, Y):this.J.setPlaybackQuality(T)}else{if(this.X){var F,N;if((F=g.D(q,g.tvE))==null?0:(N=F.popup)==null?0:N.notificationActionRenderer)this.J.gO("innertubeCommand",q);else if(q){this.J.gO("innertubeCommand",q);return}}this.J.setPlaybackQuality(d)}this.TG.bF();this.DD()}}; g.Q.open=function(){for(var d=g.E(Object.values(this.options)),q=d.next();!q.done;q=d.next()){q=q.value;var T=void 0;this.J.hasVe((T=q)==null?void 0:T.element)&&(T=void 0,this.J.logVisibility((T=q)==null?void 0:T.element,!0))}g.uf.prototype.open.call(this);this.J.logClick(this.element)}; g.Q.Q9=function(d,q,T){var Y=this;if(d==="missing-qualities")return new g.gR({Y:"a",hF:["ytp-menuitem"],Z:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.C().K,tabindex:"0",role:"menuitemradio"},V:[{Y:"div",hF:["ytp-menuitem-label"],j5:"{{label}}"}]},q,this.Qi(d));if(d!=="inline-survey"){var e,U=(e=this.G?this.T[d]:this.K[d])==null?void 0:e.paygatedQualityDetails;e=U==null?void 0:U.veType;U=U==null?void 0:U.trackingParams;q=g.uf.prototype.Q9.call(this,d,q,T);U?(this.J.createServerVe(q.element, this,!0),this.J.setTrackingParams(q.element,U)):e&&this.J.createClientVe(q.element,this,e,!0);return q}d=[{Y:"span",j5:"\u6ee1\u610f\u5417\uff1f"}];T=g.E([!0,!1]);U=T.next();for(e={};!U.done;e={DH:void 0},U=T.next())e.DH=U.value,U=new g.f({Y:"span",D:"ytp-menuitem-inline-survey-response",V:[e.DH?AB7():MXj()],Z:{tabindex:"0",role:"button"}}),U.listen("click",function(b){return function(){var J=Y.J.app.Lf();J.oU("iqsr",{tu:b.DH});J.getVideoData().Dd=!0;Y.TG.bF();Y.DD()}}(e)),d.push(U); return new g.gR({Y:"div",D:"ytp-menuitem",Z:{"aria-disabled":"true"},V:[{Y:"div",hF:["ytp-menuitem-label"],V:d}]},q)}; g.Q.Qi=function(d,q){q=q===void 0?!1:q;if(d==="missing-qualities")return{Y:"div",j5:"\u7f3a\u5c11\u9009\u9879\uff1f"};if(d==="inline-survey")return"";var T=this.X||this.G?[k9Y(this,d,q,!1)]:[Ls1(this,d)];var Y=this.J.getPreferredQuality();q||Y!=="auto"||d!=="auto"||(T.push(" "),this.G?T.push(k9Y(this,this.lr,q,!0,["ytp-menu-label-secondary"])):this.X?T.push(k9Y(this,this.L,q,!0,["ytp-menu-label-secondary"])):T.push(Ls1(this,this.L,["ytp-menu-label-secondary"])));return{Y:"div",V:T}};g.M(cF,DI);cF.prototype.j=function(){DI.prototype.j.call(this);this.K&&PX6(this)}; cF.prototype.rO=function(){this.lr()}; cF.prototype.yv=function(){this.J.setPlaybackRate(this.G,!0)}; cF.prototype.L=function(d){DI.prototype.L.call(this,d);this.lr();PX6(this);d.preventDefault()};g.M(Ek,g.f);g.Q=Ek.prototype;g.Q.init=function(){this.YU(this.G);this.updateValue("minvalue",this.U);this.updateValue("maxvalue",this.j)}; g.Q.fK=function(d){if(!d.defaultPrevented){switch(d.keyCode){case 37:case 40:var q=-this.B;break;case 39:case 38:q=this.B;break;default:return}this.YU(this.G+q);d.preventDefault()}}; g.Q.Pb=function(d){var q=this.G;q+=(d.deltaX||-d.deltaY)<0?-this.K:this.K;this.YU(q);d.preventDefault()}; g.Q.GQ=function(d){d=(d-g.lY(this.T).x)/this.lr*this.range+this.U;this.YU(d)}; g.Q.YU=function(d,q){q=q===void 0?"":q;d=g.Cn(d,this.U,this.j);q===""&&(q=d.toString());this.updateValue("valuenow",d);this.updateValue("valuetext",q);this.UD.style.left=(d-this.U)/this.range*(this.lr-this.z2)+"px";this.G=d}; g.Q.focus=function(){this.dO.focus()};g.M(jw,Ek);jw.prototype.yv=function(){this.J.setPlaybackRate(this.G,!0)}; jw.prototype.YU=function(d){Ek.prototype.YU.call(this,d,CX1(this,d).toString());this.X&&(Wsj(this),this.rO())}; jw.prototype.updateValues=function(){var d=this.J.getPlaybackRate();CX1(this,this.G)!==d&&(this.YU(d),Wsj(this))};g.M(uBY,g.Ji);uBY.prototype.focus=function(){this.G.focus()};g.M(D2g,nc);g.M(wwj,g.uf);g.Q=wwj.prototype;g.Q.Qi=function(d){return d==="1"?"\u6b63\u5e38":d.toLocaleString()}; g.Q.S5=function(){var d,q=(d=this.J.getVideoData())==null?void 0:d.y5();d=this.J.getPresentingPlayerType(q);this.enable(d!==2&&d!==3);i_7(this)}; g.Q.MF=function(d){g.uf.prototype.MF.call(this,d);this.L&&this.L.U.focus()}; g.Q.Ps=function(d){g.uf.prototype.Ps.call(this,d);d?(this.lr=this.W(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),i_7(this),fR2(this,this.J.getPlaybackRate())):(this.t1(this.lr),this.lr=null)}; g.Q.onPlaybackRateChange=function(d){var q=this.J.getPlaybackRate();!this.T&&this.K.includes(q)||zwn(this,q);fR2(this,d)}; g.Q.Q9=function(d,q,T){return d===this.G&&IRX(this.J)?g.uf.prototype.Q9.call(this,d,q,T,{Y:"div",D:"ytp-speed-slider-menu-footer",V:[this.L]}):g.uf.prototype.Q9.call(this,d,q,T)}; g.Q.GS=function(d){g.uf.prototype.GS.call(this,d);d===this.G?this.J.setPlaybackRate(this.X,!0):this.J.setPlaybackRate(Number(d),!0);IRX(this.J)&&d===this.G||this.TG.l1()}; g.Q.ud=function(d){var q=d===this.G;this.T=!1;q&&ak(this.J)&&!IRX(this.J)?(d=new D2g(this.J),g.Kc(this.TG,d)):g.uf.prototype.ud.call(this,d)};g.M(ShD,g.uf);g.Q=ShD.prototype;g.Q.kL=function(d){g.uf.prototype.kL.call(this,d)}; g.Q.eG=function(d){return d.option.toString()}; g.Q.getOption=function(d){return this.settings[d]}; g.Q.Qi=function(d){return this.getOption(d).text||""}; g.Q.GS=function(d){g.uf.prototype.GS.call(this,d);this.publish("settingChange",this.setting,this.settings[d].option)};g.M(pA,g.rF);pA.prototype.dH=function(d){for(var q=g.E(Object.keys(d)),T=q.next();!T.done;T=q.next()){var Y=T.value;if(T=this.py[Y]){var e=d[Y].toString();Y=!!d[Y+"Override"];T.options[e]&&(T.kL(e),T.T.element.setAttribute("aria-checked",String(!Y)),T.G.element.setAttribute("aria-checked",String(Y)))}}}; pA.prototype.Lq=function(d,q){this.publish("settingChange",d,q)};g.M(Zk,g.uf);Zk.prototype.G=function(d){return d.languageCode}; Zk.prototype.Qi=function(d){return this.languages[d].languageName||""}; Zk.prototype.GS=function(d){this.publish("select",d);this.J.logClick(this.element);g.GQ(this.TG)};g.M(oFg,g.uf);g.Q=oFg.prototype;g.Q.Ag=function(d){return g.FV(d)?"__off__":d.displayName}; g.Q.Qi=function(d){return d==="__off__"?"\u5173\u95ed":d==="__translate__"?"\u81ea\u52a8\u7ffb\u8bd1":d==="__contribute__"?"\u6dfb\u52a0\u5b57\u5e55":d==="__correction__"?"\u5efa\u8bae\u66f4\u6b63\u5b57\u5e55":(d==="__off__"?{}:this.tracks[d]).displayName}; g.Q.GS=function(d){if(d==="__translate__")this.G.open();else if(d==="__contribute__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var q=g.Ye(this.J.C(),this.J.getVideoData());g.u2(q)}else if(d==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var T=VmN(this);Ok(this,T);g.uf.prototype.GS.call(this,this.Ag(T));var Y,e;T=(q=this.J.getVideoData().getPlayerResponse())==null?void 0:(Y=q.captions)==null?void 0:(e=Y.playerCaptionsTracklistRenderer)== null?void 0:e.openTranscriptCommand;this.J.gO("innertubeCommand",T);this.TG.l1();this.T&&this.J.logClick(this.T)}else{if(d==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();q=VmN(this);Ok(this,q);g.uf.prototype.GS.call(this,this.Ag(q));var U,b;q=(T=this.J.getVideoData().getPlayerResponse())==null?void 0:(U=T.captions)==null?void 0:(b=U.playerCaptionsTracklistRenderer)==null?void 0:b.openTranscriptCommand;this.J.gO("innertubeCommand",q)}else this.J.logClick(this.element), Ok(this,d==="__off__"?{}:this.tracks[d]),g.uf.prototype.GS.call(this,d);this.TG.l1()}}; g.Q.S5=function(){var d=this.J.getOptions();d=d&&d.indexOf("captions")!==-1;var q=this.J.getVideoData(),T=q&&q.IK,Y,e=!((Y=this.J.getVideoData())==null||!g.y2(Y));Y={};if(d||T){var U;if(d){var b=this.J.getOption("captions","track");Y=this.J.getOption("captions","tracklist",{includeAsr:!0});var J=e?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.lQ(Y,this.Ag,this);e=g.yC(Y,this.Ag);var F,N;VmN(this)&&((U=q.getPlayerResponse())==null?0:(F=U.captions)==null?0:(N=F.playerCaptionsTracklistRenderer)== null?0:N.openTranscriptCommand)&&e.push("__correction__");if(J.length&&!g.FV(b)){if((U=b.translationLanguage)&&U.languageName){var R=U.languageName;U=J.findIndex(function(x){return x.languageName===R}); rYI(J,U)}lRQ(this.G,J);e.push("__translate__")}U=this.Ag(b)}else this.tracks={},e=[],U="__off__";e.unshift("__off__");this.tracks.__off__={};T&&e.unshift("__contribute__");this.tracks[U]||(this.tracks[U]=b,e.push(U));this.MF(e);this.kL(U);b&&b.translationLanguage?this.G.kL(this.G.G(b.translationLanguage)):yZ1(this.G);d&&this.X.dH(this.J.getSubtitlesUserSettings());this.countLabel.A1(Y&&Y.length?" ("+Y.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.Q.lf=function(d){var q=this.J.getOption("captions","track");q=g.x9(q);q.translationLanguage=this.G.languages[d];Ok(this,q)}; g.Q.Lq=function(d,q){if(d==="reset")this.J.resetSubtitlesUserSettings();else{var T={};T[d]=q;this.J.updateSubtitlesUserSettings(T)}vFn(this,!0);this.L.start();this.X.dH(this.J.getSubtitlesUserSettings())}; g.Q.C$D=function(d){d||g.I1(this.L)}; g.Q.ir=function(){g.I1(this.L);g.uf.prototype.ir.call(this)}; g.Q.open=function(){g.uf.prototype.open.call(this);this.options.__correction__&&!this.T&&(this.T=this.options.__correction__.element,this.J.createClientVe(this.T,this,167341),this.J.logVisibility(this.T,!0))};g.M(dD7,g.B$);g.Q=dD7.prototype; g.Q.initialize=function(){if(!this.isInitialized){var d=this.J.C();this.isInitialized=!0;try{this.PT=new Ks7(this.J,this)}catch(T){g.OL(Error("QualityMenuItem creation failed"))}g.C(this,this.PT);var q=new oFg(this.J,this);g.C(this,q);d.j||(q=new HF(this.J,this),g.C(this,q));d.enableSpeedOptions&&(q=new wwj(this.J,this),g.C(this,q));(g.dn(d)||d.X)&&(d.U||d.qk)&&(q=new ByY(this.J,this),g.C(this,q));d.zX&&!d.N("web_player_move_autonav_toggle")&&(d=new MN(this.J,this),g.C(this,d));d=new QW(this.J,this); g.C(this,d);this.J.publish("settingsMenuInitialized");tmn(this.settingsButton,this.ws.G3())}}; g.Q.rk=function(d){this.initialize();this.ws.rk(d);tmn(this.settingsButton,this.ws.G3())}; g.Q.e$=function(d){this.PF&&this.ws.G3()<=1&&this.hide();this.ws.e$(d);tmn(this.settingsButton,this.ws.G3())}; g.Q.St=function(d){this.initialize();this.ws.G3()>0&&g.B$.prototype.St.call(this,d)}; g.Q.bF=function(){this.P0?this.P0=!1:g.B$.prototype.bF.call(this)}; g.Q.show=function(){g.B$.prototype.show.call(this);g.d9(this.J.getRootNode(),"ytp-settings-shown")}; g.Q.hide=function(){g.B$.prototype.hide.call(this);g.TR(this.J.getRootNode(),"ytp-settings-shown")}; g.Q.nz=function(d){this.J.logVisibility(this.element,d);this.J.publish("settingsMenuVisibilityChanged",d)};g.M(YZX,g.f);g.Q=YZX.prototype;g.Q.onClick=function(){if(nA(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var d=!1,q=g.Gy(g.KW(),65);g.cT(this.J.C())&&q!=null&&(d=!q);d&&this.J.C().N("web_player_nitrate_promo_tooltip")&&this.J.publish("showpromotooltip",this.element)}}; g.Q.ymk=function(d){var q,T;(q=g.KV(this.J))==null||(T=q.dB())==null||T.St(d)}; g.Q.isEnabled=function(){var d=this.J.getOption("captions","track");return!(!d||!d.displayName)}; g.Q.S5=function(){var d=nA(this),q=300;this.J.C().L&&(q=480);this.J.N("delhi_modern_web_player_icons")&&this.updateValue("icon",T31(this));if(this.J.C().X){this.updateValue("title",g.wm(this.J,"\u5b57\u5e55","c"));this.update({"tooltip-title":g.wm(this.J,"\u5b57\u5e55","c")});this.update({"data-title-no-tooltip":"\u5b57\u5e55"});var T=d}else{if(d)(T=this.Qv("ytp-subtitles-button-icon"))==null||T.setAttribute("fill-opacity","1"),this.J.C().N("player_tooltip_data_title_killswitch")?this.updateValue("title", g.wm(this.J,"\u5b57\u5e55","c")):this.update({"tooltip-title":g.wm(this.J,"\u5b57\u5e55","c")}),this.update({"data-title-no-tooltip":"\u5b57\u5e55"});else{if(this.J.N("delhi_modern_web_player_icons")){var Y;(Y=this.Qv("ytp-subtitles-button-icon"))==null||Y.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var e;(e=this.Qv("ytp-subtitles-button-icon"))==null||e.setAttribute("fill-opacity","0.3")}this.updateValue("title","\u65e0\u6cd5\u663e\u793a\u5b57\u5e55");this.update({"tooltip-title":"\u65e0\u6cd5\u663e\u793a\u5b57\u5e55"}); this.update({"data-title-no-tooltip":"\u65e0\u6cd5\u663e\u793a\u5b57\u5e55"})}T=!0}this.tooltip.U$();T=T&&this.J.OD().getPlayerSize().width>=q;this.OM(T);this.J.N("embeds_use_parent_visibility_in_ve_logging")?this.J.logVisibility(this.element,T&&this.S):this.J.logVisibility(this.element,T);d?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.Q.N5=function(d){g.f.prototype.N5.call(this,d);this.J.C().N("embeds_use_parent_visibility_in_ve_logging")&&this.J.logVisibility(this.element,this.PF&&d)};g.M(g.rl,g.f);g.Q=g.rl.prototype;g.Q.canShowCountdown=function(){return!BF(this)&&!tZ(this)}; g.Q.Yc=function(){var d=this.api.OD().getPlayerSize().width,q=this.K;this.api.C().L&&(q=400);q=d>=q&&(!tZ(this)||!g.I(this.api.getPlayerStateObject(),64));this.OM(q);g.ep(this.element,"ytp-time-display-allow-autohide",q&&d<400);d=this.api.getProgressState();if(q){var T=this.api.getPresentingPlayerType();q=this.api.getCurrentTime(T,!1);this.U&&(q-=d.airingStart);BF(this)&&(q-=this.IN.startTimeMs/1E3);this.canShowCountdown()&&this.j&&(q-=this.api.getDuration(T,!1));var Y=g.MY(q);this.T!==Y&&(this.updateValue("currenttime", Y),this.T=Y);T=BF(this)?(this.IN.endTimeMs-this.IN.startTimeMs)/1E3:this.api.getDuration(T,!1);Y=g.MY(T);this.X!==Y&&(this.updateValue("duration",Y),this.X=Y,q&&(q=g.bO("$PLAY_PROGRESS/$DURATION",{PLAY_PROGRESS:g.MY(q,!0),DURATION:g.MY(T,!0)}),this.updateValue("timeDisplayAriaLabel",q)))}e_6(this,d.isAtLiveHead);UD2(this,this.api.getLoopRange())}; g.Q.onLoopRangeChange=function(d){var q=this.IN!==d;this.IN=d;q&&(this.Yc(),bQH(this))}; g.Q.Imk=function(){this.api.setLoopRange(null)}; g.Q.ZfD=function(){this.j=!this.j;this.Yc()}; g.Q.onVideoDataChange=function(d,q,T){this.updateVideoData((this.api.C().N("enable_topsoil_wta_for_halftime")||this.api.C().N("enable_topsoil_wta_for_halftime_live_infra"))&&T===2?this.api.getVideoData(1):q);this.Yc();bQH(this)}; g.Q.updateVideoData=function(d){this.cS=d.isLivePlayback&&!d.kx;this.U=Q2(d);this.isPremiere=d.isPremiere;g.ep(this.element,"ytp-live",tZ(this));this.api.N("delhi_modern_web_player")&&this.Qv("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.Q.onClick=function(d){d.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.Q.ir=function(){this.G&&this.G();g.f.prototype.ir.call(this)};g.M(J97,g.f);g.Q=J97.prototype;g.Q.xX=function(){var d=this.api.rU();this.j!==d&&(this.j=d,XCj(this,this.api.getVolume(),this.api.isMuted()))}; g.Q.nE=function(d){this.OM(d.width>=350)}; g.Q.jW=function(d){if(!d.defaultPrevented){var q=d.keyCode,T=null;q===37?T=this.volume-5:q===39?T=this.volume+5:q===36?T=0:q===35&&(T=100);T!==null&&(T=g.Cn(T,0,100),T===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(T)),d.preventDefault())}}; g.Q.Uf=function(d){var q=d.deltaX||-d.deltaY;d.deltaMode?this.api.setVolume(this.volume+(q<0?-10:10)):this.api.setVolume(this.volume+g.Cn(q/10,-10,10));d.preventDefault()}; g.Q.wGw=function(){KA(this,this.G,!0,this.U,this.api.qO());this.K=this.volume;this.api.isMuted()&&this.api.unMute()}; g.Q.oo=function(d){var q=this.j?78:52,T=this.j?18:12;d-=g.lY(this.B).x;this.api.setVolume(g.Cn((d-T/2)/(q-T),0,1)*100)}; g.Q.Kcw=function(){KA(this,this.G,!1,this.U,this.api.qO());this.volume===0&&(this.api.mute(),this.api.setVolume(this.K))}; g.Q.onVolumeChange=function(d){XCj(this,d.volume,d.muted)}; g.Q.f6=function(){KA(this,this.G,this.isDragging,this.U,this.api.qO())}; g.Q.ir=function(){g.f.prototype.ir.call(this);g.TR(this.L,"ytp-volume-slider-active")};g.M(Gj,g.f); Gj.prototype.onVideoDataChange=function(){var d=this.api.C();this.gz();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).kc;this.OM(this.visible);this.api.logVisibility(this.element,this.visible&&this.S);if(this.visible){var q=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",q)}d.j&&(this.G&&(this.t1(this.G),this.G=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.d9(this.element,"no-link")); q=this.api.C();d=this.api.getVideoData();var T="";q.j||(q=g.yv(q),q.indexOf("www.")===0&&(q=q.substring(4)),T=g.MC(d)?"\u5728 YouTube Music \u4e0a\u6b23\u8d4f":q==="youtube.com"?"\u5728 YouTube \u4e0a\u89c2\u770b":g.bO("\u5728 $WEBSITE \u4e0a\u89c2\u770b",{WEBSITE:q}));this.api.N("player_tooltip_data_title_killswitch")?this.updateValue("title",T):this.updateValue("tooltip-title",T)}; Gj.prototype.onClick=function(d){this.api.N("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var q=this.api.C(),T=this.api.getVideoUrl(!g.cG(d),!1,!0,!0);if(g.dn(q)){var Y={};g.dn(q)&&g.OF(this.api,"addEmbedsConversionTrackingParams",[Y]);T=g.y6(T,Y)}g.pR(T,this.api,d);this.api.N("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Gj.prototype.gz=function(){var d={Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"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 "}}]}, q=28666,T=this.api.getVideoData();this.api.isEmbedsShortsMode()?d={Y:"svg",Z:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{Y:"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.MC(T)&&(d={Y:"svg",Z:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{Y:"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"}},{Y:"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"}},{Y:"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"}},{Y:"path",Z:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{Y:"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"}},{Y:"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"}},{Y:"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"}},{Y:"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"}},{Y:"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"}},{Y:"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"}},{Y:"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"}},{Y:"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"}}]},q=216163);g.MC(T)?g.d9(this.element,"ytp-youtube-music-button"):g.TR(this.element,"ytp-youtube-music-button");d.Z=Object.assign({},d.Z,{"aria-hidden":"true"});this.updateValue("logoSvg",d);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,q,!0)}; Gj.prototype.N5=function(d){g.f.prototype.N5.call(this,d);this.api.logVisibility(this.element,this.visible&&d)};g.M(g6D,g.aI);g.Q=g6D.prototype;g.Q.S$=function(){if(this.J.N("web_player_max_seekable_on_ended")||!g.I(this.J.getPlayerStateObject(),2))this.progressBar.Yc(),this.dO.Yc()}; g.Q.cE=function(){this.N8();this.QH.U?this.S$():this.progressBar.QS()}; g.Q.TQ=function(){this.S$();this.K.start()}; g.Q.N8=function(){var d;if(d=!this.J.C().U){d=this.progressBar;var q=2*g.Mi()*d.X,T=d.j;d=(T.G-T.U)*1E3/d.api.getPlaybackRate()/q<300}d=d&&this.J.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;q=!d;this.QH.U||(d=q=!1);q?this.yv||(this.yv=this.W(this.J,"progresssync",this.S$)):this.yv&&(this.t1(this.yv),this.yv=null);d?this.K.isActive()||this.K.start():this.K.stop()}; g.Q.gz=function(){var d=this.J.rU(),q=this.J.OD().getPlayerSize(),T=this.J.OD().po,Y=N3Q(this),e=R_n(this),U=Math.max(q.width-Y*2,100);if(this.fn!==q.width||this.wO!==d||this.J.N("web_player_rtr_ctrls")&&this.Tg!==T)this.fn=q.width,this.wO=d,this.Tg=T,this.U.element.style.width=e+"px",this.U.element.style.left=Y+"px",g.Z_Q(this.progressBar,Y,e,d),this.J.nH().Mt=e;T=this.T;U=Math.min(570*(d?1.5:1),U);d=Math.min(413*(d?1.5:1),Math.round((q.height-xDg(this))*.82));T.maxWidth=U;T.maxHeight=d;T.OJ();this.N8(); this.lF&&Fkf(this.kx,q.height)}; g.Q.onVideoDataChange=function(){var d=this.J.getVideoData();this.xx.style.background=d.kc?d.Co:"";this.UD&&QK_(this.UD,d.showSeekingControls);this.lr&&QK_(this.lr,d.showSeekingControls)}; g.Q.tA=function(){return this.U.element};g.M(y9N,O8);g.Q=y9N.prototype;g.Q.Lm=function(d){d.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.gO("innertubeCommand",this.onClickCommand),this.aC())}; g.Q.aC=function(){this.enabled=!1;this.K.hide()}; g.Q.onVideoDataChange=function(d,q){d==="dataloaded"&&h__(this);d=[];var T,Y,e,U;if(q=(U=g.D((T=q.getWatchNextResponse())==null?void 0:(Y=T.playerOverlays)==null?void 0:(e=Y.playerOverlayRenderer)==null?void 0:e.suggestedActionsRenderer,bTI))==null?void 0:U.suggestedActions)for(T=g.E(q),Y=T.next();!Y.done;Y=T.next())(Y=g.D(Y.value,XBI))&&g.D(Y.trigger,UQx)&&d.push(Y);if(d.length!==0){T=[];d=g.E(d);for(Y=d.next();!Y.done;Y=d.next())if(Y=Y.value,e=g.D(Y.trigger,UQx))U=(U=Y.title)?g.gx(U):"View Chapters", q=e.timeRangeStartMillis,e=e.timeRangeEndMillis,q!=null&&e!=null&&Y.tapCommand&&(T.push(new g.Ij(q,e,{priority:9,namespace:"suggested_action_button_visible",id:U})),this.suggestedActions[U]=Y.tapCommand);this.J.ES(T)}}; g.Q.Cy=function(){return this.enabled}; g.Q.nz=function(){this.enabled?this.RU.start():pc(this);this.kq()}; g.Q.ir=function(){h__(this);O8.prototype.ir.call(this)};var OQ={},PF=(OQ.CHANNEL_NAME="ytp-title-channel-name",OQ.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",OQ.LINK="ytp-title-link",OQ.SESSIONLINK="yt-uix-sessionlink",OQ.SUBTEXT="ytp-title-subtext",OQ.TEXT="ytp-title-text",OQ.TITLE="ytp-title",OQ);g.M(WF,g.f);WF.prototype.onClick=function(d){this.api.logClick(this.element);var q=this.api.C(),T=this.api.getVideoUrl(!g.cG(d),!1,!0);g.dn(q)&&(q={},g.OF(this.api,"addEmbedsConversionTrackingParams",[q]),T=g.y6(T,q));g.pR(T,this.api,d)}; WF.prototype.S5=function(){var d=this.api.getVideoData(),q=this.api.C();this.updateValue("title",d.title);var T={Y:"a",D:PF.CHANNEL_NAME,Z:{href:"{{channelLink}}",target:"_blank"},j5:"{{channelName}}"};this.api.C().j&&(T={Y:"span",D:PF.CHANNEL_NAME,j5:"{{channelName}}",Z:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",T);HQ6(this);this.api.getPresentingPlayerType()===2&&(T=this.api.getVideoData(),T.videoId&&T.isListed&&T.author&&T.wO&&T.profilePicture?(this.updateValue("channelLink", T.wO),this.updateValue("channelName",T.author),this.updateValue("channelTitleFocusable","0")):HQ6(this));T=q.externalFullscreen||!this.api.isFullscreen()&&q.Vt;g.ep(this.link,PF.FULLERSCREEN_LINK,T);q.UD||!d.videoId||T||d.kc||q.j?this.G&&(this.updateValue("url",null),this.t1(this.G),this.G=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.G||(this.G=this.W(this.link,"click",this.onClick)));q.j&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.dn(q)?d.expandedTitle: d.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.M(g.CA,g.f);g.Q=g.CA.prototype;g.Q.setEnabled=function(d){if(this.type!=null)if(d)switch(this.type){case 3:case 2:ur(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.L=d}; g.Q.MS=function(d,q,T,Y,e,U,b,J){if(!this.rO||this.env.L){this.type===3&&this.QS();this.type!==1&&(g.o1(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.L&&this.fade.show(),this.U&&this.U.dispose(),(this.U=this.api.TN())&&this.U.subscribe("l",this.Ke,this));if(J){var F=g.Vp(this.bg).height||141;this.z2.style.bottom=F+2+"px"}else this.z2.style.display="none";this.env.N("delhi_modern_web_player")?(this.update({pillTimeStamp:T,pillTitle:U!=null?U:"",eduText:J!=null?J:""}),g.d9(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:T,title:U!=null?U:"",eduText:J!=null?J:""}),g.ep(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!U));this.api.isInline()&&g.d9(this.bottomText,"ytp-modern-tooltip-text");g.ep(this.element,"ytp-text-detail",!!Y);T=-1;this.U&&(T=Jw(this.U,243*this.scale),this.env.N("web_l3_storyboard")&&this.U.levels.length===4&&(T=this.U.levels.length-1),T=eyf(this.U,T,q));E6Y(this,T);if(b)switch(q=g.Vp(this.element).width,b){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=q+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=q/2+"px",this.title.style.textAlign="center"}c9n(this,!!Y,d,e)}}; g.Q.La=function(){this.type===1&&this.QS()}; g.Q.lK=function(d,q){if(this.type)if(this.type===3)this.QS();else return;Qt7(this,d,3,q)}; g.Q.U$=function(){this.G&&!this.B&&(this.env.N("player_tooltip_data_title_killswitch")?this.G.hasAttribute("title")&&(this.j=this.G.getAttribute("title")||"",this.G.removeAttribute("title"),this.L&&ur(this)):this.G.hasAttribute("data-tooltip-title")&&(this.j=this.G.getAttribute("data-tooltip-title")||"",this.G.removeAttribute("data-tooltip-title"),this.L&&ur(this)))}; g.Q.Ke=function(d,q){d<=this.T&&this.T<=q&&(d=this.T,this.T=NaN,E6Y(this,d))}; g.Q.nV=function(){TNQ(this.U,this.T,243*this.scale)}; g.Q.QS=function(){switch(this.type){case 2:var d=this.G;d.removeEventListener("mouseout",this.K);d.addEventListener("mouseover",this.X);d.removeEventListener("blur",this.K);d.addEventListener("focus",this.X);jtH(this);break;case 3:jtH(this);break;case 1:this.U&&(this.U.unsubscribe("l",this.Ke,this),this.U=null),this.api.removeEventListener("videoready",this.lr),this.UD.stop()}this.type=null;this.L&&this.fade.hide()}; g.Q.Jo=function(){if(this.G)for(var d=0;d=0;q--)if(this.YI[q]===d){this.YI.splice(q,1);break}fa(this.QH,64,this.YI.length>0)}; g.Q.EJ=function(){this.api.Tv()&&this.api.D7();return!!this.FR||r9j(this)||g.ql.prototype.EJ.call(this)}; g.Q.TT=function(){var d=!this.EJ(),q=d&&this.api.Tv()&&!g.I(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().kc&&!this.api.C().j&&!this.api.isEmbedsShortsMode(),T=this.PW&&g.m7(this.api)&&g.I(this.api.getPlayerStateObject(),128);d||T?(this.Hp.show(),this.dY.show()):(this.Hp.hide(),this.dY.hide(),this.api.Jo(this.J0.element));q?this.x9.St():this.x9.bF();this.nj&&FCH(this.nj,this.scv||!d);this.api.N("web_player_hide_overflow_button_if_empty_menu")&&tU1(this);g.ql.prototype.TT.call(this)}; g.Q.KZ=function(d,q,T,Y,e){d.style.left="";d.style.top="";d.style.bottom="";var U=g.Vp(d),b=Y||this.nj&&g.HB(this.nj.tA(),q),J=Y=null;T!=null&&b||(Y=g.Vp(q),J=g.vB(q,this.api.getRootNode()),T==null&&(T=J.x+Y.width/2));T-=U.width/2;b?(q=this.nj,Y=N3Q(q),J=R_n(q),b=this.api.OD().getPlayerSize().height,T=g.Cn(T,Y,Y+J-U.width),U=b-xDg(q)-U.height):g.HB(this.J0.element,q)?(q=this.api.OD().getPlayerSize().width,T=g.Cn(T,12,q-U.width-12),U=this.rU()?this.RJ:this.JV,this.api.C().playerStyle==="gvn"&&(U+= 20),this.PW&&(U-=this.rU()?26:18)):(q=this.api.OD().getPlayerSize(),T=g.Cn(T,12,q.width-U.width-12),U=J.y>(q.height-Y.height)/2?J.y-U.height-12:J.y+Y.height+12);d.style.top=U+(e||0)+"px";d.style.left=T+"px"}; g.Q.cE=function(d){d&&(this.api.Jo(this.J0.element),this.nj&&this.api.Jo(this.nj.tA()));this.q9&&(g.ep(this.contextMenu.element,"ytp-autohide",d),g.ep(this.contextMenu.element,"ytp-autohide-active",!0));g.ql.prototype.cE.call(this,d)}; g.Q.Ob=function(){g.ql.prototype.Ob.call(this);this.q9&&(g.ep(this.contextMenu.element,"ytp-autohide-active",!1),this.q9&&(this.contextMenu.hide(),this.ag&&this.ag.hide()))}; g.Q.Xb=function(d,q){var T=this.api.OD().getPlayerSize();T=new g.WB(0,0,T.width,T.height);if(d||this.QH.U&&!this.EJ()){if(this.api.C().Y6||q)d=this.rU()?this.RJ:this.JV,T.top+=d,T.height-=d;this.nj&&(T.height-=xDg(this.nj))}return T}; g.Q.xX=function(d){var q=this.api.getRootNode();d?q.parentElement?(q.setAttribute("aria-label","\u5168\u5c4f\u6a21\u5f0f\u4e0b\u7684 YouTube \u89c6\u9891\u64ad\u653e\u5668"),this.api.C().externalFullscreen||(q.parentElement.insertBefore(this.o7.element,q),q.parentElement.insertBefore(this.UE.element,q.nextSibling))):g.Zz(Error("Player not in DOM.")):(q.setAttribute("aria-label","YouTube \u89c6\u9891\u64ad\u653e\u5668"),this.o7.detach(),this.UE.detach());this.gz();this.zB()}; g.Q.rU=function(){var d=this.api.C();return this.api.isFullscreen()&&!d.L||!1}; g.Q.showControls=function(d){this.DF=!d;this.TT()}; g.Q.gz=function(){var d=this.rU();this.tooltip.scale=d?1.5:1;this.contextMenu&&g.ep(this.contextMenu.element,"ytp-big-mode",d);this.TT();this.api.N("web_player_hide_overflow_button_if_empty_menu")||tU1(this);this.zB();var q=this.api.isEmbedsShortsMode();q&&d?(d=(this.api.OD().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Dv(this.J0.element,"padding-left",d+"px"),g.Dv(this.J0.element,"padding-right",d+"px")):q&&(g.Dv(this.J0.element,"padding-left",""),g.Dv(this.J0.element,"padding-right", ""));g.ql.prototype.gz.call(this)}; g.Q.k8=function(){if(r9j(this)&&!g.m7(this.api))return!1;var d=this.api.getVideoData();return!g.dn(this.api.C())||this.api.getPresentingPlayerType()===2||!this.mV||((d=this.mV||d.mV)?(d=d.embedPreview)?(d=d.thumbnailPreviewRenderer,d=d.videoDetails&&g.D(d.videoDetails,Cv_)||null):d=null:d=null,d&&d.collapsedRenderer&&d.expandedRenderer)?g.ql.prototype.k8.call(this):!1}; g.Q.zB=function(){g.ql.prototype.zB.call(this);this.api.logVisibility(this.title.element,!!this.CS);this.VW&&this.VW.N5(!!this.CS);this.channelAvatar.N5(!!this.CS);this.overflowButton&&this.overflowButton.N5(this.Rl()&&!!this.CS);this.shareButton&&this.shareButton.N5(!this.Rl()&&!!this.CS);this.XU&&this.XU.N5(!this.Rl()&&!!this.CS);this.searchButton&&this.searchButton.N5(!this.Rl()&&!!this.CS);this.copyLinkButton&&this.copyLinkButton.N5(!this.Rl()&&!!this.CS);if(!this.CS){this.api.Jo(this.J0.element); for(var d=0;d5&&q.oU("glrs",{cmt:T});q.seekTo(0,{seekSource:58});q.oU("glrre",{cmt:T})}}; fA.prototype.ir=function(){this.G=null;g.W.prototype.ir.call(this)};g.M(g.zj,he);g.Q=g.zj.prototype;g.Q.isView=function(){return!0}; g.Q.tX=function(){var d=this.mediaElement.getCurrentTime();if(d1;oI(d.Zm(),Y-.01)&&!e&&(Ik(this,4),T.isActive=!1,T.DZ=T.DZ||T.isActive,(this.S===1?this.G:this.U).oU("sbh",{}),q.isActive=!0,q.DZ=q.DZ||q.isActive,this.S!==0&&(this.G.getVideoData().pR=!0));d=this.T.U;if(this.T.G.isActive&&d.isActive&&(Ik(this,5),this.S!==0)){d=this.U.Ko();T=this.G.Ko(); this.G.oU("sbs",{citag:T==null?void 0:T.itag,nitag:d==null?void 0:d.itag});this.U.oU("gitags",{pitag:T==null?void 0:T.itag,citag:d==null?void 0:d.itag});var U;(U=this.U)==null||U.sU()}}}; g.Q.Pn=function(){this.GO()&&this.Kj("player-reload-after-handoff")}; g.Q.Kj=function(d,q){q=q===void 0?{}:q;if(!this.JF()&&this.status.status!==6){var T=this.status.status>=4&&d!=="player-reload-after-handoff";this.status={status:Infinity,error:d};if(this.G&&this.U){var Y=this.U.getVideoData().clientPlaybackNonce;this.G.jT(new g.xV("dai.transitionfailure",Object.assign(q,{cpn:Y,transitionTimeMs:this.yP,msg:d})));this.G.Lb(T)}this.l3.reject(d);this.dispose()}}; g.Q.GO=function(){return this.status.status>=4&&this.status.status<6}; g.Q.ir=function(){fH7(this);this.G.unsubscribe("newelementrequired",this.Pn,this);if(this.j){var d=this.j.U;this.j.G.KC.unsubscribe("updateend",this.BV,this);d.KC.unsubscribe("updateend",this.BV,this)}g.W.prototype.ir.call(this)}; g.Q.tH=function(d){g.gs(d,128)&&this.Kj("player-error-event")};g.M(mN,g.W);mN.prototype.clearQueue=function(d,q){d=d===void 0?!1:d;q=q===void 0?!1:q;this.T&&this.T.reject("Queue cleared");this.app.C().N("html5_gapless_fallback_on_qoe_restart_v2")||q&&this.U&&this.U.Lb(!1);Sw(this,d)}; mN.prototype.MN=function(){return!this.G}; mN.prototype.GO=function(){var d;return((d=this.j)==null?void 0:d.GO())||!1}; mN.prototype.ir=function(){Sw(this);g.W.prototype.ir.call(this)};g.M(o66,g.YP);g.Q=o66.prototype;g.Q.getVisibilityState=function(d,q,T,Y,e,U,b,J){return d?4:qVg()?3:q?2:T?1:Y?5:e?7:U?8:b?9:J?10:0}; g.Q.Cp=function(d){this.fullscreen!==d&&(this.fullscreen=d,this.nz())}; g.Q.setMinimized=function(d){this.U!==d&&(this.U=d,this.nz())}; g.Q.setInline=function(d){this.inline!==d&&(this.inline=d,this.nz())}; g.Q.Bx=function(d){this.pictureInPicture!==d&&(this.pictureInPicture=d,this.nz())}; g.Q.setSqueezeback=function(d){this.j!==d&&(this.j=d,this.nz())}; g.Q.mp=function(d){this.T!==d&&(this.T=d,this.nz())}; g.Q.pA=function(){return this.G}; g.Q.hW=function(){return this.fullscreen!==0}; g.Q.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.Q.I7=function(){return this.fullscreen}; g.Q.isMinimized=function(){return this.U}; g.Q.isInline=function(){return this.inline}; g.Q.isBackground=function(){return qVg()}; g.Q.Kx=function(){return this.pictureInPicture}; g.Q.YM=function(){return!1}; g.Q.vE=function(){return this.j}; g.Q.E6=function(){return this.T}; g.Q.nz=function(){this.publish("visibilitychange");var d=this.getVisibilityState(this.pA(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Kx(),this.YM(),this.vE(),this.E6());d!==this.X&&this.publish("visibilitystatechange");this.X=d}; g.Q.ir=function(){e5Q(this.S);g.YP.prototype.ir.call(this)};g.M(g.lr,g.W);g.Q=g.lr.prototype;g.Q.ir=function(){this.videoData=this.playerState=null;g.W.prototype.ir.call(this)}; g.Q.addCueRange=function(){}; g.Q.Td=function(){}; g.Q.vC=function(){}; g.Q.y4=function(){return!1}; g.Q.h7=function(){return!1}; g.Q.bX=function(){}; g.Q.pB=function(){}; g.Q.uX=function(){return[]}; g.Q.e_=function(){}; g.Q.getAudioTrack=function(){return this.getVideoData().Pa}; g.Q.n9=function(){return null}; g.Q.getAvailableAudioTracks=function(){return[]}; g.Q.N4=function(){return[]}; g.Q.SE=function(){return[]}; g.Q.aQ=function(){return""}; g.Q.lw=function(){return[]}; g.Q.F4=function(){}; g.Q.tE=function(){return 0}; g.Q.getCurrentTime=function(){return 0}; g.Q.D6=function(){}; g.Q.Ko=function(){}; g.Q.BF=function(){return{}}; g.Q.getDuration=function(){return 0}; g.Q.d4=function(){return 0}; g.Q.fH=function(){return 0}; g.Q.g_=function(){return!1}; g.Q.Jt=function(){return 0}; g.Q.sP=function(){return 0}; g.Q.x6=dI(7);g.Q.Rf=function(){return 0}; g.Q.AC=function(){return!1}; g.Q.Jq=function(){return 0}; g.Q.WG=function(){return null}; g.Q.Eg=function(){return null}; g.Q.BG=function(){return 0}; g.Q.g3=function(){return 0}; g.Q.U6=function(){return g.G(function(d){g.E6(d)})}; g.Q.UZ=dI(15);g.Q.getPlaybackQuality=function(){return"auto"}; g.Q.getPlaybackRate=function(){return 1}; g.Q.getPlayerState=function(){this.playerState||(this.playerState=new g.EX);return this.playerState}; g.Q.getPlayerType=function(){return 0}; g.Q.getPlaylistSequenceForTime=function(){return null}; g.Q.iS=function(){return function(){}}; g.Q.gK=function(){return""}; g.Q.getPreferredQuality=function(){return"unknown"}; g.Q.NI=function(){}; g.Q.getProximaLatencyPreference=function(){return 0}; g.Q.U9=function(){return xp}; g.Q.TN=function(){return null}; g.Q.getStoryboardFormat=function(){return null}; g.Q.getStreamTimeOffset=function(){return 0}; g.Q.il=function(){return 0}; g.Q.mz=function(){return 0}; g.Q.K9=function(){return{AJ:[],y9:[],currentTime:0,ZC:"",droppedVideoFrames:0,isGapless:!1,MN:!0,Xp:0,x$:0,AU:0,B2:0,Zz:0,Ve:[],En:[],Sf:null,playerState:this.getPlayerState(),gI:null,R2:"",totalVideoFrames:0}}; g.Q.getUserAudio51Preference=function(){return 0}; g.Q.getUserPlaybackQualityPreference=function(){return""}; g.Q.getVideoData=function(){this.videoData||(this.videoData=new g.yM(this.Pv),g.C(this,this.videoData));return this.videoData}; g.Q.I_=function(){return null}; g.Q.Av=function(){return null}; g.Q.Sh=function(){}; g.Q.getVideoLoadedFraction=function(){return 0}; g.Q.g9=function(){}; g.Q.handleError=function(){}; g.Q.Lb=function(){}; g.Q.rE=function(){}; g.Q.Qj=dI(40);g.Q.S8=function(){return!1}; g.Q.hasSupportedAudio51Tracks=function(){return!1}; g.Q.k6=function(){return!1}; g.Q.pA=function(){return!1}; g.Q.isAtLiveHead=function(){return!1}; g.Q.Kb=function(){return!0}; g.Q.isGapless=function(){return!1}; g.Q.isHdr=function(){return!1}; g.Q.Kl=function(){return!1}; g.Q.kD=function(){return!1}; g.Q.HE=function(){return!1}; g.Q.isProximaLatencyEligible=function(){return!1}; g.Q.MN=function(){return!0}; g.Q.JO=function(){return!1}; g.Q.jI=function(){return!1}; g.Q.V_=function(){}; g.Q.sO=function(){}; g.Q.sU=function(){}; g.Q.h3=function(){}; g.Q.eR=function(){}; g.Q.SB=function(){}; g.Q.EU=function(){}; g.Q.xz=dI(50);g.Q.Gz=dI(21);g.Q.Be=function(){}; g.Q.pauseVideo=function(){}; g.Q.prefetchKeyPlay=function(){}; g.Q.playVideo=function(){return g.G(function(d){return d.return()})}; g.Q.Xi=function(){}; g.Q.xL=dI(27);g.Q.Ak=dI(33);g.Q.a$=function(){}; g.Q.oU=function(){}; g.Q.WR=function(){}; g.Q.Nd=function(){}; g.Q.Ly=function(){}; g.Q.jT=function(){}; g.Q.uH=function(){}; g.Q.dn=function(){}; g.Q.JP=function(){}; g.Q.lM=function(){}; g.Q.J2=function(){}; g.Q.Zp=function(){}; g.Q.removeCueRange=function(){}; g.Q.TD=function(){}; g.Q.hm=function(){return[]}; g.Q.B$=function(){}; g.Q.Hf=function(){}; g.Q.zW=function(){}; g.Q.zm=function(){}; g.Q.L0=function(){}; g.Q.mN=function(){}; g.Q.seekTo=function(){}; g.Q.sendAbandonmentPing=function(){}; g.Q.sendVideoStatsEngageEvent=function(){}; g.Q.Wx=function(){}; g.Q.setLoop=function(){}; g.Q.kK=function(){}; g.Q.setMediaElement=function(){}; g.Q.uY=function(){}; g.Q.setPlaybackRate=function(){}; g.Q.o6=function(){}; g.Q.Z1=function(){}; g.Q.Lz=function(){}; g.Q.setProximaLatencyPreference=function(){}; g.Q.v6=function(){}; g.Q.XG=function(){}; g.Q.xG=function(){}; g.Q.Sb=function(){}; g.Q.Go=function(){}; g.Q.setUserAudio51Preference=function(){}; g.Q.KD=function(){}; g.Q.Tz=function(){return!1}; g.Q.Yp=function(){}; g.Q.oF=function(){return!1}; g.Q.Z8=function(){}; g.Q.n5=function(){}; g.Q.Nn=function(){}; g.Q.stopVideo=function(){}; g.Q.subscribe=function(){return NaN}; g.Q.Ts=function(){}; g.Q.togglePictureInPicture=function(){}; g.Q.lT=function(){return 0}; g.Q.unsubscribe=function(){return!1}; g.Q.jC=function(){}; g.Q.mG=function(){return!1}; g.Q.M2=function(){}; g.Q.eO=function(){}; g.Q.Ql=function(){};g.M(VW,g.W);g.Q=VW.prototype;g.Q.get=function(d){vF(this);var q=this.data.find(function(T){return T.key===d}); return q?q.value:null}; g.Q.set=function(d,q,T){this.remove(d,!0);vF(this);d={key:d,value:q,expire:Infinity};T&&isFinite(T)&&(T*=1E3,d.expire=(0,g.cj)()+T);for(this.data.push(d);this.data.length>this.j;)(T=this.data.shift())&&da(this,T,!0);ok(this)}; g.Q.remove=function(d,q){q=q===void 0?!1:q;var T=this.data.find(function(Y){return Y.key===d}); T&&(da(this,T,q),g.OI(this.data,function(Y){return Y.key===d}),ok(this))}; g.Q.removeAll=function(d){if(d=d===void 0?!1:d)for(var q=g.E(this.data),T=q.next();!T.done;T=q.next())da(this,T.value,d);this.data=[];ok(this)}; g.Q.ir=function(){var d=this;g.W.prototype.ir.call(this);this.data.forEach(function(q){da(d,q,!0)}); this.data=[]};g.M(g.qU,g.W);g.Q=g.qU.prototype;g.Q.ir=function(){for(var d=g.E(Object.values(this.j)),q=d.next();!q.done;q=d.next())q.value.dispose();VUj(this);this.G.dispose();g.W.prototype.ir.call(this)}; g.Q.YP=function(d){return d?d===1?this.B:this.U.getVideoData().enableServerStitchedDai&&d===2?this.U.getVideoData().nL?this.j[2]||this.U:this.U:this.j[d]||null:this.U}; g.Q.dk=function(d){var q=d.cpn;d=d.playerType;if(q)a:{d=g.E(Object.values(this.j));for(var T=d.next();!T.done;T=d.next())if(T=T.value,T.aQ()===q){q=T;break a}q=this.X[q]||null}else q=d?this.YP(d):this.U;return q}; g.Q.UM=function(){return this.B}; g.Q.Oh=function(d){this.B=d}; g.Q.Lf=function(){return this.U}; g.Q.D8=function(d){this.U=d;Tr(this)}; g.Q.CD=dI(46);g.Q.X_=dI(48);g.M(JO6,g.Uc);g.Q=JO6.prototype;g.Q.NR=function(){}; g.Q.aQ=function(){return this.videoData.clientPlaybackNonce}; g.Q.getVideoData=function(){if(g.Uc.prototype.getVideoData.call(this).N("html5_huli_ssdai_use_playback_state")){var d=rO1(this.Rd,g.Uc.prototype.getCurrentTime.call(this))||g.Uc.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==d.clientPlaybackNonce&&sv2(this.G,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:d.clientPlaybackNonce});return this.videoData}return rO1(this.Rd,g.Uc.prototype.getCurrentTime.call(this))||g.Uc.prototype.getVideoData.call(this)}; g.Q.getCurrentTime=function(d){var q=g.Uc.prototype.getCurrentTime.call(this);if(g.Uc.prototype.getVideoData.call(this).N("html5_huli_ssdai_use_playback_state")){this.endTime===0?d||(q-=this.startTime):d&&(q=this.endTime-this.startTime);var T=d?this.Rd.CZ||q:pQf(this.Rd,q);q!==T&&sv2(this.G,"time"+(d!=null?d:!1),{time:q,ref:T,ct:d!=null?d:!1})}else q=d?this.Rd.CZ||q:pQf(this.Rd,q);return q}; g.Q.getDuration=function(){if(g.Uc.prototype.getVideoData.call(this).N("html5_huli_ssdai_use_playback_state")){var d=OD_(this.Rd,g.Uc.prototype.getCurrentTime.call(this));this.duration!==d&&sv2(this.G,"duration",{dur:this.duration,ref:d});return this.duration}return OD_(this.Rd,g.Uc.prototype.getCurrentTime.call(this))}; g.Q.lV=function(d){this.duration=d};g.ek.prototype.V9=function(d,q){if(q===1)return this.G.get(d);if(q===2)return this.j.get(d);if(q===3)return this.U.get(d)}; g.ek.prototype.iT=dI(58);g.ek.prototype.wb=function(d,q,T,Y){T={aI:Y,lZ:T};q?this.j.set(d,T):this.G.set(d,T)}; g.ek.prototype.clearAll=function(){this.G.clear();this.j.clear();this.U.clear()}; ga2.prototype.clear=function(){this.G=[];this.j.clear();this.T.clear();this.U.clear()}; ga2.prototype.dk=function(d){var q=d.cpn;d=d.HG;if(q&&(q=this.j.get(q))||d&&(q=this.T.get(d)))return q}; g.M(g.Ue,g.W);g.Q=g.Ue.prototype;g.Q.onCueRangeEnter=function(d){var q=d.getId();this.oN({oncueEnter:1,cpn:q,start:d.start,end:d.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.tE()||0).toFixed(3)});var T=this.G.dk({cpn:q});this.oN({enterAdCueRange:1});var Y=this.Ae||this.D0().cpn,e;Y=(e=this.G.dk({cpn:Y}))!=null?e:this.D0();T&&(e=this.playback.getCurrentTime(),T={Y8:Y,z6:T,p7:e},lE7(this,q,d.start/1E3,e),Spf(this,T))}; g.Q.FZ=function(d,q){if(d===this.playback.aQ())Yi(this.app.v3(),this.playback,!1);else{var T=this.z2.get(d);T?(T.endTime=0,T.startTime=q,Yi(this.app.v3(),T,!0)):this.oN({nop_s:d})}}; g.Q.onCueRangeExit=function(d){for(var q=this.playback.getCurrentTime()*1E3,T=d.getId(),Y=g.E(this.U.values()),e=Y.next();!e.done;e=Y.next())if(e=e.value,e.getId()!==T&&q>=e.start&&q<=e.end)return;if(T=this.G.dk({cpn:T}))q=this.playback.getCurrentTime(),T={Y8:T,z6:this.D0(),p7:q},lE7(this,this.playback.aQ(),d.end/1E3,q),Spf(this,T)}; g.Q.D0=function(){return{cpn:this.playback.aQ(),durationMs:0,PG:0,playerType:1,lC:0,videoData:this.playback.getVideoData(),errorCount:0,UP:""}}; g.Q.seekTo=function(d,q,T,Y){d=d===void 0?0:d;q=q===void 0?{}:q;T=T===void 0?!1:T;Y=Y===void 0?null:Y;Fh(this,this.Ae);if(this.playback.getVideoData().y5()&&d<=this.CZ)this.playback.pauseVideo(),this.CZ=0,va2(this,d);else if(this.lr=!0,T)yOg(this,d,q);else{T=this.app.Lf();var e=T===this.rO?this.AF:null;se(this,!1);this.kx=d;this.Bv=q;Y!=null&&this.Fw.start(Y);T&&(this.AF=e||T.getPlayerState(),T.Nn(q),this.rO=T)}}; g.Q.ir=function(){se(this,!1);BH1(this);KmX(this);g.W.prototype.ir.call(this)}; g.Q.AX=function(d){this.fn=d;this.oN({swebm:d})}; g.Q.RQ=function(d,q,T){if(T&&q){var Y=this.S.get(d);if(Y){Y.locations||(Y.locations=new Map);var e=Number(q.split(";")[0]);T=new g.Ig(T);this.oN({hdlredir:1,itag:q,seg:d,hostport:SK(T)});Y.locations.set(e,T)}}}; g.Q.Ta=function(d,q,T,Y,e,U){var b=Y===3,J=kvn(this,d,q,Y,T,U);if(!J){$i(this,q,b);var F=g.GvD(this,q)?"undec":"ncp";this.oN({gvprp:F,mt:d,seg:q,tt:Y,itag:T,ce:U});return null}b||this.S.set(q,J);U=J.UP;var N;Y=((N=this.V9(q-1,Y,e))==null?void 0:N.aI)||"";Y===""&&this.oN({eds:1});N=Wmj(this,J.ssdaiAdsConfig);e=this.playback.getVideoData();var R;b=((R=e.U)==null?void 0:R.containerType)||0;R=e.Xc[b];J=J.WW&&q>=J.WW?J.WW:void 0;R={cJ:U?wQI(this,U):[],KU:N,aI:Y,zo:J,Ac:BZ(R.split(";")[0]),gM:R.split(";")[1]|| ""};J={Gs:R};this.aU&&(d={gvprpro:"v",sq:q,mt:d.toFixed(3),itag:T,acpns:((F=R.cJ)==null?void 0:F.join("_"))||"none",abid:U},this.oN(d));return J}; g.Q.Mh=function(d){a:{if(!this.q0){var q=Phf(this,d);if(!(this.playback.getVideoData().y5()&&(q==null?0:q.XD)))break a}q=void 0}var T=q;if(!T)return this.oN({gvprp:"ncp",mt:d}),null;q=T.UP;var Y=Wmj(this,T.ssdaiAdsConfig);T=T.WW&&T.lm&&d>=T.lm?T.WW:void 0;var e=this.playback.getVideoData(),U,b=((U=e.U)==null?void 0:U.containerType)||0;U=e.Xc[b];U={cJ:q?wQI(this,q):[],KU:Y,zo:T,Ac:BZ(U.split(";")[0]),gM:U.split(";")[1]||""};var J;d={gvprpro:"v",mt:d.toFixed(3),acpns:((J=U.cJ)==null?void 0:J.join("_"))|| "none",abid:q};this.oN(d);return U}; g.Q.xF=function(d,q,T,Y,e,U){var b=Number(T.split(";")[0]),J=Y===3;d=kvn(this,d,q,Y,T,U);this.oN({gdu:1,seg:q,itag:b,pb:""+!!d});if(!d)return $i(this,q,J),null;d.locations||(d.locations=new Map);if(!d.locations.has(b)){var F,N;U=(F=d.videoData.getPlayerResponse())==null?void 0:(N=F.streamingData)==null?void 0:N.adaptiveFormats;if(!U)return this.oN({gdu:"noadpfmts",seg:q,itag:b}),$i(this,q,J),null;F=U.find(function(y){return y.itag===b}); if(!F||!F.url){var R=d.videoData.videoId;d=[];var x=g.E(U);for(Y=x.next();!Y.done;Y=x.next())d.push(Y.value.itag);this.oN({gdu:"nofmt",seg:q,vid:R,itag:b,fullitag:T,itags:d.join(",")});$i(this,q,J);return null}d.locations.set(b,new g.Ig(F.url,!0))}U=d.locations.get(b);if(!U)return this.oN({gdu:"nourl",seg:q,itag:b}),$i(this,q,J),null;U=new Wt(U);this.fn&&(U.get("dvc")?this.oN({dvc:U.get("dvc")||""}):U.set("dvc","webm"));(Y=(x=this.V9(q-1,Y,e))==null?void 0:x.aI)&&U.set("daistate",Y);d.WW&&q>=d.WW&& U.set("skipsq",""+d.WW);(x=this.playback.getVideoData().clientPlaybackNonce)&&U.set("cpn",x);x=[];d.UP&&(x=wQI(this,d.UP),x.length>0&&U.set("acpns",x.join(",")));J||this.S.set(q,d);J=null;J=U.get("aids");Y=U.Hl();(Y==null?void 0:Y.length)>2048&&this.oN({urltoolong:1,sq:q,itag:b,len:Y.length});this.aU&&(Y&&(U=d.cpn,e=d.UP,iDj(this,U,e),e&&!this.ev.has(e)&&(U=fEj(this,U,e),F=zLg(this,e),this.oN({iofa:U}),this.oN({noawnzd:F-U}),this.oN({acpns:x.join("."),aids:(R=J)==null?void 0:R.replace(/,/g,".")}), this.ev.add(e))),this.oN({gdu:"v",seg:q,itag:T,ast:d.PG.toFixed(3),alen:d.durationMs.toFixed(3),acpn:d.cpn,avid:d.videoData.videoId}));return Y}; g.Q.gJ=function(d,q,T){T=T===void 0?!1:T;var Y=Lmn(this,d,q);if(Y){var e=void 0,U=Y.UP;if(U){this.oN({skipadonsq:q,sts:T,abid:U,acpn:Y.cpn,avid:Y.videoData.videoId});T=this.G.U.get(U);if(!T)return;T=g.E(T);for(U=T.next();!U.done;U=T.next())U=U.value,U.WW=q,U.lm=d,U.PG>Y.PG&&(e=U)}Fh(this,this.Ae);this.j=Y.cpn;ChX(this);d=this.playback.getCurrentTime();u9D(this,Y,e,d,d,!1,!0);mrf(this)}}; g.Q.LD=function(){for(var d=g.E(this.G.G),q=d.next();!q.done;q=d.next())q=q.value,q.WW=NaN,q.lm=NaN;ChX(this);this.oN({rsac:"resetSkipAd",sac:this.j});this.qk.delete(this.j);this.j=""}; g.Q.V9=function(d,q,T){return this.UD.V9(d,q,T)}; g.Q.iT=dI(57); g.Q.wb=function(d,q,T,Y,e,U,b,J,F){Y.length>0&&this.oN({onssinfo:1,sq:d,start:q.toFixed(3),cpns:Y.join(","),ds:e.join(","),isVideo:b?1:0});F&&this.UD.wb(d,b,J,F);if(b){if(Y.length&&e.length)for(this.qk.has(Y[0])&&this.oN({skipfail:1,sq:d,acpn:Y[0]}),d=q+this.il(),T=0;T0&&(this.Yk=0,this.Ae="",this.api.publish("serverstitchedvideochange"));this.playback.pB(T,Y);return!0}; g.Q.Dn=function(){this.oN({rstdaist:1});this.UD.clearAll()}; g.Q.uI=function(d){var q;if(d!==((q=this.X)==null?void 0:q.identifier))this.oN({ignorenoad:d});else{this.xx.add(d);this.oN({noadrcv:d});var T;((T=this.X)==null?void 0:T.identifier)===d&&Xh(this)}}; g.Q.sI=function(d){if(this.q0)return this.oN({dai_disabled:d.event}),!1;if(this.playback.getVideoData().y5()&&(this.Pv.N("html5_lifa_no_gab_on_predict_start")&&d.event==="predictStart"||d.event==="continue"||d.event==="stop"))return!1;var q=Wc(this.api.M5());if(q=q?q.sI(d):!1)this.T={mP:d.identifier,dR:d.startSecs};else if(this.T&&this.T.mP===d.identifier&&d.startSecs>this.T.dR+1){this.oN({cueStChg:d.identifier,oldSt:this.T.dR.toFixed(3),newSt:d.startSecs.toFixed(3),abid:this.T.u_});if(this.T.u_){var T= d.startSecs-this.T.dR,Y=this.G.U.get(this.T.u_);if(Y){Y=g.E(Y);for(var e=Y.next();!e.done;e=Y.next())e=e.value,e.PG>=0&&(e.PG+=T*1E3,this.Pv.N("html5_ssdai_update_timeline_on_start_time_change")&&(e.lC+=T*1E3),this.oN({newApEt:e.PG,newApPrt:e.lC,acpn:e.cpn}))}}this.T.dR=d.startSecs}return q}; g.Q.jX=function(d){return this.q0?!1:!!Phf(this,d)}; g.Q.fN=function(d){var q=this;if(this.Pv.N("html5_lifa_ignore_multiple_skips")&&this.yv)return this.oN({ufs_ad:this.j,ufs_cur:this.Ae,ufs_cont:this.D0().cpn}),!1;Fh(this,this.Ae);this.playback.pauseVideo();var T=this.playback.getCurrentTime(),Y=this.G.dk({cpn:this.Ae});if(!Y)return this.oN({skipFail:T}),!1;this.j=this.Ae;this.lr=!1;IEn(this,Y.UP);oaN(this,Y,this.D0(),d);va2(this,T,{seekSource:89,b$:"lifa_skip"});this.yv||(this.yv=this.events.W(this.api,"progresssync",function(){aN(q.api.GN(),(0,g.cj)(), "ad_to_video");q.yv&&(q.events.t1(q.yv),q.yv=null)})); return!0}; g.Q.oN=function(d,q){((q===void 0?0:q)||this.aU||this.playback.getVideoData().y5())&&this.playback.oU("sdai",d)}; var McQ=0;g.M(dT_,g.W);g.Q=dT_.prototype;g.Q.onCueRangeEnter=function(d){if(this.G===this.app.Lf()){var q=this.S.get(d);q?bxj(this,q.target,q.yP,d):this.jT("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:d.toString()})}else if(q=this.U.find(function(e){return e.Jv.SF===d})){var T=q.Jv,Y=T.target; T=T.yP;Y?bxj(this,Y,T,d):UT6(this,q.lC,T,d)}}; g.Q.onQueuedVideoLoaded=function(){var d=this.L;y3(this);if(d){if(!xi(this,d)){var q=this.app.Lf();this.jT("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:q==null?void 0:q.getVideoData().clientPlaybackNonce,ccpn:""+d.playerVars.cpn})}this.app.Lf().addCueRange(d.Jv.SF)}}; g.Q.seekTo=function(d,q,T,Y){d=d===void 0?0:d;q=q===void 0?{}:q;Y=Y===void 0?null:Y;if(T===void 0?0:T)VcX(this,d,q);else{T=this.app.Lf()||null;var e=T===this.T?this.X:null;ha(this,!1);this.lr=d;this.K=q;Y!=null&&this.B.start(Y);T&&(this.X=e||T.getPlayerState(),T.Nn(),this.T=T)}}; g.Q.h0=function(d){g.gs(d,128)&&gR7(this)}; g.Q.isManifestless=function(){return kp(this.G.getVideoData())}; g.Q.ir=function(){ha(this,!1);NoQ(this);g.W.prototype.ir.call(this)}; g.Q.jT=function(d,q){this.G.jT(new g.xV(d,q))}; var ql1=0;var RCD="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.M(H1,g.W);H1.prototype.x4=function(d){if(d)return this.U.get(d)}; H1.prototype.ir=function(){this.G.removeAll();this.U.removeAll();g.W.prototype.ir.call(this)};g.vQs=t4(function(){var d=window.AudioContext||window.webkitAudioContext;try{return new d}catch(q){return q.name}});g.M(QGg,g.f);g.Q=QGg.prototype;g.Q.iG=function(){g.qg(this.element,g.CN.apply(0,arguments))}; g.Q.Hf=function(){this.Cn&&(this.Cn.removeEventListener("focus",this.UL),g.h4(this.Cn),this.Cn=null)}; g.Q.Ku=function(){this.JF();var d=this.app.C();d.bV||this.iG("tag-pool-enabled");d.X&&this.iG(g.Eo.HOUSE_BRAND);d.playerStyle==="gvn"&&(this.iG("ytp-gvn"),this.element.style.backgroundColor="transparent");d.vF&&(this.Lu=g.ST("yt-dom-content-change",this.resize,this));this.W(window,"orientationchange",this.resize,this);this.W(window,"resize",this.resize,this)}; g.Q.C0=function(d){g.Um(this.app.C());this.aR=!d;Q3(this)}; g.Q.resize=function(){if(this.Cn){var d=this.yS();if(!d.isEmpty()){var q=g.Yv(this.app.C().experiments,"html5_android_mweb_resize_delay")>0,T=this.app.mZ.isFullscreen();if(q&&T&&PL()){var Y;(Y=this.RS)==null||Y.start()}q=!g.i4(d,this.iY.getSize());T=a1D(this);q&&(this.iY.width=d.width,this.iY.height=d.height);d=this.app.C();(T||q||this.rg||d.vF)&&this.app.mZ.publish("resize",this.getPlayerSize())}}}; g.Q.qF=function(d,q){this.updateVideoData(q)}; g.Q.updateVideoData=function(d){if(this.Cn){var q=this.app.C();uR&&(this.Cn.setAttribute("x-webkit-airplay","allow"),d.title?this.Cn.setAttribute("title",d.title):this.Cn.removeAttribute("title"));this.Cn.setAttribute("controlslist","nodownload");q.u3&&d.videoId&&(this.Cn.poster=d.Qg("default.jpg"))}q=g.If(d,"yt:bgcolor");this.t6.style.backgroundColor=q?q:"";this.Eb=qs(g.If(d,"yt:stretch"));this.ek=qs(g.If(d,"yt:crop"),!0);g.ep(this.element,"ytp-dni",d.kc);this.resize()}; g.Q.setGlobalCrop=function(d){this.hD=qs(d,!0);this.resize()}; g.Q.setCenterCrop=function(d){this.wu=d;this.resize()}; g.Q.Cp=function(){}; g.Q.getPlayerSize=function(){var d=this.app.C(),q=this.app.mZ.isFullscreen(),T=d.externalFullscreen&&g.dn(d);if(q&&PL()&&!T)return new g.zP(window.outerWidth,window.outerHeight);T=!isNaN(this.lE.width)&&!isNaN(this.lE.height);var Y=this.app.C().N("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.C().N("web_watch_enable_fs_squeezeback_panels");if(q&&!T&&Y)return new g.zP(this.element.clientWidth,this.element.clientHeight);if(q||d.sZ){if(window.matchMedia){d="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.aE&&this.aE.media===d||(this.aE=window.matchMedia(d));var e=this.aE&&this.aE.matches}if(e)return new g.zP(window.innerWidth,window.innerHeight)}else if(T)return this.lE.clone();return new g.zP(this.element.clientWidth,this.element.clientHeight)}; g.Q.yS=function(){var d=this.app.C().N("enable_desktop_player_underlay"),q=this.getPlayerSize(),T=g.Yv(this.app.C().experiments,"player_underlay_min_player_width");return d&&this.Cg&&q.width>T?(d=g.Yv(this.app.C().experiments,"player_underlay_video_width_fraction"),new g.zP(Math.min(q.height*this.getVideoAspectRatio(),q.width*d),Math.min(q.height,q.width*d/this.getVideoAspectRatio()))):q}; g.Q.getVideoAspectRatio=function(){return isNaN(this.Eb)?chY(this):this.Eb}; g.Q.getVideoContentRect=function(d){var q=this.yS();d=ERj(this,q,this.getVideoAspectRatio(),d);return new g.WB((q.width-d.width)/2,(q.height-d.height)/2,d.width,d.height)}; g.Q.Kt=function(d){this.Cg=d;this.resize()}; g.Q.uB=function(){return this.Qc}; g.Q.onMutedAutoplayChange=function(){Q3(this)}; g.Q.setInternalSize=function(d){g.i4(this.lE,d)||(this.lE=d,this.resize())}; g.Q.ir=function(){this.Lu&&g.lI(this.Lu);this.Hf();g.f.prototype.ir.call(this)};g.Q=pfQ.prototype;g.Q.click=function(d,q){this.elements.has(d);this.G.has(d);var T=g.Q0();T&&d.visualElement&&g.dx(T,d.visualElement,q)}; g.Q.createClientVe=function(d,q,T,Y){var e=this;Y=Y===void 0?!1:Y;this.elements.has(d);this.elements.add(d);T=EAQ(T);d.visualElement=T;var U=g.Q0(),b=g.Ha();U&&b&&(g.RD("combine_ve_grafts")?lq(mx(),T,b):g.iF(g.un)(void 0,U,b,T));q.addOnDisposeCallback(function(){e.elements.has(d)&&e.destroyVe(d)}); Y&&this.U.add(d)}; g.Q.createServerVe=function(d,q,T){var Y=this;T=T===void 0?!1:T;this.elements.has(d);this.elements.add(d);q.addOnDisposeCallback(function(){Y.destroyVe(d)}); T&&this.U.add(d)}; g.Q.destroyVe=function(d){this.elements.has(d);this.elements.delete(d);this.j.delete(d);this.G.delete(d);this.U.delete(d)}; g.Q.uo=function(d,q){this.clientPlaybackNonce!==q&&(this.clientPlaybackNonce=q,SN(mx(),d),Zxf(this))}; g.Q.setTrackingParams=function(d,q){this.elements.has(d);q&&(d.visualElement=g.y0(q))}; g.Q.OM=function(d,q,T){this.elements.has(d);q?this.G.add(d):this.G.delete(d);var Y=g.Q0(),e=d.visualElement;this.U.has(d)?Y&&e&&(q?g.o$(Y,[e]):g.V0(Y,[e])):q&&!this.j.has(d)&&(Y&&e&&g.va(Y,e,void 0,T),this.j.add(d))}; g.Q.hasVe=function(d){return this.elements.has(d)};g.M(g.c1,g.W);g.c1.create=function(d,q,T,Y){try{var e=typeof d==="string"?d:"player"+g.X_(d),U=nf[e];if(U){try{U.dispose()}catch(J){g.Zz(J)}nf[e]=null}var b=new g.c1(d,q,T,Y);b.addOnDisposeCallback(function(){nf[e]=null;b.Cr&&b.Cr()}); return nf[e]=b}catch(J){throw g.Zz(J),(J&&J instanceof Error?J:Error(String(J))).stack;}}; g.Q=g.c1.prototype;g.Q.Jp=function(){return this.visibility}; g.Q.Oh=function(d){var q=this.UM();if(d!==q){d.getVideoData().autonavState=q.getVideoData().autonavState;q.jC(this.Pz,this);var T=q.getPlaybackRate();q.dispose();this.MC.Oh(d);d.setPlaybackRate(T);d.Ts(this.Pz,this);GfD(this)}}; g.Q.S0=function(){this.Ca||(this.Ca=g.i9(Tk(),Ge2()));return this.Ca}; g.Q.Hf=function(d){if(this.mediaElement){this.Vu&&(this.events.t1(this.Vu),this.Vu=null);g.jX(this.t3);this.Lf().Hf(!0,!1,d);this.template.Hf();try{this.N("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.qZ()}catch(q){g.OL(q)}this.mediaElement=null}}; g.Q.D8=function(d,q,T){T=T===void 0?!1:T;if(d!==this.Lf()){this.logger.debug(function(){return"start set presenting player, type "+d.getPlayerType()+", vid "+d.getVideoData().videoId}); var Y=null;T||(T=this.Lf(),Y=T.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),Pc(this.Am,3),fl(this,"cuerangesremoved",T.lw()),this.p8&&!d.isGapless()&&T.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),T=d.Tz()&&T.Tz(),this.rz.GT("iv_s"),wf2(this,T));d.getPlayerType()===1&&this.Oh(d);DT2(this,d);this.MC.D8(d);this.mediaElement&&d.setMediaElement(this.mediaElement);d.Ts(this.Op,this);d.jI()?xWH(this,"setPresenting",!1):(this.qF("newdata",d,d.getVideoData()), Y&&!g.OX(Y,d.getPlayerState())&&this.T4(new g.sP(d.getPlayerState(),Y)),q=q&&d.getPlayerType()===1,d.kD()&&!q&&this.qF("dataloaded",d,d.getVideoData()),(q=(q=d.getVideoData().U)&&q.video)&&this.mZ.uv("onPlaybackQualityChange",q.quality),fl(this,"cuerangesadded",d.lw()),q=d.getPlayerState(),g.I(q,2)?ulQ(this):g.I(q,8)?d.playVideo():d.Kl()&&d.pauseVideo(),q=this.UM(),d.getPlayerType()===2&&(d.getVideoData().yM=q.getVideoData().clientPlaybackNonce),d.getPlayerType()!==2||this.ZY()||(Y=d.getVideoData(), q.Xi(Y.clientPlaybackNonce,Y.R6||"",Y.breakType||0,Y.LC,Y.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.Q.xI=function(){if(this.UM()!==this.Lf()){var d=this.Lf();this.logger.debug(function(){return"release presenting player, type "+d.getPlayerType()+", vid "+d.getVideoData().videoId}); this.D8(this.UM())}}; g.Q.v3=function(){return this.MC}; g.Q.dk=function(d){return this.MC.dk(d)}; g.Q.YP=function(d){return this.MC.YP(d)}; g.Q.UM=function(){return this.MC.UM()}; g.Q.Lf=function(){return this.MC.Lf()}; g.Q.Lk=dI(44);g.Q.vxr=function(){Zj(this)||(this.logger.debug("application playback ready"),this.Vj(5))}; g.Q.CFv=function(){if(!Zj(this)){this.logger.debug("playback ready");gZI(this);var d=this.Lf(),q=d.getPlayerState();d.Kl()?this.pauseVideo():q.isOrWillBePlaying()&&this.playVideo()}}; g.Q.canPlayType=function(d){return Qb(d)}; g.Q.C=function(){return this.Pv}; g.Q.getVideoData=function(){return this.Lf().getVideoData()}; g.Q.mA=dI(11);g.Q.GX=function(){return this.UM().getVideoData()}; g.Q.getVideoLoadedFraction=function(d){return(d=this.dk({playerType:d}))?d.getVideoLoadedFraction():this.MC.G.getVideoLoadedFraction()}; g.Q.OD=function(){return this.template}; g.Q.M5=function(){return this.Am}; g.Q.GN=function(){return this.rz}; g.Q.ri=function(d,q,T){(q=this.dk({playerType:q===void 0?1:q}))&&q.Wx(d,void 0,T)}; g.Q.B9=function(){var d=this.Am.B9();this.mZ.publish("videoStatsPingCreated",d);return d}; g.Q.getVolume=function(){return Math.round(this.mZ.getVolume())}; g.Q.isMuted=function(){return this.mZ.isMuted()}; g.Q.L9=function(){if(this.UM()===this.Lf()&&this.IN)return this.IN.postId}; g.Q.fYw=function(){var d=this;this.N("use_rta_for_player")||(g.ho(this.Pv)?g.rn(this.Pv,g.$4(this.getVideoData())).then(function(q){eq(Tk(),q);yHI(d.getVideoData(),d.Pv,d.S0())}):yHI(this.getVideoData(),this.Pv,this.S0()))}; g.Q.Sp=function(d){this.mZ.publish("poTokenVideoBindingChange",d)}; g.Q.d5=function(d){this.mZ.publish("d6de4videobindingchange",d)}; g.Q.nN=function(){this.Wn&&this.Wn.nN()}; g.Q.L_=function(d){this.Wn=d}; g.Q.r0=function(d){if(d===1){this.rz.tick("vr");var q=this.Lf();q.vC();Mkn(this.rz,q.getVideoData(),$WX(this));lj1(this.Am)}q=this.Pv;if(Zi(q)&&q.B||g.XW(q)){var T;(((T=this.Lf().getVideoData())==null?0:T.enableServerStitchedDai)||!this.ZY())&&this.mZ.uv("onAdStateChange",d)}}; g.Q.setLoopVideo=function(d){var q=this.Lf();q===this.UM()&&q.AC()!==d&&(q.setLoop(d),this.mZ.gO("onLoopChange",d))}; g.Q.getLoopVideo=function(){return this.Lf().AC()}; g.Q.setLoopRange=function(d){var q=!1;!!this.IN!==!!d?q=!0:this.IN&&d&&(q=this.IN.startTimeMs!==d.startTimeMs||this.IN.endTimeMs!==d.endTimeMs||this.IN.postId!==d.postId||this.IN.type!==d.type);if(q){q=this.Lf();Zu(q.getVideoData())&&q.oU("slr",{et:(d==null?void 0:d.endTimeMs)||-1});q=this.UM();q.hm("applooprange");if(d){var T=new g.Ij(d.startTimeMs,d.endTimeMs,{id:"looprange",namespace:"applooprange"});q.addCueRange(T)}else{this.GX().clipConfig=void 0;var Y;((T=this.IN)==null?void 0:T.type)!=="repeatChapter"|| isNaN(Number((Y=this.IN)==null?void 0:Y.loopCount))||(T={loopCount:String(this.IN.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.Ta("repeatChapterLoopEvent",T))}this.IN=d;this.mZ.gO("onLoopRangeChange",d||void 0);this.UM()===this.Lf()&&(this.A2(),q.bX())}}; g.Q.getLoopRange=function(){return this.IN}; g.Q.A2=function(){var d="",q=this.UM();this.IN?q!==this.Lf()?d="pnea":vR6(this,q.getCurrentTime())&&(this.IN.loopCount=0,d="ilr"):d="nlr";var T=this.Lf();if(Zu(T.getVideoData()))if(this.N("html5_gapless_log_loop_range_info")){var Y,e;T.oU("slrre",{rej:d,ct:q.getCurrentTime(),lst:(Y=this.IN)==null?void 0:Y.startTimeMs,let:(e=this.IN)==null?void 0:e.endTimeMs})}else T.oU("slrre",{});d||V3f(this)}; g.Q.setPlaybackRate=function(d,q){if(!isNaN(d)){d=P1_(this,d);var T=this.UM();T.getPlaybackRate()!==d&&(T.setPlaybackRate(d),q&&!this.Pv.T&&g.pW("yt-player-playback-rate",d),this.mZ.uv("onPlaybackRateChange",d))}}; g.Q.getCurrentTime=function(d,q){q=q===void 0?!0:q;var T=this.MC.Ig;if(T)return T.getCurrentTime();var Y=d===2&&this.getVideoData().enableServerStitchedDai;T=null;Y?T=this.Lf():T=this.dk({playerType:d});return T?Y&&this.gs?(d=this.MC.L)?d.getCurrentTime(q):T.getCurrentTime():q?(q=pl(this,T),P1(this,q.getCurrentTime(),q)):T.getCurrentTime():this.MC.G.getCurrentTime()}; g.Q.sP=function(){var d=this.dk({playerType:void 0});if(!d)return this.MC.G.sP();d=pl(this,d);return P1(this,d.sP(),d)}; g.Q.getDuration=function(d,q){q=q===void 0?!0:q;var T=this.MC.Ig;if(T)return T.getDuration();T=this.getVideoData();var Y=d===2&&T.enableServerStitchedDai,e=null;Y?e=this.Lf():e=this.dk({playerType:d});if(!e)return this.MC.G.getDuration();if(T.hasProgressBarBoundaries()&&!Y){var U,b=Number((U=T.progressBarStartPosition)==null?void 0:U.utcTimeMillis),J;U=Number((J=T.progressBarEndPosition)==null?void 0:J.utcTimeMillis);if(!isNaN(b)&&!isNaN(U))return(U-b)/1E3}if(Zu(T)&&!T.isLivePlayback)return Ll(this, d);if(q)return d=Aa(this,e),P1(this,d.getDuration(),d);if(Y&&this.gs){if(this.N("html5_huli_ssdai_use_playback_state"))return d=this.MC,d=d.T===d.L?d.T:null,(d==null?void 0:d.getDuration())||0;var F;return((F=this.MC.L)==null?void 0:F.getDuration())||0}return e.getDuration()}; g.Q.fH=function(d){var q=this.dk({playerType:d});return q?this.ZY(q)?(q=Aa(this,q),q.fH()-q.getCurrentTime()+this.getCurrentTime(d)):q.fH():this.MC.G.fH()}; g.Q.finishSegmentByCpn=function(){return[]}; g.Q.Ku=function(){this.template.Ku();var d=this.mZ;d.state.element=this.template.element;var q=d.state.element,T;for(T in d.state.G)d.state.G.hasOwnProperty(T)&&(q[T]=d.state.G[T]);(d=uTY(this.template.element))&&this.events.W(this.template,d,this.onFullscreenChange)}; g.Q.getDebugText=function(d){var q=this.UM().BF(d),T=this.Lf();if(T!==this.UM()){T=T.BF(d);for(var Y=g.E(Object.keys(T)),e=Y.next();!e.done;e=Y.next())e=e.value,q["ad"+e]=T[e];if(d){T=q;Y={};if(e=TO(document,"movie_player"))Y.bounds=e.getBoundingClientRect(),Y["class"]=e.className;e={};var U=g.bY("video-ads");U?(HL6(U,e),e.html=U.outerHTML):e.missing=1;U={};var b=g.bY("videoAdUiSkipContainer"),J=g.bY("ytp-ad-skip-button-container"),F=g.bY("ytp-skip-ad-button"),N=b||J||F;N?(HL6(N,U),U.ima=b?1:0,U.bulleit= J?1:0,U.component=F?1:0):U.missing=1;Y=JSON.stringify({player:Y,videoAds:e,skipButton:U});T.ad_skipBtnDbgInfo=Y}}d&&this.mediaElement&&(q["0sz"]=""+(+Iy(this.mediaElement.getSize())===0),q.op=this.mediaElement.X5("opacity"),T=this.mediaElement.eE().y+this.mediaElement.getSize().height,q.yof=""+(+T<=0),q.dis=this.mediaElement.X5("display"));d&&((d=(0,g.gk)())&&(q.gpu=d),(d=this.Pv.playerStyle)&&(q.ps=d),this.Pv.qk&&(q.webview=1),(d=this.webPlayerContextConfig.jsUrl)&&(q.js=d));q.debug_playbackQuality= this.mZ.getPlaybackQuality(1);q.debug_date=(new Date).toString();q.origin=window.origin;q.timestamp=Date.now();delete q.uga;delete q.q;return JSON.stringify(q,null,2)}; g.Q.getFeedbackProductData=function(){var d={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.C().experiments.experimentIds.join(", "),player_release:X[40]},q=this.getPlayerStateObject().eF;q&&(d.player_error_code=q.errorCode,d.player_error_details=JSON.stringify(q.errorDetail));return d}; g.Q.getPresentingPlayerType=function(d){if(this.appState===1)return 1;if(Zj(this))return 3;var q;return d&&((q=this.gs)==null?0:naf(q,this.getCurrentTime()))?2:this.Lf().getPlayerType()}; g.Q.eA=function(){return!1}; g.Q.getPlayerStateObject=function(d){var q=this.MC.Ig;return q?q.getPlayerState():this.dk({playerType:d}).getPlayerState()}; g.Q.getAppState=function(){return this.appState}; g.Q.jdr=function(d){switch(d.type){case "loadedmetadata":this.NZ.start();d=g.E(this.h4);for(var q=d.next();!q.done;q=d.next())q=q.value,sAX(this,q.id,q.GSD,q.PSx,void 0,!1);this.h4=[];break;case "loadstart":this.rz.GT("gv");break;case "progress":case "timeupdate":dC(d.target.g1())>=2&&this.rz.GT("l2s");break;case "playing":g.AJ&&this.NZ.start();if(g.ho(this.Pv))d=!1;else{q=g.lH(this.M5());d=this.mediaElement.X5("display")==="none"||Iy(this.mediaElement.getSize())===0;var T=MU(this.template),Y=this.Lf().getVideoData(), e=g.KG(this.Pv);Y=OB(Y);q=!T||q||e||Y||this.Pv.Bv;d=d&&!q}d&&(d=this.Lf(),d.V_(),this.getVideoData().q5||(this.getVideoData().q5=1,this.iR(),d.playVideo()))}}; g.Q.BzF=function(d){this.mZ.US("onLoadProgress",d)}; g.Q.UCf=function(){this.mZ.publish("playbackstalledatstart")}; g.Q.wFv=function(d,q){this.mZ.publish("sabrCaptionsDataLoaded",d,q)}; g.Q.A1w=function(d){this.Lf().XG(d)}; g.Q.xCr=function(d){this.Lf().v6(d)}; g.Q.TkD=function(d){d=pl(this,this.Lf());d=P1(this,d.getCurrentTime(),d);this.mZ.uv("onVideoProgress",d);this.Pv.zs&&UW1(this,this.visibility.Kx())&&this.pauseVideo()}; g.Q.Lzk=function(){this.mZ.uv("onAutoplayBlocked");var d=this.Lf().getVideoData();d&&(d.I1=!0);this.N("embeds_enable_autoplay_and_visibility_signals")&&g.dn(this.Pv)&&(d={autoplayBrowserPolicy:jK(),autoplayIntended:ag(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.Ta("embedsAutoplayStatusChanged",d))}; g.Q.Vvf=function(){this.mZ.publish("progresssync")}; g.Q.cA5=function(){this.mZ.US("onPlaybackPauseAtStart")}; g.Q.qDZ=function(d){if(this.getPresentingPlayerType()===1){g.gs(d,1)&&!g.I(d.state,64)&&this.GX().isLivePlayback&&this.UM().isAtLiveHead()&&this.mZ.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.gs(d,2)){if(this.IN&&this.IN.endTimeMs>=(this.getDuration()-1)*1E3){V3f(this);return}ulQ(this)}if(g.I(d.state,128)){var q=d.state;this.cancelPlayback(5);q=q.eF;JSON.stringify({errorData:q,debugInfo:this.getDebugText(!0)});this.mZ.uv("onError",O0Y(q.errorCode));this.mZ.US("onDetailedError",{errorCode:q.errorCode, errorDetail:q.errorDetail,message:q.errorMessage,messageKey:q.rG,cpn:q.cpn});(0,g.cj)()-this.Pv.vA>6048E5&&this.mZ.US("onReloadRequired")}q={};if(d.state.isPlaying()&&!d.state.isBuffering()&&!nU("pbresume","ad_to_video")&&nU("_start","ad_to_video")){var T=this.getVideoData();q.clientPlaybackNonce=T.clientPlaybackNonce;T.videoId&&(q.videoId=T.videoId);g.ZO(q,"ad_to_video");pU("pbresume",void 0,"ad_to_video");lj1(this.Am)}this.mZ.publish("applicationplayerstatechange",d)}}; g.Q.T4=function(d){this.MC.Ig||this.mZ.publish("presentingplayerstatechange",d)}; g.Q.h0=function(d){aU(this,rC(d.state));g.I(d.state,1024)&&this.mZ.isMutedByMutedAutoplay()&&(Kl(this,{muted:!1,volume:this.FM.volume},!1),Gr(this,!1))}; g.Q.onPlayerRequestSent=function(d){this.mZ.gO("onPlayerRequestSent",d)}; g.Q.ZA=function(d,q){d==="newdata"&&GfD(this);this.mZ.publish("applicationvideodatachange",d,q)}; g.Q.NzO=function(d,q){this.N("html5_afmt_change_update_volume")&&gZI(this);this.mZ.US("onPlaybackAudioChange",this.mZ.getAudioTrack().DQ.name);this.mZ.publish("internalaudioformatchange",this.mZ.getAudioTrack().DQ.id,q)}; g.Q.iCO=function(d){var q=this.Lf().getVideoData();d===q&&this.mZ.uv("onPlaybackQualityChange",d.U.video.quality)}; g.Q.VM=function(){var d=this.MC.j[2]||null;d&&(d=d.getVideoData(),this.Lf().oU("ssdai",{cleanaply:1,acpn:d==null?void 0:d.clientPlaybackNonce,avid:d.videoId,isDai:this.GX().enableServerStitchedDai?1:0}),delete this.MC.j[2])}; g.Q.oc5=function(d,q){this.qF(d,this.Lf(),q)}; g.Q.qF=function(d,q,T){this.logger.debug(function(){return"on video data change "+d+", player type "+q.getPlayerType()+", vid "+T.videoId}); this.Pv.uF()&&q.oU("vdc",{type:d,vid:T.videoId||"",cpn:T.clientPlaybackNonce||""});q===this.UM()&&(this.Pv.Y1=T.oauthToken);q===this.UM()&&(this.getVideoData().enableServerStitchedDai&&!this.gs?(this.UM().oU("sdai",{initSstm:1}),this.gs=new g.Ue(this.mZ,this.Pv,this.UM(),this)):!this.getVideoData().enableServerStitchedDai&&this.gs&&(this.gs.dispose(),this.gs=null));if(d==="newdata")this.logger.debug("new video data, destroy modules"),Pc(this.Am,2),this.mZ.publish("videoplayerreset",q);else{if(!this.mediaElement)return; d==="dataloaded"&&(this.UM()===this.Lf()?(FW(T.Mk,T.iP),I1Y(this)):zC6(this));q.getPlayerType()===1&&(this.Pv.dO&&hPf(this),this.getVideoData().isLivePlayback&&!this.Pv.aZ&&this.Kj("html5.unsupportedlive",2,"DEVICE_FALLBACK"),T.isLoaded()&&((Pvn(T)||this.getVideoData().aZ)&&this.mZ.publish("legacyadtrackingpingchange",this.getVideoData()),T.hasProgressBarBoundaries()&&q9X(this)));this.mZ.publish("videodatachange",d,T,q.getPlayerType())}this.mZ.uv("onVideoDataChange",{type:d,playertype:q.getPlayerType()}); this.A2();var Y=T.Dk;Y?this.KW.uo(Y,T.clientPlaybackNonce):Zxf(this.KW)}; g.Q.X$=function(){nl(this,null);this.mZ.US("onPlaylistUpdate")}; g.Q.I$D=function(d){delete this.YK[d.getId()];this.UM().removeCueRange(d);a:{d=this.getVideoData();var q,T,Y,e,U,b,J,F,N,R,x=((q=d.dO)==null?void 0:(T=q.contents)==null?void 0:(Y=T.singleColumnWatchNextResults)==null?void 0:(e=Y.autoplay)==null?void 0:(U=e.autoplay)==null?void 0:U.sets)||((b=d.dO)==null?void 0:(J=b.contents)==null?void 0:(F=J.twoColumnWatchNextResults)==null?void 0:(N=F.autoplay)==null?void 0:(R=N.autoplay)==null?void 0:R.sets);if(x)for(q=g.E(x),T=q.next();!T.done;T=q.next())if(T= T.value,e=Y=void 0,T=T.autoplayVideo||((Y=T.autoplayVideoRenderer)==null?void 0:(e=Y.autoplayEndpointRenderer)==null?void 0:e.endpoint),Y=g.D(T,g.EB),U=e=void 0,T!=null&&((e=Y)==null?void 0:e.videoId)===d.videoId&&((U=Y)==null?0:U.continuePlayback)){d=T;break a}d=null}(q=g.D(d,g.EB))&&this.mZ.gO("onPlayVideo",{sessionData:{autonav:"1",itct:d==null?void 0:d.clickTrackingParams},videoId:q.videoId,watchEndpoint:q})}; g.Q.Vj=function(d){var q=this;d!==this.appState&&(this.logger.debug(function(){return"app state change "+q.appState+" -> "+d}),d===2&&this.getPresentingPlayerType()===1&&(aU(this,-1),aU(this,5)),this.appState=d,this.mZ.publish("appstatechange",d))}; g.Q.Kj=function(d,q,T,Y,e){this.UM().o6(d,q,T,Y,e)}; g.Q.P9=dI(13);g.Q.isAtLiveHead=function(d,q){q=q===void 0?!1:q;var T=this.dk({playerType:d});if(!T)return this.MC.G.isAtLiveHead();d=Aa(this,T);T=pl(this,T);return d!==T?d.isAtLiveHead(P1(this,T.getCurrentTime(),T),!0):d.isAtLiveHead(void 0,q)}; g.Q.Jt=function(){var d=this.dk({playerType:void 0});return d?Aa(this,d).Jt():this.MC.G.Jt()}; g.Q.seekTo=function(d,q,T,Y,e){q=q!==!1;if(Y=this.dk({playerType:Y}))this.appState===2&&ta(this),this.ZY(Y)?W1(this)?this.gs.seekTo(d,{seekSource:e},q,T):this.Rd.seekTo(d,{seekSource:e},q,T):Y.seekTo(d,{W6:!q,XL:T,b$:"application",seekSource:e})}; g.Q.seekBy=function(d,q,T,Y){this.seekTo(this.getCurrentTime()+d,q,T,Y)}; g.Q.P$U=function(){this.mZ.uv("SEEK_COMPLETE")}; g.Q.EBU=function(){this.mZ.gO("onAbnormalityDetected")}; g.Q.l$5=function(d){this.mZ.gO("onSnackbarMessage",d)}; g.Q.Gqg=function(d){var q=this.Lf(),T=q.getVideoData();if(this.appState===1||this.appState===2)T.startSeconds=d;this.appState===2?g.I(q.getPlayerState(),512)||ta(this):this.mZ.uv("SEEK_TO",d)}; g.Q.eYk=function(){this.mZ.publish("airplayactivechange")}; g.Q.nBU=function(){this.mZ.publish("airplayavailabilitychange")}; g.Q.showAirplayPicker=function(){this.Lf().Yp()}; g.Q.FzO=function(){this.mZ.publish("beginseeking")}; g.Q.x5O=function(){this.mZ.publish("endseeking")}; g.Q.getStoryboardFormat=function(d){return(d=this.dk({playerType:d}))?Aa(this,d).getStoryboardFormat():this.MC.G.getStoryboardFormat()}; g.Q.TN=function(d){return(d=this.dk({playerType:d}))?Aa(this,d).getVideoData().TN():this.MC.G.TN()}; g.Q.ZY=function(d){d=(d||this.Lf()).getVideoData();if(W1(this))d=d===this.gs.playback.getVideoData();else a:{var q=this.Rd;if(d===q.G.getVideoData()&&q.U.length)d=!0;else{q=g.E(q.U);for(var T=q.next();!T.done;T=q.next())if(d.HG===T.value.HG){d=!0;break a}d=!1}}return d}; g.Q.Iv=function(d,q,T,Y,e,U,b,J){this.logger.debug(function(){return"Adding video to timeline id="+d.video_id+"\n lengthMs="+Y+" enterTimeMs="+e}); var F="",N=W1(this);this.Lf().oU("appattl",{sstm:this.gs?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:N});N?(T=EaN(this.gs,d,q,T,Y,e,U,b,J),F=(T==null?void 0:T.HG)||"",this.N("html5_ssdai_new_decoration_logic")&&this.UM().xG(J||"",q,(T==null?void 0:T.clientPlaybackNonce)||"")):F=eCD(this.Rd,d,T,Y,e,U);this.logger.debug(function(){return"Video added to timeline id="+d.video_id+" timelinePlaybackId="+F}); return F}; g.Q.gm=function(d,q,T,Y,e,U,b,J){if(W1(this)){var F,N=(F=this.gs)==null?void 0:EaN(F,d,q,T,Y,e,U,b,J);this.logger.debug(function(){return"Remaining video added to timeline id="+d.video_id+" timelinePlaybackId="+((N==null?void 0:N.HG)||"")})}}; g.Q.uI=function(d){this.N("html5_ssdai_new_decoration_logic")&&this.UM().xG(d,"","");var q;(q=this.gs)==null||q.uI(d)}; g.Q.tI=function(d,q){d=d===void 0?-1:d;q=q===void 0?Infinity:q;W1(this)||NoQ(this.Rd,d,q)}; g.Q.Jh=function(d,q,T){if(W1(this)){var Y=this.gs,e=Y.G.dk({HG:d});e?(T===void 0&&(T=e.lC),tcY(Y,e,q,T)):Y.EP("Invalid_timelinePlaybackId_"+d+"_specified")}else{Y=this.Rd;e=null;for(var U=g.E(Y.U),b=U.next();!b.done;b=U.next())if(b=b.value,b.HG===d){e=b;break}e?(T===void 0&&(T=e.lC),FwD(Y,e,q,T)):NU(Y,"InvalidTimelinePlaybackId timelinePlaybackId="+d)}}; g.Q.enqueueVideoByPlayerVars=function(d,q,T,Y){T=T===void 0?Infinity:T;Y=Y===void 0?"":Y;this.ZY();d=new g.yM(this.Pv,d);Y&&(d.HG=Y);ThY(this,d,q,T)}; g.Q.queueNextVideo=function(d,q,T,Y,e){T=T===void 0?NaN:T;d=this.preloadVideoByPlayerVars(d,q===void 0?1:q,T,Y===void 0?"":Y,e===void 0?"":e);q=this.Lf();d&&(this.N("html5_check_queue_on_data_loaded")?this.C().supportsGaplessShorts()&&q.getVideoData().L&&(T=this.xe,Y=this.p8.S,T.T!==d&&(T.U=q,T.T=d,T.j=1,T.G=d.getVideoData(),T.S=Y,T.G.isLoaded()?T.X():T.G.subscribe("dataloaded",T.X,T))):(T=k42(q,d,this.p8.S),T!=null?(q.oU("sgap",T),q.getVideoData().L&&q.Lb(!1)):(d=d.getVideoData(),q=this.xe,q.G!== d&&(q.G=d,q.j=1,d.isLoaded()?q.L():q.G.subscribe("dataloaded",q.L,q)))))}; g.Q.sH=function(d,q,T,Y){var e=this;T=T===void 0?0:T;Y=Y===void 0?0:Y;Aa(this,this.Lf()).kK();mD1(this.p8,d,q,T,Y).then(function(){e.mZ.US("onQueuedVideoLoaded")},function(){})}; g.Q.MN=function(){return this.p8.MN()}; g.Q.lj=function(d){var q=this.p8.G;return q?q.h7(d):!1}; g.Q.clearQueue=function(d,q){d=d===void 0?!1:d;q=q===void 0?!1:q;this.logger.debug("Clearing queue");this.p8.clearQueue(d,q)}; g.Q.loadVideoByPlayerVars=function(d,q,T,Y,e,U){q=q===void 0?1:q;var b=this.UM();if(q===2&&this.GX().enableServerStitchedDai&&b&&!b.k6())return b.oU("lvonss",{vid:(d==null?void 0:d.videoId)||"",ptype:q}),!1;var J=!1;b=new g.yM(this.Pv,d);b.H1=U;g.an(this.Pv)&&!b.k9&&Ac(this.rz);var F;U=this.rz;var N=(F=b.lr)!=null?F:"";U.timerName=N;this.rz.w1("pl_i");this.N("web_player_early_cpn")&&b.clientPlaybackNonce&&this.rz.infoGel({clientPlaybackNonce:b.clientPlaybackNonce});FxX(b).supportsVp9Encoding===!1&& this.Lf().oU("noVp9enc",{});if(this.C().supportsGaplessShorts()){F=v6j(this.p8,b,q);if(F==null){aU(this,-1);var R;((R=this.p8.G)==null?0:R.getVideoData().isAd())||Cl(this);d=this.p8;d.app.C().N("html5_gapless_new_slr")?ki(d.app,"gaplessshortslooprange"):d.app.setLoopRange(null);d.app.getVideoData().PC=!0;var x;(x=d.G)==null||x.L0();var y;(y=d.G)==null||y.lM();T={b$:"gapless_to_next_video",seekSource:60,wg:d.S.G};Y=g.Yv(d.app.C().experiments,"html5_gapless_seek_offset");e=lH1(d);if(d.S.G){var h;b= ((h=d.j)==null?void 0:ir(h))||{};h=b.Xl;b=b.Iy;b!=null&&h!=null&&(e=b-h+.001)}var H;(H=d.app.Lf())==null||H.seekTo(e+Y,T);if(!d.app.getPlayerStateObject(q).isPlaying()){var a;(a=d.app.Lf())==null||a.playVideo(!0)}var p;(p=d.app.Lf())==null||p.zW();d.L();return!0}H=this.N("html5_shorts_gapless_preload_fallback");a=this.p8.G;H&&a&&!a.JF()&&(p=a.getVideoData(),this.MC.S.set(u6(q,p),a,3600));this.p8.clearQueue(H);this.Lf().oU("sgap",{f:F})}if(e){for(;b.BK.length&&b.BK[0].isExpired();)b.BK.shift();H=b.BK.length- 1;J=H>0&&e.U(b.BK[H])&&e.U(b.BK[H-1]);b.BK.push(e)}T||(d&&jUD(d)?(HT(this.Pv)&&!this.H3&&(d.fetch=0),nl(this,d)):this.playlist&&nl(this,null),d&&(this.H3=vL(!1,d.external_list)));this.mZ.publish("loadvideo");H=this.ym(b,q,Y);J&&this.Kj("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+b.BK.join()).replace(/[;:,]/g,"_"));return H}; g.Q.preloadVideoByPlayerVars=function(d,q,T,Y,e){q=q===void 0?1:q;T=T===void 0?NaN:T;Y=Y===void 0?"":Y;e=e===void 0?"":e;var U=ePH(q,d,e),b=this.MC.S.get(U)||null;if(b)return this.logger.debug(function(){return"already preloaded "+U}),this.N("html5_return_playback_if_already_preloaded")?b:null; d=new g.yM(this.Pv,d);e&&(d.HG=e);return Y9j(this,d,q,T,Y)}; g.Q.setMinimized=function(d){this.visibility.setMinimized(d);(d=Vk6(this.Am))&&(this.isMinimized()?d.load():d.unload());this.mZ.publish("minimized")}; g.Q.setInline=function(d){this.visibility.setInline(d)}; g.Q.setInlinePreview=function(d){this.visibility.setInline(d)}; g.Q.Bx=function(d){bLj(this,d)||this.visibility.Bx(d)}; g.Q.setSqueezeback=function(d){this.visibility.setSqueezeback(d)}; g.Q.cN=function(){var d,q=(d=this.mediaElement)==null?void 0:d.tA();q&&(this.Pv.VY&&K0(rg(function(){return document.exitFullscreen()}),function(){}),K0(rg(function(){return Ns(q)}),function(){}))}; g.Q.WcO=function(){this.mediaElement.tA();this.mediaElement.tA().webkitPresentationMode==="picture-in-picture"?this.Bx(!0):this.Bx(!1)}; g.Q.togglePictureInPicture=function(){this.Lf().togglePictureInPicture()}; g.Q.ym=function(d,q,T){q=q===void 0?1:q;this.logger.debug(function(){return"start load video, id "+d.videoId+", type "+q}); nU("_start",this.rz.timerName)||g.iF(Qa)(void 0,this.rz.timerName);var Y=!1,e=l12(this,q,d,!1);e?(Y=!0,d.dispose()):(e=Ee(this,q,d,!0,T),(this.N("html5_onesie")||this.N("html5_load_before_stop"))&&e.y4()&&e.Z8(),this.NZ.stop(),q===1&&q!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,q),this.D8(e));e===this.UM()&&(this.Pv.Y1=d.oauthToken);if(!e.y4())return!1;if(e===this.UM())return this.Vj(1),T=ta(this),Y&&this.N("html5_player_preload_ad_fix")&&e.getPlayerType()===1&& e.kD()&&this.qF("dataloaded",e,e.getVideoData()),T;e.n5();return!0}; g.Q.cueVideoByPlayerVars=function(d,q){var T=this;q=q===void 0?1:q;var Y=this.UM();if(this.GX().enableServerStitchedDai&&Y&&!Y.k6()&&d&&Object.keys(d).length>0)Y.oU("qvonss",{vid:(d==null?void 0:d.videoId)||"",ptype:q});else if(d&&jUD(d))if(this.lA=!0,nl(this,d),(d=g.pa(this.playlist))&&d.LH())wa(this,d,q);else this.playlist.onReady(function(){ra(T)}); else{q||(q=this.getPresentingPlayerType());q===1&&this.X$();Y=new g.yM(this.Pv,d);var e=g.dn(this.Pv)&&!this.Pv.UD&&q===1&&!Y.isAd()&&!Y.R6;this.mZ.publish("cuevideo");e?(this.Lf().getVideoData().loading=!0,raD(Y,d?d:{}).then(function(U){wa(T,U,q)}),Y.dispose()):wa(this,Y,q)}}; g.Q.tC=function(d,q,T,Y,e,U,b){if(!d&&!T)throw Error("Playback source is invalid");if(TF(this.Pv)||g.xv(this.Pv))return q=q||{},q.lact=QF(),q.vis=this.mZ.getVisibilityState(),this.mZ.gO("onPlayVideo",{videoId:d,watchEndpoint:U,sessionData:q,listId:T}),!1;caN(this.rz);this.rz.reset();d={video_id:d};Y&&(d.autoplay="1");Y&&(d.autonav="1");U&&(d.player_params=U.playerParams);b&&(d.oauth_token=b);T?(d.list=T,this.loadPlaylist(d)):this.loadVideoByPlayerVars(d,1);return!0}; g.Q.cuePlaylist=function(d,q,T,Y){this.lA=!0;XO7(this,d,q,T,Y)}; g.Q.loadPlaylist=function(d,q,T,Y){this.lA=!1;XO7(this,d,q,T,Y)}; g.Q.yN=function(){return this.mZ.isMutedByMutedAutoplay()?!1:this.MC.Ig?!0:!(!this.playlist||!this.playlist.mB())}; g.Q.qI=dI(5); g.Q.nextVideo=function(d,q){var T=g.jH(this.UM().getVideoData());g.V2(this.mZ)&&T?this.tC(T.videoId,q?T.wS:T.sessionData,T.playlistId,q,void 0,T.Ny||void 0):this.H3?this.mZ.US("onPlaylistNext"):this.getPresentingPlayerType()===3?I6(this.Am).nextVideo():!this.playlist||HT(this.Pv)&&!this.mZ.isFullscreen()||(this.playlist.mB(d)&&p1H(this.playlist,ajn(this.playlist)),this.playlist.loaded?(d=q&&this.Pv.N("html5_player_autonav_logging"),q&&this.mZ.publish("playlistautonextvideo"),this.ym(g.pa(this.playlist,void 0, q,d),1)):this.lA=!1)}; g.Q.previousVideo=function(d){this.H3?this.mZ.US("onPlaylistPrevious"):this.getPresentingPlayerType()===3?I6(this.Am).t2():!this.playlist||HT(this.Pv)&&!this.mZ.isFullscreen()||(this.playlist.M1(d)&&p1H(this.playlist,Aa2(this.playlist)),this.playlist.loaded?this.ym(g.pa(this.playlist),1):this.lA=!1)}; g.Q.playVideoAt=function(d){this.H3?this.mZ.US("onPlaylistIndex",d):this.playlist&&(this.playlist.loaded?this.ym(g.pa(this.playlist,d),1):this.lA=!1,p1H(this.playlist,d))}; g.Q.getPlaylist=function(){return this.playlist}; g.Q.HS=dI(19);g.Q.XA=function(d){this.h4=g.Zl(this.h4,function(U){return U.id!==d}); for(var q=this.UM(),T=q.lw(),Y=0;Y0&&(F=Math.floor(N/1E3))}F=q?q.sS:F;var R={AD_BLOCK:this.G++,AD_BREAK_LENGTH:F,AUTONAV_STATE:i6(this.player.C()),CA_TYPE:"image",CPN:J.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Jt()*1E3,LACT:QF(),LIVE_INDEX:q?this.j++:1,LIVE_TARGETING_CONTEXT:q&&q.context?q.context:"",MIDROLL_POS:U? Math.round(U.start/1E3):0,MIDROLL_POS_MS:U?Math.round(U.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.OD().yS().height,P_W:this.player.OD().yS().width,YT_REMOTE:e?e.join(","):""},x=U3(ee);Object.keys(x).forEach(function(h){x[h]!=null&&(R[h.toUpperCase()]=x[h].toString())}); T!==""&&(R.BISCOTTI_ID=T);T={};YA(d)&&(T.sts="20291",(q=this.player.C().forcedExperiments)&&(T.forced_experiments=q));var y=d7(g.a1(d,R),T);return y.split("?").length!==2?nK(Error("Invalid AdBreakInfo URL")):g.rn(this.player.C(),J==null?void 0:J.oauthToken).then(function(h){if(h&&Tt()){var H=Tk();eq(H,h)}h=Y.player.S0(H);H=CA7(Y,y,R,J.isMdxPlayback,b);return g.GY(h,H,"/youtubei/v1/player/ad_break").then(function(a){return a})})}; IU.prototype.reset=function(){this.j=this.G=1};g.M(uSN,IU); uSN.prototype.U=function(d,q,T){q=q===void 0?{}:q;var Y=q.II;var e=q.SF;var U=q.cueProcessedMs;T=T===void 0?"":T;q=this.G;this.G++;var b=this.player.C().N("h5_disable_macro_substitution_in_get_ad_break")?d:DW7(this,d,{II:Y,SF:e,cueProcessedMs:U},T,q);if(b.split("?").length!==2)return Math.random()<.1&&g.OL(Error("Invalid AdBreakInfo URL")),nK(Error("Invalid AdBreakInfo URL"));var J=this.player.getVideoData(1).isMdxPlayback,F=T;T=Bh1.exec(b);T=T!=null&&T.length>=2?T[1]:"";d=KQ2.test(b);var N=GKN.exec(b); N=N!=null&&N.length>=2?N[1]:"";var R=LQ2.exec(b);R=R!=null&&R.length>=2&&!Number.isNaN(Number(R[1]))?Number(R[1]):1;var x=kK_.exec(b);x=x!=null&&x.length>=2?x[1]:"0";var y=gn(this.player.C().XM),h=g.mV(this.player.getVideoData(1).aU,!0);pOH(this,h,b,F===""?"":F,this.player.C(),this.player.getVideoData(1));F={splay:!1,lactMilliseconds:String(QF()),playerHeightPixels:Math.trunc(this.player.OD().yS().height),playerWidthPixels:Math.trunc(this.player.OD().yS().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20291,autonavState:i6(this.player.C())};if(J){J={};var H=this.player.C().Dc;nZ1(J,H?H.join(","):"")&&(F.mdxContext=J)}if(J=PAn.includes(y)?void 0:g.r7("PREF")){H=J.split(RegExp("[:&]"));for(var a=0,p=H.length;a1&&t[1].toUpperCase()==="TRUE"){h.user.lockedSafetyMode=!0;break}}F.autoCaptionsDefaultOn=tS2(J)}b=WQX.exec(b);(b=b!=null&&b.length>=2?b[1]:"")&&N&&(h.user.credentialTransferTokens= [{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:F};F=this.player.getVideoData(1).getGetAdBreakContext();J=this.player.getVideoData(1).clientPlaybackNonce;H=U!==void 0?Math.round(U).toString():void 0;a=(Y==null?0:Y.context)?Y.context:void 0;p=0;U&&e&&!Y&&(e=e.end-e.start,e>0&&(p=Math.floor(e/1E3)));Y=(Y=Math.trunc((Y?Y.sS:p)*1E3))?String(Y):void 0;e=this.player.Jt()*1E3;e=Number.isNaN(e)?0:Math.trunc(e);q={adBlock:q,params:T,breakIndex:R,breakPositionMs:x,clientPlaybackNonce:J,topLevelDomain:y, isProxyAdTagRequest:d,context:h,overridePlaybackContext:b,cueProcessedMs:H,videoId:N?N:void 0,liveTargetingParams:a,breakLengthMs:Y,driftFromHeadMs:e?String(e):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:F?F:void 0};return wOg(this,q)};var V0j={b3g:"replaceUrlMacros",FB5:"onAboutThisAdPopupClosed",eLw:"executeCommand"};fC6.prototype.xH=function(){return"adPingingEndpoint"}; fC6.prototype.WZ=function(d,q,T){ZX1(this.Hv.get(),d,q,T)};zPD.prototype.xH=function(){return"changeEngagementPanelVisibilityAction"}; zPD.prototype.WZ=function(d){this.J.gO("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:d})};iL_.prototype.xH=function(){return"loggingUrls"}; iL_.prototype.WZ=function(d,q,T){d=g.E(d);for(var Y=d.next();!Y.done;Y=d.next())Y=Y.value,ZX1(this.Hv.get(),Y.baseUrl,q,T,Y.attributionSrcMode)};g.M(mWf,g.W);g.M(Sk,g.W);g.Q=Sk.prototype;g.Q.addListener=function(d){this.listeners.push(d)}; g.Q.removeListener=function(d){this.listeners=this.listeners.filter(function(q){return q!==d})}; g.Q.ej=function(d,q,T,Y,e,U,b,J){if(d==="")Jm("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(d!==this.G||T){this.G=d;this.Yx.get().ej(d,q,T,Y,e,U,b,J);this.Xw.get().ej(d,q,T,Y,e,U,b,J);var F;(F=this.eT)==null||F.get().ej(d,q,T,Y,e,U,b,J);this.U.ej(d,q,T,Y,e,U,b,J);F=g.E(this.listeners);for(var N=F.next();!N.done;N=F.next())N.value.ej(d,q,T,Y,e,U,b,J)}else Jm("Duplicate content video loaded signal")}; g.Q.QNU=function(){this.G&&this.Zt(this.G)}; g.Q.Zt=function(d){this.G=void 0;for(var q=g.E(this.listeners),T=q.next();!T.done;T=q.next())T.value.Zt(d)};l6.prototype.Nr=function(d,q,T,Y,e){S97(this);this.S=!q&&T===0;var U=this.J.getVideoData(1),b=this.J.getVideoData(2);U&&(this.contentCpn=U.clientPlaybackNonce,this.videoId=U.videoId,this.G=U.X);b&&(this.adCpn=b.clientPlaybackNonce,this.adVideoId=b.videoId,this.adFormat=b.adFormat);this.T=d;Y<=0?(S97(this),this.S=!q&&T===0):(this.actionType=this.S?q?"unknown_type":"video_to_ad":q?"ad_to_video":"ad_to_ad",this.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.j=!0,nU("_start",this.actionType)&&oZ1(this)))}; l6.prototype.reset=function(){return new l6(this.J)};g.M(v1,g.W);v1.prototype.addCueRange=function(d,q,T,Y,e,U,b,J,F){U=U===void 0?3:U;b=b===void 0?1:b;this.G.has(d)?Jm("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:d}):(d=new VS1(d,q,T,Y,U,J,F),this.G.set(d.id,{SF:d,listener:e,f3:b}),this.J.ES([d],b))}; v1.prototype.removeCueRange=function(d){var q=this.G.get(d);q?(this.J.cR([q.SF],q.f3),this.G.delete(q.SF.id)):Jm("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:d})}; v1.prototype.onCueRangeEnter=function(d){if(this.G.has(d.id))this.G.get(d.id).listener.onCueRangeEnter(d.id)}; v1.prototype.onCueRangeExit=function(d){if(this.G.has(d.id))this.G.get(d.id).listener.onCueRangeExit(d.id)}; g.M(VS1,g.Ij);oU.prototype.addPlayerResponseForAssociation=function(d){this.J.addPlayerResponseForAssociation(d)};V3.prototype.r0=function(d){this.J.r0(d)}; V3.prototype.qd=function(d){var q=g.CN.apply(1,arguments);d==="onAdStart"||d==="onAdEnd"?this.J.uv.apply(this.J,[d].concat(g.RQ(q))):this.J.gO.apply(this.J,[d].concat(g.RQ(q)))};dB.prototype.pz=function(d){return d&&qk(this)};var gD_=null;g.M($u1,g.YP);$u1.prototype.Oy=function(d){return this.G.hasOwnProperty(d)?this.G[d].Oy():{}}; g.Vf("ytads.bulleit.getVideoMetadata",function(d){return T_().Oy(d)}); g.Vf("ytads.bulleit.triggerExternalActivityEvent",function(d,q,T){var Y=T_();T=sH1(T);T!==null&&Y.publish(T,{queryId:d,viewabilityString:q})});g.Q=Y$.prototype;g.Q.Wr=function(d,q){if(!this.G.has(d))return{};if(q==="seek"){q=!1;q=q===void 0?!1:q;var T=QC(i3).i4(d,{});T?Dl(T):q&&(d=QC(i3).R$(null,tq(),!1,d),d.eV=3,pVn([d]));return{}}q=NuQ(q);if(q===null)return{};var Y=this.J.Av();if(!Y)return{};var e=this.J.getPresentingPlayerType(!0);if((T=this.J.getVideoData(e))==null||!T.isAd())return{};T={opt_adElement:Y,opt_fullscreen:this.Yx.get().isFullscreen()};return p07(q,d,T)}; g.Q.yA=function(d,q,T,Y,e){this.G.has(d)&&(Y<=0||e<=0||QC(i3).yA(d,q,T,Y,e))}; g.Q.LZ=function(d){var q;(q=this.G.get(d.queryId))==null||q.LZ()}; g.Q.ND=function(d){var q;(q=this.G.get(d.queryId))==null||q.ND()}; g.Q.Ff=function(d){var q;(q=this.G.get(d.queryId))==null||q.Ff()}; g.Q.eI=function(d){var q;(q=this.G.get(d.queryId))==null||q.eI()}; g.Q.nZ=function(d){var q;(q=this.G.get(d.queryId))==null||q.nZ()};EDf.prototype.send=function(d,q,T,Y){try{jHY(this,d,q,T,Y===void 0?!1:Y)}catch(e){}};g.M(a82,EDf);A6f.prototype.send=function(d,q,T,Y){var e=!1;try{if(Y==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||Y==="ATTRIBUTION_SRC_MODE_XHR_OPTION")e=!0,d=FRH(d);Y=e;var U=g.Jq(d);if(U[1]==="https")var b=d;else U[1]="https",b=Xm("https",U[2],U[3],U[4],U[5],U[6],U[7]);var J=gm2(b);U=[];var F=V4H(b)&&this.T2.get().J.C().experiments.Wv("add_auth_headers_to_remarketing_google_dot_com_ping");if(YA(b)||F)U.push({headerType:"USER_AUTH"}),U.push({headerType:"PLUS_PAGE_ID"}),U.push({headerType:"VISITOR_ID"}),U.push({headerType:"EOM_VISITOR_ID"}), U.push({headerType:"AUTH_USER"}),U.push({headerType:"DATASYNC_ID"});this.G.send({baseUrl:b,scrubReferrer:J,headers:U},q,T,Y)}catch(N){}};JT.prototype.iS=function(){return this.J.iS(1)};g.M(sW,g.W);g.Q=sW.prototype;g.Q.dc=function(){return this.J.getVideoData(1).clientPlaybackNonce}; g.Q.addListener=function(d){this.listeners.push(d)}; g.Q.removeListener=function(d){this.listeners=this.listeners.filter(function(q){return q!==d})}; g.Q.ej=function(){this.Oo.clear();this.aT=null;this.UQ.get().clear()}; g.Q.Zt=function(){}; g.Q.zUw=function(d,q,T,Y,e){q.videoId==="nPpU29QrbiU"&&this.J.oU("ads_ssm_vdc_s",{pt:T,dvt:d});uv(this.T2.get())&&d!=="dataloaded"||Gdg(this,q,T);if(qk(this.T2.get())&&d==="newdata"&&e!==void 0){d=this.dc();var U=q.clientPlaybackNonce,b={};$V(this,"rte",(b.ec=U,b.xc=Y==null?void 0:Y.clientPlaybackNonce,b.tr=e,b.pt=T,b.ia=U!==d,b.ctp=sJ(U),b));q=q.clientPlaybackNonce;Y=Y==null?void 0:Y.clientPlaybackNonce;e=LeD(e);if(e!==1)if(Y!==void 0)for(T=g.E(this.listeners),d=T.next();!d.done;d=T.next())d.value.xQ(Y, q,e);else Jm("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:q,transitionReason:String(e)});e=g.E(this.listeners);for(Y=e.next();!Y.done;Y=e.next())Y.value.De(q)}}; g.Q.OCg=function(d,q){d!==void 0&&(this.aT=d,q===void 0?Jm("Expected ad video start time on SS video changed"):this.Oo.set(d,q));var T=this.J.getPresentingPlayerType(!0),Y=this.J.getVideoData(T),e;d===void 0?e=null:e=this.UQ.get().G.get(d)||null;this.J.getVideoData(1).oU("ads_ssvc",{pt:T,cpn:Y==null?void 0:Y.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:q,pid:d,slid:e==null?void 0:e.layoutId});Y?Gdg(this,Y,T):Jm("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:d})}; g.Q.LR=function(d,q){var T=d.author,Y=d.clientPlaybackNonce,e=d.isListed,U=d.HG,b=d.title,J=d.jj,F=d.OP,N=d.isMdxPlayback,R=d.M4,x=d.mdxEnvironment,y=d.isAutonav,h=d.Ct,H=d.k9,a=d.Uq,p=d.videoId||"",t=d.profilePicture||"",n=d.Gp||"",K=d.mT()||!1,P=d.y5()||!1;d=d.Eu||void 0;U=this.UQ.get().G.get(U)||{layoutId:null,slotId:null};var w=this.J.getVideoData(1),l=w.aN();w=w.getPlayerResponse();q=1E3*this.J.getDuration(q);var m=1E3*this.J.getDuration(1),b_,x2,JY=(w==null?void 0:(b_=w.playerConfig)==null? void 0:(x2=b_.daiConfig)==null?void 0:x2.enableDai)||!1,s6,qH;b_=(w==null?void 0:(s6=w.playerConfig)==null?void 0:(qH=s6.daiConfig)==null?void 0:qH.enablePreroll)||!1;return Object.assign({},U,{videoId:p,author:T,clientPlaybackNonce:Y,L4:q,O6:m,daiEnabled:JY,qR:b_,isListed:e,aN:l,profilePicture:t,title:b,Gp:n,jj:J,OP:F,Eu:d,isMdxPlayback:N,M4:R,mdxEnvironment:x,isAutonav:y,Ct:h,k9:H,Uq:a,mT:K,y5:P})}; g.Q.ir=function(){this.listeners.length=0;this.h6=null;g.W.prototype.ir.call(this)};g.M($$,g.W);g.Q=$$.prototype;g.Q.ej=function(){var d=this;qk(this.T2.get())||(this.G=BB(function(){d.J.JF()||d.J.Lz("ad",1)}))}; g.Q.Zt=function(){}; g.Q.addListener=function(d){this.listeners.push(d)}; g.Q.removeListener=function(d){this.listeners=this.listeners.filter(function(q){return q!==d})}; g.Q.VB=function(){}; g.Q.playVideo=function(){this.J.playVideo()}; g.Q.pauseVideo=function(){this.J.pauseVideo()}; g.Q.resumeVideo=function(d){this.wK(d)&&this.J.playVideo()}; g.Q.wK=function(d){return this.J.getPlayerState(d)===2}; g.Q.getCurrentTimeSec=function(d,q,T){var Y=this.Xw.get().aT;if(d===2&&!q&&Y!==null)return Nk(this,Y);WA(this.T2.get(),"html5_ssap_use_cpn_to_get_time")||(T=void 0);return T!==void 0?this.J.getCurrentTime(d,q,T):this.J.getCurrentTime(d,q)}; g.Q.getVolume=function(){return this.J.getVolume()}; g.Q.isMuted=function(){return this.J.isMuted()}; g.Q.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)}; g.Q.getPlayerState=function(d){return this.J.getPlayerState(d)}; g.Q.getGetAdBreakContext=function(){return this.J.getGetAdBreakContext()}; g.Q.isFullscreen=function(){return this.J.isFullscreen()}; g.Q.isAtLiveHead=function(){return this.J.isAtLiveHead()}; g.Q.Kt=function(d){this.J.Kt(d)}; g.Q.hlF=function(){var d=this.J.getPresentingPlayerType(!0),q=this.getCurrentTimeSec(d,!1);if(d===2){d=g.E(this.listeners);for(var T=d.next();!T.done;T=d.next())T.value.e0(q)}else if(d===1)for(d=g.E(this.N7),T=d.next();!T.done;T=d.next())T.value.VB(q)}; g.Q.kGw=function(d){for(var q=g.E(this.listeners),T=q.next();!T.done;T=q.next())T.value.mf(d,this.getPresentingPlayerType())}; g.Q.onFullscreenToggled=function(d){for(var q=g.E(this.listeners),T=q.next();!T.done;T=q.next())T.value.onFullscreenToggled(d)}; g.Q.onVolumeChange=function(){for(var d=g.E(this.listeners),q=d.next();!q.done;q=d.next())q.value.onVolumeChange()}; g.Q.bS=function(){for(var d=this.J.isMinimized(),q=g.E(this.listeners),T=q.next();!T.done;T=q.next())T.value.bS(d)}; g.Q.n8=function(d){for(var q=g.E(this.listeners),T=q.next();!T.done;T=q.next())T.value.n8(d)}; g.Q.gz=function(){for(var d=this.J.OD().yS(),q=g.E(this.listeners),T=q.next();!T.done;T=q.next())T.value.P3(d)}; g.Q.EN=function(d){for(var q=g.E(this.listeners),T=q.next();!T.done;T=q.next())T.value.EN(d)}; g.Q.L8=function(){for(var d=g.E(this.listeners),q=d.next();!q.done;q=d.next())q.value.L8()};g.M(Cdf,g.W);g.M(y_,g.W);y_.prototype.ir=function(){this.Ui.JF()||this.Ui.get().removeListener(this);g.W.prototype.ir.call(this)};hT.prototype.fetch=function(d){var q=d.cz;return this.G.fetch(d.FL,{II:d.II===void 0?void 0:d.II,SF:q,cueProcessedMs:d.cueProcessedMs===void 0?0:d.cueProcessedMs}).then(function(T){return uRI(T,q)})};g.M(He,g.W);g.Q=He.prototype;g.Q.addListener=function(d){this.listeners.push(d)}; g.Q.removeListener=function(d){this.listeners=this.listeners.filter(function(q){return q!==d})}; g.Q.QG=function(d){Du1(this,d,1)}; g.Q.onAdUxClicked=function(d,q){Q_(this,function(T){T.Gu(d,q)})}; g.Q.B5=function(d){Q_(this,function(q){q.Ht(d)})}; g.Q.W5=function(d){Q_(this,function(q){q.a_(d)})}; g.Q.sUZ=function(d){Q_(this,function(q){q.tS(d)})};Mk.prototype.reduce=function(d){switch(d.event){case "unknown":return}var q=d.identifier;var T=this.G[q];T?q=T:(T={DC:null,W2:-Infinity},q=this.G[q]=T);T=d.startSecs+d.G/1E3;if(!(T=this.G.startSecs&&T.startSecs<=this.G.startSecs+this.G.sS)){var Y=void 0;if(Dw(this.T2.get())&&T.identifier!==((Y=this.G)==null?void 0:Y.identifier)){var e=Y=void 0,U=void 0,b=void 0;cn(this.Hv.get(),"ocud","ccpi."+T.identifier+";ccpe."+T.event+";ccps."+T.startSecs+";\n ccpd."+T.sS+";pcpi."+((Y=this.G)==null?void 0:Y.identifier)+ ";pcpe."+((e=this.G)==null?void 0:e.event)+";\n pcps."+((U=this.G)==null?void 0:U.startSecs)+";pcpd."+((b=this.G)==null?void 0:b.sS)+";")}Y=void 0;T.identifier!==((Y=this.G)==null?void 0:Y.identifier)&&Jm("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.G=T,zdD(this,T)}}; g.Q.ir=function(){this.U!=null&&(this.U.unsubscribe("cuepointupdated",this.wC,this),this.U=null);this.listeners.length=0;this.gp.length=0;g.W.prototype.ir.call(this)};g.Q=jy.prototype;g.Q.Iv=function(d,q,T,Y,e,U,b,J){return this.J.Iv(d,q,T,Y,e,U,b,J)}; g.Q.tI=function(d,q){this.J.tI(d,q)}; g.Q.Jh=function(d,q,T){this.J.Jh(d,q,T)}; g.Q.uI=function(d){this.J.uI(d)}; g.Q.gm=function(d,q,T,Y,e,U,b){this.J.gm(d,q,T,Y,e,U,b)}; g.Q.oF=function(d){return this.J.oF(d)}; g.Q.finishSegmentByCpn=function(d,q,T){T=muQ(T);this.J.finishSegmentByCpn(d,q,T)};g.M(aP,g.W);g.M(l8N,g.W);g.M(vDX,g.W);g.M(oD7,g.W);g.M(Vb1,g.W);g.M(dHN,g.W);g.M(TI_,g.W);TI_.prototype.j=function(){return this.U};g.M(Y6c,uE); Y6c.prototype.j=function(d){var q=d.content;if(q.componentType==="shopping-companion")switch(d.actionType){case 1:case 2:d=this.G.getVideoData(1);this.G.gO("updateKevlarOrC3Companion",{contentVideoId:d&&d.videoId,shoppingCompanionCarouselRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.G,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:this.G.gO("updateKevlarOrC3Companion",{})}else if(q.componentType==="action-companion")switch(d.actionType){case 1:case 2:d=this.G.getVideoData(1); this.G.gO("updateKevlarOrC3Companion",{contentVideoId:d&&d.videoId,actionCompanionAdRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.G,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q.renderer&&(q=this.G.getVideoData(1),this.G.gO("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId})),this.G.gO("updateKevlarOrC3Companion",{})}else if(q.componentType==="image-companion")switch(d.actionType){case 1:case 2:d=this.G.getVideoData(1);this.G.gO("updateKevlarOrC3Companion", {contentVideoId:d&&d.videoId,imageCompanionAdRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.G,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q=this.G.getVideoData(1),this.G.gO("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId}),this.G.gO("updateKevlarOrC3Companion",{})}else if(q.componentType==="top-banner-image-text-icon-buttoned")switch(d.actionType){case 1:case 2:d=this.G.getVideoData(1);this.G.gO("updateKevlarOrC3Companion", {contentVideoId:d&&d.videoId,topBannerImageTextIconButtonedLayoutViewModel:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.G,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q.renderer&&(q=this.G.getVideoData(1),this.G.gO("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId})),this.G.gO("updateKevlarOrC3Companion",{})}else if(q.componentType==="banner-image")switch(d.actionType){case 1:case 2:d=this.G.getVideoData(1);this.G.gO("updateKevlarOrC3Companion", {contentVideoId:d&&d.videoId,bannerImageLayoutViewModel:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.G,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q=this.G.getVideoData(1),this.G.gO("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId}),this.G.gO("updateKevlarOrC3Companion",{})}else if(q.componentType==="ads-engagement-panel")switch(q=q.renderer,d.actionType){case 1:case 2:this.G.gO("updateEngagementPanelAction",q.addAction);this.G.gO("changeEngagementPanelVisibility", q.expandAction);break;case 3:this.G.gO("changeEngagementPanelVisibility",q.hideAction),this.G.gO("updateEngagementPanelAction",q.removeAction)}else if(q.componentType==="ads-engagement-panel-layout"){var T=q.renderer;switch(d.actionType){case 1:case 2:this.G.gO("updateEngagementPanelAction",{action:Ba(T.addAction),layoutId:q.layoutId,onLayoutVisibleCallback:q.G,interactionLoggingClientData:q.interactionLoggingClientData});this.G.gO("changeEngagementPanelVisibility",Ba(T.expandAction));break;case 3:this.G.gO("changeEngagementPanelVisibility", Ba(T.hideAction)),this.G.gO("updateEngagementPanelAction",{action:Ba(T.removeAction)})}}};g.M(enE,Sx);g.Q=enE.prototype;g.Q.init=function(d,q,T){Sx.prototype.init.call(this,d,q,T);g.Dv(this.j,"stroke-dasharray","0 "+this.U);this.j.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.X.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.T.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){vk(this);Sx.prototype.hide.call(this)}; g.Q.show=function(){lE(this);Sx.prototype.show.call(this)}; g.Q.K3=function(){this.hide()}; g.Q.Ba=function(){if(this.G){var d=this.G.getProgressState();d!=null&&d.current!=null&&g.Dv(this.j,"stroke-dasharray",d.current/d.seekableEnd*this.U+" "+this.U)}};g.M(UH7,sx);g.Q=UH7.prototype; g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);if(q.image&&q.image.thumbnail)if(q.headline)if(q.description)if(q.backgroundImage&&q.backgroundImage.thumbnail)if(q.actionButton&&g.D(q.actionButton,g.q6))if(d=q.durationMilliseconds||0,typeof d!=="number"||d<=0)g.Zz(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+d));else if(q.navigationEndpoint){var Y=this.api.getVideoData(2);if(Y!=null){var e=q.image.thumbnail.thumbnails;e!=null&& e.length>0&&g.nh(g.rt(e[0].url))&&(e[0].url=Y.profilePicture,g.nh(g.rt(Y.profilePicture))&&ieH("VideoPlayer",239976093,"Expected non-empty profile picture."));e=q.backgroundImage.thumbnail.thumbnails;e!=null&&e.length>0&&g.nh(g.rt(e[0].url))&&(e[0].url=Y.Qg());e=q.headline;e!=null&&g.nh(g.rt(e.text))&&(e.text=Y.author)}this.K.init(qP("ad-image"),q.image,T);this.X.init(qP("ad-text"),q.headline,T);this.j.init(qP("ad-text"),q.description,T);this.qk.init(qP("ad-image"),q.backgroundImage,T);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.X.element.classList.add("ytp-ad-action-interstitial-headline-light");this.j.element.classList.add("ytp-ad-action-interstitial-description-light");Y.push("ytp-ad-action-interstitial-action-button-dark");this.api.C().U&&(Y.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),Y.push("ytp-ad-action-interstitial-action-button-dark"));this.api.C().N("enable_unified_action_endcap_on_web")&& !this.api.C().U&&(Y.push("ytp-ad-action-interstitial-action-button-unified"),this.Fw.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.K.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Bv.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.mj.classList.add("ytp-ad-action-interstitial-card-unified"),this.UD.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.j.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.z2.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.X.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.aU.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.RU.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new nM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,Y);g.C(this,this.actionButton);this.actionButton.IU(this.Fw); this.actionButton.init(qP("button"),g.D(q.actionButton,g.q6),T);kM(this.actionButton.element);Y=C9(this.actionButton.element);Wh(this.actionButton.element,Y+" This link opens in new tab");this.navigationEndpoint=q.navigationEndpoint;this.T.W(this.aU,"click",this.I3,this);this.T.W(this.UD,"click",this.I3,this);!this.api.C().N("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.C().U||this.T.W(this.z2,"click",this.I3,this);this.G=this.C_?new HG(this.api,d):new QZ(d);g.C(this,this.G);if(q.skipButton){(d= g.D(q.skipButton,xXs))&&this.G&&(this.skipButton=new F$(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.G,this.jO),g.C(this,this.skipButton),this.skipButton.IU(this.element),this.skipButton.init(qP("skip-button"),d,T));if(T=q.adBadgeRenderer)if(T=g.D(T,RSs))d=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!0,!0),d.IU(this.RU),d.init(qP("simple-ad-badge"),T,this.macros),g.C(this,d);if(T=q.adInfoRenderer)if(T=g.D(T,VP))d=new iE(this.api,this.layoutId,this.interactionLoggingClientData, this.Nk,this.element,void 0,!0),d.IU(this.RU),d.init(qP("ad-info-hover-text-button"),T,this.macros),g.C(this,d)}else q.nonskippableOverlayRenderer&&(d=g.D(q.nonskippableOverlayRenderer,dN))&&this.G&&(this.U=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.G,!1),g.C(this,this.U),this.U.IU(this.element),this.U.init(qP("ad-preview"),d,T));q.countdownRenderer&&(q=q.countdownRenderer,g.D(q,ynL)&&this.G&&(T=new enE(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk, this.G),g.C(this,T),T.IU(this.element),T.init(qP("timed-pie-countdown"),g.D(q,ynL),this.macros)));this.show();this.element.focus()}else g.Zz(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Zz(Error("AdActionInterstitialRenderer has no button."));else g.Zz(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Zz(Error("AdActionInterstitialRenderer has no description AdText."));else g.Zz(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Zz(Error("AdActionInterstitialRenderer has no image."))}; g.Q.clear=function(){g.jX(this.T);this.hide()}; g.Q.show=function(){bNj(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.U&&this.U.show();sx.prototype.show.call(this)}; g.Q.hide=function(){bNj(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.U&&this.U.hide();sx.prototype.hide.call(this)}; g.Q.I3=function(){this.navigationEndpoint&&(this.layoutId?this.Nk.executeCommand(this.navigationEndpoint,this.layoutId):g.Zz(Error("Missing layoutId for ad action interstitial.")))};var g2N={iconType:"CLOSE"},OW=new g.zP(320,63);g.M($HB,sx);g.Q=$HB.prototype; g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);this.T=q;this.K=g.rL(this.T.onClickCommands||[]);this.RU=this.T.onErrorCommand||null;if(d=this.T.contentSupportedRenderer)d=this.T.contentSupportedRenderer,q=this.T.adInfoRenderer||null,g.D(d,gSI)?(this.X=g.bY("ytp-ad-overlay-ad-info-button-container",this.j.element),FjN(this,q),d=RnE(this,g.D(d,gSI))):g.D(d,FnR)?(this.X=g.bY("ytp-ad-overlay-ad-info-button-container",this.U.element),FjN(this,q),d=xH7(this,g.D(d,FnR))):g.D(d,Nt7)?(this.X= g.bY("ytp-ad-overlay-ad-info-button-container",this.G.element),FjN(this,q),d=yYn(this,g.D(d,Nt7))):(g.Zz(Error("InvideoOverlayAdRenderer content could not be initialized.")),d=!1);d&&(this.show(),hnj(this,!0))}; g.Q.clear=function(){hnj(this,!1);this.aU.reset();this.UD=0;this.j.hide();this.logVisibility(this.j.element,!1);this.U.hide();this.logVisibility(this.U.element,!1);this.G.hide();this.logVisibility(this.G.element,!1);this.hide();this.dispose()}; g.Q.oor=function(){this.Fw&&(this.layoutId?this.Nk.executeCommand(this.Fw,this.layoutId):g.Zz(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.Q.ZR=function(){a:{if(this.T&&this.T.closeButton&&this.T.closeButton.buttonRenderer){var d=this.T.closeButton.buttonRenderer;if(d.serviceEndpoint){d=[d.serviceEndpoint];break a}}d=[]}d=g.E(d);for(var q=d.next();!q.done;q=d.next())q=q.value,this.layoutId?this.Nk.executeCommand(q,this.layoutId):g.Zz(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.Q.bfr=function(){this.qk||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.Q.YC=function(){this.qk||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.YC("invideo-overlay")}; g.Q.awZ=function(d){d.target===this.X&&g.bY("ytp-ad-button",this.Bv.element).click()};g.M(HNR,Sx);g.Q=HNR.prototype;g.Q.init=function(d,q,T){Sx.prototype.init.call(this,d,q,T);d=q.durationMs;this.j=d==null||d===0?0:d+this.G.getProgressState().current*1E3;if(q.text)var Y=q.text.templatedAdText;else q.staticMessage&&(Y=q.staticMessage);this.messageText.init(qP("ad-text"),Y,T);this.messageText.IU(this.U.element);this.T.show(100);this.show()}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){QQE(this,!1);Sx.prototype.hide.call(this);this.U.hide();this.messageText.hide();vk(this)}; g.Q.show=function(){QQE(this,!0);Sx.prototype.show.call(this);lE(this);this.U.show();this.messageText.show()}; g.Q.K3=function(){this.hide()}; g.Q.Ba=function(){if(this.G!=null){var d=this.G.getProgressState();d!=null&&d.current!=null&&(d=1E3*d.current,!this.UD&&d>=this.j?(this.T.hide(),this.UD=!0):this.messageText&&this.messageText.isTemplated()&&(d=Math.max(0,Math.ceil((this.j-d)/1E3)),d!==this.X&&(mr(this.messageText,{TIME_REMAINING:String(d)}),this.X=d)))}};g.M(MDN,sx);g.Q=MDN.prototype; g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,{});q.image&&q.image.thumbnail?q.headline?q.description?q.actionButton&&g.D(q.actionButton,g.q6)?(this.j.init(qP("ad-image"),q.image,T),this.U.init(qP("ad-text"),q.headline,T),this.T.init(qP("ad-text"),q.description,T),this.actionButton=new nM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,["ytp-ad-underlay-action-button"]),q.backgroundColor&&g.Dv(this.element,"background-color",g.Gc(q.backgroundColor)),g.C(this,this.actionButton), this.actionButton.IU(this.X),this.actionButton.init(qP("button"),g.D(q.actionButton,g.q6),T),d=g.Yv(this.api.C().experiments,"player_underlay_video_width_fraction"),this.api.C().N("place_shrunken_video_on_left_of_player")?(q=this.G,g.TR(q,"ytp-ad-underlay-left-container"),g.d9(q,"ytp-ad-underlay-right-container"),g.Dv(this.G,"margin-left",Math.round((d+.02)*100)+"%")):(q=this.G,g.TR(q,"ytp-ad-underlay-right-container"),g.d9(q,"ytp-ad-underlay-left-container")),g.Dv(this.G,"width",Math.round((1-d- .04)*100)+"%"),this.api.uB()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.p$.bind(this)),this.api.addEventListener("resize",this.z$.bind(this))):g.Zz(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Zz(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Zz(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Zz(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.Q.show=function(){cYx(!0);this.actionButton&&this.actionButton.show();sx.prototype.show.call(this)}; g.Q.hide=function(){cYx(!1);this.actionButton&&this.actionButton.hide();sx.prototype.hide.call(this)}; g.Q.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.p$.bind(this));this.api.removeEventListener("resize",this.z$.bind(this));this.hide()}; g.Q.onClick=function(d){sx.prototype.onClick.call(this,d);this.actionButton&&g.HB(this.actionButton.element,d.target)&&this.api.pauseVideo()}; g.Q.p$=function(d){d==="transitioning"?(this.G.classList.remove("ytp-ad-underlay-clickable"),this.show()):d==="visible"?this.G.classList.add("ytp-ad-underlay-clickable"):d==="hidden"&&(this.hide(),this.G.classList.remove("ytp-ad-underlay-clickable"))}; g.Q.z$=function(d){d.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):d.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.Dv(this.U.element,"font-size",d.width/40+"px")};g.M(nr,sx); nr.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);q.toggledLoggingParams&&(this.toggledLoggingParams=q.toggledLoggingParams);q.answer&&g.D(q.answer,g.q6)?(d=new nM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),d.IU(this.answer),d.init(qP("ytp-ad-survey-answer-button"),g.D(q.answer,g.q6),T),d.show()):q.answer&&g.D(q.answer,p8)&&(this.G=new Wk(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk, ["ytp-ad-survey-answer-toggle-button"]),this.G.IU(this.answer),g.C(this,this.G),this.G.init(qP("survey-answer-button"),g.D(q.answer,p8),T));this.show()}; nr.prototype.xm=function(d){this.layoutId?Lu(this.Nk,d,this.layoutId,this.macros):(d=new g.CW("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Zz(d))}; nr.prototype.onClick=function(d){sx.prototype.onClick.call(this,d);if(this.api.C().N("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; nr.prototype.clear=function(){this.hide()};g.M(E2j,sx);E2j.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);q.answer&&g.D(q.answer,p8)&&(this.button=new Wk(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.IU(this.G),this.button.init(qP("survey-none-of-the-above-button"),g.D(q.answer,p8),T));this.show()};g.M(rB,nM);rB.prototype.init=function(d,q,T){nM.prototype.init.call(this,d,q,T);d=!1;q.text&&(q=g.gx(q.text),d=!g.nh(q));d||g.OL(Error("No submit text was present in the renderer."))}; rB.prototype.onClick=function(d){this.publish("l");nM.prototype.onClick.call(this,d)};g.M(tT,sx); tT.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);if(d=q.skipOrPreviewRenderer)g.D(d,AP)?(d=g.D(d,AP),T=new Ru(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.T,!0),T.IU(this.skipOrPreview),T.init(qP("skip-button"),d,this.macros),g.C(this,T),this.G=T):g.D(d,dN)&&(d=g.D(d,dN),T=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.T,!1),T.IU(this.skipOrPreview),T.init(qP("ad-preview"),d,this.macros),T.UD.show(100),T.show(),g.C(this,T), this.G=T);this.G==null&&(d=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(q)),g.Zz(d));q.submitButton&&(d=q.submitButton,g.D(d,g.q6)&&(d=g.D(d,g.q6),T=new rB(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),T.IU(this.submitButton),T.init(qP("survey-submit"),d,this.macros),g.C(this,T),this.U=T));if(d=q.adBadgeRenderer)d=g.D(d,RSs),T=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!0,!0,!0),T.IU(this.j),T.init(qP("simple-ad-badge"), d,this.macros),this.adBadge=T.element,g.C(this,T);if(d=q.adDurationRemaining)d=g.D(d,Jnq),T=new EP(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.T,void 0,!0),T.IU(this.j),T.init(qP("ad-duration-remaining"),d,this.macros),g.C(this,T);(q=q.adInfoRenderer)&&g.D(q,VP)&&(d=new iE(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.element,void 0,!0),g.C(this,d),this.adBadge!==void 0?this.j.insertBefore(d.element,this.adBadge.nextSibling):d.IU(this.j),d.init(qP("ad-info-hover-text-button"), g.D(q,VP),this.macros));this.show()}; tT.prototype.clear=function(){this.hide()};g.M(Be,sx);Be.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);ZNj(this)}; Be.prototype.show=function(){this.j=Date.now();sx.prototype.show.call(this)}; Be.prototype.U8=function(){};g.M(ONj,Be);g.Q=ONj.prototype;g.Q.init=function(d,q,T){var Y=this;Be.prototype.init.call(this,d,q,T);q.questionText&&jQl(this,q.questionText);q.answers&&q.answers.forEach(function(e,U){g.D(e,aS)&&aXs(Y,g.D(e,aS),T,U)}); this.X=new Set(this.U.map(function(e){return e.G.G})); (d=q.noneOfTheAbove)&&(d=g.D(d,$Xn))&&n2I(this,d,T);q.surveyAdQuestionCommon&&pgs(this,q.surveyAdQuestionCommon);q.submitEndpoints&&(this.submitEndpoints=q.submitEndpoints);this.W(this.element,"change",this.onChange);this.show()}; g.Q.U8=function(){rYL(this,!1);this.T.U.subscribe("l",this.lm5,this)}; g.Q.onChange=function(d){d.target===this.noneOfTheAbove.button.G?tD7(this):this.X.has(d.target)&&(this.noneOfTheAbove.button.toggleButton(!1),rYL(this,!0))}; g.Q.lm5=function(){var d=[],q=this.U.reduce(function(e,U,b){var J=U.toggledLoggingParams;U.G&&U.G.isToggled()&&J&&(e.push(J),d.push(b));return e},[]).join("&"),T=this.submitEndpoints.map(function(e){if(!e.loggingUrls)return e; e=g.yl(e);e.loggingUrls=e.loggingUrls.map(function(U){U.baseUrl&&(U.baseUrl=hq(U.baseUrl,q));return U}); return e}); if(T){T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next())Y=Y.value,this.layoutId?Lu(this.Nk,Y,this.layoutId,this.macros):g.Zz(Error("Missing layoutId for multi_select_question."))}this.api.C().N("supports_multi_step_on_desktop")&&this.UD(d)}; g.Q.clear=function(){this.api.C().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.M(Kr,Be);Kr.prototype.init=function(d,q,T){var Y=this;Be.prototype.init.call(this,d,q,T);q.questionText&&jQl(this,q.questionText);q.answers&&q.answers.forEach(function(e,U){g.D(e,aS)&&aXs(Y,g.D(e,aS),T,U)}); q.surveyAdQuestionCommon?pgs(this,q.surveyAdQuestionCommon):qw(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(q)));this.show()}; Kr.prototype.clear=function(){this.api.C().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.M(G_,sx);G_.prototype.init=function(d,q,T){var Y=this;sx.prototype.init.call(this,d,q,T);if(this.api.C().N("supports_multi_step_on_desktop")){var e;this.conditioningRules=(e=q.conditioningRules)!=null?e:[];var U;this.U=(U=q.questions)!=null?U:[];var b;((b=q.questions)==null?0:b.length)&&Ljj(this,0)}else(q.questions||[]).forEach(function(J){g.D(J,vY)?Kjx(Y,g.D(J,vY),T):g.D(J,lV)&&G7j(Y,g.D(J,lV),T)}); this.show()}; G_.prototype.clear=function(){this.api.C().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; G_.prototype.T=function(d){var q=this;if(this.api.C().N("supports_multi_step_on_desktop")){var T;if((T=this.conditioningRules)==null?0:T.length){var Y;if(d.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(e){return e.questionIndex===q.G})==null)g.Zz(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(e){if(e.questionIndex===q.G)switch(e.condition){case "CONDITION_ALL_OF":var U;if((U=e.answerIndices)==null?0:U.every(function(J){return d.includes(J)}))Y=e.nextQuestionIndex; break;case "CONDITION_ANY_OF":var b;if((b=e.answerIndices)==null?0:b.some(function(J){return d.includes(J)}))Y=e.nextQuestionIndex; break;default:g.Zz(Error("Expected specified condition in survey conditioning rules."))}}),Y!=null)Ljj(this,Y); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Zz(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.M(Lr,sx); Lr.prototype.init=function(d,q,T){var Y=this;sx.prototype.init.call(this,d,q,T);d=q.timeoutSeconds||0;if(typeof d!=="number"||d<0)g.Zz(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+d));else if(q.timeoutCommands)if(q.text)if(q.ctaButton&&g.D(q.ctaButton,g.q6))if(q.brandImage)if(q.backgroundImage&&g.D(q.backgroundImage,Tb)&&g.D(q.backgroundImage,Tb).landscape){this.layoutId||g.Zz(Error("Missing layoutId for survey interstitial."));k7L(this.interstitial,g.D(q.backgroundImage, Tb).landscape);k7L(this.logoImage,q.brandImage);g.Qp(this.text,g.gx(q.text));var e=["ytp-ad-survey-interstitial-action-button"];e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new nM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,e);g.C(this,this.actionButton);this.actionButton.IU(this.U);this.actionButton.init(qP("button"),g.D(q.ctaButton,g.q6),T);this.actionButton.show();this.G=new HG(this.api,d*1E3);this.G.subscribe("g",function(){Y.transition.hide()}); g.C(this,this.G);this.W(this.element,"click",function(U){var b=U.target===Y.interstitial;U=Y.actionButton.element.contains(U.target);if(b||U)if(Y.transition.hide(),b)Y.api.onAdUxClicked(Y.componentType,Y.layoutId)}); this.transition.show(100)}else g.Zz(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Zz(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Zz(Error("SurveyTextInterstitialRenderer has no button."));else g.Zz(Error("SurveyTextInterstitialRenderer has no text."));else g.Zz(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; Lr.prototype.clear=function(){this.hide()}; Lr.prototype.show=function(){P_E(!0);sx.prototype.show.call(this)}; Lr.prototype.hide=function(){P_E(!1);sx.prototype.hide.call(this)};g.M(k$,Sx);g.Q=k$.prototype; g.Q.init=function(d,q){Sx.prototype.init.call(this,d,q,{});if(q.durationMilliseconds){if(q.durationMilliseconds<0){g.Zz(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+q.durationMilliseconds));return}this.U=q.durationMilliseconds}else this.U=this.G.F0();var T;if((T=q.previewText)==null||!T.text||g.nh(q.previewText.text))g.Zz(Error("No text is returned for AdPreview."));else{this.X=q.previewText;q.previewText.isTemplated||g.Qp(this.j,q.previewText.text);var Y; if(((Y=this.api.getVideoData(1))==null?0:Y.fp)&&q.previewImage){var e,U;(d=((U=xU(((e=q.previewImage)==null?void 0:e.sources)||[],52,!1))==null?void 0:U.url)||"")&&d.length?(this.previewImage=new g.Ji({Y:"img",D:"ytp-preview-ad__image",Z:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",d),g.C(this,this.previewImage),this.previewImage.IU(this.element)):g.Zz(Error("Failed to get imageUrl in AdPreview."))}else this.j.classList.add("ytp-preview-ad__text--padding--wide")}}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){vk(this);Sx.prototype.hide.call(this)}; g.Q.show=function(){lE(this);Sx.prototype.show.call(this)}; g.Q.K3=function(){this.hide()}; g.Q.Ba=function(){if(this.G){var d=this.G.getProgressState();if(d!=null&&d.current)if(d=1E3*d.current,d>=this.U)this.transition.hide();else{var q;if((q=this.X)==null?0:q.isTemplated)if(q=Math.max(0,Math.ceil((this.U-d)/1E3)),q!==this.T){var T,Y;(d=(T=this.X)==null?void 0:(Y=T.text)==null?void 0:Y.replace("{TIME_REMAINING}",String(q)))&&g.Qp(this.j,d);this.T=q}}}};g.M(Pe,sx); Pe.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});var T,Y;if((d=((Y=xU(((T=q.image)==null?void 0:T.sources)||[],WjR(q),!0))==null?void 0:Y.url)||"")&&d.length){T=this.Qv("ytp-ad-avatar");T.src=d;var e,U;if(Y=(e=q.interaction)==null?void 0:(U=e.accessibility)==null?void 0:U.label)T.alt=Y;switch(q.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(q.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.Zz(Error("Failed to get imageUrl in AdAvatar."))}; Pe.prototype.clear=function(){this.hide()}; Pe.prototype.onClick=function(d){sx.prototype.onClick.call(this,d)};g.M(We,sx); We.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});var T;d=(T=q.label)==null?void 0:T.content;if((T=d!=null&&!g.nh(d))||q.iconImage){T&&(this.buttonText=new g.Ji({Y:"span",D:"ytp-ad-button-vm__text",j5:d}),g.C(this,this.buttonText),this.buttonText.IU(this.element));var Y,e,U=((Y=q.interaction)==null?0:(e=Y.accessibility)==null?0:e.label)||T?d:"";U&&Wh(this.element,U+" This link opens in new tab");kM(this.element);if(q.iconImage){Y=void 0;if(q.iconImage){a:{e=q.iconImage;if(e.sources)for(e= g.E(e.sources),d=e.next();!d.done;d=e.next())if(d=d.value,U=void 0,(U=d.clientResource)==null?0:U.imageName){e=d;break a}e=void 0}if(e){var b;Y={iconType:(b=e.clientResource)==null?void 0:b.imageName}}}b=Ox(Y,!1,this.U);b!=null&&(this.buttonIcon=new g.Ji({Y:"span",D:"ytp-ad-button-vm__icon",V:[b]}),g.C(this,this.buttonIcon),q.iconLeading?(yp(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):T?(this.buttonIcon.IU(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.IU(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(q.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.api.N("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.G?"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(q.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.OL(Error("AdButton does not have label or an icon."))}; We.prototype.clear=function(){this.hide()}; We.prototype.onClick=function(d){sx.prototype.onClick.call(this,d)};g.M(C_n,Sx);g.Q=C_n.prototype; g.Q.init=function(d,q){Sx.prototype.init.call(this,d,q,{});this.api.C().N("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Qv("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),yp(this.Qv("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(d=g.D(q.avatar,mO)){var T=q.headline;if(T){var Y=q.description;if(Y){var e=g.D(q.button,lU);e?(this.adAvatar.init(qP("ad-avatar"),d),this.headline.init(qP("ad-simple-attributed-string"),new au(T)),this.description.init(qP("ad-simple-attributed-string"),new au(Y)),T.content&&T.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(qP("ad-button"),e),this.startMilliseconds=q.startMs||0,this.api.uB()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.r8.bind(this)),lE(this)):g.Zz(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Zz(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Zz(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Zz(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.Q.Ba=function(){if(this.G){var d=this.G.getProgressState();d&&d.current&&1E3*d.current>=this.startMilliseconds&&(vk(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.Q.K3=function(){this.clear()}; g.Q.onClick=function(d){this.api.pauseVideo();Sx.prototype.onClick.call(this,d)}; g.Q.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.r8.bind(this))}; g.Q.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Sx.prototype.show.call(this)}; g.Q.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Sx.prototype.hide.call(this)}; g.Q.r8=function(d){d==="hidden"?this.show():this.hide()};g.M(Cr,sx);g.Q=Cr.prototype; g.Q.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(!q.label||g.nh(q.label))g.Zz(Error("No label is returned for SkipAdButton."));else if(g.Qp(this.T,q.label),d=Ox({iconType:"SKIP_NEXT_NEW"}),d==null)g.Zz(Error("Unable to retrieve icon for SkipAdButton"));else if(this.j=new g.Ji({Y:"span",D:"ytp-skip-ad-button__icon",V:[d]}),g.C(this,this.j),this.j.IU(this.element),this.api.C().experiments.Wv("enable_skip_to_next_messaging")&&(q=g.rt(q.targetId)))this.U=!0,this.element.setAttribute("data-tooltip-target-id",q), this.element.setAttribute("data-tooltip-target-fixed","")}; g.Q.onClick=function(d){d&&d.preventDefault();var q,T;Xj_(d,{contentCpn:(T=(q=this.api.getVideoData(1))==null?void 0:q.clientPlaybackNonce)!=null?T:""})===0?this.api.gO("onAbnormalityDetected"):(sx.prototype.onClick.call(this,d),this.api.gO("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.Q.clear=function(){this.G.reset();this.hide()}; g.Q.hide=function(){sx.prototype.hide.call(this)}; g.Q.show=function(){this.G.start();sx.prototype.show.call(this);this.U&&this.api.C().experiments.Wv("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.M(u1L,Sx);g.Q=u1L.prototype; g.Q.init=function(d,q){Sx.prototype.init.call(this,d,q,{});d=g.D(q.preskipState,jyl);var T;if((T=this.api.getVideoData())==null?0:T.isDaiEnabled()){if(!d){g.Zz(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.U=new k$(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.G);g.C(this,this.U);this.U.IU(this.element);var Y;(Y=this.U)==null||Y.init(qP("preview-ad"),d);(T=this.U)!=null&&(T.transition.show(100),T.show())}(T=g.D(q.skippableState,AnN))?(q.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=q.skipOffsetMilliseconds:(g.OL(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.j.init(qP("skip-button"),T),this.show()):g.Zz(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.Q.show=function(){lE(this);Sx.prototype.show.call(this)}; g.Q.hide=function(){!this.isSkippable&&this.U?this.U.hide():this.j&&this.j.hide();vk(this);Sx.prototype.hide.call(this)}; g.Q.clear=function(){var d;(d=this.U)==null||d.clear();this.j&&this.j.clear();vk(this);Sx.prototype.hide.call(this)}; g.Q.K3=function(){this.hide()}; g.Q.Ba=function(){if(1E3*this.G.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var d;(d=this.U)!=null&&d.transition.hide();(d=this.j)!=null&&(d.transition.show(),d.show())}};g.M(uU,sx); uU.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(q.label){var T;((T=q.label)==null?0:T.content)&&!g.nh(q.label.content)&&(this.linkText=new g.Ji({Y:"span",D:"ytp-visit-advertiser-link__text",j5:q.label.content}),g.C(this,this.linkText),this.linkText.IU(this.element));var Y,e;if((Y=q.interaction)==null?0:(e=Y.accessibility)==null?0:e.label)Wh(this.element,q.interaction.accessibility.label+" This link opens in new tab");else{var U;((U=q.label)==null?0:U.content)&&!g.nh(q.label.content)&&Wh(this.element, q.label.content+" This link opens in new tab")}kM(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Zz(Error("No label found in VisitAdvertiserLink."))}; uU.prototype.onClick=function(d){sx.prototype.onClick.call(this,d);this.api.onAdUxClicked(this.componentType,this.layoutId)}; uU.prototype.clear=function(){this.hide()};g.M(Dr,sx); Dr.prototype.init=function(d,q,T,Y){sx.prototype.init.call(this,d,q,{});if(q.skipOrPreview){T=q.skipOrPreview;d=g.D(T,pZI);T=g.D(T,jyl);if(d)this.gJ=new u1L(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.U),g.C(this,this.gJ),this.gJ.IU(this.K),this.gJ.init(qP("skip-ad"),d);else{var e;T&&((e=this.api.getVideoData())==null?0:e.isDaiEnabled())&&(this.T=new k$(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.U,1),g.C(this,this.T),this.T.IU(this.K),this.T.init(qP("ad-preview"), T),e=this.T,e.transition.show(100),e.show())}if(e=g.D(q.skipOrPreview,pZI))var U=e.skipOffsetMilliseconds}q.playerAdCard&&(e=g.D(q.playerAdCard,aGn))&&(this.playerAdCard=new C_n(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.U),g.C(this,this.playerAdCard),this.playerAdCard.IU(this.z2),this.playerAdCard.init(qP("ad-avatar-lockup-card"),e));q.adBadgeRenderer&&((e=g.D(q.adBadgeRenderer,Sy))?(this.j=new pG(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!0),g.C(this, this.j),this.j.IU(this.G),this.j.init(qP("ad-badge"),e)):g.Zz(Error("AdBadgeViewModel is not found in player overlay layout.")));q.adPodIndex&&(e=g.D(q.adPodIndex,Qyj))&&(this.adPodIndex=new Z0(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.adPodIndex),this.adPodIndex.IU(this.G),this.adPodIndex.init(qP("ad-pod-index"),e));q.adInfoRenderer&&((e=g.D(q.adInfoRenderer,VP))?(this.adInfoButton=new iE(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.element, void 0,!0),g.C(this,this.adInfoButton),this.j!==void 0?this.G.insertBefore(this.adInfoButton.element,this.j.element.nextSibling):this.adInfoButton.IU(this.G),this.adInfoButton.init(qP("ad-info-hover-text-button"),e,this.macros)):g.OL(Error("AdInfoRenderer is not found in player overlay layout.")));var b;e=(b=this.api.getVideoData())==null?void 0:b.isDaiEnabled();q.adDurationRemaining&&e&&(b=g.D(q.adDurationRemaining,Jnq))&&(this.adDurationRemaining=new EP(this.api,this.layoutId,this.interactionLoggingClientData, this.Nk,this.U,Y.videoAdDurationSeconds,!0),g.C(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.G.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.IU(this.G),this.adDurationRemaining.init(qP("ad-duration-remaining"),b,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));q.visitAdvertiserLink&&(Y=g.D(q.visitAdvertiserLink,OnB))&&(this.visitAdvertiserLink=new uU(this.api,this.layoutId, this.interactionLoggingClientData,this.Nk),g.C(this,this.visitAdvertiserLink),this.visitAdvertiserLink.IU(this.G),this.visitAdvertiserLink.init(qP("visit-advertiser-link"),Y));q.adDisclosureBanner&&(q=g.D(q.adDisclosureBanner,HnL))&&(this.adDisclosureBanner=new OP(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.adDisclosureBanner),this.adDisclosureBanner.IU(this.UD),this.adDisclosureBanner.init(qP("ad-disclosure-banner"),q));this.X=new tm(this.api,this.U,U,!0);g.C(this, this.X);g.o6(this.api,this.X.element,4);this.show()}; Dr.prototype.clear=function(){this.hide()};g.M(DHB,sx);g.Q=DHB.prototype; g.Q.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(q!=null&&q.title)if(d=q.title)if(this.headline.init(qP("ad-simple-attributed-string"),new au(d)),d=g.D(q.moreInfoButton,lU)){if(this.moreInfoButton.init(qP("ad-button"),d),q.descriptions)q.descriptions.length>0&&(d=q.descriptions[0])&&(this.G=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.G),this.G.IU(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.G.init(qP("ad-simple-attributed-string"), new au(d))),q.descriptions.length>1&&(q=q.descriptions[1])&&(this.U=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.U),this.U.IU(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.U.init(qP("ad-simple-attributed-string"),new au(q)))}else g.Zz(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Zz(Error("No headline found in AdGridCardText."));else g.Zz(Error("No headline found in AdGridCardText."))}; g.Q.onClick=function(d){sx.prototype.onClick.call(this,d);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.Q.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var d;(d=this.G)==null||d.clear();var q;(q=this.U)==null||q.clear()}; g.Q.hide=function(){this.headline.hide();this.moreInfoButton.hide();var d;(d=this.G)==null||d.hide();var q;(q=this.U)==null||q.hide();sx.prototype.hide.call(this)}; g.Q.show=function(){sx.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var d;(d=this.G)==null||d.show();var q;(q=this.U)==null||q.show()};g.M(wB,sx);wB.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(q!=null&&q.gridCards)if(q.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Zz(Error("Only single column style is currently supported in AdGridCardCollection."));else for(d=g.E(q.gridCards),q=d.next();!q.done;q=d.next()){if(q=g.D(q.value,ESN)){var T=new DHB(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,T);T.IU(this.element);T.init(qP("ad-grid-card-text"),q);this.G.push(T)}}else g.Zz(Error("No grid cards found in AdGridCardCollection."))}; wB.prototype.show=function(){for(var d=g.E(this.G),q=d.next();!q.done;q=d.next())q.value.show();sx.prototype.show.call(this)}; wB.prototype.clear=function(){this.hide();for(var d=g.E(this.G),q=d.next();!q.done;q=d.next())q.value.clear()}; wB.prototype.hide=function(){for(var d=g.E(this.G),q=d.next();!q.done;q=d.next())q.value.hide();sx.prototype.hide.call(this)};g.M(fr,Sx);g.Q=fr.prototype;g.Q.init=function(d,q,T,Y,e){e=e===void 0?0:e;Sx.prototype.init.call(this,d,q,T,Y);this.playerProgressOffsetMs=e;lE(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.BL.bind(this));this.api.addEventListener("resize",this.Im.bind(this));this.api.uB()?(this.U=!0,this.api.Kt(!0),this.show()):this.hide()}; g.Q.Ba=function(){if(this.G){var d=this.G.getProgressState();d&&d.current&&!this.U&&1E3*d.current>=this.playerProgressOffsetMs&&(this.U=!0,this.api.Kt(!0),this.show())}}; g.Q.K3=function(){this.U&&this.api.Kt(!1);this.hide()}; g.Q.clear=function(){this.api.Kt(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.BL.bind(this));this.api.removeEventListener("resize",this.Im.bind(this));vk(this);this.hide()}; g.Q.hide=function(){wg7(!1);Sx.prototype.hide.call(this)}; g.Q.show=function(){wg7(!0);Sx.prototype.show.call(this)};g.M(fXc,fr);g.Q=fXc.prototype; g.Q.init=function(d,q,T,Y){if(q!=null&&q.adGridCardCollection)if(q!=null&&q.adButton){var e=Number(q.playerProgressOffsetMs||"0");isNaN(e)?fr.prototype.init.call(this,d,q,T,Y):fr.prototype.init.call(this,d,q,T,Y,e);d=q.headline;T=g.D(q.adAvatar,mO);d&&T?(this.headline=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.headline),this.headline.IU(this.Qv("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(qP("ad-simple-attributed-string"),new au(d)), this.adAvatar=new Pe(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.adAvatar),this.adAvatar.IU(this.Qv("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(qP("ad-avatar"),T)):this.T.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");d=g.D(q.adGridCardCollection,cnc);this.adGridCardCollection.init(qP("ad-grid-card-collection"),d);q=g.D(q.adButton,lU);this.adButton.init(qP("ad-button"),q); this.hide()}else g.Zz(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Zz(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.Q.onClick=function(d){(this.adButton&&g.HB(this.adButton.element,d.target)||this.adAvatar&&g.HB(this.adAvatar.element,d.target))&&this.api.pauseVideo();fr.prototype.onClick.call(this,d);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.Q.Im=function(){}; g.Q.clear=function(){this.hide();var d;(d=this.headline)==null||d.clear();var q;(q=this.adAvatar)==null||q.clear();this.adGridCardCollection.clear();this.adButton.clear();fr.prototype.clear.call(this)}; g.Q.show=function(){var d;(d=this.headline)==null||d.show();var q;(q=this.adAvatar)==null||q.show();this.adGridCardCollection.show();this.adButton.show();fr.prototype.show.call(this)}; g.Q.hide=function(){var d;(d=this.headline)==null||d.hide();var q;(q=this.adAvatar)==null||q.hide();this.adGridCardCollection.hide();this.adButton.hide();fr.prototype.hide.call(this)}; g.Q.BL=function(d){d==="transitioning"?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):d==="visible"?this.j.classList.add("ytp-ad-underlay-clickable"):d==="hidden"&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))};g.M(z_,sx); z_.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(q.attributes===void 0)g.Zz(Error("No attributes found in AdDetailsLineViewModel."));else if(q.style===void 0)g.Zz(Error("No style found in AdDetailsLineViewModel."));else{d=g.E(q.attributes);for(var T=d.next();!T.done;T=d.next())if(T=T.value,T.text!==void 0){T=T.text;var Y=q.style,e=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,e);e.IU(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"}e.element.classList.add(Y);e.init(qP("ad-simple-attributed-string"),new au(T));this.G.push(e)}this.show()}}; z_.prototype.show=function(){this.G.forEach(function(d){d.show()}); sx.prototype.show.call(this)}; z_.prototype.clear=function(){this.hide()}; z_.prototype.hide=function(){this.G.forEach(function(d){d.hide()}); sx.prototype.hide.call(this)};g.M(iU,sx);iU.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});var T,Y;(d=((Y=xU(((T=q.image)==null?void 0:T.sources)||[]))==null?void 0:Y.url)||"")&&d.length?(T=this.Qv("ytp-image-background-image"),g.Dv(T,"backgroundImage","url("+d+")"),q.blurLevel!==void 0&&g.Dv(T,"filter","blur("+q.blurLevel+"px)"),q.gradient!==void 0&&(q=new g.f({Y:"div",hF:["ytp-image-background--gradient-vertical"]}),g.C(this,q),q.IU(this.element)),this.show()):g.Zz(Error("Failed to get imageUrl in ImageBackground."))}; iU.prototype.clear=function(){this.hide()};g.M(znB,Sx);g.Q=znB.prototype;g.Q.init=function(d,q){Sx.prototype.init.call(this,d,q,{});g.Dv(this.j,"stroke-dasharray","0 "+this.U);this.show()}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){vk(this);Sx.prototype.hide.call(this)}; g.Q.show=function(){lE(this);Sx.prototype.show.call(this)}; g.Q.K3=function(){this.hide()}; g.Q.Ba=function(){if(this.G){var d=this.G.getProgressState();d!=null&&d.current!=null&&g.Dv(this.j,"stroke-dasharray",d.current/d.seekableEnd*this.U+" "+this.U)}};g.M(IP,sx); IP.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(IXn(q)){this.adAvatar=new Pe(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.adAvatar);this.adAvatar.IU(this.Qv("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(qP("ad-avatar"),g.D(q.adAvatar,mO));this.headline=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.headline);this.headline.IU(this.Qv("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(qP("ad-simple-attributed-string"),new au(q.headline));if(d=g.D(q.adDetailsLine,hSn))this.detailsLine=new z_(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.detailsLine),this.detailsLine.IU(this.Qv("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(qP("ad-details-line"),d);this.adButton=new We(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!0);g.C(this,this.adButton); this.adButton.IU(this.Qv("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(qP("ad-button"),g.D(q.adButton,lU));this.adBadge=new pG(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!0);g.C(this,this.adBadge);this.adBadge.IU(this.T);this.adBadge.init(qP("ad-badge"),g.D(q.adBadge,Sy));this.adInfoButton=new iE(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.element,void 0,!0);g.C(this,this.adInfoButton);this.adInfoButton.IU(this.T); this.adInfoButton.init(qP("ad-info-hover-text-button"),g.D(q.adInfoRenderer,VP),this.macros);if(d=g.D(q.skipAdButton,AnN))this.skipAdButton=new Cr(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.skipAdButton),this.skipAdButton.IU(this.element),this.skipAdButton.init(qP("skip-button"),d);this.U=new QZ(q.durationMilliseconds);g.C(this,this.U);if(d=g.D(q.countdownViewModel,Znx))this.G=new znB(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.U),g.C(this, this.G),this.G.IU(this.Qv("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.G.init(qP("timed-pie-countdown"),d);if(q=g.D(q.imageBackground,Mvq))this.imageBackground=new iU(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.imageBackground),this.imageBackground.IU(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(qP("image-background"), q);this.show();this.element.focus()}}; IP.prototype.clear=function(){g.jX(this.j);this.hide()}; IP.prototype.show=function(){iNQ(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();sx.prototype.show.call(this)}; IP.prototype.hide=function(){iNQ(!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.G&&this.G.hide();this.imageBackground&&this.imageBackground.hide();sx.prototype.hide.call(this)};g.M(ve,g.YP);g.Q=ve.prototype;g.Q.F0=function(){return 1E3*this.api.getDuration(this.f3,!1)}; g.Q.stop=function(){this.G&&this.CC.t1(this.G)}; g.Q.Yc=function(){var d=this.api.getProgressState(this.f3);this.U={seekableStart:d.seekableStart,seekableEnd:d.seekableEnd,current:this.api.getCurrentTime(this.f3,!1)};this.publish("h")}; g.Q.getProgressState=function(){return this.U}; g.Q.w$=function(d){g.gs(d,2)&&this.publish("g")};var dbq="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.M(oP,uE); oP.prototype.j=function(d){var q=d.id,T=d.content,Y=T.componentType;if(!dbq.includes(Y))switch(d.actionType){case 1:d=this.api;var e=this.Nk,U=T.layoutId,b=T.interactionLoggingClientData,J=T instanceof Pp?T.C_:!1,F=T instanceof Pp||T instanceof hm?T.jO:!1;b=b===void 0?{}:b;J=J===void 0?!1:J;F=F===void 0?!1:F;switch(Y){case "invideo-overlay":d=new $HB(d,U,b,e);break;case "player-overlay":d=new BG(d,U,b,e,new ve(d),F);break;case "player-overlay-layout":d=new Dr(d,U,b,e,new ve(d));break;case "survey":d= new G_(d,U,b,e);break;case "ad-action-interstitial":d=new UH7(d,U,b,e,J,F);break;case "video-interstitial-buttoned-centered":d=new IP(d,U,b,e);break;case "survey-interstitial":d=new Lr(d,U,b,e);break;case "ad-message":d=new HNR(d,U,b,e,new ve(d,1));break;case "player-underlay":d=new MDN(d,U,b,e);break;case "display-underlay-text-grid-cards":d=new fXc(d,U,b,e,new ve(d));break;default:d=null}if(!d){g.OL(Error("No UI component returned from ComponentFactory for type: "+Y));break}g.sN(this.components, q)?g.OL(Error("Ad UI component already registered: "+q)):this.components[q]=d;d.bind(T);T instanceof Lw?this.U?this.U.append(d.bW):g.OL(Error("Underlay view was not created but UnderlayRenderer was created")):this.T.append(d.bW);break;case 2:q=mHn(this,d);if(q==null)break;q.bind(T);break;case 3:T=mHn(this,d),T!=null&&(g.T1(T),g.sN(this.components,q)?(T=this.components,q in T&&delete T[q]):g.OL(Error("Ad UI component does not exist: "+q)))}}; oP.prototype.ir=function(){g.Yt(Object.values(this.components));this.components={};uE.prototype.ir.call(this)};g.M(S6j,g.na);g.Q=S6j.prototype;g.Q.create=function(){try{lXL(this),this.load(),this.created=!0,lXL(this)}catch(d){Jm(d instanceof Error?d:String(d))}}; g.Q.load=function(){try{VD7(this)}finally{qk(pr(this.G).u9)&&this.player.Lz("ad",1)}}; g.Q.destroy=function(){var d=this.player.getVideoData(1);this.G.G.Da.Zt(d&&d.clientPlaybackNonce||"");this.unload();this.created=!1}; g.Q.unload=function(){g.na.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(q){Jm(q instanceof Error?q:String(q))}if(this.U!=null){var d=this.U;this.U=null;d.dispose()}this.j.reset()}; g.Q.Ux=function(){return!1}; g.Q.getAdState=function(){return-1}; g.Q.getOptions=function(){return Object.values(V0j)}; g.Q.Vg=function(d,q){q=q===void 0?{}:q;switch(d){case "replaceUrlMacros":return d=q,d.url?(q=hdX(this.player),Object.assign(q,d.mfZ),d=g.a1(d.url,q)):d=null,d;case "onAboutThisAdPopupClosed":this.q1(q);break;case "executeCommand":d=q;d.command&&d.layoutId&&this.executeCommand(d);break;default:return null}}; g.Q.sI=function(d){var q;return!((q=this.G.G.eT)==null||!q.get().sI(d))}; g.Q.q1=function(d){d.isMuted&&ny6(pr(this.G).NF,pr(this.G).je,d.layoutId);this.o9&&this.o9.q1()}; g.Q.executeCommand=function(d){pr(this.G).Nk.executeCommand(d.command,d.layoutId)};g.Vf("yt.player.Application.create",g.c1.create);g.Vf("yt.player.Application.createAlternate",g.c1.create);CbN(jn(),oQc);var qSI=g.qx("ytcsi.tick");qSI&&qSI("pe");g.Oi("ad",S6j);g.M(g.qJ,g.W);g.qJ.prototype.start=function(d,q,T){this.config={from:d,to:q,duration:T,startTime:(0,g.cj)()};this.next()}; g.qJ.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.qJ.prototype.next=function(){if(this.config){var d=this.config,q=d.from,T=d.to,Y=d.duration;d=d.startTime;var e=(0,g.cj)()-d;d=this.G;Y=mSH(d,e/Y);if(Y==0)d=d.L;else if(Y==1)d=d.B;else{e=DG(d.L,d.S,Y);var U=DG(d.S,d.X,Y);d=DG(d.X,d.B,Y);e=DG(e,U,Y);U=DG(U,d,Y);d=DG(e,U,Y)}d=g.Cn(d,0,1);this.callback(q+(T-q)*d);d<1&&this.delay.start()}};g.M(g.To,g.f);g.Q=g.To.prototype;g.Q.hasSuggestions=function(){return this.suggestionData.length>0}; g.Q.PX=function(){this.U&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.Q.show=function(){g.f.prototype.show.call(this);UxN(this)}; g.Q.G1=function(){this.U&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.Q.xX=function(){this.gz(this.api.OD().getPlayerSize())}; g.Q.gz=function(d){var q=this.api.isEmbedsShortsMode()?.5625:16/9,T=this.api.rU();d=d.width-(T?112:58);T=Math.ceil(d/(T?320:192));var Y=(d-T*8)/T;q=Math.floor(Y/q);for(var e=g.E(this.G),U=e.next();!U.done;U=e.next())U=U.value.Qv("ytp-suggestion-image"),U.style.width=Y+"px",U.style.height=q+"px";this.suggestions.element.style.height=q+"px";this.T=Y;this.B=q;this.containerWidth=d;this.columns=T;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Y0(this)}; g.Q.onVideoDataChange=function(){var d=this.api.C(),q=this.api.getVideoData();this.X=q.kc?!1:d.T;this.suggestionData=q.suggestions?g.Zl(q.suggestions,function(T){return T&&!T.playlistId}):[]; XRq(this);q.kc?this.title.update({title:g.bO("\u6765\u81ea\u201c$DNI_RELATED_CHANNEL\u201d\u9891\u9053\u7684\u66f4\u591a\u89c6\u9891",{DNI_RELATED_CHANNEL:q.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"\u66f4\u591a\u77ed\u89c6\u9891":"\u66f4\u591a\u89c6\u9891"})}; g.Q.scrollTo=function(d){d=g.Cn(d,this.containerWidth-this.suggestionData.length*(this.T+8),0);this.L.start(this.scrollPosition,d,1E3);this.scrollPosition=d;g.Y0(this);UxN(this)};})(_yt_player);