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 W='L;path;forEach;length;startsWith;B;mn;\\.a1\\.googlevideo\\.com$;url;fallback_count;1970-01-01T01:15:38.000+01:15;splice;local;;indexOf;split;scheme;rr;xa;/initplayback;cmo=pf;1;rr?[1-9].*\\.c\\.youtube\\.com$;fromCharCode;set;assign;push;youtube.player.web_20250629_21_RC00;1969-12-31T21:15:08.000-02:45;r;cmo=td;prototype;Ky;Cb;&;TY;/videoplayback;fvip;?;=;,;slice;n;---;get;cmo;Untrusted URL;toString;replace;redirector.googlevideo.com;://;clone;1969-12-31T13:45:34.000-10:15;hk;//;,\\,"[\u00d8;index.m3u8;s;join;C;rNA2_99y46ErZ4B0uH-_w8_;reverse;X;signatureCipher;http://local;\\.googlevideo\\.com$;/api/manifest;match;%3D;a1.googlevideo.com;/;file;break;www.youtube.com;unshift;playerfallback;https://local;1970-01-01T02:15:52.000+02:15;sp;Te;cmo=;/file/index.m3u8;1969-12-31T19:30:46.000-04:30;undefined;nUDbv-;pop;:'.split(";"), u2,izy,MuF,H5,P2z,X5l,Fl,$_R,E1,U_2,N_,Vx,my,oF,fUp,Wyx,RF,nz,hRx,s1,cHx,b2,AH,Zz_,JH,r4,ju,Cz,tH,S1R,xM,Pa,HzH,Fyl,EMR,Z4,N4l,Vup,Ha,m_H,oMl,EE,yH4,D_1,R$,q1u,Ax,Y1u,zRM,bh,T4M,d_R,lU4,LyH,a$,PT,eR5,B4u,Uu,ZN,QF1,Vq,m4,oK,GR,yq,DN,nM1,qK,Ys,zR,vMy,Ky4,dd,bzz,eF,Qq,A5,gd,rd,jF,IU1,AHy,CE,xs,t5,gM2,JH4,rHH,jFR,tuU,wq,ii,ME,P1,ui,$a,Uc,way,hT,Z7,St,H1,pQ,Ec,NE,iC4,VG,mA,yG,Phx,uE1,Xay,D7,Ya,zL,li,LQ,B1,QG,SE1,HCM,paR,FUx,ka,EVp,R7,nQ,v1,N3F,sc,VpF,oVM,AT,JT,CQ,xa,Oc,DjM,yxl,dj4,zAM,LU4,PS,u6,WS,Q$M, RAy,kcl,cS,S0,nV4,Za,N3,wS,s$M,vVM,Yf,G6,a7,KUF,z6,dS,T6,bC_,Lj,I4y,BS,Qy,kf,RU,nj,vS,sS,b6,IU,rS,j0,xf,gVl,rxM,Jxp,j$2,ChU,PO,uy,XP,xjx,$w,OCR,WO,hd,cO,wT2,iEF,umz,MF2,XTM,W4u,Zd,fNM,$KM,SA,HO,h05,pS,c55,FP,Su2,ZEU,HEx,pTl,ma,ow,F4p,Es5,Ndy,Gd,yM,VFy,y5z,Dd,DKx,qux,lN2,Td,dKp,Yul,e0F,kRy,ly,eA,QM,BO,R0_,kw,Rw,nS,KS,by,Iw,g2,INy,Jd,A52,jA,td,jKU,iC,PA,Xv,CAp,uC,tF2,xKU,$$,MG,Ub,fP,OE4,WA,cA,w1y,Z3,SM,HA,PiU,o9,uj2,X1_,$Ez,UE1,mc,V0,pP,iQM,MtU,f72,hx1,cTM,ZQz,D3,qG,Y$,Scz,dx,LP,eM,BA,HQ1,FA1,k$,Eaz, KP,sb,GLz,I9,bC,yTM,qcu,Jv,Av,YcU,rx,jM,CP,gx,x$,tv,a9,Ob,ue,zxy,wY,Mr,XK,Tq5,$G,dEM,U8,fH,Zh,SG,HR,WR,cR,hE,FK,l74,E8,LA5,Nr,Bq4,yU,Q7M,Dh,PR,qr,YG,zQ,Rxx,TQ,dY,LH,eG,BR,QU,kG,nax,Ry,vaM,nH,vR,s8,be,KH,Iy,AE,gY,JE,rY,s74,bQ_,CH,I7M,AT5,gaM,xG,O8,hA,rTx,c9,Cip,Zm,xE1,S5,H9,p9,OQF,FS,a7z,EP,wSu,ijF,Ns,M0U,VV,mk,oP,P6y,yV,Dm,XSl,zC,faH,uU_,TC,lj,L9,c1F,WGH,B9,bj,Zjl,HjH,pSy,IP,AA,gQ,JA,j5,C9,tA,NSR,V0u,m31,G6M,y1l,OP,aP,D3U,we,qS1,YSp,TS1,ecx,iR,BSU,QU5,k61,RcH,nf2,uR,vfz,$J,KGz,WY,ha,IaM,cY,Zt,Sc, A1U,gf5,FY,EQ,mR,o4,r14,jUu,C6u,z_,YJ,qN,t0y,x3p,OjH,T_,de,lR,wO5,kJ,R4,MAR,PyF,uP4,n5,vY,XOp,$qu,sQ,UqH,fdp,Wa1,hmy,Aa,bR,ge,Ja,re,cd2,ZSp,SVU,jc,C5,HSF,ta,pO_,HPp,pAz,xJ,Fcp,OQ,a4,E$R,Nx2,VM2,mG5,o$u,GBp,Mn,PD,uZ,$6,qbF,UT,f4,YbM,DGy,Xu,z41,WD,h4,cD,Sv,ZP,Txz,dGz,l3M,HD,e41,p4,Q9p,kBl,R4_,n$R,v$l,s9F,Kcl,bPy,ov,GI,yl,Avx,I34,g$y,Jv5,qn,rvl,Y6,j9F,CCR,zI,TI,dR,tMl,lZ,L4,xGx,BD,Ql,k6,Rv,n4,vD,sT,K4,OPM,a31,wRR,iHH,bZ,MGy,uKH,PeR,A4,gR,$rR,XRy,W0U,ZHp,cE4,J4,S8_,HHp,pRz,EGF,F0R,NYM,rR,VGl,mrx,C4,oG1, GQp,yEM,Dr5,t4,q8F,x6,Y8M,OT,av,TYH,wT,drR,im,MP,lh4,L0H,Ph,Xa,BY_,$X,eM4,Qyu,kQ1,RMp,vGu,Uv,sy4,h0,ch,bHH,Ihy,JEp,rEy,Zx,SV,Hh,ph,Fa,Ev,NP,VZ,mQ,oL,GF,yZ,Dx,xrz,tGz,OH1,w9x,ahM,M5_,Ceu,i92,jyp,qP,YX,uSz,X9u,$sF,lm,RL,nh,zF,fm2,vh,Pju,hQ2,cAu,Wkz,Kh,bm,IL,A0,Z9y,Usy,SPR,gT,H9F,p92,Fkx,E8p,NQH,o82,GCM,yAU,Dsx,J0,rT,qP_,YPR,dsx,lmu,jV,t0,eQx,xX,Ch,QPy,BQ1,kC2,RQu,n8M,aL,wn,sPM,KkH,b9M,Im_,AAy,g8u,JA1,rAp,jPF,CjM,M2,PW,uY,XH,$4,UJ,t5_,am4,wY5,i5l,PRp,McF,uY2,hm,cW,XYl,$Nx,UNl,ZH,Sm,HW,pL,FH,EJ,N2,Vw, ft5,ou,hZ4,yw,caz,Z5F,DH,q2,Y4,TK,zK,SQR,pY5,dn,x8,ofy,Qw,FR_,EJR,k4,NeM,BW,mN4,VcU,em,Ru,nL,oJu,G_4,yax,DNU,vW,qQx,sJ,O9x,xsl,KL,bY,Am,gn,Tep,Jm,rn,CL,dNl,ltp,tm,k_H,iO,eZz,Q44,au,OJ,hn,cX,RZl,HX,nJH,py,F4,vJF,KRF,It_,Yv,TS,rau,j45,CRH,db,atz,DG,gJU,i4u,O5z,tcH,xNz,Mvy,wD_,Ly,Qk,uup,XD_,$np,Unl,fPR,RV,W84,vX,hkM,ST4,H4z,sZ,F8u,NRU,E6H,Vvz,bO,gb,Cy,xv,OZ,aV,ws,iz,GIF,y4M,MM,DnR,P_,uz,tn,X1,Uo,fZ,Ov,W_,qTy,c_,TRz,Zi,S6,lPF,dny,L8M,ekz,BR_,H_,QvH,kIz,Rk5,pZ,F1,v6y,b4z,IPM,Eo,r4M,J44,jvR,CZl,tvH,NM, xnx,A42,VK,O4F,aPH,mv,ihF,MVl,Pmu,uau,Xhy,GN,$P4,UP5,fxl,WQU,Zhz,hOz,yK,Di,qM,Yj,zN,TN,ds,lz,Hh1,e6,LZ,phz,QK,NTz,B_,VVl,mPM,qvF,oXl,GFF,y0l,DPU,kj,Ro,nZ,Yvz,v_,so,KZ,bz,Io,AC,LQM,zO1,j6,lxx,CZ,dP2,rs,gs,TT4,JC,xj,BTz,ao,Oo,QLH,kF1,Xy,$O,fb,vXx,UR,cG,sLp,ZZ,ROU,IxM,A0x,gXu,pb,Fy,ER,J0F,Nb,VX,mK,o3,r0M,GV,yX,DZ,jLx,Cm_,qb,tVR,K81,Oh4,axx,wWx,iL2,PYu,xPM,uHR,U2_,zV,dV,Wlz,hql,cmp,ZL4,HL1,er,Lb,pWR,SJ5,Vmz,NnH,o4y,QX,GKz,BG,R3,ym_,nb,bc,I3,D25,qJM,tK,YJp,OR,zq1,Tn_,UN,d2l,LlM,f_,eqU,BnM,v42,Qux,ZW,SD, HI,F6,EN,Amz,NB,V6,mZ,Jm2,y6,rmR,juy,DW,tmR,YR,zy,Ty,d1,x21,lo,eD,BI,Q6,kR,OLz,aHu,wXR,n_,vI,sN,K_,bo,IC,iy_,M7z,POz,u4p,XXl,$a4,A_,Ual,xR,fGy,Wq2,hBy,ON,wo,iU,MT,Xq,$h,UK,Zyy,hR,ci,ZY,SZ1,Hyu,S2,pX4,FqR,pR,Da4,qZz,YZU,Fq,zBz,Tb_,LqF,NT,Bbl,eBz,QVl,RBp,nvM,GX,yb,vvH,DY,qT,Yh,zX,TX,lU,LR,e2,Bi,Qb,kh,Rg,nR,KR,sV5,Kq4,by5,Ig,go,IG1,CR,tR,xh,OK,ag,iL,Mx,rn1,PF,uL,XW,COx,jVU,Anx,fB,UL,aGU,WF,Nx,pB,Vg,m5,iZ2,GZ,X_y,Pzy,u14,UM1,ZZ4,fi2,h9M,cCy,w_R,DK,yg,HZl,YS,zZ,TZ,p_4,Qg,Fv2,kS,R1,nB,sL,Ej5,bL,I1,Nsp, AD,g$,mMH,j9,tD,xS,OL,a1,wH,iK,Mi,Pn,uK,GNl,Xr,f0,Um,DM4,Tsz,YoF,z9l,dMz,li5,e9z,Bsz,LvR,kNx,cn,Zq,p0,R9z,njU,Hn,Fr,sop,Kv2,gjU,ACu,mu,oS,Gg,yh,Dq,rCy,joH,eh,Bn,Cz5,t6F,xMu,vn,sm,K0,OZx,aiR,ibu,Pc4,gH,uy_,jh,JS,xF,Om,wK,XGu,UU,fA,WN,hh,Zl,SP,pA,hTy,cKR,EU,Zbl,SRz,VS,Hby,pGU,mm,om,FKF,EOl,Vry,qZ,oO2,GV_,yS,yKF,Dbx,YR1,qR4,dK,mbR,TVl,dby,k1,BN,lZH,LKu,Rm,nA,eTl,BVu,KA,Q3U,kVl,RTl,nOR,Jh,vOM,s3z,KKz,bb5,IZp,AK4,gOF,JKx,jP,rK4,th,Ccl,trF,xbx,ObU,aZ2,x1,Pb,i_p,u6y,uv,XI5,UBp,wIU,fWR,WZR,hu1,MDx,Pol,OU, am,M6,$BH,iv,w9,c_5,Z_F,SN2,H_u,pIM,FZU,oRz,ERy,Wb,hi,Z8,DB_,zu2,YN5,cb,pd,T15,N6,dBl,LZp,ya,lWz,KZ1,euM,sCl,zs,b_F,gRp,Ts,YQ,IWU,A_4,J_M,lv,jCl,CoH,tDR,xBl,O_4,aW4,wiM,r_x,M2y,PUH,uqz,$Tp,XiH,fYl,Qa,WbR,kQ,RX,nd,h$y,cRp,Kd,bv,SKF,ZR2,IX,HR4,Fbp,NoF,EhR,V22,GXu,mTF,wG,UX,MW,yRU,i5,fx,Wl,hr,cl,DTM,SW,YKx,Fb,px,NW,Vm,mS,oE,z$y,GJ,D2,ToH,YB,TJ,dG,dT2,lYl,Lb1,e$2,l5,eW,Boz,Bl,Qm,kB,kX5,RE,nx,R$F,sX,IE,b5,Kx,Ar,gG,sg1,JRU,jgl,gh5,ARR,rRH,jW,xB,ORu,CUM,t2l,xT4,vhp,Uxx,Un,$xl,hWp,XFz,rG,fq,iX,X_,fK_,aE, bR1,Kb1,IYH,tr,uW4,Zr,F5H,SR,N$1,V9H,mxx,pq,oSl,GZ2,yDz,qL1,YLx,NU,T$p,Vn,dx_,lK4,eW1,B$2,Q11,ox,kZx,nS4,Gw,vSz,yn,Dr,PN,gS1,t9l,lX,OBR,i0p,eR,PKM,urx,XnF,gj,Ag,$i2,bX,qN5,sn,Ix,Kq,Bm,ax,On,iu,Pz,fq1,uu,$r,U4,Wu5,hDU,hw,Z01,SmR,H0H,Hz,pn2,FuR,EFp,NHF,Vhu,miU,oF5,pf,GgR,FT,No,ySl,Di2,qmx,YmF,zD5,VA,mL,THU,diu,lqz,LuU,eDp,BHl,QS2,DI,qo,Yr,kgp,za,RDx,dC,vFR,nFy,Lf,eX,Bz,QA,sS1,kr,R6,Kux,b02,nf,vz,JS4,Iqx,gFU,AS2,s4,Kf,bu,rSl,jS5,CKu,I6,xiR,wNM,aqM,Aw,gC,Jw,rC,jX,tw,xr,O4,a6,wM,i0,iA1,MP1,Pbu,M9,Pj,u0, X$,Ug,Wj,$ZR,XNH,Zk,UZF,Sw,Hj,pW,F$,Eg,mo,od,GO,yP,Dk,q9,Y9,zO,hNz,TO,dM,l0,chH,SUF,QP,HAz,k9,Rd,E1x,NK2,VPu,o1x,yhH,Id,DZF,gM,Ab,zNp,TK1,dZU,rM,jw,LmR,tb,x9,Og,ad,BKF,wg,iw,MH,QmR,Pg,eNz,uw,XG,RNp,k$p,$L,U7,fU,Wg,cg,v1y,sm2,Sl,Hg,FG,E7,KmU,pU,Ahx,g1U,Jh4,rhR,jml,Cbz,tPu,Vc,NH,Ilx,al2,mX,idz,MU_,qH,PvR,Gv,yc,uXp,YL,$6l,f8F,zv,Tv,Wh5,dg,ciu,lw,EQR,pbR,Zd4,Hd2,SY1,el,Bg,Qc,kL,RY,nU,vg,KU,VUy,Gsu,Ac,LkF,gg,yiz,qYy,rg,xL,jl,tc,CU,T91,zzH,YY4,d64,O7,l8z,QXy,aY,iV,Rz1,MR,PQ,uV,Xd,nQ1,vQF,$D,U$,fF,sX1,KhM, ht,HQ,pF,Fd,E$,NR,Vs,mV,oz,Gz,ys,DE,qR,YD,bdx,I8x,zz,Tz,dt,lV,LF,eC,Ai4,gQ1,At,jC,jXF,Cv2,CF,tt,MC,x61,OdU,XI,a8M,wlR,fn,ix4,P52,MW1,ubH,Xl1,$WU,UWl,f2x,WSF,crl,h12,Zxx,pl_,EBF,Hx4,NG1,VW2,oB4,hF,cv,yrl,GJ_,ZM,Sd,Hv,qXy,pn,FI,Es,z1z,TGl,NC,YXR,VC,LSU,mr,oa,Gq,yC,DM,qC,YW,zq,Tq,dk,lE,Ln,ed,Bv,QC,kW,Ra,nn,vv,Kn,bE,Ia,AF,gk,JF,rk,jd,Cn,tF,xW,Os,aa,wA,ia,Mf,Pk,ua,X2,$y,Uh,fc,Wk,hf,ck,Zg,Sn,Hk,pc,F2,Eh,Nf,VH,m7,on,Gr,yH,Dg,qf,Yy,zr,Tr,dA,la,Lc,en,Bk,QH,ky,Rn,nc,sh,Kc,BGR,ba,x,In,vk,Af,gA,Jf,kJ_,jn,nBF, rA,vBM,tf,sE5,an,Cc,wL,ig,MY,ug,bxy,I25,Arp,gB4,Se,HJ,WJ,pD,rr5,jEz,C54,tW1,KSU,xW_,PJ,Oxp,a2M,EB,GM,NY,$k,wm4,XL,FL,VJ,yJ,MRz,UB,fD,oB,mx,PX1,D$,qY,Yk,zM,u_z,TM,dL,lg,LD,ee,Xmz,$UR,frF,WDF,kk,RB,cgl,nD,pml,Eql,VRx,mU1,sB,Gwu,yg1,JP,DUH,rL,je,CD,tP,xk,OB,qnH,zHH,TjF,YnR,dU4,lrM,ML,PZ,X3,Ud,fN,WZ,LD5,hJ,eHl,cZ,Zf,uM,pN,F3,Ed,NL,Bju,HZ,kw1,Vd,RHH,nqR,me,vqz,oi,G5,sx4,KDU,yd,bqu,Irp,Df,AgF,gq5,Jg1,rgu,qL,YC,jxy,CXl,z5,T5,dw,tRp,lM,LN,eT,BZ,xUx,Qd,kC,Oq2,Ri,ar2,nN,wz4,ifF,MXy,PuF,uTH,Xzl,vZ,$oz,Uo_,fIz, sd,WL4,KN,h3x,bM,cw5,Ii,Zf1,S4F,AJ,CN,Hf2,tJ,xC,Od,ai,pzl,wf,i3,Mp,FLu,ErH,u3,Xi,VXM,$5,moF,or4,NCz,Gau,ywy,DoM,f3,q44,WU,cU,Zv,Y4F,S1,HU,Fi,z3z,EI,Np,TC4,m9,y2,o0,zo,To,dop,df,lIp,L3,e1,BU,LLM,k5,e34,n3,vU,sI,qp,K3,b3,I0,BCU,gf,Jy,rf,Q6y,j1,C3,ty,x5,OI,a0,i8,MV,Pp,u8,kaH,R3p,nrF,fO,XF,Wp,hO,vry,s6M,KL5,cp,ZS,SI,bf2,IIp,UH,Awu,grF,Hp,Jw_,pO,FF,NV,VO,mI,oN,GE,DS,qV,zE,TE,dp,l8,Ym,Cu1,tXu,eI,Bp,QO,xoy,RN,aI5,nO,vp,wjR,sH,b8,AO,iWy,IN,gp,JO,rp,Mwl,tO,u$4,Xj2,$9x,OH,xm,U9y,fk1,Wol,aN,cb5,km,hK4,ZWy,w6, SgM,iP,HWz,Mm,pj5,Fo2,E9p,NMu,VwR,Po,o9x,m92,uP,Uw,GOp,fe,yb1,Wo,D91,qg1,hQ,Ygx,zKp,TMF,d9z,co,lkM,Zc,eKR,Ho,pe,Qdy,BM5,kO_,RK1,n91,Ew,Nm,VE,v9M,sdH,Kou,bW5,IkM,Aby,g9H,Jb2,rb_,jd2,ol,G9,C02,twR,yE,Dc,x9x,qm,Ye,T9,OWz,d6,lP,Le,ak4,ea,wgR,Bo,iUz,QE,Mll,Pw2,ke,uGp,Xgl,$Hz,Rl,ne,vo,Ke,bP,UHR,fb1,Il,AQ,g6,WXl,JQ,r6,Ce,tQ,xe,hlH,cc5,Ow,al,ZU4,wu,i_,MS,PE,UUp,S7x,HUH,u_,pgF,FXM,ELl,XJ,$7,UG,f8,WE,h7,cE,Zn,SJ,HE,p8,Ng1,Vlu,du,l_,oLF,L8,vE,BE,b_,zl4,elx,TgH,Bg4,kvR,RlH,QYR,nLH,vLy,sYu,wZ,Ibz,Jcp,gL5,jYU, Cwu,tlU,us,X8,OUl,aby,PV1,$H,ud5,wQ4,U2,fY,W8,hX,$RH,WV4,UR5,ZFz,VCM,NtR,S$l,mR4,Zz,pQx,HF5,ytl,Y$F,q$M,lEp,zsU,SL,H8,kzH,E2,Rs2,AtR,IER,bFx,KVx,vDU,rtu,Jtx,szy,OFF,xRy,aE1,G2,Mdx,wvl,in1,nDx,PEz,uIl,N$,mE,CV5,jz5,tCl,XvR,VY,gD2,UCz,Wrl,cF5,Ss5,FrR,EW5,Vdz,mC_,GqR,oWM,zL5,DCl,yF5,Tk1,LrU,eLl,Bk1,Qa2,B8,M$,nWM,kqR,RQ,Krp,s2,IMM,AF5,bnM,KY,gWz,bs,IQ,aB,AX,bUu,gZ,JX,rZ,JF5,rFz,jL,jaU,CER,tdx,CY,tX,xH,O2,aQ,wE,iF,M1,P2,xC2,Onz,uF,aMu,Xx,$e,$T,UD,Mnl,wkz,fm,Pa2,u25,Xkp,W2,ic4,hk,$fH,c2,Uf5,fg5,rcM,saH, W7u,Zo,ww,QJ,yY,hbx,cfF,H2,QzU,pY,Zc4,QY,kH,q$,Dz,c8,z2,Hn4,Nky,YH,LVl,dCF,Shu,oDp,FVu,pm,vWU,P8,pkl,Hcz,XQ2,pv_,F7_,lMu,LY,esx,Bt_,DR5,Zn_,hL5,ct5,fEy,MCp,iFu,xHR,$CH,EDx,qsu,TtH,dRx,dZ,ls,T2,YsR,fMU,NAM,EyM,Fx,ED,N1,V5,mY,oJ,Vn_,Do,q1,zi,dE,lF,mfy,Ti,Lm,eb,oyl,B2,Q5,kT,nm,yfz,Dfy,v2,sD,Km,bF,IJ,Ak,gE,Jk,TAU,jb,dfM,rE,lgp,Yh_,zb4,L7H,Cm,tk,eb4,BAu,xT,Qnl,MZ,Rb2,kr5,vyR,K7_,bcy,snF,gyU,Jfp,Cau,xfy,Ocp,tn4,Xt,Uq,$n,agM,wJ2,Meu,iDy,PL,Pg2,uLM,XJH,$Yx,uW,hdU,cPp,ZDR,Wxl,f$4,UYl,SBM,HDl,rf2,pJp,jn4,FxU, Ekz,okM,NLz,Ve1,mY1,DY4,GMz,yPx,qBH,YB_,WL,dYR,zdu,l$u,TL1,Lx_,edy,BL5,QB4,kMR,Rdp,nk4,vk1,sB2,Kxu,bDF,I$1,hN,gkR,JPR,rPl,APM,jBH,te5,cL,ZR,xYp,OD2,SB,HL,a$_,wZF,iN2,MT2,Ft,PMx,Nh,VR,XZ2,$LF,ULM,hpy,oT,DR,Yn,cJ5,z8,T8,di,pZ1,EC2,Fe2,VTF,Tw_,oCM,nr,Lr,Nwx,HN5,Sd4,ZNu,RT,eB,kn,IT,AN,Leu,gi,JN,bW,k55,ep5,BwF,Rpu,ri,jB,vCy,tN,xn,Oq,aT,wU,iQ,Md,si4,KeF,Pf,uQ,$c,Ifu,AJH,XV,gCH,jiu,CM2,U0,tT1,h3,xLz,cf,S3,ONu,ZC,Hf,afz,FV,i35,M1p,Nd,Ve,DC,uix,oW,qd,zn,XUy,dU,ye,Yc,$p2,lQ,Up5,Lw,fvH,m1,Gn,P3U,Tn,e3,W95,hX1, Bf,cy5,Qe,kc,RW,nw,Z3H,s0,vf,Kw,bQ,SI5,H3F,IW,A3,gU,J3,rU,pUx,j3,Cw,F9u,E5u,t3,xc,O0,V1u,NfH,aW,mpx,o51,GoR,wr,yy2,Dpp,qI1,YIU,zXl,iq,MJ,PC,uq,TfF,dpx,$Y,lv1,UO,fM,L92,eX5,WC,BfM,Q0y,v5_,s04,ko4,RX4,n5x,cC,ZB,Sj,HC,K94,b3R,Ivl,Ay5,Fg,ryF,EO,C34,xp1,t1u,Gm,ob,av5,wpU,iOU,MI2,yL,P81,qJ,YY,uFM,$VR,UVF,Tm,ej,cO1,Yd1,BL,SH_,HO4,ppy,FIU,Em2,lW,dr,kY,Rb,mVy,omR,GEM,nM,YH_,yO5,DV_,Tpp,dVy,vC,lSH,zt2,LIF,sO,KM,bq,etM,Bpz,Ib,AL,QNF,gr,kEH,JL,BC,tL,Rtl,zpH,mLM,xY,OO,w8,il,Mc,PM,ul,ab,Uk,vmH,WM,KIU,hu,ISM,bOF, sN5,AOR,gmM,JO1,HM,rOl,jNx,tIz,p7,lfM,Fp,OOz,wo4,vL,ie_,Ma1,QR,G5l,DLp,qdF,xVH,Nc,PPU,unu,V8,Xop,oj,Gu,y8,D9,qc,$mU,YI,zu,Um2,fcz,Tu,d8,ll,L7,eY,BM,h8R,Wt4,Q8,cQl,Swl,kI,Heu,Ze1,iT,aj,Me,uT,XD,Z9,po_,G91,cJ,wD,W0,Yw_,T6U,Ij,H0,bl,pp,Ne,Ok,Vo,B6l,mO,oD,Ql1,k9H,R8F,ney,Gt,ve_,slM,yo,Kt2,JQU,gel,be4,AQH,IcH,D1,rQu,qe,jlz,CP1,xmM,Oe_,acF,wER,XEp,lT,Lp,fnx,eg,B0,WHy,Z8U,SGU,H84,pEF,Qo,k3,RD,np,FH1,NuF,VJ_,rD,TuU,y7H,DS_,lnz,jg,LH4,Bux,eFu,Q82,tW,aD,k1H,Cp,wN,MI,RFR,v7u,b8p,$p,hM,pk,NI,iY5,MLp,yN,G3,qI, Yp,PsR,$$M,X8M,U$u,T3,z3,fzF,ha1,cXF,S2p,Lk,ZYF,HY2,p81,B7,QN,EHl,XM,lt,r7l,n7y,xSu,Kk,Dw,WE_,jx,FM,tM,xp,d$y,LE4,lzp,Ep,VN,eau,aI,wI,QQH,iD,Ml,k21,mC,PV,u8p,XO,G2U,$t,A72,InF,s84,Ur,nH2,cV,rXF,JXy,CsF,tL2,HV,FO,Er,p$,V1,mB,x$5,oZ,azF,Gl,im4,ql,w2M,Yt,zl,X24,Tl,foH,WYl,L$,hgy,SDy,A$,J$,rI,t$,Hmy,xt,Or,Mk,PH,ux,XQ,p2x,$N,U6,Vbl,f6,WH,m1u,oTx,hB,GiR,yk4,D1z,qDy,cH,ZT,YD5,zgM,TEM,FQ,E6,md,of,d1M,lox,G0,yF,DT,qk,LYM,egU,YN,BEp,QJ1,z0,Rgu,ki1,nT1,T0,sJl,vT5,KY2,da,lx,bml,AkR,gTF,L6,eZ,BH,JkF,jJ5,QF,CF5, Rf,tb5,x1u,kN,n6,vH,s6,wLu,MB1,OmM,iru,PWU,aou,utM,XLy,K6,$hl,fRM,cNp,SqR,Zry,tB,C6,af,pLx,wO,M5,Px,EnM,un,Niy,Fjx,Xw,on4,$x,UM,G8l,f2,yNu,G1y,zFH,qq5,Dh2,z5M,Yqx,TiM,Wx,h2,cx,Zp,dh5,e5F,p2,Fw,EM,QTl,Bi4,Sy,k8_,R5x,nnU,sTp,N5,CWH,M32,yp,PQ4,If,Xfy,$dM,UdF,fC1,W1H,q5,hU_,Yx,zf,Tf,c3l,L2,Zwp,S01,ey,Bx,Hwp,pfF,F11,EcR,NUu,Qp,ln,V3x,md1,kx,Gn1,y34,Ddy,RA,q0p,Y0u,zUl,TUu,ddy,lCu,L1p,eUu,BU4,QWR,n2,RUH,vx,vcy,ncx,K1u,sWp,ICl,IA,kn4,sM,A2,A3x,gO,J2,rO,jy,C2,gcz,t2,J3H,OM,xdl,wCH,iM2,Mj5,Pql,id,ugR,aCx,t3F, XCy,aA,$JH,fBu,xx,wv,jWy,CQF,MX,W$x,hfF,Ow4,r35,cL_,ud,ZMx,XN,$E,SOM,Uz,F$2,HMz,pCp,fs,EYU,W$,hY,c$,Zs,Nrl,Vjz,mJp,SQ,Gmx,yLU,H$,DJ1,ps,FN,qO_,YO2,zfH,Tr1,dJu,lB4,kmx,efH,Wj5,NX,nYF,vYx,Brl,Qb1,L$M,oe,ALF,mM,V7,RfF,JL1,IB_,bM4,K$x,sb4,y7,rL1,bx,Ds,qX,YE,jbM,zP,Cql,TP,tju,O6,xJp,dv,JB,jZ,Uhx,eQ,Q7,wMy,i7F,kE,ns,B$,Ls,v$,ld,OMx,aBy,sz,MYR,Plp,bn,bwF,AB,Ks,upM,Re,XMH,$c2,UcH,f9H,bd,Ie,WPF,h_2,cu2,Z7u,Skz,UJ_,Gf,gv,JY,AY,pM2,VBx,mh1,rv,FP5,EI1,N85,VY2,jQ,mc4,Cs,oI2,yuH,tY,DcU,qk4,ae,Yky,Oz,ur,T8l,z_z, e_1,l9_,B8_,Qj5,dcz,LP5,ku2,Xc,R_R,vIp,nIu,$g,ocu,sjy,KP1,b7_,I9M,Auy,gIM,Ju2,ru_,jj2,ClU,tYH,xcp,O7U,ft,ip4,MgR,w0p,PT2,uD2,X0z,$eu,Wt,f1y,WOR,ct,hC2,Z_,Sf,cWx,Ht,Zpz,S_5,pt,HpH,p0p,FOz,Fc,Lju,Ea,Vg_,Nu,NDy,meu,o3p,lRF,Hx,Gt_,yWR,mJ,l1M,de2,IH,LOu,TDU,ktu,RCu,n3M,v3H,sDH,KO5,bpR,I1H,AWl,g3u,JW_,rWy,jDM,Jz,VD,tgl,xe4,Az,a1u,CT1,gy,w74,ik5,uM5,UI5,X7y,jf,fwx,Ct,Mxy,ry,tz,Pty,Oa,cMU,Spx,Zkp,HkF,hv4,p7M,FC_,EpR,NN1,Vxp,opu,G3F,mIp,DIU,Yp1,qpF,lw5,TNF,yMy,zvM,LC1,dI2,evz,BNp,QIy,npM,Rv5,k34,aH,vpx,sIR, KCU,bkH,Iw2,gp1,rMU,jIx,Ctx,txx,xI5,w0,Oku,iB,wV5,i$y,Xo,PD_,UC,XVU,$lx,UlF,f52,hI2,WBx,Sry,H$l,pVR,fK,FBu,c$z,Z$H,NIx,VqR,ml_,otz,Glz,y$x,K2,Dlu,qr1,Yr4,TIl,zI_,dl5,LBu,eIz,l5u,xg,wy,QZl,klp,RIR,JYp,sZ2,Is4,AY2,rY4,Cdx,gY5,he,vtF,ntM,je2,xN,gE1,Ez,ra,$IR,wtp,as5,it2,Mf_,ucF,Xtu,Etx,Pt,ir,xXF,$ul,OsH,Uul,xE,f_2,Gu5,WCU,tQH,Mu,SS,Hu,hhp,pK,cz2,Zt5,SaR,Htu,ptM,Egp,NyU,Gk_,VfH,ogM,yzp,EC,zhH,qau,Yau,l_5,LJR,eh_,Nv,ByH,Fo,QHl,du2,Dul,V3,kk1,muF,RhR,mF,vg1,ngl,KJ2,bty,I_1,sHl,or,JzF,ggU,Crp,jHH,rz1,tf_, xu_,Gx,Ot_,a_x,iKu,MSR,wu2,PBy,fjl,Xux,$vU,UvM,WFy,hi4,cep,SCu,ZK5,HKH,pux,y3,E0l,N0y,mvx,VSl,o0H,FF_,Gxz,DvH,qC4,ziF,dv_,YC1,ljl,LF_,eiz,yeH,B0x,T0u,qv,Qrl,kxl,Riu,n02,zx,srM,v0U,KF4,bK5,IjH,JeU,Aez,CBy,Tx,g0l,tSM,d0,iJF,xvu,LK,eS,M81,lB,PG2,Bu,$FM,X6R,ajR,w6z,UFl,f6l,WgM,OKz,hVF,Q3,c9R,uBH,uOM,Y0,SeU,HJ5,p6R,Fgp,EAF,NhU,V8y,mF4,oAz,GTy,DF2,qe_,YeH,y9z,zV_,ThH,dFx,l6F,Lg1,eVu,kTp,Qsy,Bhl,RVy,nK,j62,nA2,vAx,vu,ssF,Kg2,KK,A9y,gA_,bB,r9y,js5,J9p,I65,Ir,sC,bJx,Je,Ae,CGp,r0,g0,a61,MO_,ufR,X45,U05,xF2, PpU,f0R,OJM,W_F,hSU,cIx,OC,jS,Hoy,p4H,Zol,te,ElH,N7y,ioR,w44,F_u,VO4,$0p,SWl,t8l,ar,wh,iG,m0R,MF,YWF,yI4,zSM,D04,GeM,T7p,ol1,L__,d0p,P6,eSx,Q54,RSF,nlU,K_M,Ue,bol,vl4,x0,gll,JIp,Z6,Op_,uG,rIU,j5_,tO5,CpR,x0F,AIR,W6,OoF,a01,wcF,Mi_,ia4,BIx,fJ,PJR,XcR,uZp,UQ_,$Q2,ke2,Wsy,fVR,h9,XB,h62,H6,c8y,Za4,Sy4,Ha2,pc4,S8,s5u,WJy,CK,Fsl,pJ,Euz,N5F,Vip,mQy,ouM,FB,Ee,DQR,qyx,Yy_,GHz,y81,NF,lV1,T5x,dQ5,Lsl,VI,e6_,B5y,Qtp,mg,kH4,nuU,vuR,st2,os,R62,GT,yI,Ksp,bay,YA,D6,qF,IV1,zT,A8u,guF,J8x,jt_,r8z,B6,tiy,xQ1,CJH,Oaz, QI,aVR,kA,wPU,Rs,iIz,MKx,XPH,fAz,PNu,$DU,nJ,ukl,UDM,W21,hop,clx,ZI5,se,Sfx,Is,KJ,HIy,A9,gh,F25,EdH,rh,j8,NcR,J9,VK4,CJ,od5,mDl,xA,Oe,as,DD5,GjU,ylH,w7,qfy,dDp,zou,YfH,TcH,ip,L2R,kjR,Roy,P4,ndR,M0,eoU,BcU,K2u,up,Xf,bIu,IAl,Al5,gdz,JlF,fo,CN2,tKR,xD5,W4,jkl,wsH,UW,hI,c4,rlM,H4,EW,MoR,uhl,$82,P12,po,Ff,Xs_,U85,N0,fyu,W35,hnu,VT,m_,cZy,ZG5,Sx_,HGz,ps4,F3p,EPF,m8z,NWl,oPx,G4y,qxl,Yx4,BWx,Lo,RnH,spu,vPx,nPu,L32,enH,znz,d8H,Qpu,eO,B4,bGF,RZ,Mbu,Iy1,kl,no,AZ5,gP2,TWM,k4M,rZl,jpH,C15,v4,JI,x8x,OG2,ay5,r7, wyl,MN_,iXy,PkF,jO,Co,usy,UOH,fD1,OW,$O5,WwU,h7M,Xyu,iJ,cpz,ZXl,w5,SAU,HXM,pyz,Fwu,NBl,E2u,o2x,GDp,VN5,DO_,qAz,mOz,uJ,XZ,YAU,dOx,$u,TB2,z7u,lD2,e7p,Lw5,BBz,Uy,QG5,kD_,R7u,n21,v2F,sGH,Kw1,IDl,bXz,Apx,g2x,Jpu,rpz,jG5,tNx,Wc,fa,h8,xOH,OXM,Ck2,P9u,u0z,Xwu,fXM,UgM,$gF,Wi5,hEy,cc,ZV,cUp,ZTu,S5M,HT5,Fix,EzH,Hc,N_l,Si,FZ,pwF,Ey,V4_,mgl,ozR,GYU,yUp,NQ,DgF,q5U,T_F,Vf,dg1,zEp,ms,ot,GH,Liu,eE_,B_F,lX4,kYx,QRR,REH,yf,nzp,vz2,Kix,AUM,sRu,bT1,DV,gzR,rU2,jR5,t4R,xg5,qQ,Yu,OTp,JUR,ilH,weu,aXF,zH,TH,PHx,MkR,d5,lJ, La,u5z,ei,Xex,$4_,U42,fQl,Bc,Wfy,Qf,hY5,ku,Rt,na,cV4,vc,ZlH,sy,Ka,HlF,EKF,Nmz,SFU,Vk1,GWp,yVz,D4H,oK_,m45,YFu,qF_,zYH,lQl,A8,eY_,Lf2,Tm4,d4l,Bmx,Q_U,g5,J8,kWU,RY1,nK_,vKp,s_M,KfR,IQU,AVp,OlR,rV1,j_u,gKz,w3_,Oy,wc,X3y,$tR,PP,uN,UtR,iVM,xu,Uf,$d,iN,W6z,heF,fI,ZVH,HV2,S3U,WP,MD,t8,cs4,Xk,MH5,fep,F6l,r5,hl,Ei5,Nz4,at,P$F,cP,ZA,VH2,SK,HP,pI,mt2,oi2,ys2,DtF,GbH,Fk,q35,Ef,ND,Y3F,ze2,Tz4,dtU,ley,L6R,BzH,eeF,m2,V$,QO2,Rel,kbz,ok,Gj,niz,sOR,K6l,y$,vi4,bV_,Ie1,giz,DA,Asu,Jsx,rs1,jOH,Yd,zj,tHl,C$1,xtR,Tj,dc, ael,OV2,wq2,MsF,ii2,PIF,LI,uR4,XqM,BP,$7_,fOM,U7y,Wzp,hJz,cq2,Zi2,Hi1,pqz,Fz4,Sil,EUy,NPM,VsF,m7F,oUx,GUU,yqU,D7_,qi2,nI,Yix,zJp,TPu,lOR,Q2H,eJl,d72,KI,Lz_,sf,BPy,bN,RJF,kUH,Ik,vUU,s21,KzF,uo5,jK,Zml,Jl,CI,rc,xd,biu,Of,rq5,j25,CI5,tsR,x7z,Oi2,aOU,$zM,Ps,Uz2,XKM,fF_,u1,$P,Ux,hw1,WW4,wKx,fG,Zvl,StR,cGR,pK4,Ws,FW5,EZx,Nll,Xh,mzp,VEM,hZ,cs,PfM,i1,oZl,Gh_,yGF,DzU,ivU,ME1,M8,qtp,zwR,TlH,dzH,lFx,Yt4,Zy,ewz,Rw_,Hs,nZl,vZR,QqR,Fh,squ,KWu,LWM,bvx,khy,IF1,Ex,pG,AGl,JG2,gZ4,So,jq5,N8,I0u,CfU,Ovx,xz4,wry,igz, aFp,m3,V4,P4R,uAz,XrF,$yy,pru,c65,ZgR,WNu,fJu,y4,Vzy,EbM,myR,ob2,G4,q8,YP,qjl,DyH,y65,T4,Hg5,eo,zPu,LG,z4,dy_,lJM,LNF,FN2,kP,nG,eP_,Sju,Yj5,dW,BFz,Dy,QMu,kA4,RPH,KG,b1,TF4,nb2,vbH,Ip,AZ,sMM,l1,NFu,KNz,bg_,Rp,IJu,Bs,A6x,Q4,D5,gbu,r61,gW,JZ,jMl,C41,tzz,sx,vs,xyF,tE2,OgM,hPx,aJ1,wdU,iup,M_1,rW,jo,XdM,fuM,h2y,u9u,NXl,V_M,mAy,o_l,G7u,yoz,DAU,Y9y,q9U,CG,tZ,xP,z2R,TXR,dAl,Xn,luU,Ox,LTp,ap,e22,wB,ik,BXz,UI,MO,BJ,Qcp,nY,RLz,k74,F8,R21,jI,CO,n_x,Sb,v_U,scx,v8,Ac5,KT_,bux,IuF,Py,g_l,JoU,uk,$2,UA,ro4,t_l,xAH, fX,Ou4,jcH,wB2,C7R,auu,i1H,M$5,PSM,uCy,Wy,$wx,QxR,$C,Sa,Uwp,fLR,Fn,XB1,ST,Wp2,hrM,cj2,hp,LO,SlR,H1F,cy,ZD,pB2,SN,Hy,Xs,Fpl,Eo_,P0z,pX,Fs,NJH,EA,NO,V$x,Vr,mw4,mw,oG,oo2,GG2,Loy,GD,yjx,qll,Dwu,yr,DD,Yl1,qO,zrl,TJp,dwz,lLl,Lpx,erU,Qh1,zD,BJz,kGl,RrH,no4,vox,IL_,sh5,KpH,b1p,gol,rjx,jhR,CSx,JjM,TD,t$p,xwM,O1H,aLy,w5U,lk,izU,LX,eN,By,Mu$,P2C,X5E,$_A,U_h,fUc,hRt,Wyt,cHt,Qr,k2,Hzx,Zzj,S1A,RG,p5E,FyE,nX,vy,EMA,sA,N4E,KX,Vuc,bk,IG,m_x,Ap,gB,oME,Gpc,Jp,rB,yH3,jN,D_E,q1p,OA,aG,Y1p,zRV,T4V,Lyx,lU3,w_,eRa,B4p, QFE,KX5,d_A,RR3,nME,sFA,w5y,c5;u2=function(w){return function(){return w5y[w].apply(this,arguments)}}; g.Xl=function(w,M){return w5y[w]=M}; izy=function(w){var M=0;return function(){return M=this.length))return this[w]}; tH=function(w){return w?w:Cz}; S1R=function(w,M,P){w instanceof String&&(w=String(w));for(var u=w.length-1;u>=0;u--){var X=w[u];if(M.call(P,X,u,w))return{cG:u,o_:X}}return{cG:-1,o_:void 0}}; xM=function(w){return w?w:function(M,P){return S1R(this,M,P).cG}}; g.ih=function(w,M,P){w=w.split(".");P=P||g.aF;for(var u;w.length&&(u=w.shift());)w.length||M===void 0?P[u]&&P[u]!==Object.prototype[u]?P=P[u]:P=P[u]={}:P[u]=M}; Pa=function(w,M){var P=g.Mj("CLOSURE_FLAGS");w=P&&P[w];return w!=null?w:M}; g.Mj=function(w,M){w=w.split(".");M=M||g.aF;for(var P=0;P2){var u=Array.prototype.slice.call(arguments,2);return function(){var X=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(X,u);return w.apply(M,X)}}return function(){return w.apply(M,arguments)}}; g.fC=function(w,M,P){g.fC=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Fyl:EMR;return g.fC.apply(null,arguments)}; g.Wa=function(w,M){var P=Array.prototype.slice.call(arguments,1);return function(){var u=P.slice();u.push.apply(u,arguments);return w.apply(this,u)}}; g.ca=function(){return Date.now()}; Z4=function(w){return w}; g.Sp=function(w,M){function P(){} P.prototype=M.prototype;w.Ik=M.prototype;w.prototype=new P;w.prototype.constructor=w;w.VO=function(u,X,U){for(var f=Array(arguments.length-2),h=2;h=0;--P)P in u&&M.call(void 0,u[P],P,w)}; g.Nj=function(w,M,P){M=EE(w,M,P);return M<0?null:typeof w==="string"?w.charAt(M):w[M]}; EE=function(w,M,P){for(var u=w.length,X=typeof w==="string"?w.split(""):w,U=0;U=0;u--)if(u in X&&M.call(P,X[u],u,w))return u;return-1}; g.o$=function(w,M){return Gpp(w,M)>=0}; yH4=function(w){if(!Array.isArray(w))for(var M=w.length-1;M>=0;M--)delete w[M];w.length=0}; g.D4=function(w,M){M=Gpp(w,M);var P;(P=M>=0)&&g.Gc(w,M);return P}; g.Gc=function(w,M){return Array.prototype.splice.call(w,M,1).length==1}; g.Tc=function(w,M){M=EE(w,M);M>=0&&g.Gc(w,M)}; D_1=function(w,M){var P=0;oMl(w,function(u,X){M.call(void 0,u,X,w)&&g.Gc(w,X)&&P++})}; g.lh=function(w){return Array.prototype.concat.apply([],arguments)}; g.LC=function(w){var M=w.length;if(M>0){for(var P=Array(M),u=0;u>>1),c=void 0;P?c=M.call(void 0,w[h],h,w):c=M(u,w[h]);c>0?X=h+1:(U=h,f=!c)}return f?X:-X-1}; g.r3=function(w,M){w.sort(M||bh)}; zRM=function(w,M){var P=bh;g.r3(w,function(u,X){return P(M(u),M(X))})}; g.jp=function(w,M,P){if(!g.uh(w)||!g.uh(M)||w.length!=M.length)return!1;var u=w.length;P=P||T4M;for(var X=0;XM?1:w0&&(M[X]=u)},w); return M}; vMy=function(w){w=zR(w);var M=[];g.wd(w,function(P,u){u in Object.prototype||typeof P!="undefined"&&M.push([u,":",P].join(""))}); return M}; Ky4=function(w){DN(w,"od",sFR);DN(w,"opac",TR).B=!0;DN(w,"sbeos",TR).B=!0;DN(w,"prf",TR).B=!0;DN(w,"mwt",TR).B=!0;DN(w,"iogeo",TR)}; dd=function(w,M){return w.lastIndexOf(M,0)==0}; bzz=function(w,M){var P=w.length-M.length;return P>=0&&w.indexOf(M,P)==P}; g.lA=function(w){return/^[\s\xa0]*$/.test(w)}; g.LE=function(w,M){return w.indexOf(M)!=-1}; eF=function(w,M){return g.LE(w.toLowerCase(),M.toLowerCase())}; g.ks=function(w,M){var P=0;w=BT(String(w)).split(".");M=BT(String(M)).split(".");for(var u=Math.max(w.length,M.length),X=0;P==0&&XM?1:0}; g.RK=function(){var w=g.aF.navigator;return w&&(w=w.userAgent)?w:""}; A5=function(w){if(!KE&&!bA||!IK)return!1;for(var M=0;M0:!1}; jF=function(){return rd()?!1:gd("Opera")}; IU1=function(){return rd()?!1:gd("Trident")||gd("MSIE")}; AHy=function(){return rd()?A5("Microsoft Edge"):gd("Edg/")}; CE=function(){return gd("Firefox")||gd("FxiOS")}; xs=function(){return gd("Safari")&&!(t5()||(rd()?0:gd("Coast"))||jF()||(rd()?0:gd("Edge"))||AHy()||(rd()?A5("Opera"):gd("OPR"))||CE()||gd("Silk")||gd("Android"))}; t5=function(){return rd()?A5("Chromium"):(gd("Chrome")||gd("CriOS"))&&!(rd()?0:gd("Edge"))||gd("Silk")}; gM2=function(){return gd("Android")&&!(t5()||CE()||jF()||gd("Silk"))}; JH4=function(w){var M={};w.forEach(function(P){M[P[0]]=P[1]}); return function(P){return M[P.find(function(u){return u in M})]||""}}; rHH=function(w){var M=g.RK();if(w==="Internet Explorer"){if(IU1())if((w=/rv: *([\d\.]*)/.exec(M))&&w[1])M=w[1];else{w="";var P=/MSIE +([\d\.]+)/.exec(M);if(P&&P[1])if(M=/Trident\/(\d.\d)/.exec(M),P[1]=="7.0")if(M&&M[1])switch(M[1]){case "4.0":w="8.0";break;case "5.0":w="9.0";break;case "6.0":w="10.0";break;case "7.0":w="11.0"}else w="7.0";else w=P[1];M=w}else M="";return M}var u=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");P=[];for(var X;X=u.exec(M);)P.push([X[1],X[2],X[3]||void 0]); M=JH4(P);switch(w){case "Opera":if(jF())return M(["Version","Opera"]);if(rd()?A5("Opera"):gd("OPR"))return M(["OPR"]);break;case "Microsoft Edge":if(rd()?0:gd("Edge"))return M(["Edge"]);if(AHy())return M(["Edg"]);break;case "Chromium":if(t5())return M(["Chrome","CriOS","HeadlessChrome"])}return w==="Firefox"&&CE()||w==="Safari"&&xs()||w==="Android Browser"&&gM2()||w==="Silk"&&gd("Silk")?(M=P[2])&&M[1]||"":""}; jFR=function(w){if(rd()&&w!=="Silk"){var M=IK.brands.find(function(P){return P.brand===w}); if(!M||!M.version)return NaN;M=M.version.split(".")}else{M=rHH(w);if(M==="")return NaN;M=M.split(".")}return M.length===0?NaN:Number(M[0])}; tuU=function(){var w=null;if(!C2U)return w;try{var M=function(P){return P}; w=C2U.createPolicy("goog#html",{createHTML:M,createScript:M,createScriptURL:M})}catch(P){}return w}; wq=function(){Ou===void 0&&(Ou=tuU());return Ou}; ii=function(w){this.B=w}; ME=function(w){var M=wq();w=M?M.createScriptURL(w):w;return new ii(w)}; P1=function(w){if(w instanceof ii)return w.B;throw Error("");}; ui=function(w){this.B=w}; g.Xj=function(w){if(w instanceof ui)return w.B;throw Error("");}; $a=function(w){this.Nf=w}; Uc=function(w){return new $a(function(M){return M.substr(0,w.length+1).toLowerCase()===w+":"})}; g.W1=function(w,M){M=M===void 0?x_F:M;a:if(M=M===void 0?x_F:M,!(w instanceof ui)){for(var P=0;P4);X++)M[Ya(w[X])]||(P+="\nInner error "+u++ +": ",w[X].stack&&w[X].stack.indexOf(w[X].toString())==0||(P+=typeof w[X]==="string"?w[X]:w[X].message+"\n"),P+=D7(w[X],M));X")!=-1&&(w=w.replace(WU5,">")),w.indexOf('"')!=-1&&(w=w.replace(hA_,""")),w.indexOf("'")!=-1&&(w=w.replace(cxR,"'")),w.indexOf("\x00")!=-1&&(w=w.replace(ZC1,"�")));return w}; g.et=function(w){return w==null?"":String(w)}; B1=function(w){for(var M=0,P=0;P>>0;return M}; QG=function(w){var M=Number(w);return M==0&&g.lA(w)?NaN:M}; SE1=function(w){return String(w).replace(/\-([a-z])/g,function(M,P){return P.toUpperCase()})}; HCM=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; paR=function(w){return w.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(M,P,u){return P+u.toUpperCase()})}; FUx=function(w){var M=1;w=w.split(":");for(var P=[];M>0&&w.length;)P.push(w.shift()),M--;w.length&&P.push(w.join(":"));return P}; ka=function(){return KE||bA?!!IK&&!!IK.platform:!1}; EVp=function(){return ka()?IK.platform==="Android":gd("Android")}; R7=function(){return gd("iPhone")&&!gd("iPod")&&!gd("iPad")}; nQ=function(){return R7()||gd("iPad")||gd("iPod")}; v1=function(){return ka()?IK.platform==="macOS":gd("Macintosh")}; N3F=function(){return ka()?IK.platform==="Windows":gd("Windows")}; sc=function(w){sc[" "](w);return w}; VpF=function(w,M){try{return sc(w[M]),!0}catch(P){}return!1}; oVM=function(w,M){var P=mjz;return Object.prototype.hasOwnProperty.call(P,w)?P[w]:P[w]=M(w)}; g.KQ=function(w){return oVM(w,function(){return g.ks(GcF,w)>=0})}; g.bi=function(w,M,P){return Math.min(Math.max(w,M),P)}; g.I7=function(w,M){w%=M;return w*M<0?w+M:w}; AT=function(w,M,P){return w+P*(M-w)}; g.gq=function(w,M){this.x=w!==void 0?w:0;this.y=M!==void 0?M:0}; JT=function(w,M){return w==M?!0:w&&M?w.x==M.x&&w.y==M.y:!1}; g.rq=function(w,M){this.width=w;this.height=M}; g.jt=function(w,M){return w==M?!0:w&&M?w.width==M.width&&w.height==M.height:!1}; CQ=function(w){return w.width*w.height}; xa=function(w,M){this.B=w===tT&&M||""}; Oc=function(w){if(w instanceof St)return w;w=String(w).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return H1(w)}; DjM=function(w){return yxl(w)}; yxl=function(w){var M=Oc("");return H1(w.map(function(P){return pQ(Oc(P))}).join(pQ(M).toString()))}; dj4=function(w){var M;if(!qE2.test("div"))throw Error("");if(YEx.indexOf("DIV")!==-1)throw Error("");var P="":(w=DjM(M.map(function(u){return u instanceof St?u:Oc(String(u))})),P+=">"+w.toString()+""); return H1(P)}; zAM=function(w){for(var M="",P=Object.keys(w),u=0;u2&&nV4(X,f,u,2);return f}; nV4=function(w,M,P,u){function X(h){h&&M.appendChild(typeof h==="string"?w.createTextNode(h):h)} for(;u0)X(U);else{a:{if(U&&typeof U.length=="number"){if(g.XE(U)){var f=typeof U.item=="function"||typeof U.item=="string";break a}if(typeof U==="function"){f=typeof U.item=="function";break a}}f=!1}g.tx(f?g.LC(U):U,X)}}}; g.HS=function(w){return Za(document,w)}; Za=function(w,M){M=String(M);w.contentType==="application/xhtml+xml"&&(M=M.toLowerCase());return w.createElement(M)}; g.pj=function(w){return document.createTextNode(String(w))}; g.FU=function(w,M){w.appendChild(M)}; g.ES=function(w){for(var M;M=w.firstChild;)w.removeChild(M)}; N3=function(w,M,P){w.insertBefore(M,w.childNodes[P]||null)}; g.Vy=function(w){return w&&w.parentNode?w.parentNode.removeChild(w):null}; g.mG=function(w,M){if(!w||!M)return!1;if(w.contains&&M.nodeType==1)return w==M||w.contains(M);if(typeof w.compareDocumentPosition!="undefined")return w==M||!!(w.compareDocumentPosition(M)&16);for(;M&&w!=M;)M=M.parentNode;return M==w}; wS=function(w){return w.nodeType==9?w:w.ownerDocument||w.document}; g.oU=function(w,M){if("textContent"in w)w.textContent=M;else if(w.nodeType==3)w.data=String(M);else if(w.firstChild&&w.firstChild.nodeType==3){for(;w.lastChild!=w.firstChild;)w.removeChild(w.lastChild);w.firstChild.data=String(M)}else g.ES(w),w.appendChild(wS(w).createTextNode(String(M)))}; s$M=function(w){return w.tagName=="A"&&w.hasAttribute("href")||w.tagName=="INPUT"||w.tagName=="TEXTAREA"||w.tagName=="SELECT"||w.tagName=="BUTTON"?!w.disabled&&(!w.hasAttribute("tabindex")||vVM(w)):w.hasAttribute("tabindex")&&vVM(w)}; vVM=function(w){w=w.tabIndex;return typeof w==="number"&&w>=0&&w<32768}; Yf=function(w,M,P){if(!M&&!P)return null;var u=M?String(M).toUpperCase():null;return G6(w,function(X){return(!u||X.nodeName==u)&&(!P||typeof X.className==="string"&&g.o$(X.className.split(/\s+/),P))},!0)}; G6=function(w,M,P){w&&!P&&(w=w.parentNode);for(P=0;w;){if(M(w))return w;w=w.parentNode;P++}return null}; a7=function(w){this.B=w||g.aF.document||document}; KUF=function(){this.B=this.Ey=null}; z6=function(){}; dS=function(){if(!T6())throw Error();}; T6=function(){return!(!l6||!l6.performance)}; bC_=function(w){return g.h1?"webkit"+w:w.toLowerCase()}; Lj=function(w){return function(){return w}}; g.e0=function(){}; I4y=function(w){var M=M||0;return function(){return w.apply(this,Array.prototype.slice.call(arguments,0,M))}}; BS=function(w){var M=!1,P;return function(){M||(P=w(),M=!0);return P}}; Qy=function(w){var M=w;return function(){if(M){var P=M;M=null;P()}}}; kf=function(w,M,P){var u=0;return function(X){g.aF.clearTimeout(u);var U=arguments;u=g.aF.setTimeout(function(){w.apply(P,U)},M)}}; RU=function(w,M,P,u){this.top=w;this.right=M;this.bottom=P;this.left=u}; nj=function(w){return w.right-w.left}; vS=function(w,M){return w==M?!0:w&&M?w.top==M.top&&w.right==M.right&&w.bottom==M.bottom&&w.left==M.left:!1}; sS=function(w,M,P){M instanceof g.gq?(w.left+=M.x,w.right+=M.x,w.top+=M.y,w.bottom+=M.y):(w.left+=M,w.right+=M,typeof P==="number"&&(w.top+=P,w.bottom+=P));return w}; g.Kj=function(w,M,P,u){this.left=w;this.top=M;this.width=P;this.height=u}; b6=function(w,M){return w==M?!0:w&&M?w.left==M.left&&w.width==M.width&&w.top==M.top&&w.height==M.height:!1}; g.A1=function(w,M,P){if(typeof M==="string")(M=IU(w,M))&&(w.style[M]=P);else for(var u in M){P=w;var X=M[u],U=IU(P,u);U&&(P.style[U]=X)}}; IU=function(w,M){var P=Axu[M];if(!P){var u=SE1(M);P=u;w.style[u]===void 0&&(u=(g.h1?"Webkit":gS?"Moz":null)+paR(u),w.style[u]!==void 0&&(P=u));Axu[M]=P}return P}; g.J1=function(w,M){var P=w.style[SE1(M)];return typeof P!=="undefined"?P:w.style[IU(w,M)]||""}; rS=function(w,M){var P=wS(w);return P.defaultView&&P.defaultView.getComputedStyle&&(w=P.defaultView.getComputedStyle(w,null))?w[M]||w.getPropertyValue(M)||"":""}; j0=function(w,M){return rS(w,M)||(w.currentStyle?w.currentStyle[M]:null)||w.style&&w.style[M]}; g.t1=function(w,M,P){if(M instanceof g.gq){var u=M.x;M=M.y}else u=M,M=P;w.style.left=g.Cj(u,!1);w.style.top=g.Cj(M,!1)}; xf=function(w){try{return w.getBoundingClientRect()}catch(M){return{left:0,top:0,right:0,bottom:0}}}; gVl=function(w){var M=wS(w),P=j0(w,"position"),u=P=="fixed"||P=="absolute";for(w=w.parentNode;w&&w!=M;w=w.parentNode)if(w.nodeType==11&&w.host&&(w=w.host),P=j0(w,"position"),u=u&&P=="static"&&w!=M.documentElement&&w!=M.body,!u&&(w.scrollWidth>w.clientWidth||w.scrollHeight>w.clientHeight||P=="fixed"||P=="absolute"||P=="relative"))return w;return null}; g.OS=function(w){var M=wS(w),P=new g.gq(0,0);if(w==(M?wS(M):document).documentElement)return P;w=xf(w);M=PS(M);M=RAy(M.B);P.x=w.left+M.x;P.y=w.top+M.y;return P}; rxM=function(w,M){var P=new g.gq(0,0),u=cS(wS(w));if(!VpF(u,"parent"))return P;do{var X=u==M?g.OS(w):Jxp(w);P.x+=X.x;P.y+=X.y}while(u&&u!=M&&u!=u.parent&&(w=u.frameElement)&&(u=u.parent));return P}; g.aU=function(w,M){w=j$2(w);M=j$2(M);return new g.gq(w.x-M.x,w.y-M.y)}; Jxp=function(w){w=xf(w);return new g.gq(w.left,w.top)}; j$2=function(w){if(w.nodeType==1)return Jxp(w);w=w.changedTouches?w.changedTouches[0]:w;return new g.gq(w.clientX,w.clientY)}; g.w2=function(w,M,P){if(M instanceof g.rq)P=M.height,M=M.width;else if(P==void 0)throw Error("missing height argument");w.style.width=g.Cj(M,!0);w.style.height=g.Cj(P,!0)}; g.Cj=function(w,M){typeof w=="number"&&(w=(M?Math.round(w):w)+"px");return w}; g.iy=function(w){var M=ChU;if(j0(w,"display")!="none")return M(w);var P=w.style,u=P.display,X=P.visibility,U=P.position;P.visibility="hidden";P.position="absolute";P.display="inline";w=M(w);P.display=u;P.position=U;P.visibility=X;return w}; ChU=function(w){var M=w.offsetWidth,P=w.offsetHeight,u=g.h1&&!M&&!P;return(M===void 0||u)&&w.getBoundingClientRect?(w=xf(w),new g.rq(w.right-w.left,w.bottom-w.top)):new g.rq(M,P)}; g.Mq=function(w,M){w.style.display=M?"":"none"}; PO=function(w){return w?w.passive&&tpp()?w:w.capture||!1:!1}; uy=function(w,M,P,u){return typeof w.addEventListener==="function"?(w.addEventListener(M,P,PO(u)),!0):!1}; XP=function(w){if(w.prerendering)return 3;var M;return(M={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[w.visibilityState||w.webkitVisibilityState||w.mozVisibilityState||""])!=null?M:0}; xjx=function(){}; $w=function(w){w.tSu=!0;return w}; OCR=function(){return(KE||bA)&&IK?IK.mobile:!WO()&&(gd("iPod")||gd("iPhone")||gd("Android")||gd("IEMobile"))}; WO=function(){return(KE||bA)&&IK?!IK.mobile&&(gd("iPad")||gd("Android")||gd("Silk")):gd("iPad")||gd("Android")&&!gd("Mobile")||gd("Silk")}; hd=function(w){try{return!!w&&w.location.href!=null&&VpF(w,"foo")}catch(M){return!1}}; cO=function(w,M){if(w)for(var P in w)Object.prototype.hasOwnProperty.call(w,P)&&M(w[P],P,w)}; wT2=function(){var w=[];cO(a4x,function(M){w.push(M)}); return w}; iEF=function(w){var M,P;return(P=(M=/https?:\/\/[^\/]+/.exec(w))==null?void 0:M[0])!=null?P:""}; umz=function(){var w=MF2("IFRAME"),M={};g.tx(PAR(),function(P){w.sandbox&&w.sandbox.supports&&w.sandbox.supports(P)&&(M[P]=!0)}); return M}; MF2=function(w,M){M=M===void 0?document:M;return M.createElement(String(w).toLowerCase())}; XTM=function(w){for(var M=w;w&&w!=w.parent;)w=w.parent,hd(w)&&(M=w);return M}; W4u=function(w){w=w||Zd();for(var M=new $KM(g.aF.location.href,!1),P=null,u=w.length-1,X=u;X>=0;--X){var U=w[X];!P&&UK2.test(U.url)&&(P=U);if(U.url&&!U.B){M=U;break}}X=null;U=w.length&&w[u].url;M.depth!==0&&U&&(X=w[u]);return new fNM(M,X,P)}; Zd=function(){var w=g.aF,M=[],P=null;do{var u=w;if(hd(u)){var X=u.location.href;P=u.document&&u.document.referrer||null}else X=P,P=null;M.push(new $KM(X||""));try{w=u.parent}catch(U){w=null}}while(w&&u!==w);u=0;for(w=M.length-1;u<=w;++u)M[u].depth=w-u;u=g.aF;if(u.location&&u.location.ancestorOrigins&&u.location.ancestorOrigins.length===M.length-1)for(w=1;wM&&(M=P.length);return 3997-M-w.C.length-1}; FP=function(w,M){this.B=w;this.depth=M}; Su2=function(){function w(h,c){return h==null?c:h} var M=Zd(),P=Math.max(M.length-1,0),u=W4u(M);M=u.B;var X=u.L,U=u.C,f=[];U&&f.push(new FP([U.url,U.B?2:0],w(U.depth,1)));X&&X!=U&&f.push(new FP([X.url,2],0));M.url&&M!=U&&f.push(new FP([M.url,0],w(M.depth,P)));u=g.EV(f,function(h,c){return f.slice(0,f.length-c)}); !M.url||(U||X)&&M!=U||(X=iEF(M.url))&&u.push([new FP([X,1],w(M.depth,P))]);u.push([]);return g.EV(u,function(h){return ZEU(P,h)})}; ZEU=function(w,M){g.Nq(M,function(X){return X.depth>=0}); var P=VM(M,function(X,U){return Math.max(X,U.depth)},-1),u=d_R(P+2); u[0]=w;g.tx(M,function(X){return u[X.depth+1]=X.B}); return u}; HEx=function(){var w=w===void 0?Su2():w;return w.map(function(M){return pS(M)})}; pTl=function(w){var M=!1;M=M===void 0?!1:M;l6.google_image_requests||(l6.google_image_requests=[]);var P=MF2("IMG",l6.document);M&&(P.attributionSrc="");P.src=w;l6.google_image_requests.push(P)}; ma=function(w){var M="XJ";if(w.XJ&&w.hasOwnProperty(M))return w.XJ;var P=new w;w.XJ=P;w.hasOwnProperty(M);return P}; ow=function(){this.L=new xjx;this.B=T6()?new dS:new z6}; F4p=function(){Gd();var w=l6.document;return!!(w&&w.body&&w.body.getBoundingClientRect&&typeof l6.setInterval==="function"&&typeof l6.clearInterval==="function"&&typeof l6.setTimeout==="function"&&typeof l6.clearTimeout==="function")}; Es5=function(){Gd();return HEx()}; Ndy=function(){}; Gd=function(){var w=ma(Ndy);if(!w.B){if(!l6)throw Error("Context has not been set and window is undefined.");w.B=ma(ow)}return w.B}; yM=function(){throw Error("Invalid UTF8");}; VFy=function(w,M){M=String.fromCharCode.apply(null,M);return w==null?M:w+M}; y5z=function(w){var M=!1;M=M===void 0?!1:M;if(mKR){if(M&&(osH?!w.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(w)))throw Error("Found an unpaired surrogate");w=(GRF||(GRF=new TextEncoder)).encode(w)}else{for(var P=0,u=new Uint8Array(3*w.length),X=0;X>6|192;else{if(U>=55296&&U<=57343){if(U<=56319&&X=56320&&f<=57343){U=(U-55296)*1024+ f-56320+65536;u[P++]=U>>18|240;u[P++]=U>>12&63|128;u[P++]=U>>6&63|128;u[P++]=U&63|128;continue}else X--}if(M)throw Error("Found an unpaired surrogate");U=65533}u[P++]=U>>12|224;u[P++]=U>>6&63|128}u[P++]=U&63|128}}w=P===u.length?u:u.subarray(0,P)}return w}; Dd=function(w){g.aF.setTimeout(function(){throw w;},0)}; DKx=function(w){return Array.prototype.map.call(w,function(M){M=M.toString(16);return M.length>1?M:"0"+M}).join("")}; qux=function(w){for(var M=[],P=0;P>6|192:((X&64512)==55296&&u+1>18|240,M[P++]=X>>12&63|128):M[P++]=X>>12|224,M[P++]=X>>6&63|128),M[P++]=X&63|128)}return M}; g.Yw=function(w,M){M===void 0&&(M=0);Yul();M=z0_[M];for(var P=Array(Math.floor(w.length/3)),u=M[64]||"",X=0,U=0;X>2];f=M[(f&3)<<4|h>>4];h=M[(h&15)<<2|c>>6];c=M[c&63];P[U++]=""+Z+f+h+c}Z=0;c=u;switch(w.length-X){case 2:Z=w[X+1],c=M[(Z&15)<<2]||u;case 1:w=w[X],P[U]=""+M[w>>2]+M[(w&3)<<4|Z>>4]+c+u}return P.join("")}; g.zd=function(w,M){if(Tdx&&!M)w=g.aF.btoa(w);else{for(var P=[],u=0,X=0;X255&&(P[u++]=U&255,U>>=8);P[u++]=U}w=g.Yw(P,M)}return w}; lN2=function(w){var M=[];dKp(w,function(P){M.push(P)}); return M}; Td=function(w){var M=w.length,P=M*3/4;P%3?P=Math.floor(P):g.LE("=.",w[M-1])&&(P=g.LE("=.",w[M-2])?P-2:P-1);var u=new Uint8Array(P),X=0;dKp(w,function(U){u[X++]=U}); return X!==P?u.subarray(0,X):u}; dKp=function(w,M){function P(c){for(;u>4);f!=64&&(M(U<<4&240|f>>2),h!=64&&M(f<<6&192|h))}}; Yul=function(){if(!d2){d2={};for(var w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),M=["+/=","+/","-_=","-_.","-_"],P=0;P<5;P++){var u=w.concat(M[P].split(""));z0_[P]=u;for(var X=0;X=M||(u[w]=P+1,w=Error(),uE1(w,"incident"),Dd(w))}}; nS=function(w,M,P){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(P===void 0?0:P)&&Symbol.for&&w?Symbol.for(w):w!=null?Symbol(w):Symbol():M}; KS=function(w,M){vO||sV in w||K4H(w,bEU);w[sV]|=M}; by=function(w,M){vO||sV in w||K4H(w,bEU);w[sV]=M}; Iw=function(){return typeof BigInt==="function"}; g2=function(w,M){return M===void 0?w.B!==Ad&&!!(2&(w.q0[sV]|0)):!!(2&M)&&w.B!==Ad}; INy=function(w,M){if(w!=null)if(typeof w==="string")w=w?new ly(w,LS):eA();else if(w.constructor!==ly)if(vsx&&w!=null&&w instanceof Uint8Array)w=w.length?new ly(new Uint8Array(w),LS):eA();else{if(!M)throw Error();w=void 0}return w}; Jd=function(w,M){if(typeof M!=="number"||M<0||M>=w.length)throw Error();}; A52=function(w,M,P){var u=M&128?0:-1,X=w.length,U;if(U=!!X)U=w[X-1],U=U!=null&&typeof U==="object"&&U.constructor===Object;var f=X+(U?-1:0);for(M=M&128?1:0;MM.length)return!1;if(w.lengthX)return!1;if(u>>0;aw=M;wx=(w-M)/4294967296>>>0}; PA=function(w){if(w<0){iC(0-w);var M=g.G(MG(aw,wx));w=M.next().value;M=M.next().value;aw=w>>>0;wx=M>>>0}else iC(w)}; Xv=function(w,M){var P=M*4294967296+(w>>>0);return Number.isSafeInteger(P)?P:uC(w,M)}; CAp=function(w,M){var P=M&2147483648;P&&(w=~w+1>>>0,M=~M>>>0,w==0&&(M=M+1>>>0));w=Xv(w,M);return typeof w==="number"?P?-w:w:P?"-"+w:w}; uC=function(w,M){M>>>=0;w>>>=0;if(M<=2097151)var P=""+(4294967296*M+w);else Iw()?P=""+(BigInt(M)<>>24|M<<8)&16777215,M=M>>16&65535,w=(w&16777215)+P*6777216+M*6710656,P+=M*8147497,M*=2,w>=1E7&&(P+=w/1E7>>>0,w%=1E7),P>=1E7&&(M+=P/1E7>>>0,P%=1E7),P=M+tF2(P)+tF2(w));return P}; tF2=function(w){w=String(w);return"0000000".slice(w.length)+w}; xKU=function(){var w=aw,M=wx;M&2147483648?Iw()?w=""+(BigInt(M|0)<>>0)):(M=g.G(MG(w,M)),w=M.next().value,M=M.next().value,w="-"+uC(w,M)):w=uC(w,M);return w}; $$=function(w){if(w.length<16)PA(Number(w));else if(Iw())w=BigInt(w),aw=Number(w&BigInt(4294967295))>>>0,wx=Number(w>>BigInt(32)&BigInt(4294967295));else{var M=+(w[0]==="-");wx=aw=0;for(var P=w.length,u=0+M,X=(P-M)%6+M;X<=P;u=X,X+=6)u=Number(w.slice(u,X)),wx*=1E6,aw=aw*1E6+u,aw>=4294967296&&(wx+=Math.trunc(aw/4294967296),wx>>>=0,aw>>>=0);M&&(M=g.G(MG(aw,wx)),w=M.next().value,M=M.next().value,aw=w,wx=M)}}; MG=function(w,M){M=~M;w?w=~w+1:M+=1;return[w,M]}; Ub=function(w){return Array.prototype.slice.call(w)}; fP=function(w){if(w!=null&&typeof w!=="number")throw Error("Value of float/double field must be a number, found "+typeof w+": "+w);return w}; OE4=function(w){return w.displayName||w.name||"unknown type name"}; WA=function(w){if(w!=null&&typeof w!=="boolean")throw Error("Expected boolean but got "+HzH(w)+": "+w);return w}; cA=function(w){switch(typeof w){case "bigint":return!0;case "number":return hv(w);case "string":return aN5.test(w);default:return!1}}; w1y=function(w){if(typeof w!=="number")throw kw("int32");if(!hv(w))throw kw("int32");return w|0}; Z3=function(w){return w==null?w:w1y(w)}; SM=function(w){if(w==null)return w;if(typeof w==="string"&&w)w=+w;else if(typeof w!=="number")return;return hv(w)?w|0:void 0}; HA=function(w){if(w==null)return w;if(typeof w==="string"&&w)w=+w;else if(typeof w!=="number")return;return hv(w)?w>>>0:void 0}; PiU=function(w){var M=0;M=M===void 0?0:M;if(!cA(w))throw kw("int64");var P=typeof w;switch(M){case 512:switch(P){case "string":return pP(w);case "bigint":return String(Fv(64,w));default:return V0(w)}case 1024:switch(P){case "string":return iQM(w);case "bigint":return td(Fv(64,w));default:return MtU(w)}case 0:switch(P){case "string":return pP(w);case "bigint":return td(Fv(64,w));default:return mc(w)}default:return Z7(M,"Unknown format requested type for int64")}}; o9=function(w){return w==null?w:PiU(w)}; uj2=function(w){if(w[0]==="-")return!1;var M=w.length;return M<20?!0:M===20&&Number(w.substring(0,6))<184467}; X1_=function(w){var M=w.length;return w[0]==="-"?M<20?!0:M===20&&Number(w.substring(0,7))>-922337:M<19?!0:M===19&&Number(w.substring(0,6))<922337}; $Ez=function(w){if(w<0){PA(w);var M=uC(aw,wx);w=Number(M);return GB(w)?w:M}M=String(w);if(uj2(M))return M;PA(w);return Xv(aw,wx)}; UE1=function(w){if(X1_(w))return w;$$(w);return xKU()}; mc=function(w){cA(w);w=y0(w);GB(w)||(PA(w),w=CAp(aw,wx));return w}; V0=function(w){cA(w);w=y0(w);if(GB(w))w=String(w);else{var M=String(w);X1_(M)?w=M:(PA(w),w=xKU())}return w}; pP=function(w){cA(w);var M=y0(Number(w));if(GB(M))return String(M);M=w.indexOf(".");M!==-1&&(w=w.substring(0,M));return UE1(w)}; iQM=function(w){var M=y0(Number(w));if(GB(M))return td(M);M=w.indexOf(".");M!==-1&&(w=w.substring(0,M));return Iw()?td(Fv(64,BigInt(w))):td(UE1(w))}; MtU=function(w){return GB(w)?td(mc(w)):td(V0(w))}; f72=function(w){if(w==null)return w;var M=typeof w;if(M==="bigint")return String(Fv(64,w));if(cA(w)){if(M==="string")return pP(w);if(M==="number")return mc(w)}}; hx1=function(w){if(w==null)return w;var M=typeof w;if(M==="bigint")return String(WAp(64,w));if(cA(w)){if(M==="string")return cA(w),M=y0(Number(w)),GB(M)&&M>=0?w=String(M):(M=w.indexOf("."),M!==-1&&(w=w.substring(0,M)),uj2(w)||($$(w),w=uC(aw,wx))),w;if(M==="number")return cA(w),w=y0(w),w>=0&&GB(w)?w:$Ez(w)}}; cTM=function(w){if(w==null||typeof w=="string"||w instanceof ly)return w}; ZQz=function(w){if(typeof w!=="string")throw Error();return w}; D3=function(w){if(w!=null&&typeof w!=="string")throw Error();return w}; qG=function(w){return w==null||typeof w==="string"?w:void 0}; Y$=function(w,M){if(!(w instanceof M))throw Error("Expected instanceof "+OE4(M)+" but got "+(w&&OE4(w.constructor)));return w}; Scz=function(w,M,P){if(w!=null&&w[zB]===TB)return w;if(Array.isArray(w)){var u=w[sV]|0;P=u|P&32|P&2;P!==u&&by(w,P);return new M(w)}}; dx=function(w){return w}; LP=function(w){var M=Z4(lC);return M?w[M]:void 0}; eM=function(){}; BA=function(w,M){for(var P in w)!isNaN(P)&&M(w,+P,w[P])}; HQ1=function(w){var M=new eM;BA(w,function(P,u,X){M[u]=Ub(X)}); M.kU=w.kU;return M}; FA1=function(w,M){M<100||Rw(p1_,1)}; k$=function(w,M,P,u){var X=u!==void 0;u=!!u;var U=Z4(lC),f;!X&&vO&&U&&(f=w[U])&&BA(f,FA1);U=[];var h=w.length;f=4294967295;var c=!1,Z=!!(M&64),S=Z?M&128?0:-1:void 0;if(!(M&1)){var H=h&&w[h-1];H!=null&&typeof H==="object"&&H.constructor===Object?(h--,f=h):H=void 0;if(Z&&!(M&128)&&!X){c=!0;var p;f=((p=Q0)!=null?p:dx)(f-S,S,w,H)+S}}M=void 0;for(p=0;p=f){var E=p-S,y=void 0;((y=M)!=null?y:M={})[E]=F}else U[p]=F}if(H)for(var q in H)h=H[q],h!=null&& (h=P(h,u))!=null&&(p=+q,F=void 0,Z&&!Number.isNaN(p)&&(F=p+S)0?void 0:w===0?oaz||(oaz=[0,void 0]):[-w,void 0];case "string":return[0,w];case "object":return w}}; I9=function(w,M,P){return w=bC(w,M[0],M[1],P?1:2)}; bC=function(w,M,P,u){u=u===void 0?0:u;if(w==null){var X=32;P?(w=[P],X|=128):w=[];M&&(X=X&-8380417|(M&1023)<<13)}else{if(!Array.isArray(w))throw Error("narr");X=w[sV]|0;2048&X&&!(2&X)&&yTM();if(X&256)throw Error("farr");if(X&64)return u!==0||X&2048||by(w,X|2048),w;if(P&&(X|=128,P!==w[0]))throw Error("mid");a:{P=w;X|=64;var U=P.length;if(U){var f=U-1,h=P[f];if(h!=null&&typeof h==="object"&&h.constructor===Object){M=X&128?0:-1;f-=M;if(f>=1024)throw Error("pvtlmt");for(var c in h)U=+c,U1024)throw Error("spvt");X=X&-8380417|(c&1023)<<13}}}X|=64;u===0&&(X|=2048);by(w,X);return w}; yTM=function(){Rw(DE2,5)}; qcu=function(w,M){if(typeof w!=="object")return w;if(Array.isArray(w)){var P=w[sV]|0;w.length===0&&P&1?w=void 0:P&2||(!M||4096&P||16&P?w=Av(w,P,!1,M&&!(P&16)):(KS(w,34),P&4&&Object.freeze(w)));return w}if(w!=null&&w[zB]===TB)return M=w.q0,P=M[sV]|0,g2(w,P)?w:gx(w,M,P)?Jv(w,M):Av(M,P);if(w instanceof ly)return w}; Jv=function(w,M,P){w=new w.constructor(M);P&&(w.B=Ad);w.L=Ad;return w}; Av=function(w,M,P,u){u!=null||(u=!!(34&M));w=k$(w,M,qcu,u);u=32;P&&(u|=2);M=M&8380609|u;by(w,M);return w}; YcU=function(w){var M=w.q0,P=M[sV]|0;return g2(w,P)?gx(w,M,P)?Jv(w,M,!0):new w.constructor(Av(M,P,!1)):w}; rx=function(w){if(w.B!==Ad)return!1;var M=w.q0;M=Av(M,M[sV]|0);KS(M,2048);w.q0=M;w.B=void 0;w.L=void 0;return!0}; jM=function(w){if(!rx(w)&&g2(w,w.q0[sV]|0))throw Error();}; CP=function(w,M){M===void 0&&(M=w[sV]|0);M&32&&!(M&4096)&&by(w,M|4096)}; gx=function(w,M,P){return P&2?!0:P&32&&!(P&4096)?(by(M,P|2),w.B=Ad,!0):!1}; x$=function(w,M,P,u,X){Object.isExtensible(w);M=tv(w.q0,M,P,X);if(M!==null||u&&w.L!==Ad)return M}; tv=function(w,M,P,u){if(M===-1)return null;var X=M+(P?0:-1),U=w.length-1;if(!(U<1+(P?0:-1))){if(X>=U){var f=w[U];if(f!=null&&typeof f==="object"&&f.constructor===Object){P=f[M];var h=!0}else if(X===U)P=f;else return}else P=w[X];if(u&&P!=null){u=u(P);if(u==null)return u;if(!Object.is(u,P))return h?f[M]=u:w[X]=u,u}return P}}; a9=function(w,M,P,u){jM(w);var X=w.q0;Ob(X,X[sV]|0,M,P,u);return w}; Ob=function(w,M,P,u,X){var U=P+(X?0:-1),f=w.length-1;if(f>=1+(X?0:-1)&&U>=f){var h=w[f];if(h!=null&&typeof h==="object"&&h.constructor===Object)return h[P]=u,M}if(U<=f)return w[U]=u,M;if(u!==void 0){var c;f=((c=M)!=null?c:M=w[sV]|0)>>13&1023||536870912;P>=f?u!=null&&(U={},w[f+(X?0:-1)]=(U[P]=u,U)):w[U]=u}return M}; ue=function(w,M,P,u,X){var U=w.q0,f=U[sV]|0;u=g2(w,f)?1:u;X=!!X||u===3;u===2&&rx(w)&&(U=w.q0,f=U[sV]|0);w=wY(U,M);var h=w===ie?7:w[sV]|0,c=Mr(h,f);var Z=4&c?!1:!0;if(Z){4&c&&(w=Ub(w),h=0,c=PR(c,f),f=Ob(U,f,M,w));for(var S=0,H=0;S "+w)}; nH=function(w,M,P){this.buffer=w;if(P&&!M)throw Error();this.B=M}; vR=function(w,M){if(typeof w==="string")return new nH(kRy(w),M);if(Array.isArray(w))return new nH(new Uint8Array(w),M);if(w.constructor===Uint8Array)return new nH(w,!1);if(w.constructor===ArrayBuffer)return w=new Uint8Array(w),new nH(w,!1);if(w.constructor===ly)return M=BO(w)||new Uint8Array(0),new nH(M,!0,w);if(w instanceof Uint8Array)return w=w.constructor===Uint8Array?w:new Uint8Array(w.buffer,w.byteOffset,w.byteLength),new nH(w,!1);throw Error();}; s8=function(w,M,P,u){this.L=null;this.G=!1;this.B=this.C=this.X=0;this.init(w,M,P,u)}; be=function(w){var M=0,P=0,u=0,X=w.L,U=w.B;do{var f=X[U++];M|=(f&127)<32&&(P|=(f&127)>>4);for(u=3;u<32&&f&128;u+=7)f=X[U++],P|=(f&127)<>>0,P>>>0);throw Ry();}; KH=function(w,M){w.B=M;if(M>w.C)throw vaM(w.C,M);}; Iy=function(w){var M=w.L,P=w.B,u=M[P++],X=u&127;if(u&128&&(u=M[P++],X|=(u&127)<<7,u&128&&(u=M[P++],X|=(u&127)<<14,u&128&&(u=M[P++],X|=(u&127)<<21,u&128&&(u=M[P++],X|=u<<28,u&128&&M[P++]&128&&M[P++]&128&&M[P++]&128&&M[P++]&128&&M[P++]&128)))))throw Ry();KH(w,P);return X}; AE=function(w){var M=w.L,P=w.B,u=M[P+0],X=M[P+1],U=M[P+2];M=M[P+3];KH(w,w.B+4);return(u<<0|X<<8|U<<16|M<<24)>>>0}; gY=function(w){var M=AE(w);w=AE(w);return Xv(M,w)}; JE=function(w){var M=AE(w),P=AE(w);w=(P>>31)*2+1;var u=P>>>20&2047;M=4294967296*(P&1048575)+M;return u==2047?M?NaN:w*Infinity:u==0?w*4.9E-324*M:w*Math.pow(2,u-1075)*(M+4503599627370496)}; rY=function(w){for(var M=0,P=w.B,u=P+10,X=w.L;Pw.C)throw vaM(M,w.C-P);w.B=u;return P}; bQ_=function(w,M){if(M==0)return eA();var P=s74(w,M);w.HL&&w.G?P=w.L.subarray(P,P+M):(w=w.L,M=P+M,P=P===M?new Uint8Array(0):KA_?w.slice(P,M):new Uint8Array(w.subarray(P,M)));return P.length==0?eA():new ly(P,LS)}; CH=function(w,M,P,u){if(jG.length){var X=jG.pop();X.init(w,M,P,u);w=X}else w=new s8(w,M,P,u);this.B=w;this.C=this.B.B;this.L=this.X=-1;I7M(this,u)}; I7M=function(w,M){M=M===void 0?{}:M;w.Sh=M.Sh===void 0?!1:M.Sh}; AT5=function(w,M,P,u){if(tE.length){var X=tE.pop();I7M(X,u);X.B.init(w,M,P,u);return X}return new CH(w,M,P,u)}; gaM=function(w){var M=w.B;if(M.B==M.C)return!1;w.C=w.B.B;var P=Iy(w.B)>>>0;M=P>>>3;P&=7;if(!(P>=0&&P<=5))throw nax(P,w.C);if(M<1)throw Error("Invalid field number: "+M+" (at position "+w.C+")");w.X=M;w.L=P;return!0}; xG=function(w){switch(w.L){case 0:w.L!=0?xG(w):rY(w.B);break;case 1:w=w.B;KH(w,w.B+8);break;case 2:if(w.L!=2)xG(w);else{var M=Iy(w.B)>>>0;w=w.B;KH(w,w.B+M)}break;case 5:w=w.B;KH(w,w.B+4);break;case 3:M=w.X;do{if(!gaM(w))throw Error("Unmatched start-group tag: stream EOF");if(w.L==4){if(w.X!=M)throw Error("Unmatched end-group tag");break}xG(w)}while(1);break;default:throw nax(w.L,w.C);}}; O8=function(w,M,P){var u=w.B.C,X=Iy(w.B)>>>0,U=w.B.B+X,f=U-u;f<=0&&(w.B.C=U,P(M,w,void 0,void 0,void 0),f=U-w.B.B);if(f)throw Error("Message parsing ended unexpectedly. Expected to read "+(X+" bytes, instead read "+(X-f)+" bytes, either the data ended unexpectedly or the message misreported its own length"));w.B.B=U;w.B.C=u}; hA=function(w){var M=Iy(w.B)>>>0;w=w.B;var P=s74(w,M);w=w.L;if(JT2){var u=w,X;(X=ay)||(X=ay=new TextDecoder("utf-8",{fatal:!0}));M=P+M;u=P===0&&M===u.length?u:u.subarray(P,M);try{var U=X.decode(u)}catch(Z){if(W9===void 0){try{X.decode(new Uint8Array([128]))}catch(S){}try{X.decode(new Uint8Array([97])),W9=!0}catch(S){W9=!1}}!W9&&(ay=void 0);throw Z;}}else{U=P;M=U+M;P=[];for(var f=null,h,c;U=M?yM():(c=w[U++],h<194||(c&192)!==128?(U--,yM()):P.push((h&31)<<6|c&63)): h<240?U>=M-1?yM():(c=w[U++],(c&192)!==128||h===224&&c<160||h===237&&c>=160||((X=w[U++])&192)!==128?(U--,yM()):P.push((h&15)<<12|(c&63)<<6|X&63)):h<=244?U>=M-2?yM():(c=w[U++],(c&192)!==128||(h<<28)+(c-144)>>30!==0||((X=w[U++])&192)!==128||((u=w[U++])&192)!==128?(U--,yM()):(h=(h&7)<<18|(c&63)<<12|(X&63)<<6|u&63,h-=65536,P.push((h>>10&1023)+55296,(h&1023)+56320))):yM(),P.length>=8192&&(f=VFy(f,P),P.length=0);U=VFy(f,P)}return U}; rTx=function(w){var M=Iy(w.B)>>>0;return bQ_(w.B,M)}; c9=function(w,M){this.L=w>>>0;this.B=M>>>0}; Cip=function(w){if(!w)return j7x||(j7x=new c9(0,0));if(!/^\d+$/.test(w))return null;$$(w);return new c9(aw,wx)}; Zm=function(w,M){this.L=w>>>0;this.B=M>>>0}; xE1=function(w){if(!w)return tt1||(tt1=new Zm(0,0));if(!/^-?\d+$/.test(w))return null;$$(w);return new Zm(aw,wx)}; S5=function(){this.B=[]}; H9=function(w,M,P){for(;P>0||M>127;)w.B.push(M&127|128),M=(M>>>7|P<<25)>>>0,P>>>=7;w.B.push(M)}; p9=function(w,M){for(;M>127;)w.B.push(M&127|128),M>>>=7;w.B.push(M)}; OQF=function(w,M){if(M>=0)p9(w,M);else{for(var P=0;P<9;P++)w.B.push(M&127|128),M>>=7;w.B.push(1)}}; FS=function(w,M){w.B.push(M>>>0&255);w.B.push(M>>>8&255);w.B.push(M>>>16&255);w.B.push(M>>>24&255)}; a7z=function(){this.C=[];this.L=0;this.B=new S5}; EP=function(w,M){M.length!==0&&(w.C.push(M),w.L+=M.length)}; wSu=function(w,M){Ns(w,M,2);M=w.B.end();EP(w,M);M.push(w.L);return M}; ijF=function(w,M){var P=M.pop();for(P=w.L+w.B.length()-P;P>127;)M.push(P&127|128),P>>>=7,w.L++;M.push(P);w.L++}; Ns=function(w,M,P){p9(w.B,M*8+P)}; M0U=function(w,M,P){if(P!=null){switch(typeof P){case "string":Cip(P)}Ns(w,M,1);switch(typeof P){case "number":w=w.B;iC(P);FS(w,aw);FS(w,wx);break;case "bigint":P=BigInt.asUintN(64,P);P=new c9(Number(P&BigInt(4294967295)),Number(P>>BigInt(32)));w=w.B;M=P.B;FS(w,P.L);FS(w,M);break;default:P=Cip(P),w=w.B,M=P.B,FS(w,P.L),FS(w,M)}}}; VV=function(w,M,P){Ns(w,M,2);p9(w.B,P.length);EP(w,w.B.end());EP(w,P)}; mk=function(){function w(){throw Error();} Object.setPrototypeOf(w,w.prototype);return w}; oP=function(w,M,P){this.q0=bC(w,M,P)}; P6y=function(w,M){if(M==null||M=="")return new w;M=JSON.parse(M);if(!Array.isArray(M))throw Error("dnarr");KS(M,32);return new w(M)}; yV=function(w,M,P){this.qT=w;this.JG=M;w=Z4(GC);this.B=!!w&&P===w||!1}; Dm=function(w,M){var P=P===void 0?GC:P;return new yV(w,M,P)}; XSl=function(w,M,P,u,X){M=uU_(M,u);M!=null&&(P=wSu(w,P),X(M,w),ijF(w,P))}; zC=function(w,M,P,u){var X=u[w];if(X)return X;X={};X.iH=u;X.Tc=GLz(u[0]);var U=u[1],f=1;U&&U.constructor===Object&&(X.extensions=U,U=u[++f],typeof U==="function"&&(X.E8=!0,qs!=null||(qs=U),Y8!=null||(Y8=u[f+1]),U=u[f+=2]));for(var h={};U&&Array.isArray(U)&&U.length&&typeof U[0]==="number"&&U[0]>0;){for(var c=0;c>BigInt(32)));H9(w.B,P.L,P.B);break;default:P=xE1(M),H9(w.B,P.L,P.B)}}}; tA=function(w,M,P){M=SM(M);M!=null&&M!=null&&(Ns(w,P,0),OQF(w.B,M))}; NSR=function(w,M,P){M=M==null||typeof M==="boolean"?M:typeof M==="number"?!!M:void 0;M!=null&&(Ns(w,P,0),w.B.B.push(M?1:0))}; V0u=function(w,M,P){M=qG(M);M!=null&&VV(w,P,y5z(M))}; m31=function(w,M,P,u,X){M=uU_(M,u);M!=null&&(P=wSu(w,P),X(M,w),ijF(w,P))}; G6M=function(){var w=x8;this.B=ofy;this.isRepeated=0;this.L=E8;this.defaultValue=void 0;this.C=w.messageId!=null?r2:void 0}; y1l=function(w){return function(){var M=new a7z;HjH(this.q0,M,zC(RP,B9,bj,w));EP(M,M.B.end());for(var P=new Uint8Array(M.L),u=M.C,X=u.length,U=0,f=0;f-1)return M.apply(null,g.L(P));try{return w.B=w.C.B.now(),M.apply(null,g.L(P))}finally{w.X+=w.C.B.now()-w.B,w.B=-1,w.L+=1}}}; qS1=function(w,M){this.L=w;this.C=M;this.B=new D3U(w)}; YSp=function(){this.B={}}; TS1=function(){var w=iR().flags,M=zcR;w=w.B[M.key];if(M.valueType==="proto"){try{var P=JSON.parse(w);if(Array.isArray(P))return P}catch(u){}return M.defaultValue}return typeof w===typeof M.defaultValue?w:M.defaultValue}; ecx=function(){this.C=void 0;this.L=this.K=0;this.G=-1;this.r7=new yq;DN(this.r7,"mv",d3x).B=!0;DN(this.r7,"omid",TR);DN(this.r7,"epoh",TR).B=!0;DN(this.r7,"epph",TR).B=!0;DN(this.r7,"umt",TR).B=!0;DN(this.r7,"phel",TR).B=!0;DN(this.r7,"phell",TR).B=!0;DN(this.r7,"oseid",lay).B=!0;var w=this.r7;w.B.sloi||(w.B.sloi=new oK);w.B.sloi.B=!0;DN(this.r7,"mm",MN);DN(this.r7,"ovms",LGU).B=!0;DN(this.r7,"xdi",TR).B=!0;DN(this.r7,"amp",TR).B=!0;DN(this.r7,"prf",TR).B=!0;DN(this.r7,"gtx",TR).B=!0;DN(this.r7, "mvp_lv",TR).B=!0;DN(this.r7,"ssmol",TR).B=!0;DN(this.r7,"fmd",TR).B=!0;DN(this.r7,"gen204simple",TR);this.B=new qS1(Gd(),this.r7);this.X=!1;this.flags=new YSp}; iR=function(){return ma(ecx)}; BSU=function(w,M,P,u){if(Math.random()<(u||w.B))try{if(P instanceof SA)var X=P;else X=new SA,cO(P,function(f,h){var c=X,Z=c.X++;f=HO(h,f);c.B.push(Z);c.L[Z]=f}); var U=X.xa(w.L,"pagead2.googlesyndication.com","/pagead/gen_204?id="+M+"&");U&&(Gd(),pTl(U))}catch(f){}}; QU5=function(w,M,P){P=P===void 0?{}:P;this.error=w;this.meta=P;this.context=M.context;this.msg=M.message||"";this.id=M.id||"jserror"}; k61=function(){var w=w===void 0?g.aF:w;return(w=w.performance)&&w.now&&w.timing?Math.floor(w.now()+w.timing.navigationStart):g.ca()}; RcH=function(){var w=w===void 0?g.aF:w;return(w=w.performance)&&w.now?w.now():null}; nf2=function(w,M,P){this.label=w;this.type=M;this.value=P;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; uR=function(){var w=window;this.events=[];this.L=w||g.aF;var M=null;w&&(w.google_js_reporting_queue=w.google_js_reporting_queue||[],this.events=w.google_js_reporting_queue,M=w.google_measure_js_timing);this.B=PY()||(M!=null?M:Math.random()<1)}; vfz=function(w){w&&XY&&PY()&&(XY.clearMarks("goog_"+w.label+"_"+w.uniqueId+"_start"),XY.clearMarks("goog_"+w.label+"_"+w.uniqueId+"_end"))}; $J=function(w,M,P,u,X,U,f){var h="";w&&(h+=w+":");P&&(h+="//",M&&(h+=M+"@"),h+=P,u&&(h+=":"+u));X&&(h+=X);U&&(h+="?"+U);f&&(h+="#"+f);return h}; g.UQ=function(w){return w.match(sUy)}; KGz=function(w){return w?decodeURI(w):w}; g.f5=function(w){return KGz(g.UQ(w)[3]||null)}; WY=function(w){return KGz(g.UQ(w)[5]||null)}; g.bj4=function(w){w=g.UQ(w);return $J(w[1],w[2],w[3],w[4])}; ha=function(w){w=g.UQ(w);return $J(null,null,null,null,w[5],w[6],w[7])}; IaM=function(w){var M=w.indexOf("#");return M<0?w:w.slice(0,M)}; cY=function(w,M){if(w){w=w.split("&");for(var P=0;P=0){var U=w[P].substring(0,u);X=w[P].substring(u+1)}else U=w[P];M(U,X?li(X):"")}}}; Zt=function(w,M){if(!M)return w;var P=w.indexOf("#");P<0&&(P=w.length);var u=w.indexOf("?");if(u<0||u>P){u=P;var X=""}else X=w.substring(u+1,P);w=[w.slice(0,u),X,w.slice(P)];P=w[1];w[1]=M?P?P+"&"+M:M:P;return w[0]+(w[1]?"?"+w[1]:"")+w[2]}; Sc=function(w,M,P){if(Array.isArray(M))for(var u=0;u=0&&MP)X=P;u+=M.length+1;return li(w.slice(u,X!==-1?X:0))}; o4=function(w,M){for(var P=w.search(NN),u=0,X,U=[];(X=EQ(w,u,M,P))>=0;)U.push(w.substring(u,X)),u=Math.min(w.indexOf("&",X)+1||P,P);U.push(w.slice(u));return U.join("").replace(J15,"$1")}; r14=function(w,M,P){return FY(o4(w,M),M,P)}; jUu=function(){var w=G_;this.B=yj;this.gL="jserror";this.Lz=!0;this.AB=null;this.L=this.xM;this.jZ=w===void 0?null:w}; C6u=function(w,M,P){var u=Dt;return we(iR().B.B,function(){try{if(u.jZ&&u.jZ.B){var X=u.jZ.start(w.toString(),3);var U=M();u.jZ.end(X)}else U=M()}catch(h){var f=u.Lz;try{vfz(X),f=u.L(w,new qN(YJ(h)),void 0,P)}catch(c){u.xM(217,c)}if(!f)throw h;}return U})()}; z_=function(w,M,P,u){return we(iR().B.B,function(){var X=g.Kz.apply(0,arguments);return C6u(w,function(){return M.apply(P,X)},u)})}; YJ=function(w){var M=w.toString();w.name&&M.indexOf(w.name)==-1&&(M+=": "+w.name);w.message&&M.indexOf(w.message)==-1&&(M+=": "+w.message);if(w.stack)a:{w=w.stack;var P=M;try{w.indexOf(P)==-1&&(w=P+"\n"+w);for(var u;w!=u;)u=w,w=w.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");M=w.replace(/\n */g,"\n");break a}catch(X){M=P;break a}M=void 0}return M}; qN=function(w){QU5.call(this,Error(w),{message:w})}; t0y=function(){l6&&typeof l6.google_measure_js_timing!="undefined"&&(l6.google_measure_js_timing||G_.disable())}; x3p=function(w){Dt.AB=function(M){g.tx(w,function(P){P(M)})}}; OjH=function(w,M){return C6u(w,M)}; T_=function(w,M){return z_(w,M)}; de=function(w,M,P,u){Dt.xM(w,M,P,u)}; lR=function(){return Date.now()-aa2}; wO5=function(){var w=iR().C,M=L5>=0?lR()-L5:-1,P=ec?lR()-BY:-1,u=Qj>=0?lR()-Qj:-1;if(w==947190542)return 100;if(w==79463069)return 200;w=[2E3,4E3];var X=[250,500,1E3];de(637,Error(),.001);var U=M;P!=-1&&P1500&&u<4E3?500:f}; kJ=function(w,M,P){var u=new RU(0,0,0,0);this.time=w;this.volume=null;this.C=M;this.B=u;this.L=P}; R4=function(w,M,P,u,X,U,f,h){this.X=w;this.j=M;this.C=P;this.K=u;this.B=X;this.G=U;this.L=f;this.V=h}; MAR=function(w){var M=w!==w.top,P=w.top===XTM(w),u=-1,X=0;if(M&&P&&w.top.mraid){u=3;var U=w.top.mraid}else u=(U=w.mraid)?M?P?2:1:0:-1;U&&(U.IS_GMA_SDK||(X=2),eR5(iSH,function(f){return typeof U[f]==="function"})||(X=1)); return{qr:U,compatibility:X,qEW:u}}; PyF=function(){var w=window.document;return w&&typeof w.elementFromPoint==="function"}; uP4=function(w,M,P){if(w&&M!==null&&M!=M.top){if(!M.top)return new g.rq(-12245933,-12245933);M=M.top}try{return(P===void 0?0:P)?(new g.rq(M.innerWidth,M.innerHeight)).round():Q$M(M||window).round()}catch(u){return new g.rq(-12245933,-12245933)}}; n5=function(w,M,P){try{if(w){if(!M.top)return new RU(-12245933,-12245933,-12245933,-12245933);M=M.top}var u=uP4(w,M,P),X=u.height,U=u.width;if(U===-12245933)return new RU(U,U,U,U);var f=PS(M.document);var h=RAy(f.B);var c=h.x,Z=h.y;return new RU(Z,c+U,Z+X,c)}catch(S){return new RU(-12245933,-12245933,-12245933,-12245933)}}; vY=function(w,M){M=Math.pow(10,M);return Math.floor(w*M)/M}; XOp=function(w){return new RU(w.top,w.right,w.bottom,w.left)}; $qu=function(w){var M=w.top||0,P=w.left||0;return new RU(M,P+(w.width||0),M+(w.height||0),P)}; sQ=function(w){return w!=null&&w>=0&&w<=1}; UqH=function(){var w=g.RK();return w?K5("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(M){return eF(w,M)})||eF(w,"OMI/")&&!eF(w,"XiaoMi/")?!0:eF(w,"Presto")&&eF(w,"Linux")&&!eF(w,"X11")&&!eF(w,"Android")&&!eF(w,"Mobi"):!1}; fdp=function(){this.C=!hd(l6.top);this.isMobileDevice=WO()||OCR();var w=Zd();this.domain=w.length>0&&w[w.length-1]!=null&&w[w.length-1].url!=null?g.f5(w[w.length-1].url)||"":"";this.B=new RU(0,0,0,0);this.X=new g.rq(0,0);this.G=new g.rq(0,0);this.j=new RU(0,0,0,0);this.frameOffset=new g.gq(0,0);this.K=0;this.V=!1;this.L=!(!l6||!MAR(l6).qr);this.update(l6)}; Wa1=function(w,M){M&&M.screen&&(w.X=new g.rq(M.screen.width,M.screen.height))}; hmy=function(w,M){a:{var P=w.B?new g.rq(nj(w.B),w.B.getHeight()):new g.rq(0,0);M=M===void 0?l6:M;M!==null&&M!=M.top&&(M=M.top);var u=0,X=0;try{var U=M.document,f=U.body,h=U.documentElement;if(U.compatMode=="CSS1Compat"&&h.scrollHeight)u=h.scrollHeight!=P.height?h.scrollHeight:h.offsetHeight,X=h.scrollWidth!=P.width?h.scrollWidth:h.offsetWidth;else{var c=h.scrollHeight,Z=h.scrollWidth,S=h.offsetHeight,H=h.offsetWidth;h.clientHeight!=S&&(c=f.scrollHeight,Z=f.scrollWidth,S=f.offsetHeight,H=f.offsetWidth); c>P.height?c>S?(u=c,X=Z):(u=S,X=H):c0||w.V)return!0;w=Gd().L.isVisible();var M=XP(I4)===0;return w||M}; bR=function(){return ma(fdp)}; ge=function(w){this.C=w;this.L=0;this.B=null}; Ja=function(w,M,P){this.C=w;this.eL=P===void 0?"na":P;this.G=[];this.isInitialized=!1;this.X=new kJ(-1,!0,this);this.B=this;this.V=M;this.B3=this.S=!1;this.Cu="uk";this.ys=!1;this.K=!0}; re=function(w,M){g.o$(w.G,M)||(w.G.push(M),M.A2(w.B),M.Nc(w.X),M.ud()&&(w.S=!0))}; cd2=function(w){w=w.B;w.LS();w.B7();var M=bR();M.j=n5(!1,w.C,M.isMobileDevice);hmy(bR(),w.C);w.X.B=w.Uv()}; ZSp=function(w){w.S=w.G.length?K5(w.G,function(M){return M.ud()}):!1}; SVU=function(w){var M=g.LC(w.G);g.tx(M,function(P){P.Nc(w.X)})}; jc=function(w){var M=g.LC(w.G);g.tx(M,function(P){P.A2(w.B)}); w.B!=w||SVU(w)}; C5=function(w,M,P,u){this.element=w;this.B=new RU(0,0,0,0);this.C=null;this.K=new RU(0,0,0,0);this.L=M;this.r7=P;this.ys=u;this.mN=!1;this.timestamp=-1;this.S=new R4(M.X,this.element,this.B,new RU(0,0,0,0),0,0,lR(),0);this.G=void 0}; HSF=function(w,M){return w.G?new RU(Math.max(M.top+w.G.top,M.top),Math.min(M.left+w.G.right,M.right),Math.min(M.top+w.G.bottom,M.bottom),Math.max(M.left+w.G.left,M.left)):M.clone()}; ta=function(w){this.G=!1;this.B=w;this.X=function(){}}; pO_=function(w,M,P){this.C=P===void 0?0:P;this.L=w;this.B=M==null?"":M}; HPp=function(w){switch(Math.trunc(w.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; pAz=function(w,M){return w.CM.C?!1:w.LM.L?!1:typeof w.Btypeof M.B?!1:w.B0?u[P]-u[P-1]:u[P]})}; WD=function(){this.L=new PD;this.eL=this.UO=0;this.t9=new Mn;this.Lu=this.j=-1;this.iW=1E3;this.Z3=new PD([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Cu=this.mN=-1}; h4=function(w,M){return qbF(w.L,M===void 0?!0:M)}; cD=function(w,M,P,u){var X=X===void 0?!1:X;P=z_(u,P);uy(w,M,P,{capture:X})}; Sv=function(w,M){M=ZP(M);return M===0?0:ZP(w)/M}; ZP=function(w){return Math.max(w.bottom-w.top,0)*Math.max(w.right-w.left,0)}; Txz=function(w,M){if(!w||!M)return!1;for(var P=0;w!==null&&P++<100;){if(w===M)return!0;try{if(w=w.parentElement||w){var u=wS(w),X=u&&cS(u),U=X&&X.frameElement;U&&(w=U)}}catch(f){break}}return!1}; dGz=function(w,M,P){if(!w||!M)return!1;M=sS(w.clone(),-M.left,-M.top);w=(M.left+M.right)/2;M=(M.top+M.bottom)/2;hd(window.top)&&window.top&&window.top.document&&(window=window.top);if(!PyF())return!1;w=window.document.elementFromPoint(w,M);if(!w)return!1;M=(M=(M=wS(P))&&M.defaultView&&M.defaultView.frameElement)&&Txz(M,w);var u=w===P;w=!u&&w&&G6(w,function(X){return X===P}); return!(M||u||w)}; l3M=function(w,M,P,u){return bR().C?!1:nj(w)<=0||w.getHeight()<=0?!0:P&&u?OjH(208,function(){return dGz(w,M,P)}):!1}; HD=function(w,M,P){g.v.call(this);this.position=Lcz.clone();this.WX=this.mE();this.FD=-2;this.timeCreated=Date.now();this.H5=-1;this.Cp=M;this.PX=null;this.PS=!1;this.Va=null;this.opacity=-1;this.requestSource=P;this.D8u=!1;this.G6=function(){}; this.dn=function(){}; this.Bw=new KUF;this.Bw.Ey=w;this.Bw.B=w;this.bJ=!1;this.JI={tb:null,u9:null};this.Xg=!0;this.xw=null;this.pM=this.Wz=!1;iR().K++;this.yO=this.Ze();this.nf=-1;this.Q_=null;this.hasCompleted=this.Mq=!1;this.r7=new yq;Ky4(this.r7);e41(this);this.requestSource==1?qK(this.r7,"od",1):qK(this.r7,"od",0)}; e41=function(w){w=w.Bw.Ey;var M;if(M=w&&w.getAttribute)M=/-[a-z]/.test("googleAvInapp")?!1:Bxu&&w.dataset?"googleAvInapp"in w.dataset:w.hasAttribute?w.hasAttribute("data-"+HCM()):!!w.getAttribute("data-"+HCM());M&&(bR().L=!0)}; p4=function(w,M){M!=w.pM&&(w.pM=M,w=bR(),M?w.K++:w.K>0&&w.K--)}; Q9p=function(w,M){if(w.Q_){if(M.getName()===w.Q_.getName())return;w.Q_.dispose();w.Q_=null}M=M.create(w.Bw.B,w.r7,w.ud());if(M=M!=null&&M.observe()?M:null)w.Q_=M}; kBl=function(w,M,P){if(!w.PX||w.Cp==-1||M.L===-1||w.PX.L===-1)return 0;w=M.L-w.PX.L;return w>P?0:w}; R4_=function(w,M,P){if(w.Q_){w.Q_.CH();var u=w.Q_.S,X=u.X,U=X.B;if(u.K!=null){var f=u.C;w.Va=new g.gq(f.left-U.left,f.top-U.top)}U=w.Xd()?Math.max(u.B,u.G):u.B;f={};X.volume!==null&&(f.volume=X.volume);X=w.IR(u);w.PX=u;w.g$(U,M,P,!1,f,X,u.V)}}; n$R=function(w){if(w.PS&&w.xw){var M=Ys(w.r7,"od")==1,P=bR().B,u=w.xw,X=w.Q_?w.Q_.getName():"ns",U=w.Va,f=new g.rq(nj(P),P.getHeight());P=w.Xd();w={EDs:X,Va:U,PXO:f,Xd:P,Or:w.yO.Or,bV0:M};if(M=u.L){M.CH();X=M.S;U=X.X.B;var h=f=null;X.K!=null&&U&&(f=X.C,f=new g.gq(f.left-U.left,f.top-U.top),h=new g.rq(U.right-U.left,U.bottom-U.top));X=P?Math.max(X.B,X.G):X.B;P={EDs:M.getName(),Va:f,PXO:h,Xd:P,bV0:!1,Or:X}}else P=null;P&&GBp(u,w,P)}}; v$l=function(w,M,P){M&&(w.G6=M);P&&(w.dn=P)}; g.Vl=function(){}; g.m8=function(w){return{value:w,done:!1}}; s9F=function(){this.X=this.B=this.C=this.L=this.G=0}; Kcl=function(w){var M={};var P=g.ca()-w.G;M=(M.ptlt=P,M);(P=w.L)&&(M.pnk=P);(P=w.C)&&(M.pnc=P);(P=w.X)&&(M.pnmm=P);(w=w.B)&&(M.pns=w);return M}; bPy=function(){a$.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; ov=function(w){return sQ(w.volume)&&w.volume>0}; GI=function(w,M,P,u){P=P===void 0?!0:P;u=u===void 0?function(){return!0}:u; return function(X){var U=X[w];if(Array.isArray(U)&&u(X))return I34(U,M,P)}}; yl=function(w,M){return function(P){return M(P)?P[w]:void 0}}; Avx=function(w){return function(M){for(var P=0;P0?U[X-1]+1:0,u+1).reduce(function(f,h){return f+h},0)})}; g$y=function(){this.L=this.B=""}; Jv5=function(){}; qn=function(w,M){var P={};if(w!==void 0)if(M!=null)for(var u in M){var X=M[u];u in Object.prototype||X!=null&&(P[u]=typeof X==="function"?X(w):w[X])}else g.NK(P,w);return a4(OQ(new xJ,P))}; rvl=function(){var w={};this.L=(w.vs=[1,0],w.vw=[0,1],w.am=[2,2],w.a=[4,4],w.f=[8,8],w.bm=[16,16],w.b=[32,32],w.avw=[0,64],w.avs=[64,0],w.pv=[256,256],w.gdr=[0,512],w.p=[0,1024],w.r=[0,2048],w.m=[0,4096],w.um=[0,8192],w.ef=[0,16384],w.s=[0,32768],w.pmx=[0,16777216],w.mut=[33554432,33554432],w.umutb=[67108864,67108864],w.tvoff=[134217728,134217728],w);this.B={};for(var M in this.L)this.L[M][1]>0&&(this.B[M]=0);this.C=0}; Y6=function(w,M){var P=w.L[M],u=P[1];w.C+=P[0];u>0&&w.B[M]==0&&(w.B[M]=1)}; j9F=function(w){var M=g.WT(w.L),P=0,u;for(u in w.B)g.o$(M,u)&&w.B[u]==1&&(P+=w.L[u][1],w.B[u]=2);return P}; CCR=function(w){var M=0,P;for(P in w.B){var u=w.B[P];if(u==1||u==2)M+=w.L[P][1]}return M}; zI=function(){this.B=this.L=0}; TI=function(){WD.call(this);this.C=new Mn;this.OO=this.S=this.ys=0;this.V=-1;this.bW=new Mn;this.G=new Mn;this.B=new PD;this.K=this.X=-1;this.B3=new Mn;this.iW=2E3;this.xu=new zI;this.jL=new zI;this.Yu=new zI}; dR=function(w,M,P){var u=w.OO;ec||P||w.V==-1||(u+=M-w.V);return u}; tMl=function(){this.C=!1}; lZ=function(w,M){this.C=!1;this.X=w;this.S=M;this.G=0}; L4=function(w,M){lZ.call(this,w,M);this.j=[]}; xGx=function(){}; BD=function(){}; Ql=function(w,M,P,u){C5.call(this,w,M,P,u)}; k6=function(w,M,P){C5.call(this,null,w,M,P);this.V=w.isActive();this.j=0}; Rv=function(w){return[w.top,w.left,w.bottom,w.right]}; n4=function(w,M,P,u,X,U){U=U===void 0?new BD:U;HD.call(this,M,P,u);this.NC=X;this.Af=0;this.kQ={};this.iF=new rvl;this.uY={};this.P_="";this.Yu=null;this.fg=!1;this.B=[];this.vR=U.L();this.K=U.C();this.X=null;this.C=-1;this.eL=this.S=void 0;this.Lu=this.B3=0;this.Cu=-1;this.iW=this.jL=!1;this.ys=this.V=this.L=this.BV=this.cj=0;new PD;this.xu=this.OO=0;this.t9=-1;this.ke=0;this.j=g.e0;this.mN=[this.mE()];this.hD=2;this.Ko={};this.Ko.pause="p";this.Ko.resume="r";this.Ko.skip="s";this.Ko.mute="m";this.Ko.unmute= "um";this.Ko.exitfullscreen="ef";this.G=null;this.Z3=this.bW=!1;this.M7=Math.floor(Date.now()/1E3-1704067200);this.UO=0}; vD=function(w){w.hasCompleted=!0;w.ke!=0&&(w.ke=3)}; sT=function(w){return w===void 0?w:Number(w)?vY(w,3):0}; K4=function(w,M){return w.mN[M!=null&&MMath.max(1E4,w.C/3)?0:M);var P=w.j(w)||{};P=P.currentTime!==void 0?P.currentTime:w.B3;var u=P-w.B3,X=0;u>=0?(w.Lu+=M,w.xu+=Math.max(M-u,0),X=Math.min(u,w.Lu)):w.OO+=Math.abs(u);u!=0&&(w.Lu=0);w.t9==-1&&u>0&&(w.t9=Qj>=0?lR()-Qj:-1);w.B3=P;return X}; wRR=function(w,M){K5(w.K,function(P){return P.X==M.X})||w.K.push(M)}; iHH=function(w){var M=$6(w.k6().B,1);return bZ(w,M)}; bZ=function(w,M,P){return M>=15E3?!0:w.jL?(P===void 0?0:P)?!0:w.C>0?M>=w.C/2:w.Cu>0?M>=w.Cu:!1:!1}; MGy=function(w){var M=vY(w.yO.Or,2),P=w.iF.C,u=w.yO,X=K4(w),U=sT(X.X),f=sT(X.K),h=sT(u.volume),c=vY(X.j,2),Z=vY(X.Lu,2),S=vY(u.Or,2),H=vY(X.mN,2),p=vY(X.Cu,2);u=vY(u.Tj,2);var F=w.jX().clone().round();w=w.Q_&&w.Q_.C?(w.Q_?w.Q_.C:null).clone().round():null;X=h4(X,!1);return{cV$:M,qw:P,FZ:U,Cm:f,Ge:h,kR:c,Mj:Z,Or:S,e3:H,ya:p,Tj:u,position:F,nA:w,DR:X}}; uKH=function(w,M){PeR(w.B,M,function(){return{cV$:0,qw:void 0,FZ:-1,Cm:-1,Ge:-1,kR:-1,Mj:-1,Or:-1,e3:-1,ya:-1,Tj:-1,position:void 0,nA:void 0,DR:[]}}); w.B[M]=MGy(w)}; PeR=function(w,M,P){for(var u=w.length;u0?1:0;H.atos= uZ(Z.B);H.ssb=uZ(Z.Z3,!1);H.amtos=qbF(Z.B,!1);H.uac=w.cj;H.vpt=Z.C.B;S=="nio"&&(H.nio=1,H.avms="nio");H.gmm="4";H.gdr=bZ(w,Z.C.B,!0)?1:0;H.efpf=w.hD;if(S=="gsv"||S=="nis")S=w.Q_,S.j>0&&(H.nnut=S.j);H.tcm=OPM(w);H.nmt=w.OO;H.bt=w.xu;H.pst=w.t9;H.vpaid=w.S;H.dur=w.C;H.vmtime=w.B3;H.is=w.iF.C;w.B.length>=1&&(H.i0=w.B[0].qw,H.a0=[w.B[0].Ge],H.c0=[w.B[0].Or],H.ss0=[w.B[0].Tj],S=w.B[0].position,U=w.B[0].nA,H.p0=S?Rv(S):void 0,S&&U&&!vS(U,S)&&(H.cp0=Rv(U)));w.B.length>=2&&(H.i1=w.B[1].qw,H.a1=gR(w.B[1].FZ, w.B[1].Ge,w.B[1].Cm),H.c1=gR(w.B[1].kR,w.B[1].Or,w.B[1].Mj),H.ss1=gR(w.B[1].e3,w.B[1].Tj,w.B[1].ya),S=w.B[1].position,U=w.B[1].nA,H.p1=S?Rv(S):void 0,S&&U&&!vS(U,S)&&(H.cp1=Rv(U)),H.mtos1=w.B[1].DR);w.B.length>=3&&(H.i2=w.B[2].qw,H.a2=gR(w.B[2].FZ,w.B[2].Ge,w.B[2].Cm),H.c2=gR(w.B[2].kR,w.B[2].Or,w.B[2].Mj),H.ss2=gR(w.B[2].e3,w.B[2].Tj,w.B[2].ya),S=w.B[2].position,U=w.B[2].nA,H.p2=S?Rv(S):void 0,S&&U&&!vS(U,S)&&(H.cp2=Rv(U)),H.mtos2=w.B[2].DR);w.B.length>=4&&(H.i3=w.B[3].qw,H.a3=gR(w.B[3].FZ,w.B[3].Ge, w.B[3].Cm),H.c3=gR(w.B[3].kR,w.B[3].Or,w.B[3].Mj),H.ss3=gR(w.B[3].e3,w.B[3].Tj,w.B[3].ya),S=w.B[3].position,U=w.B[3].nA,H.p3=S?Rv(S):void 0,S&&U&&!vS(U,S)&&(H.cp3=Rv(U)),H.mtos3=w.B[3].DR);H.cs=CCR(w.iF);M&&(H.ic=j9F(w.iF),H.dvpt=Z.C.L,H.dvs=f4(Z.L,.5),H.dfvs=f4(Z.L,1),H.davs=f4(Z.B,.5),H.dafvs=f4(Z.B,1),P&&(Z.C.L=0,YbM(Z.L),YbM(Z.B)),w.BR()&&(H.dtos=Z.ys,H.dav=Z.S,H.dtoss=w.Af+1,P&&(Z.ys=0,Z.S=0,w.Af++)),H.dat=Z.G.L,H.dft=Z.B3.L,P&&(Z.G.L=0,Z.B3.L=0));H.ps=[h.G.width,h.G.height];H.bs=[nj(h.B),h.B.getHeight()]; H.scs=[h.X.width,h.X.height];H.dom=h.domain;w.BV&&(H.vds=w.BV);if(w.K.length>0||w.vR)M=g.LC(w.K),w.vR&&M.push(w.vR),H.pings=g.EV(M,function(p){return p.toString()}); M=g.EV(g.DP(w.K,function(p){return p.K()}),function(p){return p.getId()}); q1u(M);H.ces=M;w.L&&(H.vmer=w.L);w.V&&(H.vmmk=w.V);w.ys&&(H.vmiec=w.ys);H.avms=w.Q_?w.Q_.getName():"ns";w.Q_&&g.NK(H,w.Q_.ww());u?(H.c=vY(w.yO.Or,2),H.ss=vY(w.yO.Tj,2)):H.tth=lR()-fh5;H.mc=vY(Z.Lu,2);H.nc=vY(Z.j,2);H.mv=sT(Z.K);H.nv=sT(Z.X);H.lte=vY(w.FD,2);u=K4(w,X);h4(Z);H.qmtos=h4(u);H.qnc=vY(u.j,2);H.qmv=sT(u.K);H.qnv=sT(u.X);H.qas=u.X>0?1:0;H.qi=w.P_;H.avms||(H.avms="geo");H.psm=Z.xu.B;H.psv=Z.xu.getValue();H.psfv=Z.jL.getValue();H.psa=Z.Yu.getValue();c=vMy(c.r7);c.length&&(H.veid=c);w.G&&g.NK(H, Kcl(w.G));H.avas=w.AC();H.vs=w.k9();H.co=W0U(w);H.tm=Z.UO;H.tu=Z.eL;return H}; XRy=function(w,M){if(g.o$(hM_,M))return!0;var P=w.kQ[M];return P!==void 0?(w.kQ[M]=!0,!P):!1}; W0U=function(w){var M=w.UO.toString(10).padStart(2,"0");M=""+w.M7+M;w.UO<99&&w.UO++;return M}; ZHp=function(){this.B={};var w=cS();J4(this,w,document);var M=cE4();try{if("1"==M){for(var P=w.parent;P!=w.top;P=P.parent)J4(this,P,P.document);J4(this,w.top,w.top.document)}}catch(u){}}; cE4=function(){var w=document.documentElement;try{if(!hd(cS().top))return"2";var M=[],P=cS(w.ownerDocument);for(w=P;w!=P.top;w=w.parent)if(w.frameElement)M.push(w.frameElement);else break;return M&&M.length!=0?"1":"0"}catch(u){return"2"}}; J4=function(w,M,P){cD(P,"mousedown",function(){return S8_(w)},301); cD(M,"scroll",function(){return HHp(w)},302); cD(P,"touchmove",function(){return pRz(w)},303); cD(P,"mousemove",function(){return F0R(w)},304); cD(P,"keydown",function(){return EGF(w)},305)}; S8_=function(w){g.wd(w.B,function(M){M.C>1E5||++M.C})}; HHp=function(w){g.wd(w.B,function(M){M.B>1E5||++M.B})}; pRz=function(w){g.wd(w.B,function(M){M.B>1E5||++M.B})}; EGF=function(w){g.wd(w.B,function(M){M.L>1E5||++M.L})}; F0R=function(w){g.wd(w.B,function(M){M.X>1E5||++M.X})}; NYM=function(){this.B=[];this.L=[]}; rR=function(w,M){return g.Nj(w.B,function(P){return P.P_==M})}; VGl=function(w,M){return M?g.Nj(w.B,function(P){return P.Bw.Ey==M}):null}; mrx=function(w,M){return g.Nj(w.L,function(P){return P.H9()==2&&P.P_==M})}; C4=function(){var w=jv;return w.B.length==0?w.L:w.L.length==0?w.B:g.lh(w.L,w.B)}; oG1=function(w,M){w=M.H9()==1?w.B:w.L;var P=EE(w,function(u){return u==M}); return P!=-1?(w.splice(P,1),M.Q_&&M.Q_.unobserve(),M.dispose(),!0):!1}; GQp=function(w){var M=jv;if(oG1(M,w)){switch(w.H9()){case 0:var P=function(){return null}; case 2:P=function(){return mrx(M,w.P_)}; break;case 1:P=function(){return rR(M,w.P_)}}for(var u=P();u;u=P())oG1(M,u)}}; yEM=function(w){var M=jv;w=g.DP(w,function(P){return!VGl(M,P.Bw.Ey)}); M.B.push.apply(M.B,g.L(w))}; Dr5=function(w){var M=[];g.tx(w,function(P){K5(jv.B,function(u){return u.Bw.Ey===P.Bw.Ey&&u.P_===P.P_})||(jv.B.push(P),M.push(P))})}; t4=function(){this.B=this.L=null}; q8F=function(w,M){function P(u,X){M(u,X)} if(w.L==null)return!1;w.B=g.Nj(w.L,function(u){return u!=null&&u.IV()}); w.B&&(w.B.init(P)?cd2(w.B.B):M(w.B.B.uO(),w.B));return w.B!=null}; x6=function(w){w=Y8M(w);ta.call(this,w.length?w[w.length-1]:new Ja(l6,0));this.C=w;this.L=null}; Y8M=function(w){if(!w.length)return[];w=(0,g.DP)(w,function(P){return P!=null&&P.YJ()}); for(var M=1;MP.time?M:P},w[0])}; im=function(w){w=w===void 0?l6:w;ta.call(this,new Ja(w,2))}; MP=function(){var w=lh4();Ja.call(this,l6.top,w,"geo")}; lh4=function(){iR();var w=bR();return w.C||w.L?0:2}; L0H=function(){}; Ph=function(){this.done=!1;this.B={kf:0,CB:0,j8u:0,FR:0,n4:-1,XS:0,yw:0,Ws:0,pv0:0};this.G=null;this.K=!1;this.C=null;this.j=0;this.L=new ge(this)}; Xa=function(){var w=um;w.K||(w.K=!0,eM4(w,function(){return w.X.apply(w,g.L(g.Kz.apply(0,arguments)))}),w.X())}; BY_=function(){ma(L0H);var w=ma(t4);w.B!=null&&w.B.B?cd2(w.B.B):bR().update(l6)}; $X=function(w,M,P){if(!w.done&&(w.L.cancel(),M.length!=0)){w.C=null;try{BY_();var u=lR();iR().G=u;if(ma(t4).B!=null)for(var X=0;X=0?lR()-L5:-1,h=lR();X.B.n4==-1&&(f=h);var c=bR(),Z=iR(),S=zR(Z.r7),H=C4();try{if(H.length>0){var p=c.B;p&&(S.bs=[nj(p),p.getHeight()]);var F=c.G;F&&(S.ps=[F.width,F.height]);l6.screen&&(S.scs=[l6.screen.width,l6.screen.height])}else S.url=encodeURIComponent(l6.location.href.substring(0,512)),U.referrer&&(S.referrer=encodeURIComponent(U.referrer.substring(0,512))); S.tt=f;S.pt=L5;S.bin=Z.L;l6.google_osd_load_pub_page_exp!==void 0&&(S.olpp=l6.google_osd_load_pub_page_exp);S.deb=[1,X.B.kf,X.B.CB,X.B.FR,X.B.n4,0,X.L.L,X.B.XS,X.B.yw,X.B.Ws,X.B.pv0,-1].join(";");S.tvt=kQ1(X,h);c.L&&(S.inapp=1);if(l6!==null&&l6!=l6.top){H.length>0&&(S.iframe_loc=encodeURIComponent(l6.location.href.substring(0,512)));var E=c.j;S.is=[nj(E),E.getHeight()]}}catch(y){S.error=1}um.C=S}p=g.Fm(um.C);F=iR().B;Ys(F.C,"prf")==1?(E=new aP,X=F.B,U=0,X.B>-1&&(U=X.C.B.now()-X.B),E=U8(E,1,fP(X.X+ U),0),X=F.B,E=U8(E,5,Z3(X.B>-1?X.L+1:X.L),0),E=U8(E,2,o9(F.L.B.C()),"0"),E=U8(E,3,o9(F.L.B.L()),"0"),F=U8(E,4,o9(F.L.B.B()),"0"),E={},F=(E.pf=g.Yw(F.C()),E)):F={};g.NK(p,F);g.NK(M,u,P,p,w())}])}; vGu=function(){var w=nGy||l6;if(!w)return"";var M=[];if(!w.location||!w.location.href)return"";M.push("url="+encodeURIComponent(w.location.href.substring(0,512)));w.document&&w.document.referrer&&M.push("referrer="+encodeURIComponent(w.document.referrer.substring(0,512)));return M.join("&")}; Uv=function(){var w="youtube.player.web_20250629_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250629_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250629_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250629_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),M;if(((M=w)==null?void 0:M.length)==2)return w[1];w="youtube.player.web_20250629_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var P;return((P=w)==null?void 0:P.length)==3?"20"+w[1]+w[2]:null}; sy4=function(){return"av.default_js".includes("ima_html5_sdk")?{gr:"ima",aN:null}:"av.default_js".includes("ima_native_sdk")?{gr:"nima",aN:null}:"av.default_js".includes("admob-native-video-javascript")?{gr:"an",aN:null}:"youtube.player.web_20250629_21_RC00".includes("cast_js_sdk")?{gr:"cast",aN:Uv()}:"youtube.player.web_20250629_21_RC00".includes("youtube.player.web")?{gr:"yw",aN:Uv()}:"youtube.player.web_20250629_21_RC00".includes("outstream_web_client")?{gr:"out",aN:Uv()}:"youtube.player.web_20250629_21_RC00".includes("drx_rewarded_web")? {gr:"r",aN:Uv()}:"youtube.player.web_20250629_21_RC00".includes("gam_native_web_video")?{gr:"n",aN:Uv()}:"youtube.player.web_20250629_21_RC00".includes("admob_interstitial_video")?{gr:"int",aN:Uv()}:{gr:"j",aN:null}}; h0=function(w,M){var P={sv:"967"};fh!==null&&(P.v=fh);P.cb=K04;P.nas=jv.B.length;P.msg=w;M!==void 0&&(w=bHH(M))&&(P.e=Wh[w]);return P}; ch=function(w){return dd(w,"custom_metric_viewable")}; bHH=function(w){var M=ch(w)?"custom_metric_viewable":w.toLowerCase();return ZN(Iv,function(P){return P==M})}; Ihy=function(){this.B=void 0;this.L=!1;this.C=0;this.X=-1;this.G="tos"}; JEp=function(w){try{var M=w.split(",");return M.length>g.WT(AE_).length?null:VM(M,function(P,u){u=u.toLowerCase().split("=");if(u.length!=2||gG4[u[0]]===void 0||!gG4[u[0]](u[1]))throw Error("Entry ("+u[0]+", "+u[1]+") is invalid.");P[u[0]]=u[1];return P},{})}catch(P){return null}}; rEy=function(w,M){if(w.B==void 0)return 0;switch(w.G){case "mtos":return w.L?UT(M.B,w.B):UT(M.L,w.B);case "tos":return w.L?$6(M.B,w.B):$6(M.L,w.B)}return 0}; Zx=function(w,M,P,u){lZ.call(this,M,u);this.j=w;this.V=P}; SV=function(){}; Hh=function(w){lZ.call(this,"fully_viewable_audible_half_duration_impression",w)}; ph=function(w){this.B=w}; Fa=function(w,M){lZ.call(this,w,M)}; Ev=function(w){L4.call(this,"measurable_impression",w)}; NP=function(){ph.apply(this,arguments)}; VZ=function(w,M,P){k6.call(this,w,M,P)}; mQ=function(w){w=w===void 0?l6:w;ta.call(this,new Ja(w,2))}; oL=function(w,M,P){k6.call(this,w,M,P)}; GF=function(w){w=w===void 0?l6:w;ta.call(this,new Ja(w,2))}; yZ=function(){Ja.call(this,l6,2,"mraid");this.xu=0;this.Lu=this.mN=!1;this.j=null;this.L=MAR(this.C);this.X.B=new RU(0,0,0,0);this.UO=!1}; Dx=function(w,M,P){w.tZ("addEventListener",M,P)}; xrz=function(w){iR().X=!!w.tZ("isViewable");Dx(w,"viewableChange",jyp);w.tZ("getState")==="loading"?Dx(w,"ready",Ceu):tGz(w)}; tGz=function(w){typeof w.L.qr.AFMA_LIDAR==="string"?(w.mN=!0,OH1(w)):(w.L.compatibility=3,w.j="nc",w.fail("w"))}; OH1=function(w){w.Lu=!1;var M=Ys(iR().r7,"rmmt")==1,P=!!w.tZ("isViewable");(M?!P:1)&&Gd().setTimeout(T_(524,function(){w.Lu||(ahM(w),de(540,Error()),w.j="mt",w.fail("w"))}),500); w9x(w);Dx(w,w.L.qr.AFMA_LIDAR,i92)}; w9x=function(w){var M=Ys(iR().r7,"sneio")==1,P=w.L.qr.AFMA_LIDAR_EXP_1!==void 0,u=w.L.qr.AFMA_LIDAR_EXP_2!==void 0;(M=M&&u)&&(w.L.qr.AFMA_LIDAR_EXP_2=!0);P&&(w.L.qr.AFMA_LIDAR_EXP_1=!M)}; ahM=function(w){w.tZ("removeEventListener",w.L.qr.AFMA_LIDAR,i92);w.mN=!1}; M5_=function(w,M){if(w.tZ("getState")==="loading")return new g.rq(-1,-1);M=w.tZ(M);if(!M)return new g.rq(-1,-1);w=parseInt(M.width,10);M=parseInt(M.height,10);return isNaN(w)||isNaN(M)?new g.rq(-1,-1):new g.rq(w,M)}; Ceu=function(){try{var w=ma(yZ);w.tZ("removeEventListener","ready",Ceu);tGz(w)}catch(M){de(541,M)}}; i92=function(w,M){try{var P=ma(yZ);P.Lu=!0;var u=w?new RU(w.y,w.x+w.width,w.y+w.height,w.x):new RU(0,0,0,0);var X=lR(),U=Aa();var f=new kJ(X,U,P);f.B=u;f.volume=M;P.Nc(f)}catch(h){de(542,h)}}; jyp=function(w){var M=iR(),P=ma(yZ);w&&!M.X&&(M.X=!0,P.UO=!0,P.j&&P.fail("w",!0))}; qP=function(){this.isInitialized=!1;this.B=this.L=null;var w={};this.j=(w.start=this.AE,w.firstquartile=this.Ne,w.midpoint=this.zo,w.thirdquartile=this.bA,w.complete=this.V1,w.error=this.nW,w.pause=this.iK,w.resume=this.NB,w.skip=this.H4,w.viewable_impression=this.Ac,w.mute=this.S4,w.unmute=this.S4,w.fullscreen=this.oe,w.exitfullscreen=this.iA,w.fully_viewable_audible_half_duration_impression=this.Ac,w.measurable_impression=this.Ac,w.abandon=this.iK,w.engagedview=this.Ac,w.impression=this.Ac,w.creativeview= this.Ac,w.progress=this.S4,w.custom_metric_viewable=this.Ac,w.bufferstart=this.iK,w.bufferfinish=this.NB,w.audio_measurable=this.Ac,w.audio_audible=this.Ac,w);w={};this.V=(w.overlay_resize=this.ZB,w.abandon=this.sM,w.close=this.sM,w.collapse=this.sM,w.overlay_unmeasurable_impression=function(M){return A4(M,"overlay_unmeasurable_impression",Aa())},w.overlay_viewable_immediate_impression=function(M){return A4(M,"overlay_viewable_immediate_impression",Aa())},w.overlay_unviewable_impression=function(M){return A4(M, "overlay_unviewable_impression",Aa())},w.overlay_viewable_end_of_session_impression=function(M){return A4(M,"overlay_viewable_end_of_session_impression",Aa())},w); iR().L=3;Pju(this);this.C=null}; YX=function(w,M,P,u){w=w.Tq(null,u,!0,M);w.X=P;yEM([w]);return w}; uSz=function(w,M,P){LyH(M);var u=w.B;g.tx(M,function(X){var U=g.EV(X.criteria,function(f){var h=JEp(f);if(h==null)f=null;else if(f=new Ihy,h.visible!=null&&(f.B=h.visible/100),h.audible!=null&&(f.L=h.audible==1),h.time!=null){var c=h.timetype=="mtos"?"mtos":"tos",Z=bzz(h.time,"%")?"%":"ms";h=parseInt(h.time,10);Z=="%"&&(h/=100);f.setTime(h,Z,c)}return f}); K5(U,function(f){return f==null})||wRR(P,new Zx(X.id,X.event,U,u))})}; X9u=function(){var w=[],M=iR();w.push(ma(MP));Ys(M.r7,"mvp_lv")&&w.push(ma(yZ));M=[new mQ,new GF];M.push(new x6(w));M.push(new im(l6));return M}; $sF=function(w){if(!w.isInitialized){w.isInitialized=!0;try{var M=lR(),P=iR(),u=bR();L5=M;P.C=79463069;w.L!=="o"&&(nGy=XTM(l6));if(F4p()){um.B.CB=0;um.B.n4=lR()-M;var X=X9u(),U=ma(t4);U.L=X;q8F(U,function(){zF()})?um.done||(Qyu(),re(U.B.B,w),Xa()):u.C?zF():Xa()}else TF=!0}catch(f){throw jv.reset(),f; }}}; lm=function(w){um.L.cancel();dT=w;um.done=!0}; RL=function(w){if(w.L)return w.L;var M=ma(t4).B;if(M)switch(M.getName()){case "nis":w.L="n";break;case "gsv":w.L="m"}w.L||(w.L="h");return w.L}; nh=function(w,M,P){if(w.B==null)return M.BV|=4,!1;w=Usy(w.B,P,M);M.BV|=w;return w==0}; zF=function(){var w=[new im(l6)],M=ma(t4);M.L=w;q8F(M,function(){lm("i")})?um.done||(Qyu(),Xa()):lm("i")}; fm2=function(w,M){if(!w.fg){var P=A4(w,"start",Aa());P=w.NC.B(P).B;var u={id:"lidarv"};u.r=M;u.sv="967";fh!==null&&(u.v=fh);cY(P,function(X,U){return u[X]=X=="mtos"||X=="tos"?U:encodeURIComponent(U)}); M=vGu();cY(M,function(X,U){return u[X]=encodeURIComponent(U)}); M="//pagead2.googlesyndication.com/pagead/gen_204?"+a4(OQ(new xJ,u));mG5(M);w.fg=!0}}; vh=function(w,M,P){$X(um,[w],!Aa());uKH(w,P);P!=4&&PeR(w.mN,P,w.mE);return A4(w,M,Aa())}; Pju=function(w){RMp(function(){var M=Wkz();w.L!=null&&(M.sdk=w.L);var P=ma(t4);P.B!=null&&(M.avms=P.B.getName());return M})}; hQ2=function(w,M,P,u){var X=VGl(jv,P);X!==null&&X.P_!==M&&(w.Ot(X),X=null);X||(M=w.Tq(P,lR(),!1,M),jv.L.length==0&&(iR().C=79463069),Dr5([M]),X=M,X.X=RL(w),u&&(X.Yu=u));return X}; cAu=function(w,M){var P=w[M];P!==void 0&&P>0&&(w[M]=Math.floor(P*1E3))}; Wkz=function(){var w=bR(),M={},P={},u={};return Object.assign({},(M.sv="967",M),fh!==null&&(P.v=fh,P),(u["if"]=w.C?"1":"0",u.nas=String(jv.B.length),u))}; Kh=function(w){lZ.call(this,"audio_audible",w)}; bm=function(w){L4.call(this,"audio_measurable",w)}; IL=function(){ph.apply(this,arguments)}; A0=function(){}; Z9y=function(w){this.B=w}; Usy=function(w,M,P){w=w.L();if(typeof w==="function"){var u={};var X={};u=Object.assign({},fh!==null&&(u.v=fh,u),(X.sv="967",X.cb=K04,X.e=SPR(M),X));X=A4(P,M,Aa());g.NK(u,X);P.uY[M]=X;u=P.H9()==2?VM2(u).join("&"):P.NC.B(u).B;try{return w(P.P_,u,M),0}catch(U){return 2}}else return 1}; SPR=function(w){var M=ch(w)?"custom_metric_viewable":w;w=ZN(Iv,function(P){return P==M}); return Wh[w]}; gT=function(){qP.call(this);this.K=null;this.G=!1;this.X="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; H9F=function(w,M,P){P=P.opt_configurable_tracking_events;w.B!=null&&Array.isArray(P)&&uSz(w,P,M)}; p92=function(w,M,P){var u=rR(jv,M);u||(u=P.opt_nativeTime||-1,u=YX(w,M,RL(w),u),P.opt_osdId&&(u.Yu=P.opt_osdId));return u}; Fkx=function(w,M,P){var u=rR(jv,M);u||(u=YX(w,M,"n",P.opt_nativeTime||-1));return u}; E8p=function(w,M){var P=rR(jv,M);P||(P=YX(w,M,"h",-1));return P}; NQH=function(w){iR();switch(RL(w)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; o82=function(w,M,P,u){P=P===void 0?{}:P;var X={};g.NK(X,{opt_adElement:void 0,opt_fullscreen:void 0},P);var U=w.Un(M,P);P=U?U.NC:w.YP();if(X.opt_bounds)return P.B(h0("ol",u));if(u!==void 0)if(bHH(u)!==void 0)if(TF)w=h0("ue",u);else if($sF(w),dT=="i")w=h0("i",u),w["if"]=0;else if(M=w.Un(M,X)){b:{dT=="i"&&(M.bJ=!0);U=X.opt_fullscreen;U!==void 0&&p4(M,!!U);var f;if(U=!bR().L)(U=eF(g.RK(),"CrKey")&&!(eF(g.RK(),"CrKey")&&eF(g.RK(),"SmartSpeaker"))||eF(g.RK(),"PlayStation")||eF(g.RK(),"Roku")||UqH()||eF(g.RK(), "Xbox"))||(U=g.RK(),U=eF(U,"AppleTV")||eF(U,"Apple TV")||eF(U,"CFNetwork")||eF(U,"tvOS")),U||(U=g.RK(),U=eF(U,"sdk_google_atv_x86")||eF(U,"Android TV")),U=!U;U&&(Gd(),U=XP(I4)===0);if(f=U){switch(M.H9()){case 1:fm2(M,"pv");break;case 2:w.E3(M)}lm("pv")}U=u.toLowerCase();if(f=!f)f=Ys(iR().r7,"ssmol")&&U==="loaded"?!1:g.o$(V5l,U);if(f&&M.ke==0){dT!="i"&&(um.done=!1);f=X!==void 0?X.opt_nativeTime:void 0;Qj=f=typeof f==="number"?f:lR();M.PS=!0;var h=Aa();M.ke=1;M.kQ={};M.kQ.start=!1;M.kQ.firstquartile= !1;M.kQ.midpoint=!1;M.kQ.thirdquartile=!1;M.kQ.complete=!1;M.kQ.resume=!1;M.kQ.pause=!1;M.kQ.skip=!1;M.kQ.mute=!1;M.kQ.unmute=!1;M.kQ.viewable_impression=!1;M.kQ.measurable_impression=!1;M.kQ.fully_viewable_audible_half_duration_impression=!1;M.kQ.fullscreen=!1;M.kQ.exitfullscreen=!1;M.Af=0;h||(M.k6().V=f);$X(um,[M],!h)}(f=M.Ko[U])&&Y6(M.iF,f);Ys(iR().r7,"fmd")||g.o$(ms5,U)&&M.vR&&M.vR.L(M,null);switch(M.H9()){case 1:var c=ch(U)?w.j.custom_metric_viewable:w.j[U];break;case 2:c=w.V[U]}if(c&&(u=c.call(w, M,X,u),Ys(iR().r7,"fmd")&&g.o$(ms5,U)&&M.vR&&M.vR.L(M,null),u!==void 0)){X=h0(void 0,U);g.NK(X,u);u=X;break b}u=void 0}M.ke==3&&w.Ot(M);w=u}else w=h0("nf",u);else w=void 0;else TF?w=h0("ue"):U?(w=h0(),g.NK(w,$rR(U,!0,!1,!1))):w=h0("nf");return typeof w==="string"?P.B():P.B(w)}; GCM=function(w,M){M&&(w.X=M)}; yAU=function(w){var M={};return M.viewability=w.B,M.googleViewability=w.L,M}; Dsx=function(w,M,P){P=P===void 0?{}:P;w=o82(ma(gT),M,P,w);return yAU(w)}; J0=function(w){var M=g.Kz.apply(1,arguments).filter(Boolean).join("&");if(!M)return w;var P=w.match(/[?&]adurl=/);return P?w.slice(0,P.index+1)+M+"&"+w.slice(P.index+1):w+(w.indexOf("?")<0?"?":"&")+M}; rT=function(w,M){return M?"&"+w+"="+encodeURIComponent(M):""}; qP_=function(w){var M=w.url;w=w.CJ9;this.L=M;this.X=w;this.C=(new Date).getTime()-17040672E5;this.B={};for(var P=/[?&]([^&=]+)=([^&]*)/g;w=P.exec(M);)this.B[w[1]]=w[2]}; YPR=function(w){w=w.X;if(!w)return"";var M=rT("uap",w.platform)+rT("uapv",w.platformVersion)+rT("uafv",w.uaFullVersion)+rT("uaa",w.architecture)+rT("uam",w.model)+rT("uab",w.bitness);w.fullVersionList&&(M+="&uafvl="+encodeURIComponent(w.fullVersionList.map(function(P){return encodeURIComponent(P.brand)+";"+encodeURIComponent(P.version)}).join("|"))); w.wow64!=null&&(M+="&uaw="+Number(w.wow64));return M.slice(1)}; dsx=function(w,M,P,u,X){var U=window;var f=f===void 0?!1:f;var h;P?h=(f===void 0?0:f)?"//ep1.adtrafficquality.google/bg/"+LQ(P)+".js":"//pagead2.googlesyndication.com/bg/"+LQ(P)+".js":h="";f=f===void 0?!1:f;P=U.document;var c={};M&&(c._scs_=M);c._bgu_=h;c._bgp_=u;c._li_="v_h.3.0.0.0";X&&(c._upb_=X);(M=U.GoogleTyFxhY)&&typeof M.push=="function"||(M=U.GoogleTyFxhY=[]);M.push(c);M=PS(P).createElement("SCRIPT");M.type="text/javascript";M.async=!0;w=(f===void 0?0:f)?LU4(zQy,LQ(w)+".js"):LU4(TQR,LQ(w)+ ".js");g.o7(M,w);(U=(U.GoogleTyFxhYEET||{})[M.src])?U():P.getElementsByTagName("head")[0].appendChild(M)}; lmu=function(){try{var w,M;return!!((w=window)==null?0:(M=w.top)==null?0:M.location.href)&&!1}catch(P){return!0}}; jV=function(w,M,P){P=P===void 0?Error():P;var u=Error.call(this);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.code=w;M+=":";P instanceof Error?(this.message=M+P.message,this.stack=P.stack||""):(this.message=M+String(P),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; t0=function(){var w=LkF();w=w===void 0?"bevasrsg":w;return new Promise(function(M){var P=window===window.top?window:lmu()?window:window.top,u=P[w],X;((X=u)==null?0:X.bevasrs)?M(new Ch(u.bevasrs)):(u||(u={},u=(u.nqfbel=[],u),P[w]=u),u.nqfbel.push(function(U){M(new Ch(U))}))})}; eQx=function(w){var M={c:w.FW,e:w.fU,mc:w.B2,me:w.Le};w.RA&&(M.co={c:w.RA.m5,a:w.RA.KB,s:w.RA.aJ});return M}; xX=function(w){g.v.call(this);this.wpc=w}; Ch=function(w){g.v.call(this);var M=this;this.Aw=w;this.C="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.L=void 0;this.Cy=this.Aw.p;this.X=this.rf.bind(this);this.addOnDisposeCallback(function(){return void BQ1(M)})}; QPy=function(w){var M;return g.n(function(P){if(P.L==1){if(!w.Aw.wpc)throw new jV(30,"NWA");return w.B?P.return(w.B):g.B(P,w.Aw.wpc(),2)}M=P.B;w.B=new xX(M);return P.return(w.B)})}; BQ1=function(w){w.L!==void 0&&(w.C.forEach(function(M){var P;(P=w.L)==null||P.removeEventListener(M,w.X)}),w.L=void 0)}; kC2=function(w){var M=M===void 0?49:M;var P=[];Nr(w,Ov,6).forEach(function(u){YG(u,2)<=M&&P.push(YG(u,1))}); return P}; RQu=function(w){var M=M===void 0?49:M;var P=[];Nr(w,Ov,6).forEach(function(u){YG(u,2)>M&&P.push(YG(u,1))}); return P}; n8M=function(w){w.then(function(){},function(){})}; aL=function(){g.v.apply(this,arguments);this.X=1;this[v85]=this.dispose}; wn=function(w){return{fieldType:2,fieldName:w}}; g.iY=function(w){return{fieldType:3,fieldName:w}}; sPM=function(w){this.B=w;w.HU("/client_streamz/bg/frs",g.iY("mk"))}; KkH=function(w){this.B=w;w.HU("/client_streamz/bg/wrl",g.iY("mn"),wn("ac"),wn("sc"),g.iY("rk"),g.iY("mk"))}; b9M=function(w){this.B=w;w.fX("/client_streamz/bg/ec",g.iY("en"),g.iY("mk"))}; Im_=function(w){this.B=w;w.HU("/client_streamz/bg/el",g.iY("en"),g.iY("mk"))}; AAy=function(w){this.B=w;w.fX("/client_streamz/bg/cec",wn("ec"),g.iY("mk"))}; g8u=function(w){this.B=w;w.fX("/client_streamz/bg/po/csc",wn("cs"),g.iY("mk"))}; JA1=function(w){this.B=w;w.fX("/client_streamz/bg/po/ctav",g.iY("av"),g.iY("mk"))}; rAp=function(w){this.B=w;w.fX("/client_streamz/bg/po/cwsc",g.iY("su"),g.iY("mk"))}; jPF=function(w){this.q0=bC(w)}; CjM=function(w,M){return dEM(w,M,w1y)}; M2=function(w){this.q0=bC(w)}; PW=function(w){this.q0=bC(w)}; uY=function(w){this.q0=bC(w)}; XH=function(w){this.q0=bC(w)}; $4=function(w){this.q0=bC(w)}; UJ=function(w){this.q0=bC(w)}; t5_=function(w){this.q0=bC(w)}; am4=function(w){var M=new UJ;M=BR(M,1,w.L);var P=xsl(w);M=dEM(M,P,ZQz);P=[];for(var u=[],X=g.G(w.B.keys()),U=X.next();!U.done;U=X.next())u.push(U.value.split(","));for(X=0;X>>31)&4294967295;H=X[0];var E=X[1],y=X[2],q=X[3],d=X[4];for(F=0;F<80;F++){if(F<40)if(F<20){var l=q^E&(y^q);var e=1518500249}else l=E^y^q,e=1859775393;else F<60?(l=E&y|q&(E|y),e=2400959708):(l=E^y^q,e=3395469782);l=((H<<5|H>>>27)&4294967295)+l+d+e+p[F]&4294967295;d=q;q=y;y=(E<<30|E>>>2)&4294967295;E=H;H=l}X[0]=X[0]+H&4294967295;X[1]=X[1]+E&4294967295;X[2]= X[2]+y&4294967295;X[3]=X[3]+q&4294967295;X[4]=X[4]+d&4294967295} function P(H,p){if(typeof H==="string"){H=unescape(encodeURIComponent(H));for(var F=[],E=0,y=H.length;E=56;F--)U[F]=p&255,p>>>=8;M(U);for(F=p=0;F<5;F++)for(var E=24;E>=0;E-=8)H[p++]=X[F]>>E&255;return H} for(var X=[],U=[],f=[],h=[128],c=1;c<64;++c)h[c]=0;var Z,S;w();return{reset:w,update:P,digest:u,Tr:function(){for(var H=u(),p="",F=0;F1)));f=f.next)X||(U=f);X&&(P.B==0&&u==1?CRH(P,M):(U?(u=U,u.next==P.X&&(P.X=u),u.next=u.next.next):tcH(P),xNz(P,X,3,M)))}w.C=null}else DG(w,3,M)}; db=function(w,M){w.L||w.B!=2&&w.B!=3||O5z(w);w.X?w.X.next=M:w.L=M;w.X=M}; atz=function(w,M,P,u){var X=Yv(null,null,null);X.B=new g.qa(function(U,f){X.C=M?function(h){try{var c=M.call(u,h);U(c)}catch(Z){f(Z)}}:U; X.L=P?function(h){try{var c=P.call(u,h);c===void 0&&h instanceof Ly?f(h):U(c)}catch(Z){f(Z)}}:f}); X.B.C=w;db(w,X);return X.B}; DG=function(w,M,P){w.B==0&&(w===P&&(M=3,P=new TypeError("Promise cannot resolve to itself")),w.B=1,gJU(P,w.wvK,w.jkK,w)||(w.j=P,w.B=M,w.C=null,O5z(w),M!=3||P instanceof Ly||wD_(w,P)))}; gJU=function(w,M,P,u){if(w instanceof g.qa)return j45(w,M,P,u),!0;if(w)try{var X=!!w.$goog_Thenable}catch(f){X=!1}else X=!1;if(X)return w.then(M,P,u),!0;if(g.XE(w))try{var U=w.then;if(typeof U==="function")return i4u(w,U,M,P,u),!0}catch(f){return P.call(u,f),!0}return!1}; i4u=function(w,M,P,u,X){function U(c){h||(h=!0,u.call(X,c))} function f(c){h||(h=!0,P.call(X,c))} var h=!1;try{M.call(w,f,U)}catch(c){U(c)}}; O5z=function(w){w.K||(w.K=!0,g.Vk(w.Rl,w))}; tcH=function(w){var M=null;w.L&&(M=w.L,w.L=M.next,M.next=null);w.L||(w.X=null);return M}; xNz=function(w,M,P,u){if(P==3&&M.L&&!M.X)for(;w&&w.G;w=w.C)w.G=!1;if(M.B)M.B.C=null,Mvy(M,P,u);else try{M.X?M.C.call(M.context):Mvy(M,P,u)}catch(X){PZl.call(null,X)}RZl(AaM,M)}; Mvy=function(w,M,P){M==2?w.C.call(w.context,P):w.L&&w.L.call(w.context,P)}; wD_=function(w,M){w.G=!0;g.Vk(function(){w.G&&PZl.call(null,M)})}; Ly=function(w){Ha.call(this,w)}; g.e7=function(w,M){g.WX.call(this);this.Hb=w||1;this.u8=M||g.aF;this.TP=(0,g.fC)(this.KF$,this);this.dI=g.ca()}; g.BX=function(w,M,P){if(typeof w==="function")P&&(w=(0,g.fC)(w,P));else if(w&&typeof w.handleEvent=="function")w=(0,g.fC)(w.handleEvent,w);else throw Error("Invalid listener argument");return Number(M)>2147483647?-1:g.aF.setTimeout(w,M||0)}; Qk=function(w,M){var P=null;return(new g.qa(function(u,X){P=g.BX(function(){u(M)},w); P==-1&&X(Error("Failed to schedule timer."))})).NS(function(u){g.aF.clearTimeout(P); throw u;})}; g.kv=function(w){g.v.call(this);this.j=w;this.X=0;this.C=100;this.G=!1;this.L=new Map;this.K=new Set;this.flushInterval=3E4;this.B=new g.e7(this.flushInterval);this.B.listen("tick",this.Ul,!1,this);g.b(this,this.B)}; uup=function(w){w.B.enabled||w.B.start();w.X++;w.X>=w.C&&w.Ul()}; XD_=function(w,M){return w.K.has(M)?void 0:w.L.get(M)}; $np=function(w){for(var M=0;M2?w.B.statusText:""}catch(P){M=""}w.X=M+" ["+w.getStatus()+"]";E6H(w)}}finally{bO(w)}}}; bO=function(w,M){if(w.B){w.K&&(clearTimeout(w.K),w.K=null);var P=w.B;w.B=null;M||w.dispatchEvent("ready");try{P.onreadystatechange=null}catch(u){}}}; gb=function(w){var M=w.getStatus();a:switch(M){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var P=!0;break a;default:P=!1}if(!P){if(M=M===0)w=g.UQ(String(w.V))[1]||null,!w&&g.aF.self&&g.aF.self.location&&(w=g.aF.self.location.protocol.slice(0,-1)),M=!mnl.test(w?w.toLowerCase():"");P=M}return P}; g.An=function(w){return w.B?w.B.readyState:0}; g.Jn=function(w){try{return w.B?w.B.responseText:""}catch(M){return""}}; g.rb=function(w){try{if(!w.B)return null;if("response"in w.B)return w.B.response;switch(w.ys){case "":case "text":return w.B.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in w.B)return w.B.mozResponseArrayBuffer}return null}catch(M){return null}}; g.o61=function(w){var M={};w=(w.B&&g.An(w)>=2?w.B.getAllResponseHeaders()||"":"").split("\r\n");for(var P=0;P>1,M),mv(w,w.length>>1)]}; MVl=function(w){var M=g.G(ihF(w,oo));w=M.next().value;M=M.next().value;return w.toString(16)+M.toString(16)}; Pmu=function(w,M){var P=ihF(M);w=new Uint32Array(w.buffer);M=w[0];var u=g.G(P);P=u.next().value;u=u.next().value;for(var X=1;X>>8|f<<24,f+=U|0,f^=h+38293,U=U<<3|U>>>29,U^=f,c=c>>>8|c<<24,c+=h|0,c^=Z+38293,h=h<<3|h>>>29,h^=c;U=[U,f];w[X]^=U[0];X+1=P?(globalThis.sessionStorage.removeItem(w),["e"]):["a",new Uint8Array(u.buffer,M+4)]}; GN=function(w,M,P){P=P===void 0?[]:P;this.maxItems=w;this.B=M===void 0?0:M;this.L=P}; $P4=function(w){var M=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!M)return new GN(w);var P=M.split(",");if(P.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new GN(w);M=P.slice(1);M.length===1&&M[0]===""&&(M=[]);P=Number(P[0]);return isNaN(P)||P<0||P>M.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new GN(w)):new GN(w,P,M)}; UP5=function(w,M){this.logger=M;try{var P=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(u){P=!1}P&&(this.index=$P4(w))}; fxl=function(w,M,P,u,X){var U=w.index?aV(w.logger,function(){return uau(w.index,MVl(M),P,u,X)},"W"):"u"; w.logger.Ew(U)}; WQU=function(w,M,P){var u=g.G(w.index?aV(w.logger,function(){return Xhy(MVl(M),P)},"R"):["u"]),X=u.next().value; u=u.next().value;w.logger.Ia(X);return u}; Zhz=function(w){function M(){P-=u;P-=X;P^=X>>>13;u-=X;u-=P;u^=P<<8;X-=P;X-=u;X^=u>>>13;P-=u;P-=X;P^=X>>>12;u-=X;u-=P;u^=P<<16;X-=P;X-=u;X^=u>>>5;P-=u;P-=X;P^=X>>>3;u-=X;u-=P;u^=P<<10;X-=P;X-=u;X^=u>>>15} w=hOz(w);for(var P=2654435769,u=2654435769,X=314159265,U=w.length,f=U,h=0;f>=12;f-=12,h+=12)P+=yK(w,h),u+=yK(w,h+4),X+=yK(w,h+8),M();X+=U;switch(f){case 11:X+=w[h+10]<<24;case 10:X+=w[h+9]<<16;case 9:X+=w[h+8]<<8;case 8:u+=w[h+7]<<24;case 7:u+=w[h+6]<<16;case 6:u+=w[h+5]<<8;case 5:u+=w[h+4];case 4:P+=w[h+3]<<24;case 3:P+=w[h+2]<<16;case 2:P+=w[h+1]<<8;case 1:P+=w[h+0]}M();return c0p.toString(X)}; hOz=function(w){for(var M=[],P=0;P>7,w.error.code]);u.set(P,4);return u}; e6=function(w,M,P){Di.call(this,w);this.X=M;this.clientState=P;this.B="S";this.L="q"}; LZ=function(w){return globalThis.TextEncoder?(new TextEncoder).encode(w):g.qq(w)}; phz=function(w,M,P){return w instanceof F1?b4z(w,P,M,1):w.ym(P)}; QK=function(w){g.v.call(this);var M=this;this.C=new g.hC;this.X=0;this.L=void 0;this.state=2;this.Aw=w.Aw;this.ED=w.ED;this.tW=Object.assign({},FQp,w.tW||{});this.logger=w.Aw.rA();var P;this.onError=(P=w.onError)!=null?P:function(){}; this.Aa=w.Aa||!1;if(EXl(w)){var u=this.Aw;this.G=function(){return r4M(u).catch(function(f){f=M.reportError(new jV(M.B?20:32,"TRG:Disposed",f));M.L=f;var h;(h=M.B)==null||h.dispose();M.B=void 0;M.C.reject(f)})}; jvR(u,function(){return void B_(M)}); u.V===2&&B_(this)}else this.G=w.yX$,B_(this);var X=this.logger.share();X.X1("o");var U=new xv(X,"o");this.C.promise.then(function(){U.done();X.hX();X.dispose()},function(){return void X.dispose()}); this.addOnDisposeCallback(function(){M.B?(M.B.dispose(),M.B=void 0):M.L?M.logger.hX():(M.L=M.reportError(new jV(32,"TNP:Disposed")),M.logger.hX(),M.C.reject(M.L))}); g.b(this,this.logger)}; NTz=function(w,M){if(!(M instanceof jV))if(M instanceof RV){var P=Error(M.toString());P.stack=M.stack;M=new jV(11,"EBH:Error",P)}else M=new jV(12,"BSO:Unknown",M);return w.reportError(M)}; B_=function(w){var M,P,u,X,U,f,h,c,Z,S,H,p,F,E,y;return g.n(function(q){switch(q.L){case 1:M=void 0;w.X++;P=new g.hC;w.Aw instanceof Eo&&w.Aw.X.push(P.promise);if(!w.Aa){q.M0(2);break}u=new g.hC;setTimeout(function(){return void u.resolve()}); return g.B(q,u.promise,2);case 2:return X=w.logger.share(),g.DU(q,4,5),w.state=5,U={},f=[],g.B(q,VK(w.Aw.snapshot({FW:U,Vr:f}),w.tW.cx$,function(){return Promise.reject(new jV(15,"MDA:Timeout"))}),7); case 7:h=q.B;if(w.sO())throw new jV(w.B?20:32,"MDA:Disposed");c=f[0];w.state=6;return g.B(q,VK(phz(w.ED,X,h),w.tW.UR,function(){return Promise.reject(new jV(10,"BWB:Timeout"))}),8); case 8:Z=q.B;if(w.sO())throw new jV(w.B?20:32,"BWB:Disposed");w.state=7;M=aV(X,function(){var l=VVl(w,Z,P,c);l.C.promise.then(function(){return void w.G()}); return l},"i"); case 5:g.B5(q);X.dispose();g.Qx(q,6);break;case 4:S=g.d4(q);(H=M)==null||H.dispose();if(!w.L){p=NTz(w,S);P.resolve();var d;if(d=w.Aw instanceof Eo&&w.X<2)a:if(S instanceof jV)d=S.code!==32&&S.code!==20&&S.code!==10;else{if(S instanceof RV)switch(S.code){case 2:case 13:case 14:case 4:break;default:d=!1;break a}d=!0}if(d)return F=(1+Math.random()*.25)*(w.B?6E4:1E3),E=setTimeout(function(){return void w.G()},F),w.addOnDisposeCallback(function(){return void clearTimeout(E)}),q.return(); w.L=p}X.FH(w.B?13:14);w.C.reject(w.L);return q.return();case 6:w.state=8,w.X=0,(y=w.B)==null||y.dispose(),w.B=M,w.C.resolve(),g.yx(q)}})}; VVl=function(w,M,P,u){var X=zQ(M,2)*1E3;if(X<=0)throw new jV(31,"TTM:Invalid");if(TQ(M,4))return new ds(w.logger,TQ(M,4),X);if(!zQ(M,3))return new TN(w.logger,QM($G(M,1)),X);if(!u)throw new jV(4,"PMD:Undefined");u=u(QM($G(M,1)));if(!(u instanceof Function))throw new jV(16,"APF:Failed");w.K=Math.floor((Date.now()+X)/1E3);w=new zN(w.logger,u,zQ(M,3),X);w.addOnDisposeCallback(function(){return void P.resolve()}); return w}; mPM=function(w,M){M=M instanceof jV?M:new jV(5,"TVD:error",M);return w.reportError(M)}; qvF=function(w,M,P){try{if(w.sO())throw new jV(21,"BNT:disposed");if(!w.B&&w.L)throw w.L;var u,X;return(X=(u=oXl(w,M,P))!=null?u:GFF(w,M,P))!=null?X:y0l(w,M,P)}catch(U){if(!M.Le)throw mPM(w,U);return DPU(w,P,U)}}; oXl=function(w,M,P){var u;return(u=w.B)==null?void 0:Yj(u,function(){return kj(w,M)},P,function(X){var U; if(w.B instanceof zN&&((U=M.RA)==null?0:U.aJ))try{var f;(f=w.cache)==null||fxl(f,kj(w,M),X,M.RA.m5,w.K-120)}catch(h){w.reportError(new jV(24,"ELX:write",h))}})}; GFF=function(w,M,P){var u;if((u=M.RA)!=null&&u.KB)try{var X,U=(X=w.cache)==null?void 0:WQU(X,kj(w,M),M.RA.m5);return U?P?aV(w.logger,function(){return g.Yw(U,2)},"a"):U:void 0}catch(f){w.reportError(new jV(23,"RXO:read",f))}}; y0l=function(w,M,P){var u={stack:[],error:void 0,hasError:!1};try{if(!M.B2)throw new jV(29,"SDF:notready");return Yj(N4l(u,new e6(w.logger,0,w.state)),function(){return kj(w,M)},P)}catch(X){u.error=X,u.hasError=!0}finally{Vup(u)}}; DPU=function(w,M,P){var u={stack:[],error:void 0,hasError:!1};try{var X=mPM(w,P);return Yj(N4l(u,new lz(w.logger,X)),function(){return[]},M)}catch(U){u.error=U,u.hasError=!0}finally{Vup(u)}}; kj=function(w,M){return M.fU?M.fU:M.FW?aV(w.logger,function(){return M.fU=LZ(M.FW)},"c"):[]}; Ro=function(){var w=0,M;return function(P){M||(M=new ws);var u=new e6(M,w,1),X=Yj(u,function(){return LZ(P)},!0); u.dispose();w++;return X}}; nZ=function(w){this.q0=bC(w)}; Yvz=function(w,M,P){this.uc=w;this.qo=M;this.metadata=P}; v_=function(w,M){M=M===void 0?{}:M;this.ypk=w;this.metadata=M;this.status=null}; so=function(w,M,P,u,X){this.name=w;this.methodType="unary";this.requestType=M;this.responseType=P;this.B=u;this.L=X}; KZ=function(w){this.q0=bC(w)}; bz=function(w){this.q0=bC(w)}; Io=function(w){this.q0=bC(w)}; AC=function(w,M){this.j=w.r9N;this.V=M;this.B=w.xhr;this.C=[];this.G=[];this.K=[];this.X=[];this.L=[];this.j&&zO1(this)}; LQM=function(w,M){var P=new TT4;g.x4(w.B,"complete",function(){if(gb(w.B)){var u=g.Jn(w.B);if(M&&w.B.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");u=atob(u)}try{var X=w.V(u)}catch(h){gs(w,JC(new RV(13,"Error when deserializing response data; error: "+h+(", response: "+u)),P));return}u=Unl(w.B.getStatus());rs(w,j6(w));u==0?dP2(w,X):gs(w,JC(new RV(u,"Xhr succeeded but the status code is not 200"),P))}else{u=g.Jn(w.B);X=j6(w);if(u){var U=lxx(w, u);u=U.code;var f=U.details;U=U.metadata}else u=2,f="Rpc failed due to xhr error. uri: "+String(w.B.V)+", error code: "+w.B.L+", error: "+w.B.getLastError(),U=X;rs(w,X);gs(w,JC(new RV(u,f,U),P))}})}; zO1=function(w){w.j.yp("data",function(M){if("1"in M){var P=M["1"];try{var u=w.V(P)}catch(X){gs(w,new RV(13,"Error when deserializing response data; error: "+X+(", response: "+P)))}u&&dP2(w,u)}if("2"in M)for(M=lxx(w,M["2"]),P=0;P-1&&w.splice(M,1)}; dP2=function(w,M){for(var P=0;P>4&15).toString(16)+(w&15).toString(16)}; UR=function(w,M){this.L=this.B=null;this.C=w||null;this.X=!!M}; cG=function(w){w.B||(w.B=new Map,w.L=0,w.C&&cY(w.C,function(M,P){w.add(li(M),P)}))}; sLp=function(w,M){cG(w);M=ZZ(w,M);return w.B.has(M)}; g.KQM=function(w,M,P){w.remove(M);P.length>0&&(w.C=null,w.B.set(ZZ(w,M),g.LC(P)),w.L=w.L+P.length)}; ZZ=function(w,M){M=String(M);w.X&&(M=M.toLowerCase());return M}; ROU=function(w,M){M&&!w.X&&(cG(w),w.C=null,w.B.forEach(function(P,u){var X=u.toLowerCase();u!=X&&(this.remove(u),g.KQM(this,X,P))},w)); w.X=M}; g.bhU=function(w){var M="";g.wd(w,function(P,u){M+=u;M+=":";M+=P;M+="\r\n"}); return M}; g.Sr=function(w,M,P){if(g.SF(P))return w;P=g.bhU(P);if(typeof w==="string")return FY(w,g.TL(M),P);g.WG(w,M,P);return w}; g.HG=function(w){g.v.call(this);this.L=w;this.B={}}; IxM=function(w,M,P,u,X,U){if(Array.isArray(P))for(var f=0;f=0)return!0;try{var M=new g.ic(w)}catch(P){return g.Nj(XWx,function(u){return w.search(u)>0})!=null}return M.K.match($2H)?!0:g.Nj(XWx,function(P){return w.match(P)!=null})!=null}; g.YO=function(w,M){return w.replace(fHp,function(P,u){try{var X=g.HT(M,u);if(X==null||X.toString()==null)return P;X=X.toString();if(X==""||!g.lA(g.et(X)))return encodeURIComponent(X).replace(/%2C/g,",")}catch(U){}return P})}; zV=function(w,M){return Object.is(w,M)}; dV=function(w){var M=TV;TV=w;return M}; Wlz=function(w){if(w.KN!==void 0){var M=lc;lc=!0;try{for(var P=g.G(w.KN),u=P.next();!u.done;u=P.next()){var X=u.value;X.O$||(w=void 0,X.O$=!0,Wlz(X),(w=X.Bn)==null||w.call(X,X))}}finally{lc=M}}}; hql=function(){var w;return((w=TV)==null?void 0:w.cn)!==!1}; cmp=function(w){w&&(w.Qa=0);return dV(w)}; ZL4=function(w,M){dV(M);if(w&&w.Ki!==void 0&&w.a4!==void 0&&w.k5!==void 0){if(Lb(w))for(M=w.Qa;Mw.Qa;)w.Ki.pop(),w.k5.pop(),w.a4.pop()}}; HL1=function(w,M,P){SJ5(w);if(w.KN.length===0&&w.Ki!==void 0)for(var u=0;u0}; pWR=function(w){w.Ki!=null||(w.Ki=[]);w.a4!=null||(w.a4=[]);w.k5!=null||(w.k5=[])}; SJ5=function(w){w.KN!=null||(w.KN=[]);w.b1!=null||(w.b1=[])}; Vmz=function(w){function M(){if(lc)throw Error("");if(TV!==null){var u=TV.Qa++;pWR(TV);u0?" "+M:M))}}; g.MB=function(w,M){if(w.classList)Array.prototype.forEach.call(M,function(X){g.io(w,X)}); else{var P={};Array.prototype.forEach.call(OR(w),function(X){P[X]=!0}); Array.prototype.forEach.call(M,function(X){P[X]=!0}); M="";for(var u in P)M+=M.length>0?" "+u:u;g.a3(w,M)}}; g.PI=function(w,M){w.classList?w.classList.remove(M):g.w1(w,M)&&g.a3(w,Array.prototype.filter.call(OR(w),function(P){return P!=M}).join(" "))}; g.uo=function(w,M){w.classList?Array.prototype.forEach.call(M,function(P){g.PI(w,P)}):g.a3(w,Array.prototype.filter.call(OR(w),function(P){return!g.o$(M,P)}).join(" "))}; g.X6=function(w,M,P){P?g.io(w,M):g.PI(w,M)}; zq1=function(w,M){var P=!g.w1(w,M);g.X6(w,M,P)}; g.$R=function(){g.WX.call(this);this.B=0;this.endTime=this.startTime=null}; Tn_=function(w,M){Array.isArray(M)||(M=[M]);M=M.map(function(P){return typeof P==="string"?P:P.property+" "+P.duration+"s "+P.timing+" "+P.delay+"s"}); g.A1(w,"transition",M.join(","))}; UN=function(w,M,P,u,X){g.$R.call(this);this.L=w;this.G=M;this.K=P;this.X=u;this.j=Array.isArray(X)?X:[X]}; d2l=function(w,M,P,u){return new UN(w,M,{opacity:P},{opacity:u},{property:"opacity",duration:M,timing:"ease-in",delay:0})}; LlM=function(w){w=BT(w);if(w=="")return null;var M=String(w.slice(0,4)).toLowerCase();if(("url("1||w&&w.split(")"),null;if(w.indexOf("(")>0){if(/"|'/.test(w))return null;M=/([\-\w]+)\(/g;for(var P;P=M.exec(w);)if(!(P[1].toLowerCase()in lHl))return null}return w}; f_=function(w,M){w=g.aF[w];return w&&w.prototype?(M=Object.getOwnPropertyDescriptor(w.prototype,M))&&M.get||null:null}; eqU=function(w){var M=g.aF.CSSStyleDeclaration;return M&&M.prototype&&M.prototype[w]||null}; BnM=function(w,M,P,u){if(w)return w.apply(M,u);if(g.WI&&document.documentMode<10){if(!M[P].call)throw Error("IE Clobbering detected");}else if(typeof M[P]!="function")throw Error("Clobbering detected");return M[P].apply(M,u)}; v42=function(w){if(!w)return"";var M=document.createElement("div").style;Qux(w).forEach(function(P){var u=g.h1&&P in kK2?P:P.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");dd(u,"--")||dd(u,"var")||(P=BnM(RqM,w,w.getPropertyValue?"getPropertyValue":"getAttribute",[P])||"",P=LlM(P),P!=null&&BnM(n4z,M,M.setProperty?"setProperty":"setAttribute",[u,P]))}); return M.cssText||""}; Qux=function(w){g.uh(w)?w=g.LC(w):(w=g.WT(w),g.D4(w,"cssText"));return w}; g.cI=function(w){var M,P=M=0,u=!1;w=w.split(suF);for(var X=0;X.4?-1:1;return(M==0?null:M)==-1?"rtl":"ltr"}; g.p_=function(w){if(w instanceof ZW||w instanceof SD||w instanceof HI)return w;if(typeof w.next=="function")return new ZW(function(){return w}); if(typeof w[Symbol.iterator]=="function")return new ZW(function(){return w[Symbol.iterator]()}); if(typeof w.Sx=="function")return new ZW(function(){return w.Sx()}); throw Error("Not an iterator or iterable.");}; ZW=function(w){this.L=w}; SD=function(w){this.L=w}; HI=function(w){ZW.call(this,function(){return w}); this.C=w}; F6=function(w,M,P,u,X,U,f,h){this.B=w;this.j=M;this.C=P;this.G=u;this.X=X;this.K=U;this.L=f;this.V=h}; EN=function(w,M){if(M==0)return w.B;if(M==1)return w.L;var P=AT(w.B,w.C,M),u=AT(w.C,w.X,M);w=AT(w.X,w.L,M);P=AT(P,u,M);u=AT(u,w,M);return AT(P,u,M)}; Amz=function(w,M){var P=(M-w.B)/(w.L-w.B);if(P<=0)return 0;if(P>=1)return 1;for(var u=0,X=1,U=0,f=0;f<8;f++){U=EN(w,P);var h=(EN(w,P+1E-6)-U)/1E-6;if(Math.abs(U-M)<1E-6)return P;if(Math.abs(h)<1E-6)break;else U1E-6&&f<8;f++)U=0}; g.oC=function(w){g.v.call(this);this.K=1;this.C=[];this.X=0;this.B=[];this.L={};this.j=!!w}; Jm2=function(w,M,P){g.Vk(function(){w.apply(M,P)})}; g.Gy=function(w){this.B=w}; y6=function(w){this.B=w}; rmR=function(w){this.data=w}; juy=function(w){return w===void 0||w instanceof rmR?w:new rmR(w)}; DW=function(w){this.B=w}; g.CYH=function(w){var M=w.creation;w=w.expiration;return!!w&&wg.ca()}; g.qB=function(w){this.B=w}; tmR=function(){}; YR=function(){}; zy=function(w){this.B=w;this.L=null}; Ty=function(w){if(w.B==null)throw Error("Storage mechanism: Storage unavailable");w.isAvailable()||Dd(Error("Storage mechanism: Storage unavailable"))}; d1=function(){var w=null;try{w=g.aF.localStorage||null}catch(M){}zy.call(this,w)}; x21=function(){var w=null;try{w=g.aF.sessionStorage||null}catch(M){}zy.call(this,w)}; lo=function(w,M){this.L=w;this.B=M+"::"}; g.L_=function(w){var M=new d1;return M.isAvailable()?w?new lo(M,w):M:null}; eD=function(w,M){this.B=w;this.L=M}; BI=function(w){this.B=[];if(w)a:{if(w instanceof BI){var M=w.oN();w=w.yX();if(this.B.length<=0){for(var P=this.B,u=0;u>>6:(U<65536?h[P++]=224|U>>>12:(h[P++]=240|U>>>18,h[P++]=128|U>>>12&63),h[P++]=128|U>>> 6&63),h[P++]=128|U&63);return h}; n_=function(w){for(var M=w.length;--M>=0;)w[M]=0}; vI=function(w,M,P,u,X){this.h8=w;this.MY=M;this.CP=P;this.zr=u;this.Zr=X;this.N4=w&&w.length}; sN=function(w,M){this.xg=w;this.jN=0;this.ZS=M}; K_=function(w,M){w.dO[w.pending++]=M&255;w.dO[w.pending++]=M>>>8&255}; bo=function(w,M,P){w.h5>16-P?(w.W_|=M<>16-w.h5,w.h5+=P-16):(w.W_|=M<>>=1,P<<=1;while(--M>0);return P>>>1}; M7z=function(w,M,P){var u=Array(16),X=0,U;for(U=1;U<=15;U++)u[U]=X=X+P[U-1]<<1;for(P=0;P<=M;P++)X=w[P*2+1],X!==0&&(w[P*2]=iy_(u[X]++,X))}; POz=function(w){var M;for(M=0;M<286;M++)w.pN[M*2]=0;for(M=0;M<30;M++)w.IW[M*2]=0;for(M=0;M<19;M++)w.Nv[M*2]=0;w.pN[512]=1;w.FE=w.Zw=0;w.xo=w.matches=0}; u4p=function(w){w.h5>8?K_(w,w.W_):w.h5>0&&(w.dO[w.pending++]=w.W_);w.W_=0;w.h5=0}; XXl=function(w,M,P){u4p(w);K_(w,P);K_(w,~P);RC.q1(w.dO,w.window,M,P,w.pending);w.pending+=P}; $a4=function(w,M,P,u){var X=M*2,U=P*2;return w[X]>>7)];IC(w,f,P);h=C_[f];h!==0&&(X-=t_[f],bo(w,X,h))}}while(u>1;f>=1;f--)A_(w,P,f);c=U;do f=w.Du[1],w.Du[1]=w.Du[w.He--],A_(w,P,1),u=w.Du[1],w.Du[--w.J2]=f,w.Du[--w.J2]=u,P[c*2]=P[f*2]+P[u*2],w.depth[c]=(w.depth[f]>=w.depth[u]?w.depth[f]:w.depth[u])+1,P[f*2+1]=P[u*2+1]=c,w.Du[1]=c++,A_(w,P,1);while(w.He>= 2);w.Du[--w.J2]=w.Du[1];f=M.xg;c=M.jN;u=M.ZS.h8;X=M.ZS.N4;U=M.ZS.MY;var Z=M.ZS.CP,S=M.ZS.Zr,H,p=0;for(H=0;H<=15;H++)w.GQ[H]=0;f[w.Du[w.J2]*2+1]=0;for(M=w.J2+1;M<573;M++){var F=w.Du[M];H=f[f[F*2+1]*2+1]+1;H>S&&(H=S,p++);f[F*2+1]=H;if(!(F>c)){w.GQ[H]++;var E=0;F>=Z&&(E=U[F-Z]);var y=f[F*2];w.FE+=y*(H+E);X&&(w.Zw+=y*(u[F*2+1]+E))}}if(p!==0){do{for(H=S-1;w.GQ[H]===0;)H--;w.GQ[H]--;w.GQ[H+1]+=2;w.GQ[S]--;p-=2}while(p>0);for(H=S;H!==0;H--)for(F=w.GQ[H];F!==0;)u=w.Du[--M],u>c||(f[u*2+1]!==H&&(w.FE+=(H-f[u* 2+1])*f[u*2],f[u*2+1]=H),F--)}M7z(P,h,w.GQ)}; fGy=function(w,M,P){var u,X=-1,U=M[1],f=0,h=7,c=4;U===0&&(h=138,c=3);M[(P+1)*2+1]=65535;for(u=0;u<=P;u++){var Z=U;U=M[(u+1)*2+1];++f>>=1)if(M&1&&w.pN[P*2]!==0)return 0;if(w.pN[18]!==0||w.pN[20]!==0||w.pN[26]!==0)return 1;for(P=32;P<256;P++)if(w.pN[P*2]!==0)return 1;return 0}; ON=function(w,M,P){w.dO[w.Hg+w.xo*2]=M>>>8&255;w.dO[w.Hg+w.xo*2+1]=M&255;w.dO[w.EL+w.xo]=P&255;w.xo++;M===0?w.pN[P*2]++:(w.matches++,M--,w.pN[(g1[P]+256+1)*2]++,w.IW[(M<256?jD[M]:jD[256+(M>>>7)])*2]++);return w.xo===w.Gc-1}; wo=function(w,M){w.msg=aC[M];return M}; iU=function(w){for(var M=w.length;--M>=0;)w[M]=0}; MT=function(w){var M=w.state,P=M.pending;P>w.Jw&&(P=w.Jw);P!==0&&(RC.q1(w.output,M.dO,M.WA,P,w.nM),w.nM+=P,M.WA+=P,w.DW+=P,w.Jw-=P,M.pending-=P,M.pending===0&&(M.WA=0))}; Xq=function(w,M){var P=w.p$>=0?w.p$:-1,u=w.R9-w.p$,X=0;if(w.level>0){w.Tt.ZH===2&&(w.Tt.ZH=hBy(w));xR(w,w.Sq);xR(w,w.Dz);fGy(w,w.pN,w.Sq.jN);fGy(w,w.IW,w.Dz.jN);xR(w,w.jn);for(X=18;X>=3&&w.Nv[cnM[X]*2+1]===0;X--);w.FE+=3*(X+1)+5+5+4;var U=w.FE+3+7>>>3;var f=w.Zw+3+7>>>3;f<=U&&(U=f)}else U=f=u+5;if(u+4<=U&&P!==-1)bo(w,M?1:0,3),XXl(w,P,u);else if(w.strategy===4||f===U)bo(w,2+(M?1:0),3),Ual(w,Pi,uU);else{bo(w,4+(M?1:0),3);P=w.Sq.jN+1;u=w.Dz.jN+1;X+=1;bo(w,P-257,5);bo(w,u-1,5);bo(w,X-4,4);for(U=0;U>>8&255;w.dO[w.pending++]=M&255}; Zyy=function(w,M){var P=w.n7,u=w.R9,X=w.T1,U=w.rQ,f=w.R9>w.mQ-262?w.R9-(w.mQ-262):0,h=w.window,c=w.Ij,Z=w.gs,S=w.R9+258,H=h[u+X-1],p=h[u+X];w.T1>=w.x9&&(P>>=2);U>w.ip&&(U=w.ip);do{var F=M;if(h[F+X]===p&&h[F+X-1]===H&&h[F]===h[u]&&h[++F]===h[u+1]){u+=2;for(F++;h[++u]===h[++F]&&h[++u]===h[++F]&&h[++u]===h[++F]&&h[++u]===h[++F]&&h[++u]===h[++F]&&h[++u]===h[++F]&&h[++u]===h[++F]&&h[++u]===h[++F]&&uX){w.QP=M;X=F;if(F>=U)break;H=h[u+X-1];p=h[u+X]}}}while((M=Z[M&c])>f&&--P!== 0);return X<=w.ip?X:w.ip}; hR=function(w){var M=w.mQ,P;do{var u=w.o0-w.ip-w.R9;if(w.R9>=M+(M-262)){RC.q1(w.window,w.window,M,M,0);w.QP-=M;w.R9-=M;w.p$-=M;var X=P=w.On;do{var U=w.head[--X];w.head[X]=U>=M?U-M:0}while(--P);X=P=M;do U=w.gs[--X],w.gs[X]=U>=M?U-M:0;while(--P);u+=M}if(w.Tt.Xt===0)break;X=w.Tt;P=w.window;U=w.R9+w.ip;var f=X.Xt;f>u&&(f=u);f===0?P=0:(X.Xt-=f,RC.q1(P,X.input,X.MX,f,U),X.state.wrap===1?X.Mf=fR(X.Mf,P,f,U):X.state.wrap===2&&(X.Mf=Wi(X.Mf,P,f,U)),X.MX+=f,X.M1+=f,P=f);w.ip+=P;if(w.ip+w.Yb>=3)for(u=w.R9-w.Yb, w.im=w.window[u],w.im=(w.im<=3&&(w.im=(w.im<=3)if(P=ON(w,w.R9-w.QP,w.rb-3),w.ip-=w.rb,w.rb<=w.sL&&w.ip>=3){w.rb--;do w.R9++,w.im=(w.im<=3&&(w.im=(w.im<4096)&&(w.rb=2));if(w.T1>=3&&w.rb<=w.T1){u=w.R9+w.ip-3;P=ON(w,w.R9-1-w.kx,w.T1-3);w.ip-=w.T1-1;w.T1-=2;do++w.R9<=u&&(w.im=(w.im<=3&&w.R9>0&&(u=w.R9-1,P=U[u],P===U[++u]&&P===U[++u]&&P===U[++u])){for(X=w.R9+258;P===U[++u]&&P===U[++u]&&P===U[++u]&&P===U[++u]&&P===U[++u]&&P===U[++u]&&P===U[++u]&&P===U[++u]&&uw.ip&&(w.rb=w.ip)}w.rb>=3?(P=ON(w,1,w.rb-3),w.ip-=w.rb,w.R9+=w.rb,w.rb=0):(P=ON(w,0,w.window[w.R9]),w.ip--,w.R9++);if(P&&(Xq(w,!1),w.Tt.Jw===0))return 1}w.Yb=0;return M=== 4?(Xq(w,!0),w.Tt.Jw===0?3:4):w.xo&&(Xq(w,!1),w.Tt.Jw===0)?1:2}; Hyu=function(w,M){for(var P;;){if(w.ip===0&&(hR(w),w.ip===0)){if(M===0)return 1;break}w.rb=0;P=ON(w,0,w.window[w.R9]);w.ip--;w.R9++;if(P&&(Xq(w,!1),w.Tt.Jw===0))return 1}w.Yb=0;return M===4?(Xq(w,!0),w.Tt.Jw===0?3:4):w.xo&&(Xq(w,!1),w.Tt.Jw===0)?1:2}; S2=function(w,M,P,u,X){this.d6=w;this.zf=M;this.R$I=P;this.o$=u;this.func=X}; pX4=function(){this.Tt=null;this.status=0;this.dO=null;this.wrap=this.pending=this.WA=this.aB=0;this.Er=null;this.lE=0;this.method=8;this.xz=-1;this.Ij=this.qW=this.mQ=0;this.window=null;this.o0=0;this.head=this.gs=null;this.rQ=this.x9=this.strategy=this.level=this.sL=this.n7=this.T1=this.ip=this.QP=this.R9=this.Pf=this.kx=this.rb=this.p$=this.Z$=this.zQ=this.Da=this.On=this.im=0;this.pN=new RC.r8(1146);this.IW=new RC.r8(122);this.Nv=new RC.r8(78);iU(this.pN);iU(this.IW);iU(this.Nv);this.jn=this.Dz= this.Sq=null;this.GQ=new RC.r8(16);this.Du=new RC.r8(573);iU(this.Du);this.J2=this.He=0;this.depth=new RC.r8(573);iU(this.depth);this.h5=this.W_=this.Yb=this.matches=this.Zw=this.FE=this.Hg=this.xo=this.Gc=this.EL=0}; FqR=function(w,M){if(!w||!w.state||M>5||M<0)return w?wo(w,-2):-2;var P=w.state;if(!w.output||!w.input&&w.Xt!==0||P.status===666&&M!==4)return wo(w,w.Jw===0?-5:-2);P.Tt=w;var u=P.xz;P.xz=M;if(P.status===42)if(P.wrap===2)w.Mf=0,$h(P,31),$h(P,139),$h(P,8),P.Er?($h(P,(P.Er.text?1:0)+(P.Er.Zo?2:0)+(P.Er.extra?4:0)+(P.Er.name?8:0)+(P.Er.comment?16:0)),$h(P,P.Er.time&255),$h(P,P.Er.time>>8&255),$h(P,P.Er.time>>16&255),$h(P,P.Er.time>>24&255),$h(P,P.level===9?2:P.strategy>=2||P.level<2?4:0),$h(P,P.Er.os& 255),P.Er.extra&&P.Er.extra.length&&($h(P,P.Er.extra.length&255),$h(P,P.Er.extra.length>>8&255)),P.Er.Zo&&(w.Mf=Wi(w.Mf,P.dO,P.pending,0)),P.lE=0,P.status=69):($h(P,0),$h(P,0),$h(P,0),$h(P,0),$h(P,0),$h(P,P.level===9?2:P.strategy>=2||P.level<2?4:0),$h(P,3),P.status=113);else{var X=8+(P.qW-8<<4)<<8;X|=(P.strategy>=2||P.level<2?0:P.level<6?1:P.level===6?2:3)<<6;P.R9!==0&&(X|=32);P.status=113;UK(P,X+(31-X%31));P.R9!==0&&(UK(P,w.Mf>>>16),UK(P,w.Mf&65535));w.Mf=1}if(P.status===69)if(P.Er.extra){for(X= P.pending;P.lE<(P.Er.extra.length&65535)&&(P.pending!==P.aB||(P.Er.Zo&&P.pending>X&&(w.Mf=Wi(w.Mf,P.dO,P.pending-X,X)),MT(w),X=P.pending,P.pending!==P.aB));)$h(P,P.Er.extra[P.lE]&255),P.lE++;P.Er.Zo&&P.pending>X&&(w.Mf=Wi(w.Mf,P.dO,P.pending-X,X));P.lE===P.Er.extra.length&&(P.lE=0,P.status=73)}else P.status=73;if(P.status===73)if(P.Er.name){X=P.pending;do{if(P.pending===P.aB&&(P.Er.Zo&&P.pending>X&&(w.Mf=Wi(w.Mf,P.dO,P.pending-X,X)),MT(w),X=P.pending,P.pending===P.aB)){var U=1;break}U=P.lEX&&(w.Mf=Wi(w.Mf,P.dO,P.pending-X,X));U===0&&(P.lE=0,P.status=91)}else P.status=91;if(P.status===91)if(P.Er.comment){X=P.pending;do{if(P.pending===P.aB&&(P.Er.Zo&&P.pending>X&&(w.Mf=Wi(w.Mf,P.dO,P.pending-X,X)),MT(w),X=P.pending,P.pending===P.aB)){U=1;break}U=P.lEX&&(w.Mf=Wi(w.Mf,P.dO,P.pending-X,X));U===0&&(P.status=103)}else P.status= 103;P.status===103&&(P.Er.Zo?(P.pending+2>P.aB&&MT(w),P.pending+2<=P.aB&&($h(P,w.Mf&255),$h(P,w.Mf>>8&255),w.Mf=0,P.status=113)):P.status=113);if(P.pending!==0){if(MT(w),w.Jw===0)return P.xz=-1,0}else if(w.Xt===0&&(M<<1)-(M>4?9:0)<=(u<<1)-(u>4?9:0)&&M!==4)return wo(w,-5);if(P.status===666&&w.Xt!==0)return wo(w,-5);if(w.Xt!==0||P.ip!==0||M!==0&&P.status!==666){u=P.strategy===2?Hyu(P,M):P.strategy===3?SZ1(P,M):Hi[P.level].func(P,M);if(u===3||u===4)P.status=666;if(u===1||u===3)return w.Jw===0&&(P.xz= -1),0;if(u===2&&(M===1?(bo(P,2,3),IC(P,256,Pi),P.h5===16?(K_(P,P.W_),P.W_=0,P.h5=0):P.h5>=8&&(P.dO[P.pending++]=P.W_&255,P.W_>>=8,P.h5-=8)):M!==5&&(bo(P,0,3),XXl(P,0,0),M===3&&(iU(P.head),P.ip===0&&(P.R9=0,P.p$=0,P.Yb=0))),MT(w),w.Jw===0))return P.xz=-1,0}if(M!==4)return 0;if(P.wrap<=0)return 1;P.wrap===2?($h(P,w.Mf&255),$h(P,w.Mf>>8&255),$h(P,w.Mf>>16&255),$h(P,w.Mf>>24&255),$h(P,w.M1&255),$h(P,w.M1>>8&255),$h(P,w.M1>>16&255),$h(P,w.M1>>24&255)):(UK(P,w.Mf>>>16),UK(P,w.Mf&65535));MT(w);P.wrap>0&& (P.wrap=-P.wrap);return P.pending!==0?0:1}; pR=function(w){if(!(this instanceof pR))return new pR(w);w=this.options=RC.assign({level:-1,method:8,chunkSize:16384,pK:15,c9$:8,strategy:0,to:""},w||{});w.raw&&w.pK>0?w.pK=-w.pK:w.UU&&w.pK>0&&w.pK<16&&(w.pK+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Tt=new EvF;this.Tt.Jw=0;var M=this.Tt;var P=w.level,u=w.method,X=w.pK,U=w.c9$,f=w.strategy;if(M){var h=1;P===-1&&(P=6);X<0?(h=0,X=-X):X>15&&(h=2,X-=16);if(U<1||U>9||u!==8||X<8||X>15||P<0||P>9||f<0||f>4)M=wo(M,-2);else{X===8&&(X=9); var c=new pX4;M.state=c;c.Tt=M;c.wrap=h;c.Er=null;c.qW=X;c.mQ=1<>=7;U<30;U++)for(t_[U]=f<<7,X=0;X<1<=Z.mQ&&(M===0&&(iU(Z.head),Z.R9=0,Z.p$=0,Z.Yb=0),P=new RC.G_(Z.mQ),RC.q1(P,U,f-Z.mQ,Z.mQ,0),U=P,f=Z.mQ);P=w.Xt;u=w.MX;X=w.input;w.Xt=f;w.MX=0;w.input=U;for(hR(Z);Z.ip>=3;){U=Z.R9;f=Z.ip-2;do Z.im=(Z.im<8||((0,P[72])((0,P[65])(P[35]),(0,P[21])(P[60],P[28]),P[73],(0,P[61])(P[18],P[28]),P[78],P[2],P[28]),0))&&(((0,P[21])(P[50],P[5]),(0,P[40])(P[28],P[56],(0,P[1])()),P[9])(P[35],P[74]),P[65])(P[5]),(P[new Date(W[52])/1E3]>1||((((0,P[9])(P[12],P[11]),(0,P[26])(P[68]),P[26])(P[new Date(W[77])/1E3]),P[17])(P[64],P[53]),0))&&(0,P[12])((0,P[56])(P[4],P[3]),P[17],(0,P[44])((0,P[11])(P[33],P[22]),P[11],P[53],P[72]), P[32],P[15]),P[43]<=2?(((0,P[44])((0,P[44])((0,P[39])(P[68],P[26]),P[29],P[26],P[69]),P[new Date(W[82])/1E3],P[48],P[17])%(0,P[18])(P[10],P[61]),(0,P[36])(P[22],P[67]),(0,P[6])(P[7]),P[62])(P[66],P[35]),P[40])(P[37],P[77]):((((0,P[72])((0,P[26])(P[2],P[7],(0,P[65])()),P[39],P[61],P[74]),P[72])((0,P[72])((0,P[23])(P[31]),P[5],P[4],P[2]),P[5],P[11],P[54]),P[26])(P[2],P[25],(0,P[63])()),(0,P[39])(P[43],P[68]),P[5])(P[76],P[2])}try{P[27]!=-8&&((((0,P[72])((0,P[26])(P[38],P[10],(0,P[29])()),P[67],P[62], P[54]),(0,P[57])(P[new Date(W[10])/1E3],P[58]),P[5])(P[22],P[38]),P[67])(P[27],P[38]),P[45])(P[47],P[31]),P[19]!==1&&((0,P[67])(P[41],P[2]),P[26])(P[31],P[7],(0,P[65])())}catch(u){(0,P[72])((0,P[26])(P[38],P[7],(0,P[63])()),P[45],P[34],P[43])}finally{P[69]>=0&&(P[19]!=-6?(0,P[45])(P[42],P[61])-(((0,P[53])(P[39],P[16]),(0,P[37])(P[52],P[31]),P[43])(P[49],P[52]),P[67])(P[66],P[61]):((0,P[45])(P[36],P[38]),P[26])(P[50],P[10],(0,P[29])())>=(((0,P[67])(P[70],P[38]),P[1])(P[50]),P[67])(P[78],P[50]))}}catch(u){return W[60]+ w}return M[W[58]](W[13])}; g.og=function(w){this.name=w}; nvM=function(w){this.q0=bC(w)}; GX=function(w){this.q0=bC(w)}; yb=function(w){this.q0=bC(w)}; vvH=function(w){this.q0=bC(w)}; DY=function(w){this.q0=bC(w)}; qT=function(w){this.q0=bC(w)}; Yh=function(w){this.q0=bC(w)}; zX=function(w){this.q0=bC(w)}; TX=function(w){this.q0=bC(w)}; lU=function(w){this.q0=bC(w)}; LR=function(w){this.q0=bC(w)}; e2=function(w){this.q0=bC(w)}; Bi=function(w){this.q0=bC(w)}; Qb=function(w){this.q0=bC(w)}; kh=function(w){this.q0=bC(w)}; Rg=function(w){this.q0=bC(w,500)}; nR=function(w){this.q0=bC(w)}; KR=function(w){this.q0=bC(w)}; sV5=function(w){this.q0=bC(w)}; Kq4=function(){return g.Mj("yt.ads.biscotti.lastId_")||""}; by5=function(w){g.ih("yt.ads.biscotti.lastId_",w)}; Ig=function(){var w=arguments,M=bU;w.length>1?M[w[0]]=w[1]:w.length===1&&Object.assign(M,w[0])}; g.AR=function(w,M){return w in bU?bU[w]:M}; go=function(w){var M=bU.EXPERIMENT_FLAGS;return M?M[w]:void 0}; IG1=function(w){JR.forEach(function(M){return M(w)})}; g.j2=function(w){return w&&window.yterr?function(){try{return w.apply(this,arguments)}catch(M){g.ro(M)}}:w}; g.ro=function(w){var M=g.Mj("yt.logging.errors.log");M?M(w,"ERROR",void 0,void 0,void 0,void 0,void 0):(M=g.AR("ERRORS",[]),M.push([w,"ERROR",void 0,void 0,void 0,void 0,void 0]),Ig("ERRORS",M));IG1(w)}; CR=function(w,M,P,u,X){var U=g.Mj("yt.logging.errors.log");U?U(w,"WARNING",M,P,u,void 0,X):(U=g.AR("ERRORS",[]),U.push([w,"WARNING",M,P,u,void 0,X]),Ig("ERRORS",U))}; tR=function(w,M){M=w.split(M);for(var P={},u=0,X=M.length;u1?w[1]:w[0])):{}}; iL=function(w,M){return rn1(w,M||{},!0)}; Mx=function(w,M){return rn1(w,M||{},!1)}; rn1=function(w,M,P){var u=w.split("#",2);w=u[0];u=u.length>1?"#"+u[1]:"";var X=w.split("?",2);w=X[0];X=OK(X[1]||"");for(var U in M)if(P||!g.h5(X,U))X[U]=M[U];return g.p5(w,X)+u}; PF=function(w){if(!M)var M=window.location.href;var P=g.UQ(w)[1]||null,u=g.f5(w);P&&u?(w=g.UQ(w),M=g.UQ(M),w=w[3]==M[3]&&w[1]==M[1]&&w[4]==M[4]):w=u?g.f5(M)===u&&(Number(g.UQ(M)[4]||null)||null)===(Number(g.UQ(w)[4]||null)||null):!0;return w}; uL=function(w){w||(w=document.location.href);w=g.UQ(w)[1]||null;return w!==null&&w==="https"}; XW=function(w){w=jVU(w);return w===null?!1:w[0]==="com"&&w[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; COx=function(w){w=jVU(w);return w===null?!1:w[1]==="google"?!0:w[2]==="google"?w[0]==="au"&&w[1]==="com"?!0:w[0]==="uk"&&w[1]==="co"?!0:!1:!1}; jVU=function(w){w=g.f5(w);return w!==null?w.split(".").reverse():null}; Anx=function(w){return w&&w.match(t7y)?w:li(w)}; fB=function(w){var M=$S;w=w===void 0?Kq4():w;var P=Object,u=P.assign,X=UL(M);var U=M.B;try{var f=U.screenX;var h=U.screenY}catch(d){}try{var c=U.outerWidth;var Z=U.outerHeight}catch(d){}try{var S=U.innerWidth;var H=U.innerHeight}catch(d){}try{var p=U.screenLeft;var F=U.screenTop}catch(d){}try{S=U.innerWidth,H=U.innerHeight}catch(d){}try{var E=U.screen.availWidth;var y=U.screen.availTop}catch(d){}U=[p,F,f,h,E,y,c,Z,S,H];f=uP4(!1,M.B.top);h={};var q=q===void 0?g.aF:q;c=new R3;"SVGElement"in q&&"createElementNS"in q.document&&c.set(0);Z=umz();Z["allow-top-navigation-by-user-activation"]&&c.set(1);Z["allow-popups-to-escape-sandbox"]&&c.set(2);q.crypto&&q.crypto.subtle&&c.set(3);"TextDecoder"in q&&"TextEncoder"in q&&c.set(4);q=ym_(c);M=(h.bc=q,h.bih=f.height,h.biw=f.width,h.brdim=U.join(),h.vis=XP(M.L),h.wgl=!!l6.WebGLRenderingContext,h);P=u.call(P,X,M);P.ca_type="image";w&&(P.bid=w);return P}; UL=function(w){var M={};M.dt=xaH;M.flash="0";a:{try{var P=w.B.top.location.href}catch(S){w=2;break a}w=P?P===w.L.location.href?0:1:2}M=(M.frm=w,M);try{M.u_tz=-(new Date).getTimezoneOffset();var u=u===void 0?l6:u;try{var X=u.history.length}catch(S){X=0}M.u_his=X;var U;M.u_h=(U=l6.screen)==null?void 0:U.height;var f;M.u_w=(f=l6.screen)==null?void 0:f.width;var h;M.u_ah=(h=l6.screen)==null?void 0:h.availHeight;var c;M.u_aw=(c=l6.screen)==null?void 0:c.availWidth;var Z;M.u_cd=(Z=l6.screen)==null?void 0: Z.colorDepth}catch(S){}return M}; aGU=function(){if(!Oy5)return null;var w=Oy5();return"open"in w?w:null}; g.hD=function(w){switch(WF(w)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; WF=function(w){return w&&"status"in w?w.status:-1}; g.cF=function(w,M){typeof w==="function"&&(w=g.j2(w));return window.setTimeout(w,M)}; g.ZK=function(w,M){typeof w==="function"&&(w=g.j2(w));return window.setInterval(w,M)}; g.S9=function(w){window.clearTimeout(w)}; g.HF=function(w){window.clearInterval(w)}; g.FW=function(w){w=pB(w);return typeof w==="string"&&w==="false"?!1:!!w}; g.EL=function(w,M){w=pB(w);return w===void 0&&M!==void 0?M:Number(w||0)}; Nx=function(){return g.AR("EXPERIMENTS_TOKEN","")}; pB=function(w){return g.AR("EXPERIMENT_FLAGS",{})[w]}; Vg=function(){for(var w=[],M=g.AR("EXPERIMENTS_FORCED_FLAGS",{}),P=g.G(Object.keys(M)),u=P.next();!u.done;u=P.next())u=u.value,w.push({key:u,value:String(M[u])});P=g.AR("EXPERIMENT_FLAGS",{});u=g.G(Object.keys(P));for(var X=u.next();!X.done;X=u.next())X=X.value,X.startsWith("force_")&&M[X]===void 0&&w.push({key:X,value:String(P[X])});return w}; m5=function(w,M,P,u,X,U,f,h){function c(){(Z&&"readyState"in Z?Z.readyState:0)===4&&M&&g.j2(M)(Z)} P=P===void 0?"GET":P;u=u===void 0?"":u;h=h===void 0?!1:h;var Z=aGU();if(!Z)return null;"onloadend"in Z?Z.addEventListener("loadend",c,!1):Z.onreadystatechange=c;g.FW("debug_forward_web_query_parameters")&&(w=w_R(w));Z.open(P,w,!0);U&&(Z.responseType=U);f&&(Z.withCredentials=!0);P=P==="POST"&&(window.FormData===void 0||!(u instanceof FormData));if(X=iZ2(w,X))for(var S in X)Z.setRequestHeader(S,X[S]),"content-type"===S.toLowerCase()&&(P=!1);P&&Z.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(h&&"setAttributionReporting"in XMLHttpRequest.prototype){w={eventSourceEligible:!0,triggerEligible:!1};try{Z.setAttributionReporting(w)}catch(H){CR(H)}}Z.send(u);return Z}; iZ2=function(w,M){M=M===void 0?{}:M;var P=PF(w),u=g.AR("INNERTUBE_CLIENT_NAME"),X=g.FW("web_ajax_ignore_global_headers_if_set"),U;for(U in M6u){var f=g.AR(M6u[U]),h=U==="X-Goog-AuthUser"||U==="X-Goog-PageId";U!=="X-Goog-Visitor-Id"||f||(f=g.AR("VISITOR_DATA"));var c;if(!(c=!f)){if(!(c=P||(g.f5(w)?!1:!0))){c=w;var Z;if(Z=g.FW("add_auth_headers_to_remarketing_google_dot_com_ping")&&U==="Authorization"&&(u==="TVHTML5"||u==="TVHTML5_UNPLUGGED"||u==="TVHTML5_SIMPLY")&&COx(c))c=WY(c)||"",c=c.split("/"), c="/"+(c.length>1?c[1]:""),Z=c==="/pagead";c=Z?!0:!1}c=!c}c||X&&M[U]!==void 0||u==="TVHTML5_UNPLUGGED"&&h||(M[U]=f)}"X-Goog-EOM-Visitor-Id"in M&&"X-Goog-Visitor-Id"in M&&delete M["X-Goog-Visitor-Id"];if(P||!g.f5(w))M["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(P||!g.f5(w)){try{var S=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(H){}S&&(M["X-YouTube-Time-Zone"]=S)}document.location.hostname.endsWith("youtubeeducation.com")||!P&&g.f5(w)||(M["X-YouTube-Ad-Signals"]= xh(fB()));return M}; GZ=function(w,M){M.method="POST";M.postParams||(M.postParams={});return g.o1(w,M)}; X_y=function(w,M){if(window.fetch&&M.format!=="XML"){var P={method:M.method||"GET",credentials:"same-origin"};M.headers&&(P.headers=M.headers);M.priority&&(P.priority=M.priority);w=Pzy(w,M);var u=u14(w,M);u&&(P.body=u);M.withCredentials&&(P.credentials="include");var X=M.context||g.aF,U=!1,f;fetch(w,P).then(function(h){if(!U){U=!0;f&&g.S9(f);var c=h.ok,Z=function(S){S=S||{};c?M.onSuccess&&M.onSuccess.call(X,S,h):M.onError&&M.onError.call(X,S,h);M.onFinish&&M.onFinish.call(X,S,h)}; (M.format||"JSON")==="JSON"&&(c||h.status>=400&&h.status<500)?h.json().then(Z,function(){Z(null)}):Z(null)}}).catch(function(){M.onError&&M.onError.call(X,{},{})}); w=M.timeout||0;M.onFetchTimeout&&w>0&&(f=g.cF(function(){U||(U=!0,g.S9(f),M.onFetchTimeout.call(M.context||g.aF))},w))}else g.o1(w,M)}; g.o1=function(w,M){var P=M.format||"JSON";w=Pzy(w,M);var u=u14(w,M),X=!1,U=$Mp(w,function(c){if(!X){X=!0;h&&g.S9(h);var Z=g.hD(c),S=null,H=400<=c.status&&c.status<500,p=500<=c.status&&c.status<600;if(Z||H||p)S=UM1(w,P,c,M.convertToSafeHtml);Z&&(Z=fi2(P,c,S));S=S||{};H=M.context||g.aF;Z?M.onSuccess&&M.onSuccess.call(H,c,S):M.onError&&M.onError.call(H,c,S);M.onFinish&&M.onFinish.call(H,c,S)}},M.method,u,M.headers,M.responseType,M.withCredentials); u=M.timeout||0;if(M.onTimeout&&u>0){var f=M.onTimeout;var h=g.cF(function(){X||(X=!0,U.abort(),g.S9(h),f.call(M.context||g.aF,U))},u)}return U}; Pzy=function(w,M){M.includeDomain&&(w=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+w);var P=g.AR("XSRF_FIELD_NAME");if(M=M.urlParams)M[P]&&delete M[P],w=iL(w,M);return w}; u14=function(w,M){var P=g.AR("XSRF_FIELD_NAME"),u=g.AR("XSRF_TOKEN"),X=M.postBody||"",U=M.postParams,f=g.AR("XSRF_FIELD_NAME"),h;M.headers&&(h=M.headers["Content-Type"]);M.excludeXsrf||g.f5(w)&&!M.withCredentials&&g.f5(w)!==document.location.hostname||M.method!=="POST"||h&&h!=="application/x-www-form-urlencoded"||M.postParams&&M.postParams[f]||(U||(U={}),U[P]=u);(g.FW("ajax_parse_query_data_only_when_filled")&&U&&Object.keys(U).length>0||U)&&typeof X==="string"&&(X=OK(X),g.NK(X,U),X=M.postBodyFormat&& M.postBodyFormat==="JSON"?JSON.stringify(X):g.HY(X));U=X||U&&!g.SF(U);!Wv4&&U&&M.method!=="POST"&&(Wv4=!0,g.ro(Error("AJAX request with postData should use POST")));return X}; UM1=function(w,M,P,u){var X=null;switch(M){case "JSON":try{var U=P.responseText}catch(f){throw u=Error("Error reading responseText"),u.params=w,CR(u),f;}w=P.getResponseHeader("Content-Type")||"";U&&w.indexOf("json")>=0&&(U.substring(0,5)===")]}'\n"&&(U=U.substring(5)),X=JSON.parse(U));break;case "XML":if(w=(w=P.responseXML)?h9M(w):null)X={},g.tx(w.getElementsByTagName("*"),function(f){X[f.tagName]=cCy(f)})}u&&ZZ4(X); return X}; ZZ4=function(w){if(g.XE(w))for(var M in w)M==="html_content"||bzz(M,"_html")?w[M]=H1(w[M]):ZZ4(w[M])}; fi2=function(w,M,P){if(M&&M.status===204)return!0;switch(w){case "JSON":return!!P;case "XML":return Number(P&&P.return_code)===0;case "RAW":return!0;default:return!!P}}; h9M=function(w){return w?(w=("responseXML"in w?w.responseXML:w).getElementsByTagName("root"))&&w.length>0?w[0]:null:null}; cCy=function(w){var M="";g.tx(w.childNodes,function(P){M+=P.nodeValue}); return M}; w_R=function(w){var M=window.location.search,P=g.f5(w);g.FW("debug_handle_relative_url_for_query_forward_killswitch")||!P&&PF(w)&&(P=document.location.hostname);var u=WY(w);u=(P=P&&(P.endsWith("youtube.com")||P.endsWith("youtube-nocookie.com")))&&u&&u.startsWith("/api/");if(!P||u)return w;var X=OK(M),U={};g.tx(Soy,function(f){X[f]&&(U[f]=X[f])}); return Mx(w,U)}; DK=function(w,M){var P=g.Fm(M),u;return(new g.qa(function(X,U){P.onSuccess=function(f){g.hD(f)?X(new HZl(f)):U(new yg("Request failed, status="+WF(f),"net.badstatus",f))}; P.onError=function(f){U(new yg("Unknown request error","net.unknown",f))}; P.onTimeout=function(f){U(new yg("Request timed out","net.timeout",f))}; u=g.o1(w,P)})).NS(function(X){if(X instanceof Ly){var U; (U=u)==null||U.abort()}return TS(X)})}; g.qx=function(w,M,P,u,X,U){function f(c,Z,S){return c.NS(function(H){if(Z<=0||WF(H.xhr)===403)return TS(new yg("Request retried too many times","net.retryexhausted",H.xhr,H));var p=Math.pow(2,P-Z+1)*S,F=X>0?Math.min(X,p):p;return h(S).then(function(){U&&U(H,Z-1);return f(DK(w,M),Z-1,F)})})} function h(c){return new g.qa(function(Z){setTimeout(Z,c)})} X=X===void 0?-1:X;return f(DK(w,M),P-1,u)}; yg=function(w,M,P){Ha.call(this,w+", errorCode="+M);this.errorCode=M;this.xhr=P;this.name="PromiseAjaxError"}; HZl=function(w){this.xhr=w}; YS=function(w){this.B=w===void 0?null:w;this.C=0;this.L=null}; zZ=function(w){var M=new YS;w=w===void 0?null:w;M.C=2;M.L=w===void 0?null:w;return M}; TZ=function(w){var M=new YS;w=w===void 0?null:w;M.C=1;M.L=w===void 0?null:w;return M}; g.LB=function(w,M,P,u,X){d$||lL.set(""+w,M,{aK:P,path:"/",domain:u===void 0?"youtube.com":u,secure:X===void 0?!1:X})}; g.e9=function(w,M){if(!d$)return lL.get(""+w,M)}; g.BF=function(w,M,P){d$||lL.remove(""+w,M===void 0?"/":M,P===void 0?"youtube.com":P)}; p_4=function(){if(g.FW("embeds_web_enable_cookie_detection_fix")){if(!g.aF.navigator.cookieEnabled)return!1}else if(!lL.isEnabled())return!1;if(!lL.isEmpty())return!0;g.FW("embeds_web_enable_cookie_detection_fix")?lL.set("TESTCOOKIESENABLED","1",{aK:60,s7$:"none",secure:!0}):lL.set("TESTCOOKIESENABLED","1",{aK:60});if(lL.get("TESTCOOKIESENABLED")!=="1")return!1;lL.remove("TESTCOOKIESENABLED");return!0}; g.A=function(w,M){if(w)return w[M.name]}; Qg=function(w){var M=g.AR("INNERTUBE_HOST_OVERRIDE");M&&(w=String(M)+String(ha(w)));return w}; Fv2=function(w){var M={};g.FW("json_condensed_response")&&(M.prettyPrint="false");return w=Mx(w,M)}; kS=function(w,M){var P=P===void 0?{}:P;w={method:M===void 0?"POST":M,mode:PF(w)?"same-origin":"cors",credentials:PF(w)?"same-origin":"include"};M={};for(var u=g.G(Object.keys(P)),X=u.next();!X.done;X=u.next())X=X.value,P[X]&&(M[X]=P[X]);Object.keys(M).length>0&&(w.headers=M);return w}; R1=function(){var w=/Chrome\/(\d+)/.exec(g.RK());return w?parseFloat(w[1]):NaN}; nB=function(){var w=/\sCobalt\/(\S+)\s/.exec(g.RK());if(!w)return NaN;var M=[];w=g.G(w[1].split("."));for(var P=w.next();!P.done;P=w.next())P=parseInt(P.value,10),P>=0&&M.push(P);return parseFloat(M.join("."))}; sL=function(){return g.vF("android")&&g.vF("chrome")&&!(g.vF("trident/")||g.vF("edge/"))&&!g.vF("cobalt")}; Ej5=function(){return g.vF("armv7")||g.vF("aarch64")||g.vF("android")}; g.KB=function(){return g.vF("cobalt")}; bL=function(){return g.vF("cobalt")&&g.vF("appletv")}; I1=function(){return g.vF("(ps3; leanback shell)")||g.vF("ps3")&&g.KB()}; Nsp=function(){return g.vF("(ps4; leanback shell)")||g.vF("ps4")&&g.KB()}; g.V64=function(){return g.KB()&&(g.vF("ps4 vr")||g.vF("ps4 pro vr"))}; AD=function(){var w=/WebKit\/([0-9]+)/.exec(g.RK());return!!(w&&parseInt(w[1],10)>=600)}; g$=function(){var w=/WebKit\/([0-9]+)/.exec(g.RK());return!!(w&&parseInt(w[1],10)>=602)}; mMH=function(){return g.vF("iemobile")||g.vF("windows phone")&&g.vF("edge")}; j9=function(){return(JD||r$)&&g.vF("applewebkit")&&!g.vF("version")&&(!g.vF("safari")||g.vF("gsa/"))}; tD=function(){return g.CB&&g.vF("version/")}; xS=function(){return g.vF("smart-tv")&&g.vF("samsung")}; g.vF=function(w){var M=g.RK();return M?M.toLowerCase().indexOf(w)>=0:!1}; OL=function(){return XYl()||j9()||tD()?!0:g.AR("EOM_VISITOR_DATA")?!1:!0}; a1=function(w,M){return M===void 0||M===null?w:M==="1"||M===!0||M===1||M==="True"?!0:!1}; wH=function(w,M,P){for(var u in P)if(P[u]==M)return P[u];return w}; iK=function(w,M){return M===void 0||M===null?w:Number(M)}; Mi=function(w,M){return M===void 0||M===null?w:M.toString()}; Pn=function(w,M){if(M){if(w==="fullwidth")return Infinity;if(w==="fullheight")return 0}return w&&(M=w.match(oj1))&&(w=Number(M[2]),M=Number(M[1]),!isNaN(w)&&!isNaN(M)&&w>0)?M/w:NaN}; uK=function(w){var M=w.docid||w.video_id||w.videoId||w.id;if(M)return M;M=w.raw_player_response;M||(w=w.player_response)&&(M=JSON.parse(w));return M&&M.videoDetails&&M.videoDetails.videoId||null}; GNl=function(w){return Xr(w,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.$F=function(w){return w==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||w==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; Xr=function(w,M){M=(M===void 0?0:M)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(M="EMBEDDED_PLAYER_MODE_PFL");var P=w.raw_embedded_player_response;if(!P&&(w=w.embedded_player_response))try{P=JSON.parse(w)}catch(u){return M}return P?wH(M,P.embeddedPlayerMode,yCl):M}; f0=function(w){Ha.call(this,w.message||w.description||w.name);this.isMissing=w instanceof Um;this.isTimeout=w instanceof yg&&w.errorCode=="net.timeout";this.isCanceled=w instanceof Ly}; Um=function(){Ha.call(this,"Biscotti ID is missing from server")}; DM4=function(){if(g.FW("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!OL())return Error("User has not consented - not fetching biscotti id.");var w=g.AR("PLAYER_VARS",{});if(g.HT(w,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(GNl(w))return Error("Biscotti id fetching has been disabled for pfl.")}; Tsz=function(){var w=DM4();if(w!==void 0)return TS(w);Wn||(Wn=DK("//googleads.g.doubleclick.net/pagead/id",qoM).then(YoF).NS(function(M){return z9l(2,M)})); return Wn}; YoF=function(w){w=w.xhr.responseText;if(!dd(w,")]}'"))throw new Um;w=JSON.parse(w.substr(4));if((w.type||1)>1)throw new Um;w=w.id;by5(w);Wn=TZ(w);dMz(18E5,2);return w}; z9l=function(w,M){M=new f0(M);by5("");Wn=zZ(M);w>0&&dMz(12E4,w-1);throw M;}; dMz=function(w,M){g.cF(function(){DK("//googleads.g.doubleclick.net/pagead/id",qoM).then(YoF,function(P){return z9l(M,P)}).NS(g.e0)},w)}; li5=function(){try{var w=g.Mj("yt.ads.biscotti.getId_");return w?w():Tsz()}catch(M){return TS(M)}}; e9z=function(w){w&&(w.dataset?w.dataset[LvR()]="true":Phx(w))}; Bsz=function(w){return w?w.dataset?w.dataset[LvR()]:w.getAttribute("data-loaded"):null}; LvR=function(){return QoR.loaded||(QoR.loaded="loaded".replace(/\-([a-z])/g,function(w,M){return M.toUpperCase()}))}; kNx=function(){var w=document;if("visibilityState"in w)return w.visibilityState;var M=hS+"VisibilityState";if(M in w)return w[M]}; cn=function(w,M){var P;K5(w,function(u){P=M[u];return!!P}); return P}; Zq=function(w){if(w.requestFullscreen)w=w.requestFullscreen(void 0);else if(w.webkitRequestFullscreen)w=w.webkitRequestFullscreen();else if(w.mozRequestFullScreen)w=w.mozRequestFullScreen();else if(w.msRequestFullscreen)w=w.msRequestFullscreen();else if(w.webkitEnterFullscreen)w=w.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return w instanceof Promise?w:Promise.resolve()}; p0=function(w){var M;g.Sh()?Hn()==w&&(M=document):M=w;return M&&(w=cn(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],M))?(M=w.call(M),M instanceof Promise?M:Promise.resolve()):Promise.resolve()}; R9z=function(w){return g.Nj(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(M){return"on"+M.toLowerCase()in w})}; njU=function(){var w=document;return g.Nj(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(M){return"on"+M.toLowerCase()in w})}; g.Sh=function(){return!!cn(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; Hn=function(w){w=w===void 0?!1:w;var M=cn(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(w)for(;M&&M.shadowRoot;)M=M.shadowRoot.fullscreenElement;return M?M:null}; Fr=function(w){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(w=w||window.event){this.event=w;for(var M in w)M in vj1||(this[M]=w[M]);this.scale=w.scale;this.rotation=w.rotation;var P=w.target||w.srcElement;P&&P.nodeType==3&&(P=P.parentNode);this.target=P;var u=w.relatedTarget; if(u)try{u=u.nodeName?u:null}catch(X){u=null}else this.type=="mouseover"?u=w.fromElement:this.type=="mouseout"&&(u=w.toElement);this.relatedTarget=u;this.clientX=w.clientX!=void 0?w.clientX:w.pageX;this.clientY=w.clientY!=void 0?w.clientY:w.pageY;this.keyCode=w.keyCode?w.keyCode:w.which;this.charCode=w.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=w.altKey;this.ctrlKey=w.ctrlKey;this.shiftKey=w.shiftKey;this.metaKey=w.metaKey;this.B=w.pageX;this.L=w.pageY}}catch(X){}}; sop=function(w){if(document.body&&document.documentElement){var M=document.body.scrollTop+document.documentElement.scrollTop;w.B=w.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);w.L=w.clientY+M}}; Kv2=function(w,M,P,u){u=u===void 0?{}:u;w.addEventListener&&(M!="mouseenter"||"onmouseenter"in document?M!="mouseleave"||"onmouseenter"in document?M=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(M="MozMousePixelScroll"):M="mouseout":M="mouseover");return ZN(Em,function(X){var U=typeof X[4]==="boolean"&&X[4]==!!u,f=g.XE(X[4])&&g.XE(u)&&g.pE(X[4],u);return!!X.length&&X[0]==w&&X[1]==M&&X[2]==P&&(U||f)})}; g.Ni=function(w,M,P,u){u=u===void 0?{}:u;if(!w||!w.addEventListener&&!w.attachEvent)return"";var X=Kv2(w,M,P,u);if(X)return X;X=++bZ1.count+"";var U=!(M!="mouseenter"&&M!="mouseleave"||!w.addEventListener||"onmouseenter"in document);var f=U?function(h){h=new Fr(h);if(!G6(h.relatedTarget,function(c){return c==w},!0))return h.currentTarget=w,h.type=M,P.call(w,h)}:function(h){h=new Fr(h); h.currentTarget=w;return P.call(w,h)}; f=g.j2(f);w.addEventListener?(M=="mouseenter"&&U?M="mouseover":M=="mouseleave"&&U?M="mouseout":M=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(M="MozMousePixelScroll"),Iip()||typeof u==="boolean"?w.addEventListener(M,f,u):w.addEventListener(M,f,!!u.capture)):w.attachEvent("on"+M,f);Em[X]=[w,M,P,f,u];return X}; gjU=function(w){return ACu(w,function(M){return g.w1(M,"ytp-ad-has-logging-urls")})}; ACu=function(w,M){var P=document.body||document;return g.Ni(P,"click",function(u){var X=G6(u.target,function(U){return U===P||M(U)},!0); X&&X!==P&&!X.disabled&&(u.currentTarget=X,w.call(X,u))})}; g.Vh=function(w){w&&(typeof w=="string"&&(w=[w]),g.tx(w,function(M){if(M in Em){var P=Em[M],u=P[0],X=P[1],U=P[3];P=P[4];u.removeEventListener?Iip()||typeof P==="boolean"?u.removeEventListener(X,U,P):u.removeEventListener(X,U,!!P.capture):u.detachEvent&&u.detachEvent("on"+X,U);delete Em[M]}}))}; mu=function(w){for(var M in Em)Em[M][0]==w&&g.Vh(M)}; oS=function(w){w=w||window.event;var M;w.composedPath&&typeof w.composedPath==="function"?M=w.composedPath():M=w.path;M&&M.length?w=M[0]:(w=w||window.event,w=w.target||w.srcElement,w.nodeType==3&&(w=w.parentNode));return w}; Gg=function(w){this.j=w;this.B=null;this.X=0;this.K=null;this.G=0;this.L=[];for(w=0;w<4;w++)this.L.push(0);this.C=0;this.Lu=g.Ni(window,"mousemove",(0,g.fC)(this.S,this));this.V=g.ZK((0,g.fC)(this.B3,this),25)}; yh=function(w){g.v.call(this);this.j=[];this.fg=w||this}; Dq=function(w,M,P,u){for(var X=0;X0?P:0;P=u?Date.now()+u*1E3:0;if((u=u?(0,g.YF)():zg())&&window.JSON){typeof M!=="string"&&(M=JSON.stringify(M,void 0));try{u.set(w,M,P)}catch(X){u.remove(w)}}}; g.dH=function(w){var M=zg(),P=(0,g.YF)();if(!M&&!P||!window.JSON)return null;try{var u=M.get(w)}catch(X){}if(typeof u!=="string")try{u=P.get(w)}catch(X){}if(typeof u!=="string")return null;try{u=JSON.parse(u,void 0)}catch(X){}return u}; rCy=function(){var w=(0,g.YF)();if(w&&(w=w.L("yt-player-quality")))return w.creation}; g.lK=function(w){try{var M=zg(),P=(0,g.YF)();M&&M.remove(w);P&&P.remove(w)}catch(u){}}; g.L0=function(){return g.dH("yt-remote-session-screen-id")}; joH=function(w){var M=this;this.L=void 0;this.B=!1;w.addEventListener("beforeinstallprompt",function(P){P.preventDefault();M.L=P}); w.addEventListener("appinstalled",function(){M.B=!0},{once:!0})}; eh=function(){if(!g.aF.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.aF.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.aF.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.aF.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.aF.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(w){return"WEB_DISPLAY_MODE_UNKNOWN"}}; Bn=function(){this.ul=!0}; Cz5=function(){Bn.instance||(Bn.instance=new Bn);return Bn.instance}; t6F=function(w){switch(w){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; xMu=function(){this.B=g.AR("ALT_PREF_COOKIE_NAME","PREF");this.L=g.AR("ALT_PREF_COOKIE_DOMAIN","youtube.com");var w=g.e9(this.B);w&&this.parse(w)}; g.kF=function(){Qh||(Qh=new xMu);return Qh}; g.RS=function(w,M){return!!((OZx("f"+(Math.floor(M/31)+1))||0)&1<0;)switch(w=X7.shift(),w.type){case "ERROR":ib.FH(w.payload);break;case "EVENT":ib.logEvent(w.eventType,w.payload)}}; UU=function(w){$1||(ib?ib.FH(w):(X7.push({type:"ERROR",payload:w}),X7.length>10&&X7.shift()))}; fA=function(w,M){$1||(ib?ib.logEvent(w,M):(X7.push({type:"EVENT",eventType:w,payload:M}),X7.length>10&&X7.shift()))}; WN=function(w){if(w.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; hh=function(w){return w.substr(0,w.indexOf(":"))||w}; g.cN=function(w,M,P,u,X){M=M===void 0?{}:M;P=P===void 0?$b5[w]:P;u=u===void 0?Uby[w]:u;X=X===void 0?fZp[w]:X;g.bK.call(this,P,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:w},M));this.type=w;this.message=P;this.level=u;this.B=X;Object.setPrototypeOf(this,g.cN.prototype)}; Zl=function(w,M){g.cN.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:M,foundObjectStores:w},$b5.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Zl.prototype)}; SP=function(w,M){var P=Error.call(this);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.index=w;this.objectStore=M;Object.setPrototypeOf(this,SP.prototype)}; pA=function(w,M,P,u){M=hh(M);var X=w instanceof Error?w:Error("Unexpected error: "+w);if(X instanceof g.cN)return X;w={objectStoreNames:P,dbName:M,dbVersion:u};if(X.name==="QuotaExceededError")return new g.cN("QUOTA_EXCEEDED",w);if(g.HN&&X.name==="UnknownError")return new g.cN("QUOTA_MAYBE_EXCEEDED",w);if(X instanceof SP)return new g.cN("MISSING_INDEX",Object.assign({},w,{objectStore:X.objectStore,index:X.index}));if(X.name==="InvalidStateError"&&WK1.some(function(U){return X.message.includes(U)}))return new g.cN("EXECUTE_TRANSACTION_ON_CLOSED_DB", w); if(X.name==="AbortError")return new g.cN("UNKNOWN_ABORT",w,X.message);X.args=[Object.assign({},w,{name:"IdbError",pY:X.name})];X.level="WARNING";return X}; g.F7=function(w,M,P){var u=wK();return new g.cN("IDB_NOT_SUPPORTED",{context:{caller:w,publicName:M,version:P,hasSucceededOnce:u==null?void 0:u.hasSucceededOnce}})}; hTy=function(w){if(!w)throw Error();throw w;}; cKR=function(w){return w}; EU=function(w){this.B=w}; g.NZ=function(w){function M(X){if(u.state.status==="PENDING"){u.state={status:"REJECTED",reason:X};X=g.G(u.L);for(var U=X.next();!U.done;U=X.next())U=U.value,U()}} function P(X){if(u.state.status==="PENDING"){u.state={status:"FULFILLED",value:X};X=g.G(u.B);for(var U=X.next();!U.done;U=X.next())U=U.value,U()}} var u=this;this.state={status:"PENDING"};this.B=[];this.L=[];w=w.B;try{w(P,M)}catch(X){M(X)}}; Zbl=function(w,M,P,u,X){try{if(w.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var U=P(w.state.value);U instanceof g.NZ?VS(w,M,U,u,X):u(U)}catch(f){X(f)}}; SRz=function(w,M,P,u,X){try{if(w.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var U=P(w.state.reason);U instanceof g.NZ?VS(w,M,U,u,X):u(U)}catch(f){X(f)}}; VS=function(w,M,P,u,X){M===P?X(new TypeError("Circular promise chain detected.")):P.then(function(U){U instanceof g.NZ?VS(w,M,U,u,X):u(U)},function(U){X(U)})}; Hby=function(w,M,P){function u(){P(w.error);U()} function X(){M(w.result);U()} function U(){try{w.removeEventListener("success",X),w.removeEventListener("error",u)}catch(f){}} w.addEventListener("success",X);w.addEventListener("error",u)}; pGU=function(w){return new Promise(function(M,P){Hby(w,M,P)})}; mm=function(w){return new g.NZ(new EU(function(M,P){Hby(w,M,P)}))}; om=function(w,M){return new g.NZ(new EU(function(P,u){function X(){var U=w?M(w):null;U?U.then(function(f){w=f;X()},u):P()} X()}))}; FKF=function(w,M){this.request=w;this.cursor=M}; EOl=function(w){return mm(w).then(function(M){return M?new FKF(w,M):null})}; g.NVU=function(w){w.cursor.continue(void 0);return EOl(w.request)}; Vry=function(w,M){this.B=w;this.options=M;this.transactionCount=0;this.C=Math.round((0,g.G$)());this.L=!1}; g.Dl=function(w,M,P){w=w.B.createObjectStore(M,P);return new yS(w)}; qZ=function(w,M){w.B.objectStoreNames.contains(M)&&w.B.deleteObjectStore(M)}; g.T$=function(w,M,P){return g.Y1(w,[M],{mode:"readwrite",UF:!0},function(u){return g.z$(u.objectStore(M),P)})}; g.Y1=function(w,M,P,u){var X,U,f,h,c,Z,S,H,p,F,E,y;return g.n(function(q){switch(q.L){case 1:var d={mode:"readonly",UF:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof P==="string"?d.mode=P:Object.assign(d,P);X=d;w.transactionCount++;U=X.UF?3:1;f=0;case 2:if(h){q.M0(4);break}f++;c=Math.round((0,g.G$)());g.DU(q,5);Z=w.B.transaction(M,X.mode);d=new dK(Z);d=mbR(d,u);return g.B(q,d,7);case 7:return S=q.B,H=Math.round((0,g.G$)()),oO2(w,c,H,f,void 0,M.join(),X),q.return(S);case 5:p=g.d4(q);F=Math.round((0,g.G$)()); E=pA(p,w.B.name,M.join(),w.B.version);if((y=E instanceof g.cN&&!E.B)||f>=U)oO2(w,c,F,f,E,M.join(),X),h=E;q.M0(2);break;case 4:return q.return(Promise.reject(h))}})}; oO2=function(w,M,P,u,X,U,f){M=P-M;X?(X instanceof g.cN&&(X.type==="QUOTA_EXCEEDED"||X.type==="QUOTA_MAYBE_EXCEEDED")&&fA("QUOTA_EXCEEDED",{dbName:hh(w.B.name),objectStoreNames:U,transactionCount:w.transactionCount,transactionMode:f.mode}),X instanceof g.cN&&X.type==="UNKNOWN_ABORT"&&(P-=w.C,P<0&&P>=2147483648&&(P=0),fA("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:U,transactionDuration:M,transactionCount:w.transactionCount,dbDuration:P}),w.L=!0),GV_(w,!1,u,U,M,f.tag),UU(X)):GV_(w,!0,u,U,M, f.tag)}; GV_=function(w,M,P,u,X,U){fA("TRANSACTION_ENDED",{objectStoreNames:u,connectionHasUnknownAbortedTransaction:w.L,duration:X,isSuccessful:M,tryCount:P,tag:U===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":U})}; yS=function(w){this.B=w}; g.lb=function(w,M,P){w.B.createIndex(M,P,{unique:!1})}; yKF=function(w,M){return g.LA(w,{query:M},function(P){return P.delete().then(function(){return g.eP(P)})}).then(function(){})}; Dbx=function(w,M,P){var u=[];return g.LA(w,{query:M},function(X){if(!(P!==void 0&&u.length>=P))return u.push(X.getValue()),g.eP(X)}).then(function(){return u})}; YR1=function(w){return"getAllKeys"in IDBObjectStore.prototype?mm(w.B.getAllKeys(void 0,void 0)):qR4(w)}; qR4=function(w){var M=[];return g.zTx(w,{query:void 0},function(P){M.push(P.cursor.primaryKey);return g.NVU(P)}).then(function(){return M})}; g.z$=function(w,M,P){return mm(w.B.put(M,P))}; g.LA=function(w,M,P){w=w.B.openCursor(M.query,M.direction);return BN(w).then(function(u){return om(u,P)})}; g.zTx=function(w,M,P){var u=M.query;M=M.direction;w="openKeyCursor"in IDBObjectStore.prototype?w.B.openKeyCursor(u,M):w.B.openCursor(u,M);return EOl(w).then(function(X){return om(X,P)})}; dK=function(w){var M=this;this.B=w;this.C=new Map;this.L=!1;this.done=new Promise(function(P,u){M.B.addEventListener("complete",function(){P()}); M.B.addEventListener("error",function(X){X.currentTarget===X.target&&u(M.B.error)}); M.B.addEventListener("abort",function(){var X=M.B.error;if(X)u(X);else if(!M.L){X=g.cN;for(var U=M.B.objectStoreNames,f=[],h=0;h=P))return u.push(X.getValue()),g.eP(X)}).then(function(){return u})}; g.QS=function(w,M,P){w=w.B.openCursor(M.query===void 0?null:M.query,M.direction===void 0?"next":M.direction);return BN(w).then(function(u){return om(u,P)})}; k1=function(w,M){this.request=w;this.cursor=M}; BN=function(w){return mm(w).then(function(M){return M?new k1(w,M):null})}; g.eP=function(w){w.cursor.continue(void 0);return BN(w.request)}; lZH=function(w,M,P){return new Promise(function(u,X){function U(){p||(p=new Vry(f.result,{closed:H}));return p} var f=M!==void 0?self.indexedDB.open(w,M):self.indexedDB.open(w);var h=P.blocked,c=P.blocking,Z=P.WFN,S=P.upgrade,H=P.closed,p;f.addEventListener("upgradeneeded",function(F){try{if(F.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(f.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");F.dataLoss&&F.dataLoss!=="none"&&fA("IDB_DATA_CORRUPTED",{reason:F.dataLossMessage||"unknown reason",dbName:hh(w)});var E=U(),y=new dK(f.transaction); S&&S(E,function(q){return F.oldVersion=q},y); y.done.catch(function(q){X(q)})}catch(q){X(q)}}); f.addEventListener("success",function(){var F=f.result;c&&F.addEventListener("versionchange",function(){c(U())}); F.addEventListener("close",function(){fA("IDB_UNEXPECTEDLY_CLOSED",{dbName:hh(w),dbVersion:F.version});Z&&Z()}); u(U())}); f.addEventListener("error",function(){X(f.error)}); h&&f.addEventListener("blocked",function(){h()})})}; LKu=function(w,M,P){P=P===void 0?{}:P;return lZH(w,M,P)}; Rm=function(w,M){M=M===void 0?{}:M;var P,u,X,U;return g.n(function(f){if(f.L==1)return g.DU(f,2),P=self.indexedDB.deleteDatabase(w),u=M,(X=u.blocked)&&P.addEventListener("blocked",function(){X()}),g.B(f,pGU(P),4); if(f.L!=2)return g.zp(f,0);U=g.d4(f);throw pA(U,w,"",-1);})}; nA=function(w,M){this.name=w;this.options=M;this.C=!0;this.G=this.X=0}; eTl=function(w,M){return new g.cN("INCOMPATIBLE_DB_VERSION",{dbName:w.name,oldVersion:w.options.version,newVersion:M})}; g.vN=function(w,M){if(!M)throw g.F7("openWithToken",hh(w.name));return w.open()}; BVu=function(w,M){var P;return g.n(function(u){if(u.L==1)return g.B(u,g.vN(sU,M),2);P=u.B;return u.return(g.Y1(P,["databases"],{UF:!0,mode:"readwrite"},function(X){var U=X.objectStore("databases");return U.get(w.actualName).then(function(f){if(f?w.actualName!==f.actualName||w.publicName!==f.publicName||w.userIdentifier!==f.userIdentifier:1)return g.z$(U,w).then(function(){})})}))})}; KA=function(w,M){var P;return g.n(function(u){if(u.L==1)return w?g.B(u,g.vN(sU,M),2):u.return();P=u.B;return u.return(P.delete("databases",w))})}; Q3U=function(w,M){var P,u;return g.n(function(X){return X.L==1?(P=[],g.B(X,g.vN(sU,M),2)):X.L!=3?(u=X.B,g.B(X,g.Y1(u,["databases"],{UF:!0,mode:"readonly"},function(U){P.length=0;return g.LA(U.objectStore("databases"),{},function(f){w(f.getValue())&&P.push(f.getValue());return g.eP(f)})}),3)):X.return(P)})}; kVl=function(w,M){return Q3U(function(P){return P.publicName===w&&P.userIdentifier!==void 0},M)}; RTl=function(){var w,M,P,u;return g.n(function(X){switch(X.L){case 1:w=wK();if((M=w)==null?0:M.hasSucceededOnce)return X.return(!0);if(bb&&AD()&&!g$()||g.Im)return X.return(!1);try{if(P=self,!(P.indexedDB&&P.IDBIndex&&P.IDBKeyRange&&P.IDBObjectStore))return X.return(!1)}catch(U){return X.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return X.return(!1);g.DU(X,2);u={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.B(X,BVu(u,Ah),4);case 4:return g.B(X,KA("yt-idb-test-do-not-use",Ah),5);case 5:return X.return(!0);case 2:return g.d4(X),X.return(!1)}})}; nOR=function(){if(gK!==void 0)return gK;$1=!0;return gK=RTl().then(function(w){$1=!1;var M;if((M=aS())!=null&&M.B){var P;M={hasSucceededOnce:((P=wK())==null?void 0:P.hasSucceededOnce)||w};var u;(u=aS())==null||u.set("LAST_RESULT_ENTRY_KEY",M,2592E3,!0)}return w})}; Jh=function(){return g.Mj("ytglobal.idbToken_")||void 0}; g.rK=function(){var w=Jh();return w?Promise.resolve(w):nOR().then(function(M){(M=M?Ah:void 0)&&g.ih("ytglobal.idbToken_",M);return M})}; vOM=function(w){if(!g.AS())throw w=new g.cN("AUTH_INVALID",{dbName:w}),UU(w),w;var M=g.IS();return{actualName:w+":"+M,publicName:w,userIdentifier:M}}; s3z=function(w,M,P,u){var X,U,f,h,c,Z;return g.n(function(S){switch(S.L){case 1:return U=(X=Error().stack)!=null?X:"",g.B(S,g.rK(),2);case 2:f=S.B;if(!f)throw h=g.F7("openDbImpl",w,M),g.FW("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+U.substring(U.indexOf("\n")+1)),UU(h),h;WN(w);c=P?{actualName:w,publicName:w,userIdentifier:void 0}:vOM(w);g.DU(S,3);return g.B(S,BVu(c,f),5);case 5:return g.B(S,LKu(c.actualName,M,u),6);case 6:return S.return(S.B);case 3:return Z=g.d4(S),g.DU(S,7),g.B(S,KA(c.actualName, f),9);case 9:g.zp(S,8);break;case 7:g.d4(S);case 8:throw Z;}})}; KKz=function(w,M,P){P=P===void 0?{}:P;return s3z(w,M,!1,P)}; bb5=function(w,M,P){P=P===void 0?{}:P;return s3z(w,M,!0,P)}; IZp=function(w,M){M=M===void 0?{}:M;var P,u;return g.n(function(X){if(X.L==1)return g.B(X,g.rK(),2);if(X.L!=3){P=X.B;if(!P)return X.return();WN(w);u=vOM(w);return g.B(X,Rm(u.actualName,M),3)}return g.B(X,KA(u.actualName,P),0)})}; AK4=function(w,M,P){w=w.map(function(u){return g.n(function(X){return X.L==1?g.B(X,Rm(u.actualName,M),2):g.B(X,KA(u.actualName,P),0)})}); return Promise.all(w).then(function(){})}; gOF=function(w){var M=M===void 0?{}:M;var P,u;return g.n(function(X){if(X.L==1)return g.B(X,g.rK(),2);if(X.L!=3){P=X.B;if(!P)return X.return();WN(w);return g.B(X,kVl(w,P),3)}u=X.B;return g.B(X,AK4(u,M,P),0)})}; JKx=function(w,M){M=M===void 0?{}:M;var P;return g.n(function(u){if(u.L==1)return g.B(u,g.rK(),2);if(u.L!=3){P=u.B;if(!P)return u.return();WN(w);return g.B(u,Rm(w,M),3)}return g.B(u,KA(w,P),0)})}; jP=function(w,M){nA.call(this,w,M);this.options=M;WN(w)}; rK4=function(w,M){var P;return function(){P||(P=new jP(w,M));return P}}; g.CA=function(w,M){return rK4(w,M)}; th=function(w){return g.vN(j34(),w)}; Ccl=function(w,M,P,u){var X,U,f;return g.n(function(h){switch(h.L){case 1:return X={config:w,hashData:M,timestamp:u!==void 0?u:(0,g.G$)()},g.B(h,th(P),2);case 2:return U=h.B,g.B(h,U.clear("hotConfigStore"),3);case 3:return g.B(h,g.T$(U,"hotConfigStore",X),4);case 4:return f=h.B,h.return(f)}})}; trF=function(w,M,P,u,X){var U,f,h;return g.n(function(c){switch(c.L){case 1:return U={config:w,hashData:M,configData:P,timestamp:X!==void 0?X:(0,g.G$)()},g.B(c,th(u),2);case 2:return f=c.B,g.B(c,f.clear("coldConfigStore"),3);case 3:return g.B(c,g.T$(f,"coldConfigStore",U),4);case 4:return h=c.B,c.return(h)}})}; xbx=function(w){var M,P;return g.n(function(u){return u.L==1?g.B(u,th(w),2):u.L!=3?(M=u.B,P=void 0,g.B(u,g.Y1(M,["coldConfigStore"],{mode:"readwrite",UF:!0},function(X){return g.QS(X.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(U){P=U.getValue()})}),3)):u.return(P)})}; ObU=function(w){var M,P;return g.n(function(u){return u.L==1?g.B(u,th(w),2):u.L!=3?(M=u.B,P=void 0,g.B(u,g.Y1(M,["hotConfigStore"],{mode:"readwrite",UF:!0},function(X){return g.QS(X.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(U){P=U.getValue()})}),3)):u.return(P)})}; aZ2=function(){return g.n(function(w){return g.B(w,gOF("ytGcfConfig"),0)})}; x1=function(){g.v.call(this);this.L=[];this.B=[];var w=g.Mj("yt.gcf.config.hotUpdateCallbacks");w?(this.L=[].concat(g.L(w)),this.B=w):(this.B=[],g.ih("yt.gcf.config.hotUpdateCallbacks",this.B))}; Pb=function(){var w=this;this.G=!1;this.C=this.X=0;this.K=new x1;this.yH={weL:function(){w.G=!0}, Op0:function(){return w.B}, zRu:function(M){OU(w,M)}, jB:function(M){w.jB(M)}, Y6u:function(M){am(w,M)}, l$:function(){return w.coldHashData}, Zt:function(){return w.hotHashData}, zy3:function(){return w.L}, tzu:function(){return w9()}, Yc3:function(){return iv()}, lgk:function(){return g.Mj("yt.gcf.config.coldHashData")}, VzN:function(){return g.Mj("yt.gcf.config.hotHashData")}, RfI:function(){wIU(w)}, a7u:function(){w.jB(void 0);M6(w);delete Pb.instance}, i19:function(M){w.C=M}, j43:function(){return w.C}}}; i_p=function(){if(!Pb.instance){var w=new Pb;Pb.instance=w}return Pb.instance}; u6y=function(w){var M;g.n(function(P){if(P.L==1)return g.FW("start_client_gcf")||g.FW("delete_gcf_config_db")?g.FW("start_client_gcf")?g.B(P,g.rK(),3):P.M0(2):P.return();P.L!=2&&((M=P.B)&&g.AS()&&!g.FW("delete_gcf_config_db")?(w.G=!0,wIU(w)):(MDx(w),Pol(w)));return g.FW("delete_gcf_config_db")?g.B(P,aZ2(),0):P.M0(0)})}; uv=function(){var w;return(w=iv())!=null?w:g.AR("RAW_HOT_CONFIG_GROUP")}; XI5=function(w){var M,P,u,X,U,f;return g.n(function(h){switch(h.L){case 1:if(w.L)return h.return(iv());if(!w.G)return M=g.F7("getHotConfig IDB not initialized"),CR(M),h.return(Promise.reject(M));P=Jh();u=g.AR("TIME_CREATED_MS");if(!P){X=g.F7("getHotConfig token error");CR(X);h.M0(2);break}return g.B(h,ObU(P),3);case 3:if((U=h.B)&&U.timestamp>u)return OU(w,U.config),w.jB(U.hashData),h.return(iv());case 2:Pol(w);if(!(P&&w.L&&w.hotHashData)){h.M0(4);break}return g.B(h,Ccl(w.L,w.hotHashData,P,u),4);case 4:return w.L? h.return(iv()):(f=new g.bK("Config not available in ytConfig"),CR(f),h.return(Promise.reject(f)))}})}; UBp=function(w){var M,P,u,X,U,f;return g.n(function(h){switch(h.L){case 1:if(w.B)return h.return(w9());if(!w.G)return M=g.F7("getColdConfig IDB not initialized"),CR(M),h.return(Promise.reject(M));P=Jh();u=g.AR("TIME_CREATED_MS");if(!P){X=g.F7("getColdConfig");CR(X);h.M0(2);break}return g.B(h,xbx(P),3);case 3:if((U=h.B)&&U.timestamp>u)return am(w,U.config),$BH(w,U.configData),M6(w,U.hashData),h.return(w9());case 2:MDx(w);if(!(P&&w.B&&w.coldHashData&&w.configData)){h.M0(4);break}return g.B(h,trF(w.B, w.coldHashData,w.configData,P,u),4);case 4:return w.B?h.return(w9()):(f=new g.bK("Config not available in ytConfig"),CR(f),h.return(Promise.reject(f)))}})}; wIU=function(w){if(!w.L||!w.B){if(!Jh()){var M=g.F7("scheduleGetConfigs");CR(M)}w.X||(w.X=g.kO.t5(function(){return g.n(function(P){switch(P.L){case 1:return g.DU(P,2),g.B(P,XI5(w),4);case 4:g.zp(P,3);break;case 2:g.d4(P);case 3:return g.DU(P,5),g.B(P,UBp(w),7);case 7:g.zp(P,6);break;case 5:g.d4(P);case 6:w.X&&(w.X=0),g.yx(P)}})},100))}}; fWR=function(w,M,P){var u,X,U;return g.n(function(f){switch(f.L){case 1:if(!g.FW("start_client_gcf")){f.M0(0);break}P&&OU(w,P);w.jB(M);u=Jh();if(!u){f.M0(3);break}if(P){f.M0(4);break}return g.B(f,ObU(u),5);case 5:X=f.B,P=(U=X)==null?void 0:U.config;case 4:return g.B(f,Ccl(P,M,u),3);case 3:if(P)for(var h=P,c=g.G(w.K.B),Z=c.next();!Z.done;Z=c.next())Z=Z.value,Z(h);g.yx(f)}})}; WZR=function(w,M,P){var u,X,U,f;return g.n(function(h){if(h.L==1){if(!g.FW("start_client_gcf"))return h.M0(0);M6(w,M);return(u=Jh())?P?h.M0(4):g.B(h,xbx(u),5):h.M0(0)}h.L!=4&&(X=h.B,P=(U=X)==null?void 0:U.config);if(!P)return h.M0(0);f=P.configData;return g.B(h,trF(P,M,f,u),0)})}; hu1=function(){var w=i_p(),M=(0,g.G$)()-w.C;if(!(w.C!==0&&M0&&(M.request={internalExperimentFlags:P});Z_F(w,void 0,M);SN2(void 0,M);H_u(void 0,M);pIM(w,void 0,M);FZU(void 0,M);g.FW("start_client_gcf")&&ERy(void 0,M);g.AR("DELEGATED_SESSION_ID")&& !g.FW("pageid_as_header_web")&&(M.user={onBehalfOfUser:g.AR("DELEGATED_SESSION_ID")});!g.FW("fill_delegate_context_in_gel_killswitch")&&(w=g.AR("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(M.user=Object.assign({},M.user,{serializedDelegationContext:w}));w=g.AR("INNERTUBE_CONTEXT");var u;if(g.FW("enable_persistent_device_token")&&(w==null?0:(u=w.client)==null?0:u.rolloutToken)){var X;M.client.rolloutToken=w==null?void 0:(X=w.client)==null?void 0:X.rolloutToken}u=Object;X=u.assign;w=M.client; P={};for(var U=g.G(Object.entries(OK(g.AR("DEVICE","")))),f=U.next();!f.done;f=U.next()){var h=g.G(f.value);f=h.next().value;h=h.next().value;f==="cbrand"?P.deviceMake=h:f==="cmodel"?P.deviceModel=h:f==="cbr"?P.browserName=h:f==="cbrver"?P.browserVersion=h:f==="cos"?P.osName=h:f==="cosver"?P.osVersion=h:f==="cplatform"&&(P.platform=h)}M.client=X.call(u,w,P);return M}; Z_F=function(w,M,P){w=w.iz;if(w==="WEB"||w==="MWEB"||w===1||w===2)if(M){P=E8(M,yb,96)||new yb;var u=eh();u=Object.keys(N1p).indexOf(u);u=u===-1?null:u;u!==null&&kG(P,3,u);yU(M,yb,96,P)}else P&&(P.client.mainAppWebInfo=(u=P.client.mainAppWebInfo)!=null?u:{},P.client.mainAppWebInfo.webDisplayMode=eh())}; SN2=function(w,M){var P=g.Mj("yt.embedded_player.embed_url");P&&(w?(M=E8(w,TX,7)||new TX,BR(M,4,P),yU(w,TX,7,M)):M&&(M.thirdParty={embedUrl:P}))}; H_u=function(w,M){var P;if(g.FW("web_log_memory_total_kbytes")&&((P=g.aF.navigator)==null?0:P.deviceMemory)){var u;P=(u=g.aF.navigator)==null?void 0:u.deviceMemory;w?a9(w,95,o9(P*1E6)):M&&(M.client.memoryTotalKbytes=""+P*1E6)}}; pIM=function(w,M,P){if(w.appInstallData)if(M){var u;P=(u=E8(M,GX,62))!=null?u:new GX;BR(P,6,w.appInstallData);yU(M,GX,62,P)}else P&&(P.client.configInfo=P.client.configInfo||{},P.client.configInfo.appInstallData=w.appInstallData)}; FZU=function(w,M){var P=ibu();P&&(w?kG(w,61,VDR[P]):M&&(M.client.connectionType=P));g.FW("web_log_effective_connection_type")&&(P=Pc4())&&(w?kG(w,94,mBp[P]):M&&(M.client.effectiveConnectionType=P))}; oRz=function(w,M,P){P=P===void 0?{}:P;var u={};g.AR("EOM_VISITOR_DATA")?u={"X-Goog-EOM-Visitor-Id":g.AR("EOM_VISITOR_DATA")}:u={"X-Goog-Visitor-Id":P.visitorData||g.AR("VISITOR_DATA","")};if(M&&M.includes("www.youtube-nocookie.com"))return u;M=P.kG||g.AR("AUTHORIZATION");M||(w?M="Bearer "+g.Mj("gapi.auth.getToken")().access_token:(w=Cz5().WS(fd),g.FW("pageid_as_header_web")||delete w["X-Goog-PageId"],u=Object.assign({},u,w)));M&&(u.Authorization=M);return u}; ERy=function(w,M){var P=hu1();if(P){var u=P.coldConfigData,X=P.coldHashData;P=P.hotHashData;if(w){var U;M=(U=E8(w,GX,62))!=null?U:new GX;u=BR(M,1,u);BR(u,3,X).jB(P);yU(w,GX,62,M)}else M&&(M.client.configInfo=M.client.configInfo||{},u&&(M.client.configInfo.coldConfigData=u),X&&(M.client.configInfo.coldHashData=X),P&&(M.client.configInfo.hotHashData=P))}}; Wb=function(w,M){this.version=w;this.args=M}; hi=function(w,M){this.topic=w;this.B=M}; Z8=function(w,M){var P=cb();P&&P.publish.call(P,w.toString(),w,M)}; DB_=function(w){var M=Gyz,P=cb();if(!P)return 0;var u=P.subscribe(M.toString(),function(X,U){var f=g.Mj("ytPubsub2Pubsub2SkipSubKey");f&&f==u||(f=function(){if(SU[u])try{if(U&&M instanceof hi&&M!=X)try{var h=M.B,c=U;if(!c.args||!c.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!h.LK){var Z=new h;h.LK=Z.version}var S=h.LK}catch(H){}if(!S||c.version!=S)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{U=Reflect.construct(h, g.LC(c.args))}catch(H){throw H.message="yt.pubsub2.Data.deserialize(): "+H.message,H;}}catch(H){throw H.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+M.toString()+": "+H.message,H;}w.call(window,U)}catch(H){g.ro(H)}},y_4[M.toString()]?g.tS()?g.kO.t5(f):g.cF(f,0):f())}); SU[u]=!0;Hb[M.toString()]||(Hb[M.toString()]=[]);Hb[M.toString()].push(u);return u}; zu2=function(){var w=qN5,M=DB_(function(P){w.apply(void 0,arguments);YN5(M)}); return M}; YN5=function(w){var M=cb();M&&(typeof w==="number"&&(w=[w]),g.tx(w,function(P){M.unsubscribeByKey(P);delete SU[P]}))}; cb=function(){return g.Mj("ytPubsub2Pubsub2Instance")}; pd=function(w,M,P){P=P===void 0?{sampleRate:.1}:P;Math.random()B1M||f=nRz&&(q6++,g.FW("abandon_compression_after_N_slow_zips")?D8===g.EL("compression_disable_point")&&q6>vR1&&(oX=!1):oX=!1);sCl(M);u.headers||(u.headers={});u.headers["Content-Encoding"]="gzip";u.postBody=w;u.postParams=void 0;X(P,u)}; KZ1=function(w){var M=M===void 0?!1:M;var P=P===void 0?!1:P;var u=(0,g.G$)(),X={startTime:u,ticks:{},infos:{}},U=M?g.Mj("yt.logging.gzipForFetch",!1):!0;if(oX&&U){if(!w.body)return w;try{var f=P?w.body:typeof w.body==="string"?w.body:JSON.stringify(w.body);U=f;if(!P&&typeof f==="string"){var h=euM(f);if(h!=null&&(h>B1M||h=nRz)if(q6++,g.FW("abandon_compression_after_N_slow_zips")||g.FW("abandon_compression_after_N_slow_zips_lr")){M=q6/D8;var Z=vR1/g.EL("compression_disable_point");D8>0&&D8%g.EL("compression_disable_point")===0&&M>=Z&&(oX=!1)}else oX=!1;sCl(X)}}w.headers=Object.assign({},{"Content-Encoding":"gzip"},w.headers||{});w.body=U;return w}catch(S){return CR(S),w}}else return w}; euM=function(w){try{return(new Blob(w.split(""))).size}catch(M){return CR(M),null}}; sCl=function(w){g.FW("gel_compression_csi_killswitch")||!g.FW("log_gel_compression_latency")&&!g.FW("log_gel_compression_latency_lr")||pd("gel_compression",w,{sampleRate:.1})}; zs=function(w){var M=this;this.Iw=this.B=!1;this.potentialEsfErrorCounter=this.L=0;this.handleError=function(){}; this.bO=function(){}; this.now=Date.now;this.qh=!1;this.yH={npu:function(S){M.ZC=S}, rPK:function(){M.Ar()}, H$:function(){M.X0()}, HS:function(S){return g.n(function(H){return g.B(H,M.HS(S),0)})}, Nl:function(S,H){return M.Nl(S,H)}, HD:function(){M.HD()}}; var P;this.Yr=(P=w.Yr)!=null?P:100;var u;this.HF=(u=w.HF)!=null?u:1;var X;this.wm=(X=w.wm)!=null?X:2592E6;var U;this.DP=(U=w.DP)!=null?U:12E4;var f;this.ZP=(f=w.ZP)!=null?f:5E3;var h;this.ZC=(h=w.ZC)!=null?h:void 0;this.T3=!!w.T3;var c;this.Wt=(c=w.Wt)!=null?c:.1;var Z;this.sZ=(Z=w.sZ)!=null?Z:10;w.handleError&&(this.handleError=w.handleError);w.bO&&(this.bO=w.bO);w.qh&&(this.qh=w.qh);w.Iw&&(this.Iw=w.Iw);this.nu=w.nu;this.HC=w.HC;this.V8=w.V8;this.K9=w.K9;this.sendFn=w.sendFn;this.uK=w.uK;this.n5= w.n5;YQ(this)&&(!this.nu||this.nu("networkless_logging"))&&b_F(this)}; b_F=function(w){YQ(w)&&!w.qh&&(w.B=!0,w.T3&&Math.random()<=w.Wt&&w.V8.Ps(w.ZC),w.HD(),w.K9.UH()&&w.Ar(),w.K9.listen(w.uK,w.Ar.bind(w)),w.K9.listen(w.n5,w.X0.bind(w)))}; gRp=function(w,M){if(!YQ(w))throw Error("IndexedDB is not supported: updateRequestHandlers");var P=M.options.onError?M.options.onError:function(){}; M.options.onError=function(X,U){var f,h,c,Z;return g.n(function(S){switch(S.L){case 1:f=IWU(U);(h=A_4(U))&&w.nu&&w.nu("web_enable_error_204")&&w.handleError(Error("Request failed due to compression"),M.url,U);if(!(w.nu&&w.nu("nwl_consider_error_code")&&f||w.nu&&!w.nu("nwl_consider_error_code")&&w.potentialEsfErrorCounter<=w.sZ)){S.M0(2);break}if(!w.K9.PT){S.M0(3);break}return g.B(S,w.K9.PT(),3);case 3:if(w.K9.UH()){S.M0(2);break}P(X,U);if(!w.nu||!w.nu("nwl_consider_error_code")||((c=M)==null?void 0: c.id)===void 0){S.M0(6);break}return g.B(S,w.V8.dU(M.id,w.ZC,!1),6);case 6:return S.return();case 2:if(w.nu&&w.nu("nwl_consider_error_code")&&!f&&w.potentialEsfErrorCounter>w.sZ)return S.return();w.potentialEsfErrorCounter++;if(((Z=M)==null?void 0:Z.id)===void 0){S.M0(8);break}return M.sendCount=400&&w<=599?!1:!0}; A_4=function(w){var M;w=w==null?void 0:(M=w.error)==null?void 0:M.code;return!(w!==400&&w!==415)}; J_M=function(){if(d9)return d9();var w={};d9=g.CA("LogsDatabaseV2",{Mk:(w.LogsRequestsStore={XW:2},w),shared:!1,upgrade:function(M,P,u){P(2)&&g.Dl(M,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});P(3);P(5)&&(u=u.objectStore("LogsRequestsStore"),u.B.indexNames.contains("newRequest")&&u.B.deleteIndex("newRequest"),g.lb(u,"newRequestV2",["status","interface","timestamp"]));P(7)&&qZ(M,"sapisid");P(9)&&qZ(M,"SWHealthLog")}, version:9});return d9()}; lv=function(w){return g.vN(J_M(),w)}; jCl=function(w,M){var P,u,X,U;return g.n(function(f){if(f.L==1)return P={startTime:(0,g.G$)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.B(f,lv(M),2);if(f.L!=3)return u=f.B,X=Object.assign({},w,{options:JSON.parse(JSON.stringify(w.options)),interface:g.AR("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.B(f,g.T$(u,"LogsRequestsStore",X),3);U=f.B;P.ticks.tc=(0,g.G$)();r_x(P);return f.return(U)})}; CoH=function(w,M){var P,u,X,U,f,h,c,Z;return g.n(function(S){if(S.L==1)return P={startTime:(0,g.G$)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.B(S,lv(M),2);if(S.L!=3)return u=S.B,X=g.AR("INNERTUBE_CONTEXT_CLIENT_NAME",0),U=[w,X,0],f=[w,X,(0,g.G$)()],h=IDBKeyRange.bound(U,f),c="prev",g.FW("use_fifo_for_networkless")&&(c="next"),Z=void 0,g.B(S,g.Y1(u,["LogsRequestsStore"],{mode:"readwrite",UF:!0},function(H){return g.QS(H.objectStore("LogsRequestsStore").index("newRequestV2"), {query:h,direction:c},function(p){p.getValue()&&(Z=p.getValue(),w==="NEW"&&(Z.status="QUEUED",p.update(Z)))})}),3); P.ticks.tc=(0,g.G$)();r_x(P);return S.return(Z)})}; tDR=function(w,M){var P;return g.n(function(u){if(u.L==1)return g.B(u,lv(M),2);P=u.B;return u.return(g.Y1(P,["LogsRequestsStore"],{mode:"readwrite",UF:!0},function(X){var U=X.objectStore("LogsRequestsStore");return U.get(w).then(function(f){if(f)return f.status="QUEUED",g.z$(U,f).then(function(){return f})})}))})}; xBl=function(w,M,P,u){P=P===void 0?!0:P;var X;return g.n(function(U){if(U.L==1)return g.B(U,lv(M),2);X=U.B;return U.return(g.Y1(X,["LogsRequestsStore"],{mode:"readwrite",UF:!0},function(f){var h=f.objectStore("LogsRequestsStore");return h.get(w).then(function(c){return c?(c.status="NEW",P&&(c.sendCount+=1),u!==void 0&&(c.options.compress=u),g.z$(h,c).then(function(){return c})):g.NZ.resolve(void 0)})}))})}; O_4=function(w,M){var P;return g.n(function(u){if(u.L==1)return g.B(u,lv(M),2);P=u.B;return u.return(P.delete("LogsRequestsStore",w))})}; aW4=function(w){var M,P;return g.n(function(u){if(u.L==1)return g.B(u,lv(w),2);M=u.B;P=(0,g.G$)()-2592E6;return g.B(u,g.Y1(M,["LogsRequestsStore"],{mode:"readwrite",UF:!0},function(X){return g.LA(X.objectStore("LogsRequestsStore"),{},function(U){if(U.getValue().timestamp<=P)return U.delete().then(function(){return g.eP(U)})})}),0)})}; wiM=function(){g.n(function(w){return g.B(w,gOF("LogsDatabaseV2"),0)})}; r_x=function(w){g.FW("nwl_csi_killswitch")||pd("networkless_performance",w,{sampleRate:1})}; M2y=function(w){return g.vN(iR5(),w)}; PUH=function(w){var M,P;g.n(function(u){if(u.L==1)return g.B(u,M2y(w),2);M=u.B;P=(0,g.G$)()-2592E6;return g.B(u,g.Y1(M,["SWHealthLog"],{mode:"readwrite",UF:!0},function(X){return g.LA(X.objectStore("SWHealthLog"),{},function(U){if(U.getValue().timestamp<=P)return U.delete().then(function(){return g.eP(U)})})}),0)})}; uqz=function(w){var M;return g.n(function(P){if(P.L==1)return g.B(P,M2y(w),2);M=P.B;return g.B(P,M.clear("SWHealthLog"),0)})}; g.Ld=function(w,M,P,u,X,U,f){X=X===void 0?"":X;U=U===void 0?!1:U;f=f===void 0?!1:f;if(w)if(P&&!g.KB())CR(new g.bK("Legacy referrer-scrubbed ping detected")),w&&XiH(w,void 0,{scrubReferrer:!0});else if(X)m5(w,M,"POST",X,u);else if(g.AR("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||u||f)m5(w,M,"GET","",u,void 0,U,f);else{b:{try{c:{var h=new qP_({url:w});if(h.B.dsh==="1")var c=null;else{var Z=h.B.ae;if(Z==="1"){var S=h.B.adurl;if(S)try{c={version:3,u7:decodeURIComponent(S),uH:J0(h.L,"act=1","ri=1",YPR(h))}; break c}catch(F){}}c=Z==="2"?{version:4,u7:J0(h.L,"dct=1","suid="+h.C,""),uH:J0(h.L,"act=1","ri=1","suid="+h.C)}:null}}if(c){var H=WY(w);var p=!(!H||!H.endsWith("/aclk")||mR(w,"ri")!=="1");break b}}catch(F){}p=!1}p?$Tp(w)?(M&&M(),P=!0):P=!1:P=!1;P||XiH(w,M)}}; $Tp=function(w,M){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(w,M===void 0?"":M))return!0}catch(P){}return!1}; XiH=function(w,M,P){P=P===void 0?{}:P;var u=new Image,X=""+UT1++;eU[X]=u;u.onload=u.onerror=function(){M&&eU[X]&&M();delete eU[X]}; P.scrubReferrer&&(u.referrerPolicy="no-referrer");u.src=w}; fYl=function(w){var M;return((M=document.featurePolicy)==null?0:M.allowedFeatures().includes("attribution-reporting"))?w+"&nis=6":w+"&nis=5"}; Qa=function(){Bb||(Bb=new Om("yt.offline"));return Bb}; WbR=function(w){if(g.FW("offline_error_handling")){var M=Qa().get("errors",!0)||{};M[w.message]={name:w.name,stack:w.stack};w.level&&(M[w.message].level=w.level);Qa().set("errors",M,2592E3,!0)}}; kQ=function(){this.B=new Map;this.L=!1}; RX=function(){if(!kQ.instance){var w=g.Mj("yt.networkRequestMonitor.instance")||new kQ;g.ih("yt.networkRequestMonitor.instance",w);kQ.instance=w}return kQ.instance}; nd=function(){g.WX.call(this);var w=this;this.L=!1;this.B=GKz();this.B.listen("networkstatus-online",function(){if(w.L&&g.FW("offline_error_handling")){var M=Qa().get("errors",!0);if(M){for(var P in M)if(M[P]){var u=new g.bK(P,"sent via offline_errors");u.name=M[P].name;u.stack=M[P].stack;u.level=M[P].level;g.ro(u)}Qa().set("errors",{},2592E3,!0)}}})}; h$y=function(){if(!nd.instance){var w=g.Mj("yt.networkStatusManager.instance")||new nd;g.ih("yt.networkStatusManager.instance",w);nd.instance=w}return nd.instance}; g.vb=function(w){w=w===void 0?{}:w;g.WX.call(this);var M=this;this.B=this.X=0;this.L=h$y();var P=g.Mj("yt.networkStatusManager.instance.listen").bind(this.L);P&&(w.rateLimit?(this.rateLimit=w.rateLimit,P("networkstatus-online",function(){cRp(M,"publicytnetworkstatus-online")}),P("networkstatus-offline",function(){cRp(M,"publicytnetworkstatus-offline")})):(P("networkstatus-online",function(){M.dispatchEvent("publicytnetworkstatus-online")}),P("networkstatus-offline",function(){M.dispatchEvent("publicytnetworkstatus-offline")})))}; cRp=function(w,M){w.rateLimit?w.B?(g.kO.Pw(w.X),w.X=g.kO.t5(function(){w.C!==M&&(w.dispatchEvent(M),w.C=M,w.B=(0,g.G$)())},w.rateLimit-((0,g.G$)()-w.B))):(w.dispatchEvent(M),w.C=M,w.B=(0,g.G$)()):w.dispatchEvent(M)}; Kd=function(){var w=zs.call;sY||(sY=new g.vb({Je3:!0,Ac3:!0}));w.call(zs,this,{V8:{Ps:aW4,dJ:O_4,pL:CoH,V3:tDR,dU:xBl,set:jCl},K9:sY,handleError:function(M,P,u){var X,U=u==null?void 0:(X=u.error)==null?void 0:X.code;if(U===400||U===415){var f;M=new g.bK(M.message,P,u==null?void 0:(f=u.error)==null?void 0:f.code);CR(M,void 0,void 0,void 0,!0)}else g.ro(M)}, bO:CR,sendFn:ZR2,now:g.G$,zU:WbR,HC:g.C0(),uK:"publicytnetworkstatus-online",n5:"publicytnetworkstatus-offline",T3:!0,Wt:.1,sZ:g.EL("potential_esf_error_limit",10),nu:g.FW,qh:!(g.AS()&&g.f5(document.location.toString())!=="www.youtube-nocookie.com")});this.C=new g.hC;g.FW("networkless_immediately_drop_all_requests")&&wiM();JKx("LogsDatabaseV2")}; bv=function(){var w=g.Mj("yt.networklessRequestController.instance");w||(w=new Kd,g.ih("yt.networklessRequestController.instance",w),g.FW("networkless_logging")&&g.rK().then(function(M){w.ZC=M;b_F(w);w.C.resolve();w.T3&&Math.random()<=w.Wt&&w.ZC&&PUH(w.ZC);g.FW("networkless_immediately_drop_sw_health_store")&&SKF(w)})); return w}; SKF=function(w){var M;g.n(function(P){if(!w.ZC)throw M=g.F7("clearSWHealthLogsDb"),M;return P.return(uqz(w.ZC).catch(function(u){w.handleError(u)}))})}; ZR2=function(w,M,P,u){u=u===void 0?!1:u;M=g.FW("web_fp_via_jspb")?Object.assign({},M):M;g.FW("use_cfr_monitor")&&HR4(w,M);if(g.FW("use_request_time_ms_header"))M.headers&&PF(w)&&(M.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.G$)())));else{var X;if((X=M.postParams)==null?0:X.requestTimeMs)M.postParams.requestTimeMs=Math.round((0,g.G$)())}P&&Object.keys(M).length===0?g.Ld(w):M.compress?M.postBody?(typeof M.postBody!=="string"&&(M.postBody=JSON.stringify(M.postBody)),ya(w,M.postBody, M,g.o1,u)):ya(w,JSON.stringify(M.postParams),M,GZ,u):g.o1(w,M)}; IX=function(w,M){g.FW("use_event_time_ms_header")&&PF(w)&&(M.headers||(M.headers={}),M.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.G$)())));return M}; HR4=function(w,M){var P=M.onError?M.onError:function(){}; M.onError=function(X,U){RX().requestComplete(w,!1);P(X,U)}; var u=M.onSuccess?M.onSuccess:function(){}; M.onSuccess=function(X,U){RX().requestComplete(w,!0);u(X,U)}}; g.Ai=function(w){this.config_=null;w?this.config_=w:c_5()&&(this.config_=g.XX())}; g.g9=function(w,M,P,u){function X(Z){try{if((Z===void 0?0:Z)&&u.retry&&!u.networklessOptions.bypassNetworkless)U.method="POST",u.networklessOptions.writeThenSend?bv().writeThenSend(c,U):bv().sendAndWrite(c,U);else if(u.compress){var S=!u.networklessOptions.writeThenSend;if(U.postBody){var H=U.postBody;typeof H!=="string"&&(H=JSON.stringify(U.postBody));ya(c,H,U,g.o1,S)}else ya(c,JSON.stringify(U.postParams),U,GZ,S)}else g.FW("web_all_payloads_via_jspb")?g.o1(c,U):GZ(c,U)}catch(p){if(p.name==="InvalidAccessError")CR(Error("An extension is blocking network request.")); else throw p;}} !g.AR("VISITOR_DATA")&&M!=="visitor_id"&&Math.random()<.01&&CR(new g.bK("Missing VISITOR_DATA when sending innertube request.",M,P,u));if(!w.isReady())throw w=new g.bK("innertube xhrclient not ready",M,P,u),g.ro(w),w;var U={headers:u.headers||{},method:"POST",postParams:P,postBody:u.postBody,postBodyFormat:u.postBodyFormat||"JSON",onTimeout:function(){u.onTimeout()}, onFetchTimeout:u.onTimeout,onSuccess:function(Z,S){if(u.onSuccess)u.onSuccess(S)}, onFetchSuccess:function(Z){if(u.onSuccess)u.onSuccess(Z)}, onError:function(Z,S){if(u.onError)u.onError(S)}, onFetchError:function(Z){if(u.onError)u.onError(Z)}, timeout:u.timeout,withCredentials:!0,compress:u.compress};U.headers["Content-Type"]||(U.headers["Content-Type"]="application/json");P="";var f=w.config_.f7;f&&(P=f);f=w.config_.BJ||!1;var h=oRz(f,P,u);Object.assign(U.headers,h);U.headers.Authorization&&!P&&f&&(U.headers["x-origin"]=window.location.origin);var c=iL(""+P+("/youtubei/"+w.config_.innertubeApiVersion+"/"+M),{alt:"json"});g.Mj("ytNetworklessLoggingInitializationOptions")&&pi5.isNwlInitialized?nOR().then(function(Z){X(Z)}):X(!1)}; g.ti=function(w,M,P){var u=g.Ji();if(u&&M){var X=u.subscribe(w,function(){function U(){r9[X]&&M.apply&&typeof M.apply=="function"&&M.apply(P||window,f)} var f=arguments;try{g.jU[w]?U():g.cF(U,0)}catch(h){g.ro(h)}},P); r9[X]=!0;Cd[w]||(Cd[w]=[]);Cd[w].push(X);return X}return 0}; Fbp=function(w){var M=g.ti("LOGGED_IN",function(P){w.apply(void 0,arguments);g.xQ(M)})}; g.xQ=function(w){var M=g.Ji();M&&(typeof w==="number"?w=[w]:typeof w==="string"&&(w=[parseInt(w,10)]),g.tx(w,function(P){M.unsubscribeByKey(P);delete r9[P]}))}; g.OY=function(w,M){var P=g.Ji();return P?P.publish.apply(P,arguments):!1}; NoF=function(w){var M=g.Ji();if(M)if(M.clear(w),w)EhR(w);else for(var P in Cd)EhR(P)}; g.Ji=function(){return g.aF.ytPubsubPubsubInstance}; EhR=function(w){Cd[w]&&(w=Cd[w],g.tx(w,function(M){r9[M]&&delete r9[M]}),w.length=0)}; g.aX=function(w,M,P){V22(w,M,P===void 0?null:P)}; V22=function(w,M,P){P=P===void 0?null:P;var u=mTF(w),X=document.getElementById(u),U=X&&Bsz(X),f=X&&!U;U?M&&M():(M&&(U=g.ti(u,M),M=""+g.UE(M),ohp[M]=U),f||(X=GXu(w,u,function(){Bsz(X)||(e9z(X),g.OY(u),g.cF(function(){NoF(u)},0))},P)))}; GXu=function(w,M,P,u){u=u===void 0?null:u;var X=g.HS("SCRIPT");X.id=M;X.onload=function(){P&&setTimeout(P,0)}; X.onreadystatechange=function(){switch(X.readyState){case "loaded":case "complete":X.onload()}}; u&&X.setAttribute("nonce",u);g.o7(X,g.Vb(w));w=document.getElementsByTagName("head")[0]||document.body;w.insertBefore(X,w.firstChild);return X}; mTF=function(w){var M=document.createElement("a");g.c1(M,w);w=M.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+B1(w)}; wG=function(w,M){if(w===M)w=!0;else if(Array.isArray(w)&&Array.isArray(M))w=g.jp(w,M,wG);else if(g.XE(w)&&g.XE(M))a:if(g.WT(w).length!=g.WT(M).length)w=!1;else{for(var P in w)if(!wG(w[P],M[P])){w=!1;break a}w=!0}else w=!1;return w}; UX=function(w){var M=g.Kz.apply(1,arguments);if(!i5(w)||M.some(function(u){return!i5(u)}))throw Error("Only objects may be merged."); M=g.G(M);for(var P=M.next();!P.done;P=M.next())MW(w,P.value)}; MW=function(w,M){for(var P in M)if(i5(M[P])){if(P in w&&!i5(w[P]))throw Error("Cannot merge an object into a non-object.");P in w||(w[P]={});MW(w[P],M[P])}else if(fx(M[P])){if(P in w&&!fx(w[P]))throw Error("Cannot merge an array into a non-array.");P in w||(w[P]=[]);yRU(w[P],M[P])}else w[P]=M[P];return w}; yRU=function(w,M){M=g.G(M);for(var P=M.next();!P.done;P=M.next())P=P.value,i5(P)?w.push(MW({},P)):fx(P)?w.push(yRU([],P)):w.push(P);return w}; i5=function(w){return typeof w==="object"&&!Array.isArray(w)}; fx=function(w){return typeof w==="object"&&Array.isArray(w)}; Wl=function(w){g.v.call(this);this.L=w}; hr=function(w){Wl.call(this,!0);this.B=w}; cl=function(w,M){g.v.call(this);var P=this;this.C=[];this.j=!1;this.L=0;this.G=this.K=this.X=!1;this.B3=null;var u=(0,g.fC)(w,M);this.B=new g.gV(function(){return u(P.B3)},300); g.b(this,this.B);this.S=this.V=Infinity}; DTM=function(w,M){if(!M)return!1;for(var P=0;P-1)throw Error("Deps cycle for: "+M);if(w.L.has(M))return w.L.get(M);if(!w.B.has(M)){if(u)return;throw Error("No provider for: "+M);}u=w.B.get(M);P.push(M);if(u.zi!==void 0)var X=u.zi;else if(u.HVW)X=u[ym]?ToH(w,u[ym],P):[],X=u.HVW.apply(u,g.L(X));else if(u.oC){X=u.oC;var U=X[ym]?ToH(w,X[ym],P):[];X=new (Function.prototype.bind.apply(X,[null].concat(g.L(U))))}else throw Error("Could not resolve providers for: "+M);P.pop();u.L3W||w.L.set(M,X); return X}; ToH=function(w,M,P){return M?M.map(function(u){return u instanceof mS?D2(w,u.key,P,!0):D2(w,u,P)}):[]}; YB=function(){qW||(qW=new z$y);return qW}; TJ=function(){var w,M;return"h5vcc"in zJ&&((w=zJ.h5vcc.traceEvent)==null?0:w.traceBegin)&&((M=zJ.h5vcc.traceEvent)==null?0:M.traceEnd)?1:"performance"in zJ&&zJ.performance.mark&&zJ.performance.measure?2:0}; dG=function(w){var M=TJ();switch(M){case 1:zJ.h5vcc.traceEvent.traceBegin("YTLR",w);break;case 2:zJ.performance.mark(w+"-start");break;case 0:break;default:Z7(M,"unknown trace type")}}; dT2=function(w){var M=TJ();switch(M){case 1:zJ.h5vcc.traceEvent.traceEnd("YTLR",w);break;case 2:M=w+"-start";var P=w+"-end";zJ.performance.mark(P);zJ.performance.measure(w,M,P);break;case 0:break;default:Z7(M,"unknown trace type")}}; lYl=function(w){var M,P;(P=(M=window).onerror)==null||P.call(M,w.message,"",0,0,w)}; Lb1=function(w){var M=this;var P=P===void 0?0:P;var u=u===void 0?g.C0():u;this.C=P;this.scheduler=u;this.L=new g.hC;this.B=w;for(w={xv:0};w.xv=1E3?X():u>=w?wj||(wj=iX(function(){X();wj=void 0},0)):U-h>=10&&(CUM(M,P.tier),f.X=U)}; ARR=function(w,M){if(w.endpoint==="log_event"){g.FW("more_accurate_gel_parser")&&gG().storePayload({isJspb:!1},w.payload);rG(w);var P=jW(w),u=new Map;u.set(P,[w.payload]);var X=Kb1(w.payload)||"";M&&(OX=new M);return new g.qa(function(U,f){OX&&OX.isReady()?t2l(u,OX,U,f,{bypassNetworkless:!0},!0,tr(X)):U()})}}; rRH=function(w,M,P){if(M.endpoint==="log_event"){rG(void 0,M);var u=jW(M,!0),X=new Map;X.set(u,[KP(M.payload)]);P&&(OX=new P);return new g.qa(function(U){OX&&OX.isReady()?xT4(X,OX,U,{bypassNetworkless:!0},!0,tr(w)):U()})}}; jW=function(w,M){var P="";if(w.dangerousLogToVisitorSession)P="visitorOnlyApprovedKey";else if(w.cttAuthInfo){if(M===void 0?0:M){M=w.cttAuthInfo.token;P=w.cttAuthInfo;var u=new KR;P.videoId?u.setVideoId(P.videoId):P.playlistId&&Zh(u,2,MU,D3(P.playlistId));Pm[M]=u}else M=w.cttAuthInfo,P={},M.videoId?P.videoId=M.videoId:M.playlistId&&(P.playlistId=M.playlistId),uX[w.cttAuthInfo.token]=P;P=w.cttAuthInfo.token}return P}; xB=function(w,M,P){w=w===void 0?{}:w;M=M===void 0?!1:M;new g.qa(function(u,X){var U=aE(M,P),f=U.C;U.C=!1;X_(U.L);X_(U.B);U.B=0;OX&&OX.isReady()?P===void 0&&g.FW("enable_web_tiered_gel")?ORu(u,X,w,M,300,f):ORu(u,X,w,M,P,f):(CUM(M,P),u())})}; ORu=function(w,M,P,u,X,U){var f=OX;P=P===void 0?{}:P;u=u===void 0?!1:u;X=X===void 0?200:X;U=U===void 0?!1:U;var h=new Map,c=new Map,Z={isJspb:u,cttAuthInfo:void 0,tier:X},S={isJspb:u,cttAuthInfo:void 0};if(u){M=g.G(Object.keys(Cx));for(X=M.next();!X.done;X=M.next())X=X.value,c=g.FW("enable_web_tiered_gel")?gG().smartExtractMatchingEntries({keys:[Z,S],sizeLimit:1E3}):gG().extractMatchingEntries({isJspb:!0,cttAuthInfo:X}),c.length>0&&h.set(X,c),(g.FW("web_fp_via_jspb_and_json")&&P.writeThenSend||!g.FW("web_fp_via_jspb_and_json"))&& delete Cx[X];xT4(h,f,w,P,!1,U)}else{h=g.G(Object.keys(Cx));for(Z=h.next();!Z.done;Z=h.next())Z=Z.value,S=g.FW("enable_web_tiered_gel")?gG().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:Z,tier:X},{isJspb:!1,cttAuthInfo:Z}],sizeLimit:1E3}):gG().extractMatchingEntries({isJspb:!1,cttAuthInfo:Z}),S.length>0&&c.set(Z,S),(g.FW("web_fp_via_jspb_and_json")&&P.writeThenSend||!g.FW("web_fp_via_jspb_and_json"))&&delete Cx[Z];t2l(c,f,w,M,P,!1,U)}}; CUM=function(w,M){function P(){xB({writeThenSend:!0},w,M)} w=w===void 0?!1:w;M=M===void 0?200:M;var u=aE(w,M),X=u===aY2||u===wF5?5E3:iBy;g.FW("web_gel_timeout_cap")&&!u.B&&(X=iX(function(){P()},X),u.B=X); X_(u.L);X=g.AR("LOGGING_BATCH_TIMEOUT",g.EL("web_gel_debounce_ms",1E4));g.FW("shorten_initial_gel_batch_timeout")&&$q&&(X=M9p);X=iX(function(){g.EL("gel_min_batch_size")>0?gG().getSequenceCount({cttAuthInfo:void 0,isJspb:w,tier:M})>=PL4&&P():P()},X); u.L=X}; t2l=function(w,M,P,u,X,U,f){X=X===void 0?{}:X;var h=Math.round((0,g.G$)()),c=w.size,Z=uW4(f);w=g.G(w);var S=w.next();for(f={};!S.done;f={YM:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,aD:void 0,Jb:void 0},S=w.next()){var H=g.G(S.value);S=H.next().value;H=H.next().value;f.batchRequest=g.Eu({context:g.$Q(M.config_||g.XX())});if(!g.uh(H)&&!g.FW("throw_err_when_logevent_malformed_killswitch")){u();break}f.batchRequest.events=H;(H=uX[S])&&XFz(f.batchRequest,S,H);delete uX[S];f.dangerousLogToVisitorSession= S==="visitorOnlyApprovedKey";$xl(f.batchRequest,h,f.dangerousLogToVisitorSession);Uxx(X);f.aD=function(p){g.FW("start_client_gcf")&&g.kO.t5(function(){return g.n(function(F){return g.B(F,fK_(p),0)})}); c--;c||P()}; f.YM=0;f.Jb=function(p){return function(){p.YM++;if(X.bypassNetworkless&&p.YM===1)try{g.g9(M,Z,p.batchRequest,Un({writeThenSend:!0},p.dangerousLogToVisitorSession,p.aD,p.Jb,U)),$q=!1}catch(F){g.ro(F),u()}c--;c||P()}}(f); try{g.g9(M,Z,f.batchRequest,Un(X,f.dangerousLogToVisitorSession,f.aD,f.Jb,U)),$q=!1}catch(p){g.ro(p),u()}}}; xT4=function(w,M,P,u,X,U){u=u===void 0?{}:u;var f=Math.round((0,g.G$)()),h={value:w.size},c=new Map([].concat(g.L(w)));c=g.G(c);for(var Z=c.next();!Z.done;Z=c.next()){var S=g.G(Z.value).next().value,H=w.get(S);Z=new sV5;var p=M.config_||g.XX(),F=new e2,E=new DY;BR(E,1,p.o3);BR(E,2,p.N$);kG(E,16,p.PJ);BR(E,17,p.innertubeContextClientVersion);if(p.n3){var y=p.n3,q=new GX;y.coldConfigData&&BR(q,1,y.coldConfigData);y.appInstallData&&BR(q,6,y.appInstallData);y.coldHashData&&BR(q,3,y.coldHashData);y.hotHashData&& q.jB(y.hotHashData);yU(E,GX,62,q)}(y=g.aF.devicePixelRatio)&&y!=1&&a9(E,65,fP(y));y=Nx();y!==""&&BR(E,54,y);y=Vg();if(y.length>0){q=new zX;for(var d=0;d65535&&(w=1);Ig("BATCH_CLIENT_COUNTER",w);return w}; XFz=function(w,M,P){if(P.videoId)var u="VIDEO";else if(P.playlistId)u="PLAYLIST";else return;w.credentialTransferTokenTargetId=P;w.context=w.context||{};w.context.user=w.context.user||{};w.context.user.credentialTransferTokens=[{token:M,scope:u}]}; rG=function(w,M){var P=g.Mj("yt.logging.transport.enableScrapingForTest"),u=pB("il_payload_scraping");u=(u!==void 0?String(u):"")==="enable_il_payload_scraping";if(!P)if(u)hg=[],g.ih("yt.logging.transport.enableScrapingForTest",!0),g.ih("yt.logging.transport.scrapedPayloadsForTesting",hg),g.ih("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.ih("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.ih("yt.logging.transport.scrapeClientEvent",!0);else return;P=g.Mj("yt.logging.transport.scrapedPayloadsForTesting");u=g.Mj("yt.logging.transport.payloadToScrape");M&&(M=M.payload,(M=g.Mj("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(M)())&&P.push(M));M=g.Mj("yt.logging.transport.scrapeClientEvent");if(u&&u.length>=1)for(var X=0;X0&&dx_(w,M,U)}else dx_(w,M)}; dx_=function(w,M,P){w=lK4(w);M=M?g.HY(M):"";P=P||5;OL()&&g.LB(w,M,P)}; lK4=function(w){for(var M=g.G(L5y),P=M.next();!P.done;P=M.next())w=o4(w,P.value);return"ST-"+B1(w).toString(36)}; eW1=function(w){if(w.name==="JavaException")return!0;w=w.stack;return w.includes("chrome://")||w.includes("-extension://")||w.includes("webkit-masked-url://")}; B$2=function(w){if(!w.stack)return!0;var M=!w.stack.includes("\n");return M&&w.stack.includes("ErrorType: ")||M&&w.stack.includes("Anonymous function (Unknown script")||w.stack.toLowerCase()==="not available"||w.fileName==="user-script"||w.fileName.startsWith("user-script:")?!0:!1}; Q11=function(){this.D$=[];this.mV=[]}; ox=function(){if(!mD){var w=mD=new Q11;w.mV.length=0;w.D$.length=0;kZx(w,RW4)}return mD}; kZx=function(w,M){M.mV&&w.mV.push.apply(w.mV,M.mV);M.D$&&w.D$.push.apply(w.D$,M.D$)}; nS4=function(w){function M(){return w.charCodeAt(u++)} var P=w.length,u=0;do{var X=Gw(M);if(X===Infinity)break;var U=X>>3;switch(X&7){case 0:X=Gw(M);if(U===2)return X;break;case 1:if(U===2)return;u+=8;break;case 2:X=Gw(M);if(U===2)return w.substr(u,X);u+=X;break;case 5:if(U===2)return;u+=4;break;default:return}}while(u500));u++);u=X}else if(typeof w==="object")for(X in w){if(w[X]){var U=X;var f=w[X],h=M,c=P;U=typeof f!=="string"||U!=="clickTrackingParams"&&U!=="trackingParams"?0:(f=nS4(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?yn(U+".ve",f,h,c):0;u+=U;u+=yn(X,w[X],M,P);if(u>500)break}}else P[M]=Dr(w),u+=P[M].length;else P[M]=Dr(w),u+=P[M].length;return u}; yn=function(w,M,P,u){P+="."+w;w=Dr(M);u[P]=w;return P.length+w.length}; Dr=function(w){try{return(typeof w==="string"?w:String(JSON.stringify(w))).substr(0,500)}catch(M){return"unable to serialize "+typeof w+" ("+M.message+")"}}; PN=function(w){g.qU(w)}; g.Yq=function(w){g.qU(w,"WARNING")}; g.qU=function(w,M){var P=P===void 0?{}:P;P.name=g.AR("INNERTUBE_CONTEXT_CLIENT_NAME",1);P.version=g.AR("INNERTUBE_CONTEXT_CLIENT_VERSION");M=M===void 0?"ERROR":M;var u=!1;M=M===void 0?"ERROR":M;u=u===void 0?!1:u;if(w){w.hasOwnProperty("level")&&w.level&&(M=w.level);if(g.FW("console_log_js_exceptions")){var X=[];X.push("Name: "+w.name);X.push("Message: "+w.message);w.hasOwnProperty("params")&&X.push("Error Params: "+JSON.stringify(w.params));w.hasOwnProperty("args")&&X.push("Error args: "+JSON.stringify(w.args)); X.push("File name: "+w.fileName);X.push("Stacktrace: "+w.stack);window.console.log(X.join("\n"),w)}if(!(s14>=5)){X=[];for(var U=g.G(K5u),f=U.next();!f.done;f=U.next()){f=f.value;try{f()&&X.push(f())}catch(y){}}X=[].concat(g.L(bB2),g.L(X));var h=Xay(w);U=h.message||"Unknown Error";f=h.name||"UnknownError";var c=h.stack||w.L||"Not available";if(c.startsWith(f+": "+U)){var Z=c.split("\n");Z.shift();c=Z.join("\n")}Z=h.lineNumber||"Not available";h=h.fileName||"Not available";var S=0;if(w.hasOwnProperty("args")&& w.args&&w.args.length)for(var H=0;H=500);H++);else if(w.hasOwnProperty("params")&&w.params){var p=w.params;if(typeof w.params==="object")for(H in p){if(p[H]){var F="params."+H,E=Dr(p[H]);P[F]=E;S+=F.length+E.length;if(S>500)break}}else P.params=Dr(p)}if(X.length)for(H=0;H=500);H++);navigator.vendor&&!P.hasOwnProperty("vendor")&&(P["device.vendor"]=navigator.vendor);P={message:U,name:f,lineNumber:Z, fileName:h,stack:c,params:P,sampleWeight:1};H=Number(w.columnNumber);isNaN(H)||(P.lineNumber=P.lineNumber+":"+H);if(w.level==="IGNORED")w=0;else a:{w=ox();H=g.G(w.mV);for(X=H.next();!X.done;X=H.next())if(X=X.value,P.message&&P.message.match(X.E6)){w=X.weight;break a}w=g.G(w.D$);for(H=w.next();!H.done;H=w.next())if(H=H.value,H.callback(P)){w=H.weight;break a}w=1}P.sampleWeight=w;w=g.G(IKM);for(H=w.next();!H.done;H=w.next())if(H=H.value,H.CY[P.name])for(U=g.G(H.CY[P.name]),X=U.next();!X.done;X=U.next())if(f= X.value,X=P.message.match(f.lI)){P.params["params.error.original"]=X[0];U=f.groups;f={};for(Z=0;Z1E3&&g.Yq(new g.bK("IL Attach cache exceeded limit"))}h= sn(P,M);Qn.has(h)?Kq(P,M):Rx.set(h,!0)}}u=u.filter(function(S){S.csn!==M?(S.csn=M,S=!0):S=!1;return S}); P={csn:M,parentVe:P.getAsJson(),childVes:g.EV(u,function(S){return S.getAsJson()})}; M==="UNDEFINED_CSN"?bX("visualElementAttached",U,P):w?Zr("visualElementAttached",P,w,U):g.ub("visualElementAttached",P,U)}; urx=function(w,M,P,u,X){Ix(P,M);u=Bm({cttAuthInfo:NU(M)||void 0},M);P={csn:M,ve:P.getAsJson(),eventType:1};X&&(P.clientData=X);M==="UNDEFINED_CSN"?bX("visualElementShown",u,P):w?Zr("visualElementShown",P,w,u):g.ub("visualElementShown",P,u)}; XnF=function(w,M,P,u){var X=(u=u===void 0?!1:u)?16:8;u=Bm({cttAuthInfo:NU(M)||void 0,endOfSequence:u},M);P={csn:M,ve:P.getAsJson(),eventType:X};M==="UNDEFINED_CSN"?bX("visualElementHidden",u,P):w?Zr("visualElementHidden",P,w,u):g.ub("visualElementHidden",P,u)}; gj=function(w,M,P,u,X){Ag(w,M,P,void 0,u,X)}; Ag=function(w,M,P,u,X){Ix(P,M);u=u||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var U=Bm({cttAuthInfo:NU(M)||void 0},M);P={csn:M,ve:P.getAsJson(),gestureType:u};X&&(P.clientData=X);M==="UNDEFINED_CSN"?bX("visualElementGestured",U,P):w?Zr("visualElementGestured",P,w,U):g.ub("visualElementGestured",P,U)}; $i2=function(){var w=SW(16);for(var M=[],P=0;P0&&P.push(g.HS("BR"));P.push(g.pj(U))}):P.push(g.pj(u))}return P}; uu=function(w,M,P,u){if(P==="child"){g.ES(M);var X;u===void 0?X=void 0:X=!Array.isArray(u)||u&&typeof u.W==="string"?[u]:u;P=fq1(w,X);P=g.G(P);for(w=P.next();!w.done;w=P.next())M.appendChild(w.value)}else P==="style"?g.A1(M,"cssText",u?u:""):u===null||u===void 0?M.removeAttribute(P):(w=u.toString(),P==="href"&&(w=g.Xj(g.W1(w))),M.setAttribute(P,w))}; g.r=function(w){g.Mo.call(this,w);this.J9=!0;this.G=!1;this.listeners=[]}; g.XT=function(w){g.r.call(this,w);this.Yu=new g.wC;g.b(this,this.Yu)}; $r=function(w,M,P,u,X,U,f){f=f===void 0?null:f;g.XT.call(this,M);this.api=w;this.macros={};this.componentType=P;this.j=this.V=null;this.bW=f;this.layoutId=u;this.interactionLoggingClientData=X;this.Tk=U;this.t9=null;this.s3=new hr(this.element);g.b(this,this.s3);this.Z3=this.Y(this.element,"click",this.onClick);this.ys=[];this.mN=new cl(this.onClick,this);g.b(this,this.mN);this.cj=!1;this.xu=this.B3=null}; U4=function(w,M){w=w===void 0?null:w;M=M===void 0?null:M;if(w==null)return g.Yq(Error("Got null or undefined adText object")),"";var P=g.et(w.text);if(!w.isTemplated)return P;if(M==null)return g.Yq(Error("Missing required parameters for a templated message")),P;w=g.G(Object.entries(M));for(M=w.next();!M.done;M=w.next()){var u=g.G(M.value);M=u.next().value;u=u.next().value;P=P.replace("{"+M+"}",u)}return P}; Wu5=function(w){w=w===void 0?null:w;return w!=null&&(w=w.thumbnail,w!=null&&w.thumbnails!=null&&w.thumbnails.length!=0&&w.thumbnails[0].url!=null)?g.et(w.thumbnails[0].url):""}; hDU=function(w){w=w===void 0?null:w;return w!=null&&(w=w.thumbnail,w!=null&&w.thumbnails!=null&&w.thumbnails.length!=0&&w.thumbnails[0].width!=null&&w.thumbnails[0].height!=null)?new g.rq(w.thumbnails[0].width||0,w.thumbnails[0].height||0):new g.rq(0,0)}; g.ff=function(w){if(w.simpleText)return w.simpleText;if(w.runs){var M=[];w=g.G(w.runs);for(var P=w.next();!P.done;P=w.next())P=P.value,P.text&&M.push(P.text);return M.join("")}return""}; g.Wz=function(w){if(w.simpleText)return w=document.createTextNode(w.simpleText),w;var M=[];if(w.runs)for(var P=0;P1){for(var M=[w[0]],P=1;P0&&(this.B=new g.gV(this.GP,M,this),g.b(this,this.B));this.G=new g.gV(this.GP,P,this);g.b(this,this.G);this.V=d2l(this.L,X,1,u);g.b(this,this.V);this.j=d2l(this.L,0,u,1);g.b(this,this.j);this.X=new yh;g.b(this,this.X)}; i0=function(w,M,P){this.L=w;this.isAsync=M;this.B=P}; iA1=function(w){switch(w){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Z7(w,"unknown result type")}}; MP1=function(w,M){var P=1;w.isTrusted===!1&&(P=0);Ig("ISDSTAT",P);M9(P,"i.s_",{triggerContext:"sk",metadata:M});return P}; Pbu=function(w,M){var P=[];M?M.isTrusted===!0?P.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):M.isTrusted===!1?P.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):P.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):P.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");M9(0,"a.s_",{metadata:w,states:P});Ig("ASDSTAT",0)}; M9=function(w,M,P){M=u7z[M];var u,X,U={detected:w===0,source:""+M.L+((u=P.triggerContext)!=null?u:"")+((X=P.Gn)!=null?X:""),detectionStates:P.states,durationMs:P.e6};P.metadata&&(U.contentCpn=P.metadata.contentCpn,U.adCpn=P.metadata.adCpn);g.ub("biscottiBasedDetection",U);M.B!==void 0&&(P=Number(g.AR("CATSTAT",0)),M.B!==void 0?(M=M.B,w=iA1(w),w=P&~(3<0}; Wj=function(w,M,P,u,X,U){Jw.call(this,w,{W:"div",T:"ytp-ad-skip-button-slot"},"skip-button",M,P,u,X);var f=this;this.Lu=null;this.Cu=!1;this.OO=U;this.K=this.api.N().experiments.nu("enable_modern_skip_button_on_web");this.jL=!1;this.X=new g.XT({W:"span",d$:["ytp-ad-skip-button-container"]});this.K&&this.X.element.classList.add("ytp-ad-skip-button-container-detached");g.b(this,this.X);this.X.XK(this.element);this.L=this.C=null;this.iW=new g.Cf(this.X,500,!1,100,function(){return f.hide()}); g.b(this,this.iW);this.UO=new wM(this.X.element,15E3,5E3,.5,.5,this.K);g.b(this,this.UO);this.hide()}; $ZR=function(w){w=w.Lu&&w.Lu.adRendererCommands;return(w&&w.clickCommand&&g.A(w.clickCommand,g.cj)&&g.A(w.clickCommand,g.cj).commands||[]).some(function(M){return M.adLifecycleCommand?XNH(M.adLifecycleCommand):!1})}; XNH=function(w){return w.action==="END_LINEAR_AD"||w.action==="END_LINEAR_AD_PLACEMENT"}; Zk=function(w,M,P,u,X,U){Jw.call(this,w,{W:"div",T:"ytp-ad-skip-ad-slot"},"skip-ad",M,P,u,X);this.Lu=U;this.X=!1;this.K=0;this.C=this.L=null;this.hide()}; UZF=function(w,M){w.X||(w.X=!0,w.L&&(M?w.L.Lu.hide():w.L.hide()),M?(w=w.C,w.iW.show(),w.show()):w.C.show())}; Sw=function(w,M,P,u){Yr.call(this,w,M,P,u,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; Hj=function(w,M,P,u,X,U,f){U=U===void 0?!1:U;f=f===void 0?!1:f;$r.call(this,w,{W:"span",T:"ytp-ad-simple-ad-badge"},"simple-ad-badge",M,P,u);this.C=X;this.B=this.RI("ytp-ad-simple-ad-badge");(this.L=U)&&this.B.classList.add("ytp-ad-simple-ad-badge--clean-player");f&&this.B.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; pW=function(w,M,P,u,X){X=X===void 0?!1:X;ax.call(this,"player-overlay",w,{},M,u);this.videoAdDurationSeconds=P;this.interactionLoggingClientData=u;this.CJ=X}; F$=function(w,M){g.wC.call(this);this.api=w;this.durationMs=M;this.B=null;this.bB=new yh(this);g.b(this,this.bB);this.L=flx;this.bB.Y(this.api,"presentingplayerstatechange",this.oh);this.B=this.bB.Y(this.api,"onAdPlaybackProgress",this.Ub)}; Eg=function(w){g.wC.call(this);this.B=!1;this.IY=0;this.bB=new yh(this);g.b(this,this.bB);this.durationMs=w;this.timer=new g.e7(100);g.b(this,this.timer);this.bB.Y(this.timer,"tick",this.Ub);this.L={seekableStart:0,seekableEnd:w/1E3,current:0};this.start()}; g.N9=function(w,M){var P=Math.abs(Math.floor(w)),u=Math.floor(P/86400),X=Math.floor(P%86400/3600),U=Math.floor(P%3600/60);P=Math.floor(P%60);if(M){M="";u>0&&(M+=" "+u+" d\u00edas");if(u>0||X>0)M+=" "+X+" horas";M+=" "+U+" minutos";M+=" "+P+" segundos";u=M.trim()}else{M="";u>0&&(M+=u+":",X<10&&(M+="0"));if(u>0||X>0)M+=X+":",U<10&&(M+="0");M+=U+":";P<10&&(M+="0");u=M+P}return w>=0?u:"-"+u}; g.VP=function(w){return(!("button"in w)||typeof w.button!=="number"||w.button===0)&&!("shiftKey"in w&&w.shiftKey)&&!("altKey"in w&&w.altKey)&&!("metaKey"in w&&w.metaKey)&&!("ctrlKey"in w&&w.ctrlKey)}; mo=function(w,M,P,u,X,U,f){Jw.call(this,w,{W:"span",T:f?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",M,P,u,X);this.videoAdDurationSeconds=U;this.L=null;f&&this.api.N().L&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),bb&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; od=function(w,M,P,u){Aw.call(this,w,M,P,u,"ytp-video-ad-top-bar-title","ad-title")}; GO=function(w){this.content=w.content;if(w.commandRuns){w=g.G(w.commandRuns);for(var M=w.next();!M.done;M=w.next())M=M.value,this.loggingDirectives=g.A(M,Wmy),M.onTap&&(this.interaction={onTap:M.onTap})}}; yP=function(w,M,P,u){$r.call(this,w,{W:"div",T:"ad-simple-attributed-string"},"ad-simple-attributed-string",M,P,u);this.hide()}; Dk=function(w,M,P,u,X){$r.call(this,w,{W:"span",T:X?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",M,P,u);this.L=X;this.adBadgeText=new yP(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk);this.adBadgeText.XK(this.element);g.b(this,this.adBadgeText);X?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),bb&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; q9=function(w,M,P,u){$r.call(this,w,{W:"span",T:"ytp-ad-pod-index"},"ad-pod-index",M,P,u);this.api.N().L&&(this.element.classList.add("ytp-ad-pod-index--mweb"),bb&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; Y9=function(w,M,P,u){$r.call(this,w,{W:"div",T:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",M,P,u);this.hide()}; zO=function(w,M){this.L=w;this.B=M}; hNz=function(w,M){return w.L+M*(w.B-w.L)}; TO=function(w,M,P){return w.B-w.L?g.bi((M-w.L)/(w.B-w.L),0,1):P!=null?P:Infinity}; dM=function(w,M,P,u){u=u===void 0?!1:u;g.XT.call(this,{W:"div",T:"ytp-ad-persistent-progress-bar-container",J:[{W:"div",T:"ytp-ad-persistent-progress-bar"}]});this.api=w;this.L=M;this.C=P;u&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.b(this,this.L);this.progressBar=this.RI("ytp-ad-persistent-progress-bar");this.B=-1;this.Y(w,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; l0=function(w,M,P,u,X,U){$r.call(this,w,{W:"div",T:"ytp-ad-player-overlay",J:[{W:"div",T:"ytp-ad-player-overlay-flyout-cta"},{W:"div",T:"ytp-ad-player-overlay-instream-info"},{W:"div",T:"ytp-ad-player-overlay-skip-or-preview"},{W:"div",T:"ytp-ad-player-overlay-progress-bar"},{W:"div",T:"ytp-ad-player-overlay-instream-user-sentiment"},{W:"div",T:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",M,P,u);this.S=U;this.K=this.RI("ytp-ad-player-overlay-flyout-cta");this.K.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.B=this.RI("ytp-ad-player-overlay-instream-info");this.X=null;chH(this)&&(w=S0("div"),g.io(w,"ytp-ad-player-overlay-top-bar-gradients"),M=this.B,M.parentNode&&M.parentNode.insertBefore(w,M),(M=this.api.getVideoData(2))&&M.isListed&&M.title&&(P=new od(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),P.XK(w),P.init(On("ad-title"),{text:M.title},this.macros),g.b(this,P)),this.X=w);this.C=null;this.eL=this.RI("ytp-ad-player-overlay-skip-or-preview");this.UO=this.RI("ytp-ad-player-overlay-progress-bar"); this.Cu=this.RI("ytp-ad-player-overlay-instream-user-sentiment");this.Lu=this.RI("ytp-ad-player-overlay-ad-disclosure-banner");this.L=X;g.b(this,this.L);this.hide()}; chH=function(w){w=w.api.N();return g.LW(w)&&w.L}; g.ew=function(w){w&=16777215;var M=[(w&16711680)>>16,(w&65280)>>8,w&255];w=M[0];var P=M[1];M=M[2];w=Number(w);P=Number(P);M=Number(M);if(w!=(w&255)||P!=(P&255)||M!=(M&255))throw Error('"('+w+","+P+","+M+'") is not a valid RGB color');P=w<<16|P<<8|M;return w<16?"#"+(16777216|P).toString(16).slice(1):"#"+P.toString(16)}; g.Bj=function(){}; SUF=function(w){var M=new $4;var P=new XH;P=BR(P,1,"botguard");w=BR(P,2,w);this.B=Q7M(M,XH,1,ZAl,w)}; QP=function(w){this.B=new DW(w)}; HAz=function(){var w=!1;try{w=!!window.sessionStorage.getItem("session_logininfo")}catch(M){w=!0}return(g.AR("INNERTUBE_CLIENT_NAME")==="WEB"||g.AR("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&w}; k9=function(){var w=w===void 0?!0:w;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Ig("LOGIN_INFO","");w&&window.sessionStorage.setItem("from_switch_account","1");w=!0;w=w===void 0?!1:w;var M,P=pNz;P||(P=document.querySelector("#persist_identity"));if(M=P){var u=M.src?(new URL(M.src)).origin:"*";if(w){var X;(X=M.contentWindow)==null||X.postMessage({action:"clear"},u)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var U=window.sessionStorage.getItem("session_logininfo");if(U){var f;(f=M.contentWindow)==null||f.postMessage({loginInfo:U},u)}}}}catch(h){}}; Rd=function(w){w&&(w.startsWith("https://accounts.google.com/AddSession")?k9():w.startsWith("https://accounts.google.com/ServiceLogin")?k9():w.startsWith("https://myaccount.google.com")&&g.hK(w).L.endsWith("/youtubeoptions")&&k9());if(g.AR("LOGGED_IN",!0)&&HAz()){var M=g.AR("VALID_SESSION_TEMPDATA_DOMAINS",[]);var P=g.f5(window.location.href);P&&M.push(P);P=g.f5(w);g.o$(M,P)||!P&&dd(w,"/")?(M=ha(w),(M=IaM(M))?(M=lK4(M),M=(M=g.e9(M)||null)?OK(M):{}):M=null):M=null;M==null&&(M={});P=M;var u=void 0; HAz()?(u||(u=g.AR("LOGIN_INFO")),u?(P.session_logininfo=u,P=!0):P=!1):P=!1;P&&Vn(w,M)}}; g.Fmy=function(w){var M=M===void 0?{}:M;var P=P===void 0?"":P;var u=u===void 0?window:u;w=g.p5(w,M);Rd(w);P=g.W1(w+P);u=u.location;P=hT(P);P!==void 0&&(u.href=P)}; g.nW=function(w,M,P){M=M===void 0?{}:M;P=P===void 0?!1:P;var u=g.AR("EVENT_ID");u&&(M.ei||(M.ei=u));M&&Vn(w,M);P||(Rd(w),g.Fmy(w))}; g.vj=function(w,M,P,u,X){X=X===void 0?!1:X;P&&Vn(w,P);P=g.W1(w);var U=g.Xj(P);w!=U&&CR(Error("Unsafe window.open URL: "+w));w=U;M=M||B1(w).toString(36);try{if(X)return X=w,X=fYl(X),Rd(X),g.Fj(window,X,M,"attributionsrc")}catch(f){g.ro(f)}Rd(w);return g.Fj(window,P,M,u)}; E1x=function(w){sg=w}; NK2=function(w){KW=w}; VPu=function(w){b0=w}; o1x=function(){mZp=b0=KW=sg=null}; yhH=function(){var w=w===void 0?window.location.href:w;if(g.FW("kevlar_disable_theme_param"))return null;var M=WY(w);if(g.FW("enable_dark_theme_only_on_shorts")&&M!=null&&M.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var P=g.w$(w).theme;return G$x.get(P)||null}catch(u){}return null}; Id=function(){this.B={};if(this.L=p_4()){var w=g.e9("CONSISTENCY");w&&DZF(this,{encryptedTokenJarContents:w})}}; DZF=function(w,M){if(M.encryptedTokenJarContents&&(w.B[M.encryptedTokenJarContents]=M,typeof M.expirationSeconds==="string")){var P=Number(M.expirationSeconds);setTimeout(function(){delete w.B[M.encryptedTokenJarContents]},P*1E3); w.L&&g.LB("CONSISTENCY",M.encryptedTokenJarContents,P,void 0,!0)}}; gM=function(){this.L=-1;var w=g.AR("LOCATION_PLAYABILITY_TOKEN");g.AR("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Ab(this))&&(w=this.localStorage.get("yt-location-playability-token"));w&&(this.locationPlayabilityToken=w,this.B=void 0)}; Ab=function(w){return w.localStorage===void 0?new Om("yt-client-location"):w.localStorage}; g.Jb=function(w,M,P){M=M===void 0?!1:M;P=P===void 0?!1:P;var u=g.AR("INNERTUBE_CONTEXT");if(!u)return g.qU(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};u=g.Eu(u);g.FW("web_no_tracking_params_in_shell_killswitch")||delete u.clickTracking;u.client||(u.client={});var X=u.client;X.clientName==="MWEB"&&X.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(X.clientFormFactor=g.AR("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");X.screenWidthPoints=window.innerWidth;X.screenHeightPoints= window.innerHeight;X.screenPixelDensity=Math.round(window.devicePixelRatio||1);X.screenDensityFloat=window.devicePixelRatio||1;X.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var U=U===void 0?!1:U;g.kF();var f="USER_INTERFACE_THEME_LIGHT";g.RS(0,165)?f="USER_INTERFACE_THEME_DARK":g.RS(0,174)?f="USER_INTERFACE_THEME_LIGHT":!g.FW("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (f="USER_INTERFACE_THEME_DARK");U=U?f:yhH()||f;X.userInterfaceTheme=U;if(!M){if(U=ibu())X.connectionType=U;g.FW("web_log_effective_connection_type")&&(U=Pc4())&&(u.client.effectiveConnectionType=U)}var h;if(g.FW("web_log_memory_total_kbytes")&&((h=g.aF.navigator)==null?0:h.deviceMemory)){var c;h=(c=g.aF.navigator)==null?void 0:c.deviceMemory;u.client.memoryTotalKbytes=""+h*1E6}g.FW("web_gcf_hashes_innertube")&&(U=hu1())&&(c=U.coldConfigData,h=U.coldHashData,U=U.hotHashData,u.client.configInfo=u.client.configInfo|| {},c&&(u.client.configInfo.coldConfigData=c),h&&(u.client.configInfo.coldHashData=h),U&&(u.client.configInfo.hotHashData=U));c=g.w$(g.aF.location.href);!g.FW("web_populate_internal_geo_killswitch")&&c.internalcountrycode&&(X.internalGeo=c.internalcountrycode);X.clientName==="MWEB"||X.clientName==="WEB"?(X.mainAppWebInfo||(X.mainAppWebInfo={}),X.mainAppWebInfo.graftUrl=g.aF.location.href,g.FW("kevlar_woffle")&&joH.instance&&(c=joH.instance,X.mainAppWebInfo.pwaInstallabilityStatus=!c.B&&c.L?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),X.mainAppWebInfo.webDisplayMode=eh(),X.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):X.clientName==="TVHTML5"&&(!g.FW("web_lr_app_quality_killswitch")&&(c=g.AR("LIVING_ROOM_APP_QUALITY"))&&(X.tvAppInfo=Object.assign(X.tvAppInfo||{},{appQuality:c})),c=g.AR("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(X.tvAppInfo=Object.assign(X.tvAppInfo||{},{certificationScope:c}));if(!g.FW("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var Z=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(R){}Z=void 0}Z&&(X.timeZone=Z)}(Z=Nx())?X.experimentsToken=Z:delete X.experimentsToken;Z=Vg();Id.instance||(Id.instance=new Id);u.request=Object.assign({},u.request,{internalExperimentFlags:Z,consistencyTokenJars:Uu(Id.instance.B)});!g.FW("web_prequest_context_killswitch")&&(Z=g.AR("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(u.request.externalPrequestContext=Z);X=g.kF();Z=g.RS(0,58);X=X.get("gsml","");u.user=Object.assign({}, u.user);Z&&(u.user.enableSafetyMode=Z);X&&(u.user.lockedSafetyMode=!0);g.FW("warm_op_csn_cleanup")?P&&(M=g.En())&&(u.clientScreenNonce=M):!M&&(M=g.En())&&(u.clientScreenNonce=M);w&&(u.clickTracking={clickTrackingParams:w});if(w=g.Mj("yt.mdx.remote.remoteClient_"))u.remoteClient=w;gM.getInstance().setLocationOnInnerTubeContext(u);try{var S=fB(),H=S.bid;delete S.bid;u.adSignalsInfo={params:[],bid:H};for(var p=g.G(Object.entries(S)),F=p.next();!F.done;F=p.next()){var E=g.G(F.value),y=E.next().value, q=E.next().value;S=y;H=q;w=void 0;(w=u.adSignalsInfo.params)==null||w.push({key:S,value:""+H})}var d,l;if(((d=u.client)==null?void 0:d.clientName)==="TVHTML5"||((l=u.client)==null?void 0:l.clientName)==="TVHTML5_UNPLUGGED"){var e=g.AR("INNERTUBE_CONTEXT");e.adSignalsInfo&&(u.adSignalsInfo.advertisingId=e.adSignalsInfo.advertisingId,u.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",u.adSignalsInfo.limitAdTracking=e.adSignalsInfo.limitAdTracking)}}catch(R){g.qU(R)}return u}; zNp=function(w,M){if(!w)return!1;var P,u=(P=g.A(w,qU2))==null?void 0:P.signal;if(u&&M.Ip)return!!M.Ip[u];var X;if((P=(X=g.A(w,YUx))==null?void 0:X.request)&&M.w2)return!!M.w2[P];for(var U in w)if(M.hf[U])return!0;return!1}; TK1=function(w){var M={"Content-Type":"application/json"};g.AR("EOM_VISITOR_DATA")?M["X-Goog-EOM-Visitor-Id"]=g.AR("EOM_VISITOR_DATA"):g.AR("VISITOR_DATA")&&(M["X-Goog-Visitor-Id"]=g.AR("VISITOR_DATA"));M["X-Youtube-Bootstrap-Logged-In"]=g.AR("LOGGED_IN",!1);g.AR("DEBUG_SETTINGS_METADATA")&&(M["X-Debug-Settings-Metadata"]=g.AR("DEBUG_SETTINGS_METADATA"));w!=="cors"&&((w=g.AR("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(M["X-Youtube-Client-Name"]=w),(w=g.AR("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(M["X-Youtube-Client-Version"]= w),(w=g.AR("CHROME_CONNECTED_HEADER"))&&(M["X-Youtube-Chrome-Connected"]=w),(w=g.AR("DOMAIN_ADMIN_STATE"))&&(M["X-Youtube-Domain-Admin-State"]=w),g.AR("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(w=g.AR("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(M["X-YouTube-Lava-Device-Context"]=w));return M}; dZU=function(){this.B={}}; rM=function(){this.mappings=new dZU}; jw=function(w){return function(){return new w}}; LmR=function(w){var M=M===void 0?"UNKNOWN_INTERFACE":M;if(w.length===1)return w[0];var P=ll4[M];if(P){P=new RegExp(P);for(var u=g.G(w),X=u.next();!X.done;X=u.next())if(X=X.value,P.exec(X))return X}var U=[];Object.entries(ll4).forEach(function(f){var h=g.G(f);f=h.next().value;h=h.next().value;M!==f&&U.push(h)}); P=new RegExp(U.join("|"));w.sort(function(f,h){return f.length-h.length}); u=g.G(w);for(X=u.next();!X.done;X=u.next())if(X=X.value,!P.exec(X))return X;return w[0]}; g.CW=function(w){return"/youtubei/v1/"+LmR(w)}; tb=function(){}; x9=function(){}; Og=function(){}; ad=function(w){return g.Mj("ytcsi."+(w||"")+"data_")||eNz(w)}; BKF=function(){var w=ad();w.info||(w.info={});return w.info}; wg=function(w){w=ad(w);w.metadata||(w.metadata={});return w.metadata}; iw=function(w){w=ad(w);w.tick||(w.tick={});return w.tick}; MH=function(w){w=ad(w);if(w.gel){var M=w.gel;M.gelInfos||(M.gelInfos={});M.gelTicks||(M.gelTicks={})}else w.gel={gelTicks:{},gelInfos:{}};return w.gel}; QmR=function(w){w=MH(w);w.gelInfos||(w.gelInfos={});return w.gelInfos}; Pg=function(w){var M=ad(w).nonce;M||(M=g.Hl(16),ad(w).nonce=M);return M}; eNz=function(w){var M={tick:{},info:{}};g.ih("ytcsi."+(w||"")+"data_",M);return M}; uw=function(){var w=g.Mj("ytcsi.debug");w||(w=[],g.ih("ytcsi.debug",w),g.ih("ytcsi.reference",{}));return w}; XG=function(w){w=w||"";var M=k$p();if(M[w])return M[w];var P=uw(),u={timerName:w,info:{},tick:{},span:{},jspbInfo:[]};P.push(u);return M[w]=u}; RNp=function(w){w=w||"";var M=k$p();M[w]&&delete M[w];var P=uw(),u={timerName:w,info:{},tick:{},span:{},jspbInfo:[]};P.push(u);M[w]=u}; k$p=function(){var w=g.Mj("ytcsi.reference");if(w)return w;uw();return g.Mj("ytcsi.reference")}; $L=function(w){return n15[w]||"LATENCY_ACTION_UNKNOWN"}; U7=function(w,M){Wb.call(this,1,arguments);this.timer=M}; fU=function(){this.B=0}; Wg=function(){fU.instance||(fU.instance=new fU);return fU.instance}; cg=function(w,M){hc[M]=hc[M]||{count:0};var P=hc[M];P.count++;P.time=(0,g.G$)();w.B||(w.B=g.rH(0,function(){var u=(0,g.G$)(),X;for(X in hc)hc[X]&&u-hc[X].time>6E4&&delete hc[X];w&&(w.B=0)},5E3)); return P.count>5?(P.count===6&&Math.random()*1E5<1&&(P=new g.bK("CSI data exceeded logging limit with key",M.split("_")),M.indexOf("plev")>=0||g.Yq(P)),!0):!1}; v1y=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; sm2=function(){var w;if(g.FW("csi_use_performance_navigation_timing")){var M,P,u,X=Zb==null?void 0:(w=Zb.getEntriesByType)==null?void 0:(M=w.call(Zb,"navigation"))==null?void 0:(P=M[0])==null?void 0:(u=P.toJSON)==null?void 0:u.call(P);X?(X.requestStart=Sl(X.requestStart),X.responseEnd=Sl(X.responseEnd),X.redirectStart=Sl(X.redirectStart),X.redirectEnd=Sl(X.redirectEnd),X.domainLookupEnd=Sl(X.domainLookupEnd),X.connectStart=Sl(X.connectStart),X.connectEnd=Sl(X.connectEnd),X.responseStart=Sl(X.responseStart), X.secureConnectionStart=Sl(X.secureConnectionStart),X.domainLookupStart=Sl(X.domainLookupStart),X.isPerformanceNavigationTiming=!0,w=X):w=Zb.timing}else w=g.FW("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Zb.timing)):Zb.timing;return w}; Sl=function(w){return Math.round(Hg()+w)}; Hg=function(){return(g.FW("csi_use_time_origin")||g.FW("csi_use_time_origin_tvhtml5"))&&Zb.timeOrigin?Math.floor(Zb.timeOrigin):Zb.timing.navigationStart}; FG=function(w,M){pU("_start",w,M)}; E7=function(w,M){if(!g.FW("web_csi_action_sampling_enabled")||!ad(M).actionDisabled){var P=XG(M||"");UX(P.info,w);w.loadType&&(P=w.loadType,wg(M).loadType=P);UX(QmR(M),w);P=Pg(M);M=ad(M).cttAuthInfo;Wg().info(w,P,M)}}; KmU=function(){var w,M,P,u;return((u=YB().resolve(oE(Pb))==null?void 0:(w=uv())==null?void 0:(M=w.loggingHotConfig)==null?void 0:(P=M.csiConfig)==null?void 0:P.debugTicks)!=null?u:[]).map(function(X){return Object.values(X)[0]})}; pU=function(w,M,P){if(!g.FW("web_csi_action_sampling_enabled")||!ad(P).actionDisabled){var u=Pg(P),X;if(X=g.FW("web_csi_debug_sample_enabled")&&u){(YB().resolve(oE(Pb))==null?0:uv())&&!bAF&&(bAF=!0,pU("gcfl",(0,g.G$)(),P));var U,f,h;X=(YB().resolve(oE(Pb))==null?void 0:(U=uv())==null?void 0:(f=U.loggingHotConfig)==null?void 0:(h=f.csiConfig)==null?void 0:h.debugSampleWeight)||0;if(U=X!==0)b:{U=KmU();if(U.length>0)for(f=0;fP.duration?u:P},{duration:0}))&&M.startTime>0&&M.responseEnd>0&&(pU("wffs",Sl(M.startTime)),pU("wffe",Sl(M.responseEnd)))}; Cbz=function(w,M,P){Zb&&Zb.measure&&(w.startsWith("measure_")||(w="measure_"+w),P?Zb.measure(w,M,P):M?Zb.measure(w,M):Zb.measure(w))}; tPu=function(w){var M=NH("aft",w);if(M)return M;M=g.AR((w||"")+"TIMING_AFT_KEYS",["ol"]);for(var P=M.length,u=0;u0&&E7(M);M={isNavigation:!0,actionType:$L(g.AR("TIMING_ACTION"))};var P=g.AR("PREVIOUS_ACTION");P&&(M.previousAction=$L(P));if(P=g.AR("CLIENT_PROTOCOL"))M.httpProtocol=P;if(P=g.AR("CLIENT_TRANSPORT"))M.transportProtocol=P;(P=g.En())&&P!=="UNDEFINED_CSN"&&(M.clientScreenNonce=P);P=g1U();if(P===1||P===-1)M.isVisible= !0;P=wg().loadType==="cold";var u=BKF();P||(P=u.yt_lt==="cold");if(P){M.loadType="cold";P=BKF();u=sm2();var X=Hg(),U=g.AR("CSI_START_TIMESTAMP_MILLIS",0);U>0&&!g.FW("embeds_web_enable_csi_start_override_killswitch")&&(X=U);X&&(pU("srt",u.responseStart),P.prerender!==1&&FG(X));P=al2();P>0&&pU("fpt",P);P=sm2();P.isPerformanceNavigationTiming&&E7({performanceNavigationTiming:!0},void 0);pU("nreqs",P.requestStart,void 0);pU("nress",P.responseStart,void 0);pU("nrese",P.responseEnd,void 0);P.redirectEnd- P.redirectStart>0&&(pU("nrs",P.redirectStart,void 0),pU("nre",P.redirectEnd,void 0));P.domainLookupEnd-P.domainLookupStart>0&&(pU("ndnss",P.domainLookupStart,void 0),pU("ndnse",P.domainLookupEnd,void 0));P.connectEnd-P.connectStart>0&&(pU("ntcps",P.connectStart,void 0),pU("ntcpe",P.connectEnd,void 0));P.secureConnectionStart>=Hg()&&P.connectEnd-P.secureConnectionStart>0&&(pU("nstcps",P.secureConnectionStart,void 0),pU("ntcpe",P.connectEnd,void 0));Zb&&"getEntriesByType"in Zb&&jml();P=[];if(document.querySelector&& Zb&&Zb.getEntriesByName)for(var f in oY)oY.hasOwnProperty(f)&&(u=oY[f],rhR(f,u)&&P.push(u));if(P.length>0)for(M.resourceInfo=[],f=g.G(P),P=f.next();!P.done;P=f.next())M.resourceInfo.push({resourceCache:P.value})}E7(M);M=MH();M.preLoggedGelInfos||(M.preLoggedGelInfos=[]);f=M.preLoggedGelInfos;M=QmR();P=void 0;for(u=0;u-1&&(delete Tp["@type"],t=Tp);y&&w.L.has(y)&&w.L.delete(y);((w3=M.config)==null?0:w3.XBO)&&yc(M.config.XBO);if(t||(sE=w.C)==null||!sE.DuK(M.input,M.Lp)){v5.M0(15);break}return g.B(v5,w.C.HkI(M.input,M.Lp),16);case 16:t=v5.B;case 15:return EQR(w, t,M),((Vt=M.config)==null?0:Vt.Zs$)&&yc(M.config.Zs$),u(),v5.return(t||void 0)}})}; Zd4=function(w,M){a:{w=w.BM;var P,u=(P=g.A(M,qU2))==null?void 0:P.signal;if(u&&w.Ip&&(P=w.Ip[u])){var X=P();break a}var U;if((P=(U=g.A(M,YUx))==null?void 0:U.request)&&w.w2&&(U=w.w2[P])){X=U();break a}for(X in M)if(w.hf[X]&&(M=w.hf[X])){X=M();break a}X=void 0}if(X!==void 0)return Promise.resolve(X)}; Hd2=function(w,M,P){var u,X,U,f,h,c,Z;return g.n(function(S){if(S.L==1){U=((u=M)==null?void 0:(X=u.tI)==null?void 0:X.identity)||fd;c=(f=M)==null?void 0:(h=f.tI)==null?void 0:h.sessionIndex;var H=g.zS(w.B.WS(U,{sessionIndex:c}));return g.B(S,H,2)}Z=S.B;return S.return(Promise.resolve(Object.assign({},TK1(P),Z)))})}; SY1=function(w,M,P){var u,X=(M==null?void 0:(u=M.tI)==null?void 0:u.identity)||fd,U;M=M==null?void 0:(U=M.tI)==null?void 0:U.sessionIndex;w=w.B.WS(X,{sessionIndex:M});return Object.assign({},TK1(P),w)}; el=function(){}; Bg=function(){}; Qc=function(w){this.K=w}; kL=function(){}; RY=function(){}; nU=function(){}; vg=function(){}; g.s7=function(w,M){var P=g.Kz.apply(2,arguments);w=w===void 0?0:w;g.bK.call(this,M,P);this.errorType=w;Object.setPrototypeOf(this,this.constructor.prototype)}; KU=function(w,M,P,u){this.B=w;this.L=M;this.C=P;this.X=u}; VUy=function(w,M,P){if(w.B){var u=WY(o4(M,"key"))||"/UNKNOWN_PATH";w.B.start(u)}u=P;g.FW("wug_networking_gzip_request")&&(u=KZ1(P));var X;return new ((X=w.X)!=null?X:window.Request)(M,u)}; g.IY=function(w,M){if(!bw){var P=YB();GJ(P,{ri:m61,oC:KU});var u={hf:{feedbackEndpoint:jw(kL),modifyChannelNotificationPreferenceEndpoint:jw(RY),playlistEditEndpoint:jw(nU),shareEntityEndpoint:jw(Qc),subscribeEndpoint:jw(el),unsubscribeEndpoint:jw(Bg),webPlayerShareEntityServiceEndpoint:jw(vg)}},X=gM.getInstance(),U={};X&&(U.client_location=X);w===void 0&&(w=Cz5());M===void 0&&(M=P.resolve(m61));ciu(u,M,w,U);GJ(P,{ri:oQM,zi:dg.instance});bw=P.resolve(oQM)}return bw}; Gsu=function(w){var M=new fZ;if(w.interpreterJavascript){var P=LqF(w.interpreterJavascript);P=VG(P).toString();var u=new X1;BR(u,6,P);yU(M,X1,1,u,r2)}else w.interpreterUrl&&(P=NT(w.interpreterUrl),P=P1(P).toString(),u=new Uo,BR(u,4,P),yU(M,Uo,2,u,r2));w.interpreterHash&&QU(M,3,w.interpreterHash,r2);w.program&&QU(M,4,w.program,r2);w.globalName&&QU(M,5,w.globalName,r2);w.clientExperimentsStateBlob&&QU(M,7,w.clientExperimentsStateBlob,r2);return M}; Ac=function(w){var M={};w=w.split("&");w=g.G(w);for(var P=w.next();!P.done;P=w.next())P=P.value.split("="),P.length===2&&(M[P[0]]=P[1]);return M}; LkF=function(){if(g.FW("bg_st_hr"))return"havuokmhhs-0";var w,M=((w=performance)==null?void 0:w.timeOrigin)||0;return"havuokmhhs-"+Math.floor(M)}; gg=function(w){this.B=w}; yiz=function(){return new Promise(function(w){var M=window.top;M.ntpevasrs!==void 0?w(new gg(M.ntpevasrs)):(M.ntpqfbel===void 0&&(M.ntpqfbel=[]),M.ntpqfbel.push(function(P){w(new gg(P))}))})}; qYy=function(){if(OL()){var w=g.AR("PLAYER_VARS",{});if(g.HT(w,"privembed",!1)!="1"&&!GNl(w)){var M=function(){Jc=!0;"google_ad_status"in window?Ig("DCLKSTAT",1):Ig("DCLKSTAT",2)}; try{g.aX("//static.doubleclick.net/instream/ad_status.js",M)}catch(P){}D62.push(g.kO.t5(function(){if(!(Jc||"google_ad_status"in window)){try{if(M){var P=""+g.UE(M),u=ohp[P];u&&g.xQ(u)}}catch(X){}Jc=!0;Ig("DCLKSTAT",3)}},5E3))}}}; rg=function(){var w=Number(g.AR("DCLKSTAT",0));return isNaN(w)?0:w}; xL=function(w,M,P){var u=this;this.network=w;this.options=M;this.L=P;this.B=null;if(M.ZV9){var X=new g.hC;this.B=X.promise;g.aF.ytAtRC&&JS(function(){var U,f;return g.n(function(h){if(h.L==1){if(!g.aF.ytAtRC)return h.return();U=jl(null);return g.B(h,CU(u,U),2)}f=h.B;g.aF.ytAtRC&&g.aF.ytAtRC(JSON.stringify(f));g.yx(h)})},2); yiz().then(function(U){var f,h,c,Z;return g.n(function(S){if(S.L==1)return U.bindInnertubeChallengeFetcher(function(H){return CU(u,jl(H))}),g.B(S,t0(),2); f=S.B;h=U.getLatestChallengeResponse();c=h.challenge;if(!c)throw Error("BGE_MACIL");Z={challenge:c,pX:Ac(c),Aw:f,bgChallenge:new fZ};X.resolve(Z);U.registerChallengeFetchedCallback(function(H){H=H.challenge;if(!H)throw Error("BGE_MACR");H={challenge:H,pX:Ac(H),Aw:f,bgChallenge:new fZ};u.B=Promise.resolve(H)}); g.yx(S)})})}else M.preload&&YY4(this,new Promise(function(U){g.rH(0,function(){U(tc(u))},0)}))}; jl=function(w){var M={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};w&&(M.interpreterHash=w);return M}; tc=function(w,M){M=M===void 0?0:M;var P,u,X,U,f,h,c,Z,S,H,p,F;return g.n(function(E){switch(E.L){case 1:P=jl(S6().B);if(g.FW("att_fet_ks"))return g.DU(E,7),g.B(E,CU(w,P),9);g.DU(E,4);return g.B(E,zzH(w,P),6);case 6:f=E.B;X=f.KKu;U=f.FKI;u=f;g.zp(E,3);break;case 4:return g.d4(E),g.Yq(Error("Failed to fetch attestation challenge after "+(M+" attempts; not retrying for 24h."))),O7(w,864E5),E.return({challenge:"",pX:{},Aw:void 0,bgChallenge:void 0});case 9:u=E.B;if(!u)throw Error("Fetching Attestation challenge returned falsy"); if(!u.challenge)throw Error("Missing Attestation challenge");X=u.challenge;U=Ac(X);if("c1a"in U&&(!u.bgChallenge||!u.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.zp(E,3);break;case 7:h=g.d4(E);g.Yq(h);M++;if(M>=5)return g.Yq(Error("Failed to fetch attestation challenge after "+(M+" attempts; not retrying for 24h."))),O7(w,864E5),E.return({challenge:"",pX:{},Aw:void 0,bgChallenge:void 0});c=1E3*Math.pow(2,M-1)+Math.random()*1E3;return E.return(new Promise(function(y){g.rH(0, function(){y(tc(w,M))},c)})); case 3:Z=Number(U.t)||7200;O7(w,Z*1E3);S=void 0;if(!("c1a"in U&&u.bgChallenge)){E.M0(10);break}H=Gsu(u.bgChallenge);g.DU(E,11);return g.B(E,lPF(S6(),H),13);case 13:g.zp(E,12);break;case 11:return p=g.d4(E),g.Yq(p),E.return({challenge:X,pX:U,Aw:S,bgChallenge:H});case 12:return g.DU(E,14),S=new c_({challenge:H,uf:{bv:"aGIf"}}),g.B(E,S.Cy,16);case 16:g.zp(E,10);break;case 14:F=g.d4(E),g.Yq(F),S=void 0;case 10:return E.return({challenge:X,pX:U,Aw:S,bgChallenge:H})}})}; CU=function(w,M){var P;return g.n(function(u){P=w.L;if(!P||P.UH())return u.return(CU(w.network,M));Tv("att_pna",void 0,"attestation_challenge_fetch");return u.return(new Promise(function(X){P.eE("publicytnetworkstatus-online",function(){CU(w.network,M).then(X)})}))})}; T91=function(w){if(!w)throw Error("Fetching Attestation challenge returned falsy");if(!w.challenge)throw Error("Missing Attestation challenge");var M=w.challenge,P=Ac(M);if("c1a"in P&&(!w.bgChallenge||!w.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},w,{KKu:M,FKI:P})}; zzH=function(w,M){var P,u,X,U,f;return g.n(function(h){switch(h.L){case 1:P=void 0,u=0,X={};case 2:if(!(u<5)){h.M0(4);break}if(!(u>0)){h.M0(5);break}X.Q9=1E3*Math.pow(2,u-1)+Math.random()*1E3;return g.B(h,new Promise(function(c){return function(Z){g.rH(0,function(){Z(void 0)},c.Q9)}}(X)),5); case 5:return g.DU(h,7),g.B(h,CU(w,M),9);case 9:return U=h.B,h.return(T91(U));case 7:P=f=g.d4(h),f instanceof Error&&g.Yq(f);case 8:u++;X={Q9:void 0};h.M0(2);break;case 4:throw P;}})}; YY4=function(w,M){w.B=M}; d64=function(w){var M,P,u;return g.n(function(X){if(X.L==1)return g.B(X,Promise.race([w.B,null]),2);M=X.B;var U=tc(w);w.B=U;(P=M)==null||(u=P.Aw)==null||u.dispose();g.yx(X)})}; O7=function(w,M){function P(){var X;return g.n(function(U){X=u-Date.now();return X<1E3?g.B(U,d64(w),0):(JS(P,0,Math.min(X,6E4)),U.M0(0))})} var u=Date.now()+M;P()}; l8z=function(w,M){return new Promise(function(P){g.rH(0,function(){P(M())},w)})}; g.Lhz=function(w,M){var P;return g.n(function(u){var X=g.Mj("yt.aba.att");return(P=X?X:xL.instance!==void 0?xL.instance.C.bind(xL.instance):null)?u.return(P("ENGAGEMENT_TYPE_PLAYBACK",w,M)):u.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.ez1=function(){var w;return(w=(w=g.Mj("yt.aba.att2"))?w:xL.instance!==void 0?xL.instance.X.bind(xL.instance):null)?w():Promise.resolve(!1)}; QXy=function(w,M){var P=g.Mj("ytDebugData.callbacks");P||(P={},g.ih("ytDebugData.callbacks",P));if(g.FW("web_dd_iu")||B9p.includes(w))P[w]=M}; aY=function(){var w=ks_;var M=M===void 0?[]:M;var P=P===void 0?[]:P;M=qZz.apply(null,[YZU.apply(null,g.L(M))].concat(g.L(P)));this.store=Tb_(w,void 0,M)}; g.wt=function(w,M,P){for(var u=Object.assign({},w),X=g.G(Object.keys(M)),U=X.next();!U.done;U=X.next()){U=U.value;var f=w[U],h=M[U];if(h===void 0)delete u[U];else if(f===void 0)u[U]=h;else if(Array.isArray(h)&&Array.isArray(f))u[U]=P?[].concat(g.L(f),g.L(h)):h;else if(!Array.isArray(h)&&g.XE(h)&&!Array.isArray(f)&&g.XE(f))u[U]=g.wt(f,h,P);else if(typeof h===typeof f)u[U]=h;else return M=new g.bK("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:U,WV$:f,updateValue:h}),g.qU(M), w}return u}; iV=function(w){var M=this;w=w===void 0?[]:w;this.B=[];this.C=this.L=0;this.X=void 0;this.totalLength=0;w.forEach(function(P){M.append(P)})}; Rz1=function(w,M){return w.B.length===0?!1:(w=w.B[w.B.length-1])&&w.buffer===M.buffer&&w.byteOffset+w.length===M.byteOffset}; MR=function(w,M){M=g.G(M.B);for(var P=M.next();!P.done;P=M.next())w.append(P.value)}; PQ=function(w,M,P){return w.split(M).Nz.split(P).QY}; uV=function(w){w.X=void 0;w.L=0;w.C=0}; Xd=function(w,M,P){w.isFocused(M);return M-w.C+P<=w.B[w.L].length}; nQ1=function(w){if(!w.X){var M=w.B[w.L];w.X=new DataView(M.buffer,M.byteOffset,M.length)}return w.X}; vQF=function(w,M,P){M=M===void 0?0:M;P=P===void 0?-1:P;if(!w.totalLength||!P)return new DataView(new ArrayBuffer(0));P<0&&(P=w.totalLength-M);w.focus(M);if(!Xd(w,M,P)){var u=w.L,X=w.C;w.focus(M+P-1);X=new Uint8Array(w.C+w.B[w.L].length-X);for(var U=0,f=u;f<=w.L;f++)X.set(w.B[f],U),U+=w.B[f].length;w.B.splice(u,w.L-u+1,X);uV(w);w.focus(M)}u=w.B[w.L];return new DataView(u.buffer,u.byteOffset+M-w.C,P)}; $D=function(w,M,P){w=vQF(w,M===void 0?0:M,P===void 0?-1:P);return new Uint8Array(w.buffer,w.byteOffset,w.byteLength)}; U$=function(w,M,P){w=$D(w,M===void 0?0:M,P===void 0?-1:P);M=new Uint8Array(w.length);try{M.set(w)}catch(u){for(P=0;P>10;U=56320|U&1023}cQ[X++]=U}}U=String.fromCharCode.apply(String,cQ); X<1024&&(U=U.substring(0,X));P.push(U)}return P.join("")}; HQ=function(w,M){var P;if((P=SC)==null?0:P.encodeInto)return M=SC.encodeInto(w,M),M.read>6|192:((X&64512)===55296&&u+1>18|240,M[P++]=X>>12&63|128):M[P++]=X>>12|224,M[P++]=X>>6&63|128),M[P++]=X&63|128)}return P}; pF=function(w){if(SC)return SC.encode(w);var M=new Uint8Array(Math.ceil(w.length*1.2)),P=HQ(w,M);M.lengthP&&(M=M.subarray(0,P));return M}; Fd=function(w){this.B=w;this.pos=0;this.L=-1}; E$=function(w){var M=fF(w.B,w.pos);++w.pos;if(M<128)return M;for(var P=M&127,u=1;M>=128;)M=fF(w.B,w.pos),++w.pos,u*=128,P+=(M&127)*u;return P}; NR=function(w,M){var P=w.L;for(w.L=-1;w.pos+1<=w.B.totalLength;){P<0&&(P=E$(w));var u=P>>3,X=P&7;if(u===M)return!0;if(u>M){w.L=P;break}P=-1;switch(X){case 0:E$(w);break;case 1:w.pos+=8;break;case 2:u=E$(w);w.pos+=u;break;case 5:w.pos+=4}}return!1}; Vs=function(w,M){if(NR(w,M))return E$(w)}; mV=function(w,M){if(NR(w,M))return!!E$(w)}; oz=function(w,M){if(NR(w,M)){M=E$(w);var P=$D(w.B,w.pos,M);w.pos+=M;return P}}; Gz=function(w,M){if(w=oz(w,M))return g.ZE(w)}; ys=function(w,M,P){if(w=oz(w,M))return P(new Fd(new iV([w])))}; DE=function(w,M){for(var P=[];NR(w,M);)P.push(E$(w));return P.length?P:void 0}; qR=function(w,M,P){for(var u=[],X;X=oz(w,M);)u.push(P(new Fd(new iV([X]))));return u.length?u:void 0}; YD=function(w,M){w=w instanceof Uint8Array?new iV([w]):w;return M(new Fd(w))}; bdx=function(w,M,P){if(M&&P&&P.buffer===M.exports.memory.buffer){var u=M.realloc(P.byteOffset,w);if(u)return new Uint8Array(M.exports.memory.buffer,u,w)}w=M?new Uint8Array(M.exports.memory.buffer,M.malloc(w),w):new Uint8Array(w);P&&w.set(P);return w}; I8x=function(w,M){this.C=M;this.pos=0;this.L=[];this.B=bdx(w===void 0?4096:w,M);this.view=new DataView(this.B.buffer,this.B.byteOffset,this.B.byteLength)}; zz=function(w,M){M=w.pos+M;if(!(w.B.length>=M)){for(var P=w.B.length*2;P268435455){zz(w,4);for(var P=M&1073741823,u=0;u<4;u++)w.view.setUint8(w.pos,P&127|128),P>>=7,w.pos+=1;M=Math.floor(M/268435456)}for(zz(w,4);M>127;)w.view.setUint8(w.pos,M&127|128),M>>=7,w.pos+=1;w.view.setUint8(w.pos,M);w.pos+=1}; dt=function(w,M,P){P!==void 0&&(Tz(w,M*8),Tz(w,P))}; lV=function(w,M,P){P!==void 0&&dt(w,M,P?1:0)}; LF=function(w,M,P){P!==void 0&&(Tz(w,M*8+2),M=P.length,Tz(w,M),zz(w,M),w.B.set(P,w.pos),w.pos+=M)}; eC=function(w,M,P){P!==void 0&&(Ai4(w,M,Math.ceil(Math.log2(P.length*4+2)/7)),zz(w,P.length*1.2),M=HQ(P,w.B.subarray(w.pos)),w.pos+M>w.B.length&&(zz(w,M),M=HQ(P,w.B.subarray(w.pos))),w.pos+=M,gQ1(w))}; Ai4=function(w,M,P){P=P===void 0?2:P;Tz(w,M*8+2);w.L.push(w.pos);w.L.push(P);w.pos+=P}; gQ1=function(w){for(var M=w.L.pop(),P=w.L.pop(),u=w.pos-P-M;M--;){var X=M?128:0;w.view.setUint8(P++,u&127|X);u>>=7}}; At=function(w,M,P,u,X){P&&(Ai4(w,M,X===void 0?3:X),u(w,P),gQ1(w))}; g.gt=function(w,M,P){P=new I8x(4096,P);M(P,w);return new Uint8Array(P.B.buffer,P.B.byteOffset,P.pos)}; g.Jt=function(w){var M=new Fd(new iV([Td(decodeURIComponent(w))]));w=Gz(M,2);M=Vs(M,4);var P=Ji5[M];if(typeof P==="undefined")throw w=new g.bK("Failed to recognize field number",{name:"EntityKeyHelperError",Ry9:M}),g.qU(w),w;return{fP:M,entityType:P,entityId:w}}; g.rt=function(w,M){var P=P===void 0?0:P;var u=new I8x;LF(u,2,pF(w));w=rip[M];if(typeof w==="undefined")throw P=new g.bK("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:M}),g.qU(P),P;dt(u,4,w);dt(u,5,1);M=new Uint8Array(u.B.buffer,u.B.byteOffset,u.pos);return encodeURIComponent(g.Yw(M,P))}; jC=function(w,M,P,u){if(u===void 0)return u=Object.assign({},w[M]||{}),P=(delete u[P],u),u={},Object.assign({},w,(u[M]=P,u));var X={},U={};return Object.assign({},w,(U[M]=Object.assign({},w[M],(X[P]=u,X)),U))}; jXF=function(w,M,P,u,X){var U=w[M];if(U==null||!U[P])return w;u=g.wt(U[P],u,X==="REPEATED_FIELDS_MERGE_OPTION_APPEND");X={};U={};return Object.assign({},w,(U[M]=Object.assign({},w[M],(X[P]=u,X)),U))}; Cv2=function(w,M){w=w===void 0?{}:w;switch(M.type){case "ENTITY_LOADED":return M.payload.reduce(function(u,X){var U,f=(U=X.options)==null?void 0:U.persistenceOption;if(f&&f!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&f!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return u;if(!X.entityKey)return g.qU(Error("Missing entity key")),u;if(X.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!X.payload)return X=new g.bK("REPLACE entity mutation is missing a payload",{entityKey:X.entityKey}),g.qU(X),u;var h=g.$s(X.payload); return jC(u,h,X.entityKey,X.payload[h])}if(X.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{X=X.entityKey;try{var c=g.Jt(X).entityType;h=jC(u,c,X);break a}catch(H){if(H instanceof Error){X=new g.bK("Failed to deserialize entity key",{entityKey:X,originalMessage:H.message});g.qU(X);h=u;break a}throw H;}h=void 0}return h}if(X.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!X.payload)return X=new g.bK("UPDATE entity mutation is missing a payload",{entityKey:X.entityKey}),g.qU(X),u;h=g.$s(X.payload);var Z,S;return jXF(u, h,X.entityKey,X.payload[h],(Z=X.fieldMask)==null?void 0:(S=Z.mergeOptions)==null?void 0:S.repeatedFieldsMergeOption)}return u},w); case "REPLACE_ENTITY":var P=M.payload;return jC(w,P.entityType,P.key,P.Py);case "REPLACE_ENTITIES":return Object.keys(M.payload).reduce(function(u,X){var U=M.payload[X];return Object.keys(U).reduce(function(f,h){return jC(f,X,h,U[h])},u)},w); case "UPDATE_ENTITY":return P=M.payload,jXF(w,P.entityType,P.key,P.Py,P.f7W);default:return w}}; CF=function(w,M,P){return w[M]?w[M][P]||null:null}; tt=function(w){return window.Int32Array?new Int32Array(w):Array(w)}; MC=function(w){g.v.call(this);this.counter=[0,0,0,0];this.L=new Uint8Array(16);this.B=16;if(!tUl){var M,P=new Uint8Array(256),u=new Uint8Array(256);var X=1;for(M=0;M<256;M++)P[X]=M,u[M]=X,X^=X<<1^(X>>7&&283);xD=new Uint8Array(256);O$=tt(256);az=tt(256);wk=tt(256);iE=tt(256);for(var U=0;U<256;U++){X=U?u[255^P[U]]:0;X^=X<<1^X<<2^X<<3^X<<4;X=X&255^X>>>8^99;xD[U]=X;M=X<<1^(X>>7&&283);var f=M^X;O$[U]=M<<24|X<<16|X<<8|f;az[U]=f<<24|O$[U]>>>8;wk[U]=X<<24|az[U]>>>8;iE[U]=X<<24|wk[U]>>>8}tUl=!0}X=tt(44);for(P= 0;P<4;P++)X[P]=w[4*P]<<24|w[4*P+1]<<16|w[4*P+2]<<8|w[4*P+3];for(u=1;P<44;P++)w=X[P-1],P%4||(w=(xD[w>>16&255]^u)<<24|xD[w>>8&255]<<16|xD[w&255]<<8|xD[w>>>24],u=u<<1^(u>>7&&283)),X[P]=X[P-4]^w;this.key=X}; x61=function(w,M){for(var P=0;P<4;P++)w.counter[P]=M[P*4]<<24|M[P*4+1]<<16|M[P*4+2]<<8|M[P*4+3];w.B=16}; OdU=function(w){for(var M=w.key,P=w.counter[0]^M[0],u=w.counter[1]^M[1],X=w.counter[2]^M[2],U=w.counter[3]^M[3],f=3;f>=0&&!(w.counter[f]=-~w.counter[f]);f--);for(var h,c,Z=4;Z<40;)f=O$[P>>>24]^az[u>>16&255]^wk[X>>8&255]^iE[U&255]^M[Z++],h=O$[u>>>24]^az[X>>16&255]^wk[U>>8&255]^iE[P&255]^M[Z++],c=O$[X>>>24]^az[U>>16&255]^wk[P>>8&255]^iE[u&255]^M[Z++],U=O$[U>>>24]^az[P>>16&255]^wk[u>>8&255]^iE[X&255]^M[Z++],P=f,u=h,X=c;w=w.L;f=M[40];w[0]=xD[P>>>24]^f>>>24;w[1]=xD[u>>16&255]^f>>16&255;w[2]=xD[X>>8&255]^ f>>8&255;w[3]=xD[U&255]^f&255;f=M[41];w[4]=xD[u>>>24]^f>>>24;w[5]=xD[X>>16&255]^f>>16&255;w[6]=xD[U>>8&255]^f>>8&255;w[7]=xD[P&255]^f&255;f=M[42];w[8]=xD[X>>>24]^f>>>24;w[9]=xD[U>>16&255]^f>>16&255;w[10]=xD[P>>8&255]^f>>8&255;w[11]=xD[u&255]^f&255;f=M[43];w[12]=xD[U>>>24]^f>>>24;w[13]=xD[P>>16&255]^f>>16&255;w[14]=xD[u>>8&255]^f>>8&255;w[15]=xD[X&255]^f&255}; XI=function(){if(!Pv&&!g.Im){if(uE)return uE;var w;uE=(w=window.crypto)==null?void 0:w.subtle;var M,P,u;if(((M=uE)==null?0:M.importKey)&&((P=uE)==null?0:P.sign)&&((u=uE)==null?0:u.encrypt))return uE;uE=void 0}}; g.Us=function(w){var M=XI();M&&(this.B=new a8M(w,M));this.L=new g.$W(w)}; a8M=function(w,M){this.L=w;this.subtleCrypto=M}; wlR=function(w,M,P){var u,X;return g.n(function(U){switch(U.L){case 1:if(w.B){U.M0(2);break}return g.B(U,w.subtleCrypto.importKey("raw",w.L,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:w.B=U.B;case 2:return u={name:"AES-CTR",counter:P,length:128},g.B(U,w.subtleCrypto.encrypt(u,w.B,M),4);case 4:return X=U.B,U.return(new Uint8Array(X))}})}; g.$W=function(w){this.L=w}; fn=function(w){this.G=new Uint8Array(64);this.C=new Uint8Array(64);this.X=0;this.K=new Uint8Array(64);this.L=0;this.G.set(w);this.C.set(w);for(w=0;w<64;w++)this.G[w]^=92,this.C[w]^=54;this.reset()}; ix4=function(w,M,P){for(var u=w.j,X=w.B[0],U=w.B[1],f=w.B[2],h=w.B[3],c=w.B[4],Z=w.B[5],S=w.B[6],H=w.B[7],p,F,E,y=0;y<64;)y<16?(u[y]=E=M[P]<<24|M[P+1]<<16|M[P+2]<<8|M[P+3],P+=4):(p=u[y-2],F=u[y-15],E=u[y-7]+u[y-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),u[y]=E),p=H+Wv[y]+E+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&Z^~c&S),F=((X>>>2|X<<30)^(X>>>13|X<<19)^(X>>>22|X<<10))+(X&U^X&f^U&f),H=p+F,h+=p,y++,y<16?(u[y]=E=M[P]<<24|M[P+1]<<16|M[P+2]<<8|M[P+3],P+=4):(p= u[y-2],F=u[y-15],E=u[y-7]+u[y-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),u[y]=E),p=S+Wv[y]+E+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&c^~h&Z),F=((H>>>2|H<<30)^(H>>>13|H<<19)^(H>>>22|H<<10))+(H&X^H&U^X&U),S=p+F,f+=p,y++,y<16?(u[y]=E=M[P]<<24|M[P+1]<<16|M[P+2]<<8|M[P+3],P+=4):(p=u[y-2],F=u[y-15],E=u[y-7]+u[y-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),u[y]=E),p=Z+Wv[y]+E+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^ ~f&c),F=((S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10))+(S&H^S&X^H&X),Z=p+F,U+=p,y++,y<16?(u[y]=E=M[P]<<24|M[P+1]<<16|M[P+2]<<8|M[P+3],P+=4):(p=u[y-2],F=u[y-15],E=u[y-7]+u[y-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),u[y]=E),p=c+Wv[y]+E+((U>>>6|U<<26)^(U>>>11|U<<21)^(U>>>25|U<<7))+(U&f^~U&h),F=((Z>>>2|Z<<30)^(Z>>>13|Z<<19)^(Z>>>22|Z<<10))+(Z&S^Z&H^S&H),E=H,H=h,h=E,E=S,S=f,f=E,E=Z,Z=U,U=E,c=X+p,X=p+F,y++;w.B[0]=X+w.B[0]|0;w.B[1]=U+w.B[1]|0;w.B[2]=f+w.B[2]|0;w.B[3]= h+w.B[3]|0;w.B[4]=c+w.B[4]|0;w.B[5]=Z+w.B[5]|0;w.B[6]=S+w.B[6]|0;w.B[7]=H+w.B[7]|0}; P52=function(w){var M=new Uint8Array(32),P=64-w.L;w.L>55&&(P+=64);var u=new Uint8Array(P);u[0]=128;for(var X=w.X*8,U=1;U<9;U++){var f=X%256;u[P-U]=f;X=(X-f)/256}w.update(u);for(P=0;P<8;P++)M[P*4]=w.B[P]>>>24,M[P*4+1]=w.B[P]>>>16&255,M[P*4+2]=w.B[P]>>>8&255,M[P*4+3]=w.B[P]&255;MW1(w);return M}; MW1=function(w){w.B=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];w.j=[];w.j.length=64;w.X=0;w.L=0}; ubH=function(w){this.B=w}; Xl1=function(w,M,P){w=new fn(w.B);w.update(M);w.update(P);M=P52(w);w.update(w.G);w.update(M);M=P52(w);w.reset();return M}; $WU=function(w){this.L=w}; UWl=function(w,M,P,u){var X,U,f;return g.n(function(h){switch(h.L){case 1:if(w.B){h.M0(2);break}return g.B(h,u.importKey("raw",w.L,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:w.B=h.B;case 2:return X=new Uint8Array(M.length+P.length),X.set(M),X.set(P,M.length),U={name:"HMAC",hash:"SHA-256"},g.B(h,u.sign(U,w.B,X),4);case 4:return f=h.B,h.return(new Uint8Array(f))}})}; f2x=function(w,M,P){w.C||(w.C=new ubH(w.L));return Xl1(w.C,M,P)}; WSF=function(w,M,P){var u,X;return g.n(function(U){if(U.L==1){u=XI();if(!u)return U.return(f2x(w,M,P));g.DU(U,3);return g.B(U,UWl(w,M,P,u),5)}if(U.L!=3)return U.return(U.B);X=g.d4(U);g.Yq(X);Pv=!0;return U.return(f2x(w,M,P))})}; crl=function(w){for(var M="",P=0;P=0||EQ(w,0,"gad_source",w.search(NN))>=0}; VW2=function(){this.B=new Map}; oB4=function(w,M){var P=YB().resolve(mWx);if(NG1(M)){var u=mR(M,"gclid");M={handleEvent:function(h){w&&!w.closed&&typeof w.postMessage==="function"&&h&&h.origin&&h.source===w&&h.data&&h.data.action==="gcl_setup"&&w.postMessage(Object.assign({},{action:"gcl_transfer"},u&&{gclid:u},{gadSource:2}),h.origin)}}; for(var X=g.G(P.B),U=X.next();!U.done;U=X.next()){var f=g.G(U.value);U=f.next().value;f=f.next().value;if(U.closed)try{window.removeEventListener("message",f),P.B.delete(U)}catch(h){g.qU(h)}}w&&P.B.size<15&&(P.B.set(w,M),window.addEventListener("message",M))}}; hF=function(w,M,P){if(!M)return w.length>=1?w[w.length-1]:null;for(var u=g.G(w),X=u.next();!X.done;X=u.next())if(X=X.value,X.width&&X.height&&(P&&X.width>=M||!P&&X.height>=M))return X;for(M=w.length-1;M>=0;M--)if(P&&w[M].width||!P&&w[M].height)return w[M];return w[0]}; cv=function(){this.state=1;this.Aw=null;this.GJ=void 0}; yrl=function(w,M,P,u,X,U){var f=f===void 0?"trayride":f;P?(w.g7(2),g.aX(P,function(){if(window[f])GJ_(w,u,f,X);else{w.g7(3);var h=mTF(P),c=document.getElementById(h);c&&(NoF(h),c.parentNode.removeChild(c));g.Yq(new g.bK("BL:ULB",""+P))}},U)):M?(U=g.HS("SCRIPT"),M instanceof NE?(U.textContent=VG(M),mA(U)):U.textContent=M,U.nonce=Ec(document),document.head.appendChild(U),document.head.removeChild(U),window[f]?GJ_(w,u,f,X):(w.g7(4),g.Yq(new g.bK("BL:ULBJ")))):g.Yq(new g.bK("BL:ULV"))}; GJ_=function(w,M,P,u){w.g7(5);var X=!!w.GJ&&DWp.includes(g.f5(w.GJ)||"");try{var U=new c_({program:M,globalName:P,uf:{disable:!g.FW("att_web_record_metrics")||!g.FW("att_skip_metrics_for_cookieless_domains_ks")&&X,bv:"aGIf"}});U.Cy.then(function(){w.g7(6);u&&u(M)}); w.Z5(U)}catch(f){w.g7(7),f instanceof Error&&g.Yq(f)}}; ZM=function(){var w=g.Mj("yt.abuse.playerAttLoader");return w&&["bgvma","bgvmb","bgvmc"].every(function(M){return M in w})?w:null}; Sd=function(){cv.apply(this,arguments)}; Hv=function(){}; qXy=function(w,M,P){for(var u=!1,X=g.G(w.L6.entries()),U=X.next();!U.done;U=X.next())U=g.G(U.value).next().value,U.slotType==="SLOT_TYPE_PLAYER_BYTES"&&U.w$==="core"&&(u=!0);if(u){a:if(!P){w=g.G(w.L6.entries());for(P=w.next();!P.done;P=w.next())if(u=g.G(P.value),P=u.next().value,u=u.next().value,P.slotType==="SLOT_TYPE_IN_PLAYER"&&P.w$==="core"){P=u.layoutId;break a}P=void 0}P?M.WK(P):X$("No triggering layout ID available when attempting to mute.")}}; pn=function(w,M){this.DY=w;this.Jq=M}; FI=function(){}; Es=function(){}; z1z=function(w){g.v.call(this);var M=this;this.YA=w;this.B=new Map;NC(this,"commandExecutorCommand",function(P,u,X){YXR(M,P.commands,u,X)}); NC(this,"clickTrackingParams",function(){})}; TGl=function(w,M){NC(w,M.TQ(),function(P,u,X){M.iJ(P,u,X)})}; NC=function(w,M,P){w.sO();w.B.get(M)&&g.qU(Error("Extension name "+M+" already registered"));w.B.set(M,P)}; YXR=function(w,M,P,u){M=M===void 0?[]:M;w.sO();var X=[],U=[];M=g.G(M);for(var f=M.next();!f.done;f=M.next())f=f.value,g.A(f,dWR)||g.A(f,l2x)?X.push(f):U.push(f);X=g.G(X);for(M=X.next();!M.done;M=X.next())VC(w,M.value,P,u);U=g.G(U);for(X=U.next();!X.done;X=U.next())VC(w,X.value,P,u)}; VC=function(w,M,P,u){w.sO();M.loggingUrls&&LSU(w,"loggingUrls",M.loggingUrls,P,u);M=g.G(Object.entries(M));for(var X=M.next();!X.done;X=M.next()){var U=g.G(X.value);X=U.next().value;U=U.next().value;X==="openPopupAction"?w.YA.get().Oy("innertubeCommand",{openPopupAction:U}):X==="confirmDialogEndpoint"?w.YA.get().Oy("innertubeCommand",{confirmDialogEndpoint:U}):e1F.hasOwnProperty(X)||LSU(w,X,U,P,u)}}; LSU=function(w,M,P,u,X){if((w=w.B.get(M))&&typeof w==="function")try{w(P,u,X)}catch(U){g.qU(U)}else M=new g.bK("Unhandled field",M),g.Yq(M)}; mr=function(w,M,P){this.Bv=w;this.B=M;this.FK=P;GJ(YB(),{ri:mWx,oC:VW2})}; oa=function(w){this.value=w}; Gq=function(w){this.value=w}; yC=function(w){this.value=w}; DM=function(w){this.value=w}; qC=function(w){this.value=w}; YW=function(w){this.value=w}; zq=function(w){this.value=w}; Tq=function(){oa.apply(this,arguments)}; dk=function(w){this.value=w}; lE=function(w){this.value=w}; Ln=function(w){this.value=w}; ed=function(w){this.value=w}; Bv=function(w){this.value=w}; QC=function(w){this.value=w}; kW=function(w){this.value=w}; Ra=function(w){this.value=w}; nn=function(w){this.value=w}; vv=function(w){this.value=w}; Kn=function(){oa.apply(this,arguments)}; bE=function(w){this.value=w}; Ia=function(w){this.value=w}; AF=function(w){this.value=w}; gk=function(w){this.value=w}; JF=function(w){this.value=w}; rk=function(w){this.value=w}; jd=function(w){this.value=w}; Cn=function(w){this.value=w}; tF=function(w){this.value=w}; xW=function(w){this.value=w}; Os=function(w){this.value=w}; aa=function(w){this.value=w}; wA=function(w){this.value=w}; ia=function(w){this.value=w}; Mf=function(w){this.value=w}; Pk=function(w){this.value=w}; ua=function(w){this.value=w}; X2=function(w){this.value=w}; $y=function(w){this.value=w}; Uh=function(w){this.value=w}; fc=function(w){this.value=w}; Wk=function(w){this.value=w}; hf=function(w){this.value=w}; ck=function(w){this.value=w}; Zg=function(w){this.value=w}; Sn=function(w){this.value=w}; Hk=function(w){this.value=w}; pc=function(w){this.value=w}; F2=function(w){this.value=w}; Eh=function(w){this.value=w}; Nf=function(w){this.value=w}; VH=function(w){this.value=w}; m7=function(w){this.value=w}; on=function(w){this.value=w}; Gr=function(w){this.value=w}; yH=function(w){this.value=w}; Dg=function(w){this.value=w}; qf=function(w){this.value=w}; Yy=function(){oa.apply(this,arguments)}; zr=function(w){this.value=w}; Tr=function(){oa.apply(this,arguments)}; dA=function(){oa.apply(this,arguments)}; la=function(){oa.apply(this,arguments)}; Lc=function(){oa.apply(this,arguments)}; en=function(){oa.apply(this,arguments)}; Bk=function(w){this.value=w}; QH=function(w){this.value=w}; ky=function(w){this.value=w}; Rn=function(w){this.value=w}; nc=function(w){this.value=w}; sh=function(w,M,P){if(P&&!P.includes(w.layoutType))return!1;M=g.G(M);for(P=M.next();!P.done;P=M.next())if(!vk(w.clientMetadata,P.value))return!1;return!0}; Kc=function(){return""}; BGR=function(w,M){switch(w){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return M(w),8}}; ba=function(w,M,P,u){u=u===void 0?!1:u;Ha.call(this,w);this.IG=P;this.u_=u;this.args=[];M&&this.args.push(M)}; x=function(w,M,P,u){u=u===void 0?!1:u;Ha.call(this,w);this.IG=P;this.u_=u;this.args=[];M&&this.args.push(M)}; In=function(w){var M=new Map;w.forEach(function(P){M.set(P.B(),P)}); this.B=M}; vk=function(w,M){return w.B.has(M)}; Af=function(w,M){w=w.B.get(M);if(w!==void 0)return w.get()}; gA=function(w){return Array.from(w.B.keys())}; Jf=function(w,M,P){if(P&&P!==w.slotType)return!1;M=g.G(M);for(P=M.next();!P.done;P=M.next())if(!vk(w.clientMetadata,P.value))return!1;return!0}; kJ_=function(w){var M;return((M=QE1.get(w))==null?void 0:M.EA)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; jn=function(w,M){var P={type:M.slotType,controlFlowManagerLayer:R15.get(M.w$)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};M.slotEntryTrigger&&(P.entryTriggerType=M.slotEntryTrigger.triggerType);M.slotPhysicalPosition!==1&&(P.slotPhysicalPosition=M.slotPhysicalPosition);if(w){P.debugData={slotId:M.slotId};if(w=M.slotEntryTrigger)P.debugData.slotEntryTriggerData=rA(w);w=M.slotFulfillmentTriggers;P.debugData.fulfillmentTriggerData=[];w=g.G(w);for(var u=w.next();!u.done;u=w.next())P.debugData.fulfillmentTriggerData.push(rA(u.value)); M=M.slotExpirationTriggers;P.debugData.expirationTriggerData=[];M=g.G(M);for(w=M.next();!w.done;w=M.next())P.debugData.expirationTriggerData.push(rA(w.value))}return P}; nBF=function(w,M){var P={type:M.layoutType,controlFlowManagerLayer:R15.get(M.w$)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};w&&(P.debugData={layoutId:M.layoutId});return P}; rA=function(w,M){var P={type:w.triggerType};M!=null&&(P.category=M);w.triggeringSlotId!=null&&(P.triggerSourceData||(P.triggerSourceData={}),P.triggerSourceData.associatedSlotId=w.triggeringSlotId);w.triggeringLayoutId!=null&&(P.triggerSourceData||(P.triggerSourceData={}),P.triggerSourceData.associatedLayoutId=w.triggeringLayoutId);return P}; vBM=function(w,M,P,u){M={opportunityType:M};w&&(u||P)&&(u=g.EV(u||[],function(X){return jn(w,X)}),M.debugData=Object.assign({},P&&P.length>0?{associatedSlotId:P}:{},u.length>0?{slots:u}:{})); return M}; tf=function(w,M){return function(P){return sE5(Cc(w),M.slotId,M.slotType,M.slotPhysicalPosition,M.w$,M.slotEntryTrigger,M.slotFulfillmentTriggers,M.slotExpirationTriggers,P.layoutId,P.layoutType,P.w$)}}; sE5=function(w,M,P,u,X,U,f,h,c,Z,S){return{adClientDataEntry:{slotData:jn(w,{slotId:M,slotType:P,slotPhysicalPosition:u,w$:X,slotEntryTrigger:U,slotFulfillmentTriggers:f,slotExpirationTriggers:h,clientMetadata:new In([])}),layoutData:nBF(w,{layoutId:c,layoutType:Z,w$:S,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],SL:new Map,clientMetadata:new In([]),Kg:{}})}}}; an=function(w){this.EO=w;w=Math.random();var M=this.EO.get();M=g.Oh(M.U.N().experiments,"html5_debug_data_log_probability");M=Number.isFinite(M)&&M>=0&&M<=1?M:0;this.B=w1){g.Yq(new g.bK("Exit already started",{current:w.currentState}));var P=!1}else P=!0;if(!P)return!1;w.currentState=2;w.B=M;return!0}; Mp=function(w){if(w.currentState!==2)return!1;w.currentState=3;return!0}; FLu=function(w,M){var P=new Map;w=g.G(w);for(var u=w.next();!u.done;u=w.next()){u=u.value;if(u.layoutType==="LAYOUT_TYPE_MEDIA")var X="v";else u.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(X=Af(u.clientMetadata,"metadata_type_linked_in_player_layout_type"),X=X==="LAYOUT_TYPE_ENDCAP"||X==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":X==="LAYOUT_TYPE_SURVEY"?"s":X==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):X="u";P.set(u.layoutId,X);if(X==="u"){var U={};X=M;u=(U.c=u.layoutId,U);X.U.II("uct",u)}}w= M.rG();PU={contentCpn:w,t4:P};u={};P=(u.ct=P.size,u.c=w,u);M.U.II("acc",P)}; ErH=function(){PU={contentCpn:"",t4:new Map}}; u3=function(w){var M;return(M=PU.t4.get(w))!=null?M:"u"}; Xi=function(w,M,P){w.U.II(M,P);NCz(w)}; VXM=function(w){var M=w.layoutId,P=w.f1;if(w.zL){var u={};Xi(w.Bv,"slso",(u.ec=M,u.is=P,u.ctp=u3(M),u))}}; $5=function(w){var M=w.layoutId,P=w.f1;if(w.zL){var u={};Xi(w.Bv,"slse",(u.ec=M,u.is=P,u.ctp=u3(M),u))}}; moF=function(w){var M=w.layoutId,P=w.f1,u=w.Bv;w.zL&&(w={},Xi(u,"sleo",(w.xc=M,w.is=P,w.ctp=u3(M),w)),NCz(u))}; or4=function(w){var M=w.cpn,P=w.Bv;w=w.f1;var u=P.rG(),X={};Xi(P,"ce",(X.ec=M,X.ia=M!==u,X.r=PU.t4.has(M),X.is=w,X.ctp=u3(M),X))}; NCz=function(w){if(w.rG()!==PU.contentCpn){var M={};M=(M.c=PU.contentCpn,M);w.U.II("ccm",M)}}; Gau=function(w){var M=w.cpn,P=w.Bv;w=w.f1;var u=P.rG(),X={};Xi(P,"cx",(X.xc=M,X.ia=M!==u,X.r=PU.t4.has(M),X.is=w,X.ctp=u3(M),X))}; ywy=function(w){this.params=w;this.B=new Set}; DoM=function(w,M,P){if(!w.B.has(M)){w.B.add(M);var u={};w.params.zJ.H3(M,Object.assign({},P,(u.p_ac=w.params.adCpn,u.p_isv=w.params.d9&&w.params.VL,u)))}}; f3=function(w,M,P){if(UI(w.params.zJ.EO.get(),!0)){var u=P.flush,X={};DoM(w,M,(X.cts=P.currentTimeSec,X.f=u,X))}}; q44=function(w,M){this.Bv=w;this.EO=M}; WU=function(w){var M=[];if(w){w=g.G(Object.entries(w));for(var P=w.next();!P.done;P=w.next()){var u=g.G(P.value);P=u.next().value;u=u.next().value;u!==void 0&&(u=typeof u==="boolean"?""+ +u:(""+u).replace(/[:,=]/g,"_"),M.push(P+"."+u))}}return M.join(";")}; g.hy=function(w,M,P){M=M===void 0?{}:M;this.errorCode=w;this.details=M;this.severity=P===void 0?0:P}; cU=function(w){return w===1||w===2}; Zv=function(w,M){M=M===void 0?0:M;if(w instanceof g.hy)return w;w=w&&w instanceof Error?w:Error(""+w);cU(M)?g.qU(w):g.Yq(w);return new g.hy(M===1?"player.fatalexception":"player.exception",{name:""+w.name,message:""+w.message},M)}; Y4F=function(w,M){function P(){var u=g.Kz.apply(0,arguments);w.removeEventListener("playing",P);M.apply(null,g.L(u))} w.addEventListener("playing",P)}; S1=function(){var w=g.Mj("yt.player.utils.videoElement_");w||(w=g.HS("VIDEO"),g.ih("yt.player.utils.videoElement_",w));return w}; HU=function(w){var M=S1();return!!(M&&M.canPlayType&&M.canPlayType(w))}; Fi=function(w){if(/opus/.test(w)&&g.p3&&!mZ("38")&&!g.KB())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(w);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(w);if(/webm/.test(w)&&!Nsp())return!1;w==='audio/mp4; codecs="mp4a.40.2"'&&(w='video/mp4; codecs="avc1.4d401f"');return!!HU(w)}; z3z=function(w){try{var M=Fi('video/mp4; codecs="avc1.42001E"')||Fi('video/webm; codecs="vp9"');return(Fi('audio/mp4; codecs="mp4a.40.2"')||Fi('audio/webm; codecs="opus"'))&&(M||!w)||HU('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(P){return"html5.missingapi"}}; EI=function(){var w=S1();return!(!w.webkitSupportsPresentationMode||typeof w.webkitSetPresentationMode!=="function")}; Np=function(){var w=S1();try{var M=w.muted;w.muted=!M;return w.muted!==M}catch(P){}return!1}; TC4=function(){var w;return((w=navigator.connection)==null?void 0:w.type)||""}; g.V2=function(){yh.apply(this,arguments)}; m9=function(w,M,P,u,X,U,f,h){this.sampleRate=w===void 0?0:w;this.numChannels=M===void 0?0:M;this.spatialAudioType=P===void 0?"SPATIAL_AUDIO_TYPE_NONE":P;this.B=u===void 0?!1:u;this.C=X;this.X=U;this.audioQuality=f===void 0?"AUDIO_QUALITY_UNKNOWN":f;this.L=h===void 0?!1:h}; y2=function(w,M,P,u,X,U,f,h,c){this.width=w;this.height=M;this.quality=U||o0(w,M);this.qualityOrdinal=g.Go[this.quality];this.fps=P||0;this.stereoLayout=!X||u!=null&&u!=="UNKNOWN"&&u!=="RECTANGULAR"?0:X;this.projectionType=u?u==="EQUIRECTANGULAR"&&X===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":u:"UNKNOWN";(w=f)||(w=g.Go[this.quality],w===0?w="Autom\u00e1tica":(M=this.fps,P=this.projectionType,w=w.toString()+(P==="EQUIRECTANGULAR"||P==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||P==="MESH"?"s":"p")+(M>55?"60": M>49?"50":M>39?"48":"")));this.qualityLabel=w;this.B=h||"";this.primaries=c||""}; o0=function(w,M){var P=Math.max(w,M);w=Math.min(w,M);M=Dv[0];for(var u=0;u=Math.floor(U*16/9)*1.3||w>=U*1.3)return M;M=X}return"tiny"}; zo=function(w,M,P){P=P===void 0?{}:P;this.id=w;this.mimeType=M;P.A9>0||(P.A9=16E3);Object.assign(this,P);w=g.G(this.id.split(";"));this.itag=w.next().value;this.B=w.next().value;this.containerType=qp(M);this.zk=Y5[this.itag]||""}; To=function(w){return w.zk==="9"||w.zk==="("||w.zk==="9h"||w.zk==="(h"}; dop=function(w){return w.zk==="H"||w.zk==="h"}; df=function(w){return w.zk==="9h"||w.zk==="(h"}; lIp=function(w){return!!w.Ks&&!!w.Ks.fairplay&&(w.zk==="("||w.zk==="(h"||w.zk==="A"||w.zk==="MEAC3")||l3&&!!w.Ks&&w.zk==="1e"}; L3=function(w){return w.zk==="1"||w.zk==="1h"||l3&&w.zk==="1e"}; e1=function(w){return w.zk==="mac3"||w.zk==="meac3"||w.zk==="m"||w.zk==="i"}; BU=function(w){return w.zk==="MAC3"||w.zk==="MEAC3"||w.zk==="M"||w.zk==="I"}; g.Q2=function(w){return w.containerType===1}; LLM=function(w){return w.zk==="("||w.zk==="(h"||w.zk==="H"||l3&&w.zk==="1e"}; k5=function(w){return w.mimeType==="application/x-mpegURL"}; g.R0=function(w,M){return{itag:+w.itag,lmt:M?0:w.lastModified,xtags:w.B||""}}; e34=function(w){var M=navigator.mediaCapabilities;if(M==null||!M.decodingInfo||w.zk==="f")return Promise.resolve();var P={type:w.audio&&w.video?"file":"media-source"};w.video&&(P.video={contentType:w.mimeType,width:w.video.width||640,height:w.video.height||360,bitrate:w.A9*8||1E6,framerate:w.video.fps||30});w.audio&&(P.audio={contentType:w.mimeType,channels:""+(w.audio.numChannels||2),bitrate:w.A9*8||128E3,samplerate:w.audio.sampleRate||44100});return M.decodingInfo(P).then(function(u){w.L=u})}; n3=function(w){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(w)}; vU=function(w){return/(vp9|vp09|vp8|avc1|av01)/.test(w)}; sI=function(w){return w.includes("vtt")||w.includes("text/mp4")}; qp=function(w){return w.indexOf("/mp4")>=0?1:w.indexOf("/webm")>=0?2:w.indexOf("/x-flv")>=0?3:w.indexOf("/vtt")>=0?4:0}; K3=function(w,M,P,u,X,U){var f=new m9;M in g.Go||(M="small");M==="light"&&(M="tiny");u&&X?(X=Number(X),u=Number(u)):(X=g.Go[M],u=Math.round(X*16/9));U=new y2(u,X,0,null,void 0,M,U);w=unescape(w.replace(/"/g,'"'));return new zo(P,w,{audio:f,video:U})}; b3=function(w){var M="id="+w.id;w.video&&(M+=", res="+w.video.qualityLabel);var P,u;return M+", byterate=("+((P=w.YO)==null?void 0:P.toFixed(0))+", "+((u=w.A9)==null?void 0:u.toFixed(0))+")"}; I0=function(w,M){return{start:function(P){return w[P]}, end:function(P){return M[P]}, length:w.length}}; BCU=function(w,M,P){for(var u=[],X=[],U=0;U=M)return P}catch(u){}return-1}; rf=function(w,M){return Jy(w,M)>=0}; Q6y=function(w,M){if(!w)return NaN;M=Jy(w,M);return M>=0?w.start(M):NaN}; j1=function(w,M){if(!w)return NaN;M=Jy(w,M);return M>=0?w.end(M):NaN}; C3=function(w){return w&&w.length?w.end(w.length-1):NaN}; ty=function(w){return C3(w)>0}; x5=function(w,M){w=j1(w,M);return w>=0?w-M:0}; OI=function(w,M,P){for(var u=[],X=[],U=0;UP||(u.push(Math.max(M,w.start(U))-M),X.push(Math.min(P,w.end(U))-M));return I0(u,X)}; a0=function(w,M,P,u){g.wC.call(this);var X=this;this.Jz=w;this.start=M;this.end=P;this.isActive=u;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.wX={error:function(){!X.sO()&&X.isActive&&X.publish("error",X)}, updateend:function(){!X.sO()&&X.isActive&&X.publish("updateend",X)}}; this.Jz.Ng(this.wX);this.PL=this.isActive}; i8=function(w,M,P,u,X,U){g.wC.call(this);var f=this;this.sF=w;this.Dq=M;this.id=P;this.containerType=u;this.zk=X;this.VL=U;this.rp=this.Wq=this.Jp=null;this.Ut=!1;this.appendWindowStart=this.timestampOffset=0;this.RP=I0([],[]);this.wZ=!1;this.XO=[];this.F2=wp?[]:void 0;this.bB=function(c){return f.publish(c.type,f)}; var h;if((h=this.sF)==null?0:h.addEventListener)this.sF.addEventListener("updateend",this.bB),this.sF.addEventListener("error",this.bB)}; MV=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Pp=function(w,M){this.EF=w;this.B=M===void 0?!1:M;this.L=!1}; u8=function(w,M,P){P=P===void 0?!1:P;g.v.call(this);this.mediaElement=w;this.aI=M;this.isView=P;this.K=0;this.X=!1;this.G=!0;this.S=0;this.callback=null;this.V=!1;this.aI||(this.Dq=this.mediaElement.vj());this.events=new g.V2(this);g.b(this,this.events);this.C=new Pp(this.aI?window.URL.createObjectURL(this.aI):this.Dq.webkitMediaSourceURL,!0);w=this.aI||this.Dq;Dq(this.events,w,["sourceopen","webkitsourceopen"],this.qbI);Dq(this.events,w,["sourceclose","webkitsourceclose"],this.bTO);this.j={updateend:this.zs}}; kaH=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; R3p=function(w,M){XF(w)?g.Vk(function(){M(w)}):w.callback=M}; nrF=function(w,M,P){if($m){var u;UH(w.mediaElement,{l:"mswssb",sr:(u=w.mediaElement.fu)==null?void 0:u.B_()},!1);M.Ng(w.j,w);P.Ng(w.j,w)}w.B=M;w.L=P;g.b(w,M);g.b(w,P)}; fO=function(w){return!!w.B||!!w.L}; XF=function(w){try{return Wp(w)==="open"}catch(M){return!1}}; Wp=function(w){if(w.aI)return w.aI.readyState;switch(w.Dq.webkitSourceState){case w.Dq.SOURCE_OPEN:return"open";case w.Dq.SOURCE_ENDED:return"ended";default:return"closed"}}; hO=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; vry=function(w){XF(w)&&(w.aI?w.aI.endOfStream():w.Dq.webkitSourceEndOfStream(w.Dq.EOS_NO_ERROR))}; s6M=function(w,M,P,u){if(!w.B||!w.L)return null;var X=w.B.isView()?w.B.Jz:w.B,U=w.L.isView()?w.L.Jz:w.L,f=new u8(w.mediaElement,w.aI,!0);f.C=w.C;nrF(f,new a0(X,M,P,u),new a0(U,M,P,u));XF(w)||w.B.IN(w.B.OF());return f}; KL5=function(w){var M;(M=w.B)==null||M.Iq();var P;(P=w.L)==null||P.Iq();w.G=!1}; cp=function(){var w=this;this.pI=this.Jo=m_H;this.promise=new g.qa(function(M,P){w.Jo=M;w.pI=P})}; ZS=function(){g.v.call(this);this.t7=!1;this.EF=null;this.j=this.K=!1;this.X=new g.WX;this.fu=null;g.b(this,this.X)}; SI=function(w){w=w.Nm();return w.length<1?NaN:w.end(w.length-1)}; bf2=function(w){!w.L&&kaH()&&(w.C?w.C.then(function(){return bf2(w)}):w.Ez()||(w.L=w.XG()))}; IIp=function(w){w.L&&(w.L.dispose(),w.L=void 0)}; UH=function(w,M,P){var u;((u=w.fu)==null?0:u.FX())&&w.fu.II("rms",M,P===void 0?!1:P)}; Awu=function(w,M,P){w.isPaused()||w.getCurrentTime()>M||P>10||(w.play(),g.cF(function(){Awu(w,w.getCurrentTime(),P+1)},500))}; grF=function(w,M){w.EF&&w.EF.equals(M)||(w.EF&&w.EF.dispose(),w.EF=M)}; Hp=function(w){return x5(w.z0(),w.getCurrentTime())}; Jw_=function(w,M){if(w.Jt()===0||w.hasError())return!1;var P=w.getCurrentTime()>0;return M>=0&&(w=w.Nm(),w.length||!P)?rf(w,M):P}; pO=function(w){w.Ez()&&(w.fu&&w.fu.bP("rs_s"),bb&&w.getCurrentTime()>0&&w.seekTo(0),w.Yi(),w.load(),grF(w,null));delete w.C}; FF=function(w){switch(w.lX()){case 2:return"progressive.net.retryexhausted";case 3:return w=w.Eq(),(w==null?0:w.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||rwF&&(w==null?0:w.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.EH=function(w,M,P){this.tV=M===void 0?null:M;this.seekSource=P===void 0?null:P;this.state=w||64}; NV=function(w,M,P){P=P===void 0?!1:P;return j62(w,M.getCurrentTime(),(0,g.G$)(),Hp(M),P)}; VO=function(w,M,P,u){if(!(M===w.state&&P===w.tV&&u===w.seekSource||M!==void 0&&(M&128&&!P||M&2&&M&16))){var X;if(X=M)X=M||w.state,X=!!(X&16||X&32);w=new g.EH(M,P,X?u?u:w.seekSource:null)}return w}; mI=function(w,M,P){return VO(w,w.state|M,null,P===void 0?null:P)}; oN=function(w,M){return VO(w,w.state&~M,null,null)}; GE=function(w,M,P,u){return VO(w,(w.state|M)&~P,null,u===void 0?null:u)}; g.C=function(w,M){return!!(w.state&M)}; g.yO=function(w,M){return M.state===w.state&&M.tV===w.tV}; DS=function(w){return w.isPlaying()&&!g.C(w,16)&&!g.C(w,32)}; qV=function(w){return g.C(w,128)?-1:g.C(w,2)?0:g.C(w,2048)?3:g.C(w,64)?-1:g.C(w,1)&&!g.C(w,32)?3:g.C(w,8)?1:g.C(w,4)?2:-1}; zE=function(w,M,P,u,X,U,f,h,c,Z,S,H,p,F,E,y,q){g.v.call(this);var d=this;this.rr=w;this.slot=M;this.layout=P;this.FK=u;this.Bj=X;this.D3=U;this.W3=f;this.Rv=h;this.XX=c;this.jd=Z;this.position=H;this.K=p;this.EO=F;this.PQ=E;this.n9=y;this.context=q;this.Hv=!0;this.G=!1;this.zE="not_rendering";this.L=!1;this.C=new wf;w=Af(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.lW=new cZ(P.SL,this.FK,w,P.layoutId);var l;w=((l=Ym(this))==null?void 0:l.progressCommands)||[];this.X=new rgu(c, w,P.layoutId,function(){return d.lO()}); this.B=new ywy({adCpn:this.layout.layoutId,zJ:q.zJ,d9:this.PQ,VL:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; TE=function(w){return{layoutId:w.Yh(),f1:w.PQ,Bv:w.D3.get(),zL:w.UE()}}; dp=function(w,M){return M.layoutId!==w.layout.layoutId?(w.rr.Pv(w.slot,M,new ba("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+w.layout.layoutId+("and LayoutType: "+w.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; l8=function(w){w.zE="rendering_start_requested";w.jd(-1)}; Ym=function(w){return Af(w.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; Cu1=function(w){X$("Received layout exit signal when not in layout exit flow.",w.slot,w.layout)}; tXu=function(w){var M;return((M=LO(w.D3.get(),2))==null?void 0:M.clientPlaybackNonce)||""}; eI=function(w,M){switch(M){case "normal":w.a9("complete");break;case "skipped":w.a9("skip");break;case "abandoned":Ed(w.lW,"impression")&&w.a9("abandon")}}; Bp=function(w,M){w.G||(M=new g.$9(M.state,new g.EH),w.G=!0);return M}; QO=function(w,M){tJ(M)?w.jd(1):g.fW(M,4)&&!g.fW(M,2)&&w.B6();Ug(M,4)<0&&!(Ug(M,2)<0)&&w.Lc()}; xoy=function(w){w.position===0&&(w.Rv.get(),w=Af(w.layout.clientMetadata,"metadata_type_ad_placement_config").kind,w={adBreakType:km(w)},yc("ad_bl"),g.Db(w))}; RN=function(w,M){pN(w.lW,M,!w.L)}; aI5=function(w){var M;return(((M=Ym(w))==null?void 0:M.progressCommands)||[]).findIndex(function(P){return!!g.A(P==null?void 0:P.command,Ofz)})!==-1}; nO=function(w,M){var P=Af(w.clientMetadata,"metadata_type_eligible_for_ssap");return P===void 0?(X$("Expected SSAP eligibility in PlayerBytes factory",w),!1):M.UE(P)}; vp=function(w,M){if(!BJ(M.get(),"html5_ssap_pass_transition_reason"))return 3;switch(w){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return X$("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return X$("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:w}),3;default:Z7(w,"unknown layoutExitReason")}}; wjR=function(w){X$("getExitReason: unexpected reason",void 0,void 0,{reason:w})}; sH=function(w,M){if(BJ(M.get(),"html5_ssap_pass_transition_reason"))switch(w){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return wjR(w),"abandoned";case 3:case 1:return wjR(w),"error";default:Z7(w,"unexpected transition reason")}else switch(w){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return X$("getExitReason: unexpected reason",void 0,void 0,{reason:w}),"error";default:Z7(w,"unexpected transition reason")}}; g.KO=function(w,M,P){YL(w,P)||Tv(w,M,P);YL(w,"video_to_ad")||Tv(w,M,"video_to_ad");YL(w,"ad_to_video")||Tv(w,M,"ad_to_video");YL(w,"ad_to_ad")||Tv(w,M,"ad_to_ad")}; b8=function(w,M,P,u,X,U,f,h,c,Z,S,H,p,F,E,y,q,d){zE.call(this,w,M,P,u,X,U,f,h,Z,S,H,p,F,E,y,q,d);var l=this;this.YA=c;this.B8=H;this.ZK=!0;this.XD=this.IY=0;this.kd=Qy(function(){VXM(TE(l));l.rr.N7(l.slot,l.layout)}); this.Vi=Qy(function(){moF(TE(l));l.zE!=="rendering_stop_requested"&&l.B8(l);l.layoutExitReason?l.rr.Eb(l.slot,l.layout,l.layoutExitReason):Cu1(l)}); this.timer=new g.e7(200);this.timer.listen("tick",function(){l.Ub()}); g.b(this,this.timer)}; AO=function(w){w.XD=Date.now();IN(w,w.IY);w.timer.start()}; iWy=function(w){w.IY=w.lO();w.y5(w.IY/1E3,!0);IN(w,w.IY)}; IN=function(w,M){M={current:M/1E3,duration:w.lO()/1E3};w.YA.get().Oy("onAdPlaybackProgress",M)}; gp=function(w){b8.call(this,w.rr,w.slot,w.KV,w.FK,w.Bj,w.D3,w.W3,w.Rv,w.YA,w.XX,w.jd,w.B8,w.nX,w.Yw,w.EO,w.PQ,w.n9,w.context)}; JO=function(w){b8.call(this,w.rr,w.slot,w.KV,w.FK,w.Bj,w.D3,w.W3,w.Rv,w.YA,w.XX,w.jd,w.B8,w.nX,w.Yw,w.EO,w.PQ,w.n9,w.context)}; rp=function(){JO.apply(this,arguments)}; Mwl=function(w){return nO(w.slot,w.EO.get())?new rp(w):new gp(w)}; tO=function(w){zE.call(this,w.callback,w.slot,w.KV,w.FK,w.Bj,w.D3,w.W3,w.Rv,w.XX,w.jd,w.B8,w.nX,w.Yw,w.EO,w.PQ,w.n9,w.context);var M=this;this.adCpn="";this.C7=this.y9=0;this.kd=Qy(function(){VXM(TE(M));M.rr.N7(M.slot,M.layout)}); this.Vi=Qy(function(){moF(TE(M));M.zE!=="rendering_stop_requested"&&M.B8(M);M.layoutExitReason?M.rr.Eb(M.slot,M.layout,M.layoutExitReason):Cu1(M)}); this.o7=w.o7;this.pT=w.pT;this.Iv=w.Iv;this.YA=w.YA;this.gO=w.gO;this.B8=w.B8;if(!this.UE()){BJ(this.EO.get(),"html5_disable_media_load_timeout")||(this.Uw=new g.gV(function(){M.t1("load_timeout",new ba("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); w=jI(this.EO.get());var P=CO(this.EO.get());w&&P&&(this.TN=new g.gV(function(){var u=Af(M.layout.clientMetadata,"metadata_type_preload_player_vars");u&&M.pT.get().U.preloadVideoByPlayerVars(u,2,300)}))}}; u$4=function(w,M){var P=Af(M.clientMetadata,"metadata_type_ad_video_id"),u=Af(M.clientMetadata,"metadata_type_legacy_info_card_vast_extension");P&&u&&w.gO.get().U.N().UO.add(P,{yU:u});(M=Af(M.clientMetadata,"metadata_type_sodar_extension_data"))&&Xmz(w.o7.get(),M);P0z(w.W3.get(),!1)}; Xj2=function(w){P0z(w.W3.get(),!0);var M;((M=w.shrunkenPlayerBytesConfig)==null?0:M.shouldRequestShrunkenPlayerBytes)&&w.W3.get().o4(!1)}; $9x=function(w){return new xm(w)}; OH=function(){tO.apply(this,arguments)}; xm=function(){OH.apply(this,arguments)}; U9y=function(w){return Mwl(Object.assign({},w,{rr:w.callback,jd:function(){}}))}; fk1=function(w){return new tO(Object.assign({},w,{jd:function(M){w.YA.get().Oy("onAdIntroStateChange",M)}}))}; Wol=function(w){function M(P){w.YA.get().DQ(P)} return nO(w.slot,w.EO.get())?$9x(Object.assign({},w,{jd:M})):new tO(Object.assign({},w,{jd:M}))}; aN=function(w){for(var M=w.KV,P=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],u=g.G(Zf()),X=u.next();!X.done;X=u.next())P.push(X.value);if(Qd(M,{Pl:P,ZO:["LAYOUT_TYPE_MEDIA_BREAK"]}))return U9y(w);M=w.KV;P=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];u=g.G(Zf());for(X=u.next();!X.done;X=u.next())P.push(X.value);if(Qd(M,{Pl:P,ZO:["LAYOUT_TYPE_MEDIA"]}))return vk(w.KV.clientMetadata,"metadata_type_ad_intro")?fk1(w):Wol(w)}; cb5=function(w){var M=Af(w.clientMetadata,"metadata_type_ad_placement_config").kind,P=Af(w.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:w.layoutId,adType:hK4(P),adBreakType:km(M)}}; km=function(w){switch(w){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; hK4=function(w){switch(w){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; ZWy=function(w){try{return new w6(w.Nk,w.slot,w.layout,w.Ur,w.XP,w.D3,w.LT,w.pT,w.q7,w.W3,w.m8u,w)}catch(M){}}; w6=function(w,M,P,u,X,U,f,h,c,Z,S,H){g.v.call(this);this.Nk=w;this.slot=M;this.layout=P;this.Ur=u;this.XP=X;this.D3=U;this.LT=f;this.pT=h;this.q7=c;this.W3=Z;this.params=H;this.Hv=!0;w=aN(S);if(!w)throw Error("Invalid params for sublayout");this.uB=w}; SgM=function(){this.B=1;this.L=new wf}; iP=function(w,M,P,u,X,U,f,h,c,Z,S,H,p,F){g.v.call(this);this.callback=w;this.D3=M;this.LT=P;this.pT=u;this.W3=X;this.Uq=U;this.Rv=f;this.RN=h;this.slot=c;this.layout=Z;this.Ur=S;this.wh=H;this.q7=p;this.EO=F;this.Hv=!0;this.hM=!1;this.zz=[];this.FC=-1;this.Za=!1;this.WW=new SgM}; HWz=function(w){var M;return(M=w.layout.i4)!=null?M:Af(w.layout.clientMetadata,"metadata_type_sub_layouts")}; Mm=function(w){return{Bv:w.D3.get(),f1:!1,zL:w.UE()}}; pj5=function(w,M,P){if(w.mA()===w.zz.length-1){var u,X;X$("Unexpected skip requested during the last sublayout",(u=w.HB())==null?void 0:u.gK(),(X=w.HB())==null?void 0:X.Qs(),{requestingSlot:M,requestingLayout:P})}}; Fo2=function(w,M,P){return P.layoutId!==Po(w,M,P)?(X$("onSkipRequested for a PlayerBytes layout that is not currently active",w.gK(),w.Qs()),!1):!0}; E9p=function(w){w.mA()===w.zz.length-1&&X$("Unexpected skip with target requested during the last sublayout")}; NMu=function(w,M,P){return P.renderingContent===void 0&&P.layoutId!==Po(w,M,P)?(X$("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",w.gK(),w.Qs(),{requestingSlot:M,requestingLayout:P}),!1):!0}; VwR=function(w,M,P,u){var X=Af(M.Qs().clientMetadata,"metadata_type_ad_pod_skip_target");if(X&&X>0&&X0)){X$("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",w.slot,w.layout,{indexToPlay:M,layoutId:w.layout.layoutId});break a}w.FC=M;M=w.HB();if(w.mA()>0&&!w.UE()){var P=w.Rv.get();P.L=!1;var u={};P.B&&P.videoId&&(u.cttAuthInfo={token:P.B,videoId:P.videoId});qH("ad_to_ad",u)}w.Cz(M)}}; Uw=function(w){iP.call(this,w.Nk,w.D3,w.LT,w.pT,w.W3,w.Uq,w.Rv,w.RN,w.slot,w.layout,w.Ur,w.wh,w.q7,w.EO)}; GOp=function(w){(w=w.HB())&&w.H1()}; fe=function(w){iP.call(this,w.Nk,w.D3,w.LT,w.pT,w.W3,w.Uq,w.Rv,w.RN,w.slot,w.layout,w.Ur,w.wh,w.q7,w.EO);this.sE=void 0}; yb1=function(w,M){w.n8()&&!Mp(w.WW.L)||w.callback.Eb(w.slot,w.layout,M)}; Wo=function(w){return BJ(w.EO.get(),"html5_ssap_pass_transition_reason")}; D91=function(w,M,P){M.Qv().currentState<2&&(P=sH(P,w.EO),M.Hk(M.Qs(),P));P=M.Qv().B;w.aP(w.slot,M.Qs(),P)}; qg1=function(w,M){if(w.WW.L.currentState<2){var P=sH(M,w.EO);P==="error"?w.callback.Pv(w.slot,w.layout,new ba("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:M},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):$e(w.wh,w.layout,P)}}; hQ=function(w,M,P){M.Qv().currentState>=2||(M.Hk(M.Qs(),P),Mp(M.Qv())&&(HJ(w.RN,w.slot,M.Qs(),P),w.sE=void 0))}; Ygx=function(w,M){w.WW.B===2&&M!==w.rG()&&X$("onClipEntered: unknown cpn",w.slot,w.layout,{cpn:M})}; zKp=function(w,M){var P=w.HB();if(P){var u=P.Qs().layoutId,X=w.mA()+1;w.n8()?hQ(w,P,M):P.Hk(P.Qs(),M);X>=0&&XX&&f.NK(S,X-u);return S}; RK1=function(w,M,P){var u=Af(M.clientMetadata,"metadata_type_sodar_extension_data");if(u)try{Xmz(P,u)}catch(X){X$("Unexpected error when loading Sodar",w,M,{error:X})}}; n91=function(w,M,P,u,X,U,f){Ew(w,M,new g.$9(P,new g.EH),u,X,f,!1,U)}; Ew=function(w,M,P,u,X,U,f,h){f=f===void 0?!0:f;tJ(P)&&xC(X,0,null)&&(!Ed(w,"impression")&&h&&h(),w.a9("impression"));Ed(w,"impression")&&(g.fW(P,4)&&!g.fW(P,2)&&w.Zq("pause"),Ug(P,4)<0&&!(Ug(P,2)<0)&&w.Zq("resume"),g.fW(P,16)&&X>=.5&&w.Zq("seek"),f&&g.fW(P,2)&&Nm(w,P.state,M,u,X,U))}; Nm=function(w,M,P,u,X,U,f,h){Ed(w,"impression")&&(U?(U=X-u,U=U>=-1&&U<=2):U=Math.abs(u-X)<=1,VE(w,M,U?u:X,P,u,f,h&&U),U&&w.a9("complete"))}; VE=function(w,M,P,u,X,U,f){F3(w,P*1E3,f);X<=0||P<=0||(M==null?0:g.C(M,16))||(M==null?0:g.C(M,32))||(xC(P,X*.25,u)&&(U&&!Ed(w,"first_quartile")&&U("first"),w.a9("first_quartile")),xC(P,X*.5,u)&&(U&&!Ed(w,"midpoint")&&U("second"),w.a9("midpoint")),xC(P,X*.75,u)&&(U&&!Ed(w,"third_quartile")&&U("third"),w.a9("third_quartile")))}; v9M=function(w,M){Ed(w,"impression")&&w.Zq(M?"fullscreen":"end_fullscreen")}; sdH=function(w){Ed(w,"impression")&&w.Zq("clickthrough")}; Kou=function(w){w.Zq("active_view_measurable")}; bW5=function(w){Ed(w,"impression")&&!Ed(w,"seek")&&w.Zq("active_view_fully_viewable_audible_half_duration")}; IkM=function(w){Ed(w,"impression")&&!Ed(w,"seek")&&w.Zq("active_view_viewable")}; Aby=function(w){Ed(w,"impression")&&!Ed(w,"seek")&&w.Zq("audio_audible")}; g9H=function(w){Ed(w,"impression")&&!Ed(w,"seek")&&w.Zq("audio_measurable")}; Jb2=function(w,M,P,u,X,U,f,h,c,Z,S,H,p){this.callback=w;this.slot=M;this.layout=P;this.LT=u;this.lW=X;this.W3=U;this.qx=f;this.Bj=h;this.o7=c;this.EO=Z;this.FK=S;this.D3=H;this.Iv=p;this.ZK=!0;this.QH=this.zE=null;this.adCpn=void 0;this.B=!1}; rb_=function(w,M,P){var u;Fn(w.FK.get(),"ads_qua","cpn."+Af(w.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((u=LO(w.D3.get(),2))==null?void 0:u.clientPlaybackNonce)+";qt."+M+";clr."+P)}; jd2=function(w,M){var P,u;Fn(w.FK.get(),"ads_imp","cpn."+Af(w.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((P=LO(w.D3.get(),2))==null?void 0:P.clientPlaybackNonce)+";clr."+M+";skp."+!!g.A((u=Af(w.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:u.skipOrPreviewRenderer,mt))}; ol=function(w){return{enterMs:Af(w.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Af(w.clientMetadata,"metadata_type_layout_exit_ms")}}; G9=function(w,M,P,u,X,U,f,h,c,Z,S,H,p,F){Zc.call(this,w,M,P,u,X,f,h,c,Z,H);this.qx=U;this.o7=S;this.Bj=p;this.EO=F;this.QH=this.zE=null}; C02=function(w,M){var P;Fn(w.FK.get(),"ads_imp","acpn."+((P=LO(w.D3.get(),2))==null?void 0:P.clientPlaybackNonce)+";clr."+M)}; twR=function(w,M,P){var u;Fn(w.FK.get(),"ads_qua","cpn."+Af(w.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((u=LO(w.D3.get(),2))==null?void 0:u.clientPlaybackNonce)+";qt."+M+";clr."+P)}; yE=function(w,M,P,u,X,U,f,h,c,Z,S,H,p,F,E,y,q,d,l,e,R,I){this.q7=w;this.Ur=M;this.wh=P;this.D3=u;this.LT=X;this.W3=U;this.Uq=f;this.FK=h;this.qx=c;this.Ya=Z;this.Bj=S;this.o7=H;this.pT=p;this.Iv=F;this.Rv=E;this.YA=y;this.XX=q;this.gO=d;this.EO=l;this.B=e;this.context=R;this.n9=I}; Dc=function(w,M,P,u,X,U,f,h,c,Z,S,H,p,F,E,y,q,d,l){this.q7=w;this.Ur=M;this.wh=P;this.FK=u;this.Bj=X;this.o7=U;this.pT=f;this.D3=h;this.W3=c;this.Uq=Z;this.Iv=S;this.Rv=H;this.YA=p;this.XX=F;this.gO=E;this.EO=y;this.LT=q;this.context=d;this.n9=l}; x9x=function(w,M,P,u){ax.call(this,"survey-interstitial",w,M,P,u)}; qm=function(w,M,P,u,X){PZ.call(this,P,w,M,u);this.FK=X;w=Af(M.clientMetadata,"metadata_type_ad_placement_config");this.lW=new cZ(M.SL,X,w,M.layoutId)}; Ye=function(w){return Math.round(w.width)+"x"+Math.round(w.height)}; T9=function(w,M,P){P=P===void 0?z9:P;P.widthw.width*w.height*.2)return{bV:3,b8:501,errorMessage:"ad("+Ye(P)+") to container("+Ye(w)+") ratio exceeds limit."};if(P.height>w.height/3-M)return{bV:3,b8:501,errorMessage:"ad("+Ye(P)+") covers container("+Ye(w)+") center."}}; OWz=function(w,M){var P=Af(w.clientMetadata,"metadata_type_ad_placement_config");return new cZ(w.SL,M,P,w.layoutId)}; d6=function(w){return Af(w.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; lP=function(w,M,P,u){ax.call(this,"invideo-overlay",w,M,P,u);this.interactionLoggingClientData=u}; Le=function(w,M,P,u,X,U,f,h,c,Z,S,H){PZ.call(this,U,w,M,X);this.FK=P;this.X=f;this.W3=h;this.XX=c;this.EO=Z;this.K=S;this.G=H;this.lW=OWz(M,P)}; ak4=function(){var w=["metadata_type_invideo_overlay_ad_renderer"];Zf().forEach(function(M){w.push(M)}); return{Pl:w,ZO:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; ea=function(w,M,P,u,X,U,f,h,c,Z,S,H,p){PZ.call(this,U,w,M,X);this.FK=P;this.X=f;this.V=h;this.W3=c;this.XX=Z;this.EO=S;this.K=H;this.G=p;this.lW=OWz(M,P)}; wgR=function(){for(var w=["metadata_type_invideo_overlay_ad_renderer"],M=g.G(Zf()),P=M.next();!P.done;P=M.next())w.push(P.value);return{Pl:w,ZO:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; Bo=function(w){this.W3=w;this.B=!1}; iUz=function(w,M,P){ax.call(this,"survey",w,{},M,P)}; QE=function(w,M,P,u,X,U,f){PZ.call(this,P,w,M,u);this.X=X;this.W3=U;this.EO=f}; Mll=function(w,M,P,u,X,U,f,h,c,Z){this.SK=w;this.W3=M;this.FK=P;this.X=u;this.Bj=X;this.L=U;this.C=f;this.XX=h;this.EO=c;this.B=Z}; Pw2=function(w,M,P,u,X,U,f,h,c,Z){this.SK=w;this.W3=M;this.FK=P;this.X=u;this.Bj=X;this.L=U;this.C=f;this.XX=h;this.EO=c;this.B=Z}; ke=function(w,M,P,u,X,U,f,h,c,Z){KN.call(this,w,M,P,u,X,U,f,c);this.Ca=h;this.D3=Z}; uGp=function(){var w=h3x();w.Pl.push("metadata_type_ad_info_ad_metadata");return w}; Xgl=function(w,M,P,u,X,U,f){this.SK=w;this.W3=M;this.FK=P;this.L=u;this.Ca=X;this.B=U;this.D3=f}; $Hz=function(w,M,P,u,X,U,f,h){this.SK=w;this.W3=M;this.FK=P;this.L=u;this.Ca=X;this.B=U;this.EO=f;this.D3=h}; Rl=function(w,M){this.slotId=M;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=w(this.triggerType)}; ne=function(w,M){this.adPodIndex=w;this.B=M.length;this.adBreakLengthSeconds=M.reduce(function(u,X){return u+X},0); var P=0;for(w+=1;w0}; du=function(w){return!!(w.mw&&w.slot&&w.layout)}; l_=function(w){var M,P=(M=w.config)==null?void 0:M.adPlacementConfig;w=w.renderer;return!(!P||P.kind==null||!w)}; oLF=function(w){if(!p8(w.adLayoutMetadata))return!1;w=w.renderingContent;return g.A(w,rw)||g.A(w,jT)||g.A(w,mHU)||g.A(w,gw)||g.A(w,JJ)?!0:!1}; L8=function(w){return w.playerVars!==void 0&&w.pings!==void 0&&w.externalVideoId!==void 0}; vE=function(w){if(!p8(w.adLayoutMetadata))return!1;w=w.renderingContent;var M=g.A(w,eJ);return M?BE(M):(M=g.A(w,Qz))?L8(M):(M=g.A(w,k7))?M.playerVars!==void 0:(M=g.A(w,rw))?M.durationMilliseconds!==void 0:g.A(w,R8)||g.A(w,n8)?!0:!1}; BE=function(w){w=(w.sequentialLayouts||[]).map(function(M){return g.A(M,sG)}); return w.length>0&&w.every(vE)}; b_=function(w){return p8(w.adLayoutMetadata)?(w=g.A(w.renderingContent,K8))&&w.pings?!0:!1:!1}; zl4=function(w){if(!p8(w.adLayoutMetadata))return!1;if(g.A(w.renderingContent,Gvu)||g.A(w.renderingContent,ycM))return!0;var M=g.A(w.renderingContent,I8);return g.A(w.renderingContent,A7)||g.A(M==null?void 0:M.sidePanel,DHz)||g.A(M==null?void 0:M.sidePanel,q7p)||g.A(M==null?void 0:M.sidePanel,Y7_)?!0:!1}; elx=function(w){var M;(M=!w)||(M=w.adSlotMetadata,M=!((M==null?void 0:M.slotId)!==void 0&&(M==null?void 0:M.slotType)!==void 0));if(M||!(TgH(w)||w.slotEntryTrigger&&w.slotFulfillmentTriggers&&w.slotExpirationTriggers))return!1;var P;w=(P=w.fulfillmentContent)==null?void 0:P.fulfilledLayout;return(P=g.A(w,sG))?vE(P):(P=g.A(w,gu))?zl4(P):(P=g.A(w,dHx))?oLF(P):(P=g.A(w,lby))?Ng1(P):(P=g.A(w,LX4))?p8(P.adLayoutMetadata)?g.A(P.renderingContent,FJ)?!0:!1:!1:(w=g.A(w,J7))?b_(w):!1}; TgH=function(w){var M;w=g.A((M=w.fulfillmentContent)==null?void 0:M.fulfilledLayout,gu);var P;return w&&((P=w.adLayoutMetadata)==null?void 0:P.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&w.layoutExitNormalTriggers===void 0}; Bg4=function(w){var M;return(w==null?void 0:(M=w.adSlotMetadata)==null?void 0:M.slotType)==="SLOT_TYPE_IN_PLAYER"}; kvR=function(w,M){var P;if((P=w.questions)==null||!P.length||!w.playbackCommands||(M===void 0||!M)&&w.questions.length!==1)return!1;w=g.G(w.questions);for(M=w.next();!M.done;M=w.next()){M=M.value;var u=P=void 0,X=((P=g.A(M,ru))==null?void 0:P.surveyAdQuestionCommon)||((u=g.A(M,jJ))==null?void 0:u.surveyAdQuestionCommon);if(!QYR(X))return!1}return!0}; RlH=function(w){w=((w==null?void 0:w.playerOverlay)||{}).instreamSurveyAdRenderer;var M;if(w)if(w.playbackCommands&&w.questions&&w.questions.length===1){var P,u=((M=g.A(w.questions[0],ru))==null?void 0:M.surveyAdQuestionCommon)||((P=g.A(w.questions[0],jJ))==null?void 0:P.surveyAdQuestionCommon);M=QYR(u)}else M=!1;else M=!1;return M}; QYR=function(w){if(!w)return!1;w=g.A(w.instreamAdPlayerOverlay,C8);var M=g.A(w==null?void 0:w.skipOrPreviewRenderer,mt),P=g.A(w==null?void 0:w.adInfoRenderer,t7);return(g.A(w==null?void 0:w.skipOrPreviewRenderer,x7)||M)&&P?!0:!1}; nLH=function(w){return w.linearAds!=null&&p8(w.adLayoutMetadata)}; vLy=function(w){return w.linearAd!=null&&w.adVideoStart!=null}; sYu=function(w){if(isNaN(Number(w.timeoutSeconds))||!w.text||!w.ctaButton||!g.A(w.ctaButton,g.OG)||!w.brandImage)return!1;var M;return w.backgroundImage&&g.A(w.backgroundImage,a8)&&((M=g.A(w.backgroundImage,a8))==null?0:M.landscape)?!0:!1}; wZ=function(w,M,P,u,X,U,f,h){g.v.call(this);this.EO=w;this.B=M;this.L=u;this.D3=X;this.X=U;this.C=f;this.pT=h}; Ibz=function(w,M,P){var u,X=((u=P.adSlots)!=null?u:[]).map(function(h){return g.A(h,is)}); if(P.Hm)if(Af(M.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))aB(w.B.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},M.slotId); else{if(w.EO.get().U.N().D("h5_check_forecasting_renderer_for_throttled_midroll")){var U=P.Tl.filter(function(h){var c;return((c=h.renderer)==null?void 0:c.clientForecastingAdRenderer)!=null}); U.length!==0?KX5(w.C,U,X,M.slotId,P.ssdaiAdsConfig):aB(w.B.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},M.slotId)}else aB(w.B.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},M.slotId); bUu(w.X,M)}else{var f;u={G2:Math.round(((U=Af(M.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:U.G2)||0),eB:(f=Af(M.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:f.eB};KX5(w.C,P.Tl,X,M.slotId,P.ssdaiAdsConfig,u)}}; Jcp=function(w,M,P,u,X,U,f){var h=LO(w.D3.get(),1);if(Ac5(w.EO.get())){var c=M$(w.L.get(),P,u,X,h.clientPlaybackNonce,h.oQ,h.daiEnabled,h,U,f);gL5(w,c);aB(w.B.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return c},M)}else aB(w.B.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return M$(w.L.get(),P,u,X,h.clientPlaybackNonce,h.oQ,h.daiEnabled,h,U,f)},M)}; gL5=function(w,M){M=g.G(M);for(var P=M.next();!P.done;P=M.next()){var u=P.value;if(u.slotType==="SLOT_TYPE_PLAYER_BYTES"&&u.fulfilledLayout)if(P=void 0,u.fulfilledLayout.renderingContent)P=Af(u.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(u.fulfilledLayout.i4){u=g.G(u.fulfilledLayout.i4);for(var X=u.next();!X.done&&(X=X.value,!X.renderingContent||!(P=Af(X.clientMetadata,"metadata_type_player_vars")));X=u.next());}}else P=void 0;if(P){w.pT.get().U.preloadVideoByPlayerVars(P, 2,300);break}}}; jYU=function(w,M,P,u,X,U,f){M=rcM(M,U,Number(u.prefetchMilliseconds)||0,f);w=M instanceof x?M:P8(w,u,X,M,P);return w instanceof x?w:[w]}; Cwu=function(w,M,P,u,X){var U=ww(w.L.get(),"SLOT_TYPE_AD_BREAK_REQUEST");u=[new on({getAdBreakUrl:u.getAdBreakUrl,G2:0,eB:0}),new ky(!0)];w=M.pauseDurationMs?M.lactThresholdMs?{slotId:U,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new h7(w.B,U),slotFulfillmentTriggers:[new fb1(w.B)],slotExpirationTriggers:[new PE(w.B,X),new UG(w.B,U)],w$:"core",clientMetadata:new In(u),adSlotLoggingData:P}:new x("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new x("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return w instanceof x?w:[w]}; tlU=function(w){var M,P;return((M=w.renderer)==null?void 0:(P=M.adBreakServiceRenderer)==null?void 0:P.getAdBreakUrl)!==void 0}; us=function(w,M,P){if(w.beforeContentVideoIdStartedTrigger)w=w.beforeContentVideoIdStartedTrigger?new vo(Kc,M,w.id):new x("Not able to create BeforeContentVideoIdStartedTrigger");else{if(w.layoutIdExitedTrigger){var u;M=(u=w.layoutIdExitedTrigger)!=null&&u.triggeringLayoutId?new JQ(Kc,w.layoutIdExitedTrigger.triggeringLayoutId,w.id):new x("Not able to create LayoutIdExitedTrigger")}else{if(w.layoutExitedForReasonTrigger){var X,U;((X=w.layoutExitedForReasonTrigger)==null?0:X.triggeringLayoutId)&&((U= w.layoutExitedForReasonTrigger)==null?0:U.layoutExitReason)?(M=WXl(w.layoutExitedForReasonTrigger.layoutExitReason),w=M instanceof x?M:new g6(Kc,w.layoutExitedForReasonTrigger.triggeringLayoutId,[M],w.id)):w=new x("Not able to create LayoutIdExitedForReasonTrigger")}else{if(w.onLayoutSelfExitRequestedTrigger){var f;M=(f=w.onLayoutSelfExitRequestedTrigger)!=null&&f.triggeringLayoutId?new MS(Kc,w.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,w.id):new x("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(w.onNewPlaybackAfterContentVideoIdTrigger)w= w.onNewPlaybackAfterContentVideoIdTrigger?new PE(Kc,M,w.id):new x("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(w.skipRequestedTrigger){var h;M=(h=w.skipRequestedTrigger)!=null&&h.triggeringLayoutId?new XJ(Kc,w.skipRequestedTrigger.triggeringLayoutId,w.id):new x("Not able to create SkipRequestedTrigger")}else if(w.slotIdEnteredTrigger){var c;M=(c=w.slotIdEnteredTrigger)!=null&&c.triggeringSlotId?new $7(Kc,w.slotIdEnteredTrigger.triggeringSlotId,w.id):new x("Not able to create SlotIdEnteredTrigger")}else if(w.slotIdExitedTrigger){var Z; M=(Z=w.slotIdExitedTrigger)!=null&&Z.triggeringSlotId?new UG(Kc,w.slotIdExitedTrigger.triggeringSlotId,w.id):new x("Not able to create SkipRequestedTrigger")}else if(w.surveySubmittedTrigger){var S;M=(S=w.surveySubmittedTrigger)!=null&&S.triggeringLayoutId?new Zn(Kc,w.surveySubmittedTrigger.triggeringLayoutId,w.id):new x("Not able to create SurveySubmittedTrigger")}else{if(w.mediaResumedTrigger)w=w.mediaResumedTrigger&&w.id?new hlH(w.id):new x("Not able to create MediaResumedTrigger");else{if(w.closeRequestedTrigger){var H; M=(H=w.closeRequestedTrigger)!=null&&H.triggeringLayoutId?new Ke(Kc,w.closeRequestedTrigger.triggeringLayoutId,w.id):new x("Not able to create CloseRequestedTrigger")}else if(w.slotIdScheduledTrigger){var p;M=(p=w.slotIdScheduledTrigger)!=null&&p.triggeringSlotId?new h7(Kc,w.slotIdScheduledTrigger.triggeringSlotId,w.id):new x("Not able to create SlotIdScheduledTrigger")}else{if(w.mediaTimeRangeTrigger){var F;u=Number((F=w.mediaTimeRangeTrigger)==null?void 0:F.offsetStartMilliseconds);var E;f=Number((E= w.mediaTimeRangeTrigger)==null?void 0:E.offsetEndMilliseconds);isFinite(u)&&isFinite(f)?(E=f,E===-1&&(E=P),P=u>E?new x("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:u,offsetEndMs:E},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",E===P&&u-500<=E):new NB(u,E),w=P instanceof x?P:new Ow(Kc,M,P,!1,w.id)):w=new x("Not able to create MediaTimeRangeTrigger")}else if(w.contentVideoIdEndedTrigger)w=w.contentVideoIdEndedTrigger?new bP(Kc,M,!1,w.id):new x("Not able to create ContentVideoIdEndedTrigger"); else{if(w.layoutIdEnteredTrigger){var y;M=(y=w.layoutIdEnteredTrigger)!=null&&y.triggeringLayoutId?new AQ(Kc,w.layoutIdEnteredTrigger.triggeringLayoutId,w.id):new x("Not able to create LayoutIdEnteredTrigger")}else if(w.timeRelativeToLayoutEnterTrigger){var q;M=(q=w.timeRelativeToLayoutEnterTrigger)!=null&&q.triggeringLayoutId?new SJ(Kc,Number(w.timeRelativeToLayoutEnterTrigger.durationMs),w.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,w.id):new x("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(w.onDifferentLayoutIdEnteredTrigger){var d; M=(d=w.onDifferentLayoutIdEnteredTrigger)!=null&&d.triggeringLayoutId&&w.onDifferentLayoutIdEnteredTrigger.slotType&&w.onDifferentLayoutIdEnteredTrigger.layoutType?new wu(Kc,w.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,w.onDifferentLayoutIdEnteredTrigger.slotType,w.onDifferentLayoutIdEnteredTrigger.layoutType,w.id):new x("Not able to create CloseRequestedTrigger")}else{if(w.liveStreamBreakStartedTrigger)w=w.liveStreamBreakStartedTrigger&&w.id?new xe(Kc,w.id):new x("Not able to create LiveStreamBreakStartedTrigger"); else if(w.liveStreamBreakEndedTrigger)w=w.liveStreamBreakEndedTrigger&&w.id?new r6(Kc,w.id):new x("Not able to create LiveStreamBreakEndedTrigger");else{if(w.liveStreamBreakScheduledDurationMatchedTrigger){var l;M=(l=w.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&l.breakDurationMs?new Ce(Number(w.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,w.id):new x("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(w.liveStreamBreakScheduledDurationNotMatchedTrigger){var e; M=(e=w.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&e.breakDurationMs?new tQ(Number(w.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,w.id):new x("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(w.newSlotScheduledWithBreakDurationTrigger){var R;M=(R=w.newSlotScheduledWithBreakDurationTrigger)!=null&&R.breakDurationMs?new al(Number(w.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,w.id):new x("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else M= w.prefetchCacheExpiredTrigger?new u_(Kc,w.id):new x("Not able to convert an AdsControlflowTrigger.");w=M}M=w}w=M}M=w}w=M}M=w}w=M}M=w}w=M}M=w}w=M}return w}; X8=function(w,M){M.B>=2&&(w.slot_pos=M.adPodIndex);w.autoplay="1"}; OUl=function(w,M,P,u,X,U,f,h){return M===null?new x("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:M,ActionCompanionAdRenderer:u}):[xHR(w,M,f,U,function(c){var Z=c.slotId;c=h(c);var S=u.adLayoutLoggingData,H=new In([new Gq(u),new QC(X)]);Z=QJ(P.L.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Z);var p={layoutId:Z,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",w$:"core"};return{layoutId:Z,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",SL:new Map, layoutExitNormalTriggers:[new PE(P.B,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:"core",clientMetadata:H,Kg:c(p),adLayoutLoggingData:S}})]}; aby=function(w,M,P,u,X,U,f,h){return M===null?new x("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:M,TopBannerImageTextIconButtonedLayoutViewModel:u}):[xHR(w,M,f,U,function(c){var Z=c.slotId;c=h(c);var S=u.adLayoutLoggingData,H=new In([new yC(u),new QC(X)]);Z=QJ(P.L.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Z);var p={layoutId:Z,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",w$:"core"};return{layoutId:Z,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", SL:new Map,layoutExitNormalTriggers:[new PE(P.B,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:"core",clientMetadata:H,Kg:c(p),adLayoutLoggingData:S}})]}; PV1=function(w,M,P,u,X,U){if(!U)for(M=g.G(M),U=M.next();!U.done;U=M.next())U=U.value,$H(w,U.renderer,U.config.adPlacementConfig.kind);w=Array.from(w.values()).filter(function(S){return wQ4(S)}); M=[];U=g.G(w);for(var f=U.next(),h={};!f.done;h={Zi:void 0},f=U.next()){h.Zi=f.value;f=g.G(h.Zi.oo);for(var c=f.next(),Z={};!c.done;Z={Mr:void 0},c=f.next())Z.Mr=c.value,c=function(S,H){return function(p){return S.Mr.le(p,H.Zi.instreamVideoAdRenderer.elementId,S.Mr.N_)}}(Z,h),Z.Mr.isContentVideoCompanion?M.push(iFu(P,u,X,h.Zi.instreamVideoAdRenderer.elementId,Z.Mr.associatedCompositePlayerBytesLayoutId,Z.Mr.adSlotLoggingData,c)):w.length>1?M.push(MCp(P,u,X,h.Zi.instreamVideoAdRenderer.elementId,Z.Mr.adSlotLoggingData, function(S,H){return function(p){return S.Mr.le(p,H.Zi.instreamVideoAdRenderer.elementId,S.Mr.N_,S.Mr.associatedCompositePlayerBytesLayoutId)}}(Z,h))):M.push(MCp(P,u,X,h.Zi.instreamVideoAdRenderer.elementId,Z.Mr.adSlotLoggingData,c))}return M}; $H=function(w,M,P){if(M=ud5(M)){M=g.G(M);for(var u=M.next();!u.done;u=M.next())if((u=u.value)&&u.externalVideoId){var X=U2(w,u.externalVideoId);X.instreamVideoAdRenderer||(X.instreamVideoAdRenderer=u,X.JH=P)}else X$("InstreamVideoAdRenderer without externalVideoId")}}; ud5=function(w){var M=[],P=w.sandwichedLinearAdRenderer&&w.sandwichedLinearAdRenderer.linearAd&&g.A(w.sandwichedLinearAdRenderer.linearAd,Qz);if(P)return M.push(P),M;if(w.instreamVideoAdRenderer)return M.push(w.instreamVideoAdRenderer),M;if(w.linearAdSequenceRenderer&&w.linearAdSequenceRenderer.linearAds){w=g.G(w.linearAdSequenceRenderer.linearAds);for(P=w.next();!P.done;P=w.next())P=P.value,g.A(P,Qz)&&M.push(g.A(P,Qz));return M}return null}; wQ4=function(w){if(w.instreamVideoAdRenderer===void 0)return X$("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var M=g.G(w.oo),P=M.next();!P.done;P=M.next()){P=P.value;if(P.le===void 0)return!1;if(P.N_===void 0)return X$("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(w.JH===void 0||P.oT===void 0||w.JH!==P.oT&&P.oT!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(w.instreamVideoAdRenderer.elementId===void 0)return X$("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:w.JH,"matching APSR kind":P.oT}),!1}return!0}; U2=function(w,M){w.has(M)||w.set(M,{instreamVideoAdRenderer:void 0,JH:void 0,adVideoId:M,oo:[]});return w.get(M)}; fY=function(w,M,P,u,X,U,f,h,c){X?U2(w,X).oo.push({duW:M,oT:P,isContentVideoCompanion:u,N_:f,associatedCompositePlayerBytesLayoutId:U,adSlotLoggingData:h,le:c}):X$("Companion AdPlacementSupportedRenderer without adVideoId")}; W8=function(w){var M=0;w=g.G(w.questions);for(var P=w.next();!P.done;P=w.next())if(P=P.value,P=g.A(P,ru)||g.A(P,jJ)){var u=void 0;M+=((u=P.surveyAdQuestionCommon)==null?void 0:u.durationMilliseconds)||0}return M}; hX=function(w){var M,P,u,X,U=((P=g.A((M=w.questions)==null?void 0:M[0],ru))==null?void 0:P.surveyAdQuestionCommon)||((X=g.A((u=w.questions)==null?void 0:u[0],jJ))==null?void 0:X.surveyAdQuestionCommon),f;M=[].concat(g.L(((f=w.playbackCommands)==null?void 0:f.instreamAdCompleteCommands)||[]),g.L((U==null?void 0:U.timeoutCommands)||[]));var h,c,Z,S,H,p,F,E,y,q,d,l,e,R,I,w4,t,$M,fz,U1;return{impressionCommands:(h=w.playbackCommands)==null?void 0:h.impressionCommands,errorCommands:(c=w.playbackCommands)== null?void 0:c.errorCommands,muteCommands:(Z=w.playbackCommands)==null?void 0:Z.muteCommands,unmuteCommands:(S=w.playbackCommands)==null?void 0:S.unmuteCommands,pauseCommands:(H=w.playbackCommands)==null?void 0:H.pauseCommands,rewindCommands:(p=w.playbackCommands)==null?void 0:p.rewindCommands,resumeCommands:(F=w.playbackCommands)==null?void 0:F.resumeCommands,skipCommands:(E=w.playbackCommands)==null?void 0:E.skipCommands,progressCommands:(y=w.playbackCommands)==null?void 0:y.progressCommands,aN3:(q= w.playbackCommands)==null?void 0:q.clickthroughCommands,fullscreenCommands:(d=w.playbackCommands)==null?void 0:d.fullscreenCommands,activeViewViewableCommands:(l=w.playbackCommands)==null?void 0:l.activeViewViewableCommands,activeViewMeasurableCommands:(e=w.playbackCommands)==null?void 0:e.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(R=w.playbackCommands)==null?void 0:R.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(I=w.playbackCommands)== null?void 0:(w4=I.activeViewTracking)==null?void 0:w4.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(t=w.playbackCommands)==null?void 0:($M=t.activeViewTracking)==null?void 0:$M.activeViewAudioMeasurableCommands,endFullscreenCommands:(fz=w.playbackCommands)==null?void 0:fz.endFullscreenCommands,abandonCommands:(U1=w.playbackCommands)==null?void 0:U1.abandonCommands,completeCommands:M}}; $RH=function(w,M,P,u,X,U,f){return function(h,c){return XQ2(w,c.slotId,h,U,function(Z,S){var H=c.layoutId;Z=f(Z);return c8(M,H,S,X,Z,"LAYOUT_TYPE_SURVEY",[new Os(P),u],P.adLayoutLoggingData)})}}; WV4=function(w,M,P,u,X,U,f){if(!UR5(w))return new x("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:w});var h=w.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[fEy(U,M,P,u,function(c){var Z=c.slotId;c=f(c);Z=QJ(X.L.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Z);var S={layoutId:Z,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",w$:"core"},H=new JQ(X.B,u);return{layoutId:Z,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",SL:new Map,layoutExitNormalTriggers:[H], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:"core",clientMetadata:new In([new aa(h)]),Kg:c(S)}})]}; UR5=function(w){w=g.A(w==null?void 0:w.additionalPlayerOverlay,hs1);if(!w)return!1;var M=w.slidingMessages;return w.title&&M&&M.length!==0?!0:!1}; ZFz=function(w,M,P,u,X){var U;if((U=w.playerOverlay)==null||!U.instreamSurveyAdRenderer)return function(){return[]}; if(!RlH(w))return function(){return new x("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:w})}; var f=w.playerOverlay.instreamSurveyAdRenderer,h=W8(f);return h<=0?function(){return new x("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:f})}:function(c,Z){var S=ct5(c,P,u,function(H){var p=H.slotId; H=Z(H);var F=hX(f);p=QJ(X.L.get(),"LAYOUT_TYPE_SURVEY",p);var E={layoutId:p,layoutType:"LAYOUT_TYPE_SURVEY",w$:"core"},y=new JQ(X.B,u),q=new XJ(X.B,p),d=new Zn(X.B,p),l=new HUH(X.B);return{layoutId:p,layoutType:"LAYOUT_TYPE_SURVEY",SL:new Map,layoutExitNormalTriggers:[y,l],layoutExitSkipTriggers:[q],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[d],eZ:[],w$:"core",clientMetadata:new In([new xW(f),new QC(M),new Dg(h/1E3),new Tr(F)]),Kg:H(E),adLayoutLoggingData:f.adLayoutLoggingData}}); c=WV4(w,P,S.slotId,u,X,c,Z);return c instanceof x?c:[S].concat(g.L(c))}}; VCM=function(w,M,P,u,X,U,f){f=f===void 0?!1:f;var h=[];try{var c=[];if(P.renderer.linearAdSequenceRenderer)var Z=function(y){y=S$l(y.slotId,P,M,X(y),u,U,f);c=y.M7u;return y.O1}; else if(P.renderer.instreamVideoAdRenderer)Z=function(y){var q=y.slotId;y=X(y);var d=f,l=P.config.adPlacementConfig,e=HF5(l),R=e.Ox,I=e.wL;e=P.renderer.instreamVideoAdRenderer;var w4;if(e==null?0:(w4=e.playerOverlay)==null?0:w4.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var t=Zz(e,d);w4=Math.min(R+t.videoLengthSeconds*1E3,I);d=new ne(0,[t.videoLengthSeconds]);I=t.videoLengthSeconds;var $M=t.playerVars,fz=t.instreamAdPlayerOverlayRenderer,U1=t.playerOverlayLayoutRenderer, ZU=t.adVideoId,M_=pQx(P),Tp=t.SL;t=t.IA;var kM=e==null?void 0:e.adLayoutLoggingData;e=e==null?void 0:e.sodarExtensionData;q=QJ(M.L.get(),"LAYOUT_TYPE_MEDIA",q);var w3={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",w$:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",SL:Tp,layoutExitNormalTriggers:[new r6(M.B)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:"core",clientMetadata:new In([new bE(u),new Wk(I),new hf($M),new Sn(R),new Hk(w4),fz&& new Ia(fz),U1&&new AF(U1),new QC(l),new Kn(ZU),new kW(d),new VH(M_),e&&new Zg(e),new X2({current:null}),new F2({}),new Lc(t)].filter(FVu)),Kg:y(w3),adLayoutLoggingData:kM}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var S=EDx(w,u,P.adSlotLoggingData,Z);h.push(S);for(var H=g.G(c),p=H.next();!p.done;p=H.next()){var F=p.value,E=F(w,X);if(E instanceof x)return E;h.push.apply(h,g.L(E))}}catch(y){return new x(y,{errorMessage:y.message,AdPlacementRenderer:P,numberOfSurveyRenderers:NtR(P)})}return h}; NtR=function(w){w=(w.renderer.linearAdSequenceRenderer||{}).linearAds;return w!=null&&w.length?w.filter(function(M){var P,u;return((P=g.A(M,Qz))==null?void 0:(u=P.playerOverlay)==null?void 0:u.instreamSurveyAdRenderer)!=null}).length:0}; S$l=function(w,M,P,u,X,U,f){var h=M.config.adPlacementConfig,c=HF5(h),Z=c.Ox,S=c.wL;c=(M.renderer.linearAdSequenceRenderer||{}).linearAds;if(c==null||!c.length)throw new TypeError("Expected linear ads");var H=[],p={Db:Z,nX:0,RVN:H};c=c.map(function(E){return mR4(w,E,p,P,u,h,X,S,f)}).map(function(E,y){y=new ne(y,H); return E(y)}); var F=c.map(function(E){return E.Qw}); return{O1:oDp(P,w,Z,F,h,pQx(M),u,S,U),M7u:c.map(function(E){return E.CF3})}}; mR4=function(w,M,P,u,X,U,f,h,c){var Z=Zz(g.A(M,Qz),c),S=P.Db,H=P.nX,p=Math.min(S+Z.videoLengthSeconds*1E3,h);P.Db=p;P.nX++;P.RVN.push(Z.videoLengthSeconds);var F,E,y=(F=g.A(M,Qz))==null?void 0:(E=F.playerOverlay)==null?void 0:E.instreamSurveyAdRenderer;if(Z.adVideoId==="nPpU29QrbiU"&&y==null)throw new TypeError("Survey slate media has no survey overlay");return function(q){X8(Z.playerVars,q);var d,l,e=Z.videoLengthSeconds,R=Z.playerVars,I=Z.SL,w4=Z.IA,t=Z.instreamAdPlayerOverlayRenderer,$M=Z.playerOverlayLayoutRenderer, fz=Z.adVideoId,U1=(d=g.A(M,Qz))==null?void 0:d.adLayoutLoggingData;d=(l=g.A(M,Qz))==null?void 0:l.sodarExtensionData;l=QJ(u.L.get(),"LAYOUT_TYPE_MEDIA",w);var ZU={layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA",w$:"adapter"};q={layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA",SL:I,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:"adapter",clientMetadata:new In([new bE(f),new Wk(e),new hf(R),new Sn(S),new Hk(p),new pc(H),new X2({current:null}), t&&new Ia(t),$M&&new AF($M),new QC(U),new Kn(fz),new kW(q),d&&new Zg(d),y&&new la(y),new F2({}),new Lc(w4)].filter(FVu)),Kg:X(ZU),adLayoutLoggingData:U1};e=ZFz(g.A(M,Qz),U,f,q.layoutId,u);return{Qw:q,CF3:e}}}; Zz=function(w,M){if(!w)throw new TypeError("Expected instream video ad renderer");if(!w.playerVars)throw new TypeError("Expected player vars in url encoded string");var P=OK(w.playerVars),u=Number(P.length_seconds);if(isNaN(u))throw new TypeError("Expected valid length seconds in player vars");var X=Number(w.trimmedMaxNonSkippableAdDurationMs);u=isNaN(X)?u:Math.min(u,X/1E3);X=w.playerOverlay||{};X=X.instreamAdPlayerOverlayRenderer===void 0?null:X.instreamAdPlayerOverlayRenderer;var U=w.playerOverlay|| {};U=U.playerOverlayLayoutRenderer===void 0?null:U.playerOverlayLayoutRenderer;var f=P.video_id;f||(f=(f=w.externalVideoId)?f:void 0);if(!f)throw new TypeError("Expected valid video id in IVAR");if(M&&u===0){var h;M=(h=Gzl[f])!=null?h:u}else M=u;return{playerVars:P,videoLengthSeconds:M,instreamAdPlayerOverlayRenderer:X,playerOverlayLayoutRenderer:U,adVideoId:f,SL:w.pings?hJ(w.pings):new Map,IA:WZ(w.pings)}}; pQx=function(w){w=Number(w.driftRecoveryMs);return isNaN(w)||w<=0?null:w}; HF5=function(w){var M=w.adTimeOffset||{};w=M.offsetEndMilliseconds;M=Number(M.offsetStartMilliseconds);if(isNaN(M))throw new TypeError("Expected valid start offset");w=Number(w);if(isNaN(w))throw new TypeError("Expected valid end offset");return{Ox:M,wL:w}}; ytl=function(w){var M,P=(M=Af(w.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:M.current;if(!P)return null;M=Af(w.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var u=w.layoutId,X=Af(w.clientMetadata,"metadata_type_content_cpn"),U=Af(w.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),f=Af(w.clientMetadata,"metadata_type_player_underlay_renderer"),h=Af(w.clientMetadata,"metadata_type_ad_placement_config"),c=Af(w.clientMetadata,"metadata_type_video_length_seconds"); var Z=vk(w.clientMetadata,"metadata_type_layout_enter_ms")&&vk(w.clientMetadata,"metadata_type_layout_exit_ms")?(Af(w.clientMetadata,"metadata_type_layout_exit_ms")-Af(w.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Jl:u,contentCpn:X,Hi:P,zZ:M,instreamAdPlayerOverlayRenderer:U,instreamAdPlayerUnderlayRenderer:f,adPlacementConfig:h,videoLengthSeconds:c,dc:Z,inPlayerLayoutId:Af(w.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Af(w.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Y$F=function(w,M,P,u,X,U,f,h,c,Z,S,H,p,F,E){u=ww(u,"SLOT_TYPE_PLAYER_BYTES");w=DR5(X,w,f,P,u,c,Z);if(w instanceof x)return w;var y;Z=(y=Af(w.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:y.layoutId;if(!Z)return new x("Invalid adNotify layout");M=q$M(Z,X,U,P,h,M,c,S,H,p,F,E,f);return M instanceof x?M:[w].concat(g.L(M))}; q$M=function(w,M,P,u,X,U,f,h,c,Z,S,H,p){P=zsU(M,P,u,U,f,h,c,Z,S,H,p);if(P instanceof x)return P;w=TtH(M,w,f,X,P);return w instanceof x?w:[].concat(g.L(w.hp),[w.gH])}; lEp=function(w,M,P,u,X,U,f,h,c,Z,S,H,p,F){M=zsU(w,M,P,X,U,h,c,Z,S,H,p,F);if(M instanceof x)return M;w=dRx(w,P,U,f,u,h.dK,M);return w instanceof x?w:w.hp.concat(w.gH)}; zsU=function(w,M,P,u,X,U,f,h,c,Z,S,H){var p=SL(u,P,Z);return p instanceof ba?new x(p):Z.U.N().experiments.nu("html5_refactor_in_player_slot_generation")?function(F){var E=new ne(0,[p.eT]);F=LVl(M,p.layoutId,p.X$,P,H8(p.playerVars,p.Ms,U,c,E),p.eT,X,E,f(F),h.get(p.X$.externalVideoId),H);E=[];if(p.X$.playerOverlay.instreamAdPlayerOverlayRenderer){var y=ytl(F);if(!y)return X$("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,F),{layout:F,hp:[]}; E=[esx(w,y.contentCpn,y.Jl,function(d){return pY(M,d.slotId,"core",y,tf(S,d))},y.inPlayerSlotId)].concat(g.L(E)); if(y.instreamAdPlayerUnderlayRenderer&&F8(Z)){var q=y.instreamAdPlayerUnderlayRenderer;E=[Bt_(w,y.contentCpn,y.Jl,function(d){return QzU(M,d.slotId,q,y.adPlacementConfig,y.Jl,tf(S,d))})].concat(g.L(E))}}return{layout:F, hp:E}}:function(F){var E=new ne(0,[p.eT]); return{layout:LVl(M,p.layoutId,p.X$,P,H8(p.playerVars,p.Ms,U,c,E),p.eT,X,E,f(F),h.get(p.X$.externalVideoId),H),hp:[]}}}; SL=function(w,M,P){if(!w.playerVars)return new ba("No playerVars available in InstreamVideoAdRenderer.");var u,X;if(w.elementId==null||w.playerVars==null||w.playerOverlay==null||((u=w.playerOverlay)==null?void 0:u.instreamAdPlayerOverlayRenderer)==null&&((X=w.playerOverlay)==null?void 0:X.playerOverlayLayoutRenderer)==null||w.pings==null||w.externalVideoId==null)return new ba("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:w});u=OK(w.playerVars);X=Number(u.length_seconds); isNaN(X)&&(X=0,X$("Expected valid length seconds in player vars but got NaN"));if(P.UE(M.kind==="AD_PLACEMENT_KIND_START")){if(w.layoutId===void 0)return new ba("Expected server generated layout ID in instreamVideoAdRenderer");M=w.layoutId}else M=w.elementId;return{layoutId:M,X$:w,playerVars:u,Ms:w.playerVars,eT:X}}; H8=function(w,M,P,u,X){w.iv_load_policy=u;M=OK(M);if(M.cta_conversion_urls)try{w.cta_conversion_urls=JSON.parse(M.cta_conversion_urls)}catch(U){X$(U)}P.f6&&(w.ctrl=P.f6);P.wk&&(w.ytr=P.wk);P.Yl&&(w.ytrcc=P.Yl);P.isMdxPlayback&&(w.mdx="1");w.vvt&&(w.vss_credentials_token=w.vvt,P.Z8&&(w.vss_credentials_token_type=P.Z8),P.mdxEnvironment&&(w.mdx_environment=P.mdxEnvironment));X8(w,X);return w}; kzH=function(w){var M=new Map;w=g.G(w);for(var P=w.next();!P.done;P=w.next())(P=P.value.renderer.remoteSlotsRenderer)&&P.hostElementId&&M.set(P.hostElementId,P);return M}; E2=function(w){return w.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; Rs2=function(w){return w!=null}; AtR=function(w,M,P,u,X,U,f,h,c,Z,S,H,p,F){for(var E=[],y=g.G(w),q=y.next();!q.done;q=y.next())if(q=q.value,!TgH(q)&&!Bg4(q)){var d=E2(q)&&!!q.slotEntryTrigger.beforeContentVideoIdStartedTrigger,l=c.UE(d),e=nDx(q,Z,u,P.oQ,l);if(e instanceof x)return e;var R=void 0,I={slotId:q.adSlotMetadata.slotId,slotType:q.adSlotMetadata.slotType,slotPhysicalPosition:(R=q.adSlotMetadata.slotPhysicalPosition)!=null?R:1,w$:"core",slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers, slotExpirationTriggers:e.slotExpirationTriggers},w4=g.A(q.fulfillmentContent.fulfilledLayout,sG);if(w4){if(!vE(w4))return new x("Invalid PlayerBytesAdLayoutRenderer");R=H&&!(E2(q)&&q.slotEntryTrigger.beforeContentVideoIdStartedTrigger);e=e.slotFulfillmentTriggers.some(function(t){return t instanceof Ce}); l=R?vDU(I,q.adSlotMetadata.triggerEvent,w4,P,u,U,Z,w,l,p,e,F):szy(I,q.adSlotMetadata.triggerEvent,w4,M,P,u,X,U,f,h,c,Z,w,S,l,q.adSlotMetadata.triggeringSourceLayoutId);if(l instanceof x)return l;e=[];E2(q)&&e.push(new Rn({SX:E2(q)&&!!q.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));R&&e.push(new F2({}));P.dK&&e.push(new dA({}));e.push(new QH(d));q=Object.assign({},I,{clientMetadata:new In(e),fulfilledLayout:l.layout,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});E.push.apply(E,g.L(l.hp)); E.push(q)}else if(d=g.A(q.fulfillmentContent.fulfilledLayout,gu)){if(!zl4(d))return new x("Invalid PlayerUnderlayAdLayoutRenderer");d=KVx(d,u,P.oQ,U,I,q.adSlotMetadata.triggerEvent,q.adSlotMetadata.triggeringSourceLayoutId);if(d instanceof x)return d;q=Object.assign({},I,{clientMetadata:new In([]),fulfilledLayout:d,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});E.push(q)}else if(d=g.A(q.fulfillmentContent.fulfilledLayout,lby)){if(!Ng1(d))return new x("Invalid AboveFeedAdLayoutRenderer");d= bFx(d,u,P.oQ,U,I,q.adSlotMetadata.triggerEvent,q.adSlotMetadata.triggeringSourceLayoutId);if(d instanceof x)return d;q=Object.assign({},I,{clientMetadata:new In([]),fulfilledLayout:d,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});E.push(q)}else if(d=g.A(q.fulfillmentContent.fulfilledLayout,LX4)){if(!p8(d.adLayoutMetadata)||!g.A(d.renderingContent,FJ))return new x("Invalid BelowPlayerAdLayoutRenderer");d=bFx(d,u,P.oQ,U,I,q.adSlotMetadata.triggerEvent,q.adSlotMetadata.triggeringSourceLayoutId); if(d instanceof x)return d;q=Object.assign({},I,{clientMetadata:new In([]),fulfilledLayout:d,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});E.push(q)}else if(d=g.A(q.fulfillmentContent.fulfilledLayout,J7)){if(!b_(d))return new x("Invalid PlayerBytesSequenceItemAdLayoutRenderer");d=IER(d,u,P.oQ,U,I,q.adSlotMetadata.triggerEvent);if(d instanceof x)return d;q=Object.assign({},I,{clientMetadata:new In([]),fulfilledLayout:d,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});E.push(q)}else return new x("Unable to retrieve a client slot ["+ I.slotType+"] from a given AdSlotRenderer")}return E}; IER=function(w,M,P,u,X,U){var f={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,w$:"core"};M=N$(w,M,P);return M instanceof x?M:(P=g.A(w.renderingContent,K8))&&P.pings?Object.assign({},f,{renderingContent:w.renderingContent,SL:hJ(P.pings)},M,{Kg:tf(u,X)(f),clientMetadata:new In([new QC(VY(U))]),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData}):new x("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; bFx=function(w,M,P,u,X,U,f){var h={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,w$:"core"};M=N$(w,M,P);if(M instanceof x)return M;P=[];P.push(new QC(VY(U)));U==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&f!==void 0&&P.push(new wA(f));return Object.assign({},h,{renderingContent:w.renderingContent,SL:new Map([["impression",gD2(w)]])},M,{Kg:tf(u,X)(h),clientMetadata:new In(P),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData})}; KVx=function(w,M,P,u,X,U,f){if(w.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(f=g.A(w.renderingContent,I8))if(f=g.A(f.sidePanel,q7p)){var h={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,w$:"core"};M=N$(w,M,P);w=M instanceof x?M:Object.assign({},h,{renderingContent:w.renderingContent,SL:new Map([["impression",f.impressionPings||[]],["resume",f.resumePings||[]]])},M,{Kg:tf(u,X)(h),clientMetadata:new In([new QC(VY(U))]),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData})}else w= new x("DismissablePanelTextPortraitImageRenderer is missing");else w=new x("SqueezebackPlayerSidePanelRenderer is missing");else w.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.A(w.renderingContent,Gvu)?(f={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,w$:"core"},M=N$(w,M,P),w=M instanceof x?M:Object.assign({},f,{renderingContent:w.renderingContent,SL:new Map},M,{Kg:tf(u,X)(f),clientMetadata:new In([new QC(VY(U))]),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData})): w=new x("CounterfactualRenderer is missing"):w.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?w=new x("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):w.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?w=new x("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):w.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.A(w.renderingContent,A7)?(U={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType, w$:"core"},M=N$(w,M,P),w=M instanceof x?M:f?Object.assign({},U,{renderingContent:w.renderingContent,SL:new Map},M,{Kg:tf(u,X)(U),clientMetadata:new In([new wA(f)]),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData}):new x("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):w=new x("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):w.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.A(w.renderingContent,ycM)? (U={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,w$:"core"},M=N$(w,M,P),w=M instanceof x?M:Object.assign({},U,{renderingContent:w.renderingContent,SL:new Map([])},M,{Kg:tf(u,X)(U),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new In([])})):w=new x("AdsEngagementPanelSectionListViewModel is missing"):w=new x("LayoutType ["+w.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return w}; vDU=function(w,M,P,u,X,U,f,h,c,Z,S,H){if((H==null?void 0:H.G2)===void 0||(H==null?void 0:H.eB)===void 0)return new x("Cached ad break range from cue point is missing");var p=N$(P,X,u.oQ);if(p instanceof x)return p;p={layoutExitMuteTriggers:[],layoutExitNormalTriggers:p.layoutExitNormalTriggers,layoutExitSkipTriggers:[],eZ:[],layoutExitUserInputSubmittedTriggers:[]};if(g.A(P.renderingContent,Qz))return w=Jtx(w,M,P,p,X,U,h,c,u.oQ,f,H.G2,H.eB),w instanceof x?w:w.ji===void 0?new x("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:w.layout,hp:[w.ji]};var F=g.A(P.renderingContent,eJ);if(F){if(!p8(P.adLayoutMetadata))return new x("Invalid ad layout metadata");if(!BE(F))return new x("Invalid sequential layout");F=F.sequentialLayouts.map(function(E){return E.playerBytesAdLayoutRenderer}); w=rtu(w,M,P,p,F,X,u,U,f,c,h,Z,H.G2,H.eB,S);return w instanceof x?w:{layout:w.OJ,hp:w.hp}}return new x("Not able to convert a sequential layout")}; rtu=function(w,M,P,u,X,U,f,h,c,Z,S,H,p,F,E){var y=jz5(X,p,F);if(y instanceof x)return y;var q=[],d=[];y=g.G(y);for(var l=y.next();!l.done;l=y.next()){var e=l.value;l=w;var R=X[e.nX],I=e,w4=M;e=U;var t=f,$M=h,fz=c,U1=Z,ZU=S,M_=mE(R);if(M_ instanceof x)l=M_;else{var Tp={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,w$:"adapter"};I=CV5(w4,R,I,e);I instanceof x?l=I:(l=Object.assign({},Tp,oQ,{SL:M_,renderingContent:R.renderingContent,clientMetadata:new In(I),Kg:tf($M,l)(Tp), adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData}),l=(R=G2(ZU,l,e,t.oQ,$M,fz,U1,void 0,!0))?R instanceof x?R:{layout:l,ji:R}:new x("Expecting associatedInPlayerSlot"))}if(l instanceof x)return l;q.push(l.layout);d.push(l.ji)}X={layoutId:P.adLayoutMetadata.layoutId,layoutType:P.adLayoutMetadata.layoutType,w$:"core"};M=[new VH(Number(P.driftRecoveryMs)),new Sn(p),new Hk(F),new QC(VY(M)),new Bk(H),new F2({})];E&&M.push(new nc({}));return{OJ:Object.assign({},X,u,{i4:q,SL:new Map,clientMetadata:new In(M), Kg:tf(h,w)(X)}),hp:d}}; Jtx=function(w,M,P,u,X,U,f,h,c,Z,S,H){if(!vE(P))return new x("Invalid PlayerBytesAdLayoutRenderer");var p=mE(P);if(p instanceof x)return p;var F={layoutId:P.adLayoutMetadata.layoutId,layoutType:P.adLayoutMetadata.layoutType,w$:"core"},E=g.A(P.renderingContent,Qz);if(!E)return new x("Invalid rendering content for DAI media layout");E=Zz(E,!1);S={hC:E,nX:0,Db:S,jC:Math.min(S+E.videoLengthSeconds*1E3,H),xT:new ne(0,[E.videoLengthSeconds])};var y;H=(y=Number(P.driftRecoveryMs))!=null?y:void 0;M=CV5(M, P,S,X,H);if(M instanceof x)return M;w=Object.assign({},F,u,{SL:p,renderingContent:P.renderingContent,clientMetadata:new In(M),Kg:tf(U,w)(F),adLayoutLoggingData:P.adLayoutMetadata.adLayoutLoggingData});return(X=G2(f,w,X,c,U,Z,h,void 0,!0))?X instanceof x?X:{layout:w,ji:X}:new x("Expecting associatedInPlayerSlot")}; szy=function(w,M,P,u,X,U,f,h,c,Z,S,H,p,F,E,y){var q=N$(P,U,X.oQ);if(q instanceof x)return q;if(g.A(P.renderingContent,Qz)){c=tCl([P],X,c);if(c instanceof x)return c;if(c.length!==1)return new x("Only expected one media layout.");w=xRy(w,M,P,q,c[0],void 0,"core",u,U,f,h,Z,p,F,E,X.oQ,H,void 0,y);return w instanceof x?w:{layout:w.layout,hp:w.ji?[w.ji]:[]}}var d=g.A(P.renderingContent,eJ);if(d){if(!p8(P.adLayoutMetadata))return new x("Invalid ad layout metadata");if(!BE(d))return new x("Invalid sequential layout"); d=d.sequentialLayouts.map(function(l){return l.playerBytesAdLayoutRenderer}); w=OFF(w,M,P.adLayoutMetadata,q,d,u,U,X,c,f,h,Z,S,H,E,p,F,y);return w instanceof x?w:{layout:w.OJ,hp:w.hp}}return new x("Not able to convert a sequential layout")}; OFF=function(w,M,P,u,X,U,f,h,c,Z,S,H,p,F,E,y,q,d){var l=new vv({current:null}),e=tCl(X,h,c);if(e instanceof x)return e;c=[];for(var R=[],I=void 0,w4=0;w40&&(w4.push(d),w4.push(new nn(I.adPodSkipTarget)));(U=Z.get(I.externalVideoId))&&w4.push(new yH(U));U=w4}else U= new x("Invalid vod media renderer")}if(U instanceof x)return U;w=Object.assign({},f,u,{SL:e,renderingContent:P.renderingContent,clientMetadata:new In(U),Kg:tf(S,w)(f),adLayoutLoggingData:P.adLayoutMetadata.adLayoutLoggingData});P=g.A(P.renderingContent,Qz);if(!P||!L8(P))return new x("Invalid meida renderer");H=U2(H,P.externalVideoId);H.instreamVideoAdRenderer=P;H.JH="AD_PLACEMENT_KIND_START";return F?(c=G2(p,w,c,y,S,q,E,d,!1),c instanceof x?c:in1(w.layoutId,p)&&c?{layout:Object.assign({},w,{clientMetadata:new In(U.concat(new rk(c)))})}: {layout:w,ji:c}):{layout:w}}; aE1=function(w,M,P,u,X){if(!vE(M))return new x("Invalid PlayerBytesAdLayoutRenderer");var U=g.A(M.renderingContent,rw);if(!U||U.durationMilliseconds===void 0)return new x("Invalid endcap renderer");var f={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,w$:"adapter"};u=[new qf(U.durationMilliseconds),new Tr({impressionCommands:void 0,abandonCommands:U.abandonCommands?[{commandExecutorCommand:U.abandonCommands}]:void 0,completeCommands:U.completionCommands}),new QC(u), new Mf("LAYOUT_TYPE_ENDCAP")];if(X){u.push(new Ra(X.xT.adPodIndex-1));u.push(new pc(X.xT.adPodIndex));var h;u.push(new nn((h=X.adPodSkipTarget)!=null?h:-1))}return Object.assign({},f,oQ,{renderingContent:M.renderingContent,clientMetadata:new In(u),SL:U.skipPings?new Map([["skip",U.skipPings]]):new Map,Kg:tf(P,w)(f),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData})}; G2=function(w,M,P,u,X,U,f,h,c){w=w.filter(function(H){return H.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&H.adSlotMetadata.triggeringSourceLayoutId===M.layoutId}); if(w.length!==0){if(w.length!==1)return new x("Invalid InPlayer slot association for the given PlayerBytes layout");w=w[0];f=nDx(w,U,P,u,f);if(f instanceof x)return f;var Z;U={slotId:w.adSlotMetadata.slotId,slotType:w.adSlotMetadata.slotType,slotPhysicalPosition:(Z=w.adSlotMetadata.slotPhysicalPosition)!=null?Z:1,w$:"core",slotEntryTrigger:f.slotEntryTrigger,slotFulfillmentTriggers:f.slotFulfillmentTriggers,slotExpirationTriggers:f.slotExpirationTriggers};Z=g.A(w.fulfillmentContent.fulfilledLayout, dHx);if(!Z||!oLF(Z))return new x("Invalid InPlayerAdLayoutRenderer");f={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,w$:"core"};P=N$(Z,P,u);if(P instanceof x)return P;u=[];var S=Z.adLayoutMetadata.layoutType;c&&u.push(new F2({}));if(S==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")u.push.apply(u,g.L(Mdx(w.adSlotMetadata.triggerEvent,M)));else if(S==="LAYOUT_TYPE_ENDCAP"||S==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){u.push(new QC(VY(w.adSlotMetadata.triggerEvent))); if(S==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new x("Cannot parse endcap layout since AdUxReadyApi is not provided");h&&u.push(h)}else return new x("Not able to parse an SDF InPlayer layout");X=Object.assign({},f,P,{renderingContent:Z.renderingContent,SL:new Map,Kg:tf(X,U)(f),clientMetadata:new In(u),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},U,{fulfilledLayout:X,clientMetadata:new In([])})}}; Mdx=function(w,M){var P=[];P.push(new QC(VY(w)));P.push(new wA(M.layoutId));(w=Af(M.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&P.push(new X2(w));(w=Af(M.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&P.push(new vv(w));(w=Af(M.clientMetadata,"metadata_type_remote_slots_data"))&&P.push(new yH(w));(w=Af(M.clientMetadata,"metadata_type_ad_next_params"))&&P.push(new YW(w));(w=Af(M.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&P.push(new zq(w));(w= Af(M.clientMetadata,"metadata_type_ad_pod_info"))&&P.push(new kW(w));(M=Af(M.clientMetadata,"metadata_type_ad_video_id"))&&P.push(new Kn(M));return P}; wvl=function(w,M,P,u,X,U){function f(Z){return yY(M,Z)} var h=u.ly.inPlayerSlotId,c={layoutId:u.ly.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",w$:"core"};P={slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w$:"core",slotEntryTrigger:new AQ(f,w),slotFulfillmentTriggers:[new $7(f,h)],slotExpirationTriggers:[new UG(f,h),new PE(f,P)]};w=Object.assign({},c,{layoutExitNormalTriggers:[new JQ(f,w)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],SL:new Map,clientMetadata:new In([new Cn(u.ly), new QC(u.adPlacementConfig),X]),Kg:tf(U,P)(c),adLayoutLoggingData:u.ly.adLayoutLoggingData});return Object.assign({},P,{clientMetadata:new In([new m7(w)])})}; in1=function(w,M){M=g.G(M);for(var P=M.next();!P.done;P=M.next())if(P=P.value,P.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var u=g.A(P.fulfillmentContent.fulfilledLayout,gu);if(u&&(u=g.A(u.renderingContent,I8))&&u.associatedPlayerBytesLayoutId===w)return P}}; nDx=function(w,M,P,u,X){var U=PEz(us(w.slotEntryTrigger,P,u),X,w,M);if(U instanceof x)return U;for(var f=[],h=g.G(w.slotFulfillmentTriggers),c=h.next();!c.done;c=h.next()){c=us(c.value,P,u);if(c instanceof x)return c;f.push(c)}f=uIl(f,X,w,M);M=[];w=g.G(w.slotExpirationTriggers);for(X=w.next();!X.done;X=w.next()){X=us(X.value,P,u);if(X instanceof x)return X;M.push(X)}return{slotEntryTrigger:U,slotFulfillmentTriggers:f,slotExpirationTriggers:M}}; PEz=function(w,M,P,u){return M&&P.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&w instanceof vo?new Rl(function(X){return yY(u,X)},P.adSlotMetadata.slotId):w}; uIl=function(w,M,P,u){return M&&P.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?w.map(function(X){return X instanceof $7?new h7(function(U){return yY(u,U)},P.adSlotMetadata.slotId):X}):w}; N$=function(w,M,P){for(var u=[],X=g.G(w.layoutExitNormalTriggers||[]),U=X.next();!U.done;U=X.next()){U=us(U.value,M,P);if(U instanceof x)return U;u.push(U)}X=[];U=g.G(w.layoutExitSkipTriggers||[]);for(var f=U.next();!f.done;f=U.next()){f=us(f.value,M,P);if(f instanceof x)return f;X.push(f)}U=[];f=g.G(w.layoutExitMuteTriggers||[]);for(var h=f.next();!h.done;h=f.next()){h=us(h.value,M,P);if(h instanceof x)return h;U.push(h)}f=[];w=g.G(w.layoutExitUserInputSubmittedTriggers||[]);for(h=w.next();!h.done;h= w.next()){h=us(h.value,M,P);if(h instanceof x)return h;f.push(h)}return{layoutExitNormalTriggers:u,layoutExitSkipTriggers:X,layoutExitMuteTriggers:U,layoutExitUserInputSubmittedTriggers:f,eZ:[]}}; mE=function(w){var M=g.A(w.renderingContent,Qz);if(M==null?0:M.pings)return hJ(M.pings);w=g.A(w.renderingContent,rw);return(w==null?0:w.skipPings)?new Map([["skip",w.skipPings]]):new Map}; CV5=function(w,M,P,u,X){M=g.A(M.renderingContent,Qz);if(!M)return new x("Invalid rendering content for DAI media layout");w=[new bE(u),new Wk(P.hC.videoLengthSeconds),new hf(P.hC.playerVars),new Sn(P.Db),new Hk(P.jC),new pc(P.nX),new QC(VY(w)),new Kn(P.hC.adVideoId),new kW(P.xT),M.sodarExtensionData&&new Zg(M.sodarExtensionData),new X2({current:null}),new F2({}),new Lc(WZ(M.pings))].filter(Rs2);X!==void 0&&w.push(new VH(X));return w}; jz5=function(w,M,P){w=w.map(function(c){return Zz(g.A(c.renderingContent,Qz),!1)}); var u=w.map(function(c){return c.videoLengthSeconds}),X=u.map(function(c,Z){return new ne(Z,u)}),U=M,f=P,h=[]; w.forEach(function(c,Z){f=Math.min(U+c.videoLengthSeconds*1E3,P);X8(c.playerVars,X[Z]);h.push({hC:c,Db:U,jC:f,nX:Z,xT:X[Z]});U=f}); return h}; tCl=function(w,M,P){for(var u=[],X=g.G(w),U=X.next();!U.done;U=X.next())if(U=g.A(U.value.renderingContent,Qz)){if(!L8(U))return new x("Invalid vod media renderer");u.push(XvR(U))}X=u.map(function(H){return H.eT}); U=[];for(var f=0,h=0;h0?U1:-1;else if(Tp= g.A(M_,rw)){M_=FrR(w,M,P,Tp,U,y,h,t,U1);if(M_ instanceof x){F=M_;break a}M_=M_(p);q.push(M_.KV);d=[].concat(g.L(M_.Ej),g.L(d));l=[].concat(g.L(M_.fN),g.L(l));M_.ji&&(fz=[M_.ji].concat(g.L(fz)))}else if(Tp=g.A(M_,R8)){if(F===void 0){F=new x("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Tp});break a}M_=Vdz(w,M,P,U,Tp,w4,h,F,y,BJ(S,"supports_multi_step_on_desktop"));if(M_ instanceof x){F=M_;break a}M_=M_(p);q.push(M_.KV);M_.ji&&fz.push(M_.ji); d=[].concat(g.L(M_.Ej),g.L(d));l=[].concat(g.L(M_.fN),g.L(l));e=[].concat(g.L(M_.rJ),g.L(e));R=[].concat(g.L(M_.Rq),g.L(R));I=[w4].concat(g.L(I))}else if(M_=g.A(M_,n8)){M_=mC_(w,M,P,U,M_,w4,h,y);if(M_ instanceof x){F=M_;break a}M_=M_(p);q.push(M_.KV);M_.ji&&fz.push(M_.ji);l=[].concat(g.L(M_.fN),g.L(l))}else{F=new x("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}F={i4:q,layoutExitSkipTriggers:d,layoutExitUserInputSubmittedTriggers:e,eZ:R,layoutExitMuteTriggers:l,EV:I,hp:fz}}}else a:if(y= Tk1(u,P,S),y instanceof x)F=y;else{q=0;d=[];l=[];e=[];R=[];I=[];w4=[];t=new $y({current:null});$M=new vv({current:null});fz=!1;ZU=[];U1=-1;E=g.G(u);for(M_=E.next();!M_.done;M_=E.next())if(M_=M_.value,g.A(M_,k7)){M_=EW5(M,P,g.A(M_,k7),h);if(M_ instanceof x){F=M_;break a}M_=M_(p);d.push(M_.KV);l=[].concat(g.L(M_.Ej),g.L(l));e=[].concat(g.L(M_.fN),g.L(e));M_.ji&&(ZU=[M_.ji].concat(g.L(ZU)))}else if(g.A(M_,Qz)){U1=SL(g.A(M_,Qz),P,S);if(U1 instanceof ba){F=new x(U1);break a}M_=new ne(q,y);M_=dCF(M,U1.layoutId, U1.X$,P,H8(U1.playerVars,U1.Ms,f,Z,M_),U1.eT,U,M_,h(p),$M,c.get(U1.X$.externalVideoId),void 0,H);q++;d.push(M_.KV);l=[].concat(g.L(M_.Ej),g.L(l));e=[].concat(g.L(M_.fN),g.L(e));fz||(w4.push($M),fz=!0);U1=(U1=U1.X$.adPodSkipTarget)&&U1>0?U1:-1}else if(g.A(M_,rw)){M_=FrR(w,M,P,g.A(M_,rw),U,q,h,$M,U1);if(M_ instanceof x){F=M_;break a}M_=M_(p);d.push(M_.KV);l=[].concat(g.L(M_.Ej),g.L(l));e=[].concat(g.L(M_.fN),g.L(e));M_.ji&&(ZU=[M_.ji].concat(g.L(ZU)))}else if(g.A(M_,R8)){if(F===void 0){F=new x("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:g.A(M_,R8)});break a}M_=Vdz(w,M,P,U,g.A(M_,R8),t,h,F,q,BJ(S,"supports_multi_step_on_desktop"));if(M_ instanceof x){F=M_;break a}M_=M_(p);d.push(M_.KV);M_.ji&&ZU.push(M_.ji);l=[].concat(g.L(M_.Ej),g.L(l));e=[].concat(g.L(M_.fN),g.L(e));R=[].concat(g.L(M_.rJ),g.L(R));I=[].concat(g.L(M_.Rq),g.L(I));w4=[t].concat(g.L(w4))}else if(g.A(M_,n8)){M_=mC_(w,M,P,U,g.A(M_,n8),t,h,q);if(M_ instanceof x){F=M_;break a}M_=M_(p);d.push(M_.KV);M_.ji&&ZU.push(M_.ji);e=[].concat(g.L(M_.fN),g.L(e))}else{F= new x("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}F={i4:d,layoutExitSkipTriggers:l,layoutExitUserInputSubmittedTriggers:R,eZ:I,layoutExitMuteTriggers:e,EV:w4,hp:ZU}}F instanceof x?p=F:(I=p.slotId,y=F.i4,q=F.layoutExitSkipTriggers,d=F.layoutExitMuteTriggers,l=F.layoutExitUserInputSubmittedTriggers,e=F.EV,p=h(p),R=X?X.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",I=X?X.layoutId:QJ(M.L.get(),R,I),w4={layoutId:I,layoutType:R,w$:"core"},p={layout:{layoutId:I,layoutType:R,SL:new Map, layoutExitNormalTriggers:[new MS(M.B,I)],layoutExitSkipTriggers:q,layoutExitMuteTriggers:d,layoutExitUserInputSubmittedTriggers:l,eZ:[],w$:"core",clientMetadata:new In([new Uh(y)].concat(g.L(e))),Kg:p(w4)},hp:F.hp});return p}}; Tk1=function(w,M,P){var u=[];w=g.G(w);for(var X=w.next();!X.done;X=w.next())if(X=X.value,g.A(X,Qz)){X=SL(g.A(X,Qz),M,P);if(X instanceof ba)return new x(X);u.push(X.eT)}return u}; LrU=function(w,M,P,u,X,U,f,h){if(!kvR(P,h===void 0?!1:h))return new x("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:P});var c=W8(P);if(c<=0)return new x("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:P});var Z=new $y({current:null}),S=$RH(w,M,P,Z,u,U,f);return lMu(w,u,U,c,X,function(H,p){var F=H.slotId,E=hX(P);H=f(H);var y,q=(y=z2(M,u,P.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?y: QJ(M.L.get(),"LAYOUT_TYPE_MEDIA_BREAK",F);F={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",w$:"core"};y=S(q,p);var d=Af(y.clientMetadata,"metadata_type_fulfilled_layout");d||X$("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");E=[new QC(u),new qf(c),new Tr(E),Z];d&&E.push(new Mf(d.layoutType));return{JU:{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",SL:new Map,layoutExitNormalTriggers:[new MS(M.B,q)],layoutExitSkipTriggers:[new XJ(M.B, p.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Zn(M.B,p.layoutId)],eZ:[],w$:"core",clientMetadata:new In(E),Kg:H(F)},fG:y}})}; eLl=function(w){if(!vLy(w))return!1;var M=g.A(w.adVideoStart,eL);return M?g.A(w.linearAd,Qz)&&du(M)?!0:(X$("Invalid Sandwich with notify"),!1):!1}; Bk1=function(w){if(w.linearAds==null)return!1;w=g.A(w.adStart,eL);return w?du(w)?!0:(X$("Invalid LASR with notify"),!1):!1}; Qa2=function(w){if(!nLH(w))return!1;w=g.A(w.adStart,eL);return w?du(w)?!0:(X$("Invalid LASR with notify"),!1):!1}; B8=function(w,M,P,u,X,U,f,h,c,Z){this.X=w;this.L=M;this.B=P;this.EO=u;this.I7=X;this.C=U;this.W3=f;this.LN=h;this.iC=c;this.loadPolicy=Z===void 0?1:Z}; M$=function(w,M,P,u,X,U,f,h,c,Z){var S=[];if(M.length===0&&u.length===0&&P.length===0)return S;M=M.filter(l_);var H=P.filter(elx),p=u.filter(l_),F=new Map,E=kzH(M),y=P.some(function(kM){var w3;return(kM==null?void 0:(w3=kM.adSlotMetadata)==null?void 0:w3.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),q=P.some(function(kM){var w3; return(kM==null?void 0:(w3=kM.adSlotMetadata)==null?void 0:w3.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),d=P.some(function(kM){var w3; return(kM==null?void 0:(w3=kM.adSlotMetadata)==null?void 0:w3.slotType)==="SLOT_TYPE_IN_PLAYER"}),l=P.some(function(kM){var w3,sE; return(kM==null?void 0:(w3=kM.adSlotMetadata)==null?void 0:w3.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(kM==null?void 0:(sE=kM.adSlotMetadata)==null?void 0:sE.slotType)==="SLOT_TYPE_ABOVE_FEED"}); P=P.some(function(kM){var w3;return(kM==null?void 0:(w3=kM.adSlotMetadata)==null?void 0:w3.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(y||q||d||l||P)Z=AtR(H,M,h,X,E,w.I7.get(),w.loadPolicy,F,w.EO.get(),w.X.get(),d,f,c,Z),Z instanceof x?X$(Z,void 0,void 0,{contentCpn:X}):S.push.apply(S,g.L(Z));Z=g.G(M);for(P=Z.next();!P.done;P=Z.next())P=P.value,q=kqR(w,F,P,X,U,f,y,h,E,c,H),q instanceof x?X$(q,void 0,void 0,{renderer:P.renderer,config:P.config.adPlacementConfig,kind:P.config.adPlacementConfig.kind,contentCpn:X,daiEnabled:f}):S.push.apply(S,g.L(q));RLz(w.EO.get())||(U=nWM(w,p,X,h,E,F),S.push.apply(S,g.L(U)));if(w.C===null||f&&!h.ye){var e, R,I;w=h.dK&&M.length===1&&((e=M[0].config)==null?void 0:(R=e.adPlacementConfig)==null?void 0:R.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((I=M[0].renderer)==null?void 0:I.adBreakServiceRenderer);if(!S.length&&!w){var w4,t,$M,fz;X$("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":M.length,contentCpn:X,"first APR kind":(w4=M[0])==null?void 0:(t=w4.config)==null?void 0:($M=t.adPlacementConfig)==null?void 0:$M.kind,renderer:(fz=M[0])==null?void 0: fz.renderer})}return S}e=u.filter(l_);S.push.apply(S,g.L(PV1(F,e,w.L.get(),w.C,X,y)));if(!S.length){var U1,ZU,M_,Tp;X$("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":M.length,contentCpn:X,daiEnabled:f.toString(),"first APR kind":(U1=M[0])==null?void 0:(ZU=U1.config)==null?void 0:(M_=ZU.adPlacementConfig)==null?void 0:M_.kind,renderer:(Tp=M[0])==null?void 0:Tp.renderer})}return S}; nWM=function(w,M,P,u,X,U){function f(p){return tf(w.I7.get(),p)} var h=[];M=g.G(M);for(var c=M.next();!c.done;c=M.next()){c=c.value;var Z=c.renderer,S=Z.sandwichedLinearAdRenderer,H=Z.linearAdSequenceRenderer;S&&eLl(S)?(X$("Found AdNotify with SandwichedLinearAdRenderer"),H=g.A(S.adVideoStart,eL),S=g.A(S.linearAd,Qz),$H(U,Z,c.config.adPlacementConfig.kind),Z=void 0,H=q$M((Z=H)==null?void 0:Z.layout.layoutId,w.L.get(),w.B.get(),c.config.adPlacementConfig,c.adSlotLoggingData,S,P,u,f,X,w.loadPolicy,w.EO.get(),w.I7.get()),H instanceof x?X$(H):h.push.apply(h,g.L(H))): H&&(!H.adLayoutMetadata&&Bk1(H)||H.adLayoutMetadata&&Qa2(H))&&(X$("Found AdNotify with LinearAdSequenceRenderer"),$H(U,Z,c.config.adPlacementConfig.kind),Z=void 0,S=oWM((Z=g.A(H.adStart,eL))==null?void 0:Z.layout.layoutId,w.L.get(),w.B.get(),c.config.adPlacementConfig,c.adSlotLoggingData,H.linearAds,p8(H.adLayoutMetadata)?H.adLayoutMetadata:void 0,P,u,f,X,w.loadPolicy,w.EO.get()),S instanceof x?X$(S):h.push.apply(h,g.L(S)))}return h}; kqR=function(w,M,P,u,X,U,f,h,c,Z,S){function H(d){return tf(w.I7.get(),d)} var p=P.renderer,F=P.config.adPlacementConfig,E=F.kind,y=P.adSlotLoggingData,q=h.ye&&E==="AD_PLACEMENT_KIND_START";q=U&&!q;if(p.adsEngagementPanelRenderer!=null)return fY(M,P.elementId,E,p.adsEngagementPanelRenderer.isContentVideoEngagementPanel,p.adsEngagementPanelRenderer.adVideoId,p.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,F,y,function(d,l,e,R){var I=w.B.get(),w4=d.slotId,t=p.adsEngagementPanelRenderer;d=tf(w.I7.get(),d);return QY(I,w4,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new DM(t),l,e,t.impressionPings,d,p.adsEngagementPanelRenderer.adLayoutLoggingData,R)}),[]; if(p.adsEngagementPanelLayoutViewModel)return fY(M,P.elementId,E,p.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,p.adsEngagementPanelLayoutViewModel.adVideoId,p.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,y,function(d,l,e,R){var I=w.B.get(),w4=d.slotId,t=p.adsEngagementPanelLayoutViewModel;d=tf(w.I7.get(),d);return kH(I,w4,"LAYOUT_TYPE_PANEL",new qC(t),l,e,d,p.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,R)}),[]; if(p.actionCompanionAdRenderer!=null){if(p.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return OUl(w.L.get(),w.C,w.B.get(),p.actionCompanionAdRenderer,F,y,u,H);fY(M,P.elementId,E,p.actionCompanionAdRenderer.isContentVideoCompanion,p.actionCompanionAdRenderer.adVideoId,p.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,F,y,function(d,l,e,R){var I=w.B.get(),w4=d.slotId,t=p.actionCompanionAdRenderer;d=tf(w.I7.get(),d);return QY(I,w4,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Gq(t),l,e,t.impressionPings,d,p.actionCompanionAdRenderer.adLayoutLoggingData,R)})}else if(p.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(p.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return aby(w.L.get(),w.C,w.B.get(),p.topBannerImageTextIconButtonedLayoutViewModel,F,y,u,H); fY(M,P.elementId,E,p.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,p.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,p.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,y,function(d,l,e,R){var I=w.B.get(),w4=d.slotId,t=p.topBannerImageTextIconButtonedLayoutViewModel;d=tf(w.I7.get(),d);return kH(I,w4,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new yC(t),l,e,d,p.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,R)})}else if(p.imageCompanionAdRenderer)fY(M, P.elementId,E,p.imageCompanionAdRenderer.isContentVideoCompanion,p.imageCompanionAdRenderer.adVideoId,p.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,F,y,function(d,l,e,R){var I=w.B.get(),w4=d.slotId,t=p.imageCompanionAdRenderer; d=tf(w.I7.get(),d);return QY(I,w4,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new dk(t),l,e,t.impressionPings,d,p.imageCompanionAdRenderer.adLayoutLoggingData,R)}); else if(p.bannerImageLayoutViewModel)fY(M,P.elementId,E,p.bannerImageLayoutViewModel.isContentVideoCompanion,p.bannerImageLayoutViewModel.adVideoId,p.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,y,function(d,l,e,R){var I=w.B.get(),w4=d.slotId,t=p.bannerImageLayoutViewModel;d=tf(w.I7.get(),d);return kH(I,w4,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new lE(t),l,e,d,p.bannerImageLayoutViewModel.adLayoutLoggingData,R)}); else if(p.shoppingCompanionCarouselRenderer)fY(M,P.elementId,E,p.shoppingCompanionCarouselRenderer.isContentVideoCompanion,p.shoppingCompanionCarouselRenderer.adVideoId,p.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,F,y,function(d,l,e,R){var I=w.B.get(),w4=d.slotId,t=p.shoppingCompanionCarouselRenderer;d=tf(w.I7.get(),d);return QY(I,w4,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Ln(t),l,e,t.impressionPings,d,p.shoppingCompanionCarouselRenderer.adLayoutLoggingData,R)}); else if(p.adBreakServiceRenderer){if(!tlU(P))return[];if(E==="AD_PLACEMENT_KIND_PAUSE")return Cwu(w.L.get(),F,y,P.renderer.adBreakServiceRenderer,u);if(E!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&E!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return jYU(w.L.get(),F,y,P.renderer.adBreakServiceRenderer,u,X,U);h.dK||X$("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:E,adPlacementConfig:F,daiEnabledForContentVideo:String(U),isServedFromLiveInfra:String(h.dK),clientPlaybackNonce:h.clientPlaybackNonce}); if(E==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!w.W3)return new x("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!w.iC)return new x("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");w.iC.Pi({adPlacementRenderer:P,contentCpn:u,oQ:X});X=w.W3.get().getCurrentTimeSec(1,!1);return vWU(w.L.get(),P.renderer.adBreakServiceRenderer,F,X,u,y,U)}if(!w.LN)return new x("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); w.LN.Pi({adPlacementRenderer:P,contentCpn:u,oQ:X})}else{if(p.clientForecastingAdRenderer)return Wrl(w.L.get(),w.B.get(),F,y,p.clientForecastingAdRenderer,u,X,H);if(p.invideoOverlayAdRenderer)return Ss5(w.L.get(),w.B.get(),F,y,p.invideoOverlayAdRenderer,u,X,H);if(p.instreamAdPlayerOverlayRenderer)return cF5(w.L.get(),w.B.get(),F,y,p.instreamAdPlayerOverlayRenderer,u,H);if((p.linearAdSequenceRenderer||p.instreamVideoAdRenderer)&&q)return VCM(w.L.get(),w.B.get(),P,u,H,Z,!w.EO.get().U.N().D("html5_override_ad_video_length_killswitch")); if(p.linearAdSequenceRenderer&&!q){if(f)return[];$H(M,p,E);if(p.linearAdSequenceRenderer.adLayoutMetadata){if(!nLH(p.linearAdSequenceRenderer))return new x("Received invalid LinearAdSequenceRenderer.")}else if(p.linearAdSequenceRenderer.linearAds==null)return new x("Received invalid LinearAdSequenceRenderer.");if(g.A(p.linearAdSequenceRenderer.adStart,eL)){X$("Found AdNotify in LinearAdSequenceRenderer");P=g.A(p.linearAdSequenceRenderer.adStart,eL);if(!Vlu(P))return new x("Invalid AdMessageRenderer."); U=p.linearAdSequenceRenderer.linearAds;return GqR(w.X.get(),w.L.get(),w.B.get(),w.I7.get(),F,y,P,p8(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,U,u,X,h,H,c,w.loadPolicy,w.EO.get())}return zL5(w.L.get(),w.B.get(),F,y,p.linearAdSequenceRenderer.linearAds,p8(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,u,X,h,H,c,w.loadPolicy,w.EO.get(),S)}if(!p.remoteSlotsRenderer||U){if(p.instreamVideoAdRenderer&& !q){if(f)return[];$H(M,p,E);return lEp(w.L.get(),w.B.get(),F,y,p.instreamVideoAdRenderer,u,X,h,H,c,w.loadPolicy,w.EO.get(),w.I7.get(),S)}if(p.instreamSurveyAdRenderer)return LrU(w.L.get(),w.B.get(),p.instreamSurveyAdRenderer,F,y,u,H,BJ(w.EO.get(),"supports_multi_step_on_desktop"));if(p.sandwichedLinearAdRenderer!=null)return vLy(p.sandwichedLinearAdRenderer)?g.A(p.sandwichedLinearAdRenderer.adVideoStart,eL)?(X$("Found AdNotify in SandwichedLinearAdRenderer"),P=g.A(p.sandwichedLinearAdRenderer.adVideoStart, eL),Vlu(P)?(U=g.A(p.sandwichedLinearAdRenderer.linearAd,Qz))?Y$F(P,U,F,w.X.get(),w.L.get(),w.B.get(),w.I7.get(),y,u,X,h,H,c,w.loadPolicy,w.EO.get()):new x("Missing IVAR from Sandwich"):new x("Invalid AdMessageRenderer.")):zL5(w.L.get(),w.B.get(),F,y,[p.sandwichedLinearAdRenderer.adVideoStart,p.sandwichedLinearAdRenderer.linearAd],void 0,u,X,h,H,c,w.loadPolicy,w.EO.get()):new x("Received invalid SandwichedLinearAdRenderer.");if(p.videoAdTrackingRenderer!=null)return UCz(w.L.get(),w.B.get(),p.videoAdTrackingRenderer, F,y,u,X,h.Dv,H)}}return[]}; RQ=function(w,M,P,u,X,U,f,h){g.v.call(this);var c=this;this.L=w;this.C=M;this.Ya=u;this.W3=X;this.EO=U;this.FK=f;this.LT=h;this.B=null;P.get().addListener(this);this.addOnDisposeCallback(function(){P.sO()||P.get().removeListener(c)}); u.get().addListener(this);this.addOnDisposeCallback(function(){u.sO()||u.get().removeListener(c)})}; Krp=function(w,M,P){var u=w.W3.get().getCurrentTimeSec(1,!1);w.EO.get().U.N().FX()&&Fn(w.FK.get(),"sdai","onopp.1;evt."+P.event+";start."+P.startSecs.toFixed(3)+";d."+P.Xq.toFixed(3));aB(w.L.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var X=w.C.get(),U=M.adPlacementRenderer.renderer.adBreakServiceRenderer,f=M.contentCpn,h=M.adPlacementRenderer.adSlotLoggingData,c=nY(w.EO.get()),Z=w.FK;if(X.EO.get().U.N().experiments.nu("enable_smearing_expansion_dai")){var S=X.EO.get();S=g.Oh(S.U.N().experiments, "max_prefetch_window_sec_for_livestream_optimization");c=X.EO.get();var H=g.Oh(c.U.N().experiments,"min_prefetch_offset_sec_for_livestream_optimization");c={Tx:saH(P),CZ:!1,cueProcessedMs:u*1E3};var p=P.startSecs+P.Xq;if(u===0)c.hq=new NB(0,p*1E3);else{H=P.startSecs-H;var F=H-u;c.hq=F<=0?new NB(H*1E3,p*1E3):new NB(Math.floor(u+Math.random()*Math.min(F,S))*1E3,p*1E3)}S=c}else S={Tx:saH(P),CZ:!1},p=P.startSecs+P.Xq,P.startSecs<=u?c=new NB((P.startSecs-4)*1E3,p*1E3):(H=Math.max(0,P.startSecs-u-10),c= new NB(Math.floor(u+Math.random()*(c?u===0?0:Math.min(H,5):H))*1E3,p*1E3)),S.hq=c;U=P8(X,U,f,S,h,[new fc(P)]);v8(X.EO.get())&&Fn(Z.get(),"abrsm","cpi."+P.identifier+";cps."+P.startSecs+";cpd."+P.Xq+";cts."+u+";rbf."+S.hq.start);Z.get().U.QC(P.startSecs-u,S.hq.start/1E3-u);return[U]})}; s2=function(w){var M,P=(M=Af(w.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:M.current;if(!P)return null;M=Af(w.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var u=w.layoutId,X=Af(w.clientMetadata,"metadata_type_content_cpn"),U=Af(w.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),f=Af(w.clientMetadata,"metadata_type_player_overlay_layout_renderer"),h=Af(w.clientMetadata,"metadata_type_player_underlay_renderer"),c=Af(w.clientMetadata, "metadata_type_ad_placement_config"),Z=Af(w.clientMetadata,"metadata_type_video_length_seconds");var S=vk(w.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Af(w.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):vk(w.clientMetadata,"metadata_type_layout_enter_ms")&&vk(w.clientMetadata,"metadata_type_layout_exit_ms")?(Af(w.clientMetadata,"metadata_type_layout_exit_ms")-Af(w.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Jl:u,contentCpn:X,Hi:P,zZ:M,instreamAdPlayerOverlayRenderer:U, playerOverlayLayoutRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:c,videoLengthSeconds:Z,dc:S,inPlayerLayoutId:Af(w.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Af(w.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; IMM=function(w,M){return bnM(w,M)}; AF5=function(w,M){M=bnM(w,M);if(!M)return null;var P;M.dc=(P=Af(w.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:P.adBreakRemainingLengthSeconds;return M}; bnM=function(w,M){var P,u=(P=Af(w.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:P.current;if(!u)return null;P=Uo_(w,M);return{sW:$oz(w,M),adPlacementConfig:Af(w.clientMetadata,"metadata_type_ad_placement_config"),DG:P,contentCpn:Af(w.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Af(w.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Af(w.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Af(w.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,dc:void 0,Hi:u,Jl:w.layoutId,videoLengthSeconds:Af(w.clientMetadata,"metadata_type_video_length_seconds")}}; KY=function(w,M,P,u,X,U,f,h,c){g.v.call(this);this.X=w;this.K=M;this.G=P;this.C=u;this.B=X;this.L=U;this.I7=f;this.EO=h;this.D3=c;this.Hv=!0}; gWz=function(w,M,P){return Bt_(w.B.get(),M.contentCpn,M.Jl,function(u){return QzU(w.L.get(),u.slotId,P,M.adPlacementConfig,M.Jl,tf(w.I7.get(),u))})}; bs=function(w,M,P,u,X,U,f,h){g.v.call(this);this.L=w;this.B=M;this.C=P;this.EO=u;this.X=X;this.D3=U;this.W3=f;this.Rv=h}; IQ=function(w){g.v.call(this);this.B=w}; aB=function(w,M,P,u){w.B().Q0(M,u);P=P();w=w.B();w.eK.xq("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",M,u,P);M=g.G(P);for(P=M.next();!P.done;P=M.next())a:{u=w;P=P.value;u.eK.qS("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",P);u.eK.qS("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",P);try{var X=u.B;if(g.lA(P.slotId))throw new x("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if($k(X,P))throw new x("Duplicate registration for slot.",{slotId:P.slotId,slotEntryTriggerType:P.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!X.hV.Os.has(P.slotType))throw new x("No fulfillment adapter factory registered for slot of type: "+P.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!X.hV.oi.has(P.slotType))throw new x("No SlotAdapterFactory registered for slot of type: "+P.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");yJ(X,"TRIGGER_CATEGORY_SLOT_ENTRY",P.slotEntryTrigger?[P.slotEntryTrigger]:[]);yJ(X,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", P.slotFulfillmentTriggers);yJ(X,"TRIGGER_CATEGORY_SLOT_EXPIRATION",P.slotExpirationTriggers);var U=u.B,f=P.slotType+"_"+P.slotPhysicalPosition,h=NY(U,f);if($k(U,P))throw new x("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");h.set(P.slotId,new a2M(P));U.B.set(f,h)}catch($M){$M instanceof x&&$M.IG?(u.eK.Jy("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",$M.IG,P),X$($M,P,void 0,void 0,$M.u_)):(u.eK.Jy("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", P),X$($M,P));break a}$k(u.B,P).K=!0;try{var c=u.B,Z=$k(c,P),S=P.slotEntryTrigger,H=c.hV.zx.get(S.triggerType);H&&(H.aE("TRIGGER_CATEGORY_SLOT_ENTRY",S,P,null),Z.mN.set(S.triggerId,H));for(var p=g.G(P.slotFulfillmentTriggers),F=p.next();!F.done;F=p.next()){var E=F.value,y=c.hV.zx.get(E.triggerType);y&&(y.aE("TRIGGER_CATEGORY_SLOT_FULFILLMENT",E,P,null),Z.B3.set(E.triggerId,y))}for(var q=g.G(P.slotExpirationTriggers),d=q.next();!d.done;d=q.next()){var l=d.value,e=c.hV.zx.get(l.triggerType);e&&(e.aE("TRIGGER_CATEGORY_SLOT_EXPIRATION", l,P,null),Z.S.set(l.triggerId,e))}var R=c.hV.Os.get(P.slotType).get().build(c.C,P);Z.j=R;var I=c.hV.oi.get(P.slotType).get().build(c.G,P);I.init();Z.L=I}catch($M){$M instanceof x&&$M.IG?(u.eK.Jy("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",$M.IG,P),X$($M,P,void 0,void 0,$M.u_)):(u.eK.Jy("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",P),X$($M,P));PJ(u,P,!0);break a}u.eK.qS("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",P);u.B.T0(P);for(var w4=g.G(u.L),t=w4.next();!t.done;t= w4.next())t.value.T0(P);WJ(u,P)}}; AX=function(w,M,P,u,X){g.v.call(this);var U=this;this.L=w;this.C=M;this.Iv=P;this.context=X;this.B=new Map;u.get().addListener(this);this.addOnDisposeCallback(function(){u.sO()||u.get().removeListener(U)})}; bUu=function(w,M){var P=0x8000000000000;var u=0;for(var X=g.G(M.slotFulfillmentTriggers),U=X.next();!U.done;U=X.next())U=U.value,U instanceof Ow?(P=Math.min(P,U.B.start),u=Math.max(u,U.B.end)):X$("Found unexpected fulfillment trigger for throttled slot.",M,null,{fulfillmentTrigger:U});u=new NB(P,u);P="throttledadcuerange:"+M.slotId;w.B.set(P,M);w.Iv.get().addCueRange(P,u.start,u.end,!1,w);UI(w.context.EO.get())&&(M=u.start,u=u.end,X={},w.context.zJ.H3("tcrr",(X.cid=P,X.sm=M,X.em=u,X)))}; gZ=function(){g.v.apply(this,arguments);this.Hv=!0;this.L6=new Map;this.B=new Map}; JX=function(w,M){w=g.G(w.L6.values());for(var P=w.next();!P.done;P=w.next())if(P.value.layoutId===M)return!0;return!1}; rZ=function(w,M){w=g.G(w.B.values());for(var P=w.next();!P.done;P=w.next()){P=g.G(P.value);for(var u=P.next();!u.done;u=P.next())if(u=u.value,u.layoutId===M)return u}X$("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.lA(M)),layoutId:M})}; JF5=function(){this.B=new Map}; rFz=function(w,M){this.callback=w;this.slot=M}; jL=function(){}; jaU=function(w,M,P){this.callback=w;this.slot=M;this.W3=P}; CER=function(w,M,P){this.callback=w;this.slot=M;this.W3=P;this.L=!1;this.B=0}; tdx=function(w,M,P){this.callback=w;this.slot=M;this.W3=P}; CY=function(w){this.W3=w}; tX=function(w){g.v.call(this);this.kB=w;this.yE=new Map}; xH=function(w,M){for(var P=[],u=g.G(w.yE.values()),X=u.next();!X.done;X=u.next()){X=X.value;var U=X.trigger;U instanceof Zn&&U.triggeringLayoutId===M&&P.push(X)}P.length?pD(w.kB(),P):X$("Survey is submitted but no registered triggers can be activated.")}; O2=function(w,M,P){tX.call(this,w);var u=this;this.EO=P;M.get().addListener(this);this.addOnDisposeCallback(function(){M.sO()||M.get().removeListener(u)})}; aQ=function(w){g.v.call(this);this.B=w;this.Hv=!0;this.yE=new Map;this.G=new Set;this.C=new Set;this.X=new Set;this.K=new Set;this.L=new Set}; wE=function(w){g.v.call(this);this.B=w;this.yE=new Map}; iF=function(w,M){for(var P=[],u=g.G(w.yE.values()),X=u.next();!X.done;X=u.next())X=X.value,X.trigger.B===M.layoutId&&P.push(X);P.length&&pD(w.B(),P)}; M1=function(w,M,P){g.v.call(this);var u=this;this.B=w;this.context=P;this.yE=new Map;M.get().addListener(this);this.addOnDisposeCallback(function(){M.sO()||M.get().removeListener(u)})}; P2=function(w,M,P,u,X){g.v.call(this);var U=this;this.L=w;this.Iv=M;this.W3=P;this.D3=u;this.context=X;this.Hv=!0;this.yE=new Map;this.B=new Set;P.get().addListener(this);this.addOnDisposeCallback(function(){P.sO()||P.get().removeListener(U)})}; xC2=function(w,M,P,u,X,U,f,h,c,Z){if(LO(w.D3.get(),1).clientPlaybackNonce!==c)throw new x("Cannot register CueRange-based trigger for different content CPN",{trigger:P});w.yE.set(P.triggerId,{gZ:new HE(M,P,u,X),cueRangeId:U});w.Iv.get().addCueRange(U,f,h,Z,w);UI(w.context.EO.get())&&(c={},w.context.zJ.H3("crr",(c.ca=M,c.tt=P.triggerType,c.st=u.slotType,c.lt=X==null?void 0:X.layoutType,c.cid=U,c.sm=f,c.em=h,c)))}; Onz=function(w,M){w=g.G(w.yE.entries());for(var P=w.next();!P.done;P=w.next()){var u=g.G(P.value);P=u.next().value;u=u.next().value;if(M===u.cueRangeId)return P}return""}; uF=function(w,M){g.v.call(this);var P=this;this.X=w;this.L=new Map;this.C=new Map;this.B=null;M.get().addListener(this);this.addOnDisposeCallback(function(){M.sO()||M.get().removeListener(P)}); var u;this.B=((u=M.get().fl)==null?void 0:u.slotId)||null}; aMu=function(w,M){var P=[];w=g.G(w.values());for(var u=w.next();!u.done;u=w.next())u=u.value,u.slot.slotId===M&&P.push(u);return P}; Xx=function(w){g.v.call(this);this.B=w;this.Hv=!0;this.yE=new Map}; $e=function(w,M,P){M=M.layoutId;for(var u=[],X=g.G(w.yE.values()),U=X.next();!U.done;U=X.next())if(U=U.value,U.trigger instanceof MS){var f;if(f=U.trigger.layoutId===M){f=P;var h=Jr1.get(U.category);f=h?h===f:!1}f&&u.push(U)}u.length&&pD(w.B(),u)}; $T=function(w){g.v.call(this);this.B=w;this.Hv=!0;this.yE=new Map}; UD=function(w,M,P,u,X){g.v.call(this);var U=this;this.K=w;this.Ya=M;this.W3=P;this.FK=u;this.B=null;this.X=!1;this.Hv=!0;this.yE=new Map;M.get().addListener(this);this.addOnDisposeCallback(function(){M.sO()||M.get().removeListener(U)}); X.get().addListener(this);this.addOnDisposeCallback(function(){X.sO()||X.get().removeListener(U)})}; Mnl=function(w){w.B&&(w.X=!0,w.L&&(w.L.stop(),w.L.start()),wkz(w,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"),Fn(w.FK.get(),"ads_ce","bdc."+ic4(w).length))}; wkz=function(w,M){for(var P=[],u=g.G(w.yE.values()),X=u.next();!X.done;X=u.next())X=X.value,X.trigger.triggerType===M&&P.push(X);P.length>0&&pD(w.K(),P)}; fm=function(w,M,P,u,X){for(var U=[],f=g.G(w.yE.values()),h=f.next();!h.done;h=f.next()){var c=h=h.value,Z=c.trigger;c=c.slot;if(Z.triggerType===M){if(Z instanceof Ce||Z instanceof tQ||Z instanceof al){if(X&&Z.breakDurationMs!==P)continue;if(!X&&Z.breakDurationMs===P)continue;if(u.has(c.slotId))continue}U.push(h)}}U.length>0&&pD(w.K(),U)}; Pa2=function(w,M){M=(M.Xq+1)*1E3;var P=void 0;w=g.G(w.yE.values());for(var u=w.next();!u.done;u=w.next()){var X=u.value;u=X.trigger;X=X.slot;u instanceof Ce&&u.breakDurationMs<=M&&(!P||u.breakDurationMs>P.trigger.breakDurationMs)&&(P={slot:X,trigger:u})}return P}; u25=function(w){w=w.adPlacementRenderer.config.adPlacementConfig;if(!w.prefetchModeConfig||!w.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;w=Number(w.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(w)||w<=0?0:Math.floor(Math.random()*w)}; Xkp=function(w){w=w.adPlacementRenderer.config.adPlacementConfig;if(w.prefetchModeConfig&&w.prefetchModeConfig.cacheFetchRefreshDurationMs&&(w=Number(w.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(w)||w<=0)))return w}; W2=function(w){w.B=null;w.yE.clear();w.L&&w.L.stop();w.G&&w.G.stop();var M;(M=w.C)==null||M.stop();delete w.C}; ic4=function(w){var M=[];w=g.G(w.yE.values());for(var P=w.next();!P.done;P=w.next())P=P.value.trigger,P instanceof Ce&&M.push(P.breakDurationMs);return M}; hk=function(w){g.v.call(this);this.C=w;this.Hv=!0;this.yE=new Map;this.B=new Map;this.L=new Map}; $fH=function(w,M){var P=[];if(M=w.B.get(M.layoutId)){M=g.G(M);for(var u=M.next();!u.done;u=M.next())(u=w.L.get(u.value.triggerId))&&P.push(u)}return P}; c2=function(w){g.v.call(this);this.B=w;this.yE=new Map}; Uf5=function(w,M){for(var P=[],u=g.G(w.yE.values()),X=u.next();!X.done;X=u.next())X=X.value,X.trigger instanceof Rl&&X.trigger.slotId===M&&P.push(X);P.length>=1&&pD(w.B(),P)}; fg5=function(w,M){var P={slotId:ww(M,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],w$:"surface",clientMetadata:new In([])},u=Object,X=u.assign;M=QJ(M,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",P.slotId);M={layoutId:M,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",SL:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:"surface", clientMetadata:new In([]),Kg:sE5(!1,P.slotId,P.slotType,P.slotPhysicalPosition,P.w$,P.slotEntryTrigger,P.slotFulfillmentTriggers,P.slotExpirationTriggers,M,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return X.call(u,{},w,{mw:!0,slot:P,layout:M})}; rcM=function(w,M,P,u){var X=w.kind;u=u?!1:!w.hideCueRangeMarker;switch(X){case "AD_PLACEMENT_KIND_START":return u={Tx:new NB(-0x8000000000000,-0x8000000000000),CZ:u},P!=null&&(u.hq=new NB(-0x8000000000000,-0x8000000000000)),u;case "AD_PLACEMENT_KIND_END":return u={Tx:new NB(0x7ffffffffffff,0x8000000000000),CZ:u},P!=null&&(u.hq=new NB(Math.max(0,M-P),0x8000000000000)),u;case "AD_PLACEMENT_KIND_MILLISECONDS":X=w.adTimeOffset;X.offsetStartMilliseconds||X$("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); X.offsetEndMilliseconds||X$("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");w=Number(X.offsetStartMilliseconds);X=Number(X.offsetEndMilliseconds);X===-1&&(X=M);if(Number.isNaN(w)||Number.isNaN(X)||w>X)return new x("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:w,offsetEndMs:X},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",X===M&&w-500<=X);u={Tx:new NB(w,X),CZ:u};if(P!=null){w=Math.max(0,w-P);if(w===X)return u;u.hq=new NB(w,X)}return u; default:return new x("AdPlacementKind not supported in convertToRange.",{kind:X,adPlacementConfig:w})}}; saH=function(w){var M=w.startSecs*1E3;return new NB(M,M+w.Xq*1E3)}; W7u=function(w){if(!w||!w.adPlacements&&!w.adSlots)return!1;for(var M=g.G(w.adPlacements||[]),P=M.next();!P.done;P=M.next())if(P=P.value)if(P=P.adPlacementRenderer,P!=null&&(P.config&&P.config.adPlacementConfig&&P.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;w=g.G(w.adSlots||[]);for(M=w.next();!M.done;M=w.next()){var u=P=void 0;if(((P=g.A(M.value,is))==null?void 0:(u=P.adSlotMetadata)==null?void 0:u.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Zo=function(w){this.EO=w;this.L=new Map;this.B=new Map;this.C=new Map}; ww=function(w,M){if(Sb(w.EO.get())){var P=w.L.get(M)||0;P++;w.L.set(M,P);return M+"_"+P}return g.Hl(16)}; QJ=function(w,M,P){if(Sb(w.EO.get())){var u=w.B.get(M)||0;u++;w.B.set(M,u);return P+"_"+M+"_"+u}return g.Hl(16)}; yY=function(w,M){if(Sb(w.EO.get())){var P=w.C.get(M)||0;P++;w.C.set(M,P);return M+"_"+P}return g.Hl(16)}; hbx=function(w){var M=[new wA(w.Jl),new ua(w.Hi),new QC(w.adPlacementConfig),new Wk(w.videoLengthSeconds),new Dg(w.dc)];w.instreamAdPlayerOverlayRenderer&&M.push(new Ia(w.instreamAdPlayerOverlayRenderer));w.playerOverlayLayoutRenderer&&M.push(new AF(w.playerOverlayLayoutRenderer));w.zZ&&M.push(new vv(w.zZ));return M}; cfF=function(w,M,P,u,X,U){w=P.inPlayerLayoutId?P.inPlayerLayoutId:QJ(U,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",w);var f,h,c=P.instreamAdPlayerOverlayRenderer?(f=P.instreamAdPlayerOverlayRenderer)==null?void 0:f.adLayoutLoggingData:(h=P.playerOverlayLayoutRenderer)==null?void 0:h.adLayoutLoggingData;f={layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",w$:M};return{layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",SL:new Map,layoutExitNormalTriggers:[new JQ(function(Z){return yY(U, Z)},P.Jl)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:M,clientMetadata:u,Kg:X(f),adLayoutLoggingData:c}}; H2=function(w,M){var P=this;this.L=w;this.EO=M;this.B=function(u){return yY(P.L.get(),u)}}; QzU=function(w,M,P,u,X,U){P=new In([new gk(P),new QC(u)]);M=QJ(w.L.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",M);u={layoutId:M,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",w$:"core"};return{layoutId:M,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",SL:new Map,layoutExitNormalTriggers:[new JQ(function(f){return yY(w.L.get(),f)},X)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:"core",clientMetadata:P,Kg:U(u),adLayoutLoggingData:void 0}}; pY=function(w,M,P,u,X){var U=hbx(u);return cfF(M,P,u,new In(U),X,w.L.get())}; Zc4=function(w,M,P,u,X){var U=hbx(u);U.push(new ed(u.sW));U.push(new Bv(u.DG));return cfF(M,P,u,new In(U),X,w.L.get())}; QY=function(w,M,P,u,X,U,f,h,c,Z){M=QJ(w.L.get(),P,M);var S={layoutId:M,layoutType:P,w$:"core"},H=new Map;f&&H.set("impression",f);f=[new wu(w.B,X,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];Z&&f.push(new g6(w.B,Z,["normal"]));return{layoutId:M,layoutType:P,SL:H,layoutExitNormalTriggers:f,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:"core",clientMetadata:new In([u,new QC(U),new wA(X)]),Kg:h(S),adLayoutLoggingData:c}}; kH=function(w,M,P,u,X,U,f,h,c){M=QJ(w.L.get(),P,M);var Z={layoutId:M,layoutType:P,w$:"core"},S=[new wu(w.B,X,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];c&&S.push(new g6(w.B,c,["normal"]));return{layoutId:M,layoutType:P,SL:new Map,layoutExitNormalTriggers:S,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:"core",clientMetadata:new In([u,new QC(U),new wA(X)]),Kg:f(Z),adLayoutLoggingData:h}}; q$=function(w,M,P){var u=[];u.push(new i_(w.B,P));M&&u.push(M);return u}; Dz=function(w,M,P,u,X,U,f){var h={layoutId:M,layoutType:P,w$:"core"};return{layoutId:M,layoutType:P,SL:new Map,layoutExitNormalTriggers:f,layoutExitSkipTriggers:[new Ke(w.B,M)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:"core",clientMetadata:new In([new Tq(u),new QC(X)]),Kg:U(h),adLayoutLoggingData:u.adLayoutLoggingData}}; c8=function(w,M,P,u,X,U,f,h){var c={layoutId:M,layoutType:U,w$:"core"};return{layoutId:M,layoutType:U,SL:new Map,layoutExitNormalTriggers:[new JQ(w.B,P)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:"core",clientMetadata:new In([new QC(u)].concat(g.L(f))),Kg:X(c),adLayoutLoggingData:h}}; z2=function(w,M,P,u){if(w.EO.get().UE(M.kind==="AD_PLACEMENT_KIND_START"))if(P===void 0)X$("Expected SSAP layout ID in renderer",void 0,void 0,{caller:u});else return P}; Hn4=function(w,M,P,u,X,U,f,h,c,Z,S,H,p){w=YH(w,M,P,X,U,f,h,c,H,z2(w,P,u.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),p);M=w.EV;P=new ia(w.vD);u=w.layoutExitSkipTriggers;Z>0&&(M.push(P),M.push(new nn(Z)),u=[]);M.push(new Ra(S));return{KV:{layoutId:w.layoutId,layoutType:w.layoutType,SL:w.SL,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:w.w$,clientMetadata:new In(M),Kg:w.Kg,adLayoutLoggingData:w.adLayoutLoggingData}, Ej:u,fN:w.layoutExitMuteTriggers,rJ:w.layoutExitUserInputSubmittedTriggers,Rq:w.eZ,ji:w.ji}}; Nky=function(w,M,P,u,X,U,f,h,c,Z){M=YH(w,M,P,u,U,new Map,f,function(S){return h(S,c)},void 0,z2(w,P,X.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); w=new Zn(w.B,M.vD);P=new ia(M.vD);Z=new Ra(Z);return{KV:{layoutId:M.layoutId,layoutType:M.layoutType,SL:M.SL,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:M.w$,clientMetadata:new In([].concat(g.L(M.EV),[P,Z])),Kg:M.Kg,adLayoutLoggingData:M.adLayoutLoggingData},Ej:M.layoutExitSkipTriggers,fN:M.layoutExitMuteTriggers,rJ:[].concat(g.L(M.layoutExitUserInputSubmittedTriggers),[w]),Rq:M.eZ,ji:M.ji}}; YH=function(w,M,P,u,X,U,f,h,c,Z,S){M=Z!=null?Z:QJ(w.L.get(),"LAYOUT_TYPE_MEDIA_BREAK",M);Z={layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",w$:"adapter"};h=h(M);var H=Af(h.clientMetadata,"metadata_type_fulfilled_layout");H||X$("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var p=H?H.layoutId:"";P=[new QC(P),new qf(u),new Tr(X)];H&&P.push(new Mf(H.layoutType));S&&P.push(new pc(S));return{layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", SL:U,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new XJ(w.B,p)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:"adapter",EV:P,Kg:f(Z),adLayoutLoggingData:c,ji:h,vD:p}}; LVl=function(w,M,P,u,X,U,f,h,c,Z,S){w=Shu(w,M,"core",P,u,X,U,f,h,c,Z,void 0,S);return{layoutId:w.layoutId,layoutType:w.layoutType,SL:w.SL,layoutExitNormalTriggers:w.layoutExitNormalTriggers,layoutExitSkipTriggers:w.layoutExitSkipTriggers,layoutExitMuteTriggers:w.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:w.layoutExitUserInputSubmittedTriggers,eZ:w.eZ,w$:w.w$,clientMetadata:new In(w.As),Kg:w.Kg,adLayoutLoggingData:w.adLayoutLoggingData}}; dCF=function(w,M,P,u,X,U,f,h,c,Z,S,H,p){M=Shu(w,M,"adapter",P,u,X,U,f,h,c,S,H,p);u=M.layoutExitSkipTriggers;X=M.As;P.adPodSkipTarget&&P.adPodSkipTarget>0&&(X.push(Z),X.push(new nn(P.adPodSkipTarget)),u=[]);X.push(new Ra(h.adPodIndex));P.isCritical&&(u=[new g6(w.B,M.layoutId,["error"])].concat(g.L(u)));return{KV:{layoutId:M.layoutId,layoutType:M.layoutType,SL:M.SL,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:M.w$,clientMetadata:new In(X), Kg:M.Kg,adLayoutLoggingData:M.adLayoutLoggingData},Ej:u,fN:M.layoutExitMuteTriggers,rJ:M.layoutExitUserInputSubmittedTriggers,Rq:M.eZ}}; Shu=function(w,M,P,u,X,U,f,h,c,Z,S,H,p){var F={layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA",w$:P};X=[new QC(X),new kW(c),new Kn(u.externalVideoId),new bE(h),new Tr({impressionCommands:u.impressionCommands,abandonCommands:u.onAbandonCommands,completeCommands:u.completeCommands,progressCommands:u.adVideoProgressCommands}),new hf(U),new X2({current:null}),new Wk(f)];(U=u.playerOverlay.instreamAdPlayerOverlayRenderer)&&X.push(new Ia(U));(f=u.playerOverlay.playerOverlayLayoutRenderer)&&X.push(new AF(f)); H&&X.push(new ck(H));(H=u.playerUnderlay)&&X.push(new gk(H));h=ww(w.L.get(),"SLOT_TYPE_IN_PLAYER");H=(H=U?U.elementId:f==null?void 0:f.layoutId)?H:QJ(w.L.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",h);X.push(new ia(H));X.push(new Pk(h));X.push(new pc(c.adPodIndex));u.adNextParams&&X.push(new YW(u.adNextParams));u.shrunkenPlayerBytesConfig&&X.push(new jd(u.shrunkenPlayerBytesConfig));u.clickthroughEndpoint&&X.push(new zq(u.clickthroughEndpoint));u.legacyInfoCardVastExtension&&X.push(new Yy(u.legacyInfoCardVastExtension)); u.sodarExtensionData&&X.push(new Zg(u.sodarExtensionData));S&&X.push(new yH(S));X.push(new Lc(WZ(u.pings)));c=hJ(u.pings);if(p){a:{p=g.G(p);for(S=p.next();!S.done;S=p.next())if(S=S.value,S.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(U=g.A(S.fulfillmentContent.fulfilledLayout,gu))&&(U=g.A(U.renderingContent,I8))&&U.associatedPlayerBytesLayoutId===M){p=S;break a}p=void 0}p&&X.push(new JF(p))}return{layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA",SL:c,layoutExitNormalTriggers:[new MS(w.B,M)],layoutExitSkipTriggers:u.skipOffsetMilliseconds? [new XJ(w.B,H)]:[],layoutExitMuteTriggers:[new XJ(w.B,H)],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:P,As:X,Kg:Z(F),adLayoutLoggingData:u.adLayoutLoggingData}}; oDp=function(w,M,P,u,X,U,f,h,c){u.every(function(S){return sh(S,[],["LAYOUT_TYPE_MEDIA"])})||X$("Unexpect subLayout type for DAI composite layout"); M=QJ(w.L.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",M);var Z={layoutId:M,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",w$:"core"};return{layoutId:M,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",SL:new Map,layoutExitNormalTriggers:[new r6(w.B)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eZ:[],w$:"core",clientMetadata:new In([new Sn(P),new Hk(h),new Uh(u),new QC(X),new VH(U),new F2({}),new Bk(c)]),Kg:f(Z)}}; FVu=function(w){return w!=null}; pm=function(w,M,P){var u=this;this.L=w;this.C=M;this.EO=P;this.B=function(X){return yY(u.L.get(),X)}}; vWU=function(w,M,P,u,X,U,f){if(!P.prefetchModeConfig)return new x("AdPlacementConfig for Live Prefetch is missing prefetch_config");P=P.prefetchModeConfig;u*=1E3;var h=[];if(!P.breakLengthMs)return new x("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var c=g.G(P.breakLengthMs),Z=c.next();!Z.done;Z=c.next())if(Z=Z.value,Number(Z)>0){var S=u+Number(P.startTimeOffsetMs),H=S+Number(P.cacheFetchSmearingDurationMs);Z={Tx:new NB(H,H+Number(Z)),CZ:!1,hq:new NB(Math.floor(S+Math.random()* Number(P.cacheFetchSmearingDurationMs)),H),cueProcessedMs:u?u:S};S=[];S.push(new nc({}));H=[];H.push(new u_(w.B));H.push(new UHR(w.B));f&&S.push(new F2({}));h.push(P8(w,M,X,Z,U,S,H))}return h}; P8=function(w,M,P,u,X,U,f){U=U===void 0?[]:U;var h=ww(w.L.get(),"SLOT_TYPE_AD_BREAK_REQUEST");f||(f=[],u.hq&&u.hq.start!==u.Tx.start&&f.push(new Ow(w.B,P,new NB(u.hq.start,u.Tx.start),!1)),f.push(new Ow(w.B,P,new NB(u.Tx.start,u.Tx.end),u.CZ)));u={getAdBreakUrl:M.getAdBreakUrl,G2:u.Tx.start,eB:u.Tx.end,cueProcessedMs:u.cueProcessedMs};M=new WE(w.B,h);U=[new on(u)].concat(g.L(U));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:f, slotExpirationTriggers:[new PE(w.B,P),new UG(w.B,h),new f8(w.B,h)],w$:"core",clientMetadata:new In(U),adSlotLoggingData:X}}; pkl=function(w,M,P){var u=[];P=g.G(P);for(var X=P.next();!X.done;X=P.next())u.push(Hcz(w,M,X.value));return u}; Hcz=function(w,M,P){return P.triggeringSlotId!=null&&P.triggeringSlotId===w?P.clone(M):P}; XQ2=function(w,M,P,u,X){return F7_(w,M,P,u,X)}; pv_=function(w,M,P,u){var X=ww(w.L.get(),"SLOT_TYPE_IN_PLAYER");return F7_(w,X,M,P,u)}; F7_=function(w,M,P,u,X){var U=new AQ(w.B,P),f=[new $7(w.B,M)];w=[new UG(w.B,M),new PE(w.B,u)];return{slotId:M,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:U,slotFulfillmentTriggers:f,slotExpirationTriggers:w,w$:"core",clientMetadata:new In([new m7(X({slotId:M,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w$:"core",slotEntryTrigger:U,slotFulfillmentTriggers:f,slotExpirationTriggers:w},P))]),adSlotLoggingData:void 0}}; lMu=function(w,M,P,u,X,U){var f=ww(w.L.get(),"SLOT_TYPE_PLAYER_BYTES"),h=ww(w.L.get(),"SLOT_TYPE_IN_PLAYER"),c=QJ(w.L.get(),"LAYOUT_TYPE_SURVEY",h);u=Fx(w,M,P,u);var Z=[new $7(w.B,f)];P=[new UG(w.B,f),new PE(w.B,P),new Ke(w.B,c)];if(u instanceof x)return u;h=U({slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,w$:"core",slotEntryTrigger:u,slotFulfillmentTriggers:Z,slotExpirationTriggers:P},{slotId:h,layoutId:c});U=h.JU;h=h.fG;return[{slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:dZ(w,M,f,u),slotFulfillmentTriggers:ls(w,M,f,Z),slotExpirationTriggers:P,w$:"core",clientMetadata:new In([new m7(U),new QH(LY(M)),new Rn({SX:w.SX(M)})]),adSlotLoggingData:X},h]}; LY=function(w){return w.kind==="AD_PLACEMENT_KIND_START"}; esx=function(w,M,P,u,X){X=X?X:ww(w.L.get(),"SLOT_TYPE_IN_PLAYER");P=new AQ(w.B,P);var U=[new $7(w.B,X)];w=[new PE(w.B,M),new UG(w.B,X)];return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:P,slotFulfillmentTriggers:U,slotExpirationTriggers:w,w$:"core",clientMetadata:new In([new m7(u({slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w$:"core",slotEntryTrigger:P,slotFulfillmentTriggers:U,slotExpirationTriggers:w}))])}}; Bt_=function(w,M,P,u){var X=ww(w.L.get(),"SLOT_TYPE_PLAYER_UNDERLAY");P=new AQ(w.B,P);var U=[new $7(w.B,X)];w=[new PE(w.B,M),new UG(w.B,X)];return{slotId:X,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:P,slotFulfillmentTriggers:U,slotExpirationTriggers:w,w$:"core",clientMetadata:new In([new m7(u({slotId:X,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,w$:"core",slotEntryTrigger:P,slotFulfillmentTriggers:U,slotExpirationTriggers:w}))])}}; DR5=function(w,M,P,u,X,U,f){var h=ww(w.L.get(),"SLOT_TYPE_IN_PLAYER"),c=QJ(w.L.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",h);u=EyM(w,u,U,f,c);if(u instanceof x)return u;f=[new $7(w.B,h)];X=[new PE(w.B,U),new $7(w.B,X),new cE(w.B,X)];P=tf(P,{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w$:"core",slotEntryTrigger:u,slotFulfillmentTriggers:f,slotExpirationTriggers:X});w=w.C.get();U={layoutId:c,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",w$:"core"};M={layoutId:c,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", SL:new Map,layoutExitNormalTriggers:[new pgF(w.B,c,M.durationMs)],layoutExitSkipTriggers:[new ELl(w.B,c,M.durationMs)],eZ:[new FXM(w.B,c)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],w$:"core",clientMetadata:new In([new zr(M)]),Kg:P(U)};return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w$:"core",slotEntryTrigger:u,slotFulfillmentTriggers:f,slotExpirationTriggers:X,clientMetadata:new In([new m7(M)])}}; Zn_=function(w,M,P,u,X,U){M=Fx(w,M,P,u);if(M instanceof x)return M;var f=M instanceof Ow?new ZU4(w.B,P,M.B):null;u=ww(w.L.get(),"SLOT_TYPE_IN_PLAYER");var h=[new $7(w.B,u)];w=[new PE(w.B,P),new UG(w.B,u)];U=U({slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w$:"core",slotEntryTrigger:M,slotFulfillmentTriggers:h,slotExpirationTriggers:w},f);return U instanceof ba?new x(U):{slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:h,slotExpirationTriggers:w, w$:"core",clientMetadata:new In([new m7(U)]),adSlotLoggingData:X}}; hL5=function(w,M,P,u){var X=ww(w.L.get(),"SLOT_TYPE_IN_PLAYER"),U=new vo(w.B,M),f=[new h7(w.B,X)];w=[new PE(w.B,M),new UG(w.B,X)];return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:U,slotFulfillmentTriggers:f,slotExpirationTriggers:w,w$:"core",clientMetadata:new In([new m7(u({slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w$:"core",slotEntryTrigger:U,slotFulfillmentTriggers:f,slotExpirationTriggers:w}))]),adSlotLoggingData:P}}; ct5=function(w,M,P,u){var X=ww(w.L.get(),"SLOT_TYPE_IN_PLAYER");P=new AQ(w.B,P);var U=[new $7(w.B,X)],f=[new UG(w.B,X),new PE(w.B,M)];U={slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w$:"core",slotEntryTrigger:P,slotFulfillmentTriggers:U,slotExpirationTriggers:f};return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:P,slotFulfillmentTriggers:[new $7(w.B,X)],slotExpirationTriggers:[new PE(w.B,M),new UG(w.B,X)],w$:"core",clientMetadata:new In([new m7(u(U))])}}; fEy=function(w,M,P,u,X){var U=ww(w.L.get(),"SLOT_TYPE_IN_PLAYER");P=new Il(w.B,u,P);u=[new $7(w.B,U)];w=[new PE(w.B,M)];return{slotId:U,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:P,slotFulfillmentTriggers:u,slotExpirationTriggers:w,w$:"core",clientMetadata:new In([new m7(X({slotId:U,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w$:"core",slotEntryTrigger:P,slotFulfillmentTriggers:u,slotExpirationTriggers:w}))])}}; MCp=function(w,M,P,u,X,U){var f=ww(w.L.get(),M);return ED(w,f,M,new AQ(w.B,u),[new PE(w.B,P),new UG(w.B,f),new g6(w.B,u,["error"])],X,U)}; iFu=function(w,M,P,u,X,U,f){var h=ww(w.L.get(),M);return ED(w,h,M,new g6(w.B,X,["normal"]),[new PE(w.B,P),new UG(w.B,h),new g6(w.B,u,["error"])],U,f)}; xHR=function(w,M,P,u,X){var U=ww(w.L.get(),M);return ED(w,U,M,new vo(w.B,P),[new PE(w.B,P),new UG(w.B,U)],u,X)}; $CH=function(w,M,P,u,X){P=P?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var U=ww(w.L.get(),P);M=new vo(w.B,M);var f=[new $7(w.B,U)];w=[new UG(w.B,U)];return{slotId:U,slotType:P,slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:f,slotExpirationTriggers:w,w$:"core",clientMetadata:new In([new m7(X({slotId:U,slotType:P,slotPhysicalPosition:1,w$:"core",slotEntryTrigger:M,slotFulfillmentTriggers:f,slotExpirationTriggers:w}))]),adSlotLoggingData:u}}; EDx=function(w,M,P,u){var X=ww(w.L.get(),"SLOT_TYPE_PLAYER_BYTES"),U=new xe(w.B),f=[new h7(w.B,X)];w=[new PE(w.B,M)];return{slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:U,slotFulfillmentTriggers:f,slotExpirationTriggers:w,w$:"core",clientMetadata:new In([new m7(u({slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,w$:"core",slotEntryTrigger:U,slotFulfillmentTriggers:f,slotExpirationTriggers:w})),new F2({})]),adSlotLoggingData:P}}; qsu=function(w,M){return RLz(w.EO.get())?new g6(w.B,M,["normal","error","skipped"]):new g6(w.B,M,["normal"])}; TtH=function(w,M,P,u,X){M=qsu(w,M);w=T2(w,M,P);X=X({slotId:w.slotId,slotType:w.slotType,slotPhysicalPosition:w.slotPhysicalPosition,slotEntryTrigger:w.slotEntryTrigger,slotFulfillmentTriggers:w.slotFulfillmentTriggers,slotExpirationTriggers:w.slotExpirationTriggers,w$:w.w$});return X instanceof x?X:{gH:Object.assign({},w,{clientMetadata:new In([new m7(X.layout)]),adSlotLoggingData:u}),hp:X.hp}}; dRx=function(w,M,P,u,X,U,f){P=YsR(w,M,P,u);if(P instanceof x)return P;f=f({slotId:P.slotId,slotType:P.slotType,slotPhysicalPosition:P.slotPhysicalPosition,slotEntryTrigger:P.slotEntryTrigger,slotFulfillmentTriggers:P.slotFulfillmentTriggers,slotExpirationTriggers:P.slotExpirationTriggers,w$:P.w$});if(f instanceof x)return f;u=[new QH(LY(M)),new m7(f.layout),new Rn({SX:w.SX(M)})];U&&u.push(new dA({}));return{gH:{slotId:P.slotId,slotType:P.slotType,slotPhysicalPosition:P.slotPhysicalPosition,slotEntryTrigger:dZ(w, M,P.slotId,P.slotEntryTrigger),slotFulfillmentTriggers:ls(w,M,P.slotId,P.slotFulfillmentTriggers),slotExpirationTriggers:P.slotExpirationTriggers,w$:P.w$,clientMetadata:new In(u),adSlotLoggingData:X},hp:f.hp}}; dZ=function(w,M,P,u){return w.EO.get().UE(LY(M))?new Rl(w.B,P):u}; ls=function(w,M,P,u){return w.EO.get().UE(LY(M))?[new h7(w.B,P)]:u}; T2=function(w,M,P){var u=ww(w.L.get(),"SLOT_TYPE_PLAYER_BYTES"),X=[new $7(w.B,u)];w=[new UG(w.B,u),new PE(w.B,P)];return{slotId:u,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:X,slotExpirationTriggers:w,w$:"core"}}; YsR=function(w,M,P,u){M=Fx(w,M,P,u);return M instanceof x?M:T2(w,M,P)}; fMU=function(w,M,P,u,X,U){var f=ww(w.L.get(),"SLOT_TYPE_FORECASTING");M=Fx(w,M,P,u);if(M instanceof x)return M;u=[new $7(w.B,f)];w=[new UG(w.B,f),new PE(w.B,P)];return{slotId:f,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:u,slotExpirationTriggers:w,w$:"core",clientMetadata:new In([new m7(U({slotId:f,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,w$:"core",slotEntryTrigger:M,slotFulfillmentTriggers:u,slotExpirationTriggers:w}))]),adSlotLoggingData:X}}; NAM=function(w,M,P,u,X){var U=!M.hideCueRangeMarker;switch(M.kind){case "AD_PLACEMENT_KIND_START":return new vo(w.B,P);case "AD_PLACEMENT_KIND_MILLISECONDS":return w=rcM(M,u),w instanceof x?w:X(w.Tx,U);case "AD_PLACEMENT_KIND_END":return new bP(w.B,P,U);default:return new x("Cannot construct entry trigger",{kind:M.kind})}}; EyM=function(w,M,P,u,X){return NAM(w,M,P,u,function(U,f){return new cc5(w.B,P,U,f,X)})}; Fx=function(w,M,P,u){return NAM(w,M,P,u,function(X,U){return new Ow(w.B,P,X,U)})}; ED=function(w,M,P,u,X,U,f){w=[new h7(w.B,M)];return{slotId:M,slotType:P,slotPhysicalPosition:1,slotEntryTrigger:u,slotFulfillmentTriggers:w,slotExpirationTriggers:X,w$:"core",clientMetadata:new In([new m7(f({slotId:M,slotType:P,slotPhysicalPosition:1,w$:"core",slotEntryTrigger:u,slotFulfillmentTriggers:w,slotExpirationTriggers:X}))]),adSlotLoggingData:U}}; N1=function(w,M){g.v.call(this);this.EO=w;this.B=M;this.eventCount=0}; V5=function(w,M,P,u){N1.call(this,w,M);this.EO=w;this.D3=P;this.context=u}; mY=function(){this.B=new Map}; oJ=function(w){this.B="pending";this.L=[];this.C=[];try{w(this.X.bind(this),this.reject.bind(this))}catch(M){this.reject(M)}}; Vn_=function(){var w,M;return{Zz:new oJ(function(P,u){w=P;M=u}), resolve:w,reject:M}}; Do=function(w){return Gi(w)?w:y5(w)?new oJ(function(M,P){w.then(M,P)}):new oJ(function(M){M(w)})}; q1=function(w){return new oJ(function(M,P){P(w)})}; zi=function(w){try{return Do(w())}catch(M){return q1(M)}}; dE=function(w,M,P){var u=Vn_(),X=u.Zz,U=u.resolve,f=u.reject;w.L.push(function(h){if(M)try{var c=M(h);U(c)}catch(Z){f(Z)}else U(h)}); w.C.push(function(h){if(P)try{var c=P(h);U(c)}catch(Z){f(Z)}else f(h)}); Ti(w);return X}; lF=function(w,M){return dE(w,void 0,M)}; mfy=function(w,M){dE(w,function(P){return dE(Do(M()),function(){return P})},function(P){return dE(Do(M()),function(){return q1(P)})})}; Ti=function(w){if(w.B==="fulfilled"){var M=w.L;w.L=[];w.C=[];M=g.G(M);for(var P=M.next();!P.done;P=M.next())P=P.value,P(w.result)}else if(w.B==="rejected")for(M=w.C,w.L=[],w.C=[],M=g.G(M),P=M.next();!P.done;P=M.next())P=P.value,P(w.error)}; Lm=function(w,M){return oyl(M.call(w))}; eb=function(w){return function P(){return s1(P,function(u){if(u.L==1)return g.q_(u,2),g.B(u,{Zz:Do(w)},4);if(u.L!=2)return u.return(u.B);g.B5(u);return g.Qx(u,0)})}()}; oyl=function(w){return zi(function(){return B2(w,w.next())})}; B2=function(w,M){return M.done?Do(M.value):lF(dE(M.value.Zz,function(P){return B2(w,w.next(P))}),function(P){return B2(w,w.throw(P))})}; Q5=function(w,M){if(w.length===0)return Do(NaN);var P=Vn_(),u=P.Zz,X=P.resolve,U=w.length;w=g.G(w.entries());var f=w.next();for(P={};!f.done;P={lz:void 0},f=w.next()){var h=g.G(f.value);f=h.next().value;h=h.next().value;P.lz=f;mfy(h,function(c){return function(){u.B==="pending"&&(GrU(M)&&M(c.lz)&&u.B==="pending"?X(c.lz):(--U,U===0&&X(NaN)))}}(P))}return u}; kT=function(w){return w.map(function(M){return Do(M)})}; nm=function(w){var M=w.hours||0;var P=w.minutes||0,u=w.seconds||0;M=u+P*60+M*3600+(w.days||0)*86400+(w.weeks||0)*604800+(w.months||0)*2629800+(w.years||0)*31557600;M<=0?M={hours:0,minutes:0,seconds:0}:(w=M,M=Math.floor(w/3600),w%=3600,P=Math.floor(w/60),u=Math.floor(w%60),M={hours:M,minutes:P,seconds:u});var X=M.hours===void 0?0:M.hours;P=M.minutes===void 0?0:M.minutes;w=M.seconds===void 0?0:M.seconds;u=X>0;M=[];if(u){X=(new Intl.NumberFormat("en-u-nu-latn")).format(X);var U=["fr"],f="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(" "); X="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(RJ)?X.replace(",","\u00a0"):U.includes(RJ)?X.replace(",","\u202f"):f.includes(RJ)?X.replace(",","."):X;M.push(X)}u=u===void 0?!1:u;P=(["af","be","lt"].includes(RJ)||u)&&P<10?yfz().format(P):(new Intl.NumberFormat("en-u-nu-latn")).format(P);M.push(P);P=yfz().format(w);M.push(P);P=":";"da fi id si sr sr-Latn".split(" ").includes(RJ)&&(P=".");return M.join(P)}; yfz=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; Dfy=function(w,M){var P,u;w=((P=w.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(u=P.videoAuthorizationToken)==null?void 0:u.credentialTransferTokens)||[];for(P=0;PM;w=P}else w=!1;return w}; g.wi=function(w,M){return w.GJ+"timedtext_video?ref=player&v="+M.videoId}; g.IgU=function(w){var M=this;this.videoData=w;w={};this.B=(w.c1a=function(){var P=[];if(g.OD.isInitialized()){var u="";M.videoData&&M.videoData.eS&&(u=M.videoData.eS+("&r1b="+M.videoData.clientPlaybackNonce));var X={};u=(X.atr_challenge=u,X);Tv("bg_v",void 0,"player_att");(u=bcy(u))?(Tv("bg_s",void 0,"player_att"),P.push("r1a="+u)):(Tv("bg_e",void 0,"player_att"),P.push("r1c=2"))}else Tv("bg_e",void 0,"player_att"),window.trayride||window.botguard?P.push("r1c=1"):P.push("r1c=4");P.push("r1d="+g.OD.getState()); return P.join("&")},w.c6a=function(P){return"r6a="+(Number(P.c)^rg())},w.c6b=function(P){return"r6b="+(Number(P.c)^Number(g.AR("CATSTAT",0)))},w); this.videoData&&this.videoData.eS?this.pX=OK(this.videoData.eS):this.pX={}}; g.Afy=function(w){if(w.videoData&&w.videoData.eS){for(var M=[w.videoData.eS],P=g.G(Object.keys(w.B)),u=P.next();!u.done;u=P.next())u=u.value,w.pX[u]&&w.B[u]&&(u=w.B[u](w.pX))&&M.push(u);return M.join("&")}return null}; g.iW=function(w,M){K7_(w,{PCu:g.Oh(M.experiments,"bg_vm_reinit_threshold"),cspNonce:M.cspNonce,GJ:M.GJ||""})}; gyU=function(){var w=XMLHttpRequest.prototype.fetch;return!!w&&w.length===3}; Jfp=function(w){w=w[W[15]](W[13]);Mh[W[33]](w,56);Mh[W[53]](w,2);Mh[W[33]](w,71);Mh[W[53]](w,3);Mh[W[33]](w,66);return w[W[58]](W[13])}; Cau=function(w,M){At(w,2,M.yh,PL,3);At(w,3,M.innertubeRequest,rf2,3);LF(w,4,M.onesieUstreamerConfig);LF(w,9,M.E$);At(w,10,M.eO,uW,3);At(w,15,M.reloadPlaybackParams,jn4,3)}; xfy=function(w,M){At(w,1,M.formatId,Xt,3);dt(w,2,M.startTimeMs);dt(w,3,M.durationMs);dt(w,4,M.Vq);dt(w,5,M.vv);At(w,9,M.kgk,tn4,3);At(w,11,M.FVL,$n,1);At(w,12,M.Vx,$n,1)}; Ocp=function(w,M){eC(w,1,M.videoId);dt(w,2,M.lmt)}; tn4=function(w,M){if(M.MJ)for(var P=0;P>31));dt(w,16,M.eW);dt(w,17,M.detailedNetworkType);dt(w,18,M.Ix);dt(w,19,M.LR);dt(w,21,M.LF0);dt(w,23,M.Vl);dt(w,28,M.bK);dt(w,29,M.k0s);dt(w,34,M.visibility);P=M.playbackRate;if(P!==void 0){var u=new ArrayBuffer(4);(new Float32Array(u))[0]=P;P=(new Uint32Array(u))[0];if(P!==void 0)for(Tz(w,285),zz(w,4),u=0;u<4;)w.view.setUint8(w.pos,P&255),P>>=8,w.pos+=1,u+=1}dt(w,36,M.ox); At(w,38,M.mediaCapabilities,Pg2,3);dt(w,39,M.FF0);dt(w,40,M.Lq);dt(w,44,M.playerState);lV(w,46,M.Vw);dt(w,48,M.cH);dt(w,50,M.NG);dt(w,51,M.Rp);dt(w,54,M.Td);if(M.xG)for(P=0;P>31));eC(w,2,M.message)}; ZDR=function(w,M){dt(w,1,M.clientState);At(w,2,M.pRu,hdU,1)}; Wxl=function(w,M){LF(w,1,M.h3s);At(w,2,M.DfN,cPp,3);At(w,3,M.coldStartInfo,ZDR,3)}; f$4=function(w,M){dt(w,1,M.type);LF(w,2,M.value)}; UYl=function(w,M){eC(w,1,M.hl);eC(w,12,M.deviceMake);eC(w,13,M.deviceModel);dt(w,16,M.clientName);eC(w,17,M.clientVersion);eC(w,18,M.osName);eC(w,19,M.osVersion)}; SBM=function(w,M){eC(w,1,M.name);eC(w,2,M.value)}; HDl=function(w,M){eC(w,1,M.url);if(M.TK)for(var P=0;P0&&!(rCy()>(0,g.G$)()-w*1E3))return 0;w=g.dH("yt-player-quality");if(typeof w==="string"){if(w=g.Go[w],w>0)return w}else if(w instanceof Object)return w.quality;return 0}; ZR=function(){var w=g.dH("yt-player-proxima-pref");return w==null?null:w}; xYp=function(){var w=g.dH("yt-player-quality");if(w instanceof Object&&w.quality&&w.previousQuality){if(w.quality>w.previousQuality)return 1;if(w.quality0&&M[0]?w.getAutoplayPolicy(M[0]):w.getAutoplayPolicy("mediaelement");if(u32[P])return u32[P]}}catch(u){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; VR=function(w){return w.kD||w.cZ||w.mutedAutoplay}; XZ2=function(w,M){return VR(w)?M!==1&&M!==2&&M!==0?"AUTOPLAY_STATUS_UNAVAILABLE":w.jF?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; $LF=function(w,M,P){var u=M.N();w.thirdParty||(w.thirdParty={});u.ancestorOrigins&&(w.thirdParty.embeddedPlayerContext=Object.assign({},w.thirdParty.embeddedPlayerContext,{ancestorOrigins:u.ancestorOrigins}));u.D("embeds_enable_autoplay_and_visibility_signals")&&(u.At!=null&&(w.thirdParty.embeddedPlayerContext=Object.assign({},w.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(u.At)})),u.f$&&(w.thirdParty.embeddedPlayerContext=Object.assign({},w.thirdParty.embeddedPlayerContext,{visibilityFractionSource:u.f$})), w.thirdParty.embeddedPlayerContext=Object.assign({},w.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Nh(),autoplayIntended:VR(M),autoplayStatus:XZ2(M,P)}))}; ULM=function(w){var M=[];w=g.G(w.split(","));for(var P=w.next();!P.done;P=w.next()){var u=P.value;u&&((P=u.startsWith("!"))&&(u=u.substring(1)),u=u.split("-"),u.length<3||M.push({Kf:u[0],platform:u[1],deviceVersion:u[2],A6:P}))}return M}; hpy=function(w){return ULM(w).map(function(M){return{deviceInterface:ffu[WeU[M.Kf]]||0,deviceVersion:M.deviceVersion||"",isSleeping:M.A6}})}; g.mj=function(w,M){this.id=w;this.Y2=M;this.captionTracks=[];this.C=this.X=null;this.xtags="";this.G=!1;this.B=null;this.L="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";w=this.Y2.id.split(".");w.length>1&&(this.G=w[1]==="2")}; oT=function(w,M,P,u,X){this.L=w;this.B=M;this.C=P;this.reason=u;this.A9=X===void 0?0:X}; g.G8=function(w,M,P,u){return new oT(g.Go[w]||0,g.Go[M]||0,P,u)}; DR=function(w){if(yR&&w.A9)return!1;var M=g.Go.auto;return w.L===M&&w.B===M}; Yn=function(w){return qh[w.B||w.L]||"auto"}; cJ5=function(w,M){M=g.Go[M];return w.L<=M&&(!w.B||w.B>=M)}; z8=function(w){return"["+w.L+"-"+w.B+", override: "+(w.C+", reason: "+w.reason+"]")}; T8=function(w,M,P){this.videoInfos=w;this.B=M;this.audioTracks=[];if(this.B){w=new Set;P==null||P({ainfolen:this.B.length});M=g.G(this.B);for(var u=M.next();!u.done;u=M.next())if(u=u.value,!u.Y2||w.has(u.Y2.id)){var X=void 0,U=void 0,f=void 0;(f=P)==null||f({atkerr:!!u.Y2,itag:u.itag,xtag:u.B,lang:((X=u.Y2)==null?void 0:X.name)||"",langid:((U=u.Y2)==null?void 0:U.id)||""})}else X=new g.mj(u.id,u.Y2),w.add(u.Y2.id),this.audioTracks.push(X);P==null||P({atklen:this.audioTracks.length})}}; di=function(){g.v.apply(this,arguments);this.B=null}; pZ1=function(w,M,P,u,X,U,f){if(w.B)return w.B;var h={},c=new Set,Z={};if(lW(u)){for(var S in u.B)u.B.hasOwnProperty(S)&&(w=u.B[S],Z[w.info.zk]=[w.info]);return Z}S=ZNu(M,u,h);U&&X({aftsrt:Lr(S)});for(var H={},p=g.G(Object.keys(S)),F=p.next();!F.done;F=p.next()){F=F.value;for(var E=g.G(S[F]),y=E.next();!y.done;y=E.next()){y=y.value;var q=y.itag,d=void 0,l=F+"_"+(((d=y.video)==null?void 0:d.fps)||0);H.hasOwnProperty(l)?H[l]===!0?Z[F].push(y):h[q]=H[l]:(d=eB(M,y,P,u.isLive,c),d!==!0?(f.add(F),h[q]=d, d==="disablevp9hfr"&&(H[l]="disablevp9hfr")):(Z[F]=Z[F]||[],Z[F].push(y),H[l]=!0))}}U&&X({bfflt:Lr(Z)});for(var e in Z)Z.hasOwnProperty(e)&&(u=e,Z[u]&&Z[u][0].VL()&&(Z[u]=Z[u],Z[u]=Sd4(M,Z[u],h),Z[u]=HN5(Z[u],h)));U&&Object.keys(h).length>0&&X({rjr:WU(h)});M=g.G(c.values());for(u=M.next();!u.done;u=M.next())(u=P.X.get(u.value))&&--u.oU;U&&X({aftflt:Lr(Z)});w.B=g.iA(Z,function(R){return!!R.length}); return w.B}; EC2=function(w,M,P,u,X,U,f,h){h=h===void 0?!1:h;if(M.DX&&f&&f.length>1&&!(M.yq>0||M.V)){for(var c=M.L||!!X,Z=c&&M.GE?U:void 0,S=ZNu(M,u),H=[],p=[],F={},E=0;E0&&p&&X&&(S=[f,P],e=X.concat(p).filter(function(R){return R})); if(e.length&&!M.P9){kn(e,S);if(c){c=[];M=g.G(e);for(u=M.next();!u.done;u=M.next())c.push(u.value.itag);U({hbdfmt:c.join(".")})}return TZ(new T8(e,w,Z))}e=zpH(M);e=g.Nj(e,h);if(!e){if(H[f])return U=H[f],kn(U),TZ(new T8(U,w,Z));c&&U({novideo:1});return zZ()}M.sb&&(e==="1"||e==="1h")&&H[P]&&(f=RT(H[e]),S=RT(H[P]),S>f?e=P:S===f&&Tw_(H[P])&&(e=P));e==="9"&&H.h&&RT(H.h)>RT(H["9"])&&(e="h");M.bW&&u.isLive&&e==="("&&H.H&&RT(H["("])<1440&&(e="H");c&&U({vfmly:nr(e)});M=H[e];if(!M.length)return c&&U({novfmly:nr(e)}), zZ();kn(M);return TZ(new T8(M,w,Z))}; VTF=function(w,M){var P=!(!w.m&&!w.M),u=!(!w.mac3&&!w.MAC3),X=!(!w.meac3&&!w.MEAC3);w=!(!w.i&&!w.I);M.SZ=w;return P||u||X||w}; Tw_=function(w){w=g.G(w);for(var M=w.next();!M.done;M=w.next())if(M=M.value,M.itag&&dLH.has(M.itag))return!0;return!1}; oCM=function(w){w=g.G(w);for(var M=w.next();!M.done;M=w.next())if(M.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; nr=function(w){switch(w){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return w}}; Lr=function(w){var M=[],P;for(P in w)if(w.hasOwnProperty(P)){var u=P;M.push(nr(u));u=g.G(w[u]);for(var X=u.next();!X.done;X=u.next())M.push(X.value.itag)}return M.join(".")}; Nwx=function(w,M,P,u,X,U){var f={},h={};g.wd(M,function(c,Z){c=c.filter(function(S){var H=S.itag;if(!S.Ks)return h[H]="noenc",!1;if(U.M7&&S.zk==="(h"&&U.Z3)return h[H]="lichdr",!1;if(!w.G&&S.zk==="1e")return h[H]="noav1enc",!1;if(S.zk==="("||S.zk==="(h"){if(w.C&&P&&P.flavor==="widevine"){var p=S.mimeType+"; experimental=allowed";(p=!!S.Ks[P.flavor]&&!!P.B[p])||(h[H]=S.Ks[P.flavor]?"unspt":"noflv");return p}if(!vL(w,sq.CRYPTOBLOCKFORMAT)&&!w.Cu||w.mN)return h[H]=w.mN?"disvp":"vpsub",!1}return P&&S.Ks[P.flavor]&& P.B[S.mimeType]?!0:(h[H]=P?S.Ks[P.flavor]?"unspt":"noflv":"nosys",!1)}); c.length&&(f[Z]=c)}); u&&Object.entries(h).length&&X({rjr:WU(h)});return f}; HN5=function(w,M){var P=VM(w,function(u,X){return X.video.fps>32?Math.min(u,X.video.width):u},Infinity); P32||u.video.widthw.K)return"max"+w.K;if(w.jL&&M.zk==="h"&&M.video&&M.video.qualityOrdinal>1080)return"blkhigh264";if(M.zk==="(h"&&!P.j)return"enchdr";if((u===void 0?0:u)&&BU(M)&&!w.xu)return"blk51live";if((M.zk==="MAC3"||M.zk==="mac3")&&!w.X)return"blkac3";if((M.zk==="MEAC3"||M.zk==="meac3")&&!w.G)return"blkeac3";if(M.zk==="M"||M.zk==="m")return"blkaac51"; if((M.zk==="so"||M.zk==="sa")&&!w.B3)return"blkamb";if(!w.M7&&lIp(M)&&(!P.G||M.zk!=="1e"))return"cbc";if(!P.G&&lIp(M)&&M.zk==="1e")return"cbcav1";if((M.zk==="i"||M.zk==="I")&&!w.hD)return"blkiamf";var U;if(w.fg&&((U=M.audio)==null?void 0:U.L)===!0)return"blkvbcabr";var f,h;if(w.OO&&(M.zk==="1"||M.zk==="1h"||P.G&&M.zk==="1e")&&((f=M.video)==null?0:f.qualityOrdinal)&&((h=M.video)==null?void 0:h.qualityOrdinal)>w.OO)return"av1cap";u=P.X.get(M.zk);if(!w.cj&&u&&u.oU>0)return X.add(M.zk),"byerr";var c; if((c=M.video)==null?0:c.fps>32){if(!P.ys&&!vL(P,sq.FRAMERATE))return"capHfr";if(w.Yu&&M.video.qualityOrdinal>=4320)return"blk8khfr";if(To(M)&&w.DO&&M.Ks&&M.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(w.A9&&M.A9>w.A9)return"ratecap";w=lfM(P,M);return w!==!0?w:!0}; kn=function(w,M){M=M===void 0?[]:M;g.r3(w,function(P,u){var X=u.A9-P.A9;if(!P.VL()||!u.VL())return X;var U=u.video.height*u.video.width-P.video.height*P.video.width;!U&&M&&M.length>0&&(P=M.indexOf(P.zk)+1,u=M.indexOf(u.zk)+1,U=P===0||u===0?u||-1:P-u);U||(U=X);return U})}; g.Kr=function(w,M){this[W[0]]=w;this[W[62]]=M===void 0?!1:M;this[W[59]]=this[W[1]]=this[W[16]]=W[13];this[W[5]]={};this[W[8]]=W[13]}; IT=function(w){bW(w);return w[W[59]]}; AN=function(w){return w[W[0]]?w[W[0]][W[4]](W[12]):w[W[16]]===W[12]}; Leu=function(w){bW(w);return g.uA(w[W[5]],function(M){return M!==null})}; gi=function(w){bW(w);var M=decodeURIComponent(w[W[44]](W[6])||W[13])[W[15]](W[40]);return w[W[1]]===W[36]&&M[W[3]]>1&&!!M[1]}; JN=function(w,M){M=M===void 0?!1:M;bW(w);if(w[W[1]]!==W[36]){var P=w[W[51]]();P[W[24]](W[75],W[21]);return P}var u=w[W[18]]();P=new g.ic(u);var X=w[W[44]](W[37]),U=decodeURIComponent(w[W[44]](W[6])||W[13])[W[15]](W[40]);if(X&&U&&U[W[3]]>1&&U[1])return u=P.B,w=u[W[48]](/^[^.]*/,W[13]),g.PG(P,(u[W[14]](W[17])===0?W[17]:W[29])+X+W[43]+U[1]+w),P=new g.Kr(P[W[47]]()),P[W[24]](W[9],W[21]),P;if(M)return P=w[W[51]](),P[W[24]](W[9],W[21]),P;X=P.B[W[67]](W[7]);P.B[W[67]](W[65])?(g.PG(P,W[49]),u=P[W[47]]()): P.B[W[67]](W[22])?(g.PG(P,W[73]),u=P[W[47]]()):(P=mU1(u),nD(P)&&(u=P));P=new g.Kr(u);P[W[24]](W[20],W[21]);X&&P[W[24]](W[30],W[69]);return P}; bW=function(w){if(w[W[0]]){if(!(nD(w[W[0]])||w[W[0]][W[4]](W[12])||w[W[0]][W[4]](W[76])||w[W[0]][W[4]](W[64])))throw new g.bK(W[46],w[W[0]]);var M=g.hK(w[W[0]]);w[W[16]]=M.G;w[W[59]]=M.B+(M.C!=null?W[86]+M.C:W[13]);var P=M.L;if(P[W[4]](W[36]))w[W[1]]=W[36],P=P[W[41]](14);else if(P[W[4]](W[19]))w[W[1]]=W[19],P=P[W[41]](13);else if(P[W[4]](W[66])){var u=P[W[14]](W[70],12),X=P[W[14]](W[70],u+1);u>0&&X>0?(w[W[1]]=P[W[41]](0,X),P=P[W[41]](X+1)):(w[W[1]]=P,P=W[13])}else w[W[1]]=P,P=W[13];u=w[W[5]];w[W[5]]= ep5(P);Object[W[25]](w[W[5]],BwF(M.X.toString()));Object[W[25]](w[W[5]],u);w[W[5]][W[71]]===W[56]&&(delete w[W[5]][W[71]],w[W[1]]+=W[81]);w[W[0]]=W[13];w[W[8]]=W[13];w[W[62]]&&(bW(w),M=w[W[5]][W[42]]||null)&&(M=QiM[0](M),w[W[24]](W[42],M))}}; k55=function(w){bW(w);var M=w[W[16]]+(w[W[16]]?W[50]:W[54])+w[W[59]]+w[W[1]];if(Leu(w)){var P=[];g.wd(w[W[5]],function(u,X){u!==null&&P[W[26]](X+W[39]+u)}); M+=W[38]+P[W[58]](W[34])}return M}; ep5=function(w){w=w[W[15]](W[70]);var M=0;w[0]||M++;for(var P={};M0?Rpu(M,u[W[41]](0,X),u[W[41]](X+1)):u&&(M[u]=W[13])}return M}; Rpu=function(w,M,P){if(M===W[45]){var u;(u=P[W[14]](W[39]))>=0?(M=W[80]+P[W[41]](0,u),P=P[W[41]](u+1)):(u=P[W[14]](W[68]))>=0&&(M=W[80]+P[W[41]](0,u),P=P[W[41]](u+3))}w[M]=P}; ri=function(w){var M=g.A(w,nC1)||w[W[63]];w={TY:!1,Te:W[13],Ky:W[13],s:W[13]};if(!M)return w;M=OK(M);w[W[35]]=!0;w[W[79]]=M[W[8]];w[W[32]]=M[W[78]];w[W[57]]=M[W[57]];return w}; jB=function(w,M,P,u,X,U,f,h,c){this.Ku=w;this.startTime=M;this.duration=P;this.ingestionTime=u;this.sourceURL=X;this.FP=c;this.endTime=M+P;this.B=f||0;this.range=U||null;this.pending=h||!1;this.FP=c||null}; g.Cr=function(){this.segments=[];this.B=null;this.L=!0;this.C=""}; vCy=function(w,M){if(M>w.T5())w.segments=[];else{var P=EE(w.segments,function(u){return u.Ku>=M},w); P>0&&w.segments.splice(0,P)}}; tN=function(w,M,P,u,X){X=X===void 0?!1:X;this.data=w;this.offset=M;this.size=P;this.type=u;this.B=(this.L=X)?0:8;this.dataOffset=this.offset+this.B}; xn=function(w){var M=w.data.getUint8(w.offset+w.B);w.B+=1;return M}; Oq=function(w){var M=w.data.getUint16(w.offset+w.B);w.B+=2;return M}; aT=function(w){var M=w.data.getInt32(w.offset+w.B);w.B+=4;return M}; wU=function(w){var M=w.data.getUint32(w.offset+w.B);w.B+=4;return M}; iQ=function(w){var M=w.data;var P=w.offset+w.B;M=M.getUint32(P)*4294967296+M.getUint32(P+4);w.B+=8;return M}; Md=function(w,M){M=M===void 0?NaN:M;if(isNaN(M))var P=w.size;else for(P=w.B;P1?Math.ceil(X*M):Math.floor(X*M))}w.skip(1);P=xn(w)<<16|Oq(w);if(P&256){u=P&1;X=P&4;var U=P&512,f=P&1024,h=P&2048;P=wU(w);u&&w.skip(4);X&&w.skip(4);u=(U?4:0)+(f?4:0)+(h?4:0);for(X=0;X1?Math.ceil(f*M):Math.floor(f*M)),w.skip(u)}}}; h3=function(w){w=new DataView(w.buffer,w.byteOffset,w.byteLength);return(w=g.fw(w,0,1836476516))?g.Wf(w):NaN}; xLz=function(w){var M=g.fw(w,0,1937011556);if(!M)return null;M=cf(w,M.dataOffset+8,1635148593)||cf(w,M.dataOffset+8,1635135537);if(!M)return null;var P=cf(w,M.dataOffset+78,1936995172),u=cf(w,M.dataOffset+78,1937126244);if(!u)return null;M=null;if(P)switch(P.skip(4),xn(P)){default:M=0;break;case 1:M=2;break;case 2:M=1;break;case 3:M=255}var X=P=null,U=null;if(u=cf(w,u.dataOffset,1886547818)){var f=cf(w,u.dataOffset,1886546020),h=cf(w,u.dataOffset,2037673328);if(!h&&(h=cf(w,u.dataOffset,1836279920), !h))return null;f&&(f.skip(4),P=aT(f)/65536,U=aT(f)/65536,X=aT(f)/65536);w=si4(h);w=new DataView(w.buffer,w.byteOffset+8,w.byteLength-8);return new CM2(M,P,U,X,w)}return null}; cf=function(w,M,P){for(;ZC(w,M);){var u=S3(w,M);if(u.type===P)return u;M+=u.size}return null}; g.fw=function(w,M,P){for(;ZC(w,M);){var u=S3(w,M);if(u.type===P)return u;M=Hf(u.type)?M+8:M+u.size}return null}; g.pw=function(w){if(w.data.getUint8(w.dataOffset)){var M=w.data;w=w.dataOffset+4;M=M.getUint32(w)*4294967296+M.getUint32(w+4)}else M=w.data.getUint32(w.dataOffset+4);return M}; S3=function(w,M){var P=w.getUint32(M),u=w.getUint32(M+4);return new tN(w,M,P,u)}; g.Wf=function(w){var M=w.data.getUint8(w.dataOffset)?20:12;return w.data.getUint32(w.dataOffset+M)}; ONu=function(w){w=new tN(w.data,w.offset,w.size,w.type,w.L);var M=xn(w);w.skip(7);var P=wU(w);if(M===0){M=wU(w);var u=wU(w)}else M=iQ(w),u=iQ(w);w.skip(2);for(var X=Oq(w),U=[],f=[],h=0;h122)return!1}return!0}; Hf=function(w){return w===1701082227||w===1836019558||w===1836019574||w===1835297121||w===1835626086||w===1937007212||w===1953653094||w===1953653099||w===1836475768}; afz=function(w){w.skip(4);return{x6O:Md(w,0),value:Md(w,0),timescale:wU(w),hRs:wU(w),cls:wU(w),id:wU(w),AK:Md(w),offset:w.offset}}; g.wUR=function(w){var M=cf(w,0,1701671783);if(!M)return null;var P=afz(M),u=P.x6O;P=U0(P.AK);if(w=cf(w,M.offset+M.size,1701671783))if(w=afz(w),w=U0(w.AK),P&&w){M=g.G(Object.keys(w));for(var X=M.next();!X.done;X=M.next())X=X.value,P[X]=w[X]}return P?new $c(P,u):null}; FV=function(w,M){for(var P=cf(w,0,M);P;){var u=P;u.type=1936419184;u.data.setUint32(u.offset+4,1936419184);P=cf(w,P.offset+P.size,M)}}; g.E0=function(w,M){for(var P=0,u=[];ZC(w,P);){var X=S3(w,P);X.type===M&&u.push(X);P=Hf(X.type)?P+8:P+X.size}return u}; i35=function(w,M){var P=g.fw(w,0,1937011556),u=g.fw(w,0,1953654136);if(!P||!u||w.getUint32(P.offset+12)>=2)return null;var X=new DataView(M.buffer,M.byteOffset,M.length),U=g.fw(X,0,1937011556);if(!U)return null;M=X.getUint32(U.dataOffset+8);u=X.getUint32(U.dataOffset+12);if(u!==1701733217&&u!==1701733238)return null;u=new KeF(w.byteLength+M);Pf(u,w,0,P.offset+12);u.data.setInt32(u.offset,2);u.offset+=4;Pf(u,w,P.offset+16,P.size-16);Pf(u,X,X.byteOffset+U.dataOffset+8,M);Pf(u,w,P.offset+P.size,w.byteLength- (P.offset+P.size));P=g.G([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(X=P.next();!X.done;X=P.next())X=g.fw(w,0,X.value),u.data.setUint32(X.offset,X.size+M);w=g.fw(u.data,0,1953654136);u.data.setUint32(w.offset+16,2);return u.data}; M1p=function(w){var M=g.fw(w,0,1937011556);if(!M)return null;var P=w.getUint32(M.dataOffset+12);if(P!==1701733217&&P!==1701733238)return null;M=cf(w,M.offset+24+(P===1701733217?28:78),1936289382);if(!M)return null;P=cf(w,M.offset+8,1935894637);if(!P||w.getUint32(P.offset+12)!==1667392371)return null;M=cf(w,M.offset+8,1935894633);if(!M)return null;M=cf(w,M.offset+8,1952804451);if(!M)return null;P=new Uint8Array(16);for(var u=0;u<16;u++)P[u]=w.getInt8(M.offset+16+u);return P}; Nd=function(w,M){this.B=w;this.pos=0;this.start=M||0}; Ve=function(w){return w.pos>=w.B.byteLength}; DC=function(w,M,P){var u=new Nd(P);if(!m1(u,w))return!1;u=oW(u);if(!Gn(u,M))return!1;for(w=0;M;)M>>>=8,w++;M=u.start+u.pos;var X=ye(u,!0);u=w+(u.start+u.pos-M)+X;u=u>9?P3U(u-9,8):P3U(u-2,1);w=M-w;P.setUint8(w++,236);for(M=0;MP;X++)P=P*256+dU(w),u*=128;return M?P-u:P}; Yc=function(w){var M=ye(w,!0);w.pos+=M}; $p2=function(w){if(!Gn(w,440786851,!0))return null;var M=w.pos;ye(w,!1);var P=ye(w,!0)+w.pos-M;w.pos=M+P;if(!Gn(w,408125543,!1))return null;ye(w,!0);if(!Gn(w,357149030,!0))return null;var u=w.pos;ye(w,!1);var X=ye(w,!0)+w.pos-u;w.pos=u+X;if(!Gn(w,374648427,!0))return null;var U=w.pos;ye(w,!1);var f=ye(w,!0)+w.pos-U,h=new Uint8Array(P+12+X+f),c=new DataView(h.buffer);h.set(new Uint8Array(w.B.buffer,w.B.byteOffset+M,P));c.setUint32(P,408125543);c.setUint32(P+4,33554431);c.setUint32(P+8,4294967295); h.set(new Uint8Array(w.B.buffer,w.B.byteOffset+u,X),P+12);h.set(new Uint8Array(w.B.buffer,w.B.byteOffset+U,f),P+12+X);return h}; lQ=function(w){var M=w.pos;w.pos=0;var P=1E6;m1(w,[408125543,357149030,2807729])&&(P=qd(w));w.pos=M;return P}; Up5=function(w,M){var P=w.pos;w.pos=0;if(w.B.getUint8(w.pos)!==160&&!Lw(w)||!Gn(w,160))return w.pos=P,NaN;ye(w,!0);var u=w.pos;if(!Gn(w,161))return w.pos=P,NaN;ye(w,!0);dU(w);var X=dU(w)<<8|dU(w);w.pos=u;if(!Gn(w,155))return w.pos=P,NaN;u=qd(w);w.pos=P;return(X+u)*M/1E9}; Lw=function(w){if(!fvH(w)||!Gn(w,524531317))return!1;ye(w,!0);return!0}; fvH=function(w){if(w.oO()){if(!Gn(w,408125543))return!1;ye(w,!0)}return!0}; m1=function(w,M){for(var P=0;P0){var u=BwF(M.substring(P+1));g.wd(u,function(X,U){this.set(U,X)},w); M=M.substring(0,P)}M=ep5(M);g.wd(M,function(X,U){this.set(U,X)},w)}; hX1=function(w){var M=w.VO.xa(),P=[];g.wd(w.B,function(X,U){P.push(U+"="+X)}); if(!P.length)return M;var u=P.join("&");w=Leu(w.VO)?"&":"?";return M+w+u}; Bf=function(w,M){var P=new g.Kr(M);(M=P.get("req_id"))&&w.set("req_id",M);g.wd(w.B,function(u,X){P["set"](X,null)}); return P}; cy5=function(){this.X=this.C=this.B=this.timedOut=this.started=this.G=this.L=0}; Qe=function(w){w.G=(0,g.G$)();w.started=0;w.timedOut=0;w.B=0}; kc=function(w,M){var P=w.started+w.B*4;M&&(P+=w.C);P=Math.max(0,P-3);return Math.pow(1.6,P)}; RW=function(w,M){w[M]||(w[M]=new cy5);return w[M]}; nw=function(w){this.S=this.j=this.G=this.C=0;this.V=this.K=!1;this.B=w;this.L=w.clone()}; Z3H=function(w,M,P){if(AN(w.B))return!1;var u=RW(P,IT(w.B));if(u.timedOut<1&&u.B<1)return!1;u=u.timedOut+u.B;w=vf(w,M);P=RW(P,IT(w));return P.timedOut+P.B+01?M=M.wl:(P=RW(P,Kw(w,w.zC(M,P),M)),M=Math.max(w.G,P.timedOut)+M.Yq*(w.C-w.G)+.25*w.j,M=M>3?1E3*Math.pow(1.6,M-3):0);return M===0?!0:w.S+M<(0,g.G$)()}; SI5=function(w,M,P){w.B.set(M,P);w.L.set(M,P);w.X&&w.X.set(M,P)}; H3F=function(w,M,P,u,X){++w.C;M&&++w.G;IT(P.VO).startsWith("redirector.")&&(w.B=w.L.clone(),delete w.X,u.lN&&delete X[IT(w.B)])}; IW=function(w){return w?(w.itag||"")+";"+(w.lmt||0)+";"+(w.xtags||""):""}; A3=function(w,M,P,u){this.initRange=P;this.indexRange=u;this.B=null;this.C=!1;this.K=0;this.X=this.Sc=this.L=null;this.info=M;this.EF=new nw(w)}; gU=function(w,M){this.start=w;this.end=M;this.length=M-w+1}; J3=function(w){w=w.split("-");var M=Number(w[0]),P=Number(w[1]);if(!isNaN(M)&&!isNaN(P)&&w.length===2&&(w=new gU(M,P),!isNaN(w.start)&&!isNaN(w.end)&&!isNaN(w.length)&&w.length>0))return w}; rU=function(w,M){return new gU(w,w+M-1)}; pUx=function(w){return w.end==null?{start:String(w.start)}:{start:String(w.start),end:String(w.end)}}; j3=function(w){if(!w)return new gU(0,0);var M=Number(w.start);w=Number(w.end);if(!isNaN(M)&&!isNaN(w)&&(M=new gU(M,w),M.length>0))return M}; Cw=function(w,M,P,u,X,U,f,h,c,Z,S,H){u=u===void 0?"":u;this.type=w;this.B=M;this.range=P;this.source=u;this.Y6=S;this.clipId=H===void 0?"":H;this.S=[];this.j="";this.Ku=-1;this.B3=this.Lu=0;this.j=u;this.Ku=X>=0?X:-1;this.startTime=U||0;this.duration=f||0;this.L=h||0;this.C=c>=0?c:this.range?this.range.length:NaN;this.G=this.range?this.L+this.C===this.range.length:Z===void 0?!!this.C:Z;this.range?(this.X=this.startTime+this.duration*this.L/this.range.length,this.V=this.duration*this.C/this.range.length, this.K=this.X+this.V):F9u(this)}; F9u=function(w){w.X=w.startTime;w.V=w.duration;w.K=w.X+w.V}; E5u=function(w,M,P){var u=!(!M||M.B!==w.B||M.type!==w.type||M.Ku!==w.Ku);return P?u&&!!M&&(w.range&&M.range?M.range.end===w.range.end:M.range===w.range)&&M.L+M.C===w.L+w.C:u}; t3=function(w){return w.type===1||w.type===2}; xc=function(w){return w.type===3||w.type===6}; O0=function(w,M){return w.B===M.B?w.range&&M.range?w.range.start+w.L+w.C===M.range.start+M.L:w.Ku===M.Ku?w.L+w.C===M.L:w.Ku+1===M.Ku&&M.L===0&&w.G:!1}; V1u=function(w,M){return w.Ku!==M.Ku&&M.Ku!==w.Ku+1||w.type!==M.type?!1:O0(w,M)?!0:Math.abs(w.X-M.X)<=1E-6&&w.Ku===M.Ku?!1:NfH(w,M)}; NfH=function(w,M){return O0(w,M)||Math.abs(w.K-M.X)<=1E-6||w.Ku+1===M.Ku&&M.L===0&&w.G?!0:!1}; aW=function(w){return w.Ku+(w.G?1:0)}; mpx=function(w){w.length===1||g.Nq(w,function(P){return!!P.range}); for(var M=1;M=M.range.start+M.L&&w.range.start+w.L+w.C<=M.range.start+M.L+M.C:w.Ku===M.Ku&&w.L>=M.L&&(w.L+w.C<=M.L+M.C||M.G)}; zXl=function(w,M){return w.B!==M.B?!1:w.type===4&&M.type===3&&w.B.Wv()?(w=w.B.KZ(w),K5(w,function(P){return zXl(P,M)})):w.Ku===M.Ku&&!!M.C&&M.L+M.C>w.L&&M.L+M.C<=w.L+w.C}; iq=function(w,M){var P=M.Ku;w.j="updateWithSegmentInfo";w.Ku=P;if(w.startTime!==M.startTime||w.duration!==M.duration)w.startTime=M.startTime+w.Lu,w.duration=M.duration,F9u(w)}; MJ=function(w,M){var P=this;this.N0=w;this.X=this.B=null;this.G=this.y8=NaN;this.zC=this.requestId=null;this.yH={EXK:function(){return P.range}}; this.EF=w[0].B.EF;this.L=M||"";this.N0[0].range&&this.N0[0].C>0&&(o51(w)?(this.range=mpx(w),this.C=this.range.length):(this.range=this.N0[this.N0.length-1].range,this.C=GoR(w)))}; PC=function(w){return!t3(w.N0[w.N0.length-1])}; uq=function(w){return w.N0[w.N0.length-1].type===4}; g.Xg=function(w,M,P){P=w.zC===null?w.EF.zC(M,P,w.N0[0].type):w.zC;if(w.B){M=P?JN(w.B,M.BC):w.B;var u=new e3(M);u.get("alr")||u.set("alr","yes");w.L&&W95(u,w.L)}else/http[s]?:\/\//.test(w.L)?u=new e3(new g.Kr(w.L)):(u=s0(w.EF,P,M),w.L&&W95(u,w.L));(M=w.range)?u.set("range",M.toString()):w.N0[0].B.jr()&&w.N0.length===1&&w.N0[0].L&&u.set("range",w.N0[0].L+"-");w.requestId&&u.set("req_id",w.requestId);isNaN(w.y8)||u.set("headm",w.y8.toString());isNaN(w.G)||u.set("mffa",w.G+"ms");w.urlParams&&g.wd(w.urlParams, function(X,U){u.set(U,X)}); return u}; TfF=function(w){if(w.range)return w.C;w=w.N0[0];return Math.round(w.V*w.B.info.A9)}; dpx=function(w,M){return Math.max(0,w.N0[0].X-M)}; $Y=function(w,M,P,u,X,U){U=U===void 0?0:U;A3.call(this,w,M,u,void 0);this.G=P;this.n6=U;this.index=X||new g.Cr}; lv1=function(w,M,P,u,X){this.Ku=w;this.startSecs=M;this.Xq=P;this.B=u||NaN;this.L=X||NaN}; UO=function(w,M,P){for(;w;w=w.parentNode)if(w.attributes&&(!P||w.nodeName===P)){var u=w.getAttribute(M);if(u)return u}return""}; fM=function(w,M){for(;w;w=w.parentNode){var P=w.getElementsByTagName(M);if(P.length>0)return P[0]}return null}; L92=function(w){if(!w)return 0;var M=w.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return M?(Number(M[2])|0)*3600+(Number(M[4])|0)*60+(Number(M[6])|0):Number(w)|0}; eX5=function(w){return w.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?w+"Z":w}; WC=function(){this.B=[];this.L=null;this.K=0;this.C=[];this.G=!1;this.j="";this.X=-1}; BfM=function(w){var M=w.C;w.C=[];return M}; Q0y=function(){this.X=[];this.B=null;this.L={};this.C={}}; v5_=function(w,M){var P=[];M=Array.from(M.getElementsByTagName("SegmentTimeline"));M=g.G(M);for(var u=M.next();!u.done;u=M.next()){u=u.value;var X=u.parentNode.parentNode,U=null;X.nodeName==="Period"?U=ko4(w):X.nodeName==="AdaptationSet"?(X=X.getAttribute("id")||X.getAttribute("mimetype")||"",U=RX4(w,X)):X.nodeName==="Representation"&&(X=X.getAttribute("id")||"",U=n5x(w,X));if(U==null)return;U.update(u);g.kV(P,BfM(U))}g.kV(w.X,P);zRM(w.X,function(f){return f.startSecs*1E3+f.B})}; s04=function(w){w.B&&(w.B.B=[]);g.wd(w.L,function(M){M.B=[]}); g.wd(w.C,function(M){M.B=[]})}; ko4=function(w){w.B||(w.B=new WC);return w.B}; RX4=function(w,M){w.L[M]||(w.L[M]=new WC);return w.L[M]}; n5x=function(w,M){w.C[M]||(w.C[M]=new WC);return w.C[M]}; cC=function(w){var M=w===void 0?{}:w;w=M.n6===void 0?0:M.n6;var P=M.WC===void 0?!1:M.WC;var u=M.g8===void 0?0:M.g8;var X=M.yL===void 0?0:M.yL;var U=M.Xc===void 0?Infinity:M.Xc;var f=M.wj===void 0?0:M.wj;var h=M.Gt===void 0?!1:M.Gt;M=M.Zb===void 0?!1:M.Zb;g.Cr.call(this);this.Uj=this.P8=-1;this.F9=w;this.g8=u;this.WC=P;this.yL=X;this.Xc=U;this.wj=f;((this.Gt=h)||isFinite(U)&&this.Xc>0)&&P&&hL&&(this.L=!1,this.C="postLive");this.Zb=M}; ZB=function(w,M){return Ax(w.segments,function(P){return M-P.Ku})}; Sj=function(w,M,P){P=P===void 0?{}:P;$Y.call(this,w,M,"",void 0,void 0,P.n6||0);this.index=new cC(P)}; HC=function(w,M,P){A3.call(this,w,M);this.G=P;w=this.index=new g.Cr;w.L=!1;w.C="d"}; K94=function(w,M,P){var u=w.index.MA(M),X=w.index.getStartTime(M),U=w.index.getDuration(M);P?U=P=0:P=w.info.A9*U;return new MJ([new Cw(3,w,void 0,"otfCreateRequestInfoForSegment",M,X,U,0,P)],u)}; b3R=function(w,M){if(!w.index.isLoaded()){var P=[],u=M.X;M=M.G.split(",").filter(function(S){return S.length>0}); for(var X=0,U=0,f=0,h=/^(\d+)/,c=/r=(\d+)/,Z=0;Z0&&(X.B=Math.min(X.B+f,10),X.L=U);X.B>0?(X.B--,X=!0):X=!1;if(X)typeof u==="function"&&(u=u()),console.log("plyr."+M,u);else{var h;u=((h=j02.get(M))!=null?h:0)+1;j02.set(M,u);u%100===1&&console.warn("plyr","plyr."+M+" is chatty, dropping logs.")}}}; ryF=function(){this.B=10;this.L=Date.now()}; EO=function(w,M){this.info=w;this.L=M;this.B=null;this.X=this.C=-1;this.timestampOffset=0;this.isLocked=this.K=!1;this.G=this.info.B.FV()&&!this.info.L}; g.NJ=function(w){return vQF(w.L)}; C34=function(w,M){M=Math.min(M,w.info.C);var P=w.L.split(M),u=P.Nz;P=new EO(new Cw(w.info.type,w.info.B,w.info.range,w.info.j,w.info.Ku,w.info.startTime,w.info.duration,w.info.L,M,!1,w.info.Y6,w.info.clipId),P.QY);P.X=w.X;P.C=w.C;M=new EO(new Cw(w.info.type,w.info.B,w.info.range,w.info.j,w.info.Ku,w.info.startTime,w.info.duration,w.info.L+M,w.info.C-M,w.info.G,w.info.Y6,w.info.clipId),u);M.X=w.X;M.C=w.C;return[P,M]}; g.VL=function(w,M,P,u){P=P===void 0?!1:P;u=u===void 0?0:u;if(w.isLocked||M.isLocked||!O0(w.info,M.info)||w.info.G)return null;if(u){if(w.L.totalLength+M.L.totalLength>u)return null}else if(P&&(P=w.L,u=M.L,P=!(u.B.length?Rz1(P,u.B[0]):1)),P)return null;P=new Cw(w.info.type,w.info.B,w.info.range,w.info.j,w.info.Ku,w.info.startTime,w.info.duration,w.info.L,w.info.C,w.info.G,w.info.Y6,w.info.clipId);u=M.info;P.C+=u.C;P.range&&(P.V+=u.V);P.K=u.K;P.G=u.G;u=new iV;MR(u,w.L);MR(u,M.L);P=new EO(P,u);P.B!= null&&M.B!=null&&(new g.pM("dash")).B(414627957,"merged slice emsg overridden; prev: "+P.B.zv()+" next: "+M.B.zv());P.B=M.B||w.B;P.C=w.C!==-1?w.C:M.C;P.X=w.X!==-1?w.X:M.X;return P}; g.m$=function(w){g.Q2(w.info.B.info)||w.info.B.info.R7();if(w.C!==-1)return w.C;if(w.B&&AJH(w.B))return w.C=AJH(w.B),w.C;if(g.Q2(w.info.B.info)){var M=g.NJ(w);for(var P=w.info.B.B,u=NaN,X=NaN,U=0;ZC(M,U);){var f=S3(M,U);f.type===1936286840?X=f.data.getUint32(f.dataOffset+8):f.type===1836476516?X=g.Wf(f):f.type===1952867444&&isNaN(u)&&(u=g.pw(f));U=Hf(f.type)?U+8:U+f.size}!X&&P&&(X=h3(P));M=u/X}else M=new Nd(g.NJ(w)),P=w.G?M:new Nd(new DataView(w.info.B.B.buffer)),u=lQ(P),P=M.pos,M.pos=0,Lw(M)?Gn(M, 231)?(u=qd(M)*u/1E9,M.pos=P,M=u):(M.pos=P,M=NaN):(M.pos=P,M=NaN);w.C=M||w.info.X;return w.C}; xp1=function(w,M){w.timestampOffset>0&&(M-=w.timestampOffset);var P=g.m$(w)+M;t1u(w,P);w.timestampOffset=M}; t1u=function(w,M){g.Q2(w.info.B.info)||w.info.B.info.R7();w.C=M;if(g.Q2(w.info.B.info)){var P=g.NJ(w);w=w.info.B.B;for(var u=NaN,X=NaN,U=0;ZC(P,U);){var f=S3(P,U);isNaN(u)&&(f.type===1936286840?u=f.data.getUint32(f.dataOffset+8):f.type===1836476516&&(u=g.Wf(f)));if(f.type===1952867444){!u&&w&&(u=h3(w));var h=g.pw(f);isNaN(X)&&(X=Math.round(M*u)-h);var c=f;h+=X;if(c.data.getUint8(c.dataOffset)){var Z=c.data;c=c.dataOffset+4;Z.setUint32(c,Math.floor(h/4294967296));Z.setUint32(c+4,h&4294967295)}else c.data.setUint32(c.dataOffset+ 4,h)}U=Hf(f.type)?U+8:U+f.size}return!0}P=new Nd(g.NJ(w));w=w.G?P:new Nd(new DataView(w.info.B.B.buffer));u=lQ(w);w=P.pos;P.pos=0;if(Lw(P)&&Gn(P,231))if(X=ye(P,!0),M=Math.floor(M*1E9/u),Math.ceil(Math.log(M)/Math.log(2)/8)>X)M=!1;else{for(u=X-1;u>=0;u--)P.B.setUint8(P.pos+u,M&255),M>>>=8;P.pos=w;M=!0}else M=!1;return M}; Gm=function(w,M){M=M===void 0?!1:M;var P=ob(w);w=M?0:w.info.V;return P||w}; ob=function(w){g.Q2(w.info.B.info)||w.info.B.info.R7();if(w.B&&w.info.type===6)return w.B.n6;if(g.Q2(w.info.B.info)){var M=g.NJ(w);var P=0;M=g.E0(M,1936286840);M=g.G(M);for(var u=M.next();!u.done;u=M.next())u=ONu(u.value),P+=u.Xi[0]/u.timescale;P=P||NaN;if(!(P>=0))a:{P=g.NJ(w);M=w.info.B.B;for(var X=u=0,U=0;ZC(P,u);){var f=S3(P,u);if(f.type===1836476516)X=g.Wf(f);else if(f.type===1836019558){!X&&M&&(X=h3(M));if(!X){P=NaN;break a}var h=cf(f.data,f.dataOffset,1953653094),c=h;h=X;var Z=cf(c.data,c.dataOffset, 1952868452);c=cf(c.data,c.dataOffset,1953658222);var S=aT(Z);aT(Z);S&2&&aT(Z);Z=S&8?aT(Z):0;var H=aT(c),p=H&1;S=H&4;var F=H&256,E=H&512,y=H&1024;H&=2048;var q=wU(c);p&&aT(c);S&&aT(c);for(var d=p=0;d2048?"":M.indexOf("https://")===0?M:""}; Tm=function(w,M,P){M.match(WIR);return w(M,P).then(function(u){var X=g.fSU(u.xhr);return X?Tm(w,X,P):u.xhr})}; ej=function(w,M,P){w=w===void 0?"":w;M=M===void 0?null:M;P=P===void 0?!1:P;g.wC.call(this);var u=this;this.sourceUrl=w;this.isLivePlayback=P;this.OO=this.duration=0;this.isPremiere=this.Gt=this.X=this.isLiveHeadPlayable=this.isLive=this.L=!1;this.Xc=this.yL=0;this.isOtf=this.dK=!1;this.UO=(0,g.G$)();this.B3=Infinity;this.B={};this.C=new Map;this.state=this.Oq=0;this.timeline=null;this.isManifestless=!1;this.mN=[];this.K=null;this.Cu=0;this.G="";this.xu=NaN;this.ys=this.M7=this.timestampOffset=this.j= 0;this.bI=this.rY=NaN;this.GE=0;this.eL=this.S=!1;this.t9=[];this.Yu={};this.Lu=NaN;this.yH={Khu:function(h){dr(u,h)}}; var X;this.jL=(X=M)==null?void 0:X.nu("html5_use_network_error_code_enums");htH=!!M&&M.nu("html5_modern_vp9_mime_type");var U;lq=!((U=M)==null||!U.nu("html5_enable_flush_during_seek"))&&g.KB();var f;LM=!((f=M)==null||!f.nu("html5_enable_reset_audio_decoder"))&&g.KB()}; cO1=function(w){return g.uA(w.B,function(M){return!!M.info.video&&M.info.video.qualityOrdinal>=2160})}; Yd1=function(w){return g.uA(w.B,function(M){return!!M.info.video&&M.info.video.isHdr()})}; BL=function(w){return g.uA(w.B,function(M){return!!M.info.Ks})}; g.ZOU=function(w){return g.uA(w.B,function(M){return sI(M.info.mimeType)})}; SH_=function(w){return g.uA(w.B,function(M){return M.info.video?M.info.video.projectionType==="EQUIRECTANGULAR":!1})}; HO4=function(w){return g.uA(w.B,function(M){return M.info.video?M.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; ppy=function(w){return g.uA(w.B,function(M){return M.info.video?M.info.video.projectionType==="MESH":!1})}; FIU=function(w){return g.uA(w.B,function(M){return M.info.video?M.info.video.stereoLayout===1:!1})}; Em2=function(w){return eR5(w.B,function(M){return M.info.video?M.oD():!0})}; lW=function(w){return g.uA(w.B,function(M){return AN(M.EF.B)})}; dr=function(w,M){w.B[M.info.id]=M;w.C.set(IW(g.R0(M.info,w.dK)),M)}; kY=function(w,M,P){P=P===void 0?0:P;var u=w.mimeType||"",X=w.itag;var U=w.xtags;X=X?X.toString():"";U&&(X+=";"+U);U=X;if(vU(u)){var f=w.width||640;X=w.height||360;var h=w.fps,c=w.qualityLabel,Z=w.colorInfo,S=w.projectionType,H;w.stereoLayout&&(H=Npx[w.stereoLayout]);var p=$VR(w)||void 0;if(Z==null?0:Z.primaries)var F=VIx[Z.primaries]||void 0;f=new y2(f,X,h,S,H,void 0,c,p,F);u=BC(u,f,Y5[w.itag||""]);lq&&(u+="; enableflushduringseek=true");LM&&(u+="; enableresetaudiodecoder=true")}var E;if(n3(u)){var y= w.audioSampleRate;H=w.audioTrack;y=new m9(y?+y:void 0,w.audioChannels,w.spatialAudioType,w.isDrc,w.loudnessDb,w.trackAbsoluteLoudnessLkfs,w.audioQuality||"AUDIO_QUALITY_UNKNOWN",w.isVb);H&&(F=H.displayName,X=H.id,H=H.audioIsDefault,F&&(E=new g.zm(F,X||"",!!H)))}var q;w.captionTrack&&(c=w.captionTrack,H=c.displayName,F=c.vssId,X=c.languageCode,h=c.kind,c=c.id,H&&F&&X&&(q=new uFM(H,F,X,h,w.xtags,c)));H=Number(w.bitrate)/8;F=Number(w.contentLength);X=Number(w.lastModified);c=w.drmFamilies;h=w.type;P= P&&F?F/P:0;w=Number(w.approxDurationMs);if(M&&c){var d={};c=g.G(c);for(Z=c.next();!Z.done;Z=c.next())(Z=QL[Z.value])&&(d[Z]=M[Z])}return new zo(U,u,{audio:y,video:f,Y2:E,Ks:d,A9:H,YO:P,contentLength:F,lastModified:X,captionTrack:q,streamType:h,approxDurationMs:w})}; Rb=function(w,M,P){P=P===void 0?0:P;var u=w.type;var X=w.itag;var U=w.xtags;U&&(X=w.itag+";"+U);if(vU(u)){var f=(w.size||"640x360").split("x");f=new y2(+f[0],+f[1],+w.fps,w.projection_type,+w.stereo_layout,void 0,w.quality_label,w.eotf,w.primaries);u=BC(u,f,Y5[w.itag]);lq&&(u+="; enableflushduringseek=true");LM&&(u+="; enableresetaudiodecoder=true")}var h;if(n3(u)){var c=new m9(+w.audio_sample_rate||void 0,+w.audio_channels||0,w.spatial_audio_type,!!w.drc);w.name&&(h=new g.zm(w.name,w.audio_track_id, w.isDefault==="1"))}var Z;w.caption_display_name&&w.caption_vss_id&&w.caption_language_code&&(Z=new uFM(w.caption_display_name,w.caption_vss_id,w.caption_language_code,w.caption_kind,w.xtags,w.caption_id));U=Number(w.bitrate)/8;var S=Number(w.clen),H=Number(w.lmt);P=P&&S?S/P:0;if(M&&w.drm_families){var p={};for(var F=g.G(w.drm_families.split(",")),E=F.next();!E.done;E=F.next())E=E.value,p[E]=M[E]}return new zo(X,u,{audio:c,video:f,Y2:h,Ks:p,A9:U,YO:P,contentLength:S,lastModified:H,captionTrack:Z, streamType:w.stream_type,approxDurationMs:Number(w.approx_duration_ms)})}; mVy=function(w){return K5(w,function(M){return"FORMAT_STREAM_TYPE_OTF"===M.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; omR=function(w){return K5(w,function(M){return"FORMAT_STREAM_TYPE_OTF"===M.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; GEM=function(w,M){return w.timeline?R$(w.timeline.X,M):w.mN.length?R$(w.mN,M):[]}; nM=function(w,M,P){M=M===void 0?"":M;P=P===void 0?"":P;w=new g.Kr(w,!0);w.set("alr","yes");P&&(P=Jfp(decodeURIComponent(P)),w[W[24]](M,encodeURIComponent(P)));return w}; YH_=function(w,M){var P=UO(M,"id");P=P.replace(":",";");var u=UO(M,"mimeType"),X=UO(M,"codecs");u=X?u+'; codecs="'+X+'"':u;X=Number(UO(M,"bandwidth"))/8;var U=Number(fM(M,"BaseURL").getAttribute(w.G+":contentLength")),f=w.duration&&U?U/w.duration:0;if(vU(u)){var h=Number(UO(M,"width"));var c=Number(UO(M,"height")),Z=Number(UO(M,"frameRate")),S=yO5(UO(M,w.G+":projectionType"));a:switch(UO(M,w.G+":stereoLayout")){case "layout_left_right":var H=1;break a;case "layout_top_bottom":H=2;break a;default:H= 0}h=new y2(h,c,Z,S,H)}if(n3(u)){var p=Number(UO(M,"audioSamplingRate"));var F=Number(UO(M.getElementsByTagName("AudioChannelConfiguration")[0],"value"));c=DV_(UO(M,w.G+":spatialAudioType"));p=new m9(p,F,c);a:{F=UO(M,"lang")||"und";if(c=fM(M,"Role"))if(S=UO(c,"value")||"",g.h5(qHU,S)){c=F+"."+qHU[S];Z=S==="main";w=UO(M,w.G+":langName")||F+" - "+S;F=new g.zm(w,c,Z);break a}F=void 0}}if(M=fM(M,"ContentProtection"))if(M.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var E={};for(M= M.firstChild;M!=null;M=M.nextSibling)M instanceof Element&&/SystemURL/.test(M.nodeName)&&(w=M.getAttribute("type"),c=M.textContent,w&&c&&(E[w]=c.trim()))}else E=void 0;return new zo(P,u,{audio:p,video:h,Y2:F,Ks:E,A9:X,YO:f,contentLength:U})}; yO5=function(w){switch(w){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; DV_=function(w){switch(w){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; Tpp=function(w,M){M=M===void 0?"":M;w.state=1;w.UO=(0,g.G$)();return UVF(M||w.sourceUrl).then(function(P){if(!w.sO()){w.Oq=P.status;P=P.responseText;var u=new DOMParser;P=zL(u,Bbl(P),"text/xml").getElementsByTagName("MPD")[0];w.B3=L92(UO(P,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(P.attributes){u=g.G(P.attributes);for(var X=u.next();!X.done;X=u.next())if(X=X.value,X.value==="http://youtube.com/yt/2012/10/10"){u=X.name.split(":")[1];break b}}u=""}w.G=u;w.isLive=w.B3=w.B3}; lSH=function(w){w.K&&w.K.stop()}; zt2=function(w){var M=w.B3;isFinite(M)&&(vC(w)?w.refresh():(M=Math.max(0,w.UO+M-(0,g.G$)()),w.K||(w.K=new g.gV(w.refresh,M,w),g.b(w,w.K)),w.K.start(M)))}; LIF=function(w){w=w.B;for(var M in w){var P=w[M].index;if(P.isLoaded())return P.T5()+1}return 0}; sO=function(w){return w.M7?w.M7-(w.j||w.timestampOffset):0}; KM=function(w){return w.ys?w.ys-(w.j||w.timestampOffset):0}; bq=function(w){if(!isNaN(w.xu))return w.xu;var M=w.B,P;for(P in M){var u=M[P].index;if(u.isLoaded()&&!sI(M[P].info.mimeType)){M=0;for(P=u.wY();P<=u.T5();P++)M+=u.getDuration(P);M/=u.Vo();M=Math.round(M/.5)*.5;u.Vo()>10&&(w.xu=M);return M}if(w.isLive&&(u=M[P],u.n6))return u.n6}return NaN}; etM=function(w,M){w=QF1(w.B,function(u){return u.index.isLoaded()}); if(!w)return NaN;w=w.index;var P=w.C9(M);return w.getStartTime(P)===M?M:P=0&&X.segments.splice(U,1)}}}; QNF=function(w){for(var M in w.B)sI(w.B[M].info.mimeType)||vCy(w.B[M].index,Infinity)}; gr=function(w,M,P){for(var u in w.B){var X=w.B[u].index,U=M,f=P;X.WC&&(U&&(X.P8=Math.max(X.P8,U)),f&&(X.Uj=Math.max(X.Uj||0,f)))}P&&(w.Lu=P/1E3)}; kEH=function(w){w.ys=0;w.M7=0;w.GE=0}; JL=function(w){return w.eL&&w.isManifestless?w.isLiveHeadPlayable:w.isLive}; BC=function(w,M,P){rr===null&&(rr=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(htH&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return rr||P!=="9"&&P!=="("?rr||P!=="9h"&&P!=="(h"||(w='video/webm; codecs="vp9.2"'):w='video/webm; codecs="vp9"',w;if(!rr&&!jj||w!=='video/webm; codecs="vp9"'&&w!=='video/webm; codecs="vp9.2"')return w; P="00";var u="08",X="01",U="01",f="01";w==='video/webm; codecs="vp9.2"'&&(P="02",u="10",M.primaries==="bt2020"&&(f=X="09"),M.B==="smpte2084"&&(U="16"),M.B==="arib-std-b67"&&(U="18"));return'video/webm; codecs="'+["vp09",P,"51",u,"01",X,U,f,"00"].join(".")+'"'}; tL=function(w,M,P){w=""+w+(M>49?"p60":M>32?"p48":"");M=SB()[w];if(M!=null&&M>0)return M;M=CM.get(w);if(M!=null&&M>0)return M;P=P==null?void 0:P.get(w);return P!=null&&P>0?P:8192}; Rtl=function(w){this.r$=w;this.VE=this.P9=this.Cu=this.G=this.X=this.t9=this.eL=this.B3=!1;this.j=this.K=0;this.jL=!1;this.Lu=!0;this.Yu=!1;this.yq=0;this.Aj=this.mN=!1;this.sb=!0;this.UO=this.xu=!1;this.B={};this.cj=this.fg=this.TE=this.disableAv1=this.Z3=this.SZ=this.iW=this.bW=this.L=this.V=!1;this.rB=this.r$.D("html5_disable_aac_preference");this.QE=Infinity;this.ys=0;this.GE=this.r$.FX();this.M7=this.r$.experiments.nu("html5_enable_vp9_fairplay");this.Lx=this.r$.D("html5_force_av1_for_testing"); this.OO=g.Oh(this.r$.experiments,"html5_av1_ordinal_cap");this.DO=this.r$.D("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.DX=this.r$.D("html5_account_onesie_format_selection_during_format_filter");this.A9=g.Oh(this.r$.experiments,"html5_max_byterate");this.hD=this.r$.D("html5_enable_iamf_audio");this.Ob=this.r$.experiments.nu("html5_allow_capability_merge");this.KT=this.r$.D("html5_enable_encrypted_av1")}; zpH=function(w){if(w.eL)return["f"];if(g.vF("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var M=["9h","9","h","8"];w.KT&&M.push("1e");M=M.concat(["(h","(","H","*"]);w.mN&&(M.unshift("1"),M.unshift("1h"));w.P9&&M.unshift("h");w.S&&(M=(nml[w.S]||[w.S]).concat(M));return M}; mLM=function(w){var M=["o","a","A"];w.ys===1&&(w.X&&(M=["mac3","MAC3"].concat(M)),w.G&&(M=["meac3","MEAC3"].concat(M)),w.hD&&(M=["i","I"].concat(M)));w.B3&&(M=["so","sa"].concat(M));!w.VE||w.Cu||w.C||w.rB||M.unshift("a");w.C&&(M=(nml[w.C]||[w.C]).concat(M));return M}; xY=function(w,M,P,u){M=M===void 0?{}:M;if(u===void 0?0:u)return M.disabled=1,0;if(vL(w.G,sq.AV1_CODECS)&&vL(w.G,sq.HEIGHT)&&vL(w.G,sq.BITRATE))return M.isCapabilityUsable=1,8192;try{var X=MT2();if(X&&!w.D("disable_av1_setting"))return M.localPref=X}catch(h){}u=1080;X=navigator.hardwareConcurrency;X<=2&&(u=480);M.coreCount=X;if(X=g.Oh(w.experiments,"html5_default_av1_threshold"))u=M["default"]=X;!w.D("html5_disable_av1_arm_check")&&Ej5()&&(M.isArm=1,u=240);if(w=w.G.Lu)M.mcap=w,u=Math.max(u,w);if(P){var U, f;if(w=(U=P.videoInfos.find(function(h){return L3(h)}))==null?void 0:(f=U.L)==null?void 0:f.powerEfficient)u=8192,M.isEfficient=1; P=P.videoInfos[0].video;U=Math.min(tL("1",P.fps),tL("1",30));M.perfCap=U;u=Math.min(u,U);P.isHdr()&&!w&&(M.hdr=1,u*=.75)}else P=tL("1",30),M.perfCap30=P,u=Math.min(u,P),P=tL("1",60),M.perfCap60=P,u=Math.min(u,P);return M.av1Threshold=u}; OO=function(w,M,P,u){this.flavor=w;this.keySystem=M;this.L=P;this.experiments=u;this.B={};this.OO=this.keySystemAccess=null;this.s7=this.xO=-1;this.f$=null;this.C=!!u&&u.nu("edge_nonprefixed_eme");u&&u.nu("html5_enable_vp9_fairplay")}; w8=function(w){return w.C?!1:!w.keySystemAccess&&!!ab()&&w.keySystem==="com.microsoft.playready"}; il=function(w){return w.keySystem==="com.microsoft.playready"}; Mc=function(w){return!w.keySystemAccess&&!!ab()&&w.keySystem==="com.apple.fps.1_0"}; PM=function(w){return w.keySystem==="com.youtube.fairplay"}; ul=function(w){return w.keySystem==="com.youtube.fairplay.sbdl"}; g.Xp=function(w){return w.flavor==="fairplay"}; ab=function(){var w=window,M=w.MSMediaKeys;AD()&&!M&&(M=w.WebKitMediaKeys);return M&&M.isTypeSupported?M:null}; Uk=function(w){return navigator.requestMediaKeySystemAccess?g.p3&&!g.KB()?mZ("45"):g.Im||g.WI?w.nu("edge_nonprefixed_eme"):g.$I?mZ("47"):g.HN&&w.nu("html5_enable_safari_fairplay")?!1:!0:!1}; vmH=function(w,M,P,u){var X=bL(),U=(P=X||P&&AD())?["com.youtube.fairplay"]:["com.widevine.alpha"];M&&U.unshift("com.youtube.widevine.l3");X&&u&&U.unshift("com.youtube.fairplay.sbdl");return P?U:w?[].concat(g.L(U),g.L(f7.playready)):[].concat(g.L(f7.playready),g.L(U))}; WM=function(w,M,P,u,X){u=u===void 0?!1:u;g.v.call(this);this.r$=M;this.useCobaltWidevine=u;this.II=X;this.L=[];this.C={};this.B={};this.callback=null;this.G=!1;this.X=[];this.initialize(w,!P)}; KIU=function(w,M){w.callback=M;w.X=[];Uk(w.r$.experiments)?hu(w):sN5(w)}; hu=function(w){if(!w.sO())if(w.L.length===0)w.callback(w.X);else{var M=w.L[0],P=w.C[M],u=bOF(w,P);if(cM&&cM.keySystem===M&&cM.CC$===JSON.stringify(u))w.II("remksa",{re:!0}),ISM(w,P,cM.keySystemAccess);else{var X,U;w.II("remksa",{re:!1,ok:(U=(X=cM)==null?void 0:X.keySystem)!=null?U:""});cM=void 0;navigator.requestMediaKeySystemAccess(M,u).then(sD(function(f){ISM(w,P,f,u)}),sD(function(){w.G=!w.G&&w.C[w.L[0]].flavor==="widevine"; w.G||w.L.shift();hu(w)}))}}}; ISM=function(w,M,P,u){if(!w.sO()){u&&(cM={keySystem:M.keySystem,keySystemAccess:P,CC$:JSON.stringify(u)});M.keySystemAccess=P;if(il(M)){P=S1();u=g.G(Object.keys(w.B[M.flavor]));for(var X=u.next();!X.done;X=u.next())X=X.value,M.B[X]=!!P.canPlayType(X)}else{P=M.keySystemAccess.getConfiguration();if(P.audioCapabilities)for(u=g.G(P.audioCapabilities),X=u.next();!X.done;X=u.next())M.B[X.value.contentType]=!0;if(P.videoCapabilities)for(P=g.G(P.videoCapabilities),u=P.next();!u.done;u=P.next())M.B[u.value.contentType]= !0}w.X.push(M);w.useCobaltWidevine||w.D("html5_enable_vp9_fairplay")&&ul(M)?(w.L.shift(),hu(w)):w.callback(w.X)}}; bOF=function(w,M){var P={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(w.D("html5_enable_vp9_fairplay")&&PM(M))return P.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),P.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[P];il(M)&&(P.initDataTypes=["keyids","cenc"]);for(var u=g.G(Object.keys(w.B[M.flavor])),X=u.next();!X.done;X=u.next()){X=X.value;var U=X.indexOf("audio/")===0,f=U?P.audioCapabilities:P.videoCapabilities;M.flavor!== "widevine"||w.G?f.push({contentType:X}):U?f.push({contentType:X,robustness:"SW_SECURE_CRYPTO"}):(g.p3&&g.vF("windows nt")&&!w.D("html5_drm_enable_moho")||f.push({contentType:X,robustness:"HW_SECURE_ALL"}),U=X,w.r$.G.C&&X.includes("vp09")&&(U=X+"; experimental=allowed"),f.push({contentType:U,robustness:"SW_SECURE_DECODE"}),Z9(w.r$)==="MWEB"&&(tD()||sL())&&(w.II("swcrypto",{}),f.push({contentType:X,robustness:"SW_SECURE_CRYPTO"})))}return[P]}; sN5=function(w){if(ab()&&(g.HN||JD))w.X.push(new OO("fairplay","com.apple.fps.1_0","",w.r$.experiments));else{var M=AOR(),P=g.Nj(w.L,function(u){var X=w.C[u],U=!1,f=!1,h;for(h in w.B[X.flavor])M(h,u)&&(X.B[h]=!0,U=U||h.indexOf("audio/")===0,f=f||h.indexOf("video/")===0);return U&&f}); P&&w.X.push(w.C[P]);w.L=[]}w.callback(w.X)}; AOR=function(){var w=ab();if(w){var M=w.isTypeSupported;return function(u,X){return M(X,u)}}var P=S1(); return P&&(P.addKey||P.webkitAddKey)?function(u,X){return!!P.canPlayType(u,X)}:function(){return!1}}; gmM=function(w){this.experiments=w;this.B=2048;this.X=0;this.B3=(this.j=this.D("html5_streaming_resilience"))?.5:.25;var M=M===void 0?0:M;this.C=g.Oh(this.experiments,"html5_media_time_weight_prop")||M;this.S=(this.G=this.experiments.nu("html5_consider_end_stall"))&&SY;this.L=this.experiments.nu("html5_measure_max_progress_handling");this.V=this.D("html5_treat_requests_pre_elbow_as_metadata");this.K=this.D("html5_media_time_weight")||!!this.C;this.D("html5_sabr_live_audio_early_return_fix")&&SY&& (this.B=65536)}; JO1=function(w,M){this.B=void 0;this.experimentIds=w?w.split(","):[];this.flags=tR(M||"","&");w={};M=g.G(this.experimentIds);for(var P=M.next();!P.done;P=M.next())w[P.value]=!0;this.experiments=w}; g.Oh=function(w,M){w=w.flags[M];JSON.stringify(w);return Number(w)||0}; HM=function(w,M){return(w=w.flags[M])?w.toString():""}; rOl=function(w){if(w=w.flags.html5_web_po_experiment_ids)if(w=w.replace(/\[ *(.*?) *\]/,"$1"))return w.split(",").map(Number);return[]}; jNx=function(w){if(w.B)return w.B;if(w.experimentIds.length<=1)return w.B=w.experimentIds,w.B;var M=[].concat(g.L(w.experimentIds)).map(function(u){return Number(u)}); M.sort();for(var P=M.length-1;P>0;--P)M[P]-=M[P-1];w.B=M.map(function(u){return u.toString()}); w.B.unshift("v1");return w.B}; tIz=function(w){return C8p.then(w)}; p7=function(w,M,P){this.experiments=w;this.ys=M;this.Cu=P===void 0?!1:P;this.S=!!g.Mj("cast.receiver.platform.canDisplayType");this.V={};this.B3=!1;this.X=new Map;this.j=!0;this.L=this.C=!1;this.B=new Map;this.Lu=0;this.mN=this.experiments.nu("html5_disable_vp9_encrypted");this.G=this.experiments.nu("html5_enable_encrypted_av1");w=g.Mj("cast.receiver.platform.getValue");this.K=!this.S&&w&&w("max-video-resolution-vpx")||null;xVH(this);this.C=!!(bL()&&nB()>=21)}; lfM=function(w,M,P){P=P===void 0?1:P;var u=M.itag;if(u==="0")return!0;var X=M.mimeType;if(M.zk==="1e"&&!w.G)return"dav1enc";if(L3(M)&&w.B3)return"dav1";if(M.video&&(M.video.isHdr()||M.video.primaries==="bt2020")&&!(vL(w,sq.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(u==="338"&&!(g.p3?mZ(53):g.$I&&mZ(64)))return"dopus";var U=P;U=U===void 0?1: U;P={};M.video&&(M.video.width&&(P[sq.WIDTH.name]=M.video.width),M.video.height&&(P[sq.HEIGHT.name]=M.video.height),M.video.fps&&(P[sq.FRAMERATE.name]=M.video.fps*U),M.video.B&&(P[sq.EOTF.name]=M.video.B),M.A9&&(P[sq.BITRATE.name]=M.A9*8*U),M.zk==="("&&(P[sq.CRYPTOBLOCKFORMAT.name]="subsample"),M.video.projectionType==="EQUIRECTANGULAR"||M.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||M.video.projectionType==="MESH")&&(P[sq.DECODETOTEXTURE.name]="true");M.audio&&M.audio.numChannels&& (P[sq.CHANNELS.name]=M.audio.numChannels);w.C&&To(M)&&(P[sq.EXPERIMENTAL.name]="allowed");U=g.G(Object.keys(sq));for(var f=U.next();!f.done;f=U.next()){f=sq[f.value];var h;if(h=P[f.name])if(h=!(f===sq.EOTF&&M.mimeType.indexOf("vp09.02")>0)){h=f;var c=M;h=!(w.experiments.nu("html5_ignore_h264_framerate_cap")&&h===sq.FRAMERATE&&dop(c))}if(h)if(vL(w,f))if(w.K){if(w.K[f.name] 1080&&M.Ks&&(X+="; hdcp=2.2");return u==="227"?"hqcenc":u!=="585"&&u!=="588"&&u!=="583"&&u!=="586"&&u!=="584"&&u!=="587"&&u!=="591"&&u!=="592"||w.experiments.nu("html5_enable_new_hvc_enc")?bL()&&nB()>=21&&g.vF("appletv5")&&(u==="410"||u==="845")?!0:w.isTypeSupported(X)?!0:"tpus":"newhvc"}; Fp=function(){var w=sL()&&!mZ(29),M=g.vF("google tv")&&g.vF("chrome")&&!mZ(30);return w||M?!1:kaH()}; OOz=function(w,M,P){var u=480;M=g.G(M);for(var X=M.next();!X.done;X=M.next()){X=X.value;var U=X.video.qualityOrdinal;U<=1080&&U>u&&lfM(w,X,P)===!0&&(u=U)}return u}; g.Ek=function(w,M){M=M===void 0?!1:M;return Fp()&&w.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!M&&w.canPlayType(S1(),"application/x-mpegURL")?!0:!1}; wo4=function(w){aSR(function(){for(var M=g.G(Object.keys(sq)),P=M.next();!P.done;P=M.next())vL(w,sq[P.value])})}; vL=function(w,M){M.name in w.V||(w.V[M.name]=ie_(w,M));return w.V[M.name]}; ie_=function(w,M){if(w.K)return!!w.K[M.name];if(M===sq.BITRATE&&w.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!w.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(M===sq.AV1_CODECS)return w.isTypeSupported("video/mp4; codecs="+M.valid)&&!w.isTypeSupported("video/mp4; codecs="+M.KX);if(M.video){var P='video/webm; codecs="vp9"';w.isTypeSupported(P)||(P='video/mp4; codecs="avc1.4d401e"')}else P='audio/webm; codecs="opus"', w.isTypeSupported(P)||(P='audio/mp4; codecs="mp4a.40.2"');return w.isTypeSupported(P+"; "+M.name+"="+M.valid)&&!w.isTypeSupported(P+"; "+M.name+"="+M.KX)}; Ma1=function(w,M){var P=0;w.X.has(M)&&(P=w.X.get(M).yV);w.X.set(M,{yV:P+1,oU:Math.pow(2,P+1)});w.L=!0}; QR=function(w){for(var M=[],P=g.G(w.B.keys()),u=P.next();!u.done;u=P.next()){u=u.value;var X=w.B.get(u);M.push(u+"_"+X.maxWidth+"_"+X.maxHeight)}return M.join(".")}; G5l=function(w,M){for(var P=new Map,u=g.G(w.B.keys()),X=u.next();!X.done;X=u.next()){X=X.value;var U=X.split("_")[0];M.has(U)||P.set(X,w.B.get(X))}w.B=P}; DLp=function(w,M,P){var u,X=((u=P.video)==null?void 0:u.fps)||0;u=M+"_"+X;var U=!!P.audio,f={itag:P.itag,zk:M,hx:U};if(U)f.numChannels=P.audio.numChannels;else{var h=P.video;f.maxWidth=h==null?void 0:h.width;f.maxHeight=h==null?void 0:h.height;f.maxFramerate=X;vL(w,sq.BITRATE)&&(f.maxBitrateBps=P.A9*8);f.fd=h==null?void 0:h.isHdr()}h=w.B.get(u);h?U||(P=Math.max(h.maxWidth||0,h.maxHeight||0)>Math.max(f.maxWidth||0,f.maxHeight||0)?h:f,M={itag:P.itag,zk:M,hx:U,maxWidth:Math.max(h.maxWidth||0,f.maxWidth|| 0),maxHeight:Math.max(h.maxHeight||0,f.maxHeight||0),maxFramerate:X,fd:P.fd},vL(w,sq.BITRATE)&&(M.maxBitrateBps=P.maxBitrateBps),w.B.set(u,M)):w.B.set(u,f)}; qdF=function(w,M,P){var u,X=((u=P.video)==null?void 0:u.fps)||0;u=M+"_"+X;var U=!!P.audio,f=w.B.get(u);a:{var h=w.B.get(u),c=!!P.audio;if(h){if(c){var Z=!1;break a}var S;if(!c&&((Z=P.video)==null?0:Z.height)&&h.maxHeight&&h.maxHeight>=((S=P.video)==null?void 0:S.height)){Z=!1;break a}}Z=!0}Z&&(Z=P.itag,M=f?f:{itag:Z,zk:M,hx:U},U?M.numChannels=P.audio.numChannels:(U=P.video,M.maxWidth=U==null?void 0:U.width,M.maxHeight=U==null?void 0:U.height,M.maxFramerate=X,vL(w,sq.BITRATE)&&(M.maxBitrateBps=P.A9* 8),M.fd=U==null?void 0:U.isHdr()),w.B.set(u,M))}; xVH=function(w){var M;(M=navigator.mediaCapabilities)!=null&&M.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(P){P.smooth&&P.powerEfficient&&(w.Lu=2160)})}; Nc=function(){g.wC.call(this);this.items={}}; PPU=function(w,M,P){this.encryptedClientKey=M;this.G=P;this.B=new Uint8Array(w.buffer,0,16);this.L=new Uint8Array(w.buffer,16)}; unu=function(w){w.C||(w.C=new g.Us(w.B));return w.C}; V8=function(w){try{return Td(w)}catch(M){return null}}; Xop=function(w,M){if(!M&&w)try{M=JSON.parse(w)}catch(X){}if(M){w=M.clientKey?V8(M.clientKey):null;var P=M.encryptedClientKey?V8(M.encryptedClientKey):null,u=M.keyExpiresInSeconds?Number(M.keyExpiresInSeconds)*1E3+(0,g.G$)():null;w&&P&&u&&(this.B=new PPU(w,P,u));M.onesieUstreamerConfig&&(this.onesieUstreamerConfig=V8(M.onesieUstreamerConfig)||void 0);this.baseUrl=M.baseUrl}}; oj=function(){this.data=new Uint8Array(2048);this.pos=0;mP||(mP=pF("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; Gu=function(w,M){w.add(M==null||isNaN(M)?0:M+1)}; y8=function(w){this.B=this.L=0;this.alpha=Math.exp(Math.log(.5)/w)}; D9=function(w){this.L=w===void 0?15:w;this.values=new Float64Array(176);this.B=new Float64Array(11);this.C=new Float64Array(16)}; qc=function(w,M,P,u){P=P===void 0?.5:P;u=u===void 0?0:u;this.resolution=M;this.L=0;this.C=!1;this.O$=!0;this.B=Math.round(w*this.resolution);this.values=Array(this.B);for(w=0;w0)M=w.byterate,this.B3=!0;else{var u; P=(((u=navigator.connection)==null?void 0:u.downlink)||0)*64*1024;P>0&&(M=P,this.B3=!0)}this.C.YQ(this.policy.K,M);w.delay>0&&this.V.YQ(1,Math.min(w.delay,2));w.stall>0&&this.j.YQ(1,w.stall);w.init>0&&(this.UO=Math.min(w.init,this.UO));w.interruptions&&(this.X=this.X.concat(w.interruptions),this.X.length>16&&this.X.pop());this.Lu=(0,g.G$)();this.policy.j>0&&(this.eL=new g.gV(this.t9,this.policy.j,this),g.b(this,this.eL),this.eL.start())}; zu=function(w,M,P,u){w.C.YQ(u===void 0?M:u,P/M);w.K=(0,g.G$)()}; Um2=function(w){w.G||(w.G=(0,g.G$)());w.policy.S&&(w.K=(0,g.G$)())}; fcz=function(w,M){if(w.G){var P=M-w.G;if(P<6E4){if(P>1E3){var u=w.interruptions;u.push(Math.ceil(P));u.sort(function(X,U){return U-X}); u.length>16&&u.pop()}w.ys+=P}}w.G=M}; Tu=function(w,M,P,u,X,U){U=U===void 0?!1:U;w.xu.YQ(M,P/M);w.K=(0,g.G$)();X||w.S.YQ(1,M-u);U||(w.G=0);w.Lu>-1&&(0,g.G$)()-w.Lu>3E4&&Wt4(w)}; d8=function(w,M,P){M=Math.max(M,w.L.B);w.j.YQ(1,P/M)}; ll=function(w){w=w.V.Zu()+w.Cu.Zu()||0;w=isNaN(w)?.5:w;return w=Math.min(w,5)}; L7=function(w,M,P){isNaN(P)||(w.mN+=P);isNaN(M)||(w.OO+=M)}; eY=function(w){w=w.C.Zu();return w>0?w:1}; BM=function(w,M,P){M=M===void 0?!1:M;P=P===void 0?1048576:P;var u=eY(w);u=1/((w.j.Zu()||0)*w.policy.B3+1/u);var X=w.xu.Zu();X=X>0?X:1;var U=Math.max(u,X);w.policy.G>0&&X=4E3}; cQl=function(w){this.experiments=w;this.B=17;this.C=13E4;this.K=.5;this.X=this.L=!1;this.Lu=this.D("html5_use_histogram_for_bandwidth");this.G=g.Oh(this.experiments,"html5_auxiliary_estimate_weight");this.B3=g.Oh(this.experiments,"html5_stall_factor")||1;this.j=g.Oh(this.experiments,"html5_check_for_idle_network_interval_ms");this.V=this.experiments.nu("html5_trigger_loader_when_idle_network");this.S=this.experiments.nu("html5_sabr_fetch_on_idle_network_preloaded_players")}; Swl=function(w,M){w=w===void 0?{}:w;M=M===void 0?{}:M;g.v.call(this);var P=this;this.values=w;this.i6=M;this.L={};this.C=this.B=0;this.X=new g.gV(function(){Ze1(P)},1E4); g.b(this,this.X)}; kI=function(w,M){Heu(w,M);return w.values[M]&&w.i6[M]?w.values[M]/Math.pow(2,w.B/w.i6[M]):0}; Heu=function(w,M){w.values[M]||(M=OD2(),w.values=M.values||{},w.i6=M.halfLives||{},w.L=M.values?Object.assign({},M.values):{})}; Ze1=function(w){var M=OD2();if(M.values){M=M.values;for(var P={},u=g.G(Object.keys(w.values)),X=u.next();!X.done;X=u.next())X=X.value,M[X]&&w.L[X]&&(w.values[X]+=M[X]-w.L[X]),P[X]=kI(w,X);w.L=P}M=w.i6;P={};P.values=w.L;P.halfLives=M;g.Tg("yt-player-memory",P,2592E3)}; iT=function(w,M,P,u,X){g.v.call(this);this.webPlayerContextConfig=M;this.L$=u;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.dh=this.fg=this.Lx=this.Bb=this.userDisplayName=this.userDisplayImage=this.uX="";this.B={};this.hD={};this.controlsType="0";this.sb=NaN;this.bW=!1;this.jU=(0,g.G$)();this.M7=0;this.AQ=this.F$=!1;this.AF=!0;this.preferGapless=this.BI=this.wb=this.C=this.QL=!1;this.dk=[];this.TD=!1;this.rY=0;w=w?g.Fm(w):{};M&&M.csiPageType&&(this.csiPageType=M.csiPageType);M&&M.csiServiceName&& (this.csiServiceName=M.csiServiceName);M&&M.preferGapless&&(this.preferGapless=M.preferGapless);this.experiments=new JO1(M?M.serializedExperimentIds:w.fexp,M?M.serializedExperimentFlags:w.fflags);this.forcedExperiments=M?M.serializedForcedExperimentIds:Mi("",w.forced_experiments)||void 0;this.cspNonce=(M==null?0:M.cspNonce)?M.cspNonce:Mi("",w.csp_nonce);this.D("web_player_deprecated_uvr_killswitch");try{var U=document.location.toString()}catch($M){U=""}this.gb=U;this.ancestorOrigins=(u=window.location.ancestorOrigins)? Array.from(u):[];this.X=a1(!1,M?M.isEmbed:w.is_embed);if(M&&M.device){if(u=M.device,u.androidOsExperience&&(this.B.caoe=""+u.androidOsExperience),u.androidPlayServicesVersion&&(this.B.capsv=""+u.androidPlayServicesVersion),u.brand&&(this.B.cbrand=u.brand),u.browser&&(this.B.cbr=u.browser),u.browserVersion&&(this.B.cbrver=u.browserVersion),u.cobaltReleaseVehicle&&(this.B.ccrv=""+u.cobaltReleaseVehicle),this.B.c=u.interfaceName||"WEB",this.B.cver=u.interfaceVersion||"html5",u.interfaceTheme&&(this.B.ctheme= u.interfaceTheme),this.B.cplayer=u.interfacePlayerType||"UNIPLAYER",u.model&&(this.B.cmodel=u.model),u.network&&(this.B.cnetwork=u.network),u.os&&(this.B.cos=u.os),u.osVersion&&(this.B.cosver=u.osVersion),u.platform&&(this.B.cplatform=u.platform),U=HM(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),U==="all"||U==="once")u.chipset&&(this.hD.cchip=u.chipset),u.cobaltAppVersion&&(this.hD.ccappver=u.cobaltAppVersion),u.firmwareVersion&&(this.hD.cfrmver=u.firmwareVersion),u.deviceYear&&(this.hD.crqyear= u.deviceYear)}else this.B.c=w.c||"web",this.B.cver=w.cver||"html5",this.B.cplayer="UNIPLAYER";this.loaderUrl=M?this.X||po_(this)&&M.loaderUrl?M.loaderUrl||"":this.gb:this.X||po_(this)&&w.loaderUrl?Mi("",w.loaderUrl):this.gb;this.X&&g.ih("yt.embedded_player.embed_url",this.loaderUrl);this.V=RB(this.loaderUrl,Ftl);u=this.loaderUrl;var f=f===void 0?!1:f;this.bu=kk(RB(u,EeH),u,f,"Trusted Ad Domain URL");this.TE=a1(!1,w.privembed);this.protocol=this.gb.indexOf("http:")===0?"http":"https";this.GJ=cgl((M? M.customBaseYoutubeUrl:w.BASE_YT_URL)||"")||cgl(this.gb)||this.protocol+"://www.youtube.com/";f=M?M.eventLabel:w.el;u="detailpage";f==="adunit"?u=this.X?"embedded":"detailpage":f==="embedded"||this.V?u=wH(u,f,N61):f&&(u="embedded");this.Cu=u;YKx();f=null;u=M?M.playerStyle:w.ps;U=g.o$(Va2,u);!u||U&&!this.V||(f=u);this.playerStyle=f;this.K=g.o$(Va2,this.playerStyle);this.houseBrandUserStatus=M==null?void 0:M.houseBrandUserStatus;this.Lu=this.K&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.Ic=!this.Lu;this.eL=a1(!1,w.disableplaybackui);this.disablePaidContentOverlay=a1(!1,M==null?void 0:M.disablePaidContentOverlay);this.disableSeek=a1(!1,M==null?void 0:M.disableSeek);this.enableSpeedOptions=(M==null?void 0:M.enableSpeedOptions)||(S1().defaultPlaybackRate?Rj||g.CB||n7?g.$I&&mZ("20")||g.p3&&mZ("4")||g.vM&&mZ("11")||g$():!(g.vM&&!g.vF("chrome")||Rj||g.vF("android")||g.vF("silk")):!1);this.Qn=a1(!1,w.enable_faster_speeds);var h;this.supportsVarispeedExtendedFeatures=(h=M==null?void 0: M.supportsVarispeedExtendedFeatures)!=null?h:!1;this.L=a1(this.playerStyle==="blazer",w.is_html5_mobile_device||M&&M.isMobileDevice);this.OO=j9()||tD();this.Sz=this.D("mweb_allow_background_playback")?!1:this.L&&!this.K;this.xu=Np();this.yS=g.sk;var c;this.b4=!!(M==null?0:(c=M.embedsHostFlags)==null?0:c.optOutApiDeprecation);var Z;this.m$=!!(M==null?0:(Z=M.embedsHostFlags)==null?0:Z.allowPfpImaIntegration);this.Mx=this.D("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var S;M?M.hideInfo!== void 0&&(S=!M.hideInfo):S=w.showinfo;this.BC=g.K7(this)&&!this.b4||a1(!bl(this)&&!Ij(this)&&!this.K,S);this.cC=M?!!M.mobileIphoneSupportsInlinePlayback:a1(!1,w.playsinline);h=this.L&&Au&&g8!=null&&g8>0&&g8<=2.3;c=M?M.useNativeControls:w.use_native_controls;this.j=g.K7(this)&&this.L;Z=this.L&&!this.j;c=g.Ju(this)||!h&&a1(Z,c)?"3":"1";this.disableOrganicUi=!(M==null||!M.disableOrganicUi);Z=M?M.controlsType:w.controls;this.controlsType=this.disableOrganicUi||Z==="0"||Z===0?"0":c;this.bI=this.L;this.color= wH("red",M?M.progressBarColor:w.color,mmu);this.JX=this.controlsType==="3";this.QE=!this.X;this.La=(c=!this.QE&&!Ij(this)&&!this.Lu&&!this.K&&!bl(this))&&!this.JX&&this.controlsType==="1";this.Ob=g.r8(this)&&c&&this.controlsType==="0"&&!this.La&&!(M==null?0:M.embedsEnableEmc3ds);this.U$=this.MM=h;this.KT=(this.controlsType==="3"||this.L||a1(!1,w.use_media_volume))&&!this.j;this.vC=JD&&!g.KQ(601)?!1:!0;this.QJ=this.X||!1;this.VE=Ij(this)?"":(this.loaderUrl||w.post_message_origin||"").substring(0,128); this.widgetReferrer=Mi("",M?M.widgetReferrer:w.widget_referrer);var H;M?M.disableCastApi&&(H=!1):H=w.enablecastapi;H=!this.V||a1(!0,H);h=!0;M&&M.disableMdxCast&&(h=!1);this.tF=this.D("enable_cast_for_web_unplugged")&&g.jY(this)&&h||g.LW(this)&&h||H&&h&&this.controlsType==="1"&&!this.L&&(Ij(this)||g.r8(this)||g.C7(this));this.d8=!!window.document.pictureInPictureEnabled||EI();H=M?!!M.supportsAutoplayOverride:a1(!1,w.autoplayoverride);this.Q8=!(this.L&&!g.K7(this))&&!g.vF("nintendo wiiu")||H;this.w5= (M?!!M.enableMutedAutoplay:a1(!1,w.mutedautoplay))&&!1;H=(Ij(this)||bl(this))&&this.playerStyle==="blazer";this.uh=M?!!M.disableFullscreen:!a1(!0,w.fs);h=g.$F(g.tu(this))&&g.K7(this);this.cj=!this.uh&&(H||g.Sh())&&!h;this.Rc=this.D("html5_picture_in_picture_logging_onresize");var p;this.Ck=(p=g.Oh(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?p:.33;this.qg=this.D("html5_picture_in_picture_blocking_onresize");this.JQ=this.D("html5_picture_in_picture_blocking_ontimeupdate"); this.mu=this.D("html5_picture_in_picture_blocking_document_fullscreen");this.Sd=this.D("html5_picture_in_picture_blocking_standard_api");p=sL()&&mZ(58)&&!tD();H=bb||typeof MediaSource==="undefined";this.Z0=this.D("uniplayer_block_pip")&&(p||H)||this.qg||this.JQ||this.Sd;p=g.K7(this)&&!this.b4;var F;M?M.disableRelatedVideos!==void 0&&(F=!M.disableRelatedVideos):F=w.rel;this.DX=p||a1(!this.K,F);this.We=a1(!1,M?M.enableContentOwnerRelatedVideos:w.co_rel);this.S=tD()&&g8>0&&g8<=4.4?"_top":"_blank";this.kD= g.C7(this);this.H_=a1(this.playerStyle==="blazer",M?M.enableCsiLogging:w.enablecsi);switch(this.playerStyle){case "blogger":F="bl";break;case "gmail":F="gm";break;case "gac":F="ga";break;case "ads-preview":F="ap";break;case "books":F="gb";break;case "docs":case "flix":F="gd";break;case "duo":F="gu";break;case "google-live":F="gl";break;case "google-one":F="go";break;case "play":case "play-ads":F="gp";break;case "chat":F="hc";break;case "hangouts-meet":F="hm";break;case "photos-edu":case "picasaweb":F= "pw";break;default:F="yt"}this.B3=F;this.mN=Mi("",M?M.authorizedUserIndex:w.authuser);this.GE=g.K7(this)&&(this.TE||!p_4()||this.OO);var E;M?M.disableWatchLater!==void 0&&(E=!M.disableWatchLater):E=w.showwatchlater;this.nV=((F=!this.GE)||!!this.mN&&F)&&a1(!this.Lu,this.V?E:void 0);this.Kx=M?M.isMobileDevice||!!M.disableKeyboardControls:a1(!1,w.disablekb);this.loop=a1(!1,w.loop);this.pageId=Mi("",M?M.initialDelegatedSessionId:w.pageid);this.Xk=a1(!0,w.canplaylive);this.Z3=a1(!1,w.livemonitor);this.disableSharing= a1(this.K,M?M.disableSharing:w.ss);(E=M&&this.D("fill_video_container_size_override_from_wpcc")?M.videoContainerOverride:w.video_container_override)?(F=E.split("x"),F.length!==2?E=null:(E=Number(F[0]),F=Number(F[1]),E=isNaN(E)||isNaN(F)||E*F<=0?null:new g.rq(E,F))):E=null;this.ET=E;this.mute=M?!!M.startMuted:a1(!1,w.mute);this.storeUserVolume=!this.mute&&a1(this.controlsType!=="0",M?M.storeUserVolume:w.store_user_volume);E=M?M.annotationsLoadPolicy:w.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:wH(void 0,E,xI);this.captionsLanguagePreference=M?M.captionsLanguagePreference||"":Mi("",w.cc_lang_pref);E=wH(2,M?M.captionsLanguageLoadPolicy:w.cc_load_policy,xI);this.controlsType==="3"&&E===2&&(E=3);this.zj=E;this.SZ=M?M.hl||"en_US":Mi("en_US",w.hl);this.region=M?M.contentRegion||"US":Mi("US",w.cr);this.hostLanguage=M?M.hostLanguage||"en":Mi("en",w.host_language);this.kT=!this.TE&&Math.random()=480;this.schedule=new YI(H,new gmM(this.experiments),X);g.b(this,this.schedule);var y;this.enableSafetyMode=(y=M==null?void 0:M.initialEnableSafetyMode)!=null? y:a1(!1,w.enable_safety_mode);X=this.eL?!1:Ij(this)&&this.playerStyle!=="blazer";var q;M?M.disableAutonav!=null&&(q=!M.disableAutonav):q=w.allow_autonav;this.DO=a1(X,!this.Lu&&q);this.sendVisitorIdHeader=M?!!M.sendVisitorIdHeader:a1(!1,w.send_visitor_id_header);var d;this.playerStyle==="docs"&&(M?d=M.disableNativeContextMenu:d=w.disable_native_context_menu);this.disableNativeContextMenu=a1(!1,d);this.R4=cJ(this)&&this.D("enable_skip_intro_button");this.embedConfig=Mi("",M?M.serializedEmbedConfig: w.embed_config);this.ys=Xr(w,g.K7(this));this.C=this.ys==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(M==null||!M.embedsErrorLinks);this.Ye=a1(!1,w.full_window);var l;this.jL=!((l=this.webPlayerContextConfig)==null?0:l.chromeless);var e;this.livingRoomAppMode=wH("LIVING_ROOM_APP_MODE_UNSPECIFIED",w.living_room_app_mode||(M==null?void 0:(e=M.device)==null?void 0:e.livingRoomAppMode),yQU);var R;q=iK(NaN,M==null?void 0:(R=M.device)==null?void 0:R.deviceYear);isNaN(q)||(this.deviceYear=q);this.transparentBackground= M?!!M.transparentBackground:a1(!1,w.transparent_background);this.showMiniplayerButton=M?!!M.showMiniplayerButton:a1(!1,w.show_miniplayer_button);var I;g.K7(this)&&!(M==null?0:(I=M.embedsHostFlags)==null?0:I.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=M?!!M.externalFullscreen:a1(!1,w.external_fullscreen);this.showMiniplayerUiWhenMinimized=M?!!M.showMiniplayerUiWhenMinimized:a1(!1,w.use_miniplayer_ui);var w4;this.AF=(w4=w.show_loop_video_toggle)!=null?w4:!0;this.qk=Math.random()< 1E-4;this.NE=w.onesie_hot_config||(M==null?0:M.onesieHotConfig)?new Xop(w.onesie_hot_config,M==null?void 0:M.onesieHotConfig):void 0;this.isTectonic=M?!!M.isTectonic:!!w.isTectonic;this.playerCanaryState=P;this.playerCanaryStage=M==null?void 0:M.canaryStage;this.a7=new Swl;g.b(this,this.a7);this.datasyncId=(M==null?void 0:M.datasyncId)||g.AR("DATASYNC_ID");this.ih=g.AR("LOGGED_IN",!1);this.Ci=(M==null?void 0:M.allowWoffleManagement)||!1;this.oE=Infinity;this.Zv=NaN;this.livingRoomPoTokenId=M==null? void 0:M.livingRoomPoTokenId;this.D("html5_high_res_logging_always")?this.wb=!0:this.wb=Math.random()*100=0&&w0&&w.qk&&(u.sort(),g.Yq(new g.bK("Player client parameters changed after startup",u)));w.userAge=iK(w.userAge,M.user_age);w.uX=Mi(w.uX,M.user_display_email);w.userDisplayImage=Mi(w.userDisplayImage,M.user_display_image);g.vJ(w.userDisplayImage)||(w.userDisplayImage= "");w.userDisplayName=Mi(w.userDisplayName,M.user_display_name);w.Bb=Mi(w.Bb,M.user_gender);w.csiPageType=Mi(w.csiPageType,M.csi_page_type);w.csiServiceName=Mi(w.csiServiceName,M.csi_service_name);w.H_=a1(w.H_,M.enablecsi);w.pageId=Mi(w.pageId,M.pageid);if(P=M.enabled_engage_types)w.enabledEngageTypes=new Set(P.split(","));M.living_room_session_po_token&&(w.pV=M.living_room_session_po_token.toString())}; Me=function(w,M){return!w.K&&sL()&&mZ(55)&&w.controlsType==="3"&&!M}; g.P0=function(w){w=Ok(w.GJ);return w==="www.youtube-nocookie.com"?"www.youtube.com":w}; uT=function(w,M,P){return w.protocol+"://i1.ytimg.com/vi/"+M+"/"+(P||"hqdefault.jpg")}; XD=function(w){return Ij(w)&&!g.jY(w)}; g.Ju=function(w){return w.D("html5_local_playsinline")?JD&&!g.KQ(602)&&!("playsInline"in S1()):JD&&!w.cC||g.vF("nintendo wiiu")?!0:!1}; Z9=function(w){return w.B.c}; g.Z$=function(w){return/^TVHTML5/.test(Z9(w))}; g.$3=function(w){return Z9(w)==="TVHTML5"}; po_=function(w){return Z9(w)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; G91=function(w){return w.B.cmodel==="CHROMECAST ULTRA/STEAK"||w.B.cmodel==="CHROMECAST/STEAK"}; g.U_=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; cJ=function(w){return/web/i.test(Z9(w))}; g.fp=function(w){return Z9(w).toUpperCase()==="WEB"}; wD=function(w){return Z9(w)==="WEB_KIDS"}; g.jY=function(w){return Z9(w)==="WEB_UNPLUGGED"}; W0=function(w){return Z9(w)==="TVHTML5_UNPLUGGED"}; g.hP=function(w){return g.jY(w)||Z9(w)==="TV_UNPLUGGED_CAST"||W0(w)}; g.LW=function(w){return Z9(w)==="WEB_REMIX"}; g.hW=function(w){return Z9(w)==="WEB_MUSIC_INTEGRATIONS"}; g.c0=function(w){return Z9(w)==="WEB_EMBEDDED_PLAYER"}; g.Sg=function(w){return(w.deviceIsAudioOnly||!g.p3||bb||w.controlsType==="3"?!1:g.CB?w.X&&g.KQ(51):!0)||(w.deviceIsAudioOnly||!g.$I||bb||w.controlsType==="3"?!1:g.CB?w.X&&g.KQ(48):g.KQ(38))||(w.deviceIsAudioOnly||!g.vM||bb||w.controlsType==="3"?!1:g.CB?w.X&&g.KQ(37):g.KQ(27))||!w.deviceIsAudioOnly&&g.Z1&&!mMH()&&g.KQ(11)||!w.deviceIsAudioOnly&&g.HN&&g.KQ("604.4")}; Yw_=function(w){if(g.r8(w)&&Au)return!1;if(g.$I){if(!g.KQ(47)||!g.KQ(52)&&g.KQ(51))return!1}else if(g.HN)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; T6U=function(w,M){return w.enabledEngageTypes.has(M.toString())||z8M.includes(M)}; Ij=function(w){return w.Cu==="detailpage"}; g.r8=function(w){return w.Cu==="embedded"}; H0=function(w){return w.Cu==="leanback"}; bl=function(w){return w.Cu==="adunit"||w.playerStyle==="gvn"}; g.C7=function(w){return w.Cu==="profilepage"}; g.K7=function(w){return w.X&&g.r8(w)&&!bl(w)&&!w.K}; pp=function(w){if(!w.userDisplayImage)return"";var M=w.userDisplayImage.split("/");if(M.length===5)return w=M[M.length-1].split("="),w[1]="s20-c",M[M.length-1]=w.join("="),M.join("/");if(M.length===8)return M.splice(7,0,"s20-c"),M.join("/");if(M.length===9)return M[7]+="-s20-c",M.join("/");g.Yq(new g.bK("Profile image not a FIFE URL.",w.userDisplayImage));return w.userDisplayImage}; g.FD=function(w){var M=g.P0(w);dml.includes(M)&&(M="www.youtube.com");return w.protocol+"://"+M}; g.E_=function(w,M){M=M===void 0?"":M;if(w.L$){var P=new cp,u,X=w.L$();X.signedOut?u="":X.token?u=X.token:X.pendingResult.then(function(U){X.signedOut?P.resolve(""):P.resolve(U.token)},function(U){g.Yq(new g.bK("b189348328_oauth_callback_failed",{error:U})); P.resolve(M)}); return u!==void 0?TZ(u):new YS(P)}return TZ(M)}; Ne=function(w,M){M=M===void 0?"":M;return w.ih?Do(!0):lF(dE(Do(g.E_(w,M)),function(P){return Do(!!P)}),function(){return Do(!1)})}; Ok=function(w){var M=g.f5(w);return(w=Number(g.UQ(w)[4]||null)||null)?M+":"+w:M}; Vo=function(w,M){M=M===void 0?!1:M;var P=Y5[w],u=lc4[P],X=Lt1[w];if(!X||!u)return null;M=new y2(M?X.height:X.width,M?X.width:X.height,X.fps);u=BC(u,M,P);return new zo(w,u,{video:M,A9:X.bitrate/8})}; B6l=function(w){var M=lc4[Y5[w]],P=e81[w];return P&&M?new zo(w,M,{audio:new m9(P.audioSampleRate,P.numChannels)}):null}; mO=function(w){this.B=w}; oD=function(w,M,P,u){if(P)return zZ();P={};var X=S1();M=g.G(M);for(var U=M.next();!U.done;U=M.next())if(U=U.value,w.canPlayType(X,U.getInfo().mimeType)||u){var f=U.B.video.quality;if(!P[f]||P[f].getInfo().R7())P[f]=U}w=[];P.auto&&w.push(P.auto);u=g.G(Dv);for(X=u.next();!X.done;X=u.next())(X=P[X.value])&&w.push(X);return w.length?TZ(w):zZ()}; Ql1=function(w){this.itag=w.itag;this.url=w.url;this.codecs=w.codecs;this.width=w.width;this.height=w.height;this.fps=w.fps;this.bitrate=w.bitrate;var M;this.L=((M=w.audioItag)==null?void 0:M.split(","))||[];this.Lj=w.Lj;this.Ks=w.Ks||"";this.Y2=w.Y2;this.audioChannels=w.audioChannels;this.B=""}; k9H=function(w,M,P,u){M=M===void 0?!1:M;P=P===void 0?!0:P;u=u===void 0?{}:u;var X={};w=g.G(w);for(var U=w.next();!U.done;U=w.next()){U=U.value;if(M&&MediaSource&&MediaSource.isTypeSupported){var f=U.type;U.audio_channels&&(f=f+"; channels="+U.audio_channels);if(!MediaSource.isTypeSupported(f)){u[U.itag]="tpus";continue}}if(P||!U.drm_families||U.eotf!=="smpte2084"&&U.eotf!=="arib-std-b67"){f=void 0;var h={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},c=U.type.match(/codecs="([^"]*)"/); c=c?c[1]:"";U.audio_track_id&&(f=new g.zm(U.name,U.audio_track_id,!!U.is_default));var Z=U.eotf;U=new Ql1({itag:U.itag,url:U.url,codecs:c,width:Number(U.width),height:Number(U.height),fps:Number(U.fps),bitrate:Number(U.bitrate),audioItag:U.audio_itag,Lj:Z?h[Z]:void 0,Ks:U.drm_families,Y2:f,audioChannels:Number(U.audio_channels)});X[U.itag]=X[U.itag]||[];X[U.itag].push(U)}else u[U.itag]="enchdr"}return X}; R8F=function(w,M,P,u,X){this.C=w;this.L=M;this.G=P;this.cpn=u;this.K=X;this.X=0;this.B=""}; ney=function(w,M){w.C.some(function(P){var u;return((u=P.Y2)==null?void 0:u.getId())===M}); w.B=M}; Gt=function(w,M,P){w.cpn&&(M=g.p5(M,{cpn:w.cpn}));P&&(M=g.p5(M,{paired:P}));return M}; ve_=function(w,M){w=w.itag.toString();M!==null&&(w+=M.itag.toString());return w}; slM=function(w){for(var M=[],P=[],u=g.G(w.L),X=u.next();!X.done;X=u.next())X=X.value,X.bitrate<=w.X?M.push(X):P.push(X);M.sort(function(U,f){return f.bitrate-U.bitrate}); P.sort(function(U,f){return U.bitrate-f.bitrate}); w.L=M.concat(P)}; yo=function(w,M,P){this.B=w;this.L=M;this.expiration=P;this.EF=null}; Kt2=function(w,M){if(!(bb||AD()||bL()))return null;w=k9H(M,w.D("html5_filter_fmp4_in_hls"));if(!w)return null;M=[];for(var P={},u=g.G(Object.keys(w)),X=u.next();!X.done;X=u.next()){X=g.G(w[X.value]);for(var U=X.next();!U.done;U=X.next()){var f=U.value;f.Y2&&(U=f.Y2.getId(),P[U]||(f=new g.mj(U,f.Y2),P[U]=f,M.push(f)))}}return M.length>0?M:null}; JQU=function(w,M,P,u,X,U,f){if(!(bb||AD()||bL()))return zZ();var h={},c=be4(P),Z=k9H(P,w.D("html5_filter_fmp4_in_hls"),w.G.j,h);if(!Z)return f({noplst:1}),zZ();IcH(Z);P={};var S=(P.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",P),H;P=[];var p=[],F=[],E=null,y="";u=u&&u.match(/hls_timedtext_playlist/)?new Ql1({itag:"0",url:u,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Y2:new g.zm("English","en",!1)}):null;for(var q=g.G(Object.keys(Z)),d=q.next();!d.done;d=q.next())if(d=d.value,!w.D("html5_disable_drm_hfr_1080")|| d!=="383"&&d!=="373"){d=g.G(Z[d]);for(var l=d.next();!l.done;l=d.next())if(l=l.value,l.width){for(var e=g.G(l.L),R=e.next();!R.done;R=e.next())if(R=R.value,Z[R]){l.B=R;break}l.B||(l.B=AQH(Z,l));if(e=Z[l.B])if(P.push(l),l.Ks==="fairplay"&&(H=S),R="",l.Lj==="PQ"?R="smpte2084":l.Lj==="HLG"&&(R="arib-std-b67"),R&&(y=R),F.push(gel(e,[l],u,U,l.itag,l.width,l.height,l.fps,c,void 0,void 0,H,R)),!E||l.width*l.height*l.fps>E.width*E.height*E.fps)E=l}else p.push(l)}else h[d]="disdrmhfr";F.reduce(function(I, w4){return w4.getInfo().isEncrypted()&&I},!0)&&(H=S); X=Math.max(X,0);S=E||{};Z=S.fps===void 0?0:S.fps;E=S.width===void 0?0:S.width;S=S.height===void 0?0:S.height;q=w.D("html5_native_audio_track_switching");F.push(gel(p,P,u,U,"93",E,S,Z,c,"auto",X,H,y,q));Object.entries(h).length&&f(h);return oD(w.G,F,Me(w,M),!1)}; gel=function(w,M,P,u,X,U,f,h,c,Z,S,H,p,F){for(var E=0,y="",q=g.G(w),d=q.next();!d.done;d=q.next())d=d.value,y||(y=d.itag),d.audioChannels&&d.audioChannels>E&&(E=d.audioChannels,y=d.itag);X=new zo(X,"application/x-mpegURL",{audio:new m9(0,E),video:new y2(U,f,h,null,void 0,Z,void 0,p),Ks:H,Ow:y});w=new R8F(w,M,P?[P]:[],u,!!F);w.X=S?S:1369843;return new yo(X,w,c)}; be4=function(w){w=g.G(w);for(var M=w.next();!M.done;M=w.next())if(M=M.value,M.url&&(M=M.url.split("expire/"),!(M.length<=1)))return+M[1].split("/")[0];return NaN}; AQH=function(w,M){for(var P=g.G(Object.keys(w)),u=P.next();!u.done;u=P.next()){u=u.value;var X=w[u][0];if(!X.width&&X.Ks===M.Ks&&!X.audioChannels)return u}return""}; IcH=function(w){for(var M=new Set,P=g.G(Object.values(w)),u=P.next();!u.done;u=P.next())u=u.value,u.length&&(u=u[0],u.height&&u.codecs.startsWith("vp09")&&M.add(u.height));P=[];if(M.size){u=g.G(Object.keys(w));for(var X=u.next();!X.done;X=u.next())if(X=X.value,w[X].length){var U=w[X][0];U.height&&M.has(U.height)&&!U.codecs.startsWith("vp09")&&P.push(X)}}M=g.G(P);for(P=M.next();!P.done;P=M.next())delete w[P.value]}; D1=function(w,M){this.B=w;this.L=M}; rQu=function(w,M,P,u){var X=[];P=g.G(P);for(var U=P.next();!U.done;U=P.next()){var f=U.value;if(f.url){U=new g.Kr(f.url,!0);if(f.s){var h=U,c=f.sp,Z=Jfp(decodeURIComponent(f.s));h[W[24]](c,encodeURIComponent(Z))}h=g.G(Object.keys(u));for(c=h.next();!c.done;c=h.next())c=c.value,U.set(c,u[c]);f=K3(f.type,f.quality,f.itag,f.width,f.height);X.push(new D1(f,U))}}return oD(w.G,X,Me(w,M),!1)}; qe=function(w,M){this.B=w;this.L=M}; jlz=function(w,M,P){var u=[];P=g.G(P);for(var X=P.next();!X.done;X=P.next())if((X=X.value)&&X.url){var U=K3(X.type,"medium","0");u.push(new qe(U,X.url))}return oD(w.G,u,Me(w,M),!1)}; CP1=function(w,M){var P=[],u=K3(M.type,"auto",M.itag);P.push(new qe(u,M.url));return oD(w.G,P,!1,!0)}; xmM=function(w){return w&&taF[w]?taF[w]:null}; Oe_=function(w){switch(w){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 w;default:return"sabr.config"}}; acF=function(w){if(w=w.commonConfig)this.url=w.url,this.urlQueryOverride=w.urlQueryOverride,w.ustreamerConfig&&(this.E$=V8(w.ustreamerConfig)||void 0)}; wER=function(w,M){var P;if(M=M==null?void 0:(P=M.watchEndpointSupportedOnesieConfig)==null?void 0:P.html5PlaybackOnesieConfig)w.jb=new acF(M)}; g.Y3=function(w){w=w===void 0?{}:w;this.languageCode=w.languageCode||"";this.languageName=w.languageName||null;this.kind=w.kind||"";this.name=w.name===void 0?null:w.name;this.displayName=w.displayName||null;this.id=w.id||null;this.B=w.is_servable||!1;this.isTranslateable=w.is_translateable||!1;this.url=w.url||null;this.vssId=w.vss_id||"";this.isDefault=w.is_default||!1;this.translationLanguage=w.translationLanguage||null;this.xtags=w.xtags||"";this.captionId=w.captionId||""}; g.Tt=function(w){var M={languageCode:w.languageCode,languageName:w.languageName,displayName:g.zt(w),kind:w.kind,name:w.name,id:w.id,is_servable:w.B,is_default:w.isDefault,is_translateable:w.isTranslateable,vss_id:w.vssId};w.xtags&&(M.xtags=w.xtags);w.captionId&&(M.captionId=w.captionId);w.translationLanguage&&(M.translationLanguage=w.translationLanguage);return M}; g.dD=function(w){return w.translationLanguage?w.translationLanguage.languageCode:w.languageCode}; g.i8u=function(w){var M=w.vssId;w.translationLanguage&&M&&(M="t"+M+"."+g.dD(w));return M}; g.zt=function(w){var M=[];if(w.displayName)M.push(w.displayName);else{var P=w.languageName||"";M.push(P);w.kind==="asr"&&P.indexOf("(")===-1&&M.push(" (Subt\u00edtulos autom\u00e1ticos)");w.name&&M.push(" - "+w.name)}w.translationLanguage&&M.push(" >> "+w.translationLanguage.languageName);return M.join("")}; XEp=function(w,M,P,u){w||(w=M&&MJ_.hasOwnProperty(M)&&P_H.hasOwnProperty(M)?P_H[M]+"_"+MJ_[M]:void 0);M=w;if(!M)return null;w=M.match(uJ4);if(!w||w.length!==5)return null;if(w=M.match(uJ4)){var X=Number(w[3]),U=[7,8,10,5,6];w=!(Number(w[1])===1&&X===8)&&U.indexOf(X)>=0}else w=!1;return P||u||w?M:null}; lT=function(w,M){for(var P={},u=g.G(Object.keys($SF)),X=u.next();!X.done;X=u.next()){X=X.value;var U=M?M+X:X;U=w[U+"_webp"]||w[U];g.vJ(U)&&(P[$SF[X]]=U)}return P}; Lp=function(w){var M={};if(!w||!w.thumbnails)return M;w=w.thumbnails.filter(function(h){return!!h.url}); w.sort(function(h,c){return h.width-c.width||h.height-c.height}); for(var P=g.G(Object.keys(USl)),u=P.next();!u.done;u=P.next()){var X=Number(u.value);u=USl[X];for(var U=g.G(w),f=U.next();!f.done;f=U.next())if(f=f.value,f.width>=X){X=fnx(f.url);g.vJ(X)&&(M[u]=X);break}}(w=w.pop())&&w.width>=1280&&(w=fnx(w.url),g.vJ(w)&&(M["maxresdefault.jpg"]=w));return M}; fnx=function(w){return w.startsWith("//")?"https:"+w:w}; eg=function(w){return w&&w.baseUrl||""}; B0=function(w){w=g.w$(w);for(var M=g.G(Object.keys(w)),P=M.next();!P.done;P=M.next()){P=P.value;var u=w[P];w[P]=Array.isArray(u)?u[0]:u}return w}; WHy=function(w,M){w.botguardData=M.playerAttestationRenderer.botguardData;M=M.playerAttestationRenderer.challenge;M!=null&&(w.eS=M)}; Z8U=function(w,M){M=g.G(M);for(var P=M.next();!P.done;P=M.next()){P=P.value;var u=P.interstitials.map(function(f){var h=g.A(f,hFx);if(h)return{is_yto_interstitial:!0,raw_player_response:h};if(f=g.A(f,c74))return Object.assign({is_yto_interstitial:!0},OK(f))}); u=g.G(u);for(var X=u.next();!X.done;X=u.next())switch(X=X.value,P.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":w.interstitials=w.interstitials.concat({time:0,playerVars:X,W9:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":w.interstitials=w.interstitials.concat({time:0x7ffffffffffff,playerVars:X,W9:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var U=Number(P.podConfig.timeToInsertAtMillis);w.interstitials=w.interstitials.concat({time:U,playerVars:X, W9:U===0?5:7})}}}; SGU=function(w,M){if(M=M.find(function(P){return!(!P||!P.tooltipRenderer)}))w.tooltipRenderer=M.tooltipRenderer}; H84=function(w,M){M.subscribeCommand&&(w.subscribeCommand=M.subscribeCommand);M.unsubscribeCommand&&(w.unsubscribeCommand=M.unsubscribeCommand);M.addToWatchLaterCommand&&(w.addToWatchLaterCommand=M.addToWatchLaterCommand);M.removeFromWatchLaterCommand&&(w.removeFromWatchLaterCommand=M.removeFromWatchLaterCommand);M.getSharePanelCommand&&(w.getSharePanelCommand=M.getSharePanelCommand)}; pEF=function(w,M){M!=null?(w.jT=M,w.Ym=!0):(w.jT="",w.Ym=!1)}; Qo=function(w,M){this.type=w||"";this.id=M||""}; k3=function(w){return new Qo(w.substring(0,2),w.substring(2))}; RD=function(w,M){this.r$=w;this.author="";this.IX=null;this.playlistLength=0;this.B=this.sessionData=null;this.V={};this.title="";if(M){this.author=M.author||M.playlist_author||"";this.title=M.playlist_title||"";if(w=M.session_data)this.sessionData=tR(w,"&");var P;this.B=((P=M.thumbnail_ids)==null?void 0:P.split(",")[0])||null;this.V=lT(M,"playlist_");this.videoId=M.video_id||void 0;if(P=M.list)switch(M.listType){case "user_uploads":this.playlistId=(new Qo("UU","PLAYER_"+P)).toString();break;default:if(w= M.playlist_length)this.playlistLength=Number(w)||0;this.playlistId=k3(P).toString();if(M=M.video)this.videoId=(M[0]||null).video_id||void 0}else M.playlist&&(this.playlistLength=M.playlist.toString().split(",").length)}}; np=function(w,M){this.r$=w;this.Es=this.author="";this.IX=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Hp=this.lengthText="";this.sessionData=null;this.V={};this.title="";if(M){this.ariaLabel=M.aria_label||void 0;this.author=M.author||"";this.Es=M.Es||"";if(w=M.endscreen_autoplay_session_data)this.IX=tR(w,"&");this.sV=M.sV;this.isLivePlayback=M.live_playback==="1";this.isUpcoming=!!M.isUpcoming;if(w=M.length_seconds)this.lengthSeconds=typeof w==="string"?Number(w):w;this.lengthText= M.lengthText||"";this.Hp=M.Hp||"";this.publishedTimeText=M.publishedTimeText||void 0;if(w=M.session_data)this.sessionData=tR(w,"&");this.shortViewCount=M.short_view_count_text||void 0;this.V=lT(M);this.title=M.title||"";this.videoId=M.docid||M.video_id||M.videoId||M.id||void 0;this.watchUrl=M.watchUrl||void 0}}; FH1=function(w){var M,P,u=(M=w.getWatchNextResponse())==null?void 0:(P=M.contents)==null?void 0:P.twoColumnWatchNextResults,X,U,f,h,c;w=(X=w.getWatchNextResponse())==null?void 0:(U=X.playerOverlays)==null?void 0:(f=U.playerOverlayRenderer)==null?void 0:(h=f.endScreen)==null?void 0:(c=h.watchNextEndScreenRenderer)==null?void 0:c.results;if(!w){var Z,S;w=u==null?void 0:(Z=u.endScreen)==null?void 0:(S=Z.endScreen)==null?void 0:S.results}return w}; g.s_=function(w){var M,P,u;w=g.A((M=w.getWatchNextResponse())==null?void 0:(P=M.playerOverlays)==null?void 0:(u=P.playerOverlayRenderer)==null?void 0:u.decoratedPlayerBarRenderer,v0);return g.A(w==null?void 0:w.playerBar,E7F)}; NuF=function(w){this.B=w.playback_progress_0s_url;this.C=w.playback_progress_2s_url;this.L=w.playback_progress_10s_url}; VJ_=function(){if(Kp===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(M){}a:{try{var w=!!self.localStorage}catch(M){w=!1}if(w&&(w=g.L_(g.IS()+"::yt-player"))){Kp=new QP(w);break a}Kp=void 0}}return Kp}; g.bT=function(){var w=VJ_();if(!w)return{};try{var M=w.get("yt-player-lv");return JSON.parse(M||"{}")}catch(P){return{}}}; g.mS_=function(w){var M=VJ_();M&&(w=JSON.stringify(w),M.set("yt-player-lv",w))}; g.ID=function(w){return g.bT()[w]||0}; g.AW=function(w,M){var P=g.bT();M!==P[w]&&(M!==0?P[w]=M:delete P[w],g.mS_(P))}; g.gD=function(w){return g.n(function(M){return M.return(g.vN(o7l(),w))})}; rD=function(w,M,P,u,X,U,f,h){var c,Z,S,H,p,F;return g.n(function(E){switch(E.L){case 1:return c=g.ID(w),c===4?E.return(4):g.B(E,g.rK(),2);case 2:Z=E.B;if(!Z)throw g.F7("wiac");if(!h||f===void 0){E.M0(3);break}return g.B(E,G1y(h,f),4);case 4:f=E.B;case 3:return S=P.lastModified||"0",g.B(E,g.gD(Z),5);case 5:return H=E.B,g.DU(E,6),JW++,g.B(E,g.Y1(H,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",UF:!0},function(y){if(U!==void 0&&f!==void 0){var q=""+w+"|"+M.id+"|"+S+"|"+String(U).padStart(10, "0");q=g.z$(y.objectStore("media"),f,q)}else q=g.NZ.resolve(void 0);var d=y7H(w,M.VL()),l=y7H(w,!M.VL()),e={fmts:DS_(u),format:P||{}};d=g.z$(y.objectStore("index"),e,d);var R=u.downloadedEndTime===-1;e=R?y.objectStore("index").get(l):g.NZ.resolve(void 0);var I={fmts:"music",format:{}};y=R&&X&&!M.VL()?g.z$(y.objectStore("index"),I,l):g.NZ.resolve(void 0);return g.NZ.all([y,e,q,d]).then(function(w4){w4=g.G(w4);w4.next();w4=w4.next().value;JW--;var t=g.ID(w);if(t!==4&&R&&X||w4!==void 0&&g.qGu(w4.fmts))t= 1,g.AW(w,t);return t})}),8); case 8:return E.return(E.B);case 6:p=g.d4(E);JW--;F=g.ID(w);if(F===4)return E.return(F);g.AW(w,4);throw p;}})}; g.YGM=function(w){var M,P;return g.n(function(u){if(u.L==1)return g.B(u,g.rK(),2);if(u.L!=3){M=u.B;if(!M)throw g.F7("ri");return g.B(u,g.gD(M),3)}P=u.B;return u.return(g.Y1(P,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(X){var U=IDBKeyRange.bound(w+"|",w+"~");return X.objectStore("index").getAll(U).then(function(f){return f.map(function(h){return h?h.format:{}})})}))})}; TuU=function(w,M,P,u,X){var U,f,h;return g.n(function(c){if(c.L==1)return g.B(c,g.rK(),2);if(c.L!=3){U=c.B;if(!U)throw g.F7("rc");return g.B(c,g.gD(U),3)}f=c.B;h=g.Y1(f,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(Z){var S=""+w+"|"+M+"|"+P+"|"+String(u).padStart(10,"0");return Z.objectStore("media").get(S)}); return X?c.return(h.then(function(Z){if(Z===void 0)throw Error("No data from indexDb");return zFH(X,Z)}).catch(function(Z){throw new g.bK("Error while reading chunk: "+Z.name+", "+Z.message); })):c.return(h)})}; g.qGu=function(w){return w?w==="music"?!0:w.includes("dlt=-1")||!w.includes("dlt="):!1}; y7H=function(w,M){return""+w+"|"+(M?"v":"a")}; DS_=function(w){var M={};return xh((M.dlt=w.downloadedEndTime.toString(),M.mket=w.maxKnownEndTime.toString(),M.avbr=w.averageByteRate.toString(),M))}; lnz=function(w){var M={},P={};w=g.G(w);for(var u=w.next();!u.done;u=w.next()){var X=u.value,U=X.split("|");X.match(g.dSz)?(u=Number(U.pop()),isNaN(u)?P[X]="?":(U=U.join("|"),(X=M[U])?(U=X[X.length-1],u===U.end+1?U.end=u:X.push({start:u,end:u})):M[U]=[{start:u,end:u}])):P[X]="?"}w=g.G(Object.keys(M));for(u=w.next();!u.done;u=w.next())u=u.value,P[u]=M[u].map(function(f){return f.start+"-"+f.end}).join(","); return P}; jg=function(w){g.wC.call(this);this.B=null;this.C=new Q6;this.B=null;this.K=new Set;this.crossOrigin=w||""}; LH4=function(w,M,P){for(P=Cp(w,P);P>=0;){var u=w.levels[P];if(u.isLoaded(tW(u,M))&&(u=g.x3(u,M)))return u;P--}return g.x3(w.levels[0],M)}; Bux=function(w,M,P){P=Cp(w,P);for(var u,X;P>=0;P--)if(u=w.levels[P],X=tW(u,M),!u.isLoaded(X)){u=w;var U=P,f=U+"-"+X;u.K.has(f)||(u.K.add(f),u.C.enqueue(U,{G$:U,I1:X}))}eFu(w)}; eFu=function(w){if(!w.B&&!w.C.isEmpty()){var M=w.C.remove();w.B=Q82(w,M)}}; Q82=function(w,M){var P=document.createElement("img");w.crossOrigin&&(P.crossOrigin=w.crossOrigin);P.src=w.levels[M.G$].xa(M.I1);P.onload=function(){var u=M.G$,X=M.I1;w.B!==null&&(w.B.onload=null,w.B=null);u=w.levels[u];u.loaded.add(X);eFu(w);var U=u.columns*u.rows;X*=U;u=Math.min(X+U-1,u.cY()-1);X=[X,u];w.publish("l",X[0],X[1])}; return P}; g.O_=function(w,M,P,u){this.level=w;this.X=M;this.loaded=new Set;this.level=w;this.X=M;w=P.split("#");this.width=Math.floor(Number(w[0]));this.height=Math.floor(Number(w[1]));this.frameCount=Math.floor(Number(w[2]));this.columns=Math.floor(Number(w[3]));this.rows=Math.floor(Number(w[4]));this.B=Math.floor(Number(w[5]));this.C=w[6];this.signature=w[7];this.videoLength=u}; tW=function(w,M){return Math.floor(M/(w.columns*w.rows))}; g.x3=function(w,M){M>=w.xB()&&w.tv();var P=tW(w,M),u=w.columns*w.rows,X=M%u;M=X%w.columns;X=Math.floor(X/w.columns);var U=w.tv()+1-u*P;if(U1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; k1H=function(w,M,P){return(w=w.levels[M])?w.GT(P):-1}; Cp=function(w,M){var P=w.X.get(M);if(P)return P;P=w.levels.length;for(var u=0;u=M)return w.X.set(M,u),u;w.X.set(M,P-1);return P-1}; wN=function(w,M,P,u){P=P.split("#");P=[P[1],P[2],0,P[3],P[4],-1,P[0],""].join("#");g.O_.call(this,w,M,P,0);this.L=null;this.G=u?2:0}; MI=function(w,M,P,u){aD.call(this,w,0,void 0,M,!(u===void 0||!u));for(w=0;w50&&(M=g72.shift())&&fk.delete(M),M=u),u!==M&&w.yj("ssei","dcpn_"+u+"_"+M+"_"+w.clientPlaybackNonce),M)}; $p=function(w,M){var P=M.raw_watch_next_response;if(!P){var u=M.watch_next_response;u&&(P=JSON.parse(u))}if(P){w.xu=P;var X=w.xu.playerCueRangeSet;X&&g.W7(w,X);var U=w.xu.playerOverlays;if(U){var f=U.playerOverlayRenderer;if(f){var h=f.autonavToggle;h&&(w.autoplaySwitchButtonRenderer=g.A(h,J7_),w.D("web_player_autonav_use_server_provided_state")&&hM(w)&&(w.autonavState=w.autoplaySwitchButtonRenderer.enabled?2:1));var c=f.videoDetails;if(c){var Z=c.embeddedPlayerOverlayVideoDetailsRenderer;var S=c.playerOverlayVideoDetailsRenderer; S&&(S.title&&(M.title=g.ff(S.title)),S.subtitle&&(M.subtitle=g.ff(S.subtitle)))}g.r8(w.r$)&&(w.nV=!!f.addToMenu);r7l(w,f.shareButton);f.startPosition&&f.endPosition&&(w.progressBarStartPosition=f.startPosition,w.progressBarEndPosition=f.endPosition);var H=f.gatedActionsOverlayRenderer;H&&(w.An=g.A(H,j8M));var p,F,E,y=g.A((p=w.getWatchNextResponse())==null?void 0:(F=p.playerOverlays)==null?void 0:(E=F.playerOverlayRenderer)==null?void 0:E.infoPanel,C_U);if(y){w.vg=Number(y==null?void 0:y.durationMs)|| NaN;if(y==null?0:y.infoPanelOverviewViewModel)w.gb=y==null?void 0:y.infoPanelOverviewViewModel;if(y==null?0:y.infoPanelDetailsViewModel)w.Zv=y==null?void 0:y.infoPanelDetailsViewModel}w.showSeekingControls=!!f.showSeekingControls}}var q,d,l=(q=w.getWatchNextResponse())==null?void 0:(d=q.contents)==null?void 0:d.twoColumnWatchNextResults;if(l){var e=l.desktopOverlay&&g.A(l.desktopOverlay,tJy);e&&(e.suppressShareButton&&(w.showShareButton=!1),e.suppressWatchLaterButton&&(w.nV=!1))}Z&&xSu(w,M,Z);var R= iK(0,M.autoplay_count),I=w.getWatchNextResponse(),w4,t=(w4=I.contents)==null?void 0:w4.twoColumnWatchNextResults,$M,fz,U1,ZU=($M=I.playerOverlays)==null?void 0:(fz=$M.playerOverlayRenderer)==null?void 0:(U1=fz.autoplay)==null?void 0:U1.playerOverlayAutoplayRenderer,M_=FH1(w),Tp,kM=(Tp=I.contents)==null?void 0:Tp.singleColumnWatchNextResults;if(kM){var w3;if(((w3=kM.autoplay)==null?0:w3.autoplay)&&!kM.playlist){var sE=kM.autoplay.autoplay.sets,Vt={},v5=new np(w.N()),OE=null,pC;if(sE){for(var g3=g.G(sE), MK=g3.next();!MK.done;MK=g3.next()){var T=MK.value.autoplayVideoRenderer;if(T&&T.compactVideoRenderer){OE=T.compactVideoRenderer;break}}if(pC=sE[0].autoplayVideo){var nE=pC.clickTrackingParams;nE&&(Vt.itct=nE);Vt.autonav="1";Vt.playnext=String(R)}}else Vt.feature="related-auto";var ep=g.A(pC,g.c7);if(OE){v5.videoId=OE.videoId;var P5=OE.shortBylineText;P5&&(v5.author=g.ff(P5));var d3=OE.title;d3&&(v5.title=g.ff(d3))}else ep!=null&&ep.videoId&&(v5.videoId=ep.videoId);v5.IX=Vt;w.suggestions=[];w.Xk= v5}}if(M_){for(var D=[],i2=g.G(M_),J5=i2.next();!J5.done;J5=i2.next()){var fQ=J5.value,KC=void 0,g4=null;if(fQ.endScreenVideoRenderer){var O1=fQ.endScreenVideoRenderer,aK=O1.title;g4=new np(w.N());g4.videoId=O1.videoId;g4.lengthSeconds=O1.lengthInSeconds||0;var vT=O1.publishedTimeText;vT&&(g4.publishedTimeText=g.ff(vT));var Y=O1.shortBylineText;Y&&(g4.author=g.ff(Y));var m=O1.shortViewCountText;m&&(g4.shortViewCount=g.ff(m));if(aK){g4.title=g.ff(aK);var z=aK.accessibility;if(z){var Q=z.accessibilityData; Q&&Q.label&&(g4.ariaLabel=Q.label)}}var K=O1.navigationEndpoint;if(K){KC=K.clickTrackingParams;var Su=g.A(K,g.c7),J=g.A(K,g.lu);Su?g4.sV=Su:J!=null&&(g4.watchUrl=J.url)}var O=O1.thumbnailOverlays;if(O)for(var k=g.G(O),eu=k.next();!eu.done;eu=k.next()){var IF=eu.value.thumbnailOverlayTimeStatusRenderer;if(IF)if(IF.style==="LIVE"){g4.isLivePlayback=!0;break}else if(IF.style==="UPCOMING"){g4.isUpcoming=!0;break}}g4.V=Lp(O1.thumbnail)}else if(fQ.endScreenPlaylistRenderer){var W5=fQ.endScreenPlaylistRenderer, hx=W5.navigationEndpoint;if(!hx)continue;var l2=g.A(hx,g.c7);if(!l2)continue;var Gp=l2.videoId;g4=new RD(w.N());g4.playlistId=W5.playlistId;g4.playlistLength=Number(W5.videoCount)||0;g4.B=Gp||null;g4.videoId=Gp;var i6=W5.title;i6&&(g4.title=g.ff(i6));var qj=W5.shortBylineText;qj&&(g4.author=g.ff(qj));KC=hx.clickTrackingParams;g4.V=Lp(W5.thumbnail)}g4&&(KC&&(g4.sessionData={itct:KC}),D.push(g4))}w.suggestions=D}if(ZU){w.r_=!!ZU.preferImmediateRedirect;w.SZ=w.SZ||!!ZU.webShowNewAutonavCountdown;w.Z0= w.Z0||!!ZU.webShowBigThumbnailEndscreen;if(w.SZ||w.Z0){var nC=t||null,YM=new np(w.N());YM.videoId=ZU.videoId;var yy=ZU.videoTitle;if(yy){YM.title=g.ff(yy);var Lz=yy.accessibility;if(Lz){var Ba=Lz.accessibilityData;Ba&&Ba.label&&(YM.ariaLabel=Ba.label)}}var YV=ZU.byline;YV&&(YM.author=g.ff(YV));var fE=ZU.publishedTimeText;fE&&(YM.publishedTimeText=g.ff(fE));var zc=ZU.shortViewCountText;zc&&(YM.shortViewCount=g.ff(zc));var wQ=ZU.thumbnailOverlays;if(wQ)for(var Xm=g.G(wQ),Jx=Xm.next();!Jx.done;Jx=Xm.next()){var Qt= Jx.value.thumbnailOverlayTimeStatusRenderer;if(Qt)if(Qt.style==="LIVE"){YM.isLivePlayback=!0;break}else if(Qt.style==="UPCOMING"){YM.isUpcoming=!0;break}else if(Qt.style==="DEFAULT"&&Qt.text){YM.lengthText=g.ff(Qt.text);var dq=Qt.text.accessibility;if(dq){var xw=dq.accessibilityData;xw&&xw.label&&(YM.Hp=xw.label||"")}break}}YM.V=Lp(ZU.background);var Eb=ZU.nextButton;if(Eb){var nP=Eb.buttonRenderer;if(nP){var ij=nP.navigationEndpoint;if(ij){var Ms=g.A(ij,g.c7);Ms&&(YM.sV=Ms)}}}if(ZU.topBadges){var UV= ZU.topBadges[0];if(UV){var Da=g.A(UV,O8R);Da&&Da.style==="BADGE_STYLE_TYPE_PREMIUM"&&(YM.Hx$=!0)}}var QV=ZU.alternativeTitle;QV&&(YM.Es=g.ff(QV));var OV={autonav:"1",playnext:String(R)};YM.playlistId&&(OV.autoplay="1");if(nC){var k8,M3,NG,vA,VU=(k8=nC.autoplay)==null?void 0:(M3=k8.autoplay)==null?void 0:(NG=M3.sets)==null?void 0:(vA=NG[0])==null?void 0:vA.autoplayVideo;if(VU){var P9=VU.clickTrackingParams;P9&&(OV.itct=P9);var m0=g.A(VU,g.c7);m0&&(YM.hs=m0)}}else if(ZU){var uj,XS,$8,UP=(uj=ZU.nextButton)== null?void 0:(XS=uj.buttonRenderer)==null?void 0:($8=XS.navigationEndpoint)==null?void 0:$8.clickTrackingParams;UP&&(OV.itct=UP)}OV.itct||(OV.feature="related-auto");YM.IX=OV;w.suggestions||(w.suggestions=[]);w.Xk=YM}ZU.countDownSecs!=null&&(w.TT=ZU.countDownSecs*1E3);ZU.countDownSecsForFullscreen!=null&&(w.Kj=ZU.countDownSecsForFullscreen>=0?ZU.countDownSecsForFullscreen*1E3:-1);w.D("web_autonav_color_transition")&&ZU.watchToWatchTransitionRenderer&&(w.watchToWatchTransitionRenderer=g.A(ZU.watchToWatchTransitionRenderer, an_))}var oy=FH1(w);if(oy){var fS,f9,Fu,ET=oy==null?void 0:(fS=oy[0])==null?void 0:(f9=fS.endScreenVideoRenderer)==null?void 0:(Fu=f9.navigationEndpoint)==null?void 0:Fu.clickTrackingParams,Lh=g.Zw(w);ET&&Lh&&(Lh.sessionData={itct:ET})}w.xu.currentVideoThumbnail&&(w.V=Lp(w.xu.currentVideoThumbnail));var n9,v9,sP,Ma,eV,Vj=(n9=w.xu)==null?void 0:(v9=n9.contents)==null?void 0:(sP=v9.twoColumnWatchNextResults)==null?void 0:(Ma=sP.results)==null?void 0:(eV=Ma.results)==null?void 0:eV.contents;if(Vj&&Vj[1]){var Bh, PX,K9,q3,GQ=(Bh=Vj[1].videoSecondaryInfoRenderer)==null?void 0:(PX=Bh.owner)==null?void 0:(K9=PX.videoOwnerRenderer)==null?void 0:(q3=K9.thumbnail)==null?void 0:q3.thumbnails;GQ&&GQ.length&&(w.profilePicture=GQ[GQ.length-1].url)}var vi=uK(M),uO,Nn=(uO=w.getWatchNextResponse())==null?void 0:uO.onResponseReceivedEndpoints;if(Nn)for(var X4=g.G(Nn),QZ=X4.next();!QZ.done;QZ=X4.next()){var kX=QZ.value;g.A(kX,Sx)&&(w.H6=g.A(kX,Sx));var UY=g.A(kX,w8F),Ay=void 0;if((Ay=UY)==null?0:Ay.entityKeys)w.hI=UY.entityKeys|| [],UY.visibleOnLoadKeys&&(w.visibleOnLoadKeys=UY.visibleOnLoadKeys)}if(w.D("web_key_moments_markers")){var WV=g.H7.getState().entities,UZ=g.rt("visibility_override","markersVisibilityOverrideEntity");var sK=CF(WV,"markersVisibilityOverrideEntity",UZ);w.jL=(sK==null?void 0:sK.videoId)===(w.videoId||vi)&&(sK==null?0:sK.visibilityOverrideMarkersKey)?sK.visibilityOverrideMarkersKey:w.visibleOnLoadKeys;w.visibleOnLoadKeys=[].concat(g.L(w.jL))}}}; hM=function(w){var M;return((M=w.autoplaySwitchButtonRenderer)==null?void 0:M.enabled)!==void 0}; pk=function(w){return!!(w.C&&w.C.videoInfos&&w.C.videoInfos.length)}; g.oI=function(w){var M=w.j;w.D("html5_gapless_unlimit_format_selection")&&FM(w)&&(M=!1);var P=!!w.B&&w.B.dK,u=w.r$,X=w.bz(),U=Ep(w),f=w.t9,h=M,c=w.isOtf();M=w.Aj();var Z=w.Z3,S=w.getUserAudio51Preference(),H=NI(w),p=VN(w),F=new Rtl(u);if(u.FX()||u.D("html5_logging_format_selection"))F.L=!0;F.eL=U;F.t9=f&&u.V;F.ys=S;g.vF("windows nt 5.1")&&!g.$I&&(F.P9=!0);if(U=X)U=g.Sg(u)?Yw_(u):!1;U&&(F.B3=!0);h&&(F.P9=!0,F.VE=!0);c&&!u.D("html5_otf_prefer_vp9")&&(F.P9=!0);u.playerStyle==="picasaweb"&&(c&&(F.P9= !1),F.Lu=!1);Z&&(F.P9=!0);vL(u.G,sq.CHANNELS)&&(u.D("html5_enable_ac3")&&(F.X=!0),u.D("html5_enable_eac3")&&(F.G=!0),u.D("html5_enable_ac3_gapless")&&(F.Cu=!0));u.D("html5_block_8k_hfr")&&(F.Yu=!0);F.K=g.Oh(u.experiments,"html5_max_selectable_quality_ordinal");F.j=g.Oh(u.experiments,"html5_min_selectable_quality_ordinal");n7&&(F.QE=480);if(P||X)F.Lu=!1;F.jL=!1;F.disableAv1=H;P=xY(u,F.B,void 0,F.disableAv1);P>0&&P<2160&&(MV()||u.D("html5_format_hybridization"))&&(F.B.supportsChangeType=+MV(),F.yq= P);P>=2160&&(F.mN=!0);MT2()&&!u.D("disable_av1_setting")&&(F.B.serveVp9OverAv1IfHigherRes=0,F.sb=!1);F.Aj=M;F.UO=g.Im||xS()&&!M?!1:!0;F.V=u.D("html5_format_hybridization");F.bW=u.D("html5_disable_encrypted_vp9_live_non_2k_4k");F.cj=p;mC(w)&&(F.TE=w.D("html5_prefer_language_over_codec"));bL()&&w.playerResponse&&w.playerResponse.playerConfig&&w.playerResponse.playerConfig.webPlayerConfig&&w.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(F.X=!0,F.G=!0);w.j&&w.isAd()&&(w.mu&& (F.S=w.mu),w.JX&&(F.C=w.JX));F.xu=w.isLivePlayback&&w.d5()&&w.r$.D("html5_drm_live_audio_51");F.Z3=w.SR;F.fg=!mC(w);return w.Kx=F}; NI=function(w){return w.r$.D("html5_disable_av1")||w.D("html5_gapless_shorts_disable_av1")&&FM(w)?!0:!1}; iY5=function(w){yc("drm_pb_s",void 0,w.S);w.OO||w.B&&BL(w.B);var M={};w.B&&(M=pZ1(w.U7,g.oI(w),w.r$.G,w.B,function(P){return w.publish("ctmp","fmtflt",P)},!0,new Set)); M=new WM(M,w.r$,w.LB,w.useCobaltWidevine?bL()?G3(w):!1:!1,function(P,u){w.II(P,u)}); g.b(w,M);w.Sd=!1;w.loading=!0;KIU(M,function(P){yc("drm_pb_f",void 0,w.S);for(var u=g.G(P),X=u.next();!X.done;X=u.next())switch(X=X.value,X.flavor){case "fairplay":X.OO=w.OO;X.xO=w.xO;X.s7=w.s7;break;case "widevine":X.f$=w.f$}w.La=P;if(w.La.length>0&&(w.G=w.La[0],w.r$.FX())){P={};u=g.G(Object.entries(w.G.B));for(X=u.next();!X.done;X=u.next()){var U=g.G(X.value);X=U.next().value;U=U.next().value;var f="unk";(X=X.match(/(.*)codecs="(.*)"/))&&(f=X[2]);P[f]=U}w.II("drmProbe",P)}w.ZF()})}; MLp=function(w,M){if(M.length===0||yN(w))return null;w.r$.G.C&&(jj=!0);var P=w.Ks;var u=w.lengthSeconds,X=w.isLivePlayback,U=w.Gt,f=w.r$,h=omR(M);if(X||U){f=f.experiments;u=new ej("",f,!0);u.L=!U;u.dK=!0;u.isManifestless=!0;u.isLive=!U;u.Gt=U;M=g.G(M);for(X=M.next();!X.done;X=M.next()){var c=X.value;X=kY(c,P);h=ri(c);h=nM(h.Te||c.url||"",h.Ky,h.s);var Z=h.get("id");Z&&Z.includes("%7E")&&(u.S=!0);var S=void 0;Z=(S=f)==null?void 0:S.nu("html5_max_known_end_time_rebase");S=Number(c.targetDurationSec|| 5);c=Number(c.maxDvrDurationSec||14400);var H=Number(h.get("mindsq")||h.get("min_sq")||"0"),p=Number(h.get("maxdsq")||h.get("max_sq")||"0")||Infinity;u.yL=u.yL||H;u.Xc=u.Xc||p;var F=!sI(X.mimeType);h&&dr(u,new Sj(h,X,{n6:S,WC:F,g8:c,yL:H,Xc:p,wj:300,Gt:U,Zb:Z}))}P=u}else if(h==="FORMAT_STREAM_TYPE_OTF"){u=u===void 0?0:u;U=new ej("",f.experiments,!1);U.duration=u||0;f=g.G(M);for(u=f.next();!u.done;u=f.next())u=u.value,M=kY(u,P,U.duration),X=ri(u),(X=nM(X.Te||u.url||"",X.Ky,X.s))&&(M.streamType==="FORMAT_STREAM_TYPE_OTF"? dr(U,new HC(X,M,"sq/0")):dr(U,new YY(X,M,j3(u.initRange),j3(u.indexRange))));U.isOtf=!0;P=U}else{u=u===void 0?0:u;U=new ej("",f.experiments,!1);U.duration=u||0;f=g.G(M);for(u=f.next();!u.done;u=f.next())h=u.value,u=kY(h,P,U.duration),M=j3(h.initRange),X=j3(h.indexRange),Z=ri(h),(h=nM(Z.Te||h.url||"",Z.Ky,Z.s))&&dr(U,new YY(h,u,M,X));P=U}U=w.isLivePlayback&&!w.Gt&&!w.B3&&!w.isPremiere;w.D("html5_live_head_playable")&&(!Dw(w)&&U&&w.II("missingLiveHeadPlayable",{}),w.r$.B3==="yt"&&(P.eL=!0));return P}; yN=function(w){return bL()?!G3(w):AD()?!(!w.OO||!w.D("html5_enable_safari_fairplay")&&Fp()):!1}; G3=function(w){return w.D("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.W7=function(w,M){M=g.G(M);for(var P=M.next();!P.done;P=M.next())if(P=P.value,P.cueRangeSetIdentifier){var u=void 0;w.R2.set(P.cueRangeSetIdentifier,(u=P.playerCueRanges)!=null?u:[])}}; qI=function(w){return!(!w.B||!w.B.isManifestless)}; Yp=function(w){return w.QE?w.isLowLatencyLiveStream&&w.B!=null&&bq(w.B)>=5:w.isLowLatencyLiveStream&&w.B!=void 0&&bq(w.B)>=5}; PsR=function(w){return bL()&&G3(w)?!1:yN(w)&&(g.hP(w.r$)?!w.isLivePlayback:w.hlsvp)||!Fp()||w.qI?!0:!1}; $$M=function(w){w.loading=!0;w.w5=!1;if(u8p(w))g.YGM(w.videoId).then(function(u){X8M(w,u)}).then(function(){w.ZF()}); else{nD(w.VE)||g.Yq(new g.bK("DASH MPD Origin invalid: ",w.VE));var M=w.VE,P=g.Oh(w.r$.experiments,"dash_manifest_version")||4;M=g.p5(M,{mpd_version:P});w.isLowLatencyLiveStream&&w.latencyClass!=="NORMAL"||(M=g.p5(M,{pacing:0}));dVy(M,w.r$.experiments,w.isLivePlayback).then(function(u){w.sO()||(z3(w,u,!0),yc("mrc",void 0,w.S),w.ZF())},function(u){w.sO()||(w.loading=!1,w.publish("dataloaderror",new g.hy("manifest.net.retryexhausted",{backend:"manifest", rc:u.status},1)))}); yc("mrs",void 0,w.S)}}; X8M=function(w,M){var P=M.map(function(c){return c.itag}),u; if((u=w.playerResponse)!=null&&u.streamingData){u=[];if(w.D("html5_offline_always_use_local_formats")){P=0;for(var X=g.G(M),U=X.next();!U.done;U=X.next()){U=U.value;var f=Object.assign({},U);f.signatureCipher="";u.push(f);f=g.G(w.playerResponse.streamingData.adaptiveFormats);for(var h=f.next();!h.done;h=f.next())if(h=h.value,U.itag===h.itag&&U.xtags===h.xtags){P+=1;break}}PS&&(S=F.getInfo().audio.numChannels)}S>2&&w.II("hlschl",{mn:S});var q;((q=w.Kx)==null?0:q.L)&&w.II("hlsfmtaf",{itags:H.join(".")});var d;if(w.D("html5_enable_vp9_fairplay")&&((d=w.G)==null?0:ul(d)))for(w.II("drm",{sbdlfbk:1}),S=g.G(w.La),H=S.next();!H.done;H=S.next())if(H=H.value,PM(H)){w.G=H;break}Lk(w,Z)})}return zZ()}; cXF=function(w){if(w.isExternallyHostedPodcast&&w.wb){var M=lt(w.wb);if(!M[0])return zZ();w.d6$=M[0];return CP1(w.r$,M[0]).then(function(P){Lk(w,P)})}return w.At&&w.N2?jlz(w.r$,w.isAd(),w.At).then(function(P){Lk(w,P)}):zZ()}; S2p=function(w){if(w.isExternallyHostedPodcast)return zZ();var M=lt(w.wb,w.Iy);if(w.hlsvp){var P=RFR(w.hlsvp,w.clientPlaybackNonce,w.sb);M.push(P)}return rQu(w.r$,w.isAd(),M,ZYF(w)).then(function(u){Lk(w,u)})}; Lk=function(w,M){w.DX=M;w.I_(new T8(g.EV(w.DX,function(P){return P.getInfo()})))}; ZYF=function(w){var M={cpn:w.clientPlaybackNonce,c:w.r$.B.c,cver:w.r$.B.cver};w.O7&&(M.ptk=w.O7,M.oid=w.f_,M.ptchn=w.Pd,M.pltype=w.Bd,w.kO&&(M.m=w.kO));return M}; g.ex=function(w){return yN(w)&&w.OO?(w={},w.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",w):w.L&&w.L.Ks||null}; HY2=function(w){var M=B7(w);return M&&M.text?g.ff(M.text):w.paidContentOverlayText}; p81=function(w){var M=B7(w);return M&&M.durationMs?QG(M.durationMs):w.paidContentOverlayDurationMs}; B7=function(w){var M,P,u;return w.playerResponse&&w.playerResponse.paidContentOverlay&&w.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.A((M=w.xu)==null?void 0:(P=M.playerOverlays)==null?void 0:(u=P.playerOverlayRenderer)==null?void 0:u.playerDisclosure,FE5)||null}; QN=function(w){var M="";if(w.dZ)return w.dZ;w.isLivePlayback&&(M=w.allowLiveDvr?"dvr":w.isPremiere?"lp":w.B3?"window":"live");w.Gt&&(M="post");return M}; g.kp=function(w,M){return typeof w.keywords[M]!=="string"?null:w.keywords[M]}; EHl=function(w){return!!w.wz||!!w.Zx||!!w.aj||!!w.QN||w.bU}; g.RI=function(w){return!!(w.VE||w.wb||w.At||w.hlsvp||w.Fl())}; XM=function(w){if(w.D("html5_onesie")&&w.errorCode)return!1;var M=g.o$(w.Lu,"ypc");w.ypcPreview&&(M=!1);return w.Nf()&&!w.loading&&(g.RI(w)||g.o$(w.Lu,"heartbeat")||M)}; lt=function(w,M){w=ag(w);var P={};if(M){M=g.G(M.split(","));for(var u=M.next();!u.done;u=M.next())(u=u.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(P[u[1]]={width:u[2],height:u[3]})}M=g.G(w);for(u=M.next();!u.done;u=M.next()){u=u.value;var X=P[u.itag];X&&(u.width=X.width,u.height=X.height)}return w}; r7l=function(w,M){w.showShareButton=!!M;var P,u,X=((P=g.A(M,g.OG))==null?void 0:P.navigationEndpoint)||((u=g.A(M,g.OG))==null?void 0:u.command);X&&(w.Qn=!!g.A(X,NZH))}; n7y=function(w,M){var P=M.raw_embedded_player_response;if(!P){var u=M.embedded_player_response;u&&(P=JSON.parse(u))}P&&(w.gh=P);if(w.gh){w.embeddedPlayerConfig=w.gh.embeddedPlayerConfig||null;if(P=w.gh.videoFlags)P.playableInEmbed&&(w.allowEmbed=!0),P.isPrivate&&(w.isPrivate=!0),P.userDisplayName&&(M.user_display_name=P.userDisplayName),P.userDisplayImage&&(M.user_display_image=P.userDisplayImage);if(P=w.gh.embedPreview){P=P.thumbnailPreviewRenderer;pEF(w,P.controlBgHtml);if(u=P.defaultThumbnail)w.V= Lp(u);w.D("embeds_web_enable_search_button")&&P.searchButton&&(u=g.A(P.searchButton,g.OG))&&(w.Gt0=g.A(u.navigationEndpoint,g.nk));(u=g.A(P==null?void 0:P.videoDetails,VLR))&&xSu(w,M,u);u=g.A(P==null?void 0:P.videoDetails,m$y);w.nV=!!P.addToWatchLaterButton;r7l(w,P.shareButton);if(u==null?0:u.musicVideoType)w.musicVideoType=u.musicVideoType;var X,U,f,h,c;if(u=g.A((X=w.getEmbeddedPlayerResponse())==null?void 0:(U=X.embedPreview)==null?void 0:(f=U.thumbnailPreviewRenderer)==null?void 0:(h=f.playButton)== null?void 0:(c=h.buttonRenderer)==null?void 0:c.navigationEndpoint,g.c7))wER(w,u),w.videoId=u.videoId||w.videoId;P.videoDurationSeconds&&(w.lengthSeconds=QG(P.videoDurationSeconds));P.webPlayerActionsPorting&&H84(w,P.webPlayerActionsPorting);if(X=g.A(P==null?void 0:P.playlist,oH5)){w.AQ=!0;U=[];f=Number(X.currentIndex);if(X.contents)for(h=0,c=X.contents.length;h0:w.TD?!1:w.r$.Q8||w.r$.w5||!g.K7(w.r$)?!0:!1:(w.TD?0:w.kD)&&g.K7(w.r$)?!0:!1;w.D("html5_log_detailpage_autoplay")&&jx(w)==="detailpage"&&w.II("autoplay_info",{autoplay:w.cZ,autonav:w.isAutonav,wasDompaused:w.TD,result:M});return M}; g.Op=function(w){return w.oauthToken||w.r$.dh}; LE4=function(w){if(w.D("html5_stateful_audio_normalization")){var M=1,P=g.Oh(w.r$.experiments,"html5_default_ad_gain");P&&w.isAd()&&(M=P);var u,X;P=(X=(u=w.X)==null?void 0:u.audio.X)!=null?X:w.kK;if(P==null||isNaN(P))w=lzp(w);else{u=(0,g.G$)();w.cC=2;X=u-w.r$.Zv<=w.maxStatefulTimeThresholdSec*1E3;w.applyStatefulNormalization&&X?w.cC=4:X||(w.r$.oE=Infinity,w.r$.Zv=NaN);X=(w.cC===4?g.bi(w.r$.oE,w.minimumLoudnessTargetLkfs,w.loudnessTargetLkfs):w.loudnessTargetLkfs)-P;if(w.cC!==4){var U,f,h,c,Z=((U= w.playerResponse)==null?void 0:(f=U.playerConfig)==null?void 0:(h=f.audioConfig)==null?void 0:(c=h.loudnessNormalizationConfig)==null?void 0:c.statelessLoudnessAdjustmentGain)||0;X+=Z}X=Math.min(X,0);w.preserveStatefulLoudnessTarget&&(w.r$.oE=P+X,w.r$.Zv=u);w=Math.min(1,Math.pow(10,X/20))||M}}else w=lzp(w);return w}; lzp=function(w){var M=1,P=g.Oh(w.r$.experiments,"html5_default_ad_gain");P&&w.isAd()&&(M=P);if(w.r$.experiments.nu("html5_audio_gain_null_coalescing")){var u,X;P=(X=(u=w.X)==null?void 0:u.audio.C)!=null?X:w.Ob;P==0&&w.II("db0fix",{rldb:w.Ob},!0)}else{var U;P=((U=w.X)==null?void 0:U.audio.C)||w.Ob}isNaN(P)||(w.cC=1);return Math.min(1,Math.pow(10,-P/20))||M}; Ep=function(w){var M=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],P=Z9(w.r$)==="TVHTML5_SIMPLY"&&w.r$.B.ctheme==="MUSIC";!w.jU&&(g.LW(w.r$)||g.hW(w.r$)||P)&&(M.includes(w.musicVideoType)||w.isExternallyHostedPodcast)&&(w.jU=!0);if(M=g.KB())M=/Starboard\/([0-9]+)/.exec(g.RK()),M=(M?parseInt(M[1],10):NaN)<10;P=w.r$;P=(Z9(P)==="TVHTML5_CAST"||Z9(P)==="TVHTML5"&&(P.B.cver.startsWith("6.20130725")||P.B.cver.startsWith("6.20130726")))&&w.r$.B.ctheme==="MUSIC";var u;if(u=!w.jU)P||(P= w.r$,P=Z9(P)==="TVHTML5"&&P.B.cver.startsWith("7")),u=P;u&&!M&&(M=w.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",P=(w.D("cast_prefer_audio_only_for_atv_and_uploads")||w.D("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&w.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",M||P||w.isExternallyHostedPodcast)&&(w.jU=!0);return w.r$.deviceIsAudioOnly||w.jU&&w.r$.V}; VN=function(w){var M,P,u;return((M=w.playerResponse)==null?void 0:(P=M.playerConfig)==null?void 0:(u=P.compositeVideoConfig)==null?void 0:u.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; eau=function(w){var M,P,u,X=(M=w.playerResponse)==null?void 0:(P=M.playerConfig)==null?void 0:(u=P.compositeVideoConfig)==null?void 0:u.sourceConfigs,U,f,h;w=(U=w.playerResponse)==null?void 0:(f=U.playerConfig)==null?void 0:(h=f.compositeVideoConfig)==null?void 0:h.defaultActiveSourceVideoId;if(!X||!w)return"";X=g.G(X);for(U=X.next();!U.done;U=X.next())if(U=U.value,U.videoId===w&&U.audioTracks)for(U=g.G(U.audioTracks),f=U.next();!f.done;f=U.next())if(f=f.value,f.isDefaultForSource)return f.id||""; return""}; g.BZl=function(w){return w.D("html5_enable_sabr_live_captions")&&w.dK()&&mC(w)||VN(w)}; aI=function(w){var M,P,u;return!!((M=w.playerResponse)==null?0:(P=M.playerConfig)==null?0:(u=P.mediaCommonConfig)==null?0:u.splitScreenEligible)}; wI=function(w){var M;return!((M=w.playerResponse)==null||!M.compositePlayabilityStatus)}; QQH=function(w){return isNaN(w)?0:Math.max((Date.now()-w)/1E3-30,0)}; iD=function(w){return!(!w.KK||!w.r$.V)&&w.Fl()}; Ml=function(w){return w.Fs&&w.enableServerStitchedDai}; k21=function(w){return w.uI&&!w.dh}; mC=function(w){var M=w.D("html5_enable_sabr_on_drive")&&w.r$.B3==="gd";if(w.wl)return w.uI&&w.II("fds",{fds:!0},!0),!1;if(w.r$.B3!=="yt"&&!M)return w.uI&&w.II("dsvn",{ns:w.r$.B3},!0),!1;if(w.cotn||!w.B||w.B.isOtf&&!w.D("html5_enable_sabr_otf_in_client")||w.C&&!w.C.B||w.R_&&!w.D("html5_enable_sabr_csdai"))return!1;if(w.D("html5_use_sabr_requests_for_debugging"))return!0;w.uI&&w.II("esfw",{usbc:w.uI,hsu:!!w.dh},!0);if(w.uI&&w.dh)return!0;if(w.D("html5_remove_client_sabr_determination"))return!1;var P= !w.B.dK&&!w.d5();M=P&&SY&&w.D("html5_enable_sabr_vod_streaming_xhr");P=P&&!SY&&w.D("html5_enable_sabr_vod_non_streaming_xhr");var u=PV(w),X=w.D("html5_enable_sabr_drm_vod_streaming_xhr")&&SY&&w.d5()&&!w.B.dK&&(w.drmProduct==="1"?!1:!0);(M=M||P||u||X)&&!w.dh&&w.II("sabr",{loc:"m"},!0);return M&&!!w.dh}; PV=function(w){var M;if(!(M=SY&&w.dK()&&w.d5()&&(w.drmProduct==="1"?!1:!0)&&w.D("html5_sabr_live_drm_streaming_xhr"))){M=w.dK()&&!w.d5()&&SY;var P=w.dK()&&w.latencyClass!=="ULTRALOW"&&!w.isLowLatencyLiveStream&&w.D("html5_sabr_live_normal_latency_streaming_xhr"),u=w.isLowLatencyLiveStream&&w.D("html5_sabr_live_low_latency_streaming_xhr"),X=w.latencyClass==="ULTRALOW"&&w.D("html5_sabr_live_ultra_low_latency_streaming_xhr");M=M&&(P||u||X)}P=M;M=w.enableServerStitchedDai&&P&&w.D("html5_enable_sabr_ssdai_streaming_xhr"); P=!w.enableServerStitchedDai&&P;u=w.dK()&&!SY&&w.D("html5_enable_sabr_live_non_streaming_xhr");w=SY&&(w.VH()||aI(w)&&w.D("html5_enable_sabr_for_lifa_eligible_streams"));return M||P||u||w}; u8p=function(w){var M;if(M=!!w.cotn)M=w.videoId,M=!!M&&g.ID(M)===1;return M&&!w.KK}; g.uD=function(w){if(!w.B||!w.L||!w.X)return!1;var M=w.B.B,P=!!M[w.L.id]&&AN(M[w.L.id].EF.B);M=!!M[w.X.id]&&AN(M[w.X.id].EF.B);return(w.L.itag==="0"||P)&&M}; XO=function(w){return w.gz?["OK","LIVE_STREAM_OFFLINE"].includes(w.gz.status):!0}; G2U=function(w){return(w=w.qg)&&w.showError?w.showError:!1}; $t=function(w,M){return w.D(M)?!0:(w.fflags||"").includes(M+"=true")}; A72=function(w,M){M.inlineMetricEnabled&&(w.inlineMetricEnabled=!0);M.playback_progress_0s_url&&(w.QN=new NuF(M));if(M=M.video_masthead_ad_quartile_urls)w.Zx=M.quartile_0_url,w.MH=M.quartile_25_url,w.y4=M.quartile_50_url,w.tN=M.quartile_75_url,w.C_=M.quartile_100_url,w.aj=M.quartile_0_urls,w.VI=M.quartile_25_urls,w.BL=M.quartile_50_urls,w.L2=M.quartile_75_urls,w.hY=M.quartile_100_urls}; InF=function(w){var M={};w=g.G(w);for(var P=w.next();!P.done;P=w.next()){P=P.value;var u=P.split("=");u.length===2?M[u[0]]=u[1]:M[P]=!0}return M}; s84=function(w){if(w){if(VRx(w))return w;w=mU1(w);if(VRx(w,!0))return w}return""}; g.Ray=function(w){return w.captionsLanguagePreference||w.r$.captionsLanguagePreference||g.kp(w,"yt:cc_default_lang")||w.r$.SZ}; Ur=function(w){return!(!w.isLivePlayback||!w.hasProgressBarBoundaries())}; g.Zw=function(w){var M;return w.Xk||((M=w.suggestions)==null?void 0:M[0])||null}; g.f$=function(w){return w.Ym&&(w.D("embeds_enable_pfp_always_unbranded")||w.r$.m$)}; g.h$=function(w){var M,P;return!!((M=w.embeddedPlayerConfig)==null?0:(P=M.embeddedPlayerFlags)==null?0:P.enableMusicUx)}; nH2=function(w){return w.j||w.D("web_player_media_session_infinity")&&w.isLivePlayback}; cV=function(w){return w.r$.X&&w.isPrivate}; g.Sq=function(w){var M=w.N(),P=g.Z5(M),u=M.VE;(M.D("embeds_web_enable_iframe_api_send_full_embed_url")||M.D("embeds_web_enable_rcat_validation_in_havs")||M.D("embeds_enable_autoplay_and_visibility_signals"))&&g.r8(M)&&(u&&(P.thirdParty=Object.assign({},P.thirdParty,{embedUrl:u})),$LF(P,w));if(u=w.UO)P.clickTracking={clickTrackingParams:u};else if(g.r8(w.N())&&g.AR("EVENT_ID"))P.clickTracking={clickTrackingParams:g.AR("EVENT_ID")};else if(M.D("html5_log_missing_itct")){var X;u=new g.bK("Missing ITCT in InnerTubeContext", {isAd:w.isAd(),u$$:(X=M.getWebPlayerContextConfig())==null?void 0:X.contextId});g.qU(u)}X=P.client||{};u="EMBED";var U=jx(w);U==="leanback"?u="WATCH":M.D("gvi_channel_client_screen")&&U==="profilepage"?u="CHANNEL":w.Z3?u="LIVE_MONITOR":U==="detailpage"?u="WATCH_FULL_SCREEN":U==="adunit"?u="ADUNIT":U==="sponsorshipsoffer"&&(u="UNKNOWN");X.clientScreen=u;if(M=w.kidsAppInfo)X.kidsAppInfo=JSON.parse(M);(u=w.XC)&&!M&&(X.kidsAppInfo={contentSettings:{ageUpMode:vHp[u]}});if(M=w.DZ)X.unpluggedAppInfo={enableFilterMode:!0}; (u=w.unpluggedFilterModeType)&&!M&&(X.unpluggedAppInfo={filterModeType:sQR[u]});if(M=w.DO)X.unpluggedLocationInfo=M;P.client=X;X=P.request||{};w.Bb&&(X.isPrefetch=!0);if(M=w.mdxEnvironment)X.mdxEnvironment=M;if(M=w.mdxControlMode)X.mdxControlMode=KEl[M];P.request=X;X=P.user||{};if(M=w.Cu)X.credentialTransferTokens=[{token:M,scope:"VIDEO"}];if(M=w.KT)X.delegatePurchases={oauthToken:M},X.kidsParent={oauthToken:M};P.user=X;if(X=w.contextParams)P.activePlayers=[{playerContextParams:X}];if(w=w.clientScreenNonce)P.clientScreenNonce= w;return P}; g.Z5=function(w){var M=g.Jb(),P=M.client||{};if(w.forcedExperiments){var u=w.forcedExperiments.split(","),X=[];u=g.G(u);for(var U=u.next();!U.done;U=u.next())X.push(Number(U.value));P.experimentIds=X}if(X=w.homeGroupInfo)P.homeGroupInfo=JSON.parse(X);if(X=w.getPlayerType())P.playerType=X;if(X=w.B.ctheme)P.theme=X;if(X=w.livingRoomAppMode)P.tvAppInfo=Object.assign({},P.tvAppInfo,{livingRoomAppMode:X});X=w.deviceYear;w.D("html5_propagate_device_year")&&X&&(P.tvAppInfo=Object.assign({},P.tvAppInfo,{deviceYear:X})); if(X=w.livingRoomPoTokenId)P.tvAppInfo=Object.assign({},P.tvAppInfo,{livingRoomPoTokenId:X});M.client=P;P=M.user||{};w.enableSafetyMode&&(P=Object.assign({},P,{enableSafetyMode:!0}));w.pageId&&(P=Object.assign({},P,{onBehalfOfUser:w.pageId}));M.user=P;P=w.VE;w.D("embeds_web_enable_iframe_api_send_full_embed_url")||w.D("embeds_web_enable_rcat_validation_in_havs")||w.D("embeds_enable_autoplay_and_visibility_signals")||!P||(M.thirdParty={embedUrl:P});return M}; rXF=function(w,M,P){var u=w.videoId,X=g.Sq(w),U=w.N(),f={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(NW()),referer:document.location.toString(),signatureTimestamp:20269};g.kF();w.isAutonav&&(f.autonav=!0);g.RS(0,141)&&(f.autonavState=g.RS(0,140)?"STATE_OFF":"STATE_ON");f.autoCaptionsDefaultOn=g.RS(0,66);d$y(w)&&(f.autoplay=!0);U.V&&w.cycToken&&(f.cycToken=w.cycToken);U.enablePrivacyFilter&&(f.enablePrivacyFilter=!0);w.isFling&&(f.fling=!0);var h=w.forceAdsUrl;if(h){var c={},Z=[];h= h.split(",");h=g.G(h);for(var S=h.next();!S.done;S=h.next()){S=S.value;var H=S.split("|");H.length!==3||S.includes("=")||(H[0]="breaktype="+H[0],H[1]="offset="+H[1],H[2]="url="+H[2]);S={adtype:"video_ad"};H=g.G(H);for(var p=H.next();!p.done;p=H.next()){var F=g.G(p.value.split("="));p=F.next().value;F=X5l(F);S[p]=F.join("=")}H=S.url;p=S.presetad;F=S.viralresponseurl;var E=Number(S.campaignid);if(S.adtype==="in_display_ad")H&&(c.url=H),p&&(c.presetAd=p),F&&(c.viralAdResponseUrl=F),E&&(c.viralCampaignId= String(E));else if(S.adtype==="video_ad"){var y={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(S.offset)||0)}};if(S=bY4[S.breaktype])y.breakType=S;H&&(y.url=H);p&&(y.presetAd=p);F&&(y.viralAdResponseUrl=F);E&&(y.viralCampaignId=String(E));Z.push(y)}}f.forceAdParameters={videoAds:Z,inDisplayAd:c}}w.isInlinePlaybackNoAd&&(f.isInlinePlaybackNoAd=!0);w.isLivingRoomDeeplink&&(f.isLivingRoomDeeplink=!0);c=w.KP;if(c!=null){c={startWalltime:String(c)};if(Z=w.Gl)c.manifestDuration=String(Z||14400); f.liveContext=c}if(w.mutedAutoplay){f.mutedAutoplay=!0;c=U.getWebPlayerContextConfig();var q,d;(c==null?0:(q=c.embedsHostFlags)==null?0:q.allowMutedAutoplayDurationMode)&&(c==null?0:(d=c.embedsHostFlags)==null?0:d.allowMutedAutoplayDurationMode.includes(Izp[w.mutedAutoplayDurationMode]))&&(f.mutedAutoplayDurationMode=Izp[w.mutedAutoplayDurationMode])}if(w.TD?0:w.kD)f.splay=!0;q=w.vnd;q===5&&(f.vnd=q);q={};if(d=w.isMdxPlayback)q.triggeredByMdx=d;if(d=w.Yl)q.skippableAdsSupported=d.split(",").includes("ska"); if(Z=w.wk){d=w.IT;c=[];Z=g.G(ULM(Z));for(h=Z.next();!h.done;h=Z.next()){h=h.value;S=h.platform;h={applicationState:h.A6?"INACTIVE":"ACTIVE",clientFormFactor:AX2[S]||"UNKNOWN_FORM_FACTOR",clientName:WeU[h.Kf]||"UNKNOWN_INTERFACE",clientVersion:h.deviceVersion||"",platform:gHz[S]||"UNKNOWN_PLATFORM"};S={};if(d){H=void 0;try{H=JSON.parse(d)}catch(e){g.Yq(e)}H&&(S={params:[{key:"ms",value:H.ms}]},H.advertising_id&&(S.advertisingId=H.advertising_id),H.limit_ad_tracking!==void 0&&H.limit_ad_tracking!== null&&(S.limitAdTracking=H.limit_ad_tracking),h.osName=H.os_name,h.userAgent=H.user_agent,h.windowHeightPoints=H.window_height_points,h.windowWidthPoints=H.window_width_points)}c.push({adSignalsInfo:S,remoteClient:h})}q.remoteContexts=c}d=w.sourceContainerPlaylistId;c=w.serializedMdxMetadata;if(d||c)Z={},d&&(Z.mdxPlaybackContainerInfo={sourceContainerPlaylistId:d}),c&&(Z.serializedMdxMetadata=c),q.mdxPlaybackSourceContext=Z;f.mdxContext=q;q=M.width;q>0&&(f.playerWidthPixels=Math.round(q));if(M=M.height)f.playerHeightPixels= Math.round(M);P!==0&&(f.vis=P);if(P=U.widgetReferrer)f.widgetReferrer=P.substring(0,128);g.K7(U)&&f&&(f.ancestorOrigins=U.ancestorOrigins);w.defaultActiveSourceVideoId&&(f.compositeVideoContext={defaultActiveSourceVideoId:w.defaultActiveSourceVideoId});if(U=U.getWebPlayerContextConfig())f.encryptedHostFlags=U.encryptedHostFlags;u={videoId:u,context:X,playbackContext:{contentPlaybackContext:f}};if(w.RO){var l;u.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(l=w.RO)==null?void 0:l.reloadPlaybackParams}}w.contentCheckOk&& (u.contentCheckOk=!0);if(l=w.clientPlaybackNonce)u.cpn=l;if(l=w.playerParams)u.params=l;if(l=w.playlistId)u.playlistId=l;w.racyCheckOk&&(u.racyCheckOk=!0);l=w.N();if(X=l.embedConfig)u.serializedThirdPartyEmbedConfig=X;u.captionParams={};X=g.RS(g.kF(),65);w.deviceCaptionsOn!=null?u.captionParams.deviceCaptionsOn=w.deviceCaptionsOn:g.fp(l)&&(u.captionParams.deviceCaptionsOn=X!=null?!X:!1);w.VQ&&(u.captionParams.deviceCaptionsLangPref=w.VQ);w.bG.length?u.captionParams.viewerSelectedCaptionLangs=w.bG: g.fp(l)&&(X=g.pr(),X==null?0:X.length)&&(u.captionParams.viewerSelectedCaptionLangs=X);X=w.fetchType==="onesie"&&w.D("html5_onesie_attach_po_token");f=w.fetchType!=="onesie"&&w.D("html5_non_onesie_attach_po_token");if(X||f)X=w.N(),X.pV&&(u.serviceIntegrityDimensions={},u.serviceIntegrityDimensions.poToken=X.pV);l.D("fetch_att_independently")&&(u.attestationRequest={omitBotguardData:!0});u.playbackContext||(u.playbackContext={});u.playbackContext.devicePlaybackCapabilities=JXy(w);u.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&w.II("noVp9",{});return u}; JXy=function(w){var M=!(w==null?0:w.Aj())&&(w==null?void 0:w.dK())&&xS(),P;if(!(P=w==null)){P=g.oI(w);w=w.N().G;var u=Vo("243");P=!(u&&eB(P,u,w,!0)===!0)}return{supportsVp9Encoding:!(P||M),supportXhr:SY}}; CsF=function(w,M){var P,u,X;return g.n(function(U){if(U.L==1)return P={context:g.Z5(w.N()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:w.videoId,cpn:w.clientPlaybackNonce}}]},u=g.CW(jQp),g.B(U,g.LU(M,P,u),2);X=U.B;return U.return(X)})}; tL2=function(w,M,P){var u=g.Oh(M.experiments,"bg_vm_reinit_threshold");(!aJ||(0,g.G$)()-aJ>u)&&CsF(w,P).then(function(X){X&&(X=X.botguardData)&&g.iW(X,M)},function(X){w.sO()||(X=Zv(X),w.II("attf",X.details))})}; HV=function(w,M){g.v.call(this);this.app=w;this.state=M}; FO=function(w,M,P){w.state.B.hasOwnProperty(M)||p$(w,M,P);w.state.j[M]=function(){return P.apply(w,g.Kz.apply(0,arguments))}; w.state.K.add(M)}; Er=function(w,M,P){w.state.B.hasOwnProperty(M)||p$(w,M,P);w.app.N().V&&(w.state.V[M]=function(){return P.apply(w,g.Kz.apply(0,arguments))},w.state.K.add(M))}; p$=function(w,M,P){w.state.B[M]=function(){return P.apply(w,g.Kz.apply(0,arguments))}}; g.Nl=function(w,M,P){return w.state.B[M].apply(w.state.B,g.L(P))}; V1=function(){g.oC.call(this);this.G=new Map}; mB=function(){g.v.apply(this,arguments);this.element=null;this.K=new Set;this.j={};this.V={};this.B={};this.S=new Set;this.C=new V1;this.L=new V1;this.X=new V1;this.G=new V1}; x$5=function(w,M,P){typeof w==="string"&&(w={mediaContentUrl:w,startSeconds:M,suggestedQuality:P});a:{if((M=w.mediaContentUrl)&&(M=/\/([ve]|embed)\/([^#?]+)/.exec(M))&&M[2]){M=M[2];break a}M=null}w.videoId=M;return oZ(w)}; oZ=function(w,M,P){if(typeof w==="string")return{videoId:w,startSeconds:M,suggestedQuality:P};M={};P=g.G(OYx);for(var u=P.next();!u.done;u=P.next())u=u.value,w[u]&&(M[u]=w[u]);return M}; azF=function(w,M,P,u){if(g.XE(w)&&!Array.isArray(w)){M="playlist list listType index startSeconds suggestedQuality".split(" ");P={};for(u=0;u32&&u.push("hfr");M.isHdr()&&u.push("hdr");M.primaries==="bt2020"&&u.push("wcg");P.video_quality_features=u}}if(w=w.getPlaylistId())P.list=w;return P}; Yt=function(){Gl.apply(this,arguments)}; zl=function(w,M){var P={};if(w.app.N().Lu){w=g.G(PFl);for(var u=w.next();!u.done;u=w.next())u=u.value,M.hasOwnProperty(u)&&(P[u]=M[u]);if(M=P.qoe_cat)w="",typeof M==="string"&&M.length>0&&(w=M.split(",").filter(function(X){return uxF.includes(X)}).join(",")),P.qoe_cat=w; X24(P)}else for(w=g.G($1F),u=w.next();!u.done;u=w.next())u=u.value,M.hasOwnProperty(u)&&(P[u]=M[u]);return P}; X24=function(w){var M=w.raw_player_response;if(!M){var P=w.player_response;P&&(M=JSON.parse(P))}delete w.player_response;delete w.raw_player_response;if(M){w.raw_player_response={streamingData:M.streamingData,playerConfig:M.playerConfig};var u;if((u=M.playbackTracking)==null?0:u.qoeUrl)w.raw_player_response=Object.assign({},w.raw_player_response,{playbackTracking:{qoeUrl:M.playbackTracking.qoeUrl}});M.videoDetails&&(M.videoDetails.videoId||M.videoDetails.lengthSeconds)&&(P={},M.videoDetails.videoId&& (P.videoId=M.videoDetails.videoId),M.videoDetails.lengthSeconds&&(P.lengthSeconds=M.videoDetails.lengthSeconds),w.raw_player_response=Object.assign({},w.raw_player_response,{videoDetails:P}))}}; Tl=function(w,M,P){var u=w.app.Ls(P);if(!u)return 0;w=u-w.app.getCurrentTime(P);return M-w}; foH=function(w){var M=M===void 0?5:M;return w?U1_[w]||M:M}; g.dI=function(){Yt.apply(this,arguments)}; WYl=function(w){p$(w,"getInternalApiInterface",w.getInternalApiInterface);p$(w,"addEventListener",w.g4);p$(w,"removeEventListener",w.LMO);p$(w,"cueVideoByPlayerVars",w.eQ);p$(w,"loadVideoByPlayerVars",w.w9);p$(w,"preloadVideoByPlayerVars",w.lO$);p$(w,"getAdState",w.getAdState);p$(w,"sendAbandonmentPing",w.sendAbandonmentPing);p$(w,"setLoopRange",w.setLoopRange);p$(w,"getLoopRange",w.getLoopRange);p$(w,"setAutonavState",w.setAutonavState);p$(w,"seekTo",w.D6W);p$(w,"seekBy",w.eNu);p$(w,"seekToLiveHead", w.seekToLiveHead);p$(w,"requestSeekToWallTimeSeconds",w.requestSeekToWallTimeSeconds);p$(w,"seekToStreamTime",w.seekToStreamTime);p$(w,"startSeekCsiAction",w.startSeekCsiAction);p$(w,"getStreamTimeOffset",w.getStreamTimeOffset);p$(w,"getVideoData",w.v4);p$(w,"setInlinePreview",w.setInlinePreview);p$(w,"getAppState",w.getAppState);p$(w,"updateLastActiveTime",w.updateLastActiveTime);p$(w,"setBlackout",w.setBlackout);p$(w,"setUserEngagement",w.setUserEngagement);p$(w,"updateSubtitlesUserSettings",w.updateSubtitlesUserSettings); p$(w,"getPresentingPlayerType",w.y$);p$(w,"canPlayType",w.canPlayType);p$(w,"updatePlaylist",w.updatePlaylist);p$(w,"updateVideoData",w.updateVideoData);p$(w,"updateEnvironmentData",w.updateEnvironmentData);p$(w,"sendVideoStatsEngageEvent",w.aCs);p$(w,"productsInVideoVisibilityUpdated",w.productsInVideoVisibilityUpdated);p$(w,"setSafetyMode",w.setSafetyMode);p$(w,"isAtLiveHead",function(M){return w.isAtLiveHead(void 0,M)}); p$(w,"getVideoAspectRatio",w.getVideoAspectRatio);p$(w,"getPreferredQuality",w.getPreferredQuality);p$(w,"getPlaybackQualityLabel",w.getPlaybackQualityLabel);p$(w,"setPlaybackQualityRange",w.VUN);p$(w,"onAdUxClicked",w.onAdUxClicked);p$(w,"getFeedbackProductData",w.getFeedbackProductData);p$(w,"getStoryboardFrame",w.getStoryboardFrame);p$(w,"getStoryboardFrameIndex",w.getStoryboardFrameIndex);p$(w,"getStoryboardLevel",w.getStoryboardLevel);p$(w,"getNumberOfStoryboardLevels",w.getNumberOfStoryboardLevels); p$(w,"getCaptionWindowContainerId",w.getCaptionWindowContainerId);p$(w,"getAvailableQualityLabels",w.getAvailableQualityLabels);p$(w,"addCueRange",w.addCueRange);p$(w,"addUtcCueRange",w.addUtcCueRange);p$(w,"showAirplayPicker",w.showAirplayPicker);p$(w,"dispatchReduxAction",w.dispatchReduxAction);p$(w,"getPlayerResponse",w.qY);p$(w,"getWatchNextResponse",w.Me);p$(w,"getHeartbeatResponse",w.z7);p$(w,"getCurrentTime",w.Yc);p$(w,"getDuration",w.Hn);p$(w,"getPlayerState",w.getPlayerState);p$(w,"getPlayerStateObject", w.Jk);p$(w,"getVideoLoadedFraction",w.getVideoLoadedFraction);p$(w,"getProgressState",w.getProgressState);p$(w,"getVolume",w.getVolume);p$(w,"setVolume",w.mO);p$(w,"isMuted",w.isMuted);p$(w,"mute",w.h1);p$(w,"unMute",w.tG);p$(w,"loadModule",w.loadModule);p$(w,"unloadModule",w.unloadModule);p$(w,"getOption",w.RR);p$(w,"getOptions",w.getOptions);p$(w,"setOption",w.setOption);p$(w,"loadVideoById",w.QM);p$(w,"loadVideoByUrl",w.wI);p$(w,"playVideo",w.zW);p$(w,"loadPlaylist",w.loadPlaylist);p$(w,"nextVideo", w.nextVideo);p$(w,"previousVideo",w.previousVideo);p$(w,"playVideoAt",w.playVideoAt);p$(w,"getDebugText",w.getDebugText);p$(w,"getWebPlayerContextConfig",w.getWebPlayerContextConfig);p$(w,"notifyShortsAdSwipeEvent",w.notifyShortsAdSwipeEvent);p$(w,"getVideoContentRect",w.getVideoContentRect);p$(w,"setSqueezeback",w.setSqueezeback);p$(w,"toggleSubtitlesOn",w.toggleSubtitlesOn);p$(w,"isSubtitlesOn",w.isSubtitlesOn);p$(w,"reportPlaybackIssue",w.reportPlaybackIssue);p$(w,"setAutonav",w.setAutonav);p$(w, "isNotServable",w.isNotServable);p$(w,"channelSubscribed",w.channelSubscribed);p$(w,"channelUnsubscribed",w.channelUnsubscribed);p$(w,"togglePictureInPicture",w.togglePictureInPicture);p$(w,"supportsGaplessAudio",w.supportsGaplessAudio);p$(w,"supportsGaplessShorts",w.supportsGaplessShorts);p$(w,"enqueueVideoByPlayerVars",function(M){return void w.enqueueVideoByPlayerVars(M)}); p$(w,"clearQueue",w.clearQueue);p$(w,"getAudioTrack",w.OR);p$(w,"setAudioTrack",w.wBW);p$(w,"getAvailableAudioTracks",w.jo);p$(w,"getMaxPlaybackQuality",w.getMaxPlaybackQuality);p$(w,"getUserPlaybackQualityPreference",w.getUserPlaybackQualityPreference);p$(w,"getSubtitlesUserSettings",w.getSubtitlesUserSettings);p$(w,"resetSubtitlesUserSettings",w.resetSubtitlesUserSettings);p$(w,"setMinimized",w.setMinimized);p$(w,"setOverlayVisibility",w.setOverlayVisibility);p$(w,"confirmYpcRental",w.confirmYpcRental); p$(w,"queueNextVideo",w.queueNextVideo);p$(w,"handleExternalCall",w.handleExternalCall);p$(w,"logApiCall",w.logApiCall);p$(w,"isExternalMethodAvailable",w.isExternalMethodAvailable);p$(w,"setScreenLayer",w.setScreenLayer);p$(w,"getCurrentPlaylistSequence",w.getCurrentPlaylistSequence);p$(w,"getPlaylistSequenceForTime",w.getPlaylistSequenceForTime);p$(w,"shouldSendVisibilityState",w.shouldSendVisibilityState);p$(w,"syncVolume",w.syncVolume);p$(w,"highlightSettingsMenuItem",w.highlightSettingsMenuItem); p$(w,"openSettingsMenuItem",w.openSettingsMenuItem);p$(w,"getEmbeddedPlayerResponse",w.getEmbeddedPlayerResponse);p$(w,"getVisibilityState",w.getVisibilityState);p$(w,"isMutedByMutedAutoplay",w.isMutedByMutedAutoplay);p$(w,"isMutedByEmbedsMutedAutoplay",w.isMutedByEmbedsMutedAutoplay);p$(w,"setGlobalCrop",w.setGlobalCrop);p$(w,"setInternalSize",w.setInternalSize);p$(w,"setFauxFullscreen",w.setFauxFullscreen);p$(w,"setAppFullscreen",w.setAppFullscreen)}; L$=function(w,M,P){w=g.lD(w.V_(),M);return P?(P.addOnDisposeCallback(w),null):w}; g.eq=function(w,M,P){return w.app.N().Kx?M:g.iM("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:M,SHORTCUT:P})}; hgy=function(w){w.V_().element.setAttribute("aria-live","polite")}; g.BV=function(w,M){g.dI.call(this,w,M);WYl(this);Er(this,"addEventListener",this.Ql);Er(this,"removeEventListener",this.pBW);Er(this,"cueVideoByPlayerVars",this.Gr);Er(this,"loadVideoByPlayerVars",this.jW);Er(this,"preloadVideoByPlayerVars",this.Yr$);Er(this,"loadVideoById",this.QM);Er(this,"loadVideoByUrl",this.wI);Er(this,"playVideo",this.zW);Er(this,"loadPlaylist",this.loadPlaylist);Er(this,"nextVideo",this.nextVideo);Er(this,"previousVideo",this.previousVideo);Er(this,"playVideoAt",this.playVideoAt); Er(this,"getVideoData",this.KL);Er(this,"seekBy",this.GDk);Er(this,"seekTo",this.Oxk);Er(this,"showControls",this.showControls);Er(this,"hideControls",this.hideControls);Er(this,"cancelPlayback",this.cancelPlayback);Er(this,"getProgressState",this.getProgressState);Er(this,"isInline",this.isInline);Er(this,"setInline",this.setInline);Er(this,"setLoopVideo",this.setLoopVideo);Er(this,"getLoopVideo",this.getLoopVideo);Er(this,"getVideoContentRect",this.getVideoContentRect);Er(this,"getVideoStats",this.Re); Er(this,"getCurrentTime",this.nP);Er(this,"getDuration",this.Hn);Er(this,"getPlayerState",this.P4);Er(this,"getVideoLoadedFraction",this.EU);Er(this,"mute",this.h1);Er(this,"unMute",this.tG);Er(this,"setVolume",this.mO);Er(this,"loadModule",this.loadModule);Er(this,"unloadModule",this.unloadModule);Er(this,"getOption",this.RR);Er(this,"getOptions",this.getOptions);Er(this,"setOption",this.setOption);Er(this,"addCueRange",this.addCueRange);Er(this,"getDebugText",this.getDebugText);Er(this,"getStoryboardFormat", this.getStoryboardFormat);Er(this,"toggleFullscreen",this.toggleFullscreen);Er(this,"isFullscreen",this.isFullscreen);Er(this,"getPlayerSize",this.getPlayerSize);Er(this,"toggleSubtitles",this.toggleSubtitles);Er(this,"setCenterCrop",this.setCenterCrop);Er(this,"setFauxFullscreen",this.setFauxFullscreen);Er(this,"setSizeStyle",this.setSizeStyle);Er(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Er(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);im4(this)}; g.Q1=function(w){w=w.I9();var M=w.BB.get("endscreen");return M&&M.iP()?!0:w.yI()}; g.kt=function(w,M){w.getPresentingPlayerType()===3?w.publish("mdxautoplaycancel"):w.Vs("onAutonavCancelled",M)}; g.n$=function(w){var M=RZ(w.I9());return w.app.dg&&!w.isFullscreen()||w.getPresentingPlayerType()===3&&M&&M.kH()&&M.ST()||!!w.getPlaylist()}; g.vV=function(w,M){g.Nl(w,"addEmbedsConversionTrackingParams",[M])}; g.K$=function(w){return(w=g.sr(w.I9()))?w.yY():{}}; g.ckx=function(w){w=(w=w.getVideoData())&&w.L;return!!w&&!(!w.audio||!w.video)&&w.mimeType!=="application/x-mpegURL"}; g.bD=function(w,M,P){w=w.oI().element;var u=Ax(w.children,function(X){X=Number(X.getAttribute("data-layer"));return P-X||1}); u<0&&(u=-(u+1));N3(w,M,u);M.setAttribute("data-layer",String(P))}; g.IZ=function(w){var M=w.N();if(!M.DO)return!1;var P=w.getVideoData();if(!P||w.getPresentingPlayerType()===3)return!1;var u=(!P.isLiveDefaultBroadcast||M.D("allow_poltergust_autoplay"))&&!Ur(P);u=P.isLivePlayback&&(!M.D("allow_live_autoplay")||!u);var X=P.isLivePlayback&&M.D("allow_live_autoplay_on_mweb");w=w.getPlaylist();w=!!w&&w.kH();var U=P.xu&&P.xu.playerOverlays||null;U=!!(U&&U.playerOverlayRenderer&&U.playerOverlayRenderer.autoplay);U=P.Ym&&U;return!P.ypcPreview&&(!u||X)&&!g.o$(P.Lu,"ypc")&& !w&&(!g.K7(M)||U)}; SDy=function(w,M){w=Zml(w.app.sG().G);w=g.G(w);for(var P=w.next();!P.done;P=w.next()){P=P.value;var u=P.getAvailableAudioTracks(),X=null;u=g.G(u);for(var U=u.next();!U.done;U=u.next())if(U=U.value,U.getLanguageInfo().getId()===M){X=U;break}X&&P.WH(X,!0)}}; A$=function(){Bn.apply(this,arguments);this.requestHeaders={}}; J$=function(){gI||(gI=new A$);return gI}; rI=function(w,M){M?w.requestHeaders.Authorization="Bearer "+M:delete w.requestHeaders.Authorization}; g.jq=function(w){g.v.call(this);var M=this;this.fu=w;this.yH={EM:function(){return M.fu}}}; g.C$=function(w,M,P,u){u=u===void 0?!1:u;g.XT.call(this,M);var X=this;this.U=w;this.mN=u;this.V=new g.V2(this);this.fade=new g.Cf(this,P,!0,void 0,void 0,function(){X.Ve()}); g.b(this,this.V);g.b(this,this.fade)}; t$=function(w){var M=w.U.getRootNode();return w.U.D("web_watch_pip")||w.U.D("web_shorts_pip")?wS(M):document}; Hmy=function(w){w.L&&(document.activeElement&&g.mG(w.element,document.activeElement)&&w.L.focus(),w.L.setAttribute("aria-expanded","false"),w.L=void 0);g.qi(w.V);w.S=void 0}; xt=function(w,M,P){w.yu()?w.Wj():w.w7(M,P)}; Or=function(w,M,P,u){u=new g.r({W:"div",d$:["ytp-linked-account-popup-button"],pu:u,Z:{role:"button",tabindex:"0"}});M=new g.r({W:"div",T:"ytp-linked-account-popup",Z:{role:"dialog","aria-modal":"true",tabindex:"-1"},J:[{W:"div",T:"ytp-linked-account-popup-title",pu:M},{W:"div",T:"ytp-linked-account-popup-description",pu:P},{W:"div",T:"ytp-linked-account-popup-buttons",J:[u]}]});g.C$.call(this,w,{W:"div",T:"ytp-linked-account-popup-container",J:[M]},100);var X=this;this.dialog=M;g.b(this,this.dialog); u.listen("click",function(){X.Wj()}); g.b(this,u);g.bD(this.U,this.element,4);this.hide()}; g.wa=function(w,M,P,u){g.XT.call(this,w);this.priority=M;P&&g.aZ(this,P);u&&this.iB(u)}; g.ix=function(w,M,P,u){w=w===void 0?{}:w;M=M===void 0?[]:M;P=P===void 0?!1:P;u=u===void 0?!1:u;M.push("ytp-menuitem");var X=w;"role"in X||(X.role="menuitem");P||(X=w,"tabindex"in X||(X.tabindex="0"));w={W:P?"a":"div",d$:M,Z:w,J:[{W:"div",T:"ytp-menuitem-icon",pu:"{{icon}}"},{W:"div",T:"ytp-menuitem-label",pu:"{{label}}"},{W:"div",T:"ytp-menuitem-content",pu:"{{content}}"}]};u&&w.J.push({W:"div",T:"ytp-menuitem-secondary-icon",pu:"{{secondaryIcon}}"});return w}; g.aZ=function(w,M){w.updateValue("label",M)}; Mk=function(w){g.wa.call(this,g.ix({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var M=this;this.U=w;this.L=this.B=!1;this.Lg=w.CN();w.createServerVe(this.element,this,!0);this.Y(this.U,"settingsMenuVisibilityChanged",function(P){M.jK(P)}); this.Y(this.U,"videodatachange",this.X);this.listen("click",this.onClick);this.X()}; PH=function(w){return w?g.ff(w):""}; ux=function(w){g.v.call(this);this.api=w}; XQ=function(w){ux.call(this,w);var M=this;p$(w,"setAccountLinkState",function(P){M.setAccountLinkState(P)}); p$(w,"updateAccountLinkingConfig",function(P){M.updateAccountLinkingConfig(P)}); w.addEventListener("videodatachange",function(P,u){M.onVideoDataChange(u)}); w.addEventListener("settingsMenuInitialized",function(){M.menuItem=new Mk(M.api);g.b(M,M.menuItem)})}; p2x=function(w){this.api=w;this.B={}}; $N=function(w,M,P,u){M in w.B||(P=new g.bg(P,u,{id:M,priority:2,namespace:"appad"}),w.api.qf([P],1),w.B[M]=P)}; U6=function(w){ux.call(this,w);var M=this;this.events=new g.V2(this);g.b(this,this.events);this.B=new p2x(this.api);this.events.Y(this.api,"legacyadtrackingpingreset",function(){M.B.B={}}); this.events.Y(this.api,"legacyadtrackingpingchange",function(P){var u=M.B;$N(u,"part2viewed",1,0x8000000000000);$N(u,"engagedview",Math.max(1,P.cj*1E3),0x8000000000000);if(!P.isLivePlayback){var X=P.lengthSeconds*1E3;FM(P)&&u.api.D("html5_shorts_gapless_ads_duration_fix")&&(X=u.api.getProgressState().seekableEnd*1E3-P.fB);$N(u,"videoplaytime25",X*.25,X);$N(u,"videoplaytime50",X*.5,X);$N(u,"videoplaytime75",X*.75,X);$N(u,"videoplaytime100",X,0x8000000000000);$N(u,"conversionview",X,0x8000000000000); $N(u,"videoplaybackstart",1,X);$N(u,"videoplayback2s",2E3,X);$N(u,"videoplayback10s",1E4,X)}}); this.events.Y(this.api,g.AP("appad"),this.L);this.events.Y(this.api,g.gL("appad"),this.L)}; Vbl=function(w,M,P){if(!(P in M))return!1;M=M[P];Array.isArray(M)||(M=[M]);M=g.G(M);for(P=M.next();!P.done;P=M.next()){P=P.value;var u={CPN:w.api.getVideoData().clientPlaybackNonce};P=g.YO(P,u);u=void 0;u=u===void 0?!1:u;(u=kk(RB(P,FYF),P,u,"Active View 3rd Party Integration URL"))||(u=void 0,u=u===void 0?!1:u,u=kk(RB(P,ETx),P,u,"Google/YouTube Brand Lift URL"));u||(u=void 0,u=u===void 0?!1:u,u=kk(RB(P,NE4),P,u,"Nielsen OCR URL"));g.Ld(P,void 0,u)}return!0}; f6=function(w,M){m1u(w,M).then(function(P){g.Ld(M,void 0,void 0,P)})}; WH=function(w,M){M.forEach(function(P){f6(w,P)})}; m1u=function(w,M){return g.Z$(w.api.N())&&XW(M)&&uL(M)?g.E_(w.api.N(),g.Op(w.api.getVideoData())).then(function(P){var u;P&&(u={Authorization:"Bearer "+P});return u},void 0):TZ()}; oTx=function(w){ux.call(this,w);this.events=new g.V2(w);g.b(this,this.events);this.events.Y(w,"videoready",function(M){if(w.getPresentingPlayerType()===1){var P,u,X={playerDebugData:{pmlSignal:!!((P=M.getPlayerResponse())==null?0:(u=P.adPlacements)==null?0:u.some(function(U){var f;return U==null?void 0:(f=U.adPlacementRenderer)==null?void 0:f.renderer})), contentCpn:M.clientPlaybackNonce}};g.ub("adsClientStateChange",X)}})}; hB=function(w){g.r.call(this,{W:"button",d$:["ytp-button","ytp-autonav-toggle"],Z:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},J:[{W:"div",T:"ytp-autonav-toggle-button-container",J:[{W:"div",T:"ytp-autonav-toggle-button",Z:{"aria-checked":"true"}}]}]});this.U=w;this.L=[];this.B=!1;this.isChecked=!0;w.createClientVe(this.element,this,113681);this.Y(w,"presentingplayerstatechange",this.o2);this.listen("click",this.onClick);this.U.N().D("web_player_autonav_toggle_always_listen")&& GiR(this);L$(w,this.element,this);this.o2()}; GiR=function(w){w.L.push(w.Y(w.U,"videodatachange",w.o2));w.L.push(w.Y(w.U,"videoplayerreset",w.o2));w.L.push(w.Y(w.U,"onPlaylistUpdate",w.o2));w.L.push(w.Y(w.U,"autonavchange",w.U_))}; yk4=function(w){w.isChecked=w.isChecked;w.RI("ytp-autonav-toggle-button").setAttribute("aria-checked",String(w.isChecked));var M=w.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";w.updateValue("title",M);w.updateValue("label",M);w.U.j0()}; D1z=function(w){return w.U.N().D("web_player_autonav_use_server_provided_state")&&hM(w.Bl())}; qDy=function(w){ux.call(this,w);var M=this;this.events=new g.V2(w);g.b(this,this.events);this.events.Y(w,"standardControlsInitialized",function(){var P=new hB(w);g.b(M,P);w.Av(P,"RIGHT_CONTROLS_LEFT")})}; cH=function(w,M){g.wa.call(this,g.ix({role:"menuitemcheckbox","aria-checked":"false"}),M,w,{W:"div",T:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; ZT=function(w,M){w.checked=M;w.element.setAttribute("aria-checked",String(w.checked))}; YD5=function(w){var M=!w.N().uh&&w.getPresentingPlayerType()!==3;return w.isFullscreen()||M}; g.SZ=function(w,M,P,u){var X=w.currentTarget;if((P===void 0||!P)&&g.VP(w))return w.preventDefault(),!0;M.pauseVideo();w=X.getAttribute("href");g.nW(w,u,!0);return!1}; g.HH=function(w,M,P){if(XD(M.N())&&M.getPresentingPlayerType()!==2){if(g.VP(P))return M.isFullscreen()&&!M.N().externalFullscreen&&M.toggleFullscreen(),P.preventDefault(),!0}else{var u=g.VP(P);u&&M.pauseVideo();g.nW(w,void 0,!0);u&&(g.vj(w),P.preventDefault())}return!1}; zgM=function(w){w=p6.includes("es-419")?w.D("delhi_modern_web_player_icons")?Hz():{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!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"}}]}:w.D("delhi_modern_web_player_icons")?QS2():{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!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"}}]};w.T="ytp-subtitles-button-icon"; return w}; TEM=function(w){return p6.includes("es-419")?w?Hz():{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:w?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},J:[{W:"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"}}]}:{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"path",Z:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; FQ=function(){return{W:"div",T:"ytp-spinner-container",J:[{W:"div",T:"ytp-spinner-rotator",J:[{W:"div",T:"ytp-spinner-left",J:[{W:"div",T:"ytp-spinner-circle"}]},{W:"div",T:"ytp-spinner-right",J:[{W:"div",T:"ytp-spinner-circle"}]}]}]}}; E6=function(w){if(document.createRange){var M=document.createRange();M&&(M.selectNodeContents(w),w=window.getSelection())&&(w.removeAllRanges(),w.addRange(M))}}; md=function(w){var M=w.D("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";cH.call(this,M,g.Nk.rR);var P=this;this.U=w;this.B=!1;this.L=new g.gV(function(){g.PI(P.element,"ytp-menuitem-highlighted")},0); this.Lg=w.CN();w=w.D("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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(w);this.subscribe("select",this.C,this);this.listen(VF,this.X);g.b(this,this.L)}; of=function(w){ux.call(this,w);var M=this;this.B=!1;w.addEventListener("settingsMenuInitialized",function(){d1M(M)}); w.addEventListener("highlightSettingsMenu",function(P){d1M(M);var u=M.menuItem;P==="menu_item_cinematic_lighting"&&(g.io(u.element,"ytp-menuitem-highlighted"),g.io(u.element,"ytp-menuitem-highlight-transition-enabled"),u.L.start())}); p$(w,"updateCinematicSettings",function(P){M.updateCinematicSettings(P)})}; d1M=function(w){w.menuItem||(w.menuItem=new md(w.api),g.b(w,w.menuItem),w.menuItem.g$(w.B))}; lox=function(w){ux.call(this,w);var M=this;this.events=new g.V2(w);g.b(this,this.events);this.events.Y(w,"applicationvideodatachange",function(P,u){u=u.clipConfig;P==="dataloaded"&&u&&u.startTimeMs!=null&&u.endTimeMs!=null&&M.api.setLoopRange({startTimeMs:Math.floor(Number(u.startTimeMs)),endTimeMs:Math.floor(Number(u.endTimeMs)),postId:u.postId,type:"clips"})})}; G0=function(w){ux.call(this,w);this.events=new g.V2(w);g.b(this,this.events);p$(w,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));p$(w,"setCreatorEndscreenHideButton",this.B.bind(this))}; yF=function(w,M,P,u){cH.call(this,"Volumen estable",g.Nk.EW);g.io(this.element,"ytp-drc-menu-item");this.Lg=w.CN();this.C=M;this.B=P;this.hasDrcAudioTrack=u;w.addEventListener("videodatachange",this.L.bind(this));w.D("mta_drc_mutual_exclusion_removal")&&this.Y(w,"onPlaybackAudioChange",this.L);M=this.B()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());w=w.D("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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(w);this.subscribe("select",this.X,this);ZT(this,M);this.Lg.XF(this)}; DT=function(w){ux.call(this,w);var M=this;this.events=new g.V2(w);g.b(this,this.events);w.D("html5_show_drc_toggle")&&w.addEventListener("settingsMenuInitialized",function(){M.menuItem||(M.menuItem=new yF(M.api,M.setDrcUserPreference.bind(M),M.getDrcUserPreference.bind(M),M.L.bind(M)),g.b(M,M.menuItem))}); p$(this.api,"setDrcUserPreference",function(u){M.setDrcUserPreference(u)}); p$(this.api,"getDrcUserPreference",function(){return M.getDrcUserPreference()}); p$(this.api,"hasDrcAudioTrack",function(){return M.L()}); var P;this.B=(P=g.dH("yt-player-drc-pref"))!=null?P:1;this.updateEnvironmentData()}; qk=function(w){ux.call(this,w);var M=this;this.B={};this.events=new g.V2(w);g.b(this,this.events);this.events.Y(w,"videodatachange",function(){M.onVideoDataChange()}); this.events.Y(w,g.AP("embargo"),function(P){M.api.gk(!0);var u,X=(u=M.B[P.id])!=null?u:[];u=g.G(X);for(X=u.next();!X.done;X=u.next()){var U=X.value;M.api.hideControls();M.api.WB("auth",2,"This video isn't available in your current playback area",WU({embargoed:1,id:P.id,idx:P.L,start:P.start}));X=void 0;(U=(X=U.embargo)==null?void 0:X.onTrigger)&&M.api.Vs("innertubeCommand",U)}})}; LYM=function(w,M){var P;return(P=M.onEnter)==null?void 0:P.some(w.L)}; egU=function(w,M){M=g.G(M);for(var P=M.next();!P.done;P=M.next()){P=P.value;var u=void 0,X=Number((u=P.playbackPosition)==null?void 0:u.utcTimeMillis)/1E3,U=void 0;u=X+Number((U=P.duration)==null?void 0:U.seconds);U="embargo_"+X;w.api.addUtcCueRange(U,X,u,"embargo",!1);P.onEnter&&(w.B[U]=P.onEnter.filter(w.L))}}; YN=function(w){ux.call(this,w);var M=this;this.B=[];this.events=new g.V2(w);g.b(this,this.events);p$(w,"addEmbedsConversionTrackingParams",function(P){M.api.N().Mx&&M.addEmbedsConversionTrackingParams(P)}); this.events.Y(w,"veClickLogged",function(P){M.api.hasVe(P)&&(P=P.visualElement.getAsJspb(),P=YG(P,2),M.B.push(P))})}; BEp=function(w){ux.call(this,w);p$(w,"isEmbedsShortsMode",function(){return w.isEmbedsShortsMode()})}; QJ1=function(w){ux.call(this,w);var M=this;this.events=new g.V2(w);g.b(this,this.events);this.events.Y(w,"initialvideodatacreated",function(P){Jk(gE(),16623);M.B=g.En();var u=w.N().Q8&&!P.TD;if(xp(P)&&u){Jk(gE(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(P.getWatchNextResponse()){var X,U=(X=P.getWatchNextResponse())==null?void 0:X.trackingParams;U&&jb(U)}if(P.getPlayerResponse()){var f;(P=(f=P.getPlayerResponse())==null?void 0:f.trackingParams)&&jb(P)}}else Jk(gE(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),P.getEmbeddedPlayerResponse()&&(f=(U=P.getEmbeddedPlayerResponse())==null?void 0:U.trackingParams)&&jb(f)}); this.events.Y(w,"loadvideo",function(){Jk(gE(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:M.B})}); this.events.Y(w,"cuevideo",function(){Jk(gE(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:M.B})}); this.events.Y(w,"largeplaybuttonclicked",function(P){Jk(gE(),27240,P.visualElement)}); this.events.Y(w,"playlistnextbuttonclicked",function(P){Jk(gE(),27240,P.visualElement)}); this.events.Y(w,"playlistprevbuttonclicked",function(P){Jk(gE(),27240,P.visualElement)}); this.events.Y(w,"playlistautonextvideo",function(){Jk(gE(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; z0=function(w,M){g.v.call(this);var P=this;this.B=null;this.C=M;M=[];for(var u=0;u<=100;u++)M.push(u/100);M={threshold:M,trackVisibility:!0,delay:1E3};(this.L=window.IntersectionObserver?new IntersectionObserver(function(X){X=X[X.length-1];var U=null;typeof X.isVisible==="undefined"?document.visibilityState==="visible"&&X.isIntersecting&&X.intersectionRatio>0?U=X.intersectionRatio:document.visibilityState==="hidden"?U=0:U=null:U=X.isVisible?X.intersectionRatio:0;U!=null&&(U=Math.max(U,0),U=Math.min(U, 1));P.B=U;typeof P.C==="function"&&P.C(P.B)},M):null)&&this.L.observe(w)}; Rgu=function(w){ux.call(this,w);var M=this;this.events=new g.V2(w);g.b(this,this.events);this.events.Y(w,"applicationInitialized",function(){ki1(M)})}; ki1=function(w){var M=w.api.getRootNode(),P,u=w.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((P=M.parentElement)==null?void 0:P.parentElement)||M:M;w.B=new z0(u,function(X){X!=null&&(w.api.N().At=X,w.api.N().f$="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.b(w,w.B);w.events.Y(w.api,"videoStatsPingCreated",function(X){var U=w.B;U=U.B==null?null:Math.round(U.B*100)/100;X.inview=U!=null?U:void 0;U=w.api.getPlayerSize();if(U.height>0&&U.width>0){U=[Math.round(U.width),Math.round(U.height)];var f=g.U_();f>1&&U.push(f);U=U.join(":")}else U=void 0;X.size=U})}; nT1=function(w){var M;return((M=((w==null?void 0:w.messageRenderers)||[]).find(function(P){return!!P.timeCounterRenderer}))==null?void 0:M.timeCounterRenderer)||null}; T0=function(w){g.r.call(this,{W:"div",d$:["ytp-player-content","ytp-iv-player-content"],J:[{W:"div",T:"ytp-free-preview-countdown-timer",J:[{W:"span",pu:"{{label}}"},{W:"span",T:"ytp-free-preview-countdown-timer-separator",pu:"\u2022"},{W:"span",pu:"{{duration}}"}]}]});this.api=w;this.B=null;this.C=this.L=0;this.Y(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; sJl=function(w,M){w.B||(w.L=M,w.C=(0,g.G$)(),w.B=new g.AK(function(){vT5(w)},null),vT5(w))}; vT5=function(w){var M=Math,P=M.round,u=Math.min((0,g.G$)()-w.C,w.L);M=P.call(M,(w.L-u)/1E3);w.updateValue("duration",nm({seconds:M}));M<=0&&w.B?w.stopTimer():w.B&&w.B.start()}; KY2=function(w){ux.call(this,w);var M=this;this.events=new g.V2(w);g.b(this,this.events);this.events.Y(w,"basechromeinitialized",function(){M.B=new T0(w);g.b(M,M.B);g.bD(w,M.B.element,4);M.B.hide()})}; da=function(w){g.r.call(this,{W:"button",d$:["ytp-fullerscreen-edu-button","ytp-button"],J:[{W:"div",d$:["ytp-fullerscreen-edu-text"],pu:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{W:"div",d$:["ytp-fullerscreen-edu-chevron"],J:[{W:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{W:"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.h9=w;this.fade=new g.Cf(this,250,void 0,100);this.L=this.B= !1;w.createClientVe(this.element,this,61214);g.b(this,this.fade);this.Y(w,"fullscreentoggled",this.g$);this.Y(w,"presentingplayerstatechange",this.g$);this.listen("click",this.onClick);this.g$()}; lx=function(w){ux.call(this,w);var M=this;this.events=new g.V2(w);g.b(this,this.events);p$(this.api,"updateFullerscreenEduButtonSubtleModeState",function(u){M.updateFullerscreenEduButtonSubtleModeState(u)}); p$(this.api,"updateFullerscreenEduButtonVisibility",function(u){M.updateFullerscreenEduButtonVisibility(u)}); var P=w.N();w.D("external_fullscreen_with_edu")&&P.externalFullscreen&&XD(P)&&P.controlsType==="1"&&this.events.Y(w,"standardControlsInitialized",function(){M.B=new da(w);g.b(M,M.B);w.Av(M.B)})}; bml=function(w){g.r.call(this,{W:"div",T:"ytp-gated-actions-overlay",J:[{W:"div",T:"ytp-gated-actions-overlay-background",J:[{W:"div",T:"ytp-gated-actions-overlay-background-overlay"}]},{W:"button",d$:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Z:{"aria-label":"Cerrar"},J:[g.SX()]},{W:"div",T:"ytp-gated-actions-overlay-bar",J:[{W:"div",T:"ytp-gated-actions-overlay-text-container",J:[{W:"div",T:"ytp-gated-actions-overlay-title",pu:"{{title}}"},{W:"div",T:"ytp-gated-actions-overlay-subtitle", pu:"{{subtitle}}"}]},{W:"div",T:"ytp-gated-actions-overlay-button-container"}]}]});var M=this;this.api=w;this.background=this.RI("ytp-gated-actions-overlay-background");this.L=this.RI("ytp-gated-actions-overlay-button-container");this.B=[];this.Y(this.RI("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){M.api.Vs("onCloseMiniplayer")}); this.hide()}; AkR=function(w,M){var P=0;P=0;for(var u={};P X&&(X=h.width,U="url("+h.url+")")}P.background.style.backgroundImage=U;AkR(P,u.actionButtons||[]);P.show()}else P.hide()}); g.bD(this.api,this.B.element,4)}; L6=function(w){ux.call(this,w);var M=this;Er(this.api,"getSphericalProperties",function(){return M.getSphericalProperties()}); Er(this.api,"setSphericalProperties",function(){M.setSphericalProperties.apply(M,g.L(g.Kz.apply(0,arguments)))}); FO(this.api,"getSphericalProperties",function(){return M.api.getPresentingPlayerType()===2?{}:M.getSphericalProperties()}); FO(this.api,"setSphericalProperties",function(){var P=g.Kz.apply(0,arguments);M.api.getPresentingPlayerType()!==2&&M.setSphericalProperties.apply(M,g.L(P))})}; eZ=function(w){ux.call(this,w);p$(w,"createClientVe",this.createClientVe.bind(this));p$(w,"createServerVe",this.createServerVe.bind(this));p$(w,"destroyVe",this.destroyVe.bind(this));p$(w,"hasVe",this.hasVe.bind(this));p$(w,"logClick",this.logClick.bind(this));p$(w,"logVisibility",this.logVisibility.bind(this));p$(w,"setTrackingParams",this.setTrackingParams.bind(this))}; BH=function(w,M,P,u){function X(f){var h=!(f.status!==204&&f.status!==200&&!f.response),c;f={succ:""+ +h,rc:f.status,lb:((c=f.response)==null?void 0:c.byteLength)||0,rt:((0,g.G$)()-U).toFixed(),shost:g.f5(w),trigger:M};JkF(f,w);P&&P(f);u&&!h&&u(new g.hy("pathprobe.net",f))} var U=(0,g.G$)();g.o1(w,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:X,onTimeout:X})}; JkF=function(w,M){var P;((P=window.performance)==null?0:P.getEntriesByName)&&(M=performance.getEntriesByName(M))&&M.length&&(M=M[0],w.pedns=(M.domainLookupEnd-M.startTime).toFixed(),w.pecon=(M.connectEnd-M.domainLookupEnd).toFixed(),w.perqs=(M.requestStart-M.connectEnd).toFixed(),rkx&&(w.perqsa=M.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; jJ5=function(w){rkx=w}; QF=function(w,M){this.mT=w;this.policy=M;this.playbackRate=1}; CF5=function(w,M){var P=Math.min(2.5,ll(w.mT));w=kN(w);return M-P*w}; Rf=function(w,M,P,u,X){X=X===void 0?!1:X;if(w.policy.qk)return Math.ceil(w.policy.qk*M);w.policy.b4&&(u=Math.abs(u));u/=w.playbackRate;var U=1/BM(w.mT);P=Math.max(.9*(u-3),ll(w.mT)+w.mT.L.B*U)/U*.8/(M+P);P=Math.min(P,u);w.policy.uh>0&&X&&(P=Math.max(P,w.policy.uh));return tb5(w,P,M)}; tb5=function(w,M,P){return Math.ceil(Math.max(Math.max(w.policy.H_,w.policy.vp*P),Math.min(Math.min(w.policy.eL,31*P),Math.ceil(M*P))))||w.policy.H_}; x1u=function(w,M,P){P=Rf(w,M.B.info.A9,P.B.info.A9,0);var u=ll(w.mT)+P/BM(w.mT);return Math.max(u,u+w.policy.eR-P/M.B.info.A9)}; kN=function(w){return BM(w.mT,!w.policy.Ye,w.policy.nK)}; n6=function(w){return kN(w)/w.playbackRate}; vH=function(w,M,P){var u=w.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],X=w.policy.playbackStartPolicy.startMinReadaheadPolicy||[];w=Infinity;M=g.G(M&&u.length>0?u:X);for(u=M.next();!u.done;u=M.next())u=u.value,X=u.minReadaheadMs||0,P<(u.minBandwidthBytesPerSec||0)||w>X&&(w=X);return w0&&(this.L=P.KK)}; wLu=function(w,M,P,u,X){if(!u.info.G){if(P.length===0)P.push(u);else{var U;(w=(U=P.pop())==null?void 0:g.VL(U,u))?P.push(w):P.push(u)}return X}var f;(P=(f=P.pop())==null?void 0:g.VL(f,u))||(P=u);if(P.info.L)return w.logger&&w.logger({incompleteSegment:P.info.vk()}),X;u=w.O9(P);X=u.Ku;u={clipId:u.clipId,formatId:u.formatId,startTimeMs:u.startTimeMs,durationMs:u.nR,Vq:X,vv:X};X=OmM(M,u.startTimeMs);if(U=P=X>=0?M[X]:null){U=u;var h=X;f=P.startTimeMs+P.durationMs;var c=U.startTimeMs+U.durationMs;if(U.startTimeMs- f>w.L)U=!1;else if(aou(w,P.formatId,U.formatId))P.durationMs=Math.max(f,c)-P.startTimeMs,P.vv=Math.max(P.vv,U.vv),U=!0;else if(Math.abs(P.startTimeMs-U.startTimeMs)<=w.L)if(P.durationMs>U.durationMs+w.L){var Z=P.formatId,S=P.Vq;h=P.vv;P.formatId=U.formatId;P.durationMs=U.durationMs;P.Vq=U.Vq;P.vv=U.vv;U.formatId=Z;U.startTimeMs=c;U.durationMs=f-c;U.Vq=S;U.vv=h;U=!1}else P.formatId=U.formatId,U=!0;else f>U.startTimeMs&&(f>c&&(M.splice(h+1,0,{formatId:P.formatId,startTimeMs:c,durationMs:f-c,Vq:U.vv+ 1,vv:P.vv}),w.logger&&w.logger({splitOldStart:(Z=P.startTimeMs)==null?void 0:Z.toFixed(3),splitOldEnd:f==null?void 0:f.toFixed(3),splitNewStart:(S=U.startTimeMs)==null?void 0:S.toFixed(3),splitNewEnd:c==null?void 0:c.toFixed(3)})),P.durationMs=U.startTimeMs-P.startTimeMs,P.vv=U.Vq-1),U=!1}U?u=P:(X+=1,M.splice(X,0,u));Z=0;for(S=X+1;S=c+P.L?P=!0:h+P.L=0?w:-w-2}; iru=function(w,M){if(w.sF){var P=w.sF.cB();if(P.length!==0){if(w.C&&M){var u=w.C,X=u.info.X;!rf(P,X)&&u.info.V>0&&(0,g.G$)()-w.K<5E3&&(w.logger&&w.logger({dend:u.info.vk()}),P=BCU(P,X,X+.01))}w.policy.BI&&w.logger&&w.logger({cbri:""+w.B});u=[];for(var U=X=0;X=f){var S=Object.assign({},w.Bk[U]),H=w.Gk.C.get(IW(w.Bk[U].formatId)),p=Math.max(c,f);f=H.index.C9(p+w.L/ 1E3);c=H.index.getStartTime(f);var F=f+ +(Math.abs(c-p)>w.L/1E3);p=F+w.X;F=H.index.getStartTime(F)*1E3;U!==w.B||M?(S.Vq=p,S.startTimeMs=F):(w.logger&&w.logger({pEvict:"1",og:S.startTimeMs,adj:c*1E3}),S.Vq=f+w.X,S.startTimeMs=c*1E3);f=void 0;c=((f=w.C)==null?void 0:f.info.duration)||11;U===w.B&&hw.L/1E3);f=c+w.X;H=H.index.ut(c)*1E3;S.vv=f;S.durationMs=H-S.startTimeMs;S.Vq<=S.vv&&u.push(S)}Z=0&&JB(w.audioTrack,w.targetTime)>=0&&U?((w.videoTrack.G||w.audioTrack.G)&&w.loader.II("iterativeSeeking",{status:"done",count:w.seekCount}),w.videoTrack.G=!1,w.audioTrack.G=!1):u&&g.Vk(function(){if(w.B||!w.policy.cj)C6(w);else{var f=M.startTime,h=M.duration;if(!w.policy.G){var c=P?w.videoTrack.G:w.audioTrack.G,Z=w.videoTrack.K!==-1&&w.audioTrack.K!==-1,S=w.targetTime>=f&&w.targetTime432E3&&kEH(w.Gk);w.L&&(X=w.L,w.L=0);g.Vk(function(){w.policy.G||tB(w,X,102)}); w.loader.II("initManifestlessSync",{st:X,ost:X+w.loader.OF(),a:w.audioTrack.K,v:w.videoTrack.K});w.C&&(w.C.resolve(X+.1),w.C=null);w.policy.G&&tB(w,X,102)}}}; af=function(w,M){var P=this;this.pg=w;this.requestNumber=++Hrx;this.B=this.now();this.V=this.S=NaN;this.j=this.B;this.C=this.GE=this.G=0;this.K=this.B;this.iW=this.Lu=this.xu=this.VE=this.TE=this.ys=this.L=this.X=0;this.B3=this.isActive=!1;this.M7=this.Z3=0;this.yH={nXI:function(){return P.Ka}}; this.mT=M.mT;this.snapshot=h8R(this.mT);this.policy=this.mT.L;this.wr=!!M.wr;this.jD=M.jD;this.aG=M.aG||0;this.F9=M.F9||0;M.uy&&(this.Cu=new oj);var u;this.Ka=(u=M.Ka)!=null?u:!1;this.wr||Um2(this.mT)}; pLx=function(w){w.xu=Math.max(w.xu,w.G-w.TE);w.Lu=Math.max(w.Lu,w.j-w.VE);w.ys=0}; wO=function(w,M,P){fcz(w.mT,M);w.Cu&&(w.Cu.add(Math.ceil(M)-Math.ceil(w.j)),w.Cu.add(Math.max(0,Math.ceil(P/1024)-Math.ceil(w.G/1024))));var u=M-w.j,X=P-w.G;w.GE=X;w.iW=Math.max(w.iW,X/(u+.01)*1E3);w.j=M;w.G=P;w.ys&&P>w.ys&&pLx(w)}; M5=function(w,M){w.url=M;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; Px=function(w,M){af.call(this,w,M);this.cj=this.hD=!1;this.UO=this.mN=Infinity;this.eL=NaN;this.fg=!1;this.jL=NaN;this.QE=this.OO=this.t9=0;this.eg=M.eg||1;this.t$=M.t$||this.eg;this.gG=M.gG;this.Ku=M.Ku;this.y8=M.y8;Fjx(this);this.Rt(this.B);this.bW=(this.jL-this.B)/1E3}; EnM=function(w){var M=w.OO||w.t9;return M?w.snapshot.delay+Math.min(w.F9,(w.V-w.S)/1E3)+M:w.bW}; un=function(w,M,P){if(!w.wr){M=Math.max(M,.01);var u=w.aG?Math.max(M,P/w.aG):M,X=w.mT.L.C;X&&(u=M,w.aG&&(u=Math.max(M,P/w.aG*X)));zu(w.mT,M,P,u)}}; Niy=function(w){return(w.K-w.B)/1E3}; Fjx=function(w){w.eL=w.B+w.snapshot.delay*1E3;w.fg=!1}; Xw=function(w,M){if(w.gG&&w.Ku!==void 0&&w.y8!==void 0){var P=Math,u=P.min,X=w.mN;var U=w.gG;var f=w.B;if(VBx(U,w.Ku))U=M;else{var h=0;U.v_&&(h=.2);U=f+(U.F9+h)*1E3}w.mN=u.call(P,X,U);P=Math;u=P.min;X=w.UO;U=w.gG;f=w.B;h=mh1(U,w.Ku,w.y8);h!==2&&(M=h?M:f+U.F9*1E3,U.v_&&(M+=U.F9*1E3));w.UO=u.call(P,X,M);w.mN<=w.B?Fjx(w):(w.eL=w.mN,w.fg=!0)}}; on4=function(w,M){if(M+1<=w.totalLength){var P=fF(w,M);P=P<128?1:P<192?2:P<224?3:P<240?4:5}else P=0;if(P<1||!(M+P<=w.totalLength))return[-1,M];if(P===1)w=fF(w,M++);else if(P===2)P=fF(w,M++),w=fF(w,M++),w=(P&63)+64*w;else if(P===3){P=fF(w,M++);var u=fF(w,M++);w=fF(w,M++);w=(P&31)+32*(u+256*w)}else if(P===4){P=fF(w,M++);u=fF(w,M++);var X=fF(w,M++);w=fF(w,M++);w=(P&15)+16*(u+256*(X+256*w))}else P=M+1,w.focus(P),Xd(w,P,4)?w=nQ1(w).getUint32(P-w.C,!0):(u=fF(w,P+2)+256*fF(w,P+3),w=fF(w,P)+256*(fF(w,P+1)+ 256*u)),M+=5;return[w,M]}; $x=function(w){this.pg=w;this.B=new iV}; UM=function(w,M){this.info=w;this.callback=M;this.state=1;this.Pm=this.GK=!1;this.CV=null}; G8l=function(w){return g.Nq(w.info.N0,function(M){return M.type===3})}; f2=function(w,M,P,u){var X=this;u=u===void 0?{}:u;this.policy=M;this.pg=P;this.status=0;this.B=new iV;this.L=0;this.sO=this.X=this.C=!1;this.xhr=new XMLHttpRequest;this.xhr.open(u.method||"GET",w);if(u.headers)for(w=u.headers,M=g.G(Object.keys(w)),P=M.next();!P.done;P=M.next())P=P.value,this.xhr.setRequestHeader(P,w[P]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return X.HG()}; this.xhr.onload=function(){return X.onDone()}; this.xhr.onerror=function(){return X.onError()}; this.xhr.fetch(function(U){X.B.append(U);X.L+=U.length;U=(0,g.G$)();X.pg.K1(U,X.L)},function(){},u.body||null)}; yNu=function(w,M){this.L=(new TextEncoder).encode(w);this.B=(new TextEncoder).encode(M)}; G1y=function(w,M){var P;return g.n(function(u){if(!M)return u.return(M);P=new g.Us(w.L);return u.return(P.encrypt(M,w.B))})}; zFH=function(w,M){var P;return g.n(function(u){if(u.L==1){if(!M)return u.return(M);P=new g.Us(w.L);return g.B(u,P.decrypt(M,w.B),2)}return u.return(u.B)})}; qq5=function(w,M){var P=this;this.B=w;this.pg=M;this.loaded=this.status=0;this.error="";w=J3(this.B.get("range")||"");if(!w)throw Error("bad range");this.range=w;this.L=new iV;Dh2(this).then(function(){P.pg.c9()},function(u){P.error=""+u||"unknown_err"; P.pg.c9()})}; Dh2=function(w){var M,P,u,X,U,f,h,c,Z,S,H,p,F,E,y;return g.n(function(q){if(q.L==1){w.status=200;M=w.B.get("docid");P=li(w.B.get("fmtid")||"");u=w.B.get("lmt")||"0";X=+(w.B.get("csz")||0);if(!M||!P||!X)throw Error("Invalid local URL");w.B.get("ck")&&w.B.get("civ")&&(U=new yNu(w.B.get("ck"),w.B.get("civ")));f=w.range;h=Math.floor(f.start/X);c=Math.floor(f.end/X);Z=h}if(q.L!=5)return Z<=c?g.B(q,TuU(M,P,u,Z,U),5):q.M0(0);S=q.B;if(S===void 0)throw Error("invariant: data is undefined");H=Z*X;p=(Z+1)*X; F=Math.max(0,f.start-H);E=Math.min(f.end+1,p)-(F+H);y=new Uint8Array(S.buffer,F,E);w.L.append(y);w.loaded+=E;w.loaded=400?(w.lastError="net.badstatus",!0):(X===void 0?0:X)?(w.lastError="ump.spsrejectfailure",!0):P||u!==void 0&&u?!1:(w.lastError=M===204?"net.nocontent":"net.connect",!0)}; EM=function(w,M){if(w.policy.SR)return!1;var P=M.getResponseHeader("content-type"),u=M.U9();w=!u||u<=w.policy.d8;return(!M.HQ()||!P||P.indexOf("text/plain")!==-1)&&w}; QTl=function(w,M){var P="";M=M.Xp();M.totalLength<=w.policy.d8&&(P=Bi4(w,$D(M)));return P}; Bi4=function(w,M){var P=ht(M);return nD(P)?(w.logger.debug(function(){return"Redirecting to "+P}),P):""}; Sy=function(w){return RW(w.C,IT(w.Rm.VO))}; k8_=function(w){var M=w.timing.xX();M.shost=IT(w.Rm.VO);return M}; R5x=function(w,M){return(w==null?void 0:w.maxWidth)>(M==null?void 0:M.maxWidth)||(w==null?void 0:w.maxHeight)>(M==null?void 0:M.maxHeight)}; nnU=function(w,M){for(var P=g.G(M.keys()),u=P.next();!u.done;u=P.next())if(u=M.get(u.value),u.length!==0){g.r3(u,function(h,c){return c.maxFramerate-h.maxFramerate}); for(var X=[u[0]],U=0,f=1;fw.B||P.push(u)}return P}; N5=function(w,M,P){var u=Kj_[w]||[];P.D("html5_shorts_onesie_mismatched_fix")&&(u=brR[w]||[]);M.push.apply(M,g.L(u));P.D("html5_early_media_for_drm")&&M.push.apply(M,g.L(IRU[w]||[]))}; CWH=function(w,M){var P=g.oI(w),u=w.N(),X=u.G;u=u.D("html5_shorts_onesie_mismatched_fix");var U=w.Dv();if(u){if(!X.L){if(U&&Vp)return Vp;if(mn)return mn}}else if(mn&&!X.L)return mn;var f=[],h=[],c={},Z=oA.concat(ANF);u&&(Z=oA.concat(gn5));w.D("html5_early_media_for_drm")&&(Z=Z.concat(JN2),w.D("allow_vp9_1080p_mq_enc")&&Z.push(rN2));var S=[].concat(g.L(jTy));w.D("html5_iamf_audio_onesie_fmt")&&S.push(["773"]);Z=g.G(Z);for(var H=Z.next();!H.done;H=Z.next()){var p=!1;H=g.G(H.value);for(var F=H.next();!F.done;F= H.next()){F=F.value;var E=Vo(F,U&&u);if(E&&E.video&&!(L3(E)&&!P.mN&&E.video.qualityOrdinal>P.yq)){var y=g.Oh(w.N().experiments,"html5_drm_byterate_soft_cap");y>0&&LLM(E)&&E.A9>y||(p?(f.push(F),N5(F,f,w)):(E=eB(P,E,X),E===!0?(p=!0,f.push(F),N5(F,f,w)):c[F]=E))}}}S=g.G(S);for(Z=S.next();!Z.done;Z=S.next())for(Z=g.G(Z.value),p=Z.next();!p.done;p=Z.next())if(p=p.value,(H=B6l(p))&&H.audio&&(w.D("html5_onesie_51_audio")||!e1(H)&&!BU(H)))if(H=eB(P,H,X),H===!0){h.push(p);N5(p,h,w);break}else c[p]=H;if(!w.D("html5_enable_audio_quality_setting"))for(w= g.G(["141","774"]),S=w.next();!S.done;S=w.next())S=S.value,h.includes(S)&&(g.D4(h,S),c[S]="blkhqa");P.L&&M("orfmts",c);if(u)return X.L&&(X.L=!1,Vp=mn=void 0),U?Vp={video:f,audio:h}:mn={video:f,audio:h};mn={video:f,audio:h};X.L=!1;return mn}; g.Or2=function(w,M,P){var u=P.G,X=[],U=[],f=P.D("html5_shorts_onesie_mismatched_fix");w=w.Dv();var h=oA.concat(ANF);f&&(h=oA.concat(gn5));P.D("html5_early_media_for_drm")&&(h=h.concat(JN2),P.D("allow_vp9_1080p_mq_enc")&&h.push(rN2));var c=[].concat(g.L(jTy));P.D("html5_iamf_audio_onesie_fmt")&&c.push(["773"]);h=g.G(h);for(var Z=h.next();!Z.done;Z=h.next()){Z=g.G(Z.value);for(var S=Z.next();!S.done;S=Z.next()){S=S.value;var H=Vo(S,w&&f);if(H&&H.video){var p=g.Oh(P.experiments,"html5_drm_byterate_soft_cap"); if(!(p>0&&LLM(H)&&H.A9>p)&&eB(M,H,u)===!0){X.push({videoCodec:tB4[Y5[S]],maxWidth:H.video.width,maxHeight:H.video.height,maxFramerate:H.video.fps});break}}}}f=g.G(c);for(w=f.next();!w.done;w=f.next())for(w=g.G(w.value),c=w.next();!c.done;c=w.next())if(c=c.value,(h=B6l(c))&&h.audio&&(P.D("html5_onesie_51_audio")||!e1(h)&&!BU(h))&&eB(M,h,u)===!0){U.push({audioCodec:xhp[Y5[c]],numChannels:h.audio.numChannels});break}return{videoFormatCapabilities:X,audioFormatCapabilities:U}}; M32=function(w){var M={},P=w.fu,u=w.r$,X=P.getVideoData(),U=cL(0),f=P.getVisibilityState();if(u.D("html5_enable_audio_quality_setting")){var h=g.Oh(u.experiments,"html5_default_audio_quality_setting_lr"),c;M.lH=(c=aRy[h])!=null?c:0}U&&(M.eW=U,M.lastManualDirection=xYp(),U=rCy()||0,U>0&&(U=(u.D("html5_use_date_now_for_local_storage")?Date.now():(0,g.G$)())-U,u.D("html5_use_date_now_for_local_storage")?U>0&&(M.timeSinceLastManualFormatSelectionMs=U):M.timeSinceLastManualFormatSelectionMs=U));U=u.D("html5_use_streamer_bandwidth_for_low_latency_live")&& X.isLowLatencyLiveStream;if(u.schedule.B3&&!U){var Z;U=u.D("html5_disable_bandwidth_cofactors_for_sabr_live")?!((Z=w.PB)==null||!Z.Ye):!1;M.Vl=BM(u.schedule,!U)}Z=g.Go.medium;U=Math.floor(Z*16/9);(h=X.Dv())||(X.B&&X.C&&X.C.videoInfos.length!==0?(h=X.C.videoInfos[0],h=!!h.video&&h.video.width 0&&(M.UL.authorizedFormats=w.authorizedFormats);w.sabrLicenseConstraint&&(M.UL.sabrLicenseConstraint=w.sabrLicenseConstraint);if(u.D("html5_onesie_media_capabilities")||u.D("html5_enable_server_format_filter"))M.Lq=3;u.D("html5_onesie_audio_only_playback")&&Ep(X)&&(M.Lq=1);var d;((d=w.PB)==null?0:d.Ob)&&w.r9&&(M.Lq=M.Lq===void 0?7:M.Lq|4);S=X.Kx?X.Kx:g.oI(X);u.D("html5_onesie_media_capabilities")&&(M.mediaCapabilities=g.Or2(X,S,u));var l;if((l=w.PB)==null?0:Gf(l)){p=u.G;l=[];H=[];F=new Map;E=Array.from(p.B.values()); E=g.G(E);for(y=E.next();!y.done;y=E.next())q=y.value,q.hx?H.push({audioCodec:xhp[q.zk],numChannels:q.numChannels,spatialCapabilityBitmask:wfM[q.zk]}):(d=tB4[q.zk],y={videoCodec:d,maxWidth:q.maxWidth||0,maxHeight:q.maxHeight||0,maxFramerate:q.maxFramerate||0,is10BitSupported:q.fd||!1},q.maxBitrateBps&&(y.maxBitrateBps=q.maxBitrateBps,f=Vo(q.itag),Z=void 0,((Z=f)==null?0:Z.video)&&eB(S,f,p)===!0&&(f=f.A9*8,f>y.maxBitrateBps&&(y.maxBitrateBps=f))),q=d+"_"+q.fd,d=F.get(q)||[],d.push(y),F.set(q,d));l= nnU(l,F);p={};u.D("html5_ssff_denylist_opus_low")&&(p={itagDenylist:[249,350]});M.mediaCapabilities={videoFormatCapabilities:l,audioFormatCapabilities:H,hdrModeBitmask:3,perPlaybackAttributes:p}}var e;if((e=w.PB)==null?0:e.B){M.P9=S.P9;var R;M.yq=(R=w.PB)==null?void 0:R.yq}u.TD&&(M.Vw=u.TD);M.bK=w.G3;M.Qy=w.Qy;M.wM=w.wM;M.cH=w.cH;w.fm&&(M.k0s=(0,g.G$)()-w.fm);w.isPrefetch&&u.D("html5_report_prefetch_requests")&&(M.isPrefetch=!0);SY||(M.LNI=!0);e=ll(u.schedule)*1E3;e>0&&(M.CR=e);var I;((I=w.PB)==null? 0:I.wz)&&w.CE&&w.CE0?w4:u.schedule.interruptions[0]||0;var t;if((t=w.PB)==null?0:t.M7)M.zl=w.zl;u.iW&&(M.audioTrackId=u.iW);wI(X)&&!M.audioTrackId&&(u.D("html5_fill_default_mosaic_audio_track_id")||(w=eau(X),M.audioTrackId= w),X==null||X.II("misstrkchg",{"default":M.audioTrackId}));if(X=TC4())M.detailedNetworkType=iwy[X]||iwy.other;u.D("html5_enable_voice_boost")&&(M.fqO=u.rY);return M}; yp=function(w,M,P,u,X,U,f){var h={};M&&(h.Bm=M);if(!w)return h;h.playbackCookie=P==null?void 0:P.playbackCookie;X&&(h.Gq=X);h.Jr=[];h.Sv=[];if(f==null?0:f.size)for(M=g.G(f.values()),P=M.next();!P.done;P=M.next())h.Sv.push(P.value);if(w.sabrContextUpdates.size>0)for(M=g.G(w.sabrContextUpdates.values()),P=M.next();!P.done;P=M.next())PQ4(h,P.value,u);mC(w)&&U&&PQ4(h,U,u);w.MI&&(h.bxN=w.MI);u=w.N().B;h.clientInfo={clientName:uV4[u.c.toUpperCase()]||0};u.cbrand&&(h.clientInfo.deviceMake=u.cbrand);u.cmodel&& (h.clientInfo.deviceModel=u.cmodel);u.cver&&(h.clientInfo.clientVersion=u.cver);u.cos&&(h.clientInfo.osName=u.cos);u.cosver&&(h.clientInfo.osVersion=u.cosver);u=w.N();u.D("html5_sabr_enable_server_xtag_selection")&&u.SZ&&(h.clientInfo.hl=u.SZ);w.E$&&(h.E$=w.E$);return h}; PQ4=function(w,M,P){var u=M.type||0;(P==null?0:P.has(u))?w.Sv.push(M):w.Jr.push(u)}; If=function(w,M,P,u,X,U){var f=U===void 0?{}:U;var h=f.Uk===void 0?[]:f.Uk;var c=f.GF===void 0?!1:f.GF;var Z=f.i_===void 0?0:f.i_;var S=f.poToken===void 0?"":f.poToken;var H=f.Df===void 0?void 0:f.Df;var p=f.gq===void 0?"":f.gq;var F=f.OH===void 0?0:f.OH;var E=f.e1===void 0?new Uint8Array(0):f.e1;var y=f.eI===void 0?!1:f.eI;U=f.W8===void 0?0:f.W8;f=f.Bm===void 0?void 0:f.Bm;UM.call(this,M,X);var q=this;this.policy=w;this.logger=new g.pM("dash/request");this.m4=this.Oq=0;this.B5=!1;this.Uj=this.P8= null;this.V$=!1;this.e1=this.OH=null;this.uV=this.Cc=!1;this.vt=null;this.W8=this.eX=0;this.l1=!1;this.yH={g7:function(l){q.g7(l)}, reN:function(){return q.CV}, AXW:function(l){q.CV=l}, H1I:function(l){q.Oq=l}, Z1s:function(l){q.d7.lastError=l}, ma:function(){return q.xhr}}; this.timing=new Px(this,P);this.GF=c;this.OH=F;this.e1=E;this.Rm=g.Xg(this.info,this.policy,u);this.Rm.set("rn",this.WI().toString());this.Rm.set("rbuf",(Z*1E3).toFixed().toString());this.GF&&this.Rm.set("smb","1");this.policy.JQ&&S&&this.Rm.set("pot",S);p&&this.Rm.set("bbs",p);this.policy.useUmp&&!AN(this.Rm.VO)&&(this.z1=new $x(this),this.Rm.set("ump","1"),this.Rm.set("srfvp","1"));if(w=this.policy.Lk?this.policy.VQ&&!isNaN(this.info.y8)&&this.info.y8>this.policy.MI?!1:!0:!1)M=null,this.policy.hY&& this.policy.IE?M=[1]:y&&(M=[]),M!=null&&(this.policy.TT&&M.push(2),this.Rm.set("defsel",M.join(",")));this.d7=new Zp(this,this.policy,this.Rm,this.info.EF,this.timing,this.logger,u,H);this.Uk=h||null;this.Pm=Xfy(this);dh5(this.d7);u=void 0;if(this.policy.R_||this.z1||this.policy.xu)u={method:"POST"},h=(0,g.Dp)([120,0]),H={},this.policy.vg&&f&&(f=yp(void 0,f),H.eO=f),this.policy.Iz&&this.e1&&(H.videoPlaybackUstreamerConfig=this.e1),this.policy.xu&&(f=this.info.X)&&Object.assign(H,f),Object.keys(H).length> 0?u.body=g.gt(H,g.fr):u.body=h;if(this.OH&&this.e1){this.Rm.set("iwts","1");u={method:"POST"};f={cH:this.OH*1E3};var d;h=(d=this.info.X)==null?void 0:d.u4;d=g.gt({yh:f,u4:h||void 0,videoPlaybackUstreamerConfig:this.e1},g.fr);u.body=d}try{this.xhr=Wx(this.Rm,this.policy.j,this.timing,w,u),this.d7.L.start(),U&&(this.yC=new g.gV(this.No,U,this),this.yC.start(U+(this.timing.mT.V.Zu()||0)*1E3)),this.policy.hI&&M5(this.timing,this.xa()),this.logger.debug(function(){return"Sent, itag="+q.Rm.get("itag")+ " seg="+q.info.N0[0].Ku+" range="+q.Rm.get("range")+" time="+Math.round(q.info.N0[0].X)+"-"+Math.round(g.FE(q.info.N0).K)+" rtp="+(q.timing.C3()-Date.now()).toFixed(0)}),g.Vk(function(){})}catch(l){$dM(this,l,!0)}}; Xfy=function(w){if(!(uq(w.info)&&w.info.Ka()&&w.policy.QL&&w.Uk)||w.info.EF.C>=2||cL()>0||!iN2())return!1;var M=w.Rm.get("aitags");if(!M)return!1;M=li(M).split(",");for(var P=[],u=g.G(w.Uk),X=u.next();!X.done;X=u.next())X=X.value,g.o$(M,X)&&P.push(X);if(!P.length)return!1;w.Rm.set("altitags",g.TL(P.join(",")));return!0}; $dM=function(w,M,P){P=P===void 0?!1:P;g.qU(M);w.d7.lastError="player.exception";w.errorMessage=M.name+"_"+M.message;P?g.Vk(function(){p2(w.d7)}):p2(w.d7)}; UdF=function(w,M){w.timing.B3=!0;w.xhr.HQ()&&w.timing.ai();if(w.policy.KT){var P;(P=w.yC)==null||P.stop()}cx(w.CV,M,!1)}; fC1=function(w,M){w.info=M;if(w.CV){var P=w.CV;M=M.N0;(M.length!==P.N0.length||M.length0){M=g.G(M.N0);for(var P=M.next();!P.done;P=M.next()){var u=void 0;w+=((u=P.value.range)==null?void 0:u.length)||0}return w}if(M.jE.length>0)for(P=g.G(M.jE),u=P.next();!u.done;u=P.next())w+=u.value.wx||0;return w+M.J6}; ey=function(w,M){if(dO){var P=0;w=w.G5.get(M);if(w==null||!w.OG)return 0;w=g.G(w.OG.values());for(M=w.next();!M.done;M=w.next())P+=M.value.data.totalLength;return P}return((P=w.G5.get(M))==null?void 0:P.N6.totalLength)||0}; Bx=function(w,M){w=w.G5.get(M);if(dO){if(w==null||!w.KA)return!1;M=w.OG.size>0;return w.pE.length>0||M}return!(w==null||!w.KA)&&!(w==null||!w.N6.totalLength)}; Hwp=function(w,M){var P=w.G5.get(M),u=S01(w,M),X=!u&&!!P.bytesReceived;if(dO){var U;if((U=w.Gk)==null?0:U.dK){w=g.G(P.OG.values());for(M=w.next();!M.done;M=w.next())if(!M.value.wC)return!1;return X}}else if(U=w.OD(M),X&&w.B&&U!==void 0)return U;return(X||P.bytesReceived===u)&&P.fb+ey(w,M)===P.bytesReceived}; pfF=function(w,M,P){w.G5.set(M,{N6:new iV,fb:0,bytesReceived:0,J6:0,cN:!1,bF:!1,OD:!1,hx:P,O3:[],N0:[],jE:[],KA:!1,OG:new Map,dN:new Map,pE:[]});w.logger.debug(function(){return"[initStream] formatId: "+M})}; F11=function(w,M,P,u){P.N0.push.apply(P.N0,g.L(u));if(dO){P.dN.has(M)||P.dN.set(M,[]);var X;(X=P.dN.get(M)).push.apply(X,g.L(u))}else if(P.CV)for(w=g.G(u),M=w.next();!M.done;M=w.next())P.CV.N0.push(M.value);else{P.CV=new h2(w.PB,[].concat(g.L(P.N0)));var U;((U=w.PB)==null?0:U.bI)&&g.b(w,P.CV)}}; EcR=function(w,M,P){var u,X=(u=w.Gk)==null?void 0:u.C.get(M);if(!X)return[];if(P.oO){var U;return((U=X.Xl(0,P.clipId))==null?void 0:U.N0)||[]}if(X.sj()){var f=P.startMs,h=P.durationMs;u=1E3;var c;if(((c=w.PB)==null?0:c.B)&&P.timeRange){var Z;f=(Z=P.timeRange.startTicks)!=null?Z:-1;var S;h=(S=P.timeRange.cS)!=null?S:-1;var H;u=(H=P.timeRange.timescale)!=null?H:-1}if(P.Dw<0||P.L0<0||h<0||f<0||P.wx<0||u<0)return L2(w,M),[];w=rU(P.Dw,P.wx);M=P.YR||0;return[new Cw(3,X,w,"makeSliceInfosMediaBytes",P.L0- 1,f/u,h/u,M,w.length-M,void 0,P.Y6,P.clipId)]}if(P.L0<0)return L2(w,M),[];var p;return((p=w.Gk)==null?0:p.dK)?(M=X.n6,c=M*X.info.A9,Z=P.YR,((h=w.PB)==null?0:h.x3)&&P.timeRange&&!Z&&(f=P.timeRange.startTicks/P.timeRange.timescale),[new Cw(3,X,void 0,"makeSliceInfosMediaBytes",P.L0,f,M,Z,c,!0,P.Y6,P.clipId)]):[]}; NUu=function(w,M,P){w.Gk=M;w.PB=P;M=g.G(w.G5);for(P=M.next();!P.done;P=M.next()){var u=g.G(P.value);P=u.next().value;u=u.next().value;for(var X=g.G(u.O3),U=X.next();!U.done;U=X.next()){U=U.value;var f=EcR(w,P,U);F11(w,U.fp,u,f)}}}; Qp=function(w,M,P,u){w.logger.debug(function(){return"[addStreamData] formatId: "+P+",headerId: "+M+" bytes: "+u.totalLength}); (w=w.G5.get(P))&&!w.bF&&(dO?(w.OG.has(M)||w.OG.set(M,{data:new iV,pQ:0,wC:!1}),MR(w.OG.get(M).data,u)):MR(w.N6,u),w.bytesReceived+=u.totalLength,w.cN=!0)}; ln=function(w,M){w.logger.debug(function(){return"[closeStream] formatId: "+M}); var P=w.G5.get(M);P&&!P.bF&&(P.bF=!0,P.j7&&P.j7(),V3x(w)&&w.X.MR())}; V3x=function(w){w=g.G(w.G5.values());for(var M=w.next();!M.done;M=w.next())if(!M.value.bF)return!1;return!0}; md1=function(w){dO=w}; kx=function(w,M,P,u,X,U,f){g.v.call(this);this.policy=w;this.info=M;this.Gk=P;this.pg=X;this.logger=new g.pM("sabr");this.z1=new $x(this);this.Jh=new zf(this);this.SU=new Tf(this);this.state=1;this.qB=!1;this.CI=0;this.clipId="";this.YH=-1;this.jj=0;this.zO=-1;this.l1=this.Uo=!1;this.Gh=0;this.GG=!1;this.policy.Ry?this.qt=new q5(this,U):this.qt=new Px(this,U);this.Rm=this.policy.M7?M.SV:ocu(M,this.policy,u);this.Rm.set("rn",""+this.WI());this.Rm.set("alr","yes");NUu(this.SU,P,w);this.d7=new Zp(this, this.policy,this.Rm,M.EF,this.qt,this.logger,u,f,this.policy.enableServerDrivenRequestCancellation);dh5(this.d7);var h;if((h=this.policy)==null?0:h.bI)g.b(this,this.SU),g.b(this,this.d7);w=M.L;M={method:"POST",body:w};w&&(this.jj=w.length);try{this.xhr=Wx(this.Rm,this.policy.j,this.qt,SY,M),this.policy.hI&&M5(this.qt,this.xa()),this.d7.L.start()}catch(c){g.Yq(c)}}; Gn1=function(w){w.policy.oW&&w.ql&&!w.GG?w.GG=!0:w.qt.ai()}; y34=function(w,M){var P=-1,u=-1,X=-1,U;if((U=w.rU)==null?0:U.items)for(w=g.G(w.rU.items),U=w.next();!U.done;U=w.next())U=U.value,M=h,c=w.Gk.isManifestless&&w.policy.Di,f){var Z;if(((Z=w.B)==null?void 0:Z.FP.event)==="predictStart"&&w.B.Kuw.K&&(w.K=NaN,w.j=NaN);w.B&&w.B.Ku===M?sWp(w,M,P,w.B,X):w.L===1&&sM(w,5,"noad")}; K1u=function(w,M,P,u,X){u.zv?sM(w,4,"cue"):(w.K=M,w.j=P,w.II("sdai",{joinad:w.L,sg:w.K,st:w.j.toFixed(3)}),w.S=Date.now(),sM(w,2,w.L===3?"staftpred":"join"),X.xK(u.FP))}; sWp=function(w,M,P,u,X){if(X&&u){var U=u.FP,f=X.K8(U);U.event==="predictStart"&&(w.Lu=M);w.II("sdai",{onqevt:U.event,sq:M,mt:P,gab:f,cst:U.startSecs,cueid:w.policy.qI&&(f||U.event==="start")?U.identifier:void 0},!0);if(f)U.event!=="predictStart"?(U.event==="start"&&w.Lu===M-1&&w.II("sdai",{gabonstart:M}),K1u(w,M,P,u,X)):w.policy.jU?sM(w,3,"predict"):(M+=Math.max(Math.ceil(-U.B/5E3),1),U=Math.floor(P-U.B/1E3),w.policy.L?w.G=U:w.X=M,w.II("sdai",{onpred:P,estsq:M,estmt:U.toFixed(3)}),K2(w.loader,U,U, M),w.S=Date.now(),sM(w,3,"predict"),X.xK(u.FP));else if(w.L===1){var h;((h=w.C)==null?0:h.cM(P))?(K2(w.loader,P,P,M),sM(w,4,"sk2head")):sM(w,5,"nogab")}else U.event==="predictStart"?w.policy.L&&w.G>0?(P=Math.floor(P-U.B/1E3),w.G!==P&&w.II("sdai",{updateSt:P,old:w.G}),w.G=P):w.X>0&&(P=M+Math.max(Math.ceil(-U.B/5E3),1),w.X!==P&&(w.II("sdai",{updateSt:P,old:w.X}),w.X=P)):w.policy.jU&&w.L===3&&K1u(w,M,P,u,X)}else w.II("sdai",{nulldec:1,sq:M,mt:P.toFixed(3),evt:(u==null?void 0:(U=u.FP)==null?void 0:U.event)|| "none"})}; ICl=function(w,M,P){if(w.policy.m$&&w.policy.L)return!(w.L===1||w.L===2||!w.policy.jU&&w.L===3&&P>=w.X);if(w.L===1||w.L===2)return!1;if(w.L!==0&&M===w.audioTrack){if(w.policy.L)return bwF(w.videoTrack,P)||bwF(w.videoTrack,P+1);w=bn(w.videoTrack);if(P>(w?w.Ku:-1))return!1}return!0}; IA=function(w,M,P){return(P<0||P===w.K)&&!isNaN(w.j)?w.j:M}; kn4=function(w,M){if(w.B){var P=w.B.FP.Xq-(M.startTime+w.V-w.B.FP.startSecs);P<=0||(P=new uQ(w.B.FP.startSecs-(isNaN(w.V)?0:w.V),P,w.B.FP.context,w.B.FP.identifier,"stop",w.B.FP.B+M.duration*1E3),w.II("cuepointdiscontinuity",{segNum:M.Ku}),vx(w,P,M.Ku))}}; sM=function(w,M,P){w.L!==M&&(w.II("sdai",{setsst:M,old:w.L,r:P}),w.L=M)}; A2=function(w,M,P,u){(u===void 0?0:u)?sM(w,1,"seek"):M>0&&Math.abs(M-P)>=5&&w.L===4&&sM(w,5,"sk2t")}; A3x=function(w){this.II=w;this.B="";this.L=new Map}; gO=function(w,M,P){this.audio=w;this.video=M;this.reason=P}; J2=function(w,M,P){this.B=w;this.reason=M;this.token=P;this.videoId=void 0}; rO=function(w,M,P){g.v.call(this);this.policy=w;this.X=M;this.II=P;this.C=new Map;this.G=0;this.K=!1;this.B="";this.L=!1}; jy=function(w,M,P){if(P===void 0?0:P)w.K=!0;++w.G;P=6E4*Math.pow(2,w.G);P=(0,g.G$)()+P;w.C.set(M.info.id,P)}; C2=function(w){for(var M=g.G(w.C.entries()),P=M.next();!P.done;P=M.next()){var u=g.G(P.value);P=u.next().value;u=u.next().value;u<(0,g.G$)()&&w.C.delete(P)}return w.C}; gcz=function(w){return w.K&&C2(w).size>0}; t2=function(w,M){w.B!==M&&(w.B=M,w.L=!0)}; J3H=function(w,M){var P;M&&(P=g.Nj(w.X.B,function(X){return X.id===M})); if(!P&&(P=g.Nj(w.X.B,function(X){var U;return!((U=X.Y2)==null||!U.isDefault)}),M)){var u; w.II("iaf",{id:M,sid:(u=P)==null?void 0:u.id})}return P}; OM=function(w,M,P,u,X,U){var f=this;U=U===void 0?[]:U;this.loader=w;this.mN=M;this.policy=P;this.Gk=u;this.K=X;this.iW=U;this.logger=new g.pM("dash/abr");this.B=P7;this.C=this.j=null;this.S=-1;this.UO=!1;this.nextVideo=this.L=null;this.X=[];this.OO=new Set;this.xu={};this.jL=new y8(1);this.V=0;this.t9=this.Lu=this.B3=!1;this.ys=0;this.Yu=!1;this.Cu=new Set;this.eL=!1;this.yH={c5:function(){xx(f)}}; this.G=new rO(this.policy,X,function(h,c){f.loader.II(h,c)})}; xdl=function(w,M,P){aA(w,M);M=J3H(w.G,P);P||M||(M=r35(w));M=M||w.K.B[0];w.L=w.Gk.B[M.id];xx(w);w.j=w.L;jWy(w);CQF(w);w.C=w.nextVideo;w.j=w.L;return t3F(w)}; wCH=function(w,M){if(Ow4(w,M))return null;if(M.reason==="m"&&M.isLocked())return w.logger.debug(function(){return"User sets constraint to: "+z8(M)}),aA(w,M),w.V=w.X.length-1,xx(w),wv(w),w.Lu=w.Lu||w.C!==w.nextVideo,w.C=w.nextVideo,new gO(w.L,w.C,M.reason); M.reason==="r"&&(w.S=-1);aA(w,M);wv(w);if(M.reason==="r"&&w.nextVideo===w.C)return new gO(w.L,w.nextVideo,M.reason);aCx(w);return null}; iM2=function(w,M,P){w.L=w.Gk.B[M];w.j=w.L;return new gO(w.j,w.C,P?"t":"m")}; Mj5=function(w,M){if(M.info.video){if(w.C!==M)return w.C=M,t3F(w)}else w.t9=w.j!==M,w.j=M;return null}; Pql=function(w,M){if(M.B.info.video&&M.G){var P=(M.L+M.C)/M.duration,u=M.B.info.A9;P&&u&&(w.jL.YQ(1,P/u),w.policy.C&&P/u>1.5&&w.loader.II("overshoot",{sq:M.Ku,br:P,max:u}))}}; id=function(w,M,P){jy(w.G,M,P===void 0?!1:P);w.S=-1;aA(w,w.B)}; ugR=function(w,M){return new gO(w.j,w.C,M||w.B.reason)}; aCx=function(w){if(w.C&&w.nextVideo&&MX(w,w.C.info)w.policy.yq,h=X<=w.policy.yq?L3(u):To(u);if(!U||f||h)P[X]=u}return P}; aA=function(w,M){w.B=M;var P=w.K.videoInfos;if(!w.B.isLocked()){var u=(0,g.G$)();P=g.DP(P,function(h){if(h.A9>this.policy.A9)return!1;var c=this.Gk.B[h.id];return C2(this.G).get(h.id)>u?!1:c.EF.C>4||c.K>4?(this.logger.debug(function(){return"Remove "+b3(h)+"; 4 load failures"}),!1):this.Cu.has(+h.itag)?!1:!0},w); gcz(w.G)&&(P=g.DP(P,function(h){return h.video.width<=854&&h.video.height<=480}))}P.length||(P=w.K.videoInfos); var X=P;w.policy.JX&&(X=$JH(w,X,M));X=g.DP(X,M.X,M);if(w.B.isLocked()&&w.G.B){var U=g.Nj(P,function(h){return h.id===w.G.B}); U?X=[U]:t2(w.G,"")}w.policy.JX||(X=$JH(w,X,M));X.length||(X=[P[0]]);X.sort(function(h,c){return MX(w,h)-MX(w,c)}); M={};for(P=1;PM.pD.video.width?(g.Gc(X,P),P--):MX(w,M.tB)*w.policy.V>MX(w,M.pD)&&(g.Gc(X,P-1),P--);var f=X[X.length-1];w.Yu=!!w.C&&!!w.C.info&&w.C.info.zk!==f.zk;w.logger.debug(function(){return"Constraint: "+z8(w.B)+", "+X.length+" fmts selectable, max selectable fmt: "+b3(f)}); w.X=X;w.OO.clear();M=!1;for(P=0;P=1080&&(M=!0);UJ_(w.policy,f,w.Gk.dK)}; $JH=function(w,M,P){var u=P.reason==="m"||P.reason==="s";w.policy.Wg&&P$&&g.HN&&(!u||P.B<1080)&&(M=M.filter(function(Z){return Z.video&&(!Z.L||Z.L.powerEfficient)})); if(M.length>0)if(MV()){var X=XCy(w,M);M=M.filter(function(Z){return!!Z&&!!Z.video&&Z.zk===X[Z.video.qualityOrdinal].zk})}else{var U,f,h=(U=M[0])==null?void 0:(f=U.video)==null?void 0:f.qualityOrdinal; if(h){P=M.filter(function(Z){return!!Z&&!!Z.video&&Z.video.qualityOrdinal===h}); var c=XCy(w,P)[h].zk;M=M.filter(function(Z){return!!Z&&!!Z.video&&Z.zk===c})}}return M}; fBu=function(w,M){for(var P=0;P+1u}; xx=function(w){if(!w.L||!w.policy.X&&!w.L.info.Y2){var M=w.K.B;w.L&&(M=M.filter(function(u){return u.audio.B===w.L.info.audio.B}),M.length||(M=w.K.B)); w.L=w.Gk.B[M[0].id];if(M.length>1&&!w.policy.t9){if(!w.policy.Qn){var P=g.Nj(M,function(u){return u.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); P&&(w.L=w.Gk.B[P.id])}P=!1;if(P=w.policy.DX?!0:w.B.isLocked()?w.B.B<240:fBu(w,w.L))w.L=w.Gk.B[g.FE(M).id]}}}; wv=function(w){if(!w.nextVideo||!w.policy.X)if(w.B.isLocked())w.nextVideo=w.B.B<=360?w.Gk.B[w.X[0].id]:w.Gk.B[g.FE(w.X).id],w.logger.debug(function(){return"Select max fmt: "+b3(w.nextVideo.info)}); else{for(var M=Math.min(w.V,w.X.length-1),P=n6(w.mN),u=MX(w,w.L.info),X=P/w.policy.B3-u;M>0&&!(MX(w,w.X[M])<=X);M--);for(var U=P/w.policy.V-u;M=U);M++);w.nextVideo=w.Gk.B[w.X[M].id];w.V!==M&&w.logger.info(function(){return"Adapt to: "+b3(w.nextVideo.info)+", bandwidth: "+P.toFixed(0)+", bandwidth to downgrade: "+X.toFixed(0)+", bandwidth to upgrade: "+U.toFixed(0)+", constraint: "+z8(w.B)}); w.V=M}}; jWy=function(w){var M=w.policy.B3,P=n6(w.mN),u=P/M-MX(w,w.L.info);M=g.mU(w.X,function(X){return MX(this,X)U?X=0:u[f]>w.buffered[f]&&(f===U-1?X=2:f===U-2&&u[f+1]>w.buffered[f+1]&&(X=3))}w.B.add(M<<3|(P&&4)|X);M=Math.ceil(w.track.yc()*1E3);w.B.add(M-w.G);w.G=M;if(X===1)for(w.B.add(U),f=M=0;f=2&&w.B.add(u[U- 1]-w.buffered[U-1]);P&&w.B.add(P);w.buffered=u}; $E=function(w,M,P){var u=this;this.policy=w;this.B=M;this.ys=P;this.X=this.L=0;this.Jp=null;this.B3=new Set;this.S=[];this.indexRange=this.initRange=null;this.V=new cp;this.Lu=this.mN=!1;this.yH={I$O:function(){return u.C}, hy9:function(){return u.chunkSize}, F$W:function(){return u.j}, K$s:function(){return u.K}}; (M=SOM(this))?(this.chunkSize=M.csz,this.C=Math.floor(M.clen/M.csz),this.j=M.ck,this.K=M.civ):(this.chunkSize=w.LA,this.C=0,this.j=g.Hl(16),this.K=g.Hl(16));this.G=new Uint8Array(this.chunkSize);this.j&&this.K&&(this.crypto=new yNu(this.j,this.K))}; SOM=function(w){if(w.policy.kD&&w.policy.Iy)for(var M=g.G(w.policy.kD),P=M.next(),u={};!P.done;u={GO:void 0,nD:void 0},P=M.next())if(P=g.w$(P.value),u.GO=+P.clen,u.nD=+P.csz,u.GO>0&&u.nD>0&&w.policy.X===P.docid&&w.B.info.id===P.fmtid&&w.B.info.lastModified===+P.lmt)return w={},w.clen=u.GO,w.csz=u.nD,w.ck=P.ck,w.civ=P.civ,w}; Uz=function(w){return!!w.Jp&&w.Jp.GC()}; F$2=function(w,M){if(!Uz(w)&&!w.sO()){if(!(w.mN||(w.mN=!0,w.C>0))){var P=fs(w);P=rD(w.policy.X,w.B.info,W$(w),P,w.policy.jL);hY(w,P)}if(M.info.type===1){if(w.Jp){c$(w,Error("Woffle: Expect INIT slices to always start us off"));return}w.initRange=rU(0,M.L.totalLength)}else if(M.info.type===2)w.Jp&&w.Jp.type===1||c$(w,Error("Woffle: Index before init")),w.indexRange=rU(w.initRange.end+1,M.L.totalLength);else if(M.info.type===3){if(!w.Jp){c$(w,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(w.Jp.type===3&&!O0(w.Jp,M.info)&&(w.S=[],M.info.Ku!==aW(w.Jp)||M.info.L!==0))return;if(M.info.G){P=g.G(w.S);for(var u=P.next();!u.done;u=P.next())HMz(w,u.value);w.S=[]}else{w.S.push(M);w.Jp=M.info;return}}else{c$(w,Error("Woffle: Unexpected slice type"));return}w.Jp=M.info;HMz(w,M);pCp(w)}}; HMz=function(w,M){var P=0,u=$D(M.L);if(w.X=u.length)return;if(P<0)throw Error("Missing data");w.X=w.C;w.L=0}for(X={};P0){var f=u.getUint32(P+28);U+=f*16+4}var h=u.getUint32(P+U-4);try{var c=oYR(M.subarray(P+U,P+U+h));if(c!==null){var Z=c;break a}}catch(S){}}P+=X}Z=null;break a}catch(S){Z=null;break a}Z=void 0}if(Z!=null)for(M=HA(x$(Z,7,void 0,le)),M==null||w.R7||(w.cryptoPeriodIndex=M),M=HA(x$(Z,10,void 0,le)),M!=null&&M>0&& !w.R7&&(w.B=M),Z=ue(Z,2,Tq5,void 0===ex2?2:4),Z=g.G(Z),u=Z.next();!u.done;u=Z.next())M=w.C,P=M.push,u=QM(u.value),u=g.Yw(u,4),P.call(M,u)}; yLU=function(w){return isNaN(w.cryptoPeriodIndex)?g.Yw(w.initData):""+w.cryptoPeriodIndex}; H$=function(w,M,P){var u=P===void 0?{}:P;P=u.videoDuration===void 0?0:u.videoDuration;var X=u.x5===void 0?void 0:u.x5;u=u.uU===void 0?!1:u.uU;this.videoId=w;this.status=M;this.videoDuration=P;this.x5=X;this.uU=u}; DJ1=function(w,M,P,u,X){this.videoId=w;this.KU=M;this.L=P;this.bytesDownloaded=u;this.B=X}; ps=function(w){this.B=w;this.offset=0}; FN=function(w){if(w.offset>=w.B.totalLength)throw Error();return fF(w.B,w.offset++)}; qO_=function(w,M){M=M===void 0?!1:M;var P=FN(w);if(P===1){M=-1;for(P=0;P<7;P++){var u=FN(w);M===-1&&u!==255&&(M=0);M>-1&&(M=M*256+u)}return M}u=128;for(var X=0;X<6&&u>P;X++)P=P*256+FN(w),u*=128;return M?P:P-u}; YO2=function(w){try{var M=qO_(w,!0),P=qO_(w,!1);return{id:M,size:P}}catch(u){return{id:-1,size:-1}}}; zfH=function(w){for(var M=new ps(w),P=-1,u=0,X=0;!u||!X;){var U=YO2(M),f=U.id;U=U.size;if(f<0)return;if(f===176){if(U!==2)return;u=M.Mg()}else if(f===186){if(U!==2)return;X=M.Mg()}f===374648427?P=M.Mg()+U:f!==408125543&&f!==174&&f!==224&&M.skip(U)}M=U$(w,0,P);P=new DataView(M.buffer);P.setUint16(u,3840);P.setUint16(X,2160);u=new iV([M]);MR(u,w);return u}; Tr1=function(w,M,P){var u=this;this.loader=w;this.policy=M;this.G=P;this.logger=new g.pM("dash");this.L=[];this.B=null;this.mN=-1;this.S=0;this.Cu=NaN;this.B3=0;this.C=NaN;this.V=this.UO=0;this.Yu=-1;this.xu=this.X=this.K=this.ys=null;this.jL=this.t9=NaN;this.j=this.Lu=this.OO=this.iW=null;this.Z3=!1;this.eL=this.timestampOffset=0;this.yH={CL:function(){return u.L}}; if(this.policy.X){var X=this.G,U=this.policy.X;this.policy.jL&&w.II("atv",{ap:this.policy.jL});this.j=new $E(this.policy,X,function(f,h,c){Ez(w,new H$(u.policy.X,2,{x5:new DJ1(U,f,X.info,h,c)}))}); this.j.V.promise.then(function(f){u.j=null;f===1?Ez(w,new H$(u.policy.X,f)):u.loader.II("offlineerr",{status:f.toString()})},function(f){var h=(f.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); f instanceof Zs&&!f.B?(u.logger.info(function(){return"Assertion failed: "+h}),u.loader.II("offlinenwerr",{em:h}),NX(u),Ez(w,new H$(u.policy.X,4))):(u.logger.info(function(){return"Failed to write to disk: "+h}),u.loader.II("dldbwerr",{em:h}),NX(u),Ez(w,new H$(u.policy.X,4,{uU:!0})))})}}; dJu=function(w){return w.L.length?w.L[0]:null}; lB4=function(w,M){return w.L.some(function(P){return P.info.Ku===M})}; kmx=function(w,M,P,u){u=u===void 0?0:u;if(w.X){var X=w.X.L+w.X.C;if(P.info.L>0)if(P.info.Ku===w.X.Ku&&P.info.L=0&&w.X.Ku>=0&&!O0(w.X,P.info))throw new g.bK("improper_continuation",w.X.vk(),P.info.vk());V1u(w.X,P.info)||V7(w,"d")}else if(P.info.L>0)throw new g.bK("continuation_of_null",P.info.vk());w.X=P.info;w.G=P.info.B;if(P.info.L===0){if(w.B)if(!w.loader.isOffline()||w.policy.oE)w.loader.II("slice_not_fully_processed", {buffered:w.B.info.vk(),push:P.info.vk()});else throw new g.bK("slice_not_fully_processed",w.B.info.vk(),P.info.vk());mM(w);w.UO=u}else{if(w.UO&&u&&w.UO!==u)throw w=new g.bK("lmt_mismatch",P.info.Ku,w.UO,u),w.level="WARNING",w;!P.info.B.sj()&&w.K&&(u=P.info,X=w.K.YH,u.j="updateWithEmsg",u.Ku=X)}if(w.B){u=g.VL(w.B,P);if(!u)throw new g.bK("failed_to_merge",w.B.info.vk(),P.info.vk());w.B=u}else w.B=P;a:{P=g.Q2(w.B.info.B.info);if(w.B.info.type!==3){if(!w.B.info.G)break a;w.B.info.type===6?L$M(w,M,w.B): efH(w,w.B);w.B=null}for(;w.B;){u=w.B.L.totalLength;if(w.mN<=0&&w.S===0){var U=w.B.L,f=-1;X=-1;if(P){for(var h=0;h+80))break;if(H!==408125543)if(H===524531317)h=!0,S>=0&&(X=U.Mg()+S,c=!0);else{if(h&&(H===160||H===163)&&(f<0&&(f=Z),c))break;H===163&&(f=Math.max(0,f),X=U.Mg()+S);if(H===160){f<0&&(X=f=U.Mg()+ S);break}U.skip(S)}}f<0&&(X=-1)}if(f<0)break;w.mN=f;w.S=X-f}if(w.mN>u)break;w.mN?(u=Brl(w,w.mN),u.G&&Qb1(w,u),L$M(w,M,u),oe(w,u),w.mN=0):w.S&&(u=Brl(w,w.S<0?Infinity:w.S),w.S-=u.L.totalLength,oe(w,u))}}w.B&&w.B.info.G&&(oe(w,w.B),w.B=null)}; efH=function(w,M){!M.info.B.sj()&&M.info.L===0&&(g.Q2(M.info.B.info)||M.info.B.info.R7())&&iOU(M);if(M.info.type===1)try{Qb1(w,M),RfF(w,M)}catch(X){g.qU(X);var P=wr(M.info);P.hms="1";w.loader.handleError("fmt.unparseable",P||{},1)}P=M.info.B;P.Xo(M);w.j&&F$2(w.j,M);if(P.Wv()&&w.policy.B)a:{w=w.loader.Gk;M=M.info.clipId;P=g.R0(P.info,w.dK);if(M){var u=IW({itag:P.itag,lmt:w.dK?0:P.lmt||0,xtags:P.xtags});if(w.Yu[u])break a;w.Yu[u]=M}w.t9.push(P)}}; Wj5=function(w,M,P){if(w.L.length!==0&&(P||w.L.some(function(U){return U.info.X=y7(f)+h):M=w.getDuration()>=f.getDuration(),M=!M;M&&sb4(P)&&(M=w.ys,GP?(h=av5(P),f=1/h,h=y7(w,h),M=y7(M)+f-h):M=M.getDuration()- w.getDuration(),M=1+M/P.info.duration,tT1(g.NJ(P),M))}else{f=!1;w.K||(iOU(P),P.B&&(w.K=P.B,f=!0,X=P.info,U=P.B.YH,X.j="updateWithEmsg",X.Ku=U,X=P.B,X.GC&&(U=w.G.index,U.L=!X.GC,U.C="emsg"),X=P.info.B.info,U=g.NJ(P),g.Q2(X)?FV(U,1701671783):X.R7()&&DC([408125543],307544935,U)));a:if((X=Gm(P,w.policy.GE))&&wpU(P))h=K$x(w,P),w.V+=h,X-=h,w.B3+=X,w.C=w.policy.AF?w.C+X:NaN;else{if(w.policy.YS){if(U=c=w.loader.UT(g.m$(P),1),w.C>=0&&P.info.type!==6){if(w.policy.AF&&isNaN(w.t9)){g.Yq(new g.bK("Missing duration while processing previous chunk", P.info.vk()));w.loader.isOffline()&&!w.policy.oE||bM4(w,P,U);V7(w,"m");break a}u=c-w.C;var Z=u-w.V,S=P.info.Ku,H=w.xu?w.xu.Ku:-1,p=w.jL,F=w.t9,E=w.policy.Xk&&u>w.policy.Xk,y=Math.abs(Z)>10,q=Math.abs(w.C-U)<1E-7;if(Math.abs(Z)>1E-4){w.eL+=1;var d=(h=w.K)==null?void 0:gCH(h);h={audio:""+ +w.hx(),sq:S.toFixed(),sliceStart:c,lastSq:H.toFixed(),lastSliceStart:p,lastSliceDuration:F,totalDrift:(u*1E3).toFixed(),segDrift:(Z*1E3).toFixed(),skipRewrite:""+ +(E||y)};if(d==null?0:d.length)h.adCpn=d[0];w.loader.handleError("qoe.avsync", h);w.Yu=S}E||y||q||(U=w.C);h=K$x(w,P,c);X-=h;w.V=u+h}}else U=isNaN(w.C)?P.info.startTime:w.C;bM4(w,P,U)&&(w.B3+=X,w.C=U+X,w.policy.yS&&w.eL>=w.policy.yS&&(w.eL=0,w.loader.f0({resetForRewrites:"count"})))}w.xu=P.info;w.t9=ob(P);P.C>=0&&(w.jL=P.C);if(f&&w.K){f=IB_(w,!0);iq(P.info,f);w.B&&iq(w.B.info,f);M=g.G(M);for(h=M.next();!h.done;h=M.next())h=h.value,X=void 0,w.policy.G&&h.Ku!==((X=w.K)==null?void 0:X.YH)||iq(h,f);(P.info.G||w.B&&w.B.info.G)&&P.info.type!==6||(w.Lu=f,w.policy.L?(M=ALF(w.K),w.loader.qj(w.G, f,M)):(M=w.loader,M.Gk.isManifestless&&gY5(M,f,null,!!w.G.info.video)),w.policy.pV||JL1(w))}}RfF(w,P);w.timestampOffset&&xp1(P,w.timestampOffset)}; oe=function(w,M){if(M.info.G){w.iW=M.info;if(w.K){var P=w.K,u=IB_(w,!1);P=ALF(P);w.loader.qj(w.G,u,P);w.Lu||w.policy.pV||JL1(w);w.Lu=null}mM(w)}w.j&&F$2(w.j,M);if(u=w.Gd())if(u=g.VL(u,M,w.policy.Kj,w.policy.a7)){w.L.pop();w.L.push(u);return}w.L.push(M)}; ALF=function(w){if(w.zv()){var M=w.data["Stitched-Video-Id"]?w.data["Stitched-Video-Id"].split(",").slice(0,-1):[],P=gCH(w),u=[];if(w.data["Stitched-Video-Duration-Us"])for(var X=g.G(w.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),U=X.next();!U.done;U=X.next())u.push((Number(U.value)||0)/1E6);X=[];if(w.data["Stitched-Video-Start-Frame-Index"]){U=g.G(w.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var f=U.next();!f.done;f=U.next())X.push(Number(f.value)||0)}X=[]; if(w.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(U=g.G(w.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),f=U.next();!f.done;f=U.next())X.push((Number(f.value)||0)/1E6);w=new mJp(M,P,u,X,g.JJU(w),g.rJp(w))}else w=null;return w}; mM=function(w){w.B=null;w.mN=-1;w.S=0;w.K=null;w.Cu=NaN;w.B3=0;w.Lu=null}; V7=function(w,M){M={rst4disc:M,cd:w.V.toFixed(3),sq:w.xu?w.xu.Ku:-1};w.C=NaN;w.V=0;w.Yu=-1;w.xu=null;w.jL=NaN;w.t9=NaN;w.OO=null;w.loader.II("mdstm",M)}; RfF=function(w,M){if(w.isDrm()){if(M.info.B.info.R7()){var P=new Nd(g.NJ(M));if(m1(P,[408125543,374648427,174,28032,25152,20533,18402])){var u=ye(P,!0);P=u!==16?null:Tn(P,u)}else P=null;u="webm"}else M.info.S=Nrl(g.NJ(M)),P=Vjz(M.info.S),u="cenc";P&&P.length&&(P=new SQ(P,u),w.policy.cg&&g.Q2(M.info.B.info)&&(u=M1p(g.NJ(M)))&&(P.L=u),P.R7=M.info.B.info.R7(),M.B&&M.B.cryptoPeriodIndex&&(P.cryptoPeriodIndex=M.B.cryptoPeriodIndex),M.B&&M.B.L&&(P.B=M.B.L),w.loader.sK(P))}}; JL1=function(w){var M=w.K,P=Ifu(M);P&&(P.startSecs+=w.Cu,w.loader.UI(w.G,P,M.YH,M.zv()))}; IB_=function(w,M){var P,u=w.K;if(P=Ifu(u))P.startSecs+=w.Cu;return new jB(u.YH,w.Cu,M?u.n6:w.B3,u.ingestionTime,"sq/"+u.YH,void 0,void 0,M,P)}; bM4=function(w,M,P){if(!t1u(M,P))return M=wr(M.info),M.smst="1",w.loader.handleError("fmt.unparseable",M||{},1),!1;isNaN(w.Cu)&&(w.Cu=P);return!0}; K$x=function(w,M,P){var u=0;if(M.info.B.info.R7()&&!wpU(M))return 0;if(w.ys&&!w.hx()){var X=0;P&&g.Q2(M.info.B.info)?X=P-w.C:M.info.B.info.R7()&&(X=w.V);var U=M.info.Ku;P=Gm(M,w.policy.GE);var f=w.ys;var h=f.Yu;f=f.V;var c=Math.abs(f-X)>.02;if((U===h||U>h&&U>w.Yu)&&c){u=Math.max(.95,Math.min(1.05,(P-(f-X))/P));if(g.Q2(M.info.B.info))tT1(g.NJ(M),u);else if(M.info.B.info.R7()&&(U=X-f,!g.Q2(M.info.B.info)&&(M.info.B.info.R7(),u=new Nd(g.NJ(M)),h=M.G?u:new Nd(new DataView(M.info.B.B.buffer)),Gm(M,!0)))){var Z= U*1E3,S=lQ(h);h=u.pos;u.pos=0;if(u.B.getUint8(u.pos)===160||Lw(u))if(Gn(u,160))if(ye(u,!0),Gn(u,155)){if(U=u.pos,c=ye(u,!0),u.pos=U,Z=Z*1E9/S,S=qd(u),Z=S+Math.max(-S*.7,Math.min(S,Z)),Z=Math.sign(Z)*Math.floor(Math.abs(Z)),!(Math.ceil(Math.log(Z)/Math.log(2)/8)>c)){u.pos=U+1;for(U=c-1;U>=0;U--)u.B.setUint8(u.pos+U,Z&255),Z>>>=8;u.pos=h}}else u.pos=h;else u.pos=h;else u.pos=h}u=Gm(M,w.policy.GE);u=P-u}u&&M.info.B.info.R7()&&w.loader.II("webmDurationAdjustment",{durationAdjustment:u,videoDrift:X+u, audioDrift:f})}return u}; sb4=function(w){return w.info.B.sj()&&w.info.Ku===w.info.B.index.T5()}; y7=function(w,M){M=(M=M===void 0?0:M)?Math.round(w.timestampOffset*M)/M:w.timestampOffset;w.G.X&&M&&(M+=w.G.X.B);return M+w.getDuration()}; rL1=function(w,M){M<0||(w.L.forEach(function(P){xp1(P,M)}),w.timestampOffset=M)}; bx=function(w,M,P,u,X){UM.call(this,P,X);var U=this;this.policy=w;this.formatId=M;this.SU=u;this.lastError=null;this.j7=function(){U.sO()||(U.SU.G5.has(U.formatId)?(U.isComplete()||U.B.start(),Bx(U.SU,U.formatId)&&U.Ni(2),U.SU.bF(U.formatId)&&(Hwp(U.SU,U.formatId)?U.g7(4):(U.lastError="net.closed",U.g7(5)))):(U.lastError="player.exception",U.g7(5)))}; this.B=new g.gV(function(){U.isComplete()||(U.lastError="net.timeout",U.g7(5))},1E3); this.B.start();c3l(this.SU,this.formatId,this.j7);g.Vk(this.j7)}; Ds=function(w,M,P,u){g.v.call(this);var X=this;this.loader=w;this.policy=M;this.B=P;this.timing=u;this.logger=new g.pM("dash");this.C=[];this.ys=[];this.L=this.sF=null;this.OO=!1;this.UO=this.eL=0;this.K=-1;this.mN=!1;this.Cu=-1;this.xu=null;this.Lu=NaN;this.B3=[];this.yH={NZ:function(){return X.X}, B80:function(){return X.C}, eys:function(){return X.V}}; this.X=new Tr1(w,M,P);this.policy.B&&(this.V=new s6(this.X,this.loader.getManifest(),this.policy,function(U){X.policy.Ck&&X.II("buftl",U)})); this.policy.hD&&(this.S=new ud(this));this.A9=P.info.A9;this.j=this.policy.Lu?!1:P.yP();this.isManifestless=P.yP();this.G=this.j;g.b(this,this.xu)}; qX=function(w,M,P){P=P===void 0?!1:P;M&&GP&&rL1(w.X,M.I3());if(!P){var u;(u=w.V)==null||XLy(u)}w.sF=M;(M=w.V)!=null&&(M.sF=w.sF)}; YE=function(w){var M=w.sF&&w.sF.L3();if(w.policy.L$){if((w=w.V)==null)w=void 0;else{var P;w=(P=w.C)==null?void 0:P.info}return w||null}return M}; jbM=function(w){for(var M={},P=0;P4&&w.ys.shift()}; Cql=function(w,M){if(M.QX()){var P=M.n$();P=g.G(P);for(var u=P.next();!u.done;u=P.next())u=u.value,w.policy.C&&M instanceof bx&&w.II("omblss",{s:u.info.vk()}),TP(w,M.info.N0,u,M.PK())}}; TP=function(w,M,P,u){u=u===void 0?0:u;isNaN(w.Lu)||(w.II("aswm",{sq:M[0].Ku,id:M[0].B.info.itag,xtag:M[0].B.info.B,ep:Date.now()-w.Lu}),w.Lu=NaN);switch(P.info.type){case 1:case 2:tju(w,P);break;case 4:var X=P.info.B,U=X.W7(P),f;((f=w.L)==null?0:f.type===4)&&YIU(P.info,w.L)&&(w.L=X.KZ(w.L).pop());P=g.G(U);for(X=P.next();!X.done;X=P.next())TP(w,M,X.value,u);break;case 3:P.info.B.info.video?(X=w.timing,X.Cu||(X.Cu=(0,g.G$)(),g.KO("fvb_r",X.Cu,X.B))):(X=w.timing,X.K||(X.K=(0,g.G$)(),g.KO("fab_r",X.K, X.B)));kmx(w.X,M,P,u);w.policy.B&&xJp(w);break;case 6:kmx(w.X,M,P,u),w.L=P.info}}; tju=function(w,M){if(M.info.type===1)if(M.info.B.info.video){var P=w.timing;P.UO||(P.UO=(0,g.G$)(),g.KO("vis_r",P.UO,P.B))}else P=w.timing,P.V||(P.V=(0,g.G$)(),g.KO("ais_r",P.V,P.B));efH(w.X,M);w=w.loader;w.videoTrack.B.Wv()&&w.audioTrack.B.Wv()&&w.policy.B&&!w.Gk.dK&&(M=w.audioTrack.getDuration(),P=w.videoTrack.getDuration(),Math.abs(M-P)>1&&w.II("trBug",{af:""+g.R0(w.audioTrack.B.info,!1),vf:""+g.R0(w.videoTrack.B.info,!1),a:""+M,v:""+P}))}; O6=function(w){return dJu(w.X)}; xJp=function(w){w.C.length?w.L=g.FE(g.FE(w.C).info.N0):w.X.L.length?w.L=w.X.Gd().info:w.L=YE(w)}; dv=function(w,M){var P={Bk:[],jx:[]},u;if((w=w.V)==null)w=void 0;else{utM(w,w.Bk,"og");iru(w,M);utM(w,w.Bk,"trim");var X=PWU(w);M=X.Bk;X=X.Oj;for(var U=[],f=0;f0){var p=Jy(H,c);p>=0&&(S=(H.end(p)-c+.1)*1E3)}U.push({formatId:g.R0(h.info.B.info,w.Gk.dK), Y6:h.info.Y6,sequenceNumber:h.info.Ku+w.X,z3:Z,xN:h.info.C,au:S})}w={Bk:M,jx:U}}return(u=w)!=null?u:P}; JB=function(w,M,P){P=P===void 0?!1:P;if(w.sF){var u=w.sF.cB(),X=j1(u,M),U=NaN,f=YE(w);f&&(U=j1(u,f.B.index.getStartTime(f.Ku)));if(X===U&&w.L&&w.L.C&&OMx(ld(w),0))return M}w=aBy(w,M,P);return w>=0?w:NaN}; jZ=function(w,M,P){w.B.Wv();var u=aBy(w,M);if(u>=0)return u;var X;(X=w.V)==null||MB1(X,M,P);u=Math;X=u.min;var U=w.X;if(U.j)if(U=U.j,U.Jp&&U.Jp.type===3)U=U.Jp.startTime;else if(U.C>0){var f=U.B.index;f=g.I$(f.offsets.subarray(0,f.count),U.C*U.chunkSize);U=U.B.index.getStartTime(f>=0?f:Math.max(0,-f-2))}else U=0;else U=Infinity;M=X.call(u,M,U);w.L=w.policy.Lu?null:w.B.tP(M).N0[0];Ls(w)&&(w.policy.mB&&(P==null?void 0:P.seekSource)===60||w.sF&&w.sF.abort(),w.policy.NQ&&(P=w.V)!=null&&(P.C=void 0)); w.UO=0;return w.L?w.L.startTime:M}; Uhx=function(w){w.j=!0;w.G=!0;w.K=-1;jZ(w,Infinity)}; eQ=function(w){for(var M=0,P=g.G(w.C),u=P.next();!u.done;u=P.next())M+=TfF(u.value.info);return M+=nYF(w.X)}; Q7=function(w,M){M=M===void 0?!1:M;var P=w.loader.getCurrentTime(),u=w.X.Gd(),X=(u==null?void 0:u.info.K)||0;if((u==null?0:u.info.B.yP())&&!u.info.G)if(w.policy.nN)X=u.info.X;else if(w.policy.Ic){var U=u.info;X=U.range?U.K:Math.min(U.startTime+Math.min(U.duration*U.L/U.B.info.A9,U.duration)+(U.range?U.V:Math.min(U.duration,U.duration*U.C/U.B.info.A9)),U.startTime+U.duration)}if(!w.sF)return w.policy.B&&M&&!isNaN(P)&&u?X-P:0;if((U=YE(w))&&B$(U))return U.K;var f=w.sF.cB(!0);if(M&&u)return U=0,w.policy.B&& (U=x5(f,X+.02)),U+X-P;M=x5(f,P);w.policy.A_&&U&&(u=Jy(f,P),f=Jy(f,U.X-.02),u===f&&(P=U.K-P,w.policy.C&&P>M+.02&&w.II("abh",{bh:M,bhtls:P}),M=Math.max(M,P)));return M}; wMy=function(w){var M=YE(w);return M?M.K-w.loader.getCurrentTime():0}; i7F=function(w,M){if(w.C.length){if(w.C[0].info.N0[0].startTime<=M)return;AB(w)}for(var P=w.X,u=P.L.length-1;u>=0;u--)P.L[u].info.startTime>M&&P.L.pop();xJp(w);w.L&&M=0;f--){var h=X.L[f];h.info.Ku>=M&&(X.L.pop(),X.C-=Gm(h,X.policy.GE),U=h.info)}U&&(X.X=X.L.length>0?X.L[X.L.length-1].info:X.OO,X.L.length!==0||X.X||V7(X,"r"));X.loader.II("mdstm",{rollbk:1,itag:U?U.B.info.itag:"",popped:U?U.Ku:-1,sq:M,lastslc:X.X?X.X.Ku:-1,lastfraget:X.C.toFixed(3)});if(w.policy.B)return w.L=null,!0;u>P?jZ(w,u):w.L=w.B.BW(M-1,!1).N0[0]}catch(c){return M=Zv(c),M.details.reason="rollbkerr", w.loader.handleError(M.errorCode,M.details,M.severity),!1}return!0}; ns=function(w,M){var P;for(P=0;P0?P||M.Ku>=w.Cu:P}; v$=function(w){var M;return Ls(w)||B$((M=w.X.Gd())==null?void 0:M.info)}; ld=function(w){var M=[],P=YE(w);P&&M.push(P);M=g.lh(M,w.X.ZN());P=g.G(w.C);for(var u=P.next();!u.done;u=P.next()){u=u.value;for(var X=g.G(u.info.N0),U=X.next(),f={};!U.done;f={zq:void 0},U=X.next())f.zq=U.value,u.GK&&(M=g.DP(M,function(h){return function(c){return!YIU(c,h.zq)}}(f))),(xc(f.zq)||f.zq.type===4)&&M.push(f.zq)}w.L&&!E5u(w.L,g.FE(M),w.L.B.sj())&&M.push(w.L); return M}; OMx=function(w,M){if(!w.length)return!1;for(M+=1;M=M){M=U;break a}}M=X}return M<0?NaN:OMx(w,P?M:0)?w[M].startTime:NaN}; sz=function(w){return!(!w.L||w.L.B===w.B)}; MYR=function(w){return sz(w)&&w.B.Wv()&&w.L.B.info.A9M&&w.K1080&&!w.kO&&(w.UO=36700160,w.iW=5242880,w.eL=Math.max(4194304,w.eL),w.kO=!0);M.video.qualityOrdinal>2160&&!w.s7&&(w.UO=104857600,w.A9=13107200,w.s7=!0);g.Oh(w.r$.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?M.isEncrypted()&&g.KB()&&g.vF("samsung")&&(g.vF("kant")||g.vF("muse"))&&(w.A9=g.Oh(w.r$.experiments,"html5_samsung_kant_limit_max_bitrate")):M.isEncrypted()&&g.KB()&&g.vF("kant")&&(w.A9=1310720);w.F$!==0&&M.isEncrypted()&& (w.A9=w.F$);w.kT!==0&&M.isEncrypted()&&P&&(w.A9=w.kT);M.A9&&(w.nK=Math.max(w.H_,Math.min(w.eL,5*M.A9)))}; Gf=function(w){return w.B&&w.QJ}; gv=function(w){return w.B&&w.Ci&&w.playbackStartPolicy}; JY=function(w,M,P,u){w.Ci&&(w.playbackStartPolicy=M,w.g3=P,w.Op=u)}; AY=function(w,M,P){P=P===void 0?0:P;return g.Oh(w.r$.experiments,M)||P}; pM2=function(w){var M=w===void 0?{}:w;w=M.IE;var P=M.v_;var u=M.F9;var X=M.T5;M=M.rC;this.IE=w;this.v_=P;this.F9=u;this.T5=X;this.rC=M}; VBx=function(w,M){if(M<0)return!0;var P=w.T5();return M0)return 2;if(M<0)return 1;P=w.T5();return M(0,g.G$)()?0:1}; jQ=function(w,M,P,u,X,U,f,h,c,Z,S,H,p,F){F=F===void 0?null:F;g.v.call(this);var E=this;this.loader=w;this.policy=M;this.videoTrack=P;this.audioTrack=u;this.X=X;this.B=U;this.timing=f;this.G=h;this.schedule=c;this.Gk=Z;this.C=S;this.B3=H;this.eI=p;this.e1=F;this.Lu=!1;this.gq="";this.gG=null;this.y8=NaN;this.mN=!1;this.L=null;this.OH=this.S=NaN;this.W8=this.K=0;this.logger=new g.pM("dash");this.yH={Pa:function(y,q){return E.Pa(y,q)}}; this.policy.U7>0&&(this.gq=g.Hl(this.policy.U7));this.policy.DI&&(this.V=new rv(this.loader,this.policy,this.schedule),g.b(this,this.V))}; mc4=function(w,M,P){var u=M.L?M.L.B.EF:M.B.EF;var X=w.X,U;(U=!w.policy.w3)||(U=IT(u.B)===IT(u.L));U?u=!1:(X=RW(X,IT(u.L)),U=6E4*Math.pow(X.X,1.6),(0,g.G$)()=X.X?(X.II("sdai",{haltrq:U+1,est:X.X}),u=!1):u=X.L!==2;if(!u||!bQ(M.L?M.L.B.EF:M.B.EF,w.policy,w.X,w.loader.lJ())||w.loader.isSuspended&&(!Q8(w.schedule)||w.loader.QU))return!1;if(w.policy.X&&JW>=5)return g.JK(w.loader.gj),!1;if(w.Gk.isManifestless){if(M.C.length>0&&M.L&&M.L.Ku===-1||M.C.length>=w.policy.MM||!w.policy.DJ&&M.C.length>0&&!w.policy.j.v_)return!1;if(M.j)return!w.Gk.isLive|| !isNaN(w.y8)}if(UcH(M))return w.logger.debug("Pending request with server-selectable format found"),!1;if(!M.L){if(!M.B.Wv())return!1;jZ(M,w.loader.getCurrentTime())}if(O6(M)&&(M.Gd()!==O6(M)||w.loader.isSuspended))return!1;X=(u=w.policy.kJ)&&!M.C.length&&Q7(M,!0)=w.policy.We)return!1;u=M.L;if(!u)return!0;u.type===4&&u.B.Wv()&&(M.L=g.FE(u.B.KZ(u)),u= M.L);if(!u.GC()&&!u.B.fH(u))return!1;U=w.Gk.Gt||w.Gk.X;if(w.Gk.isManifestless&&U){U=M.B.index.T5();var f=P.B.index.T5();U=Math.min(U,f);if(M.B.index.e$()>0&&U>0&&u.Ku>=U)return M.Cu=U,P.Cu=U,!1}if(u.B.info.audio&&u.type===4||u.GC())return!1;U=!M.G&&!P.G;if(X=!X)X=u.K,X=!!(P.L&&!B$(P.L)&&P.L.KoI2(w,M)?(oI2(w,M),!1):(w=M.sF)&&w.isLocked()?!1:!0}; oI2=function(w,M){var P=w.B;P=P.B?P.B.FP:null;if(w.policy.ys&&P)return P.startSecs+P.Xq+15;M=ra(w.loader,M);w.policy.fg>0&&(P=((0,g.G$)()-w.loader.Mn)/1E3,M=Math.min(M,w.policy.fg+w.policy.Bb*P));M=w.loader.getCurrentTime()+M;return w.policy.xO&&(P=Gu5(w.loader)+w.policy.xO,P=0||M.EF.Rs("defrag")==="1"||M.EF.Rs("otf")==="1"){M=null;break a}X=rU(0,4096)}X=new MJ([new Cw(5,u.B,X,"createProbeRequestInfo"+u.j,u.Ku)],M.L);X.zC=P;X.B=M.B;M=X}M&&tY(w,M)}}; tY=function(w,M){w.loader.GY(M);var P=TfF(M),u=w.loader.rl();P={mT:w.schedule,eg:P,t$:CF5(w.G,P),Ka:t3(M.N0[0]),wr:AN(M.EF.B),uy:w.policy.C,jD:function(f,h){w.loader.jM(f,h)}}; if(w.schedule.L.K){var X,U;P.aG=(((X=w.videoTrack.B)==null?void 0:X.info.A9)||0)+(((U=w.audioTrack.B)==null?void 0:U.info.A9)||0)}w.gG&&(P.Ku=M.N0[0].Ku,P.y8=M.y8,P.gG=w.gG);u={i_:dpx(M,w.loader.getCurrentTime()),Uk:w.policy.QL&&uq(M)&&M.N0[0].B.info.video?hfF(w.C):void 0,GF:w.policy.ys,poToken:w.loader.uE(),Df:w.loader.iO(),gq:w.gq,OH:isNaN(w.OH)?null:w.OH,e1:w.e1,eI:w.eI,W8:w.W8,Bm:u};return new If(w.policy,M,P,w.X,function(f,h){try{a:{var c=f.info.N0[0].B,Z=c.info.video?w.videoTrack:w.audioTrack; if(!(f.state>=2)||f.isComplete()||f.YX()||!(!w.loader.aI||w.loader.isSuspended||Q7(Z)>3)){var S=N85(f,w.policy,w.X);S===1&&(w.mN=!0);yuH(w,f,S);if(f.isComplete()||f.sO()&&h<3){if(w.policy.C){var H=f.timing.xX();H.rst=f.state;H.strm=f.xhr.HQ();H.cncl=f.xhr&&f.d7.X?1:0;w.loader.II("rqs",H)}f.B5&&w.loader.II("sbwe3",{},!0)}if(!w.sO()&&f.state>=2){BU4(w.timing,f,c);var p=w.loader;w.OH&&f.vt&&p&&(w.OH=NaN,w.loader.zX(f.vt),w.loader.u3(),w.loader.II("cabrUtcSeek",{mediaTimeSeconds:f.vt}));f.GA&&w.OH&&f.GA&& !f.GA.action&&(w.loader.mD(w.OH),w.OH=NaN,w.loader.II("cabrUtcSeekFallback",{targetUtcTimeSeconds:w.OH}));f.Al&&w.loader.eD(f.Al);w.policy.KT&&(w.W8=f.W8);if(f.state===3){ns(Z,f);uq(f.info)&&Oz(w,Z,c,!0);if(w.L){var F=f.info.jg();F&&w.L.ME(f.info.N0[0].Ku,c.info.id,F)}w.loader.Wl()}else if(f.isComplete()&&f.info.N0[0].type===5){if(f.state!==4)f.xH()&&w.loader.handleError(f.lX(),f.n0());else{var E=(f.info.N0[0].B.info.video?w.videoTrack:w.audioTrack).C[0]||null;E&&E instanceof If&&E.YX()&&E.JZ()}f.dispose()}else{f.xH()|| DcU(w,f);var y;((y=f.GN)==null?0:y.itagDenylist)&&w.loader.HX(f.GN.itagDenylist);if(f.state===4)ae(w,f),w.B&&vcy(w.B,f.info,w.L);else if(w.policy.Lk&&f.QX()&&!f.isComplete()&&!ae(w,f)&&!f.xH())break a;f.xH()&&(qk4(w,f),isNaN(w.OH)||(w.loader.mD(w.OH),w.OH=NaN));w.policy.QE&&!f.isComplete()?wy(w.loader):w.loader.Wl();var q=VY2(f,w.policy,w.X);yuH(w,f,q)}}}}}catch(d){h=w.Lu?1:0,w.Lu=!0,f=cU(h),h=Zv(d,h),w.loader.handleError(h.errorCode,h.details,h.severity),f||w.loader.Oz()}},u)}; DcU=function(w,M){if(M.Pm&&M.state>=2&&M.state!==3){var P=M.xhr.getResponseHeader("X-Response-Itag");if(P){w.logger.debug(function(){return"Applying streamer-selected format "+P}); var u=W$x(w.C,P),X=M.info.C;X&&(X-=u.zR(),u.C=!0,M.info.N0[0].B.C=!1,fC1(M,u.Xl(X)),ir(w.loader,w.videoTrack,u),f9H(w.videoTrack,u),w.loader.wy(u.info.video.quality),(X=M.PK())&&u.info.lastModified&&u.info.lastModified!==+X&&ns(w.videoTrack,M))}else M.Pm=!1}}; qk4=function(w,M){var P=M.info.N0[0].B,u=M.lX();if(AN(P.EF.B)){var X=g.zd(M.Eq(),3);w.loader.II("dldbrerr",{em:X||"none"})}X=M.info.N0[0].Ku;var U=IA(w.B,M.info.N0[0].X,X);u==="net.badstatus"&&(w.K+=1);if(M.canRetry()&&Mu(w.loader)){if(!(M.info.EF.C>=w.policy.Fx&&w.L&&M.info.isDecorated()&&u==="net.badstatus"&&w.L.Kb(U,X))){X=(P.info.video&&P.EF.C>1||M.Oq===410||M.Oq===500||M.Oq===503)&&!(C2(w.C.G).size>0)&&!AN(P.EF.B);U=M.n0();var f=P.info.video?w.videoTrack:w.audioTrack;X&&(U.stun="1");w.loader.handleError(u, U);w.sO()||(X&&(w.logger.debug(function(){return"Stunning format "+P.info.id}),id(w.C,P)),ns(f,M),w.loader.Wl())}}else f=1,w.L&&M.info.isDecorated()&&u==="net.badstatus"&&w.L.Kb(U,X)&&(f=0),w.Gk.isLive&&M.lX()==="net.badstatus"&&w.K<=w.policy.tF*2?(QNF(w.Gk),w.Gk.Gt||w.Gk.isPremiere?xN(w.loader,0,{Wk:"badStatusWorkaround"}):w.Gk.X?xN(w.loader,w.Gk.ys,{Wk:"badStatusWorkaround", UT:!0}):Pt(w.loader)):w.loader.handleError(u,M.n0(),f)}; ae=function(w,M){if(w.policy.useUmp&&M.sO())return!1;try{var P=M.info.N0[0].B,u=P.info.video?w.videoTrack:w.audioTrack;if(w.Gk.isManifestless&&u){w.K=0;u.j&&(M.sO(),M.isComplete()||M.QX(),u.j=!1);M.gF()&&w.loader.l3.YQ(1,M.gF());var X=M.e$(),U=M.S5();gr(w.Gk,X,U)}if(M.info.Ka()&&!PC(M.info))for(var f=g.G(M.n$()),h=f.next();!h.done;h=f.next())tju(u,h.value);for(w.loader.getCurrentTime();u.C.length&&u.C[0].state===4;){var c=u.C.shift();Cql(u,c);u.eL=c.zG()}u.C.length&&Cql(u,u.C[0]);var Z=!!O6(u);Z&& M instanceof bx&&(P.info.hx()?Y0u(w.timing):q0p(w.timing));return Z}catch(S){M=M.n0();M.origin="hrhs";a:{w=w.loader;P=S;if(P instanceof Error){M.msg||(M.msg=""+P.message);M.name||(M.name=""+P.name);if(P instanceof g.bK&&P.args)for(u=g.G(Object.entries(P.args)),X=u.next();!X.done;X=u.next())U=g.G(X.value),X=U.next().value,U=U.next().value,M["arg"+X]=""+U;g.Yq(P);if(P.level==="WARNING"){w.fu.f0(M);break a}}w.handleError("fmt.unplayable",M,1)}return!1}}; Yky=function(w){var M=w.videoTrack.B.index;w.gG=new pM2({IE:w.policy.IE,v_:w.policy.j.v_,F9:M.tH(),T5:function(){return M.T5()}, rC:function(){return M.rC()}})}; Oz=function(w,M,P,u){if(!(P.Wv()||P.FV()||P.C||!bQ(P.EF,w.policy,w.X,w.loader.lJ())||P.info.zk==="f"||w.policy.B)){if(u){u=w.G;var X=P.info;u=tb5(u,X.video?u.policy.D1:u.policy.Sd,X.A9)}else u=0;u=P.Xl(u);w=tY(w,u);PC(u)&&zP(M,w);P.C=!0}}; ur=function(w,M,P,u,X,U,f,h){g.v.call(this);var c=this;this.loader=w;this.PB=M;this.videoTrack=P;this.audioTrack=u;this.Gk=X;this.S=U;this.isAudioOnly=f;this.V=h;this.L=P7;this.mN=!1;this.logger=new g.pM("sabr");this.j=this.Lu=this.B3=!1;this.videoInfos=this.K=this.S.videoInfos;this.C=this.ys=this.S.B;this.B=new rO(M,U,function(Z,S){c.loader.II(Z,S)}); this.isAudioOnly&&z_z(this,this.Gk.B["0"])}; T8l=function(w,M){var P=[];M=g.G(M);for(var u=M.next();!u.done;u=M.next())P.push(g.R0(u.value,w.Gk.dK));return P}; z_z=function(w,M,P){M!==w.X&&(w.X&&(w.mN=!0),w.X=M,w.ZR(M,w.videoTrack,P))}; e_1=function(w,M){w.logger.debug("setConstraint: "+z8(M));Gf(w.PB)&&(w.Lu=M.reason==="m"||M.reason==="l"?!0:!1);M.reason==="m"?M.isLocked()&&dcz(w,M.B):l9_(w,M)?LP5(w,M.L,M.B):w.videoInfos=w.K;w.L=M}; l9_=function(w,M){return w.PB.Ef&&M.reason==="b"||w.PB.kK&&M.reason==="l"||w.PB.jF?!1:w.PB.du?!0:M.reason==="l"||M.reason==="b"||M.reason==="o"}; B8_=function(w,M){return M.isLocked()&&w.B.L||w.L===void 0?!1:M.equals(w.L)}; Qj5=function(w,M){var P,u=(P=w.X)==null?void 0:P.info.video.qualityOrdinal;return w.mN?!0:w.X?M!==u?!0:!w.B.L||w.PB.Y$&&w.B.B===w.X.info.itag?!1:!0:!1}; dcz=function(w,M){var P=w.B.B;if(P){w.videoInfos=w.K;var u=g.Nj(w.videoInfos,function(X){return X.id===P}); u&&u.video.qualityOrdinal===M?w.videoInfos=[u]:(u=w.videoInfos.map(function(X){return X.id}),w.loader.II("sabrpf",{pfid:""+P, vfids:""+u.join(".")}),LP5(w,M,M),t2(w.B,""))}else LP5(w,M,M)}; LP5=function(w,M,P){w.videoInfos=w.K;w.videoInfos=g.DP(w.videoInfos,function(u){return u.video.qualityOrdinal>=M&&u.video.qualityOrdinal<=P})}; ku2=function(w,M,P){if(w.V){var u=g.DP(w.C,function(X){return X.id===w.V}); return Xc(u,P).includes(M)}u=g.DP(w.C,function(X){var U;return!((U=X.Y2)==null||!U.isDefault)}); return u.length>0?Xc(u,P).includes(M):Xc(w.C,P).includes(M)}; Xc=function(w,M){return w.map(function(P){return IW(g.R0(P,M))})}; R_R=function(w){var M;if((M=w.L)==null?0:M.isLocked())return w.videoInfos;var P=C2(w.B);M=g.DP(w.videoInfos,function(u){return u.A9>w.PB.A9?!1:!P.has(u.id)}); gcz(w.B)&&(M=g.DP(M,function(u){return u.video.width<=854&&u.video.height<=480})); return M}; vIp=function(w,M,P){var u=w.Gk,X=w.fu.getVideoData(),U=w.Ly,f=M32({r$:X.N(),fu:w.fu,G3:w.G3,PB:w.PB,fm:w.fm,CE:w.CE,NG:w.NG,Rp:w.Rp,Td:w.Td,isPrefetch:w.isPrefetch,bb:w.bb,sabrLicenseConstraint:X.sabrLicenseConstraint,cH:w.cH,zl:w.zl,Qy:w.Qy,wM:w.wM,r9:!!U,authorizedFormats:X.authorizedFormats}),h=yp(X,w.Bm,w.nextRequestPolicy,w.Yy,w.Gq,w.MN,w.U1);P&&M&&(P=h.Sv?h.Sv.map(function(H){return H.type}):[],M("sabr",{stmctxt:P.join("_"), unsntctxt:h.Jr?h.Jr.join("_"):""}));M=w.Bc;P=w.Ib;if(P===void 0&&M===void 0){var c;P=nIu(u.dK,(c=w.o6)==null?void 0:c.video);var Z;M=nIu(u.dK,(Z=w.o6)==null?void 0:Z.audio)}if(X.e1)var S=X.e1;X={yh:f,jx:w.jx,Bc:M,Ib:P,Ly:U,videoPlaybackUstreamerConfig:S,eO:h};w.u4&&(X.u4=w.u4);X.Bk=w.Bk;X.RF=u.t9;return X}; nIu=function(w,M){return M?[g.R0(M.info,w)]:[]}; $g=function(w,M,P){var u=this;this.requestType=w;this.EF=M;this.pg=P;this.L=null;this.yH={VSK:function(){var X;return(X=u.data)==null?void 0:X.isPrefetch}, Gq:function(){var X;return(X=u.data)==null?void 0:X.Gq}}}; ocu=function(w,M,P){M=s0(w.EF,sjy(w,M,P),M);w.SS()&&M.set("probe","1");return M}; sjy=function(w,M,P){w.zC===void 0&&(w.zC=w.EF.zC(M,P));return w.zC}; KP1=function(w){var M,P;return((M=w.B)==null?void 0:(P=M.yh)==null?void 0:P.bK)||0}; b7_=function(w){var M,P;return!!((M=w.B)==null?0:(P=M.yh)==null?0:P.cH)}; I9M=function(w){var M={},P=[],u=[];if(!w.data)return M;for(var X=0;X=0&&(M in w.B||(w.B[M]=new gIM),w.B[M].lT(P,u))}; tYH=function(w,M,P,u,X){var U=(0,g.G$)(),f=X?X(M):void 0,h;X=(h=f==null?void 0:f.Mc)!=null?h:1;if(X!==0){var c;h=(c=f==null?void 0:f.profile)!=null?c:P;ClU(w,h,U-u,X)}return M}; xcp=function(w,M,P,u,X){if(M&&typeof M==="object"){var U=function(f){return tYH(w,f,P,u,X)}; if(y5(M))return M.then(U);if(Gi(M))return dE(M,U)}return tYH(w,M,P,u,X)}; O7U=function(){}; ft=function(w,M){this.B=w;this.cipher=this.B.exports.AES128CTRCipher_create(M.byteOffset)}; ip4=function(w,M){return Lm(a94,function(){var P=this;return function X(){var U,f,h;return s1(X,function(c){switch(c.L){case 1:g.q_(c,2);if(!P.X)throw"wasm.ps.ns";U=w;f=b2;return oF(c,eb(w0p(P,M)),4);case 4:h=f(c.B);if(!h)throw"wasm.ps.um";try{return c.return(new WebAssembly.Instance(h,U))}catch(Z){}return oF(c,eb(WebAssembly.instantiate(h,U)),5);case 5:return c.return(c.B);case 2:g.B5(c),g.Qx(c,0)}})}()})}; MgR=function(w,M){w.B||(w.B=dE(zi(function(){return fetch(M)}),function(P){return P.arrayBuffer()}),lF(w.B,function(P){w.B=void 0; throw"wasm.ps.f: "+P;}))}; w0p=function(w,M){if(w.L)return w.L;w.L=PT2(w,M);lF(w.L,function(P){w.L=void 0;throw"wasm.ps.c: "+P;}); return w.L}; PT2=function(w,M){return Lm(w,function(){var P=this;return function X(){var U,f,h,c,Z,S,H,p,F,E,y,q,d,l;return s1(X,function(e){switch(e.L){case 1:g.q_(e,2);U=[];f=window.ywc;if(!f){e.M0(4);break}h=f[M];if(!h){e.M0(4);break}if(h.mod)return e.return(h.mod);if(!h.modP){e.M0(6);break}g.DU(e,7);c=b2;return oF(e,eb(h.modP),9);case 9:return e.return(c(e.B));case 7:g.d4(e),U.unshift("pcm");case 6:if(h.bin){P.B=Do(h.bin);e.M0(4);break}if(!h.binP){e.M0(4);break}g.DU(e,12);Z=oJ;S=Do;H=b2;return oF(e,eb(h.binP), 14);case 14:P.B=S.call(Z,H(e.B));g.zp(e,4);break;case 12:g.d4(e),P.B=void 0,U.unshift("pfb");case 4:if(!P.B){e.M0(15);break}g.DU(e,16);p=b2;return oF(e,eb(P.B),18);case 18:F=p(e.B);if(P.C)try{return e.return(new WebAssembly.Module(F))}catch(R){P.C=!1,U.unshift("f0cs")}E=b2;return oF(e,eb(WebAssembly.compile(F)),19);case 19:return e.return(E(e.B));case 16:g.d4(e),P.B=void 0,U.unshift("f0ca");case 15:return g.DU(e,20),MgR(P,M),y=b2,oF(e,eb(P.B),22);case 22:q=y(e.B);if(P.C)try{return e.return(new WebAssembly.Module(q))}catch(R){P.C= !1,U.unshift("f1cs")}d=b2;return oF(e,eb(WebAssembly.compile(q)),23);case 23:return e.return(d(e.B));case 20:l=g.d4(e),P.B=void 0,P.X=!1,U.unshift("f1ca: "+l);case 21:throw"["+U.map(function(R){return'"'+R+'"'}).join(", ")+"]"; case 2:g.B5(e),g.Qx(e,0)}})}()})}; uD2=function(){}; X0z=function(){var w=this;this.proc_exit=function(){}; this.fd_write=function(M,P,u){if(!w.exports)return 1;M=new Uint32Array(w.exports.memory.buffer,P,u*2);P=[];for(var X=0;X0;c--)P.push(h)}P.length!==f?M.error=!0:(U=P.slice(-U),P.length=X,l1M(M,P,U));break;case 1:l1M(M,oH,Dep);break;case 0:LOu(M, M.B&7);P=IH(M,16);X=IH(M,16);(P^X)!==65535&&(M.error=!0);M.output.set(M.data.subarray(M.L,M.L+P),M.C);M.L+=P;M.C+=P;break;default:M.error=!0}w.C>w.output.length&&(w.output=new Uint8Array(w.C*2),w.C=0,w.L=0,w.X=!1,w.B=0,w.register=0)}w.output.length!==w.C&&(w.output=w.output.subarray(0,w.C));return w.error?new Uint8Array(0):w.output}; l1M=function(w,M,P){M=TDU(M);P=TDU(P);for(var u=w.data,X=w.output,U=w.C,f=w.register,h=w.B,c=w.L;;){if(h<15){if(c>u.length){w.error=!0;break}f|=(u[c+1]<<8)+u[c]<>=7;Z<0;)Z=M[(f&1)-Z],f>>=1;else f>>=Z&15;h-=Z&15;Z>>=4;if(Z<256)X[U++]=Z;else if(w.register=f,w.B=h,w.L=c,Z>256){f=Kt[Z];f+=IH(w,sa[Z]);c=de2(w,P);h=br[c];h+=IH(w,q_M[c]);if(BDx&&fP.length&&(w.error=!0);w.register|=(P[u+1]<<8)+P[u]<=0)return LOu(w,P&15),P>>4;for(LOu(w,7);P<0;)P=M[IH(w,1)-P];return P>>4}; IH=function(w,M){for(;w.B=w.data.length)return w.error=!0,0;w.register|=w.data[w.L++]<>=M;w.B-=M;return P}; LOu=function(w,M){w.B-=M;w.register>>=M}; TDU=function(w){for(var M=[],P=g.G(w),u=P.next();!u.done;u=P.next())u=u.value,M[u]||(M[u]=0),M[u]++;var X=M[0]=0;P=[];var U=0;u=0;for(var f=1;f7&&(U+=M[f]);for(X=1;X>c&1;h=U<<4|f;if(f<=7)for(c=1<<7-f;c--;)u[c<>=7;f--;){u[c]||(u[c]=-M,M+=2);var Z=X&1;X>>=1;c=Z-u[c]}u[c]=h}}return u}; ktu=function(w){var M,P,u,X,U,f,h,c,Z;return g.n(function(S){switch(S.L){case 1:if(!QDy)throw Error("DecompressionStream is not supported");M=hz.Fr();P=new DecompressionStream("gzip");u=P.writable.getWriter();u.write(w);u.close();X=P.readable.getReader();U=new iV([]);case 2:return g.B(S,X.read(),5);case 5:f=S.B;h=f.value;if(c=f.done){S.M0(4);break}U.append(h);S.M0(2);break;case 4:return Z=$D(U),hz.DT("gznb",M,Math.ceil(Z.byteLength/16)),S.return(Z)}})}; RCu=function(w){Yx.call(this,"onesie");this.xA=w;this.B={};this.X=!0;this.C=null;this.queue=new yWR(this);this.G={}}; n3M=function(w){var M=w.queue;M.B.length&&M.B[0].isEncrypted&&!M.L&&(M.B.length=0);M=g.G(Object.keys(w.B));for(var P=M.next();!P.done;P=M.next()){P=P.value;var u=w.B[P];if(!u.uS){var X=w.queue;X.B.push({videoId:u.videoId,formatId:P,isEncrypted:!1});X.L||mJ(X)}}}; v3H=function(w,M){var P=M.totalLength,u=!1;switch(w.C){case 0:w.xY(M,w.X).then(function(X){var U=w.xA;U.nT("oprr");U.playerResponse=X;U.Ds||(U.HA=!1);Az(U)},function(X){w.xA.fail(X)}); break;case 2:w.nT("ormk");M=$D(M);w.queue.decrypt(M);break;default:u=!0}w.xA.Wx&&w.xA.II("ombup","id.11;pt."+w.C+";len."+P+(u?";ignored.1":""));w.C=null}; sDH=function(w,M){var P,u,X,U,f;return g.n(function(h){switch(h.L){case 1:w.xA.nT("oprgz_s");if(!QDy){h.M0(2);break}g.DU(h,3);return g.B(h,ktu(M),5);case 5:return P=h.B,w.xA.nT("oprgz_n"),h.return(P);case 3:u=g.d4(h),w.xA.II("gzerr",{impl:"native",err:""+u});case 2:if(X=w.xA.N().t9)try{var c=hz.Fr(),Z=X.SY(M),S=X,H=Z!=null?Z:M,p=H.byteOffset,F=H.byteLength,E=S.exports.getInflatedSize(p,F);if(E===0)throw Error("wasm_gz: bad input");var y=S.malloc(E),q=S.exports.inflateGzip(p,F,y);if(q)throw S.free(y), Error("wasm_gz: fail"+q);var d=new Uint8Array(S.exports.memory.buffer,y,E);Z&&X.free(Z.byteOffset);var l=X.Yj(d);hz.DT("gzwb",c,Math.ceil(l.byteLength/16));U=l;w.xA.nT("oprgz_w");return h.return(U)}catch(e){w.xA.II("gzerr",{impl:"wasm",err:""+e})}c=hz.Fr();Z=g.eCu(new g.Y_4(M));hz.DT("gzjb",c,Math.ceil(Z.byteLength/16));f=Z;w.xA.nT("oprgz_p");return h.return(f)}})}; KO5=function(w){return new Promise(function(M){setTimeout(M,w)})}; bpR=function(w,M){var P=w.N();P=w.Bb&&P.D("html5_onesie_preload_use_content_owner");var u=w.jb,X=HM(M.P3.experiments,"debug_bandaid_hostname");if(X)M=Ea(M,X);else if((P===void 0?0:P)&&(u==null?0:u.url)&&!M.L){var U=IT(new g.Kr(u.url));M=Ea(M,U)}else M=(U=M.B.get(0))==null?void 0:U.location.clone();if(M&&w.videoId){U=V8(w.videoId);w=[];if(U)for(U=g.G(U),P=U.next();!P.done;P=U.next())w.push(P.value.toString(16).padStart(2,"0"));M.set("id",w.join(""));return M}}; I1H=function(w,M,P){P=P===void 0?0:P;var u,X;return g.n(function(U){if(U.L==1)return u=[],u.push(M.load()),P>0&&u.push(KO5(P)),g.B(U,Promise.race(u),2);X=bpR(w,M);return U.return(X)})}; AWl=function(w,M,P,u){u=u===void 0?!1:u;w.set("cpn",M.clientPlaybackNonce);w.set("opr","1");var X=M.N();w.set("por","1");XI()||w.set("onem","1");M.startSeconds>0&&w.set("osts",""+M.startSeconds);u||(X.D("html5_onesie_disable_partial_segments")&&w.set("oses","1"),M=X.D("html5_gapless_onesie_no_media_bytes")&&FM(M)&&M.Bb,P&&!M?(M=P.audio,w.set("pvi",P.video.join(",")),X.D("html5_onesie_disable_audio_bytes")||w.set("pai",M.join(",")),SY||w.set("osh","1")):(w.set("oad","0"),w.set("ovd","0"),w.set("oaad", "0"),w.set("oavd","0")))}; g3u=function(w,M,P,u,X){X=X===void 0?!1:X;var U="https://youtubei.googleapis.com/youtubei/"+M.nN.innertubeApiVersion+"/player",f=[{name:"Content-Type",value:"application/json"}];u&&f.push({name:"Authorization",value:"Bearer "+u});f.push({name:"User-Agent",value:g.RK()});g.AR("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.AR("EOM_VISITOR_DATA")}):(P=P.visitorData||g.AR("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:P});(P=g.AR("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&f.push({name:"X-YouTube-Lava-Device-Context", value:P});(M=HM(M.experiments,"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:M});w=pF(JSON.stringify(w));return{url:U,TK:f,postBody:w,HsK:X,Ns:X}}; JW_=function(w,M,P,u,X,U,f){var h=w.Dl,c=w.Ty;w=w.u9L;var Z=h!==void 0&&c!==void 0,S=u.getVideoData(),H,p=M.B.encryptedClientKey;M=Z?M.iv:void 0;Z=BM(P.schedule,!0);X=X||!!XI()&&Z>1572864;return{innertubeRequest:{TOO:w,qb:h,Ty:c,encryptedClientKey:p,iv:M,Q7u:!0,Z9:!0,e5:"DecompressionStream"in window||!X,AxL:P.experiments.nu("html5_use_jsonformatter_to_parse_player_response")},yh:M32({r$:P,fu:u,G3:S.startSeconds*1E3}),onesieUstreamerConfig:U,E$:f,eO:yp(S),reloadPlaybackParams:(H=S.RO)==null?void 0: H.reloadPlaybackParams}}; rWy=function(w,M,P,u,X,U){var f=g.gt(w,HDl,w.Ns?void 0:P.t9);if(!w.Ns){if(P.t9){var h;try{M.C||(M.C=new Ht(M.B.B,M.G,M.K));var c=h=M.C.L(f,M.iv);(0,g.G$)();var Z=M.L.SY(M.iv),S=M.L.SY(M.B.L),H=M.L,p=new Uint8Array(H.exports.memory.buffer,H.malloc(32),32);H.exports.Sha256Hmac(S.byteOffset,S.byteLength,Z.byteOffset,Z.byteLength,c.byteOffset,c.byteLength,p.byteOffset);M.L.free(Z.byteOffset);M.L.free(S.byteOffset);var F=M.L.Yj(p);var E;var y=(E=P.t9.Yj(h))!=null?E:h;h=void 0}catch(q){h&&P.t9.free(h.byteOffset)}}y|| (y=M.encrypt(f));F||(F=y,(0,g.G$)(),F=Xl1(new ubH(M.B.L),F,M.iv))}return JW_(y&&F?{Dl:y,Ty:F}:{u9L:f},M,P,u,!!w.Ns,X,U)}; jDM=function(w,M,P,u,X,U){var f,h,c;return g.n(function(Z){if(Z.L==1)return f=g.gt(w,HDl),g.B(Z,HpH(M,f),2);if(Z.L!=3)return h=Z.B,g.B(Z,p0p(M,h),3);c=Z.B;return Z.return(JW_({Dl:h,Ty:c},M,P,u,!!w.Ns,X,U))})}; Jz=function(w,M){g.v.call(this);var P=this;this.fu=w;this.playerRequest=M;this.logger=new g.pM("onesie");this.xhr=null;this.state=1;this.bd=new cp;this.Y9=!1;this.playerResponse="";this.z1=new $x(this);this.hQ=new RCu(this);this.hZ="";this.zy=this.L7=!1;this.TW="";this.enableCompression=this.Ds=this.CM=!1;this.hW=[];this.YH=-1;this.lc=0;this.P3=this.fu.N();this.videoData=this.fu.getVideoData();this.Wx=this.P3.FX();this.Np=this.P3.NE;this.rq=new pt(this.Np.B,this.P3.rB,Auy(this.P3));this.zF=this.P3.D("html5_onesie_check_timeout"); this.KD=new g.gV(this.S6,500,this);this.CC=new g.gV(this.Fo,1E4,this);this.IM=new g.gV(function(){if(!P.isComplete()){var u=gy(P);P.fail(new g.hy("net.timeout",u))}},1E3); this.PF=new g.gV(this.AU,2E3,this);this.Sg=this.fu.iO();this.HA=this.D("html5_onesie_wait_for_media_availability");g.b(this.videoData,this);g.b(this,this.KD);g.b(this,this.CC);g.b(this,this.PF);g.b(this,this.rq);w=Fp();SY&&w&&(this.Rk=new Map);this.N5=new Map;this.mz=new Map;this.Ta=new Map;this.Uu=new Map}; VD=function(w,M){var P;return(P=w.Rk)==null?void 0:P.get(M)}; tgl=function(w,M,P){var u;return g.n(function(X){if(X.L==1)return w.nT("oprd_s"),CT1(w)?g.B(X,FOz(w.rq,M,P),3):(u=w.rq.decrypt(M,P),X.M0(2));X.L!=2&&(u=X.B);w.nT("oprd_c");return X.return(u)})}; xe4=function(w){return w.D("html5_onesie_host_probing")||w.Wx?SY:!1}; Az=function(w){if(!w.playerResponse)return!1;if(w.CM)return!0;var M=w.videoData.D("html5_onesie_audio_only_playback")&&Ep(w.videoData);if(w.Rk&&w.HA){if(!w.Rk.has(w.hZ))return!1;var P=w.Rk.get(w.hZ),u;if(u=P){u=!1;for(var X=g.G(P.G5.keys()),U=X.next();!U.done;U=X.next())if(U=P.G5.get(U.value))for(var f=g.G(U.jE),h=f.next();!h.done;h=f.next())h.value.wx>0&&(U.hx?u=!0:M=!0);u=!(M&&u)}if(u)return!1}w.nT("ofr");w.bd.resolve(w.playerResponse);if(!w.zF){var c;(c=w.IM)==null||c.start();w.CC.start()}return w.CM= !0}; a1u=function(w){if(w.Rk&&!w.D("html5_onesie_media_capabilities")){w.nT("ogsf_s");var M=CWH(w.fu.getVideoData(),function(u,X){w.II(u,X)}),P=Op_(w.fu); M.video=sTp(P,M.video);w.nT("ogsf_c");if(M.video.length)return M;w.II("ombspf","l."+P.L+";u."+P.B+";o."+P.C+";r."+P.reason)}}; CT1=function(w,M){return w.D("html5_onesie_sync_request_encryption")||(M==null?0:M.Ns)||g.c0(w.P3)&&w.D("html5_embed_onesie_use_sync_encryption")?!1:!!XI()}; gy=function(w){if(!w.qt)return{};var M=w.qt.xX(),P;M.d=(P=w.qt.Cu)==null?void 0:P.PZ();M.shost=w.SV;M.ty="o";return M}; w74=function(w,M){var P,u;(u=(w=(P=w.Rk)==null?void 0:P.get(M))==null)||(M=w.C?!1:w.C=!0,u=!M);return!u}; ik5=function(w,M,P,u,X,U,f,h,c,Z,S){g.v.call(this);var H=this;this.fu=w;this.loader=M;this.policy=P;this.audioTrack=u;this.videoTrack=X;this.Gk=U;this.mT=f;this.jL=h;this.C=c;this.timing=Z;this.B3=S;this.B=[];this.G={};this.OO=this.Yu=!1;this.X=this.eL=this.S=this.t9=this.Td=0;this.V=null;this.mN={Bk:[],jx:[]};this.ys={Bk:[],jx:[]};this.j=null;this.K=[];this.yH={RsW:function(){return H.B}, Q4$:function(){return H.G}, gTI:function(){H.B.length=0}, Zpu:function(){return H.videoData.iW}, ip$:function(){return H.S}, opL:function(p){H.S=p}, b1k:function(p){H.X=p}, RJ:function(p){H.j=p}, TX:function(p){H.K=p}}; this.videoData=this.fu.getVideoData();this.policy.DI&&(this.xu=new rv(this.loader,this.policy,this.mT),g.b(this,this.xu))}; uM5=function(w,M){M=M===void 0?!1:M;if(Mxy(w)){w.policy.K&&w.loader.II("sabrcrq",{create:1});var P=new $g(0,w.Gk.V,w);w.policy.wb>0&&w.X++;M=Pty(w,P,M);w.B.push(M);var u;(u=w.xu)==null||FP5(u,w.Gk.V)}}; UI5=function(w,M){var P=X7y(w);if(w.policy.TD){var u=w.mN;var X=w.ys}else u=ry(w,w.audioTrack),X=ry(w,w.videoTrack);var U=[].concat(g.L(u.Bk),g.L(X.Bk));jf(w)&&U.push.apply(U,g.L(w.K));var f=[].concat(g.L(u.jx),g.L(X.jx)),h=w.loader.rl();if(w.policy.Mx&&!w.videoData.isLivePlayback){var c=w.videoData.lengthSeconds*1E3;P>=c&&w.loader.II("invalidSabrCmt",{cmt:P,vd:c})}var Z,S;c=w.fu;var H=w.Gk,p=w.L,F=w.videoData.iW,E=w.policy,y=w.loader.Mn,q=Gu5(w.loader)*1E3,d=(Z=w.Cu)==null?void 0:Z.NG;Z=(S=w.Cu)== null?void 0:S.Rp;var l;S=Number((l=w.C.X)==null?void 0:l.info.itag)||0;var e;l=Number((e=w.C.G)==null?void 0:e.info.itag)||0;M={fu:c,Gk:H,Bk:U,jx:f,G3:P,nextRequestPolicy:p,Yy:F,PB:E,fm:y,CE:q,NG:d,Rp:Z,Td:w.Td,isPrefetch:M||w.loader.isSuspended,Gf:S,x4:l,Bm:h,U1:w.fu.ag()};P=w.loader.uE();U=V8(P);P&&(M.Gq=U);if(P=w.fu.Wp())M.cH=P*1E3;var R;P=w.C;U=P.B3;if(((R=P.PB)==null?0:Gf(R))&&!U)for(R=g.G(P.C),f=R.next();!f.done;f=R.next())if(f.value.Y2){U=!0;break}R=Gf(P.PB)&&!U?[]:T8l(P,P.C);M.Bc=R;R=w.C; Gf(R.PB)&&!R.Lu?R=[]:(P=R_R(R),P.length===0&&(P=R.K),R=T8l(R,P));M.Ib=R;M.Ly=jf(w)?[w.j]:void 0;w.policy.tj&&(M.Qy=$IR(w.loader,w.audioTrack),M.wM=$IR(w.loader,w.videoTrack));if(w.policy.L){R=w.loader.getCurrentTime();u=Ct(w,u.Bk,R);X=Ct(w,X.Bk,R);X=Math.min(u,X);jf(w)&&(u=Ct(w,w.K,R),w.fu.FX()&&u0&&w.B[0].Mp()&&(M.MN=w.B[0].Sp());return M}; X7y=function(w){var M,P=w.policy.G&&((M=w.loader)==null?void 0:M.EX());M=w.loader.getCurrentTime()||0;M=fwx(w,M);var u=w.loader.OF()||0;M+=u;u=Kk(w.videoData)||g.sp(w.videoData);var X=0;P?(u&&(X=Number.MAX_SAFE_INTEGER),w.videoData.B3&&(X=Math.ceil(w.videoData.ys*1E3))):X=Math.ceil(M*1E3);return Math.min(Number.MAX_SAFE_INTEGER,X)}; jf=function(w){return w.policy.Ob&&!!w.j}; fwx=function(w,M){if(w.loader.isSeeking())return M;var P=w.fu.Nt();if(!P)return M;P=P.z0();if(P.length===0||rf(P,M))return M;if(!bd(w.videoTrack,M)&&!bd(w.audioTrack,M))return w.loader.II("sundrn",{b:0,lt:M}),M;for(var u=M,X=Infinity,U=0;UM)){var f=M-P.end(U);f=20)?(w.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),M):u}; Ct=function(w,M,P){w=w.loader.OF()||0;return tz(M,(P+w)*1E3)/1E3+P}; Mxy=function(w){if(w.policy.wb>0){var M=Math.floor((0,g.G$)()/1E4);if(M===w.eL){if(w.X>=w.policy.wb){if(w.X===w.policy.wb){var P={reason:"toomanyrequests"};P.limit=w.X;w.loader.handleError("player.exception",P);w.X+=1}return!1}}else w.eL=M,w.X=0}if(w.loader.isSuspended&&w.loader.QU)return!1;if(w.Lu&&(0,g.G$)()0&&(!w.policy.S||w.B.length!==1||!w.B[0].Mp()))return!1;var u;if(!(M=(u=w.Gk.V)==null||!bQ(u,w.policy,w.G,w.loader.lJ())||v$(w.audioTrack)&&v$(w.videoTrack))){if(u= w.policy.L){u=!1;if(w.B3.L===2)u=!0;else if(w.B3.L===3){X7y(w);w.loader.OF();var X=dv(w.audioTrack,w.loader.isSeeking()).Bk;M=dv(w.videoTrack,w.loader.isSeeking()).Bk;var U=w.loader.getCurrentTime()||0;X=Ct(w,X,U);M=Ct(w,M,U);M=Math.min(X,M);U=w.B3;M>=U.G?(U.II("sdai",{haltrq:M,est:U.G}),M=!0):M=!1;M&&(u=!0)}u&&w.policy.K&&w.loader.II("sabrcrq",{waitad:1})}M=u}if(M)return!1;w.policy.TD&&(w.mN=ry(w,w.audioTrack),w.ys=ry(w,w.videoTrack));if(!w.L)return w.policy.K&&w.loader.II("sabrcrq",{nopolicy:1}), !0;if(w.fu.Wp())return w.policy.K&&w.loader.II("sabrcrq",{utc:1}),!0;if(w.C.j)return w.policy.K&&w.loader.II("sabrcrq",{audio:1}),!0;if(!w.L.targetAudioReadaheadMs||!w.L.targetVideoReadaheadMs)return w.policy.K&&w.loader.II("sabrcrq",{noreadahead:1}),!0;if(w.policy.G&&w.loader.EX())return w.policy.K&&w.loader.II("sabrcrq",{seekToHead:1}),!0;u=Math.min(ra(w.loader,w.audioTrack)*1E3,w.L.targetAudioReadaheadMs);M=Math.min(ra(w.loader,w.videoTrack)*1E3,w.L.targetVideoReadaheadMs);var f=Math.min(u,M); U=Q7(w.audioTrack,!0)*1E3;X=Q7(w.videoTrack,!0)*1E3;var h=w.fu.getCurrentTime()*1E3;if(w.policy.TD){var c=tz(w.mN.Bk,h);var Z=tz(w.ys.Bk,h)}else c=U,Z=X;var S=cM||u>=0&&X.Vq>u+1)break;P=Math.max(P,X.startTimeMs+X.durationMs);u=Math.max(u,X.vv)}return Math.max(0,P-M)}; Pty=function(w,M,P){var u={mT:w.mT,jD:function(c,Z){w.fu.jM(c,Z)}, Ka:w.policy.rY,uy:w.policy.C};w.mT.L.K&&(u.aG=(w.videoTrack.B.info.A9||0)+(w.audioTrack.B.info.A9||0));w.policy.zj&&(u.F9=w.audioTrack.B.index.tH(),u.Ka=!1);var X=sjy(M,w.policy,w.G)?2:1;X!==w.S&&(w.S=X,hv4(w));P=UI5(w,P);if(w.policy.S&&w.policy.C&&P.Yy){for(var U=X="",f=g.G(P.Yy),h=f.next();!h.done;h=f.next())h=h.value,w.videoData.sabrContextUpdates.has(h)||w.policy.S&&P.MN&&P.MN.type===h?X+="_"+h:U+="_"+h;w.loader.II("sabrbldrqs",{ctxts:X,misctxts:U})}!M.setData(P,w.policy,w.G)&&w.policy.S&&w.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);u=new kx(w.policy,M,w.Gk,w.G,w,u,w.loader.iO());RA(w.timing);w.policy.K&&w.loader.II("sabrcrq",{rn:u.WI(),probe:M.SS()});return u}; Oa=function(w,M){if(M.sO()||w.sO())w.policy.ET||(w.policy.G?xg(w.loader):w.loader.Wl());else{if(w.policy.C&&M.isComplete()&&M instanceof kx){var P=w.loader,u=P.II,X,U,f=Object.assign(M.qt.xX(),{rst:M.state,strm:M.xhr.HQ(),d:(X=M.qt.Cu)==null?void 0:X.PZ(),cncl:M.xhr&&M.d7.X?1:0,rqb:M.jj,cwt:M.Gh,swt:(U=M.ql)==null?void 0:U.JR});X=Object.assign(I9M(M.info),f);u.call(P,"rqs",X)}if(M.isComplete()&&M.SS()&&M instanceof kx)w.policy.TE?M.Rf()?(M.dispose(),w.B.length===0?w.loader.Wl():(w=w.B[0],w instanceof kx&&w.YX()&&w.JZ())):M.xH()&&w.loader.handleError(M.lX(),M.n0()):(M.dispose(),w.loader.Wl());else{if(M.mx())M instanceof kx&&BU4(w.timing,M),hv4(w),cMU(w);else if(M.xH())P=w.fu.Wp(),M instanceof kx&&b7_(M.info)&&P&&w.loader.mD(P),M instanceof Jz?w.B.pop():(P=1,M.canRetry()&&Mu(w.loader)&&(Zkp(w,M),P=0),w.loader.handleError(M.lX(),M.n0(),P));else{if(w.loader.isSuspended&&!M.isComplete())return;cMU(w)}M.sO()||M instanceof Jz||(M.isComplete()?P=VY2(M,w.policy,w.G):(P=N85(M,w.policy,w.G),P===1&&(w.Yu= !0)),P!==0&&(u=new $g(1,M.info.EF),u.zC=P===2,Pty(w,u)));w.policy.QE&&!M.isComplete()?wy(w.loader):w.loader.Wl()}}}; cMU=function(w){for(;w.B.length&&w.B[0].iS(w.tp());){var M=w.B.shift();Spx(w,M)}w.B.length&&Spx(w,w.B[0])}; Spx=function(w,M){M instanceof kx&&(w.UO=M);var P=new Set(M.aA(w.tp()));P=g.G(P);for(var u=P.next();!u.done;u=P.next()){var X=u.value;if(!(u=!(M instanceof Jz))){u=w.C;var U=u.Gk.dK,f=Xc(u.videoInfos,U);U=ku2(u,X,U);var h=f.includes(X);!u.PB.L2||U||h||u.loader.II("sabrcpf",{fid:""+X,vfids:""+f.join("."),said:u.V||""});u=U||f.includes(X)}if(u&&(u=M.ZN(X,w.tp()),f=w.policy.Ob&&sI(u[0].B.info.mimeType),M.QX(X,w.tp())))for(X=M.n$(X,w.tp()),X=g.G(X),U=X.next();!U.done;U=X.next())if(U=U.value,w.policy.C&& M instanceof Jz&&w.loader.II("omblss",{s:U.info.vk()}),f)h=w.timing,h.B3||(h.B3=(0,g.G$)(),g.KO("fcb_r",h.B3,h.B)),h=w,h.videoData.dK()&&h.j&&IW(h.j)===IW(g.R0(U.info.B.info,h.Gk.dK))&&h.fu.publish("sabrCaptionsDataLoaded",U,h.TX.bind(h));else{h=U.info.B.info.hx();var c=U.info.B;if(h){var Z=void 0;var S=w.C,H=(Z=M.qZ(w.tp()))==null?void 0:Z.token;S.j&&c!==S.G?Z=!0:(S.j=!1,c!==S.G&&(S.G=c,S.ZR(c,S.audioTrack,H)),Z=!1);if(Z)continue}else Z=void 0,z_z(w.C,c,(Z=M.qZ(w.tp()))==null?void 0:Z.token);Z=h? w.audioTrack:w.videoTrack;M instanceof Jz&&(Z.j=!1,M instanceof Jz&&(h?Y0u(w.timing):q0p(w.timing)));try{TP(Z,u,U)}catch(p){U=Zv(p),w.loader.handleError(U.errorCode,U.details,U.severity),Z.Oz(),w.gx(!1,"pushSlice"),xg(w.loader)}}}}; Zkp=function(w,M){w.policy.S?w.B.splice(w.B.indexOf(M)).forEach(function(P){P.dispose()}):(w.B.pop(),M==null||M.dispose())}; HkF=function(w,M,P){for(var u=[],X=0;X0)for(var M=g.G(w.videoData.sabrContextUpdates.keys()),P=M.next();!P.done;P=M.next()){P=P.value;var u=void 0;((u=w.videoData.sabrContextUpdates.get(P))==null?0:u.sendByDefault)&&w.videoData.iW.add(P)}if(w.policy.S&&w.B.length)for(M=g.G(w.B),P=M.next();!P.done;P=M.next())(P=P.value.Sp())&&P.type&&P.sendByDefault&&w.videoData.iW.add(P.type)}; p7M=function(w){w.policy.VE&&(w.Cu=void 0,w.Td=0)}; FC_=function(w,M){if(M.xH()||M.sO()){var P=w.loader,u=P.II,X=M.state;w=w.tp();var U,f;if((M=(U=M.Rk)==null?void 0:U.get(w))==null)M=void 0;else{U=0;w=M.aA();for(var h=0;h=M.mediaTime&&g.C(w.fu.getPlayerState(),8)?(M.resolve([M.mediaTime,M.id]),w.B.delete(M.id)):(M.delay.dispose(),M.delay=new g.gV(function(){mIp(w,M)},(M.mediaTime-P)*1E3/w.fu.getPlaybackRate()),M.delay.start())}; DIU=function(w,M,P,u){var X=this;this.C=w;this.cpn=M;this.fu=P;this.B=u;this.L=new Map;this.G=new Map;this.j=this.V=NaN;this.K=!1;this.Pb="";this.isSeeking=!1;this.S=0;this.X=new NN1(P);this.X9=P.X9;this.fu.subscribe("SEEK_TO",function(){X.vA()}); this.fu.subscribe("SEEK_COMPLETE",function(){yMy(X)})}; Yp1=function(w,M){if(!w.isSeeking&&w.S!==M&&!isNaN(w.V)){w.S=M;var P=w.K?w.j:w.C.C9(M);(P!==w.j||w.K)&&qpF(w,P,M)}}; qpF=function(w,M,P){var u=w.L.get(M),X=w.C.getStartTime(M),U=w.C.getDuration(M);w.K=!1;w.j=M;var f=X,h;((h=u==null?void 0:u.B)!=null?h:[w.cpn]).forEach(function(c,Z){var S;Z=(S=u==null?void 0:u.L[Z])!=null?S:U;P>=f&&PX?lw5(w,U,w.L.get(U)):U===X&&lw5(w,U,w.L.get(U),u-w.C.getStartTime(U))})}; zvM=function(w,M,P,u){M!==w.Pb&&(w.fu.II("ssevt",{tag:w.B===0?"sstd-cr":w.B===1?"sstd-tm":w.B===2?"sstd-poll":w.B===3?"sstd-poll100":"sstd-unknown",ad:w.cpn!==M,cpn:M,st:P.toFixed(3),late:Math.round(w.isSeeking?0:(u-P)*1E3)}),w.Pb=M)}; LC1=function(w){var M=g.G(w.split("."));w=M.next().value;M=M.next().value;return[Number(w),M]}; dI2=function(w,M,P,u){P=M+"."+P;w.G.has(M)?w.G.get(M).push(P):w.G.set(M,[P]);w.B===1&&opu(w.X,u,P).then(function(X){var U=g.G(X);X=U.next().value;U=U.next().value;U=g.G(LC1(U));U.next();U=U.next().value;zvM(w,U,X,Vxp(w.X))}); w.B===0&&(w.X9.uo("transitiondetector",P),M=(u+w.fu.OF())*1E3,w.X9.qf([new g.bg(M,M+5E3,{id:P,namespace:"transitiondetector",priority:9})]))}; evz=function(w,M,P,u,X){this.loader=w;this.policy=M;this.schedule=P;this.m4=u;this.S=X;this.B3=NaN;this.L=this.j=this.X=null;this.B=this.G=this.K=this.startTimeSecs=NaN;this.C=!1;this.V=NaN}; BNp=function(w,M,P,u,X,U){return M.dh&&M.rB&&P===3?new evz(w,M,u,X,U):null}; QIy=function(w,M){if(w.policy.J7){var P=M.info.A9,u=BM(w.schedule);M=M.index.tH();P=Math.max(1,u/P);w.V=Math.round(Math.max(((P-1)*M+w.policy.sb)/P,M-w.policy.f$)*1E3)}}; npM=function(w,M){var P=Date.now()/1E3,u=P-w.startTimeSecs,X=P-w.K,U=X>=w.policy.pj,f=!1;if(U){var h=0;!isNaN(M)&&M>w.G&&(h=M-w.G,w.G=M);h/X=w.policy.f$&&!w.C;if(!U&&!P&&k34(w,M))return NaN;P&&(w.C=!0);a:{u=f;P=(0,g.G$)()/1E3-(w.m4.Zu()||0)-w.j.B-w.policy.sb;U=w.L.startTime;P=U+P;if(u){if(isNaN(M)){aH(w,NaN,"n",M);U=NaN;break a}u=M-w.policy.At;u0&&(h.headers=c);U&&(h.onFinish=U);return Object.keys(h).length>1? h:null}; jIx=function(w,M,P,u,X,U,f,h){uL()&&P.token&&(w=iL(w,{ctt:P.token,cttype:P.s2,mdx_environment:P.mdxEnvironment}));u.D("net_pings_low_priority")&&(M||(M={}),M.priority="low");U||h&&u.D("nwl_skip_retry")?(M==null?M={}:gp1(w,u.D("html5_assert_cpn_with_regex")),f?bv().sendAndWrite(w,M):bv().sendThenWrite(w,M,h)):M?(gp1(w,u.D("html5_assert_cpn_with_regex")),X_y(w,M)):g.Ld(w,X)}; Ctx=function(w){for(var M=[],P=0;P0&&P>0&&!w.L&&w.C<1E7)try{w.X=w.G({sampleInterval:M,maxBufferSize:P});var u;(u=w.X)==null||u.addEventListener("samplebufferfull",function(){return g.n(function(X){if(X.L==1)return g.B(X,w.stop(),2);Oku(w);g.yx(X)})})}catch(X){w.L=xI5(X.message)}}; iB=function(w,M){var P,u;return!!((P=window.h5vcc)==null?0:(u=P.settings)==null?0:u.set(w,M))}; wV5=function(){var w,M,P,u=(w=window.h5vcc)==null?void 0:(M=w.settings)==null?void 0:(P=M.getPersistentSettingAsString)==null?void 0:P.call(M,"cpu_usage_tracker_intervals");if(u!=null){var X;w=(X=JSON.parse(u))!=null?X:[];X=w.filter(function(Z){return Z.type==="total"}).map(function(Z){return Z.seconds}); M=g.G(awy);for(P=M.next();!P.done;P=M.next())P=P.value,X.indexOf(P)===-1&&w.push({type:"total",seconds:P});var U,f;(U=window.h5vcc)==null||(f=U.settings)==null||f.set("cpu_usage_tracker_intervals_enabled",1);var h,c;(h=window.h5vcc)==null||(c=h.settings)==null||c.set("cpu_usage_tracker_intervals",JSON.stringify(w))}}; i$y=function(){var w=window.H5vccPlatformService,M="";if(w&&w.has("dev.cobalt.coat.clientloginfo")&&(w=w.open("dev.cobalt.coat.clientloginfo",function(){}))){var P=w.send(new ArrayBuffer(0)); P&&(M=String.fromCharCode.apply(String,g.L(new Uint8Array(P))));w.close()}return M}; g.uB=function(w){g.v.call(this);var M=this;this.provider=w;this.logger=new g.pM("qoe");this.B=new Map;this.sequenceNumber=1;this.Lu=NaN;this.zt="N";this.V=this.m0=this.Ea=this.B3=this.L=0;this.QE=this.UO=this.K=this.OO="";this.VE=this.eL=NaN;this.TE=0;this.KT=-1;this.sb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.cj=this.isEmbargoed=this.Cu=this.isOffline=this.isBuffering=!1;this.Ob=[];this.S=null;this.bW=this.X=this.Z3=this.j=!1;this.C=-1;this.Yu=!1;this.DX=new g.gV(this.jl,750,this);this.HH= this.adCpn=this.ys=this.contentCpn="";this.adFormat=void 0;this.DO=0;this.iW=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.rB=new Set(["gd","pw"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.fg=!1;this.GE=NaN;this.xu=0;this.M7=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.hD=!1;this.SZ=new Set;this.yH={QK:function(u){M.QK(u)}, Al3:function(){return M.G}, rG:function(){return M.contentCpn}, agu:function(){return M.ys}, reportStats:function(){M.reportStats()}, Gd3:function(){return M.B.get("cat")||[]}, Rs:function(u){return M.B.get(u)||[]}, Fu$:function(){return M.B}, GQk:function(){return 0}, X8u:function(){return{adCpn:M.adCpn,HH:M.HH,adFormat:M.adFormat}}}; this.mN=this.provider.P3.D("html5_qoe_relaxed_reporting");var P=g.Oh(this.provider.P3.experiments,"html5_qoe_proto_mock_length");P&&!Mv.length&&(Mv=Ctx(P));g.b(this,this.DX);try{navigator.getBattery().then(function(u){M.S=u})}catch(u){}g.Pu(this,0,"vps",["N"]); w.P3.FX()&&(this.xu=(0,g.G$)(),this.GE=g.ZK(function(){var u=(0,g.G$)(),X=u-M.xu;X>500&&M.II("vmlock",{diff:X.toFixed()});M.xu=u},250)); this.provider.videoData.f6&&(this.remoteControlMode=MqR[this.provider.videoData.f6]||0);this.provider.videoData.wk&&(P=hpy(this.provider.videoData.wk),P==null?0:P.length)&&(this.remoteConnectedDevices=P);w.P3.FX()&&(this.jL=new KCU,g.b(this,this.jL));P=g.Oh(w.P3.experiments,"html5_js_self_profiler_sample_interval_ms");w=g.Oh(w.P3.experiments,"html5_js_self_profiler_max_samples");P>0&&w>0&&(this.t9=new w0(P,w),g.b(this,this.t9))}; Xo=function(w,M,P){var u=w.B.get(M);u?u.push(P):w.B.set(M,[P])}; g.Pu=function(w,M,P,u){Xo(w,P,M.toFixed(3)+":"+u.join(":"))}; PD_=function(w,M){var P=w.adCpn||w.provider.videoData.clientPlaybackNonce,u=w.provider.getCurrentTime(P);g.Pu(w,M,"cmt",[u.toFixed(3)]);P=u=w.provider.Ap(P);if((!w.G||w.provider.P3.D("html5_shorts_gapless_no_gllat")&&FM(w.provider.videoData)?0:P*1E3>w.G.R1+100)&&w.G){var X=w.G;P=X.isAd;u=u*1E3-X.R1;w.s5=M*1E3-X.FMO-u-X.BbK;X=(0,g.G$)()-u;M=w.s5;u=w.provider.videoData;var U=u.isAd();if(P||U){U=(P?"ad":"video")+"_to_"+(U?"ad":"video");var f={};u.K&&(f.cttAuthInfo={token:u.K,videoId:u.videoId});f.startTime= X-M;qH(U,f);g.Db({targetVideoId:u.videoId,targetCpn:u.clientPlaybackNonce},U);yc("pbs",X,U)}else X=w.provider.fu.Li(),X.K!==u.clientPlaybackNonce?(X.G=u.clientPlaybackNonce,X.L=M):u.Dv()||g.Yq(new g.bK("CSI timing logged before gllat",{cpn:u.clientPlaybackNonce}));w.II("gllat",{l:w.s5.toFixed(),prev_ad:+P});delete w.G}}; UC=function(w,M){M=M===void 0?NaN:M;M=M>=0?M:g.$0(w.provider);var P=w.provider.fu.j$(),u=P.z2-(w.eL||0);u>0&&g.Pu(w,M,"bwm",[u,(P.qO-(w.VE||0)).toFixed(3)]);isNaN(w.eL)&&P.z2&&w.isOffline&&w.QK(!1);w.eL=P.z2;w.VE=P.qO;isNaN(P.bandwidthEstimate)||g.Pu(w,M,"bwe",[P.bandwidthEstimate.toFixed(0)]);w.provider.P3.FX()&&Object.keys(P.B).length!==0&&w.II("bwinfo",P.B);if(w.provider.P3.FX()||w.provider.P3.D("html5_log_meminfo"))u=vpx(),Object.values(u).some(function(U){return U!==void 0})&&w.II("meminfo", u); if(w.provider.P3.FX()){var X;(u=(X=w.jL)==null?void 0:bkH(X))&&Object.values(u).some(function(U){return U!=null})&&w.II("cpuinfo",u)}w.t9&&w.II("jsprof",w.t9.flush()); w.S&&g.Pu(w,M,"bat",[w.S.level,w.S.charging?"1":"0"]);X=w.provider.fu.getVisibilityState();w.KT!==X&&(g.Pu(w,M,"vis",[X]),w.KT=X);PD_(w,M);(X=uOM(w.provider))&&X!==w.TE&&(g.Pu(w,M,"conn",[X]),w.TE=X);XVU(w,M,P)}; XVU=function(w,M,P){if(!isNaN(P.i_)){var u=P.i_;P.L96E3&&(new g.gV(w.reportStats,0,w)).start()}}; f52=function(w){w.provider.videoData.Bb&&fK(w,"prefetch");w.provider.videoData.hD&&w.II("reload",{r:w.provider.videoData.reloadReason,ct:w.provider.videoData.hD});w.provider.videoData.Z3&&fK(w,"monitor");w.provider.videoData.isLivePlayback&&fK(w,"live");SY&&fK(w,"streaming");w.provider.videoData.f6&&w.II("ctrl",{mode:w.provider.videoData.f6},!0);if(w.provider.videoData.wk){var M=w.provider.videoData.wk.replace(/,/g,"_");w.II("ytp",{type:M},!0)}w.provider.videoData.bx&&(M=w.provider.videoData.bx.replace(/,/g, "."),w.II("ytrexp",{ids:M},!0));M=w.provider.videoData;var P=w.provider.P3.D("enable_white_noise")||w.provider.P3.D("enable_webgl_noop"),u=g.dN(M)||g.bt(M)||g.II(M)||g.AM(M);(P||u)&&(P=(0,g.Wu)())&&w.B.set("gpu",[P]);iD(w.provider.videoData)&&g.Pu(w,g.$0(w.provider),"dt",["1"]);w.provider.D("html5_record_is_offline_on_playback_attempt_start")&&M.cotn&&!iD(M)&&w.QK(!0);w.provider.P3.FX()&&(M=(0,g.G$)()-w.provider.P3.jU,w.II("playerage",{secs:Math.pow(1.6,Math.round(Math.log(M/1E3)/Math.log(1.6))).toFixed()})); w.X=!0;w.Lu=g.ZK(function(){w.reportStats()},1E4)}; hI2=function(w,M,P){var u=g.$0(w.provider);WBx(w,u,M,0,P);UC(w,u);UlF(w)}; WBx=function(w,M,P,u,X){var U=w.provider.P3.B.cbrver;w.provider.P3.B.cbr==="Chrome"&&/^96[.]/.test(U)&&P==="net.badstatus"&&/rc\.500/.test(X)&&c$z(w,3);w.provider.P3.D("html5_use_ump")&&/b248180278/.test(X)&&c$z(w,4);U=w.provider.getCurrentTime(w.adCpn||w.provider.videoData.clientPlaybackNonce);u=u===1?"fatal":"";P=[P,u,U.toFixed(3)];u&&(X+=";a6s."+rg());X&&P.push(Z$H(X));g.Pu(w,M,"error",P);w.X=!0}; Sry=function(w,M){var P=g.$0(w.provider);if(!w.provider.P3.experiments.nu("html5_refactor_sabr_video_format_selection_logging")||M.B.id!==w.OO){var u=[M.B.id,M.L,w.OO,M.reason];M.token&&u.push(M.token);g.Pu(w,P,"vfs",u);w.OO=M.B.id;u=w.provider.fu.getPlayerSize();if(u.width>0&&u.height>0){u=[Math.round(u.width),Math.round(u.height)];var X=g.U_();X>1&&u.push(X);g.Pu(w,P,"view",u)}w.Z3||(w.provider.P3.FX()&&fK(w,"rqs2"),w.provider.videoData.B&&lW(w.provider.videoData.B)&&w.B.set("preload",["1"]));w.Z3= !0;w.X=!0}M.reason==="m"&&++w.DO===100&&c$z(w,2);g.Pu(w,P,"vps",[w.zt]);w.mN||w.reportStats(P)}; H$l=function(w){w.C>=0||(w.provider.P3.QL||w.provider.fu.getVisibilityState()!==3?w.C=g.$0(w.provider):w.Yu=!0)}; pVR=function(w,M,P){if(w.provider.P3.experiments.nu("html5_refactor_sabr_audio_format_selection_logging")){M=P.B;var u=[M.audio&&M.video?M.Ow?M.Ow:"":M.id];M.Y2&&M.Y2.id&&u.push(M.Y2.id);M=u.join(";");M!==w.K&&(u=[M,w.K,P.reason],P.token&&u.push(P.token),g.Pu(w,g.$0(w.provider),"afs",u),w.K=M)}else P.B.id!==w.K&&(u=[P.B.id,w.K,P.reason],P.token&&u.push(P.token),g.Pu(w,M,"afs",u),w.K=P.B.id)}; fK=function(w,M){Xo(w,"cat",M)}; FBu=function(w,M,P,u,X){var U=g.$0(w.provider);M!==1&&M!==3&&M!==5||g.Pu(w,U,"vps",[w.zt]);Xo(w,"xvt","t."+U.toFixed(3)+";m."+X.toFixed(3)+";g.2;tt."+M+";np.0;c."+P+";d."+u)}; c$z=function(w,M){w.bW||(Xo(w,"fcnz",""+M),w.bW=!0)}; Z$H=function(w){/[^a-zA-Z0-9;.!_-]/.test(w)&&(w=w.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return w}; g.cu=function(w,M,P,u,X,U,f,h,c,Z){h=h===void 0?!1:h;g.v.call(this);var S=this;this.fu=w;this.schedule=M;this.policy=P;this.Gk=u;this.mN=c;this.SZ=Z;this.aI=null;this.eL=this.OO=this.UO=this.Lu=0;this.cR=this.QU=this.isSuspended=!1;this.iW="";this.rB={};this.M7=NaN;this.fg=0;this.B3=null;this.GE=this.t9=!1;this.Mn=0;this.Z3=!1;this.xu=this.bW=0;this.VE=null;this.yc=function(){return S.fu.yc()}; this.timing=new Ddy(this.SZ);this.V=new QF(this.schedule,this.policy);this.TE=new g.gV(this.Wl,0,this);this.QE=new g.gV(this.Wl,this.policy.QE,this);this.gj=new g.gV(this.Wl,1E3,this);this.Ob=new g.gV(this.Wl,void 0,this);this.jL=new g.gV(function(){S.isSuspended||S.Wl()},1E4,this); this.KT=new g.gV(this.jmK,250,this);this.K=this.currentTime=NaN;this.l3=new y8(5);this.ys=this.timestampOffset=NaN;this.logger=new g.pM("dash");this.DX=Infinity;this.yH={getAudioTrack:function(){return S.audioTrack}, xML:function(){return S.videoTrack}, getManifest:function(){return S.Gk}, ye9:function(){return S.L}, Wl:function(){S.Wl()}, IL:function(){S.Lu=0;S.IL()}, Dk3:function(p){return he(S,S.videoTrack,S.aI.L,p)}}; w=c&&c.aA();c&&(NUu(c,this.Gk,this.policy),this.ys=Date.now());this.B=new OM(this,this.V,P,this.Gk,X,w);P=xdl(this.B,U,f&&f.id);this.audioTrack=new Ds(this,this.policy,P.audio,this.timing);this.videoTrack=new Ds(this,this.policy,P.video,this.timing);this.videoTrack.X.ys=this.audioTrack.NZ();this.Yu={updateend:this.HE,error:this.kkO};g.b(this,this.TE);g.b(this,this.QE);g.b(this,this.gj);g.b(this,this.Ob);g.b(this,this.jL);P=this.policy.VI&&this.policy.IE?!dop(this.videoTrack.B.info):!1;this.sb=cL_({v_:this.policy.j.v_|| P,IE:this.policy.IE&&!P,Lk:this.policy.Lk});this.j=BNp(this,this.policy,this.sb,this.schedule,this.l3,function(p,F){return Etx(S,p,F)}); this.C=new n2(this,this.Gk,this.policy,this.videoTrack,this.audioTrack,h);this.policy.bW&&this.policy.L&&(this.Cu=new A3x(function(p,F){S.II(p,F)})); this.N8=new K6(this,this.Gk,this.videoTrack,this.audioTrack,this.policy);h=this.policy.Iz?this.fu.getVideoData().e1:null;this.G=new jQ(this,this.policy,this.videoTrack,this.audioTrack,this.rB,this.C,this.timing,this.V,this.schedule,this.Gk,this.B,this.j,P,h);g.b(this,this.G);this.X=new ur(this,this.policy,this.videoTrack,this.audioTrack,this.Gk,X,Ep(this.fu.getVideoData()),f==null?void 0:f.id);g.b(this,this.X);e_1(this.X,U);this.L=new ik5(this.fu,this,this.policy,this.audioTrack,this.videoTrack,this.Gk, this.schedule,this.B,this.X,this.timing,this.C);g.b(this,this.L);this.S=this.fu.FF.r0.ED;this.policy.G||NIx(this);if(this.policy.gb){var H;this.cj=new DIU(this.videoTrack.B.index,(H=this.fu.getVideoData().clientPlaybackNonce)!=null?H:"",this.fu,this.policy.Z3);this.policy.Z3===3&&(this.hD=new g.gV(this.qF,200,this),this.hD.start(),g.b(this,this.hD))}this.logger.debug("Created")}; NIx=function(w){var M,P;if((M=w.S)==null?0:(P=M.GN)==null?0:P.itagDenylist){var u;w.HX((u=w.S)==null?void 0:u.GN.itagDenylist)}var X;if((X=w.S)==null?0:X.playbackStartPolicy){var U,f;JY(w.policy,(U=w.S)==null?void 0:U.playbackStartPolicy,3,(f=w.S)==null?void 0:f.WI())}if(w.policy.vC){M=w.tp();var h;(P=M?(h=w.S)==null?void 0:h.mz.get(M):void 0)&&w.L.k$(P)}if(!w.Gk.S){var c;h=(c=w.S)==null?void 0:c.hK;(h==null?0:h.zm)&&(h==null?0:h.qm)&&w.Gk.dK&&gr(w.Gk,h.zm,h.qm)}var Z;((Z=w.S)==null?0:Z.Uu)&&(c=w.S.Uu.get(w.tp()|| ""))&&w.Gk&&c.formatId&&(w=w.Gk.C.get(IW(c.formatId)))&&(w.info.debugInfo=c.debugInfo)}; VqR=function(w,M){var P=IW(g.R0(M.B.info,w.Gk.dK)),u,X=((u=w.mN)==null?void 0:u.ZN(P))||[];if(X.length===0)return w.II("ombmsi",{}),!1;X=new MJ(X);if(u=!w.policy.Lu||isFinite(w.getCurrentTime())||w.fu.Wp()){a:{u=w.getCurrentTime();X=g.G(X.N0);for(var U=X.next();!U.done;U=X.next())if(U=U.value,U.type===3&&u>=U.X&&u<=U.K){u=!0;break a}u=!1}u=!u}if(u)return w.II("ostmf",{ct:w.getCurrentTime(),a:M.B.info.hx()}),!1;(w=w.mN)!=null&&(w.G5.get(P).KA=!0);return!0}; ml_=function(w){if(!w.Gk.dK)return!0;var M=w.fu.getVideoData();if(w.fu.Nr())return w.II("ombpa",{}),!1;var P,u;if(!!((P=w.S)==null?0:(u=P.hK)==null?0:u.TBW)!==w.Gk.Gt)return w.II("ombplmm",{}),!1;P=M.fg||M.liveUtcStartSeconds||M.rB;if(w.Gk.Gt&&P)return w.II("ombplst",{}),!1;if(w.Gk.S)return w.II("ombab",{}),!1;P=Date.now();return JL(w.Gk)&&!isNaN(w.ys)&&P-w.ys>w.policy.bG*1E3?(w.II("ombttl",{}),!1):w.Gk.yL&&w.Gk.X||!w.policy.hA&&w.Gk.isPremiere||T3(M)!==0&&!w.policy.B||M.D("html5_disable_onesie_media_for_mosaic")&& wI(M)||M.VH()&&!M.D("html5_enable_onesie_media_for_lifa")&&M.isDaiEnabled()&&M.enableServerStitchedDai||M.D("html5_disable_onesie_media_for_lifa_eligible")&&aI(M)?!1:!0}; otz=function(w,M){var P=M.B,u=w.Gk.dK;if(ml_(w))if(w.mN&&w.mN.G5.has(IW(g.R0(P.info,u)))){if(u=IW(g.R0(P.info,u)),VqR(w,M)){var X=new MJ(w.mN.ZN(u)),U=function(f){try{if(f.xH())w.handleError(f.lX(),f.n0()),ns(M,f),uq(f.info)&&Oz(w.G,M,P,!0),w.Wl();else if(ae(w.G,f)){var h;(h=w.C)==null||vcy(h,f.info,w.B3);w.Wl()}}catch(c){f=Zv(c),w.handleError(f.errorCode,f.details,f.severity),w.Oz()}}; P.C=!0;PC(X)&&(zP(M,new bx(w.policy,u,X,w.mN,U)),RA(w.timing))}}else w.II("ombfmt",{})}; Glz=function(w,M){M=M||w.videoTrack&&w.videoTrack.L&&w.videoTrack.L.startTime||w.getCurrentTime();var P=ir,u=w.videoTrack,X=w.B;M=X.nextVideo&&X.nextVideo.index.C9(M)||0;X.ys!==M&&(X.xu={},X.ys=M,aA(X,X.B));M=!X.B.isLocked()&&X.S>-1&&(0,g.G$)()-X.SM.B&&M.reason==="b";u||X||P?(w.fu.f0({reattachOnConstraint:u?"u":X?"drm":"perf",lo:M.L,up:M.B}),w.policy.Y$||(w.X.B.L=!1)):(w.policy.Y$&&(w.X.B.L=!1),xg(w))}}else if(!Ow4(w.B,M)&&w.videoTrack){w.logger.debug(function(){return"Setting constraint: r="+M.reason+" u="+M.B}); P=w.B.B;l5u(w,wCH(w.B,M));Glz(w);u=M.isLocked()&&M.reason==="m"&&w.B.Lu;X=w.policy.w5&&M.reason==="l"&&sz(w.videoTrack);P=P.B>M.B&&M.reason==="b";var U=w.B.Yu&&!MV();u||X||P||U?w.fu.f0({reattachOnConstraint:u?"u":X?"drm":U?"codec":"perf"}):xg(w)}}; eIz=function(w,M,P){if((!w.aI||XF(w.aI)&&!w.policy.La)&&!w.N8.isSeeking()&&(w.policy.B||sz(M)&&M.B.Wv()&&w.B.B3)){var u=w.getCurrentTime()+x1u(w.V,M,P);w.logger.debug(function(){return"Clearing back to "+u.toFixed(3)}); i7F(M,u)}}; l5u=function(w,M){M&&(w.logger.debug(function(){return"Logging new format: "+b3(M.video.info)}),BIx(w.fu,new J2(M.video,M.reason))); if(w.B.t9){var P=ugR(w.B,"a");w.fu.kS(new J2(P.audio,P.reason))}}; xg=function(w){g.JK(w.TE)}; wy=function(w){w.policy.QE&&w.policy.Lk&&Math.min(wMy(w.videoTrack),wMy(w.audioTrack))*1E3>w.policy.J_?g.JK(w.QE):w.Wl()}; QZl=function(w,M){var P=(0,g.G$)()-M,u=Q7(w.audioTrack,!0)*1E3,X=Q7(w.videoTrack,!0)*1E3;w.logger.debug(function(){return"Appends paused for "+P}); if(w.policy.C&&(w.II("apdpe",{dur:P.toFixed(),abuf:u.toFixed(),vbuf:X.toFixed()}),gv(w.policy))){var U=n6(w.V);w.II("sdps",{ct:M,ah:u.toFixed(),vh:X.toFixed(),mr:vH(w.V,w.cR,U),bw:U.toFixed(),js:w.isSeeking(),re:+w.cR,ps:(w.policy.g3||"").toString(),rn:(w.policy.Op||"").toString()})}}; klp=function(w){if(UcH(w.videoTrack))return w.logger.debug("Pausing appends for server-selectable format"),"ssf";if(w.policy.OO&&Ie(w.videoTrack)&&Ie(w.audioTrack))return"updateEnd";if(v$(w.audioTrack)||v$(w.videoTrack)&&w.videoTrack.B.info.zk!=="f")return"";if(w.N8.isSeeking()){var M=w.V;var P=w.videoTrack;var u=w.audioTrack;if(M.policy.B){var X=M.policy.NE;gv(M.policy)&&(X=vH(M,!1,n6(M)));M=X;P=Q7(u,!0)>=M&&Q7(P,!0)>=M}else P.C.length||u.C.length?(X=P.B.info.A9+u.B.info.A9,X=10*(1-n6(M)/X),M=Math.max(X, M.policy.NE),P=Q7(u,!0)>=M&&Q7(P,!0)>=M):P=!0;if(!P)return"abr";P=w.videoTrack;if(P.C.length>0&&P.X.L.length===1&&dJu(P.X).info.V360);u=gv(w.policy)&&w.policy.RO;if(!w.cR||!u&&P)return"";P=w.policy.ih;gv(w.policy)&&(P=vH(w.V,w.cR,n6(w.V)));P=Plp(w.videoTrack,w.getCurrentTime(),P)||Plp(w.audioTrack,w.getCurrentTime(), P);return gv(w.policy)?P?"mbnm":"":(w.videoTrack.C.length>0||w.audioTrack.C.length>0||Cs(w.G,w.videoTrack,w.audioTrack)||Cs(w.G,w.audioTrack,w.videoTrack))&&P?"nord":""}; RIR=function(w){if(w.j){var M=w.j.Wl(w.audioTrack,C3(w.aI.L.cB()));M&&w.fu.seekTo(M,{D6:!0,Wk:"pollSubsegmentReadahead",UT:!0})}}; JYp=function(w,M,P){if(w.policy.OO&&Ie(M))return!1;if(P.HK())return!0;if(!P.CQ())return!1;var u=O6(M);if(!u||u.info.type===6)return!1;var X;if(w.policy.O7||((X=w.C)==null?0:ICl(X,M,u.info.Ku)))w.eL=0;else return w.N8.isSeeking()&&xg(w),w.eL=w.eL||(0,g.G$)(),!1;if(!he(w,M,P,u.info))return!1;if(w.Gk.L&&u.info.L===0){if(X=ntM(M,P,u)){var U=YE(M);w.II("initchg",{it:u.info.B.info.id,sr:!!U&&U.B===u.info.B,ty:u.info.type,seg:u.info.Ku})}U=g.Q2(u.info.B.info);w.policy.DO&&U&&!X&&MI2(u)}U=w.j&&!!w.j.X&&M.B.info.audio; X=w.Gk.isManifestless||u.G;if(!(w.Gk.L&&u.info.L!==0||X&&!U)&&vtF(w,M,P,u))return!0;if(U)return!1;U=ra(w,M);U=w.getCurrentTime()+U;if(u.info.X>U)return w.policy.B&&sZ2(w,M),w.policy.aj&&Wj5(M.X,U,!1),!1;Is4(w,M);var f;w.policy.Kx&&P===((f=w.aI)==null?void 0:f.B)&&w.Z3&&(P.FU()===0?(w.Z3=!1,w.policy.Kx=!1):w.bW=P.FU());if(!AY2(w,P,u,M))return!1;w.policy.OO&&u.info.GC()?(w.fu.N().FX()&&w.II("eosl",{ls:u.info.vk()}),u.isLocked=!0):(M.Yp(u),Pql(w.B,u.info),w.logger.debug(function(){return"Appended "+ u.info.vk()+", buffered: "+gf(P.cB())})); X&&gE1(w,u.info.B.Sc);return!0}; sZ2=function(w,M){M===w.videoTrack?w.OO=w.OO||(0,g.G$)():w.UO=w.UO||(0,g.G$)()}; Is4=function(w,M){M===w.videoTrack?w.OO=0:w.UO=0}; AY2=function(w,M,P,u){var X=w.policy.hD?(0,g.G$)():0,U=P.G&&P.info.B.B||void 0,f=P.L;P.G&&(f=rY4(w,P,f)||f);var h=$D(f);f=w.policy.hD?(0,g.G$)():0;M=je2(w,M,h,P.info,U);(u=u.S)!=null&&(U=P.info,X=f-X,f=(0,g.G$)()-f,!u.L||V1u(u.L,U)&&u.L.Ku===U.Ku||u.flush(),u.X+=X,u.C+=f,X=1,!u.L&&U.L&&(X=2),XN(u,X,M),f=Math.ceil(U.L/1024),X===2&&u.B.add(f),u.B.add(Math.ceil((U.L+U.C)/1024)-f),u.L=U);w.xu=0;if(M===0)return w.t9&&(w.logger.debug("Retry succeed, back to normal append logic."),w.t9=!1,w.GE=!1),w.fg= 0,!0;if(M===2||M===5)return Cdx(w,"checked",M,P.info),!1;if(M===1){if(!w.t9)return w.logger.debug("QuotaExceeded, retrying."),w.t9=!0,!1;if(!w.GE)return w.GE=!0,w.fu.seekTo(w.getCurrentTime(),{Wk:"quotaExceeded",UT:!0}),!1;P.info.VL()?(X=w.policy,X.UO=Math.floor(X.UO*.8),X.mN=Math.floor(X.mN*.8)):(X=w.policy,X.iW=Math.floor(X.iW*.8),X.mN=Math.floor(X.mN*.8));w.policy.B?jy(w.X.B,P.info.B,!1):id(w.B,P.info.B)}w.fu.f0({reattachOnAppend:M});return!1}; rY4=function(w,M,P){var u;if(u=w.policy.Xx&&w.aI&&!w.aI.V&&!w.fu.tC())M=M.info.B.info,u=M.R7()&&To(M)&&M.video&&M.video.width<3840&&M.video.width>M.video.height;if(u&&(w.aI.V=!0,Fi('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return P=zfH(P),w.policy.C&&w.II("sp4k",{s:!!P}),P}; Cdx=function(w,M,P,u){var X="fmt.unplayable",U=1;P===5||P===3?(X="fmt.unparseable",w.policy.B?!u.B.info.video||C2(w.X.B).size>0||jy(w.X.B,u.B,!1):!u.B.info.video||C2(w.B.G).size>0||id(w.B,u.B)):P===2&&(w.fg<15?(w.fg++,X="html5.invalidstate",U=0):X="fmt.unplayable");u=wr(u);var f;u.mrs=(f=w.aI)==null?void 0:Wp(f);u.origin=M;u.reason=P;w.policy.Rc&&(u.trg="appenderr");w.handleError(X,u,U)}; gY5=function(w,M,P,u,X){var U=w.Gk;var f=w.policy.B,h=!1,c=-1;for(F in U.B){var Z=sI(U.B[F].info.mimeType)||U.B[F].info.VL();if(u===Z)if(Z=U.B[F].index,Z.Vv(M.Ku)){h=Z;var S=M,H=h.OT(S.Ku);H&&H.startTime!==S.startTime?(h.segments=[],h.eF(S),h=!0):h=!1;h?c=M.Ku:!M.pending&&f&&(S=Z.getDuration(M.Ku),S!==M.duration&&(U.publish("clienttemp","mfldurUpdate",{itag:U.B[F].info.itag,seg:M.Ku,od:S,nd:M.duration},!1),Z.eF(M),h=!0))}else Z.eF(M),h=!0}c>=0&&(f={},U.publish("clienttemp","resetMflIndex",(f[u?"v": "a"]=c,f),!1));U=h;SqR(w.N8,M,u,U);if(w.policy.bW&&w.policy.L&&(c=M.FP||null)){var p;f=(p=w.L)==null?void 0:EpR(p).requestNumber;if((p=w.Cu)!=null){if(p.L.has(c.identifier)){var F=p.L.get(c.identifier);F.event=c.event;F.startTimeSecs=c.startSecs;F.Xq=c.Xq}else p.L.set(c.identifier,{event:c.event,startTimeSecs:c.startSecs,Xq:c.Xq,ZJ:[]});p.C&&f>-1&&fKM(w.Gk)&&(w.Gk.ys=M.startTime+(isNaN(w.timestampOffset)? 0:w.timestampOffset),w.N8.isSeeking()&&w.N8.targetTime5)return w.xu= 0,w.fu.f0({initSegStuck:1,as:u.info.vk()}),!0}else w.xu=0,w.VE=u;w.policy.yd&&(P.abort(),(f=M.S)!=null&&(XN(f,4),f.flush()));X=je2(w,P,U,c,X);var Z;(Z=M.S)==null||ZMx(Z,X,c);if(X!==0)return tQH(w,X,u),!0;u.info.VL()?ddy(w.timing):lCu(w.timing);w.logger.debug(function(){return"Appended init for "+u.info.B.info.id}); gE1(w,u.info.B.Sc);return P.G1()}; ntM=function(w,M,P){if(M.RW()==null){w=YE(w);if(!(M=!w||w.B!==P.info.B)){a:if(w=w.S,P=P.info.S,w.length!==P.length)P=!1;else{for(M=0;M1)return 6;f.xu=new g.gV(function(){var h=O6(f);w.sO()||h==null||!h.isLocked?w.fu.N().FX()&&w.II("eosl",{delayA:h==null?void 0:h.info.vk()}):xXF(f)?(w.fu.N().FX()&&w.II("eosl",{dunlock:h==null?void 0:h.info.vk()}),OsH(w,f===w.audioTrack)):(w.II("nue",{ls:h.info.vk()}),h.info.B3+=1,w.aI&&w.IL())},1E4,w); w.fu.N().FX()&&w.II("eosl",{delayS:u.vk()});f.xu.start()}w.policy.e8&&(u==null?void 0:u.B)instanceof $Y&&u.GC()&&w.II("poseos",{itag:u.B.info.itag,seg:u.Ku,lseg:u.B.index.T5(),es:u.B.index.C});M.appendBuffer(P,u,X)}catch(h){if(h instanceof DOMException){if(h.code===11)return 2;if(h.code===12)return 5;if(h.code===22||h.message.indexOf("Not enough storage")===0)return M=Object.assign({name:"QuotaExceededError",buffered:gf(M.cB()).replace(/,/g,"_"),vheap:eQ(w.videoTrack),aheap:eQ(w.audioTrack),message:g.zd(h.message, 3),track:w.aI?M===w.aI.L?"v":"a":"u"},vpx()),w.handleError("player.exception",M),1;g.qU(h)}return 4}return w.aI.bF()?3:0}; xN=function(w,M,P){w.policy.dk&&Dlu(w,P.Wk||"unknown");w.fu.seekTo(M,P)}; gE1=function(w,M){M&&w.fu.sK(new SQ(M.key,M.type))}; Ez=function(w,M){w.fu.bD(M)}; ra=function(w,M){if(w.t9&&!w.cR)return 3;if(w.isSuspended)return 1;var P;if((P=w.aI)==null?0:P.aI&&P.aI.streaming===!1)return 4;P=(M.B.info.audio?w.policy.iW:w.policy.UO)/(M.A9*w.policy.cC);if(w.policy.Xs>0&&w.aI&&XF(w.aI)&&(M=M.B.info.video?w.aI.L:w.aI.B)&&!M.G1()){M=M.cB();var u=Jy(M,w.getCurrentTime());u>=0&&(M=w.getCurrentTime()-M.start(u),P+=Math.max(0,Math.min(M-w.policy.Xs,w.policy.FM)))}w.policy.mN>0&&(P=Math.min(P,w.policy.mN));return P}; $IR=function(w,M){return(ra(w,M)+w.policy.hj)*M.A9}; wtp=function(w){w.iW&&!w.isSuspended&&Q8(w.schedule)&&(as5(w,w.iW),w.iW="")}; as5=function(w,M){BH(M,"cms",function(P){w.policy.C&&w.II("pathprobe",P)},function(P){w.fu.handleError(P)})}; it2=function(w,M){if(w.aI&&w.aI.X&&!w.aI.bF()&&(M.i_=Q7(w.videoTrack),M.L=Q7(w.audioTrack),w.policy.C)){var P=eQ(w.videoTrack),u=eQ(w.audioTrack),X=gf(w.aI.L.cB(),"_",5),U=gf(w.aI.B.cB(),"_",5);Object.assign(M.B,{lvq:P,laq:u,lvb:X,lab:U})}M.bandwidthEstimate=kN(w.V);var f;(f=w.audioTrack.S)==null||f.flush();var h;(h=w.videoTrack.S)==null||h.flush();w.logger.debug(function(){return WU(M.B)})}; Mf_=function(w,M){w.B3=M;w.C&&(w.C.C=M);w.B3.HN(w.videoTrack.B.info.R7());w.G.L=w.B3;w.policy.L&&(w.L.V=w.B3)}; ucF=function(w,M){if(w.aI&&w.aI.L){if(w.policy.yF){var P=h_2(w.audioTrack);if(P&&P.hx()){var u=w.fu;if(u.SF&&(u.SF.B=P,P=u.D4,P.qoe)){P=P.qoe;u=u.SF;var X=g.$0(P.provider);pVR(P,X,u)}}}w.policy.rM&&(P=h_2(w.videoTrack))&&P.VL()&&(u=w.fu,u.Zy&&(u.Zy.B=P,P=u.D4,P.qoe&&Sry(P.qoe,u.Zy)));M-=isNaN(w.timestampOffset)?0:w.timestampOffset;w.getCurrentTime()!==M&&w.resume();w.N8.isSeeking()&&w.aI&&!w.aI.bF()&&(u=w.getCurrentTime()<=M&&M=M&&Etx(w,u.startTime,!1)}); return P&&P.startTimew.getCurrentTime())return P.start/1E3;return Infinity}; WCU=function(w){if(w.fu.getVideoData().isLivePlayback)return!1;var M=w.fu.Nt();if(!M)return!1;M=M.getDuration();if(w.aI&&w.aI.B&&w.aI.L){var P=w.getCurrentTime(),u=w.aI.B.cB();w=w.aI.L.cB();u=u?j1(u,P):P;P=w?j1(w,P):P;P=Math.min(u,P);M=isNaN(P)?!1:P>=M-.01}else M=!1;return M}; tQH=function(w,M,P){w.policy.dZ&&FM(w.fu.getVideoData())?(w.fu.Sa()||Cdx(w,"sepInit",M,P.info),WJy(w.fu,"sie")):Cdx(w,"sepInit",M,P.info)}; Mu=function(w){return w.fu.lJ()0){var u=P.B.shift();cz2(P,u.info)}P.B.length>0&&(u=P.B[0].time-(0,g.G$)(),P.L.start(Math.max(0,u)))}},0); g.b(this,this.L);M.subscribe("widevine_set_need_key_info",this.X,this)}; cz2=function(w,M){a:{var P=M.cryptoPeriodIndex;if(isNaN(P)&&w.C.size>0)P=!0;else{for(var u=g.G(w.C.values()),X=u.next();!X.done;X=u.next())if(X.value.cryptoPeriodIndex===P){P=!0;break a}P=!1}}w.publish("log_qoe",{wvagt:"reqnews",canskip:P});P||w.publish("rotated_need_key_info_ready",M)}; Zt5=function(){var w={};var M=w.url;var P=w.interval;w=w.retries;this.url=M;this.interval=P;this.retries=w}; SaR=function(w,M){this.statusCode=w;this.message=M;this.L=this.heartbeatParams=this.errorMessage=null;this.B={};this.nextFairplayKeyId=null}; Htu=function(w,M,P){P=P===void 0?"":P;g.v.call(this);this.message=w;this.requestNumber=M;this.timer=P;this.onError=this.onSuccess=null;this.B=new g.lY(5E3,2E4,.2)}; ptM=function(w,M,P){w.onSuccess=M;w.onError=P}; Egp=function(w,M,P,u){var X={timeout:3E4,onSuccess:function(U){if(!w.sO()){yc("drm_net_r",void 0,w.timer);var f=U.status==="LICENSE_STATUS_OK"?0:9999,h=null;if(U.license)try{h=Td(U.license)}catch(E){g.qU(E)}if(f!==0||h){h=new SaR(f,h);f!==0&&U.reason&&(h.errorMessage=U.reason);if(U.authorizedFormats){f={};for(var c=[],Z={},S=g.G(U.authorizedFormats),H=S.next();!H.done;H=S.next())if(H=H.value,H.trackType&&H.keyId){var p=FJ1[H.trackType];if(p){p==="HD"&&U.isHd720&&(p="HD720");H.isHdr&&(p+="HDR");f[p]|| (c.push(p),f[p]=!0);var F=null;try{F=Td(H.keyId)}catch(E){g.qU(E)}F&&(Z[g.Yw(F,4)]=p)}}h.L=c;h.B=Z}U.nextFairplayKeyId&&(h.nextFairplayKeyId=U.nextFairplayKeyId);U.sabrLicenseConstraint&&(h.sabrLicenseConstraint=Td(U.sabrLicenseConstraint));U=h}else U=null;if(U)w.onSuccess(U,w.requestNumber);else w.onError(w,"drm.net","t.p;p.i")}}, onError:function(U){if(!w.sO())if(U&&U.error)U=U.error,w.onError(w,"drm.net.badstatus","t.r;p.i;c."+U.code+";s."+U.status,U.code);else w.onError(w,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){w.onError(w,"drm.net","rt.req."+w.requestNumber)}}; u&&(X.kG="Bearer "+u);g.g9(P,"player/get_drm_license",M,X)}; NyU=function(w,M,P,u){g.wC.call(this);this.videoData=w;this.P3=M;this.V=P;this.sessionId=u;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.B3=this.Lu=!1;this.C=null;this.mN=[];this.X=[];this.authorizedFormats=[];this.j=!1;this.B={};this.status="";this.K=NaN;this.L=w.G;this.cryptoPeriodIndex=P.cryptoPeriodIndex;w={};Object.assign(w,this.P3.B);w.cpn=this.videoData.clientPlaybackNonce;this.videoData.Cu&&(w.vvt=this.videoData.Cu,this.videoData.mdxEnvironment&&(w.mdx_environment= this.videoData.mdxEnvironment));this.P3.mN&&(w.authuser=this.P3.mN);this.P3.pageId&&(w.pageid=this.P3.pageId);isNaN(this.cryptoPeriodIndex)||(w.cpi=this.cryptoPeriodIndex.toString());var X=(X=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.RK()))?X[1]:"";X==="ATV"&&(w.cdt=X);this.G=w;this.G.session_id=u;this.S=!0;this.L.flavor==="widevine"&&(this.G.hdr="1");this.L.flavor==="playready"&&(M=Number(HM(M.experiments,"playready_first_play_expiration")),!isNaN(M)&&M>=0&&(this.G.mfpe=""+M),this.S=!1);M="";g.Xp(this.L)? ul(this.L)?(u=P.L)&&(M="https://www.youtube.com/api/drm/fps?ek="+DKx(u)):(M=P.initData.subarray(4),M=new Uint16Array(M.buffer,M.byteOffset,M.byteLength/2),M=String.fromCharCode.apply(null,M).replace("skd://","https://")):M=this.L.L;this.baseUrl=M;this.fairplayKeyId=mR(this.baseUrl,"ek")||"";if(M=mR(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(M);this.mN=P.R7?[g.Yw(P.initData,4)]:P.C;Fo(this,{sessioninit:P.cryptoPeriodIndex});this.status="in"}; Gk_=function(w,M){Fo(w,{createkeysession:1});w.status="gr";yc("drm_gk_s",void 0,w.videoData.S);w.url=VfH(w);try{w.C=M.createSession(w.V,function(P){Fo(w,{m:P})})}catch(P){M="t.g"; P instanceof DOMException&&(M+=";c."+P.code);w.publish("licenseerror","drm.unavailable",1,M,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}w.C&&(muF(w.C,function(P,u){ogM(w,P,u)},function(P,u,X){if(!w.sO()){u=void 0; var U=1;g.Xp(w.L)&&g.jY(w.P3)&&w.P3.D("html5_enable_safari_fairplay")&&X===1212433232&&(u="ERROR_HDCP",U=w.P3.D("html5_safari_fairplay_ignore_hdcp")?0:U);w.error("drm.keyerror",U,P,u)}},function(){w.sO()||(Fo(w,{onkyadd:1}),w.B3||(w.publish("sessionready"),w.B3=!0))},function(P){w.Kp(P)}),g.b(w,w.C))}; VfH=function(w){var M=w.baseUrl;Eql(M)||w.error("drm.net",2,"t.x");if(!mR(M,"fexp")){var P=["23898307","23914062","23916106","23883098"].filter(function(X){return w.P3.experiments.experiments[X]}); P.length>0&&(w.G.fexp=P.join())}P=g.G(Object.keys(w.G));for(var u=P.next();!u.done;u=P.next())u=u.value,M=r14(M,u,w.G[u]);return M}; ogM=function(w,M,P){if(!w.sO())if(M){Fo(w,{onkmtyp:P});w.status="km";switch(P){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":yzp(w,M);return;default:w.publish("ctmp","message_type",{t:P,l:M.byteLength})}w.Lu||(yc("drm_gk_f",void 0,w.videoData.S),w.Lu=!0,w.publish("newsession",w));if(il(w.L)&&(M=Dul(M),!M))return;M=new Htu(M,++w.requestNumber,w.videoData.S);ptM(M,function(u){qau(w,u)},function(u,X,U){if(!w.sO()){var f=0; u.B.L>=3&&(f=1,X="drm.net.retryexhausted");Fo(w,{onlcsrqerr:X,info:U});w.error(X,f,U);w.shouldRetry(cU(f),u)&&Yau(w,u)}}); g.b(w,M);zhH(w,M)}else w.error("drm.unavailable",1,"km.empty")}; yzp=function(w,M){Fo(w,{sdpvrq:1});w.K=Date.now();if(w.L.flavor!=="widevine")w.error("drm.provision",1,"e.flavor;f."+w.L.flavor+";l."+M.byteLength);else{var P={cpn:w.videoData.clientPlaybackNonce};Object.assign(P,w.P3.B);P=g.p5("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",P);M={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, M)}),responseType:"arraybuffer"};g.qx(P,M,3,500).then(sD(function(u){u=u.xhr;if(!w.sO()){u=new Uint8Array(u.response);var X=String.fromCharCode.apply(null,u);try{var U=JSON.parse(X)}catch(f){}U&&U.signedResponse?(w.publish("ctmp","drminfo",{provisioning:1}),U=(Date.now()-w.K)/1E3,w.K=NaN,w.publish("ctmp","provs",{et:U.toFixed(3)}),w.C&&w.C.update(u)):(U=U&&U.error&&U.error.message,u="e.parse",U&&(u+=";m."+U),w.error("drm.provision",1,u))}}),sD(function(u){w.sO()||w.error("drm.provision",1,"e."+u.errorCode+ ";c."+(u.xhr&&u.xhr.status))}))}}; EC=function(w){var M;if(M=w.S&&w.C!=null)w=w.C,M=!(!w.B||!w.B.keyStatuses);return M}; zhH=function(w,M){w.status="km";yc("drm_net_s",void 0,w.videoData.S);var P=new g.Ai(w.P3.nN),u={context:g.$Q(P.config_||g.XX())};u.drmSystem=Ty1[w.L.flavor];u.videoId=w.videoData.videoId;u.cpn=w.videoData.clientPlaybackNonce;u.sessionId=w.sessionId;u.licenseRequest=g.Yw(M.message);u.drmParams=w.videoData.drmParams;isNaN(w.cryptoPeriodIndex)||(u.isKeyRotated=!0,u.cryptoPeriodIndex=w.cryptoPeriodIndex);var X,U,f=!!((X=w.videoData.L)==null?0:(U=X.video)==null?0:U.isHdr());u.drmVideoFeature=f?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(u.context&&u.context.client){if(X=w.P3.B)u.context.client.deviceMake=X.cbrand,u.context.client.deviceModel=X.cmodel,u.context.client.browserName=X.cbr,u.context.client.browserVersion=X.cbrver,u.context.client.osName=X.cos,u.context.client.osVersion=X.cosver;u.context.user=u.context.user||{};u.context.request=u.context.request||{};w.videoData.Cu&&(u.context.user.credentialTransferTokens=[{token:w.videoData.Cu,scope:"VIDEO"}]);u.context.request.mdxEnvironment=w.videoData.mdxEnvironment|| u.context.request.mdxEnvironment;w.videoData.KT&&(u.context.user.kidsParent={oauthToken:w.videoData.KT});g.Xp(w.L)&&(u.fairplayKeyId=g.Yw(qux(w.fairplayKeyId)));g.E_(w.P3,g.Op(w.videoData)).then(function(h){Egp(M,u,P,h);w.status="rs"})}else w.error("drm.net",2,"t.r;ic.0")}; qau=function(w,M){if(!w.sO())if(Fo(w,{onlcsrsp:1}),w.status="rr",M.statusCode!==0)w.error("drm.auth",1,"t.f;c."+M.statusCode,M.errorMessage||void 0);else{yc("drm_kr_s",void 0,w.videoData.S);if(M.heartbeatParams&&M.heartbeatParams.url&&w.videoData.D("outertube_streaming_data_always_use_staging_license_service")){var P=w.L.L.match(/(.*)youtube.com/g);P&&(M.heartbeatParams.url=P[0]+M.heartbeatParams.url)}M.heartbeatParams&&w.publish("newlicense",M.heartbeatParams);M.L&&(w.X=M.L,w.videoData.LA||w.publish("newlicense", new Zt5),w.videoData.LA=!0,w.j=K5(w.X,function(u){return u.includes("HDR")})); M.B&&(w.P3.D("html5_enable_vp9_fairplay")&&ul(w.L)?(P=g.Yw(qux(w.fairplayKeyId),4),w.B[P]={type:M.B[P],status:"unknown"}):w.B=PT(M.B,function(u){return{type:u,status:"unknown"}})); PM(w.L)&&(M.message=KhM(g.Yw(M.message)));w.C&&(Fo(w,{updtks:1}),w.status="ku",w.C.update(M.message).then(function(){yc("drm_kr_f",void 0,w.videoData.S);EC(w)||(Fo(w,{ksApiUnsup:1}),w.publish("keystatuseschange",w))},function(u){u="msuf.req."+w.requestNumber+";msg."+g.zd(u.message,3); w.error("drm.keyerror",1,u)})); g.Xp(w.L)&&w.publish("fairplay_next_need_key_info",w.baseUrl,M.nextFairplayKeyId);w.P3.D("html5_enable_vp9_fairplay")&&ul(w.L)&&w.publish("qualitychange",du2(w.X));M.sabrLicenseConstraint&&w.publish("sabrlicenseconstraint",M.sabrLicenseConstraint)}}; Yau=function(w,M){var P=M.B.getValue();P=new g.gV(function(){zhH(w,M)},P); g.b(w,P);P.start();g.LL(M.B);Fo(w,{rtyrq:1})}; l_5=function(w,M){for(var P=[],u=g.G(Object.keys(w.B)),X=u.next();!X.done;X=u.next())X=X.value,P.push(X+"_"+w.B[X].type+"_"+w.B[X].status);return P.join(M)}; LJR=function(w){var M={};M[w.status]=EC(w)?l_5(w,"."):w.X.join(".");return M}; eh_=function(w,M,P){var u={};u.isHdr=M.includes("HDR");switch(M.replace("HDR","").replace("720","")){case "AUDIO":u.trackType=1;break;case "SD":u.trackType=2;break;case "HD":u.trackType=3;break;case "UHD1":u.trackType=4;break;case "UHD2":u.trackType=5;break;default:u.trackType=0}!u.trackType||P[M]||EC(w)&&!Nv(w,M)||(w.authorizedFormats.push(u),P[M]=!0)}; Nv=function(w,M){for(var P in w.B)if(w.B[P].status==="usable"&&w.B[P].type===M)return!0;return!1}; ByH=function(w,M){for(var P in w.B)if(w.B[P].type===M)return w.B[P].status}; Fo=function(w,M){var P=P===void 0?!1:P;WU(M);(P||w.P3.FX())&&w.publish("ctmp","drmlog",M)}; QHl=function(w){var M=w[0];w[0]=w[3];w[3]=M;M=w[1];w[1]=w[2];w[2]=M;M=w[4];w[4]=w[5];w[5]=M;M=w[6];w[6]=w[7];w[7]=M}; du2=function(w){return g.o$(w,"UHD2")||g.o$(w,"UHD2HDR")?"highres":g.o$(w,"UHD1")||g.o$(w,"UHD1HDR")?"hd2160":g.o$(w,"HD")||g.o$(w,"HDHDR")?"hd1080":g.o$(w,"HD720")||g.o$(w,"HD720HDR")?"hd720":"large"}; Dul=function(w){for(var M="",P=0;P'.charCodeAt(u);w=w.C.createSession("video/mp4",M,P);return new V3(null,null,null,null,w)}; I_1=function(w,M){var P=w.K[M.sessionId];!P&&w.X&&(P=w.X,w.X=null,P.sessionId=M.sessionId,w.K[M.sessionId]=P);return P}; sHl=function(w,M){var P=w.subarray(4);P=new Uint16Array(P.buffer,P.byteOffset,P.byteLength/2);P=String.fromCharCode.apply(null,P).match(/ek=([0-9a-f]+)/)[1];for(var u="",X=0;X19.2999?(w=P.xO,P=P.s7,P>=w&&(P=w* .75),M=(w-P)*.5,P=new Hu(M,w,w-M-P,this)):P=null;break a;case "widevine":P=new pK(M,this,w);break a;default:P=null}if(this.G=P)g.b(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.Wu,this),this.G.subscribe("log_qoe",this.rg,this);Uk(this.P3.experiments);this.rg({cks:this.B.getInfo()})}; ggU=function(w){var M=vg1(w.X);M?M.then(sD(function(){rz1(w)}),sD(function(P){if(!w.sO()){g.qU(P); var u="t.a";P instanceof DOMException&&(u+=";n."+P.name+";m."+P.message);w.publish("licenseerror","drm.unavailable",1,u,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(w.rg({mdkrdy:1}),w.S=!0); w.B3&&(M=vg1(w.B3))}; Crp=function(w,M,P){w.eL=!0;P=new SQ(M,P);w.P3.D("html5_eme_loader_sync")&&(w.K.get(M)||w.K.set(M,P));jHH(w,P)}; jHH=function(w,M){if(!w.sO()){w.rg({onInitData:1});if(w.P3.D("html5_eme_loader_sync")&&w.videoData.C&&w.videoData.C.B){var P=w.j.get(M.initData);M=w.K.get(M.initData);if(!P||!M)return;M=P;P=M.initData;w.K.remove(P);w.j.remove(P)}w.rg({initd:M.initData.length,ct:M.contentType});if(w.B.flavor==="widevine")if(w.Cu&&!w.videoData.isLivePlayback)Gx(w);else{if(!(w.P3.D("vp9_drm_live")&&w.videoData.isLivePlayback&&M.R7)){w.Cu=!0;P=M.cryptoPeriodIndex;var u=M.B;Gmx(M);M.R7||(u&&M.B!==u?w.publish("ctmp","cpsmm", {emsg:u,pssh:M.B}):P&&M.cryptoPeriodIndex!==P&&w.publish("ctmp","cpimm",{emsg:P,pssh:M.cryptoPeriodIndex}));w.publish("widevine_set_need_key_info",M)}}else w.Wu(M)}}; rz1=function(w){if(!w.sO())if(w.P3.D("html5_drm_set_server_cert")||ul(w.B)){var M=w.X.setServerCertificate();M?M.then(sD(function(P){w.P3.FX()&&w.publish("ctmp","ssc",{success:P})}),sD(function(P){w.publish("ctmp","ssce",{n:P.name, m:P.message})})).then(sD(function(){tf_(w)})):tf_(w)}else tf_(w)}; tf_=function(w){w.sO()||(w.S=!0,w.rg({onmdkrdy:1}),Gx(w))}; xu_=function(w){return w.B.flavor==="widevine"&&w.videoData.D("html5_drm_cpi_license_key")}; Gx=function(w){if(w.eL&&w.S&&!w.ys){for(;w.C.length;){var M=w.C[0],P=xu_(w)?yLU(M):g.Yw(M.initData);if(ul(w.B)&&!M.L)w.C.shift();else{if(w.L.get(P))if(w.B.flavor!=="fairplay"||ul(w.B)){w.C.shift();continue}else w.L.delete(P);Gmx(M);break}}w.C.length&&w.createSession(w.C[0])}}; Ot_=function(w){var M;if(M=g.KB()){var P;M=!((P=w.X.L)==null||!P.getMetrics)}M&&(M=w.X.getMetrics())&&(M=g.ZE(M),w.publish("ctmp","drm",{metrics:M}))}; a_x=function(){var w=kNx();return!(!w||w==="visible")}; iKu=function(w){var M=wu2();M&&document.addEventListener(M,w,!1)}; MSR=function(w){var M=wu2();M&&document.removeEventListener(M,w,!1)}; wu2=function(){if(document.visibilityState)var w="visibilitychange";else{if(!document[hS+"VisibilityState"])return"";w=hS+"visibilitychange"}return w}; PBy=function(w){g.v.call(this);var M=this;this.fu=w;this.UX=0;this.K=this.L=this.G=!1;this.X=0;this.r$=this.fu.N();this.videoData=this.fu.getVideoData();this.C=g.Oh(this.r$.experiments,"html5_delayed_retry_count");this.B=new g.gV(function(){M.fu.Rd()},g.Oh(this.r$.experiments,"html5_delayed_retry_delay_ms")); g.b(this,this.B)}; fjl=function(w,M,P){var u=w.videoData.L,X=w.videoData.X,U=w.r$.D("html5_disable_codec_fallback_for_drm")&&w.videoData.d5();FM(w.fu.getVideoData())&&w.r$.D("html5_gapless_fallback_on_qoe_restart")&&WJy(w.fu,"pe");if((M==="progressive.net.retryexhausted"||M==="fmt.unplayable"||M==="fmt.decode")&&!w.fu.TC.G&&u&&u.itag==="22")return w.fu.TC.G=!0,w.vl("qoe.restart",{reason:"fmt.unplayable.22"}),w.fu.Pe(),!0;var f=!1;if(w.videoData.isExternallyHostedPodcast){if(f=w.videoData.d6$)P.mimeType=f.type,w.II("3pp", {url:f.url});P.ns="3pp";w.fu.WB(M,1,"VIDEO_UNAVAILABLE",WU((new g.hy(M,P,1)).details));return!0}var h=w.UX+3E4<(0,g.G$)()||w.B.isActive();if(w.r$.D("html5_empty_src")&&w.videoData.isAd()&&M==="fmt.unplayable"&&/Empty src/.test(""+P.msg))return P.origin="emptysrc",w.vl("auth",P),!0;h||uo5(w.fu.K$())||(P.nonfg="paused",h=!0,w.fu.pauseVideo());(M==="fmt.decode"||M==="fmt.unplayable")&&(X==null?0:e1(X)||BU(X))&&(Ma1(w.r$.G,X.zk),P.acfallexp=X.zk,f=h=!0);!h&&w.C>0&&(w.B.start(),h=!0,P.delayed="1",--w.C); X=w.fu.loader;h||!((u==null?0:L3(u))||(u==null?0:To(u)))||U||(Ma1(w.r$.G,u.zk),f=h=!0,P.cfallexp=u.zk);if(!h)return Xux(w,P);U=!1;w.G?w.UX=(0,g.G$)():U=w.G=!0;h=w.videoData;if(h.Yu){h=h.Yu.AJ();var c=Date.now()/1E3+1800;h=h6048E5&&ZK5(w,"signature");return!1}; ZK5=function(w,M){try{M={detail:"pr."+M},g.$3(w.r$)&&w.r$.D("html5_reload_by_kabuki_app")?w.fu.WB("qoe.restart",1,void 0,WU(M),"7"):(w.vl("qoe.restart",M),window.location.reload())}catch(P){}}; HKH=function(w,M){var P=w.r$.G;P.j=!1;P.L=!0;w.vl("qoe.restart",{e:M===void 0?"fmt.noneavailable":M,detail:"hdr"});w.fu.Rd(!0)}; pux=function(w,M,P,u,X,U){this.videoData=w;this.B=M;this.reason=P;this.L=u;this.token=X;this.videoId=U}; y3=function(w,M,P){this.P3=w;this.iZ=M;this.fu=P;this.V=this.K=this.B=this.X=this.j=this.L=0;this.G=!1;this.S=g.Oh(this.P3.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map}; E0l=function(w,M,P){!w.P3.D("html5_tv_ignore_capable_constraint")&&g.Z$(w.P3)&&(P=P.compose(FF_(w,M)));return P}; N0y=function(w){if(w.fu.K$().isInline())return P7;var M;w.D("html5_exponential_memory_for_sticky")?M=kI(w.P3.a7,"sticky-lifetime")<.5?"auto":qh[cL()]:M=qh[cL()];return g.G8("auto",M,!1,"s")}; mvx=function(w,M){var P,u=VSl(w,(P=M.B)==null?void 0:P.videoInfos);P=w.fu.getPlaybackRate();return P>1&&u?(w=OOz(w.P3.G,M.B.videoInfos,P),new oT(0,w,!0,"o")):new oT(0,0,!1,"o")}; VSl=function(w,M){return M&&g.Z$(w.P3)?M.some(function(P){return P.video.fps>32}):!1}; o0H=function(w,M){if(w.D("html5_disable_ustreamer_constraint_for_sabr")&&mC(M.videoData))return P7;var P=w.fu.Sy();w.D("html5_use_video_quality_cap_for_ustreamer_constraint")&&P&&P.AR>0&&DR(M.videoData.oW)&&(w=P.AR,M.videoData.oW=new oT(0,w,!1,"u"));return M.videoData.oW}; FF_=function(w,M){if(g.Z$(w.P3)&&vL(w.P3.G,sq.HEIGHT))var P=M.B.videoInfos[0].video.qualityOrdinal;else{var u=w.by(!!M.B.B);Ep(M.videoData)||iD(M.videoData);M=M.B.videoInfos;if(M.length){var X=g.Oh(w.P3.experiments,"html5_override_oversend_fraction")||.85,U=M[0].video;U.projectionType!=="MESH"&&U.projectionType!=="EQUIRECTANGULAR"&&U.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Au||(X=.45);w=g.Oh(w.P3.experiments,"html5_viewport_undersend_maximum");for(U=0;U0&&(P=Math.min(P,u));if(u=g.Oh(w.P3.experiments,"html5_max_vertical_resolution")){w=4320;for(X=0;Xu&&(w=Math.min(w,U.video.qualityOrdinal));if(w<4320){for(X=u=0;X32){X=!0;break a}}X=!1}X&&(P=Math.min(P,u));(u=g.Oh(w.P3.experiments,"html5_live_quality_cap"))&&M.videoData.isLivePlayback&&(P=Math.min(P,u));P=yeH(w,M,P);w=g.Oh(w.P3.experiments,"html5_byterate_soft_cap");return new oT(0,P===4320?0:P,!1,"d",w)}; qC4=function(w){var M,P,u,X;return g.n(function(U){switch(U.L){case 1:return w.B.B&&typeof((M=navigator.mediaCapabilities)==null?void 0:M.decodingInfo)==="function"?g.B(U,Promise.resolve(),2):U.return(Promise.resolve());case 2:P=g.G(w.B.videoInfos),u=P.next();case 3:if(u.done){U.M0(0);break}X=u.value;return g.B(U,e34(X),4);case 4:u=P.next(),U.M0(3)}})}; ziF=function(w,M){if(!M.videoData.L||w.D("html5_disable_performance_downgrade"))return!1;Date.now()-w.j>6E4&&(w.L=0);w.L++;w.j=Date.now();if(w.L!==4)return!1;YC1(w,M.videoData.L);return!0}; dv_=function(w,M,P,u){if(!M||!P||!M.videoData.L)return!1;var X=g.Oh(w.P3.experiments,"html5_df_downgrade_thresh"),U=w.D("html5_log_media_perf_info");if(!((0,g.G$)()-w.X<5E3?0:U||X>0))return!1;var f=((0,g.G$)()-w.X)/1E3;w.X=(0,g.G$)();P=P.getVideoPlaybackQuality();if(!P)return!1;var h=P.droppedVideoFrames-w.K,c=P.totalVideoFrames-w.V;w.K=P.droppedVideoFrames;w.V=P.totalVideoFrames;var Z=P.displayCompositedVideoFrames===0?0:P.displayCompositedVideoFrames||-1;U&&w.P3.FX()&&w.fu.II("ddf",{dr:P.droppedVideoFrames, de:P.totalVideoFrames,comp:Z});if(u)return w.B=0,!1;if((c-h)/f>w.S||!X||g.Z$(w.P3))return!1;w.B=(c>60?h/c:0)>X?w.B+1:0;if(w.B!==3)return!1;YC1(w,M.videoData.L);w.fu.II("dfd",Object.assign({dr:P.droppedVideoFrames,de:P.totalVideoFrames},T0u()));return!0}; YC1=function(w,M){var P=M.zk,u=M.video.fps,X=M.video.qualityOrdinal-1,U=w.C;M=""+P+(u>49?"p60":u>32?"p48":"");P=tL(P,u,U);X>0&&(P=Math.min(P,X));if(!Dj.has(M)&&HL().includes(M)){var f=P;P=SB();+P[M]>0&&(f=Math.min(+P[M],f));P[M]!==f&&(P[M]=f,g.Tg("yt-player-performance-cap",P,2592E3))}else if(Dj.has(M)||U==null){a:{f=f===void 0?!0:f;u=HL().slice();if(f){if(u.includes(M))break a;u.push(M)}else{if(!u.includes(M))break a;u.splice(u.indexOf(M),1)}g.Tg("yt-player-performance-cap-active-set",u,2592E3)}CM.set(M, P)}else Dj.add(M),U==null||U.set(M,P);w.fu.yn()}; ljl=function(w,M){if(!M.B.B)return w.G?new oT(0,360,!1,"b"):P7;for(var P=!1,u=!1,X=g.G(M.B.videoInfos),U=X.next();!U.done;U=X.next())L3(U.value)?P=!0:u=!0;P=P&&u;u=0;X=g.Oh(w.P3.experiments,"html5_performance_cap_floor");X=w.P3.L?240:X;M=g.G(M.B.videoInfos);for(U=M.next();!U.done;U=M.next()){var f=U.value;if(!P||!L3(f))if(U=tL(f.zk,f.video.fps,w.C),f=f.video.qualityOrdinal,Math.max(U,X)>=f){u=f;break}}return new oT(0,u,!1,"b")}; LF_=function(w,M){var P=w.fu.K$();return P.isInline()&&!M.eR?new oT(0,480,!1,"v"):mC(M)?P7:P.isBackground()&&NW()/1E3>60&&!g.Z$(w.P3)?new oT(0,360,!1,"v"):P7}; eiz=function(w,M,P){if(w.P3.experiments.nu("html5_disable_client_autonav_cap_for_onesie")&&M.fetchType==="onesie"||g.Z$(w.P3)&&(cL(-1)>=1080||M.osid))return P7;var u=g.Oh(w.P3.experiments,"html5_autonav_quality_cap"),X=g.Oh(w.P3.experiments,"html5_autonav_cap_idle_secs");return u&&M.isAutonav&&NW()/1E3>X?(P&&(u=yeH(w,P,u)),new oT(0,u,!1,"e")):P7}; yeH=function(w,M,P){if(w.D("html5_optimality_defaults_chooses_next_higher")&&P)for(w=M.B.videoInfos,M=1;M=0||(w.provider.fu.getVisibilityState()===3?w.G=!0:(w.B=g.$0(w.provider),w.delay.start()))}; kxl=function(w){if(!(w.L<0)){var M=g.$0(w.provider),P=M-w.X;w.X=M;w.playerState.state===8?w.playTimeSecs+=P:w.playerState.isBuffering()&&!g.C(w.playerState,16)&&(w.rebufferTimeSecs+=P)}}; Riu=function(w){var M;switch((M=w.P3.playerCanaryStage)==null?void 0:M.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"}}; n02=function(w){this.provider=w;this.j=!1;this.B=0;this.X=-1;this.Cp=NaN;this.C=0;this.segments=[];this.K=this.G=0;this.previouslyEnded=!1;this.S=this.provider.fu.getVolume();this.V=this.provider.fu.isMuted()?1:0;this.L=Y0(this.provider)}; zx=function(w){w.L.startTime=w.C;w.L.endTime=w.B;var M=!1;w.segments.length&&g.FE(w.segments).isEmpty()?(w.segments[w.segments.length-1].previouslyEnded&&(w.L.previouslyEnded=!0),w.segments[w.segments.length-1]=w.L,M=!0):w.segments.length&&w.L.isEmpty()||(w.segments.push(w.L),M=!0);M?w.L.endTime===0&&(w.previouslyEnded=!1):w.L.previouslyEnded&&(w.previouslyEnded=!0);w.G+=w.B-w.C;w.L=Y0(w.provider);w.L.previouslyEnded=w.previouslyEnded;w.previouslyEnded=!1;w.C=w.B}; srM=function(w){v0U(w);w.K=g.ZK(function(){w.update()},100); w.Cp=g.$0(w.provider);w.L=Y0(w.provider)}; v0U=function(w){g.HF(w.K);w.K=NaN}; KF4=function(w,M,P){P-=w.Cp;return M===w.B&&P>.5}; bK5=function(w,M,P,u){this.P3=M;this.QE=P;this.segments=[];this.experimentIds=[];this.Yu=this.GE=this.isFinal=this.delayThresholdMet=this.M7=this.KT=this.autoplay=this.autonav=!1;this.TE="yt";this.K=[];this.j=this.S=null;this.sendVisitorIdHeader=this.jL=!1;this.V=this.pageId="";this.G=P==="watchtime";this.C=P==="playback";this.ys=P==="atr";this.nV=P==="engage";this.sendVisitorIdHeader=!1;this.uri=this.ys?"/api/stats/"+P:"//"+M.RO+"/api/stats/"+P;u&&(this.GE=u.fs,u.rtn&&(this.j=u.rtn),this.G?(this.playerState= u.state,u.rti>0&&(this.S=u.rti)):(this.wb=u.mos,this.kD=u.volume,u.at&&(this.adType=u.at)),u.autonav&&(this.autonav=u.autonav),u.inview!=null&&(this.sb=u.inview),u.size&&(this.VE=u.size),u.playerwidth&&(this.gb=u.playerwidth),u.playerheight&&(this.Kx=u.playerheight));this.rB=g.Fm(M.B);this.V=HM(M.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.V==="all"||this.V==="once")this.hD=g.Fm(M.hD);this.QL=M.VE;this.experimentIds=jNx(M.experiments);this.t9=M.SZ;this.TE=M.B3;this.region=M.region; this.userAge=M.userAge;this.Z3=M.Bb;this.Ob=NW();this.sendVisitorIdHeader=M.sendVisitorIdHeader;this.Cu=M.D("vss_pings_using_networkless")||M.D("kevlar_woffle");this.jU=M.D("vss_final_ping_send_and_write");this.xu=M.D("vss_use_send_and_write");this.pageId=M.pageId;this.TD=M.D("vss_playback_use_send_and_write");M.livingRoomAppMode&&(this.livingRoomAppMode=M.livingRoomAppMode);this.a7=M.X&&M.D("embeds_append_synth_ch_headers");g.K7(M)&&(this.eL=M.ys);g.$F(g.tu(M))&&this.K.push(1);this.accessToken=g.Op(w); w.PC[this.QE]?this.X=w.PC[this.QE]:w.PC.playback&&(this.X=w.PC.playback);this.adFormat=w.adFormat;this.adQueryId=w.adQueryId;this.autoplay=d$y(w);this.C&&(this.KT=w.VJ&&jx(w)==="adunit"?!0:!1);this.autonav=w.isAutonav||this.autonav;this.contentVideoId=tM(w);this.clientPlaybackNonce=w.clientPlaybackNonce;this.M7=w.Ym;w.K&&(this.Lu=w.K,this.fg=w.Z8);w.mdxEnvironment&&(this.mdxEnvironment=w.mdxEnvironment);this.B=w.TE;this.cj=w.cj;w.L&&(this.SZ=w.L.itag,w.X&&w.X.itag!==this.SZ&&(this.bW=w.X.itag));w.B&& lW(w.B)&&(this.offlineDownloadUserChoice="1");this.eventLabel=jx(w);this.Yu=w.TD?!1:w.kD;this.DO=w.vV;if(M=QN(w))this.pV=M;this.Lx=w.x3;this.partnerId=w.partnerId;this.eventId=w.eventId;this.playlistId=w.pB||w.playlistId;this.nK=w.nK;this.f6=w.f6;this.wk=w.wk;this.kT=w.kT;this.subscribed=w.subscribed;this.videoId=w.videoId;this.videoMetadata=w.videoMetadata;this.visitorData=w.visitorData;this.osid=w.osid;this.FO=w.FO;this.referrer=w.referrer;this.ET=w.AN||w.ET;this.iW=w.D1;this.sD=w.sD;this.userGenderAge= w.userGenderAge;this.Rc=w.Rc;this.embedsRct=w.embedsRct;this.embedsRctn=w.embedsRctn;g.K7(this.P3)&&w.mutedAutoplay&&(w.mutedAutoplayDurationMode===2&&w.limitedPlaybackDurationInSeconds===0&&w.endSeconds===0?this.K.push(7):this.K.push(2));w.isEmbedsShortsMode(new g.rq(this.gb,this.Kx),!!this.playlistId)&&this.K.push(3);g.h$(w)&&this.K.push(4);this.OO=w.hj;w.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=w.compositeLiveIngestionOffsetToken)}; IjH=function(w,M){var P=w.sendVisitorIdHeader?w.visitorData:void 0;return g.E_(w.P3,w.accessToken).then(function(u){return rMU(w.uri,w.P3,w.pageId,P,u,M,w.a7)})}; JeU=function(w,M){return function(){w.P3.D("html5_simplify_pings")?(w.B=w.UO,w.DX=M(),w.Ob=0,w.send()):IjH(w).then(function(P){var u=Aez(w);u.cmt=u.len;u.lact="0";var X=M().toFixed(3);u.rt=Number(X).toString();u=g.p5(w.uri,u);w.P3.D("vss_through_gel_double")&&g0l(u);w.Cu?(P==null&&(P={}),w.xu?bv().sendAndWrite(u,P):bv().sendThenWrite(u,P)):P?g.o1(u,P):g.Ld(u)})}}; Aez=function(w){var M={ns:w.TE,el:w.eventLabel,cpn:w.clientPlaybackNonce,ver:2,cmt:w.L(w.B),fmt:w.SZ,fs:w.GE?"1":"0",rt:w.L(w.DX),adformat:w.adFormat,content_v:w.contentVideoId,euri:w.QL,lact:w.Ob,live:w.pV,cl:(777370830).toString(),mos:w.wb,state:w.playerState,volume:w.kD};w.subscribed&&(M.subscribed="1");Object.assign(M,w.rB);w.V==="all"?Object.assign(M,w.hD):w.V==="once"&&w.C&&Object.assign(M,w.hD);w.autoplay&&(M.autoplay="1");w.KT&&(M.sautoplay="1");w.M7&&(M.dni="1");!w.G&&w.eL&&(M.epm=rey[w.eL]); w.isFinal&&(M["final"]="1");w.Yu&&(M.splay="1");w.cj&&(M.delay=w.cj);w.t9&&(M.hl=w.t9);w.region&&(M.cr=w.region);w.userGenderAge&&(M.uga=w.userGenderAge);w.userAge!==void 0&&w.Z3&&(M.uga=w.Z3+w.userAge);w.UO!==void 0&&(M.len=w.L(w.UO));!w.G&&w.experimentIds.length>0&&(M.fexp=w.experimentIds.toString());w.j!==null&&(M.rtn=w.L(w.j));w.ET&&(M.feature=w.ET);w.f6&&(M.ctrl=w.f6);w.wk&&(M.ytr=w.wk);w.bW&&(M.afmt=w.bW);w.offlineDownloadUserChoice&&(M.ODUC=w.offlineDownloadUserChoice);w.B3&&(M.lio=w.L(w.B3)); w.G?(M.idpj=w.DO,M.ldpj=w.Lx,w.delayThresholdMet&&(M.dtm="1"),w.S!=null&&(M.rti=w.L(w.S)),w.Rc&&(M.ald=w.Rc),w.compositeLiveIngestionOffsetToken&&(M.clio=w.compositeLiveIngestionOffsetToken)):w.adType!==void 0&&(M.at=w.adType);w.VE&&(w.C||w.G)&&(M.size=w.VE);w.C&&w.K.length&&(M.pbstyle=w.K.join(","));w.sb!=null&&(w.C||w.G)&&(M.inview=w.L(w.sb));w.G&&(M.volume=Tx(w,g.EV(w.segments,function(u){return u.volume})),M.st=Tx(w,g.EV(w.segments,function(u){return u.startTime})),M.et=Tx(w,g.EV(w.segments,function(u){return u.endTime})), K5(w.segments,function(u){return u.playbackRate!==1})&&(M.rate=Tx(w,g.EV(w.segments,function(u){return u.playbackRate}))),K5(w.segments,function(u){return u.B!=="-"})&&(M.als=g.EV(w.segments,function(u){return u.B}).join(",")),K5(w.segments,function(u){return u.previouslyEnded})&&(M.pe=g.EV(w.segments,function(u){return""+ +u.previouslyEnded}).join(","))); M.muted=Tx(w,g.EV(w.segments,function(u){return u.muted?1:0})); K5(w.segments,function(u){return u.visibilityState!==0})&&(M.vis=Tx(w,g.EV(w.segments,function(u){return u.visibilityState}))); K5(w.segments,function(u){return u.connectionType!==0})&&(M.conn=Tx(w,g.EV(w.segments,function(u){return u.connectionType}))); K5(w.segments,function(u){return u.L!==0})&&(M.blo=Tx(w,g.EV(w.segments,function(u){return u.L}))); K5(w.segments,function(u){return!!u.C})&&(M.blo=g.EV(w.segments,function(u){return u.C}).join(",")); K5(w.segments,function(u){return!!u.compositeLiveStatusToken})&&(M.cbs=g.EV(w.segments,function(u){return u.compositeLiveStatusToken}).join(",")); K5(w.segments,function(u){return u.X!=="-"})&&(M.cc=g.EV(w.segments,function(u){return u.X}).join(",")); K5(w.segments,function(u){return u.clipId!=="-"})&&(M.clipid=g.EV(w.segments,function(u){return u.clipId}).join(",")); if(K5(w.segments,function(u){return!!u.audioId})){var P="au"; w.C&&(P="au_d");M[P]=g.EV(w.segments,function(u){return u.audioId}).join(",")}uL()&&w.Lu&&(M.ctt=w.Lu,M.cttype=w.fg,M.mdx_environment=w.mdxEnvironment); w.nV&&(M.etype=w.mN!==void 0?w.mN:0);w.iW&&(M.uoo=w.iW);w.livingRoomAppMode&&w.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(M.clram=jrM[w.livingRoomAppMode]||w.livingRoomAppMode);w.X?CBy(w,M):(M.docid=w.videoId,M.referrer=w.referrer,M.ei=w.eventId,M.of=w.FO,M.osid=w.osid,M.vm=w.videoMetadata,w.adQueryId&&(M.aqi=w.adQueryId),w.autonav&&(M.autonav="1"),w.playlistId&&(M.list=w.playlistId),w.kT&&(M.ssrt="1"),w.sD&&(M.upt=w.sD));w.C&&(w.embedsRct&&(M.rct=w.embedsRct),w.embedsRctn&&(M.rctn= w.embedsRctn),w.compositeLiveIngestionOffsetToken&&(M.clio=w.compositeLiveIngestionOffsetToken));w.OO&&(M.host_cpn=w.OO);return M}; CBy=function(w,M){if(M&&w.X){var P=new Set(["q","feature","mos"]),u=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),X=new Set(["aqi","autonav","list","ssrt","upt"]);w.X.ns==="3pp"&&(M.ns="3pp");for(var U=g.G(Object.keys(w.X)),f=U.next();!f.done;f=U.next())f=f.value,u.has(f)||P.has(f)||X.has(f)&&!w.X[f]||(M[f]=w.X[f])}}; Tx=function(w,M){return g.EV(M,w.L).join(",")}; g0l=function(w){w.indexOf("watchtime")!==-1&&g.ub("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:w}})}; tSM=function(w,M){w.attestationResponse&&IjH(w).then(function(P){P=P||{};P.method="POST";P.postParams={atr:w.attestationResponse};w.Cu?w.xu?bv().sendAndWrite(M,P):bv().sendThenWrite(M,P):g.o1(M,P)})}; d0=function(w){g.v.call(this);this.provider=w;this.K="paused";this.G=NaN;this.j=[10,10,10,40];this.S=this.V=0;this.Lu=this.ys=this.mN=this.B3=this.C=!1;this.L=this.X=NaN;this.logger=new g.pM("vss");this.B=new n02(w)}; iJF=function(w){if(!w.C){w.provider.videoData.JY===16623&&g.Yq(Error("Playback for EmbedPage"));var M=lB(w,"playback");w.j=xvu(w);srM(w.B);M.j=LK(w);w.L>0&&(M.B-=w.L);M.send();if(w.provider.videoData.O7){M=w.provider.P3;var P=w.provider.videoData,u={html5:"1",video_id:P.videoId,cpn:P.clientPlaybackNonce,ei:P.eventId,ptk:P.O7,oid:P.f_,ptchn:P.Pd,pltype:P.Bd,content_v:tM(P)};P.kO&&Object.assign(u,{m:P.kO});M=g.p5(M.GJ+"ptracking",u);OKz(w,M)}w.provider.videoData.cj||(ajR(w),w6z(w));w.C=!0;w=w.B;w.B= w.Ap();w.Cp=g.$0(w.provider);!(w.C===0&&w.B<5)&&w.B-w.C>2&&(w.C=w.B);w.j=!0}}; xvu=function(w){var M=w.provider.videoData.vV,P=w.provider.videoData.x3,u=[10+M,10,10,40+P-M,40],X,U=(X=w.provider.videoData.getPlayerResponse())==null?void 0:X.playbackTracking,f=U==null?void 0:U.videostatsScheduledFlushWalltimeSeconds;X=U==null?void 0:U.videostatsDefaultFlushIntervalSeconds;if(!(f&&f.length>0&&X))return w.logger.info("Missing valid scheduled pings config "+f+" "+X),u;M=[f[0]+M].concat(g.L(f.slice(1).map(function(h,c){return h-f[c]})),[X+P-M, X]);return M.some(function(h){return h<0})?(w.logger.B(347111855,"Neg vss scheduled pings "+f+" "+X),u):M}; LK=function(w,M){M=M===void 0?NaN:M;var P=g.$0(w.provider);M=isNaN(M)?P:M;M=Math.ceil(M);var u=w.j[w.V];w.V+11E3;!(U.length>1)&&U[0].isEmpty()||h||(f.j=LK(w,X));f.send();w.S++}},(X-P)*1E3); return w.X=X}; eS=function(w){g.S9(w.G);w.G=NaN}; M81=function(w){w.B.update();w=w.B;w.segments.length&&w.B===w.C||zx(w);var M=w.segments;w.segments=[];return M}; lB=function(w,M){var P=uBH(w.provider);Object.assign(P,{state:w.K});M=new bK5(w.provider.videoData,w.provider.P3,M,P);M.B=w.provider.fu.Ap();P=w.provider.videoData.clientPlaybackNonce;M.B=w.provider.fu.wF(P);w.provider.videoData.isLivePlayback||(M.UO=w.provider.fu.getDuration(P));w.provider.videoData.B&&(P=w.provider.videoData.B.Ls(M.B))&&(M.B3=P-M.B,w.provider.P3.D("html5_disable_live_dvr_shrink_for_cdm_vss")&&VN(w.provider.videoData)&&(M.B+=w.provider.fu.OF(),M.B3-=w.provider.fu.OF()));M.DX=g.$0(w.provider); M.segments=[Y0(w.provider)];return M}; PG2=function(w,M){var P=lB(w,"watchtime");X6R(w)&&(P.delayThresholdMet=!0,w.mN=!0);if(w.L>0){for(var u=g.G(M),X=u.next();!X.done;X=u.next())X=X.value,X.startTime-=w.L,X.endTime-=w.L;P.B-=w.L}else P.B=w.B.B;P.segments=M;return P}; Bu=function(w,M){var P=$FM(w,!isNaN(w.X));M&&(w.X=NaN);return P}; $FM=function(w,M){var P=PG2(w,M81(w));!isNaN(w.X)&&M&&(P.S=w.X);return P}; X6R=function(w){var M;if(M=w.provider.videoData.isLoaded()&&w.provider.videoData.cj&&w.C&&!w.mN)M=w.B,M=M.G+M.Ap()-M.C>=w.provider.videoData.cj;return!!M}; ajR=function(w){w.provider.videoData.youtubeRemarketingUrl&&!w.ys&&(OKz(w,w.provider.videoData.youtubeRemarketingUrl),w.ys=!0)}; w6z=function(w){w.provider.videoData.googleRemarketingUrl&&!w.Lu&&(OKz(w,w.provider.videoData.googleRemarketingUrl),w.Lu=!0)}; UFl=function(w){if(!w.sO()&&w.C){w.K="paused";var M=Bu(w);M.isFinal=!0;M.send();w.dispose()}}; f6l=function(w,M){if(!w.sO())if(g.C(M.state,2)||g.C(M.state,512)){if(w.K="paused",g.fW(M,2)||g.fW(M,512))g.fW(M,2)&&(w.B.previouslyEnded=!0),w.C&&(eS(w),Bu(w).send(),w.X=NaN)}else if(g.C(M.state,8)){w.K="playing";var P=w.C&&isNaN(w.G)?LK(w):NaN;if(!isNaN(P)&&(Ug(M,64)<0||Ug(M,512)<0)){var u=$FM(w,!1);u.j=P;u.send()}g.fW(M,16)&&M.state.seekSource===58&&(w.B.previouslyEnded=!0)}else w.K="paused"}; WgM=function(w,M,P){if(!w.B3){P||(P=lB(w,"atr"));P.attestationResponse=M;try{P.send()}catch(u){if(u.message!=="Unknown Error")throw u;}w.B3=!0}}; OKz=function(w,M){var P=w.provider.P3;g.E_(w.provider.P3,g.Op(w.provider.videoData)).then(function(u){var X=w.provider.P3.pageId,U=w.provider.P3.sendVisitorIdHeader?w.provider.videoData.visitorData:void 0,f=w.provider.P3.D("vss_pings_using_networkless")||w.provider.P3.D("kevlar_woffle"),h=w.provider.P3.D("allow_skip_networkless");u=rMU(M,P,X,U,u);jIx(M,u,{token:w.provider.videoData.K,s2:w.provider.videoData.Z8,mdxEnvironment:w.provider.videoData.mdxEnvironment},P,void 0,f&&!h,!1,!0)})}; hVF=function(){this.endTime=this.startTime=-1;this.X="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.L=0;this.compositeLiveStatusToken=this.C=void 0;this.volume=this.connectionType=0;this.muted=!1;this.B=this.clipId="-";this.previouslyEnded=!1}; Q3=function(w,M,P){this.videoData=w;this.P3=M;this.fu=P;this.B=void 0}; g.$0=function(w){return c9R(w)()}; c9R=function(w){if(!w.B){var M=g.Wa(function(u){var X=(0,g.G$)();u&&X<=631152E6&&(w.fu.II("ytnerror",{issue:28799967,value:""+X}),X=(new Date).getTime()+2);return X},w.P3.D("html5_validate_yt_now")),P=M(); w.B=function(){return Math.round(M()-P)/1E3}; w.fu.DE()}return w.B}; uBH=function(w){var M=w.fu.VS()||{};M.fs=w.fu.I4();M.volume=w.fu.getVolume();M.muted=w.fu.isMuted()?1:0;M.mos=M.muted;M.clipid=w.fu.aq();var P;M.playerheight=((P=w.fu.getPlayerSize())==null?void 0:P.height)||0;var u;M.playerwidth=((u=w.fu.getPlayerSize())==null?void 0:u.width)||0;w=w.videoData;P={};w.L&&(P.fmt=w.L.itag,w.X&&(w.QE?w.X.itag!==w.L.itag:w.X.itag!=w.L.itag)&&(P.afmt=w.X.itag));P.ei=w.eventId;P.list=w.playlistId;P.cpn=w.clientPlaybackNonce;w.videoId&&(P.v=w.videoId);w.nN&&(P.infringe=1); (w.TD?0:w.kD)&&(P.splay=1);(u=QN(w))&&(P.live=u);w.VJ&&(P.sautoplay=1);w.cZ&&(P.autoplay=1);w.nK&&(P.sdetail=w.nK);w.partnerId&&(P.partnerid=w.partnerId);w.osid&&(P.osid=w.osid);w.A_&&(P.cc=g.i8u(w.A_));return Object.assign(M,P)}; uOM=function(w){var M=TC4();if(M)return ZJ_[M]||ZJ_.other;if(g.Z$(w.P3)){w=navigator.userAgent;if(/[Ww]ireless[)]/.test(w))return 3;if(/[Ww]ired[)]/.test(w))return 30}return 0}; Y0=function(w){var M=new hVF,P;M.X=((P=uBH(w).cc)==null?void 0:P.toString())||"-";M.playbackRate=w.fu.getPlaybackRate();P=w.fu.getVisibilityState();P!==0&&(M.visibilityState=P);w.P3.bW&&(M.L=1);M.C=w.videoData.bu;M.compositeLiveStatusToken=w.videoData.compositeLiveStatusToken;P=w.fu.getAudioTrack();P.Y2&&P.Y2.id&&P.Y2.id!=="und"&&(M.audioId=P.Y2.id);M.connectionType=uOM(w);M.volume=w.fu.getVolume();M.muted=w.fu.isMuted();M.clipId=w.fu.aq()||"-";M.B=w.videoData.DJ||"-";return M}; g.k0=function(w,M){g.v.call(this);var P=this;this.provider=w;this.C=new Map;this.zt=new g.EH;this.yH={peL:function(){return P.qoe}, ess:function(){return P.B}, n$$:function(){return P.L}}; this.provider.videoData.Nf()&&!this.provider.videoData.At&&(this.B=new d0(this.provider),this.B.L=0,g.b(this,this.B),this.qoe=new g.uB(this.provider,M),g.b(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Pb=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.Pb,this.B));if(w.P3.playerCanaryState==="canary"||w.P3.playerCanaryState==="holdback")this.L=new qv(this.provider),g.b(this,this.L)}; SeU=function(w){w.L&&Qrl(w.L);w.qoe&&H$l(w.qoe)}; HJ5=function(w){if(w.qoe){w=w.qoe;for(var M=w.provider.videoData,P=w.provider.P3,u=g.G(P.dk),X=u.next();!X.done;X=u.next())fK(w,X.value);if(w.provider.D("html5_enable_qoe_cat_list"))for(u=g.G(M.vC),X=u.next();!X.done;X=u.next())fK(w,X.value);else M.dk&&fK(w,w.provider.videoData.dk);M.dK()&&(u=M.B,qI(M)&&fK(w,"manifestless"),u&&bq(u)&&fK(w,"live-segment-"+bq(u).toFixed(1)));mC(M)?fK(w,"sabr"):w.i5(T3(M));if(aI(M)||M.VH())M.VH()&&fK(w,"ssa"),fK(w,"lifa");VN(M)&&fK(w,"cdm");M.gatewayExperimentGroup&& (u=M.gatewayExperimentGroup,u==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?u="spkadtrt":u==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(u="spkadctrl"),fK(w,u));P.B3!=="yt"&&w.B.set("len",[M.lengthSeconds.toFixed(2)]);M.cotn&&!iD(M)&&w.QK(!0);P.FX()&&(M=i$y())&&w.II("cblt",{m:M});if(P.D("html5_log_screen_diagonal")){P=w.II;var U;M=((U=window.H5vccScreen)==null?0:U.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;P.call(w,"cbltdiag",{v:M})}}}; p6R=function(w,M){w.B&&(w=w.B,M===58?w.B.update():w.C&&(eS(w),Bu(w).send(),w.X=NaN))}; Fgp=function(w,M){if(g.fW(M,1024)||g.fW(M,512)||g.fW(M,4)){if(w.L){var P=w.L;P.L>=0||(P.B=-1,P.delay.stop())}w.qoe&&(P=w.qoe,P.j||(P.C=-1))}if(w.provider.videoData.enableServerStitchedDai&&w.Pb){var u;(u=w.C.get(w.Pb))==null||f6l(u,M)}else w.B&&f6l(w.B,M);if(w.qoe){u=w.qoe;P=M.state;var X=g.$0(u.provider),U=u.getPlayerState(P),f=P.seekSource||void 0;if(U!==u.zt){u.mN||X= 10&&u.playTimeSecs<=180&&(u.B.set("qoealert",["1"]),u.cj=!0)),U!=="B"||u.zt!=="PL"&&u.zt!=="PB"||(u.isBuffering=!0),u.L=X);u.zt==="PL"&&(U==="B"||U==="S")||u.provider.P3.FX()?UC(u,X):(u.fg||U!=="PL"||(u.fg=!0,XVU(u,X,u.provider.fu.j$())),PD_(u,X));U==="PL"&&g.JK(u.DX);var h=[U];U==="S"&&f&&h.push("ss."+f);g.Pu(u,X,"vps",h);u.zt=U;u.B3=X;u.L=X;u.X=!0}U=P.tV;g.C(P,128)&&U&&(U.OZ=U.OZ||"",WBx(u,X,U.errorCode,U.nQ,U.OZ));(g.C(P,2)||g.C(P,128))&&u.reportStats(X);P.isPlaying()&&!u.j&&(u.C>=0&&u.B.set("user_intent", [u.C.toString()]),u.j=!0);UlF(u)}w.L&&(w=w.L,kxl(w),w.playerState=M.state,w.L>=0&&g.fW(M,16)&&w.seekCount++,M.state.isError()&&w.send())}; EAF=function(w){w.L&&w.L.send();if(w.qoe){var M=w.qoe;if(M.X){M.zt==="PL"&&(M.zt="N");var P=g.$0(M.provider);g.Pu(M,P,"vps",[M.zt]);M.j||(M.C>=0&&M.B.set("user_intent",[M.C.toString()]),M.j=!0);M.provider.P3.FX()&&M.II("finalized",{});M.Cu=!0;M.reportStats(P)}}if(w.provider.videoData.enableServerStitchedDai)for(M=g.G(w.C.values()),P=M.next();!P.done;P=M.next())UFl(P.value);else w.B&&UFl(w.B);w.dispose()}; NhU=function(w,M){w.B&&WgM(w.B,M)}; V8y=function(w){if(!w.B)return null;var M=lB(w.B,"atr");return function(P){w.B&&WgM(w.B,P,M)}}; mF4=function(w,M,P,u){P.adFormat=P.QL;var X=M.fu;M=new d0(new Q3(P,M.P3,{getDuration:function(){return P.lengthSeconds}, getCurrentTime:function(){return X.getCurrentTime()}, Ap:function(){return X.Ap()}, wF:function(){return X.wF()}, j$:function(){return X.j$()}, getPlayerSize:function(){return X.getPlayerSize()}, getAudioTrack:function(){return P.getAudioTrack()}, getPlaybackRate:function(){return X.getPlaybackRate()}, VF:function(){return X.VF()}, getVisibilityState:function(){return X.getVisibilityState()}, Li:function(){return X.Li()}, VS:function(){return X.VS()}, getVolume:function(){return X.getVolume()}, isMuted:function(){return X.isMuted()}, I4:function(){return X.I4()}, aq:function(){return X.aq()}, getProximaLatencyPreference:function(){return X.getProximaLatencyPreference()}, DE:function(){X.DE()}, II:function(U,f){X.II(U,f)}, De:function(){return X.De()}, OF:function(){return X.OF()}})); M.L=u;g.b(w,M);return M}; oAz=function(){this.i_=0;this.C=this.qO=this.z2=this.L=NaN;this.B={};this.bandwidthEstimate=NaN}; GTy=function(){this.B=g.IB;this.array=[]}; DF2=function(w,M,P){var u=[];for(M=y9z(w,M);MP)break}return u}; qe_=function(w,M){var P=[];w=g.G(w.array);for(var u=w.next();!u.done&&!(u=u.value,u.contains(M)&&P.push(u),u.start>M);u=w.next());return P}; YeH=function(w){return w.array.slice(y9z(w,0x7ffffffffffff),w.array.length)}; y9z=function(w,M){w=Ax(w.array,function(P){return M-P.start||1}); return w<0?-(w+1):w}; zV_=function(w,M){var P=NaN;w=g.G(w.array);for(var u=w.next();!u.done;u=w.next())if(u=u.value,u.contains(M)&&(isNaN(P)||u.endM&&(isNaN(P)||u.startw.mediaTime+w.G&&M1)w.X=!0;if((X===void 0?0:X)||isNaN(w.L))w.L=M;if(w.B)M!==w.mediaTime&&(w.B=!1);else if(M>0&&w.mediaTime===M){X=1500;if(w.P3.D("html5_buffer_underrun_transition_fix")){X=g.Oh(w.P3.experiments,"html5_min_playback_advance_for_steady_state_secs");var U=g.Oh(w.P3.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");X=X>0&&U>0&&Math.abs(M-w.L)(u||!w.X?X:400)}w.mediaTime=M;w.C=P;return!1}; nA2=function(w,M){this.videoData=w;this.B=M}; vAx=function(w,M,P){return M.Bt(P).then(function(){return TZ(new nA2(M,M.C))},function(u){u instanceof Error&&g.Yq(u); var X=HU('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),U=Fi('audio/mp4; codecs="mp4a.40.2"'),f=X||U,h=M.isLivePlayback&&!g.Ek(w.G,!0);u="fmt.noneavailable";h?u="html5.unsupportedlive":f||(u="html5.missingapi");f=h||!f?2:1;X={buildRej:"1",a:M.Fl(),d:!!M.VE,drm:M.d5(),f18:M.wb.indexOf("itag=18")>=0,c18:X};M.B&&(M.d5()?(X.f142=!!M.B.B["142"],X.f149=!!M.B.B["149"],X.f279=!!M.B.B["279"]):(X.f133=!!M.B.B["133"],X.f140=!!M.B.B["140"],X.f242=!!M.B.B["242"]),X.cAAC=U,X.cAVC=Fi('video/mp4; codecs="avc1.42001E"'), X.cVP9=Fi('video/webm; codecs="vp9"'));M.G&&(X.drmsys=M.G.keySystem,U=0,M.G.B&&(U=Object.keys(M.G.B).length),X.drmst=U);return new g.hy(u,X,f)})}; vu=function(w){this.data=window.Float32Array?new Float32Array(w):Array(w);this.L=this.B=w-1}; ssF=function(w){return w.data[w.B]||0}; Kg2=function(w){this.G=w;this.C=this.L=0;this.X=new vu(50)}; KK=function(w,M,P){g.wC.call(this);this.videoData=w;this.experiments=M;this.G=P;this.L=[];this.S8=0;this.C=!0;this.X=!1;this.K=0;P=new bJx;w.latencyClass==="ULTRALOW"&&(P.K=!1);w.Z3?P.C=3:g.sp(w)&&(P.C=2);w.latencyClass==="NORMAL"&&(P.G=!0);P.B3=mC(w)&&M.nu("html5_refactor_decouple_liveness");g.Oh(M,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.Oh(M,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||w.latencyClass!=="LOW"&&w.latencyClass!=="ULTRALOW"||(P.G=!0);var u= g.Oh(M,"html5_liveness_drift_proxima_override");if(T3(w)!==0&&u){P.B=u;var X;((X=w.B)==null?0:cO1(X))&&P.B--}mC(w)&&M.nu("html5_sabr_parse_live_metadata_playback_boundaries")&&(P.Lu=!0);if(g.vF("trident/")||g.vF("edge/"))X=g.Oh(M,"html5_platform_minimum_readahead_seconds")||3,P.X=Math.max(P.X,X);g.Oh(M,"html5_minimum_readahead_seconds")&&(P.X=g.Oh(M,"html5_minimum_readahead_seconds"));g.Oh(M,"html5_maximum_readahead_seconds")&&(P.S=g.Oh(M,"html5_maximum_readahead_seconds"));M.nu("html5_force_adaptive_readahead")&& (P.K=!0);if(X=g.Oh(M,"html5_liveness_drift_chunk_override"))P.B=X;Yp(w)&&(P.B=(P.B+1)/5,w.latencyClass==="LOW"&&(P.B*=2));!mC(w)||w.latencyClass!=="ULTRALOW"&&w.latencyClass!=="LOW"||(P.V=g.Oh(M,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,P.j=g.Oh(M,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=P;this.j=this.policy.C!==1;this.B=sC(this,I65(this,isNaN(w.liveChunkReadahead)?3:w.liveChunkReadahead,w))}; A9y=function(w,M){if(M)return M=w.videoData,M=I65(w,isNaN(M.liveChunkReadahead)?3:M.liveChunkReadahead,M),sC(w,M);if(w.L.length){if(Math.min.apply(null,w.L)>1)return sC(w,w.B-1);if(w.policy.K)return sC(w,w.B+1)}return w.B}; gA_=function(w,M){if(!w.L.length)return!1;var P=w.B;w.B=A9y(w,M===void 0?!1:M);if(M=P!==w.B)w.L=[],w.S8=0;return M}; bB=function(w,M){return M>=w.K6()-J9p(w)}; r9y=function(w,M,P){M=bB(w,M);P||M?M&&(w.C=!0):w.C=!1;w.j=w.policy.C===2||w.policy.C===3&&w.C}; js5=function(w,M){M=bB(w,M);w.X!==M&&w.publish("livestatusshift",M);w.X=M}; J9p=function(w){var M=w.policy.B;w.X||(M=Math.max(M-1,0));return M*Ir(w)}; I65=function(w,M,P){P.Z3&&M--;Yp(P)&&(M=1);if(T3(P)!==0&&(w=g.Oh(w.experiments,"html5_live_chunk_readahead_proxima_override"))){M=w;var u;((u=P.B)==null?0:cO1(u))&&M++}return M}; Ir=function(w){return w.videoData.B?bq(w.videoData.B)||5:5}; sC=function(w,M){M=Math.max(Math.max(1,Math.ceil(w.policy.X/Ir(w))),M);return Math.min(Math.min(8,Math.floor(w.policy.S/Ir(w))),M)}; bJx=function(){this.X=0;this.S=Infinity;this.K=!0;this.L=this.B=2;this.C=1;this.G=!1;this.j=10;this.Lu=!1;this.V=1;this.B3=!1}; Je=function(w){g.v.call(this);this.fu=w;this.B=0;this.L=null;this.K=this.X=0;this.C={};this.P3=this.fu.N();this.G=new g.gV(this.Wl,1E3,this);this.Yu=Ae(this,"html5_seek_timeout_delay_ms");this.mN=Ae(this,"html5_long_rebuffer_threshold_ms");this.jL=Ae(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.xu=Ae(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.eL=Ae(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.fg=Ae(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.B3=Ae(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.Lu=new g0(2E4);this.UO=Ae(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.t9=Ae(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.OO=Ae(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.Cu=Ae(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.V=Ae(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.S=Ae(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.iW=Ae(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.j=Ae(this,"html5_ads_preroll_lock_timeout_delay_ms","html5_ads_preroll_lock_timeout_cfl");this.Z3=new g0(g.Oh(this.P3.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,!this.P3.D("html5_report_slow_ads_as_error"));this.bW=new g0(g.Oh(this.P3.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.P3.D("html5_skip_slow_buffering_ad"));this.cj=Ae(this,"html5_slow_start_timeout_delay_ms");this.ys=Ae(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.b(this,this.G)}; Ae=function(w,M,P){P=P===void 0?null:P;var u=u===void 0?0:u;return new g0(g.Oh(w.P3.experiments,M)||u,P?w.P3.D(P):!1)}; CGp=function(w,M){w.B=M}; r0=function(w,M,P,u,X,U,f,h){M.test(P)?(w.vl(X,M,f),M.K||U()):(!M.L||M.X?P=!1:(P=(0,g.G$)(),u?M.B||(M.B=P):M.B=0,U=!u&&P-M.L>3E4,P=M.B&&P-M.B>1E3||U?M.X=!0:!1),P&&(h=Object.assign({},w.Z4(M),h),h.wn=f,h.we=X,h.wsuc=u,w.fu.II("workaroundReport",h),u&&(M.reset(),w.C[X]=!1)))}; g0=function(w,M){this.K=M===void 0?!1:M;this.B=this.L=this.C=this.startTimestamp=0;this.X=!1;this.G=Math.ceil(w/1E3)}; a61=function(w){g.v.call(this);var M=this;this.fu=w;this.V=this.B=this.loader=this.mediaElement=this.playbackData=null;this.C=0;this.G=this.mN=this.X=null;this.Cu=!1;this.fg=0;this.Lu=!1;this.timestampOffset=0;this.S=!0;this.t9=0;this.jL=this.hD=!1;this.j=0;this.Z3=!1;this.ys=0;this.P3=this.fu.N();this.videoData=this.fu.getVideoData();this.policy=new t8l;this.B3=new Je(this.fu);this.bW=this.OO=this.eL=this.K=this.L=NaN;this.UO=new g.gV(function(){xF2(M,!1)},2E3); this.M7=new g.gV(function(){jS(M)}); this.Yu=new g.gV(function(){OJM(M,{})}); this.cj=NaN;this.xu=new g.gV(function(){var P=M.P3.a7;P.B+=1E4/36E5;P.B-P.C>1/6&&(Ze1(P),P.C=P.B);M.xu.start()},1E4); g.b(this,this.B3);g.b(this,this.UO);g.b(this,this.Yu);g.b(this,this.M7);g.b(this,this.xu)}; MO_=function(w,M){w.playbackData=M;w.videoData.isLivePlayback&&(w.V=new Kg2(function(){a:{if(w.playbackData&&w.playbackData.B.B){if(qI(w.videoData)&&w.loader){var u=w.loader.l3.Zu()||0;break a}if(w.videoData.B){u=w.videoData.B.Cu;break a}}u=0}return u}),w.B=new KK(w.videoData,w.P3.experiments,function(){return w.Az(!0)})); if(CK(w.fu)){var P;(P=w.videoData.RO)!=null&&P.Qr||(M=w44(w),M.NT?(mC(w.videoData)&&w.O6(M.NT,M.startSeconds),w.C=M.startSeconds):M.startSeconds>0&&w.seekTo(M.startSeconds,{Wk:"seektimeline_startPlayback",seekSource:15}));w.S=!1}else ioR(w)||(w.C=w.C||w.videoData.startSeconds||0,w.D("html5_sabr_vod_invalid_start_time_fallback")&&!w.videoData.isLivePlayback&&(M=w.fu.videoData.Az(),w.C>M&&(w.D("html5_sabr_log_invalid_sabr_current_time")&&w.fu.II("invalidSabrCmtStart",{rt:w.C,mst:M}),w.C=0)))}; ufR=function(w,M){(w.loader=M)?PpU(w,!0):te(w)}; X45=function(w,M){g.JK(w.B3.G);w.D("html5_exponential_memory_for_sticky")&&(M.state.isPlaying()?g.JK(w.xu):w.xu.stop());if(w.mediaElement)if(M.oldState.state===8&&DS(M.state)&&M.state.isBuffering()){M=w.mediaElement.getCurrentTime();var P=w.mediaElement.z0();var u=w.D("manifestless_post_live_ufph")||w.D("manifestless_post_live")?Jy(P,Math.max(M-3.5,0)):Jy(P,M-3.5);if(u>=0&&M>P.end(u)-1.1&&u+10?(x0(w.fu,w.getCurrentTime()+w.videoData.limitedPlaybackDurationInSeconds),w.jL=!0):w.videoData.isLivePlayback&&w.videoData.endSeconds>0&&(x0(w.fu,w.getCurrentTime()+w.videoData.endSeconds),w.jL=!0))}; U05=function(w,M){var P=w.getCurrentTime(),u=w.isAtLiveHead(P);if(w.V&&u){var X=w.V;if(X.B&&!(P>=X.L&&P50&&X.L.shift())),X=w.B,r9y(X,P,M===void 0?!0:M),js5(X,P),M&&xF2(w,!0));u!==w.hD&&(M=w.getCurrentTime()-w.bW<=500,P=w.fg>=1E3,M||P||(M=w.fu.D4,M.qoe&&(M=M.qoe,P=g.$0(M.provider), g.Pu(M,P,"lh",[u?"1":"0"])),w.hD=u,w.fg++,w.bW=w.getCurrentTime()))}; xF2=function(w,M){if(w.B){var P=w.B;var u=w.getCurrentTime(),X=P.K6();var U=P.policy.L;P.X||(U=Math.max(U-1,0));U*=Ir(P);u>=X-U||!P.Ec()?P=uP+1&&M0&&SI(w.mediaElement)>0&&(w.L=OC(w,w.L,!1)),M=w.D("html5_pseudogapless_shorts_seek_to_next_start")&&(M==null?void 0:M.seekSource)===60,!w.mediaElement||!Hoy(w,M))w.M7.start(750);else if(!isNaN(w.L)&&isFinite(w.L)&&(M=w.OO-(w.L-w.timestampOffset),!(M===0||Math.abs(M)<.005)))if(M=w.mediaElement.getCurrentTime()-w.L,Math.abs(M)<=w.t9||Math.abs(M)<.005)p4H(w);else{if(w.videoData.Pg)w.videoData.Pg= !1;else if(!Dw(w.videoData)&&w.L>=w.Az()-.1){w.L=w.Az();w.X.resolve(w.Az());w.P3.FX()&&w.fu.II("setEndedInSeek",{tgt:""+w.L,maxst:""+w.Az()});w.fu.lP();return}try{var P=w.L-w.timestampOffset;w.mediaElement.seekTo(P);w.B3.B=P;w.OO=P;w.C=w.L;w.Lu=!1}catch(u){}}}; Hoy=function(w,M){M=M===void 0?!1:M;if(!w.mediaElement||w.mediaElement.Jt()===0||w.mediaElement.hasError())return!1;var P=w.mediaElement.getCurrentTime()>0;return w.videoData.C&&w.videoData.C.B||w.videoData.isLivePlayback||!w.videoData.d5()?w.L>=0&&!M&&(M=w.mediaElement.Nm(),M.length||!P)?rf(M,w.L-w.timestampOffset):P:P}; p4H=function(w){w.X&&(w.X.resolve(w.mediaElement.getCurrentTime()),w.B3.L=null)}; Zol=function(w,M){w.G&&(w.G.resolve(M),w.fu.OI(),w.P3.FX()||SWl(w))&&(M=w.Z4(),M["native"]=""+ +w.Lu,M.otgt=""+(w.L+w.timestampOffset),w.fu.II("seekEnd",M));te(w)}; te=function(w){w.L=NaN;w.K=NaN;w.OO=NaN;w.X=null;w.mN=null;w.G=null;w.Cu=!1;w.Lu=!1;w.t9=0;w.UO.stop();w.Yu.stop()}; ElH=function(w,M){var P=w.mediaElement,u=M.type;switch(u){case "seeking":var X=P.getCurrentTime()+w.timestampOffset;if(!w.X||w.Lu&&X!==w.L){w.X=new cp;w.X.then(function(f){Zol(w,f)},function(){te(w)}); if(w.videoData.isAd()){var U;Pbu({adCpn:w.videoData.clientPlaybackNonce,contentCpn:(U=w.videoData.hj)!=null?U:""},M.B)}w.OO=X;CGp(w.B3,P.getCurrentTime());w.seekTo(X,{seekSource:104,Wk:"seektimeline_mediaElementEvent"});w.Lu=!0}break;case "seeked":p4H(w);break;case "loadedmetadata":CK(w.fu)||F_u(w);jS(w);break;case "progress":jS(w);break;case "pause":w.j=w.getCurrentTime()}w.j&&((u==="play"||u==="playing"||u==="timeupdate"||u==="progress")&&w.getCurrentTime()-w.j>10&&(w.D("html5_sky_skip_pause_jump")? w.fu.II("skipPauseJump",{evt:u,cmt:w.getCurrentTime(),lpt:w.j}):w.seekTo(w.j,{Wk:"pauseJump"})),u!=="pause"&&u!=="play"&&u!=="playing"&&u!=="progress"&&(w.j=0))}; N7y=function(w){return(Kk(w.videoData)||!!w.videoData.liveUtcStartSeconds)&&(!!w.videoData.liveUtcStartSeconds||ioR(w))&&!!w.videoData.B}; ioR=function(w){return!!w.videoData.startSeconds&&isFinite(w.videoData.startSeconds)&&w.videoData.startSeconds>1E9}; w44=function(w){var M=0,P=NaN,u="";if(!w.S)return{startSeconds:M,NT:P,source:u};w.videoData.B3?M=w.videoData.ys:Dw(w.videoData)&&(M=Infinity);if(g.sp(w.videoData))return{startSeconds:M,NT:P,source:u};w.videoData.startSeconds?(u="ss",M=w.videoData.startSeconds):w.videoData.rB&&(u="stss",M=w.videoData.rB);w.videoData.liveUtcStartSeconds&&(P=w.videoData.liveUtcStartSeconds);if(isFinite(M)&&(M>w.Az()||Mw.Az()||P 0?(u.onesie="0",w.handleError(new g.hy("html5.missingapi",u)),!1):!0}; zSM=function(w){var M=J$();rI(M,w);return g.IY(M,eb4())}; D04=function(w,M){var P,u,X,U,f,h,c,Z,S,H,p,F,E,y,q,d,l,e,R,I,w4,t,$M,fz,U1,ZU;return g.n(function(M_){if(M_.L==1)return M.fetchType="onesie",P=rXF(M,w.getPlayerSize(),w.getVisibilityState()),u=new Jz(w,P),g.B(M_,u.fetch(),2);X=M_.B;U={player_response:X};M.loading=!1;f=w.FF.r0;if(u.Rk){h=g.G(u.Rk.entries());for(c=h.next();!c.done;c=h.next())Z=c.value,S=g.G(Z),H=S.next().value,p=S.next().value,F=H,E=p,f.B.set(F,E,180),F===M.videoId&&(y=E.aA(),M.rM=y);f.ED=u}q=g.G(u.N5.entries());for(d=q.next();!d.done;d= q.next())l=d.value,e=g.G(l),R=e.next().value,I=e.next().value,w4=R,t=I,f.L.set(w4,t,180);g.Up(M,U,!0);if(M.loading||XM(M))return M_.return(Promise.resolve());f.B.removeAll();f.L.removeAll();M.rM=[];$M={};fz="onesie.response";U1=0;M.errorCode?(fz="auth",$M.ec=M.errorCode,$M.ed=M.errorDetail,$M.es=M.GL||"",U1=2):($M.successButUnplayable="1",$M.disposed=""+ +M.sO(),$M.afmts=""+ +/adaptiveFormats/.test(X),$M.cpn=M.clientPlaybackNonce);ZU=new g.hy(fz,$M,U1);return M_.return(Promise.reject(ZU))})}; GeM=function(w,M){var P,u,X,U,f,h,c,Z,S,H,p;return g.n(function(F){switch(F.L){case 1:P=M.isAd(),u=!P,X=P?1:3,U=0;case 2:if(!(U0)){F.M0(5);break}return g.B(F,Qk(5E3),6);case 6:f=new g.bK("Retrying OnePlatform request",{attempt:U}),g.Yq(f);case 5:return g.DU(F,7),g.B(F,T7p(w,M),9);case 9:return F.return();case 7:h=g.d4(F);c=Zv(h);Z=c.errorCode;S=w.N();H=S.D("html5_use_network_error_code_enums")?401:"401";u&&Z==="manifest.net.badstatus"&&c.details.rc===H&&(u=!1,U===X-1&&(X+= 1));if(U===X-1)return p=d0p(P,c.details),p.details.backend="op",p.details.originec=Z,F.return(Promise.reject(p));if(Z==="auth"||Z==="manifest.net.retryexhausted")return F.return(Promise.reject(c));w.handleError(c);if(cU(c.severity)){F.M0(4);break}case 3:U++;F.M0(2);break;case 4:return F.return(Promise.reject(d0p(P,{backend:"op"})))}})}; T7p=function(w,M){function P(fz){fz.readyState===2&&w.nT("ps_c")} var u,X,U,f,h,c,Z,S,H,p,F,E,y,q,d,l,e,R,I,w4,t,$M;return g.n(function(fz){switch(fz.L){case 1:M.fetchType="gp";u=w.N();X=g.E_(u,g.Op(M));if(!X.B){U=X.getValue();fz.M0(2);break}return g.B(fz,X.B,3);case 3:U=fz.B;case 2:return f=U,h=zSM(f),c=rXF(M,w.getPlayerSize(),w.getVisibilityState()),Z=g.CW(l0l),S=g.Op(M),H=(0,g.G$)(),p=!1,F="empty",E=0,w.nT("psns"),y={HG:P},g.B(fz,g.LU(h,c,Z,void 0,y),4);case 4:q=fz.B;w.nT("psnr");if(M.sO())return fz.return();q?"error"in q&&q.error?(p=!0,F="esf:"+q.error.message, E=q.error.code):q.errorMetadata&&(p=!0,F="its",E=q.errorMetadata.status):p=!0;if(p)return d=0,l=((0,g.G$)()-H).toFixed(),e={},e=u.D("html5_use_network_error_code_enums")?{backend:"op",rc:E,rt:l,reason:F,has_kpt:M.KT?"1":"0",has_mdx_env:M.mdxEnvironment?"1":"0",has_omit_key_flag:g.AR("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:u.pageId?"1":"0",has_token:S?"1":"0",has_vvt:M.Cu?"1":"0",is_mdx:M.isMdxPlayback?"1":"0",mdx_ctrl:M.f6||"",token_eq:S===g.Op(M)?"1":"0"}:{backend:"op", rc:""+E,rt:l,reason:F,has_kpt:M.KT?"1":"0",has_mdx_env:M.mdxEnvironment?"1":"0",has_omit_key_flag:g.AR("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:u.pageId?"1":"0",has_token:S?"1":"0",has_vvt:M.Cu?"1":"0",is_mdx:M.isMdxPlayback?"1":"0",mdx_ctrl:M.f6||"",token_eq:S===g.Op(M)?"1":"0"},R="manifest.net.connect",E===429?(R="auth",d=2):E>200&&(R="manifest.net.badstatus",E===400&&(d=2)),fz.return(Promise.reject(new g.hy(R,e,d)));M.loading=!1;g.Up(M,{raw_player_response:q},!0); I=q;g.r8(M.N())&&I&&I.trackingParams&&jb(I.trackingParams);if(M.errorCode)return w4={ec:M.errorCode,ed:M.errorDetail,es:M.GL||""},fz.return(Promise.reject(new g.hy("auth",w4,2)));if(!M.loading&&!XM(M))return t=M.isAd()?"auth":"manifest.net.retryexhausted",$M=M.isAd()?2:1,fz.return(Promise.reject(new g.hy(t,{successButUnplayable:"1",hasMedia:g.RI(M)?"1":"0"},$M)));g.yx(fz)}})}; ol1=function(w,M,P){function u(E){E=Zv(E);if(cU(E.severity))return Promise.reject(E);w.handleError(E);return!1} function X(){return!0} var U,f,h,c,Z,S,H,p,F;return g.n(function(E){switch(E.L){case 1:var y=w.N();w.getPlayerSize();w.getVisibilityState();w.isFullscreen();if(M.partnerId===38&&y.playerStyle==="books")y=M.videoId.indexOf(":"),y=g.p5("//play.google.com/books/volumes/"+M.videoId.slice(0,y)+"/content/media",{aid:M.videoId.slice(y+1),sig:M.W4});else if(M.partnerId===30&&y.playerStyle==="docs")y=g.p5("https://docs.google.com/get_video_info",{docid:M.videoId,authuser:M.w4,authkey:M.Nb,eurl:y.VE});else if(M.partnerId===33&&y.playerStyle=== "google-live")y=g.p5("//google-liveplayer.appspot.com/get_video_info",{key:M.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+y.B3);U=y;h=(f=M.isAd())?1:3;c=0;case 2:if(!(c0)){E.M0(5);break}return g.B(E,Qk(5E3),6);case 6:S={playerretry:c,playerretrysrc:P},f||(S.recover="embedded"),Z=Mx(U,S);case 5:return g.B(E,L__(M,Z).then(X,u),7);case 7:if(H=E.B)return E.return();c++;E.M0(2);break;case 4:p=f?"auth":"manifest.net.retryexhausted";F=f?2:1;if(!f&&Math.random()< 1E-4)try{g.Yq(new g.bK("b/152131571",btoa(U)))}catch(q){}return E.return(Promise.reject(new g.hy(p,{backend:"gvi"},F)))}})}; L__=function(w,M){function P(q){return u(q.xhr)} function u(q){if(!w.sO()){q=q?q.status:-1;var d=0,l=((0,g.G$)()-S).toFixed();l=X.D("html5_use_network_error_code_enums")?{backend:"gvi",rc:q,rt:l}:{backend:"gvi",rc:""+q,rt:l};var e="manifest.net.connect";q===429?(e="auth",d=2):q>200&&(e="manifest.net.badstatus",q===400&&(d=2));return Promise.reject(new g.hy(e,l,d))}} var X,U,f,h,c,Z,S,H,p,F,E,y;return g.n(function(q){if(q.L==1){w.fetchType="gvi";X=w.N();var d={};w.IT&&(d.ytrext=w.IT);(h=g.SF(d)?void 0:d)?(U={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:h},f=Mx(M,{action_display_post:1})):(U={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},f=M);c={};X.sendVisitorIdHeader&&w.visitorData&&(c["X-Goog-Visitor-Id"]=w.visitorData);(Z=HM(X.experiments,"debug_sherlog_username"))&&(c["X-Youtube-Sherlog-Username"]=Z);Object.keys(c).length> 0&&(U.headers=c);S=(0,g.G$)();return g.B(q,Tm(DK,f,U).then(void 0,P),2)}H=q.B;if(!H||!H.responseText)return q.return(u(H));w.loading=!1;p=OK(H.responseText);g.Up(w,p,!0);if(w.errorCode)return F={ec:w.errorCode,ed:w.errorDetail,es:w.GL||""},q.return(Promise.reject(new g.hy("auth",F,2)));if(!w.loading&&!XM(w))return E=w.isAd()?"auth":"manifest.net.retryexhausted",y=w.isAd()?2:1,q.return(Promise.reject(new g.hy(E,{successButUnplayable:"1"},y)));g.yx(q)})}; d0p=function(w,M){return new g.hy(w?"auth":"manifest.net.retryexhausted",M,w?2:1)}; P6=function(w,M,P){P=P===void 0?!1:P;var u,X,U,f;g.n(function(h){if(h.L==1){u=w.N();if(P&&(!g.c0(u)||jx(M)!=="embedded")||M.fA||jx(M)!=="adunit"&&(g.Z$(u)||wD(u)||g.LW(u)||g.hW(u)||g.jY(u)||Z9(u)==="WEB_CREATOR"))return h.return();X=g.E_(u,g.Op(M));return X.B?g.B(h,X.B,3):(U=X.getValue(),h.M0(2))}h.L!=2&&(U=h.B);f=U;return h.return(eSx(w,M,f))})}; eSx=function(w,M,P){var u,X,U,f,h;return g.n(function(c){if(c.L==1){g.DU(c,2);u=zSM(P);var Z=M.N();g.kF();var S={context:g.Sq(M),videoId:M.videoId,racyCheckOk:M.racyCheckOk,contentCheckOk:M.contentCheckOk,autonavState:"STATE_NONE"};jx(M)==="adunit"&&(S.isAdPlayback=!0);Z.embedConfig&&(S.serializedThirdPartyEmbedConfig=Z.embedConfig);Z.We&&(S.showContentOwnerOnly=!0);M.Bu&&(S.showShortsOnly=!0);g.RS(0,141)&&(S.autonavState=g.RS(0,140)?"STATE_OFF":"STATE_ON");if(g.fp(Z)){var H=g.RS(0,65);H=H!=null? !H:!1;var p=!!g.dH("yt-player-sticky-caption");S.captionsRequested=H&&p}var F;if(Z=(F=Z.getWebPlayerContextConfig())==null?void 0:F.encryptedHostFlags)S.playbackContext={encryptedHostFlags:Z};X=S;U=g.CW(B7p);w.nT("wn_s");return g.B(c,g.LU(u,X,U),4)}if(c.L!=2)return f=c.B,w.nT("wn_r"),!f||"error"in f&&f.error||(h=f,g.r8(M.N())&&h.trackingParams&&jb(h.trackingParams),g.Up(M,{raw_watch_next_response:f},!1)),g.zp(c,0);g.d4(c);g.yx(c)})}; Q54=function(w){w.nT("vir");w.nT("ps_s");Tv("vir",void 0,"video_to_ad");var M=YWF(w);M.then(function(){w.nT("virc");Tv("virc",void 0,"video_to_ad");w.nT("ps_r");Tv("ps_r",void 0,"video_to_ad")},function(){w.nT("virc"); Tv("virc",void 0,"video_to_ad")}); return M}; g.$A=function(w,M,P,u,X,U,f,h,c,Z){c=c===void 0?new g.ut(w):c;Z=Z===void 0?!0:Z;g.wC.call(this);var S=this;this.P3=w;this.playerType=M;this.rK=P;this.iZ=u;this.getVisibilityState=U;this.visibility=f;this.FF=h;this.videoData=c;this.ZG=Z;this.logger=new g.pM("VideoPlayer");this.Si=null;this.fZ=new or;this.ac=null;this.j_=!0;this.aI=this.loader=null;this.Dg=[];this.s6=new MF;this.nx=this.yK=null;this.xp=new MF;this.WD=null;this.nL=this.JP=!1;this.df=NaN;this.RU=!1;this.playerState=new g.EH;this.KY=[]; this.qK=new g.V2;this.vI=new PBy(this);this.mediaElement=null;this.JM=new g.gV(this.m7I,15E3,this);this.hg=this.T4=!1;this.u5=NaN;this.Jj=!1;this.fD=0;this.Pq=!1;this.cX=NaN;this.MW=new ar(new Map([["bufferhealth",function(){return $0p(S.kA)}], ["bandwidth",function(){return S.h3()}], ["networkactivity",function(){return S.P3.schedule.mN}], ["livelatency",function(){return S.isAtLiveHead()&&S.isPlaying()?ke2(S):NaN}], ["rawlivelatency",function(){return ke2(S)}]])); this.UX=0;this.loop=!1;this.playbackRate=1;this.Mo=0;this.kA=new a61(this);this.Oo=!1;this.UZ=[];this.Rr=this.CO=0;this.FY=this.xV=!1;this.qO=this.z2=0;this.VZ=new g.gV(this.KW,0,this);this.D_=!1;this.lB=null;this.CW9=[this.qK,this.VZ,this.JM,this.MW];this.Zy=this.SF=null;this.fV=function(){var H=S.D4;H.provider.P3.QL||H.provider.fu.getVisibilityState()===3||(H.provider.P3.QL=!0);H.Bp();if(H.L){var p=H.L;p.G&&p.B<0&&p.provider.fu.getVisibilityState()!==3&&Qrl(p)}H.qoe&&(H=H.qoe,H.Yu&&H.C<0&&H.provider.P3.QL&& H$l(H),H.X&&UC(H));S.loader&&uG(S);S.P3.Sz&&!S.videoData.backgroundable&&S.mediaElement&&!S.Ax()&&(S.isBackground()&&S.mediaElement.F3()?(S.II("bgmobile",{suspend:1}),S.Qu(!0,!0)):S.isBackground()||XB(S)&&S.II("bgmobile",{resume:1}))}; this.yH={Kp:function(H){S.Kp(H)}, NxW:function(H){S.Si=H}, qcL:function(){return S.D4}, XG:function(){return S.aI}, kdL:function(){return S.Br}, s4u:function(){return S.LD}, CuO:function(){}, N:function(){return S.P3}, Nt:function(){return S.mediaElement}, MBO:function(H){S.cF(H)}, dMu:function(){return S.iZ}}; this.logger.debug(function(){return"creating, type "+M}); this.Of=new RVy(this.P3);this.TC=new y3(this.P3,this.iZ,this);this.X9=new g.Rr(this,function(H,p){H!==g.AP("endcr")||g.C(S.playerState,32)||S.lP();X(H,p,S.playerType);if(H===g.AP("transitiondetector")&&(H=S.loader)!=null&&(H=H.cj)!=null){var F=g.G(LC1(p.id));F.next();F=F.next().value;zvM(H,F,p.start/1E3-H.fu.OF(),Vxp(H.X))}}); g.b(this,this.X9);g.b(this,this.kA);RSF(this,c);this.videoData.subscribe("dataupdated",this.R3k,this);this.videoData.subscribe("dataloaded",this.F0,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.II,this);this.videoData.subscribe("ctmpstr",this.yj,this);!this.D4||this.D4.sO();this.D4=new g.k0(new Q3(this.videoData,this.P3,this));iKu(this.fV);this.visibility.subscribe("visibilitystatechange",this.fV);this.Br=new g.gV(this.cT,g.Oh(this.P3.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.LD=new g.gV(this.cT,g.Oh(this.P3.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.lL=new g.Cb(this.MZ3,350,this);g.b(this,this.lL)}; RSF=function(w,M){if(w.playerType===2||w.P3.bu)M.N2=!0;var P=XEp(M.QL,M.Iz,w.P3.X,w.P3.V);P&&(M.adFormat=P);w.playerType===2&&(M.cZ=!0);if(w.isFullscreen()||w.P3.X)P=g.dH("yt-player-autonavstate"),M.autonavState=P||(w.P3.X?2:w.videoData.autonavState);M.endSeconds&&M.endSeconds>M.startSeconds&&x0(w,M.endSeconds)}; nlU=function(w){var M=w.videoData;Q54(w).then(void 0,function(P){w.videoData!==M||M.sO()||(P=Zv(P),P.errorCode==="auth"&&w.videoData.errorDetail?w.WB(P.errorCode,2,unescape(w.videoData.errorReason),WU(P.details),w.videoData.errorDetail,w.videoData.GL||void 0):w.handleError(P))})}; K_M=function(w){if(!g.C(w.playerState,128))if(w.videoData.isLoaded(),w.logger.debug("finished loading playback data"),w.Dg=g.LC(w.videoData.Lu),g.RI(w.videoData)){w.rK.tick("bpd_s");Ue(w).then(function(){w.rK.tick("bpd_c");if(!w.sO()){w.JP&&(w.Pk(mI(mI(w.playerState,512),1)),XB(w));var u=w.videoData;u.endSeconds&&u.endSeconds>u.startSeconds&&x0(w,u.endSeconds);w.s6.finished=!0;fJ(w,"dataloaded");w.xp.cQ()&&vl4(w);B0x(w.TC,w.nx)}}); w.D("html5_log_media_perf_info")&&w.II("loudness",{v:w.videoData.Ob.toFixed(3)},!0);var M,P=(M=w.mediaElement)==null?void 0:M.vj();if(P&&"disablePictureInPicture"in P&&w.P3.Sd)try{P.disablePictureInPicture=w.P3.Z0&&!w.videoData.backgroundable}catch(u){g.Yq(u)}s5u(w)}else fJ(w,"dataloaded")}; Ue=function(w){W6(w);w.nx=null;var M=vAx(w.P3,w.videoData,w.Ax());w.yK=M;w.yK.then(function(P){bol(w,P)},function(P){w.sO()||(P=Zv(P),w.visibility.isBackground()?(h9(w,"vp_none_avail"),w.yK=null,w.s6.reset()):(w.s6.finished=!0,w.WB(P.errorCode,P.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",WU(P.details))))}); return M}; bol=function(w,M){if(!w.sO()&&!M.videoData.sO()){w.logger.debug("finished building playback data");w.nx=M;MO_(w.kA,w.nx);if(w.videoData.isLivePlayback){var P=I0u(w.FF.r0,w.videoData.videoId)||w.loader&&!isNaN(w.loader.ys);P=w.D("html5_onesie_live")&&P;CK(w)||w.videoData.fg>0&&!qI(w.videoData)||P||w.seekTo(w.Az(),{Wk:"videoplayer_playbackData",seekSource:18})}if(w.videoData.C.B){if(k21(w.videoData)){w.D("html5_sabr_report_missing_url_as_error_terminal")?w.WB("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", WU({missabrurl:1})):w.handleError(new g.hy("fmt.missing",{missabrurl:"1"},2));return}w.loader?g.Yq(Error("Duplicated Loader")):(P=g.Oh(w.P3.experiments,"html5_onesie_defer_content_loader_ms"))&&w.Nr()&&I0u(w.FF.r0,w.videoData.qe)?g.cF(function(){w.sO()||w.loader||AIR(w)},P):AIR(w)}else!w.videoData.C.B&&iD(w.videoData)&&w.bD(new H$(w.videoData.videoId||"",4)); w.fk();qC4(M).then(function(){var u={};w.yn(u);w.P3.FX()&&w.D("html5_log_media_perf_info")&&w.II("av1Info",u);uG(w)})}}; vl4=function(w){w.sO();w.logger.debug("try finish readying playback");if(w.xp.finished)w.logger.debug("already finished readying");else if(w.s6.finished)if(g.C(w.playerState,128))w.logger.debug("cannot finish readying because of error");else if(w.Dg.length)w.logger.debug(function(){return"cannot finish readying because of pending preroll: "+w.Dg}); else if(w.X9.started||dFx(w.X9),w.sB())w.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{w.loader&&(w.nL=QWR(w.loader.timing));w.xp.finished||(w.xp.finished=!0);var M=w.D("html5_onesie_live")&&w.loader&&!isNaN(w.loader.ys);!w.videoData.isLivePlayback||w.videoData.fg>0&&!qI(w.videoData)||M||CK(w)||(w.logger.debug("seek to head for live"),w.seekTo(Infinity,{Wk:"videoplayer_readying",seekSource:18}),w.isBackground()&&(w.hg=!0));HJ5(w.D4);w.logger.debug("finished readying playback"); w.publish("playbackready");YL("pl_c",w.rK.timerName)||(w.rK.tick("pl_c"),Tv("pl_c",void 0,"video_to_ad"));YL("pbr",w.rK.timerName)||(w.rK.tick("pbr"),Tv("pbr",void 0,"video_to_ad"))}else w.logger.debug("playback data not loaded")}; x0=function(w,M){w.ac&&gll(w);w.ac=new g.bg(M*1E3,0x7ffffffffffff);w.ac.namespace="endcr";w.addCueRange(w.ac)}; gll=function(w){w.removeCueRange(w.ac);w.ac=null}; JIp=function(w,M,P,u,X){var U=w.D4,f=w.videoData;f.L=P;var h=g.c6(w);P=new pux(f,P,M,h?h.itag:"",u);w.P3.experiments.nu("html5_refactor_sabr_video_format_selection_logging")?(P.videoId=X,w.Zy=P):U.qoe&&Sry(U.qoe,P);X=w.TC;X.L=0;X.B=0;w.publish("internalvideoformatchange",f,M==="m")}; g.c6=function(w){var M=Z6(w);return DR(M)||!w.nx?null:g.Nj(w.nx.B.videoInfos,function(P){return M.X(P)})}; Z6=function(w){if(w.nx){var M=w.TC;var P=w.nx;w=w.Cl();var u=N0y(M);if(DR(u)){if(u=FF_(M,P).compose(Gxz(M,P)).compose(DvH(M,P)).compose(LF_(M,P.videoData)).compose(eiz(M,P.videoData,P)).compose(ljl(M,P)).compose(mvx(M,P)),DR(w)||M.D("html5_apply_pbr_cap_for_drm"))u=u.compose(o0H(M,P))}else M.D("html5_perf_cap_override_sticky")&&(u=u.compose(ljl(M,P))),M.D("html5_ustreamer_cap_override_sticky")&&(u=u.compose(o0H(M,P)));u=u.compose(mvx(M,P));M=P.videoData.NQ.compose(u).compose(P.videoData.tj).compose(w)}else M= P7;return M}; Op_=function(w){var M=w.TC;w=w.videoData;var P=LF_(M,w);M.D("html5_disable_client_autonav_cap_for_onesie")||P.compose(eiz(M,w));return P}; uG=function(w){if(w.videoData.C&&w.videoData.C.B){var M=Z6(w);w.loader&&LBu(w.loader,M)}}; rIU=function(w){var M;return!!(w.D("html5_native_audio_track_switching")&&g.HN&&((M=w.videoData.L)==null?0:k5(M)))}; j5_=function(w){if(!rIU(w))return!1;var M;w=(M=w.mediaElement)==null?void 0:M.audioTracks();return!!(w&&w.length>1)}; tO5=function(w){var M=CpR(w);if(M)return w.videoData.getAvailableAudioTracks().find(function(P){return P.Y2.getName()===M})}; CpR=function(w){var M;if(w=(M=w.mediaElement)==null?void 0:M.audioTracks())for(M=0;M0&&(M.kD=P.qk));M.w5=P.NE;M.yq=xY(u,{},P.C||void 0,NI(P));M.jL=Ep(P)&&(g.LW(u)||g.hW(u));mC(P)&&(M.G=!0,M.Ic=u.D("html5_estimate_live_partial_slice_duration"),M.rB=!0,u.D("html5_sabr_report_partial_segment_estimated_duration")&& (M.QN=!0),M.B=!0,M.R4=u.D("html5_sabr_enable_live_clock_offset"),M.RO=u.D("html5_disable_client_resume_policy_for_sabr"),M.sA=u.D("html5_trigger_loader_when_idle_network"),M.Fs=u.D("html5_sabr_parse_live_metadata_playback_boundaries"),M.vC=u.D("html5_consume_onesie_next_request_policy_for_sabr"),M.wz=u.D("html5_sabr_report_next_ad_break_time"),M.Ck=u.D("html5_log_high_res_buffer_timeline")&&u.FX(),M.aj=u.D("html5_remove_stuck_slices_beyond_max_buffer_limits"),M.L$=u.D("html5_gapless_sabr_btl_last_slice")&& FM(P),M.NQ=u.D("html5_reset_last_appended_slice_on_seek")&&FM(P),qI(P)?(M.gz=!0,M.XC=u.D("html5_estimate_partial_segment_duration"),M.rY=u.D("html5_disable_variability_tracker_for_live"),M.Yu=!0,u.D("html5_simplified_backup_timeout_sabr_live")&&(M.Hw=!0,M.nV=M.mu)):M.TE=u.D("html5_probe_request_on_sabr_request_progress"),M.eY=u.D("html5_serve_start_seconds_seek_for_post_live_sabr"),M.Lx=u.D("html5_flush_index_on_updated_timestamp_offset"),M.S=mC(P),M.nN=u.D("html5_ignore_partial_segment_from_live_readahead"), u.D("html5_include_partial_segment_for_jumbo_ll")&&Yp(P)&&(M.nN=!1),M.e8=u.D("html5_use_non_active_broadcast_for_post_live"),M.Cu=u.D("html5_use_centralized_player_time"),M.uX=u.D("html5_consume_onesie_sabr_seek"),M.Lu=u.D("html5_enable_sabr_seek_loader_refactor"),M.x3=u.D("html5_update_segment_start_time_from_media_header"),P.enableServerStitchedDai&&(M.L=!0,M.l5=u.D("html5_reset_server_stitch_state_for_non_sabr_seek"),M.O7=u.D("html5_remove_ssdai_append_pause")&&!P.VH(),M.gb=u.D("html5_ssdai_log_ssevt_in_loader")|| u.D("html5_ssdai_log_ssevt_in_loader_200ms")||u.D("html5_ssdai_log_ssevt_in_loader_timers")||u.D("html5_ssdai_log_ssevt_in_loader_cuerange"),u.D("html5_ssdai_log_ssevt_in_loader_timers")?M.Z3=1:u.D("html5_ssdai_log_ssevt_in_loader_200ms")?M.Z3=3:u.D("html5_ssdai_log_ssevt_in_loader_cuerange")&&(M.Z3=0)),M.Sz=u.FX()||P.VH());M.Ob=g.BZl(P);vL(u.G,sq.BITRATE)&&(M.A9=NaN);if(h=g.Oh(u.experiments,"html5_request_size_max_kb"))M.eL=h*1024;u.G.C?M.uI="; "+sq.EXPERIMENTAL.name+"=allowed":u.D("html5_enable_cobalt_tunnel_mode")&& g.KB()&&(h=sq.TUNNELMODE,M.uI="; "+h.name+"="+h.valid);P=P.serverPlaybackStartConfig;(P==null?0:P.enable)&&(P==null?0:P.playbackStartPolicy)&&(M.Ci=!0,JY(M,P.playbackStartPolicy,2));P=x0F(w);w.fZ.removeAll();a:{h=w.FF.r0;if(u=w.videoData.videoId)if(X=h.B.get(u)){h.B.remove(u);h=X;break a}h=void 0}w.loader=new g.cu(w,w.P3.schedule,M,w.videoData.B,w.videoData.C,Z6(w),P,w.videoData.enableServerStitchedDai,h,w.videoData.S);M=w.videoData.D("html5_disable_preload_for_ssdai_with_preroll")&&w.videoData.isLivePlayback&& w.Nr()?!0:w.JP&&g.Z$(w.P3)&&w.videoData.isLivePlayback;w.loader.initialize(w.getCurrentTime(),Z6(w),M);w.videoData.probeUrl&&(w.loader.iW=w.videoData.probeUrl);if(w.Dg.length||w.JP)w.videoData.cotn||S8(w,!1);ufR(w.kA,w.loader);w.lB&&(Mf_(w.loader,new g.Zj(w.lB)),w.II("sdai",{sdl:1}));g.uD(w.videoData)&&(w=w.loader,w.policy.tF=w.policy.DZ)}; W6=function(w){w.loader&&(w.loader.dispose(),w.loader=null,ufR(w.kA,null));w.B_()?OoF(w):w.ws()}; OoF=function(w){if(w.aI)if(w.logger.debug("release media source"),w.UV(),w.aI.G)try{w.P3.FX()&&w.II("rms",{l:"vprms",sr:w.B_(),rs:Wp(w.aI)});w.aI.clear();var M;(M=w.mediaElement)!=null&&(M.L=w.aI);w.aI=null}catch(P){M=new g.bK("Error while clearing Media Source in VideoPlayer: "+P.name+", "+P.message),M=Zv(M),w.handleError(M),w.ws()}else w.ws()}; a01=function(w,M){M=M===void 0?!1:M;if(w.aI)return w.aI.C;w.logger.debug("update media source");a:{M=M===void 0?!1:M;try{g.KB()&&w.videoData.bz()&&IIp(w.mediaElement);var P=w.mediaElement.XG(w.Vn(),w.Qm())}catch(X){if(fjl(w.vI,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",X);w.WB("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}w.aL(P,!1,!1,M)}var u;return((u=w.XG())==null?void 0:u.C)||null}; wcF=function(w,M){M=M===void 0?!1:M;if(w.loader){w.videoData.enableServerStitchedDai&&f_2(w.loader);var P=w.getCurrentTime()-w.OF();w.loader.seek(P,{f8:M}).NS(function(){})}else AIR(w)}; Mi_=function(w,M,P,u){P=P===void 0?!1:P;u=u===void 0?!1:u;if(w.aI&&(!M||w.aI===M)){w.logger.debug("media source opened");var X=w.getDuration();!X&&qI(w.videoData)&&(X=25200);if(w.aI.isView){var U=X;w.logger.debug(function(){return"Set media source duration to "+U+", video duration "+X}); U>w.aI.getDuration()&&ia4(w,U)}else ia4(w,X);TIl(w.loader,w.aI,P,u);w.publish("mediasourceattached")}}; ia4=function(w,M){if(w.aI){w.aI.l4(M);var P;(P=w.loader)!=null&&P.policy.Cu&&(P.K=M)}}; BIx=function(w,M){JIp(w,M.reason,M.B.info,M.token,M.videoId)}; fJ=function(w,M){w.publish("internalvideodatachange",M===void 0?"dataupdated":M,w.videoData)}; PJR=function(w){for(var M=g.G("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),P=M.next();!P.done;P=M.next())w.qK.Y(w.mediaElement,P.value,w.cF,w);w.P3.PC&&w.mediaElement.MG()&&(w.qK.Y(w.mediaElement,"webkitplaybacktargetavailabilitychanged",w.d0k,w),w.qK.Y(w.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",w.U03,w))}; XcR=function(w){g.HF(w.df);uZp(w)||(w.df=g.ZK(function(){return uZp(w)},100))}; uZp=function(w){var M=w.mediaElement;M&&w.T4&&!w.videoData.mN&&!YL("vfp",w.rK.timerName)&&M.Jt()>=2&&!M.isEnded()&&ty(M.z0())&&w.rK.tick("vfp");return(M=w.mediaElement)&&!w.videoData.mN&&M.getDuration()>0&&(M.isPaused()&&M.Jt()>=2&&ty(M.z0())&&(YL("pbp",w.rK.timerName)||w.rK.tick("pbp"),!w.videoData.H_||w.RU||M.isSeeking()||(w.RU=!0,w.publish("onPlaybackPauseAtStart"))),M=M.getCurrentTime(),nK(w.Of,M))?(w.oK(),!0):!1}; UQ_=function(w){w.D4.j7();if(Dw(w.videoData)&&Date.now()>w.Mo+6283){if(!(!w.isAtLiveHead()||w.videoData.B&&vC(w.videoData.B))){var M=w.D4;if(M.qoe){M=M.qoe;var P=M.provider.fu.j$(),u=g.$0(M.provider);XVU(M,u,P);P=P.C;isNaN(P)||g.Pu(M,u,"e2el",[P.toFixed(3)])}}w.D("html5_alc_live_log_rawlat")?(M=w.videoData,M=g.hP(M.N())?!0:g.$3(M.N())?M.drmProduct==="6":!1):M=g.hP(w.P3);u=w.D("html5_always_log_rawlat");(M||u)&&w.II("rawlat",{l:iG(w.MW,"rawlivelatency").toFixed(3)});w.Mo=Date.now()}w.videoData.L&& k5(w.videoData.L)&&(M=w.Vh())&&M.videoHeight!==w.Rr&&(w.Rr=M.videoHeight,JIp(w,"a",$Q2(w,w.videoData.Yu)))}; $Q2=function(w,M){if(M.B.video.quality==="auto"&&k5(M.getInfo())&&w.videoData.DX)for(var P=g.G(w.videoData.DX),u=P.next();!u.done;u=P.next())if(u=u.value,u.getHeight()===w.Rr&&u.B.video.quality!=="auto")return u.getInfo();return M.getInfo()}; ke2=function(w){if(!Dw(w.videoData))return NaN;var M=0;w.loader&&w.videoData.B&&(M=qI(w.videoData)?w.loader.l3.Zu()||0:w.videoData.B.Cu);return(0,g.G$)()/1E3-w.Ls()-M}; Wsy=function(w){w.mediaElement&&w.mediaElement.Ax()&&(w.cX=(0,g.G$)());w.P3.yS?g.cF(function(){fVR(w)},0):fVR(w)}; fVR=function(w){var M;if((M=w.aI)==null||!M.F_()){if(w.mediaElement)try{w.WD=w.mediaElement.playVideo()}catch(u){h9(w,"err."+u)}if(w.WD){var P=w.WD;P.then(void 0,function(u){w.logger.debug(function(){return"playMediaElement failed: "+u}); if(!g.C(w.playerState,4)&&!g.C(w.playerState,256)&&w.WD===P)if(u&&u.name==="AbortError"&&u.message&&u.message.includes("load"))w.logger.debug(function(){return"ignore play media element failure: "+u.message}); else{var X="promise";u&&u.name&&(X+=";m."+u.name);h9(w,X);w.Oo=!0;w.videoData.TD=!0}})}}}; h9=function(w,M){g.C(w.playerState,128)||(w.Pk(GE(w.playerState,1028,9)),w.II("dompaused",{r:M}),w.publish("onAutoplayBlocked"))}; XB=function(w,M){M=M===void 0?!1:M;if(!w.mediaElement||!w.videoData.C)return!1;var P=M;P=P===void 0?!1:P;var u=null;var X;if((X=w.videoData.C)==null?0:X.B){u=a01(w,P);var U;(U=w.loader)==null||U.resume()}else W6(w),w.videoData.Yu&&(u=w.videoData.Yu.NI());X=w.mediaElement.F3();P=!1;X&&X.equals(u)||(h62(w,u),P=!0);g.C(w.playerState,2)||(u=w.kA,M=M===void 0?!1:M,u.G||!(u.C>0)||u.mediaElement&&u.mediaElement.getCurrentTime()>0||(M={Wk:"seektimeline_resumeTime",f8:M},u.videoData.mN||(M.seekSource=15), u.seekTo(u.C,M)));a:{M=P;if(mC(w.videoData)){if(!w.videoData.d5())break a}else if(!g.ex(w.videoData))break a;if(w.mediaElement)if((u=w.videoData.G)&&w.mediaElement.MG()){X=w.mediaElement.vj();if(w.Si)if(X!==w.Si.element)H6(w);else if(M&&u.flavor==="fairplay"&&!bL())H6(w);else break a;if(w.D("html5_report_error_for_unsupported_tvos_widevine")&&bL()&&u.flavor==="widevine")M=w.D("html5_log_fmt_unplaybable_trigger")?"trg.unspttvoswidevine":"drm.unspttvoswidevine",w.WB("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK", M);else{w.Si=new JzF(X,w.videoData,w.P3);w.Si.subscribe("licenseerror",w.A1,w);w.Si.subscribe("qualitychange",w.E2L,w);w.Si.subscribe("heartbeatparams",w.pF,w);w.Si.subscribe("keystatuseschange",w.Kp,w);w.Si.subscribe("ctmp",w.II,w);M=g.G(w.fZ.keys);for(u=M.next();!u.done;u=M.next())u=w.fZ.get(u.value),w.Si.sK(u);w.D("html5_eme_loader_sync")||w.fZ.removeAll()}}else M=w.D("html5_log_fmt_unplaybable_trigger")?"trg.updatedrm":"drm.1",w.WB("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",M)}return P}; h62=function(w,M){w.rK.tick("vta");Tv("vta",void 0,"video_to_ad");w.getCurrentTime()>0&&f0R(w.kA,w.getCurrentTime());w.mediaElement.activate(M);w.aI&&xF(4);!w.videoData.mN&&w.playerState.isOrWillBePlaying()&&w.JM.start();if(rIU(w)){var P;if(M=(P=w.mediaElement)==null?void 0:P.audioTracks())M.onchange=function(){w.publish("internalaudioformatchange",w.videoData,!0)}}}; H6=function(w){w.Si&&(w.Si.dispose(),w.Si=null)}; c8y=function(w){var M=M===void 0?!1:M;w.logger.debug("reattachVideoSource");w.mediaElement&&(w.aI?(H6(w),w.ws(),a01(w,M)):(w.videoData.Yu&&w.videoData.Yu.Qb(),w.mediaElement.stopVideo()),w.playVideo())}; Za4=function(w,M){w.P3.D("html5_log_rebuffer_reason")&&(M={r:M,lact:NW()},w.mediaElement&&(M.bh=Hp(w.mediaElement)),w.II("bufreason",M))}; Sy4=function(w,M){if(w.P3.FX()&&w.mediaElement){var P=w.mediaElement.Z4();P.omt=(w.mediaElement.getCurrentTime()+w.OF()).toFixed(3);P.ps=w.playerState.state.toString(16);P.rt=(g.$0(w.D4.provider)*1E3).toFixed();P.e=M;w.UZ[w.CO++%5]=P}try{if(M==="timeupdate"||M==="progress")return}catch(u){}w.logger.debug(function(){return"video element event "+M})}; Ha2=function(w){if(w.P3.FX()){w.UZ.sort(function(u,X){return+u.rt-+X.rt}); for(var M=g.G(w.UZ),P=M.next();!P.done;P=M.next())P=P.value,w.II("vpe",Object.assign({t:P.rt},P));w.UZ=[];w.CO=0}}; pc4=function(w){if(g.vF("cobalt")&&g.vF("nintendo switch")){var M=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;w.II("nxdock",{d:M})}}; S8=function(w,M){var P;(P=w.loader)==null||y$x(P,M)}; s5u=function(w){$t(w.videoData,"html5_set_debugging_opt_in")&&(w=g.kF(),g.RS(0,183)||(vn(183,!0),w.save()))}; WJy=function(w,M){w.FF.Mv()||(w.II("sgap",{f:M}),w.FF.clearQueue(!1,M==="pe"))}; CK=function(w){return w.D("html5_disable_video_player_initiated_seeks")&&mC(w.videoData)}; Fsl=function(w){ux.call(this,w);var M=this;this.events=new g.V2(w);g.b(this,this.events);p$(this.api,"isLifaAdPlaying",function(){return M.api.isLifaAdPlaying()}); this.events.Y(w,"serverstitchedvideochange",function(){var P;(P=M.api.getVideoData())!=null&&P.VH()&&(M.api.isLifaAdPlaying()?(M.playbackRate=M.api.getPlaybackRate(),M.api.setPlaybackRate(1)):M.api.setPlaybackRate(M.playbackRate))}); this.playbackRate=1}; pJ=function(w){cH.call(this,"En bucle",g.Nk.oZ);this.U=w;var M=w.D("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:LuU();this.setIcon(M);this.subscribe("select",this.L,this);w.createClientVe(this.element,this,28661);this.Y(w,"settingsMenuVisibilityChanged",this.B);this.listen("click",this.logClick);this.Y(w,"onLoopChange",this.onLoopChange);ZT(this,w.getLoopVideo());w.CN().XF(this)}; Euz=function(w){ux.call(this,w);var M=this;w.addEventListener("settingsMenuInitialized",function(){M.menuItem||(M.menuItem=new pJ(M.api),g.b(M,M.menuItem))}); w.addEventListener("videodatachange",function(P,u){P=M.api.getPresentingPlayerType()===2;var X;(X=M.menuItem)==null||X.AD(!u.isLivePlayback&&!P)})}; N5F=function(w){ux.call(this,w);var M=this;this.events=new g.V2(w);g.b(this,this.events);p$(this.api,"seekToChapterWithAnimation",function(P){M.seekToChapterWithAnimation(P)}); p$(this.api,"seekToTimeWithAnimation",function(P,u){M.seekToTimeWithAnimation(P,u)}); p$(this.api,"renderChapterSeekingAnimation",function(P,u,X){M.api.renderChapterSeekingAnimation(P,u,X)}); p$(this.api,"setMacroMarkers",function(P){M.setMacroMarkers(w,P)}); p$(this.api,"changeMarkerVisibility",function(P,u,X){M.changeMarkerVisibility(P,u,X)}); p$(this.api,"isSameMarkerTypeVisible",function(P){return M.isSameMarkerTypeVisible(P)})}; Vip=function(w,M,P){var u=w.api.getCurrentTime()*1E30&&X>0&&(P.width+=X,g.A1(M.element,"width",P.width+"px")));w.size=P}}; g.LJ=function(w,M){var P=w.B[w.B.length-1];P!==M&&(w.B.push(M),J8x(w,P,M))}; g.e8=function(w){if(!(w.B.length<=1)){var M=w.B.pop(),P=w.B[0];w.B=[P];J8x(w,M,P,!0)}}; J8x=function(w,M,P,u){r8z(w);M&&(M.unsubscribe("size-change",w.PV,w),M.unsubscribe("back",w.c_,w));P.subscribe("size-change",w.PV,w);P.subscribe("back",w.c_,w);if(w.J9){g.io(P.element,u?"ytp-panel-animate-back":"ytp-panel-animate-forward");P.XK(w.element);P.focus();w.element.scrollLeft=0;w.element.scrollTop=0;var X=w.size;guF(w);g.w2(w.element,X);w.K=new g.gV(function(){jt_(w,M,P,u)},20,w); w.K.start()}else P.XK(w.element),M&&M.detach()}; jt_=function(w,M,P,u){w.K.dispose();w.K=null;g.io(w.element,"ytp-popup-animating");u?(g.io(M.element,"ytp-panel-animate-forward"),g.PI(P.element,"ytp-panel-animate-back")):(g.io(M.element,"ytp-panel-animate-back"),g.PI(P.element,"ytp-panel-animate-forward"));g.w2(w.element,w.size);w.j=new g.gV(function(){g.PI(w.element,"ytp-popup-animating");M.detach();g.uo(M.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);w.j.dispose();w.j=null},250,w); w.j.start()}; r8z=function(w){w.K&&g.rV(w.K);w.j&&g.rV(w.j)}; B6=function(w){g.lG.call(this,w,"ytp-shopping-product-menu");this.vB=new g.TT(this.U);g.b(this,this.vB);this.hide();g.LJ(this,this.vB);g.bD(this.U,this.element,4)}; tiy=function(w,M,P){var u,X=M==null?void 0:(u=M.text)==null?void 0:u.simpleText;X&&(P=CJH(w,P,X,M==null?void 0:M.icon,M==null?void 0:M.secondaryIcon),M.navigationEndpoint&&P.listen("click",function(){w.U.Vs("innertubeCommand",M.navigationEndpoint);w.hide()},w))}; xQ1=function(w,M,P){var u,X=M==null?void 0:(u=M.text)==null?void 0:u.simpleText;X&&CJH(w,P,X,M==null?void 0:M.icon).listen("click",function(){var U;(M==null?void 0:(U=M.icon)==null?void 0:U.iconType)==="HIDE"?w.U.publish("featuredproductdismissed"):M.serviceEndpoint&&w.U.Vs("innertubeCommand",M.serviceEndpoint);w.hide()},w)}; CJH=function(w,M,P,u,X){M=new g.wa(g.ix({},[],!1,!!X),M,P);X&&M.updateValue("secondaryIcon",Oaz(X));M.setIcon(Oaz(u));g.b(w,M);w.vB.XF(M,!0);return M}; Oaz=function(w){if(!w)return null;switch(w.iconType){case "ACCOUNT_CIRCLE":return{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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 NHF();case "HIDE":return{W:"svg",Z:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"g",J:[{W:"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 No()}}; QI=function(w){YA.call(this,w,!1,!0);this.isCounterfactual=this.L=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.V=!0;this.overflowButton=new g.r({W:"button",d$:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.b(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.r({W:"img",T:"ytp-suggested-action-badge-img",Z:{src:"{{url}}"}}); this.thumbnailImage.hide();g.b(this,this.thumbnailImage);this.thumbnailIcon=new g.r({W:"div",T:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.b(this,this.thumbnailIcon);this.banner=new g.r({W:"a",T:"ytp-suggested-action-container",J:[this.thumbnailImage,this.thumbnailIcon,{W:"div",T:"ytp-suggested-action-details",J:[{W:"text",T:"ytp-suggested-action-title",pu:"{{title}}"},{W:"text",T:"ytp-suggested-action-subtitle",pu:"{{subtitle}}"},{W:"text",T:"ytp-suggested-action-metadata-text", pu:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.b(this,this.banner);this.banner.XK(this.C.element);this.Y(this.U,"videodatachange",this.onVideoDataChange);this.Y(this.U,g.AP("suggested_action_view_model"),this.J9k);this.Y(this.U,g.gL("suggested_action_view_model"),this.cDO);this.Y(this.overflowButton.element,"click",this.cP);this.Y(w,"featuredproductdismissed",this.Uy);this.U.createServerVe(this.banner.element,this.banner,!0)}; aVR=function(w){w.isInitialized&&(w.enabled=w.isVisible,w.Lu=w.isVisible,qF(w),w.oY(),w.thumbnailImage.AD(w.isVisible),w.shouldHideDismissButton||w.dismissButton.AD(w.isVisible),w.shouldShowOverflowButton&&w.overflowButton.AD(w.isVisible))}; kA=function(){QI.apply(this,arguments)}; wPU=function(w){ux.call(this,w);this.B=new kA(this.api);g.b(this,this.B);g.bD(this.api,this.B.element,4)}; Rs=function(w){ux.call(this,w);var M=this;this.B=!0;var P=new g.V2(w);g.b(this,P);P.Y(w,"internalaudioformatchange",function(u,X){iIz(M,u,X)}); P.Y(w,"videoplayerreset",function(){MKx(M)}); P.Y(w,"videodatachange",function(u,X){M.onVideoDataChange(u,X)})}; iIz=function(w,M,P){if(P){var u="";PNu(w,M)&&(u=M,w.api.N().iW=M);if(u&&ukl(w,u)){SDy(w.api,u);var X;dE(Ne(w.api.N(),(X=w.api.getVideoData())==null?void 0:g.Op(X)),function(U){XPH(w,u,U)})}}}; MKx=function(w){var M;if((M=Ft())==null?0:M.size){var P;dE(Ne(w.api.N(),(P=w.api.getVideoData())==null?void 0:g.Op(P)),function(u){(u=$DU(u))&&ukl(w,u)&&(w.api.N().iW=u)})}}; XPH=function(w,M,P){$DU(P)!==M&&(UDM([{settingItemId:nJ(P),settingOptionValue:{stringValue:M}}]),dE(w.aQ(),function(u){EBF(u,nJ(P),{stringValue:M})}))}; fAz=function(w,M){lF(dE(dE(w.aQ(),function(P){return pl_(P,[nJ(M)])}),function(P){if(P){P=g.G(P); for(var u=P.next();!u.done;u=P.next()){var X=u.value;u=X.key;X=X.value;u&&X&&(UDM([{settingItemId:u,settingOptionValue:X}]),MKx(w))}}}),function(){w.B=!0})}; PNu=function(w,M){w=w.api.getAvailableAudioTracks();w=g.G(w);for(var P=w.next();!P.done;P=w.next())if(P=P.value,P.getLanguageInfo().getId()===M)return P;return null}; $DU=function(w){w=nJ(w);var M=Ft();w=M?M.get(w):void 0;return w&&w.stringValue?w.stringValue:""}; nJ=function(w){var M=(484).toString();w&&(M=(483).toString());return M}; ukl=function(w,M){var P;return M.split(".")[0]!==""&&((P=w.api.getVideoData())==null?void 0:!wI(P))}; UDM=function(w){var M=Ft();M||(M=new Map);w=g.G(w);for(var P=w.next();!P.done;P=w.next())P=P.value,M.set(P.settingItemId,P.settingOptionValue);M=JSON.stringify(Object.fromEntries(M));g.Tg("yt-player-user-settings",M,2592E3)}; g.v6=function(w,M,P,u,X,U,f){g.wa.call(this,g.ix({"aria-haspopup":"true"}),M,w);this.Lg=u;this.V=!1;this.C=null;this.options={};this.L=new g.TT(P,void 0,w,X,U,f);g.b(this,this.L);this.listen("keydown",this.PP);this.listen("click",this.open)}; W21=function(w){if(w.C){var M=w.options[w.C];M.element.getAttribute("aria-checked");M.element.setAttribute("aria-checked","false");w.C=null}}; hop=function(w,M){g.v6.call(this,"Temporizador de apagado",g.Nk.SLEEP_TIMER,w,M);this.U=w;this.S={};this.K=this.t2("Off");this.j=this.B="";w.D("web_settings_menu_icons")&&(M=w.D("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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(M)); this.X=new g.r({W:"div",d$:["ytp-menuitem-label-wrapper"],J:[{W:"div",pu:"Fin del video"},{W:"div",d$:["ytp-menuitem-sublabel"],pu:"{{content}}"}]});g.b(this,this.X);this.listen("click",this.onClick);this.Y(w,"videodatachange",this.onVideoDataChange);this.Y(w,"presentingplayerstatechange",this.g$);this.Y(w,"settingsMenuVisibilityChanged",this.fn);w.createClientVe(this.element,this,218889);this.g$();this.U.Vs("onSleepTimerFeatureAvailable")}; clx=function(w){var M="Off 10 15 20 30 45 60".split(" "),P;((P=w.U.getVideoData())==null?0:P.isLivePlayback)||M.push("End of video");P=w.U.getPlaylist();var u;P&&((u=P.listId)==null?void 0:u.type)!=="RD"&&M.push("End of playlist");w.cI(g.EV(M,w.t2));w.S=g.xV(M,w.t2,w);M=w.t2("End of video");w.options[M]&&g.aZ(w.options[M],w.X)}; ZI5=function(w,M){var P=w.S[M],u=P==="End of video"||P==="End of playlist";P==="Off"&&(w.B="");w.U.getPlayerState()!==0&&w.U.getPlayerState()!==5||!u?(w.K=M,g.v6.prototype.p9.call(w,M),w.JV(M),w.U.Vs("onSleepTimerSettingsChanged",P)):w.U.Vs("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; se=function(w){ux.call(this,w);var M=this;w.addEventListener("settingsMenuInitialized",function(){M.menuItem||(M.menuItem=new hop(M.api,M.api.CN()),g.b(M,M.menuItem))}); w.addEventListener("openSettingsMenuItem",function(P){if(P==="menu_item_sleep_timer"){if(!M.menuItem){var u;(u=M.api.CN())==null||u.w7()}M.menuItem.open()}}); p$(w,"resetSleepTimerMenuSettings",function(){M.resetSleepTimerMenuSettings()}); p$(w,"setSleepTimerTimeLeft",function(P){M.setSleepTimerTimeLeft(P)}); p$(w,"setVideoTimeLeft",function(P){M.setVideoTimeLeft(P)})}; Sfx=function(w){ux.call(this,w);var M=this;this.events=new g.V2(w);g.b(this,this.events);this.events.Y(w,"onSnackbarMessage",function(P){switch(P){case 1:P=M.api.getPlayerStateObject(),P.isBuffering()&&(M.api.D("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.C(P,8)&&g.C(P,16))&&M.api.Vs("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl video se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Descubre los motivos"}]},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.bG=function(w,M,P,u,X){M=M===void 0?!1:M;u=u===void 0?!1:u;X=X===void 0?!1:X;g.wC.call(this);this.S=X;this.j=!1;this.X=new yh(this);this.G=this.K=null;this.C=this.L=!1;g.b(this,this.X);this.target=w;this.B=M;this.V=P||w;this.j=u;M&&(g.h1&&this.target.setAttribute("draggable","true"),X||(this.target.style.touchAction="none"));KJ(this)}; Is=function(w){g.qi(w.X,!w.B)}; KJ=function(w){w.G=null;w.K=null;w.Y(A9("over"),w.Rz);w.Y("touchstart",w.Dp);w.B&&w.Y(A9("down"),w.p3$)}; HIy=function(w,M){for(var P=0;PX.start&&P>=5;y+=d}p=y.substr(0,4)+" "+y.substr(4,4)+" "+y.substr(8,4)+" "+(y.substr(12,4)+" "+y.substr(16,4))}else p="";f={video_id_and_cpn:String(M.videoId)+" / "+p,codecs:"",dims_and_frames:"",bandwidth_kbps:f.toFixed(0)+" Kbps",buffer_health_seconds:c.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:Z?"":"display:none",drm:Z,debug_info:P,extra_debug_info:"",bandwidth_style:H,network_activity_style:H,network_activity_bytes:h.toFixed(0)+" KB",shader_info:S,shader_info_style:S?"":"display:none",playback_categories:""};h=u.clientWidth+"x"+u.clientHeight+(X>1?"*"+X.toFixed(2):"");c="-";U.totalVideoFrames&&(c=(U.droppedVideoFrames||0)+" dropped of "+U.totalVideoFrames);f.dims_and_frames=h+" / "+c;w=w.getVolume();h=LE4(M);var e;if((e=M.X)==null?0:e.audio.L)e= "VB";else{var R;e=((R=M.X)==null?0:R.audio.B)?"DRC":Math.round(w*h)+"%"}R=Math.round(w)+"% / "+e;e=M.Ob.toFixed(1);isFinite(Number(e))&&(R+=" (content loudness "+e+"dB)");f.volume=R;f.resolution=u.videoWidth+"x"+u.videoHeight;if(u=M.L){if(R=u.video)e=R.fps,e>1&&(f.resolution+="@"+e),(e=U.LO)&&e.video&&(f.resolution+=" / "+e.video.width+"x"+e.video.height,e.video.fps>1&&(f.resolution+="@"+e.video.fps)),f.codecs=mDl(u),!M.X||u.audio&&u.video?u.Ow&&(f.codecs+=" / "+u.Ow+"A"):f.codecs+=" / "+mDl(M.X), R.B||R.primaries?(e=R.B||"unknown",e==="smpte2084"?e+=" (PQ)":e==="arib-std-b67"&&(e+=" (HLG)"),f.color=e+" / "+(R.primaries||"unknown"),f.color_style=""):f.color_style="display:none";if(u.debugInfo)for(f.fmt_debug_info="",u=g.G(u.debugInfo),R=u.next();!R.done;R=u.next())R=R.value,f.fmt_debug_info+=R.label+":"+R.text+" ";f.fmt_debug_info_style=f.fmt_debug_info&&f.fmt_debug_info.length>0?"":"display:none"}u=M.isLivePlayback;R=M.Gt;f.live_mode_style=u||R?"":"display:none";f.live_latency_style=u?"": "display:none";if(R)f.live_mode="Post-Live"+(qI(M)?" Manifestless":"");else if(u){R=U.kN;f.live_latency_secs=R.toFixed(2)+"s";u=qI(M)?"Manifestless, ":"";M.B3&&(u+="Windowed, ");e="Uncertain";if(R>=0&&R<120)if(M.latencyClass&&M.latencyClass!=="UNKNOWN")switch(M.latencyClass){case "NORMAL":e="Optimized for Normal Latency";break;case "LOW":e="Optimized for Low Latency";break;case "ULTRALOW":e="Optimized for Ultra Low Latency";break;default:e="Unknown Latency Setting"}else e=M.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";u+=e;(R=U.yT)&&(u+=", seq "+R.sequence);f.live_mode=u}!U.isGapless||FM(M)&&U.Mv||(f.playback_categories+="Gapless ");f.playback_categories_style=f.playback_categories?"":"display:none";f.bandwidth_samples=U.wE;f.network_activity_samples=U.v2;f.live_latency_samples=U.Dm;f.buffer_health_samples=U.S8;U=g.uD(M);if(M.cotn||U)f.cotn_and_local_media=(M.cotn?M.cotn:"null")+" / "+U;f.cotn_and_local_media_style=f.cotn_and_local_media?"":"display:none"; $t(M,"web_player_release_debug")?(f.release_name=W[27],f.release_style=""):f.release_style="display:none";f.debug_info&&F.length>0&&f.debug_info.length+F.length<=60?f.debug_info+=" "+F:f.extra_debug_info=F;f.extra_debug_info_style=f.extra_debug_info&&f.extra_debug_info.length>0?"":"display:none";return f}; mDl=function(w){var M=/codecs="([^"]*)"/.exec(w.mimeType);return M&&M[1]?M[1]+" ("+w.itag+")":w.itag}; xA=function(w,M,P,u,X){g.r.call(this,{W:"div",T:"ytp-horizonchart"});this.j=M;this.sampleCount=P;this.X=u;this.K=X;this.index=0;this.heightPx=-1;this.C=this.L=null;this.B=Math.round(w/P);this.element.style.width=this.B*this.sampleCount+"px";this.element.style.height=this.j+"em"}; Oe=function(w,M){if(w.heightPx===-1){var P=null;try{P=g.HS("CANVAS"),w.L=P.getContext("2d")}catch(h){}if(w.L){var u=w.B*w.sampleCount;w.C=P;w.C.width=u;w.C.style.width=u+"px";w.element.appendChild(w.C)}else for(w.sampleCount=Math.floor(w.sampleCount/4),w.B*=4,P=0;P1?2:1,w.C.height=w.heightPx*P,w.C.style.height= w.heightPx+"px",w.L.scale(1,P)));M=g.G(M);for(u=M.next();!u.done;u=M.next()){P=w;var X=w.index,U=u.value;for(u=0;u+20&&g.ES(M.L.element);u.classList.add("ytp-timely-actions-overlay");M.L.element.appendChild(u)}); g.b(this,this.L);this.D("web_player_overlay_positioned_layout")?this.events.Y(w,"basechromeinitialized",function(){M.api.MS(M.L.element,4,!0);M.L.element.setAttribute("data-overlay-order","10")}):g.bD(this.api,this.L.element,4)}; Roy=function(w){w.timelyActions&&(w.X=w.timelyActions.reduce(function(M,P){if(P.cueRangeId===void 0)return M;M[P.cueRangeId]=0;return M},{}))}; P4=function(w,M){if(w.timelyActions){w=g.G(w.timelyActions);for(var P=w.next();!P.done;P=w.next())if(P=P.value,P.cueRangeId===M)return P}}; ndR=function(w,M){if((w=P4(w,M))&&w.onCueRangeExit)return lX(w.onCueRangeExit)}; M0=function(w){if(w.B!==void 0){var M=(M=P4(w,w.B))&&M.onCueRangeEnter?lX(M.onCueRangeEnter):void 0;var P=P4(w,w.B);a:if(P&&P.additionalTrigger){var u=g.G(P.additionalTrigger);for(var X=u.next();!X.done;X=u.next())if(X=X.value,X.type){var U=void 0,f=void 0;if((U=w.mN[X.type])==null?0:U((f=X.args)!=null?f:{})){u=!0;break a}}u=!1}else u=!0;M&&u&&(w.api.Vs("innertubeCommand",M),w.setTimeout(P),w.X[w.B]!==void 0&&w.X[w.B]++,w.S=!0)}}; eoU=function(w,M){return w.C===void 0?!1:M.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(M.seekLengthMilliseconds)===5E3?w.C===72:M.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(M.seekLengthMilliseconds)===1E4?w.C===74:M.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(M.seekLengthMilliseconds)===5E3?w.C===71:M.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(M.seekLengthMilliseconds)===1E4?w.C===73:!1}; BcU=function(w){if(w=w.getWatchNextResponse()){var M,P;w=(M=w.playerOverlays)==null?void 0:(P=M.playerOverlayRenderer)==null?void 0:P.timelyActionsOverlayViewModel;M=g.A(w,vdp);if(M!=null&&M.timelyActions)return M==null?void 0:M.timelyActions.map(function(u){return g.A(u,sk1)}).filter(function(u){return!!u})}}; K2u=function(w){ux.call(this,w);var M=this;FO(this.api,"getPlaybackRate",function(){return M.api.getPlaybackRate()}); FO(this.api,"setPlaybackRate",function(P){typeof P==="number"&&M.api.setPlaybackRate(P)})}; up=function(w,M,P,u){cH.call(this,"VOICE_BOOST",g.Nk.W$);this.B=!1;this.U=w;this.Lg=w.CN();this.X=M;this.C=P;this.hasVoiceBoostAudioTrack=u;this.Y(w,"videodatachange",this.L);this.setIcon(YmF());this.subscribe("select",this.K,this);this.L()}; Xf=function(w){ux.call(this,w);var M=this;this.events=new g.V2(w);g.b(this,this.events);this.events.Y(w,"settingsMenuInitialized",function(){bIu(M)}); p$(this.api,"getVoiceBoostUserPreference",function(){return M.getVoiceBoostUserPreference()}); p$(this.api,"setVoiceBoostUserPreference",function(u){M.setVoiceBoostUserPreference(u)}); p$(this.api,"hasVoiceBoostAudioTrack",function(){return M.hasVoiceBoostAudioTrack()}); var P;this.B=(P=PMx())!=null?P:0;this.updateEnvironmentData()}; bIu=function(w){w.menuItem||(w.menuItem=new up(w.api,function(M){w.setVoiceBoostUserPreference(M)},function(){return w.getVoiceBoostUserPreference()},function(){return w.hasVoiceBoostAudioTrack()}),g.b(w,w.menuItem))}; IAl=function(w){w=w.xa();if(!w)return!1;w=g.w$(w).exp||"";return w.includes("xpv")||w.includes("xpe")}; Al5=function(w){w=g.G(g.$l(w,!0));for(var M=w.next();!M.done;M=w.next())if(IAl(M.value))return!0;return!1}; gdz=function(w,M){w=g.G(g.$l(w,!0));for(var P=w.next();!P.done;P=w.next())if(P=P.value,IAl(P)){var u={potc:"1",pot:M};P.url&&(P.url=iL(P.url,u))}}; JlF=function(w){return g.n(function(M){if(M.L==1)return g.DU(M,2),g.B(M,w,4);if(M.L!=2)return g.zp(M,0);g.d4(M);g.yx(M)})}; fo=function(w){ux.call(this,w);var M=this;this.useLivingRoomPoToken=!1;this.G=new g.hC;this.B=!1;this.rK=null;this.V=!1;this.X=null;this.K=!1;var P=w.N().getWebPlayerContextConfig();this.events=new g.V2(w);g.b(this,this.events);this.events.Y(w,"spsumpreject",function(u,X,U){M.K=X;u&&M.V&&!M.X&&(M.D("html5_generate_content_po_token")&&U?M.cV(U):M.D("html5_generate_session_po_token")&&rlM(M));M.X||M.api.II("stp",{s:+M.V,b:+M.K})}); this.events.Y(w,"poTokenVideoBindingChange",function(u){M.cV(u)}); this.useLivingRoomPoToken=!(P==null||!P.useLivingRoomPoToken);w.addEventListener("csiinitialized",function(){M.rK=w.Li();var u=(M.D("html5_generate_session_po_token")||M.D("html5_generate_content_po_token"))&&!M.useLivingRoomPoToken;try{if(M.D("html5_use_shared_owl_instance"))jkl(M);else if(u){M.rK.BZ("pot_isc");var X=g.Oh(M.api.N().experiments,"html5_webpo_kaios_defer_timeout_ms");X?(M.C=Ro(),g.cF(function(){UW(M)},X)):M.D("html5_webpo_idle_priority_job")?(M.C=Ro(),g.rH(g.C0(),function(){UW(M)})): UW(M)}}catch(U){U instanceof Error&&g.Yq(U)}}); w.addEventListener("trackListLoaded",this.j1.bind(this));w.iQ(this)}; CN2=function(w){var M=HM(w.experiments,"html5_web_po_request_key");return M?M:g.Z$(w)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; tKR=function(w){var M=new uHR,P={},u=(P["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",P);return new F1(M,w,function(){return u})}; xD5=function(w){return new Eo(w)}; W4=function(w,M){w.D("html5_webpo_bge_ctmp")&&w.api.II(M,{hwpo:!!w.L,hwpor:w.B})}; jkl=function(w){var M,P;g.n(function(u){if(u.L==1)return W4(w,"swpo_i"),w.C=Ro(),hI(w),g.B(u,t0(),2);if(u.L!=3)return M=u.B,W4(w,"swpo_co"),g.B(u,QPy(M),3);P=u.B;w.D("html5_web_po_token_disable_caching")||P.tf(150);w.L=P;W4(w,"swpo_cc");JlF(P.WM()).then(function(){w.B=!0;w.G.resolve();W4(w,"swpo_re")}); g.cF(function(){UW(w);W4(w,"swpo_si")},0); g.yx(u)})}; wsH=function(w){var M=w.api.N(),P=tKR(CN2(M)),u=P.ym.bind(P);P.ym=function(h){var c;return g.n(function(Z){if(Z.L==1)return g.B(Z,u(h),2);c=Z.B;w.api.II("itr",{});return Z.return(c)})}; try{var X=xD5({ED:P,tW:{maxAttempts:5},uf:{bv:"CLEn",disable:M.experiments.nu("html5_web_po_disable_remote_logging")||OIx.includes(g.f5(M.GJ)||""),ra:rOl(M.experiments),vH:M.experiments.nu("wpo_gel_strz")?function(h){var c=aA1.get(h);c||(c=new SUF(h),c=new g.kv(c),aA1.set(h,c));return c}:void 0, B$W:w.D("wpo_dis_lfdms")?0:1E3},SOu:g.Yq});var U=new QK({Aw:X,ED:P,onError:g.Yq});JlF(U.WM()).then(function(){w.B=!0;w.G.resolve()}); w.D("html5_web_po_token_disable_caching")||U.tf(150);g.b(w,X);g.b(w,U);w.L=U}catch(h){g.Yq(h);var f;(f=X)==null||f.dispose()}}; UW=function(w){var M=w.api.N();w.rK.BZ("pot_ist");w.L||wsH(w);w.D("html5_bandaid_attach_content_po_token")||(w.D("html5_generate_session_po_token")&&(hI(w),rlM(w)),M=g.Oh(M.experiments,"html5_session_po_token_interval_time_ms")||0,M>0&&(w.j=g.ZK(function(){hI(w)},M)),w.V=!0)}; hI=function(w){var M,P,u,X;g.n(function(U){if(!w.D("html5_generate_session_po_token")||w.useLivingRoomPoToken)return U.return();M=w.api.N();P=g.AR("EOM_VISITOR_DATA")||g.AR("VISITOR_DATA");u=M.ih?M.datasyncId:P;X=HM(M.experiments,"html5_mock_content_binding_for_session_token")||M.livingRoomPoTokenId||u;M.pV=c4(w,X);g.yx(U)})}; c4=function(w,M){if(!w.L){if(w.C)try{return w.C(M)}catch(U){g.Yq(U)}return""}try{w.rK.BZ(w.B?"pot_cms":"pot_csms");var P={B2:!0,Le:!0,FW:M};w.D("html5_web_po_token_disable_caching")||(P.RA={m5:M,KB:!0,aJ:!0});var u=w.L.un(P);w.rK.BZ(w.B?"pot_cmf":"pot_csmf");if(w.B){var X;(X=w.X)==null||X.resolve();w.X=null;w.K&&(w.K=!1,w.api.app.uW().fE(!1))}return u}catch(U){return g.Yq(U),""}}; rlM=function(w){w.L&&(w.X=new cp,w.G.promise.then(function(){w.rK.BZ("pot_if");hI(w)}))}; g.Z0=function(w,M,P){g.X6(w.element,"ytp-suggestion-set",!!M.videoId);var u=M.playlistId;P=M.Md(P?P:"mqdefault.jpg");var X=null,U=null;M instanceof np&&(M.lengthText?(X=M.lengthText||null,U=M.Hp||null):M.lengthSeconds&&(X=g.N9(M.lengthSeconds),U=g.N9(M.lengthSeconds,!0)));var f=!!u;u=f&&k3(u).type==="RD";var h=M instanceof np?M.isLivePlayback:null,c=M instanceof np?M.isUpcoming:null,Z=M.author,S=M.shortViewCount,H=M.publishedTimeText,p=[],F=[];Z&&p.push(Z);S&&(p.push(S),F.push(S));H&&F.push(H);P= {title:M.title,author:Z,author_and_views:p.join(" \u2022 "),aria_label:M.ariaLabel||g.iM("Ver $TITLE",{TITLE:M.title}),duration:X,timestamp:U,url:M.eA(),is_live:h,is_upcoming:c,is_list:f,is_mix:u,background:P?"background-image: url("+P+")":"",views_and_publish_time:F.join(" \u2022 "),autoplayAlternativeHeader:M.Es};M instanceof RD&&(P.playlist_length=M.playlistLength);w.update(P)}; g.SO=function(w){var M=w.N(),P=g.p3||g.vM?{style:"will-change: opacity"}:void 0,u=M.X,X=["ytp-modern-videowall-still"];M.L&&X.push("ytp-videowall-show-text");g.r.call(this,{W:"a",d$:X,Z:{href:"{{url}}",target:u?M.S:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},J:[{W:"div",T:"ytp-modern-videowall-still-image",Z:{style:"{{background}}"},J:[{W:"span",T:"ytp-modern-videowall-still-info-duration",pu:"{{duration}}"}]},{W:"span",T:"ytp-modern-videowall-still-info", Z:{"aria-hidden":"true"},J:[{W:"span",T:"ytp-modern-videowall-still-info-bg",J:[{W:"span",T:"ytp-modern-videowall-still-info-content",Z:P,J:[{W:"span",T:"ytp-modern-videowall-still-info-title",pu:"{{title}}"},{W:"span",T:"ytp-modern-videowall-still-info-author",pu:"{{author_and_views}}"},{W:"span",T:"ytp-modern-videowall-still-info-live",pu:"En vivo"}]}]}]},{W:"span",d$:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],Z:{"aria-hidden":"true"},J:[{W:"span",T:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{W:"span",T:"ytp-modern-videowall-still-listlabel-length",J:[" (",{W:"span",pu:"{{playlist_length}}"},")"]}]},{W:"span",d$:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],Z:{"aria-hidden":"true"},J:[{W:"span",T:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{W:"span",T:"ytp-modern-videowall-still-listlabel-length",pu:" (50+)"}]}]});this.suggestion=null;this.L=u;this.api=w;this.B=new g.V2(this);g.b(this,this.B);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.B.Y(w,"videodatachange",this.onVideoDataChange);w.createServerVe(this.element,this);this.onVideoDataChange()}; g.iGx=function(w,M){if(w.suggestion!==M){w.suggestion=M;var P=w.api.N();g.Z0(w,M,"hqdefault.jpg");if(g.K7(P)&&!w.api.D("web_player_log_click_before_generating_ve_conversion_params")){P=M.eA();var u={};g.Nl(w.api,"addEmbedsConversionTrackingParams",[u]);P=g.p5(P,u);w.updateValue("url",P)}(M=(M=M.sessionData)&&M.itct)&&w.api.setTrackingParams(w.element,M)}}; H4=function(w,M){g.r.call(this,{W:"div",d$:["ytp-fullscreen-grid"],J:[{W:"div",T:"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"}},{W:"div",d$:["ytp-fullscreen-grid-content","ytp-fullscreen-grid-stills-container"]}]});this.player=w;this.stills=[];this.videoData=null;this.currentState=0;this.X=this.element.querySelector(".ytp-fullscreen-grid-stills-container");this.B= new g.V2(this);g.b(this,this.B);this.L=M;if(w=this.element.querySelector(".ytp-fullscreen-grid-hover-overlay"))this.Y(w,"click",this.C),L$(this.player,w,this);if(w=this.player.getVideoData(1))this.videoData=w;this.B.Y(this.player,"videodatachange",this.onVideoDataChange)}; EW=function(w){ux.call(this,w);var M=this;this.B=this.L=0;this.K=null;this.X=0;var P=new g.V2(w);g.b(this,P);this.S=this.api.D("web_player_imax_theater_mode");this.C=this.api.D("web_player_enable_fullscreen_grid_components");P.Y(w,"fullscreentoggled",function(){po(M)}); P.Y(w,"autohideupdate",function(u){u&&M.L===2&&Ff(M,1)}); P.Y(w,"videodatachange",function(){if(M.C){var u=M.api.getVideoData(1);M.videoData!==u&&M.L===2&&Ff(M,1);M.videoData=u}},this); P.Y(w,"sizestylechange",function(){M.C&&po(M)}); p$(this.api,"setFullscreenQuickActions",function(u){M.setFullscreenQuickActions(u)}); p$(this.api,"setPlayerOverlayVideoDetailsRenderer",function(u){M.setPlayerOverlayVideoDetailsRenderer(u)}); this.C&&MoR(this,P,w)}; MoR=function(w,M,P){M.Y(P,"keyboardserviceglobalkeydown",function(u,X){w.C&&u.keyCode===86&&!u.repeat&&w.L!==0&&(X&&(X.Gi=!0),P12(w))}); M.Y(w.api.getRootNode(),"wheel",function(u){var X;if(w.C&&(X=w.G)!=null&&X.element&&w.L!==0)if(g.io(w.api.getRootNode(),"ytp-grid-scrolling"),w.X===0&&(w.X=window.innerHeight),w.L===1)u.preventDefault(),w.X!==0&&(w.B+=u.deltaY/w.X,w.B=Math.min(Math.max(w.B,0),.85),w.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+w.B.toString()),uhl(w,Math.abs(w.B)>=.85));else if(w.L===2){X=u.deltaY<0;var U,f=((U=w.G)==null?void 0:U.element.scrollTop)===0;X&&f?(u.preventDefault(),w.X!==0&&(w.B+= u.deltaY/w.X,w.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+w.B.toString()),uhl(w,Math.abs(w.B)>=.85))):w.B!==0&&(w.B=0,w.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0"))}}); M.Y(P,"standardControlsInitialized",function(){if(!w.G){w.G=new H4(w.api,w.V.bind(w));g.b(w,w.G);var u=w.api.getRootNode().querySelector(".ytp-chrome-bottom");u&&u.parentNode&&u.parentNode.insertBefore(w.G.element,u.nextSibling)}}); Xs_(w,w.L)}; uhl=function(w,M){w.K&&clearTimeout(w.K);M?$82(w):w.K=window.setTimeout(function(){$82(w)},150)}; $82=function(w){w.K&&(clearTimeout(w.K),w.K=null);w.X=0;w.C&&w.L!==0&&(Math.abs(w.B)>=.15&&P12(w),w.B=0,w.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+w.B.toString()),g.PI(w.api.getRootNode(),"ytp-grid-scrolling"))}; P12=function(w){w.C&&(w.L===1?Ff(w,2):Ff(w,1))}; po=function(w){var M=w.api.isFullscreen()||w.S&&w.api.hF();w.j&&g.Mq(w.j,M);w.playerOverlayVideoDetailsRenderer&&g.Mq(w.playerOverlayVideoDetailsRenderer,M);w.C&&(M?w.L!==2&&Ff(w,1):Ff(w,0))}; Ff=function(w,M){w.L=M;var P;(P=w.G)==null||P.g7(M);w.B=0;w.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+w.B.toString());Xs_(w,M)}; Xs_=function(w,M){w=w.api.getRootNode();g.X6(w,"ytp-fullscreen-grid-peaking",M===1);g.X6(w,"ytp-fullscreen-grid-active",M===2)}; U85=function(w){ux.call(this,w);var M=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.V2(w);g.b(this,this.events);this.events.Y(w,"heartbeatRequest",function(P){if(M.freePreviewUsageDetails.length||M.freePreviewWatchedDuration!==null)P.heartbeatRequestParams||(P.heartbeatRequestParams={}),P.heartbeatRequestParams.unpluggedParams||(P.heartbeatRequestParams.unpluggedParams={}),M.freePreviewUsageDetails.length>0?P.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= M.freePreviewUsageDetails:P.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+M.freePreviewWatchedDuration}}); p$(w,"setFreePreviewWatchedDuration",function(P){M.freePreviewWatchedDuration=P}); p$(w,"setFreePreviewUsageDetails",function(P){M.freePreviewUsageDetails=P})}; N0=function(w){g.v.call(this);this.features=[];var M=this.B,P=new eZ(w),u=new XQ(w),X=new VI(w),U=new fo(w);var f=g.hP(w.N())?void 0:new qk(w);var h=new NF(w),c=new DD5(w),Z=new K2u(w),S=new L6(w);var H=g.hP(w.N())?new U85(w):void 0;var p=w.D("html5_enable_ssap")?new VK4(w):void 0;var F;var E=(F=w.N().getWebPlayerContextConfig())!=null&&F.cinematicSettingsAvailable?new of(w):void 0;F=new lx(w);var y=w.D("enable_courses_player_overlay_purchase")?new gTF(w):void 0;var q=g.fp(w.N())?new KY2(w):void 0; var d=new YN(w);var l=w.N().X?new QJ1(w):void 0;var e=g.K7(w.N())?new BEp(w):void 0;var R=w.D("web_player_move_autonav_toggle")&&w.N().DO?new qDy(w):void 0;var I=g.fp(w.N())?new N5F(w):void 0;var w4=w.D("web_enable_speedmaster")&&g.fp(w.N())?new rh(w):void 0;var t=w.N().Ye?void 0:new L2R(w);var $M=w.D("report_pml_debug_signal")?new oTx(w):void 0;var fz=new Lsl(w),U1=new yI(w);var ZU=g.LW(w.N())?new bay(w):void 0;var M_=navigator.mediaSession&&window.MediaMetadata&&w.N().c8?new FB(w):void 0;var Tp= w.D("html5_enable_drc")&&!w.N().K?new DT(w):void 0;var kM=new U6(w);var w3=g.fp(w.N())?new wPU(w):void 0;var sE=w.D("html5_enable_d6de4")?new mg(w):void 0;var Vt=g.fp(w.N())&&w.D("web_sleep_timer")?new se(w):void 0;var v5=g.K7(w.N())?new Rgu(w):void 0;var OE=new Rs(w),pC=new lox(w),g3=new Fsl(w);var MK=w.D("enable_sabr_snackbar_message")?new Sfx(w):void 0;var T=w.D("web_enable_timely_actions")?new kjR(w):void 0;var nE=new G0(w);var ep=g.fp(w.N())?new EW(w):void 0;var P5=w.D("html5_enable_voice_boost")? new Xf(w):void 0;w=w.D("web_player_loop_settings_menu")&&w.N().AF?new Euz(w):void 0;M.call(this,P,u,X,U,f,h,c,Z,S,H,p,E,F,y,q,d,l,e,R,I,w4,t,$M,fz,U1,ZU,void 0,M_,Tp,kM,void 0,w3,sE,Vt,v5,void 0,OE,pC,g3,void 0,MK,T,nE,ep,P5,void 0,w,void 0)}; fyu=function(){this.L=this.B=NaN}; W35=function(w,M){this.P3=w;this.timerName="";this.C=!1;this.L=NaN;this.X=new fyu;this.B=M||null;this.C=!1}; hnu=function(w,M,P){var u=g.r8(M.r$)&&!M.r$.K;if(M.r$.H_&&(Ij(M.r$)||M.r$.Cu==="shortspage"||H0(M.r$)||u)&&!w.C){w.C=!0;w.K=M.clientPlaybackNonce;g.AR("TIMING_ACTION")||Ig("TIMING_ACTION",w.P3.csiPageType);w.P3.csiServiceName&&Ig("CSI_SERVICE_NAME",w.P3.csiServiceName);if(w.B){u=w.B.Li();for(var X=g.G(Object.keys(u)),U=X.next();!U.done;U=X.next())U=U.value,yc(U,u[U],w.timerName);u=g.j2(Jh4)(w.B.ey);g.Db(u,w.timerName);u=w.B;u.B={};u.ey={}}g.Db({playerInfo:{visibilityState:g.j2(g1U)()},playerType:"LATENCY_PLAYER_HTML5"}, w.timerName);w.G!==M.clientPlaybackNonce||Number.isNaN(w.L)||(YL("_start",w.timerName)?P=g.j2(NH)("_start",w.timerName)+w.L:g.Yq(new g.bK("attempted to log gapless pbs before CSI timeline started",{cpn:M.clientPlaybackNonce})));P&&!YL("pbs",w.timerName)&&VT(w,P)}}; VT=function(w,M,P){yc("pbs",M!=null?M:(0,g.G$)(),P!=null?P:w.timerName)}; m_=function(w){MU_();idz();w.timerName=""}; cZy=function(w){if(w.B){var M=w.B;M.B={};M.ey={}}w.C=!1;w.G=void 0;w.L=NaN}; ZG5=function(w,M){g.wC.call(this);this.r$=w;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.B=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.V={};this.L=0;if(w=M.session_data)this.sessionData=tR(w,"&");this.index=Math.max(0,Number(M.index)||0);this.loop=!!M.loop;this.startSeconds=Number(M.startSeconds)||0;this.title=M.playlist_title||"";this.description=M.playlist_description||"";this.author= M.author||M.playlist_author||"";M.video_id&&(this.items[this.index]=M);if(w=M.api)typeof w==="string"&&w.length===16?M.list="PL"+w:M.playlist=w;if(w=M.list)switch(M.listType){case "user_uploads":this.listId=new Qo("UU","PLAYER_"+w);break;default:var P=M.playlist_length;P&&(this.length=Number(P)||0);this.listId=k3(w);if(w=M.video)this.items=w.slice(0),this.loaded=!0}else if(M.playlist){w=M.playlist.toString().split(",");this.index>0&&(this.items=[]);w=g.G(w);for(P=w.next();!P.done;P=w.next())(P=P.value)&& this.items.push({video_id:P});this.length=this.items.length;if(w=M.video)this.items=w.slice(0),this.loaded=!0}this.setShuffle(!!M.shuffle);if(w=M.suggestedQuality)this.quality=w;this.V=lT(M,"playlist_");this.C=(M=M.thumbnail_ids)?M.split(","):[]}; Sx_=function(w){return!!(w.playlist||w.list||w.api)}; HGz=function(w){var M=w.index+1;return M>=w.length?0:M}; ps4=function(w){var M=w.index-1;return M<0?w.length-1:M}; g.o5=function(w,M,P,u){M=M!==void 0?M:w.index;M=w.items&&M in w.items?w.items[w.order[M]]:null;var X=null;M&&(P&&(M.autoplay="1"),u&&(M.autonav="1"),X=new g.ut(w.r$,M),g.b(w,X),X.AQ=!0,X.startSeconds=w.startSeconds||X.clipStart||0,w.listId&&(X.playlistId=w.listId.toString()));return X}; F3p=function(w,M){w.index=g.bi(M,0,w.length-1);w.startSeconds=0}; EPF=function(w,M){if(M.video&&M.video.length){w.title=M.title||"";w.description=M.description;w.views=M.views;w.likes=M.likes;w.dislikes=M.dislikes;w.author=M.author||"";var P=M.loop;P&&(w.loop=P);P=g.o5(w);w.items=[];for(var u=g.G(M.video),X=u.next();!X.done;X=u.next())if(X=X.value)X.video_id=X.encrypted_id,w.items.push(X);w.length=w.items.length;(M=M.index)?w.index=M:w.findIndex(P);w.setShuffle(!1);w.loaded=!0;w.L++;w.B&&w.B()}}; m8z=function(w,M){var P,u,X,U,f,h,c;return g.n(function(Z){if(Z.L==1){P=g.IY();var S=w.N(),H={context:g.Sq(w),playbackContext:{contentPlaybackContext:{ancestorOrigins:S.ancestorOrigins}}},p=S.getWebPlayerContextConfig();if(p==null?0:p.encryptedHostFlags)H.playbackContext.contentPlaybackContext.encryptedHostFlags=p.encryptedHostFlags;if(p==null?0:p.hideInfo)H.playerParams={showinfo:!1};S=S.embedConfig;p=M.docid||M.video_id||M.videoId||M.id;if(!p){p=M.raw_embedded_player_response;if(!p){var F=M.embedded_player_response; F&&(p=JSON.parse(F))}if(p){var E,y,q,d,l,e;p=((e=g.A((E=p)==null?void 0:(y=E.embedPreview)==null?void 0:(q=y.thumbnailPreviewRenderer)==null?void 0:(d=q.playButton)==null?void 0:(l=d.buttonRenderer)==null?void 0:l.navigationEndpoint,g.c7))==null?void 0:e.videoId)||null}else p=null}E=(E=p)?E:void 0;y=w.playlistId?w.playlistId:M.list;q=M.listType;if(y){var R;q==="user_uploads"?R={username:y}:R={playlistId:y};NWl(S,E,M,R);H.playlistRequest=R}else M.playlist?(R={templistVideoIds:M.playlist.toString().split(",")}, NWl(S,E,M,R),H.playlistRequest=R):E&&(R={videoId:E},S&&(R.serializedThirdPartyEmbedConfig=S),H.singleVideoRequest=R);u=H;X=g.CW(Voy);g.DU(Z,2);return g.B(Z,g.LU(P,u,X),4)}if(Z.L!=2)return U=Z.B,f=w.N(),M.raw_embedded_player_response=U,f.ys=Xr(M,g.K7(f)),f.C=f.ys==="EMBEDDED_PLAYER_MODE_PFL",U&&(h=U,h.trackingParams&&jb(h.trackingParams)),Z.return(new g.ut(f,M));c=g.d4(Z);c instanceof Error||(c=Error("b259802748"));g.qU(c);return Z.return(w)})}; NWl=function(w,M,P,u){P.index&&(u.playlistIndex=String(Number(P.index)+1));u.videoId=M?M:"";w&&(u.serializedThirdPartyEmbedConfig=w)}; g.yT=function(w,M){Ge.get(w);Ge.set(w,M)}; g.D0=function(w){g.wC.call(this);this.loaded=!1;this.player=w}; oPx=function(){this.L=[];this.B=[]}; g.$l=function(w,M){return M?w.B.concat(w.L):w.B}; g.q0=function(w,M){switch(M.kind){case "asr":G4y(M,w.L);break;default:G4y(M,w.B)}}; G4y=function(w,M){g.Nj(M,function(P){return w.equals(P)})||M.push(w)}; g.Yl=function(w){g.v.call(this);this.h9=w;this.L=new oPx;this.X=null;this.G=[];this.V=[]}; g.ze=function(w,M,P){g.Yl.call(this,w);this.videoData=M;this.audioTrack=P;this.B=null;this.C=!1;this.G=M.U$;this.V=M.xJ;this.C=g.Ck(M)}; g.yZl=function(w,M){var P;return w.N().D("safari_live_drm_captions_fix")&&((P=w.getVideoData())==null?0:P.d5())?!1:g.hP(w.N())&&!M.isManifestless}; g.Te=function(w,M){return sI(w.info.mimeType)?M?w.info.itag===M:!0:!1}; g.D8M=function(w,M){if(w.B!=null&&g.yZl(M,w.B)&&w.B.B.rawcc!=null)return!0;if(!w.dK())return!1;M=!!w.B&&w.B.isManifestless&&Object.values(w.B.B).some(function(P){return g.Te(P,"386")}); w=!!w.B&&!w.B.isManifestless&&g.ZOU(w.B);return M||w}; g.d7=function(w,M,P,u,X,U){g.Yl.call(this,w);this.videoId=P;this.bS=X;this.eventId=U;this.K={};this.B=null;w=u||g.w$(M).hl||"";w=w.split("_").join("-");this.C=iL(M,{hl:w})}; qxl=function(w,M){g.v.call(this);var P=this;this.U=w;this.X=M;this.ey={};this.B={};this.L=null;this.C=new Set;this.G=new g.V2(this);this.yH={MS$:function(){return P.X}}; this.K=this.U.D("web_player_defer_modules");this.BB=new Map;g.b(this,this.G);this.G.Y(w,"videodatachange",this.onVideoDataChange)}; Yx4=function(w,M){w.L=M}; g.lp=function(w){return w.BB.get("captions")}; BWx=function(w,M){switch(M){case "ad":return znz(w);case "annotations_module":return w.U.isEmbedsShortsMode()?w=!1:(M=w.U,w=M.N(),M=M.getVideoData(),w=w.C||M.R0||w.controlsType==="3"?!1:w.UO.isEmpty()&&w.playerStyle!=="annotation-editor"&&w.playerStyle!=="live-dashboard"?!!M.eL||!!g.JM(M)||!!g.rN(M):!0),w;case "asmjs":return TWM(w);case "creatorendscreen":return d8H(w);case "embed":return g.K7(w.U.N());case "endscreen":return g.lyM(w);case "heartbeat":return w.qN();case "kids":return wD(w.U.N()); case "remote":return w.U.N().tF;case "miniplayer":return w.U.N().showMiniplayerUiWhenMinimized;case "offline":return w.U.N().Ci;case "captions":return L32(w);case "unplugged":return g.jY(w.U.N());case "ux":return w.U.N().jL;case "webgl":return enH(w);case "ypc":return w.yI();case "ypc_clickwrap":return w=w.U.getVideoData(),w.pV&&!w.CA;case "yto":return!!w.U.getVideoData().Lu.includes("yto");default:return g.qU(Error("Module descriptor "+M+" does not match")),!1}}; Lo=function(w,M,P,u,X){var U;P=P===void 0?!1:P;u=u===void 0?!1:u;var f=w.BB.get(M);if(!f||u)if(X||(X=function(){Lo(w,M,P,u)}),U||(U=function(){w.U.LV(M)}),f=f||Qpu(w,M,BWx(w,M),X,U))w.BB.set(M,f),f.create(),w.U.publish("modulecreated",M),P&&w.U.OE("onApiChange")}; RnH=function(w){var M=M===void 0?!1:M;var P,u,X,U,f;return g.n(function(h){if(h.L==1)return(P=w.BB.get("asmjs"))&&!M?h.return(P):(u=Ge.get("asmjs"))!=null?(X=u,h.M0(2)):g.B(h,new Promise(function(c,Z){k4M(w,"asmjs",function(){var S=Ge.get("asmjs");S?c(S):Z("cannot load module asmjs")},Z)}),3); h.L!=2&&(X=h.B);U=X;if(!U)return h.return(Promise.reject("cannot load module asmjs"));f=new U(w.U);w.BB.set("asmjs",f);f.create();return h.return(f)})}; spu=function(w){nPu(w)&&w.ue();vPx(w)&&(Lo(w,"captions",!0),Lo(w,"endscreen"),w.xd(),Lo(w,"creatorendscreen",!0))}; vPx=function(w){var M=w.U.getVideoData(),P=w.K&&!M.isInlinePlaybackNoAd;w.U.D("html5_defer_modules_on_ads_only")&&!M.isAd()&&(P=!1);return P}; nPu=function(w){w=w.U.getVideoData();var M;if(M=w.D("web_player_defer_ad")){if(g.o$(w.Lu,"ad")||EHl(w)||w.enableServerStitchedDai)w=!1;else{M=w.playerResponse;w=w.startSeconds;var P=M==null?void 0:M.adPlacements;if(M=P){M=Number.MAX_VALUE;P=g.G(P);for(var u=P.next();!u.done;u=P.next())if(u=u.value.adPlacementRenderer){var X=void 0,U=(X=u.config)==null?void 0:X.adPlacementConfig;X=void 0;if(((X=U)==null?void 0:X.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var f=X=void 0;U=Number((X=U)==null?void 0:(f= X.adTimeOffset)==null?void 0:f.offsetStartMilliseconds)||0;f=X=void 0;u=Number(((X=u.renderer)==null?void 0:(f=X.adBreakServiceRenderer)==null?void 0:f.prefetchMilliseconds)||0);u=U-u;u=11;w=w.api.N().j&&sW;return!(!M&&!w)}; OW=function(w,M){return!w.api.isInline()&&!UOH(w,oS(M))&&g.VP(M)}; $O5=function(w){w.xD.Z7();if(w.QD&&w.TO)w.TO=!1;else if(!w.api.N().eL&&!w.QS()){var M=w.api.getPlayerStateObject();g.C(M,2)&&g.Q1(w.api)||w.Xr(M);!w.api.N().cj||M.isCued()||g.C(M,1024)?w.o8():w.Om.isActive()?(w.OM(),w.Om.stop()):w.Om.start()}}; WwU=function(w,M){var P;if((P=w.api.getVideoData())==null?0:P.mutedAutoplay){var u,X;if((u=M.target)==null?0:(X=u.className)==null?0:X.includes("ytp-info-panel"))return!1}return g.VP(M)&&w.api.isMutedByMutedAutoplay()?(w.api.unMute(),w.api.getPresentingPlayerType()===2&&w.api.playVideo(),M=w.api.getPlayerStateObject(),!g.C(M,4)||g.C(M,8)||g.C(M,2)||w.o8(),!0):!1}; h7M=function(w,M,P){w.api.isFullscreen()?P<1-M&&w.api.toggleFullscreen():P>1+M&&w.api.toggleFullscreen()}; Xyu=function(w){var M=sL()&&R1()>=67&&!w.api.N().j;w=w.api.N().disableOrganicUi;return!g.vF("tizen")&&!n7&&!M&&!w}; g.a5=function(w){g.r.call(this,{W:"div",J:[{W:"div",T:"ytp-bezel-text-wrapper",J:[{W:"div",T:"ytp-bezel-text",pu:"{{title}}"}]},{W:"div",T:"ytp-bezel",Z:{role:"status","aria-label":"{{label}}"},J:[{W:"div",T:"ytp-bezel-icon",pu:"{{icon}}"}]}]});this.U=w;this.L=new g.gV(this.show,10,this);w=this.U.D("delhi_modern_web_player")?1E3:500;this.B=new g.gV(this.hide,w,this);g.b(this,this.L);g.b(this,this.B);this.hide()}; iJ=function(w,M,P){if(M<=0){P=DI();M="silenciado";var u=0}else P=P?{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!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"}}]}:{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!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"}}]},u=Math.floor(M),M=u+"volumen";w5(w,P,M,u+"%")}; cpz=function(w,M){M=M?{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!0,T:"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"}}]}:EFp();var P=w.U.getPlaybackRate(),u=g.iM("La velocidad es de $RATE",{RATE:String(P)});w5(w,M,u,P+"x")}; ZXl=function(w,M){M=M?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";w5(w,zgM(w.U),M)}; w5=function(w,M,P,u){u=u===void 0?"":u;w.updateValue("label",P===void 0?"":P);w.updateValue("icon",M);g.jr(w.B);w.L.start();w.updateValue("title",u);g.X6(w.element,"ytp-bezel-text-hide",!u)}; SAU=function(w,M){g.r.call(this,{W:"button",d$:["ytp-button","ytp-cards-button"],Z:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.K7(w.N()))},J:[{W:"span",T:"ytp-cards-button-icon-default",J:[{W:"div",T:"ytp-cards-button-icon",J:[w.N().D("player_new_info_card_format")?miU():{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!0,T:"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"}}]}]}, {W:"div",T:"ytp-cards-button-title",pu:"Informaci\u00f3n"}]},{W:"span",T:"ytp-cards-button-icon-shopping",J:[{W:"div",T:"ytp-cards-button-icon",J:[{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",T:"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"}},{W:"path",T:"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"}},{W:"path",T:"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"}}]}]},{W:"div", T:"ytp-cards-button-title",pu:"Shopping"}]}]});this.U=w;this.L=M;this.B=null;this.fade=new g.Cf(this,250,!0,100);g.b(this,this.fade);g.X6(this.L,"ytp-show-cards-title",g.K7(w.N()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.Rb(!0)}; HXM=function(w,M){g.r.call(this,{W:"div",T:"ytp-cards-teaser",J:[{W:"div",T:"ytp-cards-teaser-box"},{W:"div",T:"ytp-cards-teaser-text",J:w.N().D("player_new_info_card_format")?[{W:"button",T:"ytp-cards-teaser-info-icon",Z:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},J:[miU()]},{W:"img",T:"ytp-cards-teaser-channel-avatar",Z:{alt:"","aria-hidden":"true"}},{W:"span",T:"ytp-cards-teaser-label",pu:"{{text}}"},{W:"button",T:"ytp-cards-teaser-close-button",Z:{"aria-label":"Cerrar"},J:[g.SX()]}]: [{W:"span",T:"ytp-cards-teaser-label",pu:"{{text}}"}]}]});var P=this;this.U=w;this.EH=M;this.fade=new g.Cf(this,250,!1,250);this.B=null;this.j=new g.gV(this.U7N,300,this);this.K=new g.gV(this.d7W,2E3,this);this.X=[];this.L=null;this.V=new g.gV(function(){P.element.style.margin="0"},250); this.onClickCommand=this.C=null;g.b(this,this.fade);g.b(this,this.j);g.b(this,this.K);g.b(this,this.V);w.N().D("player_new_info_card_format")?(g.io(w.getRootNode(),"ytp-cards-teaser-dismissible"),this.Y(this.RI("ytp-cards-teaser-close-button"),"click",this.Eh),this.Y(this.RI("ytp-cards-teaser-info-icon"),"click",this.dS),this.Y(this.RI("ytp-cards-teaser-label"),"click",this.dS)):this.listen("click",this.dS);this.Y(M.element,"mouseover",this.Dn);this.Y(M.element,"mouseout",this.GH);this.Y(w,"cardsteasershow", this.cw3);this.Y(w,"cardsteaserhide",this.Wj);this.Y(w,"cardstatechange",this.Kc);this.Y(w,"presentingplayerstatechange",this.Kc);this.Y(w,"appresize",this.hB);this.Y(w,"onShowControls",this.hB);this.Y(w,"onHideControls",this.Bs);this.listen("mouseenter",this.mZ)}; pyz=function(w){g.r.call(this,{W:"button",d$:[MQ.BUTTON,MQ.TITLE_NOTIFICATIONS],Z:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},J:[{W:"div",T:MQ.TITLE_NOTIFICATIONS_ON,Z:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},J:[g.E4()]},{W:"div",T:MQ.TITLE_NOTIFICATIONS_OFF,Z:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},J:[{W:"svg",Z:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},J:[{W:"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=w;this.B=!1;w.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir notificaciones sobre todos los videos nuevos")}; Fwu=function(w,M){w.B=M;w.element.classList.toggle(MQ.NOTIFICATIONS_ENABLED,w.B);var P=w.api.getVideoData();P?(M=M?P.sN:P.FM)?(w=w.api.aQ())?lw(w,M):g.qU(Error("No innertube service available when updating notification preferences.")):g.qU(Error("No update preferences command available.")):g.qU(Error("No video data when updating notification preferences."))}; NBl=function(w,M,P){var u=u===void 0?800:u;var X=X===void 0?600:X;var U=document.location.protocol;w=gf5(U+"//"+w+"/signin?context=popup","feature",M,"next",U+"//"+location.hostname+"/post_login");E2u(w,P,u,X)}; E2u=function(w,M,P,u){P=P===void 0?800:P;u=u===void 0?600:u;if(w=g.Fj(window,w,"loginPopup","width="+P+",height="+u+",resizable=yes,scrollbars=yes"))Fbp(function(){M()}),w.moveTo((screen.width-P)/2,(screen.height-u)/2)}; g.Pc=function(w,M,P,u,X,U,f,h,c,Z,S,H){w=w.charAt(0)+w.substring(1).toLowerCase();P=P.charAt(0)+P.substring(1).toLowerCase();if(M==="0"||M==="-1")M=null;if(u==="0"||u==="-1")u=null;var p=S.N(),F=p.userDisplayName&&g.r8(p);g.r.call(this,{W:"div",d$:["ytp-button","ytp-sb"],J:[{W:"div",T:"ytp-sb-subscribe",Z:F?{title:g.iM("Suscribirse como $USER_NAME",{USER_NAME:p.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":pp(p),"data-tooltip-opaque":String(g.K7(p)),tabindex:"0",role:"button"}: {"aria-label":"Suscribirse al canal"},J:[{W:"div",T:"ytp-sb-text",J:[{W:"div",T:"ytp-sb-icon"},w]},M?{W:"div",T:"ytp-sb-count",pu:M}:""]},{W:"div",T:"ytp-sb-unsubscribe",Z:F?{title:g.iM("Suscrito como $USER_NAME",{USER_NAME:p.userDisplayName}),"aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":pp(p),"data-tooltip-opaque":String(g.K7(p)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},J:[{W:"div",T:"ytp-sb-text",J:[{W:"div",T:"ytp-sb-icon"},P]}, u?{W:"div",T:"ytp-sb-count",pu:u}:""]}],Z:{"aria-live":"polite"}});var E=this;this.channelId=f;this.U=S;this.C=H;var y=this.RI("ytp-sb-subscribe"),q=this.RI("ytp-sb-unsubscribe");U&&g.io(this.element,"ytp-sb-classic");if(X){h?this.B():this.L();var d=function(){if(p.mN){var e=E.channelId;if(c||Z){var R={c:e};var I;g.OD.isInitialized()&&(I=bcy(R));R=I||"";if(I=S.getVideoData())if(I=I.subscribeCommand){var w4=S.aQ();w4?(lw(w4,I,{botguardResponse:R,feature:c}),S.Vs("SUBSCRIBE",e)):g.qU(Error("No innertube service available when updating subscriptions."))}else g.qU(Error("No subscribe command in videoData.")); else g.qU(Error("No video data available when updating subscription."))}q.focus();q.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")}else NBl(g.P0(E.U.N()),"sb_button",E.X)},l=function(){var e=E.channelId; if(c||Z){var R=S.getVideoData();lw(S.aQ(),R.unsubscribeCommand,{feature:c});S.Vs("UNSUBSCRIBE",e)}y.focus();y.removeAttribute("aria-hidden");q.setAttribute("aria-hidden","true")}; this.Y(y,"click",d);this.Y(q,"click",l);this.Y(y,"keypress",function(e){e.keyCode===13&&d(e)}); this.Y(q,"keypress",function(e){e.keyCode===13&&l(e)}); this.Y(S,"SUBSCRIBE",this.B);this.Y(S,"UNSUBSCRIBE",this.L);this.C&&F&&(hgy(S),L$(S,y,this),L$(S,q,this))}else g.io(y,"ytp-sb-disabled"),g.io(q,"ytp-sb-disabled")}; o2x=function(w){g.r.call(this,{W:"div",T:"ytp-title-channel",J:[{W:"div",T:"ytp-title-beacon"},{W:"a",T:"ytp-title-channel-logo",Z:{href:"{{channelLink}}",target:w.N().S,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{W:"div",T:"ytp-title-expanded-overlay",Z:{"aria-hidden":"{{flyoutUnfocusable}}"},J:[{W:"div",T:"ytp-title-expanded-heading",J:[{W:"div",T:"ytp-title-expanded-title",J:[{W:"a",pu:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:w.N().S,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{W:"div",T:"ytp-title-expanded-subtitle",pu:"{{expandedSubtitle}}",Z:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var M=this;this.api=w;this.channel=this.RI("ytp-title-channel");this.L=this.RI("ytp-title-channel-logo");this.channelName=this.RI("ytp-title-expanded-title");this.K=this.RI("ytp-title-expanded-overlay");this.C=this.B=this.subscribeButton=null;this.X=!1;w.createClientVe(this.L,this,36925);w.createClientVe(this.channelName,this, 37220);g.K7(this.api.N())&&VN5(this);this.Y(w,"videodatachange",this.g$);this.Y(w,"videoplayerreset",this.g$);this.Y(this.channelName,"click",function(P){M.api.logClick(M.channelName);g.Fj(window,mOz(M));P.preventDefault()}); this.Y(this.L,"click",this.T$k);this.g$()}; GDp=function(w){if(!w.api.N().GE){var M=w.api.getVideoData(),P=new g.Pc("Suscribirse",null,"Suscrito/a",null,!0,!1,M.ZY,M.subscribed,"channel_avatar",null,w.api,!0);w.api.createServerVe(P.element,w);var u;w.api.setTrackingParams(P.element,((u=M.subscribeButtonRenderer)==null?void 0:u.trackingParams)||null);w.Y(P.element,"click",function(){w.api.logClick(P.element)}); w.subscribeButton=P;g.b(w,w.subscribeButton);w.subscribeButton.XK(w.K);w.subscribeButton.hide();var X=new pyz(w.api);w.B=X;g.b(w,X);X.XK(w.K);X.hide();w.Y(w.api,"SUBSCRIBE",function(){M.Hw&&(X.show(),w.api.logVisibility(X.element,!0))}); w.Y(w.api,"UNSUBSCRIBE",function(){M.Hw&&(X.hide(),w.api.logVisibility(X.element,!1),Fwu(X,!1))})}}; VN5=function(w){var M=w.api.N();GDp(w);w.updateValue("flyoutUnfocusable","true");w.updateValue("channelTitleFocusable","-1");w.updateValue("shouldHideExpandedTitleForA11y","true");w.updateValue("shouldHideExpandedSubtitleForA11y","true");M.L||M.OO||(w.Y(w.channel,"mouseenter",w.rF),w.Y(w.channel,"mouseleave",w.DH),w.Y(w.channel,"focusin",w.rF),w.Y(w.channel,"focusout",function(P){w.channel.contains(P.relatedTarget)||w.DH()})); w.C=new g.gV(function(){w.isExpanded()&&(w.api.logVisibility(w.channelName,!1),w.subscribeButton&&(w.subscribeButton.hide(),w.api.logVisibility(w.subscribeButton.element,!1)),w.B&&(w.B.hide(),w.api.logVisibility(w.B.element,!1)),w.channel.classList.remove("ytp-title-expanded"),w.channel.classList.add("ytp-title-show-collapsed"))},500); g.b(w,w.C);w.Y(w.channel,ypp,function(){DO_(w)}); w.Y(w.api,"onHideControls",w.WN);w.Y(w.api,"appresize",w.WN);w.Y(w.api,"fullscreentoggled",w.WN)}; DO_=function(w){w.channel.classList.remove("ytp-title-show-collapsed");w.channel.classList.remove("ytp-title-show-expanded")}; qAz=function(w){var M=w.api.getPlayerSize();return g.K7(w.api.N())&&M.width>=524}; mOz=function(w){var M=w.api.N(),P=w.api.getVideoData(),u=g.FD(M)+P.bW;g.h$(P)&&(u="https://music.youtube.com"+P.bW);if(!g.K7(M))return u;M={};g.Nl(w.api,"addEmbedsConversionTrackingParams",[M]);return g.p5(u,M)}; uJ=function(w){var M=g.ix({"aria-haspopup":"true"});g.wa.call(this,M,w);this.listen("keydown",this.B)}; XZ=function(w,M){w.element.setAttribute("aria-haspopup",String(M))}; YAU=function(w,M){g.r.call(this,{W:"div",T:"ytp-user-info-panel",Z:{"aria-label":"Informaci\u00f3n del usuario"},J:w.N().mN&&!w.D("embeds_web_always_enable_signed_out_state")?[{W:"div",T:"ytp-user-info-panel-icon",pu:"{{icon}}"},{W:"div",T:"ytp-user-info-panel-content",J:[{W:"div",T:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable}}",role:"text"},pu:"{{watchingAsUsername}}"},{W:"div",T:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable2}}",role:"text"},pu:"{{watchingAsEmail}}"}]}]: [{W:"div",T:"ytp-user-info-panel-icon",pu:"{{icon}}"},{W:"div",T:"ytp-user-info-panel-content",J:[{W:"div",J:[{W:"text",Z:{tabIndex:"{{userInfoFocusable}}"},pu:"Saliste de la cuenta"}]},{W:"div",T:"ytp-user-info-panel-login",J:[{W:"a",Z:{tabIndex:"{{userInfoFocusable2}}",role:"button"},pu:w.N().GE?"":"Acceder a YouTube"}]}]}]});this.h9=w;this.B=M;w.N().mN||w.N().GE||this.Y(this.RI("ytp-user-info-panel-login"),"click",this.Cn);this.closeButton=new g.r({W:"button",d$:["ytp-collapse","ytp-button"],Z:{title:"Cerrar"}, J:[g.yA()]});this.closeButton.XK(this.element);g.b(this,this.closeButton);this.Y(window,"blur",this.hide);this.Y(document,"click",this.RZ);this.g$()}; dOx=function(w,M,P){g.TT.call(this,w);this.Lg=M;this.hw=P;this.getVideoUrl=new uJ(6);this.tq=new uJ(5);this.aO=new uJ(4);this.Z4=new uJ(3);this.nC=new g.wa(g.ix({href:"{{href}}",target:this.U.N().S},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.wa(g.ix(),1,"Estad\u00edsticas");this.XT=new g.XT({W:"div",d$:["ytp-copytext","ytp-no-contextmenu"],Z:{draggable:"false",tabindex:"1"},pu:"{{text}}"});this.Iu=new zT(this.U,this.XT);this.Hc=this.HW=null;g.K7(this.U.N())&& (this.closeButton=new g.r({W:"button",d$:["ytp-collapse","ytp-button"],Z:{title:"Cerrar"},J:[g.yA()]}),g.b(this,this.closeButton),this.closeButton.XK(this.element),this.closeButton.listen("click",this.pR,this));g.K7(this.U.N())&&(this.iT=new g.wa(g.ix(),8,"Cuenta"),g.b(this,this.iT),this.XF(this.iT,!0),this.iT.listen("click",this.zY9,this),w.createClientVe(this.iT.element,this.iT,137682));this.U.N().AF&&(this.OB=new cH("En bucle",7),g.b(this,this.OB),this.XF(this.OB,!0),this.OB.listen("click",this.rD3, this),w.createClientVe(this.OB.element,this.OB,28661));g.b(this,this.getVideoUrl);this.XF(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.LkI,this);w.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.b(this,this.tq);this.XF(this.tq,!0);this.tq.listen("click",this.I4N,this);w.createClientVe(this.tq.element,this.tq,28660);g.b(this,this.aO);this.XF(this.aO,!0);this.aO.listen("click",this.BKI,this);w.createClientVe(this.aO.element,this.aO,28658);g.b(this,this.Z4);this.XF(this.Z4, !0);this.Z4.listen("click",this.f4u,this);g.b(this,this.nC);this.XF(this.nC,!0);this.nC.listen("click",this.eY0,this);g.b(this,this.showVideoInfo);this.XF(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.ZTL,this);g.b(this,this.XT);this.XT.listen("click",this.VL$,this);g.b(this,this.Iu);M=document.queryCommandSupported&&document.queryCommandSupported("copy");jFR("Chromium")>=43&&(M=!0);jFR("Firefox")<=40&&(M=!1);M&&(this.HW=new g.r({W:"textarea",T:"ytp-html5-clipboard",Z:{readonly:"", tabindex:"-1"}}),g.b(this,this.HW),this.HW.XK(this.element));var u;(u=this.iT)==null||u.setIcon(qmx());var X;(X=this.OB)==null||X.setIcon(LuU());this.Z4.setIcon({W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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.nC.setIcon(NHF());this.showVideoInfo.setIcon(Vhu());this.Y(w,"onLoopChange",this.onLoopChange);this.Y(w,"videodatachange",this.onVideoDataChange);z7u(this);TB2(this,this.U.getVideoData())}; $u=function(w,M){var P=!1;if(w.HW){var u=w.HW.element;u.value=M;u.select();try{P=document.execCommand("copy")}catch(X){}}P?w.Lg.Wj():(w.XT.iB(M,"text"),g.LJ(w.Lg,w.Iu),E6(w.XT.element),w.HW&&(w.HW=null,z7u(w)));return P}; TB2=function(w,M){var P=w.U.N(),u=w.U.getPresentingPlayerType()===2,X=!u||M.isListed;X=!P.Lu&&!!M.videoId&&X;P.playerStyle!=="play"?P="https://support.google.com/youtube/?p=report_playback":(P={contact_type:"playbackissue",html5:1,ei:M.eventId,v:M.videoId,p:"movies_playback"},M.L&&(P.fmt=M.L.itag),M.clientPlaybackNonce&&(P.cpn=M.clientPlaybackNonce),M.partnerId&&(P.partnerid=M.partnerId),P=g.p5("//support.google.com/googleplay/",P));w.aO.AD(X&&M.allowEmbed);w.getVideoUrl.AD(X);w.tq.AD(X&&!M.isLivePlayback); w.nC.iB(P,"href");var U;(U=w.OB)==null||U.AD(!M.isLivePlayback&&!u);var f;(f=w.iT)==null||f.AD(!u)}; z7u=function(w){var M=!!w.HW;g.aZ(w.Z4,M?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");XZ(w.Z4,!M);g.aZ(w.aO,M?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");XZ(w.aO,!M);g.aZ(w.getVideoUrl,M?"Copiar URL del video":"Obtener la URL del video");XZ(w.getVideoUrl,!M);g.aZ(w.tq,M?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");XZ(w.tq,!M);w.aO.setIcon(M?pn2():null);w.getVideoUrl.setIcon(M? pf():null);w.tq.setIcon(M?pf():null)}; lD2=function(w){return g.K7(w.U.N())?w.iT:w.OB}; e7p=function(w,M){g.lG.call(this,w);this.hw=M;this.X=new g.V2(this);this.B3=new g.gV(this.pl0,1E3,this);this.Lu=this.C=null;g.b(this,this.X);g.b(this,this.B3);M=this.U.N();w.createClientVe(this.element,this,28656);g.io(this.element,"ytp-contextmenu");this.U.N().experiments.nu("delhi_modern_web_player")&&g.fp(M)&&g.io(this.element,"ytp-delhi-modern-contextmenu");Lw5(this);this.hide()}; Lw5=function(w){g.qi(w.X);var M=w.U.N();M.playerStyle==="gvn"||M.L||M.OO||(M=w.U.oI(),w.X.Y(M,"contextmenu",w.l3u),w.X.Y(M,"touchstart",w.onTouchStart,null,!0),w.X.Y(M,"touchmove",w.Jd,null,!0),w.X.Y(M,"touchend",w.Jd,null,!0))}; BBz=function(w){w.U.isFullscreen()?g.bD(w.U,w.element,10):w.XK(t$(w).body)}; Uy=function(w,M,P){P=P===void 0?240:P;g.r.call(this,{W:"button",d$:["ytp-button","ytp-copylink-button"],Z:{title:"{{title-attr}}","data-tooltip-opaque":String(g.K7(w.N()))},J:[{W:"div",T:"ytp-copylink-icon",pu:"{{icon}}"},{W:"div",T:"ytp-copylink-title",pu:"Copiar v\u00ednculo",Z:{"aria-hidden":"true"}}]});this.api=w;this.B=M;this.L=P;this.visible=!1;this.tooltip=this.B.V_();M=w.N();this.tooltip.element.setAttribute("aria-live","polite");g.X6(this.element,"ytp-show-copylink-title",g.K7(M));w.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.Y(w,"videodatachange",this.g$);this.Y(w,"videoplayerreset",this.g$);this.Y(w,"appresize",this.g$);this.g$();this.addOnDisposeCallback(g.lD(this.tooltip,this.element))}; QG5=function(w){var M=w.api.N(),P=w.api.getVideoData(),u=w.api.oI().getPlayerSize().width;M=M.C;return!!P.videoId&&u>=w.L&&P.Qn&&!g.f$(P)&&!w.api.isEmbedsShortsMode()&&!M}; kD_=function(w){w.updateValue("icon",hw());if(w.api.N().L)w.tooltip.Wc(w.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{w.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");w.tooltip.j0();w.tooltip.Wc(w.element);var M=w.listen("mouseleave",function(){w.Mt(M);w.g$();w.tooltip.IB()})}}; R7u=function(w,M){return g.n(function(P){if(P.L==1)return g.DU(P,2),g.B(P,navigator.clipboard.writeText(M),4);if(P.L!=2)return P.return(!0);g.d4(P);var u=P.return,X=!1,U=g.HS("TEXTAREA");U.value=M;U.setAttribute("readonly","");var f=w.api.getRootNode();f.appendChild(U);if(bb){var h=window.getSelection();h.removeAllRanges();var c=document.createRange();c.selectNodeContents(U);h.addRange(c);U.setSelectionRange(0,M.length)}else U.select();try{X=document.execCommand("copy")}catch(Z){}f.removeChild(U); return u.call(P,X)})}; n21=function(w){g.r.call(this,{W:"div",T:"ytp-doubletap-ui-legacy",J:[{W:"div",T:"ytp-doubletap-fast-forward-ve"},{W:"div",T:"ytp-doubletap-rewind-ve"},{W:"div",T:"ytp-doubletap-static-circle",J:[{W:"div",T:"ytp-doubletap-ripple"}]},{W:"div",T:"ytp-doubletap-overlay-a11y"},{W:"div",T:"ytp-doubletap-seek-info-container",J:[{W:"div",T:"ytp-doubletap-arrows-container",J:[{W:"span",T:"ytp-doubletap-base-arrow"},{W:"span",T:"ytp-doubletap-base-arrow"},{W:"span",T:"ytp-doubletap-base-arrow"}]},{W:"div", T:"ytp-doubletap-tooltip",J:[{W:"div",T:"ytp-seek-icon-text-container",J:[{W:"div",T:"ytp-seek-icon",pu:"{{seekIcon}}"},{W:"div",T:"ytp-chapter-seek-text-legacy",pu:"{{seekText}}"}]},{W:"div",T:"ytp-doubletap-tooltip-label",pu:"{{seekTime}}"}]}]}]});this.U=w;this.X=new g.gV(this.show,10,this);this.L=new g.gV(this.hide,700,this);this.j=this.C=0;this.B3=this.K=!1;this.B=this.RI("ytp-doubletap-static-circle");g.b(this,this.X);g.b(this,this.L);this.hide();this.V=this.RI("ytp-doubletap-fast-forward-ve"); this.S=this.RI("ytp-doubletap-rewind-ve");this.U.createClientVe(this.V,this,28240);this.U.createClientVe(this.S,this,28239);this.U.logVisibility(this.V,!0);this.U.logVisibility(this.S,!0);this.K=w.D("web_show_cumulative_seek_time");this.B3=w.D("web_center_static_circles")}; v2F=function(w,M){M=g.iM("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:M.toString()});w.updateValue("seekTime",M)}; sGH=function(w){YA.call(this,w,!1,!0);this.ys=[];this.GE=[];this.element.setAttribute("data-overlay-order","9");this.V=!0;this.badge.element.classList.add("ytp-featured-product");this.Cu=new g.r({W:"div",T:"ytp-featured-product-open-in-new"});g.b(this,this.Cu);this.countdownTimer=new g.r({W:"text",T:"ytp-featured-product-countdown",pu:"{{content}}"});this.countdownTimer.hide();g.b(this,this.countdownTimer);this.L=new g.r({W:"div",T:"ytp-featured-product-trending",J:[{W:"div",T:"ytp-featured-product-trending-icon"}, {W:"text",T:"ytp-featured-product-trending-text",pu:"{{trendingOffer}}"}]});this.L.hide();g.b(this,this.L);this.overflowButton=new g.r({W:"button",d$:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.b(this,this.overflowButton);this.j=new g.r({W:"text",T:"ytp-featured-product-exclusive-countdown",pu:"{{content}}",Z:{id:"exclusiveCountdown","aria-hidden":"true"}});this.j.hide();g.b(this,this.j);this.K=new g.r({W:"div",T:"ytp-featured-product-exclusive-container", Z:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},J:[{W:"div",T:"ytp-featured-product-exclusive-badge-container",J:[{W:"div",T:"ytp-featured-product-exclusive-badge",J:[{W:"text",T:"ytp-featured-product-exclusive-badge-text",pu:"{{exclusive}}",Z:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.j]});this.K.hide();g.b(this,this.K);this.banner=new g.r({W:"a",T:"ytp-featured-product-container",J:[{W:"div",T:"ytp-featured-product-thumbnail",J:[{W:"img",Z:{src:"{{thumbnail}}"}},this.Cu]},{W:"div", T:"ytp-featured-product-details",J:[{W:"text",T:"ytp-featured-product-title",pu:"{{title}}"},this.U.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{W:"div",T:"ytp-featured-product-price-container",Z:{"aria-label":"{{priceA11yText}}"},J:[{W:"text",T:"ytp-featured-product-price-when-promotion-text-enabled",pu:"{{price}}",Z:{"aria-hidden":"true"}},{W:"text",T:"ytp-featured-product-promotion-text",pu:"{{promotionText}}",Z:{"aria-hidden":"true"}}]}:{W:"div",Z:{"aria-label":"{{priceA11yText}}"}, J:[{W:"text",T:"ytp-featured-product-price",pu:"{{price}}",Z:{"aria-hidden":"true"}},{W:"text",T:"ytp-featured-product-sales-original-price",pu:"{{salesOriginalPrice}}",Z:{"aria-hidden":"true"}},{W:"text",T:"ytp-featured-product-price-drop-reference-price",pu:"{{priceDropReferencePrice}}",Z:{"aria-hidden":"true"}}]},this.U.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{W:"div",T:"ytp-featured-product-when-promotion-text-enabled",J:[{W:"text",T:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", pu:"{{affiliateDisclaimer}}"},this.L,{W:"text",T:"ytp-featured-product-vendor-when-promotion-text-enabled",pu:"{{vendor}}"}]}:{W:"div",J:[{W:"text",T:"ytp-featured-product-affiliate-disclaimer",pu:"{{affiliateDisclaimer}}"},this.U.D("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.K:null,this.L,{W:"text",T:"ytp-featured-product-vendor",pu:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.b(this,this.banner);this.banner.XK(this.C.element);this.Y(this.U,g.AP("featured_product"), this.uP$);this.Y(this.U,g.gL("featured_product"),this.tY);this.Y(this.U,"videodatachange",this.onVideoDataChange);this.Y(this.overflowButton.element,"click",this.yG);this.Y(w,"featuredproductdismissed",this.Uy)}; Kw1=function(w){var M,P;w=(M=w.B)==null?void 0:(P=M.bannerData)==null?void 0:P.itemData;var u,X,U;return(w==null||!w.affiliateDisclaimer)&&(w==null?0:(u=w.exclusivesData)==null?0:u.exclusiveOfferLabelText)&&(w==null?0:(X=w.exclusivesData)==null?0:X.expirationTimestampMs)&&(w==null?0:(U=w.exclusivesData)==null?0:U.exclusiveOfferCountdownText)?!0:!1}; IDl=function(w){var M,P,u,X,U=(M=w.B)==null?void 0:(P=M.bannerData)==null?void 0:(u=P.itemData)==null?void 0:(X=u.exclusivesData)==null?void 0:X.expirationTimestampMs;M=(Number(U)-Date.now())/1E3;if(M>0){if(M<604800){var f,h,c,Z;P=(f=w.B)==null?void 0:(h=f.bannerData)==null?void 0:(c=h.itemData)==null?void 0:(Z=c.exclusivesData)==null?void 0:Z.exclusiveOfferCountdownText;if(P!==void 0)for(f=Date.now(),h=g.G(P),c=h.next();!c.done;c=h.next())if(c=c.value,c!==void 0&&c.text!==void 0&&(Z=Number(c.textDisplayStartTimestampMs), !isNaN(Z)&&f>=Z)){c.insertCountdown?(M=c.text.replace(/\$0/,String(nm({seconds:M}))),w.j.iB(M)):w.j.iB(c.text);w.j.show();break}}var S,H,p,F;w.K.update({exclusive:(S=w.B)==null?void 0:(H=S.bannerData)==null?void 0:(p=H.itemData)==null?void 0:(F=p.exclusivesData)==null?void 0:F.exclusiveOfferLabelText});w.K.show();fa(w);var E;(E=w.QE)==null||E.start()}else bXz(w)}; bXz=function(w){var M;(M=w.QE)==null||M.stop();w.j.hide();w.K.hide();Wc(w)}; Apx=function(w){var M,P,u=(M=w.B)==null?void 0:(P=M.bannerData)==null?void 0:P.itemData;return w.U.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(u==null||!u.priceReplacementText)&&(u==null?0:u.promotionText)?u==null?void 0:u.promotionText.content:null}; g2x=function(w){var M,P,u=(M=w.B)==null?void 0:(P=M.bannerData)==null?void 0:P.itemData,X,U;if(!(u!=null&&u.priceReplacementText||w.U.D("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(u==null?0:(X=u.dealsData)==null?0:(U=X.sales)==null?0:U.originalPrice)){var f,h;return u==null?void 0:(f=u.dealsData)==null?void 0:(h=f.sales)==null?void 0:h.originalPrice}return null}; Jpu=function(w){var M,P,u=(M=w.B)==null?void 0:(P=M.bannerData)==null?void 0:P.itemData,X,U,f,h;if(!((u==null?0:u.priceReplacementText)||w.U.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(u==null?0:(X=u.dealsData)==null?0:(U=X.sales)==null?0:U.originalPrice))&&(u==null?0:(f=u.dealsData)==null?0:(h=f.priceDrop)==null?0:h.referencePrice)){var c,Z;return u==null?void 0:(c=u.dealsData)==null?void 0:(Z=c.priceDrop)==null?void 0:Z.referencePrice}return null}; rpz=function(w){var M,P,u=(M=w.B)==null?void 0:(P=M.bannerData)==null?void 0:P.itemData;if(u==null?0:u.priceReplacementText)return u==null?void 0:u.priceReplacementText;if((u==null?0:u.promotionText)&&w.U.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var X;return(u==null?void 0:u.price)+" "+(u==null?void 0:(X=u.promotionText)==null?void 0:X.content)}var U,f;if(u==null?0:(U=u.dealsData)==null?0:(f=U.sales)==null?0:f.originalPrice){var h,c;return u==null?void 0:(h=u.dealsData)== null?void 0:(c=h.sales)==null?void 0:c.salesPriceAccessibilityLabel}var Z,S;if(u==null?0:(Z=u.dealsData)==null?0:(S=Z.priceDrop)==null?0:S.referencePrice){var H,p;return(u==null?void 0:u.price)+" "+(u==null?void 0:(H=u.dealsData)==null?void 0:(p=H.priceDrop)==null?void 0:p.referencePrice)}return u==null?void 0:u.price}; jG5=function(w){if(w.U.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var M,P,u;return w.L.J9?null:(M=w.B)==null?void 0:(P=M.bannerData)==null?void 0:(u=P.itemData)==null?void 0:u.vendorName}var X,U,f,h,c,Z;return w.L.J9||w.K.J9||((X=w.B)==null?0:(U=X.bannerData)==null?0:(f=U.itemData)==null?0:f.affiliateDisclaimer)?null:(h=w.B)==null?void 0:(c=h.bannerData)==null?void 0:(Z=c.itemData)==null?void 0:Z.vendorName}; tNx=function(w,M){h8(w);if(M){var P=g.H7.getState().entities;P=CF(P,"featuredProductsEntity",M);if(P!=null&&P.productsData){M=[];P=g.G(P.productsData);for(var u=P.next();!u.done;u=P.next()){u=u.value;var X=void 0;if((X=u)!=null&&X.identifier&&u.featuredSegments){w.ys.push(u);var U=void 0;X=g.G((U=u)==null?void 0:U.featuredSegments);for(U=X.next();!U.done;U=X.next()){var f=U.value;U=Ck2(f.startTimeSec);U!==void 0&&(f=Ck2(f.endTimeSec),M.push(new g.bg(U*1E3,f===void 0?0x7ffffffffffff:f*1E3,{id:u.identifier, namespace:"featured_product"})))}}}w.U.qf(M)}}}; Wc=function(w){if(w.trendingOfferEntityKey){var M=g.H7.getState().entities;if(M=CF(M,"trendingOfferEntity",w.trendingOfferEntityKey)){var P,u,X;M.encodedSkuId!==((P=w.B)==null?void 0:(u=P.bannerData)==null?void 0:(X=u.itemData)==null?void 0:X.encodedOfferSkuId)?fa(w):(w.L.update({trendingOffer:M.shortLabel+" \u2022 "+M.countLabel}),w.L.show(),w.banner.update({vendor:jG5(w)}))}else fa(w)}else fa(w)}; fa=function(w){w.L.hide();w.banner.update({vendor:jG5(w)})}; h8=function(w){w.ys=[];w.tY();w.U.dB("featured_product")}; xOH=function(w){var M,P,u,X,U=(M=w.B)==null?void 0:(P=M.bannerData)==null?void 0:(u=P.itemData)==null?void 0:(X=u.hiddenProductOptions)==null?void 0:X.dropTimestampMs;M=(Number(U)-Date.now())/1E3;w.countdownTimer.iB(nm({seconds:M}));if(M>0){var f;(f=w.M7)==null||f.start()}}; OXM=function(w){var M;(M=w.M7)==null||M.stop();w.countdownTimer.hide()}; Ck2=function(w){if(w!==void 0&&w.trim()!==""&&(w=Math.trunc(Number(w.trim())),!(isNaN(w)||w<0)))return w}; P9u=function(w,M,P){g.r.call(this,{W:"div",d$:["ytp-info-panel-action-item"],J:[{W:"div",T:"ytp-info-panel-action-item-disclaimer",pu:"{{disclaimer}}"},{W:"a",d$:["ytp-info-panel-action-item-button","ytp-button"],Z:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},J:[{W:"div",T:"ytp-info-panel-action-item-icon",pu:"{{icon}}"},{W:"div",T:"ytp-info-panel-action-item-label",pu:"{{label}}"}]}]});this.U=w;this.B=P;this.disclaimer=this.RI("ytp-info-panel-action-item-disclaimer");this.button= this.RI("ytp-info-panel-action-item-button");this.Nf=!1;this.U.createServerVe(this.element,this,!0);this.listen("click",this.onClick);w="";P=g.A(M==null?void 0:M.onTap,Tw);var u=g.A(P,g.lu);this.Nf=!1;u?(w=u.url||"",w.startsWith("//")&&(w="https:"+w),this.Nf=!0,g.c1(this.button,g.W1(w))):(u=g.A(P,aDu))&&!this.B?((w=u.phoneNumbers)&&w.length>0?(w="sms:"+w[0],u.messageText&&(w+="?&body="+encodeURI(u.messageText))):w="",this.Nf=!0,g.c1(this.button,g.W1(w,[wwy]))):(P=g.A(P,iT2))&&!this.B&&(w=P.phoneNumber? "tel:"+P.phoneNumber:"",this.Nf=!0,g.c1(this.button,g.W1(w,[M4y])));var X;if(P=(X=M.disclaimerText)==null?void 0:X.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var U;this.update({label:(U=M.bodyText)==null?void 0:U.content,icon:No(),disclaimer:P})}else{this.disclaimer.style.display="none";var f;this.update({label:(f=M.bodyText)==null?void 0:f.content,icon:No()})}this.U.setTrackingParams(this.element,M.trackingParams||null);this.Nf&&(this.L={externalLinkData:{url:w}})}; u0z=function(w,M){var P=iu();g.C$.call(this,w,{W:"div",T:"ytp-info-panel-detail-skrim",J:[{W:"div",T:"ytp-info-panel-detail",Z:{role:"dialog",id:P},J:[{W:"div",T:"ytp-info-panel-detail-header",J:[{W:"div",T:"ytp-info-panel-detail-title",pu:"{{title}}"},{W:"button",d$:["ytp-info-panel-detail-close","ytp-button"],Z:{"aria-label":"Cerrar"},J:[g.SX()]}]},{W:"div",T:"ytp-info-panel-detail-body",pu:"{{body}}"},{W:"div",T:"ytp-info-panel-detail-items"}]}]},250);this.B=M;this.items=this.RI("ytp-info-panel-detail-items"); this.C=new g.V2(this);this.itemData=[];this.X=P;this.Y(this.RI("ytp-info-panel-detail-close"),"click",this.Wj);this.Y(this.RI("ytp-info-panel-detail-skrim"),"click",this.Wj);this.Y(this.RI("ytp-info-panel-detail"),"click",function(u){u.stopPropagation()}); g.b(this,this.C);this.U.createServerVe(this.element,this,!0);this.Y(w,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",w.getVideoData());this.hide()}; Xwu=function(w,M){w=g.G(w.itemData);for(var P=w.next();!P.done;P=w.next())P=P.value,P.U.logVisibility(P.element,M)}; fXM=function(w,M){g.r.call(this,{W:"div",T:"ytp-info-panel-preview",Z:{"aria-live":"assertive","aria-atomic":"true","aria-owns":M.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.K7(w.N()))},J:[{W:"div",T:"ytp-info-panel-preview-text",pu:"{{text}}"},{W:"div",T:"ytp-info-panel-preview-chevron",pu:"{{chevron}}"}]});var P=this;this.U=w;this.zt=this.B=this.videoId=null;this.C=this.showControls=this.L=!1;this.Y(this.element,"click",function(){w.logClick(P.element);w.QS();xt(M)}); this.fade=new g.Cf(this,250,!1,100);g.b(this,this.fade);this.U.createServerVe(this.element,this,!0);this.Y(w,"videodatachange",this.onVideoDataChange);this.Y(w,"presentingplayerstatechange",this.Uh);this.Y(this.U,"paidcontentoverlayvisibilitychange",this.k_);this.Y(this.U,"infopaneldetailvisibilitychange",this.k_);var u=w.getVideoData()||{};$gF(u)&&UgM(this,u);this.Y(w,"onShowControls",this.WP);this.Y(w,"onHideControls",this.Xa)}; UgM=function(w,M){if(!M.pV||!w.U.sB()){var P=M.vg||1E4,u=$gF(M);w.B?M.videoId&&M.videoId!==w.videoId&&(g.jr(w.B),w.videoId=M.videoId,u?(Wi5(w,P,M),w.w7()):(w.Wj(),w.B.dispose(),w.B=null)):u&&(M.videoId&&(w.videoId=M.videoId),Wi5(w,P,M),w.w7())}}; $gF=function(w){var M,P,u,X;return!!((M=w.gb)==null?0:(P=M.title)==null?0:P.content)||!!((u=w.gb)==null?0:(X=u.bodyText)==null?0:X.content)}; Wi5=function(w,M,P){w.B&&w.B.dispose();w.B=new g.gV(w.ix$,M,w);g.b(w,w.B);var u;M=((u=P.gb)==null?void 0:u.trackingParams)||null;w.U.setTrackingParams(w.element,M);var X;var U,f;if(P==null?0:(U=P.gb)==null?0:(f=U.title)==null?0:f.content){var h;u=(X=P.gb)==null?void 0:(h=X.title)==null?void 0:h.content;var c,Z;if((c=P.gb)==null?0:(Z=c.bodyText)==null?0:Z.content)u+=" \u2022 ";X=u}else X="";var S,H;P=((S=P.gb)==null?void 0:(H=S.bodyText)==null?void 0:H.content)||"";w.update({text:X+P,chevron:g.ZI()})}; hEy=function(w,M){w.B&&(g.C(M,8)?(w.L=!0,w.w7(),w.B.start()):(g.C(M,2)||g.C(M,64))&&w.videoId&&(w.videoId=null))}; cc=function(w){var M=null;try{M=w.toLocaleString("es-419",{style:"percent"})}catch(P){M=w.toLocaleString(void 0,{style:"percent"})}return M}; ZV=function(w,M){var P=0;w=g.G(w);for(var u=w.next();!(u.done||u.value.startTime>M);u=w.next())P++;return P===0?P:P-1}; cUp=function(w,M){for(var P=0,u=g.G(w),X=u.next();!X.done;X=u.next()){X=X.value;if(M=X.timeRangeStartMillis&&M0?M[0]:null;var P=g.fj("ytp-chrome-bottom"),u=g.fj("ytp-ad-module");w.X=!(P==null||!P.contains(M));w.V=!(u==null||!u.contains(M));w.S=!(M==null||!M.hasAttribute("data-tooltip-target-fixed"));return M}; T_F=function(w,M,P){if(!w.K){if(M){w.tooltipRenderer=M;M=w.tooltipRenderer.text;var u=!1,X;(M==null?0:(X=M.runs)==null?0:X.length)&&M.runs[0].text&&(w.update({title:M.runs[0].text.toString()}),u=!0);g.Mq(w.title,u);M=w.tooltipRenderer.detailsText;X=!1;var U;if((M==null?0:(U=M.runs)==null?0:U.length)&&M.runs[0].text){u=M.runs[0].text.toString();U=u.indexOf("$TARGET_ICON");if(U>-1)if(w.tooltipRenderer.targetId){M=[];u=u.split("$TARGET_ICON");var f=new g.Mo({W:"span",T:"ytp-promotooltip-details-icon", J:[Y55[w.tooltipRenderer.targetId]]});g.b(w,f);for(var h=[],c=g.G(u),Z=c.next();!Z.done;Z=c.next())Z=new g.Mo({W:"span",T:"ytp-promotooltip-details-component",pu:Z.value}),g.b(w,Z),h.push(Z);u.length===2?(M.push(h[0].element),M.push(f.element),M.push(h[1].element)):u.length===1&&(U===0?(M.push(f.element),M.push(h[0].element)):(M.push(h[0].element),M.push(f.element)));U=M.length?M:null}else U=null;else U=u;if(U){if(typeof U!=="string")for(g.ES(w.details),X=g.G(U),U=X.next();!U.done;U=X.next())w.details.appendChild(U.value); else w.update({details:U});X=!0}}g.Mq(w.details,X);X=w.tooltipRenderer.acceptButton;U=!1;var S,H,p;((S=g.A(X,g.OG))==null?0:(H=S.text)==null?0:(p=H.runs)==null?0:p.length)&&g.A(X,g.OG).text.runs[0].text&&(w.update({acceptButtonText:g.A(X,g.OG).text.runs[0].text.toString()}),U=!0);g.Mq(w.acceptButton,U);S=w.tooltipRenderer.dismissButton;H=!1;var F,E,y;((F=g.A(S,g.OG))==null?0:(E=F.text)==null?0:(y=E.runs)==null?0:y.length)&&g.A(S,g.OG).text.runs[0].text&&(w.update({dismissButtonText:g.A(S,g.OG).text.runs[0].text.toString()}), H=!0);g.Mq(w.dismissButton,H)}P&&(w.C=P);w.B=q5U(w);w.j=!1;w.U.N().D("web_player_hide_nitrate_promo_tooltip")||w.AD(!0);zEp(w);w.J9&&!w.B3&&(w.B3=!0,w.yH.py(0));w.L&&w.U.logVisibility(w.element,w.J9)}}; Vf=function(w){w.AD(!1);w.L&&w.U.logVisibility(w.element,w.J9)}; dg1=function(w){var M,P,u,X=((M=g.A(w.acceptButton,g.OG))==null?void 0:(P=M.text)==null?void 0:(u=P.runs)==null?void 0:u.length)&&!!g.A(w.acceptButton,g.OG).text.runs[0].text,U,f,h;M=((U=g.A(w.dismissButton,g.OG))==null?void 0:(f=U.text)==null?void 0:(h=f.runs)==null?void 0:h.length)&&!!g.A(w.dismissButton,g.OG).text.runs[0].text;return X||M}; zEp=function(w){var M;if(!(M=!w.B)){M=w.B;var P=window.getComputedStyle(M);M=P.display==="none"||P.visibility==="hidden"||M.getAttribute("aria-hidden")==="true"}if(M||w.U.isMinimized())w.AD(!1);else if(M=g.iy(w.B),M.width&&M.height){w.U.wH(w.element,w.B);var u=w.U.oI().getPlayerSize().height;P=g.iy(w.RI("ytp-promotooltip-container")).height;w.X?w.element.style.top=u-P-M.height-12+"px":w.S||(u=w.U.UB().height-P-M.height-12,w.element.style.top=u+"px");u=w.RI("ytp-promotooltip-pointer");var X=g.aU(w.B, w.U.getRootNode()),U=Number(w.element.style.left.replace(/[^\d\.]/g,""));w=w.U.isFullscreen()?18:12;u.style.left=X.x-U+M.width/2-w+"px";u.style.top=P+"px"}else w.AD(!1)}; ms=function(w){g.r.call(this,{W:"button",d$:["ytp-replay-button","ytp-button"],Z:{title:"Volver a reproducir"},J:[g.o6()]});this.U=w;this.Y(w,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.g7(w.getPlayerStateObject());L$(this.U,this.element,this)}; ot=function(w,M){M=M===void 0?240:M;g.r.call(this,{W:"button",d$:["ytp-button","ytp-search-button"],Z:{title:"Buscar","data-tooltip-opaque":String(g.K7(w.N()))},J:[{W:"div",T:"ytp-search-icon",pu:"{{icon}}"},{W:"div",T:"ytp-search-title",pu:"Buscar"}]});this.api=w;this.L=M;this.visible=!1;this.updateValue("icon",{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},J:[{W:"path",T:"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"}}]}); w.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.B();this.Y(w,"appresize",this.B);this.Y(w,"videodatachange",this.B);L$(w,this.element,this)}; GH=function(w){g.r.call(this,{W:"div",T:"ytp-seek-overlay",J:[{W:"div",d$:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],J:[{W:"div",d$:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],J:[{W:"svg",Z:{viewBox:"0 0 22 32",width:"22",height:"32"},J:[{W:"path",Z:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]},{W:"div",T:"ytp-seek-overlay-duration",pu:"{{durationBack}}"}]},{W:"div",d$:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-forward"], J:[{W:"div",T:"ytp-seek-overlay-duration",pu:"{{durationForward}}"},{W:"div",d$:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],J:[{W:"svg",Z:{viewBox:"0 0 22 32",width:"22",height:"32"},J:[{W:"path",Z:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]}]},{W:"div",T:"ytp-seek-overlay-message",J:[{W:"div",T:"ytp-seek-overlay-message-icon",pu:"{{icon}}"},{W:"div",T:"ytp-seek-overlay-message-text",pu:"{{text}}"}]}]});var M=this;this.U=w;this.j=0;this.B="hidden"; this.B3=0;this.V=this.RI("ytp-seek-overlay-animation-back");this.S=this.RI("ytp-seek-overlay-animation-forward");this.Lu=this.RI("ytp-seek-overlay-message");this.K=new g.gV(function(){lX4(M)},g.Oh(this.U.N().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.b(this,this.K);this.U.createClientVe(this.S,this,28240);this.U.createClientVe(this.V,this,28239);this.U.logVisibility(this.S,!0);this.U.logVisibility(this.V,!0);this.hide()}; Liu=function(w,M){w.L=w.C.animate([{offset:0,opacity:M,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});w.L.addEventListener("finish",function(){w.L=void 0;w.K.start();w.B="lingering"})}; eE_=function(w,M,P){P=P===void 0?!1:P;var u=[];u.push({offset:0,transform:"translateX("+(w.X===-1?30:-30)+"px)",opacity:P?"0":"1"});P&&u.push({offset:.5,opacity:"1"});u.push({offset:1,transform:"translateX(0)"});P=M.animate(u,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});M.querySelector("path").animate([{offset:0,d:w.X===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'},{offset:1,d:w.X===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'}],{duration:333, easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});return P}; B_F=function(w){if((0,g.G$)()-w.B3>=(g.Oh(w.U.N().experiments,"web_player_seek_overlay_additional_arrow_threshold")||200)){var M=w.C.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);M.classList.add("ytp-seek-overlay-arrow-additional");M.classList.remove("ytp-seek-overlay-arrow-persistent");w.C.appendChild(M);eE_(w,M,!0).addEventListener("finish",function(){M.remove()})}}; lX4=function(w,M,P){P=P===void 0?!0:P;w.L=w.C.animate([{offset:0,opacity:M===void 0?1:M},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});P&&(w.L.addEventListener("finish",function(){w.L=void 0;QRR(w);w.hide()}),w.B="fading-out")}; kYx=function(w){var M=Number(getComputedStyle(w.C).opacity),P;(P=w.L)==null||P.cancel();w.L=void 0;return M}; QRR=function(w){w.j=0;w.B="hidden";w.X=void 0;w.C=void 0;w.B3=0;w.K.stop();w.L=void 0}; REH=function(w,M,P){w.updateValue("text",M);if(P){a:{switch(P){case "PREMIUM_STANDALONE":M=THU();break a;case "PREMIUM_STANDALONE_CAIRO":M=diu();break a}M=void 0}w.updateValue("icon",M)}M=g.G(w.Lu.getAnimations());for(P=M.next();!P.done;P=M.next())P.value.cancel();w.Lu.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){w.updateValue("text","");w.updateValue("icon","")})}; yf=function(w,M,P,u){u=u===void 0?240:u;g.r.call(this,{W:"button",d$:["ytp-button","ytp-share-button"],Z:{title:"Compartir","aria-haspopup":"true","aria-owns":P.element.id,"data-tooltip-opaque":String(g.K7(w.N()))},J:[{W:"div",T:"ytp-share-icon",pu:"{{icon}}"},{W:"div",T:"ytp-share-title",pu:"Compartir"}]});this.api=w;this.B=M;this.L=P;this.C=u;this.visible=!1;this.tooltip=this.B.V_();w.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.Y(w,"videodatachange",this.g$);this.Y(w, "videoplayerreset",this.g$);this.Y(w,"appresize",this.g$);this.Y(w,"presentingplayerstatechange",this.g$);this.g$();this.addOnDisposeCallback(g.lD(this.tooltip,this.element))}; nzp=function(w){var M=w.api.N(),P=w.api.getVideoData(),u=g.K7(M)&&g.n$(w.api)&&g.C(w.api.getPlayerStateObject(),128);M=M.C||M.disableSharing&&w.api.getPresentingPlayerType()!==2||!P.showShareButton||P.Qn||u||g.f$(P)||!1;u=w.api.oI().getPlayerSize().width;return!!P.videoId&&u>=w.C&&!M}; vz2=function(w,M){M.name!=="InvalidStateError"&&M.name!=="AbortError"&&(M.name==="NotAllowedError"?(w.B.QS(),xt(w.L,w.element,!1)):g.qU(M))}; Kix=function(w,M){var P=iu(),u=w.N();P={W:"div",T:"ytp-share-panel",Z:{id:iu(),role:"dialog","aria-labelledby":P},J:[{W:"div",T:"ytp-share-panel-inner-content",J:[{W:"div",T:"ytp-share-panel-title",Z:{id:P},pu:"Compartir"},{W:"a",d$:["ytp-share-panel-link","ytp-no-contextmenu"],Z:{href:"{{link}}",target:u.S,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},pu:"{{linkText}}"},{W:"label",T:"ytp-share-panel-include-playlist",J:[{W:"input",T:"ytp-share-panel-include-playlist-checkbox", Z:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{W:"div",T:"ytp-share-panel-loading-spinner",J:[FQ()]},{W:"div",T:"ytp-share-panel-service-buttons",pu:"{{buttons}}"},{W:"div",T:"ytp-share-panel-error",pu:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{W:"button",d$:["ytp-share-panel-close","ytp-button"],Z:{title:"Cerrar"},J:[g.SX()]}]};g.C$.call(this,w,P,250);var X=this;this.moreButton=null;this.api=w;this.tooltip=M.V_();this.C=[];this.K= this.RI("ytp-share-panel-inner-content");this.closeButton=this.RI("ytp-share-panel-close");this.Y(this.closeButton,"click",this.Wj);this.addOnDisposeCallback(g.lD(this.tooltip,this.closeButton));this.X=this.RI("ytp-share-panel-include-playlist-checkbox");this.Y(this.X,"click",this.g$);this.B=this.RI("ytp-share-panel-link");this.addOnDisposeCallback(g.lD(this.tooltip,this.B));this.api.createClientVe(this.B,this,164503);this.Y(this.B,"click",function(U){U.preventDefault();X.api.logClick(X.B);var f= X.api.getVideoUrl(!0,!0,!1,!1);f=sRu(X,f);g.HH(f,X.api,U)&&X.api.Vs("SHARE_CLICKED")}); this.listen("click",this.Gw);this.Y(w,"videoplayerreset",this.hide);this.Y(w,"fullscreentoggled",this.onFullscreenToggled);this.Y(w,"onLoopRangeChange",this.Y4);this.hide()}; AUM=function(w,M){bT1(w);for(var P=M.links||M.shareTargets,u=0,X={},U=0;U0&&!w4&&!R?(e.length===2&&(e=["noreferrer"]),g.Fj(F,y,p,e[0]),F=aHu()):(q=l.join(","),nQ()&&F.navigator&&F.navigator.standalone&&p&&p!="_self"?(q=g.HS("A"),g.c1(q,y),q.target=p,d&&(q.rel="noreferrer"),((E=E.attributionsrc)||E==="")&&q.setAttribute("attributionsrc",E),E=document.createEvent("MouseEvent"), E.initMouseEvent("click",!0,!0,F,1),q.dispatchEvent(E),F=aHu()):d?(F=g.Fj(F,"",p,q),E=g.Xj(y),F&&(F.opener=null,E===""&&(E="javascript:''"),E='',E=H1(E),(y=F.document)&&y.write&&(y.write(pQ(E)),y.close()))):((F=g.Fj(F,y,p,q))&&E.noopener&&(F.opener=null),F&&E.noreferrer&&(F.opener=null)));F&&(F.opener||(F.opener=window),F.focus());H.preventDefault()}}}(X)); X.tQ.addOnDisposeCallback(g.lD(w.tooltip,X.tQ.element));h==="Facebook"?w.api.createClientVe(X.tQ.element,X.tQ,164504):h==="Twitter"&&w.api.createClientVe(X.tQ.element,X.tQ,164505);w.Y(X.tQ.element,"click",function(S){return function(){w.api.logClick(S.tQ.element)}}(X)); w.api.logVisibility(X.tQ.element,!0);w.C.push(X.tQ);u++}}var c=M.more||M.moreLink,Z=new g.r({W:"a",d$:["ytp-share-panel-service-button","ytp-button"],J:[{W:"span",T:"ytp-share-panel-service-button-more",J:[{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},J:[{W:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{W:"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:c,target:"_blank",title:"M\u00e1s"}});Z.listen("click",function(S){var H=c;w.api.logClick(w.moreButton.element);H=sRu(w,H);g.HH(H,w.api,S)&&w.api.Vs("SHARE_CLICKED")}); Z.addOnDisposeCallback(g.lD(w.tooltip,Z.element));w.api.createClientVe(Z.element,Z,164506);w.Y(Z.element,"click",function(){w.api.logClick(Z.element)}); w.api.logVisibility(Z.element,!0);w.C.push(Z);w.moreButton=Z;w.updateValue("buttons",w.C)}; sRu=function(w,M){var P={};g.K7(w.api.N())&&(g.Nl(w.api,"addEmbedsConversionTrackingParams",[P]),M=g.p5(M,P));return M}; bT1=function(w){for(var M=g.G(w.C),P=M.next();!P.done;P=M.next())P=P.value,P.detach(),g.wR(P);w.C=[]}; DV=function(w){return w===void 0||w.startSec===void 0||w.endSec===void 0?!1:!0}; gzR=function(w,M){w.startSec+=M;w.endSec+=M}; rU2=function(w){YA.call(this,w);this.L=this.B=this.isContentForward=this.j=!1;this.element.setAttribute("data-overlay-order","8");JUR(this);this.Y(this.U,"changeProductsInVideoVisibility",this.IX3);this.Y(this.U,"videodatachange",this.onVideoDataChange)}; jR5=function(w){w.K&&w.xu.element.removeChild(w.K.element);w.K=void 0}; t4R=function(w,M){return M.map(function(P){var u,X;if((P=(u=g.A(P,C92))==null?void 0:(X=u.thumbnail)==null?void 0:X.thumbnails)&&P.length!==0)return P[0].url}).filter(function(P){return P!==void 0}).map(function(P){P=new g.r({W:"img", T:"ytp-suggested-action-product-thumbnail",Z:{alt:"",src:P}});g.b(w,P);return P})}; xg5=function(w,M){w.isContentForward=M;g.X6(w.badge.element,"ytp-suggested-action-badge-content-forward",M)}; qQ=function(w){var M=w.isContentForward&&!w.yD();g.X6(w.badge.element,"ytp-suggested-action-badge-preview-collapsed",M&&w.B);g.X6(w.badge.element,"ytp-suggested-action-badge-preview-expanded",M&&w.L)}; Yu=function(w,M,P){return new g.bg(w*1E3,M*1E3,{priority:9,namespace:P})}; OTp=function(w){w.U.dB("shopping_overlay_visible");w.U.dB("shopping_overlay_preview_collapsed");w.U.dB("shopping_overlay_preview_expanded");w.U.dB("shopping_overlay_expanded")}; JUR=function(w){w.Y(w.U,g.AP("shopping_overlay_visible"),function(){w.fV(!0)}); w.Y(w.U,g.gL("shopping_overlay_visible"),function(){w.fV(!1)}); w.Y(w.U,g.AP("shopping_overlay_expanded"),function(){w.Lu=!0;qF(w)}); w.Y(w.U,g.gL("shopping_overlay_expanded"),function(){w.Lu=!1;qF(w)}); w.Y(w.U,g.AP("shopping_overlay_preview_collapsed"),function(){w.B=!0;qQ(w)}); w.Y(w.U,g.gL("shopping_overlay_preview_collapsed"),function(){w.B=!1;qQ(w)}); w.Y(w.U,g.AP("shopping_overlay_preview_expanded"),function(){w.L=!0;qQ(w)}); w.Y(w.U,g.gL("shopping_overlay_preview_expanded"),function(){w.L=!1;qQ(w)})}; ilH=function(w){g.r.call(this,{W:"div",T:"ytp-shorts-title-channel",J:[{W:"a",T:"ytp-shorts-title-channel-logo",Z:{href:"{{channelLink}}",target:w.N().S,"aria-label":"{{channelLogoLabel}}"}},{W:"div",T:"ytp-shorts-title-expanded-heading",J:[{W:"div",T:"ytp-shorts-title-expanded-title",J:[{W:"a",pu:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:w.N().S,tabIndex:"0"}}]}]}]});var M=this;this.api=w;this.B=this.RI("ytp-shorts-title-channel-logo");this.channelName=this.RI("ytp-shorts-title-expanded-title"); this.subscribeButton=null;w.createClientVe(this.B,this,36925);this.Y(this.B,"click",function(P){M.api.logClick(M.B);g.Fj(window,aXF(M));P.preventDefault()}); w.createClientVe(this.channelName,this,37220);this.Y(this.channelName,"click",function(P){M.api.logClick(M.channelName);g.Fj(window,aXF(M));P.preventDefault()}); weu(this);this.Y(w,"videodatachange",this.g$);this.Y(w,"videoplayerreset",this.g$);this.g$()}; weu=function(w){if(!w.api.N().GE){var M=w.api.getVideoData(),P=new g.Pc("Suscribirse",null,"Suscrito/a",null,!0,!1,M.ZY,M.subscribed,"channel_avatar",null,w.api,!0);w.api.createServerVe(P.element,w);var u;w.api.setTrackingParams(P.element,((u=M.subscribeButtonRenderer)==null?void 0:u.trackingParams)||null);w.Y(P.element,"click",function(){w.api.logClick(P.element)}); w.subscribeButton=P;g.b(w,w.subscribeButton);w.subscribeButton.XK(w.element)}}; aXF=function(w){var M=w.api.N(),P=w.api.getVideoData();P=g.FD(M)+P.bW;if(!g.K7(M))return P;M={};g.Nl(w.api,"addEmbedsConversionTrackingParams",[M]);return g.p5(P,M)}; zH=function(w){g.C$.call(this,w,{W:"button",d$:["ytp-skip-intro-button","ytp-popup","ytp-button"],J:[{W:"div",T:"ytp-skip-intro-button-text",pu:"Omitir introducci\u00f3n"}]},100);var M=this;this.C=!1;this.B=new g.gV(function(){M.hide()},5E3); this.a7=this.uX=NaN;g.b(this,this.B);this.j=function(){M.show()}; this.K=function(){M.hide()}; this.X=function(){var P=M.U.getCurrentTime();P>M.uX/1E3&&P0?{W:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},J:[{W:"path",d$:["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"}}, {W:"text",d$:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"7.05",y:"15.05"}}]}:{W:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},J:[{W:"path",d$:["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"}}, {W:"text",d$:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"6.5",y:"15"}}]}]});var P=this;this.U=w;this.B=M;this.L=new g.gV(function(){P.C?(P.C=!1,P.L.start()):P.element.classList.remove("ytp-jump-spin","backwards")},250); this.C=!1;(M=M>0)?this.U.createClientVe(this.element,this,36843):this.U.createClientVe(this.element,this,36844);var u=g.iM(M?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.B).toString()});this.update({title:u,"data-title-no-tooltip":u,"aria-keyshortcuts":M?"\u2192":"\u2190"});this.X=this.element.querySelector(".ytp-jump-button-text");this.X.textContent=Math.abs(this.B).toString();this.listen("click",this.onClick,this);L$(w,this.element,this)}; Wfy=function(w,M){M?w.element.classList.add("ytp-jump-button-enabled"):w.element.classList.remove("ytp-jump-button-enabled");w.U.logVisibility(w.element,M);w.U.j0()}; Qf=function(w,M){d5.call(this,w,M,"timedMarkerCueRange","Ver momentos clave");this.Y(w,g.gL("timedMarkerCueRange"),this.Ub);this.Y(w,"updatemarkervisibility",this.updateVideoData)}; hY5=function(w){var M,P=(M=w.U.getVideoData())==null?void 0:M.jL;if(P)for(w=w.X.t9,P=g.G(P),M=P.next();!M.done;M=P.next())if(M=w[M.value]){var u=void 0,X=void 0,U=void 0;if(((u=M.onTap)==null?void 0:(X=u.innertubeCommand)==null?void 0:(U=X.changeEngagementPanelVisibilityAction)==null?void 0:U.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return M}}; ku=function(w){var M=w.D("web_enable_pip_on_miniplayer");g.r.call(this,{W:"button",d$:["ytp-miniplayer-button","ytp-button"],Z:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},J:["{{icon}}"]});this.U=w;this.visible=!1;this.listen("click",this.onClick);this.Y(w,"fullscreentoggled",this.g$);this.updateValue("title",g.eq(w,"Reproductor en miniatura","i"));this.update({"data-title-no-tooltip":"Reproductor en miniatura", icon:this.U.D("delhi_modern_web_player_icons")?{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:M?{W:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},J:[{W:"g",Z:{transform:"translate(96, -96) scale(0.8)"},J:[{W:"path",fT:!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"}}]}]}:zD5()});L$(w,this.element,this);w.createClientVe(this.element,this,62946);this.g$()}; Rt=function(w,M,P,u,X,U){U=U===void 0?!1:U;var f={W:"div",d$:["ytp-input-slider-section"],J:[{W:"input",T:"ytp-input-slider",Z:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};X&&f.J.unshift(X);U&&f.d$.push("ytp-vertical-slider");g.r.call(this,f);this.X=w;this.K=M;this.V=P;this.initialValue=u;this.header=X;this.L=this.RI("ytp-input-slider");this.B=u?u:w;this.init();this.Y(this.L,"input",this.C);this.Y(this.L,"keydown", this.j)}; na=function(w,M){w.B=M;w.updateValue("slidervalue",w.B);w.L.valueAsNumber=w.B;cV4(w,M)}; cV4=function(w,M){w.L.style.setProperty("--yt-slider-shape-gradient-percent",(M-w.X)/(w.K-w.X)*100+"%")}; vc=function(w){var M=w.isMuted()?0:w.getVolume();Rt.call(this,0,100,1,M,void 0,!0);this.U=w;this.B3=kf(this.mN,10,this);this.S=!1;this.Y(w,"onVolumeChange",this.onVolumeChange);this.Y(this.element,"wheel",this.Lu)}; ZlH=function(w,M){g.r.call(this,{W:"div",Z:{tabindex:"0",title:"Volumen","data-tooltip-offset-y":"-120"},d$:["ytp-volume-popover"]});var P=this;this.isVisible=!1;this.tooltip=M.V_();this.L=new vc(w);g.b(this,this.L);this.L.XK(this.element);this.B=new g.gV(function(){sy(P,!1)},300); this.listen("mouseenter",function(){P.B.stop()}); this.listen("mouseleave",function(){P.B.start()}); this.listen("focus",function(){P.B.stop()}); this.Y(this.L.L,"focus",function(){P.B.stop()}); this.listen("focusout",function(){P.B.start();P.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.lD(M.V_(),this.element));g.b(this,this.B)}; sy=function(w,M){w.element.classList.toggle("ytp-volume-popover-hovering",M);w.isVisible=M}; Ka=function(w,M,P){P=P===void 0?!1:P;var u=w.N().xu?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}"}:{"aria-disabled":"true","aria-haspopup":"true"};u=w.D("delhi_modern_web_player")?{W:"div",T:"ytp-mute-button",J:[{W:"button",Z:u,d$:["ytp-volume-icon","ytp-button"],pu:"{{icon}}"}]}:{W:"button",d$:["ytp-mute-button","ytp-button"],Z:u,J:[{W:"div",T:"ytp-volume-icon",pu:"{{icon}}"}]}; g.r.call(this,u);this.U=w;this.UO=P;this.L=null;this.j=this.mN=this.S=this.V=NaN;this.Cu=this.B3=null;this.K=[];this.X=[];this.visible=!1;this.C=this.B=this.Lu=null;w.D("delhi_modern_web_player")&&this.update({"data-priority":4});P=this.U.N();this.updateValue("icon",DI());this.tooltip=M.V_();this.updateValue("dataTooltipOffsetY",0);this.C=g.fj("ytp-volume-icon",this.element);u=this.U.D("delhi_modern_web_player_icons")?{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"path",d$:["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"}},{W:"path",T:"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"}},{W:"path",T:"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"}}]}:{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"defs",J:[{W:"clipPath",Z:{id:"ytp-svg-volume-animation-mask"},J:[{W:"path",Z:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{W:"path",Z:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{W:"path",T:"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"}}]},{W:"clipPath",Z:{id:"ytp-svg-volume-animation-slash-mask"},J:[{W:"path",T:"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"}}]}]},{W:"path",fT:!0,d$:["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"}},{W:"path",fT:!0,d$:["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.L=new g.Mo(u);g.b(this,this.L);this.B3=this.L.RI("ytp-svg-volume-animation-speaker");this.Cu=this.B3.getAttribute("d");this.K=g.$f("ytp-svg-volume-animation-mover",this.L.element);this.U.D("delhi_modern_web_player_icons");this.X=g.$f("ytp-svg-volume-animation-hider",this.L.element);this.U.D("delhi_modern_web_player_icons");this.xu=new w7;g.b(this,this.xu);this.ys=new w7;g.b(this,this.ys);this.Y(w,"appresize",this.O_);this.Y(w,"onVolumeChange",this.onVolumeChange);w.D("delhi_modern_web_player")? this.listen("click",this.rwI):this.listen("click",this.kY);P.xu?(w.D("delhi_modern_web_player")&&(this.B=new ZlH(w,M),this.B.XK(this.element),g.b(this,this.B),this.Y(this.C,"mouseover",this.hN),this.Y(this.C,"focus",this.hN),this.Y(this.C,"mouseout",this.oR),this.Y(this.C,"blur",this.oR)),P=w.D("delhi_modern_web_player")?this.C:this.element,this.addOnDisposeCallback(g.lD(M.V_(),P))):SFU(this);this.message=null;w.createClientVe(this.element,this,28662);this.O_(w.oI().getPlayerSize());this.setVolume(w.getVolume(), w.isMuted())}; HlF=function(w,M){if(w.U.N().xu){var P=g.eq(w.U,"Silenciar","m"),u=g.eq(w.U,"Activar sonido","m");w.updateValue("title",M?u:P);w.update({"data-title-no-tooltip":M?"Activar sonido":"Silenciar"});w.tooltip.j0()}}; EKF=function(w,M){w.V=M;var P=w.Cu;w.U.D("delhi_modern_web_player_icons")?w.L.RI("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(M+") translate(-22,-12)")):M&&(P+=TcH(peu,FfF,M));w.B3.setAttribute("d",P)}; Nmz=function(w,M){var P;M===1?P=w.U.D("delhi_modern_web_player_icons")?{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:DI():P=w.L;w.mN=M;if(w.U.D("delhi_modern_web_player_icons"))w.L.RI("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-M+") translate(-18,-12)")),w.L.RI("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(w.V-M+") translate(-22, -12)"));else{for(var u=20*M,X=0;X=3&&w.U.getPresentingPlayerType()!==2}; D4H=function(w){var M=RZ(w.U.I9());return M?w.B?M.kH():M.ST():!1}; oK_=function(w){var M={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},P=w.playlist!=null&&w.playlist.kH();P=g.n$(w.U)&&(!w.B||P);var u=w.B&&g.IZ(w.U),X=D4H(w),U=w.B&&w.U.getPresentingPlayerType()===5,f=g.eq(w.U,"Siguiente","SHIFT+n"),h=g.eq(w.U,"Anterior","SHIFT+p");if(U)M.title="Iniciar video";else if(w.C)M.title="Volver a reproducir";else if(P){var c=null;w.playlist&&(c=g.o5(w.playlist,w.B?HGz(w.playlist):ps4(w.playlist)));if(c){if(c.videoId){var Z= w.playlist.listId;M.url=w.U.N().getVideoUrl(c.videoId,Z?Z.toString():void 0)}M.text=c.title;M.duration=c.lengthText?c.lengthText:c.lengthSeconds?g.N9(c.lengthSeconds):null;M.preview=c.Md("mqdefault.jpg")}w.B?(M.title=f,M["data-title-no-tooltip"]="Siguiente",M["aria-keyshortcuts"]="SHIFT+n"):(M.title=h,M["data-title-no-tooltip"]="Anterior",M["aria-keyshortcuts"]="SHIFT+p")}else if(u){if(h=(c=w.videoData)==null?void 0:g.Zw(c))M.url=h.eA(),M.text=h.title,M.duration=h.lengthText?h.lengthText:h.lengthSeconds? g.N9(h.lengthSeconds):null,M.preview=h.Md("mqdefault.jpg");M.title=f;M["data-title-no-tooltip"]="Siguiente";M["aria-keyshortcuts"]="SHIFT+n"}M.disabled=!u&&!P&&!X&&!U;w.update(M);w.j=!!M.url;u||P||w.C||X||U?w.L||(w.L=g.lD(w.tooltip,w.element),w.K=w.listen("click",w.onClick,w)):w.L&&(w.L(),w.L=null,w.Mt(w.K),w.K=null);w.tooltip.j0();g.X6(w.element,"ytp-playlist-ui",w.B&&(P||w.U.D("web_hide_next_button")))}; m45=function(w,M){return w?M?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:FT():M?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:lqz()}; YFu=function(w,M){g.r.call(this,{W:"div",T:"ytp-fine-scrubbing",J:[{W:"div",T:"ytp-fine-scrubbing-draggable",J:[{W:"div",T:"ytp-fine-scrubbing-thumbnails",Z:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic en el panel o despl\u00e1zate por \u00e9l para usar la b\u00fasqueda precisa.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{W:"div",Z:{"aria-hidden":"true"},T:"ytp-fine-scrubbing-cursor"},{W:"div", T:"ytp-fine-scrubbing-seek-time",Z:{"aria-hidden":"true"},pu:"{{seekTime}}"},{W:"div",T:"ytp-fine-scrubbing-play",J:[w.D("delhi_modern_web_player_icons")?mL():VA()],Z:{title:"Reproducir desde este momento",role:"button"}},{W:"div",T:"ytp-fine-scrubbing-dismiss",J:[g.SX()],Z:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var P=this;this.api=w;this.K=this.RI("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.RI("ytp-fine-scrubbing-dismiss");this.mN=this.RI("ytp-fine-scrubbing-draggable"); this.playButton=this.RI("ytp-fine-scrubbing-play");this.thumbnails=[];this.L=[];this.UO=this.B=0;this.xu=void 0;this.B3=NaN;this.eL=this.S=this.C=this.V=0;this.X=[];this.interval=this.frameCount=0;this.j=160;this.scale=1;this.OO=0;this.isEnabled=this.Cu=!1;qF_(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.lD(M,this.dismissButton));this.addOnDisposeCallback(g.lD(M,this.playButton));this.ys=new g.bG(this.mN,!0);this.ys.subscribe("dragstart",this.QZ,this);this.ys.subscribe("dragmove",this.ao, this);this.ys.subscribe("dragend",this.hT,this);this.Y(w,"SEEK_COMPLETE",this.gt);w.D("web_fix_fine_scrubbing_false_play")&&this.Y(w,"rootnodemousedown",function(u){P.Lu=u}); this.K.addEventListener("keydown",function(){}); g.b(this,this.ys);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.K,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; qF_=function(w,M){var P=g.N9(M),u=g.iM("Saltar a: $PROGRESS",{PROGRESS:g.N9(M,!0)});w.update({ariamin:0,ariamax:Math.floor(w.api.getDuration()),arianow:Math.floor(M),arianowtext:u,seekTime:P})}; zYH=function(w){w.B3=NaN;w.S=0;w.V=w.C}; lQl=function(w){var M=w.api.mj();if(M){var P=90*w.scale,u=Cp(M,160*w.scale);if(M=M.levels[u]){w.j=M.width;if(!w.X.length){u=[];for(var X=tW(M,M.tv()),U=M.columns*M.rows,f=M.frameCount,h=0;h<=X;h++)for(var c=fw.X.length;)u= void 0,(u=w.thumbnails.pop())==null||u.dispose();for(;w.thumbnails.lengthP.length;)u=void 0,(u=w.L.pop())==null||u.dispose(); for(;w.L.length-P?-M/P*w.interval*.5:-(M+P/2)/P*w.interval}; Lf2=function(w){return-((w.K.offsetWidth||(w.frameCount-1)*w.j*w.scale)-w.B/2)}; Tm4=function(){g.r.call(this,{W:"div",T:"ytp-fine-scrubbing-thumbnail"})}; d4l=function(){g.r.call(this,{W:"div",T:"ytp-fine-scrubbing-chapter-title",J:[{W:"div",T:"ytp-fine-scrubbing-chapter-title-content",pu:"{{chapterTitle}}"}]})}; Bmx=function(w){g.r.call(this,{W:"div",T:"ytp-heat-map-chapter",J:[{W:"svg",T:"ytp-heat-map-svg",Z:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},J:[{W:"defs",J:[{W:"clipPath",Z:{id:"{{id}}"},J:[{W:"path",T:"ytp-heat-map-path",Z:{d:"",fill:"white"}}]},{W:"linearGradient",Z:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},J:[{W:"stop",Z:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{W:"stop",Z:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{W:"rect",T:"ytp-heat-map-graph",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{W:"rect",T:"ytp-heat-map-hover",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{W:"rect",T:"ytp-heat-map-play",Z:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{W:"path",T:"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=w;this.V=this.RI("ytp-heat-map-svg");this.K=this.RI("ytp-heat-map-path");this.X=this.RI("ytp-heat-map-graph");this.j=this.RI("ytp-heat-map-play");this.B=this.RI("ytp-heat-map-hover");this.C=this.RI("ytp-modern-heat-map");this.Nf=!1;this.L=60;w=""+g.UE(this);this.update({id:w});w="url(#"+w+")";this.X.setAttribute("clip-path",w);this.j.setAttribute("clip-path",w);this.B.setAttribute("clip-path", w)}; Q_U=function(w,M){M>0&&(w.L=M,w.V.style.height=w.L+"px")}; g5=function(){g.r.call(this,{W:"div",T:"ytp-chapter-hover-container",J:[{W:"div",T:"ytp-progress-bar-padding"},{W:"div",T:"ytp-progress-list",J:[{W:"div",d$:["ytp-play-progress","ytp-swatch-background-color"]},{W:"div",T:"ytp-progress-linear-live-buffer"},{W:"div",T:"ytp-load-progress"},{W:"div",T:"ytp-hover-progress"},{W:"div",T:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.L=this.RI("ytp-progress-list");this.K=this.RI("ytp-progress-linear-live-buffer"); this.X=this.RI("ytp-ad-progress-list");this.j=this.RI("ytp-load-progress");this.V=this.RI("ytp-play-progress");this.C=this.RI("ytp-hover-progress");this.B=this.RI("ytp-chapter-hover-container")}; J8=function(w,M){g.A1(w.B,"width",M)}; kWU=function(w,M){g.A1(w.B,"margin-right",M+"px")}; RY1=function(){this.L=this.position=this.C=this.B=this.X=this.width=NaN}; nK_=function(){g.r.call(this,{W:"div",T:"ytp-timed-marker"});this.B=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.ji=function(w,M){g.XT.call(this,{W:"div",T:"ytp-progress-bar-container",Z:{"aria-disabled":"true"},J:[{W:"div",d$:["ytp-heat-map-container"],J:[{W:"div",T:"ytp-heat-map-edu"}]},{W:"div",d$:["ytp-progress-bar"],Z:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},J:[{W:"div",T:"ytp-chapters-container"},{W:"div",T:"ytp-timed-markers-container"}, {W:"div",T:"ytp-clip-start-exclude"},{W:"div",T:"ytp-clip-end-exclude"},{W:"div",T:"ytp-scrubber-container",J:[{W:"div",d$:["ytp-scrubber-button","ytp-swatch-background-color"],J:[{W:"div",T:"ytp-scrubber-pull-indicator"},{W:"img",d$:["ytp-decorated-scrubber-button"]}]}]}]},{W:"div",d$:["ytp-fine-scrubbing-container"],J:[{W:"div",T:"ytp-fine-scrubbing-edu"}]},{W:"div",T:"ytp-bound-time-left",pu:"{{boundTimeLeft}}"},{W:"div",T:"ytp-bound-time-right",pu:"{{boundTimeRight}}"},{W:"div",T:"ytp-clip-start", Z:{title:"{{clipstarttitle}}"},pu:"{{clipstarticon}}"},{W:"div",T:"ytp-clip-end",Z:{title:"{{clipendtitle}}"},pu:"{{clipendicon}}"}]});this.api=w;this.kD=!1;this.QL=this.dk=this.jL=this.K=this.Ci=0;this.nV=null;this.a7=!1;this.OO={};this.TE={};this.clipEnd=Infinity;this.GE=this.RI("ytp-clip-end");this.Ob=new g.bG(this.GE,!0);this.DX=this.RI("ytp-clip-end-exclude");this.SZ=this.RI("ytp-clip-start-exclude");this.clipStart=0;this.QE=this.RI("ytp-clip-start");this.rB=new g.bG(this.QE,!0);this.B3=this.cj= 0;this.progressBar=this.RI("ytp-progress-bar");this.M7={};this.t9={};this.iW=this.RI("ytp-chapters-container");this.Bb=this.RI("ytp-timed-markers-container");this.B=[];this.j=[];this.TD={};this.Q8=null;this.Cu=-1;this.fg=this.xu=0;this.Kx=this.V=null;this.wb=this.RI("ytp-scrubber-button");this.mN=this.RI("ytp-decorated-scrubber-button");this.dh=this.RI("ytp-scrubber-container");this.bW=new g.gq;this.KT=0;this.w5=new RY1;this.C=new zO(0,0);this.Cg=null;this.S=this.pV=!1;this.uX=null;this.Lu=this.RI("ytp-heat-map-container"); this.Lx=this.RI("ytp-heat-map-edu");this.X=[];this.heatMarkersDecorations=[];this.Z3=this.RI("ytp-fine-scrubbing-container");this.DO=this.RI("ytp-fine-scrubbing-edu");this.L=void 0;this.UO=this.gb=this.eL=!1;this.tooltip=M.V_();this.addOnDisposeCallback(g.lD(this.tooltip,this.GE));g.b(this,this.Ob);this.Ob.subscribe("hoverstart",this.UY,this);this.Ob.subscribe("hoverend",this.dQ,this);this.Y(this.GE,"click",this.tA);this.addOnDisposeCallback(g.lD(this.tooltip,this.QE));g.b(this,this.rB);this.rB.subscribe("hoverstart", this.UY,this);this.rB.subscribe("hoverend",this.dQ,this);this.Y(this.QE,"click",this.tA);vKp(this);this.Y(w,"resize",this.o9);this.Y(w,"presentingplayerstatechange",this.Q1);this.Y(w,"videodatachange",this.FG);this.Y(w,"videoplayerreset",this.g6);this.Y(w,"cuerangesadded",this.iVu);this.Y(w,"cuerangesremoved",this.vm9);this.Y(w,"onLoopRangeChange",this.gW);this.Y(w,"innertubeCommand",this.onClickCommand);this.Y(w,"onRetroModeChanged",this.hY3);this.Y(w,g.AP("timedMarkerCueRange"),this.BBu);this.Y(w, "updatemarkervisibility",this.kV);this.Y(w,"serverstitchedvideochange",this.NOu);this.updateVideoData(w.getVideoData(),!0);this.gW(w.getLoopRange());r5(this)&&!this.L&&(this.L=new YFu(this.api,this.tooltip),w=g.OS(this.element).x||0,this.L.o9(w,this.K),this.L.XK(this.Z3),g.b(this,this.L),this.Y(this.L.dismissButton,"click",this.mG),this.Y(this.L.playButton,"click",this.Xf),this.Y(this.L.element,"dblclick",this.Xf));this.api.createClientVe(this.Lu,this,139609,!0);this.api.createClientVe(this.Lx,this, 140127,!0);this.api.createClientVe(this.DO,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; vKp=function(w){if(w.B.length===0){var M=new g5;w.B.push(M);g.b(w,M);M.XK(w.iW,0)}for(;w.B.length>1;)w.B.pop().dispose();J8(w.B[0],"100%");w.B[0].startTime=0;w.B[0].title=""}; s_M=function(w){var M=M===void 0?NaN:M;var P=new Bmx(w.api);w.X.push(P);g.b(w,P);P.XK(w.Lu);M>=0&&(P.element.style.width=M+"px")}; KfR=function(w){for(;w.j.length;)w.j.pop().dispose()}; IQU=function(w){var M,P,u,X,U;return(U=g.A((X=g.A((M=w.getWatchNextResponse())==null?void 0:(P=M.playerOverlays)==null?void 0:(u=P.playerOverlayRenderer)==null?void 0:u.decoratedPlayerBarRenderer,v0))==null?void 0:X.playerBar,bl5))==null?void 0:U.chapters}; AVp=function(w){for(var M=w.B,P=[],u=0;u=f&&y<=S&&U.push(p)}c>0&&(w.Lu.style.height=c+"px");f=w.X[u];S=U;p=X;E=c;y=u===0;y=y===void 0?!1:y;Q_U(f,E);H=S;F=f.L;y=y===void 0?!1:y;var q=1E3/H.length,d=[];d.push({x:0,y:100});for(var l=0;l0&&(P=U[U.length-1])}g.Ca(w);h=[];M=g.G(M.heatMarkersDecorations||[]);for(X=M.next();!X.done;X=M.next())if(X=g.A(X.value,x4x))c=X.label,u=P=Z=void 0,h.push({visibleTimeRangeStartMillis:(Z=X.visibleTimeRangeStartMillis)!=null?Z:-1,visibleTimeRangeEndMillis:(P=X.visibleTimeRangeEndMillis)!=null?P:-1,decorationTimeMillis:(u=X.decorationTimeMillis)!=null?u:NaN,label:c?g.ff(c):""});w.heatMarkersDecorations=h}}; rV1=function(w,M){w.j.push(M);g.b(w,M);M.XK(w.Bb,w.Bb.children.length)}; j_u=function(w,M){M=g.G(M);for(var P=M.next();!P.done;P=M.next()){P=P.value;var u=t8(w,P.timeRangeStartMillis/(w.C.B*1E3),xu(w)),X=w.api.D("delhi_modern_web_player")?.667:.6;g.A1(P.element,"transform","translateX("+u+"px) scaleX("+X+")")}}; gKz=function(w,M){var P=0,u=!1;M=g.G(M);for(var X=M.next();!X.done;X=M.next()){X=X.value;if(g.A(X,aQy)){X=g.A(X,aQy);var U={startTime:NaN,title:null,onActiveCommand:void 0},f=X.title;U.title=f?g.ff(f):"";f=X.timeRangeStartMillis;f!=null&&(U.startTime=f);U.onActiveCommand=X.onActiveCommand;X=U;P===0&&X.startTime!==0&&(w.B[P].startTime=0,w.B[P].title="",w.B[P].onActiveCommand=X.onActiveCommand,P++,u=!0);w.B.length<=P&&(U=new g5,w.B.push(U),g.b(w,U),U.XK(w.iW,w.iW.children.length));w.B[P].startTime= X.startTime;w.B[P].title=X.title?X.title:"";w.B[P].onActiveCommand=X.onActiveCommand;w.B[P].index=u?P-1:P}P++}for(;P=0;u--)if(w.B[u].width>0){kWU(w.B[u],0);var X=Math.floor(w.B[u].width);w.B[u].width=X;J8(w.B[u],X+"px");break}w.B[P].width=0;J8(w.B[P],"0")}else P===w.B.length-1?(u=Math.floor(w.B[P].width+M),w.B[P].width=u,J8(w.B[P],u+"px")):(M=w.B[P].width+M,u=Math.round(M),M-=u,w.B[P].width=u,J8(w.B[P],u+"px"));P=0;if(w.X.length===w.B.length)for(M=0;M< w.X.length;M++)u=w.B[M].width,w.X[M].element.style.width=u+"px",w.X[M].element.style.left=P+"px",P+=u+at(w);w.api.D("delhi_modern_web_player")&&(w.B.length===1?w.B[0].L.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(w.B[0].L.classList.remove("ytp-progress-bar-end"),w.B[0].L.classList.add("ytp-progress-bar-start"),w.B[w.B.length-1].L.classList.add("ytp-progress-bar-end")))}; w3_=function(w,M){var P=0,u=!1,X=w.B.length,U=w.C.B*1E3;U===0&&(U=w.api.getProgressState().seekableEnd*1E3);if(U>0&&w.K>0){for(var f=w.K-at(w)*w.xu,h=w.fg===0?3:f*w.fg,c=g.G(w.B),Z=c.next();!Z.done;Z=c.next())Z.value.width=0;for(;P1);Z=(U===0?0:c/U*f)+w.B[P].width;if(Z>h)w.B[P].width=Z;else{w.B[P].width=0;var S=w,H=P,p=S.B[H-1];p!==void 0&&p.width>0? p.width+=Z:Hw.fg&&(w.fg=c/U),u=!0)}P++}}return u}; Oy=function(w){if(w.K){var M=w.api.getProgressState(),P=w.api.getVideoData();if(!(P&&P.enableServerStitchedDai&&P.Fs)||isFinite(M.current)){var u;if(((u=w.api.getVideoData())==null?0:Ur(u))&&M.airingStart&&M.airingEnd)var X=wc(w,M.airingStart,M.airingEnd);else if(w.api.getPresentingPlayerType()===2){var U,f,h;X=(P=(X=w.api.getVideoData())==null?void 0:(U=X.getPlayerResponse())==null?void 0:(f=U.playerConfig)==null?void 0:(h=f.webPlayerConfig)==null?void 0:h.skippableAdProgressBarDuration)?wc(w,M.seekableStart, P/1E3):wc(w,M.seekableStart,M.seekableEnd)}else X=wc(w,M.seekableStart,M.seekableEnd);U=TO(X,M.loaded,0);M=TO(X,M.current,0);f=w.C.L!==X.L||w.C.B!==X.B;w.C=X;iN(w,M,U);f&&iVM(w);MH5(w)}}}; wc=function(w,M,P){return P$F(w)?new zO(Math.max(M,w.Cg.startTimeMs/1E3),Math.min(P,w.Cg.endTimeMs/1E3)):new zO(M,P)}; X3y=function(w,M){var P,u,X;M=g.A((P=M.getWatchNextResponse())==null?void 0:(u=P.playerOverlays)==null?void 0:(X=u.playerOverlayRenderer)==null?void 0:X.decoratedPlayerBarRenderer,v0);if(M==null?0:M.progressColor)for(P=0;P1){P=MD(w,M.C,!0);for(var u=0,X=0;X0&&(u+=w.B[X].width,u+=at(w));P=(w.B[P].startTime+(M.C-u)/w.B[P].width*((P===w.B.length-1?w.C.B*1E3:w.B[P+1].startTime)-w.B[P].startTime))/1E3||0}return P}; uN=function(w,M,P,u,X){M=M<0?0:Math.floor(Math.min(M,w.api.getDuration())*1E3);P=P<0?0:Math.floor(Math.min(P,w.api.getDuration())*1E3);w=w.progressBar.visualElement;u={seekData:{startMediaTimeMs:M,endMediaTimeMs:P,seekSource:u}};(M=g.En())&&g.j2(Ag)(void 0,M,w,X,u,void 0)}; UtR=function(w,M,P){if(P>=w.B.length)return!1;var u=w.K-at(w)*w.xu;return Math.abs(M-w.B[P].startTime/1E3)/w.C.B*u<4}; iVM=function(w){w.wb.style.removeProperty("height");for(var M=g.G(Object.keys(w.OO)),P=M.next();!P.done;P=M.next())fep(w,P.value);Xk(w);iN(w,w.B3,w.cj)}; xu=function(w){var M=w.bW.x;M=g.bi(M,0,w.K);w.w5.update(M,w.K);return w.w5}; Uf=function(w){return(w.S?135:90)-$d(w)}; $d=function(w){var M=48,P=w.api.N();w.api.D("delhi_modern_web_player")?M=w.api.getPlayerSize().width<=528?64:w.S?96:72:w.S?M=54:g.K7(P)&&!P.L&&(M=40);return M}; iN=function(w,M,P){w.B3=M;w.cj=P;var u=xu(w),X=w.C.B,U=hNz(w.C,w.B3),f=g.iM("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.N9(U,!0),DURATION:g.N9(X,!0)}),h=ZV(w.B,U*1E3);h=w.B[h].title;w.update({ariamin:Math.floor(w.C.L),ariamax:Math.floor(X),arianow:Math.floor(U),arianowtext:h?h+" "+f:f});X=w.clipStart;U=w.clipEnd;w.Cg&&w.api.getPresentingPlayerType()!==2&&(X=w.Cg.startTimeMs/1E3,U=w.Cg.endTimeMs/1E3);X=TO(w.C,X,0);h=TO(w.C,U,1);f=w.api.getVideoData();U=g.bi(M,X,h);P=(f==null?0:g.uD(f))?1:g.bi(P, X,h);M=t8(w,M,u);g.A1(w.dh,"transform","translateX("+M+"px)");w.api.D("delhi_modern_web_player")&&w.api.D("delhi_modern_web_player_cutout")&&W6z(w,M);fI(w,u,X,U,"PLAY_PROGRESS");(f==null?0:Ur(f))?(M=w.api.getProgressState().seekableEnd)&&fI(w,u,U,TO(w.C,M),"LIVE_BUFFER"):fI(w,u,X,P,"LOAD_PROGRESS");if(w.api.D("web_player_heat_map_played_bar")){var c;(c=w.X[0])!=null&&c.j.setAttribute("width",(U*100).toFixed(2)+"%")}}; W6z=function(w,M){w.api.getPresentingPlayerType()!==1?w.iW.style.removeProperty("clip-path"):(M||(M=t8(w,w.B3,xu(w))),w.iW.style.clipPath='path("'+(w.a7?heF(w,8,M,w.S?50:36,0,6):heF(w,4,M,w.S?34:24,2,3))+'")')}; heF=function(w,M,P,u,X,U){var f=P-u/2;P+=u/2;M+=X;return"M 0 "+X+" L 0 "+(M+" L ")+(f+" "+M+" C ")+(f+U+" "+M+" "+(f+U)+" "+X+" "+f+" "+X+" L 0 ")+(X+" M ")+(P+" "+X+" L ")+(w.K+" "+X+" L ")+(w.K+" "+M+" L ")+(P+" "+M+" C ")+(P-U+" "+M+" "+(P-U)+" "+X+" "+P+" "+X)}; fI=function(w,M,P,u,X){var U=w.B.length,f=M.B-w.xu*at(w),h=P*f;P=MD(w,h);var c=u*f;f=MD(w,c);X==="HOVER_PROGRESS"&&(f=MD(w,M.B*u,!0),c=M.B*u-cs4(w,M.B*u)*at(w));u=Math.max(h-ZVH(w,P),0);for(h=P;h=w.B.length)return w.K;for(var P=0,u=0;u0||w.DX.clientWidth>0?(U=M.clientWidth/P,w=-1*w.SZ.clientWidth/P):(U/=P,w=-1*w.B[X].element.offsetLeft/P),g.A1(M,"background-size",U+"px"),g.A1(M,"background-position-x",w+"px"))}; WP=function(w,M,P,u,X){X||w.api.N().L?M.style.width=P+"px":g.A1(M,"transform","scalex("+(u?P/u:0)+")")}; MD=function(w,M,P){var u=0;(P===void 0?0:P)&&(M-=cs4(w,M)*at(w));P=g.G(w.B);for(var X=P.next();!X.done;X=P.next()){X=X.value;if(M>X.width)M-=X.width;else break;u++}return u===w.B.length?u-1:u}; t8=function(w,M,P){var u=M*w.C.B*1E3;for(var X=-1,U=g.G(w.B),f=U.next();!f.done;f=U.next())f=f.value,u>f.startTime&&f.width>0&&X++;u=X<0?0:X;X=P.B-at(w)*w.xu;return M*X+at(w)*u+P.X}; cs4=function(w,M){for(var P=w.B.length,u=0,X=g.G(w.B),U=X.next();!U.done;U=X.next())if(U=U.value,U.width!==0)if(M>U.width)M-=U.width,M-=at(w),u++;else break;return u===P?P-1:u}; g.p3R=function(w,M,P,u){var X=w.K!==P,U=w.S!==u;w.Ci=M;w.K=P;w.S=u;r5(w)&&(M=w.L)!=null&&(M.scale=u?1.5:1);iVM(w);w.B.length===1&&(w.B[0].width=P||0);X&&g.Ca(w);w.L&&U&&r5(w)&&(w.L.isEnabled&&(P=w.S?135:90,u=P-$d(w),w.Z3.style.height=P+"px",g.A1(w.Lu,"transform","translateY("+-u+"px)"),g.A1(w.progressBar,"transform","translateY("+-u+"px)")),lQl(w.L))}; Xk=function(w){var M=!!w.Cg&&w.api.getPresentingPlayerType()!==2,P=w.clipStart,u=w.clipEnd,X=!0,U=!0;M&&w.Cg?(P=w.Cg.startTimeMs/1E3,u=w.Cg.endTimeMs/1E3):(X=P>w.C.L,U=w.C.B>0&&uw.B3);g.X6(w.wb,"ytp-scrubber-button-hover",P===u&&w.B.length>1);if(w.api.D("web_player_heat_map_played_bar")){var U;(U=w.X[0])!=null&&U.B.setAttribute("width",(M.L*100).toFixed(2)+"%")}}}; fep=function(w,M){var P=w.OO[M];M=w.TE[M];var u=xu(w),X=TO(w.C,P.start/1E3,0),U=yg1(P,w.S)/u.width;var f=TO(w.C,P.end/1E3,1);U!==Number.POSITIVE_INFINITY&&(X=g.bi(X,0,f-U));f=Math.min(f,X+U);P.color&&(M.style.background=P.color);P=X;M.style.left=Math.max(P*u.B+u.X,0)+"px";WP(w,M,g.bi((f-P)*u.B+u.X,0,u.width),u.width,!0)}; F6l=function(w,M){var P=M.getId();w.OO[P]===M&&(g.Vy(w.TE[P]),delete w.OO[P],delete w.TE[P])}; r5=function(w){var M=g.fp(w.api.N())&&(w.api.D("web_shorts_pip")||w.api.D("web_watch_pip")),P;return!((P=w.api.getVideoData())==null?0:P.isLivePlayback)&&!w.api.isMinimized()&&!w.api.isInline()&&(!w.api.A5()||!M)}; hl=function(w){w.L&&(w.L.disable(),w.jL=0,w.Lu.style.removeProperty("transform"),w.progressBar.style.removeProperty("transform"),w.Z3.style.removeProperty("height"),w.element.parentElement&&w.element.parentElement.style.removeProperty("height"))}; Ei5=function(w,M){var P=M/Uf(w)*$d(w);g.A1(w.progressBar,"transform","translateY("+-M+"px)");g.A1(w.Lu,"transform","translateY("+-M+"px)");g.A1(w.Z3,"transform","translateY("+P+"px)");w.Z3.style.height=M+P+"px";w.element.parentElement&&(w.element.parentElement.style.height=$d(w)-P+"px")}; Nz4=function(w,M){M?w.V||(w.element.removeAttribute("aria-disabled"),w.V=new g.bG(w.progressBar,!0),w.api.D("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&w.V.subscribe("hoverstart",w.vAs,w),w.V.subscribe("hovermove",w.mtW,w),w.V.subscribe("hoverend",w.EAI,w),w.V.subscribe("dragstart",w.pkK,w),w.V.subscribe("dragmove",w.rzO,w),w.V.subscribe("dragend",w.RYO,w),w.api&&w.api.D("delhi_modern_web_player")&&w.api.D("delhi_modern_web_player_cutout")&&(w.Kx=new g.bG(w.progressBar, !0),w.Kx.subscribe("hoverstart",function(){w.a7=!0;W6z(w)},w),w.Kx.subscribe("hoverend",function(){w.a7=!1; W6z(w)},w)),w.uX=w.listen("keydown",w.aZ)):w.V&&(w.element.setAttribute("aria-disabled","true"),w.Mt(w.uX),w.V.cancel(),w.V.dispose(),w.V=null)}; at=function(w){return w.api.D("delhi_modern_web_player")?4:w.S?3:2}; P$F=function(w){var M;return!((M=w.Cg)==null||!M.postId)&&w.api.getPresentingPlayerType()!==2}; cP=function(w,M){g.r.call(this,{W:"button",d$:["ytp-remote-button","ytp-button"],Z:{title:"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},pu:"{{icon}}"});this.U=w;this.Lg=M;this.B=null;this.Y(w,"onMdxReceiversChange",this.g$);this.Y(w,"presentingplayerstatechange",this.g$);this.Y(w,"appresize",this.g$);w.createClientVe(this.element,this,139118);this.g$();this.listen("click",this.L,this);L$(w,this.element,this)}; ZA=function(w,M){g.r.call(this,{W:"button",d$:["ytp-button","ytp-settings-button"],Z:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":iu(),title:"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},J:[w.D("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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.Ga()]});this.U=w;this.Lg=M;this.L=!0;this.listen("click",this.C);this.Y(w,"onPlaybackQualityChange",this.updateBadge);this.Y(w,"videodatachange",this.updateBadge);this.Y(w,"webglsettingschanged",this.updateBadge);this.Y(w,"appresize",this.B);L$(w,this.element,this);this.U.createClientVe(this.element,this,28663);this.updateBadge();this.B(w.oI().getPlayerSize())}; VH2=function(w,M){w.L=!!M;w.B(w.U.oI().getPlayerSize())}; SK=function(w,M){cH.call(this,"Anotaciones",g.Nk.Sw);this.U=w;this.Lg=M;this.B=!1;w.D("web_settings_menu_icons")&&(M=w.D("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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(M));this.Y(w,"videodatachange",this.g$);this.Y(w,"onApiChange",this.g$);this.subscribe("select",this.onSelect,this);this.g$()}; HP=function(w,M){g.v6.call(this,"Pista de audio",g.Nk.AUDIO,w,M);this.U=w;this.tracks={};g.io(this.element,"ytp-audio-menu-item");this.countLabel=new g.r({W:"div",J:[{W:"span",pu:"Pista de audio"},{W:"span",T:"ytp-menuitem-label-count",pu:"{{content}}"}]});w.D("web_settings_menu_icons")&&(M=w.D("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:YmF(),this.setIcon(M));g.b(this,this.countLabel);g.aZ(this,this.countLabel);this.Y(w,"videodatachange",this.g$);this.Y(w,"onPlaybackAudioChange",this.g$);this.g$()}; pI=function(w,M){cH.call(this,"Reproducci\u00f3n autom\u00e1tica",g.Nk.In);this.U=w;this.Lg=M;this.B=!1;this.C=[];this.Y(w,"presentingplayerstatechange",this.L);this.subscribe("select",this.onSelect,this);w.createClientVe(this.element,this,113682);this.L()}; mt2=function(w,M){g.wa.call(this,g.ix({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.U=w;this.Lg=M;this.Y(this.element,"click",this.onClick);this.Lg.XF(this)}; oi2=function(w,M){var P;g.fp(w.N())&&(P={W:"div",T:"ytp-panel-footer-content",J:[{W:"span",pu:"Ajusta la calidad de descarga en la "},{W:"a",T:"ytp-panel-footer-content-link",pu:"Configuraci\u00f3n",Z:{href:"/account_downloads"}}]});g.v6.call(this,"Calidad",g.Nk.B$,w,M,void 0,void 0,P);this.U=w;this.mN={};this.S={};this.X={};this.ys=new Set;this.B=this.K=!1;this.j="unknown";this.B3="";this.Lu=new g.vb;g.b(this,this.Lu);this.K=this.U.D("web_player_use_new_api_for_quality_pullback");this.B=this.U.D("web_player_enable_premium_hbr_playback_cap"); w.D("web_settings_menu_icons")&&(M=w.D("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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(M));g.io(this.L.element,"ytp-quality-menu");this.Y(w,"videodatachange",this.zp);this.Y(w,"videoplayerreset",this.zp);this.Y(w,"onPlaybackQualityChange",this.aV);this.zp();w.createClientVe(this.element,this,137721)}; ys2=function(w,M,P){var u=w.mN[M],X=g.Go[M];return GbH(w,u?u.qualityLabel:X?X+"p":"Autom\u00e1tica",M,P)}; DtF=function(w,M,P,u,X){var U=(M=w.B?w.X[M]:w.S[M])&&M.quality,f=M&&M.qualityLabel;f=f?f:"Autom\u00e1tica";u&&(f="("+f);w=GbH(w,f,U||"",X);u&&w.J.push(")");(u=(u=M&&M.paygatedQualityDetails)&&u.paygatedIndicatorText)&&P&&w.J.push({W:"div",T:"ytp-premium-label",pu:u});return w}; GbH=function(w,M,P,u){M={W:"span",d$:u,J:[M]};var X;u="ytp-swatch-color";if(w.K||w.B)u="ytp-swatch-color-white";P==="highres"?X="8K":P==="hd2880"?X="5K":P==="hd2160"?X="4K":P.indexOf("hd")===0&&P!=="hd720"&&(X="HD");X&&(M.J.push(" "),M.J.push({W:"sup",T:u,pu:X}));return M}; Fk=function(w){Rt.call(this,w.getAvailablePlaybackRates()[0],w.getAvailablePlaybackRates()[w.getAvailablePlaybackRates().length-1],.05,w.getPlaybackRate(),{W:"div",T:"ytp-speedslider-indicator-container",J:[{W:"div",T:"ytp-speedslider-badge"},{W:"p",T:"ytp-speedslider-text"}]});this.U=w;this.B3=kf(this.mN,50,this);g.io(this.L,"ytp-speedslider");this.S=this.RI("ytp-speedslider-text");this.Lu=this.RI("ytp-speedslider-badge");q35(this);this.Y(this.L,"change",this.ys)}; q35=function(w){w.S.textContent=w.B.toFixed(2)+"x";var M=w.B>2&&w.U.D("enable_web_premium_varispeed");w.Lu.classList.toggle("ytp-speedslider-premium-badge",M);w.Lu.setAttribute("aria-label",M?"Premium":"")}; Ef=function(w,M,P,u,X,U,f){g.r.call(this,{W:"div",T:"ytp-slider-section",Z:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},J:[{W:"div",T:"ytp-slider",J:[{W:"div",T:"ytp-slider-handle"}]}]});this.V=w;this.S=M;this.L=P;this.C=u;this.B3=X;this.Cu=U;this.range=this.C-this.L;this.xu=this.RI("ytp-slider-section");this.X=this.RI("ytp-slider");this.Lu=this.RI("ytp-slider-handle");this.j=new g.bG(this.X, !0);this.B=f?f:P;g.b(this,this.j);this.j.subscribe("dragmove",this.Tw,this);this.Y(this.element,"keydown",this.uq);this.Y(this.element,"wheel",this.QG);this.init()}; ND=function(w){Ef.call(this,.05,.05,w.getAvailablePlaybackRates()[0],w.getAvailablePlaybackRates()[w.getAvailablePlaybackRates().length-1],150,20,w.getPlaybackRate());this.U=w;this.K=g.HS("P");this.ys=kf(this.mN,50,this);g.io(this.X,"ytp-speedslider");g.io(this.K,"ytp-speedslider-text");w=this.K;var M=this.X;M.parentNode&&M.parentNode.insertBefore(w,M.nextSibling);Y3F(this);this.Y(this.U,"onPlaybackRateChange",this.updateValues)}; Y3F=function(w){w.K.textContent=ze2(w,w.B)+"x"}; ze2=function(w,M){w=Number(g.bi(M,w.L,w.C).toFixed(2));M=Math.floor((w+.001)*100%5+2E-15);var P=w;M!==0&&(P=w-M*.01);return Number(P.toFixed(2))}; Tz4=function(w){g.XT.call(this,{W:"div",T:"ytp-speedslider-component"});w.D("web_settings_use_input_slider")?this.B=new Fk(w):this.B=new ND(w);g.b(this,this.B);this.element.appendChild(this.B.element)}; dtU=function(w){var M=new Tz4(w);zT.call(this,w,M,"Personalizada");g.b(this,M)}; ley=function(w,M){var P=new dtU(w);g.v6.call(this,"Velocidad de reproducci\u00f3n",g.Nk.v$,w,M,V$(w)?void 0:"Personalizada",V$(w)?void 0:function(){g.LJ(M,P)}); var u=this;this.X=!1;g.b(this,P);this.j=new Fk(w);g.b(this,this.j);if(w.D("web_settings_menu_icons")){var X=w.D("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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(X)}this.U=w;this.X=!1;this.B3=null;V$(w)?(this.B=g.iM("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.U.getPlaybackRate().toString()}),this.K=this.U.getPlaybackRate()):this.K=this.B=null;this.S=this.U.getAvailablePlaybackRates();this.Y(w,"presentingplayerstatechange",this.g$);var U;((U=this.U.getVideoData())==null?0:U.VH())&&this.Y(w,"serverstitchedvideochange",this.g$);this.Y(this.j.L,"change",function(){u.X=!0;u.g$()}); this.g$()}; L6R=function(w,M){var P=m2(M);w.B&&(w.X||M===w.K)?(w.JV(w.B),w.iB(M.toString())):w.JV(P)}; BzH=function(w){w.cI(w.S.map(m2));w.B=null;w.K=null;var M=w.U.getPlaybackRate();V$(w.U)&&eeF(w,M);!w.S.includes(M)||w.X?w.JV(w.B):w.JV(m2(M))}; eeF=function(w,M){w.K=M;w.B=g.iM("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:M.toString()});M=w.S.map(m2);M.unshift(w.B);w.cI(M)}; m2=function(w){return w.toString()}; V$=function(w){return w.D("web_settings_menu_surface_custom_playback")}; QO2=function(w){return w.D("web_settings_menu_surface_custom_playback")&&w.D("web_settings_use_input_slider")}; Rel=function(w,M,P,u){var X=new g.TT(M,void 0,"Anulaci\u00f3n de video");g.v6.call(this,u.text||"",w,M,P,"Anulaci\u00f3n de video",function(){g.LJ(P,X)}); var U=this;g.io(this.element,"ytp-subtitles-options-menu-item");this.setting=u.option.toString();w=u.options;this.settings=g.xV(w,this.Qz,this);this.K=X;g.b(this,this.K);M=new g.wa({W:"div",T:"ytp-menuitemtitle",pu:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.b(this,M);this.K.XF(M,!0);this.X=new g.wa({W:"div",T:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},J:[{W:"div",T:"ytp-menuitem-label",pu:"S\u00ed"}]},-1);g.b(this,this.X);this.K.XF(this.X, !0);this.Y(this.X.element,"click",function(){kbz(U,!0)}); this.B=new g.wa({W:"div",T:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},J:[{W:"div",T:"ytp-menuitem-label",pu:"No"}]},-2);g.b(this,this.B);this.K.XF(this.B,!0);this.Y(this.B.element,"click",function(){kbz(U,!1)}); this.cI(g.EV(w,this.Qz))}; kbz=function(w,M){w.publish("settingChange",w.setting+"Override",!M);w.Lg.c_()}; ok=function(w,M){g.TT.call(this,w,void 0,"Opciones");var P=this;this.C8={};for(var u=0;u=0);if(!(M<0||M===w.X)){w.X=M;M=243*w.scale;var P=141*w.scale,u=LH4(w.L,w.X,M);u5z(w.bg,u,M,P,!0);w.Lu.start()}}; Zi2=function(w){var M=w.B;w.type===3&&w.mN.stop();w.api.removeEventListener("appresize",w.B3);w.V||M.setAttribute("title",w.C);w.C="";w.B=null;w.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});w.wrapper.style.width=""}; Hi1=function(w){g.r.call(this,{W:"button",d$:["ytp-watch-later-button","ytp-button"],Z:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.K7(w.N()))},J:[{W:"div",T:"ytp-watch-later-icon",pu:"{{icon}}"},{W:"div",T:"ytp-watch-later-title",pu:"Ver m\u00e1s tarde"}]});this.U=w;this.icon=null;this.visible=this.isRequestPending=this.B=!1;hgy(w);w.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.Y(w,"videoplayerreset",this.onReset);this.Y(w, "appresize",this.HV);this.Y(w,"videodatachange",this.HV);this.Y(w,"presentingplayerstatechange",this.HV);this.HV();w=this.U.N();var M=g.dH("yt-player-watch-later-pending");w.X&&M?(wZF(),Sil(this)):this.g$(2);g.X6(this.element,"ytp-show-watch-later-title",g.K7(w));L$(this.U,this.element,this)}; pqz=function(w){var M=w.U.getPlayerSize(),P=w.U.N(),u=w.U.getVideoData(),X=g.K7(P)&&g.n$(w.U)&&g.C(w.U.getPlayerStateObject(),128),U=P.C;return P.nV&&M.width>=240&&!u.isAd()&&u.nV&&!X&&!g.f$(u)&&!w.U.isEmbedsShortsMode()&&!U}; Fz4=function(w,M){NBl(g.P0(w.U.N()),"wl_button",function(){wZF({videoId:M});window.location.reload()})}; Sil=function(w){if(!w.isRequestPending){w.isRequestPending=!0;w.g$(3);var M=w.U.getVideoData();M=w.B?M.removeFromWatchLaterCommand:M.addToWatchLaterCommand;var P=w.U.aQ(),u=w.B?function(){w.B=!1;w.isRequestPending=!1;w.g$(2);w.U.N().V&&w.U.Vs("WATCH_LATER_VIDEO_REMOVED")}:function(){w.B=!0; w.isRequestPending=!1;w.g$(1);w.U.N().L&&w.U.Wc(w.element);w.U.N().V&&w.U.Vs("WATCH_LATER_VIDEO_ADDED")}; lw(P,M).then(u,function(){w.isRequestPending=!1;w.g$(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");w.U.N().V&&w.U.Vs("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; EUy=function(w,M){if(M!==w.icon){switch(M){case 3:var P=FQ();break;case 1:P=hw();break;case 2:P={W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!0,T:"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:P={W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path", fT:!0,Z:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}w.updateValue("icon",P);w.icon=M}}; NPM=function(){g.tI.apply(this,arguments);this.NA=(this.qM=g.K7(this.api.N()))&&(this.api.N().L||tD()||j9());this.kP=48;this.sJ=69;this.ze=this.gh=null;this.Xw=[];this.gA=this.xQ=this.a_=this.kW=this.hw=null;this.l8=[];this.contextMenu=this.lF=this.overflowButton=this.Uz=this.EH=this.searchButton=this.copyLinkButton=this.shareButton=this.Ue=this.L9=this.title=this.channelAvatar=this.QA=this.tooltip=null;this.IP=!1;this.eM=this.zS=this.Cq=this.Mw=null;this.dfu=this.OL=this.jh=!1}; VsF=function(w){var M=w.api.N(),P=g.C(w.api.getPlayerStateObject(),128);return M.X&&P&&!w.api.isFullscreen()}; m7F=function(w){if(w.Jx()&&!w.api.isEmbedsShortsMode()&&w.Uz){var M=w.api.D("web_player_hide_overflow_button_if_empty_menu");!w.Ue||M&&!pqz(w.Ue)||mgl(w.Uz,w.Ue);!w.shareButton||M&&!nzp(w.shareButton)||mgl(w.Uz,w.shareButton);!w.copyLinkButton||M&&!QG5(w.copyLinkButton)||mgl(w.Uz,w.copyLinkButton)}else{M=w.api.N().getWebPlayerContextConfig();if(w.Uz){for(var P=w.Uz,u=g.G(P.actionButtons),X=u.next();!X.done;X=u.next())X.value.detach();P.actionButtons=[]}w.searchButton&&!g.mG(w.L9.element,w.searchButton.element)&& w.searchButton.XK(w.L9.element);!w.Ue||(M==null?0:M.hideTopWatchNextButton)||g.mG(w.L9.element,w.Ue.element)||w.Ue.XK(w.L9.element);!w.shareButton||(M==null?0:M.hideTopShareButton)||g.mG(w.L9.element,w.shareButton.element)||w.shareButton.XK(w.L9.element);w.copyLinkButton&&!g.mG(w.L9.element,w.copyLinkButton.element)&&w.copyLinkButton.XK(w.L9.element)}}; oUx=function(w,M,P){M=P?M.lastElementChild:M.firstElementChild;for(var u=null;M;){if(rS(M,"display")!=="none"&&M.getAttribute("aria-hidden")!=="true"){var X=void 0;M.tabIndex>=0?X=M:X=oUx(w,M,P);X&&(u?P?X.tabIndex>u.tabIndex&&(u=X):X.tabIndexu/1E3+1)return{msg:"in-the-past"};if(U.isLivePlayback&&!isFinite(u))return{msg:"live-infinite"};(u=M.Nt())&&u.isView()&&(u=u.mediaElement);if(u&&u.dC().length>12&&g.ex(X))return{msg:"played-ranges"};if(!X.C)return null;if(!f)return{msg:"no-pvd-formats"};if(!X.C.B||!f.B)return{msg:"non-dash"};u=f.videoInfos[0];var h=X.C.videoInfos[0];w.B3&&FM(U)&&(u=M.Vn(), h=P.Vn());if(!u||!h)return{msg:"no-video-info"};if(w.K&&(L3(u)||L3(h)))return{msg:"av1"};M=w.X&&U.Dv()&&MV();if(h.containerType!==u.containerType)if(M)U.II("sgap",{ierr:"container"});else return{msg:"container"};if(w.G&&!M&&(h.zk!==u.zk||h.zk===""||u.zk===""))return{msg:"codec"};if(w.j&&h.video&&u.video&&Math.abs(h.video.width/h.video.height-u.video.width/u.video.height)>.01)return{msg:"ratio"};if(g.ex(U)&&g.ex(X))return{msg:"content-protection"};f=f.B[0];X=X.C.B[0];P=f.audio;var c=X.audio;if(P.sampleRate!== c.sampleRate&&!g.p3)if(M)U.II("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:f.itag,cr:P.sampleRate,ni:X.itag,nr:c.sampleRate};return(P.numChannels||2)!==(c.numChannels||2)?{msg:"channel-count"}:w.V&&U.Dv()&&u.video.fps!==h.video.fps?{msg:"fps"}:null}; qi2=function(w,M,P){var u=w.getVideoData(),X=M.getVideoData();if(!u.N().supportsGaplessShorts())return{nq:"env"};if(P.S?u.cZ&&!u.isAd()||X.cZ&&!X.isAd():P.L?u.cZ&&!u.isAd()||X.cZ:P.C?X.cZ&&!X.isAd()||u.cZ:u.cZ||X.cZ)return{nq:"autoplay"};if(u.endSeconds>0)return{nq:"endcr"};if(!u.j)return{nq:"client"};if(!w.Mv())return{nq:"no-empty"};w=D7_(P,w,M,Infinity);return w!=null?{nq:w.msg}:null}; nI=function(w){g.v.call(this);this.app=w;this.G=this.X=this.L=this.B=null;this.C=1;this.events=new g.V2(this);this.events.Y(this.app.h9,g.gL("gaplessshortslooprange"),this.V);g.b(this,this.events)}; Yix=function(){this.B=this.j=this.C=this.L=this.S=this.K=this.B3=this.V=this.G=this.X=!1}; zJp=function(w){var M=new Yix;M.X=w.D("h5_gapless_support_types_diff");M.V=w.D("h5_gapless_error_on_fps_diff");M.B3=w.D("html5_gapless_use_format_info_fix");M.K=w.D("html5_gapless_disable_on_av1")&&!w.D("html5_gapless_enable_on_av1");M.G=w.D("html5_gapless_check_codec_diff_strictly");M.S=w.D("html5_gapless_on_ad_autoplay");M.j=w.D("html5_gapless_disable_diff_aspect_radio");M.L=w.D("html5_gapless_ad_autoplay_on_ad_to_video_only");M.B=w.D("html5_pseudogapless_shorts_seek_to_next_start");M.C=w.D("html5_gapless_ad_autoplay_on_video_to_ad_only"); return M}; g.vP=function(w,M,P,u){u=u===void 0?!1:u;ZS.call(this);this.mediaElement=w;this.start=M;this.end=P;this.B=u}; TPu=function(w,M,P,u,X,U){U=U===void 0?0:U;g.v.call(this);var f=this;this.policy=w;this.B=M;this.L=P;this.FF=X;this.G=U;this.X=this.C=null;this.currentVideoDuration=this.K=-1;this.j=!1;this.bd=new cp;this.oB=u-M.OF()*1E3;this.bd.then(void 0,function(){}); this.timeout=new g.gV(function(){f.f9("timeout")},1E4); g.b(this,this.timeout);this.V=isFinite(u)||this.FF.N().experiments.nu("html5_pseudogapless_shorts")&&FM(M.getVideoData());this.status={status:0,error:null}}; lOR=function(w){var M,P,u,X,U,f,h,c,Z;return g.n(function(S){if(S.L==1){if(w.sO())return S.return(Promise.reject(Error(w.status.error||"disposed")));w.timeout.start();return g.B(S,w.bd,2)}M=w.B.Nt();if(M.isEnded())return w.f9("ended_in_finishTransition"),S.return(Promise.reject(Error(w.status.error||"")));if(!w.X||!XF(w.X))return w.f9("next_mse_closed"),S.return(Promise.reject(Error(w.status.error||"")));if(w.L.XG()!==w.X)return w.f9("next_mse_mismatch"),S.return(Promise.reject(Error(w.status.error|| "")));P=sf(w);u=P.wc;X=P.Ct;U=P.EY;w.B.Fc(!1,!0);f=d72(M,u,U,!w.L.getVideoData().isAd());w.L.setMediaElement(f);(h=w.B.Tv())&&w.L.VC(h.Ea,h.m0);w.V&&(w.policy.B||w.L.seekTo(w.L.getCurrentTime()+.001,{D6:!0,xI:3,Wk:"gapless_pseudo"}),f.play(),TZ());c=M.Z4();c.cpn=w.B.getVideoData().clientPlaybackNonce;c.st=""+u;c.et=""+U;w.L.II("gapless",c);w.B.II("gaplessTo",{cpn:w.L.getVideoData().clientPlaybackNonce});Z=w.B.getPlayerType()===w.L.getPlayerType();w.B.aH(X,!0,!1,Z,w.L.getVideoData().clientPlaybackNonce); w.L.aH(w.L.getCurrentTime(),!0,!0,Z,w.B.getVideoData().clientPlaybackNonce);w.L.fY();g.Vk(function(){!w.L.getVideoData().mN&&w.L.getPlayerState().isOrWillBePlaying()&&w.L.oK()}); KI(w,6);w.dispose();return S.return(Promise.resolve())})}; Q2H=function(w){if(w.L.getVideoData().C){var M=w.FF.N().D("html5_gapless_suspend_next_loader")&&w.G===1;w.L.aL(w.X,M,Lz_(w));KI(w,3);eJl(w);var P=BPy(w);M=P.Ag;P=P.M9;M.subscribe("updateend",w.V5,w);P.subscribe("updateend",w.V5,w);w.V5(M);w.V5(P)}}; eJl=function(w){w.B.unsubscribe("internalvideodatachange",w.dY,w);w.L.unsubscribe("internalvideodatachange",w.dY,w);w.FF.N().D("html5_gapless_use_format_info_fix")&&(w.B.unsubscribe("internalvideoformatchange",w.dY,w),w.L.unsubscribe("internalvideoformatchange",w.dY,w));w.B.unsubscribe("mediasourceattached",w.dY,w);w.L.unsubscribe("statechange",w.TH,w)}; d72=function(w,M,P,u){w=w.isView()?w.mediaElement:w;return new g.vP(w,M,P,u)}; KI=function(w,M){M<=w.status.status||(w.status={status:M,error:null},M===5&&w.bd.resolve())}; Lz_=function(w){return w.FF.N().D("html5_gapless_no_clear_buffer_timeline")&&w.G===1&&mC(w.B.getVideoData())}; sf=function(w){var M=w.B.Nt();M=M.isView()?M.start:0;var P=w.B.getVideoData().isLivePlayback?Infinity:w.B.Ft(!0);P=Math.min(w.oB/1E3,P)+M;var u=w.V?100:0;w=P-w.L.Ap()+u;return{M5:M,wc:w,Ct:P,EY:Infinity}}; BPy=function(w){return{Ag:w.C.B.Jz,M9:w.C.L.Jz}}; bN=function(w){g.v.call(this);var M=this;this.app=w;this.K=this.L=this.B=null;this.V=!1;this.C=this.X=null;this.G=zJp(this.app.N());this.j=function(){g.Vk(function(){kUH(M)})}}; RJF=function(w,M,P,u,X){u=u===void 0?0:u;X=X===void 0?0:X;w.Mv()||Ik(w);w.X=new cp;w.B=M;var U=P,f=X===0;f=f===void 0?!0:f;var h=w.app.uW(),c=h.getVideoData().isLivePlayback?Infinity:h.Ft(!0)*1E3;U>c&&(U=c-200,w.V=!0);f&&h.getCurrentTime()>=U/1E3?w.j():(w.L=h,f&&(f=U,U=w.L,w.app.h9.addEventListener(g.AP("vqueued"),w.j),f=isFinite(f)||f/1E3>U.getDuration()?f:0x8000000000000,w.K=new g.bg(f,0x8000000000000,{namespace:"vqueued"}),U.addCueRange(w.K)));f=u/=1E3;U=M.getVideoData().B;u&&U&&w.L&&(h=u,c=0, M.getVideoData().isLivePlayback&&(f=Math.min(P/1E3,w.L.Ft(!0)),c=Math.max(0,f-w.L.getCurrentTime()),h=Math.min(u,M.Ft()+c)),f=etM(U,h)||u,f!==u&&w.B.II("qvaln",{st:u,at:f,rm:c,ct:h}));M=f;u=w.B;u.getVideoData().Bb=!0;u.getVideoData().j=!0;u.n1(!0);U={};w.L&&(U=w.L.yc(),f=w.L.getVideoData().clientPlaybackNonce,U={crt:(U*1E3).toFixed(),cpn:f});u.II("queued",U);M!==0&&u.seekTo(M+.01,{D6:!0,xI:3,Wk:"videoqueuer_queued"});w.C=new TPu(w.G,w.app.uW(),w.B,P,w.app,X);P=w.C;P.status.status!==Infinity&&(KI(P, 1),P.B.subscribe("internalvideodatachange",P.dY,P),P.L.subscribe("internalvideodatachange",P.dY,P),P.FF.N().D("html5_gapless_use_format_info_fix")&&(P.B.subscribe("internalvideoformatchange",P.dY,P),P.L.subscribe("internalvideoformatchange",P.dY,P)),P.B.subscribe("mediasourceattached",P.dY,P),P.L.subscribe("statechange",P.TH,P),P.B.subscribe("newelementrequired",P.D2,P),P.dY());return w.X}; kUH=function(w){var M,P,u,X,U,f,h;g.n(function(c){switch(c.L){case 1:if(w.sO()||!w.X||!w.B)return c.return();w.V&&w.app.uW().lP(!0,!1);M=null;if(!w.C){c.M0(2);break}g.DU(c,3);return g.B(c,lOR(w.C),5);case 5:g.zp(c,2);break;case 3:M=P=g.d4(c);case 2:if(!w.B)return c.return();nU1.BN("vqsp",function(){w.app.uu(w.B)}); if(!w.B)return c.return();u=w.B.Nt();w.app.N().D("html5_gapless_seek_on_negative_time")&&u&&u.getCurrentTime()<-.01&&w.B.seekTo(0);nU1.BN("vqpv",function(){w.app.playVideo()}); M&&(w.B?(X=M?M.message:"forced",(U=w.L)==null||U.II("gapfulfbk",{r:X}),w.B.DK(X)):(f=w.L)==null||f.II("gapsp",{}));h=w.X;Ik(w);h&&h.resolve();return c.return(Promise.resolve())}})}; Ik=function(w,M){M=M===void 0?!1:M;if(w.L){if(w.K){var P=w.L;w.app.h9.removeEventListener(g.AP("vqueued"),w.j);P.removeCueRange(w.K)}w.L=null;w.K=null}w.C&&(w.C.status.status!==6&&(P=w.C,P.status.status!==Infinity&&P.G!==1&&P.f9("Canceled")),w.C=null);w.X=null;w.B&&!M&&w.B!==w.app.Pj()&&w.B!==w.app.uW()&&w.B.dispose();w.B&&M&&w.B.ws();w.B=null;w.V=!1}; vUU=function(w){var M;return((M=w.C)==null?void 0:M.currentVideoDuration)||-1}; s21=function(w,M,P){if(w.Mv())return"qie";if(w.B==null||w.B.sO()||w.B.getVideoData()==null)return"qpd";if(M.videoId!==w.B.tp())return"vinm";if(vUU(w)<=0)return"ivd";if(P!==1)return"upt";if((P=w.C)==null)w=void 0;else if(P.getStatus().status!==5)w="niss";else if(D7_(P.policy,P.B,P.L,P.oB)!=null)w="pge";else{M=BPy(P);w=M.Ag;var u=M.M9;M=g.Oh(P.FF.N().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var X=P.K+M;P.FF.N().experiments.nu("html5_pseudogapless_shorts")&&(X=sf(P).wc+M);P=rf(u.cB(), X);w=rf(w.cB(),X);w=!(M>0)||P&&w?null:"neb"}return w!=null?w:null}; KzF=function(){g.wC.call(this);var w=this;this.fullscreen=0;this.X=this.C=this.pictureInPicture=this.B=this.L=this.inline=!1;this.G=function(){w.fV()}; iKu(this.G);this.K=this.getVisibilityState(this.Ax(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.A5(),this.Mi(),this.kz(),this.hF())}; uo5=function(w){return!(w.isMinimized()||w.isInline()||w.isBackground()||w.A5()||w.Mi()||w.kz()||w.hF())}; g.Al=function(w){g.v.call(this);this.P3=w;this.videoData=this.playerState=null}; jK=function(w,M){g.v.call(this);var P=this;this.data=[];this.C=w||NaN;this.L=M||null;this.B=new g.gV(function(){Jl(P);rc(P)}); g.b(this,this.B)}; Zml=function(w){Jl(w);return w.data.map(function(M){return M.value})}; Jl=function(w){var M=(0,g.G$)();w.data.forEach(function(P){P.expire0));(u=g.Oh(M, "html5_cobalt_audio_write_ahead_ms"))&&iB("Media.AudioWriteDurationLocal",u);(u=P("html5_cobalt_enable_decode_to_texture"))&&iB("Media.PlayerConfiguration.DecodeToTexturePreferred",u?1:0);w.FX()&&wV5();Error.stackTraceLimit=50;var X=g.Oh(M,"html5_idle_rate_limit_ms");X&&Object.defineProperty(window,"requestIdleCallback",{value:function(U){return window.setTimeout(U,X)}}); wo4(w.G);md1(P("html5_use_ump_request_slicer"));jJ5(P("html5_record_now"));P("html5_disable_streaming_xhr")&&(SY=!1);P("html5_byterate_constraints")&&(yR=!0);P("html5_use_non_active_broadcast_for_post_live")&&(hL=!0);P("html5_enable_encrypted_av1")&&(l3=!0);te5(g.Oh(w.experiments,"html5_sticky_duration_mos"))}; j25=function(w,M){return w.slice(M.length).replace(/_[a-z]/g,function(P){return P.toUpperCase().replace("_","")}).replace("Dot",".")}; CI5=function(w){var M={},P=Object.keys(w.experiments.flags);P=g.G(P);for(var u=P.next();!u.done;u=P.next())if(u=u.value,u.startsWith("cobalt_h5vcc"))if(u.startsWith("cobalt_h5vcc_string")){var X=j25(u,"cobalt_h5vcc_string");u=HM(w.experiments,u);X&&u&&(M[X]=iB(X,u))}else u.startsWith("cobalt_h5vcc")&&(X=j25(u,"cobalt_h5vcc"),u=g.Oh(w.experiments,u),X&&u&&(M[X]=iB(X,u)));return M}; tsR=function(w,M,P,u){u=u===void 0?0:u;g.jq.call(this,P.EM());this.lB=w;this.videoData=M;this.duration=u;this.endTime=this.startTime=0}; x7z=function(w){this.end=this.start=w}; g.ak=function(){this.B=new Map;this.C=new Map;this.L=new Map}; Oi2=function(){this.L=[];this.B=new Map;this.X=new Map;this.C=new Map}; aOU=function(w,M){M=g.I$(w.L,{Im:M},function(P,u){return P.Im-u.Im}); return M>=0?w.L[M]:null}; g.wW=function(w,M,P,u){g.v.call(this);var X=this;this.api=w;this.P3=M;this.playback=P;this.app=u;this.ys=new g.ak;this.C=new Map;this.G=[];this.B=new Oi2;this.OO=new Map;this.eL=null;this.hD=NaN;this.cj=this.M7=null;this.fg=new g.gV(function(){wKx(X,X.hD,X.M7||void 0)}); this.events=new g.V2(this);this.Z3=15E3;this.Lu=new g.gV(function(){X.mN=!0;X.playback.Qt(X.Z3);ivU(X);if(X.playback.getVideoData().VH()){var U;X.H3({togab:(U=X.B3)==null?void 0:U.identifier})}X.nH(!1)},this.Z3); this.mN=!1;this.j=new Map;this.jL=[];this.B3=null;this.bW=new Set;this.Cu=[];this.GE=[];this.sb=[];this.VE=[];this.L=void 0;this.Oc=0;this.UO=!0;this.K=!1;this.xu=[];this.Yu=new Set;this.DX=new Set;this.KT=new Set;this.xn=0;this.t9=new Set;this.TE=0;this.mP=this.QE=!1;this.y_=this.X="";this.V=null;this.logger=new g.pM("dai");this.yH={yl9:function(){return X.C}, g$N:function(){return X.G}, Uxs:function(){return X.B.B}, Kus:function(){return X.X}, Se3:function(U){X.onCueRangeEnter(X.C.get(U))}, p8O:function(U){X.onCueRangeExit(X.C.get(U))}, l7$:function(U,f){X.C.set(U,f)}, VBs:function(U){X.y_=U}, C$:function(){return X.C$()}, dx0:function(U){return X.B.C.get(U)}, UMO:function(){return X.V}, W$s:function(){return X.B.L}}; this.playback.getPlayerType();this.playback.Em(this);this.iW=this.P3.FX();g.b(this,this.fg);g.b(this,this.events);g.b(this,this.Lu);this.events.Y(this.api,g.AP("serverstitchedcuerange"),this.onCueRangeEnter);this.events.Y(this.api,g.gL("serverstitchedcuerange"),this.onCueRangeExit);Of(this.app.sG(),this.playback,!1)}; $zM=function(w,M,P,u,X,U,f,h,c){if(w.P3.D("html5_ignore_ads_after_noadresponse")&&c&&w.bW.has(c))i1(w,{reason:"addafternoad",cueid:c});else{c=ME1(w,U,U+X);w.mN&&w.H3({adaftto:1});P||w.H3({missadcon:1,enter:U,len:X,aid:h});w.S&&!w.S.iN&&(w.S.iN=h);w.mP&&w.H3({adfbk:1,enter:U,len:X,aid:h});var Z=w.playback;f=f===void 0?U+X:f;U===f&&!X&&w.P3.D("html5_allow_zero_duration_ads_on_timeline")&&w.H3({attl0d:1});U>f&&i1(w,{reason:"enterTime_greater_than_return",wK:U,Im:f});var S=Z.ov()*1E3;UZ&&i1(w,{reason:"parent_return_greater_than_content_duration",Im:f,dku:Z});(Z=aOU(w.B,U))&&Z.Im>U&&PfM(w,M.video_id||"",U,f,Z);if(c&&Z)for(S=0;S.5&&w.H3({ttdtb:1,delta:f,cpn:X.cpn,enter:M.adCpn,exit:P.adCpn,seek:u,skip:U});w.api.D("html5_ssdai_enable_media_end_cue_range")&&(!u&&!U&&P.isAd&&P.adCpn?w.api.HR(P.adCpn):(u||U)&&w.H3({mecr:0,seek:u,skip:U}));if(M.isAd&&P.isAd){X=!!U;if(M.adCpn&&P.adCpn){var h=w.B.B.get(M.adCpn);var c=w.B.B.get(P.adCpn)}X?w.H3({igtransskip:1,enter:M.adCpn,exit:P.adCpn,seek:u,skip:U}):Xh(w,c,h,P.g5,M.g5,u,X)}else if(!M.isAd&&P.isAd){w.y_= X.cpn;w.Yn(X.cpn,X.wK/1E3);w.api.publish("serverstitchedvideochange");h=Ps(w,"a2c");w.H3(h);w.xn=0;if(h=P.Fq)w.Oc=h.end,fF_(w,h.id,h.end);var Z;P.adCpn&&(Z=w.B.B.get(P.adCpn));Z&&w.playback.TI(Z,X,P.g5,M.g5,u,!!U)}else if(M.isAd&&!P.isAd){var S;M.adCpn&&(S=w.B.B.get(M.adCpn));S&&(w.Oc=0,w.y_=S.cpn,w.Yn(S.cpn,S.wK/1E3),u1(w,S),Z=Ps(w,"c2a",S),w.H3(Z),w.xn=1,w.playback.TI(X,S,P.g5,M.g5,u,!!U))}}; Ux=function(w,M,P){P=P===void 0?0:P;var u=g.I$(w.B.L,{wK:(M+P)*1E3},function(h,c){return h.wK-c.wK}); u=u<0?(u+2)*-1:u;if(u>=0)for(var X=M*1E3,U=u;U<=u+1&&U=f.wK-P*1E3&&X<=f.Im+P*1E3)return{vx:f,d0:M}}return{vx:void 0,d0:M}}; hw1=function(w,M){var P="";(M=WW4(w,M))&&(P=M.getId());return P?w.B.B.get(P):void 0}; WW4=function(w,M){if(w.y_){var P=w.C.get(w.y_);if(P&&P.start-200<=M&&P.end+200>=M)return P}w=g.G(w.C.values());for(P=w.next();!P.done;P=w.next())if(P=P.value,P.start<=M&&P.end>=M)return P}; wKx=function(w,M,P){var u=w.cj||w.app.uW().getPlayerState();fG(w,!0);w.playback.seekTo(M,P);w=w.app.uW();M=w.getPlayerState();u.isOrWillBePlaying()&&!M.isOrWillBePlaying()?w.playVideo():u.isPaused()&&!M.isPaused()&&w.pauseVideo()}; fG=function(w,M){w.hD=NaN;w.M7=null;w.fg.stop();w.eL&&M&&w.eL.h2();w.cj=null;w.eL=null}; Zvl=function(w){var M=M===void 0?-1:M;var P=P===void 0?Infinity:P;for(var u=[],X=g.G(w.B.L),U=X.next();!U.done;U=X.next())U=U.value,(U.wKP)&&u.push(U);w.B.L=u;u=g.G(w.C.values());for(X=u.next();!X.done;X=u.next())X=X.value,X.start>=M&&X.end<=P&&(w.playback.removeCueRange(X),w.C.delete(X.getId()),w.H3({rmAdCR:1}));u=Ux(w,M/1E3);M=u.vx;u=u.d0;if(M&&(u=u*1E3-M.wK,cGR(w,M,u,M.wK+u),u=w.C.get(M.cpn))){X=g.G(w.G);for(U=X.next();!U.done;U=X.next())U=U.value,U.start===u.end?U.start=M.wK+M.durationMs: U.end===u.start&&(U.end=M.wK);u.start=M.wK;u.end=M.wK+M.durationMs}if(M=Ux(w,P/1E3).vx){var f;u="playback_timelinePlaybackId_"+M.QH+"_video_id_"+((f=M.videoData)==null?void 0:f.videoId)+"_durationMs_"+M.durationMs+"_enterTimeMs_"+M.wK+"_parentReturnTimeMs_"+M.Im;w.FH("Invalid_clearEndTimeMs_"+P+"_that_falls_during_"+u+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; StR=function(w){w.ys.clearAll();w.C.clear();w.G=[];w.B.clear();w.j.clear();w.jL=[];w.B3=null;w.bW.clear();w.Cu=[];w.GE=[];w.sb=[];w.VE=[];w.xu=[];w.Yu.clear();w.DX.clear();w.KT.clear();w.t9.clear();w.mN=!1;w.L=void 0;w.Oc=0;w.UO=!0;w.K=!1;w.xn=0;w.TE=0;w.QE=!1;w.mP=!1;w.X="";biu(w.app.sG());Of(w.app.sG(),w.playback,!1);w.OO.clear();w.Lu.isActive()&&M8(w)}; cGR=function(w,M,P,u){M.durationMs=P;M.Im=u;(u=w.OO.get(M.cpn))?u.l4(P/1E3):w.H3({nop_d:M.cpn})}; pK4=function(w,M,P,u,X,U){if(!w.mP)if(g.HvU(w,P))w.H3({gdu:"undec",seg:P,itag:X});else if(M=Ws(w,M,P,u,U),!(w.playback.getVideoData().VH()&&(M==null?0:M.U5)))return M}; Ws=function(w,M,P,u,X){var U=w.j.get(P);if(!U){if(U=FW5(w,M))return U;M=w.zb(P-1,u!=null?u:2);if(X)return w.H3({misscue:X,sq:P,type:u,prevsstate:M==null?void 0:M.Z1,prevrecord:w.j.has(P-1)}),w.j.get(P-1);if((M==null?void 0:M.Z1)===2)return w.H3({adnf:1,sq:P,type:u,prevrecord:w.j.has(P-1)}),w.j.get(P-1)}return U}; FW5=function(w,M){M+=w.x6();if(w.playback.getVideoData().VH())a:{var P=1;P=P===void 0?0:P;var u=M*1E3;w=g.G(w.B.L);for(var X=w.next();!X.done;X=w.next()){X=X.value;var U=X.yv?X.yv*1E3:X.wK;if(u>=X.wK-P*1E3&&u<=U+X.durationMs+P*1E3){u={vx:X,d0:M};break a}}u={vx:void 0,d0:M}}else u=Ux(w,M),((P=u)==null?0:P.vx)||(u=Ux(w,M,1));var f;return(f=u)==null?void 0:f.vx}; EZx=function(w,M){M=M===void 0?"":M;var P=V8(M)||void 0;if(!M||!P){var u;w.H3({adcfg:(u=M)==null?void 0:u.length,dcfg:P==null?void 0:P.length})}return P}; Nll=function(w){if(w.xu.length)for(var M=g.G(w.xu),P=M.next();!P.done;P=M.next())w.onCueRangeExit(P.value);M=g.G(w.C.values());for(P=M.next();!P.done;P=M.next())w.playback.removeCueRange(P.value);M=g.G(w.G);for(P=M.next();!P.done;P=M.next())w.playback.removeCueRange(P.value);w.C.clear();w.G=[];w.ys.clearAll();w.L||(w.UO=!0)}; Xh=function(w,M,P,u,X,U,f){if(M&&P){w.y_=P.cpn;w.Yn(P.cpn,P.wK/1E3);u1(w,P);var h=Ps(w,"a2a",P);w.H3(h);w.xn++;w.playback.TI(M,P,u||0,X||0,!!U,!!f)}else w.H3({misspbkonadtrans:1,enter:(P==null?void 0:P.cpn)||"",exit:(M==null?void 0:M.cpn)||"",seek:U,skip:f})}; mzp=function(w,M,P,u){if(u)for(u=0;uP){var U=X.end;X.end=M;VEM(w,P,U)}else if(X.start>=M&&X.startP)X.start=P;else if(X.end>M&&X.end<=P&&X.start=M&&X.end<=P){w.playback.removeCueRange(X);if(w.xu.includes(X))w.onCueRangeExit(X);w.G.splice(u,1);continue}u++}else VEM(w,M,P)}; VEM=function(w,M,P){M=Uz2(M,P);P=!0;g.CC(w.G,M,function(f,h){return f.start-h.start}); for(var u=0;u0){var X=w.G[u],U=w.G[u-1];if(Math.round(U.end/1E3)>=Math.round(X.start/1E3)){U.end=X.end;X!==M?w.playback.removeCueRange(X):P=!1;w.G.splice(u,1);continue}}u++}if(P)for(w.playback.addCueRange(M),M=w.playback.jS("serverstitchedcuerange",36E5),M=g.G(M),P=M.next();!P.done;P=M.next())w.C.delete(P.value.getId())}; hZ=function(w,M,P){if(P===void 0||!P){P=g.G(w.jL);for(var u=P.next();!u.done;u=P.next()){u=u.value;if(M>=u.start&&M<=u.end)return;if(M===u.end+1){u.end+=1;return}}w.jL.push(new x7z(M))}}; g.HvU=function(w,M){w=g.G(w.jL);for(var P=w.next();!P.done;P=w.next())if(P=P.value,M>=P.start&&M<=P.end)return!0;return!1}; cs=function(w,M,P){var u;if(u=w.playback.getVideoData().VH()||w.P3.D("html5_ssdai_extent_last_unfinished_ad_cue_range"))u=(u=w.B.B.get(M))&&u.C6?(w=w.B.C.get(u==null?void 0:u.C6))&&w.slice(-1)[0].cpn===M:!1;return u&&P===2?1E3:0}; PfM=function(w,M,P,u,X){var U;M={reason:"overlapping_playbacks",RR$:M,wK:P,Im:u,L$u:X.QH,Ig3:((U=X.videoData)==null?void 0:U.videoId)||"",Pd3:X.durationMs,fg3:X.wK,Bsu:X.Im};i1(w,M)}; i1=function(w,M,P){w.playback.wf(M,P)}; oZl=function(w,M){var P=[];w=w.B.C.get(M);if(!w)return[];w=g.G(w);for(M=w.next();!M.done;M=w.next())M=M.value,M.cpn&&P.push(M.cpn);return P}; Gh_=function(w,M,P){var u=0;w=w.B.C.get(P);if(!w)return-1;w=g.G(w);for(P=w.next();!P.done;P=w.next()){if(P.value.cpn===M)return u;u++}return-1}; yGF=function(w,M){var P=0;w=w.B.C.get(M);if(!w)return 0;w=g.G(w);for(M=w.next();!M.done;M=w.next())M=M.value,M.durationMs!==0&&M.Im!==M.wK&&P++;return P}; DzU=function(w,M,P){var u=!1;if(P&&(P=w.B.C.get(P))){P=g.G(P);for(var X=P.next();!X.done;X=P.next())X=X.value,X.durationMs!==0&&X.Im!==X.wK&&(X=X.cpn,M===X&&(u=!0),u&&!w.DX.has(X)&&(w.H3({decoratedAd:X}),w.DX.add(X)))}}; ivU=function(w){w.iW&&w.H3({adf:"0_"+((new Date).getTime()/1E3-w.TE)+"_isTimeout_"+w.mN})}; ME1=function(w,M,P){if(w.Cu.length)for(var u=g.G(w.Cu),X=u.next(),U={};!X.done;U={W1:void 0},X=u.next()){U.W1=X.value;X=U.W1.startSecs*1E3;var f=U.W1.Xq*1E3+X;if(M>X&&MX&&P0?w:0}else w.C$().videoData.TE=w.playback.getCurrentTime()}; ewz=function(w,M,P,u){g.v.call(this);var X=this;this.api=w;this.P3=M;this.B=P;this.app=u;this.G=new Map;this.L=[];this.C=this.j=null;this.B3=NaN;this.K=this.X=this.S=null;this.V=new g.gV(function(){LWM(X,X.B3,X.S||void 0)}); this.Lu=[];this.mN=new g.gV(function(){var U=X.Lu.pop();if(U){var f=U.QH,h=U.playerVars;U=U.playerType;h&&(h.prefer_gapless=!0,X.api.preloadVideoByPlayerVars(h,U,NaN,"",f),X.Lu.length&&g.JK(X.mN,4500))}}); this.events=new g.V2(this);this.yH={DxN:function(){return X.L}}; this.B.getPlayerType();g.b(this,this.V);g.b(this,this.mN);g.b(this,this.events);this.events.Y(this.api,g.AP("childplayback"),this.onCueRangeEnter);this.events.Y(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.Y(this.api,"presentingplayerstatechange",this.S1)}; Rw_=function(w,M,P,u,X,U){var f=M.cpn,h=M.docid||M.video_id||M.videoId||M.id,c=w.B;U=U===void 0?X+u:U;if(X>U)return So(w,"enterAfterReturn enterTimeMs="+X+" is greater than parentReturnTimeMs="+U.toFixed(3),f,h),"";var Z=c.ov()*1E3;if(XZ)return c="returnAfterDuration parentReturnTimeMs="+U.toFixed(3)+" is greater than parentDurationMs="+Z+". And timestampOffset in seconds is "+ c.OF(),So(w,c,f,h),"";Z=null;for(var S=g.G(w.L),H=S.next();!H.done;H=S.next()){H=H.value;if(X>=H.wK&&XH.wK)return So(w,"overlappingReturn",f,h),"";if(U===H.wK)return So(w,"outOfOrder",f,h),"";X===H.Im&&(Z=H)}f="cs_childplayback_"+BlU++;h={Fq:Hs(u,!0),oB:Infinity,target:null};var p={QH:f,playerVars:M,playerType:P,durationMs:u,wK:X,Im:U,Gv:h};w.L=w.L.concat(p).sort(function(y,q){return y.wK-q.wK}); Z?QqR(w,Z,{Fq:Hs(Z.durationMs,!0),oB:Z.Gv.oB,target:p}):(M={Fq:Hs(X,!1),oB:X,target:p},w.G.set(M.Fq,M),c.addCueRange(M.Fq));M=!0;if(w.B===w.app.uW()&&(c=c.getCurrentTime()*1E3,c>=p.wK&&cM)break;if(U>M)return{vx:u,d0:M-X};P=U-u.Im/1E3}return{vx:null,d0:M-P}}; LWM=function(w,M,P){P=P===void 0?{}:P;var u=w.K||w.app.uW().getPlayerState();Ex(w,!0);M=isFinite(M)?M:w.B.K6();var X=KWu(w,M);M=X.d0;var U=(X=X.vx)&&!pG(w,X)||!X&&w.B!==w.app.uW(),f=M*1E3;f=w.C&&w.C.start<=f&&f<=w.C.end;!U&&f||Fh(w);X?khy(w,X,M,P,u):bvx(w,M,P,u)}; bvx=function(w,M,P,u){var X=w.B;X!==w.app.uW()&&w.app.Zf();X.seekTo(M,Object.assign({},{Wk:"application_timelinemanager"},P));IF1(w,u)}; khy=function(w,M,P,u,X){var U=pG(w,M);if(!U){M.playerVars.prefer_gapless=!0;w.P3.D("html5_enable_ssap_entity_id")&&(M.playerVars.cached_load=!0);var f=new g.ut(w.P3,M.playerVars);f.QH=M.QH;w.api.vQ(f,M.playerType)}f=w.app.uW();U||f.addCueRange(M.Gv.Fq);f.seekTo(P,Object.assign({},{Wk:"application_timelinemanager"},u));IF1(w,X)}; IF1=function(w,M){w=w.app.uW();var P=w.getPlayerState();M.isOrWillBePlaying()&&!P.isOrWillBePlaying()?w.playVideo():M.isPaused()&&!P.isPaused()&&w.pauseVideo()}; Ex=function(w,M){w.B3=NaN;w.S=null;w.V.stop();w.X&&M&&w.X.h2();w.K=null;w.X=null}; pG=function(w,M){w=w.app.uW();return!!w&&w.getVideoData().QH===M.QH}; AGl=function(w){var M=w.L.find(function(X){return pG(w,X)}); if(M){var P=w.app.uW();Fh(w);var u=new g.EH(8);M=squ(w,M)/1E3;bvx(w,M,{},u);P.II("forceParentTransition",{childPlayback:1});w.B.II("forceParentTransition",{parentPlayback:1})}}; JG2=function(w,M,P){M=M===void 0?-1:M;P=P===void 0?Infinity:P;for(var u=M,X=P,U=g.G(w.G),f=U.next();!f.done;f=U.next()){var h=g.G(f.value);f=h.next().value;h=h.next().value;h.oB>=u&&h.target&&h.target.Im<=X&&(w.B.removeCueRange(f),w.G.delete(f))}u=M;X=P;U=[];f=g.G(w.L);for(h=f.next();!h.done;h=f.next())if(h=h.value,h.wK>=u&&h.Im<=X){var c=w;c.j===h&&Fh(c);pG(c,h)&&c.app.Zf()}else U.push(h);w.L=U;u=KWu(w,M/1E3);M=u.vx;u=u.d0;M&&(u*=1E3,gZ4(w,M,u,M.Im===M.wK+M.durationMs?M.wK+u:M.Im));(M=KWu(w,P/1E3).vx)&& So(w,"Invalid clearEndTimeMs="+P+" that falls during playback={timelinePlaybackId="+(M.QH+" video_id="+M.playerVars.video_id+" durationMs="+M.durationMs+" enterTimeMs="+M.wK+" parentReturnTimeMs="+M.Im+"}.Child playbacks can only have duration updated not their start."))}; gZ4=function(w,M,P,u){M.durationMs=P;M.Im=u;u={Fq:Hs(P,!0),oB:P,target:null};QqR(w,M,u);pG(w,M)&&w.app.uW().getCurrentTime()*1E3>P&&(M=squ(w,M)/1E3,P=w.app.uW().getPlayerState(),bvx(w,M,{},P))}; So=function(w,M,P,u){w.B.II("timelineerror",{e:M,cpn:P?P:void 0,videoId:u?u:void 0})}; jq5=function(w){w&&w!=="web"&&rGM.includes(w)}; N8=function(){g.v.call(this);this.B=new jK(5,null);g.b(this,this.B);this.L=new jK(15,null);g.b(this,this.L)}; I0u=function(w,M){return M?!!w.B.get(M):!1}; CfU=function(w,M){w.dataset.version=M}; Ovx=function(w){g.r.call(this,{W:"div",d$:["html5-video-player"],Z:{tabindex:w.N().disableOrganicUi?"":"-1",id:w.webPlayerContextConfig.rootElementId},J:[{W:"div",T:g.Eq.VIDEO_CONTAINER,Z:{"data-layer":"0"}}]});var M=this;this.app=w;this.qG=this.RI(g.Eq.VIDEO_CONTAINER);this.pZ=new g.Kj(0,0,0,0);this.JD=null;this.eV=new g.Kj(0,0,0,0);this.R3=this.wp=this.Qg=NaN;this.jq=this.Fp=this.qC=this.o5=!1;this.QB=NaN;this.p5=!1;this.gM=null;this.Bi=function(){M.element.focus({preventScroll:!0})}; this.BD=function(){M.app.h9.publish("playerUnderlayVisibilityChange","visible");M.JD.classList.remove(g.Eq.VIDEO_CONTAINER_TRANSITIONING);M.JD.removeEventListener(VF,M.BD);M.JD.removeEventListener("transitioncancel",M.BD)}; this.U3=this.B9=!1;var P=this.element.addEventListener,u=this.element.removeEventListener;this.addEventListener=function(U,f,h){P.apply(M.element,[U,f,h])}; this.removeEventListener=function(U,f,h){u.apply(M.element,[U,f,h])}; var X=w.N();X.transparentBackground&&this.pH("ytp-transparent");X.controlsType==="0"&&this.pH("ytp-hide-controls");g.io(this.element,"ytp-exp-bottom-control-flexbox");g.io(this.element,"ytp-modern-caption");X.D("enable_new_paid_product_placement")&&!g.c0(X)&&g.io(this.element,"ytp-exp-ppp-update");X.D("html5_enable_ssap")&&g.io(this.element,"ytp-ssap");g.io(this.element,"ytp-livebadge-color");if(X.D("delhi_modern_web_player"))switch(g.io(this.element,"ytp-delhi-modern"),X.D("delhi_modern_web_player_icons")&& g.io(this.element,"ytp-delhi-modern-icons"),HM(X.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.io(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.io(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.io(this.element,"ytp-delhi-modern-with-exclusion")}CfU(this.element,tE2(w));this.y6=!1;this.rD=new g.rq(NaN,NaN);xz4(this);this.Y(w.h9,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; xz4=function(w){function M(){w.JD&&V4(w);m3(w)!==w.p5&&w.resize()} function P(f,h){w.FG(f,h)} function u(f){f.getVideoData()&&w.updateVideoData(f.getVideoData())} function X(){w.eV=new g.Kj(0,0,0,0);w.pZ=new g.Kj(0,0,0,0)} var U=w.app.h9;U.addEventListener("initializingmode",X);U.addEventListener("videoplayerreset",u);U.addEventListener("videodatachange",P);U.addEventListener("presentingplayerstatechange",M);w.addOnDisposeCallback(function(){U.removeEventListener("initializingmode",X);U.removeEventListener("videoplayerreset",u);U.removeEventListener("videodatachange",P);U.removeEventListener("presentingplayerstatechange",M)})}; wry=function(w){var M=w.app.uW();if(M=M?M.getVideoData():null){if(g.bt(M)||g.II(M)||g.AM(M))return 16/9;if(pk(M)&&M.C.B)return w=M.C.videoInfos[0].video,aFp(w.width,w.height)}return(w=w.JD)?aFp(w.videoWidth,w.videoHeight):16/9}; igz=function(w,M,P,u){var X=P,U=aFp(M.width,M.height);w.o5?X=PU?{width:M.width,height:M.width/X,aspectRatio:X}:XX?w.width=w.height*P:Pc;if(m3(w)){var Z=wry(w);var S=isNaN(Z)||g.Im||P$&&g.HN||c;bb&&!g.KQ(601)?Z=X.aspectRatio:S=S||U.controlsType==="3";S?c?(S=U.D("place_shrunken_video_on_left_of_player")?16:w.getPlayerSize().width-M.width-16,Z=Math.max((w.getPlayerSize().height-M.height)/2,0),S=new g.Kj(S,Z,M.width, M.height),w.JD.style.setProperty("border-radius","12px")):S=new g.Kj(0,0,M.width,M.height):(P=X.aspectRatio/Z,S=new g.Kj((M.width-X.width/P)/2,(M.height-X.height)/2,X.width/P,X.height),P===1&&g.HN&&(Z=S.width-M.height*Z,Z>0&&(S.width+=Z,S.height+=Z)));g.X6(w.element,"ytp-fit-cover-video",Math.max(S.width-X.width,S.height-X.height)<1);if(h||w.y6)w.JD.style.display="";w.p5=!0}else{S=-M.height;bb?S*=window.devicePixelRatio:g.Z1&&(S-=window.screen.height);S=new g.Kj(0,S,M.width,M.height);if(h||w.y6)w.JD.style.display= "none";w.p5=!1}b6(w.eV,S)||(w.eV=S,g.jY(U)?(w.JD.style.setProperty("width",S.width+"px","important"),w.JD.style.setProperty("height",S.height+"px","important")):g.w2(w.JD,S.getSize()),u=new g.gq(S.left,S.top),g.t1(w.JD,Math.round(u.x),Math.round(u.y)),u=!0);M=new g.Kj((M.width-X.width)/2,(M.height-X.height)/2,X.width,X.height);b6(w.pZ,M)||(w.pZ=M,u=!0);g.A1(w.JD,"transform",P===1?"":"scaleX("+P+")");f&&c!==w.Fp&&(c&&(w.JD.addEventListener(VF,w.BD),w.JD.addEventListener("transitioncancel",w.BD),w.JD.classList.add(g.Eq.VIDEO_CONTAINER_TRANSITIONING)), w.Fp=c,w.app.h9.publish("playerUnderlayVisibilityChange",w.Fp?"transitioning":"hidden"));return u}; uAz=function(w){w.B9=!w.B9;w.U3=!0;w.element.classList.toggle("ytp-retro-player",w.B9);w.resize();w.U3=!1;w.app.h9.Vs("onRetroModeChanged",w.B9)}; XrF=function(){this.csn=g.En();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.B=new Set;this.L=new Set}; $yy=function(w){if(w.csn!==g.En())if(w.csn==="UNDEFINED_CSN")w.csn=g.En();else{var M=g.En(),P=g.F_();if(M&&P){w.csn=M;for(var u=g.G(w.elements),X=u.next();!X.done;X=u.next())(X=X.value.visualElement)&&X.isClientVe()&&M&&P&&(g.FW("combine_ve_grafts")?rE(gE(),X,P):g.j2(g.vm)(void 0,M,P,X))}if(M)for(w=g.G(w.B),P=w.next();!P.done;P=w.next())(P=P.value.visualElement)&&P.isClientVe()&&g.jR(M,P)}}; g.op=function(w,M,P,u){g.v.call(this);var X=this;this.logger=new g.pM("App");this.VP=this.dg=!1;this.Dc={};this.e4=[];this.cJ=!1;this.zK=null;this.intentionalPlayback=!1;this.tM=!0;this.Jg=!1;this.Kd=this.WJ=this.C5=null;this.ju=!0;this.mediaElement=this.Cg=null;this.l9=NaN;this.Ma=!1;this.lm=this.I2=this.Hl=this.screenLayer=this.playlist=null;this.wU=[];this.kM=0;this.yH={sG:function(){return X.CT}, Wu3:function(){return X.Hl}, UuK:function(){}}; this.logger.debug("constructor begin");if(!P)throw Error("b/179532961");this.VY=(M==null?void 0:M.args)||{};this.webPlayerContextConfig=P;XGu();M=this.VY;this.P3=new iT(M,P,P.canaryState,u,this);g.b(this,this.P3);rq5(this.P3);P=CI5(this.P3);this.P3.FX()&&this.LI("h5vcc",P);this.P3.experiments.nu("jspb_serialize_with_worker")&&sg1();this.P3.experiments.nu("gzip_gel_with_worker")&&LZp();this.P3.L&&!Uyp&&(window.addEventListener(Rj?"touchstart":"click",yqU,{capture:!0,passive:!0}),Uyp=!0);this.D("html5_onesie")&& (this.Df=new Fc(this.P3),g.b(this,this.Df));this.W5=a1(Ij(this.P3)&&!0,M.enablesizebutton);this.L5=a1(!1,M.player_wide);this.visibility=new KzF;g.b(this,this.visibility);this.D("web_log_theater_mode_visibility")&&this.Y1(a1(!1,M.player_wide));this.dg=a1(!1,M.external_list);this.events=new g.V2(this);g.b(this,this.events);this.D("start_client_gcf")&&(GJ(YB(),{ri:Pb,zi:i_p()}),this.rd=YB().resolve(Pb),u6y(this.rd));this.z3u=new V1;g.b(this,this.z3u);this.Ae=new XrF;P=new mB;this.h9=new g.BV(this,P); g.b(this,this.h9);this.template=new Ovx(this);g.b(this,this.template);this.appState=1;this.uv=fJu(this);g.b(this,P);P={};this.Pr=(P.internalvideodatachange=this.Gk0,P.playbackready=this.sI$,P.playbackstarted=this.x0I,P.statechange=this.e$W,P);this.Xz=new N0(this.h9);this.wB=WNu(this);P=this.P3.K;!1!==P&&this.LI("badps",{hbp:P,hostname:window.location.hostname,ps:this.P3.playerStyle});this.rK=new W35(this.P3,this.wB);this.h9.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||TWM(this.wB))&& hPx(this);P=10;g.Z$(this.P3)&&(P=3);W0(this.P3)&&(P=g.Oh(this.P3.experiments,"tvhtml5_unplugged_preload_cache_size"));this.CT=new g.tl(this.h9,P);P=c65(this);this.CT.fJ(P);ZgR(this);P={};this.KO=(P.airplayactivechange=this.g2s,P.airplayavailabilitychange=this.a4s,P.beginseeking=this.j9I,P.sabrCaptionsDataLoaded=this.ADI,P.endseeking=this.uXk,P.internalAbandon=this.l4s,P.internalaudioformatchange=this.Q9k,P.internalvideodatachange=this.PBN,P.internalvideoformatchange=this.B7k,P.liveviewshift=this.YFL, P.playbackstalledatstart=this.czW,P.progresssync=this.Zg$,P.onAbnormalityDetected=this.Ogu,P.onSnackbarMessage=this.SF3,P.onLoadProgress=this.VK$,P.SEEK_COMPLETE=this.bg0,P.SEEK_TO=this.qF0,P.onVideoProgress=this.LTk,P.onLoadedMetadata=this.n2O,P.onAutoplayBlocked=this.wj$,P.onPlaybackPauseAtStart=this.NKW,P.playbackready=this.o2s,P.statechange=this.uL,P.newelementrequired=this.Th,P.heartbeatparams=this.tK$,P.videoelementevent=this.fXu,P.drmoutputrestricted=this.TKO,P.signatureexpired=this.JDL,P.nonfatalerror= this.igu,P.reloadplayer=this.Hg3,P);this.Ri=new g.V2(this);g.b(this,this.Ri);this.r0=new N8;g.b(this,this.r0);this.CU=this.ow=-1;this.z8=new g.gV(this.template.resize,16,this.template);g.b(this,this.z8);this.lB=new ewz(this.h9,this.P3,this.Pj(),this);this.EG=new bN(this);g.b(this,this.EG);this.HT=new nI(this);g.b(this,this.HT);jq5(this.P3.B.c);this.events.Y(this.h9,g.AP("appapi"),this.KNu);this.events.Y(this.h9,g.gL("appapi"),this.FNW);this.events.Y(this.h9,g.AP("appprogressboundary"),this.CBN);this.events.Y(this.h9, g.gL("applooprange"),this.JA);this.events.Y(this.h9,"presentingplayerstatechange",this.S1);this.events.Y(this.h9,"resize",this.G5K);this.template.XK(u6(document,w));this.events.Y(this.h9,"offlineslatestatechange",this.s9I);this.events.Y(this.h9,"sabrCaptionsTrackChanged",this.tZ$);this.events.Y(this.h9,"sabrCaptionsBufferedRangesUpdated",this.uFu);this.wB.U.N().Ci&&Lo(this.wB,"offline");this.P3.jL&&g.yT("ux",g.kd);w=g.Oh(this.P3.experiments,"html5_defer_fetch_att_ms");this.Fh=new g.gV(this.Jw0,w, this);g.b(this,this.Fh);this.Bl().Nf()&&(g.L0()&&this.Bl().Lu.push("remote"),Sju(this));this.rK.tick("fs");Hg5(this);this.P3.jL&&Lo(this.wB,"ux",!0);g.K7(this.wB.U.N())&&Lo(this.wB,"embed");this.D("web_player_sentinel_is_uniplayer")||g.Yq(new g.bK("Player experiment flags missing","web_player_sentinel_is_uniplayer"));w=this.D("web_player_sentinel_yt_experiments_sync");P=g.FW("web_player_sentinel_yt_experiments_sync");w!==P&&g.Yq(new g.bK("b/195699950",{yt:w,player:P}));this.yr=pru(this);if(w=g.Oh(this.P3.experiments, "html5_block_pip_safari_delay"))this.k7=new g.gV(this.V9,w,this),g.b(this,this.k7);d$=this.P3.TE;this.h9.publish("applicationInitialized");this.logger.debug("constructor end")}; pru=function(w){function M(P){P.stack&&P.stack.indexOf("player")!==-1&&w.uW().oa(P)} zw.subscribe("handleError",M);JR.push(M);return function(){zw.unsubscribe("handleError",M);var P=JR.indexOf(M);P!==-1&&JR.splice(P,1)}}; c65=function(w){var M=new g.ut(w.P3,w.VY);w.h9.publish("initialvideodatacreated",M);return G4(w,1,M,!1)}; ZgR=function(w){var M=w.Pj();M.setPlaybackRate(w.P3.X?1:FN2(w,Number(g.dH("yt-player-playback-rate"))||1));M.Ng(w.Pr,w);M.Vj()}; WNu=function(w){var M="",P=tE2(w);P.indexOf("//")===0&&(P=w.P3.protocol+":"+P);var u=P.lastIndexOf("/base.js");u!==-1&&(M=P.substring(0,u+1));if(P=Error().stack)if(P=P.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))P=P[1],P.includes(M)||g.Yq(Error("Player module URL mismatch: "+(P+" vs "+M+".")));M=new qxl(w.h9,M);P={};Yx4(M,(P.destroyed=function(){w.onApiChange()},P)); return M}; fJu=function(w){if(w.P3.storeUserVolume){w=g.dH("yt-player-volume")||{};var M=w.volume;w={volume:isNaN(M)?100:g.bi(Math.floor(M),0,100),muted:!!w.muted}}else w={volume:100,muted:w.P3.mute};return w}; y4=function(w){w.mediaElement=w.P3.deviceIsAudioOnly?new g.t9(g.HS("AUDIO")):Rk.pop()||new g.t9(g.HS("VIDEO"));g.b(w,w.mediaElement);w.uW().setMediaElement(w.mediaElement);try{w.P3.KT?(w.I2&&w.events.Mt(w.I2),w.I2=w.events.Y(w.mediaElement,"volumechange",w.Wku)):(w.mediaElement.Qj(w.uv.muted),w.mediaElement.setVolume(w.uv.volume/100))}catch(X){w.f9("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(X&&typeof X==="object"&&"message"in X&&typeof X.message==="string"&&X.message.replace(/[;:,]/g, "_")));return}g.qi(w.Ri);EbM(w);var M=w.template,P=w.mediaElement.vj();M.JD=P;M.jq=!1;M.JD.parentNode||N3(M.qG,M.JD,0);M.eV=new g.Kj(0,0,0,0);P4R(M);V4(M);P=M.JD;g.io(P,"video-stream");g.io(P,g.Eq.MAIN_VIDEO);var u=M.app.N();u.uh&&P.setAttribute("data-no-fullscreen","true");u.D("html5_local_playsinline")?"playsInline"in S1()&&(P.playsInline=!0):u.cC&&(P.setAttribute("webkit-playsinline",""),P.setAttribute("playsinline",""));u.MM&&M.JD&&M.Y(P,"click",P.play,P);try{w.mediaElement.activate()}catch(X){w.f9("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(X&&typeof X==="object"&&"message"in X&&typeof X.message==="string"&&X.message.replace(/[;:,]/g,"_")))}}; Vzy=function(w){if(!NFu(w)){var M=w.Pj().Nt();M&&(M=M.E9(),M instanceof Promise&&M.catch(function(){})); Dy(w,qV(w.getPlayerStateObject()))}}; EbM=function(w){var M=w.mediaElement;EI()?w.Ri.Y(M,"webkitpresentationmodechanged",w.Ybu):window.document.pictureInPictureEnabled&&(w.Ri.Y(M,"enterpictureinpicture",function(){w.Y0(!0)}),w.Ri.Y(M,"leavepictureinpicture",function(){w.Y0(!1)})); JD&&(w.Ri.Y(M,"webkitbeginfullscreen",function(){w.Vc(3)}),w.Ri.Y(M,"webkitendfullscreen",function(){w.Vc(0)}))}; myR=function(w,M){var P=M.getPlayerType(),u=w.CT.C[P]||null;M!==w.Pj()&&M!==u&&(u==null||u.dispose(),w.CT.C[P]=M)}; ob2=function(w,M){M=M===void 0?!0:M;w.logger.debug("start clear presenting player");var P;if(P=w.lm){P=w.lm;var u=w.mediaElement;P=!!u&&u===P.mediaElement}P&&(w.Fc(),y4(w));P=w.uW();P.Fc(!M);P.cO(w.KO,w);P.getPlayerType()!==1&&P.dispose();M=w.CT;M.L=M.B;xd(M);w.logger.debug("finish clear presenting player")}; g.GAy=function(w,M,P,u){var X=w.rK;M===2&&(X=new W35(w.P3));return new g.$A(w.P3,M,X,w.template,function(U,f,h){w.h9.publish(U,f,h)},function(){return w.h9.getVisibilityState()},w.visibility,w,P,u)}; G4=function(w,M,P,u,X){w=g.GAy(w,M,P,X);w=new g.jq(w);u&&w.Vj();return w}; q8=function(w,M){return w.q6(M)?w.Pj():M}; YP=function(w,M){var P=w.uW();return M===w.Pj()&&w.q6(M)&&w.q6(P)?P:M}; qjl=function(w){w.logger.debug("start application playback");if(w.Pj().getPlayerState().isError())w.logger.debug("start application playback done, player in error state");else{var M=z4(w);w.Bl().isLoaded();M&&w.Nx(6);y65(w);nPu(w.wB)||DyH(w)}}; DyH=function(w){if(!z4(w)){var M=B4(w.wB);M&&!M.created&&znz(w.wB)&&(w.logger.debug("reload ad module"),M.create())}}; y65=function(w){w.logger.debug("start presenter playback");var M=w.getVideoData(),P=w.wB;nPu(P)||P.ue();!Uex&&P.U.D("html5_allow_asmjs")&&AZ5(P);Lo(P,"embed");Lo(P,"kids");Lo(P,"remote");Lo(P,"miniplayer");Lo(P,"offline");Lo(P,"unplugged");Lo(P,"ypc",!1,!0);Lo(P,"ypc_clickwrap",!1,!0);Lo(P,"yto",!1,!0);Lo(P,"webgl",!1,!0);vPx(P)||(Lo(P,"captions",!0),Lo(P,"endscreen"),P.xd(),Lo(P,"creatorendscreen",!0));P.vn();w.h9.publish("videoready",M)}; T4=function(w){w=w.Bl();w.Nf();return xp(w)}; Hg5=function(w){w.logger.debug("start prepare initial playback");w.Hr();var M=w.VY;y4(w);w.events.Y(window,"resize",w.DtI);var P=w.Bl();w.h9.OE("onVolumeChange",w.uv);if(M&&Sx_(M)){var u=XD(w.P3);u&&!w.dg&&(M.fetch=0);var X=g.K7(w.P3);X&&!w.dg&&(M.fetch=0);dW(w,M);g.K7(w.P3)&&w.rK.tick("ep_pr_s");if(!u||w.dg)if(X&&!w.dg)Yj5(w);else if(!P.Nf())w.playlist.onReady(function(){l1(w)})}w.uu(w.Pj(),!1,!0); g.C(w.Pj().getPlayerState(),128)||(M=z3z(!w.P3.deviceIsAudioOnly),M==="fmt.noneavailable"?w.f9("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):M==="html5.missingapi"?w.f9(M,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):P&&P.Nf()&&T4(w)&&(w.P3.Q8||w.P3.w5)?LG(w):P.XM?w.h9.mutedAutoplay({durationMode:P.mutedAutoplayDurationMode}):g.dH("yt-player-playback-on-reload")?(g.ub("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!w.P3.mN}),g.Tg("yt-player-playback-on-reload",!1), LG(w)):H0(w.P3)||zPu(w),g.fp(w.P3)||Z9(w.P3)==="MWEB"?(g.rH(g.C0(),function(){eo(w)}),g.rH(g.C0(),function(){qYy()})):(eo(w),qYy()),w.logger.debug("finish prepare initial playback"))}; eo=function(w){if(!w.D("use_rta_for_player"))if(w.D("fetch_att_independently"))g.JK(w.Fh);else{var M=w.getVideoData().botguardData;M&&g.iW(M,w.P3,w.getVideoData().eS||"")}}; zPu=function(w){w.logger.debug("start initialize to CUED mode");w.h9.publish("initializingmode");w.Nx(2);w.D("embeds_web_enable_defer_loading_remote_js")&&g.c0(w.P3)?g.rH(g.C0(),function(){Lo(w.wB,"remote")}):Lo(w.wB,"remote"); Lo(w.wB,"miniplayer");w.logger.debug("initialized to CUED mode")}; LG=function(w){w.logger.debug("start initialize application playback");var M=w.Pj();if(g.C(M.getPlayerState(),128))return!1;M=M.getVideoData();T4(w)&&w.P3.w5&&(Rk.length&&w.VP?(Bs(w,{muted:!1,volume:w.uv.volume},!1),Q4(w,!1)):Rk.length||w.uv.muted||(Bs(w,{muted:!0,volume:w.uv.volume},!1),Q4(w,!0)));T4(w)&&g.K7(w.P3)&&M.mutedAutoplay&&(Bs(w,{muted:!0,volume:w.uv.volume},!1),Q4(w,!0));M.w3&&Bs(w,{muted:!0,volume:w.uv.volume},!1);TF4(w,1,M,!1);var P=w.Pj();w.h9.publish("initializingmode");w.uu(P);w.Nx(3); var u;if(!(u=!w.P3.vC)){if(u=w.lm){u=w.lm;var X=w.mediaElement;u=!!X&&X===u.mediaElement}u=u&&w.cJ}u&&(w.Fc(),y4(w),P.setMediaElement(w.mediaElement));P.oL();if(g.C(P.getPlayerState(),128))return!1;M.H_||Dy(w,3);return w.cJ=!0}; z4=function(w){w=RZ(w.wB);return!!w&&w.loaded}; dy_=function(w,M){if(!w.Cg)return!1;var P=w.Cg.startTimeMs*.001-1,u=w.Cg.endTimeMs*.001;w.Cg.type==="repeatChapter"&&u--;return Math.abs(M-P)<=1E-6||Math.abs(M-u)<=1E-6||M>=P&&M<=u}; lJM=function(w){var M=w.uW();FM(M.getVideoData())&&!M.aW()&&(M=kP(w)*1E3-w.getVideoData().fB,w.D("html5_gapless_new_slr")?(w=w.HT,Rp(w.app,"gaplessshortslooprange"),M=new g.bg(0,M,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(w=w.app.uW())&&w.addCueRange(M)):w.setLoopRange({startTimeMs:0,endTimeMs:M,type:"shortsLoop"}))}; LNF=function(w){var M=w.Pj();if(!(g.C(M.getPlayerState(),64)&&w.Bl().isLivePlayback&&w.Cg.startTimeMs<5E3)){if(w.Cg.type==="repeatChapter"){var P,u=(P=Mbu(w.I9()))==null?void 0:P.UG(),X;P=(X=w.getVideoData())==null?void 0:X.Q8;u instanceof g.tI&&P&&(X=P[ZV(P,w.Cg.startTimeMs)],u.renderChapterSeekingAnimation(0,X.title));isNaN(Number(w.Cg.loopCount))?w.Cg.loopCount=0:w.Cg.loopCount++;w.Cg.loopCount===1&&w.h9.Vs("innertubeCommand",w.getVideoData().UP)}u={Wk:"application_loopRangeStart"};if(w.Cg.type=== "clips"||w.Cg.type==="shortsLoop")u.seekSource=58;M.seekTo(w.Cg.startTimeMs*.001,u)}}; FN2=function(w,M){var P=w.h9.getAvailablePlaybackRates();M=Number(M.toFixed(2));w=P[0];P=P[P.length-1];M<=w?M=w:M>=P?M=P:(w=Math.floor(M*100+.001)%5,M=w===0?M:Math.floor((M-w*.01)*100+.001)/100);return M}; kP=function(w,M){M=w.gB({playerType:M});if(!M)return w.CT.B.Ft();M=q8(w,M);return nG(w,M.Ft(),M)}; nG=function(w,M,P){if(w.q6(P)&&(P=P.getVideoData(),!vs(w))){w=w.lB;for(var u=g.G(w.L),X=u.next();!X.done;X=u.next())if(X=X.value,P.QH===X.QH){M+=X.wK/1E3;break}u=M;w=g.G(w.L);for(X=w.next();!X.done;X=w.next()){X=X.value;if(P.QH===X.QH)break;var U=X.wK/1E3;if(U1&&(X=!1);if(!w.Ma||X!==M){P=P.lock(X?"portrait":"landscape");if(P!=null)P["catch"](function(){}); w.Ma=!0}}else w.Ma&&(w.Ma=!1,P.unlock())}; gW=function(w,M,P){w.h9.publish(M,P);var u=g.Z$(w.P3)||g.jY(w.P3)||g.LW(w.P3);if(P&&u){switch(M){case "cuerangemarkersupdated":var X="onCueRangeMarkersUpdated";break;case "cuerangesadded":X="onCueRangesAdded";break;case "cuerangesremoved":X="onCueRangesRemoved"}X&&w.h9.Vs(X,P.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}}))}}; JZ=function(w,M,P,u,X,U){P=P===void 0?!0:P;var f=w.gB({playerType:X});if(!f||(f.getPlayerType()!==2||w.q6(f))&&!g.sp(f.getVideoData())){var h=w.CT.Wb;h?h.seekTo(M,{qs:!P,QW:u,Wk:"application",seekSource:U}):(f&&f===w.Pj()&&w.Cg&&!dy_(w,M)&&w.setLoopRange(null),w.seekTo(M,P,u,X,U))}}; jMl=function(w,M,P,u){P&&(w.Fc(),y4(w));P=w.uW();P.jV(M);var X=w.getVideoData(),U={};U.video_id=X.videoId;U.adformat=X.adFormat;X.isLivePlayback||(U.start=P.getCurrentTime(),U.resume="1");X.isLivePlayback&&qI(X)&&g.hP(w.P3)&&(U.live_utc_start=P.Ls(),U.resume="1");X.Cu&&(U.vvt=X.Cu);X.K&&(U.vss_credentials_token=X.K,U.vss_credentials_token_type=X.Z8);X.oauthToken&&(U.oauth_token=X.oauthToken);U.autoplay=1;U.reload_count=X.hD+1;U.reload_reason=M;X.D1&&(U.unplugged_partner_opt_out=X.D1);X.uh&&(U.ypc_is_premiere_trailer= X.uh);X.playerParams&&(U.player_params=X.playerParams);w.loadVideoByPlayerVars(U,void 0,!0,void 0,void 0,u);M==="signature"&&w.Hl&&DyH(w)}; C41=function(w,M){w.Bl().autonavState=M;g.Tg("yt-player-autonavstate",M);w.h9.publish("autonavchange",M)}; tzz=function(w){var M=w.getVideoData().nN,P=w.P3.bW,u=w.isInline()&&!w.getVideoData().Xm,X=w.mediaElement;M||P||u?X.qp():(X.PM(),Bs(w,w.uv))}; sx=function(w){var M=B4(w.I9());M&&M.created&&(w.logger.debug("reset ad module"),M.destroy())}; vs=function(w){return w.getVideoData().enableServerStitchedDai&&!!w.Hl}; xyF=function(w,M){M.bounds=w.getBoundingClientRect();for(var P=g.G(["display","opacity","visibility","zIndex"]),u=P.next();!u.done;u=P.next())u=u.value,M[u]=rS(w,u);M.hidden=!!w.hidden}; tE2=function(w){var M=w.webPlayerContextConfig.trustedJsUrl;return M?NT(M).toString():w.webPlayerContextConfig.jsUrl}; OgM=function(w,M){var P=w.gB({playerType:1});if(P){if(P.getVideoData().clientPlaybackNonce===M)return P;if((w=w.EG.B)&&w.getVideoData().clientPlaybackNonce===M)return w}return null}; hPx=function(w){function M(u){return dE(gP2(w.wB),function(X){return X.I$(u)})} w.rK.tick("wasm_s");w.P3.rB=f1y(w.webPlayerContextConfig.wasmModuleUrl,TWM(w.wB)?M:void 0,w.LI.bind(w));var P;(P=w.P3.rB)==null||dE(P,function(u){w.P3.t9=u;w.rK.tick(u.B?"wasm_fa":"wasm_fw")},function(){w.P3.rB=void 0; w.rK.tick("wasm_ferr")})}; aJ1=function(w){return w.name==="TypeError"&&w.stack.includes("/s/player/")&&R1()<=105}; wdU=function(w){return w.isTimeout?"NO_BID":"ERR_BID"}; iup=function(){var w=null;li5().then(function(M){return w=M},function(M){return w=wdU(M)}); return w}; M_1=function(){var w=Qk(1E3,"NO_BID");return g.lO(rau([li5(),w]).NS(wdU),function(){w.cancel()})}; rW=function(w){return w.DO?g.RS(g.kF(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; jo=function(w){this.player=w;this.C=this.B=1}; XdM=function(w,M,P,u,X,U){M.client||(M.client={});w.player.N().D("h5_remove_url_for_get_ad_break")||(M.client.originalUrl=P);var f=PF(P),h=g.f5(P)?!1:!0;(f||h)&&typeof Intl!=="undefined"&&(M.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.f5(P)?!1:!0;if(f||h||u!==""){var c={};P=xh(fB(u)).split("&");var Z=new Map;P.forEach(function(S){S=S.split("=");S.length>1&&Z.set(S[0].toString(),decodeURIComponent(S[1].toString()))}); Z.has("bid")&&(c.bid=Z.get("bid"));c.params=[];P71.forEach(function(S){Z.has(S)&&(S={key:S,value:Z.get(S)},c.params.push(S))}); u9u(w,c);M.adSignalsInfo=c}M.client.unpluggedAppInfo||(M.client.unpluggedAppInfo={});M.client.unpluggedAppInfo.enableFilterMode=!1;P=X.B.cosver;P!=null&&P!=="cosver"&&(M.client.osVersion=P);P=X.B.cplatform;P!=null&&P!=="cplatform"&&P!==""&&(M.client.platform=P);P=X.B.cmodel;P!=null&&P!=="cmodel"&&(M.client.deviceModel=P);P=X.B.cplayer;P!=null&&P!=="cplayer"&&(M.client.playerType=P);P=X.B.cbrand;P!=null&&P!=="cbrand"&&(M.client.deviceMake=P);M.user||(M.user={});M.user.lockedSafetyMode=!1;(X.D("embeds_web_enable_iframe_api_send_full_embed_url")|| X.D("embeds_enable_autoplay_and_visibility_signals"))&&g.r8(X)&&$LF(M,U,w.player.getPlayerState(1))}; fuM=function(w,M){var P=!1;if(M==="")return P;M.split(",").forEach(function(u){var X={},U={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},f="ACTIVE";u[0]==="!"&&(u=u.substring(1),f="INACTIVE");u=u.split("-");u.length<3||(u[0]in $Az&&(U.clientName=$Az[u[0]]),u[1]in UAl&&(U.platform=UAl[u[1]]),U.applicationState=f,U.clientVersion=u.length>2?u[2]:"",X.remoteClient=U,w.remoteContexts?w.remoteContexts.push(X):w.remoteContexts=[X],P=!0)}); return P}; h2y=function(w){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in WTl))return!1;w=w.split(RegExp("[:&]"));var M=WTl.FLAG_AUTO_CAPTIONS_DEFAULT_ON,P="f"+(1+Math.floor(M/31)).toString();M=1<=2?f[1]:"";var h=Zuz.test(M),c=S9p.exec(M);c=c!=null&&c.length>=2?c[1]:"";var Z=Hup.exec(M);Z=Z!=null&&Z.length>=2&&!Number.isNaN(Number(Z[1]))?Number(Z[1]):1;var S=pd1.exec(M);S=S!=null&&S.length>=2?S[1]:"0";var H=Ok(w.player.N().GJ),p=w.player.getVideoData(1),F=g.Jb(p.UO,!0),E="BISCOTTI_ID"in P?P.BISCOTTI_ID:"";XdM(w,F,M,E.toString(),w.player.N(), p);p={splay:!1,lactMilliseconds:P.LACT.toString(),playerHeightPixels:Math.trunc(P.P_H),playerWidthPixels:Math.trunc(P.P_W),vis:Math.trunc(P.VIS),signatureTimestamp:20269,autonavState:rW(w.player.N())};u&&(u={},fuM(u,P.YT_REMOTE)&&(p.mdxContext=u));if(u=FTz.includes(H)?void 0:g.e9("PREF")){for(var y=u.split(RegExp("[:&]")),q=0,d=y.length;q1&&l[1].toUpperCase()==="TRUE"){F.user.lockedSafetyMode=!0;break}}p.autoCaptionsDefaultOn= h2y(u)}M=E_u.exec(M);(M=M!=null&&M.length>=2?M[1]:"")&&c&&(F.user.credentialTransferTokens=[{token:M,scope:"VIDEO"}]);M={contentPlaybackContext:p};f={adBlock:Math.trunc(P.AD_BLOCK),params:f,breakIndex:Z,breakPositionMs:S,clientPlaybackNonce:P.CPN,topLevelDomain:H,isProxyAdTagRequest:h,context:F,adSignalsInfoString:xh(fB(E.toString())),overridePlaybackContext:M};X!==void 0&&(f.cueProcessedMs=Math.round(X).toString());c&&(f.videoId=c);P.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=P.LIVE_TARGETING_CONTEXT); P.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(P.AD_BREAK_LENGTH*1E3).toString());U&&(f.driftFromHeadMs=U.toString());f.currentMediaTimeMs=Math.round(w.player.getCurrentTime(1)*1E3);(w=w.player.getGetAdBreakContext())&&(f.getAdBreakContext=w);return f}; V_M=function(){jo.apply(this,arguments)}; mAy=function(w,M,P,u,X){var U=P.Pp;var f=P.Fq;var h=w.player.N().uI,c=0;P.cueProcessedMs&&f&&!U&&(P=f.end-f.start,P>0&&(c=Math.floor(P/1E3)));var Z={AD_BLOCK:X,AD_BREAK_LENGTH:U?U.Xq:c,AUTONAV_STATE:rW(w.player.N()),CA_TYPE:"image",CPN:w.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:w.player.Mz()*1E3,LACT:NW(),LIVE_INDEX:U?w.C++:1,LIVE_TARGETING_CONTEXT:U&&U.context?U.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:w.player.getVisibilityState(), P_H:w.player.oI().RQ().height,P_W:w.player.oI().RQ().width,YT_REMOTE:h?h.join(","):""},S=UL($S);Object.keys(S).forEach(function(H){S[H]!=null&&(Z[H.toUpperCase()]=S[H].toString())}); u!==""&&(Z.BISCOTTI_ID=u);u={};XW(M)&&(u.sts="20269",(w=w.player.N().forcedExperiments)&&(u.forced_experiments=w));return Mx(g.YO(M,Z),u)}; o_l=function(w,M){var P=w.player.N(),u,X=(u=w.player.getVideoData(1))==null?void 0:u.oauthToken;return g.E_(P,X).then(function(U){if(U&&uL()){var f=J$();rI(f,U)}return g.LU(w.player.aQ(f),M,"/youtubei/v1/player/ad_break").then(function(h){return h})})}; G7u=function(w){this.FK=w}; yoz=function(w){this.U=w}; DAU=function(w){this.FK=w}; Y9y=function(w){g.v.call(this);this.B=w;this.kF=q9U(this)}; q9U=function(w){var M=new z1z(w.B.YA);g.b(w,M);w=[new G7u(w.B.FK),new yoz(w.B.U),new DAU(w.B.FK),new pn(w.B.DY,w.B.Jq),new Es,new mr(w.B.Bv,w.B.EB,w.B.FK),new FI,new Hv];w=g.G(w);for(var P=w.next();!P.done;P=w.next())TGl(M,P.value);w=g.G(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(P=w.next();!P.done;P=w.next())NC(M,P.value,function(){}); return M}; CG=function(w){var M=w.D3,P=w.EO;w=w.I7;var u=new JF5,X={zJ:new q44(M.get(),P),EO:P};return{eK:new V5(P,w,M,X),context:X,n9:u}}; tZ=function(w,M,P,u,X){g.v.call(this);this.L=M;this.W3=P;this.D3=u;this.Ya=X;this.listeners=[];var U=new yh(this);g.b(this,U);U.Y(w,"internalAbandon",this.pj3);this.addOnDisposeCallback(function(){g.qi(U)})}; xP=function(w){this.U=w;this.adVideoId=this.B=this.videoId=this.adCpn=this.contentCpn=null;this.G=!0;this.L=this.C=!1;this.adFormat=null;this.X="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; z2R=function(w){w.contentCpn=null;w.adCpn=null;w.videoId=null;w.adVideoId=null;w.adFormat=null;w.X="AD_PLACEMENT_KIND_UNKNOWN";w.actionType="unknown_type";w.C=!1;w.L=!1}; TXR=function(w,M){w=g.G(M);for(M=w.next();!M.done;M=w.next())if((M=M.value.renderer)&&(M.instreamVideoAdRenderer||M.linearAdSequenceRenderer||M.sandwichedLinearAdRenderer||M.instreamSurveyAdRenderer)){yc("ad_i");g.Db({isMonetized:!0});break}}; dAl=function(w){var M;(M=w.U.getVideoData(1))!=null&&M.mN&&(w.L=!1,M={},w.B&&w.videoId&&(M.cttAuthInfo={token:w.B,videoId:w.videoId}),qH("video_to_ad",M))}; Xn=function(w){w.L=!1;var M={};w.B&&w.videoId&&(M.cttAuthInfo={token:w.B,videoId:w.videoId});qH("ad_to_video",M);luU(w)}; luU=function(w){if(w.C)if(w.X==="AD_PLACEMENT_KIND_START"&&w.actionType==="video_to_ad")mX("video_to_ad");else{var M={adBreakType:km(w.X),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:w.videoStreamType};w.actionType==="ad_to_video"?(w.contentCpn&&(M.targetCpn=w.contentCpn),w.videoId&&(M.targetVideoId=w.videoId)):(w.adCpn&&(M.targetCpn=w.adCpn),w.adVideoId&&(M.targetVideoId=w.adVideoId));w.adFormat&&(M.adType=w.adFormat);w.contentCpn&& (M.clientPlaybackNonce=w.contentCpn);w.videoId&&(M.videoId=w.videoId);w.adCpn&&(M.adClientPlaybackNonce=w.adCpn);w.adVideoId&&(M.adVideoId=w.adVideoId);g.Db(M,w.actionType);w.U.N().experiments.nu("html5_ads_csi_qoes")&&(M=w.U.yc(w.actionType==="ad_to_video"?1:2),M=(0,g.G$)()-1E3*M,zv("qoes",M,w.actionType))}}; Ox=function(w){g.v.call(this);this.U=w;this.B=new Map;this.L=new yh(this);g.b(this,this.L);this.L.Y(this.U,g.AP("ad"),this.onCueRangeEnter,this);this.L.Y(this.U,g.gL("ad"),this.onCueRangeExit,this)}; LTp=function(w,M,P,u,X,U){g.bg.call(this,M,P,{id:w,namespace:"ad",priority:X,visible:u,associatedClipId:U})}; ap=function(w){this.U=w}; e22=function(w,M){w.U.cueVideoByPlayerVars(M,2)}; wB=function(w){this.U=w}; ik=function(w){this.U=w;g.Oh(this.U.N().experiments,"tv_pacf_logging_sample_rate")}; BXz=function(w){return BJ(w,"html5_ssap_play_cached_preroll")}; UI=function(w,M){M=M===void 0?!1:M;return w.U.N().D("html5_ssap_force_ads_ctmp")?!0:(M||w.U.N().FX())&&w.U.N().D("html5_ssap_pacf_qoe_ctmp")}; MO=function(w){var M;return(M=w.U.getVideoData(1)==null?void 0:!1)!=null?M:!1}; BJ=function(w,M){return w.U.N().D(M)}; Qcp=function(w){return w.U.N().D("substitute_ad_cpn_macro_in_ssdai")}; nY=function(w){var M,P,u;return((M=w.U.getVideoData(1).getPlayerResponse())==null?void 0:(P=M.playerConfig)==null?void 0:(u=P.daiConfig)==null?void 0:u.enableServerStitchedDai)||!1}; RLz=function(w){return w.U.N().D("html5_enable_vod_slar_with_notify_pacf")}; k74=function(w){return w.U.N().D("html5_recognize_predict_start_cue_point")}; F8=function(w){return w.U.N().experiments.nu("enable_desktop_player_underlay")}; R21=function(w){return w.U.N().experiments.nu("html5_load_empty_player_in_media_break_sub_lra")}; jI=function(w){return w.U.N().experiments.nu("html5_load_ads_instead_of_cue")}; CO=function(w){return w.U.N().experiments.nu("html5_preload_ads")}; n_x=function(w){return w.U.N().experiments.nu("should_ignore_cuepoints_during_lifa_preroll")}; Sb=function(w){return w.U.N().experiments.nu("enable_ads_control_flow_deterministic_id_generation")}; v_U=function(w){return w.U.N().experiments.nu("enable_desktop_discovery_video_abandon_pings")||g.$3(w.U.N())}; scx=function(w){return w.U.N().experiments.nu("enable_progres_commands_lr_feeds")}; v8=function(w){return w.U.N().experiments.nu("html5_cuepoint_identifier_logging")}; Ac5=function(w){w=w.U.getVideoData(1);return!!w&&w.D("html5_preload_first_vod_video_ad")&&!w.isDaiEnabled()&&!w.isLivePlayback}; KT_=function(w){return w.U.N().experiments.nu("html5_ssdai_enable_media_end_cue_range")}; bux=function(w){switch(w){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; IuF=function(){g.wC.call(this);var w=this;this.B={};this.addOnDisposeCallback(function(){for(var M=g.G(Object.keys(w.B)),P=M.next();!P.done;P=M.next())delete w.B[P.value]})}; Py=function(){if(Aoz===null){Aoz=new IuF;ma(gT).L="b";var w=ma(gT),M=RL(w)=="h"||RL(w)=="b",P=!(iR(),!1);M&&P&&(w.G=!0,w.K=new ZHp)}return Aoz}; g_l=function(w,M,P){w.B[M]=P}; JoU=function(w){switch(w){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; uk=function(w,M,P){this.W3=w;this.U=M;this.EO=P;this.L=new Set;this.B=new Map;Py().subscribe("adactiveviewmeasurable",this.dH,this);Py().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Wf,this);Py().subscribe("adviewableimpression",this.UK,this);Py().subscribe("adaudioaudible",this.yA,this);Py().subscribe("adaudiomeasurable",this.Xu,this)}; $2=function(w,M,P){var u=P.IA,X=P.JW,U=P.listener,f=P.Kr;P=P.zL===void 0?!1:P.zL;if(w.B.has(M))X$("Unexpected registration of layout in LidarApi");else{if(f){if(w.L.has(f))return;w.L.add(f)}w.B.set(M,U);qK(iR().r7,"fmd",1);GCM(ma(gT),u);var h=P?M:void 0;g_l(Py(),M,{t3:function(){if(!X)return{};var c=w.U.getPresentingPlayerType(!0),Z;return(Z=w.U.getVideoData(c))!=null&&Z.isAd()?{currentTime:w.W3.get().getCurrentTimeSec(c,!1,h),duration:X,isPlaying:Xs(w.W3.get(),c).isPlaying(),isVpaid:!1,isYouTube:!0, volume:w.W3.get().isMuted()?0:w.W3.get().getVolume()/100}:{}}})}}; UA=function(w,M){w.B.has(M)?(w.B.delete(M),delete Py().B[M]):X$("Unexpected unregistration of layout in LidarApi")}; ro4=function(w,M){if(w.U.isLifaAdPlaying()){var P=w.U.UB(!0,!0);w.BO(M,P.width*.5*1.1,P.height*.25*1.1,P.width*.5*.9,P.height*.5*.9)}}; t_l=function(w,M,P){var u={};jcH(w,u,M,P);C7R(u);u.LACT=fX(function(){return NW().toString()}); u.VIS=fX(function(){return w.getVisibilityState().toString()}); u.SDKV="h.3.0";u.VOL=fX(function(){return w.isMuted()?"0":Math.round(w.getVolume()).toString()}); u.VED="";return u}; xAH=function(w,M){var P={};if(M||!w||!w.kind)return P;if(w.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||w.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!w.adTimeOffset||!w.adTimeOffset.offsetStartMilliseconds)return g.qU(Error("malformed AdPlacementConfig")),P;P.MIDROLL_POS=fX(Lj(Math.round(QG(w.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else P.MIDROLL_POS=fX(Lj("0"));return P}; fX=function(w){return{toString:function(){return w()}}}; Ou4=function(w,M,P){function u(h,c){(c=P[c])&&(U[h]=c)} function X(h,c){(c=P[c])&&(U[h]=f(c))} if(!P||g.SF(P))return w;var U=Object.assign({},w),f=M?encodeURIComponent:function(h){return h}; X("DV_VIEWABILITY","doubleVerifyViewability");X("IAS_VIEWABILITY","integralAdsViewability");X("MOAT_INIT","moatInit");X("MOAT_VIEWABILITY","moatViewability");u("GOOGLE_VIEWABILITY","googleViewability");u("VIEWABILITY","viewability");return U}; jcH=function(w,M,P,u){M.CPN=fX(function(){var X;(X=w.getVideoData(1))?X=X.clientPlaybackNonce:(g.Yq(Error("Video data is null.")),X=null);return X}); M.AD_MT=fX(function(){if(u!=null)var X=u;else{var U=P;w.N().D("html5_ssap_use_cpn_to_get_time")||(U=void 0);if(w.N().D("enable_h5_shorts_ad_fill_ad_mt_macro")||w.N().D("enable_desktop_discovery_pings_ad_mt_macro")||g.$3(w.N())){var f=w.getPresentingPlayerType(!0),h;X=((h=w.getVideoData(f))==null?0:h.isAd())?auu(w,f,U):0}else X=auu(w,2,U)}return wB2(X)}); M.MT=fX(function(){return wB2(w.getCurrentTime(1,!1))}); M.P_H=fX(function(){return w.oI().RQ().height.toString()}); M.P_W=fX(function(){return w.oI().RQ().width.toString()}); M.PV_H=fX(function(){return w.oI().getVideoContentRect().height.toString()}); M.PV_W=fX(function(){return w.oI().getVideoContentRect().width.toString()})}; wB2=function(w){return Math.round(Math.max(0,w*1E3)).toString()}; C7R=function(w){w.CONN=fX(Lj("0"));w.WT=fX(function(){return Date.now().toString()})}; auu=function(w,M,P){return P!==void 0?w.getCurrentTime(M,!1,P):w.getCurrentTime(M,!1)}; i1H=function(){}; M$5=function(w,M,P,u,X){var U,f,h,c,Z,S,H,p,F,E,y,q,d;g.n(function(l){switch(l.L){case 1:U=!!M.scrubReferrer;f=g.YO(M.baseUrl,Ou4(P,U,u));h={};if(!M.headers){l.M0(2);break}c=w.X();if(!c.B){Z=c.getValue();l.M0(3);break}return g.B(l,c.B,4);case 4:Z=l.B;case 3:S=Z;H=g.G(M.headers);for(p=H.next();!p.done;p=H.next())switch(F=p.value,F.headerType){case "VISITOR_ID":g.AR("VISITOR_DATA")&&(h["X-Goog-Visitor-Id"]=g.AR("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.AR("EOM_VISITOR_DATA")&&(h["X-Goog-EOM-Visitor-Id"]= g.AR("EOM_VISITOR_DATA"));break;case "USER_AUTH":S&&(h.Authorization="Bearer "+S);break;case "PLUS_PAGE_ID":(E=w.G())&&(h["X-Goog-PageId"]=E);break;case "AUTH_USER":y=w.B();!S&&y&&(h["X-Goog-AuthUser"]=y);break;case "DATASYNC_ID":if(q=void 0,(q=w.C())==null?0:q.nu("enable_datasync_id_header_in_web_vss_pings"))d=w.L(),PF(f)&&g.AR("LOGGED_IN")&&d&&(h["X-YouTube-DataSync-Id"]=d)}"X-Goog-EOM-Visitor-Id"in h&&"X-Goog-Visitor-Id"in h&&delete h["X-Goog-Visitor-Id"];case 2:g.Ld(f,void 0,U,Object.keys(h).length!== 0?h:void 0,"",!0,X),g.yx(l)}})}; PSM=function(w,M,P,u,X){this.X=w;this.G=M;this.B=P;this.L=u;this.C=X}; uCy=function(w,M){this.B=w;this.EO=M}; Wy=function(w,M,P,u,X,U,f){var h=h===void 0?new PSM(function(){var c=w.N(),Z=w.getVideoData(1);return g.E_(c,Z?g.Op(Z):"")},function(){return w.N().pageId},function(){return w.N().mN},function(){var c; return(c=w.N().datasyncId)!=null?c:""},function(){return w.N().experiments}):h; this.U=w;this.L=M;this.Bj=P;this.D3=u;this.eK=X;this.EO=U;this.n9=f;this.X=h;this.QI=null;this.B=new Map;this.C=new uCy(h,this.EO)}; $wx=function(w,M,P,u,X){var U=rZ(w.L.get(),P);U?(P=ST(w,XB1(U),U,void 0,void 0,u),M.hasOwnProperty("baseUrl")?w.X.send(M,P):w.C.send(M,P,{},X)):X$("Trying to ping from an unknown layout",void 0,void 0,{layoutId:P})}; QxR=function(w,M,P,u,X,U){u=u===void 0?[]:u;var f=rZ(w.L.get(),M);if(f){var h=w.Bj.get().Zq(M,P),c=ST(w,XB1(f),f,X,U);u.forEach(function(Z,S){Z.baseUrl&&(w.C.send(Z.baseUrl,c,h,Z.attributionSrcMode),Z.serializedAdPingMetadata&&w.eK.I8("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,f,new S7x(Z,S),void 0,void 0,f.adLayoutLoggingData))})}else X$("Trying to track from an unknown layout.",void 0,void 0,{layoutId:M, trackingType:P})}; $C=function(w,M){w.U.sendVideoStatsEngageEvent(M,void 0,2)}; Sa=function(w,M){g.ub("adsClientStateChange",M)}; Uwp=function(w,M){w.B.has(M.Yh())?X$("Trying to register an existing AdErrorInfoSupplier."):w.B.set(M.Yh(),M)}; fLR=function(w,M){w.B.delete(M.Yh())||X$("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Fn=function(w,M,P){typeof P==="string"?w.U.getVideoData(1).yj(M,P):w.U.getVideoData(1).II(M,P)}; XB1=function(w){var M=Af(w.clientMetadata,"metadata_type_ad_placement_config");w=Af(w.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:M,z$:w}}; ST=function(w,M,P,u,X,U){var f=P?Wp2(w):{},h=P?hrM(w,P.layoutId):{},c=cj2(w),Z,S=X!=null?X:(Z=LO(w.D3.get(),2))==null?void 0:Z.clientPlaybackNonce;X=void 0;if(P){var H;if((H=w.n9.B.get(P.layoutId))==null?0:H.zL)X=P.layoutId}H={};w=Object.assign({},t_l(w.U,X,u),xAH(M.adPlacementConfig,(P==null?void 0:P.renderingContent)!==void 0),h,f,c,(H.FINAL=fX(function(){return"1"}),H.AD_CPN=fX(function(){return S||""}),H)); (P==null?void 0:P.renderingContent)!==void 0||(w.SLOT_POS=fX(function(){return(M.z$||0).toString()})); P={};U=Object.assign({},w,U);w=g.G(Object.values(Z1x));for(u=w.next();!u.done;u=w.next())u=u.value,f=U[u],f!=null&&f.toString()!=null&&(P[u]=f.toString());return P}; Wp2=function(w){var M={},P,u=(P=w.QI)==null?void 0:P.IY/1E3;u!=null&&(M.SURVEY_ELAPSED_MS=fX(function(){return Math.round(u*1E3).toString()})); M.SURVEY_LOCAL_TIME_EPOCH_S=fX(function(){return Math.round(Date.now()/1E3).toString()}); return M}; hrM=function(w,M){w=w.B.get(M);if(!w)return{};w=w.x7();if(!w)return{};M={};return M.YT_ERROR_CODE=w.bV.toString(),M.ERRORCODE=w.b8.toString(),M.ERROR_MSG=w.errorMessage,M}; cj2=function(w){var M={},P=w.U.getVideoData(1);M.ASR=fX(function(){var u;return(u=P==null?void 0:P.MM)!=null?u:null}); M.EI=fX(function(){var u;return(u=P==null?void 0:P.eventId)!=null?u:null}); return M}; hp=function(w,M,P){g.v.call(this);this.U=w;this.qx=M;this.EO=P;this.listeners=[];this.Wa=null;this.Zp=new Map;M=new g.V2(this);g.b(this,M);M.Y(w,"videodatachange",this.mfN);M.Y(w,"serverstitchedvideochange",this.iTW);this.fl=LO(this)}; LO=function(w,M){var P=w.U.getVideoData(M);return P?w.Bt(P,M||w.U.getPresentingPlayerType(!0)):null}; SlR=function(w,M,P){var u=w.Bt(M,P);w.fl=u;w.listeners.forEach(function(X){X.J1(u)})}; H1F=function(w){switch(w){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; cy=function(w,M,P){g.v.call(this);this.U=w;this.D3=M;this.EO=P;this.listeners=[];this.Nh=[];this.B=function(){X$("Called 'doUnlockPreroll' before it's initialized.")}; M=new yh(this);P=new g.V2(this);g.b(this,P);g.b(this,M);M.Y(w,"progresssync",this.yzk);M.Y(w,"presentingplayerstatechange",this.ziI);M.Y(w,"fullscreentoggled",this.onFullscreenToggled);M.Y(w,"onVolumeChange",this.onVolumeChange);M.Y(w,"minimized",this.FJ);M.Y(w,"overlayvisibilitychange",this.Qq);M.Y(w,"shortsadswipe",this.jA);M.Y(w,"resize",this.o9);P.Y(w,g.AP("appad"),this.gg)}; ZD=function(w){MO(w.EO.get())||w.B()}; pB2=function(w,M){w.Nh=w.Nh.filter(function(P){return P!==M})}; SN=function(w,M,P){return w.getCurrentTimeSec(M,P)}; Hy=function(w,M){var P;M=(P=w.D3.get().Zp.get(M))!=null?P:null;if(M===null)return X$("Expected ad video start time on playback timeline"),0;w=w.U.getCurrentTime(2,!0);return w0){var U=M.end.toString();X.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&f.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&f.adTimeOffset&&f.adTimeOffset.offsetEndMilliseconds==="-1"&&f.adTimeOffset.offsetEndMilliseconds!==U&&(f.adTimeOffset.offsetEndMilliseconds=U)}); u.map(function(f){return g.A(f,is)}).forEach(function(f){var h; (f=f==null?void 0:(h=f.slotEntryTrigger)==null?void 0:h.mediaTimeRangeTrigger)&&f.offsetEndMilliseconds==="-1"&&(f.offsetEndMilliseconds=U)})}return{Tl:X, adSlots:u,Hm:!1,ssdaiAdsConfig:w.ssdaiAdsConfig}}; Vr=function(w){g.v.call(this);this.U=w;this.listeners=[];this.B=new yh(this);g.b(this,this.B);this.B.Y(this.U,"aduxclicked",this.onAdUxClicked);this.B.Y(this.U,"aduxmouseover",this.Nn);this.B.Y(this.U,"aduxmouseout",this.i9);this.B.Y(this.U,"muteadaccepted",this.WNL)}; mw4=function(w,M,P){M=g.EV(M,function(u){return new b02(u,P,u.id)}); w.U.Vs("onAdUxUpdate",M)}; mw=function(w,M){w=g.G(w.listeners);for(var P=w.next();!P.done;P=w.next())M(P.value)}; oG=function(w,M){this.L=w;this.C=M===void 0?!1:M;this.B={}}; oo2=function(w,M){var P=w.startSecs+w.Xq;P=P<=0?null:P;if(P===null)return null;switch(w.event){case "start":case "continue":case "stop":break;case "predictStart":if(M)break;return null;default:return null}M=Math.max(w.startSecs,0);return{k8:new NB(M,P),EP:new uQ(M,P-M,w.context,w.identifier,w.event,w.B)}}; GG2=function(){this.B=[]}; Loy=function(w,M,P){var u=g.I$(w.B,M);if(u>=0)return M;M=-u-1;return M>=w.B.length||w.B[M]>P?null:w.B[M]}; GD=function(w,M,P){g.v.call(this);this.U=w;this.EO=M;this.FK=P;this.listeners=[];this.X=!1;this.bZ=[];this.B=null;this.G=new oG(this,k74(M.get()));this.C=new GG2;this.L=null}; yjx=function(w,M){w.bZ.push(M);for(var P=!1,u=g.G(w.listeners),X=u.next();!X.done;X=u.next())P=X.value.sI(M)||P;w.X=P;v8(w.EO.get())&&Fn(w.FK.get(),"onci","cpi."+M.identifier+";cpe."+M.event+";cps."+M.startSecs+";cbi."+P)}; qll=function(w,M){Sa(w.FK.get(),{cuepointTrigger:{event:Dwu(M.event),cuepointId:M.identifier,totalCueDurationMs:M.Xq*1E3,playheadTimeMs:M.B,cueStartTimeMs:M.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:w.U.getVideoData(1).clientPlaybackNonce}})}; Dwu=function(w){switch(w){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return Z7(w,"Unexpected cuepoint event")}}; yr=function(w){this.U=w}; DD=function(w){this.U=w}; Yl1=function(w){switch(w){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:Z7(w,"unknown transitionReason")}}; qO=function(){g.v.apply(this,arguments)}; zrl=function(w){this.U=w}; TJp=function(w,M,P,u,X){g.v.call(this);var U=this,f=Yk(function(){return new Zo(U.EO)}); g.b(this,f);var h=Yk(function(){return new H2(f,U.EO)}); g.b(this,h);var c=Yk(function(){return new gZ}); g.b(this,c);var Z=Yk(function(){return new IQ(w)}); g.b(this,Z);var S=Yk(function(){return new pm(f,h,U.EO)}); g.b(this,S);var H=Yk(function(){return new mY}); g.b(this,H);this.SK=Yk(function(){return new Vr(M)}); g.b(this,this.SK);this.XX=Yk(function(){return new TM(X)}); g.b(this,this.XX);this.Rv=Yk(function(){return new xP(M)}); g.b(this,this.Rv);this.Iv=Yk(function(){return new Ox(M)}); g.b(this,this.Iv);this.pT=Yk(function(){return new ap(M)}); g.b(this,this.pT);this.YA=Yk(function(){return new wB(M)}); g.b(this,this.YA);this.EO=Yk(function(){return new ik(M)}); g.b(this,this.EO);var p=Yk(function(){return new NO(u)}); g.b(this,p);var F=Yk(function(){return new an(U.EO)}); g.b(this,F);this.gO=Yk(function(){return new yr(M)}); g.b(this,this.gO);this.bE=Yk(function(){return new LD}); g.b(this,this.bE);this.D3=Yk(function(){return new hp(M,H,U.EO)}); g.b(this,this.D3);var E=CG({D3:this.D3,EO:this.EO,I7:F}),y=E.context,q=E.n9;this.eK=E.eK;this.Ya=Yk(function(){return new GD(M,U.EO,U.FK)}); g.b(this,this.Ya);this.LT=Yk(function(){return new DD(M)}); g.b(this,this.LT);this.W3=Yk(function(){return new cy(M,U.D3,U.EO)}); g.b(this,this.W3);this.Uq=Yk(function(){return new qO}); g.b(this,this.Uq);E=Yk(function(){return new B8(f,S,h,U.EO,F,"SLOT_TYPE_ABOVE_FEED",U.W3,U.LN,U.iC)}); g.b(this,E);this.o7=Yk(function(){return new ee(U.EO)}); this.Bj=Yk(function(){return new uk(U.W3,M,U.EO)}); g.b(this,this.Bj);this.FK=Yk(function(){return new Wy(M,c,U.Bj,U.D3,U.eK,U.EO,q)}); g.b(this,this.FK);this.D0=new KY(s2,Y2,function(l,e,R,I){return pY(h.get(),l,e,R,I)},Z,S,h,F,this.EO,this.D3); g.b(this,this.D0);this.mK=new bs(Z,E,P,this.EO,w,this.D3,this.W3,this.Rv);g.b(this,this.mK);var d=new tZ(M,this.mK,this.W3,this.D3,this.Ya);this.e7=Yk(function(){return d}); this.KE=d;this.LN=new RQ(Z,S,this.e7,this.Ya,this.W3,this.EO,this.FK,this.LT);g.b(this,this.LN);this.YD=new AX(Z,S,this.Iv,this.e7,y);g.b(this,this.YD);this.Cs=new wZ(this.EO,Z,S,E,this.D3,this.YD,P,this.pT);g.b(this,this.Cs);this.SA=Yk(function(){return new xk(p,h,F,U.EO,U.FK,U.W3,U.LT)}); g.b(this,this.SA);this.Cx=Yk(function(){return new OB}); g.b(this,this.Cx);this.vZ=new O2(w,this.SK,this.EO);g.b(this,this.vZ);this.tD=new aQ(w);g.b(this,this.tD);this.b_=new wE(w);g.b(this,this.b_);this.Tz=new M1(w,this.e7,y);g.b(this,this.Tz);this.zD=new P2(w,this.Iv,this.W3,this.D3,y);g.b(this,this.zD);this.qQ=new uF(w,this.D3);g.b(this,this.qQ);this.iC=new UD(w,this.Ya,this.W3,this.FK,this.e7);g.b(this,this.iC);this.XP=new Xx(w);g.b(this,this.XP);this.Ur=new c2(w);g.b(this,this.Ur);this.eH=new $T(w);g.b(this,this.eH);this.Co=new hk(w);g.b(this,this.Co); this.Ur=new c2(w);g.b(this,this.Ur);this.mM=Yk(function(){return new jL}); g.b(this,this.mM);this.OQ=Yk(function(){return new CY(U.W3)}); g.b(this,this.OQ);this.rE=Yk(function(){return new ifF(U.SK,U.FK,w,c,U.Bj)}); g.b(this,this.rE);this.JF=Yk(function(){return new kC(U.Cs,Z,f)}); g.b(this,this.JF);this.EQ=Yk(function(){return new vZ(U.EO,U.FK,U.XP,U.Bj)}); g.b(this,this.EQ);this.Gj=Yk(function(){return new yE(w,U.Ur,U.XP,U.D3,U.LT,U.W3,U.Uq,U.FK,H,U.Ya,U.Bj,U.o7,U.pT,U.Iv,U.Rv,U.YA,U.XX,U.gO,U.EO,c,y,q)}); g.b(this,this.Gj);this.ZE=Yk(function(){return new pzl(U.W3,U.FK,U.XX,U.EO,U.Bj,U.D3)}); g.b(this,this.ZE);this.AP=Yk(function(){return new Mll(U.SK,U.W3,U.FK,c,U.Bj,U.b_,U.Co,U.XX,U.EO,P)}); g.b(this,this.AP);this.X4=Yk(function(){return new MXy(U.SK,U.FK,c)}); g.b(this,this.X4);this.ir=new EA(w,this.bE,f);g.b(this,this.ir);this.hV={SN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Cs],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.LN],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.D0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mK],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.YD]]),Os:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SA],["SLOT_TYPE_ABOVE_FEED",this.Cx],["SLOT_TYPE_FORECASTING",this.Cx], ["SLOT_TYPE_IN_PLAYER",this.Cx],["SLOT_TYPE_PLAYER_BYTES",this.Cx],["SLOT_TYPE_PLAYER_UNDERLAY",this.Cx],["SLOT_TYPE_PLAYBACK_TRACKING",this.Cx],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Cx]]),zx:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.vZ],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.vZ],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.tD],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.tD],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.tD],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.tD],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.tD],["TRIGGER_TYPE_SLOT_ID_EXITED",this.tD],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.tD],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.tD],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.tD],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.tD],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.tD],["TRIGGER_TYPE_CLOSE_REQUESTED",this.b_],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Tz],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.zD],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.zD],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.zD],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zD],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zD],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.zD],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.zD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.qQ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.qQ],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.XP],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Tz],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eH],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Co],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ur],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.iC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.iC],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.iC],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.iC],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.iC]]),oi:new Map([["SLOT_TYPE_ABOVE_FEED",this.mM], ["SLOT_TYPE_AD_BREAK_REQUEST",this.mM],["SLOT_TYPE_FORECASTING",this.mM],["SLOT_TYPE_IN_PLAYER",this.mM],["SLOT_TYPE_PLAYER_BYTES",this.OQ],["SLOT_TYPE_PLAYER_UNDERLAY",this.mM],["SLOT_TYPE_PLAYBACK_TRACKING",this.mM],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.mM]]),Ii:new Map([["SLOT_TYPE_ABOVE_FEED",this.rE],["SLOT_TYPE_AD_BREAK_REQUEST",this.JF],["SLOT_TYPE_FORECASTING",this.EQ],["SLOT_TYPE_PLAYER_BYTES",this.Gj],["SLOT_TYPE_PLAYBACK_TRACKING",this.ZE],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.ZE],["SLOT_TYPE_IN_PLAYER",this.AP],["SLOT_TYPE_PLAYER_UNDERLAY",this.X4]])};this.listeners=[c.get()];this.DF={Cs:this.Cs,EB:this.EO.get(),Tk:this.XX.get(),LZ:this.W3.get(),mK:this.mK,GS:f.get(),sX:this.bE.get(),Jq:this.vZ,DY:c.get(),Bv:this.D3.get()}}; dwz=function(w,M,P,u,X){g.v.call(this);var U=this,f=Yk(function(){return new Zo(U.EO)}); g.b(this,f);var h=Yk(function(){return new H2(f,U.EO)}); g.b(this,h);var c=Yk(function(){return new gZ}); g.b(this,c);var Z=Yk(function(){return new IQ(w)}); g.b(this,Z);var S=Yk(function(){return new pm(f,h,U.EO)}); g.b(this,S);var H=Yk(function(){return new mY}); g.b(this,H);this.SK=Yk(function(){return new Vr(M)}); g.b(this,this.SK);this.XX=Yk(function(){return new TM(X)}); g.b(this,this.XX);this.Rv=Yk(function(){return new xP(M)}); g.b(this,this.Rv);this.Iv=Yk(function(){return new Ox(M)}); g.b(this,this.Iv);this.pT=Yk(function(){return new ap(M)}); g.b(this,this.pT);this.YA=Yk(function(){return new wB(M)}); g.b(this,this.YA);this.EO=Yk(function(){return new ik(M)}); g.b(this,this.EO);var p=Yk(function(){return new NO(u)}); g.b(this,p);var F=Yk(function(){return new an(U.EO)}); g.b(this,F);var E=Yk(function(){return new B8(f,S,h,U.EO,F,null,null,U.LN,U.iC)}); g.b(this,E);this.gO=Yk(function(){return new yr(M)}); g.b(this,this.gO);this.bE=Yk(function(){return new LD}); g.b(this,this.bE);this.D3=Yk(function(){return new hp(M,H,U.EO)}); g.b(this,this.D3);var y=CG({D3:this.D3,EO:this.EO,I7:F}),q=y.context,d=y.n9;this.eK=y.eK;this.Ya=Yk(function(){return new GD(M,U.EO,U.FK)}); this.W3=Yk(function(){return new cy(M,U.D3,U.EO)}); g.b(this,this.W3);this.Uq=Yk(function(){return new qO}); g.b(this,this.Uq);this.Bj=Yk(function(){return new uk(U.W3,M,U.EO)}); g.b(this,this.Bj);this.FK=Yk(function(){return new Wy(M,c,U.Bj,U.D3,U.eK,U.EO,d)}); g.b(this,this.FK);this.o7=Yk(function(){return new ee(U.EO)}); g.b(this,this.o7);this.D0=new KY(s2,Y2,function(e,R,I,w4){return pY(h.get(),e,R,I,w4)},Z,S,h,F,this.EO,this.D3); g.b(this,this.D0);this.mK=new bs(Z,E,P,this.EO,w,this.D3,this.W3,this.Rv);g.b(this,this.mK);var l=new tZ(M,this.mK,this.W3,this.D3,this.Ya);this.e7=Yk(function(){return l}); this.KE=l;this.LN=new RQ(Z,S,this.e7,this.Ya,this.W3,this.EO,this.FK);g.b(this,this.LN);this.YD=new AX(Z,S,this.Iv,this.e7,q);g.b(this,this.YD);this.Cs=new wZ(this.EO,Z,S,E,this.D3,this.YD,P,this.pT);g.b(this,this.Cs);this.SA=Yk(function(){return new xk(p,h,F,U.EO,U.FK,U.W3)}); g.b(this,this.SA);this.Cx=Yk(function(){return new OB}); g.b(this,this.Cx);this.vZ=new O2(w,this.SK,this.EO);g.b(this,this.vZ);this.tD=new aQ(w);g.b(this,this.tD);this.b_=new wE(w);g.b(this,this.b_);this.Tz=new M1(w,this.e7,q);g.b(this,this.Tz);this.zD=new P2(w,this.Iv,this.W3,this.D3,q);g.b(this,this.zD);this.XP=new Xx(w);g.b(this,this.XP);this.eH=new $T(w);g.b(this,this.eH);this.Co=new hk(w);g.b(this,this.Co);this.LT=Yk(function(){return new DD(M)}); g.b(this,this.LT);this.Ur=new c2(w);g.b(this,this.Ur);this.iC=new UD(w,this.Ya,this.W3,this.FK,this.e7);g.b(this,this.iC);this.mM=Yk(function(){return new jL}); g.b(this,this.mM);this.OQ=Yk(function(){return new CY(U.W3)}); g.b(this,this.OQ);this.JF=Yk(function(){return new kC(U.Cs,Z,f)}); g.b(this,this.JF);this.EQ=Yk(function(){return new vZ(U.EO,U.FK,U.XP,U.Bj)}); g.b(this,this.EQ);this.AP=Yk(function(){return new Pw2(U.SK,U.W3,U.FK,c,U.Bj,U.b_,U.Co,U.XX,U.EO,P)}); g.b(this,this.AP);this.Gj=Yk(function(){return new Dc(w,U.Ur,U.XP,U.FK,U.Bj,U.o7,U.pT,U.D3,U.W3,U.Uq,U.Iv,U.Rv,U.YA,U.XX,U.gO,U.EO,U.LT,q,d)}); g.b(this,this.Gj);this.ir=new EA(w,this.bE,f);g.b(this,this.ir);this.hV={SN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Cs],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.LN],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.D0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mK],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.YD]]),Os:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SA],["SLOT_TYPE_FORECASTING",this.Cx],["SLOT_TYPE_IN_PLAYER",this.Cx], ["SLOT_TYPE_PLAYER_BYTES",this.Cx]]),zx:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.vZ],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.tD],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.tD],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.tD],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.tD],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.tD],["TRIGGER_TYPE_SLOT_ID_EXITED",this.tD],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.tD],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.tD],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.tD], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.tD],["TRIGGER_TYPE_CLOSE_REQUESTED",this.b_],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Tz],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zD],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zD],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.zD],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.XP],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Tz],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eH],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.Co],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ur],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.iC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.iC],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.iC],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.iC],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.iC]]),oi:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.mM],["SLOT_TYPE_FORECASTING",this.mM],["SLOT_TYPE_IN_PLAYER",this.mM],["SLOT_TYPE_PLAYER_BYTES",this.OQ]]), Ii:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JF],["SLOT_TYPE_FORECASTING",this.EQ],["SLOT_TYPE_IN_PLAYER",this.AP],["SLOT_TYPE_PLAYER_BYTES",this.Gj]])};this.listeners=[c.get()];this.DF={Cs:this.Cs,EB:this.EO.get(),Tk:this.XX.get(),LZ:this.W3.get(),mK:this.mK,GS:f.get(),sX:this.bE.get(),Jq:this.vZ,DY:c.get(),Bv:this.D3.get()}}; lLl=function(w,M,P,u,X){g.v.call(this);var U=this,f=Yk(function(){return new Zo(U.EO)}); g.b(this,f);var h=Yk(function(){return new H2(f,U.EO)}); g.b(this,h);var c=Yk(function(){return new gZ}); g.b(this,c);var Z=Yk(function(){return new IQ(w)}); g.b(this,Z);var S=Yk(function(){return new pm(f,h,U.EO)}); g.b(this,S);var H=Yk(function(){return new mY}); g.b(this,H);this.SK=Yk(function(){return new Vr(M)}); g.b(this,this.SK);this.XX=Yk(function(){return new TM(X)}); g.b(this,this.XX);this.Rv=Yk(function(){return new xP(M)}); g.b(this,this.Rv);this.Iv=Yk(function(){return new Ox(M)}); g.b(this,this.Iv);this.pT=Yk(function(){return new ap(M)}); g.b(this,this.pT);this.YA=Yk(function(){return new wB(M)}); g.b(this,this.YA);this.EO=Yk(function(){return new ik(M)}); g.b(this,this.EO);var p=Yk(function(){return new NO(u)}); g.b(this,p);var F=Yk(function(){return new an(U.EO)}); g.b(this,F);var E=Yk(function(){return new B8(f,S,h,U.EO,F,null,null,null,null)}); g.b(this,E);this.gO=Yk(function(){return new yr(M)}); g.b(this,this.gO);this.D3=Yk(function(){return new hp(M,H,U.EO)}); g.b(this,this.D3);var y=CG({D3:this.D3,EO:this.EO,I7:F}),q=y.context,d=y.n9;this.eK=y.eK;this.W3=Yk(function(){return new cy(M,U.D3,U.EO)}); g.b(this,this.W3);this.Uq=Yk(function(){return new qO}); g.b(this,this.Uq);this.Bj=Yk(function(){return new uk(U.W3,M,U.EO)}); g.b(this,this.Bj);this.FK=Yk(function(){return new Wy(M,c,U.Bj,U.D3,U.eK,U.EO,d)}); g.b(this,this.FK);this.o7=Yk(function(){return new ee(U.EO)}); g.b(this,this.o7);this.D0=new KY(s2,Y2,function(e,R,I,w4){return pY(h.get(),e,R,I,w4)},Z,S,h,F,this.EO,this.D3); g.b(this,this.D0);this.mK=new bs(Z,E,P,this.EO,w,this.D3,this.W3,this.Rv);g.b(this,this.mK);var l=new tZ(M,this.mK,this.W3,this.D3);this.e7=Yk(function(){return l}); this.KE=l;this.YD=new AX(Z,S,this.Iv,this.e7,q);g.b(this,this.YD);this.Cs=new wZ(this.EO,Z,S,E,this.D3,this.YD,P,this.pT);g.b(this,this.Cs);this.SA=Yk(function(){return new xk(p,h,F,U.EO,U.FK,U.W3)}); g.b(this,this.SA);this.Cx=Yk(function(){return new OB}); g.b(this,this.Cx);this.vZ=new O2(w,this.SK,this.EO);g.b(this,this.vZ);this.tD=new aQ(w);g.b(this,this.tD);this.Tz=new M1(w,this.e7,q);g.b(this,this.Tz);this.zD=new P2(w,this.Iv,this.W3,this.D3,q);g.b(this,this.zD);this.XP=new Xx(w);g.b(this,this.XP);this.eH=new $T(w);g.b(this,this.eH);this.LT=Yk(function(){return new DD(M)}); g.b(this,this.LT);this.Ur=new c2(w);g.b(this,this.Ur);this.mM=Yk(function(){return new jL}); g.b(this,this.mM);this.OQ=Yk(function(){return new CY(U.W3)}); g.b(this,this.OQ);this.JF=Yk(function(){return new kC(U.Cs,Z,f)}); g.b(this,this.JF);this.EQ=Yk(function(){return new vZ(U.EO,U.FK,U.XP,U.Bj)}); g.b(this,this.EQ);this.pO=Yk(function(){return new Hf2(U.SK,U.W3,U.FK,c,P,U.EO)}); g.b(this,this.pO);this.Gj=Yk(function(){return new Dc(w,U.Ur,U.XP,U.FK,U.Bj,U.o7,U.pT,U.D3,U.W3,U.Uq,U.Iv,U.Rv,U.YA,U.XX,U.gO,U.EO,U.LT,q,d)}); g.b(this,this.Gj);this.hV={SN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Cs],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.D0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mK],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.YD]]),Os:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SA],["SLOT_TYPE_FORECASTING",this.Cx],["SLOT_TYPE_IN_PLAYER",this.Cx],["SLOT_TYPE_PLAYER_BYTES",this.Cx]]),zx:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.vZ],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.tD],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.tD],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.tD],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.tD],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.tD],["TRIGGER_TYPE_SLOT_ID_EXITED",this.tD],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.tD],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.tD],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.tD],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Tz],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zD],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.zD],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.XP],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Tz],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eH],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ur]]),oi:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.mM],["SLOT_TYPE_ABOVE_FEED",this.mM],["SLOT_TYPE_FORECASTING",this.mM],["SLOT_TYPE_IN_PLAYER",this.mM],["SLOT_TYPE_PLAYER_BYTES",this.OQ]]),Ii:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JF],["SLOT_TYPE_FORECASTING",this.EQ],["SLOT_TYPE_IN_PLAYER", this.pO],["SLOT_TYPE_PLAYER_BYTES",this.Gj]])};this.listeners=[c.get()];this.DF={Cs:this.Cs,EB:this.EO.get(),Tk:this.XX.get(),LZ:this.W3.get(),mK:this.mK,GS:f.get(),sX:null,Jq:this.vZ,DY:c.get(),Bv:this.D3.get()}}; Lpx=function(w,M,P,u,X){g.v.call(this);var U=this,f=Yk(function(){return new Zo(U.EO)}); g.b(this,f);var h=Yk(function(){return new H2(f,U.EO)}); g.b(this,h);var c=Yk(function(){return new gZ}); g.b(this,c);var Z=Yk(function(){return new IQ(w)}); g.b(this,Z);var S=Yk(function(){return new pm(f,h,U.EO)}); g.b(this,S);var H=Yk(function(){return new mY}); g.b(this,H);this.Ca=Yk(function(){return new zrl(M)}); g.b(this,this.Ca);this.SK=Yk(function(){return new Vr(M)}); g.b(this,this.SK);this.XX=Yk(function(){return new TM(X)}); g.b(this,this.XX);this.Rv=Yk(function(){return new xP(M)}); g.b(this,this.Rv);this.Iv=Yk(function(){return new Ox(M)}); g.b(this,this.Iv);this.pT=Yk(function(){return new ap(M)}); g.b(this,this.pT);this.YA=Yk(function(){return new wB(M)}); g.b(this,this.YA);this.EO=Yk(function(){return new ik(M)}); g.b(this,this.EO);var p=Yk(function(){return new NO(u)}); g.b(this,p);var F=Yk(function(){return new an(U.EO)}); g.b(this,F);var E=Yk(function(){return new B8(f,S,h,U.EO,F,null,null,null,null)}); g.b(this,E);this.gO=Yk(function(){return new yr(M)}); g.b(this,this.gO);this.D3=Yk(function(){return new hp(M,H,U.EO)}); g.b(this,this.D3);var y=CG({D3:this.D3,EO:this.EO,I7:F}),q=y.context,d=y.n9;this.eK=y.eK;this.W3=Yk(function(){return new cy(M,U.D3,U.EO)}); g.b(this,this.W3);this.Uq=Yk(function(){return new qO}); g.b(this,this.Uq);this.Bj=Yk(function(){return new uk(U.W3,M,U.EO)}); g.b(this,this.Bj);this.FK=Yk(function(){return new Wy(M,c,U.Bj,U.D3,U.eK,U.EO,d)}); g.b(this,this.FK);this.o7=Yk(function(){return new ee(U.EO)}); g.b(this,this.o7);this.D0=new KY(IMM,Y2,function(e,R,I,w4){return Zc4(h.get(),e,R,I,w4)},Z,S,h,F,this.EO,this.D3); g.b(this,this.D0);this.mK=new bs(Z,E,P,this.EO,w,this.D3,this.W3,this.Rv);g.b(this,this.mK);var l=new tZ(M,this.mK,this.W3,this.D3);this.e7=Yk(function(){return l}); this.KE=l;this.YD=new AX(Z,S,this.Iv,this.e7,q);g.b(this,this.YD);this.Cs=new wZ(this.EO,Z,S,E,this.D3,this.YD,P,this.pT);g.b(this,this.Cs);this.SA=Yk(function(){return new xk(p,h,F,U.EO,U.FK,U.W3)}); g.b(this,this.SA);this.Cx=Yk(function(){return new OB}); g.b(this,this.Cx);this.vZ=new O2(w,this.SK,this.EO);g.b(this,this.vZ);this.tD=new aQ(w);g.b(this,this.tD);this.Tz=new M1(w,this.e7,q);g.b(this,this.Tz);this.zD=new P2(w,this.Iv,this.W3,this.D3,q);g.b(this,this.zD);this.XP=new Xx(w);g.b(this,this.XP);this.eH=new $T(w);g.b(this,this.eH);this.LT=Yk(function(){return new DD(M)}); g.b(this,this.LT);this.Ur=new c2(w);g.b(this,this.Ur);this.mM=Yk(function(){return new jL}); g.b(this,this.mM);this.OQ=Yk(function(){return new CY(U.W3)}); g.b(this,this.OQ);this.JF=Yk(function(){return new kC(U.Cs,Z,f)}); g.b(this,this.JF);this.EQ=Yk(function(){return new vZ(U.EO,U.FK,U.XP,U.Bj)}); g.b(this,this.EQ);this.Gj=Yk(function(){return new Dc(w,U.Ur,U.XP,U.FK,U.Bj,U.o7,U.pT,U.D3,U.W3,U.Uq,U.Iv,U.Rv,U.YA,U.XX,U.gO,U.EO,U.LT,q,d)}); g.b(this,this.Gj);this.iY=Yk(function(){return new Xgl(U.SK,U.W3,U.FK,c,U.Ca,P,U.D3)}); g.b(this,this.iY);this.hV={SN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Cs],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.D0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mK],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.YD]]),Os:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SA],["SLOT_TYPE_FORECASTING",this.Cx],["SLOT_TYPE_IN_PLAYER",this.Cx],["SLOT_TYPE_PLAYER_BYTES",this.Cx]]),zx:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.vZ],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.tD],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.tD],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.tD],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.tD],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.tD],["TRIGGER_TYPE_SLOT_ID_EXITED",this.tD],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.tD],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.tD],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.tD],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Tz],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zD],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.zD],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.XP],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Tz],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eH],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ur]]),oi:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.mM],["SLOT_TYPE_FORECASTING",this.mM],["SLOT_TYPE_IN_PLAYER",this.mM],["SLOT_TYPE_PLAYER_BYTES",this.OQ]]),Ii:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JF],["SLOT_TYPE_FORECASTING",this.EQ],["SLOT_TYPE_IN_PLAYER",this.iY],["SLOT_TYPE_PLAYER_BYTES", this.Gj]])};this.listeners=[c.get()];this.DF={Cs:this.Cs,EB:this.EO.get(),Tk:this.XX.get(),LZ:this.W3.get(),mK:this.mK,GS:f.get(),sX:null,Jq:this.vZ,DY:c.get(),Bv:this.D3.get()}}; erU=function(w,M,P,u,X){g.v.call(this);var U=this,f=Yk(function(){return new Zo(U.EO)}); g.b(this,f);var h=Yk(function(){return new H2(f,U.EO)}); g.b(this,h);var c=Yk(function(){return new gZ}); g.b(this,c);var Z=Yk(function(){return new IQ(w)}); g.b(this,Z);var S=Yk(function(){return new pm(f,h,U.EO)}); g.b(this,S);var H=Yk(function(){return new mY}); g.b(this,H);this.Ca=Yk(function(){return new zrl(M)}); g.b(this,this.Ca);this.SK=Yk(function(){return new Vr(M)}); g.b(this,this.SK);this.XX=Yk(function(){return new TM(X)}); g.b(this,this.XX);this.Rv=Yk(function(){return new xP(M)}); g.b(this,this.Rv);this.Iv=Yk(function(){return new Ox(M)}); g.b(this,this.Iv);this.pT=Yk(function(){return new ap(M)}); g.b(this,this.pT);this.YA=Yk(function(){return new wB(M)}); g.b(this,this.YA);this.EO=Yk(function(){return new ik(M)}); g.b(this,this.EO);var p=Yk(function(){return new NO(u)}); g.b(this,p);var F=Yk(function(){return new an(U.EO)}); g.b(this,F);this.gO=Yk(function(){return new yr(M)}); g.b(this,this.gO);this.D3=Yk(function(){return new hp(M,H,U.EO)}); g.b(this,this.D3);var E=CG({D3:this.D3,EO:this.EO,I7:F}),y=E.context,q=E.n9;this.eK=E.eK;this.Ya=Yk(function(){return new GD(M,U.EO,U.FK)}); g.b(this,this.Ya);this.LT=Yk(function(){return new DD(M)}); g.b(this,this.LT);this.W3=Yk(function(){return new cy(M,U.D3,U.EO)}); g.b(this,this.W3);this.Uq=Yk(function(){return new qO}); g.b(this,this.Uq);E=Yk(function(){return new B8(f,S,h,U.EO,F,null,U.W3,U.LN,U.iC,3)}); g.b(this,E);this.o7=Yk(function(){return new ee(U.EO)}); this.Bj=Yk(function(){return new uk(U.W3,M,U.EO)}); g.b(this,this.Bj);this.FK=Yk(function(){return new Wy(M,c,U.Bj,U.D3,U.eK,U.EO,q)}); g.b(this,this.FK);this.mK=new bs(Z,E,P,this.EO,w,this.D3,this.W3,this.Rv);g.b(this,this.mK);var d=new tZ(M,this.mK,this.W3,this.D3,this.Ya);this.e7=Yk(function(){return d}); this.KE=d;this.D0=new KY(AF5,Y2,function(l,e,R,I){return Zc4(h.get(),l,e,R,I)},Z,S,h,F,this.EO,this.D3); g.b(this,this.D0);this.LN=new RQ(Z,S,this.e7,this.Ya,this.W3,this.EO,this.FK,this.LT);g.b(this,this.LN);this.YD=new AX(Z,S,this.Iv,this.e7,y);g.b(this,this.YD);this.Cs=new wZ(this.EO,Z,S,E,this.D3,this.YD,P,this.pT);g.b(this,this.Cs);this.SA=Yk(function(){return new xk(p,h,F,U.EO,U.FK,U.W3,U.LT)}); g.b(this,this.SA);this.Cx=Yk(function(){return new OB}); g.b(this,this.Cx);this.vZ=new O2(w,this.SK,this.EO);g.b(this,this.vZ);this.tD=new aQ(w);g.b(this,this.tD);this.Tz=new M1(w,this.e7,y);g.b(this,this.Tz);this.zD=new P2(w,this.Iv,this.W3,this.D3,y);g.b(this,this.zD);this.qQ=new uF(w,this.D3);g.b(this,this.qQ);this.iC=new UD(w,this.Ya,this.W3,this.FK,this.e7);g.b(this,this.iC);this.XP=new Xx(w);g.b(this,this.XP);this.eH=new $T(w);g.b(this,this.eH);this.Ur=new c2(w);g.b(this,this.Ur);this.mM=Yk(function(){return new jL}); g.b(this,this.mM);this.OQ=Yk(function(){return new CY(U.W3)}); g.b(this,this.OQ);this.JF=Yk(function(){return new kC(U.Cs,Z,f)}); g.b(this,this.JF);this.EQ=Yk(function(){return new vZ(U.EO,U.FK,U.XP,U.Bj)}); g.b(this,this.EQ);this.Gj=Yk(function(){return new yE(w,U.Ur,U.XP,U.D3,U.LT,U.W3,U.Uq,U.FK,H,U.Ya,U.Bj,U.o7,U.pT,U.Iv,U.Rv,U.YA,U.XX,U.gO,U.EO,c,y,q)}); g.b(this,this.Gj);this.AP=Yk(function(){return new $Hz(U.SK,U.W3,U.FK,c,U.Ca,P,U.EO,U.D3)}); g.b(this,this.AP);this.hV={SN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Cs],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.LN],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.D0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mK],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.YD]]),Os:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SA],["SLOT_TYPE_FORECASTING",this.Cx],["SLOT_TYPE_IN_PLAYER",this.Cx],["SLOT_TYPE_PLAYER_BYTES",this.Cx]]),zx:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.vZ],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.tD],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.tD],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.tD],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.tD],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.tD],["TRIGGER_TYPE_SLOT_ID_EXITED",this.tD],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.tD],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.tD],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.tD],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Tz],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.zD],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.qQ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.qQ],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.XP],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Tz],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eH],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ur],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.iC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.iC],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.iC],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.iC],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.iC]]),oi:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.mM],["SLOT_TYPE_FORECASTING",this.mM],["SLOT_TYPE_IN_PLAYER",this.mM],["SLOT_TYPE_PLAYER_BYTES",this.OQ]]),Ii:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JF],["SLOT_TYPE_FORECASTING",this.EQ],["SLOT_TYPE_PLAYER_BYTES",this.Gj],["SLOT_TYPE_IN_PLAYER",this.AP]])};this.listeners=[c.get()]; this.DF={Cs:this.Cs,EB:this.EO.get(),Tk:this.XX.get(),LZ:this.W3.get(),mK:this.mK,GS:f.get(),sX:null,Jq:this.vZ,DY:c.get(),Bv:this.D3.get()}}; Qh1=function(w,M,P,u){function X(){return U.L} g.v.call(this);var U=this;w.N().experiments.nu("html5_dispose_of_manager_before_dependency")?(this.B=BJz(X,w,M,P,u),this.L=(new zM(this.B)).C(),g.b(this,this.L),g.b(this,this.B)):(this.B=BJz(X,w,M,P,u),g.b(this,this.B),this.L=(new zM(this.B)).C(),g.b(this,this.L))}; zD=function(w){return w.B.DF}; BJz=function(w,M,P,u,X){try{var U=M.N();if(g.fp(U))var f=new TJp(w,M,P,u,X);else if(g.c0(U))f=new dwz(w,M,P,u,X);else if(wD(U))f=new lLl(w,M,P,u,X);else if(g.LW(U))f=new Lpx(w,M,P,u,X);else if(g.jY(U))f=new erU(w,M,P,u,X);else throw new TypeError("Unknown web interface");return f}catch(h){return f=M.N(),X$("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:f.B.cplatform,interface:f.B.c,ukK:f.B.cver,T8K:f.B.ctheme,jc9:f.B.cplayer,eR3:f.playerStyle}),new NJH(w,M,P,u,X)}}; kGl=function(w){nf.call(this,w)}; RrH=function(w,M,P,u,X){Jw.call(this,w,{W:"div",T:"ytp-ad-timed-pie-countdown-container",J:[{W:"svg",T:"ytp-ad-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},J:[{W:"circle",T:"ytp-ad-timed-pie-countdown-background",Z:{r:"10",cx:"10",cy:"10"}},{W:"circle",T:"ytp-ad-timed-pie-countdown-inner",Z:{r:"5",cx:"10",cy:"10"}},{W:"circle",T:"ytp-ad-timed-pie-countdown-outer",Z:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",M,P,u,X);this.X=this.RI("ytp-ad-timed-pie-countdown-container");this.C=this.RI("ytp-ad-timed-pie-countdown-inner"); this.K=this.RI("ytp-ad-timed-pie-countdown-outer");this.L=Math.ceil(2*Math.PI*5);this.hide()}; no4=function(w,M,P,u,X,U){$r.call(this,w,{W:"div",T:"ytp-ad-action-interstitial",Z:{tabindex:"0"},J:[{W:"div",T:"ytp-ad-action-interstitial-background-container"},{W:"div",T:"ytp-ad-action-interstitial-slot",J:[{W:"div",T:"ytp-ad-action-interstitial-instream-info"},{W:"div",T:"ytp-ad-action-interstitial-card",J:[{W:"div",T:"ytp-ad-action-interstitial-image-container"},{W:"div",T:"ytp-ad-action-interstitial-headline-container"},{W:"div",T:"ytp-ad-action-interstitial-description-container"},{W:"div", T:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",M,P,u);this.P0=X;this.CJ=U;this.navigationEndpoint=this.B=this.skipButton=this.L=this.actionButton=null;this.eL=this.RI("ytp-ad-action-interstitial-instream-info");this.UO=this.RI("ytp-ad-action-interstitial-image-container");this.S=new Bz(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,"ytp-ad-action-interstitial-image");g.b(this,this.S);this.S.XK(this.UO);this.Cu=this.RI("ytp-ad-action-interstitial-headline-container"); this.K=new Aw(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,"ytp-ad-action-interstitial-headline");g.b(this,this.K);this.K.XK(this.Cu);this.Lu=this.RI("ytp-ad-action-interstitial-description-container");this.C=new Aw(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,"ytp-ad-action-interstitial-description");g.b(this,this.C);this.C.XK(this.Lu);this.iW=this.RI("ytp-ad-action-interstitial-background-container");this.OO=new Bz(this.api,this.layoutId,this.interactionLoggingClientData, this.Tk,"ytp-ad-action-interstitial-background",!0);g.b(this,this.OO);this.OO.XK(this.iW);this.jL=this.RI("ytp-ad-action-interstitial-action-button-container");this.slot=this.RI("ytp-ad-action-interstitial-slot");this.uC=this.RI("ytp-ad-action-interstitial-card");this.X=new yh;g.b(this,this.X);this.hide()}; vox=function(w){var M=g.fj("html5-video-player");M&&g.X6(M,"ytp-ad-display-override",w)}; IL_=function(w,M,P,u){$r.call(this,w,{W:"div",T:"ytp-ad-overlay-slot",J:[{W:"div",T:"ytp-ad-overlay-container"}]},"invideo-overlay",M,P,u);this.S=[];this.iW=this.Cu=this.X=this.jL=this.eL=null;this.OO=!1;this.K=null;this.Lu=0;w=this.RI("ytp-ad-overlay-container");this.UO=new wM(w,45E3,6E3,.3,.4);g.b(this,this.UO);this.C=sh5(this);g.b(this,this.C);this.C.XK(w);this.L=KpH(this);g.b(this,this.L);this.L.XK(w);this.B=b1p(this);g.b(this,this.B);this.B.XK(w);this.hide()}; sh5=function(w){var M=new g.XT({W:"div",T:"ytp-ad-text-overlay",J:[{W:"div",T:"ytp-ad-overlay-ad-info-button-container"},{W:"div",T:"ytp-ad-overlay-close-container",J:[{W:"button",T:"ytp-ad-overlay-close-button",J:[qo(AjR)]}]},{W:"div",T:"ytp-ad-overlay-title",pu:"{{title}}"},{W:"div",T:"ytp-ad-overlay-desc",pu:"{{description}}"},{W:"div",d$:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],pu:"{{displayUrl}}"}]});w.Y(M.RI("ytp-ad-overlay-title"),"click",function(P){TD(w,M.element,P)}); w.Y(M.RI("ytp-ad-overlay-link"),"click",function(P){TD(w,M.element,P)}); w.Y(M.RI("ytp-ad-overlay-close-container"),"click",w.SI);M.hide();return M}; KpH=function(w){var M=new g.XT({W:"div",d$:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],J:[{W:"div",T:"ytp-ad-overlay-ad-info-button-container"},{W:"div",T:"ytp-ad-overlay-close-container",J:[{W:"button",T:"ytp-ad-overlay-close-button",J:[qo(AjR)]}]},{W:"div",T:"ytp-ad-overlay-text-image",J:[{W:"img",Z:{src:"{{imageUrl}}"}}]},{W:"div",T:"ytp-ad-overlay-title",pu:"{{title}}"},{W:"div",T:"ytp-ad-overlay-desc",pu:"{{description}}"},{W:"div",d$:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], pu:"{{displayUrl}}"}]});w.Y(M.RI("ytp-ad-overlay-title"),"click",function(P){TD(w,M.element,P)}); w.Y(M.RI("ytp-ad-overlay-link"),"click",function(P){TD(w,M.element,P)}); w.Y(M.RI("ytp-ad-overlay-close-container"),"click",w.SI);w.Y(M.RI("ytp-ad-overlay-text-image"),"click",w.PmL);M.hide();return M}; b1p=function(w){var M=new g.XT({W:"div",T:"ytp-ad-image-overlay",J:[{W:"div",T:"ytp-ad-overlay-ad-info-button-container"},{W:"div",T:"ytp-ad-overlay-close-container",J:[{W:"button",T:"ytp-ad-overlay-close-button",J:[qo(AjR)]}]},{W:"div",T:"ytp-ad-overlay-image",J:[{W:"img",Z:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});w.Y(M.RI("ytp-ad-overlay-image"),"click",function(P){TD(w,M.element,P)}); w.Y(M.RI("ytp-ad-overlay-close-container"),"click",w.SI);M.hide();return M}; gol=function(w,M){if(M){var P=g.A(M,t7)||null;P==null?g.qU(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(M=g.fj("video-ads ytp-ad-module")||null,M==null?g.qU(Error("Could not locate the root ads container element to attach the ad info dialog.")):(w.Cu=new g.XT({W:"div",T:"ytp-ad-overlay-ad-info-dialog-container"}),g.b(w,w.Cu),w.Cu.XK(M),M=new I6(w.api,w.layoutId,w.interactionLoggingClientData,w.Tk,w.Cu.element,!1),g.b(w,M),M.init(On("ad-info-hover-text-button"),P,w.macros), w.K?(M.XK(w.K,0),M.subscribe("f",w.y9u,w),M.subscribe("e",w.FB,w),w.Y(w.K,"click",w.X3N),w.Y(g.fj("ytp-ad-button",M.element),"click",function(){var u;if(g.A((u=g.A(P.button,g.OG))==null?void 0:u.serviceEndpoint,O0H))w.OO=w.api.getPlayerState(1)===2,w.api.pauseVideo();else w.api.onAdUxClicked("ad-info-hover-text-button",w.layoutId)}),w.iW=M):g.qU(Error("Ad info button container within overlay ad was not present."))))}else g.Yq(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; rjx=function(w,M){if(JjM(w,dB)||w.api.isMinimized())return!1;var P=U4(M.title),u=U4(M.description);if(g.lA(P)||g.lA(u))return!1;w.createServerVe(w.C.element,M.trackingParams||null);w.C.updateValue("title",U4(M.title));w.C.updateValue("description",U4(M.description));w.C.updateValue("displayUrl",U4(M.displayUrl));M.navigationEndpoint&&g.kV(w.S,M.navigationEndpoint);w.C.show();w.UO.start();w.logVisibility(w.C.element,!0);w.Y(w.C.element,"mouseover",function(){w.Lu++}); return!0}; jhR=function(w,M){if(JjM(w,dB)||w.api.isMinimized())return!1;var P=U4(M.title),u=U4(M.description);if(g.lA(P)||g.lA(u))return!1;w.createServerVe(w.L.element,M.trackingParams||null);w.L.updateValue("title",U4(M.title));w.L.updateValue("description",U4(M.description));w.L.updateValue("displayUrl",U4(M.displayUrl));w.L.updateValue("imageUrl",Wu5(M.image));M.navigationEndpoint&&g.kV(w.S,M.navigationEndpoint);w.jL=M.imageNavigationEndpoint||null;w.L.show();w.UO.start();w.logVisibility(w.L.element,!0); w.Y(w.L.element,"mouseover",function(){w.Lu++}); return!0}; CSx=function(w,M){if(w.api.isMinimized())return!1;var P=hDU(M.image),u=P;P.width0?(M=new dM(w.api,w.B), M.XK(w.playerOverlay),g.b(w,M)):(w=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(M)),g.qU(w))}}else g.qU(Error("addCommonComponents() needs to be called before starting countdown."))}; $_A=function(w){function M(P){return{toString:function(){return P()}}} w.macros.SURVEY_LOCAL_TIME_EPOCH_S=M(function(){var P=new Date;return(Math.round(P.valueOf()/1E3)+-1*P.getTimezoneOffset()*60).toString()}); w.macros.SURVEY_ELAPSED_MS=M(function(){return(Date.now()-w.C).toString()})}; U_h=function(w,M,P,u,X){By.call(this,w,M,P,u,"survey-question-multi-select");this.Lu=X;this.noneOfTheAbove=null;this.submitEndpoints=[];this.K=null;this.hide()}; fUc=function(w,M,P){w.noneOfTheAbove=new izU(w.api,w.layoutId,w.interactionLoggingClientData,w.Tk);w.noneOfTheAbove.XK(w.answers);w.noneOfTheAbove.init(On("survey-none-of-the-above"),M,P)}; hRt=function(w){w.L.forEach(function(M){M.B.toggleButton(!1)}); Wyt(w,!0)}; Wyt=function(w,M){var P=w.X;w=cHt(w);M=M===void 0?!1:M;P.B&&(w?P.B.hide():P.B.show(),M&&P.B instanceof Zk&&!P.B.X&&UZF(P.B,!1));P.L&&(w?P.L.show():P.L.hide())}; cHt=function(w){return w.L.some(function(M){return M.B.isToggled()})||w.noneOfTheAbove.button.isToggled()}; Qr=function(w,M,P,u,X){By.call(this,w,M,P,u,"survey-question-single-select",function(f){U.api.N().D("supports_multi_step_on_desktop")&&X([f])}); var U=this;this.hide()}; k2=function(w,M,P,u){$r.call(this,w,{W:"div",T:"ytp-ad-survey",J:[{W:"div",T:"ytp-ad-survey-questions"}]},"survey",M,P,u);this.questions=[];this.L=[];this.conditioningRules=[];this.B=0;this.K=this.RI("ytp-ad-survey-questions");this.api.N().D("fix_survey_color_contrast_on_destop")&&this.RI("ytp-ad-survey").classList.add("color-contrast-fix");this.api.N().D("web_enable_speedmaster")&&this.RI("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; Hzx=function(w,M){var P=w.L[M],u;(u=w.C)==null||u.dispose();g.A(P,jJ)?Zzj(w,g.A(P,jJ),w.macros):g.A(P,ru)&&S1A(w,g.A(P,ru),w.macros);w.B=M}; Zzj=function(w,M,P){var u=new Qr(w.api,w.layoutId,w.interactionLoggingClientData,w.Tk,w.X.bind(w));u.XK(w.K);u.init(On("survey-question-single-select"),M,P);w.api.N().D("supports_multi_step_on_desktop")?w.C=u:w.questions.push(u);g.b(w,u)}; S1A=function(w,M,P){var u=new U_h(w.api,w.layoutId,w.interactionLoggingClientData,w.Tk,w.X.bind(w));u.XK(w.K);u.init(On("survey-question-multi-select"),M,P);w.api.N().D("supports_multi_step_on_desktop")?w.C=u:w.questions.push(u);g.b(w,u)}; RG=function(w,M,P,u){$r.call(this,w,{W:"div",T:"ytp-ad-survey-interstitial",J:[{W:"div",T:"ytp-ad-survey-interstitial-contents",J:[{W:"div",T:"ytp-ad-survey-interstitial-logo",J:[{W:"div",T:"ytp-ad-survey-interstitial-logo-image"}]},{W:"div",T:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",M,P,u);this.B=this.actionButton=null;this.interstitial=this.RI("ytp-ad-survey-interstitial");this.L=this.RI("ytp-ad-survey-interstitial-contents");this.text=this.RI("ytp-ad-survey-interstitial-text"); this.logoImage=this.RI("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Cf(this,500,!1,300);g.b(this,this.transition)}; p5E=function(w,M){M=M&&eX(M)||"";if(g.lA(M))g.Yq(Error("Found ThumbnailDetails without valid image URL"));else{var P=w.style;w=w.style.cssText;var u=document.implementation.createHTMLDocument("").createElement("DIV");u.style.cssText=w;w=v42(u.style);P.cssText=[w,'background-image:url("'+M+'");'].join("")}}; FyE=function(w){var M=g.fj("html5-video-player");M&&g.X6(M,"ytp-ad-display-override",w)}; nX=function(w,M,P,u,X,U){U=U===void 0?0:U;Jw.call(this,w,{W:"div",T:"ytp-preview-ad",J:[{W:"div",T:"ytp-preview-ad__text"}]},"preview-ad",M,P,u,X);var f=this;this.Lu=U;this.L=0;this.X=-1;this.C=this.RI("ytp-preview-ad__text");switch(this.Lu){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Cf(this,400,!1,100,function(){f.hide()}); g.b(this,this.transition);this.hide()}; vy=function(w,M,P,u){$r.call(this,w,{W:"img",T:"ytp-ad-avatar"},"ad-avatar",M,P,u);this.hide()}; EMA=function(w){switch(w.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; sA=function(w,M,P,u,X,U){X=X===void 0?!1:X;U=U===void 0?!1:U;$r.call(this,w,{W:"button",T:"ytp-ad-button-vm"},"ad-button",M,P,u);this.buttonText=this.buttonIcon=null;this.hide();this.B=X;this.L=U}; N4E=function(w,M,P,u,X){Jw.call(this,w,{W:"div",d$:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],J:[{W:"div",T:"ytp-ad-avatar-lockup-card__avatar_and_text_container",J:[{W:"div",T:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",M,P,u,X);this.startMilliseconds=0;this.adAvatar=new vy(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk);g.b(this,this.adAvatar);N3(this.element,this.adAvatar.element,0);this.headline=new yP(this.api,this.layoutId, this.interactionLoggingClientData,this.Tk);g.b(this,this.headline);this.headline.XK(this.RI("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new yP(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk);g.b(this,this.description);this.description.XK(this.RI("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new sA(this.api, this.layoutId,this.interactionLoggingClientData,this.Tk);g.b(this,this.adButton);this.adButton.XK(this.element);this.hide()}; KX=function(w,M,P,u){$r.call(this,w,{W:"button",T:"ytp-skip-ad-button",J:[{W:"div",T:"ytp-skip-ad-button__text"}]},"skip-button",M,P,u);var X=this;this.L=!1;this.X=this.RI("ytp-skip-ad-button__text");this.transition=new g.Cf(this,500,!1,100,function(){X.hide()}); g.b(this,this.transition);this.B=new wM(this.element,15E3,5E3,.5,.5,!0);g.b(this,this.B);this.hide()}; Vuc=function(w,M,P,u,X){Jw.call(this,w,{W:"div",T:"ytp-skip-ad"},"skip-ad",M,P,u,X);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.C=new KX(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk);g.b(this,this.C);this.C.XK(this.element);this.hide()}; bk=function(w,M,P,u){$r.call(this,w,{W:"div",T:"ytp-visit-advertiser-link"},"visit-advertiser-link",M,P,u);this.hide()}; IG=function(w,M,P,u,X){$r.call(this,w,{W:"div",T:"ytp-ad-player-overlay-layout",J:[{W:"div",T:"ytp-ad-player-overlay-layout__player-card-container"},{W:"div",T:"ytp-ad-player-overlay-layout__ad-info-container"},{W:"div",T:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{W:"div",T:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",M,P,u);this.L=X;this.Cu=this.RI("ytp-ad-player-overlay-layout__player-card-container");this.B=this.RI("ytp-ad-player-overlay-layout__ad-info-container"); this.S=this.RI("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Lu=this.RI("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; m_x=function(w,M,P,u){$r.call(this,w,{W:"div",T:"ytp-ad-grid-card-text",J:[{W:"div",T:"ytp-ad-grid-card-text__metadata",J:[{W:"div",T:"ytp-ad-grid-card-text__metadata__headline"},{W:"div",T:"ytp-ad-grid-card-text__metadata__description",J:[{W:"div",T:"ytp-ad-grid-card-text__metadata__description__line"},{W:"div",T:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{W:"div",T:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",M,P,u);this.headline=new yP(this.api,this.layoutId,this.interactionLoggingClientData, this.Tk);g.b(this,this.headline);this.headline.XK(this.RI("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new sA(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,!0);g.b(this,this.moreInfoButton);this.moreInfoButton.XK(this.RI("ytp-ad-grid-card-text__button"))}; Ap=function(w,M,P,u){$r.call(this,w,{W:"div",T:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",M,P,u);this.B=[]}; gB=function(w,M,P,u,X,U,f){Jw.call(this,w,U,f,M,P,u,X);this.playerProgressOffsetMs=0;this.L=!1}; oME=function(w){var M=g.fj("html5-video-player");M&&g.X6(M,"ytp-ad-display-override",w)}; Gpc=function(w,M,P,u,X){gB.call(this,w,M,P,u,X,{W:"div",T:"ytp-display-underlay-text-grid-cards",J:[{W:"div",T:"ytp-display-underlay-text-grid-cards__content_container",J:[{W:"div",T:"ytp-display-underlay-text-grid-cards__content_container__header",J:[{W:"div",T:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{W:"div",T:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{W:"div",T:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {W:"div",T:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Ap(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk);g.b(this,this.adGridCardCollection);this.adGridCardCollection.XK(this.RI("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new sA(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk);g.b(this,this.adButton);this.adButton.XK(this.RI("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.C=this.RI("ytp-display-underlay-text-grid-cards__content_container");this.X=this.RI("ytp-display-underlay-text-grid-cards__content_container__header")}; Jp=function(w,M,P,u){$r.call(this,w,{W:"div",T:"ytp-ad-details-line"},"ad-details-line",M,P,u);this.B=[];this.hide()}; rB=function(w,M,P,u){$r.call(this,w,{W:"div",T:"ytp-image-background",J:[{W:"img",T:"ytp-image-background-image"}]},"image-background",M,P,u);this.hide()}; yH3=function(w,M,P,u,X){Jw.call(this,w,{W:"svg",T:"ytp-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},J:[{W:"circle",T:"ytp-timed-pie-countdown__background",Z:{r:"10",cx:"10",cy:"10"}},{W:"circle",T:"ytp-timed-pie-countdown__inner",Z:{r:"5",cx:"10",cy:"10"}},{W:"circle",T:"ytp-timed-pie-countdown__outer",Z:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",M,P,u,X);this.C=this.RI("ytp-timed-pie-countdown__inner");this.L=Math.ceil(2*Math.PI*5);this.hide()}; jN=function(w,M,P,u){$r.call(this,w,{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout",Z:{tabindex:"0"},J:[{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content",J:[{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",J:[{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",M,P,u);this.L=null;this.X=this.RI("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.C=new yh;g.b(this,this.C);this.hide()}; D_E=function(w){var M=g.fj("html5-video-player");M&&g.X6(M,"ytp-ad-display-override",w)}; q1p=function(w){if(!w.adAvatar||!g.A(w.adAvatar,CX))return g.qU(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!w.headline)return g.qU(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!w.adBadge||!g.A(w.adBadge,tp))return g.qU(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!w.adButton||!g.A(w.adButton,x2))return g.qU(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!w.adInfoRenderer|| !g.A(w.adInfoRenderer,t7))return g.qU(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;w=w.durationMilliseconds||0;return typeof w!=="number"||w<=0?(g.qU(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+w)),!1):!0}; OA=function(w,M){M=M===void 0?2:M;g.wC.call(this);this.api=w;this.B=null;this.bB=new yh(this);g.b(this,this.bB);this.L=flx;this.bB.Y(this.api,"presentingplayerstatechange",this.xF);this.B=this.bB.Y(this.api,"progresssync",this.Ub);this.W9=M;this.W9===1&&this.Ub()}; aG=function(w,M,P){nf.call(this,w);this.api=w;this.Tk=M;this.components={};w=new g.r({W:"div",d$:["video-ads","ytp-ad-module"]});g.b(this,w);n7&&g.io(w.element,"ytp-ads-tiny-mode");this.X=new hr(w.element);g.b(this,this.X);g.bD(this.api,w.element,4);F8(P)&&(P=new g.r({W:"div",d$:["ytp-ad-underlay"]}),g.b(this,P),this.L=new hr(P.element),g.b(this,this.L),g.bD(this.api,P.element,0));g.b(this,RDx())}; Y1p=function(w,M){w=g.HT(w.components,M.id,null);w==null&&g.Yq(Error("Component not found for element id: "+M.id));return w||null}; zRV=function(w){g.D0.call(this,w);var M=this;this.L=null;this.created=!1;this.C=w.N().D("h5_use_refactored_get_ad_break")?new V_M(this.player):new jo(this.player);this.X=function(){if(M.L!=null)return M.L;var u=new Y9y({Jq:zD(M.B).Jq,Bv:zD(M.B).Bv,U:M.player,EB:zD(M.B).EB,FK:M.B.B.FK,DY:zD(M.B).DY,YA:M.B.B.YA});M.L=u.kF;return M.L}; this.B=new Qh1(this.player,this,this.C,this.X);g.b(this,this.B);var P=w.N();!cJ(P)||g.jY(P)||wD(P)||(g.b(this,new aG(w,zD(this.B).Tk,zD(this.B).EB)),g.b(this,new kGl(w)))}; T4V=function(w){w.created!==w.loaded&&X$("Created and loaded are out of sync")}; Lyx=function(w){g.D0.prototype.load.call(w);var M=zD(w.B).EB;try{w.player.getRootNode().classList.add("ad-created")}catch(c){X$(c instanceof Error?c:String(c))}var P=w.player.getVideoData(1),u=P&&P.videoId||"",X=P&&P.getPlayerResponse()||{},U=(X&&X.adPlacements||[]).map(function(c){return c.adPlacementRenderer}),f=((X==null?void 0:X.adSlots)||[]).map(function(c){return g.A(c,is)}); X=X.playerConfig&&X.playerConfig.daiConfig&&X.playerConfig.daiConfig.enableDai||!1;P&&P.dK();U=d_A(U,f,M,zD(w.B).GS);f=P&&P.clientPlaybackNonce||"";P=P&&P.DN||!1;if(UI(M,!0)&&P){var h;M={};(h=w.player.getVideoData())==null||h.II("p_cpb",(M.cc=f,M))}h=1E3*w.player.getDuration(1);lU3(w);w.B.B.KE.aY(f,h,P,U.RM,U.Xh,U.RM,X,u)}; lU3=function(w){var M,P;if(P=(M=w.player.getVideoData(1))==null||!M.DN)M=w.player.N(),P=cJ(M)&&!g.hP(M)&&M.playerStyle==="desktop-polymer";P&&(w=w.player.getInternalApi(),w.addEventListener("updateKevlarOrC3Companion",E1x),w.addEventListener("updateEngagementPanelAction",NK2),w.addEventListener("changeEngagementPanelVisibility",VPu),window.addEventListener("yt-navigate-start",o1x))}; w_=function(w,M){M===w.LH&&(w.LH=void 0)}; eRa=function(w){var M=zD(w.B).mK,P=M.X().cK("SLOT_TYPE_PLAYER_BYTES",1);M=LO(M.D3.get(),1).clientPlaybackNonce;var u=!1;P=g.G(P);for(var X=P.next();!X.done;X=P.next()){X=X.value;var U=X.slotType==="SLOT_TYPE_PLAYER_BYTES"&&X.slotEntryTrigger instanceof vo?X.slotEntryTrigger.SD:void 0;U&&U===M&&(u&&X$("More than 1 preroll playerBytes slot detected",X),u=!0)}u||ZD(zD(w.B).LZ)}; B4p=function(w){if(MO(zD(w.B).EB))return!0;var M="";w=g.G(zD(w.B).DY.L6.keys());for(var P=w.next();!P.done;P=w.next()){P=P.value;if(P.slotType==="SLOT_TYPE_PLAYER_BYTES"&&P.w$==="core")return!0;M+=P.slotType+" "}Math.random()<.01&&X$("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:M});return!1}; QFE=function(w){w=g.G(zD(w.B).DY.L6.values());for(var M=w.next();!M.done;M=w.next())if(M.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; KX5=function(w,M,P,u,X,U){P=P===void 0?[]:P;u=u===void 0?"":u;X=X===void 0?"":X;var f=zD(w.B).EB,h=w.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.dK();P=d_A(M,P,f,zD(w.B).GS);Jcp(zD(w.B).Cs,u,P.RM,P.Xh,M,X,U)}; d_A=function(w,M,P,u){M={RM:[],Xh:M};w=g.G(w);for(var X=w.next();!X.done;X=w.next())if((X=X.value)&&X.renderer!=null){var U=X.renderer;if(!P.U.N().D("html5_enable_vod_lasr_with_notify_pacf")){var f=void 0,h=void 0,c=void 0,Z=void 0,S=u;g.A((Z=U.sandwichedLinearAdRenderer)==null?void 0:Z.adVideoStart,eL)?(f=g.A((c=U.sandwichedLinearAdRenderer)==null?void 0:c.adVideoStart,eL),f=fg5(f,S),g.Lq(U.sandwichedLinearAdRenderer.adVideoStart,eL,f)):g.A((h=U.linearAdSequenceRenderer)==null?void 0:h.adStart,eL)&& (c=g.A((f=U.linearAdSequenceRenderer)==null?void 0:f.adStart,eL),f=fg5(c,S),g.Lq(U.linearAdSequenceRenderer.adStart,eL,f))}M.RM.push(X)}return M}; g.i9=function(w){if(typeof DOMParser!="undefined")return zL(new DOMParser,Bbl(w),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.Mg=function(w){g.v.call(this);this.callback=w;this.B=new F6(0,0,.4,0,.2,1,1,1);this.delay=new g.AK(this.next,window,this);g.b(this,this.delay)}; g.kpj=function(w){var M=w.N();return M.DX&&!M.C&&g.K7(M)?w.isEmbedsShortsMode()?(w=w.UB(),Math.min(w.width,w.height)>=315):!w.Jx():!1}; g.Pw=function(w){g.r.call(this,{W:"div",T:"ytp-more-videos-view",Z:{tabIndex:"-1"}});var M=this;this.api=w;this.L=!0;this.C=new g.V2(this);this.B=[];this.suggestionData=[];this.columns=this.containerWidth=this.V=this.X=this.scrollPosition=0;this.title=new g.r({W:"h2",T:"ytp-related-title",pu:"{{title}}"});this.previous=new g.r({W:"button",d$:["ytp-button","ytp-previous"],Z:{"aria-label":"Mostrar videos sugeridos anteriores"},J:[g.cz()]});this.j=new g.Mg(function(P){M.suggestions.element.scrollLeft= -P}); this.next=new g.r({W:"button",d$:["ytp-button","ytp-next"],Z:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},J:[g.ZI()]});g.b(this,this.C);this.K=w.N().X;g.b(this,this.title);this.title.XK(this.element);this.suggestions=new g.r({W:"div",T:"ytp-suggestions"});g.b(this,this.suggestions);this.suggestions.XK(this.element);g.b(this,this.previous);this.previous.XK(this.element);this.previous.listen("click",this.DM,this);g.b(this,this.j);RR3(this);g.b(this,this.next);this.next.XK(this.element);this.next.listen("click", this.Gu,this);this.C.Y(this.api,"appresize",this.o9);this.C.Y(this.api,"fullscreentoggled",this.Fu);this.C.Y(this.api,"videodatachange",this.onVideoDataChange);this.o9(this.api.oI().getPlayerSize());this.onVideoDataChange()}; RR3=function(w){for(var M={fM:0};M.fM<16;M={fM:M.fM},++M.fM){var P=new g.r({W:"a",T:"ytp-suggestion-link",Z:{href:"{{link}}",target:w.api.N().S,"aria-label":"{{aria_label}}"},J:[{W:"div",T:"ytp-suggestion-image"},{W:"div",T:"ytp-suggestion-overlay",Z:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},J:[{W:"div",T:"ytp-suggestion-title",pu:"{{title}}"},{W:"div",T:"ytp-suggestion-author",pu:"{{author_and_views}}"},{W:"div",Z:{"data-is-live":"{{is_live}}"},T:"ytp-suggestion-duration", pu:"{{duration}}"}]}]});g.b(w,P);var u=P.RI("ytp-suggestion-link");g.A1(u,"transitionDelay",M.fM/20+"s");w.C.Y(u,"click",function(X){return function(U){var f=X.fM;if(w.L){var h=w.suggestionData[f],c=h.sessionData;w.K&&w.api.D("web_player_log_click_before_generating_ve_conversion_params")?(w.api.logClick(w.B[f].element),f=h.eA(),h={},g.vV(w.api,h),f=g.p5(f,h),g.HH(f,w.api,U)):g.SZ(U,w.api,w.K,c||void 0)&&w.api.Hx(h.videoId,c,h.playlistId)}else U.preventDefault(),document.activeElement.blur()}}(M)); P.XK(w.suggestions.element);w.B.push(P);w.api.createServerVe(P.element,P)}}; nME=function(w){if(w.api.N().D("web_player_log_click_before_generating_ve_conversion_params"))for(var M=Math.floor(-w.scrollPosition/(w.X+8)),P=Math.min(M+w.columns,w.suggestionData.length)-1;M<=P;M++)w.api.logVisibility(w.B[M].element,!0)}; g.u9=function(w){var M=w.api.WZ()?32:16;M=w.V/2+M;w.next.element.style.bottom=M+"px";w.previous.element.style.bottom=M+"px";M=w.scrollPosition;var P=w.containerWidth-w.suggestionData.length*(w.X+8);g.X6(w.element,"ytp-scroll-min",M>=0);g.X6(w.element,"ytp-scroll-max",M<=P)}; sFA=function(w){for(var M=w.suggestionData.length,P=0;P>>0)+"_",X=0;return M}); H5("Symbol.iterator",function(w){if(w)return w;w=Symbol("Symbol.iterator");for(var M="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),P=0;P0&&P>0;)if(u[--P]!=M[--X])return!1;return X<=0}}); H5("Array.prototype.find",function(w){return w?w:function(M,P){return Zz_(this,M,P).o_}}); H5("Array.prototype.entries",function(w){return w?w:function(){return JH(this,function(M,P){return[M,P]})}}); H5("Array.prototype.keys",function(w){return w?w:function(){return JH(this,function(M){return M})}}); H5("String.prototype.startsWith",function(w){return w?w:function(M,P){var u=AH(this,M,"startsWith");M+="";var X=u.length,U=M.length;P=Math.max(0,Math.min(P|0,u.length));for(var f=0;f=U}}); H5("Number.isFinite",function(w){return w?w:function(M){return typeof M!=="number"?!1:!isNaN(M)&&M!==Infinity&&M!==-Infinity}}); H5("String.prototype.repeat",function(w){return w?w:function(M){var P=AH(this,null,"repeat");if(M<0||M>1342177279)throw new RangeError("Invalid count value");M|=0;for(var u="";M;)if(M&1&&(u+=P),M>>>=1)P+=P;return u}}); H5("Object.entries",function(w){return w?w:function(M){var P=[],u;for(u in M)E1(M,u)&&P.push([u,M[u]]);return P}}); H5("Array.from",function(w){return w?w:function(M,P,u){P=P!=null?P:function(h){return h}; var X=[],U=typeof Symbol!="undefined"&&Symbol.iterator&&M[Symbol.iterator];if(typeof U=="function"){M=U.call(M);for(var f=0;!(U=M.next()).done;)X.push(P.call(u,U.value,f++))}else for(U=M.length,f=0;f>>0;if(M===0)return 32;var P=0;(M&4294901760)===0&&(M<<=16,P+=16);(M&4278190080)===0&&(M<<=8,P+=8);(M&4026531840)===0&&(M<<=4,P+=4);(M&3221225472)===0&&(M<<=2,P+=2);(M&2147483648)===0&&P++;return P}}); H5("Number.isNaN",function(w){return w?w:function(M){return typeof M==="number"&&isNaN(M)}}); H5("Array.prototype.values",function(w){return w?w:function(){return JH(this,function(M,P){return P})}}); H5("Array.prototype.fill",function(w){return w?w:function(M,P,u){var X=this.length||0;P<0&&(P=Math.max(0,X+P));if(u==null||u>X)u=X;u=Number(u);u<0&&(u=Math.max(0,X+u));for(P=Number(P||0);P0&&P?P.repeat(Math.ceil(M/P.length)).substring(0,M):"")+u}}); H5("Array.prototype.findIndex",function(w){return w?w:function(M,P){return Zz_(this,M,P).cG}}); H5("Promise.prototype.finally",function(w){return w?w:function(M){return this.then(function(P){return Promise.resolve(M()).then(function(){return P})},function(P){return Promise.resolve(M()).then(function(){throw P; })})}}); H5("Math.imul",function(w){return w?w:function(M,P){M=Number(M);P=Number(P);var u=M&65535,X=P&65535;return u*X+((M>>>16&65535)*X+u*(P>>>16&65535)<<16>>>0)|0}}); H5("Math.sign",function(w){return w?w:function(M){M=Number(M);return M===0||isNaN(M)?M:M>0?1:-1}}); H5("WeakSet",function(w){function M(P){this.B=new WeakMap;if(P){P=g.G(P);for(var u;!(u=P.next()).done;)this.add(u.value)}} if(function(){if(!w||!Object.seal)return!1;try{var P=Object.seal({}),u=Object.seal({}),X=new w([P]);if(!X.has(P)||X.has(u))return!1;X.delete(P);X.add(u);return!X.has(P)&&X.has(u)}catch(U){return!1}}())return w; M.prototype.add=function(P){this.B.set(P,!0);return this}; M.prototype.has=function(P){return this.B.has(P)}; M.prototype.delete=function(P){return this.B.delete(P)}; return M}); H5("AggregateError",function(w){function M(P,u){u=Error(u);"stack"in u&&(this.stack=u.stack);this.errors=P;this.message=u.message} if(w)return w;g.V(M,Error);M.prototype.name="AggregateError";return M}); H5("Array.prototype.copyWithin",function(w){function M(P){P=Number(P);return P===Infinity||P===-Infinity?P:P|0} return w?w:function(P,u,X){var U=this.length;P=M(P);u=M(u);X=X===void 0?U:M(X);P=P<0?Math.max(U+P,0):Math.min(P,U);u=u<0?Math.max(U+u,0):Math.min(u,U);X=X<0?Math.max(U+X,0):Math.min(X,U);if(Pu;)--X in this?this[--P]=this[X]:delete this[--P];return this}}); H5("Int8Array.prototype.copyWithin",ju);H5("Uint8Array.prototype.copyWithin",ju);H5("Uint8ClampedArray.prototype.copyWithin",ju);H5("Int16Array.prototype.copyWithin",ju);H5("Uint16Array.prototype.copyWithin",ju);H5("Int32Array.prototype.copyWithin",ju);H5("Uint32Array.prototype.copyWithin",ju);H5("Float32Array.prototype.copyWithin",ju);H5("Float64Array.prototype.copyWithin",ju);H5("Array.prototype.at",function(w){return w?w:Cz}); H5("Int8Array.prototype.at",tH);H5("Uint8Array.prototype.at",tH);H5("Uint8ClampedArray.prototype.at",tH);H5("Int16Array.prototype.at",tH);H5("Uint16Array.prototype.at",tH);H5("Int32Array.prototype.at",tH);H5("Uint32Array.prototype.at",tH);H5("Float32Array.prototype.at",tH);H5("Float64Array.prototype.at",tH);H5("String.prototype.at",function(w){return w?w:Cz}); H5("Array.prototype.findLastIndex",function(w){return w?w:function(M,P){return S1R(this,M,P).cG}}); H5("Int8Array.prototype.findLastIndex",xM);H5("Uint8Array.prototype.findLastIndex",xM);H5("Uint8ClampedArray.prototype.findLastIndex",xM);H5("Int16Array.prototype.findLastIndex",xM);H5("Uint16Array.prototype.findLastIndex",xM);H5("Int32Array.prototype.findLastIndex",xM);H5("Uint32Array.prototype.findLastIndex",xM);H5("Float32Array.prototype.findLastIndex",xM);H5("Float64Array.prototype.findLastIndex",xM);H5("Number.parseInt",function(w){return w||parseInt});var IV,$V,p51;IV=IV||{};g.aF=this||self;$V="closure_uid_"+(Math.random()*1E9>>>0);p51=0;g.Sp(Ha,Error);Ha.prototype.name="CustomError";var eA5;var Gpp,VM,K5;Gpp=Array.prototype.indexOf?function(w,M){return Array.prototype.indexOf.call(w,M,void 0)}:function(w,M){if(typeof w==="string")return typeof M!=="string"||M.length!=1?-1:w.indexOf(M,0); for(var P=0;P=0;P--)if(P in w&&w[P]===M)return P;return-1}; g.tx=Array.prototype.forEach?function(w,M,P){Array.prototype.forEach.call(w,M,P)}:function(w,M,P){for(var u=w.length,X=typeof w==="string"?w.split(""):w,U=0;U=.3:this.Or>=.5};var TR={Yz0:0,GCu:1},d3x={NONE:0,Ch3:1,w_$:2};var RR4="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Vq.prototype.getValue=function(){return this.L}; g.V(m4,Vq);m4.prototype.C=function(w){this.L===null&&g.cT(this.X,w)&&(this.L=w)}; g.V(oK,Vq);oK.prototype.C=function(w){this.L===null&&typeof w==="number"&&(this.L=w)}; g.V(GR,Vq);GR.prototype.C=function(w){this.L===null&&typeof w==="string"&&(this.L=w)};yq.prototype.disable=function(){this.L=!1}; yq.prototype.enable=function(){this.L=!0}; yq.prototype.isEnabled=function(){return this.L}; yq.prototype.reset=function(){this.B={};this.L=!0;this.C={}};var I4=document,l6=window;var jFA=Pa(1,!0),KE=Pa(610401301,!1);Pa(899588437,!1);var C24=Pa(772657768,!1),tu4=Pa(513659523,!1),x_$=Pa(568333945,!1),IXU=Pa(1331761403,!1);Pa(651175828,!1);Pa(722764542,!1);Pa(748402145,!1);Pa(748402146,!1);Pa(555019702,!1);Pa(333098724,!1);Pa(2147483644,!1);Pa(2147483645,!1);Pa(2147483646,jFA);Pa(2147483647,!0);var bA=!!g.Mj("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var BT=String.prototype.trim?function(w){return w.trim()}:function(w){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(w)[1]},Uj1=/&/g,f4M=//g,hA_=/"/g,cxR=/'/g,ZC1=/\x00/g,$j5=/[\x00&<>"']/;var IK,Ozx=g.aF.navigator;IK=Ozx?Ozx.userAgentData||null:null;var C2U=globalThis.trustedTypes,Ou;ii.prototype.toString=function(){return this.B+""};ui.prototype.toString=function(){return this.B}; var OzH=new ui("about:invalid#zClosurez");var M4y=Uc("tel"),wwy=Uc("sms"),x_F=[Uc("data"),Uc("http"),Uc("https"),Uc("mailto"),Uc("ftp"),new $a(function(w){return/^[^:]*([/?#]|$)/.test(w)})],aUR=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;St.prototype.toString=function(){return this.B+""};NE.prototype.toString=function(){return this.B+""};yG.prototype.toString=function(){return this.B};var qE={};g.aUA=String.prototype.repeat?function(w,M){return w.repeat(M)}:function(w,M){return Array(M+1).join(w)};sc[" "]=function(){};var gS,P$,J64,waU,iC3,Mp$,Rj,n7,Pht;g.vM=jF();g.WI=IU1();g.Im=gd("Edge");g.Z1=g.Im||g.WI;gS=gd("Gecko")&&!(eF(g.RK(),"WebKit")&&!gd("Edge"))&&!(gd("Trident")||gd("MSIE"))&&!gd("Edge");g.h1=eF(g.RK(),"WebKit")&&!gd("Edge");P$=v1();J64=N3F();g.CB=EVp();waU=R7();iC3=gd("iPad");Mp$=gd("iPod");Rj=nQ();n7=eF(g.RK(),"KaiOS"); a:{var uEE="",XaU=function(){var w=g.RK();if(gS)return/rv:([^\);]+)(\)|;)/.exec(w);if(g.Im)return/Edge\/([\d\.]+)/.exec(w);if(g.WI)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(w);if(g.h1)return/WebKit\/(\S+)/.exec(w);if(g.vM)return/(?:Version)[ \/]?(\S+)/.exec(w)}(); XaU&&(uEE=XaU?XaU[1]:"");if(g.WI){var X0,$ja=g.aF.document;X0=$ja?$ja.documentMode:void 0;if(X0!=null&&X0>parseFloat(uEE)){Pht=String(X0);break a}}Pht=uEE}var GcF=Pht,mjz={};var JD,r$;g.$I=CE();JD=R7()||gd("iPod");r$=gd("iPad");g.sk=gM2();g.p3=t5();g.HN=xs()&&!nQ();var Bxu=!g.WI&&!xs();g.N=g.gq.prototype;g.N.clone=function(){return new g.gq(this.x,this.y)}; g.N.equals=function(w){return w instanceof g.gq&&JT(this,w)}; g.N.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.N.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.N.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.N.scale=function(w,M){this.x*=w;this.y*=typeof M==="number"?M:w;return this};g.N=g.rq.prototype;g.N.clone=function(){return new g.rq(this.width,this.height)}; g.N.aspectRatio=function(){return this.width/this.height}; g.N.isEmpty=function(){return!CQ(this)}; g.N.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.N.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.N.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.N.scale=function(w,M){this.width*=w;this.height*=typeof M==="number"?M:w;return this};xa.prototype.toString=function(){return this.B}; var tT={};new xa(tT,"");var qE2=/^[a-z][a-z\d-]*$/i,YEx="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),T3l="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),l4x=["action","formaction","href"];var B32={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.N=a7.prototype;g.N.vj=function(w){return u6(this.B,w)}; g.N.getElementsByTagName=function(w,M){return(M||this.B).getElementsByTagName(String(w))}; g.N.RI=function(w){return g.fj(w,this.B)}; g.N.setProperties=WS;g.N.createElement=function(w){return Za(this.B,w)}; g.N.appendChild=g.FU;g.N.append=function(w,M){nV4(wS(w),w,arguments,1)}; g.N.canHaveChildren=function(w){if(w.nodeType!=1)return!1;switch(w.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.N.removeNode=g.Vy;g.N.getChildren=function(w){return w.children!=void 0?w.children:Array.prototype.filter.call(w.childNodes,function(M){return M.nodeType==1})}; g.N.contains=g.mG;z6.prototype.now=function(){return 0}; z6.prototype.L=function(){return 0}; z6.prototype.C=function(){return 0}; z6.prototype.B=function(){return 0};g.V(dS,z6);dS.prototype.now=function(){return T6()&&l6.performance.now?l6.performance.now():z6.prototype.now.call(this)}; dS.prototype.L=function(){return T6()&&l6.performance.memory?l6.performance.memory.totalJSHeapSize||0:z6.prototype.L.call(this)}; dS.prototype.C=function(){return T6()&&l6.performance.memory?l6.performance.memory.usedJSHeapSize||0:z6.prototype.C.call(this)}; dS.prototype.B=function(){return T6()&&l6.performance.memory?l6.performance.memory.jsHeapSizeLimit||0:z6.prototype.B.call(this)};var LRM=function(){if(!g.aF.addEventListener||!Object.defineProperty)return!1;var w=!1,M=Object.defineProperty({},"passive",{get:function(){w=!0}}); try{var P=function(){}; g.aF.addEventListener("test",P,M);g.aF.removeEventListener("test",P,M)}catch(u){}return w}();var ypp=bC_("AnimationEnd"),VF=bC_("TransitionEnd");g.N=RU.prototype;g.N.getHeight=function(){return this.bottom-this.top}; g.N.clone=function(){return new RU(this.top,this.right,this.bottom,this.left)}; g.N.contains=function(w){return this&&w?w instanceof RU?w.left>=this.left&&w.right<=this.right&&w.top>=this.top&&w.bottom<=this.bottom:w.x>=this.left&&w.x<=this.right&&w.y>=this.top&&w.y<=this.bottom:!1}; g.N.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.N.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.N.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.N.scale=function(w,M){M=typeof M==="number"?M:w;this.left*=w;this.right*=w;this.top*=M;this.bottom*=M;return this};g.N=g.Kj.prototype;g.N.clone=function(){return new g.Kj(this.left,this.top,this.width,this.height)}; g.N.contains=function(w){return w instanceof g.gq?w.x>=this.left&&w.x<=this.left+this.width&&w.y>=this.top&&w.y<=this.top+this.height:this.left<=w.left&&this.left+this.width>=w.left+w.width&&this.top<=w.top&&this.top+this.height>=w.top+w.height}; g.N.getSize=function(){return new g.rq(this.width,this.height)}; g.N.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.N.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.N.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.N.scale=function(w,M){M=typeof M==="number"?M:w;this.left*=w;this.width*=w;this.top*=M;this.height*=M;return this};var Axu={};var tpp=BS(function(){var w=!1;try{var M=Object.defineProperty({},"passive",{get:function(){w=!0}}); g.aF.addEventListener("test",null,M)}catch(P){}return w});xjx.prototype.isVisible=function(){return XP(I4)===1};var J5p=$w(function(w){return typeof w==="number"}),gsy=$w(function(w){return typeof w==="string"}),r52=$w(function(w){return typeof w==="boolean"}),y5=$w(function(w){return w!=null&&typeof w==="object"&&typeof w.then==="function"}),GrU=$w(function(w){return typeof w==="function"}),UjE=$w(function(w){return!!w&&(typeof w==="object"||typeof w==="function")});var a4x={xdK:"allow-forms",eh0:"allow-modals",GzK:"allow-orientation-lock",DdN:"allow-pointer-lock",hhk:"allow-popups",O9s:"allow-popups-to-escape-sandbox",gbL:"allow-presentation",aqu:"allow-same-origin",QdN:"allow-scripts",wZI:"allow-top-navigation",jdW:"allow-top-navigation-by-user-activation"},PAR=BS(function(){return wT2()});var UK2=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");SA.prototype.xa=function(w,M,P){w=w+"//"+M+P;var u=c55(this)-P.length;if(u<0)return"";this.B.sort(function(Z,S){return Z-S}); P=null;M="";for(var X=0;X=c.length){u-=c.length;w+=c;M=this.C;break}P=P==null?U:P}}u="";P!=null&&(u=""+M+"trn="+P);return w+u};ow.prototype.setInterval=function(w,M){return l6.setInterval(w,M)}; ow.prototype.clearInterval=function(w){l6.clearInterval(w)}; ow.prototype.setTimeout=function(w,M){return l6.setTimeout(w,M)}; ow.prototype.clearTimeout=function(w){l6.clearTimeout(w)};var W9=void 0,ay,JT2=typeof TextDecoder!=="undefined",GRF,osH=typeof String.prototype.isWellFormed==="function",mKR=typeof TextEncoder!=="undefined";var z0_={},d2=null,Tdx=gS||g.h1||typeof g.aF.btoa=="function";var vsx=typeof Uint8Array!=="undefined",Bdz=!g.WI&&typeof btoa==="function",QK2=/[-_.]/g,L45={"-":"+",_:"/",".":"="},LS={};ly.prototype.isEmpty=function(){return this.B==null}; ly.prototype.sizeBytes=function(){var w=BO(this);return w?w.length:0}; var nsp;var sKH=void 0;var vO=typeof Symbol==="function"&&typeof Symbol()==="symbol",f4V=nS("jas",void 0,!0),pH=nS(void 0,"1oa"),lC=nS(void 0,Symbol()),WUa=nS(void 0,"0ub"),p1_=nS(void 0,"0ubs"),FG2=nS(void 0,"0ubsb"),DE2=nS(void 0,"0actk"),zB=nS("m_m","BxL",!0),NqF=nS(void 0,"vps"),hAj=nS();Math.max.apply(Math,g.L(Object.values({wwN:1,QEO:2,a0O:4,G1N:8,UrO:16,dz9:32,ucI:64,zAu:128,g6L:256,za9:512,QY$:1024,Z6s:2048,UzW:4096})));var bEU={pG:{value:0,configurable:!0,writable:!0,enumerable:!1}},K4H=Object.defineProperties,sV=vO?f4V:"pG",ie,cxA=[];by(cxA,7);ie=Object.freeze(cxA);var TB={},Ad={},ex2=Object.freeze({}),r2={};var CS=typeof g.aF.BigInt==="function"&&typeof g.aF.BigInt(0)==="bigint";var R9=$w(function(w){return CS?w>=ZCE&&w<=SEE:w[0]==="-"?jKU(w,HCV):jKU(w,paA)}),HCV=Number.MIN_SAFE_INTEGER.toString(),ZCE=CS?BigInt(Number.MIN_SAFE_INTEGER):void 0,paA=Number.MAX_SAFE_INTEGER.toString(),SEE=CS?BigInt(Number.MAX_SAFE_INTEGER):void 0;var KA_=typeof Uint8Array.prototype.slice==="function",aw=0,wx=0,Ef1;var Fv=typeof BigInt==="function"?BigInt.asIntN:void 0,WAp=typeof BigInt==="function"?BigInt.asUintN:void 0,GB=Number.isSafeInteger,hv=Number.isFinite,y0=Math.trunc,aN5=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Vt_={};var FUt={WM3:!0};var Q0;var mE1,oaz;var kLF=td(0),le={};s8.prototype.init=function(w,M,P,u){var X=u===void 0?{}:u;u=X.HL===void 0?!1:X.HL;X=X.wA===void 0?!1:X.wA;this.HL=u;this.wA=X;w&&(w=vR(w,this.wA),this.L=w.buffer,this.G=w.B,this.X=M||0,this.C=P!==void 0?this.X+P:this.L.length,this.B=this.X)}; s8.prototype.free=function(){this.clear();jG.length<100&&jG.push(this)}; s8.prototype.clear=function(){this.L=null;this.G=!1;this.B=this.C=this.X=0;this.HL=!1}; s8.prototype.reset=function(){this.B=this.X}; var jG=[];CH.prototype.free=function(){this.B.clear();this.L=this.X=-1;tE.length<100&&tE.push(this)}; CH.prototype.reset=function(){this.B.reset();this.C=this.B.B;this.L=this.X=-1}; var tE=[];var j7x,tt1;S5.prototype.length=function(){return this.B.length}; S5.prototype.end=function(){var w=this.B;this.B=[];return w};var GC=mk(),EVc=mk(),N3$=mk(),Vp$=mk(),mjC=mk(),oVV=mk(),Gc$=mk(),yxE=mk(),DjV=mk(),qEh=mk();oP.prototype.toJSON=function(){return KP(this)}; oP.prototype.PZ=function(w){return JSON.stringify(KP(this,w))}; oP.prototype.clone=function(){var w=this.q0,M=w[sV]|0;return gx(this,w,M)?Jv(this,w,!0):new this.constructor(Av(w,M,!1))}; oP.prototype[zB]=TB;oP.prototype.toString=function(){return this.q0.toString()};var $32=Dm(function(w,M,P,u,X){if(w.L!==2)return!1;O8(w,FK(M,u,P),X);return!0},XSl),U3z=Dm(function(w,M,P,u,X){if(w.L!==2)return!1; O8(w,FK(M,u,P),X);return!0},XSl),RP=Symbol(),dQ=Symbol(),e5=Symbol(),SSl=Symbol(),hcp=Symbol(),qs,Y8;var YEt=AA(function(w,M,P){if(w.L!==1)return!1;JA(M,P,JE(w.B));return!0},j5,yxE),zAV=AA(function(w,M,P){if(w.L!==1)return!1; w=JE(w.B);JA(M,P,w===0?void 0:w);return!0},j5,yxE),T3E=AA(function(w,M,P,u){if(w.L!==1)return!1; SG(M,P,u,JE(w.B));return!0},j5,yxE),dj3=AA(function(w,M,P){if(w.L!==0)return!1; JA(M,P,be(w.B));return!0},C9,oVV),l4t=AA(function(w,M,P){if(w.L!==0)return!1; w=be(w.B);JA(M,P,w===0?void 0:w);return!0},C9,oVV),LU3=AA(function(w,M,P,u){if(w.L!==0)return!1; SG(M,P,u,be(w.B));return!0},C9,oVV),eAa=AA(function(w,M,P){if(w.L!==0)return!1; JA(M,P,Iy(w.B));return!0},tA,Vp$),B3h=AA(function(w,M,P){if(w.L!==0)return!1; w=Iy(w.B);JA(M,P,w===0?void 0:w);return!0},tA,Vp$),Q$V=AA(function(w,M,P,u){if(w.L!==0)return!1; SG(M,P,u,Iy(w.B));return!0},tA,Vp$),kcE=AA(function(w,M,P){if(w.L!==1)return!1; JA(M,P,gY(w.B));return!0},function(w,M,P){M0U(w,P,hx1(M))},Gc$),RAU=gQ(function(w,M,P){if(w.L!==1&&w.L!==2)return!1; M=fH(M,M[sV]|0,P);if(w.L==2)for(P=Iy(w.B)>>>0,P=w.B.B+P;w.B.B>>0);return!0},function(w,M,P){M=HA(M); M!=null&&M!=null&&(Ns(w,P,0),p9(w.B,M))},mjC),Axp=AA(function(w,M,P){if(w.L!==0)return!1; JA(M,P,Iy(w.B));return!0},function(w,M,P){M=SM(M); M!=null&&(M=parseInt(M,10),Ns(w,P,0),OQF(w.B,M))},qEh);G6M.prototype.register=function(){sc(this)};g.V(aP,oP);aP.prototype.C=y1l([0,zAV,l4t,-2,B3h]);var lay={Z$9:1,Xy:2,R13:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};ecx.prototype.Sb=function(w){if(typeof w==="string"&&w.length!=0){var M=this.r7;if(M.L){w=w.split("&");for(var P=w.length-1;P>=0;P--){var u=w[P].split("="),X=decodeURIComponent(u[0]);u.length>1?(u=decodeURIComponent(u[1]),u=/^[0-9]+$/g.exec(u)?parseInt(u,10):u):u=1;(X=M.B[X])&&X.C(u)}}}};var cw=null;var XY=g.aF.performance,gVE=!!(XY&&XY.mark&&XY.measure&&XY.clearMarks),PY=BS(function(){var w;if(w=gVE){var M=M===void 0?window:M;if(cw===null){cw="";try{w="";try{w=M.top.location.hash}catch(u){w=M.location.hash}if(w){var P=w.match(/\bdeid=([\d,]+)/);cw=P?P[1]:""}}catch(u){}}M=cw;w=!!M.indexOf&&M.indexOf("1337")>=0}return w}); uR.prototype.disable=function(){this.B=!1;this.events!==this.L.google_js_reporting_queue&&(PY()&&g.tx(this.events,vfz),this.events.length=0)}; uR.prototype.start=function(w,M){if(!this.B)return null;var P=RcH()||k61();w=new nf2(w,M,P);M="goog_"+w.label+"_"+w.uniqueId+"_start";XY&&PY()&&XY.mark(M);return w}; uR.prototype.end=function(w){if(this.B&&typeof w.value==="number"){var M=RcH()||k61();w.duration=M-w.value;M="goog_"+w.label+"_"+w.uniqueId+"_end";XY&&PY()&&XY.mark(M);!this.B||this.events.length>2048||this.events.push(w)}};var sUy=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),NN=/#|$/,J15=/[?&]($|#)/;jUu.prototype.xM=function(w,M,P,u,X){X=X||this.gL;try{var U=new SA;U.B.push(1);U.L[1]=HO("context",w);M.error&&M.meta&&M.id||(M=new qN(YJ(M)));if(M.msg){var f=M.msg.substring(0,512);U.B.push(2);U.L[2]=HO("msg",f)}var h=M.meta||{};if(this.AB)try{this.AB(h)}catch(F){}if(u)try{u(h)}catch(F){}u=[h];U.B.push(3);U.L[3]=u;var c=W4u();if(c.L){var Z=c.L.url||"";U.B.push(4);U.L[4]=HO("top",Z)}var S={url:c.B.url||""};if(c.B.url){var H=g.UQ(c.B.url);var p=$J(H[1],null,H[3],H[4])}else p="";Z=[S,{url:p}];U.B.push(5); U.L[5]=Z;BSU(this.B,X,U,P)}catch(F){try{BSU(this.B,X,{context:"ecmserr",rctx:w,msg:YJ(F),url:c&&c.B.url},P)}catch(E){}}return this.Lz}; g.V(qN,QU5);var yj,Dt,G_=new uR;yj=new function(){var w="https:";l6&&l6.location&&l6.location.protocol==="http:"&&(w="http:");this.L=w;this.B=.01}; Dt=new jUu;l6&&l6.document&&(l6.document.readyState=="complete"?t0y():G_.B&&uy(l6,"load",function(){t0y()}));var aa2=Date.now(),BY=-1,L5=-1,fh5,Qj=-1,ec=!1;kJ.prototype.equals=function(w,M){return!!w&&(!(M===void 0?0:M)||this.volume==w.volume)&&this.C==w.C&&vS(this.B,w.B)&&!0};R4.prototype.vj=function(){return this.j}; R4.prototype.equals=function(w,M){return this.X.equals(w.X,M===void 0?!1:M)&&this.j==w.j&&vS(this.C,w.C)&&vS(this.K,w.K)&&this.B==w.B&&this.G==w.G&&this.L==w.L&&this.V==w.V};var Jxc={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Iv={md:"start",dR:"firstquartile",HP:"midpoint",R6:"thirdquartile",COMPLETE:"complete",ERROR:"error",ZU:"metric",PAUSE:"pause",Lr:"resume",I6:"skip",yl:"viewable_impression",bq:"mute",Cr:"unmute",Ud:"fullscreen",Wh:"exitfullscreen",mI:"bufferstart",Ed:"bufferfinish",Kh:"fully_viewable_audible_half_duration_impression",zw:"measurable_impression",q2:"abandon",Xv:"engagedview",Fv:"impression",Ch:"creativeview",ND:"loaded", qB9:"progress",CLOSE:"close",jQk:"collapse",QG3:"overlay_resize",wI3:"overlay_unmeasurable_impression",jG3:"overlay_unviewable_impression",uGk:"overlay_viewable_immediate_impression",TGK:"overlay_viewable_end_of_session_impression",M3:"custom_metric_viewable",fh:"audio_audible",Lh:"audio_measurable",Bh:"audio_impression"},V5l="start firstquartile midpoint thirdquartile resume loaded".split(" "),ms5=["start","firstquartile","midpoint","thirdquartile"],hM_=["abandon"],Wh={UNKNOWN:-1,md:0,dR:1,HP:2, R6:3,COMPLETE:4,ZU:5,PAUSE:6,Lr:7,I6:8,yl:9,bq:10,Cr:11,Ud:12,Wh:13,Kh:14,zw:15,q2:16,Xv:17,Fv:18,Ch:19,ND:20,M3:21,mI:22,Ed:23,Bh:27,Lh:28,fh:29};var iSH={yVu:"addEventListener",Tg9:"getMaxSize",utu:"getScreenSize",tAI:"getState",lvO:"getVersion",px0:"removeEventListener",jEu:"isViewable"};fdp.prototype.update=function(w){w&&w.document&&(this.j=n5(!1,w,this.isMobileDevice),this.B=n5(!0,w,this.isMobileDevice),hmy(this,w),Wa1(this,w))};ge.prototype.cancel=function(){Gd().clearTimeout(this.B);this.B=null}; ge.prototype.schedule=function(){var w=this,M=Gd(),P=iR().B.B;this.B=M.setTimeout(we(P,T_(143,function(){w.L++;w.C.sample()})),wO5())};g.N=Ja.prototype;g.N.YJ=function(){return!1}; g.N.initialize=function(){return this.isInitialized=!0}; g.N.uO=function(){return this.B.Cu}; g.N.Nw=function(){return this.B.B3}; g.N.fail=function(w,M){if(!this.B3||(M===void 0?0:M))this.B3=!0,this.Cu=w,this.V=0,this.B!=this||jc(this)}; g.N.getName=function(){return this.B.eL}; g.N.ww=function(){return this.B.Po()}; g.N.Po=function(){return{}}; g.N.nk=function(){return this.B.V}; g.N.B7=function(){var w=bR();w.B=n5(!0,this.C,w.isMobileDevice)}; g.N.LS=function(){Wa1(bR(),this.C)}; g.N.Uv=function(){return this.X.B}; g.N.sample=function(){}; g.N.isActive=function(){return this.B.K}; g.N.A2=function(w){var M=this.B;this.B=w.nk()>=this.V?w:this;M!==this.B?(this.K=this.B.K,jc(this)):this.K!==this.B.K&&(this.K=this.B.K,jc(this))}; g.N.Nc=function(w){if(w.L===this.B){var M=!this.X.equals(w,this.S);this.X=w;M&&SVU(this)}}; g.N.ud=function(){return this.S}; g.N.dispose=function(){this.ys=!0}; g.N.sO=function(){return this.ys};g.N=C5.prototype;g.N.observe=function(){return!0}; g.N.unobserve=function(){}; g.N.BO=function(w){this.G=w}; g.N.dispose=function(){if(!this.sO()){var w=this.L;g.D4(w.G,this);w.S&&this.ud()&&ZSp(w);this.unobserve();this.mN=!0}}; g.N.sO=function(){return this.mN}; g.N.ww=function(){return this.L.ww()}; g.N.nk=function(){return this.L.nk()}; g.N.uO=function(){return this.L.uO()}; g.N.Nw=function(){return this.L.Nw()}; g.N.A2=function(){}; g.N.Nc=function(){this.CH()}; g.N.ud=function(){return this.ys};g.N=ta.prototype;g.N.nk=function(){return this.B.nk()}; g.N.uO=function(){return this.B.uO()}; g.N.Nw=function(){return this.B.Nw()}; g.N.create=function(w,M,P){var u=null;this.B&&(u=this.d3(w,M,P),re(this.B,u));return u}; g.N.IV=function(){return this.Vd()}; g.N.Vd=function(){return!1}; g.N.init=function(w){return this.B.initialize()?(re(this.B,this),this.X=w,!0):!1}; g.N.A2=function(w){w.nk()==0&&this.X(w.uO(),this)}; g.N.Nc=function(){}; g.N.ud=function(){return!1}; g.N.dispose=function(){this.G=!0}; g.N.sO=function(){return this.G}; g.N.ww=function(){return{}};xJ.prototype.add=function(w,M,P){++this.C;w=new pO_(w,M,P);this.B.push(new pO_(w.L,w.B,w.C+this.C/4096));this.L=!0;return this};Nx2.prototype.toString=function(){var w="//pagead2.googlesyndication.com//pagead/gen_204",M=a4(this.B);M.length>0&&(w+="?"+M);return w};g.v.prototype.Y$=!1;g.v.prototype.sO=function(){return this.Y$}; g.v.prototype.dispose=function(){this.Y$||(this.Y$=!0,this.v3())}; g.v.prototype[Symbol.dispose]=function(){this.dispose()}; g.v.prototype.addOnDisposeCallback=function(w,M){this.Y$?M!==void 0?w.call(M):w():(this.DI||(this.DI=[]),M&&(w=w.bind(M)),this.DI.push(w))}; g.v.prototype.v3=function(){if(this.DI)for(;this.DI.length;)this.DI.shift()()};Mn.prototype.update=function(w,M,P){w&&(this.B+=M,this.L+=M,this.X+=M,this.C=Math.max(this.C,this.X));if(P===void 0?!w:P)this.X=0};var yvy=[1,.75,.5,.3,0];PD.prototype.update=function(w,M,P,u,X,U){U=U===void 0?!0:U;M=X?Math.min(w,M):M;for(X=0;X0&&M>=f;f=!(w>0&&w>=f)||P;this.B[X].update(U&&h,u,!U||f)}};WD.prototype.update=function(w,M,P,u){this.j=this.j!=-1?Math.min(this.j,M.Or):M.Or;this.Lu=Math.max(this.Lu,M.Or);this.mN=this.mN!=-1?Math.min(this.mN,M.Tj):M.Tj;this.Cu=Math.max(this.Cu,M.Tj);this.Z3.update(M.Tj,P.Tj,M.B,w,u);this.UO+=w;M.Or===0&&(this.eL+=w);this.L.update(M.Or,P.Or,M.B,w,u);P=u||P.Q2!=M.Q2?P.isVisible()&&M.isVisible():P.isVisible();M=!M.isVisible()||M.B;this.t9.update(P,w,M)}; WD.prototype.BR=function(){return this.t9.C>=this.iW};if(I4&&I4.URL){var rxV=I4.URL,j$h;if(j$h=!!rxV){var Ch4;a:{if(rxV){var tpc=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var ZX=tpc.exec(decodeURIComponent(rxV));if(ZX){Ch4=ZX[1]&&ZX[1].length>1?ZX[1].substring(1):"true";break a}}catch(w){}}Ch4=""}j$h=Ch4.length>0}Dt.Lz=!j$h};var xjt=new RU(0,0,0,0);var Lcz=new RU(0,0,0,0);g.V(HD,g.v);g.N=HD.prototype; g.N.v3=function(){if(this.Bw.B){if(this.JI.tb){var w=this.Bw.B;typeof w.removeEventListener==="function"&&w.removeEventListener("mouseover",this.JI.tb,PO());this.JI.tb=null}this.JI.u9&&(w=this.Bw.B,typeof w.removeEventListener==="function"&&w.removeEventListener("mouseout",this.JI.u9,PO()),this.JI.u9=null)}this.xw&&this.xw.dispose();this.Q_&&this.Q_.dispose();delete this.WX;delete this.G6;delete this.dn;delete this.Bw.Ey;delete this.Bw.B;delete this.JI;delete this.xw;delete this.Q_;delete this.r7; g.v.prototype.v3.call(this)}; g.N.jX=function(){return this.Q_?this.Q_.B:this.position}; g.N.Sb=function(w){iR().Sb(w)}; g.N.ud=function(){return!1}; g.N.mE=function(){return new WD}; g.N.k6=function(){return this.WX}; g.N.IR=function(w){return kBl(this,w,1E4)}; g.N.g$=function(w,M,P,u,X,U,f){this.bJ||(this.PS&&(w=this.EJ(w,P,X,f),u=u&&this.yO.Or>=(this.Q2()?.3:.5),this.lk(U,w,u),this.Cp=M,w.Or>0&&-1===this.nf&&(this.nf=M),this.H5==-1&&this.BR()&&(this.H5=M),this.FD==-2&&(this.FD=ZP(this.jX())?w.Or:-1),this.yO=w),this.G6(this))}; g.N.lk=function(w,M,P){this.k6().update(w,M,this.yO,P)}; g.N.Ze=function(){return new a$}; g.N.EJ=function(w,M,P,u){P=this.Ze();P.B=M;M=Gd().L;M=XP(I4)===0?-1:M.isVisible()?0:1;P.L=M;P.Or=this.g2(w);P.Q2=this.Q2();P.Tj=u;return P}; g.N.g2=function(w){return this.opacity===0&&Ys(this.r7,"opac")===1?0:w}; g.N.Q2=function(){return!1}; g.N.Xd=function(){return this.Mq||this.Wz}; g.N.Rz=function(){lR()}; g.N.Yz=function(){lR()}; g.N.H9=function(){return 0}; g.N.BR=function(){return this.WX.BR()}; g.N.k9=function(){var w=this.PS;w=(this.hasCompleted||this.sO())&&!w;var M=iR().L!==2||this.D8u;return this.bJ||M&&w?2:this.BR()?4:3}; g.N.AC=function(){return 0};g.Vl.prototype.next=function(){return g.S4}; g.S4={done:!0,value:void 0};g.Vl.prototype.Sx=function(){return this};g.V(bPy,a$);var Hw=Avx([void 0,1,2,3,4,8,16]),pT=Avx([void 0,4,8,16]),OCA={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:yl("p0",pT),p1:yl("p1",pT),p2:yl("p2",pT),p3:yl("p3",pT),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:GI("mtos1",[0,2,4],!1,pT),mtos2:GI("mtos2",[0,2,4],!1,pT),mtos3:GI("mtos3",[0,2,4],!1,pT),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:yl("a0",pT),a1:yl("a1",pT),a2:yl("a2",pT),a3:yl("a3",pT),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:yl("c0",pT),c1:yl("c1",pT),c2:yl("c2",pT),c3:yl("c3",pT),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:yl("qmtos",Hw),qnc:yl("qnc",Hw),qmv:yl("qmv",Hw),qnv:yl("qnv",Hw), 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:yl("ss0",pT),ss1:yl("ss1",pT),ss2:yl("ss2",pT),ss3:yl("ss3",pT),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"},a4t=Object.assign({},OCA,{avid:Lj("audio"),avas:"avas",vs:"vs"}),wTh={atos:"atos",avt:GI("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(w,M){return function(P){return P[w]===void 0&&M!==void 0?M:P[w]}}("ss",0), t:"t"};zI.prototype.getValue=function(){return this.L}; zI.prototype.update=function(w,M){w>=32||(this.B&1<=.5;sQ(M.volume)&&(this.X=this.X!=-1?Math.min(this.X,M.volume):M.volume,this.K=Math.max(this.K,M.volume));U&&(this.ys+=w,this.S+=X?w:0);this.B.update(M.Or,P.Or,M.B,w,u,X);this.C.update(!0,w);this.G.update(X,w);this.B3.update(P.fullscreen,w);this.bW.update(X&&!U,w);w=Math.floor(M.mediaTime/1E3);this.xu.update(w,M.isVisible());this.jL.update(w,M.Or>=1);this.Yu.update(w, ov(M))}};tMl.prototype.L=function(w){this.C||(this.B(w)?(w=Usy(this.S,this.X,w),this.G|=w,w=w==0):w=!1,this.C=w)};g.V(lZ,tMl);lZ.prototype.B=function(){return!0}; lZ.prototype.K=function(){return!1}; lZ.prototype.getId=function(){var w=this,M=ZN(Iv,function(P){return P==w.X}); return Wh[M].toString()}; lZ.prototype.toString=function(){var w="";this.K()&&(w+="c");this.C&&(w+="s");this.G>0&&(w+=":"+this.G);return this.getId()+w};g.V(L4,lZ);L4.prototype.L=function(w,M){M=M===void 0?null:M;M!=null&&this.j.push(M);lZ.prototype.L.call(this,w)};g.V(BD,xGx);BD.prototype.L=function(){return null}; BD.prototype.C=function(){return[]};g.V(Ql,C5);g.N=Ql.prototype;g.N.CD=function(){if(this.element){var w=this.element,M=this.L.B.C;try{try{var P=XOp(w.getBoundingClientRect())}catch(Z){P=new RU(0,0,0,0)}var u=P.right-P.left,X=P.bottom-P.top,U=rxM(w,M),f=U.x,h=U.y;var c=new RU(Math.round(h),Math.round(f+u),Math.round(h+X),Math.round(f))}catch(Z){c=xjt.clone()}this.C=c;this.B=HSF(this,this.C)}}; g.N.ub=function(){this.K=this.L.X.B}; g.N.p7=function(w){var M=Ys(this.r7,"od")==1;return l3M(w,this.K,this.element,M)}; g.N.YG=function(){this.timestamp=lR()}; g.N.CH=function(){this.YG();this.CD();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var w=this.element;var M=new g.rq(w.videoWidth,w.videoHeight);w=this.B;var P=nj(w),u=w.getHeight(),X=M.width;M=M.height;X<=0||M<=0||P<=0||u<=0||(X/=M,M=P/u,w=w.clone(),X>M?(P/=X,u=(u-P)/2,u>0&&(u=w.top+u,w.top=Math.round(u),w.bottom=Math.round(u+P))):(u*=X,P=Math.round((P-u)/2),P>0&&(P=w.left+P,w.left=Math.round(P),w.right=Math.round(P+u))));this.B=w}this.ub(); w=this.B;P=this.K;w=w.left<=P.right&&P.left<=w.right&&w.top<=P.bottom&&P.top<=w.bottom?new RU(Math.max(w.top,P.top),Math.min(w.right,P.right),Math.min(w.bottom,P.bottom),Math.max(w.left,P.left)):new RU(0,0,0,0);P=w.top>=w.bottom||w.left>=w.right?new RU(0,0,0,0):w;w=this.L.X;M=X=u=0;if((this.B.bottom-this.B.top)*(this.B.right-this.B.left)>0)if(this.p7(P))P=new RU(0,0,0,0);else{u=bR().X;M=new RU(0,u.height,u.width,0);var U;u=Sv(P,(U=this.G)!=null?U:this.B);X=Sv(P,bR().B);M=Sv(P,M)}U=P.top>=P.bottom|| P.left>=P.right?new RU(0,0,0,0):sS(P,-this.B.left,-this.B.top);Aa()||(X=u=0);this.S=new R4(w,this.element,this.B,U,u,X,this.timestamp,M)}; g.N.getName=function(){return this.L.getName()};var iE$=new RU(0,0,0,0);g.V(k6,Ql);g.N=k6.prototype;g.N.observe=function(){this.X();return!0}; g.N.Nc=function(){Ql.prototype.CH.call(this)}; g.N.YG=function(){}; g.N.CD=function(){}; g.N.CH=function(){this.X();Ql.prototype.CH.call(this)}; g.N.A2=function(w){w=w.isActive();w!==this.V&&(w?this.X():(bR().B=new RU(0,0,0,0),this.B=new RU(0,0,0,0),this.K=new RU(0,0,0,0),this.timestamp=-1));this.V=w};var F0={},Ur1=(F0.firstquartile=0,F0.midpoint=1,F0.thirdquartile=2,F0.complete=3,F0);g.V(n4,HD);g.N=n4.prototype;g.N.ud=function(){return!0}; g.N.ZI=function(){return this.ke==2}; g.N.IR=function(w){return kBl(this,w,Math.max(1E4,this.C/3))}; g.N.g$=function(w,M,P,u,X,U,f){var h=this,c=this.j(this)||{};g.NK(c,X);this.C=c.duration||this.C;this.S=c.isVpaid||this.S;this.eL=c.isYouTube||this.eL;Gd();this.Z3=!1;X=a31(this,M);OPM(this)===1&&(U=X);HD.prototype.g$.call(this,w,M,P,u,c,U,f);this.vR&&this.vR.C&&g.tx(this.K,function(Z){Z.L(h)})}; g.N.lk=function(w,M,P){HD.prototype.lk.call(this,w,M,P);K4(this).update(w,M,this.yO,P);this.iW=ov(this.yO)&&ov(M);this.Cu==-1&&this.jL&&(this.Cu=this.k6().C.B);this.iF.C=0;w=this.BR();M.isVisible()&&Y6(this.iF,"vs");w&&Y6(this.iF,"vw");sQ(M.volume)&&Y6(this.iF,"am");ov(M)?Y6(this.iF,"a"):Y6(this.iF,"mut");this.pM&&Y6(this.iF,"f");M.L!=-1&&(Y6(this.iF,"bm"),M.L==1&&(Y6(this.iF,"b"),ov(M)&&Y6(this.iF,"umutb")));ov(M)&&M.isVisible()&&Y6(this.iF,"avs");this.iW&&w&&Y6(this.iF,"avw");M.Or>0&&Y6(this.iF, "pv");bZ(this,this.k6().C.B,!0)&&Y6(this.iF,"gdr");UT(this.k6().L,1)>=2E3&&Y6(this.iF,"pmx");this.Z3&&Y6(this.iF,"tvoff")}; g.N.mE=function(){return new TI}; g.N.k6=function(){return this.WX}; g.N.Ze=function(){return new bPy}; g.N.EJ=function(w,M,P,u){w=HD.prototype.EJ.call(this,w,M,P,u===void 0?-1:u);w.fullscreen=this.pM;w.paused=this.ZI();w.volume=P.volume;sQ(w.volume)||(this.cj++,M=this.yO,sQ(M.volume)&&(w.volume=M.volume));P=P.currentTime;w.mediaTime=P!==void 0&&P>=0?P:-1;return w}; g.N.g2=function(w){return bR(),this.pM?1:HD.prototype.g2.call(this,w)}; g.N.H9=function(){return 1}; g.N.getDuration=function(){return this.C}; g.N.k9=function(){return this.bJ?2:iHH(this)?5:this.BR()?4:3}; g.N.AC=function(){return this.bW?this.k6().G.C>=2E3?4:3:2}; g.N.BO=function(w){this.Q_&&this.Q_.BO(w)};var MFh=g.ca();NYM.prototype.reset=function(){this.B=[];this.L=[]}; var jv=ma(NYM);g.V(x6,ta);g.N=x6.prototype;g.N.getName=function(){return(this.L?this.L:this.B).getName()}; g.N.ww=function(){return(this.L?this.L:this.B).ww()}; g.N.nk=function(){return(this.L?this.L:this.B).nk()}; g.N.init=function(w){var M=!1;(0,g.tx)(this.C,function(P){P.initialize()&&(M=!0)}); M&&(this.X=w,re(this.B,this));return M}; g.N.dispose=function(){(0,g.tx)(this.C,function(w){w.dispose()}); ta.prototype.dispose.call(this)}; g.N.IV=function(){return K5(this.C,function(w){return w.YJ()})}; g.N.Vd=function(){return K5(this.C,function(w){return w.YJ()})}; g.N.d3=function(w,M,P){return new Ql(w,this.B,M,P)}; g.N.Nc=function(w){this.L=w.L};var zMM={threshold:[0,.3,.5,.75,1]};g.V(OT,Ql);g.N=OT.prototype;g.N.observe=function(){var w=this;this.Lu||(this.Lu=lR());if(OjH(298,function(){return TYH(w)}))return!0; this.L.fail("msf");return!1}; g.N.unobserve=function(){if(this.X&&this.element)try{this.X.unobserve(this.element),this.V?(this.V.unobserve(this.element),this.V=null):this.j&&(this.j.disconnect(),this.j=null)}catch(w){}}; g.N.CH=function(){var w=av(this);w.length>0&&wT(this,w);Ql.prototype.CH.call(this)}; g.N.CD=function(){}; g.N.p7=function(){return!1}; g.N.ub=function(){}; g.N.ww=function(){var w={};return Object.assign(this.L.ww(),(w.niot_obs=this.Lu,w.niot_cbk=this.B3,w))}; g.N.getName=function(){return"nio"};g.V(im,ta);im.prototype.getName=function(){return"nio"}; im.prototype.Vd=function(){return!bR().L&&this.B.B.C.IntersectionObserver!=null}; im.prototype.d3=function(w,M,P){return new OT(w,this.B,M,P)};g.V(MP,Ja);MP.prototype.Uv=function(){return bR().B}; MP.prototype.YJ=function(){var w=lh4();this.V!==w&&(this.B!=this&&w>this.B.V&&(this.B=this,jc(this)),this.V=w);return w==2};Ph.prototype.sample=function(){$X(this,C4(),!1)}; Ph.prototype.X=function(){var w=Aa(),M=lR();w?(ec||(BY=M,g.tx(jv.B,function(P){var u=P.k6();u.OO=dR(u,M,P.ke!=1)})),ec=!0):(this.j=kQ1(this,M),ec=!1,fh5=M,g.tx(jv.B,function(P){P.PS&&(P.k6().V=M)})); $X(this,C4(),!w)}; var um=ma(Ph);var nGy=null,dT="",TF=!1;var K04=sy4().gr,fh=sy4().aN;var AE_={DS0:"visible",BhK:"audible",AQ9:"time",bXu:"timetype"},gG4={visible:function(w){return/^(100|[0-9]{1,2})$/.test(w)}, audible:function(w){return w=="0"||w=="1"}, timetype:function(w){return w=="mtos"||w=="tos"}, time:function(w){return/^(100|[0-9]{1,2})%$/.test(w)||/^([0-9])+ms$/.test(w)}}; Ihy.prototype.setTime=function(w,M,P){M=="ms"?(this.C=w,this.X=-1):(this.C=-1,this.X=w);this.G=P===void 0?"tos":P;return this};g.V(Zx,lZ);Zx.prototype.getId=function(){return this.j}; Zx.prototype.K=function(){return!0}; Zx.prototype.B=function(w){var M=w.k6(),P=w.getDuration();return K5(this.V,function(u){if(u.B!=void 0)var X=rEy(u,M);else b:{switch(u.G){case "mtos":X=u.L?M.G.C:M.C.B;break b;case "tos":X=u.L?M.G.B:M.C.B;break b}X=0}X==0?u=!1:(u=u.C!=-1?u.C:P!==void 0&&P>0?u.X*P:-1,u=u!=-1&&X>=u);return u})};g.V(SV,Jv5);SV.prototype.B=function(w){var M=new g$y;M.B=qn(w,OCA);M.L=qn(w,wTh);return M};g.V(Hh,lZ);Hh.prototype.B=function(w){return iHH(w)};g.V(ph,xGx);g.V(Fa,lZ);Fa.prototype.B=function(w){return w.k6().BR()};g.V(Ev,L4);Ev.prototype.B=function(w){var M=g.o$(this.j,Ys(iR().r7,"ovms"));return!w.bJ&&(w.ke!=0||M)};g.V(NP,ph);NP.prototype.L=function(){return new Ev(this.B)}; NP.prototype.C=function(){return[new Fa("viewable_impression",this.B),new Hh(this.B)]};g.V(VZ,k6);VZ.prototype.X=function(){var w=g.Mj("ima.admob.getViewability"),M=Ys(this.r7,"queryid");typeof w==="function"&&M&&w(M)}; VZ.prototype.getName=function(){return"gsv"};g.V(mQ,ta);mQ.prototype.getName=function(){return"gsv"}; mQ.prototype.Vd=function(){var w=bR();iR();return w.L&&!1}; mQ.prototype.d3=function(w,M,P){return new VZ(this.B,M,P)};g.V(oL,k6);oL.prototype.X=function(){var w=this,M=g.Mj("ima.bridge.getNativeViewability"),P=Ys(this.r7,"queryid");typeof M==="function"&&P&&M(P,function(u){g.SF(u)&&w.j++;var X=u.opt_nativeViewVisibleBounds||{},U=u.opt_nativeViewHidden;w.B=$qu(u.opt_nativeViewBounds||{});var f=w.L.X;f.B=U?iE$.clone():$qu(X);w.timestamp=u.opt_nativeTime||-1;bR().B=f.B;u=u.opt_nativeVolume;u!==void 0&&(f.volume=u)})}; oL.prototype.getName=function(){return"nis"};g.V(GF,ta);GF.prototype.getName=function(){return"nis"}; GF.prototype.Vd=function(){var w=bR();iR();return w.L&&!1}; GF.prototype.d3=function(w,M,P){return new oL(this.B,M,P)};g.V(yZ,Ja);g.N=yZ.prototype;g.N.YJ=function(){return this.L.qr!=null}; g.N.Po=function(){var w={};this.xu&&(w.mraid=this.xu);this.mN&&(w.mlc=1);w.mtop=this.L.qEW;this.j&&(w.mse=this.j);this.UO&&(w.msc=1);w.mcp=this.L.compatibility;return w}; g.N.tZ=function(w){var M=g.Kz.apply(1,arguments);try{return this.L.qr[w].apply(this.L.qr,M)}catch(P){de(538,P,.01,function(u){u.method=w})}}; g.N.initialize=function(){var w=this;if(this.isInitialized)return!this.Nw();this.isInitialized=!0;if(this.L.compatibility===2)return this.j="ng",this.fail("w"),!1;if(this.L.compatibility===1)return this.j="mm",this.fail("w"),!1;bR().V=!0;this.C.document.readyState&&this.C.document.readyState=="complete"?xrz(this):cD(this.C,"load",function(){Gd().setTimeout(T_(292,function(){return xrz(w)}),100)},292); return!0}; g.N.B7=function(){var w=bR(),M=M5_(this,"getMaxSize");w.B=new RU(0,M.width,M.height,0)}; g.N.LS=function(){bR().X=M5_(this,"getScreenSize")}; g.N.dispose=function(){ahM(this);Ja.prototype.dispose.call(this)};var zcR=new function(w,M){this.key=w;this.defaultValue=M===void 0?!1:M;this.valueType="boolean"}("45378663");g.N=qP.prototype;g.N.Ot=function(w){p4(w,!1);GQp(w)}; g.N.Un=function(){}; g.N.Tq=function(w,M,P,u){var X=this;w=new n4(l6,w,P?M:-1,7,this.YP(),this.Ex());w.P_=u;nM1(w.r7);qK(w.r7,"queryid",w.P_);w.Sb("");v$l(w,function(){return X.Ov.apply(X,g.L(g.Kz.apply(0,arguments)))},function(){return X.YZ.apply(X,g.L(g.Kz.apply(0,arguments)))}); (u=ma(t4).B)&&Q9p(w,u);this.C&&(w.BO(this.C),this.C=null);w.Bw.Ey&&ma(L0H);return w}; g.N.A2=function(w){switch(w.nk()){case 0:if(w=ma(t4).B)w=w.B,g.D4(w.G,this),w.S&&this.ud()&&ZSp(w);zF();break;case 2:Xa()}}; g.N.Nc=function(){}; g.N.ud=function(){return!1}; g.N.YZ=function(w,M){w.bJ=!0;switch(w.H9()){case 1:fm2(w,M);break;case 2:this.E3(w)}}; g.N.AE=function(w){var M=w.j(w);M&&(M=M.volume,w.bW=sQ(M)&&M>0);uKH(w,0);return A4(w,"start",Aa())}; g.N.S4=function(w,M,P){$X(um,[w],!Aa());return this.Ac(w,M,P)}; g.N.Ac=function(w,M,P){return A4(w,P,Aa())}; g.N.Ne=function(w){return vh(w,"firstquartile",1)}; g.N.zo=function(w){w.jL=!0;return vh(w,"midpoint",2)}; g.N.bA=function(w){return vh(w,"thirdquartile",3)}; g.N.V1=function(w){var M=vh(w,"complete",4);vD(w);return M}; g.N.nW=function(w){w.ke=3;return A4(w,"error",Aa())}; g.N.NB=function(w,M,P){M=Aa();if(w.ZI()&&!M){var u=w.k6(),X=lR();u.V=X}$X(um,[w],!M);w.ZI()&&(w.ke=1);return A4(w,P,M)}; g.N.H4=function(w,M){M=this.S4(w,M||{},"skip");vD(w);return M}; g.N.oe=function(w,M){p4(w,!0);return this.S4(w,M||{},"fullscreen")}; g.N.iA=function(w,M){p4(w,!1);return this.S4(w,M||{},"exitfullscreen")}; g.N.iK=function(w,M,P){M=w.k6();var u=lR();M.OO=dR(M,u,w.ke!=1);$X(um,[w],!Aa());w.ke==1&&(w.ke=2);return A4(w,P,Aa())}; g.N.ZB=function(w){$X(um,[w],!Aa());return w.L()}; g.N.sM=function(w){$X(um,[w],!Aa());this.QT(w);vD(w);return w.L()}; g.N.Ov=function(){}; g.N.E3=function(){}; g.N.QT=function(){}; g.N.pS=function(){}; g.N.VB=function(){}; g.N.Ex=function(){this.B||(this.B=this.VB());return this.B==null?new BD:new NP(this.B)}; g.N.YP=function(){return new SV};g.V(Kh,lZ);Kh.prototype.B=function(w){return w.AC()==4};g.V(bm,L4);bm.prototype.B=function(w){w=w.AC();return w==3||w==4};g.V(IL,ph);IL.prototype.L=function(){return new bm(this.B)}; IL.prototype.C=function(){return[new Kh(this.B)]};g.V(A0,Jv5);A0.prototype.B=function(w){w&&(w.e===28&&(w=Object.assign({},w,{avas:3})),w.vs===4||w.vs===5)&&(w=Object.assign({},w,{vs:3}));var M=new g$y;M.B=qn(w,a4t);M.L=qn(w,wTh);return M};Z9y.prototype.L=function(){return g.Mj(this.B)};g.V(gT,qP);g.N=gT.prototype;g.N.Un=function(w,M){var P=this,u=ma(t4);if(u.B!=null)switch(u.B.getName()){case "nis":var X=Fkx(this,w,M);break;case "gsv":X=p92(this,w,M);break;case "exc":X=E8p(this,w)}X||(M.opt_overlayAdElement?X=void 0:M.opt_adElement&&(X=hQ2(this,w,M.opt_adElement,M.opt_osdId)));X&&X.H9()==1&&(X.j==g.e0&&(X.j=function(U){return P.pS(U)}),H9F(this,X,M)); return X}; g.N.pS=function(w){w.L=0;w.ys=0;if(w.X=="h"||w.X=="n"){iR();w.Yu&&(iR(),RL(this)!="h"&&RL(this));var M=g.Mj("ima.common.getVideoMetadata");if(typeof M==="function")try{var P=M(w.P_)}catch(X){w.L|=4}else w.L|=2}else if(w.X=="b")if(M=g.Mj("ytads.bulleit.getVideoMetadata"),typeof M==="function")try{P=M(w.P_)}catch(X){w.L|=4}else w.L|=2;else if(w.X=="ml")if(M=g.Mj("ima.common.getVideoMetadata"),typeof M==="function")try{P=M(w.P_)}catch(X){w.L|=4}else w.L|=2;else w.L|=1;w.L||(P===void 0?w.L|=8:P===null? w.L|=16:g.SF(P)?w.L|=32:P.errorCode!=null&&(w.ys=P.errorCode,w.L|=64));P==null&&(P={});M=P;w.V=0;for(var u in Jxc)M[u]==null&&(w.V|=Jxc[u]);cAu(M,"currentTime");cAu(M,"duration");sQ(P.volume)&&sQ()&&(P.volume*=NaN);return P}; g.N.VB=function(){iR();RL(this)!="h"&&RL(this);var w=NQH(this);return w!=null?new Z9y(w):null}; g.N.E3=function(w){!w.B&&w.bJ&&nh(this,w,"overlay_unmeasurable_impression")&&(w.B=!0)}; g.N.QT=function(w){w.Xg&&(w.BR()?nh(this,w,"overlay_viewable_end_of_session_impression"):nh(this,w,"overlay_unviewable_impression"),w.Xg=!1)}; g.N.Ov=function(){}; g.N.Tq=function(w,M,P,u){if(TS1()){var X=Ys(iR().r7,"mm"),U={};(X=(U[MN.Ph]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",U[MN.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",U)[X])&&GCM(this,X);this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&de(1044,Error())}w=qP.prototype.Tq.call(this,w,M,P,u);this.G&&(M=this.K,w.G==null&&(w.G=new s9F),M.B[w.P_]=w.G,w.G.G=MFh);return w}; g.N.Ot=function(w){w&&w.H9()==1&&this.G&&delete this.K.B[w.P_];return qP.prototype.Ot.call(this,w)}; g.N.Ex=function(){this.B||(this.B=this.VB());return this.B==null?new BD:this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new IL(this.B):new NP(this.B)}; g.N.YP=function(){return this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new A0:new SV}; g.N.BO=function(w,M,P,u,X){M=new RU(P,M+u,P+X,M);(w=rR(jv,w))?w.BO(M):this.C=M}; var PAA=z_(193,Dsx,void 0,Wkz);g.ih("Goog_AdSense_Lidar_sendVastEvent",PAA);var umC=T_(194,function(w,M){M=M===void 0?{}:M;w=o82(ma(gT),w,M);return yAU(w)}); g.ih("Goog_AdSense_Lidar_getViewability",umC);var XTV=z_(195,function(){return Es5()}); g.ih("Goog_AdSense_Lidar_getUrlSignalsArray",XTV);var $KV=T_(196,function(){return JSON.stringify(Es5())}); g.ih("Goog_AdSense_Lidar_getUrlSignalsList",$KV);var zQy=Fl(["//ep2.adtrafficquality.google/sodar/",""]),TQR=Fl(["//tpc.googlesyndication.com/sodar/",""]);g.V(jV,Error);g.V(xX,g.v);xX.prototype.WM=function(){return this.wpc.f()}; xX.prototype.tf=function(w){this.wpc.c(w)}; xX.prototype.MO=function(w){return this.wpc.m(eQx(w))}; xX.prototype.un=function(w){return this.wpc.mws(eQx(w))}; g.V(Ch,g.v);Ch.prototype.snapshot=function(w){return this.Aw.s(Object.assign({},w.FW&&{c:w.FW},w.B0&&{s:w.B0},w.pz!==void 0&&{p:w.pz}))}; Ch.prototype.rf=function(w){this.Aw.e(w)}; Ch.prototype.rA=function(){return this.Aw.l()};var v85;g.V(aL,g.v);aL.prototype.share=function(){if(this.sO())throw Error("E:AD");this.X++;return this}; aL.prototype.dispose=function(){--this.X||g.v.prototype.dispose.call(this)}; v85=Symbol.dispose;sPM.prototype.lT=function(w,M){this.B.lT("/client_streamz/bg/frs",w,M)}; KkH.prototype.lT=function(w,M,P,u,X,U){this.B.lT("/client_streamz/bg/wrl",w,M,P,u,X,U)}; b9M.prototype.lC=function(w,M){this.B.qz("/client_streamz/bg/ec",w,M)}; Im_.prototype.lT=function(w,M,P){this.B.lT("/client_streamz/bg/el",w,M,P)}; AAy.prototype.lC=function(w,M){this.B.qz("/client_streamz/bg/cec",w,M)}; g8u.prototype.lC=function(w,M){this.B.qz("/client_streamz/bg/po/csc",w,M)}; JA1.prototype.lC=function(w,M){this.B.qz("/client_streamz/bg/po/ctav",w,M)}; rAp.prototype.lC=function(w,M){this.B.qz("/client_streamz/bg/po/cwsc",w,M)};g.V(jPF,oP);g.V(M2,oP);var WW=[1,2,3];var UKh=[0,WW,KU$,Q$V,vVV];var fNV=[0,U5,[0,YEt,dj3]];g.V(PW,oP);var fL=[1,2,3];var W4p=[0,fL,LU3,T3E,Ww,fNV];g.V(uY,oP);var h0a=[0,U5,UKh,W4p];var c5a=[0,$z];g.V(XH,oP);var ZE4=[0,$z,-1,nV3];var Suh=[0,$z,-1,eAa,nV3];g.V($4,oP);var ZAl=[1,2,3];var HEt=[0,ZAl,Ww,ZE4,Ww,Suh,Ww,c5a];g.V(UJ,oP);UJ.prototype.TQ=function(){var w=ue(this,3,qG,3,!0);Jd(w);return w[void 0]};UJ.prototype.C=y1l([0,$z,HEt,s$V,U5,h0a,kcE,RAU]);g.V(t5_,oP);g.N=hm.prototype;g.N.isEnabled=function(){if(!g.aF.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{aK:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.N.set=function(w,M,P){var u=!1;if(typeof P==="object"){var X=P.s7$;u=P.secure||!1;var U=P.domain||void 0;var f=P.path||void 0;var h=P.aK}if(/[;=\s]/.test(w))throw Error('Invalid cookie name "'+w+'"');if(/[;\r\n]/.test(M))throw Error('Invalid cookie value "'+M+'"');h===void 0&&(h=-1);P=U?";domain="+U:"";f=f?";path="+f:"";u=u?";secure":"";h=h<0?"":h==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+h*1E3)).toUTCString();this.B.cookie=w+"="+M+P+f+h+u+(X!=null?";samesite="+ X:"")}; g.N.get=function(w,M){for(var P=w+"=",u=(this.B.cookie||"").split(";"),X=0,U;X=0;M--)this.remove(w[M])}; var lL=new hm(typeof document=="undefined"?null:document);ZH.prototype.compress=function(w){var M,P,u,X;return g.n(function(U){switch(U.L){case 1:return M=new CompressionStream("gzip"),P=(new Response(M.readable)).arrayBuffer(),u=M.writable.getWriter(),g.B(U,u.write((new TextEncoder).encode(w)),2);case 2:return g.B(U,u.close(),3);case 3:return X=Uint8Array,g.B(U,P,4);case 4:return U.return(new X(U.B))}})}; ZH.prototype.isSupported=function(w){return w<1024?!1:typeof CompressionStream!=="undefined"};g.V(Sm,oP);HW.prototype.setInterval=function(w){this.intervalMs=w;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; HW.prototype.start=function(){var w=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){w.tick()},this.intervalMs),this.L=this.B())}; HW.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; HW.prototype.tick=function(){var w=this;if(this.enabled){var M=Math.max(this.B()-this.L,0);M0?P:void 0));P=a9(P,4,Z3(X>0?X:void 0));P=a9(P,5,Z3(U>0?U:void 0));X=P.q0;U=X[sV]|0;P=g2(P,U)?P:gx(P,X,U)?Jv(P,X):new P.constructor(Av(X,U,!0));yU(f,EJ,10,P)}f=this.B.clone();P=Date.now().toString();f=a9(f,4,o9(P));w=Dh(f,q2,3,w.slice());u&&(f=new pL,u=a9(f,13,Z3(u)),f=new FH, u=yU(f,pL,2,u),f=new DH,u=yU(f,FH,1,u),u=kG(u,2,9),yU(w,DH,18,u));M&&eG(w,14,M);return w};g.lY.prototype.L=0;g.lY.prototype.reset=function(){this.B=this.C=this.X;this.L=0}; g.lY.prototype.getValue=function(){return this.C};g.V(x8,oP);var pTE=OP(x8);g.V(ofy,oP);var E5;E5=new G6M;g.V(Qw,g.v);g.N=Qw.prototype;g.N.v3=function(){BW(this);this.L.stop();this.xu.stop();g.v.prototype.v3.call(this)}; g.N.dispatch=function(w){if(w instanceof q2)this.log(w);else try{var M=new q2,P=w.PZ();var u=BR(M,8,P);this.log(u)}catch(X){k4(this,4,1)}}; g.N.log=function(w){k4(this,2,1);if(this.UO){w=w.clone();var M=this.t9++;w=eG(w,21,M);this.componentId&&BR(w,26,this.componentId);M=w;var P=x$(M,1);var u=u===void 0?!1:u;var X=typeof P;u=P==null?P:X==="bigint"?String(Fv(64,P)):cA(P)?X==="string"?pP(P):u?V0(P):mc(P):void 0;u==null&&(u=Date.now(),u=Number.isFinite(u)?u.toString():"0",a9(M,1,o9(u)));u=x$(M,15);u!=null&&(typeof u==="bigint"?R9(u)?u=Number(u):(u=Fv(64,u),u=R9(u)?Number(u):String(u)):u=cA(u)?typeof u==="number"?mc(u):pP(u):void 0);u!=null|| eG(M,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(u=this.experimentIds.clone(),yU(M,Sm,16,u));k4(this,1,1);M=this.B.length-1E3+1;M>0&&(this.B.splice(0,M),this.X+=M,k4(this,3,M));this.B.push(w);this.b3||this.L.enabled||this.L.start()}}; g.N.flush=function(w,M){var P=this;if(this.B.length===0)w&&w();else if(this.Cu&&this.B3)this.C.L=3,mN4(this);else{var u=Date.now();if(this.OO>u&&this.ys0&&(P.ys=Date.now(),P.OO=P.ys+p);p=Z4(lC);var y;vO&&p&&((y=F.q0[p])==null?void 0:y[175237375])!=null&&Rw(WUa,3);a:{var q=q===void 0?!1:q;if(Z4(hAj)&&Z4(lC)&&void 0===hAj){y=F.q0;p=y[lC];if(!p)break a;if(p=p.kU)try{p(y,175237375,FUt);break a}catch(d){Dd(d)}}q&&(q=F.q0, (y=Z4(lC))&&y in q&&(q=q[y])&&delete q[175237375])}q=E5.B?E5.L(F,E5.B,175237375,E5.C):E5.L(F,175237375,null,E5.C);if(q=q===null?void 0:q)q=YG(q,1,-1),q!==-1&&(P.G=new g.lY(q<1?1:q,3E5,.1),P.L.setInterval(P.G.getValue()))}}w&&w();P.K=0},S=function(p,F){var E=Nr(U,q2,3); var y=Number(Rxx(U,14));g.LL(P.G);P.L.setInterval(P.G.getValue());p===401&&f&&(P.eL=f);y&&(P.X+=y);F===void 0&&(F=P.isRetryable(p));F&&(P.B=E.concat(P.B),P.b3||P.L.enabled||P.L.start());k4(P,7,1);M&&M("net-send-failed",p);++P.K},H=function(){P.network&&P.network.send(c,Z,S)}; h?h.then(function(p){k4(P,5,X);c.requestHeaders["Content-Encoding"]="gzip";c.requestHeaders["Content-Type"]="application/binary";c.body=p;c.NF=2;H()},function(){k4(P,6,X); H()}):H()}}}}; g.N.isRetryable=function(w){return 500<=w&&w<600||w===401||w===0};Ru.prototype.send=function(w,M,P){var u=this,X,U,f,h,c,Z,S,H,p,F;return g.n(function(E){switch(E.L){case 1:return U=(X=u.d4?new AbortController:void 0)?setTimeout(function(){X.abort()},w.timeoutMillis):void 0,g.DU(E,2,3),f=Object.assign({},{method:w.requestType, headers:Object.assign({},w.requestHeaders)},w.body&&{body:w.body},w.withCredentials&&{credentials:"include"},{signal:w.timeoutMillis&&X?X.signal:null}),g.B(E,fetch(w.url,f),5);case 5:h=E.B;if(h.status!==200){(c=P)==null||c(h.status);E.M0(3);break}if((Z=M)==null){E.M0(7);break}return g.B(E,h.text(),8);case 8:Z(E.B);case 7:case 3:g.B5(E);clearTimeout(U);g.Qx(E,0);break;case 2:S=g.d4(E);switch((H=S)==null?void 0:H.name){case "AbortError":(p=P)==null||p(408);break;default:(F=P)==null||F(400)}E.M0(3)}})}; Ru.prototype.dl=function(){return 4};g.V(nL,g.v);nL.prototype.dL=function(){this.G=!0;return this}; nL.prototype.build=function(){this.network||(this.network=new Ru);var w=new Qw({logSource:this.logSource,gJ:this.gJ?this.gJ:UNl,sessionIndex:this.sessionIndex,zV0:this.Fb,PR:this.X,b3:!1,dL:this.G,a5:this.a5,network:this.network});g.b(this,w);if(this.L){var M=this.L,P=dn(w.C);BR(P,7,M)}w.j=new ZH;this.componentId&&(w.componentId=this.componentId);this.T9&&(w.T9=this.T9);this.pageId&&(w.pageId=this.pageId);this.B&&((P=this.B)?(w.experimentIds||(w.experimentIds=new Sm),M=w.experimentIds,P=P.PZ(),BR(M, 4,P)):w.experimentIds&&a9(w.experimentIds,4));this.C&&(w.Cu=w.B3);pY5(w.C);this.network.El&&this.network.El(this.logSource);this.network.Nbk&&this.network.Nbk(w);return w};g.V(vW,g.v);vW.prototype.flush=function(w){w=w||[];if(w.length){for(var M=new t5_,P=[],u=0;u-1?(M=w[f],P||(M.m7=!1)):(M=new Tep(M,this.src,U,!!u,X),M.m7=P,w.push(M));return M}; g.N.remove=function(w,M,P,u){w=w.toString();if(!(w in this.listeners))return!1;var X=this.listeners[w];M=CL(X,M,P,u);return M>-1?(Jm(X[M]),g.Gc(X,M),X.length==0&&(delete this.listeners[w],this.B--),!0):!1}; g.N.removeAll=function(w){w=w&&w.toString();var M=0,P;for(P in this.listeners)if(!w||P==w){for(var u=this.listeners[P],X=0;X-1?w[X]:null}; g.N.hasListener=function(w,M){var P=w!==void 0,u=P?w.toString():"",X=M!==void 0;return g.uA(this.listeners,function(U){for(var f=0;f>>0);g.Sp(g.WX,g.v);g.WX.prototype[YQx]=!0;g.N=g.WX.prototype;g.N.addEventListener=function(w,M,P,u){g.x4(this,w,M,P,u)}; g.N.removeEventListener=function(w,M,P,u){k_H(this,w,M,P,u)}; g.N.dispatchEvent=function(w){var M=this.YY;if(M){var P=[];for(var u=1;M;M=M.YY)P.push(M),++u}M=this.Fy;u=w.type||w;if(typeof w==="string")w=new g.Iu(w,M);else if(w instanceof g.Iu)w.target=w.target||M;else{var X=w;w=new g.Iu(u,M);g.NK(w,X)}X=!0;var U;if(P)for(U=P.length-1;!w.L&&U>=0;U--){var f=w.currentTarget=P[U];X=hn(f,u,!0,w)&&X}w.L||(f=w.currentTarget=M,X=hn(f,u,!0,w)&&X,w.L||(X=hn(f,u,!1,w)&&X));if(P)for(U=0;!w.L&&U0){this.L--;var w=this.B;this.B=w.next;w.next=null}else w=this.C();return w};var S7;py.prototype.add=function(w,M){var P=b5z.get();P.set(w,M);this.L?this.L.next=P:this.B=P;this.L=P}; py.prototype.remove=function(){var w=null;this.B&&(w=this.B,this.B=this.B.next,this.B||(this.L=null),w.next=null);return w}; var b5z=new cX(function(){return new F4},function(w){return w.reset()}); F4.prototype.set=function(w,M){this.B=w;this.scope=M;this.next=null}; F4.prototype.reset=function(){this.next=this.scope=this.B=null};var EZ,Na=!1,s4z=new py;It_.prototype.reset=function(){this.context=this.L=this.C=this.B=null;this.X=!1}; var AaM=new cX(function(){return new It_},function(w){w.reset()}); g.qa.prototype.then=function(w,M,P){return atz(this,ZG(typeof w==="function"?w:null),ZG(typeof M==="function"?M:null),P)}; g.qa.prototype.$goog_Thenable=!0;g.N=g.qa.prototype;g.N.finally=function(w){var M=this;w=ZG(w);return new Promise(function(P,u){j45(M,function(X){w();P(X)},function(X){w(); u(X)})})}; g.N.NS=function(w,M){return atz(this,null,ZG(w),M)}; g.N.catch=g.qa.prototype.NS;g.N.cancel=function(w){if(this.B==0){var M=new Ly(w);g.Vk(function(){CRH(this,M)},this)}}; g.N.wvK=function(w){this.B=0;DG(this,2,w)}; g.N.jkK=function(w){this.B=0;DG(this,3,w)}; g.N.Rl=function(){for(var w;w=tcH(this);)xNz(this,w,this.B,this.j);this.K=!1}; var PZl=Dd;g.Sp(Ly,Ha);Ly.prototype.name="cancel";g.Sp(g.e7,g.WX);g.N=g.e7.prototype;g.N.enabled=!1;g.N.jZ=null;g.N.setInterval=function(w){this.Hb=w;this.jZ&&this.enabled?(this.stop(),this.start()):this.jZ&&this.stop()}; g.N.KF$=function(){if(this.enabled){var w=g.ca()-this.dI;w>0&&w0&&(this.getStatus(),this.K=setTimeout(this.VR.bind(this), this.B3)),this.getStatus(),this.S=!0,this.B.send(w),this.S=!1}catch(f){this.getStatus(),NRU(this,f)}}; g.N.VR=function(){typeof IV!="undefined"&&this.B&&(this.X="Timed out after "+this.B3+"ms, aborting",this.L=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.N.abort=function(w){this.B&&this.C&&(this.getStatus(),this.C=!1,this.G=!0,this.B.abort(),this.G=!1,this.L=w||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),bO(this))}; g.N.v3=function(){this.B&&(this.C&&(this.C=!1,this.G=!0,this.B.abort(),this.G=!1),bO(this,!0));g.Ky.Ik.v3.call(this)}; g.N.Y_=function(){this.sO()||(this.mN||this.S||this.G?Vvz(this):this.dt3())}; g.N.dt3=function(){Vvz(this)}; g.N.isActive=function(){return!!this.B}; g.N.isComplete=function(){return g.An(this)==4}; g.N.getStatus=function(){try{return g.An(this)>2?this.B.status:-1}catch(w){return-1}}; g.N.getResponseHeader=function(w){if(this.B&&this.isComplete())return w=this.B.getResponseHeader(w),w===null?void 0:w}; g.N.getLastError=function(){return typeof this.X==="string"?this.X:String(this.X)};Cy.prototype.send=function(w,M,P){M=M===void 0?function(){}:M; P=P===void 0?function(){}:P; F8u(w.url,function(u){u=u.target;gb(u)?M(g.Jn(u)):P(u.getStatus())},w.requestType,w.body,w.requestHeaders,w.timeoutMillis,w.withCredentials)}; Cy.prototype.dl=function(){return 1};xv.prototype.done=function(){this.logger.cf(this.event,tn()-this.startTime)}; g.V(OZ,aL);g.V(ws,OZ);g.N=ws.prototype;g.N.Dx=function(){}; g.N.X1=function(){}; g.N.cf=function(){}; g.N.FH=function(){}; g.N.hX=function(){}; g.N.hL=function(w,M,P,u){return u}; g.N.mS=function(){}; g.N.Ia=function(){}; g.N.Ew=function(){}; g.N.YC=function(){}; g.V(iz,OZ);g.N=iz.prototype;g.N.update=function(w){this.logger.dispose();this.logger=w}; g.N.X1=function(w){this.logger.X1(w)}; g.N.cf=function(w,M){this.logger.cf(w,M)}; g.N.FH=function(w){this.logger.FH(w)}; g.N.hX=function(){this.logger.hX()}; g.N.hL=function(w,M,P,u){return this.logger.hL(w,M,P,u)}; g.N.mS=function(w){this.logger.mS(w)}; g.N.Ia=function(w){this.logger.Ia(w)}; g.N.Ew=function(w){this.logger.Ew(w)}; g.N.YC=function(w){this.logger.YC(w)}; g.N.Dx=function(w){this.logger.Dx(w)}; g.V(MM,g.v);g.V(P_,OZ);g.N=P_.prototype;g.N.Dx=function(w){this.metrics.SEO.lT(w,this.bv)}; g.N.X1=function(w){this.metrics.eventCount.lC(w,this.bv)}; g.N.cf=function(w,M){this.metrics.ER.lT(M,w,this.bv)}; g.N.FH=function(w){this.metrics.errorCount.lC(w,this.bv)}; g.N.hL=function(w,M,P,u){function X(h){if(!U.sO()){var c=tn()-f;U.metrics.B5N.lT(c,w,P,h,M,U.bv)}} var U=this,f=tn();u.then(function(){return void X(0)},function(h){return void X(h instanceof RV?h.code:-1)}); return u}; g.N.mS=function(w){this.metrics.Iqs.lC(w,this.bv)}; g.N.Ia=function(w){this.metrics.zn.lC(w,this.bv)}; g.N.Ew=function(w){this.metrics.LX$.lC(w,this.bv)}; g.V(uz,P_);uz.prototype.YC=function(w){var M=this;w=w.slice();g.r3(w);g.jp(w,this.L)||(this.B.dispose(),this.C&&this.service.dispose(),this.service=this.options.vH("49",this.options.mf.concat(w)),this.B=new MM(function(){return void M.service.Ul()},this.options.pm),this.metrics=GIF(this.service),this.L=w)}; uz.prototype.hX=function(){DnR(this.B)};g.V(X1,oP);g.V(Uo,oP);g.V(fZ,oP);var n6l=OP(fZ),YTu=function(w){return $w(function(M){return M instanceof w&&!g2(M)})}(fZ); fZ.messageId="bfkj";g.V(Ov,oP);g.V(W_,oP);var zku=OP(W_);g.V(c_,g.v);c_.prototype.snapshot=function(w){if(this.sO())throw Error("Already disposed");this.logger.X1("n");var M=this.logger.share();return this.C.then(function(P){var u=P.Tn;return new Promise(function(X){var U=new xv(M,"n");u(function(f){U.done();M.Dx(f.length);M.hX();M.dispose();X(f)},[w.FW, w.B0,w.Vr,w.pz])})})}; c_.prototype.E2=function(w){var M=this;if(this.sO())throw Error("Already disposed");this.logger.X1("n");var P=aV(this.logger,function(){return M.X([w.FW,w.B0,w.Vr,w.pz])},"n"); this.logger.Dx(P.length);this.logger.hX();return P}; c_.prototype.rf=function(w){this.C.then(function(M){var P;(P=M.smW)==null||P(w)})}; c_.prototype.rA=function(){return this.logger.share()};g.V(H_,oP);g.V(pZ,oP);F1.prototype.ym=function(w){return b4z(this,w,new ws,0)};g.V(Eo,g.v);Eo.prototype.snapshot=function(w){var M=this;return g.n(function(P){switch(P.L){case 1:if(M.sO())throw Error("Already disposed");if(M.L||M.j){P.M0(2);break}return g.B(P,M.G.promise,2);case 2:if(!M.L){P.M0(4);break}return g.B(P,M.L.snapshot(w),5);case 5:return P.return(P.B);case 4:throw M.j;}})}; Eo.prototype.rf=function(w){var M,P;(M=this.L)==null||(P=M.rf)==null||P.call(M,w)}; Eo.prototype.handleError=function(w){if(!this.sO()){this.j=w;this.G.resolve();var M,P;(P=(M=this.options).SOu)==null||P.call(M,w)}}; Eo.prototype.rA=function(){return this.logger.share()}; var g6u={SrN:432E5,V6:3E5,Z_:10,Mb:1E4,Wy:3E4,a$:3E4,Zxs:6E4,Il:1E3,LP:6E4,pP:6E5,vy:.25,By:2,maxAttempts:10};var NdU,whu=(NdU=Math.imul)!=null?NdU:function(w,M){return w*M|0},oo=[196, 200,224,18];GN.prototype.PZ=function(){return String(this.B)+","+this.L.join()}; GN.prototype.Yb=function(w,M){var P=void 0;if(this.L[this.B]!==w){var u=this.L.indexOf(w);u!==-1?(this.L.splice(u,1),u0;)M[P++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(w%62),w=Math.floor(w/62);return M.join("")}};var Sv5;g.V(Di,g.v);Di.prototype.un=function(w,M){var P=this.MO(w);M==null||M(P);return aV(this.logger,function(){return g.Yw(P,2)},this.L)}; Sv5=Symbol.dispose;g.V(zN,Di);zN.prototype.MO=function(w,M){var P=this;this.logger.X1(this.B);++this.G>=this.K&&this.C.resolve();var u=w();w=aV(this.logger,function(){return P.X(u)},"C"); if(w===void 0)throw new jV(17,"YNJ:Undefined");if(!(w instanceof Uint8Array))throw new jV(18,"ODM:Invalid");M==null||M(w);return w}; g.V(TN,Di);TN.prototype.MO=function(){return this.X}; g.V(ds,Di);ds.prototype.MO=function(){var w=this;return aV(this.logger,function(){return Td(w.X)},"d")}; ds.prototype.un=function(){return this.X}; g.V(lz,Di);lz.prototype.MO=function(){if(this.X)return this.X;this.X=Hh1(this,function(w){return"_"+Zhz(w)}); return Hh1(this,function(w){return w})}; g.V(e6,Di);e6.prototype.MO=function(){var w=Math.floor(Date.now()/1E3),M=[Math.random()*255,Math.random()*255],P=M.concat([this.X&255,this.clientState],[w>>24&255,w>>16&255,w>>8&255,w&255]);w=new Uint8Array(2+P.length);w[0]=34;w[1]=P.length;w.set(P,2);P=w.subarray(2);for(var u=M=M.length;u150))try{this.cache=new UP5(w,this.logger)}catch(M){this.reportError(new jV(22,"GBJ:init",M))}}; g.N.reportError=function(w){this.logger.FH(w.code);this.onError(w);return w}; var EXl=function(w){return $w(function(M){if(!UjE(M))return!1;for(var P=g.G(Object.entries(w)),u=P.next();!u.done;u=P.next()){var X=g.G(u.value);u=X.next().value;X=X.next().value;if(!(u in M)){if(X.Y$I===!0)continue;return!1}if(!X(M[u]))return!1}return!0})}({Aw:function(w){return $w(function(M){return M instanceof w})}(Eo)},"");var xaH=(new Date).getTime();g.V(nZ,oP);var VFU=OP(nZ);Yvz.prototype.getMetadata=function(){return this.metadata};v_.prototype.getMetadata=function(){return this.metadata}; v_.prototype.getStatus=function(){return this.status};so.prototype.j=function(w,M){M=M===void 0?{}:M;return new Yvz(w,this,M)}; so.prototype.getName=function(){return this.name};var mKA=new so("/google.internal.waa.v1.Waa/Create",H_,nZ,function(w){return w.PZ()},VFU);g.V(KZ,oP);var svM=new so("/google.internal.waa.v1.Waa/GenerateIT",pZ,KZ,function(w){return w.PZ()},OP(KZ));var MmF=new Set(["SAPISIDHASH","APISIDHASH"]);g.V(bz,oP);bz.prototype.getValue=function(){var w=x$(this,2);if(Array.isArray(w)||w instanceof oP)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return $G(this,2)};g.V(Io,oP);Io.prototype.getMessage=function(){return TQ(this,2)}; var eO4=OP(Io);AC.prototype.yp=function(w,M){w=="data"?this.C.push(M):w=="metadata"?this.G.push(M):w=="status"?this.K.push(M):w=="end"?this.X.push(M):w=="error"&&this.L.push(M);return this}; AC.prototype.removeListener=function(w,M){w=="data"?CZ(this.C,M):w=="metadata"?CZ(this.G,M):w=="status"?CZ(this.K,M):w=="end"?CZ(this.X,M):w=="error"&&CZ(this.L,M);return this}; AC.prototype.cancel=function(){this.B.abort()}; AC.prototype.cancel=AC.prototype.cancel;AC.prototype.removeListener=AC.prototype.removeListener;AC.prototype.on=AC.prototype.yp;g.V(TT4,Error);g.Sp(g.tC,H4z);g.tC.prototype.B=function(){var w=new xj(this.X,this.C);this.L&&w.setCredentialsMode(this.L);return w}; g.tC.prototype.setCredentialsMode=function(w){this.L=w}; g.Sp(xj,g.WX);g.N=xj.prototype;g.N.open=function(w,M){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Lu=w;this.B3=M;this.readyState=1;Oo(this)}; g.N.send=function(w){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.V.signal.aborted)throw this.abort(),Error("Request was aborted.");this.B=!0;var M={headers:this.S,method:this.Lu,credentials:this.G,cache:void 0,signal:this.V.signal};w&&(M.body=w);(this.mN||g.aF).fetch(new Request(this.B3,M)).then(this.tE.bind(this),this.h7.bind(this))}; g.N.abort=function(){this.response=this.responseText="";this.S=new Headers;this.status=0;this.V.abort();this.C&&this.C.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.B&&this.readyState!=4&&(this.B=!1,ao(this));this.readyState=0}; g.N.tE=function(w){if(this.B&&(this.X=w,this.L||(this.status=this.X.status,this.statusText=this.X.statusText,this.L=w.headers,this.readyState=2,Oo(this)),this.B&&(this.readyState=3,Oo(this),this.B)))if(this.responseType==="arraybuffer")w.arrayBuffer().then(this.To.bind(this),this.h7.bind(this));else if(typeof g.aF.ReadableStream!=="undefined"&&"body"in w){this.C=w.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.j=new TextDecoder;BTz(this)}else w.text().then(this.uA.bind(this),this.h7.bind(this))}; g.N.xZ=function(w){if(this.B){if(this.K&&w.value)this.response.push(w.value);else if(!this.K){var M=w.value?w.value:new Uint8Array(0);if(M=this.j.decode(M,{stream:!w.done}))this.response=this.responseText+=M}w.done?ao(this):Oo(this);this.readyState==3&&BTz(this)}}; g.N.uA=function(w){this.B&&(this.response=this.responseText=w,ao(this))}; g.N.To=function(w){this.B&&(this.response=w,ao(this))}; g.N.h7=function(){this.B&&ao(this)}; g.N.setRequestHeader=function(w,M){this.S.append(w,M)}; g.N.getResponseHeader=function(w){return this.L?this.L.get(w.toLowerCase())||"":""}; g.N.getAllResponseHeaders=function(){if(!this.L)return"";for(var w=[],M=this.L.entries(),P=M.next();!P.done;)P=P.value,w.push(P[0]+": "+P[1]),P=M.next();return w.join("\r\n")}; g.N.setCredentialsMode=function(w){this.G=w}; Object.defineProperty(xj.prototype,"withCredentials",{get:function(){return this.G==="include"}, set:function(w){this.setCredentialsMode(w?"include":"same-origin")}});g.ic.prototype.toString=function(){var w=[],M=this.G;M&&w.push(fb(M,osx,!0),":");var P=this.B;if(P||M=="file")w.push("//"),(M=this.V)&&w.push(fb(M,osx,!0),"@"),w.push(g.TL(P).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),P=this.C,P!=null&&w.push(":",String(P));if(P=this.L)this.B&&P.charAt(0)!="/"&&w.push("/"),w.push(fb(P,P.charAt(0)=="/"?GR$:y5C,!0));(P=this.X.toString())&&w.push("?",P);(P=this.K)&&w.push("#",fb(P,DKt));return w.join("")}; g.ic.prototype.resolve=function(w){var M=this.clone(),P=!!w.G;P?g.Mb(M,w.G):P=!!w.V;P?M.V=w.V:P=!!w.B;P?g.PG(M,w.B):P=w.C!=null;var u=w.L;if(P)g.uc(M,w.C);else if(P=!!w.L){if(u.charAt(0)!="/")if(this.B&&!this.L)u="/"+u;else{var X=M.L.lastIndexOf("/");X!=-1&&(u=M.L.slice(0,X+1)+u)}X=u;if(X==".."||X==".")u="";else if(g.LE(X,"./")||g.LE(X,"/.")){u=dd(X,"/");X=X.split("/");for(var U=[],f=0;f1||U.length==1&&U[0]!="")&&U.pop(), u&&f==X.length&&U.push("")):(U.push(h),u=!0)}u=U.join("/")}else u=X}P?M.L=u:P=w.X.toString()!=="";P?Xy(M,w.X.clone()):P=!!w.K;P&&(M.K=w.K);return M}; g.ic.prototype.clone=function(){return new g.ic(this)}; var osx=/[#\/\?@]/g,y5C=/[#\?:]/g,GR$=/[#\?]/g,nXF=/[#\?@]/g,DKt=/#/g;g.N=UR.prototype;g.N.add=function(w,M){cG(this);this.C=null;w=ZZ(this,w);var P=this.B.get(w);P||this.B.set(w,P=[]);P.push(M);this.L=this.L+1;return this}; g.N.remove=function(w){cG(this);w=ZZ(this,w);return this.B.has(w)?(this.C=null,this.L=this.L-this.B.get(w).length,this.B.delete(w)):!1}; g.N.clear=function(){this.B=this.C=null;this.L=0}; g.N.isEmpty=function(){cG(this);return this.L==0}; g.N.forEach=function(w,M){cG(this);this.B.forEach(function(P,u){P.forEach(function(X){w.call(M,X,u,this)},this)},this)}; g.N.oN=function(){cG(this);for(var w=Array.from(this.B.values()),M=Array.from(this.B.keys()),P=[],u=0;u0?String(w[0]):M}; g.N.toString=function(){if(this.C)return this.C;if(!this.B)return"";for(var w=[],M=Array.from(this.B.keys()),P=0;P>>3;U.C!=1&&U.C!=2&&U.C!=15&&Fy(U,f,h,"unexpected tag");U.B=1;U.L=0;U.X=0} function P(c){U.X++;U.X==5&&c&240&&Fy(U,f,h,"message length too long");U.L|=(c&127)<<(U.X-1)*7;c&128||(U.B=2,U.V=0,typeof Uint8Array!=="undefined"?U.G=new Uint8Array(U.L):U.G=Array(U.L),U.L==0&&X())} function u(c){U.G[U.V++]=c;U.V==U.L&&X()} function X(){if(U.C<15){var c={};c[U.C]=U.G;U.j.push(c)}U.B=0} for(var U=this,f=w instanceof Array?w:new Uint8Array(w),h=0;h0?w:null};ER.prototype.isInputValid=function(){return this.B===null}; ER.prototype.Eq=function(){return this.B}; ER.prototype.n2=function(){return!1}; ER.prototype.parse=function(w){this.B!==null&&J0F(this,w,"stream already broken");var M=null;try{var P=this.C;P.C||gXu(P,w,"stream already broken");P.B+=w;var u=Math.floor(P.B.length/4);if(u==0)var X=null;else{try{var U=lN2(P.B.slice(0,u*4))}catch(f){gXu(P,P.B,f.message)}P.L+=u*4;P.B=P.B.slice(u*4);X=U}M=X===null?null:this.X.parse(X)}catch(f){J0F(this,w,f.message)}this.L+=w.length;return M};var YuE={INIT:0,rZ:1,TZ:2,N1:3,mU:4,EN:5,STRING:6,wT:7,lx:8,JN:9,S9:10,Pu:11,p_:12,E4:13,m9:14,RS:15,ix:16,NL:17,oV:18,Ss:19,jG:20};g.N=VX.prototype;g.N.isInputValid=function(){return this.G!=3}; g.N.Eq=function(){return this.S}; g.N.done=function(){return this.G===2}; g.N.n2=function(){return!1}; g.N.parse=function(w){function M(){for(;p0;)if(E=w[p++], U.V===4?U.V=0:U.V++,!E)break a;if(E==='"'&&!U.j){U.B=u();break}if(E==="\\"&&!U.j&&(U.j=!0,E=w[p++],!E))break;if(U.j)if(U.j=!1,E==="u"&&(U.V=1),E=w[p++])continue;else break;h.lastIndex=p;E=h.exec(w);if(!E){p=w.length+1;break}p=E.index+1;E=w[E.index];if(!E)break}U.C+=p-y;continue;case c.JN:if(!E)continue;E==="r"?U.B=c.S9:mK(U,w,p);continue;case c.S9:if(!E)continue;E==="u"?U.B=c.Pu:mK(U,w,p);continue;case c.Pu:if(!E)continue;E==="e"?U.B=u():mK(U,w,p);continue;case c.p_:if(!E)continue;E==="a"?U.B=c.E4: mK(U,w,p);continue;case c.E4:if(!E)continue;E==="l"?U.B=c.m9:mK(U,w,p);continue;case c.m9:if(!E)continue;E==="s"?U.B=c.RS:mK(U,w,p);continue;case c.RS:if(!E)continue;E==="e"?U.B=u():mK(U,w,p);continue;case c.ix:if(!E)continue;E==="u"?U.B=c.NL:mK(U,w,p);continue;case c.NL:if(!E)continue;E==="l"?U.B=c.oV:mK(U,w,p);continue;case c.oV:if(!E)continue;E==="l"?U.B=u():mK(U,w,p);continue;case c.Ss:E==="."?U.B=c.jG:mK(U,w,p);continue;case c.jG:if("0123456789.eE+-".indexOf(E)!==-1)continue;else p--,U.C--,U.B= u();continue;default:mK(U,w,p)}}} function u(){var E=f.pop();return E!=null?E:c.rZ} function X(E){U.L>1||(E||(E=H===-1?U.X+w.substring(S,p):w.substring(H,p)),U.B3?U.K.push(E):U.K.push(JSON.parse(E)),H=p)} for(var U=this,f=U.Lu,h=U.mN,c=YuE,Z=w.length,S=0,H=-1,p=0;p0?(F=U.K,U.K=[],F):null}return null};o3.prototype.isInputValid=function(){return this.G===null}; o3.prototype.Eq=function(){return this.G}; o3.prototype.n2=function(){return!1}; o3.prototype.parse=function(w){function M(c){U.L=6;U.G="The stream is broken @"+U.B+"/"+f+". Error: "+c+". With input:\n";throw Error(U.G);} function P(){U.C=new VX({sN3:!0,wd:!0})} function u(c){if(c)for(var Z=0;Z1)&&M("extra status: "+c);U.K=!0;var Z={};Z[2]=c[0];U.X.push(Z)}} for(var U=this,f=0;f0?(w=U.X,U.X=[],w):null};GV.prototype.ma=function(){return this.B}; GV.prototype.getStatus=function(){return this.G}; GV.prototype.B3=function(w){w=w.target;try{if(w==this.B)a:{var M=g.An(this.B),P=this.B.L,u=this.B.getStatus(),X=g.Jn(this.B);w=[];if(g.rb(this.B)instanceof Array){var U=g.rb(this.B);U.length>0&&U[0]instanceof Uint8Array&&(this.S=!0,w=U)}if(!(M<3||M==3&&!X&&w.length==0))if(u=u==200||u==206,M==4&&(P==8?yX(this,7):P==7?yX(this,8):u||yX(this,3)),this.L||(this.L=r0M(this.B),this.L==null&&yX(this,5)),this.G>2)DZ(this);else{if(w.length>this.C){var f=w.length;P=[];try{if(this.L.n2())for(var h=0;hthis.C){h=X.slice(this.C);this.C=X.length;try{var Z=this.L.parse(h);Z!=null&&this.X&&this.X(Z)}catch(S){yX(this,5);DZ(this);break a}}M==4?(X.length!= 0||this.S?yX(this,2):yX(this,4),DZ(this)):yX(this,1)}}}catch(S){yX(this,6),DZ(this)}};g.N=jLx.prototype;g.N.yp=function(w,M){var P=this.L[w];P||(P=[],this.L[w]=P);P.push(M);return this}; g.N.addListener=function(w,M){this.yp(w,M);return this}; g.N.removeListener=function(w,M){var P=this.L[w];P&&g.D4(P,M);(w=this.B[w])&&g.D4(w,M);return this}; g.N.once=function(w,M){var P=this.B[w];P||(P=[],this.B[w]=P);P.push(M);return this}; g.N.iuk=function(w){var M=this.L.data;M&&Cm_(w,M);(M=this.B.data)&&Cm_(w,M);this.B.data=[]}; g.N.JzI=function(){switch(this.C.getStatus()){case 1:qb(this,"readable");break;case 5:case 6:case 4:case 7:case 3:qb(this,"error");break;case 8:qb(this,"close");break;case 2:qb(this,"end")}};tVR.prototype.serverStreaming=function(w,M,P,u){var X=this,U=w.substring(0,w.length-u.name.length);return PYu(function(f){var h=f.qo,c=f.getMetadata(),Z=axx(X,!1);c=wWx(X,c,Z,U+h.getName());var S=iL2(Z,h.L,!0);f=h.B(f.uc);Z.send(c,"POST",f);return S},this.wV).call(this,u.j(M,P))};uHR.prototype.create=function(w,M,P){var u=this.B,X=this.L+"/$rpc/google.internal.waa.v1.Waa/Create";M=M||{};P=P===void 0?{}:P;return K81(u,X,w,M,mKA,P)};var XWx="://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(" "),$2H=/\bocr\b/;var fHp=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(w){throw w;}},{nTO:!0, NrK:!0,oTs:!1,zUK:tu4,Z0O:x_$,H09:!1,xu0:!1,i0k:!0,b0W:C24,VTI:!1,rlu:!1,zs3:!1});var TV=null,lc=!1,m2_=1,E4p=Symbol("SIGNAL"),Ng={version:0,N83:0,O$:!1,Ki:void 0,k5:void 0,a4:void 0,Qa:0,KN:void 0,b1:void 0,cn:!1,Pn:!1,kind:"unknown",sC:function(){return!1}, xx:function(){}, Bn:function(){}, TrO:function(){}};var VW=Symbol("UNSET"),mi=Symbol("COMPUTING"),oR=Symbol("ERRORED");Object.assign({},Ng,{value:VW,O$:!0,error:null,vS:zV,kind:"computed",sC:function(w){return w.value===VW||w.value===mi}, xx:function(w){if(w.value===mi)throw Error("");var M=w.value;w.value=mi;var P=cmp(w),u=!1;try{var X=w.Rx();dV(null);u=M!==VW&&M!==oR&&X!==oR&&w.vS(M,X)}catch(U){X=oR,w.error=U}finally{ZL4(w,P)}u?w.value=M:(w.value=X,w.version++)}});var Fl2=Object.assign({},Ng,{vS:zV,value:void 0,kind:"signal"});Object.assign({},Ng,{value:VW,O$:!0,error:null,vS:zV,kind:"linkedSignal",sC:function(w){return w.value===VW||w.value===mi}, xx:function(w){if(w.value===mi)throw Error("");var M=w.value;w.value=mi;var P=cmp(w);try{var u=w.source();var X=w.Rx(u,M===VW||M===oR?void 0:{source:w.PFK,value:M});w.PFK=u}catch(U){X=oR,w.error=U}finally{ZL4(w,P)}M!==VW&&X!==oR&&w.vS(M,X)?w.value=M:(w.value=X,w.version++)}});Object.assign({},Ng,{Pn:!0,cn:!1,Bn:function(w){w.schedule!==null&&w.schedule(w.gpO)}, hsO:!1,O09:function(){}});g.V(QX,g.WX);QX.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.HC.Pw(this.G);delete QX.instance}; QX.prototype.UH=function(){return this.B}; QX.prototype.Wl=function(){var w=this;this.G=this.HC.t5(function(){var M;return g.n(function(P){if(P.L==1)return w.B?((M=window.navigator)==null?0:M.onLine)?P.M0(3):g.B(P,BG(w),3):g.B(P,BG(w),3);w.Wl();g.yx(P)})},3E4)};R3.prototype.set=function(w,M){M=M===void 0?!0:M;0<=w&&w<52&&Number.isInteger(w)&&this.data[w]!==M&&(this.data[w]=M,this.B=-1)}; R3.prototype.get=function(w){return!!this.data[w]};var vG;g.Sp(g.AK,g.v);g.N=g.AK.prototype;g.N.start=function(){this.stop();this.X=!1;var w=D25(this),M=qJM(this);w&&!M&&this.L.mozRequestAnimationFrame?(this.B=g.x4(this.L,"MozBeforePaint",this.C),this.L.mozRequestAnimationFrame(null),this.X=!0):this.B=w&&M?w.call(this.L,this.C):this.L.setTimeout(I4y(this.C),20)}; g.N.stop=function(){if(this.isActive()){var w=D25(this),M=qJM(this);w&&!M&&this.L.mozRequestAnimationFrame?iO(this.B):w&&M?M.call(this.L,this.B):this.L.clearTimeout(this.B)}this.B=null}; g.N.isActive=function(){return this.B!=null}; g.N.NU=function(){this.X&&this.B&&iO(this.B);this.B=null;this.K.call(this.G,g.ca())}; g.N.v3=function(){this.stop();g.AK.Ik.v3.call(this)};g.Sp(g.gV,g.v);g.N=g.gV.prototype;g.N.nj=0;g.N.v3=function(){g.gV.Ik.v3.call(this);this.stop();delete this.B;delete this.L}; g.N.start=function(w){this.stop();this.nj=g.BX(this.C,w!==void 0?w:this.Hb)}; g.N.stop=function(){this.isActive()&&g.aF.clearTimeout(this.nj);this.nj=0}; g.N.isActive=function(){return this.nj!=0}; g.N.E_=function(){this.nj=0;this.B&&this.B.call(this.L)};g.V(g.Cb,g.v);g.N=g.Cb.prototype;g.N.Up=function(w){this.C=arguments;this.jZ||this.L?this.B=!0:tK(this)}; g.N.stop=function(){this.jZ&&(g.aF.clearTimeout(this.jZ),this.jZ=null,this.B=!1,this.C=null)}; g.N.pause=function(){this.L++}; g.N.resume=function(){this.L--;this.L||!this.B||this.jZ||(this.B=!1,tK(this))}; g.N.v3=function(){g.v.prototype.v3.call(this);this.stop()};g.xO.prototype[Symbol.iterator]=function(){return this}; g.xO.prototype.next=function(){var w=this.B.next();return{value:w.done?void 0:this.L.call(void 0,w.value),done:w.done}};g.Sp(g.$R,g.WX);g.N=g.$R.prototype;g.N.isPlaying=function(){return this.B==1}; g.N.isPaused=function(){return this.B==-1}; g.N.nm=function(){this.e2("begin")}; g.N.XE=function(){this.e2("end")}; g.N.onFinish=function(){this.e2("finish")}; g.N.onStop=function(){this.e2("stop")}; g.N.e2=function(w){this.dispatchEvent(w)};var z0j=BS(function(){var w=g.HS("DIV"),M=g.h1?"-webkit":gS?"-moz":null,P="transition:opacity 1s linear;";M&&(P+=M+"-transition:opacity 1s linear;");M=dj4({style:P});if(w.nodeType===1&&/^(script|style)$/i.test(w.tagName))throw Error("");w.innerHTML=pQ(M);return g.J1(w.firstChild,"transition")!=""});g.Sp(UN,g.$R);g.N=UN.prototype;g.N.play=function(){if(this.isPlaying())return!1;this.nm();this.e2("play");this.startTime=g.ca();this.B=1;if(z0j())return g.A1(this.L,this.K),this.C=g.BX(this.aO3,void 0,this),!0;this.Kw(!1);return!1}; g.N.aO3=function(){g.iy(this.L);Tn_(this.L,this.j);g.A1(this.L,this.X);this.C=g.BX((0,g.fC)(this.Kw,this,!1),this.G*1E3)}; g.N.stop=function(){this.isPlaying()&&this.Kw(!0)}; g.N.Kw=function(w){g.A1(this.L,"transition","");g.aF.clearTimeout(this.C);g.A1(this.L,this.X);this.endTime=g.ca();this.B=0;if(w)this.onStop();else this.onFinish();this.XE()}; g.N.v3=function(){this.stop();UN.Ik.v3.call(this)}; g.N.pause=function(){};var lHl={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};f_("Element","attributes")||f_("Node","attributes");f_("Element","innerHTML")||f_("HTMLElement","innerHTML");f_("Node","nodeName");f_("Node","nodeType");f_("Node","parentNode");f_("Node","childNodes");f_("HTMLElement","style")||f_("Element","style");f_("HTMLStyleElement","sheet");var RqM=eqU("getPropertyValue"),n4z=eqU("setProperty");f_("Element","namespaceURI")||f_("Node","namespaceURI");var kK2={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var bLy,vMU,KlH,suF,IHH;bLy=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]");vMU=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.Tdt=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.h_=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]");KlH=/^http:\/\/.*/;g.dKc=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");suF=/\s+/;IHH=/[\d\u06f0-\u06f9]/;ZW.prototype.Sx=function(){return new SD(this.L())}; ZW.prototype[Symbol.iterator]=function(){return new HI(this.L())}; ZW.prototype.B=function(){return new HI(this.L())}; g.V(SD,g.Vl);SD.prototype.next=function(){return this.L.next()}; SD.prototype[Symbol.iterator]=function(){return new HI(this.L)}; SD.prototype.B=function(){return new HI(this.L)}; g.V(HI,ZW);HI.prototype.next=function(){return this.C.next()};F6.prototype.clone=function(){return new F6(this.B,this.j,this.C,this.G,this.X,this.K,this.L,this.V)}; F6.prototype.equals=function(w){return this.B==w.B&&this.j==w.j&&this.C==w.C&&this.G==w.G&&this.X==w.X&&this.K==w.K&&this.L==w.L&&this.V==w.V};NB.prototype.clone=function(){return new NB(this.start,this.end)};(function(){if(J64){var w=/Windows NT ([0-9.]+)/;return(w=w.exec(g.RK()))?w[1]:"0"}return P$?(w=/1[0|1][_.][0-9_.]+/,(w=w.exec(g.RK()))?w[0].replace(/_/g,"."):"10"):g.CB?(w=/Android\s+([^\);]+)(\)|;)/,(w=w.exec(g.RK()))?w[1]:""):waU||iC3||Mp$?(w=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(w=w.exec(g.RK()))?w[1].replace(/_/g,"."):""):""})();var g4x=function(){if(g.$I)return V6(/Firefox\/([0-9.]+)/);if(g.WI||g.Im||g.vM)return GcF;if(g.p3){if(nQ()||v1()){var w=V6(/CriOS\/([0-9.]+)/);if(w)return w}return V6(/Chrome\/([0-9.]+)/)}if(g.HN&&!nQ())return V6(/Version\/([0-9.]+)/);if(JD||r$){if(w=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.RK()))return w[1]+"."+w[2]}else if(g.sk)return(w=V6(/Android\s+([0-9.]+)/))?w:V6(/Version\/([0-9.]+)/);return""}();g.Sp(g.oC,g.v);g.N=g.oC.prototype;g.N.subscribe=function(w,M,P){var u=this.L[w];u||(u=this.L[w]=[]);var X=this.K;this.B[X]=w;this.B[X+1]=M;this.B[X+2]=P;this.K=X+3;u.push(X);return X}; g.N.unsubscribe=function(w,M,P){if(w=this.L[w]){var u=this.B;if(w=w.find(function(X){return u[X+1]==M&&u[X+2]==P}))return this.HZ(w)}return!1}; g.N.HZ=function(w){var M=this.B[w];if(M){var P=this.L[M];this.X!=0?(this.C.push(w),this.B[w+1]=function(){}):(P&&g.D4(P,w),delete this.B[w],delete this.B[w+1],delete this.B[w+2])}return!!M}; g.N.publish=function(w,M){var P=this.L[w];if(P){var u=Array(arguments.length-1),X=arguments.length,U;for(U=1;U0&&this.X==0)for(;P=this.C.pop();)this.HZ(P)}}return U!=0}return!1}; g.N.clear=function(w){if(w){var M=this.L[w];M&&(M.forEach(this.HZ,this),delete this.L[w])}else this.B.length=0,this.L={}}; g.N.v3=function(){g.oC.Ik.v3.call(this);this.clear();this.C.length=0};g.Gy.prototype.set=function(w,M){M===void 0?this.B.remove(w):this.B.set(w,g.ny(M))}; g.Gy.prototype.get=function(w){try{var M=this.B.get(w)}catch(P){return}if(M!==null)try{return JSON.parse(M)}catch(P){throw"Storage: Invalid value was encountered";}}; g.Gy.prototype.remove=function(w){this.B.remove(w)};g.Sp(y6,g.Gy);y6.prototype.set=function(w,M){y6.Ik.set.call(this,w,juy(M))}; y6.prototype.L=function(w){w=y6.Ik.get.call(this,w);if(w===void 0||w instanceof Object)return w;throw"Storage: Invalid value was encountered";}; y6.prototype.get=function(w){if(w=this.L(w)){if(w=w.data,w===void 0)throw"Storage: Invalid value was encountered";}else w=void 0;return w};g.Sp(DW,y6);DW.prototype.set=function(w,M,P){if(M=juy(M)){if(P){if(P=P.length)return g.S4;var X=P.key(M++);if(w)return g.m8(X);X=P.getItem(X);if(typeof X!=="string")throw"Storage mechanism: Invalid value was encountered";return g.m8(X)}; return u}; g.N.clear=function(){Ty(this);this.B.clear()}; g.N.key=function(w){Ty(this);return this.B.key(w)};g.Sp(d1,zy);g.Sp(x21,zy);g.Sp(lo,YR);lo.prototype.set=function(w,M){this.L.set(this.B+w,M)}; lo.prototype.get=function(w){return this.L.get(this.B+w)}; lo.prototype.remove=function(w){this.L.remove(this.B+w)}; lo.prototype.Sx=function(w){var M=this.L[Symbol.iterator](),P=this,u=new g.Vl;u.next=function(){var X=M.next();if(X.done)return X;for(X=X.value;X.slice(0,P.B.length)!=P.B;){X=M.next();if(X.done)return X;X=X.value}return g.m8(w?X.slice(P.B.length):P.L.get(X))}; return u};eD.prototype.getValue=function(){return this.L}; eD.prototype.clone=function(){return new eD(this.B,this.L)};g.N=BI.prototype;g.N.Yb=function(w,M){var P=this.B;P.push(new eD(w,M));w=P.length-1;M=this.B;for(P=M[w];w>0;){var u=w-1>>1;if(M[u].B>P.B)M[w]=M[u],w=u;else break}M[w]=P}; g.N.remove=function(){var w=this.B,M=w.length,P=w[0];if(!(M<=0)){if(M==1)w.length=0;else{w[0]=w.pop();w=0;M=this.B;for(var u=M.length,X=M[w];w>1;){var U=w*2+1,f=w*2+2;U=fX.B)break;M[w]=M[U];w=U}M[w]=X}return P.getValue()}}; g.N.yX=function(){for(var w=this.B,M=[],P=w.length,u=0;u>>16&65535|0;for(var U;P!==0;){U=P>2E3?2E3:P;P-=U;do X=X+M[u++]|0,w=w+X|0;while(--U);X%=65521;w%=65521}return X|w<<16|0};for(var Wi={},GY,QKh=[],yW=0;yW<256;yW++){GY=yW;for(var kRU=0;kRU<8;kRU++)GY=GY&1?3988292384^GY>>>1:GY>>>1;QKh[yW]=GY}Wi=function(w,M,P,u){P=u+P;for(w^=-1;u>>8^QKh[(w^M[u])&255];return w^-1};var aC={};aC={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 J_=[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],C_=[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],GS1=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],cnM=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Pi=Array(576);n_(Pi);var uU=Array(60);n_(uU);var jD=Array(512);n_(jD);var g1=Array(256);n_(g1);var r1=Array(29);n_(r1);var t_=Array(30);n_(t_);var V7y,mau,ovz,Nbp=!1;var Hi;Hi=[new S2(0,0,0,0,function(w,M){var P=65535;for(P>w.aB-5&&(P=w.aB-5);;){if(w.ip<=1){hR(w);if(w.ip===0&&M===0)return 1;if(w.ip===0)break}w.R9+=w.ip;w.ip=0;var u=w.p$+P;if(w.R9===0||w.R9>=u)if(w.ip=w.R9-u,w.R9=u,Xq(w,!1),w.Tt.Jw===0)return 1;if(w.R9-w.p$>=w.mQ-262&&(Xq(w,!1),w.Tt.Jw===0))return 1}w.Yb=0;if(M===4)return Xq(w,!0),w.Tt.Jw===0?3:4;w.R9>w.p$&&Xq(w,!1);return 1}), new S2(4,4,8,4,ci),new S2(4,5,16,8,ci),new S2(4,6,32,32,ci),new S2(4,4,16,16,ZY),new S2(8,16,32,32,ZY),new S2(8,16,128,128,ZY),new S2(8,32,128,256,ZY),new S2(32,128,258,1024,ZY),new S2(32,258,258,4096,ZY)];var EvF={};EvF=function(){this.input=null;this.M1=this.Xt=this.MX=0;this.output=null;this.DW=this.Jw=this.nM=0;this.msg="";this.state=null;this.ZH=2;this.Mf=0};var yn4=Object.prototype.toString; pR.prototype.push=function(w,M){var P=this.Tt,u=this.options.chunkSize;if(this.ended)return!1;var X=M===~~M?M:M===!0?4:0;typeof w==="string"?P.input=wXR(w):yn4.call(w)==="[object ArrayBuffer]"?P.input=new Uint8Array(w):P.input=w;P.MX=0;P.Xt=P.input.length;do{P.Jw===0&&(P.output=new RC.G_(u),P.nM=0,P.Jw=u);w=FqR(P,X);if(w!==1&&w!==0)return this.XE(w),this.ended=!0,!1;if(P.Jw===0||P.Xt===0&&(X===4||X===2))if(this.options.to==="string"){var U=RC.fz(P.output,P.nM);M=U;U=U.length;if(U<65537&&(M.subarray&& BdC||!M.subarray))M=String.fromCharCode.apply(null,RC.fz(M,U));else{for(var f="",h=0;h0||P.Jw===0)&&w!==1);if(X===4)return(P=this.Tt)&&P.state?(u=P.state.status,u!==42&&u!==69&&u!==73&&u!==91&&u!==103&&u!==113&&u!==666?w=wo(P,-2):(P.state=null,w=u===113?wo(P,-3):0)):w=-2,this.XE(w),this.ended=!0,w===0;X===2&&(this.XE(0),P.Jw=0);return!0}; pR.prototype.XE=function(w){w===0&&(this.result=this.options.to==="string"?this.chunks.join(""):RC.tJ(this.chunks));this.chunks=[];this.err=w;this.msg=this.Tt.msg};var EK="@@redux/INIT"+Fq(),daz="@@redux/REPLACE"+Fq();var lG1=typeof Symbol==="function"&&Symbol.observable||"@@observable";var R0j=[0,bCj,-3,hU];g.V(QVl,oP);var oYR=function(){var w=[0,Axp,I4U,$z,bCj,$z,-1,hU,bCj,hU,-1,Axp,hU,I4U,U5,R0j,$z,-1,hU];return function(M,P){var u={wA:!0};P&&Object.assign(u,P);M=AT5(M,void 0,void 0,u);try{var X=new QVl,U=X.q0;L9(w)(U,M);var f=X}finally{M.free()}return f}}();var kSx=1189999839;var O0H=new g.og("adInfoDialogEndpoint");var l2x=new g.og("adPingingEndpoint");var Ofz=new g.og("crossDeviceProgressCommand");var FJ=new g.og("actionCompanionAdRenderer");var rw=new g.og("adActionInterstitialRenderer");var nsc=new g.og("adDurationRemainingRenderer");var t7=new g.og("adHoverTextButtonRenderer");var thR=new g.og("adInfoDialogRenderer");var eL=new g.og("adMessageRenderer");var x7=new g.og("adPreviewRenderer");var NS=new g.og("adsEngagementPanelRenderer");var q7p=new g.og("dismissablePanelTextPortraitImageRenderer");var ycM=new g.og("adsEngagementPanelSectionListViewModel");var vst=new g.og("flyoutCtaRenderer");var EG=new g.og("imageCompanionAdRenderer");var gw=new g.og("instreamAdPlayerOverlayRenderer");var ul$=new g.og("instreamSurveyAdBackgroundImageRenderer");var C8=new g.og("instreamSurveyAdPlayerOverlayRenderer");var R8=new g.og("instreamSurveyAdRenderer"),jJ=new g.og("instreamSurveyAdSingleSelectQuestionRenderer"),ru=new g.og("instreamSurveyAdMultiSelectQuestionRenderer"),DX=new g.og("instreamSurveyAdAnswerRenderer"),sKx=new g.og("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var Qz=new g.og("instreamVideoAdRenderer");var K4x=new g.og("textOverlayAdContentRenderer"),bE4=new g.og("enhancedTextOverlayAdContentRenderer"),INU=new g.og("imageOverlayAdContentRenderer");var JJ=new g.og("playerOverlayLayoutRenderer");var jT=new g.og("videoInterstitialButtonedCenteredLayoutRenderer");var lby=new g.og("aboveFeedAdLayoutRenderer");var LX4=new g.og("belowPlayerAdLayoutRenderer");var dHx=new g.og("inPlayerAdLayoutRenderer");var sG=new g.og("playerBytesAdLayoutRenderer");var J7=new g.og("playerBytesSequenceItemAdLayoutRenderer");var gu=new g.og("playerUnderlayAdLayoutRenderer");var k7=new g.og("adIntroRenderer");var eJ=new g.og("playerBytesSequentialLayoutRenderer");var hs1=new g.og("slidingTextPlayerOverlayRenderer");var n8=new g.og("surveyTextInterstitialRenderer");var K8=new g.og("videoAdTrackingRenderer");var mHU=new g.og("videoInterstitialCenteredLayoutViewModel");var A5h=new g.og("simpleAdBadgeRenderer");var mt=new g.og("skipAdRenderer"),gsU=new g.og("skipButtonRenderer");var is=new g.og("adSlotRenderer");var I8=new g.og("squeezebackPlayerSidePanelRenderer");var J5c=new g.og("timedPieCountdownRenderer");var CX=new g.og("adAvatarViewModel");var tp=new g.og("adBadgeViewModel");var x2=new g.og("adButtonViewModel");var r5h=new g.og("adDetailsLineViewModel");var jK4=new g.og("adDisclosureBannerViewModel");var CAc=new g.og("adPodIndexViewModel");var tFh=new g.og("imageBackgroundViewModel");var xK4=new g.og("adGridCardCollectionViewModel");var OE3=new g.og("adGridCardTextViewModel");var aNa=new g.og("adPreviewViewModel");var w1U=new g.og("playerAdAvatarLockupCardButtonedViewModel");var iQV=new g.og("skipAdButtonViewModel");var Mt4=new g.og("skipAdViewModel");var Pi4=new g.og("timedPieCountdownViewModel");var ujh=new g.og("visitAdvertiserLinkViewModel");var Vz=new g.og("bannerImageLayoutViewModel");var mH=new g.og("topBannerImageTextIconButtonedLayoutViewModel");var T1=new g.og("adsEngagementPanelLayoutViewModel");var A7=new g.og("displayUnderlayTextGridCardsLayoutViewModel");g.nk=new g.og("browseEndpoint");var X1j=new g.og("confirmDialogEndpoint");var Qkp=new g.og("commandContext");var ZBx=new g.og("rawColdConfigGroup");var cD1=new g.og("rawHotConfigGroup");g.cj=new g.og("commandExecutorCommand");g.V(nvM,oP);var oez={KtW:0,wC9:1,on$:32,qTN:61,Lhu:67,cc3:103,ST$:86,NYu:42,zkL:60,TY9:62,baN:73,HaW:76,PgW:88,fNu:90,INN:99,nn3:98,BrK:100,Aq3:102,p9W:41,vT3:69,ETs:70,muI:71,KA0:2,FAO:27,ANDROID:3,t0N:54,lqu:14,AVk:91,YH0:55,V0L:24,nbW:20,i9W:18,obW:21,zh9:104,qH3:30,c53:29,Pv$:28,hku:101,fV$:34,b9u:36,N5I:38,IOS:5,ytK:15,eHK:92,XwL:40,dEu:25,UEO:17,K8O:19,F8L:64,kj$:66,sE3:26,DEW:22,hHN:33,ONL:68,geK:35,xEO:53,Gj3:37,W8$:39,LtO:7,IIk:57,pCk:43,Enu:59,vn$:93,SH0:74,Rk3:75,rq3:85,CE$:65,yq3:80,XCN:8,fIu:10, dr$:58,Wt$:63,M2N:72,JVO:23,Cgu:11,MTW:13,aV$:12,BY0:16,ia$:56,Jq3:31,XI3:77,YGu:84,Za$:87,n6K:89,VAN:94,fYK:95};g.V(GX,oP);GX.prototype.l$=function(){return TQ(this,3)}; GX.prototype.Zt=function(){return TQ(this,5)}; GX.prototype.jB=function(w){return BR(this,5,w)};g.V(yb,oP);g.V(vvH,oP);g.V(DY,oP);g.N=DY.prototype;g.N.getDeviceId=function(){return TQ(this,6)}; g.N.Tb=function(w){var M=ue(this,9,SM,3,!0);Jd(M,w);return M[w]}; g.N.getPlayerType=function(){return dY(this,36)}; g.N.setHomeGroupInfo=function(w){return yU(this,vvH,81,w)}; g.N.clearLocationPlayabilityToken=function(){return a9(this,89)};g.V(qT,oP);qT.prototype.getValue=function(){return TQ(this,HR(this,W5U,2))}; var W5U=[2,3,4,5,6];g.V(Yh,oP);Yh.prototype.setTrackingParams=function(w){return a9(this,1,INy(w,!1))};g.V(zX,oP);g.V(TX,oP);TX.prototype.Tb=function(w){var M=ue(this,5,HA,3,!0);Jd(M,w);return M[w]};g.V(lU,oP);lU.prototype.getToken=function(){return LH(this,2)}; lU.prototype.setToken=function(w){return BR(this,2,w)};g.V(LR,oP);LR.prototype.setSafetyMode=function(w){return kG(this,5,w)};g.V(e2,oP);e2.prototype.vc=function(w){return yU(this,DY,1,w)};var a8=new g.og("thumbnailLandscapePortraitRenderer");g.$EC=new g.og("changeEngagementPanelVisibilityAction");var YUx=new g.og("continuationCommand");g.UEE=new g.og("openPopupAction");g.qg=new g.og("webCommandMetadata");var O8R=new g.og("metadataBadgeRenderer");var qU2=new g.og("signalServiceEndpoint");var Tw=new g.og("innertubeCommand");var Wmy=new g.og("loggingDirectives");var yCl={MA$:"EMBEDDED_PLAYER_MODE_UNKNOWN",RAN:"EMBEDDED_PLAYER_MODE_DEFAULT",CI3:"EMBEDDED_PLAYER_MODE_PFP",rFu:"EMBEDDED_PLAYER_MODE_PFL"};var D$4=new g.og("channelThumbnailEndpoint");var yXR=new g.og("embeddedPlayerErrorMessageRenderer");var VLR=new g.og("embeddedPlayerOverlayVideoDetailsRenderer"),q2F=new g.og("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),Y2y=new g.og("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var C_U=new g.og("embedsInfoPanelRenderer");var f7h=new g.og("feedbackEndpoint");var WAc=new g.og("callToActionButtonViewModel");var hxE=new g.og("interactionLoggingCommandMetadata");var N1p={V2W:"WEB_DISPLAY_MODE_UNKNOWN",uW$:"WEB_DISPLAY_MODE_BROWSER",lIk:"WEB_DISPLAY_MODE_MINIMAL_UI",YTL:"WEB_DISPLAY_MODE_STANDALONE",t2K:"WEB_DISPLAY_MODE_FULLSCREEN"};g.V(Bi,oP);Bi.prototype.getPlayerType=function(){return dY(this,7)}; Bi.prototype.tp=function(){return TQ(this,19)}; Bi.prototype.setVideoId=function(w){return BR(this,19,w)};g.V(Qb,oP);g.V(kh,oP);g.V(Rg,oP); var cTV=[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];var ZQC=new g.og("loggingContext");g.V(nR,oP);g.V(KR,oP);KR.prototype.tp=function(){return LH(this,HR(this,MU,1))}; KR.prototype.setVideoId=function(w){return Zh(this,1,MU,D3(w))}; KR.prototype.getPlaylistId=function(){return LH(this,HR(this,MU,2))}; var MU=[1,2];g.V(sV5,oP);var Sx=new g.og("changeKeyedMarkersVisibilityCommand");var ScC=new g.og("changeMarkersVisibilityCommand");var w8F=new g.og("loadMarkersCommand");var HQE=new g.og("suggestedActionDataViewModel");var sk1=new g.og("timelyActionViewModel");var vdp=new g.og("timelyActionsOverlayViewModel");var C92=new g.og("productListItemRenderer");var p1j=new g.og("shoppingOverlayRenderer");var m$y=new g.og("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var FAE=new g.og("adFeedbackEndpoint");var EaC=new g.og("menuEndpoint");var iT2=new g.og("phoneDialerEndpoint");var aDu=new g.og("sendSmsEndpoint");var NZH=new g.og("copyTextEndpoint");var Nq$=new g.og("shareEndpoint"),Vtj=new g.og("shareEntityEndpoint"),mEE=new g.og("shareEntityServiceEndpoint"),oaC=new g.og("webPlayerShareEntityServiceEndpoint");g.lu=new g.og("urlEndpoint");g.c7=new g.og("watchEndpoint");var GLC=new g.og("watchPlaylistEndpoint");g.yTV=new g.og("offlineOrchestrationActionCommand");var z61=new g.og("compositeVideoOverlayRenderer");var DEh=new g.og("miniplayerRenderer");var FE5=new g.og("paidContentOverlayRenderer");var qcp=new g.og("playerMutedAutoplayOverlayRenderer"),Yc4=new g.og("playerMutedAutoplayEndScreenRenderer");var hFx=new g.og("unserializedPlayerResponse"),zxU=new g.og("unserializedPlayerResponse");var Tqa=new g.og("playlistEditEndpoint");var Yz;g.OG=new g.og("buttonRenderer");Yz=new g.og("toggleButtonRenderer");var Gvu=new g.og("counterfactualRenderer");var dEV=new g.og("resolveUrlCommandMetadata");var l73=new g.og("modifyChannelNotificationPreferenceEndpoint");var dWR=new g.og("pingingEndpoint");var LAa=new g.og("unsubscribeEndpoint");g.v7=new g.og("subscribeButtonRenderer");var exh=new g.og("subscribeEndpoint");var Iop=new g.og("buttonViewModel");var DHz=new g.og("qrCodeRenderer");var yQU={ZNL:"LIVING_ROOM_APP_MODE_UNSPECIFIED",NkN:"LIVING_ROOM_APP_MODE_MAIN",iNW:"LIVING_ROOM_APP_MODE_KIDS",oeu:"LIVING_ROOM_APP_MODE_MUSIC",zH9:"LIVING_ROOM_APP_MODE_UNPLUGGED",neN:"LIVING_ROOM_APP_MODE_GAMING"};var J7_=new g.og("autoplaySwitchButtonRenderer");var v0,bl5,E7F,aQy;v0=new g.og("decoratedPlayerBarRenderer");bl5=new g.og("chapteredPlayerBarRenderer");E7F=new g.og("multiMarkersPlayerBarRenderer");aQy=new g.og("chapterRenderer");g.JV1=new g.og("markerRenderer");var uz2=new g.og("decoratedPlayheadRenderer");var tJy=new g.og("desktopOverlayConfigRenderer");var Y7_=new g.og("engagementPanelSectionListRenderer");var j8M=new g.og("gatedActionsOverlayViewModel");var tkU=new g.og("heatMarkerRenderer");var CHl=new g.og("heatmapRenderer");var an_=new g.og("watchToWatchTransitionRenderer");var oH5=new g.og("playlistPanelRenderer");var Bq3=new g.og("productUpsellSuggestedActionViewModel");var Q7V=new g.og("suggestedActionTimeRangeTrigger"),kL$=new g.og("suggestedActionsRenderer"),Rxt=new g.og("suggestedActionRenderer");var x4x=new g.og("timedMarkerDecorationRenderer");var nC1=new g.og("cipher");var c74=new g.og("playerVars");var nat=new g.og("playerVars");var zY=g.aF.window,vaV,s73,bU=(zY==null?void 0:(vaV=zY.yt)==null?void 0:vaV.config_)||(zY==null?void 0:(s73=zY.ytcfg)==null?void 0:s73.data_)||{};g.ih("yt.config_",bU);var JR=[];var t7y=/^[\w.]*$/,Jny={q:!0,search_query:!0},gv1=String(tR);var $S=new function(){var w=window.document;this.B=window;this.L=w}; g.ih("yt.ads_.signals_.getAdSignalsString",function(w){return xh(fB(w))});g.ca();var Oy5="XMLHttpRequest"in g.aF?function(){return new XMLHttpRequest}:null;var KAj="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.L(KAj);var M6u={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"},Soy="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.L(KAj)),Wv4=!1,$Mp=m5;g.V(yg,Ha);YS.prototype.then=function(w,M,P){return this.B?this.B.then(w,M,P):this.C===1&&w?(w=w.call(P,this.L))&&typeof w.then==="function"?w:TZ(w):this.C===2&&M?(w=M.call(P,this.L))&&typeof w.then==="function"?w:zZ(w):this}; YS.prototype.getValue=function(){return this.L}; YS.prototype.$goog_Thenable=!0;var d$=!1;var bb=JD||r$;var oj1=/^([0-9\.]+):([0-9\.]+)$/;g.V(f0,Ha);f0.prototype.name="BiscottiError";g.V(Um,Ha);Um.prototype.name="BiscottiMissingError";var qoM={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Wn=null;var MpF=Fl(["data-"]),QoR={};var bQj=0,hS=g.h1?"webkit":gS?"moz":g.WI?"ms":g.vM?"o":"",I7V=g.Mj("ytDomDomGetNextId")||function(){return++bQj}; g.ih("ytDomDomGetNextId",I7V);var vj1={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};Fr.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Fr.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; Fr.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Em=g.aF.ytEventsEventsListeners||{};g.ih("ytEventsEventsListeners",Em);var bZ1=g.aF.ytEventsEventsCounter||{count:0};g.ih("ytEventsEventsCounter",bZ1);var JCl=BS(function(){var w=!1;try{var M=Object.defineProperty({},"passive",{get:function(){w=!0}}); window.addEventListener("test",null,M)}catch(P){}return w}),Iip=BS(function(){var w=!1; try{var M=Object.defineProperty({},"capture",{get:function(){w=!0}}); window.addEventListener("test",null,M)}catch(P){}return w});var TY;TY=window;g.G$=TY.ytcsi&&TY.ytcsi.now?TY.ytcsi.now:TY.performance&&TY.performance.timing&&TY.performance.now&&TY.performance.timing.navigationStart?function(){return TY.performance.timing.navigationStart+TY.performance.now()}:function(){return(new Date).getTime()};g.Sp(Gg,g.v);Gg.prototype.S=function(w){w.B===void 0&&sop(w);var M=w.B;w.L===void 0&&sop(w);this.B=new g.gq(M,w.L)}; Gg.prototype.jX=function(){return this.B||new g.gq}; Gg.prototype.B3=function(){if(this.B){var w=(0,g.G$)();if(this.X!=0){var M=this.K,P=this.B,u=M.x-P.x;M=M.y-P.y;u=Math.sqrt(u*u+M*M)/(w-this.X);this.L[this.C]=Math.abs((u-this.G)/this.G)>.5?1:0;for(P=M=0;P<4;P++)M+=this.L[P]||0;M>=3&&this.j();this.G=u}this.X=w;this.K=this.B;this.C=(this.C+1)%4}}; Gg.prototype.v3=function(){g.HF(this.V);g.Vh(this.Lu)};g.V(yh,g.v);yh.prototype.Y=function(w,M,P,u,X){P=g.j2((0,g.fC)(P,u||this.fg));P={target:w,name:M,callback:P};var U;X&&JCl()&&(U={passive:!0});w.addEventListener(M,P.callback,U);this.j.push(P);return P}; yh.prototype.Mt=function(w){for(var M=0;M=I.XW)||q.B.version>=w4||q.B.objectStoreNames.contains(R)||l.push(R)}c=l;if(c.length===0){y.M0(5);break}Z=Object.keys(P.options.Mk); S=h.objectStoreNames();if(P.GP.options.version+1)throw p.close(),P.C=!1,eTl(P,F);return y.return(p);case 8:throw M(), H instanceof Error&&!g.FW("ytidb_async_stack_killswitch")&&(H.stack=H.stack+"\n"+f.substring(f.indexOf("\n")+1)),pA(H,P.name,"",(E=P.options.version)!=null?E:-1);}})} function M(){P.B===u&&(P.B=void 0)} var P=this;if(!this.C)throw eTl(this);if(this.B)return this.B;var u,X={blocking:function(U){U.close()}, closed:M,WFN:M,upgrade:this.options.upgrade};return this.B=u=w()};var sU=new nA("YtIdbMeta",{Mk:{databases:{XW:1}},upgrade:function(w,M){M(1)&&g.Dl(w,"databases",{keyPath:"actualName"})}});var gK,Ah=new function(){}(new function(){});new g.hC;g.V(jP,nA);jP.prototype.L=function(w,M,P){P=P===void 0?{}:P;return(this.options.shared?bb5:KKz)(w,M,Object.assign({},P))}; jP.prototype.delete=function(w){w=w===void 0?{}:w;return(this.options.shared?JKx:IZp)(this.name,w)};var OQ$={},j34=g.CA("ytGcfConfig",{Mk:(OQ$.coldConfigStore={XW:1},OQ$.hotConfigStore={XW:1},OQ$),shared:!1,upgrade:function(w,M){M(1)&&(g.lb(g.Dl(w,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.lb(g.Dl(w,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.V(x1,g.v);x1.prototype.v3=function(){for(var w=g.G(this.L),M=w.next();!M.done;M=w.next()){var P=this.B;M=P.indexOf(M.value);M>=0&&P.splice(M,1)}this.L.length=0;g.v.prototype.v3.call(this)};Pb.prototype.jB=function(w){this.hotHashData=w;g.ih("yt.gcf.config.hotHashData",this.hotHashData||null)};var a7C=typeof TextEncoder!=="undefined"?new TextEncoder:null,Ruz=a7C?function(w){return a7C.encode(w)}:function(w){w=g.qq(w); for(var M=new Uint8Array(w.length),P=0;P=M?!1:!0}; g.N.HD=function(){var w=this;if(!YQ(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.V8.pL("QUEUED",this.ZC).then(function(M){M&&!w.Nl(M,w.DP)?w.HC.t5(function(){return g.n(function(P){if(P.L==1)return M.id===void 0?P.M0(2):g.B(P,w.V8.dU(M.id,w.ZC),2);w.HD();g.yx(P)})}):w.K9.UH()&&w.Ar()})};var d9;var pFH={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468, miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490, shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521};var ij$={},iR5=g.CA("ServiceWorkerLogsDatabase",{Mk:(ij$.SWHealthLog={XW:1},ij$),shared:!0,upgrade:function(w,M){M(1)&&g.lb(g.Dl(w,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var eU={},UT1=0;var Bb;kQ.prototype.requestComplete=function(w,M){M&&(this.L=!0);w=this.removeParams(w);this.B.get(w)||this.B.set(w,M)}; kQ.prototype.isEndpointCFR=function(w){w=this.removeParams(w);return(w=this.B.get(w))?!1:w===!1&&this.L?!0:null}; kQ.prototype.removeParams=function(w){return w.split("?")[0]}; kQ.prototype.removeParams=kQ.prototype.removeParams;kQ.prototype.isEndpointCFR=kQ.prototype.isEndpointCFR;kQ.prototype.requestComplete=kQ.prototype.requestComplete;kQ.getInstance=RX;g.V(nd,g.WX);g.N=nd.prototype;g.N.UH=function(){return this.B.UH()}; g.N.rH=function(w){this.B.B=w}; g.N.XI=function(){var w=window.navigator.onLine;return w===void 0?!0:w}; g.N.Hs=function(){this.L=!0}; g.N.listen=function(w,M){return this.B.listen(w,M)}; g.N.PT=function(w){w=BG(this.B,w);w.then(function(M){g.FW("use_cfr_monitor")&&RX().requestComplete("generate_204",M)}); return w}; nd.prototype.sendNetworkCheckRequest=nd.prototype.PT;nd.prototype.listen=nd.prototype.listen;nd.prototype.enableErrorFlushing=nd.prototype.Hs;nd.prototype.getWindowStatus=nd.prototype.XI;nd.prototype.networkStatusHint=nd.prototype.rH;nd.prototype.isNetworkAvailable=nd.prototype.UH;nd.getInstance=h$y;g.V(g.vb,g.WX);g.vb.prototype.UH=function(){var w=g.Mj("yt.networkStatusManager.instance.isNetworkAvailable");return w?w.bind(this.L)():!0}; g.vb.prototype.rH=function(w){var M=g.Mj("yt.networkStatusManager.instance.networkStatusHint").bind(this.L);M&&M(w)}; g.vb.prototype.PT=function(w){var M=this,P;return g.n(function(u){P=g.Mj("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(M.L);return g.FW("skip_network_check_if_cfr")&&RX().isEndpointCFR("generate_204")?u.return(new Promise(function(X){var U;M.rH(((U=window.navigator)==null?void 0:U.onLine)||!0);X(M.UH())})):P?u.return(P(w)):u.return(!0)})};var sY;g.V(Kd,zs);Kd.prototype.writeThenSend=function(w,M){M||(M={});M=IX(w,M);g.AS()||(this.B=!1);zs.prototype.writeThenSend.call(this,w,M)}; Kd.prototype.sendThenWrite=function(w,M,P){M||(M={});M=IX(w,M);g.AS()||(this.B=!1);zs.prototype.sendThenWrite.call(this,w,M,P)}; Kd.prototype.sendAndWrite=function(w,M){M||(M={});M=IX(w,M);g.AS()||(this.B=!1);zs.prototype.sendAndWrite.call(this,w,M)}; Kd.prototype.awaitInitialization=function(){return this.C.promise};var pi5=g.aF.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.ih("ytNetworklessLoggingInitializationOptions",pi5);g.Ai.prototype.isReady=function(){!this.config_&&c_5()&&(this.config_=g.XX());return!!this.config_};var M04,r9,Cd;M04=g.aF.ytPubsubPubsubInstance||new g.oC;r9=g.aF.ytPubsubPubsubSubscribedKeys||{};Cd=g.aF.ytPubsubPubsubTopicToKeys||{};g.jU=g.aF.ytPubsubPubsubIsSynchronous||{};g.oC.prototype.subscribe=g.oC.prototype.subscribe;g.oC.prototype.unsubscribeByKey=g.oC.prototype.HZ;g.oC.prototype.publish=g.oC.prototype.publish;g.oC.prototype.clear=g.oC.prototype.clear;g.ih("ytPubsubPubsubInstance",M04);g.ih("ytPubsubPubsubTopicToKeys",Cd);g.ih("ytPubsubPubsubIsSynchronous",g.jU); g.ih("ytPubsubPubsubSubscribedKeys",r9);var ohp={};g.V(Wl,g.v);Wl.prototype.append=function(w){if(!this.L)throw Error("This does not support the append operation");w=w.vj();this.vj().appendChild(w)}; g.V(hr,Wl);hr.prototype.vj=function(){return this.B};g.V(cl,g.v);cl.prototype.onTouchStart=function(w){this.j=!0;this.L=w.touches.length;this.B.isActive()&&(this.B.stop(),this.G=!0);w=w.touches;this.K=DTM(this,w)||w.length!=1;var M=w.item(0);this.K||!M?this.S=this.V=Infinity:(this.V=M.clientX,this.S=M.clientY);for(M=this.C.length=0;M=0)}if(M||w&&Math.pow(w.clientX-this.V,2)+Math.pow(w.clientY-this.S,2)>25)this.X=!0}; cl.prototype.onTouchEnd=function(w){var M=w.changedTouches;M&&this.j&&this.L==1&&!this.X&&!this.G&&!this.K&&DTM(this,M)&&(this.B3=w,this.B.start());this.L=w.touches.length;this.L===0&&(this.X=this.j=!1,this.C.length=0);this.G=!1};var Z2=Date.now().toString();var EX={};var ym=Symbol("injectionDeps");Vm.prototype.toString=function(){return"InjectionToken("+this.name+")"}; z$y.prototype.resolve=function(w){return w instanceof mS?D2(this,w.key,[],!0):D2(this,w,[])};var qW;var zJ=window;var Lx=g.FW("web_enable_lifecycle_monitoring")&&TJ()!==0,Qg_=g.FW("web_enable_lifecycle_monitoring");Lb1.prototype.cancel=function(){for(var w=g.G(this.B),M=w.next();!M.done;M=w.next())M=M.value,M.jobId===void 0||M.G8||this.scheduler.Pw(M.jobId),M.G8=!0;this.L.resolve()};g.N=eW.prototype;g.N.install=function(w){this.plugins.push(w);return this}; g.N.uninstall=function(){var w=this;g.Kz.apply(0,arguments).forEach(function(M){M=w.plugins.indexOf(M);M>-1&&w.plugins.splice(M,1)})}; g.N.transition=function(w,M){var P=this;Lx&&dT2(this.state);var u=this.transitions.find(function(U){return Array.isArray(U.from)?U.from.find(function(f){return f===P.state&&U.to===w}):U.from===P.state&&U.to===w}); if(u){this.L&&(e$2(this.L),this.L=void 0);kX5(this,w,M);this.state=w;Lx&&dG(this.state);u=u.action.bind(this);var X=this.plugins.filter(function(U){return U[w]}).map(function(U){return U[w]}); u(Boz(this,X),M)}else throw Error("no transition specified from "+this.state+" to "+w);}; g.N.KMO=function(w){var M=g.Kz.apply(1,arguments);g.C0();for(var P=g.G(w),u=P.next(),X={};!u.done;X={xj:void 0},u=P.next())X.xj=u.value,uy_(function(U){return function(){Qm(U.xj.name);RE(function(){return U.xj.callback.apply(U.xj,g.L(M))}); kB(U.xj.name)}}(X))}; g.N.U6I=function(w){var M=g.Kz.apply(1,arguments),P,u,X,U;return g.n(function(f){f.L==1&&(g.C0(),P=g.G(w),u=P.next(),X={});if(f.L!=3){if(u.done)return f.M0(0);X.p8=u.value;X.qy=void 0;U=function(h){return function(){Qm(h.p8.name);var c=RE(function(){return h.p8.callback.apply(h.p8,g.L(M))}); y5(c)?h.qy=g.FW("web_lifecycle_error_handling_killswitch")?c.then(function(){kB(h.p8.name)}):c.then(function(){kB(h.p8.name)},function(Z){lYl(Z); kB(h.p8.name)}):kB(h.p8.name)}}(X); uy_(U);return X.qy?g.B(f,X.qy,3):f.M0(3)}X={p8:void 0,qy:void 0};u=P.next();return f.M0(2)})}; g.N.m_=function(w){var M=g.Kz.apply(1,arguments),P=this,u=w.map(function(X){return{va:function(){Qm(X.name);RE(function(){return X.callback.apply(X,g.L(M))}); kB(X.name)}, priority:Bl(P,X)}}); u.length&&(this.L=new Lb1(u))}; g.hH.Object.defineProperties(eW.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var vl;g.V(nx,eW);nx.prototype.G=function(w,M){var P=this;this.B=g.rH(0,function(){P.currentState==="application_navigating"&&P.transition("none")},5E3); w(M==null?void 0:M.event)}; nx.prototype.K=function(w,M){this.B&&(g.kO.Pw(this.B),this.B=null);w(M==null?void 0:M.event)};var hg=[];g.ih("yt.logging.transport.getScrapedGelPayloads",function(){return hg});sX.prototype.storePayload=function(w,M){w=Kx(w);this.store[w]?this.store[w].push(M):(this.L={},this.store[w]=[M]);this.B++;g.FW("more_accurate_gel_parser")&&(M=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(M));return w}; sX.prototype.smartExtractMatchingEntries=function(w){if(!w.keys.length)return[];for(var M=IE(this,w.keys.splice(0,1)[0]),P=[],u=0;u=0){u=!1;break a}}u=!0}u&&(M=lX(M))&&this.SM(M)}}; g.N.ej=function(w){return w}; g.N.onTouchStart=function(w){this.mN.onTouchStart(w)}; g.N.onTouchMove=function(w){this.mN.onTouchMove(w)}; g.N.onTouchEnd=function(w){if(this.mN)this.mN.onTouchEnd(w)}; g.N.SM=function(w){this.layoutId?this.Tk.executeCommand(w,this.layoutId):(w=new g.bK("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.qU(w))}; g.N.createServerVe=function(w,M){this.api.createServerVe(w,this);this.api.setTrackingParams(w,M)}; g.N.logVisibility=function(w,M){this.api.hasVe(w)&&this.api.logVisibility(w,M,this.interactionLoggingClientData)}; g.N.v3=function(){this.clear(null);this.Mt(this.Z3);for(var w=g.G(this.ys),M=w.next();!M.done;M=w.next())this.Mt(M.value);g.XT.prototype.v3.call(this)};g.V(Yr,$r); Yr.prototype.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);this.B=M;if(M.text==null&&M.icon==null)g.Yq(Error("ButtonRenderer did not have text or an icon set."));else{switch(M.style||null){case "STYLE_UNKNOWN":w="ytp-ad-button-link";break;default:w=null}w!=null&&g.io(this.element,w);M.text!=null&&(w=g.ff(M.text),g.lA(w)||(this.element.setAttribute("aria-label",w),this.C=new g.XT({W:"span",T:"ytp-ad-button-text",pu:w}),g.b(this,this.C),this.C.XK(this.element)));M.accessibilityData&&M.accessibilityData.accessibilityData&& M.accessibilityData.accessibilityData.label&&!g.lA(M.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",M.accessibilityData.accessibilityData.label);M.icon!=null&&(M=qo(M.icon,this.X),M!=null&&(this.L=new g.XT({W:"span",T:"ytp-ad-button-icon",J:[M]}),g.b(this,this.L)),this.K?N3(this.element,this.L.element,0):this.L.XK(this.element))}}; Yr.prototype.clear=function(){this.hide()}; Yr.prototype.onClick=function(w){$r.prototype.onClick.call(this,w);w=g.G(kgp(this));for(var M=w.next();!M.done;M=w.next())M=M.value,this.layoutId?this.Tk.executeCommand(M,this.layoutId):g.qU(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.V(za,g.v);za.prototype.v3=function(){this.L&&g.Vh(this.L);this.B.clear();Ta=null;g.v.prototype.v3.call(this)}; za.prototype.register=function(w,M){M&&this.B.set(w,M)}; var Ta=null;g.V(Lf,$r); Lf.prototype.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);w=M.hoverText||null;M=M.button&&g.A(M.button,g.OG)||null;M==null?g.qU(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Yr(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,void 0,void 0,void 0,void 0,this.C),g.b(this,this.button),this.button.init(On("button"),M,this.macros),w&&this.button.element.setAttribute("aria-label",g.ff(w)),this.button.XK(this.element),this.S&&!g.w1(this.button.element, "ytp-ad-clickable")&&g.io(this.button.element,"ytp-ad-clickable"),this.C&&g.io(this.button.element,"ytp-ad-hover-text-button--clean-player"),w&&(this.L=new g.XT({W:"div",T:"ytp-ad-hover-text-container"}),this.K&&(M=new g.XT({W:"div",T:"ytp-ad-hover-text-callout"}),M.XK(this.L.element),g.b(this,M)),g.b(this,this.L),this.L.XK(this.element),M=dC(w),N3(this.L.element,M,0)),this.show())}; Lf.prototype.hide=function(){this.button&&this.button.hide();this.L&&this.L.hide();$r.prototype.hide.call(this)}; Lf.prototype.show=function(){this.button&&this.button.show();$r.prototype.show.call(this)};g.V(Bz,$r); Bz.prototype.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);P=(w=M.thumbnail)&&eX(w)||"";g.lA(P)?Math.random()<.01&&g.Yq(Error("Found AdImage without valid image URL")):(this.B?g.A1(this.element,"backgroundImage","url("+P+")"):WS(this.element,{src:P}),WS(this.element,{alt:w&&w.accessibility&&w.accessibility.label||""}),M&&M.adRendererCommands&&M.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Bz.prototype.clear=function(){this.hide()};g.V(QA,$r);g.N=QA.prototype;g.N.hide=function(){$r.prototype.hide.call(this);this.C&&this.C.focus()}; g.N.show=function(){this.C=document.activeElement;$r.prototype.show.call(this);this.X.focus()}; g.N.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);this.L=M;M.dialogMessages||M.title!=null?M.confirmLabel==null?g.qU(Error("ConfirmDialogRenderer.confirmLabel was not set.")):M.cancelLabel==null?g.qU(Error("ConfirmDialogRenderer.cancelLabel was not set.")):sS1(this,M):g.qU(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.N.clear=function(){g.qi(this.B);this.hide()}; g.N.Zs=function(){this.hide()}; g.N.FQ=function(){var w=this.L.cancelEndpoint;w&&(this.layoutId?this.Tk.executeCommand(w,this.layoutId):g.qU(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.N.Ha=function(){var w=this.L.confirmNavigationEndpoint||this.L.confirmEndpoint;w&&(this.layoutId?this.Tk.executeCommand(w,this.layoutId):g.qU(Error("Missing layoutId for confirm dialog.")));this.hide()};g.V(kr,$r);g.N=kr.prototype; g.N.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);this.C=M;if(M.defaultText==null&&M.defaultIcon==null)g.qU(Error("ToggleButtonRenderer must have either text or icon set."));else if(M.defaultIcon==null&&M.toggledIcon!=null)g.qU(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(M.style){switch(M.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":w="ytp-ad-toggle-button-default-style";break;default:w=null}w!=null&&g.io(this.X,w)}w={};M.defaultText? (P=g.ff(M.defaultText),g.lA(P)||(w.buttonText=P,this.api.N().experiments.nu("a11y_h5_associate_survey_question")||this.B.setAttribute("aria-label",P),this.api.N().experiments.nu("fix_h5_toggle_button_a11y")&&this.L.setAttribute("aria-label",P))):g.Mq(this.Cu,!1);M.defaultTooltip&&(w.tooltipText=M.defaultTooltip,this.B.hasAttribute("aria-label")||this.L.setAttribute("aria-label",M.defaultTooltip));M.defaultIcon?(P=qo(M.defaultIcon),this.updateValue("untoggledIconTemplateSpec",P),M.toggledIcon?(this.Lu= !0,P=qo(M.toggledIcon),this.updateValue("toggledIconTemplateSpec",P)):(g.Mq(this.S,!0),g.Mq(this.K,!1)),g.Mq(this.B,!1)):g.Mq(this.L,!1);g.SF(w)||this.update(w);M.isToggled&&(g.io(this.X,"ytp-ad-toggle-button-toggled"),this.toggleButton(M.isToggled));R6(this);this.Y(this.element,"change",this.RV);this.show()}}; g.N.onClick=function(w){this.ys.length>0&&(this.toggleButton(!this.isToggled()),this.RV());$r.prototype.onClick.call(this,w)}; g.N.RV=function(){g.X6(this.X,"ytp-ad-toggle-button-toggled",this.isToggled());for(var w=g.G(Kux(this,this.isToggled())),M=w.next();!M.done;M=w.next())M=M.value,this.layoutId?this.Tk.executeCommand(M,this.layoutId):g.qU(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);R6(this)}; g.N.clear=function(){this.hide()}; g.N.toggleButton=function(w){g.X6(this.X,"ytp-ad-toggle-button-toggled",w);this.B.checked=w;R6(this)}; g.N.isToggled=function(){return this.B.checked};g.V(nf,yh);nf.prototype.G=function(w){if(Array.isArray(w)){w=g.G(w);for(var M=w.next();!M.done;M=w.next())M=M.value,M instanceof b02&&this.C(M)}};g.V(vz,$r);g.N=vz.prototype;g.N.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);M.reasons?M.confirmLabel==null?g.qU(Error("AdFeedbackRenderer.confirmLabel was not set.")):(M.cancelLabel==null&&g.Yq(Error("AdFeedbackRenderer.cancelLabel was not set.")),M.title==null&&g.Yq(Error("AdFeedbackRenderer.title was not set.")),JS4(this,M)):g.qU(Error("AdFeedbackRenderer.reasons were not set."))}; g.N.clear=function(){mu(this.K);mu(this.S);this.X.length=0;this.hide()}; g.N.hide=function(){this.B&&this.B.hide();this.L&&this.L.hide();$r.prototype.hide.call(this);this.C&&this.C.focus()}; g.N.show=function(){this.B&&this.B.show();this.L&&this.L.show();this.C=document.activeElement;$r.prototype.show.call(this);this.K.focus()}; g.N.Ke=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.N.Eau=function(){this.hide()}; s4.prototype.vj=function(){return this.B.element}; s4.prototype.getCommand=function(){return this.L}; s4.prototype.isChecked=function(){return this.C.checked};g.V(Kf,QA);Kf.prototype.Zs=function(w){QA.prototype.Zs.call(this,w);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Kf.prototype.FQ=function(w){QA.prototype.FQ.call(this,w);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Kf.prototype.Ha=function(w){QA.prototype.Ha.call(this,w);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.V(bu,$r);g.N=bu.prototype; g.N.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);this.K=M;if(M.dialogMessage==null&&M.title==null)g.qU(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{M.confirmLabel==null&&g.Yq(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(w=M.closeOverlayRenderer&&g.A(M.closeOverlayRenderer,g.OG)||null)this.B=new Yr(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.b(this,this.B),this.B.init(On("button"),w,this.macros),this.B.XK(this.element);M.title&&(w=g.ff(M.title),this.updateValue("title",w));if(M.adReasons)for(w=M.adReasons,P=0;P=this.UO?(this.Lu.hide(),this.OO=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(w=Math.max(0,Math.ceil((this.UO-w)/1E3)),w!=this.jL&&(gC(this.C,{TIME_REMAINING:String(w)}),this.jL=w)))}};g.V(O4,Jw);g.N=O4.prototype; g.N.init=function(w,M,P){Jw.prototype.init.call(this,w,M,P);if(M.image&&M.image.thumbnail)if(M.headline)if(M.description)if((w=M.actionButton&&g.A(M.actionButton,g.OG))&&w.navigationEndpoint){var u=this.api.getVideoData(2);if(u!=null)if(M.image&&M.image.thumbnail){var X=M.image.thumbnail.thumbnails;X!=null&&X.length>0&&g.lA(g.et(X[0].url))&&(X[0].url=u.profilePicture)}else g.Yq(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(On("ad-image"),M.image,P);this.K.init(On("ad-text"), M.headline,P);this.X.init(On("ad-text"),M.description,P);this.L.init(On("button"),w,P);P=I3(this.L.element);bc(this.L.element,P+" This link opens in new tab");this.Lu=w.navigationEndpoint;this.api.dj()||this.show();this.api.N().D("enable_larger_flyout_cta_on_desktop")&&(this.RI("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.RI("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.RI("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.RI("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.RI("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.RI("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.L.element.classList.add("ytp-flyout-cta-action-button-large"),this.L.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.RI("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.CS.bind(this));this.Cu=M.startMs||0;rC(this)}else g.qU(Error("FlyoutCtaRenderer has no valid action button."));else g.qU(Error("FlyoutCtaRenderer has no description AdText."));else g.qU(Error("FlyoutCtaRenderer has no headline AdText."));else g.Yq(Error("FlyoutCtaRenderer has no image."))}; g.N.onClick=function(w){Jw.prototype.onClick.call(this,w);this.api.pauseVideo();!g.mG(this.L.element,w.target)&&this.Lu&&(this.layoutId?this.Tk.executeCommand(this.Lu,this.layoutId):g.qU(Error("Missing layoutId for flyout cta.")))}; g.N.uT=function(){if(this.B){var w=this.B.getProgressState();(w&&w.current||this.UO)&&1E3*w.current>=this.Cu&&(jX(this),g.PI(this.element,"ytp-flyout-cta-inactive"),this.L.element.removeAttribute("tabIndex"))}}; g.N.wv=function(){this.clear()}; g.N.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.CS.bind(this))}; g.N.show=function(){this.L&&this.L.show();Jw.prototype.show.call(this)}; g.N.hide=function(){this.L&&this.L.hide();Jw.prototype.hide.call(this)}; g.N.CS=function(w){w=="hidden"?this.show():this.hide()};g.V(a6,$r);g.N=a6.prototype; g.N.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);this.B=M;if(this.B.rectangle)for(w=this.B.likeButton&&g.A(this.B.likeButton,Yz),M=this.B.dislikeButton&&g.A(this.B.dislikeButton,Yz),this.C.init(On("toggle-button"),w,P),this.L.init(On("toggle-button"),M,P),this.Y(this.element,"change",this.ML),this.X.show(100),this.show(),P=g.G(this.B&&this.B.impressionCommands||[]),w=P.next();!w.done;w=P.next())w=w.value,this.layoutId?this.Tk.executeCommand(w,this.layoutId):g.qU(Error("Missing layoutId for instream user sentiment."))}; g.N.clear=function(){this.hide()}; g.N.hide=function(){this.C.hide();this.L.hide();$r.prototype.hide.call(this)}; g.N.show=function(){this.C.show();this.L.show();$r.prototype.show.call(this)}; g.N.ML=function(){zq1(this.element,"ytp-ad-instream-user-sentiment-selected");this.B.postMessageAction&&this.api.Vs("onYtShowToast",this.B.postMessageAction);this.X.hide()}; g.N.onClick=function(w){this.ys.length>0&&this.ML();$r.prototype.onClick.call(this,w)};g.V(wM,g.v);g.N=wM.prototype;g.N.v3=function(){this.reset();g.v.prototype.v3.call(this)}; g.N.reset=function(){g.qi(this.X);this.K=!1;this.B&&this.B.stop();this.G.stop();this.C&&(this.C=!1,this.j.play())}; g.N.start=function(){this.reset();this.X.Y(this.L,"mouseover",this.Xe,this);this.X.Y(this.L,"mouseout",this.yz,this);this.B3&&(this.X.Y(this.L,"focusin",this.Xe,this),this.X.Y(this.L,"focusout",this.yz,this));this.B?this.B.start():(this.K=this.C=!0,g.A1(this.L,{opacity:this.S}))}; g.N.Xe=function(){this.C&&(this.C=!1,this.j.play());this.G.stop();this.B&&this.B.stop()}; g.N.yz=function(){this.K?this.G.start():this.B&&this.B.start()}; g.N.GP=function(){this.C||(this.C=!0,this.V.play(),this.K=!0)};var u7z=[new i0("b.f_",!1,0),new i0("j.s_",!1,2),new i0("r.s_",!1,4),new i0("e.h_",!1,6),new i0("i.s_",!0,8),new i0("s.t_",!1,10),new i0("p.h_",!1,12),new i0("s.i_",!1,14),new i0("f.i_",!1,16),new i0("a.b_",!1,18),new i0("a.o_",!1),new i0("g.o_",!1,22),new i0("p.i_",!1,24),new i0("p.m_",!1),new i0("n.k_",!0,20),new i0("i.f_",!1),new i0("a.s_",!0),new i0("m.c_",!1),new i0("n.h_",!1,26),new i0("o.p_",!1),new i0("m.p_",!0,28),new i0("o.a_",!1),new i0("d.p_",!1),new i0("e.i_",!1)].reduce(function(w,M){w[M.L]= M;return w},{});g.V(Wj,Jw);g.N=Wj.prototype; g.N.init=function(w,M,P){Jw.prototype.init.call(this,w,M,P);this.Lu=M;(this.Cu=$ZR(this))&&g.Yq(Error("hasAdControlInClickCommands_ is true."));if(!M||g.SF(M))g.qU(Error("SkipButtonRenderer was not specified or empty."));else if(!M.message||g.SF(M.message))g.qU(Error("SkipButtonRenderer.message was not specified or empty."));else if(w=this.K?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},M=qo(w),M==null?g.qU(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+w.iconType+".")): (this.api.N().D("disable_touch_events_on_skip_button")&&(M.Z=Object.assign({},M.Z,{"aria-hidden":"true",Cds:"false"})),this.C=new g.XT({W:"button",d$:[this.K?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],J:[{W:"span",T:this.K?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",J:[M]}]}),g.b(this,this.C),this.C.XK(this.X.element),this.L=new Aw(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,"ytp-ad-skip-button-text"),this.K&&this.L.element.classList.add("ytp-ad-skip-button-text-centered"), this.L.init(On("ad-text"),this.Lu.message,P),g.b(this,this.L),N3(this.C.element,this.L.element,0)),!this.api.N().D("disable_touch_events_on_skip_button")){var u=u===void 0?null:u;P=this.api.N();!(this.ys.length>0)&&P.L&&(n7?0:"ontouchstart"in document.documentElement&&(OCR()||WO()))&&(this.Mt(this.Z3),u&&this.Mt(u),this.ys=[this.Y(this.element,"touchstart",this.onTouchStart,this),this.Y(this.element,"touchmove",this.onTouchMove,this),this.Y(this.element,"touchend",this.onTouchEnd,this)])}}; g.N.clear=function(){this.UO.reset();this.hide()}; g.N.hide=function(){this.X.hide();this.L&&this.L.hide();jX(this);Jw.prototype.hide.call(this)}; g.N.onClick=function(w){if(this.C!=null){if(w){var M=w||window.event;M.returnValue=!1;M.preventDefault&&M.preventDefault()}var P;if(MP1(w,{contentCpn:((P=this.api.getVideoData(1))==null?void 0:P.clientPlaybackNonce)||""})===0)this.api.Vs("onAbnormalityDetected");else if(Jw.prototype.onClick.call(this,w),this.publish("j"),this.api.Vs("onAdSkip"),this.OO||!this.Cu)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.N.ej=function(w){if(!this.OO)return this.Cu&&X$("SkipButton click commands not pruned while ALC exist"),w;var M,P=(M=g.A(w,g.cj))==null?void 0:M.commands;if(!P)return w;w=[];for(M=0;M=this.K&&UZF(this,!0)};g.V(Sw,Yr);Sw.prototype.init=function(w,M,P){Yr.prototype.init.call(this,w,M,P);w=!1;M.text!=null&&(w=g.ff(M.text),w=!g.lA(w));w?M.navigationEndpoint==null?g.Yq(Error("No visit advertiser clickthrough provided in renderer,")):M.style!=="STYLE_UNKNOWN"?g.Yq(Error("Button style was not a link-style type in renderer,")):this.show():g.Yq(Error("No visit advertiser text was present in the renderer."))};g.V(Hj,$r); Hj.prototype.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);w=M.text;g.lA(U4(w))?g.Yq(Error("SimpleAdBadgeRenderer has invalid or empty text")):(w&&w.text&&(M=w.text,this.C&&!this.L&&(M=this.api.N(),M=w.text+" "+(M&&M.L?"\u2022":"\u00b7")),M={text:M,isTemplated:w.isTemplated},w.style&&(M.style=w.style),w.targetId&&(M.targetId=w.targetId),w=new Aw(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),w.init(On("simple-ad-badge"),M,P),w.XK(this.element),g.b(this,w)),this.show())}; Hj.prototype.clear=function(){this.hide()};g.V(pW,ax);g.V(F$,g.wC);g.N=F$.prototype;g.N.qV=function(){return this.durationMs}; g.N.stop=function(){this.B&&this.bB.Mt(this.B)}; g.N.Ub=function(w){this.L={seekableStart:0,seekableEnd:this.durationMs/1E3,current:w.current};this.publish("h")}; g.N.getProgressState=function(){return this.L}; g.N.oh=function(w){g.fW(w,2)&&this.publish("g")};g.V(Eg,g.wC);g.N=Eg.prototype;g.N.qV=function(){return this.durationMs}; g.N.start=function(){this.B||(this.B=!0,this.timer.start())}; g.N.stop=function(){this.B&&(this.B=!1,this.timer.stop())}; g.N.Ub=function(){this.IY+=100;var w=!1;this.IY>this.durationMs&&(this.IY=this.durationMs,this.timer.stop(),w=!0);this.L={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.IY/1E3};this.publish("h");w&&this.publish("g")}; g.N.getProgressState=function(){return this.L};g.V(mo,Jw);g.N=mo.prototype;g.N.init=function(w,M,P){Jw.prototype.init.call(this,w,M,P);var u;if(M==null?0:(u=M.templatedCountdown)==null?0:u.templatedAdText){w=M.templatedCountdown.templatedAdText;if(!w.isTemplated){g.Yq(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.L=new Aw(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk);this.L.init(On("ad-text"),w,{});this.L.XK(this.element);g.b(this,this.L)}this.show()}; g.N.clear=function(){this.hide()}; g.N.hide=function(){jX(this);Jw.prototype.hide.call(this)}; g.N.wv=function(){this.hide()}; g.N.uT=function(){if(this.B!=null){var w=this.B.getProgressState();if(w!=null&&w.current!=null&&this.L){var M=this.B instanceof F$?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:w.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.B instanceof Eg?w.seekableEnd:this.api.getDuration(2,!1);w=w.current;var P,u,X=((P=this.api.getVideoData())==null?0:(u=P.VH)==null?0:u.call(P))?Math.max(M-w,0):M-w;gC(this.L,{FORMATTED_AD_DURATION_REMAINING:String(g.N9(X)), TIME_REMAINING:String(Math.ceil(X))})}}}; g.N.show=function(){rC(this);Jw.prototype.show.call(this)};g.V(od,Aw);od.prototype.onClick=function(w){Aw.prototype.onClick.call(this,w);this.api.onAdUxClicked(this.componentType)};g.V(yP,$r);yP.prototype.init=function(w,M){$r.prototype.init.call(this,w,M,{});if(w=M.content){g.oU(this.element,w);var P,u;M=((P=M.interaction)==null?void 0:(u=P.accessibility)==null?void 0:u.label)||w;this.element.setAttribute("aria-label",M)}else g.qU(Error("AdSimpleAttributedString does not have text content"))}; yP.prototype.clear=function(){this.hide()}; yP.prototype.onClick=function(w){$r.prototype.onClick.call(this,w)};g.V(Dk,$r); Dk.prototype.init=function(w,M){$r.prototype.init.call(this,w,M,{});(w=M.label)&&w.content&&!g.lA(w.content)?(this.adBadgeText.init(On("ad-simple-attributed-string"),new GO(w)),(M=M.adPodIndex)&&M.content&&!g.lA(M.content)&&(this.B=new yP(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),this.B.XK(this.element),g.b(this,this.B),this.B.element.classList.add("ytp-ad-badge__pod-index"),this.B.init(On("ad-simple-attributed-string"),new GO(M))),this.element.classList.add(this.L?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.qU(Error("No label is returned in AdBadgeViewModel."))}; Dk.prototype.show=function(){this.adBadgeText.show();var w;(w=this.B)==null||w.show();$r.prototype.show.call(this)}; Dk.prototype.hide=function(){this.adBadgeText.hide();var w;(w=this.B)==null||w.hide();$r.prototype.hide.call(this)};g.V(q9,$r);q9.prototype.init=function(w,M){$r.prototype.init.call(this,w,M,{});(w=M.adPodIndex)&&w.content&&!g.lA(w.content)&&(this.B=new yP(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),this.B.XK(this.element),g.b(this,this.B),this.B.init(On("ad-simple-attributed-string"),new GO(w)),M.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()}; q9.prototype.show=function(){var w;(w=this.B)==null||w.show();$r.prototype.show.call(this)}; q9.prototype.hide=function(){var w;(w=this.B)==null||w.hide();$r.prototype.hide.call(this)};g.V(Y9,$r); Y9.prototype.init=function(w,M){$r.prototype.init.call(this,w,M,{});if(M!=null&&M.text){var P;if(((P=M.text)==null?0:P.content)&&!g.lA(M.text.content)){this.B=new g.XT({W:"div",T:"ytp-ad-disclosure-banner__text",pu:M.text.content});g.b(this,this.B);this.B.XK(this.element);var u,X;w=((u=M.interaction)==null?void 0:(X=u.accessibility)==null?void 0:X.label)||M.text.content;this.element.setAttribute("aria-label",w);var U;if((U=M.interaction)==null?0:U.onTap)this.L=new g.XT({W:"div",T:"ytp-ad-disclosure-banner__chevron",J:[g.ZI()]}), g.b(this,this.L),this.L.XK(this.element);this.show()}}else g.qU(Error("No banner text found in AdDisclosureBanner."))}; Y9.prototype.clear=function(){this.hide()};g.V(dM,g.XT);dM.prototype.Ub=function(){var w=this.L.getProgressState(),M=w.seekableEnd;this.api.getPresentingPlayerType()===2&&(M=this.C?this.C/1E3:w.seekableEnd);this.progressBar.style.width=TO(new zO(w.seekableStart,M),w.current,0)*100+"%"}; dM.prototype.onStateChange=function(){g.jY(this.api.N())||(this.api.getPresentingPlayerType()===2?this.B===-1&&(this.show(),this.B=this.L.subscribe("h",this.Ub,this),this.Ub()):this.B!==-1&&(this.hide(),this.L.HZ(this.B),this.B=-1))};g.V(l0,$r); l0.prototype.init=function(w,M,P,u){$r.prototype.init.call(this,w,M,P);if(M.skipOrPreviewRenderer){if(w=g.A(M.skipOrPreviewRenderer,mt))P=new Zk(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.L,this.S),P.XK(this.eL),P.init(On("skip-button"),w,this.macros),g.b(this,P);if(w=g.A(M.skipOrPreviewRenderer,mt))var X=w.skipOffsetMilliseconds}M.brandInteractionRenderer&&(w=M.brandInteractionRenderer.brandInteractionRenderer,P=new a6(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk), P.XK(this.Cu),P.init(On("instream-user-sentiment"),w,this.macros),g.b(this,P));if(w=g.A(M,vst))if(w=g.A(w,vst))P=new O4(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.L,!!M.showWithoutLinkedMediaLayout),g.b(this,P),P.XK(this.K),P.init(On("flyout-cta"),w,this.macros);u=u&&u.videoAdDurationSeconds;M.adBadgeRenderer&&(P=M.adBadgeRenderer,w=g.A(P,tp),w!=null?(P=new Dk(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,!1),g.b(this,P),P.XK(this.B),P.init(On("ad-badge"), w,this.macros),this.C=P.element):(w=P.simpleAdBadgeRenderer,w==null&&(w={text:{text:"Anuncio",isTemplated:!1}}),P=new Hj(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,!0),g.b(this,P),P.XK(this.B),P.init(On("simple-ad-badge"),w,this.macros)));M.adPodIndex&&(w=g.A(M.adPodIndex,CAc),w!=null&&(P=new q9(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),g.b(this,P),P.XK(this.B),P.init(On("ad-pod-index"),w)));M.adDurationRemaining&&!M.showWithoutLinkedMediaLayout&&(w=M.adDurationRemaining.adDurationRemainingRenderer, w==null&&(w={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),u=new mo(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.L,u,!1),g.b(this,u),u.XK(this.B),u.init(On("ad-duration-remaining"),w,this.macros));M.adInfoRenderer&&(u=g.A(M.adInfoRenderer,t7))&&(w=new I6(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.element,void 0,!1),g.b(this,w),this.C!==null?this.B.insertBefore(w.element,this.C.nextSibling):w.XK(this.B), w.init(On("ad-info-hover-text-button"),u,this.macros));M.visitAdvertiserRenderer&&(w=g.A(M.visitAdvertiserRenderer,g.OG))&&(P=chH(this)&&this.X?this.X:this.B)&&(u=new Sw(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),g.b(this,u),u.XK(P),u.init(On("visit-advertiser"),w,this.macros),nb(u.element),w=I3(u.element),bc(u.element,w+" This link opens in new tab"));!(u=this.api.N())||g.Ju(u)||g.K7(u)||u.controlsType!="3"&&!u.disableOrganicUi||(X=new dM(this.api,this.L,X,!1),X.XK(this.UO), g.b(this,X));M.adDisclosureBannerRenderer&&(M=g.A(M.adDisclosureBannerRenderer,jK4))&&(X=new Y9(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),X.XK(this.Lu),X.init(On("ad-disclosure-banner"),M),g.b(this,X));this.api.N().D("enable_updated_html5_player_focus_style")&&g.io(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; l0.prototype.clear=function(){this.hide()};g.Bj.prototype.flush=function(w,M){w=w===void 0?[]:w;M=M===void 0?!1:M;if(g.FW("enable_client_streamz_web")){w=g.G(w);for(var P=w.next();!P.done;P=w.next())P=am4(P.value),this.B&&yU(P,$4,2,this.B),P={serializedIncrementBatch:g.Yw(P.C())},g.ub("streamzIncremented",P,{sendIsolatedPayload:M})}}; g.V(SUF,g.Bj);var aA1=new Map;QP.prototype.set=function(w,M,P){P=P!==void 0?Date.now()+P:void 0;this.B.set(w,M,P)}; QP.prototype.get=function(w){return this.B.get(w)}; QP.prototype.remove=function(w){this.B.remove(w)};var pNz=null;var sg=null,KW=null,b0=null,mZp=null;g.ih("yt.www.ads.eventcache.getLastCompanionData",function(){return sg}); g.ih("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.ih("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return KW}); g.ih("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return b0}); g.ih("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return mZp});var G$x=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);Id.prototype.handleResponse=function(w,M){if(!M)throw Error("request needs to be passed into ConsistencyService");var P,u;M=((P=M.Lp.context)==null?void 0:(u=P.request)==null?void 0:u.consistencyTokenJars)||[];var X;(w=(X=w.responseContext)==null?void 0:X.consistencyTokenJar)&&this.replace(M,w)}; Id.prototype.replace=function(w,M){w=g.G(w);for(var P=w.next();!P.done;P=w.next())delete this.B[P.value.encryptedTokenJarContents];DZF(this,M)};var U3C=window.location.hostname.split(".").slice(-2).join("."),QW;gM.getInstance=function(){QW=g.Mj("yt.clientLocationService.instance");QW||(QW=new gM,g.ih("yt.clientLocationService.instance",QW));return QW}; g.N=gM.prototype; g.N.setLocationOnInnerTubeContext=function(w){w.client||(w.client={});if(this.B)w.client.locationInfo||(w.client.locationInfo={}),w.client.locationInfo.latitudeE7=Math.floor(this.B.coords.latitude*1E7),w.client.locationInfo.longitudeE7=Math.floor(this.B.coords.longitude*1E7),w.client.locationInfo.horizontalAccuracyMeters=Math.round(this.B.coords.accuracy),w.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.C||this.locationPlayabilityToken)w.client.locationPlayabilityToken=this.C|| this.locationPlayabilityToken}; g.N.handleResponse=function(w){var M;w=(M=w.responseContext)==null?void 0:M.locationPlayabilityToken;w!==void 0&&(this.locationPlayabilityToken=w,this.B=void 0,g.AR("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Ab(this))&&this.localStorage.set("yt-location-playability-token",w,15552E3):g.LB("YT_CL",JSON.stringify({loctok:w}),15552E3,U3C,!0))}; g.N.clearLocationPlayabilityToken=function(w){w==="TVHTML5"?(this.localStorage=Ab(this))&&this.localStorage.remove("yt-location-playability-token"):g.BF("YT_CL");this.C=void 0;this.L!==-1&&(clearTimeout(this.L),this.L=-1)}; g.N.getCurrentPositionFromGeolocation=function(){var w=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var M=!1,P=1E4;g.AR("INNERTUBE_CLIENT_NAME")==="MWEB"&&(M=!0,P=15E3);return new Promise(function(u,X){navigator.geolocation.getCurrentPosition(function(U){w.B=U;u(U)},function(U){X(U)},{enableHighAccuracy:M, maximumAge:0,timeout:P})})}; g.N.createUnpluggedLocationInfo=function(w){var M={};w=w.coords;if(w==null?0:w.latitude)M.latitudeE7=Math.floor(w.latitude*1E7);if(w==null?0:w.longitude)M.longitudeE7=Math.floor(w.longitude*1E7);if(w==null?0:w.accuracy)M.locationRadiusMeters=Math.round(w.accuracy);return M}; g.N.createLocationInfo=function(w){var M={};w=w.coords;if(w==null?0:w.latitude)M.latitudeE7=Math.floor(w.latitude*1E7);if(w==null?0:w.longitude)M.longitudeE7=Math.floor(w.longitude*1E7);return M};g.N=dZU.prototype;g.N.contains=function(w){return Object.prototype.hasOwnProperty.call(this.B,w)}; g.N.get=function(w){if(this.contains(w))return this.B[w]}; g.N.set=function(w,M){this.B[w]=M}; g.N.oN=function(){return Object.keys(this.B)}; g.N.remove=function(w){delete this.B[w]};rM.prototype.getModuleId=function(w){return w.serviceId.getModuleId()}; rM.prototype.get=function(w){a:{var M=this.mappings.get(w.toString());switch(M.type){case "mapping":w=M.value;break a;case "factory":M=M.value();this.mappings.set(w.toString(),{type:"mapping",value:M});w=M;break a;default:w=Z7(M)}}return w}; rM.prototype.registerService=function(w,M){this.mappings.set(w.toString(),{type:"mapping",value:M});return w}; new rM;var kz={},ll4=(kz.WEB_UNPLUGGED="^unplugged/",kz.WEB_UNPLUGGED_ONBOARDING="^unplugged/",kz.WEB_UNPLUGGED_OPS="^unplugged/",kz.WEB_UNPLUGGED_PUBLIC="^unplugged/",kz.WEB_CREATOR="^creator/",kz.WEB_KIDS="^kids/",kz.WEB_EXPERIMENTS="^experiments/",kz.WEB_MUSIC="^music/",kz.WEB_REMIX="^music/",kz.WEB_MUSIC_EMBEDDED_PLAYER="^music/",kz.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",kz);tb.prototype.G=function(w,M,P){M=M===void 0?{}:M;P=P===void 0?fd:P;var u={context:g.Jb(w.clickTrackingParams,!1,this.X)};var X=this.L(w);if(X){this.B(u,X,M);var U;M=g.CW(this.C());(X=(U=g.A(w.commandMetadata,g.qg))==null?void 0:U.apiUrl)&&(M=X);U=Fv2(Qg(M));w=Object.assign({},{command:w},void 0);u={input:U,uP:kS(U),Lp:u,config:w};u.config.tI?u.config.tI.identity=P:u.config.tI={identity:P};return u}P=new g.bK("Error: Failed to create Request from Command.",w);g.qU(P)}; g.hH.Object.defineProperties(tb.prototype,{X:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.V(x9,tb);g.V(Og,x9);Og.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",uP:kS("/getDatasyncIdsEndpoint","GET"),Lp:{}}}; Og.prototype.C=function(){return[]}; Og.prototype.L=function(){}; Og.prototype.B=function(){};var fax={},hzx=(fax.GET_DATASYNC_IDS=jw(Og),fax);var RR={},WGx=(RR["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",RR["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",RR["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",RR["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",RR["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",RR["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",RR["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", RR["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",RR["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",RR["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",RR["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",RR["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",RR["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",RR["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",RR["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", RR["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",RR["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",RR["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",RR["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",RR["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",RR["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",RR["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", RR["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",RR.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",RR["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",RR["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",RR["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",RR["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",RR["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",RR["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", RR["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",RR["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",RR["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",RR["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",RR["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",RR["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",RR["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",RR["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",RR["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",RR["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",RR.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",RR["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",RR["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",RR["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",RR["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",RR["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",RR["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",RR["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",RR["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",RR["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",RR["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",RR["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",RR["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",RR["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",RR["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",RR["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",RR["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",RR["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",RR["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",RR["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",RR["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",RR["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", RR["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",RR["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",RR["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",RR["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",RR["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",RR["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",RR["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",RR["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",RR["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", RR["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",RR["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",RR["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",RR["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",RR["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",RR["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",RR["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",RR["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", RR),nT={},n15=(nT.auto_search="LATENCY_ACTION_AUTO_SEARCH",nT.ad_to_ad="LATENCY_ACTION_AD_TO_AD",nT.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",nT.app_startup="LATENCY_ACTION_APP_STARTUP",nT.browse="LATENCY_ACTION_BROWSE",nT.cast_splash="LATENCY_ACTION_CAST_SPLASH",nT.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",nT.channels="LATENCY_ACTION_CHANNELS",nT.chips="LATENCY_ACTION_CHIPS",nT.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",nT.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", nT.editor="LATENCY_ACTION_EDITOR",nT.embed="LATENCY_ACTION_EMBED",nT.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",nT.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",nT.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",nT.explore="LATENCY_ACTION_EXPLORE",nT.favorites="LATENCY_ACTION_FAVORITES",nT.home="LATENCY_ACTION_HOME",nT.inboarding="LATENCY_ACTION_INBOARDING",nT.landing="LATENCY_ACTION_LANDING",nT.library="LATENCY_ACTION_LIBRARY",nT.live= "LATENCY_ACTION_LIVE",nT.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",nT.management="LATENCY_ACTION_MANAGEMENT",nT.mini_app="LATENCY_ACTION_MINI_APP_PLAY",nT.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",nT.onboarding="LATENCY_ACTION_ONBOARDING",nT.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",nT.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",nT.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",nT.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", nT.prebuffer="LATENCY_ACTION_PREBUFFER",nT.prefetch="LATENCY_ACTION_PREFETCH",nT.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",nT.profile_switcher="LATENCY_ACTION_LOGIN",nT.projects="LATENCY_ACTION_PROJECTS",nT.reel_watch="LATENCY_ACTION_REEL_WATCH",nT.results="LATENCY_ACTION_RESULTS",nT.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",nT.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",nT.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",nT.review="LATENCY_ACTION_REVIEW",nT.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",nT.search_ui="LATENCY_ACTION_SEARCH_UI",nT.search_suggest="LATENCY_ACTION_SUGGEST",nT.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",nT.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",nT.seek="LATENCY_ACTION_PLAYER_SEEK",nT.settings="LATENCY_ACTION_SETTINGS",nT.store="LATENCY_ACTION_STORE",nT.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",nT.tenx="LATENCY_ACTION_TENX",nT.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",nT.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", nT.watch="LATENCY_ACTION_WATCH",nT.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",nT["watch,watch7"]="LATENCY_ACTION_WATCH",nT["watch,watch7_html5"]="LATENCY_ACTION_WATCH",nT["watch,watch7ad"]="LATENCY_ACTION_WATCH",nT["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",nT.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",nT.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",nT.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",nT.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",nT.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",nT.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",nT.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",nT.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",nT);Object.assign(n15,WGx);g.V(U7,Wb);var OAx=new hi("aft-recorded",U7);var hcc=g.aF.ytLoggingGelSequenceIdObj_||{};g.ih("ytLoggingGelSequenceIdObj_",hcc);var hc=g.aF.ytLoggingLatencyUsageStats_||{};g.ih("ytLoggingLatencyUsageStats_",hc);fU.prototype.tick=function(w,M,P,u){cg(this,"tick_"+w+"_"+M)||g.ub("latencyActionTicked",{tickName:w,clientActionNonce:M},{timestamp:P,cttAuthInfo:u})}; fU.prototype.info=function(w,M,P){var u=Object.keys(w).join("");cg(this,"info_"+u+"_"+M)||(w=Object.assign({},w),w.clientActionNonce=M,g.ub("latencyActionInfo",w,{cttAuthInfo:P}))}; fU.prototype.jspbInfo=function(w,M,P){for(var u="",X=0;X=X.length?(M.append(X),w-=X.length):w?(M.append(new Uint8Array(X.buffer,X.byteOffset,w)),P.append(new Uint8Array(X.buffer,X.byteOffset+w,X.length-w)),w=0):P.append(X);return{QY:M,Nz:P}}; iV.prototype.isFocused=function(w){return w>=this.C&&w=64&&(this.K.set(w.subarray(0,64-this.L),this.L),M=64-this.L,this.L=0,ix4(this,this.K,0));for(;M+64<=P;M+=64)ix4(this,w,M);M=this.start&&(w=2&&P.ssdaiAdsConfig&&X$("Unexpected ad placement renderers length",w.slot,null,{length:u.length});var X;((X=P.adSlots)==null?0:X.some(function(U){var f,h;return((f=g.A(U,is))==null?void 0:(h=f.adSlotMetadata)==null?void 0:h.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||u.some(function(U){var f,h,c,Z; return!!((f=U.renderer)==null?0:(h=f.linearAdSequenceRenderer)==null?0:(c=h.linearAds)==null?0:c.length)||!((Z=U.renderer)==null||!Z.instreamVideoAdRenderer)})||DUH(w)})}; JP.prototype.yB=function(){WDF(this.B)};rL.prototype.RX=function(){var w=this;frF(this.L,function(){var M=Af(w.slot.clientMetadata,"metadata_type_ad_break_request_data");return M.cueProcessedMs?w.B.get().fetch({NW:M.getAdBreakUrl,oP:new g.bg(M.G2,M.eB),cueProcessedMs:M.cueProcessedMs}):w.B.get().fetch({NW:M.getAdBreakUrl,oP:new g.bg(M.G2,M.eB)})})}; rL.prototype.yB=function(){WDF(this.L)};je.prototype.RX=function(){var w=this.slot.clientMetadata,M,P=(M=this.slot.fulfilledLayout)!=null?M:Af(w,"metadata_type_fulfilled_layout");bxy(this.callback,this.slot,P)}; je.prototype.yB=function(){ug(this.callback,this.slot,new x("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")};tP.prototype.build=function(w,M){return M.fulfilledLayout||CD(M,{Pl:["metadata_type_fulfilled_layout"]})?new je(w,M):this.C(w,M)};g.V(xk,tP); xk.prototype.C=function(w,M){if(CD(M,{Pl:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new JP(w,M,this.B,this.L,this.I7,this.EO,this.FK,this.W3,this.LT);if(CD(M,{Pl:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new rL(w,M,this.B,this.L,this.I7,this.EO);throw new x("Unsupported slot with type: "+M.slotType+" and client metadata: "+gA(M.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.V(OB,tP);OB.prototype.C=function(w,M){throw new x("Unsupported slot with type: "+M.slotType+" and client metadata: "+gA(M.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.N=qnH.prototype;g.N.gK=function(){return this.slot}; g.N.Qs=function(){return this.layout}; g.N.init=function(){}; g.N.release=function(){}; g.N.startRendering=function(w){if(w.layoutId!==this.layout.layoutId)this.callback.Pv(this.slot,w,new ba("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 M=Af(w.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.N7(this.slot,w),Ibz(this.C, this.slot,M)):X$("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,w)}}; g.N.Hk=function(w,M){w.layoutId!==this.layout.layoutId?this.callback.Pv(this.slot,w,new ba("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.Eb(this.slot,w,M),zHH(this),TjF(this))};g.V(PZ,g.wC);g.N=PZ.prototype;g.N.gK=function(){return this.L.slot}; g.N.Qs=function(){return this.L.layout}; g.N.init=function(){this.C.get().addListener(this)}; g.N.release=function(){this.C.get().removeListener(this);this.dispose()}; g.N.WK=function(){}; g.N.y7=function(){}; g.N.M$=function(){}; g.N.eq=function(){}; g.N.startRendering=function(w){var M=this;ML(this.L,w,function(){return void M.dA()})}; g.N.dA=function(){this.C.get().dA(this.B)}; g.N.Hk=function(w,M){var P=this;ML(this.L,w,function(){var u=P.C.get();mw4(u,P.B,3);P.B=[];P.callback.Eb(P.slot,w,M)})}; g.N.v3=function(){this.C.sO()||this.C.get().removeListener(this);g.wC.prototype.v3.call(this)}; g.hH.Object.defineProperties(PZ.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.L.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.L.layout}}});cZ.prototype.Zq=function(w,M){M=M===void 0?!1:M;var P=(this.C.get(w)||[]).concat();if(M=M&&eHl(w)){var u=this.C.get(M);u&&P.push.apply(P,g.L(u))}HZ(this,w,P);this.B.add(w);M&&this.B.add(M)}; cZ.prototype.a9=function(w,M){M=M===void 0?!1:M;if(!this.B.has(w)){var P=M&&eHl(w);P&&(M=!this.B.has(P));this.Zq(w,M)}};g.V(kw1,ax);g.V(Vd,PZ);g.N=Vd.prototype;g.N.mF=function(w,M){Ud("ads-engagement-panel-layout",w,this.K.get().L6,this.FK.get(),this.X,this.G,this.gK(),this.Qs(),M)}; g.N.startRendering=function(w){X3(this.lW,this.gK(),this.Qs(),g.A(this.Qs().renderingContent,T1),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(M,P,u,X,U){return new kw1(M,P,u,X,U)},this.B); PZ.prototype.startRendering.call(this,w)}; g.N.N7=function(w,M){this.G===M.layoutId&&(this.X===null?this.X=this.FK.get().r5():X$("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.N.Eb=function(){}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.Q0=function(){}; g.N.v3=function(){MY(this.q7(),this);PZ.prototype.v3.call(this)};g.V(nqR,ax);g.V(me,PZ);g.N=me.prototype;g.N.mF=function(w,M){Ud("banner-image",w,this.K.get().L6,this.FK.get(),this.X,this.G,this.gK(),this.Qs(),M)}; g.N.startRendering=function(w){X3(this.lW,this.gK(),this.Qs(),g.A(this.Qs().renderingContent,Vz),this.callback,"metadata_type_banner_image_layout_view_model",function(M,P,u,X,U){return new nqR(M,P,u,X,U)},this.B); PZ.prototype.startRendering.call(this,w)}; g.N.N7=function(w,M){this.G===M.layoutId&&(this.X===null?this.X=this.FK.get().r5():X$("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.N.Eb=function(){}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.Q0=function(){}; g.N.v3=function(){MY(this.q7(),this);PZ.prototype.v3.call(this)};g.V(oi,ax);g.V(G5,PZ);g.N=G5.prototype;g.N.mF=function(w,M){Ud("action-companion",w,this.K.get().L6,this.FK.get(),this.X,this.G,this.gK(),this.Qs(),M)}; g.N.startRendering=function(w){X3(this.lW,this.gK(),this.Qs(),g.A(this.Qs().renderingContent,FJ),this.callback,"metadata_type_action_companion_ad_renderer",function(M,P,u,X,U){return new oi(M,P,u,X,U)},this.B); PZ.prototype.startRendering.call(this,w)}; g.N.N7=function(w,M){M.layoutId===this.layout.layoutId?this.lW.a9("impression"):this.G===M.layoutId&&(this.X===null?this.X=this.FK.get().r5():X$("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.N.Eb=function(){}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.Q0=function(){}; g.N.v3=function(){MY(this.q7(),this);PZ.prototype.v3.call(this)};g.V(KDU,ax);g.V(yd,PZ);g.N=yd.prototype;g.N.mF=function(w,M){Ud("image-companion",w,this.K.get().L6,this.FK.get(),this.X,this.G,this.gK(),this.Qs(),M)}; g.N.startRendering=function(w){X3(this.lW,this.gK(),this.Qs(),g.A(this.Qs().renderingContent,EG),this.callback,"metadata_type_image_companion_ad_renderer",function(M,P,u,X,U){return new KDU(M,P,u,X,U)},this.B); PZ.prototype.startRendering.call(this,w)}; g.N.N7=function(w,M){M.layoutId===this.layout.layoutId?this.lW.a9("impression"):this.G===M.layoutId&&(this.X===null?this.X=this.FK.get().r5():X$("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.N.Eb=function(){}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.Q0=function(){}; g.N.v3=function(){MY(this.q7(),this);PZ.prototype.v3.call(this)};g.V(Irp,ax);g.V(Df,PZ);g.N=Df.prototype;g.N.mF=function(w,M){Ud("shopping-companion",w,this.K.get().L6,this.FK.get(),this.X,this.G,this.gK(),this.Qs(),M)}; g.N.startRendering=function(w){X3(this.lW,this.gK(),this.Qs(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(M,P,u,X,U){return new Irp(M,P,u,X,U)},this.B); PZ.prototype.startRendering.call(this,w)}; g.N.N7=function(w,M){M.layoutId===this.layout.layoutId?this.lW.a9("impression"):this.G===M.layoutId&&(this.X===null?this.X=this.FK.get().r5():X$("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.N.Eb=function(){}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.Q0=function(){}; g.N.v3=function(){MY(this.q7(),this);PZ.prototype.v3.call(this)};g.V(YC,PZ);g.N=YC.prototype;g.N.startRendering=function(w){X3(this.lW,this.gK(),this.Qs(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(M,P,u,X,U){return new oi(M,P,u,X,U)},this.B); PZ.prototype.startRendering.call(this,w)}; g.N.N7=function(){}; g.N.Eb=function(){}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.Q0=function(){}; g.N.v3=function(){MY(this.q7(),this);PZ.prototype.v3.call(this)}; g.N.mF=function(){};g.N=CXl.prototype;g.N.gK=function(){return this.slot}; g.N.Qs=function(){return this.layout}; g.N.init=function(){this.W3.get().addListener(this);this.W3.get().Nh.push(this);var w=Af(this.layout.clientMetadata,"metadata_type_video_length_seconds"),M=Af(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");fN(this.layout.SL)&&$2(this.Bj.get(),this.layout.layoutId,{IA:M,JW:w,listener:this})}; g.N.release=function(){this.W3.get().removeListener(this);pB2(this.W3.get(),this);fN(this.layout.SL)&&UA(this.Bj.get(),this.layout.layoutId)}; g.N.startRendering=function(w){this.callback.N7(this.slot,w)}; g.N.Hk=function(w,M){v_U(this.EO.get())&&!this.B&&(this.lW.a9("abandon"),this.B=!0);this.callback.Eb(this.slot,w,M)}; g.N.gg=function(w){switch(w.id){case "part2viewed":this.lW.a9("start");this.lW.a9("impression");break;case "videoplaytime25":this.lW.a9("first_quartile");break;case "videoplaytime50":this.lW.a9("midpoint");break;case "videoplaytime75":this.lW.a9("third_quartile");break;case "videoplaytime100":v_U(this.EO.get())?this.B||(this.lW.a9("complete"),this.B=!0):this.lW.a9("complete");NL(this.lW)&&F3(this.lW,Infinity,!0);scx(this.EO.get())&&qL(this.L,Infinity,!0);break;case "engagedview":NL(this.lW)||this.lW.a9("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:X$("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.N.onVolumeChange=function(){}; g.N.qv=function(){}; g.N.FJ=function(){}; g.N.Qq=function(){}; g.N.onFullscreenToggled=function(){}; g.N.wO=function(){}; g.N.QO=function(){}; g.N.Ab=function(w){scx(this.EO.get())&&qL(this.L,w*1E3,!1);NL(this.lW)&&F3(this.lW,w*1E3,!1)}; g.N.jA=function(){}; g.N.dH=function(){this.lW.a9("active_view_measurable")}; g.N.UK=function(){this.lW.a9("active_view_viewable")}; g.N.Wf=function(){this.lW.a9("active_view_fully_viewable_audible_half_duration")}; g.N.Xu=function(){this.lW.a9("audio_measurable")}; g.N.yA=function(){this.lW.a9("audio_audible")};g.V(z5,PZ);g.N=z5.prototype;g.N.init=function(){PZ.prototype.init.call(this);var w=Af(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),M={adsClientData:this.layout.Kg};this.B.push(new pW(w,this.layout.layoutId,Af(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),M,!0))}; g.N.Uc=function(){this.X||this.W3.get().resumeVideo(1)}; g.N.startRendering=function(w){PZ.prototype.startRendering.call(this,w);pX(this.W3.get(),"ad-showing");this.callback.N7(this.slot,w);this.G.LH=this}; g.N.Hk=function(w,M){PZ.prototype.Hk.call(this,w,M);Fs(this.W3.get(),"ad-showing");w_(this.G,this)}; g.N.mF=function(w){switch(w){case "ad-info-icon-button":(this.X=this.W3.get().ZI(1))||this.W3.get().pauseVideo();break;case "visit-advertiser":this.W3.get().pauseVideo()}}; g.N.v3=function(){PZ.prototype.v3.call(this)};g.V(T5,ax);g.V(dw,PZ);g.N=dw.prototype;g.N.startRendering=function(w){X3(this.lW,this.gK(),this.Qs(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(M,P,u,X,U){return new T5(M,P,u,X,U)},this.B); PZ.prototype.startRendering.call(this,w)}; g.N.N7=function(){}; g.N.Eb=function(){}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.Q0=function(){}; g.N.v3=function(){MY(this.q7(),this);PZ.prototype.v3.call(this)}; g.N.mF=function(){};g.V(lM,ax);g.V(LN,PZ);LN.prototype.init=function(){PZ.prototype.init.call(this);this.B.push(new lM(g.A(this.layout.renderingContent,A7),this.layout.layoutId,{adsClientData:this.layout.Kg}))}; LN.prototype.mF=function(){JX(this.X.get(),this.G)&&$C(this.FK.get(),3)}; LN.prototype.startRendering=function(w){PZ.prototype.startRendering.call(this,w);this.callback.N7(this.slot,w)}; LN.prototype.v3=function(){PZ.prototype.v3.call(this)};g.V(eT,ax);g.V(BZ,PZ);BZ.prototype.init=function(){PZ.prototype.init.call(this);var w=g.A(this.layout.renderingContent,rw)||Af(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),M=uM(this.lW);this.B.push(new eT(w,M,this.layout.layoutId,{adsClientData:this.layout.Kg},!0,!0))}; BZ.prototype.startRendering=function(w){PZ.prototype.startRendering.call(this,w);this.callback.N7(this.slot,w)}; BZ.prototype.mF=function(w,M){if(M===this.layout.layoutId)switch(w){case "skip-button":var P;(w=(P=Af(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:P.current)&&w.mq(this.gK(),this.layout)}}; BZ.prototype.v3=function(){PZ.prototype.v3.call(this)};kC.prototype.build=function(w,M,P,u){if(Qd(u,{Pl:["metadata_type_ad_break_response_data"],ZO:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new qnH(w,P,u,this.L,this.C,this.B);throw new ba("Unsupported layout with type: "+u.layoutType+" and client metadata: "+gA(u.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.V(Oq2,ax);g.V(Ri,PZ);g.N=Ri.prototype;g.N.mF=function(w,M){Ud("ads-engagement-panel",w,this.K.get().L6,this.FK.get(),this.X,this.G,this.gK(),this.Qs(),M)}; g.N.startRendering=function(w){X3(this.lW,this.gK(),this.Qs(),g.A(this.Qs().renderingContent,NS),this.callback,"metadata_type_ads_engagement_panel_renderer",function(M,P,u,X,U){return new Oq2(M,P,u,X,U)},this.B); PZ.prototype.startRendering.call(this,w)}; g.N.N7=function(w,M){M.layoutId===this.layout.layoutId?this.lW.a9("impression"):this.G===M.layoutId&&(this.X===null?this.X=this.FK.get().r5():X$("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.N.Eb=function(){}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.Q0=function(){}; g.N.v3=function(){MY(this.q7(),this);PZ.prototype.v3.call(this)};g.V(nN,PZ);g.N=nN.prototype;g.N.mF=function(w,M){Ud("top-banner-image-text-icon-buttoned",w,this.K.get().L6,this.FK.get(),this.X,this.G,this.gK(),this.Qs(),M)}; g.N.startRendering=function(w){X3(this.lW,this.gK(),this.Qs(),g.A(this.Qs().renderingContent,mH),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(M,P,u,X,U){return new T5(M,P,u,X,U)},this.B); PZ.prototype.startRendering.call(this,w)}; g.N.N7=function(w,M){this.G===M.layoutId&&(this.X===null?this.X=this.FK.get().r5():X$("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.N.Eb=function(){}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.Q0=function(){}; g.N.v3=function(){MY(this.q7(),this);PZ.prototype.v3.call(this)};ifF.prototype.build=function(w,M,P,u){if(Qd(u,ar2())||g.A(u.renderingContent,NS)!==void 0)return new Ri(w,P,u,this.SK,this.FK,this.q7,this.Bj,this.B);if(Qd(u,sx4())||g.A(u.renderingContent,FJ)!==void 0)return new G5(w,P,u,this.SK,this.FK,this.q7,this.Bj,this.B);if(Qd(u,bqu())||g.A(u.renderingContent,EG)!==void 0)return new yd(w,P,u,this.SK,this.FK,this.q7,this.Bj,this.B);if(Qd(u,AgF()))return new Df(w,P,u,this.SK,this.FK,this.q7,this.Bj,this.B);if(Qd(u,jxy()))return new YC(w,P,u,this.SK,this.FK,this.q7, this.Bj,this.B);if(Qd(u,vqz())||g.A(u.renderingContent,Vz)!==void 0)return new me(w,P,u,this.SK,this.FK,this.q7,this.Bj,this.B);if(Qd(u,wz4())||g.A(u.renderingContent,mH)!==void 0)return new nN(w,P,u,this.SK,this.FK,this.q7,this.Bj,this.B);if(Qd(u,tRp()))return new dw(w,P,u,this.SK,this.FK,this.q7,this.Bj,this.B);if(Qd(u,RHH())||g.A(u.renderingContent,T1)!==void 0)return new Vd(w,P,u,this.SK,this.FK,this.q7,this.Bj,this.B);throw new ba("Unsupported layout with type: "+u.layoutType+" and client metadata: "+ gA(u.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};MXy.prototype.build=function(w,M,P,u){if(Qd(u,{Pl:["metadata_type_linked_player_bytes_layout_id"],ZO:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new LN(w,P,u,this.SK,this.FK,this.B);throw new ba("Unsupported layout with type: "+u.layoutType+" and client metadata: "+gA(u.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.N=PuF.prototype;g.N.gK=function(){return this.slot}; g.N.Qs=function(){return this.layout}; g.N.init=function(){}; g.N.release=function(){}; g.N.startRendering=function(w){w.layoutId!==this.layout.layoutId?this.callback.Pv(this.slot,w,new ba("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.N7(this.slot,w),this.lW.a9("impression"),$e(this.wh,w,"normal"))}; g.N.Hk=function(w,M){w.layoutId!==this.layout.layoutId?this.callback.Pv(this.slot,w,new ba("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.Eb(this.slot,w,M)};g.N=Xzl.prototype;g.N.gK=function(){return this.slot}; g.N.Qs=function(){return this.layout}; g.N.init=function(){}; g.N.release=function(){}; g.N.startRendering=function(w){w.layoutId!==this.layout.layoutId?this.callback.Pv(this.slot,w,new ba("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.N7(this.slot,w),this.lW.a9("impression"),$e(this.wh,w,"normal"))}; g.N.Hk=function(w,M){w.layoutId!==this.layout.layoutId?this.callback.Pv(this.slot,w,new ba("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.Eb(this.slot,w,M)};vZ.prototype.build=function(w,M,P,u){if(!this.EO.get().U.N().D("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Qd(u,uTH()))return new PuF(w,P,u,this.FK,this.wh)}else if(Qd(u,{Pl:[],ZO:["LAYOUT_TYPE_FORECASTING"]}))return new Xzl(w,P,u,this.FK,this.wh);throw new ba("Unsupported layout with type: "+u.layoutType+" and client metadata: "+gA(u.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.V(fIz,ax);g.V(sd,PZ);g.N=sd.prototype;g.N.init=function(){PZ.prototype.init.call(this);var w=g.A(this.layout.renderingContent,JJ)||Af(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),M={adsClientData:this.layout.Kg};this.B.push(new fIz(w,Af(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,M))}; g.N.Uc=function(){this.X||this.W3.get().resumeVideo(2)}; g.N.startRendering=function(w){PZ.prototype.startRendering.call(this,w);this.callback.N7(this.slot,w);this.G.LH=this}; g.N.Hk=function(w,M){PZ.prototype.Hk.call(this,w,M);w_(this.G,this)}; g.N.mF=function(w,M){if(!BJ(this.EO.get(),"stop_handling_click_for_non_rendering_overlay_layout")||M===this.layout.layoutId){if(JX(this.K.get(),this.j))switch(w){case "visit-advertiser-link":$C(this.FK.get(),3)}switch(w){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.X||this.W3.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.X=this.W3.get().ZI(2))||this.W3.get().pauseVideo();break; case "visit-advertiser-link":this.W3.get().pauseVideo();WL4(this).Vt();break;case "skip-button":if(w=WL4(this),this.layout.renderingContent&&!vk(this.layout.clientMetadata,"metadata_type_dai")||!w||!w.ZK){var P;(w=(P=Af(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:P.current)&&w.mq(this.gK(),this.layout)}else X$("Requesting to skip by LegacyPlayerBytes when components enabled"),w.ev(this.gK(),this.layout)}}}; g.N.v3=function(){PZ.prototype.v3.call(this)};g.V(KN,PZ);g.N=KN.prototype;g.N.init=function(){PZ.prototype.init.call(this);var w=g.A(this.layout.renderingContent,gw)||Af(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),M={adsClientData:this.layout.Kg},P;(P=!!this.layout.renderingContent)||(P=bM(this),P=!(P&&P.ZK));this.B.push(new pW(w,this.layout.layoutId,Af(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),M,P))}; g.N.Uc=function(){this.X||this.W3.get().resumeVideo(2)}; g.N.startRendering=function(w){PZ.prototype.startRendering.call(this,w);this.callback.N7(this.slot,w);this.G.LH=this}; g.N.Hk=function(w,M){PZ.prototype.Hk.call(this,w,M);w_(this.G,this)}; g.N.mF=function(w,M){if(!this.EO||!BJ(this.EO.get(),"stop_handling_click_for_non_rendering_overlay_layout")||M===this.layout.layoutId){if(JX(this.K.get(),this.j))switch(w){case "visit-advertiser":$C(this.FK.get(),3)}switch(w){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.X||this.W3.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.X=this.W3.get().ZI(2))||this.W3.get().pauseVideo();break; case "visit-advertiser":this.W3.get().pauseVideo();bM(this).Vt();break;case "skip-button":if(w=bM(this),this.layout.renderingContent&&!vk(this.layout.clientMetadata,"metadata_type_dai")||!w||!w.ZK){var P;(w=(P=Af(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:P.current)&&w.mq(this.gK(),this.layout)}else X$("Requesting to skip by LegacyPlayerBytes"),w.ev(this.gK(),this.layout)}}}; g.N.v3=function(){PZ.prototype.v3.call(this)};g.V(cw5,ax);g.V(Ii,PZ);g.N=Ii.prototype;g.N.startRendering=function(w){var M=this;ML(this.L,w,function(){M.B.push(new cw5(Af(M.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),w.layoutId,w.Kg));M.dA();M.callback.N7(M.slot,w);g.C(Xs(M.W3.get(),1),512)&&M.callback.Pv(M.gK(),M.Qs(),new ba("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.N.QO=function(){}; g.N.wO=function(w){if(w.state.isError()){var M;this.callback.Pv(this.gK(),this.Qs(),new ba("A player error happened during adNotify",{playerErrorCode:(M=w.state.tV)==null?void 0:M.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.N.onFullscreenToggled=function(){}; g.N.FJ=function(){}; g.N.Qq=function(){}; g.N.qv=function(){}; g.N.onVolumeChange=function(){}; g.N.gg=function(){}; g.N.jA=function(){}; g.N.mF=function(){};g.V(S4F,ax);g.V(AJ,PZ);AJ.prototype.init=function(){PZ.prototype.init.call(this);var w=g.A(this.layout.renderingContent,jT),M=uM(this.lW);this.B.push(new S4F(w,M,this.layout.layoutId,{adsClientData:this.layout.Kg}))}; AJ.prototype.startRendering=function(w){PZ.prototype.startRendering.call(this,w);this.callback.N7(this.slot,w)}; AJ.prototype.mF=function(w,M){if(M===this.layout.layoutId)switch(w){case "skip-button":var P;(w=(P=Af(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:P.current)&&w.mq(this.gK(),this.layout)}}; AJ.prototype.v3=function(){PZ.prototype.v3.call(this)};Hf2.prototype.build=function(w,M,P,u){if(w=CN(w,P,u,this.SK,this.W3,this.FK,this.L,this.B,this.EO))return w;throw new ba("Unsupported layout with type: "+u.layoutType+" and client metadata: "+gA(u.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.N=Od.prototype;g.N.gK=function(){return this.slot}; g.N.Qs=function(){return this.layout}; g.N.init=function(){this.W3.get().addListener(this);this.W3.get().Nh.push(this);if(this.layout.renderingContent){var w=this.D3.get();w=LO(w,1).EC/1E3}else w=Af(this.layout.clientMetadata,"metadata_type_video_length_seconds");var M=g.A(this.layout.renderingContent,K8),P=M?WZ(M.pings):Af(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");M=M?LD5(M.pings):Af(this.layout.clientMetadata,"metadata_type_active_view_identifier");fN(this.layout.SL)&&$2(this.Bj.get(),this.layout.layoutId, {IA:P,JW:w,listener:this,Kr:M})}; g.N.release=function(){this.W3.get().removeListener(this);pB2(this.W3.get(),this);fN(this.layout.SL)&&UA(this.Bj.get(),this.layout.layoutId)}; g.N.startRendering=function(w){this.callback.N7(this.slot,w)}; g.N.Hk=function(w,M){ai(this,"abandon");this.callback.Eb(this.slot,w,M)}; g.N.gg=function(w){switch(w.id){case "part2viewed":this.lW.a9("start");this.lW.a9("impression");break;case "videoplaytime25":this.lW.a9("first_quartile");break;case "videoplaytime50":this.lW.a9("midpoint");break;case "videoplaytime75":this.lW.a9("third_quartile");break;case "videoplaytime100":ai(this,"complete");NL(this.lW)&&F3(this.lW,Infinity,!0);break;case "engagedview":NL(this.lW)||this.lW.a9("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:X$("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.N.onVolumeChange=function(){}; g.N.qv=function(){}; g.N.FJ=function(){}; g.N.Qq=function(){}; g.N.onFullscreenToggled=function(){}; g.N.wO=function(w){this.B||(g.fW(w,4)&&!g.fW(w,2)?pN(this.lW,"pause"):Ug(w,4)<0&&!(Ug(w,2)<0)&&pN(this.lW,"resume"))}; g.N.QO=function(){}; g.N.Ab=function(w){NL(this.lW)&&F3(this.lW,w*1E3,!1)}; g.N.jA=function(){ai(this,"swipe")}; g.N.dH=function(){this.lW.a9("active_view_measurable")}; g.N.UK=function(){this.lW.a9("active_view_viewable")}; g.N.Wf=function(){this.lW.a9("active_view_fully_viewable_audible_half_duration")}; g.N.Xu=function(){this.lW.a9("audio_measurable")}; g.N.yA=function(){this.lW.a9("audio_audible")};pzl.prototype.build=function(w,M,P,u){if(P.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.A(u.renderingContent,K8)!==void 0)return new Od(w,P,u,this.W3,this.FK,this.EO,this.Bj,this.D3);M=["metadata_type_ad_placement_config"];for(var X=g.G(Zf()),U=X.next();!U.done;U=X.next())M.push(U.value);if(Qd(u,{Pl:M,ZO:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return P.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new Od(w,P,u,this.W3,this.FK,this.EO,this.Bj,this.D3):new CXl(w,P,u,this.W3,this.FK, this.XX,this.EO,this.Bj);throw new ba("Unsupported layout with type: "+u.layoutType+" and client metadata: "+gA(u.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var PU={contentCpn:"",t4:new Map};q44.prototype.H3=function(w,M){var P={};M=Object.assign({},M,(P.cc=this.Bv.rG(),P));this.Bv.U.II(w,M)};var TSE,IR; TSE={T5s:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",LjL:"AUTHENTICATION_MALFORMED",IVO:"AUTHENTICATION_MISSING",EQ$:"BAD_REQUEST",Wj3:"CAST_SESSION_DEVICE_MISMATCHED",dv0:"CAST_SESSION_VIDEO_MISMATCHED",Uvu:"CAST_TOKEN_EXPIRED",Kj0:"CAST_TOKEN_FAILED",Fjs:"CAST_TOKEN_MALFORMED",kJ0:"CGI_PARAMS_MALFORMED",sQ$:"CGI_PARAMS_MISSING",A5W:"DEVICE_FALLBACK",USK:"GENERIC_WITH_LINK_AND_CPN",KQu:"ERROR_HDCP",FQk:"LICENSE",sYL:"VIDEO_UNAVAILABLE",O6W:"FORMAT_UNAVAILABLE",jY3:"GEO_FAILURE", JF3:"HTML5_AUDIO_RENDERER_ERROR",SG3:"GENERIC_WITHOUT_LINK",ct3:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Phs:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",f0$:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",BkO:"HTML5_SPS_UMP_STATUS_REJECTED",MH3:"INVALID_DRM_MESSAGE",SBu:"PURCHASE_NOT_FOUND",cQK:"PURCHASE_REFUNDED",vos:"RENTAL_EXPIRED",yQ3:"RETRYABLE_ERROR",sBW:"SERVER_ERROR",wx3:"SIGNATURE_EXPIRED",Vdu:"STOPPED_BY_ANOTHER_PLAYBACK",no$:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",iXN:"STREAMING_NOT_ALLOWED", Nv3:"STREAM_LICENSE_NOT_FOUND",JQ3:"TOO_MANY_REQUESTS",SjL:"TOO_MANY_REQUESTS_WITH_LINK",cqW:"TOO_MANY_STREAMS_PER_ENTITLEMENT",PEu:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",eku:"VIDEO_FORBIDDEN",GLu:"VIDEO_NOT_FOUND",M1k:"BROWSER_OR_EXTENSION_ERROR"};IR={}; g.g7=(IR.ALREADY_PINNED_ON_A_DEVICE="Este video ya se descarg\u00f3 en la cantidad m\u00e1xima de dispositivos permitidos por el propietario de los derechos de autor. Antes de que puedas reproducir el video en este dispositivo, debes desvincularlo de cualquier otro.",IR.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",IR.GENERIC_WITH_LINK_AND_CPN="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde (ID de reproducci\u00f3n: $CPN). $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", IR.LICENSE="Se produjo un error de licencia con este video.",IR.VIDEO_UNAVAILABLE="Video no disponible",IR.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",IR.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",IR.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",IR.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",IR.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",IR.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="En este momento, tu navegador no reconoce ninguno de los formatos de video disponibles. $BEGIN_LINKHaz clic aqu\u00ed para ver las preguntas frecuentes sobre el video HTML5.$END_LINK",IR.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",IR.HTML5_SPS_UMP_STATUS_REJECTED="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", IR.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",IR.PURCHASE_NOT_FOUND="Este es un video pagado.",IR.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",IR.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",IR.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",IR.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", IR.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",IR.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",IR.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",IR.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",IR.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",IR.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",IR.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",IR.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",IR.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", IR.TOO_MANY_REQUESTS="Accede para mirar el video.",IR.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",IR.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",IR.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",IR.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", IR.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",IR.VIDEO_NOT_FOUND="No se puede encontrar este video.",IR.BROWSER_OR_EXTENSION_ERROR="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",IR);var d3t;var laU=g.RK(),LG4=laU.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!LG4||LG4.length<2)d3t=void 0;else{var ect=laU.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);d3t=ect&&ect.length===6?Number(ect[5].replace("_",".")):0}var xl=d3t,sW=xl>=0;g.V(g.V2,yh);g.V2.prototype.Y=function(w,M,P,u,X){return yh.prototype.Y.call(this,w,M,P,u,X)};var AU={},QL=(AU.FAIRPLAY="fairplay",AU.PLAYREADY="playready",AU.WIDEVINE="widevine",AU.CLEARKEY=null,AU.FLASHACCESS=null,AU.UNKNOWN=null,AU.WIDEVINE_CLASSIC=null,AU);m9.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var g_={},sq=(g_.WIDTH={name:"width",video:!0,valid:640,KX:99999},g_.HEIGHT={name:"height",video:!0,valid:360,KX:99999},g_.FRAMERATE={name:"framerate",video:!0,valid:30,KX:9999},g_.BITRATE={name:"bitrate",video:!0,valid:3E5,KX:2E9},g_.EOTF={name:"eotf",video:!0,valid:"bt709",KX:"catavision"},g_.CHANNELS={name:"channels",video:!1,valid:2,KX:99},g_.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",KX:"invalidformat"},g_.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", KX:"nope"},g_.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",KX:"av99.0.05M.08"},g_.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",KX:"invalid"},g_.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",KX:"false"},g_);var BS4=["h","H"],QUa=["9","("],k6E=["9h","(h"],Rcx=["8","*"],nfh=["a","A"],vfC=["o","O"],sUU=["m","M"],KGC=["mac3","MAC3"],bj3=["meac3","MEAC3"],JU={},nml=(JU.h=BS4,JU.H=BS4,JU["9"]=QUa,JU["("]=QUa,JU["9h"]=k6E,JU["(h"]=k6E,JU["8"]=Rcx,JU["*"]=Rcx,JU.a=nfh,JU.A=nfh,JU.o=vfC,JU.O=vfC,JU.m=sUU,JU.M=sUU,JU.mac3=KGC,JU.MAC3=KGC,JU.meac3=bj3,JU.MEAC3=bj3,JU),IaV=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),yJy=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var a={},Y5=(a["0"]="f",a["160"]="h",a["133"]="h",a["134"]="h",a["135"]="h",a["136"]="h",a["137"]="h",a["264"]="h",a["266"]="h",a["138"]="h",a["298"]="h",a["299"]="h",a["304"]="h",a["305"]="h",a["214"]="h",a["216"]="h",a["374"]="h",a["375"]="h",a["140"]="a",a["141"]="a",a["327"]="sa",a["258"]="m",a["380"]="mac3",a["328"]="meac3",a["161"]="H",a["142"]="H",a["143"]="H",a["144"]="H",a["222"]="H",a["223"]="H",a["145"]="H",a["224"]="H",a["225"]="H",a["146"]="H",a["226"]="H",a["227"]="H",a["147"]="H",a["384"]= "H",a["376"]="H",a["385"]="H",a["377"]="H",a["149"]="A",a["261"]="M",a["381"]="MAC3",a["329"]="MEAC3",a["598"]="9",a["278"]="9",a["242"]="9",a["243"]="9",a["244"]="9",a["775"]="9",a["776"]="9",a["777"]="9",a["778"]="9",a["779"]="9",a["780"]="9",a["781"]="9",a["782"]="9",a["783"]="9",a["247"]="9",a["248"]="9",a["353"]="9",a["355"]="9",a["356"]="9",a["271"]="9",a["577"]="9",a["313"]="9",a["579"]="9",a["272"]="9",a["302"]="9",a["303"]="9",a["407"]="9",a["408"]="9",a["308"]="9",a["315"]="9",a["330"]= "9h",a["331"]="9h",a["332"]="9h",a["333"]="9h",a["334"]="9h",a["335"]="9h",a["336"]="9h",a["337"]="9h",a["338"]="so",a["600"]="o",a["250"]="o",a["251"]="o",a["774"]="o",a["194"]="*",a["195"]="*",a["220"]="*",a["221"]="*",a["196"]="*",a["197"]="*",a["279"]="(",a["280"]="(",a["317"]="(",a["318"]="(",a["273"]="(",a["274"]="(",a["357"]="(",a["358"]="(",a["275"]="(",a["359"]="(",a["360"]="(",a["276"]="(",a["583"]="(",a["584"]="(",a["314"]="(",a["585"]="(",a["561"]="(",a["277"]="(",a["361"]="(h",a["362"]= "(h",a["363"]="(h",a["364"]="(h",a["365"]="(h",a["366"]="(h",a["591"]="(h",a["592"]="(h",a["367"]="(h",a["586"]="(h",a["587"]="(h",a["368"]="(h",a["588"]="(h",a["562"]="(h",a["409"]="(",a["410"]="(",a["411"]="(",a["412"]="(",a["557"]="(",a["558"]="(",a["394"]="1",a["395"]="1",a["396"]="1",a["397"]="1",a["398"]="1",a["399"]="1",a["720"]="1",a["721"]="1",a["400"]="1",a["401"]="1",a["571"]="1",a["402"]="1",a["694"]="1h",a["695"]="1h",a["696"]="1h",a["697"]="1h",a["698"]="1h",a["699"]="1h",a["700"]="1h", a["701"]="1h",a["702"]="1h",a["703"]="1h",a["386"]="3",a["387"]="w",a["406"]="6",a["787"]="1",a["788"]="1",a["548"]="1e",a["549"]="1e",a["550"]="1e",a["551"]="1e",a["809"]="1e",a["810"]="1e",a["552"]="1e",a["811"]="1e",a["812"]="1e",a["553"]="1e",a["813"]="1e",a["814"]="1e",a["554"]="1e",a["815"]="1e",a["816"]="1e",a["555"]="1e",a["817"]="1e",a["818"]="1e",a["572"]="1e",a["556"]="1e",a["645"]="(",a["646"]="(",a["647"]="(",a["648"]="(",a["649"]="(",a["650"]="(",a["651"]="(",a["652"]="(",a["653"]="(", a["654"]="(",a["655"]="(",a["656"]="(",a["657"]="(",a["658"]="(",a["659"]="(",a["660"]="(",a["661"]="(",a["662"]="(",a["663"]="(",a["664"]="(",a["665"]="(",a["666"]="(",a["667"]="(",a["668"]="(",a["669"]="(",a["670"]="(",a["671"]="(",a["672"]="(",a["673"]="(",a["674"]="(h",a["675"]="(h",a["676"]="(h",a["677"]="(h",a["678"]="(h",a["679"]="(h",a["680"]="(h",a["681"]="(h",a["682"]="(h",a["683"]="(h",a["684"]="(h",a["685"]="(h",a["686"]="(h",a["687"]="(h",a["688"]="A",a["689"]="A",a["690"]="A",a["691"]= "MEAC3",a["773"]="i",a["806"]="I",a["805"]="I",a["829"]="9",a["830"]="9",a["831"]="9",a["832"]="9",a["833"]="9",a["834"]="9",a["835"]="9",a["836"]="9",a["892"]="9",a["893"]="9",a["837"]="9",a["838"]="9",a["839"]="9",a["840"]="9",a["841"]="(",a["842"]="(",a["843"]="(",a["844"]="(",a["845"]="(",a["846"]="(",a["847"]="(",a["848"]="(",a["894"]="(",a["895"]="(",a["849"]="(",a["850"]="(",a["851"]="(",a["852"]="(",a["865"]="9",a["866"]="9",a["867"]="9",a["868"]="9",a["869"]="9",a["870"]="9",a["871"]="9", a["872"]="9",a["896"]="9",a["897"]="9",a["873"]="9",a["874"]="9",a["875"]="9",a["876"]="9",a["877"]="(",a["878"]="(",a["879"]="(",a["880"]="(",a["881"]="(",a["882"]="(",a["883"]="(",a["884"]="(",a["898"]="(",a["899"]="(",a["885"]="(",a["886"]="(",a["887"]="(",a["888"]="(",a);var r_={},Npx=(r_.STEREO_LAYOUT_UNKNOWN=0,r_.STEREO_LAYOUT_LEFT_RIGHT=1,r_.STEREO_LAYOUT_TOP_BOTTOM=2,r_);var j4,qh;j4={};g.Go=(j4.auto=0,j4.tiny=144,j4.light=144,j4.small=240,j4.medium=360,j4.large=480,j4.hd720=720,j4.hd1080=1080,j4.hd1440=1440,j4.hd2160=2160,j4.hd2880=2880,j4.highres=4320,j4);qh={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var Dv="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");y2.prototype.isHdr=function(){return this.B==="smpte2084"||this.B==="arib-std-b67"};zo.prototype.R7=function(){return this.containerType===2}; zo.prototype.isEncrypted=function(){return!!this.Ks}; zo.prototype.hx=function(){return!!this.audio}; zo.prototype.VL=function(){return!!this.video}; var l3=!1;g.V(a0,g.wC);g.N=a0.prototype;g.N.appendBuffer=function(w,M,P){if(this.Jz.X6()!==this.appendWindowStart+this.start||this.Jz.Ht()!==this.appendWindowEnd+this.start||this.Jz.OF()!==this.timestampOffset+this.start)this.Jz.supports(1),this.Jz.jk(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Jz.IN(this.timestampOffset+this.start);this.Jz.appendBuffer(w,M,P)}; g.N.abort=function(){this.Jz.abort()}; g.N.remove=function(w,M){this.Jz.remove(w+this.start,M+this.start)}; g.N.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.N.clear=function(){this.Jz.clear()}; g.N.jk=function(w,M){this.appendWindowStart=w;this.appendWindowEnd=M}; g.N.I3=function(){return this.timestampOffset+this.start}; g.N.X6=function(){return this.appendWindowStart}; g.N.Ht=function(){return this.appendWindowEnd}; g.N.IN=function(w){this.timestampOffset=w}; g.N.OF=function(){return this.timestampOffset}; g.N.cB=function(w){w=this.Jz.cB(w===void 0?!1:w);return OI(w,this.start,this.end)}; g.N.G1=function(){return this.Jz.G1()}; g.N.FU=function(){return this.Jz.FU()}; g.N.F_=function(){return this.Jz.F_()}; g.N.HK=function(){return this.Jz.HK()}; g.N.Iq=function(){this.Jz.Iq()}; g.N.Yv=function(w){return this.Jz.Yv(w)}; g.N.RW=function(){return this.Jz.RW()}; g.N.f3=function(){return this.Jz.f3()}; g.N.jf=function(w,M,P){this.Jz.jf(w,M,P)}; g.N.Ti=function(w,M,P){this.Jz.Ti(w,M,P)}; g.N.ZQ=function(w,M){return this.Jz.ZQ(w,M)}; g.N.supports=function(w){return this.Jz.supports(w)}; g.N.L3=function(){return this.Jz.L3()}; g.N.isView=function(){return!0}; g.N.CQ=function(){return this.Jz.CQ()?this.isActive:!1}; g.N.isLocked=function(){return this.PL&&!this.isActive}; g.N.Z4=function(w){w=this.Jz.Z4(w);w.vw=this.start+"-"+this.end;return w}; g.N.BY=function(){return this.Jz.BY()}; g.N.Gm=function(){return this.Jz.Gm()}; g.N.J3=function(){return this.Jz.J3()}; g.N.v3=function(){this.Jz.cO(this.wX);g.wC.prototype.v3.call(this)};var GP=!1;g.V(i8,g.wC);g.N=i8.prototype;g.N.appendBuffer=function(w,M,P){this.wZ=!1;P&&(this.Wq=P);if(w.length){var u;((u=this.sF)==null?0:u.appendBuffer)?this.sF.appendBuffer(w):this.sF?this.sF.append(w):this.Dq&&this.Dq.webkitSourceAppend(this.id,w)}M&&(M.isEncrypted()&&(this.rp=this.Wq),M.type===3&&(this.Jp=M),this.XO.push(M.vk()),this.XO.length>4&&this.XO.shift());this.F2&&(this.F2.length>=2||w.length>1048576?delete this.F2:this.F2.push(w))}; g.N.abort=function(){try{this.sF?this.sF.abort():this.Dq&&this.Dq.webkitSourceAbort(this.id)}catch(M){if(Jq5){var w=new g.bK("Error while abort the source buffer: "+M.name+", "+M.message);g.qU(w)}}this.Wq=this.Jp=null}; g.N.remove=function(w,M,P){this.wZ=!1;var u;if((u=this.sF)==null?0:u.remove)P&&P({b:gf(this.cB()),s:w,e:M}),this.sF.remove(w,M)}; g.N.removeAll=function(){this.remove(this.X6(),this.Ht())}; g.N.clear=function(){this.F_()||(this.abort(),this.removeAll(),this.rp=this.Wq=this.Jp=null,this.appendWindowStart=this.timestampOffset=0,this.RP=I0([],[]),this.wZ=!1,this.F2=wp?[]:void 0,this.Ut=!0)}; g.N.X6=function(){if(GP&&this.VL)return this.appendWindowStart;var w;return((w=this.sF)==null?void 0:w.appendWindowStart)||0}; g.N.Ht=function(){var w;return((w=this.sF)==null?void 0:w.appendWindowEnd)||0}; g.N.jk=function(w,M){this.sF&&(GP&&this.VL?(this.appendWindowStart=w,this.sF.appendWindowEnd=M):w>this.X6()?(this.sF.appendWindowEnd=M,this.sF.appendWindowStart=w):(this.sF.appendWindowStart=w,this.sF.appendWindowEnd=M))}; g.N.I3=function(){return this.timestampOffset}; g.N.IN=function(w){GP?this.timestampOffset=w:this.supports(1)&&(this.sF.timestampOffset=w)}; g.N.OF=function(){return GP?this.timestampOffset:this.supports(1)?this.sF.timestampOffset:0}; g.N.cB=function(w){if(w===void 0?0:w)return this.wZ||this.G1()||(this.RP=this.cB(!1),this.wZ=!0),this.RP;try{return this.sF?this.sF.buffered:this.Dq?this.Dq.webkitSourceBuffered(this.id):I0([0],[Infinity])}catch(M){return I0([],[])}}; g.N.G1=function(){var w;return((w=this.sF)==null?void 0:w.updating)||!1}; g.N.F_=function(){return this.Ut}; g.N.HK=function(){return!this.Ut&&this.G1()}; g.N.Iq=function(){this.Ut=!1}; g.N.Yv=function(w){var M=w==null?void 0:w.zk;w=w==null?void 0:w.containerType;return!M&&!w||M===this.zk&&w===this.containerType}; g.N.RW=function(){return this.Wq}; g.N.f3=function(){return this.rp}; g.N.ZQ=function(w,M){return this.containerType!==w||this.zk!==M}; g.N.jf=function(w,M,P){if(this.containerType!==w||P&&this.ZQ(w,P))this.supports(4),MV()&&this.sF.changeType(M),P&&(this.zk=P);this.containerType=w}; g.N.Ti=function(w,M,P){this.containerType&&this.ZQ(w,M)&&MV()&&this.sF.changeType(P);this.containerType=w;this.zk=M}; g.N.L3=function(){return this.Jp}; g.N.isView=function(){return!1}; g.N.supports=function(w){switch(w){case 1:var M;return((M=this.sF)==null?void 0:M.timestampOffset)!==void 0;case 0:var P;return!((P=this.sF)==null||!P.appendBuffer);case 2:var u;return!((u=this.sF)==null||!u.remove);case 3:var X,U;return!!(((X=this.sF)==null?0:X.addEventListener)&&((U=this.sF)==null?0:U.removeEventListener));case 4:return!(!this.sF||!this.sF.changeType);default:return!1}}; g.N.CQ=function(){return!this.G1()}; g.N.isLocked=function(){return!1}; g.N.Z4=function(w){w.to=this.OF();w.up=this.G1();var M,P=((M=this.sF)==null?void 0:M.appendWindowStart)||0,u;M=((u=this.sF)==null?void 0:u.appendWindowEnd)||Infinity;w.aw=P.toFixed(3)+"-"+M.toFixed(3);return w}; g.N.FU=function(){var w;return((w=this.sF)==null?void 0:w.writeHead)||0}; g.N.BY=function(){for(var w={},M=0;M=7&&Y4F(this,function(){g.cF(function(){Awu(w,w.getCurrentTime(),0)},500)}); return M}; g.N.seekTo=function(w){this.Jt()>0&&(sW&&xl<4&&(w=Math.max(.1,w)),this.setCurrentTime(w))}; g.N.Qu=function(){if(!this.L&&this.aI)if(this.aI.G)try{var w;UH(this,{l:"mer",sr:(w=this.fu)==null?void 0:w.B_(),rs:Wp(this.aI)});this.aI.clear();this.L=this.aI;this.aI=void 0}catch(M){w=new g.bK("Error while clearing Media Source in MediaElement: "+M.name+", "+M.message),g.qU(w),this.stopVideo()}else this.stopVideo()}; g.N.stopVideo=function(){var w=this;if(!this.L){var M;(M=this.aI)==null||KL5(M);if(IO1){if(!this.C){var P=new cp;P.then(void 0,function(){}); this.C=P;AqU&&this.pause();g.cF(function(){w.C===P&&(pO(w),P.resolve())},200)}}else pO(this)}}; g.N.rk=function(){var w=this.z0();return ty(w)&&this.getDuration()?j1(w,this.getCurrentTime()):0}; g.N.MQ=function(){var w=this.getDuration();return w===Infinity?1:w?this.rk()/w:0}; g.N.Z4=function(){try{var w=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:gf(this.dC(),",",3),vbu:gf(this.z0()),vbs:gf(this.Nm()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Jt(),vns:""+this.En(),vec:""+this.lX(),vemsg:this.Eq(),vvol:""+this.getVolume(),vdom:""+ +this.AS(),vsrc:""+ +!!this.Ez(),vw:""+w.width,vh:""+w.height}}catch(M){return{}}}; g.N.hasError=function(){return this.lX()>0}; g.N.addEventListener=function(w,M){this.X.listen(w,M,!1,this);this.LU(w)}; g.N.removeEventListener=function(w,M){this.X.Mt(w,M,!1,this)}; g.N.dispatchEvent=function(w){if(this.C&&w.type==="pause")return!1;if(gU4){var M,P=((M=w.B)==null?void 0:M.timeStamp)||Infinity;M=P>performance.now()?P-Date.now()+performance.now():P;P=this.L||this.aI;if((P==null?0:P.F_())||M<=((P==null?void 0:P.K)||0)){var u;UH(this,{l:"mede",sr:(u=this.fu)==null?void 0:u.B_(),et:w.type});return!1}if(this.t7)return UH(this,{l:"medes",et:w.type}),P&&w.type==="seeking"&&(P.K=performance.now(),this.t7=!1),!1}return this.X.dispatchEvent(w)}; g.N.PM=function(){this.K=!1}; g.N.qp=function(){this.K=!0;this.Qj(!0)}; g.N.Hu=function(){this.K&&!this.vY()&&this.Qj(!0)}; g.N.equals=function(w){return!!w&&w.vj()===this.vj()}; g.N.v3=function(){this.j&&this.removeEventListener("volumechange",this.Hu);IO1&&pO(this);g.v.prototype.v3.call(this)}; var IO1=!1,AqU=!1,gU4=!1,rwF=!1;g.N=g.EH.prototype;g.N.isPaused=function(){return g.C(this,4)}; g.N.isPlaying=function(){return g.C(this,8)&&!g.C(this,512)&&!g.C(this,64)&&!g.C(this,2)}; g.N.isOrWillBePlaying=function(){return g.C(this,8)&&!g.C(this,2)&&!g.C(this,1024)}; g.N.isCued=function(){return g.C(this,64)&&!g.C(this,8)&&!g.C(this,4)}; g.N.isBuffering=function(){return g.C(this,1)&&!g.C(this,2)}; g.N.isError=function(){return g.C(this,128)}; g.N.isSuspended=function(){return g.C(this,512)}; g.N.qc=function(){return g.C(this,64)&&g.C(this,4)}; g.N.toString=function(){return"PSt."+this.state.toString(16)}; var CT={},tU=(CT.BUFFERING="buffering-mode",CT.CUED="cued-mode",CT.ENDED="ended-mode",CT.PAUSED="paused-mode",CT.PLAYING="playing-mode",CT.SEEKING="seeking-mode",CT.UNSTARTED="unstarted-mode",CT);g.V(zE,g.v);g.N=zE.prototype;g.N.Qv=function(){return this.C}; g.N.gK=function(){return this.slot}; g.N.Qs=function(){return this.layout}; g.N.init=function(){var w=Af(this.layout.clientMetadata,"metadata_type_video_length_seconds"),M=Af(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");fN(this.layout.SL)&&$2(this.Bj.get(),this.layout.layoutId,{IA:M,JW:w,listener:this,zL:this.UE()});Uwp(this.FK.get(),this);w=this.n9;M=this.layout.layoutId;var P={zL:this.UE()};w.B.set(M,P);this.lU()}; g.N.E5=function(){}; g.N.release=function(){fN(this.layout.SL)&&UA(this.Bj.get(),this.layout.layoutId);fLR(this.FK.get(),this);this.n9.B.delete(this.layout.layoutId);this.z9()}; g.N.kp=function(){}; g.N.a8=function(){}; g.N.startRendering=function(w){$5(TE(this));if(dp(this,w)){var M=this.B;UI(M.params.zJ.EO.get(),!0)&&DoM(M,"p_sr",{});l8(this);this.po(w);this.UE()||this.fQ(!1)}}; g.N.N7=function(w,M){if(M.layoutId===this.layout.layoutId){this.zE="rendering";this.L=this.W3.get().isMuted()||this.W3.get().getVolume()===0;this.a9("impression");this.a9("start");if(this.W3.get().isMuted()){RN(this,"mute");var P;w=((P=Ym(this))==null?void 0:P.muteCommands)||[];dL(this.XX.get(),w,this.layout.layoutId)}if(this.W3.get().isFullscreen()){this.Zq("fullscreen");var u;P=((u=Ym(this))==null?void 0:u.fullscreenCommands)||[];dL(this.XX.get(),P,this.layout.layoutId)}this.UE()||(u=this.Rv.get(), u.C&&!u.L&&(u.G=!1,u.L=!0,u.actionType!=="ad_to_video"&&(Tv("pbs",void 0,u.actionType),g.FW("finalize_all_timelines")&&PvR(u.actionType))));this.jd(1);this.CF(M);var X;M=((X=Ym(this))==null?void 0:X.impressionCommands)||[];dL(this.XX.get(),M,this.layout.layoutId)}}; g.N.t1=function(w,M,P){this.j={bV:3,b8:w==="load_timeout"?402:400,errorMessage:M.message};this.a9("error");var u;w=((u=Ym(this))==null?void 0:u.errorCommands)||[];dL(this.XX.get(),w,this.layout.layoutId);this.UE()||this.rr.Pv(this.slot,this.layout,M,P)}; g.N.B6=function(){if(this.zE==="rendering"){RN(this,"pause");var w,M=((w=Ym(this))==null?void 0:w.pauseCommands)||[];dL(this.XX.get(),M,this.layout.layoutId);this.jd(2)}}; g.N.Lc=function(){if(this.zE==="rendering"){RN(this,"resume");var w,M=((w=Ym(this))==null?void 0:w.resumeCommands)||[];dL(this.XX.get(),M,this.layout.layoutId)}}; g.N.y5=function(w,M){M=M===void 0?!1:M;if(this.zE==="rendering"){var P={currentTimeSec:w,flush:M};f3(this.B,"p_ip",P);F3(this.lW,w*1E3,M);this.L||F3(this.lW,w*1E3,M===void 0?!1:M);var u=this.lO();if(u){u/=1E3;if(w>=u*.25||M)this.a9("first_quartile"),f3(this.B,"p_fq",P);if(w>=u*.5||M)this.a9("midpoint"),f3(this.B,"p_sq",P);if(w>=u*.75||M)this.a9("third_quartile"),f3(this.B,"p_tq",P);this.EO.get().U.N().experiments.nu("enable_progress_command_flush_on_kabuki")?qL(this.X,w*1E3,M):qL(this.X,w*1E3,aI5(this)? M:!1)}}}; g.N.rG=function(){var w;return((w=LO(this.D3.get(),1))==null?void 0:w.clientPlaybackNonce)||""}; g.N.UA=function(w,M){w.layoutId!==this.layout.layoutId?this.rr.Pv(this.slot,w,new ba("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"):M()}; g.N.Eb=function(w,M,P){if(M.layoutId===this.layout.layoutId)switch(this.zE="not_rendering",this.layoutExitReason=void 0,this.UE()||(w=P!=="normal"||this.position+1===this.K)&&this.fQ(w),this.P6(P),this.jd(0),P){case "abandoned":if(Ed(this.lW,"impression")){var u,X=((u=Ym(this))==null?void 0:u.abandonCommands)||[];dL(this.XX.get(),X,this.layout.layoutId)}break;case "normal":u=((X=Ym(this))==null?void 0:X.completeCommands)||[];dL(this.XX.get(),u,this.layout.layoutId);break;case "skipped":var U;u=((U= Ym(this))==null?void 0:U.skipCommands)||[];dL(this.XX.get(),u,this.layout.layoutId)}}; g.N.Yh=function(){return this.layout.layoutId}; g.N.x7=function(){return this.j}; g.N.dH=function(){if(this.zE==="rendering"){this.lW.a9("active_view_measurable");var w,M=((w=Ym(this))==null?void 0:w.activeViewMeasurableCommands)||[];dL(this.XX.get(),M,this.layout.layoutId)}}; g.N.Wf=function(){if(this.zE==="rendering"){this.lW.a9("active_view_fully_viewable_audible_half_duration");var w,M=((w=Ym(this))==null?void 0:w.activeViewFullyViewableAudibleHalfDurationCommands)||[];dL(this.XX.get(),M,this.layout.layoutId)}}; g.N.UK=function(){if(this.zE==="rendering"){this.lW.a9("active_view_viewable");var w,M=((w=Ym(this))==null?void 0:w.activeViewViewableCommands)||[];dL(this.XX.get(),M,this.layout.layoutId)}}; g.N.yA=function(){if(this.zE==="rendering"){this.lW.a9("audio_audible");var w,M=((w=Ym(this))==null?void 0:w.activeViewAudioAudibleCommands)||[];dL(this.XX.get(),M,this.layout.layoutId)}}; g.N.Xu=function(){if(this.zE==="rendering"){this.lW.a9("audio_measurable");var w,M=((w=Ym(this))==null?void 0:w.activeViewAudioMeasurableCommands)||[];dL(this.XX.get(),M,this.layout.layoutId)}}; g.N.fQ=function(w){this.Rv.get().fQ(Af(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,w,this.position,this.K,!1)}; g.N.onFullscreenToggled=function(w){if(this.zE==="rendering")if(w){this.Zq("fullscreen");var M,P=((M=Ym(this))==null?void 0:M.fullscreenCommands)||[];dL(this.XX.get(),P,this.layout.layoutId)}else this.Zq("end_fullscreen"),M=((P=Ym(this))==null?void 0:P.endFullscreenCommands)||[],dL(this.XX.get(),M,this.layout.layoutId)}; g.N.onVolumeChange=function(){if(this.zE==="rendering")if(this.W3.get().isMuted()){RN(this,"mute");var w,M=((w=Ym(this))==null?void 0:w.muteCommands)||[];dL(this.XX.get(),M,this.layout.layoutId)}else RN(this,"unmute"),w=((M=Ym(this))==null?void 0:M.unmuteCommands)||[],dL(this.XX.get(),w,this.layout.layoutId)}; g.N.FJ=function(){}; g.N.Qq=function(){}; g.N.qv=function(){}; g.N.gg=function(){}; g.N.jA=function(){}; g.N.Zq=function(w){this.lW.Zq(w,!this.L)}; g.N.a9=function(w){this.lW.a9(w,!this.L)}; g.N.UE=function(){var w=Af(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return w===void 0?(X$("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.EO.get().UE(w)};g.V(b8,zE);g.N=b8.prototype;g.N.lU=function(){}; g.N.z9=function(){var w=this.FK.get();w.QI===this&&(w.QI=null);this.timer.stop()}; g.N.kp=function(){this.timer.stop();zE.prototype.B6.call(this)}; g.N.a8=function(){AO(this);zE.prototype.Lc.call(this)}; g.N.lO=function(){return Af(this.Qs().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.N.Hk=function(w,M){var P=this;this.UA(w,function(){P.zE!=="rendering_stop_requested"&&(P.zE="rendering_stop_requested",P.layoutExitReason=M,eI(P,M),P.timer.stop())})}; g.N.Ub=function(){var w=Date.now(),M=w-this.XD;this.XD=w;this.IY+=M;this.IY>=this.lO()?this.e_():(this.y5(this.IY/1E3),IN(this,this.IY))}; g.N.P6=function(){}; g.N.QO=function(){}; g.V(gp,b8);g.N=gp.prototype;g.N.wO=function(w){if(this.zE!=="not_rendering"){w=Bp(this,w);var M=this.W3.get().getPresentingPlayerType()===2;this.zE==="rendering_start_requested"?M&&tJ(w)&&this.kd():M?g.fW(w,2)?X$("Receive player ended event during MediaBreak",this.gK(),this.Qs()):QO(this,w):this.H1()}}; g.N.po=function(){xoy(this);Eo_(this.W3.get());this.FK.get().QI=this;YL("pbp")||YL("pbs")||Tv("pbp");YL("pbp","watch")||YL("pbs","watch")||Tv("pbp",void 0,"watch");this.kd()}; g.N.CF=function(w){this.Rv.get();var M=Af(w.clientMetadata,"metadata_type_ad_placement_config").kind,P=this.position===0;w=Af(w.clientMetadata,"metadata_type_linked_in_player_layout_type");w={adBreakType:km(M),adType:hK4(w)};var u=void 0;P?M!=="AD_PLACEMENT_KIND_START"&&(u="video_to_ad"):u="ad_to_ad";yc("ad_mbs",void 0,u);g.Db(w,u);AO(this)}; g.N.H1=function(){this.Vi()}; g.N.e_=function(){iWy(this);this.Vi()}; g.V(JO,b8);g.N=JO.prototype;g.N.wO=function(w){this.zE!=="not_rendering"&&(w=Bp(this,w),QO(this,w))}; g.N.po=function(){X$("Not used in SSAP")}; g.N.CF=function(){AO(this)}; g.N.H1=function(){X$("Not used in SSAP")}; g.N.e_=function(){iWy(this);this.rr.Ua(this.gK(),this.Qs(),"normal")}; g.V(rp,JO);rp.prototype.Hk=function(w,M){var P=this;this.UA(w,function(){i3(P.C,M)&&(P.zE="rendering_stop_requested",P.layoutExitReason=M,eI(P,M),P.timer.stop())})}; rp.prototype.startRendering=function(w){$5(TE(this));dp(this,w)&&(l8(this),this.FK.get().QI=this)};g.V(tO,zE);g.N=tO.prototype;g.N.H1=function(){this.Vi()}; g.N.wO=function(w){if(this.zE!=="not_rendering"){w=Bp(this,w);var M=this.W3.get().getPresentingPlayerType()===2;this.zE==="rendering_start_requested"?M&&tJ(w)&&this.kd():!M||g.fW(w,2)?this.Vi():QO(this,w)}}; g.N.lU=function(){Af(this.Qs().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Af(this.Qs().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.N.z9=function(){Af(this.Qs().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.mX){var w=this.context.zJ,M=this.mX,P=this.Qs().layoutId;if(UI(w.EO.get(),!0)){var u={};w.H3("mccru",(u.cid=M,u.p_ac=P,u))}this.Iv.get().removeCueRange(this.mX)}this.mX=void 0;var X;(X=this.Uw)==null||X.dispose();this.TN&&this.TN.dispose()}; g.N.po=function(w){var M=jI(this.EO.get()),P=CO(this.EO.get());if(M&&P&&!this.UE()){P=Af(w.clientMetadata,"metadata_type_preload_player_vars");var u=this.EO.get();u=g.Oh(u.U.N().experiments,"html5_preload_wait_time_secs");P&&this.TN&&this.TN.start(u*1E3)}u$4(this,w);xoy(this);M?(P=this.pT.get(),w=Af(w.clientMetadata,"metadata_type_player_vars"),P.U.loadVideoByPlayerVars(w,!1,2)):e22(this.pT.get(),Af(w.clientMetadata,"metadata_type_player_vars"));var X;(X=this.Uw)==null||X.start();M||this.pT.get().U.playVideo(2)}; g.N.CF=function(){var w;(w=this.Uw)==null||w.stop();this.K5();(this.adCpn=tXu(this))||X$("Media layout confirmed started, but ad CPN not set.");this.YA.get().Oy("onAdStart",this.adCpn);this.y9=Date.now()}; g.N.lO=function(){var w;return(w=LO(this.D3.get(),2))==null?void 0:w.EC}; g.N.Vt=function(){this.lW.Zq("clickthrough")}; g.N.Hk=function(w,M){var P=this;this.UA(w,function(){if(P.zE!=="rendering_stop_requested"){P.zE="rendering_stop_requested";P.layoutExitReason=M;eI(P,M);var u;(u=P.Uw)==null||u.stop();P.TN&&P.TN.stop();Xj2(P)}})}; g.N.onCueRangeEnter=function(w){if(w!==this.mX)X$("Received CueRangeEnter signal for unknown layout.",this.gK(),this.Qs(),{cueRangeId:w});else{var M=this.context.zJ,P=this.Qs().layoutId;if(UI(M.EO.get(),!0)){var u={};M.H3("mccre",(u.cid=w,u.p_ac=P,u))}this.Iv.get().removeCueRange(this.mX);this.mX=void 0;BJ(this.context.EO.get(),"html5_ssap_flush_at_stop_rendering")&&this.UE()||(w=Af(this.Qs().clientMetadata,"metadata_type_video_length_seconds"),this.y5(w,!0),this.a9("complete"))}}; g.N.P6=function(w){w!=="abandoned"&&this.YA.get().Oy("onAdComplete");this.YA.get().Oy("onAdEnd",this.adCpn)}; g.N.K5=function(){this.mX="adcompletioncuerange:"+this.Qs().layoutId;this.Iv.get().addCueRange(this.mX,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var w=this.context.zJ,M=this.mX,P=this.Qs().layoutId;if(UI(w.EO.get(),!0)){var u={};w.H3("mccr",(u.cid=M,u.p_ac=P,u))}}; g.N.onCueRangeExit=function(){}; g.N.QO=function(w){this.zE==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&w>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.W3.get().o4(!0),this.y5(w))}; g.N.y5=function(w,M){zE.prototype.y5.call(this,w,M===void 0?!1:M);M=Date.now()-this.y9;var P=w*1E3,u={contentCpn:this.rG(),adCpn:tXu(this)};if(w-this.C7>=5){var X=M=2||(this.uB.Hk(this.layout,M),w=BJ(this.params.context.EO.get(),"html5_ssap_pass_transition_reason")&&M==="abandoned",this.iU()&&!w&&(BJ(this.params.context.EO.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(M)||X$("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:M})),this.LT.get().finishSegmentByCpn(this.layout.layoutId, LO(this.D3.get(),1).clientPlaybackNonce,vp(M,this.params.context.EO))),this.W3.get().removeListener(this),this.n8()&&Mp(this.uB.Qv())&&this.Nk.Eb(this.slot,this.layout,this.uB.Qv().B))}; g.N.JL=function(w,M,P){Gau({cpn:w,Bv:this.D3.get(),f1:!0});this.Qs().layoutId!==w||BJ(this.params.context.EO.get(),"html5_ssap_pass_transition_reason")&&P===5||(this.uB.Qv().currentState<2&&(w=sH(P,this.params.context.EO),w==="error"?this.Nk.Pv(this.slot,this.layout,new ba("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:P},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):$e(this.XP, this.layout,w)),BJ(this.params.context.EO.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Nk.Eb(this.slot,this.layout,this.uB.Qv().B))};g.V(iP,g.v);g.N=iP.prototype;g.N.gK=function(){return this.slot}; g.N.Qs=function(){return this.layout}; g.N.J1=function(){}; g.N.HB=function(){return this.zz[this.FC]}; g.N.mA=function(){return this.FC}; g.N.kp=function(w,M){var P=this.HB();M.layoutId!==Po(P,w,M)?X$("pauseLayout for a PlayerBytes layout that is not currently active",w,M):P.kp()}; g.N.a8=function(w,M){var P=this.HB();M.layoutId!==Po(P,w,M)?X$("resumeLayout for a PlayerBytes layout that is not currently active",w,M):P.a8()}; g.N.ev=function(w,M){var P=this.HB();pj5(this,w,M);Fo2(P,w,M)&&this.NV(P.gK(),P.Qs(),"skipped")}; g.N.mq=function(w,M){var P=this.HB();E9p(this);NMu(P,w,M)&&(w=VwR(this,P,w,M),w!==void 0&&(this.UE()?X$("Should not happen. Should delete"):o9x(this,P.gK(),P.Qs(),w)))}; g.N.Ad=function(w,M){var P=Object.assign({},Mm(this),{layoutId:M.layoutId}),u=P.layoutId,X=P.f1;if(P.zL){var U={};Xi(P.Bv,"wrse",(U.ec=u,U.is=X,U.ctp=u3(u),U))}Se(this.RN,w,M)}; g.N.N7=function(w,M){var P;(P=this.HB())==null||P.N7(w,M)}; g.N.Eb=function(w,M,P){M.layoutId===this.Qs().layoutId&&(this.hM=!1,MY(this.q7(),this));var u;(u=this.HB())==null||u.Eb(w,M,P)}; g.N.QO=function(w){var M;(M=this.HB())==null||M.QO(w)}; g.N.Gy=function(w,M,P){this.mA()===-1&&(this.callback.N7(this.slot,this.layout),this.FC++);var u=this.HB();u?(u.t1(w,M,P),this.UE()&&this.callback.Pv(this.slot,this.layout,M,P)):X$("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.mA()),layoutId:this.Qs().layoutId})}; g.N.onFullscreenToggled=function(w){var M;(M=this.HB())==null||M.onFullscreenToggled(w)}; g.N.FJ=function(w){var M;(M=this.HB())==null||M.FJ(w)}; g.N.qv=function(w){var M;(M=this.HB())==null||M.qv(w)}; g.N.onVolumeChange=function(){var w;(w=this.HB())==null||w.onVolumeChange()}; g.N.aP=function(w,M,P){HJ(this.RN,w,M,P)}; g.N.Cz=function(w){w.startRendering(w.Qs())}; g.N.init=function(){var w=Af(this.Qs().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");w&&(w.current=this);if(this.zz.length<1)throw new x("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.zz.length)});if(w=Af(this.Qs().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))w.current=this;w=g.G(this.zz);for(var M=w.next();!M.done;M=w.next())M=M.value,M.init(),I25(this.RN,this.slot,M.Qs()),Arp(this.RN,this.slot,M.Qs()); if(this.UE())for(this.D3.get().addListener(this),FLu(HWz(this),this.D3.get()),w=HWz(this),w=g.G(w),M=w.next();!M.done;M=w.next())this.q_(M.value)}; g.N.q_=function(w){var M=Af(w.clientMetadata,"metadata_type_player_vars");M?(w.layoutType!=="LAYOUT_TYPE_MEDIA"&&X$("Non-video ad contains playerVars",this.slot,w),this.pT.get().addPlayerResponseForAssociation({playerVars:M})):(w=cb5(w),this.pT.get().addPlayerResponseForAssociation({Ru:w}))}; g.N.release=function(){var w=Af(this.Qs().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");w&&(w.current=null);if(w=Af(this.Qs().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))w.current=null;w=g.G(this.zz);for(var M=w.next();!M.done;M=w.next())M=M.value,gB4(this.RN,this.slot,M.Qs()),M.release();this.UE()&&(this.D3.get().removeListener(this),ErH())}; g.N.UA=function(w){return w.layoutId!==this.Qs().layoutId?(this.callback.Pv(this.gK(),w,new ba("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Qs().layoutId+("and LayoutType: "+this.Qs().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.N.zT=function(){this.W3.get().addListener(this);ig(this.q7(),this)}; g.N.wO=function(w){if(w.state.isError()){var M,P;this.Gy((M=w.state.tV)==null?void 0:M.errorCode,new ba("There was a player error during this media layout.",{playerErrorCode:(P=w.state.tV)==null?void 0:P.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(M=this.HB())&&M.wO(w)}; g.N.UE=function(){var w=Af(this.gK().clientMetadata,"metadata_type_eligible_for_ssap");return w===void 0?(X$("Expected SSAP eligibility in PlayerBytes slots",this.gK(),this.Qs()),!1):this.EO.get().UE(w)}; g.N.Qq=function(){}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.Q0=function(){}; g.N.gg=function(){}; g.N.jA=function(){}; g.V(Uw,iP);g.N=Uw.prototype;g.N.qR=function(w,M,P){this.NV(w,M,P)}; g.N.bL=function(w,M){this.NV(w,M,"error")}; g.N.NV=function(w,M,P){var u=this;m92(this,w,M,P,function(){uP(u,u.mA()+1)})}; g.N.startRendering=function(w){this.UA(w)&&(this.zT(),dAl(this.Rv.get()),R21(this.EO.get())||Eo_(this.W3.get()),this.mA()===-1&&uP(this,this.mA()+1))}; g.N.Hk=function(w,M){var P=this;this.hM=!0;this.mA()===this.zz.length?this.callback.Eb(this.slot,this.layout,M):(w=this.HB(),w.Hk(w.Qs(),M),this.Ho=function(){P.callback.Eb(P.slot,P.layout,M)}); this.W3.get().U.Zf();e22(this.pT.get(),{});w=Xs(this.W3.get(),1);w.isPaused()&&!g.C(w,2)&&this.W3.get().playVideo();this.W3.get().removeListener(this);this.hM&&GOp(this)}; g.N.JL=function(){}; g.N.qP=function(){}; g.N.Ua=function(){}; g.V(fe,iP);g.N=fe.prototype;g.N.qR=function(w,M,P){w=Object.assign({},Mm(this),{layoutId:M.layoutId,layoutExitReason:P});M=w.layoutId;P=w.layoutExitReason;var u={};Xi(w.Bv,"prse",(u.xc=M,u.ler=P,u.ctp=u3(M),u))}; g.N.bL=function(){X$("onSubLayoutError in SSAP")}; g.N.NV=function(){X$("exitSubLayoutAndPlayNext in SSAP")}; g.N.HB=function(){return this.sE}; g.N.mA=function(){var w=this;return this.zz.findIndex(function(M){var P;return M.Qs().layoutId===((P=w.sE)==null?void 0:P.Qs().layoutId)})}; g.N.Cz=function(w){u0(this.sE===void 0,"replacing another adapter");this.sE=w;w.startRendering(w.Qs())}; g.N.aP=function(w,M,P){HJ(this.RN,w,M,P);var u;u0(M.layoutId===((u=this.sE)==null?void 0:u.Qs().layoutId),"currentAdapter does not match exiting layout",{slot:w?"slot: "+w.slotType:"",subLayout:Pj(M)})&&(this.sE=void 0)}; g.N.release=function(){iP.prototype.release.call(this);u0(this.sE===void 0,"currentAdapter is still active during release");this.sE=void 0}; g.N.iU=function(){return this.W3.get().getPresentingPlayerType()===2}; g.N.Hk=function(w,M){function P(){Wo(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(M)||X$("Composite stopRendering: Unexpected layout exit reason",this.slot,w,{layoutExitReason:M}))} function u(){this.sE&&hQ(this,this.sE,M);if(this.iU()&&(!Wo(this)||M!=="abandoned")){P.call(this);var U;var f=((U=this.D3.get().U.getVideoData())==null?void 0:U.clientPlaybackNonce)||"";U=LO(this.D3.get(),1).clientPlaybackNonce;this.LT.get().finishSegmentByCpn(f,U,vp(M,this.EO))}yb1(this,M)} function X(){if(this.sE){var U=this.sE;U.Qv().currentState<2&&U.Hk(U.Qs(),M);U=Wo(this)&&M==="abandoned";this.iU()&&!U&&(P.call(this),this.LT.get().finishSegmentByCpn(this.sE.Qs().layoutId,LO(this.D3.get(),1).clientPlaybackNonce,vp(M,this.EO)))}} u0(w.layoutId===this.Qs().layoutId,"StopRendering for wrong layout")&&i3(this.WW.L,M)&&(this.n8()?u.call(this):X.call(this))}; g.N.Eb=function(w,M,P){iP.prototype.Eb.call(this,w,M,P);M.layoutId===this.Qs().layoutId&&this.W3.get().removeListener(this)}; g.N.rG=function(){return LO(this.D3.get(),1).clientPlaybackNonce}; g.N.JL=function(w,M,P){Gau(Object.assign({},Mm(this),{cpn:w}));if(!Wo(this)||P!==5)if(this.n8()){if(this.sE&&this.sE.Qs().layoutId!==M){var u=this.sE.Qs().layoutId;u!==w&&X$("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:u,exitingCpn:w,enteringCpn:M});w=sH(P,this.EO);hQ(this,this.sE,w)}else this.sE&&X$("onClipExited: active layout is entering again");M===this.rG()&&qg1(this,P)}else{if(this.sE&&this.sE.Qs().layoutId===w)D91(this,this.sE,P);else{var X;X$("Exiting cpn does not match active cpn", this.slot,(u=this.sE)==null?void 0:u.Qs(),{exitingCpn:w,transitionReason:P,activeCpn:(X=this.sE)==null?void 0:X.Qs().layoutId})}M===this.rG()&&(this.sE!==void 0&&(X$("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Pj(this.sE.Qs())}),D91(this,this.sE,P)),qg1(this,P),yb1(this,this.WW.L.B))}}; g.N.n8=function(){return BJ(this.EO.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.N.startRendering=function(w){this.UA(w)&&(w=this.WW,u0(w.B===1,"tickStartRendering: state is not initial"),w.B=2,this.zT())}; g.N.qP=function(w){or4(Object.assign({},Mm(this),{cpn:w}));var M=this.zz.find(function(P){return P.Qs().layoutId===w}); M?(this.WW.B!==2&&(Uf5(this.Ur,this.slot.slotId),u0(this.WW.B===2,"Expect started"),this.callback.N7(this.slot,this.layout)),this.Cz(M),Se(this.RN,this.slot,M.Qs())):Ygx(this,w)}; g.N.ev=function(w,M){pj5(this,w,M);var P=this.HB();P?Fo2(P,w,M)&&zKp(this,"skipped"):TMF(this,"onSkipRequested")}; g.N.mq=function(w,M){var P;a:{if(P=this.HB()){if(E9p(this),NMu(P,w,M)&&(w=VwR(this,P,w,M),w!==void 0)){P={UW:P,yxK:this.zz[w]};break a}}else TMF(this,"SkipWithAdPodSkip");P=void 0}if(w=P)P=w.UW,M=w.yxK,w=P.Qs().layoutId,this.n8()?hQ(this,P,"skipped"):P.Hk(P.Qs(),"skipped"),P=M.Qs().layoutId,this.LT.get().finishSegmentByCpn(w,P,vp("skipped",this.EO))}; g.N.Ad=function(){X$("Not used in html5_ssap_fix_layout_exit")}; g.N.wO=function(w){var M;(M=this.HB())==null||M.wO(w)}; g.N.Gy=function(){X$("Not used in html5_ssap_fix_layout_exit")}; g.N.Ua=function(w,M,P){var u;if(((u=this.HB())==null?void 0:u.Qs().layoutId)!==M.layoutId)return void X$("requestToExitSubLayout: wrong layout");zKp(this,P)};g.V(co,g.v);g.N=co.prototype;g.N.gK=function(){return this.uB.gK()}; g.N.Qs=function(){return this.uB.Qs()}; g.N.init=function(){var w=Af(this.Qs().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");w&&(w.current=this);this.lU()}; g.N.lU=function(){this.uB.init()}; g.N.release=function(){var w=Af(this.Qs().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");w&&(w.current=null);this.z9()}; g.N.z9=function(){this.uB.release()}; g.N.kp=function(){this.uB.kp()}; g.N.a8=function(){this.uB.a8()}; g.N.ev=function(w,M){X$("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.gK(),this.Qs(),{requestingSlot:w,requestingLayout:M})}; g.N.startRendering=function(w){w.layoutId!==this.Qs().layoutId?this.callback.Pv(this.gK(),w,new ba("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Qs().layoutId+("and LayoutType: "+this.Qs().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.W3.get().addListener(this),ig(this.q7(),this),dAl(this.Rv.get()),R21(this.EO.get())||Eo_(this.W3.get()),this.uB.startRendering(w))}; g.N.Hk=function(w,M){this.hM=!0;this.uB.Hk(w,M);this.W3.get().U.Zf();e22(this.pT.get(),{});w=Xs(this.W3.get(),1);w.isPaused()&&!g.C(w,2)&&this.W3.get().playVideo();this.W3.get().removeListener(this);this.hM&&this.uB.H1()}; g.N.N7=function(w,M){this.uB.N7(w,M)}; g.N.Eb=function(w,M,P){M.layoutId===this.Qs().layoutId&&(this.hM=!1,MY(this.q7(),this));this.uB.Eb(w,M,P);M.layoutId===this.Qs().layoutId&&Xn(this.Rv.get())}; g.N.QO=function(w){this.uB.QO(w)}; g.N.wO=function(w){if(w.state.isError()){var M,P;this.Gy((M=w.state.tV)==null?void 0:M.errorCode,new ba("There was a player error during this media layout.",{playerErrorCode:(P=w.state.tV)==null?void 0:P.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.uB.wO(w)}; g.N.Gy=function(w,M,P){this.uB.t1(w,M,P)}; g.N.onFullscreenToggled=function(w){this.uB.onFullscreenToggled(w)}; g.N.FJ=function(w){this.uB.FJ(w)}; g.N.qv=function(w){this.uB.qv(w)}; g.N.onVolumeChange=function(){this.uB.onVolumeChange()}; g.N.Qq=function(){}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.Q0=function(){}; g.N.gg=function(){}; g.N.jA=function(){};g.N=Zc.prototype;g.N.gK=function(){return this.slot}; g.N.Qs=function(){return this.layout}; g.N.init=function(){this.Ya.get().addListener(this);this.W3.get().addListener(this);var w=Af(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var M=Af(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.X){var P=this.Ya.get().bZ.slice(-1)[0];P!==void 0&&(w=P.startSecs*1E3,M=(P.startSecs+P.Xq)*1E3)}this.E5(w,M);var u;P=(u=this.D3.get().fl)==null?void 0:u.clientPlaybackNonce;u=this.layout.Kg.adClientDataEntry;Sa(this.FK.get(),{daiStateTrigger:{filledAdsDurationMs:M-w,contentCpn:P, adClientData:u}});var X=this.Ya.get();X=Loy(X.C,w,M);X!==null&&(Sa(this.FK.get(),{daiStateTrigger:{filledAdsDurationMs:X-w,contentCpn:P,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:u}}),this.LT.get().Lb(X,M))}; g.N.release=function(){this.z9();this.Ya.get().removeListener(this);this.W3.get().removeListener(this)}; g.N.startRendering=function(){this.po();this.callback.N7(this.slot,this.layout)}; g.N.Hk=function(w,M){this.gV(M);this.driftRecoveryMs!==null&&(Ho(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(eKR(this)-Af(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.W3.get().U.Mz()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Eb(this.slot,this.layout,M)}; g.N.sI=function(){return!1}; g.N.b9=function(w){var M=Af(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),P=Af(this.layout.clientMetadata,"metadata_type_layout_exit_ms");w*=1E3;if(M<=w&&w0&&pD(this.B(),M)}; g.N.Gz=function(w){this.G.delete(w.slotId);for(var M=[],P=g.G(this.yE.values()),u=P.next();!u.done;u=P.next()){u=u.value;var X=u.trigger;X instanceof cE&&X.triggeringSlotId===w.slotId&&M.push(u)}M.length>0&&pD(this.B(),M)}; g.N.sH=function(w){for(var M=[],P=g.G(this.yE.values()),u=P.next();!u.done;u=P.next()){u=u.value;var X=u.trigger;X instanceof i_&&X.slotType===w.slotType&&X.B!==w.slotId&&M.push(u)}M.length>0&&pD(this.B(),M)}; g.N.GD=function(w){this.C.add(w.slotId);for(var M=[],P=g.G(this.yE.values()),u=P.next();!u.done;u=P.next())u=u.value,u.trigger instanceof $7&&w.slotId===u.trigger.triggeringSlotId&&M.push(u);M.length>0&&pD(this.B(),M)}; g.N.DC=function(w){this.C.delete(w.slotId);this.X.add(w.slotId);for(var M=[],P=g.G(this.yE.values()),u=P.next();!u.done;u=P.next())if(u=u.value,u.trigger instanceof UG)w.slotId===u.trigger.triggeringSlotId&&M.push(u);else if(u.trigger instanceof Il){var X=u.trigger;w.slotId===X.slotId&&this.L.has(X.triggeringLayoutId)&&M.push(u)}M.length>0&&pD(this.B(),M)}; g.N.xb=function(w){for(var M=[],P=g.G(this.yE.values()),u=P.next();!u.done;u=P.next())u=u.value,u.trigger instanceof f8&&w.slotId===u.trigger.triggeringSlotId&&M.push(u);M.length>0&&pD(this.B(),M)}; g.N.e0=function(w){for(var M=[],P=g.G(this.yE.values()),u=P.next();!u.done;u=P.next())u=u.value,u.trigger instanceof WE&&w.slotId===u.trigger.triggeringSlotId&&M.push(u);M.length>0&&pD(this.B(),M)}; g.N.S7=function(w,M){this.K.add(M.layoutId)}; g.N.rO=function(w,M){this.K.delete(M.layoutId)}; g.N.N7=function(w,M){this.L.add(M.layoutId);for(var P=[],u=g.G(this.yE.values()),X=u.next();!X.done;X=u.next())if(X=X.value,X.trigger instanceof AQ)M.layoutId===X.trigger.triggeringLayoutId&&P.push(X);else if(X.trigger instanceof wu){var U=X.trigger;w.slotType===U.slotType&&M.layoutType===U.layoutType&&M.layoutId!==U.B&&P.push(X)}else X.trigger instanceof Il&&(U=X.trigger,M.layoutId===U.triggeringLayoutId&&this.X.has(U.slotId)&&P.push(X));P.length>0&&pD(this.B(),P)}; g.N.Eb=function(w,M,P){this.L.delete(M.layoutId);w=[];for(var u=g.G(this.yE.values()),X=u.next();!X.done;X=u.next())if(X=X.value,X.trigger instanceof JQ&&M.layoutId===X.trigger.triggeringLayoutId&&w.push(X),X.trigger instanceof g6){var U=X.trigger;M.layoutId===U.triggeringLayoutId&&U.B.includes(P)&&w.push(X)}w.length>0&&pD(this.B(),w)}; g.N.Q0=function(){}; g.N.aY=function(){this.X.clear()}; g.N.D8=function(){};g.V(wE,g.v);wE.prototype.aE=function(w,M,P,u){if(this.yE.has(M.triggerId))throw new x("Tried to register duplicate trigger for slot.");if(!(M instanceof Ke))throw new x("Incorrect TriggerType: Tried to register trigger of type "+M.triggerType+" in CloseRequestedTriggerAdapter");this.yE.set(M.triggerId,new HE(w,M,P,u))}; wE.prototype.Vu=function(w){this.yE.delete(w.triggerId)};g.V(M1,g.v);M1.prototype.aE=function(w,M,P,u){if(this.yE.has(M.triggerId))throw new x("Tried to register duplicate trigger for slot.");if(!(M instanceof vo||M instanceof PE))throw new x("Incorrect TriggerType: Tried to register trigger of type "+M.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.yE.set(M.triggerId,new HE(w,M,P,u))}; M1.prototype.Vu=function(w){this.yE.delete(w.triggerId)}; M1.prototype.aY=function(w){for(var M=[],P=M.push,u=P.apply,X=[],U=g.G(this.yE.values()),f=U.next();!f.done;f=U.next())f=f.value,f.trigger instanceof vo&&f.trigger.SD===w&&X.push(f);u.call(P,M,g.L(X));P=M.push;u=P.apply;X=[];U=g.G(this.yE.values());for(f=U.next();!f.done;f=U.next())f=f.value,f.trigger instanceof PE&&f.trigger.B!==w&&X.push(f);u.call(P,M,g.L(X));M.length&&pD(this.B(),M)}; M1.prototype.D8=function(w){for(var M=[],P=M.push,u=P.apply,X=[],U=g.G(this.yE.values()),f=U.next();!f.done;f=U.next()){f=f.value;var h=f.trigger;h instanceof PE&&h.B===w&&X.push(f)}u.call(P,M,g.L(X));M.length&&pD(this.B(),M)};g.V(P2,g.v);g.N=P2.prototype;g.N.aE=function(w,M,P,u){if(this.yE.has(M.triggerId))throw new x("Tried to register duplicate trigger for slot.");var X="adtriggercuerange:"+M.triggerId;if(M instanceof Ow)xC2(this,w,M,P,u,X,M.B.start,M.B.end,M.SD,M.visible);else if(M instanceof bP)xC2(this,w,M,P,u,X,0x7ffffffffffff,0x8000000000000,M.SD,M.visible);else throw new x("Incorrect TriggerType: Tried to register trigger of type "+M.triggerType+" in CueRangeTriggerAdapter");}; g.N.Vu=function(w){var M=this.yE.get(w.triggerId);M&&this.Iv.get().removeCueRange(M.cueRangeId);this.yE.delete(w.triggerId)}; g.N.onCueRangeEnter=function(w){var M=Onz(this,w);if(M&&(M=this.yE.get(M)))if(g.C(Xs(this.W3.get()),32))this.B.add(M.cueRangeId);else{var P=M==null?void 0:M.gZ.trigger;if(P instanceof Ow||P instanceof bP){if(UI(this.context.EO.get())){var u=M.gZ.slot,X=M.gZ.layout,U={};this.context.zJ.H3("cre",(U.ca=M.gZ.category,U.tt=P.triggerType,U.st=u.slotType,U.lt=X==null?void 0:X.layoutType,U.cid=w,U))}pD(this.L(),[M.gZ])}}}; g.N.onCueRangeExit=function(w){(w=Onz(this,w))&&(w=this.yE.get(w))&&this.B.delete(w.cueRangeId)}; g.N.wO=function(w){if(Ug(w,16)<0){w=g.G(this.B);for(var M=w.next();!M.done;M=w.next())this.onCueRangeEnter(M.value,!0);this.B.clear()}}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.N7=function(){}; g.N.Eb=function(){}; g.N.Q0=function(){}; g.N.QO=function(){}; g.N.onFullscreenToggled=function(){}; g.N.FJ=function(){}; g.N.Qq=function(){}; g.N.qv=function(){}; g.N.onVolumeChange=function(){}; g.N.gg=function(){}; g.N.jA=function(){};g.V(uF,g.v);g.N=uF.prototype; g.N.aE=function(w,M,P,u){if(this.L.has(M.triggerId)||this.C.has(M.triggerId))throw new x("Tried to re-register the trigger.");w=new HE(w,M,P,u);if(w.trigger instanceof xe)this.L.set(w.trigger.triggerId,w);else if(w.trigger instanceof r6)this.C.set(w.trigger.triggerId,w);else throw new x("Incorrect TriggerType: Tried to register trigger of type "+w.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.L.has(w.trigger.triggerId)&&w.slot.slotId===this.B&&pD(this.X(),[w])}; g.N.Vu=function(w){this.L.delete(w.triggerId);this.C.delete(w.triggerId)}; g.N.J1=function(w){w=w.slotId;if(this.B!==w){var M=[];this.B!=null&&M.push.apply(M,g.L(aMu(this.C,this.B)));w!=null&&M.push.apply(M,g.L(aMu(this.L,w)));this.B=w;M.length&&pD(this.X(),M)}}; g.N.JL=function(){}; g.N.qP=function(){};g.V(Xx,g.v);g.N=Xx.prototype;g.N.aE=function(w,M,P,u){if(this.yE.has(M.triggerId))throw new x("Tried to register duplicate trigger for slot.");if(!(M instanceof MS))throw new x("Incorrect TriggerType: Tried to register trigger of type "+M.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.yE.set(M.triggerId,new HE(w,M,P,u))}; g.N.Vu=function(w){this.yE.delete(w.triggerId)}; g.N.N7=function(){}; g.N.Eb=function(){}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.Q0=function(){};g.V($T,g.v);g.N=$T.prototype;g.N.Q0=function(w,M){for(var P=[],u=g.G(this.yE.values()),X=u.next();!X.done;X=u.next()){X=X.value;var U=X.trigger;U.opportunityType===w&&(U.associatedSlotId&&U.associatedSlotId!==M||P.push(X))}P.length&&pD(this.B(),P)}; g.N.aE=function(w,M,P,u){if(this.yE.has(M.triggerId))throw new x("Tried to register duplicate trigger for slot.");if(!(M instanceof UUp))throw new x("Incorrect TriggerType: Tried to register trigger of type "+M.triggerType+" in OpportunityEventTriggerAdapter");this.yE.set(M.triggerId,new HE(w,M,P,u))}; g.N.Vu=function(w){this.yE.delete(w.triggerId)}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.N7=function(){}; g.N.Eb=function(){};g.V(UD,g.v);g.N=UD.prototype;g.N.aE=function(w,M,P,u){w=new HE(w,M,P,u);if(M instanceof Ce||M instanceof al||M instanceof tQ||M instanceof u_||M instanceof UHR){if(this.yE.has(M.triggerId))throw new x("Tried to register duplicate trigger for slot.");this.yE.set(M.triggerId,w)}else throw new x("Incorrect TriggerType: Tried to register trigger of type "+M.triggerType+" in PrefetchTriggerAdapter");}; g.N.Vu=function(w){this.yE.delete(w.triggerId)}; g.N.T0=function(w){var M=w.slotFulfillmentTriggers.find(function(P){return P instanceof Ce}); M&&(fm(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",M.breakDurationMs,new Set([w.slotId]),!0),Fn(this.FK.get(),"ads_css","sid."+w.slotId+";bd."+M.breakDurationMs))}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.N7=function(){}; g.N.Eb=function(){}; g.N.Q0=function(){}; g.N.sI=function(w){var M=this;if(!this.B)return X$("Unexpected cue break before fetch instructions are available"),!1;this.L&&this.L.stop();this.G&&g.JK(this.G);var P=Pa2(this,w);if(!P){var u=ic4(this),X=this.j!==void 0&&Date.now()<=this.j+1E4;Fn(this.FK.get(),"ads_ncfs","cid."+w.identifier+";cd."+w.Xq.toFixed(3)+";ccs."+X+";cfa."+this.X+";bdc."+u.length+";"+u.slice(0,6).map(function(U){return";bd."+U}).join("")); return!1}(new g.gV(function(){var U=P.trigger,f=P.slot;fm(M,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",U.breakDurationMs,new Set,!0);fm(M,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",U.breakDurationMs,new Set,!1);for(var h=0,c=g.G(M.yE.values()),Z=c.next();!Z.done;Z=c.next()){Z=Z.value;var S=Z.trigger;Z.slot.slotId===f.slotId&&(M.yE.delete(S.triggerId),h++)}Fn(M.FK.get(),"ads_csf","sid."+f.slotId+";bd."+U.breakDurationMs+";dt."+h)},10)).start(); return!0}; g.N.b9=function(){}; g.N.aY=function(w){var M=this;this.X=!1;this.j=Date.now();if(this.B&&this.B.contentCpn!==w)X$("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:w,fetchInstructionsCpn:this.B.contentCpn}),W2(this);else{this.C=new g.gV(function(){if(M.X)delete M.C;else{var u=M.W3.get().getGetAdBreakContext(),X;if(Number(u==null?void 0:(X=u.livePlaybackPosition)==null?void 0:X.utcTimeMillis)>0)delete M.C,Mnl(M);else{var U;(U=M.C)==null||U.start()}}},200); var P;(P=this.C)==null||P.start()}}; g.N.D8=function(w){this.B&&this.B.contentCpn!==w&&X$("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:w,fetchInstructionsCpn:this.B.contentCpn},!0);W2(this)}; g.N.Pi=function(w){var M=this;if(this.B)X$("Unexpected multiple fetch instructions for the current content");else{this.B=w;w=Xkp(w);this.L=new g.gV(function(){Mnl(M)},w?w:6E5); this.L.start();this.G=new g.gV(function(){M.B&&(M.L&&(M.L.stop(),M.L.start()),wkz(M,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},u25(this.B)); w=this.W3.get().getCurrentTimeSec(1,!1);for(var P=g.G(this.Ya.get().bZ),u=P.next();!u.done;u=P.next())u=u.value,Fn(this.FK.get(),"nocache","ct."+Date.now()+";cmt."+w+";d."+u.Xq.toFixed(3)+";tw."+(u.startSecs-w)+";cid."+u.identifier+";")}}; g.N.v3=function(){g.v.prototype.v3.call(this);W2(this)};g.V(hk,g.v);g.N=hk.prototype;g.N.aE=function(w,M,P,u){if(this.yE.has(M.triggerId))throw new x("Tried to register duplicate trigger for slot.");if(!(M instanceof SJ))throw new x("Incorrect TriggerType: Tried to register trigger of type "+M.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.yE.set(M.triggerId,new HE(w,M,P,u));w=this.B.has(M.triggeringLayoutId)?this.B.get(M.triggeringLayoutId):new Set;w.add(M);this.B.set(M.triggeringLayoutId,w)}; g.N.Vu=function(w){this.yE.delete(w.triggerId);if(!(w instanceof SJ))throw new x("Incorrect TriggerType: Tried to unregister trigger of type "+w.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var M=this.L.get(w.triggerId);M&&(M.dispose(),this.L.delete(w.triggerId));if(M=this.B.get(w.triggeringLayoutId))M.delete(w),M.size===0&&this.B.delete(w.triggeringLayoutId)}; g.N.T0=function(){}; g.N.Gz=function(){}; g.N.sH=function(){}; g.N.GD=function(){}; g.N.DC=function(){}; g.N.xb=function(){}; g.N.e0=function(){}; g.N.S7=function(){}; g.N.rO=function(){}; g.N.Q0=function(){}; g.N.N7=function(w,M){var P=this;if(this.B.has(M.layoutId)){w=this.B.get(M.layoutId);w=g.G(w);var u=w.next();for(M={};!u.done;M={jI:void 0},u=w.next())M.jI=u.value,u=new g.gV(function(X){return function(){var U=P.yE.get(X.jI.triggerId);pD(P.C(),[U])}}(M),M.jI.durationMs),u.start(),this.L.set(M.jI.triggerId,u)}}; g.N.Eb=function(){};g.V(c2,g.v);c2.prototype.aE=function(w,M,P,u){if(this.yE.has(M.triggerId))throw new x("Tried to register duplicate trigger for slot.");if(!(M instanceof Rl))throw new x("Incorrect TriggerType: Tried to register trigger of type "+M.triggerType+" in VideoTransitionTriggerAdapter.");this.yE.set(M.triggerId,new HE(w,M,P,u))}; c2.prototype.Vu=function(w){this.yE.delete(w.triggerId)};pm.prototype.SX=function(w){return w.kind==="AD_PLACEMENT_KIND_START"};g.V(N1,g.v);g.N=N1.prototype;g.N.logEvent=function(w){this.I8(w)}; g.N.qS=function(w,M,P){this.I8(w,void 0,void 0,void 0,M,void 0,void 0,void 0,M.adSlotLoggingData,void 0,void 0,P)}; g.N.qd=function(w,M,P,u){this.I8(w,void 0,void 0,void 0,M,P?P:void 0,void 0,void 0,M.adSlotLoggingData,P?P.adLayoutLoggingData:void 0,void 0,u)}; g.N.s0=function(w,M,P,u){BJ(this.EO.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+w,"trigger:",P,"slot:",M,"layout:",u);Cc(this.B.get())&&this.I8(w,void 0,void 0,void 0,M,u?u:void 0,void 0,P,M.adSlotLoggingData,u?u.adLayoutLoggingData:void 0)}; g.N.xq=function(w,M,P,u,X){this.I8(w,M,P,u,void 0,void 0,void 0,void 0,void 0,void 0,void 0,X)}; g.N.Jy=function(w,M,P,u){this.I8("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,P,u,void 0,void 0,P.adSlotLoggingData,u?u.adLayoutLoggingData:void 0,{errorType:w,errorMessage:M})}; g.N.I8=function(w,M,P,u,X,U,f,h,c,Z,S,H){var p=this;H=H===void 0?0:H;BJ(this.EO.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+w,"slot:",X,"layout:",U,"ping:",f,"Opportunity:",{opportunityType:M,associatedSlotId:P,pW$:u,mc$:h,adSlotLoggingData:c,adLayoutLoggingData:Z});try{var F=function(){if(!p.EO.get().U.N().D("html5_disable_client_tmp_logs")&&w!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){w||X$("Empty PACF event type",X,U);var E=Cc(p.B.get()),y={eventType:w,eventOrder:++p.eventCount},q={}; X&&(q.slotData=jn(E,X));U&&(q.layoutData=nBF(E,U));f&&(q.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:f.B.serializedAdPingMetadata,pingIndex:f.index});h&&(q.triggerData=rA(h.trigger,h.category));M&&(q.opportunityData=vBM(E,M,P,u));E={organicPlaybackContext:{contentCpn:LO(p.D3.get(),1).clientPlaybackNonce}};E.organicPlaybackContext.isLivePlayback=LO(p.D3.get(),1).dK;var d;E.organicPlaybackContext.isMdxPlayback=(d=LO(p.D3.get(),1))==null?void 0:d.isMdxPlayback; var l;if((l=LO(p.D3.get(),1))==null?0:l.daiEnabled)E.organicPlaybackContext.isDaiContent=!0;var e;if(d=(e=LO(p.D3.get(),2))==null?void 0:e.clientPlaybackNonce)E.adVideoPlaybackContext={adVideoCpn:d};E&&(q.externalContext=E);y.adClientData=q;c&&(y.serializedSlotAdServingData=c.serializedSlotAdServingDataEntry);Z&&(y.serializedAdServingData=Z.serializedAdServingDataEntry);S&&(y.errorInfo=S);g.ub("adsClientStateChange",{adsClientEvent:y})}}; H&&H>0?g.rH(g.C0(),function(){return F()},H):F()}catch(E){BJ(this.EO.get(),"html5_log_pacf_logging_errors")&&g.rH(g.C0(),function(){X$(E instanceof Error?E:String(E),X,U,{pacf_message:"exception during pacf logging"})})}};var gfa=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.V(V5,N1);g.N=V5.prototype; g.N.qS=function(w,M,P){N1.prototype.qS.call(this,w,M,P);UI(this.EO.get())&&(P={},this.context.zJ.H3("pacf",(P.et=w,P.st=M.slotType,P.si=M.slotId,P)))}; g.N.qd=function(w,M,P,u){var X=gfa.has(w);N1.prototype.qd.call(this,w,M,P,u);UI(this.EO.get(),X)&&(u={},this.context.zJ.H3("pacf",(u.et=w,u.st=M.slotType,u.si=M.slotId,u.lt=P==null?void 0:P.layoutType,u.li=P==null?void 0:P.layoutId,u.p_ac=P==null?void 0:P.layoutId,u)))}; g.N.xq=function(w,M,P,u,X){N1.prototype.xq.call(this,w,M,P,u,X);UI(this.EO.get())&&(P={},this.context.zJ.H3("pacf",(P.et=w,P.ot=M,P.ss=u==null?void 0:u.length,P)))}; g.N.s0=function(w,M,P,u){N1.prototype.s0.call(this,w,M,P,u);if(UI(this.EO.get())){var X={};this.context.zJ.H3("pacf",(X.et=w,X.tt=P.trigger.triggerType,X.tc=P.category,X.st=M.slotType,X.si=M.slotId,X.lt=u==null?void 0:u.layoutType,X.li=u==null?void 0:u.layoutId,X.p_ac=u==null?void 0:u.layoutId,X))}}; g.N.Jy=function(w,M,P,u){N1.prototype.Jy.call(this,w,M,P,u);if(UI(this.EO.get(),!0)){var X={};this.context.zJ.H3("perror",(X.ert=w,X.erm=M,X.st=P.slotType,X.si=P.slotId,X.lt=u==null?void 0:u.layoutType,X.li=u==null?void 0:u.layoutId,X.p_ac=u==null?void 0:u.layoutId,X))}}; g.N.I8=function(w,M,P,u,X,U,f,h,c,Z,S){var H=this.EO.get();g.Z$(H.U.N())?(H=this.EO.get(),H=g.Oh(H.U.N().experiments,"H5_async_logging_delay_ms")):H=void 0;N1.prototype.I8.call(this,w,M,P,u,X,U,f,h,c,Z,S,H)};mY.prototype.clear=function(){this.B.clear()};oJ.prototype.state=function(){return this.B==="fulfilled"?{state:"fulfilled",value:this.result}:this.B==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; oJ.prototype.X=function(w){y5(w)||Gi(w)?dE(Do(w),this.X.bind(this),this.reject.bind(this)):(this.B="fulfilled",this.result=w,Ti(this))}; oJ.prototype.reject=function(w){this.B="rejected";this.error=w;Ti(this)}; var Gi=$w(function(w){return UjE(w)?w instanceof oJ:!1});Object.freeze({W33:function(w){var M=kT(w);return dE(Q5(M,function(P){return M[P].B==="rejected"}),function(P){return Number.isNaN(P)?M.map(function(u){return u.state().value}):M[P]})}, dcu:function(w){var M=kT(w);return dE(Q5(M),function(){return M.map(function(P){return P.state()})})}, Uc9:function(w){var M=kT(w);return dE(Q5(M,function(P){return M[P].B==="fulfilled"}),function(P){return Number.isNaN(P)?q1(new AggregateError(M.map(function(u){return u.state().reason}))):M[P].state().value})}, K3L:function(w){var M=kT(w);return dE(Q5(M,function(){return!0}),function(P){return M[P]})}});var RJ=window.X9L||"es-419";Km.prototype.vc=function(w){this.client=w}; Km.prototype.B=function(){this.clear();this.csn=g.En()}; Km.prototype.clear=function(){this.C.clear();this.L.clear();this.X.clear();this.csn=null};IJ.prototype.vc=function(w){g.j2(bF().vc).bind(bF())(w)}; IJ.prototype.clear=function(){g.j2(bF().clear).bind(bF())()};g.N=Ak.prototype;g.N.vc=function(w){this.client=w}; g.N.mp=function(w,M){var P=this;M=M===void 0?{}:M;g.j2(function(){var u,X,U,f=((u=g.A(w==null?void 0:w.commandMetadata,g.qg))==null?void 0:u.rootVe)||((X=g.A(w==null?void 0:w.commandMetadata,hxE))==null?void 0:(U=X.screenVisualElement)==null?void 0:U.uiType);if(f){u=g.A(w==null?void 0:w.commandMetadata,dEV);if(u==null?0:u.parentTrackingParams){var h=g.Hm(u.parentTrackingParams);if(u.parentCsn)var c=u.parentCsn}else M.clickedVisualElement?h=M.clickedVisualElement:w.clickTrackingParams&&(h=g.Hm(w.clickTrackingParams)); a:{u=g.A(w,g.c7);X=g.A(w,GLC);if(u){if(X=Dfy(u,"VIDEO")){u={token:X,videoId:u.videoId};break a}}else if(X&&(u=Dfy(X,"PLAYLIST"))){u={token:u,playlistId:X.playlistId};break a}u=void 0}M=Object.assign({},{cttAuthInfo:u,parentCsn:c},M);if(g.FW("expectation_logging")){var Z;M.loggingExpectations=((Z=g.A(w==null?void 0:w.commandMetadata,hxE))==null?void 0:Z.loggingExpectations)||void 0}Jk(P,f,h,M)}else g.Yq(new g.bK("Error: Trying to create a new screen without a rootVeType",w))})()}; g.N.clickCommand=function(w,M,P){w=w.clickTrackingParams;P=P===void 0?0:P;w?(P=g.En(P===void 0?0:P))?(gj(this.client,P,g.Hm(w),M),M=!0):M=!1:M=!1;return M}; g.N.stateChanged=function(w,M,P){this.visualElementStateChanged(g.Hm(w),M,P===void 0?0:P)}; g.N.visualElementStateChanged=function(w,M,P){P=P===void 0?0:P;P===0&&this.L.has(P)?this.V.push([w,M]):lgp(this,w,M,P)};tk.prototype.fetch=function(w,M,P){var u=this,X=BAu(w,M,P);return new Promise(function(U,f){function h(){if(P==null?0:P.w8)try{var Z=u.handleResponse(w,X.status,X.response,P);U(Z)}catch(S){f(S)}else U(u.handleResponse(w,X.status,X.response,P))} X.onerror=h;X.onload=h;var c;X.send((c=M.body)!=null?c:null)})}; tk.prototype.handleResponse=function(w,M,P,u){P=P.replace(")]}'","");try{var X=JSON.parse(P)}catch(U){g.Yq(new g.bK("JSON parsing failed after XHR fetch",w,M,P));if((u==null?0:u.w8)&&P)throw new g.s7(1,"JSON parsing failed after XHR fetch");X={}}M!==200&&(g.Yq(new g.bK("XHR API fetch failed",w,M,P)),X=Object.assign({},X,{errorMetadata:{status:M}}));return X};xT.getInstance=function(){var w=g.Mj("ytglobal.storage_");w||(w=new xT,g.ih("ytglobal.storage_",w));return w}; xT.prototype.estimate=function(){var w,M,P;return g.n(function(u){w=navigator;return((M=w.storage)==null?0:M.estimate)?u.return(w.storage.estimate()):((P=w.webkitTemporaryStorage)==null?0:P.queryUsageAndQuota)?u.return(Qnl()):u.return()})}; g.ih("ytglobal.storageClass_",xT);MZ.prototype.FH=function(w){this.handleError(w)}; MZ.prototype.logEvent=function(w,M){switch(w){case "IDB_DATA_CORRUPTED":g.FW("idb_data_corrupted_killswitch")||this.B("idbDataCorrupted",M);break;case "IDB_UNEXPECTEDLY_CLOSED":this.B("idbUnexpectedlyClosed",M);break;case "IS_SUPPORTED_COMPLETED":g.FW("idb_is_supported_completed_killswitch")||this.B("idbIsSupportedCompleted",M);break;case "QUOTA_EXCEEDED":Rb2(this,M);break;case "TRANSACTION_ENDED":this.C&&Math.random()<=.1&&this.B("idbTransactionEnded",M);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":w= Object.assign({},M,{hasWindowUnloaded:this.L}),this.B("idbTransactionAborted",w)}};var xz={},o7l=g.CA("yt-player-local-media",{Mk:(xz.index={XW:2},xz.media={XW:2},xz.captions={XW:5},xz),shared:!1,upgrade:function(w,M){M(2)&&(g.Dl(w,"index"),g.Dl(w,"media"));M(5)&&g.Dl(w,"captions");M(6)&&(qZ(w,"metadata"),qZ(w,"playerdata"))}, version:5});var J1a={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},O5;a:{var aR=g.RK();aR=aR.toLowerCase();if(g.LE(aR,"android")){var r13=aR.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(r13){var jUp=parseFloat(r13[1]);if(jUp<100){O5=jUp;break a}}var C6p=aR.match("("+Object.keys(J1a).join("|")+")");O5=C6p?J1a[C6p[0]]:0}else O5=void 0}var g8=O5,Au=g8>=0;var JMM=window;var ny1=BS(function(){var w,M;return(M=(w=window).matchMedia)==null?void 0:M.call(w,"(prefers-reduced-motion: reduce)").matches});var aJ;g.OD=new Sd;aJ=0;var SY=gyU()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Im?!0:!1;var Mh={hk:function(w,M){w[W[11]](0,M)}, Cb:function(w){w[W[61]]()}, uR:function(w,M){var P=w[0];w[0]=w[M%w[W[3]]];w[M%w[W[3]]]=P}};var N61={kz9:"adunit",HiO:"detailpage",v6N:"editpage",mS0:"embedded",l0K:"leanback",H$K:"previewpage",b$I:"profilepage",MF:"unplugged",oH3:"playlistoverview",Yj3:"sponsorshipsoffer",OXu:"shortspage",NgO:"handlesclaiming",I0L:"immersivelivepage",Nh3:"creatormusic",pwI:"immersivelivepreviewpage",XZW:"admintoolyurt",haO:"shortsaudiopivot",t1L:"consumption"};var Cgz=2592E3;var wm,t0U,lN;wm={};g.Eq=(wm.STOP_EVENT_PROPAGATION="html5-stop-propagation",wm.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",wm.IV_DRAWER_OPEN="ytp-iv-drawer-open",wm.MAIN_VIDEO="html5-main-video",wm.VIDEO_CONTAINER="html5-video-container",wm.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",wm.HOUSE_BRAND="house-brand",wm);t0U={};lN=(t0U.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",t0U.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",t0U);var u32={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var ffu={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},WeU={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"},MqR={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var KHy={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.mj.prototype.getLanguageInfo=function(){return this.Y2}; g.mj.prototype.getXtags=function(){if(!this.xtags){var w=this.id.split(";");w.length>1&&(this.xtags=w[1])}return this.xtags}; g.mj.prototype.toString=function(){return this.Y2.name}; g.mj.prototype.getLanguageInfo=g.mj.prototype.getLanguageInfo;oT.prototype.equals=function(w){return this.L===w.L&&this.B===w.B&&this.C===w.C&&this.reason===w.reason&&(!yR||this.A9===w.A9)}; oT.prototype.isLocked=function(){return this.C&&!!this.L&&this.L===this.B}; oT.prototype.compose=function(w){if(w.C&&DR(w))return P7;if(w.C||DR(this))return w;if(this.C||DR(w))return this;var M=this.L&&w.L?Math.max(this.L,w.L):this.L||w.L,P=this.B&&w.B?Math.min(this.B,w.B):this.B||w.B;M=Math.min(M,P);var u=0;yR&&(u=this.A9!==0&&w.A9!==0?Math.min(this.A9,w.A9):this.A9===0?w.A9:this.A9);return yR&&M===this.L&&P===this.B&&u===this.A9||!yR&&M===this.L&&P===this.B?this:yR?new oT(M,P,!1,P===this.B&&u===this.A9?this.reason:w.reason,u):new oT(M,P,!1,P===this.B?this.reason:w.reason)}; oT.prototype.X=function(w){return!w.video||yR&&this.A9!==0&&this.A9=0}; g.N.u6=function(){var w=this.segments[this.segments.length-1];return w?w.endTime:NaN}; g.N.ov=function(){return this.segments[0].startTime}; g.N.Vo=function(){return this.segments.length}; g.N.Mg=function(){return 0}; g.N.C9=function(w){return(w=this.Gb(w))?w.Ku:-1}; g.N.MA=function(w){return(w=this.OT(w))?w.sourceURL:""}; g.N.getStartTime=function(w){return(w=this.OT(w))?w.startTime:0}; g.N.ut=function(w){return this.getStartTime(w)+this.getDuration(w)}; g.N.WY=u2(1);g.N.isLoaded=function(){return this.segments.length>0}; g.N.OT=function(w){if(this.B&&this.B.Ku===w)return this.B;w=g.I$(this.segments,new jB(w,0,0,0,""),function(M,P){return M.Ku-P.Ku}); return this.B=w>=0?this.segments[w]:null}; g.N.Gb=function(w){if(this.B&&this.B.startTime<=w&&w=0?this.segments[w]:this.segments[Math.max(0,-w-2)]}; g.N.append=function(w){if(w.length)if(w=g.LC(w),this.segments.length){var M=this.segments.length?g.FE(this.segments).endTime:0,P=w[0].Ku-this.T5();P>1&&yH4(this.segments);for(P=P>0?0:-P+1;Pw.Ku&&this.index.wY()<=w.Ku+1}; g.N.update=function(w,M,P){this.index.append(w);vCy(this.index,P);w=this.index;w.L=M;w.C="update"}; g.N.Wv=function(){return this.FV()?!0:A3.prototype.Wv.call(this)}; g.N.BW=function(w,M){var P=this.index.MA(w),u=this.index.getStartTime(w),X=this.index.getDuration(w),U;M?X=U=0:U=this.info.A9>0?this.info.A9*X:1E3;return new MJ([new Cw(3,this,void 0,"liveCreateRequestInfoForSegment",w,u,X,0,U,!M)],P)}; g.N.zR=function(){return this.FV()?0:this.initRange.length}; g.N.oD=function(){return!1};WC.prototype.update=function(w){var M=void 0;this.L&&(M=this.L);var P=new WC,u=Array.from(w.getElementsByTagName("S"));if(u.length){var X=+UO(w,"timescale")||1,U=(+u[0].getAttribute("t")||0)/X,f=+UO(w,"startNumber")||0;P.X=U;var h=M?M.startSecs+M.Xq:0,c=Date.parse(eX5(UO(w,"yt:segmentIngestTime")))/1E3;P.G=w.parentElement.tagName==="SegmentTemplate";P.G&&(P.j=UO(w,"media"));w=M?f-M.Ku:1;P.K=w>0?0:-w+1;w=g.G(u);for(u=w.next();!u.done;u=w.next()){u=u.value;for(var Z=+u.getAttribute("d")/X,S=(+u.getAttribute("yt:sid")|| 0)/X,H=+u.getAttribute("r")||0,p=0;p<=H;p++)if(M&&f<=M.Ku)f++;else{var F=new lv1(f,h,Z,c+S,U);P.B.push(F);var E=u;var y=X,q=F.startSecs;F=E.getAttribute("yt:cuepointTimeOffset");var d=E.getAttribute("yt:cuepointDuration");if(F&&d){F=Number(F);q=-F/y+q;y=Number(d)/y;d=E.getAttribute("yt:cuepointContext")||null;var l=E.getAttribute("yt:cuepointIdentifier")||"";E=E.getAttribute("yt:cuepointEvent")||"";E=new uQ(q,y,d,l,Ojx[E]||"unknown",F)}else E=null;E&&P.C.push(E);f++;h+=Z;U+=Z;c+=Z+S}}P.B.length&& (P.L=g.FE(P.B))}this.K=P.K;this.L=P.L||this.L;g.kV(this.B,P.B);g.kV(this.C,P.C);this.G=P.G;this.j=P.j;this.X===-1&&(this.X=P.getStreamTimeOffset())}; WC.prototype.getStreamTimeOffset=function(){return this.X===-1?0:this.X};g.V(cC,g.Cr);g.N=cC.prototype;g.N.tH=function(){return this.F9}; g.N.Vv=function(w,M){w=ZB(this,w);return w>=0&&(M||!this.segments[w].pending)}; g.N.wY=function(){return this.WC?this.segments.length?this.Gb(this.ov()).Ku:-1:g.Cr.prototype.wY.call(this)}; g.N.ov=function(){if(this.Gt)return 0;if(!this.WC)return g.Cr.prototype.ov.call(this);if(!this.segments.length)return 0;var w=Math.max(g.FE(this.segments).endTime-this.g8,0);return this.yL>0&&this.Gb(w).Ku0)return this.Uj/1E3;if(!this.segments.length)return g.Cr.prototype.u6.call(this);var w=this.T5();if(!this.WC||w<=this.segments[this.segments.length-1].Ku)w=this.segments[this.segments.length-1];else{var M=this.segments[this.segments.length-1];w=new jB(w,Math.max(0,M.startTime-(M.Ku-w)*this.F9),this.F9,0,"sq/"+w,void 0,void 0,!0)}return this.Gt?Math.min(this.g8,w.endTime):w.endTime}; g.N.Vo=function(){return this.WC?this.segments.length?this.T5()-this.wY()+1:0:g.Cr.prototype.Vo.call(this)}; g.N.T5=function(){var w=Math.min(this.Xc,Math.max(g.Cr.prototype.T5.call(this),this.P8)),M=this.g8*1E3;M=this.Uj>0&&this.Uj0&&this.P8>0&&!M&&(M=this.Gb(this.g8))&&(w=Math.min(M.Ku-1,w));return w}; g.N.rC=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.N.eF=function(w){var M=ZB(this,w.Ku);if(M>=0)this.segments[M]=w;else if(this.segments.splice(-(M+1),0,w),this.wj&&w.Ku%(300/this.F9)===0){var P=this.segments[0].Ku,u=Math.floor(this.wj/this.F9);w=w.Ku-u;M=-(M+1)-u;M>0&&w>P&&(this.segments=this.segments.slice(M))}}; g.N.e$=function(){return this.P8}; g.N.RK=function(w){return hL?!this.L&&w>=0&&this.T5()<=w:g.Cr.prototype.RK.call(this,w)}; g.N.Gb=function(w){if(!this.WC)return g.Cr.prototype.Gb.call(this,w);if(!this.segments.length)return null;var M=this.segments[this.segments.length-1];if(w=M.endTime)M=M.Ku+Math.floor((w-M.endTime)/this.F9+1);else{M=Ax(this.segments,function(u){return w=u.endTime?1:0}); if(M>=0)return this.segments[M];var P=-(M+1);M=this.segments[P-1];P=this.segments[P];M=Math.floor((w-M.endTime)/((P.startTime-M.endTime)/(P.Ku-M.Ku-1))+1)+M.Ku}return this.OT(M)}; g.N.OT=function(w){if(!this.WC)return g.Cr.prototype.OT.call(this,w);if(!this.segments.length)return null;var M=ZB(this,w);if(M>=0)return this.segments[M];var P=-(M+1);M=this.F9;if(P===0)var u=Math.max(0,this.segments[0].startTime-(this.segments[0].Ku-w)*M);else P===this.segments.length?(u=this.segments[this.segments.length-1],u=u.endTime+(w-u.Ku-1)*M):(u=this.segments[P-1],M=this.segments[P],M=(M.startTime-u.endTime)/(M.Ku-u.Ku-1),u=u.endTime+(w-u.Ku-1)*M);return new jB(w,u,M,0,"sq/"+w,void 0,void 0, !0)}; var hL=!1;g.V(Sj,$Y);g.N=Sj.prototype;g.N.yP=function(){return!0}; g.N.Wv=function(){return!0}; g.N.fH=function(w){return this.jr()&&w.C&&!w.G||!w.B.index.RK(w.Ku)}; g.N.Xl=function(){}; g.N.tP=function(w,M){return typeof w!=="number"||isFinite(w)?$Y.prototype.tP.call(this,w,M===void 0?!1:M):new MJ([new Cw(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.n6,void 0,this.n6*this.info.A9)],"")}; g.N.BW=function(w,M){var P=P===void 0?!1:P;if(this.index.Vv(w))return $Y.prototype.BW.call(this,w,M);var u=this.index.getStartTime(w),X=Math.round(this.n6*this.info.A9),U=this.n6;M&&(U=X=0);return new MJ([new Cw(P?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",w,u,U,void 0,X,!M)],w>=0?"sq/"+w:"")};g.V(HC,A3);g.N=HC.prototype;g.N.sj=function(){return!1}; g.N.jr=function(){return!1}; g.N.yP=function(){return!1}; g.N.Xl=function(){return new MJ([new Cw(1,this,void 0,"otfInit")],this.G)}; g.N.us=function(){return null}; g.N.iG=function(w){this.fH(w);return K94(this,aW(w),!1)}; g.N.tP=function(w,M){M=M===void 0?!1:M;w=this.index.C9(w);M&&(w=Math.min(this.index.T5(),w+1));return K94(this,w,!0)}; g.N.Xo=function(w){w.info.type===1&&(this.B||(this.B=U$(w.L)),w.B&&w.B.uri==="http://youtube.com/streaming/otf/durations/112015"&&b3R(this,w.B))}; g.N.fH=function(w){return w.C===0?!0:this.index.T5()>w.Ku&&this.index.wY()<=w.Ku+1}; g.N.zR=function(){return 0}; g.N.oD=function(){return!1};g.pM.prototype.info=function(){}; g.pM.prototype.debug=function(){}; g.pM.prototype.B=function(w){Fg.apply(null,[5,this.tag,w].concat(g.L(g.Kz.apply(1,arguments))))}; var g5l=new Map,j02=new Map,Jy_=new function(){var w=this;this.B=new Map;this.yH={xxs:function(){return w.B}}};g.N=g.DB.prototype;g.N.Vv=function(w){return w<=this.T5()}; g.N.Mg=function(w){return this.offsets[w]}; g.N.getStartTime=function(w){return this.startTicks[w]/this.B}; g.N.ut=function(w){return this.getStartTime(w)+this.getDuration(w)}; g.N.WY=u2(0);g.N.Ls=function(){return NaN}; g.N.getDuration=function(w){w=this.Zl(w);return w>=0?w/this.B:-1}; g.N.Zl=function(w){return w+1=0}; g.N.u6=function(){return this.L?this.startTicks[this.count]/this.B:NaN}; g.N.ov=function(){return 0}; g.N.Vo=function(){return this.count}; g.N.MA=function(){return""}; g.N.C9=function(w){w=g.I$(this.startTicks.subarray(0,this.count),w*this.B);return w>=0?w:Math.max(0,-w-2)}; g.N.isLoaded=function(){return this.T5()>=0}; g.N.Bo=function(w,M){if(w>=this.T5())return 0;var P=0;for(M=this.getStartTime(w)+M;wthis.getStartTime(w);w++)P=Math.max(P,P81(this,w)/this.getDuration(w));return P}; g.N.resize=function(w){w+=2;var M=this.offsets;this.offsets=new Float64Array(w+1);var P=this.startTicks;this.startTicks=new Float64Array(w+1);for(w=0;w0&&w&&(P=P.range.end+1,w=Math.min(w,this.info.contentLength-P),w>0&&u.push(new Cw(4,this,rU(P,w),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,M)));return new MJ(u)}; g.N.Xo=function(w){if(w.info.type===1){if(this.B)return;this.B=U$(w.L)}else if(w.info.type===2){if(this.G||this.index.T5()>=0)return;if(g.Q2(this.info)){var M=this.index,P=g.NJ(w);w=w.info.range.start;var u=g.fw(P,0,1936286840);P=ONu(u);M.B=P.timescale;var X=P.i7;M.offsets[0]=P.Fz+w+u.size;M.startTicks[0]=X;M.L=!0;w=P.Xi.length;for(u=0;u0&&w===U[0].Fm)for(w=0;w=M+P)break}X.length||(w=new g.bK("b189619593",""+w,""+M,""+P),g.qU(w));return new MJ(X)}; g.N.W7=function(w){for(var M=this.KZ(w.info),P=w.info.range.start+w.info.L,u=[],X=0;X=this.index.Mg(P+1);)P++;return this.wD(P,M,w.C).N0}; g.N.fH=function(w){w.GC();return this.Wv()?!0:w.range.end+1this.info.contentLength&&(M=new gU(M.start,this.info.contentLength-1)),new MJ([new Cw(4,w.B,M,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,w.clipId)]);w.type===4&&(w=this.KZ(w),w=w[w.length-1]);var P=0,u=w.range.start+w.L+w.C;w.type===3&&(w.GC(),P=w.Ku,u===w.range.end+1&&(P+=1));return this.wD(P,u,M)}; g.N.iG=function(){return null}; g.N.tP=function(w,M){M=M===void 0?!1:M;w=this.index.C9(w);M&&(w=Math.min(this.index.T5(),w+1));return this.wD(w,this.index.Mg(w),0,void 0)}; g.N.sj=function(){return!0}; g.N.jr=function(){return!0}; g.N.yP=function(){return!1}; g.N.zR=function(){return this.indexRange.length+this.initRange.length}; g.N.oD=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var M4={},VIx=(M4.COLOR_PRIMARIES_BT709="bt709",M4.COLOR_PRIMARIES_BT2020="bt2020",M4.COLOR_PRIMARIES_UNKNOWN=null,M4.COLOR_PRIMARIES_UNSPECIFIED=null,M4),Pe={},Xpl=(Pe.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Pe.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Pe.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Pe.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Pe.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Pe.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Pe);g.zm.prototype.getName=function(){return this.name}; g.zm.prototype.getId=function(){return this.id}; g.zm.prototype.getIsDefault=function(){return this.isDefault}; g.zm.prototype.toString=function(){return this.name}; g.zm.prototype.getName=g.zm.prototype.getName;g.zm.prototype.getId=g.zm.prototype.getId;g.zm.prototype.getIsDefault=g.zm.prototype.getIsDefault;var WIR=/action_display_post/;var htH,lq,LM;g.V(ej,g.wC);g.N=ej.prototype;g.N.isLoading=function(){return this.state===1}; g.N.xH=function(){return this.state===3}; g.N.Uf3=function(w){var M=w.getElementsByTagName("Representation");if(w.getElementsByTagName("SegmentList").length>0||w.getElementsByTagName("SegmentTemplate").length>0){this.dK=this.L=!0;this.timeline||(this.timeline=new Q0y);v5_(this.timeline,w);this.publish("refresh");for(w=0;w=0?S=J3(p):H=H+"?range="+p}c.call(h,new jB(Z.Ku,Z.startSecs,Z.Xq,Z.B,H,S,Z.L))}u=X}P.update(u,this.isLive,this.OO)}s04(this.timeline);return!0}this.duration=L92(UO(w,"mediaPresentationDuration")); a:{for(w=0;w0))return this.Az()-w}}w=this.B;for(var M in w){var P=w[M].index;if(P.isLoaded()&&!sI(w[M].info.mimeType))return P.ov()}return 0}; g.N.getStreamTimeOffset=function(){return this.j}; g.N.Ls=function(w){for(var M in this.B){var P=this.B[M].index;if(P.isLoaded()){var u=P.C9(w),X=P.Ls(u);if(X)return X+w-P.getStartTime(u)}}return NaN}; var rr=null,aah,jj=!((aah=navigator.mediaCapabilities)==null||!aah.decodingInfo),qHU={commentary:1,alternate:2,dub:3,main:4};var Dj=new Set,CM=new Map;OO.prototype.clone=function(w){return new OO(this.flavor,w,this.L,this.experiments)}; OO.prototype.Z4=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; OO.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 wOa={},f7=(wOa.playready=["com.youtube.playready","com.microsoft.playready"],wOa.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],wOa),uH={},Ty1=(uH.widevine="DRM_SYSTEM_WIDEVINE",uH.fairplay="DRM_SYSTEM_FAIRPLAY",uH.playready="DRM_SYSTEM_PLAYREADY",uH),X5={},iSx=(X5.widevine=1,X5.fairplay=2,X5.playready=3,X5);var cM;g.V(WM,g.v); WM.prototype.initialize=function(w,M){for(var P=this,u=g.G(Object.keys(w)),X=u.next();!X.done;X=u.next()){X=g.G(w[X.value]);for(var U=X.next();!U.done;U=X.next())if(U=U.value,U.Ks)for(var f=g.G(Object.keys(U.Ks)),h=f.next();!h.done;h=f.next()){var c=h.value;h=c;c=f7[c];!c&&this.D("html5_enable_vp9_fairplay")&&h==="fairplay"&&(c=["com.youtube.fairplay.sbdl"]);if(c){c=g.G(c);for(var Z=c.next();!Z.done;Z=c.next())Z=Z.value,this.C[Z]=this.C[Z]||new OO(h,Z,U.Ks[h],this.r$.experiments),this.B[h]=this.B[h]|| {},this.B[h][U.mimeType]=!0}}}bL()&&(this.C["com.youtube.fairplay"]=new OO("fairplay","com.youtube.fairplay","",this.r$.experiments),this.D("html5_enable_vp9_fairplay")||(this.B.fairplay=this.B.fairplay||{},this.B.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.B.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.L=vmH(M,this.useCobaltWidevine,this.D("html5_enable_safari_fairplay")&&!0,this.D("html5_enable_vp9_fairplay")).filter(function(S){return!!P.C[S]})}; WM.prototype.D=function(w){return this.r$.experiments.nu(w)};var MAA={"":"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"};gmM.prototype.D=function(w){return this.experiments.nu(w)};var mmu={RED:"red",RU9:"white"};JO1.prototype.nu=function(w){w=this.flags[w];JSON.stringify(w);return w==="true"};var C8p=Promise.resolve(),aSR=window.queueMicrotask?window.queueMicrotask.bind(window):tIz;p7.prototype.canPlayType=function(w,M){w=w.canPlayType?w.canPlayType(M):!1;bb?w=w||Py$[M]:g8===2.2?w=w||uP3[M]:sL()&&(w=w||XOc[M]);return!!w}; p7.prototype.isTypeSupported=function(w){return this.S?window.cast.receiver.platform.canDisplayType(w):Fi(w)}; var uP3={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},XOc={"application/x-mpegURL":"maybe"},Py$={"application/x-mpegURL":"maybe"};g.V(Nc,g.wC);Nc.prototype.add=function(w,M){if(!this.items[w]&&(M.yU||M.d2||M.SC)){var P=this.items,u=M;Object.isFrozen&&!Object.isFrozen(M)&&(u=Object.create(M),Object.freeze(u));P[w]=u;this.publish("vast_info_card_add",w)}}; Nc.prototype.remove=function(w){var M=this.get(w);delete this.items[w];return M}; Nc.prototype.get=function(w){return this.items[w]||null}; Nc.prototype.isEmpty=function(){return g.SF(this.items)};var mP;oj.prototype.add=function(w){if(this.pos+20>this.data.length){var M=new Uint8Array(this.data.length*2);M.set(this.data);this.data=M}for(;w>31;)this.data[this.pos++]=mP[(w&31)+32],w>>=5;this.data[this.pos++]=mP[w|0]}; oj.prototype.PZ=function(){return g.ZE(this.data.subarray(0,this.pos))}; oj.prototype.reset=function(){this.pos=0};y8.prototype.YQ=function(w,M){var P=Math.pow(this.alpha,w);this.B=M*(1-P)+P*this.B;this.L+=w}; y8.prototype.Zu=function(){return this.B/(1-Math.pow(this.alpha,this.L))};D9.prototype.YQ=function(w,M){for(var P=0;P<10;P++){var u=this.B[P],X=u+(P===0?w:0),U=1*Math.pow(2,P);if(X<=U)break;u=Math.min(1,(X-U*.5)/u);for(X=0;X<16;X++)U=this.values[P*16+X]*u,this.values[(P+1)*16+X]+=U,this.B[P+1]+=U,this.values[P*16+X]-=U,this.B[P]-=U}u=P=0;X=8192;M>8192&&(P=Math.ceil(Math.log(M/8192)/Math.log(2)),u=8192*Math.pow(2,P-1),X=u*2);P+2>16?this.values[15]+=w:(M=(M-u)/(X-u),this.values[P]+=w*(1-M),this.values[P+1]+=w*M);this.B[0]+=w}; D9.prototype.Zu=function(){var w=w===void 0?this.L:w;var M=M===void 0?.02:M;var P=P===void 0?.98:P;for(var u=this.C,X=0;X<16;X++)u[X]=this.values[X];X=this.B[0];for(var U=1;U<11;U++){var f=this.B[U];if(f===0)break;for(var h=Math.min(1,(w-X)/f),c=0;c<16;c++)u[c]+=this.values[U*16+c]*h;X+=f*h;if(h<1)break}for(U=w=f=0;U<16;U++){h=f+u[U]/X;w+=Math.max(0,Math.min(h,P)-Math.max(f,M))*(U>0?8192*Math.pow(2,U-1):0);if(h>P)break;f=h}return w/(P-M)};qc.prototype.YQ=function(w,M){w=Math.min(this.B,Math.max(1,Math.round(w*this.resolution)));w+this.L>=this.B&&(this.C=!0);for(;w--;)this.values[this.L]=M,this.L=(this.L+1)%this.B;this.O$=!0}; qc.prototype.percentile=function(w){var M=this;if(!this.C&&this.L===0)return 0;this.O$&&(g.r3(this.G,function(P,u){return M.values[P]-M.values[u]}),this.O$=!1); return this.values[this.G[Math.round(w*((this.C?this.B:this.L)-1))]]||0}; qc.prototype.Zu=function(){return this.K?(this.percentile(this.X-this.K)+this.percentile(this.X)+this.percentile(this.X+this.K))/3:this.percentile(this.X)};g.V(YI,g.v);YI.prototype.t9=function(){var w;(w=this.eL)==null||w.start();if(Q8(this)&&this.policy.V){var M;(M=this.FF)==null||M.WQ()}};cQl.prototype.D=function(w){return this.experiments.nu(w)};g.V(Swl,g.v);var Va2="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(" "),qwz={Z9N:"caoe",H9I:"capsv",r5W:"cbrand",CvW:"cbr",y5u:"cbrver",eq3:"cchip",QQ9:"ccappver",wbN:"ccrv",hA0:"cfrmver",Ee9:"c",rtL:"cver",RH9:"ctheme",mEO:"cplayer",mzk:"cmodel",qD:"cnetwork",aYW:"cos",OS_VERSION:"cosver",YB0:"cplatform",RaN:"crqyear"};g.V(iT,g.v);g.N=iT.prototype;g.N.D=function(w){return this.experiments.nu(w)}; g.N.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.N.getVideoUrl=function(w,M,P,u,X,U,f){M={list:M};P&&(X?M.time_continue=P:M.t=P);P=f?"music.youtube.com":g.P0(this);X=P==="www.youtube.com";!U&&u&&X?U="https://youtu.be/"+w:g.jY(this)?(U="https://"+P+"/fire",M.v=w):(U&&X?(U=this.protocol+"://"+P+"/shorts/"+w,u&&(M.feature="share")):(U=this.protocol+"://"+P+"/watch",M.v=w),bb&&(w=Kq4())&&(M.ebc=w));return g.p5(U,M)}; g.N.getVideoEmbedCode=function(w,M,P,u){M="https://"+g.P0(this)+"/embed/"+M;u&&(M=g.p5(M,{list:u}));u=P.width;P=P.height;M=LQ(M);w=LQ(w!=null?w:"YouTube video player");return'')}; g.N.supportsGaplessAudio=function(){return g.p3&&!bb&&R1()>=74||g.$I&&g.KQ(68)?!0:!1}; g.N.supportsGaplessShorts=function(){return!this.D("html5_enable_short_gapless")||this.OO||g.HN?!1:!0}; g.N.getPlayerType=function(){return this.B.cplayer}; g.N.FX=function(){return this.wb}; var dml=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],DmF=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],z8M=[19];var $K={},e81=($K["140"]={numChannels:2},$K["141"]={numChannels:2},$K["251"]={audioSampleRate:48E3,numChannels:2},$K["774"]={audioSampleRate:48E3,numChannels:2},$K["380"]={numChannels:6},$K["328"]={numChannels:6},$K["773"]={},$K),UF={},lc4=(UF["1"]='video/mp4; codecs="av01.0.08M.08"',UF["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',UF["1e"]='video/mp4; codecs="av01.0.08M.08"',UF["9"]='video/webm; codecs="vp9"',UF["("]='video/webm; codecs="vp9"',UF["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', UF.h='video/mp4; codecs="avc1.64001e"',UF.H='video/mp4; codecs="avc1.64001e"',UF.o='audio/webm; codecs="opus"',UF.a='audio/mp4; codecs="mp4a.40.2"',UF.ah='audio/mp4; codecs="mp4a.40.2"',UF.mac3='audio/mp4; codecs="ac-3"; channels=6',UF.meac3='audio/mp4; codecs="ec-3"; channels=6',UF.i='audio/mp4; codecs="iamf.001.001.Opus"',UF),fl={},Lt1=(fl["337"]={width:3840,height:2160,bitrate:3E7,fps:30},fl["336"]={width:2560,height:1440,bitrate:15E6,fps:30},fl["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, fl["702"]={width:7680,height:4320,bitrate:4E7,fps:60},fl["701"]={width:3840,height:2160,bitrate:2E7,fps:60},fl["700"]={width:2560,height:1440,bitrate:1E7,fps:60},fl["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},fl["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},fl["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},fl["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, fl["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},fl["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},fl["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},fl["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},fl["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},fl["315"]={width:3840,height:2160,bitrate:2E7,fps:60},fl["308"]={width:2560, height:1440,bitrate:1E7,fps:60},fl["303"]={width:1920,height:1080,bitrate:5E6,fps:60},fl["302"]={width:1280,height:720,bitrate:25E5,fps:60},fl["299"]={width:1920,height:1080,bitrate:75E5,fps:60},fl["298"]={width:1280,height:720,bitrate:35E5,fps:60},fl["571"]={width:7680,height:4320,bitrate:3E7,fps:60},fl["401"]={width:3840,height:2160,bitrate:15E6,fps:60},fl["400"]={width:2560,height:1440,bitrate:75E5,fps:60},fl["399"]={width:1920,height:1080,bitrate:2E6,fps:60},fl["398"]={width:1280,height:720,bitrate:1E6, fps:60},fl["397"]={width:854,height:480,bitrate:4E5,fps:30},fl["396"]={width:640,height:360,bitrate:25E4,fps:30},fl["787"]={width:1080,height:608,bitrate:2E5,fps:30},fl["788"]={width:1080,height:608,bitrate:4E5,fps:30},fl["572"]={width:7680,height:4320,bitrate:3E7,fps:60},fl["555"]={width:3840,height:2160,bitrate:15E6,fps:60},fl["554"]={width:2560,height:1440,bitrate:75E5,fps:60},fl["553"]={width:1920,height:1080,bitrate:2E6,fps:60},fl["552"]={width:1280,height:720,bitrate:1E6,fps:60},fl["551"]={width:854, height:480,bitrate:4E5,fps:30},fl["550"]={width:640,height:360,bitrate:25E4,fps:30},fl["313"]={width:3840,height:2160,bitrate:8E6,fps:30},fl["271"]={width:2560,height:1440,bitrate:4E6,fps:30},fl["248"]={width:1920,height:1080,bitrate:2E6,fps:30},fl["247"]={width:1280,height:720,bitrate:15E5,fps:30},fl["244"]={width:854,height:480,bitrate:52E4,fps:30},fl["243"]={width:640,height:360,bitrate:28E4,fps:30},fl["137"]={width:1920,height:1080,bitrate:4E6,fps:30},fl["136"]={width:1280,height:720,bitrate:3E6, fps:30},fl["135"]={width:854,height:480,bitrate:1E6,fps:30},fl["385"]={width:1920,height:1080,bitrate:6503313,fps:60},fl["376"]={width:1280,height:720,bitrate:5706960,fps:60},fl["384"]={width:1280,height:720,bitrate:3660979,fps:60},fl["225"]={width:1280,height:720,bitrate:5805E3,fps:30},fl["224"]={width:1280,height:720,bitrate:453E4,fps:30},fl["145"]={width:1280,height:720,bitrate:2682052,fps:30},fl);g.N=mO.prototype;g.N.getInfo=function(){return this.B}; g.N.NI=function(){return null}; g.N.AJ=function(){var w=this.NI();return w?(w=g.w$(w.EF),Number(w.expire)):NaN}; g.N.Qb=function(){}; g.N.getHeight=function(){return this.B.video.height};R8F.prototype.build=function(){slM(this);var w=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],M={};a:if(this.B)var P=this.B;else{P="";for(var u=g.G(this.C),X=u.next();!X.done;X=u.next())if(X=X.value,X.Y2){if(X.Y2.getIsDefault()){P=X.Y2.getId();break a}P||(P=X.Y2.getId())}}u=g.G(this.C);for(X=u.next();!X.done;X=u.next())if(X=X.value,this.K||!X.Y2||X.Y2.getId()===P)M[X.itag]||(M[X.itag]=[]),M[X.itag].push(X);P=g.G(this.L);for(u=P.next();!u.done;u=P.next())if(u=u.value,X=M[u.B]){X=g.G(X);for(var U=X.next();!U.done;U= X.next()){var f=w,h=f.push;U=U.value;var c="#EXT-X-MEDIA:TYPE=AUDIO,",Z="YES",S="audio";if(U.Y2){S=U.Y2;var H=S.getId().split(".")[0];H&&(c+='LANGUAGE="'+H+'",');(this.B?this.B===S.getId():S.getIsDefault())||(Z="NO");S=S.getName()}H="";u!==null&&(H=u.itag.toString());H=Gt(this,U.url,H);c=c+('NAME="'+S+'",DEFAULT='+(Z+',AUTOSELECT=YES,GROUP-ID="'))+(ve_(U,u)+'",URI="'+(H+'"'));h.call(f,c)}}P=g.G(this.G);for(u=P.next();!u.done;u=P.next())u=u.value,X=$qp,u=(f=u.Y2)?'#EXT-X-MEDIA:URI="'+Gt(this,u.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+X+'",LANGUAGE="'+f.getId()+'",NAME="'+f.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,u&&w.push(u);P=this.G.length>0?$qp:void 0;u=g.G(this.L);for(X=u.next();!X.done;X=u.next())X=X.value,h=M[X.B],f=void 0,((f=h)==null?void 0:f.length)>0&&(f=X,h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(f.bitrate+h.bitrate)+',CODECS="'+(f.codecs+","+h.codecs+'",RESOLUTION=')+(f.width+"x"+f.height+',AUDIO="')+(ve_(h,f)+'",')+(P?'SUBTITLES="'+P+'",':"")+"CLOSED-CAPTIONS=NONE",f.fps>1&&(h+= ",FRAME-RATE="+f.fps),f.Lj&&(h+=",VIDEO-RANGE="+f.Lj),w.push(h),w.push(Gt(this,X.url,"")));return w.join("\n")}; var $qp="text";g.V(yo,mO);yo.prototype.AJ=function(){return this.expiration}; yo.prototype.NI=function(){if(!this.EF||this.EF.sO()){var w=this.L.build();w="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(w);this.EF=new Pp(w)}return this.EF};g.V(D1,mO);D1.prototype.NI=function(){return new Pp(this.L.xa())}; D1.prototype.Qb=function(){this.L=JN(this.L)};g.V(qe,mO);qe.prototype.NI=function(){return new Pp(this.L)};var We={},taF=(We.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",We.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",We.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",We.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",We);g.N=g.Y3.prototype;g.N.getId=function(){return this.id}; g.N.getName=function(){return this.name}; g.N.isServable=function(){return this.B}; g.N.xa=function(){return this.url}; g.N.getXtags=function(){return this.xtags}; g.N.toString=function(){return this.languageCode+": "+g.zt(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.N.equals=function(w){return w?this.toString()===w.toString():!1}; g.N.Nf=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var MJ_={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},P_H={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},uJ4=/^(\d*)_((\d*)_?(\d*))$/;var $SF={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},USl={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var hV={},Uqx=(hV.ALWAYS=1,hV.BY_REQUEST=3,hV.UNKNOWN=void 0,hV),ce={},fdc=(ce.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",ce.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",ce.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",ce.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",ce);var ks_; ks_=function(w){for(var M=Object.keys(w),P={},u=0;uu-M?-1:w}; g.N.tv=function(){return this.L.T5()}; g.N.xB=function(){return this.L.wY()}; g.N.dW=function(w){this.L=w};g.V(MI,aD);MI.prototype.L=function(w,M){return aD.prototype.L.call(this,"$N|"+w,M)}; MI.prototype.G=function(w,M,P){return new wN(w,M,P,this.isLive)};var g72=[],fk=new Set;g.V(g.ut,g.wC);g.N=g.ut.prototype; g.N.setData=function(w){w=w||{};var M=w.errordetail;M!=null&&(this.errorDetail=M);var P=w.errorcode;P!=null?this.errorCode=P:w.status==="fail"&&(this.errorCode="auth");var u=w.reason;u!=null&&(this.errorReason=u);var X=w.subreason;X!=null&&(this.GL=X);this.D("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=w.cpn||(this.r$.FX()?"r"+g.Hl(15):g.Hl(16)));this.Z3=a1(this.r$.Z3,w.livemonitor);n7y(this,w);var U=w.raw_player_response;if(U)this.yF=U;else{var f=w.player_response; f&&(U=JSON.parse(f))}if(this.D("html5_enable_ssap_entity_id")){var h=w.cached_load;h&&(this.DN=a1(this.DN,h));if(!this.clientPlaybackNonce){var c=w.cpn;c?(this.yj("ssei","shdc"),this.clientPlaybackNonce=c):this.clientPlaybackNonce=this.r$.FX()?"r"+g.Hl(15):g.Hl(16)}}U&&(this.playerResponse=U);if(this.playerResponse){var Z=this.playerResponse.annotations;if(Z)for(var S=g.G(Z),H=S.next();!H.done;H=S.next()){var p=H.value.playerAnnotationsUrlsRenderer;if(p){p.adsOnly&&(this.yS=!0);var F=p.loadPolicy; F&&(this.annotationsLoadPolicy=Uqx[F]);var E=p.invideoUrl;E&&(this.eL=sB(E));break}}var y=this.playerResponse.attestation;y&&WHy(this,y);var q=this.playerResponse.cotn;q&&(this.cotn=q);var d=this.playerResponse.heartbeatParams;if(d){this.J7=!0;var l=d.heartbeatToken;l&&(this.drmSessionId=d.drmSessionId||"",this.heartbeatToken=l,this.BX=Number(d.intervalMilliseconds),this.Km=Number(d.maxRetries),this.j3=!!d.softFailOnError,this.AA=!!d.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=d.heartbeatServerData; var e;this.AF=!((e=d.heartbeatAttestationConfig)==null||!e.requiresAttestation)}var R=this.playerResponse.messages;R&&SGU(this,R);var I=this.playerResponse.overlay;if(I){var w4=I.playerControlsOverlayRenderer;if(w4)if(pEF(this,w4.controlBgHtml),w4.mutedAutoplay){var t=g.A(w4.mutedAutoplay,qcp);if(t&&t.endScreen){var $M=g.A(t.endScreen,Yc4);$M&&$M.text&&(this.bY=g.ff($M.text))}}else this.mutedAutoplay=!1}var fz=this.playerResponse.playabilityStatus;if(fz){var U1=fz.backgroundability;U1&&U1.backgroundabilityRenderer.backgroundable&& (this.backgroundable=!0);var ZU,M_;if((ZU=fz.offlineability)==null?0:(M_=ZU.offlineabilityRenderer)==null?0:M_.offlineable)this.offlineable=!0;var Tp=fz.contextParams;Tp&&(this.contextParams=Tp);var kM=fz.pictureInPicture;kM&&kM.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);fz.playableInEmbed&&(this.allowEmbed=!0);var w3=fz.ypcClickwrap;if(w3){var sE=w3.playerLegacyDesktopYpcClickwrapRenderer,Vt=w3.ypcRentalActivationRenderer;if(sE)this.m$=sE.durationMessage||"",this.pV=!0;else if(Vt){var v5= Vt.durationMessage;this.m$=v5?g.ff(v5):"";this.pV=!0}}var OE=fz.errorScreen;if(OE){if(OE.playerLegacyDesktopYpcTrailerRenderer){var pC=OE.playerLegacyDesktopYpcTrailerRenderer;this.Ic=pC.trailerVideoId||"";var g3=OE.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var MK=g3&&g3.ypcTrailerRenderer}else if(OE.playerLegacyDesktopYpcOfferRenderer)pC=OE.playerLegacyDesktopYpcOfferRenderer;else if(OE.ypcTrailerRenderer){MK=OE.ypcTrailerRenderer;var T=MK.fullVideoMessage;this.R4=T?g.ff(T):"";var nE,ep;this.Ic= ((nE=g.A(MK,zxU))==null?void 0:(ep=nE.videoDetails)==null?void 0:ep.videoId)||""}pC&&(this.Mx=pC.itemTitle||"",pC.itemUrl&&(this.Xx=pC.itemUrl),pC.itemBuyUrl&&(this.YS=pC.itemBuyUrl),this.mB=pC.itemThumbnail||"",this.sA=pC.offerHeadline||"",this.QJ=pC.offerDescription||"",this.BI=pC.offerId||"",this.Fx=pC.offerButtonText||"",this.J_=pC.offerButtonFormattedText||null,this.Sz=pC.overlayDurationMsec||NaN,this.R4=pC.fullVideoMessage||"",this.tF=!0);if(MK){var P5=g.A(MK,zxU);if(P5)this.L$={raw_player_response:P5}; else{var d3=g.A(MK,nat);this.L$=d3?OK(d3):null}this.tF=!0}}}var D=this.playerResponse.playbackTracking;if(D){var i2=w,J5=eg(D.googleRemarketingUrl);J5&&(this.googleRemarketingUrl=J5);var fQ=eg(D.youtubeRemarketingUrl);fQ&&(this.youtubeRemarketingUrl=fQ);var KC={},g4=eg(D.ptrackingUrl);if(g4){var O1=B0(g4),aK=O1.oid;aK&&(this.f_=aK);var vT=O1.pltype;vT&&(this.Bd=vT);var Y=O1.ptchn;Y&&(this.Pd=Y);var m=O1.ptk;m&&(this.O7=encodeURIComponent(m));var z=O1.m;z&&(this.kO=z)}var Q=eg(D.qoeUrl);if(Q){for(var K= g.w$(Q),Su=g.G(Object.keys(K)),J=Su.next();!J.done;J=Su.next()){var O=J.value,k=K[O];K[O]=Array.isArray(k)?k.join(","):k}this.uN=K;var eu=K.cat;eu&&(this.D("html5_enable_qoe_cat_list")?this.vC=this.vC.concat(eu.split(",")):this.dk=eu);var IF=K.live;IF&&(this.dZ=IF);var W5=K.drm_product;W5&&(this.drmProduct=W5)}var hx=eg(D.videostatsPlaybackUrl);if(hx){var l2=B0(hx),Gp=l2.adformat;if(Gp){i2.adformat=Gp;var i6=this.N(),qj=XEp(Gp,this.Iz,i6.X,i6.V);qj&&(this.adFormat=qj)}var nC=l2.aqi;nC&&(i2.ad_query_id= nC);var YM=l2.autoplay;YM&&(this.cZ=YM=="1",this.VJ=YM=="1");var yy=l2.autonav;yy&&(this.isAutonav=yy=="1");var Lz=l2.delay;Lz&&(this.cj=QG(Lz));var Ba=l2.ei;Ba&&(this.eventId=Ba);if(l2.adcontext||Gp)this.cZ=!0;var YV=l2.feature;YV&&(this.ET=YV);var fE=l2.list;fE&&(this.playlistId=fE);var zc=l2.of;zc&&(this.FO=zc);var wQ=l2.osid;wQ&&(this.osid=wQ);var Xm=l2.referrer;Xm&&(this.referrer=Xm);var Jx=l2.sdetail;Jx&&(this.nK=Jx);var Qt=l2.ssrt;Qt&&(this.kT=Qt=="1");var dq=l2.subscribed;dq&&(this.subscribed= dq=="1");var xw=l2.uga;xw&&(this.userGenderAge=xw);var Eb=l2.upt;Eb&&(this.sD=Eb);var nP=l2.vm;nP&&(this.videoMetadata=nP);KC.playback=l2}var ij=eg(D.videostatsWatchtimeUrl);if(ij){var Ms=B0(ij),UV=Ms.ald;UV&&(this.Rc=UV);KC.watchtime=Ms}var Da=eg(D.atrUrl);if(Da){var QV=B0(Da);KC.atr=QV}var OV=eg(D.engageUrl);if(OV){var k8=B0(OV);KC.engage=k8}this.PC=KC;if(D.promotedPlaybackTracking){var M3=D.promotedPlaybackTracking;M3.startUrls&&(this.aj=M3.startUrls);M3.firstQuartileUrls&&(this.VI=M3.firstQuartileUrls); M3.secondQuartileUrls&&(this.BL=M3.secondQuartileUrls);M3.thirdQuartileUrls&&(this.L2=M3.thirdQuartileUrls);M3.completeUrls&&(this.hY=M3.completeUrls);M3.engagedViewUrls&&(M3.engagedViewUrls.length>1&&g.Yq(new g.bK("There are more than one engaged_view_urls.")),this.wz=M3.engagedViewUrls[0])}}var NG=this.playerResponse.playerCueRanges;NG&&NG.length>0&&(this.cueRanges=NG);var vA=this.playerResponse.playerCueRangeSet;vA&&g.W7(this,vA);a:{var VU=this.playerResponse.adPlacements;if(VU)for(var P9=g.G(VU), m0=P9.next();!m0.done;m0=P9.next()){var uj=void 0,XS=void 0,$8=(uj=m0.value.adPlacementRenderer)==null?void 0:(XS=uj.renderer)==null?void 0:XS.videoAdTrackingRenderer;if($8){var UP=$8;break a}}UP=null}var oy=UP;D&&D.promotedPlaybackTracking&&oy&&g.Yq(new g.bK("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var fS;if(!(fS=oy))a:{for(var f9=g.G(this.playerResponse.adSlots||[]),Fu=f9.next();!Fu.done;Fu=f9.next()){var ET=g.A(Fu.value,is);if(ET===void 0||!elx(ET))break; var Lh=void 0,n9=(Lh=ET.fulfillmentContent)==null?void 0:Lh.fulfilledLayout,v9=g.A(n9,J7);if(v9&&b_(v9)){fS=!0;break a}}fS=!1}fS&&(this.bU=!0);var sP=this.playerResponse.playerAds;if(sP)for(var Ma=w,eV=g.G(sP),Vj=eV.next();!Vj.done;Vj=eV.next()){var Bh=Vj.value;if(Bh){var PX=Bh.playerLegacyDesktopWatchAdsRenderer;if(PX){var K9=PX.playerAdParams;if(K9){K9.autoplay=="1"&&(this.VJ=this.cZ=!0);this.MM=K9.encodedAdSafetyReason||null;K9.showContentThumbnail!==void 0&&(this.zj=!!K9.showContentThumbnail); Ma.enabled_engage_types=K9.enabledEngageTypes;break}}}}var q3=this.playerResponse.playerConfig;if(q3){var GQ=q3.manifestlessWindowedLiveConfig;if(GQ){var vi=Number(GQ.minDvrSequence),uO=Number(GQ.maxDvrSequence),Nn=Number(GQ.minDvrMediaTimeMs),X4=Number(GQ.maxDvrMediaTimeMs),QZ=Number(GQ.startWalltimeMs);vi&&(this.yL=vi);Nn&&(this.ys=Nn/1E3,this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&mC(this)&&(this.rY=Nn/1E3));uO&&(this.Xc=uO);X4&&(this.M7=X4/1E3,this.D("html5_sabr_parse_live_metadata_playback_boundaries")&& mC(this)&&(this.bI=X4/1E3));QZ&&(this.GE=QZ/1E3);(vi||Nn)&&(uO||X4)&&(this.allowLiveDvr=this.isLivePlayback=this.B3=!0,this.Gt=!1)}var kX=q3.daiConfig;if(kX){if(kX.enableDai){this.q6=!0;var UY=kX.enableServerStitchedDai;UY&&(this.enableServerStitchedDai=UY);var Ay=kX.enablePreroll;Ay&&(this.Fs=Ay)}var WV;if(kX.daiType==="DAI_TYPE_SS_DISABLED"||((WV=kX.debugInfo)==null?0:WV.isDisabledUnpluggedChannel))this.Ry=!0;kX.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.R_=!0)}var UZ=q3.audioConfig;if(UZ){var sK= UZ.loudnessDb;sK!=null&&(this.Ob=sK);var KBR=UZ.trackAbsoluteLoudnessLkfs;KBR!=null&&(this.kK=KBR);var b$F=UZ.loudnessTargetLkfs;b$F!=null&&(this.loudnessTargetLkfs=b$F);UZ.audioMuted&&(this.nN=!0);UZ.muteOnStart&&(this.w3=!0);var o8=UZ.loudnessNormalizationConfig;if(o8){o8.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);o8.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var I5M=o8.minimumLoudnessTargetLkfs;I5M!=null&&(this.minimumLoudnessTargetLkfs=I5M); var A$_=o8.maxStatefulTimeThresholdSec;A$_!=null&&(this.maxStatefulTimeThresholdSec=A$_)}UZ.playAudioOnly&&(this.jU=!0)}var FaR=q3.playbackEndConfig;if(FaR){var gtx=FaR.endSeconds,J$u=FaR.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(gtx&&(this.endSeconds=gtx),J$u&&(this.limitedPlaybackDurationInSeconds=J$u))}var Gk=q3.fairPlayConfig;if(Gk){var r$2=Gk.certificate;r$2&&(this.OO=V8(r$2));var jZx=Number(Gk.keyRotationPeriodMs);jZx>0&&(this.xO=jZx);var CD4=Number(Gk.keyPrefetchMarginMs);CD4>0&& (this.s7=CD4)}var BQ=q3.playbackStartConfig;if(BQ){this.BC=Number(BQ.startSeconds);var tqz=BQ.liveUtcStartSeconds,xlR=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;tqz&&!xlR&&(this.liveUtcStartSeconds=Number(tqz));var Ewp=BQ.startPosition;if(Ewp){var O$_=Ewp.utcTimeMillis;O$_&&!xlR&&(this.liveUtcStartSeconds=Number(O$_)*.001);var a54=Ewp.streamTimeMillis;a54&&(this.rB=Number(a54)*.001)}this.progressBarStartPosition=BQ.progressBarStartPosition;this.progressBarEndPosition=BQ.progressBarEndPosition}else{var N2y= q3.skippableSegmentsConfig;if(N2y){var wHF=N2y.introSkipDurationMs;wHF&&(this.JQ=Number(wHF)/1E3);var i6l=N2y.outroSkipDurationMs;i6l&&(this.MP=Number(i6l)/1E3)}}var VAy=q3.skippableIntroConfig;if(VAy){var MZU=Number(VAy.startMs),Pxy=Number(VAy.endMs);isNaN(MZU)||isNaN(Pxy)||(this.uX=MZU,this.a7=Pxy)}var uQl=q3.streamSelectionConfig;uQl&&(this.sb=Number(uQl.maxBitrate));var XH1=q3.vrConfig;XH1&&(this.XV=XH1.partialSpherical=="1");var G1=q3.webDrmConfig;if(G1){G1.skipWidevine&&(this.LB=!0);var $kp= G1.widevineServiceCert;$kp&&(this.f$=V8($kp));G1.useCobaltWidevine&&(this.useCobaltWidevine=!0);G1.startWithNoQualityConstraint&&(this.NE=!0)}var sR=q3.mediaCommonConfig;if(sR){var yD=sR.dynamicReadaheadConfig;if(yD){this.maxReadAheadMediaTimeMs=yD.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=yD.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=yD.readAheadGrowthRateMs||NaN;var Uk4,fTz=sR==null?void 0:(Uk4=sR.mediaUstreamerRequestConfig)==null?void 0:Uk4.videoPlaybackUstreamerConfig; fTz&&(this.e1=V8(fTz));var mqM=sR==null?void 0:sR.sabrContextUpdates;if(mqM&&mqM.length>0)for(var WdH=g.G(mqM),owx=WdH.next();!owx.done;owx=WdH.next()){var Pl=owx.value;if(Pl.type&&Pl.value){var nhp={type:Pl.type,scope:Pl.scope,value:V8(Pl.value)||void 0,sendByDefault:Pl.sendByDefault};this.sabrContextUpdates.set(Pl.type,nhp)}}}var hyH=sR.serverPlaybackStartConfig;hyH&&(this.serverPlaybackStartConfig=hyH);sR.useServerDrivenAbr&&(this.uI=!0);var cB_=sR.requestPipeliningConfig;cB_&&(this.requestPipeliningConfig= cB_)}var Z6x=q3.inlinePlaybackConfig;Z6x&&(this.Xm=!!Z6x.showAudioControls);var D_=q3.embeddedPlayerConfig;if(D_){this.embeddedPlayerConfig=D_;var Gd5=D_.embeddedPlayerMode;if(Gd5){var S6u=this.N();S6u.ys=Gd5;S6u.C=Gd5==="EMBEDDED_PLAYER_MODE_PFL"}var H6z=D_.permissions;H6z&&(this.allowImaMonetization=!!H6z.allowImaMonetization)}var qu=q3.webPlayerConfig;qu&&(qu.gatewayExperimentGroup&&(this.gatewayExperimentGroup=qu.gatewayExperimentGroup),qu.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var Kb= this.playerResponse.streamingData;if(Kb){var ydp=Kb.formats;if(ydp){for(var yz=[],pH4=g.G(ydp),DqF=pH4.next();!DqF.done;DqF=pH4.next()){var qV5=DqF.value;yz.push(qV5.itag+"/"+qV5.width+"x"+qV5.height)}this.Iy=yz.join(",");yz=[];for(var Fd5=g.G(ydp),YVy=Fd5.next();!YVy.done;YVy=Fd5.next()){var Dn=YVy.value,qS={itag:Dn.itag,type:Dn.mimeType,quality:Dn.quality},EN2=Dn.url;EN2&&(qS.url=EN2);var Yg=ri(Dn),vhc=Yg.Te,sgE=Yg.Ky,KbE=Yg.s;Yg.TY&&(qS.url=vhc,qS.sp=sgE,qS.s=KbE);yz.push(g.HY(qS))}this.wb=yz.join(",")}var zm4= Kb.hlsFormats;if(zm4&&!this.D("safari_live_drm_captions_fix")){var Nap=q3||null,zk={};if(Nap){var T24=Nap.audioPairingConfig;if(T24&&T24.pairs)for(var VZH=g.G(T24.pairs),dqz=VZH.next();!dqz.done;dqz=VZH.next()){var mkl=dqz.value,ldp=mkl.videoItag;zk[ldp]||(zk[ldp]=[]);zk[ldp].push(mkl.audioItag)}}for(var oN_={},G0x=g.G(zm4),La2=G0x.next();!La2.done;La2=G0x.next()){var yBx=La2.value;oN_[yBx.itag]=yBx.bitrate}for(var Dk5=[],q62=g.G(zm4),emy=q62.next();!emy.done;emy=q62.next()){var rQ=emy.value,mq={itag:rQ.itag, type:rQ.mimeType,url:rQ.url,bitrate:rQ.bitrate,width:rQ.width,height:rQ.height,fps:rQ.fps},Tk=rQ.audioTrack;if(Tk){var Y6M=Tk.displayName;Y6M&&(mq.name=Y6M,mq.audio_track_id=Tk.id,Tk.audioIsDefault&&(mq.is_default="1"))}if(rQ.drmFamilies){for(var zyU=[],Ta2=g.G(rQ.drmFamilies),B2x=Ta2.next();!B2x.done;B2x=Ta2.next())zyU.push(QL[B2x.value]);mq.drm_families=zyU.join(",")}var dy=zk[rQ.itag];if(dy&&dy.length){mq.audio_itag=dy.join(",");var dkz=oN_[dy[0]];dkz&&(mq.bitrate+=dkz)}var lTx=$VR(rQ);lTx&&(mq.eotf= lTx);rQ.audioChannels&&(mq.audio_channels=rQ.audioChannels);Dk5.push(g.HY(mq))}this.hlsFormats=Dk5.join(",")}var Qw_=Kb.licenseInfos;if(Qw_&&Qw_.length>0){for(var Ld2={},eyx=g.G(Qw_),kdu=eyx.next();!kdu.done;kdu=eyx.next()){var Ba_=kdu.value,QfU=Ba_.drmFamily,k0x=Ba_.url;QfU&&k0x&&(Ld2[QL[QfU]]=k0x)}this.Ks=Ld2}var RyH=Kb.drmParams;RyH&&(this.drmParams=RyH);var nNM=Kb.dashManifestUrl;nNM&&(this.VE=g.p5(nNM,{cpn:this.clientPlaybackNonce}));var vNz=Kb.hlsManifestUrl;vNz&&(this.hlsvp=vNz);var sfM=Kb.probeUrl; sfM&&(this.probeUrl=sB(g.p5(sfM,{cpn:this.clientPlaybackNonce})));var KdM=Kb.serverAbrStreamingUrl;KdM&&(this.dh=new g.Kr(KdM,!0))}var b65=this.playerResponse.trackingParams;b65&&(this.UO=b65);var GL=this.playerResponse.videoDetails;if(GL){var oV=w,Rmx=GL.videoId;Rmx&&(this.videoId=Rmx,oV.video_id||(oV.video_id=Rmx));var nw4=GL.title;nw4&&(this.title=nw4,oV.title||(oV.title=nw4));var vwR=GL.lengthSeconds;vwR&&(this.lengthSeconds=Number(vwR),oV.length_seconds||(oV.length_seconds=vwR));var ITz=GL.keywords; ITz&&(this.keywords=InF(ITz));var sw_=GL.channelId;sw_&&(this.ZY=sw_,oV.ucid||(oV.ucid=sw_));var ABp=GL.viewCount;ABp&&(this.rawViewCount=Number(ABp));var KaM=GL.author;KaM&&(this.author=KaM,oV.author||(oV.author=KaM));var gN4=GL.shortDescription;gN4&&(this.shortDescription=gN4);var JBz=GL.isCrawlable;JBz&&(this.isListed=JBz);var rB4=GL.musicVideoType;rB4&&(this.musicVideoType=rB4);var bSy=GL.isLive;bSy!=null&&(this.isLivePlayback=bSy);if(bSy||GL.isUpcoming)this.isPremiere=!GL.isLiveContent;var jf1= GL.thumbnail;jf1&&(this.V=Lp(jf1));var CxR=GL.isExternallyHostedPodcast;CxR&&(this.isExternallyHostedPodcast=CxR);var IdM=GL.viewerLivestreamJoinPosition;if(IdM==null?0:IdM.utcTimeMillis)this.l5=QG(IdM.utcTimeMillis);var tZR=q3||null,Adu=w;GL.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);GL.isUpcoming&&(this.isUpcoming=!0);if(GL.isPostLiveDvr){this.Gt=!0;var xkz=GL.latencyClass;xkz&&(this.latencyClass=fdc[xkz]||"UNKNOWN");GL.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var gwu= !1;this.Z3?(this.allowLiveDvr=Fp()?!0:r$&&xl<5?!1:!0,this.isLivePlayback=!0):GL.isLive?(Adu.livestream="1",this.allowLiveDvr=GL.isLiveDvrEnabled?Fp()?!0:r$&&xl<5?!1:!0:!1,this.partnerId=27,gwu=!0):GL.isUpcoming&&(gwu=!0);if(GL.isLive||this.Z3){GL.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var O62=GL.latencyClass;O62&&(this.latencyClass=fdc[O62]||"UNKNOWN");var aTM=GL.liveChunkReadahead;aTM&&(this.liveChunkReadahead=aTM);var Qs=tZR&&tZR.livePlayerConfig;if(Qs){Qs.hasSubfragmentedFmp4&& (this.hasSubfragmentedFmp4=!0);Qs.hasSubfragmentedWebm&&(this.oX=!0);Qs.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var wx5=Qs.liveExperimentalContentId;wx5&&(this.liveExperimentalContentId=Number(wx5));var i2l=Qs.isLiveHeadPlayable;this.D("html5_live_head_playable")&&i2l!=null&&(this.isLiveHeadPlayable=i2l)}}gwu&&(this.isLivePlayback=!0,Adu.adformat&&Adu.adformat.split("_")[1]!=="8"||this.Lu.push("heartbeat"))}var My2=GL.isPrivate;My2!==void 0&&(this.isPrivate=a1(this.isPrivate, My2))}if(fz){var PnU=GL||null,uwR=!1,kD=fz.errorScreen;uwR=kD&&(kD.playerLegacyDesktopYpcOfferRenderer||kD.playerLegacyDesktopYpcTrailerRenderer||kD.ypcTrailerRenderer)?!0:PnU&&PnU.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(fz.status);if(!uwR){this.errorCode=xmM(fz.errorCode)||"auth";var lr=kD&&kD.playerErrorMessageRenderer;if(lr){this.playerErrorMessageRenderer=lr;var Xxz=lr.reason;Xxz&&(this.errorReason=g.ff(Xxz));var Jdp=lr.subreason;Jdp&&(this.GL=g.ff(Jdp),this.eY=Jdp)}else this.errorReason= fz.reason||null;var rd4=fz.status;if(rd4==="LOGIN_REQUIRED")this.errorDetail="1";else if(rd4==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(rd4==="AGE_CHECK_REQUIRED"){var $54=fz.errorScreen,U55=$54&&$54.playerKavRenderer;this.errorDetail=U55&&U55.kavUrl?"4":"3"}else this.errorDetail=fz.isBlockedInRestrictedMode?"5":"0"}}var fpH=this.playerResponse.interstitialPods;fpH&&Z8U(this,fpH);this.eL&&this.eventId&&(this.eL=Mx(this.eL,{ei:this.eventId}));var jwx=this.playerResponse.captions;if(jwx&& jwx.playerCaptionsTracklistRenderer)a:{var GS=jwx.playerCaptionsTracklistRenderer;this.captionTracks=[];if(GS.captionTracks)for(var Wn1=g.G(GS.captionTracks),Cy5=Wn1.next();!Cy5.done;Cy5=Wn1.next()){var yk=Cy5.value,hjz=s84(yk.baseUrl);if(!hjz)break a;var tAF={is_translateable:!!yk.isTranslatable,languageCode:yk.languageCode,languageName:yk.name&&g.ff(yk.name),url:hjz,vss_id:yk.vssId,kind:yk.kind};tAF.name=yk.trackName;tAF.displayName=yk.name&&g.ff(yk.name);this.captionTracks.push(new g.Y3(tAF))}this.kJ= GS.audioTracks||[];this.lN=GS.defaultAudioTrackIndex||0;this.U$=[];if(GS.translationLanguages)for(var c2u=g.G(GS.translationLanguages),xqH=c2u.next();!xqH.done;xqH=c2u.next()){var Rz=xqH.value,u5={};u5.languageCode=Rz.languageCode;u5.languageName=g.ff(Rz.languageName);if(Rz.translationSourceTrackIndices){u5.translationSourceTrackIndices=[];for(var Z21=g.G(Rz.translationSourceTrackIndices),OS1=Z21.next();!OS1.done;OS1=Z21.next())u5.translationSourceTrackIndices.push(OS1.value)}if(Rz.excludeAudioTrackIndices){u5.excludeAudioTrackIndices= [];for(var SMy=g.G(Rz.excludeAudioTrackIndices),adU=SMy.next();!adU.done;adU=SMy.next())u5.excludeAudioTrackIndices.push(adU.value)}this.U$.push(u5)}this.xJ=[];if(GS.defaultTranslationSourceTrackIndices)for(var H24=g.G(GS.defaultTranslationSourceTrackIndices),wA_=H24.next();!wA_.done;wA_=H24.next())this.xJ.push(wA_.value);this.d8=!!GS.contribute&&!!GS.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.BC=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&H84(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var px_;this.compositeLiveIngestionOffsetToken=(px_=this.playerResponse.playbackTracking)==null?void 0:px_.compositeLiveIngestionOffsetToken;var Fn5;this.compositeLiveStatusToken=(Fn5=this.playerResponse.playbackTracking)==null?void 0: Fn5.compositeLiveStatusToken;this.D("html5_fill_default_mosaic_audio_track_id")&&wI(this)&&(this.r$.iW=eau(this))}$p(this,w);w.queue_info&&(this.queueInfo=w.queue_info);var ExH=w.hlsdvr;ExH!=null&&(this.allowLiveDvr=Number(ExH)===1?Fp()?!0:r$&&xl<5?!1:!0:!1);this.adQueryId=w.ad_query_id||null;this.MM||(this.MM=w.encoded_ad_safety_reason||null);this.nN=a1(this.nN,w.infringe||w.muted);this.Nb=w.authkey;this.w4=w.authuser;this.mutedAutoplay=a1(this.mutedAutoplay,w&&w.playmuted);this.mutedAutoplayDurationMode= iK(this.mutedAutoplayDurationMode,w&&w.muted_autoplay_duration_mode);this.XM=a1(this.XM,w&&w.mutedautoplay);var Lt=w.length_seconds;Lt&&(this.lengthSeconds=typeof Lt==="string"?QG(Lt):Lt);if(this.isAd()||this.AQ||!g.$F(g.tu(this.r$)))this.endSeconds=iK(this.endSeconds,this.MP||w.end||w.endSeconds);else{var bRE=g.tu(this.r$),ef=this.lengthSeconds;switch(bRE){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":ef>30?this.limitedPlaybackDurationInSeconds=30:ef<30&&ef>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=ef*.2}}this.UO=Mi(this.UO,w.itct);this.Mh=a1(this.Mh,w.is_live_destination);this.isLivePlayback=a1(this.isLivePlayback,w.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.dK();w.isUpcoming&&(this.isUpcoming=a1(this.isUpcoming,w.isUpcoming));this.Gt=a1(this.Gt,w.post_live_playback);this.B3&&(this.Gt=!1);this.isMdxPlayback=a1(this.isMdxPlayback,w.mdx);var Bt=w.mdx_control_mode; Bt&&(this.mdxControlMode=typeof Bt==="number"?Bt:QG(Bt));this.isInlinePlaybackNoAd=a1(this.isInlinePlaybackNoAd,w.is_inline_playback_no_ad);this.hD=iK(this.hD,w.reload_count);this.reloadReason=Mi(this.reloadReason,w.reload_reason);this.zj=a1(this.zj,w.show_content_thumbnail);this.cycToken=w.cyc||null;var NOM=lT(w);Object.keys(NOM).length>0&&(this.V=NOM);this.Cu=Mi(this.Cu,w.vvt);this.mdxEnvironment=Mi(this.mdxEnvironment,w.mdx_environment);w.source_container_playlist_id&&(this.sourceContainerPlaylistId= w.source_container_playlist_id);w.serialized_mdx_metadata&&(this.serializedMdxMetadata=w.serialized_mdx_metadata);this.W4=w.osig;this.eventId||(this.eventId=w.eventid);this.osid||(this.osid=w.osid);this.playlistId=Mi(this.playlistId,w.list);w.index&&(this.playlistIndex=this.playlistIndex===void 0?iK(0,w.index):iK(this.playlistIndex,w.index));this.YE=w.pyv_view_beacon_url;this.zH=w.pyv_quartile25_beacon_url;this.Zn=w.pyv_quartile50_beacon_url;this.H7=w.pyv_quartile75_beacon_url;this.nS=w.pyv_quartile100_beacon_url; var Vyu=w.session_data;!this.AN&&Vyu&&(this.AN=tR(Vyu,"&").feature);this.isFling=iK(this.isFling?1:0,w.is_fling)===1;this.vnd=iK(this.vnd,w.vnd);this.forceAdsUrl=Mi(this.forceAdsUrl,w.force_ads_url);this.f6=Mi(this.f6,w.ctrl);this.wk=Mi(this.wk,w.ytr);this.Yl=w.ytrcc;this.bx=w.ytrexp;this.IT=w.ytrext;this.QL=Mi(this.QL,w.adformat);this.Iz=Mi(this.Iz,w.attrib);this.slotPosition=iK(this.slotPosition,w.slot_pos);this.breakType=w.break_type;this.kT=a1(this.kT,w.ssrt);this.videoId=uK(w)||this.videoId; this.K=Mi(this.K,w.vss_credentials_token);this.Z8=Mi(this.Z8,w.vss_credentials_token_type);this.jU=a1(this.jU,w.audio_only);this.t9=a1(this.t9,w.aac_high);this.e8=a1(this.e8,w.prefer_low_quality_audio);this.eR=a1(this.eR,w.uncap_inline_quality);this.D("html5_enable_qoe_cat_list")?w.qoe_cat&&(this.vC=this.vC.concat(w.qoe_cat.split(","))):this.dk=Mi(this.dk,w.qoe_cat);this.KK=a1(this.KK,w.download_media);var m5x=w.prefer_gapless;this.j=m5x!=null?a1(this.j,m5x):this.j?this.j:this.r$.preferGapless&&this.r$.supportsGaplessShorts(); W7u(this.playerResponse)&&this.Lu.push("ad");var oxl=w.adaptive_fmts;oxl&&(this.adaptiveFormats=oxl,this.II("adpfmts",{},!0));var Gfu=w.allow_embed;Gfu&&(this.allowEmbed=Number(Gfu)===1);var y2p=w.backgroundable;y2p&&(this.backgroundable=Number(y2p)===1);var D5u=w.autonav;D5u&&(this.isAutonav=Number(D5u)===1);var qMR=w.autoplay;qMR&&(this.cZ=this.VJ=Number(qMR)===1);var YM2=w.iv_load_policy;YM2&&(this.annotationsLoadPolicy=wH(this.annotationsLoadPolicy,YM2,xI));var zjU=w.cc_lang_pref;zjU&&(this.captionsLanguagePreference= Mi(zjU,this.captionsLanguagePreference));var TO1=w.cc_load_policy;TO1&&(this.pj=wH(this.pj,TO1,xI));var d51;this.deviceCaptionsOn=(d51=w.device_captions_on)!=null?d51:void 0;var lpM;this.VQ=(lpM=w.device_captions_lang_pref)!=null?lpM:"";var Ln_;this.bG=(Ln_=w.viewer_selected_caption_langs)!=null?Ln_:[];if(!this.D("html5_enable_ssap_entity_id")){var ej1=w.cached_load;ej1&&(this.DN=a1(this.DN,ej1))}if(w.dash==="0"||w.dash===0||w.dash===!1)this.qI=!0;var BO4=w.dashmpd;BO4&&(this.VE=g.p5(BO4,{cpn:this.clientPlaybackNonce})); var QAu=w.delay;QAu&&(this.cj=QG(QAu));var iPy=this.MP||w.end;if(this.QE?iPy!=null:iPy!=void 0)this.clipEnd=iK(this.clipEnd,iPy);var kf1=w.fmt_list;kf1&&(this.Iy=kf1);w.heartbeat_preroll&&this.Lu.push("heartbeat");this.vV=-Math.floor(Math.random()*10);this.x3=-Math.floor(Math.random()*40);var Rju=w.is_listed;Rju&&(this.isListed=a1(this.isListed,Rju));var nx_=w.is_private;nx_&&(this.isPrivate=a1(this.isPrivate,nx_));var vx2=w.is_dni;vx2&&(this.Ym=a1(this.Ym,vx2));var sAU=w.dni_color;sAU&&(this.jT= Mi(this.jT,sAU));var Knz=w.pipable;Knz&&(this.pipable=a1(this.pipable,Knz));this.I5=(this.aT=this.pipable&&this.r$.d8)&&!this.r$.showMiniplayerButton;var b2H=w.paid_content_overlay_duration_ms;b2H&&(this.paidContentOverlayDurationMs=QG(b2H));var IpF=w.paid_content_overlay_text;IpF&&(this.paidContentOverlayText=IpF);var A24=w.url_encoded_fmt_stream_map;A24&&(this.wb=A24);var gxz=w.hls_formats;gxz&&(this.hlsFormats=gxz);var J21=w.hlsvp;J21&&(this.hlsvp=J21);var QD=w.live_start_walltime;QD&&(this.KP= typeof QD==="number"?QD:QG(QD));var kg=w.live_manifest_duration;kg&&(this.Gl=typeof kg==="number"?kg:QG(kg));var r22=w.player_params;r22&&(this.playerParams=r22);var jAy=w.partnerid;jAy&&(this.partnerId=iK(this.partnerId,jAy));var Cn_=w.probe_url;Cn_&&(this.probeUrl=sB(g.p5(Cn_,{cpn:this.clientPlaybackNonce})));var MM4=w.pyv_billable_url;MM4&&pml(MM4)&&(this.wz=MM4);var PCM=w.pyv_conv_url;PCM&&pml(PCM)&&(this.Vz=PCM);A72(this,w);this.startSeconds>0?this.D("html5_log_start_seconds_inconsistency")&& this.startSeconds!==(this.BC||this.JQ||w.start||w.startSeconds)&&this.II("lss",{css:this.startSeconds,pcss:this.BC,iss:this.JQ,ps:w.start||void 0,pss:w.startSeconds||void 0}):this.fg=this.startSeconds=iK(this.startSeconds,this.BC||this.JQ||w.start||w.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var tyM=w.live_utc_start;if(tyM!=null)this.liveUtcStartSeconds=Number(tyM);else{var uvR=this.startSeconds;uvR&&isFinite(uvR)&&uvR>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var x54=w.utc_start_millis;x54&&(this.liveUtcStartSeconds=Number(x54)*.001)}var O2z=w.stream_time_start_millis;O2z&&(this.rB=Number(O2z)*.001);var XAR=this.JQ||w.start;(this.QE?XAR==null||Number(w.resume)===1:XAR==void 0||w.resume=="1")||this.isLivePlayback||(this.clipStart=iK(this.clipStart,XAR));var ap2=w.url_encoded_third_party_media;ap2&&(this.At=ag(ap2));var $GU=w.ypc_offer_button_formatted_text;if($GU){var w$p=JSON.parse($GU);this.J_=w$p!=null?w$p:null;this.Eo=$GU}var is5= w.ypc_offer_button_text;is5&&(this.Fx=is5);var MQ1=w.ypc_offer_description;MQ1&&(this.QJ=MQ1);var Pd5=w.ypc_offer_headline;Pd5&&(this.sA=Pd5);var uNp=w.ypc_full_video_message;uNp&&(this.R4=uNp);var X$M=w.ypc_offer_id;X$M&&(this.BI=X$M);var $XU=w.ypc_buy_url;$XU&&(this.YS=$XU);var UX5=w.ypc_item_thumbnail;UX5&&(this.mB=UX5);var fs1=w.ypc_item_title;fs1&&(this.Mx=fs1);var WM5=w.ypc_item_url;WM5&&(this.Xx=WM5);var hG1=w.ypc_vid;hG1&&(this.Ic=hG1);w.ypc_overlay_timeout&&(this.Sz=Number(w.ypc_overlay_timeout)); var cY_=w.ypc_trailer_player_vars;cY_&&(this.L$=OK(cY_));var Zs4=w.ypc_original_itct;Zs4&&(this.Sq$=Zs4);this.ZY=Mi(this.ZY,w.ucid);this.vp=w.storyboard_spec||null;this.Di=w.live_storyboard_spec||null;this.Zd=w.iv_endscreen_url||null;this.tF=a1(this.tF,w.ypc_module);this.pV=a1(this.pV,w.ypc_clickwrap_module);this.tF&&this.Lu.push("ypc");this.pV&&this.Lu.push("ypc_clickwrap");this.IS={video_id:w.video_id,eventid:w.eventid,cbrand:w.cbrand,cbr:w.cbr,cbrver:w.cbrver,c:w.c,cver:w.cver,ctheme:w.ctheme, cplayer:w.cplayer,cmodel:w.cmodel,cnetwork:w.cnetwork,cos:w.cos,cosver:w.cosver,cplatform:w.cplatform,user_age:w.user_age,user_display_image:w.user_display_image,user_display_name:w.user_display_name,user_gender:w.user_gender,csi_page_type:w.csi_page_type,csi_service_name:w.csi_service_name,enablecsi:w.enablecsi,enabled_engage_types:w.enabled_engage_types};v7u(this,w);var SzR=w.cotn;SzR&&(this.cotn=SzR);if(PsR(this))yN(this)&&(this.isLivePlayback&&this.VE&&(this.w5=!0),this.OO&&(this.Sd=!0));else if(u8p(this))this.w5= !0;else{var Hsl,p$u,FM1=((Hsl=this.playerResponse)==null?void 0:(p$u=Hsl.streamingData)==null?void 0:p$u.adaptiveFormats)||[];if(FM1.length>0)var Y7=MLp(this,FM1);else{var EE5=this.adaptiveFormats;if(EE5&&!yN(this)){this.r$.G.C&&(jj=!0);var nF=lt(EE5),UGF=this.Ks,NvU=this.lengthSeconds,IYx=this.isLivePlayback,z1=this.Gt,vQ=this.r$,ARA=mVy(nF);if(IYx||z1){var VQ5=vQ==null?void 0:vQ.experiments,ev=new ej("",VQ5,!0);ev.dK=!0;ev.isManifestless=!0;ev.L=!z1;ev.isLive=!z1;ev.Gt=z1;for(var mXp=g.G(nF),f31= mXp.next();!f31.done;f31=mXp.next()){var s$=f31.value,oEH=Rb(s$,UGF),Xb=nM(s$.url,s$.sp,s$.s),GPR=Xb.get("id");GPR&&GPR.includes("%7E")&&(ev.S=!0);var yYU=void 0,gha=(yYU=VQ5)==null?void 0:yYU.nu("html5_max_known_end_time_rebase"),JR4=Number(s$.target_duration_sec)||5,rRx=Number(s$.max_dvr_duration_sec)||14400,DXM=Number(Xb.get("mindsq")||Xb.get("min_sq")||"0"),qzl=Number(Xb.get("maxdsq")||Xb.get("max_sq")||"0")||Infinity;ev.yL=ev.yL||DXM;ev.Xc=ev.Xc||qzl;var jgE=!sI(oEH.mimeType);Xb&&dr(ev,new Sj(Xb, oEH,{n6:JR4,WC:jgE,g8:rRx,yL:DXM,Xc:qzl,wj:300,Gt:z1,Zb:gha}))}var Yz_=ev}else{if(ARA==="FORMAT_STREAM_TYPE_OTF"){var RH=NvU;RH=RH===void 0?0:RH;var KF=new ej("",vQ==null?void 0:vQ.experiments,!1);KF.duration=RH||0;for(var zG5=g.G(nF),Wc4=zG5.next();!Wc4.done;Wc4=zG5.next()){var bV=Wc4.value,h4x=Rb(bV,UGF,KF.duration),cvl=nM(bV.url,bV.sp,bV.s);if(cvl)if(h4x.streamType==="FORMAT_STREAM_TYPE_OTF")dr(KF,new HC(cvl,h4x,"sq/0"));else{var CUV=J3(bV.init),t2E=J3(bV.index);dr(KF,new YY(cvl,h4x,CUV,t2E))}}KF.isOtf= !0;var Tv2=KF}else{var nt=NvU;nt=nt===void 0?0:nt;var vt=new ej("",vQ==null?void 0:vQ.experiments,!1);vt.duration=nt||0;for(var dXR=g.G(nF),ZPx=dXR.next();!ZPx.done;ZPx=dXR.next()){var Iz=ZPx.value,xT3=Rb(Iz,UGF,vt.duration),ORp=J3(Iz.init),aYh=J3(Iz.index),lsz=nM(Iz.url,Iz.sp,Iz.s);lsz&&dr(vt,new YY(lsz,xT3,ORp,aYh))}Tv2=vt}Yz_=Tv2}var LM1=Yz_;if(nF.length>0){var eG2=nF[0];if(this.N().playerStyle==="hangouts-meet"&&eG2.url){var wFa=g.w$(eG2.url);this.c8=this.c8||Number(wFa.expire)}}var iBU=this.isLivePlayback&& !this.Gt&&!this.B3&&!this.isPremiere;this.D("html5_live_head_playable")&&(!Dw(this)&&iBU&&this.II("missingLiveHeadPlayable",{}),this.r$.B3==="yt"&&(LM1.eL=!0));Y7=LM1}else Y7=null;this.II("pafmts",{isManifestFilled:!!Y7})}if(Y7){z3(this,Y7);var Bvz=!0}else Bvz=!1;Bvz?this.enableServerStitchedDai=this.enableServerStitchedDai&&qI(this):this.VE&&(this.r$.B3==="yt"&&this.dK()&&this.D("drm_manifestless_unplugged")&&this.D("html5_deprecate_manifestful_fallback")?this.II("deprecateMflFallback",{}):this.w5= !0)}var SbU=w.adpings;SbU&&(this.Ck=SbU?OK(SbU):null);var Qe_=w.feature;Qe_&&(this.ET=Qe_);var kP4=w.referrer;kP4&&(this.referrer=kP4);this.clientScreenNonce=Mi(this.clientScreenNonce,w.csn);this.JY=iK(this.JY,w.root_ve_type);this.XC=iK(this.XC,w.kids_age_up_mode);this.QE||w.kids_app_info==void 0||(this.kidsAppInfo=w.kids_app_info);this.QE&&w.kids_app_info!=null&&(this.kidsAppInfo=w.kids_app_info);this.DZ=a1(this.DZ,w.upg_content_filter_mode);this.unpluggedFilterModeType=iK(this.unpluggedFilterModeType, w.unplugged_filter_mode_type);var RGu=w.unplugged_location_info;RGu&&(this.DO=RGu);var nE1=w.unplugged_partner_opt_out;nE1&&(this.D1=Mi("",nE1));this.fA=a1(this.fA,w.disable_watch_next);this.Ef=Mi(this.Ef,w.internal_ip_override);this.CA=!!w.is_yto_interstitial;(this.interstitials.length||this.CA)&&this.Lu.push("yto");var vEl=w.Gx;vEl&&(this.Gx=vEl);this.S=Mi(this.S,w.csi_timer);w.watchUrl&&(this.watchUrl=w.watchUrl);var $B=w.watch_endpoint;this.D("html5_attach_watch_endpoint_ustreamer_config")&&$B&& wER(this,$B);if($B==null?0:$B.ustreamerConfig)this.E$=V8($B.ustreamerConfig);var seU,KM1,bsz=$B==null?void 0:(seU=$B.loggingContext)==null?void 0:(KM1=seU.qoeLoggingContext)==null?void 0:KM1.serializedContextData;bsz&&(this.AwL=bsz);g.K7(this.r$)&&this.r$.BI&&(this.embedsRct=Mi(this.embedsRct,w.rct),this.embedsRctn=Mi(this.embedsRctn,w.rctn));this.H_=this.H_||!!w.pause_at_start;w.default_active_source_video_id&&(this.defaultActiveSourceVideoId=w.default_active_source_video_id)}; g.N.N=function(){return this.r$}; g.N.D=function(w){return this.r$.D(w)}; g.N.q8=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.N.hasSupportedAudio51Tracks=function(){var w;return!((w=this.Kx)==null||!w.iW)}; g.N.getUserAudio51Preference=function(){var w=1;W0(this.r$)&&this.D("html5_ytv_surround_toggle_default_off")?w=0:g.$3(this.r$)&&this.isLivePlayback&&this.d5()&&(w=0);var M;return(M=g.dH("yt-player-audio51"))!=null?M:w}; g.N.sY=function(){this.sO()||(this.B.L||this.B.unsubscribe("refresh",this.sY,this),this.zP(-1))}; g.N.zP=function(w){if(!this.isLivePlayback||!this.G||this.G.flavor!=="fairplay"){var M=GEM(this.B,this.Wg);if(M.length>0){for(var P=g.G(M),u=P.next();!u.done;u=P.next())u=u.value,u.startSecs=Math.max(u.startSecs,this.ov()),this.D("html5_cuepoint_identifier_logging")&&u.event==="start"&&this.II("cuepoint",{pubCue:u.identifier,segNum:w});this.publish("cuepointupdated",M,w);this.Wg+=M.length;if(qI(this)&&this.r$.FX())for(M=g.G(M),P=M.next();!P.done;P=M.next())P=P.value,this.II("cuepoint",{segNum:w,event:P.event, startSecs:P.startSecs,id:P.identifier.slice(-16)}),P.event==="start"&&(P=P.startSecs,this.yd.start=this.TE,this.yd.end=P+3)}}}; g.N.ZF=function(){this.sO()||(this.loading=!1,this.publish("dataloaded"))}; g.N.d5=function(){return this.We!==void 0?this.We:this.We=!!this.Ks||!!this.B&&BL(this.B)}; g.N.Bt=function(w){var M=this;if(this.sO())return zZ();this.DX=this.Yu=this.C=null;$t(this,"html5_high_res_logging_always")&&(this.r$.wb=!0);return fzF(this,w).then(void 0,function(){return ha1(M,w)}).then(void 0,function(){return cXF(M)}).then(void 0,function(){return S2p(M)})}; g.N.I_=function(w){this.C=w;WE_(this,this.C.getAvailableAudioTracks());if(this.C){w=g.G(this.C.videoInfos);for(var M=w.next();!M.done;M=w.next()){M=M.value;var P=M.containerType;P!==0&&(this.Xs[P]=M.id)}}w=this.getAvailableAudioTracks();w=w.concat(this.ih);for(M=0;M0?this.C.getAvailableAudioTracks():this.oE||[]:[]}; g.N.getAudioTrack=function(){var w=this;if(this.X&&!k5(this.X)){var M=g.Nj(this.getAvailableAudioTracks(),function(X){return X.id===w.X.id}),P; if(!M&&((P=this.X.Y2)==null?0:P.id)){var u=this.X.Y2.id;M=g.Nj(this.getAvailableAudioTracks(),function(X){return X.Y2.id===u}); this.II("nat",{id:this.X.id,track:!!M})}return M||this.ih}if(this.oE){if(!this.F$)for(M=g.G(this.oE),P=M.next();!P.done;P=M.next())if(P=P.value,P.Y2.getIsDefault()){this.F$=P;break}return this.F$||this.ih}return this.ih}; g.N.getPlayerResponse=function(){return this.playerResponse}; g.N.getWatchNextResponse=function(){return this.xu}; g.N.getHeartbeatResponse=function(){return this.pA}; g.N.eA=function(){return this.watchUrl?this.watchUrl:this.r$.getVideoUrl(this.videoId)}; g.N.bz=function(){return!!this.B&&(SH_(this.B)||HO4(this.B)||ppy(this.B))}; g.N.getEmbeddedPlayerResponse=function(){return this.gh}; g.N.Dv=function(){return(this.eventLabel||this.r$.Cu)==="shortspage"}; g.N.isAd=function(){return!!this.adFormat}; g.N.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.N.VH=function(){var w,M,P;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((w=this.playerResponse)==null?0:(M=w.playerConfig)==null?0:(P=M.daiConfig)==null?0:P.ssaEnabledPlayback)}; g.N.qN=function(){return this.J7}; g.N.yI=function(){return this.tF||this.uh}; g.N.Aj=function(){return $t(this,"html5_samsung_vp9_live")}; g.N.II=function(w,M,P){this.publish("ctmp",w,M,P)}; g.N.yj=function(w,M,P){this.publish("ctmpstr",w,M,P)}; g.N.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.N.getGetAdBreakContext=function(w,M){w=w===void 0?NaN:w;M=M===void 0?NaN:M;var P={isSabr:mC(this)},u,X=(u=this.getHeartbeatResponse())==null?void 0:u.adBreakHeartbeatParams;X&&(P.adBreakHeartbeatParams=X);if(this.D("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.B&&!isNaN(w)&&!isNaN(M)){M=w-M;for(var U in this.B.B)if(u=this.B.B[U],u.info.VL()||u.info.hx())if(u=u.index,u.isLoaded()){U=u.C9(M);u=u.Ls(U)+M-u.getStartTime(U);this.II("gabc",{t:w.toFixed(3),mt:M.toFixed(3),sg:U,igt:u.toFixed(3)}); P.livePlaybackPosition={utcTimeMillis:""+(u*1E3).toFixed(0)};break}}return P}; g.N.isEmbedsShortsMode=function(w,M){if(!g.K7(this.r$)||(this.r$.ys||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||M)return!1;var P,u;return!!(((P=this.embeddedPlayerConfig)==null?0:(u=P.embeddedPlayerFlags)==null?0:u.isShortsExperienceEligible)&&w.width<=w.height)}; g.N.v3=function(){g.wC.prototype.v3.call(this);this.Ck=null;delete this.jQ;delete this.accountLinkingConfig;delete this.B;this.C=this.pA=this.playerResponse=this.xu=null;this.wb=this.adaptiveFormats="";delete this.botguardData;this.jL=this.suggestions=this.Xk=null;this.sabrContextUpdates.clear()};var AX2={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},gHz={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},bY4={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},vHp={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"},KEl={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},sQR={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"},Izp={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.V(HV,g.v);g.N=HV.prototype;g.N.handleExternalCall=function(w,M,P){var u=this.state.j[w],X=this.state.V[w],U=u;if(X)if(P&&RB(P,zcA))U=X;else if(!u)throw Error('API call from an untrusted origin: "'+P+'"');this.logApiCall(w,P);if(U){P=!1;u=g.G(M);for(X=u.next();!X.done;X=u.next())if(String(X.value).includes("javascript:")){P=!0;break}P&&g.Yq(Error('Dangerous call to "'+w+'" with ['+M+"]."));return U.apply(this,M)}throw Error('Unknown API method: "'+w+'".');}; g.N.logApiCall=function(w,M,P){var u=this.app.N();u.kT&&!this.state.S.has(w)&&(this.state.S.add(w),g.ub("webPlayerApiCalled",{callerUrl:u.loaderUrl,methodName:w,origin:M||void 0,playerStyle:u.playerStyle||void 0,embeddedPlayerMode:u.ys,errorCode:P}))}; g.N.publish=function(w){var M=g.Kz.apply(1,arguments);this.state.C.publish.apply(this.state.C,[w].concat(g.L(M)));if(w==="videodatachange"||w==="resize"||w==="cardstatechange")this.state.L.publish.apply(this.state.L,[w].concat(g.L(M))),this.state.X.publish.apply(this.state.X,[w].concat(g.L(M)))}; g.N.Vs=function(w){var M=g.Kz.apply(1,arguments);this.state.C.publish.apply(this.state.C,[w].concat(g.L(M)));this.state.L.publish.apply(this.state.L,[w].concat(g.L(M)))}; g.N.z5=function(w){var M=g.Kz.apply(1,arguments);this.state.C.publish.apply(this.state.C,[w].concat(g.L(M)));this.state.L.publish.apply(this.state.L,[w].concat(g.L(M)));this.state.X.publish.apply(this.state.X,[w].concat(g.L(M)))}; g.N.OE=function(w){var M=g.Kz.apply(1,arguments);this.state.C.publish.apply(this.state.C,[w].concat(g.L(M)));this.state.L.publish.apply(this.state.L,[w].concat(g.L(M)));this.state.X.publish.apply(this.state.X,[w].concat(g.L(M)));this.state.G.publish.apply(this.state.G,[w].concat(g.L(M)))}; g.N.D=function(w){return this.app.N().D(w)}; g.N.v3=function(){if(this.state.element){var w=this.state.element,M;for(M in this.state.B)this.state.B.hasOwnProperty(M)&&(w[M]=null);this.state.element=null}g.v.prototype.v3.call(this)};g.V(V1,g.oC);V1.prototype.publish=function(w){var M=g.Kz.apply(1,arguments);if(this.G.has(w))return this.G.get(w).push(M),!0;var P=!1;try{for(M=[M],this.G.set(w,M);M.length;)P=g.oC.prototype.publish.call.apply(g.oC.prototype.publish,[this,w].concat(g.L(M.shift())))}finally{this.G.delete(w)}return P};g.V(mB,g.v);mB.prototype.v3=function(){this.G.dispose();this.X.dispose();this.L.dispose();this.C.dispose();this.S=this.B=this.V=this.j=this.K=void 0};var OYx=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.V(Gl,HV);g.N=Gl.prototype;g.N.getApiInterface=function(){return Array.from(this.state.K)}; g.N.a6=function(w,M){this.state.G.subscribe(w,M)}; g.N.ICK=function(w,M){this.state.G.unsubscribe(w,M)}; g.N.getPlayerState=function(w){return eP_(this.app,w)}; g.N.So=function(){return eP_(this.app)}; g.N.hNu=function(w,M,P){ql(this)&&(Ip(this.app,!0,1),JZ(this.app,w,M,P,1))}; g.N.getCurrentTime=function(w,M,P){var u=this.getPlayerState(w);if(this.app.getAppState()===2&&u===5){var X;return((X=this.app.getVideoData())==null?void 0:X.startSeconds)||0}return this.D("web_player_max_seekable_on_ended")&&u===0?kP(this.app,w):w?this.app.getCurrentTime(w,M,P):this.app.getCurrentTime(w)}; g.N.VV=function(){return this.app.getCurrentTime(1)}; g.N.Hy=function(){var w=this.app.Ls(1);return isNaN(w)?this.getCurrentTime(1):w}; g.N.ol=function(){return this.app.getDuration(1)}; g.N.mO=function(w,M){w=g.bi(Math.floor(w),0,100);isFinite(w)&&Bs(this.app,{volume:w,muted:this.isMuted()},M)}; g.N.zNk=function(w){this.mO(w,!1)}; g.N.h1=function(w){Bs(this.app,{muted:!0,volume:this.getVolume()},w)}; g.N.Euu=function(){this.h1(!1)}; g.N.tG=function(w){D5(this.app)&&!this.D("embeds_enable_emc3ds_muted_autoplay")||Bs(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},w)}; g.N.Qkk=function(){D5(this.app)&&this.D("embeds_enable_emc3ds_muted_autoplay")||this.tG(!1)}; g.N.getPlayerMode=function(){var w={};this.app.getVideoData().Ym&&(w.pfp={enableIma:g.f$(this.app.getVideoData())&&this.app.Bl().allowImaMonetization,autoplay:xp(this.app.Bl()),mutedAutoplay:this.app.Bl().mutedAutoplay});return w}; g.N.zW=function(){var w=this.app.getPresentingPlayerType();if(w===2&&!this.app.q6()){var M=B4(this.app.I9());if(!(B4p(M)||g.K7(this.app.N())&&g.C(this.app.uW().getPlayerState(),1024))||QFE(M))return}(M=this.app.sG().Wb)?M.playVideo():this.app.playVideo(w)}; g.N.gau=function(){Ip(this.app,!0,1);this.zW()}; g.N.pauseVideo=function(w){var M=this.app.getPresentingPlayerType();if(M!==2||this.app.q6()||B4p(B4(this.app.I9()))){var P=this.app.sG().Wb;P?P.pauseVideo():this.app.pauseVideo(M,w)}}; g.N.vD3=function(){var w=this.app,M=!1;w.P3.QE&&(w.h9.publish("pageTransition"),M=!0);w.stopVideo(M)}; g.N.clearVideo=function(){}; g.N.getAvailablePlaybackRates=function(){var w=this.app.N();return w.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(w.X?w.ancestorOrigins[0]:window.location.origin)||w.Qn?P6U:w.supportsVarispeedExtendedFeatures?uUj:w.D("web_remix_allow_up_to_3x_playback_rate")&&g.LW(w)?XSE:Bw:[1]}; g.N.getPlaybackQuality=function(w){return(w=this.app.xm(w))?w.getPlaybackQuality():"unknown"}; g.N.YEs=function(){}; g.N.getAvailableQualityLevels=function(w){return(w=this.app.xm(w))?(w=g.EV(w.gY(),function(M){return M.quality}),w.length&&(w[0]==="auto"&&w.shift(),w=w.concat(["auto"])),w):[]}; g.N.T7=function(){return this.getAvailableQualityLevels(1)}; g.N.Ie=function(){return this.FN()}; g.N.pW=function(){return 1}; g.N.getVideoLoadedFraction=function(w){return this.app.getVideoLoadedFraction(w)}; g.N.FN=function(){return this.getVideoLoadedFraction()}; g.N.mC=function(){return 0}; g.N.getSize=function(){var w=this.app.oI().getPlayerSize();return{width:w.width,height:w.height}}; g.N.setSize=function(){this.app.oI().resize()}; g.N.loadVideoById=function(w,M,P,u){if(!w)return!1;w=oZ(w,M,P);return this.app.loadVideoByPlayerVars(w,u)}; g.N.Q3=function(w,M,P){w=this.loadVideoById(w,M,P,1);Ip(this.app,w,1)}; g.N.cueVideoById=function(w,M,P,u){w=oZ(w,M,P);this.app.cueVideoByPlayerVars(w,u)}; g.N.x8=function(w,M,P){this.cueVideoById(w,M,P,1)}; g.N.loadVideoByUrl=function(w,M,P,u){w=x$5(w,M,P);return this.app.loadVideoByPlayerVars(w,u)}; g.N.Tf=function(w,M,P){w=this.loadVideoByUrl(w,M,P,1);Ip(this.app,w,1)}; g.N.cueVideoByUrl=function(w,M,P,u){w=x$5(w,M,P);this.app.cueVideoByPlayerVars(w,u)}; g.N.D9=function(w,M,P){this.cueVideoByUrl(w,M,P,1)}; g.N.r6=function(){var w=this.app.N();if(w.Lu)return"";var M=this.app.Bl(),P=void 0;M.isLivePlayback||(P=Math.floor(this.app.getCurrentTime(1)));return w.getVideoUrl(M.videoId,this.getPlaylistId()||void 0,P)}; g.N.i$=function(){return this.app.getDebugText()}; g.N.getVideoEmbedCode=function(){var w=this.app.N();if(w.Lu)return"";var M=this.app.Bl();return w.getVideoEmbedCode(M.isPrivate?"":M.title,this.app.Bl().videoId,this.app.oI().getPlayerSize(),this.getPlaylistId()||void 0)}; g.N.OW=function(w,M,P){return KNz(this.app,w,M,P)}; g.N.removeCueRange=function(w){return this.app.uo(w)}; g.N.loadPlaylist=function(w,M,P,u){this.app.loadPlaylist(w,M,P,u)}; g.N.g9=function(w,M,P,u){this.loadPlaylist(w,M,P,u);Ip(this.app,!0,1)}; g.N.cuePlaylist=function(w,M,P,u){this.app.cuePlaylist(w,M,P,u)}; g.N.nextVideo=function(w,M){this.app.nextVideo(w,M)}; g.N.m0$=function(){this.nextVideo();Ip(this.app,!0,1)}; g.N.previousVideo=function(w){this.app.previousVideo(w)}; g.N.is3=function(){this.previousVideo();Ip(this.app,!0,1)}; g.N.playVideoAt=function(w){this.app.playVideoAt(w)}; g.N.Os9=function(w){this.playVideoAt(w);Ip(this.app,!0,1)}; g.N.setShuffle=function(w){var M=this.app.getPlaylist();M&&M.setShuffle(w)}; g.N.setLoop=function(w){var M=this.app.getPlaylist();M&&(M.loop=w)}; g.N.fW=function(){var w=this.app.getPlaylist();if(!w)return null;for(var M=[],P=0;P=400)if(w=this.Bl(),this.U.N().D("client_respect_autoplay_switch_button_renderer"))w=!!w.autoplaySwitchButtonRenderer;else{var M,P,u,X;w=!!((M=w.getWatchNextResponse())==null?0:(P=M.contents)==null?0:(u=P.twoColumnWatchNextResults)==null?0:(X=u.autoplay)==null?0:X.autoplay)!==!1}if(w)this.B||(this.B=!0,this.AD(this.B),this.U.N().D("web_player_autonav_toggle_always_listen")||GiR(this), M=this.Bl(),this.U_(M.autonavState),this.U.logVisibility(this.element,this.B));else if(this.B=!1,this.AD(this.B),!this.U.N().D("web_player_autonav_toggle_always_listen"))for(this.U.N().D("web_player_autonav_toggle_always_listen"),M=g.G(this.L),P=M.next();!P.done;P=M.next())this.Mt(P.value)}; g.N.U_=function(w){D1z(this)?this.isChecked=w!==1:((w=w!==1)||(g.kF(),w=g.FW("web_autonav_allow_off_by_default")&&!g.RS(0,141)&&g.AR("AUTONAV_OFF_BY_DEFAULT")?!1:!g.RS(0,140)),this.isChecked=w);yk4(this)}; g.N.onClick=function(){this.isChecked=!this.isChecked;this.U.nY(this.isChecked?2:1);yk4(this);if(D1z(this)){var w=this.Bl().autoplaySwitchButtonRenderer;this.isChecked&&(w==null?0:w.onEnabledCommand)?this.U.Vs("innertubeCommand",w.onEnabledCommand):!this.isChecked&&(w==null?0:w.onDisabledCommand)&&this.U.Vs("innertubeCommand",w.onDisabledCommand)}this.U.logClick(this.element)}; g.N.getValue=function(){return this.isChecked}; g.N.Bl=function(){return this.U.getVideoData(1)};g.V(qDy,ux);g.V(cH,g.wa);cH.prototype.onClick=function(){this.enabled&&(ZT(this,!this.checked),this.publish("select",this.checked))}; cH.prototype.getValue=function(){return this.checked}; cH.prototype.setEnabled=function(w){(this.enabled=w)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var p6=["en-CA","en","es-MX","fr-CA"];g.V(md,cH);md.prototype.g$=function(w){w?this.B||(this.Lg.XF(this),this.B=!0):this.B&&(this.Lg.uF(this),this.B=!1);this.B&&ZT(this,vyR())}; md.prototype.X=function(){g.PI(this.element,"ytp-menuitem-highlight-transition-enabled")}; md.prototype.C=function(w){var M=vyR();w!==M&&(M=g.kF(),vn(190,w),vn(192,!0),M.save(),this.U.Vs("cinematicSettingsToggleChange",w))}; md.prototype.v3=function(){this.B&&this.Lg.uF(this);cH.prototype.v3.call(this)};g.V(of,ux);of.prototype.updateCinematicSettings=function(w){this.B=w;var M;(M=this.menuItem)==null||M.g$(w);this.api.publish("onCinematicSettingsVisibilityChange",w)};g.V(lox,ux);g.V(G0,ux);G0.prototype.setCreatorEndscreenVisibility=function(w){var M;(M=no(this.api.I9()))==null||M.AD(w)}; G0.prototype.B=function(w){function M(u){u==="creatorendscreen"&&(u=no(P.api.I9()))&&u.tUK(P.hideButton)} var P=this;this.hideButton=w;this.events.Y(this.api,"modulecreated",M);M("creatorendscreen")};g.V(yF,cH);yF.prototype.X=function(w){this.C(w?1:0)}; yF.prototype.L=function(){var w=this.hasDrcAudioTrack(),M=this.B()===1&&w;ZT(this,M);this.setEnabled(w)}; yF.prototype.v3=function(){this.Lg.uF(this);cH.prototype.v3.call(this)};g.V(DT,ux);DT.prototype.getDrcUserPreference=function(){return this.B}; DT.prototype.setDrcUserPreference=function(w){g.Tg("yt-player-drc-pref",w,31536E3);w!==this.B&&(this.B=w,this.updateEnvironmentData(),this.L()&&this.api.Pe())}; DT.prototype.updateEnvironmentData=function(){this.api.N().TD=this.B===1}; DT.prototype.L=function(){var w,M,P=(w=this.api.getVideoData())==null?void 0:(M=w.C)==null?void 0:M.B;if(!P)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.D("mta_drc_mutual_exclusion_removal")){var u,X,U=(u=this.api.OV())==null?void 0:(X=u.Y2)==null?void 0:X.id;return K5(P,function(f){var h;return f.audio.B&&((h=f.Y2)==null?void 0:h.id)===U})}return K5(P,function(f){var h; return((h=f.audio)==null?void 0:h.B)===!0})};g.V(qk,ux);qk.prototype.onVideoDataChange=function(){var w=this,M=this.api.getVideoData();this.api.dB("embargo",1);var P=M==null?void 0:M.R2.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(P==null?0:P.length)?egU(this,P.filter(function(u){return LYM(w,u)})):(M==null?0:M.cueRanges)&&egU(this,M.cueRanges.filter(function(u){return LYM(w,u)}))}; qk.prototype.L=function(w){return w.embargo!==void 0}; qk.prototype.v3=function(){ux.prototype.v3.call(this);this.B={}};g.V(YN,ux); YN.prototype.addEmbedsConversionTrackingParams=function(w){var M=this.api.N(),P=M.widgetReferrer,u=M.VE,X=this.B,U="",f=M.getWebPlayerContextConfig();f&&(U=f.embedsIframeOriginParam||"");P.length>0&&(w.embeds_widget_referrer=P);u.length>0&&(w.embeds_referring_euri=u);M.X&&U.length>0&&(w.embeds_referring_origin=U);f&&f.embedsFeature&&(w.feature=f.embedsFeature);X.length>0&&(M.D("embeds_web_enable_lite_experiment_control_arm_logging")?X.unshift(28572):g.$F(g.tu(M))&&X.unshift(159628),M=X.join(","),M= g.KB()?M:g.zd(M,4),w.source_ve_path=M);this.B.length=0};g.V(BEp,ux);g.V(QJ1,ux);g.V(z0,g.v);z0.prototype.v3=function(){g.v.prototype.v3.call(this);this.B=null;this.L&&this.L.disconnect()};g.V(Rgu,ux);g.V(T0,g.r);T0.prototype.show=function(){g.r.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; T0.prototype.stopTimer=function(){this.B&&(this.B.dispose(),this.B=null)}; T0.prototype.onVideoDataChange=function(w){var M,P,u=(M=this.api.getVideoData())==null?void 0:(P=M.getPlayerResponse())==null?void 0:P.playabilityStatus;u&&(M=nT1(u),g.C(this.api.getPlayerStateObject(),128)||w==="dataloaderror"||!M?(this.L=0,this.stopTimer(),this.hide()):(w=(M.remainingTimeSecs||0)*1E3,w>0&&(this.show(),this.updateValue("label",v2(M.label)),sJl(this,w))))}; T0.prototype.v3=function(){this.stopTimer();g.r.prototype.v3.call(this)};g.V(KY2,ux);g.V(da,g.r);da.prototype.onClick=function(){this.h9.logClick(this.element);this.h9.Vs("onFullerscreenEduClicked")}; da.prototype.g$=function(){this.h9.isFullscreen()?this.B?this.fade.hide():this.fade.show():this.hide();this.h9.logVisibility(this.element,this.h9.isFullscreen()&&!this.B)};g.V(lx,ux);lx.prototype.updateFullerscreenEduButtonSubtleModeState=function(w){var M;(M=this.B)!=null&&(g.X6(M.element,"ytp-fullerscreen-edu-button-subtle",w),w&&!M.L&&(M.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),L$(M.h9,M.element,M),M.L=!0))}; lx.prototype.updateFullerscreenEduButtonVisibility=function(w){var M;(M=this.B)!=null&&(M.B=w,M.g$())};g.V(bml,g.r);g.V(gTF,ux);g.V(L6,ux);L6.prototype.getSphericalProperties=function(){var w=g.sr(this.api.I9());return w?w.getSphericalProperties():{}}; L6.prototype.setSphericalProperties=function(w){if(w){var M=g.sr(this.api.I9());M&&M.setSphericalProperties(w,!0)}};g.V(eZ,ux);g.N=eZ.prototype;g.N.createClientVe=function(w,M,P,u){this.api.createClientVe(w,M,P,u===void 0?!1:u)}; g.N.createServerVe=function(w,M,P){this.api.createServerVe(w,M,P===void 0?!1:P)}; g.N.setTrackingParams=function(w,M){this.api.setTrackingParams(w,M)}; g.N.logClick=function(w,M){this.api.logClick(w,M)}; g.N.logVisibility=function(w,M,P){this.api.logVisibility(w,M,P)}; g.N.hasVe=function(w){return this.api.hasVe(w)}; g.N.destroyVe=function(w){this.api.destroyVe(w)};var rkx=!1;QF.prototype.setPlaybackRate=function(w){this.playbackRate=Math.max(1,w)}; QF.prototype.getPlaybackRate=function(){return this.playbackRate};s6.prototype.O9=function(w){var M=g.R0(w.info.B.info,this.Gk.dK),P=w.info.Ku+this.X,u=w.info.startTime*1E3;if(this.policy.Yu)try{u=this.policy.Yu?g.m$(w)*1E3:w.info.startTime*1E3}catch(f){Math.random()>.99&&this.logger&&(u=U$(w.L).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:w.info.vk(),encodedDataView:g.Yw(u,4)})),u=w.info.startTime*1E3}var X=w.info.clipId,U=this.policy.Yu?g.O3R(w)*1E3:w.info.duration*1E3;this.policy.Yu&&(u<0||U<0)&&(this.logger&&(this.logger({missingSegInfo:w.info.vk(), startTimeMs:u,durationMs:U}),this.policy.qg||(u<0&&(u=w.info.startTime*1E3),U<0&&(U=w.info.duration*1E3))),this.policy.qg&&(u<0&&(u=w.info.startTime*1E3),U<0&&(U=w.info.duration*1E3)));return{formatId:M,Ku:P,startTimeMs:u,clipId:X,nR:U}}; s6.prototype.IN=function(w){this.timestampOffset=w};K6.prototype.seek=function(w,M){w!==this.targetTime&&(this.seekCount=0);this.targetTime=w;var P=this.videoTrack.L,u=this.audioTrack.L,X=this.audioTrack.sF,U=cNp(this,this.videoTrack,w,this.videoTrack.sF,M);M=cNp(this,this.audioTrack,this.policy.rB?w:U,X,M);w=Math.max(w,U,M);this.X=!0;this.Gk.isManifestless&&($hl(this,this.videoTrack,P),$hl(this,this.audioTrack,u));return w}; K6.prototype.isSeeking=function(){return this.X}; K6.prototype.zX=function(w){this.L=w}; var h5x=2/24;var Hrx=0;g.N=af.prototype;g.N.DS=function(){this.S=this.now();fcz(this.mT,this.S);this.pg.DS()}; g.N.K1=function(w,M){var P=this.policy.L?(0,g.G$)():0;wO(this,w,M);w-this.K<10&&this.L>0||this.yN(w,M);this.pg.K1(w,M);this.policy.L&&(w=(0,g.G$)()-P,this.M7+=w,this.Z3=Math.max(w,this.Z3))}; g.N.yN=function(w,M){var P=(w-this.K)/1E3,u=M-this.C;this.wr||(L7(this.mT,P,u),this.jD(P,u));this.K=w;this.C=M}; g.N.c9=function(){this.ys&&pLx(this);this.pg.c9()}; g.N.WR=function(w){this.ys||(this.ys=this.G-this.GE+w,this.TE=this.G,this.VE=this.j)}; g.N.ai=function(w,M){w=w===void 0?this.j:w;M=M===void 0?this.G:M;this.L>0||(this.V=w,this.L=M,this.B3=this.isActive=!0)}; g.N.Is=function(){return this.F9||2}; g.N.OC=function(){}; g.N.xX=function(){var w,M={rn:this.requestNumber,rt:(this.j-this.B).toFixed(),lb:this.G,stall:(1E3*this.X).toFixed(),ht:(this.S-this.B).toFixed(),elt:(this.V-this.B).toFixed(),elb:this.L,d:(w=this.Cu)==null?void 0:w.PZ()};this.url&&JkF(M,this.url);this.policy.L&&(M.mph=this.Z3.toFixed(),M.tph=this.M7.toFixed());M.ulb=this.xu;M.ult=this.Lu;return M}; g.N.now=function(){return(0,g.G$)()}; g.N.deactivate=function(){this.isActive&&(this.isActive=!1)};g.V(Px,af);g.N=Px.prototype;g.N.xX=function(){var w=af.prototype.xX.call(this);w.pb=this.eg;w.pt=(1E3*this.bW).toFixed();w.se=this.QE;return w}; g.N.Tg=function(){var w=this.pg;this.Yu||(this.Yu=w.Tg?w.Tg():1);return this.Yu}; g.N.Ba=function(){return this.gG?this.Tg()!==1:!1}; g.N.Vg=function(w,M,P){if(!this.hD){this.hD=!0;if(!this.wr){wO(this,w,M);this.yN(w,M);var u=this.Tg();this.QE=P;if(!this.wr)if(u===2){u=w-this.V0)||un(this,u,M),this.L>0&&d8(this.mT,M,this.X));w=(w-this.B)/ 1E3||.01;this.policy.V&&!(this.L>0)||Tu(this.mT,w,this.C,EnM(this),this.Ka)}this.deactivate()}}; g.N.sy=function(w,M,P){P&&(this.Yu=2);w<0&&this.F9&&(w=this.F9);M?this.t9+=w:this.OO+=w}; g.N.Is=function(){return this.OO||this.t9||af.prototype.Is.call(this)}; g.N.yN=function(w,M){var P=(w-this.K)/1E3,u=M-this.C,X=this.Tg();this.isActive?X===1&&((u>0||this.policy.G)&&(P>.2||u<1024)?(this.X+=P,u>0&&P>.2&&un(this,this.aG?P:.05,u),this.cj=!0):u>0&&(un(this,P,u),this.cj=!0)):M&&M>=this.policy.B&&this.ai(w,M);af.prototype.yN.call(this,w,M)}; g.N.lD=function(w){if(!this.wr){wO(this,w,this.G);var M=(w-this.B)/1E3;this.Tg()!==2&&this.L>0&&(this.X+=(w-this.K)/1E3,d8(this.mT,this.C,this.X));Tu(this.mT,M,this.C,EnM(this),this.Ka,!0);w=(w-this.K)/1E3;L7(this.mT,w,0);this.jD(w,0)}}; g.N.ai=function(w,M){w=w===void 0?this.j:w;M=M===void 0?this.G:M;if(!(this.L>0)&&(af.prototype.ai.call(this,w,M),this.Tg()===1)){M=(this.S-this.B)/1E3;var P=(w-this.S)/1E3;this.gG&&Xw(this,this.now());this.fg||this.wr||(this.F9&&(P=Math.max(0,P-this.F9)),w=this.mT,w.V.YQ(1,M),w.Cu.YQ(1,P))}}; g.N.M4=function(){this.gG&&Xw(this,this.now());return this.eL}; g.N.u1=function(){var w;if(w=this.C>this.t$)w=(w=this.C)?w>=this.policy.B:!1;return w}; g.N.C3=function(){return this.jL}; g.N.Rt=function(w){w=w===void 0?this.now():w;if(this.gG){Xw(this,w);if(this.Yu?this.Ba():this.mN!==this.UO){var M=this.UO;if(w0?P+w:P+Math.max(w,M)}; g.N.JC=function(){return this.now()-this.V}; g.N.A3=function(){return(this.C-this.L)*1E3/this.JC()||0}; g.N.XN=function(){return this.V};$x.prototype.feed=function(w){MR(this.B,w);this.Wl()}; $x.prototype.Wl=function(){if(this.X){if(!this.B.totalLength)return;var w=this.B.split(this.C-this.L),M=w.QY;w=w.Nz;if(!this.pg.WR(this.X,M,this.L,this.C))return;this.L+=M.totalLength;this.B=w;this.L===this.C&&(this.X=this.C=this.L=void 0)}for(;;){var P=0;w=g.G(on4(this.B,P));M=w.next().value;P=w.next().value;P=g.G(on4(this.B,P));w=P.next().value;P=P.next().value;if(M<0||w<0)break;if(!(P+w<=this.B.totalLength)){if(!(this.pg.WR&&P+1<=this.B.totalLength))break;P=this.B.split(P).Nz;this.pg.WR(M,P,0, w)&&(this.X=M,this.L=P.totalLength,this.C=w,this.B=new iV([]));break}w=this.B.split(P).Nz.split(w);P=w.Nz;this.pg.Ju(M,w.QY);this.B=P}}; $x.prototype.dispose=function(){this.B=new iV};g.N=UM.prototype;g.N.gF=function(){return 0}; g.N.e$=function(){return null}; g.N.S5=function(){return null}; g.N.cQ=function(){return this.state>=1}; g.N.isComplete=function(){return this.state>=3}; g.N.xH=function(){return this.state===5}; g.N.onStateChange=function(){}; g.N.g7=function(w){var M=this.state;this.state=w;this.onStateChange(M);this.callback&&this.callback(this,M)}; g.N.Ni=function(w){w&&this.state=this.xhr.HEADERS_RECEIVED}; g.N.getResponseHeader=function(w){try{return this.xhr.getResponseHeader(w)}catch(M){return""}}; g.N.U9=function(){return+this.getResponseHeader("content-length")}; g.N.CX=function(){return this.L}; g.N.VA=function(){return this.status>=200&&this.status<300&&!!this.L}; g.N.b6=function(){return this.B.totalLength>0}; g.N.Lo=function(){var w=this.B;this.B=new iV;return w}; g.N.Xp=function(){return this.B}; g.N.abort=function(){this.sO=!0;this.xhr.abort()}; g.N.HQ=function(){return!0}; g.N.gf=function(){return this.C}; g.N.Eq=function(){return""};g.N=qq5.prototype;g.N.getResponseHeader=function(w){return w==="content-type"?this.B.get("type"):""}; g.N.abort=function(){}; g.N.oA=function(){return!0}; g.N.U9=function(){return this.range.length}; g.N.CX=function(){return this.loaded}; g.N.VA=function(){return!!this.loaded}; g.N.b6=function(){return!!this.L.totalLength}; g.N.Lo=function(){var w=this.L;this.L=new iV;return w}; g.N.Xp=function(){return this.L}; g.N.HQ=function(){return!0}; g.N.gf=function(){return!!this.error}; g.N.Eq=function(){return this.error};g.N=z5M.prototype;g.N.start=function(w){var M={credentials:"include",cache:"no-store"};Object.assign(M,this.j);this.X&&(M.signal=this.X.signal);w=new Request(w,M);fetch(w).then(this.S,this.onError).then(void 0,PN)}; g.N.onDone=function(){this.sO()||this.pg.c9()}; g.N.getResponseHeader=function(w){return this.responseHeaders?this.responseHeaders.get(w):null}; g.N.oA=function(){return!!this.responseHeaders}; g.N.CX=function(){return this.L}; g.N.U9=function(){return+this.getResponseHeader("content-length")}; g.N.VA=function(){return this.status>=200&&this.status<300&&!!this.L}; g.N.b6=function(){return!!this.B.totalLength}; g.N.Lo=function(){var w=this.B;this.B=new iV;return w}; g.N.Xp=function(){return this.B}; g.N.sO=function(){return this.G}; g.N.abort=function(){this.C&&this.C.cancel().catch(function(){}); this.X&&this.X.abort();this.G=!0}; g.N.HQ=function(){return!0}; g.N.gf=function(){return this.K}; g.N.Eq=function(){return this.errorMessage};g.N=TiM.prototype;g.N.onDone=function(){if(!this.sO){this.status=this.xhr.status;try{this.response=this.xhr.response,this.L=this.response.byteLength}catch(w){}this.B=!0;this.pg.c9()}}; g.N.HG=function(){this.xhr.readyState===2&&this.pg.DS()}; g.N.j7=function(w){this.sO||(this.status=this.xhr.status,this.B||(this.L=w.loaded),this.pg.K1((0,g.G$)(),w.loaded))}; g.N.oA=function(){return this.xhr.readyState>=2}; g.N.getResponseHeader=function(w){try{return this.xhr.getResponseHeader(w)}catch(M){return g.Yq(Error("Could not read XHR header "+w)),""}}; g.N.U9=function(){return+this.getResponseHeader("content-length")}; g.N.CX=function(){return this.L}; g.N.VA=function(){return this.status>=200&&this.status<300&&this.B&&!!this.L}; g.N.b6=function(){return this.B&&!!this.response&&!!this.response.byteLength}; g.N.Lo=function(){var w=this.response;this.response=void 0;return new iV([new Uint8Array(w)])}; g.N.Xp=function(){return new iV([new Uint8Array(this.response)])}; g.N.abort=function(){this.sO=!0;this.xhr.abort()}; g.N.HQ=function(){return!1}; g.N.gf=function(){return!1}; g.N.Eq=function(){return""};g.V(h2,g.v);h2.prototype.n$=function(){if(!this.N6.length)return[];var w=this.N6;this.N6=[];this.C=g.FE(w).info;return w}; h2.prototype.Xn=function(){return this.N6}; h2.prototype.v3=function(){g.v.prototype.v3.call(this);this.B=null;this.N6.length=0;this.N0.length=0;this.C=null};g.V(Zp,g.v);g.N=Zp.prototype; g.N.RNk=function(){if(!this.sO()){var w=(0,g.G$)(),M=!1;if(this.policy.Hw){w=w-(this.timing.L>0?this.timing.V:this.timing.B)-this.timing.Is()*1E3;var P=kc(Sy(this),!1);w>=2E3*P?M=!0:w>=this.policy.mu*P&&(this.B=this.policy.Zv)}else if(this.timing.L>0){if(this.G){this.policy.TE&&(this.B=0);return}var u=this.timing.C3();this.timing.Rt();var X=this.timing.C3();X-u>=this.policy.nV*.8?(this.B++,this.logger.debug(function(){return"Mispredicted by "+(X-u).toFixed(0)}),M=this.B>=5):this.B=0}else{var U=w- this.timing.M4(); this.policy.Zv&&U>0&&(this.B+=1);M=kc(Sy(this),!1)*this.policy.Cj;(M=U>M*1E3)&&this.logger.debug(function(){return"Elbow late by "+U.toFixed(3)})}this.B>0&&this.pg.UM(); M?this.JZ():this.L.start()}}; g.N.JZ=function(){this.X=!0;this.pg.z_();this.lastError="net.timeout";p2(this)}; g.N.canRetry=function(w){var M=Sy(this);w=w?this.policy.Fx:this.policy.tF;return M.timedOut0&&(M=fF(M.B,0),w.ubyte=M,P===1&&M===0&&(w.b248180278=!0))}this.Oq&&(w.rc=this.policy.AQ?this.Oq:this.Oq.toString());this.policy.KT&&this.zM&&(w.tr=this.zM);w.itag=this.info.N0[0].B.info.itag;w.ml=""+ +this.info.N0[0].B.Wv();w.sq=""+this.info.N0[0].Ku;this.Rm&&(w.ifi=""+ +gi(this.info.EF.L));this.Oq!==410&&this.Oq!==500&&this.Oq!==503||(w.fmt_unav="true");var u;(P=this.errorMessage||((u=this.xhr)==null?void 0: u.Eq()))&&(w.msg=P);this.GF&&(w.smb="1");this.info.isDecorated()&&(w.sdai="1");return w}; g.N.zG=function(){return Niy(this.timing)}; g.N.Eq=function(){return this.xhr.Eq()||""}; g.N.u1=function(){return this.isComplete()||this.timing.u1()}; g.N.K1=function(){!this.sO()&&this.xhr&&(this.Oq=this.xhr.status,this.policy.U$&&this.CV&&this.X_(!1),this.QX()?this.Ni(2):!this.V$&&this.u1()&&(this.Ni(),this.V$=!0))}; g.N.DS=function(){if(!this.sO()&&this.xhr){if(!this.m4&&this.xhr.oA()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var w=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.m4=((0,g.G$)()-w)/1E3}this.xhr.oA()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.bU&&!iN2()&&g.Tg("yt-player-headers-readable",!0,2592E3);w=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var M=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),P;(P=this.yC)==null||P.stop();this.P8=w||this.P8; this.Uj=M||this.Uj}}; g.N.c9=function(){var w=this.xhr;if(!this.sO()&&w){this.Oq=w.status;w=this.ea(w);if(this.policy.KT){var M;(M=this.yC)==null||M.stop()}w===5?p2(this.d7):this.g7(w);this.d7.L.stop()}}; g.N.ea=function(w){var M=this;W1H(this);if(Fw(this.d7,this.xhr.status,this.eX?this.timing.B3||this.uV:this.xhr.VA(),!1,this.l1))return 5;var P="";EM(this.d7,this.xhr)&&(P=QTl(this.d7,this.xhr));if(P)return Qe(Sy(this.d7)),this.info.ME(this.Rm,P),3;P=w.CX();if(this.z1){this.X_(!0);W1H(this);if(Fw(this.d7,this.xhr.status,this.timing.B3||this.uV,!1,this.l1))return 5;if(!this.Cc){if(this.uV)return Qe(Sy(this.d7)),3;this.d7.lastError="net.closed";return 5}}else{if(Fw(this.d7,this.xhr.status,this.xhr.VA(), !1,this.l1))return 5;var u=this.info.C;if(u&&u!==P||w.gf())return this.d7.lastError="net.closed",5;this.X_(!0)}u=G8l(this)?w.getResponseHeader("X-Bandwidth-Est"):0;if(w=G8l(this)?w.getResponseHeader("X-Bandwidth-Est3"):0)this.B5=!0,this.policy.QQ&&(u=w);e5F(this.d7,P,u?Number(u):0,this.info.N0[0].type===5);this.logger.debug(function(){var X=M.timing;return"Succeeded, rtpd="+(X.bW*1E3+X.B-Date.now()).toFixed(0)}); return 4}; g.N.canRetry=function(){this.sO();var w=this.info.isDecorated();return this.d7.canRetry(w)}; g.N.onStateChange=function(){this.isComplete()&&(this.policy.bu?this.z_():this.timing.deactivate())}; g.N.JZ=function(){this.d7.JZ()}; g.N.UM=function(){this.callback&&this.callback(this,this.state)}; g.N.YX=function(){return this.d7.YX()}; g.N.dispose=function(){UM.prototype.dispose.call(this);this.d7.dispose();var w;(w=this.yC)==null||w.dispose();this.policy.bu||this.z_()}; g.N.z_=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.N.n$=function(){if(!this.Xn().length)return[];this.GK=!0;return this.CV.n$()}; g.N.QX=function(){if(this.state<1)return!1;if(this.CV&&this.CV.N6.length)return!0;var w;return((w=this.xhr)==null?0:w.b6())?!0:!1}; g.N.Xn=function(){this.X_(!1);return this.CV?this.CV.Xn():[]}; g.N.X_=function(w){try{if(w||this.xhr.oA()&&this.xhr.b6()&&!EM(this.d7,this.xhr)&&!this.Pm)this.CV||(this.CV=new h2(this.policy,this.info.N0)),this.xhr.b6()&&(this.z1?this.z1.feed(this.xhr.Lo()):cx(this.CV,this.xhr.Lo(),w&&!this.xhr.b6()))}catch(M){this.z1?$dM(this,M):g.Yq(M)}}; g.N.Ju=function(w,M){switch(w){case 21:w=M.split(1).Nz;UdF(this,w);break;case 22:this.Cc=!0;cx(this.CV,new iV([]),!0);break;case 43:if(w=Gz(new Fd(M),1))this.info.ME(this.Rm,w),this.uV=!0;break;case 45:M=hN(new Fd(M));w=M.GX;M=M.D5;w&&M&&(this.vt=w/M);break;case 44:this.GA=I$1(new Fd(M));var P,u,X;!this.timing.B3&&((P=this.GA)==null?void 0:P.action)===4&&((u=this.GA)==null?0:(X=u.Ah)==null?0:X.eX)&&(this.eX=this.GA.Ah.eX);break;case 53:this.policy.KT&&(w=sB2(new Fd(M)).W8)&&(this.yC||(this.W8=w,this.yC= new g.gV(this.No,w,this)),this.yC.start());break;case 60:this.GN=WL(new Fd(M));break;case 58:if(w=Ekz(new Fd(M)))this.Al=w,w.Al===3&&(this.l1=!0)}}; g.N.WR=function(w,M,P,u){P||this.timing.WR(u);if(w!==21)return!1;if(w=this.policy.U$)if(w*=this.info.N0[0].B.info.A9,M.totalLength+P!==u&&M.totalLength0)return!1;if(!this.xhr.oA())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.z1)var w=!this.info.C;else this.xhr.U9()?w=!1:(w=this.xhr.getResponseHeader("content-type"),w=w==="audio/mp4"||w==="video/mp4"||w==="video/webm");if(!w)return!1;if(isNaN(this.info.y8)){w=this.xhr.getResponseHeader("x-head-seqnum");var M=this.timing.policy.j?1:0;if(!w)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(w)>this.info.N0[0].Ku+M)return!1}return!0}; g.N.PK=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.N.e$=function(){this.xhr&&(this.P8=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.P8}; g.N.S5=function(){this.xhr&&(this.Uj=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Uj}; g.N.lX=function(){return this.d7.lX()}; g.N.No=function(){if(!this.sO()&&this.xhr){this.zM="heartbeat";var w=this.d7;w.B+=2;this.UM()}};g.V(q5,af);g.N=q5.prototype;g.N.yN=function(w,M){var P=(w-this.K)/1E3,u=M-this.C;this.L>0?u>0&&(this.mN&&(P>.2||u<1024?(this.X+=P,P>.2&&hU_(this,.05,u)):hU_(this,P,u)),this.UO&&(this.eL+=u,this.OO+=P)):M>this.policy.B&&this.ai(w,M);af.prototype.yN.call(this,w,M)}; g.N.Vg=function(w,M){wO(this,w,M);this.yN(w,M);this.mN&&(M=this.C*this.snapshot.stall+this.C/this.snapshot.byterate,this.L>0&&d8(this.mT,this.eL,this.X),w=(w-this.B)/1E3||.01,this.policy.V&&!(this.L>0)||Tu(this.mT,w,this.C,M,!1))}; g.N.lD=function(w){wO(this,w,this.G);var M=(w-this.K)/1E3;L7(this.mT,M,0);this.jD(M,0);!this.mN&&this.L>0||(M=this.C*this.snapshot.stall+this.C/this.snapshot.byterate,this.L>0&&(this.X+=(w-this.K)/1E3,d8(this.mT,this.eL,this.X)),Tu(this.mT,(w-this.B)/1E3||.01,this.C,M,!1,!0))}; g.N.RH=function(w){w=w.vr||2147483647;(w&2)!==2&&(this.UO=!1);(w&1)===1&&(this.mN=!0)}; g.N.cA=function(w){w=w.vr||2147483647;(w&2)===2&&(this.UO=!1);(w&1)===1&&(this.mN=!1)}; g.N.XN=function(){return this.V}; g.N.JC=function(){var w=this.UO?this.now()-this.K:0;return Math.max(this.OO*1E3+w,1)}; g.N.A3=function(){return this.eL*1E3/this.JC()}; g.N.ai=function(w,M){w=w===void 0?this.j:w;M=M===void 0?this.G:M;this.L>0||(af.prototype.ai.call(this,w,M),M=this.mT,w=(w-this.S)/1E3,M.V.YQ(1,(this.S-this.B)/1E3),M.Cu.YQ(1,w))}; g.N.OC=function(w){this.t9=w}; g.N.xX=function(){var w=af.prototype.xX.call(this);w.rbw=this.A3();w.rbe=+this.UO;w.gbe=+this.mN;w.ackt=(this.t9-this.B).toFixed();return w}; g.N.Rt=function(){}; g.N.C3=function(){return NaN}; g.N.M4=function(){return this.B+this.snapshot.delay*1E3};Yx.prototype.Ju=function(w,M){switch(w){case 20:w=new Fd(M);w={fp:Vs(w,1),videoId:Gz(w,2),itag:Vs(w,3),lmt:Vs(w,4),xtags:Gz(w,5),Dw:Vs(w,6),oO:mV(w,8),L0:Vs(w,9),lNW:Vs(w,10),startMs:Vs(w,11),durationMs:Vs(w,12),wx:Vs(w,14),timeRange:ys(w,15,agM),Y6:Vs(w,16),YR:Vs(w,17),clipId:Gz(w,1E3)};this.Wi(w);break;case 21:this.yx(M,!1);break;case 22:this.F1(M);break;case 31:w=YD(M,Lx_);this.Fw(w);break;case 52:w=YD(M,Kxu);this.Au(w);break;default:this.Se(w,M)}}; Yx.prototype.Wi=function(){}; Yx.prototype.Se=function(){};g.V(zf,Yx);g.N=zf.prototype; g.N.Se=function(w,M){switch(w){case 35:this.k$(M);break;case 44:this.IH(M);break;case 43:this.h$(M);break;case 53:this.eb(M);break;case 55:w=new Fd(M);ys(w,1,gkR);ys(w,2,jBH);break;case 56:this.BA();break;case 57:this.xS(M);break;case 42:this.LF(M);break;case 45:this.x$(M);break;case 59:this.LC(M);break;case 51:this.Ek(M);break;case 49:this.RH(M);break;case 50:this.cA(M);break;case 47:this.pC(M);break;case 58:this.eD(M);break;case 61:this.pg.qt.OC((0,g.G$)());break;case 66:this.U6(M);break;case 46:this.PA(M); break;case 67:this.onSnackbarMessage(M)}}; g.N.Ek=function(w){w=new Fd(w);w={uEO:qR(w,1,Uq),Txu:qR(w,2,Uq)};this.pg.Ek(w)}; g.N.LC=function(w){var M=new Fd(w);w=DE(M,1);var P=DE(M,2);M=DE(M,3);this.pg.LC(w,P,M)}; g.N.x$=function(w){w=hN(new Fd(w));this.pg.x$(w)}; g.N.pC=function(w){w=YD(w,QB4);this.pg.pC(w)}; g.N.LF=function(w){w=new Fd(w);w={videoId:Gz(w,1),formatId:ys(w,2,Uq),endTimeMs:Vs(w,3),Jck:Vs(w,4),mimeType:Gz(w,5),S_:ys(w,6,qBH),indexRange:ys(w,7,qBH),KU:ys(w,8,YB_)};this.pg.LF(w)}; g.N.xS=function(w){w=jBH(new Fd(w));this.pg.xS(w)}; g.N.BA=function(){this.pg.BA()}; g.N.k$=function(w){w=edy(new Fd(w));this.pg.k$(w)}; g.N.eb=function(w){w=sB2(new Fd(w));this.pg.eb(w)}; g.N.IH=function(w){w=I$1(new Fd(w));this.pg.IH(w)}; g.N.h$=function(w){w={redirectUrl:Gz(new Fd(w),1)};this.pg.h$(w)}; g.N.yx=function(w){var M=fF(w,0);if(w.totalLength!==1){w=w.split(1).Nz;var P=this.L[M]||null;P&&Qp(this.pg.SU,M,P,w)}}; g.N.F1=function(w){w=fF(w,0);var M=this.L[w]||null;M&&this.pg.F1(w,M)}; g.N.Au=function(w){this.pg.Au(w)}; g.N.Wi=function(w){var M=w.fp,P=w.oO,u=w.Dw,X=w.YR,U=w.Y6,f=w.L0,h=w.startMs,c=w.durationMs,Z=w.timeRange,S=w.wx,H=w.clipId,p=IW(w);w=IaV.has(Y5[""+w.itag]);this.L[M]=p;this.pg.sy(p,w,{fp:M,oO:!!P,Dw:u!=null?u:-1,L0:f!=null?f:-1,startMs:h!=null?h:-1,durationMs:c!=null?c:-1,wx:S,YR:X,Y6:U,clipId:H,timeRange:Z})}; g.N.RH=function(w){w={vr:Vs(new Fd(w),1)};this.pg.RH(w)}; g.N.cA=function(w){w={vr:Vs(new Fd(w),1)};this.pg.cA(w)}; g.N.Fw=function(w){this.pg.Fw(w)}; g.N.eD=function(w){w=Ekz(new Fd(w));this.pg.eD(w)}; g.N.U6=function(w){w={cq:ys(new Fd(w),1,nk4)};this.pg.U6(w)}; g.N.onSnackbarMessage=function(w){w=Vs(new Fd(w),1);this.pg.onSnackbarMessage(w)}; g.N.PA=function(w){w=new Fd(w);w={reloadPlaybackParams:ys(w,1,FxU),Qr:mV(w,2)};this.pg.PA(w)};g.V(Tf,g.v);g.N=Tf.prototype;g.N.aA=function(){return Array.from(this.G5.keys())}; g.N.Yp=function(w){w=this.G5.get(w);var M=w.N6;w.fb+=M.totalLength;w.N6=new iV;return M}; g.N.bF=function(w){return this.G5.get(w).bF}; g.N.OD=function(w){return this.G5.get(w).OD}; g.N.sy=function(w,M,P,u){this.G5.get(w)||pfF(this,w,M);M=this.G5.get(w);if(this.Gk){w=EcR(this,w,P);if(u)for(var X=g.G(w),U=X.next();!U.done;U=X.next()){U=U.value;var f=u;U.Lu=f;U.startTime+=f;U.X+=f;U.K+=f}F11(this,P.fp,M,w)}else P.oO?M.J6=P.wx:M.jE.push(P),M.O3.push(P)}; g.N.ZN=function(w){var M;return((M=this.G5.get(w))==null?void 0:M.N0)||[]}; g.N.Ni=function(){for(var w=g.G(this.G5.values()),M=w.next();!M.done;M=w.next())M=M.value,M.cN&&(M.j7&&M.j7(),M.cN=!1)}; g.N.F1=function(w,M){this.logger.debug(function(){return"[onMediaEnd] formatId: "+M}); var P=this.G5.get(M);dO?P&&!P.bF&&(P.OG.get(w)?P.OG.get(w).wC=!0:P.OG.set(w,{data:new iV,pQ:0,wC:!0}),P.OD=!0):P&&!P.OD&&(P.OD=!0)}; g.N.n$=function(w){if(dO){var M=this.G5.get(w);if(M)for(var P=g.G(M.OG),u=P.next();!u.done;u=P.next()){var X=g.G(u.value);u=X.next().value;X=X.next().value;var U=M.dN.get(u);if(t3(U[0])){if(!X.wC)continue;var f=X.data,h=0,c=[];U=g.G(U);for(var Z=U.next();!Z.done;Z=U.next()){Z=Z.value;var S=Z.C,H=PQ(f,h,S);h+=S;c.push(new EO(Z,H))}M.pE.push.apply(M.pE,g.L(c))}else if(X.data.totalLength>0||!U[0].range&&X.wC)f=void 0,h=U[0],c=X.pQ,U=X.data,h.range||(f=X.wC),f=new EO(qI1(h,h.L+c,U.totalLength,f),U),X.pQ+= f.info.C,M.pE.push(f);M.OG.get(u).data=new iV;X.wC&&M.OG.delete(u)}w=this.G5.get(w);if(!w)return[];M=w.pE;w.pE=[];P=g.G(M);for(u=P.next();!u.done;u=P.next())w.fb+=u.value.info.C;return M||[]}P=(M=this.G5.get(w))==null?void 0:M.CV;if(!P)return[];this.X_(w,P);return P.n$()}; g.N.QX=function(w){if(dO)return Bx(this,w);var M,P,u;return!!((P=(M=this.G5.get(w))==null?void 0:M.CV)==null?0:(u=P.Xn())==null?0:u.length)||Bx(this,w)}; g.N.X_=function(w,M){for(;Bx(this,w);){var P=this.Yp(w);var u=w;u=this.G5.get(u).bF&&!ey(this,u);cx(M,P,u&&Hwp(this,w))}}; g.N.v3=function(){g.v.prototype.v3.call(this);for(var w=g.G(this.G5.keys()),M=w.next();!M.done;M=w.next())ln(this,M.value);var P;if((P=this.PB)==null?0:P.bI)for(w=g.G(this.G5.values()),M=w.next();!M.done;M=w.next())M=M.value,M.OG.clear(),M.dN.clear(),M.pE.length=0,M.N0.length=0,M.O3.length=0,M.jE.length=0;this.G5.clear()}; var dO=!1;g.V(kx,g.v);g.N=kx.prototype;g.N.K1=function(){!this.sO()&&this.xhr&&(this.X_(!1),Oa(this.pg,this))}; g.N.DS=function(){}; g.N.c9=function(){if(!this.sO()&&this.xhr){var w=this.ea();w===5?p2(this.d7):this.g7(w);this.d7.L.stop();var M;(M=this.Na)==null||M.stop()}}; g.N.ea=function(){var w="";EM(this.d7,this.xhr)&&(w=QTl(this.d7,this.xhr));if(w)return this.info.EF.ME(this.Rm,w),3;this.X_(!0);if(Fw(this.d7,this.xhr.status,this.xhr.VA(),this.info.SS(),this.l1))return 5;if(this.qB)return 3;e5F(this.d7,this.xhr.CX(),0,this.SS());this.policy.VE&&p7M(this.pg);return 4}; g.N.X_=function(w){var M=this.xhr;if((w||!EM(this.d7,this.xhr))&&M.b6()){w=M.Lo();var P=w.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+P}); this.z1.feed(w)}}; g.N.Ju=function(w,M){this.xhr.HQ()&&w===21&&Gn1(this);this.Jh.Ju(w,M)}; g.N.WR=function(w,M,P,u){P||(this.qt.WR(u),this.policy.oW&&w===21&&Gn1(this));if(w!==21)return!1;this.qt.B3=!0;w=M.totalLength;P||(this.zO=fF(M,0),M=M.split(1).Nz);var X=this.policy.UN,U=this.Jh.L[this.zO],f=this.Gk.C.get(U);if(X&&f&&(X*=f.info.A9,w+P!==u&&w0){this.policy.Hw&&this.d7.L.stop();w=this.qt.JC();M=this.qt.A3();var P=y34(this,w);if(!(M>P.xR||P.T6>0&&this.info.jp()>P.T6)){this.CI=(0,g.G$)();var u;(u=this.Na)==null||u.stop();this.policy.VE&&(u=this.pg,w={NG:Math.round(M*w/1E3),Rp:w},u.policy.VE&&(u.Cu=w,u.Td++));this.JZ()}}}}; g.N.JZ=function(){this.d7.JZ()}; g.N.IH=function(w){this.pg.IH(w,this.WI())}; g.N.h$=function(w){this.qB=!0;this.info.EF.ME(this.Rm,w.redirectUrl)}; g.N.RH=function(w){this.qt instanceof q5&&this.qt.RH(w)}; g.N.cA=function(w){this.qt instanceof q5&&this.qt.cA(w)}; g.N.LF=function(w){var M=w.formatId,P=IW({itag:M.itag,lmt:M.lmt,xtags:M.xtags}),u,X,U=new gU(((u=w.S_)==null?void 0:u.first)||0,((X=w.S_)==null?void 0:X.rI)||0),f,h;u=new gU(((f=w.indexRange)==null?void 0:f.first)||0,((h=w.indexRange)==null?void 0:h.rI)||0);this.Gk.C.get(P)||(P=w.KU||{},P.mimeType=w.mimeType,P.itag=M.itag,P.lastModified=""+(M.lmt||0),P.xtags=M.xtags,w=this.Gk,M=nM(""),P=kY(P,null),dr(w,new YY(M,P,U,u)))}; g.N.x$=function(w){this.pg.x$(w,this.WI())}; g.N.onSnackbarMessage=function(w){if(this.policy.CA)this.pg.onSnackbarMessage(w)}; g.N.Fw=function(w){this.ql=w;this.Gh=(0,g.G$)();this.pg.Fw(w)}; g.N.LC=function(w,M,P){this.pg.LC(w,M,P)}; g.N.xS=function(w){w.scope===2&&(this.ek=w);this.pg.xS(w)}; g.N.BA=function(){this.Uo=!0;this.pg.BA()}; g.N.Ek=function(w){this.policy.QJ&&this.pg.Ek(w)}; g.N.pC=function(w){this.pg.pC(w,this.WI())}; g.N.eD=function(w){w.Al===3&&(this.l1=!0);this.pg.eD(w)}; g.N.U6=function(w){this.pg.U6(w)}; g.N.PA=function(w){this.pg.PA(w)}; g.N.canRetry=function(){this.sO();return this.d7.canRetry(!1)}; g.N.dispose=function(){if(!this.sO()){g.v.prototype.dispose.call(this);this.d7.dispose();var w;(w=this.Na)==null||w.dispose();this.g7(-1);this.z_()}}; g.N.g7=function(w){this.state=w;Oa(this.pg,this)}; g.N.SS=function(){return this.info.SS()}; g.N.Mp=function(){return this.Uo}; g.N.Sp=function(){return this.ek}; g.N.sy=function(w,M,P){P.clipId&&(this.clipId=P.clipId);this.policy.L&&!M&&(this.YH=P.L0);this.SU.sy(w,M,P,0);if(this.policy.zj&&this.ql&&this.qt instanceof Px){var u=this.ql.zm;this.qt.sy(P.durationMs/1E3,M,u>0&&P.L0+1>=u)}this.SU.G5.get(w).KA=!0}; g.N.F1=function(w,M){this.SU.F1(w,M)}; g.N.Au=function(w){this.requestIdentifier=w}; g.N.n$=function(w){return this.SU.n$(w)}; g.N.ZN=function(w){return this.SU.ZN(w)}; g.N.QX=function(w){return this.SU.QX(w)}; g.N.aA=function(){return this.SU.aA()}; g.N.Tg=function(){return 1}; g.N.WI=function(){return this.qt.requestNumber}; g.N.qZ=function(){return this.requestIdentifier}; g.N.xa=function(){return this.Rm.xa()}; g.N.MR=function(){this.z_()}; g.N.z_=function(){this.qt.deactivate();var w;(w=this.xhr)==null||w.abort()}; g.N.isComplete=function(){return this.state>=3}; g.N.mx=function(){return this.state===3}; g.N.xH=function(){return this.state===5}; g.N.Rf=function(){return this.state===4}; g.N.iS=function(){return this.isComplete()}; g.N.cQ=function(){return this.state>=1}; g.N.YX=function(){return this.policy.TE?this.d7.YX():0}; g.N.UM=function(){this.policy.TE&&Oa(this.pg,this)}; g.N.Wo=function(){return KP1(this.info)}; g.N.lX=function(){return this.d7.lX()}; g.N.n0=function(){var w=k8_(this.d7);Object.assign(w,I9M(this.info));w.req="sabr";w.rn=this.WI();var M;if((M=this.xhr)==null?0:M.status)w.rc=this.policy.AQ?this.xhr.status:this.xhr.status.toString();var P;(M=(P=this.xhr)==null?void 0:P.Eq())&&(w.msg=M);this.CI&&(P=y34(this,this.CI-this.qt.XN()),w.letm=P.sP,w.mrbps=P.xR,w.mram=P.T6);return w};Ddy.prototype.tick=function(w,M){this.ticks[w]=M?window.performance.timing.navigationStart+M:(0,g.G$)()};g.V(n2,g.wC);g.N=n2.prototype; g.N.qj=function(w,M,P,u){if(this.policy.m$&&this.policy.L){var X=w.FP||null;X?(sWp(this,w.Ku,IA(this,w.startTime,w.Ku),{FP:X,Ku:w.Ku,zv:!!M,VL:P},this.C),u&&this.C&&this.C.x0(w.Ku,w.startTime,this.L,(M==null?void 0:M.B)||[],(M==null?void 0:M.L)||[],(M==null?void 0:M.X)||[],P,(M==null?void 0:M.Z1)||0,(M==null?void 0:M.C)||void 0)):this.L===1&&sM(this,5,"noad")}else{var U=!1;this.policy.L&&(U=P?this.ys===w.Ku:this.mN===w.Ku);if(this.C&&u&&!U){u=[];U=[];var f=[],h=void 0,c=0;M&&(u=M.B,U=M.L,f=M.X,h= M.C,c=M.Z1,this.II("sdai",{sq:w.Ku,ssvicpns:u.join("."),ssvid:U.join(".")}));this.policy.L&&(P?this.ys=w.Ku:this.mN=w.Ku);this.C.x0(w.Ku,w.startTime,this.L,u,U,f,P,c,h)}this.policy.L?P&&(this.L===1&&sM(this,5,"noad"),w.Ku!==((X=this.B)==null?void 0:X.Ku)&&(RUH(this,w,M,P),isNaN(w.startTime)||ncx(this,w.Ku,IA(this,w.startTime,w.Ku),!!M,this.C))):P&&RUH(this,w,M)}}; g.N.UI=function(w,M,P){var u=this.videoTrack.B.index.T5()<=M;this.B={FP:w,Ku:M,zv:P};u&&vx(this,w,M)}; g.N.Kl=function(){this.C&&this.C.Kl()}; g.N.II=function(w,M,P){(w!=="sdai"||this.policy.Sz||(P===void 0?0:P))&&this.loader.II(w,M)}; g.N.VX=function(w,M){var P=this.videoTrack.B.index.C9(w);if(P>=0){var u;var X=((u=M.lB.zb(P,2))==null?void 0:u.Ll)||"";if(this.policy.L||X)return M.Zg(w,P),K2(this.loader,w,w,P),this.II("sdai",{cmskpad:1,t:w.toFixed(3),sq:P}),!0}this.II("sdai",{cmskpad:0,t:w.toFixed(3),sq:P});return!1};g.N=A3x.prototype;g.N.tX=function(w,M,P){w=w||this.B;if(this.L.has(w)){if(w=this.L.get(w))w.nw=M,w.ZJ.push(P)}else M={nw:M,ZJ:[],startTimeSecs:0,Xq:0},M.ZJ.push(P),this.L.set(w,M)}; g.N.f4=function(w,M){w!==void 0&&this.ob(w);if(this.B&&(w=this.L.get(this.B),w!=null&&w.nw)){var P={jY:w.ZJ,JB:V8(w.nw||"")||void 0,cuepointId:this.B};w.v0&&(P.kC=w.v0);M&&(P.ZW=QG(M.split(";")[0]),P.H0=M.split(";")[1]||"");return P}}; g.N.Zg=function(w,M){this.ob(w);var P=this.L.get(this.B);P?(this.II("ssskipad",{cid:this.B,sn:M,mt:w.toFixed(3)}),P.v0=M):this.II("ssskipadfail",{cid:this.B,sn:M,mt:w.toFixed(3)})}; g.N.AY=function(){for(var w=g.G(this.L.values()),M=w.next();!M.done;M=w.next())M.value.v0=NaN}; g.N.ob=function(w,M){M&&(this.C=M);if(this.B&&(M=this.L.get(this.B))&&M.startTimeSecs<=w&&w<=M.startTimeSecs+M.Xq)return;this.B="";M=g.G(this.L.entries());for(var P=M.next();!P.done;P=M.next()){var u=g.G(P.value);P=u.next().value;u=u.next().value;var X=void 0,U=void 0,f=void 0;if(((X=u)==null?void 0:X.startTimeSecs)<=w&&w<=((U=u)==null?void 0:U.startTimeSecs)+((f=u)==null?void 0:f.Xq)){this.B=P;break}}};g.V(rO,g.v);rO.prototype.yn=function(w,M,P){P=P===void 0?{}:P;this.policy.yq=xY(w,P,this.X,M===void 0?!1:M)};OM.prototype.HX=function(w){var M=this;if(this.policy.pA){var P=new Set(w);P.size===this.Cu.size&&[].concat(g.L(P)).every(function(u){return M.Cu.has(u)})||(this.loader.II("lwnmow",{itagDenylist:[].concat(g.L(w)).join(",")}),this.loader.b5(!!P.size),this.S=-1,this.Cu=P,aA(this,this.B),this.eL=!0)}}; OM.prototype.yn=function(w,M,P){P=P===void 0?{}:P;var u=this.policy.yq;this.G.yn(w,M===void 0?!1:M,P);if(u!==this.policy.yq){aA(this,this.B);wv(this);var X,U;u>this.policy.yq&&((X=this.C)==null?0:L3(X.info))&&((U=this.nextVideo)==null||!L3(U.info))&&(this.B3=!0)}};ud.prototype.IN=function(w){this.timestampOffset=w;this.flush()}; ud.prototype.flush=function(){if(this.B.pos>0){var w={a:this.track.hx(),u:this.B.PZ(),pd:Math.round(this.X),ad:Math.round(this.C)},M=this.L;if(M){var P=M.B.info;w.itag=P.itag;P.B&&(w.xtags=P.B);w.sq=M.Ku;w.st=M.startTime;w.sd=M.duration;this.track.policy.IT&&(w.si=M.vk());M.G&&(w.esl=M.L+M.C);M.GC()&&(w.eos=1)}isNaN(this.timestampOffset)||(w.to=this.timestampOffset);var u;if(M=(u=this.track.sF)==null?void 0:u.Z4({})){for(var X in M)this.K[X]!==M[X]&&(w["sb_"+X]=M[X]);this.K=M}this.track.II("sbu", w);this.B.reset();this.buffered=[];this.G=this.C=this.X=0;this.timestampOffset=this.L=void 0}};$E.prototype.dispose=function(){this.Lu=!0}; $E.prototype.sO=function(){return this.Lu}; g.V(Zs,Error);ps.prototype.skip=function(w){this.offset+=w}; ps.prototype.Mg=function(){return this.offset};g.N=Tr1.prototype;g.N.CL=function(){return this.L}; g.N.Gd=function(){return this.L.length?this.L[this.L.length-1]:null}; g.N.Oz=function(){this.L=[];mM(this);NX(this)}; g.N.Yp=function(w){this.OO=this.L.shift().info;w.info.equals(this.OO)}; g.N.ZN=function(){return g.EV(this.L,function(w){return w.info})}; g.N.hx=function(){return!!this.G.info.audio}; g.N.isDrm=function(){return!!this.G.info.Ks}; g.N.getDuration=function(){return this.G.index.u6()};g.V(bx,UM);g.N=bx.prototype;g.N.onStateChange=function(){this.sO()&&(L2(this.SU,this.formatId),this.B.dispose())}; g.N.n0=function(){var w=S01(this.SU,this.formatId),M;var P=((M=this.SU.G5.get(this.formatId))==null?void 0:M.bytesReceived)||0;var u;M=((u=this.SU.G5.get(this.formatId))==null?void 0:u.fb)||0;return{expected:w,received:P,bytesShifted:M,sliceLength:ey(this.SU,this.formatId),isAnyMediaEndReceived:this.SU.OD(this.formatId)}}; g.N.zG=function(){return 0}; g.N.u1=function(){return!0}; g.N.n$=function(){return this.SU.n$(this.formatId)}; g.N.Xn=function(){return[]}; g.N.QX=function(){return this.SU.QX(this.formatId)}; g.N.lX=function(){return this.lastError}; g.N.YX=function(){return 0};g.V(Ds,g.v);g.N=Ds.prototype;g.N.hx=function(){return!!this.B.info.audio}; g.N.Gd=function(){return this.X.Gd()}; g.N.Yp=function(w){this.X.Yp(w);var M;(M=this.V)!=null&&(M.G.add(w.info.Ku),M.B=wLu(M,M.Bk,M.Oj,w,M.B),M.C=w,M.K=(0,g.G$)());this.A9=Math.max(this.A9,w.info.B.info.A9||0)}; g.N.getDuration=function(){return this.B.index.u6()}; g.N.Oz=function(){AB(this);this.X.Oz()}; g.N.NZ=function(){return this.X}; g.N.isRequestPending=function(w){return this.C.length?w===this.C[this.C.length-1].info.N0[0].Ku:!1}; g.N.IN=function(w){var M;(M=this.V)==null||M.IN(w);var P;(P=this.S)==null||P.IN(w)}; g.N.II=function(w,M){this.loader.II(w,M)}; g.N.yc=function(){return this.loader.yc()}; g.N.dispose=function(){var w;(w=this.S)==null||w.flush();g.v.prototype.dispose.call(this)};g.V(rv,g.v);rv.prototype.C=function(){this.L++>15||(this.B=!this.B,new EI1(this.loader,this.policy,this.mT,this.EF,this.B),this.delay.start())}; g.N=EI1.prototype;g.N.DS=function(){}; g.N.K1=function(){}; g.N.c9=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.CX()===this.size)this.loader.II("rqs",this.getInfo());else{var w="net.connect";this.xhr.status>200?w="net.badstatus":this.xhr.oA()&&(w="net.closed");this.onError(w)}}; g.N.onError=function(w){var M=this;this.loader.handleError(w,this.getInfo());BH("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(P){M.loader.II("pathprobe",P)},function(P){M.loader.handleError(P.errorCode,P.details)})}; g.N.getInfo=function(){var w=this.timing.xX();w.shost=IT(this.location.VO);w.pb=this.size;return w};g.V(jQ,g.v); jQ.prototype.j=function(w,M){if(w.j){this.Gk.isLive?(w=this.Gk.yL&&this.Gk.X?w.B.BW(this.Gk.yL,!1):w.B.tP(Infinity),w.y8=this.y8):w=w.B.BW(0,!1);if(this.B3){var P=this.B3;w.y8===0&&(w.G=P.V)}else w.G=this.S;return w}P=w.L;if(!P.B.Wv())return P.B.sj()?(w=Rf(this.G,w.B.info.A9,M.B.info.A9,0),w=P.B.us(P,w)):w=P.B.iG(P),w;var u=P.K-this.loader.getCurrentTime(),X=!P.range||P.C===0&&P.L===0?0:P.range.length-(P.L+P.C),U=P.B;this.Pa(w,u)&&X===0&&(this.Gk.isManifestless?U=w.B:(U=P.startTime+PrH,P.C&&(U+=P.duration), jZ(w,U),P=w.L,U=P.B));U.sj()?(X=this.C,M=Rf(this.G,U.info.A9,M.B.info.A9,u,X.X.length>0&&X.V===0&&this.loader.cR),u=sz(w),w=P.B.us(P,M),(M=w.C)&&w.N0.length>1&&(u||w.EF.C||w.N0[0].B!==P.B?w=P.B.us(P,w.N0[0].C):(u=w.N0[w.N0.length-1],U=u.C/M,!u.G&&U<.4&&(w=P.B.us(P,M-u.C))))):(P.Ku<0&&(M=wr(P),M.pr=""+w.C.length,this.loader.isSeeking()&&(M.sk="1"),M.snss=P.j,this.loader.II("nosq",M)),w=U.iG(P));if(this.policy.ys)for(P=g.G(w.N0),M=P.next();!M.done;M=P.next())M.value.type=6;return w}; jQ.prototype.Pa=function(w,M){if(!sz(w)||!w.B.Wv())return!1;var P=this.C.eL||MYR(w)||M<=this.policy.R2||this.C.B3;this.logger.debug(function(){return"ready to adapt: "+P+", upgrade pending: "+MYR(w)+", health: "+M}); return P}; jQ.prototype.v3=function(){g.v.prototype.v3.call(this)}; var PrH=2/24;g.V(ur,g.v);ur.prototype.ZR=function(w,M,P){var u;var X=((u=this.L)==null?void 0:u.reason)==="m"?"m":this.L&&l9_(this,this.L)?this.L.reason:"a";this.loader.ZR(new J2(w,X,P));ir(this.loader,M,w,!0)}; ur.prototype.c5=function(w,M){for(var P=g.G(this.ys),u=P.next();!u.done;u=P.next())if(u.value.id===w)return this.G=this.Gk.B[w],Gf(this.PB)&&(this.B3=!0),w=new J2(this.G,M?"t":"m"),M&&(this.j=!0),w;this.C=[];return null}; ur.prototype.yn=function(w,M,P){P=P===void 0?{}:P;this.B.yn(w,M===void 0?!1:M,P)};$g.prototype.setData=function(w,M,P){var u=this;P=P===void 0?{}:P;if(M==null?0:M.M7)this.SV=ocu(this,M,P),w.zl=this.EF.zl();if(this.SS())return!0;this.data=w;this.B=vIp(w,function(X,U){var f;(f=u.pg)==null||f.H3(X,U)},M==null?void 0:M.C); if(!this.B)return!1;this.L=g.gt(this.B,okM);return!0}; $g.prototype.SS=function(){return this.requestType===1}; $g.prototype.jp=function(){var w;return((w=this.pg)==null?void 0:w.jp())||0}; $g.prototype.isDecorated=function(){var w;return!((w=this.data)==null||!w.u4)};gIM.prototype.lT=function(w,M){M=M===void 0?1:M;this.Mc+=M;this.L+=w;w/=M;for(var P=0;P0)u+="."+Ua[X].toFixed(0)+"_"+P.B[X].toFixed(0);else break;P=u}P&&(w[M]=P)}this.B=new Ju2;return w}; g.N.toString=function(){return""};g.N=O7U.prototype;g.N.isActive=function(){return!1}; g.N.S$=function(){}; g.N.Fr=function(){}; g.N.DT=function(){}; g.N.BN=function(w,M){M()}; g.N.Yg=function(){return{}}; g.N.toString=function(){return""};var WaE=new O7U,hmU=!!+go("html5_enable_profiler"),cdh=!!+go("html5_onesie_enable_profiler"),mf=hmU||cdh?new jj2:WaE,nU1=hmU?mf:WaE,hz=cdh?mf:WaE;ft.prototype.encrypt=function(w){this.B.exports.AES128CTRCipher_encrypt(this.cipher,w.byteOffset,w.byteLength);return w}; ft.prototype.sO=function(){return this.cipher===0}; ft.prototype.dispose=function(){this.B.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};uD2.prototype.emscripten_notify_memory_growth=function(){};g.N=Wt.prototype;g.N.malloc=function(w){return this.exports.malloc(w)}; g.N.free=function(w){this.exports.free(w)}; g.N.realloc=function(w,M){return this.exports.realloc(w,M)}; g.N.SY=function(w){if(w.buffer!==this.exports.memory.buffer){var M=this.malloc(w.byteLength);M=new Uint8Array(this.exports.memory.buffer,M,w.byteLength);M.set(w);return M}}; g.N.Yj=function(w){if(w.buffer===this.exports.memory.buffer){var M=w.slice();this.free(w.byteOffset);return M}}; var a94=new function(){this.C=this.X="WebAssembly"in window},Uex="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); hz.S$(Wt,{SY:function(w){return{profile:"copyj2w",Mc:w===void 0?0:Math.ceil(w.byteLength/16)}}, Yj:function(w){return{profile:"copyw2j",Mc:w===void 0?0:Math.ceil(w.byteLength/16)}}});ct.prototype.encrypt=function(w,M){return Do(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:M},this.key,w).catch(function(P){return Promise.reject(P.name+": "+P.message)}).then(function(P){return new Uint8Array(P)}))}; ct.prototype.sO=function(){return this.B}; ct.prototype.dispose=function(){this.B=!0}; Z_.prototype.encrypt=function(w,M){return Do(this.L(w,M))}; Z_.prototype.L=function(w,M){x61(this.C,M);return this.C.encrypt(w)}; Z_.prototype.sO=function(){return this.B}; Z_.prototype.dispose=function(){this.B=!0}; Sf.prototype.encrypt=function(w,M){return Do(this.L(w,M))}; Sf.prototype.L=function(w,M){M=this.C.SY(M);var P=this.B;P.B.exports.AES128CTRCipher_setCounter(P.cipher,M.byteOffset);this.C.free(M.byteOffset);M=this.C.SY(w);this.B.encrypt(M!=null?M:w);return M?this.C.Yj(M):w}; Sf.prototype.sO=function(){return this.B.sO()}; Sf.prototype.dispose=function(){this.B.dispose()}; hz.S$(ct,{encrypt:WOR("oan2")});hz.S$(Z_,{encrypt:WOR("oap")});hz.S$(Sf,{encrypt:WOR("oalw")});Ht.prototype.encrypt=function(w,M){var P=this,u=q1("");w.length<=this.f2&&this.B&&!this.G&&(u=lF(u,function(){return P.B?P.B.encrypt(w,M):q1("wasm unavailable")})); w.length<=this.Cd&&(this.B&&this.G&&(u=lF(u,function(){return P.B?P.B.encrypt(w,M):q1("wasm unavailable")})),u=lF(u,function(){return Zpz(P,w,M)})); return lF(lF(u,function(){return S_5(P,w,M)}),function(){return Zpz(P,w,M)})}; Ht.prototype.L=function(w,M){if(this.B)return this.B.L(w,M);this.C||(this.C=new Z_(this.key));return this.C.L(w,M)}; Ht.prototype.sO=function(){return this.K}; Ht.prototype.dispose=function(){this.K=!0;var w;(w=this.X)==null||dE(w,g.wR);g.wR(this.B);g.wR(this.C)};pt.prototype.encrypt=function(w){(0,g.G$)();return(new g.$W(this.B.B)).encrypt(w,this.iv)}; pt.prototype.decrypt=function(w,M){(0,g.G$)();return(new g.$W(this.B.B)).decrypt(w,M)}; pt.prototype.sO=function(){return this.X}; pt.prototype.dispose=function(){this.X=!0;g.wR(this.C)};g.V(Fc,g.v);Fc.prototype.C=function(w,M){if(M){M=M instanceof g.Kr?M:Ea(this,M);var P;((P=this.B.get(w))==null?void 0:IT(P.location))!==IT(M)&&this.B.set(w,new Gt_(M,w))}else this.B.delete(w)}; Fc.prototype.load=function(){var w=this,M,P,u,X,U,f,h,c,Z,S;return g.n(function(H){switch(H.L){case 1:M=w.B.get(0);g.DU(H,2);var p;if(p=M&&!w.L)p=IT(M.location),p=w.L===Hx(p);if(p){H.M0(4);break}return g.B(H,meu(w,w.L?2:0),5);case 5:if(P=H.B)w.C(0,P),gi(P)&&w.C(1,JN(P));case 4:g.zp(H,3);break;case 2:u=g.d4(H);g.Yq(u);if(!w.L){H.M0(3);break}w.L=!1;return g.B(H,w.load(),7);case 7:return H.return();case 3:if(!w.P3.experiments.nu("html5_onesie_probe_ec_hosts")){H.M0(0);break}g.DU(H,9);X=w;U=X.C;f=3;return g.B(H, meu(w,1),11);case 11:return U.call(X,f,H.B),h=w,c=h.C,Z=4,g.B(H,meu(w,2),12);case 12:c.call(h,Z,H.B);g.zp(H,0);break;case 9:S=g.d4(H),g.Yq(S),g.yx(H)}})}; Fc.prototype.j=function(){var w=this,M,P;return g.n(function(u){g.JK(w.V);M=g.Oh(w.P3.experiments,"html5_onesie_prewarm_max_lact_ms");if(NW()>=M)return u.return();(P=w.B.get(0))&&Vg_(w,P);g.yx(u)})}; var E3z={Ay3:0,FP3:1,Bvu:2,kxK:3,ZiW:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};yWR.prototype.decrypt=function(w){var M=this,P,u,X,U,f,h;return g.n(function(c){switch(c.L){case 1:if(M.B.length&&!M.B[0].isEncrypted)return c.return();M.L=!0;M.hQ.nT("omd_s");P=new Uint8Array(16);XI()?u=new g.Us(w):X=new g.$W(w);case 2:if(!M.B.length||!M.B[0].isEncrypted){c.M0(4);break}U=M.B.shift();if(!u){f=X.decrypt($D(U.buffer),P);c.M0(5);break}return g.B(c,u.decrypt($D(U.buffer),P),6);case 6:f=c.B;case 5:h=f;for(var Z=0;Z=4)){var M=gy(this),P=this.xhr;M.rc=P.status;w&&(M.ab=!0);if(P.Eq()){var u="onesie.net";M.msg=P.Eq()}else P.status>=400?u="onesie.net.badstatus":P.VA()?this.Y9||(u="onesie.response.noplayerresponse"):u=P.status===204?"onesie.net.nocontent":"onesie.net.connect";u?this.fail(new g.hy(u,M)):(this.nT("or_fs"),this.qt.Vg((0,g.G$)(),P.CX(),0),this.g7(4),this.Wx&&this.II("rqs",M));this.Wx&&this.II("ombre", "ok."+ +!u);this.HA=!1;Az(this);n3M(this.hQ);if(!this.zF){this.CC.stop();var X;(X=this.IM)==null||X.stop()}var U;if(w=(U=this.Sg)==null?void 0:o3p(U))for(U=0;U1E3){var w;(w=this.qt)==null||w.lD((0,g.G$)());w=gy(this);if(this.P3.FX()&&this.xhr instanceof f2){var M=this.xhr;w.xrs=M.xhr.readyState;w.xpb=M.B.totalLength;w.xdc=M.X}this.fail(new g.hy("net.timeout",w))}}else(0,g.G$)()-this.qt.B>1E4&&((M=this.qt)==null||M.lD((0,g.G$)()),this.Fo());this.isComplete()||this.KD.start()}}; g.N.Fo=function(){this.logger.info("Onesie request timed out");this.HA=!1;if(!Az(this)){var w=gy(this);w.timeout="1";this.fail(new g.hy("onesie.request",w))}}; g.N.fail=function(w){var M=this;w=Zv(w);this.CM?this.fu.vl(w):(this.bd.reject(w),this.CM=!0);n3M(this.hQ);this.zF||this.CC.stop();this.nT("or_fe");var P,u;(P=this.Sg)==null||(u=o3p(P))==null||u.forEach(function(X){M.II("pathprobe",X)}); this.g7(5);this.dispose()}; g.N.isComplete=function(){return this.state>=3}; g.N.Rf=function(){return this.state===4}; g.N.iS=function(w){var M,P;return this.isComplete()||!!((M=this.Rk)==null?0:(P=M.get(w))==null?0:P.B)}; g.N.mx=function(){return!1}; g.N.xH=function(){return this.state===5}; g.N.notifySubscribers=function(w){for(var M=0;M102400&&!this.L7&&(this.nT("or100k"),this.L7=!0);if(w.b6()){var M=w.Lo(),P=M.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+P}); this.Wx&&this.II("ombrss","len."+P);this.z1.feed(M)}if(this.Rk)for(var u=g.G(this.Rk.keys()),X=u.next();!X.done;X=u.next()){var U=X.value;w=void 0;(w=this.Rk.get(U))==null||w.Ni();this.notifySubscribers(U)}}catch(f){this.fail(f)}}; g.N.WI=function(){return this.qt.requestNumber}; g.N.qZ=function(w){return this.Ta.get(w)};g.V(ik5,g.v);g.N=ik5.prototype;g.N.gx=function(w,M){this.Lu=void 0;p7M(this);HkF(this,w,M)}; g.N.JS=function(w){if(this.B.length===0)return!1;var M=this.B[0];return M instanceof Jz?w===this.loader.getCurrentTime()*1E3:!(M instanceof kx&&b7_(M.info))&&Math.abs(M.Wo()-w)<50}; g.N.k$=function(w){this.L=w;this.Lu=(0,g.G$)()+(w.backoffTimeMs||0)}; g.N.IH=function(w,M){if(w.action===void 0){var P=this.fu.Wp();P!==void 0&&this.loader.mD(P)}else if(w.action!==0||!this.OO)if(w.action===0&&this.policy.fA&&(w.action=2),w.Ok==="sabr.malformed_config"&&this.policy.Z0>0&&this.t9++0&&(w.action=2),P={},P.reason=w.Ok,P.action=w.action,P.rn=M,w.action){case 1:this.policy.L&&this.V&&this.V.Kb(void 0, void 0,P);break;case 0:this.OO=!0;this.videoData.VH()&&this.policy.L&&this.V&&this.V.Kb(void 0,void 0,P,!1);this.loader.Jf(P);break;case 2:Oe_(w.Ok)!=="sabr.config"&&delete P.reason;this.loader.handleError(Oe_(w.Ok),P,1);break;case 3:this.policy.M7&&((w=this.Gk.V)!=null&&(w.V=!0),this.loader.handleError("sabr.hostfallback",P))}}; g.N.xS=function(w){w&&(this.loader.II("sabrctxt",{onsbrctxt:w.type,scp:w.scope,dflt:w.sendByDefault}),w.type&&w.sendByDefault&&this.videoData.iW.add(w.type),w.scope!==2&&(w.type&&this.videoData.sabrContextUpdates.set(w.type,w),this.fu.xS(w)))}; g.N.BA=function(){}; g.N.x$=function(w,M){if(w.GX!==void 0&&w.D5){var P=w.GX/w.D5;this.audioTrack.j=!1;this.videoTrack.j=!1;if(this.policy.Lu||this.policy.uX||this.policy.ET)this.loader.N8.B=!1;var u=this.loader.UT(P,1);this.policy.bW&&this.policy.L&&this.loader.ob(u,M);this.fu.getCurrentTime()!==P&&(M={Wk:"sabr_seek",f8:!0,IC:!0},w.seekSource&&(M.seekSource=w.seekSource),xN(this.loader,P+.1,M))}}; g.N.onSnackbarMessage=function(w){this.fu.publish("onSnackbarMessage",w)}; g.N.Fw=function(w){w.zm&&w.qm&&gr(this.Gk,w.zm,w.qm);this.policy.Fs&&(w.Su&&w.P2&&(this.Gk.rY=w.Su/w.P2),w.YN&&w.VM&&(this.Gk.bI=w.YN/w.VM));Kk(this.videoData)&&!this.videoData.B3&&w.qm&&this.loader.UT(w.qm,1E3);w.Lm!=null&&this.fu.i5(w.Lm);this.policy.R4&&w.JR&&(w=((0,g.G$)()-w.JR)/1E3,this.loader.l3.YQ(1,w))}; g.N.eD=function(w){this.loader.eD(w)}; g.N.KM=function(w){return this.videoData.iW.has(w)}; g.N.LC=function(w,M,P){this.policy.C&&this.loader.II("sabrctxtplc",{start:w?w.join("_"):"",stop:M?M.join("_"):"",discard:P?P.join("_"):""});if(w){w=g.G(w);for(var u=w.next();!u.done;u=w.next())this.videoData.iW.add(u.value)}if(M)for(M=g.G(M),w=M.next();!w.done;w=M.next())w=w.value,this.videoData.iW.has(w)&&this.videoData.iW.delete(w);if(P)for(P=g.G(P),M=P.next();!M.done;M=P.next())if(M=M.value,this.videoData.sabrContextUpdates.has(M)&&(this.videoData.sabrContextUpdates.delete(M),M===3&&(this.videoData.MI= "")),this.policy.S&&this.B.length)for(w=g.G(this.B),u=w.next();!u.done;u=w.next())if(u=u.value,!(u instanceof Jz)){var X=void 0;((X=u.ek)==null?void 0:X.type)===M&&(u.ek=void 0)}}; g.N.Ek=function(){}; g.N.RJ=function(w){this.j=w}; g.N.TX=function(w){this.K=w}; g.N.pC=function(w,M){JY(this.policy,w,4,M)}; g.N.U6=function(w){if(w==null?0:w.cq)if(w=w.cq.nt){w=g.G(w);for(var M=w.next();!M.done;M=w.next())if(M=M.value,M.formatId){var P=this.Gk.C.get(IW(M.formatId));P&&P.info&&(P.info.debugInfo=M.debugInfo)}}}; g.N.PA=function(w){this.fu.publish("reloadplayer",w)}; g.N.tp=function(){return this.fu.tp()||""}; g.N.jp=function(){var w=Q7(this.audioTrack,!0)*1E3,M=Q7(this.videoTrack,!0)*1E3;return Math.min(w,M)}; g.N.H3=function(w,M){this.loader.II(w,M)}; g.N.GY=function(w){l5u(this.loader,Mj5(this.jL,w))}; g.N.v3=function(){g.v.prototype.v3.call(this);this.L=void 0;HkF(this,!0,"i");this.B=[]};DIU.prototype.vA=function(){this.isSeeking=!0;this.B===1&&G3F(this.X);this.B===0&&this.X9.dB("transitiondetector");this.K=!1};evz.prototype.Wl=function(w,M){if(this.X)return npM(this,M);if(M=O6(w)){var P=M.B;P&&P.C&&P.B&&(w=w.C.length?w.C[0]:null)&&w.state>=2&&!w.xH()&&w.info.y8===0&&(this.X=w,this.j=P,this.L=M.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.L.startTime)}return NaN}; evz.prototype.clear=function(){this.L=this.j=this.X=null;this.B=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.V(KCU,g.v);KCU.prototype.v3=function(){Iw2(this);g.v.prototype.v3.call(this)};var AM2=/[?&]cpn=/;g.V(w0,g.v);w0.prototype.flush=function(){var w={};this.L&&(w.pe=this.L);this.B.length>0&&(w.pt=this.B.join("."));this.B=[];return w}; w0.prototype.stop=function(){var w=this,M,P,u;return g.n(function(X){if(X.L==1)return g.DU(X,2),g.B(X,(M=w.X)==null?void 0:M.stop(),4);if(X.L!=2)return(P=X.B)&&w.logTrace(P),g.zp(X,0);u=g.d4(X);w.L=xI5(u.message);g.yx(X)})}; w0.prototype.logTrace=function(w){this.encoder.reset();this.encoder.add(1);this.encoder.add(w.resources.length);for(var M=g.G(w.resources),P=M.next();!P.done;P=M.next()){P=P.value.replace("https://www.youtube.com/s/","");this.encoder.add(P.length);for(var u=0;u=0?w:g.$0(this.provider),this.mN?ZSc.has(this.zt)&&(this.B.size||(this.zt==="PL"?w>=this.L+30:w<=this.B3+30||w>=this.L+1200&&w<=this.B3+86400))&&(g.Pu(this,w,"vps",[this.zt]),this.L=w):["PL","B","S"].indexOf(this.zt)>-1&&(this.B.size||w>=this.L+30)&&(g.Pu(this,w,"vps",[this.zt]),this.L=w),this.B.size)){this.sequenceNumber===7E3&&g.Yq(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){UC(this,w);var M=this.provider.fu.De(); M=g.G(M);for(var P=M.next();!P.done;P=M.next())P=P.value,this.II(P.key,P.value);M=w;P=this.provider.fu.VF();var u=P.droppedVideoFrames||0,X=P.totalVideoFrames||0,U=u-this.Ea,f=X&&!this.m0;u>P.totalVideoFrames||U>5E3?hI2(this,"html5.badframedropcount","df."+u+";tf."+P.totalVideoFrames):(U>0||f)&&g.Pu(this,M,"df",[U]);this.Ea=u;this.m0=X;this.V>0&&(g.Pu(this,w,"glf",[this.V]),this.V=0);mf.isActive()&&(w=mf.Yg(),Object.keys(w).length>0&&this.II("profile",w));this.M7&&fK(this,"lwnmow");this.provider.P3.FX()&& this.provider.D("html5_record_now")&&this.II("now",{wt:(0,g.G$)()});w={};this.provider.videoData.L&&(w.fmt=this.provider.videoData.L.itag,(M=this.provider.videoData.X)&&M.itag!==w.fmt&&(w.afmt=M.itag));w.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(w.adcpn=this.adCpn);this.HH&&(w.addocid=this.HH);this.contentCpn&&(w.ccpn=this.contentCpn);this.ys&&(w.cdocid=this.ys);this.provider.videoData.cotn&&(w.cotn=this.provider.videoData.cotn);w.el=jx(this.provider.videoData);w.content_v=tM(this.provider.videoData); w.ns=this.provider.P3.B3;w.fexp=jNx(this.provider.P3.experiments).toString();w.cl=(777370830).toString();(M=this.provider.videoData.adFormat||this.adFormat)&&(w.adformat=M);(M=QN(this.provider.videoData))&&(w.live=M);this.provider.videoData.d5()&&(w.drm=1,this.provider.videoData.G&&(w.drm_system=iSx[this.provider.videoData.G.flavor]||0),this.provider.videoData.drmProduct&&(w.drm_product=this.provider.videoData.drmProduct));uL()&&this.provider.videoData.K&&(w.ctt=this.provider.videoData.K,w.cttype= this.provider.videoData.Z8,this.provider.videoData.mdxEnvironment&&(w.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(w.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.hG&&(w.dai_fallback="1")):this.provider.videoData.QH?w.dai="cs":this.provider.videoData.Ry&&(w.dai="disabled");w.seq=this.sequenceNumber++;if(this.provider.videoData.uN){if(M=this.provider.videoData.uN,w&&M)for(M.ns==="3pp"&&(w.ns="3pp"),this.rB.has(M.ns)&& fK(this,"hbps"),M.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=M.shbpslc),this.provider.P3.experiments.nu("html5_use_server_qoe_el_value")&&this.iW.delete("el"),P=g.G(Object.keys(M)),u=P.next();!u.done;u=P.next())u=u.value,this.iW.has(u)||(w[u]=M[u])}else w.event="streamingstats",w.docid=this.provider.videoData.videoId,w.ei=this.provider.videoData.eventId;this.isEmbargoed&&(w.embargoed="1");Object.assign(w,this.provider.P3.B);if(M=w.seq)M={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+M,serializedWatchEndpointLoggingContext:this.provider.videoData.AwL},this.serializedHouseBrandPlayerServiceLoggingContext&&(M.serializedHouseBrandPlayerServiceLoggingContext=Td(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(M.playerResponseCpn=this.provider.videoData.playerResponseCpn),Mv.length&&(M.decoderInfo=Mv),this.remoteControlMode&&(M.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(M.remoteConnectedDevices= this.remoteConnectedDevices),M=g.gt(M,DY4),M=g.Yw(M,4),this.B.set("qclc",[M]);w=g.p5("//"+this.provider.P3.RO+"/api/stats/qoe",w);P=M="";u=g.G(this.B.entries());for(X=u.next();!X.done;X=u.next())U=g.G(X.value),X=U.next().value,U=U.next().value,f=void 0,(f=U)!=null&&f.join&&(X="&"+X+"="+U.join(","),X.length>100?P+=X:M+=X);$lx(this,w+M,P.replace(/ /g,"%20"))}this.B.clear()}}; g.N.b5=function(w){this.M7=w}; g.N.ES=function(){if(this.provider.videoData.G){var w=this.provider.videoData.G;fK(this,"eme-"+(w.keySystemAccess?"final":w8(w)?"ms":PM(w)?"ytfp":Mc(w)?"safarifp":"nonfinal"))}}; g.N.Qc=u2(53);g.N.gk=function(w){this.isEmbargoed=w}; g.N.iX=u2(30);g.N.Nd=u2(36);g.N.onPlaybackRateChange=function(w){var M=g.$0(this.provider);w&&w!==this.sb&&(g.Pu(this,M,"rate",[w]),this.sb=w);this.mN||this.reportStats(M)}; g.N.J5=u2(24);g.N.getPlayerState=function(w){if(g.C(w,128))return"ER";if(g.C(w,2048))return"B";if(g.C(w,512))return"SU";if(g.C(w,16)||g.C(w,32))return"S";if(w.isOrWillBePlaying()&&g.C(w,64))return"B";var M=SV4[qV(w)];g.Z$(this.provider.P3)&&M==="B"&&this.provider.fu.getVisibilityState()===3&&(M="SU");M==="B"&&g.C(w,4)&&(M="PB");return M}; g.N.v3=function(){g.v.prototype.v3.call(this);g.HF(this.Lu);g.HF(this.GE)}; g.N.QK=function(w){this.isOffline=w;g.Pu(this,g.$0(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.N.II=function(w,M,P){var u=this.Ob.indexOf(w)!==-1;u||this.Ob.push(w);if(!P||!u){var X=typeof M!=="string"?WU(M):M;X=Z$H(X);if(!P&&!/^t[.]/.test(X)){var U=g.$0(this.provider)*1E3;X="t."+U.toFixed()+";"+X}Xo(this,"ctmp",w+":"+X);this.logger.debug(function(){return"ctmp "+w+" "+X}); UlF(this);return U}}; g.N.w0=function(w,M,P){this.G={FMO:Number(this.II("glrem",{nst:w.toFixed(),rem:M.toFixed(),ca:+P})),R1:w,BbK:M,isAd:P}}; g.N.D7=function(w,M,P){g.Pu(this,g.$0(this.provider),"ad_playback",[w,M,P])}; g.N.QC=function(w,M){var P=g.$0(this.provider)*1E3;Xo(this,"daism","t."+P.toFixed(0)+";smw."+(w*1E3).toFixed(0)+";smo."+(M*1E3).toFixed(0))}; g.N.resume=function(){var w=this;isNaN(this.Lu)?f52(this):this.Lu=g.ZK(function(){w.reportStats()},1E4)}; var o_={},SV4=(o_[5]="N",o_[-1]="N",o_[3]="B",o_[0]="EN",o_[2]="PA",o_[1]="PL",o_[-1E3]="ER",o_[1E3]="N",o_),ZSc=new Set(["PL","B","S"]),Mv=[];g.V(g.cu,g.v);g.N=g.cu.prototype;g.N.initialize=function(w,M,P){this.logger.debug(function(){return"Initialized, t="+w}); w=w||0;this.policy.B||(M=ugR(this.B),BIx(this.fu,new J2(M.video,M.reason)),this.fu.kS(new J2(M.audio,M.reason)));this.policy.B&&xE(this);this.Gk.isManifestless&&Yky(this.G);this.j&&QIy(this.j,this.videoTrack.B);M=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var u=!this.Gk.isManifestless;this.policy.eY&&(u=u||this.Gk.Gt);this.policy.Cu||(this.currentTime=u?w:M);this.policy.Lu&&this.seek(this.getCurrentTime(),{}).NS(function(){}); if(this.policy.B){var X;((X=this.S)==null?0:w74(X,this.tp()||""))&&ml_(this)&&VqR(this,this.videoTrack)&&VqR(this,this.audioTrack)&&(FC_(this.L,this.S),this.policy.G&&NIx(this))}else this.mN&&(otz(this,this.videoTrack),otz(this,this.audioTrack),Zwp(this.mN),delete this.mN);P?(y$x(this,!1),g.JK(this.gj)):(P=this.getCurrentTime()===0,Oz(this.G,this.videoTrack,this.videoTrack.B,P),Oz(this.G,this.audioTrack,this.audioTrack.B,P),this.policy.B&&uM5(this.L,!0),this.policy.Lu||this.seek(this.getCurrentTime(), {}).NS(function(){}),this.timing.tick("gv")); (this.Gk.yL||this.Gk.Xc||this.Gk.ys||this.Gk.M7||this.Gk.GE)&&this.fu.wq(this.Gk)}; g.N.resume=function(){if(this.isSuspended||this.cR){this.logger.debug("Resumed.");this.QU=this.cR=this.isSuspended=!1;try{this.Wl()}catch(w){g.qU(w)}}}; g.N.aW=function(){return!this.policy.SZ}; g.N.UV=function(w,M){w=w===void 0?!1:w;M=M===void 0?!1:M;this.logger.debug("detaching media source");zI_(this);this.fu.B_()&&(this.K=NaN);w?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.xu&&this.II("loader",{setsmb:1}),this.policy.ys=!0,this.Oz()):(y$x(this,!1),M||this.Oz())}; g.N.setAudioTrack=function(w,M,P){P=P===void 0?!1:P;if(!this.sO()){var u=!isNaN(M);P&&u&&(this.audioTrack.Lu=Date.now(),this.policy.Kx&&(this.Z3=!0));if(this.policy.B){var X=this.X.c5(w.id,u);this.logger.debug(function(){return"Logging new audio format: "+X.B.info.id}); this.fu.kS(X)}else{var U=iM2(this.B,w.id,u);this.logger.debug(function(){return"Logging new audio format: "+U.audio.info.id}); this.fu.kS(new J2(U.audio,U.reason))}u?(this.policy.dk&&(this.M7=Date.now()),P=this.audioTrack.B.index.C9(M),this.II("setAudio",{id:w.id,cmt:M,sq:P}),P>=0&&(w=this.policy.Mh?P+1:P,this.policy.B&&this.gx(!0,"mosaic"),kE(this.audioTrack,w,NaN,NaN),!this.policy.Lx&&this.Gk.isLive&&AL(this.Gk,w,!1))):this.fu.f0()}}; g.N.setPlaybackRate=function(w){w!==this.V.getPlaybackRate()&&this.V.setPlaybackRate(w)}; g.N.uZ=function(w){var M=this.L.j;this.L.RJ(w);this.II("scfidc",{curr:IW(M),"new":IW(w)});w&&IW(w)!==IW(M)&&(this.gx(!0,"caption change"),this.Wl())}; g.N.TA=function(w){this.L.TX(w)}; g.N.ZR=function(w){var M=w.B.info.hx();this.logger.debug(function(){return"New "+(M?"audio":"video")+" format from SABR: "+b3(w.B.info)}); M?this.fu.kS(w):BIx(this.fu,w)}; g.N.GY=function(w){xc(w.N0[w.N0.length-1])&&l5u(this,Mj5(this.B,w.N0[0].B))}; g.N.uE=function(){return this.fu.uE()}; g.N.rl=function(){return this.fu.rl()}; g.N.eD=function(w){this.fu.N().FX()&&this.II("sps",{status:w.Al||""});if(w.Al===1)this.fu.videoData.Cj=0;else if(w.Al===2||w.Al===3){var M=!1;if(w.Al===3){M=this.fu.lJ();var P;this.DX=(P=w.fCO)!=null?P:Infinity;this.fu.videoData.Cj=M+1;(M=Mu(this))&&this.fE(!0)}this.fu.gy(!0,M)}}; g.N.iO=function(){return this.fu.iO()}; g.N.IQ=function(){return this.fu.IQ()}; g.N.wy=function(w){this.fu.wy(w)}; g.N.jmK=function(){var w,M=(w=this.fu.Nt())==null?void 0:w.getCurrentTime();M?this.fu.II("rms",{cta:M}):g.JK(this.KT)}; g.N.Wl=function(){dl5(this);if(this.aI&&XF(this.aI)&&!this.aI.G1()&&(!this.policy.Cu||isFinite(this.getCurrentTime()))){var w=YE(this.videoTrack);w=this.policy.Zx&&w&&w.GC();this.Gk.isManifestless&&this.Gk.X&&sO(this.Gk)?(this.K=sO(this.Gk),this.aI.l4(this.K)):JL(this.Gk)&&!w?isNaN(this.K)?(this.K=this.getCurrentTime()+3600,this.aI.l4(this.K)):this.K<=this.getCurrentTime()+1800&&(this.K=Math.max(this.K+1800,this.getCurrentTime()+3600),this.aI.l4(this.K)):this.aI.isView||(w=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.K)||this.K!==w)&&w>0&&(this.aI.l4(w),this.K=w))}if(!this.sO())if(vC(this.Gk)&&this.Gk.xH()){var M=this.Gk;this.handleError("manifest.net.retryexhausted",M.jL?{rc:M.Oq}:{rc:M.Oq.toString()},1)}else if(this.policy.B)a:{try{cMU(this.L);this.Gk.isManifestless&&this.policy.G&&C6(this.N8);var P;((P=this.aI)==null?0:fO(P))&&this.IL();uM5(this.L)}catch(f){g.Yq(f);M=f;if(M.message.includes("changeType")){this.II("ctype",{exp:M.name,msg:M.message,s:M.stack});break a}this.handleError("fmt.unplayable", {exp:M.name,msg:M.message,s:M.stack},1)}wtp(this);g.JK(this.jL)}else if(!this.Gk.L||!XMH(this.videoTrack)&&!XMH(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.cj?P=!1:(this.Oz(),this.fu.seekTo(Infinity,{Wk:"checkLoaderTracksSync",UT:!0}),P=!0),!P){dl5(this);this.Gk.isManifestless&&($c2(this.videoTrack),$c2(this.audioTrack),C6(this.N8),(P=O6(this.videoTrack))&&P.B&&(P=P.B.C&&!this.policy.IE,this.II(P===this.policy.j.v_?"strm":"strmbug",{strm:P,sfmp4:this.policy.j.v_,dfs:this.policy.IE}, !0)));if(this.aI)this.IL();else if(this.policy.X){var u;P=!1;if(this.policy.Gp){var X;w=g.G([this.videoTrack,this.audioTrack]);for(X=w.next();!X.done;X=w.next()){var U=X.value;for(X=O6(U);X&&U.Gd()!==YE(U);X=O6(U))U.Yp(X);P=P||!!X}}else(M=O6(this.videoTrack))&&this.videoTrack.Yp(M),(u=O6(this.audioTrack))&&this.audioTrack.Yp(u);Ls(this.videoTrack)&&Ls(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(M||u||P)&&xg(this)}Glz(this);Oz(this.G,this.videoTrack,this.videoTrack.B, !1);Oz(this.G,this.audioTrack,this.audioTrack.B,!1);this.policy.Bg||eIz(this,this.videoTrack,this.audioTrack);mc4(this.G,this.videoTrack,this.audioTrack);mc4(this.G,this.audioTrack,this.videoTrack);wtp(this);this.j&&(M=this.j,M.X?(u=M.K+M.policy.pj,M.C||(u=Math.min(u,M.startTimeSecs+M.policy.f$)),M=Math.max(0,u*1E3-Date.now())):M=NaN,isNaN(M)||g.JK(this.Ob,M));g.JK(this.jL)}}; g.N.Jf=function(w){this.fu.Jf(w)}; g.N.IL=function(){var w=this;if(this.aI){var M=this.aI.B,P=this.aI.L;$ul(this,this.audioTrack);$ul(this,this.videoTrack);var u=klp(this);if(u){if(this.policy.Lk){if(!M.RW()){var X=O6(this.audioTrack);if(X){if(!he(this,this.audioTrack,M,X.info))return;vtF(this,this.audioTrack,M,X)}}if(!P.RW()&&(X=O6(this.videoTrack))){if(!he(this,this.videoTrack,P,X.info))return;vtF(this,this.videoTrack,P,X)}}this.Lu||(this.Lu=(0,g.G$)(),this.logger.debug(function(){return"Appends pause start "+w.Lu+" reason "+u}), this.policy.C&&this.II("apdps",{r:u}))}else if(this.Lu&&(QZl(this,this.Lu),this.Lu=0),RIR(this),X=!1,JYp(this,this.videoTrack,P)&&(X=!0,zUl(this.timing),L1p(this.timing)),this.aI&&!this.aI.bF()&&(JYp(this,this.audioTrack,M)&&(X=!0,TUu(this.timing),eUu(this.timing)),!this.sO()&&this.aI))!this.policy.SZ&&Ls(this.videoTrack)&&Ls(this.audioTrack)&&XF(this.aI)&&!this.aI.G1()&&(P=!1,P=YE(this.audioTrack).B,P=P===this.Gk.B[P.info.id])&&(this.logger.debug("Setting EOS"),vry(this.aI),Wt4(this.schedule),this.oz("e")), X&&!this.aI.isAsync()&&xg(this)}}; g.N.oz=function(w){if(this.policy.uN&&this.Gk.isManifestless){var M=this.videoTrack.B;if(M){var P=M.index.T5(),u=-1,X=-1;M.index instanceof cC&&(u=M.index.e$(),X=M.index.u6());this.fu.oz(w,P,u,X)}}}; g.N.HE=function(w){var M,P=w===((M=this.aI)==null?void 0:M.B)?this.audioTrack:this.videoTrack,u;if((u=O6(P))==null?0:u.isLocked){if(this.fu.N().FX()){var X;this.II("eosl",{ounlock:(X=O6(P))==null?void 0:X.info.vk()})}var U;OsH(this,w===((U=this.aI)==null?void 0:U.B))}var f;if(this.policy.Kx&&w===((f=this.aI)==null?void 0:f.B)&&this.bW){M=this.bW-this.getCurrentTime();var h;this.fu.II("asl",{l:M,xtag:(h=YE(this.audioTrack))==null?void 0:h.B.info.B});this.Z3=!1;this.bW=0}w.F_()&&w.cB().length===0&& (w.Iq(),this.aI&&!this.aI.F_()&&(this.fu.N().FX()&&this.fu.II("rms",{ld:"seek"}),this.aI.K=performance.now(),this.fu.dF(),this.fu.N().FX()&&g.JK(this.KT)));var c;(c=P.S)!=null&&XN(c,0);this.policy.QE?wy(this):this.Wl()}; g.N.kkO=function(w){if(this.aI){var M=YE(w===this.aI.B?this.audioTrack:this.videoTrack);if(w=w.J3())for(var P=0;P 5&&w.B3.shift();M=M.Ku;var h;if((h=this.fu.getVideoData())==null?0:h.enableServerStitchedDai)h=cu2(this.audioTrack,M),P=cu2(this.videoTrack,M),h!==0&&P!==0&&h!==P&&this.handleError("ssdai.avsync",{sq:M,a:h,v:P},0)}}; g.N.UI=function(w,M,P,u){w.info.video&&this.C.UI(M,P,u)}; g.N.HX=function(w){this.B.HX(w)}; g.N.lR=u2(12);g.N.qF=function(){if(g.C(this.fu.getPlayerState(),8)){var w,M,P=(M=(w=this.fu.Nt())==null?void 0:w.getCurrentTime())!=null?M:this.fu.getCurrentTime(),u;(u=this.cj)==null||Yp1(u,P)}var X;(X=this.hD)==null||g.JK(X)}; g.N.EX=function(){return this.videoTrack.j||this.audioTrack.j}; g.N.seek=function(w,M){if(this.sO())return TS();if(this.EX())return TS("seeking to head");if(this.policy.Lu&&!isFinite(w))return fRM(this.N8),g.zS(Infinity);dl5(this);xE(this);this.policy.B||Glz(this,w);this.aI&&this.aI.B&&this.aI.L&&!this.fu.getVideoData().QQ&&(this.aI.B.isLocked()||this.aI.L.isLocked())&&this.fu.f0({reattachOnLockedBuffer:1,vsb:""+this.aI.L.isLocked(),asb:""+this.aI.B.isLocked()});var P=this.getCurrentTime(),u=this.N8.seek(w,M);this.policy.Cu||(this.currentTime=u);A2(this.C,w,P, this.policy.l5&&!M.f8);xg(this);return g.zS(u)}; g.N.JS=function(w){return this.policy.B&&this.L.JS(w)}; g.N.KM=function(w){return this.L.KM(w)}; g.N.gx=function(w,M){this.L.gx(w,M)}; g.N.getCurrentTime=function(){if(this.policy.Cu){var w=this.OF()||0;return this.fu.getCurrentTime(!0)-w}return this.currentTime}; g.N.Qm=function(){return this.audioTrack.B.info}; g.N.Vn=function(){return this.videoTrack.B.info}; g.N.Qo=function(){return this.audioTrack.B.info.zk}; g.N.wJ=function(){return this.videoTrack.B.info.zk}; g.N.v3=function(){try{this.UV(),AB(this.audioTrack),AB(this.videoTrack),Ks(this.audioTrack),Ks(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.v.prototype.v3.call(this)}catch(w){g.qU(w)}}; g.N.handleError=function(w,M,P){P=P===void 0?0:P;var u=cU(P);w==="fmt.unplayable"&&this.Gk.isLive&&(this.policy.Lk=!1,Ib(this.Gk));M=new g.hy(w,M,P);g.UE(this);WU(M.details);this.fu.handleError(M);w!=="html5.invalidstate"&&M.errorCode!=="fmt.unplayable"&&w!=="fmt.unparseable"&&u&&this.dispose()}; g.N.Z4=function(){var w=YE(this.audioTrack),M=YE(this.videoTrack);w={lct:this.getCurrentTime().toFixed(3),lsk:this.N8.isSeeking(),lmf:this.B.B.isLocked(),lbw:eY(this.schedule).toFixed(3),lhd:ll(this.schedule).toFixed(3),lst:((this.schedule.j.Zu()||0)*1E9).toFixed(3),laa:w?w.vk():"",lva:M?M.vk():"",lar:this.audioTrack.L?this.audioTrack.L.vk():"",lvr:this.videoTrack.L?this.videoTrack.L.vk():"",laq:""+eQ(this.audioTrack),lvq:""+eQ(this.videoTrack)};this.aI&&!this.aI.bF()&&this.aI.B&&this.aI.L&&(w.lab= gf(this.aI.B.cB()),w.lvb=gf(this.aI.L.cB()));this.Lu&&(w.lapt=((0,g.G$)()-this.Lu).toFixed(0),w.lapr=klp(this));this.UO&&(w.lapmabht=((0,g.G$)()-this.UO).toFixed(0),w.lapmabh=ra(this,this.audioTrack).toFixed(0));this.OO&&(w.lapmvbht=((0,g.G$)()-this.OO).toFixed(0),w.lapmvbh=ra(this,this.videoTrack).toFixed(0));this.eL&&(w.lapsdai=((0,g.G$)()-this.eL).toFixed(0));return w}; g.N.Oz=function(){try{this.policy.B&&this.L.gx(!1,"pending"),this.audioTrack.Oz(),this.videoTrack.Oz()}catch(w){g.qU(w)}this.policy.X=""}; g.N.h3=function(){return kN(this.V)}; g.N.II=function(w,M,P){this.fu.II(w,M,P===void 0?!1:P)}; g.N.tp=function(){return this.fu.tp()}; g.N.UT=function(w,M){w/=M;isNaN(this.timestampOffset)&&Uul(this,w-Math.min(w,this.policy.XM));return(w-this.timestampOffset)*M}; g.N.OF=function(){return this.timestampOffset}; g.N.isSeeking=function(){return this.N8.isSeeking()}; g.N.Kl=function(){this.C.Kl()}; g.N.yn=function(w,M,P){M=M===void 0?!1:M;P=P===void 0?{}:P;this.policy.B?this.X.yn(w,M,P):this.B.yn(w,M,P)}; g.N.VX=function(w,M){if(this.B3&&this.C.VX(w,this.B3)){if(this.policy.bW&&this.policy.L){var P=this.videoTrack.B.index.C9(w),u;(u=this.Cu)==null||u.Zg(w,P)}Uul(this,this.timestampOffset-M);xg(this);this.policy.L&&(Ib(this.Gk),Ks(this.audioTrack),Ks(this.videoTrack),this.Oz());return!0}M=this.videoTrack.B.index.C9(w);this.handleError("ad.skipfailed",{dec:!!this.B3,t:w.toFixed(3),sq:M});return!1}; g.N.getManifest=function(){return this.Gk}; g.N.isOffline=function(){return!!this.fu.getVideoData().cotn}; g.N.jM=function(w,M){this.fu.jM(w,M)}; g.N.O6=function(w){if(this.policy.B)this.L.gx(!0,"utc"),this.Wl();else{var M=this.fu.getVideoData().e1;if(M){var P=this.G;P.OH=w;P.e1=M;Pt(this)}}}; g.N.mD=function(w){this.videoTrack.j=!1;this.audioTrack.j=!1;this.N8.B=!1;this.fu.mD(w)}; g.N.zX=function(w){this.N8.zX(w-this.OF())}; g.N.u3=function(){this.fu.u3()}; g.N.fE=function(w){w!==this.policy.Q8&&((this.policy.Q8=w)||this.Wl())}; g.N.X2=function(w,M){var P=this.audioTrack.sF,u=this.videoTrack.sF;P&&u&&(P.remove(w,M),u.remove(w,M))}; g.N.f0=function(w){this.fu.f0(w)}; g.N.b5=function(w){this.fu.b5(w)}; g.N.tX=function(w,M,P){var u;(u=this.Cu)==null||u.tX(w,M,P)}; g.N.ob=function(w,M){var P;(P=this.Cu)==null||P.ob(w,M)}; g.N.f4=function(w){var M;return(M=this.Cu)==null?void 0:M.f4(void 0,w)}; g.N.lJ=function(){return this.fu.lJ()}; g.N.bf=function(){Ib(this.Gk);this.Oz()};g.N=g.Zj.prototype;g.N.jg=function(w,M,P,u,X,U){return this.lB.jg(w,M,P,u,X,U)}; g.N.K3=function(w,M,P,u,X,U){return this.lB.K3(w,M,P,u,X,U)}; g.N.BK=function(w){return this.lB.BK(w)}; g.N.xK=function(w){this.lB.xK(w)}; g.N.Kb=function(w,M,P,u){return this.lB.Kb(w,M,P,u)}; g.N.Kl=function(){this.lB.Kl()}; g.N.Zg=function(w,M){this.lB.Zg(w,M)}; g.N.AY=function(){this.lB.AY()}; g.N.Kq=u2(56);g.N.ME=function(w,M,P){this.lB.ME(w,M,P)}; g.N.PO=u2(59);g.N.x0=function(w,M,P,u,X,U,f,h,c){this.lB.x0(w,M,P,u,X,U,f,h,c)}; g.N.HN=function(w){this.lB.HN(w)}; g.N.K8=function(w){return this.lB.K8(w)}; g.N.cM=function(w){return this.lB.cM(w)};g.V(SS,g.wC);g.V(Hu,SS);Hu.prototype.K=function(w,M){if(w&&M){var P=Number(mR(w,"cpi"))*1+1;isNaN(P)||P<=0||Pthis.C&&(this.C=P,g.SF(this.B)||(this.B={},this.X.stop(),this.L.stop())),this.B[M]=w,g.JK(this.L))}}; Hu.prototype.G=function(){for(var w=g.G(Object.keys(this.B)),M=w.next();!M.done;M=w.next()){var P=M.value;M=this.publish;for(var u=this.C,X=g.UQ(this.B[P]),U=[],f=g.G(X[6].split("&")),h=f.next();!h.done;h=f.next())h=h.value,h.indexOf("cpi=")===0?U.push("cpi="+u.toString()):h.indexOf("ek=")===0?U.push("ek="+g.TL(P)):U.push(h);X[6]="?"+U.join("&");P="skd://"+X.slice(2).join("");X=P.length*2;u=new Uint8Array(X+4);u[0]=X%256;u[1]=(X-u[0])/256;for(X=0;X0)for(var P=g.G(this.B),u=P.next();!u.done;u=P.next())if(M===u.value.info.cryptoPeriodIndex){M=!0;break a}M=!1}if(!M){M=(0,g.G$)();a:{P=w.cryptoPeriodIndex;if(!isNaN(P)){u=g.G(this.C.values());for(var X=u.next();!X.done;X=u.next())if(Math.abs(X.value.cryptoPeriodIndex-P)<=1){P=!0;break a}}P=!1}P?(P=w.B,P=Math.max(0,Math.random()*((isNaN(P)?120:P)-30))*1E3):P=0;this.publish("log_qoe",{wvagt:"delay."+P,cpi:w.cryptoPeriodIndex,reqlen:this.B.length}); P<=0?cz2(this,w):(this.B.push({time:M+P,info:w}),g.JK(this.L,P))}}; pK.prototype.v3=function(){this.B=[];SS.prototype.v3.call(this)};var GW={},FJ1=(GW.DRM_TRACK_TYPE_AUDIO="AUDIO",GW.DRM_TRACK_TYPE_SD="SD",GW.DRM_TRACK_TYPE_HD="HD",GW.DRM_TRACK_TYPE_UHD1="UHD1",GW);g.V(Htu,g.v);g.V(NyU,g.wC);g.N=NyU.prototype;g.N.Kp=function(w){var M=this;if(!(this.sO()||w.size<=0)){var P={};w.forEach(function(u,X){var U=il(M.L)?X:u;X=new Uint8Array(il(M.L)?u:X);il(M.L)&&QHl(X);u=g.Yw(X,4);QHl(X);X=g.Yw(X,4);M.B[u]?M.B[u].status=U:M.B[X]?M.B[X].status=U:M.B[u]={type:"",status:U};eh_(M,M.B[u].type,P)}); l_5(this,",");Fo(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.N.error=function(w,M,P,u){this.sO()||(this.publish("licenseerror",w,M,P,u),w==="drm.provision"&&(w=(Date.now()-this.K)/1E3,this.K=NaN,this.publish("ctmp","provf",{et:w.toFixed(3)})));cU(M)&&this.dispose()}; g.N.shouldRetry=function(w,M){return!w&&this.requestNumber===M.requestNumber}; g.N.v3=function(){this.B={};g.wC.prototype.v3.call(this)}; g.N.Z4=function(){var w={ctype:this.V.contentType||"",length:this.V.initData.length,requestedKeyIds:this.mN,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(w.keyStatuses=this.B);return w}; g.N.getInfo=function(){var w=this.X.join();if(EC(this)){var M=new Set,P;for(P in this.B)this.B[P].status!=="usable"&&M.add(this.B[P].type);w+="/UKS."+Array.from(M)}return w+="/"+this.cryptoPeriodIndex}; g.N.xa=function(){return this.url};g.V(V3,g.v);g.N=V3.prototype;g.N.Am=function(w){if(this.G){var M=w.messageType||"license-request";this.G(new Uint8Array(w.message),M)}}; g.N.Kp=function(){this.j&&this.j(this.B.keyStatuses)}; g.N.onClosed=function(){this.sO()||g.vF("xboxone")&&this.C&&this.C("closedShouldNotRetry")}; g.N.jP=function(w){this.G&&this.G(w.message,"license-request")}; g.N.wQ=function(w){if(this.C){if(this.L){var M=this.L.error.code;w=this.L.error.systemCode}else M=w.errorCode,w=w.systemCode;this.C("t.prefixedKeyError;c."+M+";sc."+w,M,w)}}; g.N.Qf=function(){this.K&&this.K()}; g.N.update=function(w){var M=this;if(this.B)return this.B.update(w).then(null,sD(function(P){RhR(M,"t.update",P)})); this.L?this.L.update(w):this.element.addKey?this.element.addKey(this.V.keySystem,w,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.V.keySystem,w,this.initData,this.sessionId);return TZ()}; g.N.v3=function(){this.B&&(this.S?this.B.close().catch(g.Yq):this.B.close());this.element=null;g.v.prototype.v3.call(this)};g.V(mF,g.v);g.N=mF.prototype;g.N.setServerCertificate=function(){return this.L.setServerCertificate?this.B.flavor==="widevine"&&this.B.f$?this.L.setServerCertificate(this.B.f$):ul(this.B)&&this.B.OO?this.L.setServerCertificate(this.B.OO):null:null}; g.N.createSession=function(w,M){var P=w.initData;if(this.B.keySystemAccess){M&&M("createsession");var u=this.L.createSession();PM(this.B)?P=sHl(P,this.B.OO):ul(this.B)&&(P=hhp(P)||new Uint8Array(0));M&&M("genreq");w=u.generateRequest(w.contentType,P);var X=new V3(null,null,null,u,null,this.j);w.then(function(){M&&M("genreqsuccess")},sD(function(f){RhR(X,"t.generateRequest",f)})); return X}if(w8(this.B))return bty(this,P);if(Mc(this.B))return KJ2(this,P);if((u=this.element)==null?0:u.generateKeyRequest)this.element.generateKeyRequest(this.B.keySystem,P);else{var U;(U=this.element)==null||U.webkitGenerateKeyRequest(this.B.keySystem,P)}return this.X=new V3(this.element,this.B,P,null,null,this.j)}; g.N.Jm=function(w){var M=I_1(this,w);M&&M.jP(w)}; g.N.qU=function(w){var M=I_1(this,w);M&&M.wQ(w)}; g.N.b0=function(w){var M=I_1(this,w);M&&M.Qf(w)}; g.N.getMetrics=function(){if(this.L&&this.L.getMetrics)try{var w=this.L.getMetrics()}catch(M){}return w}; g.N.v3=function(){this.C=this.L=null;var w;(w=this.X)==null||w.dispose();w=g.G(Object.values(this.K));for(var M=w.next();!M.done;M=w.next())M.value.dispose();this.K={};g.v.prototype.v3.call(this);delete this.element};g.N=or.prototype;g.N.get=function(w){w=this.findIndex(w);return w!==-1?this.values[w]:null}; g.N.remove=function(w){w=this.findIndex(w);w!==-1&&(this.keys.splice(w,1),this.values.splice(w,1))}; g.N.removeAll=function(){this.keys=[];this.values=[]}; g.N.set=function(w,M){var P=this.findIndex(w);P!==-1?this.values[P]=M:(this.keys.push(w),this.values.push(M))}; g.N.findIndex=function(w){return g.mU(this.keys,function(M){return g.jp(w,M)})};g.V(JzF,g.wC);g.N=JzF.prototype;g.N.qO0=function(w){this.rg({onecpt:1});w.initData&&Crp(this,new Uint8Array(w.initData),w.initDataType)}; g.N.Fks=function(w){this.rg({onndky:1});Crp(this,w.initData,w.contentType)}; g.N.sK=function(w){this.rg({onneedkeyinfo:1});this.P3.D("html5_eme_loader_sync")&&(this.j.get(w.initData)||this.j.set(w.initData,w));jHH(this,w)}; g.N.Wu=function(w){this.C.push(w);Gx(this)}; g.N.createSession=function(w){var M=xu_(this)?yLU(w):g.Yw(w.initData);this.L.get(M);this.ys=!0;w=new NyU(this.videoData,this.P3,w,this.drmSessionId);this.L.set(M,w);w.subscribe("ctmp",this.W2,this);w.subscribe("keystatuseschange",this.Kp,this);w.subscribe("licenseerror",this.A1,this);w.subscribe("newlicense",this.hd,this);w.subscribe("newsession",this.OY,this);w.subscribe("sessionready",this.Z2,this);w.subscribe("fairplay_next_need_key_info",this.x_,this);this.P3.D("html5_enable_vp9_fairplay")&&w.subscribe("qualitychange", this.nz,this);w.subscribe("sabrlicenseconstraint",this.lX$,this);Gk_(w,this.X)}; g.N.hd=function(w){this.sO()||(this.rg({onnelcswhb:1}),w&&!this.heartbeatParams&&(this.heartbeatParams=w,this.publish("heartbeatparams",w)))}; g.N.OY=function(){this.sO()||(this.rg({newlcssn:1}),this.C.shift(),this.ys=!1,Gx(this))}; g.N.Z2=function(){if(w8(this.B)&&(this.rg({onsnrdy:1}),this.UO--,this.UO===0)){var w=this.B3,M,P;(M=w.element)==null||(P=M.msSetMediaKeys)==null||P.call(M,w.C)}}; g.N.Kp=function(w){if(!this.sO()){!this.xu&&this.videoData.D("html5_log_drm_metrics_on_key_statuses")&&(Ot_(this),this.xu=!0);this.rg({onksch:1});var M=this.nz;if(!EC(w)&&g.Im&&w.L.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var P="large";else{P=[];var u=!0;if(EC(w))for(var X=g.G(Object.keys(w.B)),U=X.next();!U.done;U=X.next())U=U.value,w.B[U].status==="usable"&&P.push(w.B[U].type),w.B[U].status!=="unknown"&&(u=!1);if(!EC(w)||u)P=w.X;P=du2(P)}M.call(this,P);if(!EC(w))for(M= {},P=g.G(w.X),u=P.next();!u.done;u=P.next())eh_(w,u.value,M);this.videoData.authorizedFormats=w.authorizedFormats;this.publish("keystatuseschange",w)}}; g.N.W2=function(w,M){this.sO()||this.publish("ctmp",w,M)}; g.N.x_=function(w,M){this.sO()||this.publish("fairplay_next_need_key_info",w,M)}; g.N.A1=function(w,M,P,u){this.sO()||(this.videoData.D("html5_log_drm_metrics_on_error")&&Ot_(this),this.publish("licenseerror",w,M,P,u))}; g.N.Cl=function(){return this.V}; g.N.nz=function(w){var M=g.G8("auto",w,!1,"l");if(this.videoData.NE){if(this.V.equals(M))return}else if(cJ5(this.V,w))return;this.V=M;this.publish("qualitychange");this.rg({updtlq:w})}; g.N.lX$=function(w){this.videoData.sabrLicenseConstraint=w}; g.N.v3=function(){this.B.keySystemAccess&&this.element&&(this.mN?this.element.setMediaKeys(null).catch(g.Yq):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var w=g.G(this.L.values()),M=w.next();!M.done;M=w.next())M=M.value,M.unsubscribe("ctmp",this.W2,this),M.unsubscribe("keystatuseschange",this.Kp,this),M.unsubscribe("licenseerror",this.A1,this),M.unsubscribe("newlicense",this.hd,this),M.unsubscribe("newsession",this.OY,this),M.unsubscribe("sessionready",this.Z2,this),M.unsubscribe("fairplay_next_need_key_info", this.x_,this),this.P3.D("html5_enable_vp9_fairplay")&&M.unsubscribe("qualitychange",this.nz,this),M.dispose();this.L.clear();this.K.removeAll();this.j.removeAll();this.heartbeatParams=null;g.wC.prototype.v3.call(this)}; g.N.Z4=function(){for(var w={systemInfo:this.B.Z4(),sessions:[]},M=g.G(this.L.values()),P=M.next();!P.done;P=M.next())w.sessions.push(P.value.Z4());return w}; g.N.getInfo=function(){return this.L.size<=0?"no session":""+this.L.values().next().value.getInfo()+(this.G?"/KR":"")}; g.N.rg=function(w,M){M=M===void 0?!1:M;this.sO()||(WU(w),(this.P3.FX()||M)&&this.publish("ctmp","drmlog",w))};g.V(PBy,g.v);g.N=PBy.prototype;g.N.tC=function(){return!!this.UX}; g.N.V2=function(){return this.L}; g.N.handleError=function(w){var M=this;WFy(this,w);if((w.errorCode!=="html5.invalidstate"&&w.errorCode!=="fmt.unplayable"&&w.errorCode!=="fmt.unparseable"||!fjl(this,w.errorCode,w.details))&&!SCu(this,w)){if(this.r$.B3!=="yt"&&cep(this,w)&&this.videoData.c8&&(0,g.G$)()/1E3>this.videoData.c8&&this.r$.B3==="hm"){var P=Object.assign({e:w.errorCode},w.details);P.stalesigexp="1";P.expire=this.videoData.c8;P.init=this.videoData.L_/1E3;P.now=(0,g.G$)()/1E3;P.systelapsed=((0,g.G$)()-this.videoData.L_)/1E3; w=new g.hy(w.errorCode,P,2);this.fu.WB(w.errorCode,2,"SIGNATURE_EXPIRED",WU(w.details))}if(cU(w.severity)){var u;P=(u=this.fu.loader)==null?void 0:u.B.B;if(this.r$.D("html5_use_network_error_code_enums"))if(hi4(w)&&P&&P.isLocked())var X="FORMAT_UNAVAILABLE";else if(this.r$.K||w.errorCode!=="auth"||w.details.rc!==429)w.errorCode==="ump.spsrejectfailure"&&(X="HTML5_SPS_UMP_STATUS_REJECTED");else{X="TOO_MANY_REQUESTS";var U="6"}else hi4(w)&&P&&P.isLocked()?X="FORMAT_UNAVAILABLE":this.r$.K||w.errorCode!== "auth"||w.details.rc!=="429"?w.errorCode==="ump.spsrejectfailure"&&(X="HTML5_SPS_UMP_STATUS_REJECTED"):(X="TOO_MANY_REQUESTS",U="6");this.fu.WB(w.errorCode,w.severity,X,WU(w.details),U)}else this.fu.publish("nonfatalerror",w),u=/^pp/.test(this.videoData.clientPlaybackNonce),this.vl(w.errorCode,w.details),u&&w.errorCode==="manifest.net.connect"&&(w="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.G$)(),BH(w,"manifest",function(f){M.K=!0;M.II("pathprobe",f)}, function(f){M.vl(f.errorCode,f.details)}))}}; g.N.II=function(w,M){this.fu.D4.II(w,M)}; g.N.vl=function(w,M){M=WU(M);this.fu.D4.vl(w,M)};y3.prototype.GR=function(w){var M=N0y(this);if(!w)return{vF:P7,Wn:P7,US:P7,lY:P7,hJ:P7,Fg:P7,OS:M};var P=P7;if(DR(M)||this.D("html5_perf_cap_override_sticky"))P=ljl(this,w);return{vF:P,Wn:DvH(this,w),US:Gxz(this,w),lY:LF_(this,w.videoData),hJ:eiz(this,w.videoData,w),Fg:mvx(this,w),OS:M}}; y3.prototype.by=function(w){var M;g.Ju(this.P3)&&(M=window.screen&&window.screen.width?new g.rq(window.screen.width,window.screen.height):null);M||(M=this.P3.ET?this.P3.ET.clone():this.iZ.RQ());(JD||P$||w)&&M.scale(g.U_());return M}; y3.prototype.D=function(w){return this.P3.D(w)};g.V(qv,g.v);qv.prototype.onError=function(w){if(w!=="player.fatalexception"||this.provider.D("html5_exception_to_health"))w==="sabr.fallback"&&(this.encounteredSabrFallback=!0),w.match(HS$)?this.networkErrorCount++:this.nonNetworkErrorCount++}; qv.prototype.send=function(){if(!(this.C||this.B<0)){kxl(this);var w=g.$0(this.provider)-this.B,M="PLAYER_PLAYBACK_STATE_UNKNOWN",P=this.playerState.tV;this.playerState.isError()?M=P&&P.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.C(this.playerState,2)?M="PLAYER_PLAYBACK_STATE_ENDED":g.C(this.playerState,64)?M="PLAYER_PLAYBACK_STATE_UNSTARTED":g.C(this.playerState,16)||g.C(this.playerState,32)?M="PLAYER_PLAYBACK_STATE_SEEKING":g.C(this.playerState,1)&&g.C(this.playerState, 4)?M="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.C(this.playerState,1)?M="PLAYER_PLAYBACK_STATE_BUFFERING":g.C(this.playerState,4)?M="PLAYER_PLAYBACK_STATE_PAUSED":g.C(this.playerState,8)&&(M="PLAYER_PLAYBACK_STATE_PLAYING");P=MAA[QN(this.provider.videoData)];a:switch(this.provider.P3.playerCanaryState){case "canary":var u="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":u="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:u="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var X=Riu(this.provider), U=this.L<0?w:this.L-this.B;w=this.provider.P3.jU+36E5<(0,g.G$)();M={started:this.L>=0,stateAtSend:M,joinLatencySecs:U,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:u,playerCanaryStage:X,isAd:this.provider.videoData.isAd(),liveMode:P,hasDrm:!!g.ex(this.provider.videoData),isGapless:this.provider.videoData.j,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:mC(this.provider.videoData)};w||g.ub("html5PlayerHealthEvent",M);this.C=!0;this.dispose()}}; qv.prototype.v3=function(){this.C||this.send();window.removeEventListener("error",this.zN);window.removeEventListener("unhandledrejection",this.zN);g.v.prototype.v3.call(this)}; var HS$=/\bnet\b/;n02.prototype.update=function(){if(this.j){var w=this.Ap()||0,M=g.$0(this.provider);w>=this.provider.fu.getDuration()-.1&&(this.previouslyEnded=!0);if(w!==this.B||KF4(this,w,M)){var P;if(!(P=wM-this.Cp+2||KF4(this,w,M))){P=this.provider.fu.getVolume();var u=P!==this.S,X=this.provider.fu.isMuted()?1:0;X!==this.V?(this.V=X,P=!0):(!u||this.X>=0||(this.S=P,this.X=M),P=M-this.X,this.X>=0&&P>2?(this.X=-1,P=!0):P=!1)}P&&(zx(this),this.C=w);this.Cp=M;this.B=w}}}; n02.prototype.Ap=function(){var w=this.provider.fu.Ap();return this.provider.P3.D("html5_disable_live_dvr_shrink_for_cdm_vss")&&VN(this.provider.videoData)?w+this.provider.fu.OF():w};bK5.prototype.send=function(w){var M=this;if(!this.jL){var P=Aez(this),u=g.p5(this.uri,P);this.P3.D("vss_through_gel_double")&&g0l(u);this.ys&&!this.P3.D("html5_simplify_pings")?tSM(this,u):IjH(this,w).then(function(X){M.ys&&(X=X||{},X.method="POST",X.postParams={atr:M.attestationResponse});jIx(u,X,{token:M.Lu,s2:M.fg,mdxEnvironment:M.mdxEnvironment},M.P3,w,M.Cu,M.isFinal&&M.jU||M.xu||M.C&&M.TD)}); this.jL=!0}}; bK5.prototype.L=function(w){w===void 0&&(w=NaN);return Number(w.toFixed(3)).toString()}; var yB={},jrM=(yB.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,yB.LIVING_ROOM_APP_MODE_MAIN=1,yB.LIVING_ROOM_APP_MODE_KIDS=2,yB.LIVING_ROOM_APP_MODE_MUSIC=3,yB.LIVING_ROOM_APP_MODE_UNPLUGGED=4,yB.LIVING_ROOM_APP_MODE_GAMING=5,yB),DQ={},rey=(DQ.EMBEDDED_PLAYER_MODE_UNKNOWN=0,DQ.EMBEDDED_PLAYER_MODE_DEFAULT=1,DQ.EMBEDDED_PLAYER_MODE_PFP=2,DQ.EMBEDDED_PLAYER_MODE_PFL=3,DQ);g.V(d0,g.v);d0.prototype.j7=function(){this.B.update();X6R(this)&&(ajR(this),w6z(this))}; d0.prototype.v3=function(){g.v.prototype.v3.call(this);eS(this);v0U(this.B)}; d0.prototype.Z4=function(){return Aez(lB(this,"playback"))}; d0.prototype.r5=function(w){var M=lB(this,"engage");M.mN=w;return JeU(M,c9R(this.provider))};hVF.prototype.isEmpty=function(){return this.endTime===this.startTime};Q3.prototype.D=function(w){return this.P3.D(w)}; Q3.prototype.getCurrentTime=function(){return this.fu.getCurrentTime()}; Q3.prototype.Ap=function(){return this.fu.Ap()}; var ZJ_={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.V(g.k0,g.v);g.N=g.k0.prototype;g.N.j7=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Pb){var w;(w=this.C.get(this.Pb))==null||w.j7()}else this.B&&this.B.j7()}; g.N.gk=function(w){this.qoe&&this.qoe.gk(w)}; g.N.iX=u2(29);g.N.Nd=u2(35);g.N.QC=function(w,M){this.qoe&&this.qoe.QC(w,M)}; g.N.Bp=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Pb){var w;(w=this.C.get(this.Pb))!=null&&zx(w.B)}else this.B&&zx(this.B.B)}; g.N.vl=function(w,M){this.qoe&&hI2(this.qoe,w,M);if(this.L)this.L.onError(w)}; g.N.onPlaybackRateChange=function(w){if(this.qoe)this.qoe.onPlaybackRateChange(w);this.B&&zx(this.B.B)}; g.N.Qc=u2(52);g.N.II=function(w,M,P){this.qoe&&this.qoe.II(w,M,P)}; g.N.w0=function(w,M,P){this.qoe&&this.qoe.w0(w,M,P)}; g.N.i5=function(w){var M;(M=this.qoe)==null||M.i5(w)}; g.N.wq=function(w){var M;(M=this.qoe)==null||M.wq(w)}; g.N.oz=function(w,M,P,u){var X;(X=this.qoe)==null||X.oz(w,M,P,u)}; g.N.b5=function(w){this.qoe&&this.qoe.b5(w)}; g.N.D7=function(w,M,P){this.qoe&&this.qoe.D7(w,M,P)}; g.N.J5=u2(23);g.N.Dh=function(){if(this.qoe)return this.qoe.Dh()}; g.N.Z4=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Pb){var w,M;return(M=(w=this.C.get(this.Pb))==null?void 0:w.Z4())!=null?M:{}}return this.B?this.B.Z4():{}}; g.N.Tv=function(){var w;return(w=this.qoe)==null?void 0:w.Tv()}; g.N.VC=function(w,M){var P;(P=this.qoe)==null||P.VC(w,M)}; g.N.r5=function(w){return this.B?this.B.r5(w):function(){}}; g.N.getVideoData=function(){return this.provider.videoData}; g.N.resume=function(){this.qoe&&this.qoe.resume()};g.V(g.Rr,g.v);g.N=g.Rr.prototype;g.N.qf=function(w,M){this.sync();M&&this.B.array.length>=2E3&&this.jS("captions",1E4);M=this.B;if(w.length>1&&w.length>M.array.length)M.array=M.array.concat(w),M.array.sort(M.B);else{w=g.G(w);for(var P=w.next();!P.done;P=w.next())P=P.value,!M.array.length||M.B(P,M.array[M.array.length-1])>0?M.array.push(P):g.CC(M.array,P,M.B)}this.C=NaN;this.sync()}; g.N.jH=function(w){w.length>1E4&&g.Yq(new g.bK("Over 10k cueRanges removal occurs with a sample: ",w[0]));if(!this.sO()){var M=new Set(w);this.L=this.L.filter(function(P){return!M.has(P)}); ThH(this.B,M);this.sync()}}; g.N.uo=function(w,M){if(!this.sO()){var P=this.IQ().find(function(u){return u.id===M&&u.namespace===w}); P&&this.jH([P])}}; g.N.jS=function(w,M){var P=(isNaN(this.C)?Bhl(this):this.C)-M;M=this.IQ().filter(function(u){return u.namespace===w&&u.endthis.B,U=g.C(P,8)&&g.C(P,16),f=this.fu.K$().isBackground()||P.isSuspended();r0(this,this.Yu,U&&!f,X,"qoe.slowseek",function(){},"timeout"); var h=isFinite(this.B);h=U&&h&&Jw_(M,this.B);var c=!u||Math.abs(u-this.B)>10,Z=this.P3.D("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),S=u===0&&this.L&&[11,10].includes(this.L);r0(this,this.jL,h&&c&&!f&&(!Z||!S),X,"qoe.slowseek",function(){M.seekTo(w.B)},"set_cmt"); c=h&&rf(M.z0(),this.B);var H=this.fu.loader;h=!H||H.aW();var p=function(){M.seekTo(w.B+.001)}; r0(this,this.xu,c&&h&&!f,X,"qoe.slowseek",p,"jiggle_cmt");h=function(){return w.fu.Rd()}; r0(this,this.eL,c&&!f,X,"qoe.slowseek",h,"new_elem");S=DS(P);c=P.isBuffering();var F=M.z0(),E=Jy(F,u),y=E>=0&&F.end(E)>u+5,q=S&&c&&y;Z=this.fu.getVideoData();r0(this,this.UO,u<.002&&this.B<.002&&U&&g.Z$(this.P3)&&g.Ck(Z)&&!f,X,"qoe.slowseek",h,"slow_seek_shorts");r0(this,this.S,Z.Dv()&&U&&!f&&!Z.mN,X,"qoe.slowseek",h,"slow_seek_gapless_shorts");r0(this,this.B3,q&&!f,S&&!c,"qoe.longrebuffer",p,"jiggle_cmt");r0(this,this.Lu,q&&!f,S&&!c,"qoe.longrebuffer",h,"new_elem_nnr");if(H){var d=H.getCurrentTime(); U=M.dC();U=Q6y(U,d);U=!H.isSeeking()&&u===U;r0(this,this.fg,S&&c&&U&&!f,S&&!c&&!U,"qoe.longrebuffer",function(){M.seekTo(d)},"seek_to_loader")}U={}; p=Jy(F,Math.max(u-3.5,0));q=p>=0&&u>F.end(p)-1.1;var l=p>=0&&p+1=0&&q&&l<11;U.close2edge=q;U.gapsize=l;U.buflen=F.length;this.L&&(U.seekSour=this.L);r0(this,this.mN,S&&c&&!f,S&&!c,"qoe.longrebuffer",function(){},"timeout",U); U=P.isSuspended();U=this.fu.Nr()&&!U;r0(this,this.j,U,!U,"qoe.start15s",function(){w.fu.LV("ad")},"ads_preroll_timeout"); U=this.P3.experiments.nu("html5_use_playback_rate_in_skip_slow_ad")?this.fu.getPlaybackRate()*1E3:1E3;E=u-this.X5;r0(this,this.t9,g.Ck(Z)&&H,S&&!c,"qoe.longrebuffer",function(){w.fu.f0()},"reset_media_source"); r0(this,this.OO,g.Ck(Z)&&H,S&&!c,"qoe.longrebuffer",h,"reset_media_element");this.X===0&&(this.K=u);H=c&&this.B===0&&u>1&&u===this.K;r0(this,this.Cu,g.Ck(Z)&&H,S&&!c,"qoe.slowseek",function(){M.seekTo(0)},"reseek_after_time_jump"); f=P.isOrWillBePlaying()&&!f;y=this.fu.Ft()-u<6&&!y&&this.fu.Je();r0(this,this.V,Z.Dv()&&f&&c&&y,S&&!c,"qoe.longrebuffer",function(){w.fu.Rd(!1,!0)},"handoff_end_long_buffer_reload"); f=this.L===104||this.fu.D_;P=FM(Z)&&Z.isAd()&&!Z.mN&&f&&(c||g.C(P,8)&&g.C(P,16));r0(this,this.iW,P,X,"qoe.start15s",h,"gapless_ad_slow_start");this.X=u;this.G.start()}}; Je.prototype.vl=function(w,M,P){M=this.Z4(M);M.wn=P;M.wdup=this.C[w]?"1":"0";this.fu.vl(new g.hy(w,M));this.C[w]=!0}; Je.prototype.Z4=function(w){w=Object.assign(this.fu.Z4(!0),w.Z4());this.B&&(w.stt=this.B.toFixed(3));this.fu.getVideoData().isLivePlayback&&(w.ct=this.fu.getCurrentTime().toFixed(3),w.to=this.fu.OF().toFixed(3));delete w.uga;delete w.euri;delete w.referrer;delete w.fexp;delete w.vm;return w}; g0.prototype.reset=function(){this.B=this.L=this.C=this.startTimestamp=0;this.X=!1}; g0.prototype.test=function(w){if(!this.G||this.L)return!1;if(!w)return this.reset(),!1;w=(0,g.G$)();if(!this.startTimestamp)this.startTimestamp=w,this.C=0;else if(this.C>=this.G)return this.L=w,!0;this.C+=1;return!1}; g0.prototype.Z4=function(){var w={},M=(0,g.G$)();this.startTimestamp&&(w.wsd=(M-this.startTimestamp).toFixed());this.L&&(w.wtd=(M-this.L).toFixed());this.B&&(w.wssd=(M-this.B).toFixed());return w};g.V(a61,g.v);g.N=a61.prototype;g.N.setMediaElement=function(w){(this.mediaElement=w)?(this.mediaElement&&(this.G||this.C||!this.mediaElement.XY()||this.seekTo(.01,{Wk:"seektimeline_setupMediaElement"})),jS(this)):te(this)}; g.N.getCurrentTime=function(w){w=w===void 0?!1:w;if(CK(this.fu)){if(this.D("html5_use_centralized_player_time")&&!w&&!isNaN(this.K))return this.K;if(!isNaN(this.L))return this.L}else{if(this.D("html5_use_centralized_player_time")&&!w&&!isNaN(this.K)&&isFinite(this.K))return this.K;if(!isNaN(this.L)&&isFinite(this.L))return this.L}return this.mediaElement&&Hoy(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.C||0}; g.N.Wp=function(){return this.iW}; g.N.Ap=function(){return this.getCurrentTime()-this.OF()}; g.N.K6=function(){return this.B?this.B.K6():Infinity}; g.N.isAtLiveHead=function(w){if(!this.B)return!1;w===void 0&&(w=this.getCurrentTime());return bB(this.B,w)}; g.N.Ec=function(){return!!this.B&&this.B.Ec()}; g.N.seekTo=function(w,M){var P=M===void 0?{}:M;M=P.qs===void 0?!1:P.qs;var u=P.QW===void 0?0:P.QW;var X=P.D6===void 0?!1:P.D6;var U=P.xI===void 0?0:P.xI;var f=P.Wk===void 0?"":P.Wk;var h=P.seekSource===void 0?void 0:P.seekSource;var c=P.UT===void 0?!1:P.UT;var Z=P.f8===void 0?!1:P.f8;P=P.IC===void 0?!1:P.IC;c&&(w+=this.OF());mC(this.videoData)&&h===29&&(this.iW=void 0);c=w=this.Az())||!g.sp(this.videoData),y||(q={st:q,mst:this.Az()},this.B&&this.D("html5_high_res_seek_logging")&&(q.ht=this.B.K6(),q.adft=J9p(this.B)),this.fu.II("seeknotallowed",q)),q=y));if(!q)return this.X&&(this.X=null,cIx(this)),g.zS(this.getCurrentTime());q=.005;Z&&this.D("html5_sabr_seek_no_shift_tolerance")&&(q=0);if(Math.abs(w-this.L)<=q&&this.Cu)return this.G;f&&(q=w,(this.P3.FX()||this.D("html5_log_seek_reasons"))&& this.fu.II("seekreason",{reason:f,tgt:q}));h&&(this.B3.L=h);this.Cu&&te(this);this.G||(this.G=new cp);w&&!isFinite(w)&&PpU(this,!1);(f=P||c)||(f=w,f=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.B&&!(this.mediaElement&&this.mediaElement.Jt()>0&&SI(this.mediaElement)>0)||qI(this.videoData)&&this.ov()===this.Az(!1)?0:isFinite(f)||!qI(this.videoData)));f||(w=OC(this,w,X));w&&!isFinite(w)&&PpU(this,!1);this.D("html5_use_centralized_player_time")?this.K=w:this.L=this.C=w;this.t9= U;this.j=0;this.B&&(X=this.B,U=w,r9y(X,U,!1),js5(X,U));X=this.fu;U=w;f={qs:M,seekSource:h};X.kA.C=U;P=X.Of;P.mediaTime=U;P.B=!0;f.qs&&X.zA(f);f=U>X.videoData.endSeconds&&U>X.videoData.limitedPlaybackDurationInSeconds;X.ac&&f&&isFinite(U)&&gll(X);UM.start&&gll(this.fu);return this.G}; g.N.Az=function(w){if(!this.videoData.isLivePlayback)return this.fu.videoData.Az();var M;return Ur(this.videoData)&&((M=this.mediaElement)==null?0:M.isPaused())&&this.videoData.B?(w=this.getCurrentTime(),QQH(this.Ls(w)*1E3)+w):this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&mC(this.videoData)&&this.videoData.B?w?this.videoData.B.Lu||0:this.videoData.B.bI||0:qI(this.videoData)&&this.videoData.B3&&this.videoData.B?this.videoData.B.Az()+this.timestampOffset:this.videoData.C&&this.videoData.C.B? !w&&this.B?this.B.K6():this.fu.videoData.Az()+this.timestampOffset:this.mediaElement?bL()?QQH(this.mediaElement.kq().getTime()):SI(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.N.ov=function(){if(this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&mC(this.videoData)){var w;return((w=this.videoData.B)==null?void 0:w.rY)||0}w=this.videoData?this.videoData.ov()+this.timestampOffset:this.timestampOffset;if(Ur(this.videoData)&&this.videoData.B){var M,P=Number((M=this.videoData.progressBarStartPosition)==null?void 0:M.utcTimeMillis)/1E3;M=this.getCurrentTime();M=this.Ls(M)-M;if(!isNaN(P)&&!isNaN(M))return Math.max(w,P-M)}return w}; g.N.dF=function(){this.G||this.seekTo(this.C,{Wk:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.N.EX=function(){return this.Cu&&!isFinite(this.L)}; g.N.v3=function(){ufR(this,null);this.B3.dispose();g.v.prototype.v3.call(this)}; g.N.Z4=function(){var w={};this.loader&&Object.assign(w,this.loader.Z4());this.mediaElement&&Object.assign(w,this.mediaElement.Z4());return w}; g.N.Qx=function(w){this.timestampOffset=w}; g.N.getStreamTimeOffset=function(){return qI(this.videoData)?0:this.videoData.B?this.videoData.B.getStreamTimeOffset():0}; g.N.OF=function(){return this.timestampOffset}; g.N.Ls=function(w){return this.videoData&&this.videoData.B?this.videoData.B.Ls(w-this.timestampOffset):NaN}; g.N.MQ=function(){if(!this.mediaElement)return 0;if(Kk(this.videoData)){var w=this.mediaElement,M=w.z0();w=(ty(M)&&w.getDuration()?M.end(M.length-1):0)+this.timestampOffset-this.ov();M=this.Az()-this.ov();return Math.max(0,Math.min(1,w/M))}return this.mediaElement.MQ()}; g.N.kS=function(w){this.V&&(this.V.B=w)}; g.N.O6=function(w,M){this.fu.II("requestUtcSeek",{time:w});mC(this.videoData)&&(this.iW=w);var P;(P=this.loader)==null||P.O6(w);M&&(this.ys=M)}; g.N.mD=function(w){mC(this.videoData)&&(this.iW=void 0);if(this.ys)this.fu.II("utcSeekingFallback",{source:"streamTime",timeSeconds:this.ys}),this.fu.seekTo(this.ys,{Wk:"utcSeekingFallback_streamTime"}),this.ys=0;else{var M=this.getCurrentTime();isNaN(M)||(w=this.Ls(M)-w,M-=w,this.fu.II("utcSeekingFallback",{source:"estimate",timeSeconds:M}),this.fu.seekTo(M,{Wk:"utcSeekingFallback_estimate"}))}}; g.N.u3=function(){this.ys=0}; g.N.D=function(w){return this.P3&&this.P3.D(w)};g.V(ar,g.v);ar.prototype.start=function(){this.L.start()}; ar.prototype.stop=function(){this.L.stop()}; ar.prototype.clear=function(){for(var w=g.G(this.B.values()),M=w.next();!M.done;M=w.next())M.value.clear()}; ar.prototype.sample=function(){for(var w=g.G(this.C),M=w.next();!M.done;M=w.next()){var P=g.G(M.value);M=P.next().value;P=P.next().value;this.B.has(M)||this.B.set(M,new m0R(pOj.has(M)));this.B.get(M).update(P())}this.L.start()}; var pOj=new Set(["networkactivity"]);m0R.prototype.update=function(w){this.L?(this.buffer.add(w-this.B||0),this.B=w):this.buffer.add(w)}; m0R.prototype.clear=function(){this.buffer.clear();this.B=0};MF.prototype.cQ=function(){return this.started}; MF.prototype.start=function(){this.started=!0}; MF.prototype.reset=function(){this.finished=this.started=!1};var qWu=!1;g.V(g.$A,g.wC);g.N=g.$A.prototype;g.N.v3=function(){this.logger.debug("dispose");g.HF(this.df);MSR(this.fV);this.visibility.unsubscribe("visibilitystatechange",this.fV);EAF(this.D4);g.wR(this.D4);W6(this);g.kO.Pw(this.u5);this.Fc();this.nx=null;g.wR(this.videoData);g.wR(this.vI);g.wR(this.Br);g.wR(this.LD);g.iZ(this.CW9);this.ac=null;g.wC.prototype.v3.call(this)}; g.N.D7=function(w,M,P,u,X){if(this.P3.D("html5_log_ad_playback_docid")){var U=this.D4;if(U.qoe){U=U.qoe;var f=this.P3.B3||"yt";g.Pu(U,g.$0(U.provider),"ad_playback",[w,M,P,X,f])}}else this.D4.D7(w,M,P);this.D("html5_log_media_perf_info")&&this.II("adloudness",{ld:u.toFixed(3),cpn:w})}; g.N.Qo=function(){var w;return(w=this.loader)==null?void 0:w.Qo()}; g.N.wJ=function(){var w;return(w=this.loader)==null?void 0:w.wJ()}; g.N.Vn=function(){var w;return(w=this.loader)==null?void 0:w.Vn()}; g.N.Qm=function(){var w;return(w=this.loader)==null?void 0:w.Qm()}; g.N.d5=function(){return this.videoData.d5()}; g.N.B_=function(){return this.D("html5_not_reset_media_source")&&!this.d5()&&!this.videoData.isLivePlayback&&g.Ck(this.videoData)&&!this.P3.supportsGaplessShorts()}; g.N.Vj=function(){this.videoData.j&&(this.videoData.JX=this.videoData.JX||this.FF.uW().Qo(),this.videoData.mu=this.videoData.mu||this.FF.uW().wJ());if(G2U(this.videoData)||!XO(this.videoData)){var w=this.videoData.errorDetail;this.WB(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),w,w,this.videoData.GL||void 0)}this.D("html5_generate_content_po_token")&&this.cV();this.D("html5_enable_d6de4")&&this.i8()}; g.N.getVideoData=function(){return this.videoData}; g.N.N=function(){return this.P3}; g.N.GR=function(){return this.TC.GR(this.nx)}; g.N.K$=function(){return this.visibility}; g.N.Vh=function(){return this.mediaElement&&this.mediaElement.MG()?this.mediaElement.vj():null}; g.N.Nt=function(){return this.mediaElement}; g.N.AI=function(){if(this.D("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.N().K&&this.N().houseBrandUserStatus&&this.II("hbut",{status:this.N().houseBrandUserStatus},!0);if(this.videoData.Nf())return!0;this.WB("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.N.n1=function(w){(w=w===void 0?!1:w)||SeU(this.D4);this.JP=w;!this.AI()||this.s6.cQ()?g.Z$(this.P3)&&this.videoData.isLivePlayback&&this.s6.cQ()&&!this.s6.finished&&!this.JP&&this.F0():(this.s6.start(),w=this.D4,g.$0(w.provider),w.qoe&&f52(w.qoe),this.F0())}; g.N.F0=function(){if(this.videoData.isLoaded()){var w=this.vI;g.Oh(w.r$.experiments,"html5_player_min_build_cl")>0&&g.Oh(w.r$.experiments,"html5_player_min_build_cl")>777370830&&ZK5(w,"oldplayer");K_M(this)}else this.videoData.w5||this.videoData.Sd?this.JP&&g.Z$(this.P3)&&this.videoData.isLivePlayback||(this.videoData.w5?$$M(this.videoData):(w=this.D4,w.qoe&&(w=w.qoe,fK(w,"protected"),w.provider.videoData.G?w.ES():w.provider.videoData.subscribe("dataloaded",w.ES,w)),iY5(this.videoData))):!this.videoData.loading&& this.ZG&&nlU(this)}; g.N.Em=function(w){this.lB=w;this.loader&&(Mf_(this.loader,new g.Zj(w)),this.II("sdai",{sdsstm:1}))}; g.N.tX=function(w,M,P){var u;(u=this.loader)==null||u.tX(w,M,P)}; g.N.j2=u2(8);g.N.isFullscreen=function(){return this.visibility.isFullscreen()}; g.N.isBackground=function(){return this.visibility.isBackground()}; g.N.Pe=function(){var w=this;this.logger.debug("Updating for format change");Ue(this).then(function(){return XB(w)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.N.oL=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.n1();this.AI()&&!g.C(this.playerState,128)&&(this.xp.cQ()||(this.xp.start(),this.videoData.H_?this.Pk(mI(this.playerState,4)):this.Pk(mI(mI(this.playerState,8),1))),vl4(this))}; g.N.IK=function(){return this.s6.finished}; g.N.sendAbandonmentPing=function(){g.C(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.cT(!0),EAF(this.D4),g.wR(this.D4),g.kO.Pw(this.u5))}; g.N.lP=function(w,M){w=w===void 0?!0:w;(M===void 0||M)&&this.mediaElement&&this.mediaElement.pause();this.Pk(w?new g.EH(14):new g.EH)}; g.N.AX=function(){this.D4.Bp()}; g.N.WB=function(w,M,P,u,X,U){this.logger.debug(function(){return"set player error: ec="+w+", detail="+X}); var f,h;g.cT(TSE,P)?f=P:P?h=P:f="GENERIC_WITHOUT_LINK";u=(u||"")+(";a6s."+rg());if(w==="auth"||w==="drm.auth"||w==="heartbeat.stop")P&&(u+=";r."+P.replaceAll(" ","_")),U&&(u+="sr."+U.replaceAll(" ","_"));M={errorCode:w,errorDetail:X,errorMessage:h||g.g7[f]||"",vM:f,GL:U||"",OZ:u,nQ:M,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=w;fJ(this,"dataloaderror");this.Pk(VO(this.playerState,128,M));g.kO.Pw(this.u5);W6(this);this.Qu()}; g.N.LV=function(w){this.Dg=this.Dg.filter(function(M){return w!==M}); this.logger.debug(function(){return"set preroll ready for "+w}); this.xp.cQ()&&vl4(this)}; g.N.sB=function(){var w;(w=!!this.Dg.length)||(w=this.X9.B.array[0],w=!!w&&w.start<=-0x8000000000000);return w}; g.N.Ec=function(){return this.kA.Ec()}; g.N.isPlaying=function(){return this.playerState.isPlaying()}; g.N.qc=function(){return this.playerState.qc()&&this.videoData.H_}; g.N.getPlayerState=function(){return this.playerState}; g.N.uZ=function(w){var M;(M=this.loader)==null||M.uZ(w)}; g.N.TA=function(w){var M;(M=this.loader)==null||M.TA(w)}; g.N.getPlayerType=function(){return this.playerType}; g.N.getPreferredQuality=function(){if(this.nx){var w=this.nx;w=w.videoData.NQ.compose(w.videoData.tj);w=Yn(w)}else w="auto";return w}; g.N.zg=u2(16);g.N.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.N.setMediaElement=function(w){this.logger.debug("set media element");if(this.mediaElement&&w.vj()===this.mediaElement.vj()&&(w.isView()||this.mediaElement.isView())){if(w.isView()||!this.mediaElement.isView())this.Wm(),this.mediaElement=w,this.mediaElement.fu=this,PJR(this),this.kA.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Fc();if(!this.playerState.isError()){var M=oN(this.playerState,512);g.C(M,8)&&!g.C(M,2)&&(M=mI(M,1));w.isView()&&(M=oN(M,64));this.Pk(M)}this.mediaElement= w;this.mediaElement.fu=this;!g.Z$(this.P3)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);PJR(this);this.kA.setMediaElement(this.mediaElement);this.D("html5_prewarm_media_source")&&!this.vI.tC()&&bf2(this.mediaElement)}}; g.N.Fc=function(w,M,P){w=w===void 0?!1:w;M=M===void 0?!1:M;P=P===void 0?!1:P;this.logger.debug("remove media element");if(this.mediaElement){var u=this.getCurrentTime();u>0&&(this.kA.C=u);this.kA.setMediaElement(null);!w&&this.B_()?OoF(this):this.ws(P);this.loader&&(xg(this.loader),S8(this,M));this.JM.stop();if(this.mediaElement&&(!this.xp.cQ()&&!this.Nr()||this.playerState.isError()||g.C(this.playerState,2)||this.Pk(mI(this.playerState,512)),this.mediaElement)){this.Wm();if(w||!this.mediaElement.isView())this.rK.bP("mesv_s"), this.mediaElement.stopVideo(),H6(this);this.mediaElement=this.mediaElement.fu=null}}}; g.N.playVideo=function(w,M){w=w===void 0?!1:w;M=M===void 0?!1:M;var P=this,u,X,U,f,h,c,Z;return g.n(function(S){if(S.L==1){P.logger.debug("start play video");var H=window.google_image_requests;H&&H.length>10&&(window.google_image_requests=H.slice(-10));if(g.C(P.playerState,128))return S.return();if(P.vI.V2())return P.publish("signatureexpired"),S.return();P.mediaElement&&SeU(P.D4);P.oL();(g.C(P.playerState,64)||w)&&P.Pk(mI(P.playerState,8));return P.xp.finished&&P.mediaElement?P.nx||!P.yK?S.M0(2): g.B(S,P.yK,3):S.return()}if(S.L!=2&&g.C(P.playerState,128))return S.return();if(!P.videoData.C)return P.videoData.isLivePlayback&&!g.Ek(P.P3.G,!0)?(u="html5.unsupportedlive",X=2):(u=P.videoData.d5()?"fmt.unplayable":"fmt.noneavailable",X=1),g.Yq(Error("selectableFormats")),U=P.D("html5_log_fmt_unplaybable_trigger")?"trg.selectableFormats":"selectableFormats.1",P.WB(u,X,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",U),S.return();if(P.Ax()&&P.videoData.C.B)return P.logger.debug("rebuild playbackData for airplay"), S.return(Ue(P));if(CK(P))H=P.kA,Dw(H.videoData)&&!H.isAtLiveHead(H.getCurrentTime())&&H.Ec()&&H.fu.seekTo(Infinity,{Wk:"seektimeline_peggedToLive",seekSource:34});else if(Dw(P.videoData)&&(f=P.getCurrentTime()f;if(!h||!f){U&&h&&(u=Math.max(u,U));var c;U=VSl(M,(c=X.B)==null?void 0:c.videoInfos);c=M.fu.getPlaybackRate();c>1&&U&&(c=OOz(M.P3.G,X.B.videoInfos,c),w.B!==0&&c< w.B&&M.fu.setPlaybackRate(1));var Z,S;w=((Z=X.videoData.L)==null?void 0:(S=Z.video)==null?void 0:S.qualityOrdinal)||0;g.Tg("yt-player-quality",{quality:u,previousQuality:w},31104E3);M.P3.schedule.policy.X=cL()>=480;if(M.D("html5_exponential_memory_for_sticky")){Z=M.P3.a7;S=1;var H=H===void 0?!1:H;Heu(Z,"sticky-lifetime");Z.values["sticky-lifetime"]&&Z.i6["sticky-lifetime"]||(Z.values["sticky-lifetime"]=0,Z.i6["sticky-lifetime"]=0);H&&kI(Z,"sticky-lifetime")>.0625&&(S=Z.i6["sticky-lifetime"]*2);Z.values["sticky-lifetime"]+= 1*Math.pow(2,Z.B/S);Z.i6["sticky-lifetime"]=S;Z.X.start()}if(M.D("html5_perf_cap_override_sticky")){H=M.C;Z=M.D("html5_perserve_av1_perf_cap");Z=Z===void 0?!1:Z;if(Z===void 0?0:Z){S=SB();w=g.G(Object.keys(S));for(M=w.next();!M.done;M=w.next())M=M.value,M.indexOf("1")!==0&&delete S[M];g.Tg("yt-player-performance-cap",S,2592E3)}else g.lK("yt-player-performance-cap");a$_(Z);if(Z){Z=g.G(CM.keys());for(S=Z.next();!S.done;S=Z.next())S=S.value,S.startsWith("1")||CM.delete(S);Z=g.G(Dj.values());for(S=Z.next();!S.done;S= Z.next())S=S.value,S.startsWith("1")||Dj.delete(S);Z=g.G(H.keys());for(S=Z.next();!S.done;S=Z.next())S=S.value,S.startsWith("1")||H.delete(S)}else CM.clear(),Dj.clear(),H.clear()}}}this.loader&&(H=this.loader,P=P||"",H.policy.B?t2(H.X.B,P):t2(H.B.G,P));this.fk()}; g.N.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.B?Yn(this.videoData.NQ):qh[cL()]}; g.N.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.N.setUserAudio51Preference=function(w,M){this.getUserAudio51Preference()!==w&&(this.II("toggle51",{pref:w}),g.Tg("yt-player-audio51",w,M?31536E3:2592E3),this.Pe())}; g.N.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.N.setProximaLatencyPreference=function(w){var M=this.getProximaLatencyPreference();this.II("proxima",{pref:w});g.Tg("yt-player-proxima-pref",w,31536E3);M!==w&&(w=this.kA,w.Z3=!0,w.fu.seekTo(Infinity,{Wk:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.N.getProximaLatencyPreference=function(){var w;return(w=ZR())!=null?w:0}; g.N.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.N.cV=function(){this.videoData.videoId?this.FF.cV(this.videoData):this.II("povid",{})}; g.N.i8=function(){this.videoData.videoId?this.FF.i8(this.videoData):this.II("piavid",{})}; g.N.fk=function(){if(!this.sO()&&!g.C(this.playerState,128)&&this.videoData.C){if(this.videoData.C.B)uG(this);else{var w=Z6(this),M=this.videoData;a:{var P=this.videoData.DX;if(w.B){for(var u=g.G(P),X=u.next();!X.done;X=u.next()){X=X.value;var U=X.getInfo(),f=g.Go[U.video.quality];if((!w.C||U.video.quality!=="auto")&&f<=w.B){P=X;break a}}P=P[P.length-1]}else P=P[0]}M.Yu=P;JIp(this,w.reason,$Q2(this,this.videoData.Yu))}if(this.D("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.kA.S= !1,this.playVideo()}}; g.N.WH=function(w,M){if(this.sO()||g.C(this.playerState,128))return!1;var P,u=!((P=this.videoData.C)==null||!P.B);P=u&&M?this.getCurrentTime()-this.OF():NaN;if(this.P3.experiments.nu("html5_record_audio_format_intent")){var X=this.D4;if(X.qoe){X=X.qoe;var U=[w.Y2.id,isNaN(P)?"m":"t"];g.Pu(X,g.$0(X.provider),"afi",U)}}if(u)return M&&(u=$0p(this.kA),this.II("aswh",{id:w.id,xtags:w.xtags,bh:u.toFixed(3)})),this.loader.setAudioTrack(w,P,M),!0;if(j5_(this)){a:{M=this.mediaElement.audioTracks();for(u=0;u< M.length;++u)if(P=M[u],P.label===w.Y2.getName()){if(P.enabled){M=!1;break a}M=P.enabled=!0;break a}M=void 0}M&&this.II("hlsaudio",{id:w.id})}else{a:if(M=this.videoData,M.X&&!k5(M.X)||w===M.F$||!M.DX||M.DX.length<=0)M=!1;else{u=g.G(M.DX);for(P=u.next();!P.done;P=u.next()){P=P.value;if(!(P instanceof yo)){M=!1;break a}X=w.Y2.getId();P.L&&(ney(P.L,X),P.EF=null)}M.F$=w;M=!0}M&&XB(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.II("hlsaudio",{id:w.id}))}return!0}; g.N.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.N.getAudioTrack=function(){if(j5_(this)){var w=tO5(this);if(w)return w}return this.videoData.getAudioTrack()}; g.N.OV=function(){return this.videoData.X}; g.N.WQ=function(){if(this.videoData.D("html5_trigger_loader_when_idle_network")&&!this.videoData.dK()&&mC(this.videoData)){var w;(w=this.loader)!=null&&w.Wl()}}; g.N.uD=function(){if(FM(this.videoData)&&this.videoData.D("html5_gapless_append_early")){var w;(w=this.loader)!=null&&w.Wl()}}; g.N.onPlayerRequestSent=function(w){this.FF.onPlayerRequestSent(w)}; g.N.UV=function(w){w=w===void 0?!1:w;if(this.loader){var M=this.loader,P=M.UV;var u=this.videoData;u=u.D("html5_ssdai_use_post_for_media")&&u.enableServerStitchedDai?!1:qI(u)&&u.q6&&!u.isAd();P.call(M,u,w)}}; g.N.ws=function(w){w=w===void 0?!1:w;this.aI&&(this.logger.debug("remove media source"),KL5(this.aI),this.UV(w),this.aI.dispose(),this.aI=null)}; g.N.XG=function(){return this.aI}; g.N.aL=function(w,M,P,u){function X(f){try{Mi_(U,f,M,P)}catch(h){g.Yq(h),f={msi:"1",ename:h&&typeof h==="object"&&"name"in h?String(h.name):void 0},U.D("html5_log_fmt_unplaybable_trigger")&&(f.trg="setmediasrc"),U.handleError(new g.hy("fmt.unplayable",f,1))}} var U=this;M=M===void 0?!1:M;P=P===void 0?!1:P;wcF(this,u===void 0?!1:u);this.aI=w;this.B_()&&Wp(this.aI)==="open"?X(this.aI):R3p(this.aI,X)}; g.N.sK=function(w){this.logger.debug("onNeedKeyInfo");this.fZ.set(w.initData,w);this.Si&&(this.Si.sK(w),this.D("html5_eme_loader_sync")||this.fZ.remove(w.initData))}; g.N.wy=function(w){this.videoData.oW=g.G8("auto",w,!1,"u");uG(this)}; g.N.kS=function(w){var M=w.reason,P=w.B.info,u=w.token,X=w.videoId,U=this.D4,f=this.videoData;if(P!==f.X){var h=!f.X;f.X=P;M!=="m"&&M!=="t"&&(M=h?"i":"a");var c=M==="m"||M==="t";this.P3.experiments.nu("html5_refactor_sabr_audio_format_selection_logging")?this.SF=new pux(f,P,M,"",u,X):(M=new pux(f,P,M,"",u),U.qoe&&(U=U.qoe,P=g.$0(U.provider),pVR(U,P,M)));this.publish("internalaudioformatchange",f,!h&&c)}this.kA.kS(w.B.index)}; g.N.bD=function(w){this.publish("localmediachange",w)}; g.N.yn=function(w){w=w===void 0?{}:w;var M;(M=this.loader)==null||M.yn(this.P3,NI(this.videoData),w)}; g.N.V2=function(){return this.vI.V2()}; g.N.jV=function(w){this.vl(new g.hy("staleconfig",{reason:w}))}; g.N.handleError=function(w){this.vI.handleError(w)}; g.N.tC=function(){return this.vI.tC()}; g.N.mD=function(w){this.kA.mD(w)}; g.N.Rd=function(w,M){w=w===void 0?!1:w;M=M===void 0?!1:M;var P=this,u,X,U;return g.n(function(f){if(f.L==1){P.loader&&P.loader.Kl();P.loader&&P.loader.sO()&&W6(P);if(P.D("html5_enable_vp9_fairplay")&&P.d5()&&(u=P.videoData.B)!=null)for(var h in u.B)u.B.hasOwnProperty(h)&&(u.B[h].B=null,u.B[h].C=!1);P.Pk(mI(P.playerState,2048));P.publish("newelementrequired");return w?g.B(f,Ue(P),2):f.M0(2)}P.videoData.dK()&&((X=P.loader)==null?0:X.ys)&&!CK(P)&&((U=P.isAtLiveHead())&&Dw(P.videoData)?P.seekTo(Infinity, {Wk:"videoPlayer_getNewElement"}):P.videoData.Gt&&P.loader&&(h=P.loader,h.Gk.dK&&(h.Gk.Gt||h.Gk.X||h.Gk.isPremiere?(h.seek(0,{Wk:"loader_resetSqless"}),h.videoTrack.j=!0,h.audioTrack.j=!0,h.videoTrack.G=!0,h.audioTrack.G=!0):JL(h.Gk)&&Pt(h))));M&&P.seekTo(0,{seekSource:105});g.C(P.playerState,8)&&P.playVideo();g.yx(f)})}; g.N.UD=function(w){this.II("hgte",{ne:+w});this.videoData.j=!1;w&&this.Rd();this.loader&&Yr4(this.loader)}; g.N.DK=function(w){this.II("newelem",{r:w});this.Rd()}; g.N.pauseVideo=function(w){w=w===void 0?!1:w;if((g.C(this.playerState,64)||g.C(this.playerState,2))&&!w)if(g.C(this.playerState,8))this.Pk(GE(this.playerState,4,8));else if(this.qc())XB(this);else return;g.C(this.playerState,128)||(w?this.Pk(mI(this.playerState,256)):this.Pk(GE(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.sp(this.videoData)&&this.loader&&S8(this,!1)}; g.N.stopVideo=function(){this.pauseVideo();this.loader&&(S8(this,!1),this.loader.Oz())}; g.N.Qu=function(w,M){w=w===void 0?!1:w;M=M===void 0?!1:M;if(this.B_()&&M){var P;(P=this.mediaElement)==null||P.Qu()}else{var u;(u=this.mediaElement)==null||u.stopVideo()}H6(this);W6(this);g.C(this.playerState,128)||(w?this.Pk(oN(oN(mI(this.playerState,4),8),16)):this.Pk(VO(this.playerState)));this.videoData.videoId&&this.P3.UO.remove(this.videoData.videoId)}; g.N.seekTo=function(w,M){M=M===void 0?{}:M;this.logger.debug(function(){return"SeekTo "+w+", "+JSON.stringify(M)}); g.C(this.playerState,2)&&XB(this);M.cXI&&this.Pk(mI(this.playerState,2048));M.seekSource!==58&&M.seekSource!==60||!this.D("html5_update_vss_during_gapless_seeking")||p6R(this.D4,M.seekSource);this.kA.seekTo(w,M);this.X9.sync()}; g.N.zA=function(w){this.rK.X.L=(0,g.G$)();g.C(this.playerState,32)||(this.Pk(mI(this.playerState,32,w==null?void 0:w.seekSource)),g.C(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.Ub()}; g.N.h2=function(w){w=w==null?void 0:w.seekSource;g.C(this.playerState,32)?(this.Pk(GE(this.playerState,16,32,w)),this.publish("endseeking")):g.C(this.playerState,2)||this.Pk(mI(this.playerState,16,w));w=this.rK.X;var M=this.videoData,P=this.playerState.isPaused();if(M.clientPlaybackNonce&&!isNaN(w.B)){if(Math.random()<.01){P=P?"pbp":"pbs";var u={startTime:w.B};M.K&&(u.cttAuthInfo={token:M.K,videoId:M.videoId});qH("seek",u);g.Db({clientPlaybackNonce:M.clientPlaybackNonce},"seek");isNaN(w.L)||yc("pl_ss", w.L,"seek");yc(P,(0,g.G$)(),"seek")}w.reset()}}; g.N.vA=function(w){this.h2(w)}; g.N.OI=function(){this.publish("SEEK_COMPLETE")}; g.N.xS=function(w){var M=this.FF,P=this.videoData.clientPlaybackNonce,u=this.playerType;if(w.scope===4){var X=w.type;if(X){var U=M.Pj(),f=U.getVideoData().clientPlaybackNonce;u===1&&(f=P);if(u=OgM(M,f)){if(P=u.getVideoData())w.writePolicy===2&&P.sabrContextUpdates.has(X)||(w.sendByDefault&&P.iW.add(X),P.sabrContextUpdates.set(X,w)),M.D("html5_enable_t1_enf_on_sabr")&&(w=X===5,X=W7u(P.playerResponse),w?(w=X?1:0,M9(w,"m.p_",{}),Ig("MBSTAT",w)):w=1,w===0&&M.h9.Vs("onAbnormalityDetected"))}else U.II("scuset", {ncpf:"1",ccpn:f,crcpn:P})}else g.Yq(Error("b/380308491: contextUpdateType is undefined"))}}; g.N.ag=function(){if(this.playerType===2)return this.FF.ag("")}; g.N.getCurrentTime=function(w){return this.kA.getCurrentTime(w===void 0?!1:w)}; g.N.Wp=function(){return this.kA.Wp()}; g.N.Ap=function(){return this.kA.Ap()}; g.N.wF=function(){return this.Ap()}; g.N.K6=function(){return this.kA.K6()}; g.N.getPlaylistSequenceForTime=function(w){return this.videoData.getPlaylistSequenceForTime(w-this.OF())}; g.N.rk=function(){var w=NaN;this.mediaElement&&(w=this.mediaElement.rk());return w>=0?w:this.getCurrentTime()}; g.N.Ls=function(){var w;return((w=this.videoData.B)==null?0:w.Ls)?this.videoData.B.Ls(this.getCurrentTime()-this.OF()):this.mediaElement&&(w=this.mediaElement.kq())&&(w=w.getTime(),!isNaN(w))?w/1E3+this.getCurrentTime():NaN}; g.N.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.OF():this.Az()?this.Az():0}; g.N.j$=function(){var w=new oAz;if(this.loader){var M=this.P3.schedule,P=this.P3.FX();P=P===void 0?!1:P;w.z2=M.mN;w.qO=M.OO;w.bandwidthEstimate=BM(M);if(P){P=(M.V.Zu()*1E3).toFixed();var u=(M.Cu.Zu()*1E3).toFixed(),X=ll(M).toFixed(2),U=((M.j.Zu()||0)*1E9).toFixed(2),f=M.C.Zu().toFixed(0),h=M.xu.Zu().toFixed(0),c=M.S.percentile(.5).toFixed(2),Z=M.S.percentile(.92).toFixed(2),S=M.S.percentile(.96).toFixed(2),H=M.S.percentile(.98).toFixed(2);M.B?M.B.reset():M.B=new oj;M.B.add(M.ys);M.B.add(M.interruptions.length); for(var p=0,F=M.interruptions.length-1;F>=0;F--){var E=M.interruptions[F];M.B.add(E-p);p=E}p=0;for(F=M.X.length-1;F>=0;F--){E=M.X[F];var y=E.stamp/36E5;M.B.add(y-p);p=y;M.B.add(E.net/1E3);M.B.add(E.max)}M=M.B.PZ();w.B={ttr:P,ttm:u,d:X,st:U,bw:f,abw:h,v50:c,v92:Z,v96:S,v98:H,"int":M}}it2(this.loader,w)}else this.mediaElement&&(w.i_=Hp(this.mediaElement));w.z2=this.z2;w.qO=this.qO;w.C=this.isAtLiveHead()&&this.isPlaying()?ke2(this):NaN;return w}; g.N.jM=function(w,M){this.qO+=w;this.z2+=M}; g.N.MQ=function(){return this.mediaElement?g.sp(this.videoData)?1:Kk(this.videoData)?this.isAtLiveHead()||this.Ec()?1:this.kA.MQ():this.mediaElement.MQ():0}; g.N.ZT=function(){var w=this.MW,M=iG(w,"bandwidth"),P=iG(w,"bufferhealth"),u=iG(w,"livelatency"),X=iG(w,"networkactivity"),U=wh(w,"bandwidth"),f=wh(w,"bufferhealth"),h=wh(w,"livelatency");w=wh(w,"networkactivity");var c=this.VF(),Z=c.droppedVideoFrames;c=c.totalVideoFrames;var S=this.getCurrentTime();if(this.Si){var H="IT/"+(this.Si.B.getInfo()+"/"+Yn(this.Cl()));H+="/"+this.Si.getInfo()}else H="";var p=this.isGapless(),F=this.Mv(),E=this.Dh(),y=g.c6(this),q=this.getPlayerState(),d=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var l=0;var e="";if(this.lB){if(this.lB.mP){e="D,";break a}l=this.lB.xn;e=this.lB.y_.substring(0,4)}l>0?(l="AD"+l+", ",e&&(l+=e+", "),e=l):e=""}return{wE:U,S8:f,currentTime:S,Sc:H,droppedVideoFrames:Z,isGapless:p,Mv:F,s5:E,U8:M,K7:P,kN:u,s8:X,Dm:h,v2:w,LO:y,playerState:q,yT:d,oJ:e,totalVideoFrames:c}}; g.N.Z4=function(w){var M={};if(w===void 0?0:w){Object.assign(M,this.D4.Z4());this.mediaElement&&(Object.assign(M,this.mediaElement.Z4()),w=this.VF(),M.dvf=w.droppedVideoFrames,M.tvf=w.totalVideoFrames);this.loader&&Object.assign(M,this.loader.Z4());this.Si&&(M.drm=JSON.stringify(this.Si.Z4()));M.state=this.playerState.state.toString(16);g.C(this.playerState,128)&&(M.debug_error=JSON.stringify(this.playerState.tV));this.sB()&&(M.prerolls=this.Dg.join(","));this.videoData.sb&&(M.ismb=this.videoData.sb); this.videoData.latencyClass!=="UNKNOWN"&&(M.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(M.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)M.is_mosaic=1;this.videoData.cotn&&(M.is_offline=1,M.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(M.playerResponseCpn=this.videoData.playerResponseCpn);this.FF.isOrchestrationLeader()&&(M.leader=1);this.videoData.isLivePlayback&& (this.videoData.B&&bq(this.videoData.B)&&(M.segduration=bq(this.videoData.B)),w=this.kA,M.lat=w.V?ssF(w.V.X):0,M.liveutcstart=this.videoData.liveUtcStartSeconds);M.relative_loudness=this.videoData.Ob.toFixed(3);if(w=g.c6(this))M.optimal_format=w.video.qualityLabel;M.user_qual=cL();M.release_version=W[27]}M.debug_videoId=this.videoData.videoId;return M}; g.N.addCueRange=function(w){this.vW([w])}; g.N.removeCueRange=function(w){this.X9.jH([w])}; g.N.SE=function(){this.X9.sync()}; g.N.jS=function(w,M){return this.X9.jS(w,M)}; g.N.vW=function(w,M){this.X9.qf(w,M)}; g.N.Ao=function(w){this.X9.jH(w)}; g.N.IQ=function(){return this.X9.IQ()||[]}; g.N.PY=function(){return this.Pq}; g.N.Ax=function(){return this.visibility.Ax()}; g.N.v9=function(){this.mediaElement&&this.mediaElement.v9()}; g.N.R3k=function(){fJ(this)}; g.N.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.N.Wm=function(){g.qi(this.qK)}; g.N.MZ3=function(){this.Ub();this.publish("onLoadProgress",this.MQ())}; g.N.cF=function(w){var M=w.target.Ez();if(this.mediaElement&&this.mediaElement.Ez()&&this.mediaElement.Ez()===M){Sy4(this,w.type);switch(w.type){case "error":var P=FF(this.mediaElement)||"",u=this.mediaElement.Eq();if(P==="capability.changed"){this.D("html5_restart_on_capability_change")?(this.II("capchg",{msg:u}),this.Rd(!0)):Ue(this);return}if(this.mediaElement.hasError()&&(u={msg:u},this.D("html5_log_fmt_unplaybable_trigger")&&(u.trg="elementevt"),fjl(this.vI,P,u)))return;if(this.isBackground()&& this.mediaElement.lX()===4){this.Qu();h9(this,"unplayable");return}break;case "durationchange":P=this.mediaElement.getDuration();isFinite(P)&&(!this.aI||P>0)&&P!==1&&this.l4(P);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());dFx(this.X9);this.D4.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":pc4(this);this.publish("onLoadedMetadata");XcR(this);P=this.Ls();this.videoData.l5&&(this.videoData.l5=P);break;case "loadstart":XcR(this); break;case "progress":case "suspend":this.lL.Up();break;case "playing":this.rK.bP("plev");this.hg&&!CK(this)&&(this.hg=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Wk:"videoplayer_onPlaying"})));break;case "timeupdate":P=this.mediaElement&&!this.mediaElement.getCurrentTime();u=this.mediaElement&&this.mediaElement.Jt()===0;if(P&&(!this.T4||u))return;this.T4=this.T4||!!this.mediaElement.getCurrentTime();uZp(this);this.Ub();if(!this.mediaElement||this.mediaElement.Ez()!== M)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.dC().length>0&&this.mediaElement.z0().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.D("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Jt()>2||!this.mediaElement.isSeeking()&&rf(this.mediaElement.z0(),this.mediaElement.getCurrentTime()))&&(P=this.mediaElement.Z4(),P.bh=Hp(this.mediaElement).toFixed(3), this.II("uwe",P));break;case "resize":pc4(this);this.videoData.L&&this.videoData.L.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Oo&&g.C(this.playerState,8)&&!g.C(this.playerState,1024)&&this.getCurrentTime()===0&&g.HN){h9(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Ez()===M){ElH(this.kA,w);this.publish("videoelementevent",w);M=this.playerState;var X=this.Of,U=this.mediaElement;P=this.P3.experiments; u=this.videoData.clientPlaybackNonce;if(!g.C(M,128)){var f=M.state;U=U?U:w.target;var h=U.getCurrentTime();if(!g.C(M,64)||w.type!=="ended"&&w.type!=="pause"){var c=U.getDuration();c=U.isEnded()||h>1&&Math.abs(h-c)<1.1;var Z=w.type==="pause"&&U.isEnded();h=w.type==="ended"||w.type==="waiting"||w.type==="timeupdate"&&!g.C(M,4)&&!nK(X,h);if(Z||c&&h)U.En()>0&&U.Ez()&&(f=14);else switch(w.type){case "error":FF(U)&&(f|=128);break;case "pause":g.C(M,256)?(f^=256)||(f=64):g.C(M,32)||g.C(M,2)||g.C(M,4)||(f= 4,g.C(M,1)&&g.C(M,8)&&(f|=1));break;case "playing":h=f;f=(f|8)&-1093;h&4?(f|=1,NV(X,U,!0)):nK(X,U.getCurrentTime())&&(f&=-2);g.C(M,1)&&NV(X,U)&&(f|=1);break;case "seeking":f|=16;g.C(M,8)&&(f|=1);f&=-3;break;case "seeked":f&=-17;NV(X,U,!0);break;case "waiting":g.C(M,2)||(f|=1);NV(X,U);break;case "timeupdate":h=g.C(M,16),c=g.C(M,4),(g.C(M,8)||h)&&!c&&nK(X,U.getCurrentTime())&&(f=8),NV(X,U)&&(f|=1)}}X=f;f=null;X&128&&(f=w.target,U=FF(f),h=1,U?(U==="capability.changed"&&(h=2),c="GENERIC_WITHOUT_LINK", Z=f.Z4(),Z.mediaElem="1",P.nu("html5_log_fmt_unplaybable_trigger")&&(Z.trg="melem"),/AUDIO_RENDERER/.test(f.Eq())&&(c="HTML5_AUDIO_RENDERER_ERROR"),f={errorCode:U,errorMessage:g.g7[c]||"",vM:c,OZ:WU(Z),nQ:h,cpn:M.tV?M.tV.cpn:""}):f=null,f&&(f.cpn=u));M=VO(M,X,f)}!g.C(this.playerState,1)&&g.C(M,1)&&Za4(this,"evt"+w.type);this.Pk(M)}}}; g.N.d0k=function(w){w=w.B.availability==="available";w!==this.Pq&&(this.Pq=w,this.publish("airplayavailabilitychange"))}; g.N.U03=function(){var w=(0,g.G$)(),M=this.mediaElement.Ax();this.II("airplay",{ia:M});!M&&!isNaN(this.cX)&&w-this.cX<2E3||(this.cX=w,M!==this.Ax()&&(w=this.visibility,w.B!==M&&(w.B=M,w.fV()),this.II("airplay",{rbld:M}),this.Pe()),this.publish("airplayactivechange"))}; g.N.nH=function(w){if(this.loader){var M=this.loader,P=M.C,u=M.getCurrentTime(),X=Date.now()-P.S;P.S=NaN;P.II("sdai",{adfetchdone:w,d:X});w&&!isNaN(P.j)&&P.L!==3&&K2(P.loader,u,P.j,P.K);P.policy.L?P.G=NaN:P.X=NaN;sM(P,4,P.L===3?"adfps":"adf");xg(M)}}; g.N.oK=function(){g.HF(this.df);this.JM.stop();this.videoData.mN=!0;this.P3.F$=!0;this.P3.M7=0;var w=this.vI;if(w.videoData.L){var M=w.r$.G,P=w.videoData.L.zk;M.X.has(P)&&(M.X.delete(P),M.L=!0)}w.B.stop();this.jc();g.C(this.playerState,8)&&this.Pk(oN(this.playerState,65));this.JP=!1;w=this.D4;w.B&&iJF(w.B);w.L&&(w=w.L,M=g.$0(w.provider),w.B<0&&(w.B=M,w.delay.start()),w.L=M,w.X=M);g.JK(this.Br);this.publish("playbackstarted");(w=g.Mj("yt.scheduler.instance.clearPriorityThreshold"))?w():xF(0)}; g.N.jc=function(){var w=this.FF.Bl(),M={},P={};!YL("pbs",this.rK.timerName)&&Zb.measure&&Zb.getEntriesByName&&(Zb.getEntriesByName("mark_nr")[0]?uXp("mark_nr"):uXp());w.videoId&&(M.videoId=w.videoId);w.clientPlaybackNonce&&!this.D("web_player_early_cpn")&&(M.clientPlaybackNonce=w.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(P.isPausedOnLoad=!0);P.itag=w.L?Number(w.L.itag):-1;w.Bb&&(P.preloadType=String(this.nL?2:1));M.liveStreamMode=MAA[QN(w)];M.playerInfo=P;this.rK.infoGel(M); if(this.loader){w=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(w.C&&(M=window.performance.getEntriesByName(w.C),M.length&&(M=M[0],w.tick("vri",M.fetchStart),w.tick("vdns",M.domainLookupEnd),w.tick("vreq",M.requestStart),w.tick("vrc",M.responseEnd))),w.L&&(M=window.performance.getEntriesByName(w.L),M.length&&(M=M[0],w.tick("ari",M.fetchStart),w.tick("adns",M.domainLookupEnd),w.tick("areq",M.requestStart),w.tick("arc",M.responseEnd))));w=w.ticks;for(var u in w)w.hasOwnProperty(u)&& this.rK.tick(u,w[u])}}; g.N.Ub=function(w){var M=this;w=w===void 0?!1:w;if(this.mediaElement&&this.videoData){U05(this.kA,this.isPlaying());var P=this.getCurrentTime();!this.loader||g.C(this.playerState,4)&&g.sp(this.videoData)||g.C(this.playerState,32)&&mC(this.videoData)||ucF(this.loader,P);P>5&&(this.kA.C=P);var u=g.tS();u?g.kO.Pw(this.u5):g.S9(this.u5);var X=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!X||Ur(this.videoData))&&!g.C(this.playerState,128)){var U=function(){if(M.mediaElement&&!g.C(M.playerState, 128)){M.P3.FX()&&Sy4(M,"pfx");var f=M.getCurrentTime();M.D("html5_buffer_underrun_transition_fix")&&(f-=M.OF());var h=Hp(M.mediaElement),c=g.C(M.playerState,8),Z=nK(M.Of,f),S=j62(M.Of,f,(0,g.G$)(),h);c&&Z?M.Pk(oN(M.playerState,1)):c&&S?(c=M.getDuration(),Z=Dw(M.videoData),c&&Math.abs(c-f)<1.1?(M.II("setended",{ct:f,bh:h,dur:c,live:Z}),M.mediaElement.TL()?(M.logger.debug("seek to 0 because of looping"),M.seekTo(0,{Wk:"videoplayer_loop",seekSource:37})):M.lP()):(M.playerState.isBuffering()||Za4(M,"progress_fix"), M.Pk(mI(M.playerState,1)))):(c&&!Z&&!S&&f>0&&(c=(Date.now()-M.UX)/1E3,Z=M.getDuration(),f>Z-1&&M.II("misspg",{t:f.toFixed(2),d:Z.toFixed(2),r:c.toFixed(2),bh:h.toFixed(2)})),M.playerState.isPaused()&&M.playerState.isBuffering()&&Hp(M.mediaElement)>5&&M.Pk(oN(M.playerState,1)));M.Ub()}}; this.mediaElement.dC().length===0?this.u5=u?g.kO.t5(U,100):g.cF(U,100):this.u5=u?g.kO.t5(U,500):g.cF(U,500)}this.videoData.TE=P;!w&&this.isPlaying()&&UQ_(this);dv_(this.TC,this.nx,this.Nt(),this.isBackground())&&uG(this);this.publish("progresssync",w);X&&Ur(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.N.KW=function(){this.WB("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.N.Dh=function(){return this.D4.Dh()}; g.N.h3=function(){return this.loader?this.loader.h3():BM(this.P3.schedule,!0)}; g.N.Pk=function(w){if(!g.yO(this.playerState,w)){this.logger.debug(function(){return"Setting state "+w.toString()}); var M=new g.$9(w,this.playerState);this.playerState=w;Ha2(this);var P=!this.KY.length;this.KY.push(M);var u=this.mediaElement&&this.mediaElement.isSeeking();g.fW(M,1)&&this.loader&&Dlu(this.loader);u=M.oldState.state===8&&!u;g.fW(M,1)&&u&&g.C(this.playerState,8)&&!g.C(this.playerState,64)&&this.loader&&(qr1(this.loader),this.mediaElement&&Hp(this.mediaElement)>=5&&ziF(this.TC,this.nx)&&uG(this));(u=g.Oh(this.P3.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.C(w,1)&&(g.C(w,8)||g.C(w, 16))?this.VZ.start(u):this.VZ.stop();(Ug(M,8)<0||g.fW(M,1024))&&this.JM.stop();!g.fW(M,8)||this.videoData.mN||g.C(M.state,1024)||this.JM.start();g.C(M.state,8)&&Ug(M,16)<0&&!g.C(M.state,32)&&!g.C(M.state,2)&&this.playVideo();g.C(M.state,2)&&Kk(this.videoData)&&(this.l4(this.getCurrentTime()),this.Ub(!0));g.fW(M,2)&&(this.cT(!0),this.P3.FX()&&this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&mC(this.videoData)&&this.videoData.B&&(u={minst:""+this.videoData.B.rY,cminst:""+(this.videoData.B.ov()+ this.OF()),maxst:""+this.videoData.B.bI,hts:""+this.videoData.B.Lu,cmaxst:""+(this.videoData.B.Az()+this.OF())},this.II("sabrSeekableBoundaries",u)));g.fW(M,128)&&this.Qu();this.videoData.B&&this.videoData.isLivePlayback&&!this.xV&&(Ug(M,8)<0?lSH(this.videoData.B):g.fW(M,8)&&this.videoData.B.resume());X45(this.kA,M);Fgp(this.D4,M);if(P&&!this.sO())try{for(var X=g.G(this.KY),U=X.next();!U.done;U=X.next()){var f=U.value;l6F(this.X9,f);this.publish("statechange",f)}}finally{this.KY.length=0}}}; g.N.DE=function(){this.rK.tick("qoes")}; g.N.dF=function(){this.kA.dF()}; g.N.A1=function(w,M,P,u){a:{var X=this.vI;u=u===void 0?"LICENSE":u;P=P.substring(0,256);var U=cU(M);w==="drm.keyerror"&&this.Si&&this.Si.L.keys.length>1&&X.X<96&&(w="drm.sessionlimitexhausted",U=!1);var f=X.r$.experiments.nu("html5_retry_on_drm_unavailable"),h=X.r$.experiments.nu("html5_retry_on_drm_key_error"),c=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(f&&w==="drm.unavailable"||h&&w==="drm.keyerror"&&!P.match(c))X.vl("qoe.restart",{retryOnDrmError:1,e:w,detail:P}),X.fu.Rd(!0);else{if(U)if(X.videoData.L&& X.videoData.L.video.isHdr())HKH(X,w);else{if(X.fu.WB(w,M,u,P),Xux(X,{detail:P}))break a}else X.vl(w,{detail:P});w==="drm.sessionlimitexhausted"&&(X.II("retrydrm",{sessionLimitExhausted:1}),X.X++,c8y(X.fu))}}}; g.N.E2L=function(){var w=this,M=g.Oh(this.P3.experiments,"html5_license_constraint_delay"),P=xS();M&&P?(M=new g.gV(function(){w.fk();fJ(w)},M),g.b(this,M),M.start()):(this.fk(),fJ(this))}; g.N.pF=function(w){this.publish("heartbeatparams",w)}; g.N.Kp=function(w){this.II("keystatuses",LJR(w));var M="auto",P=!1;this.videoData.L&&(M=this.videoData.L.video.quality,P=this.videoData.L.video.isHdr());a:{switch(M){case "highres":case "hd2880":M="UHD2";break;case "hd2160":case "hd1440":M="UHD1";break;case "hd1080":case "hd720":M="HD";break;case "large":case "medium":case "small":case "light":case "tiny":M="SD";break;default:M="";break a}P&&(M+="HDR")}M=EC(w)?Nv(w,M):w.X.includes(M);if(this.D("html5_enable_vp9_fairplay")){if(P)if(w.j){var u;if((u= this.Si)==null?0:ul(u.B))if((P=this.Si)==null)P=0;else{for(var X=u=void 0,U=g.G(P.L.values()),f=U.next();!f.done;f=U.next())f=f.value,u||(u=ByH(f,"SD")),X||(X=ByH(f,"AUDIO"));P.rg({sd:u,audio:X});P=u==="output-restricted"||X==="output-restricted"}else P=!M;if(P){this.II("drm",{dshdr:1});HKH(this.vI);return}}else{this.videoData.SR||(this.videoData.SR=!0,this.II("drm",{dphdr:1}),this.Rd(!0));return}var h;if((h=this.Si)==null?0:ul(h.B))return}else if(h=w.j&&M,P&&!h){HKH(this.vI);return}M||Nv(w,"AUDIO")&& Nv(w,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),w=LJR(w),this.FY?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.D("html5_report_fatal_drm_restricted_error_killswitch")||this.WB("drm.keyerror",2,void 0,"info."+w)):(this.FY=!0,this.vl(new g.hy("qoe.restart",Object.assign({},{retrydrm:1},w))),uG(this),c8y(this)))}; g.N.m7I=function(){if(!this.videoData.mN&&this.mediaElement&&!this.isBackground()){var w="0";this.mediaElement.Jt()>0&&Hp(this.mediaElement)>=5&&this.videoData.C&&this.videoData.C.B&&(this.Pk(mI(this.playerState,1)),Za4(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),w="1");Ha2(this);var M=this.videoData.C;w={restartmsg:w,mfmt:!pk(this.videoData),mdrm:!(!(M&&M.videoInfos&&M.videoInfos.length&&M.videoInfos[0].Ks)||this.Si),mfmtinfo:!this.videoData.L,prerolls:this.sB()?this.Dg.join(","): "0"};if(this.Si){M=this.Si;if(M.L.size<=0){var P="ns;";M.S||(P+="nr;");M=P+="ql."+M.C.length}else M=LJR(M.L.values().next().value),M=WU(M);w.drmp=M}var u;Object.assign(w,((u=this.loader)==null?void 0:u.Z4())||{});var X;Object.assign(w,((X=this.mediaElement)==null?void 0:X.Z4())||{});this.D4.vl("qoe.start15s",WU(w));this.publish("loadsofttimeout")}}; g.N.l4=function(w){this.videoData.lengthSeconds!==w&&(this.videoData.lengthSeconds=w,fJ(this))}; g.N.cT=function(w,M){var P=this;w=w===void 0?!1:w;if(!this.Jj)if(YL("att_s","player_att")||Tv("att_s",void 0,"player_att"),this.D("use_rta_for_player"))(function(){var X,U,f,h;return g.n(function(c){switch(c.L){case 1:if(!(X=w)){c.M0(2);break}return g.B(c,g.ez1(),3);case 3:X=!c.B;case 2:if(X)return c.return();g.DU(c,4);U=V8y(P.D4);if(!U)throw Error();f={};return g.B(c,g.Lhz((f.cpn=P.videoData.clientPlaybackNonce,f.encryptedVideoId=P.videoData.videoId||"",f),3E4),6);case 6:h=c.B;if(P.Jj)throw Error(); if(!h.challenge)throw g.Yq(Error("Not sending attestation ping; no attestation challenge string")),Error();P.Jj=!0;var Z=[h.challenge];h.error?Z.push("r1c="+h.error):h.webResponse&&Z.push("r1a="+h.webResponse);var S;((S=h.adblockReporting)==null?void 0:S.reportingStatus)!==void 0&&Z.push("r6a="+h.adblockReporting.reportingStatus);var H;((H=h.adblockReporting)==null?void 0:H.broadSpectrumDetectionResult)!==void 0&&Z.push("r6b="+h.adblockReporting.broadSpectrumDetectionResult);U(Z.join("&"));Tv("att_f", void 0,"player_att");g.zp(c,0);break;case 4:g.d4(c),Tv("att_e",void 0,"player_att"),g.yx(c)}})})().then(function(){M==null||M()}); else{var u=new g.IgU(this.videoData);if("c1a"in u.pX&&!g.OD.isInitialized()){Tv("att_wb",void 0,"player_att");this.fD===2&&Math.random()<.01&&g.Yq(Error("Botguard not available after 2 attempts"));if(w)return;if(this.fD<5){g.JK(this.LD);this.fD++;return}}(u=g.Afy(u))?(Tv("att_f",void 0,"player_att"),NhU(this.D4,u),this.Jj=!0):Tv("att_e",void 0,"player_att")}}; g.N.Ft=function(w){w=w===void 0?!1:w;return Dw(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Ec()||g.sp(this.videoData))?this.getCurrentTime():this.Az(w)}; g.N.l6=function(){return this.ov()}; g.N.Az=function(w){return this.kA.Az(w===void 0?!1:w)}; g.N.ov=function(){return this.kA.ov()}; g.N.OF=function(){return this.kA?this.kA.OF():0}; g.N.getStreamTimeOffset=function(){return this.kA?this.kA.getStreamTimeOffset():0}; g.N.x6=function(){var w=0;this.P3.D("web_player_ss_media_time_offset")&&(w=this.getStreamTimeOffset()===0?this.OF():this.getStreamTimeOffset());return w}; g.N.setPlaybackRate=function(w){var M;this.playbackRate!==w&&VSl(this.TC,(M=this.videoData.C)==null?void 0:M.videoInfos)&&(this.playbackRate=w,uG(this));this.playbackRate=w;this.mediaElement&&this.mediaElement.setPlaybackRate(w)}; g.N.getPlaybackRate=function(){return this.playbackRate}; g.N.getPlaybackQuality=function(){var w="unknown";if(this.videoData.L&&(w=this.videoData.L.video.quality,w==="auto"&&this.mediaElement)){var M=this.Vh();M&&M.videoHeight>0&&(w=o0(M.videoWidth,M.videoHeight))}return w}; g.N.isHdr=function(){return!!(this.videoData.L&&this.videoData.L.video&&this.videoData.L.video.isHdr())}; g.N.sendVideoStatsEngageEvent=function(w,M){var P=this.D4;P.B?(P=lB(P.B,"engage"),P.mN=w,P.send(M)):M&&M()}; g.N.r5=function(w){return this.D4.r5(w)}; g.N.isAtLiveHead=function(w,M){M=M===void 0?!1:M;return Dw(this.videoData)&&(this.j_||M)?this.kA.isAtLiveHead(w):!1}; g.N.Mz=function(){var w=this.Az(),M=this.getCurrentTime(),P;(P=!Dw(this.videoData))||(P=this.kA,P=!(P.B&&P.B.C));return P||this.Ec()||isNaN(w)||isNaN(M)?0:Math.max(0,w-M)}; g.N.nJ=function(w){(this.j_=w)||this.JM.stop();this.videoData.B&&(w?this.videoData.B.resume():lSH(this.videoData.B));if(this.loader){var M=this.videoData.D("html5_disable_preload_for_ssdai_with_preroll")&&this.Nr()&&this.videoData.isLivePlayback;w&&!M?this.loader.resume():S8(this,!0)}g.C(this.playerState,2)||w?g.C(this.playerState,512)&&w&&this.Pk(oN(this.playerState,512)):this.Pk(mI(this.playerState,512));M=this.D4;M.qoe&&(M=M.qoe,g.Pu(M,g.$0(M.provider),"stream",[w?"A":"I"]))}; g.N.oa=function(w){this.D4.vl("player.exception",WU({n:w.name,m:w.message}))}; g.N.J5=u2(22);g.N.Qc=u2(51);g.N.gk=function(w){this.D4.gk(w)}; g.N.i5=function(w){this.D4.i5(w)}; g.N.b5=function(w){this.D4.b5(w)}; g.N.iX=u2(28);g.N.Nd=u2(34);g.N.wq=function(w){this.D4.wq(w)}; g.N.oz=function(w,M,P,u){this.D4.oz(w,M,P,u)}; g.N.Ra=function(){this.II("hidden",{},!0)}; g.N.VF=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.N.aW=function(){return this.loader?this.loader.aW():!0}; g.N.setLoop=function(w){this.loop=w;this.mediaElement&&!g.Z$(this.P3)&&this.mediaElement.setLoop(w)}; g.N.TL=function(){return this.mediaElement&&!g.Z$(this.P3)?this.mediaElement.TL():this.loop}; g.N.Qx=function(w){this.II("timestamp",{o:w.toString()});this.kA.Qx(w)}; g.N.nT=function(w){this.rK.tick(w)}; g.N.BZ=function(w){return this.rK.BZ(w)}; g.N.bP=function(w){this.rK.bP(w)}; g.N.II=function(w,M,P){this.D4.II(w,M,P===void 0?!1:P)}; g.N.yj=function(w,M,P){this.D4.II(w,M,P===void 0?!1:P)}; g.N.vl=function(w){this.D4.vl(w.errorCode,WU(w.details));w=w.errorCode;if(this.videoData.isLivePlayback&&(w==="qoe.longrebuffer"||w==="qoe.slowseek")||w==="qoe.restart"){w=this.loader?jbM(this.loader.videoTrack):{};var M,P;this.II("lasoe",Object.assign(this.loader?jbM(this.loader.audioTrack):{},(M=this.aI)==null?void 0:(P=M.B)==null?void 0:P.BY()));var u,X;this.II("lvsoe",Object.assign(w,(u=this.aI)==null?void 0:(X=u.L)==null?void 0:X.BY()))}}; g.N.w0=function(w,M,P){this.D4.w0(w,M,P)}; g.N.TI=function(w,M,P,u,X,U,f,h){var c;if((c=this.videoData.B)!=null&&c.isLive){var Z=M.playerType===2?M:w,S=w.videoData.videoId,H=M.videoData.videoId;if(S&&H){c=this.D4;if(c.qoe){var p=c.qoe,F=w.cpn,E=M.cpn,y=Z.videoData.QL,q=p.provider.videoData.clientPlaybackNonce,d=p.provider.videoData.videoId,l=E!==q&&H!==d;q=F!==q&&S!==d;p.reportStats();p.adCpn&&p.adCpn!==F||(p.adCpn=q?F:"",p.HH=q?S:"",p.adFormat=q?y:void 0,FBu(p,U?4:X?2:0,E,H,u),p.reportStats(),p.adCpn=l?E:"",p.HH=l?H:"",p.adFormat=l?y:void 0, FBu(p,U?5:X?3:1,F,S,P),p.reportStats())}P=w.cpn;if(c.C.has(P)){if(X=c.C.get(P),Bu(X,!0).send(),eS(X),P!==c.provider.videoData.clientPlaybackNonce){UFl(X);var e;(e=c.B)==null||M81(e);c.C.delete(P)}}else c.Pb=c.provider.videoData.clientPlaybackNonce,c.Pb&&c.B&&(c.C.set(c.Pb,c.B),Bu(c.B).send(),eS(c.B));e=M.cpn;Z=Z.videoData;u-=this.x6();if(c.C.has(e)){u=c.C.get(e);var R=u.C&&isNaN(u.G)?LK(u):NaN;u=$FM(u,!1);isNaN(R)||(u.j=R);u.send()}else u=mF4(c,c.provider,Z,u),c.C.set(e,u),f6l(u,new g.$9(mI(new g.EH, 8),new g.EH)),iJF(u),(R=c.B)==null||eS(R);c.Pb=e;if(this.D("html5_unify_csi_server_stitched_transition_logging")){if(c=this.rK,R=M.cpn,u=this.videoData.clientPlaybackNonce,M=M.videoData,w=(w.cpn===u?"video":"ad")+"_to_"+(R===u?"video":"ad"),w!=="video_to_ad"){u=w==="ad_to_video"?void 0:M;Z=u==null?void 0:u.Ru;e={};if(M==null?0:M.K)e.cttAuthInfo={token:M.K,videoId:M.videoId};f&&(e.startTime=f);qH(w,e);var I,w4,t;f={targetVideoId:(I=M==null?void 0:M.videoId)!=null?I:"empty_video",targetCpn:R,adVideoId:(w4= u==null?void 0:u.videoId)!=null?w4:"empty_video",adClientPlaybackNonce:(t=Z==null?void 0:Z.cpn)!=null?t:u==null?void 0:u.clientPlaybackNonce};Z&&(f.adBreakType=Z.adBreakType,f.adType=Z.adType);g.Db(f,w);VT(c,h,w)}}else I=this.rK,t=this.videoData.clientPlaybackNonce,w4=M.videoData,t=(w.cpn===t?"video":"ad")+"_to_"+(M.cpn===t?"video":"ad"),w={},w4.K&&(w.cttAuthInfo={token:w4.K,videoId:w4.videoId}),f&&(w.startTime=f),qH(t,w),g.Db({targetVideoId:w4.videoId,targetCpn:M.cpn,isSsdai:!0},t),I.P3.D("html5_enable_ssdai_transition_with_only_enter_cuerange")? f||VT(I,h,t):VT(I,h,t)}}else this.logger.B(360717806,"SSTEvent for nonSS")}; g.N.De=function(){var w=this.FF,M=w.wU;w.wU=[];return M}; g.N.Jf=function(w){this.videoData.wl=!0;this.vl(new g.hy("sabr.fallback",w));this.Rd(!0)}; g.N.w1=function(w,M){this.videoData.hG=!0;if(M===void 0||M)this.vl(new g.hy("qoe.restart",w)),this.Rd(!0);this.videoData.VH()&&this.D("html5_reload_caption_on_ssdai_fallback")&&this.FF.Hf()}; g.N.Qt=function(w){this.II("sdai",{aftimeout:w});this.vl(new g.hy("ad.fetchtimeout",{timeout:w}))}; g.N.wf=function(w,M){this.II("timelineerror",w);w=new g.hy("dai.timelineerror",w);M?this.WB("dai.timelineerror",1,"RETRYABLE_ERROR",WU(w.details)):this.vl(w)}; g.N.yc=function(){return g.$0(this.D4.provider)}; g.N.getPlayerSize=function(){return this.iZ.getPlayerSize()}; g.N.RQ=function(){return this.iZ.RQ()}; g.N.Li=function(){return this.rK}; g.N.VS=function(){return this.FF.VS()}; g.N.getVolume=function(){return this.FF.getVolume()}; g.N.I4=function(){return this.FF.I4()}; g.N.isMuted=function(){return this.FF.isMuted()}; g.N.aq=function(){return this.FF.aq()}; g.N.LJ=function(){this.xV=!0}; g.N.D=function(w){return this.P3.D(w)}; g.N.aH=function(w,M,P,u,X){this.II("xvt",{m:w,g:M?1:0,tt:P?1:0,np:u?1:0,c:X})}; g.N.Zc=function(){var w;(w=this.loader)==null||w.resume()}; g.N.Nr=function(){return g.o$(this.Dg,"ad")}; g.N.VX=function(){var w=this.getCurrentTime(),M=w-this.OF();var P=this.mediaElement?C3(this.mediaElement.z0()):0;P=Math.floor(Math.max(P-M,0))+100;var u;return((u=this.loader)==null?0:u.VX(M,P))?(this.II("sdai",{skipad:1,ct:M.toFixed(3),adj:P.toFixed(3)}),mC(this.videoData)&&this.loader.seek(M+P,{seekSource:89,Wk:"videoplayer_skipServerStitchedAd"}),VO4(this.kA,w),!0):!1}; g.N.FX=function(){return this.P3.FX()}; g.N.uE=function(){if(this.D("html5_generate_content_po_token"))return this.videoData.Yq||"";this.FF.YI();return this.P3.pV||""}; g.N.rl=function(){if(this.videoData.videoId)return this.videoData.Gp}; g.N.tp=function(){return this.videoData.videoId}; g.N.iO=function(){return this.FF.Df}; g.N.WG=function(){return this.JP}; g.N.Je=function(){return this.FF.Je()}; g.N.O6=function(w,M,P){this.D("html5_report_seek_source_for_utc_seeks")&&this.Pk(mI(this.playerState,16,P));this.kA.O6(w,M)}; g.N.u3=function(){this.kA.u3()}; g.N.gy=function(w,M){var P=this.D("html5_generate_content_po_token")?this.videoData:void 0;this.FF.gy(w,M,P)}; g.N.X2=function(w,M){var P;(P=this.loader)==null||P.X2(w,M)}; g.N.B1=function(){var w=this.XG();return!!w&&w.B1()}; g.N.VC=function(w,M){this.D4.VC(w,M)}; g.N.Tv=function(){return this.D4.Tv()}; g.N.lJ=function(){return this.videoData.Cj}; g.N.Mv=function(){return this.FF.Mv()}; g.N.Sa=function(){return this.FF.Sa(this)}; g.N.fY=function(){this.D_=!0}; g.N.fE=function(w){var M;(M=this.loader)==null||M.fE(w)}; g.N.bf=function(){var w;(w=this.loader)==null||w.bf()};g.V(Fsl,ux);g.V(pJ,cH);pJ.prototype.B=function(w){w&&ZT(this,this.U.getLoopVideo());this.U.logVisibility(this.element,w)}; pJ.prototype.logClick=function(){this.U.logClick(this.element)}; pJ.prototype.onLoopChange=function(w){ZT(this,w)}; pJ.prototype.L=function(w){this.U.setLoopVideo(w)};g.V(Euz,ux);g.V(N5F,ux);g.N=N5F.prototype;g.N.seekToChapterWithAnimation=function(w){var M=this;if(g.y1(this.api)&&!(w<0)){var P=this.api.getVideoData(),u=P.Q8;if(u&&w=0)return;M=~M;g.va(this.items,M,0,w);N3(this.menuItems.element,w.element,M)}w.subscribe("size-change",this.KF,this);this.menuItems.publish("size-change")}; g.N.uF=function(w){w.unsubscribe("size-change",this.KF,this);this.sO()||(g.D4(this.items,w),this.menuItems.element.removeChild(w.element),this.menuItems.publish("size-change"))}; g.N.KF=function(){this.menuItems.publish("size-change")}; g.N.focus=function(){for(var w=0,M=0;M1&&g.e8(this)}; g.N.PV=function(){r8z(this);this.J9&&(guF(this),g.w2(this.element,this.size))}; g.N.c_=function(){var w=this.B.pop();J8x(this,w,this.B[this.B.length-1],!0)}; g.N.Sm=function(w){if(!w.defaultPrevented)switch(w.keyCode){case 27:this.Wj();w.preventDefault();break;case 37:this.B.length>1&&this.c_();w.preventDefault();break;case 39:w.preventDefault()}}; g.N.focus=function(){this.B.length&&this.B[this.B.length-1].focus()}; g.N.v3=function(){g.C$.prototype.v3.call(this);this.K&&this.K.dispose();this.j&&this.j.dispose()};g.V(B6,g.lG);B6.prototype.open=function(w,M){this.initialize(w.items)&&this.w7(M,!!M)}; B6.prototype.initialize=function(w){g.dh(this.vB);if(w===void 0||w.length===0)return!1;var M=w.length;w=g.G(w);for(var P=w.next();!P.done;P=w.next())this.XF(P.value,M--);return!0}; B6.prototype.XF=function(w,M){w.menuNavigationItemRenderer?tiy(this,w.menuNavigationItemRenderer,M):w.menuServiceItemRenderer&&xQ1(this,w.menuServiceItemRenderer,M)};g.V(QI,YA);g.N=QI.prototype;g.N.Hq=function(w){w.target!==this.dismissButton.element&&w.target!==this.overflowButton.element&&(this.Bf(),this.onClickCommand&&this.U.Vs("innertubeCommand",this.onClickCommand))}; g.N.Uy=function(){this.enabled=!1;this.S.hide()}; g.N.NO=function(){return!!this.B&&this.enabled}; g.N.onVideoDataChange=function(w,M){this.Lf(M);if(this.B){this.v5();a:if(!this.isCounterfactual){var P,u,X;this.banner.update({title:(P=this.B)==null?void 0:P.title,subtitle:(u=this.B)==null?void 0:u.subtitle,metadata:(X=this.B)==null?void 0:X.metadataText});var U;this.onClickCommand=g.A((U=this.B)==null?void 0:U.onTap,Tw);var f;if(w=g.A((f=this.B)==null?void 0:f.onOverflow,Tw))this.j=g.A(w,EaC);var h;if((h=this.B)==null?0:h.thumbnailImage){var c,Z;f=((c=this.B)==null?void 0:(Z=c.thumbnailImage)== null?void 0:Z.sources)||[];if(f.length===0)break a;this.thumbnailImage.update({url:f[0].url})}else{var S;if((S=this.B)==null?0:S.thumbnailIconName){var H;this.thumbnailIcon.update({icon:(H=this.B)==null?void 0:H.thumbnailIconName})}}var p;this.shouldShowOverflowButton=!((p=this.B)==null||!p.shouldShowOverflowButton);var F;this.shouldHideDismissButton=!((F=this.B)==null||!F.shouldHideDismissButton)}var E;this.banner.element.setAttribute("aria-label",((E=this.B)==null?void 0:E.a11yLabel)||"");var y; this.t9=(y=this.B)==null?void 0:y.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;aVR(this)}}; g.N.J9k=function(){this.isVisible=!0;aVR(this)}; g.N.cDO=function(){this.isVisible=!1;aVR(this)}; g.N.XZ=function(){YA.prototype.XZ.call(this);this.L&&this.U.logVisibility(this.banner.element,this.isVisible)}; g.N.Bf=function(){YA.prototype.Bf.call(this,!1);this.L&&this.U.logClick(this.banner.element)}; g.N.cP=function(w){this.K||(this.K=new B6(this.U),g.b(this,this.K));var M,P;if((M=this.j)==null?0:(P=M.menu)==null?0:P.menuRenderer)this.K.open(this.j.menu.menuRenderer,w.target),w.preventDefault()}; g.N.Lf=function(){}; g.N.v5=function(){}; g.N.v3=function(){this.U.dB("suggested_action_view_model");YA.prototype.v3.call(this)};g.V(kA,QI); kA.prototype.Lf=function(w){var M,P,u;this.productUpsellSuggestedActionViewModel=g.A((M=w.getWatchNextResponse())==null?void 0:(P=M.playerOverlays)==null?void 0:(u=P.playerOverlayRenderer)==null?void 0:u.suggestedActionViewModel,Bq3);var X;if((X=this.productUpsellSuggestedActionViewModel)==null?0:X.content){var U;this.B=g.A((U=this.productUpsellSuggestedActionViewModel)==null?void 0:U.content,HQE)}var f,h;if(this.L=!!((f=this.productUpsellSuggestedActionViewModel)==null?0:(h=f.loggingDirectives)==null? 0:h.trackingParams)){var c,Z;this.U.setTrackingParams(this.banner.element,((c=this.productUpsellSuggestedActionViewModel)==null?void 0:(Z=c.loggingDirectives)==null?void 0:Z.trackingParams)||null)}var S;this.isCounterfactual=!((S=this.productUpsellSuggestedActionViewModel)==null||!S.isCounterfactualServing)}; kA.prototype.v5=function(){var w=[],M,P=g.G(((M=this.productUpsellSuggestedActionViewModel)==null?void 0:M.ranges)||[]);for(M=P.next();!M.done;M=P.next()){var u=M.value;u&&(M=Number(u.startTimeMilliseconds),u=Number(u.endTimeMilliseconds),isNaN(M)||isNaN(u)||w.push(new g.bg(M,u,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.U.qf(w)};g.V(wPU,ux);g.V(Rs,ux);Rs.prototype.onVideoDataChange=function(w,M){var P=this;if(!wI(M)&&(w==="newdata"&&MKx(this),this.B&&w==="dataloaded")){this.B=!1;var u;lF(dE(Ne(this.api.N(),(u=this.api.getVideoData())==null?void 0:g.Op(u)),function(X){fAz(P,X)}),function(){P.B=!0})}}; Rs.prototype.aQ=function(){var w=this;if(g.Z$(this.api.N())){var M,P=g.E_(this.api.N(),(M=this.api.getVideoData())==null?void 0:g.Op(M));return dE(Do(P),function(u){var X=J$();rI(X,u);return w.api.aQ(X)})}return Do(this.api.aQ())};g.V(g.v6,g.wa);g.N=g.v6.prototype;g.N.open=function(){g.LJ(this.Lg,this.L)}; g.N.JV=function(w){W21(this);var M=this.options[w];M&&(M.element.setAttribute("aria-checked","true"),this.iB(this.SH(w)),this.C=w)}; g.N.cI=function(w){g.dh(this.L);for(var M={},P=!1,u=0;u=0?this.B.playbackRate:1}catch(w){return 1}}; g.N.setPlaybackRate=function(w){this.getPlaybackRate()!==w&&(this.B.playbackRate=w);return w}; g.N.TL=function(){return this.B.loop}; g.N.setLoop=function(w){this.B.loop=w}; g.N.canPlayType=function(w,M){return this.B.canPlayType(w,M)}; g.N.isPaused=function(){return this.B.paused}; g.N.isSeeking=function(){return this.B.seeking}; g.N.isEnded=function(){return this.B.ended}; g.N.vY=function(){return this.B.muted}; g.N.Qj=function(w){Np();this.B.muted=w}; g.N.dC=function(){return this.B.played||I0([],[])}; g.N.z0=function(){try{var w=this.B.buffered}catch(M){}return w||I0([],[])}; g.N.Nm=function(){return this.B.seekable||I0([],[])}; g.N.kq=function(){var w=this.B;return w.getStartDate?w.getStartDate():null}; g.N.getCurrentTime=function(){return this.B.currentTime}; g.N.setCurrentTime=function(w){this.B.currentTime=w}; g.N.getDuration=function(){return this.B.duration}; g.N.load=function(){var w=this.B.playbackRate;try{this.B.load()}catch(M){}this.B.playbackRate=w}; g.N.pause=function(){this.B.pause()}; g.N.play=function(){var w=this.B.play();if(!w||!w.then)return null;w.then(void 0,function(){}); return w}; g.N.Jt=function(){return this.B.readyState}; g.N.En=function(){return this.B.networkState}; g.N.lX=function(){return this.B.error?this.B.error.code:null}; g.N.Eq=function(){return this.B.error?this.B.error.message:""}; g.N.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.B instanceof window.HTMLVideoElement&&this.B.getVideoPlaybackQuality)return this.B.getVideoPlaybackQuality();if(this.B){var w=this.B,M=w.webkitDroppedFrameCount;if(w=w.webkitDecodedFrameCount)return{droppedVideoFrames:M||0,totalVideoFrames:w}}return{}}; g.N.Ax=function(){return!!this.B.webkitCurrentPlaybackTargetIsWireless}; g.N.v9=function(){return!!this.B.webkitShowPlaybackTargetPicker()}; g.N.togglePictureInPicture=function(){var w=this.B,M=window.document;window.document.pictureInPictureEnabled?this.B!==M.pictureInPictureElement?w.requestPictureInPicture():M.exitPictureInPicture():EI()&&w.webkitSetPresentationMode(w.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.N.jX=function(){var w=this.B;return new g.gq(w.offsetLeft,w.offsetTop)}; g.N.getSize=function(){return g.iy(this.B)}; g.N.setSize=function(w){g.w2(this.B,w)}; g.N.getVolume=function(){return this.B.volume}; g.N.setVolume=function(w){Np();this.B.volume=w}; g.N.LU=function(w){this.G[w]||(this.B.addEventListener(w,this.listener),this.G[w]=this.listener)}; g.N.setAttribute=function(w,M){this.B.setAttribute(w,M)}; g.N.removeAttribute=function(w){this.B.removeAttribute(w)}; g.N.hasAttribute=function(w){return this.B.hasAttribute(w)}; g.N.xl=u2(61);g.N.Ol=u2(63);g.N.gN=u2(65);g.N.v1=u2(67);g.N.E9=function(){return p0(this.B)}; g.N.pH=function(w){g.io(this.B,w)}; g.N.Tm=function(w){return g.J1(this.B,w)}; g.N.AS=function(){return g.mG(document.body,this.B)}; g.N.audioTracks=function(){var w=this.B;if("audioTracks"in w)return w.audioTracks}; g.N.v3=function(){for(var w=g.G(Object.keys(this.G)),M=w.next();!M.done;M=w.next())M=M.value,this.B.removeEventListener(M,this.G[M]);ZS.prototype.v3.call(this)}; g.N.lQ=function(w){this.B.disableRemotePlayback=w};g.V(xA,g.r);g.V(as,g.r);as.prototype.show=function(){g.r.prototype.show.call(this);this.g$();this.h9.D("html5_enable_moving_s4n_window")&&g.Z$(this.h9.N())&&this.V()}; as.prototype.hide=function(){g.r.prototype.hide.call(this);this.delay.stop();this.X.stop()}; as.prototype.g$=function(){var w=(0,g.G$)(),M=od5(this.h9);Oe(this.B,M.bandwidth_samples);Oe(this.j,M.network_activity_samples);Oe(this.C,M.live_latency_samples);Oe(this.L,M.buffer_health_samples);var P={};M=g.G(Object.entries(M));for(var u=M.next();!u.done;u=M.next()){var X=g.G(u.value);u=X.next().value;X=X.next().value;this.S[u]!==X&&(P[u]=" "+String(X));this.S[u]=X}this.update(P);w=(0,g.G$)()-w>25?5E3:500;this.delay.start(w)}; as.prototype.V=function(){this.K?(this.position+=1,this.position>15&&(this.K=!1)):(--this.position,this.position<=0&&(this.K=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.X.start(2E4)};g.V(DD5,ux);g.V(w7,g.v);w7.prototype.B=function(){var w=(0,g.G$)()-this.startTime;w=wthis.X[w])&&(this.B=w,M0(this))}; g.N.onCueRangeExit=function(w){var M=ndR(this,w);M&&this.B===w&&this.api.Vs("innertubeCommand",M);this.clearTimeout();this.B=void 0}; g.N.onTimeout=function(w){this.B!==void 0&&(w==null?void 0:w.cueRangeId)===this.B&&(this.S=!1,(w=ndR(this,this.B))&&this.api.Vs("innertubeCommand",w))}; g.N.vA=function(w){this.C=w}; g.N.OI=function(){M0(this);this.C=void 0}; g.N.setTimeout=function(w){var M=this,P=Number(w==null?void 0:w.maxVisibleDurationMilliseconds);P&&(this.clearTimeout(),this.B3=setTimeout(function(){M.onTimeout(w)},P))}; g.N.clearTimeout=function(){this.B3&&clearTimeout(this.B3);this.B3=void 0;this.S=!1}; g.N.v3=function(){this.timelyActions=this.C=this.B=this.videoId=void 0;this.X={};this.jH();this.clearTimeout();ux.prototype.v3.call(this)};g.V(K2u,ux);g.V(up,cH);up.prototype.K=function(w){this.X(w?2:1)}; up.prototype.L=function(){var w=this.U.getPresentingPlayerType();w===2||w===3?(this.B=!1,this.Lg.uF(this)):this.B||(w=this.hasVoiceBoostAudioTrack(),this.setEnabled(w),w=this.C()===2&&w,ZT(this,w),this.Lg.XF(this),this.B=!0)}; up.prototype.v3=function(){this.Lg.uF(this);cH.prototype.v3.call(this)};g.V(Xf,ux);Xf.prototype.getVoiceBoostUserPreference=function(){return this.B}; Xf.prototype.setVoiceBoostUserPreference=function(w){this.api.II("vb_set",{pref:w});g.Tg("yt-player-voice-boost",w);w!==this.B&&(this.B=w,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.Pe())}; Xf.prototype.hasVoiceBoostAudioTrack=function(){var w,M,P=(w=this.api.getVideoData())==null?void 0:(M=w.C)==null?void 0:M.B;return P?K5(P,function(u){var X;return((X=u.audio)==null?void 0:X.L)===!0}):!1}; Xf.prototype.updateEnvironmentData=function(){this.api.N().rY=this.B};var OIx=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.V(fo,ux);fo.prototype.v3=function(){this.j&&(g.HF(this.j),this.j=void 0);ux.prototype.v3.call(this)}; fo.prototype.YI=function(){(this.L?!this.B:this.C)&&hI(this)}; fo.prototype.j1=function(w,M,P){var u=this;if(Al5(w)){var X=P||"";if(this.B)M=c4(this,X),gdz(w,M);else{var U=new g.hC;M.push(U.promise);this.G.promise.then(function(){var f=c4(u,X);gdz(w,f);U.resolve()})}}}; fo.prototype.cV=function(w){var M=this;if(this.L||this.C)w.Yq=c4(this,w.videoId),this.B||(this.X=new cp,this.G.promise.then(function(){M.rK.BZ("pot_if");w.Yq=c4(M,w.videoId)}))};g.V(g.SO,g.r);g.SO.prototype.select=function(){this.api.Hx(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.sV||void 0)&&this.api.logClick(this.element)}; g.SO.prototype.onClick=function(w){if(g.K7(this.api.N())&&this.api.D("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var M=this.suggestion.eA(),P={};g.vV(this.api,P);M=g.p5(M,P);g.HH(M,this.api,w)}else g.SZ(w,this.api,this.L,this.suggestion.sessionData||void 0)&&this.select()}; g.SO.prototype.onKeyPress=function(w){switch(w.keyCode){case 13:case 32:w.defaultPrevented||(this.select(),w.preventDefault())}}; g.SO.prototype.onVideoDataChange=function(){var w=this.api.getVideoData(),M=this.api.N();this.L=w.Ym?!1:M.X};g.V(H4,g.r);H4.prototype.v3=function(){this.hide();g.qi(this.B);g.iZ(this.stills);this.stills.length=0;g.r.prototype.v3.call(this)}; H4.prototype.C=function(w){this.L&&this.L(w)}; H4.prototype.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var w,M,P,u,X;var U=(((w=this.videoData)==null?0:(M=w.suggestions)==null?0:M.length)?(P=this.videoData)==null?void 0:P.suggestions:((u=this.videoData)==null?0:g.Zw(u))?[(X=this.videoData)==null?void 0:g.Zw(X)]:[]).slice(0,12);w=this.X;g.ES(w);if(U.length)for(this.stills.length>U.length&&g.iZ(this.stills.splice(U.length)),this.stills.length=U.length,M=0;M=0;w--)this.features[w].dispose();this.features.length=0;g.v.prototype.v3.call(this)};fyu.prototype.reset=function(){this.B=this.L=NaN};g.N=W35.prototype;g.N.reset=function(){mX(this.timerName)}; g.N.tick=function(w,M){yc(w,M,this.timerName)}; g.N.BZ=function(w){return zv(w,void 0,this.timerName)}; g.N.bP=function(w){g.KO(w,void 0,this.timerName)}; g.N.infoGel=function(w){g.Db(w,this.timerName)};g.V(ZG5,g.wC);g.N=ZG5.prototype;g.N.kH=function(w){return this.loop||!!w||this.index+1=0}; g.N.setShuffle=function(w){this.shuffle=w;w=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var M=0;M0)||v4(this,1,!0)}; g.N.xE=function(){this.K=!0;this.B.Mt(this.G);this.G=this.B.Y(document,"mouseup",this.IZ)}; g.N.IZ=function(){this.K=!1;v4(this,8,!1);this.B.Mt(this.G);this.G=this.B.Y(this.target,"mousedown",this.xE)}; g.N.e9=function(w){if(w=(w=w.changedTouches)&&w[0])this.ys=w.identifier,this.B.Mt(this.V),this.V=this.B.Y(this.target,"touchend",this.pn,void 0,!0),v4(this,1024,!0)}; g.N.pn=function(w){if(w=w.changedTouches)for(var M=0;M1280||X>720)if(M=u.Md("maxresdefault.jpg"))break;if(U>640||X>480)if(M=u.Md("maxresdefault.jpg"))break;if(U>320||X>180)if(M=u.Md("sddefault.jpg")||u.Md("hqdefault.jpg")||u.Md("mqdefault.jpg"))break;if(M=u.Md("default.jpg"))break}g.c0(w)&&(w=new Image,w.addEventListener("load", function(){Wh5()}),w.src=M?M:"",this.api.Li().tick("ftr")); this.X.style.backgroundImage=M?"url("+M+")":""};g.V(g.I5,g.r);g.I5.prototype.resize=function(){}; g.I5.prototype.L=function(w){var M=this;this.C=!1;OG2(this);var P=w.vM,u=this.api.N();P!=="GENERIC_WITHOUT_LINK"||u.K?P==="TOO_MANY_REQUESTS"?(u=this.api.getVideoData(),this.iB(JI(this,"TOO_MANY_REQUESTS_WITH_LINK",u.eA(),void 0,void 0,void 0,!1))):P!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||u.K?this.api.N().D("html5_enable_bandaid_error_screen")&&P==="HTML5_SPS_UMP_STATUS_REJECTED"&&!u.K?(u=u.hostLanguage,w="//support.google.com/youtube?p=videoError",u&&(w=g.p5(w,{hl:u})),this.iB(JI(this,"HTML5_SPS_UMP_STATUS_REJECTED", w))):this.api.N().D("enable_adb_handling_in_sabr")&&P==="BROWSER_OR_EXTENSION_ERROR"&&!u.K?(u=u.hostLanguage,w="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",u&&(w=g.p5(w,{hl:u})),this.iB(JI(this,"BROWSER_OR_EXTENSION_ERROR",w))):this.iB(g.AI(w.errorMessage)):this.iB(JI(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(w=u.hostLanguage,P="//support.google.com/youtube/?p=player_error1",w&&(P=g.p5(P, {hl:w})),this.iB(JI(this,"GENERIC_WITH_LINK_AND_CPN",P,!0)),u.QE&&!u.X&&x8x(this,function(U){if(g.SZ(U,M.api,!XD(M.api.N()))){U={as3:!1,html5:!0,player:!0,cpn:M.api.getVideoData().clientPlaybackNonce};var f=M.api;f.z5("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:U});f.isFullscreen()&&f.toggleFullscreen()}})); if(this.C){var X=this.RI("ytp-error-link");X&&(this.api.createClientVe(X,this,216104),this.api.logVisibility(X,!0),x8x(this,function(){M.api.logClick(X)}))}}; var to5=/([^<>]+)<\/a>/;g.V(ay5,g.r);ay5.prototype.MS=function(w,M,P){P=P===void 0?!1:P;switch(M){case 1:r7(this,w,this.C,P);break;case 2:r7(this,w,this.X,P);break;case 3:r7(this,w,this.B,P);break;case 4:r7(this,w,this.L,P)}};g.V(wyl,g.r);g.N=wyl.prototype;g.N.onClick=function(w){this.innertubeCommand?(this.U.Vs("innertubeCommand",this.innertubeCommand),w.preventDefault()):g.SZ(w,this.U,!0);this.U.logClick(this.element)}; g.N.onVideoDataChange=function(w,M){MN_(this,M);this.zt&&PkF(this,this.zt)}; g.N.vP=function(w){var M=this.U.getVideoData();this.videoId!==M.videoId&&MN_(this,M);this.B&&PkF(this,w.state);this.zt=w.state}; g.N.w7=function(){this.fade.show();this.U.publish("paidcontentoverlayvisibilitychange",!0);this.U.logVisibility(this.element,!0)}; g.N.Wj=function(){this.fade.hide();this.U.publish("paidcontentoverlayvisibilitychange",!1);this.U.logVisibility(this.element,!1)};g.V(jO,g.r);jO.prototype.hide=function(){this.B.stop();this.message.style.display="none";g.r.prototype.hide.call(this)}; jO.prototype.onStateChange=function(w){this.g7(w.state)}; jO.prototype.g7=function(w){if(g.C(w,128)||this.api.WG())var M=!1;else{var P;M=this.api.D("web_watch_enable_multiview_manager")&&((P=this.api.getVideoData())==null?0:wI(P))?!1:g.C(w,16)||g.C(w,1)?!0:!1}M?this.B.start():this.hide()}; jO.prototype.L=function(){this.message.style.display="block"};g.V(Co,g.C$);Co.prototype.onMutedAutoplayChange=function(w){this.C&&(w?(usy(this),this.w7()):(this.B&&this.logClick(),this.Wj()))}; Co.prototype.S1=function(w){this.api.isMutedByMutedAutoplay()&&g.fW(w,2)&&this.Wj()}; Co.prototype.onClick=function(){this.api.unMute();this.logClick()}; Co.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.V(g.tI,g.V2);g.N=g.tI.prototype;g.N.init=function(){var w=this.api,M=w.getPlayerStateObject();this.YK=w.getPlayerSize();this.Pk(M);this.Be();this.o9();this.api.publish("basechromeinitialized",this);this.L4()&&this.api.publish("standardControlsInitialized")}; g.N.onVideoDataChange=function(w,M){var P=this.dM!==M.videoId;if(P||w==="newdata")w=this.api,w.isFullscreen()||(this.YK=w.getPlayerSize());P&&(this.dM=M.videoId,P=this.xD,P.Cu=3E3,v4(P,512,!0),this.Be());this.api.D("web_render_jump_buttons")&&M.showSeekingControls&&(this.dV=572)}; g.N.hi$=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.N.nZ=function(){var w=this.api.cw()&&this.api.Gg(),M=this.api.HY();return this.jh||w||this.hS||M}; g.N.fK=function(){var w=!this.nZ();g.X6(this.api.getRootNode(),"ytp-menu-shown",!w)}; g.N.MV=function(w){try{if(!g.mG(this.api.getRootNode(),w))return!1}catch(M){return!1}for(;w&&!s$M(w);)w=w===this.api.getRootNode()?null:w.parentElement||null;return!!w}; g.N.oF=function(w){var M=this.api.getRootNode();g.X6(M,"ytp-autohide",w);g.X6(M,"ytp-autohide-active",!0);this.DD.start(w?250:100);w&&(this.QD=!1,g.PI(M,"ytp-touch-mode"));this.TO=!w;this.api.BT(!w);this.api.D("delhi_modern_web_player")&&this.api.publish("autohideupdate",w)}; g.N.z6=function(){var w=this.api.getRootNode();g.X6(w,"ytp-autohide-active",!1)}; g.N.T7k=function(){this.hR=!0}; g.N.jv$=function(w){if(this.api.N().D("player_doubletap_to_seek")||this.api.N().j)this.hR=!1,this.O2&&this.Mt(this.O2),this.zc===0&&OW(this,w)?(this.OM(),this.jy.start(),this.O2=this.Y(this.api.oI(),"touchmove",this.T7k,void 0,!0)):this.jy.stop();fD1(this)&&OW(this,w)&&!this.api.N().j&&$O5(this);var M=this.wS.yu();if(!g.K7(this.api.N())&&Rj&&WwU(this,w))M&&w.preventDefault();else if(this.QD=!0,g.io(this.api.getRootNode(),"ytp-touch-mode"),this.xD.Z7(),this.api.N().D("player_doubletap_to_seek")||this.api.N().j)if(M= this.api.getPlayerStateObject(),!(!this.api.q8()||g.C(M,2)&&g.Q1(this.api)||g.C(M,64))){M=Date.now()-this.XA;this.zc+=1;if(M<=350){this.J4=!0;M=this.api.getPlayerSize().width/3;var P=this.api.getRootNode().getBoundingClientRect(),u=w.targetTouches[0].clientX-P.left;P=w.targetTouches[0].clientY-P.top;var X=(this.zc-1)*10;u>0&&uM*2&&u=650,u=w.width<528;this.xD.resize();g.X6(M,"ytp-fullscreen",this.api.isFullscreen());g.X6(M,"ytp-large-width-mode",P);this.api.D("delhi_modern_web_player")?g.X6(M,"ytp-xsmall-width-mode",u):g.X6(M,"ytp-small-mode",this.Jx());g.X6(M,"ytp-tiny-mode",this.A7());g.X6(M,"ytp-big-mode",this.WZ());this.G0&&this.G0.resize(w)}; g.N.S1=function(w){this.Pk(w.state);this.Be()}; g.N.wi=u2(3);g.N.Vm=function(){var w=!!this.dM&&!this.api.eU()&&!this.lK,M=this.api.getPresentingPlayerType()===2,P=this.api.N();return M?(M=B4(this.api.I9()),w&&(M&&M.player?w=(w=M.player.getVideoData(2))?w.isListed&&!g.hP(M.player.N()):!1:(X$("showInfoBarDuringAd: this is null"),w=!1)),w):w&&(P.BC||this.api.isFullscreen()||P.Ye)}; g.N.Be=function(){var w=this.Vm();this.iE!==w&&(this.iE=w,g.X6(this.api.getRootNode(),"ytp-hide-info-bar",!w))}; g.N.Pk=function(w){var M=w.isCued()||this.api.sB()&&this.api.getPresentingPlayerType()!==3;M!==this.isCued&&(this.isCued=M,this.gS&&this.Mt(this.gS),this.gS=this.Y(this.api.oI(),"touchstart",this.jv$,void 0,M));var P=this.xD,u=w.isPlaying()&&!g.C(w,32)||this.api.Ld();v4(P,128,!u);P=this.xD;u=this.api.getPresentingPlayerType()===3;v4(P,256,u);P=this.api.getRootNode();g.C(w,2)?u=[tU.ENDED]:(u=[],g.C(w,8)?u.push(tU.PLAYING):g.C(w,4)&&u.push(tU.PAUSED),g.C(w,1)&&!g.C(w,32)&&u.push(tU.BUFFERING),g.C(w, 32)&&u.push(tU.SEEKING),g.C(w,64)&&u.push(tU.UNSTARTED));g.jp(this.YB,u)||(g.uo(P,this.YB),this.YB=u,g.MB(P,u));u=this.api.N();var X=g.C(w,2);a:{var U=this.api.N();var f=U.controlsType;switch(f){case "2":case "0":U=!1;break a}U=f==="3"&&!g.C(w,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:QFE(B4(this.api.I9())))||this.api.HY()||g.K7(U)&&this.api.getPresentingPlayerType()===2?!1:!0}g.X6(P,"ytp-hide-controls",!U);g.X6(P,"ytp-native-controls",u.controlsType==="3"&&!M&&!X&&!this.hS);g.C(w, 128)&&!g.K7(u)?(this.G0||(this.G0=new g.I5(this.api),g.b(this,this.G0),g.bD(this.api,this.G0.element,4)),this.G0.L(w.tV),this.G0.show()):this.G0&&(this.G0.dispose(),this.G0=null)}; g.N.QS=function(){return this.api.cw()&&this.api.Gg()?(this.api.gi(!1,!1),!0):this.api.eU()?(g.kt(this.api,!0),!0):!1}; g.N.onMutedAutoplayChange=function(w){this.hS=w;this.fK()}; g.N.WZ=function(){return!1}; g.N.Jx=function(){return!this.WZ()&&(this.api.getPlayerSize().width=0&&M.left>=0&&M.bottom>M.top&&M.right>M.left?M:null;M=this.size;w=w.clone();M=M.clone();u&&(f=M,X=5,(X&65)==65&&(w.x=u.right)&&(X&=-2),(X&132)==132&&(w.y=u.bottom)&&(X&=-5),w.xu.right&&(f.width=Math.min(u.right-w.x,U+f.width-u.left),f.width=Math.max(f.width,0))),w.x+f.width>u.right&&X&1&&(w.x=Math.max(u.right-f.width,u.left)),w.yu.bottom&&(f.height=Math.min(u.bottom-w.y,U+f.height-u.top),f.height=Math.max(f.height,0))),w.y+f.height>u.bottom&&X&4&&(w.y=Math.max(u.bottom-f.height,u.top)));u=new g.Kj(0,0,0,0);u.left=w.x;u.top=w.y;u.width= M.width;u.height=M.height;g.t1(this.element,new g.gq(u.left,u.top));g.qi(this.X);this.X.Y(t$(this),"contextmenu",this.Zuu);this.X.Y(this.U,"fullscreentoggled",this.onFullscreenToggled);this.X.Y(this.U,"pageTransition",this.MD)}; g.N.Zuu=function(w){if(!w.defaultPrevented){var M=oS(w);g.mG(this.element,M)||this.Wj();this.U.N().disableNativeContextMenu&&w.preventDefault()}}; g.N.onFullscreenToggled=function(){this.Wj();BBz(this)}; g.N.MD=function(){this.Wj()};g.V(Uy,g.r);Uy.prototype.onClick=function(){var w=this,M,P,u,X;return g.n(function(U){if(U.L==1)return M=w.api.N(),P=w.api.getVideoData(),u=w.api.getPlaylistId(),X=M.getVideoUrl(P.videoId,u,void 0,!0),g.B(U,R7u(w,X),2);U.B&&kD_(w);w.api.logClick(w.element);g.yx(U)})}; Uy.prototype.g$=function(){this.updateValue("icon",{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!0,T:"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","Copiar v\u00ednculo");this.visible=QG5(this);g.X6(this.element,"ytp-copylink-button-visible", this.visible);this.AD(this.visible);this.tooltip.j0();this.api.logVisibility(this.element,this.visible&&this.G)}; Uy.prototype.jK=function(w){g.r.prototype.jK.call(this,w);this.api.logVisibility(this.element,this.visible&&w)}; Uy.prototype.v3=function(){g.r.prototype.v3.call(this);g.PI(this.element,"ytp-copylink-button-visible")};g.V(n21,g.r);g.N=n21.prototype;g.N.show=function(){g.r.prototype.show.call(this);g.JK(this.L)}; g.N.hide=function(){this.X.stop();this.C=0;this.RI("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.PI(this.element,"ytp-chapter-seek");g.PI(this.element,"ytp-time-seeking");g.r.prototype.hide.call(this)}; g.N.di=function(w,M,P,u){this.C=w===this.j?this.C+u:u;this.j=w;var X=w===-1?this.S:this.V;X&&this.U.logClick(X);this.K?this.L.stop():g.jr(this.L);this.X.start();this.element.setAttribute("data-side",w===-1?"back":"forward");var U=3*this.U.oI().getPlayerSize().height;X=this.U.oI().getPlayerSize();X=X.width/3-3*X.height;this.B.style.width=U+"px";this.B.style.height=U+"px";w===1?(this.B.style.left="",this.B.style.right=X+"px"):w===-1&&(this.B.style.right="",this.B.style.left=X+"px");var f=U*2.5;U=f/ 2;var h=this.RI("ytp-doubletap-ripple");h.style.width=f+"px";h.style.height=f+"px";w===1?(w=this.U.oI().getPlayerSize().width-M+Math.abs(X),h.style.left="",h.style.right=w-U+"px"):w===-1&&(w=Math.abs(X)+M,h.style.right="",h.style.left=w-U+"px");h.style.top="calc((33% + "+Math.round(P)+"px) - "+U+"px)";if(P=this.RI("ytp-doubletap-ripple"))P.classList.remove("ytp-doubletap-ripple"),P.classList.add("ytp-doubletap-ripple");v2F(this,this.K?this.C:u)}; g.N.jz=function(w,M,P){if(P=P===void 0?null:P){var u=w===-1?this.S.visualElement:this.V.visualElement;P={seekData:P};var X=g.En();X&&g.j2(Ag)(void 0,X,u,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",P,void 0)}this.C=w===this.j?this.C+M:M;this.j=w;u=this.U.oI().getPlayerSize();this.K?this.L.stop():g.jr(this.L);this.X.start();this.element.setAttribute("data-side",w===-1?"back":"forward");g.io(this.element,"ytp-time-seeking");this.B.style.width="110px";this.B.style.height="110px";P=u.width*.1-15;w=== 1?this.B3?(this.B.style.right=P+"px",this.B.style.left=""):(this.B.style.right="",this.B.style.left=u.width*.8-30+"px"):w===-1&&(this.B3?(this.B.style.right="",this.B.style.left=P+"px"):(this.B.style.right="",this.B.style.left=u.width*.1-15+"px"));this.B.style.top=u.height*.5+15+"px";v2F(this,this.K?this.C:M)}; g.N.VK=function(w,M,P){P=P===void 0?null:P;g.jr(this.L);this.X.start();switch(w){case -1:w="back";break;case 1:w="forward";break;default:w=""}this.element.setAttribute("data-side",w);this.B.style.width="0";this.B.style.height="0";g.io(this.element,"ytp-chapter-seek");this.updateValue("seekText",M);this.updateValue("seekTime","");M=this.RI("ytp-seek-icon");if(P){a:if(P){switch(P){case "PREMIUM_STANDALONE":P=THU();break a;case "PREMIUM_STANDALONE_CAIRO":P=diu();break a}P=void 0}else P=null;this.updateValue("seekIcon", P);M.style.display="inline-block"}else M.style.display="none"};g.V(sGH,YA);g.N=sGH.prototype;g.N.yG=function(w){this.UO||(this.UO=new B6(this.U),g.b(this,this.UO));var M,P;if((M=this.cj)==null?0:(P=M.menu)==null?0:P.menuRenderer)this.UO.open(this.cj.menu.menuRenderer,w.target),w.preventDefault()}; g.N.NO=function(){return!!this.B}; g.N.yD=function(){return!!this.B}; g.N.Hq=function(w){w.target===this.overflowButton.element?w.preventDefault():(this.VE&&this.U.Vs("innertubeCommand",this.VE),this.Bf(!1))}; g.N.Uy=function(){this.Bf(!0);var w,M;((w=this.B)==null?0:(M=w.bannerData)==null?0:M.dismissedStatusKey)&&this.GE.push(this.B.bannerData.dismissedStatusKey);this.tY()}; g.N.KS=function(){this.tY();h8(this)}; g.N.uP$=function(w){var M=this,P;if(w.id!==((P=this.B)==null?void 0:P.identifier)){this.tY();P=g.G(this.ys);for(var u=P.next();!u.done;u=P.next()){var X=u.value,U=void 0,f=void 0;if((u=(U=X)==null?void 0:(f=U.bannerData)==null?void 0:f.itemData)&&X.identifier===w.id){f=U=void 0;var h=((U=X)==null?void 0:(f=U.bannerData)==null?void 0:f.dismissedStatusKey)||"";if(this.GE.includes(h))return;this.B=X;this.banner.element.setAttribute("aria-label",u.accessibilityLabel||"");u.trackingParams&&(this.X=!0, this.U.setTrackingParams(this.badge.element,u.trackingParams));this.show();this.S.show();qF(this);this.Cu.AD(!u.stayInApp);OXM(this);bXz(this);Wc(this);this.VE=g.A(u.onTapCommand,Tw);if(X=g.A(u.menuOnTap,Tw))this.cj=g.A(X,EaC);X=void 0;this.banner.update({thumbnail:(X=(u.thumbnailSources||[])[0])==null?void 0:X.url,title:u.productTitle,price:u.priceReplacementText?u.priceReplacementText:u.price,salesOriginalPrice:g2x(this),priceDropReferencePrice:Jpu(this),promotionText:Apx(this),priceA11yText:rpz(this), affiliateDisclaimer:u.affiliateDisclaimer,vendor:jG5(this)});h=f=U=X=void 0;((X=u)==null?0:(U=X.hiddenProductOptions)==null?0:U.showDropCountdown)&&((f=u)==null?0:(h=f.hiddenProductOptions)==null?0:h.dropTimestampMs)&&(this.M7=new g.gV(function(){xOH(M)},1E3),this.Cu.hide(),this.countdownTimer.show(),xOH(this)); this.U.D("web_player_enable_featured_product_banner_exclusives_on_desktop")&&Kw1(this)&&(this.QE=new g.gV(function(){IDl(M)},1E3),IDl(this))}}this.U.getRootNode()&&g.io(this.U.getRootNode(),"ytp-featured-product-shown")}}; g.N.tY=function(){this.B&&(this.B=void 0,this.oY(),this.U.getRootNode()&&g.PI(this.U.getRootNode(),"ytp-featured-product-shown"))}; g.N.onVideoDataChange=function(w,M){var P=this;w==="dataloaded"&&h8(this);var u,X,U;w=g.A((u=M.getWatchNextResponse())==null?void 0:(X=u.playerOverlays)==null?void 0:(U=X.playerOverlayRenderer)==null?void 0:U.productsInVideoOverlayRenderer,p1j);this.overflowButton.show();this.dismissButton.hide();var f=w==null?void 0:w.featuredProductsEntityKey;this.trendingOfferEntityKey=w==null?void 0:w.trendingOfferEntityKey;this.ys.length||(tNx(this,f),Wc(this));var h;(h=this.sb)==null||h.call(this);this.sb=g.H7.subscribe(function(){tNx(P, f);Wc(P)})}; g.N.v3=function(){h8(this);OXM(this);bXz(this);YA.prototype.v3.call(this)};g.V(P9u,g.r);P9u.prototype.onClick=function(){this.U.logClick(this.element,this.L)};g.V(u0z,g.C$);g.N=u0z.prototype;g.N.show=function(){g.C$.prototype.show.call(this);this.U.publish("infopaneldetailvisibilitychange",!0);this.U.logVisibility(this.element,!0);Xwu(this,!0)}; g.N.hide=function(){g.C$.prototype.hide.call(this);this.U.publish("infopaneldetailvisibilitychange",!1);this.U.logVisibility(this.element,!1);Xwu(this,!1)}; g.N.getId=function(){return this.X}; g.N.Nu=function(){return this.itemData.length}; g.N.onVideoDataChange=function(w,M){if(M){var P,u,X,U;this.update({title:((P=M.Zv)==null?void 0:(u=P.title)==null?void 0:u.content)||"",body:((X=M.Zv)==null?void 0:(U=X.bodyText)==null?void 0:U.content)||""});var f;w=((f=M.Zv)==null?void 0:f.trackingParams)||null;this.U.setTrackingParams(this.element,w);f=g.G(this.itemData);for(w=f.next();!w.done;w=f.next())w.value.dispose();this.itemData=[];var h;if((h=M.Zv)==null?0:h.ctaButtons)for(M=g.G(M.Zv.ctaButtons),h=M.next();!h.done;h=M.next())if(h=g.A(h.value, WAc))h=new P9u(this.U,h,this.B),h.Nf&&(this.itemData.push(h),h.XK(this.items))}}; g.N.v3=function(){this.hide();g.C$.prototype.v3.call(this)};g.V(fXM,g.r);g.N=fXM.prototype;g.N.onVideoDataChange=function(w,M){UgM(this,M);this.zt&&hEy(this,this.zt)}; g.N.Uh=function(w){var M=this.U.getVideoData();this.videoId!==M.videoId&&UgM(this,M);hEy(this,w.state);this.zt=w.state}; g.N.k_=function(w){(this.C=w)?this.hide():this.B&&this.show()}; g.N.WP=function(){this.L||this.w7();this.showControls=!0}; g.N.Xa=function(){this.L||this.Wj();this.showControls=!1}; g.N.w7=function(){var w,M=(w=this.U)==null?void 0:w.getPlayerSize();w=M.width<380;var P;M=M.height<(((P=this.U)==null?0:P.isEmbedsShortsMode())?400:280);var u,X;(((u=this.U)==null?0:u.getPlayerStateObject().isCued())||((X=this.U)==null?0:g.C(X.getPlayerStateObject(),1024)))&&w&&M||!this.B||this.C||(this.fade.show(),this.U.publish("infopanelpreviewvisibilitychange",!0),this.U.logVisibility(this.element,!0))}; g.N.Wj=function(){this.B&&!this.C&&(this.fade.hide(),this.U.publish("infopanelpreviewvisibilitychange",!1),this.U.logVisibility(this.element,!1))}; g.N.ix$=function(){this.L=!1;this.showControls||this.Wj()};var VAU={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(VAU).reduce(function(w,M){w[VAU[M]]=M;return w},{}); var mqV={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(mqV).reduce(function(w,M){w[mqV[M]]=M;return w},{}); var owt={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(owt).reduce(function(w,M){w[owt[M]]=M;return w},{});var Gda,ydc;Gda=[{option:"#fff",text:"Blanco"},{option:"#ff0",text:"Amarillo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Cian"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Rojo"},{option:"#080808",text:"Negro"}];ydc=[{option:0,text:cc(0)},{option:.25,text:cc(.25)},{option:.5,text:cc(.5)},{option:.75,text:cc(.75)},{option:1,text:cc(1)}]; g.pa=[{option:"fontFamily",text:"Familia de fuente",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Informal"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:Gda},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:cc(.5)},{option:-1,text:cc(.75)},{option:0,text:cc(1)},{option:1, text:cc(1.5)},{option:2,text:cc(2)},{option:3,text:cc(3)},{option:4,text:cc(4)}]},{option:"background",text:"Color de fondo",options:Gda},{option:"backgroundOpacity",text:"Opacidad de fondo",options:ydc},{option:"windowColor",text:"Color de la ventana",options:Gda},{option:"windowOpacity",text:"Opacidad de la ventana",options:ydc},{option:"charEdgeStyle",text:"Estilo de borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"En relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de fuente",options:[{option:.25,text:cc(.25)},{option:.5,text:cc(.5)},{option:.75,text:cc(.75)},{option:1,text:cc(1)}]}];var Dq$=[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.V(Fix,g.V2);g.N=Fix.prototype; g.N.gX=function(w){w.repeat||(this.C.Zh=!1);var M=!1,P=w.keyCode,u=oS(w),X=!w.altKey&&!w.ctrlKey&&!w.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||Dq$.includes(P)),U=!1,f=!1,h=this.api.N();w.defaultPrevented?(X=!1,f=!0):h.Kx&&!this.api.isMutedByEmbedsMutedAutoplay()&&(X=!1);if(P===9)M=!0;else{if(u)switch(P){case 32:case 13:if(u.tagName==="BUTTON"||u.tagName==="A"||u.tagName==="INPUT")M=!0,X=!1;else if(X){var c=u.getAttribute("role");!c||c!=="option"&&c!=="button"&&c.indexOf("menuitem")!==0|| (M=!0,u.click(),U=!0)}break;case 37:case 39:case 36:case 35:M=u.getAttribute("role")==="slider";break;case 38:case 40:c=u.getAttribute("role"),u=P===38?u.previousSibling:u.nextSibling,c==="slider"?M=!0:X&&(c==="option"?(u&&u.getAttribute("role")==="option"&&u.focus(),U=M=!0):c&&c.indexOf("menuitem")===0&&(u&&u.hasAttribute("role")&&u.getAttribute("role").indexOf("menuitem")===0&&u.focus(),U=M=!0))}if(X&&!U)switch(P){case 38:U=Math.min(this.api.getVolume()+5,100);iJ(this.hw,U,!1);this.api.setVolume(U); f=U=!0;break;case 40:U=Math.max(this.api.getVolume()-5,0);iJ(this.hw,U,!0);this.api.setVolume(U);f=U=!0;break;case 36:this.api.q8()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),f=U=!0);break;case 35:this.api.q8()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),f=U=!0)}}M&&Si(this,!0);(M||f)&&this.xD.Z7();(U||X&&this.handleGlobalKeyDown(P,w.shiftKey,w.ctrlKey,w.altKey,w.metaKey,w.key,w.code,w.repeat))&&w.preventDefault();h.V&&(w={keyCode:w.keyCode, altKey:w.altKey,ctrlKey:w.ctrlKey,metaKey:w.metaKey,shiftKey:w.shiftKey,handled:w.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.OE("onKeyPress",w))}; g.N.aR=function(w){var M=w.keyCode;(!this.api.D("web_player_spacebar_control_bugfix")||this.api.D("web_player_spacebar_control_bugfix")&&!this.C.qA)&&this.handleGlobalKeyUp(M,w.shiftKey,w.ctrlKey,w.altKey,w.metaKey,w.key,w.code)&&w.preventDefault()}; g.N.handleGlobalKeyUp=function(w,M,P,u,X,U,f){this.api.publish("keyboardserviceglobalkeyup",{keyCode:w,shiftKey:M,ctrlKey:P,altKey:u,metaKey:X,key:U,code:f});M=!1;if(this.C.Zh)return M;(U=g.sr(this.api.I9()))&&(U=U.Vp)&&U.J9&&(U.h6(w),M=!0);switch(w){case 9:Si(this,!0);M=!0;break;case 32:if(this.api.D("web_speedmaster_spacebar_control")&&(!this.api.D("web_player_spacebar_control_bugfix")&&!this.C.qA||this.api.D("web_player_spacebar_control_bugfix"))&&!this.api.N().Kx){var h,c;w=(h=this.progressBar)== null?void 0:(c=h.L)==null?void 0:c.isEnabled;M=this.o8(w)}break;case 39:(P$?u:P)&&!X&&this.api.q8()&&this.api.D("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),h=(h=this.api.getVideoData())?h.Q8:[],c=ZTu(h,this.api.getCurrentTime()*1E3),c!==-1&&this.B!=null&&(this.B.VK(1,h[c].title),this.api.seekTo(h[c].startTime/1E3,void 0,void 0,void 0,52),M=!0))}return M}; g.N.handleGlobalKeyDown=function(w,M,P,u,X,U,f,h){h||(this.C.Zh=!1);var c=!1,Z=this.api.N();if(Z.Kx&&!this.api.isMutedByEmbedsMutedAutoplay())return c;var S=g.sr(this.api.I9());if(S&&(S=S.Vp)&&S.J9)switch(w){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:c=S.DL(w)}Z.K||c||(c=U||String.fromCharCode(w).toLowerCase(),this.L+=c,"awesome".indexOf(this.L)===0||this.api.D("web_player_rtr_ctrls")&&"bday".indexOf(this.L)===0?(c=!0,4===this.L.length&&this.L==="bday"&&this.api.D("web_player_rtr_ctrls")&& (uAz(this.G),this.xD.Z7()),7===this.L.length&&this.L==="awesome"&&zq1(this.api.getRootNode(),"ytp-color-party")):(this.L=c,c="awesome".indexOf(this.L)===0||"bday".indexOf(this.L)===0));if(!c&&(!this.api.isMutedByEmbedsMutedAutoplay()||Dq$.includes(w))){var H=this.api.getVideoData(),p,F;S=(p=this.progressBar)==null?void 0:(F=p.L)==null?void 0:F.isEnabled;p=H?H.Q8:[];F=P$?u:P;switch(w){case 80:M&&!Z.eL&&(w5(this.hw,lqz(),"Anterior"),this.api.previousVideo(),c=!0);break;case 78:M&&!Z.eL&&(w5(this.hw, FT(),"Siguiente"),this.api.nextVideo(),c=!0);break;case 74:this.api.q8()&&(this.api.startSeekCsiAction(),this.B?this.api.D("enable_key_press_seek_logging")?(c=Hc(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.B.jz(-1,10,c)):this.B.jz(-1,10):w5(this.hw,{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!0,T:"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),c=!0);break;case 76:this.api.q8()&&(this.api.startSeekCsiAction(),this.B?this.api.D("enable_key_press_seek_logging")?(c=Hc(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.B.jz(1,10,c)):this.B.jz(1,10):w5(this.hw,{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!0,T:"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),c=!0);break;case 37:this.api.q8()&&(this.api.startSeekCsiAction(),F?(F=S5M(p,this.api.getCurrentTime()*1E3),F!==-1&&this.B!=null&&(this.B.VK(-1,p[F].title),this.api.seekTo(p[F].startTime/1E3,void 0,void 0,void 0,53),c=!0)):(this.B?this.api.D("enable_key_press_seek_logging")?(c=Hc(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.B.jz(-1,5,c)):this.B.jz(-1,5):w5(this.hw,{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},J:[{W:"path",fT:!0,T:"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),c=!0));break;case 39:this.api.q8()&&(this.api.startSeekCsiAction(),F?this.api.D("web_enable_keyboard_shortcut_for_timely_actions")||(F=ZTu(p,this.api.getCurrentTime()*1E3),F!==-1&&this.B!=null&&(this.B.VK(1,p[F].title),this.api.seekTo(p[F].startTime/1E3,void 0,void 0,void 0,52),c=!0)):(this.B!=null?this.api.D("enable_key_press_seek_logging")?(c=Hc(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.B.jz(1,5,c)):this.B.jz(1, 5):w5(this.hw,{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!0,T:"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),c=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),iJ(this.hw,this.api.getVolume(),!1)):(this.api.mute(),iJ(this.hw,0,!0));c=!0;break;case 32:c=this.api.D("web_speedmaster_spacebar_control")?!this.api.N().eL:this.o8(S);break;case 75:c=this.o8(S);break;case 190:M?Z.enableSpeedOptions&&N_l(this)&&(c=this.api.getPlaybackRate(),this.api.setPlaybackRate(c+.25,!0),cpz(this.hw,!1),c=!0):this.api.q8()&&(this.step(1),c=!0);break;case 188:M? Z.enableSpeedOptions&&N_l(this)&&(c=this.api.getPlaybackRate(),this.api.setPlaybackRate(c-.25,!0),cpz(this.hw,!0),c=!0):this.api.q8()&&(this.step(-1),c=!0);break;case 70:YD5(this.api)&&(this.api.toggleFullscreen().catch(function(){}),c=!0); break;case 27:S?(this.progressBar.mG(),c=!0):this.K()&&(c=!0)}if(Z.controlsType!=="3")switch(w){case 67:g.lp(this.api.I9())&&(Z=this.api.getOption("captions","track"),this.api.toggleSubtitles(),ZXl(this.hw,!Z||Z&&!Z.displayName),c=!0);break;case 79:FZ(this,"textOpacity");break;case 87:FZ(this,"windowOpacity");break;case 187:case 61:FZ(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:FZ(this,"fontSizeIncrement",!0,!0)}var E;M||P||u||(w>=48&&w<=57?E=w-48:w>=96&&w<=105&&(E=w-96));E!=null&&this.api.q8()&& (this.api.startSeekCsiAction(),Z=this.api.getProgressState(),this.api.seekTo(E/10*(Z.seekableEnd-Z.seekableStart)+Z.seekableStart,void 0,void 0,void 0,81),c=!0);c&&this.xD.Z7()}this.C.Gi=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:w,shiftKey:M,ctrlKey:P,altKey:u,metaKey:X,key:U,code:f,repeat:h},this.C);this.C.Gi&&(c=!0);return c}; g.N.step=function(w){this.api.q8();if(this.api.getPlayerStateObject().isPaused()){var M=this.api.getVideoData().L;M&&(M=M.video)&&this.api.seekBy(w/(M.fps||30),void 0,void 0,w>0?77:78)}}; g.N.o8=function(w){if(!this.api.N().eL){var M;var P,u=(M=this.api.getVideoData())==null?void 0:(P=M.getPlayerResponse())==null?void 0:P.playabilityStatus;if(u){var X;M=((X=g.A(u.miniplayer,DEh))==null?void 0:X.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else M=!1;M&&this.api.Vs("onExpandMiniplayer");w?this.progressBar.Xf():(w=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.hw.Xr(w),w?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.N.v3=function(){g.jr(this.X);g.V2.prototype.v3.call(this)};g.V(Ey,g.r);Ey.prototype.g$=function(){var w=this.U.N(),M=w.C||this.U.D("web_player_hide_overflow_button_if_empty_menu")&&this.Uz.isEmpty();w=g.K7(w)&&g.n$(this.U)&&g.C(this.U.getPlayerStateObject(),128);var P=this.U.getPlayerSize();this.visible=this.U.Jx()&&!w&&P.width>=240&&!g.f$(this.U.getVideoData())&&!M&&!this.U.isEmbedsShortsMode();g.X6(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.U.j0();this.U.logVisibility(this.element,this.visible&&this.G)}; Ey.prototype.jK=function(w){g.r.prototype.jK.call(this,w);this.U.logVisibility(this.element,this.visible&&w)}; Ey.prototype.v3=function(){g.r.prototype.v3.call(this);g.PI(this.element,"ytp-overflow-button-visible")};g.V(V4_,g.C$);g.N=V4_.prototype;g.N.Kn=function(w){w=oS(w);g.mG(this.element,w)&&(g.mG(this.B,w)||g.mG(this.closeButton,w)||xt(this))}; g.N.Wj=function(){g.C$.prototype.Wj.call(this);this.U.IB(this.element)}; g.N.show=function(){this.J9&&this.U.publish("OVERFLOW_PANEL_OPENED");g.C$.prototype.show.call(this);this.element.setAttribute("aria-modal","true");ozR(this,!0)}; g.N.hide=function(){g.C$.prototype.hide.call(this);this.element.removeAttribute("aria-modal");ozR(this,!1)}; g.N.onFullscreenToggled=function(w){!w&&this.yu()&&xt(this)}; g.N.isEmpty=function(){return this.actionButtons.length===0}; g.N.focus=function(){for(var w=g.G(this.actionButtons),M=w.next();!M.done;M=w.next())if(M=M.value,M.J9){M.focus();break}};g.V(GYU,g.r);GYU.prototype.onClick=function(w){g.SZ(w,this.api)&&this.api.playVideoAt(this.index)};g.V(yUp,g.C$);g.N=yUp.prototype;g.N.show=function(){g.C$.prototype.show.call(this);this.B.Y(this.api,"videodatachange",this.O0);this.B.Y(this.api,"onPlaylistUpdate",this.O0);this.O0()}; g.N.hide=function(){g.C$.prototype.hide.call(this);g.qi(this.B);this.updatePlaylist(null)}; g.N.O0=function(){this.updatePlaylist(this.api.getPlaylist());this.api.N().C&&(this.RI("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.Mt(this.C),this.C=null))}; g.N.oM=function(){var w=this.playlist,M=w.author,P=M?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",u={CURRENT_POSITION:String(w.index+1),PLAYLIST_LENGTH:String(w.length)};M&&(u.AUTHOR=M);this.update({title:w.title,subtitle:g.iM(P,u),playlisturl:this.api.getVideoUrl(!0)});M=w.L;if(M===this.X)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[w.index];else{P=g.G(this.playlistData);for(u=P.next();!u.done;u=P.next())u.value.dispose(); P=w.length;this.playlistData=[];for(u=0;u=this.L&&!w.C&&!M.isAd()&&!this.api.isEmbedsShortsMode()}else w=!1;this.visible=w;this.AD(this.visible);g.X6(this.element,"ytp-search-button-visible",this.visible);g.X6(this.element,"ytp-show-search-title",!this.api.Jx());this.api.logVisibility(this.element,this.visible&&this.G)}; ot.prototype.jK=function(w){g.r.prototype.jK.call(this,w);this.api.logVisibility(this.element,this.visible&&w)};g.V(GH,g.r); GH.prototype.trigger=function(w,M,P,u){this.show();if(this.X&&w!==this.X){var X=1;this.L&&(X=kYx(this));lX4(this,X,!1);QRR(this)}this.X=w;this.C=this.X===-1?this.V:this.S;w="";M?(this.j+=M,w=g.N9(this.j)):this.j=0;this.updateValue(this.X===-1?"durationBack":"durationForward",w);if(this.B==="hidden"||this.B==="fading-out")M=0,this.B==="fading-out"&&(M=kYx(this),B_F(this)),Liu(this,M),this.B!=="fading-out"&&eE_(this,this.C.querySelector(".ytp-seek-overlay-arrow-persistent")),this.B="fading-in";else if(this.B=== "fading-in"||this.B==="lingering")M=this.C.querySelector(".ytp-seek-overlay-duration"),w=g.Oh(this.U.N().experiments,"web_player_seek_overlay_duration_bump_scale")||.95,M.animate([{offset:0,transform:"scale(1)"},{offset:.5,transform:"scale("+w+")"},{offset:1,transform:"scale(1)"}],{duration:200,easing:"cubic-bezier(0, 1, 0.1, 1)"}),B_F(this),this.B==="lingering"&&(this.K.stop(),this.K.start());this.B3=(0,g.G$)();P&&REH(this,P,u)}; GH.prototype.di=function(w,M,P,u){this.trigger(w,u)}; GH.prototype.jz=function(w,M,P){this.trigger(w,M);P&&(w=w===-1?this.S.visualElement:this.V.visualElement,P={seekData:P},(M=g.En())&&g.j2(Ag)(void 0,M,w,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",P,void 0))}; GH.prototype.VK=function(w,M,P){this.trigger(w,void 0,M,P)};g.V(yf,g.r);yf.prototype.onClick=function(){var w=this,M=this.api.N(),P=this.api.getVideoData(this.api.getPresentingPlayerType()),u=this.api.getPlaylistId();M=this.api.D("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):M.getVideoUrl(P.videoId,u,void 0,!0);if(navigator.share)try{var X=navigator.share({title:P.title,url:M});X instanceof Promise&&X.catch(function(U){vz2(w,U)})}catch(U){U instanceof Error&&vz2(this,U)}else this.B.QS(),xt(this.L,this.element,!1); this.api.logClick(this.element)}; yf.prototype.g$=function(){var w=this.api.N(),M=this.api.isEmbedsShortsMode();g.X6(this.element,"ytp-show-share-title",g.K7(w)&&!M);this.B.WZ()&&M?(w=(this.api.oI().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.A1(this.element,"right",w+"px")):M&&g.A1(this.element,"right","0px");this.updateValue("icon",{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!0,T:"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=nzp(this);g.X6(this.element,"ytp-share-button-visible",this.visible);this.AD(this.visible);this.tooltip.j0();this.api.logVisibility(this.element,nzp(this)&&this.G)}; yf.prototype.jK=function(w){g.r.prototype.jK.call(this,w);this.api.logVisibility(this.element,this.visible&&w)}; yf.prototype.v3=function(){g.r.prototype.v3.call(this);g.PI(this.element,"ytp-share-button-visible")};g.V(Kix,g.C$);g.N=Kix.prototype;g.N.Gw=function(w){w=oS(w);g.mG(this.K,w)||g.mG(this.closeButton,w)||xt(this)}; g.N.Wj=function(){g.C$.prototype.Wj.call(this);this.tooltip.IB(this.element);this.api.logVisibility(this.B,!1);for(var w=g.G(this.C),M=w.next();!M.done;M=w.next())M=M.value,this.api.hasVe(M.element)&&this.api.logVisibility(M.element,!1)}; g.N.show=function(){var w=this.J9;g.C$.prototype.show.call(this);this.g$();w||this.api.Vs("onSharePanelOpened")}; g.N.Y4=function(){this.J9&&this.g$()}; g.N.g$=function(){var w=this;g.io(this.element,"ytp-share-panel-loading");g.PI(this.element,"ytp-share-panel-fail");var M=this.api.getVideoData(),P=this.api.getPlaylistId()&&this.X.checked;M.getSharePanelCommand&&lw(this.api.aQ(),M.getSharePanelCommand,{includeListId:P}).then(function(u){w.sO()||(g.PI(w.element,"ytp-share-panel-loading"),AUM(w,u))}); M=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",M);this.updateValue("linkText",M);this.updateValue("shareLinkWithUrl",g.iM("Compartir v\u00ednculo $URL",{URL:M}));E6(this.B);this.api.logVisibility(this.B,!0)}; g.N.onFullscreenToggled=function(w){!w&&this.yu()&&xt(this)}; g.N.focus=function(){this.B.focus()}; g.N.v3=function(){g.C$.prototype.v3.call(this);bT1(this)};g.V(rU2,YA);g.N=rU2.prototype;g.N.v3=function(){OTp(this);YA.prototype.v3.call(this)}; g.N.Hq=function(w){w.target!==this.dismissButton.element&&(this.Bf(!1),this.U.Vs("innertubeCommand",this.onClickCommand))}; g.N.Uy=function(){this.Yu=!0;this.Bf(!0);this.oY()}; g.N.IX3=function(w){this.j=w;this.oY()}; g.N.onVideoDataChange=function(w,M){if(w=!!M.videoId&&this.videoId!==M.videoId)this.videoId=M.videoId,this.Yu=!1,this.mN=!0,this.V=this.Lu=!1,OTp(this),xg5(this,!1),this.L=this.B=!1,qQ(this),jR5(this);if(w||!M.videoId)this.B3=this.X=!1;var P,u;if(M==null?0:(P=M.getPlayerResponse())==null?0:(u=P.videoDetails)==null?0:u.isLiveContent)this.fV(!1);else{var X,U,f;M=g.A((X=M.getWatchNextResponse())==null?void 0:(U=X.playerOverlays)==null?void 0:(f=U.playerOverlayRenderer)==null?void 0:f.productsInVideoOverlayRenderer, p1j);this.j=this.enabled=!1;if(M){if(X=M==null?void 0:M.featuredProductsEntityKey){U=g.H7.getState().entities;var h;if((h=CF(U,"featuredProductsEntity",X))==null?0:h.productsData){this.fV(!1);return}}this.enabled=!0;if(!this.X){var c;h=(c=M.badgeInteractionLogging)==null?void 0:c.trackingParams;(this.X=!!h)&&this.U.setTrackingParams(this.badge.element,h||null)}if(!this.B3){var Z;if(this.B3=!((Z=M.dismissButton)==null||!Z.trackingParams)){var S;this.U.setTrackingParams(this.dismissButton.element,((S= M.dismissButton)==null?void 0:S.trackingParams)||null)}}M.isContentForward&&(c=M.productsData,xg5(this,!0),jR5(this),c=t4R(this,c),Z=[],c.length>0&&Z.push(c[0]),c.length>1&&(S=new g.r({W:"div",T:"ytp-suggested-action-more-products-icon"}),g.b(this,S),Z.push(S),Z.push.apply(Z,g.L(c.slice(1)))),this.K=new g.r({W:"div",J:Z,T:"ytp-suggested-action-content-forward-container"}),g.b(this,this.K),this.xu.element.append(this.K.element));this.text=g.ff(M.text);var H;if(c=(H=M.dismissButton)==null?void 0:H.a11yLabel)this.t9= g.ff(c);this.onClickCommand=M.onClickCommand;this.timing=M.timing;this.qf()}IV1(this);qF(this);this.oY()}}; g.N.NO=function(){return!this.j&&this.enabled&&!this.Yu&&!this.U.Jx()&&!this.fg&&(this.V||this.mN)}; g.N.Nj=function(w){YA.prototype.Nj.call(this,w);if(this.B||this.L)this.timing&&DV(this.timing.preview)&&(this.B=!1,qQ(this),this.L=!1,qQ(this),this.U.dB("shopping_overlay_preview_collapsed"),this.U.dB("shopping_overlay_preview_expanded"),w=Yu(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),DV(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.U.dB("shopping_overlay_expanded"),w.end=this.timing.expanded.endSec*1E3),this.U.qf([w])), this.Lu=!0,qF(this);qQ(this)}; g.N.fV=function(w){(this.V=w)?(D6(this),qF(this,!1)):(OTp(this),this.eL.start());this.oY()}; g.N.qf=function(w){var M=this.timing;w=(w===void 0?0:w)+this.U.getCurrentTime();var P=[],u=M.visible,X=M.preview;M=M.expanded;DV(u)&&(gzR(u,w),P.push(Yu(u.startSec,u.endSec,"shopping_overlay_visible")));DV(X)&&(gzR(X,w),u=X.startSec+1,P.push(Yu(X.startSec,u,"shopping_overlay_preview_collapsed")),P.push(Yu(u,X.endSec,"shopping_overlay_preview_expanded")));DV(M)&&(gzR(M,w),P.push(Yu(M.startSec,M.endSec,"shopping_overlay_expanded")));this.U.qf(P)}; g.N.oY=function(){YA.prototype.oY.call(this);this.U.getRootNode()&&g.X6(this.U.getRootNode(),"ytp-shopping-pill-shown",this.NO())};g.V(ilH,g.r); ilH.prototype.g$=function(){var w=this.api.N();this.AD(g.K7(w)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.J9);var M=this.api.getVideoData(),P=!1;this.api.getPresentingPlayerType()===2?P=!!M.videoId&&!!M.isListed&&!!M.author&&!!M.bW&&!!M.profilePicture:g.K7(w)&&(P=!!M.videoId&&!!M.bW&&!!M.profilePicture&&!g.f$(M)&&!w.C&&!(w.j&&this.api.getPlayerSize().width<200));var u=M.profilePicture;w=g.K7(w)?M.expandedTitle:M.author;u=u===void 0? "":u;w=w===void 0?"":w;P?(this.L!==u&&(this.B.style.backgroundImage="url("+u+")",this.L=u),this.updateValue("channelLogoLabel",g.iM("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:w})),g.io(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.PI(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.B,P&&this.G);this.api.logVisibility(this.channelName,P&&this.G);this.subscribeButton&&(this.subscribeButton.channelId=M.ZY);this.updateValue("expandedTitle",M.expandedTitle)};g.V(zH,g.C$);zH.prototype.show=function(){g.C$.prototype.show.call(this);this.B.start()}; zH.prototype.hide=function(){g.C$.prototype.hide.call(this);this.B.stop()}; zH.prototype.FG=function(w,M){w==="dataloaded"&&((this.uX=M.uX,this.a7=M.a7,isNaN(this.uX)||isNaN(this.a7))?this.C&&(this.U.dB("intro"),this.U.removeEventListener(g.AP("intro"),this.j),this.U.removeEventListener(g.gL("intro"),this.K),this.U.removeEventListener("onShowControls",this.X),this.hide(),this.C=!1):(this.U.addEventListener(g.AP("intro"),this.j),this.U.addEventListener(g.gL("intro"),this.K),this.U.addEventListener("onShowControls",this.X),w=new g.bg(this.uX,this.a7,{priority:9,namespace:"intro"}), this.U.qf([w]),this.C=!0))};g.V(TH,g.r);TH.prototype.onClick=function(){this.U.v9()}; TH.prototype.g$=function(){var w=!0;g.K7(this.U.N())&&(w=w&&this.U.oI().getPlayerSize().width>=480);this.AD(w);w=this.updateValue;var M=this.U.D("delhi_modern_web_player_icons"),P=M?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!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"}}]};M=M?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!0,T:"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"}}]};w.call(this,"icon",this.U.Ax()?P:M)};g.V(PHx,g.r);PHx.prototype.v3=function(){this.B=null;g.r.prototype.v3.call(this)};g.V(d5,g.r);d5.prototype.onClick=function(){this.U.Vs("innertubeCommand",this.L)}; d5.prototype.S=function(){if(this.U.D("delhi_modern_web_player")){var w=this.U.getPlayerSize();w.width&&(this.element.style.maxWidth=w.width*.25+"px")}}; d5.prototype.Lu=function(w){w!==this.j&&(this.update({title:w,ariaLabel:w}),this.j=w);w?this.show():this.hide()}; d5.prototype.B3=function(){this.B.disabled=this.L==null;g.X6(this.B,"ytp-chapter-container-disabled",this.B.disabled);this.Ub()};g.V(lJ,d5);lJ.prototype.onClickCommand=function(w){g.A(w,Sx)&&this.Ub()}; lJ.prototype.updateVideoData=function(w,M){var P,u,X;w=g.A((P=M.getWatchNextResponse())==null?void 0:(u=P.playerOverlays)==null?void 0:(X=u.playerOverlayRenderer)==null?void 0:X.decoratedPlayerBarRenderer,v0);P=g.A(w==null?void 0:w.playerBarActionButton,g.OG);if(this.U.D("web_player_updated_entrypoint")){this.V=v2(P==null?void 0:P.text);var U;u=(U=P==null?void 0:P.tooltip)!=null?U:"Ver cap\u00edtulo";this.K.setAttribute("title",u)}this.L=P==null?void 0:P.command;d5.prototype.B3.call(this)}; lJ.prototype.Ub=function(){var w=this.V,M=this.X.B,P,u=((P=this.U.getLoopRange())==null?void 0:P.type)==="clips";if(M.length>1&&!u){w=this.U.getProgressState().current*1E3;P=ZV(M,w);w=M[P].title||"Cap\u00edtulos";if(P!==this.currentIndex||this.C)this.U.Vs("innertubeCommand",M[P].onActiveCommand),this.currentIndex=P;this.C=!1}else this.C=!0;d5.prototype.Lu.call(this,w)};g.V(La,g.XT);La.prototype.L=function(){var w;(w=this.element.parentElement)==null||w.classList.contains("ytp-right-controls-left");(this.B=!this.B)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; La.prototype.isExpanded=function(){return this.B};g.V(ei,g.r);ei.prototype.C=function(w){g.C(w.state,32)?Xex(this,this.api.mj()):this.J9&&(g.C(w.state,16)||g.C(w.state,1))||this.fade.hide()}; ei.prototype.j7=function(){var w=this.api.getPlayerStateObject();(g.C(w,32)||g.C(w,16))&&$4_(this)}; ei.prototype.X=function(){this.frameIndex=NaN;$4_(this)}; ei.prototype.hide=function(){this.B&&Xex(this,null);g.r.prototype.hide.call(this)};g.V(U42,g.r);g.N=U42.prototype;g.N.onClick=function(){var w=this;if(this.U.N().cj||this.U.N().j){this.U.logClick(this.element);try{this.U.toggleFullscreen().catch(function(M){w.iR(M)})}catch(M){this.iR(M)}}else xt(this.message,this.element,!0)}; g.N.iR=function(w){String(w).includes("fullscreen error")?g.Yq(w):g.qU(w);this.ID()}; g.N.ID=function(){this.disable();this.message.w7(this.element,!0)}; g.N.Fu=function(){Hn()===this.U.getRootNode()?this.C.start():(this.C.stop(),this.message&&this.message.hide())}; g.N.Jn=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var w=window.screen.width*.9,M=window.screen.height*.9,P=Math.max(window.outerWidth,window.innerWidth),u=Math.max(window.outerHeight,window.innerHeight);if(P>u!==w>M){var X=P;P=u;u=X}w>P&&M>u&&this.ID()}}; g.N.disable=function(){var w=this;if(!this.message){var M=(cn(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La opci\u00f3n de pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la opci\u00f3n de pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.C$(this.U,{W:"div",d$:["ytp-popup","ytp-generic-popup"], Z:{role:"alert",tabindex:"0"},J:[M[0],{W:"a",Z:{href:"https://support.google.com/youtube/answer/6276924",target:this.U.N().S},pu:M[2]},M[4]]},100,!0);this.message.hide();g.b(this,this.message);this.message.subscribe("show",function(P){w.L.BS(w.message,P)}); g.bD(this.U,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.B)();this.B=null}}; g.N.g$=function(){var w=YD5(this.U),M=this.U.N().j&&this.U.getPlayerSize().width<250;this.AD(w&&!M);var P;((P=this.U.N())==null?0:P.D("embeds_use_parent_visibility_in_ve_logging"))?this.U.logVisibility(this.element,this.J9&&this.G):this.U.logVisibility(this.element,this.J9)}; g.N.Vc=function(w){if(w){var M=g.eq(this.U,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.U.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(P){g.Yq(P)})}else M=g.eq(this.U,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); w=fQl(this,w);M=this.message?null:M;this.update({title:M,icon:w});this.L.V_().j0()}; g.N.v3=function(){this.message||((0,this.B)(),this.B=null);g.r.prototype.v3.call(this)}; g.N.jK=function(w){g.r.prototype.jK.call(this,w);var M;((M=this.U.N())==null?0:M.D("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.J9&&w)};g.V(Bc,g.r);Bc.prototype.onClick=function(){this.U.logClick(this.element);this.U.seekBy(this.B,!0);var w=this.B>0?1:-1,M=Math.abs(this.B),P=this.U.UG().kW;P&&P.jz(w,M);this.L.isActive()?this.C=!0:(w=["ytp-jump-spin"],this.B<0&&w.push("backwards"),this.element.classList.add.apply(this.element.classList,g.L(w)),g.JK(this.L))};g.V(Qf,d5);Qf.prototype.onClickCommand=function(w){g.A(w,ScC)&&this.Ub()}; Qf.prototype.updateVideoData=function(){var w,M;this.L=(w=hY5(this))==null?void 0:(M=w.onTap)==null?void 0:M.innertubeCommand;d5.prototype.B3.call(this)}; Qf.prototype.Ub=function(){var w="",M=this.X.j,P,u=(P=hY5(this))==null?void 0:P.headerTitle;P=u?g.ff(u):"";var X;u=((X=this.U.getLoopRange())==null?void 0:X.type)==="clips";M.length>1&&!u&&(w=this.U.getProgressState().current*1E3,X=cUp(M,w),w=X!=null?M[X].title:P,X!=null&&X!==this.currentIndex&&(this.U.Vs("innertubeCommand",M[X].onActiveCommand),this.currentIndex=X));d5.prototype.Lu.call(this,w)};g.V(ku,g.r);ku.prototype.onClick=function(){this.U.Vs("onCollapseMiniplayer");this.U.logClick(this.element)}; ku.prototype.g$=function(){this.visible=!this.U.isFullscreen();this.AD(this.visible);this.U.logVisibility(this.element,this.visible&&this.G)}; ku.prototype.jK=function(w){g.r.prototype.jK.call(this,w);this.U.logVisibility(this.element,this.visible&&w)};g.V(Rt,g.r);Rt.prototype.init=function(){this.updateValue("minvalue",this.X);this.updateValue("maxvalue",this.K);this.updateValue("stepvalue",this.V);this.updateValue("slidervalue",this.B);cV4(this,this.B)}; Rt.prototype.C=function(){na(this,Number(this.L.value));this.L.focus()}; Rt.prototype.j=function(w){if(!w.defaultPrevented){switch(w.code){case "ArrowDown":w=-this.V;break;case "ArrowUp":w=this.V;break;default:return}na(this,Math.min(this.K,Math.max(Number((this.B+w).toFixed(2)),this.X)))}};g.V(vc,Rt);vc.prototype.onVolumeChange=function(w){if(this.S)this.S=!1;else{var M=w.volume;M===0||w.muted?na(this,0):na(this,M)}}; vc.prototype.C=function(){Rt.prototype.C.call(this);this.B3(this.B)}; vc.prototype.Lu=function(w){var M=-w.deltaY;M=w.deltaMode===WheelEvent.DOM_DELTA_LINE||w.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.bi(this.B+M,0,100):g.bi(this.B+g.bi(M/10,-10,10),0,100);M===0?na(this,0):na(this,M);this.B3(M);w.preventDefault();w.stopPropagation()}; vc.prototype.mN=function(w,M){this.S=!0;w===0||M?this.U.mute():(this.U.isMuted()&&this.U.unMute(),this.U.setVolume(w))};g.V(ZlH,g.r);g.V(Ka,g.r);g.N=Ka.prototype;g.N.hN=function(){if(!this.U.Ww()){this.updateValue("dataTooltipOffsetY",-120);var w;(w=this.B)!=null&&sy(w,!0);var M;(M=this.B)!=null&&M.B.stop()}}; g.N.oR=function(){var w;(w=this.B)!=null&&w.B.start()}; g.N.O_=function(w){this.visible=w.width>=300||this.UO;this.AD(this.visible);this.U.logVisibility(this.element,this.visible&&this.G)}; g.N.kY=function(){this.U.N().xu?this.U.isMuted()?this.U.unMute():this.U.mute():xt(this.message,this.element,!0);this.U.logClick(this.element)}; g.N.rwI=function(w){if(this.U.N().xu&&this.B)if(w.target===this.C){var M;if(!this.U.Ww()||((M=this.B)==null?0:M.isVisible))this.kY();else{var P;(P=this.B)!=null&&sy(P,!0)}}else{var u;(u=this.B)!=null&&sy(u,!0)}else this.kY()}; g.N.onVolumeChange=function(w){this.setVolume(w.volume,w.muted)}; g.N.setVolume=function(w,M){var P=this,u=M?0:w/100;w=u===0?1:w>50?1:0;if(this.S!==w){var X=this.V;isNaN(X)?EKF(this,w):zou(this.xu,function(f){EKF(P,X+(P.S-X)*f)},250); this.S=w}u=u===0?1:0;if(this.j!==u){var U=this.mN;isNaN(U)?Nmz(this,u):zou(this.ys,function(f){Nmz(P,U+(P.j-U)*f)},250); this.j=u}HlF(this,M)}; g.N.jK=function(w){g.r.prototype.jK.call(this,w);this.U.logVisibility(this.element,this.visible&&w)}; var peu=["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"],FfF=["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.V(g.bJ,g.r);g.N=g.bJ.prototype;g.N.onStateChange=function(w){this.g7(w.state);var M;((M=this.U.N())==null?0:M.D("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.J9&&this.G)}; g.N.g7=function(w){var M=g.sp(this.U.getVideoData()),P=!1;w.isOrWillBePlaying()?w=M?4:2:g.C(w,2)?(w=3,P=M):w=1;this.element.disabled=P;if(this.B!==w){M=null;switch(w){case 2:M=g.eq(this.U,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:M="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:M=g.eq(this.U,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:M="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}w=== 3?this.update({title:M,icon:Vk1(this,w)}):(this.update({title:M}),(M=Vk1(this,w))&&this.B&&this.B!==3?dDp(this.transition,this.element,M):this.updateValue("icon",M));this.tooltip.j0();this.B=w}}; g.N.onVideoDataChange=function(){g.X6(this.element,"ytp-play-button-playlist",g.n$(this.U))}; g.N.o8=function(w){this.U.logClick(this.element);if(this.U.getPlayerStateObject().isOrWillBePlaying())this.U.pauseVideo();else{if(this.U.isMinimized()&&this.U.getPlayerStateObject().isCued()){var M={},P;if((P=this.U.getVideoData())==null?0:P.K)M.cttAuthInfo={token:this.U.getVideoData().K,videoId:this.U.getVideoData().videoId};qH("direct_playback",M);this.U.Li().timerName="direct_playback"}this.U.playVideo()}this.U.isMinimized()&&(w==null?void 0:w.type)==="click"&&this.element.blur()}; g.N.jK=function(w){g.r.prototype.jK.call(this,w);var M;((M=this.U.N())==null?0:M.D("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.J9&&w)};g.V(g.It,g.r);g.N=g.It.prototype;g.N.onVideoDataChange=function(){GWp(this);this.X&&(this.Mt(this.X),this.X=null);this.videoData=this.U.getVideoData(1);if(this.playlist=this.U.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.X=this.Y(this.U,"progresssync",this.DU);this.C=yVz(this);oK_(this);this.gT(this.U.oI().getPlayerSize())}; g.N.gT=function(w){w=w===void 0?this.U.oI().getPlayerSize():w;var M,P=((M=this.U.getLoopRange())==null?void 0:M.type)==="clips";w=(g.n$(this.U)||this.B&&g.IZ(this.U)&&!this.U.D("web_hide_next_button")||D4H(this))&&!P&&(this.B||w.width>=400);this.AD(w);this.U.logVisibility(this.element,w)}; g.N.onClick=function(w){this.U.logClick(this.element);var M=!0;this.j?M=g.SZ(w,this.U):w.preventDefault();M&&(this.B&&this.U.getPresentingPlayerType()===5?this.U.publish("ytoprerollinternstitialnext"):this.B?(m_(this.U.Li()),this.U.publish("playlistnextbuttonclicked",this.element),this.U.nextVideo(!0)):this.C?this.U.seekTo(0):(m_(this.U.Li()),this.U.publish("playlistprevbuttonclicked",this.element),this.U.previousVideo(!0)))}; g.N.DU=function(){var w=yVz(this);w!==this.C&&(this.C=w,oK_(this))}; g.N.v3=function(){this.L&&(this.L(),this.L=null);GWp(this);g.r.prototype.v3.call(this)};g.V(YFu,g.r);g.N=YFu.prototype;g.N.Oh=function(w){this.QZ(w.pageX);this.ao(w.pageX+w.deltaX);zYH(this)}; g.N.QZ=function(w){this.B3=w-this.UO}; g.N.ao=function(w){w-=this.UO;!isNaN(this.B3)&&this.thumbnails.length>0&&(this.S=w-this.B3,this.thumbnails.length>0&&this.S!==0&&(this.C=this.V+this.S,w=eY_(this,this.C),this.C<=this.B/2&&this.C>=Lf2(this)?(this.api.seekTo(w,!1,void 0,void 0,25),g.A1(this.mN,"transform","translateX("+(this.C-this.B/2)+"px)"),qF_(this,w)):this.C=this.V))}; g.N.hT=function(){this.Lu&&(this.Lu.IF=!0);var w=(0,g.G$)()-this.OO<300;if(Math.abs(this.S)<5&&!w){this.OO=(0,g.G$)();w=this.B3+this.S;var M=this.B/2-w;this.QZ(w);this.ao(w+M);zYH(this);this.api.logClick(this.K)}zYH(this)}; g.N.gt=function(){A8(this,this.api.getCurrentTime())}; g.N.play=function(w){this.api.seekTo(eY_(this,this.C),void 0,void 0,void 0,26);this.api.playVideo();w&&this.api.logClick(this.playButton)}; g.N.onExit=function(w){this.api.seekTo(this.eL,void 0,void 0,void 0,63);this.api.playVideo();w&&this.api.logClick(this.dismissButton)}; g.N.o9=function(w,M){this.UO=w;this.B=M;A8(this,this.api.getCurrentTime())}; g.N.enable=function(){this.isEnabled||(this.isEnabled=!0,this.eL=this.api.getCurrentTime(),qF_(this,this.eL),g.X6(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.xu=this.Y(this.element,"wheel",this.Oh),this.logVisibility(this.isEnabled))}; g.N.disable=function(){this.isEnabled=!1;this.hide();g.X6(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.xu&&this.Mt(this.xu);this.logVisibility(this.isEnabled)}; g.N.reset=function(){this.disable();this.X=[];this.Cu=!1}; g.N.logVisibility=function(w){this.api.logVisibility(this.element,w);this.api.logVisibility(this.K,w);this.api.logVisibility(this.dismissButton,w);this.api.logVisibility(this.playButton,w)}; g.N.v3=function(){for(;this.L.length;){var w=void 0;(w=this.L.pop())==null||w.dispose()}g.r.prototype.v3.call(this)}; g.V(Tm4,g.r);g.V(d4l,g.r);g.V(Bmx,g.r);g.V(g5,g.r);g5.prototype.vj=function(w){return w==="PLAY_PROGRESS"?this.V:w==="LOAD_PROGRESS"?this.j:w==="LIVE_BUFFER"?this.K:this.C};RY1.prototype.update=function(w,M,P,u){P=P===void 0?0:P;this.width=M;this.X=P;this.B=M-P-(u===void 0?0:u);this.position=g.bi(w,P,P+this.B);this.C=this.position-P;this.L=this.C/this.B};g.V(nK_,g.r);g.V(g.ji,g.XT);g.N=g.ji.prototype; g.N.kV=function(){var w=!1,M=this.api.getVideoData();if(!M)return w;this.api.dB("timedMarkerCueRange");KfR(this);for(var P=g.G(M.jL),u=P.next();!u.done;u=P.next()){u=u.value;var X=void 0,U=(X=this.t9[u])==null?void 0:X.markerType,f=void 0;X=(f=this.t9[u])==null?void 0:f.markers;if(!X)break;if(U==="MARKER_TYPE_TIMESTAMPS"){w=g.G(X);for(U=w.next();!U.done;U=w.next()){f=U.value;U=new nK_;var h=void 0;U.title=((h=f.title)==null?void 0:h.simpleText)||"";U.timeRangeStartMillis=Number(f.startMillis);U.B= Number(f.durationMillis);var c=h=void 0;U.onActiveCommand=(c=(h=f.onActive)==null?void 0:h.innertubeCommand)!=null?c:void 0;rV1(this,U)}j_u(this,this.j);w=this.j;U=this.TD;f=[];h=null;for(c=0;cZ&&(h.end=Z);Z=HT5(Z,Z+H);f.push(Z);h=Z;U[Z.id]=w[c].onActiveCommand}}this.api.qf(f);a:{w=g.G(X);for(X=w.next();!X.done;X=w.next())if(X.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){w= !1;break a}w=!0}w&&(this.Q8=this.t9[u]);w=!0}else if(U==="MARKER_TYPE_HEATMAP"){u=this.t9[u];S=Z=U=c=h=f=void 0;if(u&&u.markers){X=(U=(S=u.markersMetadata)==null?void 0:(Z=S.heatmapMetadata)==null?void 0:Z.minHeightDp)!=null?U:0;U=(f=(c=u.markersMetadata)==null?void 0:(h=c.heatmapMetadata)==null?void 0:h.maxHeightDp)!=null?f:60;f=this.B.length;h=null;for(c=0;c=S&&E<=H&&Z.push(F)}U>0&&(this.Lu.style.height=U+"px");S=this.X[c];H=Z;F=X;var y=U,q=c===0;q=q===void 0?!1:q;Q_U(S,y);p=H;E=S.L;q=q===void 0?!1:q;var d=1E3/p.length,l=[];l.push({x:0,y:100});for(var e=0;e0&&(h=Z[Z.length-1])}g.Ca(this)}U=void 0;X=[];if(u=(U=u.markersDecoration)==null?void 0:U.timedMarkerDecorations)for(u=g.G(u),U=u.next();!U.done;U=u.next())U=U.value,c=h=f=void 0,X.push({visibleTimeRangeStartMillis:(f=U.visibleTimeRangeStartMillis)!= null?f:-1,visibleTimeRangeEndMillis:(h=U.visibleTimeRangeEndMillis)!=null?h:-1,decorationTimeMillis:(c=U.decorationTimeMillis)!=null?c:NaN,label:U.label?g.ff(U.label):""});u=X;this.heatMarkersDecorations=u}}M.g3=this.j;g.X6(this.element,"ytp-timed-markers-enabled",w);return w}; g.N.o9=function(){g.Ca(this);Oy(this);j_u(this,this.j);if(this.L){var w=g.OS(this.element).x||0;this.L.o9(w,this.K)}}; g.N.hY3=function(){var w=this.api.getVideoData();w&&X3y(this,w)}; g.N.onClickCommand=function(w){if(w=g.A(w,Sx)){var M=w.key;w.isVisible&&M&&OlR(this,M)}}; g.N.BBu=function(w){this.api.Vs("innertubeCommand",this.TD[w.id])}; g.N.Ub=function(){Oy(this);var w=this.api.getCurrentTime();(wthis.clipEnd)&&this.tA()}; g.N.aZ=function(w){if(!w.defaultPrevented){var M=!1;switch(w.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);M=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);M=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);M=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);M=!0;break;case 38:this.api.D("enable_key_press_seek_logging")&&uN(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);M=!0;break;case 40:this.api.D("enable_key_press_seek_logging")&&uN(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),M=!0}M&&w.preventDefault()}}; g.N.FG=function(w,M){this.updateVideoData(M,w==="newdata")}; g.N.g6=function(){this.FG("newdata",this.api.getVideoData())}; g.N.updateVideoData=function(w,M){M=M===void 0?!1:M;var P=!!w&&w.Nf();P&&(Ur(w)||P$F(this)?this.pV=!1:this.pV=w.allowLiveDvr,g.X6(this.api.getRootNode(),"ytp-enable-live-buffer",!(w==null||!Ur(w))),X3y(this,w));Nz4(this,this.api.q8());if(M){if(P){M=w.clipEnd;this.clipStart=w.clipStart;this.clipEnd=M;Xk(this);for(iN(this,this.B3,this.cj);this.X.length>0;)this.X.pop().dispose();this.heatMarkersDecorations=[];this.M7={};var u;(u=this.L)==null||u.reset();hl(this);g.X6(this.api.getRootNode(),"ytp-fine-scrubbing-exp", r5(this))}else this.tA();this.rh()}if(w){var X;u=((X=this.Cg)==null?void 0:X.type)==="clips";if(X=!w.isLivePlayback){X=this.api.getVideoData();M=g.s_(X);P=IQU(X);var U;X=M!=null||P!=null&&P.length>0||((U=X.hI)==null?void 0:U.length)>0}if(X&&!u){U=this.api.getVideoData();u=g.s_(U);X=!1;if(u==null?0:u.markersMap){X=this.api.getVideoData();var f;X.WO=((f=u.visibleOnLoad)==null?void 0:f.key)||X.WO;f=g.G(u.markersMap);for(u=f.next();!u.done;u=f.next())u=u.value,u.key&&u.value&&(this.M7[u.key]=u.value, u.value.onChapterRepeat&&(X.UP=u.value.onChapterRepeat));X.WO!=null&&OlR(this,X.WO);X=!0}var h;if(((h=U.hI)==null?void 0:h.length)>0){h=g.H7.getState().entities;f=g.G(U.hI);for(u=f.next();!u.done;u=f.next()){u=u.value;P=void 0;M=(P=CF(h,"macroMarkersListEntity",u))==null?void 0:P.markersList;var c=P=void 0;if(((P=M)==null?void 0:P.markerType)==="MARKER_TYPE_TIMESTAMPS"||((c=M)==null?void 0:c.markerType)==="MARKER_TYPE_HEATMAP")this.t9[u]=M}X=this.kV()||X}!X&&(h=IQU(U))&&(gKz(this,h),U.Q8=this.B,AVp(this)); $tR(this,null);w.H6&&this.X.length===0&&(w=w.H6,h=w.key,w.isVisible&&h&&OlR(this,h))}else vKp(this),KfR(this)}Oy(this)}; g.N.Q1=function(w){this.V&&!g.C(w.state,32)&&this.api.getPresentingPlayerType()!==3&&this.V.cancel();var M;((M=this.L)==null?0:M.isEnabled)&&g.C(w.state,8)&&this.api.pauseVideo();w=this.api.getPresentingPlayerType()===2||!this.api.q8()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.X6(this.wb,"ytp-hide-scrubber-button",w)}; g.N.gW=function(w){var M=!!this.Cg!==!!w,P=this.Cg;this.Cg=w;$tR(this,P);(w==null?void 0:w.type)!=="clips"&&w||(w?(this.updateValue("clipstarticon",GgR()),this.updateValue("clipendicon",GgR()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",H0H()),this.updateValue("clipendicon",SmR()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),M&&(this.updateVideoData(this.api.getVideoData(), !0),g.Ca(this)),Xk(this));iN(this,this.B3,this.cj)}; g.N.vAs=function(){this.api.publish("progressBarHoverStart")}; g.N.mtW=function(w,M,P){var u=g.OS(this.element),X=xu(this).B,U=P?P.getAttribute("data-tooltip"):void 0,f=P?P.getAttribute("data-position"):void 0,h=P?P.getAttribute("data-offset-y"):void 0;h=h?Number(h):0;f&&(w=TO(this.C,Number(P.getAttribute("data-position")),0)*X+g.OS(this.progressBar).x);this.bW.x=w-u.x;this.bW.y=M-u.y;w=xu(this);P=PP(this,w);M=0;var c;if((c=this.api.getVideoData())==null?0:Ur(c))(c=this.api.getProgressState().seekableEnd)&&P>c&&(P=c,w.position=TO(this.C,c)*xu(this).B),M=this.C.L; P$F(this)&&(M=this.C.L);c=U||g.N9(this.pV?P-this.C.B:P-M);M=w.position+this.Ci;P-=this.api.OF();var Z;if((Z=this.L)==null||!Z.isEnabled)if(this.api.mj()){if(this.B.length>1){Z=MD(this,this.bW.x,!0);if(!this.Cg)for(u=0;u1)for(u=0;u0)for(Z=this.bW.x,u=g.G(this.j),X=u.next();!X.done;X=u.next())X=X.value,f=t8(this,X.timeRangeStartMillis/ (this.C.B*1E3),xu(this)),g.X6(X.element,"ytp-timed-marker-hover",f<=Z&&f+6>=Z);u=this.tooltip.scale;Z=this.api.D("delhi_modern_web_player")?67:45;h=(isNaN(h)?0:h)-Z*u;this.api.D("web_key_moments_markers")?this.Q8?(Z=cUp(this.j,P*1E3),Z=Z!=null?this.j[Z].title:""):(Z=ZV(this.B,P*1E3),Z=this.B[Z].title):(Z=ZV(this.B,P*1E3),Z=this.B[Z].title);Z||(h+=16*u);this.tooltip.scale===.6&&(g.fp(this.api.N())?(h=this.api.oI().getPlayerSize().height-225,u=this.api.D("delhi_modern_web_player")?70:110,h=Z?h+u:h+ u+16):h=Z?110:126);u=ZV(this.B,P*1E3);this.Cu=UtR(this,P,u)?u:UtR(this,P,u+1)?u+1:-1;g.X6(this.api.getRootNode(),"ytp-progress-bar-snap",this.Cu!==-1&&this.B.length>1);u=!1;X=g.G(this.heatMarkersDecorations);for(f=X.next();!f.done;f=X.next()){f=f.value;var S=P*1E3;S>=f.visibleTimeRangeStartMillis&&S<=f.visibleTimeRangeEndMillis&&(Z=f.label,c=g.N9(f.decorationTimeMillis/1E3),u=!0)}this.gb!==u&&(this.gb=u,this.api.logVisibility(this.Lx,this.gb));g.X6(this.api.getRootNode(),"ytp-progress-bar-decoration", u);u=160*this.tooltip.scale*2;X=Z.length*(this.S?8.55:5.7);X=X<=u?X:u;f=X<160*this.tooltip.scale;u=3;!f&&X/2>w.position&&(u=1);!f&&X/2>this.K-w.position&&(u=2);this.api.N().j&&(h-=10);this.X.length&&this.X[0].Nf&&(h-=14*(this.S?2:1),this.eL||(this.eL=!0,this.api.logVisibility(this.Lu,this.eL)));var H;if(r5(this)&&(((H=this.L)==null?0:H.isEnabled)||this.jL>0)){var p;h-=((p=this.L)==null?0:p.isEnabled)?Uf(this):this.jL}H=void 0;r5(this)&&!this.api.D("web_player_hide_fine_scrubbing_edu")&&(H="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa", this.UO||(this.UO=!0,this.api.logVisibility(this.DO,this.UO)));this.tooltip.Um(M,P,c,!!U,h,Z,u,H)}else this.tooltip.Um(M,P,c,!!U,h);g.io(this.api.getRootNode(),"ytp-progress-bar-hover");MH5(this)}; g.N.EAI=function(){this.rh();g.PI(this.api.getRootNode(),"ytp-progress-bar-hover");this.eL&&(this.eL=!1,this.api.logVisibility(this.Lu,this.eL));this.UO&&(this.UO=!1,this.api.logVisibility(this.DO,this.UO));this.api.D("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.N.pkK=function(w,M){var P=g.OS(this.element);this.KT=w-P.x;r5(this)&&this.L&&(this.L.Cu?A8(this.L,this.api.getCurrentTime()):lQl(this.L),this.L.show(),g.X6(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.L.isEnabled));this.nV&&(this.nV.dispose(),this.nV=null);this.dk=M;this.QL=this.api.getCurrentTime();this.B.length>1&&this.Cu!==-1?this.api.seekTo(this.B[this.Cu].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(PP(this,xu(this)),!1,void 0,void 0,7);g.io(this.element,"ytp-drag");(this.kD= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.N.RYO=function(){if(r5(this)&&this.L){var w=Uf(this);this.jL>=w*.5?(this.L.enable(),A8(this.L,this.api.getCurrentTime()),Ei5(this,w)):hl(this)}if(g.C(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var M;if((M=this.L)==null?0:M.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.B.length>1&&this.Cu!==-1)this.api.D("html5_enable_progress_bar_slide_seek_logging")&&uN(this,this.QL,this.B[this.Cu].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.B[this.Cu].startTime/1E3,void 0,void 0,void 0,7);else{w=PP(this,xu(this));this.api.D("html5_enable_progress_bar_slide_seek_logging")&&uN(this,this.QL,w,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(w,void 0,void 0,void 0,7);M=g.G(this.heatMarkersDecorations);for(var P=M.next();!P.done;P=M.next())P=P.value,w*1E3>=P.visibleTimeRangeStartMillis&&w*1E3<=P.visibleTimeRangeEndMillis&& this.api.logClick(this.Lx)}g.PI(this.element,"ytp-drag");this.ys&&(this.mN.src=this.ys);this.kD&&!g.C(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.N.rzO=function(w,M){var P=this,u=xu(this),X=PP(this,u);this.api.oI().B9||(u.position>this.KT+2?this.VE&&(this.mN.src=this.VE):u.position1);this.AD(w&&this.U.oI().getPlayerSize().width>=400);this.U.logVisibility(this.element,this.J9);var M=1;w&&this.isActive()&&(M=2);if(this.B!==M){this.B=M;w=this.U.D("delhi_modern_web_player_icons");switch(M){case 1:this.updateValue("icon",w?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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"}}]}:{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{W:"path",fT:!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", w?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{W:"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.cSM())}g.X6(this.element,"ytp-remote-button-active",this.isActive())}}; cP.prototype.L=function(){if(this.U.getOption("remote","quickCast"))this.U.setOption("remote","quickCast",!0);else{var w=this.Lg,M=this.element;if(w.yu())w.Wj();else{w.initialize();a:{var P=g.G(w.vB.items);for(var u=P.next();!u.done;u=P.next())if(u=u.value,u.priority===1){P=u;break a}P=null}P&&(P.open(),w.w7(M));w.w7(M)}}this.U.logClick(this.element)};g.V(ZA,g.r);ZA.prototype.B=function(w){var M=this.U.N(),P=400;this.U.D("web_player_small_hbp_settings_menu")&&M.K?P=300:M.j&&(P=200);w=this.L&&w.width>=P;this.AD(w);this.U.D("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,w&&this.G):this.U.logVisibility(this.element,w)}; ZA.prototype.C=function(){if(this.Lg.J9)this.Lg.Wj();else{var w=g.lp(this.U.I9());w&&!w.loaded&&(w.S0("tracklist",{includeAsr:!0}).length||w.load());this.U.logClick(this.element);this.Lg.w7(this.element)}}; ZA.prototype.updateBadge=function(){var w=this.U.isHdr(),M=this.U.getPresentingPlayerType(),P=M!==2&&M!==3,u=g.K$(this.U),X=P&&!!g.sr(this.U.I9());M=X&&u.displayMode===1;u=X&&u.displayMode===2;P=(X=M||u)||!P?null:this.U.getPlaybackQuality();g.X6(this.element,"ytp-hdr-quality-badge",w);g.X6(this.element,"ytp-hd-quality-badge",!w&&(P==="hd1080"||P==="hd1440"));g.X6(this.element,"ytp-4k-quality-badge",!w&&P==="hd2160");g.X6(this.element,"ytp-5k-quality-badge",!w&&P==="hd2880");g.X6(this.element,"ytp-8k-quality-badge", !w&&P==="highres");g.X6(this.element,"ytp-3d-badge-grey",!w&&X&&M);g.X6(this.element,"ytp-3d-badge",!w&&X&&u)};g.V(SK,cH);SK.prototype.isLoaded=function(){var w=g.R5(this.U.I9());return w!==void 0&&w.loaded}; SK.prototype.g$=function(){g.R5(this.U.I9())!==void 0&&this.U.getPresentingPlayerType()!==3?this.B||(this.Lg.XF(this),this.B=!0):this.B&&(this.Lg.uF(this),this.B=!1);ZT(this,this.isLoaded())}; SK.prototype.onSelect=function(w){this.isLoaded();w?this.U.loadModule("annotations_module"):this.U.unloadModule("annotations_module");this.U.publish("annotationvisibility",w)}; SK.prototype.v3=function(){this.B&&this.Lg.uF(this);cH.prototype.v3.call(this)};g.V(HP,g.v6);HP.prototype.g$=function(){var w=this.U.getAvailableAudioTracks();w.length>1?(this.cI(g.EV(w,this.B)),this.tracks=g.xV(w,this.B,this),this.countLabel.iB(w.length?" ("+w.length+")":""),this.publish("size-change"),this.JV(this.B(this.U.getAudioTrack())),this.enable(!0)):this.enable(!1)}; HP.prototype.p9=function(w){g.v6.prototype.p9.call(this,w);this.U.setAudioTrack(this.tracks[w]);this.Lg.c_()}; HP.prototype.B=function(w){return w.toString()};g.V(pI,cH); pI.prototype.L=function(){var w=this.U.getPresentingPlayerType();if(w!==2&&w!==3&&g.IZ(this.U))this.B||(this.Lg.XF(this),this.B=!0,this.C.push(this.Y(this.U,"videodatachange",this.L)),this.C.push(this.Y(this.U,"videoplayerreset",this.L)),this.C.push(this.Y(this.U,"onPlaylistUpdate",this.L)),this.C.push(this.Y(this.U,"autonavchange",this.X)),w=this.U.getVideoData(),this.X(w.autonavState),this.U.logVisibility(this.element,this.B));else if(this.B){this.Lg.uF(this);this.B=!1;w=g.G(this.C);for(var M=w.next();!M.done;M= w.next())this.Mt(M.value)}}; pI.prototype.X=function(w){ZT(this,w!==1)}; pI.prototype.onSelect=function(w){this.U.nY(w?2:1);this.B&&(this.U.logVisibility(this.element,this.B),this.U.logClick(this.element))}; pI.prototype.v3=function(){this.B&&this.Lg.uF(this);cH.prototype.v3.call(this)};g.V(mt2,g.wa);mt2.prototype.onClick=function(w){w.preventDefault();var M,P;(M=g.y1(this.U))==null||(P=M.CN())==null||P.Wj();var u,X;(u=g.y1(this.U))==null||(X=u.ou())==null||X.w7(w.target)};g.V(oi2,g.v6);g.N=oi2.prototype; g.N.zp=function(){var w=this.U.getPresentingPlayerType();if(w!==2&&w!==3){this.mN=this.U.gY();var M=this.U.getAvailableQualityLevels();if(this.B){this.X={};w=g.Nl(this.U,"getAvailableQualityData",[]);w=g.G(w);for(var P=w.next();!P.done;P=w.next())P=P.value,this.X[P.qualityLabel]=P;w=Object.keys(this.X);M[M.length-1]==="auto"&&w.push("auto");this.ys=new Set(M)}else if(this.K){P=g.Nl(this.U,"getAvailableQualityData",[]);w=[];P=g.G(P);for(var u=P.next();!u.done;u=P.next())u=u.value,this.S[u.quality]= u,u.quality&&w.push(u.quality);M[M.length-1]==="auto"&&w.push("auto")}else w=M;g.ckx(this.U)&&this.U.Fl()&&w.unshift("missing-qualities");M=this.U.app.uW();P=M.getVideoData();if(!P.L||!P.L.video||P.L.video.qualityOrdinal<1080||P.hA)M=!1;else{u=/^qsa/.test(P.clientPlaybackNonce);var X="r";P.L.id.indexOf(";")>=0&&(u=/^[a-p]/.test(P.clientPlaybackNonce),X="x");u?(M.II("iqss",{trigger:X},!0),M=!0):M=!1}M&&w.unshift("inline-survey");this.cI(w);M=this.U.getVideoData().cotn?!0:!1;P=this.Lu.UH();P=!g.fp(this.U.N())|| !(M===void 0?0:M)||!(P===void 0||P);M=this.L;P=P===void 0?!1:P;M.t6&&g.X6(M.RI("ytp-panel-footer"),"ytp-panel-hide-footer",P===void 0?!1:P);if(w.length){this.aV();this.enable(!0);return}}this.enable(!1)}; g.N.aV=function(){if(this.B){var w=this.U.getPreferredQuality();this.ys.has(w)&&(this.j=this.U.getPlaybackQuality(),this.B3=this.U.getPlaybackQualityLabel(),w==="auto"?(this.JV(w),this.iB(this.SH(w))):this.JV(this.B3))}else w=this.U.getPreferredQuality(),this.options[w]&&(this.j=this.U.getPlaybackQuality(),this.JV(w),w==="auto"&&this.iB(this.SH(w)))}; g.N.p9=function(w){if(w!=="missing-qualities"){g.v6.prototype.p9.call(this,w);var M=this.B?this.X[w]:this.S[w];var P=M==null?void 0:M.quality,u=M==null?void 0:M.formatId,X=M==null?void 0:M.paygatedQualityDetails;M=X==null?void 0:X.endpoint;if(X){var U;X=(U=this.options[w])==null?void 0:U.element;this.U.logClick(X)}if(this.B){var f,h;if((f=g.A(M,g.UEE))==null?0:(h=f.popup)==null?0:h.notificationActionRenderer)this.U.Vs("innertubeCommand",M);else if(M){this.U.Vs("innertubeCommand",M);return}u?this.U.setPlaybackQuality(P, u):this.U.setPlaybackQuality(P)}else{if(this.K){var c,Z;if((c=g.A(M,g.UEE))==null?0:(Z=c.popup)==null?0:Z.notificationActionRenderer)this.U.Vs("innertubeCommand",M);else if(M){this.U.Vs("innertubeCommand",M);return}}this.U.setPlaybackQuality(w)}this.Lg.Wj();this.zp()}}; g.N.open=function(){for(var w=g.G(Object.values(this.options)),M=w.next();!M.done;M=w.next()){M=M.value;var P=void 0;this.U.hasVe((P=M)==null?void 0:P.element)&&(P=void 0,this.U.logVisibility((P=M)==null?void 0:P.element,!0))}g.v6.prototype.open.call(this);this.U.logClick(this.element)}; g.N.P1=function(w,M,P){var u=this;if(w==="missing-qualities")return new g.wa({W:"a",d$:["ytp-menuitem"],Z:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.U.N().S,tabindex:"0",role:"menuitemradio"},J:[{W:"div",d$:["ytp-menuitem-label"],pu:"{{label}}"}]},M,this.SH(w));if(w!=="inline-survey"){var X,U=(X=this.B?this.X[w]:this.S[w])==null?void 0:X.paygatedQualityDetails;X=U==null?void 0:U.veType;U=U==null?void 0:U.trackingParams;M=g.v6.prototype.P1.call(this,w,M,P);U?(this.U.createServerVe(M.element, this,!0),this.U.setTrackingParams(M.element,U)):X&&this.U.createClientVe(M.element,this,X,!0);return M}w=[{W:"span",pu:"\u00bfSe ve bien?"}];P=g.G([!0,!1]);U=P.next();for(X={};!U.done;X={tS:void 0},U=P.next())X.tS=U.value,U=new g.r({W:"span",T:"ytp-menuitem-inline-survey-response",J:[X.tS?oF5():FuR()],Z:{tabindex:"0",role:"button"}}),U.listen("click",function(f){return function(){var h=u.U.app.uW();h.II("iqsr",{tu:f.tS});h.getVideoData().hA=!0;u.Lg.Wj();u.zp()}}(X)),w.push(U); return new g.wa({W:"div",T:"ytp-menuitem",Z:{"aria-disabled":"true"},J:[{W:"div",d$:["ytp-menuitem-label"],J:w}]},M)}; g.N.SH=function(w,M){M=M===void 0?!1:M;if(w==="missing-qualities")return{W:"div",pu:"\u00bfFaltan opciones?"};if(w==="inline-survey")return"";var P=this.K||this.B?[DtF(this,w,M,!1)]:[ys2(this,w)];var u=this.U.getPreferredQuality();M||u!=="auto"||w!=="auto"||(P.push(" "),this.B?P.push(DtF(this,this.B3,M,!0,["ytp-menu-label-secondary"])):this.K?P.push(DtF(this,this.j,M,!0,["ytp-menu-label-secondary"])):P.push(ys2(this,this.j,["ytp-menu-label-secondary"])));return{W:"div",J:P}};g.V(Fk,Rt);Fk.prototype.C=function(){Rt.prototype.C.call(this);this.S&&q35(this)}; Fk.prototype.ys=function(){this.B3()}; Fk.prototype.mN=function(){this.U.setPlaybackRate(this.B,!0)}; Fk.prototype.j=function(w){Rt.prototype.j.call(this,w);this.B3();q35(this);w.preventDefault()};g.V(Ef,g.r);g.N=Ef.prototype;g.N.init=function(){this.BH(this.B);this.updateValue("minvalue",this.L);this.updateValue("maxvalue",this.C)}; g.N.uq=function(w){if(!w.defaultPrevented){switch(w.keyCode){case 37:case 40:var M=-this.V;break;case 39:case 38:M=this.V;break;default:return}this.BH(this.B+M);w.preventDefault()}}; g.N.QG=function(w){var M=this.B;M+=(w.deltaX||-w.deltaY)<0?-this.S:this.S;this.BH(M);w.preventDefault()}; g.N.Tw=function(w){w=(w-g.OS(this.X).x)/this.B3*this.range+this.L;this.BH(w)}; g.N.BH=function(w,M){M=M===void 0?"":M;w=g.bi(w,this.L,this.C);M===""&&(M=w.toString());this.updateValue("valuenow",w);this.updateValue("valuetext",M);this.Lu.style.left=(w-this.L)/this.range*(this.B3-this.Cu)+"px";this.B=w}; g.N.focus=function(){this.xu.focus()};g.V(ND,Ef);ND.prototype.mN=function(){this.U.setPlaybackRate(this.B,!0)}; ND.prototype.BH=function(w){Ef.prototype.BH.call(this,w,ze2(this,w).toString());this.K&&(Y3F(this),this.ys())}; ND.prototype.updateValues=function(){var w=this.U.getPlaybackRate();ze2(this,this.B)!==w&&(this.BH(w),Y3F(this))};g.V(Tz4,g.XT);Tz4.prototype.focus=function(){this.B.focus()};g.V(dtU,zT);g.V(ley,g.v6);g.N=ley.prototype;g.N.SH=function(w){return w==="1"?"Normal":w.toLocaleString()}; g.N.g$=function(){var w,M=(w=this.U.getVideoData())==null?void 0:w.VH();w=this.U.getPresentingPlayerType(M);this.enable(w!==2&&w!==3);BzH(this)}; g.N.cI=function(w){g.v6.prototype.cI.call(this,w);this.j&&this.j.L.focus()}; g.N.Y3=function(w){g.v6.prototype.Y3.call(this,w);w?(this.B3=this.Y(this.U,"onPlaybackRateChange",this.onPlaybackRateChange),BzH(this),L6R(this,this.U.getPlaybackRate())):(this.Mt(this.B3),this.B3=null)}; g.N.onPlaybackRateChange=function(w){var M=this.U.getPlaybackRate();!this.X&&this.S.includes(M)||eeF(this,M);L6R(this,w)}; g.N.P1=function(w,M,P){return w===this.B&&QO2(this.U)?g.v6.prototype.P1.call(this,w,M,P,{W:"div",T:"ytp-speed-slider-menu-footer",J:[this.j]}):g.v6.prototype.P1.call(this,w,M,P)}; g.N.p9=function(w){g.v6.prototype.p9.call(this,w);w===this.B?this.U.setPlaybackRate(this.K,!0):this.U.setPlaybackRate(Number(w),!0);QO2(this.U)&&w===this.B||this.Lg.c_()}; g.N.eG=function(w){var M=w===this.B;this.X=!1;M&&V$(this.U)&&!QO2(this.U)?(w=new dtU(this.U),g.LJ(this.Lg,w)):g.v6.prototype.eG.call(this,w)};g.V(Rel,g.v6);g.N=Rel.prototype;g.N.JV=function(w){g.v6.prototype.JV.call(this,w)}; g.N.Qz=function(w){return w.option.toString()}; g.N.getOption=function(w){return this.settings[w]}; g.N.SH=function(w){return this.getOption(w).text||""}; g.N.p9=function(w){g.v6.prototype.p9.call(this,w);this.publish("settingChange",this.setting,this.settings[w].option)};g.V(ok,g.TT);ok.prototype.sz=function(w){for(var M=g.G(Object.keys(w)),P=M.next();!P.done;P=M.next()){var u=P.value;if(P=this.C8[u]){var X=w[u].toString();u=!!w[u+"Override"];P.options[X]&&(P.JV(X),P.X.element.setAttribute("aria-checked",String(!u)),P.B.element.setAttribute("aria-checked",String(u)))}}}; ok.prototype.xe=function(w,M){this.publish("settingChange",w,M)};g.V(Gj,g.v6);Gj.prototype.B=function(w){return w.languageCode}; Gj.prototype.SH=function(w){return this.languages[w].languageName||""}; Gj.prototype.p9=function(w){this.publish("select",w);this.U.logClick(this.element);g.e8(this.Lg)};g.V(sOR,g.v6);g.N=sOR.prototype;g.N.ZZ=function(w){return g.SF(w)?"__off__":w.displayName}; g.N.SH=function(w){return w==="__off__"?"Desactivados":w==="__translate__"?"Traducci\u00f3n autom\u00e1tica":w==="__contribute__"?"Agregar subt\u00edtulos":w==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(w==="__off__"?{}:this.tracks[w]).displayName}; g.N.p9=function(w){if(w==="__translate__")this.B.open();else if(w==="__contribute__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var M=g.wi(this.U.N(),this.U.getVideoData());g.vj(M)}else if(w==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var P=K6l(this);y$(this,P);g.v6.prototype.p9.call(this,this.ZZ(P));var u,X;P=(M=this.U.getVideoData().getPlayerResponse())==null?void 0:(u=M.captions)==null?void 0:(X=u.playerCaptionsTracklistRenderer)== null?void 0:X.openTranscriptCommand;this.U.Vs("innertubeCommand",P);this.Lg.c_();this.X&&this.U.logClick(this.X)}else{if(w==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();M=K6l(this);y$(this,M);g.v6.prototype.p9.call(this,this.ZZ(M));var U,f;M=(P=this.U.getVideoData().getPlayerResponse())==null?void 0:(U=P.captions)==null?void 0:(f=U.playerCaptionsTracklistRenderer)==null?void 0:f.openTranscriptCommand;this.U.Vs("innertubeCommand",M)}else this.U.logClick(this.element), y$(this,w==="__off__"?{}:this.tracks[w]),g.v6.prototype.p9.call(this,w);this.Lg.c_()}}; g.N.g$=function(){var w=this.U.getOptions();w=w&&w.indexOf("captions")!==-1;var M=this.U.getVideoData(),P=M&&M.d8,u,X=!((u=this.U.getVideoData())==null||!g.uD(u));u={};if(w||P){var U;if(w){var f=this.U.getOption("captions","track");u=this.U.getOption("captions","tracklist",{includeAsr:!0});var h=X?[]:this.U.getOption("captions","translationLanguages");this.tracks=g.xV(u,this.ZZ,this);X=g.EV(u,this.ZZ);var c,Z;K6l(this)&&((U=M.getPlayerResponse())==null?0:(c=U.captions)==null?0:(Z=c.playerCaptionsTracklistRenderer)== null?0:Z.openTranscriptCommand)&&X.push("__correction__");if(h.length&&!g.SF(f)){if((U=f.translationLanguage)&&U.languageName){var S=U.languageName;U=h.findIndex(function(H){return H.languageName===S}); lU4(h,U)}niz(this.B,h);X.push("__translate__")}U=this.ZZ(f)}else this.tracks={},X=[],U="__off__";X.unshift("__off__");this.tracks.__off__={};P&&X.unshift("__contribute__");this.tracks[U]||(this.tracks[U]=f,X.push(U));this.cI(X);this.JV(U);f&&f.translationLanguage?this.B.JV(this.B.B(f.translationLanguage)):W21(this.B);w&&this.K.sz(this.U.getSubtitlesUserSettings());this.countLabel.iB(u&&u.length?" ("+u.length+")":"");this.publish("size-change");this.U.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.N.tT=function(w){var M=this.U.getOption("captions","track");M=g.Fm(M);M.translationLanguage=this.B.languages[w];y$(this,M)}; g.N.xe=function(w,M){if(w==="reset")this.U.resetSubtitlesUserSettings();else{var P={};P[w]=M;this.U.updateSubtitlesUserSettings(P)}vi4(this,!0);this.j.start();this.K.sz(this.U.getSubtitlesUserSettings())}; g.N.oAu=function(w){w||g.jr(this.j)}; g.N.v3=function(){g.jr(this.j);g.v6.prototype.v3.call(this)}; g.N.open=function(){g.v6.prototype.open.call(this);this.options.__correction__&&!this.X&&(this.X=this.options.__correction__.element,this.U.createClientVe(this.X,this,167341),this.U.logVisibility(this.X,!0))};g.V(bV_,g.lG);g.N=bV_.prototype; g.N.initialize=function(){if(!this.isInitialized){var w=this.U.N();this.isInitialized=!0;try{this.fI=new oi2(this.U,this)}catch(P){g.Yq(Error("QualityMenuItem creation failed"))}g.b(this,this.fI);var M=new sOR(this.U,this);g.b(this,M);w.C||(M=new SK(this.U,this),g.b(this,M));w.enableSpeedOptions&&(M=new ley(this.U,this),g.b(this,M));(g.K7(w)||w.K)&&(w.L||w.OO)&&(M=new mt2(this.U,this),g.b(this,M));w.DO&&!w.D("web_player_move_autonav_toggle")&&(w=new pI(this.U,this),g.b(this,w));w=new HP(this.U,this); g.b(this,w);this.U.publish("settingsMenuInitialized");VH2(this.settingsButton,this.vB.Nu())}}; g.N.XF=function(w){this.initialize();this.vB.XF(w);VH2(this.settingsButton,this.vB.Nu())}; g.N.uF=function(w){this.J9&&this.vB.Nu()<=1&&this.hide();this.vB.uF(w);VH2(this.settingsButton,this.vB.Nu())}; g.N.w7=function(w){this.initialize();this.vB.Nu()>0&&g.lG.prototype.w7.call(this,w)}; g.N.Wj=function(){this.mL?this.mL=!1:g.lG.prototype.Wj.call(this)}; g.N.show=function(){g.lG.prototype.show.call(this);g.io(this.U.getRootNode(),"ytp-settings-shown")}; g.N.hide=function(){g.lG.prototype.hide.call(this);g.PI(this.U.getRootNode(),"ytp-settings-shown")}; g.N.fV=function(w){this.U.logVisibility(this.element,w);this.U.publish("settingsMenuVisibilityChanged",w)};g.V(giz,g.r);g.N=giz.prototype;g.N.onClick=function(){if(DA(this)&&(this.U.toggleSubtitles(),this.U.logClick(this.element),!this.isEnabled())){var w=!1,M=g.RS(g.kF(),65);g.fp(this.U.N())&&M!=null&&(w=!M);w&&this.U.N().D("web_player_nitrate_promo_tooltip")&&this.U.publish("showpromotooltip",this.element)}}; g.N.IOO=function(w){var M,P;(M=g.y1(this.U))==null||(P=M.CN())==null||P.w7(w)}; g.N.isEnabled=function(){var w=this.U.getOption("captions","track");return!(!w||!w.displayName)}; g.N.g$=function(){var w=DA(this),M=300;this.U.N().j&&(M=480);this.U.D("delhi_modern_web_player_icons")&&this.updateValue("icon",Asu(this));if(this.U.N().K){this.updateValue("title",g.eq(this.U,"Subt\u00edtulos","c"));this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var P=w}else{if(w)(P=this.RI("ytp-subtitles-button-icon"))==null||P.setAttribute("fill-opacity","1"),this.updateValue("title",g.eq(this.U,"Subt\u00edtulos","c")),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.U.D("delhi_modern_web_player_icons")){var u; (u=this.RI("ytp-subtitles-button-icon"))==null||u.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var X;(X=this.RI("ytp-subtitles-button-icon"))==null||X.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}P=!0}this.tooltip.j0();P=P&&this.U.oI().getPlayerSize().width>=M;this.AD(P);this.U.D("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element, P&&this.G):this.U.logVisibility(this.element,P);w?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.N.jK=function(w){g.r.prototype.jK.call(this,w);this.U.N().D("embeds_use_parent_visibility_in_ve_logging")&&this.U.logVisibility(this.element,this.J9&&w)};g.V(g.qD,g.r);g.N=g.qD.prototype;g.N.canShowCountdown=function(){return!zj(this)&&!Yd(this)}; g.N.Ub=function(){var w=this.api.oI().getPlayerSize().width,M=this.S;this.api.N().j&&(M=400);M=w>=M&&(!Yd(this)||!g.C(this.api.getPlayerStateObject(),64));this.AD(M);g.X6(this.element,"ytp-time-display-allow-autohide",M&&w<400);w=this.api.getProgressState();if(M){var P=this.api.getPresentingPlayerType();M=this.api.getCurrentTime(P,!1);this.L&&(M-=w.airingStart);zj(this)&&(M-=this.Cg.startTimeMs/1E3);this.canShowCountdown()&&this.C&&(M-=this.api.getDuration(P,!1));var u=g.N9(M);this.X!==u&&(this.updateValue("currenttime", u),this.X=u);P=zj(this)?(this.Cg.endTimeMs-this.Cg.startTimeMs)/1E3:this.api.getDuration(P,!1);u=g.N9(P);this.K!==u&&(this.updateValue("duration",u),this.K=u,M&&(M=g.iM("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.N9(M,!0),DURATION:g.N9(P,!0)}),this.updateValue("timeDisplayAriaLabel",M)))}Jsx(this,w.isAtLiveHead);rs1(this,this.api.getLoopRange())}; g.N.onLoopRangeChange=function(w){var M=this.Cg!==w;this.Cg=w;M&&(this.Ub(),jOH(this))}; g.N.Cm0=function(){this.api.setLoopRange(null)}; g.N.nu3=function(){this.C=!this.C;this.Ub()}; g.N.onVideoDataChange=function(w,M,P){this.updateVideoData((this.api.N().D("enable_topsoil_wta_for_halftime")||this.api.N().D("enable_topsoil_wta_for_halftime_live_infra"))&&P===2?this.api.getVideoData(1):M);this.Ub();jOH(this)}; g.N.updateVideoData=function(w){this.Bq=w.isLivePlayback&&!w.Z3;this.L=Ur(w);this.isPremiere=w.isPremiere;g.X6(this.element,"ytp-live",Yd(this));this.api.D("delhi_modern_web_player")&&this.RI("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.N.onClick=function(w){w.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.N.v3=function(){this.B&&this.B();g.r.prototype.v3.call(this)};g.V(tHl,g.r);g.N=tHl.prototype;g.N.Fu=function(){var w=this.api.WZ();this.C!==w&&(this.C=w,C$1(this,this.api.getVolume(),this.api.isMuted()))}; g.N.wW=function(w){this.AD(w.width>=350)}; g.N.VG=function(w){if(!w.defaultPrevented){var M=w.keyCode,P=null;M===37?P=this.volume-5:M===39?P=this.volume+5:M===36?P=0:M===35&&(P=100);P!==null&&(P=g.bi(P,0,100),P===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(P)),w.preventDefault())}}; g.N.lq=function(w){var M=w.deltaX||-w.deltaY;w.deltaMode?this.api.setVolume(this.volume+(M<0?-10:10)):this.api.setVolume(this.volume+g.bi(M/10,-10,10));w.preventDefault()}; g.N.AzN=function(){Tj(this,this.B,!0,this.L,this.api.Ww());this.S=this.volume;this.api.isMuted()&&this.api.unMute()}; g.N.Yt=function(w){var M=this.C?78:52,P=this.C?18:12;w-=g.OS(this.V).x;this.api.setVolume(g.bi((w-P/2)/(M-P),0,1)*100)}; g.N.HT3=function(){Tj(this,this.B,!1,this.L,this.api.Ww());this.volume===0&&(this.api.mute(),this.api.setVolume(this.S))}; g.N.onVolumeChange=function(w){C$1(this,w.volume,w.muted)}; g.N.ZD=function(){Tj(this,this.B,this.isDragging,this.L,this.api.Ww())}; g.N.v3=function(){g.r.prototype.v3.call(this);g.PI(this.j,"ytp-volume-slider-active")};g.V(dc,g.r); dc.prototype.onVideoDataChange=function(){var w=this.api.N();this.o9();this.visible=!!this.api.getVideoData().videoId&&!g.f$(this.api.getVideoData(1));this.AD(this.visible);this.api.logVisibility(this.element,this.visible&&this.G);if(this.visible){var M=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",M)}w.C&&(this.B&&(this.Mt(this.B),this.B=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.io(this.element,"no-link")); M=this.api.N();w=this.api.getVideoData();var P="";M.C||(M=g.P0(M),M.indexOf("www.")===0&&(M=M.substring(4)),P=g.h$(w)?"Mirar en YouTube Music":M==="youtube.com"?"Mirar en YouTube":g.iM("Mirar en $WEBSITE",{WEBSITE:M}));this.updateValue("title",P)}; dc.prototype.onClick=function(w){this.api.D("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var M=this.api.N(),P=this.api.getVideoUrl(!g.VP(w),!1,!0,!0);if(g.K7(M)){var u={};g.K7(M)&&g.Nl(this.api,"addEmbedsConversionTrackingParams",[u]);P=g.p5(P,u)}g.HH(P,this.api,w);this.api.D("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; dc.prototype.o9=function(){var w={W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},J:[{W:"path",fT:!0,T:"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 "}}]}, M=28666,P=this.api.getVideoData();this.api.isEmbedsShortsMode()?w={W:"svg",Z:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},J:[{W:"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.h$(P)&&(w={W:"svg",Z:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},J:[{W:"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"}},{W:"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"}},{W:"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"}},{W:"path",Z:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{W:"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"}},{W:"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"}},{W:"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"}},{W:"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"}},{W:"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"}},{W:"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"}},{W:"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"}},{W:"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"}}]},M=216163);g.h$(P)?g.io(this.element,"ytp-youtube-music-button"):g.PI(this.element,"ytp-youtube-music-button");w.Z=Object.assign({},w.Z,{"aria-hidden":"true"});this.updateValue("logoSvg",w);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,M,!0)}; dc.prototype.jK=function(w){g.r.prototype.jK.call(this,w);this.api.logVisibility(this.element,this.visible&&w)};g.V(ael,g.V2);g.N=ael.prototype;g.N.j7=function(){if(this.U.D("web_player_max_seekable_on_ended")||!g.C(this.U.getPlayerStateObject(),2))this.progressBar.Ub(),this.xu.Ub()}; g.N.oF=function(){this.VW();this.xD.L?this.j7():this.progressBar.rh()}; g.N.iq=function(){this.j7();this.S.start()}; g.N.VW=function(){var w;if(w=!this.U.N().L){w=this.progressBar;var M=2*g.U_()*w.K,P=w.C;w=(P.B-P.L)*1E3/w.api.getPlaybackRate()/M<300}w=w&&this.U.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;M=!w;this.xD.L||(w=M=!1);M?this.mN||(this.mN=this.Y(this.U,"progresssync",this.j7)):this.mN&&(this.Mt(this.mN),this.mN=null);w?this.S.isActive()||this.S.start():this.S.stop()}; g.N.o9=function(){var w=this.U.WZ(),M=this.U.oI().getPlayerSize(),P=this.U.oI().B9,u=ii2(this),X=MsF(this),U=Math.max(M.width-u*2,100);if(this.cj!==M.width||this.bW!==w||this.U.D("web_player_rtr_ctrls")&&this.Kd!==P)this.cj=M.width,this.bW=w,this.Kd=P,this.L.element.style.width=X+"px",this.L.element.style.left=u+"px",g.p3R(this.progressBar,u,X,w),this.U.V_().j9=X;P=this.X;U=Math.min(570*(w?1.5:1),U);w=Math.min(413*(w?1.5:1),Math.round((M.height-PIF(this))*.82));P.maxWidth=U;P.maxHeight=w;P.PV();this.VW(); this.U.N().D("html5_player_dynamic_bottom_gradient")&&MkR(this.Z3,M.height)}; g.N.onVideoDataChange=function(){var w=this.U.getVideoData();this.t9.style.background=w.Ym?w.jT:"";this.Lu&&Wfy(this.Lu,w.showSeekingControls);this.B3&&Wfy(this.B3,w.showSeekingControls)}; g.N.vj=function(){return this.L.element};g.V(uR4,YA);g.N=uR4.prototype;g.N.Hq=function(w){w.target!==this.dismissButton.element&&(this.onClickCommand&&this.U.Vs("innertubeCommand",this.onClickCommand),this.Uy())}; g.N.Uy=function(){this.enabled=!1;this.S.hide()}; g.N.onVideoDataChange=function(w,M){w==="dataloaded"&&XqM(this);w=[];var P,u,X,U;if(M=(U=g.A((P=M.getWatchNextResponse())==null?void 0:(u=P.playerOverlays)==null?void 0:(X=u.playerOverlayRenderer)==null?void 0:X.suggestedActionsRenderer,kL$))==null?void 0:U.suggestedActions)for(P=g.G(M),u=P.next();!u.done;u=P.next())(u=g.A(u.value,Rxt))&&g.A(u.trigger,Q7V)&&w.push(u);if(w.length!==0){P=[];w=g.G(w);for(u=w.next();!u.done;u=w.next())if(u=u.value,X=g.A(u.trigger,Q7V))U=(U=u.title)?g.ff(U):"View Chapters", M=X.timeRangeStartMillis,X=X.timeRangeEndMillis,M!=null&&X!=null&&u.tapCommand&&(P.push(new g.bg(M,X,{priority:9,namespace:"suggested_action_button_visible",id:U})),this.suggestedActions[U]=u.tapCommand);this.U.qf(P)}}; g.N.NO=function(){return this.enabled}; g.N.fV=function(){this.enabled?this.eL.start():D6(this);this.oY()}; g.N.v3=function(){XqM(this);YA.prototype.v3.call(this)};var TW={},eK=(TW.CHANNEL_NAME="ytp-title-channel-name",TW.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",TW.LINK="ytp-title-link",TW.SESSIONLINK="yt-uix-sessionlink",TW.SUBTEXT="ytp-title-subtext",TW.TEXT="ytp-title-text",TW.TITLE="ytp-title",TW);g.V(BP,g.r);BP.prototype.onClick=function(w){this.api.logClick(this.element);var M=this.api.N(),P=this.api.getVideoUrl(!g.VP(w),!1,!0);g.K7(M)&&(M={},g.Nl(this.api,"addEmbedsConversionTrackingParams",[M]),P=g.p5(P,M));g.HH(P,this.api,w)}; BP.prototype.g$=function(){var w=this.api.getVideoData(),M=this.api.N();this.updateValue("title",w.title);var P={W:"a",T:eK.CHANNEL_NAME,Z:{href:"{{channelLink}}",target:"_blank"},pu:"{{channelName}}"};this.api.N().C&&(P={W:"span",T:eK.CHANNEL_NAME,pu:"{{channelName}}",Z:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",P);$7_(this);this.api.getPresentingPlayerType()===2&&(P=this.api.getVideoData(),P.videoId&&P.isListed&&P.author&&P.bW&&P.profilePicture?(this.updateValue("channelLink", P.bW),this.updateValue("channelName",P.author),this.updateValue("channelTitleFocusable","0")):$7_(this));P=M.externalFullscreen||!this.api.isFullscreen()&&M.Ye;g.X6(this.link,eK.FULLERSCREEN_LINK,P);M.Lu||!w.videoId||P||g.f$(w)||M.C?this.B&&(this.updateValue("url",null),this.Mt(this.B),this.B=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.B||(this.B=this.Y(this.link,"click",this.onClick)));M.C&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.K7(M)?w.expandedTitle: w.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.V(g.Q$,g.r);g.N=g.Q$.prototype;g.N.setEnabled=function(w){if(this.type!=null)if(w)switch(this.type){case 3:case 2:Wzp(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.j=w}; g.N.Um=function(w,M,P,u,X,U,f,h){if(!this.ys||this.env.j){this.type===3&&this.rh();this.type!==1&&(g.a3(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.j&&this.fade.show(),this.L&&this.L.dispose(),(this.L=this.api.mj())&&this.L.subscribe("l",this.eP,this));if(h){var c=g.iy(this.bg).height||141;this.Cu.style.bottom=c+2+"px"}else this.Cu.style.display="none";this.env.D("delhi_modern_web_player")?(this.update({pillTimeStamp:P,pillTitle:U!=null?U:"",eduText:h!=null?h:""}),g.io(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:P,title:U!=null?U:"",eduText:h!=null?h:""}),g.X6(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!U));this.api.isInline()&&g.io(this.bottomText,"ytp-modern-tooltip-text");g.X6(this.element,"ytp-text-detail",!!u);P=-1;this.L&&(P=Cp(this.L,243*this.scale),this.env.D("web_l3_storyboard")&&this.L.levels.length===4&&(P=this.L.levels.length-1),P=k1H(this.L,P,M));cq2(this,P);if(f)switch(M=g.iy(this.element).width,f){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=M+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=M/2+"px",this.title.style.textAlign="center"}hJz(this,!!u,w,X)}}; g.N.Q7=function(){this.type===1&&this.rh()}; g.N.Wc=function(w,M){if(this.type)if(this.type===3)this.rh();else return;U7y(this,w,3,M)}; g.N.j0=function(){this.B&&!this.V&&this.B.hasAttribute("title")&&(this.C=this.B.getAttribute("title")||"",this.B.removeAttribute("title"),this.j&&Wzp(this))}; g.N.eP=function(w,M){w<=this.X&&this.X<=M&&(w=this.X,this.X=NaN,cq2(this,w))}; g.N.OP=function(){Bux(this.L,this.X,243*this.scale)}; g.N.rh=function(){switch(this.type){case 2:var w=this.B;w.removeEventListener("mouseout",this.S);w.addEventListener("mouseover",this.K);w.removeEventListener("blur",this.S);w.addEventListener("focus",this.K);Zi2(this);break;case 3:Zi2(this);break;case 1:this.L&&(this.L.unsubscribe("l",this.eP,this),this.L=null),this.api.removeEventListener("videoready",this.B3),this.Lu.stop()}this.type=null;this.j&&this.fade.hide()}; g.N.IB=function(){if(this.B)for(var w=0;w=0;M--)if(this.Xw[M]===w){this.Xw.splice(M,1);break}v4(this.xD,64,this.Xw.length>0)}; g.N.nZ=function(){this.api.cw()&&this.api.Gg();return!!this.ze||VsF(this)||g.tI.prototype.nZ.call(this)}; g.N.fK=function(){var w=!this.nZ(),M=w&&this.api.cw()&&!g.C(this.api.getPlayerStateObject(),2)&&!g.f$(this.api.getVideoData())&&!this.api.N().C&&!this.api.isEmbedsShortsMode(),P=this.qM&&g.n$(this.api)&&g.C(this.api.getPlayerStateObject(),128);w||P?(this.gA.show(),this.a_.show()):(this.gA.hide(),this.a_.hide(),this.api.IB(this.xQ.element));M?this.EH.w7():this.EH.Wj();this.lF&&wq2(this.lF,this.dfu||!w);this.api.D("web_player_hide_overflow_button_if_empty_menu")&&m7F(this);g.tI.prototype.fK.call(this)}; g.N.wH=function(w,M,P,u,X){w.style.left="";w.style.top="";w.style.bottom="";var U=g.iy(w),f=u||this.lF&&g.mG(this.lF.vj(),M),h=u=null;P!=null&&f||(u=g.iy(M),h=g.aU(M,this.api.getRootNode()),P==null&&(P=h.x+u.width/2));P-=U.width/2;f?(M=this.lF,u=ii2(M),h=MsF(M),f=this.api.oI().getPlayerSize().height,P=g.bi(P,u,u+h-U.width),U=f-PIF(M)-U.height):g.mG(this.xQ.element,M)?(M=this.api.oI().getPlayerSize().width,P=g.bi(P,12,M-U.width-12),U=this.WZ()?this.sJ:this.kP,this.api.N().playerStyle==="gvn"&&(U+= 20),this.qM&&(U-=this.WZ()?26:18)):(M=this.api.oI().getPlayerSize(),P=g.bi(P,12,M.width-U.width-12),U=h.y>(M.height-u.height)/2?h.y-U.height-12:h.y+u.height+12);w.style.top=U+(X||0)+"px";w.style.left=P+"px"}; g.N.oF=function(w){w&&(this.api.IB(this.xQ.element),this.lF&&this.api.IB(this.lF.vj()));this.NA&&(g.X6(this.contextMenu.element,"ytp-autohide",w),g.X6(this.contextMenu.element,"ytp-autohide-active",!0));g.tI.prototype.oF.call(this,w)}; g.N.z6=function(){g.tI.prototype.z6.call(this);this.NA&&(g.X6(this.contextMenu.element,"ytp-autohide-active",!1),this.NA&&(this.contextMenu.hide(),this.Uz&&this.Uz.hide()))}; g.N.UB=function(w,M){var P=this.api.oI().getPlayerSize();P=new g.Kj(0,0,P.width,P.height);if(w||this.xD.L&&!this.nZ()){if(this.api.N().BC||M)w=this.WZ()?this.sJ:this.kP,P.top+=w,P.height-=w;this.lF&&(P.height-=PIF(this.lF))}return P}; g.N.Fu=function(w){var M=this.api.getRootNode();w?M.parentElement?(M.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.N().externalFullscreen||(M.parentElement.insertBefore(this.Mw.element,M),M.parentElement.insertBefore(this.Cq.element,M.nextSibling))):g.qU(Error("Player not in DOM.")):(M.setAttribute("aria-label","Reproductor de video de YouTube"),this.Mw.detach(),this.Cq.detach());this.o9();this.Be()}; g.N.WZ=function(){var w=this.api.N();return this.api.isFullscreen()&&!w.j||!1}; g.N.showControls=function(w){this.jh=!w;this.fK()}; g.N.o9=function(){var w=this.WZ();this.tooltip.scale=w?1.5:1;this.contextMenu&&g.X6(this.contextMenu.element,"ytp-big-mode",w);this.fK();this.api.D("web_player_hide_overflow_button_if_empty_menu")||m7F(this);this.Be();var M=this.api.isEmbedsShortsMode();M&&w?(w=(this.api.oI().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.A1(this.xQ.element,"padding-left",w+"px"),g.A1(this.xQ.element,"padding-right",w+"px")):M&&(g.A1(this.xQ.element,"padding-left",""),g.A1(this.xQ.element,"padding-right", ""));g.tI.prototype.o9.call(this)}; g.N.Vm=function(){if(VsF(this)&&!g.n$(this.api))return!1;var w=this.api.getVideoData();return!g.K7(this.api.N())||this.api.getPresentingPlayerType()===2||!this.gh||((w=this.gh||w.gh)?(w=w.embedPreview)?(w=w.thumbnailPreviewRenderer,w=w.videoDetails&&g.A(w.videoDetails,VLR)||null):w=null:w=null,w&&w.collapsedRenderer&&w.expandedRenderer)?g.tI.prototype.Vm.call(this):!1}; g.N.Be=function(){g.tI.prototype.Be.call(this);this.api.logVisibility(this.title.element,!!this.iE);this.QA&&this.QA.jK(!!this.iE);this.channelAvatar.jK(!!this.iE);this.overflowButton&&this.overflowButton.jK(this.Jx()&&!!this.iE);this.shareButton&&this.shareButton.jK(!this.Jx()&&!!this.iE);this.Ue&&this.Ue.jK(!this.Jx()&&!!this.iE);this.searchButton&&this.searchButton.jK(!this.Jx()&&!!this.iE);this.copyLinkButton&&this.copyLinkButton.jK(!this.Jx()&&!!this.iE);if(!this.iE){this.api.IB(this.xQ.element); for(var w=0;w5&&M.II("glrs",{cmt:P});M.seekTo(0,{seekSource:58});M.II("glrre",{cmt:P})}}; nI.prototype.v3=function(){this.B=null;g.v.prototype.v3.call(this)};g.V(g.vP,ZS);g.N=g.vP.prototype;g.N.isView=function(){return!0}; g.N.XY=function(){var w=this.mediaElement.getCurrentTime();if(w1;rf(w.cB(),u-.01)&&!X&&(KI(this,4),P.isActive=!1,P.PL=P.PL||P.isActive,(this.G===1?this.B:this.L).II("sbh",{}),M.isActive=!0,M.PL=M.PL||M.isActive,this.G!==0&&(this.B.getVideoData().QQ=!0));w=this.X.L;if(this.X.B.isActive&&w.isActive&&(KI(this,5),this.G!==0)){w=this.L.Vn();P=this.B.Vn(); this.B.II("sbs",{citag:P==null?void 0:P.itag,nitag:w==null?void 0:w.itag});this.L.II("gitags",{pitag:P==null?void 0:P.itag,citag:w==null?void 0:w.itag});var U;(U=this.L)==null||U.uD()}}}; g.N.D2=function(){this.Je()&&this.f9("player-reload-after-handoff")}; g.N.f9=function(w,M){M=M===void 0?{}:M;if(!this.sO()&&this.status.status!==6){var P=this.status.status>=4&&w!=="player-reload-after-handoff";this.status={status:Infinity,error:w};if(this.B&&this.L){var u=this.L.getVideoData().clientPlaybackNonce;this.B.vl(new g.hy("dai.transitionfailure",Object.assign(M,{cpn:u,transitionTimeMs:this.oB,msg:w})));this.B.UD(P)}this.bd.reject(w);this.dispose()}}; g.N.Je=function(){return this.status.status>=4&&this.status.status<6}; g.N.v3=function(){eJl(this);this.B.unsubscribe("newelementrequired",this.D2,this);if(this.C){var w=this.C.L;this.C.B.Jz.unsubscribe("updateend",this.V5,this);w.Jz.unsubscribe("updateend",this.V5,this)}g.v.prototype.v3.call(this)}; g.N.TH=function(w){g.fW(w,128)&&this.f9("player-error-event")};g.V(bN,g.v);bN.prototype.clearQueue=function(w,M){w=w===void 0?!1:w;M=M===void 0?!1:M;this.X&&this.X.reject("Queue cleared");this.app.N().D("html5_gapless_fallback_on_qoe_restart_v2")||M&&this.L&&this.L.UD(!1);Ik(this,w)}; bN.prototype.Mv=function(){return!this.B}; bN.prototype.Je=function(){var w;return((w=this.C)==null?void 0:w.Je())||!1}; bN.prototype.v3=function(){Ik(this);g.v.prototype.v3.call(this)};g.V(KzF,g.wC);g.N=KzF.prototype;g.N.getVisibilityState=function(w,M,P,u,X,U,f,h){return w?4:a_x()?3:M?2:P?1:u?5:X?7:U?8:f?9:h?10:0}; g.N.Vc=function(w){this.fullscreen!==w&&(this.fullscreen=w,this.fV())}; g.N.setMinimized=function(w){this.L!==w&&(this.L=w,this.fV())}; g.N.setInline=function(w){this.inline!==w&&(this.inline=w,this.fV())}; g.N.Y0=function(w){this.pictureInPicture!==w&&(this.pictureInPicture=w,this.fV())}; g.N.setSqueezeback=function(w){this.C!==w&&(this.C=w,this.fV())}; g.N.Y1=function(w){this.X!==w&&(this.X=w,this.fV())}; g.N.Ax=function(){return this.B}; g.N.I4=function(){return this.fullscreen!==0}; g.N.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.N.xs=function(){return this.fullscreen}; g.N.isMinimized=function(){return this.L}; g.N.isInline=function(){return this.inline}; g.N.isBackground=function(){return a_x()}; g.N.A5=function(){return this.pictureInPicture}; g.N.Mi=function(){return!1}; g.N.kz=function(){return this.C}; g.N.hF=function(){return this.X}; g.N.fV=function(){this.publish("visibilitychange");var w=this.getVisibilityState(this.Ax(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.A5(),this.Mi(),this.kz(),this.hF());w!==this.K&&this.publish("visibilitystatechange");this.K=w}; g.N.v3=function(){MSR(this.G);g.wC.prototype.v3.call(this)};g.V(g.Al,g.v);g.N=g.Al.prototype;g.N.v3=function(){this.videoData=this.playerState=null;g.v.prototype.v3.call(this)}; g.N.addCueRange=function(){}; g.N.vW=function(){}; g.N.jc=function(){}; g.N.B1=function(){return!1}; g.N.AI=function(){return!1}; g.N.Lt=function(){return!1}; g.N.Bp=function(){}; g.N.w1=function(){}; g.N.jS=function(){return[]}; g.N.h2=function(){}; g.N.getAudioTrack=function(){return this.getVideoData().ih}; g.N.OV=function(){return null}; g.N.getAvailableAudioTracks=function(){return[]}; g.N.gY=function(){return[]}; g.N.Qh=function(){return[]}; g.N.RE=function(){return""}; g.N.IQ=function(){return[]}; g.N.Qo=function(){}; g.N.Ap=function(){return 0}; g.N.getCurrentTime=function(){return 0}; g.N.wJ=function(){}; g.N.Vn=function(){}; g.N.Z4=function(){return{}}; g.N.getDuration=function(){return 0}; g.N.K6=function(){return 0}; g.N.Ls=function(){return 0}; g.N.PY=function(){return!1}; g.N.Mz=function(){return 0}; g.N.rk=function(){return 0}; g.N.j2=u2(7);g.N.yc=function(){return 0}; g.N.TL=function(){return!1}; g.N.Ft=function(){return 0}; g.N.Nt=function(){return null}; g.N.XG=function(){return null}; g.N.ov=function(){return 0}; g.N.l6=function(){return 0}; g.N.Rd=function(){return g.n(function(w){g.yx(w)})}; g.N.zg=u2(15);g.N.getPlaybackQuality=function(){return"auto"}; g.N.getPlaybackRate=function(){return 1}; g.N.getPlayerState=function(){this.playerState||(this.playerState=new g.EH);return this.playerState}; g.N.getPlayerType=function(){return 0}; g.N.getPlaylistSequenceForTime=function(){return null}; g.N.r5=function(){return function(){}}; g.N.uE=function(){return""}; g.N.getPreferredQuality=function(){return"unknown"}; g.N.Tv=function(){}; g.N.getProximaLatencyPreference=function(){return 0}; g.N.XU=function(){return P7}; g.N.mj=function(){return null}; g.N.getStoryboardFormat=function(){return null}; g.N.getStreamTimeOffset=function(){return 0}; g.N.x6=function(){return 0}; g.N.OF=function(){return 0}; g.N.ZT=function(){return{wE:[],S8:[],currentTime:0,Sc:"",droppedVideoFrames:0,isGapless:!1,Mv:!0,s5:0,U8:0,K7:0,kN:0,s8:0,Dm:[],v2:[],LO:null,playerState:this.getPlayerState(),yT:null,oJ:"",totalVideoFrames:0}}; g.N.getUserAudio51Preference=function(){return 0}; g.N.getUserPlaybackQualityPreference=function(){return""}; g.N.getVideoData=function(){this.videoData||(this.videoData=new g.ut(this.P3),g.b(this,this.videoData));return this.videoData}; g.N.EM=function(){return null}; g.N.Vh=function(){return null}; g.N.tp=function(){}; g.N.getVideoLoadedFraction=function(){return 0}; g.N.nH=function(){}; g.N.handleError=function(){}; g.N.UD=function(){}; g.N.DK=function(){}; g.N.Jc=u2(40);g.N.sB=function(){return!1}; g.N.hasSupportedAudio51Tracks=function(){return!1}; g.N.Nr=function(){return!1}; g.N.Ax=function(){return!1}; g.N.isAtLiveHead=function(){return!1}; g.N.aW=function(){return!0}; g.N.isGapless=function(){return!1}; g.N.isHdr=function(){return!1}; g.N.qc=function(){return!1}; g.N.IK=function(){return!1}; g.N.WG=function(){return!1}; g.N.isProximaLatencyEligible=function(){return!1}; g.N.Mv=function(){return!0}; g.N.KM=function(){return!1}; g.N.V2=function(){return!1}; g.N.Ra=function(){}; g.N.fE=function(){}; g.N.uD=function(){}; g.N.WQ=function(){}; g.N.oK=function(){}; g.N.SE=function(){}; g.N.oa=function(){}; g.N.Qc=u2(50);g.N.J5=u2(21);g.N.bf=function(){}; g.N.fY=function(){}; g.N.pauseVideo=function(){}; g.N.playVideo=function(){return g.n(function(w){return w.return()})}; g.N.D7=function(){}; g.N.iX=u2(27);g.N.Nd=u2(33);g.N.aH=function(){}; g.N.II=function(){}; g.N.gk=function(){}; g.N.QC=function(){}; g.N.w0=function(){}; g.N.vl=function(){}; g.N.Qt=function(){}; g.N.wf=function(){}; g.N.TI=function(){}; g.N.gm=function(){}; g.N.jV=function(){}; g.N.Qu=function(){}; g.N.X2=function(){}; g.N.removeCueRange=function(){}; g.N.Ao=function(){}; g.N.dB=function(){return[]}; g.N.ws=function(){}; g.N.Fc=function(){}; g.N.Wm=function(){}; g.N.Yx=function(){}; g.N.Zc=function(){}; g.N.O6=function(){}; g.N.seekTo=function(){}; g.N.sendAbandonmentPing=function(){}; g.N.sendVideoStatsEngageEvent=function(){}; g.N.lP=function(){}; g.N.setLoop=function(){}; g.N.LJ=function(){}; g.N.setMediaElement=function(){}; g.N.aL=function(){}; g.N.setPlaybackRate=function(){}; g.N.WB=function(){}; g.N.VC=function(){}; g.N.LV=function(){}; g.N.setProximaLatencyPreference=function(){}; g.N.TA=function(){}; g.N.uZ=function(){}; g.N.tX=function(){}; g.N.Vj=function(){}; g.N.Em=function(){}; g.N.setUserAudio51Preference=function(){}; g.N.rN=function(){}; g.N.B_=function(){return!1}; g.N.v9=function(){}; g.N.VX=function(){return!1}; g.N.n1=function(){}; g.N.oL=function(){}; g.N.zA=function(){}; g.N.stopVideo=function(){}; g.N.subscribe=function(){return NaN}; g.N.Ng=function(){}; g.N.togglePictureInPicture=function(){}; g.N.HR=function(){return 0}; g.N.unsubscribe=function(){return!1}; g.N.cO=function(){}; g.N.WH=function(){return!1}; g.N.fk=function(){}; g.N.nJ=function(){}; g.N.Pe=function(){};g.V(jK,g.v);g.N=jK.prototype;g.N.get=function(w){Jl(this);var M=this.data.find(function(P){return P.key===w}); return M?M.value:null}; g.N.set=function(w,M,P){this.remove(w,!0);Jl(this);w={key:w,value:M,expire:Infinity};P&&isFinite(P)&&(P*=1E3,w.expire=(0,g.G$)()+P);for(this.data.push(w);this.data.length>this.C;)(P=this.data.shift())&&CI(this,P,!0);rc(this)}; g.N.remove=function(w,M){M=M===void 0?!1:M;var P=this.data.find(function(u){return u.key===w}); P&&(CI(this,P,M),g.Tc(this.data,function(u){return u.key===w}),rc(this))}; g.N.removeAll=function(w){if(w=w===void 0?!1:w)for(var M=g.G(this.data),P=M.next();!P.done;P=M.next())CI(this,P.value,w);this.data=[];rc(this)}; g.N.v3=function(){var w=this;g.v.prototype.v3.call(this);this.data.forEach(function(M){CI(w,M,!0)}); this.data=[]};g.V(g.tl,g.v);g.N=g.tl.prototype;g.N.v3=function(){for(var w=g.G(Object.values(this.C)),M=w.next();!M.done;M=w.next())M.value.dispose();biu(this);this.B.dispose();g.v.prototype.v3.call(this)}; g.N.xm=function(w){return w?w===1?this.V:this.L.getVideoData().enableServerStitchedDai&&w===2?this.L.getVideoData().Fs?this.C[2]||this.L:this.L:this.C[w]||null:this.L}; g.N.gB=function(w){var M=w.cpn;w=w.playerType;if(M)a:{w=g.G(Object.values(this.C));for(var P=w.next();!P.done;P=w.next())if(P=P.value,P.RE()===M){M=P;break a}M=this.K[M]||null}else M=w?this.xm(w):this.L;return M}; g.N.Pj=function(){return this.V}; g.N.fJ=function(w){this.V=w}; g.N.uW=function(){return this.L}; g.N.uu=function(w){this.L=w;xd(this)}; g.N.mY=u2(46);g.N.Y5=u2(48);g.V(tsR,g.jq);g.N=tsR.prototype;g.N.sx=function(){}; g.N.RE=function(){return this.videoData.clientPlaybackNonce}; g.N.getVideoData=function(){if(g.jq.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state"))var w=this.videoData;else{var M=this.lB;var P=g.jq.prototype.getCurrentTime.call(this);if(M.mP)M=void 0;else{var u=void 0;M.y_&&(u=M.B.B.get(M.y_));if(!u){u=hw1(M,P*1E3);var X,U=(X=u)==null?void 0:X.cpn;M.y_?U&&M.y_!==U&&M.H3({cpcnm:U+"_"+M.y_,cmt:P.toFixed(3)}):M.H3({cpcna:U,cmt:P.toFixed(3)})}M=(w=u)==null?void 0:w.videoData}w=M||g.jq.prototype.getVideoData.call(this)}return w}; g.N.getCurrentTime=function(w){var M=g.jq.prototype.getCurrentTime.call(this);g.jq.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state")?this.endTime===0?w||(M-=this.startTime):w&&(M=this.endTime-this.startTime):(w?w=this.lB.Oc/1E3||M:(w=M,w=(M=WW4(this.lB,w*1E3))?w-M.start/1E3:w),M=w);return M}; g.N.getDuration=function(){if(g.jq.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state"))var w=this.duration;else{w=this.lB;var M=g.jq.prototype.getCurrentTime.call(this);w=(w=hw1(w,M*1E3))?w.durationMs/1E3:0}return w}; g.N.l4=function(w){this.duration=w};g.ak.prototype.zb=function(w,M){if(M===1)return this.B.get(w);if(M===2)return this.C.get(w);if(M===3)return this.L.get(w)}; g.ak.prototype.PO=u2(58);g.ak.prototype.x0=function(w,M,P,u){P={Ll:u,Z1:P};M?this.C.set(w,P):this.B.set(w,P)}; g.ak.prototype.clearAll=function(){this.B.clear();this.C.clear();this.L.clear()}; Oi2.prototype.clear=function(){this.L=[];this.B.clear();this.X.clear();this.C.clear()}; g.V(g.wW,g.v);g.N=g.wW.prototype;g.N.vN=function(w){var M=w.yv?w.yv*1E3:w.wK,P=this.C.get(w.cpn);P&&this.playback.removeCueRange(P);this.C.delete(w.cpn);this.B.B.delete(w.cpn);P=this.B.L.indexOf(w);P>=0&&this.B.L.splice(P,1);P=[];for(var u=g.G(this.G),X=u.next();!X.done;X=u.next())X=X.value,X.end<=M?this.playback.removeCueRange(X):P.push(X);this.G=P;VEM(this,0,M+w.durationMs)}; g.N.onCueRangeEnter=function(w){this.xu.push(w);var M=w.getId();this.H3({oncueEnter:1,cpn:M,start:w.start,end:w.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Ap()||0).toFixed(3)});var P=M==="";this.t9.add(w.L);var u=this.B.B.get(M);if(P){var X;if(this.playback.getVideoData().VH()&&((X=this.L)==null?0:X.xf)&&this.X){this.xn=0;this.L=void 0;this.V&&(this.events.Mt(this.V),this.V=null);this.X="";this.UO=!0;return}}else if(this.H3({enterAdCueRange:1}),this.playback.getVideoData().VH()&& (u==null?0:u.U5))return;if(this.UO&&!this.L)this.UO=!1,!P&&u&&(P=this.playback.getCurrentTime(),$P(this,{Fq:w,isAd:!0,v8:!0,g5:P,adCpn:M},{isAd:!1,v8:!1,g5:P}),this.y_=u.cpn,this.Yn(u.cpn,P),u1(this,u),w=Ps(this,"midab",u),this.H3(w),this.xn=1),this.K=!1;else if(this.L){if(this.L.v8)this.H3({a_pair_of_same_transition_occurs_enter:1,acpn:this.L.adCpn,transitionTime:this.L.g5,cpn:M,currentTime:this.playback.getCurrentTime()}),u=this.playback.getCurrentTime(),w={Fq:w,isAd:!P,v8:!0,g5:u,adCpn:M},M={Fq:this.L.Fq, isAd:this.L.isAd,v8:!1,g5:u,adCpn:this.L.adCpn},this.L.Fq&&this.t9.delete(this.L.Fq.L),$P(this,w,M);else{if(this.L.Fq===w){this.H3({same_cue_range_pair_enter:1,acpn:this.L.adCpn,transitionTime:this.L.g5,cpn:M,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:w.start,cueRangeEndTime:w.end});this.L=void 0;return}if(this.L.adCpn===M){M&&this.H3({dchtsc:M});this.L=void 0;return}w={Fq:w,isAd:!P,v8:!0,g5:this.playback.getCurrentTime(),adCpn:M};$P(this,w,this.L)}this.L=void 0;this.K=!1}else this.L= {Fq:w,isAd:!P,v8:!0,g5:this.playback.getCurrentTime(),adCpn:M}}; g.N.Yn=function(w,M){if(w===this.playback.RE())Of(this.app.sG(),this.playback,!1);else{var P=this.OO.get(w);P?(P.endTime=0,P.startTime=M,Of(this.app.sG(),P,!0)):this.H3({nop_s:w})}}; g.N.onCueRangeExit=function(w){var M=w.getId();this.H3({oncueExit:1,cpn:M,start:w.start,end:w.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Ap()||0).toFixed(3)});var P=M==="",u=this.B.B.get(M);if(this.playback.getVideoData().VH()&&!P&&u){if(u.U5)return;u.U5=!0;this.j.clear();if(this.P3.D("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.B1()){var X=u.wK;this.playback.X2(X/1E3,(X+u.durationMs)/1E3)}else this.playback.II("lifa",{remove:0})}if(this.t9.has(w.L))if(this.t9.delete(w.L), this.xu=this.xu.filter(function(U){return U!==w}),this.UO&&(this.K=this.UO=!1,this.H3({cref:1})),this.L){if(this.L.v8){if(this.L.Fq===w){this.H3({same_cue_range_pair_exit:1, acpn:this.L.adCpn,transitionTime:this.L.g5,cpn:M,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:w.start,cueRangeEndTime:w.end});this.L=void 0;return}if(this.L.adCpn===M){M&&this.H3({dchtsc:M});this.L=void 0;return}M={Fq:w,isAd:!P,v8:!1,g5:this.playback.getCurrentTime(),adCpn:M};$P(this,this.L,M)}else if(this.H3({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.L.adCpn,transitionTime:this.L.g5,upcomingCpn:M,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.L.adCpn===M)return;this.L=void 0;this.K=!1}else this.L={Fq:w,isAd:!P,v8:!1,g5:this.playback.getCurrentTime(),adCpn:M};else this.H3({ignore_single_exit:1})}; g.N.C$=function(){return{cpn:this.playback.RE(),durationMs:0,wK:0,playerType:1,Im:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.N.rj=function(){if(this.mP)return!1;var w=void 0;this.y_&&(w=this.B.B.get(this.y_));return this.playback.getVideoData().VH()?!!w&&!w.U5:!!w}; g.N.seekTo=function(w,M,P,u){w=w===void 0?0:w;M=M===void 0?{}:M;P=P===void 0?!1:P;u=u===void 0?null:u;if(this.playback.getVideoData().VH()&&w<=this.Oc/1E3)this.playback.pauseVideo(),this.Oc=0,this.K=!0,this.playback.Rd(),this.playback.seekTo(w),this.playback.playVideo();else if(this.K=!0,P)wKx(this,w,M);else{P=this.app.uW();var X=P===this.eL?this.cj:null;fG(this,!1);this.hD=w;this.M7=M;u!=null&&this.fg.start(u);P&&(this.cj=X||P.getPlayerState(),P.zA(M),this.eL=P)}}; g.N.v3=function(){fG(this,!1);Zvl(this);StR(this);g.v.prototype.v3.call(this)}; g.N.HN=function(w){this.QE=w;this.H3({swebm:w})}; g.N.ME=function(w,M,P){if(P&&M){var u=this.j.get(w);if(u){u.locations||(u.locations=new Map);var X=Number(M.split(";")[0]);P=new g.Kr(P);this.H3({hdlredir:1,itag:M,seg:w,hostport:IT(P)});u.locations.set(X,P)}}}; g.N.K3=function(w,M,P,u,X,U){var f=u===3,h=pK4(this,w,M,u,P,U);if(!h){hZ(this,M,f);var c=g.HvU(this,M)?"undec":"ncp";this.H3({gvprp:c,mt:w,seg:M,tt:u,itag:P,ce:U});return null}f||this.j.set(M,h);U=h.C6;var Z;u=((Z=this.zb(M-1,u,X))==null?void 0:Z.Ll)||"";u===""&&this.H3({eds:1});Z=EZx(this,h.ssdaiAdsConfig);X=this.playback.getVideoData();var S;f=((S=X.L)==null?void 0:S.containerType)||0;S=X.Xs[f];h=h.H8&&M>=h.H8?h.H8:void 0;S={jY:U?oZl(this,U):[],JB:Z,Ll:u,kC:h,ZW:QG(S.split(";")[0]),H0:S.split(";")[1]|| ""};h={u4:S};this.iW&&(w={gvprpro:"v",sq:M,mt:w.toFixed(3),itag:P,acpns:((c=S.jY)==null?void 0:c.join("_"))||"none",abid:U},this.H3(w));return h}; g.N.BK=function(w){a:{if(!this.mP){var M=FW5(this,w);if(!(this.playback.getVideoData().VH()&&(M==null?0:M.U5)))break a}M=void 0}var P=M;if(!P)return this.H3({gvprp:"ncp",mt:w}),null;M=P.C6;var u=EZx(this,P.ssdaiAdsConfig);P=P.H8&&P.Fd&&w>=P.Fd?P.H8:void 0;var X=this.playback.getVideoData(),U,f=((U=X.L)==null?void 0:U.containerType)||0;U=X.Xs[f];U={jY:M?oZl(this,M):[],JB:u,kC:P,ZW:QG(U.split(";")[0]),H0:U.split(";")[1]||""};var h;w={gvprpro:"v",mt:w.toFixed(3),acpns:((h=U.jY)==null?void 0:h.join("_"))|| "none",abid:M};this.H3(w);return U}; g.N.jg=function(w,M,P,u,X,U){var f=Number(P.split(";")[0]),h=u===3;w=pK4(this,w,M,u,P,U);this.H3({gdu:1,seg:M,itag:f,pb:""+!!w});if(!w)return hZ(this,M,h),null;w.locations||(w.locations=new Map);if(!w.locations.has(f)){var c,Z;U=(c=w.videoData.getPlayerResponse())==null?void 0:(Z=c.streamingData)==null?void 0:Z.adaptiveFormats;if(!U)return this.H3({gdu:"noadpfmts",seg:M,itag:f}),hZ(this,M,h),null;c=U.find(function(p){return p.itag===f}); if(!c||!c.url){var S=w.videoData.videoId;w=[];var H=g.G(U);for(u=H.next();!u.done;u=H.next())w.push(u.value.itag);this.H3({gdu:"nofmt",seg:M,vid:S,itag:f,fullitag:P,itags:w.join(",")});hZ(this,M,h);return null}w.locations.set(f,new g.Kr(c.url,!0))}U=w.locations.get(f);if(!U)return this.H3({gdu:"nourl",seg:M,itag:f}),hZ(this,M,h),null;U=new e3(U);this.QE&&(U.get("dvc")?this.H3({dvc:U.get("dvc")||""}):U.set("dvc","webm"));(u=(H=this.zb(M-1,u,X))==null?void 0:H.Ll)&&U.set("daistate",u);w.H8&&M>=w.H8&& U.set("skipsq",""+w.H8);(H=this.playback.getVideoData().clientPlaybackNonce)&&U.set("cpn",H);H=[];w.C6&&(H=oZl(this,w.C6),H.length>0&&U.set("acpns",H.join(",")));h||this.j.set(M,w);h=null;h=U.get("aids");u=U.xa();(u==null?void 0:u.length)>2048&&this.H3({urltoolong:1,sq:M,itag:f,len:u.length});this.iW&&(u&&(U=w.cpn,X=w.C6,DzU(this,U,X),X&&!this.KT.has(X)&&(U=Gh_(this,U,X),c=yGF(this,X),this.H3({iofa:U}),this.H3({noawnzd:c-U}),this.H3({acpns:H.join("."),aids:(S=h)==null?void 0:S.replace(/,/g,".")}), this.KT.add(X))),this.H3({gdu:"v",seg:M,itag:P,ast:w.wK.toFixed(3),alen:w.durationMs.toFixed(3),acpn:w.cpn,avid:w.videoData.videoId}));return u}; g.N.Zg=function(w,M,P){P=P===void 0?!1:P;var u=Ws(this,w,M);if(u){var X=void 0,U=u.C6;if(U){this.H3({skipadonsq:M,sts:P,abid:U,acpn:u.cpn,avid:u.videoData.videoId});P=this.B.C.get(U);if(!P)return;P=g.G(P);for(U=P.next();!U.done;U=P.next())U=U.value,U.H8=M,U.Fd=w,U.wK>u.wK&&(X=U)}this.X=u.cpn;Nll(this);w=this.playback.getCurrentTime();Xh(this,u,X,w,w,!1,!0)}}; g.N.AY=function(){for(var w=g.G(this.B.L),M=w.next();!M.done;M=w.next())M=M.value,M.H8=NaN,M.Fd=NaN;Nll(this);this.H3({rsac:"resetSkipAd",sac:this.X});this.X=""}; g.N.zb=function(w,M,P){return this.ys.zb(w,M,P)}; g.N.PO=u2(57); g.N.x0=function(w,M,P,u,X,U,f,h,c){u.length>0&&this.H3({onssinfo:1,sq:w,start:M.toFixed(3),cpns:u.join(","),ds:X.join(","),isVideo:f?1:0});c&&this.ys.x0(w,f,h,c);if(f){if(u.length&&X.length)for(this.X&&this.X===u[0]&&this.H3({skipfail:1,sq:w,acpn:this.X}),w=M+this.x6(),f=0;f0&&(this.xn=0,this.y_="",this.api.publish("serverstitchedvideochange"));this.playback.w1(P,u);return!0}; g.N.Kl=function(){this.H3({rstdaist:1});this.ys.clearAll()}; g.N.k0=function(w){var M;if(w!==((M=this.B3)==null?void 0:M.identifier))this.H3({ignorenoad:w});else{this.bW.add(w);this.H3({noadrcv:w});var P;((P=this.B3)==null?void 0:P.identifier)===w&&M8(this)}}; g.N.K8=function(w){if(this.mP)return this.H3({dai_disabled:w.event}),!1;if(this.playback.getVideoData().VH()&&(this.P3.D("html5_lifa_no_gab_on_predict_start")&&w.event==="predictStart"||w.event==="continue"||w.event==="stop"))return!1;var M=B4(this.api.I9());if(M=M?M.K8(w):!1)this.S={FS:w.identifier,Ny:w.startSecs};else if(this.S&&this.S.FS===w.identifier&&w.startSecs>this.S.Ny+1){this.H3({cueStChg:w.identifier,oldSt:this.S.Ny.toFixed(3),newSt:w.startSecs.toFixed(3),abid:this.S.iN});if(this.S.iN){var P= w.startSecs-this.S.Ny,u=this.B.C.get(this.S.iN);if(u){u=g.G(u);for(var X=u.next();!X.done;X=u.next())X=X.value,X.wK>=0&&(X.wK+=P*1E3,this.P3.D("html5_ssdai_update_timeline_on_start_time_change")&&(X.Im+=P*1E3),this.H3({newApEt:X.wK,newApPrt:X.Im,acpn:X.cpn}))}}this.S.Ny=w.startSecs}return M}; g.N.cM=function(w){return this.mP?!1:!!FW5(this,w)}; g.N.KJ=function(w){var M=this;if(this.P3.D("html5_lifa_ignore_multiple_skips")&&this.V)return this.H3({ufs_ad:this.X,ufs_cur:this.y_,ufs_cont:this.C$().cpn}),!1;this.playback.pauseVideo();var P=this.playback.getCurrentTime(),u=this.P3.D("html5_lifa_reset_segment_index_on_skip"),X=u?P+this.playback.x6():P,U=this.B.B.get(this.y_),f=this.C.get(this.y_);if(U){this.X=this.y_;this.K=!1;U.U5=!0;P=this.playback.getCurrentTime();this.L={Fq:f,isAd:!0,v8:!1,g5:P,adCpn:this.y_,xf:U,Iok:w};this.playback.TI(U, this.C$(),P,this.playback.getCurrentTime(),!1,!0,w,(0,g.G$)());u&&this.playback.bf();if(f==null?0:f.start)this.Oc=P*1E3-f.start,fF_(this,f.id,P);this.j.clear();this.playback.Rd();w=this.C$();this.y_=w.cpn;this.Yn(w.cpn,P);this.api.publish("serverstitchedvideochange");this.playback.seekTo(X,{seekSource:89,Wk:"lifa_skip"});this.playback.playVideo();this.V||(this.V=this.events.Y(this.api,"progresssync",function(){M.vN(U)})); return!0}this.H3({skipFail:P},!0);return!1}; g.N.H3=function(w,M){((M===void 0?0:M)||this.iW||this.playback.getVideoData().VH())&&this.playback.II("sdai",w)}; var ueF=0;g.V(qtp,g.wW);g.N=qtp.prototype;g.N.onCueRangeEnter=function(w){var M=w.getId();this.playback.II("sdai",{oncueEnter:1,cpn:M,start:w.start,end:w.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Ap()||0).toFixed(3)});var P=this.B.B.get(M);this.playback.II("sdai",{enterAdCueRange:1});var u=this.y_||this.C$().cpn,X;u=(X=this.B.B.get(u))!=null?X:this.C$();P&&(X=this.playback.getCurrentTime(),P={Rg:u,Ig:P,pU:X},TlH(this,M,w.start/1E3,X),zwR(this,P))}; g.N.onCueRangeExit=function(w){for(var M=this.playback.getCurrentTime()*1E3,P=w.getId(),u=g.G(this.C.values()),X=u.next();!X.done;X=u.next())if(X=X.value,X.getId()!==P&&M>=X.start&&M<=X.end)return;if(P=this.B.B.get(P))M=this.playback.getCurrentTime(),P={Rg:P,Ig:this.C$(),pU:M},TlH(this,this.playback.RE(),w.end/1E3,M),zwR(this,P)}; g.N.seekTo=function(w,M,P,u){w=w===void 0?0:w;M=M===void 0?{}:M;P=P===void 0?!1:P;u=u===void 0?null:u;Zy(this,this.y_);this.playback.getVideoData().VH()&&w<=this.Ob?(this.playback.pauseVideo(),this.Ob=this.Oc=0,dzH(this,w)):g.wW.prototype.seekTo.call(this,w,M,P,u)}; g.N.Zg=function(w,M,P){P=P===void 0?!1:P;var u=Ws(this,w,M);if(u){var X=void 0,U=u.C6;if(U){this.playback.II("sdai",{skipadonsq:M,sts:P,abid:U,acpn:u.cpn,avid:u.videoData.videoId});P=this.B.C.get(U);if(!P)return;P=g.G(P);for(U=P.next();!U.done;U=P.next())U=U.value,U.H8=M,U.Fd=w,U.wK>u.wK&&(X=U)}Zy(this,this.y_);this.X=u.cpn;Nll(this);w=this.playback.getCurrentTime();Xh(this,u,X,w,w,!1,!0);this.X="";this.K=!1}}; g.N.x0=function(w,M,P,u,X,U,f,h,c){u.length>0&&this.playback.II("sdai",{onssinfo:1,sq:w,start:M.toFixed(3),cpns:u.join(","),ds:X.join(","),isVideo:f?1:0});c&&this.ys.x0(w,f,h,c);if(f){if(u.length&&X.length)for(this.X&&this.X===u[0]&&this.playback.II("sdai",{skipfail:1,sq:w,acpn:this.X}),w=M+this.x6(),P=0;P=0&&this.B.L.splice(w,1)};g.V(ewz,g.v);g.N=ewz.prototype;g.N.onCueRangeEnter=function(w){if(this.B===this.app.uW()){var M=this.G.get(w);M?vZR(this,M.target,M.oB,w):this.vl("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:w.toString()})}else if(M=this.L.find(function(X){return X.Gv.Fq===w})){var P=M.Gv,u=P.target; P=P.oB;u?vZR(this,u,P,w):nZl(this,M.Im,P,w)}}; g.N.onQueuedVideoLoaded=function(){var w=this.j;Fh(this);if(w){if(!pG(this,w)){var M=this.app.uW();this.vl("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:M==null?void 0:M.getVideoData().clientPlaybackNonce,ccpn:""+w.playerVars.cpn})}this.app.uW().addCueRange(w.Gv.Fq)}}; g.N.seekTo=function(w,M,P,u){w=w===void 0?0:w;M=M===void 0?{}:M;u=u===void 0?null:u;if(P===void 0?0:P)LWM(this,w,M);else{P=this.app.uW()||null;var X=P===this.X?this.K:null;Ex(this,!1);this.B3=w;this.S=M;u!=null&&this.V.start(u);P&&(this.K=X||P.getPlayerState(),P.zA(),this.X=P)}}; g.N.S1=function(w){g.fW(w,128)&&AGl(this)}; g.N.isManifestless=function(){return qI(this.B.getVideoData())}; g.N.v3=function(){Ex(this,!1);JG2(this);g.v.prototype.v3.call(this)}; g.N.vl=function(w,M){this.B.vl(new g.hy(w,M))}; var BlU=0;var rGM="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.V(N8,g.v);N8.prototype.Sy=function(w){if(w)return this.L.get(w)}; N8.prototype.v3=function(){this.B.removeAll();this.L.removeAll();g.v.prototype.v3.call(this)};g.qVa=BS(function(){var w=window.AudioContext||window.webkitAudioContext;try{return new w}catch(M){return M.name}});g.V(Ovx,g.r);g.N=Ovx.prototype;g.N.pH=function(){g.MB(this.element,g.Kz.apply(0,arguments))}; g.N.Fc=function(){this.JD&&(this.JD.removeEventListener("focus",this.Bi),g.Vy(this.JD),this.JD=null)}; g.N.Hr=function(){this.sO();var w=this.app.N();w.vC||this.pH("tag-pool-enabled");w.K&&this.pH(g.Eq.HOUSE_BRAND);w.playerStyle==="gvn"&&(this.pH("ytp-gvn"),this.element.style.backgroundColor="transparent");w.QE&&(this.QB=g.ti("yt-dom-content-change",this.resize,this));w.D("html5_screen_orientation_resize")?window.screen&&window.screen.orientation?this.Y(window.screen.orientation,"change",this.resize,this):this.Y(window,"orientationchange",this.resize,this):this.Y(window,"orientationchange",this.resize, this);this.Y(window,"resize",this.resize,this)}; g.N.BT=function(w){g.Ju(this.app.N());this.jq=!w;V4(this)}; g.N.resize=function(){if(this.JD){var w=this.RQ();if(!w.isEmpty()){var M=!g.jt(w,this.pZ.getSize()),P=P4R(this);M&&(this.pZ.width=w.width,this.pZ.height=w.height);w=this.app.N();(P||M||this.U3||w.QE)&&this.app.h9.publish("resize",this.getPlayerSize())}}}; g.N.FG=function(w,M){this.updateVideoData(M)}; g.N.updateVideoData=function(w){if(this.JD){var M=this.app.N();bb&&(this.JD.setAttribute("x-webkit-airplay","allow"),w.title?this.JD.setAttribute("title",w.title):this.JD.removeAttribute("title"));this.JD.setAttribute("controlslist","nodownload");M.U$&&w.videoId&&(this.JD.poster=w.Md("default.jpg"))}M=g.kp(w,"yt:bgcolor");this.qG.style.backgroundColor=M?M:"";this.Qg=Pn(g.kp(w,"yt:stretch"));this.wp=Pn(g.kp(w,"yt:crop"),!0);g.X6(this.element,"ytp-dni",w.Ym);this.resize()}; g.N.setGlobalCrop=function(w){this.R3=Pn(w,!0);this.resize()}; g.N.setCenterCrop=function(w){this.o5=w;this.resize()}; g.N.Vc=function(){}; g.N.getPlayerSize=function(){var w=this.app.N(),M=this.app.h9.isFullscreen(),P=w.externalFullscreen&&g.K7(w);if(M&&sL()&&!P)return new g.rq(window.outerWidth,window.outerHeight);P=!isNaN(this.rD.width)&&!isNaN(this.rD.height);var u=this.app.N().D("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.N().D("web_watch_enable_fs_squeezeback_panels");if(M&&!P&&u)return new g.rq(this.element.clientWidth,this.element.clientHeight);if(M||w.QJ){if(window.matchMedia){w="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.gM&&this.gM.media===w||(this.gM=window.matchMedia(w));var X=this.gM&&this.gM.matches}if(X)return new g.rq(window.innerWidth,window.innerHeight)}else if(P)return this.rD.clone();return new g.rq(this.element.clientWidth,this.element.clientHeight)}; g.N.RQ=function(){var w=this.app.N().D("enable_desktop_player_underlay"),M=this.getPlayerSize(),P=g.Oh(this.app.N().experiments,"player_underlay_min_player_width");return w&&this.qC&&M.width>P?(w=g.Oh(this.app.N().experiments,"player_underlay_video_width_fraction"),new g.rq(Math.min(M.height*this.getVideoAspectRatio(),M.width*w),Math.min(M.height,M.width*w/this.getVideoAspectRatio()))):M}; g.N.getVideoAspectRatio=function(){return isNaN(this.Qg)?wry(this):this.Qg}; g.N.getVideoContentRect=function(w){var M=this.RQ();w=igz(this,M,this.getVideoAspectRatio(),w);return new g.Kj((M.width-w.width)/2,(M.height-w.height)/2,w.width,w.height)}; g.N.o4=function(w){this.qC=w;this.resize()}; g.N.dj=function(){return this.Fp}; g.N.onMutedAutoplayChange=function(){V4(this)}; g.N.setInternalSize=function(w){g.jt(this.rD,w)||(this.rD=w,this.resize())}; g.N.v3=function(){this.QB&&g.xQ(this.QB);this.Fc();g.r.prototype.v3.call(this)};g.N=XrF.prototype;g.N.click=function(w,M){this.elements.has(w);this.B.has(w);var P=g.En();P&&w.visualElement&&g.xq(P,w.visualElement,M)}; g.N.createClientVe=function(w,M,P,u){var X=this;u=u===void 0?!1:u;this.elements.has(w);this.elements.add(w);P=N$1(P);w.visualElement=P;var U=g.En(),f=g.F_();U&&f&&(g.FW("combine_ve_grafts")?rE(gE(),P,f):g.j2(g.vm)(void 0,U,f,P));M.addOnDisposeCallback(function(){X.elements.has(w)&&X.destroyVe(w)}); u&&this.L.add(w)}; g.N.createServerVe=function(w,M,P){var u=this;P=P===void 0?!1:P;this.elements.has(w);this.elements.add(w);M.addOnDisposeCallback(function(){u.destroyVe(w)}); P&&this.L.add(w)}; g.N.destroyVe=function(w){this.elements.has(w);this.elements.delete(w);this.C.delete(w);this.B.delete(w);this.L.delete(w)}; g.N.mp=function(w,M){this.clientPlaybackNonce!==M&&(this.clientPlaybackNonce=M,Jk(gE(),w),$yy(this))}; g.N.setTrackingParams=function(w,M){this.elements.has(w);M&&(w.visualElement=g.Hm(M))}; g.N.AD=function(w,M,P){this.elements.has(w);M?this.B.add(w):this.B.delete(w);var u=g.En(),X=w.visualElement;this.L.has(w)?u&&X&&(M?g.Cq(u,[X]):g.tg(u,[X])):M&&!this.C.has(w)&&(u&&X&&g.jR(u,X,void 0,P),this.C.add(w))}; g.N.hasVe=function(w){return this.elements.has(w)};g.V(g.op,g.v);g.op.create=function(w,M,P,u){try{var X=typeof w==="string"?w:"player"+g.UE(w),U=dm[X];if(U){try{U.dispose()}catch(h){g.qU(h)}dm[X]=null}var f=new g.op(w,M,P,u);f.addOnDisposeCallback(function(){dm[X]=null;f.yr&&f.yr()}); return dm[X]=f}catch(h){throw g.qU(h),(h&&h instanceof Error?h:Error(String(h))).stack;}}; g.N=g.op.prototype;g.N.K$=function(){return this.visibility}; g.N.fJ=function(w){var M=this.Pj();if(w!==M){w.getVideoData().autonavState=M.getVideoData().autonavState;M.cO(this.Pr,this);var P=M.getPlaybackRate();M.dispose();this.CT.fJ(w);w.setPlaybackRate(P);w.Ng(this.Pr,this);Sju(this)}}; g.N.aQ=function(){this.zK||(this.zK=g.IY(J$(),eb4()));return this.zK}; g.N.Fc=function(w){if(this.mediaElement){this.I2&&(this.events.Mt(this.I2),this.I2=null);g.qi(this.Ri);this.uW().Fc(!0,!1,w);this.template.Fc();try{this.D("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Yi()}catch(M){g.Yq(M)}this.mediaElement=null}}; g.N.uu=function(w,M,P){P=P===void 0?!1:P;if(w!==this.uW()){this.logger.debug(function(){return"start set presenting player, type "+w.getPlayerType()+", vid "+w.getVideoData().videoId}); var u=null;P||(P=this.uW(),u=P.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),eO(this.wB,3),gW(this,"cuerangesremoved",P.IQ()),this.EG&&!w.isGapless()&&P.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),P=w.B_()&&P.B_(),this.rK.bP("iv_s"),ob2(this,P));w.getPlayerType()===1&&this.fJ(w);myR(this,w);this.CT.uu(w);this.mediaElement&&w.setMediaElement(this.mediaElement);w.Ng(this.KO,this);w.V2()?jMl(this,"setPresenting",!1):(this.FG("newdata",w,w.getVideoData()), u&&!g.yO(u,w.getPlayerState())&&this.uL(new g.$9(w.getPlayerState(),u)),M=M&&w.getPlayerType()===1,w.IK()&&!M&&this.FG("dataloaded",w,w.getVideoData()),(M=(M=w.getVideoData().L)&&M.video)&&this.h9.OE("onPlaybackQualityChange",M.quality),gW(this,"cuerangesadded",w.IQ()),M=w.getPlayerState(),g.C(M,2)?Vzy(this):g.C(M,8)?w.playVideo():w.qc()&&w.pauseVideo(),M=this.Pj(),w.getPlayerType()===2&&(w.getVideoData().hj=M.getVideoData().clientPlaybackNonce),w.getPlayerType()!==2||this.q6()||(u=w.getVideoData(), M.D7(u.clientPlaybackNonce,u.QL||"",u.breakType||0,u.Ob,u.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.N.Zf=function(){if(this.Pj()!==this.uW()){var w=this.uW();this.logger.debug(function(){return"release presenting player, type "+w.getPlayerType()+", vid "+w.getVideoData().videoId}); this.uu(this.Pj())}}; g.N.sG=function(){return this.CT}; g.N.gB=function(w){return this.CT.gB(w)}; g.N.xm=function(w){return this.CT.xm(w)}; g.N.Pj=function(){return this.CT.Pj()}; g.N.uW=function(){return this.CT.uW()}; g.N.oy=u2(44);g.N.sI$=function(){z4(this)||(this.logger.debug("application playback ready"),this.Nx(5))}; g.N.o2s=function(){if(!z4(this)){this.logger.debug("playback ready");A6x(this);var w=this.uW(),M=w.getPlayerState();w.qc()?this.pauseVideo():M.isOrWillBePlaying()&&this.playVideo()}}; g.N.canPlayType=function(w){return HU(w)}; g.N.N=function(){return this.P3}; g.N.getVideoData=function(){return this.uW().getVideoData()}; g.N.lR=u2(11);g.N.Bl=function(){return this.Pj().getVideoData()}; g.N.getVideoLoadedFraction=function(w){return(w=this.gB({playerType:w}))?w.getVideoLoadedFraction():this.CT.B.getVideoLoadedFraction()}; g.N.oI=function(){return this.template}; g.N.I9=function(){return this.wB}; g.N.Li=function(){return this.rK}; g.N.j4=function(w){var M=this.gB({playerType:1});M&&M.lP(w)}; g.N.VS=function(){var w=this.wB.VS();this.h9.publish("videoStatsPingCreated",w);return w}; g.N.getVolume=function(){return Math.round(this.h9.getVolume())}; g.N.isMuted=function(){return this.h9.isMuted()}; g.N.aq=function(){if(this.Pj()===this.uW()&&this.Cg)return this.Cg.postId}; g.N.Jw0=function(){var w=this;this.D("use_rta_for_player")||(g.Z$(this.P3)?g.E_(this.P3,g.Op(this.getVideoData())).then(function(M){rI(J$(),M);tL2(w.getVideoData(),w.P3,w.aQ())}):tL2(this.getVideoData(),this.P3,this.aQ()))}; g.N.cV=function(w){this.h9.publish("poTokenVideoBindingChange",w)}; g.N.i8=function(w){this.h9.publish("d6de4videobindingchange",w)}; g.N.YI=function(){this.X5&&this.X5.YI()}; g.N.iQ=function(w){this.X5=w}; g.N.DQ=function(w){if(w===1){this.rK.tick("vr");var M=this.uW();M.jc();hnu(this.rK,M.getVideoData(),IJu(this));spu(this.wB)}M=this.P3;if(H0(M)&&M.V||g.jY(M)){var P;(((P=this.uW().getVideoData())==null?0:P.enableServerStitchedDai)||!this.q6())&&this.h9.OE("onAdStateChange",w)}}; g.N.setLoopVideo=function(w){var M=this.uW();M===this.Pj()&&M.TL()!==w&&(M.setLoop(w),this.h9.Vs("onLoopChange",w))}; g.N.getLoopVideo=function(){return this.uW().TL()}; g.N.setLoopRange=function(w){var M=!1;!!this.Cg!==!!w?M=!0:this.Cg&&w&&(M=this.Cg.startTimeMs!==w.startTimeMs||this.Cg.endTimeMs!==w.endTimeMs||this.Cg.postId!==w.postId||this.Cg.type!==w.type);if(M){M=this.uW();FM(M.getVideoData())&&M.II("slr",{et:(w==null?void 0:w.endTimeMs)||-1});M=this.Pj();M.dB("applooprange");if(w){var P=new g.bg(w.startTimeMs,w.endTimeMs,{id:"looprange",namespace:"applooprange"});M.addCueRange(P)}else{this.Bl().clipConfig=void 0;var u;((P=this.Cg)==null?void 0:P.type)!=="repeatChapter"|| isNaN(Number((u=this.Cg)==null?void 0:u.loopCount))||(P={loopCount:String(this.Cg.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.ub("repeatChapterLoopEvent",P))}this.Cg=w;this.h9.Vs("onLoopRangeChange",w||void 0);this.Pj()===this.uW()&&(this.JA(),M.Bp())}}; g.N.getLoopRange=function(){return this.Cg}; g.N.JA=function(){var w="",M=this.Pj();this.Cg?M!==this.uW()?w="pnea":dy_(this,M.getCurrentTime())&&(this.Cg.loopCount=0,w="ilr"):w="nlr";var P=this.uW();if(FM(P.getVideoData()))if(this.D("html5_gapless_log_loop_range_info")){var u,X;P.II("slrre",{rej:w,ct:M.getCurrentTime(),lst:(u=this.Cg)==null?void 0:u.startTimeMs,let:(X=this.Cg)==null?void 0:X.endTimeMs})}else P.II("slrre",{});w||LNF(this)}; g.N.setPlaybackRate=function(w,M){if(!isNaN(w)){w=FN2(this,w);var P=this.Pj();P.getPlaybackRate()!==w&&(P.setPlaybackRate(w),M&&!this.P3.X&&g.Tg("yt-player-playback-rate",w),this.h9.OE("onPlaybackRateChange",w))}}; g.N.getCurrentTime=function(w,M){M=M===void 0?!0:M;var P=this.CT.Wb;if(P)return P.getCurrentTime();var u=w===2&&this.getVideoData().enableServerStitchedDai;P=null;u?P=this.uW():P=this.gB({playerType:w});return P?u&&this.Hl?(w=this.CT.j)?w.getCurrentTime(M):P.getCurrentTime():M?(M=YP(this,P),nG(this,M.getCurrentTime(),M)):P.getCurrentTime():this.CT.B.getCurrentTime()}; g.N.rk=function(){var w=this.gB({playerType:void 0});if(!w)return this.CT.B.rk();w=YP(this,w);return nG(this,w.rk(),w)}; g.N.getDuration=function(w,M){M=M===void 0?!0:M;var P=this.CT.Wb;if(P)return P.getDuration();P=this.getVideoData();var u=w===2&&P.enableServerStitchedDai,X=null;u?X=this.uW():X=this.gB({playerType:w});if(!X)return this.CT.B.getDuration();if(P.hasProgressBarBoundaries()&&!u){var U,f=Number((U=P.progressBarStartPosition)==null?void 0:U.utcTimeMillis),h;U=Number((h=P.progressBarEndPosition)==null?void 0:h.utcTimeMillis);if(!isNaN(f)&&!isNaN(U))return(U-f)/1E3}if(FM(P)&&!P.isLivePlayback)return kP(this, w);if(M)return w=q8(this,X),nG(this,w.getDuration(),w);if(u&&this.Hl){if(this.D("html5_huli_ssdai_use_playback_state"))return w=this.CT,w=w.X===w.j?w.X:null,(w==null?void 0:w.getDuration())||0;var c;return((c=this.CT.j)==null?void 0:c.getDuration())||0}return X.getDuration()}; g.N.Ls=function(w){var M=this.gB({playerType:w});return M?this.q6(M)?(M=q8(this,M),M.Ls()-M.getCurrentTime()+this.getCurrentTime(w)):M.Ls():this.CT.B.Ls()}; g.N.finishSegmentByCpn=function(){return[]}; g.N.Hr=function(){this.template.Hr();var w=this.h9;w.state.element=this.template.element;var M=w.state.element,P;for(P in w.state.B)w.state.B.hasOwnProperty(P)&&(M[P]=w.state.B[P]);(w=R9z(this.template.element))&&this.events.Y(this.template,w,this.onFullscreenChange)}; g.N.getDebugText=function(w){var M=this.Pj().Z4(w),P=this.uW();if(P!==this.Pj()){P=P.Z4(w);for(var u=g.G(Object.keys(P)),X=u.next();!X.done;X=u.next())X=X.value,M["ad"+X]=P[X];if(w){P=M;u={};if(X=u6(document,"movie_player"))u.bounds=X.getBoundingClientRect(),u["class"]=X.className;X={};var U=g.fj("video-ads");U?(xyF(U,X),X.html=U.outerHTML):X.missing=1;U={};var f=g.fj("videoAdUiSkipContainer"),h=g.fj("ytp-ad-skip-button-container"),c=g.fj("ytp-skip-ad-button"),Z=f||h||c;Z?(xyF(Z,U),U.ima=f?1:0,U.bulleit= h?1:0,U.component=c?1:0):U.missing=1;u=JSON.stringify({player:u,videoAds:X,skipButton:U});P.ad_skipBtnDbgInfo=u}}w&&this.mediaElement&&(M["0sz"]=""+(+CQ(this.mediaElement.getSize())===0),M.op=this.mediaElement.Tm("opacity"),P=this.mediaElement.jX().y+this.mediaElement.getSize().height,M.yof=""+(+P<=0),M.dis=this.mediaElement.Tm("display"));w&&((w=(0,g.Wu)())&&(M.gpu=w),(w=this.P3.playerStyle)&&(M.ps=w),this.P3.OO&&(M.webview=1));M.debug_playbackQuality=this.h9.getPlaybackQuality(1);M.debug_date=(new Date).toString(); M.origin=window.origin;M.timestamp=Date.now();delete M.uga;delete M.q;return JSON.stringify(M,null,2)}; g.N.getFeedbackProductData=function(){var w={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.N().experiments.experimentIds.join(", "),player_release:W[27]},M=this.getPlayerStateObject().tV;M&&(w.player_error_code=M.errorCode,w.player_error_details=JSON.stringify(M.errorDetail));return w}; g.N.getPresentingPlayerType=function(w){if(this.appState===1)return 1;if(z4(this))return 3;var M;return w&&((M=this.Hl)==null?0:M.rj(this.getCurrentTime()))?2:this.uW().getPlayerType()}; g.N.HY=function(){return!1}; g.N.getPlayerStateObject=function(w){var M=this.CT.Wb;return M?M.getPlayerState():this.gB({playerType:w}).getPlayerState()}; g.N.getAppState=function(){return this.appState}; g.N.fXu=function(w){switch(w.type){case "loadedmetadata":this.z8.start();w=g.G(this.e4);for(var M=w.next();!M.done;M=w.next())M=M.value,bg_(this,M.id,M.Jxk,M.qq3,void 0,!1);this.e4=[];break;case "loadstart":this.rK.bP("gv");break;case "progress":case "timeupdate":C3(w.target.z0())>=2&&this.rK.bP("l2s");break;case "playing":g.Z1&&this.z8.start();if(g.Z$(this.P3))w=!1;else{M=g.sr(this.I9());w=this.mediaElement.Tm("display")==="none"||CQ(this.mediaElement.getSize())===0;var P=m3(this.template),u=this.uW().getVideoData(), X=g.LW(this.P3);u=Ep(u);M=!P||M||X||u||this.P3.bW;w=w&&!M}w&&(w=this.uW(),w.Ra(),this.getVideoData().hD||(this.getVideoData().hD=1,this.Th(),w.playVideo()))}}; g.N.VK$=function(w){this.h9.z5("onLoadProgress",w)}; g.N.czW=function(){this.h9.publish("playbackstalledatstart")}; g.N.ADI=function(w,M){this.h9.publish("sabrCaptionsDataLoaded",w,M)}; g.N.tZ$=function(w){this.uW().uZ(w)}; g.N.uFu=function(w){this.uW().TA(w)}; g.N.LTk=function(w){w=YP(this,this.uW());w=nG(this,w.getCurrentTime(),w);this.h9.OE("onVideoProgress",w);this.P3.JQ&&nb2(this,this.visibility.A5())&&this.pauseVideo()}; g.N.wj$=function(){this.h9.OE("onAutoplayBlocked");var w=this.uW().getVideoData();w&&(w.jF=!0);this.D("embeds_enable_autoplay_and_visibility_signals")&&g.K7(this.P3)&&(w={autoplayBrowserPolicy:Nh(),autoplayIntended:VR(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.ub("embedsAutoplayStatusChanged",w))}; g.N.Zg$=function(){this.h9.publish("progresssync")}; g.N.NKW=function(){this.h9.z5("onPlaybackPauseAtStart")}; g.N.e$W=function(w){if(this.getPresentingPlayerType()===1){g.fW(w,1)&&!g.C(w.state,64)&&this.Bl().isLivePlayback&&this.Pj().isAtLiveHead()&&this.h9.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.fW(w,2)){if(this.Cg&&this.Cg.endTimeMs>=(this.getDuration()-1)*1E3){LNF(this);return}Vzy(this)}if(g.C(w.state,128)){var M=w.state;this.cancelPlayback(5);M=M.tV;JSON.stringify({errorData:M,debugInfo:this.getDebugText(!0)});this.h9.OE("onError",foH(M.errorCode));this.h9.z5("onDetailedError",{errorCode:M.errorCode, errorDetail:M.errorDetail,message:M.errorMessage,messageKey:M.vM,cpn:M.cpn});(0,g.G$)()-this.P3.jU>6048E5&&this.h9.z5("onReloadRequired")}M={};if(w.state.isPlaying()&&!w.state.isBuffering()&&!YL("pbresume","ad_to_video")&&YL("_start","ad_to_video")){var P=this.getVideoData();M.clientPlaybackNonce=P.clientPlaybackNonce;P.videoId&&(M.videoId=P.videoId);g.Db(M,"ad_to_video");yc("pbresume",void 0,"ad_to_video");spu(this.wB)}this.h9.publish("applicationplayerstatechange",w)}}; g.N.uL=function(w){this.CT.Wb||this.h9.publish("presentingplayerstatechange",w)}; g.N.S1=function(w){Dy(this,qV(w.state));g.C(w.state,1024)&&this.h9.isMutedByMutedAutoplay()&&(Bs(this,{muted:!1,volume:this.uv.volume},!1),Q4(this,!1))}; g.N.onPlayerRequestSent=function(w){this.h9.Vs("onPlayerRequestSent",w)}; g.N.Gk0=function(w,M){w==="newdata"&&Sju(this);this.h9.publish("applicationvideodatachange",w,M)}; g.N.Q9k=function(w,M){this.D("html5_afmt_change_update_volume")&&A6x(this);this.h9.z5("onPlaybackAudioChange",this.h9.getAudioTrack().Y2.name);this.h9.publish("internalaudioformatchange",this.h9.getAudioTrack().Y2.id,M)}; g.N.B7k=function(w){var M=this.uW().getVideoData();w===M&&this.h9.OE("onPlaybackQualityChange",w.L.video.quality)}; g.N.d1=function(){var w=this.CT.C[2]||null;w&&(w=w.getVideoData(),this.uW().II("ssdai",{cleanaply:1,acpn:w==null?void 0:w.clientPlaybackNonce,avid:w.videoId,isDai:this.Bl().enableServerStitchedDai?1:0}),delete this.CT.C[2])}; g.N.PBN=function(w,M){this.FG(w,this.uW(),M)}; g.N.FG=function(w,M,P){this.logger.debug(function(){return"on video data change "+w+", player type "+M.getPlayerType()+", vid "+P.videoId}); this.P3.FX()&&M.II("vdc",{type:w,vid:P.videoId||"",cpn:P.clientPlaybackNonce||""});M===this.Pj()&&(this.P3.dh=P.oauthToken);M===this.Pj()&&(this.getVideoData().enableServerStitchedDai&&!this.Hl?(this.Pj().II("sdai",{initSstm:1}),this.Hl=this.D("html5_enable_ssdai_transition_with_only_enter_cuerange")?new qtp(this.h9,this.P3,this.Pj(),this):new g.wW(this.h9,this.P3,this.Pj(),this)):!this.getVideoData().enableServerStitchedDai&&this.Hl&&(this.Hl.dispose(),this.Hl=null));if(w==="newdata")this.logger.debug("new video data, destroy modules"), eO(this.wB,2),this.h9.publish("videoplayerreset",M);else{if(!this.mediaElement)return;w==="dataloaded"&&(this.Pj()===this.uW()?(aj(P.r$,P.IS),qjl(this)):y65(this));M.getPlayerType()===1&&(this.P3.xu&&tzz(this),this.getVideoData().isLivePlayback&&!this.P3.Xk&&this.f9("html5.unsupportedlive",2,"DEVICE_FALLBACK"),P.isLoaded()&&((EHl(P)||this.getVideoData().Ck)&&this.h9.publish("legacyadtrackingpingchange",this.getVideoData()),P.hasProgressBarBoundaries()&&BFz(this)));this.h9.publish("videodatachange", w,P,M.getPlayerType())}this.h9.OE("onVideoDataChange",{type:w,playertype:M.getPlayerType()});this.JA();var u=P.JY;u?this.Ae.mp(u,P.clientPlaybackNonce):$yy(this.Ae)}; g.N.eh=function(){dW(this,null);this.h9.z5("onPlaylistUpdate")}; g.N.CBN=function(w){delete this.Dc[w.getId()];this.Pj().removeCueRange(w);a:{w=this.getVideoData();var M,P,u,X,U,f,h,c,Z,S,H=((M=w.xu)==null?void 0:(P=M.contents)==null?void 0:(u=P.singleColumnWatchNextResults)==null?void 0:(X=u.autoplay)==null?void 0:(U=X.autoplay)==null?void 0:U.sets)||((f=w.xu)==null?void 0:(h=f.contents)==null?void 0:(c=h.twoColumnWatchNextResults)==null?void 0:(Z=c.autoplay)==null?void 0:(S=Z.autoplay)==null?void 0:S.sets);if(H)for(M=g.G(H),P=M.next();!P.done;P=M.next())if(P= P.value,X=u=void 0,P=P.autoplayVideo||((u=P.autoplayVideoRenderer)==null?void 0:(X=u.autoplayEndpointRenderer)==null?void 0:X.endpoint),u=g.A(P,g.c7),U=X=void 0,P!=null&&((X=u)==null?void 0:X.videoId)===w.videoId&&((U=u)==null?0:U.continuePlayback)){w=P;break a}w=null}(M=g.A(w,g.c7))&&this.h9.Vs("onPlayVideo",{sessionData:{autonav:"1",itct:w==null?void 0:w.clickTrackingParams},videoId:M.videoId,watchEndpoint:M})}; g.N.Nx=function(w){var M=this;w!==this.appState&&(this.logger.debug(function(){return"app state change "+M.appState+" -> "+w}),w===2&&this.getPresentingPlayerType()===1&&(Dy(this,-1),Dy(this,5)),this.appState=w,this.h9.publish("appstatechange",w))}; g.N.f9=function(w,M,P,u,X){this.Pj().WB(w,M,P,u,X)}; g.N.zd=u2(13);g.N.isAtLiveHead=function(w,M){M=M===void 0?!1:M;var P=this.gB({playerType:w});if(!P)return this.CT.B.isAtLiveHead();w=q8(this,P);P=YP(this,P);return w!==P?w.isAtLiveHead(nG(this,P.getCurrentTime(),P),!0):w.isAtLiveHead(void 0,M)}; g.N.Mz=function(){var w=this.gB({playerType:void 0});return w?q8(this,w).Mz():this.CT.B.Mz()}; g.N.seekTo=function(w,M,P,u,X){M=M!==!1;if(u=this.gB({playerType:u}))this.appState===2&&LG(this),this.q6(u)?vs(this)?this.Hl.seekTo(w,{seekSource:X},M,P):this.lB.seekTo(w,{seekSource:X},M,P):u.seekTo(w,{qs:!M,QW:P,Wk:"application",seekSource:X})}; g.N.seekBy=function(w,M,P,u){this.seekTo(this.getCurrentTime()+w,M,P,u)}; g.N.bg0=function(){this.h9.OE("SEEK_COMPLETE")}; g.N.Ogu=function(){this.h9.Vs("onAbnormalityDetected")}; g.N.SF3=function(w){this.h9.Vs("onSnackbarMessage",w)}; g.N.qF0=function(w){var M=this.uW(),P=M.getVideoData();if(this.appState===1||this.appState===2)P.startSeconds=w;this.appState===2?g.C(M.getPlayerState(),512)||LG(this):this.h9.OE("SEEK_TO",w)}; g.N.g2s=function(){this.h9.publish("airplayactivechange");this.P3.D("html5_external_airplay_events")&&this.h9.z5("onAirPlayActiveChange",this.h9.Ax())}; g.N.a4s=function(){this.h9.publish("airplayavailabilitychange");this.P3.D("html5_external_airplay_events")&&this.h9.z5("onAirPlayAvailabilityChange",this.h9.Pq())}; g.N.showAirplayPicker=function(){this.uW().v9()}; g.N.j9I=function(){this.h9.publish("beginseeking")}; g.N.uXk=function(){this.h9.publish("endseeking")}; g.N.getStoryboardFormat=function(w){return(w=this.gB({playerType:w}))?q8(this,w).getStoryboardFormat():this.CT.B.getStoryboardFormat()}; g.N.mj=function(w){return(w=this.gB({playerType:w}))?q8(this,w).getVideoData().mj():this.CT.B.mj()}; g.N.q6=function(w){w=(w||this.uW()).getVideoData();if(vs(this))w=w===this.Hl.playback.getVideoData();else a:{var M=this.lB;if(w===M.B.getVideoData()&&M.L.length)w=!0;else{M=g.G(M.L);for(var P=M.next();!P.done;P=M.next())if(w.QH===P.value.QH){w=!0;break a}w=!1}}return w}; g.N.sf=function(w,M,P,u,X,U,f,h){this.logger.debug(function(){return"Adding video to timeline id="+w.video_id+"\n lengthMs="+u+" enterTimeMs="+X}); var c="",Z=vs(this);this.uW().II("appattl",{sstm:this.Hl?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:Z});Z?(P=$zM(this.Hl,w,M,P,u,X,U,f,h),c=(P==null?void 0:P.QH)||"",this.D("html5_ssdai_new_decoration_logic")&&this.Pj().tX(h||"",M,(P==null?void 0:P.clientPlaybackNonce)||"")):c=Rw_(this.lB,w,P,u,X,U);this.logger.debug(function(){return"Video added to timeline id="+w.video_id+" timelinePlaybackId="+c}); return c}; g.N.bR=function(w,M,P,u,X,U,f,h){if(vs(this)){var c=$zM(this.Hl,w,M,P,u,X,U,f,h);this.logger.debug(function(){return"Remaining video added to timeline id="+w.video_id+" timelinePlaybackId="+c})}return""}; g.N.k0=function(w){this.D("html5_ssdai_new_decoration_logic")&&this.Pj().tX(w,"","");var M;(M=this.Hl)==null||M.k0(w)}; g.N.Lb=function(w,M){w=w===void 0?-1:w;M=M===void 0?Infinity:M;vs(this)||JG2(this.lB,w,M)}; g.N.NK=function(w,M,P){if(vs(this)){var u=this.Hl,X=u.B.X.get(w);X?(P===void 0&&(P=X.Im),cGR(u,X,M,P)):u.FH("Invalid_timelinePlaybackId_"+w+"_specified")}else{u=this.lB;X=null;for(var U=g.G(u.L),f=U.next();!f.done;f=U.next())if(f=f.value,f.QH===w){X=f;break}X?(P===void 0&&(P=X.Im),gZ4(u,X,M,P)):So(u,"InvalidTimelinePlaybackId timelinePlaybackId="+w)}}; g.N.enqueueVideoByPlayerVars=function(w,M,P,u){P=P===void 0?Infinity:P;u=u===void 0?"":u;this.q6();w=new g.ut(this.P3,w);u&&(w.QH=u);QMu(this,w,M,P)}; g.N.queueNextVideo=function(w,M,P,u,X){P=P===void 0?NaN:P;w=this.preloadVideoByPlayerVars(w,M===void 0?1:M,P,u===void 0?"":u,X===void 0?"":X);M=this.uW();w&&(this.D("html5_check_queue_on_data_loaded")?this.N().supportsGaplessShorts()&&M.getVideoData().j&&(P=this.HT,u=this.EG.G,P.X!==w&&(P.L=M,P.X=w,P.C=1,P.B=w.getVideoData(),P.G=u,P.B.isLoaded()?P.K():P.B.subscribe("dataloaded",P.K,P))):(P=qi2(M,w,this.EG.G),P!=null?(M.II("sgap",P),M.getVideoData().j&&M.UD(!1)):(w=w.getVideoData(),M=this.HT,M.B!== w&&(M.B=w,M.C=1,w.isLoaded()?M.j():M.B.subscribe("dataloaded",M.j,M)))))}; g.N.Yd=function(w,M,P,u){var X=this;P=P===void 0?0:P;u=u===void 0?0:u;q8(this,this.uW()).LJ();RJF(this.EG,w,M,P,u).then(function(){X.h9.z5("onQueuedVideoLoaded")},function(){})}; g.N.Mv=function(){return this.EG.Mv()}; g.N.Sa=function(w){var M=this.EG.B;return M?M.Lt(w):!1}; g.N.clearQueue=function(w,M){w=w===void 0?!1:w;M=M===void 0?!1:M;this.logger.debug("Clearing queue");this.EG.clearQueue(w,M)}; g.N.loadVideoByPlayerVars=function(w,M,P,u,X,U){M=M===void 0?1:M;var f=this.Pj();if(M===2&&this.Bl().enableServerStitchedDai&&f&&!f.Nr())return f.II("lvonss",{vid:(w==null?void 0:w.videoId)||"",ptype:M}),!1;var h=!1;f=new g.ut(this.P3,w);f.RO=U;g.c0(this.P3)&&!f.cZ&&m_(this.rK);var c;U=this.rK;var Z=(c=f.S)!=null?c:"";U.timerName=Z;this.rK.BZ("pl_i");this.D("web_player_early_cpn")&&f.clientPlaybackNonce&&this.rK.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});JXy(f).supportsVp9Encoding===!1&& this.uW().II("noVp9enc",{});if(this.N().supportsGaplessShorts()){c=s21(this.EG,f,M);if(c==null){Dy(this,-1);var S;!this.D("html5_shorts_gapless_reset_ad_module")||((S=this.EG.B)==null?0:S.getVideoData().isAd())||sx(this);w=this.EG;w.app.N().D("html5_gapless_new_slr")?Rp(w.app,"gaplessshortslooprange"):w.app.setLoopRange(null);w.app.N().D("html5_gapless_remove_videoplaytime100_cuerange")&&w.app.uo("videoplaytime100");w.app.getVideoData().Pg=!0;var H;(H=w.B)==null||H.Zc();var p;(p=w.B)==null||p.gm(); P={Wk:"gapless_to_next_video",seekSource:60,IC:w.G.B};u=g.Oh(w.app.N().experiments,"html5_gapless_seek_offset");X=vUU(w);if(w.G.B){var F;f=((F=w.C)==null?void 0:sf(F))||{};F=f.M5;f=f.wc;f!=null&&F!=null&&(X=f-F+.001)}var E;(E=w.app.uW())==null||E.seekTo(X+u,P);if(!w.app.getPlayerStateObject(M).isPlaying()){var y;(y=w.app.uW())==null||y.playVideo(!0)}var q;(q=w.app.uW())==null||q.Wm();w.j();return!0}E=this.D("html5_shorts_gapless_preload_fallback");y=this.EG.B;E&&y&&!y.sO()&&(q=y.getVideoData(),q= this.P3.D("html5_autonav_autoplay_in_preload_key")?KG(this,M,q):b1(this,M,q.videoId,q.QH),this.CT.G.set(q,y,3600));this.EG.clearQueue(E);this.uW().II("sgap",{f:c})}if(X){for(;f.Gx.length&&f.Gx[0].isExpired();)f.Gx.shift();E=f.Gx.length-1;h=E>0&&X.L(f.Gx[E])&&X.L(f.Gx[E-1]);f.Gx.push(X)}P||(w&&Sx_(w)?(XD(this.P3)&&!this.dg&&(w.fetch=0),dW(this,w)):this.playlist&&dW(this,null),w&&(this.dg=a1(!1,w.external_list)));this.h9.publish("loadvideo");E=this.vQ(f,M,u);h&&this.f9("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN", ("loadvideo.1;emsg."+f.Gx.join()).replace(/[;:,]/g,"_"));return E}; g.N.preloadVideoByPlayerVars=function(w,M,P,u,X){M=M===void 0?1:M;P=P===void 0?NaN:P;u=u===void 0?"":u;X=X===void 0?"":X;var U="";if(this.P3.D("html5_autonav_autoplay_in_preload_key"))U=RPH(this,M,w,X);else{var f=uK(w);U=b1(this,M,f,X)}if(f=this.CT.G.get(U)||null)return this.logger.debug(function(){return"already preloaded "+U}),this.D("html5_return_playback_if_already_preloaded")?f:null; w=new g.ut(this.P3,w);X&&(w.QH=X);return kA4(this,w,M,P,u)}; g.N.setMinimized=function(w){this.visibility.setMinimized(w);(w=Iy1(this.wB))&&(this.isMinimized()?w.load():w.unload());this.h9.publish("minimized")}; g.N.setInline=function(w){this.visibility.setInline(w)}; g.N.setInlinePreview=function(w){this.visibility.setInline(w)}; g.N.Y0=function(w){vbH(this,w)||this.visibility.Y0(w)}; g.N.setSqueezeback=function(w){this.visibility.setSqueezeback(w)}; g.N.V9=function(){var w,M=(w=this.mediaElement)==null?void 0:w.vj();M&&(this.P3.mu&&lF(zi(function(){return document.exitFullscreen()}),function(){}),lF(zi(function(){return p0(M)}),function(){}))}; g.N.Ybu=function(){this.mediaElement.vj();this.mediaElement.vj().webkitPresentationMode==="picture-in-picture"?this.Y0(!0):this.Y0(!1)}; g.N.togglePictureInPicture=function(){this.uW().togglePictureInPicture()}; g.N.vQ=function(w,M,P){M=M===void 0?1:M;this.logger.debug(function(){return"start load video, id "+w.videoId+", type "+M}); YL("_start",this.rK.timerName)||g.j2(FG)(void 0,this.rK.timerName);var u=!1,X=TF4(this,M,w,!1);X?(u=!0,w.dispose()):(X=G4(this,M,w,!0,P),(this.D("html5_onesie")||this.D("html5_load_before_stop"))&&X.AI()&&X.n1(),this.z8.stop(),M===1&&M!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,M),this.uu(X));X===this.Pj()&&(this.P3.dh=w.oauthToken);if(!X.AI())return!1;if(X===this.Pj())return this.Nx(1),P=LG(this),u&&this.D("html5_player_preload_ad_fix")&&X.getPlayerType()===1&& X.IK()&&this.FG("dataloaded",X,X.getVideoData()),P;X.oL();return!0}; g.N.cueVideoByPlayerVars=function(w,M){var P=this;M=M===void 0?1:M;var u=this.Pj();if(this.Bl().enableServerStitchedDai&&u&&!u.Nr()&&w&&Object.keys(w).length>0)u.II("qvonss",{vid:(w==null?void 0:w.videoId)||"",ptype:M});else if(w&&Sx_(w))if(this.tM=!0,dW(this,w),(w=g.o5(this.playlist))&&w.Nf())AZ(this,w,M);else this.playlist.onReady(function(){l1(P)}); else{M||(M=this.getPresentingPlayerType());M===1&&this.eh();u=new g.ut(this.P3,w);var X=g.K7(this.P3)&&!this.P3.Lu&&M===1&&!u.isAd()&&!u.QL;this.h9.publish("cuevideo");X?(this.uW().getVideoData().loading=!0,m8z(u,w?w:{}).then(function(U){AZ(P,U,M)}),u.dispose()):AZ(this,u,M)}}; g.N.Hx=function(w,M,P,u,X,U,f){if(!w&&!P)throw Error("Playback source is invalid");if(Ij(this.P3)||g.hP(this.P3))return M=M||{},M.lact=NW(),M.vis=this.h9.getVisibilityState(),this.h9.Vs("onPlayVideo",{videoId:w,watchEndpoint:U,sessionData:M,listId:P}),!1;cZy(this.rK);this.rK.reset();w={video_id:w};u&&(w.autoplay="1");u&&(w.autonav="1");U&&(w.player_params=U.playerParams);f&&(w.oauth_token=f);P?(w.list=P,this.loadPlaylist(w)):this.loadVideoByPlayerVars(w,1);return!0}; g.N.cuePlaylist=function(w,M,P,u){this.tM=!0;sMM(this,w,M,P,u)}; g.N.loadPlaylist=function(w,M,P,u){this.tM=!1;sMM(this,w,M,P,u)}; g.N.dD=function(){return this.h9.isMutedByMutedAutoplay()?!1:this.CT.Wb?!0:!(!this.playlist||!this.playlist.kH())}; g.N.gw=u2(5); g.N.nextVideo=function(w,M){var P=g.Zw(this.Pj().getVideoData());g.IZ(this.h9)&&P?this.Hx(P.videoId,M?P.IX:P.sessionData,P.playlistId,M,void 0,P.hs||void 0):this.dg?this.h9.z5("onPlaylistNext"):this.getPresentingPlayerType()===3?RZ(this.wB).nextVideo():!this.playlist||XD(this.P3)&&!this.h9.isFullscreen()||(this.playlist.kH(w)&&F3p(this.playlist,HGz(this.playlist)),this.playlist.loaded?(w=M&&this.P3.D("html5_player_autonav_logging"),M&&this.h9.publish("playlistautonextvideo"),this.vQ(g.o5(this.playlist,void 0, M,w),1)):this.tM=!1)}; g.N.previousVideo=function(w){this.dg?this.h9.z5("onPlaylistPrevious"):this.getPresentingPlayerType()===3?RZ(this.wB).xi():!this.playlist||XD(this.P3)&&!this.h9.isFullscreen()||(this.playlist.ST(w)&&F3p(this.playlist,ps4(this.playlist)),this.playlist.loaded?this.vQ(g.o5(this.playlist),1):this.tM=!1)}; g.N.playVideoAt=function(w){this.dg?this.h9.z5("onPlaylistIndex",w):this.playlist&&(this.playlist.loaded?this.vQ(g.o5(this.playlist,w),1):this.tM=!1,F3p(this.playlist,w))}; g.N.getPlaylist=function(){return this.playlist}; g.N.gD=u2(19);g.N.uo=function(w){this.e4=g.DP(this.e4,function(U){return U.id!==w}); for(var M=this.Pj(),P=M.IQ(),u=0;u0&&(c=Math.floor(Z/1E3))}c=M?M.Xq:c;var S={AD_BLOCK:this.B++,AD_BREAK_LENGTH:c,AUTONAV_STATE:rW(this.player.N()),CA_TYPE:"image",CPN:h.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Mz()*1E3,LACT:NW(),LIVE_INDEX:M?this.C++:1,LIVE_TARGETING_CONTEXT:M&&M.context?M.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.oI().RQ().height,P_W:this.player.oI().RQ().width,YT_REMOTE:X?X.join(","):""},H=UL($S);Object.keys(H).forEach(function(F){H[F]!=null&&(S[F.toUpperCase()]=H[F].toString())}); P!==""&&(S.BISCOTTI_ID=P);P={};XW(w)&&(P.sts="20269",(M=this.player.N().forcedExperiments)&&(P.forced_experiments=M));var p=Mx(g.YO(w,S),P);return p.split("?").length!==2?TS(Error("Invalid AdBreakInfo URL")):g.E_(this.player.N(),h==null?void 0:h.oauthToken).then(function(F){if(F&&uL()){var E=J$();rI(E,F)}F=u.player.aQ(E);E=NXl(u,p,S,h.isMdxPlayback,f);return g.LU(F,E,"/youtubei/v1/player/ad_break").then(function(y){return y})})}; jo.prototype.reset=function(){this.C=this.B=1};g.V(V_M,jo); V_M.prototype.L=function(w,M,P){M=M===void 0?{}:M;var u=M.Pp;var X=M.Fq;var U=M.cueProcessedMs;P=P===void 0?"":P;M=this.B;this.B++;var f=this.player.N().D("h5_disable_macro_substitution_in_get_ad_break")?w:mAy(this,w,{Pp:u,Fq:X,cueProcessedMs:U},P,M);if(f.split("?").length!==2)return Math.random()<.1&&g.Yq(Error("Invalid AdBreakInfo URL")),TS(Error("Invalid AdBreakInfo URL"));var h=this.player.getVideoData(1).isMdxPlayback,c=P;P=co5.exec(f);P=P!=null&&P.length>=2?P[1]:"";w=Zuz.test(f);var Z=S9p.exec(f); Z=Z!=null&&Z.length>=2?Z[1]:"";var S=Hup.exec(f);S=S!=null&&S.length>=2&&!Number.isNaN(Number(S[1]))?Number(S[1]):1;var H=pd1.exec(f);H=H!=null&&H.length>=2?H[1]:"0";var p=Ok(this.player.N().GJ),F=g.Jb(this.player.getVideoData(1).UO,!0);XdM(this,F,f,c===""?"":c,this.player.N(),this.player.getVideoData(1));c={splay:!1,lactMilliseconds:String(NW()),playerHeightPixels:Math.trunc(this.player.oI().RQ().height),playerWidthPixels:Math.trunc(this.player.oI().RQ().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20269,autonavState:rW(this.player.N())};if(h){h={};var E=this.player.N().uI;fuM(h,E?E.join(","):"")&&(c.mdxContext=h)}if(h=FTz.includes(p)?void 0:g.e9("PREF")){E=h.split(RegExp("[:&]"));for(var y=0,q=E.length;y1&&d[1].toUpperCase()==="TRUE"){F.user.lockedSafetyMode=!0;break}}c.autoCaptionsDefaultOn=h2y(h)}f=E_u.exec(f);(f=f!=null&&f.length>=2?f[1]:"")&&Z&&(F.user.credentialTransferTokens= [{token:f,scope:"VIDEO"}]);f={contentPlaybackContext:c};c=this.player.getVideoData(1).getGetAdBreakContext();h=this.player.getVideoData(1).clientPlaybackNonce;E=U!==void 0?Math.round(U).toString():void 0;y=(u==null?0:u.context)?u.context:void 0;q=0;U&&X&&!u&&(X=X.end-X.start,X>0&&(q=Math.floor(X/1E3)));u=(u=Math.trunc((u?u.Xq:q)*1E3))?String(u):void 0;X=this.player.Mz()*1E3;X=Number.isNaN(X)?0:Math.trunc(X);M={adBlock:M,params:P,breakIndex:S,breakPositionMs:H,clientPlaybackNonce:h,topLevelDomain:p, isProxyAdTagRequest:w,context:F,overridePlaybackContext:f,cueProcessedMs:E,videoId:Z?Z:void 0,liveTargetingParams:y,breakLengthMs:u,driftFromHeadMs:X?String(X):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:c?c:void 0};return o_l(this,M)};var zm3={Eo0:"replaceUrlMacros",h1W:"onAboutThisAdPopupClosed",eA3:"executeCommand"};G7u.prototype.TQ=function(){return"adPingingEndpoint"}; G7u.prototype.iJ=function(w,M,P){$wx(this.FK.get(),w,M,P)};yoz.prototype.TQ=function(){return"changeEngagementPanelVisibilityAction"}; yoz.prototype.iJ=function(w){this.U.Vs("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:w})};DAU.prototype.TQ=function(){return"loggingUrls"}; DAU.prototype.iJ=function(w,M,P){w=g.G(w);for(var u=w.next();!u.done;u=w.next())u=u.value,$wx(this.FK.get(),u.baseUrl,M,P,u.attributionSrcMode)};g.V(Y9y,g.v);g.V(tZ,g.v);g.N=tZ.prototype;g.N.addListener=function(w){this.listeners.push(w)}; g.N.removeListener=function(w){this.listeners=this.listeners.filter(function(M){return M!==w})}; g.N.aY=function(w,M,P,u,X,U,f,h){if(w==="")X$("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(w!==this.B||P){this.B=w;this.W3.get().aY(w,M,P,u,X,U,f,h);this.D3.get().aY(w,M,P,u,X,U,f,h);var c;(c=this.Ya)==null||c.get().aY(w,M,P,u,X,U,f,h);this.L.aY(w,M,P,u,X,U,f,h);c=g.G(this.listeners);for(var Z=c.next();!Z.done;Z=c.next())Z.value.aY(w,M,P,u,X,U,f,h)}else X$("Duplicate content video loaded signal")}; g.N.pj3=function(){this.B&&this.D8(this.B)}; g.N.D8=function(w){this.B=void 0;for(var M=g.G(this.listeners),P=M.next();!P.done;P=M.next())P.value.D8(w)};xP.prototype.fQ=function(w,M,P,u,X){z2R(this);this.G=!M&&P===0;var U=this.U.getVideoData(1),f=this.U.getVideoData(2);U&&(this.contentCpn=U.clientPlaybackNonce,this.videoId=U.videoId,this.B=U.K);f&&(this.adCpn=f.clientPlaybackNonce,this.adVideoId=f.videoId,this.adFormat=f.adFormat);this.X=w;u<=0?(z2R(this),this.G=!M&&P===0):(this.actionType=this.G?M?"unknown_type":"video_to_ad":M?"ad_to_video":"ad_to_ad",this.videoStreamType=X?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.C=!0,YL("_start",this.actionType)&&luU(this)))}; xP.prototype.reset=function(){return new xP(this.U)};g.V(Ox,g.v);Ox.prototype.addCueRange=function(w,M,P,u,X,U,f,h){U=U===void 0?3:U;f=f===void 0?1:f;this.B.has(w)?X$("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:w}):(w=new LTp(w,M,P,u,U,h),this.B.set(w.id,{Fq:w,listener:X,W9:f}),this.U.qf([w],f))}; Ox.prototype.removeCueRange=function(w){var M=this.B.get(w);M?(this.U.jH([M.Fq],M.W9),this.B.delete(M.Fq.id)):X$("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:w})}; Ox.prototype.onCueRangeEnter=function(w){if(this.B.has(w.id))this.B.get(w.id).listener.onCueRangeEnter(w.id)}; Ox.prototype.onCueRangeExit=function(w){if(this.B.has(w.id))this.B.get(w.id).listener.onCueRangeExit(w.id)}; g.V(LTp,g.bg);ap.prototype.addPlayerResponseForAssociation=function(w){this.U.addPlayerResponseForAssociation(w)};wB.prototype.DQ=function(w){this.U.DQ(w)}; wB.prototype.Oy=function(w){var M=g.Kz.apply(1,arguments);w==="onAdStart"||w==="onAdEnd"?this.U.OE.apply(this.U,[w].concat(g.L(M))):this.U.Vs.apply(this.U,[w].concat(g.L(M)))};ik.prototype.UE=function(w){return w&&MO(this)};var Aoz=null;g.V(IuF,g.wC);IuF.prototype.t3=function(w){return this.B.hasOwnProperty(w)?this.B[w].t3():{}}; g.ih("ytads.bulleit.getVideoMetadata",function(w){return Py().t3(w)}); g.ih("ytads.bulleit.triggerExternalActivityEvent",function(w,M,P){var u=Py();P=bux(P);P!==null&&u.publish(P,{queryId:w,viewabilityString:M})});g.N=uk.prototype;g.N.Zq=function(w,M){if(!this.B.has(w))return{};if(M==="seek"){M=!1;M=M===void 0?!1:M;var P=ma(gT).Un(w,{});P?vD(P):M&&(w=ma(gT).Tq(null,lR(),!1,w),w.ke=3,Dr5([w]));return{}}M=JoU(M);if(M===null)return{};var u=this.U.Vh();if(!u)return{};var X=this.U.getPresentingPlayerType(!0);if((P=this.U.getVideoData(X))==null||!P.isAd())return{};P={opt_adElement:u,opt_fullscreen:this.W3.get().isFullscreen()};return Dsx(M,w,P)}; g.N.BO=function(w,M,P,u,X){this.B.has(w)&&(u<=0||X<=0||ma(gT).BO(w,M,P,u,X))}; g.N.dH=function(w){var M;(M=this.B.get(w.queryId))==null||M.dH()}; g.N.Wf=function(w){var M;(M=this.B.get(w.queryId))==null||M.Wf()}; g.N.UK=function(w){var M;(M=this.B.get(w.queryId))==null||M.UK()}; g.N.yA=function(w){var M;(M=this.B.get(w.queryId))==null||M.yA()}; g.N.Xu=function(w){var M;(M=this.B.get(w.queryId))==null||M.Xu()};i1H.prototype.send=function(w,M,P,u){try{M$5(this,w,M,P,u===void 0?!1:u)}catch(X){}};g.V(PSM,i1H);uCy.prototype.send=function(w,M,P,u){var X=!1;try{if(u==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||u==="ATTRIBUTION_SRC_MODE_XHR_OPTION")X=!0,w=fYl(w);u=X;var U=g.UQ(w);if(U[1]==="https")var f=w;else U[1]="https",f=$J("https",U[2],U[3],U[4],U[5],U[6],U[7]);var h=U2_(f);U=[];var c=COx(f)&&this.EO.get().U.N().experiments.nu("add_auth_headers_to_remarketing_google_dot_com_ping");if(XW(f)||c)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.B.send({baseUrl:f,scrubReferrer:h,headers:U},M,P,u)}catch(Z){}};Wy.prototype.r5=function(){return this.U.r5(1)};g.V(hp,g.v);g.N=hp.prototype;g.N.rG=function(){return this.U.getVideoData(1).clientPlaybackNonce}; g.N.addListener=function(w){this.listeners.push(w)}; g.N.removeListener=function(w){this.listeners=this.listeners.filter(function(M){return M!==w})}; g.N.aY=function(){this.Zp.clear();this.Wa=null;this.qx.get().clear()}; g.N.D8=function(){}; g.N.mfN=function(w,M,P,u,X){M.videoId==="nPpU29QrbiU"&&this.U.II("ads_ssm_vdc_s",{pt:P,dvt:w});nY(this.EO.get())&&w!=="dataloaded"||SlR(this,M,P);if(MO(this.EO.get())&&w==="newdata"&&X!==void 0){w=this.rG();var U=M.clientPlaybackNonce,f={};Xi(this,"rte",(f.ec=U,f.xc=u==null?void 0:u.clientPlaybackNonce,f.tr=X,f.pt=P,f.ia=U!==w,f.ctp=u3(U),f));M=M.clientPlaybackNonce;u=u==null?void 0:u.clientPlaybackNonce;X=H1F(X);if(X!==1)if(u!==void 0)for(P=g.G(this.listeners),w=P.next();!w.done;w=P.next())w.value.JL(u, M,X);else X$("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:M,transitionReason:String(X)});X=g.G(this.listeners);for(u=X.next();!u.done;u=X.next())u.value.qP(M)}}; g.N.iTW=function(w,M){w!==void 0&&(this.Wa=w,M===void 0?X$("Expected ad video start time on SS video changed"):this.Zp.set(w,M));var P=this.U.getPresentingPlayerType(!0),u=this.U.getVideoData(P),X;w===void 0?X=null:X=this.qx.get().B.get(w)||null;this.U.getVideoData(1).II("ads_ssvc",{pt:P,cpn:u==null?void 0:u.clientPlaybackNonce,crtt:this.U.getCurrentTime(1,!1),atlh:this.U.isAtLiveHead(),adstt:M,pid:w,slid:X==null?void 0:X.layoutId});u?SlR(this,u,P):X$("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.U.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:w})}; g.N.Bt=function(w,M){var P=w.author,u=w.clientPlaybackNonce,X=w.isListed,U=w.QH,f=w.title,h=w.f6,c=w.wk,Z=w.isMdxPlayback,S=w.Z8,H=w.mdxEnvironment,p=w.isAutonav,F=w.VJ,E=w.cZ,y=w.DN,q=w.videoId||"",d=w.profilePicture||"",l=w.ZY||"",e=w.Dv()||!1,R=w.VH()||!1;w=w.Yl||void 0;U=this.qx.get().B.get(U)||{layoutId:null,slotId:null};var I=this.U.getVideoData(1),w4=I.dK();I=I.getPlayerResponse();M=1E3*this.U.getDuration(M);var t=1E3*this.U.getDuration(1),$M,fz,U1=(I==null?void 0:($M=I.playerConfig)==null? void 0:(fz=$M.daiConfig)==null?void 0:fz.enableDai)||!1,ZU,M_;$M=(I==null?void 0:(ZU=I.playerConfig)==null?void 0:(M_=ZU.daiConfig)==null?void 0:M_.enablePreroll)||!1;return Object.assign({},U,{videoId:q,author:P,clientPlaybackNonce:u,EC:M,oQ:t,daiEnabled:U1,ye:$M,isListed:X,dK:w4,profilePicture:d,title:f,ZY:l,f6:h,wk:c,Yl:w,isMdxPlayback:Z,Z8:S,mdxEnvironment:H,isAutonav:p,VJ:F,cZ:E,DN:y,Dv:e,VH:R})}; g.N.v3=function(){this.listeners.length=0;this.fl=null;g.v.prototype.v3.call(this)};g.V(cy,g.v);g.N=cy.prototype;g.N.aY=function(){var w=this;MO(this.EO.get())||(this.B=Qy(function(){w.U.sO()||w.U.LV("ad",1)}))}; g.N.D8=function(){}; g.N.addListener=function(w){this.listeners.push(w)}; g.N.removeListener=function(w){this.listeners=this.listeners.filter(function(M){return M!==w})}; g.N.Ab=function(){}; g.N.playVideo=function(){this.U.playVideo()}; g.N.pauseVideo=function(){this.U.pauseVideo()}; g.N.resumeVideo=function(w){this.ZI(w)&&this.U.playVideo()}; g.N.ZI=function(w){return this.U.getPlayerState(w)===2}; g.N.getCurrentTimeSec=function(w,M,P){var u=this.D3.get().Wa;if(w===2&&!M&&u!==null)return Hy(this,u);BJ(this.EO.get(),"html5_ssap_use_cpn_to_get_time")||(P=void 0);return P!==void 0?this.U.getCurrentTime(w,M,P):this.U.getCurrentTime(w,M)}; g.N.getVolume=function(){return this.U.getVolume()}; g.N.isMuted=function(){return this.U.isMuted()}; g.N.getPresentingPlayerType=function(){return this.U.getPresentingPlayerType(!0)}; g.N.getPlayerState=function(w){return this.U.getPlayerState(w)}; g.N.getGetAdBreakContext=function(){return this.U.getGetAdBreakContext()}; g.N.isFullscreen=function(){return this.U.isFullscreen()}; g.N.isAtLiveHead=function(){return this.U.isAtLiveHead()}; g.N.o4=function(w){this.U.o4(w)}; g.N.yzk=function(){var w=this.U.getPresentingPlayerType(!0),M=this.getCurrentTimeSec(w,!1);if(w===2){w=g.G(this.listeners);for(var P=w.next();!P.done;P=w.next())P.value.QO(M)}else if(w===1)for(w=g.G(this.Nh),P=w.next();!P.done;P=w.next())P.value.Ab(M)}; g.N.ziI=function(w){for(var M=g.G(this.listeners),P=M.next();!P.done;P=M.next())P.value.wO(w,this.getPresentingPlayerType())}; g.N.onFullscreenToggled=function(w){for(var M=g.G(this.listeners),P=M.next();!P.done;P=M.next())P.value.onFullscreenToggled(w)}; g.N.onVolumeChange=function(){for(var w=g.G(this.listeners),M=w.next();!M.done;M=w.next())M.value.onVolumeChange()}; g.N.FJ=function(){for(var w=this.U.isMinimized(),M=g.G(this.listeners),P=M.next();!P.done;P=M.next())P.value.FJ(w)}; g.N.Qq=function(w){for(var M=g.G(this.listeners),P=M.next();!P.done;P=M.next())P.value.Qq(w)}; g.N.o9=function(){for(var w=this.U.oI().RQ(),M=g.G(this.listeners),P=M.next();!P.done;P=M.next())P.value.qv(w)}; g.N.gg=function(w){for(var M=g.G(this.listeners),P=M.next();!P.done;P=M.next())P.value.gg(w)}; g.N.jA=function(){for(var w=g.G(this.listeners),M=w.next();!M.done;M=w.next())M.value.jA()};g.V(NJH,g.v);g.V(EA,g.v);EA.prototype.v3=function(){this.bE.sO()||this.bE.get().removeListener(this);g.v.prototype.v3.call(this)};NO.prototype.fetch=function(w){var M=w.oP;return this.B.fetch(w.NW,{Pp:w.Pp===void 0?void 0:w.Pp,Fq:M,cueProcessedMs:w.cueProcessedMs===void 0?0:w.cueProcessedMs}).then(function(P){return V$x(P,M)})};g.V(Vr,g.v);g.N=Vr.prototype;g.N.addListener=function(w){this.listeners.push(w)}; g.N.removeListener=function(w){this.listeners=this.listeners.filter(function(M){return M!==w})}; g.N.dA=function(w){mw4(this,w,1)}; g.N.onAdUxClicked=function(w,M){mw(this,function(P){P.mF(w,M)})}; g.N.Nn=function(w){mw(this,function(M){M.y7(w)})}; g.N.i9=function(w){mw(this,function(M){M.M$(w)})}; g.N.WNL=function(w){mw(this,function(M){M.eq(w)})};oG.prototype.reduce=function(w){switch(w.event){case "unknown":return}var M=w.identifier;var P=this.B[M];P?M=P:(P={Zk:null,FA:-Infinity},M=this.B[M]=P);P=w.startSecs+w.B/1E3;if(!(P=this.B.startSecs&&P.startSecs<=this.B.startSecs+this.B.Xq)){var u=void 0;if(v8(this.EO.get())&&P.identifier!==((u=this.B)==null?void 0:u.identifier)){var X=u=void 0,U=void 0,f=void 0;Fn(this.FK.get(),"ocud","ccpi."+P.identifier+";ccpe."+P.event+";ccps."+P.startSecs+";\n ccpd."+P.Xq+";pcpi."+((u=this.B)==null?void 0:u.identifier)+ ";pcpe."+((X=this.B)==null?void 0:X.event)+";\n pcps."+((U=this.B)==null?void 0:U.startSecs)+";pcpd."+((f=this.B)==null?void 0:f.Xq)+";")}u=void 0;P.identifier!==((u=this.B)==null?void 0:u.identifier)&&X$("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.B=P,yjx(this,P)}}; g.N.v3=function(){this.L!=null&&(this.L.unsubscribe("cuepointupdated",this.qn,this),this.L=null);this.listeners.length=0;this.bZ.length=0;g.v.prototype.v3.call(this)};g.N=DD.prototype;g.N.sf=function(w,M,P,u,X,U,f){return this.U.sf(w,M,P,u,X,U,f)}; g.N.Lb=function(w,M){this.U.Lb(w,M)}; g.N.NK=function(w,M,P){this.U.NK(w,M,P)}; g.N.k0=function(w){this.U.k0(w)}; g.N.bR=function(w,M,P,u,X,U,f){return this.U.bR(w,M,P,u,X,U,f)}; g.N.VX=function(w){return this.U.VX(w)}; g.N.finishSegmentByCpn=function(w,M,P){P=Yl1(P);this.U.finishSegmentByCpn(w,M,P)};g.V(qO,g.v);g.V(TJp,g.v);g.V(dwz,g.v);g.V(lLl,g.v);g.V(Lpx,g.v);g.V(erU,g.v);g.V(Qh1,g.v);Qh1.prototype.C=function(){return this.L};g.V(kGl,nf); kGl.prototype.C=function(w){var M=w.content;if(M.componentType==="shopping-companion")switch(w.actionType){case 1:case 2:w=this.B.getVideoData(1);this.B.Vs("updateKevlarOrC3Companion",{contentVideoId:w&&w.videoId,shoppingCompanionCarouselRenderer:M.renderer,layoutId:M.layoutId,macros:M.macros,onLayoutVisibleCallback:M.B,interactionLoggingClientData:M.interactionLoggingClientData});break;case 3:this.B.Vs("updateKevlarOrC3Companion",{})}else if(M.componentType==="action-companion")switch(w.actionType){case 1:case 2:w=this.B.getVideoData(1); this.B.Vs("updateKevlarOrC3Companion",{contentVideoId:w&&w.videoId,actionCompanionAdRenderer:M.renderer,layoutId:M.layoutId,macros:M.macros,onLayoutVisibleCallback:M.B,interactionLoggingClientData:M.interactionLoggingClientData});break;case 3:M.renderer&&(M=this.B.getVideoData(1),this.B.Vs("updateKevlarOrC3Companion",{contentVideoId:M&&M.videoId})),this.B.Vs("updateKevlarOrC3Companion",{})}else if(M.componentType==="image-companion")switch(w.actionType){case 1:case 2:w=this.B.getVideoData(1);this.B.Vs("updateKevlarOrC3Companion", {contentVideoId:w&&w.videoId,imageCompanionAdRenderer:M.renderer,layoutId:M.layoutId,macros:M.macros,onLayoutVisibleCallback:M.B,interactionLoggingClientData:M.interactionLoggingClientData});break;case 3:M=this.B.getVideoData(1),this.B.Vs("updateKevlarOrC3Companion",{contentVideoId:M&&M.videoId}),this.B.Vs("updateKevlarOrC3Companion",{})}else if(M.componentType==="top-banner-image-text-icon-buttoned")switch(w.actionType){case 1:case 2:w=this.B.getVideoData(1);this.B.Vs("updateKevlarOrC3Companion", {contentVideoId:w&&w.videoId,topBannerImageTextIconButtonedLayoutViewModel:M.renderer,layoutId:M.layoutId,macros:M.macros,onLayoutVisibleCallback:M.B,interactionLoggingClientData:M.interactionLoggingClientData});break;case 3:M.renderer&&(M=this.B.getVideoData(1),this.B.Vs("updateKevlarOrC3Companion",{contentVideoId:M&&M.videoId})),this.B.Vs("updateKevlarOrC3Companion",{})}else if(M.componentType==="banner-image")switch(w.actionType){case 1:case 2:w=this.B.getVideoData(1);this.B.Vs("updateKevlarOrC3Companion", {contentVideoId:w&&w.videoId,bannerImageLayoutViewModel:M.renderer,layoutId:M.layoutId,macros:M.macros,onLayoutVisibleCallback:M.B,interactionLoggingClientData:M.interactionLoggingClientData});break;case 3:M=this.B.getVideoData(1),this.B.Vs("updateKevlarOrC3Companion",{contentVideoId:M&&M.videoId}),this.B.Vs("updateKevlarOrC3Companion",{})}else if(M.componentType==="ads-engagement-panel")switch(M=M.renderer,w.actionType){case 1:case 2:this.B.Vs("updateEngagementPanelAction",M.addAction);this.B.Vs("changeEngagementPanelVisibility", M.expandAction);break;case 3:this.B.Vs("changeEngagementPanelVisibility",M.hideAction),this.B.Vs("updateEngagementPanelAction",M.removeAction)}else if(M.componentType==="ads-engagement-panel-layout"){var P=M.renderer;switch(w.actionType){case 1:case 2:this.B.Vs("updateEngagementPanelAction",{action:lX(P.addAction),layoutId:M.layoutId,onLayoutVisibleCallback:M.B,interactionLoggingClientData:M.interactionLoggingClientData});this.B.Vs("changeEngagementPanelVisibility",lX(P.expandAction));break;case 3:this.B.Vs("changeEngagementPanelVisibility", lX(P.hideAction)),this.B.Vs("updateEngagementPanelAction",{action:lX(P.removeAction)})}}};g.V(RrH,Jw);g.N=RrH.prototype;g.N.init=function(w,M,P){Jw.prototype.init.call(this,w,M,P);g.A1(this.C,"stroke-dasharray","0 "+this.L);this.C.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.K.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.X.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.N.clear=function(){this.hide()}; g.N.hide=function(){jX(this);Jw.prototype.hide.call(this)}; g.N.show=function(){rC(this);Jw.prototype.show.call(this)}; g.N.wv=function(){this.hide()}; g.N.uT=function(){if(this.B){var w=this.B.getProgressState();w!=null&&w.current!=null&&g.A1(this.C,"stroke-dasharray",w.current/w.seekableEnd*this.L+" "+this.L)}};g.V(no4,$r);g.N=no4.prototype; g.N.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);if(M.image&&M.image.thumbnail)if(M.headline)if(M.description)if(M.backgroundImage&&M.backgroundImage.thumbnail)if(M.actionButton&&g.A(M.actionButton,g.OG))if(w=M.durationMilliseconds||0,typeof w!=="number"||w<=0)g.qU(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+w));else if(M.navigationEndpoint){var u=this.api.getVideoData(2);if(u!=null){var X=M.image.thumbnail.thumbnails;X!=null&& X.length>0&&g.lA(g.et(X[0].url))&&(X[0].url=u.profilePicture,g.lA(g.et(u.profilePicture))&&Ivl("VideoPlayer",239976093,"Expected non-empty profile picture."));X=M.backgroundImage.thumbnail.thumbnails;X!=null&&X.length>0&&g.lA(g.et(X[0].url))&&(X[0].url=u.Md());X=M.headline;X!=null&&g.lA(g.et(X.text))&&(X.text=u.author)}this.S.init(On("ad-image"),M.image,P);this.K.init(On("ad-text"),M.headline,P);this.C.init(On("ad-text"),M.description,P);this.OO.init(On("ad-image"),M.backgroundImage,P);u=["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.K.element.classList.add("ytp-ad-action-interstitial-headline-light");this.C.element.classList.add("ytp-ad-action-interstitial-description-light");u.push("ytp-ad-action-interstitial-action-button-dark");this.api.N().L&&(u.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),u.push("ytp-ad-action-interstitial-action-button-dark"));this.api.N().D("enable_unified_action_endcap_on_web")&& !this.api.N().L&&(u.push("ytp-ad-action-interstitial-action-button-unified"),this.jL.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.iW.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.uC.classList.add("ytp-ad-action-interstitial-card-unified"),this.Lu.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.Cu.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.K.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.UO.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.eL.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Yr(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,u);g.b(this,this.actionButton);this.actionButton.XK(this.jL); this.actionButton.init(On("button"),g.A(M.actionButton,g.OG),P);nb(this.actionButton.element);u=I3(this.actionButton.element);bc(this.actionButton.element,u+" This link opens in new tab");this.navigationEndpoint=M.navigationEndpoint;this.X.Y(this.UO,"click",this.Eu,this);this.X.Y(this.Lu,"click",this.Eu,this);!this.api.N().D("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.N().L||this.X.Y(this.Cu,"click",this.Eu,this);this.B=this.P0?new F$(this.api,w):new Eg(w);g.b(this,this.B);if(M.skipButton){(w= g.A(M.skipButton,gsU))&&this.B&&(this.skipButton=new Wj(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.B,this.CJ),g.b(this,this.skipButton),this.skipButton.XK(this.element),this.skipButton.init(On("skip-button"),w,P));if(P=M.adBadgeRenderer)if(P=g.A(P,A5h))w=new Hj(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,!0,!0),w.XK(this.eL),w.init(On("simple-ad-badge"),P,this.macros),g.b(this,w);if(P=M.adInfoRenderer)if(P=g.A(P,t7))w=new I6(this.api,this.layoutId,this.interactionLoggingClientData, this.Tk,this.element,void 0,!0),w.XK(this.eL),w.init(On("ad-info-hover-text-button"),P,this.macros),g.b(this,w)}else M.nonskippableOverlayRenderer&&(w=g.A(M.nonskippableOverlayRenderer,x7))&&this.B&&(this.L=new xr(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.B,!1),g.b(this,this.L),this.L.XK(this.element),this.L.init(On("ad-preview"),w,P));M.countdownRenderer&&(M=M.countdownRenderer,g.A(M,J5c)&&this.B&&(P=new RrH(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk, this.B),g.b(this,P),P.XK(this.element),P.init(On("timed-pie-countdown"),g.A(M,J5c),this.macros)));this.show();this.element.focus()}else g.qU(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.qU(Error("AdActionInterstitialRenderer has no button."));else g.qU(Error("AdActionInterstitialRenderer has no background AdImage."));else g.qU(Error("AdActionInterstitialRenderer has no description AdText."));else g.qU(Error("AdActionInterstitialRenderer has no headline AdText."));else g.qU(Error("AdActionInterstitialRenderer has no image."))}; g.N.clear=function(){g.qi(this.X);this.hide()}; g.N.show=function(){vox(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.L&&this.L.show();$r.prototype.show.call(this)}; g.N.hide=function(){vox(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.L&&this.L.hide();$r.prototype.hide.call(this)}; g.N.Eu=function(){this.navigationEndpoint&&(this.layoutId?this.Tk.executeCommand(this.navigationEndpoint,this.layoutId):g.qU(Error("Missing layoutId for ad action interstitial.")))};var AjR={iconType:"CLOSE"},dB=new g.rq(320,63);g.V(IL_,$r);g.N=IL_.prototype; g.N.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);this.X=M;this.S=g.LC(this.X.onClickCommands||[]);this.eL=this.X.onErrorCommand||null;if(w=this.X.contentSupportedRenderer)w=this.X.contentSupportedRenderer,M=this.X.adInfoRenderer||null,g.A(w,K4x)?(this.K=g.fj("ytp-ad-overlay-ad-info-button-container",this.C.element),gol(this,M),w=rjx(this,g.A(w,K4x))):g.A(w,bE4)?(this.K=g.fj("ytp-ad-overlay-ad-info-button-container",this.L.element),gol(this,M),w=jhR(this,g.A(w,bE4))):g.A(w,INU)?(this.K= g.fj("ytp-ad-overlay-ad-info-button-container",this.B.element),gol(this,M),w=CSx(this,g.A(w,INU))):(g.qU(Error("InvideoOverlayAdRenderer content could not be initialized.")),w=!1);w&&(this.show(),t$p(this,!0))}; g.N.clear=function(){t$p(this,!1);this.UO.reset();this.Lu=0;this.C.hide();this.logVisibility(this.C.element,!1);this.L.hide();this.logVisibility(this.L.element,!1);this.B.hide();this.logVisibility(this.B.element,!1);this.hide();this.dispose()}; g.N.PmL=function(){this.jL&&(this.layoutId?this.Tk.executeCommand(this.jL,this.layoutId):g.qU(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.N.SI=function(){a:{if(this.X&&this.X.closeButton&&this.X.closeButton.buttonRenderer){var w=this.X.closeButton.buttonRenderer;if(w.serviceEndpoint){w=[w.serviceEndpoint];break a}}w=[]}w=g.G(w);for(var M=w.next();!M.done;M=w.next())M=M.value,this.layoutId?this.Tk.executeCommand(M,this.layoutId):g.qU(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.N.y9u=function(){this.OO||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.N.FB=function(){this.OO||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.FB("invideo-overlay")}; g.N.X3N=function(w){w.target===this.K&&g.fj("ytp-ad-button",this.iW.element).click()};g.V(xwM,Jw);g.N=xwM.prototype;g.N.init=function(w,M,P){Jw.prototype.init.call(this,w,M,P);w=M.durationMs;this.C=w==null||w===0?0:w+this.B.getProgressState().current*1E3;if(M.text)var u=M.text.templatedAdText;else M.staticMessage&&(u=M.staticMessage);this.messageText.init(On("ad-text"),u,P);this.messageText.XK(this.L.element);this.X.show(100);this.show()}; g.N.clear=function(){this.hide()}; g.N.hide=function(){O1H(this,!1);Jw.prototype.hide.call(this);this.L.hide();this.messageText.hide();jX(this)}; g.N.show=function(){O1H(this,!0);Jw.prototype.show.call(this);rC(this);this.L.show();this.messageText.show()}; g.N.wv=function(){this.hide()}; g.N.uT=function(){if(this.B!=null){var w=this.B.getProgressState();w!=null&&w.current!=null&&(w=1E3*w.current,!this.Lu&&w>=this.C?(this.X.hide(),this.Lu=!0):this.messageText&&this.messageText.isTemplated()&&(w=Math.max(0,Math.ceil((this.C-w)/1E3)),w!==this.K&&(gC(this.messageText,{TIME_REMAINING:String(w)}),this.K=w)))}};g.V(aLy,$r);g.N=aLy.prototype; g.N.init=function(w,M,P){$r.prototype.init.call(this,w,M,{});M.image&&M.image.thumbnail?M.headline?M.description?M.actionButton&&g.A(M.actionButton,g.OG)?(this.C.init(On("ad-image"),M.image,P),this.L.init(On("ad-text"),M.headline,P),this.X.init(On("ad-text"),M.description,P),this.actionButton=new Yr(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,["ytp-ad-underlay-action-button"]),M.backgroundColor&&g.A1(this.element,"background-color",g.ew(M.backgroundColor)),g.b(this,this.actionButton), this.actionButton.XK(this.K),this.actionButton.init(On("button"),g.A(M.actionButton,g.OG),P),w=g.Oh(this.api.N().experiments,"player_underlay_video_width_fraction"),this.api.N().D("place_shrunken_video_on_left_of_player")?(M=this.B,g.PI(M,"ytp-ad-underlay-left-container"),g.io(M,"ytp-ad-underlay-right-container"),g.A1(this.B,"margin-left",Math.round((w+.02)*100)+"%")):(M=this.B,g.PI(M,"ytp-ad-underlay-right-container"),g.io(M,"ytp-ad-underlay-left-container")),g.A1(this.B,"width",Math.round((1-w- .04)*100)+"%"),this.api.dj()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Wd.bind(this)),this.api.addEventListener("resize",this.X7.bind(this))):g.qU(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.qU(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.qU(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.qU(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.N.show=function(){w5U(!0);this.actionButton&&this.actionButton.show();$r.prototype.show.call(this)}; g.N.hide=function(){w5U(!1);this.actionButton&&this.actionButton.hide();$r.prototype.hide.call(this)}; g.N.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Wd.bind(this));this.api.removeEventListener("resize",this.X7.bind(this));this.hide()}; g.N.onClick=function(w){$r.prototype.onClick.call(this,w);this.actionButton&&g.mG(this.actionButton.element,w.target)&&this.api.pauseVideo()}; g.N.Wd=function(w){w==="transitioning"?(this.B.classList.remove("ytp-ad-underlay-clickable"),this.show()):w==="visible"?this.B.classList.add("ytp-ad-underlay-clickable"):w==="hidden"&&(this.hide(),this.B.classList.remove("ytp-ad-underlay-clickable"))}; g.N.X7=function(w){w.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):w.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); g.A1(this.L.element,"font-size",w.width/40+"px")};g.V(lk,$r); lk.prototype.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);M.toggledLoggingParams&&(this.toggledLoggingParams=M.toggledLoggingParams);M.answer&&g.A(M.answer,g.OG)?(w=new Yr(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),w.XK(this.answer),w.init(On("ytp-ad-survey-answer-button"),g.A(M.answer,g.OG),P),w.show()):M.answer&&g.A(M.answer,Yz)&&(this.B=new kr(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk, ["ytp-ad-survey-answer-toggle-button"]),this.B.XK(this.answer),g.b(this,this.B),this.B.init(On("survey-answer-button"),g.A(M.answer,Yz),P));this.show()}; lk.prototype.SM=function(w){this.layoutId?lg(this.Tk,w,this.layoutId,this.macros):(w=new g.bK("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.qU(w))}; lk.prototype.onClick=function(w){$r.prototype.onClick.call(this,w);if(this.api.N().D("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; lk.prototype.clear=function(){this.hide()};g.V(izU,$r);izU.prototype.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);M.answer&&g.A(M.answer,Yz)&&(this.button=new kr(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.XK(this.B),this.button.init(On("survey-none-of-the-above-button"),g.A(M.answer,Yz),P));this.show()};g.V(LX,Yr);LX.prototype.init=function(w,M,P){Yr.prototype.init.call(this,w,M,P);w=!1;M.text&&(M=g.ff(M.text),w=!g.lA(M));w||g.Yq(Error("No submit text was present in the renderer."))}; LX.prototype.onClick=function(w){this.publish("l");Yr.prototype.onClick.call(this,w)};g.V(eN,$r); eN.prototype.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);if(w=M.skipOrPreviewRenderer)g.A(w,mt)?(w=g.A(w,mt),P=new Zk(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.X,!0),P.XK(this.skipOrPreview),P.init(On("skip-button"),w,this.macros),g.b(this,P),this.B=P):g.A(w,x7)&&(w=g.A(w,x7),P=new xr(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.X,!1),P.XK(this.skipOrPreview),P.init(On("ad-preview"),w,this.macros),P.Lu.show(100),P.show(),g.b(this,P), this.B=P);this.B==null&&(w=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(M)),g.qU(w));M.submitButton&&(w=M.submitButton,g.A(w,g.OG)&&(w=g.A(w,g.OG),P=new LX(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),P.XK(this.submitButton),P.init(On("survey-submit"),w,this.macros),g.b(this,P),this.L=P));if(w=M.adBadgeRenderer)w=g.A(w,A5h),P=new Hj(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,!0,!0,!0),P.XK(this.C),P.init(On("simple-ad-badge"), w,this.macros),this.adBadge=P.element,g.b(this,P);if(w=M.adDurationRemaining)w=g.A(w,nsc),P=new mo(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.X,void 0,!0),P.XK(this.C),P.init(On("ad-duration-remaining"),w,this.macros),g.b(this,P);(M=M.adInfoRenderer)&&g.A(M,t7)&&(w=new I6(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.element,void 0,!0),g.b(this,w),this.adBadge!==void 0?this.C.insertBefore(w.element,this.adBadge.nextSibling):w.XK(this.C),w.init(On("ad-info-hover-text-button"), g.A(M,t7),this.macros));this.show()}; eN.prototype.clear=function(){this.hide()};g.V(By,$r);By.prototype.init=function(w,M,P){$r.prototype.init.call(this,w,M,P);$_A(this)}; By.prototype.show=function(){this.C=Date.now();$r.prototype.show.call(this)}; By.prototype.aU=function(){};g.V(U_h,By);g.N=U_h.prototype;g.N.init=function(w,M,P){var u=this;By.prototype.init.call(this,w,M,P);M.questionText&&Mu$(this,M.questionText);M.answers&&M.answers.forEach(function(X,U){g.A(X,DX)&&P2C(u,g.A(X,DX),P,U)}); this.K=new Set(this.L.map(function(X){return X.B.B})); (w=M.noneOfTheAbove)&&(w=g.A(w,sKx))&&fUc(this,w,P);M.surveyAdQuestionCommon&&X5E(this,M.surveyAdQuestionCommon);M.submitEndpoints&&(this.submitEndpoints=M.submitEndpoints);this.Y(this.element,"change",this.onChange);this.show()}; g.N.aU=function(){Wyt(this,!1);this.X.L.subscribe("l",this.Sb3,this)}; g.N.onChange=function(w){w.target===this.noneOfTheAbove.button.B?hRt(this):this.K.has(w.target)&&(this.noneOfTheAbove.button.toggleButton(!1),Wyt(this,!0))}; g.N.Sb3=function(){var w=[],M=this.L.reduce(function(X,U,f){var h=U.toggledLoggingParams;U.B&&U.B.isToggled()&&h&&(X.push(h),w.push(f));return X},[]).join("&"),P=this.submitEndpoints.map(function(X){if(!X.loggingUrls)return X; X=g.Eu(X);X.loggingUrls=X.loggingUrls.map(function(U){U.baseUrl&&(U.baseUrl=FY(U.baseUrl,M));return U}); return X}); if(P){P=g.G(P);for(var u=P.next();!u.done;u=P.next())u=u.value,this.layoutId?lg(this.Tk,u,this.layoutId,this.macros):g.qU(Error("Missing layoutId for multi_select_question."))}this.api.N().D("supports_multi_step_on_desktop")&&this.Lu(w)}; g.N.clear=function(){this.api.N().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.V(Qr,By);Qr.prototype.init=function(w,M,P){var u=this;By.prototype.init.call(this,w,M,P);M.questionText&&Mu$(this,M.questionText);M.answers&&M.answers.forEach(function(X,U){g.A(X,DX)&&P2C(u,g.A(X,DX),P,U)}); M.surveyAdQuestionCommon?X5E(this,M.surveyAdQuestionCommon):PN(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(M)));this.show()}; Qr.prototype.clear=function(){this.api.N().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.V(k2,$r);k2.prototype.init=function(w,M,P){var u=this;$r.prototype.init.call(this,w,M,P);if(this.api.N().D("supports_multi_step_on_desktop")){var X;this.conditioningRules=(X=M.conditioningRules)!=null?X:[];var U;this.L=(U=M.questions)!=null?U:[];var f;((f=M.questions)==null?0:f.length)&&Hzx(this,0)}else(M.questions||[]).forEach(function(h){g.A(h,jJ)?Zzj(u,g.A(h,jJ),P):g.A(h,ru)&&S1A(u,g.A(h,ru),P)}); this.show()}; k2.prototype.clear=function(){this.api.N().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; k2.prototype.X=function(w){var M=this;if(this.api.N().D("supports_multi_step_on_desktop")){var P;if((P=this.conditioningRules)==null?0:P.length){var u;if(w.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(X){return X.questionIndex===M.B})==null)g.qU(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(X){if(X.questionIndex===M.B)switch(X.condition){case "CONDITION_ALL_OF":var U;if((U=X.answerIndices)==null?0:U.every(function(h){return w.includes(h)}))u=X.nextQuestionIndex; break;case "CONDITION_ANY_OF":var f;if((f=X.answerIndices)==null?0:f.some(function(h){return w.includes(h)}))u=X.nextQuestionIndex; break;default:g.qU(Error("Expected specified condition in survey conditioning rules."))}}),u!=null)Hzx(this,u); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.qU(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.V(RG,$r); RG.prototype.init=function(w,M,P){var u=this;$r.prototype.init.call(this,w,M,P);w=M.timeoutSeconds||0;if(typeof w!=="number"||w<0)g.qU(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+w));else if(M.timeoutCommands)if(M.text)if(M.ctaButton&&g.A(M.ctaButton,g.OG))if(M.brandImage)if(M.backgroundImage&&g.A(M.backgroundImage,a8)&&g.A(M.backgroundImage,a8).landscape){this.layoutId||g.qU(Error("Missing layoutId for survey interstitial."));p5E(this.interstitial,g.A(M.backgroundImage, a8).landscape);p5E(this.logoImage,M.brandImage);g.oU(this.text,g.ff(M.text));var X=["ytp-ad-survey-interstitial-action-button"];X.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Yr(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,X);g.b(this,this.actionButton);this.actionButton.XK(this.L);this.actionButton.init(On("button"),g.A(M.ctaButton,g.OG),P);this.actionButton.show();this.B=new F$(this.api,w*1E3);this.B.subscribe("g",function(){u.transition.hide()}); g.b(this,this.B);this.Y(this.element,"click",function(U){var f=U.target===u.interstitial;U=u.actionButton.element.contains(U.target);if(f||U)if(u.transition.hide(),f)u.api.onAdUxClicked(u.componentType,u.layoutId)}); this.transition.show(100)}else g.qU(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.qU(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.qU(Error("SurveyTextInterstitialRenderer has no button."));else g.qU(Error("SurveyTextInterstitialRenderer has no text."));else g.qU(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; RG.prototype.clear=function(){this.hide()}; RG.prototype.show=function(){FyE(!0);$r.prototype.show.call(this)}; RG.prototype.hide=function(){FyE(!1);$r.prototype.hide.call(this)};g.V(nX,Jw);g.N=nX.prototype; g.N.init=function(w,M){Jw.prototype.init.call(this,w,M,{});if(M.durationMilliseconds){if(M.durationMilliseconds<0){g.qU(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+M.durationMilliseconds));return}this.L=M.durationMilliseconds}else this.L=this.B.qV();var P;if((P=M.previewText)==null||!P.text||g.lA(M.previewText.text))g.qU(Error("No text is returned for AdPreview."));else{this.K=M.previewText;M.previewText.isTemplated||g.oU(this.C,M.previewText.text);var u; if(((u=this.api.getVideoData(1))==null?0:u.zj)&&M.previewImage){var X,U;(w=((U=hF(((X=M.previewImage)==null?void 0:X.sources)||[],52,!1))==null?void 0:U.url)||"")&&w.length?(this.previewImage=new g.XT({W:"img",T:"ytp-preview-ad__image",Z:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",w),g.b(this,this.previewImage),this.previewImage.XK(this.element)):g.qU(Error("Failed to get imageUrl in AdPreview."))}else this.C.classList.add("ytp-preview-ad__text--padding--wide")}}; g.N.clear=function(){this.hide()}; g.N.hide=function(){jX(this);Jw.prototype.hide.call(this)}; g.N.show=function(){rC(this);Jw.prototype.show.call(this)}; g.N.wv=function(){this.hide()}; g.N.uT=function(){if(this.B){var w=this.B.getProgressState();if(w!=null&&w.current)if(w=1E3*w.current,w>=this.L)this.transition.hide();else{var M;if((M=this.K)==null?0:M.isTemplated)if(M=Math.max(0,Math.ceil((this.L-w)/1E3)),M!==this.X){var P,u;(w=(P=this.K)==null?void 0:(u=P.text)==null?void 0:u.replace("{TIME_REMAINING}",String(M)))&&g.oU(this.C,w);this.X=M}}}};g.V(vy,$r); vy.prototype.init=function(w,M){$r.prototype.init.call(this,w,M,{});var P,u;if((w=((u=hF(((P=M.image)==null?void 0:P.sources)||[],EMA(M),!0))==null?void 0:u.url)||"")&&w.length){P=this.RI("ytp-ad-avatar");P.src=w;var X,U;if(u=(X=M.interaction)==null?void 0:(U=X.accessibility)==null?void 0:U.label)P.alt=u;switch(M.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(M.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.qU(Error("Failed to get imageUrl in AdAvatar."))}; vy.prototype.clear=function(){this.hide()}; vy.prototype.onClick=function(w){$r.prototype.onClick.call(this,w)};g.V(sA,$r); sA.prototype.init=function(w,M){$r.prototype.init.call(this,w,M,{});var P;w=(P=M.label)==null?void 0:P.content;if((P=w!=null&&!g.lA(w))||M.iconImage){P&&(this.buttonText=new g.XT({W:"span",T:"ytp-ad-button-vm__text",pu:w}),g.b(this,this.buttonText),this.buttonText.XK(this.element));var u,X,U=((u=M.interaction)==null?0:(X=u.accessibility)==null?0:X.label)||P?w:"";U&&bc(this.element,U+" This link opens in new tab");nb(this.element);if(M.iconImage){u=void 0;if(M.iconImage){a:{X=M.iconImage;if(X.sources)for(X= g.G(X.sources),w=X.next();!w.done;w=X.next())if(w=w.value,U=void 0,(U=w.clientResource)==null?0:U.imageName){X=w;break a}X=void 0}if(X){var f;u={iconType:(f=X.clientResource)==null?void 0:f.imageName}}}f=qo(u,!1,this.L);f!=null&&(this.buttonIcon=new g.XT({W:"span",T:"ytp-ad-button-vm__icon",J:[f]}),g.b(this,this.buttonIcon),M.iconLeading?(N3(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):P?(this.buttonIcon.XK(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.XK(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(M.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.D("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.B?"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(M.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.Yq(Error("AdButton does not have label or an icon."))}; sA.prototype.clear=function(){this.hide()}; sA.prototype.onClick=function(w){$r.prototype.onClick.call(this,w)};g.V(N4E,Jw);g.N=N4E.prototype; g.N.init=function(w,M){Jw.prototype.init.call(this,w,M,{});this.api.N().D("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.RI("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"),N3(this.RI("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(w=g.A(M.avatar,CX)){var P=M.headline;if(P){var u=M.description;if(u){var X=g.A(M.button,x2);X?(this.adAvatar.init(On("ad-avatar"),w),this.headline.init(On("ad-simple-attributed-string"),new GO(P)),this.description.init(On("ad-simple-attributed-string"),new GO(u)),P.content&&P.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(On("ad-button"),X),this.startMilliseconds=M.startMs||0,this.api.dj()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.d_.bind(this)),rC(this)):g.qU(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.qU(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.qU(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.qU(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.N.uT=function(){if(this.B){var w=this.B.getProgressState();w&&w.current&&1E3*w.current>=this.startMilliseconds&&(jX(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.N.wv=function(){this.clear()}; g.N.onClick=function(w){this.api.pauseVideo();Jw.prototype.onClick.call(this,w)}; g.N.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.d_.bind(this))}; g.N.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Jw.prototype.show.call(this)}; g.N.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Jw.prototype.hide.call(this)}; g.N.d_=function(w){w==="hidden"?this.show():this.hide()};g.V(KX,$r);g.N=KX.prototype; g.N.init=function(w,M){$r.prototype.init.call(this,w,M,{});if(!M.label||g.lA(M.label))g.qU(Error("No label is returned for SkipAdButton."));else if(g.oU(this.X,M.label),w=qo({iconType:"SKIP_NEXT_NEW"}),w==null)g.qU(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.XT({W:"span",T:"ytp-skip-ad-button__icon",J:[w]}),g.b(this,this.C),this.C.XK(this.element),this.api.N().experiments.nu("enable_skip_to_next_messaging")&&(M=g.et(M.targetId)))this.L=!0,this.element.setAttribute("data-tooltip-target-id",M), this.element.setAttribute("data-tooltip-target-fixed","")}; g.N.onClick=function(w){w&&w.preventDefault();var M,P;MP1(w,{contentCpn:(P=(M=this.api.getVideoData(1))==null?void 0:M.clientPlaybackNonce)!=null?P:""})===0?this.api.Vs("onAbnormalityDetected"):($r.prototype.onClick.call(this,w),this.api.Vs("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.N.clear=function(){this.B.reset();this.hide()}; g.N.hide=function(){$r.prototype.hide.call(this)}; g.N.show=function(){this.B.start();$r.prototype.show.call(this);this.L&&this.api.N().experiments.nu("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.V(Vuc,Jw);g.N=Vuc.prototype; g.N.init=function(w,M){Jw.prototype.init.call(this,w,M,{});w=g.A(M.preskipState,aNa);var P;if((P=this.api.getVideoData())==null?0:P.isDaiEnabled()){if(!w){g.qU(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.L=new nX(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.B);g.b(this,this.L);this.L.XK(this.element);var u;(u=this.L)==null||u.init(On("preview-ad"),w);(P=this.L)!=null&&(P.transition.show(100),P.show())}(P=g.A(M.skippableState,iQV))?(M.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=M.skipOffsetMilliseconds:(g.Yq(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.C.init(On("skip-button"),P),this.show()):g.qU(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.N.show=function(){rC(this);Jw.prototype.show.call(this)}; g.N.hide=function(){!this.isSkippable&&this.L?this.L.hide():this.C&&this.C.hide();jX(this);Jw.prototype.hide.call(this)}; g.N.clear=function(){var w;(w=this.L)==null||w.clear();this.C&&this.C.clear();jX(this);Jw.prototype.hide.call(this)}; g.N.wv=function(){this.hide()}; g.N.uT=function(){if(1E3*this.B.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var w;(w=this.L)!=null&&w.transition.hide();(w=this.C)!=null&&(w.transition.show(),w.show())}};g.V(bk,$r); bk.prototype.init=function(w,M){$r.prototype.init.call(this,w,M,{});if(M.label){var P;((P=M.label)==null?0:P.content)&&!g.lA(M.label.content)&&(this.linkText=new g.XT({W:"span",T:"ytp-visit-advertiser-link__text",pu:M.label.content}),g.b(this,this.linkText),this.linkText.XK(this.element));var u,X;if((u=M.interaction)==null?0:(X=u.accessibility)==null?0:X.label)bc(this.element,M.interaction.accessibility.label+" This link opens in new tab");else{var U;((U=M.label)==null?0:U.content)&&!g.lA(M.label.content)&&bc(this.element, M.label.content+" This link opens in new tab")}nb(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.qU(Error("No label found in VisitAdvertiserLink."))}; bk.prototype.onClick=function(w){$r.prototype.onClick.call(this,w);this.api.onAdUxClicked(this.componentType,this.layoutId)}; bk.prototype.clear=function(){this.hide()};g.V(IG,$r); IG.prototype.init=function(w,M,P,u){$r.prototype.init.call(this,w,M,{});if(M.skipOrPreview){P=M.skipOrPreview;w=g.A(P,Mt4);P=g.A(P,aNa);if(w)this.Zg=new Vuc(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.L),g.b(this,this.Zg),this.Zg.XK(this.S),this.Zg.init(On("skip-ad"),w);else{var X;P&&((X=this.api.getVideoData())==null?0:X.isDaiEnabled())&&(this.X=new nX(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.L,1),g.b(this,this.X),this.X.XK(this.S),this.X.init(On("ad-preview"), P),X=this.X,X.transition.show(100),X.show())}if(X=g.A(M.skipOrPreview,Mt4))var U=X.skipOffsetMilliseconds}M.playerAdCard&&(X=g.A(M.playerAdCard,w1U))&&(this.playerAdCard=new N4E(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.L),g.b(this,this.playerAdCard),this.playerAdCard.XK(this.Cu),this.playerAdCard.init(On("ad-avatar-lockup-card"),X));M.adBadgeRenderer&&((X=g.A(M.adBadgeRenderer,tp))?(this.C=new Dk(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,!0),g.b(this, this.C),this.C.XK(this.B),this.C.init(On("ad-badge"),X)):g.qU(Error("AdBadgeViewModel is not found in player overlay layout.")));M.adPodIndex&&(X=g.A(M.adPodIndex,CAc))&&(this.adPodIndex=new q9(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),g.b(this,this.adPodIndex),this.adPodIndex.XK(this.B),this.adPodIndex.init(On("ad-pod-index"),X));M.adInfoRenderer&&((X=g.A(M.adInfoRenderer,t7))?(this.adInfoButton=new I6(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.element, void 0,!0),g.b(this,this.adInfoButton),this.C!==void 0?this.B.insertBefore(this.adInfoButton.element,this.C.element.nextSibling):this.adInfoButton.XK(this.B),this.adInfoButton.init(On("ad-info-hover-text-button"),X,this.macros)):g.Yq(Error("AdInfoRenderer is not found in player overlay layout.")));var f;X=(f=this.api.getVideoData())==null?void 0:f.isDaiEnabled();M.adDurationRemaining&&X&&(f=g.A(M.adDurationRemaining,nsc))&&(this.adDurationRemaining=new mo(this.api,this.layoutId,this.interactionLoggingClientData, this.Tk,this.L,u.videoAdDurationSeconds,!0),g.b(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.B.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.XK(this.B),this.adDurationRemaining.init(On("ad-duration-remaining"),f,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));M.visitAdvertiserLink&&(u=g.A(M.visitAdvertiserLink,ujh))&&(this.visitAdvertiserLink=new bk(this.api,this.layoutId, this.interactionLoggingClientData,this.Tk),g.b(this,this.visitAdvertiserLink),this.visitAdvertiserLink.XK(this.B),this.visitAdvertiserLink.init(On("visit-advertiser-link"),u));M.adDisclosureBanner&&(M=g.A(M.adDisclosureBanner,jK4))&&(this.adDisclosureBanner=new Y9(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),g.b(this,this.adDisclosureBanner),this.adDisclosureBanner.XK(this.Lu),this.adDisclosureBanner.init(On("ad-disclosure-banner"),M));this.K=new dM(this.api,this.L,U,!0);g.b(this, this.K);g.bD(this.api,this.K.element,4);this.show()}; IG.prototype.clear=function(){this.hide()};g.V(m_x,$r);g.N=m_x.prototype; g.N.init=function(w,M){$r.prototype.init.call(this,w,M,{});if(M!=null&&M.title)if(w=M.title)if(this.headline.init(On("ad-simple-attributed-string"),new GO(w)),w=g.A(M.moreInfoButton,x2)){if(this.moreInfoButton.init(On("ad-button"),w),M.descriptions)M.descriptions.length>0&&(w=M.descriptions[0])&&(this.B=new yP(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),g.b(this,this.B),this.B.XK(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.B.init(On("ad-simple-attributed-string"), new GO(w))),M.descriptions.length>1&&(M=M.descriptions[1])&&(this.L=new yP(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),g.b(this,this.L),this.L.XK(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.L.init(On("ad-simple-attributed-string"),new GO(M)))}else g.qU(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.qU(Error("No headline found in AdGridCardText."));else g.qU(Error("No headline found in AdGridCardText."))}; g.N.onClick=function(w){$r.prototype.onClick.call(this,w);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.N.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var w;(w=this.B)==null||w.clear();var M;(M=this.L)==null||M.clear()}; g.N.hide=function(){this.headline.hide();this.moreInfoButton.hide();var w;(w=this.B)==null||w.hide();var M;(M=this.L)==null||M.hide();$r.prototype.hide.call(this)}; g.N.show=function(){$r.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var w;(w=this.B)==null||w.show();var M;(M=this.L)==null||M.show()};g.V(Ap,$r);Ap.prototype.init=function(w,M){$r.prototype.init.call(this,w,M,{});if(M!=null&&M.gridCards)if(M.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.qU(Error("Only single column style is currently supported in AdGridCardCollection."));else for(w=g.G(M.gridCards),M=w.next();!M.done;M=w.next()){if(M=g.A(M.value,OE3)){var P=new m_x(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk);g.b(this,P);P.XK(this.element);P.init(On("ad-grid-card-text"),M);this.B.push(P)}}else g.qU(Error("No grid cards found in AdGridCardCollection."))}; Ap.prototype.show=function(){for(var w=g.G(this.B),M=w.next();!M.done;M=w.next())M.value.show();$r.prototype.show.call(this)}; Ap.prototype.clear=function(){this.hide();for(var w=g.G(this.B),M=w.next();!M.done;M=w.next())M.value.clear()}; Ap.prototype.hide=function(){for(var w=g.G(this.B),M=w.next();!M.done;M=w.next())M.value.hide();$r.prototype.hide.call(this)};g.V(gB,Jw);g.N=gB.prototype;g.N.init=function(w,M,P,u,X){X=X===void 0?0:X;Jw.prototype.init.call(this,w,M,P,u);this.playerProgressOffsetMs=X;rC(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Q$.bind(this));this.api.addEventListener("resize",this.U4.bind(this));this.api.dj()?(this.L=!0,this.api.o4(!0),this.show()):this.hide()}; g.N.uT=function(){if(this.B){var w=this.B.getProgressState();w&&w.current&&!this.L&&1E3*w.current>=this.playerProgressOffsetMs&&(this.L=!0,this.api.o4(!0),this.show())}}; g.N.wv=function(){this.L&&this.api.o4(!1);this.hide()}; g.N.clear=function(){this.api.o4(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Q$.bind(this));this.api.removeEventListener("resize",this.U4.bind(this));jX(this);this.hide()}; g.N.hide=function(){oME(!1);Jw.prototype.hide.call(this)}; g.N.show=function(){oME(!0);Jw.prototype.show.call(this)};g.V(Gpc,gB);g.N=Gpc.prototype; g.N.init=function(w,M,P,u){if(M!=null&&M.adGridCardCollection)if(M!=null&&M.adButton){var X=Number(M.playerProgressOffsetMs||"0");isNaN(X)?gB.prototype.init.call(this,w,M,P,u):gB.prototype.init.call(this,w,M,P,u,X);w=M.headline;P=g.A(M.adAvatar,CX);w&&P?(this.headline=new yP(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),g.b(this,this.headline),this.headline.XK(this.RI("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(On("ad-simple-attributed-string"),new GO(w)), this.adAvatar=new vy(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),g.b(this,this.adAvatar),this.adAvatar.XK(this.RI("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(On("ad-avatar"),P)):this.X.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");w=g.A(M.adGridCardCollection,xK4);this.adGridCardCollection.init(On("ad-grid-card-collection"),w);M=g.A(M.adButton,x2);this.adButton.init(On("ad-button"),M); this.hide()}else g.qU(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.qU(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.N.onClick=function(w){(this.adButton&&g.mG(this.adButton.element,w.target)||this.adAvatar&&g.mG(this.adAvatar.element,w.target))&&this.api.pauseVideo();gB.prototype.onClick.call(this,w);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.N.U4=function(){}; g.N.clear=function(){this.hide();var w;(w=this.headline)==null||w.clear();var M;(M=this.adAvatar)==null||M.clear();this.adGridCardCollection.clear();this.adButton.clear();gB.prototype.clear.call(this)}; g.N.show=function(){var w;(w=this.headline)==null||w.show();var M;(M=this.adAvatar)==null||M.show();this.adGridCardCollection.show();this.adButton.show();gB.prototype.show.call(this)}; g.N.hide=function(){var w;(w=this.headline)==null||w.hide();var M;(M=this.adAvatar)==null||M.hide();this.adGridCardCollection.hide();this.adButton.hide();gB.prototype.hide.call(this)}; g.N.Q$=function(w){w==="transitioning"?(this.C.classList.remove("ytp-ad-underlay-clickable"),this.show()):w==="visible"?this.C.classList.add("ytp-ad-underlay-clickable"):w==="hidden"&&(this.hide(),this.C.classList.remove("ytp-ad-underlay-clickable"))};g.V(Jp,$r); Jp.prototype.init=function(w,M){$r.prototype.init.call(this,w,M,{});if(M.attributes===void 0)g.qU(Error("No attributes found in AdDetailsLineViewModel."));else if(M.style===void 0)g.qU(Error("No style found in AdDetailsLineViewModel."));else{w=g.G(M.attributes);for(var P=w.next();!P.done;P=w.next())if(P=P.value,P.text!==void 0){P=P.text;var u=M.style,X=new yP(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk);g.b(this,X);X.XK(this.element);a:switch(u){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":u="ytp-ad-details-line__text--style-responsive"; break a;default:u="ytp-ad-details-line__text--style-standard"}X.element.classList.add(u);X.init(On("ad-simple-attributed-string"),new GO(P));this.B.push(X)}this.show()}}; Jp.prototype.show=function(){this.B.forEach(function(w){w.show()}); $r.prototype.show.call(this)}; Jp.prototype.clear=function(){this.hide()}; Jp.prototype.hide=function(){this.B.forEach(function(w){w.hide()}); $r.prototype.hide.call(this)};g.V(rB,$r);rB.prototype.init=function(w,M){$r.prototype.init.call(this,w,M,{});var P,u;(w=((u=hF(((P=M.image)==null?void 0:P.sources)||[]))==null?void 0:u.url)||"")&&w.length?(P=this.RI("ytp-image-background-image"),g.A1(P,"backgroundImage","url("+w+")"),M.blurLevel!==void 0&&g.A1(P,"filter","blur("+M.blurLevel+"px)"),M.gradient!==void 0&&(M=new g.r({W:"div",d$:["ytp-image-background--gradient-vertical"]}),g.b(this,M),M.XK(this.element)),this.show()):g.qU(Error("Failed to get imageUrl in ImageBackground."))}; rB.prototype.clear=function(){this.hide()};g.V(yH3,Jw);g.N=yH3.prototype;g.N.init=function(w,M){Jw.prototype.init.call(this,w,M,{});g.A1(this.C,"stroke-dasharray","0 "+this.L);this.show()}; g.N.clear=function(){this.hide()}; g.N.hide=function(){jX(this);Jw.prototype.hide.call(this)}; g.N.show=function(){rC(this);Jw.prototype.show.call(this)}; g.N.wv=function(){this.hide()}; g.N.uT=function(){if(this.B){var w=this.B.getProgressState();w!=null&&w.current!=null&&g.A1(this.C,"stroke-dasharray",w.current/w.seekableEnd*this.L+" "+this.L)}};g.V(jN,$r); jN.prototype.init=function(w,M){$r.prototype.init.call(this,w,M,{});if(q1p(M)){this.adAvatar=new vy(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk);g.b(this,this.adAvatar);this.adAvatar.XK(this.RI("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(On("ad-avatar"),g.A(M.adAvatar,CX));this.headline=new yP(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk);g.b(this,this.headline);this.headline.XK(this.RI("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(On("ad-simple-attributed-string"),new GO(M.headline));if(w=g.A(M.adDetailsLine,r5h))this.detailsLine=new Jp(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),g.b(this,this.detailsLine),this.detailsLine.XK(this.RI("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(On("ad-details-line"),w);this.adButton=new sA(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,!0);g.b(this,this.adButton); this.adButton.XK(this.RI("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(On("ad-button"),g.A(M.adButton,x2));this.adBadge=new Dk(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,!0);g.b(this,this.adBadge);this.adBadge.XK(this.X);this.adBadge.init(On("ad-badge"),g.A(M.adBadge,tp));this.adInfoButton=new I6(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.element,void 0,!0);g.b(this,this.adInfoButton);this.adInfoButton.XK(this.X); this.adInfoButton.init(On("ad-info-hover-text-button"),g.A(M.adInfoRenderer,t7),this.macros);if(w=g.A(M.skipAdButton,iQV))this.skipAdButton=new KX(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),g.b(this,this.skipAdButton),this.skipAdButton.XK(this.element),this.skipAdButton.init(On("skip-button"),w);this.L=new Eg(M.durationMilliseconds);g.b(this,this.L);if(w=g.A(M.countdownViewModel,Pi4))this.B=new yH3(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk,this.L),g.b(this, this.B),this.B.XK(this.RI("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.B.init(On("timed-pie-countdown"),w);if(M=g.A(M.imageBackground,tFh))this.imageBackground=new rB(this.api,this.layoutId,this.interactionLoggingClientData,this.Tk),g.b(this,this.imageBackground),this.imageBackground.XK(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(On("image-background"), M);this.show();this.element.focus()}}; jN.prototype.clear=function(){g.qi(this.C);this.hide()}; jN.prototype.show=function(){D_E(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();$r.prototype.show.call(this)}; jN.prototype.hide=function(){D_E(!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.B&&this.B.hide();this.imageBackground&&this.imageBackground.hide();$r.prototype.hide.call(this)};g.V(OA,g.wC);g.N=OA.prototype;g.N.qV=function(){return 1E3*this.api.getDuration(this.W9,!1)}; g.N.stop=function(){this.B&&this.bB.Mt(this.B)}; g.N.Ub=function(){var w=this.api.getProgressState(this.W9);this.L={seekableStart:w.seekableStart,seekableEnd:w.seekableEnd,current:this.api.getCurrentTime(this.W9,!1)};this.publish("h")}; g.N.getProgressState=function(){return this.L}; g.N.xF=function(w){g.fW(w,2)&&this.publish("g")};var T23="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.V(aG,nf); aG.prototype.C=function(w){var M=w.id,P=w.content,u=P.componentType;if(!T23.includes(u))switch(w.actionType){case 1:w=this.api;var X=this.Tk,U=P.layoutId,f=P.interactionLoggingClientData,h=P instanceof eT?P.P0:!1,c=P instanceof eT||P instanceof pW?P.CJ:!1;f=f===void 0?{}:f;h=h===void 0?!1:h;c=c===void 0?!1:c;switch(u){case "invideo-overlay":w=new IL_(w,U,f,X);break;case "player-overlay":w=new l0(w,U,f,X,new OA(w),c);break;case "player-overlay-layout":w=new IG(w,U,f,X,new OA(w));break;case "survey":w= new k2(w,U,f,X);break;case "ad-action-interstitial":w=new no4(w,U,f,X,h,c);break;case "video-interstitial-buttoned-centered":w=new jN(w,U,f,X);break;case "survey-interstitial":w=new RG(w,U,f,X);break;case "ad-message":w=new xwM(w,U,f,X,new OA(w,1));break;case "player-underlay":w=new aLy(w,U,f,X);break;case "display-underlay-text-grid-cards":w=new Gpc(w,U,f,X,new OA(w));break;default:w=null}if(!w){g.Yq(Error("No UI component returned from ComponentFactory for type: "+u));break}g.h5(this.components, M)?g.Yq(Error("Ad UI component already registered: "+M)):this.components[M]=w;w.bind(P);P instanceof lM?this.L?this.L.append(w.s3):g.Yq(Error("Underlay view was not created but UnderlayRenderer was created")):this.X.append(w.s3);break;case 2:M=Y1p(this,w);if(M==null)break;M.bind(P);break;case 3:P=Y1p(this,w),P!=null&&(g.wR(P),g.h5(this.components,M)?(P=this.components,M in P&&delete P[M]):g.Yq(Error("Ad UI component does not exist: "+M)))}}; aG.prototype.v3=function(){g.iZ(Object.values(this.components));this.components={};nf.prototype.v3.call(this)};g.V(zRV,g.D0);g.N=zRV.prototype;g.N.create=function(){try{T4V(this),this.load(),this.created=!0,T4V(this)}catch(w){X$(w instanceof Error?w:String(w))}}; g.N.load=function(){try{Lyx(this)}finally{MO(zD(this.B).EB)&&this.player.LV("ad",1)}}; g.N.destroy=function(){var w=this.player.getVideoData(1);this.B.B.KE.D8(w&&w.clientPlaybackNonce||"");this.unload();this.created=!1}; g.N.unload=function(){g.D0.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(M){X$(M instanceof Error?M:String(M))}if(this.L!=null){var w=this.L;this.L=null;w.dispose()}this.C.reset()}; g.N.Yo=function(){return!1}; g.N.getAdState=function(){return-1}; g.N.getOptions=function(){return Object.values(zm3)}; g.N.S0=function(w,M){M=M===void 0?{}:M;switch(w){case "replaceUrlMacros":return w=M,w.url?(M=t_l(this.player),Object.assign(M,w.Fh0),w=g.YO(w.url,M)):w=null,w;case "onAboutThisAdPopupClosed":this.Uc(M);break;case "executeCommand":w=M;w.command&&w.layoutId&&this.executeCommand(w);break;default:return null}}; g.N.K8=function(w){var M;return!((M=this.B.B.Ya)==null||!M.get().K8(w))}; g.N.Uc=function(w){w.isMuted&&qXy(zD(this.B).DY,zD(this.B).Jq,w.layoutId);this.LH&&this.LH.Uc()}; g.N.executeCommand=function(w){zD(this.B).Tk.executeCommand(w.command,w.layoutId)};g.ih("yt.player.Application.create",g.op.create);g.ih("yt.player.Application.createAlternate",g.op.create);kZx(ox(),YVU);var dqC=g.Mj("ytcsi.tick");dqC&&dqC("pe");g.yT("ad",zRV);g.V(g.Mg,g.v);g.Mg.prototype.start=function(w,M,P){this.config={from:w,to:M,duration:P,startTime:(0,g.G$)()};this.next()}; g.Mg.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.Mg.prototype.next=function(){if(this.config){var w=this.config,M=w.from,P=w.to,u=w.duration;w=w.startTime;var X=(0,g.G$)()-w;w=this.B;u=Amz(w,X/u);if(u==0)w=w.j;else if(u==1)w=w.V;else{X=AT(w.j,w.G,u);var U=AT(w.G,w.K,u);w=AT(w.K,w.V,u);X=AT(X,U,u);U=AT(U,w,u);w=AT(X,U,u)}w=g.bi(w,0,1);this.callback(M+(P-M)*w);w<1&&this.delay.start()}};g.V(g.Pw,g.r);g.N=g.Pw.prototype;g.N.hasSuggestions=function(){return this.suggestionData.length>0}; g.N.Gu=function(){this.L&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.N.show=function(){g.r.prototype.show.call(this);nME(this)}; g.N.DM=function(){this.L&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.N.Fu=function(){this.o9(this.api.oI().getPlayerSize())}; g.N.o9=function(w){var M=this.api.isEmbedsShortsMode()?.5625:16/9,P=this.api.WZ();w=w.width-(P?112:58);P=Math.ceil(w/(P?320:192));var u=(w-P*8)/P;M=Math.floor(u/M);for(var X=g.G(this.B),U=X.next();!U.done;U=X.next())U=U.value.RI("ytp-suggestion-image"),U.style.width=u+"px",U.style.height=M+"px";this.suggestions.element.style.height=M+"px";this.X=u;this.V=M;this.containerWidth=w;this.columns=P;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.u9(this)}; g.N.onVideoDataChange=function(){var w=this.api.N(),M=this.api.getVideoData();this.K=M.Ym?!1:w.X;this.suggestionData=M.suggestions?g.DP(M.suggestions,function(P){return P&&!P.playlistId}):[]; sFA(this);M.Ym?this.title.update({title:g.iM("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:M.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.N.scrollTo=function(w){w=g.bi(w,this.containerWidth-this.suggestionData.length*(this.X+8),0);this.j.start(this.scrollPosition,w,1E3);this.scrollPosition=w;g.u9(this);nME(this)};})(_yt_player);