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 l="/;%3D;K;splice;path;;join;/api/manifest;length;set;1;pz;startsWith;toString;local;scheme;r;prototype;indexOf;/videoplayback;1970-01-01T09:30:50.000+09:30;W;file;push;fallback_count;slice;G;n;cmo=pf;,;url;fromCharCode;&;split;unshift;youtube.player.web_20250428_21_RC00;1969-12-31T18:00:20.000-06:00;playerfallback;get;cmo=;1970-01-01T02:00:01.000+02:00;---;Ol;fvip;wW;assign;T;rr?[1-9].*\\.c\\.youtube\\.com$;\\.a1\\.googlevideo\\.com$;forEach;Ow;match;=;yu;xS;sp;signatureCipher;:;s;9GPrPA;rr;xm;://;reverse;undefined;Untrusted URL;a1.googlevideo.com;clone;cmo;//;mn;redirector.googlevideo.com;/initplayback;\\.googlevideo\\.com$;mRVMLJQoZKg750BkOL-_w8_;index.m3u8;/file/index.m3u8;?;cmo=td;www.youtube.com;pop;replace".split(";"), iD,ivy,JTD,Dy,KXH,qHy,fv,SHI,hT,pH0,tT,FL,ay,NI,lyc,ncQ,TA,HH,ATH,VQ,DIy,eQ,Ry,jyA,bD,mX,r0,Lv,kc,fyQ,zA,PH,XL,tQT,FXc,l0,ayH,uLc,Dp,N0X,dID,yTc,UIH,ZvL,fx,CD0,wHy,wv,MQH,O$,gcv,GAX,gv,$IQ,xIH,OvQ,T0Q,b0,rv,Hvy,VQH,cR,EcQ,IG,qs,SS,lh,nU,AX,bvQ,Dn,jS,fU,B0Q,rTQ,tX,ocQ,Ns,y$,Gj,$I,xI,Ow,LX0,kA0,HX,Ew,V$,zQX,vcX,YHI,sy0,PDI,RG,bh,BX,mG,rX,LU,kI,JWI,YI,PX,XC,Wa,iW,IX,q3,KoQ,pw,lW,Az,q$c,S$L,pRv,DF,fw,hz,F1,aX,dn,Uh,tly,FoD,apD,uey,ZF,Nvy,Qt,Cw,wn,dj0,M3,yWQ,ZxQ,Oh,Ha,e1,bW,Ba,wRQ,C0D,xjQ,GTX,TvD,oX,Lw, sh,ErT,RLv,eLL,Pa,Wo,bxX,X1,qO,rn,mjv,Bvv,AL,no,m6,rWX,DK,fo,j4,tL,or0,ai,u5,NO,dM,yw,Ut,kTA,zLH,ZK,vrX,Y$y,Qw,Co,cWQ,GC,$p,XRX,xp,Ot,TC,WGT,iUv,Et,JXX,e4,Ri,qwv,b5,Bo,pX0,lnv,DsQ,nIQ,jGH,FGD,mS,tSc,fnQ,rM,oi,anI,Lo,uCX,kp,dsQ,NXL,yXQ,UsX,co,Po,ZU0,QGH,Chy,Xw,WD,i7,wXQ,$sy,Jn,xsL,OUL,esQ,SB,EIH,TXQ,bUQ,rXy,l7,An,jB,DQ,oID,fr,vIA,hn,aB,u7,NQ,yW,cXy,Uc,PhQ,QW,Cr,MQ,Jzy,$G,Oc,HD,K6L,Ti,IFH,qhX,VW,xG,Ec,eB,ShQ,RB,BD,lFQ,mh,rm,oB,D3y,YG,jXy,fFI,hnQ,t1Q,vD,zi,Lr,njy,AzX,F6L,u10,NnT,d3Q,PD,XP,Ws,yzA,KH, qF,Se,pH,U3v,nH,ZwA,je,D8,M1A,tK,FN,gjy,GmQ,x3A,aM,ux,NF,dU,U1,yN,QN,Z8,GF,Ow0,CH,MF,$P,TnI,xP,HwA,O1,TF,ee,RM,bx,Hs,E1,VN,my,V1Q,rU,EjH,oM,RnT,kP,zF,gU,vs,YP,s1,cs,Bnc,Ps,XN,Wi,iy,JD,KW,m3H,Iw,rzH,q7,SI,ojH,ly,pW,nW,AD,D9,jI,fW,L6Q,znv,tD,vjH,YhI,sXH,aw,uy,y8,PWy,Uj,XaX,Z9,ioQ,Q8,KSy,wx,M7,gx,IKc,GI,qtA,$J,StQ,poI,xJ,lK0,Oj,TI,V8,Ej,ALy,by,fKI,npc,Bi,rx,ow,FSc,hdy,kJ,vi,aKQ,NMQ,dOQ,YJ,X6,WY,ij,JZ,Kj,IF,UOT,ZoL,Qic,wo0,M4X,SW,lj,gpH,nj,GCc,$OH,Ooy,EpQ,AZ,edX,RdA,boL,BMH,mOv,fj,rLH,opQ,LSy,dI,N5,uj, kCD,zdQ,vpQ,yT,U5,Zw,si0,gI,GB,$E,xE,O5,P5D,XoA,WhH,TB,eW,RF,rI,oF,zB,JnX,IQy,Khc,qcQ,Scv,XU,pDQ,lQL,WZ,nGX,AnQ,DQQ,jBT,IN,JE,qt,SR,pd,fQL,h2X,tB0,li,nd,FhI,AE,aQX,FyL,a8c,DC,uNA,jR,fd,NUQ,dFQ,yKy,UFL,ZHA,QMQ,Fx,aN,ui,d3,MeQ,y7,Ui,gPD,wsT,Nt,GFy,ZC,Q7,Cd,g3,w3,$Fc,xFD,OHH,GN,HHA,$8,EPy,euc,Ruv,bHT,BU0,mF0,rK0,oPQ,TN,HZ,V7,kFH,LyT,zuD,vPQ,eR,Y1Q,RN,sMc,cKQ,bi,BZ,mw,PxX,r3,oN,XsI,k8,zN,vZ,Y8,si,cZ,PZ,Xx,WiH,iWX,JDQ,KiQ,W6,I9c,SjQ,qjL,J9,KZ,l9I,piH,D7I,hjv,f9T,I6,tIv,FiQ,a90,NxD,u6X,d7D,qR,yDv,U7X,pZ, ZWX,QwI,CyH,wic,lF,nZ,MID,A9,gJy,Dk,jn,$7I,fZ,x7v,h9,t9,OWv,Txv,F$,uF,VIQ,NR,HWv,EJQ,ejH,RjQ,BxQ,dy,m7y,Zk,Ql,oJQ,LiQ,vJy,YjH,CZ,wy,MR,gy,Gd,$v,xv,OV,Td,H6,Vl,EV,en,XiT,Pyy,Wkv,JZ0,ijy,IwD,cDH,KkT,swI,R6,bF,S5c,pYH,lwH,o6,Yv,sV,B6,AZH,c6,q5y,jFQ,fwQ,D5Q,P6,X$,W4,iR,hxH,nEH,tWH,JB,FkQ,awX,uUI,NIQ,d5H,ZjL,QFH,Cjc,wYH,KR,IH,qH,MWH,gEH,x50,OjT,Su,lR,HjT,nR,pR,EEH,VWD,exD,RxQ,bj0,DX,ju,m5Q,rZL,oET,Lky,kBL,zxX,vEL,Y5H,sFQ,cZX,hB,tB,Fi,aH,PjQ,JEA,KwH,qiD,ICL,SiL,dd,yy,pZH,lCQ,n8c,U9,ZX,Qy,CR,wd,MH,gd,Ga, AEI,$7,jNQ,Ta,fCH,hVy,H4,Vy,E9,eu,tRA,FwQ,uxy,RH,q5,C50,oH,N3y,dty,LR,yEc,rd,Zd0,UtQ,ma,k7,za,QNy,CiA,wZy,MRv,v4,g8Q,Y7,Wwy,XYL,s9,c4,Xi,WS,xtQ,ia,J0,II,Ody,T3L,qZ,RVX,D$,VRQ,eVQ,la,pq,FI,aI,bdQ,dO,B3D,yc,UG,mtD,o8D,kNQ,OG,HS,sNH,cE0,Piy,Vc,J9A,wO,v8H,Ikc,iZD,XZD,W_y,qVH,K_c,e_,BS,p6Q,lkc,nvc,A9X,DRH,oI,j6D,k1,fkH,F_Q,ak0,zv,Nyy,y9v,dRQ,URH,Y1,PS,JQ,Ib,qo,Sf,pu,ll,CFH,w6v,nu,MnL,AQ,DW,Ku,jf,fu,hQ,AB,tQ,gvH,ab,xRX,ul,No,TyH,OZQ,HZL,VnI,Evy,d1,eXH,yH,UL,bZH,r9X,ovv,ZW,vvT,zXL,YVX,s6c,c9Q,QH,PFL,L_I, Cu,X6Q,WaH,w1,JBv,Kac,IXy,q9y,S9A,g1,p4T,lX0,n7X,ABA,fXc,DHv,GQ,$V,xV,OL,TQ,Hg,VH,EL,tuy,Rb,ef,FaQ,Bg,NdX,bl,dHQ,yBQ,w40,UHQ,ZRD,QHL,CRT,me,r1,ob,Muy,Lu,kV,zQ,vg,YV,sL,ORQ,g7D,W0,xHQ,iY,$Hv,XB,cg,GaQ,Pg,K0,HR0,qW,IZ,Ah,DG,f0,ehI,RhQ,jr,FY,bRH,aZ,VuA,rB0,o7L,LaD,d_,yR,Ud,kaT,ZG,QR,C0,w_,zhT,MW,xa,Od,v7Q,Y9X,Tt,sHL,X4H,ByT,PRA,WbQ,iqv,J0y,cBI,I$H,pSX,VR,er,n1H,A0Q,jIQ,bY,RZ,f$0,DZy,FbA,a$I,mc,uIL,B0,oZ,NOc,L0,zt,v0,dZy,y0L,K3,UZy,qi,ZqX,QIX,h5,CaQ,M_H,t5,g1y,GvQ,HqL,$ZQ,Ni,d5,yh,Z3,Qh,bqQ,C3,w5,Mi, mZA,$Q,r0c,o1Q,xQ,kvQ,T9,Hq,Vh,E6,v1X,eN,bK,Bq,m0,r5,YGc,sIQ,c0A,L3,kQ,z9,vq,YQ,s6,PaD,XSL,Wey,iuA,JQy,Key,cq,IWy,IY,qLH,SLQ,pgy,q1,pX,lu,nX,jG,fX,hw,nV0,aY,uu,N1,AQT,Doc,dl,jbc,fWQ,U4,yQy,UoI,Zuv,Z6,QbH,Cly,gVL,CX,$ov,GQA,xoX,T1H,HuA,gl,GM,VfT,$f,xf,O4,TM,HO,VY,E4,eG,RY,bu,BO,mW,rl,oY,EVA,e0y,R0I,vO,s4,buQ,W7,iX,Ja,Kz,Iv,SC,pz,oVc,lX,nz,Aa,kQH,LeQ,B1c,fz,jC,sb0,ha,Z_,dq,Qb,Cz,PlA,MU,Jh0,Wc0,i0A,IGH,naQ,qdy,p0A,lGH,cQL,G_,gq,DWA,xu,OD,T_,jZQ,bX,fGX,B7,mQ,rq,Lz,htT,z_,v7,FcA,Yu,sD,uYD,XW,iB,JJ,Kn, I$,qk,S6,pn,lB,nn,dWQ,AJ,fn,j6,UWL,w0A,QZL,CYT,MrI,gac,$Wy,xWI,GtI,T_y,FJ,a$,di,H0T,VrX,Nk,y0,etc,RtL,rhQ,mWQ,Cn,wi,Mk,gi,GW,xd,Lcv,ktQ,ztD,R$,bB,vac,YdH,sZD,Ln,kd,zW,chT,PYQ,W0y,J5A,cd,K00,WM,Pd,KL,Ix,Sx,I30,fL,hF,tF,FS,uH,NV,yP,nQH,A5D,Zt,DiD,jWX,CL,f3H,hpX,wg,MV,tNQ,F0Q,uHQ,$k,diQ,y5v,gg,UiH,Z3T,CKQ,QWQ,HM,N5y,MNI,gQH,BM,Rx,G9H,$iD,m9,rg,xiQ,O3Q,kk,T5Q,H3y,VNH,EQQ,cM,epH,RpQ,b3Q,B5X,miy,r5D,oQc,L0T,XS,k9T,i2,vQy,Y6c,sWA,c5H,PKc,Jc,l2,WW0,KWQ,nC,I6H,S4y,Xqc,pOI,l6y,nfD,iXX,JwI,KC,IO,pC,q40,S2,qb, AwQ,D1v,jYy,f6L,h8Q,tGv,d1c,FWH,fC,hc,UW,ZXL,wOH,CuH,tc,CC,MGX,go,gfH,$1y,T3,GMv,bXv,x1Q,R8y,e2,Bly,ofX,RO,EW,m1Q,rwy,LWc,B2,z8c,vfv,Y4y,sYQ,cwH,Puy,XOA,kMQ,izX,JaT,KQc,qDX,I_H,p7c,LC,l_H,kg,z3,v2,nuy,Aac,c2,P2,jvQ,DUT,Xl,f_D,tCL,a_Q,FQA,uW0,yaQ,Nqy,Aj,fI,jT,UUA,Ds,u9,Nv,db,yF,ZzI,Zs,CXL,wb,CI,gb,G$,$L,xL,w70,OZ,Hb,MCA,EZ,Ra,b9,guy,G_0,$UQ,xUQ,Bb,rb,OzT,oa,LI,kL,HzT,z$,vb,VCc,sZ,Xh,Pb,cb,Wm,is,RJy,LQc,zJA,ouc,raQ,k_T,Ih,pJ,cav,vuQ,YDH,svc,eJL,SND,ah,qNH,ndQ,IRy,KJ,us,Du,tm,pdH,nJ,Bq0,bzv,mUH,Sg,KrA, UT,t6y,Zu,aRX,uJ0,NiX,CJ,dkv,yJX,Uk0,Q$c,CBX,gT,M6Q,Gz,gdv,GWA,xkv,Onv,xb,Tic,V60,OT,EdT,Tz,Hm,nL,rJA,vdA,Bm,s$c,Xdc,rT,iLD,JFH,K90,iG,W3,ItI,Pm,QYQ,sT,Xn,cm,oh,n$,lG,Db,f$,SOc,ho,Fo,aE,pMD,ltA,d4,AFH,DVI,jxX,ftH,h3Q,txQ,F9Q,atv,uSv,NgH,QI,dVX,C$,M4,yFH,UVy,ZL0,QxQ,g4,CHL,wMX,MxX,gkQ,Os,Tl,H3,GqQ,VI,$VQ,eV,OLv,xVT,bG,B3,mJ,r4,TgT,oE,L$,HLH,VxA,kT,zl,bLX,Ekv,R3A,e30,v3,c3,P3,Bg0,mVX,rFv,Xo,L9D,vkH,z3v,Wh,iT,Jq,Ki,IK,S$,pi,lT,ni,Aq,D1,YOD,sx0,cFH,j$,fi,hq,tq,aK,Nf,WfX,XMT,yS,iC0,Uo,Z1,QS,Ci,wc,Ge,$q, xq,Oo,Te,Hh,VS,Eo,e$,RK,bT,IvL,mn,oK,qWQ,Li,kq,lvH,ngL,AcH,jOT,hBX,Ph,t2L,We,Xb,uly,Noy,dbX,JI,Kc,UbX,qC,S0,uI,NC,QOD,dR,y4,UU,C2y,Za,ZCH,Q4,Cc,M2X,w2c,wR,MC,gR,G8,xM,G3y,$bH,T8,He,EU,e0,xbQ,V4,HCc,V2D,EgA,eBv,RBA,bCI,Bov,bI,RC,ToT,ogc,Be,k30,zBv,kM,vgH,rR,oC,YWy,z8,ccH,X20,ve,YM,WTL,sU,Jjc,ce,lsv,SZH,KTI,qZv,Is0,XD,WN,ic,Ju,K2,Iq,qM,p2,AjQ,fsH,Au,TIL,DB,hMI,FTv,f2,aq,hu,FO,tu,NbA,uhL,asH,dvI,uc,yjQ,C9D,NM,ye,MTD,Ur,ZB,Qe,C2,gLH,wH,G$Q,$vy,gH,Or,TO,HN,Ve,Er,e9,Rq,bc,BN,m5,rH,oq,L2,xvQ,OIQ,k4,zO,vN, Y4,sr,cN,TbI,HIX,PN,JH,eM0,RMA,Kg,If,d7,yK,BbL,QK,mvQ,rjQ,MN,oLy,k$A,LTA,zMc,vLX,YZy,saT,cjD,P9Q,WHX,XbL,iJy,Iuy,ST0,KHX,pmL,luy,Amv,G6,$s,jhQ,D_H,xs,Ou,T6,hoA,H_,VK,Eu,FHH,auQ,ec,tgL,Rf,d_Q,bZ,B_,m2,r7,of,Lg,ks,z6,v_,Ys,c_,P_,X7,Wn,iC,JU,KY,IJ,qm,S8,pY,lC,nY,AU,DS,j8,fY,hU,tU,Fs,aJ,uC,Nm,dj,yv,Up,ZS,Qv,CY,wj,Mm,gj,Gn,$n,xn,Op,Tn,Hn,Vv,Ep,e8,RJ,bC,Bn,m$,rj,oJ,LY,kn,zn,vn,Yn,sp,cn,Pn,Xs,Wp,im,JA,KQ,qT,SX,U_D,pQ,Y,lm,IA,nQ,AA,Dh,QhH,fQ,wm0,jX,MgQ,tA,gbQ,aA,hA,um,NT,dJ,Uv,$_Q,x_y,OJc,TT0,xw,Ov,MT,T0, VgI,Ebc,eoy,RoX,GzL,bJQ,yg,BTv,m_T,Vg,Bp,Ev,Qg,rmQ,Zh,Hp,eX,mm,LH0,CQ,wJ,bm,RA,kzT,rJ,oA,LQ,kw,zoQ,z0,vp,Yw,cp,Pp,vbT,YTQ,cmA,PsQ,iQ,JN,WJX,K9,Ibv,SsH,lbX,nTH,qJ,D4T,jEv,Dj,fbH,jU,f9,hN,tN,FZ,a3,h_D,FJH,abX,tVQ,uoH,N4L,y3,U8,Q3,wF,MJ,gF,d4L,GX,yov,$9,x9,Zj,Hj,V3,E8,eU,U4D,TX,QEH,R3,CGA,w3I,bQ,MVL,Bj,mM,gTy,Glv,rF,$4I,x4Q,o3,O$I,T4c,H$L,VVL,L9,k9,ETQ,e_H,zX,vj,Y9,R_Q,s8,cj,Pj,XZ,b$y,WW,i1,B4Q,Jy,m4H,KB,ro0,oTQ,LJQ,klA,z_v,vTH,Is,YsQ,sEH,coH,qd,PGD,Sp,X3X,pB,WnH,l1,iiD,JqH,nB,hy,Knv,ty,F_,as,u1,I1T, Nd,dG,yO,US,ZE,qoc,SoX,CB,wG,l1c,Md,nqQ,Aqy,phv,DfX,jKy,f1X,Gc,hbQ,$m,xm,OS,Tc,t$A,HW,VO,ep,FnH,Rs,b1,a1Q,mv,LB,rG,Ym,sS,ubT,cW,NcQ,X_,WF,ir,dfc,KD,yqy,qy,SH,pD,zc,lr,nD,AM,UfH,D0,jH,fD,ZiD,hM,tM,Fr,al,ur,Ny,yk,UE,vF,YX,QKD,CTH,whQ,Xr,sE,W5,ip,M$H,gqH,Gec,JO,KF,I5,$fT,xfX,PF,OiD,TcT,qe,HiH,SK,pF,nF,AO,DO,jK,fF,tO,Fg,up,Ne,dh,yo,a5,eb0,RbD,ZO,Qo,CF,biQ,Me,mfX,gh,Gh,rqH,$F,xF,OQ,H5,oqy,Th,Vo,EQ,eK,LnI,B5,zb0,vqv,Yoy,rh,mZ,sKT,cqD,PTD,o5,WuH,wh,XhX,ic0,LF,JIA,kF,KuQ,zh,Iac,qUD,SUy,peQ,laX,v5,AIQ,nMH, YF,P5,DCL,Xg,jCL,WT,faT,hFQ,JV,t0X,FuQ,aaD,uDD,KP,NRy,I4,yI0,pP,ln,Zc0,UCv,QCI,CIH,weQ,AV,Dq,jJ,M0y,gMD,G8L,$CT,xCD,OcA,TRv,Hcv,V0Q,EMQ,hV,tV,eFQ,RFQ,Fa,a4,bcX,un,Nl,yX,BRI,UA,Zq,QX,mCI,CP,rIy,ws,oML,Ml,Luy,k8I,gs,zFT,vMX,YUQ,GS,$$,x$,OA,TS,sCL,cIQ,HT,VX,EA,PIy,eJ,R4,bn,BT,mE,XeQ,W5y,rs,o4,i2L,LP,k$,zS,vT,shH,JuD,K5Q,Y$,IBI,qrH,SrX,sA,cT,PT,Xa,WA,io,JP,K_,I9,qB,S5,pNv,lB0,f_,hP,n4v,tP,GU,a9,OK,t9L,dMv,F5T,yuT,Z2H,QqQ,UMH,CcL,wNc,M9A,L_,xMQ,H20,THy,E4A,eRH,RR0,Yt,sK,BHL,mMT,kOI,cA,zRc,ruI,PA,XF,Wz, Jl,Yr0,Pc0,sqQ,igv,lMQ,p_0,JH0,nsA,I8,IMc,K2Q,jfH,tcT,hfy,N7X,F2H,qn,Sd,Qfy,n8,CZL,Ogc,xNv,$NQ,G6c,Mcy,Vcy,HgH,gsX,B7A,bgI,mN0,hl,L2Q,rHT,osT,w_Q,k6H,zfT,Al,jd,efT,EsH,Rfy,vsQ,Dg,T7A,sfc,PZL,W$Q,JUQ,qpy,SpQ,lST,nny,Dmy,AUc,F$D,fSy,jJH,aSQ,dmL,yUA,UmD,ZYy,C8,zU,wnc,QJH,Gp,xmc,Of,Tjy,HYD,OYQ,Tp,V8X,Hz,V1,uQ,Ef,$MA,ed,R8,bf,Bz,Enc,e4H,m4,R4I,bY0,BjQ,rN,o8,L8,k2,zp,vz,Y2,sf,cz,mmQ,rUD,Pz,on0,Xp,c5,W1,i6,kn0,L$c,Jx,z4H,vnQ,YpH,Ka,Ig,sJL,qq,cUA,PCc,V9T,$my,Xny,Sm,NJ,Wj,tl,WmX,iQc,l6,ZgQ,p8,JAH,wN,Mn,a8, Fp,K8,Nn,K$Q,pnD,uf,dNL,usX,Kmy,AHX,quQ,na,M8H,vA,qvy,IhX,v4D,ISc,SvH,Njv,Zg,yH0,UNL,fMy,iYH,X_X,W2H,cuD,L5X,o4X,b2T,YuL,SuD,h4Q,aMQ,u7v,y1,Uf,dN,t8L,cHQ,lh0,ppX,Ax,DI,jm,fa,hx,Fy,Nq,dZ,yz,Ul,Qz,Ca,nw0,tx,ZI,wZ,Mq,AAX,gZ,DTc,jAX,$R,fhH,h5Q,xR,Ol,TJ,H1,Vz,El,em,Rg,uV0,B1,NJT,b6,dTD,FmX,ahc,yAy,mx,rZ,UTH,ZQv,og,QAQ,lH,wpy,CmI,gwQ,$TA,xT0,G0Q,HQH,VXc,e5y,sl,c1,R5Q,bQI,P1,Xy,BJv,mTy,rAA,owQ,iS,LmQ,Kt,I_,z5c,vwQ,cAQ,XpL,WMH,PmQ,pt,nt,lS,i9D,JND,qg,KMH,IjT,q8y,S8I,Sw,ANy,DJH,j30,n9H,ljL,pjH,fjL,hzQ,Yvv, tUL,sAy,FMH,ajQ,yNQ,uZA,NFQ,dJQ,Q3y,UJI,Z9X,CQy,wjQ,DT,GXQ,MUI,$JT,g9T,xJA,O9Q,TF0,H9y,VUX,E9A,ezH,RzH,b9c,BFv,mJA,rND,jw,LMH,kXH,zzT,o9Q,v9c,Y8c,PQ0,hd,a_,Ng,XjD,dE,y_,Uq,KvD,qSH,IEQ,pWQ,FvD,nmL,$A,Q_,SSL,JyI,iBX,Wv0,GV,Ct,gE,V_,Eq,NGH,ew,R_,HU,ZBQ,ddX,yyD,QsX,bS,BU,wWQ,rE,o_,Lt,kA,zV,vU,YA,Mpy,gmc,sq,cU,XQ,$dc,xdL,PU,WQ,HBH,Vpy,ie,EmD,It,eyQ,q$,pm,RyT,SZ,le,bBD,At,mdH,ryy,jZ,fm,ue,LvQ,tt,N$,yp,kcL,Zi,at,dA,zyy,Qp,vmT,Cm,YSA,ht,F9,omQ,UX,wA,ssy,cyH,P1D,M$,XWQ,gA,Gw,$l,xl,WjH,Tw,OX,HQ,Vp,iDX,JMc, EX,eZ,Rt,be,BQ,KjI,mN,rA,I0Q,SEH,ot,Lm,kl,l0L,pFT,zw,nXy,AMD,DyT,vQ,jlv,f0Q,hPQ,tHL,FjQ,Yl,sX,cQ,PQ,a0H,urQ,WC,NQT,iz,JR,dyI,yMX,Ks,UyA,ZDQ,MHH,gXQ,QlH,CrA,wFH,qD,SO,ps,lz,GLv,$yX,ns,xyy,TQQ,ODD,fs,jO,VHD,EXL,ePI,RPT,hR,bDy,FA,aU,BQH,rMy,oXL,ND,Ze,vXQ,hyT,wE,slc,cMy,PrT,XFv,WZQ,ZT,df,wf,MD,KZH,IOH,qQQ,gf,nFX,SQQ,p5H,DeA,j5I,Gs,fOc,AOQ,h9c,$i,xi,OJ,tKQ,FZy,Ts,HC,aOy,VL,ugQ,EJ,QL,BC,Nhy,tpA,lEA,mI,rf,Ls,ki,zs,vC,Yi,oU,PC,yOH,Ww,ZFv,i8,CpQ,w5X,Q50,UeQ,MKQ,gFy,GhI,q8,$eQ,xe0,ThT,Sb,u_v,p5,VK0,e9v,xA, R9v,bFQ,Mg,AyH,jsH,fEX,HFH,n5,BhL,meQ,Ar,rOL,jb,f5,hr,tr,F2,oFH,aP,u8,LZA,khX,N8,d8,yx,Ue,ZL,Qx,vFQ,z9L,C5,YQQ,cOH,w8,Ppy,s5Q,kK,oP,z4,YK,se,K5,X5L,SAy,G0,L5,W8,AVA,j4H,T4,I0,Oe,qY,lL,r8,np,aqc,Ag,D4,uaQ,NsA,dlH,yVv,jo,Uly,ZPQ,fp,Q40,GSH,g$X,CnI,MJI,wTD,hg,$lQ,tg,xlQ,OPc,HPA,VJI,E$Q,eO0,rVH,d9,yA,kSQ,UF,Z4,zOH,s4v,cV0,Pny,XTc,QA,WV0,JPQ,KVQ,EF,j9y,pAv,lZT,hUI,eo,t5I,aZD,FVQ,uFc,bL,r9,NDX,R0,o0,Lp,dBL,UBA,CoT,Y5,WL,qE,lE,RUT,b_y,j7,DP,hS,tS,BDQ,otv,rPL,LVL,ae,FK,kUT,vty,YKQ,cPA,dP,s9y,PoL,XAQ,Uk,ZP, i8Q,v8,NE,wP,$BT,yPQ,H_Q,$h,fK,zUL,DnQ,e7,S7,bE,BL,hNv,tdQ,agc,F4A,pK,rP,oe,LK,NNH,kh,zg,dnX,nK,vL,mBA,sk,SfQ,i3,ylT,M5I,wAI,Z_y,Kl,Z8y,SM,O8Q,xnQ,H80,Vdv,nl,DJ,jM,AY,hY,tY,E2Q,Ff,RNA,aV,BNA,dk,b8A,yf,UY,L4H,ZJ,v2y,YfT,wk,s80,XzL,RV,Bl,ml,Ll,WxL,k0,z5,cl,Pl,Xf,Wv,ia0,i$,J6,qlL,K1,ID,SlQ,p1I,qh,lIA,nRv,AxQ,Dqy,Sh,p1,jgL,hWA,A6,Do,h6,t6,tmQ,Fxy,FT,aD,u$,Nh,aIH,uyI,da,NZT,dqv,yB,UqT,yxL,Za0,U3,C6Q,QgI,w1X,Zo,QB,Mmy,GJI,$qQ,C1,wa,Mh,xqT,TZQ,G1,HaD,xZ,Vmv,ERX,$Z,O3,T1,Hv,BZL,rxc,eWH,mqc,oRv,RW0,baX,LxI, kJI,VB,zWy,YlH,P6X,WDy,X1I,oD,ra,z1,JdA,vv,YZ,s3,ITv,cv,qqH,KDy,Pv,lTQ,XT,WI,nAD,i4,K4,AdQ,Dgy,j_Q,fTv,h6D,Ic,FDA,aTc,SKy,DBI,NE0,uQL,ydA,dgH,Ugc,S3,ZtH,Q_y,l4,MwL,n4,Ai,DN,GVI,OtI,hi,ti,Fq,HtQ,TEc,j3,VwQ,EAy,e6I,btX,ac,YqQ,UC,ZN,JtQ,eh,IiA,qXX,SXH,pQQ,liH,C4,nly,wp,Mr,gp,AtQ,x_,D$0,jtI,OC,Tx,fiD,hey,tZQ,FND,aiQ,HI,$_,u9Q,NAc,Vn,ytL,U$Q,ZmL,EC,QtA,CeQ,wQ0,MZy,glL,GwQ,$$c,x$H,Omc,TAy,e3,VZT,Rc,eey,ElT,bmL,ReL,m$X,rp,HmX,b4,oc,L4,k_,zx,vI,Y_,rtQ,sC,olH,PI,YXQ,PeQ,XQD,WIQ,isH,i_,JRy,ctH,vl0,KIy,Xq,IeH, SJH,cI,WG,kwH,zeD,Je,pCA,leX,stD,LNy,niv,Id,ARQ,qL,St,DDH,pT,hrc,jUQ,feA,l_,tOH,nT,Ae,Dz,jt,FIy,aeL,uAv,fT,dDA,yRy,he,UDc,te,Fz,Zs0,QUH,CzH,wCT,MOI,giv,Tfy,$Dy,sgH,u_,VO0,EiH,xDH,OsT,GsQ,y6,mDL,dL,NL,HsL,oiD,Bfc,bsv,RrT,ery,Zz,LIy,E3,Q6,CT,wL,ksI,ML,zrL,gL,vi0,kZ,YJA,GZ,b$,ms,vRH,Ox,HG,PzX,XCX,V6,et,TZ,xD,Rd,$D,sUX,cRA,b_,WYL,i5L,m1,BAQ,RD,BG,JrH,Ex,KYD,ILI,qeI,Sey,mt,rL,pwy,lLL,nKI,ArA,D8c,qJc,yn,LT,kD,od,fLQ,SqQ,pUQ,zZ,hDy,tbH,FYy,aLX,vG,N8H,YD,d8T,U8H,u2H,Z5y,C8A,QPX,gKv,sx,Xz,x8Q,$8D,VbL,T8L, EKy,eDA,O5v,H5D,G4X,RDQ,WB,b5v,m8v,B8I,iU,d$X,rrH,oKI,LYc,k4c,zDH,J4,vKA,Kk,YeT,I2,qz,sPc,Sz,crL,P8H,pk,XwQ,WAA,ip0,JgH,lU,xgH,nk,qFI,A4,I4X,SFy,p8H,$gy,f4,l4Q,DY0,n5Q,jz,Agy,uvQ,a4Q,a2,N9y,FAH,UYL,uU,Zpv,Q0X,MoQ,g5L,$YQ,w8y,xYA,OpI,T9H,HpT,VoX,eCQ,RCQ,bpQ,E5Q,dY,Dx,mYH,CLI,rgQ,GRy,R2,LAH,B9A,Nz,kRX,zCH,s00,W7Q,cgL,iKQ,X8c,BB,v5I,bU,JS0,YFQ,o2,qk0,pLQ,Skv,lPy,IPc,nhQ,ASD,mz,DED,jeD,fPQ,h7c,aPT,F7I,t7X,Lk,uKT,dEc,ySL,UEH,ZKH,QeI,vB,BI,CEQ,wLQ,ghH,M7v,GgQ,xEH,OKv,$Ev,rY,wwX,HKT,V7X,EhQ,ohA,bKH,BPX, mEH,L7T,z7Q,rRT,kS,R7Q,e7A,kgA,L1,rSL,ad,Bv,PL0,PEv,cSc,XLX,Wlv,IJQ,qYX,NPc,PG,cG,YkX,SYH,sey,plI,lJc,yrL,K7I,vhA,MbQ,cB,PB,AYD,Wr,DwQ,jVy,fJQ,hEX,tML,aJH,ufQ,UwA,NkX,yYy,ZlT,J8,MM0,C30,wlQ,$wQ,xwc,OlQ,Kb,TkH,id,bTH,G5L,QVL,IL,BLH,dwv,mLc,qA,oDA,reX,kZQ,zSc,vDy,LtH,Sk,ceA,sdT,WzA,XGQ,P_T,ikH,J40,pb,Kzy,Ixc,SaQ,pBD,qaQ,lxQ,fxL,A4D,Dzy,j2H,hZ0,tzv,Fz0,uR0,axQ,NYc,dzT,ld,UzD,ZkA,CUc,Q2T,wBD,y4c,MzT,GEc,$zc,OkQ,Hky,xz0,A8,VzX,ESQ,gSH,eZv,TYT,Dl,RZL,bkT,BYI,mzA,r4c,oSL,LzI,zZQ,YaQ,s2H,c4Q,PUT,XBH,jk,WPy, fb,J8Q,KPH,aL,qby,ud,prQ,ll0,nNc,A8Q,jLQ,DAy,JYA,tky,FPH,ilT,NA,yU,flQ,hTX,Zl,QU,uEH,alD,NwQ,dAL,y8H,QLT,UAL,MkQ,Cb,ZbL,gN0,ww,TwI,Gry,gw,Gr,HbX,MA,VkH,$N,RTL,eTL,xAT,Oby,bbH,Bwy,mAX,$Av,r8v,xN,oNI,END,Sby,Ub,krH,Tr,Hr,zTQ,vNv,Ybc,sLA,c8X,PdH,Xry,Wgc,iST,VU,J7I,KgD,qR0,SRv,p9D,IfQ,lfc,nxI,A7D,D6D,j7Q,ffQ,ek,EqL,hqL,tiX,RL,FgA,afv,Br,d60,y7T,mP,ZSA,Q7c,U6y,NCv,rw,bd,uuA,kN,Lb,CtQ,zr,oL,GKv,OSH,HSy,ViA,eqy,MiI,TC0,Rqc,gxv,bSX,BCy,Pr,vr,oxL,LgH,m6H,sb,zqH,vxD,x6H,$6L,kKD,YRH,ExT,r7L,w9Q,XE,W9,it,s70, J7,JbD,X9Q,K8H,W80,PtX,IrA,c70,pPQ,q0A,KS,lrc,AbX,jkL,fry,hv0,arD,pS,uXA,tED,cr,ybH,U9X,ji,o5H,I7,ZGH,QkA,wPy,CVH,MEH,d9v,nS,gzQ,GGD,$9Q,OGD,x9Q,TPQ,lt,TtT,VEc,HGv,evv,EzT,D9H,bGy,RvH,A7,q6,BtI,h7,m9D,rbI,ozQ,L8c,kGL,fS,F8Q,n0D,YN,zvc,vzD,Y0Q,skH,cbH,t7,Fu,XPT,WRD,ieI,PVH,JsQ,a7,SBc,I2H,qBT,ptc,ut,l2Q,nHD,AsQ,N6,DGX,f2Q,haH,tAy,dC,j1T,yr,UR,FRI,a2c,CS,Zf,Qr,uGA,wC,NrL,dGv,ysD,ZeH,UGy,OR,CMD,wtA,Q1H,MAQ,TK,gHv,H9,G7Q,Vr,$Gy,xGQ,VAX,HeQ,RaX,OeI,EHL,ER,TrH,eaQ,be0,BrL,mGH,rsH,R7,oHH,mg,bt,LRc,rC,o7, zaT,vHA,kx,zK,YBI,LS,s10,v9,PMQ,cs0,sR,c9,P9,iOy,XtQ,W3H,Xu,J3T,S_H,IUH,K3Q,q_c,WP,lU0,jRH,fUA,Jb,hlT,iV,nOQ,A3Q,aUQ,KG,Ik,udH,Nuy,d0A,y30,U0H,pG,CwQ,wfc,Msy,lV,QRQ,G2y,SE,nG,Ab,ZOy,Dr,$0A,x0y,jE,OOv,Tuy,HO0,fG,Vsy,tb,EOL,elQ,RlT,bOy,BuQ,m0Q,r3H,k2H,oOD,zl0,vOc,c3L,XfX,WBQ,PwD,J1H,KBQ,IVH,CG,Sy0,pVQ,fVQ,gt,FBQ,NKD,ucy,aVQ,DSI,jpT,lVH,n3c,hcA,GG,$z,y1L,x0,mnL,USL,O0,HP,QpQ,ZyX,tyc,wVH,MyD,g3Q,Vq,GPQ,rt,xSQ,OyH,TKH,VyQ,HyQ,E3v,ok,LG,ecQ,BKy,mSI,vP,byH,r10,o3A,RcT,cP,LBQ,kP0,s0,zcQ,v3T,YyI,spQ,PAQ,c1y, i7y,JCL,XVy,ImI,qzL,WqD,Wt,iM,SzQ,lmQ,Js,pJA,nyH,D2H,ACQ,jmL,Ke,fmD,hGH,tjQ,FqQ,am0,u4A,NSQ,yCL,d2L,U2I,Z7Q,QmQ,CvD,wJD,gyy,qG,I1,SA,Gyv,$2T,MjH,Vjv,Eyc,eGD,BSy,b7I,RGQ,m2I,rCX,pe,lM,oyL,Lqy,kyQ,zGH,YzI,smD,As,cCX,ne,jA,vyQ,PvQ,XJT,WCy,ify,J2H,hs,KCy,IcT,pEy,ts,lc0,S2A,FG,a1,uM,DuL,nCH,A20,fcv,jSH,hYH,tDQ,acy,duD,FCI,ukL,dr,y2A,ZfH,QSD,wEQ,MDQ,ys,UB,gCT,UuL,xuI,$uL,GkI,Z2,Qs,TBD,Ofv,Ce,wr,MG,HfD,gr,VDQ,ECD,eYI,G7,RYH,$H,bfD,xH,OB,T7,BBv,Ht,muy,Vs,EB,kkH,zYT,r2D,vCX,sSH,c2Q,POv,Y2X,WUH,XEA,iVc,I7c, bM,S7Q,q7A,J$Q,KUy,puQ,l70,Bt,mR,nUH,A$I,DPy,jTX,f7D,h$X,FUQ,a7v,CJT,dPD,y$Q,ujD,MaH,vt,sB,OVD,T6y,XG,Wf,HVD,gU0,z7,KO,J3,ct,EUX,e$D,IR,bVI,mPc,B6L,q0,Pt,kH,R$y,iw,GoQ,VaD,oUQ,rr,Ss,LU0,ko0,YH,$P0,pO,lw,z$X,nO,A3,DU,vUy,Y7I,c$v,PJQ,sTA,js,XuQ,fO,h3,WKH,iMD,J_c,KKv,IYT,qPI,pyv,SPQ,Fd,t3,lYL,A_0,neX,aR,uw,DxX,fYL,hK0,N0,jrc,tvT,FKy,aYD,u5v,Nec,dxI,y_0,ym,U_,ZMQ,UxQ,QrL,ZU,Qm,wyL,CPH,MvX,GuH,geL,$xL,wu,xxQ,OMQ,gu,TeA,G2,HMv,Vvv,EeT,eKQ,RKH,BeX,mxQ,r_Q,bM0,oev,LKQ,kuD,zKA,veI,YPQ,src,c_H,Hf,PPy,XyQ,WFX, KF0,pc0,qgH,JpQ,es,IHT,iND,Sgc,RR,nBy,lHL,bw,ApQ,DXc,juX,nS0,oR,Pfc,m3,LO,ru,z2,fHA,hmX,NWL,dXQ,ypA,vf,UXH,ZNQ,QuQ,wcy,CND,MqQ,gB0,GDA,EBy,Xd,VqQ,WV,J1,Ky,RmQ,emX,$Xy,Ip,bNQ,BWQ,rpv,qS,oB0,LFI,kDI,iA,vBc,zm0,Sy,py,TWc,cf,YgQ,suy,cpv,PNQ,xXy,ONQ,Pf,XcQ,WOQ,ihy,Jky,SIH,pkL,qIH,l5Q,DpA,f5D,jQA,nWc,KOH,hID,tPQ,FOv,umv,a50,AkQ,I5c,dpQ,QQT,ny,Cgv,wkv,UpH,DV,MPH,gWv,NVy,GfQ,Zhv,$pD,jy,A1,xpH,TVL,Oh0,lA,VPQ,fy,NtQ,EWH,bhy,RIQ,mpQ,rkQ,BVQ,t1,h1,LOQ,kfH,zII,vWy,KLH,XkA,WL0,ckQ,SMX,sQQ,uA,no0,p$Q,AfX,DKQ,ap, dK,yu,tLD,hHX,fDH,ZV,JfA,MS,aDQ,wK,Uy,Nz0,dKA,yfv,qMQ,$3,Oy,UKD,iEy,FLQ,Qu,ZEy,NS,Qzy,CkD,w$A,Vu,Ey,u3D,MLA,goL,ey,Rp,GbT,Cy,lDD,$Kc,xKy,OE0,x3,Tz0,gK,HEQ,GP,Nw,VLQ,eHL,bA,BV,RHT,bEy,BzT,HV,TP,mKQ,eIv,rfD,ooD,LLc,kbv,zHT,mB,rK,szX,X$c,i6L,YMD,n6L,AGL,Dcy,jjD,fAv,h1D,tFD,aAH,FdH,op,Ly,k3,u8A,N$H,dcv,sQ,yGy,zP,UcT,vV,Z6Q,Y3,sy,QjH,gG,Cbv,cV,gnH,XV,wxH,$2,CCQ,g4Q,MFD,lf,g6Q,GnH,GHv,R5,bp,$cD,pa,xcA,O6D,x2,O2v,T$A,H6v,PV,E6T,e1y,Xc,iv,JC,R1H,mc0,rGc,K7,o6H,b6H,kH0,B$D,LdD,z1v,v6X,Ymy,sjX,Im,PbQ,Z$T,C9, ql,Xxv,WpD,nP,cGQ,O8,iAH,JvH,KpT,q2,UQ,SJ,qnT,SnQ,Sj,p7,pK0,lv,gN,ldA,WJ,nYy,AvQ,Da0,keD,n7,AC,jn0,Dm,jj,fdA,f7,hgX,hC,tC,tYT,FpL,dCy,F4,ady,uMH,dav,N2X,am,uv,yvX,N2,UaL,ZAL,QnL,CqL,wKQ,MYQ,GYy,y2,gYH,$a0,xaT,OAQ,T20,egy,HAv,VYD,EYy,bAy,maQ,rvL,oYQ,B2Q,Uz,LpQ,kYQ,zgc,vYQ,YnQ,Q2,sny,C7,wS,M2,cvL,PqL,WXe,ivp,JT0,KXR,qHp,Iy$,SHj,gS,Gy,ncG,pHv,lyr,$y,ATR,DIp,Oz,Ty,jyT,HJ,fyl,V2,hQ0,Ez,ej,tQW,Rm,bv,FXr,ayR,BJ,mq,uLr,rS,N0o,dI0,zy,vJ,yTr,UIR,Zve,wHo,CDv,Yy,MQ$,gcx,GAo,GOA,Qyl,xIR,OvG,Hvp,WXL,AT; iD=function(W){return function(){return WXL[W].apply(this,arguments)}}; g.SQ=function(W,J){return WXL[W]=J}; ivy=function(W){var J=0;return function(){return J=this.length))return this[W]}; kc=function(W){return W?W:Lv}; fyQ=function(W,J,K){W instanceof String&&(W=String(W));for(var I=W.length-1;I>=0;I--){var q=W[I];if(J.call(K,q,I,W))return{BV:I,gA:q}}return{BV:-1,gA:void 0}}; zA=function(W){return W?W:function(J,K){return fyQ(this,J,K).BV}}; g.Yc=function(W,J,K){W=W.split(".");K=K||g.vH;for(var I;W.length&&(I=W.shift());)W.length||J===void 0?K[I]&&K[I]!==Object.prototype[I]?K=K[I]:K=K[I]={}:K[I]=J}; PH=function(W,J){var K=g.sH("CLOSURE_FLAGS");W=K&&K[W];return W!=null?W:J}; g.sH=function(W,J){W=W.split(".");J=J||g.vH;for(var K=0;K2){var I=Array.prototype.slice.call(arguments,2);return function(){var q=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(q,I);return W.apply(J,q)}}return function(){return W.apply(J,arguments)}}; g.Io=function(W,J,K){g.Io=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?tQT:FXc;return g.Io.apply(null,arguments)}; g.Sl=function(W,J){var K=Array.prototype.slice.call(arguments,1);return function(){var I=K.slice();I.push.apply(I,arguments);return W.apply(this,I)}}; g.px=function(){return Date.now()}; l0=function(W){return W}; g.AW=function(W,J){function K(){} K.prototype=J.prototype;W.Kc=J.prototype;W.prototype=new K;W.prototype.constructor=W;W.tC=function(I,q,S){for(var p=Array(arguments.length-2),n=2;n=0;--K)K in I&&J.call(void 0,I[K],K,W)}; g.hW=function(W,J,K){J=fx(W,J,K);return J<0?null:typeof W==="string"?W.charAt(J):W[J]}; fx=function(W,J,K){for(var I=W.length,q=typeof W==="string"?W.split(""):W,S=0;S=0;I--)if(I in q&&J.call(K,q[I],I,W))return I;return-1}; g.ao=function(W,J){return QyQ(W,J)>=0}; CD0=function(W){if(!Array.isArray(W))for(var J=W.length-1;J>=0;J--)delete W[J];W.length=0}; g.Nj=function(W,J){J=QyQ(W,J);var K;(K=J>=0)&&g.u0(W,J);return K}; g.u0=function(W,J){return Array.prototype.splice.call(W,J,1).length==1}; g.dv=function(W,J){J=fx(W,J);J>=0&&g.u0(W,J)}; wHy=function(W,J){var K=0;ZvL(W,function(I,q){J.call(void 0,I,q,W)&&g.u0(W,q)&&K++})}; g.yG=function(W){return Array.prototype.concat.apply([],arguments)}; g.U$=function(W){var J=W.length;if(J>0){for(var K=Array(J),I=0;I>>1),A=void 0;K?A=J.call(void 0,W[n],n,W):A=J(I,W[n]);A>0?q=n+1:(S=n,p=!A)}return p?q:-q-1}; g.TT=function(W,J){W.sort(J||gv)}; GAX=function(W,J){var K=gv;g.TT(W,function(I,q){return K(J(I),J(q))})}; g.HR=function(W,J,K){if(!g.WR(W)||!g.WR(J)||W.length!=J.length)return!1;var I=W.length;K=K||$IQ;for(var q=0;qJ?1:W0&&(J[q]=I)},W); return J}; B0Q=function(W){W=fU(W);var J=[];g.BR(W,function(K,I){I in Object.prototype||typeof K!="undefined"&&J.push([I,":",K].join(""))}); return J}; rTQ=function(W){AX(W,"od",mIA);AX(W,"opac",hX).W=!0;AX(W,"sbeos",hX).W=!0;AX(W,"prf",hX).W=!0;AX(W,"mwt",hX).W=!0;AX(W,"iogeo",hX)}; tX=function(W,J){return W.lastIndexOf(J,0)==0}; ocQ=function(W,J){var K=W.length-J.length;return K>=0&&W.indexOf(J,K)==K}; g.FC=function(W){return/^[\s\xa0]*$/.test(W)}; g.uh=function(W,J){return W.indexOf(J)!=-1}; Ns=function(W,J){return g.uh(W.toLowerCase(),J.toLowerCase())}; g.Q$=function(W,J){var K=0;W=dX(String(W)).split(".");J=dX(String(J)).split(".");for(var I=Math.max(W.length,J.length),q=0;K==0&&qJ?1:0}; g.CU=function(){var W=g.vH.navigator;return W&&(W=W.userAgent)?W:""}; Gj=function(W){if(!wX&&!Ms||!gX)return!1;for(var J=0;J0:!1}; Ow=function(){return xI()?!1:$I("Opera")}; LX0=function(){return xI()?!1:$I("Trident")||$I("MSIE")}; kA0=function(){return xI()?Gj("Microsoft Edge"):$I("Edg/")}; HX=function(){return $I("Firefox")||$I("FxiOS")}; Ew=function(){return $I("Safari")&&!(V$()||(xI()?0:$I("Coast"))||Ow()||(xI()?0:$I("Edge"))||kA0()||(xI()?Gj("Opera"):$I("OPR"))||HX()||$I("Silk")||$I("Android"))}; V$=function(){return xI()?Gj("Chromium"):($I("Chrome")||$I("CriOS"))&&!(xI()?0:$I("Edge"))||$I("Silk")}; zQX=function(){return $I("Android")&&!(V$()||HX()||Ow()||$I("Silk"))}; vcX=function(W){var J={};W.forEach(function(K){J[K[0]]=K[1]}); return function(K){return J[K.find(function(I){return I in J})]||""}}; YHI=function(W){var J=g.CU();if(W==="Internet Explorer"){if(LX0())if((W=/rv: *([\d\.]*)/.exec(J))&&W[1])J=W[1];else{W="";var K=/MSIE +([\d\.]+)/.exec(J);if(K&&K[1])if(J=/Trident\/(\d.\d)/.exec(J),K[1]=="7.0")if(J&&J[1])switch(J[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=K[1];J=W}else J="";return J}var I=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");K=[];for(var q;q=I.exec(J);)K.push([q[1],q[2],q[3]||void 0]); J=vcX(K);switch(W){case "Opera":if(Ow())return J(["Version","Opera"]);if(xI()?Gj("Opera"):$I("OPR"))return J(["OPR"]);break;case "Microsoft Edge":if(xI()?0:$I("Edge"))return J(["Edge"]);if(kA0())return J(["Edg"]);break;case "Chromium":if(V$())return J(["Chrome","CriOS","HeadlessChrome"])}return W==="Firefox"&&HX()||W==="Safari"&&Ew()||W==="Android Browser"&&zQX()||W==="Silk"&&$I("Silk")?(J=K[2])&&J[1]||"":""}; sy0=function(W){if(xI()&&W!=="Silk"){var J=gX.brands.find(function(K){return K.brand===W}); if(!J||!J.version)return NaN;J=J.version.split(".")}else{J=YHI(W);if(J==="")return NaN;J=J.split(".")}return J.length===0?NaN:Number(J[0])}; PDI=function(){var W=null;if(!cTc)return W;try{var J=function(K){return K}; W=cTc.createPolicy("goog#html",{createHTML:J,createScript:J,createScriptURL:J})}catch(K){}return W}; RG=function(){eS===void 0&&(eS=PDI());return eS}; bh=function(W){this.W=W}; BX=function(W){var J=RG();W=J?J.createScriptURL(W):W;return new bh(W)}; mG=function(W){if(W instanceof bh)return W.W;throw Error("");}; rX=function(W){this.W=W}; g.oG=function(W){if(W instanceof rX)return W.W;throw Error("");}; LU=function(W){this.Nk=W}; kI=function(W){return new LU(function(J){return J.substr(0,W.length+1).toLowerCase()===W+":"})}; g.vX=function(W,J){J=J===void 0?XHH:J;a:if(J=J===void 0?XHH:J,!(W instanceof rX)){for(var K=0;K4);q++)J[fw(W[q])]||(K+="\nInner error "+I++ +": ",W[q].stack&&W[q].stack.indexOf(W[q].toString())==0||(K+=typeof W[q]==="string"?W[q]:W[q].message+"\n"),K+=DF(W[q],J));q")!=-1&&(W=W.replace(Djc,">")),W.indexOf('"')!=-1&&(W=W.replace(joT,""")),W.indexOf("'")!=-1&&(W=W.replace(fpT,"'")),W.indexOf("\x00")!=-1&&(W=W.replace(hLH,"�")));return W}; g.N3=function(W){return W==null?"":String(W)}; dn=function(W){for(var J=0,K=0;K>>0;return J}; Uh=function(W){var J=Number(W);return J==0&&g.FC(W)?NaN:J}; tly=function(W){return String(W).replace(/\-([a-z])/g,function(J,K){return K.toUpperCase()})}; FoD=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; apD=function(W){return W.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(J,K,I){return K+I.toUpperCase()})}; uey=function(W){var J=1;W=W.split(":");for(var K=[];J>0&&W.length;)K.push(W.shift()),J--;W.length&&K.push(W.join(":"));return K}; ZF=function(){return wX||Ms?!!gX&&!!gX.platform:!1}; Nvy=function(){return ZF()?gX.platform==="Android":$I("Android")}; Qt=function(){return $I("iPhone")&&!$I("iPod")&&!$I("iPad")}; Cw=function(){return Qt()||$I("iPad")||$I("iPod")}; wn=function(){return ZF()?gX.platform==="macOS":$I("Macintosh")}; dj0=function(){return ZF()?gX.platform==="Windows":$I("Windows")}; M3=function(W){M3[" "](W);return W}; yWQ=function(W,J){try{return M3(W[J]),!0}catch(K){}return!1}; ZxQ=function(W,J){var K=UjH;return Object.prototype.hasOwnProperty.call(K,W)?K[W]:K[W]=J(W)}; g.gn=function(W){return ZxQ(W,function(){return g.Q$(QoQ,W)>=0})}; g.Gm=function(W,J,K){return Math.min(Math.max(W,J),K)}; g.xj=function(W,J){W%=J;return W*J<0?W+J:W}; Oh=function(W,J,K){return W+K*(J-W)}; g.Tm=function(W,J){this.x=W!==void 0?W:0;this.y=J!==void 0?J:0}; Ha=function(W,J){return W==J?!0:W&&J?W.x==J.x&&W.y==J.y:!1}; g.Vt=function(W,J){this.width=W;this.height=J}; g.Eh=function(W,J){return W==J?!0:W&&J?W.width==J.width&&W.height==J.height:!1}; e1=function(W){return W.width*W.height}; bW=function(W,J){this.W=W===RX&&J||""}; Ba=function(W){if(W instanceof XC)return W;W=String(W).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return Wa(W)}; wRQ=function(W){return C0D(W)}; C0D=function(W){var J=Ba("");return Wa(W.map(function(K){return iW(Ba(K))}).join(iW(J).toString()))}; xjQ=function(W){var J;if(!MlL.test("div"))throw Error("");if(gry.indexOf("DIV")!==-1)throw Error("");var K="":(W=wRQ(J.map(function(I){return I instanceof XC?I:Ba(String(I))})),K+=">"+W.toString()+""); return Wa(K)}; GTX=function(W){for(var J="",K=Object.keys(W),I=0;I2&&bxX(q,p,I,2);return p}; bxX=function(W,J,K,I){function q(n){n&&J.appendChild(typeof n==="string"?W.createTextNode(n):n)} for(;I0)q(S);else{a:{if(S&&typeof S.length=="number"){if(g.i0(S)){var p=typeof S.item=="function"||typeof S.item=="string";break a}if(typeof S==="function"){p=typeof S.item=="function";break a}}p=!1}g.el(p?g.U$(S):S,q)}}}; g.i5=function(W){return X1(document,W)}; X1=function(W,J){J=String(J);W.contentType==="application/xhtml+xml"&&(J=J.toLowerCase());return W.createElement(J)}; g.JL=function(W){return document.createTextNode(String(W))}; g.Ko=function(W,J){W.appendChild(J)}; g.Ii=function(W){for(var J;J=W.firstChild;)W.removeChild(J)}; qO=function(W,J,K){W.insertBefore(J,W.childNodes[K]||null)}; g.S4=function(W){return W&&W.parentNode?W.parentNode.removeChild(W):null}; g.po=function(W,J){if(!W||!J)return!1;if(W.contains&&J.nodeType==1)return W==J||W.contains(J);if(typeof W.compareDocumentPosition!="undefined")return W==J||!!(W.compareDocumentPosition(J)&16);for(;J&&W!=J;)J=J.parentNode;return J==W}; rn=function(W){return W.nodeType==9?W:W.ownerDocument||W.document}; g.l5=function(W,J){if("textContent"in W)W.textContent=J;else if(W.nodeType==3)W.data=String(J);else if(W.firstChild&&W.firstChild.nodeType==3){for(;W.lastChild!=W.firstChild;)W.removeChild(W.lastChild);W.firstChild.data=String(J)}else g.Ii(W),W.appendChild(rn(W).createTextNode(String(J)))}; mjv=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")||Bvv(W)):W.hasAttribute("tabindex")&&Bvv(W)}; Bvv=function(W){W=W.tabIndex;return typeof W==="number"&&W>=0&&W<32768}; AL=function(W,J,K){if(!J&&!K)return null;var I=J?String(J).toUpperCase():null;return no(W,function(q){return(!I||q.nodeName==I)&&(!K||typeof q.className==="string"&&g.ao(q.className.split(/\s+/),K))},!0)}; no=function(W,J,K){W&&!K&&(W=W.parentNode);for(K=0;W;){if(J(W))return W;W=W.parentNode;K++}return null}; m6=function(W){this.W=W||g.vH.document||document}; rWX=function(){this.W=this.MQ=null}; DK=function(){}; fo=function(){if(!j4())throw Error();}; j4=function(){return!(!hL||!hL.performance)}; tL=function(W){return function(){return W}}; g.Fw=function(){}; or0=function(W){var J=J||0;return function(){return W.apply(this,Array.prototype.slice.call(arguments,0,J))}}; ai=function(W){var J=!1,K;return function(){J||(K=W(),J=!0);return K}}; u5=function(W){var J=W;return function(){if(J){var K=J;J=null;K()}}}; NO=function(W,J,K){var I=0;return function(q){g.vH.clearTimeout(I);var S=arguments;I=g.vH.setTimeout(function(){W.apply(K,S)},J)}}; dM=function(W){return W?W.passive&&LoX()?W:W.capture||!1:!1}; yw=function(W,J,K,I){return typeof W.addEventListener==="function"?(W.addEventListener(J,K,dM(I)),!0):!1}; Ut=function(W){if(W.prerendering)return 3;var J;return(J={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[W.visibilityState||W.webkitVisibilityState||W.mozVisibilityState||""])!=null?J:0}; kTA=function(){}; zLH=function(W){return W}; ZK=function(W){W.Ozs=!0;return W}; vrX=function(W){return g.ca?"webkit"+W:W.toLowerCase()}; Y$y=function(){return(wX||Ms)&&gX?gX.mobile:!Qw()&&($I("iPod")||$I("iPhone")||$I("Android")||$I("IEMobile"))}; Qw=function(){return(wX||Ms)&&gX?!gX.mobile&&($I("iPad")||$I("Android")||$I("Silk")):$I("iPad")||$I("Android")&&!$I("Mobile")||$I("Silk")}; Co=function(W,J,K,I,q,S,p){var n="";W&&(n+=W+":");K&&(n+="//",J&&(n+=J+"@"),n+=K,I&&(n+=":"+I));q&&(n+=q);S&&(n+="?"+S);p&&(n+="#"+p);return n}; g.MO=function(W){return W.match(soA)}; cWQ=function(W){return W?decodeURI(W):W}; g.gM=function(W){return cWQ(g.MO(W)[3]||null)}; GC=function(W){return cWQ(g.MO(W)[5]||null)}; g.P0v=function(W){W=g.MO(W);return Co(W[1],W[2],W[3],W[4])}; $p=function(W){W=g.MO(W);return Co(null,null,null,null,W[5],W[6],W[7])}; XRX=function(W){var J=W.indexOf("#");return J<0?W:W.slice(0,J)}; xp=function(W,J){if(W){W=W.split("&");for(var K=0;K=0){var S=W[K].substring(0,I);q=W[K].substring(I+1)}else S=W[K];J(S,q?F1(q):"")}}}; Ot=function(W,J){if(!J)return W;var K=W.indexOf("#");K<0&&(K=W.length);var I=W.indexOf("?");if(I<0||I>K){I=K;var q=""}else q=W.substring(I+1,K);W=[W.slice(0,I),q,W.slice(K)];K=W[1];W[1]=J?K?K+"&"+J:J:K;return W[0]+(W[1]?"?"+W[1]:"")+W[2]}; TC=function(W,J,K){if(Array.isArray(J))for(var I=0;I=0&&JK)q=K;I+=J.length+1;return F1(W.slice(I,q!==-1?q:0))}; Ri=function(W,J){for(var K=W.search(KGv),I=0,q,S=[];(q=JXX(W,I,J,K))>=0;)S.push(W.substring(I,q)),I=Math.min(W.indexOf("&",q)+1||K,K);S.push(W.slice(I));return S.join("").replace(Iny,"$1")}; qwv=function(W,J,K){return Et(Ri(W,J),J,K)}; b5=function(W){try{return!!W&&W.location.href!=null&&yWQ(W,"foo")}catch(J){return!1}}; Bo=function(W,J){if(W)for(var K in W)Object.prototype.hasOwnProperty.call(W,K)&&J(W[K],K,W)}; pX0=function(){var W=[];Bo(SwL,function(J){W.push(J)}); return W}; lnv=function(W){var J,K;return(K=(J=/https?:\/\/[^\/]+/.exec(W))==null?void 0:J[0])!=null?K:""}; DsQ=function(){var W=nIQ("IFRAME"),J={};g.el(AXD(),function(K){W.sandbox&&W.sandbox.supports&&W.sandbox.supports(K)&&(J[K]=!0)}); return J}; nIQ=function(W,J){J=J===void 0?document:J;return J.createElement(String(W).toLowerCase())}; jGH=function(W){for(var J=W;W&&W!=W.parent;)W=W.parent,b5(W)&&(J=W);return J}; FGD=function(W){W=W||mS();for(var J=new fnQ(g.vH.location.href,!1),K=null,I=W.length-1,q=I;q>=0;--q){var S=W[q];!K&&hsH.test(S.url)&&(K=S);if(S.url&&!S.W){J=S;break}}q=null;S=W.length&&W[I].url;J.depth!==0&&S&&(q=W[I]);return new tSc(J,q,K)}; mS=function(){var W=g.vH,J=[],K=null;do{var I=W;if(b5(I)){var q=I.location.href;K=I.document&&I.document.referrer||null}else q=K,K=null;J.push(new fnQ(q||""));try{W=I.parent}catch(S){W=null}}while(W&&I!==W);I=0;for(W=J.length-1;I<=W;++I)J[I].depth=W-I;I=g.vH;if(I.location&&I.location.ancestorOrigins&&I.location.ancestorOrigins.length===J.length-1)for(W=1;WJ&&(J=K.length);return 3997-J-W.G.length-1}; kp=function(W,J){this.W=W;this.depth=J}; dsQ=function(){function W(n,A){return n==null?A:n} var J=mS(),K=Math.max(J.length-1,0),I=FGD(J);J=I.W;var q=I.K,S=I.G,p=[];S&&p.push(new kp([S.url,S.W?2:0],W(S.depth,1)));q&&q!=S&&p.push(new kp([q.url,2],0));J.url&&J!=S&&p.push(new kp([J.url,0],W(J.depth,K)));I=g.zC(p,function(n,A){return p.slice(0,p.length-A)}); !J.url||(S||q)&&J!=S||(q=lnv(J.url))&&I.push([new kp([q,1],W(J.depth,K))]);I.push([]);return g.zC(I,function(n){return NXL(K,n)})}; NXL=function(W,J){g.vo(J,function(q){return q.depth>=0}); var K=Yp(J,function(q,S){return Math.max(q,S.depth)},-1),I=xIH(K+2); I[0]=W;g.el(J,function(q){return I[q.depth+1]=q.W}); return I}; yXQ=function(){var W=W===void 0?dsQ():W;return W.map(function(J){return Lo(J)})}; UsX=function(W){var J=!1;J=J===void 0?!1:J;hL.google_image_requests||(hL.google_image_requests=[]);var K=nIQ("IMG",hL.document);J&&(K.attributionSrc="");K.src=W;hL.google_image_requests.push(K)}; co=function(W){var J="cP";if(W.cP&&W.hasOwnProperty(J))return W.cP;var K=new W;W.cP=K;W.hasOwnProperty(J);return K}; Po=function(){this.K=new kTA;this.W=j4()?new fo:new DK}; ZU0=function(){Xw();var W=hL.document;return!!(W&&W.body&&W.body.getBoundingClientRect&&typeof hL.setInterval==="function"&&typeof hL.clearInterval==="function"&&typeof hL.setTimeout==="function"&&typeof hL.clearTimeout==="function")}; QGH=function(){Xw();return yXQ()}; Chy=function(){}; Xw=function(){var W=co(Chy);if(!W.W){if(!hL)throw Error("Context has not been set and window is undefined.");W.W=co(Po)}return W.W}; WD=function(W){return(W&192)!==128}; i7=function(){throw Error("Invalid UTF8");}; wXQ=function(W,J){J=String.fromCharCode.apply(null,J);return W==null?J:W+J}; $sy=function(W){var J=!1;J=J===void 0?!1:J;if(MSQ){if(J&&(gIc?!W.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(W)))throw Error("Found an unpaired surrogate");W=(Gjy||(Gjy=new TextEncoder)).encode(W)}else{for(var K=0,I=new Uint8Array(3*W.length),q=0;q>6|192;else{if(S>=55296&&S<=57343){if(S<=56319&&q=56320&&p<=57343){S=(S-55296)*1024+ p-56320+65536;I[K++]=S>>18|240;I[K++]=S>>12&63|128;I[K++]=S>>6&63|128;I[K++]=S&63|128;continue}else q--}if(J)throw Error("Found an unpaired surrogate");S=65533}I[K++]=S>>12|224;I[K++]=S>>6&63|128}I[K++]=S&63|128}}W=K===I.length?I:I.subarray(0,K)}return W}; Jn=function(W){g.vH.setTimeout(function(){throw W;},0)}; xsL=function(W){return Array.prototype.map.call(W,function(J){J=J.toString(16);return J.length>1?J:"0"+J}).join("")}; OUL=function(W){for(var J=[],K=0;K>6|192:((q&64512)==55296&&I+1>18|240,J[K++]=q>>12&63|128):J[K++]=q>>12|224,J[K++]=q>>6&63|128),J[K++]=q&63|128)}return J}; g.IB=function(W,J){J===void 0&&(J=0);TXQ();J=HUT[J];for(var K=Array(Math.floor(W.length/3)),I=J[64]||"",q=0,S=0;q>2];p=J[(p&3)<<4|n>>4];n=J[(n&15)<<2|A>>6];A=J[A&63];K[S++]=""+D+p+n+A}D=0;A=I;switch(W.length-q){case 2:D=W[q+1],A=J[(D&15)<<2]||I;case 1:W=W[q],K[S]=""+J[W>>2]+J[(W&3)<<4|D>>4]+A+I}return K.join("")}; g.qQ=function(W,J){if(VSL&&!J)W=g.vH.btoa(W);else{for(var K=[],I=0,q=0;q255&&(K[I++]=S&255,S>>=8);K[I++]=S}W=g.IB(K,J)}return W}; esQ=function(W){var J=[];EIH(W,function(K){J.push(K)}); return J}; SB=function(W){var J=W.length,K=J*3/4;K%3?K=Math.floor(K):g.uh("=.",W[J-1])&&(K=g.uh("=.",W[J-2])?K-2:K-1);var I=new Uint8Array(K),q=0;EIH(W,function(S){I[q++]=S}); return q!==K?I.subarray(0,q):I}; EIH=function(W,J){function K(A){for(;I>4);p!=64&&(J(S<<4&240|p>>2),n!=64&&J(p<<6&192|n))}}; TXQ=function(){if(!pr){pr={};for(var W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),J=["+/=","+/","-_=","-_.","-_"],K=0;K<5;K++){var I=W.concat(J[K].split(""));HUT[K]=I;for(var q=0;q=J||(I[W]=K+1,W=Error(),S$L(W,"incident"),Jn(W))}}; hn=function(W,J,K){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(K===void 0?0:K)&&Symbol.for&&W?Symbol.for(W):W!=null?Symbol(W):Symbol():J}; aB=function(W,J){tn||FP in W||YwI(W,sGT);W[FP]|=J}; u7=function(W,J){tn||FP in W||YwI(W,sGT);W[FP]=J}; NQ=function(W){W[FP]&=-3}; yW=function(W,J){return J===void 0?W.W!==dm&&!!(2&(W.KE[FP]|0)):!!(2&J)&&W.W!==dm}; cXy=function(W,J){if(W!=null)if(typeof W==="string")W=W?new l7(W,nr):An();else if(W.constructor!==l7)if(kjQ&&W!=null&&W instanceof Uint8Array)W=W.length?new l7(new Uint8Array(W),nr):An();else{if(!J)throw Error();W=void 0}return W}; Uc=function(W,J){if(typeof J!=="number"||J<0||J>=W.length)throw Error();}; PhQ=function(W,J,K){J=J&128?0:-1;var I=W.length,q;if(q=!!I)q=W[I-1],q=q!=null&&typeof q==="object"&&q.constructor===Object;for(var S=I+(q?-1:0),p=0;pJ.length)return!1;if(W.lengthq)return!1;if(I>>0;gm=J;Gi=(W-J)/4294967296>>>0}; Oc=function(W){if(W<0){$G(0-W);var J=g.d(xG(gm,Gi));W=J.next().value;J=J.next().value;gm=W>>>0;Gi=J>>>0}else $G(W)}; HD=function(W,J){var K=J*4294967296+(W>>>0);return Number.isSafeInteger(K)?K:Ti(W,J)}; K6L=function(W,J){var K=J&2147483648;K&&(W=~W+1>>>0,J=~J>>>0,W==0&&(J=J+1>>>0));W=HD(W,J);return typeof W==="number"?K?-W:W:K?"-"+W:W}; Ti=function(W,J){J>>>=0;W>>>=0;if(J<=2097151)var K=""+(4294967296*J+W);else Cr()?K=""+(BigInt(J)<>>24|J<<8)&16777215,J=J>>16&65535,W=(W&16777215)+K*6777216+J*6710656,K+=J*8147497,J*=2,W>=1E7&&(K+=W/1E7>>>0,W%=1E7),K>=1E7&&(J+=K/1E7>>>0,K%=1E7),K=J+IFH(K)+IFH(W));return K}; IFH=function(W){W=String(W);return"0000000".slice(W.length)+W}; qhX=function(){var W=gm,J=Gi;J&2147483648?Cr()?W=""+(BigInt(J|0)<>>0)):(J=g.d(xG(W,J)),W=J.next().value,J=J.next().value,W="-"+Ti(W,J)):W=Ti(W,J);return W}; VW=function(W){if(W.length<16)Oc(Number(W));else if(Cr())W=BigInt(W),gm=Number(W&BigInt(4294967295))>>>0,Gi=Number(W>>BigInt(32)&BigInt(4294967295));else{var J=+(W[0]==="-");Gi=gm=0;for(var K=W.length,I=0+J,q=(K-J)%6+J;q<=K;I=q,q+=6)I=Number(W.slice(I,q)),Gi*=1E6,gm=gm*1E6+I,gm>=4294967296&&(Gi+=Math.trunc(gm/4294967296),Gi>>>=0,gm>>>=0);J&&(J=g.d(xG(gm,Gi)),W=J.next().value,J=J.next().value,gm=W,Gi=J)}}; xG=function(W,J){J=~J;W?W=~W+1:J+=1;return[W,J]}; Ec=function(W){return Array.prototype.slice.call(W)}; eB=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}; ShQ=function(W){return W.displayName||W.name||"unknown type name"}; RB=function(W){if(W!=null&&typeof W!=="boolean")throw Error("Expected boolean but got "+XL(W)+": "+W);return W}; BD=function(W){switch(typeof W){case "bigint":return!0;case "number":return b7(W);case "string":return paQ.test(W);default:return!1}}; lFQ=function(W){if(typeof W!=="number")throw fr("int32");if(!b7(W))throw fr("int32");return W|0}; mh=function(W){return W==null?W:lFQ(W)}; rm=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return b7(W)?W|0:void 0}; oB=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return b7(W)?W>>>0:void 0}; D3y=function(W){var J=0;J=J===void 0?0:J;if(!BD(W))throw fr("int64");var K=typeof W;switch(J){case 512:switch(K){case "string":return Lr(W);case "bigint":return String(kG(64,W));default:return zi(W)}case 1024:switch(K){case "string":return njy(W);case "bigint":return MQ(kG(64,W));default:return AzX(W)}case 0:switch(K){case "string":return Lr(W);case "bigint":return MQ(kG(64,W));default:return vD(W)}default:return PX(J,"Unknown format requested type for int64")}}; YG=function(W){return W==null?W:D3y(W)}; jXy=function(W){if(W[0]==="-")return!1;var J=W.length;return J<20?!0:J===20&&Number(W.substring(0,6))<184467}; fFI=function(W){var J=W.length;return W[0]==="-"?J<20?!0:J===20&&Number(W.substring(0,7))>-922337:J<19?!0:J===19&&Number(W.substring(0,6))<922337}; hnQ=function(W){if(W<0){Oc(W);var J=Ti(gm,Gi);W=Number(J);return sc(W)?W:J}J=String(W);if(jXy(J))return J;Oc(W);return HD(gm,Gi)}; t1Q=function(W){if(fFI(W))return W;VW(W);return qhX()}; vD=function(W){BD(W);W=cD(W);sc(W)||(Oc(W),W=K6L(gm,Gi));return W}; zi=function(W){BD(W);W=cD(W);if(sc(W))W=String(W);else{var J=String(W);fFI(J)?W=J:(Oc(W),W=qhX())}return W}; Lr=function(W){BD(W);var J=cD(Number(W));if(sc(J))return String(J);J=W.indexOf(".");J!==-1&&(W=W.substring(0,J));return t1Q(W)}; njy=function(W){var J=cD(Number(W));if(sc(J))return MQ(J);J=W.indexOf(".");J!==-1&&(W=W.substring(0,J));return Cr()?MQ(kG(64,BigInt(W))):MQ(t1Q(W))}; AzX=function(W){return sc(W)?MQ(vD(W)):MQ(zi(W))}; F6L=function(W){if(W==null)return W;var J=typeof W;if(J==="bigint")return String(kG(64,W));if(BD(W)){if(J==="string")return Lr(W);if(J==="number")return vD(W)}}; u10=function(W){if(W==null)return W;var J=typeof W;if(J==="bigint")return String(aFA(64,W));if(BD(W)){if(J==="string")return BD(W),J=cD(Number(W)),sc(J)&&J>=0?W=String(J):(J=W.indexOf("."),J!==-1&&(W=W.substring(0,J)),jXy(W)||(VW(W),W=Ti(gm,Gi))),W;if(J==="number")return BD(W),W=cD(W),W>=0&&sc(W)?W:hnQ(W)}}; NnT=function(W){if(W==null||typeof W=="string"||W instanceof l7)return W}; d3Q=function(W){if(typeof W!=="string")throw Error();return W}; PD=function(W){if(W!=null&&typeof W!=="string")throw Error();return W}; XP=function(W){return W==null||typeof W==="string"?W:void 0}; Ws=function(W,J){if(!(W instanceof J))throw Error("Expected instanceof "+ShQ(J)+" but got "+(W&&ShQ(W.constructor)));return W}; yzA=function(W,J,K){if(W!=null&&typeof W==="object"&&W[ix]===JK)return W;if(Array.isArray(W)){var I=W[FP]|0;K=I|K&32|K&2;K!==I&&u7(W,K);return new J(W)}}; KH=function(W){return W}; qF=function(W){var J=l0(IM);return J?W[J]:void 0}; Se=function(){}; pH=function(W,J){for(var K in W)!isNaN(K)&&J(W,+K,W[K])}; U3v=function(W){var J=new Se;pH(W,function(K,I,q){J[I]=Ec(q)}); J.W=W.W;return J}; nH=function(W,J,K,I,q){I=I===void 0?!1:I;q=q===void 0?!1:q;var S=[],p=W.length,n=4294967295,A=!1,D=!!(J&64),f=D?J&128?0:-1:void 0;if(!(J&1)){var h=p&&W[p-1];h!=null&&typeof h==="object"&&h.constructor===Object?(p--,n=p):h=void 0;if(D&&!(J&128)&&!q){A=!0;var t;n=((t=lx)!=null?t:KH)(n-f,f,W,h)+f}}t=void 0;for(var F=0;F=n){var y=F-f,U=void 0;((U=t)!=null?U:t={})[y]=a}else S[F]=a}if(h)for(var Q in h)p=h[Q],p!=null&&(p=K(p,I))!=null&&(F=+Q,a=void 0, D&&!Number.isNaN(F)&&(a=F+f)0?void 0:W===0?waX||(waX=[0,void 0]):[-W,void 0];case "string":return[0,W];case "object":return W}}; tK=function(W,J,K){W=gjy(W,J[0],J[1],K?1:2);J!==fH&&K&&aB(W,2048);return W}; FN=function(W,J,K){return gjy(W,J,K,3)}; gjy=function(W,J,K,I){if(W==null){var q=32;K?(W=[K],q|=128):W=[];J&&(q=q&-16760833|(J&1023)<<14)}else{if(!Array.isArray(W))throw Error("narr");q=W[FP]|0;4096&q&&!(2&q)&&GmQ();if(q&256)throw Error("farr");if(q&64)return I!==3||q&4096||u7(W,q|4096),W;if(K&&(q|=128,K!==W[0]))throw Error("mid");a:{K=W;q|=64;var S=K.length;if(S){var p=S-1,n=K[p];if(n!=null&&typeof n==="object"&&n.constructor===Object){J=q&128?0:-1;p-=J;if(p>=1024)throw Error("pvtlmt");for(var A in n)S=+A,S1024)throw Error("spvt");q=q&-16760833|(A&1023)<<14}}}q|=64;I===3&&(q|=4096);u7(W,q);return W}; GmQ=function(){vIA($3D,5)}; x3A=function(W,J){if(typeof W!=="object")return W;if(Array.isArray(W)){var K=W[FP]|0;W.length===0&&K&1?W=void 0:K&2||(!J||8192&K||16&K?W=aM(W,K,J&&!(K&16)):(aB(W,34),K&4&&Object.freeze(W)));return W}if(W[ix]===JK)return J=W.KE,K=J[FP]|0,yW(W,K)?W:aM(J,K);if(W instanceof l7)return W}; aM=function(W,J,K){K!=null||(K=!!(34&J));return nH(W,J,x3A,K,!0)}; ux=function(W){var J=W.KE,K=J[FP]|0;if(!yW(W,K))return W;W=new W.constructor(aM(J,K));NQ(W.KE);return W}; NF=function(W){if(W.W!==dm)return!1;var J=W.KE;J=aM(J,J[FP]|0);NQ(J);W.KE=J;W.W=void 0;return!0}; dU=function(W){if(!NF(W)&&yW(W,W.KE[FP]|0))throw Error();}; U1=function(W,J,K){Object.isExtensible(W);return yN(W.KE,J,K)}; yN=function(W,J,K,I){if(J===-1)return null;var q=J+(K?0:-1),S=W.length-1;if(!(S<1+(K?0:-1))){if(q>=S){var p=W[S];if(p!=null&&typeof p==="object"&&p.constructor===Object){K=p[J];var n=!0}else if(q===S)K=p;else return}else K=W[q];if(I&&K!=null){I=I(K);if(I==null)return I;if(!Object.is(I,K))return n?p[J]=I:W[q]=I,I}return K}}; QN=function(W,J,K,I){dU(W);var q=W.KE;Z8(q,q[FP]|0,J,K,I);return W}; Z8=function(W,J,K,I,q){var S=K+(q?0:-1),p=W.length-1;if(p>=1+(q?0:-1)&&S>=p){var n=W[p];if(n!=null&&typeof n==="object"&&n.constructor===Object)return n[K]=I,J}if(S<=p)return W[S]=I,J;if(I!==void 0){var A;p=((A=J)!=null?A:J=W[FP]|0)>>14&1023||536870912;K>=p?I!=null&&(S={},W[p+(q?0:-1)]=(S[K]=I,S)):W[S]=I}return J}; GF=function(W,J,K,I,q){var S=W.KE,p=S[FP]|0;I=yW(W,p)?1:I;q=!!q||I===3;I===2&&NF(W)&&(S=W.KE,p=S[FP]|0);W=CH(S,J);var n=W===wU?7:W[FP]|0,A=MF(n,p);var D=4&A?!1:!0;if(D){4&A&&(W=Ec(W),n=0,A=gU(A,p),p=Z8(S,p,J,W));for(var f=0,h=0;f "+W)}; q7=function(W,J,K){this.buffer=W;if(K&&!J)throw Error();this.W=J}; SI=function(W,J){if(typeof W==="string")return new q7(rXy(W),J);if(Array.isArray(W))return new q7(new Uint8Array(W),J);if(W.constructor===Uint8Array)return new q7(W,!1);if(W.constructor===ArrayBuffer)return W=new Uint8Array(W),new q7(W,!1);if(W.constructor===l7)return J=DQ(W)||new Uint8Array(0),new q7(J,!0,W);if(W instanceof Uint8Array)return W=W.constructor===Uint8Array?W:new Uint8Array(W.buffer,W.byteOffset,W.byteLength),new q7(W,!1);throw Error();}; ojH=function(W,J,K,I){this.K=null;this.j=!1;this.W=this.G=this.T=0;this.init(W,J,K,I)}; ly=function(W){var J=0,K=0,I=0,q=W.K,S=W.W;do{var p=q[S++];J|=(p&127)<32&&(K|=(p&127)>>4);for(I=3;I<32&&p&128;I+=7)p=q[S++],K|=(p&127)<>>0,K>>>0);throw Iw();}; pW=function(W,J){W.W=J;if(J>W.G)throw rzH(W.G,J);}; nW=function(W){var J=W.K,K=W.W,I=J[K++],q=I&127;if(I&128&&(I=J[K++],q|=(I&127)<<7,I&128&&(I=J[K++],q|=(I&127)<<14,I&128&&(I=J[K++],q|=(I&127)<<21,I&128&&(I=J[K++],q|=I<<28,I&128&&J[K++]&128&&J[K++]&128&&J[K++]&128&&J[K++]&128&&J[K++]&128)))))throw Iw();pW(W,K);return q}; AD=function(W){var J=W.K,K=W.W,I=J[K+0],q=J[K+1],S=J[K+2];J=J[K+3];pW(W,W.W+4);return(I<<0|q<<8|S<<16|J<<24)>>>0}; D9=function(W){var J=AD(W);W=AD(W);return HD(J,W)}; jI=function(W){var J=AD(W),K=AD(W);W=(K>>31)*2+1;var I=K>>>20&2047;J=4294967296*(K&1048575)+J;return I==2047?J?NaN:W*Infinity:I==0?W*4.9E-324*J:W*Math.pow(2,I-1075)*(J+4503599627370496)}; fW=function(W){for(var J=0,K=W.W,I=K+10,q=W.K;KW.G)throw rzH(J,W.G-K);W.W=I;return K}; znv=function(W,J){if(J==0)return An();var K=L6Q(W,J);W.k9&&W.j?K=W.K.subarray(K,K+J):(W=W.K,J=K+J,K=K===J?new Uint8Array(0):kmQ?W.slice(K,J):new Uint8Array(W.subarray(K,J)));return K.length==0?An():new l7(K,nr)}; tD=function(W,J,K,I){if(hD.length){var q=hD.pop();q.init(W,J,K,I);W=q}else W=new ojH(W,J,K,I);this.W=W;this.G=this.W.W;this.K=this.T=-1;vjH(this,I)}; vjH=function(W,J){J=J===void 0?{}:J;W.In=J.In===void 0?!1:J.In}; YhI=function(W,J,K,I){if(F6.length){var q=F6.pop();vjH(q,I);q.W.init(W,J,K,I);return q}return new tD(W,J,K,I)}; sXH=function(W){var J=W.W;if(J.W==J.G)return!1;W.G=W.W.W;var K=nW(W.W)>>>0;J=K>>>3;K&=7;if(!(K>=0&&K<=5))throw m3H(K,W.G);if(J<1)throw Error("Invalid field number: "+J+" (at position "+W.G+")");W.T=J;W.K=K;return!0}; aw=function(W){switch(W.K){case 0:W.K!=0?aw(W):fW(W.W);break;case 1:W=W.W;pW(W,W.W+8);break;case 2:if(W.K!=2)aw(W);else{var J=nW(W.W)>>>0;W=W.W;pW(W,W.W+J)}break;case 5:W=W.W;pW(W,W.W+4);break;case 3:J=W.T;do{if(!sXH(W))throw Error("Unmatched start-group tag: stream EOF");if(W.K==4){if(W.T!=J)throw Error("Unmatched end-group tag");break}aw(W)}while(1);break;default:throw m3H(W.K,W.G);}}; uy=function(W,J,K){var I=W.W.G,q=nW(W.W)>>>0,S=W.W.W+q,p=S-I;p<=0&&(W.W.G=S,K(J,W,void 0,void 0,void 0),p=S-W.W.W);if(p)throw Error("Message parsing ended unexpectedly. Expected to read "+(q+" bytes, instead read "+(q-p)+" bytes, either the data ended unexpectedly or the message misreported its own length"));W.W.W=S;W.W.G=I}; y8=function(W){var J=nW(W.W)>>>0;W=W.W;var K=L6Q(W,J);W=W.K;if(czD){var I=W,q;(q=N7)||(q=N7=new TextDecoder("utf-8",{fatal:!0}));J=K+J;I=K===0&&J===I.length?I:I.subarray(K,J);try{var S=q.decode(I)}catch(D){if(dx===void 0){try{q.decode(new Uint8Array([128]))}catch(f){}try{q.decode(new Uint8Array([97])),dx=!0}catch(f){dx=!1}}!dx&&(N7=void 0);throw D;}}else{S=K;J=S+J;K=[];for(var p=null,n,A;S=J?i7():(A=W[S++],n<194||WD(A)?(S--,i7()):K.push((n&31)<<6|A&63)):n<240? S>=J-1?i7():(A=W[S++],WD(A)||n===224&&A<160||n===237&&A>=160||WD(q=W[S++])?(S--,i7()):K.push((n&15)<<12|(A&63)<<6|q&63)):n<=244?S>=J-2?i7():(A=W[S++],WD(A)||(n<<28)+(A-144)>>30!==0||WD(q=W[S++])||WD(I=W[S++])?(S--,i7()):(n=(n&7)<<18|(A&63)<<12|(q&63)<<6|I&63,n-=65536,K.push((n>>10&1023)+55296,(n&1023)+56320))):i7(),K.length>=8192&&(p=wXQ(p,K),K.length=0);S=wXQ(p,K)}return S}; PWy=function(W){var J=nW(W.W)>>>0;return znv(W.W,J)}; Uj=function(W,J,K){this.KE=FN(W,J,K)}; XaX=function(W,J){if(J==null||J=="")return new W;J=JSON.parse(J);if(!Array.isArray(J))throw Error("dnarr");aB(J,32);return new W(J)}; Z9=function(W,J){this.K=W>>>0;this.W=J>>>0}; ioQ=function(W){if(!W)return WSy||(WSy=new Z9(0,0));if(!/^\d+$/.test(W))return null;VW(W);return new Z9(gm,Gi)}; Q8=function(W,J){this.K=W>>>0;this.W=J>>>0}; KSy=function(W){if(!W)return JLH||(JLH=new Q8(0,0));if(!/^-?\d+$/.test(W))return null;VW(W);return new Q8(gm,Gi)}; wx=function(){this.W=[]}; M7=function(W,J,K){for(;K>0||J>127;)W.W.push(J&127|128),J=(J>>>7|K<<25)>>>0,K>>>=7;W.W.push(J)}; gx=function(W,J){for(;J>127;)W.W.push(J&127|128),J>>>=7;W.W.push(J)}; IKc=function(W,J){if(J>=0)gx(W,J);else{for(var K=0;K<9;K++)W.W.push(J&127|128),J>>=7;W.W.push(1)}}; GI=function(W,J){W.W.push(J>>>0&255);W.W.push(J>>>8&255);W.W.push(J>>>16&255);W.W.push(J>>>24&255)}; qtA=function(){this.G=[];this.K=0;this.W=new wx}; $J=function(W,J){J.length!==0&&(W.G.push(J),W.K+=J.length)}; StQ=function(W,J){xJ(W,J,2);J=W.W.end();$J(W,J);J.push(W.K);return J}; poI=function(W,J){var K=J.pop();for(K=W.K+W.W.length()-K;K>127;)J.push(K&127|128),K>>>=7,W.K++;J.push(K);W.K++}; xJ=function(W,J,K){gx(W.W,J*8+K)}; lK0=function(W,J,K){if(K!=null){switch(typeof K){case "string":ioQ(K)}xJ(W,J,1);switch(typeof K){case "number":W=W.W;$G(K);GI(W,gm);GI(W,Gi);break;case "bigint":K=BigInt.asUintN(64,K);K=new Z9(Number(K&BigInt(4294967295)),Number(K>>BigInt(32)));W=W.W;J=K.W;GI(W,K.K);GI(W,J);break;default:K=ioQ(K),W=W.W,J=K.W,GI(W,K.K),GI(W,J)}}}; Oj=function(W,J,K){xJ(W,J,2);gx(W.W,K.length);$J(W,W.W.end());$J(W,K)}; TI=function(){function W(){throw Error();} Object.setPrototypeOf(W,W.prototype);return W}; V8=function(W,J,K){this.vQ=W;this.cQ=J;W=l0(Hi);this.W=!!W&&K===W||!1}; Ej=function(W,J){var K=K===void 0?Hi:K;return new V8(W,J,K)}; ALy=function(W,J,K,I,q){J=npc(J,I);J!=null&&(K=StQ(W,K),q(J,W),poI(W,K))}; by=function(W,J,K,I){var q=I[W];if(q)return q;q={};q.Ch=I;q.k8=g.E(M1A(I[0]));var S=I[1],p=1;S&&S.constructor===Object&&(q.extensions=S,S=I[++p],typeof S==="function"&&(q.Yb=!0,eI!=null||(eI=S),Rw!=null||(Rw=I[p+1]),S=I[p+=2]));for(var n={};S&&Array.isArray(S)&&S.length&&typeof S[0]==="number"&&S[0]>0;){for(var A=0;A>BigInt(32)));M7(W.W,K.K,K.W);break;default:K=KSy(J),M7(W.W,K.K,K.W)}}}; IF=function(W,J,K){J=rm(J);J!=null&&J!=null&&(xJ(W,K,0),IKc(W.W,J))}; UOT=function(W,J,K){J=J==null||typeof J==="boolean"?J:typeof J==="number"?!!J:void 0;J!=null&&(xJ(W,K,0),W.W.W.push(J?1:0))}; ZoL=function(W,J,K){J=XP(J);J!=null&&Oj(W,K,$sy(J))}; Qic=function(W,J,K,I,q){J=npc(J,I);J!=null&&(K=StQ(W,K),q(J,W),poI(W,K))}; wo0=function(){var W=q5;this.W=C50;this.isRepeated=0;this.K=rU;this.defaultValue=void 0;this.G=W.messageId!=null?ZQ:void 0}; M4X=function(W){return function(){var J=new qtA;NMQ(this.KE,J,by(zI,kJ,vi,W));$J(J,J.W.end());for(var K=new Uint8Array(J.K),I=J.G,q=I.length,S=0,p=0;p-1)return J.apply(null,g.w(K));try{return W.W=W.G.W.now(),J.apply(null,g.w(K))}finally{W.T+=W.G.W.now()-W.W,W.W=-1,W.K+=1}}}; GCc=function(W,J){this.K=W;this.G=J;this.W=new gpH(W)}; $OH=function(){this.W={}}; Ooy=function(){var W=AZ().flags,J=xOT;W=W.W[J.key];if(J.valueType==="proto"){try{var K=JSON.parse(W);if(Array.isArray(K))return K}catch(I){}return J.defaultValue}return typeof W===typeof J.defaultValue?W:J.defaultValue}; EpQ=function(){this.G=void 0;this.K=this.S=0;this.j=-1;this.jn=new nU;AX(this.jn,"mv",TMy).W=!0;AX(this.jn,"omid",hX);AX(this.jn,"epoh",hX).W=!0;AX(this.jn,"epph",hX).W=!0;AX(this.jn,"umt",hX).W=!0;AX(this.jn,"phel",hX).W=!0;AX(this.jn,"phell",hX).W=!0;AX(this.jn,"oseid",HoX).W=!0;var W=this.jn;W.W.sloi||(W.W.sloi=new SS);W.W.sloi.W=!0;AX(this.jn,"mm",Dw);AX(this.jn,"ovms",V4I).W=!0;AX(this.jn,"xdi",hX).W=!0;AX(this.jn,"amp",hX).W=!0;AX(this.jn,"prf",hX).W=!0;AX(this.jn,"gtx",hX).W=!0;AX(this.jn, "mvp_lv",hX).W=!0;AX(this.jn,"ssmol",hX).W=!0;AX(this.jn,"fmd",hX).W=!0;AX(this.jn,"gen204simple",hX);this.W=new GCc(Xw(),this.jn);this.T=!1;this.flags=new $OH}; AZ=function(){return co(EpQ)}; edX=function(W,J,K,I){if(Math.random()<(I||W.W))try{if(K instanceof rM)var q=K;else q=new rM,Bo(K,function(p,n){var A=q,D=A.T++;p=oi(n,p);A.W.push(D);A.K[D]=p}); var S=q.xm(W.K,"pagead2.googlesyndication.com","/pagead/gen_204?id="+J+"&");S&&(Xw(),UsX(S))}catch(p){}}; RdA=function(W,J,K){K=K===void 0?{}:K;this.error=W;this.meta=K;this.context=J.context;this.msg=J.message||"";this.id=J.id||"jserror"}; boL=function(){var W=W===void 0?g.vH:W;return(W=W.performance)&&W.now&&W.timing?Math.floor(W.now()+W.timing.navigationStart):g.px()}; BMH=function(){var W=W===void 0?g.vH:W;return(W=W.performance)&&W.now?W.now():null}; mOv=function(W,J,K){this.label=W;this.type=J;this.value=K;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; fj=function(){var W=window;this.events=[];this.K=W||g.vH;var J=null;W&&(W.google_js_reporting_queue=W.google_js_reporting_queue||[],this.events=W.google_js_reporting_queue,J=W.google_measure_js_timing);this.W=jW()||(J!=null?J:Math.random()<1)}; rLH=function(W){W&&hZ&&jW()&&(hZ.clearMarks("goog_"+W.label+"_"+W.uniqueId+"_start"),hZ.clearMarks("goog_"+W.label+"_"+W.uniqueId+"_end"))}; opQ=function(){var W=tZ;this.W=FU;this.rM="jserror";this.vX=!0;this.Mp=null;this.K=this.mQ;this.tp=W===void 0?null:W}; LSy=function(W,J,K){var I=aF;return nj(AZ().W.W,function(){try{if(I.tp&&I.tp.W){var q=I.tp.start(W.toString(),3);var S=J();I.tp.end(q)}else S=J()}catch(n){var p=I.vX;try{rLH(q),p=I.K(W,new uj(N5(n)),void 0,K)}catch(A){I.mQ(217,A)}if(!p)throw n;}return S})()}; dI=function(W,J,K,I){return nj(AZ().W.W,function(){var q=g.EH.apply(0,arguments);return LSy(W,function(){return J.apply(K,q)},I)})}; N5=function(W){var J=W.toString();W.name&&J.indexOf(W.name)==-1&&(J+=": "+W.name);W.message&&J.indexOf(W.message)==-1&&(J+=": "+W.message);if(W.stack)a:{W=W.stack;var K=J;try{W.indexOf(K)==-1&&(W=K+"\n"+W);for(var I;W!=I;)I=W,W=W.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");J=W.replace(/\n */g,"\n");break a}catch(q){J=K;break a}J=void 0}return J}; uj=function(W){RdA.call(this,Error(W),{message:W})}; kCD=function(){hL&&typeof hL.google_measure_js_timing!="undefined"&&(hL.google_measure_js_timing||tZ.disable())}; zdQ=function(W){aF.Mp=function(J){g.el(W,function(K){K(J)})}}; vpQ=function(W,J){return LSy(W,J)}; yT=function(W,J){return dI(W,J)}; U5=function(W,J,K,I){aF.mQ(W,J,K,I)}; Zw=function(){return Date.now()-Yt0}; si0=function(){var W=AZ().G,J=QT>=0?Zw()-QT:-1,K=Cj?Zw()-wI:-1,I=M5>=0?Zw()-M5:-1;if(W==947190542)return 100;if(W==79463069)return 200;W=[2E3,4E3];var q=[250,500,1E3];U5(637,Error(),.001);var S=J;K!=-1&&K1500&&I<4E3?500:p}; gI=function(W,J,K,I){this.top=W;this.right=J;this.bottom=K;this.left=I}; GB=function(W){return W.right-W.left}; $E=function(W,J){return W==J?!0:W&&J?W.top==J.top&&W.right==J.right&&W.bottom==J.bottom&&W.left==J.left:!1}; xE=function(W,J,K){var I=new gI(0,0,0,0);this.time=W;this.volume=null;this.G=J;this.W=I;this.K=K}; O5=function(W,J,K,I,q,S,p,n){this.T=W;this.Z=J;this.G=K;this.S=I;this.W=q;this.j=S;this.K=p;this.N=n}; P5D=function(W){var J=W!==W.top,K=W.top===jGH(W),I=-1,q=0;if(J&&K&&W.top.mraid){I=3;var S=W.top.mraid}else I=(S=W.mraid)?J?K?2:1:0:-1;S&&(S.IS_GMA_SDK||(q=2),Hvy(cLI,function(p){return typeof S[p]==="function"})||(q=1)); return{Cp:S,compatibility:q,bch:I}}; XoA=function(){var W=window.document;return W&&typeof W.elementFromPoint==="function"}; WhH=function(W,J,K){if(W&&J!==null&&J!=J.top){if(!J.top)return new g.Vt(-12245933,-12245933);J=J.top}try{return(K===void 0?0:K)?(new g.Vt(J.innerWidth,J.innerHeight)).round():ErT(J||window).round()}catch(I){return new g.Vt(-12245933,-12245933)}}; TB=function(W,J,K){try{if(W){if(!J.top)return new gI(-12245933,-12245933,-12245933,-12245933);J=J.top}var I=WhH(W,J,K),q=I.height,S=I.width;if(S===-12245933)return new gI(S,S,S,S);var p=oX(J.document);var n=RLv(p.W);var A=n.x,D=n.y;return new gI(D,A+S,D+q,A)}catch(f){return new gI(-12245933,-12245933,-12245933,-12245933)}}; g.E5=function(W,J,K,I){this.left=W;this.top=J;this.width=K;this.height=I}; eW=function(W,J){return W==J?!0:W&&J?W.left==J.left&&W.width==J.width&&W.top==J.top&&W.height==J.height:!1}; g.bj=function(W,J,K){if(typeof J==="string")(J=RF(W,J))&&(W.style[J]=K);else for(var I in J){K=W;var q=J[I],S=RF(K,I);S&&(K.style[S]=q)}}; RF=function(W,J){var K=irQ[J];if(!K){var I=tly(J);K=I;W.style[I]===void 0&&(I=(g.ca?"Webkit":BY?"Moz":null)+apD(I),W.style[I]!==void 0&&(K=I));irQ[J]=K}return K}; g.mk=function(W,J){var K=W.style[tly(J)];return typeof K!=="undefined"?K:W.style[RF(W,J)]||""}; rI=function(W,J){var K=rn(W);return K.defaultView&&K.defaultView.getComputedStyle&&(W=K.defaultView.getComputedStyle(W,null))?W[J]||W.getPropertyValue(J)||"":""}; oF=function(W,J){return rI(W,J)||(W.currentStyle?W.currentStyle[J]:null)||W.style&&W.style[J]}; g.kE=function(W,J,K){if(J instanceof g.Tm){var I=J.x;J=J.y}else I=J,J=K;W.style.left=g.Lj(I,!1);W.style.top=g.Lj(J,!1)}; zB=function(W){try{return W.getBoundingClientRect()}catch(J){return{left:0,top:0,right:0,bottom:0}}}; JnX=function(W){var J=rn(W),K=oF(W,"position"),I=K=="fixed"||K=="absolute";for(W=W.parentNode;W&&W!=J;W=W.parentNode)if(W.nodeType==11&&W.host&&(W=W.host),K=oF(W,"position"),I=I&&K=="static"&&W!=J.documentElement&&W!=J.body,!I&&(W.scrollWidth>W.clientWidth||W.scrollHeight>W.clientHeight||K=="fixed"||K=="absolute"||K=="relative"))return W;return null}; g.vY=function(W){var J=rn(W),K=new g.Tm(0,0);if(W==(J?rn(J):document).documentElement)return K;W=zB(W);J=oX(J);J=RLv(J.W);K.x=W.left+J.x;K.y=W.top+J.y;return K}; IQy=function(W,J){var K=new g.Tm(0,0),I=Pa(rn(W));if(!yWQ(I,"parent"))return K;do{var q=I==J?g.vY(W):Khc(W);K.x+=q.x;K.y+=q.y}while(I&&I!=J&&I!=I.parent&&(W=I.frameElement)&&(I=I.parent));return K}; g.YE=function(W,J){W=qcQ(W);J=qcQ(J);return new g.Tm(W.x-J.x,W.y-J.y)}; Khc=function(W){W=zB(W);return new g.Tm(W.left,W.top)}; qcQ=function(W){if(W.nodeType==1)return Khc(W);W=W.changedTouches?W.changedTouches[0]:W;return new g.Tm(W.clientX,W.clientY)}; g.s5=function(W,J,K){if(J instanceof g.Vt)K=J.height,J=J.width;else if(K==void 0)throw Error("missing height argument");W.style.width=g.Lj(J,!0);W.style.height=g.Lj(K,!0)}; g.Lj=function(W,J){typeof W=="number"&&(W=(J?Math.round(W):W)+"px");return W}; g.cY=function(W){var J=Scv;if(oF(W,"display")!="none")return J(W);var K=W.style,I=K.display,q=K.visibility,S=K.position;K.visibility="hidden";K.position="absolute";K.display="inline";W=J(W);K.display=I;K.position=S;K.visibility=q;return W}; Scv=function(W){var J=W.offsetWidth,K=W.offsetHeight,I=g.ca&&!J&&!K;return(J===void 0||I)&&W.getBoundingClientRect?(W=zB(W),new g.Vt(W.right-W.left,W.bottom-W.top)):new g.Vt(J,K)}; g.PY=function(W,J){W.style.display=J?"":"none"}; XU=function(W,J){J=Math.pow(10,J);return Math.floor(W*J)/J}; pDQ=function(W){return new gI(W.top,W.right,W.bottom,W.left)}; lQL=function(W){var J=W.top||0,K=W.left||0;return new gI(J,K+(W.width||0),J+(W.height||0),K)}; WZ=function(W){return W!=null&&W>=0&&W<=1}; nGX=function(){var W=g.CU();return W?ii("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(J){return Ns(W,J)})||Ns(W,"OMI/")&&!Ns(W,"XiaoMi/")?!0:Ns(W,"Presto")&&Ns(W,"Linux")&&!Ns(W,"X11")&&!Ns(W,"Android")&&!Ns(W,"Mobi"):!1}; AnQ=function(){this.G=!b5(hL.top);this.isMobileDevice=Qw()||Y$y();var W=mS();this.domain=W.length>0&&W[W.length-1]!=null&&W[W.length-1].url!=null?g.gM(W[W.length-1].url)||"":"";this.W=new gI(0,0,0,0);this.T=new g.Vt(0,0);this.j=new g.Vt(0,0);this.Z=new gI(0,0,0,0);this.frameOffset=new g.Tm(0,0);this.S=0;this.N=!1;this.K=!(!hL||!P5D(hL).Cp);this.update(hL)}; DQQ=function(W,J){J&&J.screen&&(W.T=new g.Vt(J.screen.width,J.screen.height))}; jBT=function(W,J){a:{var K=W.W?new g.Vt(GB(W.W),W.W.getHeight()):new g.Vt(0,0);J=J===void 0?hL:J;J!==null&&J!=J.top&&(J=J.top);var I=0,q=0;try{var S=J.document,p=S.body,n=S.documentElement;if(S.compatMode=="CSS1Compat"&&n.scrollHeight)I=n.scrollHeight!=K.height?n.scrollHeight:n.offsetHeight,q=n.scrollWidth!=K.width?n.scrollWidth:n.offsetWidth;else{var A=n.scrollHeight,D=n.scrollWidth,f=n.offsetHeight,h=n.offsetWidth;n.clientHeight!=f&&(A=p.scrollHeight,D=p.scrollWidth,f=p.offsetHeight,h=p.offsetWidth); A>K.height?A>f?(I=A,q=D):(I=f,q=h):A0||W.N)return!0;W=Xw().K.isVisible();var J=Ut(Kd)===0;return W||J}; JE=function(){return co(AnQ)}; qt=function(W){this.G=W;this.K=0;this.W=null}; SR=function(W,J,K){this.G=W;this.Y3=K===void 0?"na":K;this.j=[];this.isInitialized=!1;this.T=new xE(-1,!0,this);this.W=this;this.N=J;this.PS=this.C=!1;this.vS="uk";this.XW=!1;this.S=!0}; pd=function(W,J){g.ao(W.j,J)||(W.j.push(J),J.xj(W.W),J.U_(W.T),J.Lg()&&(W.C=!0))}; fQL=function(W){W=W.W;W.QG();W.G3();var J=JE();J.Z=TB(!1,W.G,J.isMobileDevice);jBT(JE(),W.G);W.T.W=W.jp()}; h2X=function(W){W.C=W.j.length?ii(W.j,function(J){return J.Lg()}):!1}; tB0=function(W){var J=g.U$(W.j);g.el(J,function(K){K.U_(W.T)})}; li=function(W){var J=g.U$(W.j);g.el(J,function(K){K.xj(W.W)}); W.W!=W||tB0(W)}; nd=function(W,J,K,I){this.element=W;this.W=new gI(0,0,0,0);this.G=null;this.S=new gI(0,0,0,0);this.K=J;this.jn=K;this.XW=I;this.G8=!1;this.timestamp=-1;this.C=new O5(J.T,this.element,this.W,new gI(0,0,0,0),0,0,Zw(),0);this.j=void 0}; FhI=function(W,J){return W.j?new gI(Math.max(J.top+W.j.top,J.top),Math.min(J.left+W.j.right,J.right),Math.min(J.top+W.j.bottom,J.bottom),Math.max(J.left+W.j.left,J.left)):J.clone()}; AE=function(W){this.j=!1;this.W=W;this.T=function(){}}; aQX=function(W,J,K){this.G=K===void 0?0:K;this.K=W;this.W=J==null?"":J}; FyL=function(W){switch(Math.trunc(W.G)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; a8c=function(W,J){return W.GJ.G?!1:W.KJ.K?!1:typeof W.Wtypeof J.W?!1:W.W0?I[K]-I[K-1]:I[K]})}; ZC=function(){this.K=new aN;this.Y3=this.SZ=0;this.D0=new Fx;this.sI=this.Z=-1;this.Js=1E3;this.eZ=new aN([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.vS=this.G8=-1}; Q7=function(W,J){return MeQ(W.K,J===void 0?!0:J)}; Cd=function(W,J,K,I){var q=q===void 0?!1:q;K=dI(I,K);yw(W,J,K,{capture:q})}; g3=function(W,J){J=w3(J);return J===0?0:w3(W)/J}; w3=function(W){return Math.max(W.bottom-W.top,0)*Math.max(W.right-W.left,0)}; $Fc=function(W,J){if(!W||!J)return!1;for(var K=0;W!==null&&K++<100;){if(W===J)return!0;try{if(W=W.parentElement||W){var I=rn(W),q=I&&Pa(I),S=q&&q.frameElement;S&&(W=S)}}catch(p){break}}return!1}; xFD=function(W,J,K){if(!W||!J)return!1;J=W.clone().translate(-J.left,-J.top);W=(J.left+J.right)/2;J=(J.top+J.bottom)/2;b5(window.top)&&window.top&&window.top.document&&(window=window.top);if(!XoA())return!1;W=window.document.elementFromPoint(W,J);if(!W)return!1;J=(J=(J=rn(K))&&J.defaultView&&J.defaultView.frameElement)&&$Fc(J,W);var I=W===K;W=!I&&W&&no(W,function(q){return q===K}); return!(J||I||W)}; OHH=function(W,J,K,I){return JE().G?!1:GB(W)<=0||W.getHeight()<=0?!0:K&&I?vpQ(208,function(){return xFD(W,J,K)}):!1}; GN=function(W,J,K){g.R.call(this);this.position=TUQ.clone();this.V1=this.E5();this.wZ=-2;this.timeCreated=Date.now();this.iB=-1;this.aM=J;this.U5=null;this.us=!1;this.F_=null;this.opacity=-1;this.requestSource=K;this.iQ3=!1;this.ox=function(){}; this.HB=function(){}; this.Ed=new rWX;this.Ed.MQ=W;this.Ed.W=W;this.Wi=!1;this.jf={J$:null,bf:null};this.U0=!0;this.jr=null;this.rp=this.MZ0=!1;AZ().S++;this.VX=this.Vp();this.cB=-1;this.rb=null;this.hasCompleted=this.TwN=!1;this.jn=new nU;rTQ(this.jn);HHA(this);this.requestSource==1?Dn(this.jn,"od",1):Dn(this.jn,"od",0)}; HHA=function(W){W=W.Ed.MQ;var J;if(J=W&&W.getAttribute)J=/-[a-z]/.test("googleAvInapp")?!1:VeH&&W.dataset?"googleAvInapp"in W.dataset:W.hasAttribute?W.hasAttribute("data-"+FoD()):!!W.getAttribute("data-"+FoD());J&&(JE().K=!0)}; $8=function(W,J){J!=W.rp&&(W.rp=J,W=JE(),J?W.S++:W.S>0&&W.S--)}; EPy=function(W,J){if(W.rb){if(J.getName()===W.rb.getName())return;W.rb.dispose();W.rb=null}J=J.create(W.Ed.W,W.jn,W.Lg());if(J=J!=null&&J.observe()?J:null)W.rb=J}; euc=function(W,J,K){if(!W.U5||W.aM==-1||J.K===-1||W.U5.K===-1)return 0;W=J.K-W.U5.K;return W>K?0:W}; Ruv=function(W,J,K){if(W.rb){W.rb.XK();var I=W.rb.C,q=I.T,S=q.W;if(I.S!=null){var p=I.G;W.F_=new g.Tm(p.left-S.left,p.top-S.top)}S=W.Zp()?Math.max(I.W,I.j):I.W;p={};q.volume!==null&&(p.volume=q.volume);q=W.Gp(I);W.U5=I;W.hs(S,J,K,!1,p,q,I.N)}}; bHT=function(W){if(W.us&&W.jr){var J=jS(W.jn,"od")==1,K=JE().W,I=W.jr,q=W.rb?W.rb.getName():"ns",S=W.F_,p=new g.Vt(GB(K),K.getHeight());K=W.Zp();W={sXI:q,F_:S,L$3:p,Zp:K,BD:W.VX.BD,F$O:J};if(J=I.K){J.XK();q=J.C;S=q.T.W;var n=p=null;q.S!=null&&S&&(p=q.G,p=new g.Tm(p.left-S.left,p.top-S.top),n=new g.Vt(S.right-S.left,S.bottom-S.top));q=K?Math.max(q.W,q.j):q.W;K={sXI:J.getName(),F_:p,L$3:n,Zp:K,F$O:!1,BD:q}}else K=null;K&&QMQ(I,W,K)}}; BU0=function(W,J,K){J&&(W.ox=J);K&&(W.HB=K)}; g.x8=function(){}; g.Oi=function(W){return{value:W,done:!1}}; mF0=function(){this.T=this.W=this.G=this.K=this.j=0}; rK0=function(W){var J={};var K=g.px()-W.j;J=(J.ptlt=K,J);(K=W.K)&&(J.pnk=K);(K=W.G)&&(J.pnc=K);(K=W.T)&&(J.pnmm=K);(W=W.W)&&(J.pns=W);return J}; oPQ=function(){b0.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; TN=function(W){return WZ(W.volume)&&W.volume>0}; HZ=function(W,J,K,I){K=K===void 0?!0:K;I=I===void 0?function(){return!0}:I; return function(q){var S=q[W];if(Array.isArray(S)&&I(q))return LyT(S,J,K)}}; V7=function(W,J){return function(K){return J(K)?K[W]:void 0}}; kFH=function(W){return function(J){for(var K=0;K0?S[q-1]+1:0,I+1).reduce(function(p,n){return p+n},0)})}; zuD=function(){this.K=this.W=""}; vPQ=function(){}; eR=function(W,J){var K={};if(W!==void 0)if(J!=null)for(var I in J){var q=J[I];I in Object.prototype||q!=null&&(K[I]=typeof q==="function"?q(W):W[q])}else g.KU(K,W);return fd(jR(new DC,K))}; Y1Q=function(){var W={};this.K=(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.W={};for(var J in this.K)this.K[J][1]>0&&(this.W[J]=0);this.G=0}; RN=function(W,J){var K=W.K[J],I=K[1];W.G+=K[0];I>0&&W.W[J]==0&&(W.W[J]=1)}; sMc=function(W){var J=g.zT(W.K),K=0,I;for(I in W.W)g.ao(J,I)&&W.W[I]==1&&(K+=W.K[I][1],W.W[I]=2);return K}; cKQ=function(W){var J=0,K;for(K in W.W){var I=W.W[K];if(I==1||I==2)J+=W.K[K][1]}return J}; bi=function(){this.W=this.K=0}; BZ=function(){ZC.call(this);this.G=new Fx;this.OI=this.C=this.XW=0;this.N=-1;this.P7=new Fx;this.j=new Fx;this.W=new aN;this.S=this.T=-1;this.PS=new Fx;this.Js=2E3;this.jZ=new bi;this.bO=new bi;this.FW=new bi}; mw=function(W,J,K){var I=W.OI;Cj||K||W.N==-1||(I+=J-W.N);return I}; PxX=function(){this.G=!1}; r3=function(W,J){this.G=!1;this.T=W;this.C=J;this.j=0}; oN=function(W,J){r3.call(this,W,J);this.Z=[]}; XsI=function(){}; k8=function(){}; zN=function(W,J,K,I){nd.call(this,W,J,K,I)}; vZ=function(W,J,K){nd.call(this,null,W,J,K);this.N=W.isActive();this.Z=0}; Y8=function(W){return[W.top,W.left,W.bottom,W.right]}; si=function(W,J,K,I,q,S){S=S===void 0?new k8:S;GN.call(this,J,K,I);this.eD=q;this.Sg=0;this.a7={};this.Hw=new Y1Q;this.W_={};this.e3="";this.FW=null;this.Tx=!1;this.W=[];this.Xr=S.K();this.S=S.G();this.T=null;this.G=-1;this.Y3=this.C=void 0;this.sI=this.PS=0;this.vS=-1;this.Js=this.bO=!1;this.XW=this.N=this.K=this.yg=this.sT=0;new aN;this.jZ=this.OI=0;this.D0=-1;this.dC=0;this.Z=g.Fw;this.G8=[this.E5()];this.qD=2;this.q4={};this.q4.pause="p";this.q4.resume="r";this.q4.skip="s";this.q4.mute="m";this.q4.unmute= "um";this.q4.exitfullscreen="ef";this.j=null;this.eZ=this.P7=!1;this.SI=Math.floor(Date.now()/1E3-1704067200);this.SZ=0}; cZ=function(W){W.hasCompleted=!0;W.dC!=0&&(W.dC=3)}; PZ=function(W){return W===void 0?W:Number(W)?XU(W,3):0}; Xx=function(W,J){return W.G8[J!=null&&JMath.max(1E4,W.G/3)?0:J);var K=W.Z(W)||{};K=K.currentTime!==void 0?K.currentTime:W.PS;var I=K-W.PS,q=0;I>=0?(W.sI+=J,W.jZ+=Math.max(J-I,0),q=Math.min(I,W.sI)):W.OI+=Math.abs(I);I!=0&&(W.sI=0);W.D0==-1&&I>0&&(W.D0=M5>=0?Zw()-M5:-1);W.PS=K;return q}; JDQ=function(W,J){ii(W.S,function(K){return K.T==J.T})||W.S.push(J)}; KiQ=function(W){var J=d3(W.cY().W,1);return W6(W,J)}; W6=function(W,J,K){return J>=15E3?!0:W.bO?(K===void 0?0:K)?!0:W.G>0?J>=W.G/2:W.vS>0?J>=W.vS:!1:!1}; I9c=function(W){var J=XU(W.VX.BD,2),K=W.Hw.G,I=W.VX,q=Xx(W),S=PZ(q.T),p=PZ(q.S),n=PZ(I.volume),A=XU(q.Z,2),D=XU(q.sI,2),f=XU(I.BD,2),h=XU(q.G8,2),t=XU(q.vS,2);I=XU(I.kR,2);var F=W.pm().clone().round();W=W.rb&&W.rb.G?(W.rb?W.rb.G:null).clone().round():null;q=Q7(q,!1);return{qPN:J,Wn:K,Sm:S,E7:p,SL:n,xL:A,gP:D,BD:f,Ia:h,GS:t,kR:I,position:F,tW:W,Bp:q}}; SjQ=function(W,J){qjL(W.W,J,function(){return{qPN:0,Wn:void 0,Sm:-1,E7:-1,SL:-1,xL:-1,gP:-1,BD:-1,Ia:-1,GS:-1,kR:-1,position:void 0,tW:void 0,Bp:[]}}); W.W[J]=I9c(W)}; qjL=function(W,J,K){for(var I=W.length;I0?1:0;h.atos= ui(D.W);h.ssb=ui(D.eZ,!1);h.amtos=MeQ(D.W,!1);h.uac=W.sT;h.vpt=D.G.W;f=="nio"&&(h.nio=1,h.avms="nio");h.gmm="4";h.gdr=W6(W,D.G.W,!0)?1:0;h.efpf=W.qD;if(f=="gsv"||f=="nis")f=W.rb,f.Z>0&&(h.nnut=f.Z);h.tcm=WiH(W);h.nmt=W.OI;h.bt=W.jZ;h.pst=W.D0;h.vpaid=W.C;h.dur=W.G;h.vmtime=W.PS;h.is=W.Hw.G;W.W.length>=1&&(h.i0=W.W[0].Wn,h.a0=[W.W[0].SL],h.c0=[W.W[0].BD],h.ss0=[W.W[0].kR],f=W.W[0].position,S=W.W[0].tW,h.p0=f?Y8(f):void 0,f&&S&&!$E(S,f)&&(h.cp0=Y8(S)));W.W.length>=2&&(h.i1=W.W[1].Wn,h.a1=KZ(W.W[1].Sm, W.W[1].SL,W.W[1].E7),h.c1=KZ(W.W[1].xL,W.W[1].BD,W.W[1].gP),h.ss1=KZ(W.W[1].Ia,W.W[1].kR,W.W[1].GS),f=W.W[1].position,S=W.W[1].tW,h.p1=f?Y8(f):void 0,f&&S&&!$E(S,f)&&(h.cp1=Y8(S)),h.mtos1=W.W[1].Bp);W.W.length>=3&&(h.i2=W.W[2].Wn,h.a2=KZ(W.W[2].Sm,W.W[2].SL,W.W[2].E7),h.c2=KZ(W.W[2].xL,W.W[2].BD,W.W[2].gP),h.ss2=KZ(W.W[2].Ia,W.W[2].kR,W.W[2].GS),f=W.W[2].position,S=W.W[2].tW,h.p2=f?Y8(f):void 0,f&&S&&!$E(S,f)&&(h.cp2=Y8(S)),h.mtos2=W.W[2].Bp);W.W.length>=4&&(h.i3=W.W[3].Wn,h.a3=KZ(W.W[3].Sm,W.W[3].SL, W.W[3].E7),h.c3=KZ(W.W[3].xL,W.W[3].BD,W.W[3].gP),h.ss3=KZ(W.W[3].Ia,W.W[3].kR,W.W[3].GS),f=W.W[3].position,S=W.W[3].tW,h.p3=f?Y8(f):void 0,f&&S&&!$E(S,f)&&(h.cp3=Y8(S)),h.mtos3=W.W[3].Bp);h.cs=cKQ(W.Hw);J&&(h.ic=sMc(W.Hw),h.dvpt=D.G.K,h.dvs=Ui(D.K,.5),h.dfvs=Ui(D.K,1),h.davs=Ui(D.W,.5),h.dafvs=Ui(D.W,1),K&&(D.G.K=0,gPD(D.K),gPD(D.W)),W.QS()&&(h.dtos=D.XW,h.dav=D.C,h.dtoss=W.Sg+1,K&&(D.XW=0,D.C=0,W.Sg++)),h.dat=D.j.K,h.dft=D.PS.K,K&&(D.j.K=0,D.PS.K=0));h.ps=[n.j.width,n.j.height];h.bs=[GB(n.W),n.W.getHeight()]; h.scs=[n.T.width,n.T.height];h.dom=n.domain;W.yg&&(h.vds=W.yg);if(W.S.length>0||W.Xr)J=g.U$(W.S),W.Xr&&J.push(W.Xr),h.pings=g.zC(J,function(t){return t.toString()}); J=g.zC(g.Ei(W.S,function(t){return t.S()}),function(t){return t.getId()}); MQH(J);h.ces=J;W.K&&(h.vmer=W.K);W.N&&(h.vmmk=W.N);W.XW&&(h.vmiec=W.XW);h.avms=W.rb?W.rb.getName():"ns";W.rb&&g.KU(h,W.rb.AV());I?(h.c=XU(W.VX.BD,2),h.ss=XU(W.VX.kR,2)):h.tth=Zw()-ADy;h.mc=XU(D.sI,2);h.nc=XU(D.Z,2);h.mv=PZ(D.S);h.nv=PZ(D.T);h.lte=XU(W.wZ,2);I=Xx(W,q);Q7(D);h.qmtos=Q7(I);h.qnc=XU(I.Z,2);h.qmv=PZ(I.S);h.qnv=PZ(I.T);h.qas=I.T>0?1:0;h.qi=W.e3;h.avms||(h.avms="geo");h.psm=D.jZ.W;h.psv=D.jZ.getValue();h.psfv=D.bO.getValue();h.psa=D.FW.getValue();A=B0Q(A.jn);A.length&&(h.veid=A);W.j&&g.KU(h, rK0(W.j));h.avas=W.Fk();h.vs=W.Yw();h.co=D7I(W);h.tm=D.SZ;h.tu=D.Y3;return h}; piH=function(W,J){if(g.ao(jwQ,J))return!0;var K=W.a7[J];return K!==void 0?(W.a7[J]=!0,!K):!1}; D7I=function(W){var J=W.SZ.toString(10).padStart(2,"0");J=""+W.SI+J;W.SZ<99&&W.SZ++;return J}; hjv=function(){this.W={};var W=Pa();I6(this,W,document);var J=f9T();try{if("1"==J){for(var K=W.parent;K!=W.top;K=K.parent)I6(this,K,K.document);I6(this,W.top,W.top.document)}}catch(I){}}; f9T=function(){var W=document.documentElement;try{if(!b5(Pa().top))return"2";var J=[],K=Pa(W.ownerDocument);for(W=K;W!=K.top;W=W.parent)if(W.frameElement)J.push(W.frameElement);else break;return J&&J.length!=0?"1":"0"}catch(I){return"2"}}; I6=function(W,J,K){Cd(K,"mousedown",function(){return tIv(W)},301); Cd(J,"scroll",function(){return FiQ(W)},302); Cd(K,"touchmove",function(){return a90(W)},303); Cd(K,"mousemove",function(){return u6X(W)},304); Cd(K,"keydown",function(){return NxD(W)},305)}; tIv=function(W){g.BR(W.W,function(J){J.G>1E5||++J.G})}; FiQ=function(W){g.BR(W.W,function(J){J.W>1E5||++J.W})}; a90=function(W){g.BR(W.W,function(J){J.W>1E5||++J.W})}; NxD=function(W){g.BR(W.W,function(J){J.K>1E5||++J.K})}; u6X=function(W){g.BR(W.W,function(J){J.T>1E5||++J.T})}; d7D=function(){this.W=[];this.K=[]}; qR=function(W,J){return g.hW(W.W,function(K){return K.e3==J})}; yDv=function(W,J){return J?g.hW(W.W,function(K){return K.Ed.MQ==J}):null}; U7X=function(W,J){return g.hW(W.K,function(K){return K.fB()==2&&K.e3==J})}; pZ=function(){var W=Sn;return W.W.length==0?W.K:W.K.length==0?W.W:g.yG(W.K,W.W)}; ZWX=function(W,J){W=J.fB()==1?W.W:W.K;var K=fx(W,function(I){return I==J}); return K!=-1?(W.splice(K,1),J.rb&&J.rb.unobserve(),J.dispose(),!0):!1}; QwI=function(W){var J=Sn;if(ZWX(J,W)){switch(W.fB()){case 0:var K=function(){return null}; case 2:K=function(){return U7X(J,W.e3)}; break;case 1:K=function(){return qR(J,W.e3)}}for(var I=K();I;I=K())ZWX(J,I)}}; CyH=function(W){var J=Sn;W=g.Ei(W,function(K){return!yDv(J,K.Ed.MQ)}); J.W.push.apply(J.W,g.w(W))}; wic=function(W){var J=[];g.el(W,function(K){ii(Sn.W,function(I){return I.Ed.MQ===K.Ed.MQ&&I.e3===K.e3})||(Sn.W.push(K),J.push(K))})}; lF=function(){this.W=this.K=null}; nZ=function(W){return W.W!=null}; MID=function(W,J){function K(I,q){J(I,q)} if(W.K==null)return!1;W.W=g.hW(W.K,function(I){return I!=null&&I.T3()}); W.W&&(W.W.init(K)?fQL(W.W.W):J(W.W.W.l4(),W.W));return W.W!=null}; A9=function(W){W=gJy(W);AE.call(this,W.length?W[W.length-1]:new SR(hL,0));this.G=W;this.K=null}; gJy=function(W){if(!W.length)return[];W=(0,g.Ei)(W,function(K){return K!=null&&K.OL()}); for(var J=1;JK.time?J:K},W[0])}; h9=function(W){W=W===void 0?hL:W;AE.call(this,new SR(W,2))}; t9=function(){var W=OWv();SR.call(this,hL.top,W,"geo")}; OWv=function(){AZ();var W=JE();return W.G||W.K?0:2}; Txv=function(){}; F$=function(){this.done=!1;this.W={D6:0,Iw:0,asS:0,B6:0,ey:-1,dE:0,Z1:0,Bb:0,W$K:0};this.j=null;this.S=!1;this.G=null;this.Z=0;this.K=new qt(this)}; uF=function(){var W=a6;W.S||(W.S=!0,HWv(W,function(){return W.T.apply(W,g.w(g.EH.apply(0,arguments)))}),W.T())}; VIQ=function(){co(Txv);var W=co(lF);nZ(W)&&W.W.W?fQL(W.W.W):JE().update(hL)}; NR=function(W,J,K){if(!W.done&&(W.K.cancel(),J.length!=0)){W.G=null;try{VIQ();var I=Zw();AZ().j=I;if(nZ(co(lF)))for(var q=0;q=0?Zw()-QT:-1,n=Zw();q.W.ey==-1&&(p=n);var A=JE(),D=AZ(),f=fU(D.jn),h=pZ();try{if(h.length>0){var t=A.W;t&&(f.bs=[GB(t),t.getHeight()]);var F=A.j;F&&(f.ps=[F.width,F.height]);hL.screen&&(f.scs=[hL.screen.width,hL.screen.height])}else f.url=encodeURIComponent(hL.location.href.substring(0,512)),S.referrer&&(f.referrer=encodeURIComponent(S.referrer.substring(0,512))); f.tt=p;f.pt=QT;f.bin=D.K;hL.google_osd_load_pub_page_exp!==void 0&&(f.olpp=hL.google_osd_load_pub_page_exp);f.deb=[1,q.W.D6,q.W.Iw,q.W.B6,q.W.ey,0,q.K.K,q.W.dE,q.W.Z1,q.W.Bb,q.W.W$K,-1].join(";");f.tvt=ejH(q,n);A.K&&(f.inapp=1);if(hL!==null&&hL!=hL.top){h.length>0&&(f.iframe_loc=encodeURIComponent(hL.location.href.substring(0,512)));var a=A.Z;f.is=[GB(a),a.getHeight()]}}catch(y){f.error=1}a6.G=f}t=g.ih(a6.G);F=AZ().W;jS(F.G,"prf")==1?(a=new lj,q=F.W,S=0,q.W>-1&&(S=q.G.W.now()-q.W),a=O1(a,1,eB(q.T+ S),0),q=F.W,a=O1(a,5,mh(q.W>-1?q.K+1:q.K),0),a=O1(a,2,YG(F.K.W.G()),"0"),a=O1(a,3,YG(F.K.W.K()),"0"),F=O1(a,4,YG(F.K.W.W()),"0"),a={},F=(a.pf=g.IB(F.K()),a)):F={};g.KU(t,F);g.KU(J,I,K,t,W())}])}; BxQ=function(){var W=bWH||hL;if(!W)return"";var J=[];if(!W.location||!W.location.href)return"";J.push("url="+encodeURIComponent(W.location.href.substring(0,512)));W.document&&W.document.referrer&&J.push("referrer="+encodeURIComponent(W.document.referrer.substring(0,512)));return J.join("&")}; dy=function(){var W="youtube.player.web_20250428_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250428_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250428_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250428_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),J;if(((J=W)==null?void 0:J.length)==2)return W[1];W="youtube.player.web_20250428_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var K;return((K=W)==null?void 0:K.length)==3?"20"+W[1]+W[2]:null}; m7y=function(){return"av.default_js".includes("ima_html5_sdk")?{yH:"ima",k7:null}:"av.default_js".includes("ima_native_sdk")?{yH:"nima",k7:null}:"av.default_js".includes("admob-native-video-javascript")?{yH:"an",k7:null}:"youtube.player.web_20250428_21_RC00".includes("cast_js_sdk")?{yH:"cast",k7:dy()}:"youtube.player.web_20250428_21_RC00".includes("youtube.player.web")?{yH:"yw",k7:dy()}:"youtube.player.web_20250428_21_RC00".includes("outstream_web_client")?{yH:"out",k7:dy()}:"youtube.player.web_20250428_21_RC00".includes("drx_rewarded_web")? {yH:"r",k7:dy()}:"youtube.player.web_20250428_21_RC00".includes("gam_native_web_video")?{yH:"n",k7:dy()}:"youtube.player.web_20250428_21_RC00".includes("admob_interstitial_video")?{yH:"int",k7:dy()}:{yH:"j",k7:null}}; Zk=function(W,J){var K={sv:"966"};yl!==null&&(K.v=yl);K.cb=rDH;K.nas=Sn.W.length;K.msg=W;J!==void 0&&(W=oJQ(J))&&(K.e=UV[W]);return K}; Ql=function(W){return tX(W,"custom_metric_viewable")}; oJQ=function(W){var J=Ql(W)?"custom_metric_viewable":W.toLowerCase();return cR(iF,function(K){return K==J})}; LiQ=function(){this.W=void 0;this.K=!1;this.G=0;this.T=-1;this.j="tos"}; vJy=function(W){try{var J=W.split(",");return J.length>g.zT(kIv).length?null:Yp(J,function(K,I){I=I.toLowerCase().split("=");if(I.length!=2||zjy[I[0]]===void 0||!zjy[I[0]](I[1]))throw Error("Entry ("+I[0]+", "+I[1]+") is invalid.");K[I[0]]=I[1];return K},{})}catch(K){return null}}; YjH=function(W,J){if(W.W==void 0)return 0;switch(W.j){case "mtos":return W.K?y7(J.W,W.W):y7(J.K,W.W);case "tos":return W.K?d3(J.W,W.W):d3(J.K,W.W)}return 0}; CZ=function(W,J,K,I){r3.call(this,J,I);this.Z=W;this.N=K}; wy=function(){}; MR=function(W){r3.call(this,"fully_viewable_audible_half_duration_impression",W)}; gy=function(W){this.W=W}; Gd=function(W,J){r3.call(this,W,J)}; $v=function(W){oN.call(this,"measurable_impression",W)}; xv=function(){gy.apply(this,arguments)}; OV=function(W,J,K){vZ.call(this,W,J,K)}; Td=function(W){W=W===void 0?hL:W;AE.call(this,new SR(W,2))}; H6=function(W,J,K){vZ.call(this,W,J,K)}; Vl=function(W){W=W===void 0?hL:W;AE.call(this,new SR(W,2))}; EV=function(){SR.call(this,hL,2,"mraid");this.jZ=0;this.sI=this.G8=!1;this.Z=null;this.K=P5D(this.G);this.T.W=new gI(0,0,0,0);this.SZ=!1}; en=function(W,J,K){W.e_("addEventListener",J,K)}; XiT=function(W){AZ().T=!!W.e_("isViewable");en(W,"viewableChange",swI);W.e_("getState")==="loading"?en(W,"ready",cDH):Pyy(W)}; Pyy=function(W){typeof W.K.Cp.AFMA_LIDAR==="string"?(W.G8=!0,Wkv(W)):(W.K.compatibility=3,W.Z="nc",W.kG("w"))}; Wkv=function(W){W.sI=!1;var J=jS(AZ().jn,"rmmt")==1,K=!!W.e_("isViewable");(J?!K:1)&&Xw().setTimeout(yT(524,function(){W.sI||(ijy(W),U5(540,Error()),W.Z="mt",W.kG("w"))}),500); JZ0(W);en(W,W.K.Cp.AFMA_LIDAR,KkT)}; JZ0=function(W){var J=jS(AZ().jn,"sneio")==1,K=W.K.Cp.AFMA_LIDAR_EXP_1!==void 0,I=W.K.Cp.AFMA_LIDAR_EXP_2!==void 0;(J=J&&I)&&(W.K.Cp.AFMA_LIDAR_EXP_2=!0);K&&(W.K.Cp.AFMA_LIDAR_EXP_1=!J)}; ijy=function(W){W.e_("removeEventListener",W.K.Cp.AFMA_LIDAR,KkT);W.G8=!1}; IwD=function(W,J){if(W.e_("getState")==="loading")return new g.Vt(-1,-1);J=W.e_(J);if(!J)return new g.Vt(-1,-1);W=parseInt(J.width,10);J=parseInt(J.height,10);return isNaN(W)||isNaN(J)?new g.Vt(-1,-1):new g.Vt(W,J)}; cDH=function(){try{var W=co(EV);W.e_("removeEventListener","ready",cDH);Pyy(W)}catch(J){U5(541,J)}}; KkT=function(W,J){try{var K=co(EV);K.sI=!0;var I=W?new gI(W.y,W.x+W.width,W.y+W.height,W.x):new gI(0,0,0,0);var q=Zw(),S=IN();var p=new xE(q,S,K);p.W=I;p.volume=J;K.U_(p)}catch(n){U5(542,n)}}; swI=function(W){var J=AZ(),K=co(EV);W&&!J.T&&(J.T=!0,K.SZ=!0,K.Z&&K.kG("w",!0))}; R6=function(){this.isInitialized=!1;this.W=this.K=null;var W={};this.Z=(W.start=this.qc,W.firstquartile=this.Hz,W.midpoint=this.bP,W.thirdquartile=this.Lf,W.complete=this.tM,W.error=this.AM,W.pause=this.Ui,W.resume=this.cA,W.skip=this.nf,W.viewable_impression=this.RM,W.mute=this.mD,W.unmute=this.mD,W.fullscreen=this.Ff,W.exitfullscreen=this.kq,W.fully_viewable_audible_half_duration_impression=this.RM,W.measurable_impression=this.RM,W.abandon=this.Ui,W.engagedview=this.RM,W.impression=this.RM,W.creativeview= this.RM,W.progress=this.mD,W.custom_metric_viewable=this.RM,W.bufferstart=this.Ui,W.bufferfinish=this.cA,W.audio_measurable=this.RM,W.audio_audible=this.RM,W);W={};this.N=(W.overlay_resize=this.JM,W.abandon=this.pD,W.close=this.pD,W.collapse=this.pD,W.overlay_unmeasurable_impression=function(J){return J9(J,"overlay_unmeasurable_impression",IN())},W.overlay_viewable_immediate_impression=function(J){return J9(J,"overlay_viewable_immediate_impression",IN())},W.overlay_unviewable_impression=function(J){return J9(J, "overlay_unviewable_impression",IN())},W.overlay_viewable_end_of_session_impression=function(J){return J9(J,"overlay_viewable_end_of_session_impression",IN())},W); AZ().K=3;q5y(this);this.G=null}; bF=function(W,J,K,I){W=W.m_(null,I,!0,J);W.T=K;CyH([W]);return W}; S5c=function(W,J,K){T0Q(J);var I=W.W;g.el(J,function(q){var S=g.zC(q.criteria,function(p){var n=vJy(p);if(n==null)p=null;else if(p=new LiQ,n.visible!=null&&(p.W=n.visible/100),n.audible!=null&&(p.K=n.audible==1),n.time!=null){var A=n.timetype=="mtos"?"mtos":"tos",D=ocQ(n.time,"%")?"%":"ms";n=parseInt(n.time,10);D=="%"&&(n/=100);p.setTime(n,D,A)}return p}); ii(S,function(p){return p==null})||JDQ(K,new CZ(q.id,q.event,S,I))})}; pYH=function(){var W=[],J=AZ();W.push(co(t9));jS(J.jn,"mvp_lv")&&W.push(co(EV));J=[new Td,new Vl];J.push(new A9(W));J.push(new h9(hL));return J}; lwH=function(W){if(!W.isInitialized){W.isInitialized=!0;try{var J=Zw(),K=AZ(),I=JE();QT=J;K.G=79463069;W.K!=="o"&&(bWH=jGH(hL));if(ZU0()){a6.W.Iw=0;a6.W.ey=Zw()-J;var q=pYH(),S=co(lF);S.K=q;MID(S,function(){B6()})?a6.done||(EJQ(),pd(S.W.W,W),uF()):I.G?B6():uF()}else m_=!0}catch(p){throw Sn.reset(),p; }}}; o6=function(W){a6.K.cancel();ry=W;a6.done=!0}; Yv=function(W){if(W.K)return W.K;var J=co(lF).W;if(J)switch(J.getName()){case "nis":W.K="n";break;case "gsv":W.K="m"}W.K||(W.K="h");return W.K}; sV=function(W,J,K){if(W.W==null)return J.yg|=4,!1;W=nEH(W.W,K,J);J.yg|=W;return W==0}; B6=function(){var W=[new h9(hL)],J=co(lF);J.K=W;MID(J,function(){o6("i")})?a6.done||(EJQ(),uF()):o6("i")}; AZH=function(W,J){if(!W.Tx){var K=J9(W,"start",IN());K=W.eD.W(K).W;var I={id:"lidarv"};I.r=J;I.sv="966";yl!==null&&(I.v=yl);xp(K,function(q,S){return I[q]=q=="mtos"||q=="tos"?S:encodeURIComponent(S)}); J=BxQ();xp(J,function(q,S){return I[q]=encodeURIComponent(S)}); J="//pagead2.googlesyndication.com/pagead/gen_204?"+fd(jR(new DC,I));UFL(J);W.Tx=!0}}; c6=function(W,J,K){NR(a6,[W],!IN());SjQ(W,K);K!=4&&qjL(W.G8,K,W.E5);return J9(W,J,IN())}; q5y=function(W){RjQ(function(){var J=D5Q();W.K!=null&&(J.sdk=W.K);var K=co(lF);nZ(K)&&(J.avms=K.W.getName());return J})}; jFQ=function(W,J,K,I){var q=yDv(Sn,K);q!==null&&q.e3!==J&&(W.aL(q),q=null);q||(J=W.m_(K,Zw(),!1,J),Sn.K.length==0&&(AZ().G=79463069),wic([J]),q=J,q.T=Yv(W),I&&(q.FW=I));return q}; fwQ=function(W,J){var K=W[J];K!==void 0&&K>0&&(W[J]=Math.floor(K*1E3))}; D5Q=function(){var W=JE(),J={},K={},I={};return Object.assign({},(J.sv="966",J),yl!==null&&(K.v=yl,K),(I["if"]=W.G?"1":"0",I.nas=String(Sn.W.length),I))}; P6=function(W){r3.call(this,"audio_audible",W)}; X$=function(W){oN.call(this,"audio_measurable",W)}; W4=function(){gy.apply(this,arguments)}; iR=function(){}; hxH=function(W){this.W=W}; nEH=function(W,J,K){W=W.K();if(typeof W==="function"){var I={};var q={};I=Object.assign({},yl!==null&&(I.v=yl,I),(q.sv="966",q.cb=rDH,q.e=tWH(J),q));q=J9(K,J,IN());g.KU(I,q);K.W_[J]=q;I=K.fB()==2?yKy(I).join("&"):K.eD.W(I).W;try{return W(K.e3,I,J),0}catch(S){return 2}}else return 1}; tWH=function(W){var J=Ql(W)?"custom_metric_viewable":W;W=cR(iF,function(K){return K==J}); return UV[W]}; JB=function(){R6.call(this);this.S=null;this.j=!1;this.T="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; FkQ=function(W,J,K){K=K.opt_configurable_tracking_events;W.W!=null&&Array.isArray(K)&&S5c(W,K,J)}; awX=function(W,J,K){var I=qR(Sn,J);I||(I=K.opt_nativeTime||-1,I=bF(W,J,Yv(W),I),K.opt_osdId&&(I.FW=K.opt_osdId));return I}; uUI=function(W,J,K){var I=qR(Sn,J);I||(I=bF(W,J,"n",K.opt_nativeTime||-1));return I}; NIQ=function(W,J){var K=qR(Sn,J);K||(K=bF(W,J,"h",-1));return K}; d5H=function(W){AZ();switch(Yv(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}; ZjL=function(W,J,K,I){K=K===void 0?{}:K;var q={};g.KU(q,{opt_adElement:void 0,opt_fullscreen:void 0},K);var S=W.aP(J,K);K=S?S.eD:W.KJ();if(q.opt_bounds)return K.W(Zk("ol",I));if(I!==void 0)if(oJQ(I)!==void 0)if(m_)W=Zk("ue",I);else if(lwH(W),ry=="i")W=Zk("i",I),W["if"]=0;else if(J=W.aP(J,q)){b:{ry=="i"&&(J.Wi=!0);S=q.opt_fullscreen;S!==void 0&&$8(J,!!S);var p;if(S=!JE().K)(S=Ns(g.CU(),"CrKey")&&!(Ns(g.CU(),"CrKey")&&Ns(g.CU(),"SmartSpeaker"))||Ns(g.CU(),"PlayStation")||Ns(g.CU(),"Roku")||nGX()||Ns(g.CU(), "Xbox"))||(S=g.CU(),S=Ns(S,"AppleTV")||Ns(S,"Apple TV")||Ns(S,"CFNetwork")||Ns(S,"tvOS")),S||(S=g.CU(),S=Ns(S,"sdk_google_atv_x86")||Ns(S,"Android TV")),S=!S;S&&(Xw(),S=Ut(Kd)===0);if(p=S){switch(J.fB()){case 1:AZH(J,"pv");break;case 2:W.jo(J)}o6("pv")}S=I.toLowerCase();if(p=!p)p=jS(AZ().jn,"ssmol")&&S==="loaded"?!1:g.ao(yZL,S);if(p&&J.dC==0){ry!="i"&&(a6.done=!1);p=q!==void 0?q.opt_nativeTime:void 0;M5=p=typeof p==="number"?p:Zw();J.us=!0;var n=IN();J.dC=1;J.a7={};J.a7.start=!1;J.a7.firstquartile= !1;J.a7.midpoint=!1;J.a7.thirdquartile=!1;J.a7.complete=!1;J.a7.resume=!1;J.a7.pause=!1;J.a7.skip=!1;J.a7.mute=!1;J.a7.unmute=!1;J.a7.viewable_impression=!1;J.a7.measurable_impression=!1;J.a7.fully_viewable_audible_half_duration_impression=!1;J.a7.fullscreen=!1;J.a7.exitfullscreen=!1;J.Sg=0;n||(J.cY().N=p);NR(a6,[J],!n)}(p=J.q4[S])&&RN(J.Hw,p);jS(AZ().jn,"fmd")||g.ao(U5H,S)&&J.Xr&&J.Xr.K(J,null);switch(J.fB()){case 1:var A=Ql(S)?W.Z.custom_metric_viewable:W.Z[S];break;case 2:A=W.N[S]}if(A&&(I=A.call(W, J,q,I),jS(AZ().jn,"fmd")&&g.ao(U5H,S)&&J.Xr&&J.Xr.K(J,null),I!==void 0)){q=Zk(void 0,S);g.KU(q,I);I=q;break b}I=void 0}J.dC==3&&W.aL(J);W=I}else W=Zk("nf",I);else W=void 0;else m_?W=Zk("ue"):S?(W=Zk(),g.KU(W,l9I(S,!0,!1,!1))):W=Zk("nf");return typeof W==="string"?K.W():K.W(W)}; QFH=function(W,J){J&&(W.T=J)}; Cjc=function(W){var J={};return J.viewability=W.W,J.googleViewability=W.K,J}; wYH=function(W,J,K){K=K===void 0?{}:K;W=ZjL(co(JB),J,K,W);return Cjc(W)}; KR=function(W,J){return(W=(new RegExp("[^#]*[?&]"+J+"=([^&#]*)")).exec(W))?W[1]:null}; IH=function(W){var J=g.EH.apply(1,arguments).filter(Boolean).join("&");if(!J)return W;var K=W.match(/[?&]adurl=/);return K?W.slice(0,K.index+1)+J+"&"+W.slice(K.index+1):W+(W.indexOf("?")<0?"?":"&")+J}; qH=function(W,J){return J?"&"+W+"="+encodeURIComponent(J):""}; MWH=function(W){var J=W.url;W=W.CnN;this.W=J;this.G=W;this.K=(new Date).getTime()-17040672E5}; gEH=function(W){W=W.G;if(!W)return"";var J=qH("uap",W.platform)+qH("uapv",W.platformVersion)+qH("uafv",W.uaFullVersion)+qH("uaa",W.architecture)+qH("uam",W.model)+qH("uab",W.bitness);W.fullVersionList&&(J+="&uafvl="+encodeURIComponent(W.fullVersionList.map(function(K){return encodeURIComponent(K.brand)+";"+encodeURIComponent(K.version)}).join("|"))); W.wow64!=null&&(J+="&uaw="+Number(W.wow64));return J.slice(1)}; x50=function(W,J,K,I,q){var S=window;var p=p===void 0?!1:p;var n;K?n=(p===void 0?0:p)?"//ep1.adtrafficquality.google/bg/"+aX(K)+".js":"//pagead2.googlesyndication.com/bg/"+aX(K)+".js":n="";p=p===void 0?!1:p;K=S.document;var A={};J&&(A._scs_=J);A._bgu_=n;A._bgp_=I;A._li_="v_h.3.0.0.0";q&&(A._upb_=q);(J=S.GoogleTyFxhY)&&typeof J.push=="function"||(J=S.GoogleTyFxhY=[]);J.push(A);J=oX(K).createElement("SCRIPT");J.type="text/javascript";J.async=!0;W=(p===void 0?0:p)?TvD(GBA,aX(W)+".js"):TvD($50,aX(W)+ ".js");g.nw(J,W);(S=(S.GoogleTyFxhYEET||{})[J.src])?S():K.getElementsByTagName("head")[0].appendChild(J)}; OjT=function(){try{var W,J;return!!((W=window)==null?0:(J=W.top)==null?0:J.location.href)&&!1}catch(K){return!0}}; Su=function(W,J,K){K=K===void 0?Error():K;var I=Error.call(this);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.code=W;J+=":";K instanceof Error?(this.message=J+K.message,this.stack=K.stack||""):(this.message=J+String(K),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; lR=function(){var W=TIL();W=W===void 0?"bevasrsg":W;return new Promise(function(J){var K=window===window.top?window:OjT()?window:window.top,I=K[W],q;((q=I)==null?0:q.bevasrs)?J(new pR(I.bevasrs)):(I||(I={},I=(I.nqfbel=[],I),K[W]=I),I.nqfbel.push(function(S){J(new pR(S))}))})}; HjT=function(W){var J={c:W.MX,e:W.d5,mc:W.Ig,me:W.iQ};W.VE&&(J.co={c:W.VE.OB,a:W.VE.NE,s:W.VE.lB});return J}; nR=function(W){g.R.call(this);this.wpc=W}; pR=function(W){g.R.call(this);var J=this;this.n7=W;this.G="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.K=void 0;this.Gk=this.n7.p;this.T=this.cF.bind(this);this.addOnDisposeCallback(function(){return void VWD(J)})}; EEH=function(W){var J;return g.V(function(K){if(K.K==1){if(!W.n7.wpc)throw new Su(30,"NWA");return W.W?K.return(W.W):g.O(K,W.n7.wpc(),2)}J=K.W;W.W=new nR(J);return K.return(W.W)})}; VWD=function(W){W.K!==void 0&&(W.G.forEach(function(J){var K;(K=W.K)==null||K.removeEventListener(J,W.T)}),W.K=void 0)}; exD=function(W){var J=J===void 0?49:J;var K=[];oM(W,AB,6).forEach(function(I){s1(I,2)<=J&&K.push(s1(I,1))}); return K}; RxQ=function(W){var J=J===void 0?49:J;var K=[];oM(W,AB,6).forEach(function(I){s1(I,2)>J&&K.push(s1(I,1))}); return K}; bj0=function(W){W.then(function(){},function(){})}; DX=function(){g.R.apply(this,arguments);this.T=1;this[BIQ]=this.dispose}; ju=function(W){return{fieldType:2,fieldName:W}}; g.fR=function(W){return{fieldType:3,fieldName:W}}; m5Q=function(W){this.W=W;W.XF("/client_streamz/bg/frs",g.fR("mk"))}; rZL=function(W){this.W=W;W.XF("/client_streamz/bg/wrl",g.fR("mn"),ju("ac"),ju("sc"),g.fR("rk"),g.fR("mk"))}; oET=function(W){this.W=W;W.K_("/client_streamz/bg/ec",g.fR("en"),g.fR("mk"))}; Lky=function(W){this.W=W;W.XF("/client_streamz/bg/el",g.fR("en"),g.fR("mk"))}; kBL=function(W){this.W=W;W.K_("/client_streamz/bg/cec",ju("ec"),g.fR("mk"))}; zxX=function(W){this.W=W;W.K_("/client_streamz/bg/po/csc",ju("cs"),g.fR("mk"))}; vEL=function(W){this.W=W;W.K_("/client_streamz/bg/po/ctav",g.fR("av"),g.fR("mk"))}; Y5H=function(W){this.W=W;W.K_("/client_streamz/bg/po/cwsc",g.fR("su"),g.fR("mk"))}; sFQ=function(W){this.KE=FN(W)}; cZX=function(W,J){return HwA(W,J,lFQ)}; hB=function(W){this.KE=FN(W)}; tB=function(W){this.KE=FN(W)}; Fi=function(W){this.KE=FN(W)}; aH=function(W){this.KE=FN(W)}; PjQ=function(W){this.KE=FN(W)}; g.idv=function(W){var J=new aH;J=iy(J,1,W.K);var K=XYL(W);J=HwA(J,K,d3Q);K=[];for(var I=[],q=g.d(W.W.keys()),S=q.next();!S.done;S=q.next())I.push(S.value.split(","));for(q=0;q>>31)&4294967295;h=q[0];var a=q[1],y=q[2],U=q[3],Q=q[4];for(F=0;F<80;F++){if(F<40)if(F<20){var C=U^a&(y^U);var T=1518500249}else C=a^y^U,T=1859775393;else F<60?(C=a&y|U&(a|y),T=2400959708):(C=a^y^U,T=3395469782);C=((h<<5|h>>>27)&4294967295)+C+Q+T+t[F]&4294967295;Q=U;U=y;y=(a<<30|a>>>2)&4294967295;a=h;h=C}q[0]=q[0]+h&4294967295;q[1]=q[1]+a&4294967295;q[2]= q[2]+y&4294967295;q[3]=q[3]+U&4294967295;q[4]=q[4]+Q&4294967295} function K(h,t){if(typeof h==="string"){h=unescape(encodeURIComponent(h));for(var F=[],a=0,y=h.length;a=56;F--)S[F]=t&255,t>>>=8;J(S);for(F=t=0;F<5;F++)for(var a=24;a>=0;a-=8)h[t++]=q[F]>>a&255;return h} for(var q=[],S=[],p=[],n=[128],A=1;A<64;++A)n[A]=0;var D,f;W();return{reset:W,update:K,digest:I,FM:function(){for(var h=I(),t="",F=0;F1)));p=p.next)q||(S=p);q&&(K.W==0&&I==1?Piy(K,J):(S?(I=S,I.next==K.T&&(K.T=I),I.next=I.next.next):XZD(K),W_y(K,q,3,J)))}W.G=null}else wO(W,3,J)}; Vc=function(W,J){W.K||W.W!=2&&W.W!=3||iZD(W);W.T?W.T.next=J:W.K=J;W.T=J}; J9A=function(W,J,K,I){var q=OG(null,null,null);q.W=new g.MZ(function(S,p){q.G=J?function(n){try{var A=J.call(I,n);S(A)}catch(D){p(D)}}:S; q.K=K?function(n){try{var A=K.call(I,n);A===void 0&&n instanceof e_?p(n):S(A)}catch(D){p(D)}}:p}); q.W.G=W;Vc(W,q);return q.W}; wO=function(W,J,K){W.W==0&&(W===K&&(J=3,K=new TypeError("Promise cannot resolve to itself")),W.W=1,v8H(K,W.hIO,W.wP0,W)||(W.Z=K,W.W=J,W.G=null,iZD(W),J!=3||K instanceof e_||K_c(W,K)))}; v8H=function(W,J,K,I){if(W instanceof g.MZ)return cE0(W,J,K,I),!0;if(W)try{var q=!!W.$goog_Thenable}catch(p){q=!1}else q=!1;if(q)return W.then(J,K,I),!0;if(g.i0(W))try{var S=W.then;if(typeof S==="function")return Ikc(W,S,J,K,I),!0}catch(p){return K.call(I,p),!0}return!1}; Ikc=function(W,J,K,I,q){function S(A){n||(n=!0,I.call(q,A))} function p(A){n||(n=!0,K.call(q,A))} var n=!1;try{J.call(W,p,S)}catch(A){S(A)}}; iZD=function(W){W.S||(W.S=!0,g.Cq(W.vR,W))}; XZD=function(W){var J=null;W.K&&(J=W.K,W.K=J.next,J.next=null);W.K||(W.T=null);return J}; W_y=function(W,J,K,I){if(K==3&&J.K&&!J.T)for(;W&&W.j;W=W.G)W.j=!1;if(J.W)J.W.G=null,qVH(J,K,I);else try{J.T?J.G.call(J.context):qVH(J,K,I)}catch(q){SVy.call(null,q)}bdQ(zVI,J)}; qVH=function(W,J,K){J==2?W.G.call(W.context,K):W.K&&W.K.call(W.context,K)}; K_c=function(W,J){W.j=!0;g.Cq(function(){W.j&&SVy.call(null,J)})}; e_=function(W){Dp.call(this,W)}; g.RI=function(W,J){g.t0.call(this);this.F4=W||1;this.wh=J||g.vH;this.Ln=(0,g.Io)(this.va3,this);this.tG=g.px()}; g.ba=function(W,J,K){if(typeof W==="function")K&&(W=(0,g.Io)(W,K));else if(W&&typeof W.handleEvent=="function")W=(0,g.Io)(W.handleEvent,W);else throw Error("Invalid listener argument");return Number(J)>2147483647?-1:g.vH.setTimeout(W,J||0)}; BS=function(W,J){var K=null;return(new g.MZ(function(I,q){K=g.ba(function(){I(J)},W); K==-1&&q(Error("Failed to schedule timer."))})).b2(function(I){g.vH.clearTimeout(K); throw I;})}; g.rO=function(W){g.R.call(this);this.Z=W;this.T=0;this.G=100;this.j=!1;this.K=new Map;this.S=new Set;this.flushInterval=3E4;this.W=new g.RI(this.flushInterval);this.W.listen("tick",this.Sr,!1,this);g.B(this,this.W)}; p6Q=function(W){W.W.enabled||W.W.start();W.T++;W.T>=W.G&&W.Sr()}; lkc=function(W,J){return W.S.has(J)?void 0:W.K.get(J)}; nvc=function(W){for(var J=0;J2?W.W.statusText:""}catch(K){J=""}W.T=J+" ["+W.getStatus()+"]";dRQ(W)}}finally{Y1(W)}}}; Y1=function(W,J){if(W.W){W.S&&(clearTimeout(W.S),W.S=null);var K=W.W;W.W=null;J||W.dispatchEvent("ready");try{K.onreadystatechange=null}catch(I){}}}; PS=function(W){var J=W.getStatus();a:switch(J){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var K=!0;break a;default:K=!1}if(!K){if(J=J===0)W=g.MO(String(W.N))[1]||null,!W&&g.vH.self&&g.vH.self.location&&(W=g.vH.self.location.protocol.slice(0,-1)),J=!ZZ0.test(W?W.toLowerCase():"");K=J}return K}; g.cS=function(W){return W.W?W.W.readyState:0}; g.XI=function(W){try{return W.W?W.W.responseText:""}catch(J){return""}}; g.Wg=function(W){try{if(!W.W)return null;if("response"in W.W)return W.W.response;switch(W.XW){case "":case "text":return W.W.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in W.W)return W.W.mozResponseArrayBuffer}return null}catch(J){return null}}; g.Q6X=function(W){var J={};W=(W.W&&g.cS(W)>=2?W.W.getAllResponseHeaders()||"":"").split("\r\n");for(var K=0;K>1,J),w1(W,W.length>>1)]}; Kac=function(W){var J=g.d(JBv(W,Mo));W=J.next().value;J=J.next().value;return W.toString(16)+J.toString(16)}; IXy=function(W,J){var K=JBv(J);W=new Uint32Array(W.buffer);J=W[0];var I=g.d(K);K=I.next().value;I=I.next().value;for(var q=1;q>>8|p<<24,p+=S|0,p^=n+38293,S=S<<3|S>>>29,S^=p,A=A>>>8|A<<24,A+=n|0,A^=D+38293,n=n<<3|n>>>29,n^=A;S=[S,p];W[q]^=S[0];q+1=K?(globalThis.sessionStorage.removeItem(W),["e"]):["a",new Uint8Array(I.buffer,J+4)]}; g1=function(W,J,K){K=K===void 0?[]:K;this.maxItems=W;this.W=J===void 0?0:J;this.K=K}; p4T=function(W){var J=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!J)return new g1(W);var K=J.split(",");if(K.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new g1(W);J=K.slice(1);J.length===1&&J[0]===""&&(J=[]);K=Number(K[0]);return isNaN(K)||K<0||K>J.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new g1(W)):new g1(W,K,J)}; lX0=function(W,J){this.logger=J;try{var K=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(I){K=!1}K&&(this.index=p4T(W))}; n7X=function(W,J,K,I,q){var S=W.index?Sf(W.logger,function(){return q9y(W.index,Kac(J),K,I,q)},"W"):"u"; W.logger.Pp(S)}; ABA=function(W,J,K){var I=g.d(W.index?Sf(W.logger,function(){return S9A(Kac(J),K)},"R"):["u"]),q=I.next().value; I=I.next().value;W.logger.Ra(q);return I}; fXc=function(W){function J(){K-=I;K-=q;K^=q>>>13;I-=q;I-=K;I^=K<<8;q-=K;q-=I;q^=I>>>13;K-=I;K-=q;K^=q>>>12;I-=q;I-=K;I^=K<<16;q-=K;q-=I;q^=I>>>5;K-=I;K-=q;K^=q>>>3;I-=q;I-=K;I^=K<<10;q-=K;q-=I;q^=I>>>15} W=DHv(W);for(var K=2654435769,I=2654435769,q=314159265,S=W.length,p=S,n=0;p>=12;p-=12,n+=12)K+=GQ(W,n),I+=GQ(W,n+4),q+=GQ(W,n+8),J();q+=S;switch(p){case 11:q+=W[n+10]<<24;case 10:q+=W[n+9]<<16;case 9:q+=W[n+8]<<8;case 8:I+=W[n+7]<<24;case 7:I+=W[n+6]<<16;case 6:I+=W[n+5]<<8;case 5:I+=W[n+4];case 4:K+=W[n+3]<<24;case 3:K+=W[n+2]<<16;case 2:K+=W[n+1]<<8;case 1:K+=W[n+0]}J();return jHT.toString(q)}; DHv=function(W){for(var J=[],K=0;K>7,W.error.code]);I.set(K,4);return I}; Rb=function(W,J,K){$V.call(this,W);this.T=J;this.clientState=K;this.W="S";this.K="q"}; ef=function(W){return globalThis.TextEncoder?(new TextEncoder).encode(W):g.Kr(W)}; FaQ=function(W,J,K){return W instanceof UL?r9X(W,K,J,1):W.Aj(K)}; Bg=function(W){g.R.call(this);var J=this;this.G=new g.FB;this.T=0;this.K=void 0;this.state=2;this.n7=W.n7;this.wi=W.wi;this.D2=Object.assign({},aXy,W.D2||{});this.logger=W.n7.jT();var K;this.onError=(K=W.onError)!=null?K:function(){}; this.G0=W.G0||!1;if(uiQ(W)){var I=this.n7;this.j=function(){return vvT(I).catch(function(p){p=J.reportError(new Su(J.W?20:32,"TRG:Disposed",p));J.K=p;var n;(n=J.W)==null||n.dispose();J.W=void 0;J.G.reject(p)})}; YVX(I,function(){return void bl(J)}); I.N===2&&bl(this)}else this.j=W.R9y,bl(this);var q=this.logger.share();q.IM("o");var S=new Ib(q,"o");this.G.promise.then(function(){S.done();q.DD();q.dispose()},function(){return void q.dispose()}); this.addOnDisposeCallback(function(){J.W?(J.W.dispose(),J.W=void 0):J.K?J.logger.DD():(J.K=J.reportError(new Su(32,"TNP:Disposed")),J.logger.DD(),J.G.reject(J.K))}); g.B(this,this.logger)}; NdX=function(W,J){if(!(J instanceof Su))if(J instanceof oI){var K=Error(J.toString());K.stack=J.stack;J=new Su(11,"EBH:Error",K)}else J=new Su(12,"BSO:Unknown",J);return W.reportError(J)}; bl=function(W){var J,K,I,q,S,p,n,A,D,f,h,t,F,a,y;return g.V(function(U){switch(U.K){case 1:J=void 0;W.T++;K=new g.FB;W.n7 instanceof ZW&&W.n7.T.push(K.promise);if(!W.G0){U.VK(2);break}I=new g.FB;setTimeout(function(){return void I.resolve()}); return g.O(U,I.promise,2);case 2:return q=W.logger.share(),g.yQ(U,4,5),W.state=5,S={},p=[],g.O(U,Cu(W.n7.snapshot({MX:S,s6:p}),W.D2.L18,function(){return Promise.reject(new Su(15,"MDA:Timeout"))}),7); case 7:n=U.W;if(W.Iu())throw new Su(W.W?20:32,"MDA:Disposed");A=p[0];W.state=6;return g.O(U,Cu(FaQ(W.wi,q,n),W.D2.Yo,function(){return Promise.reject(new Su(10,"BWB:Timeout"))}),8); case 8:D=U.W;if(W.Iu())throw new Su(W.W?20:32,"BWB:Disposed");W.state=7;J=Sf(q,function(){var C=dHQ(W,D,K,A);C.G.promise.then(function(){return void W.j()}); return C},"i"); case 5:g.$c(U);q.dispose();g.OH(U,6);break;case 4:f=g.g0(U);(h=J)==null||h.dispose();if(!W.K){t=NdX(W,f);K.resolve();var Q;if(Q=W.n7 instanceof ZW&&W.T<2)a:if(f instanceof Su)Q=f.code!==32&&f.code!==20&&f.code!==10;else{if(f instanceof oI)switch(f.code){case 2:case 13:case 14:case 4:break;default:Q=!1;break a}Q=!0}if(Q)return F=(1+Math.random()*.25)*(W.W?6E4:1E3),a=setTimeout(function(){return void W.j()},F),W.addOnDisposeCallback(function(){return void clearTimeout(a)}),U.return(); W.K=t}q.Zy(W.W?13:14);W.G.reject(W.K);return U.return();case 6:W.state=8,W.T=0,(y=W.W)==null||y.dispose(),W.W=J,W.G.resolve(),g.d0(U)}})}; dHQ=function(W,J,K,I){var q=cs(J,2)*1E3;if(q<=0)throw new Su(31,"TTM:Invalid");if(Ps(J,4))return new VH(W.logger,Ps(J,4),q);if(!cs(J,3))return new Hg(W.logger,jB(xP(J,1)),q);if(!I)throw new Su(4,"PMD:Undefined");I=I(jB(xP(J,1)));if(!(I instanceof Function))throw new Su(16,"APF:Failed");W.S=Math.floor((Date.now()+q)/1E3);W=new TQ(W.logger,I,cs(J,3),q);W.addOnDisposeCallback(function(){return void K.resolve()}); return W}; yBQ=function(W,J){J=J instanceof Su?J:new Su(5,"TVD:error",J);return W.reportError(J)}; w40=function(W,J,K){try{if(W.Iu())throw new Su(21,"BNT:disposed");if(!W.W&&W.K)throw W.K;var I,q;return(q=(I=UHQ(W,J,K))!=null?I:ZRD(W,J,K))!=null?q:QHL(W,J,K)}catch(S){if(!J.iQ)throw yBQ(W,S);return CRT(W,K,S)}}; UHQ=function(W,J,K){var I;return(I=W.W)==null?void 0:OL(I,function(){return me(W,J)},K,function(q){var S; if(W.W instanceof TQ&&((S=J.VE)==null?0:S.lB))try{var p;(p=W.cache)==null||n7X(p,me(W,J),q,J.VE.OB,W.S-120)}catch(n){W.reportError(new Su(24,"ELX:write",n))}})}; ZRD=function(W,J,K){var I;if((I=J.VE)!=null&&I.NE)try{var q,S=(q=W.cache)==null?void 0:ABA(q,me(W,J),J.VE.OB);return S?K?Sf(W.logger,function(){return g.IB(S,2)},"a"):S:void 0}catch(p){W.reportError(new Su(23,"RXO:read",p))}}; QHL=function(W,J,K){var I={stack:[],error:void 0,hasError:!1};try{if(!J.Ig)throw new Su(29,"SDF:notready");return OL(ayH(I,new Rb(W.logger,0,W.state)),function(){return me(W,J)},K)}catch(q){I.error=q,I.hasError=!0}finally{uLc(I)}}; CRT=function(W,J,K){var I={stack:[],error:void 0,hasError:!1};try{var q=yBQ(W,K);return OL(ayH(I,new EL(W.logger,q)),function(){return[]},J)}catch(S){I.error=S,I.hasError=!0}finally{uLc(I)}}; me=function(W,J){return J.d5?J.d5:J.MX?Sf(W.logger,function(){return J.d5=ef(J.MX)},"c"):[]}; r1=function(){var W=0,J;return function(K){J||(J=new pu);var I=new Rb(J,W,1),q=OL(I,function(){return ef(K)},!0); I.dispose();W++;return q}}; ob=function(W){this.KE=FN(W)}; Muy=function(W,J,K){this.Vb=W;this.ag=J;this.metadata=K}; Lu=function(W,J){J=J===void 0?{}:J;this.GY0=W;this.metadata=J;this.status=null}; kV=function(W,J,K,I,q){this.name=W;this.methodType="unary";this.requestType=J;this.responseType=K;this.W=I;this.K=q}; zQ=function(W){this.KE=FN(W)}; vg=function(W){this.KE=FN(W)}; YV=function(W){this.KE=FN(W)}; sL=function(W,J){this.Z=W.gtK;this.N=J;this.W=W.xhr;this.G=[];this.j=[];this.S=[];this.T=[];this.K=[];this.Z&&g7D(this)}; ORQ=function(W,J){var K=new GaQ;g.S_(W.W,"complete",function(){if(PS(W.W)){var I=g.XI(W.W);if(J&&W.W.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");I=atob(I)}try{var q=W.N(I)}catch(n){cg(W,Pg(new oI(13,"Error when deserializing response data; error: "+n+(", response: "+I)),K));return}I=A9X(W.W.getStatus());XB(W,W0(W));I==0?$Hv(W,q):cg(W,Pg(new oI(I,"Xhr succeeded but the status code is not 200"),K))}else{I=g.XI(W.W);q=W0(W);if(I){var S=xHQ(W, I);I=S.code;var p=S.details;S=S.metadata}else I=2,p="Rpc failed due to xhr error. uri: "+String(W.W.N)+", error code: "+W.W.K+", error: "+W.W.getLastError(),S=q;XB(W,q);cg(W,Pg(new oI(I,p,S),K))}})}; g7D=function(W){W.Z.xI("data",function(J){if("1"in J){var K=J["1"];try{var I=W.N(K)}catch(q){cg(W,new oI(13,"Error when deserializing response data; error: "+q+(", response: "+K)))}I&&$Hv(W,I)}if("2"in J)for(J=xHQ(W,J["2"]),K=0;K-1&&W.splice(J,1)}; $Hv=function(W,J){for(var K=0;K>4&15).toString(16)+(W&15).toString(16)}; RhQ=function(W){return W.replace(/%25([0-9a-fA-F]{2})/g,"%$1")}; jr=function(W,J){this.K=this.W=null;this.G=W||null;this.T=!!J}; FY=function(W){W.W||(W.W=new Map,W.K=0,W.G&&xp(W.G,function(J,K){W.add(F1(J),K)}))}; bRH=function(W,J){FY(W);J=aZ(W,J);return W.W.has(J)}; g.Bdv=function(W,J,K){W.remove(J);K.length>0&&(W.G=null,W.W.set(aZ(W,J),g.U$(K)),W.K=W.K+K.length)}; aZ=function(W,J){J=String(J);W.T&&(J=J.toLowerCase());return J}; VuA=function(W,J){J&&!W.T&&(FY(W),W.G=null,W.W.forEach(function(K,I){var q=I.toLowerCase();I!=q&&(this.remove(I),g.Bdv(this,q,K))},W)); W.T=J}; g.mHy=function(W){var J="";g.BR(W,function(K,I){J+=I;J+=":";J+=K;J+="\r\n"}); return J}; g.uY=function(W,J,K){if(g.PR(K))return W;K=g.mHy(K);if(typeof W==="string")return Et(W,g.tz(J),K);g.hh(W,J,K);return W}; g.NW=function(W){g.R.call(this);this.K=W;this.W={}}; rB0=function(W,J,K,I,q,S){if(Array.isArray(K))for(var p=0;p=0)return!0;try{var J=new g.Sr(W)}catch(K){return g.hW(qGQ,function(I){return W.search(I)>0})!=null}return J.S.match(SGy)?!0:g.hW(qGQ,function(K){return W.match(K)!=null})!=null}; g.H0=function(W,J){return W.replace(l$Q,function(K,I){try{var q=g.Xe(J,I);if(q==null||q.toString()==null)return K;q=q.toString();if(q==""||!g.FC(g.N3(q)))return encodeURIComponent(q).replace(/%2C/g,",")}catch(S){}return K})}; VR=function(W,J){return Object.is(W,J)}; er=function(W){var J=Ed;Ed=W;return J}; n1H=function(W){W&&(W.DP=0);return er(W)}; A0Q=function(W,J){er(J);if(W&&W.v$!==void 0&&W.pg!==void 0&&W.Yf!==void 0){if(RZ(W))for(J=W.DP;JW.DP;)W.v$.pop(),W.Yf.pop(),W.pg.pop()}}; jIQ=function(W,J,K){DZy(W);if(W.d8.length===0&&W.v$!==void 0)for(var I=0;I0}; f$0=function(W){W.v$!=null||(W.v$=[]);W.pg!=null||(W.pg=[]);W.Yf!=null||(W.Yf=[])}; DZy=function(W){W.d8!=null||(W.d8=[]);W.IV!=null||(W.IV=[])}; FbA=function(W){function J(){if(Ed!==null){var I=Ed.DP++;f$0(Ed);I0?" "+J:J))}}; g.n3=function(W,J){if(W.classList)Array.prototype.forEach.call(J,function(q){g.lK(W,q)}); else{var K={};Array.prototype.forEach.call(qi(W),function(q){K[q]=!0}); Array.prototype.forEach.call(J,function(q){K[q]=!0}); J="";for(var I in K)J+=J.length>0?" "+I:I;g.SN(W,J)}}; g.A5=function(W,J){W.classList?W.classList.remove(J):g.p3(W,J)&&g.SN(W,Array.prototype.filter.call(qi(W),function(K){return K!=J}).join(" "))}; g.D3=function(W,J){W.classList?Array.prototype.forEach.call(J,function(K){g.A5(W,K)}):g.SN(W,Array.prototype.filter.call(qi(W),function(K){return!g.ao(J,K)}).join(" "))}; g.jN=function(W,J,K){K?g.lK(W,J):g.A5(W,J)}; ZqX=function(W,J){var K=!g.p3(W,J);g.jN(W,J,K)}; g.f3=function(){g.t0.call(this);this.W=0;this.endTime=this.startTime=null}; QIX=function(W,J){Array.isArray(J)||(J=[J]);J=J.map(function(K){return typeof K==="string"?K:K.property+" "+K.duration+"s "+K.timing+" "+K.delay+"s"}); g.bj(W,"transition",J.join(","))}; h5=function(W,J,K,I,q){g.f3.call(this);this.K=W;this.j=J;this.S=K;this.T=I;this.Z=Array.isArray(q)?q:[q]}; CaQ=function(W,J,K,I){return new h5(W,J,{opacity:K},{opacity:I},{property:"opacity",duration:J,timing:"ease-in",delay:0})}; M_H=function(W){W=dX(W);if(W=="")return null;var J=String(W.slice(0,4)).toLowerCase();if(("url("1||W&&W.split(")"),null;if(W.indexOf("(")>0){if(/"|'/.test(W))return null;J=/([\-\w]+)\(/g;for(var K;K=J.exec(W);)if(!(K[1].toLowerCase()in wSQ))return null}return W}; t5=function(W,J){W=g.vH[W];return W&&W.prototype?(J=Object.getOwnPropertyDescriptor(W.prototype,J))&&J.get||null:null}; g1y=function(W){var J=g.vH.CSSStyleDeclaration;return J&&J.prototype&&J.prototype[W]||null}; GvQ=function(W,J,K,I){if(W)return W.apply(J,I);if(g.FH&&document.documentMode<10){if(!J[K].call)throw Error("IE Clobbering detected");}else if(typeof J[K]!="function")throw Error("Clobbering detected");return J[K].apply(J,I)}; HqL=function(W){if(!W)return"";var J=document.createElement("div").style;$ZQ(W).forEach(function(K){var I=g.ca&&K in xZQ?K:K.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");tX(I,"--")||tX(I,"var")||(K=GvQ(OqD,W,W.getPropertyValue?"getPropertyValue":"getAttribute",[K])||"",K=M_H(K),K!=null&&GvQ(TOH,J,J.setProperty?"setProperty":"setAttribute",[I,K]))}); return J.cssText||""}; $ZQ=function(W){g.WR(W)?W=g.U$(W):(W=g.zT(W),g.Nj(W,"cssText"));return W}; g.uK=function(W){var J,K=J=0,I=!1;W=W.split(V_c);for(var q=0;q.4?-1:1;return(J==0?null:J)==-1?"rtl":"ltr"}; g.U6=function(W){if(W instanceof Ni||W instanceof d5||W instanceof yh)return W;if(typeof W.next=="function")return new Ni(function(){return W}); if(typeof W[Symbol.iterator]=="function")return new Ni(function(){return W[Symbol.iterator]()}); if(typeof W.PC=="function")return new Ni(function(){return W.PC()}); throw Error("Not an iterator or iterable.");}; Ni=function(W){this.K=W}; d5=function(W){this.K=W}; yh=function(W){Ni.call(this,function(){return W}); this.G=W}; Z3=function(W,J,K,I,q,S,p,n){this.W=W;this.Z=J;this.G=K;this.j=I;this.T=q;this.S=S;this.K=p;this.N=n}; Qh=function(W,J){if(J==0)return W.W;if(J==1)return W.K;var K=Oh(W.W,W.G,J),I=Oh(W.G,W.T,J);W=Oh(W.T,W.K,J);K=Oh(K,I,J);I=Oh(I,W,J);return Oh(K,I,J)}; bqQ=function(W,J){var K=(J-W.W)/(W.K-W.W);if(K<=0)return 0;if(K>=1)return 1;for(var I=0,q=1,S=0,p=0;p<8;p++){S=Qh(W,K);var n=(Qh(W,K+1E-6)-S)/1E-6;if(Math.abs(S-J)<1E-6)return K;if(Math.abs(n)<1E-6)break;else S1E-6&&p<8;p++)S=0}; g.g5=function(W){g.R.call(this);this.S=1;this.G=[];this.T=0;this.W=[];this.K={};this.Z=!!W}; mZA=function(W,J,K){g.Cq(function(){W.apply(J,K)})}; g.G9=function(W){this.W=W}; $Q=function(W){this.W=W}; r0c=function(W){this.data=W}; o1Q=function(W){return W===void 0||W instanceof r0c?W:new r0c(W)}; xQ=function(W){this.W=W}; g.LbH=function(W){var J=W.creation;W=W.expiration;return!!W&&Wg.px()}; g.O6=function(W){this.W=W}; kvQ=function(){}; T9=function(){}; Hq=function(W){this.W=W;this.K=null}; Vh=function(W){if(W.W==null)throw Error("Storage mechanism: Storage unavailable");var J;(zwQ?W.isAvailable():(J=W.K)!=null?J:W.isAvailable())||Jn(Error("Storage mechanism: Storage unavailable"))}; E6=function(){var W=null;try{W=g.vH.localStorage||null}catch(J){}Hq.call(this,W)}; v1X=function(){var W=null;try{W=g.vH.sessionStorage||null}catch(J){}Hq.call(this,W)}; eN=function(W,J){this.K=W;this.W=J+"::"}; g.RW=function(W){var J=new E6;return J.isAvailable()?W?new eN(J,W):J:null}; bK=function(W,J){this.W=W;this.K=J}; Bq=function(W){this.W=[];if(W)a:{if(W instanceof Bq){var J=W.Oa();W=W.S1();if(this.W.length<=0){for(var K=this.W,I=0;I>>6:(S<65536?n[K++]=224|S>>>12:(n[K++]=240|S>>>18,n[K++]=128|S>>>12&63),n[K++]=128|S>>> 6&63),n[K++]=128|S&63);return n}; L3=function(W){for(var J=W.length;--J>=0;)W[J]=0}; kQ=function(W,J,K,I,q){this.K8=W;this.SV=J;this.aC=K;this.CI=I;this.n33=q;this.zp=W&&W.length}; z9=function(W,J){this.hL=W;this.X9=0;this.Gs=J}; vq=function(W,J){W.jF[W.pending++]=J&255;W.jF[W.pending++]=J>>>8&255}; YQ=function(W,J,K){W.iD>16-K?(W.Vk|=J<>16-W.iD,W.iD+=K-16):(W.Vk|=J<>>=1,K<<=1;while(--J>0);return K>>>1}; XSL=function(W,J,K){var I=Array(16),q=0,S;for(S=1;S<=15;S++)I[S]=q=q+K[S-1]<<1;for(K=0;K<=J;K++)q=W[K*2+1],q!==0&&(W[K*2]=PaD(I[q]++,q))}; Wey=function(W){var J;for(J=0;J<286;J++)W.QT[J*2]=0;for(J=0;J<30;J++)W.Oo[J*2]=0;for(J=0;J<19;J++)W.AC[J*2]=0;W.QT[512]=1;W.ZD=W.Bl=0;W.Zo=W.matches=0}; iuA=function(W){W.iD>8?vq(W,W.Vk):W.iD>0&&(W.jF[W.pending++]=W.Vk);W.Vk=0;W.iD=0}; JQy=function(W,J,K){iuA(W);vq(W,K);vq(W,~K);oW.Ml(W.jF,W.window,J,K,W.pending);W.pending+=K}; Key=function(W,J,K,I){var q=J*2,S=K*2;return W[q]>>7)];s6(W,p,K);n=Jw[p];n!==0&&(q-=KX[p],YQ(W,q,n))}}while(I>1;p>=1;p--)cq(W,K,p);A=S;do p=W.wK[1],W.wK[1]=W.wK[W.WU--],cq(W,K,1),I=W.wK[1],W.wK[--W.Yj]=p,W.wK[--W.Yj]=I,K[A*2]=K[p*2]+K[I*2],W.depth[A]=(W.depth[p]>=W.depth[I]?W.depth[p]:W.depth[I])+1,K[p*2+1]=K[I*2+1]=A,W.wK[1]=A++,cq(W,K,1);while(W.WU>= 2);W.wK[--W.Yj]=W.wK[1];p=J.hL;A=J.X9;I=J.Gs.K8;q=J.Gs.zp;S=J.Gs.SV;var D=J.Gs.aC,f=J.Gs.n33,h,t=0;for(h=0;h<=15;h++)W.rJ[h]=0;p[W.wK[W.Yj]*2+1]=0;for(J=W.Yj+1;J<573;J++){var F=W.wK[J];h=p[p[F*2+1]*2+1]+1;h>f&&(h=f,t++);p[F*2+1]=h;if(!(F>A)){W.rJ[h]++;var a=0;F>=D&&(a=S[F-D]);var y=p[F*2];W.ZD+=y*(h+a);q&&(W.Bl+=y*(I[F*2+1]+a))}}if(t!==0){do{for(h=f-1;W.rJ[h]===0;)h--;W.rJ[h]--;W.rJ[h+1]+=2;W.rJ[f]--;t-=2}while(t>0);for(h=f;h!==0;h--)for(F=W.rJ[h];F!==0;)I=W.wK[--J],I>A||(p[I*2+1]!==h&&(W.ZD+=(h- p[I*2+1])*p[I*2],p[I*2+1]=h),F--)}XSL(K,n,W.rJ)}; qLH=function(W,J,K){var I,q=-1,S=J[1],p=0,n=7,A=4;S===0&&(n=138,A=3);J[(K+1)*2+1]=65535;for(I=0;I<=K;I++){var D=S;S=J[(I+1)*2+1];++p>>=1)if(J&1&&W.QT[K*2]!==0)return 0;if(W.QT[18]!==0||W.QT[20]!==0||W.QT[26]!==0)return 1;for(K=32;K<256;K++)if(W.QT[K*2]!==0)return 1;return 0}; q1=function(W,J,K){W.jF[W.Ld+W.Zo*2]=J>>>8&255;W.jF[W.Ld+W.Zo*2+1]=J&255;W.jF[W.jY+W.Zo]=K&255;W.Zo++;J===0?W.QT[K*2]++:(W.matches++,J--,W.QT[(Pq[K]+256+1)*2]++,W.Oo[(J<256?iu[J]:iu[256+(J>>>7)])*2]++);return W.Zo===W.OY-1}; pX=function(W,J){W.msg=SG[J];return J}; lu=function(W){for(var J=W.length;--J>=0;)W[J]=0}; nX=function(W){var J=W.state,K=J.pending;K>W.L7&&(K=W.L7);K!==0&&(oW.Ml(W.output,J.jF,J.xf,K,W.j$),W.j$+=K,J.xf+=K,W.Ae+=K,W.L7-=K,J.pending-=K,J.pending===0&&(J.xf=0))}; jG=function(W,J){var K=W.lJ>=0?W.lJ:-1,I=W.aG-W.lJ,q=0;if(W.level>0){W.oB.Xp===2&&(W.oB.Xp=pgy(W));IY(W,W.LR);IY(W,W.Mt);qLH(W,W.QT,W.LR.X9);qLH(W,W.Oo,W.Mt.X9);IY(W,W.qE);for(q=18;q>=3&&W.AC[lWv[q]*2+1]===0;q--);W.ZD+=3*(q+1)+5+5+4;var S=W.ZD+3+7>>>3;var p=W.Bl+3+7>>>3;p<=S&&(S=p)}else S=p=I+5;if(I+4<=S&&K!==-1)YQ(W,J?1:0,3),JQy(W,K,I);else if(W.strategy===4||p===S)YQ(W,2+(J?1:0),3),IWy(W,Aw,D6);else{YQ(W,4+(J?1:0),3);K=W.LR.X9+1;I=W.Mt.X9+1;q+=1;YQ(W,K-257,5);YQ(W,I-1,5);YQ(W,q-4,4);for(S=0;S>>8&255;W.jF[W.pending++]=J&255}; nV0=function(W,J){var K=W.Gi,I=W.aG,q=W.rV,S=W.hq,p=W.aG>W.KU-262?W.aG-(W.KU-262):0,n=W.window,A=W.Yy,D=W.y_,f=W.aG+258,h=n[I+q-1],t=n[I+q];W.rV>=W.Zm&&(K>>=2);S>W.zx&&(S=W.zx);do{var F=J;if(n[F+q]===t&&n[F+q-1]===h&&n[F]===n[I]&&n[++F]===n[I+1]){I+=2;for(F++;n[++I]===n[++F]&&n[++I]===n[++F]&&n[++I]===n[++F]&&n[++I]===n[++F]&&n[++I]===n[++F]&&n[++I]===n[++F]&&n[++I]===n[++F]&&n[++I]===n[++F]&&Iq){W.Tw=J;q=F;if(F>=S)break;h=n[I+q-1];t=n[I+q]}}}while((J=D[J&A])>p&&--K!== 0);return q<=W.zx?q:W.zx}; aY=function(W){var J=W.KU,K;do{var I=W.E6-W.zx-W.aG;if(W.aG>=J+(J-262)){oW.Ml(W.window,W.window,J,J,0);W.Tw-=J;W.aG-=J;W.lJ-=J;var q=K=W.By;do{var S=W.head[--q];W.head[q]=S>=J?S-J:0}while(--K);q=K=J;do S=W.y_[--q],W.y_[q]=S>=J?S-J:0;while(--K);I+=J}if(W.oB.TB===0)break;q=W.oB;K=W.window;S=W.aG+W.zx;var p=q.TB;p>I&&(p=I);p===0?K=0:(q.TB-=p,oW.Ml(K,q.input,q.pW,p,S),q.state.wrap===1?q.Xv=tw(q.Xv,K,p,S):q.state.wrap===2&&(q.Xv=F0(q.Xv,K,p,S)),q.pW+=p,q.mE+=p,K=p);W.zx+=K;if(W.zx+W.yN>=3)for(I=W.aG-W.yN, W.HD=W.window[I],W.HD=(W.HD<=3&&(W.HD=(W.HD<=3)if(K=q1(W,W.aG-W.Tw,W.KP-3),W.zx-=W.KP,W.KP<=W.rZ&&W.zx>=3){W.KP--;do W.aG++,W.HD=(W.HD<=3&&(W.HD=(W.HD<4096)&&(W.KP=2));if(W.rV>=3&&W.KP<=W.rV){I=W.aG+W.zx-3;K=q1(W,W.aG-1-W.U1,W.rV-3);W.zx-=W.rV-1;W.rV-=2;do++W.aG<=I&&(W.HD=(W.HD<=3&&W.aG>0&&(I=W.aG-1,K=S[I],K===S[++I]&&K===S[++I]&&K===S[++I])){for(q=W.aG+258;K===S[++I]&&K===S[++I]&&K===S[++I]&&K===S[++I]&&K===S[++I]&&K===S[++I]&&K===S[++I]&&K===S[++I]&&IW.zx&&(W.KP=W.zx)}W.KP>=3?(K=q1(W,1,W.KP-3),W.zx-=W.KP,W.aG+=W.KP,W.KP=0):(K=q1(W,0,W.window[W.aG]),W.zx--,W.aG++);if(K&&(jG(W,!1),W.oB.L7===0))return 1}W.yN=0;return J=== 4?(jG(W,!0),W.oB.L7===0?3:4):W.Zo&&(jG(W,!1),W.oB.L7===0)?1:2}; Doc=function(W,J){for(var K;;){if(W.zx===0&&(aY(W),W.zx===0)){if(J===0)return 1;break}W.KP=0;K=q1(W,0,W.window[W.aG]);W.zx--;W.aG++;if(K&&(jG(W,!1),W.oB.L7===0))return 1}W.yN=0;return J===4?(jG(W,!0),W.oB.L7===0?3:4):W.Zo&&(jG(W,!1),W.oB.L7===0)?1:2}; dl=function(W,J,K,I,q){this.vz=W;this.JsK=J;this.lJ3=K;this.byS=I;this.func=q}; jbc=function(){this.oB=null;this.status=0;this.jF=null;this.wrap=this.pending=this.xf=this.w8=0;this.Gz=null;this.t2=0;this.method=8;this.RU=-1;this.Yy=this.K9=this.KU=0;this.window=null;this.E6=0;this.head=this.y_=null;this.hq=this.Zm=this.strategy=this.level=this.rZ=this.Gi=this.rV=this.zx=this.Tw=this.aG=this.Bs=this.U1=this.KP=this.lJ=this.Re=this.Ca=this.b9=this.By=this.HD=0;this.QT=new oW.IY(1146);this.Oo=new oW.IY(122);this.AC=new oW.IY(78);lu(this.QT);lu(this.Oo);lu(this.AC);this.qE=this.Mt= this.LR=null;this.rJ=new oW.IY(16);this.wK=new oW.IY(573);lu(this.wK);this.Yj=this.WU=0;this.depth=new oW.IY(573);lu(this.depth);this.iD=this.Vk=this.yN=this.matches=this.Bl=this.ZD=this.Ld=this.Zo=this.OY=this.jY=0}; fWQ=function(W,J){if(!W||!W.state||J>5||J<0)return W?pX(W,-2):-2;var K=W.state;if(!W.output||!W.input&&W.TB!==0||K.status===666&&J!==4)return pX(W,W.L7===0?-5:-2);K.oB=W;var I=K.RU;K.RU=J;if(K.status===42)if(K.wrap===2)W.Xv=0,fX(K,31),fX(K,139),fX(K,8),K.Gz?(fX(K,(K.Gz.text?1:0)+(K.Gz.fm?2:0)+(K.Gz.extra?4:0)+(K.Gz.name?8:0)+(K.Gz.comment?16:0)),fX(K,K.Gz.time&255),fX(K,K.Gz.time>>8&255),fX(K,K.Gz.time>>16&255),fX(K,K.Gz.time>>24&255),fX(K,K.level===9?2:K.strategy>=2||K.level<2?4:0),fX(K,K.Gz.os& 255),K.Gz.extra&&K.Gz.extra.length&&(fX(K,K.Gz.extra.length&255),fX(K,K.Gz.extra.length>>8&255)),K.Gz.fm&&(W.Xv=F0(W.Xv,K.jF,K.pending,0)),K.t2=0,K.status=69):(fX(K,0),fX(K,0),fX(K,0),fX(K,0),fX(K,0),fX(K,K.level===9?2:K.strategy>=2||K.level<2?4:0),fX(K,3),K.status=113);else{var q=8+(K.K9-8<<4)<<8;q|=(K.strategy>=2||K.level<2?0:K.level<6?1:K.level===6?2:3)<<6;K.aG!==0&&(q|=32);K.status=113;hw(K,q+(31-q%31));K.aG!==0&&(hw(K,W.Xv>>>16),hw(K,W.Xv&65535));W.Xv=1}if(K.status===69)if(K.Gz.extra){for(q= K.pending;K.t2<(K.Gz.extra.length&65535)&&(K.pending!==K.w8||(K.Gz.fm&&K.pending>q&&(W.Xv=F0(W.Xv,K.jF,K.pending-q,q)),nX(W),q=K.pending,K.pending!==K.w8));)fX(K,K.Gz.extra[K.t2]&255),K.t2++;K.Gz.fm&&K.pending>q&&(W.Xv=F0(W.Xv,K.jF,K.pending-q,q));K.t2===K.Gz.extra.length&&(K.t2=0,K.status=73)}else K.status=73;if(K.status===73)if(K.Gz.name){q=K.pending;do{if(K.pending===K.w8&&(K.Gz.fm&&K.pending>q&&(W.Xv=F0(W.Xv,K.jF,K.pending-q,q)),nX(W),q=K.pending,K.pending===K.w8)){var S=1;break}S=K.t2q&&(W.Xv=F0(W.Xv,K.jF,K.pending-q,q));S===0&&(K.t2=0,K.status=91)}else K.status=91;if(K.status===91)if(K.Gz.comment){q=K.pending;do{if(K.pending===K.w8&&(K.Gz.fm&&K.pending>q&&(W.Xv=F0(W.Xv,K.jF,K.pending-q,q)),nX(W),q=K.pending,K.pending===K.w8)){S=1;break}S=K.t2q&&(W.Xv=F0(W.Xv,K.jF,K.pending-q,q));S===0&&(K.status=103)}else K.status= 103;K.status===103&&(K.Gz.fm?(K.pending+2>K.w8&&nX(W),K.pending+2<=K.w8&&(fX(K,W.Xv&255),fX(K,W.Xv>>8&255),W.Xv=0,K.status=113)):K.status=113);if(K.pending!==0){if(nX(W),W.L7===0)return K.RU=-1,0}else if(W.TB===0&&(J<<1)-(J>4?9:0)<=(I<<1)-(I>4?9:0)&&J!==4)return pX(W,-5);if(K.status===666&&W.TB!==0)return pX(W,-5);if(W.TB!==0||K.zx!==0||J!==0&&K.status!==666){I=K.strategy===2?Doc(K,J):K.strategy===3?AQT(K,J):yY[K.level].func(K,J);if(I===3||I===4)K.status=666;if(I===1||I===3)return W.L7===0&&(K.RU= -1),0;if(I===2&&(J===1?(YQ(K,2,3),s6(K,256,Aw),K.iD===16?(vq(K,K.Vk),K.Vk=0,K.iD=0):K.iD>=8&&(K.jF[K.pending++]=K.Vk&255,K.Vk>>=8,K.iD-=8)):J!==5&&(YQ(K,0,3),JQy(K,0,0),J===3&&(lu(K.head),K.zx===0&&(K.aG=0,K.lJ=0,K.yN=0))),nX(W),W.L7===0))return K.RU=-1,0}if(J!==4)return 0;if(K.wrap<=0)return 1;K.wrap===2?(fX(K,W.Xv&255),fX(K,W.Xv>>8&255),fX(K,W.Xv>>16&255),fX(K,W.Xv>>24&255),fX(K,W.mE&255),fX(K,W.mE>>8&255),fX(K,W.mE>>16&255),fX(K,W.mE>>24&255)):(hw(K,W.Xv>>>16),hw(K,W.Xv&65535));nX(W);K.wrap>0&& (K.wrap=-K.wrap);return K.pending!==0?0:1}; U4=function(W){if(!(this instanceof U4))return new U4(W);W=this.options=oW.assign({level:-1,method:8,chunkSize:16384,Z8:15,eg0:8,strategy:0,to:""},W||{});W.raw&&W.Z8>0?W.Z8=-W.Z8:W.cz&&W.Z8>0&&W.Z8<16&&(W.Z8+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.oB=new h0H;this.oB.L7=0;var J=this.oB;var K=W.level,I=W.method,q=W.Z8,S=W.eg0,p=W.strategy;if(J){var n=1;K===-1&&(K=6);q<0?(n=0,q=-q):q>15&&(n=2,q-=16);if(S<1||S>9||I!==8||q<8||q>15||K<0||K>9||p<0||p>4)J=pX(J,-2);else{q===8&&(q=9); var A=new jbc;J.state=A;A.oB=J;A.wrap=n;A.Gz=null;A.K9=q;A.KU=1<>=7;S<30;S++)for(KX[S]=p<<7,q=0;q<1<=D.KU&&(J===0&&(lu(D.head),D.aG=0,D.lJ=0,D.yN=0),K=new oW.zR(D.KU),oW.Ml(K,S,p-D.KU,D.KU,0),S=K,p=D.KU);K=W.TB;I=W.pW;q=W.input;W.TB=p;W.pW=0;W.input=S;for(aY(D);D.zx>=3;){S=D.aG;p=D.zx-2;do D.HD=(D.HD<1&&((0,K[8])(((0,K[65])(K[27],K[22],(0,K[0])()),(0,K[53])(K[63],K[44]),K[53])(K[24],K[26]),K[53],K[12],K[35]),l[64])||(0,K[8])(((0,K[8])((0,K[28])(K[27],K[42]),K[53],K[12],K[30]),K[28])(K[23],K[33]),K[38],K[34],K[11]),K[29]!==0&&(0,K[26])(K[61],K[23]),K[29]!==3&&(0,K[63])((0,K[63])(((0,K[26])(K[12]), K[16])(K[64],K[27]),K[21],K[30],K[49]),K[21],K[12],K[52])>=(0,K[60])(K[39])>((0,K[32])((0,K[57])(K[27],K[36]),K[52],(0,K[23])(K[27],K[17]),K[58],K[53],(0,K[61])()),K[15])(K[58],K[62])<=(0,K[16])(K[12],K[64]),K[59]<4&&(K[35]===-9?((((0,K[56])((0,K[38])(K[52]),K[10],(0,K[10])(K[58],K[53],(0,K[new Date(l[20])/1E3-14])()),K[24],K[53],(0,K[36])()),K[10])(K[58],K[53],(0,K[65])()),K[22])(K[12],K[37]),K[10])(K[63],K[53],(0,K[61])()):(0,K[57])((0,K[1])((0,K[1])((0,K[47])(K[12],K[43])*(0,K[51])(K[37],K[12]), K[46],K[37],K[4]),K[5],K[55],K[37]),K[62],(0,K[55])(K[52],K[38]),K[12],K[6])),(K[3]<=8||(((((((0,K[50])(K[9],K[49]),K[54])(K[new Date(l[36])/1E3]),K[34])(K[60]),(0,K[62])(K[48],K[19],(0,K[36])()),K[11])(K[9],K[58]),((0,K[62])(K[14],K[19],(0,K[22])()),K[4])((0,K[62])(K[9],K[19],(0,K[22])()),K[62],K[9],K[19],(0,K[7])()),K[62])(K[48],K[19],(0,K[36])()),K[62])(K[9],K[19],(0,K[22])()),0))&&((0,K[8])(K[14],K[38]),K[50])(K[14],K[1])*(0,K[52])(K[13],K[14])>>((((0,K[4])((0,K[11])(K[20],K[24]),K[34],K[20]), K[16])(K[18],K[1]),(0,K[41])(K[46],K[19]),(0,K[9])(K[39],K[36]),K[14])(K[6],K[43])^(0,K[9])(K[39],K[15])),K[59]<=-2&&((((0,K[37])(K[11],K[2]),K[25])(K[39],K[1],(0,K[13])()),K[53])(K[27]),1)||(0,K[5])((0,K[33])(K[39]),K[16],(0,K[37])(K[11],K[17]),K[62],K[39],K[28])}catch(I){(0,K[16])((0,K[37])(K[27],K[20]),K[37],K[39],K[47]),((0,K[25])(K[11],K[new Date(l[40])/1E3],(0,K[65])()),K[9])(K[0],K[32]),((0,K[16])((0,K[35])(K[45],K[11]),K[25],K[11],K[1],(0,K[51])()),K[12])(K[0],K[61]),(0,K[33])(K[6])}}catch(I){return l[74]+ W}return J[l[6]](l[5])}; g.M1=function(W){this.name=W}; HuA=function(W){this.KE=FN(W)}; gl=function(W){this.KE=FN(W)}; GM=function(W){this.KE=FN(W)}; VfT=function(W){this.KE=FN(W)}; $f=function(W){this.KE=FN(W)}; xf=function(W){this.KE=FN(W)}; O4=function(W){this.KE=FN(W)}; TM=function(W){this.KE=FN(W)}; HO=function(W){this.KE=FN(W)}; VY=function(W){this.KE=FN(W)}; E4=function(W){this.KE=FN(W)}; eG=function(W){this.KE=FN(W)}; RY=function(W){this.KE=FN(W)}; bu=function(W){this.KE=FN(W)}; BO=function(W){this.KE=FN(W)}; mW=function(W){this.KE=FN(W,500)}; rl=function(W){this.KE=FN(W)}; oY=function(W){this.KE=FN(W)}; EVA=function(W){this.KE=FN(W)}; e0y=function(){return g.sH("yt.ads.biscotti.lastId_")||""}; R0I=function(W){g.Yc("yt.ads.biscotti.lastId_",W)}; vO=function(){var W=arguments,J=zM;W.length>1?J[W[0]]=W[1]:W.length===1&&Object.assign(J,W[0])}; g.Yf=function(W,J){return W in zM?zM[W]:J}; s4=function(W){var J=zM.EXPERIMENT_FLAGS;return J?J[W]:void 0}; buQ=function(W){cO.forEach(function(J){return J(W)})}; g.X0=function(W){return W&&window.yterr?function(){try{return W.apply(this,arguments)}catch(J){g.PO(J)}}:W}; g.PO=function(W){var J=g.sH("yt.logging.errors.log");J?J(W,"ERROR",void 0,void 0,void 0,void 0,void 0):(J=g.Yf("ERRORS",[]),J.push([W,"ERROR",void 0,void 0,void 0,void 0,void 0]),vO("ERRORS",J));buQ(W)}; W7=function(W,J,K,I,q){var S=g.sH("yt.logging.errors.log");S?S(W,"WARNING",J,K,I,void 0,q):(S=g.Yf("ERRORS",[]),S.push([W,"WARNING",J,K,I,void 0,q]),vO("ERRORS",S))}; iX=function(W,J){J=W.split(J);for(var K={},I=0,q=J.length;I1?W[1]:W[0])):{}}; SC=function(W,J){return oVc(W,J||{},!0)}; pz=function(W,J){return oVc(W,J||{},!1)}; oVc=function(W,J,K){var I=W.split("#",2);W=I[0];I=I.length>1?"#"+I[1]:"";var q=W.split("?",2);W=q[0];q=Kz(q[1]||"");for(var S in J)if(K||!g.Yr(q,S))q[S]=J[S];return g.Vw(W,q)+I}; lX=function(W){if(!J)var J=window.location.href;var K=g.MO(W)[1]||null,I=g.gM(W);K&&I?(W=g.MO(W),J=g.MO(J),W=W[3]==J[3]&&W[1]==J[1]&&W[4]==J[4]):W=I?g.gM(J)===I&&(Number(g.MO(J)[4]||null)||null)===(Number(g.MO(W)[4]||null)||null):!0;return W}; nz=function(W){W||(W=document.location.href);W=g.MO(W)[1]||null;return W!==null&&W==="https"}; Aa=function(W){W=LeQ(W);return W===null?!1:W[0]==="com"&&W[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; kQH=function(W){W=LeQ(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}; LeQ=function(W){W=g.gM(W);return W!==null?W.split(".").reverse():null}; B1c=function(W){return W&&W.match(z0I)?W:F1(W)}; fz=function(W){var J=D_;W=W===void 0?e0y():W;var K=Object,I=K.assign,q=jC(J);var S=J.W;try{var p=S.screenX;var n=S.screenY}catch(Q){}try{var A=S.outerWidth;var D=S.outerHeight}catch(Q){}try{var f=S.innerWidth;var h=S.innerHeight}catch(Q){}try{var t=S.screenLeft;var F=S.screenTop}catch(Q){}try{f=S.innerWidth,h=S.innerHeight}catch(Q){}try{var a=S.screen.availWidth;var y=S.screen.availTop}catch(Q){}S=[t,F,p,n,a,y,A,D,f,h];p=WhH(!1,J.W.top);n={};var U=U===void 0?g.vH:U;A=new oZ;"SVGElement"in U&&"createElementNS"in U.document&&A.set(0);D=DsQ();D["allow-top-navigation-by-user-activation"]&&A.set(1);D["allow-popups-to-escape-sandbox"]&&A.set(2);U.crypto&&U.crypto.subtle&&A.set(3);"TextDecoder"in U&&"TextEncoder"in U&&A.set(4);U=NOc(A);J=(n.bc=U,n.bih=p.height,n.biw=p.width,n.brdim=S.join(),n.vis=Ut(J.K),n.wgl=!!hL.WebGLRenderingContext,n);K=I.call(K,q,J);K.ca_type="image";W&&(K.bid=W);return K}; jC=function(W){var J={};J.dt=vVc;J.flash="0";a:{try{var K=W.W.top.location.href}catch(f){W=2;break a}W=K?K===W.K.location.href?0:1:2}J=(J.frm=W,J);try{J.u_tz=-(new Date).getTimezoneOffset();var I=I===void 0?hL:I;try{var q=I.history.length}catch(f){q=0}J.u_his=q;var S;J.u_h=(S=hL.screen)==null?void 0:S.height;var p;J.u_w=(p=hL.screen)==null?void 0:p.width;var n;J.u_ah=(n=hL.screen)==null?void 0:n.availHeight;var A;J.u_aw=(A=hL.screen)==null?void 0:A.availWidth;var D;J.u_cd=(D=hL.screen)==null?void 0: D.colorDepth}catch(f){}return J}; sb0=function(){if(!YLQ)return null;var W=YLQ();return"open"in W?W:null}; g.ta=function(W){switch(ha(W)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; ha=function(W){return W&&"status"in W?W.status:-1}; g.FW=function(W,J){typeof W==="function"&&(W=g.X0(W));return window.setTimeout(W,J)}; g.av=function(W,J){typeof W==="function"&&(W=g.X0(W));return window.setInterval(W,J)}; g.uX=function(W){window.clearTimeout(W)}; g.NU=function(W){window.clearInterval(W)}; g.yb=function(W){W=dq(W);return typeof W==="string"&&W==="false"?!1:!!W}; g.UD=function(W,J){W=dq(W);return W===void 0&&J!==void 0?J:Number(W||0)}; Z_=function(){return g.Yf("EXPERIMENTS_TOKEN","")}; dq=function(W){return g.Yf("EXPERIMENT_FLAGS",{})[W]}; Qb=function(){for(var W=[],J=g.Yf("EXPERIMENTS_FORCED_FLAGS",{}),K=g.d(Object.keys(J)),I=K.next();!I.done;I=K.next())I=I.value,W.push({key:I,value:String(J[I])});K=g.Yf("EXPERIMENT_FLAGS",{});I=g.d(Object.keys(K));for(var q=I.next();!q.done;q=I.next())q=q.value,q.startsWith("force_")&&J[q]===void 0&&W.push({key:q,value:String(K[q])});return W}; Cz=function(W,J,K,I,q,S,p,n){function A(){(D&&"readyState"in D?D.readyState:0)===4&&J&&g.X0(J)(D)} K=K===void 0?"GET":K;I=I===void 0?"":I;n=n===void 0?!1:n;var D=sb0();if(!D)return null;"onloadend"in D?D.addEventListener("loadend",A,!1):D.onreadystatechange=A;g.yb("debug_forward_web_query_parameters")&&(W=cQL(W));D.open(K,W,!0);S&&(D.responseType=S);p&&(D.withCredentials=!0);K=K==="POST"&&(window.FormData===void 0||!(I instanceof FormData));if(q=PlA(W,q))for(var f in q)D.setRequestHeader(f,q[f]),"content-type"===f.toLowerCase()&&(K=!1);K&&D.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(n&&"setAttributionReporting"in XMLHttpRequest.prototype){W={eventSourceEligible:!0,triggerEligible:!1};try{D.setAttributionReporting(W)}catch(h){W7(h)}}D.send(I);return D}; PlA=function(W,J){J=J===void 0?{}:J;var K=lX(W),I=g.Yf("INNERTUBE_CLIENT_NAME"),q=g.yb("web_ajax_ignore_global_headers_if_set"),S;for(S in XgL){var p=g.Yf(XgL[S]),n=S==="X-Goog-AuthUser"||S==="X-Goog-PageId";S!=="X-Goog-Visitor-Id"||p||(p=g.Yf("VISITOR_DATA"));var A;if(!(A=!p)){if(!(A=K||(g.gM(W)?!1:!0))){A=W;var D;if(D=g.yb("add_auth_headers_to_remarketing_google_dot_com_ping")&&S==="Authorization"&&(I==="TVHTML5"||I==="TVHTML5_UNPLUGGED"||I==="TVHTML5_SIMPLY")&&kQH(A))A=GC(A)||"",A=A.split("/"), A="/"+(A.length>1?A[1]:""),D=A==="/pagead";A=D?!0:!1}A=!A}A||q&&J[S]!==void 0||I==="TVHTML5_UNPLUGGED"&&n||(J[S]=p)}"X-Goog-EOM-Visitor-Id"in J&&"X-Goog-Visitor-Id"in J&&delete J["X-Goog-Visitor-Id"];if(K||!g.gM(W))J["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(K||!g.gM(W)){try{var f=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(h){}f&&(J["X-YouTube-Time-Zone"]=f)}document.location.hostname.endsWith("youtubeeducation.com")||!K&&g.gM(W)||(J["X-YouTube-Ad-Signals"]= Ja(fz()));return J}; MU=function(W,J){J.method="POST";J.postParams||(J.postParams={});return g.wq(W,J)}; Jh0=function(W,J){if(window.fetch&&J.format!=="XML"){var K={method:J.method||"GET",credentials:"same-origin"};J.headers&&(K.headers=J.headers);J.priority&&(K.priority=J.priority);W=Wc0(W,J);var I=i0A(W,J);I&&(K.body=I);J.withCredentials&&(K.credentials="include");var q=J.context||g.vH,S=!1,p;fetch(W,K).then(function(n){if(!S){S=!0;p&&g.uX(p);var A=n.ok,D=function(f){f=f||{};A?J.onSuccess&&J.onSuccess.call(q,f,n):J.onError&&J.onError.call(q,f,n);J.onFinish&&J.onFinish.call(q,f,n)}; (J.format||"JSON")==="JSON"&&(A||n.status>=400&&n.status<500)?n.json().then(D,function(){D(null)}):D(null)}}).catch(function(){J.onError&&J.onError.call(q,{},{})}); W=J.timeout||0;J.onFetchTimeout&&W>0&&(p=g.FW(function(){S||(S=!0,g.uX(p),J.onFetchTimeout.call(J.context||g.vH))},W))}else g.wq(W,J)}; g.wq=function(W,J){var K=J.format||"JSON";W=Wc0(W,J);var I=i0A(W,J),q=!1,S=KcL(W,function(A){if(!q){q=!0;n&&g.uX(n);var D=g.ta(A),f=null,h=400<=A.status&&A.status<500,t=500<=A.status&&A.status<600;if(D||h||t)f=IGH(W,K,A,J.convertToSafeHtml);D&&(D=qdy(K,A,f));f=f||{};h=J.context||g.vH;D?J.onSuccess&&J.onSuccess.call(h,A,f):J.onError&&J.onError.call(h,A,f);J.onFinish&&J.onFinish.call(h,A,f)}},J.method,I,J.headers,J.responseType,J.withCredentials); I=J.timeout||0;if(J.onTimeout&&I>0){var p=J.onTimeout;var n=g.FW(function(){q||(q=!0,S.abort(),g.uX(n),p.call(J.context||g.vH,S))},I)}return S}; Wc0=function(W,J){J.includeDomain&&(W=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+W);var K=g.Yf("XSRF_FIELD_NAME");if(J=J.urlParams)J[K]&&delete J[K],W=SC(W,J);return W}; i0A=function(W,J){var K=g.Yf("XSRF_FIELD_NAME"),I=g.Yf("XSRF_TOKEN"),q=J.postBody||"",S=J.postParams,p=g.Yf("XSRF_FIELD_NAME"),n;J.headers&&(n=J.headers["Content-Type"]);J.excludeXsrf||g.gM(W)&&!J.withCredentials&&g.gM(W)!==document.location.hostname||J.method!=="POST"||n&&n!=="application/x-www-form-urlencoded"||J.postParams&&J.postParams[p]||(S||(S={}),S[K]=I);(g.yb("ajax_parse_query_data_only_when_filled")&&S&&Object.keys(S).length>0||S)&&typeof q==="string"&&(q=Kz(q),g.KU(q,S),q=J.postBodyFormat&& J.postBodyFormat==="JSON"?JSON.stringify(q):g.Ho(q));S=q||S&&!g.PR(S);!Sd0&&S&&J.method!=="POST"&&(Sd0=!0,g.PO(Error("AJAX request with postData should use POST")));return q}; IGH=function(W,J,K,I){var q=null;switch(J){case "JSON":try{var S=K.responseText}catch(p){throw I=Error("Error reading responseText"),I.params=W,W7(I),p;}W=K.getResponseHeader("Content-Type")||"";S&&W.indexOf("json")>=0&&(S.substring(0,5)===")]}'\n"&&(S=S.substring(5)),q=JSON.parse(S));break;case "XML":if(W=(W=K.responseXML)?p0A(W):null)q={},g.el(W.getElementsByTagName("*"),function(p){q[p.tagName]=lGH(p)})}I&&naQ(q); return q}; naQ=function(W){if(g.i0(W))for(var J in W)J==="html_content"||ocQ(J,"_html")?W[J]=Wa(W[J]):naQ(W[J])}; qdy=function(W,J,K){if(J&&J.status===204)return!0;switch(W){case "JSON":return!!K;case "XML":return Number(K&&K.return_code)===0;case "RAW":return!0;default:return!!K}}; p0A=function(W){return W?(W=("responseXML"in W?W.responseXML:W).getElementsByTagName("root"))&&W.length>0?W[0]:null:null}; lGH=function(W){var J="";g.el(W.childNodes,function(K){J+=K.nodeValue}); return J}; cQL=function(W){var J=window.location.search,K=g.gM(W);g.yb("debug_handle_relative_url_for_query_forward_killswitch")||!K&&lX(W)&&(K=document.location.hostname);var I=GC(W);I=(K=K&&(K.endsWith("youtube.com")||K.endsWith("youtube-nocookie.com")))&&I&&I.startsWith("/api/");if(!K||I)return W;var q=Kz(J),S={};g.el(AhQ,function(p){q[p]&&(S[p]=q[p])}); return pz(W,S)}; G_=function(W,J){var K=g.ih(J),I;return(new g.MZ(function(q,S){K.onSuccess=function(p){g.ta(p)?q(new DWA(p)):S(new gq("Request failed, status="+ha(p),"net.badstatus",p))}; K.onError=function(p){S(new gq("Unknown request error","net.unknown",p))}; K.onTimeout=function(p){S(new gq("Request timed out","net.timeout",p))}; I=g.wq(W,K)})).b2(function(q){if(q instanceof e_){var S; (S=I)==null||S.abort()}return HS(q)})}; g.$u=function(W,J,K,I){function q(n,A,D){return n.b2(function(f){if(A<=0||ha(f.xhr)===403)return HS(new gq("Request retried too many times","net.retryexhausted",f.xhr,f));f=Math.pow(2,K-A+1)*D;var h=p>0?Math.min(p,f):f;return S(D).then(function(){return q(G_(W,J),A-1,h)})})} function S(n){return new g.MZ(function(A){setTimeout(A,n)})} var p=p===void 0?-1:p;return q(G_(W,J),K-1,I)}; gq=function(W,J,K){Dp.call(this,W+", errorCode="+J);this.errorCode=J;this.xhr=K;this.name="PromiseAjaxError"}; DWA=function(W){this.xhr=W}; xu=function(W){this.W=W===void 0?null:W;this.K=0;this.G=null}; OD=function(W){var J=new xu;W=W===void 0?null:W;J.K=2;J.G=W===void 0?null:W;return J}; T_=function(W){var J=new xu;W=W===void 0?null:W;J.K=1;J.G=W===void 0?null:W;return J}; g.ED=function(W,J,K,I,q){H7||Vb.set(""+W,J,{t4:K,path:"/",domain:I===void 0?"youtube.com":I,secure:q===void 0?!1:q})}; g.eC=function(W,J){if(!H7)return Vb.get(""+W,J)}; g.Rv=function(W,J,K){H7||Vb.remove(""+W,J===void 0?"/":J,K===void 0?"youtube.com":K)}; jZQ=function(){if(g.yb("embeds_web_enable_cookie_detection_fix")){if(!g.vH.navigator.cookieEnabled)return!1}else if(!Vb.isEnabled())return!1;if(!Vb.isEmpty())return!0;g.yb("embeds_web_enable_cookie_detection_fix")?Vb.set("TESTCOOKIESENABLED","1",{t4:60,cR8:"none",secure:!0}):Vb.set("TESTCOOKIESENABLED","1",{t4:60});if(Vb.get("TESTCOOKIESENABLED")!=="1")return!1;Vb.remove("TESTCOOKIESENABLED");return!0}; g.m=function(W,J){if(W)return W[J.name]}; bX=function(W){var J=g.Yf("INNERTUBE_HOST_OVERRIDE");J&&(W=String(J)+String($p(W)));return W}; fGX=function(W){var J={};g.yb("json_condensed_response")&&(J.prettyPrint="false");return W=pz(W,J)}; B7=function(W,J){var K=K===void 0?{}:K;W={method:J===void 0?"POST":J,mode:lX(W)?"same-origin":"cors",credentials:lX(W)?"same-origin":"include"};J={};for(var I=g.d(Object.keys(K)),q=I.next();!q.done;q=I.next())q=q.value,K[q]&&(J[q]=K[q]);Object.keys(J).length>0&&(W.headers=J);return W}; mQ=function(){var W=/Chrome\/(\d+)/.exec(g.CU());return W?parseFloat(W[1]):NaN}; rq=function(){var W=/\sCobalt\/(\S+)\s/.exec(g.CU());if(!W)return NaN;var J=[];W=g.d(W[1].split("."));for(var K=W.next();!K.done;K=W.next())K=parseInt(K.value,10),K>=0&&J.push(K);return parseFloat(J.join("."))}; Lz=function(){return g.ov("android")&&g.ov("chrome")&&!(g.ov("trident/")||g.ov("edge/"))&&!g.ov("cobalt")}; htT=function(){return g.ov("armv7")||g.ov("aarch64")||g.ov("android")}; g.ku=function(){return g.ov("cobalt")}; z_=function(){return g.ov("cobalt")&&g.ov("appletv")}; v7=function(){return g.ov("(ps3; leanback shell)")||g.ov("ps3")&&g.ku()}; FcA=function(){return g.ov("(ps4; leanback shell)")||g.ov("ps4")&&g.ku()}; g.aGy=function(){return g.ku()&&(g.ov("ps4 vr")||g.ov("ps4 pro vr"))}; Yu=function(){var W=/WebKit\/([0-9]+)/.exec(g.CU());return!!(W&&parseInt(W[1],10)>=600)}; sD=function(){var W=/WebKit\/([0-9]+)/.exec(g.CU());return!!(W&&parseInt(W[1],10)>=602)}; uYD=function(){return g.ov("iemobile")||g.ov("windows phone")&&g.ov("edge")}; XW=function(){return(c7||P7)&&g.ov("applewebkit")&&!g.ov("version")&&(!g.ov("safari")||g.ov("gsa/"))}; iB=function(){return g.Wd&&g.ov("version/")}; JJ=function(){return g.ov("smart-tv")&&g.ov("samsung")}; g.ov=function(W){var J=g.CU();return J?J.toLowerCase().indexOf(W)>=0:!1}; Kn=function(){return pZH()||XW()||iB()?!0:g.Yf("EOM_VISITOR_DATA")?!1:!0}; I$=function(W,J){return J===void 0||J===null?W:J==="1"||J===!0||J===1||J==="True"?!0:!1}; qk=function(W,J,K){for(var I in K)if(K[I]==J)return K[I];return W}; S6=function(W,J){return J===void 0||J===null?W:Number(J)}; pn=function(W,J){return J===void 0||J===null?W:J.toString()}; lB=function(W,J){if(J){if(W==="fullwidth")return Infinity;if(W==="fullheight")return 0}return W&&(J=W.match(N_L))&&(W=Number(J[2]),J=Number(J[1]),!isNaN(W)&&!isNaN(J)&&W>0)?J/W:NaN}; nn=function(W){var J=W.docid||W.video_id||W.videoId||W.id;if(J)return J;J=W.raw_player_response;J||(W=W.player_response)&&(J=JSON.parse(W));return J&&J.videoDetails&&J.videoDetails.videoId||null}; dWQ=function(W){return AJ(W,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.DR=function(W){return W==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||W==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; AJ=function(W,J){J=(J===void 0?0:J)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(J="EMBEDDED_PLAYER_MODE_PFL");var K=W.raw_embedded_player_response;if(!K&&(W=W.embedded_player_response))try{K=JSON.parse(W)}catch(I){return J}return K?qk(J,K.embeddedPlayerMode,yhT):J}; fn=function(W){Dp.call(this,W.message||W.description||W.name);this.isMissing=W instanceof j6;this.isTimeout=W instanceof gq&&W.errorCode=="net.timeout";this.isCanceled=W instanceof e_}; j6=function(){Dp.call(this,"Biscotti ID is missing from server")}; UWL=function(){if(g.yb("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Kn())return Error("User has not consented - not fetching biscotti id.");var W=g.Yf("PLAYER_VARS",{});if(g.Xe(W,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(dWQ(W))return Error("Biscotti id fetching has been disabled for pfl.")}; w0A=function(){var W=UWL();if(W!==void 0)return HS(W);hJ||(hJ=G_("//googleads.g.doubleclick.net/pagead/id",Z0H).then(QZL).b2(function(J){return CYT(2,J)})); return hJ}; QZL=function(W){W=W.xhr.responseText;if(!tX(W,")]}'"))throw new j6;W=JSON.parse(W.substr(4));if((W.type||1)>1)throw new j6;W=W.id;R0I(W);hJ=T_(W);MrI(18E5,2);return W}; CYT=function(W,J){J=new fn(J);R0I("");hJ=OD(J);W>0&&MrI(12E4,W-1);throw J;}; MrI=function(W,J){g.FW(function(){G_("//googleads.g.doubleclick.net/pagead/id",Z0H).then(QZL,function(K){return CYT(J,K)}).b2(g.Fw)},W)}; gac=function(){try{var W=g.sH("yt.ads.biscotti.getId_");return W?W():w0A()}catch(J){return HS(J)}}; $Wy=function(W){W&&(W.dataset?W.dataset[GtI()]="true":q$c(W))}; xWI=function(W){return W?W.dataset?W.dataset[GtI()]:W.getAttribute("data-loaded"):null}; GtI=function(){return O0T.loaded||(O0T.loaded="loaded".replace(/\-([a-z])/g,function(W,J){return J.toUpperCase()}))}; T_y=function(){var W=document;if("visibilityState"in W)return W.visibilityState;var J=tJ+"VisibilityState";if(J in W)return W[J]}; FJ=function(W,J){var K;ii(W,function(I){K=J[I];return!!K}); return K}; a$=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()}; di=function(W){var J;g.uB()?Nk()==W&&(J=document):J=W;return J&&(W=FJ(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],J))?(J=W.call(J),J instanceof Promise?J:Promise.resolve()):Promise.resolve()}; H0T=function(W){return g.hW(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(J){return"on"+J.toLowerCase()in W})}; VrX=function(){var W=document;return g.hW(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(J){return"on"+J.toLowerCase()in W})}; g.uB=function(){return!!FJ(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; Nk=function(W){W=W===void 0?!1:W;var J=FJ(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(W)for(;J&&J.shadowRoot;)J=J.shadowRoot.fullscreenElement;return J?J:null}; y0=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 J in W)J in Eav||(this[J]=W[J]);this.scale=W.scale;this.rotation=W.rotation;var K=W.target||W.srcElement;K&&K.nodeType==3&&(K=K.parentNode);this.target=K;var I=W.relatedTarget; if(I)try{I=I.nodeName?I:null}catch(q){I=null}else this.type=="mouseover"?I=W.fromElement:this.type=="mouseout"&&(I=W.toElement);this.relatedTarget=I;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.W=W.pageX;this.K=W.pageY}}catch(q){}}; etc=function(W){if(document.body&&document.documentElement){var J=document.body.scrollTop+document.documentElement.scrollTop;W.W=W.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);W.K=W.clientY+J}}; RtL=function(W,J,K,I){I=I===void 0?{}:I;W.addEventListener&&(J!="mouseenter"||"onmouseenter"in document?J!="mouseleave"||"onmouseenter"in document?J=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(J="MozMousePixelScroll"):J="mouseout":J="mouseover");return cR(UN,function(q){var S=typeof q[4]==="boolean"&&q[4]==!!I,p=g.i0(q[4])&&g.i0(I)&&g.WX(q[4],I);return!!q.length&&q[0]==W&&q[1]==J&&q[2]==K&&(S||p)})}; g.ZR=function(W,J,K,I){I=I===void 0?{}:I;if(!W||!W.addEventListener&&!W.attachEvent)return"";var q=RtL(W,J,K,I);if(q)return q;q=++b0D.count+"";var S=!(J!="mouseenter"&&J!="mouseleave"||!W.addEventListener||"onmouseenter"in document);var p=S?function(n){n=new y0(n);if(!no(n.relatedTarget,function(A){return A==W},!0))return n.currentTarget=W,n.type=J,K.call(W,n)}:function(n){n=new y0(n); n.currentTarget=W;return K.call(W,n)}; p=g.X0(p);W.addEventListener?(J=="mouseenter"&&S?J="mouseover":J=="mouseleave"&&S?J="mouseout":J=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(J="MozMousePixelScroll"),B_y()||typeof I==="boolean"?W.addEventListener(J,p,I):W.addEventListener(J,p,!!I.capture)):W.attachEvent("on"+J,p);UN[q]=[W,J,K,p,I];return q}; rhQ=function(W){return mWQ(W,function(J){return g.p3(J,"ytp-ad-has-logging-urls")})}; mWQ=function(W,J){var K=document.body||document;return g.ZR(K,"click",function(I){var q=no(I.target,function(S){return S===K||J(S)},!0); q&&q!==K&&!q.disabled&&(I.currentTarget=q,W.call(q,I))})}; g.Q0=function(W){W&&(typeof W=="string"&&(W=[W]),g.el(W,function(J){if(J in UN){var K=UN[J],I=K[0],q=K[1],S=K[3];K=K[4];I.removeEventListener?B_y()||typeof K==="boolean"?I.removeEventListener(q,S,K):I.removeEventListener(q,S,!!K.capture):I.detachEvent&&I.detachEvent("on"+q,S);delete UN[J]}}))}; Cn=function(W){for(var J in UN)UN[J][0]==W&&g.Q0(J)}; wi=function(W){W=W||window.event;var J;W.composedPath&&typeof W.composedPath==="function"?J=W.composedPath():J=W.path;J&&J.length?W=J[0]:(W=W||window.event,W=W.target||W.srcElement,W.nodeType==3&&(W=W.parentNode));return W}; Mk=function(W){this.Z=W;this.W=null;this.T=0;this.S=null;this.j=0;this.K=[];for(W=0;W<4;W++)this.K.push(0);this.G=0;this.sI=g.ZR(window,"mousemove",(0,g.Io)(this.C,this));this.N=g.av((0,g.Io)(this.PS,this),25)}; gi=function(W){g.R.call(this);this.Z=[];this.Tx=W||this}; GW=function(W,J,K,I){for(var q=0;q0?K:0;K=I?Date.now()+I*1E3:0;if((I=I?(0,g.ON)():TW())&&window.JSON){typeof J!=="string"&&(J=JSON.stringify(J,void 0));try{I.set(W,J,K)}catch(q){I.remove(W)}}}; g.V0=function(W){var J=TW(),K=(0,g.ON)();if(!J&&!K||!window.JSON)return null;try{var I=J.get(W)}catch(q){}if(typeof I!=="string")try{I=K.get(W)}catch(q){}if(typeof I!=="string")return null;try{I=JSON.parse(I,void 0)}catch(q){}return I}; ktQ=function(){var W=(0,g.ON)();if(W&&(W=W.K("yt-player-quality")))return W.creation}; g.EN=function(W){try{var J=TW(),K=(0,g.ON)();J&&J.remove(W);K&&K.remove(W)}catch(I){}}; g.e6=function(){return g.V0("yt-remote-session-screen-id")}; ztD=function(W){var J=this;this.K=void 0;this.W=!1;W.addEventListener("beforeinstallprompt",function(K){K.preventDefault();J.K=K}); W.addEventListener("appinstalled",function(){J.W=!0},{once:!0})}; R$=function(){if(!g.vH.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.vH.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.vH.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.vH.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.vH.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(W){return"WEB_DISPLAY_MODE_UNKNOWN"}}; bB=function(){this.To=!0}; vac=function(){bB.instance||(bB.instance=new bB);return bB.instance}; YdH=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}}; sZD=function(){this.W=g.Yf("ALT_PREF_COOKIE_NAME","PREF");this.K=g.Yf("ALT_PREF_COOKIE_DOMAIN","youtube.com");var W=g.eC(this.W);W&&this.parse(W)}; g.mr=function(){Bd||(Bd=new sZD);return Bd}; g.ri=function(W,J){return!!((chT("f"+(Math.floor(J/31)+1))||0)&1<0;)switch(W=Dt.shift(),W.type){case "ERROR":pL.Zy(W.payload);break;case "EVENT":pL.logEvent(W.eventType,W.payload)}}; fL=function(W){jx||(pL?pL.Zy(W):(Dt.push({type:"ERROR",payload:W}),Dt.length>10&&Dt.shift()))}; hF=function(W,J){jx||(pL?pL.logEvent(W,J):(Dt.push({type:"EVENT",eventType:W,payload:J}),Dt.length>10&&Dt.shift()))}; tF=function(W){if(W.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; FS=function(W){return W.substr(0,W.indexOf(":"))||W}; g.ax=function(W,J,K,I,q){J=J===void 0?{}:J;K=K===void 0?q6D[W]:K;I=I===void 0?S6Q[W]:I;q=q===void 0?pqv[W]:q;g.vd.call(this,K,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:W},J));this.type=W;this.message=K;this.level=I;this.W=q;Object.setPrototypeOf(this,g.ax.prototype)}; uH=function(W,J){g.ax.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:J,foundObjectStores:W},q6D.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,uH.prototype)}; NV=function(W,J){var K=Error.call(this);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.index=W;this.objectStore=J;Object.setPrototypeOf(this,NV.prototype)}; yP=function(W,J,K,I){J=FS(J);var q=W instanceof Error?W:Error("Unexpected error: "+W);if(q instanceof g.ax)return q;W={objectStoreNames:K,dbName:J,dbVersion:I};if(q.name==="QuotaExceededError")return new g.ax("QUOTA_EXCEEDED",W);if(g.dg&&q.name==="UnknownError")return new g.ax("QUOTA_MAYBE_EXCEEDED",W);if(q instanceof NV)return new g.ax("MISSING_INDEX",Object.assign({},W,{objectStore:q.objectStore,index:q.index}));if(q.name==="InvalidStateError"&&l3c.some(function(S){return q.message.includes(S)}))return new g.ax("EXECUTE_TRANSACTION_ON_CLOSED_DB", W); if(q.name==="AbortError")return new g.ax("UNKNOWN_ABORT",W,q.message);q.args=[Object.assign({},W,{name:"IdbError",TA:q.name})];q.level="WARNING";return q}; g.UO=function(W,J,K){var I=Sx();return new g.ax("IDB_NOT_SUPPORTED",{context:{caller:W,publicName:J,version:K,hasSucceededOnce:I==null?void 0:I.hasSucceededOnce}})}; nQH=function(W){if(!W)throw Error();throw W;}; A5D=function(W){return W}; Zt=function(W){this.W=W}; g.QP=function(W){function J(q){if(I.state.status==="PENDING"){I.state={status:"REJECTED",reason:q};q=g.d(I.K);for(var S=q.next();!S.done;S=q.next())S=S.value,S()}} function K(q){if(I.state.status==="PENDING"){I.state={status:"FULFILLED",value:q};q=g.d(I.W);for(var S=q.next();!S.done;S=q.next())S=S.value,S()}} var I=this;this.state={status:"PENDING"};this.W=[];this.K=[];W=W.W;try{W(K,J)}catch(q){J(q)}}; DiD=function(W,J,K,I,q){try{if(W.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var S=K(W.state.value);S instanceof g.QP?CL(W,J,S,I,q):I(S)}catch(p){q(p)}}; jWX=function(W,J,K,I,q){try{if(W.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var S=K(W.state.reason);S instanceof g.QP?CL(W,J,S,I,q):I(S)}catch(p){q(p)}}; CL=function(W,J,K,I,q){J===K?q(new TypeError("Circular promise chain detected.")):K.then(function(S){S instanceof g.QP?CL(W,J,S,I,q):I(S)},function(S){q(S)})}; f3H=function(W,J,K){function I(){K(W.error);S()} function q(){J(W.result);S()} function S(){try{W.removeEventListener("success",q),W.removeEventListener("error",I)}catch(p){}} W.addEventListener("success",q);W.addEventListener("error",I)}; hpX=function(W){return new Promise(function(J,K){f3H(W,J,K)})}; wg=function(W){return new g.QP(new Zt(function(J,K){f3H(W,J,K)}))}; MV=function(W,J){return new g.QP(new Zt(function(K,I){function q(){var S=W?J(W):null;S?S.then(function(p){W=p;q()},I):K()} q()}))}; tNQ=function(W,J){this.request=W;this.cursor=J}; F0Q=function(W){return wg(W).then(function(J){return J?new tNQ(W,J):null})}; g.a3H=function(W){W.cursor.continue(void 0);return F0Q(W.request)}; uHQ=function(W,J){this.W=W;this.options=J;this.transactionCount=0;this.G=Math.round((0,g.L)());this.K=!1}; g.Gq=function(W,J,K){W=W.W.createObjectStore(J,K);return new gg(W)}; $k=function(W,J){W.W.objectStoreNames.contains(J)&&W.W.deleteObjectStore(J)}; g.Tq=function(W,J,K){return g.xk(W,[J],{mode:"readwrite",B7:!0},function(I){return g.OO(I.objectStore(J),K)})}; g.xk=function(W,J,K,I){var q,S,p,n,A,D,f,h,t,F,a,y;return g.V(function(U){switch(U.K){case 1:var Q={mode:"readonly",B7:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof K==="string"?Q.mode=K:Object.assign(Q,K);q=Q;W.transactionCount++;S=q.B7?3:1;p=0;case 2:if(n){U.VK(4);break}p++;A=Math.round((0,g.L)());g.yQ(U,5);D=W.W.transaction(J,q.mode);Q=new HM(D);Q=N5y(Q,I);return g.O(U,Q,7);case 7:return f=U.W,h=Math.round((0,g.L)()),diQ(W,A,h,p,void 0,J.join(),q),U.return(f);case 5:t=g.g0(U);F=Math.round((0,g.L)()); a=yP(t,W.W.name,J.join(),W.W.version);if((y=a instanceof g.ax&&!a.W)||p>=S)diQ(W,A,F,p,a,J.join(),q),n=a;U.VK(2);break;case 4:return U.return(Promise.reject(n))}})}; diQ=function(W,J,K,I,q,S,p){J=K-J;q?(q instanceof g.ax&&(q.type==="QUOTA_EXCEEDED"||q.type==="QUOTA_MAYBE_EXCEEDED")&&hF("QUOTA_EXCEEDED",{dbName:FS(W.W.name),objectStoreNames:S,transactionCount:W.transactionCount,transactionMode:p.mode}),q instanceof g.ax&&q.type==="UNKNOWN_ABORT"&&(K-=W.G,K<0&&K>=2147483648&&(K=0),hF("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:S,transactionDuration:J,transactionCount:W.transactionCount,dbDuration:K}),W.K=!0),y5v(W,!1,I,S,J,p.tag),fL(q)):y5v(W,!0,I,S,J, p.tag)}; y5v=function(W,J,K,I,q,S){hF("TRANSACTION_ENDED",{objectStoreNames:I,connectionHasUnknownAbortedTransaction:W.K,duration:q,isSuccessful:J,tryCount:K,tag:S===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":S})}; gg=function(W){this.W=W}; g.VP=function(W,J,K){W.W.createIndex(J,K,{unique:!1})}; UiH=function(W,J){return g.EO(W,{query:J},function(K){return K.delete().then(function(){return g.ex(K)})}).then(function(){})}; Z3T=function(W,J,K){var I=[];return g.EO(W,{query:J},function(q){if(!(K!==void 0&&I.length>=K))return I.push(q.getValue()),g.ex(q)}).then(function(){return I})}; CKQ=function(W){return"getAllKeys"in IDBObjectStore.prototype?wg(W.W.getAllKeys(void 0,void 0)):QWQ(W)}; QWQ=function(W){var J=[];return g.wqD(W,{query:void 0},function(K){J.push(K.cursor.primaryKey);return g.a3H(K)}).then(function(){return J})}; g.OO=function(W,J,K){return wg(W.W.put(J,K))}; g.EO=function(W,J,K){W=W.W.openCursor(J.query,J.direction);return Rx(W).then(function(I){return MV(I,K)})}; g.wqD=function(W,J,K){var I=J.query;J=J.direction;W="openKeyCursor"in IDBObjectStore.prototype?W.W.openKeyCursor(I,J):W.W.openCursor(I,J);return F0Q(W).then(function(q){return MV(q,K)})}; HM=function(W){var J=this;this.W=W;this.G=new Map;this.K=!1;this.done=new Promise(function(K,I){J.W.addEventListener("complete",function(){K()}); J.W.addEventListener("error",function(q){q.currentTarget===q.target&&I(J.W.error)}); J.W.addEventListener("abort",function(){var q=J.W.error;if(q)I(q);else if(!J.K){q=g.ax;for(var S=J.W.objectStoreNames,p=[],n=0;n=K))return I.push(q.getValue()),g.ex(q)}).then(function(){return I})}; g.bH=function(W,J,K){W=W.W.openCursor(J.query===void 0?null:J.query,J.direction===void 0?"next":J.direction);return Rx(W).then(function(I){return MV(I,K)})}; BM=function(W,J){this.request=W;this.cursor=J}; Rx=function(W){return wg(W).then(function(J){return J?new BM(W,J):null})}; g.ex=function(W){W.cursor.continue(void 0);return Rx(W.request)}; G9H=function(W,J,K){return new Promise(function(I,q){function S(){t||(t=new uHQ(p.result,{closed:h}));return t} var p=J!==void 0?self.indexedDB.open(W,J):self.indexedDB.open(W);var n=K.blocked,A=K.blocking,D=K.VE3,f=K.upgrade,h=K.closed,t;p.addEventListener("upgradeneeded",function(F){try{if(F.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(p.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");F.dataLoss&&F.dataLoss!=="none"&&hF("IDB_DATA_CORRUPTED",{reason:F.dataLossMessage||"unknown reason",dbName:FS(W)});var a=S(),y=new HM(p.transaction); f&&f(a,function(U){return F.oldVersion=U},y); y.done.catch(function(U){q(U)})}catch(U){q(U)}}); p.addEventListener("success",function(){var F=p.result;A&&F.addEventListener("versionchange",function(){A(S())}); F.addEventListener("close",function(){hF("IDB_UNEXPECTEDLY_CLOSED",{dbName:FS(W),dbVersion:F.version});D&&D()}); I(S())}); p.addEventListener("error",function(){q(p.error)}); n&&p.addEventListener("blocked",function(){n()})})}; $iD=function(W,J,K){K=K===void 0?{}:K;return G9H(W,J,K)}; m9=function(W,J){J=J===void 0?{}:J;var K,I,q,S;return g.V(function(p){if(p.K==1)return g.yQ(p,2),K=self.indexedDB.deleteDatabase(W),I=J,(q=I.blocked)&&K.addEventListener("blocked",function(){q()}),g.O(p,hpX(K),4); if(p.K!=2)return g.Cv(p,0);S=g.g0(p);throw yP(S,W,"",-1);})}; rg=function(W,J){this.name=W;this.options=J;this.G=!0;this.j=this.T=0}; xiQ=function(W,J){return new g.ax("INCOMPATIBLE_DB_VERSION",{dbName:W.name,oldVersion:W.options.version,newVersion:J})}; g.ox=function(W,J){if(!J)throw g.UO("openWithToken",FS(W.name));return W.open()}; O3Q=function(W,J){var K;return g.V(function(I){if(I.K==1)return g.O(I,g.ox(LL,J),2);K=I.W;return I.return(g.xk(K,["databases"],{B7:!0,mode:"readwrite"},function(q){var S=q.objectStore("databases");return S.get(W.actualName).then(function(p){if(p?W.actualName!==p.actualName||W.publicName!==p.publicName||W.userIdentifier!==p.userIdentifier:1)return g.OO(S,W).then(function(){})})}))})}; kk=function(W,J){var K;return g.V(function(I){if(I.K==1)return W?g.O(I,g.ox(LL,J),2):I.return();K=I.W;return I.return(K.delete("databases",W))})}; T5Q=function(W,J){var K,I;return g.V(function(q){return q.K==1?(K=[],g.O(q,g.ox(LL,J),2)):q.K!=3?(I=q.W,g.O(q,g.xk(I,["databases"],{B7:!0,mode:"readonly"},function(S){K.length=0;return g.EO(S.objectStore("databases"),{},function(p){W(p.getValue())&&K.push(p.getValue());return g.ex(p)})}),3)):q.return(K)})}; H3y=function(W,J){return T5Q(function(K){return K.publicName===W&&K.userIdentifier!==void 0},J)}; VNH=function(){var W,J,K,I;return g.V(function(q){switch(q.K){case 1:W=Sx();if((J=W)==null?0:J.hasSucceededOnce)return q.return(!0);if(zq&&Yu()&&!sD()||g.vM)return q.return(!1);try{if(K=self,!(K.indexedDB&&K.IDBIndex&&K.IDBKeyRange&&K.IDBObjectStore))return q.return(!1)}catch(S){return q.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return q.return(!1);g.yQ(q,2);I={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.O(q,O3Q(I,Yk),4);case 4:return g.O(q,kk("yt-idb-test-do-not-use",Yk),5);case 5:return q.return(!0);case 2:return g.g0(q),q.return(!1)}})}; EQQ=function(){if(sO!==void 0)return sO;jx=!0;return sO=VNH().then(function(W){jx=!1;var J;if((J=qV())!=null&&J.W){var K;J={hasSucceededOnce:((K=Sx())==null?void 0:K.hasSucceededOnce)||W};var I;(I=qV())==null||I.set("LAST_RESULT_ENTRY_KEY",J,2592E3,!0)}return W})}; cM=function(){return g.sH("ytglobal.idbToken_")||void 0}; g.PM=function(){var W=cM();return W?Promise.resolve(W):EQQ().then(function(J){(J=J?Yk:void 0)&&g.Yc("ytglobal.idbToken_",J);return J})}; epH=function(W){if(!g.sN())throw W=new g.ax("AUTH_INVALID",{dbName:W}),fL(W),W;var J=g.Yd();return{actualName:W+":"+J,publicName:W,userIdentifier:J}}; RpQ=function(W,J,K,I){var q,S,p,n,A,D;return g.V(function(f){switch(f.K){case 1:return S=(q=Error().stack)!=null?q:"",g.O(f,g.PM(),2);case 2:p=f.W;if(!p)throw n=g.UO("openDbImpl",W,J),g.yb("ytidb_async_stack_killswitch")||(n.stack=n.stack+"\n"+S.substring(S.indexOf("\n")+1)),fL(n),n;tF(W);A=K?{actualName:W,publicName:W,userIdentifier:void 0}:epH(W);g.yQ(f,3);return g.O(f,O3Q(A,p),5);case 5:return g.O(f,$iD(A.actualName,J,I),6);case 6:return f.return(f.W);case 3:return D=g.g0(f),g.yQ(f,7),g.O(f,kk(A.actualName, p),9);case 9:g.Cv(f,8);break;case 7:g.g0(f);case 8:throw D;}})}; b3Q=function(W,J,K){K=K===void 0?{}:K;return RpQ(W,J,!1,K)}; B5X=function(W,J,K){K=K===void 0?{}:K;return RpQ(W,J,!0,K)}; miy=function(W,J){J=J===void 0?{}:J;var K,I;return g.V(function(q){if(q.K==1)return g.O(q,g.PM(),2);if(q.K!=3){K=q.W;if(!K)return q.return();tF(W);I=epH(W);return g.O(q,m9(I.actualName,J),3)}return g.O(q,kk(I.actualName,K),0)})}; r5D=function(W,J,K){W=W.map(function(I){return g.V(function(q){return q.K==1?g.O(q,m9(I.actualName,J),2):g.O(q,kk(I.actualName,K),0)})}); return Promise.all(W).then(function(){})}; oQc=function(W){var J=J===void 0?{}:J;var K,I;return g.V(function(q){if(q.K==1)return g.O(q,g.PM(),2);if(q.K!=3){K=q.W;if(!K)return q.return();tF(W);return g.O(q,H3y(W,K),3)}I=q.W;return g.O(q,r5D(I,J,K),0)})}; L0T=function(W,J){J=J===void 0?{}:J;var K;return g.V(function(I){if(I.K==1)return g.O(I,g.PM(),2);if(I.K!=3){K=I.W;if(!K)return I.return();tF(W);return g.O(I,m9(W,J),3)}return g.O(I,kk(W,K),0)})}; XS=function(W,J){rg.call(this,W,J);this.options=J;tF(W)}; k9T=function(W,J){var K;return function(){K||(K=new XS(W,J));return K}}; g.W2=function(W,J){return k9T(W,J)}; i2=function(W){return g.ox(zpT(),W)}; vQy=function(W,J,K,I){var q,S,p;return g.V(function(n){switch(n.K){case 1:return q={config:W,hashData:J,timestamp:I!==void 0?I:(0,g.L)()},g.O(n,i2(K),2);case 2:return S=n.W,g.O(n,S.clear("hotConfigStore"),3);case 3:return g.O(n,g.Tq(S,"hotConfigStore",q),4);case 4:return p=n.W,n.return(p)}})}; Y6c=function(W,J,K,I,q){var S,p,n;return g.V(function(A){switch(A.K){case 1:return S={config:W,hashData:J,configData:K,timestamp:q!==void 0?q:(0,g.L)()},g.O(A,i2(I),2);case 2:return p=A.W,g.O(A,p.clear("coldConfigStore"),3);case 3:return g.O(A,g.Tq(p,"coldConfigStore",S),4);case 4:return n=A.W,A.return(n)}})}; sWA=function(W){var J,K;return g.V(function(I){return I.K==1?g.O(I,i2(W),2):I.K!=3?(J=I.W,K=void 0,g.O(I,g.xk(J,["coldConfigStore"],{mode:"readwrite",B7:!0},function(q){return g.bH(q.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(S){K=S.getValue()})}),3)):I.return(K)})}; c5H=function(W){var J,K;return g.V(function(I){return I.K==1?g.O(I,i2(W),2):I.K!=3?(J=I.W,K=void 0,g.O(I,g.xk(J,["hotConfigStore"],{mode:"readwrite",B7:!0},function(q){return g.bH(q.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(S){K=S.getValue()})}),3)):I.return(K)})}; PKc=function(){return g.V(function(W){return g.O(W,oQc("ytGcfConfig"),0)})}; Jc=function(){g.R.call(this);this.K=[];this.W=[];var W=g.sH("yt.gcf.config.hotUpdateCallbacks");W?(this.K=[].concat(g.w(W)),this.W=W):(this.W=[],g.Yc("yt.gcf.config.hotUpdateCallbacks",this.W))}; l2=function(){var W=this;this.j=!1;this.G=this.T=0;this.S=new Jc;this.G$={YRI:function(){W.j=!0}, aIS:function(){return W.W}, h93:function(J){KC(W,J)}, AA:function(J){W.AA(J)}, imw:function(J){IO(W,J)}, p5:function(){return W.coldHashData}, L5:function(){return W.hotHashData}, t9W:function(){return W.K}, Oay:function(){return qb()}, wZu:function(){return S2()}, hzK:function(){return g.sH("yt.gcf.config.coldHashData")}, Dqu:function(){return g.sH("yt.gcf.config.hotHashData")}, UIS:function(){Xqc(W)}, MdK:function(){W.AA(void 0);pC(W);delete l2.instance}, dIO:function(J){W.G=J}, YzN:function(){return W.G}}}; WW0=function(){if(!l2.instance){var W=new l2;l2.instance=W}return l2.instance}; KWQ=function(W){var J;g.V(function(K){if(K.K==1)return g.yb("start_client_gcf")||g.yb("delete_gcf_config_db")?g.yb("start_client_gcf")?g.O(K,g.PM(),3):K.VK(2):K.return();K.K!=2&&((J=K.W)&&g.sN()&&!g.yb("delete_gcf_config_db")?(W.j=!0,Xqc(W)):(iXX(W),JwI(W)));return g.yb("delete_gcf_config_db")?g.O(K,PKc(),0):K.VK(0)})}; nC=function(){var W;return(W=S2())!=null?W:g.Yf("RAW_HOT_CONFIG_GROUP")}; I6H=function(W){var J,K,I,q,S,p;return g.V(function(n){switch(n.K){case 1:if(W.K)return n.return(S2());if(!W.j)return J=g.UO("getHotConfig IDB not initialized"),W7(J),n.return(Promise.reject(J));K=cM();I=g.Yf("TIME_CREATED_MS");if(!K){q=g.UO("getHotConfig token error");W7(q);n.VK(2);break}return g.O(n,c5H(K),3);case 3:if((S=n.W)&&S.timestamp>I)return KC(W,S.config),W.AA(S.hashData),n.return(S2());case 2:JwI(W);if(!(K&&W.K&&W.hotHashData)){n.VK(4);break}return g.O(n,vQy(W.K,W.hotHashData,K,I),4);case 4:return W.K? n.return(S2()):(p=new g.vd("Config not available in ytConfig"),W7(p),n.return(Promise.reject(p)))}})}; S4y=function(W){var J,K,I,q,S,p;return g.V(function(n){switch(n.K){case 1:if(W.W)return n.return(qb());if(!W.j)return J=g.UO("getColdConfig IDB not initialized"),W7(J),n.return(Promise.reject(J));K=cM();I=g.Yf("TIME_CREATED_MS");if(!K){q=g.UO("getColdConfig");W7(q);n.VK(2);break}return g.O(n,sWA(K),3);case 3:if((S=n.W)&&S.timestamp>I)return IO(W,S.config),q40(W,S.configData),pC(W,S.hashData),n.return(qb());case 2:iXX(W);if(!(K&&W.W&&W.coldHashData&&W.configData)){n.VK(4);break}return g.O(n,Y6c(W.W, W.coldHashData,W.configData,K,I),4);case 4:return W.W?n.return(qb()):(p=new g.vd("Config not available in ytConfig"),W7(p),n.return(Promise.reject(p)))}})}; Xqc=function(W){if(!W.K||!W.W){if(!cM()){var J=g.UO("scheduleGetConfigs");W7(J)}W.T||(W.T=g.r_.mf(function(){return g.V(function(K){switch(K.K){case 1:return g.yQ(K,2),g.O(K,I6H(W),4);case 4:g.Cv(K,3);break;case 2:g.g0(K);case 3:return g.yQ(K,5),g.O(K,S4y(W),7);case 7:g.Cv(K,6);break;case 5:g.g0(K);case 6:W.T&&(W.T=0),g.d0(K)}})},100))}}; pOI=function(W,J,K){var I,q,S;return g.V(function(p){switch(p.K){case 1:if(!g.yb("start_client_gcf")){p.VK(0);break}K&&KC(W,K);W.AA(J);I=cM();if(!I){p.VK(3);break}if(K){p.VK(4);break}return g.O(p,c5H(I),5);case 5:q=p.W,K=(S=q)==null?void 0:S.config;case 4:return g.O(p,vQy(K,J,I),3);case 3:if(K)for(var n=K,A=g.d(W.S.W),D=A.next();!D.done;D=A.next())D=D.value,D(n);g.d0(p)}})}; l6y=function(W,J,K){var I,q,S,p;return g.V(function(n){if(n.K==1){if(!g.yb("start_client_gcf"))return n.VK(0);pC(W,J);return(I=cM())?K?n.VK(4):g.O(n,sWA(I),5):n.VK(0)}n.K!=4&&(q=n.W,K=(S=q)==null?void 0:S.config);if(!K)return n.VK(0);p=K.configData;return g.O(n,Y6c(K,J,p,I),0)})}; nfD=function(){var W=WW0(),J=(0,g.L)()-W.G;if(!(W.G!==0&&J0&&(J.request={internalExperimentFlags:K});D1v(W,void 0,J);jYy(void 0,J);f6L(void 0,J);h8Q(W,void 0,J);tGv(void 0,J);g.yb("start_client_gcf")&&FWH(void 0,J);g.Yf("DELEGATED_SESSION_ID")&& !g.yb("pageid_as_header_web")&&(J.user={onBehalfOfUser:g.Yf("DELEGATED_SESSION_ID")});!g.yb("fill_delegate_context_in_gel_killswitch")&&(W=g.Yf("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(J.user=Object.assign({},J.user,{serializedDelegationContext:W}));W=g.Yf("INNERTUBE_CONTEXT");var I;if(g.yb("enable_persistent_device_token")&&(W==null?0:(I=W.client)==null?0:I.rolloutToken)){var q;J.client.rolloutToken=W==null?void 0:(q=W.client)==null?void 0:q.rolloutToken}I=Object;q=I.assign;W=J.client; K={};for(var S=g.d(Object.entries(Kz(g.Yf("DEVICE","")))),p=S.next();!p.done;p=S.next()){var n=g.d(p.value);p=n.next().value;n=n.next().value;p==="cbrand"?K.deviceMake=n:p==="cmodel"?K.deviceModel=n:p==="cbr"?K.browserName=n:p==="cbrver"?K.browserVersion=n:p==="cos"?K.osName=n:p==="cosver"?K.osVersion=n:p==="cplatform"&&(K.platform=n)}J.client=q.call(I,W,K);return J}; D1v=function(W,J,K){W=W.CD;if(W==="WEB"||W==="MWEB"||W===1||W===2)if(J){K=rU(J,GM,96)||new GM;var I=R$();I=Object.keys(a6H).indexOf(I);I=I===-1?null:I;I!==null&&KW(K,3,I);kP(J,GM,96,K)}else K&&(K.client.mainAppWebInfo=(I=K.client.mainAppWebInfo)!=null?I:{},K.client.mainAppWebInfo.webDisplayMode=R$())}; jYy=function(W,J){var K=g.sH("yt.embedded_player.embed_url");K&&(W?(J=rU(W,HO,7)||new HO,iy(J,4,K),kP(W,HO,7,J)):J&&(J.thirdParty={embedUrl:K}))}; f6L=function(W,J){var K;if(g.yb("web_log_memory_total_kbytes")&&((K=g.vH.navigator)==null?0:K.deviceMemory)){var I;K=(I=g.vH.navigator)==null?void 0:I.deviceMemory;W?QN(W,95,YG(K*1E6)):J&&(J.client.memoryTotalKbytes=""+K*1E6)}}; h8Q=function(W,J,K){if(W.appInstallData)if(J){var I;K=(I=rU(J,gl,62))!=null?I:new gl;iy(K,6,W.appInstallData);kP(J,gl,62,K)}else K&&(K.client.configInfo=K.client.configInfo||{},K.client.configInfo.appInstallData=W.appInstallData)}; tGv=function(W,J){var K=W0y();K&&(W?KW(W,61,u0v[K]):J&&(J.client.connectionType=K));g.yb("web_log_effective_connection_type")&&(K=J5A())&&(W?KW(W,94,NlL[K]):J&&(J.client.effectiveConnectionType=K))}; d1c=function(W,J,K){K=K===void 0?{}:K;var I={};g.Yf("EOM_VISITOR_DATA")?I={"X-Goog-EOM-Visitor-Id":g.Yf("EOM_VISITOR_DATA")}:I={"X-Goog-Visitor-Id":K.visitorData||g.Yf("VISITOR_DATA","")};if(J&&J.includes("www.youtube-nocookie.com"))return I;J=K.ow||g.Yf("AUTHORIZATION");J||(W?J="Bearer "+g.sH("gapi.auth.getToken")().access_token:(W=vac().SM(j2),g.yb("pageid_as_header_web")||delete W["X-Goog-PageId"],I=Object.assign({},I,W)));J&&(I.Authorization=J);return I}; FWH=function(W,J){var K=nfD();if(K){var I=K.coldConfigData,q=K.coldHashData;K=K.hotHashData;if(W){var S;J=(S=rU(W,gl,62))!=null?S:new gl;I=iy(J,1,I);iy(I,3,q).AA(K);kP(W,gl,62,J)}else J&&(J.client.configInfo=J.client.configInfo||{},I&&(J.client.configInfo.coldConfigData=I),q&&(J.client.configInfo.coldHashData=q),K&&(J.client.configInfo.hotHashData=K))}}; fC=function(W,J){this.version=W;this.args=J}; hc=function(W,J){this.topic=W;this.W=J}; UW=function(W,J){var K=tc();K&&K.publish.call(K,W.toString(),W,J)}; ZXL=function(W){var J=ywX,K=tc();if(!K)return 0;var I=K.subscribe(J.toString(),function(q,S){var p=g.sH("ytPubsub2Pubsub2SkipSubKey");p&&p==I||(p=function(){if(Zv[I])try{if(S&&J instanceof hc&&J!=q)try{var n=J.W,A=S;if(!A.args||!A.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!n.iC){var D=new n;n.iC=D.version}var f=n.iC}catch(h){}if(!f||A.version!=f)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{S=Reflect.construct(n, g.U$(A.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 "+J.toString()+": "+h.message,h;}W.call(window,S)}catch(h){g.PO(h)}},U1I[J.toString()]?g.JF()?g.r_.mf(p):g.FW(p,0):p())}); Zv[I]=!0;QC[J.toString()]||(QC[J.toString()]=[]);QC[J.toString()].push(I);return I}; wOH=function(){var W=QYQ,J=ZXL(function(K){W.apply(void 0,arguments);CuH(J)}); return J}; CuH=function(W){var J=tc();J&&(typeof W==="number"&&(W=[W]),g.el(W,function(K){J.unsubscribeByKey(K);delete Zv[K]}))}; tc=function(){return g.sH("ytPubsub2Pubsub2Instance")}; CC=function(W,J,K){K=K===void 0?{sampleRate:.1}:K;Math.random()OXc||p=EfH&&(VC++,g.yb("abandon_compression_after_N_slow_zips")?H2===g.UD("compression_disable_point")&&VC>e8H&&(xg=!1):xg=!1);R8y(J);I.headers||(I.headers={});I.headers["Content-Encoding"]="gzip";I.postBody=W;I.postParams=void 0;q(K,I)}; bXv=function(W){var J=J===void 0?!1:J;var K=K===void 0?!1:K;var I=(0,g.L)(),q={startTime:I,ticks:{},infos:{}},S=J?g.sH("yt.logging.gzipForFetch",!1):!0;if(xg&&S){if(!W.body)return W;try{var p=K?W.body:typeof W.body==="string"?W.body:JSON.stringify(W.body);S=p;if(!K&&typeof p==="string"){var n=x1Q(p);if(n!=null&&(n>OXc||n=EfH)if(VC++,g.yb("abandon_compression_after_N_slow_zips")||g.yb("abandon_compression_after_N_slow_zips_lr")){J=VC/H2;var D=e8H/g.UD("compression_disable_point");H2>0&&H2%g.UD("compression_disable_point")===0&&J>=D&&(xg=!1)}else xg=!1;R8y(q)}}W.headers=Object.assign({},{"Content-Encoding":"gzip"},W.headers||{});W.body=S;return W}catch(f){return W7(f),W}}else return W}; x1Q=function(W){try{return(new Blob(W.split(""))).size}catch(J){return W7(J),null}}; R8y=function(W){g.yb("gel_compression_csi_killswitch")||!g.yb("log_gel_compression_latency")&&!g.yb("log_gel_compression_latency_lr")||CC("gel_compression",W,{sampleRate:.1})}; e2=function(W){var J=this;this.e0=this.W=!1;this.potentialEsfErrorCounter=this.K=0;this.handleError=function(){}; this.je=function(){}; this.now=Date.now;this.eL=!1;this.G$={ZmW:function(f){J.zv=f}, e9y:function(){J.NZ()}, Pb:function(){J.rT()}, Rz:function(f){return g.V(function(h){return g.O(h,J.Rz(f),0)})}, UD:function(f,h){return J.UD(f,h)}, Rp:function(){J.Rp()}}; var K;this.My=(K=W.My)!=null?K:100;var I;this.jW=(I=W.jW)!=null?I:1;var q;this.GK=(q=W.GK)!=null?q:2592E6;var S;this.WA=(S=W.WA)!=null?S:12E4;var p;this.SW=(p=W.SW)!=null?p:5E3;var n;this.zv=(n=W.zv)!=null?n:void 0;this.YM=!!W.YM;var A;this.EU=(A=W.EU)!=null?A:.1;var D;this.BF=(D=W.BF)!=null?D:10;W.handleError&&(this.handleError=W.handleError);W.je&&(this.je=W.je);W.eL&&(this.eL=W.eL);W.e0&&(this.e0=W.e0);this.HS=W.HS;this.zZ=W.zZ;this.HP=W.HP;this.xa=W.xa;this.sendFn=W.sendFn;this.HL=W.HL;this.Up= W.Up;EW(this)&&(!this.HS||this.HS("networkless_logging"))&&Bly(this)}; Bly=function(W){EW(W)&&!W.eL&&(W.W=!0,W.YM&&Math.random()<=W.EU&&W.HP.gE(W.zv),W.Rp(),W.xa.SE()&&W.NZ(),W.xa.listen(W.HL,W.NZ.bind(W)),W.xa.listen(W.Up,W.rT.bind(W)))}; ofX=function(W,J){if(!EW(W))throw Error("IndexedDB is not supported: updateRequestHandlers");var K=J.options.onError?J.options.onError:function(){}; J.options.onError=function(q,S){var p,n,A,D;return g.V(function(f){switch(f.K){case 1:p=m1Q(S);(n=rwy(S))&&W.HS&&W.HS("web_enable_error_204")&&W.handleError(Error("Request failed due to compression"),J.url,S);if(!(W.HS&&W.HS("nwl_consider_error_code")&&p||W.HS&&!W.HS("nwl_consider_error_code")&&W.potentialEsfErrorCounter<=W.BF)){f.VK(2);break}if(!W.xa.E8){f.VK(3);break}return g.O(f,W.xa.E8(),3);case 3:if(W.xa.SE()){f.VK(2);break}K(q,S);if(!W.HS||!W.HS("nwl_consider_error_code")||((A=J)==null?void 0: A.id)===void 0){f.VK(6);break}return g.O(f,W.HP.DZ(J.id,W.zv,!1),6);case 6:return f.return();case 2:if(W.HS&&W.HS("nwl_consider_error_code")&&!p&&W.potentialEsfErrorCounter>W.BF)return f.return();W.potentialEsfErrorCounter++;if(((D=J)==null?void 0:D.id)===void 0){f.VK(8);break}return J.sendCount=400&&W<=599?!1:!0}; rwy=function(W){var J;W=W==null?void 0:(J=W.error)==null?void 0:J.code;return!(W!==400&&W!==415)}; LWc=function(){if(b2)return b2();var W={};b2=g.W2("LogsDatabaseV2",{Su:(W.LogsRequestsStore={gF:2},W),shared:!1,upgrade:function(J,K,I){K(2)&&g.Gq(J,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});K(3);K(5)&&(I=I.objectStore("LogsRequestsStore"),I.W.indexNames.contains("newRequest")&&I.W.deleteIndex("newRequest"),g.VP(I,"newRequestV2",["status","interface","timestamp"]));K(7)&&$k(J,"sapisid");K(9)&&$k(J,"SWHealthLog")}, version:9});return b2()}; B2=function(W){return g.ox(LWc(),W)}; z8c=function(W,J){var K,I,q,S;return g.V(function(p){if(p.K==1)return K={startTime:(0,g.L)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.O(p,B2(J),2);if(p.K!=3)return I=p.W,q=Object.assign({},W,{options:JSON.parse(JSON.stringify(W.options)),interface:g.Yf("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.O(p,g.Tq(I,"LogsRequestsStore",q),3);S=p.W;K.ticks.tc=(0,g.L)();kMQ(K);return p.return(S)})}; vfv=function(W,J){var K,I,q,S,p,n,A,D;return g.V(function(f){if(f.K==1)return K={startTime:(0,g.L)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.O(f,B2(J),2);if(f.K!=3)return I=f.W,q=g.Yf("INNERTUBE_CONTEXT_CLIENT_NAME",0),S=[W,q,0],p=[W,q,(0,g.L)()],n=IDBKeyRange.bound(S,p),A="prev",g.yb("use_fifo_for_networkless")&&(A="next"),D=void 0,g.O(f,g.xk(I,["LogsRequestsStore"],{mode:"readwrite",B7:!0},function(h){return g.bH(h.objectStore("LogsRequestsStore").index("newRequestV2"), {query:n,direction:A},function(t){t.getValue()&&(D=t.getValue(),W==="NEW"&&(D.status="QUEUED",t.update(D)))})}),3); K.ticks.tc=(0,g.L)();kMQ(K);return f.return(D)})}; Y4y=function(W,J){var K;return g.V(function(I){if(I.K==1)return g.O(I,B2(J),2);K=I.W;return I.return(g.xk(K,["LogsRequestsStore"],{mode:"readwrite",B7:!0},function(q){var S=q.objectStore("LogsRequestsStore");return S.get(W).then(function(p){if(p)return p.status="QUEUED",g.OO(S,p).then(function(){return p})})}))})}; sYQ=function(W,J,K,I){K=K===void 0?!0:K;var q;return g.V(function(S){if(S.K==1)return g.O(S,B2(J),2);q=S.W;return S.return(g.xk(q,["LogsRequestsStore"],{mode:"readwrite",B7:!0},function(p){var n=p.objectStore("LogsRequestsStore");return n.get(W).then(function(A){return A?(A.status="NEW",K&&(A.sendCount+=1),I!==void 0&&(A.options.compress=I),g.OO(n,A).then(function(){return A})):g.QP.resolve(void 0)})}))})}; cwH=function(W,J){var K;return g.V(function(I){if(I.K==1)return g.O(I,B2(J),2);K=I.W;return I.return(K.delete("LogsRequestsStore",W))})}; Puy=function(W){var J,K;return g.V(function(I){if(I.K==1)return g.O(I,B2(W),2);J=I.W;K=(0,g.L)()-2592E6;return g.O(I,g.xk(J,["LogsRequestsStore"],{mode:"readwrite",B7:!0},function(q){return g.EO(q.objectStore("LogsRequestsStore"),{},function(S){if(S.getValue().timestamp<=K)return S.delete().then(function(){return g.ex(S)})})}),0)})}; XOA=function(){g.V(function(W){return g.O(W,oQc("LogsDatabaseV2"),0)})}; kMQ=function(W){g.yb("nwl_csi_killswitch")||CC("networkless_performance",W,{sampleRate:1})}; izX=function(W){return g.ox(WQy(),W)}; JaT=function(W){var J,K;g.V(function(I){if(I.K==1)return g.O(I,izX(W),2);J=I.W;K=(0,g.L)()-2592E6;return g.O(I,g.xk(J,["SWHealthLog"],{mode:"readwrite",B7:!0},function(q){return g.EO(q.objectStore("SWHealthLog"),{},function(S){if(S.getValue().timestamp<=K)return S.delete().then(function(){return g.ex(S)})})}),0)})}; KQc=function(W){var J;return g.V(function(K){if(K.K==1)return g.O(K,izX(W),2);J=K.W;return g.O(K,J.clear("SWHealthLog"),0)})}; g.mf=function(W,J,K,I,q,S,p){q=q===void 0?"":q;S=S===void 0?!1:S;p=p===void 0?!1:p;if(W)if(K&&!g.ku())W7(new g.vd("Legacy referrer-scrubbed ping detected")),W&&I_H(W,void 0,{scrubReferrer:!0});else if(q)Cz(W,J,"POST",q,I);else if(g.Yf("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||I||p)Cz(W,J,"GET","",I,void 0,S,p);else{b:{try{c:{var n=new MWH({url:W});if(KR(n.W,"dsh")==="1")var A=null;else{var D=KR(n.W,"ae");if(D==="1"){var f=KR(n.W,"adurl");if(f)try{A={version:3,b3:decodeURIComponent(f),qM:IH(n.W,"act=1", "ri=1",gEH(n))};break c}catch(F){}}A=D==="2"?{version:4,b3:IH(n.W,"dct=1","suid="+n.K,""),qM:IH(n.W,"act=1","ri=1","suid="+n.K)}:null}}if(A){var h=GC(W);var t=!(!h||!h.endsWith("/aclk")||e4(W,"ri")!=="1");break b}}catch(F){}t=!1}t?qDX(W)?(J&&J(),K=!0):K=!1:K=!1;K||I_H(W,J)}}; qDX=function(W,J){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(W,J===void 0?"":J))return!0}catch(K){}return!1}; I_H=function(W,J,K){K=K===void 0?{}:K;var I=new Image,q=""+SDX++;ro[q]=I;I.onload=I.onerror=function(){J&&ro[q]&&J();delete ro[q]}; K.scrubReferrer&&(I.referrerPolicy="no-referrer");I.src=W}; p7c=function(W){var J;return((J=document.featurePolicy)==null?0:J.allowedFeatures().includes("attribution-reporting"))?W+"&nis=6":W+"&nis=5"}; LC=function(){oO||(oO=new Ix("yt.offline"));return oO}; l_H=function(W){if(g.yb("offline_error_handling")){var J=LC().get("errors",!0)||{};J[W.message]={name:W.name,stack:W.stack};W.level&&(J[W.message].level=W.level);LC().set("errors",J,2592E3,!0)}}; kg=function(){this.W=new Map;this.K=!1}; z3=function(){if(!kg.instance){var W=g.sH("yt.networkRequestMonitor.instance")||new kg;g.Yc("yt.networkRequestMonitor.instance",W);kg.instance=W}return kg.instance}; v2=function(){g.t0.call(this);var W=this;this.K=!1;this.W=uIL();this.W.listen("networkstatus-online",function(){if(W.K&&g.yb("offline_error_handling")){var J=LC().get("errors",!0);if(J){for(var K in J)if(J[K]){var I=new g.vd(K,"sent via offline_errors");I.name=J[K].name;I.stack=J[K].stack;I.level=J[K].level;g.PO(I)}LC().set("errors",{},2592E3,!0)}}})}; nuy=function(){if(!v2.instance){var W=g.sH("yt.networkStatusManager.instance")||new v2;g.Yc("yt.networkStatusManager.instance",W);v2.instance=W}return v2.instance}; g.Yg=function(W){W=W===void 0?{}:W;g.t0.call(this);var J=this;this.W=this.T=0;this.K=nuy();var K=g.sH("yt.networkStatusManager.instance.listen").bind(this.K);K&&(W.rateLimit?(this.rateLimit=W.rateLimit,K("networkstatus-online",function(){Aac(J,"publicytnetworkstatus-online")}),K("networkstatus-offline",function(){Aac(J,"publicytnetworkstatus-offline")})):(K("networkstatus-online",function(){J.dispatchEvent("publicytnetworkstatus-online")}),K("networkstatus-offline",function(){J.dispatchEvent("publicytnetworkstatus-offline")})))}; Aac=function(W,J){W.rateLimit?W.W?(g.r_.Pj(W.T),W.T=g.r_.mf(function(){W.G!==J&&(W.dispatchEvent(J),W.G=J,W.W=(0,g.L)())},W.rateLimit-((0,g.L)()-W.W))):(W.dispatchEvent(J),W.G=J,W.W=(0,g.L)()):W.dispatchEvent(J)}; c2=function(){var W=e2.call;sW||(sW=new g.Yg({pUK:!0,FjK:!0}));W.call(e2,this,{HP:{gE:Puy,Fm:cwH,Qu:vfv,k8N:Y4y,DZ:sYQ,set:z8c},xa:sW,handleError:function(J,K,I){var q,S=I==null?void 0:(q=I.error)==null?void 0:q.code;if(S===400||S===415){var p;J=new g.vd(J.message,K,I==null?void 0:(p=I.error)==null?void 0:p.code);W7(J,void 0,void 0,void 0,!0)}else g.PO(J)}, je:W7,sendFn:DUT,now:g.L,lj:l_H,zZ:g.iH(),HL:"publicytnetworkstatus-online",Up:"publicytnetworkstatus-offline",YM:!0,EU:.1,BF:g.UD("potential_esf_error_limit",10),HS:g.yb,eL:!(g.sN()&&g.gM(document.location.toString())!=="www.youtube-nocookie.com")});this.G=new g.FB;g.yb("networkless_immediately_drop_all_requests")&&XOA();L0T("LogsDatabaseV2")}; P2=function(){var W=g.sH("yt.networklessRequestController.instance");W||(W=new c2,g.Yc("yt.networklessRequestController.instance",W),g.yb("networkless_logging")&&g.PM().then(function(J){W.zv=J;Bly(W);W.G.resolve();W.YM&&Math.random()<=W.EU&&W.zv&&JaT(W.zv);g.yb("networkless_immediately_drop_sw_health_store")&&jvQ(W)})); return W}; jvQ=function(W){var J;g.V(function(K){if(!W.zv)throw J=g.UO("clearSWHealthLogsDb"),J;return K.return(KQc(W.zv).catch(function(I){W.handleError(I)}))})}; DUT=function(W,J,K,I){I=I===void 0?!1:I;J=g.yb("web_fp_via_jspb")?Object.assign({},J):J;g.yb("use_cfr_monitor")&&f_D(W,J);if(g.yb("use_request_time_ms_header"))J.headers&&lX(W)&&(J.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.L)())));else{var q;if((q=J.postParams)==null?0:q.requestTimeMs)J.postParams.requestTimeMs=Math.round((0,g.L)())}K&&Object.keys(J).length===0?g.mf(W):J.compress?J.postBody?(typeof J.postBody!=="string"&&(J.postBody=JSON.stringify(J.postBody)),T3(W,J.postBody, J,g.wq,I)):T3(W,JSON.stringify(J.postParams),J,MU,I):g.wq(W,J)}; Xl=function(W,J){g.yb("use_event_time_ms_header")&&lX(W)&&(J.headers||(J.headers={}),J.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.L)())));return J}; f_D=function(W,J){var K=J.onError?J.onError:function(){}; J.onError=function(q,S){z3().requestComplete(W,!1);K(q,S)}; var I=J.onSuccess?J.onSuccess:function(){}; J.onSuccess=function(q,S){z3().requestComplete(W,!0);I(q,S)}}; g.Wb=function(W){this.config_=null;W?this.config_=W:AwQ()&&(this.config_=g.Ac())}; g.i9=function(W,J,K,I){function q(D){try{if((D===void 0?0:D)&&I.retry&&!I.networklessOptions.bypassNetworkless)S.method="POST",I.networklessOptions.writeThenSend?P2().writeThenSend(A,S):P2().sendAndWrite(A,S);else if(I.compress){var f=!I.networklessOptions.writeThenSend;if(S.postBody){var h=S.postBody;typeof h!=="string"&&(h=JSON.stringify(S.postBody));T3(A,h,S,g.wq,f)}else T3(A,JSON.stringify(S.postParams),S,MU,f)}else g.yb("web_all_payloads_via_jspb")?g.wq(A,S):MU(A,S)}catch(t){if(t.name==="InvalidAccessError")W7(Error("An extension is blocking network request.")); else throw t;}} !g.Yf("VISITOR_DATA")&&J!=="visitor_id"&&Math.random()<.01&&W7(new g.vd("Missing VISITOR_DATA when sending innertube request.",J,K,I));if(!W.isReady())throw W=new g.vd("innertube xhrclient not ready",J,K,I),g.PO(W),W;var S={headers:I.headers||{},method:"POST",postParams:K,postBody:I.postBody,postBodyFormat:I.postBodyFormat||"JSON",onTimeout:function(){I.onTimeout()}, onFetchTimeout:I.onTimeout,onSuccess:function(D,f){if(I.onSuccess)I.onSuccess(f)}, onFetchSuccess:function(D){if(I.onSuccess)I.onSuccess(D)}, onError:function(D,f){if(I.onError)I.onError(f)}, onFetchError:function(D){if(I.onError)I.onError(D)}, timeout:I.timeout,withCredentials:!0,compress:I.compress};S.headers["Content-Type"]||(S.headers["Content-Type"]="application/json");K="";var p=W.config_.Xi;p&&(K=p);p=W.config_.M5||!1;var n=d1c(p,K,I);Object.assign(S.headers,n);S.headers.Authorization&&!K&&p&&(S.headers["x-origin"]=window.location.origin);var A=SC(""+K+("/youtubei/"+W.config_.innertubeApiVersion+"/"+J),{alt:"json"});g.sH("ytNetworklessLoggingInitializationOptions")&&hJv.isNwlInitialized?EQQ().then(function(D){q(D)}):q(!1)}; g.ST=function(W,J,K){var I=g.Jj();if(I&&J){var q=I.subscribe(W,function(){function S(){KI[q]&&J.apply&&typeof J.apply=="function"&&J.apply(K||window,p)} var p=arguments;try{g.Ia[W]?S():g.FW(S,0)}catch(n){g.PO(n)}},K); KI[q]=!0;qv[W]||(qv[W]=[]);qv[W].push(q);return q}return 0}; tCL=function(W){var J=g.ST("LOGGED_IN",function(K){W.apply(void 0,arguments);g.pI(J)})}; g.pI=function(W){var J=g.Jj();J&&(typeof W==="number"?W=[W]:typeof W==="string"&&(W=[parseInt(W,10)]),g.el(W,function(K){J.unsubscribeByKey(K);delete KI[K]}))}; g.l9=function(W,J){var K=g.Jj();return K?K.publish.apply(K,arguments):!1}; a_Q=function(W){var J=g.Jj();if(J)if(J.clear(W),W)FQA(W);else for(var K in qv)FQA(K)}; g.Jj=function(){return g.vH.ytPubsubPubsubInstance}; FQA=function(W){qv[W]&&(W=qv[W],g.el(W,function(J){KI[J]&&delete KI[J]}),W.length=0)}; g.nI=function(W,J,K){uW0(W,J,K===void 0?null:K)}; uW0=function(W,J,K){K=K===void 0?null:K;var I=Nqy(W),q=document.getElementById(I),S=q&&xWI(q),p=q&&!S;S?J&&J():(J&&(S=g.ST(I,J),J=""+g.Kx(J),dU0[J]=S),p||(q=yaQ(W,I,function(){xWI(q)||($Wy(q),g.l9(I),g.FW(function(){a_Q(I)},0))},K)))}; yaQ=function(W,J,K,I){I=I===void 0?null:I;var q=g.i5("SCRIPT");q.id=J;q.onload=function(){K&&setTimeout(K,0)}; q.onreadystatechange=function(){switch(q.readyState){case "loaded":case "complete":q.onload()}}; I&&q.setAttribute("nonce",I);g.nw(q,g.wl(W));W=document.getElementsByTagName("head")[0]||document.body;W.insertBefore(q,W.firstChild);return q}; Nqy=function(W){var J=document.createElement("a");g.cX(J,W);W=J.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+dn(W)}; Aj=function(W,J){if(W===J)W=!0;else if(Array.isArray(W)&&Array.isArray(J))W=g.HR(W,J,Aj);else if(g.i0(W)&&g.i0(J))a:if(g.zT(W).length!=g.zT(J).length)W=!1;else{for(var K in W)if(!Aj(W[K],J[K])){W=!1;break a}W=!0}else W=!1;return W}; fI=function(W){var J=g.EH.apply(1,arguments);if(!Ds(W)||J.some(function(I){return!Ds(I)}))throw Error("Only objects may be merged."); J=g.d(J);for(var K=J.next();!K.done;K=J.next())jT(W,K.value)}; jT=function(W,J){for(var K in J)if(Ds(J[K])){if(K in W&&!Ds(W[K]))throw Error("Cannot merge an object into a non-object.");K in W||(W[K]={});jT(W[K],J[K])}else if(u9(J[K])){if(K in W&&!u9(W[K]))throw Error("Cannot merge an array into a non-array.");K in W||(W[K]=[]);UUA(W[K],J[K])}else W[K]=J[K];return W}; UUA=function(W,J){J=g.d(J);for(var K=J.next();!K.done;K=J.next())K=K.value,Ds(K)?W.push(jT({},K)):u9(K)?W.push(UUA([],K)):W.push(K);return W}; Ds=function(W){return typeof W==="object"&&!Array.isArray(W)}; u9=function(W){return typeof W==="object"&&Array.isArray(W)}; Nv=function(W){g.R.call(this);this.K=W}; db=function(W){Nv.call(this,!0);this.W=W}; yF=function(W,J){g.R.call(this);var K=this;this.G=[];this.Z=!1;this.K=0;this.j=this.S=this.T=!1;this.PS=null;var I=(0,g.Io)(W,J);this.W=new g.P0(function(){return I(K.PS)},300); g.B(this,this.W);this.C=this.N=Infinity}; ZzI=function(W,J){if(!J)return!1;for(var K=0;K-1)throw Error("Deps cycle for: "+J);if(W.K.has(J))return W.K.get(J);if(!W.W.has(J)){if(I)return;throw Error("No provider for: "+J);}I=W.W.get(J);K.push(J);if(I.uT!==void 0)var q=I.uT;else if(I.HQI)q=I[T$]?MCA(W,I[T$],K):[],q=I.HQI.apply(I,g.w(q));else if(I.R4){q=I.R4;var S=q[T$]?MCA(W,q[T$],K):[];q=new (Function.prototype.bind.apply(q,[null].concat(g.w(S))))}else throw Error("Could not resolve providers for: "+J);K.pop();I.Hmh||W.K.set(J,q); return q}; MCA=function(W,J,K){return J?J.map(function(I){return I instanceof $L?Hb(W,I.key,K,!0):Hb(W,I,K)}):[]}; EZ=function(){VF||(VF=new w70);return VF}; Ra=function(){var W,J;return"h5vcc"in eT&&((W=eT.h5vcc.traceEvent)==null?0:W.traceBegin)&&((J=eT.h5vcc.traceEvent)==null?0:J.traceEnd)?1:"performance"in eT&&eT.performance.mark&&eT.performance.measure?2:0}; b9=function(W){var J=Ra();switch(J){case 1:eT.h5vcc.traceEvent.traceBegin("YTLR",W);break;case 2:eT.performance.mark(W+"-start");break;case 0:break;default:PX(J,"unknown trace type")}}; guy=function(W){var J=Ra();switch(J){case 1:eT.h5vcc.traceEvent.traceEnd("YTLR",W);break;case 2:J=W+"-start";var K=W+"-end";eT.performance.mark(K);eT.performance.measure(W,J,K);break;case 0:break;default:PX(J,"unknown trace type")}}; G_0=function(W){var J,K;(K=(J=window).onerror)==null||K.call(J,W.message,"",0,0,W)}; $UQ=function(W){var J=this;var K=K===void 0?0:K;var I=I===void 0?g.iH():I;this.G=K;this.scheduler=I;this.K=new g.FB;this.W=W;for(W={qC:0};W.qC=1E3?q():I>=W?Am||(Am=Du(function(){q();Am=void 0},0)):S-n>=10&&(vuQ(J,K.tier),p.T=S)}; raQ=function(W,J){if(W.endpoint==="log_event"){g.yb("more_accurate_gel_parser")&&is().storePayload({isJspb:!1},W.payload);KJ(W);var K=Ih(W),I=new Map;I.set(K,[W.payload]);var q=bzv(W.payload)||"";J&&(ls=new J);return new g.MZ(function(S,p){ls&&ls.isReady()?YDH(I,ls,S,p,{bypassNetworkless:!0},!0,Sg(q)):S()})}}; k_T=function(W,J,K){if(J.endpoint==="log_event"){KJ(void 0,J);var I=Ih(J,!0),q=new Map;q.set(I,[je(J.payload)]);K&&(ls=new K);return new g.MZ(function(S){ls&&ls.isReady()?svc(q,ls,S,{bypassNetworkless:!0},!0,Sg(W)):S()})}}; Ih=function(W,J){var K="";if(W.dangerousLogToVisitorSession)K="visitorOnlyApprovedKey";else if(W.cttAuthInfo){if(J===void 0?0:J){J=W.cttAuthInfo.token;K=W.cttAuthInfo;var I=new oY;K.videoId?I.setVideoId(K.videoId):K.playlistId&&ee(I,2,jg,PD(K.playlistId));fJ[J]=I}else J=W.cttAuthInfo,K={},J.videoId?K.videoId=J.videoId:J.playlistId&&(K.playlistId=J.playlistId),hm[W.cttAuthInfo.token]=K;K=W.cttAuthInfo.token}return K}; pJ=function(W,J,K){W=W===void 0?{}:W;J=J===void 0?!1:J;new g.MZ(function(I,q){var S=nJ(J,K),p=S.G;S.G=!1;tm(S.K);tm(S.W);S.W=0;ls&&ls.isReady()?K===void 0&&g.yb("enable_web_tiered_gel")?cav(I,q,W,J,300,p):cav(I,q,W,J,K,p):(vuQ(J,K),I())})}; cav=function(W,J,K,I,q,S){var p=ls;K=K===void 0?{}:K;I=I===void 0?!1:I;q=q===void 0?200:q;S=S===void 0?!1:S;var n=new Map,A=new Map,D={isJspb:I,cttAuthInfo:void 0,tier:q},f={isJspb:I,cttAuthInfo:void 0};if(I){J=g.d(Object.keys(q_));for(q=J.next();!q.done;q=J.next())q=q.value,A=g.yb("enable_web_tiered_gel")?is().smartExtractMatchingEntries({keys:[D,f],sizeLimit:1E3}):is().extractMatchingEntries({isJspb:!0,cttAuthInfo:q}),A.length>0&&n.set(q,A),(g.yb("web_fp_via_jspb_and_json")&&K.writeThenSend||!g.yb("web_fp_via_jspb_and_json"))&& delete q_[q];svc(n,p,W,K,!1,S)}else{n=g.d(Object.keys(q_));for(D=n.next();!D.done;D=n.next())D=D.value,f=g.yb("enable_web_tiered_gel")?is().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:D,tier:q},{isJspb:!1,cttAuthInfo:D}],sizeLimit:1E3}):is().extractMatchingEntries({isJspb:!1,cttAuthInfo:D}),f.length>0&&A.set(D,f),(g.yb("web_fp_via_jspb_and_json")&&K.writeThenSend||!g.yb("web_fp_via_jspb_and_json"))&&delete q_[D];YDH(A,p,W,J,K,!1,S)}}; vuQ=function(W,J){function K(){pJ({writeThenSend:!0},W,J)} W=W===void 0?!1:W;J=J===void 0?200:J;var I=nJ(W,J),q=I===PXH||I===X7X?5E3:WrL;g.yb("web_gel_timeout_cap")&&!I.W&&(q=Du(function(){K()},q),I.W=q); tm(I.K);q=g.Yf("LOGGING_BATCH_TIMEOUT",g.UD("web_gel_debounce_ms",1E4));g.yb("shorten_initial_gel_batch_timeout")&&Fn&&(q=inH);q=Du(function(){g.UD("gel_min_batch_size")>0?is().getSequenceCount({cttAuthInfo:void 0,isJspb:W,tier:J})>=JJy&&K():K()},q); I.K=q}; YDH=function(W,J,K,I,q,S,p){q=q===void 0?{}:q;var n=Math.round((0,g.L)()),A=W.size,D=KrA(p);W=g.d(W);var f=W.next();for(p={};!f.done;p={qm:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,oI:void 0,Ei:void 0},f=W.next()){var h=g.d(f.value);f=h.next().value;h=h.next().value;p.batchRequest=g.JX({context:g.Dv(J.config_||g.Ac())});if(!g.WR(h)&&!g.yb("throw_err_when_logevent_malformed_killswitch")){I();break}p.batchRequest.events=h;(h=hm[f])&&IRy(p.batchRequest,f,h);delete hm[f];p.dangerousLogToVisitorSession= f==="visitorOnlyApprovedKey";qNH(p.batchRequest,n,p.dangerousLogToVisitorSession);SND(q);p.oI=function(t){g.yb("start_client_gcf")&&g.r_.mf(function(){return g.V(function(F){return g.O(F,pdH(t),0)})}); A--;A||K()}; p.qm=0;p.Ei=function(t){return function(){t.qm++;if(q.bypassNetworkless&&t.qm===1)try{g.i9(J,D,t.batchRequest,ah({writeThenSend:!0},t.dangerousLogToVisitorSession,t.oI,t.Ei,S)),Fn=!1}catch(F){g.PO(F),I()}A--;A||K()}}(p); try{g.i9(J,D,p.batchRequest,ah(q,p.dangerousLogToVisitorSession,p.oI,p.Ei,S)),Fn=!1}catch(t){g.PO(t),I()}}}; svc=function(W,J,K,I,q,S){I=I===void 0?{}:I;var p=Math.round((0,g.L)()),n={value:W.size},A=new Map([].concat(g.w(W)));A=g.d(A);for(var D=A.next();!D.done;D=A.next()){var f=g.d(D.value).next().value,h=W.get(f);D=new EVA;var t=J.config_||g.Ac(),F=new eG,a=new $f;iy(a,1,t.Rx);iy(a,2,t.fD);KW(a,16,t.VC);iy(a,17,t.innertubeContextClientVersion);if(t.tU){var y=t.tU,U=new gl;y.coldConfigData&&iy(U,1,y.coldConfigData);y.appInstallData&&iy(U,6,y.appInstallData);y.coldHashData&&iy(U,3,y.coldHashData);y.hotHashData&& U.AA(y.hotHashData);kP(a,gl,62,U)}(y=g.vH.devicePixelRatio)&&y!=1&&QN(a,65,eB(y));y=Z_();y!==""&&iy(a,54,y);y=Qb();if(y.length>0){U=new TM;for(var Q=0;Q65535&&(W=1);vO("BATCH_CLIENT_COUNTER",W);return W}; IRy=function(W,J,K){if(K.videoId)var I="VIDEO";else if(K.playlistId)I="PLAYLIST";else return;W.credentialTransferTokenTargetId=K;W.context=W.context||{};W.context.user=W.context.user||{};W.context.user.credentialTransferTokens=[{token:J,scope:I}]}; KJ=function(W,J){var K=g.sH("yt.logging.transport.enableScrapingForTest"),I=dq("il_payload_scraping");I=(I!==void 0?String(I):"")==="enable_il_payload_scraping";if(!K)if(I)dT=[],g.Yc("yt.logging.transport.enableScrapingForTest",!0),g.Yc("yt.logging.transport.scrapedPayloadsForTesting",dT),g.Yc("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Yc("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Yc("yt.logging.transport.scrapeClientEvent",!0);else return;K=g.sH("yt.logging.transport.scrapedPayloadsForTesting");I=g.sH("yt.logging.transport.payloadToScrape");J&&(J=J.payload,(J=g.sH("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(J)())&&K.push(J));J=g.sH("yt.logging.transport.scrapeClientEvent");if(I&&I.length>=1)for(var q=0;q0&&gdv(W,J,S)}else gdv(W,J)}; gdv=function(W,J,K){W=GWA(W);J=J?g.Ho(J):"";K=K||5;Kn()&&g.ED(W,J,K)}; GWA=function(W){for(var J=g.d($kA),K=J.next();!K.done;K=J.next())W=Ri(W,K.value);return"ST-"+dn(W).toString(36)}; xkv=function(W){if(W.name==="JavaException")return!0;W=W.stack;return W.includes("chrome://")||W.includes("chrome-extension://")||W.includes("moz-extension://")}; Onv=function(){this.mB=[];this.vU=[]}; xb=function(){if(!$b){var W=$b=new Onv;W.vU.length=0;W.mB.length=0;Tic(W,Hn0)}return $b}; Tic=function(W,J){J.vU&&W.vU.push.apply(W.vU,J.vU);J.mB&&W.mB.push.apply(W.mB,J.mB)}; V60=function(W){function J(){return W.charCodeAt(I++)} var K=W.length,I=0;do{var q=OT(J);if(q===Infinity)break;var S=q>>3;switch(q&7){case 0:q=OT(J);if(S===2)return q;break;case 1:if(S===2)return;I+=8;break;case 2:q=OT(J);if(S===2)return W.substr(I,q);I+=q;break;case 5:if(S===2)return;I+=4;break;default:return}}while(I500));I++);I=q}else if(typeof W==="object")for(q in W){if(W[q]){var S=q;var p=W[q],n=J,A=K;S=typeof p!=="string"||S!=="clickTrackingParams"&&S!=="trackingParams"?0:(p=V60(atob(p.replace(/-/g,"+").replace(/_/g,"/"))))?Tz(S+".ve",p,n,A):0;I+=S;I+=Tz(q,W[q],J,K);if(I>500)break}}else K[J]=Hm(W),I+=K[J].length;else K[J]=Hm(W),I+=K[J].length;return I}; Tz=function(W,J,K,I){K+="."+W;W=Hm(J);I[K]=W;return K.length+W.length}; Hm=function(W){try{return(typeof W==="string"?W:String(JSON.stringify(W))).substr(0,500)}catch(J){return"unable to serialize "+typeof W+" ("+J.message+")"}}; nL=function(W){g.Va(W)}; g.ET=function(W){g.Va(W,"WARNING")}; g.Va=function(W,J){var K=K===void 0?{}:K;K.name=g.Yf("INNERTUBE_CONTEXT_CLIENT_NAME",1);K.version=g.Yf("INNERTUBE_CONTEXT_CLIENT_VERSION");J=J===void 0?"ERROR":J;var I=!1;J=J===void 0?"ERROR":J;I=I===void 0?!1:I;if(W){W.hasOwnProperty("level")&&W.level&&(J=W.level);if(g.yb("console_log_js_exceptions")){var q=[];q.push("Name: "+W.name);q.push("Message: "+W.message);W.hasOwnProperty("params")&&q.push("Error Params: "+JSON.stringify(W.params));W.hasOwnProperty("args")&&q.push("Error args: "+JSON.stringify(W.args)); q.push("File name: "+W.fileName);q.push("Stacktrace: "+W.stack);window.console.log(q.join("\n"),W)}if(!(ekv>=5)){q=[];for(var S=g.d(RkH),p=S.next();!p.done;p=S.next()){p=p.value;try{p()&&q.push(p())}catch(y){}}q=[].concat(g.w(bnc),g.w(q));var n=pRv(W);S=n.message||"Unknown Error";p=n.name||"UnknownError";var A=n.stack||W.K||"Not available";if(A.startsWith(p+": "+S)){var D=A.split("\n");D.shift();A=D.join("\n")}D=n.lineNumber||"Not available";n=n.fileName||"Not available";var f=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 t=W.params;if(typeof W.params==="object")for(h in t){if(t[h]){var F="params."+h,a=Hm(t[h]);K[F]=a;f+=F.length+a.length;if(f>500)break}}else K.params=Hm(t)}if(q.length)for(h=0;h=500);h++);navigator.vendor&&!K.hasOwnProperty("vendor")&&(K["device.vendor"]=navigator.vendor);K={message:S,name:p,lineNumber:D, fileName:n,stack:A,params:K,sampleWeight:1};h=Number(W.columnNumber);isNaN(h)||(K.lineNumber=K.lineNumber+":"+h);if(W.level==="IGNORED")W=0;else a:{W=xb();h=g.d(W.vU);for(q=h.next();!q.done;q=h.next())if(q=q.value,K.message&&K.message.match(q.Mw)){W=q.weight;break a}W=g.d(W.mB);for(h=W.next();!h.done;h=W.next())if(h=h.value,h.callback(K)){W=h.weight;break a}W=1}K.sampleWeight=W;W=g.d(Bi0);for(h=W.next();!h.done;h=W.next())if(h=h.value,h.al[K.name])for(S=g.d(h.al[K.name]),q=S.next();!q.done;q=S.next())if(p= q.value,q=K.message.match(p.Al)){K.params["params.error.original"]=q[0];S=p.groups;p={};for(D=0;D1E3&&g.ET(new g.vd("IL Attach cache exceeded limit"))}n= sT(K,J);LJ.has(n)?cm(K,J):zz.set(n,!0)}}I=I.filter(function(f){f.csn!==J?(f.csn=J,f=!0):f=!1;return f}); K={csn:J,parentVe:K.getAsJson(),childVes:g.zC(I,function(f){return f.getAsJson()})}; J==="UNDEFINED_CSN"?Pm("visualElementAttached",S,K):W?UT("visualElementAttached",K,W,S):g.AF("visualElementAttached",K,S)}; JFH=function(W,J,K,I,q){Xn(K,J);I=oh({cttAuthInfo:gT(J)||void 0},J);K={csn:J,ve:K.getAsJson(),eventType:1};q&&(K.clientData=q);J==="UNDEFINED_CSN"?Pm("visualElementShown",I,K):W?UT("visualElementShown",K,W,I):g.AF("visualElementShown",K,I)}; K90=function(W,J,K,I){var q=(I=I===void 0?!1:I)?16:8;I=oh({cttAuthInfo:gT(J)||void 0,endOfSequence:I},J);K={csn:J,ve:K.getAsJson(),eventType:q};J==="UNDEFINED_CSN"?Pm("visualElementHidden",I,K):W?UT("visualElementHidden",K,W,I):g.AF("visualElementHidden",K,I)}; iG=function(W,J,K,I,q){W3(W,J,K,void 0,I,q)}; W3=function(W,J,K,I,q){Xn(K,J);I=I||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var S=oh({cttAuthInfo:gT(J)||void 0},J);K={csn:J,ve:K.getAsJson(),gestureType:I};q&&(K.clientData=q);J==="UNDEFINED_CSN"?Pm("visualElementGestured",S,K):W?UT("visualElementGestured",K,W,S):g.AF("visualElementGestured",K,S)}; ItI=function(){var W=Zs(16);for(var J=[],K=0;K0&&K.push(g.i5("BR"));K.push(g.JL(S))}):K.push(g.JL(I))}return K}; ho=function(W,J,K,I){if(K==="child"){g.Ii(J);var q;I===void 0?q=void 0:q=!Array.isArray(I)||I&&typeof I.V==="string"?[I]:I;K=SOc(W,q);K=g.d(K);for(W=K.next();!W.done;W=K.next())J.appendChild(W.value)}else K==="style"?g.bj(J,"cssText",I?I:""):I===null||I===void 0?J.removeAttribute(K):(W=I.toString(),K==="href"&&(W=g.oG(g.vX(W))),J.setAttribute(K,W))}; g.k=function(W){g.jV.call(this,W);this.W7=!0;this.j=!1;this.listeners=[]}; g.to=function(W){g.k.call(this,W);this.FW=new g.Ao;g.B(this,this.FW)}; Fo=function(W,J,K,I,q,S,p){p=p===void 0?null:p;g.to.call(this,J);this.api=W;this.macros={};this.componentType=K;this.Z=this.N=null;this.P7=p;this.layoutId=I;this.interactionLoggingClientData=q;this.yK=S;this.D0=null;this.Ar=new db(this.element);g.B(this,this.Ar);this.eZ=this.D(this.element,"click",this.onClick);this.XW=[];this.G8=new yF(this.onClick,this);g.B(this,this.G8);this.sT=!1;this.jZ=this.PS=null}; aE=function(W,J){W=W===void 0?null:W;J=J===void 0?null:J;if(W==null)return g.ET(Error("Got null or undefined adText object")),"";var K=g.N3(W.text);if(!W.isTemplated)return K;if(J==null)return g.ET(Error("Missing required parameters for a templated message")),K;W=g.d(Object.entries(J));for(J=W.next();!J.done;J=W.next()){var I=g.d(J.value);J=I.next().value;I=I.next().value;K=K.replace("{"+J+"}",I)}return K}; pMD=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.N3(W.thumbnails[0].url):""}; ltA=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.Vt(W.thumbnails[0].width||0,W.thumbnails[0].height||0):new g.Vt(0,0)}; g.uG=function(W){if(W.simpleText)return W.simpleText;if(W.runs){var J=[];W=g.d(W.runs);for(var K=W.next();!K.done;K=W.next())K=K.value,K.text&&J.push(K.text);return J.join("")}return""}; g.N4=function(W){if(W.simpleText)return W=document.createTextNode(W.simpleText),W;var J=[];if(W.runs)for(var K=0;K1){for(var J=[W[0]],K=1;K0&&(this.W=new g.P0(this.tF,J,this),g.B(this,this.W));this.j=new g.P0(this.tF,K,this);g.B(this,this.j);this.N=CaQ(this.K,q,1,I);g.B(this,this.N);this.Z=CaQ(this.K,0,I,1);g.B(this,this.Z);this.T=new gi;g.B(this,this.T)}; D1=function(W,J,K){this.K=W;this.isAsync=J;this.W=K}; YOD=function(W){switch(W){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:PX(W,"unknown result type")}}; sx0=function(W,J){var K=1;W.isTrusted===!1&&(K=0);vO("ISDSTAT",K);j$(K,"i.s_",{triggerContext:"sk",metadata:J});return K}; cFH=function(W,J){var K=[];J?J.isTrusted===!0?K.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):J.isTrusted===!1?K.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):K.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):K.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");j$(0,"a.s_",{metadata:W,states:K});vO("ASDSTAT",0)}; j$=function(W,J,K){J=PHQ[J];var I,q,S={detected:W===0,source:""+J.K+((I=K.triggerContext)!=null?I:"")+((q=K.t8)!=null?q:""),detectionStates:K.states,durationMs:K.o2};K.metadata&&(S.contentCpn=K.metadata.contentCpn,S.adCpn=K.metadata.adCpn);g.AF("biscottiBasedDetection",S);J.W!==void 0&&(K=Number(g.Yf("CATSTAT",0)),J.W!==void 0?(J=J.W,W=YOD(W),W=K&~(3<0}; Nf=function(W,J,K,I,q,S){Jq.call(this,W,{V:"div",B:"ytp-ad-skip-button-slot"},"skip-button",J,K,I,q);var p=this;this.sI=null;this.vS=!1;this.OI=S;this.S=this.api.J().experiments.HS("enable_modern_skip_button_on_web");this.bO=!1;this.T=new g.to({V:"span",au:["ytp-ad-skip-button-container"]});this.S&&this.T.element.classList.add("ytp-ad-skip-button-container-detached");g.B(this,this.T);this.T.MN(this.element);this.K=this.G=null;this.Js=new g.qf(this.T,500,!1,100,function(){return p.hide()}); g.B(this,this.Js);this.SZ=new Aq(this.T.element,15E3,5E3,.5,.5,this.S);g.B(this,this.SZ);this.hide()}; WfX=function(W){W=W.sI&&W.sI.adRendererCommands;return(W&&W.clickCommand&&g.m(W.clickCommand,g.dc)&&g.m(W.clickCommand,g.dc).commands||[]).some(function(J){return J.adLifecycleCommand?XMT(J.adLifecycleCommand):!1})}; XMT=function(W){return W.action==="END_LINEAR_AD"||W.action==="END_LINEAR_AD_PLACEMENT"}; yS=function(W,J,K,I,q,S){Jq.call(this,W,{V:"div",B:"ytp-ad-skip-ad-slot"},"skip-ad",J,K,I,q);this.sI=S;this.T=!1;this.S=0;this.G=this.K=null;this.hide()}; iC0=function(W,J){W.T||(W.T=!0,W.K&&(J?W.K.sI.hide():W.K.hide()),J?(W=W.G,W.Js.show(),W.show()):W.G.show())}; Uo=function(W,J,K,I){H3.call(this,W,J,K,I,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; Z1=function(W,J,K,I,q,S,p){S=S===void 0?!1:S;p=p===void 0?!1:p;Fo.call(this,W,{V:"span",B:"ytp-ad-simple-ad-badge"},"simple-ad-badge",J,K,I);this.G=q;this.W=this.T8("ytp-ad-simple-ad-badge");(this.K=S)&&this.W.classList.add("ytp-ad-simple-ad-badge--clean-player");p&&this.W.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; QS=function(W,J,K,I,q){q=q===void 0?!1:q;n$.call(this,"player-overlay",W,{},J,I);this.videoAdDurationSeconds=K;this.interactionLoggingClientData=I;this.Ip=q}; Ci=function(W,J){g.Ao.call(this);this.api=W;this.durationMs=J;this.W=null;this.uK=new gi(this);g.B(this,this.uK);this.K=JcA;this.uK.D(this.api,"presentingplayerstatechange",this.ew);this.W=this.uK.D(this.api,"onAdPlaybackProgress",this.ZH)}; wc=function(W){g.Ao.call(this);this.W=!1;this.u2=0;this.uK=new gi(this);g.B(this,this.uK);this.durationMs=W;this.tD=new g.RI(100);g.B(this,this.tD);this.uK.D(this.tD,"tick",this.ZH);this.K={seekableStart:0,seekableEnd:W/1E3,current:0};this.start()}; g.Mf=function(W,J){var K=Math.abs(Math.floor(W)),I=Math.floor(K/86400),q=Math.floor(K%86400/3600),S=Math.floor(K%3600/60);K=Math.floor(K%60);if(J){J="";I>0&&(J+=" "+I+" d\u00edas");if(I>0||q>0)J+=" "+q+" horas";J+=" "+S+" minutos";J+=" "+K+" segundos";I=J.trim()}else{J="";I>0&&(J+=I+":",q<10&&(J+="0"));if(I>0||q>0)J+=q+":",S<10&&(J+="0");J+=S+":";K<10&&(J+="0");I=J+K}return W>=0?I:"-"+I}; g.gc=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)}; Ge=function(W,J,K,I,q,S,p){Jq.call(this,W,{V:"span",B:p?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",J,K,I,q);this.videoAdDurationSeconds=S;this.K=null;p&&this.api.J().K&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),zq&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; $q=function(W,J,K,I){Wh.call(this,W,J,K,I,"ytp-video-ad-top-bar-title","ad-title")}; xq=function(W){this.content=W.content;if(W.commandRuns){W=g.d(W.commandRuns);for(var J=W.next();!J.done;J=W.next())J=J.value,this.loggingDirectives=g.m(J,KfQ),J.onTap&&(this.interaction={onTap:J.onTap})}}; Oo=function(W,J,K,I){Fo.call(this,W,{V:"div",B:"ad-simple-attributed-string"},"ad-simple-attributed-string",J,K,I);this.hide()}; Te=function(W,J,K,I,q){Fo.call(this,W,{V:"span",B:q?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",J,K,I);this.K=q;this.adBadgeText=new Oo(this.api,this.layoutId,this.interactionLoggingClientData,this.yK);this.adBadgeText.MN(this.element);g.B(this,this.adBadgeText);q?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),zq&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; Hh=function(W,J,K,I){Fo.call(this,W,{V:"span",B:"ytp-ad-pod-index"},"ad-pod-index",J,K,I);this.api.J().K&&(this.element.classList.add("ytp-ad-pod-index--mweb"),zq&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; VS=function(W,J,K,I){Fo.call(this,W,{V:"div",B:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",J,K,I);this.hide()}; Eo=function(W,J){this.K=W;this.W=J}; e$=function(W,J,K){if(!W.getLength())return K!=null?K:Infinity;W=(J-W.K)/W.getLength();return g.Gm(W,0,1)}; RK=function(W,J,K,I){I=I===void 0?!1:I;g.to.call(this,{V:"div",B:"ytp-ad-persistent-progress-bar-container",L:[{V:"div",B:"ytp-ad-persistent-progress-bar"}]});this.api=W;this.K=J;this.G=K;I&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.B(this,this.K);this.progressBar=this.T8("ytp-ad-persistent-progress-bar");this.W=-1;this.D(W,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; bT=function(W,J,K,I,q,S){Fo.call(this,W,{V:"div",B:"ytp-ad-player-overlay",L:[{V:"div",B:"ytp-ad-player-overlay-flyout-cta"},{V:"div",B:"ytp-ad-player-overlay-instream-info"},{V:"div",B:"ytp-ad-player-overlay-skip-or-preview"},{V:"div",B:"ytp-ad-player-overlay-progress-bar"},{V:"div",B:"ytp-ad-player-overlay-instream-user-sentiment"},{V:"div",B:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",J,K,I);this.C=S;this.S=this.T8("ytp-ad-player-overlay-flyout-cta");this.S.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.W=this.T8("ytp-ad-player-overlay-instream-info");this.T=null;IvL(this)&&(W=Wo("div"),g.lK(W,"ytp-ad-player-overlay-top-bar-gradients"),J=this.W,J.parentNode&&J.parentNode.insertBefore(W,J),(J=this.api.getVideoData(2))&&J.isListed&&J.title&&(K=new $q(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),K.MN(W),K.init(lG("ad-title"),{text:J.title},this.macros),g.B(this,K)),this.T=W);this.G=null;this.Y3=this.T8("ytp-ad-player-overlay-skip-or-preview");this.SZ=this.T8("ytp-ad-player-overlay-progress-bar"); this.vS=this.T8("ytp-ad-player-overlay-instream-user-sentiment");this.sI=this.T8("ytp-ad-player-overlay-ad-disclosure-banner");this.K=q;g.B(this,this.K);this.hide()}; IvL=function(W){W=W.api.J();var J=g.Bh(W)&&W.K;return W.Y("embeds_embc3ds_atb")&&W.disableOrganicUi&&!0||J}; mn=function(W,J,K){var I={};J&&(I.v=J);K&&(I.list=K);W={name:W,locale:void 0,feature:void 0};for(var q in I)W[q]=I[q];I=g.Vw("/sharing_services",W);g.mf(I)}; g.rc=function(W){W&=16777215;var J=[(W&16711680)>>16,(W&65280)>>8,W&255];W=J[0];var K=J[1];J=J[2];W=Number(W);K=Number(K);J=Number(J);if(W!=(W&255)||K!=(K&255)||J!=(J&255))throw Error('"('+W+","+K+","+J+'") is not a valid RGB color');K=W<<16|K<<8|J;return W<16?"#"+(16777216|K).toString(16).slice(1):"#"+K.toString(16)}; oK=function(W){this.W=new xQ(W)}; qWQ=function(){var W=!1;try{W=!!window.sessionStorage.getItem("session_logininfo")}catch(J){W=!0}return(g.Yf("INNERTUBE_CLIENT_NAME")==="WEB"||g.Yf("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&W}; Li=function(){var W=W===void 0?!0:W;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");vO("LOGIN_INFO","");W&&window.sessionStorage.setItem("from_switch_account","1");W=!0;W=W===void 0?!1:W;var J,K=SWL;K||(K=document.querySelector("#persist_identity"));if(J=K){var I=J.src?(new URL(J.src)).origin:"*";if(W){var q;(q=J.contentWindow)==null||q.postMessage({action:"clear"},I)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var S=window.sessionStorage.getItem("session_logininfo");if(S){var p;(p=J.contentWindow)==null||p.postMessage({loginInfo:S},I)}}}}catch(n){}}; kq=function(W){W&&(W.startsWith("https://accounts.google.com/AddSession")?Li():W.startsWith("https://accounts.google.com/ServiceLogin")?Li():W.startsWith("https://myaccount.google.com")&&W.endsWith("/youtubeoptions")&&Li());if(g.Yf("LOGGED_IN",!0)&&qWQ()){var J=g.Yf("VALID_SESSION_TEMPDATA_DOMAINS",[]);var K=g.gM(window.location.href);K&&J.push(K);K=g.gM(W);g.ao(J,K)||!K&&tX(W,"/")?(J=$p(W),(J=XRX(J))?(J=GWA(J),J=(J=g.eC(J)||null)?Kz(J):{}):J=null):J=null;J==null&&(J={});K=J;var I=void 0;qWQ()?(I|| (I=g.Yf("LOGIN_INFO")),I?(K.session_logininfo=I,K=!0):K=!1):K=!1;K&&Gz(W,J)}}; g.p2Q=function(W){var J=J===void 0?{}:J;var K=K===void 0?"":K;var I=I===void 0?window:I;W=g.Vw(W,J);kq(W);K=g.vX(W+K);I=I.location;K=YI(K);K!==void 0&&(I.href=K)}; g.ze=function(W,J,K){J=J===void 0?{}:J;K=K===void 0?!1:K;var I=g.Yf("EVENT_ID");I&&(J.ei||(J.ei=I));J&&Gz(W,J);K||(kq(W),g.p2Q(W))}; g.vh=function(W,J,K,I,q){q=q===void 0?!1:q;K&&Gz(W,K);K=g.vX(W);var S=g.oG(K);W!=S&&W7(Error("Unsafe window.open URL: "+W));W=S;J=J||dn(W).toString(36);try{if(q)return q=W,q=p7c(q),kq(q),g.Kw(window,q,J,"attributionsrc")}catch(p){g.PO(p)}kq(W);return g.Kw(window,K,J,I)}; lvH=function(W){Yq=W}; ngL=function(W){so=W}; AcH=function(W){ch=W}; jOT=function(){DbQ=ch=so=Yq=null}; hBX=function(){var W=W===void 0?window.location.href:W;if(g.yb("kevlar_disable_theme_param"))return null;var J=GC(W);if(g.yb("enable_dark_theme_only_on_shorts")&&J!=null&&J.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var K=g.qU(W).theme;return fvT.get(K)||null}catch(I){}return null}; Ph=function(){this.W={};if(this.K=jZQ()){var W=g.eC("CONSISTENCY");W&&t2L(this,{encryptedTokenJarContents:W})}}; t2L=function(W,J){if(J.encryptedTokenJarContents&&(W.W[J.encryptedTokenJarContents]=J,typeof J.expirationSeconds==="string")){var K=Number(J.expirationSeconds);setTimeout(function(){delete W.W[J.encryptedTokenJarContents]},K*1E3); W.K&&g.ED("CONSISTENCY",J.encryptedTokenJarContents,K,void 0,!0)}}; We=function(){this.K=-1;var W=g.Yf("LOCATION_PLAYABILITY_TOKEN");g.Yf("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Xb(this))&&(W=this.localStorage.get("yt-location-playability-token"));W&&(this.locationPlayabilityToken=W,this.W=void 0)}; Xb=function(W){return W.localStorage===void 0?new Ix("yt-client-location"):W.localStorage}; g.iI=function(W,J,K){J=J===void 0?!1:J;K=K===void 0?!1:K;var I=g.Yf("INNERTUBE_CONTEXT");if(!I)return g.Va(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};I=g.JX(I);g.yb("web_no_tracking_params_in_shell_killswitch")||delete I.clickTracking;I.client||(I.client={});var q=I.client;q.clientName==="MWEB"&&q.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(q.clientFormFactor=g.Yf("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");q.screenWidthPoints=window.innerWidth;q.screenHeightPoints= window.innerHeight;q.screenPixelDensity=Math.round(window.devicePixelRatio||1);q.screenDensityFloat=window.devicePixelRatio||1;q.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var S=S===void 0?!1:S;g.mr();var p="USER_INTERFACE_THEME_LIGHT";g.ri(0,165)?p="USER_INTERFACE_THEME_DARK":g.ri(0,174)?p="USER_INTERFACE_THEME_LIGHT":!g.yb("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (p="USER_INTERFACE_THEME_DARK");S=S?p:hBX()||p;q.userInterfaceTheme=S;if(!J){if(S=W0y())q.connectionType=S;g.yb("web_log_effective_connection_type")&&(S=J5A())&&(I.client.effectiveConnectionType=S)}var n;if(g.yb("web_log_memory_total_kbytes")&&((n=g.vH.navigator)==null?0:n.deviceMemory)){var A;n=(A=g.vH.navigator)==null?void 0:A.deviceMemory;I.client.memoryTotalKbytes=""+n*1E6}g.yb("web_gcf_hashes_innertube")&&(S=nfD())&&(A=S.coldConfigData,n=S.coldHashData,S=S.hotHashData,I.client.configInfo=I.client.configInfo|| {},A&&(I.client.configInfo.coldConfigData=A),n&&(I.client.configInfo.coldHashData=n),S&&(I.client.configInfo.hotHashData=S));A=g.qU(g.vH.location.href);!g.yb("web_populate_internal_geo_killswitch")&&A.internalcountrycode&&(q.internalGeo=A.internalcountrycode);q.clientName==="MWEB"||q.clientName==="WEB"?(q.mainAppWebInfo={graftUrl:g.vH.location.href},g.yb("kevlar_woffle")&&ztD.instance&&(A=ztD.instance,q.mainAppWebInfo.pwaInstallabilityStatus=!A.W&&A.K?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),q.mainAppWebInfo.webDisplayMode=R$(),q.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):q.clientName==="TVHTML5"&&(!g.yb("web_lr_app_quality_killswitch")&&(A=g.Yf("LIVING_ROOM_APP_QUALITY"))&&(q.tvAppInfo=Object.assign(q.tvAppInfo||{},{appQuality:A})),A=g.Yf("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(q.tvAppInfo=Object.assign(q.tvAppInfo||{},{certificationScope:A}));if(!g.yb("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var D=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(H){}D=void 0}D&&(q.timeZone=D)}(D=Z_())?q.experimentsToken=D:delete q.experimentsToken;D=Qb();Ph.instance||(Ph.instance=new Ph);I.request=Object.assign({},I.request,{internalExperimentFlags:D,consistencyTokenJars:g.kr(Ph.instance.W)});!g.yb("web_prequest_context_killswitch")&&(D=g.Yf("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(I.request.externalPrequestContext=D);q=g.mr();D=g.ri(0,58);q=q.get("gsml","");I.user=Object.assign({}, I.user);D&&(I.user.enableSafetyMode=D);q&&(I.user.lockedSafetyMode=!0);g.yb("warm_op_csn_cleanup")?K&&(J=g.M_())&&(I.clientScreenNonce=J):!J&&(J=g.M_())&&(I.clientScreenNonce=J);W&&(I.clickTracking={clickTrackingParams:W});if(W=g.sH("yt.mdx.remote.remoteClient_"))I.remoteClient=W;We.getInstance().setLocationOnInnerTubeContext(I);try{var f=fz(),h=f.bid;delete f.bid;I.adSignalsInfo={params:[],bid:h};for(var t=g.d(Object.entries(f)),F=t.next();!F.done;F=t.next()){var a=g.d(F.value),y=a.next().value, U=a.next().value;f=y;h=U;W=void 0;(W=I.adSignalsInfo.params)==null||W.push({key:f,value:""+h})}var Q,C;if(((Q=I.client)==null?void 0:Q.clientName)==="TVHTML5"||((C=I.client)==null?void 0:C.clientName)==="TVHTML5_UNPLUGGED"){var T=g.Yf("INNERTUBE_CONTEXT");T.adSignalsInfo&&(I.adSignalsInfo.advertisingId=T.adSignalsInfo.advertisingId,I.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",I.adSignalsInfo.limitAdTracking=T.adSignalsInfo.limitAdTracking)}}catch(H){g.Va(H)}return I}; uly=function(W,J){if(!W)return!1;var K,I=(K=g.m(W,Ffy))==null?void 0:K.signal;if(I&&J.dD)return!!J.dD[I];var q;if((K=(q=g.m(W,avH))==null?void 0:q.request)&&J.ex)return!!J.ex[K];for(var S in W)if(J.nZ[S])return!0;return!1}; Noy=function(W){var J={"Content-Type":"application/json"};g.Yf("EOM_VISITOR_DATA")?J["X-Goog-EOM-Visitor-Id"]=g.Yf("EOM_VISITOR_DATA"):g.Yf("VISITOR_DATA")&&(J["X-Goog-Visitor-Id"]=g.Yf("VISITOR_DATA"));J["X-Youtube-Bootstrap-Logged-In"]=g.Yf("LOGGED_IN",!1);g.Yf("DEBUG_SETTINGS_METADATA")&&(J["X-Debug-Settings-Metadata"]=g.Yf("DEBUG_SETTINGS_METADATA"));W!=="cors"&&((W=g.Yf("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(J["X-Youtube-Client-Name"]=W),(W=g.Yf("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(J["X-Youtube-Client-Version"]= W),(W=g.Yf("CHROME_CONNECTED_HEADER"))&&(J["X-Youtube-Chrome-Connected"]=W),(W=g.Yf("DOMAIN_ADMIN_STATE"))&&(J["X-Youtube-Domain-Admin-State"]=W),g.Yf("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(W=g.Yf("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(J["X-YouTube-Lava-Device-Context"]=W));return J}; dbX=function(){this.W={}}; JI=function(){this.mappings=new dbX}; Kc=function(W){return function(){return new W}}; UbX=function(W){var J=J===void 0?"UNKNOWN_INTERFACE":J;if(W.length===1)return W[0];var K=ycc[J];if(K){K=new RegExp(K);for(var I=g.d(W),q=I.next();!q.done;q=I.next())if(q=q.value,K.exec(q))return q}var S=[];Object.entries(ycc).forEach(function(p){var n=g.d(p);p=n.next().value;n=n.next().value;J!==p&&S.push(n)}); K=new RegExp(S.join("|"));W.sort(function(p,n){return p.length-n.length}); I=g.d(W);for(q=I.next();!q.done;q=I.next())if(q=q.value,!K.exec(q))return q;return W[0]}; g.IC=function(W){return"/youtubei/v1/"+UbX(W)}; qC=function(){}; S0=function(){}; uI=function(){}; NC=function(W){return g.sH("ytcsi."+(W||"")+"data_")||ZCH(W)}; QOD=function(){var W=NC();W.info||(W.info={});return W.info}; dR=function(W){W=NC(W);W.metadata||(W.metadata={});return W.metadata}; y4=function(W){W=NC(W);W.tick||(W.tick={});return W.tick}; UU=function(W){W=NC(W);if(W.gel){var J=W.gel;J.gelInfos||(J.gelInfos={});J.gelTicks||(J.gelTicks={})}else W.gel={gelTicks:{},gelInfos:{}};return W.gel}; C2y=function(W){W=UU(W);W.gelInfos||(W.gelInfos={});return W.gelInfos}; Za=function(W){var J=NC(W).nonce;J||(J=g.QF(16),NC(W).nonce=J);return J}; ZCH=function(W){var J={tick:{},info:{}};g.Yc("ytcsi."+(W||"")+"data_",J);return J}; Q4=function(){var W=g.sH("ytcsi.debug");W||(W=[],g.Yc("ytcsi.debug",W),g.Yc("ytcsi.reference",{}));return W}; Cc=function(W){W=W||"";var J=w2c();if(J[W])return J[W];var K=Q4(),I={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};K.push(I);return J[W]=I}; M2X=function(W){W=W||"";var J=w2c();J[W]&&delete J[W];var K=Q4(),I={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};K.push(I);J[W]=I}; w2c=function(){var W=g.sH("ytcsi.reference");if(W)return W;Q4();return g.sH("ytcsi.reference")}; wR=function(W){return ggy[W]||"LATENCY_ACTION_UNKNOWN"}; MC=function(W,J){fC.call(this,1,arguments);this.tD=J}; gR=function(){this.W=0}; G8=function(){gR.instance||(gR.instance=new gR);return gR.instance}; xM=function(W,J){$M[J]=$M[J]||{count:0};var K=$M[J];K.count++;K.time=(0,g.L)();W.W||(W.W=g.XJ(0,function(){var I=(0,g.L)(),q;for(q in $M)$M[q]&&I-$M[q].time>6E4&&delete $M[q];W&&(W.W=0)},5E3)); return K.count>5?(K.count===6&&Math.random()*1E5<1&&(K=new g.vd("CSI data exceeded logging limit with key",J.split("_")),J.indexOf("plev")>=0||g.ET(K)),!0):!1}; G3y=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; $bH=function(){var W;if(g.yb("csi_use_performance_navigation_timing")||g.yb("csi_use_performance_navigation_timing_tvhtml5")){var J,K,I,q=OU==null?void 0:(W=OU.getEntriesByType)==null?void 0:(J=W.call(OU,"navigation"))==null?void 0:(K=J[0])==null?void 0:(I=K.toJSON)==null?void 0:I.call(K);q?(q.requestStart=T8(q.requestStart),q.responseEnd=T8(q.responseEnd),q.redirectStart=T8(q.redirectStart),q.redirectEnd=T8(q.redirectEnd),q.domainLookupEnd=T8(q.domainLookupEnd),q.connectStart=T8(q.connectStart), q.connectEnd=T8(q.connectEnd),q.responseStart=T8(q.responseStart),q.secureConnectionStart=T8(q.secureConnectionStart),q.domainLookupStart=T8(q.domainLookupStart),q.isPerformanceNavigationTiming=!0,W=q):W=OU.timing}else W=g.yb("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(OU.timing)):OU.timing;return W}; T8=function(W){return Math.round(He()+W)}; He=function(){return(g.yb("csi_use_time_origin")||g.yb("csi_use_time_origin_tvhtml5"))&&OU.timeOrigin?Math.floor(OU.timeOrigin):OU.timing.navigationStart}; EU=function(W,J){V4("_start",W,J)}; e0=function(W,J){if(!g.yb("web_csi_action_sampling_enabled")||!NC(J).actionDisabled){var K=Cc(J||"");fI(K.info,W);W.loadType&&(K=W.loadType,dR(J).loadType=K);fI(C2y(J),W);K=Za(J);J=NC(J).cttAuthInfo;G8().info(W,K,J)}}; xbQ=function(){var W,J,K,I;return((I=EZ().resolve(xL(l2))==null?void 0:(W=nC())==null?void 0:(J=W.loggingHotConfig)==null?void 0:(K=J.csiConfig)==null?void 0:K.debugTicks)!=null?I:[]).map(function(q){return Object.values(q)[0]})}; V4=function(W,J,K){if(!g.yb("web_csi_action_sampling_enabled")||!NC(K).actionDisabled){var I=Za(K),q;if(q=g.yb("web_csi_debug_sample_enabled")&&I){(EZ().resolve(xL(l2))==null?0:nC())&&!OCQ&&(OCQ=!0,V4("gcfl",(0,g.L)(),K));var S,p,n;q=(EZ().resolve(xL(l2))==null?void 0:(S=nC())==null?void 0:(p=S.loggingHotConfig)==null?void 0:(n=p.csiConfig)==null?void 0:n.debugSampleWeight)||0;if(S=q!==0)b:{S=xbQ();if(S.length>0)for(p=0;pK.duration?I:K},{duration:0}))&&J.startTime>0&&J.responseEnd>0&&(V4("wffs",T8(J.startTime)),V4("wffe",T8(J.responseEnd)))}; bCI=function(W,J,K){OU&&OU.measure&&(W.startsWith("measure_")||(W="measure_"+W),K?OU.measure(W,J,K):J?OU.measure(W,J):OU.measure(W))}; Bov=function(W){var J=RC("aft",W);if(J)return J;J=g.Yf((W||"")+"TIMING_AFT_KEYS",["ol"]);for(var K=J.length,I=0;I0&&e0(J);J={isNavigation:!0,actionType:wR(g.Yf("TIMING_ACTION"))};var K=g.Yf("PREVIOUS_ACTION");K&&(J.previousAction=wR(K));if(K=g.Yf("CLIENT_PROTOCOL"))J.httpProtocol=K;if(K=g.Yf("CLIENT_TRANSPORT"))J.transportProtocol=K;(K=g.M_())&&K!=="UNDEFINED_CSN"&&(J.clientScreenNonce=K);K=V2D();if(K===1||K===-1)J.isVisible= !0;K=dR().loadType==="cold";var I=QOD();K||(K=I.yt_lt==="cold");if(K){J.loadType="cold";K=QOD();I=$bH();var q=He(),S=g.Yf("CSI_START_TIMESTAMP_MILLIS",0);S>0&&!g.yb("embeds_web_enable_csi_start_override_killswitch")&&(q=S);q&&(V4("srt",I.responseStart),K.prerender!==1&&EU(q));K=ogc();K>0&&V4("fpt",K);K=$bH();K.isPerformanceNavigationTiming&&e0({performanceNavigationTiming:!0},void 0);V4("nreqs",K.requestStart,void 0);V4("nress",K.responseStart,void 0);V4("nrese",K.responseEnd,void 0);K.redirectEnd- K.redirectStart>0&&(V4("nrs",K.redirectStart,void 0),V4("nre",K.redirectEnd,void 0));K.domainLookupEnd-K.domainLookupStart>0&&(V4("ndnss",K.domainLookupStart,void 0),V4("ndnse",K.domainLookupEnd,void 0));K.connectEnd-K.connectStart>0&&(V4("ntcps",K.connectStart,void 0),V4("ntcpe",K.connectEnd,void 0));K.secureConnectionStart>=He()&&K.connectEnd-K.secureConnectionStart>0&&(V4("nstcps",K.secureConnectionStart,void 0),V4("ntcpe",K.connectEnd,void 0));OU&&"getEntriesByType"in OU&&RBA();K=[];if(document.querySelector&& OU&&OU.getEntriesByName)for(var p in mu)mu.hasOwnProperty(p)&&(I=mu[p],eBv(p,I)&&K.push(I));if(K.length>0)for(J.resourceInfo=[],p=g.d(K),K=p.next();!K.done;K=p.next())J.resourceInfo.push({resourceCache:K.value})}e0(J);J=UU();J.preLoggedGelInfos||(J.preLoggedGelInfos=[]);p=J.preLoggedGelInfos;J=C2y();K=void 0;for(I=0;I-1&&(delete UH["@type"],v=UH);y&&W.K.has(y)&&W.K.delete(y);((oy=J.config)==null?0:oy.Qog)&&oC(J.config.Qog);if(v||(Cx=W.G)==null||!Cx.jMW(J.input,J.EJ)){GA.VK(15);break}return g.O(GA,W.G.tu0(J.input,J.EJ),16);case 16:v=GA.W;case 15:return lsv(W,v,J),((nx=J.config)==null?0:nx.Fmh)&&oC(J.config.Fmh),I(),GA.return(v|| void 0)}})}; KTI=function(W,J){a:{W=W.Br;var K,I=(K=g.m(J,Ffy))==null?void 0:K.signal;if(I&&W.dD&&(K=W.dD[I])){var q=K();break a}var S;if((K=(S=g.m(J,avH))==null?void 0:S.request)&&W.ex&&(S=W.ex[K])){q=S();break a}for(q in J)if(W.nZ[q]&&(J=W.nZ[q])){q=J();break a}q=void 0}if(q!==void 0)return Promise.resolve(q)}; qZv=function(W,J,K){var I,q,S,p,n,A,D;return g.V(function(f){if(f.K==1){S=((I=J)==null?void 0:(q=I.gi)==null?void 0:q.identity)||j2;A=(p=J)==null?void 0:(n=p.gi)==null?void 0:n.sessionIndex;var h=g.Tv(W.W.SM(S,{sessionIndex:A}));return g.O(f,h,2)}D=f.W;return f.return(Promise.resolve(Object.assign({},Noy(K),D)))})}; Is0=function(W,J,K){var I,q=(J==null?void 0:(I=J.gi)==null?void 0:I.identity)||j2,S;J=J==null?void 0:(S=J.gi)==null?void 0:S.sessionIndex;W=W.W.SM(q,{sessionIndex:J});return Object.assign({},Noy(K),W)}; XD=function(){}; WN=function(){}; ic=function(W){this.S=W}; Ju=function(){}; K2=function(){}; Iq=function(){}; qM=function(){}; g.S9=function(W,J){var K=g.EH.apply(2,arguments);W=W===void 0?0:W;g.vd.call(this,J,K);this.errorType=W;Object.setPrototypeOf(this,this.constructor.prototype)}; p2=function(W,J,K,I){this.W=W;this.K=J;this.G=K;this.T=I}; AjQ=function(W,J,K){if(W.W){var I=GC(Ri(J,"key"))||"/UNKNOWN_PATH";W.W.start(I)}I=K;g.yb("wug_networking_gzip_request")&&(I=bXv(K));var q;return new ((q=W.T)!=null?q:window.Request)(J,I)}; g.n2=function(W,J){if(!lc){var K=EZ();OZ(K,{nj:DvT,R4:p2});var I={nZ:{feedbackEndpoint:Kc(Ju),modifyChannelNotificationPreferenceEndpoint:Kc(K2),playlistEditEndpoint:Kc(Iq),shareEntityEndpoint:Kc(ic),subscribeEndpoint:Kc(XD),unsubscribeEndpoint:Kc(WN),webPlayerShareEntityServiceEndpoint:Kc(qM)}},q=We.getInstance(),S={};q&&(S.client_location=q);W===void 0&&(W=vac());J===void 0&&(J=K.resolve(DvT));Jjc(I,J,W,S);OZ(K,{nj:jay,uT:sU.instance});lc=K.resolve(jay)}return lc}; fsH=function(W){var J=new hQ;if(W.interpreterJavascript){var K=gVL(W.interpreterJavascript);K=pw(K).toString();var I=new jf;iy(I,6,K);kP(J,jf,1,I,ZQ)}else W.interpreterUrl&&(K=CX(W.interpreterUrl),K=mG(K).toString(),I=new fu,iy(I,4,K),kP(J,fu,2,I,ZQ));W.interpreterHash&&JD(J,3,W.interpreterHash,ZQ);W.program&&JD(J,4,W.program,ZQ);W.globalName&&JD(J,5,W.globalName,ZQ);W.clientExperimentsStateBlob&&JD(J,7,W.clientExperimentsStateBlob,ZQ);return J}; Au=function(W){var J={};W=W.split("&");W=g.d(W);for(var K=W.next();!K.done;K=W.next())K=K.value.split("="),K.length===2&&(J[K[0]]=K[1]);return J}; TIL=function(){if(g.yb("bg_st_hr"))return"havuokmhhs-0";var W,J=((W=performance)==null?void 0:W.timeOrigin)||0;return"havuokmhhs-"+Math.floor(J)}; DB=function(W){this.W=W}; hMI=function(){return new Promise(function(W){var J=window.top;J.ntpevasrs!==void 0?W(new DB(J.ntpevasrs)):(J.ntpqfbel===void 0&&(J.ntpqfbel=[]),J.ntpqfbel.push(function(K){W(new DB(K))}))})}; FTv=function(){if(!g.yb("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.yb("disable_biscotti_fetch_entirely_for_all_web_clients")&&Kn()){var W=g.Yf("PLAYER_VARS",{});if(g.Xe(W,"privembed",!1)!="1"&&!dWQ(W)){var J=function(){j9=!0;"google_ad_status"in window?vO("DCLKSTAT",1):vO("DCLKSTAT",2)}; try{g.nI("//static.doubleclick.net/instream/ad_status.js",J)}catch(K){}tTH.push(g.r_.mf(function(){if(!(j9||"google_ad_status"in window)){try{if(J){var K=""+g.Kx(J),I=dU0[K];I&&g.pI(I)}}catch(q){}j9=!0;vO("DCLKSTAT",3)}},5E3))}}}; f2=function(){var W=Number(g.Yf("DCLKSTAT",0));return isNaN(W)?0:W}; aq=function(W,J,K){var I=this;this.network=W;this.options=J;this.K=K;this.W=null;if(J.RjZ){var q=new g.FB;this.W=q.promise;g.vH.ytAtRC&&Pd(function(){var S,p;return g.V(function(n){if(n.K==1){if(!g.vH.ytAtRC)return n.return();S=hu(null);return g.O(n,tu(I,S),2)}p=n.W;g.vH.ytAtRC&&g.vH.ytAtRC(JSON.stringify(p));g.d0(n)})},2); hMI().then(function(S){var p,n,A,D;return g.V(function(f){if(f.K==1)return S.bindInnertubeChallengeFetcher(function(h){return tu(I,hu(h))}),g.O(f,lR(),2); p=f.W;n=S.getLatestChallengeResponse();A=n.challenge;if(!A)throw Error("BGE_MACIL");D={challenge:A,GD:Au(A),n7:p,bgChallenge:new hQ};q.resolve(D);S.registerChallengeFetchedCallback(function(h){h=h.challenge;if(!h)throw Error("BGE_MACR");h={challenge:h,GD:Au(h),n7:p,bgChallenge:new hQ};I.W=Promise.resolve(h)}); g.d0(f)})})}else J.preload&&asH(this,new Promise(function(S){g.XJ(0,function(){S(FO(I))},0)}))}; hu=function(W){var J={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};W&&(J.interpreterHash=W);return J}; FO=function(W,J){J=J===void 0?0:J;var K,I,q,S,p,n,A,D,f,h,t,F;return g.V(function(a){switch(a.K){case 1:K=hu(No().W);if(g.yb("att_fet_ks"))return g.yQ(a,7),g.O(a,tu(W,K),9);g.yQ(a,4);return g.O(a,uhL(W,K),6);case 6:p=a.W;q=p.MAg;S=p.vCh;I=p;g.Cv(a,3);break;case 4:return g.g0(a),g.ET(Error("Failed to fetch attestation challenge after "+(J+" attempts; not retrying for 24h."))),uc(W,864E5),a.return({challenge:"",GD:{},n7:void 0,bgChallenge:void 0});case 9:I=a.W;if(!I)throw Error("Fetching Attestation challenge returned falsy"); if(!I.challenge)throw Error("Missing Attestation challenge");q=I.challenge;S=Au(q);if("c1a"in S&&(!I.bgChallenge||!I.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Cv(a,3);break;case 7:n=g.g0(a);g.ET(n);J++;if(J>=5)return g.ET(Error("Failed to fetch attestation challenge after "+(J+" attempts; not retrying for 24h."))),uc(W,864E5),a.return({challenge:"",GD:{},n7:void 0,bgChallenge:void 0});A=1E3*Math.pow(2,J-1)+Math.random()*1E3;return a.return(new Promise(function(y){g.XJ(0, function(){y(FO(W,J))},A)})); case 3:D=Number(S.t)||7200;uc(W,D*1E3);f=void 0;if(!("c1a"in S&&I.bgChallenge)){a.VK(10);break}h=fsH(I.bgChallenge);g.yQ(a,11);return g.O(a,TyH(No(),h),13);case 13:g.Cv(a,12);break;case 11:return t=g.g0(a),g.ET(t),a.return({challenge:q,GD:S,n7:f,bgChallenge:h});case 12:return g.yQ(a,14),f=new ab({challenge:h,v2:{JC:"aGIf"}}),g.O(a,f.Gk,16);case 16:g.Cv(a,10);break;case 14:F=g.g0(a),g.ET(F),f=void 0;case 10:return a.return({challenge:q,GD:S,n7:f,bgChallenge:h})}})}; tu=function(W,J){var K;return g.V(function(I){K=W.K;if(!K||K.SE())return I.return(tu(W.network,J));YM("att_pna",void 0,"attestation_challenge_fetch");return I.return(new Promise(function(q){K.Bn("publicytnetworkstatus-online",function(){tu(W.network,J).then(q)})}))})}; NbA=function(W){if(!W)throw Error("Fetching Attestation challenge returned falsy");if(!W.challenge)throw Error("Missing Attestation challenge");var J=W.challenge,K=Au(J);if("c1a"in K&&(!W.bgChallenge||!W.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},W,{MAg:J,vCh:K})}; uhL=function(W,J){var K,I,q,S,p;return g.V(function(n){switch(n.K){case 1:K=void 0,I=0,q={};case 2:if(!(I<5)){n.VK(4);break}if(!(I>0)){n.VK(5);break}q.b_=1E3*Math.pow(2,I-1)+Math.random()*1E3;return g.O(n,new Promise(function(A){return function(D){g.XJ(0,function(){D(void 0)},A.b_)}}(q)),5); case 5:return g.yQ(n,7),g.O(n,tu(W,J),9);case 9:return S=n.W,n.return(NbA(S));case 7:K=p=g.g0(n),p instanceof Error&&g.ET(p);case 8:I++;q={b_:void 0};n.VK(2);break;case 4:throw K;}})}; asH=function(W,J){W.W=J}; dvI=function(W){var J,K,I;return g.V(function(q){if(q.K==1)return g.O(q,Promise.race([W.W,null]),2);J=q.W;var S=FO(W);W.W=S;(K=J)==null||(I=K.n7)==null||I.dispose();g.d0(q)})}; uc=function(W,J){function K(){var q;return g.V(function(S){q=I-Date.now();return q<1E3?g.O(S,dvI(W),0):(Pd(K,0,Math.min(q,6E4)),S.VK(0))})} var I=Date.now()+J;K()}; yjQ=function(W,J){return new Promise(function(K){g.XJ(0,function(){K(J())},W)})}; g.Uvc=function(W,J){var K;return g.V(function(I){var q=g.sH("yt.aba.att");return(K=q?q:aq.instance!==void 0?aq.instance.G.bind(aq.instance):null)?I.return(K("ENGAGEMENT_TYPE_PLAYBACK",W,J)):I.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.ZIH=function(){var W;return(W=(W=g.sH("yt.aba.att2"))?W:aq.instance!==void 0?aq.instance.T.bind(aq.instance):null)?W():Promise.resolve(!1)}; C9D=function(W,J){var K=g.sH("ytDebugData.callbacks");K||(K={},g.Yc("ytDebugData.callbacks",K));if(g.yb("web_dd_iu")||QaD.includes(W))K[W]=J}; NM=function(){var W=wbX;var J=J===void 0?[]:J;var K=K===void 0?[]:K;J=UoI.apply(null,[Zuv.apply(null,g.w(J))].concat(g.w(K)));this.store=Cly(W,void 0,J)}; g.dH=function(W,J,K){for(var I=Object.assign({},W),q=g.d(Object.keys(J)),S=q.next();!S.done;S=q.next()){S=S.value;var p=W[S],n=J[S];if(n===void 0)delete I[S];else if(p===void 0)I[S]=n;else if(Array.isArray(n)&&Array.isArray(p))I[S]=K?[].concat(g.w(p),g.w(n)):n;else if(!Array.isArray(n)&&g.i0(n)&&!Array.isArray(p)&&g.i0(p))I[S]=g.dH(p,n,K);else if(typeof n===typeof p)I[S]=n;else return J=new g.vd("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:S,Wg3:p,updateValue:n}),g.Va(J), W}return I}; ye=function(W){var J=this;W=W===void 0?[]:W;this.EM=[];this.uv=this.GB=0;this.Tt=void 0;this.totalLength=0;W.forEach(function(K){J.append(K)})}; MTD=function(W,J){return W.EM.length===0?!1:(W=W.EM[W.EM.length-1])&&W.buffer===J.buffer&&W.byteOffset+W.length===J.byteOffset}; Ur=function(W,J){J=g.d(J.EM);for(var K=J.next();!K.done;K=J.next())W.append(K.value)}; ZB=function(W,J,K){return W.split(J).bJ.split(K).O5}; Qe=function(W){W.Tt=void 0;W.GB=0;W.uv=0}; C2=function(W,J,K){W.isFocused(J);return J-W.uv+K<=W.EM[W.GB].length}; gLH=function(W){if(!W.Tt){var J=W.EM[W.GB];W.Tt=new DataView(J.buffer,J.byteOffset,J.length)}return W.Tt}; wH=function(W,J,K){W=W.aH(J===void 0?0:J,K===void 0?-1:K);J=new Uint8Array(W.length);try{J.set(W)}catch(I){for(K=0;K>10;S=56320|S&1023}GO[q++]=S}}S=String.fromCharCode.apply(String,GO); q<1024&&(S=S.substring(0,q));K.push(S)}return K.join("")}; Or=function(W,J){var K;if((K=x4)==null?0:K.encodeInto)return J=x4.encodeInto(W,J),J.read>6|192:((q&64512)===55296&&I+1>18|240,J[K++]=q>>12&63|128):J[K++]=q>>12|224,J[K++]=q>>6&63|128),J[K++]=q&63|128)}return K}; TO=function(W){if(x4)return x4.encode(W);var J=new Uint8Array(Math.ceil(W.length*1.2)),K=Or(W,J);J.lengthK&&(J=J.subarray(0,K));return J}; HN=function(W){this.W=W;this.pos=0;this.K=-1}; Ve=function(W){var J=W.W.getUint8(W.pos);++W.pos;if(J<128)return J;for(var K=J&127,I=1;J>=128;)J=W.W.getUint8(W.pos),++W.pos,I*=128,K+=(J&127)*I;return K}; Er=function(W,J){var K=W.K;for(W.K=-1;W.W.Jm(W.pos,1);){K<0&&(K=Ve(W));var I=K>>3,q=K&7;if(I===J)return!0;if(I>J){W.K=K;break}K=-1;switch(q){case 0:Ve(W);break;case 1:W.pos+=8;break;case 2:I=Ve(W);W.pos+=I;break;case 5:W.pos+=4}}return!1}; e9=function(W,J){if(Er(W,J))return Ve(W)}; Rq=function(W,J){if(Er(W,J))return!!Ve(W)}; bc=function(W,J){if(Er(W,J)){J=Ve(W);var K=W.W.aH(W.pos,J);W.pos+=J;return K}}; BN=function(W,J){if(W=bc(W,J))return g.$4(W)}; m5=function(W,J,K){if(W=bc(W,J))return K(new HN(new ye([W])))}; rH=function(W,J){for(var K=[];Er(W,J);)K.push(Ve(W));return K.length?K:void 0}; oq=function(W,J,K){for(var I=[],q;q=bc(W,J);)I.push(K(new HN(new ye([q]))));return I.length?I:void 0}; L2=function(W,J){W=W instanceof Uint8Array?new ye([W]):W;return J(new HN(W))}; xvQ=function(W,J,K){if(J&&K&&K.buffer===J.exports.memory.buffer){var I=J.realloc(K.byteOffset,W);if(I)return new Uint8Array(J.exports.memory.buffer,I,W)}W=J?new Uint8Array(J.exports.memory.buffer,J.malloc(W),W):new Uint8Array(W);K&&W.set(K);return W}; OIQ=function(W,J){this.Es=J;this.pos=0;this.K=[];this.W=xvQ(W===void 0?4096:W,J);this.view=new DataView(this.W.buffer,this.W.byteOffset,this.W.byteLength)}; k4=function(W,J){J=W.pos+J;if(!(W.W.length>=J)){for(var K=W.W.length*2;K268435455){k4(W,4);for(var K=J&1073741823,I=0;I<4;I++)W.view.setUint8(W.pos,K&127|128),K>>=7,W.pos+=1;J=Math.floor(J/268435456)}for(k4(W,4);J>127;)W.view.setUint8(W.pos,J&127|128),J>>=7,W.pos+=1;W.view.setUint8(W.pos,J);W.pos+=1}; vN=function(W,J,K){K!==void 0&&(zO(W,J*8),zO(W,K))}; Y4=function(W,J,K){K!==void 0&&vN(W,J,K?1:0)}; sr=function(W,J,K){K!==void 0&&(zO(W,J*8+2),J=K.length,zO(W,J),k4(W,J),W.W.set(K,W.pos),W.pos+=J)}; cN=function(W,J,K){K!==void 0&&(TbI(W,J,Math.ceil(Math.log2(K.length*4+2)/7)),k4(W,K.length*1.2),J=Or(K,W.W.subarray(W.pos)),W.pos+J>W.W.length&&(k4(W,J),J=Or(K,W.W.subarray(W.pos))),W.pos+=J,HIX(W))}; TbI=function(W,J,K){K=K===void 0?2:K;zO(W,J*8+2);W.K.push(W.pos);W.K.push(K);W.pos+=K}; HIX=function(W){for(var J=W.K.pop(),K=W.K.pop(),I=W.pos-K-J;J--;){var q=J?128:0;W.view.setUint8(K++,I&127|q);I>>=7}}; PN=function(W,J,K,I,q){K&&(TbI(W,J,q===void 0?3:q),I(W,K),HIX(W))}; g.XO=function(W,J,K){K=new OIQ(4096,K);J(K,W);return new Uint8Array(K.W.buffer,K.W.byteOffset,K.pos)}; g.W_=function(W){var J=new HN(new ye([SB(decodeURIComponent(W))]));W=BN(J,2);J=e9(J,4);var K=VTy[J];if(typeof K==="undefined")throw W=new g.vd("Failed to recognize field number",{name:"EntityKeyHelperError",WBK:J}),g.Va(W),W;return{gj:J,entityType:K,entityId:W}}; g.iZ=function(W,J){var K=K===void 0?0:K;var I=new OIQ;sr(I,2,TO(W));W=ELL[J];if(typeof W==="undefined")throw K=new g.vd("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:J}),g.Va(K),K;vN(I,4,W);vN(I,5,1);J=new Uint8Array(I.W.buffer,I.W.byteOffset,I.pos);return encodeURIComponent(g.IB(J,K))}; JH=function(W,J,K,I){if(I===void 0)return I=Object.assign({},W[J]||{}),K=(delete I[K],I),I={},Object.assign({},W,(I[J]=K,I));var q={},S={};return Object.assign({},W,(S[J]=Object.assign({},W[J],(q[K]=I,q)),S))}; eM0=function(W,J,K,I,q){var S=W[J];if(S==null||!S[K])return W;I=g.dH(S[K],I,q==="REPEATED_FIELDS_MERGE_OPTION_APPEND");q={};S={};return Object.assign({},W,(S[J]=Object.assign({},W[J],(q[K]=I,q)),S))}; RMA=function(W,J){W=W===void 0?{}:W;switch(J.type){case "ENTITY_LOADED":return J.payload.reduce(function(I,q){var S,p=(S=q.options)==null?void 0:S.persistenceOption;if(p&&p!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&p!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return I;if(!q.entityKey)return g.Va(Error("Missing entity key")),I;if(q.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!q.payload)return q=new g.vd("REPLACE entity mutation is missing a payload",{entityKey:q.entityKey}),g.Va(q),I;var n=g.Lx(q.payload); return JH(I,n,q.entityKey,q.payload[n])}if(q.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{q=q.entityKey;try{var A=g.W_(q).entityType;n=JH(I,A,q);break a}catch(h){if(h instanceof Error){q=new g.vd("Failed to deserialize entity key",{entityKey:q,originalMessage:h.message});g.Va(q);n=I;break a}throw h;}n=void 0}return n}if(q.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!q.payload)return q=new g.vd("UPDATE entity mutation is missing a payload",{entityKey:q.entityKey}),g.Va(q),I;n=g.Lx(q.payload);var D,f;return eM0(I, n,q.entityKey,q.payload[n],(D=q.fieldMask)==null?void 0:(f=D.mergeOptions)==null?void 0:f.repeatedFieldsMergeOption)}return I},W); case "REPLACE_ENTITY":var K=J.payload;return JH(W,K.entityType,K.key,K.l0);case "REPLACE_ENTITIES":return Object.keys(J.payload).reduce(function(I,q){var S=J.payload[q];return Object.keys(S).reduce(function(p,n){return JH(p,q,n,S[n])},I)},W); case "UPDATE_ENTITY":return K=J.payload,eM0(W,K.entityType,K.key,K.l0,K.FNO);default:return W}}; Kg=function(W,J,K){return W[J]?W[J][K]||null:null}; If=function(W){return window.Int32Array?new Int32Array(W):Array(W)}; d7=function(W){g.R.call(this);this.counter=[0,0,0,0];this.K=new Uint8Array(16);this.W=16;if(!bIQ){var J,K=new Uint8Array(256),I=new Uint8Array(256);var q=1;for(J=0;J<256;J++)K[q]=J,I[J]=q,q^=q<<1^(q>>7&&283);qN=new Uint8Array(256);F7=If(256);af=If(256);uZ=If(256);NN=If(256);for(var S=0;S<256;S++){q=S?I[255^K[S]]:0;q^=q<<1^q<<2^q<<3^q<<4;q=q&255^q>>>8^99;qN[S]=q;J=q<<1^(q>>7&&283);var p=J^q;F7[S]=J<<24|q<<16|q<<8|p;af[S]=p<<24|F7[S]>>>8;uZ[S]=q<<24|af[S]>>>8;NN[S]=q<<24|uZ[S]>>>8}bIQ=!0}q=If(44);for(K= 0;K<4;K++)q[K]=W[4*K]<<24|W[4*K+1]<<16|W[4*K+2]<<8|W[4*K+3];for(I=1;K<44;K++)W=q[K-1],K%4||(W=(qN[W>>16&255]^I)<<24|qN[W>>8&255]<<16|qN[W&255]<<8|qN[W>>>24],I=I<<1^(I>>7&&283)),q[K]=q[K-4]^W;this.key=q}; yK=function(W,J){for(var K=0;K<4;K++)W.counter[K]=J[K*4]<<24|J[K*4+1]<<16|J[K*4+2]<<8|J[K*4+3];W.W=16}; BbL=function(W){for(var J=W.key,K=W.counter[0]^J[0],I=W.counter[1]^J[1],q=W.counter[2]^J[2],S=W.counter[3]^J[3],p=3;p>=0&&!(W.counter[p]=-~W.counter[p]);p--);for(var n,A,D=4;D<40;)p=F7[K>>>24]^af[I>>16&255]^uZ[q>>8&255]^NN[S&255]^J[D++],n=F7[I>>>24]^af[q>>16&255]^uZ[S>>8&255]^NN[K&255]^J[D++],A=F7[q>>>24]^af[S>>16&255]^uZ[K>>8&255]^NN[I&255]^J[D++],S=F7[S>>>24]^af[K>>16&255]^uZ[I>>8&255]^NN[q&255]^J[D++],K=p,I=n,q=A;W=W.K;p=J[40];W[0]=qN[K>>>24]^p>>>24;W[1]=qN[I>>16&255]^p>>16&255;W[2]=qN[q>>8&255]^ p>>8&255;W[3]=qN[S&255]^p&255;p=J[41];W[4]=qN[I>>>24]^p>>>24;W[5]=qN[q>>16&255]^p>>16&255;W[6]=qN[S>>8&255]^p>>8&255;W[7]=qN[K&255]^p&255;p=J[42];W[8]=qN[q>>>24]^p>>>24;W[9]=qN[S>>16&255]^p>>16&255;W[10]=qN[K>>8&255]^p>>8&255;W[11]=qN[I&255]^p&255;p=J[43];W[12]=qN[S>>>24]^p>>>24;W[13]=qN[K>>16&255]^p>>16&255;W[14]=qN[I>>8&255]^p>>8&255;W[15]=qN[q&255]^p&255}; QK=function(){if(!Uu&&!g.vM){if(ZM)return ZM;var W;ZM=(W=window.crypto)==null?void 0:W.subtle;var J,K,I;if(((J=ZM)==null?0:J.importKey)&&((K=ZM)==null?0:K.sign)&&((I=ZM)==null?0:I.encrypt))return ZM;ZM=void 0}}; g.Cg=function(W){this.K=W}; mvQ=function(W,J,K,I){var q,S;return g.V(function(p){switch(p.K){case 1:if(W.G){p.VK(2);break}return g.O(p,I.importKey("raw",W.K,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:W.G=p.W;case 2:return q={name:"AES-CTR",counter:K,length:128},g.O(p,I.encrypt(q,W.G,J),4);case 4:return S=p.W,p.return(new Uint8Array(S))}})}; rjQ=function(W,J,K){W.W||(W.W=new d7(W.K));yK(W.W,K);return W.W.encrypt(J)}; g.w7=function(W){this.K=W}; MN=function(W){this.j=new Uint8Array(64);this.G=new Uint8Array(64);this.T=0;this.S=new Uint8Array(64);this.K=0;this.j.set(W);this.G.set(W);for(W=0;W<64;W++)this.j[W]^=92,this.G[W]^=54;this.reset()}; oLy=function(W,J,K){for(var I=W.Z,q=W.W[0],S=W.W[1],p=W.W[2],n=W.W[3],A=W.W[4],D=W.W[5],f=W.W[6],h=W.W[7],t,F,a,y=0;y<64;)y<16?(I[y]=a=J[K]<<24|J[K+1]<<16|J[K+2]<<8|J[K+3],K+=4):(t=I[y-2],F=I[y-15],a=I[y-7]+I[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),I[y]=a),t=h+g7[y]+a+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&D^~A&f),F=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&S^q&p^S&p),h=t+F,n+=t,y++,y<16?(I[y]=a=J[K]<<24|J[K+1]<<16|J[K+2]<<8|J[K+3],K+=4):(t= I[y-2],F=I[y-15],a=I[y-7]+I[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),I[y]=a),t=f+g7[y]+a+((n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))+(n&A^~n&D),F=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&q^h&S^q&S),f=t+F,p+=t,y++,y<16?(I[y]=a=J[K]<<24|J[K+1]<<16|J[K+2]<<8|J[K+3],K+=4):(t=I[y-2],F=I[y-15],a=I[y-7]+I[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),I[y]=a),t=D+g7[y]+a+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&n^ ~p&A),F=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&h^f&q^h&q),D=t+F,S+=t,y++,y<16?(I[y]=a=J[K]<<24|J[K+1]<<16|J[K+2]<<8|J[K+3],K+=4):(t=I[y-2],F=I[y-15],a=I[y-7]+I[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),I[y]=a),t=A+g7[y]+a+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&p^~S&n),F=((D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10))+(D&f^D&h^f&h),a=h,h=n,n=a,a=f,f=p,p=a,a=D,D=S,S=a,A=q+t,q=t+F,y++;W.W[0]=q+W.W[0]|0;W.W[1]=S+W.W[1]|0;W.W[2]=p+W.W[2]|0;W.W[3]= n+W.W[3]|0;W.W[4]=A+W.W[4]|0;W.W[5]=D+W.W[5]|0;W.W[6]=f+W.W[6]|0;W.W[7]=h+W.W[7]|0}; k$A=function(W){var J=new Uint8Array(32),K=64-W.K;W.K>55&&(K+=64);var I=new Uint8Array(K);I[0]=128;for(var q=W.T*8,S=1;S<9;S++){var p=q%256;I[K-S]=p;q=(q-p)/256}W.update(I);for(K=0;K<8;K++)J[K*4]=W.W[K]>>>24,J[K*4+1]=W.W[K]>>>16&255,J[K*4+2]=W.W[K]>>>8&255,J[K*4+3]=W.W[K]&255;LTA(W);return J}; LTA=function(W){W.W=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];W.Z=[];W.Z.length=64;W.T=0;W.K=0}; zMc=function(W){this.W=W}; vLX=function(W,J,K){W=new MN(W.W);W.update(J);W.update(K);J=k$A(W);W.update(W.j);W.update(J);J=k$A(W);W.reset();return J}; YZy=function(W){this.K=W}; saT=function(W,J,K,I){var q,S,p;return g.V(function(n){switch(n.K){case 1:if(W.W){n.VK(2);break}return g.O(n,I.importKey("raw",W.K,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:W.W=n.W;case 2:return q=new Uint8Array(J.length+K.length),q.set(J),q.set(K,J.length),S={name:"HMAC",hash:"SHA-256"},g.O(n,I.sign(S,W.W,q),4);case 4:return p=n.W,n.return(new Uint8Array(p))}})}; cjD=function(W,J,K){W.G||(W.G=new zMc(W.K));return vLX(W.G,J,K)}; P9Q=function(W,J,K){var I,q;return g.V(function(S){if(S.K==1){I=QK();if(!I)return S.return(cjD(W,J,K));g.yQ(S,3);return g.O(S,saT(W,J,K,I),5)}if(S.K!=3)return S.return(S.W);q=g.g0(S);g.ET(q);Uu=!0;return S.return(cjD(W,J,K))})}; WHX=function(W){for(var J="",K=0;K=1?W[W.length-1]:null;for(var I=g.d(W),q=I.next();!q.done;q=I.next())if(q=q.value,q.width&&q.height&&(K&&q.width>=J||!K&&q.height>=J))return q;for(J=W.length-1;J>=0;J--)if(K&&W[J].width||!K&&W[J].height)return W[J];return W[0]}; $s=function(){this.state=1;this.n7=null;this.I7=void 0}; jhQ=function(W,J,K,I,q,S){var p=p===void 0?"trayride":p;K?(W.Ap(2),g.nI(K,function(){if(window[p])D_H(W,I,p,q);else{W.Ap(3);var n=Nqy(K),A=document.getElementById(n);A&&(a_Q(n),A.parentNode.removeChild(A));g.ET(new g.vd("BL:ULB",""+K))}},S)):J?(S=g.i5("SCRIPT"),J instanceof q3?(S.textContent=pw(J),lW(S)):S.textContent=J,S.nonce=IX(document),document.head.appendChild(S),document.head.removeChild(S),window[p]?D_H(W,I,p,q):(W.Ap(4),g.ET(new g.vd("BL:ULBJ")))):g.ET(new g.vd("BL:ULV"))}; D_H=function(W,J,K,I){W.Ap(5);var q=!!W.I7&&fuc.includes(g.gM(W.I7)||"");try{var S=new ab({program:J,globalName:K,v2:{disable:!g.yb("att_web_record_metrics")||!g.yb("att_skip_metrics_for_cookieless_domains_ks")&&q,JC:"aGIf"}});S.Gk.then(function(){W.Ap(6);I&&I(J)}); W.KT(S)}catch(p){W.Ap(7),p instanceof Error&&g.ET(p)}}; xs=function(){var W=g.sH("yt.abuse.playerAttLoader");return W&&["bgvma","bgvmb","bgvmc"].every(function(J){return J in W})?W:null}; Ou=function(){$s.apply(this,arguments)}; T6=function(){}; hoA=function(W,J,K){for(var I=!1,q=g.d(W.WZ.entries()),S=q.next();!S.done;S=q.next())S=g.d(S.value).next().value,S.slotType==="SLOT_TYPE_PLAYER_BYTES"&&S.ou==="core"&&(I=!0);if(I){a:if(!K){W=g.d(W.WZ.entries());for(K=W.next();!K.done;K=W.next())if(I=g.d(K.value),K=I.next().value,I=I.next().value,K.slotType==="SLOT_TYPE_IN_PLAYER"&&K.ou==="core"){K=I.layoutId;break a}K=void 0}K?J.oS(K):tq("No triggering layout ID available when attempting to mute.")}}; H_=function(W,J){this.B4=W;this.fp=J}; VK=function(){}; Eu=function(){}; FHH=function(W){g.R.call(this);var J=this;this.HN=W;this.W=new Map;ec(this,"commandExecutorCommand",function(K,I,q){tgL(J,K.commands,I,q)}); ec(this,"clickTrackingParams",function(){})}; auQ=function(W,J){ec(W,J.JQ(),function(K,I,q){J.zH(K,I,q)})}; ec=function(W,J,K){W.Iu();W.W.get(J)&&g.Va(Error("Extension name "+J+" already registered"));W.W.set(J,K)}; tgL=function(W,J,K,I){J=J===void 0?[]:J;W.Iu();var q=[],S=[];J=g.d(J);for(var p=J.next();!p.done;p=J.next())p=p.value,g.m(p,unQ)||g.m(p,NTv)?q.push(p):S.push(p);q=g.d(q);for(J=q.next();!J.done;J=q.next())Rf(W,J.value,K,I);S=g.d(S);for(q=S.next();!q.done;q=S.next())Rf(W,q.value,K,I)}; Rf=function(W,J,K,I){W.Iu();J.loggingUrls&&d_Q(W,"loggingUrls",J.loggingUrls,K,I);J=g.d(Object.entries(J));for(var q=J.next();!q.done;q=J.next()){var S=g.d(q.value);q=S.next().value;S=S.next().value;q==="openPopupAction"?W.HN.get().kW("innertubeCommand",{openPopupAction:S}):q==="confirmDialogEndpoint"?W.HN.get().kW("innertubeCommand",{confirmDialogEndpoint:S}):ymI.hasOwnProperty(q)||d_Q(W,q,S,K,I)}}; d_Q=function(W,J,K,I,q){if((W=W.W.get(J))&&typeof W==="function")try{W(K,I,q)}catch(S){g.Va(S)}else J=new g.vd("Unhandled field",J),g.ET(J)}; bZ=function(W,J,K){this.Pw=W;this.W=J;this.iO=K;OZ(EZ(),{nj:nbD,R4:luy})}; B_=function(W){this.value=W}; m2=function(W){this.value=W}; r7=function(W){this.value=W}; of=function(W){this.value=W}; Lg=function(W){this.value=W}; ks=function(W){this.value=W}; z6=function(W){this.value=W}; v_=function(){B_.apply(this,arguments)}; Ys=function(W){this.value=W}; c_=function(W){this.value=W}; P_=function(W){this.value=W}; X7=function(W){this.value=W}; Wn=function(W){this.value=W}; iC=function(W){this.value=W}; JU=function(W){this.value=W}; KY=function(W){this.value=W}; IJ=function(W){this.value=W}; qm=function(W){this.value=W}; S8=function(){B_.apply(this,arguments)}; pY=function(W){this.value=W}; lC=function(W){this.value=W}; nY=function(W){this.value=W}; AU=function(W){this.value=W}; DS=function(W){this.value=W}; j8=function(W){this.value=W}; fY=function(W){this.value=W}; hU=function(W){this.value=W}; tU=function(W){this.value=W}; Fs=function(W){this.value=W}; aJ=function(W){this.value=W}; uC=function(W){this.value=W}; Nm=function(W){this.value=W}; dj=function(W){this.value=W}; yv=function(W){this.value=W}; Up=function(W){this.value=W}; ZS=function(W){this.value=W}; Qv=function(W){this.value=W}; CY=function(W){this.value=W}; wj=function(W){this.value=W}; Mm=function(W){this.value=W}; gj=function(W){this.value=W}; Gn=function(W){this.value=W}; $n=function(W){this.value=W}; xn=function(W){this.value=W}; Op=function(W){this.value=W}; Tn=function(W){this.value=W}; Hn=function(W){this.value=W}; Vv=function(W){this.value=W}; Ep=function(W){this.value=W}; e8=function(W){this.value=W}; RJ=function(W){this.value=W}; bC=function(W){this.value=W}; Bn=function(W){this.value=W}; m$=function(W){this.value=W}; rj=function(W){this.value=W}; oJ=function(W){this.value=W}; LY=function(W){this.value=W}; kn=function(){B_.apply(this,arguments)}; zn=function(W){this.value=W}; vn=function(){B_.apply(this,arguments)}; Yn=function(){B_.apply(this,arguments)}; sp=function(){B_.apply(this,arguments)}; cn=function(){B_.apply(this,arguments)}; Pn=function(){B_.apply(this,arguments)}; Xs=function(W){this.value=W}; Wp=function(W){this.value=W}; im=function(W){this.value=W}; JA=function(W){this.value=W}; KQ=function(W){this.value=W}; qT=function(W,J,K){if(K&&!K.includes(W.layoutType))return!1;J=g.d(J);for(K=J.next();!K.done;K=J.next())if(!IA(W.clientMetadata,K.value))return!1;return!0}; SX=function(){return""}; U_D=function(W,J){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 J(W),8}}; pQ=function(W,J,K,I){I=I===void 0?!1:I;Dp.call(this,W);this.ES=K;this.le=I;this.args=[];J&&this.args.push(J)}; Y=function(W,J,K,I){I=I===void 0?!1:I;Dp.call(this,W);this.ES=K;this.le=I;this.args=[];J&&this.args.push(J)}; lm=function(W){var J=new Map;W.forEach(function(K){J.set(K.W(),K)}); this.W=J}; IA=function(W,J){return W.W.has(J)}; nQ=function(W,J){W=W.W.get(J);if(W!==void 0)return W.get()}; AA=function(W){return Array.from(W.W.keys())}; Dh=function(W,J,K){if(K&&K!==W.slotType)return!1;J=g.d(J);for(K=J.next();!K.done;K=J.next())if(!IA(W.clientMetadata,K.value))return!1;return!0}; QhH=function(W){var J;return((J=ZJI.get(W))==null?void 0:J.wD)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; fQ=function(W,J){var K={type:J.slotType,controlFlowManagerLayer:Csy.get(J.ou)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};J.slotEntryTrigger&&(K.entryTriggerType=J.slotEntryTrigger.triggerType);J.slotPhysicalPosition!==1&&(K.slotPhysicalPosition=J.slotPhysicalPosition);if(W){K.debugData={slotId:J.slotId};if(W=J.slotEntryTrigger)K.debugData.slotEntryTriggerData=jX(W);W=J.slotFulfillmentTriggers;K.debugData.fulfillmentTriggerData=[];W=g.d(W);for(var I=W.next();!I.done;I=W.next())K.debugData.fulfillmentTriggerData.push(jX(I.value)); J=J.slotExpirationTriggers;K.debugData.expirationTriggerData=[];J=g.d(J);for(W=J.next();!W.done;W=J.next())K.debugData.expirationTriggerData.push(jX(W.value))}return K}; wm0=function(W,J){var K={type:J.layoutType,controlFlowManagerLayer:Csy.get(J.ou)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};W&&(K.debugData={layoutId:J.layoutId});return K}; jX=function(W,J){var K={type:W.triggerType};J!=null&&(K.category=J);W.triggeringSlotId!=null&&(K.triggerSourceData||(K.triggerSourceData={}),K.triggerSourceData.associatedSlotId=W.triggeringSlotId);W.triggeringLayoutId!=null&&(K.triggerSourceData||(K.triggerSourceData={}),K.triggerSourceData.associatedLayoutId=W.triggeringLayoutId);return K}; MgQ=function(W,J,K,I){J={opportunityType:J};W&&(I||K)&&(I=g.zC(I||[],function(q){return fQ(W,q)}),J.debugData=Object.assign({},K&&K.length>0?{associatedSlotId:K}:{},I.length>0?{slots:I}:{})); return J}; tA=function(W,J){return function(K){return gbQ(hA(W),J.slotId,J.slotType,J.slotPhysicalPosition,J.ou,J.slotEntryTrigger,J.slotFulfillmentTriggers,J.slotExpirationTriggers,K.layoutId,K.layoutType,K.ou)}}; gbQ=function(W,J,K,I,q,S,p,n,A,D,f){return{adClientDataEntry:{slotData:fQ(W,{slotId:J,slotType:K,slotPhysicalPosition:I,ou:q,slotEntryTrigger:S,slotFulfillmentTriggers:p,slotExpirationTriggers:n,clientMetadata:new lm([])}),layoutData:wm0(W,{layoutId:A,layoutType:D,ou:f,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ET:new Map,clientMetadata:new lm([]),OT:{}})}}}; aA=function(W){this.gw=W;W=Math.random();var J=this.gw.get();J=g.FV(J.X.J().experiments,"html5_debug_data_log_probability");J=Number.isFinite(J)&&J>=0&&J<=1?J:0;this.W=W1){g.ET(new g.vd("Exit already started",{current:W.currentState}));var K=!1}else K=!0;if(!K)return!1;W.currentState=2;W.W=J;return!0}; ZE=function(W){if(W.currentState!==2)return!1;W.currentState=3;return!0}; qoc=function(W,J){var K=new Map;W=g.d(W);for(var I=W.next();!I.done;I=W.next()){I=I.value;if(I.layoutType==="LAYOUT_TYPE_MEDIA")var q="v";else I.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(q=nQ(I.clientMetadata,"metadata_type_linked_in_player_layout_type"),q=q==="LAYOUT_TYPE_ENDCAP"||q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":q==="LAYOUT_TYPE_SURVEY"?"s":q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):q="u";K.set(I.layoutId,q);if(q==="u"){var S={};q=J;I=(S.c=I.layoutId,S);q.X.WS("uct",I)}}W= J.Tr();QO={contentCpn:W,wy:K};I={};K=(I.ct=K.size,I.c=W,I);J.X.WS("acc",K)}; SoX=function(){QO={contentCpn:"",wy:new Map}}; CB=function(W){var J;return(J=QO.wy.get(W))!=null?J:"u"}; wG=function(W,J,K){W.X.WS(J,K);phv(W)}; l1c=function(W){var J=W.layoutId,K=W.Gq;if(W.qX){var I={};wG(W.Pw,"slso",(I.ec=J,I.is=K,I.ctp=CB(J),I))}}; Md=function(W){var J=W.layoutId,K=W.Gq;if(W.qX){var I={};wG(W.Pw,"slse",(I.ec=J,I.is=K,I.ctp=CB(J),I))}}; nqQ=function(W){var J=W.layoutId,K=W.Gq,I=W.Pw;W.qX&&(W={},wG(I,"sleo",(W.xc=J,W.is=K,W.ctp=CB(J),W)),phv(I))}; Aqy=function(W){var J=W.cpn,K=W.Pw;W=W.Gq;var I=K.Tr(),q={};wG(K,"ce",(q.ec=J,q.ia=J!==I,q.r=QO.wy.has(J),q.is=W,q.ctp=CB(J),q))}; phv=function(W){if(W.Tr()!==QO.contentCpn){var J={};J=(J.c=QO.contentCpn,J);W.X.WS("ccm",J)}}; DfX=function(W){var J=W.cpn,K=W.Pw;W=W.Gq;var I=K.Tr(),q={};wG(K,"cx",(q.xc=J,q.ia=J!==I,q.r=QO.wy.has(J),q.is=W,q.ctp=CB(J),q))}; jKy=function(W){this.params=W;this.W=new Set}; f1X=function(W,J,K){if(!W.W.has(J)){W.W.add(J);var I={};W.params.pw.ub(J,Object.assign({},K,(I.p_ac=W.params.adCpn,I.p_isv=W.params.v3s&&W.params.kC,I)))}}; Gc=function(W,J,K){if(gG(W.params.pw.gw.get(),!0)){var I=K.flush,q={};f1X(W,J,(q.cts=K.currentTimeSec,q.f=I,q))}}; hbQ=function(W,J){this.Pw=W;this.gw=J}; $m=function(W){var J=[];if(W){W=g.d(Object.entries(W));for(var K=W.next();!K.done;K=W.next()){var I=g.d(K.value);K=I.next().value;I=I.next().value;I!==void 0&&(I=typeof I==="boolean"?""+ +I:(""+I).replace(/[:,=]/g,"_"),J.push(K+"."+I))}}return J.join(";")}; xm=function(W,J,K){J=J===void 0?{}:J;this.errorCode=W;this.details=J;this.severity=K===void 0?0:K}; OS=function(W){return W===1||W===2}; Tc=function(W,J){J=J===void 0?0:J;if(W instanceof xm)return W;W=W&&W instanceof Error?W:Error(""+W);OS(J)?g.Va(W):g.ET(W);return new xm(J===1?"player.fatalexception":"player.exception",{name:""+W.name,message:""+W.message},J)}; t$A=function(W,J){function K(){var I=g.EH.apply(0,arguments);W.removeEventListener("playing",K);J.apply(null,g.w(I))} W.addEventListener("playing",K)}; HW=function(){var W=g.sH("yt.player.utils.videoElement_");W||(W=g.i5("VIDEO"),g.Yc("yt.player.utils.videoElement_",W));return W}; VO=function(W){var J=HW();return!!(J&&J.canPlayType&&J.canPlayType(W))}; ep=function(W){if(/opus/.test(W)&&g.ES&&!Mi("38")&&!g.ku())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)&&!FcA())return!1;W==='audio/mp4; codecs="mp4a.40.2"'&&(W='video/mp4; codecs="avc1.4d401f"');return!!VO(W)}; FnH=function(W){try{var J=ep('video/mp4; codecs="avc1.42001E"')||ep('video/webm; codecs="vp9"');return(ep('audio/mp4; codecs="mp4a.40.2"')||ep('audio/webm; codecs="opus"'))&&(J||!W)||VO('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(K){return"html5.missingapi"}}; Rs=function(){var W=HW();return!(!W.webkitSupportsPresentationMode||typeof W.webkitSetPresentationMode!=="function")}; b1=function(){var W=HW();try{var J=W.muted;W.muted=!J;return W.muted!==J}catch(K){}return!1}; a1Q=function(){var W;return((W=navigator.connection)==null?void 0:W.type)||""}; g.BW=function(){gi.apply(this,arguments)}; mv=function(W,J,K,I,q,S,p,n){this.sampleRate=W===void 0?0:W;this.numChannels=J===void 0?0:J;this.spatialAudioType=K===void 0?"SPATIAL_AUDIO_TYPE_NONE":K;this.W=I===void 0?!1:I;this.T=q===void 0?0:q;this.G=S===void 0?0:S;this.audioQuality=p===void 0?"AUDIO_QUALITY_UNKNOWN":p;this.K=n===void 0?!1:n}; LB=function(W,J,K,I,q,S,p,n,A){this.width=W;this.height=J;this.quality=S||rG(W,J);this.qualityOrdinal=g.os[this.quality];this.fps=K||0;this.stereoLayout=!q||I!=null&&I!=="UNKNOWN"&&I!=="RECTANGULAR"?0:q;this.projectionType=I?I==="EQUIRECTANGULAR"&&q===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":I:"UNKNOWN";(W=p)||(W=g.os[this.quality],W===0?W="Autom\u00e1tica":(J=this.fps,K=this.projectionType,W=W.toString()+(K==="EQUIRECTANGULAR"||K==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||K==="MESH"?"s":"p")+(J>55?"60": J>49?"50":J>39?"48":"")));this.qualityLabel=W;this.W=n||"";this.primaries=A||""}; rG=function(W,J){var K=Math.max(W,J);W=Math.min(W,J);J=km[0];for(var I=0;I=Math.floor(S*16/9)*1.3||W>=S*1.3)return J;J=q}return"tiny"}; Ym=function(W,J,K){K=K===void 0?{}:K;this.id=W;this.mimeType=J;K.Cy>0||(K.Cy=16E3);Object.assign(this,K);W=g.d(this.id.split(";"));this.itag=W.next().value;this.W=W.next().value;this.containerType=zc(J);this.z8=vW[this.itag]||""}; sS=function(W){return W.z8==="9"||W.z8==="("||W.z8==="9h"||W.z8==="(h"}; ubT=function(W){return W.z8==="H"||W.z8==="h"}; cW=function(W){return W.z8==="9h"||W.z8==="(h"}; NcQ=function(W){return!!W.aB&&!!W.aB.fairplay&&(W.z8==="("||W.z8==="(h"||W.z8==="A"||W.z8==="MEAC3")||PW&&!!W.aB&&W.z8==="1e"}; X_=function(W){return W.z8==="1"||W.z8==="1h"||PW&&W.z8==="1e"}; WF=function(W){return W.z8==="mac3"||W.z8==="meac3"||W.z8==="m"||W.z8==="i"}; ir=function(W){return W.z8==="MAC3"||W.z8==="MEAC3"||W.z8==="M"||W.z8==="I"}; g.JM=function(W){return W.containerType===1}; dfc=function(W){return W.z8==="("||W.z8==="(h"||W.z8==="H"||PW&&W.z8==="1e"}; KD=function(W){return W.mimeType==="application/x-mpegURL"}; g.Il=function(W,J){return{itag:+W.itag,lmt:J?0:W.lastModified,xtags:W.W||""}}; yqy=function(W){var J=navigator.mediaCapabilities;if(J==null||!J.decodingInfo||W.z8==="f")return Promise.resolve();var K={type:W.audio&&W.video?"file":"media-source"};W.video&&(K.video={contentType:W.mimeType,width:W.video.width||640,height:W.video.height||360,bitrate:W.Cy*8||1E6,framerate:W.video.fps||30});W.audio&&(K.audio={contentType:W.mimeType,channels:""+(W.audio.numChannels||2),bitrate:W.Cy*8||128E3,samplerate:W.audio.sampleRate||44100});return J.decodingInfo(K).then(function(I){W.K=I})}; qy=function(W){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(W)}; SH=function(W){return/(vp9|vp09|vp8|avc1|av01)/.test(W)}; pD=function(W){return W.includes("vtt")||W.includes("text/mp4")}; zc=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}; lr=function(W,J,K,I,q,S){var p=new mv;J in g.os||(J="small");J==="light"&&(J="tiny");I&&q?(q=Number(q),I=Number(I)):(q=g.os[J],I=Math.round(q*16/9));S=new LB(I,q,0,null,void 0,J,S);W=unescape(W.replace(/"/g,'"'));return new Ym(K,W,{audio:p,video:S})}; nD=function(W){var J="id="+W.id;W.video&&(J+=", res="+W.video.qualityLabel);var K,I;return J+", byterate=("+((K=W.QM)==null?void 0:K.toFixed(0))+", "+((I=W.Cy)==null?void 0:I.toFixed(0))+")"}; AM=function(W,J){return{start:function(K){return W[K]}, end:function(K){return J[K]}, length:W.length}}; UfH=function(W,J,K){for(var I=[],q=[],S=0;S=J)return K}catch(I){}return-1}; fD=function(W,J){return jH(W,J)>=0}; ZiD=function(W,J){if(!W)return NaN;J=jH(W,J);return J>=0?W.start(J):NaN}; hM=function(W,J){if(!W)return NaN;J=jH(W,J);return J>=0?W.end(J):NaN}; tM=function(W){return W&&W.length?W.end(W.length-1):NaN}; Fr=function(W){return tM(W)>0}; al=function(W,J){W=hM(W,J);return W>=0?W-J:0}; ur=function(W,J,K){for(var I=[],q=[],S=0;SK||(I.push(Math.max(J,W.start(S))-J),q.push(Math.min(K,W.end(S))-J));return AM(I,q)}; Ny=function(W,J,K,I){g.Ao.call(this);var q=this;this.fk=W;this.start=J;this.end=K;this.isActive=I;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.tE={error:function(){!q.Iu()&&q.isActive&&q.publish("error",q)}, updateend:function(){!q.Iu()&&q.isActive&&q.publish("updateend",q)}}; this.fk.bA(this.tE);this.LO=this.isActive}; yk=function(W,J,K,I,q,S){g.Ao.call(this);var p=this;this.wl=W;this.BP=J;this.id=K;this.containerType=I;this.z8=q;this.kC=S;this.Zh=this.S6=this.fP=null;this.lc=!1;this.appendWindowStart=this.timestampOffset=0;this.h9=AM([],[]);this.Zq=!1;this.cn=[];this.Wl=dQ?[]:void 0;this.uK=function(A){return p.publish(A.type,p)}; var n;if((n=this.wl)==null?0:n.addEventListener)this.wl.addEventListener("updateend",this.uK),this.wl.addEventListener("error",this.uK)}; UE=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; vF=function(W,J){this.c7=W;this.W=J===void 0?!1:J;this.K=!1}; YX=function(W,J,K){K=K===void 0?!1:K;g.R.call(this);this.mediaElement=W;this.ww=J;this.isView=K;this.S=0;this.T=!1;this.j=!0;this.C=0;this.callback=null;this.N=!1;this.ww||(this.BP=g.E(this.mediaElement.v7()));this.events=new g.BW(this);g.B(this,this.events);this.G=new vF(this.ww?window.URL.createObjectURL(this.ww):this.BP.webkitMediaSourceURL,!0);W=this.ww||this.BP;GW(this.events,W,["sourceopen","webkitsourceopen"],this.nmW);GW(this.events,W,["sourceclose","webkitsourceclose"],this.JDZ);this.Z={updateend:this.CV}}; QKD=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; CTH=function(W,J){sE(W)?g.Cq(function(){J(W)}):W.callback=J}; whQ=function(W,J,K){if(cF){var I;PF(W.mediaElement,{l:"mswssb",sr:(I=W.mediaElement.uO)==null?void 0:I.RH()},!1);J.bA(W.Z,W);K.bA(W.Z,W)}W.W=J;W.K=K;g.B(W,J);g.B(W,K)}; Xr=function(W){return!!W.W||!!W.K}; sE=function(W){try{return W5(W)==="open"}catch(J){return!1}}; W5=function(W){if(W.ww)return W.ww.readyState;switch(W.BP.webkitSourceState){case W.BP.SOURCE_OPEN:return"open";case W.BP.SOURCE_ENDED:return"ended";default:return"closed"}}; ip=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; M$H=function(W){sE(W)&&(W.ww?W.ww.endOfStream():W.BP.webkitSourceEndOfStream(W.BP.EOS_NO_ERROR))}; gqH=function(W,J,K,I){if(!W.W||!W.K)return null;var q=W.W.isView()?W.W.fk:W.W,S=W.K.isView()?W.K.fk:W.K,p=new YX(W.mediaElement,W.ww,!0);p.G=W.G;whQ(p,new Ny(q,J,K,I),new Ny(S,J,K,I));sE(W)||W.W.T6(W.W.nE());return p}; Gec=function(W){var J;(J=W.W)==null||J.YN();var K;(K=W.K)==null||K.YN();W.j=!1}; JO=function(){var W=this;this.aE=this.xi=dID;this.promise=new g.MZ(function(J,K){W.xi=J;W.aE=K})}; KF=function(){g.R.call(this);this.N_=!1;this.c7=null;this.Z=this.S=!1;this.T=new g.t0;this.uO=null;g.B(this,this.T)}; I5=function(W){W=W.M9();return W.length<1?NaN:W.end(W.length-1)}; $fT=function(W){!W.K&&QKD()&&(W.G?W.G.then(function(){return $fT(W)}):W.Kw()||(W.K=W.v4()))}; xfX=function(W){W.K&&(W.K.dispose(),W.K=void 0)}; PF=function(W,J,K){var I;((I=W.uO)==null?0:I.ND())&&W.uO.WS("rms",J,K===void 0?!1:K)}; OiD=function(W,J,K){W.isPaused()||W.getCurrentTime()>J||K>10||(W.play(),g.FW(function(){OiD(W,W.getCurrentTime(),K+1)},500))}; TcT=function(W,J){W.c7&&W.c7.equals(J)||(W.c7&&W.c7.dispose(),W.c7=J)}; qe=function(W){return al(W.qR(),W.getCurrentTime())}; HiH=function(W,J){if(W.uJ()===0||W.hasError())return!1;var K=W.getCurrentTime()>0;return J>=0&&(W=W.M9(),W.length||!K)?fD(W,J):K}; SK=function(W){W.Kw()&&(W.uO&&W.uO.XQ("rs_s"),zq&&W.getCurrentTime()>0&&W.seekTo(0),W.n$(),W.load(),TcT(W,null));delete W.G}; pF=function(W){switch(W.AS()){case 2:return"progressive.net.retryexhausted";case 3:return W=W.gK(),(W==null?0:W.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||V$Q&&(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.lp=function(W,J,K){this.tS=J===void 0?null:J;this.seekSource=K===void 0?null:K;this.state=W||64}; nF=function(W,J,K){K=K===void 0?!1:K;return EqL(W,J.getCurrentTime(),(0,g.L)(),qe(J),K)}; AO=function(W,J,K,I){if(!(J===W.state&&K===W.tS&&I===W.seekSource||J!==void 0&&(J&128&&!K||J&2&&J&16))){var q;if(q=J)q=J||W.state,q=!!(q&16||q&32);W=new g.lp(J,K,q?I?I:W.seekSource:null)}return W}; DO=function(W,J,K){return AO(W,W.state|J,null,K===void 0?null:K)}; jK=function(W,J){return AO(W,W.state&~J,null,null)}; fF=function(W,J,K,I){return AO(W,(W.state|J)&~K,null,I===void 0?null:I)}; g.z=function(W,J){return!!(W.state&J)}; g.hO=function(W,J){return J.state===W.state&&J.tS===W.tS}; tO=function(W){return W.isPlaying()&&!g.z(W,16)&&!g.z(W,32)}; Fg=function(W){return g.z(W,128)?-1:g.z(W,2)?0:g.z(W,2048)?3:g.z(W,64)?-1:g.z(W,1)&&!g.z(W,32)?3:g.z(W,8)?1:g.z(W,4)?2:-1}; up=function(W,J,K,I,q,S,p,n,A,D,f,h,t,F,a,y,U){g.R.call(this);var Q=this;this.vT=W;this.slot=J;this.layout=K;this.iO=I;this.QP=q;this.dw=S;this.cS=p;this.xK=n;this.Yt=A;this.r8=D;this.position=h;this.S=t;this.gw=F;this.lW=a;this.Fj=y;this.context=U;this.zY=!0;this.j=!1;this.CE="not_rendering";this.K=!1;this.G=new Nd;W=nQ(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.py=new $9(K.ET,this.iO,W,K.layoutId);var C;W=((C=a5(this))==null?void 0:C.progressCommands)||[];this.T=new VVL(A, W,K.layoutId,function(){return Q.QI()}); this.W=new jKy({adCpn:this.layout.layoutId,pw:U.pw,v3s:this.lW,kC:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; Ne=function(W){return{layoutId:W.T_(),Gq:W.lW,Pw:W.dw.get(),qX:W.Vw()}}; dh=function(W,J){return J.layoutId!==W.layout.layoutId?(W.vT.u1(W.slot,J,new pQ("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}; yo=function(W){W.CE="rendering_start_requested";W.r8(-1)}; a5=function(W){return nQ(W.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; eb0=function(W){tq("Received layout exit signal when not in layout exit flow.",W.slot,W.layout)}; RbD=function(W){var J;return((J=UQ(W.dw.get(),2))==null?void 0:J.clientPlaybackNonce)||""}; ZO=function(W,J){switch(J){case "normal":W.H7("complete");break;case "skipped":W.H7("skip");break;case "abandoned":E8(W.py,"impression")&&W.H7("abandon")}}; Qo=function(W,J){W.j||(J=new g.Fb(J.state,new g.lp),W.j=!0);return J}; CF=function(W,J){ty(J)?W.r8(1):g.uT(J,4)&&!g.uT(J,2)&&W.DA();aK(J,4)<0&&!(aK(J,2)<0)&&W.Ny()}; biQ=function(W){W.position===0&&(W.xK.get(),W=nQ(W.layout.clientMetadata,"metadata_type_ad_placement_config").kind,W={adBreakType:wh(W)},oC("ad_bl"),g.Lc(W))}; Me=function(W,J){Hj(W.py,J,!W.K)}; mfX=function(W){var J;return(((J=a5(W))==null?void 0:J.progressCommands)||[]).findIndex(function(K){return!!g.m(K==null?void 0:K.command,Bcy)})!==-1}; gh=function(W,J){var K=nQ(W.clientMetadata,"metadata_type_eligible_for_ssap");return K===void 0?(tq("Expected SSAP eligibility in PlayerBytes factory",W),!1):J.Vw(K)}; Gh=function(W,J){if(!XV(J.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 tq("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return tq("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:W}),3;default:PX(W,"unknown layoutExitReason")}}; rqH=function(W){tq("getExitReason: unexpected reason",void 0,void 0,{reason:W})}; $F=function(W,J){if(XV(J.get(),"html5_ssap_pass_transition_reason"))switch(W){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return rqH(W),"abandoned";case 3:case 1:return rqH(W),"error";default:PX(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 tq("getExitReason: unexpected reason",void 0,void 0,{reason:W}),"error";default:PX(W,"unexpected transition reason")}}; xF=function(W,J,K){z8(W,K)||YM(W,J,K);z8(W,"video_to_ad")||YM(W,J,"video_to_ad");z8(W,"ad_to_video")||YM(W,J,"ad_to_video");z8(W,"ad_to_ad")||YM(W,J,"ad_to_ad")}; OQ=function(W,J,K,I,q,S,p,n,A,D,f,h,t,F,a,y,U,Q){up.call(this,W,J,K,I,q,S,p,n,D,f,h,t,F,a,y,U,Q);var C=this;this.HN=A;this.Kg=h;this.FJ=!0;this.Op=this.u2=0;this.Q$=u5(function(){l1c(Ne(C));C.vT.UT(C.slot,C.layout)}); this.o0=u5(function(){nqQ(Ne(C));C.CE!=="rendering_stop_requested"&&C.Kg(C);C.layoutExitReason?C.vT.Mv(C.slot,C.layout,C.layoutExitReason):eb0(C)}); this.tD=new g.RI(200);this.tD.listen("tick",function(){C.ZH()}); g.B(this,this.tD)}; H5=function(W){W.Op=Date.now();Th(W,W.u2);W.tD.start()}; oqy=function(W){W.u2=W.QI();W.tH(W.u2/1E3,!0);Th(W,W.u2)}; Th=function(W,J){J={current:J/1E3,duration:W.QI()/1E3};W.HN.get().kW("onAdPlaybackProgress",J)}; Vo=function(W){OQ.call(this,W.vT,W.slot,W.YA,W.iO,W.QP,W.dw,W.cS,W.xK,W.HN,W.Yt,W.r8,W.Kg,W.HC,W.rh,W.gw,W.lW,W.Fj,W.context)}; EQ=function(W){OQ.call(this,W.vT,W.slot,W.YA,W.iO,W.QP,W.dw,W.cS,W.xK,W.HN,W.Yt,W.r8,W.Kg,W.HC,W.rh,W.gw,W.lW,W.Fj,W.context)}; eK=function(){EQ.apply(this,arguments)}; LnI=function(W){return gh(W.slot,W.gw.get())?new eK(W):new Vo(W)}; B5=function(W){up.call(this,W.callback,W.slot,W.YA,W.iO,W.QP,W.dw,W.cS,W.xK,W.Yt,W.r8,W.Kg,W.HC,W.rh,W.gw,W.lW,W.Fj,W.context);var J=this;this.adCpn="";this.hG=this.Y1=0;this.Q$=u5(function(){l1c(Ne(J));J.vT.UT(J.slot,J.layout)}); this.o0=u5(function(){nqQ(Ne(J));J.CE!=="rendering_stop_requested"&&J.Kg(J);J.layoutExitReason?J.vT.Mv(J.slot,J.layout,J.layoutExitReason):eb0(J)}); this.Jh=W.Jh;this.Vl=W.Vl;this.hp=W.hp;this.HN=W.HN;this.NR=W.NR;this.Kg=W.Kg;if(!this.Vw()){XV(this.gw.get(),"html5_disable_media_load_timeout")||(this.MK=new g.P0(function(){J.pH("load_timeout",new pQ("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); W=R5(this.gw.get());var K=bp(this.gw.get());W&&K&&(this.MA=new g.P0(function(){var I=nQ(J.layout.clientMetadata,"metadata_type_preload_player_vars");I&&J.Vl.get().X.preloadVideoByPlayerVars(I,2,300)}))}}; zb0=function(W,J){var K=nQ(J.clientMetadata,"metadata_type_ad_video_id"),I=nQ(J.clientMetadata,"metadata_type_legacy_info_card_vast_extension");K&&I&&W.NR.get().X.J().SZ.add(K,{Kq:I});(J=nQ(J.clientMetadata,"metadata_type_sodar_extension_data"))&&vbT(W.Jh.get(),J);keD(W.cS.get(),!1)}; vqv=function(W){keD(W.cS.get(),!0);var J;((J=W.shrunkenPlayerBytesConfig)==null?0:J.shouldRequestShrunkenPlayerBytes)&&W.cS.get().fg(!1)}; Yoy=function(W){return new mZ(W)}; rh=function(){B5.apply(this,arguments)}; mZ=function(){rh.apply(this,arguments)}; sKT=function(W){return LnI(Object.assign({},W,{vT:W.callback,r8:function(){}}))}; cqD=function(W){return new B5(Object.assign({},W,{r8:function(J){W.HN.get().kW("onAdIntroStateChange",J)}}))}; PTD=function(W){function J(K){W.HN.get().Oc(K)} return gh(W.slot,W.gw.get())?Yoy(Object.assign({},W,{r8:J})):new B5(Object.assign({},W,{r8:J}))}; o5=function(W){for(var J=W.YA,K=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],I=g.d(x9()),q=I.next();!q.done;q=I.next())K.push(q.value);if(WW(J,{sA:K,Fv:["LAYOUT_TYPE_MEDIA_BREAK"]}))return sKT(W);J=W.YA;K=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];I=g.d(x9());for(q=I.next();!q.done;q=I.next())K.push(q.value);if(WW(J,{sA:K,Fv:["LAYOUT_TYPE_MEDIA"]}))return IA(W.YA.clientMetadata,"metadata_type_ad_intro")?cqD(W):PTD(W)}; WuH=function(W){var J=g.E(nQ(W.clientMetadata,"metadata_type_ad_placement_config")).kind,K=nQ(W.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:W.layoutId,adType:XhX(K),adBreakType:wh(J)}}; wh=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"}}; XhX=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"}}; ic0=function(W){try{return new LF(W.qw,W.slot,W.layout,W.cD,W.Tv,W.dw,W.Ql,W.Vl,W.uU,W.cS,W.K$K,W)}catch(J){}}; LF=function(W,J,K,I,q,S,p,n,A,D,f,h){g.R.call(this);this.qw=W;this.slot=J;this.layout=K;this.cD=I;this.Tv=q;this.dw=S;this.Ql=p;this.Vl=n;this.uU=A;this.cS=D;this.params=h;this.zY=!0;W=o5(f);if(!W)throw Error("Invalid params for sublayout");this.yl=W}; JIA=function(){this.W=1;this.K=new Nd}; kF=function(W,J,K,I,q,S,p,n,A,D,f,h,t,F){g.R.call(this);this.callback=W;this.dw=J;this.Ql=K;this.Vl=I;this.cS=q;this.Io=S;this.xK=p;this.MV=n;this.slot=A;this.layout=D;this.cD=f;this.hC=h;this.uU=t;this.gw=F;this.zY=!0;this.fX=!1;this.JS=[];this.T5=-1;this.PE=!1;this.aO=new JIA}; KuQ=function(W){var J;return(J=W.layout.F1)!=null?J:nQ(W.layout.clientMetadata,"metadata_type_sub_layouts")}; zh=function(W){return{Pw:W.dw.get(),Gq:!1,qX:W.Vw()}}; Iac=function(W,J,K){if(W.Qd()===W.JS.length-1){var I,q;tq("Unexpected skip requested during the last sublayout",(I=W.Us())==null?void 0:I.kt(),(q=W.Us())==null?void 0:q.NN(),{requestingSlot:J,requestingLayout:K})}}; qUD=function(W,J,K){return K.layoutId!==v5(W,J,K)?(tq("onSkipRequested for a PlayerBytes layout that is not currently active",W.kt(),W.NN()),!1):!0}; SUy=function(W){W.Qd()===W.JS.length-1&&tq("Unexpected skip with target requested during the last sublayout")}; peQ=function(W,J,K){return K.renderingContent===void 0&&K.layoutId!==v5(W,J,K)?(tq("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",W.kt(),W.NN(),{requestingSlot:J,requestingLayout:K}),!1):!0}; laX=function(W,J,K,I){var q=nQ(J.NN().clientMetadata,"metadata_type_ad_pod_skip_target");if(q&&q>0&&q0)){tq("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",W.slot,W.layout,{indexToPlay:J,layoutId:W.layout.layoutId});break a}W.T5=J;J=W.Us();if(W.Qd()>0&&!W.Vw()){var K=W.xK.get();K.K=!1;var I={};K.W&&K.videoId&&(I.cttAuthInfo={token:K.W,videoId:K.videoId});kM("ad_to_ad",I)}W.iF(J)}}; P5=function(W){kF.call(this,W.qw,W.dw,W.Ql,W.Vl,W.cS,W.Io,W.xK,W.MV,W.slot,W.layout,W.cD,W.hC,W.uU,W.gw)}; DCL=function(W){(W=W.Us())&&W.Se()}; Xg=function(W){kF.call(this,W.qw,W.dw,W.Ql,W.Vl,W.cS,W.Io,W.xK,W.MV,W.slot,W.layout,W.cD,W.hC,W.uU,W.gw);this.Mu=void 0}; jCL=function(W,J){W.uC()&&!ZE(W.aO.K)||W.callback.Mv(W.slot,W.layout,J)}; WT=function(W){return XV(W.gw.get(),"html5_ssap_pass_transition_reason")}; faT=function(W,J,K){dG(J.dF())<2&&(K=$F(K,W.gw),J.RB(J.NN(),K));K=yO(J.dF());W.zm(W.slot,J.NN(),K)}; hFQ=function(W,J){if(W.aO.K.currentState<2){var K=$F(J,W.gw);K==="error"?W.callback.u1(W.slot,W.layout,new pQ("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:J},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):c5(W.hC,W.layout,K)}}; JV=function(W,J,K){dG(J.dF())>=2||(J.RB(J.NN(),K),ZE(J.dF())&&(Ov(W.MV,W.slot,J.NN(),K),W.Mu=void 0))}; t0X=function(W,J){W.aO.W===2&&J!==W.Tr()&&tq("onClipEntered: unknown cpn",W.slot,W.layout,{cpn:J})}; FuQ=function(W,J){var K=W.Us();if(K){var I=K.NN().layoutId,q=W.Qd()+1;W.uC()?JV(W,K,J):K.RB(K.NN(),J);q>=0&&qq&&p.A3(f,q-I);return f}; CIH=function(W,J,K){var I=nQ(J.clientMetadata,"metadata_type_sodar_extension_data");if(I)try{vbT(K,I)}catch(q){tq("Unexpected error when loading Sodar",W,J,{error:q})}}; weQ=function(W,J,K,I,q,S,p){AV(W,J,new g.Fb(K,new g.lp),I,q,p,!1,S)}; AV=function(W,J,K,I,q,S,p,n){p=p===void 0?!0:p;ty(K)&&F_(q,0,null)&&(!E8(W,"impression")&&n&&n(),W.H7("impression"));E8(W,"impression")&&(g.uT(K,4)&&!g.uT(K,2)&&W.nQ("pause"),aK(K,4)<0&&!(aK(K,2)<0)&&W.nQ("resume"),g.uT(K,16)&&q>=.5&&W.nQ("seek"),p&&g.uT(K,2)&&Dq(W,K.state,J,I,q,S))}; Dq=function(W,J,K,I,q,S,p,n){E8(W,"impression")&&(S?(S=q-I,S=S>=-1&&S<=2):S=Math.abs(I-q)<=1,jJ(W,J,S?I:q,K,I,p,n&&S),S&&W.H7("complete"))}; jJ=function(W,J,K,I,q,S,p){V3(W,K*1E3,p);q<=0||K<=0||(J==null?0:g.z(J,16))||(J==null?0:g.z(J,32))||(F_(K,q*.25,I)&&(S&&!E8(W,"first_quartile")&&S("first"),W.H7("first_quartile")),F_(K,q*.5,I)&&(S&&!E8(W,"midpoint")&&S("second"),W.H7("midpoint")),F_(K,q*.75,I)&&(S&&!E8(W,"third_quartile")&&S("third"),W.H7("third_quartile")))}; M0y=function(W,J){E8(W,"impression")&&W.nQ(J?"fullscreen":"end_fullscreen")}; gMD=function(W){E8(W,"impression")&&W.nQ("clickthrough")}; G8L=function(W){W.nQ("active_view_measurable")}; $CT=function(W){E8(W,"impression")&&!E8(W,"seek")&&W.nQ("active_view_fully_viewable_audible_half_duration")}; xCD=function(W){E8(W,"impression")&&!E8(W,"seek")&&W.nQ("active_view_viewable")}; OcA=function(W){E8(W,"impression")&&!E8(W,"seek")&&W.nQ("audio_audible")}; TRv=function(W){E8(W,"impression")&&!E8(W,"seek")&&W.nQ("audio_measurable")}; Hcv=function(W,J,K,I,q,S,p,n,A,D,f,h){this.callback=W;this.slot=J;this.layout=K;this.Ql=I;this.py=q;this.cS=S;this.Ka=p;this.QP=n;this.Jh=A;this.gw=D;this.iO=f;this.dw=h;this.FJ=!0;this.Jp=this.CE=null;this.adCpn=void 0;this.W=!1}; V0Q=function(W,J,K){var I;nP(W.iO.get(),"ads_qua","cpn."+nQ(W.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((I=UQ(W.dw.get(),2))==null?void 0:I.clientPlaybackNonce)+";qt."+J+";clr."+K)}; EMQ=function(W,J){var K,I;nP(W.iO.get(),"ads_imp","cpn."+nQ(W.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((K=UQ(W.dw.get(),2))==null?void 0:K.clientPlaybackNonce)+";clr."+J+";skp."+!!g.m((I=nQ(W.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:I.skipOrPreviewRenderer,fP))}; hV=function(W){return{enterMs:nQ(W.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:nQ(W.clientMetadata,"metadata_type_layout_exit_ms")}}; tV=function(W,J,K,I,q,S,p,n,A,D,f,h,t,F){I4.call(this,W,J,K,I,q,p,n,A,D,h);this.Ka=S;this.Jh=f;this.QP=t;this.gw=F;this.Jp=this.CE=null}; eFQ=function(W,J){var K;nP(W.iO.get(),"ads_imp","acpn."+((K=UQ(W.dw.get(),2))==null?void 0:K.clientPlaybackNonce)+";clr."+J)}; RFQ=function(W,J,K){var I;nP(W.iO.get(),"ads_qua","cpn."+nQ(W.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((I=UQ(W.dw.get(),2))==null?void 0:I.clientPlaybackNonce)+";qt."+J+";clr."+K)}; Fa=function(W,J,K,I,q,S,p,n,A,D,f,h,t,F,a,y,U,Q,C,T,H,b){this.uU=W;this.cD=J;this.hC=K;this.dw=I;this.Ql=q;this.cS=S;this.Io=p;this.iO=n;this.Ka=A;this.p7=D;this.QP=f;this.Jh=h;this.Vl=t;this.hp=F;this.xK=a;this.HN=y;this.Yt=U;this.NR=Q;this.gw=C;this.W=T;this.context=H;this.Fj=b}; a4=function(W,J,K,I,q,S,p,n,A,D,f,h,t,F,a,y,U,Q,C){this.uU=W;this.cD=J;this.hC=K;this.iO=I;this.QP=q;this.Jh=S;this.Vl=p;this.dw=n;this.cS=A;this.Io=D;this.hp=f;this.xK=h;this.HN=t;this.Yt=F;this.NR=a;this.gw=y;this.Ql=U;this.context=Q;this.Fj=C}; bcX=function(W,J,K,I){n$.call(this,"survey-interstitial",W,J,K,I)}; un=function(W,J,K,I,q){U8.call(this,K,W,J,I);this.iO=q;W=nQ(J.clientMetadata,"metadata_type_ad_placement_config");this.py=new $9(J.ET,q,W,J.layoutId)}; Nl=function(W){return Math.round(W.width)+"x"+Math.round(W.height)}; yX=function(W,J,K){K=K===void 0?ds:K;K.widthW.width*W.height*.2)return{Mh:3,H3:501,errorMessage:"ad("+Nl(K)+") to container("+Nl(W)+") ratio exceeds limit."};if(K.height>W.height/3-J)return{Mh:3,H3:501,errorMessage:"ad("+Nl(K)+") covers container("+Nl(W)+") center."}}; BRI=function(W,J){var K=g.E(nQ(W.clientMetadata,"metadata_type_ad_placement_config"));return new $9(W.ET,J,K,W.layoutId)}; UA=function(W){return g.E(nQ(W.clientMetadata,"metadata_type_invideo_overlay_ad_renderer"))}; Zq=function(W,J,K,I){n$.call(this,"invideo-overlay",W,J,K,I);this.interactionLoggingClientData=I}; QX=function(W,J,K,I,q,S,p,n,A,D,f,h){U8.call(this,S,W,J,q);this.iO=K;this.T=p;this.cS=n;this.Yt=A;this.gw=D;this.S=f;this.j=h;this.py=BRI(J,K)}; mCI=function(){var W=["metadata_type_invideo_overlay_ad_renderer"];x9().forEach(function(J){W.push(J)}); return{sA:W,Fv:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; CP=function(W,J,K,I,q,S,p,n,A,D,f,h,t){U8.call(this,S,W,J,q);this.iO=K;this.T=p;this.N=n;this.cS=A;this.Yt=D;this.gw=f;this.S=h;this.j=t;this.py=BRI(J,K)}; rIy=function(){for(var W=["metadata_type_invideo_overlay_ad_renderer"],J=g.d(x9()),K=J.next();!K.done;K=J.next())W.push(K.value);return{sA:W,Fv:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; ws=function(W){this.cS=W;this.W=!1}; oML=function(W,J,K){n$.call(this,"survey",W,{},J,K)}; Ml=function(W,J,K,I,q,S,p){U8.call(this,K,W,J,I);this.T=q;this.cS=S;this.gw=p}; Luy=function(W,J,K,I,q,S,p,n,A,D){this.lU=W;this.cS=J;this.iO=K;this.T=I;this.QP=q;this.K=S;this.G=p;this.Yt=n;this.gw=A;this.W=D}; k8I=function(W,J,K,I,q,S,p,n,A,D){this.lU=W;this.cS=J;this.iO=K;this.T=I;this.QP=q;this.K=S;this.G=p;this.Yt=n;this.gw=A;this.W=D}; gs=function(W,J,K,I,q,S,p,n,A,D){Sp.call(this,W,J,K,I,q,S,p,A);this.Kp=n;this.dw=D}; zFT=function(){var W=X3X();W.sA.push("metadata_type_ad_info_ad_metadata");return W}; vMX=function(W,J,K,I,q,S,p){this.lU=W;this.cS=J;this.iO=K;this.K=I;this.Kp=q;this.W=S;this.dw=p}; YUQ=function(W,J,K,I,q,S,p,n){this.lU=W;this.cS=J;this.iO=K;this.K=I;this.Kp=q;this.W=S;this.gw=p;this.dw=n}; GS=function(W,J){this.slotId=J;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=W(this.triggerType)}; $$=function(W,J){this.adPodIndex=W;this.W=J.length;this.adBreakLengthSeconds=J.reduce(function(I,q){return I+q},0); var K=0;for(W+=1;W0}; f_=function(W){return!!(W.l0W&&W.slot&&W.layout)}; hP=function(W){var J,K=(J=W.config)==null?void 0:J.adPlacementConfig;W=W.renderer;return!(!K||K.kind==null||!W)}; n4v=function(W){if(!S5(W.adLayoutMetadata))return!1;W=W.renderingContent;return g.m(W,jp)||g.m(W,fB)||g.m(W,Ay)||g.m(W,DE)?!0:!1}; tP=function(W){return W.playerVars!==void 0&&W.pings!==void 0&&W.externalVideoId!==void 0}; GU=function(W){if(!S5(W.adLayoutMetadata))return!1;W=W.renderingContent;var J=g.m(W,FF);return J?a9(J):(J=g.m(W,C_))?tP(J):(J=g.m(W,wD))?J.playerVars!==void 0:(J=g.m(W,jp))?J.durationMilliseconds!==void 0:g.m(W,MB)||g.m(W,gD)?!0:!1}; a9=function(W){W=(W.sequentialLayouts||[]).map(function(J){return g.m(J,$t)}); return W.length>0&&W.every(GU)}; OK=function(W){return S5(W.adLayoutMetadata)?(W=g.m(W.renderingContent,xt))&&W.pings?!0:!1:!1}; t9L=function(W){if(!S5(W.adLayoutMetadata))return!1;if(g.m(W.renderingContent,AuX)||g.m(W.renderingContent,DM0))return!0;var J=g.m(W.renderingContent,TU);return g.m(W.renderingContent,HA)||g.m(J==null?void 0:J.sidePanel,jqH)||g.m(J==null?void 0:J.sidePanel,fBQ)||g.m(J==null?void 0:J.sidePanel,hRQ)?!0:!1}; dMv=function(W){var J;(J=!W)||(J=W.adSlotMetadata,J=!((J==null?void 0:J.slotId)!==void 0&&(J==null?void 0:J.slotType)!==void 0));if(J||!(F5T(W)||W.slotEntryTrigger&&W.slotFulfillmentTriggers&&W.slotExpirationTriggers))return!1;var K;W=(K=W.fulfillmentContent)==null?void 0:K.fulfilledLayout;return(K=g.m(W,$t))?GU(K):(K=g.m(W,VE))?t9L(K):(K=g.m(W,aBX))?n4v(K):(K=g.m(W,uOc))?pNv(K):(K=g.m(W,NHy))?S5(K.adLayoutMetadata)?g.m(K.renderingContent,p_)?!0:!1:!1:(W=g.m(W,EK))?OK(W):!1}; F5T=function(W){var J;W=g.m((J=W.fulfillmentContent)==null?void 0:J.fulfilledLayout,VE);var K;return W&&((K=W.adLayoutMetadata)==null?void 0:K.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&W.layoutExitNormalTriggers===void 0}; yuT=function(W){var J;return(W==null?void 0:(J=W.adSlotMetadata)==null?void 0:J.slotType)==="SLOT_TYPE_IN_PLAYER"}; Z2H=function(W,J){var K;if((K=W.questions)==null||!K.length||!W.playbackCommands||(J===void 0||!J)&&W.questions.length!==1)return!1;W=g.d(W.questions);for(J=W.next();!J.done;J=W.next()){J=J.value;var I=K=void 0,q=((K=g.m(J,e5))==null?void 0:K.surveyAdQuestionCommon)||((I=g.m(J,R9))==null?void 0:I.surveyAdQuestionCommon);if(!UMH(q))return!1}return!0}; QqQ=function(W){W=((W==null?void 0:W.playerOverlay)||{}).instreamSurveyAdRenderer;var J;if(W)if(W.playbackCommands&&W.questions&&W.questions.length===1){var K,I=((J=g.m(W.questions[0],e5))==null?void 0:J.surveyAdQuestionCommon)||((K=g.m(W.questions[0],R9))==null?void 0:K.surveyAdQuestionCommon);J=UMH(I)}else J=!1;else J=!1;return J}; UMH=function(W){if(!W)return!1;W=g.m(W.instreamAdPlayerOverlay,bo);var J=g.m(W==null?void 0:W.skipOrPreviewRenderer,fP),K=g.m(W==null?void 0:W.adInfoRenderer,BA);return(g.m(W==null?void 0:W.skipOrPreviewRenderer,mV)||J)&&K?!0:!1}; CcL=function(W){return W.linearAds!=null&&S5(W.adLayoutMetadata)}; wNc=function(W){return W.linearAd!=null&&W.adVideoStart!=null}; M9A=function(W){if(isNaN(Number(W.timeoutSeconds))||!W.text||!W.ctaButton||!g.m(W.ctaButton,g.rD)||!W.brandImage)return!1;var J;return W.backgroundImage&&g.m(W.backgroundImage,o9)&&((J=g.m(W.backgroundImage,o9))==null?0:J.landscape)?!0:!1}; L_=function(W,J,K,I,q,S,p,n){g.R.call(this);this.gw=W;this.W=J;this.K=I;this.dw=q;this.T=S;this.G=p;this.Vl=n}; xMQ=function(W,J,K){var I,q=((I=K.adSlots)!=null?I:[]).map(function(n){return g.m(n,kt)}); if(K.Dx)if(nQ(J.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))uQ(W.W.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId); else{if(g4Q(W.gw.get())){var S=K.Eo.filter(function(n){var A;return((A=n.renderer)==null?void 0:A.clientForecastingAdRenderer)!=null}); S.length!==0?GOA(W.G,S,q,J.slotId,K.ssdaiAdsConfig):uQ(W.W.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId)}else uQ(W.W.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId); $MA(W.T,J)}else{var p;I={w0:Math.round(((S=nQ(J.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:S.w0)||0),hA:(p=nQ(J.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:p.hA};GOA(W.G,K.Eo,q,J.slotId,K.ssdaiAdsConfig,I)}}; H20=function(W,J,K,I,q,S,p){var n=UQ(W.dw.get(),1);if(O2v(W.gw.get())){var A=zU(W.K.get(),K,I,q,n.clientPlaybackNonce,n.yX,n.daiEnabled,n,S,p);THy(W,A);uQ(W.W.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return A},J)}else uQ(W.W.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return zU(W.K.get(),K,I,q,n.clientPlaybackNonce,n.yX,n.daiEnabled,n,S,p)},J)}; THy=function(W,J){J=g.d(J);for(var K=J.next();!K.done;K=J.next()){var I=K.value;if(I.slotType==="SLOT_TYPE_PLAYER_BYTES"&&I.fulfilledLayout)if(K=void 0,I.fulfilledLayout.renderingContent)K=nQ(I.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(I.fulfilledLayout.F1){I=g.d(I.fulfilledLayout.F1);for(var q=I.next();!q.done&&(q=q.value,!q.renderingContent||!(K=nQ(q.clientMetadata,"metadata_type_player_vars")));q=I.next());}}else K=void 0;if(K){W.Vl.get().X.preloadVideoByPlayerVars(K, 2,300);break}}}; E4A=function(W,J,K,I,q,S,p){J=V9T(J,S,Number(I.prefetchMilliseconds)||0,p);W=J instanceof Y?J:vA(W,I,q,J,K);return W instanceof Y?W:[W]}; eRH=function(W,J,K,I,q){var S=NJ(W.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST");I=[new Bn({getAdBreakUrl:I.getAdBreakUrl,w0:0,hA:0}),new im(!0)];W=J.pauseDurationMs?J.lactThresholdMs?{slotId:S,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new io(W.W,S),slotFulfillmentTriggers:[new cIQ(W.W)],slotExpirationTriggers:[new vT(W.W,q),new PT(W.W,S)],ou:"core",clientMetadata:new lm(I),adSlotLoggingData:K}:new Y("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new Y("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return W instanceof Y?W:[W]}; RR0=function(W){var J,K;return((J=W.renderer)==null?void 0:(K=J.adBreakServiceRenderer)==null?void 0:K.getAdBreakUrl)!==void 0}; Yt=function(W,J,K){if(W.beforeContentVideoIdStartedTrigger)W=W.beforeContentVideoIdStartedTrigger?new x$(SX,J,W.id):new Y("Not able to create BeforeContentVideoIdStartedTrigger");else{if(W.layoutIdExitedTrigger){var I;J=(I=W.layoutIdExitedTrigger)!=null&&I.triggeringLayoutId?new eJ(SX,W.layoutIdExitedTrigger.triggeringLayoutId,W.id):new Y("Not able to create LayoutIdExitedTrigger")}else{if(W.layoutExitedForReasonTrigger){var q,S;((q=W.layoutExitedForReasonTrigger)==null?0:q.triggeringLayoutId)&&((S= W.layoutExitedForReasonTrigger)==null?0:S.layoutExitReason)?(J=PIy(W.layoutExitedForReasonTrigger.layoutExitReason),W=J instanceof Y?J:new EA(SX,W.layoutExitedForReasonTrigger.triggeringLayoutId,[J],W.id)):W=new Y("Not able to create LayoutIdExitedForReasonTrigger")}else{if(W.onLayoutSelfExitRequestedTrigger){var p;J=(p=W.onLayoutSelfExitRequestedTrigger)!=null&&p.triggeringLayoutId?new zS(SX,W.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,W.id):new Y("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(W.onNewPlaybackAfterContentVideoIdTrigger)W= W.onNewPlaybackAfterContentVideoIdTrigger?new vT(SX,J,W.id):new Y("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(W.skipRequestedTrigger){var n;J=(n=W.skipRequestedTrigger)!=null&&n.triggeringLayoutId?new sA(SX,W.skipRequestedTrigger.triggeringLayoutId,W.id):new Y("Not able to create SkipRequestedTrigger")}else if(W.slotIdEnteredTrigger){var A;J=(A=W.slotIdEnteredTrigger)!=null&&A.triggeringSlotId?new cT(SX,W.slotIdEnteredTrigger.triggeringSlotId,W.id):new Y("Not able to create SlotIdEnteredTrigger")}else if(W.slotIdExitedTrigger){var D; J=(D=W.slotIdExitedTrigger)!=null&&D.triggeringSlotId?new PT(SX,W.slotIdExitedTrigger.triggeringSlotId,W.id):new Y("Not able to create SkipRequestedTrigger")}else if(W.surveySubmittedTrigger){var f;J=(f=W.surveySubmittedTrigger)!=null&&f.triggeringLayoutId?new K_(SX,W.surveySubmittedTrigger.triggeringLayoutId,W.id):new Y("Not able to create SurveySubmittedTrigger")}else{if(W.mediaResumedTrigger)W=W.mediaResumedTrigger&&W.id?new XeQ(W.id):new Y("Not able to create MediaResumedTrigger");else{if(W.closeRequestedTrigger){var h; J=(h=W.closeRequestedTrigger)!=null&&h.triggeringLayoutId?new OA(SX,W.closeRequestedTrigger.triggeringLayoutId,W.id):new Y("Not able to create CloseRequestedTrigger")}else if(W.slotIdScheduledTrigger){var t;J=(t=W.slotIdScheduledTrigger)!=null&&t.triggeringSlotId?new io(SX,W.slotIdScheduledTrigger.triggeringSlotId,W.id):new Y("Not able to create SlotIdScheduledTrigger")}else{if(W.mediaTimeRangeTrigger){var F;I=Number((F=W.mediaTimeRangeTrigger)==null?void 0:F.offsetStartMilliseconds);var a;p=Number((a= W.mediaTimeRangeTrigger)==null?void 0:a.offsetEndMilliseconds);isFinite(I)&&isFinite(p)?(a=p,a===-1&&(a=K),K=I>a?new Y("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:I,offsetEndMs:a},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",a===K&&I-500<=a):new C3(I,a),W=K instanceof Y?K:new rs(SX,J,K,!1,W.id)):W=new Y("Not able to create MediaTimeRangeTrigger")}else if(W.contentVideoIdEndedTrigger)W=W.contentVideoIdEndedTrigger?new TS(SX,J,!1,W.id):new Y("Not able to create ContentVideoIdEndedTrigger"); else{if(W.layoutIdEnteredTrigger){var y;J=(y=W.layoutIdEnteredTrigger)!=null&&y.triggeringLayoutId?new VX(SX,W.layoutIdEnteredTrigger.triggeringLayoutId,W.id):new Y("Not able to create LayoutIdEnteredTrigger")}else if(W.timeRelativeToLayoutEnterTrigger){var U;J=(U=W.timeRelativeToLayoutEnterTrigger)!=null&&U.triggeringLayoutId?new I9(SX,Number(W.timeRelativeToLayoutEnterTrigger.durationMs),W.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,W.id):new Y("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(W.onDifferentLayoutIdEnteredTrigger){var Q; J=(Q=W.onDifferentLayoutIdEnteredTrigger)!=null&&Q.triggeringLayoutId&&W.onDifferentLayoutIdEnteredTrigger.slotType&&W.onDifferentLayoutIdEnteredTrigger.layoutType?new LP(SX,W.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,W.onDifferentLayoutIdEnteredTrigger.slotType,W.onDifferentLayoutIdEnteredTrigger.layoutType,W.id):new Y("Not able to create CloseRequestedTrigger")}else{if(W.liveStreamBreakStartedTrigger)W=W.liveStreamBreakStartedTrigger&&W.id?new mE(SX,W.id):new Y("Not able to create LiveStreamBreakStartedTrigger"); else if(W.liveStreamBreakEndedTrigger)W=W.liveStreamBreakEndedTrigger&&W.id?new R4(SX,W.id):new Y("Not able to create LiveStreamBreakEndedTrigger");else{if(W.liveStreamBreakScheduledDurationMatchedTrigger){var C;J=(C=W.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&C.breakDurationMs?new bn(Number(W.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,W.id):new Y("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(W.liveStreamBreakScheduledDurationNotMatchedTrigger){var T; J=(T=W.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&T.breakDurationMs?new BT(Number(W.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,W.id):new Y("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(W.newSlotScheduledWithBreakDurationTrigger){var H;J=(H=W.newSlotScheduledWithBreakDurationTrigger)!=null&&H.breakDurationMs?new o4(Number(W.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,W.id):new Y("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else J= W.prefetchCacheExpiredTrigger?new Y$(SX,W.id):new Y("Not able to convert an AdsControlflowTrigger.");W=J}J=W}W=J}J=W}W=J}J=W}W=J}J=W}W=J}J=W}W=J}return W}; sK=function(W,J){J.W>=2&&(W.slot_pos=J.adPodIndex);W.autoplay="1"}; BHL=function(W,J,K,I,q,S,p,n){return J===null?new Y("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:J,ActionCompanionAdRenderer:I}):[b2T(W,J,p,S,function(A){var D=A.slotId;A=n(A);var f=I.adLayoutLoggingData,h=new lm([new m2(I),new iC(q)]);D=Wj(K.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",D);var t={layoutId:D,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",ou:"core"};return{layoutId:D,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",ET:new Map, layoutExitNormalTriggers:[new vT(K.W,p)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:"core",clientMetadata:h,OT:A(t),adLayoutLoggingData:f}})]}; mMT=function(W,J,K,I,q,S,p,n){return J===null?new Y("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:J,TopBannerImageTextIconButtonedLayoutViewModel:I}):[b2T(W,J,p,S,function(A){var D=A.slotId;A=n(A);var f=I.adLayoutLoggingData,h=new lm([new r7(I),new iC(q)]);D=Wj(K.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",D);var t={layoutId:D,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",ou:"core"};return{layoutId:D,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", ET:new Map,layoutExitNormalTriggers:[new vT(K.W,p)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:"core",clientMetadata:h,OT:A(t),adLayoutLoggingData:f}})]}; kOI=function(W,J,K,I,q,S){if(!S)for(J=g.d(J),S=J.next();!S.done;S=J.next())S=S.value,cA(W,S.renderer,S.config.adPlacementConfig.kind);W=Array.from(W.values()).filter(function(f){return ruI(f)}); J=[];S=g.d(W);for(var p=S.next(),n={};!p.done;n={cM:void 0},p=S.next()){n.cM=p.value;p=g.d(n.cM.Q3);for(var A=p.next(),D={};!A.done;D={Ea:void 0},A=p.next())D.Ea=A.value,A=function(f,h){return function(t){return f.Ea.Pr(t,h.cM.instreamVideoAdRenderer.elementId,f.Ea.Gm)}}(D,n),D.Ea.isContentVideoCompanion?J.push(o4X(K,I,q,n.cM.instreamVideoAdRenderer.elementId,D.Ea.associatedCompositePlayerBytesLayoutId,D.Ea.adSlotLoggingData,A)):W.length>1?J.push(L5X(K,I,q,n.cM.instreamVideoAdRenderer.elementId,D.Ea.adSlotLoggingData, function(f,h){return function(t){return f.Ea.Pr(t,h.cM.instreamVideoAdRenderer.elementId,f.Ea.Gm,f.Ea.associatedCompositePlayerBytesLayoutId)}}(D,n))):J.push(L5X(K,I,q,n.cM.instreamVideoAdRenderer.elementId,D.Ea.adSlotLoggingData,A))}return J}; cA=function(W,J,K){if(J=zRc(J)){J=g.d(J);for(var I=J.next();!I.done;I=J.next())if((I=I.value)&&I.externalVideoId){var q=PA(W,I.externalVideoId);q.instreamVideoAdRenderer||(q.instreamVideoAdRenderer=I,q.Pn=K)}else tq("InstreamVideoAdRenderer without externalVideoId")}}; zRc=function(W){var J=[],K=W.sandwichedLinearAdRenderer&&W.sandwichedLinearAdRenderer.linearAd&&g.m(W.sandwichedLinearAdRenderer.linearAd,C_);if(K)return J.push(K),J;if(W.instreamVideoAdRenderer)return J.push(W.instreamVideoAdRenderer),J;if(W.linearAdSequenceRenderer&&W.linearAdSequenceRenderer.linearAds){W=g.d(W.linearAdSequenceRenderer.linearAds);for(K=W.next();!K.done;K=W.next())K=K.value,g.m(K,C_)&&J.push(g.m(K,C_));return J}return null}; ruI=function(W){if(W.instreamVideoAdRenderer===void 0)return tq("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var J=g.d(W.Q3),K=J.next();!K.done;K=J.next()){K=K.value;if(K.Pr===void 0)return!1;if(K.Gm===void 0)return tq("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(W.Pn===void 0||K.yY===void 0||W.Pn!==K.yY&&K.yY!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(W.instreamVideoAdRenderer.elementId===void 0)return tq("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:W.Pn,"matching APSR kind":K.yY}),!1}return!0}; PA=function(W,J){W.has(J)||W.set(J,{instreamVideoAdRenderer:void 0,Pn:void 0,adVideoId:J,Q3:[]});return g.E(W.get(J))}; XF=function(W,J,K,I,q,S,p,n,A){q?PA(W,q).Q3.push({Vsu:J,yY:K,isContentVideoCompanion:I,Gm:p,associatedCompositePlayerBytesLayoutId:S,adSlotLoggingData:n,Pr:A}):tq("Companion AdPlacementSupportedRenderer without adVideoId")}; Wz=function(W){var J=0;W=g.d(W.questions);for(var K=W.next();!K.done;K=W.next())if(K=K.value,K=g.m(K,e5)||g.m(K,R9)){var I=void 0;J+=((I=K.surveyAdQuestionCommon)==null?void 0:I.durationMilliseconds)||0}return J}; Jl=function(W){var J,K,I,q,S=((K=g.m((J=W.questions)==null?void 0:J[0],e5))==null?void 0:K.surveyAdQuestionCommon)||((q=g.m((I=W.questions)==null?void 0:I[0],R9))==null?void 0:q.surveyAdQuestionCommon),p;J=[].concat(g.w(((p=W.playbackCommands)==null?void 0:p.instreamAdCompleteCommands)||[]),g.w((S==null?void 0:S.timeoutCommands)||[]));var n,A,D,f,h,t,F,a,y,U,Q,C,T,H,b,c,v,Kv,qI,WH;return{impressionCommands:(n=W.playbackCommands)==null?void 0:n.impressionCommands,errorCommands:(A=W.playbackCommands)== null?void 0:A.errorCommands,muteCommands:(D=W.playbackCommands)==null?void 0:D.muteCommands,unmuteCommands:(f=W.playbackCommands)==null?void 0:f.unmuteCommands,pauseCommands:(h=W.playbackCommands)==null?void 0:h.pauseCommands,rewindCommands:(t=W.playbackCommands)==null?void 0:t.rewindCommands,resumeCommands:(F=W.playbackCommands)==null?void 0:F.resumeCommands,skipCommands:(a=W.playbackCommands)==null?void 0:a.skipCommands,progressCommands:(y=W.playbackCommands)==null?void 0:y.progressCommands,Zgg:(U= W.playbackCommands)==null?void 0:U.clickthroughCommands,fullscreenCommands:(Q=W.playbackCommands)==null?void 0:Q.fullscreenCommands,activeViewViewableCommands:(C=W.playbackCommands)==null?void 0:C.activeViewViewableCommands,activeViewMeasurableCommands:(T=W.playbackCommands)==null?void 0:T.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(H=W.playbackCommands)==null?void 0:H.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(b=W.playbackCommands)== null?void 0:(c=b.activeViewTracking)==null?void 0:c.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(v=W.playbackCommands)==null?void 0:(Kv=v.activeViewTracking)==null?void 0:Kv.activeViewAudioMeasurableCommands,endFullscreenCommands:(qI=W.playbackCommands)==null?void 0:qI.endFullscreenCommands,abandonCommands:(WH=W.playbackCommands)==null?void 0:WH.abandonCommands,completeCommands:J}}; Yr0=function(W,J,K,I,q,S,p){return function(n,A){return v4D(W,A.slotId,n,S,function(D,f){var h=A.layoutId;D=p(D);return K8(J,h,f,q,D,"LAYOUT_TYPE_SURVEY",[new aJ(K),I],K.adLayoutLoggingData)})}}; Pc0=function(W,J,K,I,q,S,p){if(!sqQ(W))return new Y("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:W});var n=W.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[cuD(S,J,K,I,function(A){var D=A.slotId;A=p(A);D=Wj(q.K.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",D);var f={layoutId:D,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",ou:"core"},h=new eJ(q.W,I);return{layoutId:D,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",ET:new Map,layoutExitNormalTriggers:[h], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:"core",clientMetadata:new lm([new uC(n)]),OT:A(f)}})]}; sqQ=function(W){W=g.m(W==null?void 0:W.additionalPlayerOverlay,XNT);if(!W)return!1;var J=W.slidingMessages;return W.title&&J&&J.length!==0?!0:!1}; igv=function(W,J,K,I,q){var S;if((S=W.playerOverlay)==null||!S.instreamSurveyAdRenderer)return function(){return[]}; if(!QqQ(W))return function(){return new Y("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:W})}; var p=W.playerOverlay.instreamSurveyAdRenderer,n=Wz(p);return n<=0?function(){return new Y("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:p})}:function(A,D){var f=W2H(A,K,I,function(h){var t=h.slotId; h=D(h);var F=Jl(p);t=Wj(q.K.get(),"LAYOUT_TYPE_SURVEY",t);var a={layoutId:t,layoutType:"LAYOUT_TYPE_SURVEY",ou:"core"},y=new eJ(q.W,I),U=new sA(q.W,t),Q=new K_(q.W,t),C=new K5Q(q.W);return{layoutId:t,layoutType:"LAYOUT_TYPE_SURVEY",ET:new Map,layoutExitNormalTriggers:[y,C],layoutExitSkipTriggers:[U],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[Q],DH:[],ou:"core",clientMetadata:new lm([new Fs(p),new iC(J),new oJ(n/1E3),new vn(F)]),OT:h(a),adLayoutLoggingData:p.adLayoutLoggingData}}); A=Pc0(W,K,f.slotId,I,q,A,D);return A instanceof Y?A:[f].concat(g.w(A))}}; lMQ=function(W,J,K,I,q,S,p){p=p===void 0?!1:p;var n=[];try{var A=[];if(K.renderer.linearAdSequenceRenderer)var D=function(y){y=JH0(y.slotId,K,J,q(y),I,S,p);A=y.GGO;return y.yD}; else if(K.renderer.instreamVideoAdRenderer)D=function(y){var U=y.slotId;y=q(y);var Q=p,C=K.config.adPlacementConfig,T=K2Q(C),H=T.Nb,b=T.AL;T=K.renderer.instreamVideoAdRenderer;var c;if(T==null?0:(c=T.playerOverlay)==null?0:c.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var v=I8(T,Q);c=Math.min(H+v.videoLengthSeconds*1E3,b);Q=new $$(0,[v.videoLengthSeconds]);b=v.videoLengthSeconds;var Kv=v.playerVars,qI=v.instreamAdPlayerOverlayRenderer,WH=v.playerOverlayLayoutRenderer, nv=v.adVideoId,P=IMc(K),UH=v.ET;v=v.g1;var MI=T==null?void 0:T.adLayoutLoggingData;T=T==null?void 0:T.sodarExtensionData;U=Wj(J.K.get(),"LAYOUT_TYPE_MEDIA",U);var oy={layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA",ou:"core"};return{layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA",ET:UH,layoutExitNormalTriggers:[new R4(J.W)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:"core",clientMetadata:new lm([new pY(I),new gj(b),new Gn(Kv),new Op(H),new Tn(c),qI&&new lC(qI), WH&&new nY(WH),new iC(C),new S8(nv),new JU(Q),new RJ(P),T&&new xn(T),new Qv({current:null}),new Vv({}),new cn(v)].filter(quQ)),OT:y(oy),adLayoutLoggingData:MI}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var f=SuD(W,I,K.adSlotLoggingData,D);n.push(f);for(var h=g.d(A),t=h.next();!t.done;t=h.next()){var F=t.value,a=F(W,q);if(a instanceof Y)return a;n.push.apply(n,g.w(a))}}catch(y){return new Y(y,{errorMessage:y.message,AdPlacementRenderer:K,numberOfSurveyRenderers:p_0(K)})}return n}; p_0=function(W){W=(W.renderer.linearAdSequenceRenderer||{}).linearAds;return W!=null&&W.length?W.filter(function(J){var K,I;return((K=g.m(J,C_))==null?void 0:(I=K.playerOverlay)==null?void 0:I.instreamSurveyAdRenderer)!=null}).length:0}; JH0=function(W,J,K,I,q,S,p){var n=J.config.adPlacementConfig,A=K2Q(n),D=A.Nb,f=A.AL;A=(J.renderer.linearAdSequenceRenderer||{}).linearAds;if(A==null||!A.length)throw new TypeError("Expected linear ads");var h=[],t={iG:D,HC:0,Eay:h};A=A.map(function(a){return nsA(W,a,t,K,I,n,q,f,p)}).map(function(a,y){y=new $$(y,h); return a(y)}); var F=A.map(function(a){return a.pI}); return{yD:AHX(K,W,D,F,n,IMc(J),I,f,S),GGO:A.map(function(a){return a.ga3})}}; nsA=function(W,J,K,I,q,S,p,n,A){var D=I8(g.m(J,C_),A),f=K.iG,h=K.HC,t=Math.min(f+D.videoLengthSeconds*1E3,n);K.iG=t;K.HC++;K.Eay.push(D.videoLengthSeconds);var F,a,y=(F=g.m(J,C_))==null?void 0:(a=F.playerOverlay)==null?void 0:a.instreamSurveyAdRenderer;if(D.adVideoId==="nPpU29QrbiU"&&y==null)throw new TypeError("Survey slate media has no survey overlay");return function(U){sK(D.playerVars,U);var Q,C,T=D.videoLengthSeconds,H=D.playerVars,b=D.ET,c=D.g1,v=D.instreamAdPlayerOverlayRenderer,Kv=D.playerOverlayLayoutRenderer, qI=D.adVideoId,WH=(Q=g.m(J,C_))==null?void 0:Q.adLayoutLoggingData;Q=(C=g.m(J,C_))==null?void 0:C.sodarExtensionData;C=Wj(I.K.get(),"LAYOUT_TYPE_MEDIA",W);var nv={layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA",ou:"adapter"};U={layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA",ET:b,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:"adapter",clientMetadata:new lm([new pY(p),new gj(T),new Gn(H),new Op(f),new Tn(t),new Hn(h),new Qv({current:null}), v&&new lC(v),Kv&&new nY(Kv),new iC(S),new S8(qI),new JU(U),Q&&new xn(Q),y&&new sp(y),new Vv({}),new cn(c)].filter(quQ)),OT:q(nv),adLayoutLoggingData:WH};T=igv(g.m(J,C_),S,p,U.layoutId,I);return{pI:U,ga3:T}}}; I8=function(W,J){if(!W)throw new TypeError("Expected instream video ad renderer");if(!W.playerVars)throw new TypeError("Expected player vars in url encoded string");var K=Kz(W.playerVars),I=Number(K.length_seconds);if(isNaN(I))throw new TypeError("Expected valid length seconds in player vars");var q=Number(W.trimmedMaxNonSkippableAdDurationMs);I=isNaN(q)?I:Math.min(I,q/1E3);q=W.playerOverlay||{};q=q.instreamAdPlayerOverlayRenderer===void 0?null:q.instreamAdPlayerOverlayRenderer;var S=W.playerOverlay|| {};S=S.playerOverlayLayoutRenderer===void 0?null:S.playerOverlayLayoutRenderer;var p=K.video_id;p||(p=(p=W.externalVideoId)?p:void 0);if(!p)throw new TypeError("Expected valid video id in IVAR");if(J&&I===0){var n;J=(n=DNy[p])!=null?n:I}else J=I;return{playerVars:K,videoLengthSeconds:J,instreamAdPlayerOverlayRenderer:q,playerOverlayLayoutRenderer:S,adVideoId:p,ET:W.pings?GX(W.pings):new Map,g1:gF(W.pings)}}; IMc=function(W){W=Number(W.driftRecoveryMs);return isNaN(W)||W<=0?null:W}; K2Q=function(W){var J=W.adTimeOffset||{};W=J.offsetEndMilliseconds;J=Number(J.offsetStartMilliseconds);if(isNaN(J))throw new TypeError("Expected valid start offset");W=Number(W);if(isNaN(W))throw new TypeError("Expected valid end offset");return{Nb:J,AL:W}}; jfH=function(W){var J,K=(J=nQ(W.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current;if(!K)return null;J=nQ(W.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var I=W.layoutId,q=nQ(W.clientMetadata,"metadata_type_content_cpn"),S=nQ(W.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),p=nQ(W.clientMetadata,"metadata_type_player_underlay_renderer"),n=nQ(W.clientMetadata,"metadata_type_ad_placement_config"),A=nQ(W.clientMetadata,"metadata_type_video_length_seconds"); var D=IA(W.clientMetadata,"metadata_type_layout_enter_ms")&&IA(W.clientMetadata,"metadata_type_layout_exit_ms")?(nQ(W.clientMetadata,"metadata_type_layout_exit_ms")-nQ(W.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{gJ:I,contentCpn:q,uo:K,Tm:J,instreamAdPlayerOverlayRenderer:S,instreamAdPlayerUnderlayRenderer:p,adPlacementConfig:n,videoLengthSeconds:A,X_:D,inPlayerLayoutId:nQ(W.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:nQ(W.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; tcT=function(W,J,K,I,q,S,p,n,A,D,f,h,t,F,a){I=NJ(I,"SLOT_TYPE_PLAYER_BYTES");W=fMy(q,W,p,K,I,A,D);if(W instanceof Y)return W;var y;D=(y=nQ(W.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:y.layoutId;if(!D)return new Y("Invalid adNotify layout");J=hfy(D,q,S,K,n,J,A,f,h,t,F,a,p);return J instanceof Y?J:[W].concat(g.w(J))}; hfy=function(W,J,K,I,q,S,p,n,A,D,f,h,t){K=F2H(J,K,I,S,p,n,A,D,f,h,t);if(K instanceof Y)return K;W=aMQ(J,W,p,q,K);return W instanceof Y?W:[].concat(g.w(W.iN),[W.We])}; N7X=function(W,J,K,I,q,S,p,n,A,D,f,h,t,F){J=F2H(W,J,K,q,S,n,A,D,f,h,t,F);if(J instanceof Y)return J;W=u7v(W,K,S,p,I,n.dl,J);return W instanceof Y?W:W.iN.concat(W.We)}; F2H=function(W,J,K,I,q,S,p,n,A,D,f,h){var t=qn(I,K,D);return t instanceof pQ?new Y(t):D.X.J().experiments.HS("html5_refactor_in_player_slot_generation")?function(F){var a=new $$(0,[t.De]);F=dNL(J,t.layoutId,t.x7,K,Sd(t.playerVars,t.Lj,S,A,a),t.De,q,a,p(F),n.get(t.x7.externalVideoId),h);a=[];if(t.x7.playerOverlay.instreamAdPlayerOverlayRenderer){var y=jfH(F);if(!y)return tq("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,F),{layout:F,iN:[]}; a=[yH0(W,y.contentCpn,y.gJ,function(Q){return p8(J,Q.slotId,"core",y,tA(f,Q))},y.inPlayerSlotId)].concat(g.w(a)); if(y.instreamAdPlayerUnderlayRenderer&&lf(D)){var U=y.instreamAdPlayerUnderlayRenderer;a=[UNL(W,y.contentCpn,y.gJ,function(Q){return ZgQ(J,Q.slotId,U,y.adPlacementConfig,y.gJ,tA(f,Q))})].concat(g.w(a))}}return{layout:F, iN:a}}:function(F){var a=new $$(0,[t.De]); return{layout:dNL(J,t.layoutId,t.x7,K,Sd(t.playerVars,t.Lj,S,A,a),t.De,q,a,p(F),n.get(t.x7.externalVideoId),h),iN:[]}}}; qn=function(W,J,K){if(!W.playerVars)return new pQ("No playerVars available in InstreamVideoAdRenderer.");var I,q;if(W.elementId==null||W.playerVars==null||W.playerOverlay==null||((I=W.playerOverlay)==null?void 0:I.instreamAdPlayerOverlayRenderer)==null&&((q=W.playerOverlay)==null?void 0:q.playerOverlayLayoutRenderer)==null||W.pings==null||W.externalVideoId==null)return new pQ("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:W});I=Kz(W.playerVars);q=Number(I.length_seconds); isNaN(q)&&(q=0,tq("Expected valid length seconds in player vars but got NaN"));if(K.Vw(J.kind==="AD_PLACEMENT_KIND_START")){if(W.layoutId===void 0)return new pQ("Expected server generated layout ID in instreamVideoAdRenderer");J=W.layoutId}else J=W.elementId;return{layoutId:J,x7:W,playerVars:I,Lj:W.playerVars,De:q}}; Sd=function(W,J,K,I,q){W.iv_load_policy=I;J=Kz(J);if(J.cta_conversion_urls)try{W.cta_conversion_urls=JSON.parse(J.cta_conversion_urls)}catch(S){tq(S)}K.Cw&&(W.ctrl=K.Cw);K.yT&&(W.ytr=K.yT);K.Nx&&(W.ytrcc=K.Nx);K.isMdxPlayback&&(W.mdx="1");W.vvt&&(W.vss_credentials_token=W.vvt,K.L_&&(W.vss_credentials_token_type=K.L_),K.mdxEnvironment&&(W.mdx_environment=K.mdxEnvironment));sK(W,q);return W}; Qfy=function(W){var J=new Map;W=g.d(W);for(var K=W.next();!K.done;K=W.next())(K=K.value.renderer.remoteSlotsRenderer)&&K.hostElementId&&J.set(K.hostElementId,K);return J}; n8=function(W){return W.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; CZL=function(W){return W!=null}; Ogc=function(W,J,K,I,q,S,p,n,A,D,f,h,t,F){for(var a=[],y=g.d(W),U=y.next();!U.done;U=y.next())if(U=U.value,!F5T(U)&&!yuT(U)){var Q=n8(U)&&!!U.slotEntryTrigger.beforeContentVideoIdStartedTrigger,C=A.Vw(Q),T=w_Q(U,D,I,K.yX,C);if(T instanceof Y)return T;var H=void 0,b={slotId:U.adSlotMetadata.slotId,slotType:U.adSlotMetadata.slotType,slotPhysicalPosition:(H=U.adSlotMetadata.slotPhysicalPosition)!=null?H:1,ou:"core",slotEntryTrigger:T.slotEntryTrigger,slotFulfillmentTriggers:T.slotFulfillmentTriggers, slotExpirationTriggers:T.slotExpirationTriggers},c=g.m(U.fulfillmentContent.fulfilledLayout,$t);if(c){if(!GU(c))return new Y("Invalid PlayerBytesAdLayoutRenderer");H=h&&!(n8(U)&&U.slotEntryTrigger.beforeContentVideoIdStartedTrigger);T=T.slotFulfillmentTriggers.some(function(v){return v instanceof bn}); C=H?Mcy(b,U.adSlotMetadata.triggerEvent,c,K,I,S,D,W,C,t,T,F):gsX(b,U.adSlotMetadata.triggerEvent,c,J,K,I,q,S,p,n,A,D,W,f,C,U.adSlotMetadata.triggeringSourceLayoutId);if(C instanceof Y)return C;T=[];n8(U)&&T.push(new JA({KG:n8(U)&&!!U.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));H&&T.push(new Vv({}));K.dl&&T.push(new Yn({}));T.push(new Wp(Q));U=Object.assign({},b,{clientMetadata:new lm(T),fulfilledLayout:C.layout,adSlotLoggingData:U.adSlotMetadata.adSlotLoggingData});a.push.apply(a,g.w(C.iN)); a.push(U)}else if(Q=g.m(U.fulfillmentContent.fulfilledLayout,VE)){if(!t9L(Q))return new Y("Invalid PlayerUnderlayAdLayoutRenderer");Q=G6c(Q,I,K.yX,S,b,U.adSlotMetadata.triggerEvent,U.adSlotMetadata.triggeringSourceLayoutId);if(Q instanceof Y)return Q;U=Object.assign({},b,{clientMetadata:new lm([]),fulfilledLayout:Q,adSlotLoggingData:U.adSlotMetadata.adSlotLoggingData});a.push(U)}else if(Q=g.m(U.fulfillmentContent.fulfilledLayout,uOc)){if(!pNv(Q))return new Y("Invalid AboveFeedAdLayoutRenderer");Q= $NQ(Q,I,K.yX,S,b,U.adSlotMetadata.triggerEvent,U.adSlotMetadata.triggeringSourceLayoutId);if(Q instanceof Y)return Q;U=Object.assign({},b,{clientMetadata:new lm([]),fulfilledLayout:Q,adSlotLoggingData:U.adSlotMetadata.adSlotLoggingData});a.push(U)}else if(Q=g.m(U.fulfillmentContent.fulfilledLayout,NHy)){if(!S5(Q.adLayoutMetadata)||!g.m(Q.renderingContent,p_))return new Y("Invalid BelowPlayerAdLayoutRenderer");Q=$NQ(Q,I,K.yX,S,b,U.adSlotMetadata.triggerEvent,U.adSlotMetadata.triggeringSourceLayoutId); if(Q instanceof Y)return Q;U=Object.assign({},b,{clientMetadata:new lm([]),fulfilledLayout:Q,adSlotLoggingData:U.adSlotMetadata.adSlotLoggingData});a.push(U)}else if(Q=g.m(U.fulfillmentContent.fulfilledLayout,EK)){if(!OK(Q))return new Y("Invalid PlayerBytesSequenceItemAdLayoutRenderer");Q=xNv(Q,I,K.yX,S,b,U.adSlotMetadata.triggerEvent);if(Q instanceof Y)return Q;U=Object.assign({},b,{clientMetadata:new lm([]),fulfilledLayout:Q,adSlotLoggingData:U.adSlotMetadata.adSlotLoggingData});a.push(U)}else return new Y("Unable to retrieve a client slot ["+ b.slotType+"] from a given AdSlotRenderer")}return a}; xNv=function(W,J,K,I,q,S){var p={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,ou:"core"};J=Al(W,J,K);return J instanceof Y?J:(K=g.m(W.renderingContent,xt))&&K.pings?Object.assign({},p,{renderingContent:W.renderingContent,ET:GX(K.pings)},J,{OT:tA(I,q)(p),clientMetadata:new lm([new iC(Dg(S))]),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData}):new Y("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; $NQ=function(W,J,K,I,q,S,p){var n={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,ou:"core"};J=Al(W,J,K);if(J instanceof Y)return J;K=[];K.push(new iC(Dg(S)));S==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&p!==void 0&&K.push(new Nm(p));return Object.assign({},n,{renderingContent:W.renderingContent,ET:new Map([["impression",T7A(W)]])},J,{OT:tA(I,q)(n),clientMetadata:new lm(K),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData})}; G6c=function(W,J,K,I,q,S,p){if(W.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(p=g.m(W.renderingContent,TU))if(p=g.m(p.sidePanel,fBQ)){var n={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,ou:"core"};J=Al(W,J,K);W=J instanceof Y?J:Object.assign({},n,{renderingContent:W.renderingContent,ET:new Map([["impression",p.impressionPings||[]],["resume",p.resumePings||[]]])},J,{OT:tA(I,q)(n),clientMetadata:new lm([new iC(Dg(S))]),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData})}else W= new Y("DismissablePanelTextPortraitImageRenderer is missing");else W=new Y("SqueezebackPlayerSidePanelRenderer is missing");else W.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.m(W.renderingContent,AuX)?(p={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,ou:"core"},J=Al(W,J,K),W=J instanceof Y?J:Object.assign({},p,{renderingContent:W.renderingContent,ET:new Map},J,{OT:tA(I,q)(p),clientMetadata:new lm([new iC(Dg(S))]),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData})): W=new Y("CounterfactualRenderer is missing"):W.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?W=new Y("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):W.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?W=new Y("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):W.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.m(W.renderingContent,HA)?(S={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType, ou:"core"},J=Al(W,J,K),W=J instanceof Y?J:p?Object.assign({},S,{renderingContent:W.renderingContent,ET:new Map},J,{OT:tA(I,q)(S),clientMetadata:new lm([new Nm(p)]),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData}):new Y("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):W=new Y("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):W.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.m(W.renderingContent,DM0)? (S={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,ou:"core"},J=Al(W,J,K),W=J instanceof Y?J:Object.assign({},S,{renderingContent:W.renderingContent,ET:new Map([])},J,{OT:tA(I,q)(S),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new lm([])})):W=new Y("AdsEngagementPanelSectionListViewModel is missing"):W=new Y("LayoutType ["+W.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return W}; Mcy=function(W,J,K,I,q,S,p,n,A,D,f,h){if((h==null?void 0:h.w0)===void 0||(h==null?void 0:h.hA)===void 0)return new Y("Cached ad break range from cue point is missing");var t=Al(K,q,I.yX);if(t instanceof Y)return t;t={layoutExitMuteTriggers:[],layoutExitNormalTriggers:t.layoutExitNormalTriggers,layoutExitSkipTriggers:[],DH:[],layoutExitUserInputSubmittedTriggers:[]};if(g.m(K.renderingContent,C_))return W=HgH(W,J,K,t,q,S,n,A,I.yX,p,h.w0,h.hA),W instanceof Y?W:W.mH===void 0?new Y("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:W.layout,iN:[W.mH]};var F=g.m(K.renderingContent,FF);if(F){if(!S5(K.adLayoutMetadata))return new Y("Invalid ad layout metadata");if(!a9(F))return new Y("Invalid sequential layout");F=F.sequentialLayouts.map(function(a){return a.playerBytesAdLayoutRenderer}); W=Vcy(W,J,K,t,F,q,I,S,p,A,n,D,h.w0,h.hA,f);return W instanceof Y?W:{layout:W.qp,iN:W.iN}}return new Y("Not able to convert a sequential layout")}; Vcy=function(W,J,K,I,q,S,p,n,A,D,f,h,t,F,a){var y=EsH(q,t,F);if(y instanceof Y)return y;var U=[],Q=[];y=g.d(y);for(var C=y.next();!C.done;C=y.next()){var T=C.value;C=W;var H=q[T.HC],b=T,c=J;T=S;var v=p,Kv=n,qI=A,WH=D,nv=f,P=jd(H);if(P instanceof Y)C=P;else{var UH={layoutId:H.adLayoutMetadata.layoutId,layoutType:H.adLayoutMetadata.layoutType,ou:"adapter"};b=efT(c,H,b,T);b instanceof Y?C=b:(C=Object.assign({},UH,f8,{ET:P,renderingContent:H.renderingContent,clientMetadata:new lm(b),OT:tA(Kv,C)(UH),adLayoutLoggingData:H.adLayoutMetadata.adLayoutLoggingData}), C=(H=hl(nv,C,T,v.yX,Kv,qI,WH,void 0,!0))?H instanceof Y?H:{layout:C,mH:H}:new Y("Expecting associatedInPlayerSlot"))}if(C instanceof Y)return C;U.push(C.layout);Q.push(C.mH)}q={layoutId:K.adLayoutMetadata.layoutId,layoutType:K.adLayoutMetadata.layoutType,ou:"core"};J=[new RJ(Number(K.driftRecoveryMs)),new Op(t),new Tn(F),new iC(Dg(J)),new Xs(h),new Vv({})];a&&J.push(new KQ({}));return{qp:Object.assign({},q,I,{F1:U,ET:new Map,clientMetadata:new lm(J),OT:tA(n,W)(q)}),iN:Q}}; HgH=function(W,J,K,I,q,S,p,n,A,D,f,h){if(!GU(K))return new Y("Invalid PlayerBytesAdLayoutRenderer");var t=jd(K);if(t instanceof Y)return t;var F={layoutId:K.adLayoutMetadata.layoutId,layoutType:K.adLayoutMetadata.layoutType,ou:"core"},a=g.m(K.renderingContent,C_);if(!a)return new Y("Invalid rendering content for DAI media layout");a=I8(a,!1);f={vx:a,HC:0,iG:f,Go:Math.min(f+a.videoLengthSeconds*1E3,h),wH:new $$(0,[a.videoLengthSeconds])};var y;h=(y=Number(K.driftRecoveryMs))!=null?y:void 0;J=efT(J, K,f,q,h);if(J instanceof Y)return J;W=Object.assign({},F,I,{ET:t,renderingContent:K.renderingContent,clientMetadata:new lm(J),OT:tA(S,W)(F),adLayoutLoggingData:K.adLayoutMetadata.adLayoutLoggingData});return(q=hl(p,W,q,A,S,D,n,void 0,!0))?q instanceof Y?q:{layout:W,mH:q}:new Y("Expecting associatedInPlayerSlot")}; gsX=function(W,J,K,I,q,S,p,n,A,D,f,h,t,F,a,y){var U=Al(K,S,q.yX);if(U instanceof Y)return U;if(g.m(K.renderingContent,C_)){A=Rfy([K],q,A);if(A instanceof Y)return A;if(A.length!==1)return new Y("Only expected one media layout.");W=bgI(W,J,K,U,A[0],void 0,"core",I,S,p,n,D,t,F,a,q.yX,h,void 0,y);return W instanceof Y?W:{layout:W.layout,iN:W.mH?[W.mH]:[]}}var Q=g.m(K.renderingContent,FF);if(Q){if(!S5(K.adLayoutMetadata))return new Y("Invalid ad layout metadata");if(!a9(Q))return new Y("Invalid sequential layout"); Q=Q.sequentialLayouts.map(function(C){return C.playerBytesAdLayoutRenderer}); W=B7A(W,J,K.adLayoutMetadata,U,Q,I,S,q,A,p,n,D,f,h,a,t,F,y);return W instanceof Y?W:{layout:W.qp,iN:W.iN}}return new Y("Not able to convert a sequential layout")}; B7A=function(W,J,K,I,q,S,p,n,A,D,f,h,t,F,a,y,U,Q){var C=new qm({current:null}),T=Rfy(q,n,A);if(T instanceof Y)return T;A=[];for(var H=[],b=void 0,c=0;c0&&(c.push(Q),c.push(new IJ(b.adPodSkipTarget)));(S=D.get(b.externalVideoId))&&c.push(new rj(S));S=c}else S=new Y("Invalid vod media renderer")}if(S instanceof Y)return S;W=Object.assign({},p,I,{ET:T,renderingContent:K.renderingContent,clientMetadata:new lm(S),OT:tA(f,W)(p),adLayoutLoggingData:K.adLayoutMetadata.adLayoutLoggingData});K=g.m(K.renderingContent,C_);if(!K||!tP(K))return new Y("Invalid meida renderer");h=PA(h,K.externalVideoId);h.instreamVideoAdRenderer=K;h.Pn="AD_PLACEMENT_KIND_START";return F?(A=hl(t,W,A,y,f,U,a,Q,!1),A instanceof Y?A:osT(W.layoutId,t)&&A?{layout:Object.assign({},W,{clientMetadata:new lm(S.concat(new j8(A)))})}:{layout:W,mH:A}): {layout:W}}; mN0=function(W,J,K,I,q){if(!GU(J))return new Y("Invalid PlayerBytesAdLayoutRenderer");var S=g.m(J.renderingContent,jp);if(!S||S.durationMilliseconds===void 0)return new Y("Invalid endcap renderer");var p={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,ou:"adapter"};I=[new LY(S.durationMilliseconds),new vn({impressionCommands:void 0,abandonCommands:S.abandonCommands?[{commandExecutorCommand:S.abandonCommands}]:void 0,completeCommands:S.completionCommands}),new iC(I), new yv("LAYOUT_TYPE_ENDCAP")];if(q){I.push(new KY(q.wH.adPodIndex-1));I.push(new Hn(q.wH.adPodIndex));var n;I.push(new IJ((n=q.adPodSkipTarget)!=null?n:-1))}return Object.assign({},p,f8,{renderingContent:J.renderingContent,clientMetadata:new lm(I),ET:S.skipPings?new Map([["skip",S.skipPings]]):new Map,OT:tA(K,W)(p),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})}; hl=function(W,J,K,I,q,S,p,n,A){W=W.filter(function(f){return f.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&f.adSlotMetadata.triggeringSourceLayoutId===J.layoutId}); if(W.length!==0){if(W.length!==1)return new Y("Invalid InPlayer slot association for the given PlayerBytes layout");W=W[0];p=w_Q(W,S,K,I,p);if(p instanceof Y)return p;var D;S={slotId:W.adSlotMetadata.slotId,slotType:W.adSlotMetadata.slotType,slotPhysicalPosition:(D=W.adSlotMetadata.slotPhysicalPosition)!=null?D:1,ou:"core",slotEntryTrigger:p.slotEntryTrigger,slotFulfillmentTriggers:p.slotFulfillmentTriggers,slotExpirationTriggers:p.slotExpirationTriggers};D=g.m(W.fulfillmentContent.fulfilledLayout, aBX);if(!D||!n4v(D))return new Y("Invalid InPlayerAdLayoutRenderer");p={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,ou:"core"};K=Al(D,K,I);if(K instanceof Y)return K;I=[];A&&I.push(new Vv({}));if(D.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")I.push.apply(I,g.w(L2Q(W.adSlotMetadata.triggerEvent,J)));else if(D.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")I.push(new iC(Dg(W.adSlotMetadata.triggerEvent))),n&&I.push(n);else return new Y("Not able to parse an SDF InPlayer layout"); q=Object.assign({},p,K,{renderingContent:D.renderingContent,ET:new Map,OT:tA(q,S)(p),clientMetadata:new lm(I),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},S,{fulfilledLayout:q,clientMetadata:new lm([])})}}; L2Q=function(W,J){var K=[];K.push(new iC(Dg(W)));K.push(new Nm(J.layoutId));(W=nQ(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&K.push(new Qv(W));(W=nQ(J.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&K.push(new qm(W));(W=nQ(J.clientMetadata,"metadata_type_remote_slots_data"))&&K.push(new rj(W));(W=nQ(J.clientMetadata,"metadata_type_ad_next_params"))&&K.push(new ks(W));(W=nQ(J.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&K.push(new z6(W));(W= nQ(J.clientMetadata,"metadata_type_ad_pod_info"))&&K.push(new JU(W));(J=nQ(J.clientMetadata,"metadata_type_ad_video_id"))&&K.push(new S8(J));return K}; rHT=function(W,J,K,I,q,S){function p(D){return tl(J,D)} var n=I.OU.inPlayerSlotId,A={layoutId:I.OU.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",ou:"core"};K={slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ou:"core",slotEntryTrigger:new VX(p,W),slotFulfillmentTriggers:[new cT(p,n)],slotExpirationTriggers:[new PT(p,n),new vT(p,K)]};W=Object.assign({},A,{layoutExitNormalTriggers:[new eJ(p,W)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ET:new Map,clientMetadata:new lm([new hU(I.OU), new iC(I.adPlacementConfig),q]),OT:tA(S,K)(A),adLayoutLoggingData:I.OU.adLayoutLoggingData});return Object.assign({},K,{clientMetadata:new lm([new bC(W)])})}; osT=function(W,J){J=g.d(J);for(var K=J.next();!K.done;K=J.next())if(K=K.value,K.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var I=g.m(K.fulfillmentContent.fulfilledLayout,VE);if(I&&(I=g.m(I.renderingContent,TU))&&I.associatedPlayerBytesLayoutId===W)return K}}; w_Q=function(W,J,K,I,q){var S=k6H(Yt(W.slotEntryTrigger,K,I),q,W,J);if(S instanceof Y)return S;for(var p=[],n=g.d(W.slotFulfillmentTriggers),A=n.next();!A.done;A=n.next()){A=Yt(A.value,K,I);if(A instanceof Y)return A;p.push(A)}p=zfT(p,q,W,J);J=[];W=g.d(W.slotExpirationTriggers);for(q=W.next();!q.done;q=W.next()){q=Yt(q.value,K,I);if(q instanceof Y)return q;J.push(q)}return{slotEntryTrigger:S,slotFulfillmentTriggers:p,slotExpirationTriggers:J}}; k6H=function(W,J,K,I){return J&&K.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&W instanceof x$?new GS(function(q){return tl(I,q)},K.adSlotMetadata.slotId):W}; zfT=function(W,J,K,I){return J&&K.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?W.map(function(q){return q instanceof cT?new io(function(S){return tl(I,S)},K.adSlotMetadata.slotId):q}):W}; Al=function(W,J,K){for(var I=[],q=g.d(W.layoutExitNormalTriggers||[]),S=q.next();!S.done;S=q.next()){S=Yt(S.value,J,K);if(S instanceof Y)return S;I.push(S)}q=[];S=g.d(W.layoutExitSkipTriggers||[]);for(var p=S.next();!p.done;p=S.next()){p=Yt(p.value,J,K);if(p instanceof Y)return p;q.push(p)}S=[];p=g.d(W.layoutExitMuteTriggers||[]);for(var n=p.next();!n.done;n=p.next()){n=Yt(n.value,J,K);if(n instanceof Y)return n;S.push(n)}p=[];W=g.d(W.layoutExitUserInputSubmittedTriggers||[]);for(n=W.next();!n.done;n= W.next()){n=Yt(n.value,J,K);if(n instanceof Y)return n;p.push(n)}return{layoutExitNormalTriggers:I,layoutExitSkipTriggers:q,layoutExitMuteTriggers:S,layoutExitUserInputSubmittedTriggers:p,DH:[]}}; jd=function(W){var J=g.m(W.renderingContent,C_);if(J==null?0:J.pings)return GX(J.pings);W=g.m(W.renderingContent,jp);return(W==null?0:W.skipPings)?new Map([["skip",W.skipPings]]):new Map}; efT=function(W,J,K,I,q){J=g.m(J.renderingContent,C_);if(!J)return new Y("Invalid rendering content for DAI media layout");W=[new pY(I),new gj(K.vx.videoLengthSeconds),new Gn(K.vx.playerVars),new Op(K.iG),new Tn(K.Go),new Hn(K.HC),new iC(Dg(W)),new S8(K.vx.adVideoId),new JU(K.wH),J.sodarExtensionData&&new xn(J.sodarExtensionData),new Qv({current:null}),new Vv({}),new cn(gF(J.pings))].filter(CZL);q!==void 0&&W.push(new RJ(q));return W}; EsH=function(W,J,K){W=W.map(function(A){return I8(g.m(A.renderingContent,C_),!1)}); var I=W.map(function(A){return A.videoLengthSeconds}),q=I.map(function(A,D){return new $$(D,I)}),S=J,p=K,n=[]; W.forEach(function(A,D){p=Math.min(S+A.videoLengthSeconds*1E3,K);sK(A.playerVars,q[D]);n.push({vx:A,iG:S,Go:p,HC:D,wH:q[D]});S=p}); return n}; Rfy=function(W,J,K){for(var I=[],q=g.d(W),S=q.next();!S.done;S=q.next())if(S=g.m(S.value.renderingContent,C_)){if(!tP(S))return new Y("Invalid vod media renderer");I.push(vsQ(S))}q=I.map(function(h){return h.De}); S=[];for(var p=0,n=0;n0?WH:-1;else if(UH=g.m(P,jp)){P=qpy(W,J,K, UH,S,y,n,v,WH);if(P instanceof Y){F=P;break a}P=P(t);U.push(P.YA);Q=[].concat(g.w(P.TD),g.w(Q));C=[].concat(g.w(P.KA),g.w(C));P.mH&&(qI=[P.mH].concat(g.w(qI)))}else if(UH=g.m(P,MB)){if(F===void 0){F=new Y("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:UH});break a}P=lST(W,J,K,S,UH,c,n,F,y,XV(f,"supports_multi_step_on_desktop"));if(P instanceof Y){F=P;break a}P=P(t);U.push(P.YA);P.mH&&qI.push(P.mH);Q=[].concat(g.w(P.TD),g.w(Q));C=[].concat(g.w(P.KA), g.w(C));T=[].concat(g.w(P.D9),g.w(T));H=[].concat(g.w(P.hx),g.w(H));b=[c].concat(g.w(b))}else if(P=g.m(P,gD)){P=nny(W,J,K,S,P,c,n,y);if(P instanceof Y){F=P;break a}P=P(t);U.push(P.YA);P.mH&&qI.push(P.mH);C=[].concat(g.w(P.KA),g.w(C))}else{F=new Y("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}F={F1:U,layoutExitSkipTriggers:Q,layoutExitUserInputSubmittedTriggers:T,DH:H,layoutExitMuteTriggers:C,Ba:b,iN:qI}}}else a:if(y=aSQ(I,K,f),y instanceof Y)F=y;else{U=0;Q=[];C=[];T=[];H=[];b= [];c=[];v=new CY({current:null});Kv=new qm({current:null});qI=!1;nv=[];WH=-1;a=g.d(I);for(P=a.next();!P.done;P=a.next())if(P=P.value,g.m(P,wD)){P=SpQ(J,K,g.m(P,wD),n);if(P instanceof Y){F=P;break a}P=P(t);Q.push(P.YA);C=[].concat(g.w(P.TD),g.w(C));T=[].concat(g.w(P.KA),g.w(T));P.mH&&(nv=[P.mH].concat(g.w(nv)))}else if(g.m(P,C_)){WH=qn(g.m(P,C_),K,f);if(WH instanceof pQ){F=new Y(WH);break a}P=new $$(U,y);P=usX(J,WH.layoutId,WH.x7,K,Sd(WH.playerVars,WH.Lj,p,D,P),WH.De,S,P,n(t),Kv,A.get(WH.x7.externalVideoId), void 0,h);U++;Q.push(P.YA);C=[].concat(g.w(P.TD),g.w(C));T=[].concat(g.w(P.KA),g.w(T));qI||(c.push(Kv),qI=!0);WH=(WH=WH.x7.adPodSkipTarget)&&WH>0?WH:-1}else if(g.m(P,jp)){P=qpy(W,J,K,g.m(P,jp),S,U,n,Kv,WH);if(P instanceof Y){F=P;break a}P=P(t);Q.push(P.YA);C=[].concat(g.w(P.TD),g.w(C));T=[].concat(g.w(P.KA),g.w(T));P.mH&&(nv=[P.mH].concat(g.w(nv)))}else if(g.m(P,MB)){if(F===void 0){F=new Y("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.m(P, MB)});break a}P=lST(W,J,K,S,g.m(P,MB),v,n,F,U,XV(f,"supports_multi_step_on_desktop"));if(P instanceof Y){F=P;break a}P=P(t);Q.push(P.YA);P.mH&&nv.push(P.mH);C=[].concat(g.w(P.TD),g.w(C));T=[].concat(g.w(P.KA),g.w(T));H=[].concat(g.w(P.D9),g.w(H));b=[].concat(g.w(P.hx),g.w(b));c=[v].concat(g.w(c))}else if(g.m(P,gD)){P=nny(W,J,K,S,g.m(P,gD),v,n,U);if(P instanceof Y){F=P;break a}P=P(t);Q.push(P.YA);P.mH&&nv.push(P.mH);T=[].concat(g.w(P.KA),g.w(T))}else{F=new Y("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}F={F1:Q,layoutExitSkipTriggers:C,layoutExitUserInputSubmittedTriggers:H,DH:b,layoutExitMuteTriggers:T,Ba:c,iN:nv}}F instanceof Y?t=F:(b=t.slotId,y=F.F1,U=F.layoutExitSkipTriggers,Q=F.layoutExitMuteTriggers,C=F.layoutExitUserInputSubmittedTriggers,T=F.Ba,t=n(t),H=q?q.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b=q?q.layoutId:Wj(J.K.get(),H,b),c={layoutId:b,layoutType:H,ou:"core"},t={layout:{layoutId:b,layoutType:H,ET:new Map,layoutExitNormalTriggers:[new zS(J.W,b)],layoutExitSkipTriggers:U, layoutExitMuteTriggers:Q,layoutExitUserInputSubmittedTriggers:C,DH:[],ou:"core",clientMetadata:new lm([new wj(y)].concat(g.w(T))),OT:t(c)},iN:F.iN});return t}}; aSQ=function(W,J,K){var I=[];W=g.d(W);for(var q=W.next();!q.done;q=W.next())if(q=q.value,g.m(q,C_)){q=qn(g.m(q,C_),J,K);if(q instanceof pQ)return new Y(q);I.push(q.De)}return I}; dmL=function(W,J,K,I,q,S,p,n){if(!Z2H(K,n===void 0?!1:n))return new Y("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:K});var A=Wz(K);if(A<=0)return new Y("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:K});var D=new CY({current:null}),f=Yr0(W,J,K,D,I,S,p);return Njv(W,I,S,A,q,function(h,t){var F=h.slotId,a=Jl(K);h=p(h);var y,U=(y=Nn(J,I,K.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?y: Wj(J.K.get(),"LAYOUT_TYPE_MEDIA_BREAK",F);F={layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ou:"core"};y=f(U,t);var Q=nQ(y.clientMetadata,"metadata_type_fulfilled_layout");Q||tq("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");a=[new iC(I),new LY(A),new vn(a),D];Q&&a.push(new yv(Q.layoutType));return{zg3:{layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ET:new Map,layoutExitNormalTriggers:[new zS(J.W,U)],layoutExitSkipTriggers:[new sA(J.W, t.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new K_(J.W,t.layoutId)],DH:[],ou:"core",clientMetadata:new lm(a),OT:h(F)},uWw:y}})}; yUA=function(W){if(!wNc(W))return!1;var J=g.m(W.adVideoStart,Q1);return J?g.m(W.linearAd,C_)&&f_(J)?!0:(tq("Invalid Sandwich with notify"),!1):!1}; UmD=function(W){if(W.linearAds==null)return!1;W=g.m(W.adStart,Q1);return W?f_(W)?!0:(tq("Invalid LASR with notify"),!1):!1}; ZYy=function(W){if(!CcL(W))return!1;W=g.m(W.adStart,Q1);return W?f_(W)?!0:(tq("Invalid LASR with notify"),!1):!1}; C8=function(W,J,K,I,q,S,p,n,A,D){this.T=W;this.K=J;this.W=K;this.gw=I;this.f7=q;this.G=S;this.cS=p;this.gC=n;this.F0=A;this.loadPolicy=D===void 0?1:D}; zU=function(W,J,K,I,q,S,p,n,A,D){var f=[];if(J.length===0&&I.length===0&&K.length===0)return f;J=J.filter(hP);var h=K.filter(dMv),t=I.filter(hP),F=new Map,a=Qfy(J),y=K.some(function(MI){var oy;return(MI==null?void 0:(oy=MI.adSlotMetadata)==null?void 0:oy.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),U=K.some(function(MI){var oy; return(MI==null?void 0:(oy=MI.adSlotMetadata)==null?void 0:oy.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),Q=K.some(function(MI){var oy; return(MI==null?void 0:(oy=MI.adSlotMetadata)==null?void 0:oy.slotType)==="SLOT_TYPE_IN_PLAYER"}),C=K.some(function(MI){var oy,Cx; return(MI==null?void 0:(oy=MI.adSlotMetadata)==null?void 0:oy.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(MI==null?void 0:(Cx=MI.adSlotMetadata)==null?void 0:Cx.slotType)==="SLOT_TYPE_ABOVE_FEED"}); K=K.some(function(MI){var oy;return(MI==null?void 0:(oy=MI.adSlotMetadata)==null?void 0:oy.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(y||U||Q||C||K)D=Ogc(h,J,n,q,a,W.f7.get(),W.loadPolicy,F,W.gw.get(),W.T.get(),Q,p,A,D),D instanceof Y?tq(D,void 0,void 0,{contentCpn:q}):f.push.apply(f,g.w(D));D=g.d(J);for(K=D.next();!K.done;K=D.next())K=K.value,U=QJH(W,F,K,q,S,p,y,n,a,A,h),U instanceof Y?tq(U,void 0,void 0,{renderer:K.renderer,config:K.config.adPlacementConfig,kind:K.config.adPlacementConfig.kind,contentCpn:q,daiEnabled:p}):f.push.apply(f,g.w(U));CCQ(W.gw.get())||(S=wnc(W,t,q,n,a,F),f.push.apply(f,g.w(S)));if(W.G===null||p&&!n.jN){var T, H,b;W=n.dl&&J.length===1&&((T=J[0].config)==null?void 0:(H=T.adPlacementConfig)==null?void 0:H.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((b=J[0].renderer)==null?void 0:b.adBreakServiceRenderer);if(!f.length&&!W){var c,v,Kv,qI;tq("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":J.length,contentCpn:q,"first APR kind":(c=J[0])==null?void 0:(v=c.config)==null?void 0:(Kv=v.adPlacementConfig)==null?void 0:Kv.kind,renderer:(qI=J[0])==null?void 0: qI.renderer})}return f}T=I.filter(hP);f.push.apply(f,g.w(kOI(F,T,W.K.get(),W.G,q,y)));if(!f.length){var WH,nv,P,UH;tq("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":J.length,contentCpn:q,daiEnabled:p.toString(),"first APR kind":(WH=J[0])==null?void 0:(nv=WH.config)==null?void 0:(P=nv.adPlacementConfig)==null?void 0:P.kind,renderer:(UH=J[0])==null?void 0:UH.renderer})}return f}; wnc=function(W,J,K,I,q,S){function p(t){return tA(W.f7.get(),t)} var n=[];J=g.d(J);for(var A=J.next();!A.done;A=J.next()){A=A.value;var D=A.renderer,f=D.sandwichedLinearAdRenderer,h=D.linearAdSequenceRenderer;f&&yUA(f)?(tq("Found AdNotify with SandwichedLinearAdRenderer"),h=g.m(f.adVideoStart,Q1),f=g.m(f.linearAd,C_),cA(S,D,A.config.adPlacementConfig.kind),D=void 0,h=hfy((D=h)==null?void 0:D.layout.layoutId,W.K.get(),W.W.get(),A.config.adPlacementConfig,A.adSlotLoggingData,f,K,I,p,q,W.loadPolicy,W.gw.get(),W.f7.get()),h instanceof Y?tq(h):n.push.apply(n,g.w(h))): h&&(!h.adLayoutMetadata&&UmD(h)||h.adLayoutMetadata&&ZYy(h))&&(tq("Found AdNotify with LinearAdSequenceRenderer"),cA(S,D,A.config.adPlacementConfig.kind),D=void 0,f=AUc((D=g.m(h.adStart,Q1))==null?void 0:D.layout.layoutId,W.K.get(),W.W.get(),A.config.adPlacementConfig,A.adSlotLoggingData,h.linearAds,S5(h.adLayoutMetadata)?h.adLayoutMetadata:void 0,K,I,p,q,W.loadPolicy,W.gw.get()),f instanceof Y?tq(f):n.push.apply(n,g.w(f)))}return n}; QJH=function(W,J,K,I,q,S,p,n,A,D,f){function h(Q){return tA(W.f7.get(),Q)} var t=K.renderer,F=K.config.adPlacementConfig,a=F.kind,y=K.adSlotLoggingData,U=n.jN&&a==="AD_PLACEMENT_KIND_START";U=S&&!U;if(t.adsEngagementPanelRenderer!=null)return XF(J,K.elementId,a,t.adsEngagementPanelRenderer.isContentVideoEngagementPanel,t.adsEngagementPanelRenderer.adVideoId,t.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,F,y,function(Q,C,T,H){var b=W.W.get(),c=Q.slotId,v=t.adsEngagementPanelRenderer;Q=tA(W.f7.get(),Q);return wN(b,c,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new of(v),C,T,v.impressionPings,Q,t.adsEngagementPanelRenderer.adLayoutLoggingData,H)}),[]; if(t.adsEngagementPanelLayoutViewModel)return XF(J,K.elementId,a,t.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,t.adsEngagementPanelLayoutViewModel.adVideoId,t.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,y,function(Q,C,T,H){var b=W.W.get(),c=Q.slotId,v=t.adsEngagementPanelLayoutViewModel;Q=tA(W.f7.get(),Q);return Mn(b,c,"LAYOUT_TYPE_PANEL",new Lg(v),C,T,Q,t.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,H)}),[]; if(t.actionCompanionAdRenderer!=null){if(t.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return BHL(W.K.get(),W.G,W.W.get(),t.actionCompanionAdRenderer,F,y,I,h);XF(J,K.elementId,a,t.actionCompanionAdRenderer.isContentVideoCompanion,t.actionCompanionAdRenderer.adVideoId,t.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,F,y,function(Q,C,T,H){var b=W.W.get(),c=Q.slotId,v=t.actionCompanionAdRenderer;Q=tA(W.f7.get(),Q);return wN(b,c,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new m2(v),C,T,v.impressionPings,Q,t.actionCompanionAdRenderer.adLayoutLoggingData,H)})}else if(t.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(t.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return mMT(W.K.get(),W.G,W.W.get(),t.topBannerImageTextIconButtonedLayoutViewModel,F,y,I,h); XF(J,K.elementId,a,t.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,t.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,t.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,y,function(Q,C,T,H){var b=W.W.get(),c=Q.slotId,v=t.topBannerImageTextIconButtonedLayoutViewModel;Q=tA(W.f7.get(),Q);return Mn(b,c,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new r7(v),C,T,Q,t.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,H)})}else if(t.imageCompanionAdRenderer)XF(J, K.elementId,a,t.imageCompanionAdRenderer.isContentVideoCompanion,t.imageCompanionAdRenderer.adVideoId,t.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,F,y,function(Q,C,T,H){var b=W.W.get(),c=Q.slotId,v=t.imageCompanionAdRenderer; Q=tA(W.f7.get(),Q);return wN(b,c,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Ys(v),C,T,v.impressionPings,Q,t.imageCompanionAdRenderer.adLayoutLoggingData,H)}); else if(t.bannerImageLayoutViewModel)XF(J,K.elementId,a,t.bannerImageLayoutViewModel.isContentVideoCompanion,t.bannerImageLayoutViewModel.adVideoId,t.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,y,function(Q,C,T,H){var b=W.W.get(),c=Q.slotId,v=t.bannerImageLayoutViewModel;Q=tA(W.f7.get(),Q);return Mn(b,c,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new c_(v),C,T,Q,t.bannerImageLayoutViewModel.adLayoutLoggingData,H)}); else if(t.shoppingCompanionCarouselRenderer)XF(J,K.elementId,a,t.shoppingCompanionCarouselRenderer.isContentVideoCompanion,t.shoppingCompanionCarouselRenderer.adVideoId,t.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,F,y,function(Q,C,T,H){var b=W.W.get(),c=Q.slotId,v=t.shoppingCompanionCarouselRenderer;Q=tA(W.f7.get(),Q);return wN(b,c,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new P_(v),C,T,v.impressionPings,Q,t.shoppingCompanionCarouselRenderer.adLayoutLoggingData,H)}); else if(t.adBreakServiceRenderer){if(!RR0(K))return[];if(a==="AD_PLACEMENT_KIND_PAUSE")return eRH(W.K.get(),F,y,K.renderer.adBreakServiceRenderer,I);if(a!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&a!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return E4A(W.K.get(),F,y,K.renderer.adBreakServiceRenderer,I,q,S);n.dl||tq("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:a,adPlacementConfig:F,daiEnabledForContentVideo:String(S),isServedFromLiveInfra:String(n.dl),clientPlaybackNonce:n.clientPlaybackNonce}); if(a==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!W.cS)return new Y("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!W.F0)return new Y("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");W.F0.gN({adPlacementRenderer:K,contentCpn:I,yX:q});q=gN(W.cS.get());return M8H(W.K.get(),K.renderer.adBreakServiceRenderer,F,q,I,y,S)}if(!W.gC)return new Y("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); W.gC.gN({adPlacementRenderer:K,contentCpn:I,yX:q})}else{if(t.clientForecastingAdRenderer)return PZL(W.K.get(),W.W.get(),F,y,t.clientForecastingAdRenderer,I,q,h);if(t.invideoOverlayAdRenderer)return JUQ(W.K.get(),W.W.get(),F,y,t.invideoOverlayAdRenderer,I,q,h);if(t.instreamAdPlayerOverlayRenderer)return W$Q(W.K.get(),W.W.get(),F,y,t.instreamAdPlayerOverlayRenderer,I,h);if((t.linearAdSequenceRenderer||t.instreamVideoAdRenderer)&&U)return lMQ(W.K.get(),W.W.get(),K,I,h,D,gnH(W.gw.get()));if(t.linearAdSequenceRenderer&& !U){if(p)return[];cA(J,t,a);if(t.linearAdSequenceRenderer.adLayoutMetadata){if(!CcL(t.linearAdSequenceRenderer))return new Y("Received invalid LinearAdSequenceRenderer.")}else if(t.linearAdSequenceRenderer.linearAds==null)return new Y("Received invalid LinearAdSequenceRenderer.");if(g.m(t.linearAdSequenceRenderer.adStart,Q1)){tq("Found AdNotify in LinearAdSequenceRenderer");K=g.m(t.linearAdSequenceRenderer.adStart,Q1);if(!lB0(K))return new Y("Invalid AdMessageRenderer.");S=t.linearAdSequenceRenderer.linearAds; return Dmy(W.T.get(),W.K.get(),W.W.get(),W.f7.get(),F,y,K,S5(t.linearAdSequenceRenderer.adLayoutMetadata)?t.linearAdSequenceRenderer.adLayoutMetadata:void 0,S,I,q,n,h,A,W.loadPolicy,W.gw.get())}return F$D(W.K.get(),W.W.get(),F,y,t.linearAdSequenceRenderer.linearAds,S5(t.linearAdSequenceRenderer.adLayoutMetadata)?t.linearAdSequenceRenderer.adLayoutMetadata:void 0,I,q,n,h,A,W.loadPolicy,W.gw.get(),f)}if(!t.remoteSlotsRenderer||S){if(t.instreamVideoAdRenderer&&!U){if(p)return[];cA(J,t,a);return N7X(W.K.get(), W.W.get(),F,y,t.instreamVideoAdRenderer,I,q,n,h,A,W.loadPolicy,W.gw.get(),W.f7.get(),f)}if(t.instreamSurveyAdRenderer)return dmL(W.K.get(),W.W.get(),t.instreamSurveyAdRenderer,F,y,I,h,XV(W.gw.get(),"supports_multi_step_on_desktop"));if(t.sandwichedLinearAdRenderer!=null)return wNc(t.sandwichedLinearAdRenderer)?g.m(t.sandwichedLinearAdRenderer.adVideoStart,Q1)?(tq("Found AdNotify in SandwichedLinearAdRenderer"),K=g.m(t.sandwichedLinearAdRenderer.adVideoStart,Q1),lB0(K)?(S=g.m(t.sandwichedLinearAdRenderer.linearAd, C_))?tcT(K,S,F,W.T.get(),W.K.get(),W.W.get(),W.f7.get(),y,I,q,n,h,A,W.loadPolicy,W.gw.get()):new Y("Missing IVAR from Sandwich"):new Y("Invalid AdMessageRenderer.")):F$D(W.K.get(),W.W.get(),F,y,[t.sandwichedLinearAdRenderer.adVideoStart,t.sandwichedLinearAdRenderer.linearAd],void 0,I,q,n,h,A,W.loadPolicy,W.gw.get()):new Y("Received invalid SandwichedLinearAdRenderer.");if(t.videoAdTrackingRenderer!=null)return sfc(W.K.get(),W.W.get(),t.videoAdTrackingRenderer,F,y,I,q,n.bD,h)}}return[]}; Gp=function(W,J,K,I,q,S,p,n){g.R.call(this);var A=this;this.K=W;this.G=J;this.p7=I;this.cS=q;this.gw=S;this.iO=p;this.Ql=n;this.W=null;K.get().addListener(this);this.addOnDisposeCallback(function(){K.Iu()||K.get().removeListener(A)}); I.get().addListener(this);this.addOnDisposeCallback(function(){I.Iu()||I.get().removeListener(A)})}; xmc=function(W,J,K){var I=gN(W.cS.get());GnH(W.gw.get())&&nP(W.iO.get(),"sdai","onopp.1;evt."+K.event+";start."+K.startSecs.toFixed(3)+";d."+K.vt.toFixed(3));uQ(W.K.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var q=W.G.get(),S=J.adPlacementRenderer.renderer.adBreakServiceRenderer,p=J.contentCpn,n=J.adPlacementRenderer.adSlotLoggingData,A=$2(W.gw.get()),D=W.iO;if(q.gw.get().X.J().experiments.HS("enable_smearing_expansion_dai")){var f=q.gw.get();f=g.FV(f.X.J().experiments,"max_prefetch_window_sec_for_livestream_optimization"); A=q.gw.get();var h=g.FV(A.X.J().experiments,"min_prefetch_offset_sec_for_livestream_optimization");A={ma:$my(K),qA:!1,cueProcessedMs:I*1E3};var t=K.startSecs+K.vt;if(I===0)A.xD=new C3(0,t*1E3);else{h=K.startSecs-h;var F=h-I;A.xD=F<=0?new C3(h*1E3,t*1E3):new C3(Math.floor(I+Math.random()*Math.min(F,f))*1E3,t*1E3)}f=A}else f={ma:$my(K),qA:!1},t=K.startSecs+K.vt,K.startSecs<=I?A=new C3((K.startSecs-4)*1E3,t*1E3):(h=Math.max(0,K.startSecs-I-10),A=new C3(Math.floor(I+Math.random()*(A?I===0?0:Math.min(h, 5):h))*1E3,t*1E3)),f.xD=A;S=vA(q,S,p,f,n,[new Mm(K)]);x2(q.gw.get())&&nP(D.get(),"abrsm","cpi."+K.identifier+";cps."+K.startSecs+";cpd."+K.vt+";cts."+I+";rbf."+f.xD.start);D.get().X.bW(f.xD.start/1E3-I,K.startSecs-I);return[S]})}; Of=function(W){var J,K=(J=nQ(W.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current;if(!K)return null;J=nQ(W.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var I=W.layoutId,q=nQ(W.clientMetadata,"metadata_type_content_cpn"),S=nQ(W.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),p=nQ(W.clientMetadata,"metadata_type_player_overlay_layout_renderer"),n=nQ(W.clientMetadata,"metadata_type_player_underlay_renderer"),A=nQ(W.clientMetadata, "metadata_type_ad_placement_config"),D=nQ(W.clientMetadata,"metadata_type_video_length_seconds");var f=IA(W.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?nQ(W.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):IA(W.clientMetadata,"metadata_type_layout_enter_ms")&&IA(W.clientMetadata,"metadata_type_layout_exit_ms")?(nQ(W.clientMetadata,"metadata_type_layout_exit_ms")-nQ(W.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{gJ:I,contentCpn:q,uo:K,Tm:J,instreamAdPlayerOverlayRenderer:S, playerOverlayLayoutRenderer:p,instreamAdPlayerUnderlayRenderer:n,adPlacementConfig:A,videoLengthSeconds:D,X_:f,inPlayerLayoutId:nQ(W.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:nQ(W.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Tjy=function(W,J){return OYQ(W,J)}; HYD=function(W,J){J=OYQ(W,J);if(!J)return null;var K;J.X_=(K=nQ(W.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:K.adBreakRemainingLengthSeconds;return J}; OYQ=function(W,J){var K,I=(K=nQ(W.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:K.current;if(!I)return null;K=sEH(W,J);return{rz:YsQ(W,J),adPlacementConfig:nQ(W.clientMetadata,"metadata_type_ad_placement_config"),A8:K,contentCpn:nQ(W.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:nQ(W.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:nQ(W.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:nQ(W.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,X_:void 0,uo:I,gJ:W.layoutId,videoLengthSeconds:nQ(W.clientMetadata,"metadata_type_video_length_seconds")}}; Tp=function(W,J,K,I,q,S,p,n,A){g.R.call(this);this.T=W;this.S=J;this.j=K;this.G=I;this.W=q;this.K=S;this.f7=p;this.gw=n;this.dw=A;this.zY=!0}; V8X=function(W,J,K){return UNL(W.W.get(),J.contentCpn,J.gJ,function(I){return ZgQ(W.K.get(),I.slotId,K,J.adPlacementConfig,J.gJ,tA(W.f7.get(),I))})}; Hz=function(W,J,K,I,q,S,p,n){g.R.call(this);this.K=W;this.W=J;this.G=K;this.gw=I;this.T=q;this.dw=S;this.cS=p;this.xK=n}; V1=function(W){g.R.call(this);this.W=W}; uQ=function(W,J,K,I){W.W().rK(J,I);K=K();W=W.W();W.DJ.vk("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",J,I,K);J=g.d(K);for(K=J.next();!K.done;K=J.next())a:{I=W;K=K.value;I.DJ.ea("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",K);I.DJ.ea("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",K);try{var q=I.W;if(g.FC(K.slotId))throw new Y("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Qg(q,K))throw new Y("Duplicate registration for slot.",{slotId:K.slotId,slotEntryTriggerType:K.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!q.OP.Ds.has(K.slotType))throw new Y("No fulfillment adapter factory registered for slot of type: "+K.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!q.OP.Ev.has(K.slotType))throw new Y("No SlotAdapterFactory registered for slot of type: "+K.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");mm(q,"TRIGGER_CATEGORY_SLOT_ENTRY",K.slotEntryTrigger?[K.slotEntryTrigger]:[]);mm(q,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", K.slotFulfillmentTriggers);mm(q,"TRIGGER_CATEGORY_SLOT_EXPIRATION",K.slotExpirationTriggers);var S=I.W,p=K.slotType+"_"+K.slotPhysicalPosition,n=Ev(S,p);if(Qg(S,K))throw new Y("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");n.set(K.slotId,new m_T(K));S.W.set(p,n)}catch(Kv){Kv instanceof Y&&Kv.ES?(I.DJ.f4("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Kv.ES,K),tq(Kv,K,void 0,void 0,Kv.le)):(I.DJ.f4("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", K),tq(Kv,K));break a}g.E(Qg(I.W,K)).S=!0;try{var A=I.W,D=g.E(Qg(A,K)),f=K.slotEntryTrigger,h=A.OP.n_.get(f.triggerType);h&&(h.tO("TRIGGER_CATEGORY_SLOT_ENTRY",f,K,null),D.G8.set(f.triggerId,h));for(var t=g.d(K.slotFulfillmentTriggers),F=t.next();!F.done;F=t.next()){var a=F.value,y=A.OP.n_.get(a.triggerType);y&&(y.tO("TRIGGER_CATEGORY_SLOT_FULFILLMENT",a,K,null),D.PS.set(a.triggerId,y))}for(var U=g.d(K.slotExpirationTriggers),Q=U.next();!Q.done;Q=U.next()){var C=Q.value,T=A.OP.n_.get(C.triggerType); T&&(T.tO("TRIGGER_CATEGORY_SLOT_EXPIRATION",C,K,null),D.C.set(C.triggerId,T))}var H=A.OP.Ds.get(K.slotType).get().build(A.G,K);D.Z=H;var b=A.OP.Ev.get(K.slotType).get().build(A.j,K);b.init();D.K=b}catch(Kv){Kv instanceof Y&&Kv.ES?(I.DJ.f4("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Kv.ES,K),tq(Kv,K,void 0,void 0,Kv.le)):(I.DJ.f4("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",K),tq(Kv,K));yg(I,K,!0);break a}I.DJ.ea("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",K); I.W.tR(K);for(var c=g.d(I.K),v=c.next();!v.done;v=c.next())v.value.tR(K);MT(I,K)}}; Ef=function(W,J,K,I,q){g.R.call(this);var S=this;this.K=W;this.G=J;this.hp=K;this.context=q;this.W=new Map;I.get().addListener(this);this.addOnDisposeCallback(function(){I.Iu()||I.get().removeListener(S)})}; $MA=function(W,J){var K=0x8000000000000;var I=0;for(var q=g.d(J.slotFulfillmentTriggers),S=q.next();!S.done;S=q.next())S=S.value,S instanceof rs?(K=Math.min(K,S.W.start),I=Math.max(I,S.W.end)):tq("Found unexpected fulfillment trigger for throttled slot.",J,null,{fulfillmentTrigger:S});I=new C3(K,I);K="throttledadcuerange:"+J.slotId;W.W.set(K,J);W.hp.get().addCueRange(K,I.start,I.end,!1,W);gG(W.context.gw.get())&&(J=I.start,I=I.end,q={},W.context.pw.ub("tcrr",(q.cid=K,q.sm=J,q.em=I,q)))}; ed=function(){g.R.apply(this,arguments);this.zY=!0;this.WZ=new Map;this.W=new Map}; R8=function(W){return W.WZ}; bf=function(W,J){W=g.d(W.WZ.values());for(var K=W.next();!K.done;K=W.next())if(K.value.layoutId===J)return!0;return!1}; Bz=function(W,J){W=g.d(W.W.values());for(var K=W.next();!K.done;K=W.next()){K=g.d(K.value);for(var I=K.next();!I.done;I=K.next())if(I=I.value,I.layoutId===J)return I}tq("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.FC(J)),layoutId:J})}; Enc=function(){this.W=new Map}; e4H=function(W,J){this.callback=W;this.slot=J}; m4=function(){}; R4I=function(W,J,K){this.callback=W;this.slot=J;this.cS=K}; bY0=function(W,J,K){this.callback=W;this.slot=J;this.cS=K;this.K=!1;this.W=0}; BjQ=function(W,J,K){this.callback=W;this.slot=J;this.cS=K}; rN=function(W){this.cS=W}; o8=function(W){g.R.call(this);this.HQ=W;this.ib=new Map}; L8=function(W,J){for(var K=[],I=g.d(W.ib.values()),q=I.next();!q.done;q=I.next()){q=q.value;var S=q.trigger;S instanceof K_&&S.triggeringLayoutId===J&&K.push(q)}K.length?T0(W.HQ(),K):tq("Survey is submitted but no registered triggers can be activated.")}; k2=function(W,J,K){o8.call(this,W);var I=this;this.gw=K;J.get().addListener(this);this.addOnDisposeCallback(function(){J.Iu()||J.get().removeListener(I)})}; zp=function(W){g.R.call(this);this.W=W;this.zY=!0;this.ib=new Map;this.j=new Set;this.G=new Set;this.T=new Set;this.S=new Set;this.K=new Set}; vz=function(W){g.R.call(this);this.W=W;this.ib=new Map}; Y2=function(W,J){for(var K=[],I=g.d(W.ib.values()),q=I.next();!q.done;q=I.next())q=q.value,q.trigger.W===J.layoutId&&K.push(q);K.length&&T0(W.W(),K)}; sf=function(W,J,K){g.R.call(this);var I=this;this.W=W;this.context=K;this.ib=new Map;J.get().addListener(this);this.addOnDisposeCallback(function(){J.Iu()||J.get().removeListener(I)})}; cz=function(W,J,K,I,q){g.R.call(this);var S=this;this.K=W;this.hp=J;this.cS=K;this.dw=I;this.context=q;this.zY=!0;this.ib=new Map;this.W=new Set;K.get().addListener(this);this.addOnDisposeCallback(function(){K.Iu()||K.get().removeListener(S)})}; mmQ=function(W,J,K,I,q,S,p,n,A,D){if(UQ(W.dw.get(),1).clientPlaybackNonce!==A)throw new Y("Cannot register CueRange-based trigger for different content CPN",{trigger:K});W.ib.set(K.triggerId,{iX:new qB(J,K,I,q),cueRangeId:S});W.hp.get().addCueRange(S,p,n,D,W);gG(W.context.gw.get())&&(A={},W.context.pw.ub("crr",(A.ca=J,A.tt=K.triggerType,A.st=I.slotType,A.lt=q==null?void 0:q.layoutType,A.cid=S,A.sm=p,A.em=n,A)))}; rUD=function(W,J){W=g.d(W.ib.entries());for(var K=W.next();!K.done;K=W.next()){var I=g.d(K.value);K=I.next().value;I=I.next().value;if(J===I.cueRangeId)return K}return""}; Pz=function(W,J){g.R.call(this);var K=this;this.T=W;this.K=new Map;this.G=new Map;this.W=null;J.get().addListener(this);this.addOnDisposeCallback(function(){J.Iu()||J.get().removeListener(K)}); var I;this.W=((I=SJ(J.get()))==null?void 0:I.slotId)||null}; on0=function(W,J){var K=[];W=g.d(W.values());for(var I=W.next();!I.done;I=W.next())I=I.value,I.slot.slotId===J&&K.push(I);return K}; Xp=function(W){g.R.call(this);this.W=W;this.zY=!0;this.ib=new Map}; c5=function(W,J,K){J=J.layoutId;for(var I=[],q=g.d(W.ib.values()),S=q.next();!S.done;S=q.next())if(S=S.value,S.trigger instanceof zS){var p;if(p=S.trigger.layoutId===J){p=K;var n=HJH.get(S.category);p=n?n===p:!1}p&&I.push(S)}I.length&&T0(W.W(),I)}; W1=function(W){g.R.call(this);this.W=W;this.zY=!0;this.ib=new Map}; i6=function(W,J,K,I,q){g.R.call(this);var S=this;this.j=W;this.p7=J;this.cS=K;this.iO=I;this.W=null;this.zY=!0;this.ib=new Map;this.G=new Set;J.get().addListener(this);this.addOnDisposeCallback(function(){J.Iu()||J.get().removeListener(S)}); q.get().addListener(this);this.addOnDisposeCallback(function(){q.Iu()||q.get().removeListener(S)})}; kn0=function(W){W.W&&(W.K&&(W.K.stop(),W.K.start()),L$c(W,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; L$c=function(W,J){for(var K=[],I=g.d(W.ib.values()),q=I.next();!q.done;q=I.next())q=q.value,q.trigger.triggerType===J&&K.push(q);K.length>0&&T0(W.j(),K)}; Jx=function(W,J,K,I,q){for(var S=[],p=g.d(W.ib.values()),n=p.next();!n.done;n=p.next()){var A=n=n.value,D=A.trigger;A=A.slot;if(D.triggerType===J){if(D instanceof bn||D instanceof BT||D instanceof o4){if(q&&D.breakDurationMs!==K)continue;if(!q&&D.breakDurationMs===K)continue;if(I.has(A.slotId))continue;if(W.G.has(A.slotId))continue}S.push(n)}}S.length>0&&T0(W.j(),S)}; z4H=function(W,J){J=(J.vt+1)*1E3;var K=void 0;W=g.d(W.ib.values());for(var I=W.next();!I.done;I=W.next()){var q=I.value;I=q.trigger;q=q.slot;I instanceof bn&&I.breakDurationMs<=J&&(!K||I.breakDurationMs>K.trigger.breakDurationMs)&&(K={slot:q,trigger:I})}return K}; vnQ=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)}; YpH=function(W){W=W.adPlacementRenderer.config.adPlacementConfig;if(W.prefetchModeConfig&&W.prefetchModeConfig.cacheFetchRefreshDurationMs&&(W=Number(W.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(W)||W<=0)))return W}; Ka=function(W){W.W=null;W.ib.clear();W.G.clear();W.K&&W.K.stop();W.T&&W.T.stop()}; Ig=function(W){g.R.call(this);this.G=W;this.zY=!0;this.ib=new Map;this.W=new Map;this.K=new Map}; sJL=function(W,J){var K=[];if(J=W.W.get(J.layoutId)){J=g.d(J);for(var I=J.next();!I.done;I=J.next())(I=W.K.get(I.value.triggerId))&&K.push(I)}return K}; qq=function(W){g.R.call(this);this.W=W;this.ib=new Map}; cUA=function(W,J){for(var K=[],I=g.d(W.ib.values()),q=I.next();!q.done;q=I.next())q=q.value,q.trigger instanceof GS&&q.trigger.slotId===J&&K.push(q);K.length>=1&&T0(W.W(),K)}; PCc=function(W,J){var K={slotId:NJ(J,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],ou:"surface",clientMetadata:new lm([])},I=Object,q=I.assign;J=Wj(J,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",K.slotId);J={layoutId:J,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",ET:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:"surface", clientMetadata:new lm([]),OT:gbQ(!1,K.slotId,K.slotType,K.slotPhysicalPosition,K.ou,K.slotEntryTrigger,K.slotFulfillmentTriggers,K.slotExpirationTriggers,J,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return q.call(I,{},W,{l0W:!0,slot:K,layout:J})}; V9T=function(W,J,K,I){var q=W.kind;I=I?!1:!W.hideCueRangeMarker;switch(q){case "AD_PLACEMENT_KIND_START":return I={ma:new C3(-0x8000000000000,-0x8000000000000),qA:I},K!=null&&(I.xD=new C3(-0x8000000000000,-0x8000000000000)),I;case "AD_PLACEMENT_KIND_END":return I={ma:new C3(0x7ffffffffffff,0x8000000000000),qA:I},K!=null&&(I.xD=new C3(Math.max(0,J-K),0x8000000000000)),I;case "AD_PLACEMENT_KIND_MILLISECONDS":q=W.adTimeOffset;q.offsetStartMilliseconds||tq("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); q.offsetEndMilliseconds||tq("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");W=Number(q.offsetStartMilliseconds);q=Number(q.offsetEndMilliseconds);q===-1&&(q=J);if(Number.isNaN(W)||Number.isNaN(q)||W>q)return new Y("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:W,offsetEndMs:q},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",q===J&&W-500<=q);I={ma:new C3(W,q),qA:I};if(K!=null){W=Math.max(0,W-K);if(W===q)return I;I.xD=new C3(W,q)}return I; default:return new Y("AdPlacementKind not supported in convertToRange.",{kind:q,adPlacementConfig:W})}}; $my=function(W){var J=W.startSecs*1E3;return new C3(J,J+W.vt*1E3)}; Xny=function(W){if(!W||!W.adPlacements&&!W.adSlots)return!1;for(var J=g.d(W.adPlacements||[]),K=J.next();!K.done;K=J.next())if(K=K.value)if(K=K.adPlacementRenderer,K!=null&&(K.config&&K.config.adPlacementConfig&&K.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;W=g.d(W.adSlots||[]);for(J=W.next();!J.done;J=W.next()){var I=K=void 0;if(((K=g.m(J.value,kt))==null?void 0:(I=K.adSlotMetadata)==null?void 0:I.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Sm=function(W){this.gw=W;this.K=new Map;this.W=new Map;this.G=new Map}; NJ=function(W,J){if(pa(W.gw.get())){var K=W.K.get(J)||0;K++;W.K.set(J,K);return J+"_"+K}return g.QF(16)}; Wj=function(W,J,K){if(pa(W.gw.get())){var I=W.W.get(J)||0;I++;W.W.set(J,I);return K+"_"+J+"_"+I}return g.QF(16)}; tl=function(W,J){if(pa(W.gw.get())){var K=W.G.get(J)||0;K++;W.G.set(J,K);return J+"_"+K}return g.QF(16)}; WmX=function(W){var J=[new Nm(W.gJ),new ZS(W.uo),new iC(W.adPlacementConfig),new gj(W.videoLengthSeconds),new oJ(W.X_)];W.instreamAdPlayerOverlayRenderer&&J.push(new lC(W.instreamAdPlayerOverlayRenderer));W.playerOverlayLayoutRenderer&&J.push(new nY(W.playerOverlayLayoutRenderer));W.Tm&&J.push(new qm(W.Tm));return J}; iQc=function(W,J,K,I,q,S){W=K.inPlayerLayoutId?K.inPlayerLayoutId:Wj(S,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",W);var p,n,A=K.instreamAdPlayerOverlayRenderer?(p=K.instreamAdPlayerOverlayRenderer)==null?void 0:p.adLayoutLoggingData:(n=K.playerOverlayLayoutRenderer)==null?void 0:n.adLayoutLoggingData;p={layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",ou:J};return{layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",ET:new Map,layoutExitNormalTriggers:[new eJ(function(D){return tl(S, D)},K.gJ)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:J,clientMetadata:I,OT:q(p),adLayoutLoggingData:A}}; l6=function(W,J){var K=this;this.K=W;this.gw=J;this.W=function(I){return tl(K.K.get(),I)}}; ZgQ=function(W,J,K,I,q,S){K=new lm([new AU(K),new iC(I)]);J=Wj(W.K.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",J);I={layoutId:J,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",ou:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",ET:new Map,layoutExitNormalTriggers:[new eJ(function(p){return tl(W.K.get(),p)},q)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:"core",clientMetadata:K,OT:S(I),adLayoutLoggingData:void 0}}; p8=function(W,J,K,I,q){var S=WmX(I);return iQc(J,K,I,new lm(S),q,W.K.get())}; JAH=function(W,J,K,I,q){var S=WmX(I);S.push(new X7(I.rz));S.push(new Wn(I.A8));return iQc(J,K,I,new lm(S),q,W.K.get())}; wN=function(W,J,K,I,q,S,p,n,A,D){J=Wj(W.K.get(),K,J);var f={layoutId:J,layoutType:K,ou:"core"},h=new Map;p&&h.set("impression",p);p=[new LP(W.W,q,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];D&&p.push(new EA(W.W,D,["normal"]));return{layoutId:J,layoutType:K,ET:h,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:"core",clientMetadata:new lm([I,new iC(S),new Nm(q)]),OT:n(f),adLayoutLoggingData:A}}; Mn=function(W,J,K,I,q,S,p,n,A){J=Wj(W.K.get(),K,J);var D={layoutId:J,layoutType:K,ou:"core"},f=[new LP(W.W,q,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];A&&f.push(new EA(W.W,A,["normal"]));return{layoutId:J,layoutType:K,ET:new Map,layoutExitNormalTriggers:f,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:"core",clientMetadata:new lm([I,new iC(S),new Nm(q)]),OT:p(D),adLayoutLoggingData:n}}; a8=function(W,J,K){var I=[];I.push(new k$(W.W,K));J&&I.push(J);return I}; Fp=function(W,J,K,I,q,S,p){var n={layoutId:J,layoutType:K,ou:"core"};return{layoutId:J,layoutType:K,ET:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[new OA(W.W,J)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:"core",clientMetadata:new lm([new v_(I),new iC(q)]),OT:S(n),adLayoutLoggingData:I.adLayoutLoggingData}}; K8=function(W,J,K,I,q,S,p,n){var A={layoutId:J,layoutType:S,ou:"core"};return{layoutId:J,layoutType:S,ET:new Map,layoutExitNormalTriggers:[new eJ(W.W,K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:"core",clientMetadata:new lm([new iC(I)].concat(g.w(p))),OT:q(A),adLayoutLoggingData:n}}; Nn=function(W,J,K,I){if(W.gw.get().Vw(J.kind==="AD_PLACEMENT_KIND_START"))if(K===void 0)tq("Expected SSAP layout ID in renderer",void 0,void 0,{caller:I});else return K}; K$Q=function(W,J,K,I,q,S,p,n,A,D,f,h,t){W=uf(W,J,K,q,S,p,n,A,h,Nn(W,K,I.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),t);J=W.Ba;K=new dj(W.V5);I=W.layoutExitSkipTriggers;D>0&&(J.push(K),J.push(new IJ(D)),I=[]);J.push(new KY(f));return{YA:{layoutId:W.layoutId,layoutType:W.layoutType,ET:W.ET,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:W.ou,clientMetadata:new lm(J),OT:W.OT,adLayoutLoggingData:W.adLayoutLoggingData}, TD:I,KA:W.layoutExitMuteTriggers,D9:W.layoutExitUserInputSubmittedTriggers,hx:W.DH,mH:W.mH}}; pnD=function(W,J,K,I,q,S,p,n,A,D){J=uf(W,J,K,I,S,new Map,p,function(f){return n(f,A)},void 0,Nn(W,K,q.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); W=new K_(W.W,J.V5);K=new dj(J.V5);D=new KY(D);return{YA:{layoutId:J.layoutId,layoutType:J.layoutType,ET:J.ET,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:J.ou,clientMetadata:new lm([].concat(g.w(J.Ba),[K,D])),OT:J.OT,adLayoutLoggingData:J.adLayoutLoggingData},TD:J.layoutExitSkipTriggers,KA:J.layoutExitMuteTriggers,D9:[].concat(g.w(J.layoutExitUserInputSubmittedTriggers),[W]),hx:J.DH,mH:J.mH}}; uf=function(W,J,K,I,q,S,p,n,A,D,f){J=D!=null?D:Wj(W.K.get(),"LAYOUT_TYPE_MEDIA_BREAK",J);D={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ou:"adapter"};n=n(J);var h=nQ(n.clientMetadata,"metadata_type_fulfilled_layout");h||tq("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var t=h?h.layoutId:"";K=[new iC(K),new LY(I),new vn(q)];h&&K.push(new yv(h.layoutType));f&&K.push(new Hn(f));return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", ET:S,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new sA(W.W,t)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:"adapter",Ba:K,OT:p(D),adLayoutLoggingData:A,mH:n,V5:t}}; dNL=function(W,J,K,I,q,S,p,n,A,D,f){W=Kmy(W,J,"core",K,I,q,S,p,n,A,D,void 0,f);return{layoutId:W.layoutId,layoutType:W.layoutType,ET:W.ET,layoutExitNormalTriggers:W.layoutExitNormalTriggers,layoutExitSkipTriggers:W.layoutExitSkipTriggers,layoutExitMuteTriggers:W.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:W.layoutExitUserInputSubmittedTriggers,DH:W.DH,ou:W.ou,clientMetadata:new lm(W.l6),OT:W.OT,adLayoutLoggingData:W.adLayoutLoggingData}}; usX=function(W,J,K,I,q,S,p,n,A,D,f,h,t){J=Kmy(W,J,"adapter",K,I,q,S,p,n,A,f,h,t);I=J.layoutExitSkipTriggers;q=J.l6;K.adPodSkipTarget&&K.adPodSkipTarget>0&&(q.push(D),q.push(new IJ(K.adPodSkipTarget)),I=[]);q.push(new KY(n.adPodIndex));K.isCritical&&(I=[new EA(W.W,J.layoutId,["error"])].concat(g.w(I)));return{YA:{layoutId:J.layoutId,layoutType:J.layoutType,ET:J.ET,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:J.ou,clientMetadata:new lm(q), OT:J.OT,adLayoutLoggingData:J.adLayoutLoggingData},TD:I,KA:J.layoutExitMuteTriggers,D9:J.layoutExitUserInputSubmittedTriggers,hx:J.DH}}; Kmy=function(W,J,K,I,q,S,p,n,A,D,f,h,t){var F={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",ou:K};q=[new iC(q),new JU(A),new S8(I.externalVideoId),new pY(n),new vn({impressionCommands:I.impressionCommands,abandonCommands:I.onAbandonCommands,completeCommands:I.completeCommands,progressCommands:I.adVideoProgressCommands}),new Gn(S),new Qv({current:null}),new gj(p)];(S=I.playerOverlay.instreamAdPlayerOverlayRenderer)&&q.push(new lC(S));(p=I.playerOverlay.playerOverlayLayoutRenderer)&&q.push(new nY(p)); h&&q.push(new $n(h));(h=I.playerUnderlay)&&q.push(new AU(h));n=NJ(W.K.get(),"SLOT_TYPE_IN_PLAYER");h=(h=S?S.elementId:p==null?void 0:p.layoutId)?h:Wj(W.K.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",n);q.push(new dj(h));q.push(new Up(n));q.push(new Hn(A.adPodIndex));I.adNextParams&&q.push(new ks(I.adNextParams));I.shrunkenPlayerBytesConfig&&q.push(new fY(I.shrunkenPlayerBytesConfig));I.clickthroughEndpoint&&q.push(new z6(I.clickthroughEndpoint));I.legacyInfoCardVastExtension&&q.push(new kn(I.legacyInfoCardVastExtension)); I.sodarExtensionData&&q.push(new xn(I.sodarExtensionData));f&&q.push(new rj(f));q.push(new cn(gF(I.pings)));A=GX(I.pings);if(t){a:{t=g.d(t);for(f=t.next();!f.done;f=t.next())if(f=f.value,f.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(S=g.m(f.fulfillmentContent.fulfilledLayout,VE))&&(S=g.m(S.renderingContent,TU))&&S.associatedPlayerBytesLayoutId===J){t=f;break a}t=void 0}t&&q.push(new DS(t))}return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",ET:A,layoutExitNormalTriggers:[new zS(W.W,J)],layoutExitSkipTriggers:I.skipOffsetMilliseconds? [new sA(W.W,h)]:[],layoutExitMuteTriggers:[new sA(W.W,h)],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:K,l6:q,OT:D(F),adLayoutLoggingData:I.adLayoutLoggingData}}; AHX=function(W,J,K,I,q,S,p,n,A){I.every(function(f){return qT(f,[],["LAYOUT_TYPE_MEDIA"])})||tq("Unexpect subLayout type for DAI composite layout"); J=Wj(W.K.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",J);var D={layoutId:J,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",ou:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",ET:new Map,layoutExitNormalTriggers:[new R4(W.W)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DH:[],ou:"core",clientMetadata:new lm([new Op(K),new Tn(n),new wj(I),new iC(q),new RJ(S),new Vv({}),new Xs(A)]),OT:p(D)}}; quQ=function(W){return W!=null}; na=function(W,J,K){var I=this;this.K=W;this.G=J;this.gw=K;this.W=function(q){return tl(I.K.get(),q)}}; M8H=function(W,J,K,I,q,S,p){if(!K.prefetchModeConfig)return new Y("AdPlacementConfig for Live Prefetch is missing prefetch_config");K=K.prefetchModeConfig;I*=1E3;var n=[];if(!K.breakLengthMs)return new Y("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var A=g.d(K.breakLengthMs),D=A.next();!D.done;D=A.next())if(D=D.value,Number(D)>0){var f=I+Number(K.startTimeOffsetMs),h=f+Number(K.cacheFetchSmearingDurationMs);D={ma:new C3(h,h+Number(D)),qA:!1,xD:new C3(Math.floor(f+Math.random()* Number(K.cacheFetchSmearingDurationMs)),h),cueProcessedMs:I?I:f};f=[];f.push(new KQ({}));h=[];h.push(new Y$(W.W));h.push(new sCL(W.W));p&&f.push(new Vv({}));n.push(vA(W,J,q,D,S,f,h))}return n}; vA=function(W,J,K,I,q,S,p){S=S===void 0?[]:S;var n=NJ(W.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST");p||(p=[],I.xD&&I.xD.start!==I.ma.start&&p.push(new rs(W.W,K,new C3(I.xD.start,I.ma.start),!1)),p.push(new rs(W.W,K,new C3(I.ma.start,I.ma.end),I.qA)));I={getAdBreakUrl:J.getAdBreakUrl,w0:I.ma.start,hA:I.ma.end,cueProcessedMs:I.cueProcessedMs};J=new WA(W.W,n);S=[new Bn(I)].concat(g.w(S));return{slotId:n,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:p, slotExpirationTriggers:[new vT(W.W,K),new PT(W.W,n),new Xa(W.W,n)],ou:"core",clientMetadata:new lm(S),adSlotLoggingData:q}}; qvy=function(W,J,K){var I=[];K=g.d(K);for(var q=K.next();!q.done;q=K.next())I.push(IhX(W,J,q.value));return I}; IhX=function(W,J,K){return K.triggeringSlotId!=null&&K.triggeringSlotId===W?K.clone(J):K}; v4D=function(W,J,K,I,q){return SvH(W,J,K,I,q)}; ISc=function(W,J,K,I){var q=NJ(W.K.get(),"SLOT_TYPE_IN_PLAYER");return SvH(W,q,J,K,I)}; SvH=function(W,J,K,I,q){var S=new VX(W.W,K),p=[new cT(W.W,J)];W=[new PT(W.W,J),new vT(W.W,I)];return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:S,slotFulfillmentTriggers:p,slotExpirationTriggers:W,ou:"core",clientMetadata:new lm([new bC(q({slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ou:"core",slotEntryTrigger:S,slotFulfillmentTriggers:p,slotExpirationTriggers:W},K))]),adSlotLoggingData:void 0}}; Njv=function(W,J,K,I,q,S){var p=NJ(W.K.get(),"SLOT_TYPE_PLAYER_BYTES"),n=NJ(W.K.get(),"SLOT_TYPE_IN_PLAYER"),A=Wj(W.K.get(),"LAYOUT_TYPE_SURVEY",n);I=Ax(W,J,K,I);var D=[new cT(W.W,p)];K=[new PT(W.W,p),new vT(W.W,K),new OA(W.W,A)];if(I instanceof Y)return I;n=S({slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,ou:"core",slotEntryTrigger:I,slotFulfillmentTriggers:D,slotExpirationTriggers:K},{slotId:n,layoutId:A});S=n.zg3;n=n.uWw;return[{slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:y1(W,J,p,I),slotFulfillmentTriggers:Uf(W,J,p,D),slotExpirationTriggers:K,ou:"core",clientMetadata:new lm([new bC(S),new Wp(Zg(J)),new JA({KG:W.KG(J)})]),adSlotLoggingData:q},n]}; Zg=function(W){return W.kind==="AD_PLACEMENT_KIND_START"}; yH0=function(W,J,K,I,q){q=q?q:NJ(W.K.get(),"SLOT_TYPE_IN_PLAYER");K=new VX(W.W,K);var S=[new cT(W.W,q)];W=[new vT(W.W,J),new PT(W.W,q)];return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:S,slotExpirationTriggers:W,ou:"core",clientMetadata:new lm([new bC(I({slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ou:"core",slotEntryTrigger:K,slotFulfillmentTriggers:S,slotExpirationTriggers:W}))])}}; UNL=function(W,J,K,I){var q=NJ(W.K.get(),"SLOT_TYPE_PLAYER_UNDERLAY");K=new VX(W.W,K);var S=[new cT(W.W,q)];W=[new vT(W.W,J),new PT(W.W,q)];return{slotId:q,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:S,slotExpirationTriggers:W,ou:"core",clientMetadata:new lm([new bC(I({slotId:q,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,ou:"core",slotEntryTrigger:K,slotFulfillmentTriggers:S,slotExpirationTriggers:W}))])}}; fMy=function(W,J,K,I,q,S,p){var n=NJ(W.K.get(),"SLOT_TYPE_IN_PLAYER"),A=Wj(W.K.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",n);I=ppX(W,I,S,p,A);if(I instanceof Y)return I;p=[new cT(W.W,n)];q=[new vT(W.W,S),new cT(W.W,q),new JP(W.W,q)];K=tA(K,{slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ou:"core",slotEntryTrigger:I,slotFulfillmentTriggers:p,slotExpirationTriggers:q});W=W.G.get();S={layoutId:A,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",ou:"core"};J={layoutId:A,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", ET:new Map,layoutExitNormalTriggers:[new IBI(W.W,A,J.durationMs)],layoutExitSkipTriggers:[new SrX(W.W,A,J.durationMs)],DH:[new qrH(W.W,A)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],ou:"core",clientMetadata:new lm([new zn(J)]),OT:K(S)};return{slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ou:"core",slotEntryTrigger:I,slotFulfillmentTriggers:p,slotExpirationTriggers:q,clientMetadata:new lm([new bC(J)])}}; iYH=function(W,J,K,I,q,S){J=Ax(W,J,K,I);if(J instanceof Y)return J;var p=J instanceof rs?new i2L(W.W,K,J.W):null;I=NJ(W.K.get(),"SLOT_TYPE_IN_PLAYER");var n=[new cT(W.W,I)];W=[new vT(W.W,K),new PT(W.W,I)];S=S({slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ou:"core",slotEntryTrigger:J,slotFulfillmentTriggers:n,slotExpirationTriggers:W},p);return S instanceof pQ?new Y(S):{slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:n,slotExpirationTriggers:W, ou:"core",clientMetadata:new lm([new bC(S)]),adSlotLoggingData:q}}; X_X=function(W,J,K,I){var q=NJ(W.K.get(),"SLOT_TYPE_IN_PLAYER"),S=new x$(W.W,J),p=[new io(W.W,q)];W=[new vT(W.W,J),new PT(W.W,q)];return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:S,slotFulfillmentTriggers:p,slotExpirationTriggers:W,ou:"core",clientMetadata:new lm([new bC(I({slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ou:"core",slotEntryTrigger:S,slotFulfillmentTriggers:p,slotExpirationTriggers:W}))]),adSlotLoggingData:K}}; W2H=function(W,J,K,I){var q=NJ(W.K.get(),"SLOT_TYPE_IN_PLAYER");K=new VX(W.W,K);var S=[new cT(W.W,q)],p=[new PT(W.W,q),new vT(W.W,J)];S={slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ou:"core",slotEntryTrigger:K,slotFulfillmentTriggers:S,slotExpirationTriggers:p};return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:[new cT(W.W,q)],slotExpirationTriggers:[new vT(W.W,J),new PT(W.W,q)],ou:"core",clientMetadata:new lm([new bC(I(S))])}}; cuD=function(W,J,K,I,q){var S=NJ(W.K.get(),"SLOT_TYPE_IN_PLAYER");K=new HT(W.W,I,K);I=[new cT(W.W,S)];W=[new vT(W.W,J)];return{slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:I,slotExpirationTriggers:W,ou:"core",clientMetadata:new lm([new bC(q({slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ou:"core",slotEntryTrigger:K,slotFulfillmentTriggers:I,slotExpirationTriggers:W}))])}}; L5X=function(W,J,K,I,q,S){var p=NJ(W.K.get(),J);return DI(W,p,J,new VX(W.W,I),[new vT(W.W,K),new PT(W.W,p),new EA(W.W,I,["error"])],q,S)}; o4X=function(W,J,K,I,q,S,p){var n=NJ(W.K.get(),J);return DI(W,n,J,new EA(W.W,q,["normal"]),[new vT(W.W,K),new PT(W.W,n),new EA(W.W,I,["error"])],S,p)}; b2T=function(W,J,K,I,q){var S=NJ(W.K.get(),J);return DI(W,S,J,new x$(W.W,K),[new vT(W.W,K),new PT(W.W,S)],I,q)}; YuL=function(W,J,K,I,q){K=K?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var S=NJ(W.K.get(),K);J=new x$(W.W,J);var p=[new cT(W.W,S)];W=[new PT(W.W,S)];return{slotId:S,slotType:K,slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:p,slotExpirationTriggers:W,ou:"core",clientMetadata:new lm([new bC(q({slotId:S,slotType:K,slotPhysicalPosition:1,ou:"core",slotEntryTrigger:J,slotFulfillmentTriggers:p,slotExpirationTriggers:W}))]),adSlotLoggingData:I}}; SuD=function(W,J,K,I){var q=NJ(W.K.get(),"SLOT_TYPE_PLAYER_BYTES"),S=new mE(W.W),p=[new io(W.W,q)];W=[new vT(W.W,J)];return{slotId:q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:S,slotFulfillmentTriggers:p,slotExpirationTriggers:W,ou:"core",clientMetadata:new lm([new bC(I({slotId:q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,ou:"core",slotEntryTrigger:S,slotFulfillmentTriggers:p,slotExpirationTriggers:W})),new Vv({})]),adSlotLoggingData:K}}; h4Q=function(W,J){return CCQ(W.gw.get())?new EA(W.W,J,["normal","error","skipped"]):new EA(W.W,J,["normal"])}; aMQ=function(W,J,K,I,q){J=h4Q(W,J);W=dN(W,J,K);q=q({slotId:W.slotId,slotType:W.slotType,slotPhysicalPosition:W.slotPhysicalPosition,slotEntryTrigger:W.slotEntryTrigger,slotFulfillmentTriggers:W.slotFulfillmentTriggers,slotExpirationTriggers:W.slotExpirationTriggers,ou:W.ou});return q instanceof Y?q:{We:Object.assign({},W,{clientMetadata:new lm([new bC(q.layout)]),adSlotLoggingData:I}),iN:q.iN}}; u7v=function(W,J,K,I,q,S,p){K=t8L(W,J,K,I);if(K instanceof Y)return K;p=p({slotId:K.slotId,slotType:K.slotType,slotPhysicalPosition:K.slotPhysicalPosition,slotEntryTrigger:K.slotEntryTrigger,slotFulfillmentTriggers:K.slotFulfillmentTriggers,slotExpirationTriggers:K.slotExpirationTriggers,ou:K.ou});if(p instanceof Y)return p;I=[new Wp(Zg(J)),new bC(p.layout),new JA({KG:W.KG(J)})];S&&I.push(new Yn({}));return{We:{slotId:K.slotId,slotType:K.slotType,slotPhysicalPosition:K.slotPhysicalPosition,slotEntryTrigger:y1(W, J,K.slotId,K.slotEntryTrigger),slotFulfillmentTriggers:Uf(W,J,K.slotId,K.slotFulfillmentTriggers),slotExpirationTriggers:K.slotExpirationTriggers,ou:K.ou,clientMetadata:new lm(I),adSlotLoggingData:q},iN:p.iN}}; y1=function(W,J,K,I){return W.gw.get().Vw(Zg(J))?new GS(W.W,K):I}; Uf=function(W,J,K,I){return W.gw.get().Vw(Zg(J))?[new io(W.W,K)]:I}; dN=function(W,J,K){var I=NJ(W.K.get(),"SLOT_TYPE_PLAYER_BYTES"),q=[new cT(W.W,I)];W=[new PT(W.W,I),new vT(W.W,K)];return{slotId:I,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:q,slotExpirationTriggers:W,ou:"core"}}; t8L=function(W,J,K,I){J=Ax(W,J,K,I);return J instanceof Y?J:dN(W,J,K)}; cHQ=function(W,J,K,I,q,S){var p=NJ(W.K.get(),"SLOT_TYPE_FORECASTING");J=Ax(W,J,K,I);if(J instanceof Y)return J;I=[new cT(W.W,p)];W=[new PT(W.W,p),new vT(W.W,K)];return{slotId:p,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:I,slotExpirationTriggers:W,ou:"core",clientMetadata:new lm([new bC(S({slotId:p,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,ou:"core",slotEntryTrigger:J,slotFulfillmentTriggers:I,slotExpirationTriggers:W}))]),adSlotLoggingData:q}}; lh0=function(W,J,K,I,q){var S=!J.hideCueRangeMarker;switch(J.kind){case "AD_PLACEMENT_KIND_START":return new x$(W.W,K);case "AD_PLACEMENT_KIND_MILLISECONDS":return W=V9T(J,I),W instanceof Y?W:q(W.ma,S);case "AD_PLACEMENT_KIND_END":return new TS(W.W,K,S);default:return new Y("Cannot construct entry trigger",{kind:J.kind})}}; ppX=function(W,J,K,I,q){return lh0(W,J,K,I,function(S,p){return new W5y(W.W,K,S,p,q)})}; Ax=function(W,J,K,I){return lh0(W,J,K,I,function(q,S){return new rs(W.W,K,q,S)})}; DI=function(W,J,K,I,q,S,p){W=[new io(W.W,J)];return{slotId:J,slotType:K,slotPhysicalPosition:1,slotEntryTrigger:I,slotFulfillmentTriggers:W,slotExpirationTriggers:q,ou:"core",clientMetadata:new lm([new bC(p({slotId:J,slotType:K,slotPhysicalPosition:1,ou:"core",slotEntryTrigger:I,slotFulfillmentTriggers:W,slotExpirationTriggers:q}))]),adSlotLoggingData:S}}; jm=function(W,J){g.R.call(this);this.gw=W;this.W=J;this.eventCount=0}; fa=function(W,J,K,I){jm.call(this,W,J);this.gw=W;this.dw=K;this.context=I}; hx=function(){this.W=new Map}; Fy=function(W,J){var K=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=W;this.result=J.result;this.error=J.error;J.promise&&J.promise.then(function(I){tx(K,I)},function(I){K.mm(I)})}; Nq=function(W){if(ag(W)){if(W instanceof Fy)return W;if(u6(W))return new Fy("wait",{promise:W})}return new Fy("done",{result:W})}; dZ=function(){return new Fy("wait",{})}; yz=function(W){return new Fy("fail",{error:W})}; Ul=function(W){try{return Nq(W())}catch(J){return yz(J)}}; Qz=function(W,J){var K=dZ();W.onSuccess.push(function(I){try{var q=J(I);tx(K,q)}catch(S){K.mm(S)}}); W.onFailure.push(function(I){K.mm(I)}); ZI(W);return K}; Ca=function(W,J){var K=dZ();W.onSuccess.push(function(I){tx(K,I)}); W.onFailure.push(function(I){try{var q=J(I);tx(K,q)}catch(S){K.mm(S)}}); ZI(W);return K}; nw0=function(W,J){var K=dZ();W.onSuccess.push(function(I){try{J(),tx(K,I)}catch(q){K.mm(q)}}); W.onFailure.push(function(I){try{J(),K.mm(I)}catch(q){K.mm(q)}}); ZI(W)}; tx=function(W,J){if(ag(J)){if(u6(J)){J.then(function(K){tx(W,K)},function(K){W.mm(K)}); return}if(J instanceof Fy){Qz(J,function(K){tx(W,K)}); Ca(J,function(K){W.mm(K)}); return}}W.currentState="done";W.result=J;ZI(W)}; ZI=function(W){if(W.currentState==="done"){var J=W.onSuccess;W.onSuccess=[];W.onFailure=[];J=g.d(J);for(var K=J.next();!K.done;K=J.next())K=K.value,K(W.result)}else if(W.currentState==="fail")for(J=W.onFailure,W.onSuccess=[],W.onFailure=[],J=g.d(J),K=J.next();!K.done;K=J.next())K=K.value,K(W.error)}; wZ=function(W){return function(){return AAX(W.apply(this,g.EH.apply(0,arguments)))}}; Mq=function(W){return Nq(W).wait()}; AAX=function(W){return Ul(function(){return gZ(W,W.next())})}; gZ=function(W,J){return J.done?Nq(J.value):Ca(Qz(J.value.NO,function(K){return gZ(W,W.next(K))}),function(K){return gZ(W,W.throw(K))})}; DTc=function(W,J){if(W.length===0)return Nq(NaN);var K=dZ(),I=W.length;W.forEach(function(q,S){nw0(Nq(q),function(){K.currentState==="wait"&&(J!==void 0&&J(S)&&K.currentState==="wait"?K.resolve(S):(--I,I===0&&K.resolve(NaN)))})}); return K}; jAX=function(W){return W.map(function(J){return Nq(J)})}; $R=function(W){var J=W.hours||0;var K=W.minutes||0,I=W.seconds||0;J=I+K*60+J*3600+(W.days||0)*86400+(W.weeks||0)*604800+(W.months||0)*2629800+(W.years||0)*31557600;J<=0?J={hours:0,minutes:0,seconds:0}:(W=J,J=Math.floor(W/3600),W%=3600,K=Math.floor(W/60),I=Math.floor(W%60),J={hours:J,minutes:K,seconds:I});var q=J.hours===void 0?0:J.hours;K=J.minutes===void 0?0:J.minutes;W=J.seconds===void 0?0:J.seconds;I=q>0;J=[];if(I){q=(new Intl.NumberFormat("en-u-nu-latn")).format(q);var S=["fr"],p="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(" "); q="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(GJ)?q.replace(",","\u00a0"):S.includes(GJ)?q.replace(",","\u202f"):p.includes(GJ)?q.replace(",","."):q;J.push(q)}I=I===void 0?!1:I;K=(["af","be","lt"].includes(GJ)||I)&&K<10?fhH().format(K):(new Intl.NumberFormat("en-u-nu-latn")).format(K);J.push(K);K=fhH().format(W);J.push(K);K=":";"da fi id si sr sr-Latn".split(" ").includes(GJ)&&(K=".");return J.join(K)}; fhH=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; h5Q=function(W,J){var K,I;W=((K=W.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(I=K.videoAuthorizationToken)==null?void 0:I.credentialTransferTokens)||[];for(K=0;KJ;W=K}else W=!1;return W}; g.zJ=function(W,J){return W.I7+"timedtext_video?ref=player&v="+J.videoId}; g.OQy=function(W){var J=this;this.videoData=W;W={};this.W=(W.c1a=function(){var K=[];if(g.La.isInitialized()){var I="";J.videoData&&J.videoData.Nq&&(I=J.videoData.Nq+("&r1b="+J.videoData.clientPlaybackNonce));var q={};I=(q.atr_challenge=I,q);YM("bg_v",void 0,"player_att");(I=xT0(I))?(YM("bg_s",void 0,"player_att"),K.push("r1a="+I)):(YM("bg_e",void 0,"player_att"),K.push("r1c=2"))}else YM("bg_e",void 0,"player_att"),window.trayride||window.botguard?K.push("r1c=1"):K.push("r1c=4");K.push("r1d="+g.La.getState()); return K.join("&")},W.c6a=function(K){return"r6a="+(Number(K.c)^f2())},W.c6b=function(K){return"r6b="+(Number(K.c)^Number(g.Yf("CATSTAT",0)))},W); this.videoData&&this.videoData.Nq?this.GD=Kz(this.videoData.Nq):this.GD={}}; g.TJA=function(W){if(W.videoData&&W.videoData.Nq){for(var J=[W.videoData.Nq],K=g.d(Object.keys(W.W)),I=K.next();!I.done;I=K.next())I=I.value,W.GD[I]&&W.W[I]&&(I=W.W[I](W.GD))&&J.push(I);return J.join("&")}return null}; g.v1=function(W,J){$TA(W,{UuW:g.FV(J.experiments,"bg_vm_reinit_threshold"),cspNonce:J.cspNonce,I7:J.I7||""})}; HQH=function(){var W=XMLHttpRequest.prototype.fetch;return!!W&&W.length===3}; VXc=function(W){W=W[l[33]](l[5]);YR[l[11]](W,1);YR[l[44]](W,67);YR[l[11]](W,2);YR[l[50]](W,59);YR[l[11]](W,2);YR[l[44]](W,29);YR[l[50]](W,10);return W[l[6]](l[5])}; e5y=function(W){EwA=2592E3*(W||1)}; sl=function(W){W=W===void 0?EwA:W;if(W>0&&!(ktQ()>(0,g.L)()-W*1E3))return 0;W=g.V0("yt-player-quality");if(typeof W==="string"){if(W=g.os[W],W>0)return W}else if(W instanceof Object)return W.quality;return 0}; c1=function(){var W=g.V0("yt-player-proxima-pref");return W==null?null:W}; R5Q=function(){var W=g.V0("yt-player-quality");if(W instanceof Object&&W.quality&&W.previousQuality){if(W.quality>W.previousQuality)return 1;if(W.quality0&&J[0]?W.getAutoplayPolicy(J[0]):W.getAutoplayPolicy("mediaelement");if(k0Q[K])return k0Q[K]}}catch(I){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; I_=function(W){return W.gm||W.D4||W.mutedAutoplay}; z5c=function(W,J){return I_(W)?J!==1&&J!==2&&J!==0?"AUTOPLAY_STATUS_UNAVAILABLE":W.hP?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; vwQ=function(W,J,K){var I=J.J();W.thirdParty||(W.thirdParty={});I.ancestorOrigins&&(W.thirdParty.embeddedPlayerContext=Object.assign({},W.thirdParty.embeddedPlayerContext,{ancestorOrigins:I.ancestorOrigins}));I.Y("embeds_enable_autoplay_and_visibility_signals")&&(I.zP!=null&&(W.thirdParty.embeddedPlayerContext=Object.assign({},W.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(I.zP)})),I.Ud&&(W.thirdParty.embeddedPlayerContext=Object.assign({},W.thirdParty.embeddedPlayerContext,{visibilityFractionSource:I.Ud})), W.thirdParty.embeddedPlayerContext=Object.assign({},W.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Kt(),autoplayIntended:I_(J),autoplayStatus:z5c(J,K)}))}; cAQ=function(W,J){PN(W,2,J.oY,qg,3);PN(W,3,J.uf,Yvv,3);sr(W,4,J.onesieUstreamerConfig);sr(W,9,J.IW);PN(W,10,J.Oy,Sw,3);PN(W,15,J.reloadPlaybackParams,sAy,3)}; XpL=function(W,J){PN(W,1,J.formatId,pt,3);vN(W,2,J.startTimeMs);vN(W,3,J.durationMs);vN(W,4,J.Hj);vN(W,5,J.JR);PN(W,9,J.vU0,PmQ,3);PN(W,11,J.EPu,lS,1);PN(W,12,J.Lv,lS,1)}; WMH=function(W,J){cN(W,1,J.videoId);vN(W,2,J.lmt)}; PmQ=function(W,J){if(J.i_)for(var K=0;K>31));vN(W,16,J.iyN);vN(W,17,J.detailedNetworkType);vN(W,18,J.VD);vN(W,19,J.TC);vN(W,21,J.RIg);vN(W,23,J.Uj);vN(W,28,J.Pf);vN(W,29,J.aLh);vN(W,34,J.visibility);K=J.playbackRate;if(K!==void 0){var I=new ArrayBuffer(4);(new Float32Array(I))[0]=K;K=(new Uint32Array(I))[0];if(K!==void 0)for(zO(W,285),k4(W,4),I=0;I<4;)W.view.setUint8(W.pos,K&255),K>>=8,W.pos+=1,I+=1}vN(W,36,J.eb); PN(W,38,J.mediaCapabilities,KMH,3);vN(W,39,J.cS3);vN(W,40,J.sE);vN(W,44,J.playerState);Y4(W,46,J.qW);vN(W,48,J.It);vN(W,50,J.MC);vN(W,51,J.N4);vN(W,54,J.q3);if(J.Wj)for(K=0;K>31));cN(W,2,J.message)}; j30=function(W,J){vN(W,1,J.clientState);PN(W,2,J.qRw,ANy,1)}; n9H=function(W,J){sr(W,1,J.iPh);PN(W,2,J.Ia3,DJH,3);PN(W,3,J.coldStartInfo,j30,3)}; ljL=function(W,J){vN(W,1,J.type);sr(W,2,J.value)}; pjH=function(W,J){cN(W,1,J.hl);cN(W,12,J.deviceMake);cN(W,13,J.deviceModel);vN(W,16,J.clientName);cN(W,17,J.clientVersion);cN(W,18,J.osName);cN(W,19,J.osVersion)}; fjL=function(W,J){cN(W,1,J.name);cN(W,2,J.value)}; hzQ=function(W,J){cN(W,1,J.url);if(J.LD)for(var K=0;K1&&(this.j=W[1]==="2")}; hd=function(W,J,K,I,q){this.K=W;this.W=J;this.G=K;this.reason=I;this.Cy=q===void 0?0:q}; g.td=function(W,J,K,I){return new hd(g.os[W]||0,g.os[J]||0,K,I)}; a_=function(W){if(FQ&&W.Cy)return!1;var J=g.os.auto;return W.K===J&&W.W===J}; Ng=function(W){return uS[W.W||W.K]||"auto"}; XjD=function(W,J){J=g.os[J];return W.K<=J&&(!W.W||W.W>=J)}; dE=function(W){return"["+W.K+"-"+W.W+", override: "+(W.G+", reason: "+W.reason+"]")}; y_=function(W,J,K){this.videoInfos=W;this.W=J;this.audioTracks=[];if(this.W){W=new Set;K==null||K({ainfolen:this.W.length});J=g.d(this.W);for(var I=J.next();!I.done;I=J.next())if(I=I.value,!I.pE||W.has(I.pE.id)){var q=void 0,S=void 0,p=void 0;(p=K)==null||p({atkerr:!!I.pE,itag:I.itag,xtag:I.W,lang:((q=I.pE)==null?void 0:q.name)||"",langid:((S=I.pE)==null?void 0:S.id)||""})}else q=new g.ft(I.id,I.pE),W.add(I.pE.id),this.audioTracks.push(q);K==null||K({atklen:this.audioTracks.length})}}; Uq=function(){g.R.apply(this,arguments);this.W=null}; KvD=function(W,J,K,I,q,S,p){if(W.W)return W.W;var n={},A=new Set,D={};if(ZT(I)){for(var f in I.W)I.W.hasOwnProperty(f)&&(W=I.W[f],D[W.info.z8]=[W.info]);return D}f=Wv0(J,I,n);S&&q({aftsrt:Q_(f)});for(var h={},t=g.d(Object.keys(f)),F=t.next();!F.done;F=t.next()){F=F.value;for(var a=g.d(f[F]),y=a.next();!y.done;y=a.next()){y=y.value;var U=y.itag,Q=void 0,C=F+"_"+(((Q=y.video)==null?void 0:Q.fps)||0);h.hasOwnProperty(C)?h[C]===!0?D[F].push(y):n[U]=h[C]:(Q=Ct(J,y,K,I.isLive,A),Q!==!0?(p.add(F),n[U]=Q, Q==="disablevp9hfr"&&(h[C]="disablevp9hfr")):(D[F]=D[F]||[],D[F].push(y),h[C]=!0))}}S&&q({bfflt:Q_(D)});for(var T in D)D.hasOwnProperty(T)&&(I=T,D[I]&&D[I][0].kC()&&(D[I]=D[I],D[I]=iBX(J,D[I],n),D[I]=JyI(D[I],n)));S&&Object.keys(n).length>0&&q({rjr:$m(n)});J=g.d(A.values());for(I=J.next();!I.done;I=J.next())(I=K.T.get(I.value))&&--I.aA;S&&q({aftflt:Q_(D)});W.W=g.mo(D,function(H){return!!H.length}); return W.W}; qSH=function(W,J,K,I,q,S,p,n){n=n===void 0?!1:n;if(J.nk&&p&&p.length>1&&!(J.Qk>0||J.N)){for(var A=J.K||!!q,D=A&&J.qD?S:void 0,f=Wv0(J,I),h=[],t=[],F={},a=0;a0&&t&&q&&(f=[p,K],U=q.concat(t).filter(function(Q){return Q})); if(U.length&&!J.l8){gE(U,f);if(A){A=[];J=g.d(U);for(I=J.next();!I.done;I=J.next())A.push(I.value.itag);S({hbdfmt:A.join(".")})}return T_(new y_(U,W,D))}U=tpA(J);U=g.hW(U,n);if(!U){if(h[p])return S=h[p],gE(S),T_(new y_(S,W,D));A&&S({novideo:1});return OD()}J.fE&&(U==="1"||U==="1h")&&h[K]&&(p=GV(h[U]),f=GV(h[K]),f>p?U=K:f===p&&FvD(h[K])&&(U=K));U==="9"&&h.h&&GV(h.h)>GV(h["9"])&&(U="h");J.P7&&I.isLive&&U==="("&&h.H&&GV(h["("])<1440&&(U="H");A&&S({vfmly:$A(U)});J=h[U];if(!J.length)return A&&S({novfmly:$A(U)}), OD();gE(J);return T_(new y_(J,W,D))}; pWQ=function(W,J){var K=!(!W.m&&!W.M),I=!(!W.mac3&&!W.MAC3),q=!(!W.meac3&&!W.MEAC3);W=!(!W.i&&!W.I);J.kK=W;return K||I||q||W}; FvD=function(W){W=g.d(W);for(var J=W.next();!J.done;J=W.next())if(J=J.value,J.itag&&aEH.has(J.itag))return!0;return!1}; nmL=function(W){W=g.d(W);for(var J=W.next();!J.done;J=W.next())if(J.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; $A=function(W){switch(W){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return W}}; Q_=function(W){var J=[],K;for(K in W)if(W.hasOwnProperty(K)){var I=K;J.push($A(I));I=g.d(W[I]);for(var q=I.next();!q.done;q=I.next())J.push(q.value.itag)}return J.join(".")}; SSL=function(W,J,K,I,q,S){var p={},n={};g.BR(J,function(A,D){A=A.filter(function(f){var h=f.itag;if(!f.aB)return n[h]="noenc",!1;if(S.Tx&&f.z8==="(h"&&S.eZ)return n[h]="lichdr",!1;if(!W.j&&f.z8==="1e")return n[h]="noav1enc",!1;if(f.z8==="("||f.z8==="(h"){if(W.G&&K&&K.flavor==="widevine"){var t=f.mimeType+"; experimental=allowed";(t=!!f.aB[K.flavor]&&!!K.W[t])||(n[h]=f.aB[K.flavor]?"unspt":"noflv");return t}if(!xA(W,Oq.CRYPTOBLOCKFORMAT)&&!W.vS||W.G8)return n[h]=W.G8?"disvp":"vpsub",!1}return K&&f.aB[K.flavor]&& K.W[f.mimeType]?!0:(n[h]=K?f.aB[K.flavor]?"unspt":"noflv":"nosys",!1)}); A.length&&(p[D]=A)}); I&&Object.entries(n).length&&q({rjr:$m(n)});return p}; JyI=function(W,J){var K=Yp(W,function(I,q){return q.video.fps>32?Math.min(I,q.video.width):I},Infinity); K32||I.video.widthW.S)return"max"+W.S;if(W.FW&&J.z8==="h"&&J.video&&J.video.qualityOrdinal>1080)return"blkhigh264";if(J.z8==="(h"&&!K.Z)return"enchdr";if((I===void 0?0:I)&&ir(J)&&!W.jZ)return"blk51live";if((J.z8==="MAC3"||J.z8==="mac3")&&!W.T)return"blkac3";if((J.z8==="MEAC3"||J.z8==="meac3")&&!W.j)return"blkeac3";if(J.z8==="M"||J.z8==="m")return"blkaac51"; if((J.z8==="so"||J.z8==="sa")&&!W.PS)return"blkamb";if(!W.Tx&&NcQ(J)&&(!K.j||J.z8!=="1e"))return"cbc";if(!K.j&&NcQ(J)&&J.z8==="1e")return"cbcav1";if((J.z8==="i"||J.z8==="I")&&!W.SI)return"blkiamf";var S;if(W.sT&&((S=J.audio)==null?void 0:S.K)===!0)return"blkvbcabr";var p,n;if(W.OI&&(J.z8==="1"||J.z8==="1h"||K.j&&J.z8==="1e")&&((p=J.video)==null?0:p.qualityOrdinal)&&((n=J.video)==null?void 0:n.qualityOrdinal)>W.OI)return"av1cap";if((I=K.T.get(J.z8))&&I.aA>0)return q.add(J.z8),"byerr";var A;if((A=J.video)== null?0:A.fps>32){if(!K.XW&&!xA(K,Oq.FRAMERATE))return"capHfr";if(W.D0&&J.video.qualityOrdinal>=4320)return"blk8khfr";if(sS(J)&&W.yr&&J.aB&&J.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(W.Cy&&J.Cy>W.Cy)return"ratecap";W=u_v(K,J);return W!==!0?W:!0}; gE=function(W,J){J=J===void 0?[]:J;g.TT(W,function(K,I){var q=I.Cy-K.Cy;if(!K.kC()||!I.kC())return q;var S=I.video.height*I.video.width-K.video.height*K.video.width;!S&&J&&J.length>0&&(K=J.indexOf(K.z8)+1,I=J.indexOf(I.z8)+1,S=K===0||I===0?I||-1:K-I);S||(S=q);return S})}; g.TV=function(W,J){this[l[2]]=W;this[l[46]]=J===void 0?!1:J;this[l[26]]=this[l[4]]=this[l[15]]=l[5];this[l[21]]={};this[l[30]]=l[5]}; V_=function(W){HU(W);return W[l[26]]}; Eq=function(W){return W[l[2]]?W[l[2]][l[12]](l[14]):W[l[15]]===l[14]}; NGH=function(W){HU(W);return g.oo(W[l[21]],function(J){return J!==null})}; ew=function(W){HU(W);var J=decodeURIComponent(W[l[38]](l[70])||l[5])[l[33]](l[29]);return W[l[4]]===l[19]&&J[l[8]]>1&&!!J[1]}; R_=function(W,J){J=J===void 0?!1:J;HU(W);if(W[l[4]]!==l[19]){var K=W[l[67]]();K[l[9]](l[37],l[10]);return K}var I=W[l[61]]();K=new g.Sr(I);var q=W[l[38]](l[43]),S=decodeURIComponent(W[l[38]](l[70])||l[5])[l[33]](l[29]);if(q&&S&&S[l[8]]>1&&S[1])return I=K.W,W=I[l[81]](/^[^.]*/,l[5]),g.lY(K,(I[l[18]](l[60])===0?l[60]:l[16])+q+l[41]+S[1]+W),K=new g.TV(K[l[13]]()),K[l[9]](l[24],l[10]),K;if(J)return K=W[l[67]](),K[l[9]](l[24],l[10]),K;q=K.W[l[51]](l[48]);K.W[l[51]](l[73])?(g.lY(K,l[71]),I=K[l[13]]()): K.W[l[51]](l[47])?(g.lY(K,l[79]),I=K[l[13]]()):(K=nTH(I),K9(K)&&(I=K));K=new g.TV(I);K[l[9]](l[28],l[10]);q&&K[l[9]](l[78],l[66]);return K}; HU=function(W){if(W[l[2]]){if(!K9(W[l[2]])&&!W[l[2]][l[12]](l[14]))throw new g.vd(l[65],W[l[2]]);var J=g.th(W[l[2]]);W[l[15]]=J.j;W[l[26]]=J.W+(J.G!=null?l[57]+J.G:l[5]);var K=J.K;if(K[l[12]](l[19]))W[l[4]]=l[19],K=K[l[25]](14);else if(K[l[12]](l[72]))W[l[4]]=l[72],K=K[l[25]](13);else if(K[l[12]](l[7])){var I=K[l[18]](l[0],12),q=K[l[18]](l[0],I+1);I>0&&q>0?(W[l[4]]=K[l[25]](0,q),K=K[l[25]](q+1)):(W[l[4]]=K,K=l[5])}else W[l[4]]=K,K=l[5];I=W[l[21]];W[l[21]]=ddX(K);Object[l[45]](W[l[21]],yyD(J.T.toString())); Object[l[45]](W[l[21]],I);W[l[21]][l[22]]===l[75]&&(delete W[l[21]][l[22]],W[l[4]]+=l[76]);W[l[2]]=l[5];W[l[30]]=l[5];W[l[46]]&&(HU(W),J=W[l[21]][l[27]]||null)&&(J=Udy[0](J),W[l[9]](l[27],J))}}; ZBQ=function(W){HU(W);var J=W[l[15]]+(W[l[15]]?l[62]:l[69])+W[l[26]]+W[l[4]];if(NGH(W)){var K=[];g.BR(W[l[21]],function(I,q){I!==null&&K[l[23]](q+l[52]+I)}); J+=l[77]+K[l[6]](l[32])}return J}; ddX=function(W){W=W[l[33]](l[0]);var J=0;W[0]||J++;for(var K={};J0?QsX(J,I[l[25]](0,q),I[l[25]](q+1)):I&&(J[I]=l[5])}return J}; QsX=function(W,J,K){if(J===l[68]){var I;(I=K[l[18]](l[52]))>=0?(J=l[39]+K[l[25]](0,I),K=K[l[25]](I+1)):(I=K[l[18]](l[1]))>=0&&(J=l[39]+K[l[25]](0,I),K=K[l[25]](I+3))}W[J]=K}; bS=function(W){var J=g.m(W,C1H)||W[l[56]];W={yu:!1,Ol:l[5],xS:l[5],s:l[5]};if(!J)return W;J=Kz(J);W[l[53]]=!0;W[l[42]]=J[l[30]];W[l[54]]=J[l[55]];W[l[58]]=J[l[58]];return W}; BU=function(W,J,K,I,q,S,p,n,A){this.x3=W;this.startTime=J;this.duration=K;this.ingestionTime=I;this.sourceURL=q;this.rB=A;this.endTime=J+K;this.W=p||0;this.range=S||null;this.pending=n||!1;this.rB=A||null}; g.mD=function(){this.segments=[];this.W=null;this.K=!0;this.G=""}; wWQ=function(W,J){if(J>W.FD())W.segments=[];else{var K=fx(W.segments,function(I){return I.x3>=J},W); K>0&&W.segments.splice(0,K)}}; rE=function(W,J,K,I,q){q=q===void 0?!1:q;this.data=W;this.offset=J;this.size=K;this.type=I;this.W=(this.K=q)?0:8;this.dataOffset=this.offset+this.W}; o_=function(W){var J=W.data.getUint8(W.offset+W.W);W.W+=1;return J}; Lt=function(W){var J=W.data.getUint16(W.offset+W.W);W.W+=2;return J}; kA=function(W){var J=W.data.getInt32(W.offset+W.W);W.W+=4;return J}; zV=function(W){var J=W.data.getUint32(W.offset+W.W);W.W+=4;return J}; vU=function(W){var J=W.data;var K=W.offset+W.W;J=J.getUint32(K)*4294967296+J.getUint32(K+4);W.W+=8;return J}; YA=function(W,J){J=J===void 0?NaN:J;if(isNaN(J))var K=W.size;else for(K=W.W;K1?Math.ceil(q*J):Math.floor(q*J))}W.skip(1);K=o_(W)<<16|Lt(W);if(K&256){I=K&1;q=K&4;var S=K&512,p=K&1024,n=K&2048;K=zV(W);I&&W.skip(4);q&&W.skip(4);I=(S?4:0)+(p?4:0)+(n?4:0);for(q=0;q1?Math.ceil(p*J):Math.floor(p*J)),W.skip(I)}}}; It=function(W){W=new DataView(W.buffer,W.byteOffset,W.byteLength);return(W=g.Jt(W,0,1836476516))?g.Km(W):NaN}; eyQ=function(W){var J=g.Jt(W,0,1937011556);if(!J)return null;J=q$(W,J.dataOffset+8,1635148593)||q$(W,J.dataOffset+8,1635135537);if(!J)return null;var K=q$(W,J.dataOffset+78,1936995172),I=q$(W,J.dataOffset+78,1937126244);if(!I)return null;J=null;if(K)switch(K.skip(4),o_(K)){default:J=0;break;case 1:J=2;break;case 2:J=1;break;case 3:J=255}var q=K=null,S=null;if(I=q$(W,I.dataOffset,1886547818)){var p=q$(W,I.dataOffset,1886546020),n=q$(W,I.dataOffset,2037673328);if(!n&&(n=q$(W,I.dataOffset,1836279920), !n))return null;p&&(p.skip(4),K=kA(p)/65536,S=kA(p)/65536,q=kA(p)/65536);W=Mpy(n);W=new DataView(W.buffer,W.byteOffset+8,W.byteLength-8);return new Vpy(J,K,S,q,W)}return null}; q$=function(W,J,K){for(;SZ(W,J);){var I=pm(W,J);if(I.type===K)return I;J+=I.size}return null}; g.Jt=function(W,J,K){for(;SZ(W,J);){var I=pm(W,J);if(I.type===K)return I;J=le(I.type)?J+8:J+I.size}return null}; g.nm=function(W){if(W.data.getUint8(W.dataOffset)){var J=W.data;W=W.dataOffset+4;J=J.getUint32(W)*4294967296+J.getUint32(W+4)}else J=W.data.getUint32(W.dataOffset+4);return J}; pm=function(W,J){var K=W.getUint32(J),I=W.getUint32(J+4);return new rE(W,J,K,I)}; g.Km=function(W){var J=W.data.getUint8(W.dataOffset)?20:12;return W.data.getUint32(W.dataOffset+J)}; RyT=function(W){W=new rE(W.data,W.offset,W.size,W.type,W.K);var J=o_(W);W.skip(7);var K=zV(W);if(J===0){J=zV(W);var I=zV(W)}else J=vU(W),I=vU(W);W.skip(2);for(var q=Lt(W),S=[],p=[],n=0;n122)return!1}return!0}; le=function(W){return W===1701082227||W===1836019558||W===1836019574||W===1835297121||W===1835626086||W===1937007212||W===1953653094||W===1953653099||W===1836475768}; bBD=function(W){W.skip(4);return{aty:YA(W,0),value:YA(W,0),timescale:zV(W),T1S:zV(W),nUI:zV(W),id:zV(W),vW:YA(W),offset:W.offset}}; g.BGQ=function(W){var J=q$(W,0,1701671783);if(!J)return null;var K=bBD(J),I=K.aty;K=ie(K.vW);if(W=q$(W,J.offset+J.size,1701671783))if(W=bBD(W),W=ie(W.vW),K&&W){J=g.d(Object.keys(W));for(var q=J.next();!q.done;q=J.next())q=q.value,K[q]=W[q]}return K?new XQ(K,I):null}; At=function(W,J){for(var K=q$(W,0,J);K;){var I=K;I.type=1936419184;I.data.setUint32(I.offset+4,1936419184);K=q$(W,K.offset+K.size,J)}}; g.Di=function(W,J){for(var K=0,I=[];SZ(W,K);){var q=pm(W,K);q.type===J&&I.push(q);K=le(q.type)?K+8:K+q.size}return I}; mdH=function(W,J){var K=g.Jt(W,0,1937011556),I=g.Jt(W,0,1953654136);if(!K||!I||W.getUint32(K.offset+12)>=2)return null;var q=new DataView(J.buffer,J.byteOffset,J.length),S=g.Jt(q,0,1937011556);if(!S)return null;J=q.getUint32(S.dataOffset+8);I=q.getUint32(S.dataOffset+12);if(I!==1701733217&&I!==1701733238)return null;I=new gmc(W.byteLength+J);sq(I,W,0,K.offset+12);I.data.setInt32(I.offset,2);I.offset+=4;sq(I,W,K.offset+16,K.size-16);sq(I,q,q.byteOffset+S.dataOffset+8,J);sq(I,W,K.offset+K.size,W.byteLength- (K.offset+K.size));K=g.d([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(q=K.next();!q.done;q=K.next())q=g.E(g.Jt(W,0,q.value)),I.data.setUint32(q.offset,q.size+J);W=g.Jt(I.data,0,1953654136);I.data.setUint32(W.offset+16,2);return I.data}; ryy=function(W){var J=g.Jt(W,0,1937011556);if(!J)return null;var K=W.getUint32(J.dataOffset+12);if(K!==1701733217&&K!==1701733238)return null;J=q$(W,J.offset+24+(K===1701733217?28:78),1936289382);if(!J)return null;K=q$(W,J.offset+8,1935894637);if(!K||W.getUint32(K.offset+12)!==1667392371)return null;J=q$(W,J.offset+8,1935894633);if(!J)return null;J=q$(W,J.offset+8,1952804451);if(!J)return null;K=new Uint8Array(16);for(var I=0;I<16;I++)K[I]=W.getInt8(J.offset+16+I);return K}; jZ=function(W,J){this.W=W;this.pos=0;this.start=J||0}; fm=function(W){return W.pos>=W.W.byteLength}; ue=function(W,J,K){var I=new jZ(K);if(!ht(I,W))return!1;I=tt(I);if(!F9(I,J))return!1;for(W=0;J;)J>>>=8,W++;J=I.start+I.pos;var q=at(I,!0);I=W+(I.start+I.pos-J)+q;I=I>9?omQ(I-9,8):omQ(I-2,1);W=J-W;K.setUint8(W++,236);for(J=0;JK;q++)K=K*256+Zi(W),I*=128;return J?K-I:K}; dA=function(W){var J=at(W,!0);W.pos+=J}; zyy=function(W){if(!F9(W,440786851,!0))return null;var J=W.pos;at(W,!1);var K=at(W,!0)+W.pos-J;W.pos=J+K;if(!F9(W,408125543,!1))return null;at(W,!0);if(!F9(W,357149030,!0))return null;var I=W.pos;at(W,!1);var q=at(W,!0)+W.pos-I;W.pos=I+q;if(!F9(W,374648427,!0))return null;var S=W.pos;at(W,!1);var p=at(W,!0)+W.pos-S,n=new Uint8Array(K+12+q+p),A=new DataView(n.buffer);n.set(new Uint8Array(W.W.buffer,W.W.byteOffset+J,K));A.setUint32(K,408125543);A.setUint32(K+4,33554431);A.setUint32(K+8,4294967295); n.set(new Uint8Array(W.W.buffer,W.W.byteOffset+I,q),K+12);n.set(new Uint8Array(W.W.buffer,W.W.byteOffset+S,p),K+12+q);return n}; Qp=function(W){var J=W.pos;W.pos=0;var K=1E6;ht(W,[408125543,357149030,2807729])&&(K=N$(W));W.pos=J;return K}; vmT=function(W,J){var K=W.pos;W.pos=0;if(W.W.getUint8(W.pos)!==160&&!Cm(W)||!F9(W,160))return W.pos=K,NaN;at(W,!0);var I=W.pos;if(!F9(W,161))return W.pos=K,NaN;at(W,!0);Zi(W);var q=Zi(W)<<8|Zi(W);W.pos=I;if(!F9(W,155))return W.pos=K,NaN;I=N$(W);W.pos=K;return(q+I)*J/1E9}; Cm=function(W){if(!YSA(W)||!F9(W,524531317))return!1;at(W,!0);return!0}; YSA=function(W){if(W.J2()){if(!F9(W,408125543))return!1;at(W,!0)}return!0}; ht=function(W,J){for(var K=0;K0){var I=yyD(J.substring(K+1));g.BR(I,function(q,S){this.set(S,q)},W); J=J.substring(0,K)}J=ddX(J);g.BR(J,function(q,S){this.set(S,q)},W)}; cyH=function(W){return W.tC}; P1D=function(W){var J=W.tC.xm(),K=[];g.BR(W.W,function(q,S){K.push(S+"="+q)}); if(!K.length)return J;var I=K.join("&");W=NGH(W.tC)?"&":"?";return J+W+I}; M$=function(W,J){var K=new g.TV(J);(J=K.get("req_id"))&&W.set("req_id",J);g.BR(W.W,function(I,q){K["set"](q,null)}); return K}; XWQ=function(){this.G=this.K=this.mm=this.timedOut=this.started=this.T=this.W=0}; gA=function(W){W.T=(0,g.L)();W.started=0;W.timedOut=0;W.mm=0}; Gw=function(W,J){var K=W.started+W.mm*4;J&&(K+=W.K);K=Math.max(0,K-3);return Math.pow(1.6,K)}; $l=function(W,J){W[J]||(W[J]=new XWQ);return W[J]}; xl=function(W){this.C=this.Z=this.j=this.G=0;this.N=this.S=!1;this.W=W;this.K=W.clone()}; WjH=function(W,J,K){if(Eq(W.W))return!1;var I=$l(K,V_(W.W));if(I.timedOut<1&&I.mm<1)return!1;I=I.timedOut+I.mm;W=OX(W,J);K=$l(K,V_(W));return K.timedOut+K.mm+01?J=J.ez:(K=$l(K,HQ(W,W.qd(J,K),J)),J=Math.max(W.j,K.timedOut)+J.mY*(W.G-W.j)+.25*W.Z,J=J>3?1E3*Math.pow(1.6,J-3):0);return J===0?!0:W.C+J<(0,g.L)()}; iDX=function(W,J,K){W.W.set(J,K);W.K.set(J,K);W.T&&W.T.set(J,K)}; JMc=function(W,J,K,I,q){++W.G;J&&++W.j;V_(K.tC).startsWith("redirector.")&&(W.W=W.K.clone(),delete W.T,I.rg&&delete q[V_(W.W)])}; EX=function(W){return W?(W.itag||"")+";"+(W.lmt||0)+";"+(W.xtags||""):""}; eZ=function(W,J,K,I){this.initRange=K;this.indexRange=I;this.W=null;this.G=!1;this.S=0;this.T=this.fd=this.K=null;this.info=J;this.c7=new xl(W)}; Rt=function(W,J){this.start=W;this.end=J;this.length=J-W+1}; be=function(W){W=W.split("-");var J=Number(W[0]),K=Number(W[1]);if(!isNaN(J)&&!isNaN(K)&&W.length===2&&(W=new Rt(J,K),!isNaN(W.start)&&!isNaN(W.end)&&!isNaN(W.length)&&W.length>0))return W}; BQ=function(W,J){return new Rt(W,W+J-1)}; KjI=function(W){return W.end==null?{start:String(W.start)}:{start:String(W.start),end:String(W.end)}}; mN=function(W){if(!W)return new Rt(0,0);var J=Number(W.start);W=Number(W.end);if(!isNaN(J)&&!isNaN(W)&&(J=new Rt(J,W),J.length>0))return J}; rA=function(W,J,K,I,q,S,p,n,A,D,f,h){I=I===void 0?"":I;this.type=W;this.W=J;this.range=K;this.source=I;this.pU=f;this.clipId=h===void 0?"":h;this.C=[];this.N="";this.x3=-1;this.PS=this.sI=0;this.N=I;this.x3=q>=0?q:-1;this.startTime=S||0;this.duration=p||0;this.K=n||0;this.G=A>=0?A:this.range?this.range.length:NaN;this.j=this.range?this.K+this.G===this.range.length:D===void 0?!!this.G:D;this.range?(this.T=this.startTime+this.duration*this.K/this.range.length,this.Z=this.duration*this.G/this.range.length, this.S=this.T+this.Z):I0Q(this)}; I0Q=function(W){qED?(W.T=W.startTime+Math.min(W.duration*W.K/W.W.info.Cy,W.duration),W.Z=Math.min(W.duration,W.duration*W.G/W.W.info.Cy),W.S=Math.min(W.T+W.Z,W.startTime+W.duration)):(W.T=W.startTime,W.Z=W.duration,W.S=W.T+W.Z)}; SEH=function(W,J,K){var I=!(!J||J.W!==W.W||J.type!==W.type||J.x3!==W.x3);return K?I&&!!J&&(W.range&&J.range?J.range.end===W.range.end:J.range===W.range)&&J.K+J.G===W.K+W.G:I}; ot=function(W){return W.type===1||W.type===2}; Lm=function(W){return W.type===3||W.type===6}; kl=function(W,J){return W.W===J.W?W.range&&J.range?W.range.start+W.K+W.G===J.range.start+J.K:W.x3===J.x3?W.K+W.G===J.K:W.x3+1===J.x3&&J.K===0&&W.j:!1}; l0L=function(W,J){return W.x3!==J.x3&&J.x3!==W.x3+1||W.type!==J.type?!1:kl(W,J)?!0:Math.abs(W.T-J.T)<=1E-6&&W.x3===J.x3?!1:pFT(W,J)}; pFT=function(W,J){return kl(W,J)||Math.abs(W.S-J.T)<=1E-6||W.x3+1===J.x3&&J.K===0&&W.j?!0:!1}; zw=function(W){return W.x3+(W.j?1:0)}; nXy=function(W){W.length===1||g.vo(W,function(K){return!!K.range}); for(var J=1;J=J.range.start+J.K&&W.range.start+W.K+W.G<=J.range.start+J.K+J.G:W.x3===J.x3&&W.K>=J.K&&(W.K+W.G<=J.K+J.G||J.j)}; FjQ=function(W,J){return W.W!==J.W?!1:W.type===4&&J.type===3&&W.W.xA()?(W=W.W.uH(W),ii(W,function(K){return FjQ(K,J)})):W.x3===J.x3&&!!J.G&&J.K+J.G>W.K&&J.K+J.G<=W.K+W.G}; Yl=function(W,J){var K=J.x3;W.N="updateWithSegmentInfo";W.x3=K;if(W.startTime!==J.startTime||W.duration!==J.duration)W.startTime=J.startTime+W.sI,W.duration=J.duration,I0Q(W)}; sX=function(W,J){var K=this;this.Ly=W;this.T=this.W=null;this.j=this.vP=NaN;this.qd=this.requestId=null;this.G$={fIy:function(){return K.range}}; this.c7=W[0].W.c7;this.K=J||"";this.Ly[0].range&&this.Ly[0].G>0&&(AMD(W)?(this.range=nXy(W),this.G=this.range.length):(this.range=this.Ly[this.Ly.length-1].range,this.G=DyT(W)))}; cQ=function(W){return!ot(W.Ly[W.Ly.length-1])}; PQ=function(W){return W.Ly[W.Ly.length-1].type===4}; g.X9=function(W,J,K){K=W.qd===null?W.c7.qd(J,K,W.Ly[0].type):W.qd;if(W.W){J=K?R_(W.W,J.Rr):W.W;var I=new wA(J);I.get("alr")||I.set("alr","yes");W.K&&ssy(I,W.K)}else/http[s]?:\/\//.test(W.K)?I=new wA(new g.TV(W.K)):(I=Tw(W.c7,K,J),W.K&&ssy(I,W.K));(J=W.range)?I.set("range",J.toString()):W.Ly[0].W.E4()&&W.Ly.length===1&&W.Ly[0].K&&I.set("range",W.Ly[0].K+"-");W.requestId&&I.set("req_id",W.requestId);isNaN(W.vP)||I.set("headm",W.vP.toString());isNaN(W.j)||I.set("mffa",W.j+"ms");W.urlParams&&g.BR(W.urlParams, function(q,S){I.set(S,q)}); return I}; a0H=function(W){if(W.range)return W.G;W=W.Ly[0];return Math.round(W.Z*W.W.info.Cy)}; urQ=function(W,J){return Math.max(0,W.Ly[0].T-J)}; WC=function(W,J,K,I,q,S){S=S===void 0?0:S;eZ.call(this,W,J,I,void 0);this.j=K;this.kh=S;this.index=q||new g.mD}; NQT=function(W,J,K,I,q){this.x3=W;this.startSecs=J;this.vt=K;this.W=I||NaN;this.K=q||NaN}; iz=function(W,J,K){for(;W;W=W.parentNode)if(W.attributes&&(!K||W.nodeName===K)){var I=W.getAttribute(J);if(I)return I}return""}; JR=function(W,J){for(;W;W=W.parentNode){var K=W.getElementsByTagName(J);if(K.length>0)return K[0]}return null}; dyI=function(W){if(!W)return 0;var J=W.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return J?(Number(J[2])|0)*3600+(Number(J[4])|0)*60+(Number(J[6])|0):Number(W)|0}; yMX=function(W){return W.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?W+"Z":W}; Ks=function(){this.W=[];this.K=null;this.S=0;this.G=[];this.j=!1;this.Z="";this.T=-1}; UyA=function(W){var J=W.G;W.G=[];return J}; ZDQ=function(){this.T=[];this.W=null;this.K={};this.G={}}; MHH=function(W,J){var K=[];J=Array.from(J.getElementsByTagName("SegmentTimeline"));J=g.d(J);for(var I=J.next();!I.done;I=J.next()){I=I.value;var q=I.parentNode.parentNode,S=null;q.nodeName==="Period"?S=QlH(W):q.nodeName==="AdaptationSet"?(q=q.getAttribute("id")||q.getAttribute("mimetype")||"",S=CrA(W,q)):q.nodeName==="Representation"&&(q=q.getAttribute("id")||"",S=wFH(W,q));if(S==null)return;S.update(I);g.QG(K,UyA(S))}g.QG(W.T,K);GAX(W.T,function(p){return p.startSecs*1E3+p.W})}; gXQ=function(W){W.W&&(W.W.W=[]);g.BR(W.K,function(J){J.W=[]}); g.BR(W.G,function(J){J.W=[]})}; QlH=function(W){W.W||(W.W=new Ks);return W.W}; CrA=function(W,J){W.K[J]||(W.K[J]=new Ks);return W.K[J]}; wFH=function(W,J){W.G[J]||(W.G[J]=new Ks);return W.G[J]}; qD=function(W){var J=W===void 0?{}:W;W=J.kh===void 0?0:J.kh;var K=J.GZ===void 0?!1:J.GZ;var I=J.AQ===void 0?0:J.AQ;var q=J.Qw===void 0?0:J.Qw;var S=J.X4===void 0?Infinity:J.X4;var p=J.Vn===void 0?0:J.Vn;var n=J.jP===void 0?!1:J.jP;J=J.pO===void 0?!1:J.pO;g.mD.call(this);this.Im=this.sJ=-1;this.Zt=W;this.AQ=I;this.GZ=K;this.Qw=q;this.X4=S;this.Vn=p;((this.jP=n)||isFinite(S)&&this.X4>0)&&K&&IU&&(this.K=!1,this.G="postLive");this.pO=J}; SO=function(W,J){return O$(W.segments,function(K){return J-K.x3})}; ps=function(W,J,K){K=K===void 0?{}:K;WC.call(this,W,J,"",void 0,void 0,K.kh||0);this.index=new qD(K)}; lz=function(W,J,K){eZ.call(this,W,J);this.j=K;W=this.index=new g.mD;W.K=!1;W.G="d"}; GLv=function(W,J,K){var I=W.index.Qa(J),q=W.index.getStartTime(J),S=W.index.getDuration(J);K?S=K=0:K=W.info.Cy*S;return new sX([new rA(3,W,void 0,"otfCreateRequestInfoForSegment",J,q,S,0,K)],I)}; $yX=function(W,J){if(!W.index.isLoaded()){var K=[],I=J.T;J=J.j.split(",").filter(function(f){return f.length>0}); for(var q=0,S=0,p=0,n=/^(\d+)/,A=/r=(\d+)/,D=0;DI)return null}else if(K&&(K=W.W,I=J.W,K=!(I.EM.length?MTD(K,I.EM[0]):1)),K)return null;K=new rA(W.info.type,W.info.W,W.info.range,W.info.N,W.info.x3,W.info.startTime,W.info.duration,W.info.K,W.info.G,W.info.j,W.info.pU,W.info.clipId);I=J.info;K.G+=I.G;K.range&&(K.Z+=I.Z);K.S=I.S;K.j=I.j;I=new ye;Ur(I,W.W);Ur(I,J.W);K=new ns(K,I);K.K= J.K||W.K;K.G=W.G!==-1?W.G:J.G;K.T=W.T!==-1?W.T:J.T;return K}; g.De=function(W){g.JM(W.info.W.info)||W.info.W.info.Pt();if(W.G!==-1)return W.G;if(W.K&&xdL(W.K))return W.G=xdL(W.K),W.G;if(g.JM(W.info.W.info)){var J=W.EA();for(var K=W.info.W.W,I=NaN,q=NaN,S=0;SZ(J,S);){var p=pm(J,S);p.type===1936286840?q=p.data.getUint32(p.dataOffset+8):p.type===1836476516?q=g.Km(p):p.type===1952867444&&isNaN(I)&&(I=g.nm(p));S=le(p.type)?S+8:S+p.size}!q&&K&&(q=It(K));J=I/q}else J=new jZ(W.EA()),K=W.j?J:new jZ(new DataView(W.info.W.W.buffer)),I=Qp(K),K=J.pos,J.pos=0,Cm(J)?F9(J, 231)?(I=N$(J)*I/1E9,J.pos=K,J=I):(J.pos=K,J=NaN):(J.pos=K,J=NaN);W.G=J||W.info.T;return W.G}; TQQ=function(W,J){W.timestampOffset>0&&(J-=W.timestampOffset);var K=g.De(W)+J;ODD(W,K);W.timestampOffset=J}; ODD=function(W,J){g.JM(W.info.W.info)||W.info.W.info.Pt();W.G=J;if(g.JM(W.info.W.info)){var K=W.EA();W=W.info.W.W;for(var I=NaN,q=NaN,S=0;SZ(K,S);){var p=pm(K,S);isNaN(I)&&(p.type===1936286840?I=p.data.getUint32(p.dataOffset+8):p.type===1836476516&&(I=g.Km(p)));if(p.type===1952867444){!I&&W&&(I=It(W));var n=g.nm(p);isNaN(q)&&(q=Math.round(J*I)-n);var A=p;n+=q;if(A.data.getUint8(A.dataOffset)){var D=A.data;A=A.dataOffset+4;D.setUint32(A,Math.floor(n/4294967296));D.setUint32(A+4,n&4294967295)}else A.data.setUint32(A.dataOffset+ 4,n)}S=le(p.type)?S+8:S+p.size}return!0}K=new jZ(W.EA());W=W.j?K:new jZ(new DataView(W.info.W.W.buffer));I=Qp(W);W=K.pos;K.pos=0;if(Cm(K)&&F9(K,231))if(q=at(K,!0),J=Math.floor(J*1E9/I),Math.ceil(Math.log(J)/Math.log(2)/8)>q)J=!1;else{for(I=q-1;I>=0;I--)K.W.setUint8(K.pos+I,J&255),J>>>=8;K.pos=W;J=!0}else J=!1;return J}; fs=function(W,J){J=J===void 0?!1:J;var K=jO(W);W=J?0:W.info.Z;return K||W}; jO=function(W){g.JM(W.info.W.info)||W.info.W.info.Pt();if(W.K&&W.info.type===6)return W.K.kh;if(g.JM(W.info.W.info)){var J=W.EA();var K=0;J=g.Di(J,1936286840);J=g.d(J);for(var I=J.next();!I.done;I=J.next())I=RyT(I.value),K+=I.dX[0]/I.timescale;K=K||NaN;if(!(K>=0))a:{K=W.EA();J=W.info.W.W;for(var q=I=0,S=0;SZ(K,I);){var p=pm(K,I);if(p.type===1836476516)q=g.Km(p);else if(p.type===1836019558){!q&&J&&(q=It(J));if(!q){K=NaN;break a}var n=g.E(q$(p.data,p.dataOffset,1953653094)),A=n;n=q;var D=g.E(q$(A.data, A.dataOffset,1952868452));A=g.E(q$(A.data,A.dataOffset,1953658222));var f=kA(D);kA(D);f&2&&kA(D);D=f&8?kA(D):0;var h=kA(A),t=h&1;f=h&4;var F=h&256,a=h&512,y=h&1024;h&=2048;var U=zV(A);t&&kA(A);f&&kA(A);for(var Q=t=0;Q2048?"":J.indexOf("https://")===0?J:""}; ND=function(W,J,K){J.match(kLy);return W(J,K).then(function(I){var q=g.LjQ(I.xhr);return q?ND(W,q,K):I.xhr})}; Ze=function(W,J,K){W=W===void 0?"":W;J=J===void 0?null:J;K=K===void 0?!1:K;g.Ao.call(this);var I=this;this.sourceUrl=W;this.isLivePlayback=K;this.OI=this.duration=0;this.isPremiere=this.jP=this.T=this.isLiveHeadPlayable=this.isLive=this.K=!1;this.X4=this.Qw=0;this.isOtf=this.dl=!1;this.SZ=(0,g.L)();this.PS=Infinity;this.W={};this.G=new Map;this.state=this.Dt=0;this.timeline=null;this.isManifestless=!1;this.G8=[];this.S=null;this.XW=0;this.j="";this.jZ=NaN;this.vS=this.qD=this.timestampOffset=this.Z= 0;this.ez=this.Ou=NaN;this.bb=0;this.Y3=this.C=!1;this.D0=[];this.FW={};this.sI=NaN;this.G$={Xhh:function(n){df(I,n)}}; var q;this.bO=(q=J)==null?void 0:q.HS("html5_use_network_error_code_enums");zPQ=!!J&&J.HS("html5_modern_vp9_mime_type");var S;yL=!((S=J)==null||!S.HS("html5_enable_flush_during_seek"))&&g.ku();var p;UJ=!((p=J)==null||!p.HS("html5_enable_reset_audio_decoder"))&&g.ku()}; vXQ=function(W){return g.oo(W.W,function(J){return!!J.info.video&&J.info.video.qualityOrdinal>=2160})}; hyT=function(W){return g.oo(W.W,function(J){return!!J.info.video&&J.info.video.isHdr()})}; wE=function(W){return g.oo(W.W,function(J){return!!J.info.aB})}; g.YEQ=function(W){return g.oo(W.W,function(J){return pD(J.info.mimeType)})}; slc=function(W){return g.oo(W.W,function(J){return J.info.video?J.info.video.projectionType==="EQUIRECTANGULAR":!1})}; cMy=function(W){return g.oo(W.W,function(J){return J.info.video?J.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; PrT=function(W){return g.oo(W.W,function(J){return J.info.video?J.info.video.projectionType==="MESH":!1})}; XFv=function(W){return g.oo(W.W,function(J){return J.info.video?J.info.video.stereoLayout===1:!1})}; WZQ=function(W){return Hvy(W.W,function(J){return J.info.video?J.Cv():!0})}; ZT=function(W){return g.oo(W.W,function(J){return Eq(J.c7.W)})}; df=function(W,J){W.W[J.info.id]=J;W.G.set(EX(g.Il(J.info,W.dl)),J)}; wf=function(W,J,K){K=K===void 0?0:K;var I=W.mimeType||"",q=W.itag;var S=W.xtags;q=q?q.toString():"";S&&(q+=";"+S);S=q;if(SH(I)){var p=W.width||640;q=W.height||360;var n=W.fps,A=W.qualityLabel,D=W.colorInfo,f=W.projectionType,h;W.stereoLayout&&(h=iFQ[W.stereoLayout]);var t=rMy(W)||void 0;if(D==null?0:D.primaries)var F=JOH[D.primaries]||void 0;p=new LB(p,q,n,f,h,void 0,A,t,F);I=QL(I,p,vW[W.itag||""]);yL&&(I+="; enableflushduringseek=true");UJ&&(I+="; enableresetaudiodecoder=true")}var a;if(qy(I)){var y= W.audioSampleRate;h=W.audioTrack;y=new mv(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,q=h.id,h=h.audioIsDefault,F&&(a=new g.uz(F,q||"",!!h)))}var U;W.captionTrack&&(A=W.captionTrack,h=A.displayName,F=A.vssId,q=A.languageCode,n=A.kind,A=A.id,h&&F&&q&&(U=new BQH(h,F,q,n,W.xtags,A)));h=Number(W.bitrate)/8;F=Number(W.contentLength);q=Number(W.lastModified);A=W.drmFamilies;n=W.type;K= K&&F?F/K:0;W=Number(W.approxDurationMs);if(J&&A){var Q={};A=g.d(A);for(D=A.next();!D.done;D=A.next())(D=Cs[D.value])&&(Q[D]=J[D])}return new Ym(S,I,{audio:y,video:p,pE:a,aB:Q,Cy:h,QM:K,contentLength:F,lastModified:q,captionTrack:U,streamType:n,approxDurationMs:W})}; MD=function(W,J,K){K=K===void 0?0:K;var I=W.type;var q=W.itag;var S=W.xtags;S&&(q=W.itag+";"+S);if(SH(I)){var p=(W.size||"640x360").split("x");p=new LB(+p[0],+p[1],+W.fps,W.projection_type,+W.stereo_layout,void 0,W.quality_label,W.eotf,W.primaries);I=QL(I,p,vW[W.itag]);yL&&(I+="; enableflushduringseek=true");UJ&&(I+="; enableresetaudiodecoder=true")}var n;if(qy(I)){var A=new mv(+W.audio_sample_rate||void 0,+W.audio_channels||0,W.spatial_audio_type,!!W.drc);W.name&&(n=new g.uz(W.name,W.audio_track_id, W.isDefault==="1"))}var D;W.caption_display_name&&W.caption_vss_id&&W.caption_language_code&&(D=new BQH(W.caption_display_name,W.caption_vss_id,W.caption_language_code,W.caption_kind,W.xtags,W.caption_id));S=Number(W.bitrate)/8;var f=Number(W.clen),h=Number(W.lmt);K=K&&f?f/K:0;if(J&&W.drm_families){var t={};for(var F=g.d(W.drm_families.split(",")),a=F.next();!a.done;a=F.next())a=a.value,t[a]=J[a]}return new Ym(q,I,{audio:A,video:p,pE:n,aB:t,Cy:S,QM:K,contentLength:f,lastModified:h,captionTrack:D, streamType:W.stream_type,approxDurationMs:Number(W.approx_duration_ms)})}; KZH=function(W){return ii(W,function(J){return"FORMAT_STREAM_TYPE_OTF"===J.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; IOH=function(W){return ii(W,function(J){return"FORMAT_STREAM_TYPE_OTF"===J.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; qQQ=function(W,J){return W.timeline?wv(W.timeline.T,J):W.G8.length?wv(W.G8,J):[]}; gf=function(W,J,K){J=J===void 0?"":J;K=K===void 0?"":K;W=new g.TV(W,!0);W.set("alr","yes");K&&(K=VXc(decodeURIComponent(K)),W[l[9]](J,encodeURIComponent(K)));return W}; nFX=function(W,J){var K=iz(J,"id");K=K.replace(":",";");var I=iz(J,"mimeType"),q=iz(J,"codecs");I=q?I+'; codecs="'+q+'"':I;q=Number(iz(J,"bandwidth"))/8;var S=Number(JR(J,"BaseURL").getAttribute(W.j+":contentLength")),p=W.duration&&S?S/W.duration:0;if(SH(I)){var n=Number(iz(J,"width"));var A=Number(iz(J,"height")),D=Number(iz(J,"frameRate")),f=SQQ(iz(J,W.j+":projectionType"));a:switch(iz(J,W.j+":stereoLayout")){case "layout_left_right":var h=1;break a;case "layout_top_bottom":h=2;break a;default:h= 0}n=new LB(n,A,D,f,h)}if(qy(I)){var t=Number(iz(J,"audioSamplingRate"));var F=Number(iz(J.getElementsByTagName("AudioChannelConfiguration")[0],"value"));A=p5H(iz(J,W.j+":spatialAudioType"));t=new mv(t,F,A);a:{F=iz(J,"lang")||"und";if(A=JR(J,"Role"))if(f=iz(A,"value")||"",g.Yr(lOQ,f)){A=F+"."+lOQ[f];D=f==="main";W=iz(J,W.j+":langName")||F+" - "+f;F=new g.uz(W,A,D);break a}F=void 0}}if(J=JR(J,"ContentProtection"))if(J.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var a={};for(J= J.firstChild;J!=null;J=J.nextSibling)J instanceof Element&&/SystemURL/.test(J.nodeName)&&(W=J.getAttribute("type"),A=J.textContent,W&&A&&(a[W]=A.trim()))}else a=void 0;return new Ym(K,I,{audio:t,video:n,pE:F,aB:a,Cy:q,QM:p,contentLength:S})}; SQQ=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"}}; p5H=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"}}; DeA=function(W,J){J=J===void 0?"":J;W.state=1;W.SZ=(0,g.L)();return oXL(J||W.sourceUrl).then(function(K){if(!W.Iu()){W.Dt=K.status;K=K.responseText;var I=new DOMParser;K=hz(I,$ov(K),"text/xml").getElementsByTagName("MPD")[0];W.PS=dyI(iz(K,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(K.attributes){I=g.d(K.attributes);for(var q=I.next();!q.done;q=I.next())if(q=q.value,q.value==="http://youtube.com/yt/2012/10/10"){I=q.name.split(":")[1];break b}}I=""}W.j=I;W.isLive=W.PS=W.PS}; fOc=function(W){W.S&&W.S.stop()}; AOQ=function(W){var J=W.PS;isFinite(J)&&(Gs(W)?W.refresh():(J=Math.max(0,W.SZ+J-(0,g.L)()),W.S||(W.S=new g.P0(W.refresh,J,W),g.B(W,W.S)),W.S.start(J)))}; h9c=function(W){W=W.W;for(var J in W){var K=W[J].index;if(K.isLoaded())return K.FD()+1}return 0}; $i=function(W){return W.qD?W.qD-(W.Z||W.timestampOffset):0}; xi=function(W){return W.vS?W.vS-(W.Z||W.timestampOffset):0}; OJ=function(W){if(!isNaN(W.jZ))return W.jZ;var J=W.W,K;for(K in J){var I=J[K].index;if(I.isLoaded()&&!pD(J[K].info.mimeType)){J=0;for(K=I.Bg();K<=I.FD();K++)J+=I.getDuration(K);J/=I.VI();J=Math.round(J/.5)*.5;I.VI()>10&&(W.jZ=J);return J}if(W.isLive&&(I=J[K],I.kh))return I.kh}return NaN}; tKQ=function(W,J){W=EcQ(W.W,function(I){return I.index.isLoaded()}); if(!W)return NaN;W=W.index;var K=W.sW(J);return W.getStartTime(K)===J?J:K=0&&q.segments.splice(S,1)}}}; aOy=function(W){for(var J in W.W)pD(W.W[J].info.mimeType)||wWQ(W.W[J].index,Infinity)}; VL=function(W,J,K){for(var I in W.W){var q=W.W[I].index,S=J,p=K;q.GZ&&(S&&(q.sJ=Math.max(q.sJ,S)),p&&(q.Im=Math.max(q.Im||0,p)))}K&&(W.sI=K/1E3)}; ugQ=function(W){W.vS=0;W.qD=0;W.bb=0}; EJ=function(W){return W.Y3&&W.isManifestless?W.isLiveHeadPlayable:W.isLive}; QL=function(W,J,K){eO===null&&(eO=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(zPQ&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return eO||K!=="9"&&K!=="("?eO||K!=="9h"&&K!=="(h"||(W='video/webm; codecs="vp9.2"'):W='video/webm; codecs="vp9"',W;if(!eO&&!RU||W!=='video/webm; codecs="vp9"'&&W!=='video/webm; codecs="vp9.2"')return W; K="00";var I="08",q="01",S="01",p="01";W==='video/webm; codecs="vp9.2"'&&(K="02",I="10",J.primaries==="bt2020"&&(p=q="09"),J.W==="smpte2084"&&(S="16"),J.W==="arib-std-b67"&&(S="18"));return'video/webm; codecs="'+["vp09",K,"51",I,"01",q,S,p,"00"].join(".")+'"'}; BC=function(W,J,K){W=""+W+(J>49?"p60":J>32?"p48":"");J=P1()[W];if(J!=null&&J>0)return J;J=bz.get(W);if(J!=null&&J>0)return J;K=K==null?void 0:K.get(W);return K!=null&&K>0?K:8192}; Nhy=function(W){this.QK=W;this.bb=this.l8=this.vS=this.j=this.T=this.bO=this.Y3=this.PS=!1;this.Z=this.S=0;this.FW=!1;this.sI=!0;this.D0=!1;this.Qk=0;this.Hk=this.G8=!1;this.fE=!0;this.SZ=this.jZ=!1;this.W={};this.sT=this.Fz=this.disableAv1=this.eZ=this.kK=this.Js=this.P7=this.K=this.N=!1;this.Lk=this.QK.Y("html5_disable_aac_preference");this.oG=Infinity;this.XW=0;this.qD=this.QK.ND();this.Tx=this.QK.experiments.HS("html5_enable_vp9_fairplay");this.Ym=this.QK.Y("html5_force_av1_for_testing");this.OI= g.FV(this.QK.experiments,"html5_av1_ordinal_cap");this.yr=this.QK.Y("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.nk=this.QK.Y("html5_account_onesie_format_selection_during_format_filter");this.Cy=g.FV(this.QK.experiments,"html5_max_byterate");this.SI=this.QK.Y("html5_enable_iamf_audio");this.mz=this.QK.experiments.HS("html5_allow_capability_merge");this.iU=this.QK.Y("html5_enable_encrypted_av1")}; tpA=function(W){if(W.Y3)return["f"];if(g.ov("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var J=["9h","9","h","8"];W.iU&&J.push("1e");J=J.concat(["(h","(","H","*"]);W.G8&&(J.unshift("1"),J.unshift("1h"));W.l8&&J.unshift("h");W.C&&(J=(deD[W.C]||[W.C]).concat(J));return J}; lEA=function(W){var J=["o","a","A"];W.XW===1&&(W.T&&(J=["mac3","MAC3"].concat(J)),W.j&&(J=["meac3","MEAC3"].concat(J)),W.SI&&(J=["i","I"].concat(J)));W.PS&&(J=["so","sa"].concat(J));!W.bb||W.vS||W.G||W.Lk||J.unshift("a");W.G&&(J=(deD[W.G]||[W.G]).concat(J));return J}; mI=function(W,J,K,I){J=J===void 0?{}:J;if(I===void 0?0:I)return J.disabled=1,0;if(xA(W.j,Oq.AV1_CODECS)&&xA(W.j,Oq.HEIGHT)&&xA(W.j,Oq.BITRATE))return J.isCapabilityUsable=1,8192;try{var q=owQ();if(q)return J.localPref=q}catch(n){}I=1080;q=navigator.hardwareConcurrency;q<=2&&(I=480);J.coreCount=q;if(q=g.FV(W.experiments,"html5_default_av1_threshold"))I=J["default"]=q;!W.Y("html5_disable_av1_arm_check")&&htT()&&(J.isArm=1,I=240);if(W=W.j.sI)J.mcap=W,I=Math.max(I,W);if(K){var S,p;if(W=(S=K.videoInfos.find(function(n){return X_(n)}))== null?void 0:(p=S.K)==null?void 0:p.powerEfficient)I=8192,J.isEfficient=1; K=K.videoInfos[0].video;S=Math.min(BC("1",K.fps),BC("1",30));J.perfCap=S;I=Math.min(I,S);K.isHdr()&&!W&&(J.hdr=1,I*=.75)}else K=BC("1",30),J.perfCap30=K,I=Math.min(I,K),K=BC("1",60),J.perfCap60=K,I=Math.min(I,K);return J.av1Threshold=I}; rf=function(W,J,K,I){this.flavor=W;this.keySystem=J;this.K=K;this.experiments=I;this.W={};this.FW=this.keySystemAccess=null;this.qr=this.LS=-1;this.Rm=null;this.G=!!I&&I.HS("edge_nonprefixed_eme");I&&I.HS("html5_enable_vp9_fairplay")}; Ls=function(W){return W.G?!1:!W.keySystemAccess&&!!oU()&&W.keySystem==="com.microsoft.playready"}; ki=function(W){return W.keySystem==="com.microsoft.playready"}; zs=function(W){return!W.keySystemAccess&&!!oU()&&W.keySystem==="com.apple.fps.1_0"}; vC=function(W){return W.keySystem==="com.youtube.fairplay"}; Yi=function(W){return W.keySystem==="com.youtube.fairplay.sbdl"}; g.sJ=function(W){return W.flavor==="fairplay"}; oU=function(){var W=window,J=W.MSMediaKeys;Yu()&&!J&&(J=W.WebKitMediaKeys);return J&&J.isTypeSupported?J:null}; PC=function(W){return navigator.requestMediaKeySystemAccess?g.ES&&!g.ku()?Mi("45"):g.vM||g.FH?W.HS("edge_nonprefixed_eme"):g.cC?Mi("47"):g.dg&&W.HS("html5_enable_safari_fairplay")?!1:!0:!1}; yOH=function(W,J,K,I){var q=z_(),S=(K=q||K&&Yu())?["com.youtube.fairplay"]:["com.widevine.alpha"];J&&S.unshift("com.youtube.widevine.l3");q&&I&&S.unshift("com.youtube.fairplay.sbdl");return K?S:W?[].concat(g.w(S),g.w(XA.playready)):[].concat(g.w(XA.playready),g.w(S))}; Ww=function(W,J,K,I,q){I=I===void 0?!1:I;g.R.call(this);this.QK=J;this.useCobaltWidevine=I;this.WS=q;this.K=[];this.G={};this.W={};this.callback=null;this.j=!1;this.T=[];this.initialize(W,!K)}; ZFv=function(W,J){W.callback=J;W.T=[];PC(W.QK.experiments)?i8(W):UeQ(W)}; i8=function(W){if(!W.Iu())if(W.K.length===0)W.callback(W.T);else{var J=W.K[0],K=W.G[J],I=Q50(W,K);if(Jr&&Jr.keySystem===J&&Jr.lt8===JSON.stringify(I))W.WS("remksa",{re:!0}),CpQ(W,K,Jr.keySystemAccess);else{var q,S;W.WS("remksa",{re:!1,ok:(S=(q=Jr)==null?void 0:q.keySystem)!=null?S:""});Jr=void 0;navigator.requestMediaKeySystemAccess(J,I).then(Ol(function(p){CpQ(W,K,p,I)}),Ol(function(){W.j=!W.j&&W.G[W.K[0]].flavor==="widevine"; W.j||W.K.shift();i8(W)}))}}}; CpQ=function(W,J,K,I){if(!W.Iu()){I&&(Jr={keySystem:J.keySystem,keySystemAccess:K,lt8:JSON.stringify(I)});J.keySystemAccess=K;if(ki(J)){K=HW();I=g.d(Object.keys(W.W[J.flavor]));for(var q=I.next();!q.done;q=I.next())q=q.value,J.W[q]=!!K.canPlayType(q)}else{K=J.keySystemAccess.getConfiguration();if(K.audioCapabilities)for(I=g.d(K.audioCapabilities),q=I.next();!q.done;q=I.next())w5X(W,J,q.value);if(K.videoCapabilities)for(K=g.d(K.videoCapabilities),I=K.next();!I.done;I=K.next())w5X(W,J,I.value)}W.T.push(J); W.useCobaltWidevine||W.Y("html5_enable_vp9_fairplay")&&Yi(J)?(W.K.shift(),i8(W)):W.callback(W.T)}}; w5X=function(W,J,K){W.Y("log_robustness_for_drm")?J.W[K.contentType]=K.robustness||!0:J.W[K.contentType]=!0}; Q50=function(W,J){var K={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(W.Y("html5_enable_vp9_fairplay")&&vC(J))return K.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),K.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[K];ki(J)&&(K.initDataTypes=["keyids","cenc"]);for(var I=g.d(Object.keys(W.W[J.flavor])),q=I.next();!q.done;q=I.next()){q=q.value;var S=q.indexOf("audio/")===0,p=S?K.audioCapabilities:K.videoCapabilities;J.flavor!== "widevine"||W.j?p.push({contentType:q}):S?p.push({contentType:q,robustness:"SW_SECURE_CRYPTO"}):(g.ES&&g.ov("windows nt")&&!W.Y("html5_drm_enable_moho")||p.push({contentType:q,robustness:"HW_SECURE_ALL"}),S=q,W.QK.j.G&&q.includes("vp09")&&(S=q+"; experimental=allowed"),p.push({contentType:S,robustness:"SW_SECURE_DECODE"}),K5(W.QK)==="MWEB"&&(iB()||Lz())&&(W.WS("swcrypto",{}),p.push({contentType:q,robustness:"SW_SECURE_CRYPTO"})))}return[K]}; UeQ=function(W){if(oU()&&(g.dg||c7))W.T.push(new rf("fairplay","com.apple.fps.1_0","",W.QK.experiments));else{var J=MKQ(),K=g.hW(W.K,function(I){var q=W.G[I],S=!1,p=!1,n;for(n in W.W[q.flavor])J(n,I)&&(q.W[n]=!0,S=S||n.indexOf("audio/")===0,p=p||n.indexOf("video/")===0);return S&&p}); K&&W.T.push(W.G[K]);W.K=[]}W.callback(W.T)}; MKQ=function(){var W=oU();if(W){var J=W.isTypeSupported;return function(I,q){return J(q,I)}}var K=HW(); return K&&(K.addKey||K.webkitAddKey)?function(I,q){return!!K.canPlayType(I,q)}:function(){return!1}}; gFy=function(W){this.experiments=W;this.W=2048;this.T=0;this.sI=(this.Z=this.Y("html5_streaming_resilience"))?.5:.25;var J=J===void 0?0:J;this.G=g.FV(this.experiments,"html5_media_time_weight_prop")||J;this.PS=g.FV(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.C=(this.j=this.experiments.HS("html5_consider_end_stall"))&&IP;this.K=this.experiments.HS("html5_measure_max_progress_handling");this.N=this.Y("html5_treat_requests_pre_elbow_as_metadata");this.S=this.Y("html5_media_time_weight")|| !!this.G;this.Y("html5_sabr_live_audio_early_return_fix")&&IP&&(this.W=65536)}; GhI=function(W,J){this.W=void 0;this.experimentIds=W?W.split(","):[];this.flags=iX(J||"","&");W={};J=g.d(this.experimentIds);for(var K=J.next();!K.done;K=J.next())W[K.value]=!0;this.experiments=W}; g.FV=function(W,J){W=W.flags[J];JSON.stringify(W);return Number(W)||0}; q8=function(W,J){return(W=W.flags[J])?W.toString():""}; $eQ=function(W){if(W=W.flags.html5_web_po_experiment_ids)if(W=W.replace(/\[ *(.*?) *\]/,"$1"))return W.split(",").map(Number);return[]}; xe0=function(W){if(W.W)return W.W;if(W.experimentIds.length<=1)return W.W=W.experimentIds,W.W;var J=[].concat(g.w(W.experimentIds)).map(function(I){return Number(I)}); J.sort();for(var K=J.length-1;K>0;--K)J[K]-=J[K-1];W.W=J.map(function(I){return I.toString()}); W.W.unshift("v1");return W.W}; ThT=function(W){return OFy.then(W)}; Sb=function(W,J,K){this.experiments=W;this.XW=J;this.vS=K===void 0?!1:K;this.C=!!g.sH("cast.receiver.platform.canDisplayType");this.N={};this.PS=!1;this.T=new Map;this.Z=!0;this.K=this.G=!1;this.W=new Map;this.sI=0;this.G8=this.experiments.HS("html5_disable_vp9_encrypted");this.j=this.experiments.HS("html5_enable_encrypted_av1");W=g.sH("cast.receiver.platform.getValue");if(J=!this.C&&W)J=W("max-video-resolution-vpx");this.S=J||null;HFH(this);this.G=!!(z_()&&rq()>=21)}; u_v=function(W,J,K){K=K===void 0?1:K;var I=J.itag;if(I==="0")return!0;var q=J.mimeType;if(J.z8==="1e"&&!W.j)return"dav1enc";if(X_(J)&&W.PS)return"dav1";if(J.video&&(J.video.isHdr()||J.video.primaries==="bt2020")&&!(xA(W,Oq.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(I==="338"&&!(g.ES?Mi(53):g.cC&&Mi(64)))return"dopus";var S=K;S=S===void 0?1: S;K={};J.video&&(J.video.width&&(K[Oq.WIDTH.name]=J.video.width),J.video.height&&(K[Oq.HEIGHT.name]=J.video.height),J.video.fps&&(K[Oq.FRAMERATE.name]=J.video.fps*S),J.video.W&&(K[Oq.EOTF.name]=J.video.W),J.Cy&&(K[Oq.BITRATE.name]=J.Cy*8*S),J.z8==="("&&(K[Oq.CRYPTOBLOCKFORMAT.name]="subsample"),J.video.projectionType==="EQUIRECTANGULAR"||J.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||J.video.projectionType==="MESH")&&(K[Oq.DECODETOTEXTURE.name]="true");J.audio&&J.audio.numChannels&& (K[Oq.CHANNELS.name]=J.audio.numChannels);W.G&&sS(J)&&(K[Oq.EXPERIMENTAL.name]="allowed");S=g.d(Object.keys(Oq));for(var p=S.next();!p.done;p=S.next()){p=Oq[p.value];var n;if(n=K[p.name])if(n=!(p===Oq.EOTF&&J.mimeType.indexOf("vp09.02")>0)){n=p;var A=J;n=!(W.experiments.HS("html5_ignore_h264_framerate_cap")&&n===Oq.FRAMERATE&&ubT(A))}if(n)if(xA(W,p))if(W.S){if(W.S[p.name] 1080&&J.aB&&(q+="; hdcp=2.2");return I==="227"?"hqcenc":I!=="585"&&I!=="588"&&I!=="583"&&I!=="586"&&I!=="584"&&I!=="587"&&I!=="591"&&I!=="592"||W.experiments.HS("html5_enable_new_hvc_enc")?z_()&&rq()>=21&&g.ov("appletv5")&&(I==="410"||I==="845")?!0:W.isTypeSupported(q)?!0:"tpus":"newhvc"}; p5=function(){var W=Lz()&&!Mi(29),J=g.ov("google tv")&&g.ov("chrome")&&!Mi(30);return W||J?!1:QKD()}; VK0=function(W,J,K){var I=480;J=g.d(J);for(var q=J.next();!q.done;q=J.next()){q=q.value;var S=q.video.qualityOrdinal;S<=1080&&S>I&&u_v(W,q,K)===!0&&(I=S)}return I}; g.l8=function(W,J){J=J===void 0?!1:J;return p5()&&W.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!J&&W.canPlayType(HW(),"application/x-mpegURL")?!0:!1}; e9v=function(W){EFA(function(){for(var J=g.d(Object.keys(Oq)),K=J.next();!K.done;K=J.next())xA(W,Oq[K.value])})}; xA=function(W,J){J.name in W.N||(W.N[J.name]=R9v(W,J));return W.N[J.name]}; R9v=function(W,J){if(W.S)return!!W.S[J.name];if(J===Oq.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(J===Oq.AV1_CODECS)return W.isTypeSupported("video/mp4; codecs="+J.valid)&&!W.isTypeSupported("video/mp4; codecs="+J.kD);if(J.video){var K='video/webm; codecs="vp9"';W.isTypeSupported(K)||(K='video/mp4; codecs="avc1.4d401e"')}else K='audio/webm; codecs="opus"', W.isTypeSupported(K)||(K='audio/mp4; codecs="mp4a.40.2"');return W.isTypeSupported(K+"; "+J.name+"="+J.valid)&&!W.isTypeSupported(K+"; "+J.name+"="+J.kD)}; bFQ=function(W,J){var K=0;W.T.has(J)&&(K=g.E(W.T.get(J)).xo);W.T.set(J,{xo:K+1,aA:Math.pow(2,K+1)});W.K=!0}; Mg=function(W){for(var J=[],K=g.d(W.W.keys()),I=K.next();!I.done;I=K.next()){I=I.value;var q=W.W.get(I);J.push(I+"_"+q.maxWidth+"_"+q.maxHeight)}return J.join(".")}; AyH=function(W,J){for(var K=new Map,I=g.d(W.W.keys()),q=I.next();!q.done;q=I.next()){q=q.value;var S=q.split("_")[0];J.has(S)||K.set(q,W.W.get(q))}W.W=K}; jsH=function(W,J,K){var I,q=((I=K.video)==null?void 0:I.fps)||0;I=J+"_"+q;var S=!!K.audio,p={itag:K.itag,z8:J,SF:S};if(S)p.numChannels=K.audio.numChannels;else{var n=K.video;p.maxWidth=n==null?void 0:n.width;p.maxHeight=n==null?void 0:n.height;p.maxFramerate=q;xA(W,Oq.BITRATE)&&(p.maxBitrateBps=K.Cy*8);p.EY=n==null?void 0:n.isHdr()}n=W.W.get(I);n?S||(K=Math.max(n.maxWidth||0,n.maxHeight||0)>Math.max(p.maxWidth||0,p.maxHeight||0)?n:p,J={itag:K.itag,z8:J,SF:S,maxWidth:Math.max(n.maxWidth||0,p.maxWidth|| 0),maxHeight:Math.max(n.maxHeight||0,p.maxHeight||0),maxFramerate:q,EY:K.EY},xA(W,Oq.BITRATE)&&(J.maxBitrateBps=K.maxBitrateBps),W.W.set(I,J)):W.W.set(I,p)}; fEX=function(W,J,K){var I,q=((I=K.video)==null?void 0:I.fps)||0;I=J+"_"+q;var S=!!K.audio,p=W.W.get(I);a:{var n=W.W.get(I),A=!!K.audio;if(n){if(A){var D=!1;break a}var f;if(!A&&((D=K.video)==null?0:D.height)&&n.maxHeight&&n.maxHeight>=((f=K.video)==null?void 0:f.height)){D=!1;break a}}D=!0}D&&(D=K.itag,J=p?p:{itag:D,z8:J,SF:S},S?J.numChannels=K.audio.numChannels:(S=K.video,J.maxWidth=S==null?void 0:S.width,J.maxHeight=S==null?void 0:S.height,J.maxFramerate=q,xA(W,Oq.BITRATE)&&(J.maxBitrateBps=K.Cy* 8),J.EY=S==null?void 0:S.isHdr()),W.W.set(I,J))}; HFH=function(W){var J;(J=navigator.mediaCapabilities)!=null&&J.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(K){K.smooth&&K.powerEfficient&&(W.sI=2160)})}; n5=function(){g.Ao.call(this);this.items={}}; BhL=function(W,J,K){this.encryptedClientKey=J;this.j=K;this.W=new Uint8Array(W.buffer,0,16);this.G=new Uint8Array(W.buffer,16)}; meQ=function(W){W.K||(W.K=new g.Cg(W.W));return W.K}; Ar=function(W){try{return SB(W)}catch(J){return null}}; rOL=function(W,J){if(!J&&W)try{J=JSON.parse(W)}catch(q){}if(J){W=J.clientKey?Ar(J.clientKey):null;var K=J.encryptedClientKey?Ar(J.encryptedClientKey):null,I=J.keyExpiresInSeconds?Number(J.keyExpiresInSeconds)*1E3+(0,g.L)():null;W&&K&&I&&(this.W=new BhL(W,K,I));J.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Ar(J.onesieUstreamerConfig)||void 0);this.baseUrl=J.baseUrl}}; jb=function(){this.data=new Uint8Array(2048);this.pos=0;DL||(DL=TO("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; f5=function(W,J){W.add(J==null||isNaN(J)?0:J+1)}; hr=function(W){this.W=this.K=0;this.alpha=Math.exp(Math.log(.5)/W)}; tr=function(W){this.K=W===void 0?15:W;this.values=new Float64Array(176);this.W=new Float64Array(11);this.G=new Float64Array(16)}; F2=function(W,J,K,I){K=K===void 0?.5:K;I=I===void 0?0:I;this.resolution=J;this.K=0;this.G=!1;this.BM=!0;this.W=Math.round(W*this.resolution);this.values=Array(this.W);for(W=0;W0)J=W.byterate,this.PS=!0;else{var I; K=(((I=navigator.connection)==null?void 0:I.downlink)||0)*64*1024;K>0&&(J=K,this.PS=!0)}this.G.o7(this.policy.S,J);W.delay>0&&this.N.o7(1,Math.min(W.delay,2));W.stall>0&&this.Z.o7(1,W.stall);W.init>0&&(this.SZ=Math.min(W.init,this.SZ));W.interruptions&&(this.T=this.T.concat(W.interruptions),this.T.length>16&&this.T.pop());this.sI=(0,g.L)();this.policy.Z>0&&(this.Y3=new g.P0(this.D0,this.policy.Z,this),g.B(this,this.Y3),this.Y3.start())}; u8=function(W,J,K,I){W.G.o7(I===void 0?J:I,K/J);W.S=(0,g.L)()}; LZA=function(W){W.j||(W.j=(0,g.L)());W.policy.C&&(W.S=(0,g.L)())}; khX=function(W,J){if(W.j){var K=J-W.j;if(K<6E4){if(K>1E3){var I=W.interruptions;I.push(Math.ceil(K));I.sort(function(q,S){return S-q}); I.length>16&&I.pop()}W.XW+=K}}W.j=J}; N8=function(W,J,K,I,q,S){S=S===void 0?!1:S;W.jZ.o7(J,K/J);W.S=(0,g.L)();q||W.C.o7(1,J-I);S||(W.j=0);W.sI>-1&&(0,g.L)()-W.sI>3E4&&z9L(W)}; d8=function(W,J,K){J=Math.max(J,W.K.W);W.Z.o7(1,K/J)}; yx=function(W){W=W.N.Lc()+W.vS.Lc()||0;W=isNaN(W)?.5:W;return W=Math.min(W,5)}; Ue=function(W,J,K){isNaN(K)||(W.G8+=K);isNaN(J)||(W.OI+=J)}; ZL=function(W){W=W.G.Lc();return W>0?W:1}; Qx=function(W,J,K){J=J===void 0?!1:J;K=K===void 0?1048576:K;var I=ZL(W);I=1/((W.Z.Lc()||0)*W.policy.PS+1/I);var q=W.jZ.Lc();q=q>0?q:1;var S=Math.max(I,q);W.policy.j>0&&q=4E3}; YQQ=function(W){this.experiments=W;this.W=17;this.G=13E4;this.S=.5;this.K=!1;this.sI=this.Y("html5_use_histogram_for_bandwidth");this.T=!1;this.j=g.FV(this.experiments,"html5_auxiliary_estimate_weight");this.PS=g.FV(this.experiments,"html5_stall_factor")||1;this.Z=g.FV(this.experiments,"html5_check_for_idle_network_interval_ms");this.N=this.experiments.HS("html5_trigger_loader_when_idle_network");this.C=this.experiments.HS("html5_sabr_fetch_on_idle_network_preloaded_players")}; cOH=function(W,J){W=W===void 0?{}:W;J=J===void 0?{}:J;g.R.call(this);var K=this;this.values=W;this.e9=J;this.K={};this.G=this.W=0;this.T=new g.P0(function(){s5Q(K)},1E4); g.B(this,this.T)}; w8=function(W,J){Ppy(W,J);return W.values[J]&&W.e9[J]?W.values[J]/Math.pow(2,W.W/W.e9[J]):0}; Ppy=function(W,J){W.values[J]||(J=bQI(),W.values=J.values||{},W.e9=J.halfLives||{},W.K=J.values?Object.assign({},J.values):{})}; s5Q=function(W){var J=bQI();if(J.values){J=J.values;for(var K={},I=g.d(Object.keys(W.values)),q=I.next();!q.done;q=I.next())q=q.value,J[q]&&W.K[q]&&(W.values[q]+=J[q]-W.K[q]),K[q]=w8(W,q);W.K=K}J=W.e9;K={};K.values=W.K;K.halfLives=J;g.Hd("yt-player-memory",K,2592E3)}; kK=function(W,J,K,I,q){g.R.call(this);this.webPlayerContextConfig=J;this.CA=I;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.GJ=this.sT=this.lN=this.uD=this.userDisplayName=this.userDisplayImage=this.NP="";this.W={};this.SI={};this.controlsType="0";this.nk=NaN;this.bO=!1;this.wB=(0,g.L)();this.Tx=0;this.fA=this.Ze=!1;this.f_=!0;this.preferGapless=this.ez=this.hh=this.G=this.Os=!1;this.Od=[];this.Da=!1;this.Pg=0;W=W?g.ih(W):{};J&&J.csiPageType&&(this.csiPageType=J.csiPageType);J&&J.csiServiceName&& (this.csiServiceName=J.csiServiceName);J&&J.preferGapless&&(this.preferGapless=J.preferGapless);this.experiments=new GhI(J?J.serializedExperimentIds:W.fexp,J?J.serializedExperimentFlags:W.fflags);this.forcedExperiments=J?J.serializedForcedExperimentIds:pn("",W.forced_experiments)||void 0;this.cspNonce=(J==null?0:J.cspNonce)?J.cspNonce:pn("",W.csp_nonce);this.Y("web_player_deprecated_uvr_killswitch");try{var S=document.location.toString()}catch(Kv){S=""}this.dB=S;this.ancestorOrigins=(I=window.location.ancestorOrigins)? Array.from(I):[];this.T=I$(!1,J?J.isEmbed:W.is_embed);if(J&&J.device){if(I=J.device,I.androidOsExperience&&(this.W.caoe=""+I.androidOsExperience),I.androidPlayServicesVersion&&(this.W.capsv=""+I.androidPlayServicesVersion),I.brand&&(this.W.cbrand=I.brand),I.browser&&(this.W.cbr=I.browser),I.browserVersion&&(this.W.cbrver=I.browserVersion),I.cobaltReleaseVehicle&&(this.W.ccrv=""+I.cobaltReleaseVehicle),this.W.c=I.interfaceName||"WEB",this.W.cver=I.interfaceVersion||"html5",I.interfaceTheme&&(this.W.ctheme= I.interfaceTheme),this.W.cplayer=I.interfacePlayerType||"UNIPLAYER",I.model&&(this.W.cmodel=I.model),I.network&&(this.W.cnetwork=I.network),I.os&&(this.W.cos=I.os),I.osVersion&&(this.W.cosver=I.osVersion),I.platform&&(this.W.cplatform=I.platform),S=q8(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),S==="all"||S==="once")I.chipset&&(this.SI.cchip=I.chipset),I.cobaltAppVersion&&(this.SI.ccappver=I.cobaltAppVersion),I.firmwareVersion&&(this.SI.cfrmver=I.firmwareVersion),I.deviceYear&&(this.SI.crqyear= I.deviceYear)}else this.W.c=W.c||"web",this.W.cver=W.cver||"html5",this.W.cplayer="UNIPLAYER";this.loaderUrl=J?this.T||X5L(this)&&J.loaderUrl?J.loaderUrl||"":this.dB:this.T||X5L(this)&&W.loaderUrl?pn("",W.loaderUrl):this.dB;this.T&&g.Yc("yt.embedded_player.embed_url",this.loaderUrl);this.N=JN(this.loaderUrl,WEI);I=this.loaderUrl;var p=p===void 0?!1:p;this.mj=iQ(JN(I,iPX),I,p,"Trusted Ad Domain URL");this.Fz=I$(!1,W.privembed);this.protocol=this.dB.indexOf("http:")===0?"http":"https";this.I7=WJX((J? J.customBaseYoutubeUrl:W.BASE_YT_URL)||"")||WJX(this.dB)||this.protocol+"://www.youtube.com/";p=J?J.eventLabel:W.el;I="detailpage";p==="adunit"?I=this.T?"embedded":"detailpage":p==="embedded"||this.N?I=qk(I,p,JVH):p&&(I="embedded");this.vS=I;CXL();p=null;I=J?J.playerStyle:W.ps;S=g.ao(KEL,I);!I||S&&!this.N||(p=I);this.playerStyle=p;this.S=g.ao(KEL,this.playerStyle);this.houseBrandUserStatus=J==null?void 0:J.houseBrandUserStatus;this.sI=this.S&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.Ss=!this.sI;this.Y3=I$(!1,W.disableplaybackui);this.disablePaidContentOverlay=I$(!1,J==null?void 0:J.disablePaidContentOverlay);this.disableSeek=I$(!1,J==null?void 0:J.disableSeek);this.enableSpeedOptions=(J==null?void 0:J.enableSpeedOptions)||(HW().defaultPlaybackRate?M8||g.Wd||g8?g.cC&&Mi("20")||g.ES&&Mi("4")||g.G4&&Mi("11")||sD():!(g.G4&&!g.ov("chrome")||M8||g.ov("android")||g.ov("silk")):!1);this.BT=I$(!1,W.enable_faster_speeds);var n;this.supportsVarispeedExtendedFeatures=(n=J==null?void 0: J.supportsVarispeedExtendedFeatures)!=null?n:!1;this.K=I$(this.playerStyle==="blazer",W.is_html5_mobile_device||J&&J.isMobileDevice);this.OI=XW()||iB();this.Xb=this.Y("mweb_allow_background_playback")?!1:this.K&&!this.S;this.jZ=b1();this.x_=g.$K;var A;this.sS=!!(J==null?0:(A=J.embedsHostFlags)==null?0:A.optOutApiDeprecation);var D;this.hn=!!(J==null?0:(D=J.embedsHostFlags)==null?0:D.allowPfpImaIntegration);this.Ph=this.Y("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var f;J?J.hideInfo!== void 0&&(f=!J.hideInfo):f=W.showinfo;this.e1=g.xK(this)&&!this.sS||I$(!Oe(this)&&!T4(this)&&!this.S,f);this.WC=J?!!J.mobileIphoneSupportsInlinePlayback:I$(!1,W.playsinline);n=this.K&&Hw&&Vx!=null&&Vx>0&&Vx<=2.3;A=J?J.useNativeControls:W.use_native_controls;this.Z=g.xK(this)&&this.K;D=this.K&&!this.Z;A=g.Ee(this)||!n&&I$(D,A)?"3":"1";this.disableOrganicUi=!(J==null||!J.disableOrganicUi);D=J?J.controlsType:W.controls;this.controlsType=this.disableOrganicUi||D==="0"||D===0?"0":A;this.Um=this.K;this.color= qk("red",J?J.progressBarColor:W.color,IqQ);this.G4=this.controlsType==="3";this.oG=!this.T;this.C_=(A=!this.oG&&!T4(this)&&!this.sI&&!this.S&&!Oe(this))&&!this.G4&&this.controlsType==="1";this.mz=g.eb(this)&&A&&this.controlsType==="0"&&!this.C_&&!(J==null?0:J.embedsEnableEmc3ds);this.ZI=this.RO=n;this.fE=(this.controlsType==="3"||this.K||I$(!1,W.use_media_volume))&&!this.Z;this.Rr=c7&&!g.gn(601)?!1:!0;this.V_=this.T||!1;this.bb=T4(this)?"":(this.loaderUrl||W.post_message_origin||"").substring(0,128); this.widgetReferrer=pn("",J?J.widgetReferrer:W.widget_referrer);var h;J?J.disableCastApi&&(h=!1):h=W.enablecastapi;h=!this.N||I$(!0,h);n=!0;J&&J.disableMdxCast&&(n=!1);this.mA=this.Y("enable_cast_for_web_unplugged")&&g.RP(this)&&n||g.Bh(this)&&n||h&&n&&this.controlsType==="1"&&!this.K&&(T4(this)||g.eb(this)||g.b8(this));this.Y_=!!window.document.pictureInPictureEnabled||Rs();h=J?!!J.supportsAutoplayOverride:I$(!1,W.autoplayoverride);this.GG=!(this.K&&!g.xK(this))&&!g.ov("nintendo wiiu")||h;this.DL= (J?!!J.enableMutedAutoplay:I$(!1,W.mutedautoplay))&&!1;h=(T4(this)||Oe(this))&&this.playerStyle==="blazer";this.oH=J?!!J.disableFullscreen:!I$(!0,W.fs);n=g.DR(g.Bw(this))&&g.xK(this);this.eZ=!this.oH&&(h||g.uB())&&!n;this.S9=this.Y("html5_picture_in_picture_logging_onresize");var t;this.fz=(t=g.FV(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?t:.33;this.K4=this.Y("html5_picture_in_picture_blocking_onresize");this.Rm=this.Y("html5_picture_in_picture_blocking_ontimeupdate"); this.vZ=this.Y("html5_picture_in_picture_blocking_document_fullscreen");this.uA=this.Y("html5_picture_in_picture_blocking_standard_api");t=Lz()&&Mi(58)&&!iB();h=zq||typeof MediaSource==="undefined";this.LA=this.Y("uniplayer_block_pip")&&(t||h)||this.K4||this.Rm||this.uA;t=g.xK(this)&&!this.sS;var F;J?J.disableRelatedVideos!==void 0&&(F=!J.disableRelatedVideos):F=W.rel;this.iU=t||I$(!this.S,F);this.ip=I$(!1,J?J.enableContentOwnerRelatedVideos:W.co_rel);this.C=iB()&&Vx>0&&Vx<=4.4?"_top":"_blank";this.gm= g.b8(this);this.zB=I$(this.playerStyle==="blazer",J?J.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":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.PS=F;this.G8=pn("",J?J.authorizedUserIndex:W.authuser);this.qD=g.xK(this)&&(this.Fz||!jZQ()||this.OI);var a;J?J.disableWatchLater!==void 0&&(a=!J.disableWatchLater):a=W.showwatchlater;this.yr=((F=!this.qD)||!!this.G8&&F)&&I$(!this.sI,this.N?a:void 0);this.X0=J?J.isMobileDevice||!!J.disableKeyboardControls:I$(!1,W.disablekb);this.loop=I$(!1,W.loop);this.pageId=pn("",J?J.initialDelegatedSessionId:W.pageid);this.j9=I$(!0,W.canplaylive);this.P7=I$(!1,W.livemonitor);this.disableSharing= I$(this.S,J?J.disableSharing:W.ss);(a=J&&this.Y("fill_video_container_size_override_from_wpcc")?J.videoContainerOverride:W.video_container_override)?(F=a.split("x"),F.length!==2?a=null:(a=Number(F[0]),F=Number(F[1]),a=isNaN(a)||isNaN(F)||a*F<=0?null:new g.Vt(a,F))):a=null;this.uV=a;this.mute=J?!!J.startMuted:I$(!1,W.mute);this.storeUserVolume=!this.mute&&I$(this.controlsType!=="0",J?J.storeUserVolume:W.store_user_volume);a=J?J.annotationsLoadPolicy:W.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:qk(void 0,a,mY);this.captionsLanguagePreference=J?J.captionsLanguagePreference||"":pn("",W.cc_lang_pref);a=qk(2,J?J.captionsLanguageLoadPolicy:W.cc_load_policy,mY);this.controlsType==="3"&&a===2&&(a=3);this.qY=a;this.Lk=J?J.hl||"en_US":pn("en_US",W.hl);this.region=J?J.contentRegion||"US":pn("US",W.cr);this.hostLanguage=J?J.hostLanguage||"en":pn("en",W.host_language);this.dH=!this.Fz&&Math.random()=480;this.schedule=new aP(h,new gFy(this.experiments),q);g.B(this,this.schedule);var y;this.enableSafetyMode=(y=J==null?void 0:J.initialEnableSafetyMode)!=null? y:I$(!1,W.enable_safety_mode);q=this.Y3?!1:T4(this)&&this.playerStyle!=="blazer";var U;J?J.disableAutonav!=null&&(U=!J.disableAutonav):U=W.allow_autonav;this.Ym=I$(q,!this.sI&&U);this.sendVisitorIdHeader=J?!!J.sendVisitorIdHeader:I$(!1,W.send_visitor_id_header);var Q;this.playerStyle==="docs"&&(J?Q=J.disableNativeContextMenu:Q=W.disable_native_context_menu);this.disableNativeContextMenu=I$(!1,Q);this.HT=G0(this)&&this.Y("enable_skip_intro_button");this.embedConfig=pn("",J?J.serializedEmbedConfig: W.embed_config);this.XW=AJ(W,g.xK(this));this.G=this.XW==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(J==null||!J.embedsErrorLinks);this.yk=I$(!1,W.full_window);var C;this.FW=!((C=this.webPlayerContextConfig)==null?0:C.chromeless);var T;this.livingRoomAppMode=qk("LIVING_ROOM_APP_MODE_UNSPECIFIED",W.living_room_app_mode||(J==null?void 0:(T=J.device)==null?void 0:T.livingRoomAppMode),pTL);var H;U=S6(NaN,J==null?void 0:(H=J.device)==null?void 0:H.deviceYear);isNaN(U)||(this.deviceYear=U);this.transparentBackground= J?!!J.transparentBackground:I$(!1,W.transparent_background);this.showMiniplayerButton=J?!!J.showMiniplayerButton:I$(!1,W.show_miniplayer_button);var b;g.xK(this)&&!(J==null?0:(b=J.embedsHostFlags)==null?0:b.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=J?!!J.externalFullscreen:I$(!1,W.external_fullscreen);this.showMiniplayerUiWhenMinimized=J?!!J.showMiniplayerUiWhenMinimized:I$(!1,W.use_miniplayer_ui);var c;this.f_=(c=W.show_loop_video_toggle)!=null?c:!0;this.kU=Math.random()< 1E-4;this.bv=W.onesie_hot_config||(J==null?0:J.onesieHotConfig)?new rOL(W.onesie_hot_config,J==null?void 0:J.onesieHotConfig):void 0;this.isTectonic=J?!!J.isTectonic:!!W.isTectonic;this.playerCanaryState=K;this.playerCanaryStage=J==null?void 0:J.canaryStage;this.Bt=new cOH;g.B(this,this.Bt);this.datasyncId=(J==null?void 0:J.datasyncId)||g.Yf("DATASYNC_ID");this.Jl=g.Yf("LOGGED_IN",!1);this.W$=(J==null?void 0:J.allowWoffleManagement)||!1;this.JO=Infinity;this.nA=NaN;this.livingRoomPoTokenId=J==null? void 0:J.livingRoomPoTokenId;this.Y("html5_high_res_logging_always")?this.hh=!0:this.hh=Math.random()*100=0&&W0&&W.kU&&(I.sort(),g.ET(new g.vd("Player client parameters changed after startup",I)));W.userAge=S6(W.userAge,J.user_age);W.NP=pn(W.NP,J.user_display_email);W.userDisplayImage=pn(W.userDisplayImage,J.user_display_image);g.I3(W.userDisplayImage)||(W.userDisplayImage= "");W.userDisplayName=pn(W.userDisplayName,J.user_display_name);W.uD=pn(W.uD,J.user_gender);W.csiPageType=pn(W.csiPageType,J.csi_page_type);W.csiServiceName=pn(W.csiServiceName,J.csi_service_name);W.zB=I$(W.zB,J.enablecsi);W.pageId=pn(W.pageId,J.pageid);if(K=J.enabled_engage_types)W.enabledEngageTypes=new Set(K.split(","));J.living_room_session_po_token&&(W.Nu=J.living_room_session_po_token.toString())}; z4=function(W,J){return!W.S&&Lz()&&Mi(55)&&W.controlsType==="3"&&!J}; g.vw=function(W){W=r8(W.I7);return W==="www.youtube-nocookie.com"?"www.youtube.com":W}; YK=function(W,J,K){return W.protocol+"://i1.ytimg.com/vi/"+J+"/"+(K||"hqdefault.jpg")}; se=function(W){return T4(W)&&!g.RP(W)}; g.Ee=function(W){return W.Y("html5_local_playsinline")?c7&&!g.gn(602)&&!("playsInline"in HW()):c7&&!W.WC||g.ov("nintendo wiiu")?!0:!1}; K5=function(W){return W.W.c}; g.$w=function(W){return/^TVHTML5/.test(K5(W))}; g.cw=function(W){return K5(W)==="TVHTML5"}; X5L=function(W){return K5(W)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; SAy=function(W){return W.W.cmodel==="CHROMECAST ULTRA/STEAK"||W.W.cmodel==="CHROMECAST/STEAK"}; g.Pw=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; G0=function(W){return/web/i.test(K5(W))}; g.X2=function(W){return K5(W).toUpperCase()==="WEB"}; L5=function(W){return K5(W)==="WEB_KIDS"}; g.RP=function(W){return K5(W)==="WEB_UNPLUGGED"}; W8=function(W){return K5(W)==="TVHTML5_UNPLUGGED"}; g.gJ=function(W){return g.RP(W)||K5(W)==="TV_UNPLUGGED_CAST"||W8(W)}; g.Bh=function(W){return K5(W)==="WEB_REMIX"}; g.iL=function(W){return K5(W)==="WEB_EMBEDDED_PLAYER"}; g.Kp=function(W){return(W.deviceIsAudioOnly||!g.ES||zq||W.controlsType==="3"?!1:g.Wd?W.T&&g.gn(51):!0)||(W.deviceIsAudioOnly||!g.cC||zq||W.controlsType==="3"?!1:g.Wd?W.T&&g.gn(48):g.gn(38))||(W.deviceIsAudioOnly||!g.G4||zq||W.controlsType==="3"?!1:g.Wd?W.T&&g.gn(37):g.gn(27))||!W.deviceIsAudioOnly&&g.Jg&&!uYD()&&g.gn(11)||!W.deviceIsAudioOnly&&g.dg&&g.gn("604.4")}; AVA=function(W){if(g.eb(W)&&Hw)return!1;if(g.cC){if(!g.gn(47)||!g.gn(52)&&g.gn(51))return!1}else if(g.dg)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; j4H=function(W,J){return W.enabledEngageTypes.has(J.toString())||DlQ.includes(J)}; T4=function(W){return W.vS==="detailpage"}; g.eb=function(W){return W.vS==="embedded"}; I0=function(W){return W.vS==="leanback"}; Oe=function(W){return W.vS==="adunit"||W.playerStyle==="gvn"}; g.b8=function(W){return W.vS==="profilepage"}; g.xK=function(W){return W.T&&g.eb(W)&&!Oe(W)&&!W.S}; qY=function(W){if(!W.userDisplayImage)return"";var J=W.userDisplayImage.split("/");if(J.length===5)return W=J[J.length-1].split("="),W[1]="s20-c",J[J.length-1]=W.join("="),J.join("/");if(J.length===8)return J.splice(7,0,"s20-c"),J.join("/");if(J.length===9)return J[7]+="-s20-c",J.join("/");g.ET(new g.vd("Profile image not a FIFE URL.",W.userDisplayImage));return W.userDisplayImage}; g.So=function(W){var J=g.vw(W);fqH.includes(J)&&(J="www.youtube.com");return W.protocol+"://"+J}; g.pp=function(W,J){J=J===void 0?"":J;if(W.CA){var K=new JO,I,q=W.CA();q.signedOut?I="":q.token?I=q.token:q.pendingResult.then(function(S){q.signedOut?K.resolve(""):K.resolve(S.token)},function(S){g.ET(new g.vd("b189348328_oauth_callback_failed",{error:S})); K.resolve(J)}); return I!==void 0?T_(I):new xu(K)}return T_(J)}; lL=function(W,J){J=J===void 0?"":J;return W.Jl?Nq(!0):Ca(Qz(Nq(g.pp(W,J)),function(K){return Nq(!!K)}),function(){return Nq(!1)})}; r8=function(W){var J=g.E(g.gM(W));return(W=Number(g.MO(W)[4]||null)||null)?J+":"+W:J}; np=function(W,J){J=J===void 0?!1:J;var K=vW[W],I=hOv[K],q=tJX[W];if(!q||!I)return null;J=new LB(J?q.height:q.width,J?q.width:q.height,q.fps);I=QL(I,J,K);return new Ym(W,I,{video:J,Cy:q.bitrate/8})}; aqc=function(W){var J=hOv[vW[W]],K=FEH[W];return K&&J?new Ym(W,J,{audio:new mv(K.audioSampleRate,K.numChannels)}):null}; Ag=function(W){this.W=W}; D4=function(W,J,K,I){if(K)return OD();K={};var q=HW();J=g.d(J);for(var S=J.next();!S.done;S=J.next())if(S=S.value,W.canPlayType(q,S.getInfo().mimeType)||I){var p=S.W.video.quality;if(!K[p]||K[p].getInfo().Pt())K[p]=S}W=[];K.auto&&W.push(K.auto);I=g.d(km);for(q=I.next();!q.done;q=I.next())(q=K[q.value])&&W.push(q);return W.length?T_(W):OD()}; uaQ=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 J;this.K=((J=W.audioItag)==null?void 0:J.split(","))||[];this.kF=W.kF;this.aB=W.aB||"";this.pE=W.pE;this.audioChannels=W.audioChannels;this.W=""}; NsA=function(W,J,K,I){J=J===void 0?!1:J;K=K===void 0?!0:K;I=I===void 0?{}:I;var q={};W=g.d(W);for(var S=W.next();!S.done;S=W.next()){S=S.value;if(J&&MediaSource&&MediaSource.isTypeSupported){var p=S.type;S.audio_channels&&(p=p+"; channels="+S.audio_channels);if(!MediaSource.isTypeSupported(p)){I[S.itag]="tpus";continue}}if(K||!S.drm_families||S.eotf!=="smpte2084"&&S.eotf!=="arib-std-b67"){p=void 0;var n={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},A=S.type.match(/codecs="([^"]*)"/); A=A?A[1]:"";S.audio_track_id&&(p=new g.uz(S.name,S.audio_track_id,!!S.is_default));var D=S.eotf;S=new uaQ({itag:S.itag,url:S.url,codecs:A,width:Number(S.width),height:Number(S.height),fps:Number(S.fps),bitrate:Number(S.bitrate),audioItag:S.audio_itag,kF:D?n[D]:void 0,aB:S.drm_families,pE:p,audioChannels:Number(S.audio_channels)});q[S.itag]=q[S.itag]||[];q[S.itag].push(S)}else I[S.itag]="enchdr"}return q}; dlH=function(W,J,K,I,q){this.G=W;this.K=J;this.j=K;this.cpn=I;this.S=q;this.T=0;this.W=""}; yVv=function(W,J){W.G.some(function(K){var I;return((I=K.pE)==null?void 0:I.getId())===J}); W.W=J}; jo=function(W,J,K){W.cpn&&(J=g.Vw(J,{cpn:W.cpn}));K&&(J=g.Vw(J,{paired:K}));return J}; Uly=function(W,J){W=W.itag.toString();J!==null&&(W+=J.itag.toString());return W}; ZPQ=function(W){for(var J=[],K=[],I=g.d(W.K),q=I.next();!q.done;q=I.next())q=q.value,q.bitrate<=W.T?J.push(q):K.push(q);J.sort(function(S,p){return p.bitrate-S.bitrate}); K.sort(function(S,p){return S.bitrate-p.bitrate}); W.K=J.concat(K)}; fp=function(W,J,K){this.W=W;this.K=J;this.expiration=K;this.c7=null}; Q40=function(W,J){if(!(zq||Yu()||z_()))return null;W=NsA(J,W.Y("html5_filter_fmp4_in_hls"));if(!W)return null;J=[];for(var K={},I=g.d(Object.keys(W)),q=I.next();!q.done;q=I.next()){q=g.d(W[q.value]);for(var S=q.next();!S.done;S=q.next()){var p=S.value;p.pE&&(S=p.pE.getId(),K[S]||(p=new g.ft(S,p.pE),K[S]=p,J.push(p)))}}return J.length>0?J:null}; GSH=function(W,J,K,I,q,S,p){if(!(zq||Yu()||z_()))return OD();var n={},A=CnI(K),D=NsA(K,W.Y("html5_filter_fmp4_in_hls"),W.j.Z,n);if(!D)return p({noplst:1}),OD();wTD(D);K={};var f=(K.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",K),h;K=[];var t=[],F=[],a=null,y="";I=I&&I.match(/hls_timedtext_playlist/)?new uaQ({itag:"0",url:I,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,pE:new g.uz("English","en",!1)}):null;for(var U=g.d(Object.keys(D)),Q=U.next();!Q.done;Q=U.next())if(Q=Q.value,!W.Y("html5_disable_drm_hfr_1080")|| Q!=="383"&&Q!=="373"){Q=g.d(D[Q]);for(var C=Q.next();!C.done;C=Q.next())if(C=C.value,C.width){for(var T=g.d(C.K),H=T.next();!H.done;H=T.next())if(H=H.value,D[H]){C.W=H;break}C.W||(C.W=MJI(D,C));if(T=D[C.W])if(K.push(C),C.aB==="fairplay"&&(h=f),H="",C.kF==="PQ"?H="smpte2084":C.kF==="HLG"&&(H="arib-std-b67"),H&&(y=H),F.push(g$X(T,[C],I,S,C.itag,C.width,C.height,C.fps,A,void 0,void 0,h,H)),!a||C.width*C.height*C.fps>a.width*a.height*a.fps)a=C}else t.push(C)}else n[Q]="disdrmhfr";F.reduce(function(b, c){return c.getInfo().isEncrypted()&&b},!0)&&(h=f); q=Math.max(q,0);f=a||{};D=f.fps===void 0?0:f.fps;a=f.width===void 0?0:f.width;f=f.height===void 0?0:f.height;U=W.Y("html5_native_audio_track_switching");F.push(g$X(t,K,I,S,"93",a,f,D,A,"auto",q,h,y,U));Object.entries(n).length&&p(n);return D4(W.j,F,z4(W,J),!1)}; g$X=function(W,J,K,I,q,S,p,n,A,D,f,h,t,F){for(var a=0,y="",U=g.d(W),Q=U.next();!Q.done;Q=U.next())Q=Q.value,y||(y=Q.itag),Q.audioChannels&&Q.audioChannels>a&&(a=Q.audioChannels,y=Q.itag);q=new Ym(q,"application/x-mpegURL",{audio:new mv(0,a),video:new LB(S,p,n,null,void 0,D,void 0,t),aB:h,wP:y});W=new dlH(W,J,K?[K]:[],I,!!F);W.T=f?f:1369843;return new fp(q,W,A)}; CnI=function(W){W=g.d(W);for(var J=W.next();!J.done;J=W.next())if(J=J.value,J.url&&(J=J.url.split("expire/"),!(J.length<=1)))return+J[1].split("/")[0];return NaN}; MJI=function(W,J){for(var K=g.d(Object.keys(W)),I=K.next();!I.done;I=K.next()){I=I.value;var q=W[I][0];if(!q.width&&q.aB===J.aB&&!q.audioChannels)return I}return""}; wTD=function(W){for(var J=new Set,K=g.d(Object.values(W)),I=K.next();!I.done;I=K.next())I=I.value,I.length&&(I=I[0],I.height&&I.codecs.startsWith("vp09")&&J.add(I.height));K=[];if(J.size){I=g.d(Object.keys(W));for(var q=I.next();!q.done;q=I.next())if(q=q.value,W[q].length){var S=W[q][0];S.height&&J.has(S.height)&&!S.codecs.startsWith("vp09")&&K.push(q)}}J=g.d(K);for(K=J.next();!K.done;K=J.next())delete W[K.value]}; hg=function(W,J){this.W=W;this.K=J}; $lQ=function(W,J,K,I){var q=[];K=g.d(K);for(var S=K.next();!S.done;S=K.next()){var p=S.value;if(p.url){S=new g.TV(p.url,!0);if(p.s){var n=S,A=p.sp,D=VXc(decodeURIComponent(p.s));n[l[9]](A,encodeURIComponent(D))}n=g.d(Object.keys(I));for(A=n.next();!A.done;A=n.next())A=A.value,S.set(A,I[A]);p=lr(p.type,p.quality,p.itag,p.width,p.height);q.push(new hg(p,S))}}return D4(W.j,q,z4(W,J),!1)}; tg=function(W,J){this.W=W;this.K=J}; xlQ=function(W,J,K){var I=[];K=g.d(K);for(var q=K.next();!q.done;q=K.next())if((q=q.value)&&q.url){var S=lr(q.type,"medium","0");I.push(new tg(S,q.url))}return D4(W.j,I,z4(W,J),!1)}; OPc=function(W,J){var K=[],I=lr(J.type,"auto",J.itag);K.push(new tg(I,J.url));return D4(W.j,K,!1,!0)}; HPA=function(W){return W&&Tsv[W]?Tsv[W]:null}; VJI=function(W){switch(W){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":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"}}; E$Q=function(W){if(W=W.commonConfig)this.url=W.url,this.urlQueryOverride=W.urlQueryOverride,W.ustreamerConfig&&(this.IW=Ar(W.ustreamerConfig)||void 0)}; eO0=function(W,J){var K;if(J=J==null?void 0:(K=J.watchEndpointSupportedOnesieConfig)==null?void 0:K.html5PlaybackOnesieConfig)W.y6=new E$Q(J)}; g.Fv=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.W=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.uL=function(W){var J={languageCode:W.languageCode,languageName:W.languageName,displayName:g.a0(W),kind:W.kind,name:W.name,id:W.id,is_servable:W.W,is_default:W.isDefault,is_translateable:W.isTranslateable,vss_id:W.vssId};W.xtags&&(J.xtags=W.xtags);W.captionId&&(J.captionId=W.captionId);W.translationLanguage&&(J.translationLanguage=W.translationLanguage);return J}; g.NY=function(W){return W.translationLanguage?W.translationLanguage.languageCode:W.languageCode}; g.ROy=function(W){var J=W.vssId;W.translationLanguage&&J&&(J="t"+J+"."+g.NY(W));return J}; g.a0=function(W){var J=[];if(W.displayName)J.push(W.displayName);else{var K=W.languageName||"";J.push(K);W.kind==="asr"&&K.indexOf("(")===-1&&J.push(" (Subt\u00edtulos autom\u00e1ticos)");W.name&&J.push(" - "+W.name)}W.translationLanguage&&J.push(" >> "+W.translationLanguage.languageName);return J.join("")}; rVH=function(W,J,K,I){W||(W=J&&bPX.hasOwnProperty(J)&&Bsv.hasOwnProperty(J)?Bsv[J]+"_"+bPX[J]:void 0);J=W;if(!J)return null;W=J.match(mlI);if(!W||W.length!==5)return null;if(W=J.match(mlI)){var q=Number(W[3]),S=[7,8,10,5,6];W=!(Number(W[1])===1&&q===8)&&S.indexOf(q)>=0}else W=!1;return K||I||W?J:null}; d9=function(W,J){for(var K={},I=g.d(Object.keys(o$Q)),q=I.next();!q.done;q=I.next()){q=q.value;var S=J?J+q:q;S=W[S+"_webp"]||W[S];g.I3(S)&&(K[o$Q[q]]=S)}return K}; yA=function(W){var J={};if(!W||!W.thumbnails)return J;W=W.thumbnails.filter(function(n){return!!n.url}); W.sort(function(n,A){return n.width-A.width||n.height-A.height}); for(var K=g.d(Object.keys(LE0)),I=K.next();!I.done;I=K.next()){var q=Number(I.value);I=LE0[q];for(var S=g.d(W),p=S.next();!p.done;p=S.next())if(p=p.value,p.width>=q){q=kSQ(p.url);g.I3(q)&&(J[I]=q);break}}(W=W.pop())&&W.width>=1280&&(W=kSQ(W.url),g.I3(W)&&(J["maxresdefault.jpg"]=W));return J}; kSQ=function(W){return W.startsWith("//")?"https:"+W:W}; UF=function(W){return W&&W.baseUrl||""}; Z4=function(W){W=g.qU(W);for(var J=g.d(Object.keys(W)),K=J.next();!K.done;K=J.next()){K=K.value;var I=W[K];W[K]=Array.isArray(I)?I[0]:I}return W}; zOH=function(W,J){W.botguardData=J.playerAttestationRenderer.botguardData;J=J.playerAttestationRenderer.challenge;J!=null&&(W.Nq=J)}; s4v=function(W,J){J=g.d(J);for(var K=J.next();!K.done;K=J.next()){K=K.value;var I=K.interstitials.map(function(p){var n=g.m(p,v$L);if(n)return{is_yto_interstitial:!0,raw_player_response:n};if(p=g.m(p,YAy))return Object.assign({is_yto_interstitial:!0},Kz(p))}); I=g.d(I);for(var q=I.next();!q.done;q=I.next())switch(q=q.value,K.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":W.interstitials=W.interstitials.concat({time:0,playerVars:q,jS:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":W.interstitials=W.interstitials.concat({time:0x7ffffffffffff,playerVars:q,jS:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var S=Number(K.podConfig.timeToInsertAtMillis);W.interstitials=W.interstitials.concat({time:S,playerVars:q, jS:S===0?5:7})}}}; cV0=function(W,J){if(J=J.find(function(K){return!(!K||!K.tooltipRenderer)}))W.tooltipRenderer=J.tooltipRenderer}; Pny=function(W,J){J.subscribeCommand&&(W.subscribeCommand=J.subscribeCommand);J.unsubscribeCommand&&(W.unsubscribeCommand=J.unsubscribeCommand);J.addToWatchLaterCommand&&(W.addToWatchLaterCommand=J.addToWatchLaterCommand);J.removeFromWatchLaterCommand&&(W.removeFromWatchLaterCommand=J.removeFromWatchLaterCommand);J.getSharePanelCommand&&(W.getSharePanelCommand=J.getSharePanelCommand)}; XTc=function(W,J){J!=null?(W.b8=J,W.pP=!0):(W.b8="",W.pP=!1)}; QA=function(W,J){this.type=W||"";this.id=J||""}; g.Cp=function(W){return new QA(W.substring(0,2),W.substring(2))}; g.w9=function(W,J){this.QK=W;this.author="";this.KM=null;this.playlistLength=0;this.W=this.sessionData=null;this.C={};this.title="";if(J){this.author=J.author||J.playlist_author||"";this.title=J.playlist_title||"";if(W=J.session_data)this.sessionData=iX(W,"&");var K;this.W=((K=J.thumbnail_ids)==null?void 0:K.split(",")[0])||null;this.C=d9(J,"playlist_");this.videoId=J.video_id||void 0;if(K=J.list)switch(J.listType){case "user_uploads":this.playlistId=(new QA("UU","PLAYER_"+K)).toString();break;default:if(W= J.playlist_length)this.playlistLength=Number(W)||0;this.playlistId=g.Cp(K).toString();if(J=J.video)this.videoId=(J[0]||null).video_id||void 0}else J.playlist&&(this.playlistLength=J.playlist.toString().split(",").length)}}; g.MY=function(W,J){this.QK=W;this.QE=this.author="";this.KM=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.xe=this.lengthText="";this.sessionData=null;this.C={};this.title="";if(J){this.ariaLabel=J.aria_label||void 0;this.author=J.author||"";this.QE=J.QE||"";if(W=J.endscreen_autoplay_session_data)this.KM=iX(W,"&");this.L3=J.L3;this.isLivePlayback=J.live_playback==="1";this.isUpcoming=!!J.isUpcoming;if(W=J.length_seconds)this.lengthSeconds=typeof W==="string"?Number(W):W;this.lengthText= J.lengthText||"";this.xe=J.xe||"";this.publishedTimeText=J.publishedTimeText||void 0;if(W=J.session_data)this.sessionData=iX(W,"&");this.shortViewCount=J.short_view_count_text||void 0;this.C=d9(J);this.title=J.title||"";this.videoId=J.docid||J.video_id||J.videoId||J.id||void 0;this.watchUrl=J.watchUrl||void 0}}; WV0=function(W){var J,K,I=(J=W.getWatchNextResponse())==null?void 0:(K=J.contents)==null?void 0:K.twoColumnWatchNextResults,q,S,p,n,A;W=(q=W.getWatchNextResponse())==null?void 0:(S=q.playerOverlays)==null?void 0:(p=S.playerOverlayRenderer)==null?void 0:(n=p.endScreen)==null?void 0:(A=n.watchNextEndScreenRenderer)==null?void 0:A.results;if(!W){var D,f;W=I==null?void 0:(D=I.endScreen)==null?void 0:(f=D.endScreen)==null?void 0:f.results}return W}; g.GR=function(W){var J,K,I;W=g.m((J=W.getWatchNextResponse())==null?void 0:(K=J.playerOverlays)==null?void 0:(I=K.playerOverlayRenderer)==null?void 0:I.decoratedPlayerBarRenderer,g9);return g.m(W==null?void 0:W.playerBar,i_A)}; JPQ=function(W){this.W=W.playback_progress_0s_url;this.G=W.playback_progress_2s_url;this.K=W.playback_progress_10s_url}; KVQ=function(){if($5===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(J){}a:{try{var W=!!self.localStorage}catch(J){W=!1}if(W&&(W=g.RW(g.Yd()+"::yt-player"))){$5=new oK(W);break a}$5=void 0}}return $5}; g.x5=function(){var W=KVQ();if(!W)return{};try{var J=W.get("yt-player-lv");return JSON.parse(J||"{}")}catch(K){return{}}}; g.IZA=function(W){var J=KVQ();J&&(W=JSON.stringify(W),J.set("yt-player-lv",W))}; g.OF=function(W){return g.x5()[W]||0}; g.TR=function(W,J){var K=g.x5();J!==K[W]&&(J!==0?K[W]=J:delete K[W],g.IZA(K))}; g.H8=function(W){return g.V(function(J){return J.return(g.ox(qKH(),W))})}; EF=function(W,J,K,I,q,S,p,n){var A,D,f,h,t,F;return g.V(function(a){switch(a.K){case 1:return A=g.OF(W),A===4?a.return(4):g.O(a,g.PM(),2);case 2:D=a.W;if(!D)throw g.UO("wiac");if(!n||p===void 0){a.VK(3);break}return g.O(a,SKy(n,p),4);case 4:p=a.W;case 3:return f=K.lastModified||"0",g.O(a,g.H8(D),5);case 5:return h=a.W,g.yQ(a,6),VA++,g.O(a,g.xk(h,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",B7:!0},function(y){if(S!==void 0&&p!==void 0){var U=""+W+"|"+J.id+"|"+f+"|"+String(S).padStart(10, "0");U=g.OO(y.objectStore("media"),p,U)}else U=g.QP.resolve(void 0);var Q=pAv(W,J.kC()),C=pAv(W,!J.kC()),T={fmts:lZT(I),format:K||{}};Q=g.OO(y.objectStore("index"),T,Q);var H=I.downloadedEndTime===-1;T=H?y.objectStore("index").get(C):g.QP.resolve(void 0);var b={fmts:"music",format:{}};y=H&&q&&!J.kC()?g.OO(y.objectStore("index"),b,C):g.QP.resolve(void 0);return g.QP.all([y,T,U,Q]).then(function(c){c=g.d(c);c.next();c=c.next().value;VA--;var v=g.OF(W);if(v!==4&&H&&q||c!==void 0&&g.ntc(c.fmts))v=1,g.TR(W, v);return v})}),8); case 8:return a.return(a.W);case 6:t=g.g0(a);VA--;F=g.OF(W);if(F===4)return a.return(F);g.TR(W,4);throw t;}})}; g.APc=function(W){var J,K;return g.V(function(I){if(I.K==1)return g.O(I,g.PM(),2);if(I.K!=3){J=I.W;if(!J)throw g.UO("ri");return g.O(I,g.H8(J),3)}K=I.W;return I.return(g.xk(K,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(q){var S=IDBKeyRange.bound(W+"|",W+"~");return q.objectStore("index").getAll(S).then(function(p){return p.map(function(n){return n?n.format:{}})})}))})}; j9y=function(W,J,K,I,q){var S,p,n;return g.V(function(A){if(A.K==1)return g.O(A,g.PM(),2);if(A.K!=3){S=A.W;if(!S)throw g.UO("rc");return g.O(A,g.H8(S),3)}p=A.W;n=g.xk(p,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(D){var f=""+W+"|"+J+"|"+K+"|"+String(I).padStart(10,"0");return D.objectStore("media").get(f)}); return q?A.return(n.then(function(D){if(D===void 0)throw Error("No data from indexDb");return DBI(q,D)}).catch(function(D){throw new g.vd("Error while reading chunk: "+D.name+", "+D.message); })):A.return(n)})}; g.ntc=function(W){return W?W==="music"?!0:W.includes("dlt=-1")||!W.includes("dlt="):!1}; pAv=function(W,J){return""+W+"|"+(J?"v":"a")}; lZT=function(W){var J={};return Ja((J.dlt=W.downloadedEndTime.toString(),J.mket=W.maxKnownEndTime.toString(),J.avbr=W.averageByteRate.toString(),J))}; hUI=function(W){var J={},K={};W=g.d(W);for(var I=W.next();!I.done;I=W.next()){var q=I.value,S=q.split("|");q.match(g.fZA)?(I=Number(S.pop()),isNaN(I)?K[q]="?":(S=S.join("|"),(q=J[S])?(S=q[q.length-1],I===S.end+1?S.end=I:q.push({start:I,end:I})):J[S]=[{start:I,end:I}])):K[q]="?"}W=g.d(Object.keys(J));for(I=W.next();!I.done;I=W.next())I=I.value,K[I]=J[I].map(function(p){return p.start+"-"+p.end}).join(","); return K}; eo=function(W){g.Ao.call(this);this.W=null;this.G=new m0;this.W=null;this.S=new Set;this.crossOrigin=W||""}; t5I=function(W,J,K){for(K=R0(W,K);K>=0;){var I=W.levels[K];if(I.isLoaded(bL(I,J))&&(I=g.B8(I,J)))return I;K--}return g.B8(W.levels[0],J)}; aZD=function(W,J,K){K=R0(W,K);for(var I,q;K>=0;K--)if(I=W.levels[K],q=bL(I,J),!I.isLoaded(q)){I=W;var S=K,p=S+"-"+q;I.S.has(p)||(I.S.add(p),I.G.enqueue(S,{q5:S,Yd:q}))}FVQ(W)}; FVQ=function(W){if(!W.W&&!W.G.isEmpty()){var J=g.E(W.G.remove());W.W=uFc(W,J)}}; uFc=function(W,J){var K=document.createElement("img");W.crossOrigin&&(K.crossOrigin=W.crossOrigin);K.src=W.levels[J.q5].xm(J.Yd);K.onload=function(){var I=J.q5,q=J.Yd;W.W!==null&&(W.W.onload=null,W.W=null);I=W.levels[I];I.loaded.add(q);FVQ(W);var S=I.columns*I.rows;q*=S;I=Math.min(q+S-1,I.UU()-1);q=[q,I];W.publish("l",q[0],q[1])}; return K}; g.mA=function(W,J,K,I){this.level=W;this.T=J;this.loaded=new Set;this.level=W;this.T=J;W=K.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.W=Math.floor(Number(W[5]));this.G=W[6];this.signature=W[7];this.videoLength=I}; bL=function(W,J){return Math.floor(J/(W.columns*W.rows))}; g.B8=function(W,J){J>=W.bM()&&W.Pa();var K=bL(W,J),I=W.columns*W.rows,q=J%I;J=q%W.columns;q=Math.floor(q/W.columns);var S=W.Pa()+1-I*K;if(S1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; NDX=function(W,J,K){return(W=W.levels[J])?W.x9(K):-1}; R0=function(W,J){var K=W.T.get(J);if(K)return K;K=W.levels.length;for(var I=0;I=J)return W.T.set(J,I),I;W.T.set(J,K-1);return K-1}; o0=function(W,J,K,I){K=K.split("#");K=[K[1],K[2],0,K[3],K[4],-1,K[0],""].join("#");g.mA.call(this,W,J,K,0);this.K=null;this.j=I?2:0}; Lp=function(W,J,K,I){r9.call(this,W,0,void 0,J,!(I===void 0||!I));for(W=0;W(K!=null?K:50)&&(K=gtQ.shift())&&P8.delete(K),K=q),q!==K&&W.Qv("ssei","dcpn_"+q+"_"+K+"_"+W.clientPlaybackNonce),K)}; Y5=function(W,J){var K=J.raw_watch_next_response;if(!K){var I=J.watch_next_response;I&&(K=JSON.parse(I))}if(K){W.SZ=K;var q=W.SZ.playerCueRangeSet;q&&g.Xv(W,q);var S=W.SZ.playerOverlays;if(S){var p=S.playerOverlayRenderer;if(p){var n=p.autonavToggle;n&&(W.autoplaySwitchButtonRenderer=g.m(n,GUy),W.Y("web_player_autonav_use_server_provided_state")&&WL(W)&&(W.autonavState=W.autoplaySwitchButtonRenderer.enabled?2:1));var A=p.videoDetails;if(A){var D=A.embeddedPlayerOverlayVideoDetailsRenderer;var f=A.playerOverlayVideoDetailsRenderer; f&&(f.title&&(J.title=g.uG(f.title)),f.subtitle&&(J.subtitle=g.uG(f.subtitle)))}g.eb(W.QK)&&(W.yr=!!p.addToMenu);$BT(W,p.shareButton);p.startPosition&&p.endPosition&&(W.progressBarStartPosition=p.startPosition,W.progressBarEndPosition=p.endPosition);var h=p.gatedActionsOverlayRenderer;h&&(W.Zr=g.m(h,xBL));var t,F,a,y=g.m((t=W.getWatchNextResponse())==null?void 0:(F=t.playerOverlays)==null?void 0:(a=F.playerOverlayRenderer)==null?void 0:a.infoPanel,O_0);if(y){W.fL=Number(y==null?void 0:y.durationMs)|| NaN;if(y==null?0:y.infoPanelOverviewViewModel)W.Bt=y==null?void 0:y.infoPanelOverviewViewModel;if(y==null?0:y.infoPanelDetailsViewModel)W.qY=y==null?void 0:y.infoPanelDetailsViewModel}W.showSeekingControls=!!p.showSeekingControls}}var U,Q,C=(U=W.getWatchNextResponse())==null?void 0:(Q=U.contents)==null?void 0:Q.twoColumnWatchNextResults;if(C){var T=C.desktopOverlay&&g.m(C.desktopOverlay,TDy);T&&(T.suppressShareButton&&(W.showShareButton=!1),T.suppressWatchLaterButton&&(W.yr=!1))}D&&H_Q(W,J,D);var H= S6(0,J.autoplay_count),b=g.E(W.getWatchNextResponse()),c,v=(c=b.contents)==null?void 0:c.twoColumnWatchNextResults,Kv,qI,WH,nv=(Kv=b.playerOverlays)==null?void 0:(qI=Kv.playerOverlayRenderer)==null?void 0:(WH=qI.autoplay)==null?void 0:WH.playerOverlayAutoplayRenderer,P=WV0(W),UH,MI=(UH=b.contents)==null?void 0:UH.singleColumnWatchNextResults;if(MI){var oy;if(((oy=MI.autoplay)==null?0:oy.autoplay)&&!MI.playlist){var Cx=MI.autoplay.autoplay.sets,nx={},GA=new g.MY(W.J()),w0=null,qj;if(Cx){for(var Z= g.d(Cx),lD=Z.next();!lD.done;lD=Z.next()){var vR=lD.value.autoplayVideoRenderer;if(vR&&vR.compactVideoRenderer){w0=vR.compactVideoRenderer;break}}if(qj=Cx[0].autoplayVideo){var Uw=qj.clickTrackingParams;Uw&&(nx.itct=Uw);nx.autonav="1";nx.playnext=String(H)}}else nx.feature="related-auto";var $r=g.m(qj,g.iE);if(w0){GA.videoId=w0.videoId;var tW=w0.shortBylineText;tW&&(GA.author=g.uG(tW));var BH=w0.title;BH&&(GA.title=g.uG(BH))}else $r!=null&&$r.videoId&&(GA.videoId=$r.videoId);GA.KM=nx;W.suggestions= [];W.B1=GA}}if(P){for(var VG=[],xr=g.d(P),M=xr.next();!M.done;M=xr.next()){var G=M.value,x=void 0,e=null;if(G.endScreenVideoRenderer){var r=G.endScreenVideoRenderer,QQ=r.title;e=new g.MY(W.J());e.videoId=r.videoId;e.lengthSeconds=r.lengthInSeconds||0;var JT=r.publishedTimeText;JT&&(e.publishedTimeText=g.uG(JT));var uD=r.shortBylineText;uD&&(e.author=g.uG(uD));var Iy=r.shortViewCountText;Iy&&(e.shortViewCount=g.uG(Iy));if(QQ){e.title=g.uG(QQ);var xc=QQ.accessibility;if(xc){var cH=xc.accessibilityData; cH&&cH.label&&(e.ariaLabel=cH.label)}}var Zp=r.navigationEndpoint;if(Zp){x=Zp.clickTrackingParams;var Zn=g.m(Zp,g.iE),Tj=g.m(Zp,g.RE);Zn?e.L3=Zn:Tj!=null&&(e.watchUrl=Tj.url)}var sj=r.thumbnailOverlays;if(sj)for(var zj=g.d(sj),ci=zj.next();!ci.done;ci=zj.next()){var CW=ci.value.thumbnailOverlayTimeStatusRenderer;if(CW)if(CW.style==="LIVE"){e.isLivePlayback=!0;break}else if(CW.style==="UPCOMING"){e.isUpcoming=!0;break}}e.C=yA(r.thumbnail)}else if(G.endScreenPlaylistRenderer){var hK=G.endScreenPlaylistRenderer, HY=hK.navigationEndpoint;if(!HY)continue;var uW=g.m(HY,g.iE);if(!uW)continue;var VT=uW.videoId;e=new g.w9(W.J());e.playlistId=hK.playlistId;e.playlistLength=Number(hK.videoCount)||0;e.W=VT||null;e.videoId=VT;var LZ=hK.title;LZ&&(e.title=g.uG(LZ));var kv=hK.shortBylineText;kv&&(e.author=g.uG(kv));x=HY.clickTrackingParams;e.C=yA(hK.thumbnail)}e&&(x&&(e.sessionData={itct:x}),VG.push(e))}W.suggestions=VG}if(nv){W.jQ=!!nv.preferImmediateRedirect;W.Lk=W.Lk||!!nv.webShowNewAutonavCountdown;W.fA=W.fA||!!nv.webShowBigThumbnailEndscreen; if(W.Lk||W.fA){var Mt=v||null,S1=new g.MY(W.J());S1.videoId=nv.videoId;var Pi=nv.videoTitle;if(Pi){S1.title=g.uG(Pi);var pU=Pi.accessibility;if(pU){var g_=pU.accessibilityData;g_&&g_.label&&(S1.ariaLabel=g_.label)}}var LX=nv.byline;LX&&(S1.author=g.uG(LX));var aG=nv.publishedTimeText;aG&&(S1.publishedTimeText=g.uG(aG));var Z0=nv.shortViewCountText;Z0&&(S1.shortViewCount=g.uG(Z0));var Qk=nv.thumbnailOverlays;if(Qk)for(var CD=g.d(Qk),pc=CD.next();!pc.done;pc=CD.next()){var A0=pc.value.thumbnailOverlayTimeStatusRenderer; if(A0)if(A0.style==="LIVE"){S1.isLivePlayback=!0;break}else if(A0.style==="UPCOMING"){S1.isUpcoming=!0;break}else if(A0.style==="DEFAULT"&&A0.text){S1.lengthText=g.uG(A0.text);var lI=A0.text.accessibility;if(lI){var nc=lI.accessibilityData;nc&&nc.label&&(S1.xe=nc.label||"")}break}}S1.C=yA(nv.background);var wQ=nv.nextButton;if(wQ){var My=wQ.buttonRenderer;if(My){var gQ=My.navigationEndpoint;if(gQ){var GL=g.m(gQ,g.iE);GL&&(S1.L3=GL)}}}if(nv.topBadges){var $X=nv.topBadges[0];if($X){var xX=g.m($X,V5L); xX&&xX.style==="BADGE_STYLE_TYPE_PREMIUM"&&(S1.kYK=!0)}}var cL=nv.alternativeTitle;cL&&(S1.QE=g.uG(cL));var Gt={autonav:"1",playnext:String(H)};S1.playlistId&&(Gt.autoplay="1");if(Mt){var PL,LH,AI,OE,Da=(PL=Mt.autoplay)==null?void 0:(LH=PL.autoplay)==null?void 0:(AI=LH.sets)==null?void 0:(OE=AI[0])==null?void 0:OE.autoplayVideo;if(Da){var TL=Da.clickTrackingParams;TL&&(Gt.itct=TL);var j0=g.m(Da,g.iE);j0&&(S1.ym=j0)}}else if(nv){var HF,Vk,EE,eH=(HF=nv.nextButton)==null?void 0:(Vk=HF.buttonRenderer)== null?void 0:(EE=Vk.navigationEndpoint)==null?void 0:EE.clickTrackingParams;eH&&(Gt.itct=eH)}Gt.itct||(Gt.feature="related-auto");S1.KM=Gt;W.suggestions||(W.suggestions=[]);W.B1=S1}nv.countDownSecs!=null&&(W.wg=nv.countDownSecs*1E3);nv.countDownSecsForFullscreen!=null&&(W.KL=nv.countDownSecsForFullscreen>=0?nv.countDownSecsForFullscreen*1E3:-1);W.Y("web_autonav_color_transition")&&nv.watchToWatchTransitionRenderer&&(W.watchToWatchTransitionRenderer=g.m(nv.watchToWatchTransitionRenderer,EtQ))}var fc= WV0(W);if(fc){var Fl,Rl,hI,tI=fc==null?void 0:(Fl=fc[0])==null?void 0:(Rl=Fl.endScreenVideoRenderer)==null?void 0:(hI=Rl.navigationEndpoint)==null?void 0:hI.clickTrackingParams,br=g.JS(W);tI&&br&&(br.sessionData={itct:tI})}W.SZ.currentVideoThumbnail&&(W.C=yA(W.SZ.currentVideoThumbnail));var XK,BF,mj,Wl,rQ,aO=(XK=W.SZ)==null?void 0:(BF=XK.contents)==null?void 0:(mj=BF.twoColumnWatchNextResults)==null?void 0:(Wl=mj.results)==null?void 0:(rQ=Wl.results)==null?void 0:rQ.contents;if(aO&&aO[1]){var ol, LD,$a,wM,zd=(ol=aO[1].videoSecondaryInfoRenderer)==null?void 0:(LD=ol.owner)==null?void 0:($a=LD.videoOwnerRenderer)==null?void 0:(wM=$a.thumbnail)==null?void 0:wM.thumbnails;zd&&zd.length&&(W.profilePicture=zd[zd.length-1].url)}var kX=nn(J),FD,u2=(FD=W.getWatchNextResponse())==null?void 0:FD.onResponseReceivedEndpoints;if(u2)for(var Nb=g.d(u2),aC=Nb.next();!aC.done;aC=Nb.next()){var v6=aC.value;g.m(v6,KK)&&(W.g2=g.m(v6,KK));var yC=g.m(v6,eUQ),zL=void 0;if((zL=yC)==null?0:zL.entityKeys)W.fS=yC.entityKeys|| [],yC.visibleOnLoadKeys&&(W.visibleOnLoadKeys=yC.visibleOnLoadKeys)}if(W.Y("web_key_moments_markers")){var JY=g.Ie.getState().entities,j_=g.iZ("visibility_override","markersVisibilityOverrideEntity");var kf=Kg(JY,"markersVisibilityOverrideEntity",j_);W.eZ=(kf==null?void 0:kf.videoId)===(W.videoId||kX)&&(kf==null?0:kf.visibilityOverrideMarkersKey)?kf.visibilityOverrideMarkersKey:W.visibleOnLoadKeys;W.visibleOnLoadKeys=[].concat(g.w(W.eZ))}}}; WL=function(W){var J;return((J=W.autoplaySwitchButtonRenderer)==null?void 0:J.enabled)!==void 0}; qE=function(W){return!!(W.G&&W.G.videoInfos&&W.G.videoInfos.length)}; g.AS=function(W){var J=W.N;W.Y("html5_gapless_unlimit_format_selection")&&S7(W)&&(J=!1);var K=!!W.W&&W.W.dl,I=W.QK,q=W.lf(),S=pK(W),p=W.bO,n=J,A=W.isOtf();J=W.Hk();var D=W.P7,f=W.getUserAudio51Preference(),h=lE(W),t=new Nhy(I);if(I.ND()||I.Y("html5_logging_format_selection"))t.K=!0;t.Y3=S;t.bO=p&&I.N;t.XW=f;g.ov("windows nt 5.1")&&!g.cC&&(t.l8=!0);if(S=q)S=g.Kp(I)?AVA(I):!1;S&&(t.PS=!0);n&&(t.l8=!0,t.bb=!0);A&&!I.Y("html5_otf_prefer_vp9")&&(t.l8=!0);I.playerStyle==="picasaweb"&&(A&&(t.l8=!1),t.sI= !1);D&&(t.l8=!0);xA(I.j,Oq.CHANNELS)&&(I.Y("html5_enable_ac3")&&(t.T=!0),I.Y("html5_enable_eac3")&&(t.j=!0),I.Y("html5_enable_ac3_gapless")&&(t.vS=!0));I.Y("html5_block_8k_hfr")&&(t.D0=!0);t.S=g.FV(I.experiments,"html5_max_selectable_quality_ordinal");t.Z=g.FV(I.experiments,"html5_min_selectable_quality_ordinal");g8&&(t.oG=480);if(K||q)t.sI=!1;t.FW=!1;t.disableAv1=h;K=mI(I,t.W,void 0,t.disableAv1);K>0&&K<2160&&(UE()||I.Y("html5_format_hybridization"))&&(t.W.supportsChangeType=+UE(),t.Qk=K);K>=2160&& (t.G8=!0);owQ()&&(t.W.serveVp9OverAv1IfHigherRes=0,t.fE=!1);t.Hk=J;t.SZ=g.vM||JJ()&&!J?!1:!0;t.N=I.Y("html5_format_hybridization");t.P7=I.Y("html5_disable_encrypted_vp9_live_non_2k_4k");nK(W)&&(t.Fz=W.Y("html5_prefer_language_over_codec"));z_()&&W.playerResponse&&W.playerResponse.playerConfig&&W.playerResponse.playerConfig.webPlayerConfig&&W.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(t.T=!0,t.j=!0);W.N&&W.isAd()&&(W.j9&&(t.C=W.j9),W.x_&&(t.G=W.x_));t.jZ=W.isLivePlayback&& W.pQ()&&W.QK.Y("html5_drm_live_audio_51");t.eZ=W.bk;t.sT=!nK(W)&&W.Y("html5_disable_voice_boost_for_cabr");return W.dB=t}; lE=function(W){return W.QK.Y("html5_disable_av1")||W.Y("html5_gapless_shorts_disable_av1")&&S7(W)?!0:!1}; RUT=function(W){oC("drm_pb_s",void 0,W.PS);W.FW||W.W&&wE(W.W);var J={};W.W&&(J=KvD(W.FQ,g.AS(W),W.QK.j,W.W,function(K){return W.publish("ctmp","fmtflt",K)},!0,new Set)); J=new Ww(J,W.QK,W.X8,W.useCobaltWidevine?z_()?DP(W):!1:!1,function(K,I){W.WS(K,I)}); g.B(W,J);W.Rr=!1;W.loading=!0;ZFv(J,function(K){oC("drm_pb_f",void 0,W.PS);for(var I=g.d(K),q=I.next();!q.done;q=I.next())switch(q=q.value,q.flavor){case "fairplay":q.FW=W.FW;q.LS=W.LS;q.qr=W.qr;break;case "widevine":q.Rm=W.Rm}W.Ze=K;if(W.Ze.length>0&&(W.j=W.Ze[0],W.QK.ND())){K={};I=g.d(Object.entries(W.j.W));for(q=I.next();!q.done;q=I.next()){var S=g.d(q.value);q=S.next().value;S=S.next().value;var p="unk";(q=q.match(/(.*)codecs="(.*)"/))&&(p=q[2]);K[p]=S}W.WS("drmProbe",K)}W.B2()})}; b_y=function(W,J){if(J.length===0||j7(W))return null;W.QK.j.G&&(RU=!0);var K=W.aB;var I=W.lengthSeconds,q=W.isLivePlayback,S=W.jP,p=W.QK,n=IOH(J);if(q||S){p=p.experiments;I=new Ze("",p,!0);I.K=!S;I.dl=!0;I.isManifestless=!0;I.isLive=!S;I.jP=S;J=g.d(J);for(q=J.next();!q.done;q=J.next()){var A=q.value;q=wf(A,K);n=bS(A);n=gf(n.Ol||A.url||"",n.xS,n.s);var D=n.get("id");D&&D.includes("%7E")&&(I.C=!0);var f=void 0;D=(f=p)==null?void 0:f.HS("html5_max_known_end_time_rebase");f=Number(A.targetDurationSec|| 5);A=Number(A.maxDvrDurationSec||14400);var h=Number(n.get("mindsq")||n.get("min_sq")||"0"),t=Number(n.get("maxdsq")||n.get("max_sq")||"0")||Infinity;I.Qw=I.Qw||h;I.X4=I.X4||t;var F=!pD(q.mimeType);n&&df(I,new ps(n,q,{kh:f,GZ:F,AQ:A,Qw:h,X4:t,Vn:300,jP:S,pO:D}))}K=I}else if(n==="FORMAT_STREAM_TYPE_OTF"){I=I===void 0?0:I;S=new Ze("",p.experiments,!1);S.duration=I||0;p=g.d(J);for(I=p.next();!I.done;I=p.next())I=I.value,J=wf(I,K,S.duration),q=bS(I),(q=gf(q.Ol||I.url||"",q.xS,q.s))&&(J.streamType==="FORMAT_STREAM_TYPE_OTF"? df(S,new lz(q,J,"sq/0")):df(S,new aU(q,J,mN(I.initRange),mN(I.indexRange))));S.isOtf=!0;K=S}else{I=I===void 0?0:I;S=new Ze("",p.experiments,!1);S.duration=I||0;p=g.d(J);for(I=p.next();!I.done;I=p.next())n=I.value,I=wf(n,K,S.duration),J=mN(n.initRange),q=mN(n.indexRange),D=bS(n),(n=gf(D.Ol||n.url||"",D.xS,D.s))&&df(S,new aU(n,I,J,q));K=S}S=W.isLivePlayback&&!W.jP&&!W.sI&&!W.isPremiere;W.Y("html5_live_head_playable")&&(!fK(W)&&S&&W.WS("missingLiveHeadPlayable",{}),W.QK.PS==="yt"&&(K.Y3=!0));return K}; j7=function(W){return z_()?!DP(W):Yu()?!(!W.FW||!W.Y("html5_enable_safari_fairplay")&&p5()):!1}; DP=function(W){return W.Y("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.Xv=function(W,J){J=g.d(J);for(var K=J.next();!K.done;K=J.next())if(K=K.value,K.cueRangeSetIdentifier){var I=void 0;W.e8.set(K.cueRangeSetIdentifier,(I=K.playerCueRanges)!=null?I:[])}}; hS=function(W){return!(!W.W||!W.W.isManifestless)}; tS=function(W){return W.fE?W.isLowLatencyLiveStream&&W.W!=null&&OJ(W.W)>=5:W.isLowLatencyLiveStream&&W.W!=void 0&&OJ(W.W)>=5}; BDQ=function(W){return z_()&&DP(W)?!1:j7(W)&&(g.gJ(W.QK)?!W.isLivePlayback:W.hlsvp)||!p5()||W.Hc?!0:!1}; otv=function(W){W.loading=!0;W.NP=!1;if(mBA(W))g.APc(W.videoId).then(function(I){rPL(W,I)}).then(function(){W.B2()}); else{K9(W.iU)||g.ET(new g.vd("DASH MPD Origin invalid: ",W.iU));var J=W.iU,K=g.FV(W.QK.experiments,"dash_manifest_version")||4;J=g.Vw(J,{mpd_version:K});W.isLowLatencyLiveStream&&W.latencyClass!=="NORMAL"||(J=g.Vw(J,{pacing:0}));j5I(J,W.QK.experiments,W.isLivePlayback).then(function(I){W.Iu()||(FK(W,I,!0),oC("mrc",void 0,W.PS),W.B2())},function(I){W.Iu()||(W.loading=!1,W.publish("dataloaderror",new xm("manifest.net.retryexhausted",{backend:"manifest", rc:I.status},1)))}); oC("mrs",void 0,W.PS)}}; rPL=function(W,J){var K=J.map(function(A){return A.itag}),I; if((I=W.playerResponse)!=null&&I.streamingData){I=[];if(W.Y("html5_offline_always_use_local_formats")){K=0;for(var q=g.d(J),S=q.next();!S.done;S=q.next()){S=S.value;var p=Object.assign({},S);p.signatureCipher="";I.push(p);p=g.d(W.playerResponse.streamingData.adaptiveFormats);for(var n=p.next();!n.done;n=p.next())if(n=n.value,S.itag===n.itag&&S.xtags===n.xtags){K+=1;break}}Kf&&(f=F.getInfo().audio.numChannels)}f>2&&W.WS("hlschl",{mn:f});var U;((U=W.dB)==null?0:U.K)&&W.WS("hlsfmtaf",{itags:h.join(".")});var Q;if(W.Y("html5_enable_vp9_fairplay")&&((Q=W.j)==null?0:Yi(Q)))for(W.WS("drm",{sbdlfbk:1}),f=g.d(W.Ze),h=f.next();!h.done;h=f.next())if(h=h.value,vC(h)){W.j=h;break}dP(W,D)})}return OD()}; YKQ=function(W){if(W.isExternallyHostedPodcast&&W.hh){var J=NE(W.hh);if(!J[0])return OD();W.PDN=J[0];return OPc(W.QK,J[0]).then(function(K){dP(W,K)})}return W.K4&&W.Qo?xlQ(W.QK,W.isAd(),W.K4).then(function(K){dP(W,K)}):OD()}; cPA=function(W){if(W.isExternallyHostedPodcast)return OD();var J=NE(W.hh,W.e7);if(W.hlsvp){var K=dBL(W.hlsvp,W.clientPlaybackNonce,W.nk);J.push(K)}return $lQ(W.QK,W.isAd(),J,s9y(W)).then(function(I){dP(W,I)})}; dP=function(W,J){W.kK=J;W.Qy(new y_(g.zC(W.kK,function(K){return K.getInfo()})))}; s9y=function(W){var J={cpn:W.clientPlaybackNonce,c:W.QK.W.c,cver:W.QK.W.cver};W.RR&&(J.ptk=W.RR,J.oid=W.Ty,J.ptchn=W.Q7,J.pltype=W.a4,W.nS&&(J.m=W.nS));return J}; g.yM=function(W){return j7(W)&&W.FW?(W={},W.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",W):W.K&&W.K.aB||null}; PoL=function(W){var J=Uk(W);return J&&J.text?g.uG(J.text):W.paidContentOverlayText}; XAQ=function(W){var J=Uk(W);return J&&J.durationMs?Uh(J.durationMs):W.paidContentOverlayDurationMs}; Uk=function(W){var J,K,I;return W.playerResponse&&W.playerResponse.paidContentOverlay&&W.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.m((J=W.SZ)==null?void 0:(K=J.playerOverlays)==null?void 0:(I=K.playerOverlayRenderer)==null?void 0:I.playerDisclosure,W4Q)||null}; ZP=function(W){var J="";if(W.vO)return W.vO;W.isLivePlayback&&(J=W.allowLiveDvr?"dvr":W.isPremiere?"lp":W.sI?"window":"live");W.jP&&(J="post");return J}; g.QM=function(W,J){return typeof W.keywords[J]!=="string"?null:W.keywords[J]}; i8Q=function(W){return!!W.zP||!!W.h1||!!W.WM||!!W.PM||W.vp||W.Z.focEnabled||W.Z.rmktEnabled}; g.CK=function(W){return!!(W.iU||W.hh||W.K4||W.hlsvp||W.Fn())}; v8=function(W){if(W.Y("html5_onesie")&&W.errorCode)return!1;var J=g.ao(W.G8,"ypc");W.ypcPreview&&(J=!1);return W.Nk()&&!W.loading&&(g.CK(W)||g.ao(W.G8,"heartbeat")||J)}; NE=function(W,J){W=Iv(W);var K={};if(J){J=g.d(J.split(","));for(var I=J.next();!I.done;I=J.next())(I=I.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(K[I[1]]={width:I[2],height:I[3]})}J=g.d(W);for(I=J.next();!I.done;I=J.next()){I=I.value;var q=K[I.itag];q&&(I.width=q.width,I.height=q.height)}return W}; wP=function(W){var J=W.getAvailableAudioTracks();J=J.concat(W.uD);for(var K=0;K0:W.Da?!1:W.QK.GG||W.QK.DL||!g.xK(W.QK)?!0:!1:(W.Da?0:W.gm)&&g.xK(W.QK)?!0:!1;W.Y("html5_log_detailpage_autoplay")&&e7(W)==="detailpage"&&W.WS("autoplay_info",{autoplay:W.D4,autonav:W.isAutonav,wasDompaused:W.Da,result:J});return J}; g.m7=function(W){return W.oauthToken||W.QK.GJ}; tdQ=function(W){return nK(W)&&!g.c8(W)}; agc=function(W){if(W.Y("html5_stateful_audio_normalization")){var J=1,K=g.FV(W.QK.experiments,"html5_default_ad_gain");K&&W.isAd()&&(J=K);var I;if(K=((I=W.T)==null?void 0:I.audio.G)||W.q_){I=(0,g.L)();W.uV=2;var q=I-W.QK.nA<=W.maxStatefulTimeThresholdSec*1E3;W.applyStatefulNormalization&&q?W.uV=4:q||(W.QK.JO=Infinity,W.QK.nA=NaN);q=(W.uV===4?g.Gm(W.QK.JO,W.minimumLoudnessTargetLkfs,W.loudnessTargetLkfs):W.loudnessTargetLkfs)-K;if(W.uV!==4){var S,p,n,A,D=((S=W.playerResponse)==null?void 0:(p=S.playerConfig)== null?void 0:(n=p.audioConfig)==null?void 0:(A=n.loudnessNormalizationConfig)==null?void 0:A.statelessLoudnessAdjustmentGain)||0;q+=D}q=Math.min(q,0);W.preserveStatefulLoudnessTarget&&(W.QK.JO=K+q,W.QK.nA=I);W=Math.min(1,Math.pow(10,q/20))||J}else W=F4A(W)}else W=F4A(W);return W}; F4A=function(W){var J=1,K=g.FV(W.QK.experiments,"html5_default_ad_gain");K&&W.isAd()&&(J=K);var I;if(K=((I=W.T)==null?void 0:I.audio.T)||W.mA)W.uV=1;return Math.min(1,Math.pow(10,-K/20))||J}; pK=function(W){var J=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],K=K5(W.QK)==="TVHTML5_SIMPLY"&&W.QK.W.ctheme==="MUSIC";W.wB||!g.Bh(W.QK)&&!K||!J.includes(W.musicVideoType)&&!W.isExternallyHostedPodcast||(W.wB=!0);if(J=g.ku())J=/Starboard\/([0-9]+)/.exec(g.CU()),J=(J?parseInt(J[1],10):NaN)<10;K=W.QK;K=(K5(K)==="TVHTML5_CAST"||K5(K)==="TVHTML5"&&(K.W.cver.startsWith("6.20130725")||K.W.cver.startsWith("6.20130726")))&&W.QK.W.ctheme==="MUSIC";var I;if(I=!W.wB)K||(K=W.QK,K=K5(K)=== "TVHTML5"&&K.W.cver.startsWith("7")),I=K;I&&!J&&(J=W.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",K=(W.Y("cast_prefer_audio_only_for_atv_and_uploads")||W.Y("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&W.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",J||K||W.isExternallyHostedPodcast)&&(W.wB=!0);return W.QK.deviceIsAudioOnly||W.wB&&W.QK.N}; rP=function(W){var J,K,I;return((J=W.playerResponse)==null?void 0:(K=J.playerConfig)==null?void 0:(I=K.compositeVideoConfig)==null?void 0:I.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.upc=function(W){return W.Y("html5_enable_sabr_live_captions")&&W.dl()&&nK(W)||rP(W)}; oe=function(W){var J,K,I;return!!((J=W.playerResponse)==null?0:(K=J.playerConfig)==null?0:(I=K.mediaCommonConfig)==null?0:I.splitScreenEligible)}; LK=function(W){var J;return!((J=W.playerResponse)==null||!J.compositePlayabilityStatus)}; NNH=function(W){return isNaN(W)?0:Math.max((Date.now()-W)/1E3-30,0)}; kh=function(W){return!(!W.bC||!W.QK.N)&&W.Fn()}; zg=function(W){return W.Jc&&W.enableServerStitchedDai}; dnX=function(W){return W.HY&&!W.oH}; nK=function(W){var J=W.Y("html5_enable_sabr_on_drive")&&W.QK.PS==="gd";if(W.CR)return W.HY&&W.WS("fds",{fds:!0},!0),!1;if(W.QK.PS!=="yt"&&!J)return W.HY&&W.WS("dsvn",{ns:W.QK.PS},!0),!1;if(W.cotn||!W.W||W.W.isOtf||W.TU&&!W.Y("html5_enable_sabr_csdai"))return!1;if(W.Y("html5_use_sabr_requests_for_debugging"))return!0;W.HY&&W.WS("esfw",{usbc:W.HY,hsu:!!W.oH},!0);if(W.HY&&W.oH)return!0;if(W.Y("html5_remove_client_sabr_determination"))return!1;var K=!W.W.dl&&!W.pQ();J=K&&IP&&W.Y("html5_enable_sabr_vod_streaming_xhr"); K=K&&!IP&&W.Y("html5_enable_sabr_vod_non_streaming_xhr");var I=vL(W),q=W.Y("html5_enable_sabr_drm_vod_streaming_xhr")&&IP&&W.pQ()&&!W.W.dl&&(W.drmProduct==="1"?!1:!0);(J=J||K||I||q)&&!W.oH&&W.WS("sabr",{loc:"m"},!0);return J&&!!W.oH}; vL=function(W){var J;if(!(J=IP&&W.dl()&&W.pQ()&&(W.drmProduct==="1"?!1:!0)&&W.Y("html5_sabr_live_drm_streaming_xhr"))){J=W.dl()&&!W.pQ()&&IP;var K=W.dl()&&W.latencyClass!=="ULTRALOW"&&!W.isLowLatencyLiveStream&&W.Y("html5_sabr_live_normal_latency_streaming_xhr"),I=W.isLowLatencyLiveStream&&W.Y("html5_sabr_live_low_latency_streaming_xhr"),q=W.latencyClass==="ULTRALOW"&&W.Y("html5_sabr_live_ultra_low_latency_streaming_xhr");J=J&&(K||I||q)}K=J;J=W.enableServerStitchedDai&&K&&W.Y("html5_enable_sabr_ssdai_streaming_xhr"); K=!W.enableServerStitchedDai&&K;I=W.dl()&&!IP&&W.Y("html5_enable_sabr_live_non_streaming_xhr");W=IP&&(W.rf()||oe(W)&&W.Y("html5_enable_sabr_for_lifa_eligible_streams"));return J||K||I||W}; g.c8=function(W){return W.hU&&nK(W)}; mBA=function(W){var J;if(J=!!W.cotn)J=W.videoId,J=!!J&&g.OF(J)===1;return J&&!W.bC}; g.Yh=function(W){if(!W.W||!W.K||!W.T)return!1;var J=W.W.W,K=!!J[W.K.id]&&Eq(J[W.K.id].c7.W);J=!!J[W.T.id]&&Eq(J[W.T.id].c7.W);return(W.K.itag==="0"||K)&&J}; sk=function(W){return W.ue?["OK","LIVE_STREAM_OFFLINE"].includes(W.ue.status):!0}; SfQ=function(W){return(W=W.C_)&&W.showError?W.showError:!1}; i3=function(W,J){return W.Y(J)?!0:(W.fflags||"").includes(J+"=true")}; ylT=function(W){return W.Y("html5_heartbeat_iff_heartbeat_params_filled")}; M5I=function(W,J){J.inlineMetricEnabled&&(W.inlineMetricEnabled=!0);J.playback_progress_0s_url&&(W.PM=new JPQ(J));if(J=J.video_masthead_ad_quartile_urls)W.h1=J.quartile_0_url,W.JK=J.quartile_25_url,W.nt=J.quartile_50_url,W.qJ=J.quartile_75_url,W.Fw=J.quartile_100_url,W.WM=J.quartile_0_urls,W.Ub=J.quartile_25_urls,W.er=J.quartile_50_urls,W.CO=J.quartile_75_urls,W.o6=J.quartile_100_urls}; wAI=function(W){var J={};W=g.d(W);for(var K=W.next();!K.done;K=W.next()){K=K.value;var I=K.split("=");I.length===2?J[I[0]]=I[1]:J[K]=!0}return J}; Z_y=function(W){if(W){if(lbX(W))return W;W=nTH(W);if(lbX(W,!0))return W}return""}; g.UnL=function(W){return W.captionsLanguagePreference||W.QK.captionsLanguagePreference||g.QM(W,"yt:cc_default_lang")||W.QK.Lk}; Kl=function(W){return!(!W.isLivePlayback||!W.hasProgressBarBoundaries())}; g.JS=function(W){var J;return W.B1||((J=W.suggestions)==null?void 0:J[0])||null}; g.IV=function(W){return W.pP&&(W.Y("embeds_enable_pfp_always_unbranded")||W.QK.hn)}; g.qw=function(W){var J,K;return!!((J=W.embeddedPlayerConfig)==null?0:(K=J.embeddedPlayerFlags)==null?0:K.enableMusicUx)}; Z8y=function(W){return W.N||W.Y("web_player_media_session_infinity")&&W.isLivePlayback}; SM=function(W){return W.QK.T&&W.isPrivate}; g.l3=function(W){var J=W.J(),K=g.pl(J),I=J.bb;(J.Y("embeds_web_enable_iframe_api_send_full_embed_url")||J.Y("embeds_web_enable_rcat_validation_in_havs")||J.Y("embeds_enable_autoplay_and_visibility_signals"))&&g.eb(J)&&(I&&(K.thirdParty=Object.assign({},K.thirdParty,{embedUrl:I})),vwQ(K,W));if(I=W.Y3)K.clickTracking={clickTrackingParams:I};else if(J.Y("html5_log_missing_itct")){var q;I=new g.vd("Missing ITCT in InnerTubeContext",{isAd:W.isAd(),whZ:(q=J.getWebPlayerContextConfig())==null?void 0:q.contextId}); g.Va(I)}q=K.client||{};I="EMBED";var S=e7(W);S==="leanback"?I="WATCH":J.Y("gvi_channel_client_screen")&&S==="profilepage"?I="CHANNEL":W.P7?I="LIVE_MONITOR":S==="detailpage"?I="WATCH_FULL_SCREEN":S==="adunit"?I="ADUNIT":S==="sponsorshipsoffer"&&(I="UNKNOWN");q.clientScreen=I;if(J=W.kidsAppInfo)q.kidsAppInfo=JSON.parse(J);(I=W.lX)&&!J&&(q.kidsAppInfo={contentSettings:{ageUpMode:Q8D[I]}});if(J=W.kJ)q.unpluggedAppInfo={enableFilterMode:!0};(I=W.unpluggedFilterModeType)&&!J&&(q.unpluggedAppInfo={filterModeType:Cfy[I]}); if(J=W.lN)q.unpluggedLocationInfo=J;K.client=q;q=K.request||{};W.GJ&&(q.isPrefetch=!0);if(J=W.mdxEnvironment)q.mdxEnvironment=J;if(J=W.mdxControlMode)q.mdxControlMode=wz0[J];K.request=q;q=K.user||{};if(J=W.jZ)q.credentialTransferTokens=[{token:J,scope:"VIDEO"}];if(J=W.mz)q.delegatePurchases={oauthToken:J},q.kidsParent={oauthToken:J};K.user=q;if(q=W.contextParams)K.activePlayers=[{playerContextParams:q}];if(W=W.clientScreenNonce)K.clientScreenNonce=W;return K}; g.pl=function(W){var J=g.iI(),K=J.client||{};if(W.forcedExperiments){var I=W.forcedExperiments.split(","),q=[];I=g.d(I);for(var S=I.next();!S.done;S=I.next())q.push(Number(S.value));K.experimentIds=q}if(q=W.homeGroupInfo)K.homeGroupInfo=JSON.parse(q);if(q=W.getPlayerType())K.playerType=q;if(q=W.W.ctheme)K.theme=q;if(q=W.livingRoomAppMode)K.tvAppInfo=Object.assign({},K.tvAppInfo,{livingRoomAppMode:q});q=W.deviceYear;W.Y("html5_propagate_device_year")&&q&&(K.tvAppInfo=Object.assign({},K.tvAppInfo,{deviceYear:q})); if(q=W.livingRoomPoTokenId)K.tvAppInfo=Object.assign({},K.tvAppInfo,{livingRoomPoTokenId:q});J.client=K;K=J.user||{};W.enableSafetyMode&&(K=Object.assign({},K,{enableSafetyMode:!0}));W.pageId&&(K=Object.assign({},K,{onBehalfOfUser:W.pageId}));J.user=K;K=W.bb;W.Y("embeds_web_enable_iframe_api_send_full_embed_url")||W.Y("embeds_web_enable_rcat_validation_in_havs")||W.Y("embeds_enable_autoplay_and_visibility_signals")||!K||(J.thirdParty={embedUrl:K});return J}; O8Q=function(W,J,K){var I=W.videoId,q=g.l3(W),S=W.J(),p={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(gb()),referer:document.location.toString(),signatureTimestamp:20207};g.mr();W.isAutonav&&(p.autonav=!0);g.ri(0,141)&&(p.autonavState=g.ri(0,140)?"STATE_OFF":"STATE_ON");p.autoCaptionsDefaultOn=g.ri(0,66);hNv(W)&&(p.autoplay=!0);S.N&&W.cycToken&&(p.cycToken=W.cycToken);S.enablePrivacyFilter&&(p.enablePrivacyFilter=!0);W.isFling&&(p.fling=!0);var n=W.forceAdsUrl;if(n){var A={},D=[];n= n.split(",");n=g.d(n);for(var f=n.next();!f.done;f=n.next()){f=f.value;var h=f.split("|");h.length!==3||f.includes("=")||(h[0]="breaktype="+h[0],h[1]="offset="+h[1],h[2]="url="+h[2]);f={adtype:"video_ad"};h=g.d(h);for(var t=h.next();!t.done;t=h.next()){var F=g.d(t.value.split("="));t=F.next().value;F=qHy(F);f[t]=F.join("=")}h=f.url;t=f.presetad;F=f.viralresponseurl;var a=Number(f.campaignid);if(f.adtype==="in_display_ad")h&&(A.url=h),t&&(A.presetAd=t),F&&(A.viralAdResponseUrl=F),a&&(A.viralCampaignId= String(a));else if(f.adtype==="video_ad"){var y={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(f.offset)||0)}};if(f=MdQ[f.breaktype])y.breakType=f;h&&(y.url=h);t&&(y.presetAd=t);F&&(y.viralAdResponseUrl=F);a&&(y.viralCampaignId=String(a));D.push(y)}}p.forceAdParameters={videoAds:D,inDisplayAd:A}}W.isInlinePlaybackNoAd&&(p.isInlinePlaybackNoAd=!0);W.isLivingRoomDeeplink&&(p.isLivingRoomDeeplink=!0);A=W.a0I;if(A!=null){A={startWalltime:String(A)};if(D=W.Uv)A.manifestDuration=String(D||14400); p.liveContext=A}if(W.mutedAutoplay){p.mutedAutoplay=!0;A=S.getWebPlayerContextConfig();var U,Q;(A==null?0:(U=A.embedsHostFlags)==null?0:U.allowMutedAutoplayDurationMode)&&(A==null?0:(Q=A.embedsHostFlags)==null?0:Q.allowMutedAutoplayDurationMode.includes(g2Q[W.mutedAutoplayDurationMode]))&&(p.mutedAutoplayDurationMode=g2Q[W.mutedAutoplayDurationMode])}if(W.Da?0:W.gm)p.splay=!0;U=W.vnd;U===5&&(p.vnd=U);U={};if(Q=W.isMdxPlayback)U.triggeredByMdx=Q;if(Q=W.Nx)U.skippableAdsSupported=Q.split(",").includes("ska"); if(D=W.yT){Q=W.zf;A=[];D=g.d(Y8c(D));for(n=D.next();!n.done;n=D.next()){n=n.value;f=n.platform;n={applicationState:n.Wm?"INACTIVE":"ACTIVE",clientFormFactor:GpA[f]||"UNKNOWN_FORM_FACTOR",clientName:cNA[n.R1]||"UNKNOWN_INTERFACE",clientVersion:n.deviceVersion||"",platform:$nA[f]||"UNKNOWN_PLATFORM"};f={};if(Q){h=void 0;try{h=JSON.parse(Q)}catch(C){g.ET(C)}h&&(f={params:[{key:"ms",value:h.ms}]},h.advertising_id&&(f.advertisingId=h.advertising_id),h.limit_ad_tracking!==void 0&&h.limit_ad_tracking!== null&&(f.limitAdTracking=h.limit_ad_tracking),n.osName=h.os_name,n.userAgent=h.user_agent,n.windowHeightPoints=h.window_height_points,n.windowWidthPoints=h.window_width_points)}A.push({adSignalsInfo:f,remoteClient:n})}U.remoteContexts=A}Q=W.sourceContainerPlaylistId;A=W.serializedMdxMetadata;if(Q||A)D={},Q&&(D.mdxPlaybackContainerInfo={sourceContainerPlaylistId:Q}),A&&(D.serializedMdxMetadata=A),U.mdxPlaybackSourceContext=D;p.mdxContext=U;U=J.width;U>0&&(p.playerWidthPixels=Math.round(U));if(J=J.height)p.playerHeightPixels= Math.round(J);K!==0&&(p.vis=K);if(K=S.widgetReferrer)p.widgetReferrer=K.substring(0,128);g.xK(S)&&p&&(p.ancestorOrigins=S.ancestorOrigins);W.defaultActiveSourceVideoId&&(p.compositeVideoContext={defaultActiveSourceVideoId:W.defaultActiveSourceVideoId});if(S=S.getWebPlayerContextConfig())p.encryptedHostFlags=S.encryptedHostFlags;I={videoId:I,context:q,playbackContext:{contentPlaybackContext:p}};W.reloadPlaybackParams&&(I.playbackContext.reloadPlaybackContext={reloadPlaybackParams:W.reloadPlaybackParams}); W.contentCheckOk&&(I.contentCheckOk=!0);if(q=W.clientPlaybackNonce)I.cpn=q;if(q=W.playerParams)I.params=q;if(q=W.playlistId)I.playlistId=q;W.racyCheckOk&&(I.racyCheckOk=!0);q=W.J();if(p=q.embedConfig)I.serializedThirdPartyEmbedConfig=p;I.captionParams={};p=g.ri(g.mr(),65);W.deviceCaptionsOn!=null?I.captionParams.deviceCaptionsOn=W.deviceCaptionsOn:g.X2(q)&&(I.captionParams.deviceCaptionsOn=p!=null?!p:!1);W.qf&&(I.captionParams.deviceCaptionsLangPref=W.qf);W.FZ.length?I.captionParams.viewerSelectedCaptionLangs= W.FZ:g.X2(q)&&(p=g.WU(),p==null?0:p.length)&&(I.captionParams.viewerSelectedCaptionLangs=p);p=W.fetchType==="onesie"&&W.Y("html5_onesie_attach_po_token");S=W.fetchType!=="onesie"&&W.Y("html5_non_onesie_attach_po_token");if(p||S)p=W.J(),p.Nu&&(I.serviceIntegrityDimensions={},I.serviceIntegrityDimensions.poToken=p.Nu);q.Y("fetch_att_independently")&&(I.attestationRequest={omitBotguardData:!0});I.playbackContext||(I.playbackContext={});I.playbackContext.devicePlaybackCapabilities=xnQ(W);I.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&W.WS("noVp9",{});return I}; xnQ=function(W){var J=!(W==null?0:W.Hk())&&(W==null?void 0:W.dl())&&JJ(),K;if(!(K=W==null)){K=g.AS(W);W=W.J().j;var I=np("243");K=!(I&&Ct(K,I,W,!0)===!0)}return{supportsVp9Encoding:!(K||J),supportXhr:IP}}; H80=function(W,J){var K,I,q;return g.V(function(S){if(S.K==1)return K={context:g.pl(W.J()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:W.videoId,cpn:W.clientPlaybackNonce}}]},I=g.IC(TNy),g.O(S,g.Pe(J,K,I),2);q=S.W;return S.return(q)})}; Vdv=function(W,J,K){var I=g.FV(J.experiments,"bg_vm_reinit_threshold");(!kR||(0,g.L)()-kR>I)&&H80(W,K).then(function(q){q&&(q=q.botguardData)&&g.v1(q,J)},function(q){W.Iu()||(q=Tc(q),W.WS("attf",q.details))})}; nl=function(W,J){g.R.call(this);this.app=W;this.state=J}; DJ=function(W,J,K){W.state.W.hasOwnProperty(J)||AY(W,J,K);W.state.Z[J]=function(){return K.apply(W,g.EH.apply(0,arguments))}; W.state.S.add(J)}; jM=function(W,J,K){W.state.W.hasOwnProperty(J)||AY(W,J,K);W.app.J().N&&(W.state.N[J]=function(){return K.apply(W,g.EH.apply(0,arguments))},W.state.S.add(J))}; AY=function(W,J,K){W.state.W[J]=function(){return K.apply(W,g.EH.apply(0,arguments))}}; g.fl=function(W,J,K){return W.state.W[J].apply(W.state.W,g.w(K))}; hY=function(){g.g5.call(this);this.j=new Map}; tY=function(){g.R.apply(this,arguments);this.element=null;this.S=new Set;this.Z={};this.N={};this.W={};this.C=new Set;this.G=new hY;this.K=new hY;this.T=new hY;this.j=new hY}; E2Q=function(W,J,K){typeof W==="string"&&(W={mediaContentUrl:W,startSeconds:J,suggestedQuality:K});a:{if((J=W.mediaContentUrl)&&(J=/\/([ve]|embed)\/([^#?]+)/.exec(J))&&J[2]){J=J[2];break a}J=null}W.videoId=J;return Ff(W)}; Ff=function(W,J,K){if(typeof W==="string")return{videoId:W,startSeconds:J,suggestedQuality:K};J={};K=g.d(eNv);for(var I=K.next();!I.done;I=K.next())I=I.value,W[I]&&(J[I]=W[I]);return J}; RNA=function(W,J,K,I){if(g.i0(W)&&!Array.isArray(W)){J="playlist list listType index startSeconds suggestedQuality".split(" ");K={};for(I=0;I32&&I.push("hfr");J.isHdr()&&I.push("hdr");J.primaries==="bt2020"&&I.push("wcg");K.video_quality_features=I}}if(W=W.getPlaylistId())K.list=W;return K}; yf=function(){aV.apply(this,arguments)}; UY=function(W,J){var K={};if(W.app.J().sI){W=g.d(rlc);for(var I=W.next();!I.done;I=W.next())I=I.value,J.hasOwnProperty(I)&&(K[I]=J[I]);if(J=K.qoe_cat)W="",typeof J==="string"&&J.length>0&&(W=J.split(",").filter(function(q){return o2Q.includes(q)}).join(",")),K.qoe_cat=W; L4H(K)}else for(W=g.d(kpI),I=W.next();!I.done;I=W.next())I=I.value,J.hasOwnProperty(I)&&(K[I]=J[I]);return K}; L4H=function(W){var J=W.raw_player_response;if(!J){var K=W.player_response;K&&(J=JSON.parse(K))}delete W.player_response;delete W.raw_player_response;if(J){W.raw_player_response={streamingData:J.streamingData,playerConfig:J.playerConfig};var I;if((I=J.playbackTracking)==null?0:I.qoeUrl)W.raw_player_response=Object.assign({},W.raw_player_response,{playbackTracking:{qoeUrl:J.playbackTracking.qoeUrl}});var q;if((q=J.videoDetails)==null?0:q.videoId)W.raw_player_response=Object.assign({},W.raw_player_response, {videoDetails:{videoId:J.videoDetails.videoId}})}}; ZJ=function(W,J,K){var I=W.app.OA(K);if(!I)return 0;W=I-W.app.getCurrentTime(K);return J-W}; v2y=function(W){var J=J===void 0?5:J;return W?zNA[W]||J:J}; g.Qf=function(){yf.apply(this,arguments)}; YfT=function(W){AY(W,"getInternalApiInterface",W.getInternalApiInterface);AY(W,"addEventListener",W.k6);AY(W,"removeEventListener",W.fas);AY(W,"cueVideoByPlayerVars",W.mV);AY(W,"loadVideoByPlayerVars",W.DN0);AY(W,"preloadVideoByPlayerVars",W.oC3);AY(W,"getAdState",W.getAdState);AY(W,"sendAbandonmentPing",W.sendAbandonmentPing);AY(W,"setLoopRange",W.setLoopRange);AY(W,"getLoopRange",W.getLoopRange);AY(W,"setAutonavState",W.setAutonavState);AY(W,"seekTo",W.jos);AY(W,"seekBy",W.SMh);AY(W,"seekToLiveHead", W.seekToLiveHead);AY(W,"requestSeekToWallTimeSeconds",W.requestSeekToWallTimeSeconds);AY(W,"seekToStreamTime",W.seekToStreamTime);AY(W,"startSeekCsiAction",W.startSeekCsiAction);AY(W,"getStreamTimeOffset",W.getStreamTimeOffset);AY(W,"getVideoData",W.lP);AY(W,"setInlinePreview",W.setInlinePreview);AY(W,"getAppState",W.getAppState);AY(W,"updateLastActiveTime",W.updateLastActiveTime);AY(W,"setBlackout",W.setBlackout);AY(W,"setUserEngagement",W.setUserEngagement);AY(W,"updateSubtitlesUserSettings",W.updateSubtitlesUserSettings); AY(W,"getPresentingPlayerType",W.vK);AY(W,"canPlayType",W.canPlayType);AY(W,"updatePlaylist",W.updatePlaylist);AY(W,"updateVideoData",W.updateVideoData);AY(W,"updateEnvironmentData",W.updateEnvironmentData);AY(W,"sendVideoStatsEngageEvent",W.Zcw);AY(W,"productsInVideoVisibilityUpdated",W.productsInVideoVisibilityUpdated);AY(W,"setSafetyMode",W.setSafetyMode);AY(W,"isAtLiveHead",function(J){return W.isAtLiveHead(void 0,J)}); AY(W,"getVideoAspectRatio",W.getVideoAspectRatio);AY(W,"getPreferredQuality",W.getPreferredQuality);AY(W,"getPlaybackQualityLabel",W.getPlaybackQualityLabel);AY(W,"setPlaybackQualityRange",W.rRs);AY(W,"onAdUxClicked",W.onAdUxClicked);AY(W,"getFeedbackProductData",W.getFeedbackProductData);AY(W,"getStoryboardFrame",W.getStoryboardFrame);AY(W,"getStoryboardFrameIndex",W.getStoryboardFrameIndex);AY(W,"getStoryboardLevel",W.getStoryboardLevel);AY(W,"getNumberOfStoryboardLevels",W.getNumberOfStoryboardLevels); AY(W,"getCaptionWindowContainerId",W.getCaptionWindowContainerId);AY(W,"getAvailableQualityLabels",W.getAvailableQualityLabels);AY(W,"addCueRange",W.addCueRange);AY(W,"addUtcCueRange",W.addUtcCueRange);AY(W,"showAirplayPicker",W.showAirplayPicker);AY(W,"dispatchReduxAction",W.dispatchReduxAction);AY(W,"getPlayerResponse",W.C5);AY(W,"getWatchNextResponse",W.Vi);AY(W,"getHeartbeatResponse",W.qO);AY(W,"getCurrentTime",W.HR);AY(W,"getDuration",W.CC);AY(W,"getPlayerState",W.getPlayerState);AY(W,"getPlayerStateObject", W.f5);AY(W,"getVideoLoadedFraction",W.getVideoLoadedFraction);AY(W,"getProgressState",W.getProgressState);AY(W,"getVolume",W.getVolume);AY(W,"setVolume",W.ST);AY(W,"isMuted",W.isMuted);AY(W,"mute",W.O7);AY(W,"unMute",W.RT);AY(W,"loadModule",W.loadModule);AY(W,"unloadModule",W.unloadModule);AY(W,"getOption",W.Vu);AY(W,"getOptions",W.getOptions);AY(W,"setOption",W.setOption);AY(W,"loadVideoById",W.Cl);AY(W,"loadVideoByUrl",W.fl);AY(W,"playVideo",W.fv);AY(W,"loadPlaylist",W.loadPlaylist);AY(W,"nextVideo", W.nextVideo);AY(W,"previousVideo",W.previousVideo);AY(W,"playVideoAt",W.playVideoAt);AY(W,"getDebugText",W.getDebugText);AY(W,"getWebPlayerContextConfig",W.getWebPlayerContextConfig);AY(W,"notifyShortsAdSwipeEvent",W.notifyShortsAdSwipeEvent);AY(W,"getVideoContentRect",W.getVideoContentRect);AY(W,"setSqueezeback",W.setSqueezeback);AY(W,"toggleSubtitlesOn",W.toggleSubtitlesOn);AY(W,"isSubtitlesOn",W.isSubtitlesOn);AY(W,"reportPlaybackIssue",W.reportPlaybackIssue);AY(W,"setAutonav",W.setAutonav);AY(W, "isNotServable",W.isNotServable);AY(W,"channelSubscribed",W.channelSubscribed);AY(W,"channelUnsubscribed",W.channelUnsubscribed);AY(W,"togglePictureInPicture",W.togglePictureInPicture);AY(W,"supportsGaplessAudio",W.supportsGaplessAudio);AY(W,"supportsGaplessShorts",W.supportsGaplessShorts);AY(W,"enqueueVideoByPlayerVars",function(J){return void W.enqueueVideoByPlayerVars(J)}); AY(W,"clearQueue",W.clearQueue);AY(W,"getAudioTrack",W.rj);AY(W,"setAudioTrack",W.dRK);AY(W,"getAvailableAudioTracks",W.tY);AY(W,"getMaxPlaybackQuality",W.getMaxPlaybackQuality);AY(W,"getUserPlaybackQualityPreference",W.getUserPlaybackQualityPreference);AY(W,"getSubtitlesUserSettings",W.getSubtitlesUserSettings);AY(W,"resetSubtitlesUserSettings",W.resetSubtitlesUserSettings);AY(W,"setMinimized",W.setMinimized);AY(W,"setOverlayVisibility",W.setOverlayVisibility);AY(W,"confirmYpcRental",W.confirmYpcRental); AY(W,"queueNextVideo",W.queueNextVideo);AY(W,"handleExternalCall",W.handleExternalCall);AY(W,"logApiCall",W.logApiCall);AY(W,"isExternalMethodAvailable",W.isExternalMethodAvailable);AY(W,"setScreenLayer",W.setScreenLayer);AY(W,"getCurrentPlaylistSequence",W.getCurrentPlaylistSequence);AY(W,"getPlaylistSequenceForTime",W.getPlaylistSequenceForTime);AY(W,"shouldSendVisibilityState",W.shouldSendVisibilityState);AY(W,"syncVolume",W.syncVolume);AY(W,"highlightSettingsMenuItem",W.highlightSettingsMenuItem); AY(W,"openSettingsMenuItem",W.openSettingsMenuItem);AY(W,"getEmbeddedPlayerResponse",W.getEmbeddedPlayerResponse);AY(W,"getVisibilityState",W.getVisibilityState);AY(W,"isMutedByMutedAutoplay",W.isMutedByMutedAutoplay);AY(W,"isMutedByEmbedsMutedAutoplay",W.isMutedByEmbedsMutedAutoplay);AY(W,"setGlobalCrop",W.setGlobalCrop);AY(W,"setInternalSize",W.setInternalSize);AY(W,"setFauxFullscreen",W.setFauxFullscreen);AY(W,"setAppFullscreen",W.setAppFullscreen)}; wk=function(W,J,K){W=g.Cl(W.wb(),J);return K?(K.addOnDisposeCallback(W),null):W}; g.Mw=function(W,J,K){return W.app.J().X0?J:g.dF("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:J,SHORTCUT:K})}; s80=function(W){W.wb().element.setAttribute("aria-live","polite")}; g.gk=function(W,J){g.Qf.call(this,W,J);YfT(this);jM(this,"addEventListener",this.FP);jM(this,"removeEventListener",this.ush);jM(this,"cueVideoByPlayerVars",this.o9);jM(this,"loadVideoByPlayerVars",this.NwK);jM(this,"preloadVideoByPlayerVars",this.tAu);jM(this,"loadVideoById",this.Cl);jM(this,"loadVideoByUrl",this.fl);jM(this,"playVideo",this.fv);jM(this,"loadPlaylist",this.loadPlaylist);jM(this,"nextVideo",this.nextVideo);jM(this,"previousVideo",this.previousVideo);jM(this,"playVideoAt",this.playVideoAt); jM(this,"getVideoData",this.I3);jM(this,"seekBy",this.xRh);jM(this,"seekTo",this.icw);jM(this,"showControls",this.showControls);jM(this,"hideControls",this.hideControls);jM(this,"cancelPlayback",this.cancelPlayback);jM(this,"getProgressState",this.getProgressState);jM(this,"isInline",this.isInline);jM(this,"setInline",this.setInline);jM(this,"setLoopVideo",this.setLoopVideo);jM(this,"getLoopVideo",this.getLoopVideo);jM(this,"getVideoContentRect",this.getVideoContentRect);jM(this,"getVideoStats",this.Qi); jM(this,"getCurrentTime",this.b0);jM(this,"getDuration",this.CC);jM(this,"getPlayerState",this.uP);jM(this,"getVideoLoadedFraction",this.gS);jM(this,"mute",this.O7);jM(this,"unMute",this.RT);jM(this,"setVolume",this.ST);jM(this,"loadModule",this.loadModule);jM(this,"unloadModule",this.unloadModule);jM(this,"getOption",this.Vu);jM(this,"getOptions",this.getOptions);jM(this,"setOption",this.setOption);jM(this,"addCueRange",this.addCueRange);jM(this,"getDebugText",this.getDebugText);jM(this,"getStoryboardFormat", this.getStoryboardFormat);jM(this,"toggleFullscreen",this.toggleFullscreen);jM(this,"isFullscreen",this.isFullscreen);jM(this,"getPlayerSize",this.getPlayerSize);jM(this,"toggleSubtitles",this.toggleSubtitles);this.app.J().Y("embeds_enable_move_set_center_crop_to_public")||jM(this,"setCenterCrop",this.setCenterCrop);jM(this,"setFauxFullscreen",this.setFauxFullscreen);jM(this,"setSizeStyle",this.setSizeStyle);jM(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);jM(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); BNA(this)}; g.G5=function(W){W=W.Xz();var J=W.C7.get("endscreen");return J&&J.W1()?!0:W.Tk()}; g.$0=function(W,J){W.getPresentingPlayerType()===3?W.publish("mdxautoplaycancel"):W.qN("onAutonavCancelled",J)}; g.OY=function(W){var J=x0(W.Xz());return W.app.Md&&!W.isFullscreen()||W.getPresentingPlayerType()===3&&J&&J.Yg()&&J.Wh()||!!W.getPlaylist()}; g.T5=function(W,J){g.fl(W,"addEmbedsConversionTrackingParams",[J])}; g.Vf=function(W){return(W=g.Hl(W.Xz()))?W.Va():{}}; g.clQ=function(W){W=(W=W.getVideoData())&&W.K;return!!W&&!(!W.audio||!W.video)&&W.mimeType!=="application/x-mpegURL"}; g.EY=function(W,J,K){W=W.UI().element;var I=O$(W.children,function(q){q=Number(q.getAttribute("data-layer"));return K-q||1}); I<0&&(I=-(I+1));qO(W,J,I);J.setAttribute("data-layer",String(K))}; g.eM=function(W){var J=W.J();if(!J.Ym)return!1;var K=W.getVideoData();if(!K||W.getPresentingPlayerType()===3)return!1;var I=(!K.isLiveDefaultBroadcast||J.Y("allow_poltergust_autoplay"))&&!Kl(K);I=K.isLivePlayback&&(!J.Y("allow_live_autoplay")||!I);var q=K.isLivePlayback&&J.Y("allow_live_autoplay_on_mweb");W=W.getPlaylist();W=!!W&&W.Yg();var S=K.SZ&&K.SZ.playerOverlays||null;S=!!(S&&S.playerOverlayRenderer&&S.playerOverlayRenderer.autoplay);S=K.pP&&S;return!K.ypcPreview&&(!I||q)&&!g.ao(K.G8,"ypc")&& !W&&(!g.xK(J)||S)}; XzL=function(W,J){W=Pfc(W.app.ai().T);W=g.d(W);for(var K=W.next();!K.done;K=W.next()){K=K.value;var I=K.getAvailableAudioTracks(),q=null;I=g.d(I);for(var S=I.next();!S.done;S=I.next())if(S=S.value,S.getLanguageInfo().getId()===J){q=S;break}q&&K.F7(q,!0)}}; RV=function(){bB.apply(this,arguments);this.requestHeaders={}}; Bl=function(){b3||(b3=new RV);return b3}; ml=function(W,J){J?W.requestHeaders.Authorization="Bearer "+J:delete W.requestHeaders.Authorization}; g.rk=function(W){g.R.call(this);var J=this;this.uO=W;this.G$={BK:function(){return J.uO}}}; g.oV=function(W,J,K,I){I=I===void 0?!1:I;g.to.call(this,J);var q=this;this.X=W;this.G8=I;this.N=new g.BW(this);this.fade=new g.qf(this,K,!0,void 0,void 0,function(){q.b6()}); g.B(this,this.N);g.B(this,this.fade)}; Ll=function(W){var J=W.X.getRootNode();return W.X.Y("web_watch_pip")||W.X.Y("web_shorts_pip")?rn(J):document}; WxL=function(W){W.K&&(document.activeElement&&g.po(W.element,document.activeElement)&&W.K.focus(),W.K.setAttribute("aria-expanded","false"),W.K=void 0);g.$d(W.N);W.C=void 0}; k0=function(W,J,K){W.a5()?W.ZJ():W.oZ(J,K)}; z5=function(W,J,K,I){I=new g.k({V:"div",au:["ytp-linked-account-popup-button"],Ky:I,U:{role:"button",tabindex:"0"}});J=new g.k({V:"div",B:"ytp-linked-account-popup",U:{role:"dialog","aria-modal":"true",tabindex:"-1"},L:[{V:"div",B:"ytp-linked-account-popup-title",Ky:J},{V:"div",B:"ytp-linked-account-popup-description",Ky:K},{V:"div",B:"ytp-linked-account-popup-buttons",L:[I]}]});g.oV.call(this,W,{V:"div",B:"ytp-linked-account-popup-container",L:[J]},100);var q=this;this.dialog=J;g.B(this,this.dialog); I.listen("click",function(){q.ZJ()}); g.B(this,I);g.EY(this.X,this.element,4);this.hide()}; g.Y0=function(W,J,K,I){g.to.call(this,W);this.priority=J;K&&g.vl(this,K);I&&this.qv(I)}; g.sY=function(W,J,K,I){W=W===void 0?{}:W;J=J===void 0?[]:J;K=K===void 0?!1:K;I=I===void 0?!1:I;J.push("ytp-menuitem");var q=W;"role"in q||(q.role="menuitem");K||(q=W,"tabindex"in q||(q.tabindex="0"));W={V:K?"a":"div",au:J,U:W,L:[{V:"div",B:"ytp-menuitem-icon",Ky:"{{icon}}"},{V:"div",B:"ytp-menuitem-label",Ky:"{{label}}"},{V:"div",B:"ytp-menuitem-content",Ky:"{{content}}"}]};I&&W.L.push({V:"div",B:"ytp-menuitem-secondary-icon",Ky:"{{secondaryIcon}}"});return W}; g.vl=function(W,J){W.updateValue("label",J)}; cl=function(W){g.Y0.call(this,g.sY({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var J=this;this.X=W;this.K=this.W=!1;this.VP=W.xg();W.createServerVe(this.element,this,!0);this.D(this.X,"settingsMenuVisibilityChanged",function(K){J.Ai(K)}); this.D(this.X,"videodatachange",this.T);this.listen("click",this.onClick);this.T()}; Pl=function(W){return W?g.uG(W):""}; Xf=function(W){g.R.call(this);this.api=W}; Wv=function(W){Xf.call(this,W);var J=this;AY(W,"setAccountLinkState",function(K){J.setAccountLinkState(K)}); AY(W,"updateAccountLinkingConfig",function(K){J.updateAccountLinkingConfig(K)}); W.addEventListener("videodatachange",function(K,I){J.onVideoDataChange(I)}); W.addEventListener("settingsMenuInitialized",function(){J.menuItem=new cl(J.api);g.B(J,J.menuItem)})}; ia0=function(W){this.api=W;this.W={}}; i$=function(W,J,K,I){J in W.W||(K=new g.p9(K,I,{id:J,priority:2,namespace:"appad"}),W.api.qk([K],1),W.W[J]=K)}; J6=function(W){Xf.call(this,W);var J=this;this.events=new g.BW(this);g.B(this,this.events);this.W=new ia0(this.api);this.events.D(this.api,"legacyadtrackingpingreset",function(){J.W.W={}}); this.events.D(this.api,"legacyadtrackingpingchange",function(K){var I=J.W;i$(I,"part2viewed",1,0x8000000000000);i$(I,"engagedview",Math.max(1,K.Tx*1E3),0x8000000000000);if(!K.isLivePlayback){var q=K.lengthSeconds*1E3;S7(K)&&I.api.Y("html5_shorts_gapless_ads_duration_fix")&&(q=I.api.getProgressState().seekableEnd*1E3-K.TE);i$(I,"videoplaytime25",q*.25,q);i$(I,"videoplaytime50",q*.5,q);i$(I,"videoplaytime75",q*.75,q);i$(I,"videoplaytime100",q,0x8000000000000);i$(I,"conversionview",q,0x8000000000000); i$(I,"videoplaybackstart",1,q);i$(I,"videoplayback2s",2E3,q);i$(I,"videoplayback10s",1E4,q)}}); this.events.D(this.api,g.n9("appad"),this.K);this.events.D(this.api,g.AN("appad"),this.K)}; qlL=function(W,J,K){if(!(K in J))return!1;J=J[K];Array.isArray(J)||(J=[J]);J=g.d(J);for(K=J.next();!K.done;K=J.next()){K=K.value;var I={CPN:W.api.getVideoData().clientPlaybackNonce};K=g.H0(K,I);I=void 0;I=I===void 0?!1:I;(I=iQ(JN(K,JxA),K,I,"Active View 3rd Party Integration URL"))||(I=void 0,I=I===void 0?!1:I,I=iQ(JN(K,KxQ),K,I,"Google/YouTube Brand Lift URL"));I||(I=void 0,I=I===void 0?!1:I,I=iQ(JN(K,IIA),K,I,"Nielsen OCR URL"));g.mf(K,void 0,I)}return!0}; K1=function(W,J){SlQ(W,J).then(function(K){g.mf(J,void 0,void 0,K)})}; ID=function(W,J){J.forEach(function(K){K1(W,K)})}; SlQ=function(W,J){return g.$w(W.api.J())&&Aa(J)&&nz(J)?g.pp(W.api.J(),g.m7(W.api.getVideoData())).then(function(K){var I;K&&(I={Authorization:"Bearer "+K});return I},void 0):T_()}; p1I=function(W){Xf.call(this,W);this.events=new g.BW(W);g.B(this,this.events);this.events.D(W,"videoready",function(J){if(W.getPresentingPlayerType()===1){var K,I,q={playerDebugData:{pmlSignal:!!((K=J.getPlayerResponse())==null?0:(I=K.adPlacements)==null?0:I.some(function(S){var p;return S==null?void 0:(p=S.adPlacementRenderer)==null?void 0:p.renderer})), contentCpn:J.clientPlaybackNonce}};g.AF("adsClientStateChange",q)}})}; qh=function(W){g.k.call(this,{V:"button",au:["ytp-button","ytp-autonav-toggle"],U:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},L:[{V:"div",B:"ytp-autonav-toggle-button-container",L:[{V:"div",B:"ytp-autonav-toggle-button",U:{"aria-checked":"true"}}]}]});this.X=W;this.K=[];this.W=!1;this.isChecked=!0;W.createClientVe(this.element,this,113681);this.D(W,"presentingplayerstatechange",this.m3);this.listen("click",this.onClick);this.X.J().Y("web_player_autonav_toggle_always_listen")&& lIA(this);wk(W,this.element,this);this.m3()}; lIA=function(W){W.K.push(W.D(W.X,"videodatachange",W.m3));W.K.push(W.D(W.X,"videoplayerreset",W.m3));W.K.push(W.D(W.X,"onPlaylistUpdate",W.m3));W.K.push(W.D(W.X,"autonavchange",W.Yu))}; nRv=function(W){W.isChecked=W.isChecked;W.T8("ytp-autonav-toggle-button").setAttribute("aria-checked",String(W.isChecked));var J=W.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";W.updateValue("title",J);W.updateValue("label",J);W.X.fQ()}; AxQ=function(W){return W.X.J().Y("web_player_autonav_use_server_provided_state")&&WL(g.E(W.K7()))}; Dqy=function(W){Xf.call(this,W);var J=this;this.events=new g.BW(W);g.B(this,this.events);this.events.D(W,"standardControlsInitialized",function(){var K=new qh(W);g.B(J,K);W.Xm(K,"RIGHT_CONTROLS_LEFT")})}; Sh=function(W,J){g.Y0.call(this,g.sY({role:"menuitemcheckbox","aria-checked":"false"}),J,W,{V:"div",B:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; p1=function(W,J){W.checked=J;W.element.setAttribute("aria-checked",String(W.checked))}; jgL=function(W){var J=!W.J().oH&&W.getPresentingPlayerType()!==3;return W.isFullscreen()||J}; g.l$=function(W,J,K,I){var q=W.currentTarget;if((K===void 0||!K)&&g.gc(W))return W.preventDefault(),!0;J.pauseVideo();W=g.E(q.getAttribute("href"));g.ze(W,I,!0);return!1}; g.n1=function(W,J,K){if(se(J.J())&&J.getPresentingPlayerType()!==2){if(g.gc(K))return J.isFullscreen()&&!J.J().externalFullscreen&&J.toggleFullscreen(),K.preventDefault(),!0}else{var I=g.gc(K);I&&J.pauseVideo();g.ze(W,void 0,!0);I&&(g.vh(W),K.preventDefault())}return!1}; hWA=function(){var W=fIv.includes("es-419")?{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,U:{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"}}]}:{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,U:{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.B="ytp-subtitles-button-icon";return W}; A6=function(){return{V:"div",B:"ytp-spinner-container",L:[{V:"div",B:"ytp-spinner-rotator",L:[{V:"div",B:"ytp-spinner-left",L:[{V:"div",B:"ytp-spinner-circle"}]},{V:"div",B:"ytp-spinner-right",L:[{V:"div",B:"ytp-spinner-circle"}]}]}]}}; Do=function(W){if(document.createRange){var J=document.createRange();J&&(J.selectNodeContents(W),W=window.getSelection())&&(W.removeAllRanges(),W.addRange(J))}}; h6=function(W){var J=W.Y("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";Sh.call(this,J,g.jh.YQ);var K=this;this.X=W;this.W=!1;this.K=new g.P0(function(){g.A5(K.element,"ytp-menuitem-highlighted")},0); this.VP=W.xg();this.setIcon({V:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{V:"path",U:{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.subscribe("select",this.G,this);this.listen(f1,this.T);g.B(this,this.K)}; t6=function(W){Xf.call(this,W);var J=this;this.W=!1;W.addEventListener("settingsMenuInitialized",function(){tmQ(J)}); W.addEventListener("highlightSettingsMenu",function(K){tmQ(J);var I=J.menuItem;K==="menu_item_cinematic_lighting"&&(g.lK(I.element,"ytp-menuitem-highlighted"),g.lK(I.element,"ytp-menuitem-highlight-transition-enabled"),I.K.start())}); AY(W,"updateCinematicSettings",function(K){J.updateCinematicSettings(K)})}; tmQ=function(W){W.menuItem||(W.menuItem=new h6(W.api),g.B(W,W.menuItem),W.menuItem.hs(W.W))}; Fxy=function(W){Xf.call(this,W);var J=this;this.events=new g.BW(W);g.B(this,this.events);this.events.D(W,"applicationvideodatachange",function(K,I){I=I.clipConfig;K==="dataloaded"&&I&&I.startTimeMs!=null&&I.endTimeMs!=null&&J.api.setLoopRange({startTimeMs:Math.floor(Number(I.startTimeMs)),endTimeMs:Math.floor(Number(I.endTimeMs)),postId:I.postId,type:"clips"})})}; FT=function(W){Xf.call(this,W);this.events=new g.BW(W);g.B(this,this.events);AY(W,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));AY(W,"setCreatorEndscreenHideButton",this.W.bind(this))}; aD=function(W,J,K,I){Sh.call(this,"Volumen estable",g.jh.MM);g.lK(this.element,"ytp-drc-menu-item");this.VP=W.xg();this.G=J;this.W=K;this.hasDrcAudioTrack=I;W.addEventListener("videodatachange",this.K.bind(this));W.Y("mta_drc_mutual_exclusion_removal")&&this.D(W,"onPlaybackAudioChange",this.K);W=this.W()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({V:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{V:"path",U:{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.subscribe("select",this.T,this);p1(this,W);this.VP.df(this)}; u$=function(W){Xf.call(this,W);var J=this;this.events=new g.BW(W);g.B(this,this.events);W.Y("html5_show_drc_toggle")&&W.addEventListener("settingsMenuInitialized",function(){J.menuItem||(J.menuItem=new aD(J.api,J.setDrcUserPreference.bind(J),J.getDrcUserPreference.bind(J),J.K.bind(J)),g.B(J,J.menuItem))}); AY(this.api,"setDrcUserPreference",function(I){J.setDrcUserPreference(I)}); AY(this.api,"getDrcUserPreference",function(){return J.getDrcUserPreference()}); AY(this.api,"hasDrcAudioTrack",function(){return J.K()}); var K;this.W=(K=g.V0("yt-player-drc-pref"))!=null?K:1;this.updateEnvironmentData()}; Nh=function(W){Xf.call(this,W);var J=this;this.W={};this.events=new g.BW(W);g.B(this,this.events);this.events.D(W,"videodatachange",function(){J.onVideoDataChange()}); this.events.D(W,g.n9("embargo"),function(K){J.api.o5(!0);var I,q=(I=J.W[K.id])!=null?I:[];I=g.d(q);for(q=I.next();!q.done;q=I.next()){var S=q.value;J.api.hideControls();J.api.Za("auth",2,"This video isn't available in your current playback area",$m({embargoed:1,id:K.id,idx:K.K,start:K.start}));q=void 0;(S=(q=S.embargo)==null?void 0:q.onTrigger)&&J.api.qN("innertubeCommand",S)}})}; aIH=function(W,J){var K;return(K=J.onEnter)==null?void 0:K.some(W.K)}; uyI=function(W,J){J=g.d(J);for(var K=J.next();!K.done;K=J.next()){K=K.value;var I=void 0,q=Number((I=K.playbackPosition)==null?void 0:I.utcTimeMillis)/1E3,S=void 0;I=q+Number((S=K.duration)==null?void 0:S.seconds);S="embargo_"+q;W.api.addUtcCueRange(S,q,I,"embargo",!1);K.onEnter&&(W.W[S]=K.onEnter.filter(W.K))}}; da=function(W){Xf.call(this,W);var J=this;this.W=[];this.events=new g.BW(W);g.B(this,this.events);AY(W,"addEmbedsConversionTrackingParams",function(K){J.api.J().Ph&&J.addEmbedsConversionTrackingParams(K)}); this.events.D(W,"veClickLogged",function(K){J.api.hasVe(K)&&(K=K.visualElement.getAsJspb(),K=s1(K,2),J.W.push(K))})}; NZT=function(W){Xf.call(this,W);AY(W,"isEmbedsShortsMode",function(){return W.isEmbedsShortsMode()})}; dqv=function(W){Xf.call(this,W);var J=this;this.events=new g.BW(W);g.B(this,this.events);this.events.D(W,"initialvideodatacreated",function(K){Rg(em(),16623);J.W=g.M_();var I=W.J().GG&&!K.Da;if(BL(K)&&I){Rg(em(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(K.getWatchNextResponse()){var q,S=(q=K.getWatchNextResponse())==null?void 0:q.trackingParams;S&&B1(S)}if(K.getPlayerResponse()){var p;(K=(p=K.getPlayerResponse())==null?void 0:p.trackingParams)&&B1(K)}}else Rg(em(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),K.getEmbeddedPlayerResponse()&&(p=(S=K.getEmbeddedPlayerResponse())==null?void 0:S.trackingParams)&&B1(p)}); this.events.D(W,"loadvideo",function(){Rg(em(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:J.W})}); this.events.D(W,"cuevideo",function(){Rg(em(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:J.W})}); this.events.D(W,"largeplaybuttonclicked",function(K){Rg(em(),27240,K.visualElement)}); this.events.D(W,"playlistnextbuttonclicked",function(K){Rg(em(),27240,K.visualElement)}); this.events.D(W,"playlistprevbuttonclicked",function(K){Rg(em(),27240,K.visualElement)}); this.events.D(W,"playlistautonextvideo",function(){Rg(em(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; yB=function(W,J){g.R.call(this);var K=this;this.W=null;this.G=J;J=[];for(var I=0;I<=100;I++)J.push(I/100);J={threshold:J,trackVisibility:!0,delay:1E3};(this.K=window.IntersectionObserver?new IntersectionObserver(function(q){q=q[q.length-1];typeof q.isVisible==="undefined"?document.visibilityState==="visible"&&q.isIntersecting&&q.intersectionRatio>0?K.W=q.intersectionRatio:document.visibilityState==="hidden"?K.W=0:K.W=null:K.W=q.isVisible?q.intersectionRatio:0;typeof K.G==="function"&&K.G(K.W)},J): null)&&this.K.observe(W)}; UqT=function(W){Xf.call(this,W);var J=this;this.events=new g.BW(W);g.B(this,this.events);this.events.D(W,"applicationInitialized",function(){yxL(J)})}; yxL=function(W){var J=W.api.getRootNode(),K,I=W.api.getWebPlayerContextConfig().embedsEnableEmc3ds?N0X((K=J.parentElement)==null?void 0:K.parentElement)||J:J;W.W=new yB(I,function(q){q!=null&&(W.api.J().zP=q,W.api.J().Ud="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.B(W,W.W);W.events.D(W.api,"videoStatsPingCreated",function(q){var S=W.W;S=S.W==null?null:Math.round(S.W*100)/100;q.inview=S!=null?S:void 0;S=W.api.getPlayerSize();if(S.height>0&&S.width>0){S=[Math.round(S.width),Math.round(S.height)];var p=g.Pw();p>1&&S.push(p);S=S.join(":")}else S=void 0;q.size=S})}; Za0=function(W){var J;return((J=((W==null?void 0:W.messageRenderers)||[]).find(function(K){return!!K.timeCounterRenderer}))==null?void 0:J.timeCounterRenderer)||null}; U3=function(W){g.k.call(this,{V:"div",au:["ytp-player-content","ytp-iv-player-content"],L:[{V:"div",B:"ytp-free-preview-countdown-timer",L:[{V:"span",Ky:"{{label}}"},{V:"span",B:"ytp-free-preview-countdown-timer-separator",Ky:"\u2022"},{V:"span",Ky:"{{duration}}"}]}]});this.api=W;this.W=null;this.G=this.K=0;this.D(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; C6Q=function(W,J){W.W||(W.K=J,W.G=(0,g.L)(),W.W=new g.c0(function(){QgI(W)},null),QgI(W))}; QgI=function(W){var J=Math,K=J.round,I=Math.min((0,g.L)()-W.G,W.K);J=K.call(J,(W.K-I)/1E3);W.updateValue("duration",$R({seconds:J}));J<=0&&W.W?W.stopTimer():W.W&&W.W.start()}; w1X=function(W){Xf.call(this,W);var J=this;this.events=new g.BW(W);g.B(this,this.events);this.events.D(W,"basechromeinitialized",function(){J.W=new U3(W);g.B(J,J.W);g.EY(W,J.W.element,4);J.W.hide()})}; Zo=function(W){g.k.call(this,{V:"button",au:["ytp-fullerscreen-edu-button","ytp-button"],L:[{V:"div",au:["ytp-fullerscreen-edu-text"],Ky:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{V:"div",au:["ytp-fullerscreen-edu-chevron"],L:[{V:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},L:[{V:"path",U:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],U:{"data-priority":"2"}});this.BS=W;this.fade=new g.qf(this,250,void 0,100);this.K=this.W= !1;W.createClientVe(this.element,this,61214);g.B(this,this.fade);this.D(W,"fullscreentoggled",this.hs);this.D(W,"presentingplayerstatechange",this.hs);this.listen("click",this.onClick);this.hs()}; QB=function(W){Xf.call(this,W);var J=this;this.events=new g.BW(W);g.B(this,this.events);AY(this.api,"updateFullerscreenEduButtonSubtleModeState",function(I){J.updateFullerscreenEduButtonSubtleModeState(I)}); AY(this.api,"updateFullerscreenEduButtonVisibility",function(I){J.updateFullerscreenEduButtonVisibility(I)}); var K=W.J();W.Y("external_fullscreen_with_edu")&&K.externalFullscreen&&se(K)&&K.controlsType==="1"&&this.events.D(W,"standardControlsInitialized",function(){J.W=new Zo(W);g.B(J,J.W);W.Xm(J.W)})}; Mmy=function(W){g.k.call(this,{V:"div",B:"ytp-gated-actions-overlay",L:[{V:"div",B:"ytp-gated-actions-overlay-background",L:[{V:"div",B:"ytp-gated-actions-overlay-background-overlay"}]},{V:"button",au:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],U:{"aria-label":"Cerrar"},L:[g.Zb()]},{V:"div",B:"ytp-gated-actions-overlay-bar",L:[{V:"div",B:"ytp-gated-actions-overlay-text-container",L:[{V:"div",B:"ytp-gated-actions-overlay-title",Ky:"{{title}}"},{V:"div",B:"ytp-gated-actions-overlay-subtitle", Ky:"{{subtitle}}"}]},{V:"div",B:"ytp-gated-actions-overlay-button-container"}]}]});var J=this;this.api=W;this.background=this.T8("ytp-gated-actions-overlay-background");this.K=this.T8("ytp-gated-actions-overlay-button-container");this.W=[];this.D(this.T8("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){J.api.qN("onCloseMiniplayer")}); this.hide()}; GJI=function(W,J){var K=0;K=0;for(var I={};K q&&(q=n.width,S="url("+n.url+")")}K.background.style.backgroundImage=S;GJI(K,I.actionButtons||[]);K.show()}else K.hide()}); g.EY(this.api,this.W.element,4)}; C1=function(W){Xf.call(this,W);var J=this;jM(this.api,"getSphericalProperties",function(){return J.getSphericalProperties()}); jM(this.api,"setSphericalProperties",function(){J.setSphericalProperties.apply(J,g.w(g.EH.apply(0,arguments)))}); DJ(this.api,"getSphericalProperties",function(){return J.api.getPresentingPlayerType()===2?{}:J.getSphericalProperties()}); DJ(this.api,"setSphericalProperties",function(){var K=g.EH.apply(0,arguments);J.api.getPresentingPlayerType()!==2&&J.setSphericalProperties.apply(J,g.w(K))})}; wa=function(W){Xf.call(this,W);AY(W,"createClientVe",this.createClientVe.bind(this));AY(W,"createServerVe",this.createServerVe.bind(this));AY(W,"destroyVe",this.destroyVe.bind(this));AY(W,"hasVe",this.hasVe.bind(this));AY(W,"logClick",this.logClick.bind(this));AY(W,"logVisibility",this.logVisibility.bind(this));AY(W,"setTrackingParams",this.setTrackingParams.bind(this))}; Mh=function(W,J,K,I){function q(p){var n=!(p.status!==204&&p.status!==200&&!p.response),A;p={succ:""+ +n,rc:p.status,lb:((A=p.response)==null?void 0:A.byteLength)||0,rt:((0,g.L)()-S).toFixed(),shost:g.gM(W),trigger:J};xqT(p,W);K&&K(p);I&&!n&&I(new xm("pathprobe.net",p))} var S=(0,g.L)();g.wq(W,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:q,onTimeout:q})}; xqT=function(W,J){var K;((K=window.performance)==null?0:K.getEntriesByName)&&(J=performance.getEntriesByName(J))&&J.length&&(J=J[0],W.pedns=(J.domainLookupEnd-J.startTime).toFixed(),W.pecon=(J.connectEnd-J.domainLookupEnd).toFixed(),W.perqs=(J.requestStart-J.connectEnd).toFixed(),Oav&&(W.perqsa=J.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; TZQ=function(W){Oav=W}; G1=function(W,J){this.Sn=W;this.policy=J;this.playbackRate=1}; HaD=function(W,J){var K=Math.min(2.5,yx(W.Sn));W=$Z(W);return J-K*W}; xZ=function(W,J,K,I,q){q=q===void 0?!1:q;if(W.policy.kU)return Math.ceil(W.policy.kU*J);W.policy.uA&&(I=Math.abs(I));I/=W.playbackRate;var S=1/Qx(W.Sn);K=Math.max(.9*(I-3),yx(W.Sn)+W.Sn.K.W*S)/S*.8/(J+K);K=Math.min(K,I);W.policy.yk>0&&q&&(K=Math.max(K,W.policy.yk));return Vmv(W,K,J)}; Vmv=function(W,J,K){return Math.ceil(Math.max(Math.max(W.policy.zB,W.policy.WM*K),Math.min(Math.min(W.policy.Y3,31*K),Math.ceil(J*K))))||W.policy.zB}; ERX=function(W,J,K){K=xZ(W,J.W.info.Cy,K.W.info.Cy,0);var I=yx(W.Sn)+K/Qx(W.Sn);return Math.max(I,I+W.policy.kJ-K/J.W.info.Cy)}; $Z=function(W){return Qx(W.Sn,!W.policy.HY,W.policy.ue)}; O3=function(W){return $Z(W)/W.playbackRate}; T1=function(W,J,K){var I=W.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],q=W.policy.playbackStartPolicy.startMinReadaheadPolicy||[];W=Infinity;J=g.d(J&&I.length>0?I:q);for(I=J.next();!I.done;I=J.next())I=I.value,q=I.minReadaheadMs||0,K<(I.minBandwidthBytesPerSec||0)||W>q&&(W=q);return W0&&(this.K=K.Ov)}; BZL=function(W,J,K,I,q){if(!I.info.j){if(K.length===0)K.push(I);else{var S;(W=(S=K.pop())==null?void 0:g.AR(S,I))?K.push(W):K.push(I)}return q}var p;(K=(p=K.pop())==null?void 0:g.AR(p,I))||(K=I);if(W.policy.fE&&K.info.K)return W.logger&&W.logger({incompleteSegment:K.info.XD()}),q;I=W.N8(K);q=I.x3;I={clipId:I.clipId,formatId:I.formatId,startTimeMs:I.startTimeMs,durationMs:I.LI,Hj:q,JR:q};q=eWH(J,I.startTimeMs);(K=q>=0?J[q]:null)&&RW0(W,K,I)?I=K:(q+=1,J.splice(q,0,I));K=0;for(S=q+1;S=D+p.K?p=!0:f+p.K=0?W:-W-2}; mqc=function(W,J){if(W.wl){var K=W.wl.UA();if(K.length!==0){if(W.G&&J){var I=W.G,q=I.info.T;!fD(K,q)&&I.info.Z>0&&(0,g.L)()-W.S<5E3&&(W.logger&&W.logger({dend:I.info.XD()}),K=UfH(K,q,q+.01))}W.policy.sS&&W.logger&&W.logger({cbri:""+W.W});I=[];for(var S=q=0;q=p){var f=Object.assign({},W.Ek[S]),h=W.Z0.G.get(EX(W.Ek[S].formatId)),t=Math.max(A,p);p=h.index.sW(t+W.K/ 1E3);A=h.index.getStartTime(p);var F=p+ +(Math.abs(A-t)>W.K/1E3);t=F+W.T;F=h.index.getStartTime(F)*1E3;S!==W.W||J?(f.Hj=t,f.startTimeMs=F):(W.logger&&W.logger({pEvict:"1",og:f.startTimeMs,adj:A*1E3}),f.Hj=p+W.T,f.startTimeMs=A*1E3);p=void 0;A=((p=W.G)==null?void 0:p.info.duration)||11;S===W.W&&nW.K/1E3);p=A+W.T;h=h.index.KD(A)*1E3;f.JR=p;f.durationMs=h-f.startTimeMs;f.Hj<=f.JR&&I.push(f)}DW.K)return!1;if(baX(W,J.formatId,K.formatId))return J.durationMs=Math.max(I,q)-J.startTimeMs,J.JR=Math.max(J.JR,K.JR),!0;if(Math.abs(J.startTimeMs-K.startTimeMs)<=W.K){if(J.durationMs>K.durationMs+W.K){W=J.formatId;var S=J.Hj,p=J.JR;J.formatId=K.formatId;J.durationMs=K.durationMs;J.Hj=K.Hj;J.JR=K.JR;K.formatId=W;K.startTimeMs=q;K.durationMs=I-q;K.Hj=S;K.JR=p;return!1}J.formatId=K.formatId;return!0}I> K.startTimeMs&&(J.durationMs=K.startTimeMs-J.startTimeMs,J.clipId===K.clipId&&(J.JR=K.Hj-1));return!1}; baX=function(W,J,K){return J.itag!==K.itag||J.xtags!==K.xtags?!1:W.Z0.dl||J.lmt===K.lmt}; LxI=function(W,J,K){if(W.logger){for(var I=[],q=0;q=0&&b$(W.audioTrack,W.W)>=0&&S?((W.videoTrack.j||W.audioTrack.j)&&W.loader.WS("iterativeSeeking",{status:"done",count:W.seekCount}),W.videoTrack.j=!1,W.audioTrack.j=!1):I&&g.Cq(function(){if(W.K||!W.policy.P7)ra(W);else{var p=J.startTime,n=J.duration;if(!W.policy.j){var A=K?W.videoTrack.j:W.audioTrack.j,D=W.videoTrack.S!==-1&&W.audioTrack.S!==-1,f=W.W>=p&&W.W432E3&&ugQ(W.Z0);W.G&&(q=W.G,W.G=0);g.Cq(function(){W.policy.j||oD(W,q,102)}); W.loader.WS("initManifestlessSync",{st:q,ost:q+W.loader.nE(),a:W.audioTrack.S,v:W.videoTrack.S});W.T&&(W.T.resolve(q+.1),W.T=null);W.policy.j&&oD(W,q,102)}}}; z1=function(W,J){var K=this;this.MD=W;this.requestNumber=++itD;this.W=this.now();this.N=this.C=NaN;this.Z=this.W;this.G=this.oG=this.j=0;this.S=this.W;this.Js=this.sI=this.jZ=this.fE=this.bb=this.XW=this.K=this.T=0;this.PS=this.isActive=!1;this.SI=this.eZ=0;this.G$={N0h:function(){return K.Xa}}; this.Sn=J.Sn;this.snapshot=vFQ(this.Sn);this.policy=this.Sn.K;this.FX=!!J.FX;this.nG=J.nG;this.wV=J.wV||0;this.Zt=J.Zt||0;J.ZR&&(this.vS=new jb);var I;this.Xa=(I=J.Xa)!=null?I:!1;this.FX||LZA(this.Sn)}; JdA=function(W){W.jZ=Math.max(W.jZ,W.j-W.bb);W.sI=Math.max(W.sI,W.Z-W.fE);W.XW=0}; vv=function(W,J,K){khX(W.Sn,J);W.vS&&(W.vS.add(Math.ceil(J)-Math.ceil(W.Z)),W.vS.add(Math.max(0,Math.ceil(K/1024)-Math.ceil(W.j/1024))));var I=J-W.Z,q=K-W.j;W.oG=q;W.Js=Math.max(W.Js,q/(I+.01)*1E3);W.Z=J;W.j=K;W.XW&&K>W.XW&&JdA(W)}; YZ=function(W,J){W.url=J;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; s3=function(W,J){z1.call(this,W,J);this.sT=this.qD=!1;this.SZ=this.G8=Infinity;this.Y3=NaN;this.Tx=!1;this.bO=NaN;this.Fz=this.OI=this.D0=0;this.Un=J.Un||1;this.Fu=J.Fu||this.Un;this.hk=J.hk;this.x3=J.x3;this.vP=J.vP;KDy(this);this.IE(this.W);this.P7=(this.bO-this.W)/1E3}; ITv=function(W){var J=W.OI||W.D0;return J?W.snapshot.delay+Math.min(W.Zt,(W.N-W.C)/1E3)+J:W.P7}; cv=function(W,J,K){if(!W.FX){J=Math.max(J,.01);var I=W.wV?Math.max(J,K/W.wV):J,q=W.Sn.K.G;q&&(I=J,W.wV&&(I=Math.max(J,K/W.wV*q)));u8(W.Sn,J,K,I)}}; qqH=function(W){return(W.S-W.W)/1E3}; KDy=function(W){W.Y3=W.W+W.snapshot.delay*1E3;W.Tx=!1}; Pv=function(W,J){if(W.hk&&W.x3!==void 0&&W.vP!==void 0){var K=Math,I=K.min,q=W.G8;var S=W.hk;var p=W.W;if(SqQ(S,W.x3))S=J;else{var n=0;S.PY&&(n=.2);S=p+(S.Zt+n)*1E3}W.G8=I.call(K,q,S);K=Math;I=K.min;q=W.SZ;S=W.hk;p=W.W;n=pUQ(S,W.x3,W.vP);n!==2&&(J=n?J:p+S.Zt*1E3,S.PY&&(J+=S.Zt*1E3));W.SZ=I.call(K,q,J);W.G8<=W.W?KDy(W):(W.Y3=W.G8,W.Tx=!0)}}; lTQ=function(W,J){if(W.Jm(J,1)){var K=W.getUint8(J);K=K<128?1:K<192?2:K<224?3:K<240?4:5}else K=0;if(K<1||!W.Jm(J,K))return[-1,J];if(K===1)W=W.getUint8(J++);else if(K===2)K=W.getUint8(J++),W=W.getUint8(J++),W=(K&63)+64*W;else if(K===3){K=W.getUint8(J++);var I=W.getUint8(J++);W=W.getUint8(J++);W=(K&31)+32*(I+256*W)}else if(K===4){K=W.getUint8(J++);I=W.getUint8(J++);var q=W.getUint8(J++);W=W.getUint8(J++);W=(K&15)+16*(I+256*(q+256*W))}else K=J+1,W.focus(K),C2(W,K,4)?W=gLH(W).getUint32(K-W.uv,!0):(I= W.getUint8(K+2)+256*W.getUint8(K+3),W=W.getUint8(K)+256*(W.getUint8(K+1)+256*I)),J+=5;return[W,J]}; XT=function(W){this.MD=W;this.W=new ye}; WI=function(W,J){this.info=W;this.callback=J;this.state=1;this.m0=this.Fq=!1;this.Xs=null}; nAD=function(W){return g.vo(W.info.Ly,function(J){return J.type===3})}; i4=function(W,J,K,I){var q=this;I=I===void 0?{}:I;this.policy=J;this.MD=K;this.status=0;this.W=new ye;this.K=0;this.Iu=this.G=this.mm=!1;this.xhr=new XMLHttpRequest;this.xhr.open(I.method||"GET",W);if(I.headers)for(W=I.headers,J=g.d(Object.keys(W)),K=J.next();!K.done;K=J.next())K=K.value,this.xhr.setRequestHeader(K,W[K]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return q.O9()}; this.xhr.onload=function(){return q.onDone()}; this.xhr.onerror=function(){return q.onError()}; this.xhr.fetch(function(S){q.W.append(S);q.K+=S.length;S=(0,g.L)();q.MD.YI(S,q.K)},function(){},I.body||null)}; K4=function(){this.K=this.Vx=0;this.W=Array.from({length:Ji.length}).fill(0)}; AdQ=function(){}; Dgy=function(){this.startTimeMs=(0,g.L)();this.W=!1}; j_Q=function(){this.W=new AdQ}; fTv=function(W,J,K,I){I=I===void 0?1:I;K>=0&&(J in W.W||(W.W[J]=new K4),W.W[J].Ak(K,I))}; h6D=function(W,J,K,I,q){var S=(0,g.L)(),p=q?q(J):void 0,n;q=(n=p==null?void 0:p.Vx)!=null?n:1;if(q!==0){var A;n=(A=p==null?void 0:p.profile)!=null?A:K;fTv(W,n,S-I,q)}return J}; Ic=function(W,J,K,I,q){if(J&&typeof J==="object"){var S=function(p){return h6D(W,p,K,I,q)}; if(u6(J))return J.then(S);if(twQ(J))return Qz(J,S)}return h6D(W,J,K,I,q)}; FDA=function(){}; aTc=function(W,J){this.K=(new TextEncoder).encode(W);this.W=(new TextEncoder).encode(J)}; SKy=function(W,J){var K,I,q;return g.V(function(S){if(S.K==1){if(!J)return S.return(J);K=qr.Zx();I=new g.Cg(W.K);return g.O(S,I.encrypt(J,W.W),2)}q=S.W;qr.C3("woe",K,Math.ceil(J.byteLength/16));return S.return(q)})}; DBI=function(W,J){var K,I,q;return g.V(function(S){if(S.K==1){if(!J)return S.return(J);K=qr.Zx();I=new g.Cg(W.K);return g.O(S,I.decrypt(J,W.W),2)}q=S.W;qr.C3("wod",K,Math.ceil(J.byteLength/16));return S.return(q)})}; NE0=function(W,J){var K=this;this.W=W;this.MD=J;this.loaded=this.status=0;this.error="";W=be(this.W.get("range")||"");if(!W)throw Error("bad range");this.range=W;this.K=new ye;uQL(this).then(function(){K.MD.PT()},function(I){K.error=""+I||"unknown_err"; K.MD.PT()})}; uQL=function(W){var J,K,I,q,S,p,n,A,D,f,h,t,F,a,y;return g.V(function(U){if(U.K==1){W.status=200;J=W.W.get("docid");K=F1(W.W.get("fmtid")||"");I=W.W.get("lmt")||"0";q=+(W.W.get("csz")||0);if(!J||!K||!q)throw Error("Invalid local URL");W.W.get("ck")&&W.W.get("civ")&&(S=new aTc(W.W.get("ck"),W.W.get("civ")));p=W.range;n=Math.floor(p.start/q);A=Math.floor(p.end/q);D=n}if(U.K!=5)return D<=A?g.O(U,j9y(J,K,I,D,S),5):U.VK(0);f=U.W;if(f===void 0)throw Error("invariant: data is undefined");h=D*q;t=(D+1)*q; F=Math.max(0,p.start-h);a=Math.min(p.end+1,t)-(F+h);y=new Uint8Array(f.buffer,F,a);W.K.append(y);W.loaded+=a;W.loaded0&&(q.W=Math.min(q.W+p,10),q.K=S);q.W>0?(q.W--,q=!0):q=!1;if(q)typeof I==="function"&&(I=I()),console.log("plyr."+J,I);else{var n;I=((n=gAI.get(J))!=null?n:0)+1;gAI.set(J,I);I%100===1&&console.warn("plyr","plyr."+J+" is chatty, dropping logs.")}}}; MwL=function(){this.W=10;this.K=Date.now()}; n4=function(W,J){g.R.call(this);var K=this;this.policy=W;this.Ly=J;this.K=0;this.W=null;this.bN=[];this.G=null;this.G$={CB:function(){return K.Ly}}; this.Ly.length===1||g.vo(this.Ly,function(I){return!!I.range})}; Ai=function(W,J,K){W.W&&(Ur(W.W,J),J=W.W,W.W=null);for(var I=0,q=0,S=g.d(W.Ly),p=S.next();!p.done;p=S.next())if(p=p.value,p.range&&I+p.G<=W.K)I+=p.G;else{J.getLength();if(ot(p)&&!K&&W.K+J.getLength()-q=400?(W.lastError="net.badstatus",!0):(q===void 0?0:q)?(W.lastError="ump.spsrejectfailure",!0):K||I!==void 0&&I?!1:(W.lastError=J===204?"net.nocontent":"net.connect",!0)}; Fq=function(W,J){if(W.policy.pL)return!1;var K=J.getResponseHeader("content-type"),I=J.jM();W=!I||I<=W.policy.ip;return(!J.QQ()||!K||K.indexOf("text/plain")!==-1)&&W}; HtQ=function(W,J){var K="";J=J.xn();J.getLength()<=W.policy.ip&&(K=TEc(W,J.aH()));return K}; TEc=function(W,J){var K=gH(J);return K9(K)?(W.logger.debug(function(){return"Redirecting to "+K}),K):""}; j3=function(W){return $l(W.G,V_(W.Tz.tC))}; VwQ=function(W){var J=W.timing.wJ();J.shost=V_(W.Tz.tC);return J}; EAy=function(W,J){return(W==null?void 0:W.maxWidth)>(J==null?void 0:J.maxWidth)||(W==null?void 0:W.maxHeight)>(J==null?void 0:J.maxHeight)}; e6I=function(W,J){for(var K=g.d(J.keys()),I=K.next();!I.done;I=K.next())if(I=J.get(I.value),I.length!==0){g.TT(I,function(n,A){return A.maxFramerate-n.maxFramerate}); for(var q=[I[0]],S=0,p=1;pW.W||K.push(I)}return K}; ac=function(W,J,K){var I=BEA[W]||[];K.Y("html5_shorts_onesie_mismatched_fix")&&(I=mgL[W]||[]);J.push.apply(J,g.w(I));K.Y("html5_early_media_for_drm")&&J.push.apply(J,g.w(rd0[W]||[]))}; YqQ=function(W,J){var K=g.AS(W),I=W.J(),q=I.j;I=I.Y("html5_shorts_onesie_mismatched_fix");var S=W.bD();if(I){if(!q.K){if(S&&u4)return u4;if(Nr)return Nr}}else if(Nr&&!q.K)return Nr;var p=[],n=[],A={},D=dp.concat(oAv);I&&(D=dp.concat(LDH));W.Y("html5_early_media_for_drm")&&(D=D.concat(kVL),W.Y("allow_vp9_1080p_mq_enc")&&D.push(z6H));var f=[].concat(g.w(vAQ));W.Y("html5_iamf_audio_onesie_fmt")&&f.push(["773"]);D=g.d(D);for(var h=D.next();!h.done;h=D.next()){var t=!1;h=g.d(h.value);for(var F=h.next();!F.done;F= h.next()){F=F.value;var a=np(F,S&&I);if(a&&a.video&&!(X_(a)&&!K.G8&&a.video.qualityOrdinal>K.Qk)){var y=g.FV(W.J().experiments,"html5_drm_byterate_soft_cap");y>0&&dfc(a)&&a.Cy>y||(t?(p.push(F),ac(F,p,W)):(a=Ct(K,a,q),a===!0?(t=!0,p.push(F),ac(F,p,W)):A[F]=a))}}}f=g.d(f);for(D=f.next();!D.done;D=f.next())for(D=g.d(D.value),t=D.next();!t.done;t=D.next())if(t=t.value,(h=aqc(t))&&h.audio&&(W.Y("html5_onesie_51_audio")||!WF(h)&&!ir(h)))if(h=Ct(K,h,q),h===!0){n.push(t);ac(t,n,W);break}else A[t]=h;K.K&& J("orfmts",A);if(I)return q.K&&(q.K=!1,u4=Nr=void 0),S?u4={video:p,audio:n}:Nr={video:p,audio:n};Nr={video:p,audio:n};q.K=!1;return Nr}; g.PSc=function(W,J,K){var I=K.j,q=[],S=[],p=K.Y("html5_shorts_onesie_mismatched_fix");W=W.bD();var n=dp.concat(oAv);p&&(n=dp.concat(LDH));K.Y("html5_early_media_for_drm")&&(n=n.concat(kVL),K.Y("allow_vp9_1080p_mq_enc")&&n.push(z6H));var A=[].concat(g.w(vAQ));K.Y("html5_iamf_audio_onesie_fmt")&&A.push(["773"]);n=g.d(n);for(var D=n.next();!D.done;D=n.next()){D=g.d(D.value);for(var f=D.next();!f.done;f=D.next()){f=f.value;var h=np(f,W&&p);if(h&&h.video){var t=g.FV(K.experiments,"html5_drm_byterate_soft_cap"); if(!(t>0&&dfc(h)&&h.Cy>t)&&Ct(J,h,I)===!0){q.push({videoCodec:s_c[vW[f]],maxWidth:h.video.width,maxHeight:h.video.height,maxFramerate:h.video.fps});break}}}}p=g.d(A);for(W=p.next();!W.done;W=p.next())for(W=g.d(W.value),A=W.next();!A.done;A=W.next())if(A=A.value,(n=aqc(A))&&n.audio&&(K.Y("html5_onesie_51_audio")||!WF(n)&&!ir(n))&&Ct(J,n,I)===!0){S.push({audioCodec:cdD[vW[A]],numChannels:n.audio.numChannels});break}return{videoFormatCapabilities:q,audioFormatCapabilities:S}}; UC=function(W){var J={},K=W.uO,I=W.QK,q=K.getVideoData(),S=sl(0),p=K.getPlayerSize(),n=K.getVisibilityState();if(I.Y("html5_enable_audio_quality_setting")){var A=g.FV(I.experiments,"html5_default_audio_quality_setting_lr"),D;J.Lh=(D=XUX[A])!=null?D:0}S&&(J.iyN=S,J.lastManualDirection=R5Q(),S=ktQ()||0,S>0&&(S=(I.Y("html5_use_date_now_for_local_storage")?Date.now():(0,g.L)())-S,I.Y("html5_use_date_now_for_local_storage")?S>0&&(J.timeSinceLastManualFormatSelectionMs=S):J.timeSinceLastManualFormatSelectionMs= S));S=I.Y("html5_use_streamer_bandwidth_for_low_latency_live")&&q.isLowLatencyLiveStream;if(I.schedule.PS&&!S){var f;S=I.Y("html5_disable_bandwidth_cofactors_for_sabr_live")?!((f=W.lK)==null||!f.HY):!1;J.Uj=Qx(I.schedule,!S)}S=g.Pw();A=g.os.medium;D=Math.floor(A*16/9);f=q.bD()?A:D;A=q.bD()?D:A;D=p.width*S;p=p.height*S;I.Y("html5_sabr_use_container_size")&&(p=K.Jd(),D=p.width,p=p.height);J.VD=Math.max(D,f);J.TC=Math.max(p,A);J.visibility=n;J.cS3=gb();J.eb=K.MB()*1E3;n=W.uO.LJ(!0);var h,t,F,a,y,U;J.nCI= {defaultPolicy:(n==null?void 0:(h=n.k5)==null?void 0:h.W)||0,smooth:(n==null?void 0:(t=n.nAO)==null?void 0:t.W)||0,visibility:(n==null?void 0:(F=n.zIN)==null?void 0:F.W)||0,PR:(n==null?void 0:(a=n.K5)==null?void 0:a.W)||0,performance:(n==null?void 0:(y=n.mG)==null?void 0:y.W)||0,speed:(n==null?void 0:(U=n.URS)==null?void 0:U.W)||0};var Q;J.RIg=(n==null?void 0:(Q=n.ftS)==null?void 0:Q.W)||0;J.Wj=W.Wj&&W.Wj.length>0?W.Wj:[1,2];W.sabrLicenseConstraint&&(J.sabrLicenseConstraint=W.sabrLicenseConstraint); if(I.Y("html5_onesie_media_capabilities")||I.Y("html5_enable_server_format_filter"))J.sE=3;I.Y("html5_onesie_audio_only_playback")&&pK(q)&&(J.sE=1);var C;((C=W.lK)==null?0:C.eZ)&&W.G8W&&(J.sE=J.sE===void 0?7:J.sE|4);h=q.dB?q.dB:g.AS(q);I.Y("html5_onesie_media_capabilities")&&(J.mediaCapabilities=g.PSc(q,h,I));var T;if((T=W.lK)==null?0:yn(T)){F=I.j;T=[];t=[];a=new Map;y=Array.from(F.W.values());y=g.d(y);for(U=y.next();!U.done;U=y.next())Q=U.value,Q.SF?t.push({audioCodec:cdD[Q.z8],numChannels:Q.numChannels, spatialCapabilityBitmask:WNQ[Q.z8]}):(C=s_c[Q.z8],U={videoCodec:C,maxWidth:Q.maxWidth||0,maxHeight:Q.maxHeight||0,maxFramerate:Q.maxFramerate||0,is10BitSupported:Q.EY||!1},Q.maxBitrateBps&&(U.maxBitrateBps=Q.maxBitrateBps,n=np(Q.itag),p=void 0,((p=n)==null?0:p.video)&&Ct(h,n,F)===!0&&(n=n.Cy*8,n>U.maxBitrateBps&&(U.maxBitrateBps=n))),Q=C+"_"+Q.EY,C=a.get(Q)||[],C.push(U),a.set(Q,C));T=e6I(T,a);F={};I.Y("html5_ssff_denylist_opus_low")&&(F={itagDenylist:[249,350]});J.mediaCapabilities={videoFormatCapabilities:T, audioFormatCapabilities:t,hdrModeBitmask:3,perPlaybackAttributes:F}}var H;if((H=W.lK)==null?0:H.W){J.l8=h.l8;var b;J.Qk=(b=W.lK)==null?void 0:b.Qk}I.Da&&(J.qW=I.Da);J.Pf=W.qx;J.A4=W.A4;J.yW=W.yW;J.It=W.It;if(I.Y("html5_fix_time_since_last_seek_reporting")?W.M3!==void 0:W.M3)J.aLh=(0,g.L)()-W.M3;W.isPrefetch&&I.Y("html5_report_prefetch_requests")&&(J.isPrefetch=!0);IP||(J.uzO=!0);H=yx(I.schedule)*1E3;H>0&&(J.x5=H);var c;((c=W.lK)==null?0:c.RR)&&W.y8&&W.y80?v:I.schedule.interruptions[0]||0);var Kv;if((Kv=W.lK)==null?0:Kv.Tx)J.vM=W.vM;I.Y("html5_sabr_enable_server_xtag_selection")&&(q.JO||I.Js)&&(J.audioTrackId=q.JO||I.Js);if(LK(q)&&!J.audioTrackId){var qI;a:{var WH,nv,P;Kv= (WH=q.playerResponse)==null?void 0:(nv=WH.playerConfig)==null?void 0:(P=nv.compositeVideoConfig)==null?void 0:P.sourceConfigs;var UH,MI;WH=(qI=q.playerResponse)==null?void 0:(UH=qI.playerConfig)==null?void 0:(MI=UH.compositeVideoConfig)==null?void 0:MI.defaultActiveSourceVideoId;if(Kv&&WH)for(qI=g.d(Kv),UH=qI.next();!UH.done;UH=qI.next())if(UH=UH.value,UH.videoId===WH&&UH.audioTracks)for(UH=g.d(UH.audioTracks),MI=UH.next();!MI.done;MI=UH.next())if(MI=MI.value,MI.isDefaultForSource){qI=MI.id||"";break a}qI= ""}J.audioTrackId=qI;q==null||q.WS("misstrkchg",{"default":J.audioTrackId})}var oy;if((oy=W.lK)==null?0:oy.jU)if(W=a1Q())J.detailedNetworkType=im0[W]||im0.other;I.Y("html5_enable_voice_boost")&&(J.UPS=I.Pg);return J}; ZN=function(W,J,K,I,q,S,p){var n={};J&&(n.tf=J);if(!W)return n;n.playbackCookie=K==null?void 0:K.playbackCookie;q&&(n.B8=q);n.rL=[];n.jj=[];if(p==null?0:p.size)for(J=g.d(p.values()),K=J.next();!K.done;K=J.next())n.jj.push(K.value);if(W.sabrContextUpdates.size>0)for(J=g.d(W.sabrContextUpdates.values()),K=J.next();!K.done;K=J.next())JtQ(n,K.value,I);tdQ(W)&&S&&JtQ(n,S,I);W.Pc&&(n.F1I=W.Pc);I=W.J().W;n.clientInfo={clientName:KNv[I.c.toUpperCase()]||0};I.cbrand&&(n.clientInfo.deviceMake=I.cbrand);I.cmodel&& (n.clientInfo.deviceModel=I.cmodel);I.cver&&(n.clientInfo.clientVersion=I.cver);I.cos&&(n.clientInfo.osName=I.cos);I.cosver&&(n.clientInfo.osVersion=I.cosver);I=W.J();I.Y("html5_sabr_enable_server_xtag_selection")&&I.Lk&&(n.clientInfo.hl=I.Lk);W.IW&&(n.IW=W.IW);return n}; JtQ=function(W,J,K){var I=J.type||0;(K==null?0:K.has(I))?W.jj.push(J):W.rL.push(I)}; eh=function(W,J,K,I,q,S){var p=S===void 0?{}:S;var n=p.jX===void 0?[]:p.jX;var A=p.I6===void 0?!1:p.I6;var D=p.Xn===void 0?0:p.Xn;var f=p.poToken===void 0?"":p.poToken;var h=p.uI===void 0?void 0:p.uI;var t=p.w_===void 0?"":p.w_;var F=p.hS===void 0?0:p.hS;var a=p.j3===void 0?new Uint8Array(0):p.j3;var y=p.Dp===void 0?!1:p.Dp;S=p.ZC===void 0?0:p.ZC;p=p.tf===void 0?void 0:p.tf;WI.call(this,J,q);var U=this;this.policy=W;this.logger=new g.p4("dash/request");this.On=this.Dt=0;this.Dl=!1;this.Im=this.sJ= null;this.nN=!1;this.j3=this.hS=null;this.Ce=this.AX=!1;this.fF=null;this.ZC=this.Bd=0;this.Q8=!1;this.G$={Ap:function(C){U.Ap(C)}, WNZ:function(){return U.Xs}, N18:function(C){U.Xs=C}, DI0:function(C){U.Dt=C}, wd0:function(C){U.YK.lastError=C}, O$:function(){return U.xhr}}; this.timing=new s3(this,K);this.I6=A;this.hS=F;this.j3=a;this.Tz=g.X9(this.info,this.policy,I);this.Tz.set("rn",this.eS().toString());this.Tz.set("rbuf",(D*1E3).toFixed().toString());this.I6&&this.Tz.set("smb","1");this.policy.UQ&&f&&this.Tz.set("pot",f);t&&this.Tz.set("bbs",t);this.policy.useUmp&&!Eq(this.Tz.tC)&&(this.n4=new XT(this),this.Tz.set("ump","1"),this.Tz.set("srfvp","1"));if(W=this.policy.Mq?this.policy.qf&&!isNaN(this.info.vP)&&this.info.vP>this.policy.EL?!1:!0:!1)J=null,this.policy.o6&& this.policy.GP?J=[1]:y&&(J=[]),J!=null&&(this.policy.DG&&J.push(2),this.Tz.set("defsel",J.join(",")));this.YK=new DN(this,this.policy,this.Tz,this.info.c7,this.timing,this.logger,I,h);this.jX=n||null;this.m0=IiA(this);GVI(this.YK);I=void 0;if(this.policy.TU||this.n4||this.policy.jZ)I={method:"POST"},n=(0,g.Qn)([120,0]),h={},this.policy.uX&&p&&(p=ZN(void 0,p),h.Oy=p),this.policy.hm&&this.j3&&(h.videoPlaybackUstreamerConfig=this.j3),this.policy.jZ&&(p=this.info.T)&&Object.assign(h,p),Object.keys(h).length> 0?I.body=g.XO(h,g.Ad):I.body=n;if(this.hS&&this.j3){this.Tz.set("iwts","1");I={method:"POST"};p={It:this.hS*1E3};var Q;n=(Q=this.info.T)==null?void 0:Q.Ag;Q=g.XO({oY:p,Ag:n||void 0,videoPlaybackUstreamerConfig:this.j3},g.Ad);I.body=Q}try{this.xhr=S3(this.Tz,this.policy.Z,this.timing,W,I),this.YK.K.start(),S&&(this.YW=new g.P0(this.Ti,S,this),this.YW.start(S+(this.timing.Sn.N.Lc()||0)*1E3)),this.policy.LS&&YZ(this.timing,this.xm()),this.logger.debug(function(){return"Sent, itag="+U.Tz.get("itag")+ " seg="+U.info.Ly[0].x3+" range="+U.Tz.get("range")+" time="+Math.round(U.info.Ly[0].T)+"-"+Math.round(g.jl(U.info.Ly).S)+" rtp="+(U.timing.G7()-Date.now()).toFixed(0)}),g.Cq(function(){})}catch(C){qXX(this,C,!0)}}; IiA=function(W){if(!(PQ(W.info)&&W.info.Xa()&&W.policy.Bt&&W.jX)||W.info.c7.G>=2||sl()>0||!rAA())return!1;var J=W.Tz.get("aitags");if(!J)return!1;J=F1(J).split(",");for(var K=[],I=g.d(W.jX),q=I.next();!q.done;q=I.next())q=q.value,g.ao(J,q)&&K.push(q);if(!K.length)return!1;W.Tz.set("altitags",g.tz(K.join(",")));return!0}; qXX=function(W,J,K){K=K===void 0?!1:K;g.Va(J);W.YK.lastError="player.exception";W.errorMessage=J.name+"_"+J.message;K?g.Cq(function(){hi(W.YK)}):hi(W.YK)}; SXH=function(W,J){W.timing.PS=!0;W.xhr.QQ()&&W.timing.Fx();if(W.policy.nk){var K;(K=W.YW)==null||K.stop()}Ai(W.Xs,J,!1)}; pQQ=function(W,J){W.info=J;if(W.Xs){var K=W.Xs;J=J.Ly;(J.length!==K.Ly.length||J.length0){J=g.d(J.Ly);for(var K=J.next();!K.done;K=J.next()){var I=void 0;W+=((I=K.value.range)==null?void 0:I.length)||0}return W}if(J.po.length>0)for(K=g.d(J.po),I=K.next();!I.done;I=K.next())W+=I.value.tA||0;return W+J.Gd}; OC=function(W,J){if(Gx){var K=0;W=W.Nv.get(J);if(W==null||!W.ZB)return 0;W=g.d(W.ZB.values());for(J=W.next();!J.done;J=W.next())K+=J.value.data.getLength();return K}return((K=W.Nv.get(J))==null?void 0:K.bN.getLength())||0}; Tx=function(W,J){W=W.Nv.get(J);if(Gx){if(W==null||!W.QZ)return!1;J=W.ZB.size>0;return W.Ni.length>0||J}return!(W==null||!W.QZ)&&!(W==null||!W.bN.getLength())}; fiD=function(W,J){var K=W.Nv.get(J),I=jtI(W,J),q=!I&&!!K.bytesReceived;if(Gx){var S;if((S=W.Z0)==null?0:S.dl){W=g.d(K.ZB.values());for(J=W.next();!J.done;J=W.next())if(!J.value.KW)return!1;return q}}else if(S=W.RV(J),q&&W.W&&S!==void 0)return S;return(q||K.bytesReceived===I)&&K.xN+OC(W,J)===K.bytesReceived}; hey=function(W,J,K){W.Nv.set(J,{bN:new ye,xN:0,bytesReceived:0,Gd:0,Gj:!1,eF:!1,RV:!1,SF:K,Jr:[],Ly:[],po:[],QZ:!1,ZB:new Map,a6:new Map,Ni:[]});W.logger.debug(function(){return"[initStream] formatId: "+J})}; tZQ=function(W,J,K,I){K.Ly.push.apply(K.Ly,g.w(I));if(Gx){K.a6.has(J)||K.a6.set(J,[]);var q;(q=K.a6.get(J)).push.apply(q,g.w(I))}else if(K.Xs)for(W=g.d(I),J=W.next();!J.done;J=W.next())K.Xs.Ly.push(J.value);else{K.Xs=new n4(W.lK,[].concat(g.w(K.Ly)));var S;((S=W.lK)==null?0:S.qY)&&g.B(W,K.Xs)}}; FND=function(W,J,K){var I,q=(I=W.Z0)==null?void 0:I.G.get(J);if(!q)return[];if(K.J2){var S;return((S=q.Am(0,K.clipId))==null?void 0:S.Ly)||[]}if(q.Y0()){var p=K.startMs,n=K.durationMs,A=1E3,D;if(((D=W.lK)==null?0:D.W)&&K.timeRange){var f;p=(f=K.timeRange.startTicks)!=null?f:-1;var h;n=(h=K.timeRange.Rk)!=null?h:-1;var t;A=(t=K.timeRange.timescale)!=null?t:-1}if(K.Kx<0||K.QH<0||n<0||p<0||K.tA<0||A<0)return x_(W,J),[];W=BQ(K.Kx,K.tA);J=K.Hp||0;return[new rA(3,q,W,"makeSliceInfosMediaBytes",K.QH-1,p/ A,n/A,J,W.length-J,void 0,K.pU,K.clipId)]}if(K.QH<0)return x_(W,J),[];var F;return((F=W.Z0)==null?0:F.dl)?(J=q.kh,D=J*q.info.Cy,f=((p=W.lK)==null?0:p.fE)?K.Hp:void 0,((A=W.lK)==null?0:A.yv)&&K.timeRange&&!f&&(n=K.timeRange.startTicks/K.timeRange.timescale),[new rA(3,q,void 0,"makeSliceInfosMediaBytes",K.QH,n,J,f,D,!0,K.pU,K.clipId)]):[]}; aiQ=function(W,J,K){W.Z0=J;W.lK=K;J=g.d(W.Nv);for(K=J.next();!K.done;K=J.next()){var I=g.d(K.value);K=I.next().value;I=I.next().value;for(var q=g.d(I.Jr),S=q.next();!S.done;S=q.next()){S=S.value;var p=FND(W,K,S);tZQ(W,S.pp,I,p)}}}; HI=function(W,J,K,I){W.logger.debug(function(){return"[addStreamData] formatId: "+K+",headerId: "+J+" bytes: "+I.getLength()}); (W=W.Nv.get(K))&&!W.eF&&(Gx?(W.ZB.has(J)||W.ZB.set(J,{data:new ye,CF:0,KW:!1}),Ur(W.ZB.get(J).data,I)):Ur(W.bN,I),W.bytesReceived+=I.getLength(),W.Gj=!0)}; $_=function(W,J){W.logger.debug(function(){return"[closeStream] formatId: "+J}); var K=W.Nv.get(J);K&&!K.eF&&(K.eF=!0,K.oo&&K.oo(),u9Q(W)&&W.T.Db())}; u9Q=function(W){W=g.d(W.Nv.values());for(var J=W.next();!J.done;J=W.next())if(!J.value.eF)return!1;return!0}; NAc=function(W){Gx=W}; Vn=function(W,J,K,I,q,S,p){g.R.call(this);this.policy=W;this.info=J;this.Z0=K;this.MD=q;this.logger=new g.p4("sabr");this.n4=new XT(this);this.Yc=new Mr(this);this.Ro=new gp(this);this.state=1;this.i7=!1;this.ZZ=0;this.clipId="";this.yd=-1;this.Qb=0;this.TX=-1;this.Q8=this.DK=!1;this.n2=0;this.D$=!1;this.policy.Kd?this.PD=new C4(this,S):this.PD=new s3(this,S);this.Tz=this.policy.Tx?J.s8:g.E(d$X(J,this.policy,I));this.Tz.set("rn",""+this.eS());this.Tz.set("alr","yes");aiQ(this.Ro,K,W);this.YK=new DN(this, this.policy,this.Tz,J.c7,this.PD,this.logger,I,p,this.policy.enableServerDrivenRequestCancellation);GVI(this.YK);var n;if((n=this.policy)==null?0:n.qY)g.B(this,this.Ro),g.B(this,this.YK);W=J.K;J={method:"POST",body:W};W&&(this.Qb=W.length);try{this.xhr=S3(this.Tz,this.policy.Z,this.PD,IP,J),this.policy.LS&&YZ(this.PD,this.xm()),this.YK.K.start()}catch(A){g.ET(A)}}; ytL=function(W){W.policy.VM&&W.Wv&&!W.D$?W.D$=!0:W.PD.Fx()}; U$Q=function(W,J){var K=-1,I=-1,q=-1,S;if((S=W.YB)==null?0:S.items)for(W=g.d(W.YB.items),S=W.next();!S.done;S=W.next())S=S.value,J=n,A=W.Z0.isManifestless&&W.policy.qr,p){var D;if(((D=W.W)==null?void 0:D.rB.event)==="predictStart"&&W.W.x3W.S&&(W.S=NaN,W.Z=NaN);W.W&&W.W.x3===J?ReL(W,J,K,W.W,q):W.K===1&&b4(W,5,"noad")}; bmL=function(W,J,K,I,q){I.Iy?b4(W,4,"cue"):(W.S=J,W.Z=K,W.WS("sdai",{joinad:W.K,sg:W.S,st:W.Z.toFixed(3)}),W.C=Date.now(),b4(W,2,W.K===3?"staftpred":"join"),q.IP(I.rB))}; ReL=function(W,J,K,I,q){if(q&&I){var S=I.rB,p=q.hJ(S);S.event==="predictStart"&&(W.sI=J);W.WS("sdai",{onqevt:S.event,sq:J,mt:K,gab:p,cst:S.startSecs,cueid:W.policy.TF&&(p||S.event==="start")?S.identifier:void 0},!0);if(p)if(S.event!=="predictStart")S.event==="start"&&W.sI===J-1&&W.WS("sdai",{gabonstart:J}),bmL(W,J,K,I,q);else if(W.policy.wB)b4(W,3,"predict");else{var n=J+Math.max(Math.ceil(-S.W/5E3),1);p=Math.floor(K-S.W/1E3);W.policy.G?W.j=p:W.T=n;W.WS("sdai",{onpred:K,estsq:n,estmt:p.toFixed(3)}); BI(W.loader,p,p,n);W.C=Date.now();b4(W,3,"predict");q.IP(I.rB)}else W.K===1?((n=W.G)==null?0:n.im(K))?(BI(W.loader,K,K,J),b4(W,4,"sk2head")):b4(W,5,"nogab"):S.event==="predictStart"?W.policy.G&&W.j>0?(K=Math.floor(K-S.W/1E3),W.j!==K&&W.WS("sdai",{updateSt:K,old:W.j}),W.j=K):W.T>0&&(K=J+Math.max(Math.ceil(-S.W/5E3),1),W.T!==K&&(W.WS("sdai",{updateSt:K,old:W.T}),W.T=K)):W.policy.wB&&W.K===3&&bmL(W,J,K,I,q);var A,D;if(W.rf&&S.event==="start"&&((A=W.W)==null?void 0:A.rB.event)!=="predictStart"&&((D=W.W)== null?void 0:D.x3)===J-1){var f;W.WS("sdai",{ovlpst:(f=W.W)==null?void 0:f.rB.event,sq:J})}}else W.WS("sdai",{nulldec:1,sq:J,mt:K.toFixed(3),evt:(I==null?void 0:(S=I.rB)==null?void 0:S.event)||"none"})}; m$X=function(W,J,K){if(W.policy.Ph&&W.policy.G)return!(W.K===1||W.K===2||!W.policy.wB&&W.K===3&&K>=W.T);if(W.K===1||W.K===2)return!1;if(W.K!==0&&J===W.audioTrack){if(W.policy.G)return BAQ(W.videoTrack,K)||BAQ(W.videoTrack,K+1);W=m1(W.videoTrack);if(K>(W?W.x3:-1))return!1}return!0}; rp=function(W,J,K){return(K<0||K===W.S)&&!isNaN(W.Z)?W.Z:J}; HmX=function(W,J){if(W.W){var K=W.W.rB.vt-(J.startTime+W.N-W.W.rB.startSecs);K<=0||(K=new cU(W.W.rB.startSecs-(isNaN(W.N)?0:W.N),K,W.W.rB.context,W.W.rB.identifier,"stop",W.W.rB.W+J.duration*1E3),W.WS("cuepointdiscontinuity",{segNum:J.x3}),Rc(W,K,J.x3))}}; b4=function(W,J,K){W.K!==J&&(W.WS("sdai",{setsst:J,old:W.K,r:K}),W.K=J)}; oc=function(W,J,K,I){(I===void 0?0:I)?b4(W,1,"seek"):J>0&&Math.abs(J-K)>=5&&W.K===4&&b4(W,5,"sk2t")}; L4=function(W,J,K){this.audio=W;this.video=J;this.reason=K}; k_=function(W,J,K){this.W=W;this.reason=J;this.token=K;this.videoId=void 0}; zx=function(W,J,K){g.R.call(this);this.policy=W;this.T=J;this.WS=K;this.G=new Map;this.j=0;this.S=!1;this.W="";this.K=!1}; vI=function(W,J,K){if(K===void 0?0:K)W.S=!0;++W.j;K=6E4*Math.pow(2,W.j);K=(0,g.L)()+K;W.G.set(J.info.id,K)}; Y_=function(W){for(var J=g.d(W.G.entries()),K=J.next();!K.done;K=J.next()){var I=g.d(K.value);K=I.next().value;I=I.next().value;I<(0,g.L)()&&W.G.delete(K)}return W.G}; rtQ=function(W){return W.S&&Y_(W).size>0}; sC=function(W,J){W.W!==J&&(W.W=J,W.K=!0)}; olH=function(W,J){var K;J&&(K=g.hW(W.T.W,function(q){return q.id===J})); if(!K&&(K=g.hW(W.T.W,function(q){var S;return!((S=q.pE)==null||!S.isDefault)}),J)){var I; W.WS("iaf",{id:J,sid:(I=K)==null?void 0:I.id})}return K}; PI=function(W,J,K,I,q,S){var p=this;S=S===void 0?[]:S;this.loader=W;this.G8=J;this.policy=K;this.Z0=I;this.S=q;this.Js=S;this.logger=new g.p4("dash/abr");this.W=k5;this.G=this.Z=null;this.C=-1;this.SZ=!1;this.nextVideo=this.K=null;this.T=[];this.OI=new Set;this.jZ={};this.bO=new hr(1);this.N=0;this.D0=this.sI=this.PS=!1;this.XW=0;this.FW=!1;this.vS=new Set;this.Y3=!1;this.G$={BA:function(){cI(p)}}; this.j=new zx(this.policy,q,function(n,A){p.loader.WS(n,A)})}; YXQ=function(W,J,K){Xq(W,J);J=olH(W.j,K);K||J||(J=LNy(W));J=J||W.S.W[0];W.K=W.Z0.W[J.id];cI(W);W.Z=W.K;kwH(W);zeD(W);W.G=W.nextVideo;W.Z=W.K;return vl0(W)}; PeQ=function(W,J){if(stD(W,J))return null;if(J.reason==="m"&&J.isLocked())return W.logger.debug(function(){return"User sets constraint to: "+dE(J)}),Xq(W,J),W.N=W.T.length-1,cI(W),WG(W),W.sI=W.sI||W.G!==W.nextVideo,W.G=W.nextVideo,new L4(W.K,W.G,J.reason); J.reason==="r"&&(W.C=-1);Xq(W,J);WG(W);if(J.reason==="r"&&W.nextVideo===W.G)return new L4(W.K,W.nextVideo,J.reason);ctH(W);return null}; XQD=function(W,J,K){W.K=W.Z0.W[J];W.Z=W.K;return new L4(W.Z,W.G,K?"t":"m")}; WIQ=function(W,J){if(J.info.video){if(W.G!==J)return W.G=J,vl0(W)}else W.D0=W.Z!==J,W.Z=J;return null}; isH=function(W,J){if(J.W.info.video&&J.j){var K=(J.K+J.G)/J.duration,I=J.W.info.Cy;K&&I&&(W.bO.o7(1,K/I),W.policy.K&&K/I>1.5&&W.loader.WS("overshoot",{sq:J.x3,br:K,max:I}))}}; i_=function(W,J,K){vI(W.j,J,K===void 0?!1:K);W.C=-1;Xq(W,W.W)}; JRy=function(W,J){return new L4(W.Z,W.G,J||W.W.reason)}; ctH=function(W){if(W.G&&W.nextVideo&&Je(W,W.G.info)W.policy.Qk,n=q<=W.policy.Qk?X_(I):sS(I);if(!S||p||n)K[q]=I}return K}; Xq=function(W,J){W.W=J;var K=W.S.videoInfos;if(!W.W.isLocked()){var I=(0,g.L)();K=g.Ei(K,function(n){if(n.Cy>this.policy.Cy)return!1;var A=this.Z0.W[n.id];return Y_(this.j).get(n.id)>I?!1:A.c7.G>4||A.S>4?(this.logger.debug(function(){return"Remove "+nD(n)+"; 4 load failures"}),!1):this.vS.has(+n.itag)?!1:!0},W); rtQ(W.j)&&(K=g.Ei(K,function(n){return n.video.width<=854&&n.video.height<=480}))}K.length||(K=W.S.videoInfos); var q=K;W.policy.G4&&(q=IeH(W,q,J));q=g.Ei(q,J.T,J);if(W.W.isLocked()&&W.j.W){var S=g.hW(K,function(n){return n.id===W.j.W}); S?q=[S]:sC(W.j,"")}W.policy.G4||(q=IeH(W,q,J));q.length||(q=[K[0]]);q.sort(function(n,A){return Je(W,n)-Je(W,A)}); J={};for(K=1;KJ.Z_.video.width?(g.u0(q,K),K--):Je(W,J.PH)*W.policy.N>Je(W,J.Z_)&&(g.u0(q,K-1),K--);var p=q[q.length-1];W.FW=!!W.G&&!!W.G.info&&W.G.info.z8!==p.z8;W.logger.debug(function(){return"Constraint: "+dE(W.W)+", "+q.length+" fmts selectable, max selectable fmt: "+nD(p)}); W.T=q;W.OI.clear();J=!1;for(K=0;K=1080&&(J=!0);qJc(W.policy,p,W.Z0.dl)}; IeH=function(W,J,K){var I=K.reason==="m"||K.reason==="s";W.policy.gy&&KT&&g.dg&&(!I||K.W<1080)&&(J=J.filter(function(D){return D.video&&(!D.K||D.K.powerEfficient)})); if(J.length>0)if(UE()){var q=KIy(W,J);J=J.filter(function(D){return!!D&&!!D.video&&D.z8===q[D.video.qualityOrdinal].z8})}else{var S,p,n=(S=J[0])==null?void 0:(p=S.video)==null?void 0:p.qualityOrdinal; if(n){K=J.filter(function(D){return!!D&&!!D.video&&D.video.qualityOrdinal===n}); var A=KIy(W,K)[n].z8;J=J.filter(function(D){return!!D&&!!D.video&&D.z8===A})}}return J}; SJH=function(W,J){for(var K=0;K+1I}; cI=function(W){if(!W.K||!W.policy.T&&!W.K.info.pE){var J=W.S.W;W.K&&(J=J.filter(function(I){return I.audio.W===W.K.info.audio.W}),J.length||(J=W.S.W)); W.K=W.Z0.W[J[0].id];if(J.length>1&&!W.policy.bO){if(!W.policy.hn){var K=g.hW(J,function(I){return I.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); K&&(W.K=W.Z0.W[K.id])}K=!1;if(K=W.policy.mz?!0:W.W.isLocked()?W.W.W<240:SJH(W,W.K))W.K=W.Z0.W[g.jl(J).id]}}}; WG=function(W){if(!W.nextVideo||!W.policy.T)if(W.W.isLocked())W.nextVideo=W.W.W<=360?W.Z0.W[W.T[0].id]:W.Z0.W[g.jl(W.T).id],W.logger.debug(function(){return"Select max fmt: "+nD(W.nextVideo.info)}); else{for(var J=Math.min(W.N,W.T.length-1),K=O3(W.G8),I=Je(W,W.K.info),q=K/W.policy.PS-I;J>0&&!(Je(W,W.T[J])<=q);J--);for(var S=K/W.policy.N-I;J=S);J++);W.nextVideo=W.Z0.W[W.T[J].id];W.N!==J&&W.logger.info(function(){return"Adapt to: "+nD(W.nextVideo.info)+", bandwidth: "+K.toFixed(0)+", bandwidth to downgrade: "+q.toFixed(0)+", bandwidth to upgrade: "+S.toFixed(0)+", constraint: "+dE(W.W)}); W.N=J}}; kwH=function(W){var J=W.policy.PS,K=O3(W.G8),I=K/J-Je(W,W.K.info);J=g.Fe(W.T,function(q){return Je(this,q)S?q=0:I[p]>W.buffered[p]&&(p===S-1?q=2:p===S-2&&I[p+1]>W.buffered[p+1]&&(q=3))}W.W.add(J<<3|(K&&4)|q);J=Math.ceil(W.track.MB()*1E3);W.W.add(J-W.j);W.j=J;if(q===1)for(W.W.add(S),p=J=0;p=2&&W.W.add(I[S- 1]-W.buffered[S-1]);K&&W.W.add(K);W.buffered=I}; St=function(W,J,K){var I=this;this.policy=W;this.W=J;this.XW=K;this.T=this.K=0;this.fP=null;this.PS=new Set;this.C=[];this.indexRange=this.initRange=null;this.N=new JO;this.sI=this.G8=!1;this.G$={Uqs:function(){return I.G}, cQW:function(){return I.chunkSize}, G4h:function(){return I.Z}, g_W:function(){return I.S}}; (J=DDH(this))?(this.chunkSize=J.csz,this.G=Math.floor(J.clen/J.csz),this.Z=J.ck,this.S=J.civ):(this.chunkSize=W.zF,this.G=0,this.Z=g.QF(16),this.S=g.QF(16));this.j=new Uint8Array(this.chunkSize);this.Z&&this.S&&(this.crypto=new aTc(this.Z,this.S))}; DDH=function(W){if(W.policy.gm&&W.policy.fL)for(var J=g.d(W.policy.gm),K=J.next(),I={};!K.done;I={bu:void 0,g5:void 0},K=J.next())if(K=g.qU(K.value),I.bu=+K.clen,I.g5=+K.csz,I.bu>0&&I.g5>0&&W.policy.T===K.docid&&W.W.info.id===K.fmtid&&W.W.info.lastModified===+K.lmt)return W={},W.clen=I.bu,W.csz=I.g5,W.ck=K.ck,W.civ=K.civ,W}; pT=function(W){return!!W.fP&&W.fP.IH()}; hrc=function(W,J){if(!pT(W)&&!W.Iu()){if(!(W.G8||(W.G8=!0,W.G>0))){var K=l_(W);K=EF(W.policy.T,W.W.info,nT(W),K,W.policy.FW);Ae(W,K)}if(J.info.type===1){if(W.fP){Dz(W,Error("Woffle: Expect INIT slices to always start us off"));return}W.initRange=BQ(0,J.W.getLength())}else if(J.info.type===2)W.fP&&W.fP.type===1||Dz(W,Error("Woffle: Index before init")),W.indexRange=BQ(W.initRange.end+1,J.W.getLength());else if(J.info.type===3){if(!W.fP){Dz(W,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(W.fP.type===3&&!kl(W.fP,J.info)&&(W.C=[],J.info.x3!==zw(W.fP)||J.info.K!==0))return;if(J.info.j){K=g.d(W.C);for(var I=K.next();!I.done;I=K.next())jUQ(W,I.value);W.C=[]}else{W.C.push(J);W.fP=J.info;return}}else{Dz(W,Error("Woffle: Unexpected slice type"));return}W.fP=J.info;jUQ(W,J);feA(W)}}; jUQ=function(W,J){var K=0,I=J.W.aH();if(W.T=I.length)return;if(K<0)throw Error("Missing data");W.T=W.G;W.K=0}for(q={};K0){var p=I.getUint32(K+28);S+=p*16+4}var n=I.getUint32(K+S-4);try{var A=NfT(J.subarray(K+S,K+S+n));if(A!==null){var D=A;break a}}catch(f){}}K+=q}D=null;break a}catch(f){D=null;break a}D=void 0}if(D!=null)for(J=oB(U1(D,7)),J==null||W.Pt||(W.cryptoPeriodIndex=J),J=oB(U1(D,10)),J!=null&&J>0&&!W.Pt&&(W.W=J),D=GF(D, 2,TnI,void 0===enT?2:4),D=g.d(D),I=D.next();!I.done;I=D.next())J=W.G,K=J.push,I=jB(I.value),I=g.IB(I,4),K.call(J,I)}; yRy=function(W){return isNaN(W.cryptoPeriodIndex)?g.IB(W.initData):""+W.cryptoPeriodIndex}; he=function(W,J,K){var I=K===void 0?{}:K;K=I.videoDuration===void 0?0:I.videoDuration;var q=I.ZE===void 0?void 0:I.ZE;I=I.DF===void 0?!1:I.DF;this.videoId=W;this.status=J;this.videoDuration=K;this.ZE=q;this.DF=I}; UDc=function(W,J,K,I,q){this.videoId=W;this.Fp=J;this.K=K;this.bytesDownloaded=I;this.W=q}; te=function(W){this.W=W;this.offset=0}; Fz=function(W){if(W.offset>=W.W.getLength())throw Error();return W.W.getUint8(W.offset++)}; Zs0=function(W,J){J=J===void 0?!1:J;var K=Fz(W);if(K===1){J=-1;for(K=0;K<7;K++){var I=Fz(W);J===-1&&I!==255&&(J=0);J>-1&&(J=J*256+I)}return J}I=128;for(var q=0;q<6&&I>K;q++)K=K*256+Fz(W),I*=128;return J?K:K-I}; QUH=function(W){try{var J=Zs0(W,!0),K=Zs0(W,!1);return{id:J,size:K}}catch(I){return{id:-1,size:-1}}}; CzH=function(W){for(var J=new te(W),K=-1,I=0,q=0;!I||!q;){var S=QUH(J),p=S.id;S=S.size;if(p<0)return;if(p===176){if(S!==2)return;I=J.cC()}else if(p===186){if(S!==2)return;q=J.cC()}p===374648427?K=J.cC()+S:p!==408125543&&p!==174&&p!==224&&J.skip(S)}J=wH(W,0,K);K=new DataView(J.buffer);K.setUint16(I,3840);K.setUint16(q,2160);I=new ye([J]);Ur(I,W);return I}; wCT=function(W,J,K){var I=this;this.loader=W;this.policy=J;this.S=K;this.logger=new g.p4("dash");this.K=[];this.W=null;this.G8=-1;this.C=0;this.vS=NaN;this.PS=0;this.G=NaN;this.N=this.SZ=0;this.FW=-1;this.jZ=this.j=this.T=this.XW=null;this.bO=this.D0=NaN;this.Z=this.sI=this.OI=this.Js=null;this.eZ=!1;this.Y3=this.timestampOffset=0;this.G$={Me:function(){return I.K}}; if(this.policy.T){var q=this.S,S=this.policy.T;this.policy.FW&&W.WS("atv",{ap:this.policy.FW});this.Z=new St(this.policy,q,function(p,n,A){ad(W,new he(I.policy.T,2,{ZE:new UDc(S,p,q.info,n,A)}))}); this.Z.N.promise.then(function(p){I.Z=null;p===1?ad(W,new he(I.policy.T,p)):I.loader.WS("offlineerr",{status:p.toString()})},function(p){var n=(p.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); p instanceof jt&&!p.W?(I.logger.info(function(){return"Assertion failed: "+n}),I.loader.WS("offlinenwerr",{em:n}),u_(I),ad(W,new he(I.policy.T,4))):(I.logger.info(function(){return"Failed to write to disk: "+n}),I.loader.WS("dldbwerr",{em:n}),u_(I),ad(W,new he(I.policy.T,4,{DF:!0})))})}}; MOI=function(W){return W.K.length?W.K[0]:null}; giv=function(W,J){return W.K.some(function(K){return K.info.x3===J})}; Tfy=function(W,J,K,I){I=I===void 0?0:I;if(W.j){var q=W.j.K+W.j.G;if(K.info.K>0)if(K.info.x3===W.j.x3&&K.info.K=0&&W.j.x3>=0&&!kl(W.j,K.info))throw new g.vd("improper_continuation",W.j.XD(),K.info.XD());l0L(W.j,K.info)||NL(W,"d")}else if(K.info.K>0)throw new g.vd("continuation_of_null",K.info.XD());W.j=K.info;W.S=K.info.W;if(K.info.K===0){if(W.W)if(!W.loader.isOffline()||W.policy.JO)W.loader.WS("slice_not_fully_processed", {buffered:W.W.info.XD(),push:K.info.XD()});else throw new g.vd("slice_not_fully_processed",W.W.info.XD(),K.info.XD());dL(W);W.SZ=I}else{if(W.SZ&&I&&W.SZ!==I)throw W=new g.vd("lmt_mismatch",K.info.x3,W.SZ,I),W.level="WARNING",W;!K.info.W.Y0()&&W.T&&(I=K.info,q=W.T.yd,I.N="updateWithEmsg",I.x3=q)}if(W.W){I=g.AR(W.W,K);if(!I)throw new g.vd("failed_to_merge",W.W.info.XD(),K.info.XD());W.W=I}else W.W=K;a:{K=g.JM(W.W.info.W.info);if(W.W.info.type!==3){if(!W.W.info.j)break a;W.W.info.type===6?GsQ(W,J,W.W): $Dy(W,W.W);W.W=null}for(;W.W;){I=W.W.W.getLength();if(W.G8<=0&&W.C===0){var S=W.W.W,p=-1;q=-1;if(K){for(var n=0;n+80))break;if(h!==408125543)if(h===524531317)n=!0,f>=0&&(q=S.cC()+f,A=!0);else{if(n&&(h===160||h===163)&&(p<0&&(p=D),A))break;h===163&&(p=Math.max(0,p),q=S.cC()+f);if(h===160){p<0&&(q=p=S.cC()+ f);break}S.skip(f)}}p<0&&(q=-1)}if(p<0)break;W.G8=p;W.C=q-p}if(W.G8>I)break;W.G8?(I=xDH(W,W.G8),I.j&&OsT(W,I),GsQ(W,J,I),y6(W,I),W.G8=0):W.C&&(I=xDH(W,W.C<0?Infinity:W.C),W.C-=I.W.getLength(),y6(W,I))}}W.W&&W.W.info.j&&(y6(W,W.W),W.W=null)}; $Dy=function(W,J){!J.info.W.Y0()&&J.info.K===0&&(g.JM(J.info.W.info)||J.info.W.info.Pt())&&ePI(J);if(J.info.type===1)try{OsT(W,J),HsL(W,J)}catch(q){g.Va(q);var K=vQ(J.info);K.hms="1";W.loader.handleError("fmt.unparseable",K||{},1)}K=J.info.W;K.rQ(J);W.Z&&hrc(W.Z,J);if(K.xA()&&W.policy.W)a:{W=W.loader.Z0;J=J.info.clipId;K=g.Il(K.info,W.dl);if(J){var I=EX({itag:K.itag,lmt:W.dl?0:K.lmt||0,xtags:K.xtags});if(W.FW[I])break a;W.FW[I]=J}W.D0.push(K)}}; sgH=function(W,J,K){if(W.K.length!==0&&(K||W.K.some(function(S){return S.info.T=Zz(p)+n):J=W.getDuration()>=p.getDuration(),J=!J;J&&ery(K)&&(J=W.XW,Ux?(n=VHD(K),p=1/n,n=Zz(W,n),J=Zz(J)+p-n):J=J.getDuration()- W.getDuration(),J=1+J/K.info.duration,EmD(K.EA(),J))}else{p=!1;W.T||(ePI(K),K.K&&(W.T=K.K,p=!0,S=K.info,I=K.K.yd,S.N="updateWithEmsg",S.x3=I,S=K.K,S.IH&&(I=W.S.index,I.K=!S.IH,I.G="emsg"),S=K.info.W.info,I=K.EA(),g.JM(S)?At(I,1701671783):S.Pt()&&ue([408125543],307544935,I)));a:if((S=fs(K,W.policy.qD))&&EXL(K))n=RrT(W,K),W.N+=n,S-=n,W.PS+=S,W.G=W.policy.Um?W.G+S:NaN;else{if(W.policy.Xt){if(I=A=W.loader.TZ(g.De(K),1),W.G>=0&&K.info.type!==6){if(W.policy.Um&&isNaN(W.D0)){g.ET(new g.vd("Missing duration while processing previous chunk", K.info.XD()));W.loader.isOffline()&&!W.policy.JO||bsv(W,K,I);NL(W,"m");break a}var D=A-W.G,f=D-W.N,h=K.info.x3,t=W.jZ?W.jZ.x3:-1,F=W.bO,a=W.D0,y=W.policy.x_&&D>W.policy.x_,U=Math.abs(f)>10,Q=Math.abs(W.G-I)<1E-7;if(Math.abs(f)>1E-4){W.Y3+=1;var C=(q=W.T)==null?void 0:WQ(q);q={audio:""+ +W.SF(),sq:h.toFixed(),sliceStart:A,lastSq:t.toFixed(),lastSliceStart:F,lastSliceDuration:a,totalDrift:(D*1E3).toFixed(),segDrift:(f*1E3).toFixed(),skipRewrite:""+ +(y||U)};if(C==null?0:C.length)q.adCpn=C[0];W.loader.handleError("qoe.avsync", q);W.FW=h}y||U||Q||(I=W.G);q=RrT(W,K,A);S-=q;W.N=D+q;W.policy.K&&(f&&!Q||q)&&(D=(n=W.T)==null?void 0:WQ(n),W.loader.WS("discontinuityRewrite",{adCpn:(D==null?0:D.length)?D.join("."):"",itag:K.info.W.info.itag,sq:K.info.x3,originalStartTime:A,rewrittenStartTime:I,startTimeAdjustment:I-A,segDrift:(f*1E3).toFixed(),originalDuration:S+q,rewrittenDuration:S,durationAdjustment:q}))}}else I=isNaN(W.G)?K.info.startTime:W.G;bsv(W,K,I)&&(W.PS+=S,W.G=I+S,W.policy.RO&&W.Y3>=W.policy.RO&&(W.Y3=0,W.loader.gH({resetForRewrites:"count"})))}W.jZ= K.info;W.D0=jO(K);K.G>=0&&(W.bO=K.G);if(p&&W.T){p=Bfc(W,!0);Yl(K.info,p);W.W&&Yl(W.W.info,p);J=g.d(J);for(n=J.next();!n.done;n=J.next())n=n.value,q=void 0,W.policy.j&&n.x3!==((q=W.T)==null?void 0:q.yd)||Yl(n,p);(K.info.j||W.W&&W.W.info.j)&&K.info.type!==6||(W.sI=p,W.policy.G?(J=mDL(W.T),W.loader.u5(W.S,p,J)):(J=W.loader,J.Z0.isManifestless&&rRT(J,p,null,!!W.S.info.video)),W.policy.Nu||oiD(W))}}HsL(W,K);W.timestampOffset&&TQQ(K,W.timestampOffset)}; y6=function(W,J){if(J.info.j){W.Js=J.info;if(W.T){var K=W.T,I=Bfc(W,!1);K=mDL(K);W.loader.u5(W.S,I,K);W.sI||W.policy.Nu||oiD(W);W.sI=null}dL(W)}W.Z&&hrc(W.Z,J);if(I=W.Eu())if(I=g.AR(I,J,W.policy.Cx,W.policy.dB)){W.K.pop();W.K.push(I);return}W.K.push(J)}; mDL=function(W){if(W.Iy()){var J=W.data["Stitched-Video-Id"]?W.data["Stitched-Video-Id"].split(",").slice(0,-1):[],K=WQ(W),I=[];if(W.data["Stitched-Video-Duration-Us"])for(var q=g.d(W.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),S=q.next();!S.done;S=q.next())I.push((Number(S.value)||0)/1E6);q=[];if(W.data["Stitched-Video-Start-Frame-Index"]){S=g.d(W.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var p=S.next();!p.done;p=S.next())q.push(Number(p.value)||0)}q=[]; if(W.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(S=g.d(W.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),p=S.next();!p.done;p=S.next())q.push((Number(p.value)||0)/1E6);W=new uAv(J,K,I,q,g.OBQ(W),g.TGL(W))}else W=null;return W}; dL=function(W){W.W=null;W.G8=-1;W.C=0;W.T=null;W.vS=NaN;W.PS=0;W.sI=null}; NL=function(W,J){J={rst4disc:J,cd:W.N.toFixed(3),sq:W.jZ?W.jZ.x3:-1};W.G=NaN;W.N=0;W.FW=-1;W.jZ=null;W.bO=NaN;W.D0=NaN;W.OI=null;W.loader.WS("mdstm",J)}; HsL=function(W,J){if(W.isDrm()){if(J.info.W.info.Pt()){var K=new jZ(J.EA());if(ht(K,[408125543,374648427,174,28032,25152,20533,18402])){var I=at(K,!0);K=I!==16?null:UX(K,I)}else K=null;I="webm"}else J.info.C=FIy(J.EA()),K=aeL(J.info.C),I="cenc";K&&K.length&&(K=new fT(K,I),W.policy.j0&&g.JM(J.info.W.info)&&(I=ryy(J.EA()))&&(K.K=I),K.Pt=J.info.W.info.Pt(),J.K&&J.K.cryptoPeriodIndex&&(K.cryptoPeriodIndex=J.K.cryptoPeriodIndex),J.K&&J.K.K&&(K.W=J.K.K),W.loader.U4(K))}}; oiD=function(W){var J=W.T,K=$dc(J);K&&(K.startSecs+=W.vS,W.loader.II(W.S,K,J.yd,J.Iy()))}; Bfc=function(W,J){var K,I=W.T;if(K=$dc(I))K.startSecs+=W.vS;return new BU(I.yd,W.vS,J?I.kh:W.PS,I.ingestionTime,"sq/"+I.yd,void 0,void 0,J,K)}; bsv=function(W,J,K){if(!ODD(J,K))return J=vQ(J.info),J.smst="1",W.loader.handleError("fmt.unparseable",J||{},1),!1;isNaN(W.vS)&&(W.vS=K);return!0}; RrT=function(W,J,K){var I=0;if(J.info.W.info.Pt()&&!EXL(J))return 0;if(W.XW&&!W.SF()){var q=0;K&&g.JM(J.info.W.info)?q=K-W.G:J.info.W.info.Pt()&&(q=W.N);var S=J.info.x3;K=fs(J,W.policy.qD);var p=W.XW;var n=p.FW;p=p.N;var A=Math.abs(p-q)>.02;if((S===n||S>n&&S>W.FW)&&A){I=Math.max(.95,Math.min(1.05,(K-(p-q))/K));if(g.JM(J.info.W.info))EmD(J.EA(),I);else if(J.info.W.info.Pt()&&(S=q-p,!g.JM(J.info.W.info)&&(J.info.W.info.Pt(),I=new jZ(J.EA()),n=J.j?I:new jZ(new DataView(J.info.W.W.buffer)),fs(J,!0)))){var D= S*1E3,f=Qp(n);n=I.pos;I.pos=0;if(I.W.getUint8(I.pos)===160||Cm(I))if(F9(I,160))if(at(I,!0),F9(I,155)){if(S=I.pos,A=at(I,!0),I.pos=S,D=D*1E9/f,f=N$(I),D=f+Math.max(-f*.7,Math.min(f,D)),D=Math.sign(D)*Math.floor(Math.abs(D)),!(Math.ceil(Math.log(D)/Math.log(2)/8)>A)){I.pos=S+1;for(S=A-1;S>=0;S--)I.W.setUint8(I.pos+S,D&255),D>>>=8;I.pos=n}}else I.pos=n;else I.pos=n;else I.pos=n}I=fs(J,W.policy.qD);I=K-I}I&&J.info.W.info.Pt()&&W.loader.WS("webmDurationAdjustment",{durationAdjustment:I,videoDrift:q+I, audioDrift:p})}return I}; ery=function(W){return W.info.W.Y0()&&W.info.x3===W.info.W.index.FD()}; Zz=function(W,J){J=(J=J===void 0?0:J)?Math.round(W.timestampOffset*J)/J:W.timestampOffset;W.S.T&&J&&(J+=W.S.T.W);return J+W.getDuration()}; LIy=function(W,J){J<0||(W.K.forEach(function(K){TQQ(K,J)}),W.timestampOffset=J)}; E3=function(W,J,K,I,q){WI.call(this,K,q);var S=this;this.policy=W;this.formatId=J;this.Ro=I;this.lastError=null;this.oo=function(){S.Iu()||(S.Ro.Nv.has(S.formatId)?(S.isComplete()||S.W.start(),Tx(S.Ro,S.formatId)&&S.IU(2),S.Ro.eF(S.formatId)&&(fiD(S.Ro,S.formatId)?S.Ap(4):(S.lastError="net.closed",S.Ap(5)))):(S.lastError="player.exception",S.Ap(5)))}; this.W=new g.P0(function(){S.isComplete()||(S.lastError="net.timeout",S.Ap(5))},1E3); this.W.start();AtQ(this.Ro,this.formatId,this.oo);g.Cq(this.oo)}; Q6=function(W,J,K,I){g.R.call(this);var q=this;this.loader=W;this.policy=J;this.W=K;this.timing=I;this.logger=new g.p4("dash");this.G=[];this.XW=[];this.K=this.wl=null;this.OI=!1;this.SZ=this.Y3=0;this.S=-1;this.G8=!1;this.vS=-1;this.jZ=null;this.sI=NaN;this.PS=[];this.G$={Qp:function(){return q.T}, LBZ:function(){return q.G}, XZO:function(){return q.N}}; this.T=new wCT(W,J,K);this.policy.W&&(this.N=new Hv(this.T,this.loader.getManifest(),this.policy,function(S){q.policy.S9&&q.WS("buftl",S)})); this.policy.SI&&(this.C=new Id(this));this.Cy=K.info.Cy;this.Z=this.policy.sI?!1:K.Fe();this.isManifestless=K.Fe();this.j=this.Z;g.B(this,this.jZ)}; CT=function(W,J,K){K=K===void 0?!1:K;J&&Ux&&LIy(W.T,J.Z3());if(!K){var I;(I=W.N)==null||kJI(I)}W.wl=J;(J=W.N)!=null&&(J.wl=W.wl)}; wL=function(W){var J=W.wl&&W.wl.Wy();if(W.policy.K4){if((W=W.N)==null)W=void 0;else{var K;W=(K=W.G)==null?void 0:K.info}return W||null}return J}; ksI=function(W){for(var J={},K=0;K4&&W.XW.shift()}; zrL=function(W,J){if(J.Do()){var K=J.H4();K=g.d(K);for(var I=K.next();!I.done;I=K.next())I=I.value,W.policy.K&&J instanceof E3&&W.WS("omblss",{s:I.info.XD()}),gL(W,J.info.Ly,I,J.i9())}}; gL=function(W,J,K,I){I=I===void 0?0:I;isNaN(W.sI)||(W.WS("aswm",{sq:J[0].x3,id:J[0].W.info.itag,xtag:J[0].W.info.W,ep:Date.now()-W.sI}),W.sI=NaN);switch(K.info.type){case 1:case 2:vi0(W,K);break;case 4:var q=K.info.W,S=q.IJ(K),p;((p=W.K)==null?0:p.type===4)&&tHL(K.info,W.K)&&(W.K=q.uH(W.K).pop());K=g.d(S);for(q=K.next();!q.done;q=K.next())gL(W,J,q.value,I);break;case 3:K.info.W.info.video?(q=W.timing,q.XW||(q.XW=(0,g.L)(),xF("fvb_r",q.XW,q.W))):(q=W.timing,q.S||(q.S=(0,g.L)(),xF("fab_r",q.S,q.W))); Tfy(W.T,J,K,I);W.policy.W&&YJA(W);break;case 6:Tfy(W.T,J,K,I),W.K=K.info}}; vi0=function(W,J){if(J.info.type===1)if(J.info.W.info.video){var K=W.timing;K.jZ||(K.jZ=(0,g.L)(),xF("vis_r",K.jZ,K.W))}else K=W.timing,K.N||(K.N=(0,g.L)(),xF("ais_r",K.N,K.W));$Dy(W.T,J);W=W.loader;W.videoTrack.W.xA()&&W.audioTrack.W.xA()&&W.policy.W&&!W.Z0.dl&&(J=W.audioTrack.getDuration(),K=W.videoTrack.getDuration(),Math.abs(J-K)>1&&W.WS("trBug",{af:""+g.Il(W.audioTrack.W.info,!1),vf:""+g.Il(W.videoTrack.W.info,!1),a:""+J,v:""+K}))}; kZ=function(W){return MOI(W.T)}; YJA=function(W){W.G.length?W.K=g.jl(g.jl(W.G).info.Ly):W.T.K.length?W.K=W.T.Eu().info:W.K=wL(W)}; GZ=function(W,J){var K={Ek:[],NB:[]},I;if((W=W.N)==null)W=void 0;else{LxI(W,W.Ek,"og");mqc(W,J);LxI(W,W.Ek,"trim");var q=oRv(W);J=q.Ek;q=q.hg;for(var S=[],p=0;p0){var t=jH(h,A);t>=0&&(f=(h.end(t)-A+.1)*1E3)}S.push({formatId:g.Il(n.info.W.info,W.Z0.dl), pU:n.info.pU,sequenceNumber:n.info.x3+W.T,kM:D,JG:n.info.G,mM:f})}W={Ek:J,NB:S}}return(I=W)!=null?I:K}; b$=function(W,J,K){K=K===void 0?!1:K;if(W.wl){var I=W.wl.UA(),q=hM(I,J),S=NaN,p=wL(W);p&&(S=hM(I,p.W.index.getStartTime(p.x3)));if(q===S&&W.K&&W.K.G&&sUX($D(W),0))return J}W=cRA(W,J,K);return W>=0?W:NaN}; ms=function(W,J,K){W.W.xA();var I=cRA(W,J);if(I>=0)return I;var q;(q=W.N)==null||rxc(q,J,K);K=Math;I=K.min;q=W.T;if(q.Z)if(q=q.Z,q.fP&&q.fP.type===3)q=q.fP.startTime;else if(q.G>0){var S=q.W.index;S=g.GT(S.offsets.subarray(0,S.count),q.G*q.chunkSize);q=q.W.index.getStartTime(S>=0?S:Math.max(0,-S-2))}else q=0;else q=Infinity;J=I.call(K,J,q);W.K=W.policy.sI?null:W.W.FK(J).Ly[0];xD(W)&&(W.wl&&W.wl.abort(),W.policy.KX&&(K=W.N)!=null&&(K.G=void 0));W.SZ=0;return W.K?W.K.startTime:J}; vRH=function(W){W.Z=!0;W.j=!0;W.S=-1;ms(W,Infinity)}; Ox=function(W){for(var J=0,K=g.d(W.G),I=K.next();!I.done;I=K.next())J+=a0H(I.value.info);return J+=VO0(W.T)}; HG=function(W,J){J=J===void 0?!1:J;var K=W.loader.getCurrentTime(),I=W.T.Eu(),q=(I==null?void 0:I.info.S)||0;W.policy.Jl&&(I==null?0:I.info.W.Fe())&&!I.info.j&&(q=I.info.T);if(!W.wl)return W.policy.W&&J&&!isNaN(K)&&I?q-K:0;var S=wL(W);if(S&&TZ(S))return S.S;var p=W.wl.UA(!0);if(J&&I)return S=0,W.policy.W&&(S=al(p,q+.02)),S+q-K;q=al(p,K);W.policy.GF&&S&&(J=jH(p,K),p=jH(p,S.T-.02),J===p&&(K=S.S-K,W.policy.K&&K>q+.02&&W.WS("abh",{bh:q,bhtls:K}),q=Math.max(q,K)));return q}; PzX=function(W){var J=wL(W);return J?J.S-W.loader.getCurrentTime():0}; XCX=function(W,J){if(W.G.length){if(W.G[0].info.Ly[0].startTime<=J)return;RD(W)}for(var K=W.T,I=K.K.length-1;I>=0;I--)K.K[I].info.startTime>J&&K.K.pop();YJA(W);W.K&&J=0;p--){var n=q.K[p];n.info.x3>=J&&(q.K.pop(),q.G-=fs(n,q.policy.qD),S=n.info)}S&&(q.j=q.K.length>0?q.K[q.K.length-1].info:q.OI,q.K.length!==0||q.j||NL(q,"r"));q.loader.WS("mdstm",{rollbk:1,itag:S?S.W.info.itag:"",popped:S?S.x3:-1,sq:J,lastslc:q.j?q.j.x3:-1,lastfraget:q.G.toFixed(3)});if(W.policy.W)return W.K=null,!0;I>K?ms(W,I):W.K=W.W.Km(J-1,!1).Ly[0]}catch(A){return J=Tc(A),J.details.reason="rollbkerr", W.loader.handleError(J.errorCode,J.details,J.severity),!1}return!0}; et=function(W,J){var K;for(K=0;K0?K||J.x3>=W.vS:K}; Rd=function(W){var J;return xD(W)||TZ((J=W.T.Eu())==null?void 0:J.info)}; $D=function(W){var J=[],K=wL(W);K&&J.push(K);J=g.yG(J,W.T.CB());K=g.d(W.G);for(var I=K.next();!I.done;I=K.next()){I=I.value;for(var q=g.d(I.info.Ly),S=q.next(),p={};!S.done;p={Fo:void 0},S=q.next())p.Fo=S.value,I.Fq&&(J=g.Ei(J,function(n){return function(A){return!tHL(A,n.Fo)}}(p))),(Lm(p.Fo)||p.Fo.type===4)&&J.push(p.Fo)}W.K&&!SEH(W.K,g.jl(J),W.K.W.Y0())&&J.push(W.K); return J}; sUX=function(W,J){if(!W.length)return!1;for(J+=1;J=J){J=S;break a}}J=q}return J<0?NaN:sUX(W,K?J:0)?W[J].startTime:NaN}; b_=function(W){return!(!W.K||W.K.W===W.W)}; WYL=function(W){return b_(W)&&W.W.xA()&&W.K.W.info.CyJ&&W.S1080&&!W.H1&&(W.SZ=36700160,W.Js=5242880,W.Y3=Math.max(4194304,W.Y3),W.H1=!0);J.video.qualityOrdinal>2160&&!W.FQ&&(W.SZ=104857600,W.Cy=13107200,W.FQ=!0);g.FV(W.QK.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?J.isEncrypted()&&g.ku()&&g.ov("samsung")&&(g.ov("kant")||g.ov("muse"))&&(W.Cy=g.FV(W.QK.experiments,"html5_samsung_kant_limit_max_bitrate")):J.isEncrypted()&&g.ku()&&g.ov("kant")&&(W.Cy=1310720);W.BT!==0&&J.isEncrypted()&& (W.Cy=W.BT);W.Ou!==0&&J.isEncrypted()&&K&&(W.Cy=W.Ou);J.Cy&&(W.ue=Math.max(W.zB,Math.min(W.Y3,5*J.Cy)))}; yn=function(W){return W.W&&W.Xb}; LT=function(W){return W.W&&W.GJ&&W.playbackStartPolicy}; kD=function(W,J,K,I){W.GJ&&(W.playbackStartPolicy=J,W.dg=K,W.ZG=I)}; od=function(W,J,K){K=K===void 0?0:K;return g.FV(W.QK.experiments,J)||K}; fLQ=function(W){var J=W===void 0?{}:W;W=J.GP;var K=J.PY;var I=J.Zt;var q=J.FD;J=J.ri;this.GP=W;this.PY=K;this.Zt=I;this.FD=q;this.ri=J}; SqQ=function(W,J){if(J<0)return!0;var K=W.FD();return J0)return 2;if(J<0)return 1;K=W.FD();return J(0,g.L)()?0:1}; vG=function(W,J,K,I,q,S,p,n,A,D,f,h,t,F){F=F===void 0?null:F;g.R.call(this);var a=this;this.loader=W;this.policy=J;this.videoTrack=K;this.audioTrack=I;this.T=q;this.W=S;this.timing=p;this.j=n;this.schedule=A;this.Z0=D;this.G=f;this.PS=h;this.Dp=t;this.j3=F;this.sI=!1;this.w_="";this.hk=null;this.vP=NaN;this.G8=!1;this.K=null;this.hS=this.C=NaN;this.ZC=this.S=0;this.logger=new g.p4("dash");this.G$={Vc:function(y,U){return a.Vc(y,U)}}; this.policy.B1>0&&(this.w_=g.QF(this.policy.B1));this.policy.W$&&(this.N=new zZ(this.loader,this.policy,this.schedule),g.B(this,this.N))}; N8H=function(W,J,K){var I=J.K?J.K.W.c7:J.W.c7;var q=W.T,S;(S=!W.policy.hP)||(S=V_(I.W)===V_(I.K));S?I=!1:(q=$l(q,V_(I.K)),S=6E4*Math.pow(q.G,1.6),(0,g.L)()=q.T?(q.WS("sdai",{haltrq:S+1,est:q.T}),I=!1):I=q.K!==2;if(!I||!Vp(J.K?J.K.W.c7:J.W.c7,W.policy,W.T,W.loader.JV())||W.loader.isSuspended&&(!C5(W.schedule)||W.loader.xM))return!1;if(W.policy.T&&VA>=5)return g.XY(W.loader.Gw),!1;if(W.Z0.isManifestless){if(J.G.length>0&&J.K&&J.K.x3===-1||J.G.length>=W.policy.fz||!W.policy.Iv&&J.G.length>0&&!W.policy.Z.PY)return!1;if(J.Z)return!W.Z0.isLive|| !isNaN(W.vP)}if(qeI(J))return W.logger.debug("Pending request with server-selectable format found"),!1;if(!J.K){if(!J.W.xA())return!1;ms(J,W.loader.getCurrentTime())}if(kZ(J)&&(J.Eu()!==kZ(J)||W.loader.isSuspended))return!1;q=(I=W.policy.Wc)&&!J.G.length&&HG(J,!0)=W.policy.j9)return!1;I=J.K;if(!I)return!0;I.type===4&&I.W.xA()&&(J.K=g.jl(I.W.uH(I)),I= J.K);if(!I.IH()&&!I.W.s_(I))return!1;S=W.Z0.jP||W.Z0.T;if(W.Z0.isManifestless&&S){S=J.W.index.FD();var p=K.W.index.FD();S=Math.min(S,p);if(J.W.index.Cq()>0&&S>0&&I.x3>=S)return J.vS=S,K.vS=S,!1}if(I.W.info.audio&&I.type===4||I.IH())return!1;S=!J.j&&!K.j;if(q=!q)q=I.S,q=!!(K.K&&!TZ(K.K)&&K.K.Sd8T(W,J)?(d8T(W,J),!1):(W=J.wl)&&W.isLocked()?!1:!0}; d8T=function(W,J){var K=W.W;K=K.W?K.W.rB:null;if(W.policy.XW&&K)return K.startSecs+K.vt+15;J=Bv(W.loader,J);W.policy.sT>0&&(K=((0,g.L)()-W.loader.M3)/1E3,J=Math.min(J,W.policy.sT+W.policy.Ir*K));K=W.loader.getCurrentTime()+J;return W.policy.bC&&(J=yrL(W.loader)+W.policy.bC,J=0||J.c7.lS("defrag")==="1"||J.c7.lS("otf")==="1"){J=null;break a}q=BQ(0,4096)}q=new sX([new rA(5,I.W,q,"createProbeRequestInfo"+I.N,I.x3)],J.K);q.qd=K;q.W=J.W;J=q}J&&u2H(W,J)}}; u2H=function(W,J){W.loader.B5(J);var K=a0H(J),I=W.loader.g3();K={Sn:W.schedule,Un:K,Fu:HaD(W.j,K),Xa:ot(J.Ly[0]),FX:Eq(J.c7.W),ZR:W.policy.K,nG:function(p,n){W.loader.r_(p,n)}}; if(W.schedule.K.S){var q,S;K.wV=(((q=W.videoTrack.W)==null?void 0:q.info.Cy)||0)+(((S=W.audioTrack.W)==null?void 0:S.info.Cy)||0)}W.hk&&(K.x3=J.Ly[0].x3,K.vP=J.vP,K.hk=W.hk);I={Xn:urQ(J,W.loader.getCurrentTime()),jX:W.policy.Bt&&PQ(J)&&J.Ly[0].W.info.video?leX(W.G):void 0,I6:W.policy.XW,poToken:W.loader.rF(),uI:W.loader.Xe(),w_:W.w_,hS:isNaN(W.hS)?null:W.hS,j3:W.j3,Dp:W.Dp,ZC:W.ZC,tf:I};return new eh(W.policy,J,K,W.T,function(p,n){try{a:{var A=p.info.Ly[0].W,D=A.info.video?W.videoTrack:W.audioTrack; if(!(p.state>=2)||p.isComplete()||p.qq()||!(!W.loader.ww||W.loader.isSuspended||HG(D)>3)){var f=FYy(p,W.policy,W.T);f===1&&(W.G8=!0);U8H(W,p,f);if(p.isComplete()||p.Iu()&&n<3){if(W.policy.K){var h=p.timing.wJ();h.rst=p.state;h.strm=p.xhr.QQ();h.cncl=p.xhr&&p.YK.T?1:0;W.loader.WS("rqs",h)}p.Dl&&W.loader.WS("sbwe3",{},!0)}if(!W.Iu()&&p.state>=2){Omc(W.timing,p,A);var t=W.loader;W.hS&&p.fF&&t&&(W.hS=NaN,W.loader.sF(p.fF),W.loader.hW(),W.loader.WS("cabrUtcSeek",{mediaTimeSeconds:p.fF}));p.sy&&W.hS&&p.sy&& !p.sy.action&&(W.loader.S_(W.hS),W.hS=NaN,W.loader.WS("cabrUtcSeekFallback",{targetUtcTimeSeconds:W.hS}));p.PZ&&W.loader.mS(p.PZ);W.policy.nk&&(W.ZC=p.ZC);if(p.state===3){et(D,p);PQ(p.info)&&sx(W,D,A,!0);if(W.K){var F=p.info.K1();F&&W.K.MY(p.info.Ly[0].x3,A.info.id,F)}W.loader.vD()}else if(p.isComplete()&&p.info.Ly[0].type===5){if(p.state!==4)p.dV()&&W.loader.handleError(p.AS(),p.qV());else{var a=(p.info.Ly[0].W.info.video?W.videoTrack:W.audioTrack).G[0]||null;a&&a instanceof eh&&a.qq()&&a.v1()}p.dispose()}else{p.dV()|| Z5y(W,p);var y;((y=p.P2)==null?0:y.itagDenylist)&&W.loader.U7(p.P2.itagDenylist);if(p.state===4)QPX(W,p),W.W&&eey(W.W,p.info,W.K);else if(W.policy.Mq&&p.Do()&&!p.isComplete()&&!QPX(W,p)&&!p.dV())break a;p.dV()&&(C8A(W,p),isNaN(W.hS)||(W.loader.S_(W.hS),W.hS=NaN));W.policy.oG&&!p.isComplete()?wwX(W.loader):W.loader.vD();var U=aLX(p,W.policy,W.T);U8H(W,p,U)}}}}}catch(Q){n=W.sI?1:0,W.sI=!0,p=OS(n),n=Tc(Q,n),W.loader.handleError(n.errorCode,n.details,n.severity),p||W.loader.YG()}},I)}; Z5y=function(W,J){if(J.m0&&J.state>=2&&J.state!==3){var K=J.xhr.getResponseHeader("X-Response-Itag");if(K){W.logger.debug(function(){return"Applying streamer-selected format "+K}); var I=pCA(W.G,K),q=J.info.G;q&&(q-=I.TQ(),I.G=!0,J.info.Ly[0].W.G=!1,pQQ(J,I.Am(q)),cG(W.loader,W.videoTrack,I),Sey(W.videoTrack,I),W.loader.A6(I.info.video.quality),(q=J.i9())&&I.info.lastModified&&I.info.lastModified!==+q&&et(W.videoTrack,J))}else J.m0=!1}}; C8A=function(W,J){var K=J.info.Ly[0].W,I=J.AS();if(Eq(K.c7.W)){var q=g.qQ(J.gK(),3);W.loader.WS("dldbrerr",{em:q||"none"})}q=J.info.Ly[0].x3;var S=rp(W.W,J.info.Ly[0].T,q);I==="net.badstatus"&&(W.S+=1);if(J.canRetry()&&MbQ(W.loader)){if(!(J.info.c7.G>=W.policy.Dn&&W.K&&J.info.isDecorated()&&I==="net.badstatus"&&W.K.Jx(S,q))){q=(K.info.video&&K.c7.G>1||J.Dt===410||J.Dt===500||J.Dt===503)&&!(Y_(W.G.j).size>0)&&!Eq(K.c7.W);S=J.qV();var p=K.info.video?W.videoTrack:W.audioTrack;q&&(S.stun="1");W.loader.handleError(I, S);W.Iu()||(q&&(W.logger.debug(function(){return"Stunning format "+K.info.id}),i_(W.G,K)),et(p,J),W.loader.vD())}}else p=1,W.K&&J.info.isDecorated()&&I==="net.badstatus"&&W.K.Jx(S,q)&&(p=0),W.Z0.isLive&&J.AS()==="net.badstatus"&&W.S<=W.policy.mA*2?(aOy(W.Z0),W.Z0.jP||W.Z0.isPremiere?L1(W.loader,0,{cN:"badStatusWorkaround"}):W.Z0.T?L1(W.loader,W.Z0.vS,{cN:"badStatusWorkaround", TZ:!0}):PG(W.loader)):W.loader.handleError(I,J.qV(),p)}; QPX=function(W,J){if(W.policy.useUmp&&J.Iu())return!1;try{var K=J.info.Ly[0].W,I=K.info.video?W.videoTrack:W.audioTrack;if(W.Z0.isManifestless&&I){W.S=0;I.Z&&(J.Iu(),J.isComplete()||J.Do(),I.Z=!1);J.CJ()&&W.loader.Dq.o7(1,J.CJ());var q=J.Cq(),S=J.W5();VL(W.Z0,q,S)}if(J.info.Xa()&&!cQ(J.info))for(var p=g.d(J.H4()),n=p.next();!n.done;n=p.next())vi0(I,n.value);for(W.loader.getCurrentTime();I.G.length&&I.G[0].state===4;){var A=I.G.shift();zrL(I,A);I.Y3=A.Ue()}I.G.length&&zrL(I,I.G[0]);var D=!!kZ(I);D&& J instanceof E3&&(K.info.SF()?CeQ(W.timing):QtA(W.timing));return D}catch(f){J=J.qV();J.origin="hrhs";a:{W=W.loader;K=f;if(K instanceof Error){J.msg||(J.msg=""+K.message);J.name||(J.name=""+K.name);if(K instanceof g.vd&&K.args)for(I=g.d(Object.entries(K.args)),q=I.next();!q.done;q=I.next())S=g.d(q.value),q=S.next().value,S=S.next().value,J["arg"+q]=""+S;g.ET(K);if(K.level==="WARNING"){W.uO.gH(J);break a}}W.handleError("fmt.unplayable",J,1)}return!1}}; gKv=function(W){var J=W.videoTrack.W.index;W.hk=new fLQ({GP:W.policy.GP,PY:W.policy.Z.PY,Zt:J.JB(),FD:function(){return J.FD()}, ri:function(){return J.ri()}})}; sx=function(W,J,K,I){if(!(K.xA()||K.U2()||K.G||!Vp(K.c7,W.policy,W.T,W.loader.JV())||K.info.z8==="f"||W.policy.W)){if(I){I=W.j;var q=K.info;I=Vmv(I,q.video?I.policy.Jb:I.policy.e1,q.Cy)}else I=0;I=K.Am(I);W=u2H(W,I);cQ(I)&&ML(J,W);K.G=!0}}; Xz=function(W,J,K,I,q,S,p,n){g.R.call(this);var A=this;this.loader=W;this.lK=J;this.videoTrack=K;this.audioTrack=I;this.Z0=q;this.C=S;this.isAudioOnly=p;this.S=n;this.K=k5;this.G8=!1;this.logger=new g.p4("sabr");this.N=this.sI=this.PS=!1;this.videoInfos=this.Z=this.C.videoInfos;this.G=this.XW=this.C.W;this.W=new zx(J,S,function(D,f){A.loader.WS(D,f)}); this.lK.Ud||G4X(this);this.isAudioOnly&&$8D(this,this.Z0.W["0"])}; x8Q=function(W,J){var K=[];J=g.d(J);for(var I=J.next();!I.done;I=J.next())K.push(g.Il(I.value,W.Z0.dl));return K}; $8D=function(W,J,K){J!==W.T&&(W.T&&(W.G8=!0),W.T=J,W.zS(J,W.videoTrack,K))}; VbL=function(W,J){W.logger.debug("setConstraint: "+dE(J));yn(W.lK)&&(W.sI=J.reason==="m"||J.reason==="l"?!0:!1);J.reason==="m"?J.isLocked()&&O5v(W,J.W):T8L(W,J)?H5D(W,J.K,J.W):W.videoInfos=W.Z;W.K=J}; T8L=function(W,J){return W.lK.Po&&J.reason==="b"||W.lK.CR&&J.reason==="l"||W.lK.wg?!1:W.lK.Uy?!0:J.reason==="l"||J.reason==="b"||J.reason==="o"}; EKy=function(W,J){return J.isLocked()&&W.W.K||W.K===void 0?!1:J.equals(W.K)}; eDA=function(W,J){var K,I=(K=W.T)==null?void 0:K.info.video.qualityOrdinal;return W.G8?!0:W.T?J!==I?!0:!W.W.K||W.lK.oH&&W.W.W===W.T.info.itag?!1:!0:!1}; O5v=function(W,J){var K=W.W.W;if(K){W.videoInfos=W.Z;var I=g.hW(W.videoInfos,function(q){return q.id===K}); I&&I.video.qualityOrdinal===J?W.videoInfos=[I]:(I=W.videoInfos.map(function(q){return q.id}),W.loader.WS("sabrpf",{pfid:""+K, vfids:""+I.join(".")}),H5D(W,J,J),sC(W.W,""))}else H5D(W,J,J)}; H5D=function(W,J,K){W.videoInfos=W.Z;W.videoInfos=g.Ei(W.videoInfos,function(I){return I.video.qualityOrdinal>=J&&I.video.qualityOrdinal<=K})}; G4X=function(W){var J=olH(W.W,W.S);J&&(W.G=[J])}; RDQ=function(W,J,K){if(W.lK.Ud){if(W.S){var I=g.Ei(W.G,function(q){return q.id===W.S}); return WB(I,K).includes(J)}I=g.Ei(W.G,function(q){var S;return!((S=q.pE)==null||!S.isDefault)}); if(I.length>0)return WB(I,K).includes(J)}return WB(W.G,K).includes(J)}; WB=function(W,J){return W.map(function(K){return EX(g.Il(K,J))})}; b5v=function(W){var J;if((J=W.K)==null?0:J.isLocked())return W.videoInfos;var K=Y_(W.W);J=g.Ei(W.videoInfos,function(I){return I.Cy>W.lK.Cy?!1:!K.has(I.id)}); rtQ(W.W)&&(J=g.Ei(J,function(I){return I.video.width<=854&&I.video.height<=480})); return J}; m8v=function(W,J,K){var I=W.Z0,q=W.uO.getVideoData(),S=W.R6,p=UC({QK:q.J(),uO:W.uO,qx:W.qx,lK:W.lK,M3:W.M3,y8:W.y8,MC:W.MC,N4:W.N4,q3:W.q3,isPrefetch:W.isPrefetch,gM:W.gM,sabrLicenseConstraint:q.sabrLicenseConstraint,It:W.It,vM:W.vM,A4:W.A4,yW:W.yW,G8W:!!S,Wj:q.Wj}),n=ZN(q,W.tf,W.nextRequestPolicy,W.cj,W.B8,W.d9,W.Or);K&&J&&(K=n.jj?n.jj.map(function(h){return h.type}):[],J("sabr",{stmctxt:K.join("_"), unsntctxt:n.rL?n.rL.join("_"):""}));J=W.Cs;K=W.uG;if(K===void 0&&J===void 0){var A;K=B8I(I.dl,(A=W.R9)==null?void 0:A.video);var D;J=B8I(I.dl,(D=W.R9)==null?void 0:D.audio)}if(q.j3)var f=q.j3;q={oY:p,NB:W.NB,Cs:J,uG:K,R6:S,videoPlaybackUstreamerConfig:f,Oy:n};W.Ag&&(q.Ag=W.Ag);q.Ek=W.Ek;q.t0=I.D0;return q}; B8I=function(W,J){return J?[g.Il(J.info,W)]:[]}; iU=function(W,J,K){var I=this;this.requestType=W;this.c7=J;this.MD=K;this.K=null;this.G$={DwZ:function(){var q;return(q=I.data)==null?void 0:q.isPrefetch}, B8:function(){var q;return(q=I.data)==null?void 0:q.B8}}}; d$X=function(W,J,K){J=Tw(W.c7,rrH(W,J,K),J);W.ER()&&J.set("probe","1");return J}; rrH=function(W,J,K){W.qd===void 0&&(W.qd=W.c7.qd(J,K));return W.qd}; oKI=function(W){var J,K;return((J=W.W)==null?void 0:(K=J.oY)==null?void 0:K.Pf)||0}; LYc=function(W){var J,K;return!!((J=W.W)==null?0:(K=J.oY)==null?0:K.It)}; k4c=function(W){var J={},K=[],I=[];if(!W.data)return J;for(var q=0;q0;A--)K.push(n)}K.length!==p?J.error=!0:(S=K.slice(-S),K.length=q,uvQ(J,K,S));break;case 1:uvQ(J,fk,j0D);break;case 0:N9y(J, J.W&7);K=a2(J,16);q=a2(J,16);(K^q)!==65535&&(J.error=!0);J.output.set(J.data.subarray(J.K,J.K+K),J.G);J.K+=K;J.G+=K;break;default:J.error=!0}W.G>W.output.length&&(W.output=new Uint8Array(W.G*2),W.G=0,W.K=0,W.T=!1,W.W=0,W.register=0)}W.output.length!==W.G&&(W.output=W.output.subarray(0,W.G));return W.error?new Uint8Array(0):W.output}; uvQ=function(W,J,K){J=FAH(J);K=FAH(K);for(var I=W.data,q=W.output,S=W.G,p=W.register,n=W.W,A=W.K;;){if(n<15){if(A>I.length){W.error=!0;break}p|=(I[A+1]<<8)+I[A]<>=7;D<0;)D=J[(p&1)-D],p>>=1;else p>>=D&15;n-=D&15;D>>=4;if(D<256)q[S++]=D;else if(W.register=p,W.W=n,W.K=A,D>256){p=t4[D];p+=a2(W,h4[D]);A=a4Q(W,K);n=FR[A];n+=a2(W,f4c[A]);if(ygH&&pK.length&&(W.error=!0);W.register|=(K[I+1]<<8)+K[I]<=0)return N9y(W,K&15),K>>4;for(N9y(W,7);K<0;)K=J[a2(W,1)-K];return K>>4}; a2=function(W,J){for(;W.W=W.data.length)return W.error=!0,0;W.register|=W.data[W.K++]<>=J;W.W-=J;return K}; N9y=function(W,J){W.W-=J;W.register>>=J}; FAH=function(W){for(var J=[],K=g.d(W),I=K.next();!I.done;I=K.next())I=I.value,J[I]||(J[I]=0),J[I]++;var q=J[0]=0;K=[];var S=0;I=0;for(var p=1;p7&&(S+=J[p]);for(q=1;q>A&1;n=S<<4|p;if(p<=7)for(A=1<<7-p;A--;)I[A<>=7;p--;){I[A]||(I[A]=-J,J+=2);var D=q&1;q>>=1;A=D-I[A]}I[A]=n}}return I}; UYL=function(W){var J,K,I,q,S,p,n;return g.V(function(A){switch(A.K){case 1:if(!("DecompressionStream"in window))return A.return(g.dYQ(new g.hCD(W)));J=new DecompressionStream("gzip");K=J.writable.getWriter();K.write(W);K.close();I=J.readable.getReader();q=new ye([]);case 2:return g.O(A,I.read(),5);case 5:S=A.W;p=S.value;if(n=S.done){A.VK(4);break}q.append(p);A.VK(2);break;case 4:return A.return(q.aH())}})}; uU=function(W,J){this.W=W;this.Es=J}; Zpv=function(W){return Ca(Ca(Ul(function(){return Qz(W.Es,function(J){return W.ll(W.W,J)})}),function(){return W.E3(W.W)}),function(){return W.Kl(W.W)})}; Q0X=function(W,J){return Zpv(new uU(W,J))}; MoQ=function(W){wp.call(this,"onesie");this.Kk=W;this.W={};this.G=!0;this.T=null;this.queue=new DY0(this);this.j={};this.S=wZ(function(J,K){var I=this;return function S(){var p,n,A,D,f,h,t,F,a,y,U,Q,C,T,H,b,c,v,Kv,qI;return VQ(S,function(WH){switch(WH.K){case 1:g.Zy(WH,2);I.Kk.WF();p=function(nv){return function(P){throw{name:nv,message:P};}}; n=J.aH();g.yQ(WH,4,5);if(!K){WH.VK(7);break}return NI(WH,eQ(Ca(CLI(I.Kk,n,I.iv),p("DecryptError")).wait()),8);case 8:A=WH.W;case 7:if(!I.Kk.enableCompression){WH.VK(9);break}return NI(WH,eQ(Ca(Q0X((h=A)!=null?h:n,I.Kk.J().kK),p("DecompressError")).wait()),10);case 10:D=WH.W;case 9:f=L2((F=(t=D)!=null?t:A)!=null?F:n,tUL);case 5:g.$c(WH,0,2);if(y=(a=I.Kk.J())==null?void 0:a.Es)((U=A)==null?void 0:U.buffer)===y.exports.memory.buffer&&y.free(A.byteOffset),((Q=D)==null?void 0:Q.buffer)===y.exports.memory.buffer&& y.free(D.byteOffset);g.OH(WH,6);break;case 4:throw T=C=g.g0(WH),new xm("onesie.response.parse",{name:(v=T.name)!=null?v:"unknown",message:(Kv=T.message)!=null?Kv:"unknown",wasm:((H=I.Kk.J())==null?0:H.Es)?((b=I.Kk.J())==null?0:(c=b.Es)==null?0:c.W)?"1js":"1":"0",enc:I.G,gz:I.Kk.enableCompression,webcrypto:!!QK()});case 6:return w8y(f),qI=g.$4(f.body),WH.return(qI);case 2:g.$c(WH),g.OH(WH,0)}})}()})}; g5L=function(W){var J=W.queue;J.W.length&&J.W[0].isEncrypted&&!J.K&&(J.W.length=0);J=g.d(Object.keys(W.W));for(var K=J.next();!K.done;K=J.next()){K=K.value;var I=W.W[K];if(!I.H5){var q=W.queue;q.W.push({videoId:I.videoId,formatId:K,isEncrypted:!1});q.K||jz(q)}}}; $YQ=function(W,J){var K=J.getLength(),I=!1;switch(W.T){case 0:W.Kk.Y("html5_future_onesie_ump_handler_on_player_response")?Ca(Qz(W.S(J,W.G),function(q){GRy(W.Kk,q)}),function(q){W.Kk.kG(q)}):W.WF(J,W.G).then(function(q){GRy(W.Kk,q)},function(q){W.Kk.kG(q)}); break;case 2:W.bU("ormk");J=J.aH();W.Kk.Y("html5_future_onesie_ump_handler_on_media_decryption_key")?W.queue.G(J,W.Kk.J().kK):W.queue.decrypt(J);break;default:I=!0}W.Kk.j1&&W.Kk.WS("ombup","id.11;pt."+W.T+";len."+K+(I?";ignored.1":""));W.T=null}; w8y=function(W){if(W.ir!==1)throw new xm("onesie.response.badproxystatus",{st:W.ir,webcrypto:!!QK(),textencoder:!!g.vH.TextEncoder});if(W.httpStatus!==200)throw new xm("onesie.response.badstatus",{st:W.httpStatus});}; xYA=function(W){return new Promise(function(J){setTimeout(J,W)})}; OpI=function(W,J){var K=W.J();K=W.GJ&&K.Y("html5_onesie_preload_use_content_owner");var I=W.y6,q=q8(J.Ru.experiments,"debug_bandaid_hostname");if(q)J=nk(J,q);else if((K===void 0?0:K)&&(I==null?0:I.url)&&!J.K){var S=V_(new g.TV(I.url));J=nk(J,S)}else J=(S=J.W.get(0))==null?void 0:S.location.clone();if(J&&W.videoId){S=Ar(W.videoId);W=[];if(S)for(S=g.d(S),K=S.next();!K.done;K=S.next())W.push(K.value.toString(16).padStart(2,"0"));J.set("id",W.join(""));return J}}; T9H=function(W,J,K){K=K===void 0?0:K;var I,q;return g.V(function(S){if(S.K==1)return I=[],I.push(J.load()),K>0&&I.push(xYA(K)),g.O(S,Promise.race(I),2);q=OpI(W,J);return S.return(q)})}; HpT=function(W,J,K,I){I=I===void 0?!1:I;W.set("cpn",J.clientPlaybackNonce);W.set("opr","1");var q=J.J();W.set("por","1");QK()||W.set("onem","1");J.startSeconds>0&&W.set("osts",""+J.startSeconds);I||(q.Y("html5_onesie_disable_partial_segments")&&W.set("oses","1"),J=q.Y("html5_gapless_onesie_no_media_bytes")&&S7(J)&&J.GJ,K&&!J?(J=K.audio,W.set("pvi",K.video.join(",")),q.Y("html5_onesie_disable_audio_bytes")||W.set("pai",J.join(",")),IP||W.set("osh","1")):(W.set("oad","0"),W.set("ovd","0"),W.set("oaad", "0"),W.set("oavd","0")))}; VoX=function(W,J,K,I,q){q=q===void 0?!1:q;var S="https://youtubei.googleapis.com/youtubei/"+J.HY.innertubeApiVersion+"/player",p=[{name:"Content-Type",value:"application/json"}];I&&p.push({name:"Authorization",value:"Bearer "+I});p.push({name:"User-Agent",value:g.CU()});g.Yf("EOM_VISITOR_DATA")?p.push({name:"X-Goog-EOM-Visitor-Id",value:g.Yf("EOM_VISITOR_DATA")}):(K=K.visitorData||g.Yf("VISITOR_DATA"))&&p.push({name:"X-Goog-Visitor-Id",value:K});(K=g.Yf("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&p.push({name:"X-YouTube-Lava-Device-Context", value:K});(J=q8(J.experiments,"debug_sherlog_username"))&&p.push({name:"X-Youtube-Sherlog-Username",value:J});W=TO(JSON.stringify(W));return{url:S,LD:p,postBody:W,bPh:q,iH:q}}; eCQ=function(W,J,K,I,q,S){var p=g.XO(W,hzQ,W.iH?void 0:K.Es),n={encryptedClientKey:J.W.encryptedClientKey,h_:!0,wM:!0,ZW:E5Q(K,!!W.iH),eq:K.experiments.HS("html5_use_jsonformatter_to_parse_player_response")};if(W.iH)n.DP0=p;else{if(K.Es){W=XwQ(J).K(p,J.iv);var A;n.Bx=(A=K.Es.dP(W))!=null?A:W}else n.Bx=J.encrypt(p);A=n.Bx;(0,g.L)();A=vLX(new zMc(J.W.G),A,J.iv);n.UG=A;n.iv=J.iv}J=I.getVideoData();K=UC({QK:K,uO:I,qx:J.startSeconds*1E3});q={uf:n,oY:K,onesieUstreamerConfig:q,IW:S,Oy:ZN(J)};J.reloadPlaybackParams&& (q.reloadPlaybackParams=J.reloadPlaybackParams);return q}; RCQ=function(W,J,K){var I,q,S;return g.V(function(p){if(p.K==1)return I=g.XO(J,hzQ),g.O(p,WAA(K,I),2);if(p.K!=3)return q=p.W,g.O(p,ip0(K,q),3);S=p.W;return p.return({Bx:q,encryptedClientKey:K.W.encryptedClientKey,iv:K.iv,UG:S,h_:!0,wM:!0,ZW:E5Q(W,!!J.iH),eq:W.experiments.HS("html5_use_jsonformatter_to_parse_player_response")})})}; bpQ=function(W,J,K,I,q,S){var p,n,A,D;return g.V(function(f){if(f.K==1)return g.O(f,RCQ(K,W,J),2);p=f.W;n=I.getVideoData();A=UC({QK:K,uO:I,qx:n.startSeconds*1E3});D={uf:p,oY:A,onesieUstreamerConfig:q,IW:S,Oy:ZN(n)};n.reloadPlaybackParams&&(D.reloadPlaybackParams=n.reloadPlaybackParams);return f.return(D)})}; E5Q=function(W,J){W=Qx(W.schedule,!0);J=J||!!QK()&&W>1572864;return"DecompressionStream"in window||!J}; dY=function(W,J){g.R.call(this);var K=this;this.uO=W;this.playerRequest=J;this.logger=new g.p4("onesie");this.xhr=null;this.state=1;this.sz=new JO;this.JE=!1;this.playerResponse="";this.n4=new XT(this);this.zJ=new MoQ(this);this.pG="";this.Hy=this.xb=!1;this.kE="";this.enableCompression=this.t$=this.yI=!1;this.YS=[];this.yd=-1;this.Ru=this.uO.J();this.videoData=this.uO.getVideoData();this.j1=this.Ru.ND();this.GX=this.Ru.bv;this.NA=new pk(this.GX.W,this.Ru.kK,zDH(this.Ru));this.y9=this.Ru.Y("html5_onesie_check_timeout"); this.A9=new g.P0(this.l3,500,this);this.Mo=new g.P0(this.yp,1E4,this);this.GA=new g.P0(function(){if(!K.isComplete()){var I=Nz(K);K.kG(new xm("net.timeout",I))}},1E3); this.Ih=new g.P0(this.qII,2E3,this);this.Zf=this.uO.Xe();this.qo=this.Y("html5_onesie_wait_for_media_availability");g.B(this.videoData,this);g.B(this,this.A9);g.B(this,this.Mo);g.B(this,this.Ih);g.B(this,this.NA);W=p5();IP&&W&&(this.TY=new Map);this.nC=new Map;this.BW=new Map;this.TK=new Map;this.Hr=new Map}; Dx=function(W,J){var K;return(K=W.TY)==null?void 0:K.get(J)}; mYH=function(W,J,K){var I;return g.V(function(q){if(q.K==1)return W.bU("oprd_s"),B9A(W)?g.O(q,JgH(W.NA,J,K),3):(I=W.NA.decrypt(J,K),q.VK(2));q.K!=2&&(I=q.W);W.bU("oprd_c");return q.return(I)})}; CLI=function(W,J,K){W.bU("oprd_s");J=XwQ(W.NA).encrypt(J,K);Qz(J,function(){W.bU("oprd_c")}); return J}; rgQ=function(W){return W.Y("html5_onesie_host_probing")||W.j1?IP:!1}; GRy=function(W,J){W.bU("oprr");W.playerResponse=J;W.t$||(W.qo=!1);R2(W)}; R2=function(W){if(!W.playerResponse)return!1;if(W.yI)return!0;var J=W.videoData.Y("html5_onesie_audio_only_playback")&&pK(W.videoData);if(W.TY&&W.qo){if(!W.TY.has(W.pG))return!1;var K=W.TY.get(W.pG),I;if(I=K){I=!1;for(var q=g.d(K.Nv.keys()),S=q.next();!S.done;S=q.next())if(S=K.Nv.get(S.value))for(var p=g.d(S.po),n=p.next();!n.done;n=p.next())n.value.tA>0&&(S.SF?I=!0:J=!0);I=!(J&&I)}if(I)return!1}W.bU("ofr");W.sz.resolve(W.playerResponse);if(!W.y9){var A;(A=W.GA)==null||A.start();W.Mo.start()}return W.yI= !0}; LAH=function(W){if(W.TY&&!W.Y("html5_onesie_media_capabilities")){W.bU("ogsf_s");var J=YqQ(W.uO.getVideoData(),function(I,q){W.WS(I,q)}),K=o5H(W.uO); J.video=btX(K,J.video);W.bU("ogsf_c");if(J.video.length)return J;W.WS("ombspf","l."+K.K+";u."+K.W+";o."+K.G+";r."+K.reason)}}; B9A=function(W,J){return W.Y("html5_onesie_sync_request_encryption")||(J==null?0:J.iH)||g.iL(W.Ru)&&W.Y("html5_embed_onesie_use_sync_encryption")?!1:!!QK()}; Nz=function(W){if(!W.PD)return{};var J=W.PD.wJ(),K;J.d=(K=W.PD.vS)==null?void 0:K.PP();J.shost=W.s8;J.ty="o";return J}; kRX=function(W,J){var K,I;(I=(W=(K=W.TY)==null?void 0:K.get(J))==null)||(J=W.G?!1:W.G=!0,I=!J);return!I}; zCH=function(W,J,K,I,q,S,p,n,A,D,f){g.R.call(this);var h=this;this.uO=W;this.loader=J;this.policy=K;this.audioTrack=I;this.videoTrack=q;this.Z0=S;this.Sn=p;this.D0=n;this.G=A;this.timing=D;this.C=f;this.W=[];this.S={};this.Y3=this.OI=!1;this.cj=new Set;this.T=this.SZ=this.N=this.q3=0;this.Z=null;this.sI={Ek:[],NB:[]};this.G8={Ek:[],NB:[]};this.j=null;this.jZ=[];this.G$={urK:function(){return h.W}, II8:function(){return h.S}, YJ8:function(){h.W.length=0}, AQs:function(){return h.cj}, rQZ:function(){return h.N}, Om3:function(t){h.N=t}, rVI:function(t){h.T=t}, HA:function(t){h.j=t}}; this.videoData=this.uO.getVideoData();this.policy.W$&&(this.vS=new zZ(this.loader,this.policy,this.Sn),g.B(this,this.vS))}; s00=function(W,J){J=J===void 0?!1:J;if(v5I(W)){W.policy.S&&W.loader.WS("sabrcrq",{create:1});var K=new iU(0,W.Z0.N,W);W.policy.hh>0&&W.T++;J=YFQ(W,K,J);W.W.push(J);var I;(I=W.vS)==null||hDy(I,W.Z0.N)}}; W7Q=function(W,J){var K=cgL(W);if(W.policy.Da){var I=W.sI;var q=W.G8}else I=bU(W,W.audioTrack),q=bU(W,W.videoTrack);var S=[].concat(g.w(I.Ek),g.w(q.Ek));W.policy.eZ&&W.j&&S.push.apply(S,g.w(W.jZ));var p=[].concat(g.w(I.NB),g.w(q.NB)),n=W.loader.g3(),A,D,f=W.uO,h=W.Z0,t=W.K,F=W.cj,a=W.policy,y=W.loader.M3,U=yrL(W.loader)*1E3,Q=(A=W.XW)==null?void 0:A.MC;A=(D=W.XW)==null?void 0:D.N4;var C;D=Number((C=W.G.T)==null?void 0:C.info.itag)||0;var T;C=Number((T=W.G.j)==null?void 0:T.info.itag)||0;J={uO:f,Z0:h, Ek:S,NB:p,qx:K,nextRequestPolicy:t,cj:F,lK:a,M3:y,y8:U,MC:Q,N4:A,q3:W.q3,isPrefetch:J||W.loader.isSuspended,YI0:D,I0Z:C,tf:n,Or:W.uO.RS()};K=W.loader.rF();S=Ar(K);K&&(J.B8=S);if(K=W.uO.yM())J.It=K*1E3;var H;K=W.G;S=K.PS;if(((H=K.lK)==null?0:yn(H))&&!S)for(H=g.d(K.G),p=H.next();!p.done;p=H.next())if(p.value.pE){S=!0;break}H=yn(K.lK)&&!S?[]:x8Q(K,K.G);J.Cs=H;H=W.G;yn(H.lK)&&!H.sI?H=[]:(K=b5v(H),K.length===0&&(K=H.Z),H=x8Q(H,K));J.uG=H;J.R6=W.policy.eZ&&W.j?[W.j]:void 0;W.policy.Nf&&(J.A4=PL0(W.loader, W.audioTrack),J.yW=PL0(W.loader,W.videoTrack));if(W.policy.G){if(W.policy.FA){H=W.loader.getCurrentTime();var b=BB(W,I.Ek,H);I=BB(W,q.Ek,H);var c;q=(c=W.Z)==null?void 0:c.T7(Math.min(b,I))}else c=X8c(W,I.Ek,q.Ek),q=(b=W.Z)==null?void 0:b.T7(c);q&&(J.Ag=q)}W.policy.C&&W.W.length>0&&W.W[0].D_()&&(J.d9=W.W[0].jy());return J}; cgL=function(W){var J,K=W.policy.j&&((J=W.loader)==null?void 0:J.QW());J=W.loader.getCurrentTime()||0;J=iKQ(W,J);var I=W.loader.nE()||0;J+=I;I=$h(W.videoData)||g.Gg(W.videoData);var q=0;K?(I&&(q=Number.MAX_SAFE_INTEGER),W.videoData.sI&&(q=Math.ceil(W.videoData.vS*1E3))):q=Math.ceil(J*1E3);return Math.min(Number.MAX_SAFE_INTEGER,q)}; iKQ=function(W,J){if(W.loader.isSeeking())return J;var K=W.uO.gb();if(!K)return J;K=K.qR();if(K.length===0||fD(K,J))return J;if(!mt(W.videoTrack,J)&&!mt(W.audioTrack,J))return W.loader.WS("sundrn",{b:0,lt:J}),J;for(var I=J,q=Infinity,S=0;SJ)){var p=J-K.end(S);p=20)?(W.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),J):I}; X8c=function(W,J,K){var I=W.loader.getCurrentTime()||0;J=BB(W,J,I);W=BB(W,K,I);return Math.min(J,W)}; BB=function(W,J,K){var I=W.loader.nE()||0;if(W.policy.FA)return JS0(J,(K+I)*1E3)/1E3+K;W=g.d(J);for(J=W.next();!J.done;J=W.next()){var q=J.value;J=q.startTimeMs?q.startTimeMs/1E3-I:0;q=J+(q.durationMs?q.durationMs/1E3:0);if(J<=K&&K<=q)return q}return K}; v5I=function(W){if(W.policy.hh>0){var J=Math.floor((0,g.L)()/1E4);if(J===W.SZ){if(W.T>=W.policy.hh){if(W.T===W.policy.hh){var K={reason:"toomanyrequests"};K.limit=W.T;W.loader.handleError("player.exception",K);W.T+=1}return!1}}else W.SZ=J,W.T=0}if(W.loader.isSuspended&&W.loader.xM)return!1;if(W.PS&&(0,g.L)()0&&(!W.policy.C||W.W.length!==1||!W.W[0].D_()))return!1;var I;if((I=W.Z0.N)==null||!Vp(I,W.policy,W.S,W.loader.JV())||Rd(W.audioTrack)&&Rd(W.videoTrack))return!1; if(mz(W,W.audioTrack)&&mz(W,W.videoTrack))return W.policy.K&&W.loader.WS("sabrHeap",{a:""+Ox(W.audioTrack),v:""+Ox(W.videoTrack)}),!1;if(J=W.policy.G){J=!1;if(W.C.K===2)J=!0;else if(W.C.K===3){cgL(W);W.loader.nE();I=X8c(W,GZ(W.audioTrack,W.loader.isSeeking()).Ek,GZ(W.videoTrack,W.loader.isSeeking()).Ek);var q=W.C;I>=q.j?(q.WS("sdai",{haltrq:I,est:q.j}),I=!0):I=!1;I&&(J=!0)}J&&W.policy.S&&W.loader.WS("sabrcrq",{waitad:1})}if(J)return!1;W.policy.Da&&(W.sI=bU(W,W.audioTrack),W.G8=bU(W,W.videoTrack)); if(!W.K)return W.policy.S&&W.loader.WS("sabrcrq",{nopolicy:1}),!0;if(W.uO.yM())return W.policy.S&&W.loader.WS("sabrcrq",{utc:1}),!0;if(W.G.N)return W.policy.S&&W.loader.WS("sabrcrq",{audio:1}),!0;if(!W.K.targetAudioReadaheadMs||!W.K.targetVideoReadaheadMs)return W.policy.S&&W.loader.WS("sabrcrq",{noreadahead:1}),!0;if(W.policy.j&&W.loader.QW())return W.policy.S&&W.loader.WS("sabrcrq",{seekToHead:1}),!0;J=Math.min(Bv(W.loader,W.audioTrack)*1E3,W.K.targetAudioReadaheadMs);I=Math.min(Bv(W.loader,W.videoTrack)* 1E3,W.K.targetVideoReadaheadMs);var S=Math.min(J,I);q=HG(W.audioTrack,!0)*1E3;var p=HG(W.videoTrack,!0)*1E3;if(W.policy.Da){var n=W.uO.getCurrentTime()*1E3;var A=JS0(W.sI.Ek,n);n=JS0(W.G8.Ek,n)}else A=q,n=p;var D=AJ||I>=0&&q.Hj>I+1)break;K=Math.max(K,q.startTimeMs+q.durationMs);I=Math.max(I,q.JR)}return Math.max(0,K-J)}; YFQ=function(W,J,K){var I={Sn:W.Sn,nG:function(A,D){W.uO.r_(A,D)}, Xa:W.policy.dH,ZR:W.policy.K};W.Sn.K.S&&(I.wV=(W.videoTrack.W.info.Cy||0)+(W.audioTrack.W.info.Cy||0));W.policy.LA&&(I.Zt=W.audioTrack.W.index.JB(),I.Xa=!1);var q=rrH(J,W.policy,W.S)?2:1;q!==W.N&&(W.N=q,IPc(W));K=W7Q(W,K);if(W.policy.C&&W.policy.K&&K.cj){for(var S=q="",p=g.d(K.cj),n=p.next();!n.done;n=p.next())n=n.value,W.videoData.sabrContextUpdates.has(n)||W.policy.C&&K.d9&&K.d9.type===n?q+="_"+n:S+="_"+n;W.loader.WS("sabrbldrqs",{ctxts:q,misctxts:S})}!J.setData(K,W.policy,W.S)&&W.policy.C&&W.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);I=new Vn(W.policy,J,W.Z0,W.S,W,I,W.loader.Xe());EC(W.timing);W.policy.S&&W.loader.WS("sabrcrq",{rn:I.eS(),probe:J.ER()});return I}; o2=function(W,J){if(J.Iu()||W.Iu())W.policy.Pg||(W.policy.j?rY(W.loader):W.loader.vD());else{if(W.policy.K&&J.isComplete()&&J instanceof Vn){var K=W.loader,I=K.WS,q,S,p=Object.assign(J.PD.wJ(),{rst:J.state,strm:J.xhr.QQ(),d:(q=J.PD.vS)==null?void 0:q.PP(),cncl:J.xhr&&J.YK.T?1:0,rqb:J.Qb,cwt:J.n2,swt:(S=J.Wv)==null?void 0:S.EX});q=Object.assign(k4c(J.info),p);I.call(K,"rqs",q)}if(J.isComplete()&&J.ER()&&J instanceof Vn)W.policy.Fz?J.Bm()?(J.dispose(),W.W.length===0?W.loader.vD():(W=W.W[0],W instanceof Vn&&W.qq()&&W.v1())):J.dV()&&W.loader.handleError(J.AS(),J.qV()):(J.dispose(),W.loader.vD());else{if(J.Zk())J instanceof Vn&&Omc(W.timing,J),IPc(W),qk0(W);else if(J.dV())K=W.uO.yM(),J instanceof Vn&&LYc(J.info)&&K&&W.loader.S_(K),J instanceof dY?W.W.pop():(K=1,J.canRetry()&&MbQ(W.loader)&&(Skv(W,J),K=0),W.loader.handleError(J.AS(),J.qV(),K));else{if(W.loader.isSuspended&&!J.isComplete())return;qk0(W)}J.Iu()||J instanceof dY||(J.isComplete()?K=aLX(J,W.policy,W.S):(K=FYy(J,W.policy,W.S),K===1&&(W.OI= !0)),K!==0&&(I=new iU(1,J.info.c7),I.qd=K===2,YFQ(W,I)));W.policy.oG&&!J.isComplete()?wwX(W.loader):W.loader.vD()}}}; qk0=function(W){for(;W.W.length&&W.W[0].LN(W.Ah());){var J=W.W.shift();pLQ(W,J)}W.W.length&&pLQ(W,W.W[0])}; pLQ=function(W,J){var K=new Set(J.oO(W.Ah()));K=g.d(K);for(var I=K.next();!I.done;I=K.next()){var q=I.value;if(!(I=!(J instanceof dY))){I=W.G;var S=I.Z0.dl,p=WB(I.videoInfos,S);S=RDQ(I,q,S);var n=p.includes(q);!I.lK.zf||S||n||I.loader.WS("sabrcpf",{fid:""+q,vfids:""+p.join("."),said:I.S||""});I=S||p.includes(q)}if(I&&(I=J.CB(q,W.Ah()),p=W.policy.eZ&&pD(I[0].W.info.mimeType),(!(!p&&W.policy.XZ&&I.length>0&&(I[0].W.info.SF()?HG(W.audioTrack):HG(W.videoTrack))>3)||J.isComplete())&&J.Do(q,W.Ah())))for(q= J.H4(q,W.Ah()),q=g.d(q),S=q.next();!S.done;S=q.next())if(S=S.value,W.policy.K&&J instanceof dY&&W.loader.WS("omblss",{s:S.info.XD()}),p)n=W,n.videoData.dl()&&n.j&&EX(n.j)===EX(g.Il(S.info.W.info,n.Z0.dl))&&n.uO.publish("sabrCaptionsDataLoaded",S,n.m7.bind(n));else{n=S.info.W.info.SF();var A=S.info.W;if(n){var D=void 0;var f=W.G,h=(D=J.aS(W.Ah()))==null?void 0:D.token;f.N&&A!==f.j?D=!0:(f.N=!1,A!==f.j&&(f.j=A,f.zS(A,f.audioTrack,h)),D=!1);if(D)continue}else D=void 0,$8D(W.G,A,(D=J.aS(W.Ah()))==null? void 0:D.token);D=n?W.audioTrack:W.videoTrack;J instanceof dY&&(D.Z=!1,J instanceof dY&&(n?CeQ(W.timing):QtA(W.timing)));try{gL(D,I,S)}catch(t){S=Tc(t),W.loader.handleError(S.errorCode,S.details,S.severity),D.YG(),W.r0(!1,"pushSlice"),rY(W.loader)}}}}; Skv=function(W,J){W.policy.C?W.W.splice(W.W.indexOf(J)).forEach(function(K){K.dispose()}):(W.W.pop(),J==null||J.dispose())}; lPy=function(W,J,K){for(var I=[],q=0;q0)for(var J=g.d(W.videoData.sabrContextUpdates.keys()),K=J.next();!K.done;K=J.next()){K=K.value;var I=void 0;((I=W.videoData.sabrContextUpdates.get(K))==null?0:I.sendByDefault)&&W.cj.add(K)}if(W.policy.C&&W.W.length)for(J=g.d(W.W),K=J.next();!K.done;K=J.next())(K=K.value.jy())&&K.type&&K.sendByDefault&&W.cj.add(K.type)}; nhQ=function(W){W.policy.bb&&(W.XW=void 0,W.q3=0)}; ASD=function(W,J){if(J.dV()||J.Iu()){var K=W.loader,I=K.WS,q=J.state;W=W.Ah();var S,p;if((J=(S=J.TY)==null?void 0:S.get(W))==null)J=void 0;else{S=0;W=J.oO();for(var n=0;n=W.policy.lI,p=!1;if(S){var n=0;!isNaN(J)&&J>W.j&&(n=J-W.j,W.j=J);n/q=W.policy.fA&&!W.G;if(!S&&!K&&t7X(W,J))return NaN;K&&(W.G=!0);a:{I=p;K=(0,g.L)()/1E3-(W.On.Lc()||0)-W.Z.W-W.policy.iU;S=W.K.startTime;K=S+K;if(I){if(isNaN(J)){Lk(W,NaN,"n",J);S=NaN;break a}I=J-W.policy.CA;I=S.T&&I<=S.S){I=!0;break a}I=!1}I=!I}if(I)return W.WS("ostmf",{ct:W.getCurrentTime(),a:J.W.info.SF()}),!1;(W=W.sI)!=null&&(W.Nv.get(K).QZ=!0);return!0}; UEH=function(W){if(!W.Z0.dl)return!0;var J=W.uO.getVideoData();if(W.uO.bV())return W.WS("ombpa",{}),!1;var K,I;if(W.policy.UL&&!!((K=W.C)==null?0:(I=K.zd)==null?0:I.NBW)!==W.Z0.jP)return W.WS("ombplmm",{}),!1;K=J.SI||J.liveUtcStartSeconds||J.Ym;if(W.Z0.jP&&K)return W.WS("ombplst",{}),!1;if(W.Z0.C)return W.WS("ombab",{}),!1;K=Date.now();return EJ(W.Z0)&&!isNaN(W.G8)&&K-W.G8>W.policy.JN*1E3?(W.WS("ombttl",{}),!1):W.Z0.Qw&&W.Z0.T||!W.policy.t7&&W.Z0.isPremiere||!(ae(J)===0||W.policy.W&&J.Y("html5_enable_onesie_media_for_sabr_proxima_optin"))|| J.Y("html5_disable_onesie_media_for_mosaic")&&LK(J)||J.rf()&&!J.Y("html5_enable_onesie_media_for_lifa")&&J.isDaiEnabled()&&J.enableServerStitchedDai||J.Y("html5_disable_onesie_media_for_lifa_eligible")&&oe(J)?!1:!0}; ZKH=function(W,J){var K=J.W,I=W.Z0.dl;if(UEH(W))if(W.sI&&W.sI.Nv.has(EX(g.Il(K.info,I)))){if(I=EX(g.Il(K.info,I)),ySL(W,J)){var q=new sX(W.sI.CB(I)),S=function(p){try{if(p.dV())W.handleError(p.AS(),p.qV()),et(J,p),PQ(p.info)&&sx(W.j,J,K,!0),W.vD();else if(QPX(W.j,p)){var n;(n=W.K)==null||eey(n,p.info,W.PS);W.vD()}}catch(A){p=Tc(A),W.handleError(p.errorCode,p.details,p.severity),W.YG()}}; K.G=!0;cQ(q)&&(ML(J,new E3(W.policy,I,q,W.sI,S)),EC(W.timing))}}else W.WS("ombfmt",{})}; QeI=function(W,J){J=J||W.videoTrack&&W.videoTrack.K&&W.videoTrack.K.startTime||W.getCurrentTime();var K=cG,I=W.videoTrack,q=W.W;J=q.nextVideo&&q.nextVideo.index.sW(J)||0;q.XW!==J&&(q.jZ={},q.XW=J,Xq(q,q.W));J=!q.W.isLocked()&&q.C>-1&&(0,g.L)()-q.CJ.W&&J.reason==="b";I||q||K?(W.uO.gH({reattachOnConstraint:I?"u":q?"drm":"perf",lo:J.K,up:J.W}),W.policy.oH||(W.G.W.K=!1)):(W.policy.oH&&(W.G.W.K=!1),rY(W))}}else if(!stD(W.W,J)&&W.videoTrack){W.logger.debug(function(){return"Setting constraint: r="+J.reason+" u="+J.W}); K=W.W.W;$Ev(W,PeQ(W.W,J));QeI(W);I=J.isLocked()&&J.reason==="m"&&W.W.sI;q=W.policy.NP&&J.reason==="l"&&b_(W.videoTrack);K=K.W>J.W&&J.reason==="b";var S=W.W.FW&&!UE();I||q||K||S?W.uO.gH({reattachOnConstraint:I?"u":q?"drm":S?"codec":"perf"}):rY(W)}}; OKv=function(W,J,K){if((!W.ww||sE(W.ww)&&!W.policy.uV)&&!W.Fs.isSeeking()&&(W.policy.W||b_(J)&&J.W.xA()&&W.W.PS)){var I=W.getCurrentTime()+ERX(W.N,J,K);W.logger.debug(function(){return"Clearing back to "+I.toFixed(3)}); XCX(J,I)}}; $Ev=function(W,J){J&&(W.logger.debug(function(){return"Logging new format: "+nD(J.video.info)}),TPQ(W.uO,new k_(J.video,J.reason))); if(W.W.D0){var K=JRy(W.W,"a");W.uO.z9(new k_(K.audio,K.reason))}}; rY=function(W){g.XY(W.Tx)}; wwX=function(W){W.policy.oG&&W.policy.Mq&&Math.min(PzX(W.videoTrack),PzX(W.audioTrack))*1E3>W.policy.qH?g.XY(W.sT):W.vD()}; HKT=function(W,J){var K=(0,g.L)()-J,I=HG(W.audioTrack,!0)*1E3,q=HG(W.videoTrack,!0)*1E3;W.logger.debug(function(){return"Appends paused for "+K}); if(W.policy.K&&(W.WS("apdpe",{dur:K.toFixed(),abuf:I.toFixed(),vbuf:q.toFixed()}),LT(W.policy))){var S=O3(W.N);W.WS("sdps",{ct:J,ah:I.toFixed(),vh:q.toFixed(),mr:T1(W.N,W.lx,S),bw:S.toFixed(),js:W.isSeeking(),re:+W.lx,ps:(W.policy.dg||"").toString(),rn:(W.policy.ZG||"").toString()})}}; V7X=function(W){if(qeI(W.videoTrack))return W.logger.debug("Pausing appends for server-selectable format"),"ssf";if(W.policy.OI&&rL(W.videoTrack)&&rL(W.audioTrack))return"updateEnd";if(Rd(W.audioTrack)||Rd(W.videoTrack)&&W.videoTrack.W.info.z8!=="f")return"";if(W.Fs.isSeeking()){var J=W.N;var K=W.videoTrack;var I=W.audioTrack;if(J.policy.W){var q=J.policy.bv;LT(J.policy)&&(q=T1(J,!1,O3(J)));J=q;K=HG(I,!0)>=J&&HG(K,!0)>=J}else K.G.length||I.G.length?(q=K.W.info.Cy+I.W.info.Cy,q=10*(1-O3(J)/q),J=Math.max(q, J.policy.bv),K=HG(I,!0)>=J&&HG(K,!0)>=J):K=!0;if(!K)return"abr";K=W.videoTrack;if(K.G.length>0&&K.T.K.length===1&&MOI(K.T).info.Z360);I=LT(W.policy)&&W.policy.Ze;if(!W.lx||!I&&K)return"";K=W.policy.aY;LT(W.policy)&&(K=T1(W.N,W.lx,O3(W.N)));K=i5L(W.videoTrack,W.getCurrentTime(),K)||i5L(W.audioTrack,W.getCurrentTime(), K);return LT(W.policy)?K?"mbnm":"":(W.videoTrack.G.length>0||W.audioTrack.G.length>0||YD(W.j,W.videoTrack,W.audioTrack)||YD(W.j,W.audioTrack,W.videoTrack))&&K?"nord":""}; EhQ=function(W){if(W.Z){var J=W.Z.vD(W.audioTrack,tM(W.ww.K.UA()));J&&W.uO.seekTo(J,{CX:!0,cN:"pollSubsegmentReadahead",TZ:!0})}}; ohA=function(W,J,K){if(W.policy.OI&&rL(J))return!1;if(K.KK())return!0;if(!K.Px())return!1;var I=kZ(J);if(!I||I.info.type===6)return!1;var q;if(W.policy.zs||((q=W.K)==null?0:m$X(q,J,I.info.x3)))W.jZ=0;else return W.Fs.isSeeking()&&rY(W),W.jZ=W.jZ||(0,g.L)(),!1;if(!kS(W,J,K,I.info))return!1;if(W.Z0.K&&I.info.K===0){if(q=e7A(J,K,I)){var S=wL(J);W.WS("initchg",{it:I.info.W.info.id,sr:!!S&&S.W===I.info.W,ty:I.info.type,seg:I.info.x3})}S=g.JM(I.info.W.info);W.policy.yr&&S&&!q&&RPT(I)}S=W.Z&&!!W.Z.T&&J.W.info.audio; q=W.Z0.isManifestless||I.j;if(!(W.Z0.K&&I.info.K!==0||q&&!S)&&R7Q(W,J,K,I))return!0;if(S)return!1;S=Bv(W,J);S=W.getCurrentTime()+S;if(I.info.T>S)return W.policy.W&&bKH(W,J),W.policy.CS&&sgH(J.T,S,!1),!1;BPX(W,J);var p;W.policy.lN&&K===((p=W.ww)==null?void 0:p.W)&&W.bO&&(K.x4()===0?(W.bO=!1,W.policy.lN=!1):W.Js=K.x4());if(!mEH(W,K,I,J))return!1;W.policy.OI&&I.info.IH()?(W.uO.J().ND()&&W.WS("eosl",{ls:I.info.XD()}),I.isLocked=!0):(J.JA(I),isH(W.W,I.info),W.logger.debug(function(){return"Appended "+ I.info.XD()+", buffered: "+D0(K.UA())})); q&&rSL(W,I.info.W.fd);return!0}; bKH=function(W,J){J===W.videoTrack?W.SZ=W.SZ||(0,g.L)():W.vS=W.vS||(0,g.L)()}; BPX=function(W,J){J===W.videoTrack?W.SZ=0:W.vS=0}; mEH=function(W,J,K,I){var q=W.policy.SI?(0,g.L)():0,S=K.j&&K.info.W.W||void 0,p=K.W;K.j&&(p=L7T(W,K,p)||p);var n=p.aH();p=W.policy.SI?(0,g.L)():0;J=kgA(W,J,n,K.info,S);(I=I.C)!=null&&(S=K.info,q=p-q,p=(0,g.L)()-p,!I.K||l0L(I.K,S)&&I.K.x3===S.x3||I.flush(),I.T+=q,I.G+=p,q=1,!I.K&&S.K&&(q=2),qL(I,q,J),p=Math.ceil(S.K/1024),q===2&&I.W.add(p),I.W.add(Math.ceil((S.K+S.G)/1024)-p),I.K=S);W.XW=0;if(J===0)return W.Y3&&(W.logger.debug("Retry succeed, back to normal append logic."),W.Y3=!1,W.P7=!1),W.eZ=0, !0;if(J===2||J===5)return z7Q(W,"checked",J,K.info),!1;if(J===1){if(!W.Y3)return W.logger.debug("QuotaExceeded, retrying."),W.Y3=!0,!1;if(!W.P7)return W.P7=!0,W.uO.seekTo(W.getCurrentTime(),{cN:"quotaExceeded",TZ:!0}),!1;K.info.kC()?(q=W.policy,q.SZ=Math.floor(q.SZ*.8),q.G8=Math.floor(q.G8*.8)):(q=W.policy,q.Js=Math.floor(q.Js*.8),q.G8=Math.floor(q.G8*.8));W.policy.W?vI(W.G.W,K.info.W,!1):i_(W.W,K.info.W)}W.uO.gH({reattachOnAppend:J});return!1}; L7T=function(W,J,K){var I;if(I=W.policy.Mi&&W.ww&&!W.ww.N&&!W.uO.dW())J=J.info.W.info,I=J.Pt()&&sS(J)&&J.video&&J.video.width<3840&&J.video.width>J.video.height;if(I&&(W.ww.N=!0,ep('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return K=CzH(K),W.policy.K&&W.WS("sp4k",{s:!!K}),K}; z7Q=function(W,J,K,I){var q="fmt.unplayable",S=1;K===5||K===3?(q="fmt.unparseable",W.policy.W?!I.W.info.video||Y_(W.G.W).size>0||vI(W.G.W,I.W,!1):!I.W.info.video||Y_(W.W.j).size>0||i_(W.W,I.W)):K===2&&(W.eZ<15?(W.eZ++,q="html5.invalidstate",S=0):q="fmt.unplayable");I=vQ(I);var p;I.mrs=(p=W.ww)==null?void 0:W5(p);I.origin=J;I.reason=K;W.handleError(q,I,S)}; rRT=function(W,J,K,I,q){var S=W.Z0;var p=W.policy.W,n=!1,A=-1,D;for(D in S.W){var f=pD(S.W[D].info.mimeType)||S.W[D].info.kC();if(I===f)if(f=S.W[D].index,f.yx(J.x3)){n=f;var h=J,t=n.jB(h.x3);t&&t.startTime!==h.startTime?(n.segments=[],n.S0(h),n=!0):n=!1;n?A=J.x3:!J.pending&&p&&(h=f.getDuration(J.x3),h!==J.duration&&(S.publish("clienttemp","mfldurUpdate",{itag:S.W[D].info.itag,seg:J.x3,od:h,nd:J.duration},!1),f.S0(J),n=!0))}else f.S0(J),n=!0}A>=0&&(p={},S.publish("clienttemp","resetMflIndex",(p[I? "v":"a"]=A,p),!1));S=n;WDy(W.Fs,J,I,S);W.K.u5(J,K,I,q);if(W.policy.X0&&K){var F;(F=W.bb)!=null&&F.G.set(J.x3,K)}J.x3===W.Z0.Qw&&S&&xi(W.Z0)&&J.startTime>xi(W.Z0)&&(W.Z0.vS=J.startTime+(isNaN(W.timestampOffset)?0:W.timestampOffset),W.Fs.isSeeking()&&W.Fs.W 5)return W.XW=0,W.uO.gH({initSegStuck:1,as:I.info.XD()}),!0}else W.XW=0,W.qD=I;W.policy.Lx&&(K.abort(),(p=J.C)!=null&&(qL(p,4),p.flush()));q=kgA(W,K,S,A,q);var D;(D=J.C)==null||ARQ(D,q,A);if(q!==0)return vhA(W,q,I),!0;I.info.kC()?glL(W.timing):GwQ(W.timing);W.logger.debug(function(){return"Appended init for "+I.info.W.info.id}); rSL(W,I.info.W.fd);return K.I5()}; e7A=function(W,J,K){if(J.NC()==null){W=wL(W);if(!(J=!W||W.W!==K.info.W)){a:if(W=W.C,K=K.info.C,W.length!==K.length)K=!1;else{for(J=0;J1)return 6;p.jZ=new g.P0(function(){var n=kZ(p);W.Iu()||n==null||!n.isLocked?W.uO.J().ND()&&W.WS("eosl",{delayA:n==null?void 0:n.info.XD()}):YkX(p)?(W.uO.J().ND()&&W.WS("eosl",{dunlock:n==null?void 0:n.info.XD()}),sey(W,p===W.audioTrack)):(W.WS("nue",{ls:n.info.XD()}),n.info.PS+=1,W.ww&&W.pj())},1E4,W); W.uO.J().ND()&&W.WS("eosl",{delayS:I.XD()});p.jZ.start()}W.policy.bH&&(I==null?void 0:I.W)instanceof WC&&I.IH()&&W.WS("poseos",{itag:I.W.info.itag,seg:I.x3,lseg:I.W.index.FD(),es:I.W.index.G});J.appendBuffer(K,I,q)}catch(n){if(n instanceof DOMException){if(n.code===11)return 2;if(n.code===12)return 5;if(n.code===22||n.message.indexOf("Not enough storage")===0)return J=Object.assign({name:"QuotaExceededError",buffered:D0(J.UA()).replace(/,/g,"_"),vheap:Ox(W.videoTrack),aheap:Ox(W.audioTrack),message:g.qQ(n.message, 3),track:W.ww?J===W.ww.K?"v":"a":"u"},uKT(W.policy.e7)),W.handleError("player.exception",J),1;g.Va(n)}return 4}return W.ww.eF()?3:0}; L1=function(W,J,K){W.uO.seekTo(J,K)}; rSL=function(W,J){J&&W.uO.U4(new fT(J.key,J.type))}; ad=function(W,J){W.uO.fH(J)}; Bv=function(W,J){if(W.Y3&&!W.lx)return 3;if(W.isSuspended)return 1;var K;if((K=W.ww)==null?0:K.ww&&K.ww.streaming===!1)return 4;K=(J.W.info.audio?W.policy.Js:W.policy.SZ)/(J.Cy*W.policy.C_);if(W.policy.ZI>0&&W.ww&&sE(W.ww)&&(J=J.W.info.video?W.ww.K:W.ww.W)&&!J.I5()){J=J.UA();var I=jH(J,W.getCurrentTime());I>=0&&(J=W.getCurrentTime()-J.start(I),K+=Math.max(0,Math.min(J-W.policy.ZI,W.policy.V2)))}W.policy.G8>0&&(K=Math.min(K,W.policy.G8));return K}; PL0=function(W,J){return(Bv(W,J)+W.policy.Y9)*J.Cy}; PEv=function(W){W.FW&&!W.isSuspended&&C5(W.schedule)&&(cSc(W,W.FW),W.FW="")}; cSc=function(W,J){Mh(J,"cms",function(K){W.policy.K&&W.WS("pathprobe",K)},function(K){W.uO.handleError(K)})}; XLX=function(W,J){if(W.ww&&W.ww.T&&!W.ww.eF()&&(J.Xn=HG(W.videoTrack),J.K=HG(W.audioTrack),W.policy.K)){var K=Ox(W.videoTrack),I=Ox(W.audioTrack),q=D0(W.ww.K.UA(),"_",5),S=D0(W.ww.W.UA(),"_",5);Object.assign(J.W,{lvq:K,laq:I,lvb:q,lab:S})}J.bandwidthEstimate=$Z(W.N);var p;(p=W.audioTrack.C)==null||p.flush();var n;(n=W.videoTrack.C)==null||n.flush();W.logger.debug(function(){return $m(J.W)})}; Wlv=function(W,J){W.PS=J;W.K&&(W.K.G=J);W.PS.EF(W.videoTrack.W.info.Pt());W.j.K=W.PS;W.policy.G&&(W.T.Z=W.PS)}; IJQ=function(W,J){if(W.ww&&W.ww.K){if(W.policy.VW){var K=lLL(W.audioTrack);if(K&&K.SF()){var I=W.uO;if(I.Mx&&(I.Mx.W=K,K=I.rl(I.Mx.videoId),K.qoe)){K=K.qoe;I=I.Mx;var q=g.YS(K.provider);ilT(K,q,I)}}}W.policy.MG&&(K=lLL(W.videoTrack))&&K.kC()&&(I=W.uO,I.bG&&(I.bG.W=K,K=I.rl(I.bG.videoId),K.qoe&&JYA(K.qoe,I.bG)));J-=isNaN(W.timestampOffset)?0:W.timestampOffset;W.getCurrentTime()!==J&&W.resume();W.Fs.isSeeking()&&W.ww&&!W.ww.eF()&&(I=W.getCurrentTime()<=J&&J=0&&S1?n.K[0]=J&&NPc(W,I.startTime,!1)}); return K&&K.startTimeW.getCurrentTime())return K.start/1E3;return Infinity}; K7I=function(W){if(W.uO.getVideoData().isLivePlayback)return!1;var J=W.uO.gb();if(!J)return!1;J=J.getDuration();if(W.ww&&W.ww.W&&W.ww.K){var K=W.getCurrentTime(),I=W.ww.W.UA();W=W.ww.K.UA();I=I?hM(I,K):K;K=W?hM(W,K):K;K=Math.min(I,K);J=isNaN(K)?!1:K>=J-.01}else J=!1;return J}; vhA=function(W,J,K){W.policy.vO&&S7(W.uO.getVideoData())?(W.uO.TL()||z7Q(W,"sepInit",J,K.info),n0D(W.uO,"sie")):z7Q(W,"sepInit",J,K.info)}; MbQ=function(W){return W.uO.JV()0){var q=I.W.shift();DwQ(I,q.info)}I.W.length>0&&(q=I.W[0].time-(0,g.L)(),I.K.start(Math.max(0,q)))}},0); g.B(this,this.K);J.subscribe("widevine_set_need_key_info",this.j,this)}; DwQ=function(W,J){a:{var K=J.cryptoPeriodIndex;if(isNaN(K)&&W.G.size>0)K=!0;else{for(var I=g.d(W.G.values()),q=I.next();!q.done;q=I.next())if(q.value.cryptoPeriodIndex===K){K=!0;break a}K=!1}}W.publish("log_qoe",{wvagt:"reqnews",canskip:K});K||W.publish("rotated_need_key_info_ready",J)}; jVy=function(){var W={};var J=W.url;var K=W.interval;W=W.retries;this.url=J;this.interval=K;this.retries=W}; fJQ=function(W,J){this.statusCode=W;this.message=J;this.K=this.heartbeatParams=this.errorMessage=null;this.W={};this.nextFairplayKeyId=null}; hEX=function(W,J,K){K=K===void 0?"":K;g.R.call(this);this.message=W;this.requestNumber=J;this.tD=K;this.onError=this.onSuccess=null;this.W=new g.bR(5E3,2E4,.2)}; tML=function(W,J,K){W.onSuccess=J;W.onError=K}; aJH=function(W,J,K,I){var q={timeout:3E4,onSuccess:function(S){if(!W.Iu()){oC("drm_net_r",void 0,W.tD);var p=S.status==="LICENSE_STATUS_OK"?0:9999,n=null;if(S.license)try{n=SB(S.license)}catch(a){g.Va(a)}if(p!==0||n){n=new fJQ(p,n);p!==0&&S.reason&&(n.errorMessage=S.reason);if(S.authorizedFormats){p={};for(var A=[],D={},f=g.d(S.authorizedFormats),h=f.next();!h.done;h=f.next())if(h=h.value,h.trackType&&h.keyId){var t=FlD[h.trackType];if(t){t==="HD"&&S.isHd720&&(t="HD720");h.isHdr&&(t+="HDR");p[t]|| (A.push(t),p[t]=!0);var F=null;try{F=SB(h.keyId)}catch(a){g.Va(a)}F&&(D[g.IB(F,4)]=t)}}n.K=A;n.W=D}S.nextFairplayKeyId&&(n.nextFairplayKeyId=S.nextFairplayKeyId);S.sabrLicenseConstraint&&(n.sabrLicenseConstraint=SB(S.sabrLicenseConstraint));S=n}else S=null;if(S)W.onSuccess(S,W.requestNumber);else W.onError(W,"drm.net","t.p;p.i")}}, onError:function(S){if(!W.Iu())if(S&&S.error)S=S.error,W.onError(W,"drm.net.badstatus","t.r;p.i;c."+S.code+";s."+S.status,S.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)}}; I&&(q.ow="Bearer "+I);g.i9(K,"player/get_drm_license",J,q)}; ufQ=function(W,J,K,I){g.Ao.call(this);this.videoData=W;this.Ru=J;this.N=K;this.sessionId=I;this.j={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.PS=this.sI=!1;this.G=null;this.G8=[];this.T=[];this.Wj=[];this.Z=!1;this.W={};this.status="";this.S=NaN;this.K=W.j;this.cryptoPeriodIndex=K.cryptoPeriodIndex;W={};Object.assign(W,this.Ru.W);W.cpn=this.videoData.clientPlaybackNonce;this.videoData.jZ&&(W.vvt=this.videoData.jZ,this.videoData.mdxEnvironment&&(W.mdx_environment=this.videoData.mdxEnvironment)); this.Ru.G8&&(W.authuser=this.Ru.G8);this.Ru.pageId&&(W.pageid=this.Ru.pageId);isNaN(this.cryptoPeriodIndex)||(W.cpi=this.cryptoPeriodIndex.toString());var q=(q=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.CU()))?q[1]:"";q==="ATV"&&(W.cdt=q);this.j=W;this.j.session_id=I;this.C=!0;this.K.flavor==="widevine"&&(this.j.hdr="1");this.K.flavor==="playready"&&(J=Number(q8(J.experiments,"playready_first_play_expiration")),!isNaN(J)&&J>=0&&(this.j.mfpe=""+J),this.C=!1);J="";g.sJ(this.K)?Yi(this.K)?(I=K.K)&&(J="https://www.youtube.com/api/drm/fps?ek="+ xsL(I)):(J=K.initData.subarray(4),J=new Uint16Array(J.buffer,J.byteOffset,J.byteLength/2),J=String.fromCharCode.apply(null,J).replace("skd://","https://")):J=this.K.K;this.baseUrl=J;this.fairplayKeyId=e4(this.baseUrl,"ek")||"";if(J=e4(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(J);this.G8=K.Pt?[g.IB(K.initData,4)]:K.G;id(this,{sessioninit:K.cryptoPeriodIndex});this.status="in"}; UwA=function(W,J){id(W,{createkeysession:1});W.status="gr";oC("drm_gk_s",void 0,W.videoData.PS);W.url=NkX(W);try{W.G=J.createSession(W.N,function(K){id(W,{m:K})})}catch(K){J="t.g"; K instanceof DOMException&&(J+=";c."+K.code);W.publish("licenseerror","drm.unavailable",1,J,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}W.G&&(dwv(W.G,function(K,I){yYy(W,K,I)},function(K,I,q){if(!W.Iu()){I=void 0; var S=1;g.sJ(W.K)&&g.RP(W.Ru)&&W.Ru.Y("html5_enable_safari_fairplay")&&q===1212433232&&(I="ERROR_HDCP",S=W.Ru.Y("html5_safari_fairplay_ignore_hdcp")?0:S);W.error("drm.keyerror",S,K,I)}},function(){W.Iu()||(id(W,{onkyadd:1}),W.PS||(W.publish("sessionready"),W.PS=!0))},function(K){W.OJ(K)}),g.B(W,W.G))}; NkX=function(W){var J=W.baseUrl;SsH(J)||W.error("drm.net",2,"t.x");if(!e4(J,"fexp")){var K=["23898307","23914062","23916106","23883098"].filter(function(q){return W.Ru.experiments.experiments[q]}); K.length>0&&(W.j.fexp=K.join())}K=g.d(Object.keys(W.j));for(var I=K.next();!I.done;I=K.next())I=I.value,J=qwv(J,I,W.j[I]);return J}; yYy=function(W,J,K){if(!W.Iu())if(J){id(W,{onkmtyp:K});W.status="km";switch(K){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":ZlT(W,J);return;default:W.publish("ctmp","message_type",{t:K,l:J.byteLength})}W.sI||(oC("drm_gk_f",void 0,W.videoData.PS),W.sI=!0,W.publish("newsession",W));if(ki(W.K)&&(J=QVL(J),!J))return;J=new hEX(J,++W.requestNumber,W.videoData.PS);tML(J,function(I){C30(W,I)},function(I,q,S){if(!W.Iu()){var p=0; I.W.K>=3&&(p=1,q="drm.net.retryexhausted");id(W,{onlcsrqerr:q,info:S});W.error(q,p,S);W.shouldRetry(OS(p),I)&&wlQ(W,I)}}); g.B(W,J);MM0(W,J)}else W.error("drm.unavailable",1,"km.empty")}; ZlT=function(W,J){id(W,{sdpvrq:1});W.S=Date.now();if(W.K.flavor!=="widevine")W.error("drm.provision",1,"e.flavor;f."+W.K.flavor+";l."+J.byteLength);else{var K={cpn:W.videoData.clientPlaybackNonce};Object.assign(K,W.Ru.W);K=g.Vw("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",K);J={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, J)}),responseType:"arraybuffer"};g.$u(K,J,3,500).then(Ol(function(I){I=I.xhr;if(!W.Iu()){I=new Uint8Array(I.response);var q=String.fromCharCode.apply(null,I);try{var S=JSON.parse(q)}catch(p){}S&&S.signedResponse?(W.publish("ctmp","drminfo",{provisioning:1}),S=(Date.now()-W.S)/1E3,W.S=NaN,W.publish("ctmp","provs",{et:S.toFixed(3)}),W.G&&W.G.update(I)):(S=S&&S.error&&S.error.message,I="e.parse",S&&(I+=";m."+S),W.error("drm.provision",1,I))}}),Ol(function(I){W.Iu()||W.error("drm.provision",1,"e."+I.errorCode+ ";c."+(I.xhr&&I.xhr.status))}))}}; J8=function(W){var J;if(J=W.C&&W.G!=null)W=W.G,J=!(!W.W||!W.W.keyStatuses);return J}; MM0=function(W,J){W.status="km";oC("drm_net_s",void 0,W.videoData.PS);var K=new g.Wb(W.Ru.HY),I={context:g.Dv(K.config_||g.Ac())};I.drmSystem=g0L[W.K.flavor];I.videoId=W.videoData.videoId;I.cpn=W.videoData.clientPlaybackNonce;I.sessionId=W.sessionId;I.licenseRequest=g.IB(J.message);I.drmParams=W.videoData.drmParams;isNaN(W.cryptoPeriodIndex)||(I.isKeyRotated=!0,I.cryptoPeriodIndex=W.cryptoPeriodIndex);var q,S,p=!!((q=W.videoData.K)==null?0:(S=q.video)==null?0:S.isHdr());I.drmVideoFeature=p?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(I.context&&I.context.client){if(q=W.Ru.W)I.context.client.deviceMake=q.cbrand,I.context.client.deviceModel=q.cmodel,I.context.client.browserName=q.cbr,I.context.client.browserVersion=q.cbrver,I.context.client.osName=q.cos,I.context.client.osVersion=q.cosver;I.context.user=I.context.user||{};I.context.request=I.context.request||{};W.videoData.jZ&&(I.context.user.credentialTransferTokens=[{token:W.videoData.jZ,scope:"VIDEO"}]);I.context.request.mdxEnvironment=W.videoData.mdxEnvironment|| I.context.request.mdxEnvironment;W.videoData.mz&&(I.context.user.kidsParent={oauthToken:W.videoData.mz});g.sJ(W.K)&&(I.fairplayKeyId=g.IB(OUL(W.fairplayKeyId)));g.pp(W.Ru,g.m7(W.videoData)).then(function(n){aJH(J,I,K,n);W.status="rs"})}else W.error("drm.net",2,"t.r;ic.0")}; C30=function(W,J){if(!W.Iu())if(id(W,{onlcsrsp:1}),W.status="rr",J.statusCode!==0)W.error("drm.auth",1,"t.f;c."+J.statusCode,J.errorMessage||void 0);else{oC("drm_kr_s",void 0,W.videoData.PS);if(J.heartbeatParams&&J.heartbeatParams.url&&W.videoData.Y("outertube_streaming_data_always_use_staging_license_service")){var K=W.K.K.match(/(.*)youtube.com/g);K&&(J.heartbeatParams.url=K[0]+J.heartbeatParams.url)}J.heartbeatParams&&W.publish("newlicense",J.heartbeatParams);J.K&&(W.T=J.K,W.videoData.UL||W.publish("newlicense", new jVy),W.videoData.UL=!0,W.Z=ii(W.T,function(I){return I.includes("HDR")})); J.W&&(W.Ru.Y("html5_enable_vp9_fairplay")&&Yi(W.K)?(K=g.IB(OUL(W.fairplayKeyId),4),W.W[K]={type:J.W[K],status:"unknown"}):W.W=rv(J.W,function(I){return{type:I,status:"unknown"}})); vC(W.K)&&(J.message=$vy(g.IB(J.message)));W.G&&(id(W,{updtks:1}),W.status="ku",W.G.update(J.message).then(function(){oC("drm_kr_f",void 0,W.videoData.PS);J8(W)||(id(W,{ksApiUnsup:1}),W.publish("keystatuseschange",W))},function(I){I="msuf.req."+W.requestNumber+";msg."+g.qQ(I.message,3); W.error("drm.keyerror",1,I)})); g.sJ(W.K)&&W.publish("fairplay_next_need_key_info",W.baseUrl,J.nextFairplayKeyId);W.Ru.Y("html5_enable_vp9_fairplay")&&Yi(W.K)&&W.publish("qualitychange",G5L(W.T));J.sabrLicenseConstraint&&W.publish("sabrlicenseconstraint",J.sabrLicenseConstraint)}}; wlQ=function(W,J){var K=J.W.getValue();K=new g.P0(function(){MM0(W,J)},K); g.B(W,K);K.start();g.B4(J.W);id(W,{rtyrq:1})}; $wQ=function(W,J){for(var K=[],I=g.d(Object.keys(W.W)),q=I.next();!q.done;q=I.next())q=q.value,K.push(q+"_"+W.W[q].type+"_"+W.W[q].status);return K.join(J)}; xwc=function(W){var J={};J[W.status]=J8(W)?$wQ(W,"."):W.T.join(".");return J}; OlQ=function(W){switch(W.replace("HDR","").replace("720","")){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}}; Kb=function(W,J){for(var K in W.W)if(W.W[K].status==="usable"&&W.W[K].type===J)return!0;return!1}; TkH=function(W,J){for(var K in W.W)if(W.W[K].type===J)return W.W[K].status}; id=function(W,J){var K=K===void 0?!1:K;$m(J);(K||W.Ru.ND())&&W.publish("ctmp","drmlog",J)}; bTH=function(W){var J=W[0];W[0]=W[3];W[3]=J;J=W[1];W[1]=W[2];W[2]=J;J=W[4];W[4]=W[5];W[5]=J;J=W[6];W[6]=W[7];W[7]=J}; G5L=function(W){return g.ao(W,"UHD2")||g.ao(W,"UHD2HDR")?"highres":g.ao(W,"UHD1")||g.ao(W,"UHD1HDR")?"hd2160":g.ao(W,"HD")||g.ao(W,"HDHDR")?"hd1080":g.ao(W,"HD720")||g.ao(W,"HD720HDR")?"hd720":"large"}; QVL=function(W){for(var J="",K=0;K'.charCodeAt(I);W=W.G.createSession("video/mp4",J,K);return new IL(null,null,null,null,W)}; vDy=function(W,J){var K=W.S[J.sessionId];!K&&W.T&&(K=W.T,W.T=null,K.sessionId=J.sessionId,W.S[J.sessionId]=K);return K}; LtH=function(W,J){var K=W.subarray(4);K=new Uint16Array(K.buffer,K.byteOffset,K.byteLength/2);K=g.E(String.fromCharCode.apply(null,K).match(/ek=([0-9a-f]+)/))[1];for(var I="",q=0;q19.2999?(W=K.LS,K=K.qr,K>=W&&(K=W* .75),J=(W-K)*.5,K=new PB(J,W,W-J-K,this)):K=null;break a;case "widevine":K=new Wr(J,this,W);break a;default:K=null}if(this.j=K)g.B(this,this.j),this.j.subscribe("rotated_need_key_info_ready",this.BI,this),this.j.subscribe("log_qoe",this.l2,this);PC(this.Ru.experiments);this.l2({cks:this.W.getInfo()})}; sdT=function(W){var J=oDA(W.T);J?J.then(Ol(function(){P_T(W)}),Ol(function(K){if(!W.Iu()){g.Va(K); var I="t.a";K instanceof DOMException&&(I+=";n."+K.name+";m."+K.message);W.publish("licenseerror","drm.unavailable",1,I,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(W.l2({mdkrdy:1}),W.C=!0); W.PS&&(J=oDA(W.PS))}; WzA=function(W,J,K){W.Y3=!0;K=new fT(J,K);W.Ru.Y("html5_eme_loader_sync")&&(W.S.get(J)||W.S.set(J,K));XGQ(W,K)}; XGQ=function(W,J){if(!W.Iu()){W.l2({onInitData:1});if(W.Ru.Y("html5_eme_loader_sync")&&W.videoData.G&&W.videoData.G.W){var K=W.Z.get(J.initData);J=W.S.get(J.initData);if(!K||!J)return;J=K;K=J.initData;W.S.remove(K);W.Z.remove(K)}W.l2({initd:J.initData.length,ct:J.contentType});if(W.W.flavor==="widevine")if(W.vS&&!W.videoData.isLivePlayback)pb(W);else{if(!(W.Ru.Y("vp9_drm_live")&&W.videoData.isLivePlayback&&J.Pt)){W.vS=!0;K=J.cryptoPeriodIndex;var I=J.W;dDA(J);J.Pt||(I&&J.W!==I?W.publish("ctmp","cpsmm", {emsg:I,pssh:J.W}):K&&J.cryptoPeriodIndex!==K&&W.publish("ctmp","cpimm",{emsg:K,pssh:J.cryptoPeriodIndex}));W.publish("widevine_set_need_key_info",J)}}else W.BI(J)}}; P_T=function(W){if(!W.Iu())if(W.Ru.Y("html5_drm_set_server_cert")||Yi(W.W)){var J=W.T.setServerCertificate();J?J.then(Ol(function(K){W.Ru.ND()&&W.publish("ctmp","ssc",{success:K})}),Ol(function(K){W.publish("ctmp","ssce",{n:K.name, m:K.message})})).then(Ol(function(){ikH(W)})):ikH(W)}else ikH(W)}; ikH=function(W){W.Iu()||(W.C=!0,W.l2({onmdkrdy:1}),pb(W))}; J40=function(W){return W.W.flavor==="widevine"&&W.videoData.Y("html5_drm_cpi_license_key")}; pb=function(W){if(W.Y3&&W.C&&!W.XW){for(;W.G.length;){var J=W.G[0],K=J40(W)?yRy(J):g.IB(J.initData);if(Yi(W.W)&&!J.K)W.G.shift();else{if(W.K.get(K))if(W.W.flavor!=="fairplay"||Yi(W.W)){W.G.shift();continue}else W.K.delete(K);dDA(J);break}}W.G.length&&W.createSession(W.G[0])}}; Kzy=function(W){var J;if(J=g.ku()){var K;J=!((K=W.T.K)==null||!K.getMetrics)}J&&(J=W.T.getMetrics())&&(J=g.$4(J),W.publish("ctmp","drm",{metrics:J}))}; Ixc=function(){var W=T_y();return!(!W||W==="visible")}; SaQ=function(W){var J=qaQ();J&&document.addEventListener(J,W,!1)}; pBD=function(W){var J=qaQ();J&&document.removeEventListener(J,W,!1)}; qaQ=function(){if(document.visibilityState)var W="visibilitychange";else{if(!document[tJ+"VisibilityState"])return"";W=tJ+"visibilitychange"}return W}; lxQ=function(W){g.R.call(this);var J=this;this.uO=W;this.j6=0;this.S=this.K=this.j=!1;this.T=0;this.QK=this.uO.J();this.videoData=this.uO.getVideoData();this.G=g.FV(this.QK.experiments,"html5_delayed_retry_count");this.W=new g.P0(function(){J.uO.GY()},g.FV(this.QK.experiments,"html5_delayed_retry_delay_ms")); g.B(this,this.W)}; fxL=function(W,J,K){var I=W.videoData.K,q=W.videoData.T;S7(W.uO.getVideoData())&&W.QK.Y("html5_gapless_fallback_on_qoe_restart")&&n0D(W.uO,"pe");if((J==="progressive.net.retryexhausted"||J==="fmt.unplayable"||J==="fmt.decode")&&!W.uO.rq.j&&I&&I.itag==="22")return W.uO.rq.j=!0,W.Uk("qoe.restart",{reason:"fmt.unplayable.22"}),W.uO.T4(),!0;var S=!1;if(W.videoData.isExternallyHostedPodcast){if(S=W.videoData.PDN)K.mimeType=S.type,W.WS("3pp",{url:S.url});K.ns="3pp";W.uO.Za(J,1,"VIDEO_UNAVAILABLE",$m((new xm(J, K,1)).details));return!0}var p=W.j6+3E4<(0,g.L)()||W.W.isActive();if(W.QK.Y("html5_empty_src")&&W.videoData.isAd()&&J==="fmt.unplayable"&&/Empty src/.test(""+K.msg))return K.origin="emptysrc",W.Uk("auth",K),!0;p||nS0(W.uO.Ii())||(K.nonfg="paused",p=!0,W.uO.pauseVideo());(J==="fmt.decode"||J==="fmt.unplayable")&&(q==null?0:WF(q)||ir(q))&&(bFQ(W.QK.j,q.z8),K.acfallexp=q.z8,S=p=!0);!p&&W.G>0&&(W.W.start(),p=!0,K.delayed="1",--W.G);q=W.uO.loader;!p&&((I==null?0:X_(I))||(I==null?0:sS(I)))&&(bFQ(W.QK.j, I.z8),S=p=!0,K.cfallexp=I.z8);if(!p)return A4D(W,K);p=!1;W.j?W.j6=(0,g.L)():p=W.j=!0;var n=W.videoData;if(n.Js){n=n.Js.fC();var A=Date.now()/1E3+1800;n=n6048E5&&axQ(W,"signature");return!1}; axQ=function(W,J){try{window.location.reload(),W.Uk("qoe.restart",{detail:"pr."+J})}catch(K){}}; NYc=function(W,J){var K=W.QK.j;K.Z=!1;K.K=!0;W.Uk("qoe.restart",{e:J===void 0?"fmt.noneavailable":J,detail:"hdr"});W.uO.GY(!0)}; dzT=function(W,J,K,I,q,S){this.videoData=W;this.W=J;this.reason=K;this.K=I;this.token=q;this.videoId=S}; ld=function(W,J,K){this.Ru=W;this.Id=J;this.uO=K;this.N=this.S=this.W=this.T=this.Z=this.K=0;this.j=!1;this.C=g.FV(this.Ru.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.G=new Map}; UzD=function(W,J,K){!W.Ru.Y("html5_tv_ignore_capable_constraint")&&g.$w(W.Ru)&&(K=K.compose(y4c(W,J)));return K}; ZkA=function(W){if(W.uO.Ii().isInline())return k5;var J;W.Y("html5_exponential_memory_for_sticky")?J=w8(W.Ru.Bt,"sticky-lifetime")<.5?"auto":uS[sl()]:J=uS[sl()];return g.td("auto",J,!1,"s")}; CUc=function(W,J){var K,I=Q2T(W,(K=J.W)==null?void 0:K.videoInfos);K=W.uO.getPlaybackRate();return K>1&&I?(W=VK0(W.Ru.j,J.W.videoInfos,K),new hd(0,W,!0,"o")):new hd(0,0,!1,"o")}; Q2T=function(W,J){return J&&g.$w(W.Ru)?J.some(function(K){return K.video.fps>32}):!1}; wBD=function(W,J){if(W.Y("html5_disable_ustreamer_constraint_for_sabr")&&nK(J.videoData))return k5;var K=W.uO.zb();W.Y("html5_use_video_quality_cap_for_ustreamer_constraint")&&K&&K.Pu>0&&a_(J.videoData.Xt)&&(W=K.Pu,J.videoData.Xt=new hd(0,W,!1,"u"));return J.videoData.Xt}; y4c=function(W,J){if(g.$w(W.Ru)&&xA(W.Ru.j,Oq.HEIGHT))var K=J.W.videoInfos[0].video.qualityOrdinal;else{var I=W.Jd(!!J.W.W);pK(J.videoData)||kh(J.videoData);J=J.W.videoInfos;if(J.length){var q=g.FV(W.Ru.experiments,"html5_override_oversend_fraction")||.85,S=J[0].video;S.projectionType!=="MESH"&&S.projectionType!=="EQUIRECTANGULAR"&&S.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Hw||(q=.45);W=g.FV(W.Ru.experiments,"html5_viewport_undersend_maximum");for(S=0;S0&&(K=Math.min(K,I));if(I=g.FV(W.Ru.experiments,"html5_max_vertical_resolution")){W=4320;for(q=0;qI&&(W=Math.min(W,S.video.qualityOrdinal));if(W<4320){for(q=I=0;q32){q=!0;break a}}q=!1}q&&(K=Math.min(K,I));(I=g.FV(W.Ru.experiments,"html5_live_quality_cap"))&&J.videoData.isLivePlayback&&(K=Math.min(K,I));K=gSH(W,J,K);W=g.FV(W.Ru.experiments,"html5_byterate_soft_cap");return new hd(0,K===4320?0:K,!1,"d",W)}; $zc=function(W){var J,K,I,q;return g.V(function(S){switch(S.K){case 1:return W.W.W&&typeof((J=navigator.mediaCapabilities)==null?void 0:J.decodingInfo)==="function"?g.O(S,Promise.resolve(),2):S.return(Promise.resolve());case 2:K=g.d(W.W.videoInfos),I=K.next();case 3:if(I.done){S.VK(0);break}q=I.value;return g.O(S,yqy(q),4);case 4:I=K.next(),S.VK(3)}})}; OkQ=function(W,J){if(!J.videoData.K||W.Y("html5_disable_performance_downgrade"))return!1;Date.now()-W.Z>6E4&&(W.K=0);W.K++;W.Z=Date.now();if(W.K!==4)return!1;xz0(W,J.videoData.K);return!0}; Hky=function(W,J,K,I){if(!J||!K||!J.videoData.K)return!1;var q=g.FV(W.Ru.experiments,"html5_df_downgrade_thresh"),S=W.Y("html5_log_media_perf_info");if(!((0,g.L)()-W.T<5E3?0:S||q>0))return!1;var p=((0,g.L)()-W.T)/1E3;W.T=(0,g.L)();K=K.getVideoPlaybackQuality();if(!K)return!1;var n=K.droppedVideoFrames-W.S,A=K.totalVideoFrames-W.N;W.S=K.droppedVideoFrames;W.N=K.totalVideoFrames;var D=K.displayCompositedVideoFrames===0?0:K.displayCompositedVideoFrames||-1;S&&W.Ru.ND()&&W.uO.WS("ddf",{dr:K.droppedVideoFrames, de:K.totalVideoFrames,comp:D});if(I)return W.W=0,!1;if((A-n)/p>W.C||!q||g.$w(W.Ru))return!1;W.W=(A>60?n/A:0)>q?W.W+1:0;if(W.W!==3)return!1;xz0(W,J.videoData.K);W.uO.WS("dfd",Object.assign({dr:K.droppedVideoFrames,de:K.totalVideoFrames},TYT()));return!0}; xz0=function(W,J){var K=J.z8,I=J.video.fps,q=J.video.qualityOrdinal-1,S=W.G;J=""+K+(I>49?"p60":I>32?"p48":"");K=BC(K,I,S);q>0&&(K=Math.min(K,q));if(!nb.has(J)&&Xy().includes(J)){var p=K;K=P1();+K[J]>0&&(p=Math.min(+K[J],p));K[J]!==p&&(K[J]=p,g.Hd("yt-player-performance-cap",K,2592E3))}else if(nb.has(J)||S==null){a:{p=p===void 0?!0:p;I=Xy().slice();if(p){if(I.includes(J))break a;I.push(J)}else{if(!I.includes(J))break a;I.splice(I.indexOf(J),1)}g.Hd("yt-player-performance-cap-active-set",I,2592E3)}bz.set(J, K)}else nb.add(J),S==null||S.set(J,K);W.uO.SS()}; A8=function(W,J){if(!J.W.W)return W.j?new hd(0,360,!1,"b"):k5;for(var K=!1,I=!1,q=g.d(J.W.videoInfos),S=q.next();!S.done;S=q.next())X_(S.value)?K=!0:I=!0;K=K&&I;I=0;q=g.FV(W.Ru.experiments,"html5_performance_cap_floor");q=W.Ru.K?240:q;J=g.d(J.W.videoInfos);for(S=J.next();!S.done;S=J.next()){var p=S.value;if(!K||!X_(p))if(S=BC(p.z8,p.video.fps,W.G),p=p.video.qualityOrdinal,Math.max(S,q)>=p){I=p;break}}return new hd(0,I,!1,"b")}; VzX=function(W,J){var K=W.uO.Ii();return K.isInline()&&!J.MH?new hd(0,480,!1,"v"):nK(J)?k5:K.isBackground()&&gb()/1E3>60&&!g.$w(W.Ru)?new hd(0,360,!1,"v"):k5}; ESQ=function(W,J,K){if(W.Ru.experiments.HS("html5_disable_client_autonav_cap_for_onesie")&&J.fetchType==="onesie"||g.$w(W.Ru)&&(sl(-1)>=1080||J.osid))return k5;var I=g.FV(W.Ru.experiments,"html5_autonav_quality_cap"),q=g.FV(W.Ru.experiments,"html5_autonav_cap_idle_secs");return I&&J.isAutonav&&gb()/1E3>q?(K&&(I=gSH(W,K,I)),new hd(0,I,!1,"e")):k5}; gSH=function(W,J,K){if(W.Y("html5_optimality_defaults_chooses_next_higher")&&K)for(W=J.W.videoInfos,J=1;J=0||(W.provider.uO.getVisibilityState()===3?W.j=!0:(W.W=g.YS(W.provider),W.delay.start()))}; bkT=function(W){if(!(W.K<0)){var J=g.YS(W.provider),K=J-W.T;W.T=J;W.playerState.state===8?W.playTimeSecs+=K:W.playerState.isBuffering()&&!g.z(W.playerState,16)&&(W.rebufferTimeSecs+=K)}}; BYI=function(W){var J;switch((J=W.Ru.playerCanaryStage)==null?void 0:J.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"}}; mzA=function(W){return window.PressureObserver&&new window.PressureObserver(W)}; r4c=function(W){W=W===void 0?mzA:W;g.R.call(this);var J=this;try{this.G=W(function(I){J.K=I.at(-1)}); var K;this.T=(K=this.G)==null?void 0:K.observe("cpu",{sampleInterval:2E3}).catch(function(I){I instanceof DOMException&&(J.W=I)})}catch(I){I instanceof DOMException&&(this.W=I)}}; oSL=function(W){var J={},K=window.h5vcc;J.hwConcurrency=navigator.hardwareConcurrency;W.W&&(J.cpe=W.W.message);W.K&&(J.cpt=W.K.time,J.cps=W.K.state);if(K==null?0:K.cVal)J.cb2s=K.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),J.cb5s=K.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),J.cb30s=K.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return J}; LzI=function(W){var J;g.V(function(K){switch(K.K){case 1:return g.yQ(K,2),g.O(K,W.T,4);case 4:g.Cv(K,3);break;case 2:g.g0(K);case 3:(J=W.G)==null||J.disconnect(),g.d0(K)}})}; zZQ=function(W,J){J?kET.test(W):(W=g.qU(W),Object.keys(W).includes("cpn"))}; YaQ=function(W,J,K,I,q,S,p){var n={format:"RAW"},A={};if(lX(W)&&nz()){if(p){var D;((D=vSv.uaChPolyfill)==null?void 0:D.state.type)!==2?p=null:(p=vSv.uaChPolyfill.state.data.values,p={"Synth-Sec-CH-UA-Arch":p.architecture,"Synth-Sec-CH-UA-Model":p.model,"Synth-Sec-CH-UA-Platform":p.platform,"Synth-Sec-CH-UA-Platform-Version":p.platformVersion,"Synth-Sec-CH-UA-Full-Version":p.uaFullVersion});A=Object.assign(A,p);n.withCredentials=!0}(p=g.Yf("EOM_VISITOR_DATA"))?A["X-Goog-EOM-Visitor-Id"]=p:I?A["X-Goog-Visitor-Id"]= I:g.Yf("VISITOR_DATA")&&(A["X-Goog-Visitor-Id"]=g.Yf("VISITOR_DATA"));K&&(A["X-Goog-PageId"]=K);(I=J.G8)&&!W8(J)&&(A["X-Goog-AuthUser"]=I);q&&(A.Authorization="Bearer "+q);J.Y("enable_datasync_id_header_in_web_vss_pings")&&J.Jl&&J.datasyncId&&(A["X-YouTube-DataSync-Id"]=J.datasyncId);p||A["X-Goog-Visitor-Id"]||q||K||I?n.withCredentials=!0:J.Y("html5_send_cpn_with_options")&&kET.test(W)&&(n.withCredentials=!0)}Object.keys(A).length>0&&(n.headers=A);S&&(n.onFinish=S);return Object.keys(n).length>1? n:null}; s2H=function(W,J,K,I,q,S,p,n){nz()&&K.token&&(W=SC(W,{ctt:K.token,cttype:K.mI,mdx_environment:K.mdxEnvironment}));I.Y("net_pings_low_priority")&&(J||(J={}),J.priority="low");S||n&&I.Y("nwl_skip_retry")?(J==null?J={}:zZQ(W,I.Y("html5_assert_cpn_with_regex")),p?P2().sendAndWrite(W,J):P2().sendThenWrite(W,J,n)):J?(zZQ(W,I.Y("html5_assert_cpn_with_regex")),Jh0(W,J)):g.mf(W,q)}; c4Q=function(W){for(var J=[],K=0;K0&&K>0&&!W.K&&W.G<1E7)try{W.T=W.j({sampleInterval:J,maxBufferSize:K});var I;(I=W.T)==null||I.addEventListener("samplebufferfull",function(){return g.V(function(q){if(q.K==1)return g.O(q,W.stop(),2);WPy(W);g.d0(q)})})}catch(q){W.K=XBH(q.message)}}; fb=function(W,J){var K,I;return!!((K=window.h5vcc)==null?0:(I=K.settings)==null?0:I.set(W,J))}; J8Q=function(){var W,J,K,I=(W=window.h5vcc)==null?void 0:(J=W.settings)==null?void 0:(K=J.getPersistentSettingAsString)==null?void 0:K.call(J,"cpu_usage_tracker_intervals");if(I!=null){var q;W=(q=JSON.parse(I))!=null?q:[];q=W.filter(function(D){return D.type==="total"}).map(function(D){return D.seconds}); J=g.d(ibQ);for(K=J.next();!K.done;K=J.next())K=K.value,q.indexOf(K)===-1&&W.push({type:"total",seconds:K});var S,p;(S=window.h5vcc)==null||(p=S.settings)==null||p.set("cpu_usage_tracker_intervals_enabled",1);var n,A;(n=window.h5vcc)==null||(A=n.settings)==null||A.set("cpu_usage_tracker_intervals",JSON.stringify(W))}}; KPH=function(){var W=window.H5vccPlatformService,J="";if(W&&W.has("dev.cobalt.coat.clientloginfo")&&(W=W.open("dev.cobalt.coat.clientloginfo",function(){}))){var K=W.send(new ArrayBuffer(0)); K&&(J=String.fromCharCode.apply(String,g.w(new Uint8Array(K))));W.close()}return J}; g.FE=function(W,J){g.R.call(this);var K=this;this.provider=W;this.logger=new g.p4("qoe");this.W=new Map;this.sequenceNumber=1;this.S=NaN;this.IB="N";this.C=this.F9=this.H2=this.G8=this.K=0;this.bb=this.Y3=this.Z=this.D0="";this.iU=this.OI=NaN;this.fE=0;this.mz=-1;this.nk=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Tx=this.isEmbargoed=this.jZ=this.isOffline=this.isBuffering=!1;this.Lk=[];this.PS=null;this.sT=this.T=this.P7=this.N=!1;this.G=-1;this.bO=!1;this.kK=new g.P0(this.wS,750,this);this.Vz= this.adCpn=this.sI=this.contentCpn="";this.adFormat=void 0;this.Ym=0;this.eZ=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.yr=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.SI=!1;this.Fz=NaN;this.SZ=0;this.qD=!1;this.vS=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.oG=!1;this.G$={y5:function(q){K.y5(q)}, pZI:function(){return K.j}, Tr:function(){return K.contentCpn}, xqs:function(){return K.sI}, reportStats:function(){K.reportStats()}, M98:function(){return K.W.get("cat")||[]}, lS:function(q){return K.W.get(q)||[]}, Vu8:function(){return K.W}, cAZ:function(){return K.vS}, KBg:function(){return{adCpn:K.adCpn,Vz:K.Vz,adFormat:K.adFormat}}}; this.XW=this.provider.Ru.Y("html5_qoe_relaxed_reporting");var I=g.FV(this.provider.Ru.experiments,"html5_qoe_proto_mock_length");I&&!h8.length&&(h8=c4Q(I));g.B(this,this.kK);try{navigator.getBattery().then(function(q){K.PS=q})}catch(q){}g.t8(this,0,"vps",["N"]); W.Ru.ND()&&(this.SZ=(0,g.L)(),this.Fz=g.av(function(){var q=(0,g.L)(),S=q-K.SZ;S>500&&K.WS("vmlock",{diff:S.toFixed()});K.SZ=q},250)); W.uO.La()&&J&&(this.vS=J-Math.round(g.YS(W)*1E3));this.provider.videoData.Cw&&(this.remoteControlMode=IlQ[this.provider.videoData.Cw]||0);this.provider.videoData.yT&&(J=PQ0(this.provider.videoData.yT),J==null?0:J.length)&&(this.remoteConnectedDevices=J);if(W.Ru.ND()||W.Y("html5_log_cpu_info"))this.Js=new r4c,g.B(this,this.Js);J=g.FV(W.Ru.experiments,"html5_js_self_profiler_sample_interval_ms");W=g.FV(W.Ru.experiments,"html5_js_self_profiler_max_samples");J>0&&W>0&&(this.FW=new jk(J,W),g.B(this,this.FW))}; aL=function(W,J,K){var I=W.W.get(J);I?I.push(K):W.W.set(J,[K])}; g.t8=function(W,J,K,I){aL(W,K,J.toFixed(3)+":"+I.join(":"))}; qby=function(W,J){var K=W.adCpn||W.provider.videoData.clientPlaybackNonce,I=W.provider.getCurrentTime(K);g.t8(W,J,"cmt",[I.toFixed(3)]);I=W.provider.ac(K);if(W.j&&I*1E3>W.j.Oh+100&&W.j){var q=W.j;K=q.isAd;I=I*1E3-q.Oh;W.f1=J*1E3-q.MFO-I-q.CNO;q=(0,g.L)()-I;J=W.f1;I=W.provider.videoData;var S=I.isAd();if(K||S){S=(K?"ad":"video")+"_to_"+(S?"ad":"video");var p={};I.S&&(p.cttAuthInfo={token:I.S,videoId:I.videoId});p.startTime=q-J;kM(S,p);g.Lc({targetVideoId:I.videoId,targetCpn:I.clientPlaybackNonce}, S);oC("pbs",q,S)}else q=W.provider.uO.VN(),q.S!==I.clientPlaybackNonce?(q.j=I.clientPlaybackNonce,q.K=J):I.bD()||g.ET(new g.vd("CSI timing logged before gllat",{cpn:I.clientPlaybackNonce}));W.WS("gllat",{l:W.f1.toFixed(),prev_ad:+K});delete W.j}}; ud=function(W,J){J=J===void 0?NaN:J;J=J>=0?J:g.YS(W.provider);var K=W.provider.uO.HO(),I=K.zq-(W.OI||0);I>0&&g.t8(W,J,"bwm",[I,(K.Mr-(W.iU||0)).toFixed(3)]);isNaN(W.OI)&&K.zq&&W.isOffline&&W.y5(!1);W.OI=K.zq;W.iU=K.Mr;isNaN(K.bandwidthEstimate)||g.t8(W,J,"bwe",[K.bandwidthEstimate.toFixed(0)]);W.provider.Ru.ND()&&Object.keys(K.W).length!==0&&W.WS("bwinfo",K.W);if(W.provider.Ru.ND()||W.provider.Ru.Y("html5_log_meminfo"))I=uKT(W.provider.Ru.Y("html5_enable_chrobalt_memory_apis")),Object.values(I).some(function(S){return S!== void 0})&&W.WS("meminfo",I); if(W.provider.Ru.ND()||W.provider.Ru.Y("html5_log_cpu_info")){var q;(I=(q=W.Js)==null?void 0:oSL(q))&&Object.values(I).some(function(S){return S!=null})&&W.WS("cpuinfo",I)}W.FW&&W.WS("jsprof",W.FW.flush()); W.PS&&g.t8(W,J,"bat",[W.PS.level,W.PS.charging?"1":"0"]);q=W.provider.uO.getVisibilityState();W.mz!==q&&(g.t8(W,J,"vis",[q]),W.mz=q);qby(W,J);(q=Sby(W.provider))&&q!==W.fE&&(g.t8(W,J,"conn",[q]),W.fE=q);prQ(W,J,K)}; prQ=function(W,J,K){if(!isNaN(K.Xn)){var I=K.Xn;K.K96E3&&(new g.P0(W.reportStats,0,W)).start()}}; A8Q=function(W){W.provider.videoData.GJ&&NA(W,"prefetch");W.provider.videoData.Fz&&W.WS("reload",{r:W.provider.videoData.reloadReason,ct:W.provider.videoData.Fz});W.provider.videoData.P7&&NA(W,"monitor");W.provider.videoData.isLivePlayback&&NA(W,"live");IP&&NA(W,"streaming");W.provider.videoData.Cw&&W.WS("ctrl",{mode:W.provider.videoData.Cw},!0);if(W.provider.videoData.yT){var J=W.provider.videoData.yT.replace(/,/g,"_");W.WS("ytp",{type:J},!0)}W.provider.videoData.GE&&(J=W.provider.videoData.GE.replace(/,/g, "."),W.WS("ytrexp",{ids:J},!0));var K=W.provider.videoData;J=W.provider.Ru.Y("enable_white_noise")||W.provider.Ru.Y("enable_webgl_noop");K=g.uE(K)||g.xh(K)||g.Ok(K)||g.Tg(K);(J||K)&&(J=(0,g.dw)())&&W.W.set("gpu",[J]);kh(W.provider.videoData)&&g.t8(W,g.YS(W.provider),"dt",["1"]);W.provider.Ru.ND()&&(J=(0,g.L)()-W.provider.Ru.wB,W.WS("playerage",{secs:Math.pow(1.6,Math.round(Math.log(J/1E3)/Math.log(1.6))).toFixed()}));W.T=!0;W.S=g.av(function(){W.reportStats()},1E4)}; jLQ=function(W,J,K){var I=g.YS(W.provider);DAy(W,I,J,0,K);ud(W,I);nNc(W)}; DAy=function(W,J,K,I,q){var S=W.provider.Ru.W.cbrver;W.provider.Ru.W.cbr==="Chrome"&&/^96[.]/.test(S)&&K==="net.badstatus"&&/rc\.500/.test(q)&&flQ(W,3);W.provider.Ru.Y("html5_use_ump")&&/b248180278/.test(q)&&flQ(W,4);S=W.provider.getCurrentTime(W.adCpn||W.provider.videoData.clientPlaybackNonce);I=I===1?"fatal":"";K=[K,I,S.toFixed(3)];I&&(q+=";a6s."+f2());q&&K.push(hTX(q));g.t8(W,J,"error",K);W.T=!0}; JYA=function(W,J){var K=g.YS(W.provider);if(!W.provider.Ru.experiments.HS("html5_refactor_sabr_video_format_selection_logging")||J.W.id!==W.D0){var I=[J.W.id,J.K,W.D0,J.reason];J.token&&I.push(J.token);g.t8(W,K,"vfs",I);W.D0=J.W.id;I=W.provider.uO.getPlayerSize();if(I.width>0&&I.height>0){I=[Math.round(I.width),Math.round(I.height)];var q=g.Pw();q>1&&I.push(q);g.t8(W,K,"view",I)}W.P7||(W.provider.Ru.ND()&&NA(W,"rqs2"),W.provider.videoData.W&&ZT(W.provider.videoData.W)&&W.W.set("preload",["1"]));W.P7= !0;W.T=!0}J.reason==="m"&&++W.Ym===100&&flQ(W,2);g.t8(W,K,"vps",[W.IB]);W.XW||W.reportStats(K)}; tky=function(W){W.G>=0||(W.provider.Ru.Os||W.provider.uO.getVisibilityState()!==3?W.G=g.YS(W.provider):W.bO=!0)}; FPH=function(W,J,K,I){if(K!==W.IB){W.XW||J=10&&W.playTimeSecs<=180&&(W.W.set("qoealert",["1"]),W.Tx=!0)),K!=="B"||W.IB!=="PL"&&W.IB!=="PB"||(W.isBuffering=!0),W.K=J);W.IB==="PL"&&(K==="B"||K==="S")||W.provider.Ru.ND()?ud(W,J):(W.SI||K!=="PL"||(W.SI=!0,prQ(W,J,W.provider.uO.HO())),qby(W,J));K==="PL"&&g.XY(W.kK);var q=[K];K==="S"&&I&&q.push("ss."+I);g.t8(W,J,"vps", q);W.IB=K;W.G8=J;W.K=J;W.T=!0}}; ilT=function(W,J,K){if(W.provider.Ru.experiments.HS("html5_refactor_sabr_audio_format_selection_logging")){J=K.W;var I=[J.audio&&J.video?J.wP?J.wP:"":J.id];J.pE&&J.pE.id&&I.push(J.pE.id);J=I.join(";");J!==W.Z&&(I=[J,W.Z,K.reason],K.token&&I.push(K.token),g.t8(W,g.YS(W.provider),"afs",I),W.Z=J)}else K.W.id!==W.Z&&(I=[K.W.id,W.Z,K.reason],K.token&&I.push(K.token),g.t8(W,J,"afs",I),W.Z=K.W.id)}; NA=function(W,J){aL(W,"cat",J)}; yU=function(W,J,K,I,q,S){var p=g.YS(W.provider);K!==1&&K!==3&&K!==5||g.t8(W,p,"vps",[W.IB]);aL(W,"xvt","t."+p.toFixed(3)+";m."+S.toFixed(3)+";g."+J+";tt."+K+";np.0;c."+I+";d."+q)}; flQ=function(W,J){W.sT||(aL(W,"fcnz",""+J),W.sT=!0)}; hTX=function(W){/[^a-zA-Z0-9;.!_-]/.test(W)&&(W=W.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return W}; Zl=function(W){this.provider=W;this.Z=!1;this.W=0;this.T=-1;this.aM=NaN;this.G=0;this.segments=[];this.S=this.j=0;this.previouslyEnded=!1;this.C=this.provider.uO.getVolume();this.N=this.provider.uO.isMuted()?1:0;this.K=Ub(this.provider)}; QU=function(W){W.K.startTime=W.G;W.K.endTime=W.W;var J=!1;W.segments.length&&g.jl(W.segments).isEmpty()?(W.segments[W.segments.length-1].previouslyEnded&&(W.K.previouslyEnded=!0),W.segments[W.segments.length-1]=W.K,J=!0):W.segments.length&&W.K.isEmpty()||(W.segments.push(W.K),J=!0);J?W.K.endTime===0&&(W.previouslyEnded=!1):W.K.previouslyEnded&&(W.previouslyEnded=!0);W.j+=W.W-W.G;W.K=Ub(W.provider);W.K.previouslyEnded=W.previouslyEnded;W.previouslyEnded=!1;W.G=W.W}; uEH=function(W){alD(W);W.S=g.av(function(){W.update()},100); W.aM=g.YS(W.provider);W.K=Ub(W.provider)}; alD=function(W){g.NU(W.S);W.S=NaN}; NwQ=function(W,J,K){K-=W.aM;return J===W.W&&K>.5}; dAL=function(W,J,K,I){this.Ru=J;this.Fz=K;this.segments=[];this.experimentIds=[];this.FW=this.oG=this.isFinal=this.delayThresholdMet=this.SI=this.nk=this.autoplay=this.autonav=!1;this.bb="yt";this.S=[];this.Z=this.C=null;this.sendVisitorIdHeader=this.bO=!1;this.N=this.pageId="";this.j=K==="watchtime";this.G=K==="playback";this.XW=K==="atr";this.Bt=K==="engage";this.sendVisitorIdHeader=!1;this.uri=this.XW?"/api/stats/"+K:"//"+J.Wg+"/api/stats/"+K;I&&(this.oG=I.fs,I.rtn&&(this.Z=I.rtn),this.j?(this.playerState= I.state,I.rti>0&&(this.C=I.rti)):(this.Os=I.mos,this.Nu=I.volume,I.at&&(this.adType=I.at)),I.autonav&&(this.autonav=I.autonav),I.inview!=null&&(this.iU=I.inview),I.size&&(this.fE=I.size),I.playerwidth&&(this.playerWidth=I.playerwidth),I.playerheight&&(this.playerHeight=I.playerheight));this.yr=g.ih(J.W);this.N=q8(J.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.N==="all"||this.N==="once")this.qD=g.ih(J.SI);this.dB=J.bb;this.experimentIds=xe0(J.experiments);this.D0=J.Lk;this.bb=J.PS;this.region= J.region;this.userAge=J.userAge;this.eZ=J.uD;this.kK=gb();this.sendVisitorIdHeader=J.sendVisitorIdHeader;this.vS=J.Y("vss_pings_using_networkless")||J.Y("kevlar_woffle");this.hh=J.Y("vss_final_ping_send_and_write");this.jZ=J.Y("vss_use_send_and_write");this.pageId=J.pageId;this.wB=J.Y("vss_playback_use_send_and_write");J.livingRoomAppMode&&(this.livingRoomAppMode=J.livingRoomAppMode);this.X0=J.T&&J.Y("embeds_append_synth_ch_headers");g.xK(J)&&(this.Y3=J.XW);g.DR(g.Bw(J))&&this.S.push(1);this.accessToken= g.m7(W);W.Wg[this.Fz]?this.T=W.Wg[this.Fz]:W.Wg.playback&&(this.T=W.Wg.playback);this.adFormat=W.adFormat;this.adQueryId=W.adQueryId;this.autoplay=hNv(W);this.G&&(this.nk=W.zW&&e7(W)==="adunit"?!0:!1);this.autonav=W.isAutonav||this.autonav;this.contentVideoId=bE(W);this.clientPlaybackNonce=W.clientPlaybackNonce;this.SI=W.pP;W.S&&(this.sI=W.S,this.sT=W.L_);W.mdxEnvironment&&(this.mdxEnvironment=W.mdxEnvironment);this.W=W.OI;this.Tx=W.Tx;W.K&&(this.Lk=W.K.itag,W.T&&W.T.itag!==this.Lk&&(this.P7=W.T.itag)); W.W&&ZT(W.W)&&(this.offlineDownloadUserChoice="1");this.eventLabel=e7(W);this.FW=W.Da?!1:W.gm;this.Ym=W.bH;if(J=ZP(W))this.Da=J;this.lN=W.Jb;this.partnerId=W.partnerId;this.eventId=W.eventId;this.playlistId=W.hF||W.playlistId;this.KX=W.KX;this.Cw=W.Cw;this.yT=W.yT;this.HT=W.HT;this.subscribed=W.subscribed;this.videoId=W.videoId;this.videoMetadata=W.videoMetadata;this.visitorData=W.visitorData;this.osid=W.osid;this.ze=W.ze;this.referrer=W.referrer;this.BT=W.gY||W.BT;this.Js=W.Uy;this.hm=W.hm;this.userGenderAge= W.userGenderAge;this.ip=W.ip;this.embedsRct=W.embedsRct;this.embedsRctn=W.embedsRctn;g.xK(this.Ru)&&W.mutedAutoplay&&(W.mutedAutoplayDurationMode===2&&W.limitedPlaybackDurationInSeconds===0&&W.endSeconds===0?this.S.push(7):this.S.push(2));W.isEmbedsShortsMode(new g.Vt(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.S.push(3);g.qw(W)&&this.S.push(4);this.OI=W.Iv;W.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=W.compositeLiveIngestionOffsetToken)}; y8H=function(W,J){var K=W.sendVisitorIdHeader?W.visitorData:void 0;return g.pp(W.Ru,W.accessToken).then(function(I){return YaQ(W.uri,W.Ru,W.pageId,K,I,J,W.X0)})}; QLT=function(W,J){return function(){W.Ru.Y("html5_simplify_pings")?(W.W=W.SZ,W.mz=J(),W.kK=0,W.send()):y8H(W).then(function(K){var I=UAL(W);I.cmt=I.len;I.lact="0";var q=J().toFixed(3);I.rt=Number(q).toString();I=g.Vw(W.uri,I);W.Ru.Y("vss_through_gel_double")&&ZbL(I);W.vS?(K==null&&(K={}),W.jZ?P2().sendAndWrite(I,K):P2().sendThenWrite(I,K)):K?g.wq(I,K):g.mf(I)})}}; UAL=function(W){var J={ns:W.bb,el:W.eventLabel,cpn:W.clientPlaybackNonce,ver:2,cmt:W.K(W.W),fmt:W.Lk,fs:W.oG?"1":"0",rt:W.K(W.mz),adformat:W.adFormat,content_v:W.contentVideoId,euri:W.dB,lact:W.kK,live:W.Da,cl:(752536569).toString(),mos:W.Os,state:W.playerState,volume:W.Nu};W.subscribed&&(J.subscribed="1");Object.assign(J,W.yr);W.N==="all"?Object.assign(J,W.qD):W.N==="once"&&W.G&&Object.assign(J,W.qD);W.autoplay&&(J.autoplay="1");W.nk&&(J.sautoplay="1");W.SI&&(J.dni="1");!W.j&&W.Y3&&(J.epm=CdQ[W.Y3]); W.isFinal&&(J["final"]="1");W.FW&&(J.splay="1");W.Tx&&(J.delay=W.Tx);W.D0&&(J.hl=W.D0);W.region&&(J.cr=W.region);W.userGenderAge&&(J.uga=W.userGenderAge);W.userAge!==void 0&&W.eZ&&(J.uga=W.eZ+W.userAge);W.SZ!==void 0&&(J.len=W.K(W.SZ));!W.j&&W.experimentIds.length>0&&(J.fexp=W.experimentIds.toString());W.Z!==null&&(J.rtn=W.K(W.Z));W.BT&&(J.feature=W.BT);W.Cw&&(J.ctrl=W.Cw);W.yT&&(J.ytr=W.yT);W.P7&&(J.afmt=W.P7);W.offlineDownloadUserChoice&&(J.ODUC=W.offlineDownloadUserChoice);W.PS&&(J.lio=W.K(W.PS)); W.j?(J.idpj=W.Ym,J.ldpj=W.lN,W.delayThresholdMet&&(J.dtm="1"),W.C!=null&&(J.rti=W.K(W.C)),W.ip&&(J.ald=W.ip),W.compositeLiveIngestionOffsetToken&&(J.clio=W.compositeLiveIngestionOffsetToken)):W.adType!==void 0&&(J.at=W.adType);W.fE&&(W.G||W.j)&&(J.size=W.fE);W.G&&W.S.length&&(J.pbstyle=W.S.join(","));W.iU!=null&&(W.G||W.j)&&(J.inview=W.K(W.iU));W.j&&(J.volume=Cb(W,g.zC(W.segments,function(I){return I.volume})),J.st=Cb(W,g.zC(W.segments,function(I){return I.startTime})),J.et=Cb(W,g.zC(W.segments,function(I){return I.endTime})), ii(W.segments,function(I){return I.playbackRate!==1})&&(J.rate=Cb(W,g.zC(W.segments,function(I){return I.playbackRate}))),ii(W.segments,function(I){return I.W!=="-"})&&(J.als=g.zC(W.segments,function(I){return I.W}).join(",")),ii(W.segments,function(I){return I.previouslyEnded})&&(J.pe=g.zC(W.segments,function(I){return""+ +I.previouslyEnded}).join(","))); J.muted=Cb(W,g.zC(W.segments,function(I){return I.muted?1:0})); ii(W.segments,function(I){return I.visibilityState!==0})&&(J.vis=Cb(W,g.zC(W.segments,function(I){return I.visibilityState}))); ii(W.segments,function(I){return I.connectionType!==0})&&(J.conn=Cb(W,g.zC(W.segments,function(I){return I.connectionType}))); ii(W.segments,function(I){return I.K!==0})&&(J.blo=Cb(W,g.zC(W.segments,function(I){return I.K}))); ii(W.segments,function(I){return!!I.G})&&(J.blo=g.zC(W.segments,function(I){return I.G}).join(",")); ii(W.segments,function(I){return!!I.compositeLiveStatusToken})&&(J.cbs=g.zC(W.segments,function(I){return I.compositeLiveStatusToken}).join(",")); ii(W.segments,function(I){return I.T!=="-"})&&(J.cc=g.zC(W.segments,function(I){return I.T}).join(",")); ii(W.segments,function(I){return I.clipId!=="-"})&&(J.clipid=g.zC(W.segments,function(I){return I.clipId}).join(",")); if(ii(W.segments,function(I){return!!I.audioId})){var K="au"; W.G&&(K="au_d");J[K]=g.zC(W.segments,function(I){return I.audioId}).join(",")}nz()&&W.sI&&(J.ctt=W.sI,J.cttype=W.sT,J.mdx_environment=W.mdxEnvironment); W.Bt&&(J.etype=W.G8!==void 0?W.G8:0);W.Js&&(J.uoo=W.Js);W.livingRoomAppMode&&W.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(J.clram=wrX[W.livingRoomAppMode]||W.livingRoomAppMode);W.T?MkQ(W,J):(J.docid=W.videoId,J.referrer=W.referrer,J.ei=W.eventId,J.of=W.ze,J.osid=W.osid,J.vm=W.videoMetadata,W.adQueryId&&(J.aqi=W.adQueryId),W.autonav&&(J.autonav="1"),W.playlistId&&(J.list=W.playlistId),W.HT&&(J.ssrt="1"),W.hm&&(J.upt=W.hm));W.G&&(W.embedsRct&&(J.rct=W.embedsRct),W.embedsRctn&&(J.rctn= W.embedsRctn),W.compositeLiveIngestionOffsetToken&&(J.clio=W.compositeLiveIngestionOffsetToken));W.OI&&(J.host_cpn=W.OI);return J}; MkQ=function(W,J){if(J&&W.T){var K=new Set(["q","feature","mos"]),I=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),q=new Set(["aqi","autonav","list","ssrt","upt"]);W.T.ns==="3pp"&&(J.ns="3pp");for(var S=g.d(Object.keys(W.T)),p=S.next();!p.done;p=S.next())p=p.value,I.has(p)||K.has(p)||q.has(p)&&!W.T[p]||(J[p]=W.T[p])}}; Cb=function(W,J){return g.zC(J,W.K).join(",")}; ZbL=function(W){W.indexOf("watchtime")!==-1&&g.AF("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:W}})}; gN0=function(W,J){W.attestationResponse&&y8H(W).then(function(K){K=K||{};K.method="POST";K.postParams={atr:W.attestationResponse};W.vS?W.jZ?P2().sendAndWrite(J,K):P2().sendThenWrite(J,K):g.wq(J,K)})}; ww=function(W){g.R.call(this);this.provider=W;this.S="paused";this.j=NaN;this.Z=[10,10,10,40];this.C=this.N=0;this.sI=this.XW=this.G8=this.PS=this.G=!1;this.K=this.T=NaN;this.logger=new g.p4("vss");this.W=new Zl(W)}; TwI=function(W){if(!W.G){W.provider.videoData.zT===16623&&g.ET(Error("Playback for EmbedPage"));var J=MA(W,"playback");W.Z=Gry(W);uEH(W.W);J.Z=gw(W);W.K>0&&(J.W-=W.K);J.send();if(W.provider.videoData.RR){J=W.provider.Ru;var K=W.provider.videoData,I={html5:"1",video_id:K.videoId,cpn:K.clientPlaybackNonce,ei:K.eventId,ptk:K.RR,oid:K.Ty,ptchn:K.Q7,pltype:K.a4,content_v:bE(K)};K.nS&&Object.assign(I,{m:K.nS});J=g.Vw(J.I7+"ptracking",I);$Av(W,J)}W.provider.videoData.Tx||(xAT(W),Oby(W),W.qg());W.G=!0;W= W.W;W.W=W.ac();W.aM=g.YS(W.provider);!(W.G===0&&W.W<5)&&W.W-W.G>2&&(W.G=W.W);W.Z=!0}}; Gry=function(W){var J=W.provider.videoData.bH,K=W.provider.videoData.Jb,I=[10+J,10,10,40+K-J,40],q,S=(q=W.provider.videoData.getPlayerResponse())==null?void 0:q.playbackTracking,p=S==null?void 0:S.videostatsScheduledFlushWalltimeSeconds;q=S==null?void 0:S.videostatsDefaultFlushIntervalSeconds;if(!(p&&p.length>0&&q))return W.logger.info("Missing valid scheduled pings config "+p+" "+q),I;J=[p[0]+J].concat(g.w(p.slice(1).map(function(n,A){return n-p[A]})),[q+K-J, q]);return J.some(function(n){return n<0})?(W.logger.W(347111855,"Neg vss scheduled pings "+p+" "+q),I):J}; gw=function(W,J){J=J===void 0?NaN:J;var K=g.YS(W.provider);J=isNaN(J)?K:J;J=Math.ceil(J);var I=W.Z[W.N];W.N+11E3;!(S.length>1)&&S[0].isEmpty()||n||(p.Z=gw(W,q));p.send();W.C++}},(q-K)*1E3); return W.T=q}; Gr=function(W){g.uX(W.j);W.j=NaN}; HbX=function(W){W.W.update();W=W.W;W.segments.length&&W.W===W.G||QU(W);var J=W.segments;W.segments=[];return J}; MA=function(W,J){var K=END(W.provider);Object.assign(K,{state:W.S});J=new dAL(W.provider.videoData,W.provider.Ru,J,K);J.W=W.provider.uO.ac();K=W.provider.videoData.clientPlaybackNonce;J.W=W.provider.uO.WK(K);W.provider.videoData.isLivePlayback||(J.SZ=W.provider.uO.getDuration(K));W.provider.videoData.W&&(K=W.provider.videoData.W.OA(J.W))&&(J.PS=K-J.W,W.provider.Ru.Y("html5_disable_live_dvr_shrink_for_cdm_vss")&&rP(W.provider.videoData)&&(J.W+=W.provider.uO.nE(),J.PS-=W.provider.uO.nE()));J.mz=g.YS(W.provider); J.segments=[Ub(W.provider)];return J}; VkH=function(W,J){var K=MA(W,"watchtime");eTL(W)&&(K.delayThresholdMet=!0,W.G8=!0);if(W.K>0){for(var I=g.d(J),q=I.next();!q.done;q=I.next())q=q.value,q.startTime-=W.K,q.endTime-=W.K;K.W-=W.K}else K.W=W.W.KN();K.segments=J;return K}; $N=function(W,J){var K=RTL(W,!isNaN(W.T));J&&(W.T=NaN);return K}; RTL=function(W,J){var K=VkH(W,HbX(W));!isNaN(W.T)&&J&&(K.C=W.T);return K}; eTL=function(W){var J;if(J=W.provider.videoData.isLoaded()&&W.provider.videoData.Tx&&W.G&&!W.G8)J=W.W,J=J.j+J.ac()-J.G>=W.provider.videoData.Tx;return!!J}; xAT=function(W){W.provider.videoData.youtubeRemarketingUrl&&!W.XW&&($Av(W,W.provider.videoData.youtubeRemarketingUrl),W.XW=!0)}; Oby=function(W){W.provider.videoData.googleRemarketingUrl&&!W.sI&&($Av(W,W.provider.videoData.googleRemarketingUrl),W.sI=!0)}; bbH=function(W){if(!W.Iu()&&W.G){W.S="paused";var J=$N(W);J.isFinal=!0;J.send();W.dispose()}}; Bwy=function(W,J){if(!W.Iu())if(g.z(J.state,2)||g.z(J.state,512)){if(W.S="paused",g.uT(J,2)||g.uT(J,512))g.uT(J,2)&&(W.W.previouslyEnded=!0),W.G&&(Gr(W),$N(W).send(),W.T=NaN)}else if(g.z(J.state,8)){W.S="playing";var K=W.G&&isNaN(W.j)?gw(W):NaN;if(!isNaN(K)&&(aK(J,64)<0||aK(J,512)<0)){var I=RTL(W,!1);I.Z=K;I.send()}g.uT(J,16)&&J.state.seekSource===58&&(W.W.previouslyEnded=!0)}else W.S="paused"}; mAX=function(W,J,K){if(!W.PS){K||(K=MA(W,"atr"));K.attestationResponse=J;try{K.send()}catch(I){if(I.message!=="Unknown Error")throw I;}W.PS=!0}}; $Av=function(W,J){var K=W.provider.Ru;g.pp(W.provider.Ru,g.m7(W.provider.videoData)).then(function(I){var q=W.provider.Ru.pageId,S=W.provider.Ru.sendVisitorIdHeader?W.provider.videoData.visitorData:void 0,p=W.provider.Ru.Y("vss_pings_using_networkless")||W.provider.Ru.Y("kevlar_woffle"),n=W.provider.Ru.Y("allow_skip_networkless");I=YaQ(J,K,q,S,I);s2H(J,I,{token:W.provider.videoData.S,mI:W.provider.videoData.L_,mdxEnvironment:W.provider.videoData.mdxEnvironment},K,void 0,p&&!n,!1,!0)})}; r8v=function(){this.endTime=this.startTime=-1;this.T="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.K=0;this.compositeLiveStatusToken=this.G=void 0;this.volume=this.connectionType=0;this.muted=!1;this.W=this.clipId="-";this.previouslyEnded=!1}; xN=function(W,J,K){this.videoData=W;this.Ru=J;this.uO=K;this.W=void 0}; g.YS=function(W){return oNI(W)()}; oNI=function(W){if(!W.W){var J=g.Sl(function(I){var q=(0,g.L)();I&&q<=631152E6&&(W.uO.WS("ytnerror",{issue:28799967,value:""+q}),q=(new Date).getTime()+2);return q},W.Ru.Y("html5_validate_yt_now")),K=J(); W.W=function(){return Math.round(J()-K)/1E3}; W.uO.h6()}return W.W}; END=function(W){var J=W.uO.z4()||{};J.fs=W.uO.GW();J.volume=W.uO.getVolume();J.muted=W.uO.isMuted()?1:0;J.mos=J.muted;J.clipid=W.uO.WV();var K;J.playerheight=((K=W.uO.getPlayerSize())==null?void 0:K.height)||0;var I;J.playerwidth=((I=W.uO.getPlayerSize())==null?void 0:I.width)||0;W=W.videoData;K={};W.K&&(K.fmt=W.K.itag,W.T&&(W.fE?W.T.itag!==W.K.itag:W.T.itag!=W.K.itag)&&(K.afmt=W.T.itag));K.ei=W.eventId;K.list=W.playlistId;K.cpn=W.clientPlaybackNonce;W.videoId&&(K.v=W.videoId);W.nA&&(K.infringe=1); (W.Da?0:W.gm)&&(K.splay=1);(I=ZP(W))&&(K.live=I);W.zW&&(K.sautoplay=1);W.D4&&(K.autoplay=1);W.KX&&(K.sdetail=W.KX);W.partnerId&&(K.partnerid=W.partnerId);W.osid&&(K.osid=W.osid);W.pL&&(K.cc=g.ROy(W.pL));return Object.assign(J,K)}; Sby=function(W){var J=a1Q();if(J)return LPH[J]||LPH.other;if(g.$w(W.Ru)){W=navigator.userAgent;if(/[Ww]ireless[)]/.test(W))return 3;if(/[Ww]ired[)]/.test(W))return 30}return 0}; Ub=function(W){var J=new r8v,K;J.T=((K=END(W).cc)==null?void 0:K.toString())||"-";J.playbackRate=W.uO.getPlaybackRate();K=W.uO.getVisibilityState();K!==0&&(J.visibilityState=K);W.Ru.bO&&(J.K=1);J.G=W.videoData.fz;J.compositeLiveStatusToken=W.videoData.compositeLiveStatusToken;K=W.uO.getAudioTrack();K.pE&&K.pE.id&&K.pE.id!=="und"&&(J.audioId=K.pE.id);J.connectionType=Sby(W);J.volume=W.uO.getVolume();J.muted=W.uO.isMuted();J.clipId=W.uO.WV()||"-";J.W=W.videoData.j0||"-";return J}; g.Ob=function(W,J){g.R.call(this);var K=this;this.provider=W;this.T=!1;this.G=new Map;this.IB=new g.lp;this.G$={ezI:function(){return K.qoe}, vI8:function(){return K.W}, NJs:function(){return K.K}}; this.provider.videoData.Nk()&&!this.provider.videoData.K4&&(this.W=new ww(this.provider),this.W.K=this.provider.videoData.yk/1E3,g.B(this,this.W),this.qoe=new g.FE(this.provider,J),g.B(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.b1=this.provider.videoData.clientPlaybackNonce)&&this.G.set(this.b1,this.W));if(W.Ru.playerCanaryState==="canary"||W.Ru.playerCanaryState==="holdback")this.K=new Dl(this.provider),g.B(this,this.K)}; krH=function(W){return!!W.W&&!!W.qoe}; Tr=function(W){return g.YS(W.provider)}; Hr=function(W){W.K&&RZL(W.K);W.qoe&&tky(W.qoe)}; zTQ=function(W){if(W.qoe){W=W.qoe;for(var J=W.provider.videoData,K=W.provider.Ru,I=g.d(K.Od),q=I.next();!q.done;q=I.next())NA(W,q.value);if(W.provider.Y("html5_enable_qoe_cat_list"))for(I=g.d(J.dH),q=I.next();!q.done;q=I.next())NA(W,q.value);else J.Od&&NA(W,W.provider.videoData.Od);J.dl()&&(I=J.W,hS(J)&&NA(W,"manifestless"),I&&OJ(I)&&NA(W,"live-segment-"+OJ(I).toFixed(1)));nK(J)?NA(W,"sabr"):W.TR(ae(J));if(oe(J)||J.rf())J.rf()&&NA(W,"ssa"),NA(W,"lifa");rP(J)&&NA(W,"cdm");J.gatewayExperimentGroup&& (I=J.gatewayExperimentGroup,I==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?I="spkadtrt":I==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(I="spkadctrl"),NA(W,I));K.PS!=="yt"&&W.W.set("len",[J.lengthSeconds.toFixed(2)]);J.cotn&&!kh(J)&&W.y5(!0);K.ND()&&(J=KPH())&&W.WS("cblt",{m:J});if(K.Y("html5_log_screen_diagonal")){K=W.WS;var S;J=((S=window.H5vccScreen)==null?0:S.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;K.call(W,"cbltdiag",{v:J})}}}; vNv=function(W){if(W.provider.uO.La()){if(W.T)return;W.T=!0}W.W&&TwI(W.W);if(W.K){W=W.K;var J=g.YS(W.provider);W.W<0&&(W.W=J,W.delay.start());W.K=J;W.T=J}}; Ybc=function(W,J){W.W&&(W=W.W,J===58?W.W.update():W.G&&(Gr(W),$N(W).send(),W.T=NaN))}; sLA=function(W,J){if(g.uT(J,1024)||g.uT(J,512)||g.uT(J,4)){if(W.K){var K=W.K;K.K>=0||(K.W=-1,K.delay.stop())}W.qoe&&(K=W.qoe,K.N||(K.G=-1))}if(W.provider.videoData.enableServerStitchedDai&&W.b1){var I;(I=W.G.get(W.b1))==null||Bwy(I,J)}else W.W&&Bwy(W.W,J);if(W.qoe){I=W.qoe;K=J.state;var q=g.YS(I.provider),S=I.getPlayerState(K);FPH(I,q,S,K.seekSource||void 0);S=K.tS;g.z(K,128)&&S&&(S.mC=S.mC||"",DAy(I,q,S.errorCode,S.m8,S.mC));(g.z(K,2)||g.z(K,128))&&I.reportStats(q);K.isPlaying()&&!I.N&&(I.G>=0&& I.W.set("user_intent",[I.G.toString()]),I.N=!0);nNc(I)}W.K&&(I=W.K,bkT(I),I.playerState=J.state,I.K>=0&&g.uT(J,16)&&I.seekCount++,J.state.isError()&&I.send());W.provider.uO.La()&&(W.IB=J.state)}; c8X=function(W){W.K&&W.K.send();if(W.qoe){var J=W.qoe;if(J.T){J.IB==="PL"&&(J.IB="N");var K=g.YS(J.provider);g.t8(J,K,"vps",[J.IB]);J.N||(J.G>=0&&J.W.set("user_intent",[J.G.toString()]),J.N=!0);J.provider.Ru.ND()&&J.WS("finalized",{});J.jZ=!0;J.reportStats(K)}}if(W.provider.videoData.enableServerStitchedDai)for(J=g.d(W.G.values()),K=J.next();!K.done;K=J.next())bbH(K.value);else W.W&&bbH(W.W);W.dispose()}; PdH=function(W,J){W.W&&mAX(W.W,J)}; Xry=function(W){if(!W.W)return null;var J=MA(W.W,"atr");return function(K){W.W&&mAX(W.W,K,J)}}; Wgc=function(W,J,K,I){K.adFormat=K.oG;var q=J.uO;J=new ww(new xN(K,J.Ru,{getDuration:function(){return K.lengthSeconds}, getCurrentTime:function(){return q.getCurrentTime()}, ac:function(){return q.ac()}, WK:function(){return q.WK()}, La:function(){return q.La()}, HO:function(){return q.HO()}, getPlayerSize:function(){return q.getPlayerSize()}, getAudioTrack:function(){return K.getAudioTrack()}, getPlaybackRate:function(){return q.getPlaybackRate()}, LM:function(){return q.LM()}, getVisibilityState:function(){return q.getVisibilityState()}, VN:function(){return q.VN()}, z4:function(){return q.z4()}, getVolume:function(){return q.getVolume()}, isMuted:function(){return q.isMuted()}, GW:function(){return q.GW()}, WV:function(){return q.WV()}, getProximaLatencyPreference:function(){return q.getProximaLatencyPreference()}, h6:function(){q.h6()}, WS:function(S,p){q.WS(S,p)}, zX:function(){return q.zX()}, nE:function(){return q.nE()}})); J.K=I;g.B(W,J);return J}; iST=function(){this.Xn=0;this.G=this.Mr=this.zq=this.K=NaN;this.W={};this.bandwidthEstimate=NaN}; VU=function(W,J,K){g.R.call(this);var I=this;this.Ru=W;this.uO=J;this.K=K;this.W=new Map;this.b1="";this.G$={Oa:function(){return Array.from(I.W.keys())}}}; J7I=function(W,J){W.W.has(J)&&(c8X(W.W.get(J)),W.W.delete(J))}; KgD=function(){this.W=g.lQ;this.array=[]}; qR0=function(W,J,K){var I=[];for(J=IfQ(W,J);JK)break}return I}; SRv=function(W,J){var K=[];W=g.d(W.array);for(var I=W.next();!I.done&&!(I=I.value,I.contains(J)&&K.push(I),I.start>J);I=W.next());return K}; p9D=function(W){return W.array.slice(IfQ(W,0x7ffffffffffff),W.array.length)}; IfQ=function(W,J){W=O$(W.array,function(K){return J-K.start||1}); return W<0?-(W+1):W}; lfc=function(W,J){var K=NaN;W=g.d(W.array);for(var I=W.next();!I.done;I=W.next())if(I=I.value,I.contains(J)&&(isNaN(K)||I.endJ&&(isNaN(K)||I.startW.mediaTime+W.j&&J1)W.T=!0;if((q===void 0?0:q)||isNaN(W.K))W.K=J;if(W.W)J!==W.mediaTime&&(W.W=!1);else if(J>0&&W.mediaTime===J){q=1500;if(W.Ru.Y("html5_buffer_underrun_transition_fix")){q=g.FV(W.Ru.experiments,"html5_min_playback_advance_for_steady_state_secs");var S=g.FV(W.Ru.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");q=q>0&&S>0&&Math.abs(J-W.K)(I||!W.T?q:400)}W.mediaTime=J;W.G=K;return!1}; hqL=function(W,J){this.videoData=W;this.W=J}; tiX=function(W,J,K){return J.zN(K).then(function(){return T_(new hqL(J,J.G))},function(I){I instanceof Error&&g.ET(I); var q=VO('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),S=ep('audio/mp4; codecs="mp4a.40.2"'),p=q||S,n=J.isLivePlayback&&!g.l8(W.j,!0);I="fmt.noneavailable";n?I="html5.unsupportedlive":p||(I="html5.missingapi");p=n||!p?2:1;q={buildRej:"1",a:J.Fn(),d:!!J.iU,drm:J.pQ(),f18:J.hh.indexOf("itag=18")>=0,c18:q};J.W&&(J.pQ()?(q.f142=!!J.W.W["142"],q.f149=!!J.W.W["149"],q.f279=!!J.W.W["279"]):(q.f133=!!J.W.W["133"],q.f140=!!J.W.W["140"],q.f242=!!J.W.W["242"]),q.cAAC=S,q.cAVC=ep('video/mp4; codecs="avc1.42001E"'), q.cVP9=ep('video/webm; codecs="vp9"'));J.j&&(q.drmsys=J.j.keySystem,S=0,J.j.W&&(S=Object.keys(J.j.W).length),q.drmst=S);return new xm(I,q,p)})}; RL=function(W){this.data=window.Float32Array?new Float32Array(W):Array(W);this.K=this.W=W-1}; FgA=function(W){return W.data[W.W]||0}; afv=function(W){this.j=W;this.G=this.K=0;this.T=new RL(50)}; Br=function(W,J,K){g.Ao.call(this);this.videoData=W;this.experiments=J;this.j=K;this.K=[];this.aj=0;this.G=!0;this.T=!1;this.S=0;K=new uuA;W.latencyClass==="ULTRALOW"&&(K.S=!1);W.P7?K.G=3:g.Gg(W)&&(K.G=2);W.latencyClass==="NORMAL"&&(K.j=!0);K.PS=J.HS("html5_refactor_decouple_liveness");g.FV(J,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.FV(J,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||W.latencyClass!=="LOW"&&W.latencyClass!=="ULTRALOW"||(K.j=!0);var I=g.FV(J, "html5_liveness_drift_proxima_override");if(ae(W)!==0&&I){K.W=I;var q;((q=W.W)==null?0:vXQ(q))&&K.W--}nK(W)&&J.HS("html5_sabr_parse_live_metadata_playback_boundaries")&&(K.sI=!0);if(g.ov("trident/")||g.ov("edge/"))q=g.FV(J,"html5_platform_minimum_readahead_seconds")||3,K.T=Math.max(K.T,q);g.FV(J,"html5_minimum_readahead_seconds")&&(K.T=g.FV(J,"html5_minimum_readahead_seconds"));g.FV(J,"html5_maximum_readahead_seconds")&&(K.C=g.FV(J,"html5_maximum_readahead_seconds"));J.HS("html5_force_adaptive_readahead")&& (K.S=!0);if(q=g.FV(J,"html5_liveness_drift_chunk_override"))K.W=q;tS(W)&&(K.W=(K.W+1)/5,W.latencyClass==="LOW"&&(K.W*=2));if(W.latencyClass==="ULTRALOW"||W.latencyClass==="LOW")K.N=g.FV(J,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,K.Z=g.FV(J,"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=K;this.Z=this.policy.G!==1;this.W=bd(this,NCv(this,isNaN(W.liveChunkReadahead)?3:W.liveChunkReadahead,W))}; d60=function(W,J){if(J)return J=W.videoData,J=NCv(W,isNaN(J.liveChunkReadahead)?3:J.liveChunkReadahead,J),bd(W,J);if(W.K.length){if(Math.min.apply(null,W.K)>1)return bd(W,W.W-1);if(W.policy.S)return bd(W,W.W+1)}return W.W}; y7T=function(W,J){if(!W.K.length)return!1;var K=W.W;W.W=d60(W,J===void 0?!1:J);if(J=K!==W.W)W.K=[],W.aj=0;return J}; mP=function(W,J){return J>=W.vY()-U6y(W)}; ZSA=function(W,J,K){J=mP(W,J);K||J?J&&(W.G=!0):W.G=!1;W.Z=W.policy.G===2||W.policy.G===3&&W.G}; Q7c=function(W,J){J=mP(W,J);W.T!==J&&W.publish("livestatusshift",J);W.T=J}; U6y=function(W){var J=W.policy.W;W.T||(J=Math.max(J-1,0));return J*rw(W)}; NCv=function(W,J,K){K.P7&&J--;tS(K)&&(J=1);if(ae(K)!==0&&(W=g.FV(W.experiments,"html5_live_chunk_readahead_proxima_override"))){J=W;var I;((I=K.W)==null?0:vXQ(I))&&J++}return J}; rw=function(W){return W.videoData.W?OJ(W.videoData.W)||5:5}; bd=function(W,J){J=Math.max(Math.max(1,Math.ceil(W.policy.T/rw(W))),J);return Math.min(Math.min(8,Math.floor(W.policy.C/rw(W))),J)}; uuA=function(){this.T=0;this.C=Infinity;this.S=!0;this.K=this.W=2;this.G=1;this.j=!1;this.Z=10;this.sI=!1;this.N=1;this.PS=!1}; kN=function(W){g.R.call(this);this.uO=W;this.W=0;this.K=null;this.S=this.T=0;this.G={};this.Ru=this.uO.J();this.j=new g.P0(this.vD,1E3,this);this.bO=new oL({delayMs:g.FV(this.Ru.experiments,"html5_seek_timeout_delay_ms")});this.XW=new oL({delayMs:g.FV(this.Ru.experiments,"html5_long_rebuffer_threshold_ms")});this.Js=Lb(this,"html5_seek_set_cmt");this.SZ=Lb(this,"html5_seek_jiggle_cmt");this.OI=Lb(this,"html5_seek_new_elem");this.Tx=Lb(this,"html5_unreported_seek_reseek");this.sI=Lb(this,"html5_long_rebuffer_jiggle_cmt"); this.G8=new oL({delayMs:2E4});this.Y3=Lb(this,"html5_seek_new_elem_shorts");this.FW=Lb(this,"html5_seek_new_media_source_shorts_reuse");this.D0=Lb(this,"html5_seek_new_media_element_shorts_reuse");this.jZ=Lb(this,"html5_reseek_after_time_jump");this.N=Lb(this,"html5_gapless_handoff_close_end_long_rebuffer");this.C=Lb(this,"html5_gapless_slow_seek");this.PS=Lb(this,"html5_gapless_slow_start");this.Z=Lb(this,"html5_ads_preroll_lock_timeout");this.eZ=new oL({delayMs:g.FV(this.Ru.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,kN:!this.Ru.Y("html5_report_slow_ads_as_error")});this.P7=new oL({delayMs:g.FV(this.Ru.experiments,"html5_skip_slow_ad_delay_ms")||5E3,kN:!this.Ru.Y("html5_skip_slow_buffering_ad")});this.sT=new oL({delayMs:g.FV(this.Ru.experiments,"html5_slow_start_timeout_delay_ms")});this.vS=Lb(this,"html5_slow_start_no_media_source");g.B(this,this.j)}; Lb=function(W,J){var K=g.FV(W.Ru.experiments,J+"_delay_ms");W=W.Ru.Y(J+"_cfl");return new oL({delayMs:K,kN:W})}; CtQ=function(W,J){W.W=J}; zr=function(W,J,K,I,q,S,p,n){J.test(K)?(W.Uk(q,J,p),J.kN||S()):(J.L$&&J.K&&!J.T?(K=(0,g.L)(),I?J.W||(J.W=K):J.W=0,S=!I&&K-J.K>J.L$,K=J.W&&K-J.W>J.xB||S?J.T=!0:!1):K=!1,K&&(n=Object.assign({},W.RZ(J),n),n.wn=p,n.we=q,n.wsuc=I,W.uO.WS("workaroundReport",n),I&&(J.reset(),W.G[q]=!1)))}; oL=function(W){var J=W===void 0?{}:W;W=J.delayMs===void 0?0:J.delayMs;var K=J.xB===void 0?1E3:J.xB;var I=J.L$===void 0?3E4:J.L$;J=J.kN===void 0?!1:J.kN;this.W=this.K=this.G=this.startTimestamp=0;this.T=!1;this.j=Math.ceil(W/1E3);this.xB=K;this.L$=I;this.kN=J}; GKv=function(W){g.R.call(this);var J=this;this.uO=W;this.Z=this.W=this.loader=this.mediaElement=this.playbackData=null;this.G=0;this.j=this.PS=this.T=null;this.sI=!1;this.sT=0;this.C=!1;this.timestampOffset=0;this.G8=!0;this.OI=0;this.FW=this.SI=!1;this.S=0;this.Js=!1;this.XW=0;this.Ru=this.uO.J();this.videoData=this.uO.getVideoData();this.policy=new w9Q;this.N=new kN(this.uO);this.eZ=this.Y3=this.SZ=this.K=NaN;this.jZ=new g.P0(function(){MiI(J,!1)},2E3); this.Tx=new g.P0(function(){vr(J)}); this.D0=new g.P0(function(){J.sI=!0;gxv(J,{})}); this.P7=NaN;this.vS=new g.P0(function(){var K=J.Ru.Bt;K.W+=1E4/36E5;K.W-K.G>1/6&&(s5Q(K),K.G=K.W);J.vS.start()},1E4); g.B(this,this.N);g.B(this,this.jZ);g.B(this,this.D0);g.B(this,this.Tx);g.B(this,this.vS)}; OSH=function(W,J){W.playbackData=J;W.videoData.isLivePlayback&&(W.Z=new afv(function(){a:{if(W.playbackData&&W.playbackData.W.W){if(hS(W.videoData)&&W.loader){var K=W.loader.Dq.Lc()||0;break a}if(W.videoData.W){K=W.videoData.W.XW;break a}}K=0}return K}),W.W=new Br(W.videoData,W.Ru.experiments,function(){return W.Mk(!0)})); YN(W.uO)?(J=$6L(W),J.lM?(nK(W.videoData)&&W.Nw(J.lM,J.startSeconds),W.G=J.startSeconds):J.startSeconds>0&&W.seekTo(J.startSeconds,{cN:"seektimeline_startPlayback",seekSource:15}),W.G8=!1):x6H(W)||(W.G=W.G||(g.c8(W.videoData)?0:W.videoData.startSeconds)||0)}; HSy=function(W,J){(W.loader=J)?TC0(W,!0):sb(W)}; ViA=function(W,J){g.XY(W.N.j);W.Y("html5_exponential_memory_for_sticky")&&(J.state.isPlaying()?g.XY(W.vS):W.vS.stop());if(W.mediaElement)if(J.oldState.state===8&&tO(J.state)&&J.state.isBuffering()){J=W.mediaElement.getCurrentTime();var K=W.mediaElement.qR();var I=W.Y("manifestless_post_live_ufph")||W.Y("manifestless_post_live")?jH(K,Math.max(J-3.5,0)):jH(K,J-3.5);I>=0&&J>K.end(I)-1.1&&I+10?(cr(W.uO,W.getCurrentTime()+W.videoData.limitedPlaybackDurationInSeconds),W.FW=!0):W.videoData.isLivePlayback&&W.videoData.endSeconds>0&&(cr(W.uO,W.getCurrentTime()+W.videoData.endSeconds),W.FW=!0))}; eqy=function(W,J){var K=W.getCurrentTime(),I=W.isAtLiveHead(K);if(W.Z&&I){var q=W.Z;if(q.W&&!(K>=q.K&&K50&&q.K.shift())),q=W.W,ZSA(q,K,J===void 0?!0:J),Q7c(q,K),J&&MiI(W,!0));I!==W.SI&&(J=W.getCurrentTime()-W.eZ<=500,K=W.sT>=1E3,J||K||(J=W.uO.rl(),J.qoe&&(J=J.qoe,K=g.YS(J.provider), g.t8(J,K,"lh",[I?"1":"0"])),W.SI=I,W.sT++,W.eZ=W.getCurrentTime()))}; MiI=function(W,J){if(W.W){var K=W.W;var I=W.getCurrentTime(),q=K.vY();var S=K.policy.K;K.T||(S=Math.max(S-1,0));S*=rw(K);I>=q-S||!K.TW()?K=I0&&I5(W.mediaElement)>0&&(W.K=Pr(W,W.K,!1)),!W.mediaElement||!oxL(W))W.Tx.start(750);else if(!isNaN(W.K)&&isFinite(W.K)){var J=W.Y3-(W.K-W.timestampOffset);if(!(J===0||Math.abs(J)<.005))if(J=W.mediaElement.getCurrentTime()-W.K,Math.abs(J)<=W.OI||Math.abs(J)<.005)LgH(W);else{if(W.videoData.nL)W.videoData.nL=!1;else if(!fK(W.videoData)&&W.K>=W.Mk()-.1){W.K=W.Mk();W.T.resolve(W.Mk()); W.uO.CG();return}try{var K=W.K-W.timestampOffset;W.mediaElement.seekTo(K);W.N.W=K;W.Y3=K;W.G=W.K;W.C=!1}catch(I){}}}}; oxL=function(W){if(!W.mediaElement||W.mediaElement.uJ()===0||W.mediaElement.hasError())return!1;var J=W.mediaElement.getCurrentTime()>0;if(!(W.videoData.G&&W.videoData.G.W||W.videoData.isLivePlayback)&&W.videoData.pQ())return J;if(W.K>=0){var K=W.mediaElement.M9();if(K.length||!J)return fD(K,W.K-W.timestampOffset)}return J}; LgH=function(W){W.T&&(W.T.resolve(W.mediaElement.getCurrentTime()),W.N.K=null)}; m6H=function(W,J){W.j&&(W.j.resolve(J),W.uO.Dv(),W.Ru.ND()||r7L(W))&&(J=W.RZ(),J["native"]=""+ +W.C,J.otgt=""+(W.K+W.timestampOffset),W.uO.WS("seekEnd",J));sb(W)}; sb=function(W){W.K=NaN;W.Y3=NaN;W.T=null;W.PS=null;W.j=null;W.sI=!1;W.C=!1;W.OI=0;W.jZ.stop();W.D0.stop()}; zqH=function(W,J){var K=W.mediaElement,I=J.type;switch(I){case "seeking":var q=K.getCurrentTime()+W.timestampOffset;if(!W.T||W.C&&q!==W.K){W.T=new JO;W.T.then(function(p){m6H(W,p)},function(){sb(W)}); if(W.videoData.isAd()){var S;cFH({adCpn:W.videoData.clientPlaybackNonce,contentCpn:(S=W.videoData.Iv)!=null?S:""},J.W)}W.Y3=q;CtQ(W.N,K.getCurrentTime());W.seekTo(q,{seekSource:104,cN:"seektimeline_mediaElementEvent"});W.C=!0}break;case "seeked":LgH(W);break;case "loadedmetadata":YN(W.uO)||kKD(W);vr(W);break;case "progress":vr(W);break;case "pause":W.S=W.getCurrentTime()}W.S&&((I==="play"||I==="playing"||I==="timeupdate"||I==="progress")&&W.getCurrentTime()-W.S>10&&(W.Y("html5_enable_new_media_element_puase_jump")? (W.uO.Uk(new xm("qoe.restart",{reason:"pauseJump"})),W.uO.GY(),W.seekTo(W.S,{cN:"pauseJumpNewElement"})):W.seekTo(W.S,{cN:"pauseJump"})),I!=="pause"&&I!=="play"&&I!=="playing"&&I!=="progress"&&(W.S=0))}; vxD=function(W){return($h(W.videoData)||!!W.videoData.liveUtcStartSeconds)&&(!!W.videoData.liveUtcStartSeconds||x6H(W))&&!!W.videoData.W}; x6H=function(W){return!!W.videoData.startSeconds&&isFinite(W.videoData.startSeconds)&&W.videoData.startSeconds>1E9}; $6L=function(W){var J=0,K=NaN,I="";if(!W.G8)return{startSeconds:J,lM:K,source:I};W.videoData.sI?J=W.videoData.vS:fK(W.videoData)&&(J=Infinity);if(g.Gg(W.videoData))return{startSeconds:J,lM:K,source:I};W.videoData.startSeconds?(I="ss",J=W.videoData.startSeconds):W.videoData.Ym&&(I="stss",J=W.videoData.Ym);W.videoData.liveUtcStartSeconds&&(K=W.videoData.liveUtcStartSeconds);if(isFinite(J)&&(J>W.Mk()||J W.Mk()||K0?(I.onesie="0",W.handleError(new xm("html5.missingapi",I)),!1):!0}; K8H=function(W){var J=Bl();ml(J,W);return g.n2(J,UTH())}; W80=function(W,J){var K,I,q,S,p,n,A,D,f,h,t,F,a,y,U,Q,C,T,H,b,c,v,Kv,qI,WH,nv;return g.V(function(P){if(P.K==1)return J.fetchType="onesie",K=O8Q(J,W.getPlayerSize(),W.getVisibilityState()),I=new dY(W,K),g.O(P,I.fetch(),2);q=P.W;S={player_response:q};J.loading=!1;p=W.Ok.j_;if(I.TY){n=g.d(I.TY.entries());for(A=n.next();!A.done;A=n.next())D=A.value,f=g.d(D),h=f.next().value,t=f.next().value,F=h,a=t,p.W.set(F,a,180),F===J.videoId&&(y=a.oO(),J.MG=y);p.wi=I}U=g.d(I.nC.entries());for(Q=U.next();!Q.done;Q= U.next())C=Q.value,T=g.d(C),H=T.next().value,b=T.next().value,c=H,v=b,p.K.set(c,v,180);g.sF(J,S,!0);if(J.loading||v8(J))return P.return(Promise.resolve());p.W.removeAll();p.K.removeAll();J.MG=[];Kv={};qI="onesie.response";WH=0;J.errorCode?(qI="auth",Kv.ec=J.errorCode,Kv.ed=J.errorDetail,Kv.es=J.SB||"",WH=2):(Kv.successButUnplayable="1",Kv.disposed=""+ +J.Iu(),Kv.afmts=""+ +/adaptiveFormats/.test(q),Kv.cpn=J.clientPlaybackNonce);nv=new xm(qI,Kv,WH);return P.return(Promise.reject(nv))})}; PtX=function(W,J){var K,I,q,S,p,n,A,D,f,h,t;return g.V(function(F){switch(F.K){case 1:K=J.isAd(),I=!K,q=K?1:3,S=0;case 2:if(!(S0)){F.VK(5);break}return g.O(F,BS(5E3),6);case 6:p=new g.vd("Retrying OnePlatform request",{attempt:S}),g.ET(p);case 5:return g.yQ(F,7),g.O(F,IrA(W,J),9);case 9:return F.return();case 7:n=g.g0(F);A=Tc(n);D=A.errorCode;f=W.J();h=f.Y("html5_use_network_error_code_enums")?401:"401";I&&D==="manifest.net.badstatus"&&A.details.rc===h&&(I=!1,S===q-1&&(q+= 1));if(S===q-1)return t=q0A(K,A.details),t.details.backend="op",t.details.originec=D,F.return(Promise.reject(t));if(D==="auth"||D==="manifest.net.retryexhausted")return F.return(Promise.reject(A));W.handleError(A);if(OS(A.severity)){F.VK(4);break}case 3:S++;F.VK(2);break;case 4:return F.return(Promise.reject(q0A(K,{backend:"op"})))}})}; IrA=function(W,J){function K(qI){qI.readyState===2&&W.bU("ps_c")} var I,q,S,p,n,A,D,f,h,t,F,a,y,U,Q,C,T,H,b,c,v,Kv;return g.V(function(qI){switch(qI.K){case 1:J.fetchType="gp";I=W.J();q=g.pp(I,g.m7(J));if(!q.W){S=q.getValue();qI.VK(2);break}return g.O(qI,q.W,3);case 3:S=qI.W;case 2:return p=S,n=K8H(p),A=O8Q(J,W.getPlayerSize(),W.getVisibilityState()),D=g.IC(S0H),f=g.m7(J),h=(0,g.L)(),t=!1,F="empty",a=0,W.bU("psns"),y={O9:K},g.O(qI,g.Pe(n,A,D,void 0,y),4);case 4:U=qI.W;W.bU("psnr");if(J.Iu())return qI.return();U?"error"in U&&U.error?(t=!0,F="esf:"+U.error.message, a=U.error.code):U.errorMetadata&&(t=!0,F="its",a=U.errorMetadata.status):t=!0;if(t)return Q=0,C=((0,g.L)()-h).toFixed(),T={},T=I.Y("html5_use_network_error_code_enums")?{backend:"op",rc:a,rt:C,reason:F,has_kpt:J.mz?"1":"0",has_mdx_env:J.mdxEnvironment?"1":"0",has_omit_key_flag:g.Yf("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:I.pageId?"1":"0",has_token:f?"1":"0",has_vvt:J.jZ?"1":"0",is_mdx:J.isMdxPlayback?"1":"0",mdx_ctrl:J.Cw||"",token_eq:f===g.m7(J)?"1":"0"}:{backend:"op", rc:""+a,rt:C,reason:F,has_kpt:J.mz?"1":"0",has_mdx_env:J.mdxEnvironment?"1":"0",has_omit_key_flag:g.Yf("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:I.pageId?"1":"0",has_token:f?"1":"0",has_vvt:J.jZ?"1":"0",is_mdx:J.isMdxPlayback?"1":"0",mdx_ctrl:J.Cw||"",token_eq:f===g.m7(J)?"1":"0"},H="manifest.net.connect",a===429?(H="auth",Q=2):a>200&&(H="manifest.net.badstatus",a===400&&(Q=2)),qI.return(Promise.reject(new xm(H,T,Q)));J.loading=!1;g.sF(J,{raw_player_response:U},!0); b=U;g.eb(J.J())&&b&&b.trackingParams&&B1(b.trackingParams);if(J.errorCode)return c={ec:J.errorCode,ed:J.errorDetail,es:J.SB||""},qI.return(Promise.reject(new xm("auth",c,2)));if(!J.loading&&!v8(J))return v=J.isAd()?"auth":"manifest.net.retryexhausted",Kv=J.isAd()?2:1,qI.return(Promise.reject(new xm(v,{successButUnplayable:"1",hasMedia:g.CK(J)?"1":"0"},Kv)));g.d0(qI)}})}; c70=function(W,J,K){function I(a){a=Tc(a);if(OS(a.severity))return Promise.reject(a);W.handleError(a);return!1} function q(){return!0} var S,p,n,A,D,f,h,t,F;return g.V(function(a){switch(a.K){case 1:var y=W.J();W.getPlayerSize();W.getVisibilityState();W.isFullscreen();if(J.partnerId===38&&y.playerStyle==="books")y=J.videoId.indexOf(":"),y=g.Vw("//play.google.com/books/volumes/"+J.videoId.slice(0,y)+"/content/media",{aid:J.videoId.slice(y+1),sig:J.jcs});else if(J.partnerId===30&&y.playerStyle==="docs")y=g.Vw("https://docs.google.com/get_video_info",{docid:J.videoId,authuser:J.Ur,authkey:J.z1,eurl:y.bb});else if(J.partnerId===33&& y.playerStyle==="google-live")y=g.Vw("//google-liveplayer.appspot.com/get_video_info",{key:J.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+y.PS);S=y;n=(p=J.isAd())?1:3;A=0;case 2:if(!(A0)){a.VK(5);break}return g.O(a,BS(5E3),6);case 6:f={playerretry:A,playerretrysrc:K},p||(f.recover="embedded"),D=pz(S,f);case 5:return g.O(a,pPQ(J,D).then(q,I),7);case 7:if(h=a.W)return a.return();A++;a.VK(2);break;case 4:t=p?"auth":"manifest.net.retryexhausted";F= p?2:1;if(!p&&Math.random()<1E-4)try{g.ET(new g.vd("b/152131571",btoa(S)))}catch(U){}return a.return(Promise.reject(new xm(t,{backend:"gvi"},F)))}})}; pPQ=function(W,J){function K(U){return I(U.xhr)} function I(U){if(!W.Iu()){U=U?U.status:-1;var Q=0,C=((0,g.L)()-f).toFixed();C=q.Y("html5_use_network_error_code_enums")?{backend:"gvi",rc:U,rt:C}:{backend:"gvi",rc:""+U,rt:C};var T="manifest.net.connect";U===429?(T="auth",Q=2):U>200&&(T="manifest.net.badstatus",U===400&&(Q=2));return Promise.reject(new xm(T,C,Q))}} var q,S,p,n,A,D,f,h,t,F,a,y;return g.V(function(U){if(U.K==1){W.fetchType="gvi";q=W.J();var Q={};W.zf&&(Q.ytrext=W.zf);(n=g.PR(Q)?void 0:Q)?(S={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:n},p=pz(J,{action_display_post:1})):(S={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},p=J);A={};q.sendVisitorIdHeader&&W.visitorData&&(A["X-Goog-Visitor-Id"]=W.visitorData);(D=q8(q.experiments,"debug_sherlog_username"))&&(A["X-Youtube-Sherlog-Username"]=D);Object.keys(A).length> 0&&(S.headers=A);f=(0,g.L)();return g.O(U,ND(G_,p,S).then(void 0,K),2)}h=U.W;if(!h||!h.responseText)return U.return(I(h));W.loading=!1;t=Kz(h.responseText);g.sF(W,t,!0);if(W.errorCode)return F={ec:W.errorCode,ed:W.errorDetail,es:W.SB||""},U.return(Promise.reject(new xm("auth",F,2)));if(!W.loading&&!v8(W))return a=W.isAd()?"auth":"manifest.net.retryexhausted",y=W.isAd()?2:1,U.return(Promise.reject(new xm(a,{successButUnplayable:"1"},y)));g.d0(U)})}; q0A=function(W,J){return new xm(W?"auth":"manifest.net.retryexhausted",J,W?2:1)}; KS=function(W,J,K){K=K===void 0?!1:K;var I,q,S,p;g.V(function(n){if(n.K==1){I=W.J();if(K&&(!g.iL(I)||e7(J)!=="embedded")||J.LL||e7(J)!=="adunit"&&(g.$w(I)||L5(I)||g.Bh(I)||g.RP(I)||K5(I)==="WEB_CREATOR"))return n.return();q=g.pp(I,g.m7(J));return q.W?g.O(n,q.W,3):(S=q.getValue(),n.VK(2))}n.K!=2&&(S=n.W);p=S;return n.return(lrc(W,J,p))})}; lrc=function(W,J,K){var I,q,S,p,n;return g.V(function(A){if(A.K==1){g.yQ(A,2);I=K8H(K);var D=J.J();g.mr();var f={context:g.l3(J),videoId:J.videoId,racyCheckOk:J.racyCheckOk,contentCheckOk:J.contentCheckOk,autonavState:"STATE_NONE"};e7(J)==="adunit"&&(f.isAdPlayback=!0);D.embedConfig&&(f.serializedThirdPartyEmbedConfig=D.embedConfig);D.ip&&(f.showContentOwnerOnly=!0);J.Vm&&(f.showShortsOnly=!0);g.ri(0,141)&&(f.autonavState=g.ri(0,140)?"STATE_OFF":"STATE_ON");if(g.X2(D)){var h=g.ri(0,65);h=h!=null? !h:!1;var t=!!g.V0("yt-player-sticky-caption");f.captionsRequested=h&&t}var F;if(D=(F=D.getWebPlayerContextConfig())==null?void 0:F.encryptedHostFlags)f.playbackContext={encryptedHostFlags:D};q=f;S=g.IC(nzA);W.bU("wn_s");return g.O(A,g.Pe(I,q,S),4)}if(A.K!=2)return p=A.W,W.bU("wn_r"),!p||"error"in p&&p.error||(n=p,g.eb(J.J())&&n.trackingParams&&B1(n.trackingParams),g.sF(J,{raw_watch_next_response:p},!1)),g.Cv(A,0);g.g0(A);g.d0(A)})}; AbX=function(W){W.bU("vir");W.bU("ps_s");YM("vir",void 0,"video_to_ad");var J=JbD(W);J.then(function(){W.bU("virc");YM("virc",void 0,"video_to_ad");W.bU("ps_r");YM("ps_r",void 0,"video_to_ad")},function(){W.bU("virc"); YM("virc",void 0,"video_to_ad")}); return J}; g.Si=function(W,J,K,I,q,S,p,n,A,D){A=A===void 0?new g.zR(W):A;D=D===void 0?!0:D;g.Ao.call(this);var f=this;this.Ru=W;this.playerType=J;this.jI=K;this.Id=I;this.getVisibilityState=S;this.visibility=p;this.Ok=n;this.videoData=A;this.Wb=D;this.logger=new g.p4("VideoPlayer");this.zz=null;this.oU=new Sk;this.yA=null;this.AE=!0;this.ww=this.loader=null;this.oM=[];this.BU=new J7;this.Ht=this.c8=null;this.OR=new J7;this.jC=null;this.qe=this.sO=!1;this.Il=NaN;this.Az=!1;this.playerState=new g.lp;this.Zz=[]; this.FS=new g.BW;this.gV=new lxQ(this);this.mediaElement=null;this.Ye=new g.P0(this.EKu,15E3,this);this.Fd=this.oa=!1;this.Kb=NaN;this.nF=!1;this.Sx=0;this.Ko=!1;this.z7=NaN;this.Ys=new XE(new Map([["bufferhealth",function(){return ExT(f.BN)}], ["bandwidth",function(){return f.UZ()}], ["networkactivity",function(){return f.Ru.schedule.G8}], ["livelatency",function(){return f.isAtLiveHead()&&f.isPlaying()?D9H(f):NaN}], ["rawlivelatency",function(){return D9H(f)}]])); this.j6=0;this.loop=!1;this.playbackRate=1;this.N5=0;this.BN=new GKv(this);this.pn=!1;this.Yn=[];this.YX=this.yR=0;this.oE=this.n8=!1;this.Mr=this.zq=0;this.EB=new g.P0(this.a$,0,this);this.pk=null;this.QGS=[this.FS,this.EB,this.Ye,this.Ys];this.bG=this.Mx=null;this.Ww=function(){var h=f.rl();h.provider.Ru.Os||h.provider.uO.getVisibilityState()===3||(h.provider.Ru.Os=!0);h.YV();if(h.K){var t=h.K;t.j&&t.W<0&&t.provider.uO.getVisibilityState()!==3&&RZL(t)}h.qoe&&(h=h.qoe,h.bO&&h.G<0&&h.provider.Ru.Os&& tky(h),h.T&&ud(h));f.loader&&I7(f);f.Ru.Xb&&!f.videoData.backgroundable&&f.mediaElement&&!f.UM()&&(f.isBackground()&&f.mediaElement.XI()?(f.WS("bgmobile",{suspend:1}),f.AO(!0,!0)):f.isBackground()||q6(f)&&f.WS("bgmobile",{resume:1}))}; this.G$={OJ:function(h){f.OJ(h)}, B13:function(h){f.zz=h}, HaO:function(){return f.E9}, DU:function(){return f.gr}, v4:function(){return f.ww}, QYg:function(){return f.xT}, TJ8:function(){return f.jx}, Cxg:function(){}, J:function(){return f.Ru}, gb:function(){return f.mediaElement}, fDI:function(h){f.jK(h)}, Gqg:function(){return f.Id}}; this.logger.debug(function(){return"creating, type "+J}); this.I0=new ffQ(this.Ru);this.rq=new ld(this.Ru,this.Id,this);this.R7=new g.Eb(this,function(h,t){h!==g.n9("endcr")||g.z(f.playerState,32)||f.CG();q(h,t,f.playerType)},function(h,t){g.c8(f.videoData)&&f.WS(h,t)}); g.B(this,this.R7);g.B(this,this.BN);jkL(this,A);this.videoData.subscribe("dataupdated",this.Km0,this);this.videoData.subscribe("dataloaded",this.y3,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.WS,this);this.videoData.subscribe("ctmpstr",this.Qv,this);this.sZ();SaQ(this.Ww);this.visibility.subscribe("visibilitystatechange",this.Ww);this.xT=new g.P0(this.Ke,g.FV(this.Ru.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.jx= new g.P0(this.Ke,g.FV(this.Ru.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.Kr=new g.J5(this.s1,g.FV(this.Ru.experiments,"html5_progress_event_throttle_ms")||350,this);g.B(this,this.Kr)}; jkL=function(W,J){if(W.playerType===2||W.Ru.mj)J.Qo=!0;var K=rVH(J.oG,J.Mi,W.Ru.T,W.Ru.N);K&&(J.adFormat=K);W.playerType===2&&(J.D4=!0);if(W.isFullscreen()||W.Ru.T)K=g.V0("yt-player-autonavstate"),J.autonavState=K||(W.Ru.T?2:W.videoData.autonavState);J.endSeconds&&J.endSeconds>J.startSeconds&&cr(W,J.endSeconds)}; fry=function(W){c8X(W.E9);g.hE(W.E9);for(var J=W.gr,K=g.d(J.W.values()),I=K.next();!I.done;I=K.next())c8X(I.value);J.W.clear();g.hE(W.gr)}; hv0=function(W){var J=W.videoData;AbX(W).then(void 0,function(K){W.videoData!==J||J.Iu()||(K=Tc(K),K.errorCode==="auth"&&W.videoData.errorDetail?W.Za(K.errorCode,2,unescape(W.videoData.errorReason),$m(K.details),W.videoData.errorDetail,W.videoData.SB||void 0):W.handleError(K))})}; arD=function(W){if(!g.z(W.playerState,128))if(W.videoData.isLoaded(),W.logger.debug("finished loading playback data"),W.oM=g.U$(W.videoData.G8),g.CK(W.videoData)){W.jI.tick("bpd_s");pS(W).then(function(){W.jI.tick("bpd_c");if(!W.Iu()){W.sO&&(W.T$(DO(DO(W.playerState,512),1)),q6(W));var I=W.videoData;I.endSeconds&&I.endSeconds>I.startSeconds&&cr(W,I.endSeconds);W.BU.finished=!0;lt(W,"dataloaded");W.OR.EO()&&tED(W);eZv(W.rq,W.Ht)}}); W.Y("html5_log_media_perf_info")&&W.WS("loudness",{v:W.videoData.mA.toFixed(3)},!0);var J,K=(J=W.mediaElement)==null?void 0:J.v7();if(K&&"disablePictureInPicture"in K&&W.Ru.uA)try{K.disablePictureInPicture=W.Ru.LA&&!W.videoData.backgroundable}catch(I){g.ET(I)}F8Q(W)}else lt(W,"dataloaded")}; pS=function(W){nS(W);W.Ht=null;var J=tiX(W.Ru,W.videoData,W.UM());W.c8=J;W.c8.then(function(K){uXA(W,K)},function(K){W.Iu()||(K=Tc(K),W.visibility.isBackground()?(A7(W,"vp_none_avail"),W.c8=null,W.BU.reset()):(W.BU.finished=!0,W.Za(K.errorCode,K.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",$m(K.details))))}); return J}; uXA=function(W,J){if(!W.Iu()&&!J.videoData.Iu()){W.logger.debug("finished building playback data");W.Ht=J;OSH(W.BN,W.Ht);if(W.videoData.isLivePlayback){var K=NtQ(W.Ok.j_,W.videoData.videoId)||W.loader&&!isNaN(W.loader.G8);K=W.Y("html5_onesie_live")&&K;YN(W)||W.videoData.SI>0&&!hS(W.videoData)||K||W.seekTo(W.Mk(),{cN:"videoplayer_playbackData",seekSource:18})}if(W.videoData.G.W){if(dnX(W.videoData)){W.Y("html5_sabr_report_missing_url_as_error_terminal")?W.Za("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", $m({missabrurl:1})):W.handleError(new xm("fmt.missing",{missabrurl:"1"},2));return}W.loader?g.ET(Error("Duplicated Loader")):(K=g.FV(W.Ru.experiments,"html5_onesie_defer_content_loader_ms"))&&W.bV()&&NtQ(W.Ok.j_,W.videoData.Jhw)?g.FW(function(){W.Iu()||W.loader||d9v(W)},K):d9v(W)}else!W.videoData.G.W&&kh(W.videoData)&&W.fH(new he(W.videoData.videoId||"",4)); W.VA();$zc(J).then(function(){var I={};W.SS(I);W.Ru.ND()&&W.Y("html5_log_media_perf_info")&&W.WS("av1Info",I);I7(W)})}}; tED=function(W){W.Iu();W.logger.debug("try finish readying playback");if(W.OR.finished)W.logger.debug("already finished readying");else if(W.BU.finished)if(g.z(W.playerState,128))W.logger.debug("cannot finish readying because of error");else if(W.oM.length)W.logger.debug(function(){return"cannot finish readying because of pending preroll: "+W.oM}); else if(W.R7.started||A7D(W.R7),W.vj())W.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{W.loader&&(W.qe=TAy(W.loader.timing));W.OR.finished||(W.OR.finished=!0);var J=W.Y("html5_onesie_live")&&W.loader&&!isNaN(W.loader.G8);!W.videoData.isLivePlayback||W.videoData.SI>0&&!hS(W.videoData)||J||YN(W)||(W.logger.debug("seek to head for live"),W.seekTo(Infinity,{cN:"videoplayer_readying",seekSource:18}),W.isBackground()&&(W.Fd=!0));zTQ(W.rl());W.logger.debug("finished readying playback"); W.publish("playbackready");z8("pl_c",W.jI.timerName)||(W.jI.tick("pl_c"),YM("pl_c",void 0,"video_to_ad"));z8("pbr",W.jI.timerName)||(W.jI.tick("pbr"),YM("pbr",void 0,"video_to_ad"))}else W.logger.debug("playback data not loaded")}; cr=function(W,J){W.yA&&ybH(W);W.yA=new g.p9(J*1E3,0x7ffffffffffff);W.yA.namespace="endcr";W.addCueRange(W.yA)}; ybH=function(W){W.removeCueRange(W.yA);W.yA=null}; U9X=function(W,J,K,I,q){var S=W.rl(q),p=g.c8(W.videoData)?S.getVideoData():W.videoData;p.K=K;var n=g.Df(W);K=new dzT(p,K,J,n?n.itag:"",I);W.Ru.experiments.HS("html5_refactor_sabr_video_format_selection_logging")?(K.videoId=q,W.bG=K):S.qoe&&JYA(S.qoe,K);q=W.rq;q.K=0;q.W=0;W.publish("internalvideoformatchange",p,J==="m")}; g.Df=function(W){var J=ji(W);return a_(J)||!W.Ht?null:g.hW(W.Ht.W.videoInfos,function(K){return J.T(K)})}; ji=function(W){if(W.Ht){var J=W.rq;var K=W.Ht;W=W.mW();var I=ZkA(J);if(a_(I)){if(I=y4c(J,K).compose(MzT(J,K)).compose(GEc(J,K)).compose(VzX(J,K.videoData)).compose(ESQ(J,K.videoData,K)).compose(A8(J,K)).compose(CUc(J,K)),a_(W)||J.Y("html5_apply_pbr_cap_for_drm"))I=I.compose(wBD(J,K))}else J.Y("html5_perf_cap_override_sticky")&&(I=I.compose(A8(J,K))),J.Y("html5_ustreamer_cap_override_sticky")&&(I=I.compose(wBD(J,K)));I=I.compose(CUc(J,K));J=K.videoData.nX.compose(I).compose(K.videoData.Nf).compose(W)}else J= k5;return J}; o5H=function(W){var J=W.rq;W=W.videoData;var K=VzX(J,W);J.Y("html5_disable_client_autonav_cap_for_onesie")||K.compose(ESQ(J,W));return K}; I7=function(W){if(W.videoData.G&&W.videoData.G.W){var J=ji(W);W.loader&&xEH(W.loader,J)}}; ZGH=function(W){var J;return!!(W.Y("html5_native_audio_track_switching")&&g.dg&&((J=W.videoData.K)==null?0:KD(J)))}; QkA=function(W){if(!ZGH(W))return!1;var J;W=(J=W.mediaElement)==null?void 0:J.audioTracks();return!!(W&&W.length>1)}; wPy=function(W){var J=CVH(W);if(J)return zLH(W.videoData.getAvailableAudioTracks().find(function(K){return K.pE.getName()===J}))}; CVH=function(W){var J;if(W=(J=W.mediaElement)==null?void 0:J.audioTracks())for(J=0;J0&&(J.gm=I.RO));J.NP=I.zB;J.Qk=mI(K,{},I.G||void 0,lE(I));J.FW=pK(I)&&g.Bh(K);nK(I)&&(J.Lk=!0,K.Y("html5_sabr_report_partial_segment_estimated_duration")&& (J.fS=!0),J.W=!0,J.V_=K.Y("html5_sabr_enable_live_clock_offset"),J.Ze=K.Y("html5_disable_client_resume_policy_for_sabr"),J.EK=K.Y("html5_trigger_loader_when_idle_network"),J.hc=K.Y("html5_sabr_parse_live_metadata_playback_boundaries"),J.pS=K.Y("html5_enable_platform_backpressure_with_sabr"),J.Wg=K.Y("html5_consume_onesie_next_request_policy_for_sabr"),J.RR=K.Y("html5_sabr_report_next_ad_break_time"),J.S9=K.Y("html5_log_high_res_buffer_timeline")&&K.ND(),J.CS=K.Y("html5_remove_stuck_slices_beyond_max_buffer_limits"), J.K4=K.Y("html5_gapless_sabr_btl_last_slice")&&S7(I),J.KX=K.Y("html5_reset_last_appended_slice_on_seek")&&S7(I),hS(I)?(J.Uv=!0,J.lX=K.Y("html5_estimate_partial_segment_duration"),J.dH=K.Y("html5_disable_variability_tracker_for_live"),J.D0=K.Y("html5_sabr_use_accurate_slice_info_params"),K.Y("html5_simplified_backup_timeout_sabr_live")&&(J.zP=!0,J.Os=J.vZ)):J.Fz=K.Y("html5_probe_request_on_sabr_request_progress"),J.Jc=K.Y("html5_serve_start_seconds_seek_for_post_live_sabr"),J.Ym=K.Y("html5_flush_index_on_updated_timestamp_offset"), J.C=tdQ(I),J.Jl=K.Y("html5_ignore_partial_segment_from_live_readahead"),J.Lb=K.Y("html5_use_buffer_health_for_readahead"),J.bH=K.Y("html5_use_non_active_broadcast_for_post_live"),J.vS=K.Y("html5_use_centralized_player_time"),J.uD=K.Y("html5_consume_onesie_sabr_seek"),J.sI=K.Y("html5_enable_sabr_seek_loader_refactor"),J.yv=K.Y("html5_update_segment_start_time_from_media_header"),I.enableServerStitchedDai&&(J.G=!0,J.nX=K.Y("html5_reset_server_stitch_state_for_non_sabr_seek"),J.zs=K.Y("html5_remove_ssdai_append_pause")&& !I.rf(),J.X0=K.Y("html5_ssdai_log_ssevt_in_loader")),J.Ss=K.ND()||I.rf());J.j=J.W&&K.Y("html5_sabr_live");J.eZ=g.upc(I);xA(K.j,Oq.BITRATE)&&(J.Cy=NaN);if(n=g.FV(K.experiments,"html5_request_size_max_kb"))J.Y3=n*1024;K.j.G?J.Od="; "+Oq.EXPERIMENTAL.name+"=allowed":K.Y("html5_enable_cobalt_tunnel_mode")&&(J.Od="; tunnelmode=true");n=I.serverPlaybackStartConfig;(n==null?0:n.enable)&&(n==null?0:n.playbackStartPolicy)&&(J.GJ=!0,kD(J,n.playbackStartPolicy,2));n=MEH(W);W.oU.removeAll();a:{K=W.Ok.j_;if(I= W.videoData.videoId)if(q=K.W.get(I)){K.W.remove(I);K=q;break a}K=void 0}W.loader=new g.zE(W,W.Ru.schedule,J,W.videoData.W,W.videoData.G,ji(W),n,W.videoData.enableServerStitchedDai,K,W.videoData.PS);J=W.videoData.Y("html5_disable_preload_for_ssdai_with_preroll")&&W.videoData.isLivePlayback&&W.bV()?!0:W.sO&&g.$w(W.Ru)&&W.videoData.isLivePlayback;W.loader.initialize(W.getCurrentTime(),ji(W),J);W.videoData.probeUrl&&(W.loader.FW=W.videoData.probeUrl);if(W.oM.length||W.sO)W.videoData.cotn||fS(W,!1);HSy(W.BN, W.loader);W.pk&&(Wlv(W.loader,new g.sa(W.pk)),W.WS("sdai",{sdl:1}));g.Yh(W.videoData)&&(W=W.loader,W.policy.mA=W.policy.FZ)}; nS=function(W){W.loader&&(W.loader.dispose(),W.loader=null,HSy(W.BN,null));W.RH()?gzQ(W):W.Fb()}; gzQ=function(W){if(W.ww)if(W.logger.debug("release media source"),W.bY(),W.ww.j)try{W.Ru.ND()&&W.WS("rms",{l:"vprms",sr:W.RH(),rs:W5(W.ww)});W.ww.clear();var J;(J=W.mediaElement)!=null&&(J.K=W.ww);W.ww=null}catch(K){J=new g.vd("Error while clearing Media Source in VideoPlayer: "+K.name+", "+K.message),J=Tc(J),W.handleError(J),W.Fb()}else W.Fb()}; GGD=function(W,J){J=J===void 0?!1:J;if(W.ww)return W.ww.G;W.logger.debug("update media source");a:{J=J===void 0?!1:J;try{g.ku()&&W.videoData.lf()&&xfX(W.mediaElement);var K=W.mediaElement.v4(W.nB(),W.u9())}catch(q){if(fxL(W.gV,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",q);W.Za("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}W.gL(K,!1,!1,J)}var I;return((I=W.v4())==null?void 0:I.G)||null}; $9Q=function(W,J){J=J===void 0?!1:J;if(W.loader){W.videoData.enableServerStitchedDai&&lJc(W.loader);var K=W.getCurrentTime()-W.nE();W.loader.seek(K,{gk:J}).b2(function(){})}else d9v(W)}; OGD=function(W,J,K,I){K=K===void 0?!1:K;I=I===void 0?!1:I;if(W.ww&&(!J||W.ww===J)){W.logger.debug("media source opened");var q=W.getDuration();!q&&hS(W.videoData)&&(q=25200);if(W.ww.isView){var S=q;W.logger.debug(function(){return"Set media source duration to "+S+", video duration "+q}); S>W.ww.getDuration()&&x9Q(W,S)}else x9Q(W,q);ghH(W.loader,W.ww,K,I);W.publish("mediasourceattached")}}; x9Q=function(W,J){if(W.ww){W.ww.Cg(J);var K;(K=W.loader)!=null&&K.policy.vS&&(K.S=J)}}; TPQ=function(W,J){U9X(W,J.reason,J.W.info,J.token,J.videoId)}; lt=function(W,J){W.publish("internalvideodatachange",J===void 0?"dataupdated":J,W.videoData)}; TtT=function(W){var J="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");W.Y("html5_remove_progress_event_listener")||(J.push("progress"),J.push("suspend"));J=g.d(J);for(var K=J.next();!K.done;K=J.next())W.FS.D(W.mediaElement,K.value,W.jK,W);W.Ru.UQ&&W.mediaElement.Ac()&&(W.FS.D(W.mediaElement,"webkitplaybacktargetavailabilitychanged",W.vtu,W),W.FS.D(W.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",W.ciZ, W))}; VEc=function(W){g.NU(W.Il);HGv(W)||(W.Il=g.av(function(){return HGv(W)},100))}; HGv=function(W){var J=W.mediaElement;J&&W.oa&&!W.videoData.XW&&!z8("vfp",W.jI.timerName)&&J.uJ()>=2&&!J.isEnded()&&Fr(J.qR())&&W.jI.tick("vfp");return(J=W.mediaElement)&&!W.videoData.XW&&J.getDuration()>0&&(J.isPaused()&&J.uJ()>=2&&Fr(J.qR())&&(z8("pbp",W.jI.timerName)||W.jI.tick("pbp"),!W.videoData.LA||W.Az||J.isSeeking()||(W.Az=!0,W.publish("onPlaybackPauseAtStart"))),J=J.getCurrentTime(),ek(W.I0,J))?(W.qG(),!0):!1}; evv=function(W){W.rl().oo();if(fK(W.videoData)&&Date.now()>W.N5+6283){if(!(!W.isAtLiveHead()||W.videoData.W&&Gs(W.videoData.W))){var J=W.rl();if(J.qoe){J=J.qoe;var K=J.provider.uO.HO(),I=g.YS(J.provider);prQ(J,I,K);K=K.G;isNaN(K)||g.t8(J,I,"e2el",[K.toFixed(3)])}}W.Y("html5_alc_live_log_rawlat")?(J=W.videoData,J=g.gJ(J.J())?!0:g.cw(J.J())?J.drmProduct==="6":!1):J=g.gJ(W.Ru);J&&W.WS("rawlat",{l:it(W.Ys,"rawlivelatency").toFixed(3)});W.N5=Date.now()}W.videoData.K&&KD(W.videoData.K)&&(J=W.qI())&&J.videoHeight!== W.YX&&(W.YX=J.videoHeight,U9X(W,"a",EzT(W,W.videoData.Js)))}; EzT=function(W,J){if(J.W.video.quality==="auto"&&KD(J.getInfo())&&W.videoData.kK)for(var K=g.d(W.videoData.kK),I=K.next();!I.done;I=K.next())if(I=I.value,I.getHeight()===W.YX&&I.W.video.quality!=="auto")return I.getInfo();return J.getInfo()}; D9H=function(W){if(!fK(W.videoData))return NaN;var J=0;W.loader&&W.videoData.W&&(J=hS(W.videoData)?W.loader.Dq.Lc()||0:W.videoData.W.XW);return(0,g.L)()/1E3-W.OA()-J}; bGy=function(W){W.mediaElement&&W.mediaElement.UM()&&(W.z7=(0,g.L)());W.Ru.x_?g.FW(function(){RvH(W)},0):RvH(W)}; RvH=function(W){var J;if((J=W.ww)==null||!J.iA()){if(W.mediaElement)try{W.jC=W.mediaElement.playVideo()}catch(I){A7(W,"err."+I)}if(W.jC){var K=W.jC;K.then(void 0,function(I){W.logger.debug(function(){return"playMediaElement failed: "+I}); if(!g.z(W.playerState,4)&&!g.z(W.playerState,256)&&W.jC===K)if(I&&I.name==="AbortError"&&I.message&&I.message.includes("load"))W.logger.debug(function(){return"ignore play media element failure: "+I.message}); else{var q="promise";I&&I.name&&(q+=";m."+I.name);A7(W,q);W.pn=!0;W.videoData.Da=!0}})}}}; A7=function(W,J){g.z(W.playerState,128)||(W.T$(fF(W.playerState,1028,9)),W.WS("dompaused",{r:J}),W.publish("onAutoplayBlocked"))}; q6=function(W,J){J=J===void 0?!1:J;if(!W.mediaElement||!W.videoData.G)return!1;var K=J;K=K===void 0?!1:K;var I=null;var q;if((q=W.videoData.G)==null?0:q.W){I=GGD(W,K);var S;(S=W.loader)==null||S.resume()}else nS(W),W.videoData.Js&&(I=W.videoData.Js.NH());q=W.mediaElement.XI();K=!1;q&&q.equals(I)||(BtI(W,I),K=!0);g.z(W.playerState,2)||(I=W.BN,J=J===void 0?!1:J,I.j||!(I.G>0)||I.mediaElement&&I.mediaElement.getCurrentTime()>0||(J={cN:"seektimeline_resumeTime",gk:J},I.videoData.XW||(J.seekSource=15), I.seekTo(I.G,J)));a:{J=K;if(nK(W.videoData)){if(!W.videoData.pQ())break a}else if(!g.yM(W.videoData))break a;if(W.mediaElement)if((I=W.videoData.j)&&W.mediaElement.Ac()){q=g.E(W.mediaElement.v7());if(W.zz)if(q!==W.zz.element)h7(W);else if(J&&I.flavor==="fairplay"&&!z_())h7(W);else break a;if(W.Y("html5_report_error_for_unsupported_tvos_widevine")&&z_()&&I.flavor==="widevine")W.Za("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{W.zz=new ceA(q,W.videoData,W.Ru); W.zz.subscribe("licenseerror",W.CH,W);W.zz.subscribe("qualitychange",W.Kzu,W);W.zz.subscribe("heartbeatparams",W.Xu,W);W.zz.subscribe("keystatuseschange",W.OJ,W);W.zz.subscribe("ctmp",W.WS,W);J=g.d(W.oU.keys);for(I=J.next();!I.done;I=J.next())I=W.oU.get(I.value),W.zz.U4(I);W.Y("html5_eme_loader_sync")||W.oU.removeAll()}}else W.Za("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return K}; BtI=function(W,J){W.jI.tick("vta");YM("vta",void 0,"video_to_ad");W.getCurrentTime()>0&&Rqc(W.BN,W.getCurrentTime());W.mediaElement.activate(J);W.ww&&KL(4);!W.videoData.XW&&W.playerState.isOrWillBePlaying()&&W.Ye.start();if(ZGH(W)){var K;if(J=(K=W.mediaElement)==null?void 0:K.audioTracks())J.onchange=function(){W.publish("internalaudioformatchange",W.videoData,!0)}}}; h7=function(W){W.zz&&(W.zz.dispose(),W.zz=null)}; m9D=function(W){var J=J===void 0?!1:J;W.logger.debug("reattachVideoSource");W.mediaElement&&(W.ww?(h7(W),W.Fb(),GGD(W,J)):(W.videoData.Js&&W.videoData.Js.q6(),W.mediaElement.stopVideo()),W.playVideo())}; rbI=function(W,J){W.Ru.Y("html5_log_rebuffer_reason")&&(J={r:J,lact:gb()},W.mediaElement&&(J.bh=qe(W.mediaElement)),W.WS("bufreason",J))}; ozQ=function(W,J){if(W.Ru.ND()&&W.mediaElement){var K=W.mediaElement.RZ();K.omt=(W.mediaElement.getCurrentTime()+W.nE()).toFixed(3);K.ps=W.playerState.state.toString(16);K.rt=(Tr(W.rl())*1E3).toFixed();K.e=J;W.Yn[W.yR++%5]=K}try{if(J==="timeupdate"||J==="progress")return}catch(I){}W.logger.debug(function(){return"video element event "+J})}; L8c=function(W){if(W.Ru.ND()){W.Yn.sort(function(I,q){return+I.rt-+q.rt}); for(var J=g.d(W.Yn),K=J.next();!K.done;K=J.next())K=K.value,W.WS("vpe",Object.assign({t:K.rt},K));W.Yn=[];W.yR=0}}; kGL=function(W){if(g.ov("cobalt")&&g.ov("nintendo switch")){var J=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;W.WS("nxdock",{d:J})}}; fS=function(W,J){var K;(K=W.loader)==null||vB(K,J)}; F8Q=function(W){i3(W.videoData,"html5_set_debugging_opt_in")&&(W=g.mr(),g.ri(0,183)||(Ln(183,!0),W.save()))}; n0D=function(W,J){W.Ok.QX()||(W.WS("sgap",{f:J}),W.Ok.clearQueue(!1,J==="pe"))}; YN=function(W){return W.Y("html5_disable_video_player_initiated_seeks")&&nK(W.videoData)}; zvc=function(W){Xf.call(this,W);var J=this;this.events=new g.BW(W);g.B(this,this.events);AY(this.api,"isLifaAdPlaying",function(){return J.api.isLifaAdPlaying()}); this.events.D(W,"serverstitchedvideochange",function(){var K;(K=J.api.getVideoData())!=null&&K.rf()&&(J.api.isLifaAdPlaying()?(J.playbackRate=J.api.getPlaybackRate(),J.api.setPlaybackRate(1)):J.api.setPlaybackRate(J.playbackRate))}); this.playbackRate=1}; vzD=function(W){Xf.call(this,W);var J=this;this.events=new g.BW(W);g.B(this,this.events);AY(this.api,"seekToChapterWithAnimation",function(K){J.seekToChapterWithAnimation(K)}); AY(this.api,"seekToTimeWithAnimation",function(K,I){J.seekToTimeWithAnimation(K,I)}); AY(this.api,"renderChapterSeekingAnimation",function(K,I,q){J.api.renderChapterSeekingAnimation(K,I,q)}); AY(this.api,"setMacroMarkers",function(K){J.setMacroMarkers(W,K)}); AY(this.api,"changeMarkerVisibility",function(K,I,q){J.changeMarkerVisibility(K,I,q)}); AY(this.api,"isSameMarkerTypeVisible",function(K){return J.isSameMarkerTypeVisible(K)})}; Y0Q=function(W,J,K){var I=W.api.getCurrentTime()*1E30&&q>0&&(K.width+=q,g.bj(J.element,"width",K.width+"px")));W.size=K}}; g.$x=function(W,J){var K=W.W[W.W.length-1];K!==J&&(W.W.push(J),ysD(W,K,J))}; g.xx=function(W){if(!(W.W.length<=1)){var J=W.W.pop(),K=W.W[0];W.W=[K];ysD(W,J,K,!0)}}; ysD=function(W,J,K,I){UGy(W);J&&(J.unsubscribe("size-change",W.Ab,W),J.unsubscribe("back",W.UW,W));K.subscribe("size-change",W.Ab,W);K.subscribe("back",W.UW,W);if(W.W7){g.lK(K.element,I?"ytp-panel-animate-back":"ytp-panel-animate-forward");K.MN(W.element);K.focus();W.element.scrollLeft=0;W.element.scrollTop=0;var q=W.size;dGv(W);g.s5(W.element,q);W.S=new g.P0(function(){ZeH(W,J,K,I)},20,W); W.S.start()}else K.MN(W.element),J&&J.detach()}; ZeH=function(W,J,K,I){W.S.dispose();W.S=null;g.lK(W.element,"ytp-popup-animating");I?(g.lK(J.element,"ytp-panel-animate-forward"),g.A5(K.element,"ytp-panel-animate-back")):(g.lK(J.element,"ytp-panel-animate-back"),g.A5(K.element,"ytp-panel-animate-forward"));g.s5(W.element,W.size);W.Z=new g.P0(function(){g.A5(W.element,"ytp-popup-animating");J.detach();g.D3(J.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);W.Z.dispose();W.Z=null},250,W); W.Z.start()}; UGy=function(W){W.S&&g.Wq(W.S);W.Z&&g.Wq(W.Z)}; OR=function(W){g.GK.call(this,W,"ytp-shopping-product-menu");this.Rc=new g.M6(this.X);g.B(this,this.Rc);this.hide();g.$x(this,this.Rc);g.EY(this.X,this.element,4)}; CMD=function(W,J,K){var I,q=J==null?void 0:(I=J.text)==null?void 0:I.simpleText;q&&(K=Q1H(W,K,q,J==null?void 0:J.icon,J==null?void 0:J.secondaryIcon),J.navigationEndpoint&&K.listen("click",function(){W.X.qN("innertubeCommand",J.navigationEndpoint);W.hide()},W))}; wtA=function(W,J,K){var I,q=J==null?void 0:(I=J.text)==null?void 0:I.simpleText;q&&Q1H(W,K,q,J==null?void 0:J.icon).listen("click",function(){var S;(J==null?void 0:(S=J.icon)==null?void 0:S.iconType)==="HIDE"?W.X.publish("featuredproductdismissed"):J.serviceEndpoint&&W.X.qN("innertubeCommand",J.serviceEndpoint);W.hide()},W)}; Q1H=function(W,J,K,I,q){J=new g.Y0(g.sY({},[],!1,!!q),J,K);q&&J.updateValue("secondaryIcon",MAQ(q));J.setIcon(MAQ(I));g.B(W,J);W.Rc.df(J,!0);return J}; MAQ=function(W){if(!W)return null;switch(W.iconType){case "ACCOUNT_CIRCLE":return{V:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{V:"path",U:{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{V:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{V:"path",U:{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 F9Q();case "HIDE":return{V:"svg",U:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{V:"g",L:[{V:"path",U:{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 M4()}}; TK=function(W){CS.call(this,W,!1,!0);this.isCounterfactual=this.K=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.N=!0;this.overflowButton=new g.k({V:"button",au:["ytp-featured-product-overflow-icon","ytp-button"],U:{"aria-haspopup":"true"}});this.overflowButton.hide();g.B(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.k({V:"img",B:"ytp-suggested-action-badge-img",U:{src:"{{url}}"}}); this.thumbnailImage.hide();g.B(this,this.thumbnailImage);this.thumbnailIcon=new g.k({V:"div",B:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.B(this,this.thumbnailIcon);this.banner=new g.k({V:"a",B:"ytp-suggested-action-container",L:[this.thumbnailImage,this.thumbnailIcon,{V:"div",B:"ytp-suggested-action-details",L:[{V:"text",B:"ytp-suggested-action-title",Ky:"{{title}}"},{V:"text",B:"ytp-suggested-action-subtitle",Ky:"{{subtitle}}"},{V:"text",B:"ytp-suggested-action-metadata-text", Ky:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.B(this,this.banner);this.banner.MN(this.G.element);this.D(this.X,"videodatachange",this.onVideoDataChange);this.D(this.X,g.n9("suggested_action_view_model"),this.UD3);this.D(this.X,g.AN("suggested_action_view_model"),this.Cby);this.D(this.overflowButton.element,"click",this.lL);this.D(W,"featuredproductdismissed",this.OO);this.X.createServerVe(this.banner.element,this.banner,!0)}; gHv=function(W){W.isInitialized&&(W.enabled=W.isVisible,W.sI=W.isVisible,Qr(W),W.nU(),W.thumbnailImage.WN(W.isVisible),W.shouldHideDismissButton||W.dismissButton.WN(W.isVisible),W.shouldShowOverflowButton&&W.overflowButton.WN(W.isVisible))}; H9=function(){TK.apply(this,arguments)}; G7Q=function(W){Xf.call(this,W);this.W=new H9(this.api);g.B(this,this.W);g.EY(this.api,this.W.element,4)}; Vr=function(W){Xf.call(this,W);var J=this;this.W="";this.G=!0;this.K=this.api.Y("html5_enable_audio_track_stickiness_phase_two");var K=new g.BW(W);g.B(this,K);K.D(W,"internalaudioformatchange",function(I,q){$Gy(J,I,q)}); K.D(W,"videoplayerreset",function(){xGQ(J)}); K.D(W,"videodatachange",function(I,q){J.onVideoDataChange(I,q)})}; $Gy=function(W,J,K){if(K){var I="";if(OeI(W,J)&&(I=J,W.K||(W.W=J),W.api.Y("html5_sabr_enable_server_xtag_selection"))){if(K=W.api.getVideoData(void 0,!0))K.JO=J;W.api.J().Js=J}if(W.K&&I&&TrH(W,I)){XzL(W.api,W.W||I);var q;Qz(lL(W.api.J(),(q=W.api.getVideoData())==null?void 0:g.m7(q)),function(S){HeQ(W,I,S)})}}}; xGQ=function(W){if(W.W)VAX(W);else{var J;if(W.K&&((J=iS())==null?0:J.size)){var K;Qz(lL(W.api.J(),(K=W.api.getVideoData())==null?void 0:g.m7(K)),function(I){if((I=EHL(I))&&TrH(W,I)){var q=W.api.getVideoData(void 0,!0);q&&(q.JO=I);W.api.J().Js=I}})}}}; VAX=function(W){var J=W.api.getVideoData(void 0,!0);J&&(J.JO=W.W)}; HeQ=function(W,J,K){EHL(K)!==J&&(eaQ([{settingItemId:ER(K),settingOptionValue:{stringValue:J}}]),Qz(W.d$(),function(I){ST0(I,ER(K),{stringValue:J})}))}; RaX=function(W,J){Ca(Qz(Qz(W.d$(),function(K){return Iuy(K,[ER(J)])}),function(K){if(K){K=g.d(K); for(var I=K.next();!I.done;I=K.next()){var q=I.value;I=q.key;q=q.value;I&&q&&(eaQ([{settingItemId:I,settingOptionValue:q}]),xGQ(W))}}}),function(){W.G=!0})}; OeI=function(W,J){W=W.api.getAvailableAudioTracks();W=g.d(W);for(var K=W.next();!K.done;K=W.next())if(K=K.value,K.getLanguageInfo().getId()===J)return K;return null}; EHL=function(W){W=ER(W);var J=iS();W=J?J.get(W):void 0;return W&&W.stringValue?W.stringValue:""}; ER=function(W){var J=(484).toString();W&&(J=(483).toString());return J}; TrH=function(W,J){var K;return J.split(".")[0]!==""&&((K=W.api.getVideoData())==null?void 0:!LK(K))}; eaQ=function(W){var J=iS();J||(J=new Map);W=g.d(W);for(var K=W.next();!K.done;K=W.next())K=K.value,J.set(K.settingItemId,K.settingOptionValue);J=JSON.stringify(Object.fromEntries(J));g.Hd("yt-player-user-settings",J,2592E3)}; g.ei=function(W,J,K,I,q,S,p){g.Y0.call(this,g.sY({"aria-haspopup":"true"}),J,W);this.VP=I;this.N=!1;this.G=null;this.options={};this.K=new g.M6(K,void 0,W,q,S,p);g.B(this,this.K);this.listen("keydown",this.GM);this.listen("click",this.open)}; be0=function(W){if(W.G){var J=W.options[W.G];J.element.getAttribute("aria-checked");J.element.setAttribute("aria-checked","false");W.G=null}}; BrL=function(W,J){g.ei.call(this,"Temporizador de apagado",g.jh.SLEEP_TIMER,W,J);this.X=W;this.C={};this.S=this.gp("Off");this.Z=this.W="";W.Y("web_settings_menu_icons")&&this.setIcon({V:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{V:"path",U:{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.T=new g.k({V:"div",au:["ytp-menuitem-label-wrapper"],L:[{V:"div",Ky:"Fin del video"},{V:"div",au:["ytp-menuitem-sublabel"],Ky:"{{content}}"}]});g.B(this,this.T);this.listen("click",this.onClick);this.D(W,"videodatachange",this.onVideoDataChange);this.D(W,"presentingplayerstatechange",this.hs);this.D(W,"settingsMenuVisibilityChanged",this.pDK);W.createClientVe(this.element,this,218889);this.hs();this.X.qN("onSleepTimerFeatureAvailable")}; mGH=function(W){var J="Off 10 15 20 30 45 60".split(" "),K;((K=W.X.getVideoData())==null?0:K.isLivePlayback)||J.push("End of video");K=W.X.getPlaylist();var I;K&&((I=K.listId)==null?void 0:I.type)!=="RD"&&J.push("End of playlist");W.P4(g.zC(J,W.gp));W.C=g.Ro(J,W.gp,W);J=W.gp("End of video");W.options[J]&&g.vl(W.options[J],W.T)}; rsH=function(W,J){var K=W.C[J],I=K==="End of video"||K==="End of playlist";K==="Off"&&(W.W="");W.X.getPlayerState()!==0&&W.X.getPlayerState()!==5||!I?(W.S=J,g.ei.prototype.ly.call(W,J),W.eE(J),W.X.qN("onSleepTimerSettingsChanged",K)):W.X.qN("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; R7=function(W){Xf.call(this,W);var J=this;W.addEventListener("settingsMenuInitialized",function(){J.menuItem||(J.menuItem=new BrL(J.api,J.api.xg()),g.B(J,J.menuItem))}); W.addEventListener("openSettingsMenuItem",function(K){if(K==="menu_item_sleep_timer"){if(!J.menuItem){var I;(I=J.api.xg())==null||I.oZ()}J.menuItem.open()}}); AY(W,"resetSleepTimerMenuSettings",function(){J.resetSleepTimerMenuSettings()}); AY(W,"setSleepTimerTimeLeft",function(K){J.setSleepTimerTimeLeft(K)}); AY(W,"setVideoTimeLeft",function(K){J.setVideoTimeLeft(K)})}; oHH=function(W){Xf.call(this,W);var J=this;this.events=new g.BW(W);g.B(this,this.events);this.events.D(W,"onSnackbarMessage",function(K){switch(K){case 1:K=J.api.getPlayerStateObject(),K.isBuffering()&&g.z(K,8)&&g.z(K,16)&&J.api.qN("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.B9=function(W,J,K,I,q){J=J===void 0?!1:J;I=I===void 0?!1:I;q=q===void 0?!1:q;g.Ao.call(this);this.C=q;this.Z=!1;this.T=new gi(this);this.j=this.S=null;this.G=this.K=!1;g.B(this,this.T);this.target=W;this.W=J;this.N=K||W;this.Z=I;J&&(g.ca&&this.target.setAttribute("draggable","true"),q||(this.target.style.touchAction="none"));bt(this)}; mg=function(W){g.$d(W.T,!W.W)}; bt=function(W){W.j=null;W.S=null;W.D(rC("over"),W.oV);W.D("touchstart",W.qh);W.W&&W.D(rC("down"),W.PbZ)}; LRc=function(W,J){for(var K=0;Kq.start&&K>=5;y+=Q}t=y.substr(0,4)+" "+y.substr(4,4)+" "+y.substr(8,4)+" "+(y.substr(12,4)+" "+y.substr(16,4))}else t="";p={video_id_and_cpn:String(J.videoId)+" / "+t,codecs:"", dims_and_frames:"",bandwidth_kbps:p.toFixed(0)+" Kbps",buffer_health_seconds:A.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:D?"":"display:none",drm:D,debug_info:K,extra_debug_info:"",bandwidth_style:h,network_activity_style:h,network_activity_bytes:n.toFixed(0)+" KB",shader_info:f,shader_info_style:f?"":"display:none",playback_categories:""};n=I.clientWidth+"x"+I.clientHeight+(q>1?"*"+q.toFixed(2):"");A="-";S.totalVideoFrames&&(A=(S.droppedVideoFrames||0)+" dropped of "+S.totalVideoFrames); p.dims_and_frames=n+" / "+A;W=W.getVolume();n=agc(J);var T;if((T=J.T)==null?0:T.audio.K)T="VB";else{var H;T=((H=J.T)==null?0:H.audio.W)?"DRC":Math.round(W*n)+"%"}H=Math.round(W)+"% / "+T;T=J.mA.toFixed(1);isFinite(Number(T))&&(H+=" (content loudness "+T+"dB)");p.volume=H;p.resolution=I.videoWidth+"x"+I.videoHeight;if(I=J.K){if(H=I.video)T=H.fps,T>1&&(p.resolution+="@"+T),(T=S.Zg)&&T.video&&(p.resolution+=" / "+T.video.width+"x"+T.video.height,T.video.fps>1&&(p.resolution+="@"+T.video.fps)),p.codecs= cs0(I),!J.T||I.audio&&I.video?I.wP&&(p.codecs+=" / "+I.wP+"A"):p.codecs+=" / "+cs0(J.T),H.W||H.primaries?(T=H.W||"unknown",T==="smpte2084"?T+=" (PQ)":T==="arib-std-b67"&&(T+=" (HLG)"),p.color=T+" / "+(H.primaries||"unknown"),p.color_style=""):p.color_style="display:none";if(I.debugInfo)for(p.fmt_debug_info="",I=g.d(I.debugInfo),H=I.next();!H.done;H=I.next())H=H.value,p.fmt_debug_info+=H.label+":"+H.text+" ";p.fmt_debug_info_style=p.fmt_debug_info&&p.fmt_debug_info.length>0?"":"display:none"}I=J.isLivePlayback; H=J.jP;p.live_mode_style=I||H?"":"display:none";p.live_latency_style=I?"":"display:none";if(H)p.live_mode="Post-Live"+(hS(J)?" Manifestless":"");else if(I){H=S.Fi;p.live_latency_secs=H.toFixed(2)+"s";I=hS(J)?"Manifestless, ":"";J.sI&&(I+="Windowed, ");T="Uncertain";if(H>=0&&H<120)if(J.latencyClass&&J.latencyClass!=="UNKNOWN")switch(J.latencyClass){case "NORMAL":T="Optimized for Normal Latency";break;case "LOW":T="Optimized for Low Latency";break;case "ULTRALOW":T="Optimized for Ultra Low Latency"; break;default:T="Unknown Latency Setting"}else T=J.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";I+=T;(H=S.HG)&&(I+=", seq "+H.sequence);p.live_mode=I}!S.isGapless||S7(J)&&S.QX||(p.playback_categories+="Gapless ");p.playback_categories_style=p.playback_categories?"":"display:none";p.bandwidth_samples=S.JF;p.network_activity_samples=S.Zb;p.live_latency_samples=S.Ll;p.buffer_health_samples=S.aj;S=g.Yh(J);if(J.cotn||S)p.cotn_and_local_media=(J.cotn?J.cotn:"null")+ " / "+S;p.cotn_and_local_media_style=p.cotn_and_local_media?"":"display:none";i3(J,"web_player_release_debug")?(p.release_name=l[35],p.release_style=""):p.release_style="display:none";p.debug_info&&F.length>0&&p.debug_info.length+F.length<=60?p.debug_info+=" "+F:p.extra_debug_info=F;p.extra_debug_info_style=p.extra_debug_info&&p.extra_debug_info.length>0?"":"display:none";return p}; cs0=function(W){var J=/codecs="([^"]*)"/.exec(W.mimeType);return J&&J[1]?J[1]+" ("+W.itag+")":W.itag}; sR=function(W,J,K,I,q){g.k.call(this,{V:"div",B:"ytp-horizonchart"});this.Z=J;this.sampleCount=K;this.T=I;this.S=q;this.index=0;this.heightPx=-1;this.G=this.K=null;this.W=Math.round(W/K);this.element.style.width=this.W*this.sampleCount+"px";this.element.style.height=this.Z+"em"}; c9=function(W,J){if(W.heightPx===-1){var K=null;try{K=g.E(g.i5("CANVAS")),W.K=K.getContext("2d")}catch(n){}if(W.K){var I=W.W*W.sampleCount;W.G=K;W.G.width=I;W.G.style.width=I+"px";W.element.appendChild(W.G)}else for(W.sampleCount=Math.floor(W.sampleCount/4),W.W*=4,K=0;K1?2:1,W.G.height=W.heightPx*K, W.G.style.height=W.heightPx+"px",W.K.scale(1,K)));J=g.d(J);for(I=J.next();!I.done;I=J.next()){K=W;var q=W.index,S=I.value;for(I=0;I+20&&g.Ii(J.G.element);I.classList.add("ytp-timely-actions-overlay");J.G.element.appendChild(I)}); g.B(this,this.G);g.EY(this.api,this.G.element,4)}; fUA=function(W){W.timelyActions&&(W.T=W.timelyActions.reduce(function(J,K){if(K.cueRangeId===void 0)return J;J[K.cueRangeId]=0;return J},{}))}; Jb=function(W,J){if(W.timelyActions){W=g.d(W.timelyActions);for(var K=W.next();!K.done;K=W.next())if(K=K.value,K.cueRangeId===J)return K}}; hlT=function(W,J){if((W=Jb(W,J))&&W.onCueRangeExit)return Bm(W.onCueRangeExit)}; iV=function(W){if(W.W!==void 0){var J=(J=Jb(W,W.W))&&J.onCueRangeEnter?Bm(J.onCueRangeEnter):void 0;var K=Jb(W,W.W);a:if(K&&K.additionalTrigger){var I=g.d(K.additionalTrigger);for(var q=I.next();!q.done;q=I.next())if(q=q.value,q.type){var S=void 0,p=void 0;if((S=W.C[q.type])==null?0:S((p=q.args)!=null?p:{})){I=!0;break a}}I=!1}else I=!0;J&&I&&(W.api.qN("innertubeCommand",J),W.setTimeout(K),W.T[W.W]!==void 0&&W.T[W.W]++,W.S=!0)}}; nOQ=function(W,J){return W.K===void 0?!1:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(J.seekLengthMilliseconds)===5E3?W.K===72:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(J.seekLengthMilliseconds)===1E4?W.K===74:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(J.seekLengthMilliseconds)===5E3?W.K===71:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(J.seekLengthMilliseconds)===1E4?W.K===73:!1}; A3Q=function(W){if(W=W.getWatchNextResponse()){var J,K;W=(J=W.playerOverlays)==null?void 0:(K=J.playerOverlayRenderer)==null?void 0:K.timelyActionsOverlayViewModel;J=g.m(W,tsQ);if(J!=null&&J.timelyActions)return J==null?void 0:J.timelyActions.map(function(I){return g.m(I,F3A)}).filter(function(I){return!!I})}}; aUQ=function(W){Xf.call(this,W);var J=this;DJ(this.api,"getPlaybackRate",function(){return J.api.getPlaybackRate()}); DJ(this.api,"setPlaybackRate",function(K){typeof K==="number"&&J.api.setPlaybackRate(K)})}; KG=function(W,J,K,I){Sh.call(this,"VOICE_BOOST",g.jh.Z6);this.W=!1;this.X=W;this.VP=W.xg();this.T=J;this.G=K;this.hasVoiceBoostAudioTrack=I;this.D(W,"videodatachange",this.K);this.setIcon(ZL0());this.subscribe("select",this.S,this);this.K()}; Ik=function(W){Xf.call(this,W);var J=this;this.events=new g.BW(W);g.B(this,this.events);this.events.D(W,"settingsMenuInitialized",function(){udH(J)}); AY(this.api,"getVoiceBoostUserPreference",function(){return J.getVoiceBoostUserPreference()}); AY(this.api,"setVoiceBoostUserPreference",function(I){J.setVoiceBoostUserPreference(I)}); AY(this.api,"hasVoiceBoostAudioTrack",function(){return J.hasVoiceBoostAudioTrack()}); var K;this.W=(K=LmQ())!=null?K:0;this.updateEnvironmentData()}; udH=function(W){W.menuItem||(W.menuItem=new KG(W.api,function(J){W.setVoiceBoostUserPreference(J)},function(){return W.getVoiceBoostUserPreference()},function(){return W.hasVoiceBoostAudioTrack()}),g.B(W,W.menuItem))}; Nuy=function(W){W=W.xm();if(!W)return!1;W=g.qU(W).exp||"";return W.includes("xpv")||W.includes("xpe")}; d0A=function(W){W=g.d(g.q9(W,!0));for(var J=W.next();!J.done;J=W.next())if(Nuy(J.value))return!0;return!1}; y30=function(W,J){W=g.d(g.q9(W,!0));for(var K=W.next();!K.done;K=W.next())if(K=K.value,Nuy(K)){var I={potc:"1",pot:J};K.url&&(K.url=SC(K.url,I))}}; U0H=function(W){return g.V(function(J){if(J.K==1)return g.yQ(J,2),g.O(J,W,4);if(J.K!=2)return g.Cv(J,0);g.g0(J);g.d0(J)})}; pG=function(W){Xf.call(this,W);var J=this;this.useLivingRoomPoToken=!1;this.j=new g.FB;this.W=!1;this.jI=null;this.N=!1;this.T=null;this.S=!1;var K=W.J().getWebPlayerContextConfig();this.events=new g.BW(W);g.B(this,this.events);this.events.D(W,"spsumpreject",function(I,q,S){J.S=q;I&&J.N&&!J.T&&(J.Y("html5_generate_content_po_token")&&S?J.tb(S):J.Y("html5_generate_session_po_token")&&ZOy(J));J.T||J.api.WS("stp",{s:+J.N,b:+J.S})}); this.events.D(W,"poTokenVideoBindingChange",function(I){J.tb(I)}); this.useLivingRoomPoToken=!(K==null||!K.useLivingRoomPoToken);W.addEventListener("csiinitialized",function(){J.jI=W.VN();var I=(J.Y("html5_generate_session_po_token")||J.Y("html5_generate_content_po_token"))&&!J.useLivingRoomPoToken;try{if(J.Y("html5_use_shared_owl_instance"))QRQ(J);else if(I){J.jI.dK("pot_isc");var q=g.FV(J.api.J().experiments,"html5_webpo_kaios_defer_timeout_ms");q?(J.G=r1(),g.FW(function(){SE(J)},q)):J.Y("html5_webpo_idle_priority_job")?(J.G=r1(),g.XJ(g.iH(),function(){SE(J)})): SE(J)}}catch(S){S instanceof Error&&g.ET(S)}}); W.addEventListener("trackListLoaded",this.w$.bind(this));W.WX(this)}; CwQ=function(W){var J=q8(W.experiments,"html5_web_po_request_key");return J?J:g.$w(W)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; wfc=function(W){var J=new I$H,K={},I=(K["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",K);return new UL(J,W,function(){return I})}; Msy=function(W){return new ZW(W)}; lV=function(W,J){W.Y("html5_webpo_bge_ctmp")&&W.api.WS(J,{hwpo:!!W.K,hwpor:W.W})}; QRQ=function(W){var J,K;g.V(function(I){if(I.K==1)return lV(W,"swpo_i"),W.G=r1(),nG(W),g.O(I,lR(),2);if(I.K!=3)return J=I.W,lV(W,"swpo_co"),g.O(I,EEH(J),3);K=I.W;W.Y("html5_web_po_token_disable_caching")||K.Wr(150);W.K=K;lV(W,"swpo_cc");U0H(K.pJ()).then(function(){W.W=!0;W.j.resolve();lV(W,"swpo_re")}); g.FW(function(){SE(W);lV(W,"swpo_si")},0); g.d0(I)})}; G2y=function(W){var J=W.api.J(),K=wfc(CwQ(J)),I=K.Aj.bind(K);K.Aj=function(n){var A;return g.V(function(D){if(D.K==1)return g.O(D,I(n),2);A=D.W;W.api.WS("itr",{});return D.return(A)})}; try{var q=Msy({wi:K,D2:{maxAttempts:5},v2:{JC:"CLEn",disable:J.experiments.HS("html5_web_po_disable_remote_logging")||gOy.includes(g.gM(J.I7)||""),cR:$eQ(J.experiments),RQZ:W.Y("wpo_dis_lfdms")?0:1E3},eQK:g.ET});var S=new Bg({n7:q,wi:K,onError:g.ET});U0H(S.pJ()).then(function(){W.W=!0;W.j.resolve()}); W.Y("html5_web_po_token_disable_caching")||S.Wr(150);g.B(W,q);g.B(W,S);W.K=S}catch(n){g.ET(n);var p;(p=q)==null||p.dispose()}}; SE=function(W){var J=W.api.J();W.jI.dK("pot_ist");W.K||G2y(W);W.Y("html5_bandaid_attach_content_po_token")||(W.Y("html5_generate_session_po_token")&&(nG(W),ZOy(W)),J=g.FV(J.experiments,"html5_session_po_token_interval_time_ms")||0,J>0&&(W.Z=g.av(function(){nG(W)},J)),W.N=!0)}; nG=function(W){var J,K,I,q;g.V(function(S){if(!W.Y("html5_generate_session_po_token")||W.useLivingRoomPoToken)return S.return();J=W.api.J();K=g.Yf("EOM_VISITOR_DATA")||g.Yf("VISITOR_DATA");I=J.Jl?J.datasyncId:K;q=q8(J.experiments,"html5_mock_content_binding_for_session_token")||J.livingRoomPoTokenId||I;J.Nu=Ab(W,q);g.d0(S)})}; Ab=function(W,J){if(!W.K){if(W.G)try{return W.G(J)}catch(S){g.ET(S)}return""}try{W.jI.dK(W.W?"pot_cms":"pot_csms");var K={Ig:!0,iQ:!0,MX:J};W.Y("html5_web_po_token_disable_caching")||(K.VE={OB:J,NE:!0,lB:!0});var I=W.K.Hn(K);W.jI.dK(W.W?"pot_cmf":"pot_csmf");if(W.W){var q;(q=W.T)==null||q.resolve();W.T=null;W.S&&(W.S=!1,W.api.app.As().O4(!1))}return I}catch(S){return g.ET(S),""}}; ZOy=function(W){W.K&&(W.T=new JO,W.j.promise.then(function(){W.jI.dK("pot_if");nG(W)}))}; Dr=function(W){Xf.call(this,W);var J=this,K=new g.BW(W);g.B(this,K);K.D(W,"fullscreentoggled",function(I){$0A(J,I)}); AY(this.api,"setFullscreenQuickActions",function(I){J.setFullscreenQuickActions(I)}); AY(this.api,"setPlayerOverlayVideoDetailsRenderer",function(I){J.setPlayerOverlayVideoDetailsRenderer(I)})}; $0A=function(W,J){W.W&&g.PY(W.W,J);W.playerOverlayVideoDetailsRenderer&&g.PY(W.playerOverlayVideoDetailsRenderer,J)}; x0y=function(W){Xf.call(this,W);var J=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.BW(W);g.B(this,this.events);this.events.D(W,"heartbeatRequest",function(K){if(J.freePreviewUsageDetails.length||J.freePreviewWatchedDuration!==null)K.heartbeatRequestParams||(K.heartbeatRequestParams={}),K.heartbeatRequestParams.unpluggedParams||(K.heartbeatRequestParams.unpluggedParams={}),J.freePreviewUsageDetails.length>0?K.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= J.freePreviewUsageDetails:K.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+J.freePreviewWatchedDuration}}); AY(W,"setFreePreviewWatchedDuration",function(K){J.freePreviewWatchedDuration=K}); AY(W,"setFreePreviewUsageDetails",function(K){J.freePreviewUsageDetails=K})}; jE=function(W){g.R.call(this);this.features=[];var J=this.W,K=new wa(W),I=new Wv(W),q=new ut(W),S=new pG(W);var p=g.gJ(W.J())?void 0:new Nh(W);var n=new a7(W),A=new iOy(W),D=new aUQ(W),f=new C1(W);var h=g.gJ(W.J())?new x0y(W):void 0;var t=W.Y("html5_enable_ssap")?new s10(W):void 0;var F=W.Y("web_cinematic_watch_settings")&&(F=W.J().getWebPlayerContextConfig())!=null&&F.cinematicSettingsAvailable?new t6(W):void 0;var a=new QB(W);var y=W.Y("enable_courses_player_overlay_purchase")?new $qQ(W):void 0; var U=g.X2(W.J())?new w1X(W):void 0;var Q=new da(W);var C=W.J().T?new dqv(W):void 0;var T=g.xK(W.J())?new NZT(W):void 0;var H=W.Y("web_player_move_autonav_toggle")&&W.J().Ym?new Dqy(W):void 0;var b=g.X2(W.J())?new vzD(W):void 0;var c=W.Y("web_enable_speedmaster")&&g.X2(W.J())?new kx(W):void 0;var v=W.J().yk?void 0:new lU0(W);var Kv=W.Y("report_pml_debug_signal")?new p1I(W):void 0;var qI=new ptc(W),WH=new UR(W);var nv=g.Bh(W.J())?new a2c(W):void 0;var P=navigator.mediaSession&&window.MediaMetadata&& W.J().Ou?new t7(W):void 0;var UH=W.Y("html5_enable_drc")&&!W.J().S?new u$(W):void 0;var MI=new J6(W);var oy=g.X2(W.J())?new G7Q(W):void 0;var Cx=W.Y("html5_enable_d6de4")?new N6(W):void 0;var nx=g.X2(W.J())&&W.Y("web_sleep_timer")?new R7(W):void 0;var GA=g.xK(W.J())?new UqT(W):void 0;var w0=new Vr(W),qj=new Fxy(W),Z=new zvc(W);var lD=W.Y("enable_sabr_snackbar_message")?new oHH(W):void 0;var vR=W.Y("web_enable_timely_actions")?new jRH(W):void 0;var Uw=new FT(W);var $r=g.X2(W.J())?new Dr(W):void 0; W=W.Y("html5_enable_voice_boost")?new Ik(W):void 0;J.call(this,K,I,q,S,p,n,A,D,f,h,t,F,a,y,U,Q,C,T,H,b,c,v,Kv,qI,WH,nv,void 0,P,UH,MI,void 0,oy,Cx,nx,GA,void 0,w0,qj,Z,void 0,lD,vR,Uw,$r,W)}; OOv=function(){this.K=this.W=NaN}; Tuy=function(W,J){this.Ru=W;this.timerName="";this.G=!1;this.K=NaN;this.T=new OOv;this.W=J||null;this.G=!1}; HO0=function(W,J,K){var I=g.eb(J.QK)&&!J.QK.S;if(J.QK.zB&&(T4(J.QK)||J.QK.vS==="shortspage"||I0(J.QK)||I)&&!W.G){W.G=!0;W.S=J.clientPlaybackNonce;g.Yf("TIMING_ACTION")||vO("TIMING_ACTION",W.Ru.csiPageType);W.Ru.csiServiceName&&vO("CSI_SERVICE_NAME",W.Ru.csiServiceName);if(W.W){I=W.W.VN();for(var q=g.d(Object.keys(I)),S=q.next();!S.done;S=q.next())S=S.value,oC(S,I[S],W.timerName);I=g.X0(EgA)(W.W.V$);g.Lc(I,W.timerName);I=W.W;I.K={};I.V$={}}g.Lc({playerInfo:{visibilityState:g.X0(V2D)()},playerType:"LATENCY_PLAYER_HTML5"}, W.timerName);W.j!==J.clientPlaybackNonce||Number.isNaN(W.K)||(z8("_start",W.timerName)?K=g.X0(RC)("_start",W.timerName)+W.K:g.ET(new g.vd("attempted to log gapless pbs before CSI timeline started",{cpn:J.clientPlaybackNonce})));K&&!z8("pbs",W.timerName)&&fG(W,K)}}; fG=function(W,J,K){oC("pbs",J!=null?J:(0,g.L)(),K!=null?K:W.timerName)}; Vsy=function(W,J,K,I,q,S,p,n){J=(J===I?"video":"ad")+"_to_"+(K===I?"video":"ad");if(J!=="video_to_ad"||p!=null&&p.XW){p=J==="ad_to_video"?p:q;I=p==null?void 0:p.Xk;var A={};if(q==null?0:q.S)A.cttAuthInfo={token:q.S,videoId:q.videoId};S&&(A.startTime=S);kM(J,A);var D,f,h;q={targetVideoId:(D=q==null?void 0:q.videoId)!=null?D:"empty_video",targetCpn:K,adVideoId:(f=p==null?void 0:p.videoId)!=null?f:"empty_video",adClientPlaybackNonce:(h=I==null?void 0:I.cpn)!=null?h:p==null?void 0:p.clientPlaybackNonce}; I&&(q.adBreakType=I.adBreakType,q.adType=I.adType);g.Lc(q,J);fG(W,n,J)}}; tb=function(W){zBv();k30();W.timerName=""}; EOL=function(W){if(W.W){var J=W.W;J.K={};J.V$={}}W.G=!1;W.j=void 0;W.K=NaN}; elQ=function(W,J){g.Ao.call(this);this.QK=W;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.W=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.C={};this.K=0;if(W=J.session_data)this.sessionData=iX(W,"&");this.index=Math.max(0,Number(J.index)||0);this.loop=!!J.loop;this.startSeconds=Number(J.startSeconds)||0;this.title=J.playlist_title||"";this.description=J.playlist_description||"";this.author= J.author||J.playlist_author||"";J.video_id&&(this.items[this.index]=J);if(W=J.api)typeof W==="string"&&W.length===16?J.list="PL"+W:J.playlist=W;if(W=J.list)switch(J.listType){case "user_uploads":this.listId=new QA("UU","PLAYER_"+W);break;default:var K=J.playlist_length;K&&(this.length=Number(K)||0);this.listId=g.Cp(W);if(W=J.video)this.items=W.slice(0),this.loaded=!0}else if(J.playlist){W=J.playlist.toString().split(",");this.index>0&&(this.items=[]);W=g.d(W);for(K=W.next();!K.done;K=W.next())(K= K.value)&&this.items.push({video_id:K});this.length=this.items.length;if(W=J.video)this.items=W.slice(0),this.loaded=!0}this.setShuffle(!!J.shuffle);if(W=J.suggestedQuality)this.quality=W;this.C=d9(J,"playlist_");this.G=(J=J.thumbnail_ids)?J.split(","):[]}; RlT=function(W){return!!(W.playlist||W.list||W.api)}; bOy=function(W){var J=W.index+1;return J>=W.length?0:J}; BuQ=function(W){var J=W.index-1;return J<0?W.length-1:J}; g.FX=function(W,J,K,I){J=J!==void 0?J:W.index;J=W.items&&J in W.items?W.items[W.order[J]]:null;var q=null;J&&(K&&(J.autoplay="1"),I&&(J.autonav="1"),q=new g.zR(W.QK,J),g.B(W,q),q.UQ=!0,q.startSeconds=W.startSeconds||q.clipStart||0,W.listId&&(q.playlistId=W.listId.toString()));return q}; m0Q=function(W,J){W.index=g.Gm(J,0,W.length-1);W.startSeconds=0}; r3H=function(W,J){if(J.video&&J.video.length){W.title=J.title||"";W.description=J.description;W.views=J.views;W.likes=J.likes;W.dislikes=J.dislikes;W.author=J.author||"";var K=J.loop;K&&(W.loop=K);K=g.FX(W);W.items=[];for(var I=g.d(J.video),q=I.next();!q.done;q=I.next())if(q=q.value)q.video_id=q.encrypted_id,W.items.push(q);W.length=W.items.length;(J=J.index)?W.index=J:W.findIndex(K);W.setShuffle(!1);W.loaded=!0;W.K++;W.W&&W.W()}}; k2H=function(W,J){var K,I,q,S,p,n,A;return g.V(function(D){if(D.K==1){K=g.n2();var f=W.J(),h={context:g.l3(W),playbackContext:{contentPlaybackContext:{ancestorOrigins:f.ancestorOrigins}}},t=f.getWebPlayerContextConfig();if(t==null?0:t.encryptedHostFlags)h.playbackContext.contentPlaybackContext.encryptedHostFlags=t.encryptedHostFlags;if(t==null?0:t.hideInfo)h.playerParams={showinfo:!1};f=f.embedConfig;t=J.docid||J.video_id||J.videoId||J.id;if(!t){t=J.raw_embedded_player_response;if(!t){var F=J.embedded_player_response; F&&(t=JSON.parse(F))}if(t){var a,y,U,Q,C,T;t=((T=g.m((a=t)==null?void 0:(y=a.embedPreview)==null?void 0:(U=y.thumbnailPreviewRenderer)==null?void 0:(Q=U.playButton)==null?void 0:(C=Q.buttonRenderer)==null?void 0:C.navigationEndpoint,g.iE))==null?void 0:T.videoId)||null}else t=null}a=(a=t)?a:void 0;y=W.playlistId?W.playlistId:J.list;U=J.listType;if(y){var H;U==="user_uploads"?H={username:y}:H={playlistId:y};oOD(f,a,J,H);h.playlistRequest=H}else J.playlist?(H={templistVideoIds:J.playlist.toString().split(",")}, oOD(f,a,J,H),h.playlistRequest=H):a&&(H={videoId:a},f&&(H.serializedThirdPartyEmbedConfig=f),h.singleVideoRequest=H);I=h;q=g.IC(L3D);g.yQ(D,2);return g.O(D,g.Pe(K,I,q),4)}if(D.K!=2)return S=D.W,p=W.J(),J.raw_embedded_player_response=S,p.XW=AJ(J,g.xK(p)),p.G=p.XW==="EMBEDDED_PLAYER_MODE_PFL",S&&(n=S,n.trackingParams&&B1(n.trackingParams)),D.return(new g.zR(p,J));A=g.g0(D);A instanceof Error||(A=Error("b259802748"));g.Va(A);return D.return(W)})}; oOD=function(W,J,K,I){K.index&&(I.playlistIndex=String(Number(K.index)+1));I.videoId=J?J:"";W&&(I.serializedThirdPartyEmbedConfig=W)}; g.uV=function(W,J){ak.get(W);ak.set(W,J)}; g.N9=function(W){g.Ao.call(this);this.loaded=!1;this.player=W}; zl0=function(){this.K=[];this.W=[]}; g.q9=function(W,J){return J?W.W.concat(W.K):W.W}; g.dt=function(W,J){switch(J.kind){case "asr":vOc(J,W.K);break;default:vOc(J,W.W)}}; vOc=function(W,J){g.hW(J,function(K){return W.equals(K)})||J.push(W)}; g.yq=function(W){g.R.call(this);this.BS=W;this.K=new zl0;this.T=null;this.j=[];this.N=[]}; g.U0=function(W,J,K){g.yq.call(this,W);this.videoData=J;this.audioTrack=K;this.W=null;this.G=!1;this.j=J.pS;this.N=J.GF;this.G=g.Re(J)}; g.Y_0=function(W,J){var K;return W.J().Y("safari_live_drm_captions_fix")&&((K=W.getVideoData())==null?0:K.pQ())?!1:g.gJ(W.J())&&!J.isManifestless}; g.Zr=function(W,J){return pD(W.info.mimeType)?J?W.info.itag===J:!0:!1}; g.sRQ=function(W,J){if(W.W!=null&&g.Y_0(J,W.W)&&W.W.W.rawcc!=null)return!0;if(!W.dl())return!1;J=!!W.W&&W.W.isManifestless&&Object.values(W.W.W).some(function(K){return g.Zr(K,"386")}); W=!!W.W&&!W.W.isManifestless&&g.YEQ(W.W);return J||W}; g.Qq=function(W,J,K,I,q,S){g.yq.call(this,W);this.videoId=K;this.Pm=q;this.eventId=S;this.S={};this.W=null;W=I||g.qU(J).hl||"";W=W.split("_").join("-");this.G=SC(J,{hl:W})}; c3L=function(W,J){return J?{Es:W.Es&&J.Es,sync:W.sync&&J.sync,streaming:W.streaming&&J.streaming}:W}; XfX=function(W,J,K){return Qz(PwD(J,K),wZ(function(I){return function S(){return VQ(S,function(p){if(p.K==1){g.Zy(p,2);try{return p.return(new WebAssembly.Instance(I,W))}catch(n){g.ET(n)}return NI(p,Mq(WebAssembly.instantiate(I,W)),4)}if(p.K!=2)return p.return(p.W);g.$c(p);return g.OH(p,0)})}()}))}; WBQ=function(W,J){if(!W.W)return J=fetch(J),W.W=Qz(Nq(J),function(K){return K.arrayBuffer()}),Ca(W.W,function(K){W.W=void 0; K="wasm module fetch failure: "+K;g.ET(Error(K));throw K;}),J}; PwD=function(W,J){var K=iyI;if(K.K)return K.K;var I=c3L(K.capabilities,J);K.K=Ul(function(){return K.G(W,I)}); return K.K}; J1H=function(){}; KBQ=function(){var W=this;this.proc_exit=function(){}; this.fd_write=function(J,K,I){if(!W.exports)return 1;J=new Uint32Array(W.exports.memory.buffer,K,I*2);K=[];for(var q=0;q=11;W=W.api.J().Z&&E0;return!(!J&&!W)}; vP=function(W,J){return!W.api.isInline()&&!BKy(W,wi(J))&&g.gc(J)}; byH=function(W){W.Bw.UR();if(W.FR&&W.fZ)W.fZ=!1;else if(!W.api.J().Y3&&!W.k_()){var J=W.api.getPlayerStateObject();g.z(J,2)&&g.G5(W.api)||W.XS(J);!W.api.J().eZ||J.isCued()||g.z(J,1024)?W.Lz():W.A7.isActive()?(W.nD(),W.A7.stop()):W.A7.start()}}; r10=function(W,J){var K;if((K=W.api.getVideoData())==null?0:K.mutedAutoplay){var I,q;if((I=J.target)==null?0:(q=I.className)==null?0:q.includes("ytp-info-panel"))return!1}return g.gc(J)&&W.api.isMutedByMutedAutoplay()?(W.api.unMute(),W.api.getPresentingPlayerType()===2&&W.api.playVideo(),J=W.api.getPlayerStateObject(),!g.z(J,4)||g.z(J,8)||g.z(J,2)||W.Lz(),!0):!1}; o3A=function(W,J,K){W.api.isFullscreen()?K<1-J&&W.api.toggleFullscreen():K>1+J&&W.api.toggleFullscreen()}; RcT=function(W){var J=Lz()&&mQ()>=67&&!W.api.J().Z;W=W.api.J().disableOrganicUi;return!g.ov("tizen")&&!g8&&!J&&!W}; g.Yz=function(W){g.k.call(this,{V:"div",L:[{V:"div",B:"ytp-bezel-text-wrapper",L:[{V:"div",B:"ytp-bezel-text",Ky:"{{title}}"}]},{V:"div",B:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},L:[{V:"div",B:"ytp-bezel-icon",Ky:"{{icon}}"}]}]});this.X=W;this.K=new g.P0(this.show,10,this);W=this.X.Y("delhi_modern_web_player")?1E3:500;this.W=new g.P0(this.hide,W,this);g.B(this,this.K);g.B(this,this.W);this.hide()}; cP=function(W,J,K){if(J<=0){K=Os();J="silenciado";var I=0}else K=K?{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,U:{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"}}]}:{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,U:{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"}}]},I=Math.floor(J),J=I+"volumen";s0(W,K,J,I+"%")}; LBQ=function(W,J){J=J?{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{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"}}]}:txQ();var K=W.X.getPlaybackRate(),I=g.dF("La velocidad es de $RATE",{RATE:String(K)});s0(W,J,I,K+"x")}; kP0=function(W,J){J=J?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";s0(W,hWA(),J)}; s0=function(W,J,K,I){I=I===void 0?"":I;W.updateValue("label",K===void 0?"":K);W.updateValue("icon",J);g.iK(W.W);W.K.start();W.updateValue("title",I);g.jN(W.element,"ytp-bezel-text-hide",!I)}; zcQ=function(W,J){g.k.call(this,{V:"button",au:["ytp-button","ytp-cards-button"],U:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.xK(W.J()))},L:[{V:"span",B:"ytp-cards-button-icon-default",L:[{V:"div",B:"ytp-cards-button-icon",L:[W.J().Y("player_new_info_card_format")?uSv():{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{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"}}]}]}, {V:"div",B:"ytp-cards-button-title",Ky:"Informaci\u00f3n"}]},{V:"span",B:"ytp-cards-button-icon-shopping",L:[{V:"div",B:"ytp-cards-button-icon",L:[{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",B:"ytp-svg-shadow",U:{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"}},{V:"path",B:"ytp-svg-fill",U:{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"}},{V:"path",B:"ytp-svg-shadow-fill",U:{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"}}]}]},{V:"div", B:"ytp-cards-button-title",Ky:"Shopping"}]}]});this.X=W;this.K=J;this.W=null;this.fade=new g.qf(this,250,!0,100);g.B(this,this.fade);g.jN(this.K,"ytp-show-cards-title",g.xK(W.J()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.lG(!0)}; v3T=function(W,J){g.k.call(this,{V:"div",B:"ytp-cards-teaser",L:[{V:"div",B:"ytp-cards-teaser-box"},{V:"div",B:"ytp-cards-teaser-text",L:W.J().Y("player_new_info_card_format")?[{V:"button",B:"ytp-cards-teaser-info-icon",U:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},L:[uSv()]},{V:"span",B:"ytp-cards-teaser-label",Ky:"{{text}}"},{V:"button",B:"ytp-cards-teaser-close-button",U:{"aria-label":"Cerrar"},L:[g.Zb()]}]:[{V:"span",B:"ytp-cards-teaser-label",Ky:"{{text}}"}]}]});var K=this;this.X= W;this.TG=J;this.fade=new g.qf(this,250,!1,250);this.W=null;this.Z=new g.P0(this.vK8,300,this);this.S=new g.P0(this.MnW,2E3,this);this.T=[];this.K=null;this.N=new g.P0(function(){K.element.style.margin="0"},250); this.onClickCommand=this.G=null;g.B(this,this.fade);g.B(this,this.Z);g.B(this,this.S);g.B(this,this.N);W.J().Y("player_new_info_card_format")?(g.lK(W.getRootNode(),"ytp-cards-teaser-dismissible"),this.D(this.T8("ytp-cards-teaser-close-button"),"click",this.v0),this.D(this.T8("ytp-cards-teaser-info-icon"),"click",this.BX),this.D(this.T8("ytp-cards-teaser-label"),"click",this.BX)):this.listen("click",this.BX);this.D(J.element,"mouseover",this.NJ);this.D(J.element,"mouseout",this.DQ);this.D(W,"cardsteasershow", this.zeO);this.D(W,"cardsteaserhide",this.ZJ);this.D(W,"cardstatechange",this.F$);this.D(W,"presentingplayerstatechange",this.F$);this.D(W,"appresize",this.L0);this.D(W,"onShowControls",this.L0);this.D(W,"onHideControls",this.QD);this.listen("mouseenter",this.SR)}; YyI=function(W){g.k.call(this,{V:"button",au:[PP.BUTTON,PP.TITLE_NOTIFICATIONS],U:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},L:[{V:"div",B:PP.TITLE_NOTIFICATIONS_ON,U:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},L:[g.w4()]},{V:"div",B:PP.TITLE_NOTIFICATIONS_OFF,U:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},L:[{V:"svg",U:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},L:[{V:"path",U:{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.W=!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")}; spQ=function(W,J){W.W=J;W.element.classList.toggle(PP.NOTIFICATIONS_ENABLED,W.W);var K=W.api.getVideoData();K?(J=J?K.V2:K.Q2)?(W=W.api.d$())?ce(W,J):g.Va(Error("No innertube service available when updating notification preferences.")):g.Va(Error("No update preferences command available.")):g.Va(Error("No video data when updating notification preferences."))}; PAQ=function(W,J,K){var I=I===void 0?800:I;var q=q===void 0?600:q;var S=document.location.protocol;W=iUv(S+"//"+W+"/signin?context=popup","feature",J,"next",S+"//"+location.hostname+"/post_login");c1y(W,K,I,q)}; c1y=function(W,J,K,I){K=K===void 0?800:K;I=I===void 0?600:I;if(W=g.Kw(window,W,"loginPopup","width="+K+",height="+I+",resizable=yes,scrollbars=yes"))tCL(function(){J()}),W.moveTo((screen.width-K)/2,(screen.height-I)/2)}; g.XX=function(W,J,K,I,q,S,p,n,A,D,f,h){W=W.charAt(0)+W.substring(1).toLowerCase();K=K.charAt(0)+K.substring(1).toLowerCase();if(J==="0"||J==="-1")J=null;if(I==="0"||I==="-1")I=null;var t=f.J(),F=t.userDisplayName&&g.eb(t);g.k.call(this,{V:"div",au:["ytp-button","ytp-sb"],L:[{V:"div",B:"ytp-sb-subscribe",U:F?{title:g.dF("Suscribirse como $USER_NAME",{USER_NAME:t.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":qY(t),"data-tooltip-opaque":String(g.xK(t)),tabindex:"0",role:"button"}: {"aria-label":"Suscribirse al canal"},L:[{V:"div",B:"ytp-sb-text",L:[{V:"div",B:"ytp-sb-icon"},W]},J?{V:"div",B:"ytp-sb-count",Ky:J}:""]},{V:"div",B:"ytp-sb-unsubscribe",U:F?{title:g.dF("Suscrito como $USER_NAME",{USER_NAME:t.userDisplayName}),"aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":qY(t),"data-tooltip-opaque":String(g.xK(t)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},L:[{V:"div",B:"ytp-sb-text",L:[{V:"div",B:"ytp-sb-icon"},K]}, I?{V:"div",B:"ytp-sb-count",Ky:I}:""]}],U:{"aria-live":"polite"}});var a=this;this.channelId=p;this.X=f;this.G=h;var y=this.T8("ytp-sb-subscribe"),U=this.T8("ytp-sb-unsubscribe");S&&g.lK(this.element,"ytp-sb-classic");if(q){n?this.W():this.K();var Q=function(){if(t.G8){var T=a.channelId;if(A||D){var H={c:T};var b;g.La.isInitialized()&&(b=xT0(H));H=b||"";if(b=f.getVideoData())if(b=b.subscribeCommand){var c=f.d$();c?(ce(c,b,{botguardResponse:H,feature:A}),f.qN("SUBSCRIBE",T)):g.Va(Error("No innertube service available when updating subscriptions."))}else g.Va(Error("No subscribe command in videoData.")); else g.Va(Error("No video data available when updating subscription."))}U.focus();U.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")}else PAQ(g.vw(a.X.J()),"sb_button",a.T)},C=function(){var T=a.channelId; if(A||D){var H=g.E(f.getVideoData());ce(g.E(f.d$()),H.unsubscribeCommand,{feature:A});f.qN("UNSUBSCRIBE",T)}y.focus();y.removeAttribute("aria-hidden");U.setAttribute("aria-hidden","true")}; this.D(y,"click",Q);this.D(U,"click",C);this.D(y,"keypress",function(T){T.keyCode===13&&Q(T)}); this.D(U,"keypress",function(T){T.keyCode===13&&C(T)}); this.D(f,"SUBSCRIBE",this.W);this.D(f,"UNSUBSCRIBE",this.K);this.G&&F&&(s80(f),wk(f,y,this),wk(f,U,this))}else g.lK(y,"ytp-sb-disabled"),g.lK(U,"ytp-sb-disabled")}; i7y=function(W){g.k.call(this,{V:"div",B:"ytp-title-channel",L:[{V:"div",B:"ytp-title-beacon"},{V:"a",B:"ytp-title-channel-logo",U:{href:"{{channelLink}}",target:W.J().C,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{V:"div",B:"ytp-title-expanded-overlay",U:{"aria-hidden":"{{flyoutUnfocusable}}"},L:[{V:"div",B:"ytp-title-expanded-heading",L:[{V:"div",B:"ytp-title-expanded-title",L:[{V:"a",Ky:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:W.J().C,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{V:"div",B:"ytp-title-expanded-subtitle",Ky:"{{expandedSubtitle}}",U:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var J=this;this.api=W;this.channel=this.T8("ytp-title-channel");this.K=this.T8("ytp-title-channel-logo");this.channelName=this.T8("ytp-title-expanded-title");this.S=this.T8("ytp-title-expanded-overlay");this.G=this.W=this.subscribeButton=null;this.T=!1;W.createClientVe(this.K,this,36925);W.createClientVe(this.channelName,this, 37220);g.xK(this.api.J())&&XVy(this);this.D(W,"videodatachange",this.hs);this.D(W,"videoplayerreset",this.hs);this.D(this.channelName,"click",function(K){J.api.logClick(J.channelName);g.Kw(window,WqD(J));K.preventDefault()}); this.D(this.K,"click",this.ri8);this.hs()}; JCL=function(W){if(!W.api.J().qD){var J=g.E(W.api.getVideoData()),K=new g.XX("Suscribirse",null,"Suscrito/a",null,!0,!1,J.qB,J.subscribed,"channel_avatar",null,W.api,!0);W.api.createServerVe(K.element,W);var I;W.api.setTrackingParams(K.element,((I=J.subscribeButtonRenderer)==null?void 0:I.trackingParams)||null);W.D(K.element,"click",function(){W.api.logClick(K.element)}); W.subscribeButton=K;g.B(W,W.subscribeButton);W.subscribeButton.MN(W.S);W.subscribeButton.hide();var q=new YyI(W.api);W.W=q;g.B(W,q);q.MN(W.S);q.hide();W.D(W.api,"SUBSCRIBE",function(){J.sS&&(q.show(),W.api.logVisibility(q.element,!0))}); W.D(W.api,"UNSUBSCRIBE",function(){J.sS&&(q.hide(),W.api.logVisibility(q.element,!1),spQ(q,!1))})}}; XVy=function(W){var J=W.api.J();JCL(W);W.updateValue("flyoutUnfocusable","true");W.updateValue("channelTitleFocusable","-1");W.updateValue("shouldHideExpandedTitleForA11y","true");W.updateValue("shouldHideExpandedSubtitleForA11y","true");J.K||J.OI||(W.D(W.channel,"mouseenter",W.mL),W.D(W.channel,"mouseleave",W.J9),W.D(W.channel,"focusin",W.mL),W.D(W.channel,"focusout",function(K){W.channel.contains(K.relatedTarget)||W.J9()})); W.G=new g.P0(function(){W.isExpanded()&&(W.api.logVisibility(W.channelName,!1),W.subscribeButton&&(W.subscribeButton.hide(),W.api.logVisibility(W.subscribeButton.element,!1)),W.W&&(W.W.hide(),W.api.logVisibility(W.W.element,!1)),W.channel.classList.remove("ytp-title-expanded"),W.channel.classList.add("ytp-title-show-collapsed"))},500); g.B(W,W.G);W.D(W.channel,Kq0,function(){ImI(W)}); W.D(W.api,"onHideControls",W.w9);W.D(W.api,"appresize",W.w9);W.D(W.api,"fullscreentoggled",W.w9)}; ImI=function(W){W.channel.classList.remove("ytp-title-show-collapsed");W.channel.classList.remove("ytp-title-show-expanded")}; qzL=function(W){var J=W.api.getPlayerSize();return g.xK(W.api.J())&&J.width>=524}; WqD=function(W){var J=W.api.J(),K=g.E(W.api.getVideoData()),I=g.So(J)+K.sT;g.qw(K)&&(I="https://music.youtube.com"+K.sT);if(!g.xK(J))return I;J={};g.fl(W.api,"addEmbedsConversionTrackingParams",[J]);return g.Vw(I,J)}; Wt=function(W){var J=g.sY({"aria-haspopup":"true"});g.Y0.call(this,J,W);this.listen("keydown",this.W)}; iM=function(W,J){W.element.setAttribute("aria-haspopup",String(J))}; SzQ=function(W,J){g.k.call(this,{V:"div",B:"ytp-user-info-panel",U:{"aria-label":"Informaci\u00f3n del usuario"},L:W.J().G8&&!W.Y("embeds_web_always_enable_signed_out_state")?[{V:"div",B:"ytp-user-info-panel-icon",Ky:"{{icon}}"},{V:"div",B:"ytp-user-info-panel-content",L:[{V:"div",B:"ytp-user-info-panel-info",U:{tabIndex:"{{userInfoFocusable}}",role:"text"},Ky:"{{watchingAsUsername}}"},{V:"div",B:"ytp-user-info-panel-info",U:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Ky:"{{watchingAsEmail}}"}]}]: [{V:"div",B:"ytp-user-info-panel-icon",Ky:"{{icon}}"},{V:"div",B:"ytp-user-info-panel-content",L:[{V:"div",L:[{V:"text",U:{tabIndex:"{{userInfoFocusable}}"},Ky:"Saliste de la cuenta"}]},{V:"div",B:"ytp-user-info-panel-login",L:[{V:"a",U:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Ky:W.J().qD?"":"Acceder a YouTube"}]}]}]});this.BS=W;this.W=J;W.J().G8||W.J().qD||this.D(this.T8("ytp-user-info-panel-login"),"click",this.jR);this.closeButton=new g.k({V:"button",au:["ytp-collapse","ytp-button"],U:{title:"Cerrar"}, L:[g.xT()]});this.closeButton.MN(this.element);g.B(this,this.closeButton);this.D(window,"blur",this.hide);this.D(document,"click",this.xr);this.hs()}; lmQ=function(W,J,K){g.M6.call(this,W);this.VP=J;this.ZV=K;this.getVideoUrl=new Wt(6);this.m4=new Wt(5);this.ZX=new Wt(4);this.RZ=new Wt(3);this.y4=new g.Y0(g.sY({href:"{{href}}",target:this.X.J().C},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.Y0(g.sY(),1,"Estad\u00edsticas");this.yz=new g.to({V:"div",au:["ytp-copytext","ytp-no-contextmenu"],U:{draggable:"false",tabindex:"1"},Ky:"{{text}}"});this.Mb=new wC(this.X,this.yz);this.kS=this.Rs=null;g.xK(this.X.J())&& (this.closeButton=new g.k({V:"button",au:["ytp-collapse","ytp-button"],U:{title:"Cerrar"},L:[g.xT()]}),g.B(this,this.closeButton),this.closeButton.MN(this.element),this.closeButton.listen("click",this.XM,this));g.xK(this.X.J())&&(this.Fg=new g.Y0(g.sY(),8,"Cuenta"),g.B(this,this.Fg),this.df(this.Fg,!0),this.Fg.listen("click",this.kzs,this),W.createClientVe(this.Fg.element,this.Fg,137682));this.X.J().f_&&(this.OS=new Sh("En bucle",7),g.B(this,this.OS),this.df(this.OS,!0),this.OS.listen("click",this.gKy, this),W.createClientVe(this.OS.element,this.OS,28661));g.B(this,this.getVideoUrl);this.df(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Wz8,this);W.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.B(this,this.m4);this.df(this.m4,!0);this.m4.listen("click",this.PUs,this);W.createClientVe(this.m4.element,this.m4,28660);g.B(this,this.ZX);this.df(this.ZX,!0);this.ZX.listen("click",this.uDO,this);W.createClientVe(this.ZX.element,this.ZX,28658);g.B(this,this.RZ);this.df(this.RZ, !0);this.RZ.listen("click",this.RN8,this);g.B(this,this.y4);this.df(this.y4,!0);this.y4.listen("click",this.xky,this);g.B(this,this.showVideoInfo);this.df(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.H7K,this);g.B(this,this.yz);this.yz.listen("click",this.yiy,this);g.B(this,this.Mb);J=document.queryCommandSupported&&document.queryCommandSupported("copy");sy0("Chromium")>=43&&(J=!0);sy0("Firefox")<=40&&(J=!1);J&&(this.Rs=new g.k({V:"textarea",B:"ytp-html5-clipboard",U:{readonly:"", tabindex:"-1"}}),g.B(this,this.Rs),this.Rs.MN(this.element));var I;(I=this.Fg)==null||I.setIcon(UVy());var q;(q=this.OS)==null||q.setIcon({V:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{V:"path",U:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.RZ.setIcon({V:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{V:"path",U:{"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.y4.setIcon(F9Q());this.showVideoInfo.setIcon(atv());this.D(W,"onLoopChange",this.onLoopChange);this.D(W,"videodatachange",this.onVideoDataChange);pJA(this);this.M0(g.E(this.X.getVideoData()))}; Js=function(W,J){var K=!1;if(W.Rs){var I=W.Rs.element;I.value=J;I.select();try{K=document.execCommand("copy")}catch(q){}}K?W.VP.ZJ():(W.yz.qv(J,"text"),g.$x(W.VP,W.Mb),Do(W.yz.element),W.Rs&&(W.Rs=null,pJA(W)));return K}; pJA=function(W){var J=!!W.Rs;g.vl(W.RZ,J?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");iM(W.RZ,!J);g.vl(W.ZX,J?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");iM(W.ZX,!J);g.vl(W.getVideoUrl,J?"Copiar URL del video":"Obtener la URL del video");iM(W.getVideoUrl,!J);g.vl(W.m4,J?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");iM(W.m4,!J);W.ZX.setIcon(J?ftH():null);W.getVideoUrl.setIcon(J? QI():null);W.m4.setIcon(J?QI():null)}; nyH=function(W){return g.xK(W.X.J())?W.Fg:W.OS}; D2H=function(W,J){g.GK.call(this,W);this.ZV=J;this.T=new g.BW(this);this.PS=new g.P0(this.u0y,1E3,this);this.sI=this.G=null;g.B(this,this.T);g.B(this,this.PS);J=this.X.J();W.createClientVe(this.element,this,28656);g.lK(this.element,"ytp-contextmenu");this.X.J().experiments.HS("delhi_modern_web_player")&&g.X2(J)&&g.lK(this.element,"ytp-delhi-modern-contextmenu");ACQ(this);this.hide()}; ACQ=function(W){g.$d(W.T);var J=W.X.J();J.playerStyle==="gvn"||J.K||J.OI||(J=W.X.UI(),W.T.D(J,"contextmenu",W.tIy),W.T.D(J,"touchstart",W.onTouchStart,null,!0),W.T.D(J,"touchmove",W.SK,null,!0),W.T.D(J,"touchend",W.SK,null,!0))}; jmL=function(W){W.X.isFullscreen()?g.EY(W.X,W.element,10):W.MN(Ll(W).body)}; Ke=function(W,J,K){K=K===void 0?240:K;g.k.call(this,{V:"button",au:["ytp-button","ytp-copylink-button"],U:{title:"{{title-attr}}","data-tooltip-opaque":String(g.xK(W.J()))},L:[{V:"div",B:"ytp-copylink-icon",Ky:"{{icon}}"},{V:"div",B:"ytp-copylink-title",Ky:"Copiar v\u00ednculo",U:{"aria-hidden":"true"}}]});this.api=W;this.W=J;this.K=K;this.visible=!1;this.tooltip=this.W.wb();J=W.J();this.tooltip.element.setAttribute("aria-live","polite");g.jN(this.element,"ytp-show-copylink-title",g.xK(J));W.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.D(W,"videodatachange",this.hs);this.D(W,"videoplayerreset",this.hs);this.D(W,"appresize",this.hs);this.hs();this.addOnDisposeCallback(g.Cl(this.tooltip,this.element))}; fmD=function(W){var J=W.api.J(),K=g.E(W.api.getVideoData()),I=W.api.UI().getPlayerSize().width;J=J.G;return!!K.videoId&&I>=W.K&&K.Ph&&!g.IV(K)&&!W.api.isEmbedsShortsMode()&&!J}; hGH=function(W){W.updateValue("icon",d4());if(W.api.J().K)W.tooltip.Ms(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.fQ();W.tooltip.Ms(W.element);var J=W.listen("mouseleave",function(){W.aZ(J);W.hs();W.tooltip.g8()})}}; tjQ=function(W,J){return g.V(function(K){if(K.K==1)return g.yQ(K,2),g.O(K,navigator.clipboard.writeText(J),4);if(K.K!=2)return K.return(!0);g.g0(K);var I=K.return,q=!1,S=g.i5("TEXTAREA");S.value=J;S.setAttribute("readonly","");var p=W.api.getRootNode();p.appendChild(S);if(zq){var n=window.getSelection();n.removeAllRanges();var A=g.E(document.createRange());A.selectNodeContents(S);n.addRange(A);S.setSelectionRange(0,J.length)}else S.select();try{q=document.execCommand("copy")}catch(D){}p.removeChild(S); return I.call(K,q)})}; FqQ=function(W){g.k.call(this,{V:"div",B:"ytp-doubletap-ui-legacy",L:[{V:"div",B:"ytp-doubletap-fast-forward-ve"},{V:"div",B:"ytp-doubletap-rewind-ve"},{V:"div",B:"ytp-doubletap-static-circle",L:[{V:"div",B:"ytp-doubletap-ripple"}]},{V:"div",B:"ytp-doubletap-overlay-a11y"},{V:"div",B:"ytp-doubletap-seek-info-container",L:[{V:"div",B:"ytp-doubletap-arrows-container",L:[{V:"span",B:"ytp-doubletap-base-arrow"},{V:"span",B:"ytp-doubletap-base-arrow"},{V:"span",B:"ytp-doubletap-base-arrow"}]},{V:"div", B:"ytp-doubletap-tooltip",L:[{V:"div",B:"ytp-seek-icon-text-container",L:[{V:"div",B:"ytp-seek-icon",Ky:"{{seekIcon}}"},{V:"div",B:"ytp-chapter-seek-text-legacy",Ky:"{{seekText}}"}]},{V:"div",B:"ytp-doubletap-tooltip-label",Ky:"{{seekTime}}"}]}]}]});this.X=W;this.T=new g.P0(this.show,10,this);this.K=new g.P0(this.hide,700,this);this.Z=this.G=0;this.PS=this.S=!1;this.W=this.T8("ytp-doubletap-static-circle");g.B(this,this.T);g.B(this,this.K);this.hide();this.N=this.T8("ytp-doubletap-fast-forward-ve"); this.C=this.T8("ytp-doubletap-rewind-ve");this.X.createClientVe(this.N,this,28240);this.X.createClientVe(this.C,this,28239);this.X.logVisibility(this.N,!0);this.X.logVisibility(this.C,!0);this.S=W.Y("web_show_cumulative_seek_time");this.PS=W.Y("web_center_static_circles")}; am0=function(W,J){J=g.dF("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:J.toString()});W.updateValue("seekTime",J)}; u4A=function(W){CS.call(this,W,!1,!0);this.XW=[];this.oG=[];this.N=!0;this.badge.element.classList.add("ytp-featured-product");this.vS=new g.k({V:"div",B:"ytp-featured-product-open-in-new"});g.B(this,this.vS);this.countdownTimer=new g.k({V:"text",B:"ytp-featured-product-countdown",Ky:"{{content}}"});this.countdownTimer.hide();g.B(this,this.countdownTimer);this.K=new g.k({V:"div",B:"ytp-featured-product-trending",L:[{V:"div",B:"ytp-featured-product-trending-icon"},{V:"text",B:"ytp-featured-product-trending-text", Ky:"{{trendingOffer}}"}]});this.K.hide();g.B(this,this.K);this.overflowButton=new g.k({V:"button",au:["ytp-featured-product-overflow-icon","ytp-button"],U:{"aria-haspopup":"true"}});this.overflowButton.hide();g.B(this,this.overflowButton);this.Z=new g.k({V:"text",B:"ytp-featured-product-exclusive-countdown",Ky:"{{content}}",U:{id:"exclusiveCountdown","aria-hidden":"true"}});this.Z.hide();g.B(this,this.Z);this.S=new g.k({V:"div",B:"ytp-featured-product-exclusive-container",U:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, L:[{V:"div",B:"ytp-featured-product-exclusive-badge-container",L:[{V:"div",B:"ytp-featured-product-exclusive-badge",L:[{V:"text",B:"ytp-featured-product-exclusive-badge-text",Ky:"{{exclusive}}",U:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.Z]});this.S.hide();g.B(this,this.S);this.banner=new g.k({V:"a",B:"ytp-featured-product-container",L:[{V:"div",B:"ytp-featured-product-thumbnail",L:[{V:"img",U:{src:"{{thumbnail}}"}},this.vS]},{V:"div",B:"ytp-featured-product-details",L:[{V:"text",B:"ytp-featured-product-title", Ky:"{{title}}"},this.X.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{V:"div",B:"ytp-featured-product-price-container",U:{"aria-label":"{{priceA11yText}}"},L:[{V:"text",B:"ytp-featured-product-price-when-promotion-text-enabled",Ky:"{{price}}",U:{"aria-hidden":"true"}},{V:"text",B:"ytp-featured-product-promotion-text",Ky:"{{promotionText}}",U:{"aria-hidden":"true"}}]}:{V:"div",U:{"aria-label":"{{priceA11yText}}"},L:[{V:"text",B:"ytp-featured-product-price",Ky:"{{price}}", U:{"aria-hidden":"true"}},{V:"text",B:"ytp-featured-product-sales-original-price",Ky:"{{salesOriginalPrice}}",U:{"aria-hidden":"true"}},{V:"text",B:"ytp-featured-product-price-drop-reference-price",Ky:"{{priceDropReferencePrice}}",U:{"aria-hidden":"true"}}]},this.X.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{V:"div",B:"ytp-featured-product-when-promotion-text-enabled",L:[{V:"text",B:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",Ky:"{{affiliateDisclaimer}}"}, this.K,{V:"text",B:"ytp-featured-product-vendor-when-promotion-text-enabled",Ky:"{{vendor}}"}]}:{V:"div",L:[{V:"text",B:"ytp-featured-product-affiliate-disclaimer",Ky:"{{affiliateDisclaimer}}"},this.X.Y("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.S:null,this.K,{V:"text",B:"ytp-featured-product-vendor",Ky:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.B(this,this.banner);this.banner.MN(this.G.element);this.D(this.X,g.n9("featured_product"),this.hJy);this.D(this.X, g.AN("featured_product"),this.o_);this.D(this.X,"videodatachange",this.onVideoDataChange);this.D(this.overflowButton.element,"click",this.iL);this.D(W,"featuredproductdismissed",this.OO)}; NSQ=function(W){var J,K;W=(J=W.W)==null?void 0:(K=J.bannerData)==null?void 0:K.itemData;var I,q,S;return(W==null||!W.affiliateDisclaimer)&&(W==null?0:(I=W.exclusivesData)==null?0:I.exclusiveOfferLabelText)&&(W==null?0:(q=W.exclusivesData)==null?0:q.expirationTimestampMs)&&(W==null?0:(S=W.exclusivesData)==null?0:S.exclusiveOfferCountdownText)?!0:!1}; yCL=function(W){var J,K,I,q,S=(J=W.W)==null?void 0:(K=J.bannerData)==null?void 0:(I=K.itemData)==null?void 0:(q=I.exclusivesData)==null?void 0:q.expirationTimestampMs;J=(Number(S)-Date.now())/1E3;if(J>0){if(J<604800){var p,n,A,D;K=(p=W.W)==null?void 0:(n=p.bannerData)==null?void 0:(A=n.itemData)==null?void 0:(D=A.exclusivesData)==null?void 0:D.exclusiveOfferCountdownText;if(K!==void 0)for(p=Date.now(),n=g.d(K),A=n.next();!A.done;A=n.next())if(A=A.value,A!==void 0&&A.text!==void 0&&(D=Number(A.textDisplayStartTimestampMs), !isNaN(D)&&p>=D)){A.insertCountdown?(J=A.text.replace(/\$0/,String($R({seconds:J}))),W.Z.qv(J)):W.Z.qv(A.text);W.Z.show();break}}var f,h,t,F;W.S.update({exclusive:(f=W.W)==null?void 0:(h=f.bannerData)==null?void 0:(t=h.itemData)==null?void 0:(F=t.exclusivesData)==null?void 0:F.exclusiveOfferLabelText});W.S.show();I1(W);var a;(a=W.Fz)==null||a.start()}else d2L(W)}; d2L=function(W){var J;(J=W.Fz)==null||J.stop();W.Z.hide();W.S.hide();qG(W)}; U2I=function(W){var J,K,I=(J=W.W)==null?void 0:(K=J.bannerData)==null?void 0:K.itemData;return W.X.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(I==null||!I.priceReplacementText)&&(I==null?0:I.promotionText)?I==null?void 0:I.promotionText.content:null}; Z7Q=function(W){var J,K,I=(J=W.W)==null?void 0:(K=J.bannerData)==null?void 0:K.itemData,q,S;if(!(I!=null&&I.priceReplacementText||W.X.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(I==null?0:(q=I.dealsData)==null?0:(S=q.sales)==null?0:S.originalPrice)){var p,n;return I==null?void 0:(p=I.dealsData)==null?void 0:(n=p.sales)==null?void 0:n.originalPrice}return null}; QmQ=function(W){var J,K,I=(J=W.W)==null?void 0:(K=J.bannerData)==null?void 0:K.itemData,q,S,p,n;if(!((I==null?0:I.priceReplacementText)||W.X.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(I==null?0:(q=I.dealsData)==null?0:(S=q.sales)==null?0:S.originalPrice))&&(I==null?0:(p=I.dealsData)==null?0:(n=p.priceDrop)==null?0:n.referencePrice)){var A,D;return I==null?void 0:(A=I.dealsData)==null?void 0:(D=A.priceDrop)==null?void 0:D.referencePrice}return null}; CvD=function(W){var J,K,I=(J=W.W)==null?void 0:(K=J.bannerData)==null?void 0:K.itemData;if(I==null?0:I.priceReplacementText)return I==null?void 0:I.priceReplacementText;if((I==null?0:I.promotionText)&&W.X.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var q;return(I==null?void 0:I.price)+" "+(I==null?void 0:(q=I.promotionText)==null?void 0:q.content)}var S,p;if(I==null?0:(S=I.dealsData)==null?0:(p=S.sales)==null?0:p.originalPrice){var n,A;return I==null?void 0:(n=I.dealsData)== null?void 0:(A=n.sales)==null?void 0:A.salesPriceAccessibilityLabel}var D,f;if(I==null?0:(D=I.dealsData)==null?0:(f=D.priceDrop)==null?0:f.referencePrice){var h,t;return(I==null?void 0:I.price)+" "+(I==null?void 0:(h=I.dealsData)==null?void 0:(t=h.priceDrop)==null?void 0:t.referencePrice)}return I==null?void 0:I.price}; wJD=function(W){if(W.X.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var J,K,I;return W.K.W7?null:(J=W.W)==null?void 0:(K=J.bannerData)==null?void 0:(I=K.itemData)==null?void 0:I.vendorName}var q,S,p,n,A,D;return W.K.W7||W.S.W7||((q=W.W)==null?0:(S=q.bannerData)==null?0:(p=S.itemData)==null?0:p.affiliateDisclaimer)?null:(n=W.W)==null?void 0:(A=n.bannerData)==null?void 0:(D=A.itemData)==null?void 0:D.vendorName}; gyy=function(W,J){SA(W);if(J){var K=g.Ie.getState().entities;K=Kg(K,"featuredProductsEntity",J);if(K!=null&&K.productsData){J=[];K=g.d(K.productsData);for(var I=K.next();!I.done;I=K.next()){I=I.value;var q=void 0;if((q=I)!=null&&q.identifier&&I.featuredSegments){W.XW.push(I);var S=void 0;q=g.d((S=I)==null?void 0:S.featuredSegments);for(S=q.next();!S.done;S=q.next()){var p=S.value;S=MjH(p.startTimeSec);S!==void 0&&(p=MjH(p.endTimeSec),J.push(new g.p9(S*1E3,p===void 0?0x7ffffffffffff:p*1E3,{id:I.identifier, namespace:"featured_product"})))}}}W.X.qk(J)}}}; qG=function(W){if(W.trendingOfferEntityKey){var J=g.Ie.getState().entities;if(J=Kg(J,"trendingOfferEntity",W.trendingOfferEntityKey)){var K,I,q;J.encodedSkuId!==((K=W.W)==null?void 0:(I=K.bannerData)==null?void 0:(q=I.itemData)==null?void 0:q.encodedOfferSkuId)?I1(W):(W.K.update({trendingOffer:J.shortLabel+" \u2022 "+J.countLabel}),W.K.show(),W.banner.update({vendor:wJD(W)}))}else I1(W)}else I1(W)}; I1=function(W){W.K.hide();W.banner.update({vendor:wJD(W)})}; SA=function(W){W.XW=[];W.o_();W.X.iK("featured_product")}; Gyv=function(W){var J,K,I,q,S=(J=W.W)==null?void 0:(K=J.bannerData)==null?void 0:(I=K.itemData)==null?void 0:(q=I.hiddenProductOptions)==null?void 0:q.dropTimestampMs;J=(Number(S)-Date.now())/1E3;W.countdownTimer.qv($R({seconds:J}));if(J>0){var p;(p=W.SI)==null||p.start()}}; $2T=function(W){var J;(J=W.SI)==null||J.stop();W.countdownTimer.hide()}; MjH=function(W){if(W!==void 0&&W.trim()!==""&&(W=Math.trunc(Number(W.trim())),!(isNaN(W)||W<0)))return W}; Vjv=function(W,J,K){g.k.call(this,{V:"div",au:["ytp-info-panel-action-item"],L:[{V:"div",B:"ytp-info-panel-action-item-disclaimer",Ky:"{{disclaimer}}"},{V:"a",au:["ytp-info-panel-action-item-button","ytp-button"],U:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},L:[{V:"div",B:"ytp-info-panel-action-item-icon",Ky:"{{icon}}"},{V:"div",B:"ytp-info-panel-action-item-label",Ky:"{{label}}"}]}]});this.X=W;this.W=K;this.disclaimer=this.T8("ytp-info-panel-action-item-disclaimer");this.button= this.T8("ytp-info-panel-action-item-button");this.Nk=!1;this.X.createServerVe(this.element,this,!0);this.listen("click",this.onClick);W="";K=g.m(J==null?void 0:J.onTap,Rh);var I=g.m(K,g.RE);this.Nk=!1;I?(W=I.url||"",W.startsWith("//")&&(W="https:"+W),this.Nk=!0,g.cX(this.button,g.vX(W))):(I=g.m(K,x2H))&&!this.W?((W=I.phoneNumbers)&&W.length>0?(W="sms:"+W[0],I.messageText&&(W+="?&body="+encodeURI(I.messageText))):W="",this.Nk=!0,g.cX(this.button,g.vX(W,[O7y]))):(K=g.m(K,TSH))&&!this.W&&(W=K.phoneNumber? "tel:"+K.phoneNumber:"",this.Nk=!0,g.cX(this.button,g.vX(W,[H7Q])));var q;if(K=(q=J.disclaimerText)==null?void 0:q.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var S;this.update({label:(S=J.bodyText)==null?void 0:S.content,icon:M4(),disclaimer:K})}else{this.disclaimer.style.display="none";var p;this.update({label:(p=J.bodyText)==null?void 0:p.content,icon:M4()})}this.X.setTrackingParams(this.element,J.trackingParams||null);this.Nk&&(this.K={externalLinkData:{url:W}})}; Eyc=function(W,J){var K=Db();g.oV.call(this,W,{V:"div",B:"ytp-info-panel-detail-skrim",L:[{V:"div",B:"ytp-info-panel-detail",U:{role:"dialog",id:K},L:[{V:"div",B:"ytp-info-panel-detail-header",L:[{V:"div",B:"ytp-info-panel-detail-title",Ky:"{{title}}"},{V:"button",au:["ytp-info-panel-detail-close","ytp-button"],U:{"aria-label":"Cerrar"},L:[g.Zb()]}]},{V:"div",B:"ytp-info-panel-detail-body",Ky:"{{body}}"},{V:"div",B:"ytp-info-panel-detail-items"}]}]},250);this.W=J;this.items=this.T8("ytp-info-panel-detail-items"); this.G=new g.BW(this);this.itemData=[];this.T=K;this.D(this.T8("ytp-info-panel-detail-close"),"click",this.ZJ);this.D(this.T8("ytp-info-panel-detail-skrim"),"click",this.ZJ);this.D(this.T8("ytp-info-panel-detail"),"click",function(I){I.stopPropagation()}); g.B(this,this.G);this.X.createServerVe(this.element,this,!0);this.D(W,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",W.getVideoData());this.hide()}; eGD=function(W,J){W=g.d(W.itemData);for(var K=W.next();!K.done;K=W.next())K=K.value,K.X.logVisibility(K.element,J)}; BSy=function(W,J){g.k.call(this,{V:"div",B:"ytp-info-panel-preview",U:{"aria-live":"assertive","aria-atomic":"true","aria-owns":J.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.xK(W.J()))},L:[{V:"div",B:"ytp-info-panel-preview-text",Ky:"{{text}}"},{V:"div",B:"ytp-info-panel-preview-chevron",Ky:"{{chevron}}"}]});var K=this;this.X=W;this.IB=this.W=this.videoId=null;this.G=this.showControls=this.K=!1;this.D(this.element,"click",function(){W.logClick(K.element);W.k_();k0(J)}); this.fade=new g.qf(this,250,!1,100);g.B(this,this.fade);this.X.createServerVe(this.element,this,!0);this.D(W,"videodatachange",this.onVideoDataChange);this.D(W,"presentingplayerstatechange",this.dc);this.D(this.X,"paidcontentoverlayvisibilitychange",this.HW);this.D(this.X,"infopaneldetailvisibilitychange",this.HW);var I=W.getVideoData()||{};RGQ(I)&&b7I(this,I);this.D(W,"onShowControls",this.ZY);this.D(W,"onHideControls",this.Yr)}; b7I=function(W,J){if(!J.Nu||!W.X.vj()){var K=J.fL||1E4,I=RGQ(J);W.W?J.videoId&&J.videoId!==W.videoId&&(g.iK(W.W),W.videoId=J.videoId,I?(m2I(W,K,J),W.oZ()):(W.ZJ(),W.W.dispose(),W.W=null)):I&&(J.videoId&&(W.videoId=J.videoId),m2I(W,K,J),W.oZ())}}; RGQ=function(W){var J,K,I,q;return!!((J=W.Bt)==null?0:(K=J.title)==null?0:K.content)||!!((I=W.Bt)==null?0:(q=I.bodyText)==null?0:q.content)}; m2I=function(W,J,K){W.W&&W.W.dispose();W.W=new g.P0(W.oAy,J,W);g.B(W,W.W);var I;J=((I=K.Bt)==null?void 0:I.trackingParams)||null;W.X.setTrackingParams(W.element,J);var q;var S,p;if(K==null?0:(S=K.Bt)==null?0:(p=S.title)==null?0:p.content){var n;I=(q=K.Bt)==null?void 0:(n=q.title)==null?void 0:n.content;var A,D;if((A=K.Bt)==null?0:(D=A.bodyText)==null?0:D.content)I+=" \u2022 ";q=I}else q="";var f,h;K=((f=K.Bt)==null?void 0:(h=f.bodyText)==null?void 0:h.content)||"";W.update({text:q+K,chevron:g.Us()})}; rCX=function(W,J){W.W&&(g.z(J,8)?(W.K=!0,W.oZ(),W.W.start()):(g.z(J,2)||g.z(J,64))&&W.videoId&&(W.videoId=null))}; pe=function(W){var J=null;try{J=W.toLocaleString("es-419",{style:"percent"})}catch(K){J=W.toLocaleString(void 0,{style:"percent"})}return J}; lM=function(W,J){var K=0;W=g.d(W);for(var I=W.next();!(I.done||I.value.startTime>J);I=W.next())K++;return K===0?K:K-1}; oyL=function(W,J){for(var K=0,I=g.d(W),q=I.next();!q.done;q=I.next()){q=q.value;if(J=q.timeRangeStartMillis&&J0?J[0]:null;var K=g.Yj("ytp-chrome-bottom"),I=g.Yj("ytp-ad-module");W.T=!(K==null||!K.contains(J));W.N=!(I==null||!I.contains(J));W.C=!(J==null||!J.hasAttribute("data-tooltip-target-fixed"));return J}; pEy=function(W,J,K){if(!W.S){if(J){W.tooltipRenderer=J;J=W.tooltipRenderer.text;var I=!1,q;(J==null?0:(q=J.runs)==null?0:q.length)&&J.runs[0].text&&(W.update({title:J.runs[0].text.toString()}),I=!0);g.PY(W.title,I);J=W.tooltipRenderer.detailsText;q=!1;var S;if((J==null?0:(S=J.runs)==null?0:S.length)&&J.runs[0].text){I=J.runs[0].text.toString();S=I.indexOf("$TARGET_ICON");if(S>-1)if(W.tooltipRenderer.targetId){J=[];I=I.split("$TARGET_ICON");var p=new g.jV({V:"span",B:"ytp-promotooltip-details-icon", L:[q2y[W.tooltipRenderer.targetId]]});g.B(W,p);for(var n=[],A=g.d(I),D=A.next();!D.done;D=A.next())D=new g.jV({V:"span",B:"ytp-promotooltip-details-component",Ky:D.value}),g.B(W,D),n.push(D);I.length===2?(J.push(n[0].element),J.push(p.element),J.push(n[1].element)):I.length===1&&(S===0?(J.push(p.element),J.push(n[0].element)):(J.push(n[0].element),J.push(p.element)));S=J.length?J:null}else S=null;else S=I;if(S){if(typeof S!=="string")for(g.Ii(W.details),q=g.d(S),S=q.next();!S.done;S=q.next())W.details.appendChild(S.value); else W.update({details:S});q=!0}}g.PY(W.details,q);q=W.tooltipRenderer.acceptButton;S=!1;var f,h,t;((f=g.m(q,g.rD))==null?0:(h=f.text)==null?0:(t=h.runs)==null?0:t.length)&&g.m(q,g.rD).text.runs[0].text&&(W.update({acceptButtonText:g.m(q,g.rD).text.runs[0].text.toString()}),S=!0);g.PY(W.acceptButton,S);f=W.tooltipRenderer.dismissButton;h=!1;var F,a,y;((F=g.m(f,g.rD))==null?0:(a=F.text)==null?0:(y=a.runs)==null?0:y.length)&&g.m(f,g.rD).text.runs[0].text&&(W.update({dismissButtonText:g.m(f,g.rD).text.runs[0].text.toString()}), h=!0);g.PY(W.dismissButton,h)}K&&(W.G=K);W.W=IcT(W);W.Z=!1;W.X.J().Y("web_player_hide_nitrate_promo_tooltip")||W.WN(!0);S2A(W);W.W7&&!W.PS&&(W.PS=!0,W.G$.W3(0));W.K&&W.X.logVisibility(W.element,W.W7)}}; ts=function(W){W.WN(!1);W.K&&W.X.logVisibility(W.element,W.W7)}; lc0=function(W){var J,K,I,q=((J=g.m(W.acceptButton,g.rD))==null?void 0:(K=J.text)==null?void 0:(I=K.runs)==null?void 0:I.length)&&!!g.m(W.acceptButton,g.rD).text.runs[0].text,S,p,n;J=((S=g.m(W.dismissButton,g.rD))==null?void 0:(p=S.text)==null?void 0:(n=p.runs)==null?void 0:n.length)&&!!g.m(W.dismissButton,g.rD).text.runs[0].text;return q||J}; S2A=function(W){var J;if(!(J=!W.W)){J=W.W;var K=window.getComputedStyle(J);J=K.display==="none"||K.visibility==="hidden"||J.getAttribute("aria-hidden")==="true"}if(J||W.X.isMinimized())W.WN(!1);else if(J=g.cY(W.W),J.width&&J.height){W.X.Pe(W.element,W.W);var I=W.X.UI().getPlayerSize().height;K=g.cY(W.T8("ytp-promotooltip-container")).height;W.T?W.element.style.top=I-K-J.height-12+"px":W.C||(I=W.X.jl().height-K-J.height-12,W.element.style.top=I+"px");I=W.T8("ytp-promotooltip-pointer");var q=g.YE(W.W, W.X.getRootNode()),S=Number(W.element.style.left.replace(/[^\d\.]/g,""));W=W.X.isFullscreen()?18:12;I.style.left=q.x-S+J.width/2-W+"px";I.style.top=K+"px"}else W.WN(!1)}; FG=function(W){g.k.call(this,{V:"button",au:["ytp-replay-button","ytp-button"],U:{title:"Volver a reproducir"},L:[g.Gl()]});this.X=W;this.D(W,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Ap(W.getPlayerStateObject());wk(this.X,this.element,this)}; a1=function(W,J){J=J===void 0?240:J;g.k.call(this,{V:"button",au:["ytp-button","ytp-search-button"],U:{title:"Buscar","data-tooltip-opaque":String(g.xK(W.J()))},L:[{V:"div",B:"ytp-search-icon",Ky:"{{icon}}"},{V:"div",B:"ytp-search-title",Ky:"Buscar"}]});this.api=W;this.K=J;this.visible=!1;this.updateValue("icon",{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},L:[{V:"path",B:"ytp-svg-fill",U:{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.W();this.D(W,"appresize",this.W);this.D(W,"videodatachange",this.W);wk(W,this.element,this)}; uM=function(W){g.k.call(this,{V:"div",B:"ytp-seek-overlay",L:[{V:"div",au:["ytp-seek-overlay-side-container","ytp-seek-overlay-back"],L:[{V:"div",au:["ytp-seek-overlay-arrow-container","ytp-seek-overlay-arrow-container-back"]}]},{V:"div",au:["ytp-seek-overlay-side-container","ytp-seek-overlay-forward"],L:[{V:"div",au:["ytp-seek-overlay-arrow-container","ytp-seek-overlay-arrow-container-forward"]}]},{V:"div",B:"ytp-seek-overlay-message",L:[{V:"div",B:"ytp-seek-overlay-message-icon",Ky:"{{icon}}"}, {V:"div",B:"ytp-seek-overlay-message-text",Ky:"{{text}}"}]}]});this.X=W;this.K=0;this.S=!1;this.W=this.T8("ytp-seek-overlay-arrow-container-back");this.G=this.T8("ytp-seek-overlay-arrow-container-forward");this.N=this.T8("ytp-seek-overlay-message");this.X.createClientVe(this.G,this,28240);this.X.createClientVe(this.W,this,28239);this.X.logVisibility(this.G,!0);this.X.logVisibility(this.W,!0);this.hide()}; DuL=function(W,J,K){W.show();nCH(W,J);K!==void 0&&A20(W,J,K)}; nCH=function(W,J){var K=new g.jV({V:"svg",B:"ytp-seek-overlay-arrow",U:{viewBox:"0 0 100 100"},L:[{V:"path",B:"ytp-seek-overlay-arrow-path",U:{d:J===-1?"M 80 20 L 50 50 L 80 80":"M 20 20 L 50 50 L 20 80",fill:"none",stroke:"white","stroke-width":"10"}}]});g.B(W,K);J===-1?K.MN(W.W):K.MN(W.G);var I=K.element;I.animate([{translate:J===-1?"30px":"-30px",scale:"1.4 0.4",opacity:0,easing:"ease"},{offset:.15,opacity:"1",easing:"ease"},{offset:.5,translate:"0",scale:"1 1",easing:"ease"}],{duration:800}).addEventListener("finish", function(){I.remove();jSH(W)}); K.T8("ytp-seek-overlay-arrow-path").animate([{strokeWidth:"0"},{offset:.5,strokeWidth:"10"},{offset:.7,strokeWidth:"10"},{offset:1,strokeWidth:"0"}],{duration:800,easing:"ease"})}; A20=function(W,J,K){W.Z!==J&&(W.K=0,W.Z=J);W.K+=K;K=new g.jV({V:"div",B:"ytp-seek-overlay-duration",Ky:J===-1?"\u2212"+g.Mf(W.K):"+"+g.Mf(W.K)});g.B(W,K);J===-1?K.MN(W.W):K.MN(W.G);W.T&&W.T.animate([{offset:0},{offset:1,opacity:0}],{duration:300,easing:"ease",fill:"forwards"});var I=K.element;W.T=I;I.animate([{offset:0,scale:.5,opacity:0,easing:"ease-out"},{offset:.5,scale:1,opacity:1},{offset:.8,scale:1,opacity:1},{offset:1,opacity:0}],{duration:800,easing:"ease"}).addEventListener("finish",function(){I.remove(); W.T===I&&(W.T=void 0);jSH(W)})}; fcv=function(W,J,K){W.updateValue("text",J);if(K){a:{switch(K){case "PREMIUM_STANDALONE":J=CHL();break a;case "PREMIUM_STANDALONE_CAIRO":J=wMX();break a}J=void 0}W.updateValue("icon",J)}J=g.d(W.N.getAnimations());for(K=J.next();!K.done;K=J.next())K.value.cancel();W.S=!0;W.N.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:800}).addEventListener("finish",function(){W.S=!1;jSH(W);W.updateValue("text","");W.updateValue("icon","")})}; jSH=function(W){W.W.children.length!==0||W.G.children.length!==0||W.S||W.hide()}; g.NG=function(W,J,K,I){I=I===void 0?240:I;g.k.call(this,{V:"button",au:["ytp-button","ytp-share-button"],U:{title:"Compartir","aria-haspopup":"true","aria-owns":K.element.id,"data-tooltip-opaque":String(g.xK(W.J()))},L:[{V:"div",B:"ytp-share-icon",Ky:"{{icon}}"},{V:"div",B:"ytp-share-title",Ky:"Compartir"}]});this.api=W;this.W=J;this.G=K;this.T=I;this.K=this.visible=!1;this.tooltip=this.W.wb();W.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.D(W,"videodatachange",this.hs); this.D(W,"videoplayerreset",this.hs);this.D(W,"appresize",this.hs);this.D(W,"presentingplayerstatechange",this.hs);this.hs();this.addOnDisposeCallback(g.Cl(this.tooltip,this.element))}; hYH=function(W){var J=W.api.J(),K=g.E(W.api.getVideoData()),I=g.xK(J)&&g.OY(W.api)&&g.z(W.api.getPlayerStateObject(),128);J=J.G||J.disableSharing&&W.api.getPresentingPlayerType()!==2||!K.showShareButton||K.Ph||I||g.IV(K)||W.K;I=W.api.UI().getPlayerSize().width;return!!K.videoId&&I>=W.T&&!J}; tDQ=function(W,J){J.name!=="InvalidStateError"&&J.name!=="AbortError"&&(J.name==="NotAllowedError"?(W.W.k_(),k0(W.G,W.element,!1)):g.Va(J))}; acy=function(W,J){var K=Db(),I=W.J();K={V:"div",B:"ytp-share-panel",U:{id:Db(),role:"dialog","aria-labelledby":K},L:[{V:"div",B:"ytp-share-panel-inner-content",L:[{V:"div",B:"ytp-share-panel-title",U:{id:K},Ky:"Compartir"},{V:"a",au:["ytp-share-panel-link","ytp-no-contextmenu"],U:{href:"{{link}}",target:I.C,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},Ky:"{{linkText}}"},{V:"label",B:"ytp-share-panel-include-playlist",L:[{V:"input",B:"ytp-share-panel-include-playlist-checkbox", U:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{V:"div",B:"ytp-share-panel-loading-spinner",L:[A6()]},{V:"div",B:"ytp-share-panel-service-buttons",Ky:"{{buttons}}"},{V:"div",B:"ytp-share-panel-error",Ky:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{V:"button",au:["ytp-share-panel-close","ytp-button"],U:{title:"Cerrar"},L:[g.Zb()]}]};g.oV.call(this,W,K,250);var q=this;this.moreButton=null;this.api=W;this.tooltip=J.wb();this.G=[];this.S= this.T8("ytp-share-panel-inner-content");this.closeButton=this.T8("ytp-share-panel-close");this.D(this.closeButton,"click",this.ZJ);this.addOnDisposeCallback(g.Cl(this.tooltip,this.closeButton));this.T=this.T8("ytp-share-panel-include-playlist-checkbox");this.D(this.T,"click",this.hs);this.W=this.T8("ytp-share-panel-link");this.addOnDisposeCallback(g.Cl(this.tooltip,this.W));this.api.createClientVe(this.W,this,164503);this.D(this.W,"click",function(S){S.preventDefault();q.api.logClick(q.W);var p= q.api.getVideoUrl(!0,!0,!1,!1);p=FCI(q,p);g.n1(p,q.api,S)&&q.api.qN("SHARE_CLICKED")}); this.listen("click",this.DY);this.D(W,"videoplayerreset",this.hide);this.D(W,"fullscreentoggled",this.onFullscreenToggled);this.D(W,"onLoopRangeChange",this.pSh);this.hide()}; duD=function(W,J){ukL(W);for(var K=J.links||J.shareTargets,I=0,q={},S=0;S0&&!c&&!H?(T.length===2&&(T=["noreferrer"]),g.Kw(F,y,t,T[0]),F=sIQ()):(U=C.join(","),Cw()&&F.navigator&&F.navigator.standalone&&t&&t!="_self"?(U=g.i5("A"),g.cX(U,y),U.target=t,Q&&(U.rel="noreferrer"),((a=a.attributionsrc)||a==="")&&U.setAttribute("attributionsrc",a),a=document.createEvent("MouseEvent"), a.initMouseEvent("click",!0,!0,F,1),U.dispatchEvent(a),F=sIQ()):Q?(F=g.Kw(F,"",t,U),a=g.oG(y),F&&(F.opener=null,a===""&&(a="javascript:''"),a='',a=Wa(a),(y=F.document)&&y.write&&(y.write(iW(a)),y.close()))):((F=g.Kw(F,y,t,U))&&a.noopener&&(F.opener=null),F&&a.noreferrer&&(F.opener=null)));F&&(F.opener||(F.opener=window),F.focus());h.preventDefault()}}}(q)); q.yJ.addOnDisposeCallback(g.Cl(W.tooltip,q.yJ.element));n==="Facebook"?W.api.createClientVe(q.yJ.element,q.yJ,164504):n==="Twitter"&&W.api.createClientVe(q.yJ.element,q.yJ,164505);W.D(q.yJ.element,"click",function(f){return function(){W.api.logClick(f.yJ.element)}}(q)); W.api.logVisibility(q.yJ.element,!0);W.G.push(q.yJ);I++}}var A=J.more||J.moreLink,D=new g.k({V:"a",au:["ytp-share-panel-service-button","ytp-button"],L:[{V:"span",B:"ytp-share-panel-service-button-more",L:[{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{V:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{V:"path",U:{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"}}]}]}],U:{href:A,target:"_blank",title:"M\u00e1s"}});D.listen("click",function(f){var h=A;W.api.logClick(W.moreButton.element);h=FCI(W,h);g.n1(h,W.api,f)&&W.api.qN("SHARE_CLICKED")}); D.addOnDisposeCallback(g.Cl(W.tooltip,D.element));W.api.createClientVe(D.element,D,164506);W.D(D.element,"click",function(){W.api.logClick(D.element)}); W.api.logVisibility(D.element,!0);W.G.push(D);W.moreButton=D;W.updateValue("buttons",W.G)}; FCI=function(W,J){var K={};g.xK(W.api.J())&&(g.fl(W.api,"addEmbedsConversionTrackingParams",[K]),J=g.Vw(J,K));return J}; ukL=function(W){for(var J=g.d(W.G),K=J.next();!K.done;K=J.next())K=K.value,K.detach(),g.hE(K);W.G=[]}; dr=function(W){return W===void 0||W.startSec===void 0||W.endSec===void 0?!1:!0}; y2A=function(W,J){W.startSec+=J;W.endSec+=J}; ZfH=function(W){CS.call(this,W);this.K=this.W=this.isContentForward=this.Z=!1;UuL(this);this.D(this.X,"changeProductsInVideoVisibility",this.WHh);this.D(this.X,"videodatachange",this.onVideoDataChange)}; QSD=function(W){W.S&&W.jZ.element.removeChild(W.S.element);W.S=void 0}; wEQ=function(W,J){return J.map(function(K){var I,q;if((K=(I=g.m(K,COQ))==null?void 0:(q=I.thumbnail)==null?void 0:q.thumbnails)&&K.length!==0)return K[0].url}).filter(function(K){return K!==void 0}).map(function(K){K=new g.k({V:"img", B:"ytp-suggested-action-product-thumbnail",U:{alt:"",src:K}});g.B(W,K);return K})}; MDQ=function(W,J){W.isContentForward=J;g.jN(W.badge.element,"ytp-suggested-action-badge-content-forward",J)}; ys=function(W){var J=W.isContentForward&&!W.Yk();g.jN(W.badge.element,"ytp-suggested-action-badge-preview-collapsed",J&&W.W);g.jN(W.badge.element,"ytp-suggested-action-badge-preview-expanded",J&&W.K)}; UB=function(W,J,K){return new g.p9(W*1E3,J*1E3,{priority:9,namespace:K})}; gCT=function(W){W.X.iK("shopping_overlay_visible");W.X.iK("shopping_overlay_preview_collapsed");W.X.iK("shopping_overlay_preview_expanded");W.X.iK("shopping_overlay_expanded")}; UuL=function(W){W.D(W.X,g.n9("shopping_overlay_visible"),function(){W.Ww(!0)}); W.D(W.X,g.AN("shopping_overlay_visible"),function(){W.Ww(!1)}); W.D(W.X,g.n9("shopping_overlay_expanded"),function(){W.sI=!0;Qr(W)}); W.D(W.X,g.AN("shopping_overlay_expanded"),function(){W.sI=!1;Qr(W)}); W.D(W.X,g.n9("shopping_overlay_preview_collapsed"),function(){W.W=!0;ys(W)}); W.D(W.X,g.AN("shopping_overlay_preview_collapsed"),function(){W.W=!1;ys(W)}); W.D(W.X,g.n9("shopping_overlay_preview_expanded"),function(){W.K=!0;ys(W)}); W.D(W.X,g.AN("shopping_overlay_preview_expanded"),function(){W.K=!1;ys(W)})}; xuI=function(W){g.k.call(this,{V:"div",B:"ytp-shorts-title-channel",L:[{V:"a",B:"ytp-shorts-title-channel-logo",U:{href:"{{channelLink}}",target:W.J().C,"aria-label":"{{channelLogoLabel}}"}},{V:"div",B:"ytp-shorts-title-expanded-heading",L:[{V:"div",B:"ytp-shorts-title-expanded-title",L:[{V:"a",Ky:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:W.J().C,tabIndex:"0"}}]}]}]});var J=this;this.api=W;this.W=this.T8("ytp-shorts-title-channel-logo");this.channelName=this.T8("ytp-shorts-title-expanded-title"); this.subscribeButton=null;W.createClientVe(this.W,this,36925);this.D(this.W,"click",function(K){J.api.logClick(J.W);g.Kw(window,GkI(J));K.preventDefault()}); W.createClientVe(this.channelName,this,37220);this.D(this.channelName,"click",function(K){J.api.logClick(J.channelName);g.Kw(window,GkI(J));K.preventDefault()}); $uL(this);this.D(W,"videodatachange",this.hs);this.D(W,"videoplayerreset",this.hs);this.hs()}; $uL=function(W){if(!W.api.J().qD){var J=g.E(W.api.getVideoData()),K=new g.XX("Suscribirse",null,"Suscrito/a",null,!0,!1,J.qB,J.subscribed,"channel_avatar",null,W.api,!0);W.api.createServerVe(K.element,W);var I;W.api.setTrackingParams(K.element,((I=J.subscribeButtonRenderer)==null?void 0:I.trackingParams)||null);W.D(K.element,"click",function(){W.api.logClick(K.element)}); W.subscribeButton=K;g.B(W,W.subscribeButton);W.subscribeButton.MN(W.element)}}; GkI=function(W){var J=W.api.J(),K=g.E(W.api.getVideoData());K=g.So(J)+K.sT;if(!g.xK(J))return K;J={};g.fl(W.api,"addEmbedsConversionTrackingParams",[J]);return g.Vw(K,J)}; Z2=function(W){g.oV.call(this,W,{V:"button",au:["ytp-skip-intro-button","ytp-popup","ytp-button"],L:[{V:"div",B:"ytp-skip-intro-button-text",Ky:"Omitir introducci\u00f3n"}]},100);var J=this;this.G=!1;this.W=new g.P0(function(){J.hide()},5E3); this.Os=this.W$=NaN;g.B(this,this.W);this.Z=function(){J.show()}; this.S=function(){J.hide()}; this.T=function(){var K=J.X.getCurrentTime();K>J.W$/1E3&&K0?{V:"svg",U:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},L:[{V:"path",au:["ytp-circle-arrow","ytp-svg-fill"],U:{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"}}, {V:"text",au:["ytp-jump-button-text","ytp-svg-fill"],U:{x:"7.05",y:"15.05"}}]}:{V:"svg",U:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},L:[{V:"path",au:["ytp-circle-arrow","ytp-svg-fill"],U:{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"}}, {V:"text",au:["ytp-jump-button-text","ytp-svg-fill"],U:{x:"6.5",y:"15"}}]}]});var K=this;this.X=W;this.W=J;this.K=new g.P0(function(){K.G?(K.G=!1,K.K.start()):K.element.classList.remove("ytp-jump-spin","backwards")},250); this.G=!1;(J=J>0)?this.X.createClientVe(this.element,this,36843):this.X.createClientVe(this.element,this,36844);var I=g.dF(J?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.W).toString()});this.update({title:I,"data-title-no-tooltip":I,"aria-keyshortcuts":J?"\u2192":"\u2190"});this.T=this.element.querySelector(".ytp-jump-button-text");this.T.textContent=Math.abs(this.W).toString();this.listen("click",this.onClick,this);wk(W,this.element,this)}; RYH=function(W,J){J?W.element.classList.add("ytp-jump-button-enabled"):W.element.classList.remove("ytp-jump-button-enabled");W.X.logVisibility(W.element,J);W.X.fQ()}; $H=function(W,J){Ce.call(this,W,J,"timedMarkerCueRange","Ver momentos clave");this.D(W,g.AN("timedMarkerCueRange"),this.ZH);this.D(W,"updatemarkervisibility",this.updateVideoData)}; bfD=function(W){var J,K=(J=W.X.getVideoData())==null?void 0:J.eZ;if(K)for(W=W.T.D0,K=g.d(K),J=K.next();!J.done;J=K.next())if(J=W[J.value]){var I=void 0,q=void 0,S=void 0;if(((I=J.onTap)==null?void 0:(q=I.innertubeCommand)==null?void 0:(S=q.changeEngagementPanelVisibilityAction)==null?void 0:S.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return J}}; xH=function(W){var J=W.Y("web_enable_pip_on_miniplayer");g.k.call(this,{V:"button",au:["ytp-miniplayer-button","ytp-button"],U:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},L:[J?{V:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},L:[{V:"g",U:{transform:"translate(96, -96) scale(0.8)"},L:[{V:"path",gf:!0,U:{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"}}]}]}: QxQ()]});this.X=W;this.visible=!1;this.listen("click",this.onClick);this.D(W,"fullscreentoggled",this.hs);this.updateValue("title",g.Mw(W,"Reproductor en miniatura","i"));this.update({"data-title-no-tooltip":"Reproductor en miniatura"});wk(W,this.element,this);W.createClientVe(this.element,this,62946);this.hs()}; OB=function(W,J,K,I,q,S){S=S===void 0?!1:S;var p={V:"div",au:["ytp-input-slider-section"],L:[{V:"input",B:"ytp-input-slider",U:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};q&&p.L.unshift(q);S&&p.au.push("ytp-vertical-slider");g.k.call(this,p);this.S=W;this.Z=J;this.N=K;this.initialValue=I;this.header=q;this.K=this.T8("ytp-input-slider");this.W=I?I:W;this.init();this.D(this.K,"input",this.T);this.D(this.K,"keydown", this.G)}; T7=function(W,J){W.W=J;W.updateValue("slidervalue",W.W);W.K.valueAsNumber=W.W;BBv(W,J)}; BBv=function(W,J){W.K.style.setProperty("--yt-slider-shape-gradient-percent",(J-W.S)/(W.Z-W.S)*100+"%")}; Ht=function(W){var J=W.isMuted()?0:W.getVolume();OB.call(this,0,100,1,J,void 0,!0);this.X=W;this.PS=NO(this.sI,10,this);this.C=!1;this.D(W,"onVolumeChange",this.onVolumeChange);this.D(this.element,"keydown",this.G)}; muy=function(W,J){g.k.call(this,{V:"div",U:{tabindex:"0",title:"Volumen"},au:["ytp-volume-popover"]});var K=this;this.isVisible=!1;this.tooltip=J.wb();this.K=new Ht(W);g.B(this,this.K);this.K.MN(this.element);this.W=new g.P0(function(){Vs(K,!1)},300); this.listen("mouseenter",function(){K.W.stop()}); this.listen("mouseleave",function(){K.W.start()}); this.listen("focus",function(){K.W.stop()}); this.D(this.K.element,"focus",function(){K.W.stop()}); this.listen("blur",function(){K.W.start()}); this.addOnDisposeCallback(g.Cl(J.wb(),this.element,-120));g.B(this,this.W)}; Vs=function(W,J){W.element.classList.toggle("ytp-volume-popover-hovering",J);W.isVisible=J}; EB=function(W,J,K){K=K===void 0?!1:K;g.k.call(this,{V:"button",au:["ytp-mute-button","ytp-button"],U:W.J().jZ?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},L:[{V:"div",B:"ytp-volume-icon",Ky:"{{icon}}"}]});var I=this;this.X=W;this.SZ=K;this.K=null;this.Z=this.sI=this.N=this.XW=NaN;this.vS=this.C=null;this.S=[];this.T=[];this.visible=!1;this.G=this.W=this.PS=null;W.Y("delhi_modern_web_player")&& this.update({"data-priority":4});K=this.X.J();this.updateValue("icon",Os());this.tooltip=J.wb();this.G=g.Yj("ytp-volume-icon",this.element);this.K=new g.jV({V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"defs",L:[{V:"clipPath",U:{id:"ytp-svg-volume-animation-mask"},L:[{V:"path",U:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{V:"path",U:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{V:"path",B:"ytp-svg-volume-animation-mover",U:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]}, {V:"clipPath",U:{id:"ytp-svg-volume-animation-slash-mask"},L:[{V:"path",B:"ytp-svg-volume-animation-mover",U:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{V:"path",gf:!0,au:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],U:{"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"}},{V:"path",gf:!0,au:["ytp-svg-fill","ytp-svg-volume-animation-hider"], U:{"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"}}]});g.B(this,this.K);this.C=this.K.T8("ytp-svg-volume-animation-speaker");this.vS=g.E(this.C.getAttribute("d"));this.S=g.zm("ytp-svg-volume-animation-mover",this.K.element);this.T=g.zm("ytp-svg-volume-animation-hider",this.K.element);this.jZ=new Xu;g.B(this,this.jZ);this.G8=new Xu;g.B(this,this.G8);this.D(W,"appresize",this.rI);this.D(W,"onVolumeChange",this.onVolumeChange);W.Y("delhi_modern_web_player")? this.listen("click",this.ECO):this.listen("click",this.Zv);K.jZ?W.Y("delhi_modern_web_player")?(this.W=new muy(W,J),this.W.MN(this.element),g.B(this,this.W),this.D(this.G,"mouseover",function(){if(!I.X.jz()){var q;(q=I.W)!=null&&Vs(q,!0);var S;(S=I.W)!=null&&S.W.stop()}}),this.D(this.G,"mouseout",function(){var q; (q=I.W)!=null&&q.W.start()}),this.addOnDisposeCallback(g.Cl(J.wb(),this.element,-120))):this.addOnDisposeCallback(g.Cl(J.wb(),this.element)):r2D(this); this.message=null;W.createClientVe(this.element,this,28662);this.rI(W.UI().getPlayerSize());this.setVolume(W.getVolume(),W.isMuted())}; kkH=function(W,J){W.XW=J;var K=W.vS;J&&(K+=q_c(oCc,LCH,J));W.C.setAttribute("d",K)}; zYT=function(W,J){W.sI=J;for(var K=20*J,I=0;I=3&&W.X.getPresentingPlayerType()!==2}; POv=function(W){var J=x0(W.X.Xz());return J?W.W?J.Yg():J.Wh():!1}; Y2X=function(W){var J={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},K=W.playlist!=null&&W.playlist.Yg();K=g.OY(W.X)&&(!W.W||K);var I=W.W&&g.eM(W.X),q=POv(W),S=W.W&&W.X.getPresentingPlayerType()===5,p=g.Mw(W.X,"Siguiente","SHIFT+n"),n=g.Mw(W.X,"Anterior","SHIFT+p");if(S)J.title="Iniciar video";else if(W.G)J.title="Volver a reproducir";else if(K){var A=null;W.playlist&&(A=g.FX(W.playlist,W.W?bOy(W.playlist):BuQ(W.playlist)));if(A){if(A.videoId){var D= W.playlist.listId;J.url=W.X.J().getVideoUrl(A.videoId,D?D.toString():void 0)}J.text=A.title;J.duration=A.lengthText?A.lengthText:A.lengthSeconds?g.Mf(A.lengthSeconds):null;J.preview=A.MP("mqdefault.jpg")}W.W?(J.title=p,J["data-title-no-tooltip"]="Siguiente",J["aria-keyshortcuts"]="SHIFT+n"):(J.title=n,J["data-title-no-tooltip"]="Anterior",J["aria-keyshortcuts"]="SHIFT+p")}else if(I){if(n=(A=W.videoData)==null?void 0:g.JS(A))J.url=n.Sa(),J.text=n.title,J.duration=n.lengthText?n.lengthText:n.lengthSeconds? g.Mf(n.lengthSeconds):null,J.preview=n.MP("mqdefault.jpg");J.title=p;J["data-title-no-tooltip"]="Siguiente";J["aria-keyshortcuts"]="SHIFT+n"}J.disabled=!I&&!K&&!q&&!S;W.update(J);W.Z=!!J.url;I||K||W.G||q||S?W.K||(W.K=g.Cl(W.tooltip,W.element),W.S=W.listen("click",W.onClick,W)):W.K&&(W.K(),W.K=null,W.aZ(W.S),W.S=null);W.tooltip.fQ();g.jN(W.element,"ytp-playlist-ui",W.W&&K)}; WUH=function(W,J){g.k.call(this,{V:"div",B:"ytp-fine-scrubbing",L:[{V:"div",B:"ytp-fine-scrubbing-draggable",L:[{V:"div",B:"ytp-fine-scrubbing-thumbnails",U:{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}}"}}]},{V:"div",U:{"aria-hidden":"true"},B:"ytp-fine-scrubbing-cursor"},{V:"div", B:"ytp-fine-scrubbing-seek-time",U:{"aria-hidden":"true"},Ky:"{{seekTime}}"},{V:"div",B:"ytp-fine-scrubbing-play",L:[g4()],U:{title:"Reproducir desde este momento",role:"button"}},{V:"div",B:"ytp-fine-scrubbing-dismiss",L:[g.Zb()],U:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var K=this;this.api=W;this.S=this.T8("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.T8("ytp-fine-scrubbing-dismiss");this.G8=this.T8("ytp-fine-scrubbing-draggable");this.playButton=this.T8("ytp-fine-scrubbing-play"); this.thumbnails=[];this.K=[];this.SZ=this.W=0;this.jZ=void 0;this.PS=NaN;this.Y3=this.C=this.G=this.N=0;this.T=[];this.interval=this.frameCount=0;this.Z=160;this.scale=1;this.OI=0;this.isEnabled=this.vS=!1;XEA(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.Cl(J,this.dismissButton));this.addOnDisposeCallback(g.Cl(J,this.playButton));this.XW=new g.B9(this.G8,!0);this.XW.subscribe("dragstart",this.C0,this);this.XW.subscribe("dragmove",this.eh,this);this.XW.subscribe("dragend",this.mF,this); this.D(W,"SEEK_COMPLETE",this.Av);W.Y("web_fix_fine_scrubbing_false_play")&&this.D(W,"rootnodemousedown",function(I){K.sI=I}); this.S.addEventListener("keydown",function(){}); g.B(this,this.XW);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.S,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; XEA=function(W,J){var K=g.Mf(J),I=g.dF("Saltar a: $PROGRESS",{PROGRESS:g.Mf(J,!0)});W.update({ariamin:0,ariamax:Math.floor(W.api.getDuration()),arianow:Math.floor(J),arianowtext:I,seekTime:K})}; iVc=function(W){W.PS=NaN;W.C=0;W.N=W.G}; I7c=function(W){var J=W.api.EW();if(J){var K=90*W.scale,I=R0(J,160*W.scale);if(J=J.levels[I]){W.Z=J.width;if(!W.T.length){I=[];for(var q=bL(J,J.Pa()),S=J.columns*J.rows,p=J.frameCount,n=0;n<=q;n++)for(var A=pW.T.length;)I= void 0,(I=W.thumbnails.pop())==null||I.dispose();for(;W.thumbnails.lengthK.length;)I=void 0,(I=W.K.pop())==null||I.dispose(); for(;W.K.length-K?-J/K*W.interval*.5:-(J+K/2)/K*W.interval}; q7A=function(W){return-((W.S.offsetWidth||(W.frameCount-1)*W.Z*W.scale)-W.W/2)}; J$Q=function(){g.k.call(this,{V:"div",B:"ytp-fine-scrubbing-thumbnail"})}; KUy=function(){g.k.call(this,{V:"div",B:"ytp-fine-scrubbing-chapter-title",L:[{V:"div",B:"ytp-fine-scrubbing-chapter-title-content",Ky:"{{chapterTitle}}"}]})}; puQ=function(W){g.k.call(this,{V:"div",B:"ytp-heat-map-chapter",L:[{V:"svg",B:"ytp-heat-map-svg",U:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},L:[{V:"defs",L:[{V:"clipPath",U:{id:"{{id}}"},L:[{V:"path",B:"ytp-heat-map-path",U:{d:"",fill:"white"}}]},{V:"linearGradient",U:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},L:[{V:"stop",U:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{V:"stop",U:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{V:"rect",B:"ytp-heat-map-graph",U:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{V:"rect",B:"ytp-heat-map-hover",U:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{V:"rect",B:"ytp-heat-map-play",U:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{V:"path",B:"ytp-modern-heat-map",U:{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.N=this.T8("ytp-heat-map-svg");this.S=this.T8("ytp-heat-map-path");this.T=this.T8("ytp-heat-map-graph");this.Z=this.T8("ytp-heat-map-play");this.W=this.T8("ytp-heat-map-hover");this.G=this.T8("ytp-modern-heat-map");this.Nk=!1;this.K=60;W=""+g.Kx(this);this.update({id:W});W="url(#"+W+")";this.T.setAttribute("clip-path",W);this.Z.setAttribute("clip-path",W);this.W.setAttribute("clip-path", W)}; l70=function(W,J){J>0&&(W.K=J,W.N.style.height=W.K+"px")}; Bt=function(){g.k.call(this,{V:"div",B:"ytp-chapter-hover-container",L:[{V:"div",B:"ytp-progress-bar-padding"},{V:"div",B:"ytp-progress-list",L:[{V:"div",au:["ytp-play-progress","ytp-swatch-background-color"]},{V:"div",B:"ytp-progress-linear-live-buffer"},{V:"div",B:"ytp-load-progress"},{V:"div",B:"ytp-hover-progress"},{V:"div",B:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.K=this.T8("ytp-progress-list");this.S=this.T8("ytp-progress-linear-live-buffer"); this.T=this.T8("ytp-ad-progress-list");this.Z=this.T8("ytp-load-progress");this.N=this.T8("ytp-play-progress");this.G=this.T8("ytp-hover-progress");this.W=this.T8("ytp-chapter-hover-container")}; mR=function(W,J){g.bj(W.W,"width",J)}; nUH=function(W,J){g.bj(W.W,"margin-right",J+"px")}; A$I=function(){this.K=this.position=this.G=this.W=this.T=this.width=NaN}; DPy=function(){g.k.call(this,{V:"div",B:"ytp-timed-marker"});this.W=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.o1=function(W,J){g.to.call(this,{V:"div",B:"ytp-progress-bar-container",U:{"aria-disabled":"true"},L:[{V:"div",au:["ytp-heat-map-container"],L:[{V:"div",B:"ytp-heat-map-edu"}]},{V:"div",au:["ytp-progress-bar"],U:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},L:[{V:"div",B:"ytp-chapters-container"},{V:"div",B:"ytp-timed-markers-container"}, {V:"div",B:"ytp-clip-start-exclude"},{V:"div",B:"ytp-clip-end-exclude"},{V:"div",B:"ytp-scrubber-container",L:[{V:"div",au:["ytp-scrubber-button","ytp-swatch-background-color"],L:[{V:"div",B:"ytp-scrubber-pull-indicator"},{V:"img",au:["ytp-decorated-scrubber-button"]}]}]}]},{V:"div",au:["ytp-fine-scrubbing-container"],L:[{V:"div",B:"ytp-fine-scrubbing-edu"}]},{V:"div",B:"ytp-bound-time-left",Ky:"{{boundTimeLeft}}"},{V:"div",B:"ytp-bound-time-right",Ky:"{{boundTimeRight}}"},{V:"div",B:"ytp-clip-start", U:{title:"{{clipstarttitle}}"},Ky:"{{clipstarticon}}"},{V:"div",B:"ytp-clip-end",U:{title:"{{clipendtitle}}"},Ky:"{{clipendicon}}"}]});this.api=W;this.GG=!1;this.Os=this.TJ=this.bO=this.S=this.GJ=0;this.hh=null;this.Bt=!1;this.OI={};this.bb={};this.clipEnd=Infinity;this.oG=this.T8("ytp-clip-end");this.kK=new g.B9(this.oG,!0);this.mz=this.T8("ytp-clip-end-exclude");this.Lk=this.T8("ytp-clip-start-exclude");this.clipStart=0;this.Fz=this.T8("ytp-clip-start");this.yr=new g.B9(this.Fz,!0);this.PS=this.sT= 0;this.progressBar=this.T8("ytp-progress-bar");this.SI={};this.D0={};this.Js=this.T8("ytp-chapters-container");this.W$=this.T8("ytp-timed-markers-container");this.W=[];this.Z=[];this.Nu={};this.DL=null;this.vS=-1;this.Tx=this.jZ=0;this.X0=this.N=null;this.wB=this.T8("ytp-scrubber-button");this.G8=this.T8("ytp-decorated-scrubber-button");this.Od=this.T8("ytp-scrubber-container");this.P7=new g.Tm;this.nk=0;this.NP=new A$I;this.G=new Eo(0,0);this.xt=null;this.C=this.gm=!1;this.uD=null;this.sI=this.T8("ytp-heat-map-container"); this.lN=this.T8("ytp-heat-map-edu");this.T=[];this.heatMarkersDecorations=[];this.eZ=this.T8("ytp-fine-scrubbing-container");this.Ym=this.T8("ytp-fine-scrubbing-edu");this.K=void 0;this.SZ=this.dB=this.Y3=!1;this.tooltip=J.wb();this.addOnDisposeCallback(g.Cl(this.tooltip,this.oG));g.B(this,this.kK);this.kK.subscribe("hoverstart",this.Aq,this);this.kK.subscribe("hoverend",this.tq,this);this.D(this.oG,"click",this.Ja);this.addOnDisposeCallback(g.Cl(this.tooltip,this.Fz));g.B(this,this.yr);this.yr.subscribe("hoverstart", this.Aq,this);this.yr.subscribe("hoverend",this.tq,this);this.D(this.Fz,"click",this.Ja);jTX(this);this.D(W,"resize",this.eI);this.D(W,"presentingplayerstatechange",this.OV);this.D(W,"videodatachange",this.iJ);this.D(W,"videoplayerreset",this.Bz);this.D(W,"cuerangesadded",this.ASO);this.D(W,"cuerangesremoved",this.W1s);this.D(W,"onLoopRangeChange",this.mw);this.D(W,"innertubeCommand",this.onClickCommand);this.D(W,g.n9("timedMarkerCueRange"),this.CKZ);this.D(W,"updatemarkervisibility",this.JX);this.D(W, "serverstitchedvideochange",this.ySW);this.updateVideoData(W.getVideoData(),!0);this.mw(W.getLoopRange());rr(this)&&!this.K&&(this.K=new WUH(this.api,this.tooltip),W=g.vY(this.element).x||0,this.K.eI(W,this.S),this.K.MN(this.eZ),g.B(this,this.K),this.D(this.K.dismissButton,"click",this.DS),this.D(this.K.playButton,"click",this.yf),this.D(this.K.element,"dblclick",this.yf));this.api.createClientVe(this.sI,this,139609,!0);this.api.createClientVe(this.lN,this,140127,!0);this.api.createClientVe(this.Ym, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; jTX=function(W){if(W.W.length===0){var J=new Bt;W.W.push(J);g.B(W,J);J.MN(W.Js,0)}for(;W.W.length>1;)W.W.pop().dispose();mR(W.W[0],"100%");W.W[0].startTime=0;W.W[0].title=""}; f7D=function(W){var J=J===void 0?NaN:J;var K=new puQ(W.api);W.T.push(K);g.B(W,K);K.MN(W.sI);J>=0&&(K.element.style.width=J+"px")}; h$X=function(W){for(;W.Z.length;)W.Z.pop().dispose()}; FUQ=function(W){var J,K,I,q,S;return(S=g.m((q=g.m((J=W.getWatchNextResponse())==null?void 0:(K=J.playerOverlays)==null?void 0:(I=K.playerOverlayRenderer)==null?void 0:I.decoratedPlayerBarRenderer,g9))==null?void 0:q.playerBar,tay))==null?void 0:S.chapters}; a7v=function(W){for(var J=W.W,K=[],I=0;I=p&&y<=f&&S.push(t)}A>0&&(W.sI.style.height=A+"px");p=W.T[I];f=S;t=q;a=A;y=I===0;y=y===void 0?!1:y;l70(p,a);h=f;F=p.K;y=y===void 0?!1:y;var U=1E3/h.length,Q=[];Q.push({x:0,y:100});for(var C=0;C0&&(K=S[S.length-1])}g.Le(W);n=[];J=g.d(J.heatMarkersDecorations||[]);for(q=J.next();!q.done;q=J.next())if(q=g.m(q.value,QTL))A=q.label,I=K=D=void 0,n.push({visibleTimeRangeStartMillis:(D=q.visibleTimeRangeStartMillis)!=null?D:-1,visibleTimeRangeEndMillis:(K=q.visibleTimeRangeEndMillis)!=null?K:-1,decorationTimeMillis:(I=q.decorationTimeMillis)!=null?I:NaN,label:A?g.uG(A):""});W.heatMarkersDecorations=n}}; dPD=function(W,J){W.Z.push(J);g.B(W,J);J.MN(W.W$,W.W$.children.length)}; y$Q=function(W,J){J=g.d(J);for(var K=J.next();!K.done;K=J.next()){K=K.value;var I=kH(W,K.timeRangeStartMillis/(W.G.W*1E3),z7(W));g.bj(K.element,"transform","translateX("+I+"px) scaleX(0.6)")}}; ujD=function(W,J){var K=0,I=!1;J=g.d(J);for(var q=J.next();!q.done;q=J.next()){q=q.value;if(g.m(q,wuD)){q=g.m(q,wuD);var S={startTime:NaN,title:null,onActiveCommand:void 0},p=q.title;S.title=p?g.uG(p):"";p=q.timeRangeStartMillis;p!=null&&(S.startTime=p);S.onActiveCommand=q.onActiveCommand;q=S;K===0&&q.startTime!==0&&(W.W[K].startTime=0,W.W[K].title="",W.W[K].onActiveCommand=q.onActiveCommand,K++,I=!0);W.W.length<=K&&(S=new Bt,W.W.push(S),g.B(W,S),S.MN(W.Js,W.Js.children.length));W.W[K].startTime= q.startTime;W.W[K].title=q.title?q.title:"";W.W[K].onActiveCommand=q.onActiveCommand;W.W[K].index=I?K-1:K}K++}for(;K=0;I--)if(W.W[I].width>0){nUH(W.W[I],0);var q=Math.floor(W.W[I].width);W.W[I].width=q;mR(W.W[I],q+"px");break}W.W[K].width=0;mR(W.W[K],"0")}else K===W.W.length-1?(I=Math.floor(W.W[K].width+J),W.W[K].width=I,mR(W.W[K],I+"px")):(J=W.W[K].width+J,I=Math.round(J),J-=I,W.W[K].width=I,mR(W.W[K],I+"px"));K=0;if(W.T.length===W.W.length)for(J=0;J< W.T.length;J++)I=W.W[J].width,W.T[J].element.style.width=I+"px",W.T[J].element.style.left=K+"px",K+=I+YH(W);W.api.Y("delhi_modern_web_player")&&(W.W.length===1?W.W[0].K.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(W.W[0].K.classList.remove("ytp-progress-bar-end"),W.W[0].K.classList.add("ytp-progress-bar-start"),W.W[W.W.length-1].K.classList.add("ytp-progress-bar-end")))}; MaH=function(W,J){var K=0,I=!1,q=W.W.length,S=W.G.W*1E3;S===0&&(S=W.api.getProgressState().seekableEnd*1E3);if(S>0&&W.S>0){for(var p=W.S-YH(W)*W.jZ,n=W.Tx===0?3:p*W.Tx,A=g.d(W.W),D=A.next();!D.done;D=A.next())D.value.width=0;for(;K1);D=(S===0?0:A/S*p)+W.W[K].width;if(D>n)W.W[K].width=D;else{W.W[K].width=0;var f=W,h=K,t=f.W[h-1];t!==void 0&&t.width>0? t.width+=D:hW.Tx&&(W.Tx=A/S),I=!0)}K++}}return I}; vt=function(W){if(W.S){var J=W.api.getProgressState(),K=W.api.getVideoData();if(!(K&&K.enableServerStitchedDai&&K.Jc)||isFinite(J.current)){var I;if(((I=W.api.getVideoData())==null?0:Kl(I))&&J.airingStart&&J.airingEnd)var q=sB(W,J.airingStart,J.airingEnd);else if(W.api.getPresentingPlayerType()===2){var S,p,n;q=(K=(q=W.api.getVideoData())==null?void 0:(S=q.getPlayerResponse())==null?void 0:(p=S.playerConfig)==null?void 0:(n=p.webPlayerConfig)==null?void 0:n.skippableAdProgressBarDuration)?sB(W,J.seekableStart, K/1E3):sB(W,J.seekableStart,J.seekableEnd)}else q=sB(W,J.seekableStart,J.seekableEnd);S=e$(q,J.loaded,0);J=e$(q,J.current,0);p=W.G.K!==q.K||W.G.W!==q.W;W.G=q;ct(W,J,S);p&&gU0(W);GoQ(W)}}}; sB=function(W,J,K){return $P0(W)?new Eo(Math.max(J,W.xt.startTimeMs/1E3),Math.min(K,W.xt.endTimeMs/1E3)):new Eo(J,K)}; OVD=function(W,J){var K,I,q;J=g.m((K=J.getWatchNextResponse())==null?void 0:(I=K.playerOverlays)==null?void 0:(q=I.playerOverlayRenderer)==null?void 0:q.decoratedPlayerBarRenderer,g9);if(J==null?0:J.progressColor)for(K=0;K1){K=Pt(W,J.G,!0);for(var I=0,q=0;q0&&(I+=W.W[q].width,I+=YH(W));K=(W.W[K].startTime+(J.G-I)/W.W[K].width*((K===W.W.length-1?W.G.W*1E3:W.W[K+1].startTime)-W.W[K].startTime))/1E3||0}return K}; Wf=function(W,J,K,I,q){J=J<0?0:Math.floor(Math.min(J,W.api.getDuration())*1E3);K=K<0?0:Math.floor(Math.min(K,W.api.getDuration())*1E3);W=W.progressBar.visualElement;I={seekData:{startMediaTimeMs:J,endMediaTimeMs:K,seekSource:I}};(J=g.M_())&&g.X0(W3)(void 0,J,W,q,I,void 0)}; HVD=function(W,J,K){if(K>=W.W.length)return!1;var I=W.S-YH(W)*W.jZ;return Math.abs(J-W.W[K].startTime/1E3)/W.G.W*I<4}; gU0=function(W){W.wB.style.removeProperty("height");for(var J=g.d(Object.keys(W.OI)),K=J.next();!K.done;K=J.next())VaD(W,K.value);iw(W);ct(W,W.PS,W.sT)}; z7=function(W){var J=W.P7.x;J=g.Gm(J,0,W.S);W.NP.update(J,W.S);return W.NP}; KO=function(W){return(W.C?135:90)-J3(W)}; J3=function(W){var J=48,K=W.api.J();W.C?J=54:g.xK(K)&&!K.K?J=40:W.api.Y("delhi_modern_web_player")&&(J=W.C?96:68);return J}; ct=function(W,J,K){W.PS=J;W.sT=K;var I=z7(W),q=W.G.W;var S=W.G;S=S.K+W.PS*S.getLength();var p=g.dF("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.Mf(S,!0),DURATION:g.Mf(q,!0)}),n=lM(W.W,S*1E3);n=W.W[n].title;W.update({ariamin:Math.floor(W.G.K),ariamax:Math.floor(q),arianow:Math.floor(S),arianowtext:n?n+" "+p:p});q=W.clipStart;S=W.clipEnd;W.xt&&W.api.getPresentingPlayerType()!==2&&(q=W.xt.startTimeMs/1E3,S=W.xt.endTimeMs/1E3);q=e$(W.G,q,0);n=e$(W.G,S,1);p=W.api.getVideoData();S=g.Gm(J,q,n);K=(p==null? 0:g.Yh(p))?1:g.Gm(K,q,n);J=kH(W,J,I);g.bj(W.Od,"transform","translateX("+J+"px)");W.api.Y("delhi_modern_web_player")&&EUX(W,J);IR(W,I,q,S,"PLAY_PROGRESS");(p==null?0:Kl(p))?(J=W.api.getProgressState().seekableEnd)&&IR(W,I,S,e$(W.G,J),"LIVE_BUFFER"):IR(W,I,q,K,"LOAD_PROGRESS");if(W.api.Y("web_player_heat_map_played_bar")){var A;(A=W.T[0])!=null&&A.Z.setAttribute("width",(S*100).toFixed(2)+"%")}}; EUX=function(W,J){W.api.getPresentingPlayerType()!==1?W.Js.style.removeProperty("clip-path"):(J||(J=kH(W,W.PS,z7(W))),W.Js.style.clipPath='path("'+(W.Bt?e$D(W,8,J,W.C?50:36,0,6):e$D(W,4,J,W.C?34:24,2,3))+'")')}; e$D=function(W,J,K,I,q,S){var p=K-I/2;K+=I/2;J+=q;return"M 0 "+q+" L 0 "+(J+" L ")+(p+" "+J+" C ")+(p+S+" "+J+" "+(p+S)+" "+q+" "+p+" "+q+" L 0 ")+(q+" M ")+(K+" "+q+" L ")+(W.S+" "+q+" L ")+(W.S+" "+J+" L ")+(K+" "+J+" C ")+(K-S+" "+J+" "+(K-S)+" "+q+" "+K+" "+q)}; IR=function(W,J,K,I,q){var S=W.W.length,p=J.W-W.jZ*YH(W),n=K*p;K=Pt(W,n);var A=I*p;p=Pt(W,A);q==="HOVER_PROGRESS"&&(p=Pt(W,J.W*I,!0),A=J.W*I-R$y(W,J.W*I)*YH(W));I=Math.max(n-bVI(W,K),0);for(n=K;n=W.W.length)return W.S;for(var K=0,I=0;I0||W.mz.clientWidth>0?(S=J.clientWidth/K,W=-1*W.Lk.clientWidth/K):(S/=K,W=-1*W.W[q].element.offsetLeft/K),g.bj(J,"background-size",S+"px"),g.bj(J,"background-position-x",W+"px"))}; q0=function(W,J,K,I,q){q||W.api.J().K?J.style.width=K+"px":g.bj(J,"transform","scalex("+(I?K/I:0)+")")}; Pt=function(W,J,K){var I=0;(K===void 0?0:K)&&(J-=R$y(W,J)*YH(W));K=g.d(W.W);for(var q=K.next();!q.done;q=K.next()){q=q.value;if(J>q.width)J-=q.width;else break;I++}return I===W.W.length?I-1:I}; kH=function(W,J,K){var I=J*W.G.W*1E3;for(var q=-1,S=g.d(W.W),p=S.next();!p.done;p=S.next())p=p.value,I>p.startTime&&p.width>0&&q++;I=q<0?0:q;q=K.W-YH(W)*W.jZ;return J*q+YH(W)*I+K.T}; R$y=function(W,J){for(var K=W.W.length,I=0,q=g.d(W.W),S=q.next();!S.done;S=q.next())if(S=S.value,S.width!==0)if(J>S.width)J-=S.width,J-=YH(W),I++;else break;return I===K?K-1:I}; g.r$D=function(W,J,K,I){var q=W.S!==K,S=W.C!==I;W.GJ=J;W.S=K;W.C=I;rr(W)&&(J=W.K)!=null&&(J.scale=I?1.5:1);gU0(W);W.W.length===1&&(W.W[0].width=K||0);q&&g.Le(W);W.K&&S&&rr(W)&&(W.K.isEnabled&&(K=W.C?135:90,I=K-J3(W),W.eZ.style.height=K+"px",g.bj(W.sI,"transform","translateY("+-I+"px)"),g.bj(W.progressBar,"transform","translateY("+-I+"px)")),I7c(W.K))}; iw=function(W){var J=!!W.xt&&W.api.getPresentingPlayerType()!==2,K=W.clipStart,I=W.clipEnd,q=!0,S=!0;J&&W.xt?(K=W.xt.startTimeMs/1E3,I=W.xt.endTimeMs/1E3):(q=K>W.G.K,S=W.G.W>0&&IW.PS);g.jN(W.wB,"ytp-scrubber-button-hover",K===I&&W.W.length>1);if(W.api.Y("web_player_heat_map_played_bar")){var S;(S=W.T[0])!=null&&S.W.setAttribute("width",(J.K*100).toFixed(2)+"%")}}}; VaD=function(W,J){var K=W.OI[J];J=W.bb[J];var I=z7(W),q=e$(W.G,K.start/1E3,0),S=jEv(K,W.C)/I.width;var p=e$(W.G,K.end/1E3,1);S!==Number.POSITIVE_INFINITY&&(q=g.Gm(q,0,p-S));p=Math.min(p,q+S);K.color&&(J.style.background=K.color);K=q;J.style.left=Math.max(K*I.W+I.T,0)+"px";q0(W,J,g.Gm((p-K)*I.W+I.T,0,I.width),I.width,!0)}; oUQ=function(W,J){var K=J.getId();W.OI[K]===J&&(g.S4(W.bb[K]),delete W.OI[K],delete W.bb[K])}; rr=function(W){var J=g.X2(W.api.J())&&(W.api.Y("web_shorts_pip")||W.api.Y("web_watch_pip")),K;return!((K=W.api.getVideoData())==null?0:K.isLivePlayback)&&!W.api.isMinimized()&&!W.api.isInline()&&(!W.api.Yh()||!J)}; Ss=function(W){W.K&&(W.K.disable(),W.bO=0,W.sI.style.removeProperty("transform"),W.progressBar.style.removeProperty("transform"),W.eZ.style.removeProperty("height"),W.element.parentElement&&W.element.parentElement.style.removeProperty("height"))}; LU0=function(W,J){var K=J/KO(W)*J3(W);g.bj(W.progressBar,"transform","translateY("+-J+"px)");g.bj(W.sI,"transform","translateY("+-J+"px)");g.bj(W.eZ,"transform","translateY("+K+"px)");W.eZ.style.height=J+K+"px";W.element.parentElement&&(W.element.parentElement.style.height=J3(W)-K+"px")}; ko0=function(W,J){J?W.N||(W.element.removeAttribute("aria-disabled"),W.N=new g.B9(W.progressBar,!0),W.N.subscribe("hovermove",W.KHh,W),W.N.subscribe("hoverend",W.sBO,W),W.N.subscribe("dragstart",W.PK3,W),W.N.subscribe("dragmove",W.lVI,W),W.N.subscribe("dragend",W.EmO,W),W.api&&W.api.Y("delhi_modern_web_player")&&(W.X0=new g.B9(W.progressBar,!0),W.X0.subscribe("hoverstart",function(){W.Bt=!0;EUX(W)},W),W.X0.subscribe("hoverend",function(){W.Bt=!1; EUX(W)},W)),W.uD=W.listen("keydown",W.yV)):W.N&&(W.element.setAttribute("aria-disabled","true"),W.aZ(W.uD),W.N.cancel(),W.N.dispose(),W.N=null)}; YH=function(W){return W.api.Y("delhi_modern_web_player")?4:W.C?3:2}; $P0=function(W){var J;return!((J=W.xt)==null||!J.postId)&&W.api.getPresentingPlayerType()!==2}; pO=function(W,J){g.k.call(this,{V:"button",au:["ytp-remote-button","ytp-button"],U:{title:"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},Ky:"{{icon}}"});this.X=W;this.VP=J;this.W=null;this.D(W,"onMdxReceiversChange",this.hs);this.D(W,"presentingplayerstatechange",this.hs);this.D(W,"appresize",this.hs);W.createClientVe(this.element,this,139118);this.hs();this.listen("click",this.K,this);wk(W,this.element,this)}; lw=function(W,J){g.k.call(this,{V:"button",au:["ytp-button","ytp-settings-button"],U:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":Db(),title:"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},L:[g.$T()]});this.X=W;this.VP=J;this.K=!0;this.listen("click",this.G);this.D(W,"onPlaybackQualityChange",this.updateBadge);this.D(W,"videodatachange",this.updateBadge);this.D(W,"webglsettingschanged",this.updateBadge);this.D(W,"appresize",this.W);wk(W,this.element,this);this.X.createClientVe(this.element, this,28663);this.updateBadge();this.W(W.UI().getPlayerSize())}; z$X=function(W,J){W.K=!!J;W.W(W.X.UI().getPlayerSize())}; nO=function(W,J){Sh.call(this,"Anotaciones",g.jh.XN);this.X=W;this.VP=J;this.W=!1;W.Y("web_settings_menu_icons")&&this.setIcon({V:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{V:"path",U:{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.D(W,"videodatachange",this.hs);this.D(W,"onApiChange",this.hs);this.subscribe("select",this.onSelect,this);this.hs()}; A3=function(W,J){g.ei.call(this,"Pista de audio",g.jh.AUDIO,W,J);this.X=W;this.tracks={};g.lK(this.element,"ytp-audio-menu-item");this.countLabel=new g.k({V:"div",L:[{V:"span",Ky:"Pista de audio"},{V:"span",B:"ytp-menuitem-label-count",Ky:"{{content}}"}]});W.Y("web_settings_menu_icons")&&this.setIcon(ZL0());g.B(this,this.countLabel);g.vl(this,this.countLabel);this.D(W,"videodatachange",this.hs);this.D(W,"onPlaybackAudioChange",this.hs);this.hs()}; DU=function(W,J){Sh.call(this,"Reproducci\u00f3n autom\u00e1tica",g.jh.S4);this.X=W;this.VP=J;this.W=!1;this.G=[];this.D(W,"presentingplayerstatechange",this.K);this.subscribe("select",this.onSelect,this);W.createClientVe(this.element,this,113682);this.K()}; vUy=function(W,J){g.Y0.call(this,g.sY({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.X=W;this.VP=J;this.D(this.element,"click",this.onClick);this.VP.df(this)}; Y7I=function(W,J){var K;g.X2(W.J())&&(K={V:"div",B:"ytp-panel-footer-content",L:[{V:"span",Ky:"Ajusta la calidad de descarga en la "},{V:"a",B:"ytp-panel-footer-content-link",Ky:"Configuraci\u00f3n",U:{href:"/account_downloads"}}]});g.ei.call(this,"Calidad",g.jh.QF,W,J,void 0,void 0,K);this.X=W;this.G8={};this.C={};this.T={};this.XW=new Set;this.W=this.S=!1;this.Z="unknown";this.PS="";this.sI=new g.Yg;g.B(this,this.sI);this.S=this.X.Y("web_player_use_new_api_for_quality_pullback");this.W=this.X.Y("web_player_enable_premium_hbr_playback_cap"); W.Y("web_settings_menu_icons")&&this.setIcon({V:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{V:"path",U:{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"}}]});g.lK(this.K.element,"ytp-quality-menu");this.D(W,"videodatachange",this.oN);this.D(W,"videoplayerreset",this.oN);this.D(W,"onPlaybackQualityChange",this.oJ);this.oN();W.createClientVe(this.element,this,137721)}; c$v=function(W,J,K){var I=W.G8[J],q=g.os[J];return sTA(W,I?I.qualityLabel:q?q+"p":"Autom\u00e1tica",J,K)}; PJQ=function(W,J,K,I,q){var S=(J=W.W?W.T[J]:W.C[J])&&J.quality,p=J&&J.qualityLabel;p=p?p:"Autom\u00e1tica";I&&(p="("+p);W=sTA(W,p,S||"",q);I&&W.L.push(")");(I=(I=J&&J.paygatedQualityDetails)&&I.paygatedIndicatorText)&&K&&W.L.push({V:"div",B:"ytp-premium-label",Ky:I});return W}; sTA=function(W,J,K,I){J={V:"span",au:I,L:[J]};var q;I="ytp-swatch-color";if(W.S||W.W)I="ytp-swatch-color-white";K==="highres"?q="8K":K==="hd2880"?q="5K":K==="hd2160"?q="4K":K.indexOf("hd")===0&&K!=="hd720"&&(q="HD");q&&(J.L.push(" "),J.L.push({V:"sup",B:I,Ky:q}));return J}; js=function(W){OB.call(this,W.getAvailablePlaybackRates()[0],W.getAvailablePlaybackRates()[W.getAvailablePlaybackRates().length-1],.05,W.getPlaybackRate(),{V:"div",B:"ytp-speedslider-indicator-container",L:[{V:"div",B:"ytp-speedslider-badge"},{V:"p",B:"ytp-speedslider-text"}]});this.X=W;this.PS=NO(this.sI,50,this);g.lK(this.K,"ytp-speedslider");this.C=this.T8("ytp-speedslider-text");this.XW=this.T8("ytp-speedslider-badge");XuQ(this);this.D(this.K,"change",this.G8)}; XuQ=function(W){W.C.textContent=W.W+"x";W.XW.classList.toggle("ytp-speedslider-premium-badge",W.W>2&&W.X.Y("enable_web_premium_varispeed"))}; fO=function(W,J,K,I,q,S,p){g.k.call(this,{V:"div",B:"ytp-slider-section",U:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},L:[{V:"div",B:"ytp-slider",L:[{V:"div",B:"ytp-slider-handle"}]}]});this.N=W;this.C=J;this.K=K;this.G=I;this.PS=q;this.vS=S;this.range=this.G-this.K;this.jZ=this.T8("ytp-slider-section");this.T=this.T8("ytp-slider");this.sI=this.T8("ytp-slider-handle");this.Z=new g.B9(this.T, !0);this.W=p?p:K;g.B(this,this.Z);this.Z.subscribe("dragmove",this.H0,this);this.D(this.element,"keydown",this.FV);this.D(this.element,"wheel",this.p6);this.init()}; h3=function(W){fO.call(this,.05,.05,W.getAvailablePlaybackRates()[0],W.getAvailablePlaybackRates()[W.getAvailablePlaybackRates().length-1],150,20,W.getPlaybackRate());this.X=W;this.S=g.i5("P");this.XW=NO(this.G8,50,this);g.lK(this.T,"ytp-speedslider");g.lK(this.S,"ytp-speedslider-text");W=this.S;var J=this.T;J.parentNode&&J.parentNode.insertBefore(W,J.nextSibling);WKH(this);this.D(this.X,"onPlaybackRateChange",this.updateValues)}; WKH=function(W){W.S.textContent=iMD(W,W.W)+"x"}; iMD=function(W,J){W=Number(g.Gm(J,W.K,W.G).toFixed(2));J=Math.floor((W+.001)*100%5+2E-15);var K=W;J!==0&&(K=W-J*.01);return Number(K.toFixed(2))}; J_c=function(W){g.to.call(this,{V:"div",B:"ytp-speedslider-component"});W.Y("web_settings_use_input_slider")?this.W=new js(W):this.W=new h3(W);g.B(this,this.W);this.element.appendChild(this.W.element)}; KKv=function(W){var J=new J_c(W);wC.call(this,W,J,"Personalizada");g.B(this,J)}; IYT=function(W,J){var K=new KKv(W);g.ei.call(this,"Velocidad de reproducci\u00f3n",g.jh.XP,W,J,t3(W)?void 0:"Personalizada",t3(W)?void 0:function(){g.$x(J,K)}); var I=this;this.T=!1;g.B(this,K);this.Z=new js(W);g.B(this,this.Z);W.Y("web_settings_menu_icons")&&this.setIcon({V:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{V:"path",U:{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.X=W;this.T=!1;this.PS=null;t3(W)?(this.W=g.dF("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.X.getPlaybackRate().toString()}),this.S=this.X.getPlaybackRate()):this.S=this.W=null;this.C=this.X.getAvailablePlaybackRates();this.D(W,"presentingplayerstatechange",this.hs);var q;((q=this.X.getVideoData())==null?0:q.rf())&&this.D(W,"serverstitchedvideochange",this.hs);this.D(this.Z.K,"change",function(){I.T=!0;I.hs()}); this.hs()}; qPI=function(W,J){var K=Fd(J);W.W&&(W.T||J===W.S)?(W.eE(W.W),W.qv(J.toString())):W.eE(K)}; pyv=function(W){W.P4(W.C.map(Fd));W.W=null;W.S=null;var J=W.X.getPlaybackRate();t3(W.X)&&SPQ(W,J);!W.C.includes(J)||W.T?W.eE(W.W):W.eE(Fd(J))}; SPQ=function(W,J){W.S=J;W.W=g.dF("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:J.toString()});J=W.C.map(Fd);J.unshift(W.W);W.P4(J)}; Fd=function(W){return W.toString()}; t3=function(W){return W.Y("web_settings_menu_surface_custom_playback")}; lYL=function(W){return W.Y("web_settings_menu_surface_custom_playback")&&W.Y("web_settings_use_input_slider")}; A_0=function(W,J,K,I){var q=new g.M6(J,void 0,"Anulaci\u00f3n de video");g.ei.call(this,I.text||"",W,J,K,"Anulaci\u00f3n de video",function(){g.$x(K,q)}); var S=this;g.lK(this.element,"ytp-subtitles-options-menu-item");this.setting=I.option.toString();W=I.options;this.settings=g.Ro(W,this.tK,this);this.S=q;g.B(this,this.S);J=new g.Y0({V:"div",B:"ytp-menuitemtitle",Ky:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.B(this,J);this.S.df(J,!0);this.T=new g.Y0({V:"div",B:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},L:[{V:"div",B:"ytp-menuitem-label",Ky:"S\u00ed"}]},-1);g.B(this,this.T);this.S.df(this.T, !0);this.D(this.T.element,"click",function(){neX(S,!0)}); this.W=new g.Y0({V:"div",B:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},L:[{V:"div",B:"ytp-menuitem-label",Ky:"No"}]},-2);g.B(this,this.W);this.S.df(this.W,!0);this.D(this.W.element,"click",function(){neX(S,!1)}); this.P4(g.zC(W,this.tK))}; neX=function(W,J){W.publish("settingChange",W.setting+"Override",!J);W.VP.UW()}; aR=function(W,J){g.M6.call(this,W,void 0,"Opciones");var K=this;this.Is={};for(var I=0;I=0);if(!(J<0||J===W.T)){W.T=J;J=243*W.scale;var K=141*W.scale,I=t5I(W.K,W.T,J);HfD(W.bg,I,J,K,!0);W.PS.start()}}; RKH=function(W){var J=W.W;W.type===3&&W.sI.stop();W.api.removeEventListener("appresize",W.C);W.Z||J.setAttribute("title",W.G);W.G="";W.W=null;W.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});W.wrapper.style.width=""}; BeX=function(W){g.k.call(this,{V:"button",au:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.xK(W.J()))},L:[{V:"div",B:"ytp-watch-later-icon",Ky:"{{icon}}"},{V:"div",B:"ytp-watch-later-title",Ky:"Ver m\u00e1s tarde"}]});this.X=W;this.icon=null;this.visible=this.isRequestPending=this.W=!1;s80(W);W.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.D(W,"videoplayerreset",this.onReset);this.D(W, "appresize",this.AN);this.D(W,"videodatachange",this.AN);this.D(W,"presentingplayerstatechange",this.AN);this.AN();W=this.X.J();var J=g.V0("yt-player-watch-later-pending");W.T&&J?(mTy(),bM0(this)):this.hs(2);g.jN(this.element,"ytp-show-watch-later-title",g.xK(W));wk(this.X,this.element,this)}; mxQ=function(W){var J=W.X.getPlayerSize(),K=W.X.J(),I=g.E(W.X.getVideoData()),q=g.xK(K)&&g.OY(W.X)&&g.z(W.X.getPlayerStateObject(),128),S=K.G;return K.yr&&J.width>=240&&!I.isAd()&&I.yr&&!q&&!g.IV(I)&&!W.X.isEmbedsShortsMode()&&!S}; r_Q=function(W,J){PAQ(g.vw(W.X.J()),"wl_button",function(){mTy({videoId:J});window.location.reload()})}; bM0=function(W){if(!W.isRequestPending){W.isRequestPending=!0;W.hs(3);var J=g.E(W.X.getVideoData());J=W.W?J.removeFromWatchLaterCommand:J.addToWatchLaterCommand;var K=g.E(W.X.d$()),I=W.W?function(){W.W=!1;W.isRequestPending=!1;W.hs(2);W.X.J().N&&W.X.qN("WATCH_LATER_VIDEO_REMOVED")}:function(){W.W=!0; W.isRequestPending=!1;W.hs(1);W.X.J().K&&W.X.Ms(W.element);W.X.J().N&&W.X.qN("WATCH_LATER_VIDEO_ADDED")}; ce(K,J).then(I,function(){W.isRequestPending=!1;W.hs(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");W.X.J().N&&W.X.qN("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; oev=function(W,J){if(J!==W.icon){switch(J){case 3:var K=A6();break;case 1:K=d4();break;case 2:K={V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{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:K={V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path", gf:!0,U:{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",K);W.icon=J}}; g.xO=function(){g.kz.apply(this,arguments);this.pR=(this.sR=g.xK(this.api.J()))&&(this.api.J().K||iB()||XW());this.pZ=48;this.kT=69;this.bX=this.oX=null;this.Z7=[];this.yy=this.xG=this.Hv=this.Zs=this.ZV=null;this.Ns=[];this.contextMenu=this.yq=this.overflowButton=this.Mn=this.TG=this.searchButton=this.copyLinkButton=this.shareButton=this.i8=this.KQ=this.title=this.channelAvatar=this.yn=this.tooltip=null;this.IQ=!1;this.d_=this.aV=this.XY=this.M8=null;this.bE=this.A$=this.CZ=!1}; LKQ=function(W){var J=W.api.J(),K=g.z(W.api.getPlayerStateObject(),128);return J.T&&K&&!W.api.isFullscreen()}; kuD=function(W){if(W.RX()&&!W.api.isEmbedsShortsMode()&&W.Mn){var J=W.api.Y("web_player_hide_overflow_button_if_empty_menu");!W.i8||J&&!mxQ(W.i8)||XJT(W.Mn,W.i8);!W.shareButton||J&&!hYH(W.shareButton)||XJT(W.Mn,W.shareButton);!W.copyLinkButton||J&&!fmD(W.copyLinkButton)||XJT(W.Mn,W.copyLinkButton)}else{J=W.api.J().getWebPlayerContextConfig();if(W.Mn){for(var K=W.Mn,I=g.d(K.actionButtons),q=I.next();!q.done;q=I.next())q.value.detach();K.actionButtons=[]}W.searchButton&&!g.po(W.KQ.element,W.searchButton.element)&& W.searchButton.MN(W.KQ.element);!W.i8||(J==null?0:J.hideTopWatchNextButton)||g.po(W.KQ.element,W.i8.element)||W.i8.MN(W.KQ.element);!W.shareButton||(J==null?0:J.hideTopShareButton)||g.po(W.KQ.element,W.shareButton.element)||W.shareButton.MN(W.KQ.element);W.copyLinkButton&&!g.po(W.KQ.element,W.copyLinkButton.element)&&W.copyLinkButton.MN(W.KQ.element)}}; zKA=function(W,J,K){J=K?J.lastElementChild:J.firstElementChild;for(var I=null;J;){if(rI(J,"display")!=="none"&&J.getAttribute("aria-hidden")!=="true"){var q=void 0;J.tabIndex>=0?q=J:q=zKA(W,J,K);q&&(I?K?q.tabIndex>I.tabIndex&&(I=q):q.tabIndexI/1E3+1)return{msg:"in-the-past"};if(S.isLivePlayback&&!isFinite(I))return{msg:"live-infinite"};(I=J.gb())&&I.isView()&&(I=I.mediaElement);if(I&&I.pX().length>12&&g.yM(q))return{msg:"played-ranges"};if(!q.G)return null;if(!p)return{msg:"no-pvd-formats"};if(!q.G.W||!p.W)return{msg:"non-dash"};I=p.videoInfos[0];var n=q.G.videoInfos[0];W.N&&S7(S)&&(I=J.nB(),n= K.nB());if(!I||!n)return{msg:"no-video-info"};if(W.G&&(X_(I)||X_(n)))return{msg:"av1"};J=W.W&&S.bD()&&UE();if(n.containerType!==I.containerType)if(J)S.WS("sgap",{ierr:"container"});else return{msg:"container"};if(W.K&&!J&&(n.z8!==I.z8||n.z8===""||I.z8===""))return{msg:"codec"};if(W.T&&n.video&&I.video&&Math.abs(n.video.width/n.video.height-I.video.width/I.video.height)>.01)return{msg:"ratio"};if(g.yM(S)&&g.yM(q))return{msg:"content-protection"};p=p.W[0];q=q.G.W[0];K=p.audio;var A=q.audio;if(K.sampleRate!== A.sampleRate&&!g.ES)if(J)S.WS("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:p.itag,cr:K.sampleRate,ni:q.itag,nr:A.sampleRate};return(K.numChannels||2)!==(A.numChannels||2)?{msg:"channel-count"}:W.S&&S.bD()&&I.video.fps!==n.video.fps?{msg:"fps"}:null}; c_H=function(W,J,K){var I=W.getVideoData(),q=J.getVideoData();if(!I.J().supportsGaplessShorts())return{nq:"env"};if(K.Z){if(I.D4&&!I.isAd()||q.D4&&!q.isAd())return{nq:"autoplay"}}else if(I.D4||q.D4)return{nq:"autoplay"};if(K.j&&I.endSeconds>0)return{nq:"endcr"};if(!I.N)return{nq:"client"};if(!W.QX())return{nq:"no-empty"};W=src(K,W,J,Infinity);return W!=null?{nq:W.msg}:null}; Hf=function(W){g.R.call(this);this.app=W;this.j=this.T=this.K=this.W=null;this.G=1;this.events=new g.BW(this);this.events.D(this.app.BS,g.AN("gaplessshortslooprange"),this.N);g.B(this,this.events)}; PPy=function(){this.j=this.T=this.Z=this.G=this.N=this.S=this.K=this.W=!1}; XyQ=function(W){var J=new PPy;J.W=W.Y("h5_gapless_support_types_diff");J.S=W.Y("h5_gapless_error_on_fps_diff");J.N=W.Y("html5_gapless_use_format_info_fix");J.G=W.Y("html5_gapless_disable_on_av1")&&!W.Y("html5_gapless_enable_on_av1");J.K=W.Y("html5_gapless_check_codec_diff_strictly");J.Z=W.Y("html5_gapless_on_ad_autoplay");J.T=W.Y("html5_gapless_disable_diff_aspect_radio");J.j=W.Y("html5_gapless_disable_on_end_cue_range");return J}; g.Vm=function(W,J,K,I){I=I===void 0?!1:I;KF.call(this);this.mediaElement=W;this.start=J;this.end=K;this.W=I}; WFX=function(W,J,K,I,q,S){S=S===void 0?0:S;g.R.call(this);var p=this;this.policy=W;this.W=J;this.K=K;this.Ok=q;this.j=S;this.T=this.G=null;this.currentVideoDuration=this.S=-1;this.Z=!1;this.sz=new JO;this.Jg=I-J.nE()*1E3;this.sz.then(void 0,function(){}); this.timeout=new g.P0(function(){p.sP("timeout")},1E4); g.B(this,this.timeout);this.N=isFinite(I)||this.Ok.J().experiments.HS("html5_pseudogapless_shorts")&&S7(J.getVideoData());this.status={status:0,error:null}}; KF0=function(W){var J,K,I,q,S,p,n,A,D,f;return g.V(function(h){if(h.K==1){if(W.Iu())return h.return(Promise.reject(Error(W.status.error||"disposed")));W.timeout.start();J=g.E_.Zx();return g.O(h,W.sz,2)}g.E_.C3("gtfta",J);K=W.W.gb();if(K.isEnded())return W.sP("ended_in_finishTransition"),h.return(Promise.reject(Error(W.status.error||"")));if(!W.T||!sE(W.T))return W.sP("next_mse_closed"),h.return(Promise.reject(Error(W.status.error||"")));if(W.K.v4()!==W.T)return W.sP("next_mse_mismatch"),h.return(Promise.reject(Error(W.status.error|| "")));I=iND(W);q=I.LK;S=I.xY;p=I.dG;W.W.c$(!1,!0);n=JpQ(K,q,p,!W.K.getVideoData().isAd());W.K.setMediaElement(n);(A=W.W.kP())&&W.K.RD(A.H2,A.F9);W.N&&(W.K.seekTo(W.K.getCurrentTime()+.001,{CX:!0,oK:3,cN:"gapless_pseudo"}),n.play(),T_());D=K.RZ();D.cpn=W.W.getVideoData().clientPlaybackNonce;D.st=""+q;D.et=""+p;W.K.WS("gapless",D);W.W.WS("gaplessTo",{cpn:W.K.getVideoData().clientPlaybackNonce});f=W.W.getPlayerType()===W.K.getPlayerType();W.W.DE(S,!0,!1,f,W.K.getVideoData().clientPlaybackNonce);W.K.DE(W.K.getCurrentTime(), !0,!0,f,W.W.getVideoData().clientPlaybackNonce);g.Cq(function(){!W.K.getVideoData().XW&&W.K.getPlayerState().isOrWillBePlaying()&&W.K.qG()}); es(W,6);W.dispose();return h.return(Promise.resolve())})}; pc0=function(W){if(W.K.getVideoData().G){var J=W.Ok.J().Y("html5_gapless_suspend_next_loader")&&W.j===1;W.K.gL(W.T,J,IHT(W));es(W,3);qgH(W);var K=Sgc(W);J=K.lF;K=K.J_;J.subscribe("updateend",W.En,W);K.subscribe("updateend",W.En,W);W.En(J);W.En(K)}}; qgH=function(W){W.W.unsubscribe("internalvideodatachange",W.Qx,W);W.K.unsubscribe("internalvideodatachange",W.Qx,W);W.Ok.J().Y("html5_gapless_use_format_info_fix")&&(W.W.unsubscribe("internalvideoformatchange",W.Qx,W),W.K.unsubscribe("internalvideoformatchange",W.Qx,W));W.W.unsubscribe("mediasourceattached",W.Qx,W);W.K.unsubscribe("statechange",W.H9,W)}; JpQ=function(W,J,K,I){W=W.isView()?W.mediaElement:W;return new g.Vm(W,J,K,I)}; es=function(W,J){J<=W.status.status||(W.status={status:J,error:null},J===5&&W.sz.resolve())}; IHT=function(W){return W.Ok.J().Y("html5_gapless_no_clear_buffer_timeline")&&W.j===1&&nK(W.W.getVideoData())}; iND=function(W){var J=W.W.gb();J=J.isView()?J.start:0;var K=W.W.getVideoData().isLivePlayback?Infinity:W.W.DX(!0);K=Math.min(W.Jg/1E3,K)+J;var I=W.N?100:0;W=K-W.K.ac()+I;return{AT:J,LK:W,xY:K,dG:Infinity}}; Sgc=function(W){return{lF:W.G.W.fk,J_:W.G.K.fk}}; RR=function(W){g.R.call(this);var J=this;this.app=W;this.j=this.K=this.W=null;this.N=!1;this.G=this.T=null;this.Z=XyQ(this.app.J());this.S=function(){g.Cq(function(){lHL(J)})}}; nBy=function(W,J,K,I,q){I=I===void 0?0:I;q=q===void 0?0:q;W.QX()||bw(W);W.T=new JO;W.W=J;var S=K,p=q===0;p=p===void 0?!0:p;var n=W.app.As(),A=n.getVideoData().isLivePlayback?Infinity:n.DX(!0)*1E3;S>A&&(S=A-200,W.N=!0);p&&n.getCurrentTime()>=S/1E3?W.S():(W.K=n,p&&(p=S,S=W.K,W.app.BS.addEventListener(g.n9("vqueued"),W.S),p=isFinite(p)||p/1E3>S.getDuration()?p:0x8000000000000,W.j=new g.p9(p,0x8000000000000,{namespace:"vqueued"}),S.addCueRange(W.j)));p=I/=1E3;S=J.getVideoData().W;I&&S&&W.K&&(n=I,A=0, J.getVideoData().isLivePlayback&&(p=Math.min(K/1E3,W.K.DX(!0)),A=Math.max(0,p-W.K.getCurrentTime()),n=Math.min(I,J.DX()+A)),p=tKQ(S,n)||I,p!==I&&W.W.WS("qvaln",{st:I,at:p,rm:A,ct:n}));J=p;I=W.W;I.getVideoData().GJ=!0;I.getVideoData().N=!0;I.nz(!0);S={};W.K&&(S=W.K.MB(),p=W.K.getVideoData().clientPlaybackNonce,S={crt:(S*1E3).toFixed(),cpn:p});I.WS("queued",S);J!==0&&I.seekTo(J+.01,{CX:!0,oK:3,cN:"videoqueuer_queued"});W.G=new WFX(W.Z,W.app.As(),W.W,K,W.app,q);K=W.G;K.status.status!==Infinity&&(es(K, 1),K.W.subscribe("internalvideodatachange",K.Qx,K),K.K.subscribe("internalvideodatachange",K.Qx,K),K.Ok.J().Y("html5_gapless_use_format_info_fix")&&(K.W.subscribe("internalvideoformatchange",K.Qx,K),K.K.subscribe("internalvideoformatchange",K.Qx,K)),K.W.subscribe("mediasourceattached",K.Qx,K),K.K.subscribe("statechange",K.H9,K),K.W.subscribe("newelementrequired",K.qF,K),K.Qx());return W.T}; lHL=function(W){var J,K,I,q,S,p,n,A,D;g.V(function(f){switch(f.K){case 1:if(W.Iu()||!W.T||!W.W)return f.return();W.N&&W.app.As().CG(!0,!1);K=W.app.J().Y("html5_force_csdai_gapful_transition")&&((J=W.app.As())==null?void 0:J.getVideoData().isDaiEnabled());I=null;if(!W.G||K){f.VK(2);break}g.yQ(f,3);return g.O(f,KF0(W.G),5);case 5:g.Cv(f,2);break;case 3:I=q=g.g0(f);case 2:if(!W.W)return f.return();g.E_.Xd("vqsp",function(){W.app.Fr(W.W)}); if(!W.W)return f.return();S=W.W.gb();W.app.J().Y("html5_gapless_seek_on_negative_time")&&S&&S.getCurrentTime()<-.01&&W.W.seekTo(0);g.E_.Xd("vqpv",function(){W.app.playVideo()}); if(I||K)W.W?(p=I?I.message:"forced",(n=W.K)==null||n.WS("gapfulfbk",{r:p}),W.W.ZF(p)):(A=W.K)==null||A.WS("gapsp",{});D=W.T;bw(W);D&&D.resolve();return f.return(Promise.resolve())}})}; bw=function(W,J){J=J===void 0?!1:J;if(W.K){if(W.j){var K=W.K;W.app.BS.removeEventListener(g.n9("vqueued"),W.S);K.removeCueRange(W.j)}W.K=null;W.j=null}W.G&&(W.G.status.status!==6&&(K=W.G,K.status.status!==Infinity&&K.j!==1&&K.sP("Canceled")),W.G=null);W.T=null;W.W&&!J&&W.W!==W.app.Gx()&&W.W!==W.app.As()&&W.W.dispose();W.W&&J&&W.W.Fb();W.W=null;W.N=!1}; ApQ=function(W){var J;return((J=W.G)==null?void 0:J.currentVideoDuration)||-1}; DXc=function(W,J,K){if(W.QX())return"qie";if(W.W==null||W.W.Iu()||W.W.getVideoData()==null)return"qpd";if(J.videoId!==W.W.Ah())return"vinm";if(ApQ(W)<=0)return"ivd";if(K!==1)return"upt";if((K=W.G)==null)W=void 0;else if(K.getStatus().status!==5)W="niss";else if(src(K.policy,K.W,K.K,K.Jg)!=null)W="pge";else{J=Sgc(K);W=J.lF;var I=J.J_;J=g.FV(K.Ok.J().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var q=K.S+J;K.Ok.J().experiments.HS("html5_pseudogapless_shorts")&&(q=iND(K).LK+J);K=fD(I.UA(), q);W=fD(W.UA(),q);W=!(J>0)||K&&W?null:"neb"}return W!=null?W:null}; juX=function(){g.Ao.call(this);var W=this;this.fullscreen=0;this.T=this.G=this.pictureInPicture=this.W=this.K=this.inline=!1;this.j=function(){W.Ww()}; SaQ(this.j);this.S=this.getVisibilityState(this.UM(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Yh(),this.HV(),this.C1(),this.Sz())}; nS0=function(W){return!(W.isMinimized()||W.isInline()||W.isBackground()||W.Yh()||W.HV()||W.C1()||W.Sz())}; g.Bf=function(W){g.R.call(this);this.Ru=W;this.videoData=this.playerState=null}; oR=function(W,J){g.R.call(this);var K=this;this.data=[];this.G=W||NaN;this.K=J||null;this.W=new g.P0(function(){m3(K);ru(K)}); g.B(this,this.W)}; Pfc=function(W){m3(W);return W.data.map(function(J){return J.value})}; m3=function(W){var J=(0,g.L)();W.data.forEach(function(K){K.expire0));(I=g.FV(J, "html5_cobalt_audio_write_ahead_ms"))&&fb("Media.AudioWriteDurationLocal",I);(I=K("html5_cobalt_enable_decode_to_texture"))&&fb("Media.PlayerConfiguration.DecodeToTexturePreferred",I?1:0);(W.ND()||K("html5_log_cpu_info"))&&J8Q();Error.stackTraceLimit=50;var q=g.FV(J,"html5_idle_rate_limit_ms");q&&Object.defineProperty(window,"requestIdleCallback",{value:function(S){return window.setTimeout(S,q)}}); e9v(W.j);NAc(K("html5_use_ump_request_slicer"));TZQ(K("html5_record_now"));K("html5_disable_streaming_xhr")&&(IP=!1);K("html5_byterate_constraints")&&(FQ=!0);K("html5_use_non_active_broadcast_for_post_live")&&(IU=!0);K("html5_enable_encrypted_av1")&&(PW=!0);e5y(g.FV(W.experiments,"html5_sticky_duration_mos"));W.Y("html5_estimate_live_partial_slice_duration")&&(qED=!0)}; dXQ=function(W,J){return W.slice(J.length).replace(/_[a-z]/g,function(K){return K.toUpperCase().replace("_","")}).replace("Dot",".")}; ypA=function(W){for(var J={},K=g.d(Object.keys(W.experiments.flags)),I=K.next();!I.done;I=K.next())if(I=I.value,I.startsWith("cobalt_h5vcc"))if(I.startsWith("cobalt_h5vcc_string")){var q=dXQ(I,"cobalt_h5vcc_string");I=q8(W.experiments,I);q&&I&&(J[q]=fb(q,I))}else I.startsWith("cobalt_h5vcc")&&(q=dXQ(I,"cobalt_h5vcc"),I=g.FV(W.experiments,I),q&&I&&(J[q]=fb(q,I)));return J}; vf=function(W,J,K,I,q){q=q===void 0?[]:q;g.R.call(this);this.Ru=W;this.yP=J;this.T=K;this.segments=q;this.W=void 0;this.K=new Map;q.length&&(this.W=q[0])}; UXH=function(W){if(!(W.segments.length<2)){var J=W.segments.shift();if(J){var K=J.W,I=[];if(K.size){K=g.d(K.values());for(var q=K.next();!q.done;q=K.next()){q=g.d(q.value);for(var S=q.next();!S.done;S=q.next()){S=S.value;for(var p=g.d(S.segments),n=p.next();!n.done;n=p.next())(n=n.value.ao())&&I.push(n);S.removeAll()}}}(K=J.ao())&&I.push(K);I=g.d(I);for(K=I.next();!K.done;K=I.next())W.K.delete(K.value);J.dispose()}}}; ZNQ=function(W,J,K,I){if(!W.W||J>K)return!1;J=new vf(W.Ru,J,K,W.W,I);I=g.d(I);for(K=I.next();!K.done;K=I.next()){K=K.value;var q=K.ao();q&&q!==W.W.ao()&&W.K.set(q,[K])}W=W.W;W.W.has(J.l1())?W.W.get(J.l1()).push(J):W.W.set(J.l1(),[J]);return!0}; QuQ=function(W,J,K){W.K.set(J,K)}; wcy=function(W,J,K,I,q,S){return new CND(K,K+(I||0),!I,J,W,q,S)}; CND=function(W,J,K,I,q,S,p){g.R.call(this);this.yP=W;this.G=J;this.K=K;this.type=I;this.T=q;this.videoData=S;this.Dh=p;this.W=new Map;wP(S)}; MqQ=function(W){if(W.W.size)for(var J=g.d(W.W.values()),K=J.next();!K.done;K=J.next()){K=g.d(K.value);for(var I=K.next();!I.done;I=K.next())I.value.dispose()}W.W.clear()}; gB0=function(W,J,K){g.rk.call(this,K.BK());this.pk=W;this.videoData=J}; GDA=function(W){this.end=this.start=W}; g.YO=function(){this.W=new Map;this.G=new Map;this.K=new Map}; g.s_=function(W,J,K,I){g.R.call(this);var q=this;this.api=W;this.Ru=J;this.playback=K;this.app=I;this.jZ=new g.YO;this.K=new Map;this.S=[];this.j=[];this.G=new Map;this.Fz=new Map;this.Z=new Map;this.D0=null;this.oG=NaN;this.Tx=this.qD=null;this.SI=new g.P0(function(){$Xy(q,q.oG,q.qD||void 0)}); this.events=new g.BW(this);this.P7=15E3;this.XW=new g.P0(function(){q.vS=!0;q.playback.p$(q.P7);xXy(q);if(q.playback.getVideoData().rf()){var S;q.ub({togab:(S=q.G8)==null?void 0:S.identifier})}q.Lm(!1)},this.P7); this.vS=!1;this.C=new Map;this.Js=[];this.G8=null;this.sT=new Set;this.SZ=[];this.bb=[];this.mz=[];this.nk=[];this.W=void 0;this.AI=0;this.OI=!0;this.N=!1;this.Y3=[];this.bO=new Set;this.Lk=new Set;this.kK=new Set;this.XT=0;this.FW=new Set;this.iU=0;this.X1=this.fE=!1;this.IG=this.T="";this.sI=null;this.logger=new g.p4("dai");this.G$={sYZ:function(){return q.K}, Szg:function(){return q.S}, lI8:function(){return q.G}, T0Z:function(){return q.T}, Ew:function(S){q.onCueRangeEnter(q.K.get(S))}, CtK:function(S){q.onCueRangeExit(q.K.get(S))}, Isw:function(S,p){q.K.set(S,p)}, Y_w:function(S){q.IG=S}, YD:function(){return q.YD()}, E_Z:function(S){return q.Z.get(S)}, QeN:function(){return q.sI}}; this.playback.getPlayerType();this.playback.XR(this);this.eZ=this.Ru.ND();g.B(this,this.SI);g.B(this,this.events);g.B(this,this.XW);this.events.D(this.api,g.n9("serverstitchedcuerange"),this.onCueRangeEnter);this.events.D(this.api,g.AN("serverstitchedcuerange"),this.onCueRangeExit);hmX(this.app.ai(),this.playback,!1)}; EBy=function(W,J,K,I,q,S,p,n,A){if(W.Ru.Y("html5_ignore_ads_after_noadresponse")&&A&&W.sT.has(A))return cf(W,{reason:"addafternoad",cueid:A}),"";A=ONQ(W,S,S+q);W.vS&&W.ub({adaftto:1});K||W.ub({missadcon:1,enter:S,len:q,aid:n});W.PS&&!W.PS.tP&&(W.PS.tP=n);W.X1&&W.ub({adfbk:1,enter:S,len:q,aid:n});var D=W.playback;p=p===void 0?S+q:p;S===p&&!q&&W.Ru.Y("html5_allow_zero_duration_ads_on_timeline")&&W.ub({attl0d:1});S>p&&cf(W,{reason:"enterTime_greater_than_return",yP:S,WD:p});var f=D.wf()*1E3;SD&&cf(W,{reason:"parent_return_greater_than_content_duration",WD:p,Pn0:D});D=null;f=g.GT(W.j,{WD:S},function(h,t){return h.WD-t.WD}); f>=0&&(D=W.j[f],D.WD>S&&TWc(W,J.video_id||"",S,p,D));if(A&&D)for(f=0;f.5&&W.ub({ttdtb:1,delta:p,cpn:q.cpn,enter:J.adCpn,exit:K.adCpn,seek:I,skip:S});W.api.Y("html5_ssdai_enable_media_end_cue_range")&&(!I&&!S&&K.isAd&&K.adCpn?W.api.Ez(K.adCpn):(I||S)&&W.ub({mecr:0,seek:I,skip:S}));if(J.isAd&&K.isAd){q=!!S;if(J.adCpn&&K.adCpn){var n=W.G.get(J.adCpn);var A=W.G.get(K.adCpn)}q?W.ub({igtransskip:1,enter:J.adCpn,exit:K.adCpn,seek:I,skip:S}):iA(W,A,n,K.wm,J.wm,I,q)}else if(!J.isAd&&K.isAd){W.IG= q.cpn;W.A2(q.cpn);W.api.publish("serverstitchedvideochange");n=Xd(W,"a2c");W.ub(n);W.XT=0;if(n=K.SP)W.AI=n.end;var D;K.adCpn&&(D=W.G.get(K.adCpn));D&&W.playback.qQ(D,q,K.wm,J.wm,I,!!S)}else if(J.isAd&&!K.isAd){var f;J.adCpn&&(f=W.G.get(J.adCpn));f&&(W.AI=0,W.IG=f.cpn,W.A2(f.cpn),WV(W,f),D=Xd(W,"c2a",f),W.ub(D),W.XT=1,W.playback.qQ(q,f,K.wm,J.wm,I,!!S))}}; Ky=function(W,J,K){K=K===void 0?0:K;var I=g.GT(W.j,{yP:(J+K)*1E3},function(n,A){return n.yP-A.yP}); I=I<0?(I+2)*-1:I;if(I>=0)for(var q=J*1E3,S=I;S<=I+1&&S=p.yP-K*1E3&&q<=p.WD+K*1E3)return{QJ:p,Bi:J}}return{QJ:void 0,Bi:J}}; RmQ=function(W,J){var K="";(J=emX(W,J))&&(K=J.getId());return K?W.G.get(K):void 0}; emX=function(W,J){if(W.IG){var K=W.K.get(W.IG);if(K&&K.start-200<=J&&K.end+200>=J)return K}W=g.d(W.K.values());for(K=W.next();!K.done;K=W.next())if(K=K.value,K.start<=J&&K.end>=J)return K}; $Xy=function(W,J,K){var I=W.Tx||W.app.As().getPlayerState();Ip(W,!0);W.playback.seekTo(J,K);W=W.app.As();J=W.getPlayerState();I.isOrWillBePlaying()&&!J.isOrWillBePlaying()?W.playVideo():I.isPaused()&&!J.isPaused()&&W.pauseVideo()}; Ip=function(W,J){W.oG=NaN;W.qD=null;W.SI.stop();W.D0&&J&&W.D0.f3();W.Tx=null;W.D0=null}; bNQ=function(W){var J=J===void 0?-1:J;var K=K===void 0?Infinity:K;for(var I=[],q=g.d(W.j),S=q.next();!S.done;S=q.next())S=S.value,(S.yPK)&&I.push(S);W.j=I;I=g.d(W.K.values());for(q=I.next();!q.done;q=I.next())q=q.value,q.start>=J&&q.end<=K&&(W.playback.removeCueRange(q),W.K.delete(q.getId()),W.ub({rmAdCR:1}));I=Ky(W,J/1E3);J=I.QJ;I=I.Bi;if(J&&(I=I*1E3-J.yP,q=J.yP+I,J.durationMs=I,J.WD=q,I=W.K.get(J.cpn))){q=g.d(W.S);for(S=q.next();!S.done;S=q.next())S=S.value,S.start===I.end?S.start=J.yP+ J.durationMs:S.end===I.start&&(S.end=J.yP);I.start=J.yP;I.end=J.yP+J.durationMs}if(J=Ky(W,K/1E3).QJ){var p;I="playback_timelinePlaybackId_"+J.Jp+"_video_id_"+((p=J.videoData)==null?void 0:p.videoId)+"_durationMs_"+J.durationMs+"_enterTimeMs_"+J.yP+"_parentReturnTimeMs_"+J.WD;W.Zy("Invalid_clearEndTimeMs_"+K+"_that_falls_during_"+I+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; BWQ=function(W){W.jZ.clearAll();W.K.clear();W.S=[];W.j=[];W.G.clear();W.Fz.clear();W.Z.clear();W.C.clear();W.Js=[];W.G8=null;W.sT.clear();W.SZ=[];W.bb=[];W.mz=[];W.nk=[];W.Y3=[];W.bO.clear();W.Lk.clear();W.kK.clear();W.FW.clear();W.vS=!1;W.W=void 0;W.AI=0;W.OI=!0;W.N=!1;W.XT=0;W.iU=0;W.fE=!1;W.X1=!1;W.T="";W.XW.isActive()&&Pf(W)}; rpv=function(W,J,K,I,q,S){if(!W.X1)if(g.mXA(W,K))W.ub({gdu:"undec",seg:K,itag:q});else if(J=qS(W,J,K,I,S),!(W.playback.getVideoData().rf()&&(J==null?0:J.L1)))return J}; qS=function(W,J,K,I,q){var S=W.C.get(K);if(!S){if(S=oB0(W,J))return S;J=W.vV(K-1,I!=null?I:2);if(q)return W.ub({misscue:q,sq:K,type:I,prevsstate:J==null?void 0:J.Qz,prevrecord:W.C.has(K-1)}),W.C.get(K-1);if((J==null?void 0:J.Qz)===2)return W.ub({adnf:1,sq:K,type:I,prevrecord:W.C.has(K-1)}),W.C.get(K-1)}return S}; oB0=function(W,J){J+=W.XH();if(W.playback.getVideoData().rf())a:{var K=1;K=K===void 0?0:K;var I=J*1E3;W=g.d(W.j);for(var q=W.next();!q.done;q=W.next()){q=q.value;var S=q.lV?q.lV*1E3:q.yP;if(I>=q.yP-K*1E3&&I<=S+q.durationMs+K*1E3){I={QJ:q,Bi:J};break a}}I={QJ:void 0,Bi:J}}else I=Ky(W,J),((K=I)==null?0:K.QJ)||(I=Ky(W,J,1));var p;return(p=I)==null?void 0:p.QJ}; LFI=function(W,J){J=J===void 0?"":J;var K=Ar(J)||void 0;if(!J||!K){var I;W.ub({adcfg:(I=J)==null?void 0:I.length,dcfg:K==null?void 0:K.length})}return K}; kDI=function(W){if(W.Y3.length)for(var J=g.d(W.Y3),K=J.next();!K.done;K=J.next())W.onCueRangeExit(K.value);J=g.d(W.K.values());for(K=J.next();!K.done;K=J.next())W.playback.removeCueRange(K.value);J=g.d(W.S);for(K=J.next();!K.done;K=J.next())W.playback.removeCueRange(K.value);W.K.clear();W.S=[];W.jZ.clearAll();W.W||(W.OI=!0)}; iA=function(W,J,K,I,q,S,p){if(J&&K){W.IG=K.cpn;W.A2(K.cpn);WV(W,K);var n=Xd(W,"a2a",K);W.ub(n);W.XT++;W.playback.qQ(J,K,I||0,q||0,!!S,!!p)}else W.ub({misspbkonadtrans:1,enter:(K==null?void 0:K.cpn)||"",exit:(J==null?void 0:J.cpn)||"",seek:S,skip:p})}; vBc=function(W,J,K,I){if(I)for(I=0;IK){var S=q.end;q.end=J;zm0(W,K,S)}else if(q.start>=J&&q.startK)q.start=K;else if(q.end>J&&q.end<=K&&q.start=J&&q.end<=K){W.playback.removeCueRange(q);if(W.Y3.includes(q))W.onCueRangeExit(q);W.S.splice(I,1);continue}I++}else zm0(W,J,K)}; zm0=function(W,J,K){J=W.Ho(J,K);K=!0;g.E$(W.S,J,function(p,n){return p.start-n.start}); for(var I=0;I0){var q=W.S[I],S=W.S[I-1];if(Math.round(S.end/1E3)>=Math.round(q.start/1E3)){S.end=q.end;q!==J?W.playback.removeCueRange(q):K=!1;W.S.splice(I,1);continue}}I++}if(K)for(W.playback.addCueRange(J),J=W.playback.FU("serverstitchedcuerange",36E5),J=g.d(J),K=J.next();!K.done;K=J.next())W.K.delete(K.value.getId())}; Sy=function(W,J,K){if(K===void 0||!K){K=g.d(W.Js);for(var I=K.next();!I.done;I=K.next()){I=I.value;if(J>=I.start&&J<=I.end)return;if(J===I.end+1){I.end+=1;return}}W.Js.push(new GDA(J))}}; g.mXA=function(W,J){W=g.d(W.Js);for(var K=W.next();!K.done;K=W.next())if(K=K.value,J>=K.start&&J<=K.end)return!0;return!1}; py=function(W,J,K){var I;if(I=W.playback.getVideoData().rf()||W.Ru.Y("html5_ssdai_extent_last_unfinished_ad_cue_range"))I=(I=W.G.get(J))&&I.gq?(W=W.Z.get(I==null?void 0:I.gq))&&W.slice(-1)[0].cpn===J:!1;return I&&K===2?1E3:0}; TWc=function(W,J,K,I,q){var S;J={reason:"overlapping_playbacks",epS:J,yP:K,WD:I,U3y:q.Jp,eLW:((S=q.videoData)==null?void 0:S.videoId)||"",qJ3:q.durationMs,LjZ:q.yP,zLS:q.WD};cf(W,J)}; cf=function(W,J,K){W.playback.HF(J,K)}; YgQ=function(W,J){var K=[];W=W.Z.get(J);if(!W)return[];W=g.d(W);for(J=W.next();!J.done;J=W.next())J=J.value,J.cpn&&K.push(J.cpn);return K}; suy=function(W,J,K){var I=0;W=W.Z.get(K);if(!W)return-1;W=g.d(W);for(K=W.next();!K.done;K=W.next()){if(K.value.cpn===J)return I;I++}return-1}; cpv=function(W,J){var K=0;W=W.Z.get(J);if(!W)return 0;W=g.d(W);for(J=W.next();!J.done;J=W.next())J=J.value,J.durationMs!==0&&J.WD!==J.yP&&K++;return K}; PNQ=function(W,J,K){var I=!1;if(K&&(K=W.Z.get(K))){K=g.d(K);for(var q=K.next();!q.done;q=K.next())q=q.value,q.durationMs!==0&&q.WD!==q.yP&&(q=q.cpn,J===q&&(I=!0),I&&!W.Lk.has(q)&&(W.ub({decoratedAd:q}),W.Lk.add(q)))}}; xXy=function(W){W.eZ&&W.ub({adf:"0_"+((new Date).getTime()/1E3-W.iU)+"_isTimeout_"+W.vS})}; ONQ=function(W,J,K){if(W.SZ.length)for(var I=g.d(W.SZ),q=I.next(),S={};!q.done;S={Ha:void 0},q=I.next()){S.Ha=q.value;q=S.Ha.startSecs*1E3;var p=S.Ha.vt*1E3+q;if(J>q&&Jq&&KJ){q=A;break a}if(q&&S.l1()===S.Vd()){q=p[0];break a}}}else W.api.WS("ssap",{ctnf:1});q=void 0}if(q)return{clipId:q.ao()||"",YU:q.l1()};W.api.WS("mci",{cs:I.ao(),mt:J,tl:AkQ(W),invt:!!K});return{clipId:"",YU:0}}; f5D=function(W,J){return(W=jQA(W,J*1E3))?W.l1():0}; jQA=function(W,J){if(W=W.timeline.K.get(W.IG)){W=g.d(W);for(var K=W.next();!K.done;K=W.next())if(K=K.value,K.l1()<=J&&K.Vd()>=J)return K}}; nWc=function(W,J,K){K=K===void 0?!1:K;var I=W.timeline.W;if(I){I=I.W;var q=Array.from(I.keys());g.TT(q);J=g.GT(q,J);J=I.get(q[J<0?(J+2)*-1:J]);if(!K&&J){K=g.d(J);for(J=K.next();!J.done;J=K.next())if(J=J.value,J.l1()!==J.Vd())return J;return W.timeline}return J&&J.length>0?J[J.length-1]:void 0}}; KOH=function(W,J){var K;if(W.Be)for(K=W.SX.shift();K&&K!==W.Be;)K=W.SX.shift();else K=W.SX.shift();if(K){if(W.RW.has(K))hID(W,K);else if(J===3||J===4)W.rP.stop(),W.api.playVideo(1);W.mP.set(W.IG,J);W.api.WS("ssap",{onvftn:1});tPQ(W,K);return!1}W.api.WS("ssap",{onvftv:1});W.rP.stop();return!0}; hID=function(W,J){J=W.timeline.K.get(J);if(J==null?0:J.length)W.api.pauseVideo(),W.rP.start(J[0].Dh)}; tPQ=function(W,J){var K=W.playback.getVideoData(),I=K.clientPlaybackNonce;W.Wu&&(W.events.aZ(W.Wu),W.Wu=null);var q=W.IG,S=!1;if(q==="")q=I,S=!0;else if(q===void 0){var p=W.playback.zl();p&&W.timeline.K.has(p)&&(q=p);W.api.WS("ssap",{mcc:q+";"+J});W.playback.Uk(new xm("ssap.timelineerror",{e:"missing_current_cpn",pcpn:q,ccpn:J}))}if(q===J)S&&K&&FOv(W,K,S);else{p=W.mP.get(q);if(!S&&(!p||p!==3&&p!==5&&p!==6&&p!==7)){var n=W.api.Ez(W.IG);W.api.WS("ssap",{nmec:n,cpc:W.IG,ec:J})}p&&p!==2||W.Ts();W.IG= J;W.Ts();J=W.timeline.K.get(W.IG);if(J==null?0:J.length){J=J[0];n=J.type;q!==I&&(W.eU=q,K=W.pB.get(q));p?W.mP.delete(q):p=S?1:2;W.api.WS("ssapt",{ostro:p,pcpn:q,ccpn:W.IG});a:{var A=W.IG;if(!W.VJ.has(A))for(var D=g.d(W.VJ),f=D.next();!f.done;f=D.next()){var h=g.d(f.value);f=h.next().value;h=h.next().value;if(h.getId().includes(A)){A=f;break a}}}W.playback.A_(A,A!==W.IG);A=Math.max(0,a50(W,q));D=W.playback.getCurrentTime();D=Math.max(0,D-l5Q(W,W.IG)/1E3);f=J.getVideoData();h=p===3||p===5||p===6||p=== 7;var t=W.playback.getPlayerState();t=!g.z(t,8)&&g.z(t,16);h=h||t;t&&W.api.WS("ssap",{iis:1});W.playback.Xh(q,W.IG,A,D,!1,h,W.playback.getPlayerState(),!0);W.api.WS("ssapt",{ostri:p,pcpn:q,ccpn:W.IG});var F;W.playback.uQ(q,W.IG,I,f,(F=W.J7.get(q))!=null?F:(0,g.L)(),K);W.J7.delete(q);S?K=void 0:K||W.api.WS("ssap",{pvdm:q+";"+W.IG,pvdmc:W.IG===I?"1":"0"});W.api.WS("ssap",{tpac:q+";"+W.IG,tpcc:I,tpv:(f==null?0:f.Nk())?"1":"0"},!1,1);W.api.Ij();W.api.publish("videodatachange","newdata",f,n,K,p);J.K|| W.playback.getVideoData().publish("dataupdated");W.RW.delete(q);W.Be="";f&&n===1?FOv(W,f):W.playback.WS("ssap",{nis:W.IG});n===2?W.XT++:W.XT=0}}}; FOv=function(W,J,K){K=K===void 0?!1:K;if(J.startSeconds&&W.zK){var I=J.startSeconds;J=W.timeline.K.get(J.clientPlaybackNonce);if(J==null?0:J.length)I+=J[0].l1()/1E3,W.playback.seekTo(I,{cX:!0}),W.zK=!1,W.playback.WS("ssap",{is:W.IG,co:K?"1":"0",tse:I.toFixed()})}}; umv=function(W,J,K){J=W.timeline.K.get(J);if(J!=null&&J.length&&(J=nWc(W,J[0].l1()))){J=g.d(J.segments);for(var I=J.next();!I.done;I=J.next()){I=I.value;if(I.ao()===K)break;if(I=I.ao()){var q=W.VJ.get(I);q&&W.playback.removeCueRange(q);W.VJ.delete(I)}}}}; a50=function(W,J){J=J||W.IG;var K=W.pB.get(J);return K?K.OI:J!==W.playback.getVideoData().clientPlaybackNonce?0:W.playback.getVideoData().OI}; AkQ=function(W){var J=W.IG;J||(J=W.playback.getVideoData().clientPlaybackNonce);var K,I,q=Array.from((I=(K=W.timeline.W)==null?void 0:K.W.values())!=null?I:[]);K=[];if(q==null?0:q.length)for(I=g.d(q),q=I.next();!q.done;q=I.next())if(q=q.value,q.length&&q[0]&&(q=q[0].segments,q.length)){q=g.d(q);for(var S=q.next();!S.done;S=q.next()){var p=S.value;S="st."+p.l1()+";";S+="et."+p.Vd()+";";var n=p.ao();n&&(S+="cpn."+n+";",S+="a."+(J===n?1:0)+";");if(p=p.getVideoData())n=void 0,S+="vid."+((n=p.videoId)!= null?n:"nvd");K.push(S)}}return(K.length?K.join(","):"empty."+J)+";cpcpn."+W.Ik()}; I5c=function(W){W.playback.LG(Array.from(W.VJ.values()));W.VJ.clear()}; dpQ=function(W,J,K,I){g.R.call(this);var q=this;this.api=W;this.Ru=J;this.W=K;this.app=I;this.j=new Map;this.K=[];this.G=this.Z=null;this.PS=NaN;this.S=this.T=this.C=null;this.N=new g.P0(function(){NVy(q,q.PS,q.C||void 0)}); this.sI=[];this.G8=new g.P0(function(){var S=q.sI.pop();if(S){var p=S.Jp,n=S.playerVars;S=S.playerType;n&&(n.prefer_gapless=!0,q.api.preloadVideoByPlayerVars(n,S,NaN,"",p),q.sI.length&&g.XY(q.G8,4500))}}); this.events=new g.BW(this);this.G$={v_0:function(){return q.K}}; this.W.getPlayerType();g.B(this,this.N);g.B(this,this.G8);g.B(this,this.events);this.events.D(this.api,g.n9("childplayback"),this.onCueRangeEnter);this.events.D(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.D(this.api,"presentingplayerstatechange",this.Lw)}; QQT=function(W,J,K,I,q,S){var p=J.cpn,n=J.docid||J.video_id||J.videoId||J.id,A=W.W;S=S===void 0?q+I:S;if(q>S)return lA(W,"enterAfterReturn enterTimeMs="+q+" is greater than parentReturnTimeMs="+S.toFixed(3),p,n),"";var D=A.wf()*1E3;if(qD)return A="returnAfterDuration parentReturnTimeMs="+S.toFixed(3)+" is greater than parentDurationMs="+D+". And timestampOffset in seconds is "+ A.nE(),lA(W,A,p,n),"";D=null;for(var f=g.d(W.K),h=f.next();!h.done;h=f.next()){h=h.value;if(q>=h.yP&&qh.yP)return lA(W,"overlappingReturn",p,n),"";if(S===h.yP)return lA(W,"outOfOrder",p,n),"";q===h.WD&&(D=h)}p="cs_childplayback_"+yk0++;n={SP:ny(I,!0),Jg:Infinity,target:null};var t={Jp:p,playerVars:J,playerType:K,durationMs:I,yP:q,WD:S,O_:n};W.K=W.K.concat(t).sort(function(y,U){return y.yP-U.yP}); D?UpH(W,D,{SP:ny(D.durationMs,!0),Jg:D.O_.Jg,target:t}):(J={SP:ny(q,!1),Jg:q,target:t},W.j.set(J.SP,J),A.addCueRange(J.SP));J=!0;if(W.W===W.app.As()&&(A=A.getCurrentTime()*1E3,A>=t.yP&&AJ)break;if(S>J)return{QJ:I,Bi:J-q};K=S-I.WD/1E3}return{QJ:null,Bi:J-K}}; NVy=function(W,J,K){K=K===void 0?{}:K;var I=W.S||W.app.As().getPlayerState();jy(W,!0);J=isFinite(J)?J:W.W.vY();var q=gWv(W,J);J=q.Bi;var S=(q=q.QJ)&&!A1(W,q)||!q&&W.W!==W.app.As(),p=J*1E3;p=W.G&&W.G.start<=p&&p<=W.G.end;!S&&p||DV(W);q?Zhv(W,q,J,K,I):GfQ(W,J,K,I)}; GfQ=function(W,J,K,I){var q=W.W;q!==W.app.As()&&W.app.zw();q.seekTo(J,Object.assign({},{cN:"application_timelinemanager"},K));$pD(W,I)}; Zhv=function(W,J,K,I,q){var S=A1(W,J);if(!S){J.playerVars.prefer_gapless=!0;W.Ru.Y("html5_enable_ssap_entity_id")&&(J.playerVars.cached_load=!0);var p=new g.zR(W.Ru,J.playerVars);p.Jp=J.Jp;W.api.Xx(p,J.playerType)}p=W.app.As();S||p.addCueRange(J.O_.SP);p.seekTo(K,Object.assign({},{cN:"application_timelinemanager"},I));$pD(W,q)}; $pD=function(W,J){W=W.app.As();var K=W.getPlayerState();J.isOrWillBePlaying()&&!K.isOrWillBePlaying()?W.playVideo():J.isPaused()&&!K.isPaused()&&W.pauseVideo()}; jy=function(W,J){W.PS=NaN;W.C=null;W.N.stop();W.T&&J&&W.T.f3();W.S=null;W.T=null}; A1=function(W,J){W=W.app.As();return!!W&&W.getVideoData().Jp===J.Jp}; xpH=function(W){var J=W.K.find(function(q){return A1(W,q)}); if(J){var K=W.app.As();DV(W);var I=new g.lp(8);J=MPH(W,J)/1E3;GfQ(W,J,{},I);K.WS("forceParentTransition",{childPlayback:1});W.W.WS("forceParentTransition",{parentPlayback:1})}}; TVL=function(W,J,K){J=J===void 0?-1:J;K=K===void 0?Infinity:K;for(var I=J,q=K,S=g.d(W.j),p=S.next();!p.done;p=S.next()){var n=g.d(p.value);p=n.next().value;n=n.next().value;n.Jg>=I&&n.target&&n.target.WD<=q&&(W.W.removeCueRange(p),W.j.delete(p))}I=J;q=K;S=[];p=g.d(W.K);for(n=p.next();!n.done;n=p.next())if(n=n.value,n.yP>=I&&n.WD<=q){var A=W;A.Z===n&&DV(A);A1(A,n)&&A.app.zw()}else S.push(n);W.K=S;I=gWv(W,J/1E3);J=I.QJ;I=I.Bi;J&&(I*=1E3,Oh0(W,J,I,J.WD===J.yP+J.durationMs?J.yP+I:J.WD));(J=gWv(W,K/1E3).QJ)&& lA(W,"Invalid clearEndTimeMs="+K+" that falls during playback={timelinePlaybackId="+(J.Jp+" video_id="+J.playerVars.video_id+" durationMs="+J.durationMs+" enterTimeMs="+J.yP+" parentReturnTimeMs="+J.WD+"}.Child playbacks can only have duration updated not their start."))}; Oh0=function(W,J,K,I){J.durationMs=K;J.WD=I;I={SP:ny(K,!0),Jg:K,target:null};UpH(W,J,I);A1(W,J)&&W.app.As().getCurrentTime()*1E3>K&&(J=MPH(W,J)/1E3,K=W.app.As().getPlayerState(),GfQ(W,J,{},K))}; lA=function(W,J,K,I){W.W.WS("timelineerror",{e:J,cpn:K?K:void 0,videoId:I?I:void 0})}; VPQ=function(W){W&&W!=="web"&&HhH.includes(W)}; fy=function(){g.R.call(this);this.W=new oR(5,null);g.B(this,this.W);this.K=new oR(15,null);g.B(this,this.K)}; NtQ=function(W,J){return J?!!W.W.get(J):!1}; EWH=function(W,J){W.dataset.version=J}; bhy=function(W){g.k.call(this,{V:"div",au:["html5-video-player"],U:{tabindex:W.J().disableOrganicUi?"":"-1",id:W.webPlayerContextConfig?W.webPlayerContextConfig.rootElementId:W.config.attrs.id},L:[{V:"div",B:g.Jd.VIDEO_CONTAINER,U:{"data-layer":"0"}}]});var J=this;this.app=W;this.Ax=this.T8(g.Jd.VIDEO_CONTAINER);this.kO=new g.E5(0,0,0,0);this.PN=null;this.w7=new g.E5(0,0,0,0);this.hZ=this.kX=this.pK=NaN;this.w3=this.d7=this.Ku=this.u6=!1;this.UB=NaN;this.SY=!1;this.oz=null;this.Q6=function(){J.element.focus({preventScroll:!0})}; this.l5=function(){J.app.BS.publish("playerUnderlayVisibilityChange","visible");J.PN.classList.remove(g.Jd.VIDEO_CONTAINER_TRANSITIONING);J.PN.removeEventListener(f1,J.l5);J.PN.removeEventListener("transitioncancel",J.l5)}; this.r9=this.G6=!1;var K=this.element.addEventListener,I=this.element.removeEventListener;this.addEventListener=function(S,p,n){K.apply(J.element,[S,p,n])}; this.removeEventListener=function(S,p,n){I.apply(J.element,[S,p,n])}; var q=W.J();q.transparentBackground&&this.GH("ytp-transparent");q.controlsType==="0"&&this.GH("ytp-hide-controls");g.lK(this.element,"ytp-exp-bottom-control-flexbox");g.lK(this.element,"ytp-modern-caption");q.Y("enable_new_paid_product_placement")&&!g.iL(q)&&g.lK(this.element,"ytp-exp-ppp-update");q.Y("html5_enable_ssap")&&g.lK(this.element,"ytp-ssap");g.lK(this.element,"ytp-livebadge-color");if(q.Y("delhi_modern_web_player"))switch(g.lK(this.element,"ytp-delhi-modern"),q8(q.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.lK(this.element, "ytp-delhi-modern-with-luminosity");break;case "difference":g.lK(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.lK(this.element,"ytp-delhi-modern-with-exclusion")}EWH(this.element,eIv(W));this.Li=!1;this.Vh=new g.Vt(NaN,NaN);RIQ(this);this.D(W.BS,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; RIQ=function(W){function J(){W.PN&&h1(W);t1(W)!==W.SY&&W.resize()} function K(p,n){W.iJ(p,n)} function I(p){p.getVideoData()&&W.updateVideoData(p.getVideoData())} function q(){W.w7=new g.E5(0,0,0,0);W.kO=new g.E5(0,0,0,0)} var S=W.app.BS;S.addEventListener("initializingmode",q);S.addEventListener("videoplayerreset",I);S.addEventListener("videodatachange",K);S.addEventListener("presentingplayerstatechange",J);W.addOnDisposeCallback(function(){S.removeEventListener("initializingmode",q);S.removeEventListener("videoplayerreset",I);S.removeEventListener("videodatachange",K);S.removeEventListener("presentingplayerstatechange",J)})}; mpQ=function(W){var J=W.app.As(),K=J=J?J.getVideoData():null;if(J==null?0:g.c8(J))K=W.app.BS.getVideoData();if(K){if(g.xh(K)||g.Ok(K)||g.Tg(K))return 16/9;if(qE(K)&&K.G.W)return W=K.G.videoInfos[0].video,BVQ(W.width,W.height)}return(W=W.PN)?BVQ(W.videoWidth,W.videoHeight):16/9}; rkQ=function(W,J,K,I){var q=K,S=BVQ(J.width,J.height);W.u6?q=KS?{width:J.width,height:J.width/q,aspectRatio:q}:qq?W.width=W.height*K:KA;if(t1(W)){var D=mpQ(W);var f=isNaN(D)||g.vM||KT&&g.dg||A;zq&&!g.gn(601)?D=q.aspectRatio:f=f||S.controlsType==="3";f?A?(f=S.Y("place_shrunken_video_on_left_of_player")?16:W.getPlayerSize().width-J.width-16,D=Math.max((W.getPlayerSize().height-J.height)/2,0),f=new g.E5(f,D,J.width, J.height),W.PN.style.setProperty("border-radius","12px")):f=new g.E5(0,0,J.width,J.height):(K=q.aspectRatio/D,f=new g.E5((J.width-q.width/K)/2,(J.height-q.height)/2,q.width/K,q.height),K===1&&g.dg&&(D=f.width-J.height*D,D>0&&(f.width+=D,f.height+=D)));g.jN(W.element,"ytp-fit-cover-video",Math.max(f.width-q.width,f.height-q.height)<1);if(n||W.Li)W.PN.style.display="";W.SY=!0}else{f=-J.height;zq?f*=window.devicePixelRatio:g.Jg&&(f-=window.screen.height);f=new g.E5(0,f,J.width,J.height);if(n||W.Li)W.PN.style.display= "none";W.SY=!1}eW(W.w7,f)||(W.w7=f,g.RP(S)?(W.PN.style.setProperty("width",f.width+"px","important"),W.PN.style.setProperty("height",f.height+"px","important")):g.s5(W.PN,f.getSize()),I=new g.Tm(f.left,f.top),g.kE(W.PN,Math.round(I.x),Math.round(I.y)),I=!0);J=new g.E5((J.width-q.width)/2,(J.height-q.height)/2,q.width,q.height);eW(W.kO,J)||(W.kO=J,I=!0);g.bj(W.PN,"transform",K===1?"":"scaleX("+K+")");p&&A!==W.d7&&(A&&(W.PN.addEventListener(f1,W.l5),W.PN.addEventListener("transitioncancel",W.l5),W.PN.classList.add(g.Jd.VIDEO_CONTAINER_TRANSITIONING)), W.d7=A,W.app.BS.publish("playerUnderlayVisibilityChange",W.d7?"transitioning":"hidden"));return I}; kfH=function(W){W.G6=!W.G6;W.r9=!0;W.element.classList.toggle("ytp-retro-player",W.G6);W.resize();W.r9=!1;W.app.BS.qN("onRetroModeChanged",W.G6)}; zII=function(){this.csn=g.M_();this.clientPlaybackNonce=null;this.elements=new Set;this.G=new Set;this.W=new Set;this.K=new Set}; vWy=function(W){if(W.csn!==g.M_())if(W.csn==="UNDEFINED_CSN")W.csn=g.M_();else{var J=g.M_(),K=g.wT();if(J&&K){W.csn=J;for(var I=g.d(W.elements),q=I.next();!q.done;q=I.next())(q=q.value.visualElement)&&q.isClientVe()&&J&&K&&(g.yb("combine_ve_grafts")?b6(em(),q,K):g.X0(g.Yb)(void 0,J,K,q))}if(J)for(W=g.d(W.W),K=W.next();!K.done;K=W.next())(K=K.value.visualElement)&&K.isClientVe()&&g.IE(J,K)}}; g.Fc=function(W,J,K,I){g.R.call(this);var q=this;this.logger=new g.p4("App");this.xO=this.Md=!1;this.Nj={};this.Pl=[];this.Td=!1;this.WE=null;this.intentionalPlayback=!1;this.G9=!0;this.Qs=!1;this.Iz=this.o8=this.dZ=null;this.Rg=!0;this.mediaElement=this.xt=null;this.nK=NaN;this.v8=!1;this.AD=this.Hl=this.JD=this.bK=this.screenLayer=this.playlist=null;this.Lu=[];this.Nm=0;this.G$={ai:function(){return q.IZ}, La:function(){return q.JD}, lDO:function(){return q.bK}, Eb:function(S){q.JD=S}, dY:function(S,p){q.JD&&q.JD.dY(S,p)}}; this.logger.debug("constructor begin");this.config=Lcv(J||{});this.webPlayerContextConfig=K;I30();J=this.config.args||{};this.Ru=new kK(J,K,K?K.canaryState:this.config.assets.player_canary_state,I,this);g.B(this,this.Ru);NWL(this.Ru);I=ypA(this.Ru);this.Ru.ND()&&this.Lu.push({key:"h5vcc",value:I});this.Ru.experiments.HS("jspb_serialize_with_worker")&&RJy();this.Ru.experiments.HS("gzip_gel_with_worker")&&$1y();this.Ru.K&&!YIy&&(window.addEventListener(M8?"touchstart":"click",YPQ,{capture:!0,passive:!0}), YIy=!0);this.Y("html5_onesie")&&(this.uI=new lU(this.Ru),g.B(this,this.uI));this.eW=I$(T4(this.Ru)&&!0,J.enablesizebutton);this.cE=I$(!1,J.player_wide);this.visibility=new juX;g.B(this,this.visibility);this.Y("web_log_theater_mode_visibility")&&this.S8(I$(!1,J.player_wide));this.Md=I$(!1,J.external_list);this.events=new g.BW(this);g.B(this,this.events);this.Y("start_client_gcf")&&(OZ(EZ(),{nj:l2,uT:WW0()}),this.Sb=EZ().resolve(l2),KWQ(this.Sb));this.HP8=new hY;g.B(this,this.HP8);this.PU=new zII;I= new tY;this.BS=new g.gk(this,I);g.B(this,this.BS);this.template=new bhy(this);g.B(this,this.template);this.appState=1;this.r$=sQQ(this);g.B(this,I);I={};this.aQ=(I.internalvideodatachange=this.YTZ,I.playbackready=this.jGS,I.playbackstarted=this.IJZ,I.statechange=this.iEu,I);this.jV=new jE(this.BS);this.eP=ckQ(this);I=this.Y("html5_load_wasm");J=this.Y("html5_allow_asmjs");I&&PgD||J?(this.Ru.kK=QpQ(this.eP,J),Ca(Qz(this.Ru.kK,function(S){q.Ru.Es=S;q.As().WS("wasm",{a:S.W})}),function(S){g.ET(S); q.As().WS("wasm",{e:"message"in S&&S.message||S.toString()||""})})):I&&!PgD&&this.As().WS("wasm",{e:"wasm unavailable"}); this.jI=new Tuy(this.Ru,this.eP);this.BS.publish("csiinitialized");I=10;g.$w(this.Ru)&&(I=3);W8(this.Ru)&&(I=g.FV(this.Ru.experiments,"tvhtml5_unplugged_preload_cache_size"));this.IZ=new g.kO(this.BS,I);I=XkA(this);this.IZ.lw(I);WL0(this);I={};this.Lr=(I.airplayactivechange=this.Bf3,I.airplayavailabilitychange=this.OkZ,I.beginseeking=this.Dvs,I.sabrCaptionsDataLoaded=this.nKN,I.endseeking=this.rpy,I.internalAbandon=this.oKN,I.internalaudioformatchange=this.hNy,I.internalvideodatachange=this.CU3,I.internalvideoformatchange= this.ReW,I.liveviewshift=this.tnw,I.playbackstalledatstart=this.eNy,I.progresssync=this.bks,I.onAbnormalityDetected=this.dvN,I.onSnackbarMessage=this.Uv3,I.onLoadProgress=this.ApK,I.SEEK_COMPLETE=this.qkw,I.SEEK_TO=this.LzN,I.onVideoProgress=this.uvg,I.onLoadedMetadata=this.yp8,I.onAutoplayBlocked=this.wN3,I.onPlaybackPauseAtStart=this.k$8,I.playbackready=this.Hku,I.statechange=this.WG,I.newelementrequired=this.Rh,I.heartbeatparams=this.mvK,I.videoelementevent=this.fH8,I.drmoutputrestricted=this.Nfs, I.signatureexpired=this.zN8,I.nonfatalerror=this.pNy,I.reloadplayer=this.JpZ,I);this.xW=new g.BW(this);g.B(this,this.xW);this.j_=new fy;g.B(this,this.j_);this.tj=this.y$=-1;this.C$=new g.P0(this.template.resize,16,this.template);g.B(this,this.C$);this.pk=new dpQ(this.BS,this.Ru,this.Gx(),this);this.tI=new vf(this.Ru);this.LU=new RR(this);g.B(this,this.LU);this.Qj=new Hf(this);g.B(this,this.Qj);VPQ(this.Ru.W.c);this.events.D(this.BS,g.n9("appapi"),this.aJI);this.events.D(this.BS,g.AN("appapi"),this.STw); this.events.D(this.BS,g.n9("appprogressboundary"),this.gm3);this.events.D(this.BS,g.AN("applooprange"),this.Pv);this.events.D(this.BS,"presentingplayerstatechange",this.Lw);this.events.D(this.BS,"resize",this.jBs);this.template.MN(g.E(Lw(document,W)));this.events.D(this.BS,"offlineslatestatechange",this.xvZ);this.events.D(this.BS,"sabrCaptionsTrackChanged",this.DkS);this.events.D(this.BS,"sabrCaptionsBufferedRangesUpdated",this.wDN);this.eP.X.J().W$&>(this.eP,"offline");this.Ru.FW&&g.uV("ux",g.O_); W=g.FV(this.Ru.experiments,"html5_defer_fetch_att_ms");this.rY=new g.P0(this.Lmg,W,this);g.B(this,this.rY);this.K7().Nk()&&(g.e6()&&this.K7().G8.push("remote"),iEy(this));this.jI.tick("fs");JfA(this);this.Ru.FW&>(this.eP,"ux",!0);g.xK(this.eP.X.J())&>(this.eP,"embed");this.Y("web_player_sentinel_is_uniplayer")||g.ET(new g.vd("Player experiment flags missing","web_player_sentinel_is_uniplayer"));W=this.Y("web_player_sentinel_yt_experiments_sync");I=g.yb("web_player_sentinel_yt_experiments_sync"); W!==I&&g.ET(new g.vd("b/195699950",{yt:W,player:I}));K||g.ET(new g.vd("b/179532961"));this.yB=KLH(this);if(K=g.FV(this.Ru.experiments,"html5_block_pip_safari_delay"))this.nJ=new g.P0(this.ev,K,this),g.B(this,this.nJ);H7=this.Ru.Fz;K=g.FV(this.Ru.experiments,"html5_performance_impact_profiling_timer_ms");K>0&&(this.Dg=new g.RI(K),g.B(this,this.Dg),this.events.D(this.Dg,"tick",function(){q.NU&&IDL.C3("apit",q.NU);q.NU=IDL.Zx()})); this.BS.publish("applicationInitialized");this.logger.debug("constructor end")}; KLH=function(W){function J(K){K.stack&&K.stack.indexOf("player")!==-1&&W.As().qK(K)} eg.subscribe("handleError",J);cO.push(J);return function(){eg.unsubscribe("handleError",J);var K=cO.indexOf(J);K!==-1&&cO.splice(K,1)}}; XkA=function(W){var J=new g.zR(W.Ru,W.config.args);W.BS.publish("initialvideodatacreated",J);return ap(W,1,J,!1)}; WL0=function(W){var J=W.Gx(),K=J.setPlaybackRate;if(W.Ru.T)var I=1;else I=Number(g.V0("yt-player-playback-rate"))||1,I=qMQ(W,I);K.call(J,I);J.bA(W.aQ,W);J.xF()}; ckQ=function(W){var J="",K=eIv(W);K.indexOf("//")===0&&(K=W.Ru.protocol+":"+K);var I=K.lastIndexOf("/base.js");I!==-1&&(J=K.substring(0,I+1));if(K=Error().stack)if(K=K.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))K=K[1],K.includes(J)||g.ET(Error("Player module URL mismatch: "+(K+" vs "+J+".")));J=new pVQ(W.BS,J);SMX(W,J);return J}; SMX=function(W,J){var K={};K=(K.destroyed=function(){W.onApiChange()},K); J.G=K}; sQQ=function(W){if(W.Ru.storeUserVolume){W=g.V0("yt-player-volume")||{};var J=W.volume;W={volume:isNaN(J)?100:g.Gm(Math.floor(J),0,100),muted:!!W.muted}}else W={volume:100,muted:W.Ru.mute};return W}; uA=function(W){W.mediaElement=W.Ru.deviceIsAudioOnly?new g.Yx(g.i5("AUDIO")):T2.pop()||new g.Yx(g.i5("VIDEO"));g.B(W,W.mediaElement);W.As().setMediaElement(W.mediaElement);try{W.Ru.fE?(W.Hl&&W.events.aZ(W.Hl),W.Hl=W.events.D(W.mediaElement,"volumechange",W.XNs)):(W.mediaElement.Gf(W.r$.muted),W.mediaElement.setVolume(W.r$.volume/100))}catch(q){W.sP("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(q&&typeof q==="object"&&"message"in q&&typeof q.message==="string"&&q.message.replace(/[;:,]/g, "_")));return}g.$d(W.xW);p$Q(W);var J=W.template,K=W.mediaElement.v7();J.PN=K;J.w3=!1;J.PN.parentNode||qO(J.Ax,J.PN,0);J.w7=new g.E5(0,0,0,0);LOQ(J);h1(J);K=J.PN;g.lK(K,"video-stream");g.lK(K,g.Jd.MAIN_VIDEO);var I=J.app.J();I.oH&&K.setAttribute("data-no-fullscreen","true");I.Y("html5_local_playsinline")?"playsInline"in HW()&&(K.playsInline=!0):I.WC&&(K.setAttribute("webkit-playsinline",""),K.setAttribute("playsinline",""));I.RO&&J.PN&&J.D(K,"click",K.play,K);try{W.mediaElement.activate()}catch(q){W.sP("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(q&&typeof q==="object"&&"message"in q&&typeof q.message==="string"&&q.message.replace(/[;:,]/g,"_")))}}; no0=function(W){if(!lDD(W)){var J=W.Gx().gb();J&&(J=J.EE(),J instanceof Promise&&J.catch(function(){})); NS(W,Fg(W.getPlayerStateObject()))}}; p$Q=function(W){var J=W.mediaElement;Rs()?W.xW.D(J,"webkitpresentationmodechanged",W.rDS):window.document.pictureInPictureEnabled&&(W.xW.D(J,"enterpictureinpicture",function(){W.fG(!0)}),W.xW.D(J,"leavepictureinpicture",function(){W.fG(!1)})); c7&&(W.xW.D(J,"webkitbeginfullscreen",function(){W.p4(3)}),W.xW.D(J,"webkitendfullscreen",function(){W.p4(0)}))}; AfX=function(W,J){var K=J.getPlayerType(),I=W.IZ.G[K]||null;J!==W.Gx()&&J!==I&&(I==null||I.dispose(),W.IZ.G[K]=J)}; DKQ=function(W,J){J=J===void 0?!0:J;W.logger.debug("start clear presenting player");var K;if(K=W.AD){K=W.AD;var I=W.mediaElement;K=!!I&&I===K.mediaElement}K&&(W.c$(),uA(W));K=W.As();K.c$(!J);K.Sc(W.Lr,W);K.getPlayerType()!==1&&K.dispose();J=W.IZ;J.K=J.W;z2(J);W.logger.debug("finish clear presenting player")}; g.jzH=function(W,J,K,I){var q=W.jI;J===2&&(q=new Tuy(W.Ru));return new g.Si(W.Ru,J,q,W.template,function(S,p,n){W.BS.publish(S,p,n)},function(){return W.BS.getVisibilityState()},W.visibility,W,K,I)}; ap=function(W,J,K,I,q){W=g.jzH(W,J,K,q);W=new g.rk(W);I&&W.xF();return W}; dK=function(W,J){return W.CP(J)?W.Gx():J}; yu=function(W,J){var K=W.As();return J===W.Gx()&&W.CP(J)&&W.CP(K)?K:J}; tLD=function(W){W.logger.debug("start application playback");if(W.Gx().getPlayerState().isError())W.logger.debug("start application playback done, player in error state");else{var J=Uy(W);W.K7().isLoaded();J&&W.UJ(6);fDH(W);aVQ(W.eP)||hHX(W)}}; hHX=function(W){if(!Uy(W)){var J=$z(W.eP);J&&!J.created&&lVH(W.eP)&&(W.logger.debug("reload ad module"),J.create())}}; fDH=function(W){W.logger.debug("start presenter playback");var J=W.getVideoData(),K=W.eP;aVQ(K)||K.Rn();!PgD&&K.X.Y("html5_allow_asmjs")&&ZyX(K);gt(K,"embed");gt(K,"kids");gt(K,"remote");gt(K,"miniplayer");gt(K,"offline");gt(K,"unplugged");gt(K,"ypc",!1,!0);gt(K,"ypc_clickwrap",!1,!0);gt(K,"yto",!1,!0);gt(K,"webgl",!1,!0);ucy(K)||(gt(K,"captions",!0),gt(K,"endscreen"),K.G2()||K.Tb(),gt(K,"creatorendscreen",!0));K.v6();W.BS.publish("videoready",J)}; ZV=function(W){W=W.K7();W.Nk();return BL(W)}; JfA=function(W){W.logger.debug("start prepare initial playback");W.vr();var J=W.config.args;uA(W);W.events.D(window,"resize",W.IVI);var K=W.K7();W.BS.YC("onVolumeChange",W.r$);if(J&&RlT(J)){var I=se(W.Ru);I&&!W.Md&&(J.fetch=0);var q=g.xK(W.Ru);q&&!W.Md&&(J.fetch=0);Qu(W,J);g.xK(W.Ru)&&W.jI.tick("ep_pr_s");if(!I||W.Md)if(q&&!W.Md)FLQ(W);else if(!K.Nk())W.playlist.onReady(function(){Cy(W)})}W.Fr(W.Gx(),!1,!0); g.z(W.Gx().getPlayerState(),128)||(J=FnH(!W.Ru.deviceIsAudioOnly),J==="fmt.noneavailable"?W.sP("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):J==="html5.missingapi"?W.sP(J,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):K&&K.Nk()&&ZV(W)&&(W.Ru.GG||W.Ru.DL)?wK(W):K.EL?W.BS.mutedAutoplay({durationMode:K.mutedAutoplayDurationMode}):g.V0("yt-player-playback-on-reload")?(g.AF("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!W.Ru.G8}),g.Hd("yt-player-playback-on-reload",!1), wK(W)):I0(W.Ru)||aDQ(W),g.X2(W.Ru)||K5(W.Ru)==="MWEB"?(g.XJ(g.iH(),function(){MS(W)}),g.XJ(g.iH(),function(){FTv()})):(MS(W),FTv()),W.logger.debug("finish prepare initial playback"))}; MS=function(W){if(!W.Y("use_rta_for_player"))if(W.Y("fetch_att_independently"))g.XY(W.rY);else{var J=W.getVideoData().botguardData;J&&g.v1(J,W.Ru,W.getVideoData().Nq||"")}}; aDQ=function(W){W.logger.debug("start initialize to CUED mode");W.BS.publish("initializingmode");W.UJ(2);W.Y("embeds_web_enable_defer_loading_remote_js")&&g.iL(W.Ru)?g.XJ(g.iH(),function(){gt(W.eP,"remote")}):gt(W.eP,"remote"); gt(W.eP,"miniplayer");W.logger.debug("initialized to CUED mode")}; wK=function(W){W.logger.debug("start initialize application playback");var J=W.Gx();if(g.z(J.getPlayerState(),128))return!1;var K=J.getVideoData();ZV(W)&&W.Ru.DL&&(T2.length&&W.xO?(gK(W,{muted:!1,volume:W.r$.volume},!1),GP(W,!1)):T2.length||W.r$.muted||(gK(W,{muted:!0,volume:W.r$.volume},!1),GP(W,!0)));ZV(W)&&g.xK(W.Ru)&&K.mutedAutoplay&&(gK(W,{muted:!0,volume:W.r$.volume},!1),GP(W,!0));K.OH&&gK(W,{muted:!0,volume:W.r$.volume},!1);u3D(W,1,K,!1);W.BS.publish("initializingmode");W.Fr(W.Gx());W.UJ(3); var I;if(!(I=!W.Ru.Rr)){if(I=W.AD){I=W.AD;var q=W.mediaElement;I=!!q&&q===I.mediaElement}I=I&&W.Td}I&&(W.c$(),uA(W),J.setMediaElement(W.mediaElement));J.YF();if(g.z(J.getPlayerState(),128))return!1;K.LA||NS(W,3);return W.Td=!0}; Uy=function(W){W=x0(W.eP);return!!W&&W.loaded}; Nz0=function(W,J){if(!W.xt)return!1;var K=W.xt.startTimeMs*.001-1,I=W.xt.endTimeMs*.001;W.xt.type==="repeatChapter"&&I--;return Math.abs(J-K)<=1E-6||Math.abs(J-I)<=1E-6||J>=K&&J<=I}; dKA=function(W){var J=W.As();S7(J.getVideoData())&&!J.Ps()&&(J=$3(W)*1E3-W.getVideoData().TE,W.Y("html5_gapless_new_slr")?(W=W.Qj,x3(W.app,"gaplessshortslooprange"),J=new g.p9(0,J,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(W=W.app.As())&&W.addCueRange(J)):W.setLoopRange({startTimeMs:0,endTimeMs:J,type:"shortsLoop"}))}; yfv=function(W){var J=W.Gx();if(!(g.z(J.getPlayerState(),64)&&W.K7().isLivePlayback&&W.xt.startTimeMs<5E3)){if(W.xt.type==="repeatChapter"){var K,I=(K=mnL(W.Xz()))==null?void 0:K.Z4(),q;K=(q=W.getVideoData())==null?void 0:q.DL;I instanceof g.kz&&K&&(q=K[lM(K,W.xt.startTimeMs)],I.renderChapterSeekingAnimation(0,q.title));isNaN(Number(W.xt.loopCount))?W.xt.loopCount=0:W.xt.loopCount++;W.xt.loopCount===1&&W.BS.qN("innertubeCommand",W.getVideoData().TKI)}I={cN:"application_loopRangeStart"};if(W.xt.type=== "clips"||W.xt.type==="shortsLoop")I.seekSource=58;J.seekTo(W.xt.startTimeMs*.001,I)}}; qMQ=function(W,J){var K=W.BS.getAvailablePlaybackRates();J=Number(J.toFixed(2));W=K[0];K=K[K.length-1];J<=W?J=W:J>=K?J=K:(W=Math.floor(J*100+.001)%5,J=W===0?J:Math.floor((J-W*.01)*100+.001)/100);return J}; $3=function(W,J){J=W.hD({playerType:J});if(!J)return W.IZ.W.DX();J=dK(W,J);return Oy(W,J.DX(),J)}; Oy=function(W,J,K){if(W.CP(K)&&(K=K.getVideoData(),!TP(W))){W=W.pk;for(var I=g.d(W.K),q=I.next();!q.done;q=I.next())if(q=q.value,K.Jp===q.Jp){J+=q.yP/1E3;break}I=J;W=g.d(W.K);for(q=W.next();!q.done;q=W.next()){q=q.value;if(K.Jp===q.Jp)break;var S=q.yP/1E3;if(S1&&(q=!1);if(!W.v8||q!==J){K=K.lock(q?"portrait":"landscape");if(K!=null)K["catch"](function(){}); W.v8=!0}}else W.v8&&(W.v8=!1,K.unlock())}; bA=function(W,J,K){W.BS.publish(J,K);var I=g.$w(W.Ru)||g.RP(W.Ru)||g.Bh(W.Ru);if(K&&I){switch(J){case "cuerangemarkersupdated":var q="onCueRangeMarkersUpdated";break;case "cuerangesadded":q="onCueRangesAdded";break;case "cuerangesremoved":q="onCueRangesRemoved"}q&&W.BS.qN(q,K.map(function(S){return{getId:function(){return this.id}, end:S.end,id:S.getId(),namespace:S.namespace==="ad"?"ad":"",start:S.start,style:S.style,visible:S.visible}}))}}; BV=function(W,J,K,I,q,S){K=K===void 0?!0:K;var p=W.hD({playerType:q});if(!p||(p.getPlayerType()!==2||W.CP(p))&&!g.Gg(p.getVideoData())){var n=W.IZ.B$;n?n.seekTo(J,{He:!K,eT:I,cN:"application",seekSource:S}):(p&&p===W.Gx()&&W.xt&&!Nz0(W,J)&&W.setLoopRange(null),W.seekTo(J,K,I,q,S))}}; RHT=function(W,J,K,I){K&&(W.c$(),uA(W));K=W.As();K.FO(J);var q=W.getVideoData(),S={};S.video_id=q.videoId;S.adformat=q.adFormat;q.isLivePlayback||(S.start=K.getCurrentTime(),S.resume="1");q.isLivePlayback&&hS(q)&&g.gJ(W.Ru)&&(S.live_utc_start=K.OA(),S.resume="1");q.jZ&&(S.vvt=q.jZ);q.S&&(S.vss_credentials_token=q.S,S.vss_credentials_token_type=q.L_);q.oauthToken&&(S.oauth_token=q.oauthToken);S.autoplay=1;S.reload_count=q.Fz+1;S.reload_reason=J;q.Uy&&(S.unplugged_partner_opt_out=q.Uy);q.GG&&(S.ypc_is_premiere_trailer= q.GG);q.playerParams&&(S.player_params=q.playerParams);W.loadVideoByPlayerVars(S,void 0,!0,void 0,void 0,I);J==="signature"&&W.bK&&hHX(W)}; bEy=function(W,J){W.K7().autonavState=J;g.Hd("yt-player-autonavstate",J);W.BS.publish("autonavchange",J)}; BzT=function(W){var J=W.getVideoData().nA,K=W.Ru.bO,I=W.isInline()&&!W.getVideoData().jU,q=W.mediaElement;J||K||I?q.xH():(q.YH(),gK(W,W.r$))}; HV=function(W){var J=$z(W.Xz());J&&J.created&&(W.logger.debug("reset ad module"),J.destroy())}; TP=function(W){return W.getVideoData().enableServerStitchedDai&&!!W.bK}; mKQ=function(W,J){J.bounds=W.getBoundingClientRect();for(var K=g.d(["display","opacity","visibility","zIndex"]),I=K.next();!I.done;I=K.next())I=I.value,J[I]=rI(W,I);J.hidden=!!W.hidden}; eIv=function(W){if(W.webPlayerContextConfig){var J=W.webPlayerContextConfig.trustedJsUrl;return J?CX(J).toString():W.webPlayerContextConfig.jsUrl}return W.config.assets&&W.config.assets.js?W.config.assets.js:""}; rfD=function(W,J){var K=W.hD({playerType:1});if(K){if(K.getVideoData().clientPlaybackNonce===J)return K;if((W=W.LU.W)&&W.getVideoData().clientPlaybackNonce===J)return W}return null}; ooD=function(W){return W.name==="TypeError"&&W.stack.includes("/s/player/")&&mQ()<=105}; LLc=function(W){return W.isTimeout?"NO_BID":"ERR_BID"}; kbv=function(){var W=null;gac().then(function(J){return W=J},function(J){return W=LLc(J)}); return W}; zHT=function(){var W=BS(1E3,"NO_BID");return g.EG(sNH([gac(),W]).b2(LLc),function(){W.cancel()})}; mB=function(W){return W.Ym?g.ri(g.mr(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; rK=function(W){this.player=W;this.G=this.W=1}; szX=function(W,J,K,I,q,S){J.client||(J.client={});W.player.J().Y("h5_remove_url_for_get_ad_break")||(J.client.originalUrl=K);var p=lX(K),n=g.gM(K)?!1:!0;(p||n)&&typeof Intl!=="undefined"&&(J.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);n=g.gM(K)?!1:!0;if(p||n||I!==""){var A={};K=Ja(fz(I)).split("&");var D=new Map;K.forEach(function(f){f=f.split("=");f.length>1&&D.set(f[0].toString(),decodeURIComponent(f[1].toString()))}); D.has("bid")&&(A.bid=D.get("bid"));A.params=[];voQ.forEach(function(f){D.has(f)&&(f={key:f,value:D.get(f)},A.params.push(f))}); YMD(W,A);J.adSignalsInfo=A}J.client.unpluggedAppInfo||(J.client.unpluggedAppInfo={});J.client.unpluggedAppInfo.enableFilterMode=!1;K=q.W.cosver;K!=null&&K!=="cosver"&&(J.client.osVersion=K);K=q.W.cplatform;K!=null&&K!=="cplatform"&&K!==""&&(J.client.platform=K);K=q.W.cmodel;K!=null&&K!=="cmodel"&&(J.client.deviceModel=K);K=q.W.cplayer;K!=null&&K!=="cplayer"&&(J.client.playerType=K);K=q.W.cbrand;K!=null&&K!=="cbrand"&&(J.client.deviceMake=K);J.user||(J.user={});J.user.lockedSafetyMode=!1;(q.Y("embeds_web_enable_iframe_api_send_full_embed_url")|| q.Y("embeds_enable_autoplay_and_visibility_signals"))&&g.eb(q)&&vwQ(J,S,W.player.getPlayerState(1))}; X$c=function(W,J){var K=!1;if(J==="")return K;J.split(",").forEach(function(I){var q={},S={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},p="ACTIVE";I[0]==="!"&&(I=I.substring(1),p="INACTIVE");I=I.split("-");I.length<3||(I[0]in cfy&&(S.clientName=cfy[I[0]]),I[1]in Pky&&(S.platform=Pky[I[1]]),S.applicationState=p,S.clientVersion=I.length>2?I[2]:"",q.remoteClient=S,W.remoteContexts?W.remoteContexts.push(q):W.remoteContexts=[q],K=!0)}); return K}; i6L=function(W){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in WdT))return!1;W=W.split(RegExp("[:&]"));var J=WdT.FLAG_AUTO_CAPTIONS_DEFAULT_ON,K="f"+(1+Math.floor(J/31)).toString();J=1<=2?p[1]:"";var n=Kdc.test(J),A=IAL.exec(J);A=A!=null&&A.length>=2?A[1]:"";var D=qmQ.exec(J);D=D!=null&&D.length>=2&&!Number.isNaN(Number(D[1]))?Number(D[1]):1;var f=SmQ.exec(J);f=f!=null&&f.length>=2?f[1]:"0";var h=r8(W.player.J().I7),t=W.player.getVideoData(1),F=g.iI(t.Y3,!0),a="BISCOTTI_ID"in K?K.BISCOTTI_ID:"";szX(W,F,J,a.toString(),W.player.J(), t);t={splay:!1,lactMilliseconds:K.LACT.toString(),playerHeightPixels:Math.trunc(K.P_H),playerWidthPixels:Math.trunc(K.P_W),vis:Math.trunc(K.VIS),signatureTimestamp:20207,autonavState:mB(W.player.J())};I&&(I={},X$c(I,K.YT_REMOTE)&&(t.mdxContext=I));if(I=pxI.includes(h)?void 0:g.eC("PREF")){for(var y=I.split(RegExp("[:&]")),U=0,Q=y.length;U1&&C[1].toUpperCase()==="TRUE"){F.user.lockedSafetyMode=!0;break}}t.autoCaptionsDefaultOn= i6L(I)}J=lAv.exec(J);(J=J!=null&&J.length>=2?J[1]:"")&&A&&(F.user.credentialTransferTokens=[{token:J,scope:"VIDEO"}]);J={contentPlaybackContext:t};p={adBlock:Math.trunc(K.AD_BLOCK),params:p,breakIndex:D,breakPositionMs:f,clientPlaybackNonce:K.CPN,topLevelDomain:h,isProxyAdTagRequest:n,context:F,adSignalsInfoString:Ja(fz(a.toString())),overridePlaybackContext:J};q!==void 0&&(p.cueProcessedMs=Math.round(q).toString());A&&(p.videoId=A);K.LIVE_TARGETING_CONTEXT&&(p.liveTargetingParams=K.LIVE_TARGETING_CONTEXT); K.AD_BREAK_LENGTH&&(p.breakLengthMs=Math.trunc(K.AD_BREAK_LENGTH*1E3).toString());S&&(p.driftFromHeadMs=S.toString());p.currentMediaTimeMs=Math.round(W.player.getCurrentTime(1)*1E3);(W=W.player.getGetAdBreakContext())&&(p.getAdBreakContext=W);return p}; AGL=function(){rK.apply(this,arguments)}; Dcy=function(W,J,K,I,q){var S=K.IR;var p=K.SP;var n=W.player.J().TJ,A=0;K.cueProcessedMs&&p&&!S&&(K=p.end-p.start,K>0&&(A=Math.floor(K/1E3)));var D={AD_BLOCK:q,AD_BREAK_LENGTH:S?S.vt:A,AUTONAV_STATE:mB(W.player.J()),CA_TYPE:"image",CPN:W.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:W.player.Xg()*1E3,LACT:gb(),LIVE_INDEX:S?W.G++:1,LIVE_TARGETING_CONTEXT:S&&S.context?S.context:"",MIDROLL_POS:p?Math.round(p.start/1E3):0,MIDROLL_POS_MS:p?Math.round(p.start):0,VIS:W.player.getVisibilityState(), P_H:W.player.UI().lD().height,P_W:W.player.UI().lD().width,YT_REMOTE:n?n.join(","):""},f=jC(D_);Object.keys(f).forEach(function(h){f[h]!=null&&(D[h.toUpperCase()]=f[h].toString())}); I!==""&&(D.BISCOTTI_ID=I);I={};Aa(J)&&(I.sts="20207",(W=W.player.J().forcedExperiments)&&(I.forced_experiments=W));return pz(g.H0(J,D),I)}; jjD=function(W,J){var K=W.player.J(),I,q=(I=W.player.getVideoData(1))==null?void 0:I.oauthToken;return g.pp(K,q).then(function(S){if(S&&nz()){var p=Bl();ml(p,S)}return g.Pe(g.E(W.player.d$(p)),J,"/youtubei/v1/player/ad_break").then(function(n){return n})})}; fAv=function(W){this.iO=W}; h1D=function(W){this.X=W}; tFD=function(W){this.iO=W}; aAH=function(W){g.R.call(this);this.W=W;this.zM=FdH(this)}; FdH=function(W){var J=new FHH(W.W.HN);g.B(W,J);W=[new fAv(W.W.iO),new h1D(W.W.X),new tFD(W.W.iO),new H_(W.W.B4,W.W.fp),new Eu,new bZ(W.W.Pw,W.W.Gr,W.W.iO),new VK,new T6];W=g.d(W);for(var K=W.next();!K.done;K=W.next())auQ(J,K.value);W=g.d(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(K=W.next();!K.done;K=W.next())ec(J,K.value,function(){}); return J}; op=function(W){var J=W.dw,K=W.gw;W=W.f7;var I=new Enc,q={pw:new hbQ(J.get(),K),gw:K};return{DJ:new fa(K,W,J,q),context:q,Fj:I}}; Ly=function(W,J,K,I,q){g.R.call(this);this.K=J;this.cS=K;this.dw=I;this.p7=q;this.listeners=[];var S=new gi(this);g.B(this,S);S.D(W,"internalAbandon",this.vL);this.addOnDisposeCallback(function(){g.$d(S)})}; k3=function(W){this.X=W;this.adVideoId=this.W=this.videoId=this.adCpn=this.contentCpn=null;this.j=!0;this.K=this.G=!1;this.adFormat=null;this.T="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; u8A=function(W){W.contentCpn=null;W.adCpn=null;W.videoId=null;W.adVideoId=null;W.adFormat=null;W.T="AD_PLACEMENT_KIND_UNKNOWN";W.actionType="unknown_type";W.G=!1;W.K=!1}; N$H=function(W,J){W=g.d(J);for(J=W.next();!J.done;J=W.next())if((J=J.value.renderer)&&(J.instreamVideoAdRenderer||J.linearAdSequenceRenderer||J.sandwichedLinearAdRenderer||J.instreamSurveyAdRenderer)){oC("ad_i");g.Lc({isMonetized:!0});break}}; dcv=function(W){var J;(J=W.X.getVideoData(1))!=null&&J.XW&&(W.K=!1,J={},W.W&&W.videoId&&(J.cttAuthInfo={token:W.W,videoId:W.videoId}),kM("video_to_ad",J))}; sQ=function(W){W.K=!1;var J={};W.W&&W.videoId&&(J.cttAuthInfo={token:W.W,videoId:W.videoId});kM("ad_to_video",J);yGy(W)}; yGy=function(W){if(W.G)if(W.T==="AD_PLACEMENT_KIND_START"&&W.actionType==="video_to_ad")Be("video_to_ad");else{var J={adBreakType:wh(W.T),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:W.videoStreamType};W.actionType==="ad_to_video"?(W.contentCpn&&(J.targetCpn=W.contentCpn),W.videoId&&(J.targetVideoId=W.videoId)):(W.adCpn&&(J.targetCpn=W.adCpn),W.adVideoId&&(J.targetVideoId=W.adVideoId));W.adFormat&&(J.adType=W.adFormat);W.contentCpn&& (J.clientPlaybackNonce=W.contentCpn);W.videoId&&(J.videoId=W.videoId);W.adCpn&&(J.adClientPlaybackNonce=W.adCpn);W.adVideoId&&(J.adVideoId=W.adVideoId);g.Lc(J,W.actionType);W.X.J().experiments.HS("html5_ads_csi_qoes")&&(J=W.X.MB(W.actionType==="ad_to_video"?1:2),J=(0,g.L)()-1E3*J,ve("qoes",J,W.actionType))}}; zP=function(W){g.R.call(this);this.X=W;this.W=new Map;this.K=new gi(this);g.B(this,this.K);this.K.D(this.X,g.n9("ad"),this.onCueRangeEnter,this);this.K.D(this.X,g.AN("ad"),this.onCueRangeExit,this)}; UcT=function(W,J,K,I,q){g.p9.call(this,J,K,{id:W,namespace:"ad",priority:q,visible:I})}; vV=function(W){this.X=W}; Z6Q=function(W,J){W.X.cueVideoByPlayerVars(J,2)}; Y3=function(W){this.X=W}; sy=function(W){this.X=W;g.FV(this.X.J().experiments,"tv_pacf_logging_sample_rate")}; QjH=function(W){return XV(W,"html5_ssap_play_cached_preroll")}; gG=function(W,J){J=J===void 0?!1:J;return W.X.J().Y("html5_ssap_force_ads_ctmp")?!0:(J||W.X.J().ND())&&W.X.J().Y("html5_ssap_pacf_qoe_ctmp")}; Cbv=function(W){return W.X.J().Y("dai_layout_log_skip_exit_reason")}; cV=function(W){var J,K;return(K=(J=W.X.getVideoData(1))==null?void 0:g.c8(J))!=null?K:!1}; gnH=function(W){return!W.X.J().Y("html5_override_ad_video_length_killswitch")}; XV=function(W,J){return W.X.J().Y(J)}; wxH=function(W){return W.X.J().Y("substitute_ad_cpn_macro_in_ssdai")}; $2=function(W){var J,K,I;return((J=W.X.getVideoData(1).getPlayerResponse())==null?void 0:(K=J.playerConfig)==null?void 0:(I=K.daiConfig)==null?void 0:I.enableServerStitchedDai)||!1}; CCQ=function(W){return W.X.J().Y("html5_enable_vod_slar_with_notify_pacf")}; g4Q=function(W){return W.X.J().Y("h5_check_forecasting_renderer_for_throttled_midroll")}; MFD=function(W){return W.X.J().Y("html5_recognize_predict_start_cue_point")}; lf=function(W){return W.X.J().experiments.HS("enable_desktop_player_underlay")}; g6Q=function(W){return W.X.J().experiments.HS("html5_disable_sodar_for_tvhtml5")}; GnH=function(W){return W.X.J().ND()}; GHv=function(W){return W.X.J().experiments.HS("html5_load_empty_player_in_media_break_sub_lra")}; R5=function(W){return W.X.J().experiments.HS("html5_load_ads_instead_of_cue")}; bp=function(W){return W.X.J().experiments.HS("html5_preload_ads")}; $cD=function(W){return W.X.J().experiments.HS("should_ignore_cuepoints_during_lifa_preroll")}; pa=function(W){return W.X.J().experiments.HS("enable_ads_control_flow_deterministic_id_generation")}; xcA=function(W){return W.X.J().experiments.HS("enable_desktop_discovery_video_abandon_pings")||g.cw(W.X.J())}; O6D=function(W){return W.X.J().experiments.HS("enable_progres_commands_lr_feeds")}; x2=function(W){return W.X.J().experiments.HS("html5_cuepoint_identifier_logging")}; O2v=function(W){W=W.X.getVideoData(1);return!!W&&W.Y("html5_preload_first_vod_video_ad")&&!W.isDaiEnabled()}; T$A=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}}; H6v=function(){g.Ao.call(this);var W=this;this.W={};this.addOnDisposeCallback(function(){for(var J=g.d(Object.keys(W.W)),K=J.next();!K.done;K=J.next())delete W.W[K.value]})}; PV=function(){if(VFX===null){VFX=new H6v;co(JB).K="b";var W=co(JB),J=Yv(W)=="h"||Yv(W)=="b",K=!(AZ(),!1);J&&K&&(W.j=!0,W.S=new hjv)}return VFX}; E6T=function(W,J,K){W.W[J]=K}; e1y=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}}; Xc=function(W,J,K){this.cS=W;this.X=J;this.gw=K;this.K=new Set;this.W=new Map;PV().subscribe("adactiveviewmeasurable",this.bz,this);PV().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Ft,this);PV().subscribe("adviewableimpression",this.Jt,this);PV().subscribe("adaudioaudible",this.ke,this);PV().subscribe("adaudiomeasurable",this.Hs,this)}; iv=function(W,J,K){var I=K.g1,q=K.J3,S=K.listener,p=K.h8;K=K.qX===void 0?!1:K.qX;if(W.W.has(J))tq("Unexpected registration of layout in LidarApi");else{if(p){if(W.K.has(p))return;W.K.add(p)}W.W.set(J,S);Dn(AZ().jn,"fmd",1);QFH(co(JB),I);var n=K?J:void 0;E6T(PV(),J,{E$:function(){if(!q)return{};var A=W.X.getPresentingPlayerType(!0),D;return(D=W.X.getVideoData(A))!=null&&D.isAd()?{currentTime:W.cS.get().getCurrentTimeSec(A,!1,n),duration:q,isPlaying:WJ(W.cS.get(),A).isPlaying(),isVpaid:!1,isYouTube:!0, volume:W.cS.get().isMuted()?0:W.cS.get().getVolume()/100}:{}}})}}; JC=function(W,J){W.W.has(J)?(W.W.delete(J),delete PV().W[J]):tq("Unexpected unregistration of layout in LidarApi")}; R1H=function(W,J){if(W.X.isLifaAdPlaying()){var K=W.X.jl(!0,!0);W.ID(J,K.width*.5*1.1,K.height*.25*1.1,K.width*.5*.9,K.height*.5*.9)}}; mc0=function(W,J,K){var I={};b6H(W,I,J,K);B$D(I);I.LACT=K7(function(){return gb().toString()}); I.VIS=K7(function(){return W.getVisibilityState().toString()}); I.SDKV="h.3.0";I.VOL=K7(function(){return W.isMuted()?"0":Math.round(W.getVolume()).toString()}); I.VED="";return I}; rGc=function(W,J){var K={};if(J)return K;if(!W.kind)return g.Va(Error("AdPlacementConfig without kind")),K;if(W.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||W.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!W.adTimeOffset||!W.adTimeOffset.offsetStartMilliseconds)return g.Va(Error("malformed AdPlacementConfig")),K;K.MIDROLL_POS=K7(tL(Math.round(Uh(W.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else K.MIDROLL_POS=K7(tL("0"));return K}; K7=function(W){return{toString:function(){return W()}}}; o6H=function(W,J,K){function I(n,A){(A=K[A])&&(S[n]=A)} function q(n,A){(A=K[A])&&(S[n]=p(A))} if(!K||g.PR(K))return W;var S=Object.assign({},W),p=J?encodeURIComponent:function(n){return n}; q("DV_VIEWABILITY","doubleVerifyViewability");q("IAS_VIEWABILITY","integralAdsViewability");q("MOAT_INIT","moatInit");q("MOAT_VIEWABILITY","moatViewability");I("GOOGLE_VIEWABILITY","googleViewability");I("VIEWABILITY","viewability");return S}; b6H=function(W,J,K,I){J.CPN=K7(function(){var q;(q=W.getVideoData(1))?q=q.clientPlaybackNonce:(g.ET(Error("Video data is null.")),q=null);return q}); J.AD_MT=K7(function(){if(I!=null)var q=I;else{var S=K;W.J().Y("html5_ssap_use_cpn_to_get_time")||(S=void 0);if(W.J().Y("enable_h5_shorts_ad_fill_ad_mt_macro")||W.J().Y("enable_desktop_discovery_pings_ad_mt_macro")||g.cw(W.J())){var p=W.getPresentingPlayerType(!0),n;q=((n=W.getVideoData(p))==null?0:n.isAd())?LdD(W,p,S):0}else q=LdD(W,2,S)}return kH0(q)}); J.MT=K7(function(){return kH0(W.getCurrentTime(1,!1))}); J.P_H=K7(function(){return W.UI().lD().height.toString()}); J.P_W=K7(function(){return W.UI().lD().width.toString()}); J.PV_H=K7(function(){return W.UI().getVideoContentRect().height.toString()}); J.PV_W=K7(function(){return W.UI().getVideoContentRect().width.toString()})}; kH0=function(W){return Math.round(Math.max(0,W*1E3)).toString()}; B$D=function(W){W.CONN=K7(tL("0"));W.WT=K7(function(){return Date.now().toString()})}; LdD=function(W,J,K){return K!==void 0?W.getCurrentTime(J,!1,K):W.getCurrentTime(J,!1)}; z1v=function(){}; v6X=function(W,J,K,I,q){var S,p,n,A,D,f,h,t,F,a,y,U,Q;g.V(function(C){switch(C.K){case 1:S=!!J.scrubReferrer;p=g.H0(J.baseUrl,o6H(K,S,I));n={};if(!J.headers){C.VK(2);break}A=W.T();if(!A.W){D=A.getValue();C.VK(3);break}return g.O(C,A.W,4);case 4:D=C.W;case 3:f=D;h=g.d(J.headers);for(t=h.next();!t.done;t=h.next())switch(F=t.value,F.headerType){case "VISITOR_ID":g.Yf("VISITOR_DATA")&&(n["X-Goog-Visitor-Id"]=g.Yf("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Yf("EOM_VISITOR_DATA")&&(n["X-Goog-EOM-Visitor-Id"]= g.Yf("EOM_VISITOR_DATA"));break;case "USER_AUTH":f&&(n.Authorization="Bearer "+f);break;case "PLUS_PAGE_ID":(a=W.j())&&(n["X-Goog-PageId"]=a);break;case "AUTH_USER":y=W.W();!f&&y&&(n["X-Goog-AuthUser"]=y);break;case "DATASYNC_ID":if(U=void 0,(U=W.G())==null?0:U.HS("enable_datasync_id_header_in_web_vss_pings"))Q=W.K(),lX(p)&&g.Yf("LOGGED_IN")&&Q&&(n["X-YouTube-DataSync-Id"]=Q)}"X-Goog-EOM-Visitor-Id"in n&&"X-Goog-Visitor-Id"in n&&delete n["X-Goog-Visitor-Id"];case 2:g.mf(p,void 0,S,Object.keys(n).length!== 0?n:void 0,"",!0,q),g.d0(C)}})}; Ymy=function(W,J,K,I,q){this.T=W;this.j=J;this.W=K;this.K=I;this.G=q}; sjX=function(W,J){this.W=W;this.gw=J}; Im=function(W,J,K,I,q,S,p){var n=n===void 0?new Ymy(function(){var A=W.J(),D=W.getVideoData(1);return g.pp(A,D?g.m7(D):"")},function(){return W.J().pageId},function(){return W.J().G8},function(){var A; return(A=W.J().datasyncId)!=null?A:""},function(){return W.J().experiments}):n; this.X=W;this.K=J;this.QP=K;this.dw=I;this.DJ=q;this.gw=S;this.Fj=p;this.T=n;this.B3=null;this.W=new Map;this.G=new sjX(n,this.gw)}; PbQ=function(W,J,K,I,q){var S=Bz(W.K.get(),K);S?(K=O8(W,cGQ(S),S,void 0,void 0,I),J.hasOwnProperty("baseUrl")?W.T.send(J,K):W.G.send(J,K,{},q)):tq("Trying to ping from an unknown layout",void 0,void 0,{layoutId:K})}; Z$T=function(W,J,K,I,q,S){I=I===void 0?[]:I;var p=Bz(W.K.get(),J);if(p){var n=W.QP.get().nQ(J,K),A=O8(W,cGQ(p),p,q,S);I.forEach(function(D,f){D.baseUrl&&(W.G.send(D.baseUrl,A,n,D.attributionSrcMode),D.serializedAdPingMetadata&&W.DJ.VS("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,p,new JuD(D,f),void 0,void 0,p.adLayoutLoggingData))})}else tq("Trying to track from an unknown layout.",void 0,void 0,{layoutId:J, trackingType:K})}; C9=function(W,J){W.X.sendVideoStatsEngageEvent(J,void 0,2)}; ql=function(W,J){g.AF("adsClientStateChange",J)}; Xxv=function(W,J){W.W.has(J.T_())?tq("Trying to register an existing AdErrorInfoSupplier."):W.W.set(J.T_(),J)}; WpD=function(W,J){W.W.delete(J.T_())||tq("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; nP=function(W,J,K){typeof K==="string"?W.X.getVideoData(1).Qv(J,K):W.X.getVideoData(1).WS(J,K)}; cGQ=function(W){var J=g.E(nQ(W.clientMetadata,"metadata_type_ad_placement_config"));W=nQ(W.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:J,VU:W}}; O8=function(W,J,K,I,q,S){var p=K?iAH(W):{},n=K?JvH(W,K.layoutId):{},A=KpT(W),D,f=q!=null?q:(D=UQ(W.dw.get(),2))==null?void 0:D.clientPlaybackNonce;q=void 0;if(K){var h;if((h=W.Fj.W.get(K.layoutId))==null?0:h.qX)q=K.layoutId}h={};W=Object.assign({},mc0(W.X,q,I),rGc(J.adPlacementConfig,(K==null?void 0:K.renderingContent)!==void 0),n,p,A,(h.FINAL=K7(function(){return"1"}),h.AD_CPN=K7(function(){return f||""}),h)); (K==null?void 0:K.renderingContent)!==void 0||(W.SLOT_POS=K7(function(){return(J.VU||0).toString()})); K={};S=Object.assign({},W,S);W=g.d(Object.values(Idc));for(I=W.next();!I.done;I=W.next())I=I.value,p=S[I],p!=null&&p.toString()!=null&&(K[I]=p.toString());return K}; iAH=function(W){var J={},K,I=(K=W.B3)==null?void 0:K.u2/1E3;I!=null&&(J.SURVEY_ELAPSED_MS=K7(function(){return Math.round(I*1E3).toString()})); J.SURVEY_LOCAL_TIME_EPOCH_S=K7(function(){return Math.round(Date.now()/1E3).toString()}); return J}; JvH=function(W,J){W=W.W.get(J);if(!W)return{};W=W.qT();if(!W)return{};J={};return J.YT_ERROR_CODE=W.Mh.toString(),J.ERRORCODE=W.H3.toString(),J.ERROR_MSG=W.errorMessage,J}; KpT=function(W){var J={},K=W.X.getVideoData(1);J.ASR=K7(function(){var I;return(I=K==null?void 0:K.ZI)!=null?I:null}); J.EI=K7(function(){var I;return(I=K==null?void 0:K.eventId)!=null?I:null}); return J}; q2=function(W,J,K){g.R.call(this);this.X=W;this.Ka=J;this.gw=K;this.listeners=[];this.h$=null;this.V3=new Map;J=new g.BW(this);g.B(this,J);J.D(W,"videodatachange",this.scK);J.D(W,"serverstitchedvideochange",this.tPZ);this.Vf=UQ(this)}; UQ=function(W,J){var K=W.X.getVideoData(J);return K?W.zN(K,J||W.X.getPresentingPlayerType(!0)):null}; SJ=function(W){return W.Vf}; qnT=function(W,J,K){var I=W.zN(J,K);W.Vf=I;W.listeners.forEach(function(q){q.PF(I)})}; SnQ=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}}; Sj=function(W,J,K){g.R.call(this);this.X=W;this.dw=J;this.gw=K;this.listeners=[];this.yZ=[];this.W=function(){tq("Called 'doUnlockPreroll' before it's initialized.")}; J=new gi(this);K=new g.BW(this);g.B(this,K);g.B(this,J);J.D(W,"progresssync",this.GzW);J.D(W,"presentingplayerstatechange",this.Fzw);J.D(W,"fullscreentoggled",this.onFullscreenToggled);J.D(W,"onVolumeChange",this.onVolumeChange);J.D(W,"minimized",this.jE);J.D(W,"overlayvisibilitychange",this.wq);J.D(W,"shortsadswipe",this.Nd);J.D(W,"resize",this.eI);K.D(W,g.n9("appad"),this.BY)}; p7=function(W){cV(W.gw.get())||W.W()}; pK0=function(W,J){W.yZ=W.yZ.filter(function(K){return K!==J})}; lv=function(W,J,K){return W.getCurrentTimeSec(J,K)}; gN=function(W){return W.getCurrentTimeSec(1,!1)}; ldA=function(W,J){var K;J=(K=W.dw.get().V3.get(J))!=null?K:null;if(J===null)return tq("Expected ad video start time on playback timeline"),0;W=W.X.getCurrentTime(2,!0);return W0){var S=J.end.toString();q.forEach(function(p){(p=p.config&&p.config.adPlacementConfig)&&p.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&p.adTimeOffset&&p.adTimeOffset.offsetEndMilliseconds==="-1"&&p.adTimeOffset.offsetEndMilliseconds!==S&&(p.adTimeOffset.offsetEndMilliseconds=S)}); I.map(function(p){return g.m(p,kt)}).forEach(function(p){var n; (p=p==null?void 0:(n=p.slotEntryTrigger)==null?void 0:n.mediaTimeRangeTrigger)&&p.offsetEndMilliseconds==="-1"&&(p.offsetEndMilliseconds=S)})}return{Eo:q, adSlots:I,Dx:!1,ssdaiAdsConfig:W.ssdaiAdsConfig}}; f7=function(W){g.R.call(this);this.X=W;this.listeners=[];this.W=new gi(this);g.B(this,this.W);this.W.D(this.X,"aduxclicked",this.onAdUxClicked);this.W.D(this.X,"aduxmouseover",this.CK);this.W.D(this.X,"aduxmouseout",this.eY);this.W.D(this.X,"muteadaccepted",this.MIO)}; hgX=function(W,J,K){J=g.zC(J,function(I){return new VxA(I,K,I.id)}); W.X.qN("onAdUxUpdate",J)}; hC=function(W,J){W=g.d(W.listeners);for(var K=W.next();!K.done;K=W.next())J(K.value)}; tC=function(W,J){this.K=W;this.G=J===void 0?!1:J;this.W={}}; tYT=function(W,J){var K=W.startSecs+W.vt;K=K<=0?null:K;if(K===null)return null;switch(W.event){case "start":case "continue":case "stop":break;case "predictStart":if(J)break;return null;default:return null}J=Math.max(W.startSecs,0);return{D1:new C3(J,K),E3y:new cU(J,K-J,W.context,W.identifier,W.event,W.W)}}; FpL=function(){this.W=[]}; dCy=function(W,J,K){var I=g.GT(W.W,J);if(I>=0)return J;J=-I-1;return J>=W.W.length||W.W[J]>K?null:W.W[J]}; F4=function(W,J,K){g.R.call(this);this.X=W;this.gw=J;this.iO=K;this.listeners=[];this.j=!1;this.T=[];this.W=null;this.S=new tC(this,MFD(J.get()));this.G=new FpL;this.K=null}; ady=function(W){return W.T}; uMH=function(W,J){W.T.push(J);for(var K=!1,I=g.d(W.listeners),q=I.next();!q.done;q=I.next())K=q.value.dN(J)||K;W.j=K;x2(W.gw.get())&&nP(W.iO.get(),"onci","cpi."+J.identifier+";cpe."+J.event+";cps."+J.startSecs+";cbi."+K)}; dav=function(W,J){ql(W.iO.get(),{cuepointTrigger:{event:N2X(J.event),cuepointId:J.identifier,totalCueDurationMs:J.vt*1E3,playheadTimeMs:J.W,cueStartTimeMs:J.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:W.X.getVideoData(1).clientPlaybackNonce}})}; N2X=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 PX(W,"Unexpected cuepoint event")}}; am=function(W){this.X=W}; uv=function(W){this.X=W}; yvX=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:PX(W,"unknown transitionReason")}}; N2=function(){g.R.apply(this,arguments)}; UaL=function(W){this.X=W}; ZAL=function(W,J,K,I,q){g.R.call(this);var S=this,p=LQ(function(){return new Sm(S.gw)}); g.B(this,p);var n=LQ(function(){return new l6(p,S.gw)}); g.B(this,n);var A=LQ(function(){return new ed}); g.B(this,A);var D=LQ(function(){return new V1(W)}); g.B(this,D);var f=LQ(function(){return new na(p,n,S.gw)}); g.B(this,f);var h=LQ(function(){return new hx}); g.B(this,h);this.lU=LQ(function(){return new f7(J)}); g.B(this,this.lU);this.Yt=LQ(function(){return new z0(q)}); g.B(this,this.Yt);this.xK=LQ(function(){return new k3(J)}); g.B(this,this.xK);this.hp=LQ(function(){return new zP(J)}); g.B(this,this.hp);this.Vl=LQ(function(){return new vV(J)}); g.B(this,this.Vl);this.HN=LQ(function(){return new Y3(J)}); g.B(this,this.HN);this.gw=LQ(function(){return new sy(J)}); g.B(this,this.gw);var t=LQ(function(){return new jj(I)}); g.B(this,t);var F=LQ(function(){return new aA(S.gw)}); g.B(this,F);this.NR=LQ(function(){return new am(J)}); g.B(this,this.NR);this.eB=LQ(function(){return new cp}); g.B(this,this.eB);this.dw=LQ(function(){return new q2(J,h,S.gw)}); g.B(this,this.dw);var a=op({dw:this.dw,gw:this.gw,f7:F}),y=a.context,U=a.Fj;this.DJ=a.DJ;this.p7=LQ(function(){return new F4(J,S.gw,S.iO)}); g.B(this,this.p7);this.Ql=LQ(function(){return new uv(J)}); g.B(this,this.Ql);this.cS=LQ(function(){return new Sj(J,S.dw,S.gw)}); g.B(this,this.cS);this.Io=LQ(function(){return new N2}); g.B(this,this.Io);a=LQ(function(){return new C8(p,f,n,S.gw,F,"SLOT_TYPE_ABOVE_FEED",S.cS,S.gC,S.F0)}); g.B(this,a);this.Jh=LQ(function(){return new Pp(S.gw)}); this.QP=LQ(function(){return new Xc(S.cS,J,S.gw)}); g.B(this,this.QP);this.iO=LQ(function(){return new Im(J,A,S.QP,S.dw,S.DJ,S.gw,U)}); g.B(this,this.iO);this.rC=new Tp(Of,dS,function(C,T,H,b){return p8(n.get(),C,T,H,b)},D,f,n,F,this.gw,this.dw); g.B(this,this.rC);this.Qr=new Hz(D,a,K,this.gw,W,this.dw,this.cS,this.xK);g.B(this,this.Qr);var Q=new Ly(J,this.Qr,this.cS,this.dw,this.p7);this.OM=LQ(function(){return Q}); this.nW=Q;this.gC=new Gp(D,f,this.OM,this.p7,this.cS,this.gw,this.iO,this.Ql);g.B(this,this.gC);this.pc=new Ef(D,f,this.hp,this.OM,y);g.B(this,this.pc);this.Vr=new L_(this.gw,D,f,a,this.dw,this.pc,K,this.Vl);g.B(this,this.Vr);this.fU=LQ(function(){return new FZ(t,n,F,S.gw,S.iO,S.cS,S.Ql)}); g.B(this,this.fU);this.gB=LQ(function(){return new a3}); g.B(this,this.gB);this.QN=new k2(W,this.lU,this.gw);g.B(this,this.QN);this.Ji=new zp(W);g.B(this,this.Ji);this.xV=new vz(W);g.B(this,this.xV);this.m$=new sf(W,this.OM,y);g.B(this,this.m$);this.LP=new cz(W,this.hp,this.cS,this.dw,y);g.B(this,this.LP);this.iz=new Pz(W,this.dw);g.B(this,this.iz);this.F0=new i6(W,this.p7,this.cS,this.iO,this.OM);g.B(this,this.F0);this.Tv=new Xp(W);g.B(this,this.Tv);this.cD=new qq(W);g.B(this,this.cD);this.wC=new W1(W);g.B(this,this.wC);this.rD=new Ig(W);g.B(this,this.rD); this.cD=new qq(W);g.B(this,this.cD);this.Wt=LQ(function(){return new m4}); g.B(this,this.Wt);this.mJ=LQ(function(){return new rN(S.cS)}); g.B(this,this.mJ);this.Sv=LQ(function(){return new oTQ(S.lU,S.iO,W,A,S.QP)}); g.B(this,this.Sv);this.CU=LQ(function(){return new i1(S.Vr,D,p)}); g.B(this,this.CU);this.TP=LQ(function(){return new Is(S.gw,S.iO,S.Tv,S.QP)}); g.B(this,this.TP);this.Dy=LQ(function(){return new Fa(W,S.cD,S.Tv,S.dw,S.Ql,S.cS,S.Io,S.iO,h,S.p7,S.QP,S.Jh,S.Vl,S.hp,S.xK,S.HN,S.Yt,S.NR,S.gw,A,y,U)}); g.B(this,this.Dy);this.RE=LQ(function(){return new I1T(S.cS,S.iO,S.Yt,S.gw,S.QP,S.dw)}); g.B(this,this.RE);this.uW=LQ(function(){return new Luy(S.lU,S.cS,S.iO,A,S.QP,S.xV,S.rD,S.Yt,S.gw,K)}); g.B(this,this.uW);this.p8=LQ(function(){return new LJQ(S.lU,S.iO,A)}); g.B(this,this.p8);this.gT=new Dm(W,this.eB,p);g.B(this,this.gT);this.OP={rr:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vr],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gC],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.rC],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qr],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.pc]]),Ds:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fU],["SLOT_TYPE_ABOVE_FEED",this.gB],["SLOT_TYPE_FORECASTING",this.gB], ["SLOT_TYPE_IN_PLAYER",this.gB],["SLOT_TYPE_PLAYER_BYTES",this.gB],["SLOT_TYPE_PLAYER_UNDERLAY",this.gB],["SLOT_TYPE_PLAYBACK_TRACKING",this.gB],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.gB]]),n_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.QN],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.QN],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ji],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ji],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ji],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ji],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Ji],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ji],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ji],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ji],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ji],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Ji],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Ji],["TRIGGER_TYPE_CLOSE_REQUESTED",this.xV],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.m$],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.LP],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.LP],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.LP],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.LP],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.LP],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.LP],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.LP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.iz],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.iz],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Tv],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.m$],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.wC],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.rD],["TRIGGER_TYPE_AD_BREAK_STARTED",this.cD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.F0],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.F0],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.F0],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.F0],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.F0]]),Ev:new Map([["SLOT_TYPE_ABOVE_FEED",this.Wt], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Wt],["SLOT_TYPE_FORECASTING",this.Wt],["SLOT_TYPE_IN_PLAYER",this.Wt],["SLOT_TYPE_PLAYER_BYTES",this.mJ],["SLOT_TYPE_PLAYER_UNDERLAY",this.Wt],["SLOT_TYPE_PLAYBACK_TRACKING",this.Wt],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Wt]]),Tu:new Map([["SLOT_TYPE_ABOVE_FEED",this.Sv],["SLOT_TYPE_AD_BREAK_REQUEST",this.CU],["SLOT_TYPE_FORECASTING",this.TP],["SLOT_TYPE_PLAYER_BYTES",this.Dy],["SLOT_TYPE_PLAYBACK_TRACKING",this.RE],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.RE],["SLOT_TYPE_IN_PLAYER",this.uW],["SLOT_TYPE_PLAYER_UNDERLAY",this.p8]])};this.listeners=[A.get()];this.s9={Vr:this.Vr,Gr:this.gw.get(),yK:this.Yt.get(),Af:this.cS.get(),Qr:this.Qr,Uo:p.get(),Y8:this.eB.get(),fp:this.QN,B4:A.get(),Pw:this.dw.get()}}; QnL=function(W,J,K,I,q){g.R.call(this);var S=this,p=LQ(function(){return new Sm(S.gw)}); g.B(this,p);var n=LQ(function(){return new l6(p,S.gw)}); g.B(this,n);var A=LQ(function(){return new ed}); g.B(this,A);var D=LQ(function(){return new V1(W)}); g.B(this,D);var f=LQ(function(){return new na(p,n,S.gw)}); g.B(this,f);var h=LQ(function(){return new hx}); g.B(this,h);this.lU=LQ(function(){return new f7(J)}); g.B(this,this.lU);this.Yt=LQ(function(){return new z0(q)}); g.B(this,this.Yt);this.xK=LQ(function(){return new k3(J)}); g.B(this,this.xK);this.hp=LQ(function(){return new zP(J)}); g.B(this,this.hp);this.Vl=LQ(function(){return new vV(J)}); g.B(this,this.Vl);this.HN=LQ(function(){return new Y3(J)}); g.B(this,this.HN);this.gw=LQ(function(){return new sy(J)}); g.B(this,this.gw);var t=LQ(function(){return new jj(I)}); g.B(this,t);var F=LQ(function(){return new aA(S.gw)}); g.B(this,F);var a=LQ(function(){return new C8(p,f,n,S.gw,F,null,null,S.gC,S.F0)}); g.B(this,a);this.NR=LQ(function(){return new am(J)}); g.B(this,this.NR);this.eB=LQ(function(){return new cp}); g.B(this,this.eB);this.dw=LQ(function(){return new q2(J,h,S.gw)}); g.B(this,this.dw);var y=op({dw:this.dw,gw:this.gw,f7:F}),U=y.context,Q=y.Fj;this.DJ=y.DJ;this.p7=LQ(function(){return new F4(J,S.gw,S.iO)}); this.cS=LQ(function(){return new Sj(J,S.dw,S.gw)}); g.B(this,this.cS);this.Io=LQ(function(){return new N2}); g.B(this,this.Io);this.QP=LQ(function(){return new Xc(S.cS,J,S.gw)}); g.B(this,this.QP);this.iO=LQ(function(){return new Im(J,A,S.QP,S.dw,S.DJ,S.gw,Q)}); g.B(this,this.iO);this.Jh=LQ(function(){return new Pp(S.gw)}); g.B(this,this.Jh);this.rC=new Tp(Of,dS,function(T,H,b,c){return p8(n.get(),T,H,b,c)},D,f,n,F,this.gw,this.dw); g.B(this,this.rC);this.Qr=new Hz(D,a,K,this.gw,W,this.dw,this.cS,this.xK);g.B(this,this.Qr);var C=new Ly(J,this.Qr,this.cS,this.dw,this.p7);this.OM=LQ(function(){return C}); this.nW=C;this.gC=new Gp(D,f,this.OM,this.p7,this.cS,this.gw,this.iO);g.B(this,this.gC);this.pc=new Ef(D,f,this.hp,this.OM,U);g.B(this,this.pc);this.Vr=new L_(this.gw,D,f,a,this.dw,this.pc,K,this.Vl);g.B(this,this.Vr);this.fU=LQ(function(){return new FZ(t,n,F,S.gw,S.iO,S.cS)}); g.B(this,this.fU);this.gB=LQ(function(){return new a3}); g.B(this,this.gB);this.QN=new k2(W,this.lU,this.gw);g.B(this,this.QN);this.Ji=new zp(W);g.B(this,this.Ji);this.xV=new vz(W);g.B(this,this.xV);this.m$=new sf(W,this.OM,U);g.B(this,this.m$);this.LP=new cz(W,this.hp,this.cS,this.dw,U);g.B(this,this.LP);this.Tv=new Xp(W);g.B(this,this.Tv);this.wC=new W1(W);g.B(this,this.wC);this.rD=new Ig(W);g.B(this,this.rD);this.Ql=LQ(function(){return new uv(J)}); g.B(this,this.Ql);this.cD=new qq(W);g.B(this,this.cD);this.F0=new i6(W,this.p7,this.cS,this.iO,this.OM);g.B(this,this.F0);this.Wt=LQ(function(){return new m4}); g.B(this,this.Wt);this.mJ=LQ(function(){return new rN(S.cS)}); g.B(this,this.mJ);this.CU=LQ(function(){return new i1(S.Vr,D,p)}); g.B(this,this.CU);this.TP=LQ(function(){return new Is(S.gw,S.iO,S.Tv,S.QP)}); g.B(this,this.TP);this.uW=LQ(function(){return new k8I(S.lU,S.cS,S.iO,A,S.QP,S.xV,S.rD,S.Yt,S.gw,K)}); g.B(this,this.uW);this.Dy=LQ(function(){return new a4(W,S.cD,S.Tv,S.iO,S.QP,S.Jh,S.Vl,S.dw,S.cS,S.Io,S.hp,S.xK,S.HN,S.Yt,S.NR,S.gw,S.Ql,U,Q)}); g.B(this,this.Dy);this.gT=new Dm(W,this.eB,p);g.B(this,this.gT);this.OP={rr:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vr],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gC],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.rC],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qr],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.pc]]),Ds:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fU],["SLOT_TYPE_FORECASTING",this.gB],["SLOT_TYPE_IN_PLAYER",this.gB], ["SLOT_TYPE_PLAYER_BYTES",this.gB]]),n_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.QN],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ji],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ji],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ji],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ji],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ji],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ji],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ji],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ji],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ji], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Ji],["TRIGGER_TYPE_CLOSE_REQUESTED",this.xV],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.m$],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.LP],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.LP],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.LP],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Tv],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.m$],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.wC],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.rD],["TRIGGER_TYPE_AD_BREAK_STARTED",this.cD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.F0],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.F0],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.F0],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.F0],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.F0]]),Ev:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wt],["SLOT_TYPE_FORECASTING",this.Wt],["SLOT_TYPE_IN_PLAYER",this.Wt],["SLOT_TYPE_PLAYER_BYTES",this.mJ]]), Tu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.CU],["SLOT_TYPE_FORECASTING",this.TP],["SLOT_TYPE_IN_PLAYER",this.uW],["SLOT_TYPE_PLAYER_BYTES",this.Dy]])};this.listeners=[A.get()];this.s9={Vr:this.Vr,Gr:this.gw.get(),yK:this.Yt.get(),Af:this.cS.get(),Qr:this.Qr,Uo:p.get(),Y8:this.eB.get(),fp:this.QN,B4:A.get(),Pw:this.dw.get()}}; CqL=function(W,J,K,I,q){g.R.call(this);var S=this,p=LQ(function(){return new Sm(S.gw)}); g.B(this,p);var n=LQ(function(){return new l6(p,S.gw)}); g.B(this,n);var A=LQ(function(){return new ed}); g.B(this,A);var D=LQ(function(){return new V1(W)}); g.B(this,D);var f=LQ(function(){return new na(p,n,S.gw)}); g.B(this,f);var h=LQ(function(){return new hx}); g.B(this,h);this.lU=LQ(function(){return new f7(J)}); g.B(this,this.lU);this.Yt=LQ(function(){return new z0(q)}); g.B(this,this.Yt);this.xK=LQ(function(){return new k3(J)}); g.B(this,this.xK);this.hp=LQ(function(){return new zP(J)}); g.B(this,this.hp);this.Vl=LQ(function(){return new vV(J)}); g.B(this,this.Vl);this.HN=LQ(function(){return new Y3(J)}); g.B(this,this.HN);this.gw=LQ(function(){return new sy(J)}); g.B(this,this.gw);var t=LQ(function(){return new jj(I)}); g.B(this,t);var F=LQ(function(){return new aA(S.gw)}); g.B(this,F);var a=LQ(function(){return new C8(p,f,n,S.gw,F,null,null,null,null)}); g.B(this,a);this.NR=LQ(function(){return new am(J)}); g.B(this,this.NR);this.dw=LQ(function(){return new q2(J,h,S.gw)}); g.B(this,this.dw);var y=op({dw:this.dw,gw:this.gw,f7:F}),U=y.context,Q=y.Fj;this.DJ=y.DJ;this.cS=LQ(function(){return new Sj(J,S.dw,S.gw)}); g.B(this,this.cS);this.Io=LQ(function(){return new N2}); g.B(this,this.Io);this.QP=LQ(function(){return new Xc(S.cS,J,S.gw)}); g.B(this,this.QP);this.iO=LQ(function(){return new Im(J,A,S.QP,S.dw,S.DJ,S.gw,Q)}); g.B(this,this.iO);this.Jh=LQ(function(){return new Pp(S.gw)}); g.B(this,this.Jh);this.rC=new Tp(Of,dS,function(T,H,b,c){return p8(n.get(),T,H,b,c)},D,f,n,F,this.gw,this.dw); g.B(this,this.rC);this.Qr=new Hz(D,a,K,this.gw,W,this.dw,this.cS,this.xK);g.B(this,this.Qr);var C=new Ly(J,this.Qr,this.cS,this.dw);this.OM=LQ(function(){return C}); this.nW=C;this.pc=new Ef(D,f,this.hp,this.OM,U);g.B(this,this.pc);this.Vr=new L_(this.gw,D,f,a,this.dw,this.pc,K,this.Vl);g.B(this,this.Vr);this.fU=LQ(function(){return new FZ(t,n,F,S.gw,S.iO,S.cS)}); g.B(this,this.fU);this.gB=LQ(function(){return new a3}); g.B(this,this.gB);this.QN=new k2(W,this.lU,this.gw);g.B(this,this.QN);this.Ji=new zp(W);g.B(this,this.Ji);this.m$=new sf(W,this.OM,U);g.B(this,this.m$);this.LP=new cz(W,this.hp,this.cS,this.dw,U);g.B(this,this.LP);this.Tv=new Xp(W);g.B(this,this.Tv);this.wC=new W1(W);g.B(this,this.wC);this.Ql=LQ(function(){return new uv(J)}); g.B(this,this.Ql);this.cD=new qq(W);g.B(this,this.cD);this.Wt=LQ(function(){return new m4}); g.B(this,this.Wt);this.mJ=LQ(function(){return new rN(S.cS)}); g.B(this,this.mJ);this.CU=LQ(function(){return new i1(S.Vr,D,p)}); g.B(this,this.CU);this.TP=LQ(function(){return new Is(S.gw,S.iO,S.Tv,S.QP)}); g.B(this,this.TP);this.ws=LQ(function(){return new Knv(S.lU,S.cS,S.iO,A,K,S.gw)}); g.B(this,this.ws);this.Dy=LQ(function(){return new a4(W,S.cD,S.Tv,S.iO,S.QP,S.Jh,S.Vl,S.dw,S.cS,S.Io,S.hp,S.xK,S.HN,S.Yt,S.NR,S.gw,S.Ql,U,Q)}); g.B(this,this.Dy);this.OP={rr:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vr],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.rC],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qr],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.pc]]),Ds:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fU],["SLOT_TYPE_FORECASTING",this.gB],["SLOT_TYPE_IN_PLAYER",this.gB],["SLOT_TYPE_PLAYER_BYTES",this.gB]]),n_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.QN],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Ji],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ji],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ji],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ji],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ji],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ji],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ji],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ji],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ji],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.m$],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.LP],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.LP],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Tv],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.m$],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.wC],["TRIGGER_TYPE_AD_BREAK_STARTED",this.cD]]),Ev:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wt],["SLOT_TYPE_ABOVE_FEED",this.Wt],["SLOT_TYPE_FORECASTING",this.Wt],["SLOT_TYPE_IN_PLAYER",this.Wt],["SLOT_TYPE_PLAYER_BYTES",this.mJ]]),Tu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.CU],["SLOT_TYPE_FORECASTING",this.TP],["SLOT_TYPE_IN_PLAYER", this.ws],["SLOT_TYPE_PLAYER_BYTES",this.Dy]])};this.listeners=[A.get()];this.s9={Vr:this.Vr,Gr:this.gw.get(),yK:this.Yt.get(),Af:this.cS.get(),Qr:this.Qr,Uo:p.get(),Y8:null,fp:this.QN,B4:A.get(),Pw:this.dw.get()}}; wKQ=function(W,J,K,I,q){g.R.call(this);var S=this,p=LQ(function(){return new Sm(S.gw)}); g.B(this,p);var n=LQ(function(){return new l6(p,S.gw)}); g.B(this,n);var A=LQ(function(){return new ed}); g.B(this,A);var D=LQ(function(){return new V1(W)}); g.B(this,D);var f=LQ(function(){return new na(p,n,S.gw)}); g.B(this,f);var h=LQ(function(){return new hx}); g.B(this,h);this.Kp=LQ(function(){return new UaL(J)}); g.B(this,this.Kp);this.lU=LQ(function(){return new f7(J)}); g.B(this,this.lU);this.Yt=LQ(function(){return new z0(q)}); g.B(this,this.Yt);this.xK=LQ(function(){return new k3(J)}); g.B(this,this.xK);this.hp=LQ(function(){return new zP(J)}); g.B(this,this.hp);this.Vl=LQ(function(){return new vV(J)}); g.B(this,this.Vl);this.HN=LQ(function(){return new Y3(J)}); g.B(this,this.HN);this.gw=LQ(function(){return new sy(J)}); g.B(this,this.gw);var t=LQ(function(){return new jj(I)}); g.B(this,t);var F=LQ(function(){return new aA(S.gw)}); g.B(this,F);var a=LQ(function(){return new C8(p,f,n,S.gw,F,null,null,null,null)}); g.B(this,a);this.NR=LQ(function(){return new am(J)}); g.B(this,this.NR);this.dw=LQ(function(){return new q2(J,h,S.gw)}); g.B(this,this.dw);var y=op({dw:this.dw,gw:this.gw,f7:F}),U=y.context,Q=y.Fj;this.DJ=y.DJ;this.cS=LQ(function(){return new Sj(J,S.dw,S.gw)}); g.B(this,this.cS);this.Io=LQ(function(){return new N2}); g.B(this,this.Io);this.QP=LQ(function(){return new Xc(S.cS,J,S.gw)}); g.B(this,this.QP);this.iO=LQ(function(){return new Im(J,A,S.QP,S.dw,S.DJ,S.gw,Q)}); g.B(this,this.iO);this.Jh=LQ(function(){return new Pp(S.gw)}); g.B(this,this.Jh);this.rC=new Tp(Tjy,dS,function(T,H,b,c){return JAH(n.get(),T,H,b,c)},D,f,n,F,this.gw,this.dw); g.B(this,this.rC);this.Qr=new Hz(D,a,K,this.gw,W,this.dw,this.cS,this.xK);g.B(this,this.Qr);var C=new Ly(J,this.Qr,this.cS,this.dw);this.OM=LQ(function(){return C}); this.nW=C;this.pc=new Ef(D,f,this.hp,this.OM,U);g.B(this,this.pc);this.Vr=new L_(this.gw,D,f,a,this.dw,this.pc,K,this.Vl);g.B(this,this.Vr);this.fU=LQ(function(){return new FZ(t,n,F,S.gw,S.iO,S.cS)}); g.B(this,this.fU);this.gB=LQ(function(){return new a3}); g.B(this,this.gB);this.QN=new k2(W,this.lU,this.gw);g.B(this,this.QN);this.Ji=new zp(W);g.B(this,this.Ji);this.m$=new sf(W,this.OM,U);g.B(this,this.m$);this.LP=new cz(W,this.hp,this.cS,this.dw,U);g.B(this,this.LP);this.Tv=new Xp(W);g.B(this,this.Tv);this.wC=new W1(W);g.B(this,this.wC);this.Ql=LQ(function(){return new uv(J)}); g.B(this,this.Ql);this.cD=new qq(W);g.B(this,this.cD);this.Wt=LQ(function(){return new m4}); g.B(this,this.Wt);this.mJ=LQ(function(){return new rN(S.cS)}); g.B(this,this.mJ);this.CU=LQ(function(){return new i1(S.Vr,D,p)}); g.B(this,this.CU);this.TP=LQ(function(){return new Is(S.gw,S.iO,S.Tv,S.QP)}); g.B(this,this.TP);this.Dy=LQ(function(){return new a4(W,S.cD,S.Tv,S.iO,S.QP,S.Jh,S.Vl,S.dw,S.cS,S.Io,S.hp,S.xK,S.HN,S.Yt,S.NR,S.gw,S.Ql,U,Q)}); g.B(this,this.Dy);this.KY=LQ(function(){return new vMX(S.lU,S.cS,S.iO,A,S.Kp,K,S.dw)}); g.B(this,this.KY);this.OP={rr:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vr],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.rC],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qr],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.pc]]),Ds:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fU],["SLOT_TYPE_FORECASTING",this.gB],["SLOT_TYPE_IN_PLAYER",this.gB],["SLOT_TYPE_PLAYER_BYTES",this.gB]]),n_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.QN],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Ji],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ji],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ji],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ji],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ji],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ji],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ji],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ji],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ji],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.m$],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.LP],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.LP],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Tv],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.m$],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.wC],["TRIGGER_TYPE_AD_BREAK_STARTED",this.cD]]),Ev:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wt],["SLOT_TYPE_FORECASTING",this.Wt],["SLOT_TYPE_IN_PLAYER",this.Wt],["SLOT_TYPE_PLAYER_BYTES",this.mJ]]),Tu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.CU],["SLOT_TYPE_FORECASTING",this.TP],["SLOT_TYPE_IN_PLAYER",this.KY],["SLOT_TYPE_PLAYER_BYTES", this.Dy]])};this.listeners=[A.get()];this.s9={Vr:this.Vr,Gr:this.gw.get(),yK:this.Yt.get(),Af:this.cS.get(),Qr:this.Qr,Uo:p.get(),Y8:null,fp:this.QN,B4:A.get(),Pw:this.dw.get()}}; MYQ=function(W,J,K,I,q){g.R.call(this);var S=this,p=LQ(function(){return new Sm(S.gw)}); g.B(this,p);var n=LQ(function(){return new l6(p,S.gw)}); g.B(this,n);var A=LQ(function(){return new ed}); g.B(this,A);var D=LQ(function(){return new V1(W)}); g.B(this,D);var f=LQ(function(){return new na(p,n,S.gw)}); g.B(this,f);var h=LQ(function(){return new hx}); g.B(this,h);this.Kp=LQ(function(){return new UaL(J)}); g.B(this,this.Kp);this.lU=LQ(function(){return new f7(J)}); g.B(this,this.lU);this.Yt=LQ(function(){return new z0(q)}); g.B(this,this.Yt);this.xK=LQ(function(){return new k3(J)}); g.B(this,this.xK);this.hp=LQ(function(){return new zP(J)}); g.B(this,this.hp);this.Vl=LQ(function(){return new vV(J)}); g.B(this,this.Vl);this.HN=LQ(function(){return new Y3(J)}); g.B(this,this.HN);this.gw=LQ(function(){return new sy(J)}); g.B(this,this.gw);var t=LQ(function(){return new jj(I)}); g.B(this,t);var F=LQ(function(){return new aA(S.gw)}); g.B(this,F);this.NR=LQ(function(){return new am(J)}); g.B(this,this.NR);this.dw=LQ(function(){return new q2(J,h,S.gw)}); g.B(this,this.dw);var a=op({dw:this.dw,gw:this.gw,f7:F}),y=a.context,U=a.Fj;this.DJ=a.DJ;this.p7=LQ(function(){return new F4(J,S.gw,S.iO)}); g.B(this,this.p7);this.Ql=LQ(function(){return new uv(J)}); g.B(this,this.Ql);this.cS=LQ(function(){return new Sj(J,S.dw,S.gw)}); g.B(this,this.cS);this.Io=LQ(function(){return new N2}); g.B(this,this.Io);a=LQ(function(){return new C8(p,f,n,S.gw,F,null,S.cS,S.gC,S.F0,3)}); g.B(this,a);this.Jh=LQ(function(){return new Pp(S.gw)}); this.QP=LQ(function(){return new Xc(S.cS,J,S.gw)}); g.B(this,this.QP);this.iO=LQ(function(){return new Im(J,A,S.QP,S.dw,S.DJ,S.gw,U)}); g.B(this,this.iO);this.Qr=new Hz(D,a,K,this.gw,W,this.dw,this.cS,this.xK);g.B(this,this.Qr);var Q=new Ly(J,this.Qr,this.cS,this.dw,this.p7);this.OM=LQ(function(){return Q}); this.nW=Q;this.rC=new Tp(HYD,dS,function(C,T,H,b){return JAH(n.get(),C,T,H,b)},D,f,n,F,this.gw,this.dw); g.B(this,this.rC);this.gC=new Gp(D,f,this.OM,this.p7,this.cS,this.gw,this.iO,this.Ql);g.B(this,this.gC);this.pc=new Ef(D,f,this.hp,this.OM,y);g.B(this,this.pc);this.Vr=new L_(this.gw,D,f,a,this.dw,this.pc,K,this.Vl);g.B(this,this.Vr);this.fU=LQ(function(){return new FZ(t,n,F,S.gw,S.iO,S.cS,S.Ql)}); g.B(this,this.fU);this.gB=LQ(function(){return new a3}); g.B(this,this.gB);this.QN=new k2(W,this.lU,this.gw);g.B(this,this.QN);this.Ji=new zp(W);g.B(this,this.Ji);this.m$=new sf(W,this.OM,y);g.B(this,this.m$);this.LP=new cz(W,this.hp,this.cS,this.dw,y);g.B(this,this.LP);this.iz=new Pz(W,this.dw);g.B(this,this.iz);this.F0=new i6(W,this.p7,this.cS,this.iO,this.OM);g.B(this,this.F0);this.Tv=new Xp(W);g.B(this,this.Tv);this.wC=new W1(W);g.B(this,this.wC);this.cD=new qq(W);g.B(this,this.cD);this.Wt=LQ(function(){return new m4}); g.B(this,this.Wt);this.mJ=LQ(function(){return new rN(S.cS)}); g.B(this,this.mJ);this.CU=LQ(function(){return new i1(S.Vr,D,p)}); g.B(this,this.CU);this.TP=LQ(function(){return new Is(S.gw,S.iO,S.Tv,S.QP)}); g.B(this,this.TP);this.Dy=LQ(function(){return new Fa(W,S.cD,S.Tv,S.dw,S.Ql,S.cS,S.Io,S.iO,h,S.p7,S.QP,S.Jh,S.Vl,S.hp,S.xK,S.HN,S.Yt,S.NR,S.gw,A,y,U)}); g.B(this,this.Dy);this.uW=LQ(function(){return new YUQ(S.lU,S.cS,S.iO,A,S.Kp,K,S.gw,S.dw)}); g.B(this,this.uW);this.OP={rr:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vr],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gC],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.rC],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qr],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.pc]]),Ds:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fU],["SLOT_TYPE_FORECASTING",this.gB],["SLOT_TYPE_IN_PLAYER",this.gB],["SLOT_TYPE_PLAYER_BYTES",this.gB]]),n_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.QN],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ji],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ji],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ji],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ji],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ji],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ji],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ji],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ji],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ji],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.m$],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.LP],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.LP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.iz],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.iz],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Tv],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.m$],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.wC],["TRIGGER_TYPE_AD_BREAK_STARTED",this.cD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.F0],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.F0],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.F0],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.F0],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.F0]]),Ev:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wt],["SLOT_TYPE_FORECASTING",this.Wt],["SLOT_TYPE_IN_PLAYER",this.Wt],["SLOT_TYPE_PLAYER_BYTES",this.mJ]]),Tu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.CU],["SLOT_TYPE_FORECASTING",this.TP],["SLOT_TYPE_PLAYER_BYTES",this.Dy],["SLOT_TYPE_IN_PLAYER",this.uW]])};this.listeners=[A.get()]; this.s9={Vr:this.Vr,Gr:this.gw.get(),yK:this.Yt.get(),Af:this.cS.get(),Qr:this.Qr,Uo:p.get(),Y8:null,fp:this.QN,B4:A.get(),Pw:this.dw.get()}}; GYy=function(W,J,K,I){function q(){return S.K} g.R.call(this);var S=this;W.J().experiments.HS("html5_dispose_of_manager_before_dependency")?(this.W=gYH(q,W,J,K,I),this.K=(new kw(this.W)).G(),g.B(this,this.K),g.B(this,this.W)):(this.W=gYH(q,W,J,K,I),g.B(this,this.W),this.K=(new kw(this.W)).G(),g.B(this,this.K))}; y2=function(W){return W.W.s9}; gYH=function(W,J,K,I,q){try{var S=J.J();if(g.X2(S))var p=new ZAL(W,J,K,I,q);else if(g.iL(S))p=new QnL(W,J,K,I,q);else if(L5(S))p=new CqL(W,J,K,I,q);else if(g.Bh(S))p=new wKQ(W,J,K,I,q);else if(g.RP(S))p=new MYQ(W,J,K,I,q);else throw new TypeError("Unknown web interface");return p}catch(n){return p=J.J(),tq("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:p.W.cplatform,interface:p.W.c,B0K:p.W.cver,dwy:p.W.ctheme,ZzN:p.W.cplayer,gPO:p.playerStyle}),new jn0(W,J,K,I,q)}}; $a0=function(W){kT.call(this,W)}; xaT=function(W,J,K,I,q){Jq.call(this,W,{V:"div",B:"ytp-ad-timed-pie-countdown-container",L:[{V:"svg",B:"ytp-ad-timed-pie-countdown",U:{viewBox:"0 0 20 20"},L:[{V:"circle",B:"ytp-ad-timed-pie-countdown-background",U:{r:"10",cx:"10",cy:"10"}},{V:"circle",B:"ytp-ad-timed-pie-countdown-inner",U:{r:"5",cx:"10",cy:"10"}},{V:"circle",B:"ytp-ad-timed-pie-countdown-outer",U:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",J,K,I,q);this.T=this.T8("ytp-ad-timed-pie-countdown-container");this.G=this.T8("ytp-ad-timed-pie-countdown-inner"); this.S=this.T8("ytp-ad-timed-pie-countdown-outer");this.K=Math.ceil(2*Math.PI*5);this.hide()}; OAQ=function(W,J,K,I,q,S){Fo.call(this,W,{V:"div",B:"ytp-ad-action-interstitial",U:{tabindex:"0"},L:[{V:"div",B:"ytp-ad-action-interstitial-background-container"},{V:"div",B:"ytp-ad-action-interstitial-slot",L:[{V:"div",B:"ytp-ad-action-interstitial-instream-info"},{V:"div",B:"ytp-ad-action-interstitial-card",L:[{V:"div",B:"ytp-ad-action-interstitial-image-container"},{V:"div",B:"ytp-ad-action-interstitial-headline-container"},{V:"div",B:"ytp-ad-action-interstitial-description-container"},{V:"div", B:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",J,K,I);this.Vs=q;this.Ip=S;this.navigationEndpoint=this.W=this.skipButton=this.K=this.actionButton=null;this.Y3=this.T8("ytp-ad-action-interstitial-instream-info");this.SZ=this.T8("ytp-ad-action-interstitial-image-container");this.C=new mJ(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,"ytp-ad-action-interstitial-image");g.B(this,this.C);this.C.MN(this.SZ);this.vS=this.T8("ytp-ad-action-interstitial-headline-container"); this.S=new Wh(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,"ytp-ad-action-interstitial-headline");g.B(this,this.S);this.S.MN(this.vS);this.sI=this.T8("ytp-ad-action-interstitial-description-container");this.G=new Wh(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,"ytp-ad-action-interstitial-description");g.B(this,this.G);this.G.MN(this.sI);this.Js=this.T8("ytp-ad-action-interstitial-background-container");this.OI=new mJ(this.api,this.layoutId,this.interactionLoggingClientData, this.yK,"ytp-ad-action-interstitial-background",!0);g.B(this,this.OI);this.OI.MN(this.Js);this.bO=this.T8("ytp-ad-action-interstitial-action-button-container");this.slot=this.T8("ytp-ad-action-interstitial-slot");this.nP=this.T8("ytp-ad-action-interstitial-card");this.T=new gi;g.B(this,this.T);this.hide()}; T20=function(W){var J=g.Yj("html5-video-player");J&&g.jN(J,"ytp-ad-display-override",W)}; egy=function(W,J,K,I){Fo.call(this,W,{V:"div",B:"ytp-ad-overlay-slot",L:[{V:"div",B:"ytp-ad-overlay-container"}]},"invideo-overlay",J,K,I);this.C=[];this.Js=this.vS=this.T=this.bO=this.Y3=null;this.OI=!1;this.S=null;this.sI=0;W=this.T8("ytp-ad-overlay-container");this.SZ=new Aq(W,45E3,6E3,.3,.4);g.B(this,this.SZ);this.G=HAv(this);g.B(this,this.G);this.G.MN(W);this.K=VYD(this);g.B(this,this.K);this.K.MN(W);this.W=EYy(this);g.B(this,this.W);this.W.MN(W);this.hide()}; HAv=function(W){var J=new g.to({V:"div",B:"ytp-ad-text-overlay",L:[{V:"div",B:"ytp-ad-overlay-ad-info-button-container"},{V:"div",B:"ytp-ad-overlay-close-container",L:[{V:"button",B:"ytp-ad-overlay-close-button",L:[Tl(RgQ)]}]},{V:"div",B:"ytp-ad-overlay-title",Ky:"{{title}}"},{V:"div",B:"ytp-ad-overlay-desc",Ky:"{{description}}"},{V:"div",au:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Ky:"{{displayUrl}}"}]});W.D(J.T8("ytp-ad-overlay-title"),"click",function(K){Uz(W,J.element,K)}); W.D(J.T8("ytp-ad-overlay-link"),"click",function(K){Uz(W,J.element,K)}); W.D(J.T8("ytp-ad-overlay-close-container"),"click",W.f0);J.hide();return J}; VYD=function(W){var J=new g.to({V:"div",au:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],L:[{V:"div",B:"ytp-ad-overlay-ad-info-button-container"},{V:"div",B:"ytp-ad-overlay-close-container",L:[{V:"button",B:"ytp-ad-overlay-close-button",L:[Tl(RgQ)]}]},{V:"div",B:"ytp-ad-overlay-text-image",L:[{V:"img",U:{src:"{{imageUrl}}"}}]},{V:"div",B:"ytp-ad-overlay-title",Ky:"{{title}}"},{V:"div",B:"ytp-ad-overlay-desc",Ky:"{{description}}"},{V:"div",au:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Ky:"{{displayUrl}}"}]});W.D(J.T8("ytp-ad-overlay-title"),"click",function(K){Uz(W,J.element,K)}); W.D(J.T8("ytp-ad-overlay-link"),"click",function(K){Uz(W,J.element,K)}); W.D(J.T8("ytp-ad-overlay-close-container"),"click",W.f0);W.D(J.T8("ytp-ad-overlay-text-image"),"click",W.Ukw);J.hide();return J}; EYy=function(W){var J=new g.to({V:"div",B:"ytp-ad-image-overlay",L:[{V:"div",B:"ytp-ad-overlay-ad-info-button-container"},{V:"div",B:"ytp-ad-overlay-close-container",L:[{V:"button",B:"ytp-ad-overlay-close-button",L:[Tl(RgQ)]}]},{V:"div",B:"ytp-ad-overlay-image",L:[{V:"img",U:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});W.D(J.T8("ytp-ad-overlay-image"),"click",function(K){Uz(W,J.element,K)}); W.D(J.T8("ytp-ad-overlay-close-container"),"click",W.f0);J.hide();return J}; bAy=function(W,J){if(J){var K=g.m(J,BA)||null;K==null?g.Va(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(J=g.Yj("video-ads ytp-ad-module")||null,J==null?g.Va(Error("Could not locate the root ads container element to attach the ad info dialog.")):(W.vS=new g.to({V:"div",B:"ytp-ad-overlay-ad-info-dialog-container"}),g.B(W,W.vS),W.vS.MN(J),J=new Xo(W.api,W.layoutId,W.interactionLoggingClientData,W.yK,W.vS.element,!1),g.B(W,J),J.init(lG("ad-info-hover-text-button"),K,W.macros), W.S?(J.MN(W.S,0),J.subscribe("f",W.VIK,W),J.subscribe("e",W.YE,W),W.D(W.S,"click",W.X7h),W.D(g.Yj("ytp-ad-button",J.element),"click",function(){var I;if(g.m((I=g.m(K.button,g.rD))==null?void 0:I.serviceEndpoint,kqQ))W.OI=W.api.getPlayerState(1)===2,W.api.pauseVideo();else W.api.onAdUxClicked("ad-info-hover-text-button",W.layoutId)}),W.Js=J):g.Va(Error("Ad info button container within overlay ad was not present."))))}else g.ET(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; maQ=function(W,J){if(B2Q(W,Zm)||W.api.isMinimized())return!1;var K=aE(J.title),I=aE(J.description);if(g.FC(K)||g.FC(I))return!1;W.createServerVe(W.G.element,J.trackingParams||null);W.G.updateValue("title",aE(J.title));W.G.updateValue("description",aE(J.description));W.G.updateValue("displayUrl",aE(J.displayUrl));J.navigationEndpoint&&g.QG(W.C,J.navigationEndpoint);W.G.show();W.SZ.start();W.logVisibility(W.G.element,!0);W.D(W.G.element,"mouseover",function(){W.sI++}); return!0}; rvL=function(W,J){if(B2Q(W,Zm)||W.api.isMinimized())return!1;var K=aE(J.title),I=aE(J.description);if(g.FC(K)||g.FC(I))return!1;W.createServerVe(W.K.element,J.trackingParams||null);W.K.updateValue("title",aE(J.title));W.K.updateValue("description",aE(J.description));W.K.updateValue("displayUrl",aE(J.displayUrl));W.K.updateValue("imageUrl",pMD(J.image));J.navigationEndpoint&&g.QG(W.C,J.navigationEndpoint);W.bO=J.imageNavigationEndpoint||null;W.K.show();W.SZ.start();W.logVisibility(W.K.element,!0); W.D(W.K.element,"mouseover",function(){W.sI++}); return!0}; oYQ=function(W,J){if(W.api.isMinimized())return!1;var K=ltA(J.image),I=K;K.width0?(J=new RK(W.api,W.W), J.MN(W.playerOverlay),g.B(W,J)):(W=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(J)),g.Va(W))}}else g.Va(Error("addCommonComponents() needs to be called before starting countdown."))}; ivp=function(W){function J(K){return{toString:function(){return K()}}} W.macros.SURVEY_LOCAL_TIME_EPOCH_S=J(function(){var K=new Date;return(Math.round(K.valueOf()/1E3)+-1*K.getTimezoneOffset()*60).toString()}); W.macros.SURVEY_ELAPSED_MS=J(function(){return(Date.now()-W.G).toString()})}; JT0=function(W,J,K,I,q){M2.call(this,W,J,K,I,"survey-question-multi-select");this.sI=q;this.noneOfTheAbove=null;this.submitEndpoints=[];this.S=null;this.hide()}; KXR=function(W,J,K){W.noneOfTheAbove=new sny(W.api,W.layoutId,W.interactionLoggingClientData,W.yK);W.noneOfTheAbove.MN(W.answers);W.noneOfTheAbove.init(lG("survey-none-of-the-above"),J,K)}; qHp=function(W){W.K.forEach(function(J){J.W.toggleButton(!1)}); Iy$(W,!0)}; Iy$=function(W,J){var K=W.T;W=SHj(W);J=J===void 0?!1:J;K.W&&(W?K.W.hide():K.W.show(),J&&K.W instanceof yS&&!K.W.T&&iC0(K.W,!1));K.K&&(W?K.K.show():K.K.hide())}; SHj=function(W){return W.K.some(function(J){return J.W.isToggled()})||W.noneOfTheAbove.button.isToggled()}; gS=function(W,J,K,I,q){M2.call(this,W,J,K,I,"survey-question-single-select",function(p){S.api.J().Y("supports_multi_step_on_desktop")&&q([p])}); var S=this;this.hide()}; Gy=function(W,J,K,I){Fo.call(this,W,{V:"div",B:"ytp-ad-survey",L:[{V:"div",B:"ytp-ad-survey-questions"}]},"survey",J,K,I);this.questions=[];this.K=[];this.conditioningRules=[];this.W=0;this.S=this.T8("ytp-ad-survey-questions");this.api.J().Y("fix_survey_color_contrast_on_destop")&&this.T8("ytp-ad-survey").classList.add("color-contrast-fix");this.api.J().Y("web_enable_speedmaster")&&this.T8("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; ncG=function(W,J){var K=W.K[J],I;(I=W.G)==null||I.dispose();g.m(K,R9)?pHv(W,g.m(K,R9),W.macros):g.m(K,e5)&&lyr(W,g.m(K,e5),W.macros);W.W=J}; pHv=function(W,J,K){var I=new gS(W.api,W.layoutId,W.interactionLoggingClientData,W.yK,W.T.bind(W));I.MN(W.S);I.init(lG("survey-question-single-select"),J,K);W.api.J().Y("supports_multi_step_on_desktop")?W.G=I:W.questions.push(I);g.B(W,I)}; lyr=function(W,J,K){var I=new JT0(W.api,W.layoutId,W.interactionLoggingClientData,W.yK,W.T.bind(W));I.MN(W.S);I.init(lG("survey-question-multi-select"),J,K);W.api.J().Y("supports_multi_step_on_desktop")?W.G=I:W.questions.push(I);g.B(W,I)}; $y=function(W,J,K,I){Fo.call(this,W,{V:"div",B:"ytp-ad-survey-interstitial",L:[{V:"div",B:"ytp-ad-survey-interstitial-contents",L:[{V:"div",B:"ytp-ad-survey-interstitial-logo",L:[{V:"div",B:"ytp-ad-survey-interstitial-logo-image"}]},{V:"div",B:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",J,K,I);this.W=this.actionButton=null;this.interstitial=this.T8("ytp-ad-survey-interstitial");this.K=this.T8("ytp-ad-survey-interstitial-contents");this.text=this.T8("ytp-ad-survey-interstitial-text"); this.logoImage=this.T8("ytp-ad-survey-interstitial-logo-image");this.transition=new g.qf(this,500,!1,300);g.B(this,this.transition)}; ATR=function(W,J){J=J&&B3(J)||"";if(g.FC(J))g.ET(Error("Found ThumbnailDetails without valid image URL"));else{var K=W.style;W=W.style.cssText;var I=document.implementation.createHTMLDocument("").createElement("DIV");I.style.cssText=W;W=HqL(I.style);K.cssText=[W,'background-image:url("'+J+'");'].join("")}}; DIp=function(W){var J=g.Yj("html5-video-player");J&&g.jN(J,"ytp-ad-display-override",W)}; Oz=function(W,J,K,I,q,S){S=S===void 0?0:S;Jq.call(this,W,{V:"div",B:"ytp-preview-ad",L:[{V:"div",B:"ytp-preview-ad__text"}]},"preview-ad",J,K,I,q);var p=this;this.sI=S;this.K=0;this.T=-1;this.G=this.T8("ytp-preview-ad__text");switch(this.sI){case 1:this.G.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.qf(this,400,!1,100,function(){p.hide()}); g.B(this,this.transition);this.hide()}; Ty=function(W,J,K,I){Fo.call(this,W,{V:"img",B:"ytp-ad-avatar"},"ad-avatar",J,K,I);this.hide()}; jyT=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}}; HJ=function(W,J,K,I,q,S){q=q===void 0?!1:q;S=S===void 0?!1:S;Fo.call(this,W,{V:"button",B:"ytp-ad-button-vm"},"ad-button",J,K,I);this.buttonText=this.buttonIcon=null;this.hide();this.W=q;this.K=S}; fyl=function(W,J,K,I,q){Jq.call(this,W,{V:"div",au:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],L:[{V:"div",B:"ytp-ad-avatar-lockup-card__avatar_and_text_container",L:[{V:"div",B:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",J,K,I,q);this.startMilliseconds=0;this.adAvatar=new Ty(this.api,this.layoutId,this.interactionLoggingClientData,this.yK);g.B(this,this.adAvatar);qO(this.element,this.adAvatar.element,0);this.headline=new Oo(this.api,this.layoutId, this.interactionLoggingClientData,this.yK);g.B(this,this.headline);this.headline.MN(this.T8("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Oo(this.api,this.layoutId,this.interactionLoggingClientData,this.yK);g.B(this,this.description);this.description.MN(this.T8("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new HJ(this.api, this.layoutId,this.interactionLoggingClientData,this.yK);g.B(this,this.adButton);this.adButton.MN(this.element);this.hide()}; V2=function(W,J,K,I){Fo.call(this,W,{V:"button",B:"ytp-skip-ad-button",L:[{V:"div",B:"ytp-skip-ad-button__text"}]},"skip-button",J,K,I);var q=this;this.K=!1;this.T=this.T8("ytp-skip-ad-button__text");this.transition=new g.qf(this,500,!1,100,function(){q.hide()}); g.B(this,this.transition);this.W=new Aq(this.element,15E3,5E3,.5,.5,!0);g.B(this,this.W);this.hide()}; hQ0=function(W,J,K,I,q){Jq.call(this,W,{V:"div",B:"ytp-skip-ad"},"skip-ad",J,K,I,q);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.G=new V2(this.api,this.layoutId,this.interactionLoggingClientData,this.yK);g.B(this,this.G);this.G.MN(this.element);this.hide()}; Ez=function(W,J,K,I){Fo.call(this,W,{V:"div",B:"ytp-visit-advertiser-link"},"visit-advertiser-link",J,K,I);this.hide()}; ej=function(W,J,K,I,q){Fo.call(this,W,{V:"div",B:"ytp-ad-player-overlay-layout",L:[{V:"div",B:"ytp-ad-player-overlay-layout__player-card-container"},{V:"div",B:"ytp-ad-player-overlay-layout__ad-info-container"},{V:"div",B:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{V:"div",B:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",J,K,I);this.K=q;this.vS=this.T8("ytp-ad-player-overlay-layout__player-card-container");this.W=this.T8("ytp-ad-player-overlay-layout__ad-info-container"); this.C=this.T8("ytp-ad-player-overlay-layout__skip-or-preview-container");this.sI=this.T8("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; tQW=function(W,J,K,I){Fo.call(this,W,{V:"div",B:"ytp-ad-grid-card-text",L:[{V:"div",B:"ytp-ad-grid-card-text__metadata",L:[{V:"div",B:"ytp-ad-grid-card-text__metadata__headline"},{V:"div",B:"ytp-ad-grid-card-text__metadata__description",L:[{V:"div",B:"ytp-ad-grid-card-text__metadata__description__line"},{V:"div",B:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{V:"div",B:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",J,K,I);this.headline=new Oo(this.api,this.layoutId,this.interactionLoggingClientData, this.yK);g.B(this,this.headline);this.headline.MN(this.T8("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new HJ(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,!0);g.B(this,this.moreInfoButton);this.moreInfoButton.MN(this.T8("ytp-ad-grid-card-text__button"))}; Rm=function(W,J,K,I){Fo.call(this,W,{V:"div",B:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",J,K,I);this.W=[]}; bv=function(W,J,K,I,q,S,p){Jq.call(this,W,S,p,J,K,I,q);this.playerProgressOffsetMs=0;this.K=!1}; FXr=function(W){var J=g.Yj("html5-video-player");J&&g.jN(J,"ytp-ad-display-override",W)}; ayR=function(W,J,K,I,q){bv.call(this,W,J,K,I,q,{V:"div",B:"ytp-display-underlay-text-grid-cards",L:[{V:"div",B:"ytp-display-underlay-text-grid-cards__content_container",L:[{V:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header",L:[{V:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{V:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{V:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {V:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Rm(this.api,this.layoutId,this.interactionLoggingClientData,this.yK);g.B(this,this.adGridCardCollection);this.adGridCardCollection.MN(this.T8("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new HJ(this.api,this.layoutId,this.interactionLoggingClientData,this.yK);g.B(this,this.adButton);this.adButton.MN(this.T8("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.G=this.T8("ytp-display-underlay-text-grid-cards__content_container");this.T=this.T8("ytp-display-underlay-text-grid-cards__content_container__header")}; BJ=function(W,J,K,I){Fo.call(this,W,{V:"div",B:"ytp-ad-details-line"},"ad-details-line",J,K,I);this.W=[];this.hide()}; mq=function(W,J,K,I){Fo.call(this,W,{V:"div",B:"ytp-image-background",L:[{V:"img",B:"ytp-image-background-image"}]},"image-background",J,K,I);this.hide()}; uLr=function(W,J,K,I,q){Jq.call(this,W,{V:"svg",B:"ytp-timed-pie-countdown",U:{viewBox:"0 0 20 20"},L:[{V:"circle",B:"ytp-timed-pie-countdown__background",U:{r:"10",cx:"10",cy:"10"}},{V:"circle",B:"ytp-timed-pie-countdown__inner",U:{r:"5",cx:"10",cy:"10"}},{V:"circle",B:"ytp-timed-pie-countdown__outer",U:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",J,K,I,q);this.G=this.T8("ytp-timed-pie-countdown__inner");this.K=Math.ceil(2*Math.PI*5);this.hide()}; rS=function(W,J,K,I){Fo.call(this,W,{V:"div",B:"ytp-video-interstitial-buttoned-centered-layout",U:{tabindex:"0"},L:[{V:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content",L:[{V:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{V:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",L:[{V:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{V:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {V:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{V:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{V:"div",B:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",J,K,I);this.K=null;this.T=this.T8("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.G=new gi;g.B(this,this.G);this.hide()}; N0o=function(W){var J=g.Yj("html5-video-player");J&&g.jN(J,"ytp-ad-display-override",W)}; dI0=function(W){if(!W.adAvatar||!g.m(W.adAvatar,om))return g.Va(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!W.headline)return g.Va(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!W.adBadge||!g.m(W.adBadge,L7))return g.Va(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!W.adButton||!g.m(W.adButton,ky))return g.Va(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!W.adInfoRenderer|| !g.m(W.adInfoRenderer,BA))return g.Va(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;W=W.durationMilliseconds||0;return typeof W!=="number"||W<=0?(g.Va(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+W)),!1):!0}; zy=function(W,J){J=J===void 0?2:J;g.Ao.call(this);this.api=W;this.W=null;this.uK=new gi(this);g.B(this,this.uK);this.K=JcA;this.uK.D(this.api,"presentingplayerstatechange",this.Ay);this.W=this.uK.D(this.api,"progresssync",this.ZH);this.jS=J;this.jS===1&&this.ZH()}; vJ=function(W,J,K){kT.call(this,W);this.api=W;this.yK=J;this.K={};W=new g.k({V:"div",au:["video-ads","ytp-ad-module"]});g.B(this,W);g8&&g.lK(W.element,"ytp-ads-tiny-mode");this.j=new db(W.element);g.B(this,this.j);g.EY(this.api,W.element,4);lf(K)&&(K=new g.k({V:"div",au:["ytp-ad-underlay"]}),g.B(this,K),this.G=new db(K.element),g.B(this,this.G),g.EY(this.api,K.element,0));g.B(this,$VQ())}; yTr=function(W,J){W=g.Xe(W.K,J.id,null);W==null&&g.ET(Error("Component not found for element id: "+J.id));return W||null}; UIR=function(W){g.N9.call(this,W);var J=this;this.K=null;this.created=!1;this.G=W.J().Y("h5_use_refactored_get_ad_break")?new AGL(this.player):new rK(this.player);this.T=function(){if(J.K!=null)return J.K;var I=new aAH({fp:y2(J.W).fp,Pw:y2(J.W).Pw,X:J.player,Gr:y2(J.W).Gr,iO:J.W.W.iO,B4:y2(J.W).B4,HN:J.W.W.HN});J.K=I.zM;return J.K}; this.W=new GYy(this.player,this,this.G,this.T);g.B(this,this.W);var K=W.J();!G0(K)||g.RP(K)||L5(K)||(g.B(this,new vJ(W,y2(this.W).yK,y2(this.W).Gr)),g.B(this,new $a0(W)))}; Zve=function(W){W.created!==W.loaded&&tq("Created and loaded are out of sync")}; wHo=function(W){g.N9.prototype.load.call(W);var J=y2(W.W).Gr;try{W.player.getRootNode().classList.add("ad-created")}catch(A){tq(A instanceof Error?A:String(A))}var K=W.player.getVideoData(1),I=K&&K.videoId||"",q=K&&K.getPlayerResponse()||{},S=(!W.player.J().experiments.HS("debug_ignore_ad_placements")&&q&&q.adPlacements||[]).map(function(A){return A.adPlacementRenderer}),p=((q==null?void 0:q.adSlots)||[]).map(function(A){return g.m(A,kt)}); q=q.playerConfig&&q.playerConfig.daiConfig&&q.playerConfig.daiConfig.enableDai||!1;K&&K.dl();S=Qyl(S,p,J,y2(W.W).Uo);p=K&&K.clientPlaybackNonce||"";K=K&&K.mZ||!1;if(gG(J,!0)&&K){var n;J={};(n=W.player.getVideoData())==null||n.WS("p_cpb",(J.cc=p,J))}n=1E3*W.player.getDuration(1);CDv(W);W.W.W.nW.Om(p,n,K,S.vF,S.ZK,S.vF,q,I)}; CDv=function(W){var J,K;if(K=(J=W.player.getVideoData(1))==null||!J.mZ)J=W.player.J(),K=G0(J)&&!g.gJ(J)&&J.playerStyle==="desktop-polymer";K&&(W=W.player.getInternalApi(),W.addEventListener("updateKevlarOrC3Companion",lvH),W.addEventListener("updateEngagementPanelAction",ngL),W.addEventListener("changeEngagementPanelVisibility",AcH),window.addEventListener("yt-navigate-start",jOT))}; Yy=function(W,J){J===W.E_&&(W.E_=void 0)}; MQ$=function(W){var J=y2(W.W).Qr,K=J.T().IS("SLOT_TYPE_PLAYER_BYTES",1);J=UQ(J.dw.get(),1).clientPlaybackNonce;var I=!1;K=g.d(K);for(var q=K.next();!q.done;q=K.next()){q=q.value;var S=q.slotType==="SLOT_TYPE_PLAYER_BYTES"&&q.slotEntryTrigger instanceof x$?q.slotEntryTrigger.aD:void 0;S&&S===J&&(I&&tq("More than 1 preroll playerBytes slot detected",q),I=!0)}I||p7(y2(W.W).Af)}; gcx=function(W){if(cV(y2(W.W).Gr))return!0;var J="";W=g.d(y2(W.W).B4.WZ.keys());for(var K=W.next();!K.done;K=W.next()){K=K.value;if(K.slotType==="SLOT_TYPE_PLAYER_BYTES"&&K.ou==="core")return!0;J+=K.slotType+" "}Math.random()<.01&&tq("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:J});return!1}; GAo=function(W){W=g.d(y2(W.W).B4.WZ.values());for(var J=W.next();!J.done;J=W.next())if(J.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; GOA=function(W,J,K,I,q,S){K=K===void 0?[]:K;I=I===void 0?"":I;q=q===void 0?"":q;var p=y2(W.W).Gr,n=W.player.getVideoData(1);n&&n.getPlayerResponse();n&&n.dl();K=Qyl(J,K,p,y2(W.W).Uo);H20(y2(W.W).Vr,I,K.vF,K.ZK,J,q,S)}; Qyl=function(W,J,K,I){J={vF:[],ZK:J};W=g.d(W);for(var q=W.next();!q.done;q=W.next())if((q=q.value)&&q.renderer!=null){var S=q.renderer;if(!K.X.J().Y("html5_enable_vod_lasr_with_notify_pacf")){var p=void 0,n=void 0,A=void 0,D=void 0,f=I;g.m((D=S.sandwichedLinearAdRenderer)==null?void 0:D.adVideoStart,Q1)?(p=g.m((A=S.sandwichedLinearAdRenderer)==null?void 0:A.adVideoStart,Q1),p=PCc(p,f),g.mH(S.sandwichedLinearAdRenderer.adVideoStart,Q1,p)):g.m((n=S.linearAdSequenceRenderer)==null?void 0:n.adStart,Q1)&& (A=g.m((p=S.linearAdSequenceRenderer)==null?void 0:p.adStart,Q1),p=PCc(A,f),g.mH(S.linearAdSequenceRenderer.adStart,Q1,p))}J.vF.push(q)}return J}; g.sz=function(W){if(typeof DOMParser!="undefined")return hz(new DOMParser,$ov(W),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.cJ=function(W){g.R.call(this);this.callback=W;this.W=new Z3(0,0,.4,0,.2,1,1,1);this.delay=new g.c0(this.next,window,this);g.B(this,this.delay)}; g.$IL=function(W){var J=W.J();return J.iU&&!J.G&&g.xK(J)?W.isEmbedsShortsMode()?(W=W.jl(),Math.min(W.width,W.height)>=315):!W.RX():!1}; g.PJ=function(W){g.k.call(this,{V:"div",B:"ytp-more-videos-view",U:{tabIndex:"-1"}});var J=this;this.api=W;this.K=!0;this.G=new g.BW(this);this.W=[];this.suggestionData=[];this.columns=this.containerWidth=this.N=this.T=this.scrollPosition=0;this.title=new g.k({V:"h2",B:"ytp-related-title",Ky:"{{title}}"});this.previous=new g.k({V:"button",au:["ytp-button","ytp-previous"],U:{"aria-label":"Mostrar videos sugeridos anteriores"},L:[g.yI()]});this.Z=new g.cJ(function(K){J.suggestions.element.scrollLeft= -K}); this.next=new g.k({V:"button",au:["ytp-button","ytp-next"],U:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},L:[g.Us()]});g.B(this,this.G);this.S=W.J().T;g.B(this,this.title);this.title.MN(this.element);this.suggestions=new g.k({V:"div",B:"ytp-suggestions"});g.B(this,this.suggestions);this.suggestions.MN(this.element);g.B(this,this.previous);this.previous.MN(this.element);this.previous.listen("click",this.kQ,this);g.B(this,this.Z);xIR(this);g.B(this,this.next);this.next.MN(this.element);this.next.listen("click", this.pY,this);this.G.D(this.api,"appresize",this.eI);this.G.D(this.api,"fullscreentoggled",this.LW);this.G.D(this.api,"videodatachange",this.onVideoDataChange);this.eI(this.api.UI().getPlayerSize());this.onVideoDataChange()}; xIR=function(W){for(var J={h0:0};J.h0<16;J={h0:J.h0},++J.h0){var K=new g.k({V:"a",B:"ytp-suggestion-link",U:{href:"{{link}}",target:W.api.J().C,"aria-label":"{{aria_label}}"},L:[{V:"div",B:"ytp-suggestion-image"},{V:"div",B:"ytp-suggestion-overlay",U:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},L:[{V:"div",B:"ytp-suggestion-title",Ky:"{{title}}"},{V:"div",B:"ytp-suggestion-author",Ky:"{{author_and_views}}"},{V:"div",U:{"data-is-live":"{{is_live}}"},B:"ytp-suggestion-duration", Ky:"{{duration}}"}]}]});g.B(W,K);var I=K.T8("ytp-suggestion-link");g.bj(I,"transitionDelay",J.h0/20+"s");W.G.D(I,"click",function(q){return function(S){var p=q.h0;if(W.K){var n=W.suggestionData[p],A=n.sessionData;W.S&&W.api.Y("web_player_log_click_before_generating_ve_conversion_params")?(W.api.logClick(W.W[p].element),p=n.Sa(),n={},g.T5(W.api,n),p=g.Vw(p,n),g.n1(p,W.api,S)):g.l$(S,W.api,W.S,A||void 0)&&W.api.zD(n.videoId,A,n.playlistId)}else S.preventDefault(),document.activeElement.blur()}}(J)); K.MN(W.suggestions.element);W.W.push(K);W.api.createServerVe(K.element,K)}}; OvG=function(W){if(W.api.J().Y("web_player_log_click_before_generating_ve_conversion_params"))for(var J=Math.floor(-W.scrollPosition/(W.T+8)),K=Math.min(J+W.columns,W.suggestionData.length)-1;J<=K;J++)W.api.logVisibility(W.W[J].element,!0)}; g.X4=function(W){var J=W.api.aX()?32:16;J=W.N/2+J;W.next.element.style.bottom=J+"px";W.previous.element.style.bottom=J+"px";J=W.scrollPosition;var K=W.containerWidth-W.suggestionData.length*(W.T+8);g.jN(W.element,"ytp-scroll-min",J>=0);g.jN(W.element,"ytp-scroll-max",J<=K)}; Hvp=function(W){for(var J=W.suggestionData.length,K=0;K>>0)+"_",q=0;return J}); Dy("Symbol.iterator",function(W){if(W)return W;W=Symbol("Symbol.iterator");for(var J="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),K=0;K0&&K>0;)if(I[--K]!=J[--q])return!1;return q<=0}}); Dy("Array.prototype.find",function(W){return W?W:function(J,K){return jyA(this,J,K).gA}}); Dy("Array.prototype.entries",function(W){return W?W:function(){return bD(this,function(J,K){return[J,K]})}}); Dy("Array.prototype.keys",function(W){return W?W:function(){return bD(this,function(J){return J})}}); Dy("String.prototype.startsWith",function(W){return W?W:function(J,K){var I=Ry(this,J,"startsWith");J+="";var q=I.length,S=J.length;K=Math.max(0,Math.min(K|0,I.length));for(var p=0;p=S}}); Dy("Number.isFinite",function(W){return W?W:function(J){return typeof J!=="number"?!1:!isNaN(J)&&J!==Infinity&&J!==-Infinity}}); Dy("String.prototype.repeat",function(W){return W?W:function(J){var K=Ry(this,null,"repeat");if(J<0||J>1342177279)throw new RangeError("Invalid count value");J|=0;for(var I="";J;)if(J&1&&(I+=K),J>>>=1)K+=K;return I}}); Dy("Object.entries",function(W){return W?W:function(J){var K=[],I;for(I in J)hT(J,I)&&K.push([I,J[I]]);return K}}); Dy("Array.from",function(W){return W?W:function(J,K,I){K=K!=null?K:function(n){return n}; var q=[],S=typeof Symbol!="undefined"&&Symbol.iterator&&J[Symbol.iterator];if(typeof S=="function"){J=S.call(J);for(var p=0;!(S=J.next()).done;)q.push(K.call(I,S.value,p++))}else for(S=J.length,p=0;p>>16&65535)*q+I*(K>>>16&65535)<<16>>>0)|0}}); Dy("Math.trunc",function(W){return W?W:function(J){J=Number(J);if(isNaN(J)||J===Infinity||J===-Infinity||J===0)return J;var K=Math.floor(Math.abs(J));return J<0?-K:K}}); Dy("Math.clz32",function(W){return W?W:function(J){J=Number(J)>>>0;if(J===0)return 32;var K=0;(J&4294901760)===0&&(J<<=16,K+=16);(J&4278190080)===0&&(J<<=8,K+=8);(J&4026531840)===0&&(J<<=4,K+=4);(J&3221225472)===0&&(J<<=2,K+=2);(J&2147483648)===0&&K++;return K}}); Dy("Number.isNaN",function(W){return W?W:function(J){return typeof J==="number"&&isNaN(J)}}); Dy("Array.prototype.values",function(W){return W?W:function(){return bD(this,function(J,K){return K})}}); Dy("Array.prototype.fill",function(W){return W?W:function(J,K,I){var q=this.length||0;K<0&&(K=Math.max(0,q+K));if(I==null||I>q)I=q;I=Number(I);I<0&&(I=Math.max(0,q+I));for(K=Number(K||0);K0&&K?K.repeat(Math.ceil(J/K.length)).substring(0,J):"")+I}}); Dy("Array.prototype.findIndex",function(W){return W?W:function(J,K){return jyA(this,J,K).BV}}); Dy("Promise.prototype.finally",function(W){return W?W:function(J){return this.then(function(K){return Promise.resolve(J()).then(function(){return K})},function(K){return Promise.resolve(J()).then(function(){throw K; })})}}); Dy("Math.sign",function(W){return W?W:function(J){J=Number(J);return J===0||isNaN(J)?J:J>0?1:-1}}); Dy("WeakSet",function(W){function J(K){this.W=new WeakMap;if(K){K=g.d(K);for(var I;!(I=K.next()).done;)this.add(I.value)}} if(function(){if(!W||!Object.seal)return!1;try{var K=Object.seal({}),I=Object.seal({}),q=new W([K]);if(!q.has(K)||q.has(I))return!1;q.delete(K);q.add(I);return!q.has(K)&&q.has(I)}catch(S){return!1}}())return W; J.prototype.add=function(K){this.W.set(K,!0);return this}; J.prototype.has=function(K){return this.W.has(K)}; J.prototype.delete=function(K){return this.W.delete(K)}; return J}); Dy("Array.prototype.copyWithin",function(W){function J(K){K=Number(K);return K===Infinity||K===-Infinity?K:K|0} return W?W:function(K,I,q){var S=this.length;K=J(K);I=J(I);q=q===void 0?S:J(q);K=K<0?Math.max(S+K,0):Math.min(K,S);I=I<0?Math.max(S+I,0):Math.min(I,S);q=q<0?Math.max(S+q,0):Math.min(q,S);if(KI;)--q in this?this[--K]=this[q]:delete this[--K];return this}}); Dy("Int8Array.prototype.copyWithin",r0);Dy("Uint8Array.prototype.copyWithin",r0);Dy("Uint8ClampedArray.prototype.copyWithin",r0);Dy("Int16Array.prototype.copyWithin",r0);Dy("Uint16Array.prototype.copyWithin",r0);Dy("Int32Array.prototype.copyWithin",r0);Dy("Uint32Array.prototype.copyWithin",r0);Dy("Float32Array.prototype.copyWithin",r0);Dy("Float64Array.prototype.copyWithin",r0);Dy("Array.prototype.at",function(W){return W?W:Lv}); Dy("Int8Array.prototype.at",kc);Dy("Uint8Array.prototype.at",kc);Dy("Uint8ClampedArray.prototype.at",kc);Dy("Int16Array.prototype.at",kc);Dy("Uint16Array.prototype.at",kc);Dy("Int32Array.prototype.at",kc);Dy("Uint32Array.prototype.at",kc);Dy("Float32Array.prototype.at",kc);Dy("Float64Array.prototype.at",kc);Dy("String.prototype.at",function(W){return W?W:Lv}); Dy("Array.prototype.findLastIndex",function(W){return W?W:function(J,K){return fyQ(this,J,K).BV}}); Dy("Int8Array.prototype.findLastIndex",zA);Dy("Uint8Array.prototype.findLastIndex",zA);Dy("Uint8ClampedArray.prototype.findLastIndex",zA);Dy("Int16Array.prototype.findLastIndex",zA);Dy("Uint16Array.prototype.findLastIndex",zA);Dy("Int32Array.prototype.findLastIndex",zA);Dy("Uint32Array.prototype.findLastIndex",zA);Dy("Float32Array.prototype.findLastIndex",zA);Dy("Float64Array.prototype.findLastIndex",zA);Dy("Number.parseInt",function(W){return W||parseInt});var sG,JW,hQD;sG=sG||{};g.vH=this||self;JW="closure_uid_"+(Math.random()*1E9>>>0);hQD=0;g.AW(Dp,Error);Dp.prototype.name="CustomError";var Hx0;var QyQ,Yp,ii;QyQ=Array.prototype.indexOf?function(W,J){return Array.prototype.indexOf.call(W,J,void 0)}:function(W,J){if(typeof W==="string")return typeof J!=="string"||J.length!=1?-1:W.indexOf(J,0); for(var K=0;K=0;K--)if(K in W&&W[K]===J)return K;return-1}; g.el=Array.prototype.forEach?function(W,J,K){Array.prototype.forEach.call(W,J,K)}:function(W,J,K){for(var I=W.length,q=typeof W==="string"?W.split(""):W,S=0;S=.3:this.BD>=.5};var hX={oh8:0,IyI:1},TMy={NONE:0,gg0:1,hGI:2};var RQQ="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");IG.prototype.getValue=function(){return this.K}; g.N(qs,IG);qs.prototype.G=function(W){this.K===null&&g.s$(this.T,W)&&(this.K=W)}; g.N(SS,IG);SS.prototype.G=function(W){this.K===null&&typeof W==="number"&&(this.K=W)}; g.N(lh,IG);lh.prototype.G=function(W){this.K===null&&typeof W==="string"&&(this.K=W)};nU.prototype.disable=function(){this.K=!1}; nU.prototype.enable=function(){this.K=!0}; nU.prototype.isEnabled=function(){return this.K}; nU.prototype.reset=function(){this.W={};this.K=!0;this.G={}};var Kd=document,hL=window;var rTG=PH(1,!0),wX=PH(610401301,!1);PH(899588437,!1);PH(725719775,!1);var ocl=PH(513659523,!1),LXv=PH(568333945,!1),NBL=PH(1331761403,!1);PH(651175828,!1);PH(722764542,!1);PH(748402145,!1);var zwQ=PH(1981196515,!1);PH(2147483644,!1);PH(2147483645,!1);PH(2147483646,rTG);PH(2147483647,!0);var Ms=!!g.sH("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var dX=String.prototype.trim?function(W){return W.trim()}:function(W){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(W)[1]},nry=/&/g,AWL=//g,joT=/"/g,fpT=/'/g,hLH=/\x00/g,lpc=/[\x00&<>"']/;var gX,kAv=g.vH.navigator;gX=kAv?kAv.userAgentData||null:null;var cTc=globalThis.trustedTypes,eS;bh.prototype.toString=function(){return this.W+""};rX.prototype.toString=function(){return this.W}; var WoL=new rX("about:invalid#zClosurez");var H7Q=kI("tel"),O7y=kI("sms"),XHH=[kI("data"),kI("http"),kI("https"),kI("mailto"),kI("ftp"),new LU(function(W){return/^[^:]*([/?#]|$)/.test(W)})],ix0=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;XC.prototype.toString=function(){return this.W+""};q3.prototype.toString=function(){return this.W+""};Az.prototype.toString=function(){return this.W};var j1={};g.zQo=String.prototype.repeat?function(W,J){return W.repeat(J)}:function(W,J){return Array(J+1).join(W)};M3[" "]=function(){};var BY,KT,EoI,vco,YHj,syv,M8,g8,cTr;g.G4=Ow();g.FH=LX0();g.vM=$I("Edge");g.Jg=g.vM||g.FH;BY=$I("Gecko")&&!(Ns(g.CU(),"WebKit")&&!$I("Edge"))&&!($I("Trident")||$I("MSIE"))&&!$I("Edge");g.ca=Ns(g.CU(),"WebKit")&&!$I("Edge");KT=wn();EoI=dj0();g.Wd=Nvy();vco=Qt();YHj=$I("iPad");syv=$I("iPod");M8=Cw();g8=Ns(g.CU(),"KaiOS"); a:{var PDj="",XH$=function(){var W=g.CU();if(BY)return/rv:([^\);]+)(\)|;)/.exec(W);if(g.vM)return/Edge\/([\d\.]+)/.exec(W);if(g.FH)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(W);if(g.ca)return/WebKit\/(\S+)/.exec(W);if(g.G4)return/(?:Version)[ \/]?(\S+)/.exec(W)}(); XH$&&(PDj=XH$?XH$[1]:"");if(g.FH){var WE,Woe=g.vH.document;WE=Woe?Woe.documentMode:void 0;if(WE!=null&&WE>parseFloat(PDj)){cTr=String(WE);break a}}cTr=PDj}var QoQ=cTr,UjH={};var c7,P7;g.cC=HX();c7=Qt()||$I("iPod");P7=$I("iPad");g.$K=zQX();g.ES=V$();g.dg=Ew()&&!Cw();var VeH=!g.FH&&!Ew();g.u=g.Tm.prototype;g.u.clone=function(){return new g.Tm(this.x,this.y)}; g.u.equals=function(W){return W instanceof g.Tm&&Ha(this,W)}; g.u.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.u.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.u.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.u.translate=function(W,J){W instanceof g.Tm?(this.x+=W.x,this.y+=W.y):(this.x+=Number(W),typeof J==="number"&&(this.y+=J));return this}; g.u.scale=function(W,J){this.x*=W;this.y*=typeof J==="number"?J:W;return this};g.u=g.Vt.prototype;g.u.clone=function(){return new g.Vt(this.width,this.height)}; g.u.aspectRatio=function(){return this.width/this.height}; g.u.isEmpty=function(){return!e1(this)}; g.u.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.u.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.u.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.u.scale=function(W,J){this.width*=W;this.height*=typeof J==="number"?J:W;return this};bW.prototype.toString=function(){return this.W}; var RX={};new bW(RX,"");var MlL=/^[a-z][a-z\d-]*$/i,gry="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),$jH="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),OxA=["action","formaction","href"];var VlQ={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.u=m6.prototype;g.u.v7=function(W){return Lw(this.W,W)}; g.u.getElementsByTagName=function(W,J){return(J||this.W).getElementsByTagName(String(W))}; g.u.T8=function(W){return g.Yj(W,this.W)}; g.u.setProperties=sh;g.u.createElement=function(W){return X1(this.W,W)}; g.u.appendChild=g.Ko;g.u.append=function(W,J){bxX(rn(W),W,arguments,1)}; g.u.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.u.removeNode=g.S4;g.u.getChildren=function(W){return W.children!=void 0?W.children:Array.prototype.filter.call(W.childNodes,function(J){return J.nodeType==1})}; g.u.contains=g.po;DK.prototype.now=function(){return 0}; DK.prototype.K=function(){return 0}; DK.prototype.G=function(){return 0}; DK.prototype.W=function(){return 0};g.N(fo,DK);fo.prototype.now=function(){return j4()&&hL.performance.now?hL.performance.now():DK.prototype.now.call(this)}; fo.prototype.K=function(){return j4()&&hL.performance.memory?hL.performance.memory.totalJSHeapSize||0:DK.prototype.K.call(this)}; fo.prototype.G=function(){return j4()&&hL.performance.memory?hL.performance.memory.usedJSHeapSize||0:DK.prototype.G.call(this)}; fo.prototype.W=function(){return j4()&&hL.performance.memory?hL.performance.memory.jsHeapSizeLimit||0:DK.prototype.W.call(this)};var LoX=ai(function(){var W=!1;try{var J=Object.defineProperty({},"passive",{get:function(){W=!0}}); g.vH.addEventListener("test",null,J)}catch(K){}return W});kTA.prototype.isVisible=function(){return Ut(Kd)===1};var W6v=ZK(function(W){return typeof W==="number"}),XXL=ZK(function(W){return typeof W==="string"}),iwX=ZK(function(W){return typeof W==="boolean"}),u6=ZK(function(W){return W!=null&&typeof W==="object"&&typeof W.then==="function"}),ag=ZK(function(W){return!!W&&(typeof W==="object"||typeof W==="function")});var HdD=function(){if(!g.vH.addEventListener||!Object.defineProperty)return!1;var W=!1,J=Object.defineProperty({},"passive",{get:function(){W=!0}}); try{var K=function(){}; g.vH.addEventListener("test",K,J);g.vH.removeEventListener("test",K,J)}catch(I){}return W}();var Kq0=vrX("AnimationEnd"),f1=vrX("TransitionEnd");var soA=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),KGv=/#|$/,Iny=/[?&]($|#)/;var SwL={SWW:"allow-forms",xnK:"allow-modals",j7K:"allow-orientation-lock",I4h:"allow-pointer-lock",iwh:"allow-popups",YWu:"allow-popups-to-escape-sandbox",Zw8:"allow-presentation",dnh:"allow-same-origin",B$O:"allow-scripts",Oww:"allow-top-navigation",haI:"allow-top-navigation-by-user-activation"},AXD=ai(function(){return pX0()});var hsH=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");rM.prototype.xm=function(W,J,K){W=W+"//"+J+K;var I=uCX(this)-K.length;if(I<0)return"";this.W.sort(function(D,f){return D-f}); K=null;J="";for(var q=0;q=A.length){I-=A.length;W+=A;J=this.G;break}K=K==null?S:K}}I="";K!=null&&(I=""+J+"trn="+K);return W+I};Po.prototype.setInterval=function(W,J){return hL.setInterval(W,J)}; Po.prototype.clearInterval=function(W){hL.clearInterval(W)}; Po.prototype.setTimeout=function(W,J){return hL.setTimeout(W,J)}; Po.prototype.clearTimeout=function(W){hL.clearTimeout(W)};var dx=void 0,N7,czD=typeof TextDecoder!=="undefined",Gjy,gIc=typeof String.prototype.isWellFormed==="function",MSQ=typeof TextEncoder!=="undefined";var HUT={},pr=null,VSL=BY||g.ca||typeof g.vH.btoa=="function";var kjQ=typeof Uint8Array!=="undefined",BXv=!g.FH&&typeof btoa==="function",msH=/[-_.]/g,RsD={"-":"+",_:"/",".":"="},nr={};l7.prototype.isEmpty=function(){return this.W==null}; l7.prototype.sizeBytes=function(){var W=DQ(this);return W?W.length:0}; var LGy;var zsy=void 0;var tn=typeof Symbol==="function"&&typeof Symbol()==="symbol",ixv=hn("jas",void 0,!0),Bs=hn(void 0,"1oa"),IM=hn(void 0,Symbol()),JWj=hn(void 0,"0ub"),$3D=hn(void 0,"0actk"),ix=hn("m_m","bzy",!0),QXX=hn(void 0,"vps");Math.max.apply(Math,g.w(Object.values({h1O:1,O4u:2,BVZ:4,Io8:8,XT3:16,XCh:32,Nqu:64,HAy:128,dYg:256,Hps:512,OAK:1024,bUZ:2048,FJI:4096,M18:8192})));var sGT={suu:{value:0,configurable:!0,writable:!0,enumerable:!1}},YwI=Object.defineProperties,FP=tn?ixv:"suu",wU,Kol=[];u7(Kol,7);wU=Object.freeze(Kol);var JK={},dm={},enT=Object.freeze({}),ZQ={};var wm=typeof g.vH.BigInt==="function"&&typeof g.vH.BigInt(0)==="bigint";var AK=ZK(function(W){return wm?W>=Ipo&&W<=q$r:W[0]==="-"?Jzy(W,S$e):Jzy(W,pRx)}),S$e=Number.MIN_SAFE_INTEGER.toString(),Ipo=wm?BigInt(Number.MIN_SAFE_INTEGER):void 0,pRx=Number.MAX_SAFE_INTEGER.toString(),q$r=wm?BigInt(Number.MAX_SAFE_INTEGER):void 0;var kmQ=typeof Uint8Array.prototype.slice==="function",gm=0,Gi=0,yLy;var kG=typeof BigInt==="function"?BigInt.asIntN:void 0,aFA=typeof BigInt==="function"?BigInt.asUintN:void 0,sc=Number.isSafeInteger,b7=Number.isFinite,cD=Math.trunc,paQ=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var CWT={};var lx;var fH,waX;var bwy=MQ(0);g.u=ojH.prototype;g.u.init=function(W,J,K,I){var q=I===void 0?{}:I;I=q.k9===void 0?!1:q.k9;q=q.q0===void 0?!1:q.q0;this.k9=I;this.q0=q;W&&(W=SI(W,this.q0),this.K=W.buffer,this.j=W.W,this.T=J||0,this.G=K!==void 0?this.T+K:this.K.length,this.W=this.T)}; g.u.free=function(){this.clear();hD.length<100&&hD.push(this)}; g.u.clear=function(){this.K=null;this.j=!1;this.W=this.G=this.T=0;this.k9=!1}; g.u.reset=function(){this.W=this.T}; g.u.EA=function(){var W=this.S;W||(W=this.K,W=this.S=new DataView(W.buffer,W.byteOffset,W.byteLength));return W}; var hD=[];tD.prototype.free=function(){this.W.clear();this.K=this.T=-1;F6.length<100&&F6.push(this)}; tD.prototype.reset=function(){this.W.reset();this.G=this.W.W;this.K=this.T=-1}; var F6=[];Uj.prototype.toJSON=function(){return je(this)}; Uj.prototype.PP=function(W){return JSON.stringify(je(this,W))}; Uj.prototype.clone=function(){var W=this,J=W.KE;W=new W.constructor(aM(J,J[FP]|0));NQ(W.KE);return W}; Uj.prototype[ix]=JK;Uj.prototype.toString=function(){return this.KE.toString()};var WSy,JLH;wx.prototype.length=function(){return this.W.length}; wx.prototype.end=function(){var W=this.W;this.W=[];return W};var Hi=TI(),lpr=TI(),nro=TI(),AWe=TI(),Djr=TI(),joW=TI(),fpW=TI(),hLR=TI();var DOI=Ej(function(W,J,K,I,q){if(W.K!==2)return!1;uy(W,my(J,I,K),q);return!0},ALy),jiQ=Ej(function(W,J,K,I,q){if(W.K!==2)return!1; uy(W,my(J,I,K),q);return!0},ALy),zI=Symbol(),mi=Symbol(),LW=Symbol(),uwQ=Symbol(),t4Q=Symbol(),eI,Rw;var tlp=X6(function(W,J,K){if(W.K!==1)return!1;ij(J,K,jI(W.W));return!0},JZ,fpW),Fo0=X6(function(W,J,K){if(W.K!==1)return!1; W=jI(W.W);ij(J,K,W===0?void 0:W);return!0},JZ,fpW),ap0=X6(function(W,J,K,I){if(W.K!==1)return!1; RM(J,K,I,jI(W.W));return!0},JZ,fpW),ueo=X6(function(W,J,K){if(W.K!==0)return!1; ij(J,K,ly(W.W));return!0},Kj,Djr),Nvp=X6(function(W,J,K){if(W.K!==0)return!1; W=ly(W.W);ij(J,K,W===0?void 0:W);return!0},Kj,Djr),djv=X6(function(W,J,K,I){if(W.K!==0)return!1; RM(J,K,I,ly(W.W));return!0},Kj,Djr),yWL=X6(function(W,J,K){if(W.K!==0)return!1; ij(J,K,nW(W.W));return!0},IF,AWe),Uj$=X6(function(W,J,K){if(W.K!==0)return!1; W=nW(W.W);ij(J,K,W===0?void 0:W);return!0},IF,AWe),ZxG=X6(function(W,J,K,I){if(W.K!==0)return!1; RM(J,K,I,nW(W.W));return!0},IF,AWe),QoL=X6(function(W,J,K){if(W.K!==1)return!1; ij(J,K,D9(W.W));return!0},function(W,J,K){lK0(W,K,u10(J))},joW),C00=WY(function(W,J,K){if(W.K!==1&&W.K!==2)return!1; J=TF(J,J[FP]|0,K);if(W.K==2)for(K=nW(W.W)>>>0,K=W.W.W+K;W.W.W>>0);return!0},function(W,J,K){J=oB(J); J!=null&&J!=null&&(xJ(W,K,0),gx(W.W,J))},TI()),OxT=X6(function(W,J,K){if(W.K!==0)return!1; ij(J,K,nW(W.W));return!0},function(W,J,K){J=rm(J); J!=null&&(J=parseInt(J,10),xJ(W,K,0),IKc(W.W,J))},TI());wo0.prototype.register=function(){M3(this)};g.N(lj,Uj);lj.prototype.K=M4X([0,Fo0,Nvp,-2,Uj$]);var HoX={Fag:1,Y6:2,E0W:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};EpQ.prototype.g9=function(W){if(typeof W==="string"&&W.length!=0){var J=this.jn;if(J.K){W=W.split("&");for(var K=W.length-1;K>=0;K--){var I=W[K].split("="),q=decodeURIComponent(I[0]);I.length>1?(I=decodeURIComponent(I[1]),I=/^[0-9]+$/g.exec(I)?parseInt(I,10):I):I=1;(q=J.W[q])&&q.G(I)}}}};var SD=null;var hZ=g.vH.performance,Tv0=!!(hZ&&hZ.mark&&hZ.measure&&hZ.clearMarks),jW=ai(function(){var W;if(W=Tv0){var J=J===void 0?window:J;if(SD===null){SD="";try{W="";try{W=J.top.location.hash}catch(I){W=J.location.hash}if(W){var K=W.match(/\bdeid=([\d,]+)/);SD=K?K[1]:""}}catch(I){}}J=SD;W=!!J.indexOf&&J.indexOf("1337")>=0}return W}); fj.prototype.disable=function(){this.W=!1;this.events!==this.K.google_js_reporting_queue&&(jW()&&g.el(this.events,rLH),this.events.length=0)}; fj.prototype.start=function(W,J){if(!this.W)return null;var K=BMH()||boL();W=new mOv(W,J,K);J="goog_"+W.label+"_"+W.uniqueId+"_start";hZ&&jW()&&hZ.mark(J);return W}; fj.prototype.end=function(W){if(this.W&&typeof W.value==="number"){var J=BMH()||boL();W.duration=J-W.value;J="goog_"+W.label+"_"+W.uniqueId+"_end";hZ&&jW()&&hZ.mark(J);!this.W||this.events.length>2048||this.events.push(W)}};opQ.prototype.mQ=function(W,J,K,I,q){q=q||this.rM;try{var S=new rM;S.W.push(1);S.K[1]=oi("context",W);J.error&&J.meta&&J.id||(J=new uj(N5(J)));if(J.msg){var p=J.msg.substring(0,512);S.W.push(2);S.K[2]=oi("msg",p)}var n=J.meta||{};if(this.Mp)try{this.Mp(n)}catch(F){}if(I)try{I(n)}catch(F){}I=[n];S.W.push(3);S.K[3]=I;var A=FGD();if(A.K){var D=A.K.url||"";S.W.push(4);S.K[4]=oi("top",D)}var f={url:A.W.url||""};if(A.W.url){var h=g.MO(A.W.url);var t=Co(h[1],null,h[3],h[4])}else t="";D=[f,{url:t}];S.W.push(5); S.K[5]=D;edX(this.W,q,S,K)}catch(F){try{edX(this.W,q,{context:"ecmserr",rctx:W,msg:N5(F),url:A&&A.W.url},K)}catch(a){}}return this.vX}; g.N(uj,RdA);var FU,aF,tZ=new fj;FU=new function(){var W="https:";hL&&hL.location&&hL.location.protocol==="http:"&&(W="http:");this.K=W;this.W=.01}; aF=new opQ;hL&&hL.document&&(hL.document.readyState=="complete"?kCD():tZ.W&&yw(hL,"load",function(){kCD()}));var Yt0=Date.now(),wI=-1,QT=-1,ADy,M5=-1,Cj=!1;g.u=gI.prototype;g.u.getHeight=function(){return this.bottom-this.top}; g.u.clone=function(){return new gI(this.top,this.right,this.bottom,this.left)}; g.u.contains=function(W){return this&&W?W instanceof gI?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.u.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.u.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.u.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.u.translate=function(W,J){W instanceof g.Tm?(this.left+=W.x,this.right+=W.x,this.top+=W.y,this.bottom+=W.y):(this.left+=W,this.right+=W,typeof J==="number"&&(this.top+=J,this.bottom+=J));return this}; g.u.scale=function(W,J){J=typeof J==="number"?J:W;this.left*=W;this.right*=W;this.top*=J;this.bottom*=J;return this};xE.prototype.equals=function(W,J){return!!W&&(!(J===void 0?0:J)||this.volume==W.volume)&&this.G==W.G&&$E(this.W,W.W)&&!0};O5.prototype.v7=function(){return this.Z}; O5.prototype.equals=function(W,J){return this.T.equals(W.T,J===void 0?!1:J)&&this.Z==W.Z&&$E(this.G,W.G)&&$E(this.S,W.S)&&this.W==W.W&&this.j==W.j&&this.K==W.K&&this.N==W.N};var Hxv={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},iF={vJ:"start",DT:"firstquartile",f6:"midpoint",cJ:"thirdquartile",COMPLETE:"complete",ERROR:"error",C6:"metric",PAUSE:"pause",TI:"resume",VF:"skip",I2:"viewable_impression",WJ:"mute",x6:"unmute",NL:"fullscreen",w6:"exitfullscreen",IF:"bufferstart",j4:"bufferfinish",r6:"fully_viewable_audible_half_duration_impression",eR:"measurable_impression",T0:"abandon",O6:"engagedview",oF:"impression",ZT:"creativeview",Ug:"loaded", qQK:"progress",CLOSE:"close",wYS:"collapse",O_w:"overlay_resize",hls:"overlay_unmeasurable_impression",wCs:"overlay_unviewable_impression",N8S:"overlay_viewable_immediate_impression",Dgu:"overlay_viewable_end_of_session_impression",d6:"custom_metric_viewable",v_:"audio_audible",aF:"audio_measurable",c_:"audio_impression"},yZL="start firstquartile midpoint thirdquartile resume loaded".split(" "),U5H=["start","firstquartile","midpoint","thirdquartile"],jwQ=["abandon"],UV={UNKNOWN:-1,vJ:0,DT:1,f6:2, cJ:3,COMPLETE:4,C6:5,PAUSE:6,TI:7,VF:8,I2:9,WJ:10,x6:11,NL:12,w6:13,r6:14,eR:15,T0:16,O6:17,oF:18,ZT:19,Ug:20,d6:21,IF:22,j4:23,c_:27,aF:28,v_:29};var cLI={GJN:"addEventListener",DYw:"getMaxSize",NCy:"getScreenSize",rOW:"getState",mYI:"getVersion",W4Z:"removeEventListener",w4w:"isViewable"};g.u=g.E5.prototype;g.u.clone=function(){return new g.E5(this.left,this.top,this.width,this.height)}; g.u.contains=function(W){return W instanceof g.Tm?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.u.getSize=function(){return new g.Vt(this.width,this.height)}; g.u.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.u.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.u.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.u.translate=function(W,J){W instanceof g.Tm?(this.left+=W.x,this.top+=W.y):(this.left+=W,typeof J==="number"&&(this.top+=J));return this}; g.u.scale=function(W,J){J=typeof J==="number"?J:W;this.left*=W;this.width*=W;this.top*=J;this.height*=J;return this};var irQ={};AnQ.prototype.update=function(W){W&&W.document&&(this.Z=TB(!1,W,this.isMobileDevice),this.W=TB(!0,W,this.isMobileDevice),jBT(this,W),DQQ(this,W))};qt.prototype.cancel=function(){Xw().clearTimeout(this.W);this.W=null}; qt.prototype.schedule=function(){var W=this,J=Xw(),K=AZ().W.W;this.W=J.setTimeout(nj(K,yT(143,function(){W.K++;W.G.sample()})),si0())};g.u=SR.prototype;g.u.OL=function(){return!1}; g.u.initialize=function(){return this.isInitialized=!0}; g.u.l4=function(){return this.W.vS}; g.u.UE=function(){return this.W.PS}; g.u.kG=function(W,J){if(!this.PS||(J===void 0?0:J))this.PS=!0,this.vS=W,this.N=0,this.W!=this||li(this)}; g.u.getName=function(){return this.W.Y3}; g.u.AV=function(){return this.W.P5()}; g.u.P5=function(){return{}}; g.u.Uz=function(){return this.W.N}; g.u.G3=function(){var W=JE();W.W=TB(!0,this.G,W.isMobileDevice)}; g.u.QG=function(){DQQ(JE(),this.G)}; g.u.jp=function(){return this.T.W}; g.u.sample=function(){}; g.u.isActive=function(){return this.W.S}; g.u.xj=function(W){var J=this.W;this.W=W.Uz()>=this.N?W:this;J!==this.W?(this.S=this.W.S,li(this)):this.S!==this.W.S&&(this.S=this.W.S,li(this))}; g.u.U_=function(W){if(W.K===this.W){var J=!this.T.equals(W,this.C);this.T=W;J&&tB0(this)}}; g.u.Lg=function(){return this.C}; g.u.dispose=function(){this.XW=!0}; g.u.Iu=function(){return this.XW};g.u=nd.prototype;g.u.observe=function(){return!0}; g.u.unobserve=function(){}; g.u.ID=function(W){this.j=W}; g.u.dispose=function(){if(!this.Iu()){var W=this.K;g.Nj(W.j,this);W.C&&this.Lg()&&h2X(W);this.unobserve();this.G8=!0}}; g.u.Iu=function(){return this.G8}; g.u.AV=function(){return this.K.AV()}; g.u.Uz=function(){return this.K.Uz()}; g.u.l4=function(){return this.K.l4()}; g.u.UE=function(){return this.K.UE()}; g.u.xj=function(){}; g.u.U_=function(){this.XK()}; g.u.Lg=function(){return this.XW};g.u=AE.prototype;g.u.Uz=function(){return this.W.Uz()}; g.u.l4=function(){return this.W.l4()}; g.u.UE=function(){return this.W.UE()}; g.u.create=function(W,J,K){var I=null;this.W&&(I=this.QY(W,J,K),pd(this.W,I));return I}; g.u.T3=function(){return this.hN()}; g.u.hN=function(){return!1}; g.u.init=function(W){return this.W.initialize()?(pd(this.W,this),this.T=W,!0):!1}; g.u.xj=function(W){W.Uz()==0&&this.T(W.l4(),this)}; g.u.U_=function(){}; g.u.Lg=function(){return!1}; g.u.dispose=function(){this.j=!0}; g.u.Iu=function(){return this.j}; g.u.AV=function(){return{}};DC.prototype.add=function(W,J,K){++this.G;W=new aQX(W,J,K);this.W.push(new aQX(W.K,W.W,W.G+this.G/4096));this.K=!0;return this};dFQ.prototype.toString=function(){var W="//pagead2.googlesyndication.com//pagead/gen_204",J=fd(this.W);J.length>0&&(W+="?"+J);return W};g.R.prototype.aY=!1;g.R.prototype.Iu=function(){return this.aY}; g.R.prototype.dispose=function(){this.aY||(this.aY=!0,this.lO())}; g.R.prototype[Symbol.dispose]=function(){this.dispose()}; g.R.prototype.addOnDisposeCallback=function(W,J){this.aY?J!==void 0?W.call(J):W():(this.Ir||(this.Ir=[]),J&&(W=W.bind(J)),this.Ir.push(W))}; g.R.prototype.lO=function(){if(this.Ir)for(;this.Ir.length;)this.Ir.shift()()};Fx.prototype.update=function(W,J,K){W&&(this.W+=J,this.K+=J,this.T+=J,this.G=Math.max(this.G,this.T));if(K===void 0?!W:K)this.T=0};var CxQ=[1,.75,.5,.3,0];aN.prototype.update=function(W,J,K,I,q,S){S=S===void 0?!0:S;J=q?Math.min(W,J):J;for(q=0;q0&&J>=p;p=!(W>0&&W>=p)||K;this.W[q].update(S&&n,I,!S||p)}};ZC.prototype.update=function(W,J,K,I){this.Z=this.Z!=-1?Math.min(this.Z,J.BD):J.BD;this.sI=Math.max(this.sI,J.BD);this.G8=this.G8!=-1?Math.min(this.G8,J.kR):J.kR;this.vS=Math.max(this.vS,J.kR);this.eZ.update(J.kR,K.kR,J.W,W,I);this.SZ+=W;J.BD===0&&(this.Y3+=W);this.K.update(J.BD,K.BD,J.W,W,I);K=I||K.s4!=J.s4?K.isVisible()&&J.isVisible():K.isVisible();J=!J.isVisible()||J.W;this.D0.update(K,W,J)}; ZC.prototype.QS=function(){return this.D0.G>=this.Js};if(Kd&&Kd.URL){var Vll=Kd.URL,ErW;if(ErW=!!Vll){var eLe;a:{if(Vll){var RLx=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var pf=RLx.exec(decodeURIComponent(Vll));if(pf){eLe=pf[1]&&pf[1].length>1?pf[1].substring(1):"true";break a}}catch(W){}}eLe=""}ErW=eLe.length>0}aF.vX=!ErW};var bxo=new gI(0,0,0,0);var TUQ=new gI(0,0,0,0);g.N(GN,g.R);g.u=GN.prototype; g.u.lO=function(){if(this.Ed.W){if(this.jf.J$){var W=this.Ed.W;typeof W.removeEventListener==="function"&&W.removeEventListener("mouseover",this.jf.J$,dM());this.jf.J$=null}this.jf.bf&&(W=this.Ed.W,typeof W.removeEventListener==="function"&&W.removeEventListener("mouseout",this.jf.bf,dM()),this.jf.bf=null)}this.jr&&this.jr.dispose();this.rb&&this.rb.dispose();delete this.V1;delete this.ox;delete this.HB;delete this.Ed.MQ;delete this.Ed.W;delete this.jf;delete this.jr;delete this.rb;delete this.jn; g.R.prototype.lO.call(this)}; g.u.pm=function(){return this.rb?this.rb.W:this.position}; g.u.g9=function(W){AZ().g9(W)}; g.u.Lg=function(){return!1}; g.u.E5=function(){return new ZC}; g.u.cY=function(){return this.V1}; g.u.Gp=function(W){return euc(this,W,1E4)}; g.u.hs=function(W,J,K,I,q,S,p){this.Wi||(this.us&&(W=this.BH(W,K,q,p),I=I&&this.VX.BD>=(this.s4()?.3:.5),this.z2(S,W,I),this.aM=J,W.BD>0&&-1===this.cB&&(this.cB=J),this.iB==-1&&this.QS()&&(this.iB=J),this.wZ==-2&&(this.wZ=w3(this.pm())?W.BD:-1),this.VX=W),this.ox(this))}; g.u.z2=function(W,J,K){this.cY().update(W,J,this.VX,K)}; g.u.Vp=function(){return new b0}; g.u.BH=function(W,J,K,I){K=this.Vp();K.W=J;J=Xw().K;J=Ut(Kd)===0?-1:J.isVisible()?0:1;K.K=J;K.BD=this.LZ(W);K.s4=this.s4();K.kR=I;return K}; g.u.LZ=function(W){return this.opacity===0&&jS(this.jn,"opac")===1?0:W}; g.u.s4=function(){return!1}; g.u.Zp=function(){return this.TwN||this.MZ0}; g.u.oV=function(){Zw()}; g.u.S$=function(){Zw()}; g.u.fB=function(){return 0}; g.u.QS=function(){return this.V1.QS()}; g.u.Yw=function(){var W=this.us;W=(this.hasCompleted||this.Iu())&&!W;var J=AZ().K!==2||this.iQ3;return this.Wi||J&&W?2:this.QS()?4:3}; g.u.Fk=function(){return 0};g.x8.prototype.next=function(){return g.lO}; g.lO={done:!0,value:void 0};g.x8.prototype.PC=function(){return this};g.N(oPQ,b0);var nf=kFH([void 0,1,2,3,4,8,16]),A2=kFH([void 0,4,8,16]),Bvx={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:V7("p0",A2),p1:V7("p1",A2),p2:V7("p2",A2),p3:V7("p3",A2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:HZ("mtos1",[0,2,4],!1,A2),mtos2:HZ("mtos2",[0,2,4],!1,A2),mtos3:HZ("mtos3",[0,2,4],!1,A2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:V7("a0",A2),a1:V7("a1",A2),a2:V7("a2",A2),a3:V7("a3",A2),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:V7("c0",A2),c1:V7("c1",A2),c2:V7("c2",A2),c3:V7("c3",A2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:V7("qmtos",nf),qnc:V7("qnc",nf),qmv:V7("qmv",nf),qnv:V7("qnv",nf), 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:V7("ss0",A2),ss1:V7("ss1",A2),ss2:V7("ss2",A2),ss3:V7("ss3",A2),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"},mjx=Object.assign({},Bvx,{avid:tL("audio"),avas:"avas",vs:"vs"}),rWo={atos:"atos",avt:HZ("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(W,J){return function(K){return K[W]===void 0&&J!==void 0?J:K[W]}}("ss",0), t:"t"};bi.prototype.getValue=function(){return this.K}; bi.prototype.update=function(W,J){W>=32||(this.W&1<=.5;WZ(J.volume)&&(this.T=this.T!=-1?Math.min(this.T,J.volume):J.volume,this.S=Math.max(this.S,J.volume));S&&(this.XW+=W,this.C+=q?W:0);this.W.update(J.BD,K.BD,J.W,W,I,q);this.G.update(!0,W);this.j.update(q,W);this.PS.update(K.fullscreen,W);this.P7.update(q&&!S,W);W=Math.floor(J.mediaTime/1E3);this.jZ.update(W,J.isVisible());this.bO.update(W,J.BD>=1);this.FW.update(W, TN(J))}};PxX.prototype.K=function(W){this.G||(this.W(W)?(W=nEH(this.C,this.T,W),this.j|=W,W=W==0):W=!1,this.G=W)};g.N(r3,PxX);r3.prototype.W=function(){return!0}; r3.prototype.S=function(){return!1}; r3.prototype.getId=function(){var W=this,J=cR(iF,function(K){return K==W.T}); return UV[J].toString()}; r3.prototype.toString=function(){var W="";this.S()&&(W+="c");this.G&&(W+="s");this.j>0&&(W+=":"+this.j);return this.getId()+W};g.N(oN,r3);oN.prototype.K=function(W,J){J=J===void 0?null:J;J!=null&&this.Z.push(J);r3.prototype.K.call(this,W)};g.N(k8,XsI);k8.prototype.K=function(){return null}; k8.prototype.G=function(){return[]};g.N(zN,nd);g.u=zN.prototype;g.u.wT=function(){if(this.element){var W=this.element,J=this.K.W.G;try{try{var K=pDQ(W.getBoundingClientRect())}catch(D){K=new gI(0,0,0,0)}var I=K.right-K.left,q=K.bottom-K.top,S=IQy(W,J),p=S.x,n=S.y;var A=new gI(Math.round(n),Math.round(p+I),Math.round(n+q),Math.round(p))}catch(D){A=bxo.clone()}this.G=A;this.W=FhI(this,this.G)}}; g.u.zE=function(){this.S=this.K.T.W}; g.u.I8=function(W){var J=jS(this.jn,"od")==1;return OHH(W,this.S,this.element,J)}; g.u.Uf=function(){this.timestamp=Zw()}; g.u.XK=function(){this.Uf();this.wT();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var W=this.element;var J=new g.Vt(W.videoWidth,W.videoHeight);W=this.W;var K=GB(W),I=W.getHeight(),q=J.width;J=J.height;q<=0||J<=0||K<=0||I<=0||(q/=J,J=K/I,W=W.clone(),q>J?(K/=q,I=(I-K)/2,I>0&&(I=W.top+I,W.top=Math.round(I),W.bottom=Math.round(I+K))):(I*=q,K=Math.round((K-I)/2),K>0&&(K=W.left+K,W.left=Math.round(K),W.right=Math.round(K+I))));this.W=W}this.zE(); W=this.W;K=this.S;W=W.left<=K.right&&K.left<=W.right&&W.top<=K.bottom&&K.top<=W.bottom?new gI(Math.max(W.top,K.top),Math.min(W.right,K.right),Math.min(W.bottom,K.bottom),Math.max(W.left,K.left)):new gI(0,0,0,0);K=W.top>=W.bottom||W.left>=W.right?new gI(0,0,0,0):W;W=this.K.T;J=q=I=0;if((this.W.bottom-this.W.top)*(this.W.right-this.W.left)>0)if(this.I8(K))K=new gI(0,0,0,0);else{I=JE().T;J=new gI(0,I.height,I.width,0);var S;I=g3(K,(S=this.j)!=null?S:this.W);q=g3(K,JE().W);J=g3(K,J)}S=K.top>=K.bottom|| K.left>=K.right?new gI(0,0,0,0):K.translate(-this.W.left,-this.W.top);IN()||(q=I=0);this.C=new O5(W,this.element,this.W,S,I,q,this.timestamp,J)}; g.u.getName=function(){return this.K.getName()};var orv=new gI(0,0,0,0);g.N(vZ,zN);g.u=vZ.prototype;g.u.observe=function(){this.T();return!0}; g.u.U_=function(){zN.prototype.XK.call(this)}; g.u.Uf=function(){}; g.u.wT=function(){}; g.u.XK=function(){this.T();zN.prototype.XK.call(this)}; g.u.xj=function(W){W=W.isActive();W!==this.N&&(W?this.T():(JE().W=new gI(0,0,0,0),this.W=new gI(0,0,0,0),this.S=new gI(0,0,0,0),this.timestamp=-1));this.N=W};var Dc={},nJT=(Dc.firstquartile=0,Dc.midpoint=1,Dc.thirdquartile=2,Dc.complete=3,Dc);g.N(si,GN);g.u=si.prototype;g.u.Lg=function(){return!0}; g.u.Lp=function(){return this.dC==2}; g.u.Gp=function(W){return euc(this,W,Math.max(1E4,this.G/3))}; g.u.hs=function(W,J,K,I,q,S,p){var n=this,A=this.Z(this)||{};g.KU(A,q);this.G=A.duration||this.G;this.C=A.isVpaid||this.C;this.Y3=A.isYouTube||this.Y3;Xw();this.eZ=!1;q=iWX(this,J);WiH(this)===1&&(S=q);GN.prototype.hs.call(this,W,J,K,I,A,S,p);this.Xr&&this.Xr.G&&g.el(this.S,function(D){D.K(n)})}; g.u.z2=function(W,J,K){GN.prototype.z2.call(this,W,J,K);Xx(this).update(W,J,this.VX,K);this.Js=TN(this.VX)&&TN(J);this.vS==-1&&this.bO&&(this.vS=this.cY().G.W);this.Hw.G=0;W=this.QS();J.isVisible()&&RN(this.Hw,"vs");W&&RN(this.Hw,"vw");WZ(J.volume)&&RN(this.Hw,"am");TN(J)?RN(this.Hw,"a"):RN(this.Hw,"mut");this.rp&&RN(this.Hw,"f");J.K!=-1&&(RN(this.Hw,"bm"),J.K==1&&(RN(this.Hw,"b"),TN(J)&&RN(this.Hw,"umutb")));TN(J)&&J.isVisible()&&RN(this.Hw,"avs");this.Js&&W&&RN(this.Hw,"avw");J.BD>0&&RN(this.Hw, "pv");W6(this,this.cY().G.W,!0)&&RN(this.Hw,"gdr");y7(this.cY().K,1)>=2E3&&RN(this.Hw,"pmx");this.eZ&&RN(this.Hw,"tvoff")}; g.u.E5=function(){return new BZ}; g.u.cY=function(){return this.V1}; g.u.Vp=function(){return new oPQ}; g.u.BH=function(W,J,K,I){W=GN.prototype.BH.call(this,W,J,K,I===void 0?-1:I);W.fullscreen=this.rp;W.paused=this.Lp();W.volume=K.volume;WZ(W.volume)||(this.sT++,J=this.VX,WZ(J.volume)&&(W.volume=J.volume));K=K.currentTime;W.mediaTime=K!==void 0&&K>=0?K:-1;return W}; g.u.LZ=function(W){return JE(),this.rp?1:GN.prototype.LZ.call(this,W)}; g.u.fB=function(){return 1}; g.u.getDuration=function(){return this.G}; g.u.Yw=function(){return this.Wi?2:KiQ(this)?5:this.QS()?4:3}; g.u.Fk=function(){return this.P7?this.cY().j.G>=2E3?4:3:2}; g.u.ID=function(W){this.rb&&this.rb.ID(W)};var Loo=g.px();d7D.prototype.reset=function(){this.W=[];this.K=[]}; var Sn=co(d7D);g.N(A9,AE);g.u=A9.prototype;g.u.getName=function(){return(this.K?this.K:this.W).getName()}; g.u.AV=function(){return(this.K?this.K:this.W).AV()}; g.u.Uz=function(){return(this.K?this.K:this.W).Uz()}; g.u.init=function(W){var J=!1;(0,g.el)(this.G,function(K){K.initialize()&&(J=!0)}); J&&(this.T=W,pd(this.W,this));return J}; g.u.dispose=function(){(0,g.el)(this.G,function(W){W.dispose()}); AE.prototype.dispose.call(this)}; g.u.T3=function(){return ii(this.G,function(W){return W.OL()})}; g.u.hN=function(){return ii(this.G,function(W){return W.OL()})}; g.u.QY=function(W,J,K){return new zN(W,this.W,J,K)}; g.u.U_=function(W){this.K=W.K};var GIy={threshold:[0,.3,.5,.75,1]};g.N(Dk,zN);g.u=Dk.prototype;g.u.observe=function(){var W=this;this.sI||(this.sI=Zw());if(vpQ(298,function(){return $7I(W)}))return!0; this.K.kG("msf");return!1}; g.u.unobserve=function(){if(this.T&&this.element)try{this.T.unobserve(this.element),this.N?(this.N.unobserve(this.element),this.N=null):this.Z&&(this.Z.disconnect(),this.Z=null)}catch(W){}}; g.u.XK=function(){var W=jn(this);W.length>0&&fZ(this,W);zN.prototype.XK.call(this)}; g.u.wT=function(){}; g.u.I8=function(){return!1}; g.u.zE=function(){}; g.u.AV=function(){var W={};return Object.assign(this.K.AV(),(W.niot_obs=this.sI,W.niot_cbk=this.PS,W))}; g.u.getName=function(){return"nio"};g.N(h9,AE);h9.prototype.getName=function(){return"nio"}; h9.prototype.hN=function(){return!JE().K&&this.W.W.G.IntersectionObserver!=null}; h9.prototype.QY=function(W,J,K){return new Dk(W,this.W,J,K)};g.N(t9,SR);t9.prototype.jp=function(){return JE().W}; t9.prototype.OL=function(){var W=OWv();this.N!==W&&(this.W!=this&&W>this.W.N&&(this.W=this,li(this)),this.N=W);return W==2};F$.prototype.sample=function(){NR(this,pZ(),!1)}; F$.prototype.T=function(){var W=IN(),J=Zw();W?(Cj||(wI=J,g.el(Sn.W,function(K){var I=K.cY();I.OI=mw(I,J,K.dC!=1)})),Cj=!0):(this.Z=ejH(this,J),Cj=!1,ADy=J,g.el(Sn.W,function(K){K.us&&(K.cY().N=J)})); NR(this,pZ(),!W)}; var a6=co(F$);var bWH=null,ry="",m_=!1;var rDH=m7y().yH,yl=m7y().k7;var kIv={iAI:"visible",CDw:"audible",J2I:"time",nDK:"timetype"},zjy={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)}}; LiQ.prototype.setTime=function(W,J,K){J=="ms"?(this.G=W,this.T=-1):(this.G=-1,this.T=W);this.j=K===void 0?"tos":K;return this};g.N(CZ,r3);CZ.prototype.getId=function(){return this.Z}; CZ.prototype.S=function(){return!0}; CZ.prototype.W=function(W){var J=W.cY(),K=W.getDuration();return ii(this.N,function(I){if(I.W!=void 0)var q=YjH(I,J);else b:{switch(I.j){case "mtos":q=I.K?J.j.G:J.G.W;break b;case "tos":q=I.K?J.j.W:J.G.W;break b}q=0}q==0?I=!1:(I=I.G!=-1?I.G:K!==void 0&&K>0?I.T*K:-1,I=I!=-1&&q>=I);return I})};g.N(wy,vPQ);wy.prototype.W=function(W){var J=new zuD;J.W=eR(W,Bvx);J.K=eR(W,rWo);return J};g.N(MR,r3);MR.prototype.W=function(W){return KiQ(W)};g.N(gy,XsI);g.N(Gd,r3);Gd.prototype.W=function(W){return W.cY().QS()};g.N($v,oN);$v.prototype.W=function(W){var J=g.ao(this.Z,jS(AZ().jn,"ovms"));return!W.Wi&&(W.dC!=0||J)};g.N(xv,gy);xv.prototype.K=function(){return new $v(this.W)}; xv.prototype.G=function(){return[new Gd("viewable_impression",this.W),new MR(this.W)]};g.N(OV,vZ);OV.prototype.T=function(){var W=g.sH("ima.admob.getViewability"),J=jS(this.jn,"queryid");typeof W==="function"&&J&&W(J)}; OV.prototype.getName=function(){return"gsv"};g.N(Td,AE);Td.prototype.getName=function(){return"gsv"}; Td.prototype.hN=function(){var W=JE();AZ();return W.K&&!1}; Td.prototype.QY=function(W,J,K){return new OV(this.W,J,K)};g.N(H6,vZ);H6.prototype.T=function(){var W=this,J=g.sH("ima.bridge.getNativeViewability"),K=jS(this.jn,"queryid");typeof J==="function"&&K&&J(K,function(I){g.PR(I)&&W.Z++;var q=I.opt_nativeViewVisibleBounds||{},S=I.opt_nativeViewHidden;W.W=lQL(I.opt_nativeViewBounds||{});var p=W.K.T;p.W=S?orv.clone():lQL(q);W.timestamp=I.opt_nativeTime||-1;JE().W=p.W;I=I.opt_nativeVolume;I!==void 0&&(p.volume=I)})}; H6.prototype.getName=function(){return"nis"};g.N(Vl,AE);Vl.prototype.getName=function(){return"nis"}; Vl.prototype.hN=function(){var W=JE();AZ();return W.K&&!1}; Vl.prototype.QY=function(W,J,K){return new H6(this.W,J,K)};g.N(EV,SR);g.u=EV.prototype;g.u.OL=function(){return this.K.Cp!=null}; g.u.P5=function(){var W={};this.jZ&&(W.mraid=this.jZ);this.G8&&(W.mlc=1);W.mtop=this.K.bch;this.Z&&(W.mse=this.Z);this.SZ&&(W.msc=1);W.mcp=this.K.compatibility;return W}; g.u.e_=function(W){var J=g.EH.apply(1,arguments);try{return this.K.Cp[W].apply(this.K.Cp,J)}catch(K){U5(538,K,.01,function(I){I.method=W})}}; g.u.initialize=function(){var W=this;if(this.isInitialized)return!this.UE();this.isInitialized=!0;if(this.K.compatibility===2)return this.Z="ng",this.kG("w"),!1;if(this.K.compatibility===1)return this.Z="mm",this.kG("w"),!1;JE().N=!0;this.G.document.readyState&&this.G.document.readyState=="complete"?XiT(this):Cd(this.G,"load",function(){Xw().setTimeout(yT(292,function(){return XiT(W)}),100)},292); return!0}; g.u.G3=function(){var W=JE(),J=IwD(this,"getMaxSize");W.W=new gI(0,J.width,J.height,0)}; g.u.QG=function(){JE().T=IwD(this,"getScreenSize")}; g.u.dispose=function(){ijy(this);SR.prototype.dispose.call(this)};var xOT=new function(W,J){this.key=W;this.defaultValue=J===void 0?!1:J;this.valueType="boolean"}("45378663");g.u=R6.prototype;g.u.aL=function(W){$8(W,!1);QwI(W)}; g.u.aP=function(){}; g.u.m_=function(W,J,K,I){var q=this;W=new si(hL,W,K?J:-1,7,this.KJ(),this.c6());W.e3=I;bvQ(W.jn);Dn(W.jn,"queryid",W.e3);W.g9("");BU0(W,function(){return q.Dm.apply(q,g.w(g.EH.apply(0,arguments)))},function(){return q.o$.apply(q,g.w(g.EH.apply(0,arguments)))}); (I=co(lF).W)&&EPy(W,I);this.G&&(W.ID(this.G),this.G=null);W.Ed.MQ&&co(Txv);return W}; g.u.xj=function(W){switch(W.Uz()){case 0:if(W=co(lF).W)W=W.W,g.Nj(W.j,this),W.C&&this.Lg()&&h2X(W);B6();break;case 2:uF()}}; g.u.U_=function(){}; g.u.Lg=function(){return!1}; g.u.o$=function(W,J){W.Wi=!0;switch(W.fB()){case 1:AZH(W,J);break;case 2:this.jo(W)}}; g.u.qc=function(W){var J=W.Z(W);J&&(J=J.volume,W.P7=WZ(J)&&J>0);SjQ(W,0);return J9(W,"start",IN())}; g.u.mD=function(W,J,K){NR(a6,[W],!IN());return this.RM(W,J,K)}; g.u.RM=function(W,J,K){return J9(W,K,IN())}; g.u.Hz=function(W){return c6(W,"firstquartile",1)}; g.u.bP=function(W){W.bO=!0;return c6(W,"midpoint",2)}; g.u.Lf=function(W){return c6(W,"thirdquartile",3)}; g.u.tM=function(W){var J=c6(W,"complete",4);cZ(W);return J}; g.u.AM=function(W){W.dC=3;return J9(W,"error",IN())}; g.u.cA=function(W,J,K){J=IN();if(W.Lp()&&!J){var I=W.cY(),q=Zw();I.N=q}NR(a6,[W],!J);W.Lp()&&(W.dC=1);return J9(W,K,J)}; g.u.nf=function(W,J){J=this.mD(W,J||{},"skip");cZ(W);return J}; g.u.Ff=function(W,J){$8(W,!0);return this.mD(W,J||{},"fullscreen")}; g.u.kq=function(W,J){$8(W,!1);return this.mD(W,J||{},"exitfullscreen")}; g.u.Ui=function(W,J,K){J=W.cY();var I=Zw();J.OI=mw(J,I,W.dC!=1);NR(a6,[W],!IN());W.dC==1&&(W.dC=2);return J9(W,K,IN())}; g.u.JM=function(W){NR(a6,[W],!IN());return W.K()}; g.u.pD=function(W){NR(a6,[W],!IN());this.gt(W);cZ(W);return W.K()}; g.u.Dm=function(){}; g.u.jo=function(){}; g.u.gt=function(){}; g.u.VG=function(){}; g.u.lm=function(){}; g.u.c6=function(){this.W||(this.W=this.lm());return this.W==null?new k8:new xv(this.W)}; g.u.KJ=function(){return new wy};g.N(P6,r3);P6.prototype.W=function(W){return W.Fk()==4};g.N(X$,oN);X$.prototype.W=function(W){W=W.Fk();return W==3||W==4};g.N(W4,gy);W4.prototype.K=function(){return new X$(this.W)}; W4.prototype.G=function(){return[new P6(this.W)]};g.N(iR,vPQ);iR.prototype.W=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 J=new zuD;J.W=eR(W,mjx);J.K=eR(W,rWo);return J};hxH.prototype.K=function(){return g.sH(this.W)};g.N(JB,R6);g.u=JB.prototype;g.u.aP=function(W,J){var K=this,I=co(lF);if(nZ(I))switch(I.W.getName()){case "nis":var q=uUI(this,W,J);break;case "gsv":q=awX(this,W,J);break;case "exc":q=NIQ(this,W)}q||(J.opt_overlayAdElement?q=void 0:J.opt_adElement&&(q=jFQ(this,W,J.opt_adElement,J.opt_osdId)));q&&q.fB()==1&&(q.Z==g.Fw&&(q.Z=function(S){return K.VG(S)}),FkQ(this,q,J)); return q}; g.u.VG=function(W){W.K=0;W.XW=0;if(W.T=="h"||W.T=="n"){AZ();W.FW&&(AZ(),Yv(this)!="h"&&Yv(this));var J=g.sH("ima.common.getVideoMetadata");if(typeof J==="function")try{var K=J(W.e3)}catch(q){W.K|=4}else W.K|=2}else if(W.T=="b")if(J=g.sH("ytads.bulleit.getVideoMetadata"),typeof J==="function")try{K=J(W.e3)}catch(q){W.K|=4}else W.K|=2;else if(W.T=="ml")if(J=g.sH("ima.common.getVideoMetadata"),typeof J==="function")try{K=J(W.e3)}catch(q){W.K|=4}else W.K|=2;else W.K|=1;W.K||(K===void 0?W.K|=8:K===null? W.K|=16:g.PR(K)?W.K|=32:K.errorCode!=null&&(W.XW=K.errorCode,W.K|=64));K==null&&(K={});J=K;W.N=0;for(var I in Hxv)J[I]==null&&(W.N|=Hxv[I]);fwQ(J,"currentTime");fwQ(J,"duration");WZ(K.volume)&&WZ()&&(K.volume*=NaN);return K}; g.u.lm=function(){AZ();Yv(this)!="h"&&Yv(this);var W=d5H(this);return W!=null?new hxH(W):null}; g.u.jo=function(W){!W.W&&W.Wi&&sV(this,W,"overlay_unmeasurable_impression")&&(W.W=!0)}; g.u.gt=function(W){W.U0&&(W.QS()?sV(this,W,"overlay_viewable_end_of_session_impression"):sV(this,W,"overlay_unviewable_impression"),W.U0=!1)}; g.u.Dm=function(){}; g.u.m_=function(W,J,K,I){if(Ooy()){var q=jS(AZ().jn,"mm"),S={};(q=(S[Dw.ML]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",S[Dw.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",S)[q])&&QFH(this,q);this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&U5(1044,Error())}W=R6.prototype.m_.call(this,W,J,K,I);this.j&&(J=this.S,W.j==null&&(W.j=new mF0),J.W[W.e3]=W.j,W.j.j=Loo);return W}; g.u.aL=function(W){W&&W.fB()==1&&this.j&&delete this.S.W[W.e3];return R6.prototype.aL.call(this,W)}; g.u.c6=function(){this.W||(this.W=this.lm());return this.W==null?new k8:this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new W4(this.W):new xv(this.W)}; g.u.KJ=function(){return this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new iR:new wy}; g.u.ID=function(W,J,K,I,q){J=new gI(K,J+I,K+q,J);(W=qR(Sn,W))?W.ID(J):this.G=J}; var kTT=dI(193,wYH,void 0,D5Q);g.Yc("Goog_AdSense_Lidar_sendVastEvent",kTT);var zLR=yT(194,function(W,J){J=J===void 0?{}:J;W=ZjL(co(JB),W,J);return Cjc(W)}); g.Yc("Goog_AdSense_Lidar_getViewability",zLR);var vro=dI(195,function(){return QGH()}); g.Yc("Goog_AdSense_Lidar_getUrlSignalsArray",vro);var Y$o=yT(196,function(){return JSON.stringify(QGH())}); g.Yc("Goog_AdSense_Lidar_getUrlSignalsList",Y$o);var GBA=fv(["//ep2.adtrafficquality.google/sodar/",""]),$50=fv(["//tpc.googlesyndication.com/sodar/",""]);g.N(Su,Error);g.N(nR,g.R);nR.prototype.pJ=function(){return this.wpc.f()}; nR.prototype.Wr=function(W){this.wpc.c(W)}; nR.prototype.iW=function(W){return this.wpc.m(HjT(W))}; nR.prototype.Hn=function(W){return this.wpc.mws(HjT(W))}; g.N(pR,g.R);pR.prototype.snapshot=function(W){return this.n7.s(Object.assign({},W.MX&&{c:W.MX},W.MS&&{s:W.MS},W.aK!==void 0&&{p:W.aK}))}; pR.prototype.cF=function(W){this.n7.e(W)}; pR.prototype.jT=function(){return this.n7.l()};var BIQ;g.N(DX,g.R);DX.prototype.share=function(){if(this.Iu())throw Error("E:AD");this.T++;return this}; DX.prototype.dispose=function(){--this.T||g.R.prototype.dispose.call(this)}; BIQ=Symbol.dispose;m5Q.prototype.Ak=function(W,J){this.W.Ak("/client_streamz/bg/frs",W,J)}; rZL.prototype.Ak=function(W,J,K,I,q,S){this.W.Ak("/client_streamz/bg/wrl",W,J,K,I,q,S)}; oET.prototype.yw=function(W,J){this.W.C4("/client_streamz/bg/ec",W,J)}; Lky.prototype.Ak=function(W,J,K){this.W.Ak("/client_streamz/bg/el",W,J,K)}; kBL.prototype.yw=function(W,J){this.W.C4("/client_streamz/bg/cec",W,J)}; zxX.prototype.yw=function(W,J){this.W.C4("/client_streamz/bg/po/csc",W,J)}; vEL.prototype.yw=function(W,J){this.W.C4("/client_streamz/bg/po/ctav",W,J)}; Y5H.prototype.yw=function(W,J){this.W.C4("/client_streamz/bg/po/cwsc",W,J)};g.N(sFQ,Uj);g.N(hB,Uj);var NH=[1,2,3];var soT=[0,NH,GTo,ZxG,Mle];var cWG=[0,J2,[0,tlp,ueo]];g.N(tB,Uj);var uR=[1,2,3];var P0x=[0,uR,djv,ap0,IS,cWG];g.N(Fi,Uj);var XRo=[0,J2,soT,P0x];var WGW=[0,[1,2,3],IS,[0,iO,-1,wRL],IS,[0,iO,-1,yWL,wRL],IS,[0,iO]];g.N(aH,Uj);aH.prototype.JQ=function(){var W=GF(this,3,XP,3,!0);Uc(W);return W[void 0]};aH.prototype.K=M4X([0,iO,WGW,gro,J2,XRo,QoL,C00]);g.N(PjQ,Uj);g.u=dd.prototype;g.u.isEnabled=function(){if(!g.vH.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{t4:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.u.set=function(W,J,K){var I=!1;if(typeof K==="object"){var q=K.cR8;I=K.secure||!1;var S=K.domain||void 0;var p=K.path||void 0;var n=K.t4}if(/[;=\s]/.test(W))throw Error('Invalid cookie name "'+W+'"');if(/[;\r\n]/.test(J))throw Error('Invalid cookie value "'+J+'"');n===void 0&&(n=-1);K=S?";domain="+S:"";p=p?";path="+p:"";I=I?";secure":"";n=n<0?"":n==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+n*1E3)).toUTCString();this.W.cookie=W+"="+J+K+p+n+I+(q!=null?";samesite="+ q:"")}; g.u.get=function(W,J){for(var K=W+"=",I=(this.W.cookie||"").split(";"),q=0,S;q=0;J--)this.remove(W[J])}; var Vb=new dd(typeof document=="undefined"?null:document);U9.prototype.compress=function(W){var J,K,I,q;return g.V(function(S){switch(S.K){case 1:return J=new CompressionStream("gzip"),K=(new Response(J.readable)).arrayBuffer(),I=J.writable.getWriter(),g.O(S,I.write((new TextEncoder).encode(W)),2);case 2:return g.O(S,I.close(),3);case 3:return q=Uint8Array,g.O(S,K,4);case 4:return S.return(new q(S.W))}})}; U9.prototype.isSupported=function(W){return W<1024?!1:typeof CompressionStream!=="undefined"};g.N(ZX,Uj);Qy.prototype.setInterval=function(W){this.intervalMs=W;this.tD&&this.enabled?(this.stop(),this.start()):this.tD&&this.stop()}; Qy.prototype.start=function(){var W=this;this.enabled=!0;this.tD||(this.tD=setTimeout(function(){W.tick()},this.intervalMs),this.K=this.W())}; Qy.prototype.stop=function(){this.enabled=!1;this.tD&&(clearTimeout(this.tD),this.tD=void 0)}; Qy.prototype.tick=function(){var W=this;if(this.enabled){var J=Math.max(this.W()-this.K,0);J0?K:void 0));K=QN(K,4,mh(q>0?q:void 0));K=QN(K,5,mh(S>0?S:void 0));q=K.KE;S=q[FP]|0;K=yW(K,S)?K:new K.constructor(aM(q,S));kP(p,MH,10,K)}p=this.W.clone();K=Date.now().toString();p=QN(p,4,YG(K));W=zF(p,Vy,3,W.slice());I&&(p=new CR,I=QN(p,13,mh(I)),p=new wd,I=kP(p,CR,2,I),p= new H4,I=kP(p,wd,1,I),I=KW(I,2,9),kP(W,H4,18,I));J&&Wi(W,14,J);return W};g.bR.prototype.K=0;g.bR.prototype.reset=function(){this.W=this.G=this.T;this.K=0}; g.bR.prototype.getValue=function(){return this.G};g.N(q5,Uj);var iUx=SW(q5);g.N(C50,Uj);var jD=new wo0;g.N(oH,g.R);g.u=oH.prototype;g.u.lO=function(){rd(this);this.K.stop();this.jZ.stop();g.R.prototype.lO.call(this)}; g.u.dispatch=function(W){if(W instanceof Vy)this.log(W);else try{var J=new Vy,K=W.PP();var I=iy(J,8,K);this.log(I)}catch(q){LR(this,4,1)}}; g.u.log=function(W){LR(this,2,1);if(this.SZ){W=W.clone();var J=this.D0++;W=Wi(W,21,J);this.componentId&&iy(W,26,this.componentId);J=W;var K=U1(J,1);var I=I===void 0?!1:I;var q=typeof K;I=K==null?K:q==="bigint"?String(kG(64,K)):BD(K)?q==="string"?Lr(K):I?zi(K):vD(K):void 0;I==null&&(I=Date.now(),I=Number.isFinite(I)?I.toString():"0",QN(J,1,YG(I)));I=U1(J,15);I!=null&&(typeof I==="bigint"?AK(I)?I=Number(I):(I=kG(64,I),I=AK(I)?Number(I):String(I)):I=BD(I)?typeof I==="number"?vD(I):Lr(I):void 0);I!=null|| Wi(J,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(I=this.experimentIds.clone(),kP(J,ZX,16,I));LR(this,1,1);J=this.W.length-1E3+1;J>0&&(this.W.splice(0,J),this.T+=J,LR(this,3,J));this.W.push(W);this.Ul||this.K.enabled||this.K.start()}}; g.u.flush=function(W,J){var K=this;if(this.W.length===0)W&&W();else if(this.vS&&this.PS)this.G.K=3,Zd0(this);else{var I=Date.now();if(this.OI>I&&this.XW0&&(K.XW=Date.now(),K.OI=K.XW+t);var y;t=l0(IM);tn&&t&&((y=F.KE[t])==null?void 0:y[175237375])!=null&&vIA(JWj,3);y=jD.W?jD.K(F,jD.W,175237375,jD.G):jD.K(F,175237375,null,jD.G);if(y=y===null?void 0:y)y=s1(y,1,-1),y!==-1&&(K.j=new g.bR(y<1?1:y,3E5,.1),K.K.setInterval(K.j.getValue()))}}W&& W();K.S=0},f=function(t,F){var a=oM(S,Vy,3); var y=Number(Bnc(S,14));g.B4(K.j);K.K.setInterval(K.j.getValue());t===401&&p&&(K.Y3=p);y&&(K.T+=y);F===void 0&&(F=K.isRetryable(t));F&&(K.W=a.concat(K.W),K.Ul||K.K.enabled||K.K.start());LR(K,7,1);J&&J("net-send-failed",t);++K.S},h=function(){K.network&&K.network.send(A,D,f)}; n?n.then(function(t){LR(K,5,q);A.requestHeaders["Content-Encoding"]="gzip";A.requestHeaders["Content-Type"]="application/binary";A.body=t;A.fh=2;h()},function(){LR(K,6,q); h()}):h()}}}}; g.u.isRetryable=function(W){return 500<=W&&W<600||W===401||W===0};k7.prototype.send=function(W,J,K){var I=this,q,S,p,n,A,D,f,h,t,F;return g.V(function(a){switch(a.K){case 1:return S=(q=I.BJ?new AbortController:void 0)?setTimeout(function(){q.abort()},W.timeoutMillis):void 0,g.yQ(a,2,3),p=Object.assign({},{method:W.requestType, headers:Object.assign({},W.requestHeaders)},W.body&&{body:W.body},W.withCredentials&&{credentials:"include"},{signal:W.timeoutMillis&&q?q.signal:null}),g.O(a,fetch(W.url,p),5);case 5:n=a.W;if(n.status!==200){(A=K)==null||A(n.status);a.VK(3);break}if((D=J)==null){a.VK(7);break}return g.O(a,n.text(),8);case 8:D(a.W);case 7:case 3:g.$c(a);clearTimeout(S);g.OH(a,0);break;case 2:f=g.g0(a);switch((h=f)==null?void 0:h.name){case "AbortError":(t=K)==null||t(408);break;default:(F=K)==null||F(400)}a.VK(3)}})}; k7.prototype.vy=function(){return 4};g.N(za,g.R);za.prototype.YY=function(){this.j=!0;return this}; za.prototype.build=function(){this.network||(this.network=new k7);var W=new oH({logSource:this.logSource,u4:this.u4?this.u4:n8c,sessionIndex:this.sessionIndex,kGW:this.YP,g0:this.T,Ul:!1,YY:this.j,F8:this.F8,network:this.network});g.B(this,W);if(this.K){var J=this.K,K=RH(W.G);iy(K,7,J)}W.Z=new U9;this.componentId&&(W.componentId=this.componentId);this.sK&&(W.sK=this.sK);this.pageId&&(W.pageId=this.pageId);this.W&&((K=this.W)?(W.experimentIds||(W.experimentIds=new ZX),J=W.experimentIds,K=K.PP(),iy(J, 4,K)):W.experimentIds&&QN(W.experimentIds,4));this.G&&(W.vS=W.PS);uxy(W.G);this.network.sb&&this.network.sb(this.logSource);this.network.tFO&&this.network.tFO(W);return W};g.N(v4,g.R);v4.prototype.flush=function(W){W=W||[];if(W.length){for(var J=new PjQ,K=[],I=0;I-1?(J=W[p],K||(J.uc=!1)):(J=new xtQ(J,this.src,S,!!I,q),J.uc=K,W.push(J));return J}; g.u.remove=function(W,J,K,I){W=W.toString();if(!(W in this.listeners))return!1;var q=this.listeners[W];J=II(q,J,K,I);return J>-1?(ia(q[J]),g.u0(q,J),q.length==0&&(delete this.listeners[W],this.W--),!0):!1}; g.u.removeAll=function(W){W=W&&W.toString();var J=0,K;for(K in this.listeners)if(!W||K==W){for(var I=this.listeners[K],q=0;q-1?W[q]:null}; g.u.hasListener=function(W,J){var K=W!==void 0,I=K?W.toString():"",q=J!==void 0;return g.oo(this.listeners,function(S){for(var p=0;p>>0);g.AW(g.t0,g.R);g.t0.prototype[GNL]=!0;g.u=g.t0.prototype;g.u.addEventListener=function(W,J,K,I){g.S_(this,W,J,K,I)}; g.u.removeEventListener=function(W,J,K,I){RVX(this,W,J,K,I)}; g.u.dispatchEvent=function(W){var J=this.qz;if(J){var K=[];for(var I=1;J;J=J.qz)K.push(J),++I}J=this.wz;I=W.type||W;if(typeof W==="string")W=new g.P4(W,J);else if(W instanceof g.P4)W.target=W.target||J;else{var q=W;W=new g.P4(I,J);g.KU(W,q)}q=!0;var S;if(K)for(S=K.length-1;!W.K&&S>=0;S--){var p=W.currentTarget=K[S];q=FI(p,I,!0,W)&&q}W.K||(p=W.currentTarget=J,q=FI(p,I,!0,W)&&q,W.K||(q=FI(p,I,!1,W)&&q));if(K)for(S=0;!W.K&&S0){this.K--;var W=this.W;this.W=W.next;W.next=null}else W=this.G();return W};var NZ;yc.prototype.add=function(W,J){var K=LwH.get();K.set(W,J);this.K?this.K.next=K:this.W=K;this.K=K}; yc.prototype.remove=function(){var W=null;this.W&&(W=this.W,this.W=this.W.next,this.W||(this.K=null),W.next=null);return W}; var LwH=new aI(function(){return new UG},function(W){return W.reset()}); UG.prototype.set=function(W,J){this.W=W;this.scope=J;this.next=null}; UG.prototype.reset=function(){this.next=this.scope=this.W=null};var Z$,Qc=!1,rEX=new yc;kNQ.prototype.reset=function(){this.context=this.K=this.G=this.W=null;this.T=!1}; var zVI=new aI(function(){return new kNQ},function(W){W.reset()}); g.MZ.prototype.then=function(W,J,K){return J9A(this,ua(typeof W==="function"?W:null),ua(typeof J==="function"?J:null),K)}; g.MZ.prototype.$goog_Thenable=!0;g.u=g.MZ.prototype;g.u.finally=function(W){var J=this;W=ua(W);return new Promise(function(K,I){cE0(J,function(q){W();K(q)},function(q){W(); I(q)})})}; g.u.b2=function(W,J){return J9A(this,null,ua(W),J)}; g.u.catch=g.MZ.prototype.b2;g.u.cancel=function(W){if(this.W==0){var J=new e_(W);g.Cq(function(){Piy(this,J)},this)}}; g.u.hIO=function(W){this.W=0;wO(this,2,W)}; g.u.wP0=function(W){this.W=0;wO(this,3,W)}; g.u.vR=function(){for(var W;W=XZD(this);)W_y(this,W,this.W,this.Z);this.S=!1}; var SVy=Jn;g.AW(e_,Dp);e_.prototype.name="cancel";g.AW(g.RI,g.t0);g.u=g.RI.prototype;g.u.enabled=!1;g.u.tp=null;g.u.setInterval=function(W){this.F4=W;this.tp&&this.enabled?(this.stop(),this.start()):this.tp&&this.stop()}; g.u.va3=function(){if(this.enabled){var W=g.px()-this.tG;W>0&&W0&&(this.getStatus(),this.S=setTimeout(this.zg.bind(this), this.PS)),this.getStatus(),this.C=!0,this.W.send(W),this.C=!1}catch(p){this.getStatus(),y9v(this,p)}}; g.u.zg=function(){typeof sG!="undefined"&&this.W&&(this.T="Timed out after "+this.PS+"ms, aborting",this.K=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.u.abort=function(W){this.W&&this.G&&(this.getStatus(),this.G=!1,this.j=!0,this.W.abort(),this.j=!1,this.K=W||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Y1(this))}; g.u.lO=function(){this.W&&(this.G&&(this.G=!1,this.j=!0,this.W.abort(),this.j=!1),Y1(this,!0));g.vS.Kc.lO.call(this)}; g.u.E1=function(){this.Iu()||(this.G8||this.C||this.j?URH(this):this.VPZ())}; g.u.VPZ=function(){URH(this)}; g.u.isActive=function(){return!!this.W}; g.u.isComplete=function(){return g.cS(this)==4}; g.u.getStatus=function(){try{return g.cS(this)>2?this.W.status:-1}catch(W){return-1}}; g.u.getResponseHeader=function(W){if(this.W&&this.isComplete())return W=this.W.getResponseHeader(W),W===null?void 0:W}; g.u.getLastError=function(){return typeof this.T==="string"?this.T:String(this.T)};JQ.prototype.send=function(W,J,K){J=J===void 0?function(){}:J; K=K===void 0?function(){}:K; Nyy(W.url,function(I){I=I.target;PS(I)?J(g.XI(I)):K(I.getStatus())},W.requestType,W.body,W.requestHeaders,W.timeoutMillis,W.withCredentials)}; JQ.prototype.vy=function(){return 1};Ib.prototype.done=function(){this.logger.du(this.event,Ku()-this.startTime)}; g.N(qo,DX);g.N(pu,qo);g.u=pu.prototype;g.u.h4=function(){}; g.u.IM=function(){}; g.u.du=function(){}; g.u.Zy=function(){}; g.u.DD=function(){}; g.u.Dw=function(W,J,K,I){return I}; g.u.s7=function(){}; g.u.Ra=function(){}; g.u.Pp=function(){}; g.u.WQ=function(){}; g.N(ll,qo);g.u=ll.prototype;g.u.update=function(W){this.logger.dispose();this.logger=W}; g.u.IM=function(W){this.logger.IM(W)}; g.u.du=function(W,J){this.logger.du(W,J)}; g.u.Zy=function(W){this.logger.Zy(W)}; g.u.DD=function(){this.logger.DD()}; g.u.Dw=function(W,J,K,I){return this.logger.Dw(W,J,K,I)}; g.u.s7=function(W){this.logger.s7(W)}; g.u.Ra=function(W){this.logger.Ra(W)}; g.u.Pp=function(W){this.logger.Pp(W)}; g.u.WQ=function(W){this.logger.WQ(W)}; g.u.h4=function(W){this.logger.h4(W)}; g.N(nu,g.R);g.N(AQ,qo);g.u=AQ.prototype;g.u.h4=function(W){this.metrics.qMg.Ak(W,this.JC)}; g.u.IM=function(W){this.metrics.eventCount.yw(W,this.JC)}; g.u.du=function(W,J){this.metrics.MO.Ak(J,W,this.JC)}; g.u.Zy=function(W){this.metrics.errorCount.yw(W,this.JC)}; g.u.Dw=function(W,J,K,I){function q(n){if(!S.Iu()){var A=Ku()-p;S.metrics.eIy.Ak(A,W,K,n,J,S.JC)}} var S=this,p=Ku();I.then(function(){return void q(0)},function(n){return void q(n instanceof oI?n.code:-1)}); return I}; g.u.s7=function(W){this.metrics.fLg.yw(W,this.JC)}; g.u.Ra=function(W){this.metrics.u3.yw(W,this.JC)}; g.u.Pp=function(W){this.metrics.CyS.yw(W,this.JC)}; g.N(DW,AQ);DW.prototype.WQ=function(W){var J=this;this.W.dispose();this.K&&this.service.dispose();this.service=this.options.wL("49",this.options.Gt.concat(W));this.W=new nu(function(){return void J.service.Sr()},this.options.ud); this.metrics=CFH(this.service);this.G=W}; DW.prototype.DD=function(){MnL(this.W)};g.N(jf,Uj);g.N(fu,Uj);g.N(hQ,Uj);var RX0=SW(hQ),GdH=function(W){return ZK(function(J){return J instanceof W&&!yW(J)})}(hQ); hQ.messageId="bfkj";g.N(AB,Uj);g.N(tQ,Uj);var $RT=SW(tQ);g.N(ab,g.R);ab.prototype.snapshot=function(W){if(this.Iu())throw Error("Already disposed");this.logger.IM("n");var J=this.logger.share();return this.G.then(function(K){var I=K.nh;return new Promise(function(q){var S=new Ib(J,"n");I(function(p){S.done();J.h4(p.length);J.DD();J.dispose();q(p)},[W.MX, W.MS,W.s6,W.aK])})})}; ab.prototype.xs=function(W){var J=this;if(this.Iu())throw Error("Already disposed");this.logger.IM("n");var K=Sf(this.logger,function(){return J.T([W.MX,W.MS,W.s6,W.aK])},"n"); this.logger.h4(K.length);this.logger.DD();return K}; ab.prototype.cF=function(W){this.G.then(function(J){var K;(K=J.aaO)==null||K(W)})}; ab.prototype.jT=function(){return this.logger.share()};g.N(d1,Uj);g.N(yH,Uj);UL.prototype.Aj=function(W){return r9X(this,W,new pu,0)};g.N(ZW,g.R);ZW.prototype.snapshot=function(W){var J=this;return g.V(function(K){switch(K.K){case 1:if(J.Iu())throw Error("Already disposed");if(J.K||J.Z){K.VK(2);break}return g.O(K,J.j.promise,2);case 2:if(!J.K){K.VK(4);break}return g.O(K,J.K.snapshot(W),5);case 5:return K.return(K.W);case 4:throw J.Z;}})}; ZW.prototype.cF=function(W){var J,K;(J=this.K)==null||(K=J.cF)==null||K.call(J,W)}; ZW.prototype.handleError=function(W){if(!this.Iu()){this.Z=W;this.j.resolve();var J,K;(K=(J=this.options).eQK)==null||K.call(J,W)}}; ZW.prototype.jT=function(){return this.logger.share()}; var kdQ={zs0:432E5,vB:3E5,I1:10,Y5:1E4,IC:3E4,hgh:3E4,pwu:6E4,TO:1E3,Qe:6E4,Ve:6E5,XG:.25,GO:2,maxAttempts:10};var Ino,iRH=(Ino=Math.imul)!=null?Ino:function(W,J){return W*J|0},Mo=[196, 200,224,18];g1.prototype.PP=function(){return String(this.W)+","+this.K.join()}; g1.prototype.yN=function(W,J){var K=void 0;if(this.K[this.W]!==W){var I=this.K.indexOf(W);I!==-1?(this.K.splice(I,1),I0;)J[K++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(W%62),W=Math.floor(W/62);return J.join("")}};var hhA;g.N($V,g.R);$V.prototype.Hn=function(W,J){var K=this.iW(W);J==null||J(K);return Sf(this.logger,function(){return g.IB(K,2)},this.K)}; hhA=Symbol.dispose;g.N(TQ,$V);TQ.prototype.iW=function(W,J){var K=this;this.logger.IM(this.W);++this.j>=this.S&&this.G.resolve();var I=W();W=Sf(this.logger,function(){return K.T(I)},"C"); if(W===void 0)throw new Su(17,"YNJ:Undefined");if(!(W instanceof Uint8Array))throw new Su(18,"ODM:Invalid");J==null||J(W);return W}; g.N(Hg,$V);Hg.prototype.iW=function(){return this.T}; g.N(VH,$V);VH.prototype.iW=function(){var W=this;return Sf(this.logger,function(){return SB(W.T)},"d")}; VH.prototype.Hn=function(){return this.T}; g.N(EL,$V);EL.prototype.iW=function(){if(this.T)return this.T;this.T=tuy(this,function(W){return"_"+fXc(W)}); return tuy(this,function(W){return W})}; g.N(Rb,$V);Rb.prototype.iW=function(){var W=Math.floor(Date.now()/1E3),J=[Math.random()*255,Math.random()*255],K=J.concat([this.T&255,this.clientState],[W>>24&255,W>>16&255,W>>8&255,W&255]);W=new Uint8Array(2+K.length);W[0]=34;W[1]=K.length;W.set(K,2);K=W.subarray(2);for(var I=J=J.length;I150))try{this.cache=new lX0(W,this.logger)}catch(J){this.reportError(new Su(22,"GBJ:init",J))}}; g.u.reportError=function(W){this.logger.Zy(W.code);this.onError(W);return W}; var uiQ=function(W){return ZK(function(J){if(!ag(J))return!1;for(var K=g.d(Object.entries(W)),I=K.next();!I.done;I=K.next()){var q=g.d(I.value);I=q.next().value;q=q.next().value;if(!(I in J)){if(q.wUg===!0)continue;return!1}if(!q(J[I]))return!1}return!0})}({n7:function(W){return ZK(function(J){return J instanceof W})}(ZW)},"");var vVc=(new Date).getTime();g.N(ob,Uj);var qwx=SW(ob);Muy.prototype.getMetadata=function(){return this.metadata};Lu.prototype.getMetadata=function(){return this.metadata}; Lu.prototype.getStatus=function(){return this.status};kV.prototype.Z=function(W,J){J=J===void 0?{}:J;return new Muy(W,this,J)}; kV.prototype.getName=function(){return this.name};var Swe=new kV("/google.internal.waa.v1.Waa/Create",d1,ob,function(W){return W.PP()},qwx);g.N(zQ,Uj);var mR0=new kV("/google.internal.waa.v1.Waa/GenerateIT",yH,zQ,function(W){return W.PP()},SW(zQ));var KbH=new Set(["SAPISIDHASH","APISIDHASH"]);g.N(vg,Uj);vg.prototype.getValue=function(){var W=U1(this,2);if(Array.isArray(W)||W instanceof Uj)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return xP(this,2)};g.N(YV,Uj);YV.prototype.getMessage=function(){return Ps(this,2)}; var TdQ=SW(YV);sL.prototype.xI=function(W,J){W=="data"?this.G.push(J):W=="metadata"?this.j.push(J):W=="status"?this.S.push(J):W=="end"?this.T.push(J):W=="error"&&this.K.push(J);return this}; sL.prototype.removeListener=function(W,J){W=="data"?iY(this.G,J):W=="metadata"?iY(this.j,J):W=="status"?iY(this.S,J):W=="end"?iY(this.T,J):W=="error"&&iY(this.K,J);return this}; sL.prototype.cancel=function(){this.W.abort()}; sL.prototype.cancel=sL.prototype.cancel;sL.prototype.removeListener=sL.prototype.removeListener;sL.prototype.on=sL.prototype.xI;g.N(GaQ,Error);g.AW(g.Jh,ak0);g.Jh.prototype.W=function(){var W=new K0(this.T,this.G);this.K&&W.setCredentialsMode(this.K);return W}; g.Jh.prototype.setCredentialsMode=function(W){this.K=W}; g.AW(K0,g.t0);g.u=K0.prototype;g.u.open=function(W,J){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.PS=W;this.C=J;this.readyState=1;IZ(this)}; g.u.send=function(W){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.W=!0;var J={headers:this.N,method:this.PS,credentials:this.j,cache:void 0};W&&(J.body=W);(this.sI||g.vH).fetch(new Request(this.C,J)).then(this.rS.bind(this),this.d3.bind(this))}; g.u.abort=function(){this.response=this.responseText="";this.N=new Headers;this.status=0;this.G&&this.G.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.W&&this.readyState!=4&&(this.W=!1,qW(this));this.readyState=0}; g.u.rS=function(W){if(this.W&&(this.T=W,this.K||(this.status=this.T.status,this.statusText=this.T.statusText,this.K=W.headers,this.readyState=2,IZ(this)),this.W&&(this.readyState=3,IZ(this),this.W)))if(this.responseType==="arraybuffer")W.arrayBuffer().then(this.DO.bind(this),this.d3.bind(this));else if(typeof g.vH.ReadableStream!=="undefined"&&"body"in W){this.G=W.body.getReader();if(this.S){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.Z=new TextDecoder;HR0(this)}else W.text().then(this.Nc.bind(this),this.d3.bind(this))}; g.u.I$=function(W){if(this.W){if(this.S&&W.value)this.response.push(W.value);else if(!this.S){var J=W.value?W.value:new Uint8Array(0);if(J=this.Z.decode(J,{stream:!W.done}))this.response=this.responseText+=J}W.done?qW(this):IZ(this);this.readyState==3&&HR0(this)}}; g.u.Nc=function(W){this.W&&(this.response=this.responseText=W,qW(this))}; g.u.DO=function(W){this.W&&(this.response=W,qW(this))}; g.u.d3=function(){this.W&&qW(this)}; g.u.setRequestHeader=function(W,J){this.N.append(W,J)}; g.u.getResponseHeader=function(W){return this.K?this.K.get(W.toLowerCase())||"":""}; g.u.getAllResponseHeaders=function(){if(!this.K)return"";for(var W=[],J=this.K.entries(),K=J.next();!K.done;)K=K.value,W.push(K[0]+": "+K[1]),K=J.next();return W.join("\r\n")}; g.u.setCredentialsMode=function(W){this.j=W}; Object.defineProperty(K0.prototype,"withCredentials",{get:function(){return this.j==="include"}, set:function(W){this.setCredentialsMode(W?"include":"same-origin")}});g.Sr.prototype.toString=function(){var W=[],J=this.j;J&&W.push(f0(J,pXv,!0),":");var K=this.W;if(K||J=="file")W.push("//"),(J=this.N)&&W.push(f0(J,pXv,!0),"@"),W.push(RhQ(g.tz(K))),K=this.G,K!=null&&W.push(":",String(K));if(K=this.K)this.W&&K.charAt(0)!="/"&&W.push("/"),W.push(f0(K,K.charAt(0)=="/"?lnx:nIl,!0));(K=this.T.toString())&&W.push("?",K);(K=this.S)&&W.push("#",f0(K,AX0));return W.join("")}; g.Sr.prototype.resolve=function(W){var J=this.clone(),K=!!W.j;K?g.p0(J,W.j):K=!!W.N;K?J.N=W.N:K=!!W.W;K?g.lY(J,W.W):K=W.G!=null;var I=W.K;if(K)g.n0(J,W.G);else if(K=!!W.K){if(I.charAt(0)!="/")if(this.W&&!this.K)I="/"+I;else{var q=J.K.lastIndexOf("/");q!=-1&&(I=J.K.slice(0,q+1)+I)}q=I;if(q==".."||q==".")I="";else if(g.uh(q,"./")||g.uh(q,"/.")){I=tX(q,"/");q=q.split("/");for(var S=[],p=0;p1||S.length==1&&S[0]!="")&&S.pop(), I&&p==q.length&&S.push("")):(S.push(n),I=!0)}I=S.join("/")}else I=q}K?J.K=I:K=W.T.toString()!=="";K?Ah(J,W.T.clone()):K=!!W.S;K&&(J.S=W.S);return J}; g.Sr.prototype.clone=function(){return new g.Sr(this)}; var pXv=/[#\/\?@]/g,nIl=/[#\?:]/g,lnx=/[#\?]/g,E7y=/[#\?@]/g,AX0=/#/g;g.u=jr.prototype;g.u.add=function(W,J){FY(this);this.G=null;W=aZ(this,W);var K=this.W.get(W);K||this.W.set(W,K=[]);K.push(J);this.K=this.K+1;return this}; g.u.remove=function(W){FY(this);W=aZ(this,W);return this.W.has(W)?(this.G=null,this.K=this.K-this.W.get(W).length,this.W.delete(W)):!1}; g.u.clear=function(){this.W=this.G=null;this.K=0}; g.u.isEmpty=function(){FY(this);return this.K==0}; g.u.forEach=function(W,J){FY(this);this.W.forEach(function(K,I){K.forEach(function(q){W.call(J,q,I,this)},this)},this)}; g.u.Oa=function(){FY(this);for(var W=Array.from(this.W.values()),J=Array.from(this.W.keys()),K=[],I=0;I0?String(W[0]):J}; g.u.toString=function(){if(this.G)return this.G;if(!this.W)return"";for(var W=[],J=Array.from(this.W.keys()),K=0;K>>3;S.G!=1&&S.G!=2&&S.G!=15&&yR(S,p,n,"unexpected tag");S.W=1;S.K=0;S.T=0} function K(A){S.T++;S.T==5&&A&240&&yR(S,p,n,"message length too long");S.K|=(A&127)<<(S.T-1)*7;A&128||(S.W=2,S.N=0,typeof Uint8Array!=="undefined"?S.j=new Uint8Array(S.K):S.j=Array(S.K),S.K==0&&q())} function I(A){S.j[S.N++]=A;S.N==S.K&&q()} function q(){if(S.G<15){var A={};A[S.G]=S.j;S.Z.push(A)}S.W=0} for(var S=this,p=W instanceof Array?W:new Uint8Array(W),n=0;n0?W:null};Ud.prototype.isInputValid=function(){return this.W===null}; Ud.prototype.gK=function(){return this.W}; Ud.prototype.ov=function(){return!1}; Ud.prototype.parse=function(W){this.W!==null&&kaT(this,W,"stream already broken");var J=null;try{var K=this.G;K.G||LaD(K,W,"stream already broken");K.W+=W;var I=Math.floor(K.W.length/4);if(I==0)var q=null;else{try{var S=esQ(K.W.slice(0,I*4))}catch(p){LaD(K,K.W,p.message)}K.K+=I*4;K.W=K.W.slice(I*4);q=S}J=q===null?null:this.T.parse(q)}catch(p){kaT(this,W,p.message)}this.K+=W.length;return J};var jGR={INIT:0,Wo:1,WH:2,lY:3,qZ:4,nx:5,STRING:6,RQ:7,bZ:8,Kn:9,Ef:10,l_:11,V7:12,Xl:13,M1:14,vu:15,Lt:16,z3:17,UC:18,Kh:19,uu:20};g.u=QR.prototype;g.u.isInputValid=function(){return this.j!=3}; g.u.gK=function(){return this.C}; g.u.done=function(){return this.j===2}; g.u.ov=function(){return!1}; g.u.parse=function(W){function J(){for(;t0;)if(a=W[t++], S.N===4?S.N=0:S.N++,!a)break a;if(a==='"'&&!S.Z){S.W=I();break}if(a==="\\"&&!S.Z&&(S.Z=!0,a=W[t++],!a))break;if(S.Z)if(S.Z=!1,a==="u"&&(S.N=1),a=W[t++])continue;else break;n.lastIndex=t;a=n.exec(W);if(!a){t=W.length+1;break}t=a.index+1;a=W[a.index];if(!a)break}S.G+=t-y;continue;case A.Kn:if(!a)continue;a==="r"?S.W=A.Ef:C0(S,W,t);continue;case A.Ef:if(!a)continue;a==="u"?S.W=A.l_:C0(S,W,t);continue;case A.l_:if(!a)continue;a==="e"?S.W=I():C0(S,W,t);continue;case A.V7:if(!a)continue;a==="a"?S.W=A.Xl: C0(S,W,t);continue;case A.Xl:if(!a)continue;a==="l"?S.W=A.M1:C0(S,W,t);continue;case A.M1:if(!a)continue;a==="s"?S.W=A.vu:C0(S,W,t);continue;case A.vu:if(!a)continue;a==="e"?S.W=I():C0(S,W,t);continue;case A.Lt:if(!a)continue;a==="u"?S.W=A.z3:C0(S,W,t);continue;case A.z3:if(!a)continue;a==="l"?S.W=A.UC:C0(S,W,t);continue;case A.UC:if(!a)continue;a==="l"?S.W=I():C0(S,W,t);continue;case A.Kh:a==="."?S.W=A.uu:C0(S,W,t);continue;case A.uu:if("0123456789.eE+-".indexOf(a)!==-1)continue;else t--,S.G--,S.W= I();continue;default:C0(S,W,t)}}} function I(){var a=p.pop();return a!=null?a:A.Wo} function q(a){if(!(S.K>1)){a||(a=h===-1?S.T+W.substring(f,t):W.substring(h,t));if(S.PS)S.S.push(a);else{var y=S.S,U=y.push;a=JSON.parse(a);U.call(y,a)}h=t}} for(var S=this,p=S.sI,n=S.G8,A=jGR,D=W.length,f=0,h=-1,t=0;t0?(F=S.S,S.S=[],F):null}return null};w_.prototype.isInputValid=function(){return this.j===null}; w_.prototype.gK=function(){return this.j}; w_.prototype.ov=function(){return!1}; w_.prototype.parse=function(W){function J(A){S.K=6;S.j="The stream is broken @"+S.W+"/"+p+". Error: "+A+". With input:\n";throw Error(S.j);} function K(){S.G=new QR({cIK:!0,Hb:!0})} function I(A){if(A)for(var D=0;D1)&&J("extra status: "+A);S.S=!0;var D={};D[2]=A[0];S.T.push(D)}} for(var S=this,p=0;p0?(W=S.T,S.T=[],W):null};MW.prototype.O$=function(){return this.W}; MW.prototype.getStatus=function(){return this.j}; MW.prototype.PS=function(W){W=W.target;try{if(W==this.W)a:{var J=g.cS(this.W),K=this.W.K,I=this.W.getStatus(),q=g.XI(this.W);W=[];if(g.Wg(this.W)instanceof Array){var S=g.Wg(this.W);S.length>0&&S[0]instanceof Uint8Array&&(this.C=!0,W=S)}if(!(J<3||J==3&&!q&&W.length==0))if(I=I==200||I==206,J==4&&(K==8?xa(this,7):K==7?xa(this,8):I||xa(this,3)),this.K||(this.K=zhT(this.W),this.K==null&&xa(this,5)),this.j>2)Od(this);else{if(W.length>this.G){var p=W.length;K=[];try{if(this.K.ov())for(var n=0;nthis.G){n=q.slice(this.G);this.G=q.length;try{var D=this.K.parse(n);D!=null&&this.T&&this.T(D)}catch(f){xa(this,5);Od(this);break a}}J==4?(q.length!= 0||this.C?xa(this,2):xa(this,4),Od(this)):xa(this,1)}}}catch(f){xa(this,6),Od(this)}};g.u=v7Q.prototype;g.u.xI=function(W,J){var K=this.K[W];K||(K=[],this.K[W]=K);K.push(J);return this}; g.u.addListener=function(W,J){this.xI(W,J);return this}; g.u.removeListener=function(W,J){var K=this.K[W];K&&g.Nj(K,J);(W=this.W[W])&&g.Nj(W,J);return this}; g.u.once=function(W,J){var K=this.W[W];K||(K=[],this.W[W]=K);K.push(J);return this}; g.u.kxW=function(W){var J=this.K.data;J&&Y9X(W,J);(J=this.W.data)&&Y9X(W,J);this.W.data=[]}; g.u.qAy=function(){switch(this.G.getStatus()){case 1:Tt(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Tt(this,"error");break;case 8:Tt(this,"close");break;case 2:Tt(this,"end")}};sHL.prototype.serverStreaming=function(W,J,K,I){var q=this,S=W.substring(0,W.length-I.name.length);return cBI(function(p){var n=p.ag,A=p.getMetadata(),D=WbQ(q,!1);A=iqv(q,A,D,S+n.getName());var f=J0y(D,n.K,!0);p=n.W(p.Vb);D.send(A,"POST",p);return f},this.T).call(this,I.Z(J,K))};I$H.prototype.create=function(W,J){return ByT(this.W,this.K+"/$rpc/google.internal.waa.v1.Waa/Create",W,J||{},Swe)};var qGQ="://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(" "),SGy=/\bocr\b/;var l$Q=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(W){throw W;}},{tsg:!0, yIw:!0,phy:ocl,kW0:LXv,HgS:!1,aCK:!1,AIg:!0,oUK:!1});var Ed=null,t_L=Symbol("SIGNAL"),ff={version:0,mww:0,BM:!1,v$:void 0,Yf:void 0,pg:void 0,DP:0,d8:void 0,IV:void 0,jb:!1,VO:!1,kind:"unknown",eK:function(){return!1}, Cr:function(){}, I9:function(){}, hLS:function(){}};var h2=Symbol("UNSET"),t2=Symbol("COMPUTING"),Fk=Symbol("ERRORED");Object.assign({},ff,{value:h2,BM:!0,error:null,rW:VR,kind:"computed",eK:function(W){return W.value===h2||W.value===t2}, Cr:function(W){if(W.value===t2)throw Error("Detected cycle in computations.");var J=W.value;W.value=t2;var K=n1H(W),I=!1;try{var q=W.a9();er(null);I=J!==h2&&J!==Fk&&q!==Fk&&W.rW(J,q)}catch(S){q=Fk,W.error=S}finally{A0Q(W,K)}I?W.value=J:(W.value=q,W.version++)}});var hwH=Object.assign({},ff,{rW:VR,value:void 0,kind:"signal"});Object.assign({},ff,{value:h2,BM:!0,error:null,rW:VR,kind:"linkedSignal",eK:function(W){return W.value===h2||W.value===t2}, Cr:function(W){if(W.value===t2)throw Error("Detected cycle in computations.");var J=W.value;W.value=t2;var K=n1H(W);try{var I=W.source();var q=W.a9(I,J===h2||J===Fk?void 0:{source:W.zJ8,value:J});W.zJ8=I}catch(S){q=Fk,W.error=S}finally{A0Q(W,K)}J!==h2&&q!==Fk&&W.rW(J,q)?W.value=J:(W.value=q,W.version++)}});Object.assign({},ff,{VO:!0,jb:!1,I9:function(W){W.schedule!==null&&W.schedule(W.Xd3)}, SRy:!1,igy:function(){}});g.N(mc,g.t0);mc.prototype.dispose=function(){window.removeEventListener("offline",this.G);window.removeEventListener("online",this.G);this.zZ.Pj(this.j);delete mc.instance}; mc.prototype.SE=function(){return this.W}; mc.prototype.vD=function(){var W=this;this.j=this.zZ.mf(function(){var J;return g.V(function(K){if(K.K==1)return W.W?((J=window.navigator)==null?0:J.onLine)?K.VK(3):g.O(K,B0(W),3):g.O(K,B0(W),3);W.vD();g.d0(K)})},3E4)};oZ.prototype.set=function(W,J){J=J===void 0?!0:J;0<=W&&W<52&&Number.isInteger(W)&&this.data[W]!==J&&(this.data[W]=J,this.W=-1)}; oZ.prototype.get=function(W){return!!this.data[W]};var ka;g.AW(g.c0,g.R);g.u=g.c0.prototype;g.u.start=function(){this.stop();this.T=!1;var W=dZy(this),J=y0L(this);W&&!J&&this.K.mozRequestAnimationFrame?(this.W=g.S_(this.K,"MozBeforePaint",this.G),this.K.mozRequestAnimationFrame(null),this.T=!0):this.W=W&&J?W.call(this.K,this.G):this.K.setTimeout(or0(this.G),20)}; g.u.stop=function(){if(this.isActive()){var W=dZy(this),J=y0L(this);W&&!J&&this.K.mozRequestAnimationFrame?D$(this.W):W&&J?J.call(this.K,this.W):this.K.clearTimeout(this.W)}this.W=null}; g.u.isActive=function(){return this.W!=null}; g.u.UN=function(){this.T&&this.W&&D$(this.W);this.W=null;this.S.call(this.j,g.px())}; g.u.lO=function(){this.stop();g.c0.Kc.lO.call(this)};g.AW(g.P0,g.R);g.u=g.P0.prototype;g.u.wx=0;g.u.lO=function(){g.P0.Kc.lO.call(this);this.stop();delete this.W;delete this.K}; g.u.start=function(W){this.stop();this.wx=g.ba(this.G,W!==void 0?W:this.F4)}; g.u.stop=function(){this.isActive()&&g.vH.clearTimeout(this.wx);this.wx=0}; g.u.isActive=function(){return this.wx!=0}; g.u.MJ=function(){this.wx=0;this.W&&this.W.call(this.K)};g.N(g.J5,g.R);g.u=g.J5.prototype;g.u.TN=function(W){this.G=arguments;this.tp||this.K?this.W=!0:K3(this)}; g.u.stop=function(){this.tp&&(g.vH.clearTimeout(this.tp),this.tp=null,this.W=!1,this.G=null)}; g.u.pause=function(){this.K++}; g.u.resume=function(){this.K--;this.K||!this.W||this.tp||(this.W=!1,K3(this))}; g.u.lO=function(){g.R.prototype.lO.call(this);this.stop()};g.IW.prototype[Symbol.iterator]=function(){return this}; g.IW.prototype.next=function(){var W=this.W.next();return{value:W.done?void 0:this.K.call(void 0,W.value),done:W.done}};g.AW(g.f3,g.t0);g.u=g.f3.prototype;g.u.isPlaying=function(){return this.W==1}; g.u.isPaused=function(){return this.W==-1}; g.u.bd=function(){this.cg("begin")}; g.u.ju=function(){this.cg("end")}; g.u.onFinish=function(){this.cg("finish")}; g.u.onStop=function(){this.cg("stop")}; g.u.cg=function(W){this.dispatchEvent(W)};var fnG=ai(function(){var W=g.i5("DIV"),J=g.ca?"-webkit":BY?"-moz":null,K="transition:opacity 1s linear;";J&&(K+=J+"-transition:opacity 1s linear;");J=xjQ({style:K});if(W.nodeType===1&&/^(script|style)$/i.test(W.tagName))throw Error("");W.innerHTML=iW(J);return g.mk(W.firstChild,"transition")!=""});g.AW(h5,g.f3);g.u=h5.prototype;g.u.play=function(){if(this.isPlaying())return!1;this.bd();this.cg("play");this.startTime=g.px();this.W=1;if(fnG())return g.bj(this.K,this.S),this.G=g.ba(this.duO,void 0,this),!0;this.Aw(!1);return!1}; g.u.duO=function(){g.cY(this.K);QIX(this.K,this.Z);g.bj(this.K,this.T);this.G=g.ba((0,g.Io)(this.Aw,this,!1),this.j*1E3)}; g.u.stop=function(){this.isPlaying()&&this.Aw(!0)}; g.u.Aw=function(W){g.bj(this.K,"transition","");g.vH.clearTimeout(this.G);g.bj(this.K,this.T);this.endTime=g.px();this.W=0;if(W)this.onStop();else this.onFinish();this.ju()}; g.u.lO=function(){this.stop();h5.Kc.lO.call(this)}; g.u.pause=function(){};var wSQ={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};t5("Element","attributes")||t5("Node","attributes");t5("Element","innerHTML")||t5("HTMLElement","innerHTML");t5("Node","nodeName");t5("Node","nodeType");t5("Node","parentNode");t5("Node","childNodes");t5("HTMLElement","style")||t5("Element","style");t5("HTMLStyleElement","sheet");var OqD=g1y("getPropertyValue"),TOH=g1y("setProperty");t5("Element","namespaceURI")||t5("Node","namespaceURI");var xZQ={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var ewv,T0l,E1Q,V_c,RwI;ewv=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]");T0l=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.hs$=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.aW=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]");E1Q=/^http:\/\/.*/;g.tSr=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");V_c=/\s+/;RwI=/[\d\u06f0-\u06f9]/;Ni.prototype.PC=function(){return new d5(this.K())}; Ni.prototype[Symbol.iterator]=function(){return new yh(this.K())}; Ni.prototype.W=function(){return new yh(this.K())}; g.N(d5,g.x8);d5.prototype.next=function(){return this.K.next()}; d5.prototype[Symbol.iterator]=function(){return new yh(this.K)}; d5.prototype.W=function(){return new yh(this.K)}; g.N(yh,Ni);yh.prototype.next=function(){return this.G.next()};Z3.prototype.clone=function(){return new Z3(this.W,this.Z,this.G,this.j,this.T,this.S,this.K,this.N)}; Z3.prototype.equals=function(W){return this.W==W.W&&this.Z==W.Z&&this.G==W.G&&this.j==W.j&&this.T==W.T&&this.S==W.S&&this.K==W.K&&this.N==W.N};C3.prototype.clone=function(){return new C3(this.start,this.end)}; C3.prototype.getLength=function(){return this.end-this.start};(function(){if(EoI){var W=/Windows NT ([0-9.]+)/;return(W=W.exec(g.CU()))?W[1]:"0"}return KT?(W=/1[0|1][_.][0-9_.]+/,(W=W.exec(g.CU()))?W[0].replace(/_/g,"."):"10"):g.Wd?(W=/Android\s+([^\);]+)(\)|;)/,(W=W.exec(g.CU()))?W[1]:""):vco||YHj||syv?(W=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(W=W.exec(g.CU()))?W[1].replace(/_/g,"."):""):""})();var BO0=function(){if(g.cC)return w5(/Firefox\/([0-9.]+)/);if(g.FH||g.vM||g.G4)return QoQ;if(g.ES){if(Cw()||wn()){var W=w5(/CriOS\/([0-9.]+)/);if(W)return W}return w5(/Chrome\/([0-9.]+)/)}if(g.dg&&!Cw())return w5(/Version\/([0-9.]+)/);if(c7||P7){if(W=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.CU()))return W[1]+"."+W[2]}else if(g.$K)return(W=w5(/Android\s+([0-9.]+)/))?W:w5(/Version\/([0-9.]+)/);return""}();g.AW(g.g5,g.R);g.u=g.g5.prototype;g.u.subscribe=function(W,J,K){var I=this.K[W];I||(I=this.K[W]=[]);var q=this.S;this.W[q]=W;this.W[q+1]=J;this.W[q+2]=K;this.S=q+3;I.push(q);return q}; g.u.unsubscribe=function(W,J,K){if(W=this.K[W]){var I=this.W;if(W=W.find(function(q){return I[q+1]==J&&I[q+2]==K}))return this.qP(W)}return!1}; g.u.qP=function(W){var J=this.W[W];if(J){var K=this.K[J];this.T!=0?(this.G.push(W),this.W[W+1]=function(){}):(K&&g.Nj(K,W),delete this.W[W],delete this.W[W+1],delete this.W[W+2])}return!!J}; g.u.publish=function(W,J){var K=this.K[W];if(K){var I=Array(arguments.length-1),q=arguments.length,S;for(S=1;S0&&this.T==0)for(;K=this.G.pop();)this.qP(K)}}return S!=0}return!1}; g.u.clear=function(W){if(W){var J=this.K[W];J&&(J.forEach(this.qP,this),delete this.K[W])}else this.W.length=0,this.K={}}; g.u.lO=function(){g.g5.Kc.lO.call(this);this.clear();this.G.length=0};g.G9.prototype.set=function(W,J){J===void 0?this.W.remove(W):this.W.set(W,g.Lq(J))}; g.G9.prototype.get=function(W){try{var J=this.W.get(W)}catch(K){return}if(J!==null)try{return JSON.parse(J)}catch(K){throw"Storage: Invalid value was encountered";}}; g.G9.prototype.remove=function(W){this.W.remove(W)};g.AW($Q,g.G9);$Q.prototype.set=function(W,J){$Q.Kc.set.call(this,W,o1Q(J))}; $Q.prototype.K=function(W){W=$Q.Kc.get.call(this,W);if(W===void 0||W instanceof Object)return W;throw"Storage: Invalid value was encountered";}; $Q.prototype.get=function(W){if(W=this.K(W)){if(W=W.data,W===void 0)throw"Storage: Invalid value was encountered";}else W=void 0;return W};g.AW(xQ,$Q);xQ.prototype.set=function(W,J,K){if(J=o1Q(J)){if(K){if(K=K.length)return g.lO;var q=K.key(J++);if(W)return g.Oi(q);q=K.getItem(q);if(typeof q!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Oi(q)}; return I}; g.u.clear=function(){Vh(this);this.W.clear()}; g.u.key=function(W){Vh(this);return this.W.key(W)};g.AW(E6,Hq);g.AW(v1X,Hq);g.AW(eN,T9);eN.prototype.set=function(W,J){this.K.set(this.W+W,J)}; eN.prototype.get=function(W){return this.K.get(this.W+W)}; eN.prototype.remove=function(W){this.K.remove(this.W+W)}; eN.prototype.PC=function(W){var J=this.K[Symbol.iterator](),K=this,I=new g.x8;I.next=function(){var q=J.next();if(q.done)return q;for(q=q.value;q.slice(0,K.W.length)!=K.W;){q=J.next();if(q.done)return q;q=q.value}return g.Oi(W?q.slice(K.W.length):K.K.get(q))}; return I};bK.prototype.getValue=function(){return this.K}; bK.prototype.clone=function(){return new bK(this.W,this.K)};g.u=Bq.prototype;g.u.yN=function(W,J){var K=this.W;K.push(new bK(W,J));W=K.length-1;J=this.W;for(K=J[W];W>0;){var I=W-1>>1;if(J[I].W>K.W)J[W]=J[I],W=I;else break}J[W]=K}; g.u.remove=function(){var W=this.W,J=W.length,K=W[0];if(!(J<=0)){if(J==1)W.length=0;else{W[0]=W.pop();W=0;J=this.W;for(var I=J.length,q=J[W];W>1;){var S=W*2+1,p=W*2+2;S=pq.W)break;J[W]=J[S];W=S}J[W]=q}return K.getValue()}}; g.u.S1=function(){for(var W=this.W,J=[],K=W.length,I=0;I>>16&65535|0;for(var S;K!==0;){S=K>2E3?2E3:K;K-=S;do q=q+J[I++]|0,W=W+q|0;while(--S);q%=65521;W%=65521}return q|W<<16|0};for(var F0={},aS,dsG=[],uO=0;uO<256;uO++){aS=uO;for(var yXL=0;yXL<8;yXL++)aS=aS&1?3988292384^aS>>>1:aS>>>1;dsG[uO]=aS}F0=function(W,J,K,I){K=I+K;for(W^=-1;I>>8^dsG[(W^J[I])&255];return W^-1};var SG={};SG={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 XH=[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],Jw=[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],N1A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],lWv=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Aw=Array(576);L3(Aw);var D6=Array(60);L3(D6);var iu=Array(512);L3(iu);var Pq=Array(256);L3(Pq);var WO=Array(29);L3(WO);var KX=Array(30);L3(KX);var FeD,aW0,uBT,tfI=!1;var yY;yY=[new dl(0,0,0,0,function(W,J){var K=65535;for(K>W.w8-5&&(K=W.w8-5);;){if(W.zx<=1){aY(W);if(W.zx===0&&J===0)return 1;if(W.zx===0)break}W.aG+=W.zx;W.zx=0;var I=W.lJ+K;if(W.aG===0||W.aG>=I)if(W.zx=W.aG-I,W.aG=I,jG(W,!1),W.oB.L7===0)return 1;if(W.aG-W.lJ>=W.KU-262&&(jG(W,!1),W.oB.L7===0))return 1}W.yN=0;if(J===4)return jG(W,!0),W.oB.L7===0?3:4;W.aG>W.lJ&&jG(W,!1);return 1}), new dl(4,4,8,4,uu),new dl(4,5,16,8,uu),new dl(4,6,32,32,uu),new dl(4,4,16,16,N1),new dl(8,16,32,32,N1),new dl(8,16,128,128,N1),new dl(8,32,128,256,N1),new dl(32,128,258,1024,N1),new dl(32,258,258,4096,N1)];var h0H={};h0H=function(){this.input=null;this.mE=this.TB=this.pW=0;this.output=null;this.Ae=this.L7=this.j$=0;this.msg="";this.state=null;this.Xp=2;this.Xv=0};var doA=Object.prototype.toString; U4.prototype.push=function(W,J){var K=this.oB,I=this.options.chunkSize;if(this.ended)return!1;var q=J===~~J?J:J===!0?4:0;typeof W==="string"?K.input=c0A(W):doA.call(W)==="[object ArrayBuffer]"?K.input=new Uint8Array(W):K.input=W;K.pW=0;K.TB=K.input.length;do{K.L7===0&&(K.output=new oW.zR(I),K.j$=0,K.L7=I);W=fWQ(K,q);if(W!==1&&W!==0)return this.ju(W),this.ended=!0,!1;if(K.L7===0||K.TB===0&&(q===4||q===2))if(this.options.to==="string"){var S=oW.X5(K.output,K.j$);J=S;S=S.length;if(S<65537&&(J.subarray&& NXe||!J.subarray))J=String.fromCharCode.apply(null,oW.X5(J,S));else{for(var p="",n=0;n0||K.L7===0)&&W!==1);if(q===4)return(K=this.oB)&&K.state?(I=K.state.status,I!==42&&I!==69&&I!==73&&I!==91&&I!==103&&I!==113&&I!==666?W=pX(K,-2):(K.state=null,W=I===113?pX(K,-3):0)):W=-2,this.ju(W),this.ended=!0,W===0;q===2&&(this.ju(0),K.L7=0);return!0}; U4.prototype.ju=function(W){W===0&&(this.result=this.options.to==="string"?this.chunks.join(""):oW.H6(this.chunks));this.chunks=[];this.err=W;this.msg=this.oB.msg};var QY="@@redux/INIT"+Z6(),wgQ="@@redux/REPLACE"+Z6();var MfI=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Uso=[0,$jR,-3,qu];g.N(xoX,Uj);var NfT=function(){var W=[0,OxT,xjG,iO,$jR,iO,-1,qu,$jR,qu,-1,OxT,qu,xjG,J2,Uso,iO,-1,qu];return function(J,K){var I={q0:!0};K&&Object.assign(I,K);J=YhI(J,void 0,void 0,I);try{var q=new xoX,S=q.KE;ow(W)(S,J);var p=q}finally{J.free()}return p}}();var Ou0=1024498443;var kqQ=new g.M1("adInfoDialogEndpoint");var NTv=new g.M1("adPingingEndpoint");var Bcy=new g.M1("crossDeviceProgressCommand");var p_=new g.M1("actionCompanionAdRenderer");var jp=new g.M1("adActionInterstitialRenderer");var ZUv=new g.M1("adDurationRemainingRenderer");var BA=new g.M1("adHoverTextButtonRenderer");var okc=new g.M1("adInfoDialogRenderer");var Q1=new g.M1("adMessageRenderer");var mV=new g.M1("adPreviewRenderer");var n_=new g.M1("adsEngagementPanelRenderer");var fBQ=new g.M1("dismissablePanelTextPortraitImageRenderer");var DM0=new g.M1("adsEngagementPanelSectionListViewModel");var QGR=new g.M1("flyoutCtaRenderer");var lo=new g.M1("imageCompanionAdRenderer");var Ay=new g.M1("instreamAdPlayerOverlayRenderer");var XKc=new g.M1("instreamSurveyAdBackgroundImageRenderer");var bo=new g.M1("instreamSurveyAdPlayerOverlayRenderer");var MB=new g.M1("instreamSurveyAdRenderer"),R9=new g.M1("instreamSurveyAdSingleSelectQuestionRenderer"),e5=new g.M1("instreamSurveyAdMultiSelectQuestionRenderer"),Nu=new g.M1("instreamSurveyAdAnswerRenderer"),Chp=new g.M1("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var C_=new g.M1("instreamVideoAdRenderer");var wXL=new g.M1("textOverlayAdContentRenderer"),MSL=new g.M1("enhancedTextOverlayAdContentRenderer"),gIr=new g.M1("imageOverlayAdContentRenderer");var DE=new g.M1("playerOverlayLayoutRenderer");var fB=new g.M1("videoInterstitialButtonedCenteredLayoutRenderer");var uOc=new g.M1("aboveFeedAdLayoutRenderer");var NHy=new g.M1("belowPlayerAdLayoutRenderer");var aBX=new g.M1("inPlayerAdLayoutRenderer");var $t=new g.M1("playerBytesAdLayoutRenderer");var EK=new g.M1("playerBytesSequenceItemAdLayoutRenderer");var VE=new g.M1("playerUnderlayAdLayoutRenderer");var wD=new g.M1("adIntroRenderer");var FF=new g.M1("playerBytesSequentialLayoutRenderer");var XNT=new g.M1("slidingTextPlayerOverlayRenderer");var gD=new g.M1("surveyTextInterstitialRenderer");var xt=new g.M1("videoAdTrackingRenderer");var Gjp=new g.M1("simpleAdBadgeRenderer");var fP=new g.M1("skipAdRenderer"),$so=new g.M1("skipButtonRenderer");var kt=new g.M1("adSlotRenderer");var TU=new g.M1("squeezebackPlayerSidePanelRenderer");var xse=new g.M1("timedPieCountdownRenderer");var om=new g.M1("adAvatarViewModel");var L7=new g.M1("adBadgeViewModel");var ky=new g.M1("adButtonViewModel");var OUe=new g.M1("adDetailsLineViewModel");var TXL=new g.M1("adDisclosureBannerViewModel");var HUW=new g.M1("adPodIndexViewModel");var VSe=new g.M1("imageBackgroundViewModel");var EI$=new g.M1("adGridCardCollectionViewModel");var esG=new g.M1("adGridCardTextViewModel");var Rs0=new g.M1("adPreviewViewModel");var bUl=new g.M1("playerAdAvatarLockupCardButtonedViewModel");var BXx=new g.M1("skipAdButtonViewModel");var msR=new g.M1("skipAdViewModel");var rXo=new g.M1("timedPieCountdownViewModel");var oI0=new g.M1("visitAdvertiserLinkViewModel");var AP=new g.M1("bannerImageLayoutViewModel");var DZ=new g.M1("topBannerImageTextIconButtonedLayoutViewModel");var j5=new g.M1("adsEngagementPanelLayoutViewModel");var HA=new g.M1("displayUnderlayTextGridCardsLayoutViewModel");g.ME=new g.M1("browseEndpoint");var LGp=new g.M1("confirmDialogEndpoint");var D00=new g.M1("commandContext");var DkH=new g.M1("rawColdConfigGroup");var AJT=new g.M1("rawHotConfigGroup");g.dc=new g.M1("commandExecutorCommand");g.N(HuA,Uj);var qAv={MSg:0,OBg:1,pTW:32,n7h:61,fe8:67,zv3:103,LZ8:86,ynw:42,k6I:60,wTO:62,Jnh:73,FZ0:76,UVu:88,evy:90,RLy:99,tS3:98,C88:100,bBO:102,ubs:41,WjS:69,Pth:70,sM3:71,v00:2,cgW:27,ANDROID:3,N$I:54,rCh:14,bwu:91,mnW:55,oGI:24,t3u:20,ACZ:18,p$Z:21,kJN:104,nGh:30,zas:29,UnW:28,iBh:101,eaZ:34,JCW:36,yCW:38,IOS:5,Qi3:15,jiZ:92,TVW:40,X4S:25,MlW:17,vgI:19,ckK:64,acu:66,SSW:26,i4Z:22,YS8:33,Z4O:68,dBW:35,xBW:53,Ics:37,VlZ:39,RvS:7,uX8:57,WZg:43,sW8:59,P8I:93,LfO:74,KZI:75,E7u:85,leh:65,G63:80,QWg:8,CVS:10, VSW:58,TH0:63,g7O:72,qWZ:23,lCZ:11,gUw:13,Bqw:12,fX3:16,AnK:56,quK:31,T8W:77,oRy:84,HBI:87,AOg:89,tzy:94,CJs:95};g.N(gl,Uj);gl.prototype.p5=function(){return Ps(this,3)}; gl.prototype.L5=function(){return Ps(this,5)}; gl.prototype.AA=function(W){return iy(this,5,W)};g.N(GM,Uj);g.N(VfT,Uj);g.N($f,Uj);g.u=$f.prototype;g.u.getDeviceId=function(){return Ps(this,6)}; g.u.E2=function(W){var J=GF(this,9,rm,3,!0);Uc(J,W);return J[W]}; g.u.getPlayerType=function(){return XN(this,36)}; g.u.setHomeGroupInfo=function(W){return kP(this,VfT,81,W)}; g.u.clearLocationPlayabilityToken=function(){return QN(this,89)};g.N(xf,Uj);xf.prototype.getValue=function(){return Ps(this,bx(this,lRy,2))}; var lRy=[2,3,4,5,6];g.N(O4,Uj);O4.prototype.setTrackingParams=function(W){return QN(this,1,cXy(W,!1))};g.N(TM,Uj);g.N(HO,Uj);HO.prototype.E2=function(W){var J=GF(this,5,oB,3,!0);Uc(J,W);return J[W]};g.N(VY,Uj);VY.prototype.getToken=function(){return YP(this,2)}; VY.prototype.setToken=function(W){return iy(this,2,W)};g.N(E4,Uj);E4.prototype.setSafetyMode=function(W){return KW(this,5,W)};g.N(eG,Uj);eG.prototype.P3=function(W){return kP(this,$f,1,W)};var o9=new g.M1("thumbnailLandscapePortraitRenderer");g.kjL=new g.M1("changeEngagementPanelVisibilityAction");var avH=new g.M1("continuationCommand");g.zsp=new g.M1("openPopupAction");g.dB=new g.M1("webCommandMetadata");var V5L=new g.M1("metadataBadgeRenderer");var Ffy=new g.M1("signalServiceEndpoint");var Rh=new g.M1("innertubeCommand");var KfQ=new g.M1("loggingDirectives");var yhT={GPg:"EMBEDDED_PLAYER_MODE_UNKNOWN",ERh:"EMBEDDED_PLAYER_MODE_DEFAULT",gR8:"EMBEDDED_PLAYER_MODE_PFP",ly3:"EMBEDDED_PLAYER_MODE_PFL"};var lgA=new g.M1("channelThumbnailEndpoint");var pzL=new g.M1("embeddedPlayerErrorMessageRenderer");var K4T=new g.M1("embeddedPlayerOverlayVideoDetailsRenderer"),n2H=new g.M1("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),AlH=new g.M1("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var O_0=new g.M1("embedsInfoPanelRenderer");var vIT=new g.M1("feedbackEndpoint");var Ywj=new g.M1("callToActionButtonViewModel");var sGW=new g.M1("interactionLoggingCommandMetadata");var a6H={o7W:"WEB_DISPLAY_MODE_UNKNOWN",DVN:"WEB_DISPLAY_MODE_BROWSER",rnI:"WEB_DISPLAY_MODE_MINIMAL_UI",mVh:"WEB_DISPLAY_MODE_STANDALONE",NHu:"WEB_DISPLAY_MODE_FULLSCREEN"};g.N(RY,Uj);RY.prototype.getPlayerType=function(){return XN(this,7)}; RY.prototype.Ah=function(){return Ps(this,19)}; RY.prototype.setVideoId=function(W){return iy(this,19,W)};g.N(bu,Uj);g.N(BO,Uj);g.N(mW,Uj); var cXo=[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];var PhG=new g.M1("loggingContext");g.N(rl,Uj);g.N(oY,Uj);oY.prototype.Ah=function(){return YP(this,bx(this,jg,1))}; oY.prototype.setVideoId=function(W){return ee(this,1,jg,PD(W))}; oY.prototype.getPlaylistId=function(){return YP(this,bx(this,jg,2))}; var jg=[1,2];g.N(EVA,Uj);var KK=new g.M1("changeKeyedMarkersVisibilityCommand");var XXe=new g.M1("changeMarkersVisibilityCommand");var eUQ=new g.M1("loadMarkersCommand");var W6x=new g.M1("suggestedActionDataViewModel");var F3A=new g.M1("timelyActionViewModel");var tsQ=new g.M1("timelyActionsOverlayViewModel");var COQ=new g.M1("productListItemRenderer");var iwo=new g.M1("shoppingOverlayRenderer");var Igy=new g.M1("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Jzo=new g.M1("adFeedbackEndpoint");var K6e=new g.M1("menuEndpoint");var TSH=new g.M1("phoneDialerEndpoint");var x2H=new g.M1("sendSmsEndpoint");var Jly=new g.M1("copyTextEndpoint");var IF$=new g.M1("shareEndpoint"),qho=new g.M1("shareEntityEndpoint"),Shl=new g.M1("shareEntityServiceEndpoint"),paL=new g.M1("webPlayerShareEntityServiceEndpoint");g.RE=new g.M1("urlEndpoint");g.iE=new g.M1("watchEndpoint");var lFG=new g.M1("watchPlaylistEndpoint");g.njp=new g.M1("offlineOrchestrationActionCommand");var KRy=new g.M1("compositeVideoOverlayRenderer");var Azo=new g.M1("miniplayerRenderer");var W4Q=new g.M1("paidContentOverlayRenderer");var D3p=new g.M1("playerMutedAutoplayOverlayRenderer"),jXo=new g.M1("playerMutedAutoplayEndScreenRenderer");var v$L=new g.M1("unserializedPlayerResponse"),fFj=new g.M1("unserializedPlayerResponse");var hnl=new g.M1("playlistEditEndpoint");var yD;g.rD=new g.M1("buttonRenderer");yD=new g.M1("toggleButtonRenderer");var AuX=new g.M1("counterfactualRenderer");var t1l=new g.M1("resolveUrlCommandMetadata");var F6e=new g.M1("modifyChannelNotificationPreferenceEndpoint");var unQ=new g.M1("pingingEndpoint");var aFT=new g.M1("unsubscribeEndpoint");g.gP=new g.M1("subscribeButtonRenderer");var u1v=new g.M1("subscribeEndpoint");var gRA=new g.M1("buttonViewModel");var jqH=new g.M1("qrCodeRenderer");var pTL={FlO:"LIVING_ROOM_APP_MODE_UNSPECIFIED",p4s:"LIVING_ROOM_APP_MODE_MAIN",ykw:"LIVING_ROOM_APP_MODE_KIDS",krS:"LIVING_ROOM_APP_MODE_MUSIC",H4y:"LIVING_ROOM_APP_MODE_UNPLUGGED",Akg:"LIVING_ROOM_APP_MODE_GAMING"};var GUy=new g.M1("autoplaySwitchButtonRenderer");var g9,tay,i_A,wuD;g9=new g.M1("decoratedPlayerBarRenderer");tay=new g.M1("chapteredPlayerBarRenderer");i_A=new g.M1("multiMarkersPlayerBarRenderer");wuD=new g.M1("chapterRenderer");g.N6H=new g.M1("markerRenderer");var xPc=new g.M1("decoratedPlayheadRenderer");var TDy=new g.M1("desktopOverlayConfigRenderer");var hRQ=new g.M1("engagementPanelSectionListRenderer");var xBL=new g.M1("gatedActionsOverlayViewModel");var ZVT=new g.M1("heatMarkerRenderer");var UPH=new g.M1("heatmapRenderer");var EtQ=new g.M1("watchToWatchTransitionRenderer");var qfX=new g.M1("playlistPanelRenderer");var NnW=new g.M1("productUpsellSuggestedActionViewModel");var d3G=new g.M1("suggestedActionTimeRangeTrigger"),yzT=new g.M1("suggestedActionsRenderer"),U3x=new g.M1("suggestedActionRenderer");var QTL=new g.M1("timedMarkerDecorationRenderer");var C1H=new g.M1("cipher");var YAy=new g.M1("playerVars");var ZwT=new g.M1("playerVars");var U2=g.vH.window,QXo,CWW,zM=(U2==null?void 0:(QXo=U2.yt)==null?void 0:QXo.config_)||(U2==null?void 0:(CWW=U2.ytcfg)==null?void 0:CWW.data_)||{};g.Yc("yt.config_",zM);var cO=[];var z0I=/^[\w.]*$/,rQQ={q:!0,search_query:!0},moy=String(iX);var D_=new function(){var W=window.document;this.W=window;this.K=W}; g.Yc("yt.ads_.signals_.getAdSignalsString",function(W){return Ja(fz(W))});g.px();var YLQ="XMLHttpRequest"in g.vH?function(){return new XMLHttpRequest}:null;var wao="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.w(wao);var XgL={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"},AhQ="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.w(wao)),Sd0=!1,KcL=Cz;g.N(gq,Dp);xu.prototype.then=function(W,J,K){return this.W?this.W.then(W,J,K):this.K===1&&W?(W=W.call(K,this.G))&&typeof W.then==="function"?W:T_(W):this.K===2&&J?(W=J.call(K,this.G))&&typeof W.then==="function"?W:OD(W):this}; xu.prototype.getValue=function(){return this.G}; xu.prototype.Xy=function(){return this.K==2}; xu.prototype.$goog_Thenable=!0;var H7=!1;var zq=c7||P7;var N_L=/^([0-9\.]+):([0-9\.]+)$/;g.N(fn,Dp);fn.prototype.name="BiscottiError";g.N(j6,Dp);j6.prototype.name="BiscottiMissingError";var Z0H={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},hJ=null;var Ipy=fv(["data-"]),O0T={};var M1T=0,tJ=g.ca?"webkit":BY?"moz":g.FH?"ms":g.G4?"o":"",gjp=g.sH("ytDomDomGetNextId")||function(){return++M1T}; g.Yc("ytDomDomGetNextId",gjp);var Eav={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};y0.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; y0.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; y0.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var UN=g.vH.ytEventsEventsListeners||{};g.Yc("ytEventsEventsListeners",UN);var b0D=g.vH.ytEventsEventsCounter||{count:0};g.Yc("ytEventsEventsCounter",b0D);var oav=ai(function(){var W=!1;try{var J=Object.defineProperty({},"passive",{get:function(){W=!0}}); window.addEventListener("test",null,J)}catch(K){}return W}),B_y=ai(function(){var W=!1; try{var J=Object.defineProperty({},"capture",{get:function(){W=!0}}); window.addEventListener("test",null,J)}catch(K){}return W});var Zc;Zc=window;g.L=Zc.ytcsi&&Zc.ytcsi.now?Zc.ytcsi.now:Zc.performance&&Zc.performance.timing&&Zc.performance.now&&Zc.performance.timing.navigationStart?function(){return Zc.performance.timing.navigationStart+Zc.performance.now()}:function(){return(new Date).getTime()};g.AW(Mk,g.R);Mk.prototype.C=function(W){W.W===void 0&&etc(W);var J=W.W;W.K===void 0&&etc(W);this.W=new g.Tm(J,W.K)}; Mk.prototype.pm=function(){return this.W||new g.Tm}; Mk.prototype.PS=function(){if(this.W){var W=(0,g.L)();if(this.T!=0){var J=this.S,K=this.W,I=J.x-K.x;J=J.y-K.y;I=Math.sqrt(I*I+J*J)/(W-this.T);this.K[this.G]=Math.abs((I-this.j)/this.j)>.5?1:0;for(K=J=0;K<4;K++)J+=this.K[K]||0;J>=3&&this.Z();this.j=I}this.T=W;this.S=this.W;this.G=(this.G+1)%4}}; Mk.prototype.lO=function(){g.NU(this.N);g.Q0(this.sI)};g.N(gi,g.R);gi.prototype.D=function(W,J,K,I,q){K=g.E(g.X0((0,g.Io)(K,I||this.Tx)));K={target:W,name:J,callback:K};var S;q&&oav()&&(S={passive:!0});W.addEventListener(J,K.callback,S);this.Z.push(K);return K}; gi.prototype.aZ=function(W){for(var J=0;J=b.gF)||U.W.version>=c||U.W.objectStoreNames.contains(H)||C.push(H)}A=C;if(A.length===0){y.VK(5);break}D=Object.keys(K.options.Su); f=n.objectStoreNames();if(K.jK.options.version+1)throw t.close(),K.G=!1,xiQ(K,F);return y.return(t);case 8:throw J(), h instanceof Error&&!g.yb("ytidb_async_stack_killswitch")&&(h.stack=h.stack+"\n"+p.substring(p.indexOf("\n")+1)),yP(h,K.name,"",(a=K.options.version)!=null?a:-1);}})} function J(){K.W===I&&(K.W=void 0)} var K=this;if(!this.G)throw xiQ(this);if(this.W)return this.W;var I,q={blocking:function(S){S.close()}, closed:J,VE3:J,upgrade:this.options.upgrade};return this.W=I=W()};var LL=new rg("YtIdbMeta",{Su:{databases:{gF:1}},upgrade:function(W,J){J(1)&&g.Gq(W,"databases",{keyPath:"actualName"})}});var sO,Yk=new function(){}(new function(){});new g.FB;g.N(XS,rg);XS.prototype.K=function(W,J,K){K=K===void 0?{}:K;return(this.options.shared?B5X:b3Q)(W,J,Object.assign({},K))}; XS.prototype.delete=function(W){W=W===void 0?{}:W;return(this.options.shared?L0T:miy)(this.name,W)};var enW={},zpT=g.W2("ytGcfConfig",{Su:(enW.coldConfigStore={gF:1},enW.hotConfigStore={gF:1},enW),shared:!1,upgrade:function(W,J){J(1)&&(g.VP(g.Gq(W,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.VP(g.Gq(W,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.N(Jc,g.R);Jc.prototype.lO=function(){for(var W=g.d(this.K),J=W.next();!J.done;J=W.next()){var K=this.W;J=K.indexOf(J.value);J>=0&&K.splice(J,1)}this.K.length=0;g.R.prototype.lO.call(this)};l2.prototype.AA=function(W){this.hotHashData=W;g.Yc("yt.gcf.config.hotHashData",this.hotHashData||null)};var RnW=typeof TextEncoder!=="undefined"?new TextEncoder:null,VGL=RnW?function(W){return RnW.encode(W)}:function(W){W=g.Kr(W); for(var J=new Uint8Array(W.length),K=0;K=J?!1:!0}; g.u.Rp=function(){var W=this;if(!EW(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.HP.Qu("QUEUED",this.zv).then(function(J){J&&!W.UD(J,W.WA)?W.zZ.mf(function(){return g.V(function(K){if(K.K==1)return J.id===void 0?K.VK(2):g.O(K,W.HP.DZ(J.id,W.zv),2);W.Rp();g.d0(K)})}):W.xa.SE()&&W.NZ()})};var b2;var hkc={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};var Bnr={},WQy=g.W2("ServiceWorkerLogsDatabase",{Su:(Bnr.SWHealthLog={gF:1},Bnr),shared:!0,upgrade:function(W,J){J(1)&&g.VP(g.Gq(W,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var ro={},SDX=0;var oO;kg.prototype.requestComplete=function(W,J){J&&(this.K=!0);W=this.removeParams(W);this.W.get(W)||this.W.set(W,J)}; kg.prototype.isEndpointCFR=function(W){W=this.removeParams(W);return(W=this.W.get(W))?!1:W===!1&&this.K?!0:null}; kg.prototype.removeParams=function(W){return W.split("?")[0]}; kg.prototype.removeParams=kg.prototype.removeParams;kg.prototype.isEndpointCFR=kg.prototype.isEndpointCFR;kg.prototype.requestComplete=kg.prototype.requestComplete;kg.getInstance=z3;g.N(v2,g.t0);g.u=v2.prototype;g.u.SE=function(){return this.W.SE()}; g.u.At=function(W){this.W.W=W}; g.u.Xf=function(){var W=window.navigator.onLine;return W===void 0?!0:W}; g.u.fI=function(){this.K=!0}; g.u.listen=function(W,J){return this.W.listen(W,J)}; g.u.E8=function(W){W=B0(this.W,W);W.then(function(J){g.yb("use_cfr_monitor")&&z3().requestComplete("generate_204",J)}); return W}; v2.prototype.sendNetworkCheckRequest=v2.prototype.E8;v2.prototype.listen=v2.prototype.listen;v2.prototype.enableErrorFlushing=v2.prototype.fI;v2.prototype.getWindowStatus=v2.prototype.Xf;v2.prototype.networkStatusHint=v2.prototype.At;v2.prototype.isNetworkAvailable=v2.prototype.SE;v2.getInstance=nuy;g.N(g.Yg,g.t0);g.Yg.prototype.SE=function(){var W=g.sH("yt.networkStatusManager.instance.isNetworkAvailable");return W?W.bind(this.K)():!0}; g.Yg.prototype.At=function(W){var J=g.sH("yt.networkStatusManager.instance.networkStatusHint").bind(this.K);J&&J(W)}; g.Yg.prototype.E8=function(W){var J=this,K;return g.V(function(I){K=g.sH("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(J.K);return g.yb("skip_network_check_if_cfr")&&z3().isEndpointCFR("generate_204")?I.return(new Promise(function(q){var S;J.At(((S=window.navigator)==null?void 0:S.onLine)||!0);q(J.SE())})):K?I.return(K(W)):I.return(!0)})};var sW;g.N(c2,e2);c2.prototype.writeThenSend=function(W,J){J||(J={});J=Xl(W,J);g.sN()||(this.W=!1);e2.prototype.writeThenSend.call(this,W,J)}; c2.prototype.sendThenWrite=function(W,J,K){J||(J={});J=Xl(W,J);g.sN()||(this.W=!1);e2.prototype.sendThenWrite.call(this,W,J,K)}; c2.prototype.sendAndWrite=function(W,J){J||(J={});J=Xl(W,J);g.sN()||(this.W=!1);e2.prototype.sendAndWrite.call(this,W,J)}; c2.prototype.awaitInitialization=function(){return this.G.promise};var hJv=g.vH.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Yc("ytNetworklessLoggingInitializationOptions",hJv);g.Wb.prototype.isReady=function(){!this.config_&&AwQ()&&(this.config_=g.Ac());return!!this.config_};var m3$,KI,qv;m3$=g.vH.ytPubsubPubsubInstance||new g.g5;KI=g.vH.ytPubsubPubsubSubscribedKeys||{};qv=g.vH.ytPubsubPubsubTopicToKeys||{};g.Ia=g.vH.ytPubsubPubsubIsSynchronous||{};g.g5.prototype.subscribe=g.g5.prototype.subscribe;g.g5.prototype.unsubscribeByKey=g.g5.prototype.qP;g.g5.prototype.publish=g.g5.prototype.publish;g.g5.prototype.clear=g.g5.prototype.clear;g.Yc("ytPubsubPubsubInstance",m3$);g.Yc("ytPubsubPubsubTopicToKeys",qv);g.Yc("ytPubsubPubsubIsSynchronous",g.Ia); g.Yc("ytPubsubPubsubSubscribedKeys",KI);var dU0={};g.N(Nv,g.R);Nv.prototype.append=function(W){if(!this.K)throw Error("This does not support the append operation");W=W.v7();this.v7().appendChild(W)}; g.N(db,Nv);db.prototype.v7=function(){return this.W};g.N(yF,g.R);yF.prototype.onTouchStart=function(W){this.Z=!0;this.K=W.touches.length;this.W.isActive()&&(this.W.stop(),this.j=!0);W=W.touches;this.S=ZzI(this,W)||W.length!=1;var J=W.item(0);this.S||!J?this.C=this.N=Infinity:(this.N=J.clientX,this.C=J.clientY);for(J=this.G.length=0;J=0)}if(J||W&&Math.pow(W.clientX-this.N,2)+Math.pow(W.clientY-this.C,2)>25)this.T=!0}; yF.prototype.onTouchEnd=function(W){var J=W.changedTouches;J&&this.Z&&this.K==1&&!this.T&&!this.j&&!this.S&&ZzI(this,J)&&(this.PS=W,this.W.start());this.K=W.touches.length;this.K===0&&(this.T=this.Z=!1,this.G.length=0);this.j=!1};var UZ=Date.now().toString();var Mv={};var T$=Symbol("injectionDeps");G$.prototype.toString=function(){return"InjectionToken("+this.name+")"}; w70.prototype.resolve=function(W){return W instanceof $L?Hb(this,W.key,[],!0):Hb(this,W,[])};var VF;var eT=window;var mT=g.yb("web_enable_lifecycle_monitoring")&&Ra()!==0,TqH=g.yb("web_enable_lifecycle_monitoring");$UQ.prototype.cancel=function(){for(var W=g.d(this.W),J=W.next();!J.done;J=W.next())J=J.value,J.jobId===void 0||J.Dz||this.scheduler.Pj(J.jobId),J.Dz=!0;this.K.resolve()};g.u=rb.prototype;g.u.install=function(W){this.plugins.push(W);return this}; g.u.uninstall=function(){var W=this;g.EH.apply(0,arguments).forEach(function(J){J=W.plugins.indexOf(J);J>-1&&W.plugins.splice(J,1)})}; g.u.transition=function(W,J){var K=this;mT&&guy(this.state);var I=this.transitions.find(function(S){return Array.isArray(S.from)?S.from.find(function(p){return p===K.state&&S.to===W}):S.from===K.state&&S.to===W}); if(I){this.K&&(xUQ(this.K),this.K=void 0);HzT(this,W,J);this.state=W;mT&&b9(this.state);I=I.action.bind(this);var q=this.plugins.filter(function(S){return S[W]}).map(function(S){return S[W]}); I(OzT(this,q),J)}else throw Error("no transition specified from "+this.state+" to "+W);}; g.u.XwZ=function(W){var J=g.EH.apply(1,arguments);g.iH();for(var K=g.d(W),I=K.next(),q={};!I.done;q={Zw:void 0},I=K.next())q.Zw=I.value,K00(function(S){return function(){LI(S.Zw.name);z$(function(){return S.Zw.callback.apply(S.Zw,g.w(J))}); kL(S.Zw.name)}}(q))}; g.u.VFh=function(W){var J=g.EH.apply(1,arguments),K,I,q,S;return g.V(function(p){p.K==1&&(g.iH(),K=g.d(W),I=K.next(),q={});if(p.K!=3){if(I.done)return p.VK(0);q.Vt=I.value;q.JP=void 0;S=function(n){return function(){LI(n.Vt.name);var A=z$(function(){return n.Vt.callback.apply(n.Vt,g.w(J))}); u6(A)?n.JP=g.yb("web_lifecycle_error_handling_killswitch")?A.then(function(){kL(n.Vt.name)}):A.then(function(){kL(n.Vt.name)},function(D){G_0(D); kL(n.Vt.name)}):kL(n.Vt.name)}}(q); K00(S);return q.JP?g.O(p,q.JP,3):p.VK(3)}q={Vt:void 0,JP:void 0};I=K.next();return p.VK(2)})}; g.u.kc=function(W){var J=g.EH.apply(1,arguments),K=this,I=W.map(function(q){return{xX:function(){LI(q.name);z$(function(){return q.callback.apply(q,g.w(J))}); kL(q.name)}, priority:oa(K,q)}}); I.length&&(this.K=new $UQ(I))}; g.pv.Object.defineProperties(rb.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var YL;g.N(vb,rb);vb.prototype.j=function(W,J){var K=this;this.W=g.XJ(0,function(){K.currentState==="application_navigating"&&K.transition("none")},5E3); W(J==null?void 0:J.event)}; vb.prototype.S=function(W,J){this.W&&(g.r_.Pj(this.W),this.W=null);W(J==null?void 0:J.event)};var dT=[];g.Yc("yt.logging.transport.getScrapedGelPayloads",function(){return dT});sZ.prototype.storePayload=function(W,J){W=cb(W);this.store[W]?this.store[W].push(J):(this.K={},this.store[W]=[J]);this.W++;g.yb("more_accurate_gel_parser")&&(J=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(J));return W}; sZ.prototype.smartExtractMatchingEntries=function(W){if(!W.keys.length)return[];for(var J=Xh(this,W.keys.splice(0,1)[0]),K=[],I=0;I=0){I=!1;break a}}I=!0}I&&(J=Bm(J))&&this.Uc(J)}}; g.u.RA=function(W){return W}; g.u.onTouchStart=function(W){this.G8.onTouchStart(W)}; g.u.onTouchMove=function(W){this.G8.onTouchMove(W)}; g.u.onTouchEnd=function(W){if(this.G8)this.G8.onTouchEnd(W)}; g.u.Uc=function(W){this.layoutId?this.yK.executeCommand(W,this.layoutId):(W=new g.vd("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Va(W))}; g.u.createServerVe=function(W,J){this.api.createServerVe(W,this);this.api.setTrackingParams(W,J)}; g.u.logVisibility=function(W,J){this.api.hasVe(W)&&this.api.logVisibility(W,J,this.interactionLoggingClientData)}; g.u.lO=function(){this.clear(null);this.aZ(this.eZ);for(var W=g.d(this.XW),J=W.next();!J.done;J=W.next())this.aZ(J.value);g.to.prototype.lO.call(this)};g.N(H3,Fo); H3.prototype.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);this.W=J;if(J.text==null&&J.icon==null)g.ET(Error("ButtonRenderer did not have text or an icon set."));else{switch(J.style||null){case "STYLE_UNKNOWN":W="ytp-ad-button-link";break;default:W=null}W!=null&&g.lK(this.element,W);J.text!=null&&(W=g.uG(J.text),g.FC(W)||(this.element.setAttribute("aria-label",W),this.G=new g.to({V:"span",B:"ytp-ad-button-text",Ky:W}),g.B(this,this.G),this.G.MN(this.element)));J.accessibilityData&&J.accessibilityData.accessibilityData&& J.accessibilityData.accessibilityData.label&&!g.FC(J.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",J.accessibilityData.accessibilityData.label);J.icon!=null&&(J=Tl(J.icon,this.T),J!=null&&(this.K=new g.to({V:"span",B:"ytp-ad-button-icon",L:[J]}),g.B(this,this.K)),this.S?qO(this.element,this.K.element,0):this.K.MN(this.element))}}; H3.prototype.clear=function(){this.hide()}; H3.prototype.onClick=function(W){Fo.prototype.onClick.call(this,W);W=g.d(GqQ(this));for(var J=W.next();!J.done;J=W.next())J=J.value,this.layoutId?this.yK.executeCommand(J,this.layoutId):g.Va(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.N(VI,g.R);VI.prototype.lO=function(){this.K&&g.Q0(this.K);this.W.clear();Es=null;g.R.prototype.lO.call(this)}; VI.prototype.register=function(W,J){J&&this.W.set(W,J)}; var Es=null;g.N(bG,Fo); bG.prototype.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);W=J.hoverText||null;J=J.button&&g.m(J.button,g.rD)||null;J==null?g.Va(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new H3(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,void 0,void 0,void 0,void 0,this.G),g.B(this,this.button),this.button.init(lG("button"),J,this.macros),W&&this.button.element.setAttribute("aria-label",g.uG(W)),this.button.MN(this.element),this.C&&!g.p3(this.button.element, "ytp-ad-clickable")&&g.lK(this.button.element,"ytp-ad-clickable"),this.G&&g.lK(this.button.element,"ytp-ad-hover-text-button--clean-player"),W&&(this.K=new g.to({V:"div",B:"ytp-ad-hover-text-container"}),this.S&&(J=new g.to({V:"div",B:"ytp-ad-hover-text-callout"}),J.MN(this.K.element),g.B(this,J)),g.B(this,this.K),this.K.MN(this.element),J=eV(W),qO(this.K.element,J,0)),this.show())}; bG.prototype.hide=function(){this.button&&this.button.hide();this.K&&this.K.hide();Fo.prototype.hide.call(this)}; bG.prototype.show=function(){this.button&&this.button.show();Fo.prototype.show.call(this)};g.N(mJ,Fo); mJ.prototype.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);K=(W=J.thumbnail)&&B3(W)||"";g.FC(K)?Math.random()<.01&&g.ET(Error("Found AdImage without valid image URL")):(this.W?g.bj(this.element,"backgroundImage","url("+K+")"):sh(this.element,{src:K}),sh(this.element,{alt:W&&W.accessibility&&W.accessibility.label||""}),J&&J.adRendererCommands&&J.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; mJ.prototype.clear=function(){this.hide()};g.N(r4,Fo);g.u=r4.prototype;g.u.hide=function(){Fo.prototype.hide.call(this);this.G&&this.G.focus()}; g.u.show=function(){this.G=document.activeElement;Fo.prototype.show.call(this);this.T.focus()}; g.u.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);this.K=J;J.dialogMessages||J.title!=null?J.confirmLabel==null?g.Va(Error("ConfirmDialogRenderer.confirmLabel was not set.")):J.cancelLabel==null?g.Va(Error("ConfirmDialogRenderer.cancelLabel was not set.")):TgT(this,J):g.Va(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.u.clear=function(){g.$d(this.W);this.hide()}; g.u.RI=function(){this.hide()}; g.u.yj=function(){var W=this.K.cancelEndpoint;W&&(this.layoutId?this.yK.executeCommand(W,this.layoutId):g.Va(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.u.uE=function(){var W=this.K.confirmNavigationEndpoint||this.K.confirmEndpoint;W&&(this.layoutId?this.yK.executeCommand(W,this.layoutId):g.Va(Error("Missing layoutId for confirm dialog.")));this.hide()};g.N(oE,Fo);g.u=oE.prototype; g.u.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);this.G=J;if(J.defaultText==null&&J.defaultIcon==null)g.Va(Error("ToggleButtonRenderer must have either text or icon set."));else if(J.defaultIcon==null&&J.toggledIcon!=null)g.Va(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(J.style){switch(J.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":W="ytp-ad-toggle-button-default-style";break;default:W=null}W!=null&&g.lK(this.T,W)}W={};J.defaultText? (K=g.uG(J.defaultText),g.FC(K)||(W.buttonText=K,this.api.J().experiments.HS("a11y_h5_associate_survey_question")||this.W.setAttribute("aria-label",K),this.api.J().experiments.HS("fix_h5_toggle_button_a11y")&&this.K.setAttribute("aria-label",K))):g.PY(this.vS,!1);J.defaultTooltip&&(W.tooltipText=J.defaultTooltip,this.W.hasAttribute("aria-label")||this.K.setAttribute("aria-label",J.defaultTooltip));J.defaultIcon?(K=Tl(J.defaultIcon),this.updateValue("untoggledIconTemplateSpec",K),J.toggledIcon?(this.sI= !0,K=Tl(J.toggledIcon),this.updateValue("toggledIconTemplateSpec",K)):(g.PY(this.C,!0),g.PY(this.S,!1)),g.PY(this.W,!1)):g.PY(this.K,!1);g.PR(W)||this.update(W);J.isToggled&&(g.lK(this.T,"ytp-ad-toggle-button-toggled"),this.toggleButton(J.isToggled));L$(this);this.D(this.element,"change",this.v9);this.show()}}; g.u.onClick=function(W){this.XW.length>0&&(this.toggleButton(!this.isToggled()),this.v9());Fo.prototype.onClick.call(this,W)}; g.u.v9=function(){g.jN(this.T,"ytp-ad-toggle-button-toggled",this.isToggled());for(var W=g.d(HLH(this,this.isToggled())),J=W.next();!J.done;J=W.next())J=J.value,this.layoutId?this.yK.executeCommand(J,this.layoutId):g.Va(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);L$(this)}; g.u.clear=function(){this.hide()}; g.u.toggleButton=function(W){g.jN(this.T,"ytp-ad-toggle-button-toggled",W);this.W.checked=W;L$(this)}; g.u.isToggled=function(){return this.W.checked};g.N(kT,gi);kT.prototype.S=function(W){if(Array.isArray(W)){W=g.d(W);for(var J=W.next();!J.done;J=W.next())J=J.value,J instanceof VxA&&this.T(J)}};g.N(zl,Fo);g.u=zl.prototype;g.u.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);J.reasons?J.confirmLabel==null?g.Va(Error("AdFeedbackRenderer.confirmLabel was not set.")):(J.cancelLabel==null&&g.ET(Error("AdFeedbackRenderer.cancelLabel was not set.")),J.title==null&&g.ET(Error("AdFeedbackRenderer.title was not set.")),bLX(this,J)):g.Va(Error("AdFeedbackRenderer.reasons were not set."))}; g.u.clear=function(){Cn(this.S);Cn(this.C);this.T.length=0;this.hide()}; g.u.hide=function(){this.W&&this.W.hide();this.K&&this.K.hide();Fo.prototype.hide.call(this);this.G&&this.G.focus()}; g.u.show=function(){this.W&&this.W.show();this.K&&this.K.show();this.G=document.activeElement;Fo.prototype.show.call(this);this.S.focus()}; g.u.yU=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.u.PNZ=function(){this.hide()}; v3.prototype.v7=function(){return this.W.element}; v3.prototype.getCommand=function(){return this.K}; v3.prototype.isChecked=function(){return this.G.checked};g.N(c3,r4);c3.prototype.RI=function(W){r4.prototype.RI.call(this,W);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; c3.prototype.yj=function(W){r4.prototype.yj.call(this,W);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; c3.prototype.uE=function(W){r4.prototype.uE.call(this,W);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.N(P3,Fo);g.u=P3.prototype; g.u.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);this.S=J;if(J.dialogMessage==null&&J.title==null)g.Va(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{J.confirmLabel==null&&g.ET(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(W=J.closeOverlayRenderer&&g.m(J.closeOverlayRenderer,g.rD)||null)this.W=new H3(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.B(this,this.W),this.W.init(lG("button"),W,this.macros),this.W.MN(this.element);J.title&&(W=g.uG(J.title),this.updateValue("title",W));if(J.adReasons)for(W=J.adReasons,K=0;K=this.SZ?(this.sI.hide(),this.OI=!0,this.publish("i")):this.G&&this.G.isTemplated()&&(W=Math.max(0,Math.ceil((this.SZ-W)/1E3)),W!=this.bO&&(iT(this.G,{TIME_REMAINING:String(W)}),this.bO=W)))}};g.N(lT,Jq);g.u=lT.prototype; g.u.init=function(W,J,K){Jq.prototype.init.call(this,W,J,K);if(J.image&&J.image.thumbnail)if(J.headline)if(J.description)if((W=J.actionButton&&g.m(J.actionButton,g.rD))&&W.navigationEndpoint){var I=this.api.getVideoData(2);if(I!=null)if(J.image&&J.image.thumbnail){var q=J.image.thumbnail.thumbnails;q!=null&&q.length>0&&g.FC(g.N3(q[0].url))&&(q[0].url=I.profilePicture)}else g.ET(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.G.init(lG("ad-image"),J.image,K);this.S.init(lG("ad-text"), J.headline,K);this.T.init(lG("ad-text"),J.description,K);this.K.init(lG("button"),W,K);K=v0(this.K.element);zt(this.K.element,K+" This link opens in new tab");this.sI=W.navigationEndpoint;this.api.q9()||this.show();this.api.J().Y("enable_larger_flyout_cta_on_desktop")&&(this.T8("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.T8("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.T8("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.T8("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.T8("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.T8("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.K.element.classList.add("ytp-flyout-cta-action-button-large"),this.K.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.T8("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.aJ.bind(this));this.vS=J.startMs||0;Ki(this)}else g.Va(Error("FlyoutCtaRenderer has no valid action button."));else g.Va(Error("FlyoutCtaRenderer has no description AdText."));else g.Va(Error("FlyoutCtaRenderer has no headline AdText."));else g.ET(Error("FlyoutCtaRenderer has no image."))}; g.u.onClick=function(W){Jq.prototype.onClick.call(this,W);this.api.pauseVideo();!g.po(this.K.element,W.target)&&this.sI&&(this.layoutId?this.yK.executeCommand(this.sI,this.layoutId):g.Va(Error("Missing layoutId for flyout cta.")))}; g.u.oi=function(){if(this.W){var W=this.W.getProgressState();(W&&W.current||this.SZ)&&1E3*W.current>=this.vS&&(IK(this),g.A5(this.element,"ytp-flyout-cta-inactive"),this.K.element.removeAttribute("tabIndex"))}}; g.u.Ng=function(){this.clear()}; g.u.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.aJ.bind(this))}; g.u.show=function(){this.K&&this.K.show();Jq.prototype.show.call(this)}; g.u.hide=function(){this.K&&this.K.hide();Jq.prototype.hide.call(this)}; g.u.aJ=function(W){W=="hidden"?this.show():this.hide()};g.N(ni,Fo);g.u=ni.prototype; g.u.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);this.W=J;if(this.W.rectangle)for(W=this.W.likeButton&&g.m(this.W.likeButton,yD),J=this.W.dislikeButton&&g.m(this.W.dislikeButton,yD),this.G.init(lG("toggle-button"),W,K),this.K.init(lG("toggle-button"),J,K),this.D(this.element,"change",this.SJ),this.T.show(100),this.show(),K=g.d(this.W&&this.W.impressionCommands||[]),W=K.next();!W.done;W=K.next())W=W.value,this.layoutId?this.yK.executeCommand(W,this.layoutId):g.Va(Error("Missing layoutId for instream user sentiment."))}; g.u.clear=function(){this.hide()}; g.u.hide=function(){this.G.hide();this.K.hide();Fo.prototype.hide.call(this)}; g.u.show=function(){this.G.show();this.K.show();Fo.prototype.show.call(this)}; g.u.SJ=function(){ZqX(this.element,"ytp-ad-instream-user-sentiment-selected");this.W.postMessageAction&&this.api.qN("onYtShowToast",this.W.postMessageAction);this.T.hide()}; g.u.onClick=function(W){this.XW.length>0&&this.SJ();Fo.prototype.onClick.call(this,W)};g.N(Aq,g.R);g.u=Aq.prototype;g.u.lO=function(){this.reset();g.R.prototype.lO.call(this)}; g.u.reset=function(){g.$d(this.T);this.S=!1;this.W&&this.W.stop();this.j.stop();this.G&&(this.G=!1,this.Z.play())}; g.u.start=function(){this.reset();this.T.D(this.K,"mouseover",this.jJ,this);this.T.D(this.K,"mouseout",this.xu,this);this.PS&&(this.T.D(this.K,"focusin",this.jJ,this),this.T.D(this.K,"focusout",this.xu,this));this.W?this.W.start():(this.S=this.G=!0,g.bj(this.K,{opacity:this.C}))}; g.u.jJ=function(){this.G&&(this.G=!1,this.Z.play());this.j.stop();this.W&&this.W.stop()}; g.u.xu=function(){this.S?this.j.start():this.W&&this.W.start()}; g.u.tF=function(){this.G||(this.G=!0,this.N.play(),this.S=!0)};var PHQ=[new D1("b.f_",!1,0),new D1("j.s_",!1,2),new D1("r.s_",!1,4),new D1("e.h_",!1,6),new D1("i.s_",!0,8),new D1("s.t_",!1,10),new D1("p.h_",!1,12),new D1("s.i_",!1,14),new D1("f.i_",!1,16),new D1("a.b_",!1,18),new D1("a.o_",!1),new D1("g.o_",!1,22),new D1("p.i_",!1,24),new D1("p.m_",!1),new D1("n.k_",!0,20),new D1("i.f_",!1),new D1("a.s_",!0),new D1("m.c_",!1),new D1("n.h_",!1,26),new D1("o.p_",!1)].reduce(function(W,J){W[J.K]=J;return W},{});g.N(Nf,Jq);g.u=Nf.prototype; g.u.init=function(W,J,K){Jq.prototype.init.call(this,W,J,K);this.sI=J;(this.vS=WfX(this))&&g.ET(Error("hasAdControlInClickCommands_ is true."));if(!J||g.PR(J))g.Va(Error("SkipButtonRenderer was not specified or empty."));else if(!J.message||g.PR(J.message))g.Va(Error("SkipButtonRenderer.message was not specified or empty."));else{W=this.S?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};J=Tl(W);J==null?g.Va(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+W.iconType+".")): (this.G=new g.to({V:"button",au:[this.S?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],L:[{V:"span",B:this.S?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",L:[J]}]}),g.B(this,this.G),this.G.MN(this.T.element),this.K=new Wh(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,"ytp-ad-skip-button-text"),this.S&&this.K.element.classList.add("ytp-ad-skip-button-text-centered"),this.K.init(lG("ad-text"),this.sI.message,K),g.B(this,this.K),qO(this.G.element,this.K.element, 0));var I=I===void 0?null:I;K=this.api.J();!(this.XW.length>0)&&K.K&&(g8?0:"ontouchstart"in document.documentElement&&(Y$y()||Qw()))&&(this.aZ(this.eZ),I&&this.aZ(I),this.XW=[this.D(this.element,"touchstart",this.onTouchStart,this),this.D(this.element,"touchmove",this.onTouchMove,this),this.D(this.element,"touchend",this.onTouchEnd,this)])}}; g.u.clear=function(){this.SZ.reset();this.hide()}; g.u.hide=function(){this.T.hide();this.K&&this.K.hide();IK(this);Jq.prototype.hide.call(this)}; g.u.onClick=function(W){if(this.G!=null){if(W){var J=W||window.event;J.returnValue=!1;J.preventDefault&&J.preventDefault()}var K;if(sx0(W,{contentCpn:((K=this.api.getVideoData(1))==null?void 0:K.clientPlaybackNonce)||""})===0)this.api.qN("onAbnormalityDetected");else if(Jq.prototype.onClick.call(this,W),this.publish("j"),this.api.qN("onAdSkip"),this.OI||!this.vS)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.u.RA=function(W){if(!this.OI)return this.vS&&tq("SkipButton click commands not pruned while ALC exist"),W;var J,K=(J=g.m(W,g.dc))==null?void 0:J.commands;if(!K)return W;W=[];for(J=0;J=this.S&&iC0(this,!0)};g.N(Uo,H3);Uo.prototype.init=function(W,J,K){H3.prototype.init.call(this,W,J,K);W=!1;J.text!=null&&(W=g.uG(J.text),W=!g.FC(W));W?J.navigationEndpoint==null?g.ET(Error("No visit advertiser clickthrough provided in renderer,")):J.style!=="STYLE_UNKNOWN"?g.ET(Error("Button style was not a link-style type in renderer,")):this.show():g.ET(Error("No visit advertiser text was present in the renderer."))};g.N(Z1,Fo); Z1.prototype.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);W=J.text;g.FC(aE(W))?g.ET(Error("SimpleAdBadgeRenderer has invalid or empty text")):(W&&W.text&&(J=W.text,this.G&&!this.K&&(J=this.api.J(),J=W.text+" "+(J&&J.K?"\u2022":"\u00b7")),J={text:J,isTemplated:W.isTemplated},W.style&&(J.style=W.style),W.targetId&&(J.targetId=W.targetId),W=new Wh(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),W.init(lG("simple-ad-badge"),J,K),W.MN(this.element),g.B(this,W)),this.show())}; Z1.prototype.clear=function(){this.hide()};g.N(QS,n$);g.N(Ci,g.Ao);g.u=Ci.prototype;g.u.qt=function(){return this.durationMs}; g.u.stop=function(){this.W&&this.uK.aZ(this.W)}; g.u.ZH=function(W){this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:W.current};this.publish("h")}; g.u.getProgressState=function(){return this.K}; g.u.ew=function(W){g.uT(W,2)&&this.publish("g")};g.N(wc,g.Ao);g.u=wc.prototype;g.u.qt=function(){return this.durationMs}; g.u.start=function(){this.W||(this.W=!0,this.tD.start())}; g.u.stop=function(){this.W&&(this.W=!1,this.tD.stop())}; g.u.ZH=function(){this.u2+=100;var W=!1;this.u2>this.durationMs&&(this.u2=this.durationMs,this.tD.stop(),W=!0);this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.u2/1E3};this.publish("h");W&&this.publish("g")}; g.u.getProgressState=function(){return this.K};g.N(Ge,Jq);g.u=Ge.prototype;g.u.init=function(W,J,K){Jq.prototype.init.call(this,W,J,K);var I;if(J==null?0:(I=J.templatedCountdown)==null?0:I.templatedAdText){W=J.templatedCountdown.templatedAdText;if(!W.isTemplated){g.ET(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.K=new Wh(this.api,this.layoutId,this.interactionLoggingClientData,this.yK);this.K.init(lG("ad-text"),W,{});this.K.MN(this.element);g.B(this,this.K)}this.show()}; g.u.clear=function(){this.hide()}; g.u.hide=function(){IK(this);Jq.prototype.hide.call(this)}; g.u.Ng=function(){this.hide()}; g.u.oi=function(){if(this.W!=null){var W=this.W.getProgressState();if(W!=null&&W.current!=null&&this.K){var J=this.W instanceof Ci?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:W.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.W instanceof wc?W.seekableEnd:this.api.getDuration(2,!1);W=W.current;var K,I,q=((K=this.api.getVideoData())==null?0:(I=K.rf)==null?0:I.call(K))?Math.max(J-W,0):J-W;iT(this.K,{FORMATTED_AD_DURATION_REMAINING:String(g.Mf(q)), TIME_REMAINING:String(Math.ceil(q))})}}}; g.u.show=function(){Ki(this);Jq.prototype.show.call(this)};g.N($q,Wh);$q.prototype.onClick=function(W){Wh.prototype.onClick.call(this,W);this.api.onAdUxClicked(this.componentType)};g.N(Oo,Fo);Oo.prototype.init=function(W,J){Fo.prototype.init.call(this,W,J,{});if(W=J.content){g.l5(this.element,W);var K,I;J=((K=J.interaction)==null?void 0:(I=K.accessibility)==null?void 0:I.label)||W;this.element.setAttribute("aria-label",J)}else g.Va(Error("AdSimpleAttributedString does not have text content"))}; Oo.prototype.clear=function(){this.hide()}; Oo.prototype.onClick=function(W){Fo.prototype.onClick.call(this,W)};g.N(Te,Fo); Te.prototype.init=function(W,J){Fo.prototype.init.call(this,W,J,{});(W=J.label)&&W.content&&!g.FC(W.content)?(this.adBadgeText.init(lG("ad-simple-attributed-string"),new xq(W)),(J=J.adPodIndex)&&J.content&&!g.FC(J.content)&&(this.W=new Oo(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),this.W.MN(this.element),g.B(this,this.W),this.W.element.classList.add("ytp-ad-badge__pod-index"),this.W.init(lG("ad-simple-attributed-string"),new xq(J))),this.element.classList.add(this.K?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.Va(Error("No label is returned in AdBadgeViewModel."))}; Te.prototype.show=function(){this.adBadgeText.show();var W;(W=this.W)==null||W.show();Fo.prototype.show.call(this)}; Te.prototype.hide=function(){this.adBadgeText.hide();var W;(W=this.W)==null||W.hide();Fo.prototype.hide.call(this)};g.N(Hh,Fo);Hh.prototype.init=function(W,J){Fo.prototype.init.call(this,W,J,{});(W=J.adPodIndex)&&W.content&&!g.FC(W.content)&&(this.W=new Oo(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),this.W.MN(this.element),g.B(this,this.W),this.W.init(lG("ad-simple-attributed-string"),new xq(W)),J.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()}; Hh.prototype.show=function(){var W;(W=this.W)==null||W.show();Fo.prototype.show.call(this)}; Hh.prototype.hide=function(){var W;(W=this.W)==null||W.hide();Fo.prototype.hide.call(this)};g.N(VS,Fo); VS.prototype.init=function(W,J){Fo.prototype.init.call(this,W,J,{});if(J!=null&&J.text){var K;if(((K=J.text)==null?0:K.content)&&!g.FC(J.text.content)){this.W=new g.to({V:"div",B:"ytp-ad-disclosure-banner__text",Ky:J.text.content});g.B(this,this.W);this.W.MN(this.element);var I,q;W=((I=J.interaction)==null?void 0:(q=I.accessibility)==null?void 0:q.label)||J.text.content;this.element.setAttribute("aria-label",W);var S;if((S=J.interaction)==null?0:S.onTap)this.K=new g.to({V:"div",B:"ytp-ad-disclosure-banner__chevron",L:[g.Us()]}), g.B(this,this.K),this.K.MN(this.element);this.show()}}else g.Va(Error("No banner text found in AdDisclosureBanner."))}; VS.prototype.clear=function(){this.hide()};Eo.prototype.getLength=function(){return this.W-this.K};g.N(RK,g.to);RK.prototype.ZH=function(){var W=this.K.getProgressState(),J=W.seekableEnd;this.api.getPresentingPlayerType()===2&&(J=this.G?this.G/1E3:W.seekableEnd);W=e$(new Eo(W.seekableStart,J),W.current,0);this.progressBar.style.width=W*100+"%"}; RK.prototype.onStateChange=function(){g.RP(this.api.J())||(this.api.getPresentingPlayerType()===2?this.W===-1&&(this.show(),this.W=this.K.subscribe("h",this.ZH,this),this.ZH()):this.W!==-1&&(this.hide(),this.K.qP(this.W),this.W=-1))};g.N(bT,Fo); bT.prototype.init=function(W,J,K,I){Fo.prototype.init.call(this,W,J,K);if(J.skipOrPreviewRenderer){if(W=g.m(J.skipOrPreviewRenderer,fP))K=new yS(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.K,this.C),K.MN(this.Y3),K.init(lG("skip-button"),W,this.macros),g.B(this,K);if(W=g.m(J.skipOrPreviewRenderer,fP))var q=W.skipOffsetMilliseconds}J.brandInteractionRenderer&&(W=J.brandInteractionRenderer.brandInteractionRenderer,K=new ni(this.api,this.layoutId,this.interactionLoggingClientData,this.yK), K.MN(this.vS),K.init(lG("instream-user-sentiment"),W,this.macros),g.B(this,K));if(W=g.m(J,QGR))if(W=g.m(W,QGR))K=new lT(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.K,!!J.showWithoutLinkedMediaLayout),g.B(this,K),K.MN(this.S),K.init(lG("flyout-cta"),W,this.macros);I=I&&I.videoAdDurationSeconds;J.adBadgeRenderer&&(K=J.adBadgeRenderer,W=g.m(K,L7),W!=null?(K=new Te(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,!1),g.B(this,K),K.MN(this.W),K.init(lG("ad-badge"), W,this.macros),this.G=K.element):(W=K.simpleAdBadgeRenderer,W==null&&(W={text:{text:"Anuncio",isTemplated:!1}}),K=new Z1(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,!0),g.B(this,K),K.MN(this.W),K.init(lG("simple-ad-badge"),W,this.macros)));J.adPodIndex&&(W=g.m(J.adPodIndex,HUW),W!=null&&(K=new Hh(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),g.B(this,K),K.MN(this.W),K.init(lG("ad-pod-index"),W)));J.adDurationRemaining&&!J.showWithoutLinkedMediaLayout&&(W=J.adDurationRemaining.adDurationRemainingRenderer, W==null&&(W={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),I=new Ge(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.K,I,!1),g.B(this,I),I.MN(this.W),I.init(lG("ad-duration-remaining"),W,this.macros));J.adInfoRenderer&&(I=g.m(J.adInfoRenderer,BA))&&(W=new Xo(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.element,void 0,!1),g.B(this,W),this.G!==null?this.W.insertBefore(W.element,this.G.nextSibling):W.MN(this.W), W.init(lG("ad-info-hover-text-button"),I,this.macros));J.visitAdvertiserRenderer&&(I=g.m(J.visitAdvertiserRenderer,g.rD))&&(W=this.api.J(),W=g.xK(W)&&W.Y("embeds_embc3ds_atb")&&W.Y("embeds_embc3ds_atb_no_visinfo"),K=IvL(this)&&this.T&&!W?this.T:this.W)&&(W=new Uo(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),g.B(this,W),W.MN(K),W.init(lG("visit-advertiser"),I,this.macros),L0(W.element),I=v0(W.element),zt(W.element,I+" This link opens in new tab"));!(I=this.api.J())||g.Ee(I)||g.xK(I)|| I.controlsType!="3"&&!I.disableOrganicUi||(q=new RK(this.api,this.K,q,!1),q.MN(this.SZ),g.B(this,q));J.adDisclosureBannerRenderer&&(J=g.m(J.adDisclosureBannerRenderer,TXL))&&(q=new VS(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),q.MN(this.sI),q.init(lG("ad-disclosure-banner"),J),g.B(this,q));this.api.J().Y("enable_updated_html5_player_focus_style")&&g.lK(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; bT.prototype.clear=function(){this.hide()};oK.prototype.set=function(W,J,K){K=K!==void 0?Date.now()+K:void 0;this.W.set(W,J,K)}; oK.prototype.get=function(W){return this.W.get(W)}; oK.prototype.remove=function(W){this.W.remove(W)};var SWL=null;var Yq=null,so=null,ch=null,DbQ=null;g.Yc("yt.www.ads.eventcache.getLastCompanionData",function(){return Yq}); g.Yc("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Yc("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return so}); g.Yc("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return ch}); g.Yc("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return DbQ});var fvT=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);Ph.prototype.handleResponse=function(W,J){if(!J)throw Error("request needs to be passed into ConsistencyService");var K,I;J=((K=J.EJ.context)==null?void 0:(I=K.request)==null?void 0:I.consistencyTokenJars)||[];var q;(W=(q=W.responseContext)==null?void 0:q.consistencyTokenJar)&&this.replace(J,W)}; Ph.prototype.replace=function(W,J){W=g.d(W);for(var K=W.next();!K.done;K=W.next())delete this.W[K.value.encryptedTokenJarContents];t2L(this,J)};var znx=window.location.hostname.split(".").slice(-2).join("."),Gk;We.getInstance=function(){Gk=g.sH("yt.clientLocationService.instance");Gk||(Gk=new We,g.Yc("yt.clientLocationService.instance",Gk));return Gk}; g.u=We.prototype; g.u.setLocationOnInnerTubeContext=function(W){W.client||(W.client={});if(this.W)W.client.locationInfo||(W.client.locationInfo={}),W.client.locationInfo.latitudeE7=Math.floor(this.W.coords.latitude*1E7),W.client.locationInfo.longitudeE7=Math.floor(this.W.coords.longitude*1E7),W.client.locationInfo.horizontalAccuracyMeters=Math.round(this.W.coords.accuracy),W.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.G||this.locationPlayabilityToken)W.client.locationPlayabilityToken=this.G|| this.locationPlayabilityToken}; g.u.handleResponse=function(W){var J;W=(J=W.responseContext)==null?void 0:J.locationPlayabilityToken;W!==void 0&&(this.locationPlayabilityToken=W,this.W=void 0,g.Yf("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Xb(this))&&this.localStorage.set("yt-location-playability-token",W,15552E3):g.ED("YT_CL",JSON.stringify({loctok:W}),15552E3,znx,!0))}; g.u.clearLocationPlayabilityToken=function(W){W==="TVHTML5"?(this.localStorage=Xb(this))&&this.localStorage.remove("yt-location-playability-token"):g.Rv("YT_CL");this.G=void 0;this.K!==-1&&(clearTimeout(this.K),this.K=-1)}; g.u.getCurrentPositionFromGeolocation=function(){var W=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var J=!1,K=1E4;g.Yf("INNERTUBE_CLIENT_NAME")==="MWEB"&&(J=!0,K=15E3);return new Promise(function(I,q){navigator.geolocation.getCurrentPosition(function(S){W.W=S;I(S)},function(S){q(S)},{enableHighAccuracy:J, maximumAge:0,timeout:K})})}; g.u.createUnpluggedLocationInfo=function(W){var J={};W=W.coords;if(W==null?0:W.latitude)J.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)J.longitudeE7=Math.floor(W.longitude*1E7);if(W==null?0:W.accuracy)J.locationRadiusMeters=Math.round(W.accuracy);return J}; g.u.createLocationInfo=function(W){var J={};W=W.coords;if(W==null?0:W.latitude)J.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)J.longitudeE7=Math.floor(W.longitude*1E7);return J};g.u=dbX.prototype;g.u.contains=function(W){return Object.prototype.hasOwnProperty.call(this.W,W)}; g.u.get=function(W){if(this.contains(W))return this.W[W]}; g.u.set=function(W,J){this.W[W]=J}; g.u.Oa=function(){return Object.keys(this.W)}; g.u.remove=function(W){delete this.W[W]};JI.prototype.getModuleId=function(W){return g.E(W.serviceId.getModuleId())}; JI.prototype.get=function(W){a:{var J=g.E(this.mappings.get(W.toString()));switch(J.type){case "mapping":W=J.value;break a;case "factory":J=J.value();this.mappings.set(W.toString(),{type:"mapping",value:J});W=J;break a;default:W=PX(J)}}return W}; JI.prototype.registerService=function(W,J){this.mappings.set(W.toString(),{type:"mapping",value:J});return W}; new JI;var $C={},ycc=($C.WEB_UNPLUGGED="^unplugged/",$C.WEB_UNPLUGGED_ONBOARDING="^unplugged/",$C.WEB_UNPLUGGED_OPS="^unplugged/",$C.WEB_UNPLUGGED_PUBLIC="^unplugged/",$C.WEB_CREATOR="^creator/",$C.WEB_KIDS="^kids/",$C.WEB_EXPERIMENTS="^experiments/",$C.WEB_MUSIC="^music/",$C.WEB_REMIX="^music/",$C.WEB_MUSIC_EMBEDDED_PLAYER="^music/",$C.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",$C);qC.prototype.j=function(W,J,K){J=J===void 0?{}:J;K=K===void 0?j2:K;var I={context:g.iI(W.clickTrackingParams,!1,this.T)};var q=this.K(W);if(q){this.W(I,q,J);var S;J=g.IC(this.G());(q=(S=g.m(W.commandMetadata,g.dB))==null?void 0:S.apiUrl)&&(J=q);S=fGX(bX(J));W=Object.assign({},{command:W},void 0);I={input:S,UO:B7(S),EJ:I,config:W};I.config.gi?I.config.gi.identity=K:I.config.gi={identity:K};return I}K=new g.vd("Error: Failed to create Request from Command.",W);g.Va(K)}; g.pv.Object.defineProperties(qC.prototype,{T:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.N(S0,qC);g.N(uI,S0);uI.prototype.j=function(){return{input:"/getDatasyncIdsEndpoint",UO:B7("/getDatasyncIdsEndpoint","GET"),EJ:{}}}; uI.prototype.G=function(){return[]}; uI.prototype.K=function(){}; uI.prototype.W=function(){};var vj$={},iIv=(vj$.GET_DATASYNC_IDS=Kc(uI),vj$);var xC={},Yhj=(xC["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",xC["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",xC["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",xC["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",xC["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",xC["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",xC["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", xC["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",xC["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",xC["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",xC["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",xC["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",xC["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",xC["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",xC["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", xC["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",xC["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",xC["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",xC["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",xC["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",xC["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",xC["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", xC["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",xC.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",xC["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",xC["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",xC["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",xC["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",xC["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",xC["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", xC["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",xC["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",xC["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",xC["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",xC["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",xC["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",xC["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",xC["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",xC["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",xC["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",xC.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",xC["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",xC["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",xC["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",xC["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",xC["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",xC["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",xC["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",xC["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",xC["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",xC["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",xC["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",xC["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",xC["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",xC["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",xC["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",xC["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",xC["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",xC["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",xC["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",xC["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",xC["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", xC["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",xC["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",xC["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",xC["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",xC["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",xC["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",xC["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",xC["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",xC["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", xC["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",xC["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",xC["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",xC["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",xC["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",xC["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",xC["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",xC["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", xC),O2={},ggy=(O2.auto_search="LATENCY_ACTION_AUTO_SEARCH",O2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",O2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",O2.app_startup="LATENCY_ACTION_APP_STARTUP",O2.browse="LATENCY_ACTION_BROWSE",O2.cast_splash="LATENCY_ACTION_CAST_SPLASH",O2.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",O2.channels="LATENCY_ACTION_CHANNELS",O2.chips="LATENCY_ACTION_CHIPS",O2.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",O2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", O2.editor="LATENCY_ACTION_EDITOR",O2.embed="LATENCY_ACTION_EMBED",O2.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",O2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",O2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",O2.explore="LATENCY_ACTION_EXPLORE",O2.favorites="LATENCY_ACTION_FAVORITES",O2.home="LATENCY_ACTION_HOME",O2.inboarding="LATENCY_ACTION_INBOARDING",O2.landing="LATENCY_ACTION_LANDING",O2.library="LATENCY_ACTION_LIBRARY",O2.live= "LATENCY_ACTION_LIVE",O2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",O2.management="LATENCY_ACTION_MANAGEMENT",O2.mini_app="LATENCY_ACTION_MINI_APP_PLAY",O2.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",O2.onboarding="LATENCY_ACTION_ONBOARDING",O2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",O2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",O2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",O2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", O2.prebuffer="LATENCY_ACTION_PREBUFFER",O2.prefetch="LATENCY_ACTION_PREFETCH",O2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",O2.profile_switcher="LATENCY_ACTION_LOGIN",O2.projects="LATENCY_ACTION_PROJECTS",O2.reel_watch="LATENCY_ACTION_REEL_WATCH",O2.results="LATENCY_ACTION_RESULTS",O2.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",O2.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",O2.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",O2.review="LATENCY_ACTION_REVIEW",O2.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",O2.search_ui="LATENCY_ACTION_SEARCH_UI",O2.search_suggest="LATENCY_ACTION_SUGGEST",O2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",O2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",O2.seek="LATENCY_ACTION_PLAYER_SEEK",O2.settings="LATENCY_ACTION_SETTINGS",O2.store="LATENCY_ACTION_STORE",O2.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",O2.tenx="LATENCY_ACTION_TENX",O2.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",O2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", O2.watch="LATENCY_ACTION_WATCH",O2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",O2["watch,watch7"]="LATENCY_ACTION_WATCH",O2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",O2["watch,watch7ad"]="LATENCY_ACTION_WATCH",O2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",O2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",O2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",O2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",O2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",O2.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",O2.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",O2.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",O2.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",O2);Object.assign(ggy,Yhj);g.N(MC,fC);var rcc=new hc("aft-recorded",MC);var sX$=g.vH.ytLoggingGelSequenceIdObj_||{};g.Yc("ytLoggingGelSequenceIdObj_",sX$);var $M=g.vH.ytLoggingLatencyUsageStats_||{};g.Yc("ytLoggingLatencyUsageStats_",$M);gR.prototype.tick=function(W,J,K,I){xM(this,"tick_"+W+"_"+J)||g.AF("latencyActionTicked",{tickName:W,clientActionNonce:J},{timestamp:K,cttAuthInfo:I})}; gR.prototype.info=function(W,J,K){var I=Object.keys(W).join("");xM(this,"info_"+I+"_"+J)||(W=Object.assign({},W),W.clientActionNonce=J,g.AF("latencyActionInfo",W,{cttAuthInfo:K}))}; gR.prototype.jspbInfo=function(W,J,K){for(var I="",q=0;q=q.length?(J.append(q),W-=q.length):W?(J.append(new Uint8Array(q.buffer,q.byteOffset,W)),K.append(new Uint8Array(q.buffer,q.byteOffset+W,q.length-W)),W=0):K.append(q);return{O5:J,bJ:K}}; g.u.isFocused=function(W){return W>=this.uv&&W=64&&(this.S.set(W.subarray(0,64-this.K),this.K),J=64-this.K,this.K=0,oLy(this,this.S,0));for(;J+64<=K;J+=64)oLy(this,W,J);J=this.start&&(W=2&&K.ssdaiAdsConfig&&tq("Unexpected ad placement renderers length",W.slot,null,{length:I.length});var q;((q=K.adSlots)==null?0:q.some(function(S){var p,n;return((p=g.m(S,kt))==null?void 0:(n=p.adSlotMetadata)==null?void 0:n.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||I.some(function(S){var p,n,A,D; return!!((p=S.renderer)==null?0:(n=p.linearAdSequenceRenderer)==null?0:(A=n.linearAds)==null?0:A.length)||!((D=S.renderer)==null||!D.instreamVideoAdRenderer)})||fbH(W)})}; Dj.prototype.Np=function(){PsQ(this.W)};jU.prototype.Qh=function(){var W=this;cmA(this.K,function(){var J=nQ(W.slot.clientMetadata,"metadata_type_ad_break_request_data");return J.cueProcessedMs?W.W.get().fetch({fT:J.getAdBreakUrl,Qf:new g.p9(J.w0,J.hA),cueProcessedMs:J.cueProcessedMs}):W.W.get().fetch({fT:J.getAdBreakUrl,Qf:new g.p9(J.w0,J.hA)})})}; jU.prototype.Np=function(){PsQ(this.K)};f9.prototype.Qh=function(){var W=this.slot.clientMetadata,J,K=(J=this.slot.fulfilledLayout)!=null?J:nQ(W,"metadata_type_fulfilled_layout");$_Q(this.callback,this.slot,K)}; f9.prototype.Np=function(){Uv(this.callback,this.slot,new Y("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")};tN.prototype.build=function(W,J){return J.fulfilledLayout||hN(J,{sA:["metadata_type_fulfilled_layout"]})?new f9(W,J):this.G(W,J)};g.N(FZ,tN); FZ.prototype.G=function(W,J){if(hN(J,{sA:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Dj(W,J,this.W,this.K,this.f7,this.gw,this.iO,this.cS,this.Ql);if(hN(J,{sA:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new jU(W,J,this.W,this.K,this.f7,this.gw);throw new Y("Unsupported slot with type: "+J.slotType+" and client metadata: "+AA(J.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.N(a3,tN);a3.prototype.G=function(W,J){throw new Y("Unsupported slot with type: "+J.slotType+" and client metadata: "+AA(J.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.u=h_D.prototype;g.u.kt=function(){return this.slot}; g.u.NN=function(){return this.layout}; g.u.init=function(){}; g.u.release=function(){}; g.u.startRendering=function(W){if(W.layoutId!==this.layout.layoutId)this.callback.u1(this.slot,W,new pQ("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 J=nQ(W.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.UT(this.slot,W),xMQ(this.G, this.slot,J)):tq("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,W)}}; g.u.RB=function(W,J){W.layoutId!==this.layout.layoutId?this.callback.u1(this.slot,W,new pQ("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.Mv(this.slot,W,J),FJH(this),abX(this))};g.N(U8,g.Ao);g.u=U8.prototype;g.u.kt=function(){return this.K.slot}; g.u.NN=function(){return this.K.layout}; g.u.init=function(){this.G.get().addListener(this)}; g.u.release=function(){this.G.get().removeListener(this);this.dispose()}; g.u.oS=function(){}; g.u.Na=function(){}; g.u.D3=function(){}; g.u.iS=function(){}; g.u.startRendering=function(W){var J=this;y3(this.K,W,function(){return void J.dU()})}; g.u.dU=function(){this.G.get().dU(this.W)}; g.u.RB=function(W,J){var K=this;y3(this.K,W,function(){var I=K.G.get();hgX(I,K.W,3);K.W=[];K.callback.Mv(K.slot,W,J)})}; g.u.lO=function(){this.G.Iu()||this.G.get().removeListener(this);g.Ao.prototype.lO.call(this)}; g.pv.Object.defineProperties(U8.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.K.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.K.layout}}});$9.prototype.nQ=function(W,J){J=J===void 0?!1:J;var K=(this.G.get(W)||[]).concat();if(J=J&&yov(W)){var I=this.G.get(J);I&&K.push.apply(K,g.w(I))}TX(this,W,K);this.W.add(W);J&&this.W.add(J)}; $9.prototype.H7=function(W,J){J=J===void 0?!1:J;if(!this.W.has(W)){var K=J&&yov(W);K&&(J=!this.W.has(K));this.nQ(W,J)}};g.N(QEH,n$);g.N(R3,U8);g.u=R3.prototype;g.u.Qq=function(W,J){wF("ads-engagement-panel-layout",W,R8(this.S.get()),this.iO.get(),this.T,this.j,this.kt(),this.NN(),J)}; g.u.startRendering=function(W){Q3(this.py,this.kt(),this.NN(),g.m(this.NN().renderingContent,j5),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(J,K,I,q,S){return new QEH(J,K,I,q,S)},this.W); U8.prototype.startRendering.call(this,W)}; g.u.UT=function(W,J){this.j===J.layoutId&&(this.T===null?this.T=this.iO.get().Xj():tq("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.Mv=function(){}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.rK=function(){}; g.u.lO=function(){dJ(this.uU(),this);U8.prototype.lO.call(this)};g.N(w3I,n$);g.N(bQ,U8);g.u=bQ.prototype;g.u.Qq=function(W,J){wF("banner-image",W,R8(this.S.get()),this.iO.get(),this.T,this.j,this.kt(),this.NN(),J)}; g.u.startRendering=function(W){Q3(this.py,this.kt(),this.NN(),g.m(this.NN().renderingContent,AP),this.callback,"metadata_type_banner_image_layout_view_model",function(J,K,I,q,S){return new w3I(J,K,I,q,S)},this.W); U8.prototype.startRendering.call(this,W)}; g.u.UT=function(W,J){this.j===J.layoutId&&(this.T===null?this.T=this.iO.get().Xj():tq("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.Mv=function(){}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.rK=function(){}; g.u.lO=function(){dJ(this.uU(),this);U8.prototype.lO.call(this)};g.N(Bj,n$);g.N(mM,U8);g.u=mM.prototype;g.u.Qq=function(W,J){wF("action-companion",W,R8(this.S.get()),this.iO.get(),this.T,this.j,this.kt(),this.NN(),J)}; g.u.startRendering=function(W){Q3(this.py,this.kt(),this.NN(),g.m(this.NN().renderingContent,p_),this.callback,"metadata_type_action_companion_ad_renderer",function(J,K,I,q,S){return new Bj(J,K,I,q,S)},this.W); U8.prototype.startRendering.call(this,W)}; g.u.UT=function(W,J){J.layoutId===this.layout.layoutId?this.py.H7("impression"):this.j===J.layoutId&&(this.T===null?this.T=this.iO.get().Xj():tq("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.Mv=function(){}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.rK=function(){}; g.u.lO=function(){dJ(this.uU(),this);U8.prototype.lO.call(this)};g.N(Glv,n$);g.N(rF,U8);g.u=rF.prototype;g.u.Qq=function(W,J){wF("image-companion",W,R8(this.S.get()),this.iO.get(),this.T,this.j,this.kt(),this.NN(),J)}; g.u.startRendering=function(W){Q3(this.py,this.kt(),this.NN(),g.m(this.NN().renderingContent,lo),this.callback,"metadata_type_image_companion_ad_renderer",function(J,K,I,q,S){return new Glv(J,K,I,q,S)},this.W); U8.prototype.startRendering.call(this,W)}; g.u.UT=function(W,J){J.layoutId===this.layout.layoutId?this.py.H7("impression"):this.j===J.layoutId&&(this.T===null?this.T=this.iO.get().Xj():tq("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.Mv=function(){}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.rK=function(){}; g.u.lO=function(){dJ(this.uU(),this);U8.prototype.lO.call(this)};g.N(x4Q,n$);g.N(o3,U8);g.u=o3.prototype;g.u.Qq=function(W,J){wF("shopping-companion",W,R8(this.S.get()),this.iO.get(),this.T,this.j,this.kt(),this.NN(),J)}; g.u.startRendering=function(W){Q3(this.py,this.kt(),this.NN(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(J,K,I,q,S){return new x4Q(J,K,I,q,S)},this.W); U8.prototype.startRendering.call(this,W)}; g.u.UT=function(W,J){J.layoutId===this.layout.layoutId?this.py.H7("impression"):this.j===J.layoutId&&(this.T===null?this.T=this.iO.get().Xj():tq("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.Mv=function(){}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.rK=function(){}; g.u.lO=function(){dJ(this.uU(),this);U8.prototype.lO.call(this)};g.N(k9,U8);g.u=k9.prototype;g.u.startRendering=function(W){Q3(this.py,this.kt(),this.NN(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(J,K,I,q,S){return new Bj(J,K,I,q,S)},this.W); U8.prototype.startRendering.call(this,W)}; g.u.UT=function(){}; g.u.Mv=function(){}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.rK=function(){}; g.u.lO=function(){dJ(this.uU(),this);U8.prototype.lO.call(this)}; g.u.Qq=function(){};g.u=e_H.prototype;g.u.kt=function(){return this.slot}; g.u.NN=function(){return this.layout}; g.u.init=function(){this.cS.get().addListener(this);this.cS.get().yZ.push(this);var W=nQ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=nQ(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");MJ(this.layout.ET)&&iv(this.QP.get(),this.layout.layoutId,{g1:J,J3:W,listener:this})}; g.u.release=function(){this.cS.get().removeListener(this);pK0(this.cS.get(),this);MJ(this.layout.ET)&&JC(this.QP.get(),this.layout.layoutId)}; g.u.startRendering=function(W){this.callback.UT(this.slot,W)}; g.u.RB=function(W,J){xcA(this.gw.get())&&!this.W&&(this.py.H7("abandon"),this.W=!0);this.callback.Mv(this.slot,W,J)}; g.u.BY=function(W){switch(W.id){case "part2viewed":this.py.H7("start");this.py.H7("impression");break;case "videoplaytime25":this.py.H7("first_quartile");break;case "videoplaytime50":this.py.H7("midpoint");break;case "videoplaytime75":this.py.H7("third_quartile");break;case "videoplaytime100":xcA(this.gw.get())?this.W||(this.py.H7("complete"),this.W=!0):this.py.H7("complete");eU(this.py)&&V3(this.py,Infinity,!0);O6D(this.gw.get())&&L9(this.K,Infinity,!0);break;case "engagedview":eU(this.py)||this.py.H7("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:tq("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.u.onVolumeChange=function(){}; g.u.nw=function(){}; g.u.jE=function(){}; g.u.wq=function(){}; g.u.onFullscreenToggled=function(){}; g.u.m1=function(){}; g.u.OW=function(){}; g.u.WL=function(W){O6D(this.gw.get())&&L9(this.K,W*1E3,!1);eU(this.py)&&V3(this.py,W*1E3,!1)}; g.u.Nd=function(){}; g.u.bz=function(){this.py.H7("active_view_measurable")}; g.u.Jt=function(){this.py.H7("active_view_viewable")}; g.u.Ft=function(){this.py.H7("active_view_fully_viewable_audible_half_duration")}; g.u.Hs=function(){this.py.H7("audio_measurable")}; g.u.ke=function(){this.py.H7("audio_audible")};g.N(zX,U8);g.u=zX.prototype;g.u.init=function(){U8.prototype.init.call(this);var W=g.E(nQ(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),J={adsClientData:this.layout.OT};this.W.push(new QS(W,this.layout.layoutId,nQ(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),J,!0))}; g.u.Bh=function(){this.T||this.cS.get().resumeVideo(1)}; g.u.startRendering=function(W){U8.prototype.startRendering.call(this,W);n7(this.cS.get(),"ad-showing");this.callback.UT(this.slot,W);this.j.E_=this}; g.u.RB=function(W,J){U8.prototype.RB.call(this,W,J);AC(this.cS.get(),"ad-showing");Yy(this.j,this)}; g.u.Qq=function(W){switch(W){case "ad-info-icon-button":(this.T=this.cS.get().Lp(1))||this.cS.get().pauseVideo();break;case "visit-advertiser":this.cS.get().pauseVideo()}}; g.u.lO=function(){U8.prototype.lO.call(this)};g.N(vj,n$);g.N(Y9,U8);g.u=Y9.prototype;g.u.startRendering=function(W){Q3(this.py,this.kt(),this.NN(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(J,K,I,q,S){return new vj(J,K,I,q,S)},this.W); U8.prototype.startRendering.call(this,W)}; g.u.UT=function(){}; g.u.Mv=function(){}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.rK=function(){}; g.u.lO=function(){dJ(this.uU(),this);U8.prototype.lO.call(this)}; g.u.Qq=function(){};g.N(s8,n$);g.N(cj,U8);cj.prototype.init=function(){U8.prototype.init.call(this);this.W.push(new s8(g.m(this.layout.renderingContent,HA),this.layout.layoutId,{adsClientData:this.layout.OT}))}; cj.prototype.Qq=function(){bf(this.T.get(),this.j)&&C9(this.iO.get(),3)}; cj.prototype.startRendering=function(W){U8.prototype.startRendering.call(this,W);this.callback.UT(this.slot,W)}; cj.prototype.lO=function(){U8.prototype.lO.call(this)};g.N(Pj,n$);g.N(XZ,U8);XZ.prototype.init=function(){U8.prototype.init.call(this);var W=g.m(this.layout.renderingContent,jp)||nQ(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),J=Zj(this.py);this.W.push(new Pj(W,J,this.layout.layoutId,{adsClientData:this.layout.OT},!0,!0))}; XZ.prototype.startRendering=function(W){U8.prototype.startRendering.call(this,W);this.callback.UT(this.slot,W)}; XZ.prototype.Qq=function(W,J){if(J===this.layout.layoutId)switch(W){case "skip-button":var K;(W=(K=nQ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:K.current)&&W.V4(this.kt(),this.layout)}}; XZ.prototype.lO=function(){U8.prototype.lO.call(this)};i1.prototype.build=function(W,J,K,I){if(WW(I,{sA:["metadata_type_ad_break_response_data"],Fv:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new h_D(W,K,I,this.K,this.G,this.W);throw new pQ("Unsupported layout with type: "+I.layoutType+" and client metadata: "+AA(I.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.N(B4Q,n$);g.N(Jy,U8);g.u=Jy.prototype;g.u.Qq=function(W,J){wF("ads-engagement-panel",W,R8(this.S.get()),this.iO.get(),this.T,this.j,this.kt(),this.NN(),J)}; g.u.startRendering=function(W){Q3(this.py,this.kt(),this.NN(),g.m(this.NN().renderingContent,n_),this.callback,"metadata_type_ads_engagement_panel_renderer",function(J,K,I,q,S){return new B4Q(J,K,I,q,S)},this.W); U8.prototype.startRendering.call(this,W)}; g.u.UT=function(W,J){J.layoutId===this.layout.layoutId?this.py.H7("impression"):this.j===J.layoutId&&(this.T===null?this.T=this.iO.get().Xj():tq("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.Mv=function(){}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.rK=function(){}; g.u.lO=function(){dJ(this.uU(),this);U8.prototype.lO.call(this)};g.N(KB,U8);g.u=KB.prototype;g.u.Qq=function(W,J){wF("top-banner-image-text-icon-buttoned",W,R8(this.S.get()),this.iO.get(),this.T,this.j,this.kt(),this.NN(),J)}; g.u.startRendering=function(W){Q3(this.py,this.kt(),this.NN(),g.m(this.NN().renderingContent,DZ),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(J,K,I,q,S){return new vj(J,K,I,q,S)},this.W); U8.prototype.startRendering.call(this,W)}; g.u.UT=function(W,J){this.j===J.layoutId&&(this.T===null?this.T=this.iO.get().Xj():tq("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.Mv=function(){}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.rK=function(){}; g.u.lO=function(){dJ(this.uU(),this);U8.prototype.lO.call(this)};oTQ.prototype.build=function(W,J,K,I){if(WW(I,m4H())||g.m(I.renderingContent,n_)!==void 0)return new Jy(W,K,I,this.lU,this.iO,this.uU,this.QP,this.W);if(WW(I,gTy())||g.m(I.renderingContent,p_)!==void 0)return new mM(W,K,I,this.lU,this.iO,this.uU,this.QP,this.W);if(WW(I,$4I())||g.m(I.renderingContent,lo)!==void 0)return new rF(W,K,I,this.lU,this.iO,this.uU,this.QP,this.W);if(WW(I,O$I()))return new o3(W,K,I,this.lU,this.iO,this.uU,this.QP,this.W);if(WW(I,ETQ()))return new k9(W,K,I,this.lU,this.iO,this.uU, this.QP,this.W);if(WW(I,MVL())||g.m(I.renderingContent,AP)!==void 0)return new bQ(W,K,I,this.lU,this.iO,this.uU,this.QP,this.W);if(WW(I,ro0())||g.m(I.renderingContent,DZ)!==void 0)return new KB(W,K,I,this.lU,this.iO,this.uU,this.QP,this.W);if(WW(I,R_Q()))return new Y9(W,K,I,this.lU,this.iO,this.uU,this.QP,this.W);if(WW(I,CGA())||g.m(I.renderingContent,j5)!==void 0)return new R3(W,K,I,this.lU,this.iO,this.uU,this.QP,this.W);throw new pQ("Unsupported layout with type: "+I.layoutType+" and client metadata: "+ AA(I.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};LJQ.prototype.build=function(W,J,K,I){if(WW(I,{sA:["metadata_type_linked_player_bytes_layout_id"],Fv:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new cj(W,K,I,this.lU,this.iO,this.W);throw new pQ("Unsupported layout with type: "+I.layoutType+" and client metadata: "+AA(I.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.u=klA.prototype;g.u.kt=function(){return this.slot}; g.u.NN=function(){return this.layout}; g.u.init=function(){}; g.u.release=function(){}; g.u.startRendering=function(W){W.layoutId!==this.layout.layoutId?this.callback.u1(this.slot,W,new pQ("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.UT(this.slot,W),this.py.H7("impression"),c5(this.hC,W,"normal"))}; g.u.RB=function(W,J){W.layoutId!==this.layout.layoutId?this.callback.u1(this.slot,W,new pQ("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.Mv(this.slot,W,J)};g.u=vTH.prototype;g.u.kt=function(){return this.slot}; g.u.NN=function(){return this.layout}; g.u.init=function(){}; g.u.release=function(){}; g.u.startRendering=function(W){W.layoutId!==this.layout.layoutId?this.callback.u1(this.slot,W,new pQ("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.UT(this.slot,W),this.py.H7("impression"),c5(this.hC,W,"normal"))}; g.u.RB=function(W,J){W.layoutId!==this.layout.layoutId?this.callback.u1(this.slot,W,new pQ("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.Mv(this.slot,W,J)};Is.prototype.build=function(W,J,K,I){if(!this.gw.get().X.J().Y("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(WW(I,z_v()))return new klA(W,K,I,this.iO,this.hC)}else if(WW(I,{sA:[],Fv:["LAYOUT_TYPE_FORECASTING"]}))return new vTH(W,K,I,this.iO,this.hC);throw new pQ("Unsupported layout with type: "+I.layoutType+" and client metadata: "+AA(I.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.N(coH,n$);g.N(qd,U8);g.u=qd.prototype;g.u.init=function(){U8.prototype.init.call(this);var W=g.m(this.layout.renderingContent,DE)||g.E(nQ(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer")),J={adsClientData:this.layout.OT};this.W.push(new coH(W,nQ(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,J))}; g.u.Bh=function(){this.T||this.cS.get().resumeVideo(2)}; g.u.startRendering=function(W){U8.prototype.startRendering.call(this,W);this.callback.UT(this.slot,W);this.j.E_=this}; g.u.RB=function(W,J){U8.prototype.RB.call(this,W,J);Yy(this.j,this)}; g.u.Qq=function(W,J){if(!XV(this.gw.get(),"stop_handling_click_for_non_rendering_overlay_layout")||J===this.layout.layoutId){if(bf(this.S.get(),this.Z))switch(W){case "visit-advertiser-link":C9(this.iO.get(),3)}switch(W){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.T||this.cS.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.T=this.cS.get().Lp(2))||this.cS.get().pauseVideo();break; case "visit-advertiser-link":this.cS.get().pauseVideo();g.E(PGD(this)).qj();break;case "skip-button":if(W=PGD(this),this.layout.renderingContent&&!IA(this.layout.clientMetadata,"metadata_type_dai")||!W.FJ){var K;(W=(K=nQ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:K.current)&&W.V4(this.kt(),this.layout)}else tq("Requesting to skip by LegacyPlayerBytes when components enabled"),W.fW(this.kt(),this.layout)}}}; g.u.lO=function(){U8.prototype.lO.call(this)};g.N(Sp,U8);g.u=Sp.prototype;g.u.init=function(){U8.prototype.init.call(this);var W=g.m(this.layout.renderingContent,Ay)||g.E(nQ(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),J={adsClientData:this.layout.OT},K;(K=!!this.layout.renderingContent)||(K=!pB(this).FJ);this.W.push(new QS(W,this.layout.layoutId,nQ(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),J,K))}; g.u.Bh=function(){this.T||this.cS.get().resumeVideo(2)}; g.u.startRendering=function(W){U8.prototype.startRendering.call(this,W);this.callback.UT(this.slot,W);this.j.E_=this}; g.u.RB=function(W,J){U8.prototype.RB.call(this,W,J);Yy(this.j,this)}; g.u.Qq=function(W,J){if(!this.gw||!XV(this.gw.get(),"stop_handling_click_for_non_rendering_overlay_layout")||J===this.layout.layoutId){if(bf(this.S.get(),this.Z))switch(W){case "visit-advertiser":C9(this.iO.get(),3)}switch(W){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.T||this.cS.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.T=this.cS.get().Lp(2))||this.cS.get().pauseVideo();break; case "visit-advertiser":this.cS.get().pauseVideo();g.E(pB(this)).qj();break;case "skip-button":if(W=pB(this),this.layout.renderingContent&&!IA(this.layout.clientMetadata,"metadata_type_dai")||!W.FJ){var K;(W=(K=nQ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:K.current)&&W.V4(this.kt(),this.layout)}else tq("Requesting to skip by LegacyPlayerBytes"),W.fW(this.kt(),this.layout)}}}; g.u.lO=function(){U8.prototype.lO.call(this)};g.N(WnH,n$);g.N(l1,U8);g.u=l1.prototype;g.u.startRendering=function(W){var J=this;y3(this.K,W,function(){J.W.push(new WnH(nQ(J.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),W.layoutId,W.OT));J.dU();J.callback.UT(J.slot,W);g.z(WJ(J.cS.get(),1),512)&&J.callback.u1(J.kt(),J.NN(),new pQ("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.u.OW=function(){}; g.u.m1=function(W){if(W.state.isError()){var J;this.callback.u1(this.kt(),this.NN(),new pQ("A player error happened during adNotify",{playerErrorCode:(J=W.state.tS)==null?void 0:J.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.u.onFullscreenToggled=function(){}; g.u.jE=function(){}; g.u.wq=function(){}; g.u.nw=function(){}; g.u.onVolumeChange=function(){}; g.u.BY=function(){}; g.u.Nd=function(){}; g.u.Qq=function(){};g.N(JqH,n$);g.N(nB,U8);nB.prototype.init=function(){U8.prototype.init.call(this);var W=g.m(this.layout.renderingContent,fB),J=Zj(this.py);this.W.push(new JqH(W,J,this.layout.layoutId,{adsClientData:this.layout.OT}))}; nB.prototype.startRendering=function(W){U8.prototype.startRendering.call(this,W);this.callback.UT(this.slot,W)}; nB.prototype.Qq=function(W,J){if(J===this.layout.layoutId)switch(W){case "skip-button":var K;(W=(K=nQ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:K.current)&&W.V4(this.kt(),this.layout)}}; nB.prototype.lO=function(){U8.prototype.lO.call(this)};Knv.prototype.build=function(W,J,K,I){if(W=hy(W,K,I,this.lU,this.cS,this.iO,this.K,this.W,this.gw))return W;throw new pQ("Unsupported layout with type: "+I.layoutType+" and client metadata: "+AA(I.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.u=as.prototype;g.u.kt=function(){return this.slot}; g.u.NN=function(){return this.layout}; g.u.init=function(){this.cS.get().addListener(this);this.cS.get().yZ.push(this);if(this.layout.renderingContent){var W=this.dw.get();W=UQ(W,1).oh/1E3}else W=nQ(this.layout.clientMetadata,"metadata_type_video_length_seconds");var J=g.m(this.layout.renderingContent,xt),K=J?gF(J.pings):nQ(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");J=J?d4L(J.pings):nQ(this.layout.clientMetadata,"metadata_type_active_view_identifier");MJ(this.layout.ET)&&iv(this.QP.get(),this.layout.layoutId, {g1:K,J3:W,listener:this,h8:J})}; g.u.release=function(){this.cS.get().removeListener(this);pK0(this.cS.get(),this);MJ(this.layout.ET)&&JC(this.QP.get(),this.layout.layoutId)}; g.u.startRendering=function(W){this.callback.UT(this.slot,W)}; g.u.RB=function(W,J){u1(this,"abandon");this.callback.Mv(this.slot,W,J)}; g.u.BY=function(W){switch(W.id){case "part2viewed":this.py.H7("start");this.py.H7("impression");break;case "videoplaytime25":this.py.H7("first_quartile");break;case "videoplaytime50":this.py.H7("midpoint");break;case "videoplaytime75":this.py.H7("third_quartile");break;case "videoplaytime100":u1(this,"complete");eU(this.py)&&V3(this.py,Infinity,!0);break;case "engagedview":eU(this.py)||this.py.H7("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:tq("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.u.onVolumeChange=function(){}; g.u.nw=function(){}; g.u.jE=function(){}; g.u.wq=function(){}; g.u.onFullscreenToggled=function(){}; g.u.m1=function(W){this.W||(g.uT(W,4)&&!g.uT(W,2)?Hj(this.py,"pause"):aK(W,4)<0&&!(aK(W,2)<0)&&Hj(this.py,"resume"))}; g.u.OW=function(){}; g.u.WL=function(W){eU(this.py)&&V3(this.py,W*1E3,!1)}; g.u.Nd=function(){u1(this,"swipe")}; g.u.bz=function(){this.py.H7("active_view_measurable")}; g.u.Jt=function(){this.py.H7("active_view_viewable")}; g.u.Ft=function(){this.py.H7("active_view_fully_viewable_audible_half_duration")}; g.u.Hs=function(){this.py.H7("audio_measurable")}; g.u.ke=function(){this.py.H7("audio_audible")};I1T.prototype.build=function(W,J,K,I){if(K.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.m(I.renderingContent,xt)!==void 0)return new as(W,K,I,this.cS,this.iO,this.gw,this.QP,this.dw);J=["metadata_type_ad_placement_config"];for(var q=g.d(x9()),S=q.next();!S.done;S=q.next())J.push(S.value);if(WW(I,{sA:J,Fv:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return K.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new as(W,K,I,this.cS,this.iO,this.gw,this.QP,this.dw):new e_H(W,K,I,this.cS,this.iO, this.Yt,this.gw,this.QP);throw new pQ("Unsupported layout with type: "+I.layoutType+" and client metadata: "+AA(I.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var QO={contentCpn:"",wy:new Map};hbQ.prototype.ub=function(W,J){var K={};J=Object.assign({},J,(K.cc=this.Pw.Tr(),K));this.Pw.X.WS(W,J)};var hdp,eD; hdp={w$8:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",f43:"AUTHENTICATION_MALFORMED",Rq3:"AUTHENTICATION_MISSING",P2y:"BAD_REQUEST",VaO:"CAST_SESSION_DEVICE_MISMATCHED",XYW:"CAST_SESSION_VIDEO_MISMATCHED",MaI:"CAST_TOKEN_EXPIRED",vh8:"CAST_TOKEN_FAILED",clK:"CAST_TOKEN_MALFORMED",aBh:"CGI_PARAMS_MALFORMED",Smg:"CGI_PARAMS_MISSING",nhZ:"DEVICE_FALLBACK",Mzs:"GENERIC_WITH_LINK_AND_CPN",vRI:"ERROR_HDCP",cOI:"LICENSE",Sdw:"VIDEO_UNAVAILABLE",ZAW:"FORMAT_UNAVAILABLE",wjg:"GEO_FAILURE", LJg:"HTML5_AUDIO_RENDERER_ERROR",zGS:"GENERIC_WITHOUT_LINK",UYW:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",eGO:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",CvO:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",fyZ:"HTML5_SPS_UMP_STATUS_REJECTED",Gr0:"INVALID_DRM_MESSAGE",zlw:"PURCHASE_NOT_FOUND",Ug3:"PURCHASE_REFUNDED",PVI:"RENTAL_EXPIRED",QrW:"RETRYABLE_ERROR",Sag:"SERVER_ERROR",hFK:"SIGNATURE_EXPIRED",tBw:"STOPPED_BY_ANOTHER_PLAYBACK",A2w:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",y28:"STREAMING_NOT_ALLOWED", pgu:"STREAM_LICENSE_NOT_FOUND",L4S:"TOO_MANY_REQUESTS",zFs:"TOO_MANY_REQUESTS_WITH_LINK",UXS:"TOO_MANY_STREAMS_PER_ENTITLEMENT",eFZ:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",xVs:"VIDEO_FORBIDDEN",jWh:"VIDEO_NOT_FOUND",ghS:"BROWSER_OR_EXTENSION_ERROR"};eD={}; g.m8=(eD.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.",eD.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",eD.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", eD.LICENSE="Se produjo un error de licencia con este video.",eD.VIDEO_UNAVAILABLE="Video no disponible",eD.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",eD.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",eD.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",eD.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",eD.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",eD.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",eD.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",eD.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", eD.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",eD.PURCHASE_NOT_FOUND="Este es un video pagado.",eD.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",eD.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",eD.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",eD.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", eD.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",eD.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",eD.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",eD.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",eD.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",eD.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",eD.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",eD.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",eD.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", eD.TOO_MANY_REQUESTS="Accede para mirar el video.",eD.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",eD.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",eD.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",eD.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", eD.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",eD.VIDEO_NOT_FOUND="No se puede encontrar este video.",eD.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",eD);var t4L;var FSr=g.CU(),aKl=FSr.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!aKl||aKl.length<2)t4L=void 0;else{var uwL=FSr.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);t4L=uwL&&uwL.length===6?Number(uwL[5].replace("_",".")):0}var zG=t4L,E0=zG>=0;g.N(g.BW,gi);g.BW.prototype.D=function(W,J,K,I,q){return gi.prototype.D.call(this,W,J,K,I,q)};var RS={},Cs=(RS.FAIRPLAY="fairplay",RS.PLAYREADY="playready",RS.WIDEVINE="widevine",RS.CLEARKEY=null,RS.FLASHACCESS=null,RS.UNKNOWN=null,RS.WIDEVINE_CLASSIC=null,RS);mv.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var bO={},Oq=(bO.WIDTH={name:"width",video:!0,valid:640,kD:99999},bO.HEIGHT={name:"height",video:!0,valid:360,kD:99999},bO.FRAMERATE={name:"framerate",video:!0,valid:30,kD:9999},bO.BITRATE={name:"bitrate",video:!0,valid:3E5,kD:2E9},bO.EOTF={name:"eotf",video:!0,valid:"bt709",kD:"catavision"},bO.CHANNELS={name:"channels",video:!1,valid:2,kD:99},bO.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",kD:"invalidformat"},bO.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", kD:"nope"},bO.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",kD:"av99.0.05M.08"},bO.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",kD:"invalid"},bO);var NMl=["h","H"],dOG=["9","("],yLp=["9h","(h"],UOW=["8","*"],Zoe=["a","A"],Qir=["o","O"],C5v=["m","M"],wov=["mac3","MAC3"],M4o=["meac3","MEAC3"],BE={},deD=(BE.h=NMl,BE.H=NMl,BE["9"]=dOG,BE["("]=dOG,BE["9h"]=yLp,BE["(h"]=yLp,BE["8"]=UOW,BE["*"]=UOW,BE.a=Zoe,BE.A=Zoe,BE.o=Qir,BE.O=Qir,BE.m=C5v,BE.M=C5v,BE.mac3=wov,BE.MAC3=wov,BE.meac3=M4o,BE.MEAC3=M4o,BE),gp$=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),DdX=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var X={},vW=(X["0"]="f",X["160"]="h",X["133"]="h",X["134"]="h",X["135"]="h",X["136"]="h",X["137"]="h",X["264"]="h",X["266"]="h",X["138"]="h",X["298"]="h",X["299"]="h",X["304"]="h",X["305"]="h",X["214"]="h",X["216"]="h",X["374"]="h",X["375"]="h",X["140"]="a",X["141"]="a",X["327"]="sa",X["258"]="m",X["380"]="mac3",X["328"]="meac3",X["161"]="H",X["142"]="H",X["143"]="H",X["144"]="H",X["222"]="H",X["223"]="H",X["145"]="H",X["224"]="H",X["225"]="H",X["146"]="H",X["226"]="H",X["227"]="H",X["147"]="H",X["384"]= "H",X["376"]="H",X["385"]="H",X["377"]="H",X["149"]="A",X["261"]="M",X["381"]="MAC3",X["329"]="MEAC3",X["598"]="9",X["278"]="9",X["242"]="9",X["243"]="9",X["244"]="9",X["775"]="9",X["776"]="9",X["777"]="9",X["778"]="9",X["779"]="9",X["780"]="9",X["781"]="9",X["782"]="9",X["783"]="9",X["247"]="9",X["248"]="9",X["353"]="9",X["355"]="9",X["356"]="9",X["271"]="9",X["577"]="9",X["313"]="9",X["579"]="9",X["272"]="9",X["302"]="9",X["303"]="9",X["407"]="9",X["408"]="9",X["308"]="9",X["315"]="9",X["330"]= "9h",X["331"]="9h",X["332"]="9h",X["333"]="9h",X["334"]="9h",X["335"]="9h",X["336"]="9h",X["337"]="9h",X["338"]="so",X["600"]="o",X["250"]="o",X["251"]="o",X["774"]="o",X["194"]="*",X["195"]="*",X["220"]="*",X["221"]="*",X["196"]="*",X["197"]="*",X["279"]="(",X["280"]="(",X["317"]="(",X["318"]="(",X["273"]="(",X["274"]="(",X["357"]="(",X["358"]="(",X["275"]="(",X["359"]="(",X["360"]="(",X["276"]="(",X["583"]="(",X["584"]="(",X["314"]="(",X["585"]="(",X["561"]="(",X["277"]="(",X["361"]="(h",X["362"]= "(h",X["363"]="(h",X["364"]="(h",X["365"]="(h",X["366"]="(h",X["591"]="(h",X["592"]="(h",X["367"]="(h",X["586"]="(h",X["587"]="(h",X["368"]="(h",X["588"]="(h",X["562"]="(h",X["409"]="(",X["410"]="(",X["411"]="(",X["412"]="(",X["557"]="(",X["558"]="(",X["394"]="1",X["395"]="1",X["396"]="1",X["397"]="1",X["398"]="1",X["399"]="1",X["720"]="1",X["721"]="1",X["400"]="1",X["401"]="1",X["571"]="1",X["402"]="1",X["694"]="1h",X["695"]="1h",X["696"]="1h",X["697"]="1h",X["698"]="1h",X["699"]="1h",X["700"]="1h", X["701"]="1h",X["702"]="1h",X["703"]="1h",X["386"]="3",X["387"]="w",X["406"]="6",X["787"]="1",X["788"]="1",X["548"]="1e",X["549"]="1e",X["550"]="1e",X["551"]="1e",X["809"]="1e",X["810"]="1e",X["552"]="1e",X["811"]="1e",X["812"]="1e",X["553"]="1e",X["813"]="1e",X["814"]="1e",X["554"]="1e",X["815"]="1e",X["816"]="1e",X["555"]="1e",X["817"]="1e",X["818"]="1e",X["572"]="1e",X["556"]="1e",X["645"]="(",X["646"]="(",X["647"]="(",X["648"]="(",X["649"]="(",X["650"]="(",X["651"]="(",X["652"]="(",X["653"]="(", X["654"]="(",X["655"]="(",X["656"]="(",X["657"]="(",X["658"]="(",X["659"]="(",X["660"]="(",X["661"]="(",X["662"]="(",X["663"]="(",X["664"]="(",X["665"]="(",X["666"]="(",X["667"]="(",X["668"]="(",X["669"]="(",X["670"]="(",X["671"]="(",X["672"]="(",X["673"]="(",X["674"]="(h",X["675"]="(h",X["676"]="(h",X["677"]="(h",X["678"]="(h",X["679"]="(h",X["680"]="(h",X["681"]="(h",X["682"]="(h",X["683"]="(h",X["684"]="(h",X["685"]="(h",X["686"]="(h",X["687"]="(h",X["688"]="A",X["689"]="A",X["690"]="A",X["691"]= "MEAC3",X["773"]="i",X["806"]="I",X["805"]="I",X["829"]="9",X["830"]="9",X["831"]="9",X["832"]="9",X["833"]="9",X["834"]="9",X["835"]="9",X["836"]="9",X["837"]="9",X["838"]="9",X["839"]="9",X["840"]="9",X["841"]="(",X["842"]="(",X["843"]="(",X["844"]="(",X["845"]="(",X["846"]="(",X["847"]="(",X["848"]="(",X["849"]="(",X["850"]="(",X["851"]="(",X["852"]="(",X["865"]="9",X["866"]="9",X["867"]="9",X["868"]="9",X["869"]="9",X["870"]="9",X["871"]="9",X["872"]="9",X["873"]="9",X["874"]="9",X["875"]="9", X["876"]="9",X["877"]="(",X["878"]="(",X["879"]="(",X["880"]="(",X["881"]="(",X["882"]="(",X["883"]="(",X["884"]="(",X["885"]="(",X["886"]="(",X["887"]="(",X["888"]="(",X);var mC={},iFQ=(mC.STEREO_LAYOUT_UNKNOWN=0,mC.STEREO_LAYOUT_LEFT_RIGHT=1,mC.STEREO_LAYOUT_TOP_BOTTOM=2,mC);var rB,uS;rB={};g.os=(rB.auto=0,rB.tiny=144,rB.light=144,rB.small=240,rB.medium=360,rB.large=480,rB.hd720=720,rB.hd1080=1080,rB.hd1440=1440,rB.hd2160=2160,rB.hd2880=2880,rB.highres=4320,rB);uS={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var km="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");LB.prototype.isHdr=function(){return this.W==="smpte2084"||this.W==="arib-std-b67"};Ym.prototype.Pt=function(){return this.containerType===2}; Ym.prototype.isEncrypted=function(){return!!this.aB}; Ym.prototype.SF=function(){return!!this.audio}; Ym.prototype.kC=function(){return!!this.video}; var PW=!1;g.N(Ny,g.Ao);g.u=Ny.prototype;g.u.appendBuffer=function(W,J,K){if(this.fk.cO()!==this.appendWindowStart+this.start||this.fk.Hx()!==this.appendWindowEnd+this.start||this.fk.nE()!==this.timestampOffset+this.start)this.fk.supports(1),this.fk.zj(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.fk.T6(this.timestampOffset+this.start);this.fk.appendBuffer(W,J,K)}; g.u.abort=function(){this.fk.abort()}; g.u.remove=function(W,J){this.fk.remove(W+this.start,J+this.start)}; g.u.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.u.clear=function(){this.fk.clear()}; g.u.zj=function(W,J){this.appendWindowStart=W;this.appendWindowEnd=J}; g.u.Z3=function(){return this.timestampOffset+this.start}; g.u.cO=function(){return this.appendWindowStart}; g.u.Hx=function(){return this.appendWindowEnd}; g.u.T6=function(W){this.timestampOffset=W}; g.u.nE=function(){return this.timestampOffset}; g.u.UA=function(W){W=this.fk.UA(W===void 0?!1:W);return ur(W,this.start,this.end)}; g.u.I5=function(){return this.fk.I5()}; g.u.x4=function(){return this.fk.x4()}; g.u.iA=function(){return this.fk.iA()}; g.u.KK=function(){return this.fk.KK()}; g.u.YN=function(){this.fk.YN()}; g.u.T9=function(W){return this.fk.T9(W)}; g.u.NC=function(){return this.fk.NC()}; g.u.RP=function(){return this.fk.RP()}; g.u.fJ=function(){return this.fk.fJ()}; g.u.nT=function(W,J,K){this.fk.nT(W,J,K)}; g.u.qS=function(W,J,K){this.fk.qS(W,J,K)}; g.u.J1=function(W,J){return this.fk.J1(W,J)}; g.u.supports=function(W){return this.fk.supports(W)}; g.u.Wy=function(){return this.fk.Wy()}; g.u.isView=function(){return!0}; g.u.Px=function(){return this.fk.Px()?this.isActive:!1}; g.u.isLocked=function(){return this.LO&&!this.isActive}; g.u.RZ=function(W){W=this.fk.RZ(W);W.vw=this.start+"-"+this.end;return W}; g.u.uS=function(){return this.fk.uS()}; g.u.G_=function(){return this.fk.G_()}; g.u.Sy=function(){return this.fk.Sy()}; g.u.lO=function(){this.fk.Sc(this.tE);g.Ao.prototype.lO.call(this)};var Ux=!1;g.N(yk,g.Ao);g.u=yk.prototype;g.u.appendBuffer=function(W,J,K){this.Zq=!1;K&&(this.S6=K);if(W.length){var I;((I=this.wl)==null?0:I.appendBuffer)?this.wl.appendBuffer(W):this.wl?this.wl.append(W):this.BP&&this.BP.webkitSourceAppend(this.id,W)}J&&(J.isEncrypted()&&(this.Zh=this.S6),J.type===3&&(this.fP=J),this.cn.push(J.XD()),this.cn.length>4&&this.cn.shift());this.Wl&&(this.Wl.length>=2||W.length>1048576?delete this.Wl:this.Wl.push(W))}; g.u.abort=function(){try{this.wl?this.wl.abort():this.BP&&this.BP.webkitSourceAbort(this.id)}catch(J){if(utc){var W=new g.vd("Error while abort the source buffer: "+J.name+", "+J.message);g.Va(W)}}this.S6=this.fP=null}; g.u.remove=function(W,J,K){this.Zq=!1;var I;if((I=this.wl)==null?0:I.remove)K&&K({b:D0(this.UA()),s:W,e:J}),this.wl.remove(W,J)}; g.u.removeAll=function(){this.remove(this.cO(),this.Hx())}; g.u.clear=function(){this.iA()||(this.abort(),this.removeAll(),this.Zh=this.S6=this.fP=null,this.appendWindowStart=this.timestampOffset=0,this.h9=AM([],[]),this.Zq=!1,this.Wl=dQ?[]:void 0,this.lc=!0)}; g.u.cO=function(){if(Ux&&this.kC)return this.appendWindowStart;var W;return((W=this.wl)==null?void 0:W.appendWindowStart)||0}; g.u.Hx=function(){var W;return((W=this.wl)==null?void 0:W.appendWindowEnd)||0}; g.u.zj=function(W,J){this.wl&&(Ux&&this.kC?(this.appendWindowStart=W,this.wl.appendWindowEnd=J):W>this.cO()?(this.wl.appendWindowEnd=J,this.wl.appendWindowStart=W):(this.wl.appendWindowStart=W,this.wl.appendWindowEnd=J))}; g.u.Z3=function(){return this.timestampOffset}; g.u.T6=function(W){Ux?this.timestampOffset=W:this.supports(1)&&(this.wl.timestampOffset=W)}; g.u.nE=function(){return Ux?this.timestampOffset:this.supports(1)?this.wl.timestampOffset:0}; g.u.UA=function(W){if(W===void 0?0:W)return this.Zq||this.I5()||(this.h9=this.UA(!1),this.Zq=!0),this.h9;try{return this.wl?this.wl.buffered:this.BP?this.BP.webkitSourceBuffered(this.id):AM([0],[Infinity])}catch(J){return AM([],[])}}; g.u.I5=function(){var W;return((W=this.wl)==null?void 0:W.updating)||!1}; g.u.iA=function(){return this.lc}; g.u.KK=function(){return!this.lc&&this.I5()}; g.u.YN=function(){this.lc=!1}; g.u.T9=function(W){var J=W==null?void 0:W.z8;W=W==null?void 0:W.containerType;return!J&&!W||J===this.z8&&W===this.containerType}; g.u.NC=function(){return this.S6}; g.u.RP=function(){return this.Zh}; g.u.J1=function(W,J){return this.containerType!==W||this.z8!==J}; g.u.nT=function(W,J,K){if(this.containerType!==W||K&&this.J1(W,K))this.supports(4),UE()&&this.wl.changeType(J),K&&(this.z8=K);this.containerType=W}; g.u.qS=function(W,J,K){this.containerType&&this.J1(W,J)&&UE()&&this.wl.changeType(K);this.containerType=W;this.z8=J}; g.u.Wy=function(){return this.fP}; g.u.isView=function(){return!1}; g.u.supports=function(W){switch(W){case 1:var J;return((J=this.wl)==null?void 0:J.timestampOffset)!==void 0;case 0:var K;return!((K=this.wl)==null||!K.appendBuffer);case 2:var I;return!((I=this.wl)==null||!I.remove);case 3:var q,S;return!!(((q=this.wl)==null?0:q.addEventListener)&&((S=this.wl)==null?0:S.removeEventListener));case 4:return!(!this.wl||!this.wl.changeType);default:return!1}}; g.u.Px=function(){return!this.I5()}; g.u.isLocked=function(){return!1}; g.u.RZ=function(W){W.to=this.nE();W.up=this.I5();var J,K=((J=this.wl)==null?void 0:J.appendWindowStart)||0,I;J=((I=this.wl)==null?void 0:I.appendWindowEnd)||Infinity;W.aw=K.toFixed(3)+"-"+J.toFixed(3);return W}; g.u.x4=function(){var W;return((W=this.wl)==null?void 0:W.writeHead)||0}; g.u.uS=function(){for(var W={},J=0;J=7&&t$A(this,function(){g.FW(function(){OiD(W,W.getCurrentTime(),0)},500)}); return J}; g.u.seekTo=function(W){this.uJ()>0&&(E0&&zG<4&&(W=Math.max(.1,W)),this.setCurrentTime(W))}; g.u.AO=function(){if(!this.K&&this.ww)if(this.ww.j)try{var W;PF(this,{l:"mer",sr:(W=this.uO)==null?void 0:W.RH(),rs:W5(this.ww)});this.ww.clear();this.K=this.ww;this.ww=void 0}catch(J){W=new g.vd("Error while clearing Media Source in MediaElement: "+J.name+", "+J.message),g.Va(W),this.stopVideo()}else this.stopVideo()}; g.u.stopVideo=function(){var W=this;if(!this.K){var J;(J=this.ww)==null||Gec(J);if(tqv){if(!this.G){var K=new JO;K.then(void 0,function(){}); this.G=K;FFI&&this.pause();g.FW(function(){W.G===K&&(SK(W),K.resolve())},200)}}else SK(this)}}; g.u.z6=function(){var W=this.qR();return Fr(W)&&this.getDuration()?hM(W,this.getCurrentTime()):0}; g.u.oR=function(){var W=this.getDuration();return W===Infinity?1:W?this.z6()/W:0}; g.u.RZ=function(){try{var W=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:D0(this.pX(),",",3),vbu:D0(this.qR()),vbs:D0(this.M9()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.uJ(),vns:""+this.KR(),vec:""+this.AS(),vemsg:this.gK(),vvol:""+this.getVolume(),vdom:""+ +this.Ep(),vsrc:""+ +!!this.Kw(),vw:""+W.width,vh:""+W.height}}catch(J){return{}}}; g.u.hasError=function(){return this.AS()>0}; g.u.addEventListener=function(W,J){this.T.listen(W,J,!1,this);this.OZ(W)}; g.u.removeEventListener=function(W,J){this.T.aZ(W,J,!1,this)}; g.u.dispatchEvent=function(W){if(this.G&&W.type==="pause")return!1;if(aHQ){var J,K=((J=W.W)==null?void 0:J.timeStamp)||Infinity;J=K>performance.now()?K-Date.now()+performance.now():K;K=this.K||this.ww;if((K==null?0:K.iA())||J<=((K==null?void 0:K.S)||0)){var I;PF(this,{l:"mede",sr:(I=this.uO)==null?void 0:I.RH(),et:W.type});return!1}if(this.N_)return PF(this,{l:"medes",et:W.type}),K&&W.type==="seeking"&&(K.S=performance.now(),this.N_=!1),!1}return this.T.dispatchEvent(W)}; g.u.YH=function(){this.S=!1}; g.u.xH=function(){this.S=!0;this.Gf(!0)}; g.u.Ee=function(){this.S&&!this.s5()&&this.Gf(!0)}; g.u.equals=function(W){return!!W&&W.v7()===this.v7()}; g.u.lO=function(){this.Z&&this.removeEventListener("volumechange",this.Ee);tqv&&SK(this);g.R.prototype.lO.call(this)}; var tqv=!1,FFI=!1,aHQ=!1,V$Q=!1;g.u=g.lp.prototype;g.u.isPaused=function(){return g.z(this,4)}; g.u.isPlaying=function(){return g.z(this,8)&&!g.z(this,512)&&!g.z(this,64)&&!g.z(this,2)}; g.u.isOrWillBePlaying=function(){return g.z(this,8)&&!g.z(this,2)&&!g.z(this,1024)}; g.u.isCued=function(){return g.z(this,64)&&!g.z(this,8)&&!g.z(this,4)}; g.u.isBuffering=function(){return g.z(this,1)&&!g.z(this,2)}; g.u.isError=function(){return g.z(this,128)}; g.u.isSuspended=function(){return g.z(this,512)}; g.u.Pi=function(){return g.z(this,64)&&g.z(this,4)}; g.u.toString=function(){return"PSt."+this.state.toString(16)}; var oS={},Lf=(oS.BUFFERING="buffering-mode",oS.CUED="cued-mode",oS.ENDED="ended-mode",oS.PAUSED="paused-mode",oS.PLAYING="playing-mode",oS.SEEKING="seeking-mode",oS.UNSTARTED="unstarted-mode",oS);g.N(up,g.R);g.u=up.prototype;g.u.dF=function(){return this.G}; g.u.kt=function(){return this.slot}; g.u.NN=function(){return this.layout}; g.u.init=function(){var W=nQ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=nQ(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");MJ(this.layout.ET)&&iv(this.QP.get(),this.layout.layoutId,{g1:J,J3:W,listener:this,qX:this.Vw()});Xxv(this.iO.get(),this);W=this.Fj;J=this.layout.layoutId;var K={qX:this.Vw()};W.W.set(J,K);this.r3()}; g.u.oy=function(){}; g.u.release=function(){MJ(this.layout.ET)&&JC(this.QP.get(),this.layout.layoutId);WpD(this.iO.get(),this);this.Fj.W.delete(this.layout.layoutId);this.Vv()}; g.u.d0=function(){}; g.u.mN=function(){}; g.u.startRendering=function(W){Md(Ne(this));if(dh(this,W)){var J=this.W;gG(J.params.pw.gw.get(),!0)&&f1X(J,"p_sr",{});yo(this);this.hH(W);this.Vw()||this.LF(!1)}}; g.u.UT=function(W,J){if(J.layoutId===this.layout.layoutId){this.CE="rendering";this.K=this.cS.get().isMuted()||this.cS.get().getVolume()===0;this.H7("impression");this.H7("start");if(this.cS.get().isMuted()){Me(this,"mute");var K;W=((K=a5(this))==null?void 0:K.muteCommands)||[];vp(this.Yt.get(),W,this.layout.layoutId)}if(this.cS.get().isFullscreen()){this.nQ("fullscreen");var I;K=((I=a5(this))==null?void 0:I.fullscreenCommands)||[];vp(this.Yt.get(),K,this.layout.layoutId)}this.Vw()||(I=this.xK.get(), I.G&&!I.K&&(I.j=!1,I.K=!0,I.actionType!=="ad_to_video"&&(YM("pbs",void 0,I.actionType),g.yb("finalize_all_timelines")&&vgH(I.actionType))));this.r8(1);this.aI(J);var q;J=((q=a5(this))==null?void 0:q.impressionCommands)||[];vp(this.Yt.get(),J,this.layout.layoutId)}}; g.u.pH=function(W,J,K){this.Z={Mh:3,H3:W==="load_timeout"?402:400,errorMessage:J.message};this.H7("error");var I;W=((I=a5(this))==null?void 0:I.errorCommands)||[];vp(this.Yt.get(),W,this.layout.layoutId);this.Vw()||this.vT.u1(this.slot,this.layout,J,K)}; g.u.DA=function(){if(this.CE==="rendering"){Me(this,"pause");var W,J=((W=a5(this))==null?void 0:W.pauseCommands)||[];vp(this.Yt.get(),J,this.layout.layoutId);this.r8(2)}}; g.u.Ny=function(){if(this.CE==="rendering"){Me(this,"resume");var W,J=((W=a5(this))==null?void 0:W.resumeCommands)||[];vp(this.Yt.get(),J,this.layout.layoutId)}}; g.u.tH=function(W,J){J=J===void 0?!1:J;if(this.CE==="rendering"){var K={currentTimeSec:W,flush:J};Gc(this.W,"p_ip",K);V3(this.py,W*1E3,J);this.K||V3(this.py,W*1E3,J===void 0?!1:J);var I=this.QI();if(I){I/=1E3;if(W>=I*.25||J)this.H7("first_quartile"),Gc(this.W,"p_fq",K);if(W>=I*.5||J)this.H7("midpoint"),Gc(this.W,"p_sq",K);if(W>=I*.75||J)this.H7("third_quartile"),Gc(this.W,"p_tq",K);this.gw.get().X.J().experiments.HS("enable_progress_command_flush_on_kabuki")?L9(this.T,W*1E3,J):L9(this.T,W*1E3,mfX(this)? J:!1)}}}; g.u.Tr=function(){var W;return((W=UQ(this.dw.get(),1))==null?void 0:W.clientPlaybackNonce)||""}; g.u.bI=function(W,J){W.layoutId!==this.layout.layoutId?this.vT.u1(this.slot,W,new pQ("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"):J()}; g.u.Mv=function(W,J,K){if(J.layoutId===this.layout.layoutId)switch(this.CE="not_rendering",this.layoutExitReason=void 0,this.Vw()||(W=K!=="normal"||this.position+1===this.S)&&this.LF(W),this.wR(K),this.r8(0),K){case "abandoned":if(E8(this.py,"impression")){var I,q=((I=a5(this))==null?void 0:I.abandonCommands)||[];vp(this.Yt.get(),q,this.layout.layoutId)}break;case "normal":I=((q=a5(this))==null?void 0:q.completeCommands)||[];vp(this.Yt.get(),I,this.layout.layoutId);break;case "skipped":var S;I=((S= a5(this))==null?void 0:S.skipCommands)||[];vp(this.Yt.get(),I,this.layout.layoutId)}}; g.u.T_=function(){return this.layout.layoutId}; g.u.qT=function(){return this.Z}; g.u.bz=function(){if(this.CE==="rendering"){this.py.H7("active_view_measurable");var W,J=((W=a5(this))==null?void 0:W.activeViewMeasurableCommands)||[];vp(this.Yt.get(),J,this.layout.layoutId)}}; g.u.Ft=function(){if(this.CE==="rendering"){this.py.H7("active_view_fully_viewable_audible_half_duration");var W,J=((W=a5(this))==null?void 0:W.activeViewFullyViewableAudibleHalfDurationCommands)||[];vp(this.Yt.get(),J,this.layout.layoutId)}}; g.u.Jt=function(){if(this.CE==="rendering"){this.py.H7("active_view_viewable");var W,J=((W=a5(this))==null?void 0:W.activeViewViewableCommands)||[];vp(this.Yt.get(),J,this.layout.layoutId)}}; g.u.ke=function(){if(this.CE==="rendering"){this.py.H7("audio_audible");var W,J=((W=a5(this))==null?void 0:W.activeViewAudioAudibleCommands)||[];vp(this.Yt.get(),J,this.layout.layoutId)}}; g.u.Hs=function(){if(this.CE==="rendering"){this.py.H7("audio_measurable");var W,J=((W=a5(this))==null?void 0:W.activeViewAudioMeasurableCommands)||[];vp(this.Yt.get(),J,this.layout.layoutId)}}; g.u.LF=function(W){this.xK.get().LF(nQ(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,W,this.position,this.S,!1)}; g.u.onFullscreenToggled=function(W){if(this.CE==="rendering")if(W){this.nQ("fullscreen");var J,K=((J=a5(this))==null?void 0:J.fullscreenCommands)||[];vp(this.Yt.get(),K,this.layout.layoutId)}else this.nQ("end_fullscreen"),J=((K=a5(this))==null?void 0:K.endFullscreenCommands)||[],vp(this.Yt.get(),J,this.layout.layoutId)}; g.u.onVolumeChange=function(){if(this.CE==="rendering")if(this.cS.get().isMuted()){Me(this,"mute");var W,J=((W=a5(this))==null?void 0:W.muteCommands)||[];vp(this.Yt.get(),J,this.layout.layoutId)}else Me(this,"unmute"),W=((J=a5(this))==null?void 0:J.unmuteCommands)||[],vp(this.Yt.get(),W,this.layout.layoutId)}; g.u.jE=function(){}; g.u.wq=function(){}; g.u.nw=function(){}; g.u.BY=function(){}; g.u.Nd=function(){}; g.u.nQ=function(W){this.py.nQ(W,!this.K)}; g.u.H7=function(W){this.py.H7(W,!this.K)}; g.u.Vw=function(){var W=nQ(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return W===void 0?(tq("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.gw.get().Vw(W)};g.N(OQ,up);g.u=OQ.prototype;g.u.r3=function(){}; g.u.Vv=function(){var W=this.iO.get();W.B3===this&&(W.B3=null);this.tD.stop()}; g.u.d0=function(){this.tD.stop();up.prototype.DA.call(this)}; g.u.mN=function(){H5(this);up.prototype.Ny.call(this)}; g.u.QI=function(){return nQ(this.NN().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.u.RB=function(W,J){var K=this;this.bI(W,function(){K.CE!=="rendering_stop_requested"&&(K.CE="rendering_stop_requested",K.layoutExitReason=J,ZO(K,J),K.tD.stop())})}; g.u.ZH=function(){var W=Date.now(),J=W-this.Op;this.Op=W;this.u2+=J;this.u2>=this.QI()?this.dn():(this.tH(this.u2/1E3),Th(this,this.u2))}; g.u.wR=function(){}; g.u.OW=function(){}; g.N(Vo,OQ);g.u=Vo.prototype;g.u.m1=function(W){if(this.CE!=="not_rendering"){W=Qo(this,W);var J=this.cS.get().getPresentingPlayerType()===2;this.CE==="rendering_start_requested"?J&&ty(W)&&this.Q$():J?g.uT(W,2)?tq("Receive player ended event during MediaBreak",this.kt(),this.NN()):CF(this,W):this.Se()}}; g.u.hH=function(){biQ(this);AvQ(this.cS.get());this.iO.get().B3=this;z8("pbp")||z8("pbs")||YM("pbp");z8("pbp","watch")||z8("pbs","watch")||YM("pbp",void 0,"watch");this.Q$()}; g.u.aI=function(W){this.xK.get();var J=nQ(W.clientMetadata,"metadata_type_ad_placement_config").kind,K=this.position===0;W=nQ(W.clientMetadata,"metadata_type_linked_in_player_layout_type");W={adBreakType:wh(J),adType:XhX(W)};var I=void 0;K?J!=="AD_PLACEMENT_KIND_START"&&(I="video_to_ad"):I="ad_to_ad";oC("ad_mbs",void 0,I);g.Lc(W,I);H5(this)}; g.u.Se=function(){this.o0()}; g.u.dn=function(){oqy(this);this.o0()}; g.N(EQ,OQ);g.u=EQ.prototype;g.u.m1=function(W){this.CE!=="not_rendering"&&(W=Qo(this,W),CF(this,W))}; g.u.hH=function(){tq("Not used in SSAP")}; g.u.aI=function(){H5(this)}; g.u.Se=function(){tq("Not used in SSAP")}; g.u.dn=function(){oqy(this);this.vT.Rd(this.kt(),this.NN(),"normal")}; g.N(eK,EQ);eK.prototype.RB=function(W,J){var K=this;this.bI(W,function(){US(K.G,J)&&(K.CE="rendering_stop_requested",K.layoutExitReason=J,ZO(K,J),K.tD.stop())})}; eK.prototype.startRendering=function(W){Md(Ne(this));dh(this,W)&&(yo(this),this.iO.get().B3=this)};g.N(B5,up);g.u=B5.prototype;g.u.Se=function(){this.o0()}; g.u.m1=function(W){if(this.CE!=="not_rendering"){W=Qo(this,W);var J=this.cS.get().getPresentingPlayerType()===2;this.CE==="rendering_start_requested"?J&&ty(W)&&this.Q$():!J||g.uT(W,2)?this.o0():CF(this,W)}}; g.u.r3=function(){nQ(this.NN().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=nQ(this.NN().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.u.Vv=function(){nQ(this.NN().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.tQ){var W=this.context.pw,J=this.tQ,K=this.NN().layoutId;if(gG(W.gw.get(),!0)){var I={};W.ub("mccru",(I.cid=J,I.p_ac=K,I))}this.hp.get().removeCueRange(this.tQ)}this.tQ=void 0;var q;(q=this.MK)==null||q.dispose();this.MA&&this.MA.dispose()}; g.u.hH=function(W){var J=R5(this.gw.get()),K=bp(this.gw.get());if(J&&K&&!this.Vw()){K=nQ(W.clientMetadata,"metadata_type_preload_player_vars");var I=this.gw.get();I=g.FV(I.X.J().experiments,"html5_preload_wait_time_secs");K&&this.MA&&this.MA.start(I*1E3)}zb0(this,W);biQ(this);J?(K=this.Vl.get(),W=nQ(W.clientMetadata,"metadata_type_player_vars"),K.X.loadVideoByPlayerVars(W,!1,2)):Z6Q(this.Vl.get(),nQ(W.clientMetadata,"metadata_type_player_vars"));var q;(q=this.MK)==null||q.start();J||this.Vl.get().X.playVideo(2)}; g.u.aI=function(){var W;(W=this.MK)==null||W.stop();this.tQ="adcompletioncuerange:"+this.NN().layoutId;this.hp.get().addCueRange(this.tQ,0x7ffffffffffff,0x8000000000000,!1,this,2,2);W=this.context.pw;var J=this.tQ,K=this.NN().layoutId;if(gG(W.gw.get(),!0)){var I={};W.ub("mccr",(I.cid=J,I.p_ac=K,I))}(this.adCpn=RbD(this))||tq("Media layout confirmed started, but ad CPN not set.");this.HN.get().kW("onAdStart",this.adCpn);this.Y1=Date.now()}; g.u.QI=function(){var W;return(W=UQ(this.dw.get(),2))==null?void 0:W.oh}; g.u.qj=function(){this.py.nQ("clickthrough")}; g.u.RB=function(W,J){var K=this;this.bI(W,function(){if(K.CE!=="rendering_stop_requested"){K.CE="rendering_stop_requested";K.layoutExitReason=J;ZO(K,J);var I;(I=K.MK)==null||I.stop();K.MA&&K.MA.stop();vqv(K)}})}; g.u.onCueRangeEnter=function(W){if(W!==this.tQ)tq("Received CueRangeEnter signal for unknown layout.",this.kt(),this.NN(),{cueRangeId:W});else{var J=this.context.pw,K=this.NN().layoutId;if(gG(J.gw.get(),!0)){var I={};J.ub("mccre",(I.cid=W,I.p_ac=K,I))}this.hp.get().removeCueRange(this.tQ);this.tQ=void 0;XV(this.context.gw.get(),"html5_ssap_flush_at_stop_rendering")&&this.Vw()||(W=nQ(this.NN().clientMetadata,"metadata_type_video_length_seconds"),this.tH(W,!0),this.H7("complete"))}}; g.u.wR=function(W){W!=="abandoned"&&this.HN.get().kW("onAdComplete");this.HN.get().kW("onAdEnd",this.adCpn)}; g.u.onCueRangeExit=function(){}; g.u.OW=function(W){this.CE==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&W>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.cS.get().fg(!0),this.tH(W))}; g.u.tH=function(W,J){up.prototype.tH.call(this,W,J===void 0?!1:J);J=Date.now()-this.Y1;var K=W*1E3,I={contentCpn:this.Tr(),adCpn:RbD(this)};if(W-this.hG>=5){var q=J=2||(this.yl.RB(this.layout,J),W=XV(this.params.context.gw.get(),"html5_ssap_pass_transition_reason")&&J==="abandoned",this.ya()&&!W&&(XV(this.params.context.gw.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(J)||tq("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:J})),this.Ql.get().finishSegmentByCpn(this.layout.layoutId, UQ(this.dw.get(),1).clientPlaybackNonce,Gh(J,this.params.context.gw))),this.cS.get().removeListener(this),this.uC()&&ZE(this.yl.dF())&&this.qw.Mv(this.slot,this.layout,yO(this.yl.dF())))}; g.u.R_=function(W,J,K){DfX({cpn:W,Pw:this.dw.get(),Gq:!0});this.NN().layoutId!==W||XV(this.params.context.gw.get(),"html5_ssap_pass_transition_reason")&&K===5||(dG(this.yl.dF())<2&&(W=$F(K,this.params.context.gw),W==="error"?this.qw.u1(this.slot,this.layout,new pQ("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:K},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):c5(this.Tv,this.layout, W)),XV(this.params.context.gw.get(),"html5_ssap_exit_without_waiting_for_transition")||this.qw.Mv(this.slot,this.layout,yO(this.yl.dF())))};g.N(kF,g.R);g.u=kF.prototype;g.u.kt=function(){return this.slot}; g.u.NN=function(){return this.layout}; g.u.PF=function(){}; g.u.Us=function(){return this.JS[this.T5]}; g.u.Qd=function(){return this.T5}; g.u.d0=function(W,J){var K=this.Us();J.layoutId!==v5(K,W,J)?tq("pauseLayout for a PlayerBytes layout that is not currently active",W,J):K.d0()}; g.u.mN=function(W,J){var K=this.Us();J.layoutId!==v5(K,W,J)?tq("resumeLayout for a PlayerBytes layout that is not currently active",W,J):K.mN()}; g.u.fW=function(W,J){var K=this.Us();Iac(this,W,J);qUD(K,W,J)&&this.Ad(K.kt(),K.NN(),"skipped")}; g.u.V4=function(W,J){var K=this.Us();SUy(this);peQ(K,W,J)&&(W=laX(this,K,W,J),W!==void 0&&(this.Vw()?tq("Should not happen. Should delete"):AIQ(this,K.kt(),K.NN(),W)))}; g.u.MU=function(W,J){var K=Object.assign({},zh(this),{layoutId:J.layoutId}),I=K.layoutId,q=K.Gq;if(K.qX){var S={};wG(K.Pw,"wrse",(S.ec=I,S.is=q,S.ctp=CB(I),S))}xw(this.MV,W,J)}; g.u.UT=function(W,J){var K;(K=this.Us())==null||K.UT(W,J)}; g.u.Mv=function(W,J,K){J.layoutId===this.NN().layoutId&&(this.fX=!1,dJ(this.uU(),this));var I;(I=this.Us())==null||I.Mv(W,J,K)}; g.u.OW=function(W){var J;(J=this.Us())==null||J.OW(W)}; g.u.Y4=function(W,J,K){this.Qd()===-1&&(this.callback.UT(this.slot,this.layout),this.T5++);var I=this.Us();I?(I.pH(W,J,K),this.Vw()&&this.callback.u1(this.slot,this.layout,J,K)):tq("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Qd()),layoutId:this.NN().layoutId})}; g.u.onFullscreenToggled=function(W){var J;(J=this.Us())==null||J.onFullscreenToggled(W)}; g.u.jE=function(W){var J;(J=this.Us())==null||J.jE(W)}; g.u.nw=function(W){var J;(J=this.Us())==null||J.nw(W)}; g.u.onVolumeChange=function(){var W;(W=this.Us())==null||W.onVolumeChange()}; g.u.zm=function(W,J,K){Ov(this.MV,W,J,K)}; g.u.iF=function(W){W.startRendering(W.NN())}; g.u.init=function(){var W=nQ(this.NN().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");W&&(W.current=this);if(this.JS.length<1)throw new Y("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.JS.length)});if(W=nQ(this.NN().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))W.current=this;W=g.d(this.JS);for(var J=W.next();!J.done;J=W.next())J=J.value,J.init(),x_y(this.MV,this.slot,J.NN()),OJc(this.MV,this.slot,J.NN()); if(this.Vw())for(this.dw.get().addListener(this),qoc(KuQ(this),this.dw.get()),W=KuQ(this),W=g.d(W),J=W.next();!J.done;J=W.next())this.vH(J.value)}; g.u.vH=function(W){var J=nQ(W.clientMetadata,"metadata_type_player_vars");J?(W.layoutType!=="LAYOUT_TYPE_MEDIA"&&tq("Non-video ad contains playerVars",this.slot,W),this.Vl.get().addPlayerResponseForAssociation({playerVars:J})):(W=WuH(W),this.Vl.get().addPlayerResponseForAssociation({Xk:W}))}; g.u.release=function(){var W=nQ(this.NN().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");W&&(W.current=null);if(W=nQ(this.NN().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))W.current=null;W=g.d(this.JS);for(var J=W.next();!J.done;J=W.next())J=J.value,TT0(this.MV,this.slot,J.NN()),J.release();this.Vw()&&(this.dw.get().removeListener(this),SoX())}; g.u.bI=function(W){return W.layoutId!==this.NN().layoutId?(this.callback.u1(this.kt(),W,new pQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.NN().layoutId+("and LayoutType: "+this.NN().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.u.pF=function(){this.cS.get().addListener(this);NT(this.uU(),this)}; g.u.m1=function(W){if(W.state.isError()){var J,K;this.Y4((J=W.state.tS)==null?void 0:J.errorCode,new pQ("There was a player error during this media layout.",{playerErrorCode:(K=W.state.tS)==null?void 0:K.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(J=this.Us())&&J.m1(W)}; g.u.Vw=function(){var W=nQ(this.kt().clientMetadata,"metadata_type_eligible_for_ssap");return W===void 0?(tq("Expected SSAP eligibility in PlayerBytes slots",this.kt(),this.NN()),!1):this.gw.get().Vw(W)}; g.u.wq=function(){}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.rK=function(){}; g.u.BY=function(){}; g.u.Nd=function(){}; g.N(P5,kF);g.u=P5.prototype;g.u.cG=function(W,J,K){this.Ad(W,J,K)}; g.u.vG=function(W,J){this.Ad(W,J,"error")}; g.u.Ad=function(W,J,K){var I=this;nMH(this,W,J,K,function(){YF(I,I.Qd()+1)})}; g.u.startRendering=function(W){this.bI(W)&&(this.pF(),dcv(this.xK.get()),GHv(this.gw.get())||AvQ(this.cS.get()),this.Qd()===-1&&YF(this,this.Qd()+1))}; g.u.RB=function(W,J){var K=this;this.fX=!0;this.Qd()===this.JS.length?this.callback.Mv(this.slot,this.layout,J):(W=this.Us(),W.RB(W.NN(),J),this.ul=function(){K.callback.Mv(K.slot,K.layout,J)}); Da0(this.cS.get());Z6Q(this.Vl.get(),{});W=WJ(this.cS.get(),1);W.isPaused()&&!g.z(W,2)&&this.cS.get().playVideo();this.cS.get().removeListener(this);this.fX&&DCL(this)}; g.u.R_=function(){}; g.u.Co=function(){}; g.u.Rd=function(){}; g.N(Xg,kF);g.u=Xg.prototype;g.u.cG=function(W,J,K){W=Object.assign({},zh(this),{layoutId:J.layoutId,layoutExitReason:K});J=W.layoutId;K=W.layoutExitReason;var I={};wG(W.Pw,"prse",(I.xc=J,I.ler=K,I.ctp=CB(J),I))}; g.u.vG=function(){tq("onSubLayoutError in SSAP")}; g.u.Ad=function(){tq("exitSubLayoutAndPlayNext in SSAP")}; g.u.Us=function(){return this.Mu}; g.u.Qd=function(){var W=this;return this.JS.findIndex(function(J){var K;return J.NN().layoutId===((K=W.Mu)==null?void 0:K.NN().layoutId)})}; g.u.iF=function(W){hq(this.Mu===void 0,"replacing another adapter");this.Mu=W;W.startRendering(W.NN())}; g.u.zm=function(W,J,K){Ov(this.MV,W,J,K);var I;hq(J.layoutId===((I=this.Mu)==null?void 0:I.NN().layoutId),"currentAdapter does not match exiting layout",{slot:W?"slot: "+W.slotType:"",subLayout:fi(J)})&&(this.Mu=void 0)}; g.u.release=function(){kF.prototype.release.call(this);hq(this.Mu===void 0,"currentAdapter is still active during release");this.Mu=void 0}; g.u.ya=function(){return this.cS.get().getPresentingPlayerType()===2}; g.u.RB=function(W,J){function K(){WT(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(J)||tq("Composite stopRendering: Unexpected layout exit reason",this.slot,W,{layoutExitReason:J}))} function I(){this.Mu&&JV(this,this.Mu,J);if(this.ya()&&(!WT(this)||J!=="abandoned")){K.call(this);var S;var p=((S=this.dw.get().X.getVideoData())==null?void 0:S.clientPlaybackNonce)||"";S=UQ(this.dw.get(),1).clientPlaybackNonce;this.Ql.get().finishSegmentByCpn(p,S,Gh(J,this.gw))}jCL(this,J)} function q(){if(this.Mu){var S=this.Mu;dG(S.dF())<2&&S.RB(S.NN(),J);S=WT(this)&&J==="abandoned";this.ya()&&!S&&(K.call(this),this.Ql.get().finishSegmentByCpn(this.Mu.NN().layoutId,UQ(this.dw.get(),1).clientPlaybackNonce,Gh(J,this.gw)))}} hq(W.layoutId===this.NN().layoutId,"StopRendering for wrong layout")&&US(this.aO.K,J)&&(this.uC()?I.call(this):q.call(this))}; g.u.Mv=function(W,J,K){kF.prototype.Mv.call(this,W,J,K);J.layoutId===this.NN().layoutId&&this.cS.get().removeListener(this)}; g.u.Tr=function(){return UQ(this.dw.get(),1).clientPlaybackNonce}; g.u.R_=function(W,J,K){DfX(Object.assign({},zh(this),{cpn:W}));if(!WT(this)||K!==5)if(this.uC()){if(this.Mu&&this.Mu.NN().layoutId!==J){var I=this.Mu.NN().layoutId;I!==W&&tq("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:I,exitingCpn:W,enteringCpn:J});W=$F(K,this.gw);JV(this,this.Mu,W)}else this.Mu&&tq("onClipExited: active layout is entering again");J===this.Tr()&&hFQ(this,K)}else{if(this.Mu&&this.Mu.NN().layoutId===W)faT(this,this.Mu,K);else{var q;tq("Exiting cpn does not match active cpn", this.slot,(I=this.Mu)==null?void 0:I.NN(),{exitingCpn:W,transitionReason:K,activeCpn:(q=this.Mu)==null?void 0:q.NN().layoutId})}J===this.Tr()&&(this.Mu!==void 0&&(tq("active adapter is not properly exited",this.slot,this.layout,{activeLayout:fi(this.Mu.NN())}),faT(this,this.Mu,K)),hFQ(this,K),jCL(this,this.aO.K.W))}}; g.u.uC=function(){return XV(this.gw.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.u.startRendering=function(W){this.bI(W)&&(W=this.aO,hq(W.W===1,"tickStartRendering: state is not initial"),W.W=2,this.pF())}; g.u.Co=function(W){Aqy(Object.assign({},zh(this),{cpn:W}));var J=this.JS.find(function(K){return K.NN().layoutId===W}); J?(this.aO.W!==2&&(cUA(this.cD,this.slot.slotId),hq(this.aO.W===2,"Expect started"),this.callback.UT(this.slot,this.layout)),this.iF(J),xw(this.MV,this.slot,J.NN())):t0X(this,W)}; g.u.fW=function(W,J){Iac(this,W,J);var K=this.Us();K?qUD(K,W,J)&&FuQ(this,"skipped"):aaD(this,"onSkipRequested")}; g.u.V4=function(W,J){var K;a:{if(K=this.Us()){if(SUy(this),peQ(K,W,J)&&(W=laX(this,K,W,J),W!==void 0)){K={Oj:K,QXh:this.JS[W]};break a}}else aaD(this,"SkipWithAdPodSkip");K=void 0}if(W=K)K=W.Oj,J=W.QXh,W=K.NN().layoutId,this.uC()?JV(this,K,"skipped"):K.RB(K.NN(),"skipped"),K=J.NN().layoutId,this.Ql.get().finishSegmentByCpn(W,K,Gh("skipped",this.gw))}; g.u.MU=function(){tq("Not used in html5_ssap_fix_layout_exit")}; g.u.m1=function(W){var J;(J=this.Us())==null||J.m1(W)}; g.u.Y4=function(){tq("Not used in html5_ssap_fix_layout_exit")}; g.u.Rd=function(W,J,K){var I;if(((I=this.Us())==null?void 0:I.NN().layoutId)!==J.layoutId)return void tq("requestToExitSubLayout: wrong layout");FuQ(this,K)};g.N(KP,g.R);g.u=KP.prototype;g.u.kt=function(){return this.yl.kt()}; g.u.NN=function(){return this.yl.NN()}; g.u.init=function(){var W=nQ(this.NN().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");W&&(W.current=this);this.r3()}; g.u.r3=function(){this.yl.init()}; g.u.release=function(){var W=nQ(this.NN().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");W&&(W.current=null);this.Vv()}; g.u.Vv=function(){this.yl.release()}; g.u.d0=function(){this.yl.d0()}; g.u.mN=function(){this.yl.mN()}; g.u.fW=function(W,J){tq("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.kt(),this.NN(),{requestingSlot:W,requestingLayout:J})}; g.u.startRendering=function(W){W.layoutId!==this.NN().layoutId?this.callback.u1(this.kt(),W,new pQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.NN().layoutId+("and LayoutType: "+this.NN().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.cS.get().addListener(this),NT(this.uU(),this),dcv(this.xK.get()),GHv(this.gw.get())||AvQ(this.cS.get()),this.yl.startRendering(W))}; g.u.RB=function(W,J){this.fX=!0;this.yl.RB(W,J);Da0(this.cS.get());Z6Q(this.Vl.get(),{});W=WJ(this.cS.get(),1);W.isPaused()&&!g.z(W,2)&&this.cS.get().playVideo();this.cS.get().removeListener(this);this.fX&&this.yl.Se()}; g.u.UT=function(W,J){this.yl.UT(W,J)}; g.u.Mv=function(W,J,K){J.layoutId===this.NN().layoutId&&(this.fX=!1,dJ(this.uU(),this));this.yl.Mv(W,J,K);J.layoutId===this.NN().layoutId&&sQ(this.xK.get())}; g.u.OW=function(W){this.yl.OW(W)}; g.u.m1=function(W){if(W.state.isError()){var J,K;this.Y4((J=W.state.tS)==null?void 0:J.errorCode,new pQ("There was a player error during this media layout.",{playerErrorCode:(K=W.state.tS)==null?void 0:K.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.yl.m1(W)}; g.u.Y4=function(W,J,K){this.yl.pH(W,J,K)}; g.u.onFullscreenToggled=function(W){this.yl.onFullscreenToggled(W)}; g.u.jE=function(W){this.yl.jE(W)}; g.u.nw=function(W){this.yl.nw(W)}; g.u.onVolumeChange=function(){this.yl.onVolumeChange()}; g.u.wq=function(){}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.rK=function(){}; g.u.BY=function(){}; g.u.Nd=function(){};g.u=I4.prototype;g.u.kt=function(){return this.slot}; g.u.NN=function(){return this.layout}; g.u.init=function(){this.p7.get().addListener(this);this.cS.get().addListener(this);var W=nQ(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var J=nQ(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.T){var K=ady(this.p7.get()).slice(-1)[0];K!==void 0&&(W=K.startSecs*1E3,J=(K.startSecs+K.vt)*1E3)}this.oy(W,J);var I;K=(I=SJ(this.dw.get()))==null?void 0:I.clientPlaybackNonce;I=this.layout.OT.adClientDataEntry;ql(this.iO.get(),{daiStateTrigger:{filledAdsDurationMs:J-W,contentCpn:K, adClientData:I}});var q=this.p7.get();q=dCy(q.G,W,J);q!==null&&(ql(this.iO.get(),{daiStateTrigger:{filledAdsDurationMs:q-W,contentCpn:K,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:I}}),this.Ql.get().iY(q,J))}; g.u.release=function(){this.Vv();this.p7.get().removeListener(this);this.cS.get().removeListener(this)}; g.u.startRendering=function(){this.hH();this.callback.UT(this.slot,this.layout)}; g.u.RB=function(W,J){this.Ex(J);if(this.driftRecoveryMs!==null){W=this.driftRecoveryMs.toString();var K=Math.round(yI0(this)-nQ(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),I=Math,q=I.round;var S=this.cS.get().X.Xg();pP(this,{driftRecoveryMs:W,breakDurationMs:K,driftFromHeadMs:q.call(I,S*1E3).toString()});this.driftRecoveryMs=null}this.callback.Mv(this.slot,this.layout,J)}; g.u.dN=function(){return!1}; g.u.PL=function(W){var J=nQ(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),K=nQ(this.layout.clientMetadata,"metadata_type_layout_exit_ms");W*=1E3;if(J<=W&&W0&&T0(this.W(),J)}; g.u.ZL=function(W){this.j.delete(W.slotId);for(var J=[],K=g.d(this.ib.values()),I=K.next();!I.done;I=K.next()){I=I.value;var q=I.trigger;q instanceof JP&&q.triggeringSlotId===W.slotId&&J.push(I)}J.length>0&&T0(this.W(),J)}; g.u.IX=function(W){for(var J=[],K=g.d(this.ib.values()),I=K.next();!I.done;I=K.next()){I=I.value;var q=I.trigger;q instanceof k$&&q.slotType===W.slotType&&q.W!==W.slotId&&J.push(I)}J.length>0&&T0(this.W(),J)}; g.u.jA=function(W){this.G.add(W.slotId);for(var J=[],K=g.d(this.ib.values()),I=K.next();!I.done;I=K.next())I=I.value,I.trigger instanceof cT&&W.slotId===I.trigger.triggeringSlotId&&J.push(I);J.length>0&&T0(this.W(),J)}; g.u.Ic=function(W){this.G.delete(W.slotId);this.T.add(W.slotId);for(var J=[],K=g.d(this.ib.values()),I=K.next();!I.done;I=K.next())if(I=I.value,I.trigger instanceof PT)W.slotId===I.trigger.triggeringSlotId&&J.push(I);else if(I.trigger instanceof HT){var q=I.trigger;W.slotId===q.slotId&&this.K.has(q.triggeringLayoutId)&&J.push(I)}J.length>0&&T0(this.W(),J)}; g.u.iy=function(W){for(var J=[],K=g.d(this.ib.values()),I=K.next();!I.done;I=K.next())I=I.value,I.trigger instanceof Xa&&W.slotId===I.trigger.triggeringSlotId&&J.push(I);J.length>0&&T0(this.W(),J)}; g.u.Ya=function(W){for(var J=[],K=g.d(this.ib.values()),I=K.next();!I.done;I=K.next())I=I.value,I.trigger instanceof WA&&W.slotId===I.trigger.triggeringSlotId&&J.push(I);J.length>0&&T0(this.W(),J)}; g.u.uy=function(W,J){this.S.add(J.layoutId)}; g.u.Vq=function(W,J){this.S.delete(J.layoutId)}; g.u.UT=function(W,J){this.K.add(J.layoutId);for(var K=[],I=g.d(this.ib.values()),q=I.next();!q.done;q=I.next())if(q=q.value,q.trigger instanceof VX)J.layoutId===q.trigger.triggeringLayoutId&&K.push(q);else if(q.trigger instanceof LP){var S=q.trigger;W.slotType===S.slotType&&J.layoutType===S.layoutType&&J.layoutId!==S.W&&K.push(q)}else q.trigger instanceof HT&&(S=q.trigger,J.layoutId===S.triggeringLayoutId&&this.T.has(S.slotId)&&K.push(q));K.length>0&&T0(this.W(),K)}; g.u.Mv=function(W,J,K){this.K.delete(J.layoutId);W=[];for(var I=g.d(this.ib.values()),q=I.next();!q.done;q=I.next())if(q=q.value,q.trigger instanceof eJ&&J.layoutId===q.trigger.triggeringLayoutId&&W.push(q),q.trigger instanceof EA){var S=q.trigger;J.layoutId===S.triggeringLayoutId&&S.W.includes(K)&&W.push(q)}W.length>0&&T0(this.W(),W)}; g.u.rK=function(){}; g.u.Om=function(){this.T.clear()}; g.u.OQ=function(){};g.N(vz,g.R);vz.prototype.tO=function(W,J,K,I){if(this.ib.has(J.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(J instanceof OA))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in CloseRequestedTriggerAdapter");this.ib.set(J.triggerId,new qB(W,J,K,I))}; vz.prototype.FH=function(W){this.ib.delete(W.triggerId)};g.N(sf,g.R);sf.prototype.tO=function(W,J,K,I){if(this.ib.has(J.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(J instanceof x$||J instanceof vT))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.ib.set(J.triggerId,new qB(W,J,K,I))}; sf.prototype.FH=function(W){this.ib.delete(W.triggerId)}; sf.prototype.Om=function(W){for(var J=[],K=J.push,I=K.apply,q=[],S=g.d(this.ib.values()),p=S.next();!p.done;p=S.next())p=p.value,p.trigger instanceof x$&&p.trigger.aD===W&&q.push(p);I.call(K,J,g.w(q));K=J.push;I=K.apply;q=[];S=g.d(this.ib.values());for(p=S.next();!p.done;p=S.next())p=p.value,p.trigger instanceof vT&&p.trigger.W!==W&&q.push(p);I.call(K,J,g.w(q));J.length&&T0(this.W(),J)}; sf.prototype.OQ=function(W){for(var J=[],K=J.push,I=K.apply,q=[],S=g.d(this.ib.values()),p=S.next();!p.done;p=S.next()){p=p.value;var n=p.trigger;n instanceof vT&&n.W===W&&q.push(p)}I.call(K,J,g.w(q));J.length&&T0(this.W(),J)};g.N(cz,g.R);g.u=cz.prototype;g.u.tO=function(W,J,K,I){if(this.ib.has(J.triggerId))throw new Y("Tried to register duplicate trigger for slot.");var q="adtriggercuerange:"+J.triggerId;if(J instanceof rs)mmQ(this,W,J,K,I,q,J.W.start,J.W.end,J.aD,J.visible);else if(J instanceof TS)mmQ(this,W,J,K,I,q,0x7ffffffffffff,0x8000000000000,J.aD,J.visible);else throw new Y("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in CueRangeTriggerAdapter");}; g.u.FH=function(W){var J=this.ib.get(W.triggerId);J&&this.hp.get().removeCueRange(J.cueRangeId);this.ib.delete(W.triggerId)}; g.u.onCueRangeEnter=function(W){var J=rUD(this,W);if(J&&(J=this.ib.get(J)))if(g.z(WJ(this.cS.get()),32))this.W.add(J.cueRangeId);else{var K=J==null?void 0:J.iX.trigger;if(K instanceof rs||K instanceof TS){if(gG(this.context.gw.get())){var I=J.iX.slot,q=J.iX.layout,S={};this.context.pw.ub("cre",(S.ca=J.iX.category,S.tt=K.triggerType,S.st=I.slotType,S.lt=q==null?void 0:q.layoutType,S.cid=W,S))}T0(this.K(),[J.iX])}}}; g.u.onCueRangeExit=function(W){(W=rUD(this,W))&&(W=this.ib.get(W))&&this.W.delete(W.cueRangeId)}; g.u.m1=function(W){if(aK(W,16)<0){W=g.d(this.W);for(var J=W.next();!J.done;J=W.next())this.onCueRangeEnter(J.value,!0);this.W.clear()}}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.UT=function(){}; g.u.Mv=function(){}; g.u.rK=function(){}; g.u.OW=function(){}; g.u.onFullscreenToggled=function(){}; g.u.jE=function(){}; g.u.wq=function(){}; g.u.nw=function(){}; g.u.onVolumeChange=function(){}; g.u.BY=function(){}; g.u.Nd=function(){};g.N(Pz,g.R);g.u=Pz.prototype; g.u.tO=function(W,J,K,I){if(this.K.has(J.triggerId)||this.G.has(J.triggerId))throw new Y("Tried to re-register the trigger.");W=new qB(W,J,K,I);if(W.trigger instanceof mE)this.K.set(W.trigger.triggerId,W);else if(W.trigger instanceof R4)this.G.set(W.trigger.triggerId,W);else throw new Y("Incorrect TriggerType: Tried to register trigger of type "+W.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.K.has(W.trigger.triggerId)&&W.slot.slotId===this.W&&T0(this.T(),[W])}; g.u.FH=function(W){this.K.delete(W.triggerId);this.G.delete(W.triggerId)}; g.u.PF=function(W){W=W.slotId;if(this.W!==W){var J=[];this.W!=null&&J.push.apply(J,g.w(on0(this.G,this.W)));W!=null&&J.push.apply(J,g.w(on0(this.K,W)));this.W=W;J.length&&T0(this.T(),J)}}; g.u.R_=function(){}; g.u.Co=function(){};g.N(Xp,g.R);g.u=Xp.prototype;g.u.tO=function(W,J,K,I){if(this.ib.has(J.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(J instanceof zS))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.ib.set(J.triggerId,new qB(W,J,K,I))}; g.u.FH=function(W){this.ib.delete(W.triggerId)}; g.u.UT=function(){}; g.u.Mv=function(){}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.rK=function(){};g.N(W1,g.R);g.u=W1.prototype;g.u.rK=function(W,J){for(var K=[],I=g.d(this.ib.values()),q=I.next();!q.done;q=I.next()){q=q.value;var S=q.trigger;S.opportunityType===W&&(S.associatedSlotId&&S.associatedSlotId!==J||K.push(q))}K.length&&T0(this.W(),K)}; g.u.tO=function(W,J,K,I){if(this.ib.has(J.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(J instanceof shH))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in OpportunityEventTriggerAdapter");this.ib.set(J.triggerId,new qB(W,J,K,I))}; g.u.FH=function(W){this.ib.delete(W.triggerId)}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.UT=function(){}; g.u.Mv=function(){};g.N(i6,g.R);g.u=i6.prototype;g.u.tO=function(W,J,K,I){W=new qB(W,J,K,I);if(J instanceof bn||J instanceof o4||J instanceof BT||J instanceof Y$||J instanceof sCL){if(this.ib.has(J.triggerId))throw new Y("Tried to register duplicate trigger for slot.");this.ib.set(J.triggerId,W)}else throw new Y("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in PrefetchTriggerAdapter");}; g.u.FH=function(W){this.ib.delete(W.triggerId)}; g.u.tR=function(W){var J=W.slotFulfillmentTriggers.find(function(K){return K instanceof bn}); J&&(Jx(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",J.breakDurationMs,new Set([W.slotId]),!0),nP(this.iO.get(),"ads_css","sid."+W.slotId+";bd."+J.breakDurationMs+";fs."+this.G.size))}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.UT=function(){}; g.u.Mv=function(){}; g.u.rK=function(){}; g.u.dN=function(W){var J=this;if(!this.W)return tq("Unexpected cue break before fetch instructions are available"),!1;this.K&&this.K.stop();this.T&&g.XY(this.T);var K=z4H(this,W);if(!K){for(var I=[],q=g.d(this.ib.values()),S=q.next();!S.done;S=q.next())S=S.value.trigger,S instanceof bn&&I.push(S.breakDurationMs);nP(this.iO.get(),"ads_ncfs","cid."+W.identifier+";cd."+W.vt.toFixed(3)+I.slice(0,6).map(function(p){return";bd."+p}).join("")); return!1}(new g.P0(function(){var p=K.trigger,n=K.slot;Jx(J,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",p.breakDurationMs,new Set,!0);Jx(J,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",p.breakDurationMs,new Set,!1);J.G.add(n.slotId);nP(J.iO.get(),"ads_csf","sid."+n.slotId+";bd."+p.breakDurationMs+";fs."+J.G.size)},10)).start(); return!0}; g.u.PL=function(){}; g.u.Om=function(W){this.W&&this.W.contentCpn!==W?(tq("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:W,fetchInstructionsCpn:this.W.contentCpn}),nP(this.iO.get(),"ads_ccvl","fs."+this.G.size),Ka(this)):kn0(this)}; g.u.OQ=function(W){this.W&&this.W.contentCpn!==W&&tq("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:W,fetchInstructionsCpn:this.W.contentCpn},!0);nP(this.iO.get(),"ads_ccve","fs."+this.G.size);Ka(this)}; g.u.gN=function(W){var J=this;if(this.W)tq("Unexpected multiple fetch instructions for the current content");else{this.W=W;W=YpH(W);this.K=new g.P0(function(){kn0(J)},W?W:6E5); this.K.start();this.T=new g.P0(function(){J.W&&(J.K&&(J.K.stop(),J.K.start()),L$c(J,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},vnQ(this.W)); W=gN(this.cS.get());for(var K=g.d(ady(this.p7.get())),I=K.next();!I.done;I=K.next())I=I.value,nP(this.iO.get(),"nocache","ct."+Date.now()+";cmt."+W+";d."+I.vt.toFixed(3)+";tw."+(I.startSecs-W)+";cid."+I.identifier+";")}}; g.u.lO=function(){g.R.prototype.lO.call(this);Ka(this)};g.N(Ig,g.R);g.u=Ig.prototype;g.u.tO=function(W,J,K,I){if(this.ib.has(J.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(J instanceof I9))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.ib.set(J.triggerId,new qB(W,J,K,I));W=this.W.has(J.triggeringLayoutId)?g.E(this.W.get(J.triggeringLayoutId)):new Set;W.add(J);this.W.set(J.triggeringLayoutId,W)}; g.u.FH=function(W){this.ib.delete(W.triggerId);if(!(W instanceof I9))throw new Y("Incorrect TriggerType: Tried to unregister trigger of type "+W.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var J=this.K.get(W.triggerId);J&&(J.dispose(),this.K.delete(W.triggerId));if(J=this.W.get(W.triggeringLayoutId))J.delete(W),J.size===0&&this.W.delete(W.triggeringLayoutId)}; g.u.tR=function(){}; g.u.ZL=function(){}; g.u.IX=function(){}; g.u.jA=function(){}; g.u.Ic=function(){}; g.u.iy=function(){}; g.u.Ya=function(){}; g.u.uy=function(){}; g.u.Vq=function(){}; g.u.rK=function(){}; g.u.UT=function(W,J){var K=this;if(this.W.has(J.layoutId)){W=g.E(this.W.get(J.layoutId));W=g.d(W);var I=W.next();for(J={};!I.done;J={Le:void 0},I=W.next())J.Le=I.value,I=new g.P0(function(q){return function(){var S=g.E(K.ib.get(q.Le.triggerId));T0(K.G(),[S])}}(J),J.Le.durationMs),I.start(),this.K.set(J.Le.triggerId,I)}}; g.u.Mv=function(){};g.N(qq,g.R);qq.prototype.tO=function(W,J,K,I){if(this.ib.has(J.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(J instanceof GS))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in VideoTransitionTriggerAdapter.");this.ib.set(J.triggerId,new qB(W,J,K,I))}; qq.prototype.FH=function(W){this.ib.delete(W.triggerId)};na.prototype.KG=function(W){return W.kind==="AD_PLACEMENT_KIND_START"};g.N(jm,g.R);g.u=jm.prototype;g.u.logEvent=function(W){this.VS(W)}; g.u.ea=function(W,J,K){this.VS(W,void 0,void 0,void 0,J,void 0,void 0,void 0,J.adSlotLoggingData,void 0,void 0,K)}; g.u.UP=function(W,J,K,I){this.VS(W,void 0,void 0,void 0,J,K?K:void 0,void 0,void 0,J.adSlotLoggingData,K?K.adLayoutLoggingData:void 0,void 0,I)}; g.u.FC=function(W,J,K,I){XV(this.gw.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+W,"trigger:",K,"slot:",J,"layout:",I);hA(this.W.get())&&this.VS(W,void 0,void 0,void 0,J,I?I:void 0,void 0,K,J.adSlotLoggingData,I?I.adLayoutLoggingData:void 0)}; g.u.vk=function(W,J,K,I,q){this.VS(W,J,K,I,void 0,void 0,void 0,void 0,void 0,void 0,void 0,q)}; g.u.f4=function(W,J,K,I){this.VS("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,K,I,void 0,void 0,K.adSlotLoggingData,I?I.adLayoutLoggingData:void 0,{errorType:W,errorMessage:J})}; g.u.VS=function(W,J,K,I,q,S,p,n,A,D,f,h){var t=this;h=h===void 0?0:h;XV(this.gw.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+W,"slot:",q,"layout:",S,"ping:",p,"Opportunity:",{opportunityType:J,associatedSlotId:K,bmW:I,z9W:n,adSlotLoggingData:A,adLayoutLoggingData:D});try{var F=function(){if(!t.gw.get().X.J().Y("html5_disable_client_tmp_logs")&&W!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){W||tq("Empty PACF event type",q,S);var a=hA(t.W.get()),y={eventType:W,eventOrder:++t.eventCount},U={}; q&&(U.slotData=fQ(a,q));S&&(U.layoutData=wm0(a,S));p&&(U.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:p.W.serializedAdPingMetadata,pingIndex:p.index});n&&(U.triggerData=jX(n.trigger,n.category));J&&(U.opportunityData=MgQ(a,J,K,I));a={organicPlaybackContext:{contentCpn:UQ(t.dw.get(),1).clientPlaybackNonce}};a.organicPlaybackContext.isLivePlayback=UQ(t.dw.get(),1).dl;var Q;a.organicPlaybackContext.isMdxPlayback=(Q=UQ(t.dw.get(),1))==null?void 0:Q.isMdxPlayback; var C;if((C=UQ(t.dw.get(),1))==null?0:C.daiEnabled)a.organicPlaybackContext.isDaiContent=!0;var T;if(Q=(T=UQ(t.dw.get(),2))==null?void 0:T.clientPlaybackNonce)a.adVideoPlaybackContext={adVideoCpn:Q};a&&(U.externalContext=a);y.adClientData=U;A&&(y.serializedSlotAdServingData=A.serializedSlotAdServingDataEntry);D&&(y.serializedAdServingData=D.serializedAdServingDataEntry);f&&(y.errorInfo=f);g.AF("adsClientStateChange",{adsClientEvent:y})}}; h&&h>0?g.XJ(g.iH(),function(){return F()},h):F()}catch(a){XV(this.gw.get(),"html5_log_pacf_logging_errors")&&g.XJ(g.iH(),function(){tq(a instanceof Error?a:String(a),q,S,{pacf_message:"exception during pacf logging"})})}};var $OR=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.N(fa,jm);g.u=fa.prototype; g.u.ea=function(W,J,K){jm.prototype.ea.call(this,W,J,K);gG(this.gw.get())&&(K={},this.context.pw.ub("pacf",(K.et=W,K.st=J.slotType,K.si=J.slotId,K)))}; g.u.UP=function(W,J,K,I){var q=$OR.has(W);jm.prototype.UP.call(this,W,J,K,I);gG(this.gw.get(),q)&&(I={},this.context.pw.ub("pacf",(I.et=W,I.st=J.slotType,I.si=J.slotId,I.lt=K==null?void 0:K.layoutType,I.li=K==null?void 0:K.layoutId,I.p_ac=K==null?void 0:K.layoutId,I)))}; g.u.vk=function(W,J,K,I,q){jm.prototype.vk.call(this,W,J,K,I,q);gG(this.gw.get())&&(K={},this.context.pw.ub("pacf",(K.et=W,K.ot=J,K.ss=I==null?void 0:I.length,K)))}; g.u.FC=function(W,J,K,I){jm.prototype.FC.call(this,W,J,K,I);if(gG(this.gw.get())){var q={};this.context.pw.ub("pacf",(q.et=W,q.tt=K.trigger.triggerType,q.tc=K.category,q.st=J.slotType,q.si=J.slotId,q.lt=I==null?void 0:I.layoutType,q.li=I==null?void 0:I.layoutId,q.p_ac=I==null?void 0:I.layoutId,q))}}; g.u.f4=function(W,J,K,I){jm.prototype.f4.call(this,W,J,K,I);if(gG(this.gw.get(),!0)){var q={};this.context.pw.ub("perror",(q.ert=W,q.erm=J,q.st=K.slotType,q.si=K.slotId,q.lt=I==null?void 0:I.layoutType,q.li=I==null?void 0:I.layoutId,q.p_ac=I==null?void 0:I.layoutId,q))}}; g.u.VS=function(W,J,K,I,q,S,p,n,A,D,f){var h=this.gw.get();g.$w(h.X.J())?(h=this.gw.get(),h=g.FV(h.X.J().experiments,"H5_async_logging_delay_ms")):h=void 0;jm.prototype.VS.call(this,W,J,K,I,q,S,p,n,A,D,f,h)};hx.prototype.clear=function(){this.W.clear()};g.u=Fy.prototype;g.u.resolve=function(W){tx(this,W)}; g.u.reject=function(W){this.mm(W)}; g.u.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.Xy()?{state:"fail",error:this.error}:{state:"wait"}}; g.u.Xy=function(){return this.currentState==="fail"}; g.u.wait=function(){var W=this;return function K(){return VQ(K,function(I){if(I.K==1)return g.Zy(I,2),g.O(I,{NO:W},4);if(I.K!=2)return I.return(I.W);g.$c(I);return g.OH(I,0)})}()}; g.u.mm=function(W){this.currentState="fail";this.error=W;ZI(this)}; var twQ=ZK(function(W){return ag(W)?W instanceof Fy:!1});Object.freeze({PW0:function(W){var J=jAX(W);return Qz(DTc(J,function(K){return J[K].Xy()}),function(K){return Number.isNaN(K)?J.map(function(I){return I.state().result}):J[K]})}, ssu:function(W){var J=jAX(W);return Qz(DTc(J),function(){return J.map(function(K){return K.state()})})}});var GJ=window.QMZ||"es-419";TJ.prototype.P3=function(W){this.client=W}; TJ.prototype.W=function(){this.clear();this.csn=g.M_()}; TJ.prototype.clear=function(){this.G.clear();this.K.clear();this.T.clear();this.csn=null};Vz.prototype.P3=function(W){g.X0(H1().P3).bind(H1())(W)}; Vz.prototype.clear=function(){g.X0(H1().clear).bind(H1())()};g.u=El.prototype;g.u.P3=function(W){this.client=W}; g.u.aq=function(W,J){var K=this;J=J===void 0?{}:J;g.X0(function(){var I,q,S,p=((I=g.m(W==null?void 0:W.commandMetadata,g.dB))==null?void 0:I.rootVe)||((q=g.m(W==null?void 0:W.commandMetadata,sGW))==null?void 0:(S=q.screenVisualElement)==null?void 0:S.uiType);if(p){I=g.m(W==null?void 0:W.commandMetadata,t1l);if(I==null?0:I.parentTrackingParams){var n=g.Qa(I.parentTrackingParams);if(I.parentCsn)var A=I.parentCsn}else J.clickedVisualElement?n=J.clickedVisualElement:W.clickTrackingParams&&(n=g.Qa(W.clickTrackingParams)); a:{I=g.m(W,g.iE);q=g.m(W,lFG);if(I){if(q=h5Q(I,"VIDEO")){I={token:q,videoId:I.videoId};break a}}else if(q&&(I=h5Q(q,"PLAYLIST"))){I={token:I,playlistId:q.playlistId};break a}I=void 0}J=Object.assign({},{cttAuthInfo:I,parentCsn:A},J);if(g.yb("expectation_logging")){var D;J.loggingExpectations=((D=g.m(W==null?void 0:W.commandMetadata,sGW))==null?void 0:D.loggingExpectations)||void 0}Rg(K,p,n,J)}else g.ET(new g.vd("Error: Trying to create a new screen without a rootVeType",W))})()}; g.u.clickCommand=function(W,J,K){W=W.clickTrackingParams;K=K===void 0?0:K;W?(K=g.M_(K===void 0?0:K))?(iG(this.client,K,g.Qa(W),J),J=!0):J=!1:J=!1;return J}; g.u.stateChanged=function(W,J,K){this.visualElementStateChanged(g.Qa(W),J,K===void 0?0:K)}; g.u.visualElementStateChanged=function(W,J,K){K=K===void 0?0:K;K===0&&this.K.has(K)?this.N.push([W,J]):dTD(this,W,J,K)};rZ.prototype.fetch=function(W,J,K){var I=this,q=ZQv(W,J,K);return new Promise(function(S,p){function n(){if(K==null?0:K.HZ)try{var D=I.handleResponse(W,q.status,q.response,K);S(D)}catch(f){p(f)}else S(I.handleResponse(W,q.status,q.response,K))} q.onerror=n;q.onload=n;var A;q.send((A=J.body)!=null?A:null)})}; rZ.prototype.handleResponse=function(W,J,K,I){K=K.replace(")]}'","");try{var q=JSON.parse(K)}catch(S){g.ET(new g.vd("JSON parsing failed after XHR fetch",W,J,K));if((I==null?0:I.HZ)&&K)throw new g.S9(1,"JSON parsing failed after XHR fetch");q={}}J!==200&&(g.ET(new g.vd("XHR API fetch failed",W,J,K)),q=Object.assign({},q,{errorMetadata:{status:J}}));return q};og.getInstance=function(){var W=g.sH("ytglobal.storage_");W||(W=new og,g.Yc("ytglobal.storage_",W));return W}; og.prototype.estimate=function(){var W,J,K;return g.V(function(I){W=navigator;return((J=W.storage)==null?0:J.estimate)?I.return(W.storage.estimate()):((K=W.webkitTemporaryStorage)==null?0:K.queryUsageAndQuota)?I.return(QAQ()):I.return()})}; g.Yc("ytglobal.storageClass_",og);lH.prototype.Zy=function(W){this.handleError(W)}; lH.prototype.logEvent=function(W,J){switch(W){case "IDB_DATA_CORRUPTED":g.yb("idb_data_corrupted_killswitch")||this.W("idbDataCorrupted",J);break;case "IDB_UNEXPECTEDLY_CLOSED":this.W("idbUnexpectedlyClosed",J);break;case "IS_SUPPORTED_COMPLETED":g.yb("idb_is_supported_completed_killswitch")||this.W("idbIsSupportedCompleted",J);break;case "QUOTA_EXCEEDED":wpy(this,J);break;case "TRANSACTION_ENDED":this.G&&Math.random()<=.1&&this.W("idbTransactionEnded",J);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":W= Object.assign({},J,{hasWindowUnloaded:this.K}),this.W("idbTransactionAborted",W)}};var kC={},qKH=g.W2("yt-player-local-media",{Su:(kC.index={gF:2},kC.media={gF:2},kC.captions={gF:5},kC),shared:!1,upgrade:function(W,J){J(2)&&(g.Gq(W,"index"),g.Gq(W,"media"));J(5)&&g.Gq(W,"captions");J(6)&&($k(W,"metadata"),$k(W,"playerdata"))}, version:5});var xOW={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},zk;a:{var vE=g.CU();vE=vE.toLowerCase();if(g.uh(vE,"android")){var Ooo=vE.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Ooo){var TMo=parseFloat(Ooo[1]);if(TMo<100){zk=TMo;break a}}var Hoo=vE.match("("+Object.keys(xOW).join("|")+")");zk=Hoo?xOW[Hoo[0]]:0}else zk=void 0}var Vx=zk,Hw=Vx>=0;var vSv=window;var MXX=ai(function(){var W,J;return(J=(W=window).matchMedia)==null?void 0:J.call(W,"(prefers-reduced-motion: reduce)").matches});var kR;g.La=new Ou;kR=0;var IP=HQH()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.vM?!0:!1;var YR={pz:function(W,J){W[l[3]](0,J)}, Ow:function(W,J){var K=W[0];W[0]=W[J%W[l[8]]];W[J%W[l[8]]]=K}, wW:function(W){W[l[63]]()}};var JVH={cCh:"adunit",Jlu:"detailpage",Pvg:"editpage",KJO:"embedded",mB8:"leanback",b_u:"previewpage",n0O:"profilepage",jt:"unplugged",kDN:"playlistoverview",oD8:"sponsorshipsoffer",Zpy:"shortspage",pjS:"handlesclaiming",ugg:"immersivelivepage",pYS:"creatormusic",Wly:"immersivelivepreviewpage",Q73:"admintoolyurt",YaZ:"shortsaudiopivot",rl3:"consumption"};var EwA=2592E3;var YC,V4j,CO;YC={};g.Jd=(YC.STOP_EVENT_PROPAGATION="html5-stop-propagation",YC.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",YC.IV_DRAWER_OPEN="ytp-iv-drawer-open",YC.MAIN_VIDEO="html5-main-video",YC.VIDEO_CONTAINER="html5-video-container",YC.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",YC.HOUSE_BRAND="house-brand",YC);V4j={};CO=(V4j.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",V4j.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",V4j);var k0Q={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var s3v={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},cNA={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"},IlQ={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var Q9A={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.ft.prototype.getLanguageInfo=function(){return this.pE}; g.ft.prototype.getXtags=function(){if(!this.xtags){var W=this.id.split(";");W.length>1&&(this.xtags=W[1])}return this.xtags}; g.ft.prototype.toString=function(){return this.pE.name}; g.ft.prototype.getLanguageInfo=g.ft.prototype.getLanguageInfo;hd.prototype.equals=function(W){return this.K===W.K&&this.W===W.W&&this.G===W.G&&this.reason===W.reason&&(!FQ||this.Cy===W.Cy)}; hd.prototype.isLocked=function(){return this.G&&!!this.K&&this.K===this.W}; hd.prototype.compose=function(W){if(W.G&&a_(W))return k5;if(W.G||a_(this))return W;if(this.G||a_(W))return this;var J=this.K&&W.K?Math.max(this.K,W.K):this.K||W.K,K=this.W&&W.W?Math.min(this.W,W.W):this.W||W.W;J=Math.min(J,K);var I=0;FQ&&(I=this.Cy!==0&&W.Cy!==0?Math.min(this.Cy,W.Cy):this.Cy===0?W.Cy:this.Cy);return FQ&&J===this.K&&K===this.W&&I===this.Cy||!FQ&&J===this.K&&K===this.W?this:FQ?new hd(J,K,!1,K===this.W&&I===this.Cy?this.reason:W.reason,I):new hd(J,K,!1,K===this.W?this.reason:W.reason)}; hd.prototype.T=function(W){return!W.video||FQ&&this.Cy!==0&&this.Cy=0}; g.u.yE=function(){var W=this.segments[this.segments.length-1];return W?W.endTime:NaN}; g.u.wf=function(){return this.segments[0].startTime}; g.u.VI=function(){return this.segments.length}; g.u.cC=function(){return 0}; g.u.sW=function(W){return(W=this.e2(W))?W.x3:-1}; g.u.Qa=function(W){return(W=this.jB(W))?W.sourceURL:""}; g.u.getStartTime=function(W){return(W=this.jB(W))?W.startTime:0}; g.u.KD=function(W){return this.getStartTime(W)+this.getDuration(W)}; g.u.M_=iD(1);g.u.isLoaded=function(){return this.segments.length>0}; g.u.jB=function(W){if(this.W&&this.W.x3===W)return this.W;W=g.GT(this.segments,new BU(W,0,0,0,""),function(J,K){return J.x3-K.x3}); return this.W=W>=0?this.segments[W]:null}; g.u.e2=function(W){if(this.W&&this.W.startTime<=W&&W=0?this.segments[W]:this.segments[Math.max(0,-W-2)]}; g.u.append=function(W){if(W.length)if(W=g.U$(W),this.segments.length){var J=this.segments.length?g.jl(this.segments).endTime:0,K=W[0].x3-this.FD();K>1&&CD0(this.segments);for(K=K>0?0:-K+1;KW.x3&&this.index.Bg()<=W.x3+1}; g.u.update=function(W,J,K){this.index.append(W);wWQ(this.index,K);W=this.index;W.K=J;W.G="update"}; g.u.xA=function(){return this.U2()?!0:eZ.prototype.xA.call(this)}; g.u.Km=function(W,J){var K=this.index.Qa(W),I=this.index.getStartTime(W),q=this.index.getDuration(W),S;J?q=S=0:S=this.info.Cy>0?this.info.Cy*q:1E3;return new sX([new rA(3,this,void 0,"liveCreateRequestInfoForSegment",W,I,q,0,S,!J)],K)}; g.u.TQ=function(){return this.U2()?0:this.initRange.length}; g.u.Cv=function(){return!1};Ks.prototype.update=function(W){var J=void 0;this.K&&(J=this.K);var K=new Ks,I=Array.from(W.getElementsByTagName("S"));if(I.length){var q=+iz(W,"timescale")||1,S=(+I[0].getAttribute("t")||0)/q,p=+iz(W,"startNumber")||0;K.T=S;var n=J?J.startSecs+J.vt:0,A=Date.parse(yMX(iz(W,"yt:segmentIngestTime")))/1E3;K.j=W.parentElement.tagName==="SegmentTemplate";K.j&&(K.Z=iz(W,"media"));W=J?p-J.x3:1;K.S=W>0?0:-W+1;W=g.d(I);for(I=W.next();!I.done;I=W.next()){I=I.value;for(var D=+I.getAttribute("d")/q,f=(+I.getAttribute("yt:sid")|| 0)/q,h=+I.getAttribute("r")||0,t=0;t<=h;t++)if(J&&p<=J.x3)p++;else{var F=new NQT(p,n,D,A+f,S);K.W.push(F);var a=I;var y=q,U=F.startSecs;F=a.getAttribute("yt:cuepointTimeOffset");var Q=a.getAttribute("yt:cuepointDuration");if(F&&Q){F=Number(F);U=-F/y+U;y=Number(Q)/y;Q=a.getAttribute("yt:cuepointContext")||null;var C=a.getAttribute("yt:cuepointIdentifier")||"";a=a.getAttribute("yt:cuepointEvent")||"";a=new cU(U,y,Q,C,edo[a]||"unknown",F)}else a=null;a&&K.G.push(a);p++;n+=D;S+=D;A+=D+f}}K.W.length&& (K.K=g.jl(K.W))}this.S=K.S;this.K=K.K||this.K;g.QG(this.W,K.W);g.QG(this.G,K.G);this.j=K.j;this.Z=K.Z;this.T===-1&&(this.T=K.getStreamTimeOffset())}; Ks.prototype.getStreamTimeOffset=function(){return this.T===-1?0:this.T};g.N(qD,g.mD);g.u=qD.prototype;g.u.JB=function(){return this.Zt}; g.u.yx=function(W,J){W=SO(this,W);return W>=0&&(J||!this.segments[W].pending)}; g.u.Bg=function(){return this.GZ?this.segments.length?this.e2(this.wf()).x3:-1:g.mD.prototype.Bg.call(this)}; g.u.wf=function(){if(this.jP)return 0;if(!this.GZ)return g.mD.prototype.wf.call(this);if(!this.segments.length)return 0;var W=Math.max(g.jl(this.segments).endTime-this.AQ,0);return this.Qw>0&&g.E(this.e2(W)).x30)return this.Im/1E3;if(!this.segments.length)return g.mD.prototype.yE.call(this);var W=this.FD();if(!this.GZ||W<=this.segments[this.segments.length-1].x3)W=this.segments[this.segments.length-1];else{var J=this.segments[this.segments.length-1];W=new BU(W,Math.max(0,J.startTime-(J.x3-W)*this.Zt),this.Zt,0,"sq/"+W,void 0,void 0,!0)}return this.jP?Math.min(this.AQ,W.endTime):W.endTime}; g.u.VI=function(){return this.GZ?this.segments.length?this.FD()-this.Bg()+1:0:g.mD.prototype.VI.call(this)}; g.u.FD=function(){var W=Math.min(this.X4,Math.max(g.mD.prototype.FD.call(this),this.sJ)),J=this.AQ*1E3;J=this.Im>0&&this.Im0&&this.sJ>0&&!J&&(J=this.e2(this.AQ))&&(W=Math.min(J.x3-1,W));return W}; g.u.ri=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.u.S0=function(W){var J=SO(this,W.x3);if(J>=0)this.segments[J]=W;else if(this.segments.splice(-(J+1),0,W),this.Vn&&W.x3%(300/this.Zt)===0){var K=this.segments[0].x3,I=Math.floor(this.Vn/this.Zt);W=W.x3-I;J=-(J+1)-I;J>0&&W>K&&(this.segments=this.segments.slice(J))}}; g.u.Cq=function(){return this.sJ}; g.u.Te=function(W){return IU?!this.K&&W>=0&&this.FD()<=W:g.mD.prototype.Te.call(this,W)}; g.u.e2=function(W){if(!this.GZ)return g.mD.prototype.e2.call(this,W);if(!this.segments.length)return null;var J=this.segments[this.segments.length-1];if(W=J.endTime)J=J.x3+Math.floor((W-J.endTime)/this.Zt+1);else{J=O$(this.segments,function(I){return W=I.endTime?1:0}); if(J>=0)return this.segments[J];var K=-(J+1);J=this.segments[K-1];K=this.segments[K];J=Math.floor((W-J.endTime)/((K.startTime-J.endTime)/(K.x3-J.x3-1))+1)+J.x3}return this.jB(J)}; g.u.jB=function(W){if(!this.GZ)return g.mD.prototype.jB.call(this,W);if(!this.segments.length)return null;var J=SO(this,W);if(J>=0)return this.segments[J];var K=-(J+1);J=this.Zt;if(K===0)var I=Math.max(0,this.segments[0].startTime-(this.segments[0].x3-W)*J);else K===this.segments.length?(I=this.segments[this.segments.length-1],I=I.endTime+(W-I.x3-1)*J):(I=this.segments[K-1],J=this.segments[K],J=(J.startTime-I.endTime)/(J.x3-I.x3-1),I=I.endTime+(W-I.x3-1)*J);return new BU(W,I,J,0,"sq/"+W,void 0,void 0, !0)}; var IU=!1;g.N(ps,WC);g.u=ps.prototype;g.u.Fe=function(){return!0}; g.u.xA=function(){return!0}; g.u.s_=function(W){return this.E4()&&W.G&&!W.j||!W.W.index.Te(W.x3)}; g.u.Am=function(){}; g.u.FK=function(W,J){return typeof W!=="number"||isFinite(W)?WC.prototype.FK.call(this,W,J===void 0?!1:J):new sX([new rA(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.kh,void 0,this.kh*this.info.Cy)],"")}; g.u.Km=function(W,J){var K=K===void 0?!1:K;if(this.index.yx(W))return WC.prototype.Km.call(this,W,J);var I=this.index.getStartTime(W),q=Math.round(this.kh*this.info.Cy),S=this.kh;J&&(S=q=0);return new sX([new rA(K?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",W,I,S,void 0,q,!J)],W>=0?"sq/"+W:"")};g.N(lz,eZ);g.u=lz.prototype;g.u.Y0=function(){return!1}; g.u.E4=function(){return!1}; g.u.Fe=function(){return!1}; g.u.Am=function(){return new sX([new rA(1,this,void 0,"otfInit")],this.j)}; g.u.Wa=function(){return null}; g.u.Di=function(W){this.s_(W);return GLv(this,zw(W),!1)}; g.u.FK=function(W,J){J=J===void 0?!1:J;W=this.index.sW(W);J&&(W=Math.min(this.index.FD(),W+1));return GLv(this,W,!0)}; g.u.rQ=function(W){W.info.type===1&&(this.W||(this.W=wH(W.W)),W.K&&W.K.uri==="http://youtube.com/streaming/otf/durations/112015"&&$yX(this,W.K))}; g.u.s_=function(W){return W.G===0?!0:this.index.FD()>W.x3&&this.index.Bg()<=W.x3+1}; g.u.TQ=function(){return 0}; g.u.Cv=function(){return!1};ns.prototype.EA=function(){return this.W.EA()};g.u=g.tR.prototype;g.u.yx=function(W){return W<=this.FD()}; g.u.cC=function(W){return this.offsets[W]}; g.u.getStartTime=function(W){return this.startTicks[W]/this.W}; g.u.KD=function(W){return this.getStartTime(W)+this.getDuration(W)}; g.u.M_=iD(0);g.u.OA=function(){return NaN}; g.u.getDuration=function(W){W=this.eN(W);return W>=0?W/this.W:-1}; g.u.eN=function(W){return W+1=0}; g.u.yE=function(){return this.K?this.startTicks[this.count]/this.W:NaN}; g.u.wf=function(){return 0}; g.u.VI=function(){return this.count}; g.u.Qa=function(){return""}; g.u.sW=function(W){W=g.GT(this.startTicks.subarray(0,this.count),W*this.W);return W>=0?W:Math.max(0,-W-2)}; g.u.isLoaded=function(){return this.FD()>=0}; g.u.EG=function(W,J){if(W>=this.FD())return 0;var K=0;for(J=this.getStartTime(W)+J;Wthis.getStartTime(W);W++)K=Math.max(K,bDy(this,W)/this.getDuration(W));return K}; g.u.resize=function(W){W+=2;var J=this.offsets;this.offsets=new Float64Array(W+1);var K=this.startTicks;this.startTicks=new Float64Array(W+1);for(W=0;W0&&W&&(K=K.range.end+1,W=Math.min(W,this.info.contentLength-K),W>0&&I.push(new rA(4,this,BQ(K,W),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,J)));return new sX(I)}; g.u.rQ=function(W){if(W.info.type===1){if(this.W)return;this.W=wH(W.W)}else if(W.info.type===2){if(this.j||this.index.FD()>=0)return;if(g.JM(this.info)){var J=this.index,K=W.EA();W=W.info.range.start;var I=g.Jt(K,0,1936286840);K=RyT(I);J.W=K.timescale;var q=K.zC;J.offsets[0]=K.dj+W+I.size;J.startTicks[0]=q;J.K=!0;W=K.dX.length;for(I=0;I0&&W===S[0].Gb)for(W=0;W=J+K)break}q.length||(W=new g.vd("b189619593",""+W,""+J,""+K),g.Va(W));return new sX(q)}; g.u.IJ=function(W){for(var J=this.uH(W.info),K=W.info.range.start+W.info.K,I=[],q=0;q=this.index.cC(K+1);)K++;return this.pM(K,J,W.G).Ly}; g.u.s_=function(W){W.IH();return this.xA()?!0:W.range.end+1this.info.contentLength&&(J=new Rt(J.start,this.info.contentLength-1)),new sX([new rA(4,W.W,J,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,W.clipId)]);W.type===4&&(W=this.uH(W),W=W[W.length-1]);var K=0,I=W.range.start+W.K+W.G;W.type===3&&(W.IH(),K=W.x3,I===W.range.end+1&&(K+=1));return this.pM(K,I,J)}; g.u.Di=function(){return null}; g.u.FK=function(W,J){J=J===void 0?!1:J;W=this.index.sW(W);J&&(W=Math.min(this.index.FD(),W+1));return this.pM(W,this.index.cC(W),0,void 0)}; g.u.Y0=function(){return!0}; g.u.E4=function(){return!0}; g.u.Fe=function(){return!1}; g.u.TQ=function(){return this.indexRange.length+this.initRange.length}; g.u.Cv=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var cE={},JOH=(cE.COLOR_PRIMARIES_BT709="bt709",cE.COLOR_PRIMARIES_BT2020="bt2020",cE.COLOR_PRIMARIES_UNKNOWN=null,cE.COLOR_PRIMARIES_UNSPECIFIED=null,cE),PE={},myQ=(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.uz.prototype.getName=function(){return this.name}; g.uz.prototype.getId=function(){return this.id}; g.uz.prototype.getIsDefault=function(){return this.isDefault}; g.uz.prototype.toString=function(){return this.name}; g.uz.prototype.getName=g.uz.prototype.getName;g.uz.prototype.getId=g.uz.prototype.getId;g.uz.prototype.getIsDefault=g.uz.prototype.getIsDefault;var kLy=/action_display_post/;var zPQ,yL,UJ;g.N(Ze,g.Ao);g.u=Ze.prototype;g.u.isLoading=function(){return this.state===1}; g.u.dV=function(){return this.state===3}; g.u.XtZ=function(W){var J=W.getElementsByTagName("Representation");if(W.getElementsByTagName("SegmentList").length>0||W.getElementsByTagName("SegmentTemplate").length>0){this.dl=this.K=!0;this.timeline||(this.timeline=new ZDQ);MHH(this.timeline,W);this.publish("refresh");for(W=0;W=0?f=be(t):h=h+"?range="+t}A.call(n,new BU(D.x3,D.startSecs,D.vt,D.W,h,f,D.K))}I=q}K.update(I,this.isLive,this.OI)}gXQ(this.timeline);return!0}this.duration=dyI(iz(W,"mediaPresentationDuration")); a:{for(W=0;W0))return this.Mk()-W}}W=this.W;for(var J in W){var K=W[J].index;if(K.isLoaded()&&!pD(W[J].info.mimeType))return K.wf()}return 0}; g.u.getStreamTimeOffset=function(){return this.Z}; g.u.OA=function(W){for(var J in this.W){var K=this.W[J].index;if(K.isLoaded()){var I=K.sW(W),q=K.OA(I);if(q)return q+W-K.getStartTime(I)}}return NaN}; var eO=null,RdT,RU=!((RdT=navigator.mediaCapabilities)==null||!RdT.decodingInfo),lOQ={commentary:1,alternate:2,dub:3,main:4};var nb=new Set,bz=new Map;rf.prototype.clone=function(W){return new rf(this.flavor,W,this.K,this.experiments)}; rf.prototype.RZ=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; rf.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 boe={},XA=(boe.playready=["com.youtube.playready","com.microsoft.playready"],boe.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],boe),Xk={},g0L=(Xk.widevine="DRM_SYSTEM_WIDEVINE",Xk.fairplay="DRM_SYSTEM_FAIRPLAY",Xk.playready="DRM_SYSTEM_PLAYREADY",Xk),Wu={},BMR=(Wu.widevine=1,Wu.fairplay=2,Wu.playready=3,Wu);var Jr;g.N(Ww,g.R); Ww.prototype.initialize=function(W,J){for(var K=this,I=g.d(Object.keys(W)),q=I.next();!q.done;q=I.next()){q=g.d(W[q.value]);for(var S=q.next();!S.done;S=q.next())if(S=S.value,S.aB)for(var p=g.d(Object.keys(S.aB)),n=p.next();!n.done;n=p.next()){var A=n.value;n=A;A=XA[A];!A&&this.Y("html5_enable_vp9_fairplay")&&n==="fairplay"&&(A=["com.youtube.fairplay.sbdl"]);if(A){A=g.d(A);for(var D=A.next();!D.done;D=A.next())D=D.value,this.G[D]=this.G[D]||new rf(n,D,S.aB[n],this.QK.experiments),this.W[n]=this.W[n]|| {},this.W[n][S.mimeType]=!0}}}z_()&&(this.G["com.youtube.fairplay"]=new rf("fairplay","com.youtube.fairplay","",this.QK.experiments),this.Y("html5_enable_vp9_fairplay")||(this.W.fairplay=this.W.fairplay||{},this.W.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.W.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.K=yOH(J,this.useCobaltWidevine,this.Y("html5_enable_safari_fairplay")&&!0,this.Y("html5_enable_vp9_fairplay")).filter(function(f){return!!K.G[f]})}; Ww.prototype.Y=function(W){return this.QK.experiments.HS(W)};var mOx={"":"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"};gFy.prototype.Y=function(W){return this.experiments.HS(W)};var IqQ={RED:"red",KjN:"white"};GhI.prototype.HS=function(W){W=this.flags[W];JSON.stringify(W);return W==="true"};var OFy=Promise.resolve(),EFA=window.queueMicrotask?window.queueMicrotask.bind(window):ThT;Sb.prototype.canPlayType=function(W,J){W=W.canPlayType?W.canPlayType(J):!1;zq?W=W||rL$[J]:Vx===2.2?W=W||opl[J]:Lz()&&(W=W||LSp[J]);return!!W}; Sb.prototype.isTypeSupported=function(W){return this.C?window.cast.receiver.platform.canDisplayType(W):ep(W)}; var opl={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},LSp={"application/x-mpegURL":"maybe"},rL$={"application/x-mpegURL":"maybe"};g.N(n5,g.Ao);n5.prototype.add=function(W,J){if(!this.items[W]&&(J.Kq||J.oQ||J.Ox)){var K=this.items,I=J;Object.isFrozen&&!Object.isFrozen(J)&&(I=Object.create(J),Object.freeze(I));K[W]=I;this.publish("vast_info_card_add",W)}}; n5.prototype.remove=function(W){var J=this.get(W);delete this.items[W];return J}; n5.prototype.get=function(W){return this.items[W]||null}; n5.prototype.isEmpty=function(){return g.PR(this.items)};var DL;jb.prototype.add=function(W){if(this.pos+20>this.data.length){var J=new Uint8Array(this.data.length*2);J.set(this.data);this.data=J}for(;W>31;)this.data[this.pos++]=DL[(W&31)+32],W>>=5;this.data[this.pos++]=DL[W|0]}; jb.prototype.PP=function(){return g.$4(this.data.subarray(0,this.pos))}; jb.prototype.reset=function(){this.pos=0};hr.prototype.o7=function(W,J){var K=Math.pow(this.alpha,W);this.W=J*(1-K)+K*this.W;this.K+=W}; hr.prototype.Lc=function(){return this.W/(1-Math.pow(this.alpha,this.K))};tr.prototype.o7=function(W,J){for(var K=0;K<10;K++){var I=this.W[K],q=I+(K===0?W:0),S=1*Math.pow(2,K);if(q<=S)break;I=Math.min(1,(q-S*.5)/I);for(q=0;q<16;q++)S=this.values[K*16+q]*I,this.values[(K+1)*16+q]+=S,this.W[K+1]+=S,this.values[K*16+q]-=S,this.W[K]-=S}I=K=0;q=8192;J>8192&&(K=Math.ceil(Math.log(J/8192)/Math.log(2)),I=8192*Math.pow(2,K-1),q=I*2);K+2>16?this.values[15]+=W:(J=(J-I)/(q-I),this.values[K]+=W*(1-J),this.values[K+1]+=W*J);this.W[0]+=W}; tr.prototype.Lc=function(){var W=W===void 0?this.K:W;var J=J===void 0?.02:J;var K=K===void 0?.98:K;for(var I=this.G,q=0;q<16;q++)I[q]=this.values[q];q=this.W[0];for(var S=1;S<11;S++){var p=this.W[S];if(p===0)break;for(var n=Math.min(1,(W-q)/p),A=0;A<16;A++)I[A]+=this.values[S*16+A]*n;q+=p*n;if(n<1)break}for(S=W=p=0;S<16;S++){n=p+I[S]/q;W+=Math.max(0,Math.min(n,K)-Math.max(p,J))*(S>0?8192*Math.pow(2,S-1):0);if(n>K)break;p=n}return W/(K-J)};F2.prototype.o7=function(W,J){W=Math.min(this.W,Math.max(1,Math.round(W*this.resolution)));W+this.K>=this.W&&(this.G=!0);for(;W--;)this.values[this.K]=J,this.K=(this.K+1)%this.W;this.BM=!0}; F2.prototype.percentile=function(W){var J=this;if(!this.G&&this.K===0)return 0;this.BM&&(g.TT(this.j,function(K,I){return J.values[K]-J.values[I]}),this.BM=!1); return this.values[this.j[Math.round(W*((this.G?this.W:this.K)-1))]]||0}; F2.prototype.Lc=function(){return this.S?(this.percentile(this.T-this.S)+this.percentile(this.T)+this.percentile(this.T+this.S))/3:this.percentile(this.T)};g.N(aP,g.R);aP.prototype.D0=function(){var W;(W=this.Y3)==null||W.start();if(C5(this)&&this.policy.N){var J;(J=this.Ok)==null||J.dk()}};YQQ.prototype.Y=function(W){return this.experiments.HS(W)};g.N(cOH,g.R);var KEL="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),n$Q={Hw8:"caoe",Ffu:"capsv",Ehg:"cbrand",lBw:"cbr",GB8:"cbrver",jHs:"cchip",OUW:"ccappver",hqW:"ccrv",YdI:"cfrmver",siw:"c",lcw:"cver",Eg8:"ctheme",Kls:"cplayer",Ka3:"cmodel",PJ:"cnetwork",B8N:"cos",OS_VERSION:"cosver",o0s:"cplatform",EDK:"crqyear"};g.N(kK,g.R);g.u=kK.prototype;g.u.Y=function(W){return this.experiments.HS(W)}; g.u.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.u.getVideoUrl=function(W,J,K,I,q,S,p){J={list:J};K&&(q?J.time_continue=K:J.t=K);K=p?"music.youtube.com":g.vw(this);q=K==="www.youtube.com";!S&&I&&q?S="https://youtu.be/"+W:g.RP(this)?(S="https://"+K+"/fire",J.v=W):(S&&q?(S=this.protocol+"://"+K+"/shorts/"+W,I&&(J.feature="share")):(S=this.protocol+"://"+K+"/watch",J.v=W),zq&&(W=e0y())&&(J.ebc=W));return g.Vw(S,J)}; g.u.getVideoEmbedCode=function(W,J,K,I){J="https://"+g.vw(this)+"/embed/"+J;I&&(J=g.Vw(J,{list:I}));I=K.width;K=K.height;J=aX(J);W=aX(W!=null?W:"YouTube video player");return'')}; g.u.supportsGaplessAudio=function(){return g.ES&&!zq&&mQ()>=74||g.cC&&g.gn(68)?!0:!1}; g.u.supportsGaplessShorts=function(){return!this.Y("html5_enable_short_gapless")||this.OI||g.dg?!1:!0}; g.u.getPlayerType=function(){return this.W.cplayer}; g.u.ND=function(){return this.hh}; var fqH=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],lqv=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],DlQ=[19];var iJ={},FEH=(iJ["140"]={numChannels:2},iJ["141"]={numChannels:2},iJ["251"]={audioSampleRate:48E3,numChannels:2},iJ["774"]={audioSampleRate:48E3,numChannels:2},iJ["380"]={numChannels:6},iJ["328"]={numChannels:6},iJ["773"]={},iJ),J$={},hOv=(J$["1"]='video/mp4; codecs="av01.0.08M.08"',J$["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',J$["1e"]='video/mp4; codecs="av01.0.08M.08"',J$["9"]='video/webm; codecs="vp9"',J$["("]='video/webm; codecs="vp9"',J$["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', J$.h='video/mp4; codecs="avc1.64001e"',J$.H='video/mp4; codecs="avc1.64001e"',J$.o='audio/webm; codecs="opus"',J$.a='audio/mp4; codecs="mp4a.40.2"',J$.ah='audio/mp4; codecs="mp4a.40.2"',J$.mac3='audio/mp4; codecs="ac-3"; channels=6',J$.meac3='audio/mp4; codecs="ec-3"; channels=6',J$.i='audio/mp4; codecs="iamf.001.001.Opus"',J$),KV={},tJX=(KV["337"]={width:3840,height:2160,bitrate:3E7,fps:30},KV["336"]={width:2560,height:1440,bitrate:15E6,fps:30},KV["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, KV["702"]={width:7680,height:4320,bitrate:4E7,fps:60},KV["701"]={width:3840,height:2160,bitrate:2E7,fps:60},KV["700"]={width:2560,height:1440,bitrate:1E7,fps:60},KV["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},KV["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},KV["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},KV["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, KV["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},KV["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},KV["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},KV["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},KV["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},KV["315"]={width:3840,height:2160,bitrate:2E7,fps:60},KV["308"]={width:2560, height:1440,bitrate:1E7,fps:60},KV["303"]={width:1920,height:1080,bitrate:5E6,fps:60},KV["302"]={width:1280,height:720,bitrate:25E5,fps:60},KV["299"]={width:1920,height:1080,bitrate:75E5,fps:60},KV["298"]={width:1280,height:720,bitrate:35E5,fps:60},KV["571"]={width:7680,height:4320,bitrate:3E7,fps:60},KV["401"]={width:3840,height:2160,bitrate:15E6,fps:60},KV["400"]={width:2560,height:1440,bitrate:75E5,fps:60},KV["399"]={width:1920,height:1080,bitrate:2E6,fps:60},KV["398"]={width:1280,height:720,bitrate:1E6, fps:60},KV["397"]={width:854,height:480,bitrate:4E5,fps:30},KV["396"]={width:640,height:360,bitrate:25E4,fps:30},KV["787"]={width:1080,height:608,bitrate:2E5,fps:30},KV["788"]={width:1080,height:608,bitrate:4E5,fps:30},KV["572"]={width:7680,height:4320,bitrate:3E7,fps:60},KV["555"]={width:3840,height:2160,bitrate:15E6,fps:60},KV["554"]={width:2560,height:1440,bitrate:75E5,fps:60},KV["553"]={width:1920,height:1080,bitrate:2E6,fps:60},KV["552"]={width:1280,height:720,bitrate:1E6,fps:60},KV["551"]={width:854, height:480,bitrate:4E5,fps:30},KV["550"]={width:640,height:360,bitrate:25E4,fps:30},KV["313"]={width:3840,height:2160,bitrate:8E6,fps:30},KV["271"]={width:2560,height:1440,bitrate:4E6,fps:30},KV["248"]={width:1920,height:1080,bitrate:2E6,fps:30},KV["247"]={width:1280,height:720,bitrate:15E5,fps:30},KV["244"]={width:854,height:480,bitrate:52E4,fps:30},KV["243"]={width:640,height:360,bitrate:28E4,fps:30},KV["137"]={width:1920,height:1080,bitrate:4E6,fps:30},KV["136"]={width:1280,height:720,bitrate:3E6, fps:30},KV["135"]={width:854,height:480,bitrate:1E6,fps:30},KV["385"]={width:1920,height:1080,bitrate:6503313,fps:60},KV["376"]={width:1280,height:720,bitrate:5706960,fps:60},KV["384"]={width:1280,height:720,bitrate:3660979,fps:60},KV["225"]={width:1280,height:720,bitrate:5805E3,fps:30},KV["224"]={width:1280,height:720,bitrate:453E4,fps:30},KV["145"]={width:1280,height:720,bitrate:2682052,fps:30},KV);g.u=Ag.prototype;g.u.getInfo=function(){return this.W}; g.u.NH=function(){return null}; g.u.fC=function(){var W=this.NH();return W?(W=g.qU(W.c7),Number(W.expire)):NaN}; g.u.q6=function(){}; g.u.getHeight=function(){return this.W.video.height};dlH.prototype.build=function(){ZPQ(this);var W=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],J={};a:if(this.W)var K=this.W;else{K="";for(var I=g.d(this.G),q=I.next();!q.done;q=I.next())if(q=q.value,q.pE){if(q.pE.getIsDefault()){K=q.pE.getId();break a}K||(K=q.pE.getId())}}I=g.d(this.G);for(q=I.next();!q.done;q=I.next())if(q=q.value,this.S||!q.pE||q.pE.getId()===K)J[q.itag]||(J[q.itag]=[]),J[q.itag].push(q);K=g.d(this.K);for(I=K.next();!I.done;I=K.next())if(I=I.value,q=J[I.W]){q=g.d(q);for(var S=q.next();!S.done;S= q.next()){var p=W,n=p.push;S=S.value;var A="#EXT-X-MEDIA:TYPE=AUDIO,",D="YES",f="audio";if(S.pE){f=S.pE;var h=f.getId().split(".")[0];h&&(A+='LANGUAGE="'+h+'",');(this.W?this.W===f.getId():f.getIsDefault())||(D="NO");f=f.getName()}h="";I!==null&&(h=I.itag.toString());h=jo(this,S.url,h);A=A+('NAME="'+f+'",DEFAULT='+(D+',AUTOSELECT=YES,GROUP-ID="'))+(Uly(S,I)+'",URI="'+(h+'"'));n.call(p,A)}}K=g.d(this.j);for(I=K.next();!I.done;I=K.next())I=I.value,q=kC0,I=(p=I.pE)?'#EXT-X-MEDIA:URI="'+jo(this,I.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+q+'",LANGUAGE="'+p.getId()+'",NAME="'+p.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,I&&W.push(I);K=this.j.length>0?kC0:void 0;I=g.d(this.K);for(q=I.next();!q.done;q=I.next())q=q.value,n=J[q.W],p=void 0,((p=n)==null?void 0:p.length)>0&&(p=q,n=n[0],n="#EXT-X-STREAM-INF:BANDWIDTH="+(p.bitrate+n.bitrate)+',CODECS="'+(p.codecs+","+n.codecs+'",RESOLUTION=')+(p.width+"x"+p.height+',AUDIO="')+(Uly(n,p)+'",')+(K?'SUBTITLES="'+K+'",':"")+"CLOSED-CAPTIONS=NONE",p.fps>1&&(n+= ",FRAME-RATE="+p.fps),p.kF&&(n+=",VIDEO-RANGE="+p.kF),W.push(n),W.push(jo(this,q.url,"")));return W.join("\n")}; var kC0="text";g.N(fp,Ag);fp.prototype.fC=function(){return this.expiration}; fp.prototype.NH=function(){if(!this.c7||this.c7.Iu()){var W=this.K.build();W="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(W);this.c7=new vF(W)}return this.c7};g.N(hg,Ag);hg.prototype.NH=function(){return new vF(this.K.xm())}; hg.prototype.q6=function(){this.K=R_(this.K)};g.N(tg,Ag);tg.prototype.NH=function(){return new vF(this.K)};var IT={},Tsv=(IT.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",IT.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",IT.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",IT);g.u=g.Fv.prototype;g.u.getId=function(){return this.id}; g.u.getName=function(){return this.name}; g.u.isServable=function(){return this.W}; g.u.xm=function(){return this.url}; g.u.getXtags=function(){return this.xtags}; g.u.toString=function(){return this.languageCode+": "+g.a0(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.u.equals=function(W){return W?this.toString()===W.toString():!1}; g.u.Nk=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var bPX={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Bsv={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},mlI=/^(\d*)_((\d*)_?(\d*))$/;var o$Q={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},LE0={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var qP={},zdl=(qP.ALWAYS=1,qP.BY_REQUEST=3,qP.UNKNOWN=void 0,qP),Sa={},vpG=(Sa.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",Sa.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",Sa.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",Sa.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",Sa);var wbX; wbX=function(W){for(var J=Object.keys(W),K={},I=0;II-J?-1:W}; g.u.Pa=function(){return this.K.FD()}; g.u.bM=function(){return this.K.Bg()}; g.u.iZ=function(W){this.K=W};g.N(Lp,r9);Lp.prototype.K=function(W,J){return r9.prototype.K.call(this,"$N|"+W,J)}; Lp.prototype.j=function(W,J,K){return new o0(W,J,K,this.isLive)};var gtQ=[],P8=new Set;g.N(g.zR,g.Ao);g.u=g.zR.prototype; g.u.setData=function(W){W=W||{};var J=W.errordetail;J!=null&&(this.errorDetail=J);var K=W.errorcode;K!=null?this.errorCode=K:W.status==="fail"&&(this.errorCode="auth");var I=W.reason;I!=null&&(this.errorReason=I);var q=W.subreason;q!=null&&(this.SB=q);this.Y("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=W.cpn||(this.QK.ND()?"r"+g.QF(15):g.QF(16)));this.P7=I$(this.QK.P7,W.livemonitor);yPQ(this,W);var S=W.raw_player_response;if(S)this.VW=S;else{var p=W.player_response; p&&(S=JSON.parse(p))}if(this.Y("html5_enable_ssap_entity_id")){var n=W.cached_load;n&&(this.mZ=I$(this.mZ,n));if(!this.clientPlaybackNonce){var A=W.cpn;A?(this.Qv("ssei","shdc"),this.clientPlaybackNonce=A):this.clientPlaybackNonce=this.QK.ND()?"r"+g.QF(15):g.QF(16)}}S&&(this.playerResponse=S);if(this.playerResponse){var D=this.playerResponse.annotations;if(D)for(var f=g.d(D),h=f.next();!h.done;h=f.next()){var t=h.value.playerAnnotationsUrlsRenderer;if(t){t.adsOnly&&(this.d4=!0);var F=t.loadPolicy; F&&(this.annotationsLoadPolicy=zdl[F]);var a=t.invideoUrl;a&&(this.D0=qJ(a));break}}var y=this.playerResponse.attestation;y&&zOH(this,y);var U=this.playerResponse.cotn;U&&(this.cotn=U);var Q=this.playerResponse.heartbeatParams;if(Q){ylT(this)&&(this.NK=!0);var C=Q.heartbeatToken;C&&(this.drmSessionId=Q.drmSessionId||"",this.heartbeatToken=C,this.r7=Number(Q.intervalMilliseconds),this.uw=Number(Q.maxRetries),this.xk=!!Q.softFailOnError,this.U8=!!Q.useInnertubeHeartbeatsForDrm,this.kU=!0);this.heartbeatServerData= Q.heartbeatServerData;var T;this.Ud=!((T=Q.heartbeatAttestationConfig)==null||!T.requiresAttestation)}var H=this.playerResponse.messages;H&&cV0(this,H);var b=this.playerResponse.overlay;if(b){var c=b.playerControlsOverlayRenderer;if(c)if(XTc(this,c.controlBgHtml),c.mutedAutoplay){var v=g.m(c.mutedAutoplay,D3p);if(v&&v.endScreen){var Kv=g.m(v.endScreen,jXo);Kv&&Kv.text&&(this.Gy=g.uG(Kv.text))}}else this.mutedAutoplay=!1}var qI=this.playerResponse.playabilityStatus;if(qI){var WH=qI.backgroundability; WH&&WH.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var nv,P;if((nv=qI.offlineability)==null?0:(P=nv.offlineabilityRenderer)==null?0:P.offlineable)this.offlineable=!0;var UH=qI.contextParams;UH&&(this.contextParams=UH);var MI=qI.pictureInPicture;MI&&MI.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);qI.playableInEmbed&&(this.allowEmbed=!0);var oy=qI.ypcClickwrap;if(oy){var Cx=oy.playerLegacyDesktopYpcClickwrapRenderer,nx=oy.ypcRentalActivationRenderer;if(Cx)this.Xb= Cx.durationMessage||"",this.Nu=!0;else if(nx){var GA=nx.durationMessage;this.Xb=GA?g.uG(GA):"";this.Nu=!0}}var w0=qI.errorScreen;if(w0){if(w0.playerLegacyDesktopYpcTrailerRenderer){var qj=w0.playerLegacyDesktopYpcTrailerRenderer;this.S9=qj.trailerVideoId||"";var Z=w0.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var lD=Z&&Z.ypcTrailerRenderer}else if(w0.playerLegacyDesktopYpcOfferRenderer)qj=w0.playerLegacyDesktopYpcOfferRenderer;else if(w0.ypcTrailerRenderer){lD=w0.ypcTrailerRenderer;var vR=lD.fullVideoMessage; this.Ss=vR?g.uG(vR):"";var Uw,$r;this.S9=((Uw=g.m(lD,fFj))==null?void 0:($r=Uw.videoDetails)==null?void 0:$r.videoId)||""}qj&&(this.mj=qj.itemTitle||"",qj.itemUrl&&(this.Dd=qj.itemUrl),qj.itemBuyUrl&&(this.EK=qj.itemBuyUrl),this.lI=qj.itemThumbnail||"",this.Lb=qj.offerHeadline||"",this.G4=qj.offerDescription||"",this.uA=qj.offerId||"",this.yv=qj.offerButtonText||"",this.JN=qj.offerButtonFormattedText||null,this.vZ=qj.overlayDurationMsec||NaN,this.Ss=qj.fullVideoMessage||"",this.Jl=!0);if(lD){var tW= g.m(lD,fFj);if(tW)this.WC={raw_player_response:tW};else{var BH=g.m(lD,ZwT);this.WC=BH?Kz(BH):null}this.Jl=!0}}}var VG=this.playerResponse.playbackTracking;if(VG){var xr=W,M=UF(VG.googleRemarketingUrl);M&&(this.googleRemarketingUrl=M);var G=UF(VG.youtubeRemarketingUrl);G&&(this.youtubeRemarketingUrl=G);var x={},e=UF(VG.ptrackingUrl);if(e){var r=Z4(e),QQ=r.oid;QQ&&(this.Ty=QQ);var JT=r.pltype;JT&&(this.a4=JT);var uD=r.ptchn;uD&&(this.Q7=uD);var Iy=r.ptk;Iy&&(this.RR=encodeURIComponent(Iy));var xc=r.m; xc&&(this.nS=xc)}var cH=UF(VG.qoeUrl);if(cH){for(var Zp=g.qU(cH),Zn=g.d(Object.keys(Zp)),Tj=Zn.next();!Tj.done;Tj=Zn.next()){var sj=Tj.value,zj=Zp[sj];Zp[sj]=Array.isArray(zj)?zj.join(","):zj}this.DG=Zp;var ci=Zp.cat;ci&&(this.Y("html5_enable_qoe_cat_list")?this.dH=this.dH.concat(ci.split(",")):this.Od=ci);var CW=Zp.live;CW&&(this.vO=CW);var hK=Zp.drm_product;hK&&(this.drmProduct=hK)}var HY=UF(VG.videostatsPlaybackUrl);if(HY){var uW=Z4(HY),VT=uW.adformat;if(VT){xr.adformat=VT;var LZ=this.J(),kv=rVH(VT, this.Mi,LZ.T,LZ.N);kv&&(this.adFormat=kv)}var Mt=uW.aqi;Mt&&(xr.ad_query_id=Mt);var S1=uW.autoplay;S1&&(this.D4=S1=="1",this.zW=S1=="1");var Pi=uW.autonav;Pi&&(this.isAutonav=Pi=="1");var pU=uW.delay;pU&&(this.Tx=Uh(pU));var g_=uW.ei;g_&&(this.eventId=g_);if(uW.adcontext||VT)this.D4=!0;var LX=uW.feature;LX&&(this.BT=LX);var aG=uW.list;aG&&(this.playlistId=aG);var Z0=uW.of;Z0&&(this.ze=Z0);var Qk=uW.osid;Qk&&(this.osid=Qk);var CD=uW.referrer;CD&&(this.referrer=CD);var pc=uW.sdetail;pc&&(this.KX=pc); var A0=uW.ssrt;A0&&(this.HT=A0=="1");var lI=uW.subscribed;lI&&(this.subscribed=lI=="1",this.Z.subscribed=lI);var nc=uW.uga;nc&&(this.userGenderAge=nc);var wQ=uW.upt;wQ&&(this.hm=wQ);var My=uW.vm;My&&(this.videoMetadata=My);x.playback=uW}var gQ=UF(VG.videostatsWatchtimeUrl);if(gQ){var GL=Z4(gQ),$X=GL.ald;$X&&(this.ip=$X);x.watchtime=GL}var xX=UF(VG.atrUrl);if(xX){var cL=Z4(xX);x.atr=cL}var Gt=UF(VG.engageUrl);if(Gt){var PL=Z4(Gt);x.engage=PL}this.Wg=x;if(VG.promotedPlaybackTracking){var LH=VG.promotedPlaybackTracking; LH.startUrls&&(this.WM=LH.startUrls);LH.firstQuartileUrls&&(this.Ub=LH.firstQuartileUrls);LH.secondQuartileUrls&&(this.er=LH.secondQuartileUrls);LH.thirdQuartileUrls&&(this.CO=LH.thirdQuartileUrls);LH.completeUrls&&(this.o6=LH.completeUrls);LH.engagedViewUrls&&(LH.engagedViewUrls.length>1&&g.ET(new g.vd("There are more than one engaged_view_urls.")),this.zP=LH.engagedViewUrls[0])}}var AI=this.playerResponse.playerCueRanges;AI&&AI.length>0&&(this.cueRanges=AI);var OE=this.playerResponse.playerCueRangeSet; OE&&g.Xv(this,OE);a:{var Da=this.playerResponse.adPlacements;if(Da)for(var TL=g.d(Da),j0=TL.next();!j0.done;j0=TL.next()){var HF=void 0,Vk=void 0,EE=(HF=j0.value.adPlacementRenderer)==null?void 0:(Vk=HF.renderer)==null?void 0:Vk.videoAdTrackingRenderer;if(EE){var eH=EE;break a}}eH=null}var fc=eH;VG&&VG.promotedPlaybackTracking&&fc&&g.ET(new g.vd("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var Fl;if(!(Fl=fc))a:{for(var Rl=g.d(this.playerResponse.adSlots||[]), hI=Rl.next();!hI.done;hI=Rl.next()){var tI=g.m(hI.value,kt);if(tI===void 0||!dMv(tI))break;var br=void 0,XK=(br=tI.fulfillmentContent)==null?void 0:br.fulfilledLayout,BF=g.m(XK,EK);if(BF&&OK(BF)){Fl=!0;break a}}Fl=!1}Fl&&(this.vp=!0);var mj=this.playerResponse.playerAds;if(mj)for(var Wl=W,rQ=g.d(mj),aO=rQ.next();!aO.done;aO=rQ.next()){var ol=aO.value;if(ol){var LD=ol.playerLegacyDesktopWatchAdsRenderer;if(LD){var $a=LD.playerAdParams;if($a){$a.autoplay=="1"&&(this.zW=this.D4=!0);this.ZI=$a.encodedAdSafetyReason|| null;$a.showContentThumbnail!==void 0&&(this.CA=!!$a.showContentThumbnail);Wl.enabled_engage_types=$a.enabledEngageTypes;break}}}}var wM=this.playerResponse.playerConfig;if(wM){var zd=wM.manifestlessWindowedLiveConfig;if(zd){var kX=Number(zd.minDvrSequence),FD=Number(zd.maxDvrSequence),u2=Number(zd.minDvrMediaTimeMs),Nb=Number(zd.maxDvrMediaTimeMs),aC=Number(zd.startWalltimeMs);kX&&(this.Qw=kX);u2&&(this.vS=u2/1E3,this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&nK(this)&&(this.Ou=u2/ 1E3));FD&&(this.X4=FD);Nb&&(this.qD=Nb/1E3,this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&nK(this)&&(this.ez=Nb/1E3));aC&&(this.bb=aC/1E3);(kX||u2)&&(FD||Nb)&&(this.allowLiveDvr=this.isLivePlayback=this.sI=!0,this.jP=!1)}var v6=wM.daiConfig;if(v6){if(v6.enableDai){this.CP=!0;var yC=v6.enableServerStitchedDai;yC&&(this.enableServerStitchedDai=yC);var zL=v6.enablePreroll;zL&&(this.Jc=zL)}var JY;if(v6.daiType==="DAI_TYPE_SS_DISABLED"||((JY=v6.debugInfo)==null?0:JY.isDisabledUnpluggedChannel))this.uX= !0;v6.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.TU=!0)}var j_=wM.audioConfig;if(j_){var kf=j_.loudnessDb;kf!=null&&(this.mA=kf);var Hly=j_.trackAbsoluteLoudnessLkfs;Hly!=null&&(this.q_=Hly);var VMD=j_.loudnessTargetLkfs;VMD!=null&&(this.loudnessTargetLkfs=VMD);j_.audioMuted&&(this.nA=!0);j_.muteOnStart&&(this.OH=!0);var uo=j_.loudnessNormalizationConfig;if(uo){uo.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);uo.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var E0L=uo.minimumLoudnessTargetLkfs;E0L!=null&&(this.minimumLoudnessTargetLkfs=E0L);var eEI=uo.maxStatefulTimeThresholdSec;eEI!=null&&(this.maxStatefulTimeThresholdSec=eEI)}j_.playAudioOnly&&(this.wB=!0)}var uP0=wM.playbackEndConfig;if(uP0){var RET=uP0.endSeconds,blH=uP0.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(RET&&(this.endSeconds=RET),blH&&(this.limitedPlaybackDurationInSeconds=blH))}var yZ=wM.fairPlayConfig;if(yZ){var BkH=yZ.certificate;BkH&&(this.FW=Ar(BkH));var mw0=Number(yZ.keyRotationPeriodMs); mw0>0&&(this.LS=mw0);var rY0=Number(yZ.keyPrefetchMarginMs);rY0>0&&(this.qr=rY0)}var Sc=wM.playbackStartConfig;if(Sc){this.Pg=Number(Sc.startSeconds);var o0T=Sc.liveUtcStartSeconds,Llc=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;o0T&&!Llc&&(this.liveUtcStartSeconds=Number(o0T));var Nmv=Sc.startPosition;if(Nmv){var k5H=Nmv.utcTimeMillis;k5H&&!Llc&&(this.liveUtcStartSeconds=Number(k5H)*.001);var zEA=Nmv.streamTimeMillis;zEA&&(this.Ym=Number(zEA)*.001)}this.progressBarStartPosition=Sc.progressBarStartPosition; this.progressBarEndPosition=Sc.progressBarEndPosition}else{var dQH=wM.skippableSegmentsConfig;if(dQH){var v0y=dQH.introSkipDurationMs;v0y&&(this.f_=Number(v0y)/1E3);var YY0=dQH.outroSkipDurationMs;YY0&&(this.i$=Number(YY0)/1E3)}}var yn0=wM.skippableIntroConfig;if(yn0){var sVH=Number(yn0.startMs),cYI=Number(yn0.endMs);isNaN(sVH)||isNaN(cYI)||(this.W$=sVH,this.Os=cYI)}var P3y=wM.streamSelectionConfig;P3y&&(this.nk=Number(P3y.maxBitrate));var XlH=wM.vrConfig;XlH&&(this.J0=XlH.partialSpherical=="1"); var NB=wM.webDrmConfig;if(NB){NB.skipWidevine&&(this.X8=!0);var WsX=NB.widevineServiceCert;WsX&&(this.Rm=Ar(WsX));NB.useCobaltWidevine&&(this.useCobaltWidevine=!0);NB.startWithNoQualityConstraint&&(this.zB=!0)}var Ya=wM.mediaCommonConfig;if(Ya){var Ua=Ya.dynamicReadaheadConfig;if(Ua){this.maxReadAheadMediaTimeMs=Ua.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=Ua.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=Ua.readAheadGrowthRateMs||NaN;var i1T,J60=Ya==null?void 0:(i1T=Ya.mediaUstreamerRequestConfig)== null?void 0:i1T.videoPlaybackUstreamerConfig;J60&&(this.j3=Ar(J60));var UQI=Ya==null?void 0:Ya.sabrContextUpdates;if(UQI&&UQI.length>0)for(var KsA=g.d(UQI),ZrX=KsA.next();!ZrX.done;ZrX=KsA.next()){var hj=ZrX.value;if(hj.type&&hj.value){var UUT={type:hj.type,scope:hj.scope,value:Ar(hj.value)||void 0,sendByDefault:hj.sendByDefault};this.sabrContextUpdates.set(hj.type,UUT)}}}var IoA=Ya.serverPlaybackStartConfig;IoA&&(this.serverPlaybackStartConfig=IoA);Ya.useServerDrivenAbr&&(this.HY=!0);var q3H=Ya.requestPipeliningConfig; q3H&&(this.requestPipeliningConfig=q3H)}var S3y=wM.inlinePlaybackConfig;S3y&&(this.jU=!!S3y.showAudioControls);var Zx=wM.embeddedPlayerConfig;if(Zx){this.embeddedPlayerConfig=Zx;var QB0=Zx.embeddedPlayerMode;if(QB0){var pvI=this.J();pvI.XW=QB0;pvI.G=QB0==="EMBEDDED_PLAYER_MODE_PFL"}var loQ=Zx.permissions;loQ&&(this.allowImaMonetization=!!loQ.allowImaMonetization)}var nZL=wM.ssapConfig;nZL&&(this.hU=nZL.ssapPrerollEnabled||!1);var QZ=wM.webPlayerConfig;QZ&&(QZ.gatewayExperimentGroup&&(this.gatewayExperimentGroup= QZ.gatewayExperimentGroup),QZ.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var sd=this.playerResponse.streamingData;if(sd){var C7Q=sd.formats;if(C7Q){for(var dD=[],A6Q=g.d(C7Q),wDI=A6Q.next();!wDI.done;wDI=A6Q.next()){var MBH=wDI.value;dD.push(MBH.itag+"/"+MBH.width+"x"+MBH.height)}this.e7=dD.join(",");dD=[];for(var DhD=g.d(C7Q),gG0=DhD.next();!gG0.done;gG0=DhD.next()){var yE=gG0.value,UK={itag:yE.itag,type:yE.mimeType,quality:yE.quality},jDc=yE.url;jDc&&(UK.url=jDc);var Ck=bS(yE),Zzj=Ck.Ol, QvW=Ck.xS,CXe=Ck.s;Ck.yu&&(UK.url=Zzj,UK.sp=QvW,UK.s=CXe);dD.push(g.Ho(UK))}this.hh=dD.join(",")}var GiQ=sd.hlsFormats;if(GiQ&&!this.Y("safari_live_drm_captions_fix")){var foT=wM||null,wY={};if(foT){var $QD=foT.audioPairingConfig;if($QD&&$QD.pairs)for(var hi0=g.d($QD.pairs),xQH=hi0.next();!xQH.done;xQH=hi0.next()){var thQ=xQH.value,OrD=thQ.videoItag;wY[OrD]||(wY[OrD]=[]);wY[OrD].push(thQ.audioItag)}}for(var FsL={},aoQ=g.d(GiQ),Tm0=aoQ.next();!Tm0.done;Tm0=aoQ.next()){var uTT=Tm0.value;FsL[uTT.itag]= uTT.bitrate}for(var NaA=[],dhH=g.d(GiQ),HrQ=dhH.next();!HrQ.done;HrQ=dhH.next()){var pj=HrQ.value,gO={itag:pj.itag,type:pj.mimeType,url:pj.url,bitrate:pj.bitrate,width:pj.width,height:pj.height,fps:pj.fps},Mz=pj.audioTrack;if(Mz){var y6H=Mz.displayName;y6H&&(gO.name=y6H,gO.audio_track_id=Mz.id,Mz.audioIsDefault&&(gO.is_default="1"))}if(pj.drmFamilies){for(var UhQ=[],Z1Q=g.d(pj.drmFamilies),VBQ=Z1Q.next();!VBQ.done;VBQ=Z1Q.next())UhQ.push(Cs[VBQ.value]);gO.drm_families=UhQ.join(",")}var gY=wY[pj.itag]; if(gY&&gY.length){gO.audio_itag=gY.join(",");var QDX=FsL[gY[0]];QDX&&(gO.bitrate+=QDX)}var C$H=rMy(pj);C$H&&(gO.eotf=C$H);pj.audioChannels&&(gO.audio_channels=pj.audioChannels);NaA.push(g.Ho(gO))}this.hlsFormats=NaA.join(",")}var EGy=sd.licenseInfos;if(EGy&&EGy.length>0){for(var wvL={},Mhy=g.d(EGy),e2D=Mhy.next();!e2D.done;e2D=Mhy.next()){var gZ0=e2D.value,G1X=gZ0.drmFamily,$hL=gZ0.url;G1X&&$hL&&(wvL[Cs[G1X]]=$hL)}this.aB=wvL}var xhA=sd.drmParams;xhA&&(this.drmParams=xhA);var O1T=sd.dashManifestUrl; O1T&&(this.iU=g.Vw(O1T,{cpn:this.clientPlaybackNonce}));var TaD=sd.hlsManifestUrl;TaD&&(this.hlsvp=TaD);var H1y=sd.probeUrl;H1y&&(this.probeUrl=qJ(g.Vw(H1y,{cpn:this.clientPlaybackNonce})));var VhQ=sd.serverAbrStreamingUrl;VhQ&&(this.oH=new g.TV(VhQ,!0))}var EZQ=this.playerResponse.trackingParams;EZQ&&(this.Y3=EZQ);var Jz=this.playerResponse.videoDetails;if(Jz){var Gv=W,R2H=Jz.videoId;R2H&&(this.videoId=R2H,Gv.video_id||(Gv.video_id=R2H));var eiv=Jz.channelId;eiv&&(this.Z.uid=eiv.substring(2));var brQ= Jz.title;brQ&&(this.title=brQ,Gv.title||(Gv.title=brQ));var BmQ=Jz.lengthSeconds;BmQ&&(this.lengthSeconds=Number(BmQ),Gv.length_seconds||(Gv.length_seconds=BmQ));var RiQ=Jz.keywords;RiQ&&(this.keywords=wAI(RiQ));var mQX=Jz.channelId;mQX&&(this.qB=mQX,Gv.ucid||(Gv.ucid=mQX));var b1A=Jz.viewCount;b1A&&(this.rawViewCount=Number(b1A));var rnH=Jz.author;rnH&&(this.author=rnH,Gv.author||(Gv.author=rnH));var BaI=Jz.shortDescription;BaI&&(this.shortDescription=BaI);var mhH=Jz.isCrawlable;mhH&&(this.isListed= mhH);var r6H=Jz.musicVideoType;r6H&&(this.musicVideoType=r6H);var oGH=Jz.isLive;oGH!=null&&(this.isLivePlayback=oGH);if(oGH||Jz.isUpcoming)this.isPremiere=!Jz.isLiveContent;var oZL=Jz.thumbnail;oZL&&(this.C=yA(oZL));var LsL=Jz.isExternallyHostedPodcast;LsL&&(this.isExternallyHostedPodcast=LsL);var Lhv=Jz.viewerLivestreamJoinPosition;if(Lhv==null?0:Lhv.utcTimeMillis)this.Dn=Uh(Lhv.utcTimeMillis);var k1T=wM||null,kiH=W;Jz.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);Jz.isUpcoming&&(this.isUpcoming= !0);if(Jz.isPostLiveDvr){this.jP=!0;var ziy=Jz.latencyClass;ziy&&(this.latencyClass=vpG[ziy]||"UNKNOWN");Jz.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var z2Q=!1;this.P7?(this.allowLiveDvr=p5()?!0:P7&&zG<5?!1:!0,this.isLivePlayback=!0):Jz.isLive?(kiH.livestream="1",this.allowLiveDvr=Jz.isLiveDvrEnabled?p5()?!0:P7&&zG<5?!1:!0:!1,this.partnerId=27,z2Q=!0):Jz.isUpcoming&&(z2Q=!0);if(Jz.isLive||this.P7){Jz.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var vZQ=Jz.latencyClass; vZQ&&(this.latencyClass=vpG[vZQ]||"UNKNOWN");var Y3y=Jz.liveChunkReadahead;Y3y&&(this.liveChunkReadahead=Y3y);var pg=k1T&&k1T.livePlayerConfig;if(pg){pg.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);pg.hasSubfragmentedWebm&&(this.eM=!0);pg.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var sDT=pg.liveExperimentalContentId;sDT&&(this.liveExperimentalContentId=Number(sDT));var c6H=pg.isLiveHeadPlayable;this.Y("html5_live_head_playable")&&c6H!=null&&(this.isLiveHeadPlayable=c6H)}}z2Q&& (this.isLivePlayback=!0,kiH.adformat&&kiH.adformat.split("_")[1]!=="8"||this.G8.push("heartbeat"),this.kU=!0)}var P$y=Jz.isPrivate;P$y!==void 0&&(this.isPrivate=I$(this.isPrivate,P$y))}if(qI){var XvQ=Jz||null,W1T=!1,lZ=qI.errorScreen;W1T=lZ&&(lZ.playerLegacyDesktopYpcOfferRenderer||lZ.playerLegacyDesktopYpcTrailerRenderer||lZ.ypcTrailerRenderer)?!0:XvQ&&XvQ.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(qI.status);if(!W1T){this.errorCode=HPA(qI.errorCode)||"auth";var GE=lZ&& lZ.playerErrorMessageRenderer;if(GE){this.playerErrorMessageRenderer=GE;var i4Q=GE.reason;i4Q&&(this.errorReason=g.uG(i4Q));var vGQ=GE.subreason;vGQ&&(this.SB=g.uG(vGQ),this.zs=vGQ)}else this.errorReason=qI.reason||null;var Ycy=qI.status;if(Ycy==="LOGIN_REQUIRED")this.errorDetail="1";else if(Ycy==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(Ycy==="AGE_CHECK_REQUIRED"){var JiH=qI.errorScreen,K1Q=JiH&&JiH.playerKavRenderer;this.errorDetail=K1Q&&K1Q.kavUrl?"4":"3"}else this.errorDetail=qI.isBlockedInRestrictedMode? "5":"0"}}var INX=this.playerResponse.interstitialPods;INX&&s4v(this,INX);this.D0&&this.eventId&&(this.D0=pz(this.D0,{ei:this.eventId}));var sBD=this.playerResponse.captions;if(sBD&&sBD.playerCaptionsTracklistRenderer)a:{var $1=sBD.playerCaptionsTracklistRenderer;this.captionTracks=[];if($1.captionTracks)for(var qC0=g.d($1.captionTracks),cnc=qC0.next();!cnc.done;cnc=qC0.next()){var x1=cnc.value,SCQ=Z_y(x1.baseUrl);if(!SCQ)break a;var P7H={is_translateable:!!x1.isTranslatable,languageCode:x1.languageCode, languageName:x1.name&&g.uG(x1.name),url:SCQ,vss_id:x1.vssId,kind:x1.kind};P7H.name=x1.trackName;P7H.displayName=x1.name&&g.uG(x1.name);this.captionTracks.push(new g.Fv(P7H))}this.lk=$1.audioTracks||[];this.rg=$1.defaultAudioTrackIndex||0;this.pS=[];if($1.translationLanguages)for(var pIc=g.d($1.translationLanguages),XDI=pIc.next();!XDI.done;XDI=pIc.next()){var ng=XDI.value,tj={};tj.languageCode=ng.languageCode;tj.languageName=g.uG(ng.languageName);if(ng.translationSourceTrackIndices){tj.translationSourceTrackIndices= [];for(var lND=g.d(ng.translationSourceTrackIndices),WyQ=lND.next();!WyQ.done;WyQ=lND.next())tj.translationSourceTrackIndices.push(WyQ.value)}if(ng.excludeAudioTrackIndices){tj.excludeAudioTrackIndices=[];for(var n_Q=g.d(ng.excludeAudioTrackIndices),iHT=n_Q.next();!iHT.done;iHT=n_Q.next())tj.excludeAudioTrackIndices.push(iHT.value)}this.pS.push(tj)}this.GF=[];if($1.defaultTranslationSourceTrackIndices)for(var Ai0=g.d($1.defaultTranslationSourceTrackIndices),JKQ=Ai0.next();!JKQ.done;JKQ=Ai0.next())this.GF.push(JKQ.value); this.hc=!!$1.contribute&&!!$1.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Pg=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Pny(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var DrH;this.compositeLiveIngestionOffsetToken= (DrH=this.playerResponse.playbackTracking)==null?void 0:DrH.compositeLiveIngestionOffsetToken;var jcT;this.compositeLiveStatusToken=(jcT=this.playerResponse.playbackTracking)==null?void 0:jcT.compositeLiveStatusToken}Y5(this,W);W.queue_info&&(this.queueInfo=W.queue_info);var fNc=W.hlsdvr;fNc!=null&&(this.allowLiveDvr=Number(fNc)===1?p5()?!0:P7&&zG<5?!1:!0:!1);this.adQueryId=W.ad_query_id||null;this.ZI||(this.ZI=W.encoded_ad_safety_reason||null);this.nA=I$(this.nA,W.infringe||W.muted);this.z1=W.authkey; this.Ur=W.authuser;this.mutedAutoplay=I$(this.mutedAutoplay,W&&W.playmuted);this.mutedAutoplayDurationMode=S6(this.mutedAutoplayDurationMode,W&&W.muted_autoplay_duration_mode);this.EL=I$(this.EL,W&&W.mutedautoplay);var $S=W.length_seconds;$S&&(this.lengthSeconds=typeof $S==="string"?Uh($S):$S);if(this.isAd()||this.UQ||!g.DR(g.Bw(this.QK)))this.endSeconds=S6(this.endSeconds,this.i$||W.end||W.endSeconds);else{var w7v=g.Bw(this.QK),xS=this.lengthSeconds;switch(w7v){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":xS> 30?this.limitedPlaybackDurationInSeconds=30:xS<30&&xS>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=xS*.2}}this.Y3=pn(this.Y3,W.itct);this.Kd=I$(this.Kd,W.is_live_destination);this.isLivePlayback=I$(this.isLivePlayback,W.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.dl();W.isUpcoming&&(this.isUpcoming=I$(this.isUpcoming,W.isUpcoming));this.jP=I$(this.jP,W.post_live_playback); this.sI&&(this.jP=!1);this.isMdxPlayback=I$(this.isMdxPlayback,W.mdx);var Oa=W.mdx_control_mode;Oa&&(this.mdxControlMode=typeof Oa==="number"?Oa:Uh(Oa));this.isInlinePlaybackNoAd=I$(this.isInlinePlaybackNoAd,W.is_inline_playback_no_ad);this.Fz=S6(this.Fz,W.reload_count);this.reloadReason=pn(this.reloadReason,W.reload_reason);this.CA=I$(this.CA,W.show_content_thumbnail);this.cycToken=W.cyc||null;var hAI=d9(W);Object.keys(hAI).length>0&&(this.C=hAI);this.jZ=pn(this.jZ,W.vvt);this.mdxEnvironment=pn(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.jcs=W.osig;this.eventId||(this.eventId=W.eventid);this.osid||(this.osid=W.osid);this.playlistId=pn(this.playlistId,W.list);W.index&&(this.playlistIndex=this.playlistIndex===void 0?S6(0,W.index):S6(this.playlistIndex,W.index));this.eJ=W.pyv_view_beacon_url;this.u_=W.pyv_quartile25_beacon_url;this.WI= W.pyv_quartile50_beacon_url;this.sf=W.pyv_quartile75_beacon_url;this.Rw=W.pyv_quartile100_beacon_url;var t3y=W.session_data;!this.gY&&t3y&&(this.gY=iX(t3y,"&").feature);this.isFling=S6(this.isFling?1:0,W.is_fling)===1;this.vnd=S6(this.vnd,W.vnd);this.forceAdsUrl=pn(this.forceAdsUrl,W.force_ads_url);this.Cw=pn(this.Cw,W.ctrl);this.yT=pn(this.yT,W.ytr);this.Nx=W.ytrcc;this.GE=W.ytrexp;this.zf=W.ytrext;this.oG=pn(this.oG,W.adformat);this.Mi=pn(this.Mi,W.attrib);this.slotPosition=S6(this.slotPosition, W.slot_pos);this.breakType=W.break_type;this.HT=I$(this.HT,W.ssrt);this.videoId=nn(W)||this.videoId;this.S=pn(this.S,W.vss_credentials_token);this.L_=pn(this.L_,W.vss_credentials_token_type);this.wB=I$(this.wB,W.audio_only);this.bO=I$(this.bO,W.aac_high);this.Lx=I$(this.Lx,W.prefer_low_quality_audio);this.MH=I$(this.MH,W.uncap_inline_quality);this.Y("html5_enable_qoe_cat_list")?W.qoe_cat&&(this.dH=this.dH.concat(W.qoe_cat.split(","))):this.Od=pn(this.Od,W.qoe_cat);this.bC=I$(this.bC,W.download_media); var F1H=W.prefer_gapless;this.N=F1H!=null?I$(this.N,F1H):this.N?this.N:this.QK.preferGapless&&this.QK.supportsGaplessShorts();Xny(this.playerResponse)&&this.G8.push("ad");var aNH=W.adaptive_fmts;aNH&&(this.adaptiveFormats=aNH,this.WS("adpfmts",{},!0));var uqv=W.allow_embed;uqv&&(this.allowEmbed=Number(uqv)===1);var NpQ=W.backgroundable;NpQ&&(this.backgroundable=Number(NpQ)===1);var drQ=W.autonav;drQ&&(this.isAutonav=Number(drQ)===1);var yiv=W.autoplay;yiv&&(this.D4=this.zW=Number(yiv)===1);var UrH= W.iv_load_policy;UrH&&(this.annotationsLoadPolicy=qk(this.annotationsLoadPolicy,UrH,mY));var Z4D=W.cc_lang_pref;Z4D&&(this.captionsLanguagePreference=pn(Z4D,this.captionsLanguagePreference));var QcA=W.cc_load_policy;QcA&&(this.FA=qk(this.FA,QcA,mY));var C4H;this.deviceCaptionsOn=(C4H=W.device_captions_on)!=null?C4H:void 0;var wIy;this.qf=(wIy=W.device_captions_lang_pref)!=null?wIy:"";var M3D;this.FZ=(M3D=W.viewer_selected_caption_langs)!=null?M3D:[];if(!this.Y("html5_enable_ssap_entity_id")){var g_L= W.cached_load;g_L&&(this.mZ=I$(this.mZ,g_L))}if(W.dash==="0"||W.dash===0||W.dash===!1)this.Hc=!0;var Gxv=W.dashmpd;Gxv&&(this.iU=g.Vw(Gxv,{cpn:this.clientPlaybackNonce}));var $rQ=W.delay;$rQ&&(this.Tx=Uh($rQ));var Ky0=this.i$||W.end;if(this.fE?Ky0!=null:Ky0!=void 0)this.clipEnd=S6(this.clipEnd,Ky0);var xrv=W.fmt_list;xrv&&(this.e7=xrv);W.heartbeat_preroll&&this.G8.push("heartbeat");this.bH=-Math.floor(Math.random()*10);this.Jb=-Math.floor(Math.random()*40);var O4y=W.is_listed;O4y&&(this.isListed= I$(this.isListed,O4y));var TpA=W.is_private;TpA&&(this.isPrivate=I$(this.isPrivate,TpA));var H4v=W.is_dni;H4v&&(this.pP=I$(this.pP,H4v));var V3Q=W.dni_color;V3Q&&(this.b8=pn(this.b8,V3Q));var E_Q=W.pipable;E_Q&&(this.pipable=I$(this.pipable,E_Q));this.ME=(this.dg=this.pipable&&this.QK.Y_)&&!this.QK.showMiniplayerButton;var eAH=W.paid_content_overlay_duration_ms;eAH&&(this.paidContentOverlayDurationMs=Uh(eAH));var RAX=W.paid_content_overlay_text;RAX&&(this.paidContentOverlayText=RAX);var b4v=W.url_encoded_fmt_stream_map; b4v&&(this.hh=b4v);var Bpv=W.hls_formats;Bpv&&(this.hlsFormats=Bpv);var mrQ=W.hlsvp;mrQ&&(this.hlsvp=mrQ);var TE=W.live_start_walltime;TE&&(this.a0I=typeof TE==="number"?TE:Uh(TE));var HB=W.live_manifest_duration;HB&&(this.Uv=typeof HB==="number"?HB:Uh(HB));var riA=W.player_params;riA&&(this.playerParams=riA);var o_L=W.partnerid;o_L&&(this.partnerId=S6(this.partnerId,o_L));var L1A=W.probe_url;L1A&&(this.probeUrl=qJ(g.Vw(L1A,{cpn:this.clientPlaybackNonce})));var I8Q=W.pyv_billable_url;I8Q&&Ibv(I8Q)&& (this.zP=I8Q);var q1Q=W.pyv_conv_url;q1Q&&Ibv(q1Q)&&(this.Ct=q1Q);M5I(this,W);this.startSeconds>0?this.Y("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.Pg||this.f_||W.start||W.startSeconds)&&this.WS("lss",{css:this.startSeconds,pcss:this.Pg,iss:this.f_,ps:W.start||void 0,pss:W.startSeconds||void 0}):this.SI=this.startSeconds=S6(this.startSeconds,this.Pg||this.f_||W.start||W.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var kxL=W.live_utc_start;if(kxL!= null)this.liveUtcStartSeconds=Number(kxL);else{var S1Q=this.startSeconds;S1Q&&isFinite(S1Q)&&S1Q>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var zAc=W.utc_start_millis;zAc&&(this.liveUtcStartSeconds=Number(zAc)*.001)}var v_y=W.stream_time_start_millis;v_y&&(this.Ym=Number(v_y)*.001);var ps0=this.f_||W.start;(this.fE?ps0==null||Number(W.resume)===1:ps0==void 0||W.resume=="1")||this.isLivePlayback||(this.clipStart=S6(this.clipStart, ps0));var YCH=W.url_encoded_third_party_media;YCH&&(this.K4=Iv(YCH));var l8v=W.ypc_offer_button_formatted_text;if(l8v){var scQ=JSON.parse(l8v);this.JN=scQ!=null?scQ:null;this.i6=l8v}var ciQ=W.ypc_offer_button_text;ciQ&&(this.yv=ciQ);var P4Q=W.ypc_offer_description;P4Q&&(this.G4=P4Q);var XIH=W.ypc_offer_headline;XIH&&(this.Lb=XIH);var Wt0=W.ypc_full_video_message;Wt0&&(this.Ss=Wt0);var iTD=W.ypc_offer_id;iTD&&(this.uA=iTD);var Jey=W.ypc_buy_url;Jey&&(this.EK=Jey);var KtD=W.ypc_item_thumbnail;KtD&& (this.lI=KtD);var IzA=W.ypc_item_title;IzA&&(this.mj=IzA);var qxL=W.ypc_item_url;qxL&&(this.Dd=qxL);var SxI=W.ypc_vid;SxI&&(this.S9=SxI);W.ypc_overlay_timeout&&(this.vZ=Number(W.ypc_overlay_timeout));var pGy=W.ypc_trailer_player_vars;pGy&&(this.WC=Kz(pGy));var lzA=W.ypc_original_itct;lzA&&(this.s7w=lzA);this.qB=pn(this.qB,W.ucid);W.baseUrl&&(this.Z.baseUrl=W.baseUrl);W.uid&&(this.Z.uid=W.uid);W.oeid&&(this.Z.oeid=W.oeid);W.ieid&&(this.Z.ieid=W.ieid);W.ppe&&(this.Z.ppe=W.ppe);W.engaged&&(this.Z.engaged= W.engaged);W.subscribed&&(this.Z.subscribed=W.subscribed);this.Z.focEnabled=I$(this.Z.focEnabled,W.focEnabled);this.Z.rmktEnabled=I$(this.Z.rmktEnabled,W.rmktEnabled);this.VM=W.storyboard_spec||null;this.CS=W.live_storyboard_spec||null;this.lT=W.iv_endscreen_url||null;this.kU=I$(this.kU,W.ypc_license_checker_module);this.Jl=I$(this.Jl,W.ypc_module);this.Nu=I$(this.Nu,W.ypc_clickwrap_module);this.Jl&&this.G8.push("ypc");this.Nu&&this.G8.push("ypc_clickwrap");this.xx={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};UBA(this,W);var nDQ=W.cotn;nDQ&&(this.cotn=nDQ);if(BDQ(this))j7(this)&& (this.isLivePlayback&&this.iU&&(this.NP=!0),this.FW&&(this.Rr=!0));else if(mBA(this))this.NP=!0;else{var Aev,DLA,jdD=((Aev=this.playerResponse)==null?void 0:(DLA=Aev.streamingData)==null?void 0:DLA.adaptiveFormats)||[];if(jdD.length>0)var ZZ=b_y(this,jdD);else{var fzy=this.adaptiveFormats;if(fzy&&!j7(this)){this.QK.j.G&&(RU=!0);var AH=NE(fzy),nPQ=this.aB,hSy=this.lengthSeconds,MCT=this.isLivePlayback,QE=this.jP,DM=this.QK,guo=KZH(AH);if(MCT||QE){var ttH=DM==null?void 0:DM.experiments,Ld=new Ze("", ttH,!0);Ld.dl=!0;Ld.isManifestless=!0;Ld.K=!QE;Ld.isLive=!QE;Ld.jP=QE;for(var FtL=g.d(AH),AK0=FtL.next();!AK0.done;AK0=FtL.next()){var jc=AK0.value,azy=MD(jc,nPQ),Fh=gf(jc.url,jc.sp,jc.s),uzD=Fh.get("id");uzD&&uzD.includes("%7E")&&(Ld.C=!0);var NLv=void 0,G_v=(NLv=ttH)==null?void 0:NLv.HS("html5_max_known_end_time_rebase"),$UL=Number(jc.target_duration_sec)||5,xUG=Number(jc.max_dvr_duration_sec)||14400,dLT=Number(Fh.get("mindsq")||Fh.get("min_sq")||"0"),yeT=Number(Fh.get("maxdsq")||Fh.get("max_sq")|| "0")||Infinity;Ld.Qw=Ld.Qw||dLT;Ld.X4=Ld.X4||yeT;var OzW=!pD(azy.mimeType);Fh&&df(Ld,new ps(Fh,azy,{kh:$UL,GZ:OzW,AQ:xUG,Qw:dLT,X4:yeT,Vn:300,jP:QE,pO:G_v}))}var ULc=Ld}else{if(guo==="FORMAT_STREAM_TYPE_OTF"){var VZ=hSy;VZ=VZ===void 0?0:VZ;var fg=new Ze("",DM==null?void 0:DM.experiments,!1);fg.duration=VZ||0;for(var ZTQ=g.d(AH),DFD=ZTQ.next();!DFD.done;DFD=ZTQ.next()){var hH=DFD.value,jML=MD(hH,nPQ,fg.duration),f8y=gf(hH.url,hH.sp,hH.s);if(f8y)if(jML.streamType==="FORMAT_STREAM_TYPE_OTF")df(fg,new lz(f8y, jML,"sq/0"));else{var TqR=be(hH.init),HzW=be(hH.index);df(fg,new aU(f8y,jML,TqR,HzW))}}fg.isOtf=!0;var QdX=fg}else{var Ea=hSy;Ea=Ea===void 0?0:Ea;var ez=new Ze("",DM==null?void 0:DM.experiments,!1);ez.duration=Ea||0;for(var C_y=g.d(AH),huH=C_y.next();!huH.done;huH=C_y.next()){var tH=huH.value,VCr=MD(tH,nPQ,ez.duration),Eux=g.E(be(tH.init)),eJe=g.E(be(tH.index)),wGy=gf(tH.url,tH.sp,tH.s);wGy&&df(ez,new aU(wGy,VCr,Eux,eJe))}QdX=ez}ULc=QdX}var Mty=ULc;if(AH.length>0){var gDD=AH[0];if(this.J().playerStyle=== "hangouts-meet"&&gDD.url){var RJo=g.qU(gDD.url);this.V_=this.V_||Number(RJo.expire)}}var bzx=this.isLivePlayback&&!this.jP&&!this.sI&&!this.isPremiere;this.Y("html5_live_head_playable")&&(!fK(this)&&bzx&&this.WS("missingLiveHeadPlayable",{}),this.QK.PS==="yt"&&(Mty.Y3=!0));ZZ=Mty}else ZZ=null;this.WS("pafmts",{isManifestFilled:!!ZZ})}if(ZZ){FK(this,ZZ);var GZD=!0}else GZD=!1;GZD?this.enableServerStitchedDai=this.enableServerStitchedDai&&hS(this):this.iU&&(this.QK.PS==="yt"&&this.dl()&&this.Y("drm_manifestless_unplugged")&& this.Y("html5_deprecate_manifestful_fallback")?this.WS("deprecateMflFallback",{}):this.NP=!0)}var teH=W.adpings;teH&&(this.Y_=teH?Kz(teH):null);var $Ly=W.feature;$Ly&&(this.BT=$Ly);var xLv=W.referrer;xLv&&(this.referrer=xLv);this.clientScreenNonce=pn(this.clientScreenNonce,W.csn);this.zT=S6(this.zT,W.root_ve_type);this.lX=S6(this.lX,W.kids_age_up_mode);this.fE||W.kids_app_info==void 0||(this.kidsAppInfo=W.kids_app_info);this.fE&&W.kids_app_info!=null&&(this.kidsAppInfo=W.kids_app_info);this.kJ=I$(this.kJ, W.upg_content_filter_mode);this.unpluggedFilterModeType=S6(this.unpluggedFilterModeType,W.unplugged_filter_mode_type);var OTA=W.unplugged_location_info;OTA&&(this.lN=OTA);var TLH=W.unplugged_partner_opt_out;TLH&&(this.Uy=pn("",TLH));this.LL=I$(this.LL,W.disable_watch_next);this.R0=pn(this.R0,W.internal_ip_override);this.Po=!!W.is_yto_interstitial;(this.interstitials.length||this.Po)&&this.G8.push("yto");var HTH=W.BC;HTH&&(this.BC=HTH);if(this.Y("html5_persist_csi_timer"))this.PS=pn(this.PS,W.csi_timer); else{var VtI;this.PS=(VtI=W.csi_timer)!=null?VtI:""}W.watchUrl&&(this.watchUrl=W.watchUrl);var aa=W.watch_endpoint;this.Y("html5_attach_watch_endpoint_ustreamer_config")&&aa&&eO0(this,aa);if(aa==null?0:aa.ustreamerConfig)this.IW=Ar(aa.ustreamerConfig);var EDQ,eSQ,RSy=aa==null?void 0:(EDQ=aa.loggingContext)==null?void 0:(eSQ=EDQ.qoeLoggingContext)==null?void 0:eSQ.serializedContextData;RSy&&(this.Rah=RSy);g.xK(this.QK)&&this.QK.ez&&(this.embedsRct=pn(this.embedsRct,W.rct),this.embedsRctn=pn(this.embedsRctn, W.rctn));this.LA=this.LA||!!W.pause_at_start;W.default_active_source_video_id&&(this.defaultActiveSourceVideoId=W.default_active_source_video_id)}; g.u.J=function(){return this.QK}; g.u.Y=function(W){return this.QK.Y(W)}; g.u.Cc=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.u.hasSupportedAudio51Tracks=function(){var W;return!((W=this.dB)==null||!W.Js)}; g.u.getUserAudio51Preference=function(){var W=1;W8(this.QK)&&this.Y("html5_ytv_surround_toggle_default_off")?W=0:g.cw(this.QK)&&this.isLivePlayback&&this.pQ()&&(W=0);var J;return(J=g.V0("yt-player-audio51"))!=null?J:W}; g.u.FB=function(){this.Iu()||(this.W.K||this.W.unsubscribe("refresh",this.FB,this),this.P6(-1))}; g.u.P6=function(W){if(!this.isLivePlayback||!this.j||this.j.flavor!=="fairplay"){var J=qQQ(this.W,this.gy);if(J.length>0){for(var K=g.d(J),I=K.next();!I.done;I=K.next())I=I.value,I.startSecs=Math.max(I.startSecs,this.wf()),this.Y("html5_cuepoint_identifier_logging")&&I.event==="start"&&this.WS("cuepoint",{pubCue:I.identifier,segNum:W});this.publish("cuepointupdated",J,W);this.gy+=J.length;if(hS(this)&&this.QK.ND())for(J=g.d(J),K=J.next();!K.done;K=J.next())K=K.value,this.WS("cuepoint",{segNum:W,event:K.event, startSecs:K.startSecs,id:K.identifier.slice(-16)}),K.event==="start"&&(K=K.startSecs,this.Cx.start=this.OI,this.Cx.end=K+3)}}}; g.u.B2=function(){this.Iu()||(this.loading=!1,this.publish("dataloaded"))}; g.u.pQ=function(){return this.Ov!==void 0?this.Ov:this.Ov=!!this.aB||!!this.W&&wE(this.W)}; g.u.zN=function(W){var J=this;if(this.Iu())return OD();this.kK=this.Js=this.G=null;i3(this,"html5_high_res_logging_always")&&(this.QK.hh=!0);return kUT(this,W).then(void 0,function(){return vty(J,W)}).then(void 0,function(){return YKQ(J)}).then(void 0,function(){return cPA(J)})}; g.u.Qy=function(W){this.G=W;zUL(this,this.G.getAvailableAudioTracks());if(this.G){W=g.d(this.G.videoInfos);for(var J=W.next();!J.done;J=W.next()){J=J.value;var K=J.containerType;K!==0&&(this.TF[K]=J.id)}}wP(this);if(this.j&&this.G&&this.G.videoInfos&&!(this.G.videoInfos.length<=0)&&(W=KD(this.G.videoInfos[0]),this.j.flavor==="fairplay"!==W))for(J=g.d(this.Ze),K=J.next();!K.done;K=J.next())if(K=K.value,W===(K.flavor==="fairplay")){this.j=K;break}}; g.u.EW=function(){if(this.cotn)return null;var W=g.gJ(this.QK)||this.Y("web_l3_storyboard");if(!this.bv)if(this.playerResponse&&this.playerResponse.storyboards){var J=this.playerResponse.storyboards,K=J.playerStoryboardSpecRenderer;K&&K.spec?this.bv=new r9(K.spec,this.lengthSeconds,void 0,!1,W):(J=J.playerLiveStoryboardSpecRenderer)&&J.spec&&this.W&&(K=VQH(this.W.W).index)&&(this.bv=new Lp(J.spec,this.W.isLive,K,W))}else this.VM?this.bv=new r9(this.VM,this.lengthSeconds,void 0,!1,W):this.CS&&this.W&& (J=VQH(this.W.W).index)&&(this.bv=new Lp(this.CS,this.W.isLive,J,W));return this.bv}; g.u.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var W=this.playerResponse.storyboards;return(W=W.playerStoryboardSpecRenderer||W.playerLiveStoryboardSpecRenderer)&&W.spec||null}return this.VM||this.CS}; g.u.Mk=function(){return this.W&&!isNaN(this.W.Mk())?this.W.Mk():hS(this)?0:this.lengthSeconds}; g.u.wf=function(){return this.W&&!isNaN(this.W.wf())?this.W.wf():0}; g.u.getPlaylistSequenceForTime=function(W){if(this.W&&this.K){var J=this.W.W[this.K.id];if(!J)return null;var K=J.index.sW(W);J=J.index.getStartTime(K);return{sequence:K,elapsed:Math.floor((W-J)*1E3)}}return null}; g.u.Nk=function(){return!this.Iu()&&!(!this.videoId&&!this.K4)}; g.u.Fn=function(){var W,J,K;return!!this.adaptiveFormats||!!((W=this.playerResponse)==null?0:(J=W.streamingData)==null?0:(K=J.adaptiveFormats)==null?0:K.length)}; g.u.isLoaded=function(){return v8(this)&&!this.NP&&!this.Rr}; g.u.MP=function(W){W||(W="hqdefault.jpg");var J=this.C[W];return J||this.QK.sI||W==="pop1.jpg"||W==="pop2.jpg"||W==="sddefault.jpg"||W==="hq720.jpg"||W==="maxresdefault.jpg"?J:YK(this.QK,this.videoId,W)}; g.u.dl=function(){return this.isLivePlayback||this.jP||this.sI||!(!this.liveUtcStartSeconds||!this.Uv)}; g.u.isOtf=function(){return!!this.W&&(this.W.isOtf||!this.jP&&!this.isLivePlayback&&this.W.K)}; g.u.getAvailableAudioTracks=function(){return this.G?this.G.getAvailableAudioTracks().length>0?this.G.getAvailableAudioTracks():this.Um||[]:[]}; g.u.getAudioTrack=function(){var W=this;if(this.T&&!KD(this.T)){var J=g.hW(this.getAvailableAudioTracks(),function(q){return q.id===W.T.id}),K; if(this.Y("html5_sabr_skip_client_audio_init_selection")&&!J&&((K=this.T.pE)==null?0:K.id)){var I=this.T.pE.id;J=g.hW(this.getAvailableAudioTracks(),function(q){return q.pE.id===I}); this.WS("nat",{id:this.T.id,track:!!J})}return J||this.uD}if(this.Um){if(!this.hn)for(J=g.d(this.Um),K=J.next();!K.done;K=J.next())if(K=K.value,K.pE.getIsDefault()){this.hn=K;break}return this.hn||this.uD}return this.uD}; g.u.getPlayerResponse=function(){return this.playerResponse}; g.u.getWatchNextResponse=function(){return this.SZ}; g.u.getHeartbeatResponse=function(){return this.CL}; g.u.Sa=function(){return this.watchUrl?this.watchUrl:this.QK.getVideoUrl(this.videoId)}; g.u.lf=function(){return!!this.W&&(slc(this.W)||cMy(this.W)||PrT(this.W))}; g.u.getEmbeddedPlayerResponse=function(){return this.oX}; g.u.bD=function(){return(this.eventLabel||this.QK.vS)==="shortspage"}; g.u.isAd=function(){return this.El||!!this.adFormat}; g.u.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.u.rf=function(){var W,J,K;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((W=this.playerResponse)==null?0:(J=W.playerConfig)==null?0:(K=J.daiConfig)==null?0:K.ssaEnabledPlayback)}; g.u.gX=function(){return ylT(this)?this.NK:this.kU||this.GG}; g.u.Tk=function(){return this.Jl||this.GG}; g.u.Hk=function(){return i3(this,"html5_samsung_vp9_live")}; g.u.WS=function(W,J,K){this.publish("ctmp",W,J,K)}; g.u.Qv=function(W,J,K){this.publish("ctmpstr",W,J,K)}; g.u.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.u.getGetAdBreakContext=function(W,J){W=W===void 0?NaN:W;J=J===void 0?NaN:J;var K={isSabr:nK(this)},I,q=(I=this.getHeartbeatResponse())==null?void 0:I.adBreakHeartbeatParams;q&&(K.adBreakHeartbeatParams=q);if(this.Y("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.W&&!isNaN(W)&&!isNaN(J)){J=W-J;for(var S in this.W.W)if(I=this.W.W[S],I.info.kC()||I.info.SF())if(I=I.index,I.isLoaded()){S=I.sW(J);I=I.OA(S)+J-I.getStartTime(S);this.WS("gabc",{t:W.toFixed(3),mt:J.toFixed(3),sg:S,igt:I.toFixed(3)}); K.livePlaybackPosition={utcTimeMillis:""+(I*1E3).toFixed(0)};break}}return K}; g.u.isEmbedsShortsMode=function(W,J){if(!g.xK(this.QK)||(this.QK.XW||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||J)return!1;var K,I;return!!(((K=this.embeddedPlayerConfig)==null?0:(I=K.embeddedPlayerFlags)==null?0:I.isShortsExperienceEligible)&&W.width<=W.height)}; g.u.lO=function(){g.Ao.prototype.lO.call(this);this.Y_=null;delete this.Mc;delete this.accountLinkingConfig;delete this.W;this.G=this.CL=this.playerResponse=this.SZ=null;this.hh=this.adaptiveFormats="";delete this.botguardData;this.eZ=this.suggestions=this.B1=null;this.sabrContextUpdates.clear()};var GpA={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},$nA={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},MdQ={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Q8D={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"},wz0={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},Cfy={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"},g2Q={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.N(nl,g.R);g.u=nl.prototype;g.u.handleExternalCall=function(W,J,K){var I=this.state.Z[W],q=this.state.N[W],S=I;if(q)if(K&&JN(K,fKj))S=q;else if(!I)throw Error('API call from an untrusted origin: "'+K+'"');this.logApiCall(W,K);if(S){K=!1;I=g.d(J);for(q=I.next();!q.done;q=I.next())if(String(q.value).includes("javascript:")){K=!0;break}K&&g.ET(Error('Dangerous call to "'+W+'" with ['+J+"]."));return S.apply(this,J)}throw Error('Unknown API method: "'+W+'".');}; g.u.logApiCall=function(W,J,K){var I=this.app.J();I.dH&&!this.state.C.has(W)&&(this.state.C.add(W),g.AF("webPlayerApiCalled",{callerUrl:I.loaderUrl,methodName:W,origin:J||void 0,playerStyle:I.playerStyle||void 0,embeddedPlayerMode:I.XW,errorCode:K}))}; g.u.publish=function(W){var J=g.EH.apply(1,arguments);this.state.G.publish.apply(this.state.G,[W].concat(g.w(J)));if(W==="videodatachange"||W==="resize"||W==="cardstatechange")this.state.K.publish.apply(this.state.K,[W].concat(g.w(J))),this.state.T.publish.apply(this.state.T,[W].concat(g.w(J)))}; g.u.qN=function(W){var J=g.EH.apply(1,arguments);this.state.G.publish.apply(this.state.G,[W].concat(g.w(J)));this.state.K.publish.apply(this.state.K,[W].concat(g.w(J)))}; g.u.z$=function(W){var J=g.EH.apply(1,arguments);this.state.G.publish.apply(this.state.G,[W].concat(g.w(J)));this.state.K.publish.apply(this.state.K,[W].concat(g.w(J)));this.state.T.publish.apply(this.state.T,[W].concat(g.w(J)))}; g.u.YC=function(W){var J=g.EH.apply(1,arguments);this.state.G.publish.apply(this.state.G,[W].concat(g.w(J)));this.state.K.publish.apply(this.state.K,[W].concat(g.w(J)));this.state.T.publish.apply(this.state.T,[W].concat(g.w(J)));this.state.j.publish.apply(this.state.j,[W].concat(g.w(J)))}; g.u.Y=function(W){return this.app.J().Y(W)}; g.u.lO=function(){if(this.state.element){var W=this.state.element,J;for(J in this.state.W)this.state.W.hasOwnProperty(J)&&(W[J]=null);this.state.element=null}g.R.prototype.lO.call(this)};g.N(hY,g.g5);hY.prototype.publish=function(W){var J=g.EH.apply(1,arguments);if(this.j.has(W))return this.j.get(W).push(J),!0;var K=!1;try{for(J=[J],this.j.set(W,J);J.length;)K=g.g5.prototype.publish.call.apply(g.g5.prototype.publish,[this,W].concat(g.w(J.shift())))}finally{this.j.delete(W)}return K};g.N(tY,g.R);tY.prototype.lO=function(){this.j.dispose();this.T.dispose();this.K.dispose();this.G.dispose();this.C=this.W=this.N=this.Z=this.S=void 0};var eNv=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.N(aV,nl);g.u=aV.prototype;g.u.getApiInterface=function(){return Array.from(this.state.S)}; g.u.HJ=function(W,J){this.state.j.subscribe(W,J)}; g.u.RJu=function(W,J){this.state.j.unsubscribe(W,J)}; g.u.getPlayerState=function(W){return UKD(this.app,W)}; g.u.R$=function(){return UKD(this.app)}; g.u.ItN=function(W,J,K){dk(this)&&(ey(this.app,!0,1),BV(this.app,W,J,K,1))}; g.u.getCurrentTime=function(W,J,K){var I=this.getPlayerState(W);if(this.app.getAppState()===2&&I===5){var q;return((q=this.app.getVideoData())==null?void 0:q.startSeconds)||0}return this.Y("web_player_max_seekable_on_ended")&&I===0?$3(this.app,W):W?this.app.getCurrentTime(W,J,K):this.app.getCurrentTime(W)}; g.u.FG=function(){return this.app.getCurrentTime(1)}; g.u.zO=function(){var W=this.app.OA(1);return isNaN(W)?this.getCurrentTime(1):W}; g.u.n5=function(){return this.app.getDuration(1)}; g.u.ST=function(W,J){W=g.Gm(Math.floor(W),0,100);isFinite(W)&&gK(this.app,{volume:W,muted:this.isMuted()},J)}; g.u.yR0=function(W){this.ST(W,!1)}; g.u.O7=function(W){gK(this.app,{muted:!0,volume:this.getVolume()},W)}; g.u.Keu=function(){this.O7(!1)}; g.u.RT=function(W){Nw(this.app)&&!this.Y("embeds_enable_emc3ds_muted_autoplay")||gK(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},W)}; g.u.OQu=function(){Nw(this.app)&&this.Y("embeds_enable_emc3ds_muted_autoplay")||this.RT(!1)}; g.u.getPlayerMode=function(){var W={};this.app.getVideoData().pP&&(W.pfp={enableIma:g.IV(this.app.getVideoData())&&this.app.K7().allowImaMonetization,autoplay:BL(this.app.K7()),mutedAutoplay:this.app.K7().mutedAutoplay});return W}; g.u.fv=function(){var W=this.app.getPresentingPlayerType();if(W===2&&!this.app.CP()){var J=$z(this.app.Xz());if(!gcx(J)||GAo(J))return}(J=this.app.ai().B$)?J.playVideo():this.app.playVideo(W)}; g.u.ZPK=function(){ey(this.app,!0,1);this.fv()}; g.u.pauseVideo=function(W){var J=this.app.getPresentingPlayerType();if(J!==2||this.app.CP()||gcx($z(this.app.Xz()))){var K=this.app.ai().B$;K?K.pauseVideo():this.app.pauseVideo(J,W)}}; g.u.Pyu=function(){var W=this.app,J=!1;W.Ru.oG&&(W.BS.publish("pageTransition"),J=!0);W.stopVideo(J)}; g.u.clearVideo=function(){}; g.u.getAvailablePlaybackRates=function(){var W=this.app.J();return W.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(W.T?W.ancestorOrigins[0]:window.location.origin)||W.BT?rz$:W.supportsVarispeedExtendedFeatures?oj$:W.Y("web_remix_allow_up_to_3x_playback_rate")&&g.Bh(W)?L6L:gB:[1]}; g.u.getPlaybackQuality=function(W){return(W=this.app.SA(W))?W.getPlaybackQuality():"unknown"}; g.u.NKO=function(){}; g.u.getAvailableQualityLevels=function(W){return(W=this.app.SA(W))?(W=g.zC(W.iV(),function(J){return J.quality}),W.length&&(W[0]==="auto"&&W.shift(),W=W.concat(["auto"])),W):[]}; g.u.AY=function(){return this.getAvailableQualityLevels(1)}; g.u.Kf=function(){return this.iq()}; g.u.EV=function(){return 1}; g.u.getVideoLoadedFraction=function(W){return this.app.getVideoLoadedFraction(W)}; g.u.iq=function(){return this.getVideoLoadedFraction()}; g.u.G1=function(){return 0}; g.u.getSize=function(){var W=this.app.UI().getPlayerSize();return{width:W.width,height:W.height}}; g.u.setSize=function(){this.app.UI().resize()}; g.u.loadVideoById=function(W,J,K,I){if(!W)return!1;W=Ff(W,J,K);return this.app.loadVideoByPlayerVars(W,I)}; g.u.wSZ=function(W,J,K){W=this.loadVideoById(W,J,K,1);ey(this.app,W,1)}; g.u.cueVideoById=function(W,J,K,I){W=Ff(W,J,K);this.app.cueVideoByPlayerVars(W,I)}; g.u.rE=function(W,J,K){this.cueVideoById(W,J,K,1)}; g.u.loadVideoByUrl=function(W,J,K,I){W=E2Q(W,J,K);return this.app.loadVideoByPlayerVars(W,I)}; g.u.rsI=function(W,J,K){W=this.loadVideoByUrl(W,J,K,1);ey(this.app,W,1)}; g.u.cueVideoByUrl=function(W,J,K,I){W=E2Q(W,J,K);this.app.cueVideoByPlayerVars(W,I)}; g.u.tT=function(W,J,K){this.cueVideoByUrl(W,J,K,1)}; g.u.T1=function(){var W=this.app.J();if(W.sI)return"";var J=this.app.K7(),K=void 0;J.isLivePlayback||(K=Math.floor(this.app.getCurrentTime(1)));return W.getVideoUrl(J.videoId,this.getPlaylistId()||void 0,K)}; g.u.JY=function(){return this.app.getDebugText()}; g.u.getVideoEmbedCode=function(){var W=this.app.J();if(W.sI)return"";var J=this.app.K7(),K=W.getVideoEmbedCode;J=J.isPrivate?"":J.title;var I=this.app.K7().videoId;return K.call(W,J,I,this.app.UI().getPlayerSize(),this.getPlaylistId()||void 0)}; g.u.ph=function(W,J,K){return $Kc(this.app,W,J,K)}; g.u.removeCueRange=function(W){return OE0(this.app,W)}; g.u.loadPlaylist=function(W,J,K,I){this.app.loadPlaylist(W,J,K,I)}; g.u.OyS=function(W,J,K,I){this.loadPlaylist(W,J,K,I);ey(this.app,!0,1)}; g.u.cuePlaylist=function(W,J,K,I){this.app.cuePlaylist(W,J,K,I)}; g.u.nextVideo=function(W,J){this.app.nextVideo(W,J)}; g.u.EtK=function(){this.nextVideo();ey(this.app,!0,1)}; g.u.previousVideo=function(W){this.app.previousVideo(W)}; g.u.yhs=function(){this.previousVideo();ey(this.app,!0,1)}; g.u.playVideoAt=function(W){this.app.playVideoAt(W)}; g.u.Ysg=function(W){this.playVideoAt(W);ey(this.app,!0,1)}; g.u.setShuffle=function(W){var J=this.app.getPlaylist();J&&J.setShuffle(W)}; g.u.setLoop=function(W){var J=this.app.getPlaylist();J&&(J.loop=W)}; g.u.Wz=function(){var W=this.app.getPlaylist();if(!W)return null;for(var J=[],K=0;K=400)if(W=g.E(this.K7()),this.X.J().Y("client_respect_autoplay_switch_button_renderer"))W=!!W.autoplaySwitchButtonRenderer;else{var J,K,I,q;W=!!((J=W.getWatchNextResponse())==null?0:(K=J.contents)==null?0:(I=K.twoColumnWatchNextResults)==null?0:(q=I.autoplay)==null?0:q.autoplay)!==!1}if(W)this.W||(this.W=!0,this.WN(this.W),this.X.J().Y("web_player_autonav_toggle_always_listen")||lIA(this), J=g.E(this.K7()),this.Yu(J.autonavState),this.X.logVisibility(this.element,this.W));else if(this.W=!1,this.WN(this.W),!this.X.J().Y("web_player_autonav_toggle_always_listen"))for(this.X.J().Y("web_player_autonav_toggle_always_listen"),J=g.d(this.K),K=J.next();!K.done;K=J.next())this.aZ(K.value)}; g.u.Yu=function(W){AxQ(this)?this.isChecked=W!==1:((W=W!==1)||(g.mr(),W=g.yb("web_autonav_allow_off_by_default")&&!g.ri(0,141)&&g.Yf("AUTONAV_OFF_BY_DEFAULT")?!1:!g.ri(0,140)),this.isChecked=W);nRv(this)}; g.u.onClick=function(){this.isChecked=!this.isChecked;this.X.zA(this.isChecked?2:1);nRv(this);if(AxQ(this)){var W=g.E(this.K7()).autoplaySwitchButtonRenderer;this.isChecked&&(W==null?0:W.onEnabledCommand)?this.X.qN("innertubeCommand",W.onEnabledCommand):!this.isChecked&&(W==null?0:W.onDisabledCommand)&&this.X.qN("innertubeCommand",W.onDisabledCommand)}this.X.logClick(this.element)}; g.u.getValue=function(){return this.isChecked}; g.u.K7=function(){return this.X.getVideoData(1)};g.N(Dqy,Xf);g.N(Sh,g.Y0);Sh.prototype.onClick=function(){this.enabled&&(p1(this,!this.checked),this.publish("select",this.checked))}; Sh.prototype.getValue=function(){return this.checked}; Sh.prototype.setEnabled=function(W){(this.enabled=W)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var fIv=["en-CA","en","es-MX","fr-CA"];g.N(h6,Sh);h6.prototype.hs=function(W){W?this.W||(this.VP.df(this),this.W=!0):this.W&&(this.VP.AR(this),this.W=!1);this.W&&p1(this,gwQ())}; h6.prototype.T=function(){g.A5(this.element,"ytp-menuitem-highlight-transition-enabled")}; h6.prototype.G=function(W){var J=gwQ();W!==J&&(J=g.mr(),Ln(190,W),Ln(192,!0),J.save(),this.X.qN("cinematicSettingsToggleChange",W))}; h6.prototype.lO=function(){this.W&&this.VP.AR(this);Sh.prototype.lO.call(this)};g.N(t6,Xf);t6.prototype.updateCinematicSettings=function(W){this.W=W;var J;(J=this.menuItem)==null||J.hs(W);this.api.publish("onCinematicSettingsVisibilityChange",W)};g.N(Fxy,Xf);g.N(FT,Xf);FT.prototype.setCreatorEndscreenVisibility=function(W){var J;(J=HP(this.api.Xz()))==null||J.WN(W)}; FT.prototype.W=function(W){function J(I){I==="creatorendscreen"&&(I=HP(K.api.Xz()))&&I.wwh(K.hideButton)} var K=this;this.hideButton=W;this.events.D(this.api,"modulecreated",J);J("creatorendscreen")};g.N(aD,Sh);aD.prototype.T=function(W){this.G(W?1:0)}; aD.prototype.K=function(){var W=this.hasDrcAudioTrack(),J=this.W()===1&&W;p1(this,J);this.setEnabled(W)}; aD.prototype.lO=function(){this.VP.AR(this);Sh.prototype.lO.call(this)};g.N(u$,Xf);u$.prototype.getDrcUserPreference=function(){return this.W}; u$.prototype.setDrcUserPreference=function(W){g.Hd("yt-player-drc-pref",W,31536E3);W!==this.W&&(this.W=W,this.updateEnvironmentData(),this.K()&&this.api.T4())}; u$.prototype.updateEnvironmentData=function(){this.api.J().Da=this.W===1}; u$.prototype.K=function(){var W,J,K=(W=this.api.getVideoData())==null?void 0:(J=W.G)==null?void 0:J.W;if(!K)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.Y("mta_drc_mutual_exclusion_removal")){var I,q,S=(I=this.api.Ry())==null?void 0:(q=I.pE)==null?void 0:q.id;return ii(K,function(p){var n;return p.audio.W&&((n=p.pE)==null?void 0:n.id)===S})}return ii(K,function(p){var n; return((n=p.audio)==null?void 0:n.W)===!0})};g.N(Nh,Xf);Nh.prototype.onVideoDataChange=function(){var W=this,J=this.api.getVideoData();this.api.iK("embargo",1);var K=J==null?void 0:J.e8.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(K==null?0:K.length)?uyI(this,K.filter(function(I){return aIH(W,I)})):(J==null?0:J.cueRanges)&&uyI(this,J.cueRanges.filter(function(I){return aIH(W,I)}))}; Nh.prototype.K=function(W){return W.embargo!==void 0}; Nh.prototype.lO=function(){Xf.prototype.lO.call(this);this.W={}};g.N(da,Xf); da.prototype.addEmbedsConversionTrackingParams=function(W){var J=this.api.J(),K=J.widgetReferrer,I=J.bb,q=this.W,S="",p=J.getWebPlayerContextConfig();p&&(S=p.embedsIframeOriginParam||"");K.length>0&&(W.embeds_widget_referrer=K);I.length>0&&(W.embeds_referring_euri=I);J.T&&S.length>0&&(W.embeds_referring_origin=S);p&&p.embedsFeature&&(W.feature=p.embedsFeature);q.length>0&&(J.Y("embeds_web_enable_lite_experiment_control_arm_logging")?q.unshift(28572):g.DR(g.Bw(J))&&q.unshift(159628),J=q.join(","),J= g.ku()?J:g.qQ(J,4),W.source_ve_path=J);this.W.length=0};g.N(NZT,Xf);g.N(dqv,Xf);g.N(yB,g.R);yB.prototype.lO=function(){g.R.prototype.lO.call(this);this.W=null;this.K&&this.K.disconnect()};g.N(UqT,Xf);g.N(U3,g.k);U3.prototype.show=function(){g.k.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; U3.prototype.stopTimer=function(){this.W&&(this.W.dispose(),this.W=null)}; U3.prototype.onVideoDataChange=function(W){var J,K,I=(J=this.api.getVideoData())==null?void 0:(K=J.getPlayerResponse())==null?void 0:K.playabilityStatus;I&&(J=Za0(I),g.z(this.api.getPlayerStateObject(),128)||W==="dataloaderror"||!J?(this.K=0,this.stopTimer(),this.hide()):(W=(J.remainingTimeSecs||0)*1E3,W>0&&(this.show(),this.updateValue("label",xR(J.label)),C6Q(this,W))))}; U3.prototype.lO=function(){this.stopTimer();g.k.prototype.lO.call(this)};g.N(w1X,Xf);g.N(Zo,g.k);Zo.prototype.onClick=function(){this.BS.logClick(this.element);this.BS.qN("onFullerscreenEduClicked")}; Zo.prototype.hs=function(){this.BS.isFullscreen()?this.W?this.fade.hide():this.fade.show():this.hide();this.BS.logVisibility(this.element,this.BS.isFullscreen()&&!this.W)};g.N(QB,Xf);QB.prototype.updateFullerscreenEduButtonSubtleModeState=function(W){var J;(J=this.W)!=null&&(g.jN(J.element,"ytp-fullerscreen-edu-button-subtle",W),W&&!J.K&&(J.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),wk(J.BS,J.element,J),J.K=!0))}; QB.prototype.updateFullerscreenEduButtonVisibility=function(W){var J;(J=this.W)!=null&&(J.W=W,J.hs())};g.N(Mmy,g.k);g.N($qQ,Xf);g.N(C1,Xf);C1.prototype.getSphericalProperties=function(){var W=g.Hl(this.api.Xz());return W?W.getSphericalProperties():{}}; C1.prototype.setSphericalProperties=function(W){if(W){var J=g.Hl(this.api.Xz());J&&J.setSphericalProperties(W,!0)}};g.N(wa,Xf);g.u=wa.prototype;g.u.createClientVe=function(W,J,K,I){this.api.createClientVe(W,J,K,I===void 0?!1:I)}; g.u.createServerVe=function(W,J,K){this.api.createServerVe(W,J,K===void 0?!1:K)}; g.u.setTrackingParams=function(W,J){this.api.setTrackingParams(W,J)}; g.u.logClick=function(W,J){this.api.logClick(W,J)}; g.u.logVisibility=function(W,J,K){this.api.logVisibility(W,J,K)}; g.u.hasVe=function(W){return this.api.hasVe(W)}; g.u.destroyVe=function(W){this.api.destroyVe(W)};var Oav=!1;G1.prototype.setPlaybackRate=function(W){this.playbackRate=Math.max(1,W)}; G1.prototype.getPlaybackRate=function(){return this.playbackRate};Hv.prototype.N8=function(W){var J=g.Il(W.info.W.info,this.Z0.dl),K=W.info.x3+this.T,I=W.info.startTime*1E3;if(this.policy.D0)try{I=this.policy.D0?g.De(W)*1E3:W.info.startTime*1E3}catch(p){Math.random()>.99&&this.logger&&(I=wH(W.W).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:W.info.XD(),encodedDataView:g.IB(I,4)})),I=W.info.startTime*1E3}var q=W.info.clipId,S=this.policy.D0?g.HDL(W)*1E3:W.info.duration*1E3;this.policy.D0&&(I<0||S<0)&&(this.logger&&(this.logger({missingSegInfo:W.info.XD(), startTimeMs:I,durationMs:S}),this.policy.WC||(I<0&&(I=W.info.startTime*1E3),S<0&&(S=W.info.duration*1E3))),this.policy.WC&&(I<0&&(I=W.info.startTime*1E3),S<0&&(S=W.info.duration*1E3)));return{formatId:J,x3:K,startTimeMs:I,clipId:q,LI:S}}; Hv.prototype.T6=function(W){this.timestampOffset=W};VB.prototype.seek=function(W,J){W!==this.W&&(this.seekCount=0);this.W=W;var K=this.videoTrack.K,I=this.audioTrack.K,q=this.audioTrack.wl,S=P6X(this,this.videoTrack,W,this.videoTrack.wl,J);J=P6X(this,this.audioTrack,this.policy.Lk?W:S,q,J);W=Math.max(W,S,J);this.j=!0;this.Z0.isManifestless&&(zWy(this,this.videoTrack,K),zWy(this,this.audioTrack,I));return W}; VB.prototype.isSeeking=function(){return this.j}; VB.prototype.sF=function(W){this.G=W}; var cxQ=2/24;var itD=0;g.u=z1.prototype;g.u.AJ=function(){this.C=this.now();khX(this.Sn,this.C);this.MD.AJ()}; g.u.YI=function(W,J){var K=this.policy.K?(0,g.L)():0;vv(this,W,J);W-this.S<10&&this.K>0||this.yQ(W,J);this.MD.YI(W,J);this.policy.K&&(W=(0,g.L)()-K,this.SI+=W,this.eZ=Math.max(W,this.eZ))}; g.u.yQ=function(W,J){var K=(W-this.S)/1E3,I=J-this.G;this.FX||(Ue(this.Sn,K,I),this.nG(K,I));this.S=W;this.G=J}; g.u.PT=function(){this.XW&&JdA(this);this.MD.PT()}; g.u.Ie=function(W){this.XW||(this.XW=this.j-this.oG+W,this.bb=this.j,this.fE=this.Z)}; g.u.Fx=function(W,J){W=W===void 0?this.Z:W;J=J===void 0?this.j:J;this.K>0||(this.N=W,this.K=J,this.PS=this.isActive=!0)}; g.u.Py=function(){return this.Zt||2}; g.u.s0=function(){}; g.u.wJ=function(){var W,J={rn:this.requestNumber,rt:(this.Z-this.W).toFixed(),lb:this.j,stall:(1E3*this.T).toFixed(),ht:(this.C-this.W).toFixed(),elt:(this.N-this.W).toFixed(),elb:this.K,d:(W=this.vS)==null?void 0:W.PP()};this.url&&xqT(J,this.url);this.policy.K&&(J.mph=this.eZ.toFixed(),J.tph=this.SI.toFixed());J.ulb=this.jZ;J.ult=this.sI;return J}; g.u.now=function(){return(0,g.L)()}; g.u.deactivate=function(){this.isActive&&(this.isActive=!1)};g.N(s3,z1);g.u=s3.prototype;g.u.wJ=function(){var W=z1.prototype.wJ.call(this);W.pb=this.Un;W.pt=(1E3*this.P7).toFixed();W.se=this.Fz;return W}; g.u.Jn=function(){var W=this.MD;this.FW||(this.FW=W.Jn?W.Jn():1);return this.FW}; g.u.vE=function(){return this.hk?this.Jn()!==1:!1}; g.u.zL=function(W,J,K){if(!this.qD){this.qD=!0;if(!this.FX){vv(this,W,J);this.yQ(W,J);var I=this.Jn();this.Fz=K;if(!this.FX)if(I===2){I=W-this.N0)||cv(this,I,J),this.K>0&&d8(this.Sn,J,this.T));W=(W-this.W)/ 1E3||.01;this.policy.N&&!(this.K>0)||N8(this.Sn,W,this.G,ITv(this),this.Xa)}this.deactivate()}}; g.u.NQ=function(W,J,K){K&&(this.FW=2);W<0&&this.Zt&&(W=this.Zt);J?this.D0+=W:this.OI+=W}; g.u.Py=function(){return this.OI||this.D0||z1.prototype.Py.call(this)}; g.u.yQ=function(W,J){var K=(W-this.S)/1E3,I=J-this.G,q=this.Jn();this.isActive?q===1&&((I>0||this.policy.j)&&(K>.2||I<1024)?(this.T+=K,I>0&&K>.2&&cv(this,this.wV?K:.05,I),this.sT=!0):I>0&&(cv(this,K,I),this.sT=!0)):J&&J>=this.policy.W&&this.Fx(W,J);z1.prototype.yQ.call(this,W,J)}; g.u.kL=function(W){if(!this.FX){vv(this,W,this.j);var J=(W-this.W)/1E3;this.Jn()!==2&&this.K>0&&(this.T+=(W-this.S)/1E3,d8(this.Sn,this.G,this.T));N8(this.Sn,J,this.G,ITv(this),this.Xa,!0);W=(W-this.S)/1E3;Ue(this.Sn,W,0);this.nG(W,0)}}; g.u.Fx=function(W,J){W=W===void 0?this.Z:W;J=J===void 0?this.j:J;if(!(this.K>0)&&(z1.prototype.Fx.call(this,W,J),this.Jn()===1)){J=(this.C-this.W)/1E3;var K=(W-this.C)/1E3;this.hk&&Pv(this,this.now());this.Tx||this.FX||(this.Zt&&(K=Math.max(0,K-this.Zt)),W=this.Sn,W.N.o7(1,J),W.vS.o7(1,K))}}; g.u.v5=function(){this.hk&&Pv(this,this.now());return this.Y3}; g.u.lz=function(){var W;if(W=this.G>this.Fu)W=(W=this.G)?W>=this.policy.W:!1;return W}; g.u.G7=function(){return this.bO}; g.u.IE=function(W){W=W===void 0?this.now():W;if(this.hk){Pv(this,W);if(this.FW?this.vE():this.G8!==this.SZ){var J=this.SZ;if(W0?K+W:K+Math.max(W,J)}; g.u.Lq=function(){return this.now()-this.N}; g.u.cK=function(){return(this.G-this.K)*1E3/this.Lq()||0}; g.u.c5=function(){return this.N};XT.prototype.feed=function(W){Ur(this.W,W);this.vD()}; XT.prototype.vD=function(){if(this.T){if(!this.W.getLength())return;var W=this.W.split(this.G-this.K),J=W.O5;W=W.bJ;if(!this.MD.Ie(this.T,J,this.K,this.G))return;this.K+=J.getLength();this.W=W;this.K===this.G&&(this.T=this.G=this.K=void 0)}for(;;){var K=0;W=g.d(lTQ(this.W,K));J=W.next().value;K=W.next().value;K=g.d(lTQ(this.W,K));W=K.next().value;K=K.next().value;if(J<0||W<0)break;if(!this.W.Jm(K,W)){if(!this.MD.Ie||!this.W.Jm(K,1))break;K=this.W.split(K).bJ;this.MD.Ie(J,K,0,W)&&(this.T=J,this.K= K.getLength(),this.G=W,this.W=new ye([]));break}W=this.W.split(K).bJ.split(W);K=W.bJ;this.MD.DN(J,W.O5);this.W=K}}; XT.prototype.dispose=function(){this.W=new ye};g.u=WI.prototype;g.u.CJ=function(){return 0}; g.u.Cq=function(){return null}; g.u.W5=function(){return null}; g.u.EO=function(){return this.state>=1}; g.u.isComplete=function(){return this.state>=3}; g.u.dV=function(){return this.state===5}; g.u.onStateChange=function(){}; g.u.Ap=function(W){var J=this.state;this.state=W;this.onStateChange(J);this.callback&&this.callback(this,J)}; g.u.IU=function(W){W&&this.state=this.xhr.HEADERS_RECEIVED}; g.u.getResponseHeader=function(W){try{return this.xhr.getResponseHeader(W)}catch(J){return""}}; g.u.jM=function(){return+this.getResponseHeader("content-length")}; g.u.vC=function(){return this.K}; g.u.gD=function(){return this.status>=200&&this.status<300&&!!this.K}; g.u.Zc=function(){return this.W.getLength()>0}; g.u.Zd=function(){var W=this.W;this.W=new ye;return W}; g.u.xn=function(){return this.W}; g.u.abort=function(){this.Iu=!0;this.xhr.abort()}; g.u.QQ=function(){return!0}; g.u.ol=function(){return this.mm}; g.u.gK=function(){return""};K4.prototype.Ak=function(W,J){J=J===void 0?1:J;this.Vx+=J;this.K+=W;W/=J;for(var K=0;K0)I+="."+Ji[q].toFixed(0)+"_"+K.W[q].toFixed(0);else break;K=I}K&&(W[J]=K)}this.W=new AdQ;return W}; g.u.toString=function(){return""};g.u=FDA.prototype;g.u.isActive=function(){return!1}; g.u.AU=function(){}; g.u.A0=function(){}; g.u.Zx=function(){}; g.u.C3=function(){}; g.u.Xd=function(W,J){J()}; g.u.FE=function(){return{}}; g.u.toString=function(){return""};var lJ,Ytv,siv,cLj,P50,nV,wt,qr,IDL;lJ=new FDA;Ytv=!!+s4("html5_enable_profiler");siv=!!+s4("html5_onesie_enable_profiler");cLj=!!+s4("html5_offline_encryption_enable_profiler");P50=!!+s4("html5_performance_impact_profiling_timer_ms");nV=Ytv||siv||cLj||P50?new j_Q:lJ;g.E_=Ytv?nV:lJ;wt=siv?nV:lJ;qr=cLj?nV:lJ;IDL=P50?nV:lJ;g.u=NE0.prototype;g.u.getResponseHeader=function(W){return W==="content-type"?this.W.get("type"):""}; g.u.abort=function(){}; g.u.Cm=function(){return!0}; g.u.jM=function(){return this.range.length}; g.u.vC=function(){return this.loaded}; g.u.gD=function(){return!!this.loaded}; g.u.Zc=function(){return!!this.K.getLength()}; g.u.Zd=function(){var W=this.K;this.K=new ye;return W}; g.u.xn=function(){return this.K}; g.u.QQ=function(){return!0}; g.u.ol=function(){return!!this.error}; g.u.gK=function(){return this.error};g.u=ydA.prototype;g.u.start=function(W){var J={credentials:"include",cache:"no-store"};Object.assign(J,this.S);this.T&&(J.signal=this.T.signal);W=new Request(W,J);fetch(W).then(this.N,this.onError).then(void 0,nL)}; g.u.onDone=function(){this.Iu()||this.MD.PT()}; g.u.getResponseHeader=function(W){return this.responseHeaders?this.responseHeaders.get(W):null}; g.u.Cm=function(){return!!this.responseHeaders}; g.u.vC=function(){return this.K}; g.u.jM=function(){return+this.getResponseHeader("content-length")}; g.u.gD=function(){return this.status>=200&&this.status<300&&!!this.K}; g.u.Zc=function(){return!!this.W.getLength()}; g.u.Zd=function(){this.Zc();var W=this.W;this.W=new ye;return W}; g.u.xn=function(){this.Zc();return this.W}; g.u.Iu=function(){return this.j}; g.u.abort=function(){this.G&&this.G.cancel().catch(function(){}); this.T&&this.T.abort();this.j=!0}; g.u.QQ=function(){return!0}; g.u.ol=function(){return this.mm}; g.u.gK=function(){return this.errorMessage};g.u=Ugc.prototype;g.u.onDone=function(){if(!this.Iu){this.status=this.xhr.status;try{this.response=this.xhr.response,this.K=this.response.byteLength}catch(W){}this.W=!0;this.MD.PT()}}; g.u.O9=function(){this.xhr.readyState===2&&this.MD.AJ()}; g.u.oo=function(W){this.Iu||(this.status=this.xhr.status,this.W||(this.K=W.loaded),this.MD.YI((0,g.L)(),W.loaded))}; g.u.Cm=function(){return this.xhr.readyState>=2}; g.u.getResponseHeader=function(W){try{return this.xhr.getResponseHeader(W)}catch(J){return g.ET(Error("Could not read XHR header "+W)),""}}; g.u.jM=function(){return+this.getResponseHeader("content-length")}; g.u.vC=function(){return this.K}; g.u.gD=function(){return this.status>=200&&this.status<300&&this.W&&!!this.K}; g.u.Zc=function(){return this.W&&!!this.response&&!!this.response.byteLength}; g.u.Zd=function(){this.Zc();var W=this.response;this.response=void 0;return new ye([new Uint8Array(W)])}; g.u.xn=function(){this.Zc();return new ye([new Uint8Array(this.response)])}; g.u.abort=function(){this.Iu=!0;this.xhr.abort()}; g.u.QQ=function(){return!1}; g.u.ol=function(){return!1}; g.u.gK=function(){return""};g.p4.prototype.info=function(){}; g.p4.prototype.debug=function(){}; g.p4.prototype.W=function(W){l4.apply(null,[5,this.tag,W].concat(g.w(g.EH.apply(1,arguments))))}; var CSQ=new Map,gAI=new Map,wUQ=new function(){var W=this;this.W=new Map;this.G$={V9s:function(){return W.W}}};g.N(n4,g.R);n4.prototype.H4=function(){if(!this.bN.length)return[];var W=this.bN;this.bN=[];this.G=g.jl(W).info;return W}; n4.prototype.a_=function(){return this.bN}; n4.prototype.lO=function(){g.R.prototype.lO.call(this);this.W=null;this.bN.length=0;this.Ly.length=0;this.G=null};g.N(DN,g.R);g.u=DN.prototype; g.u.K1Z=function(){if(!this.Iu()){var W=(0,g.L)(),J=!1;if(this.policy.zP){W=W-(this.timing.K>0?this.timing.N:this.timing.W)-this.timing.Py()*1E3;var K=Gw(j3(this),!1);W>=2E3*K?J=!0:W>=this.policy.vZ*K&&(this.W=this.policy.nA)}else if(this.timing.K>0){if(this.j){this.policy.Fz&&(this.W=0);return}var I=this.timing.G7();this.timing.IE();var q=this.timing.G7();q-I>=this.policy.Os*.8?(this.W++,this.logger.debug(function(){return"Mispredicted by "+(q-I).toFixed(0)}),J=this.W>=5):this.W=0}else{var S=W-this.timing.v5(); this.policy.nA&&S>0&&(this.W+=1);J=Gw(j3(this),!1)*this.policy.Pc;(J=S>J*1E3)&&this.logger.debug(function(){return"Elbow late by "+S.toFixed(3)})}this.W>0&&this.MD.tZ(); J?this.v1():this.K.start()}}; g.u.v1=function(){this.T=!0;this.MD.Ga();this.lastError="net.timeout";hi(this)}; g.u.canRetry=function(W){var J=j3(this);W=W?this.policy.Dn:this.policy.mA;return J.timedOut0&&(J=J.W.getUint8(0),W.ubyte=J,K===1&&J===0&&(W.b248180278=!0))}this.Dt&&(W.rc=this.policy.Rm?this.Dt:this.Dt.toString());this.policy.nk&&this.jq&&(W.tr=this.jq);W.itag=this.info.Ly[0].W.info.itag;W.ml=""+ +this.info.Ly[0].W.xA();W.sq=""+this.info.Ly[0].x3;this.Tz&&(W.ifi=""+ +ew(this.info.c7.K));this.Dt!==410&&this.Dt!==500&&this.Dt!==503||(W.fmt_unav="true");var I;(K=this.errorMessage||((I=this.xhr)==null? void 0:I.gK()))&&(W.msg=K);this.I6&&(W.smb="1");this.info.isDecorated()&&(W.sdai="1");return W}; g.u.Ue=function(){return qqH(this.timing)}; g.u.gK=function(){return this.xhr.gK()||""}; g.u.lz=function(){return this.isComplete()||this.timing.lz()}; g.u.YI=function(){!this.Iu()&&this.xhr&&(this.Dt=this.xhr.status,this.policy.Y_&&this.Xs&&this.x0(!1),this.Do()?this.IU(2):!this.nN&&this.lz()&&(this.IU(),this.nN=!0))}; g.u.AJ=function(){if(!this.Iu()&&this.xhr){if(!this.On&&this.xhr.Cm()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var W=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.On=((0,g.L)()-W)/1E3}this.xhr.Cm()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.vp&&!rAA()&&g.Hd("yt-player-headers-readable",!0,2592E3);W=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),K;(K=this.YW)==null||K.stop();this.sJ=W||this.sJ; this.Im=J||this.Im}}; g.u.PT=function(){var W=this.xhr;if(!this.Iu()&&W){this.Dt=W.status;W=this.HK(W);if(this.policy.nk){var J;(J=this.YW)==null||J.stop()}W===5?hi(this.YK):this.Ap(W);this.YK.K.stop()}}; g.u.HK=function(W){var J=this;liH(this);if(ti(this.YK,this.xhr.status,this.Bd?this.timing.PS||this.Ce:this.xhr.gD(),!1,this.Q8))return 5;var K="";Fq(this.YK,this.xhr)&&(K=HtQ(this.YK,this.xhr));if(K)return gA(j3(this.YK)),this.info.MY(this.Tz,K),3;K=W.vC();if(this.n4){this.x0(!0);liH(this);if(ti(this.YK,this.xhr.status,this.timing.PS||this.Ce,!1,this.Q8))return 5;if(!this.AX){if(this.Ce)return gA(j3(this.YK)),3;this.YK.lastError="net.closed";return 5}}else{if(ti(this.YK,this.xhr.status,this.xhr.gD(), !1,this.Q8))return 5;var I=this.info.G;if(I&&I!==K||W.ol())return this.YK.lastError="net.closed",5;this.x0(!0)}I=nAD(this)?W.getResponseHeader("X-Bandwidth-Est"):0;if(W=nAD(this)?W.getResponseHeader("X-Bandwidth-Est3"):0)this.Dl=!0,this.policy.OH&&(I=W);OtI(this.YK,K,I?Number(I):0,this.info.Ly[0].type===5);this.logger.debug(function(){var q=J.timing;return"Succeeded, rtpd="+(q.P7*1E3+q.W-Date.now()).toFixed(0)}); return 4}; g.u.canRetry=function(){this.Iu();var W=this.info.isDecorated();return this.YK.canRetry(W)}; g.u.onStateChange=function(){this.isComplete()&&(this.policy.mj?this.Ga():this.timing.deactivate())}; g.u.v1=function(){this.YK.v1()}; g.u.tZ=function(){this.callback&&this.callback(this,this.state)}; g.u.qq=function(){return this.YK.qq()}; g.u.dispose=function(){WI.prototype.dispose.call(this);this.YK.dispose();var W;(W=this.YW)==null||W.dispose();this.policy.mj||this.Ga()}; g.u.Ga=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.u.H4=function(){if(!this.a_().length)return[];this.Fq=!0;return this.Xs.H4()}; g.u.Do=function(){if(this.state<1)return!1;if(this.Xs&&this.Xs.bN.length)return!0;var W;return((W=this.xhr)==null?0:W.Zc())?!0:!1}; g.u.a_=function(){this.x0(!1);return this.Xs?this.Xs.a_():[]}; g.u.x0=function(W){try{if(W||this.xhr.Cm()&&this.xhr.Zc()&&!Fq(this.YK,this.xhr)&&!this.m0)this.Xs||(this.Xs=new n4(this.policy,this.info.Ly)),this.xhr.Zc()&&(this.n4?this.n4.feed(this.xhr.Zd()):Ai(this.Xs,this.xhr.Zd(),W&&!this.xhr.Zc()))}catch(J){this.n4?qXX(this,J):g.ET(J)}}; g.u.DN=function(W,J){switch(W){case 21:W=J.split(1).bJ;SXH(this,W);break;case 22:this.AX=!0;Ai(this.Xs,new ye([]),!0);break;case 43:if(W=BN(new HN(J),1))this.info.MY(this.Tz,W),this.Ce=!0;break;case 45:J=jw(new HN(J));W=J.kB;J=J.Hf;W&&J&&(this.fF=W/J);break;case 44:this.sy=rND(new HN(J));var K,I,q;!this.timing.PS&&((K=this.sy)==null?void 0:K.action)===4&&((I=this.sy)==null?0:(q=I.IA)==null?0:q.Bd)&&(this.Bd=this.sy.IA.Bd);break;case 53:this.policy.nk&&(W=b9c(new HN(J)).ZC)&&(this.YW||(this.ZC=W,this.YW= new g.P0(this.Ti,W,this)),this.YW.start());break;case 60:this.P2=DT(new HN(J));break;case 58:if(W=ajQ(new HN(J)))this.PZ=W,W.PZ===3&&(this.Q8=!0)}}; g.u.Ie=function(W,J,K,I){K||this.timing.Ie(I);if(W!==21)return!1;if(W=this.policy.Y_)if(I=J.getLength()+K===I,W*=this.info.Ly[0].W.info.Cy,!I&&J.getLength()0)return!1;if(!this.xhr.Cm())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.n4)var W=!this.info.G;else this.xhr.jM()?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.vP)){W=this.xhr.getResponseHeader("x-head-seqnum");var J=this.timing.policy.Z?1:0;if(!W)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(W)>this.info.Ly[0].x3+J)return!1}return!0}; g.u.i9=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.u.Cq=function(){this.xhr&&(this.sJ=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.sJ}; g.u.W5=function(){this.xhr&&(this.Im=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Im}; g.u.AS=function(){return this.YK.AS()}; g.u.Ti=function(){if(!this.Iu()&&this.xhr){this.jq="heartbeat";var W=this.YK;W.W+=2;this.tZ()}};g.N(C4,z1);g.u=C4.prototype;g.u.yQ=function(W,J){var K=(W-this.S)/1E3,I=J-this.G;this.K>0?I>0&&(this.G8&&(K>.2||I<1024?(this.T+=K,K>.2&&nly(this,.05,I)):nly(this,K,I)),this.SZ&&(this.Y3+=I,this.OI+=K)):J>this.policy.W&&this.Fx(W,J);z1.prototype.yQ.call(this,W,J)}; g.u.zL=function(W,J){vv(this,W,J);this.yQ(W,J);this.G8&&(J=this.G*this.snapshot.stall+this.G/this.snapshot.byterate,this.K>0&&d8(this.Sn,this.Y3,this.T),W=(W-this.W)/1E3||.01,this.policy.N&&!(this.K>0)||N8(this.Sn,W,this.G,J,!1))}; g.u.kL=function(W){vv(this,W,this.j);var J=(W-this.S)/1E3;Ue(this.Sn,J,0);this.nG(J,0);!this.G8&&this.K>0||(J=this.G*this.snapshot.stall+this.G/this.snapshot.byterate,this.K>0&&(this.T+=(W-this.S)/1E3,d8(this.Sn,this.Y3,this.T)),N8(this.Sn,((W-this.W)/1E3||.01)*this.policy.PS,this.G,J,!1,!0))}; g.u.Xo=function(W){W=W.dT||2147483647;(W&2)!==2&&(this.SZ=!1);(W&1)===1&&(this.G8=!0)}; g.u.W8=function(W){W=W.dT||2147483647;(W&2)===2&&(this.SZ=!1);(W&1)===1&&(this.G8=!1)}; g.u.c5=function(){return this.N}; g.u.Lq=function(){var W=this.SZ?this.now()-this.S:0;return Math.max(this.OI*1E3+W,1)}; g.u.cK=function(){return this.Y3*1E3/this.Lq()}; g.u.Fx=function(W,J){W=W===void 0?this.Z:W;J=J===void 0?this.j:J;this.K>0||(z1.prototype.Fx.call(this,W,J),J=this.Sn,W=(W-this.C)/1E3,J.N.o7(1,(this.C-this.W)/1E3),J.vS.o7(1,W))}; g.u.s0=function(W){this.D0=W}; g.u.wJ=function(){var W=z1.prototype.wJ.call(this);W.rbw=this.cK();W.rbe=+this.SZ;W.gbe=+this.G8;W.ackt=(this.D0-this.W).toFixed();return W}; g.u.IE=function(){}; g.u.G7=function(){return NaN}; g.u.v5=function(){return this.W+this.snapshot.delay*1E3};wp.prototype.DN=function(W,J){J.getLength();switch(W){case 20:W=new HN(J);W={pp:e9(W,1),videoId:BN(W,2),itag:e9(W,3),lmt:e9(W,4),xtags:BN(W,5),Kx:e9(W,6),J2:Rq(W,8),QH:e9(W,9),Nv0:e9(W,10),startMs:e9(W,11),durationMs:e9(W,12),tA:e9(W,14),timeRange:m5(W,15,i9D),pU:e9(W,16),Hp:e9(W,17),clipId:BN(W,1E3)};this.jD(W);break;case 21:this.xE(J,!1);break;case 22:this.hI(J);break;case 31:W=L2(J,xJA);this.wk(W);break;case 52:W=L2(J,BFv);this.hf(W);break;default:this.lE(W,J)}}; wp.prototype.jD=function(){}; wp.prototype.lE=function(){};g.N(Mr,wp);g.u=Mr.prototype; g.u.lE=function(W,J){J.getLength();switch(W){case 35:this.wv(J);break;case 44:this.GT(J);break;case 43:this.wN(J);break;case 53:this.BL(J);break;case 55:W=new HN(J);m5(W,1,LMH);m5(W,2,v9c);break;case 56:this.lh();break;case 57:this.ek(J);break;case 42:this.TV(J);break;case 45:this.DC(J);break;case 59:this.g_(J);break;case 51:this.TT(J);break;case 49:this.Xo(J);break;case 50:this.W8(J);break;case 47:this.Q4(J);break;case 58:this.mS(J);break;case 61:this.MD.PD.s0((0,g.L)());break;case 66:this.ix(J); break;case 46:this.Ks(J);break;case 67:this.onSnackbarMessage(J)}}; g.u.TT=function(W){W=new HN(W);W={xIS:oq(W,1,nt),S_S:oq(W,2,nt)};this.MD.TT(W)}; g.u.g_=function(W){var J=new HN(W);W=rH(J,1);var K=rH(J,2);J=rH(J,3);this.MD.g_(W,K,J)}; g.u.DC=function(W){W=jw(new HN(W));this.MD.DC(W)}; g.u.Q4=function(W){W=L2(W,H9y);this.MD.Q4(W)}; g.u.TV=function(W){W=new HN(W);W={videoId:BN(W,1),formatId:m5(W,2,nt),endTimeMs:e9(W,3),JI8:e9(W,4),mimeType:BN(W,5),QC:m5(W,6,CQy),indexRange:m5(W,7,CQy),Fp:m5(W,8,wjQ)};this.MD.TV(W)}; g.u.ek=function(W){W=v9c(new HN(W));this.MD.ek(W)}; g.u.lh=function(){this.MD.lh()}; g.u.wv=function(W){W=O9Q(new HN(W));this.MD.wv(W)}; g.u.BL=function(W){W=b9c(new HN(W));this.MD.BL(W)}; g.u.GT=function(W){W=rND(new HN(W));this.MD.GT(W)}; g.u.wN=function(W){W={redirectUrl:BN(new HN(W),1)};this.MD.wN(W)}; g.u.xE=function(W){var J=W.getUint8(0);if(W.getLength()!==1){W=W.split(1).bJ;var K=this.K[J]||null;K&&HI(this.MD.Ro,J,K,W)}}; g.u.hI=function(W){W=W.getUint8(0);var J=this.K[W]||null;J&&this.MD.hI(W,J)}; g.u.hf=function(W){this.MD.hf(W)}; g.u.jD=function(W){var J=W.pp,K=W.J2,I=W.Kx,q=W.Hp,S=W.pU,p=W.QH,n=W.startMs,A=W.durationMs,D=W.timeRange,f=W.tA,h=W.clipId,t=EX(W);W=gp$.has(vW[""+W.itag]);this.K[J]=t;this.MD.NQ(t,W,{pp:J,J2:!!K,Kx:I!=null?I:-1,QH:p!=null?p:-1,startMs:n!=null?n:-1,durationMs:A!=null?A:-1,tA:f,Hp:q,pU:S,clipId:h,timeRange:D})}; g.u.Xo=function(W){W={dT:e9(new HN(W),1)};this.MD.Xo(W)}; g.u.W8=function(W){W={dT:e9(new HN(W),1)};this.MD.W8(W)}; g.u.wk=function(W){this.MD.wk(W)}; g.u.mS=function(W){W=ajQ(new HN(W));this.MD.mS(W)}; g.u.ix=function(W){W={sY:m5(new HN(W),1,ezH)};this.MD.ix(W)}; g.u.onSnackbarMessage=function(W){W=e9(new HN(W),1);this.MD.onSnackbarMessage(W)}; g.u.Ks=function(W){W={reloadPlaybackParams:m5(new HN(W),1,FMH)};this.MD.Ks(W)};g.N(gp,g.R);g.u=gp.prototype;g.u.oO=function(){return Array.from(this.Nv.keys())}; g.u.JA=function(W){W=this.Nv.get(W);var J=W.bN;W.xN+=J.getLength();W.bN=new ye;return J}; g.u.eF=function(W){return this.Nv.get(W).eF}; g.u.RV=function(W){return this.Nv.get(W).RV}; g.u.NQ=function(W,J,K,I){this.Nv.get(W)||hey(this,W,J);J=this.Nv.get(W);if(this.Z0){W=FND(this,W,K);if(I)for(var q=g.d(W),S=q.next();!S.done;S=q.next()){S=S.value;var p=I;S.sI=p;S.startTime+=p;S.T+=p;S.S+=p}tZQ(this,K.pp,J,W)}else K.J2?J.Gd=K.tA:J.po.push(K),J.Jr.push(K)}; g.u.CB=function(W){var J;return((J=this.Nv.get(W))==null?void 0:J.Ly)||[]}; g.u.IU=function(){for(var W=g.d(this.Nv.values()),J=W.next();!J.done;J=W.next())J=J.value,J.Gj&&(J.oo&&J.oo(),J.Gj=!1)}; g.u.hI=function(W,J){this.logger.debug(function(){return"[onMediaEnd] formatId: "+J}); var K=this.Nv.get(J);if(Gx){if(K&&!K.eF){if(K.ZB.get(W))K.ZB.get(W).KW=!0;else{var I;((I=this.lK)==null?0:I.fE)&&K.ZB.set(W,{data:new ye,CF:0,KW:!0})}K.RV=!0}}else K&&!K.RV&&(K.RV=!0)}; g.u.H4=function(W){if(Gx){var J=this.Nv.get(W);if(J)for(var K=g.d(J.ZB),I=K.next();!I.done;I=K.next()){var q=g.d(I.value);I=q.next().value;q=q.next().value;var S=J.a6.get(I);if(ot(S[0])){if(!q.KW)continue;var p=S,n=q.data;n.getLength();S=0;var A=[];p=g.d(p);for(var D=p.next();!D.done;D=p.next()){D=D.value;var f=D.G,h=ZB(n,S,f);S+=f;A.push(new ns(D,h))}J.Ni.push.apply(J.Ni,g.w(A))}else if(q.data.getLength()>0||!S[0].range&&q.KW)n=void 0,S=S[0],A=q.CF,p=q.data,S.range||(n=q.KW),D=p.getLength(),n=new ns(hPQ(S, S.K+A,D,n),p),q.CF+=n.info.G,J.Ni.push(n);J.ZB.get(I).data=new ye;q.KW&&J.ZB.delete(I)}W=this.Nv.get(W);if(!W)return[];J=W.Ni;W.Ni=[];K=g.d(J);for(I=K.next();!I.done;I=K.next())W.xN+=I.value.info.G;return J||[]}K=(J=this.Nv.get(W))==null?void 0:J.Xs;if(!K)return[];this.x0(W,K);return K.H4()}; g.u.Do=function(W){if(Gx)return Tx(this,W);var J,K,I;return!!((K=(J=this.Nv.get(W))==null?void 0:J.Xs)==null?0:(I=K.a_())==null?0:I.length)||Tx(this,W)}; g.u.x0=function(W,J){for(;Tx(this,W);){var K=this.JA(W);var I=W;I=this.Nv.get(I).eF&&!OC(this,I);Ai(J,K,I&&fiD(this,W))}}; g.u.lO=function(){g.R.prototype.lO.call(this);for(var W=g.d(this.Nv.keys()),J=W.next();!J.done;J=W.next())$_(this,J.value);var K;if((K=this.lK)==null?0:K.qY)for(W=g.d(this.Nv.values()),J=W.next();!J.done;J=W.next())J=J.value,J.ZB.clear(),J.a6.clear(),J.Ni.length=0,J.Ly.length=0,J.Jr.length=0,J.po.length=0;this.Nv.clear()}; var Gx=!1;g.N(Vn,g.R);g.u=Vn.prototype;g.u.YI=function(){!this.Iu()&&this.xhr&&(this.x0(!1),o2(this.MD,this))}; g.u.AJ=function(){}; g.u.PT=function(){if(!this.Iu()&&this.xhr){var W=this.HK();W===5?hi(this.YK):this.Ap(W);this.YK.K.stop();var J;(J=this.kf)==null||J.stop()}}; g.u.HK=function(){var W="";Fq(this.YK,this.xhr)&&(W=HtQ(this.YK,this.xhr));if(W)return this.info.c7.MY(this.Tz,W),3;this.x0(!0);if(ti(this.YK,this.xhr.status,this.xhr.gD(),this.info.ER(),this.Q8))return 5;if(this.i7)return 3;OtI(this.YK,this.xhr.vC(),0,this.ER());this.policy.bb&&nhQ(this.MD);return 4}; g.u.x0=function(W){var J=this.xhr;if((W||!Fq(this.YK,this.xhr))&&J.Zc()){W=J.Zd();var K=W.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+K}); this.n4.feed(W)}}; g.u.DN=function(W,J){this.xhr.QQ()&&W===21&&ytL(this);this.Yc.DN(W,J)}; g.u.Ie=function(W,J,K,I){K||(this.PD.Ie(I),this.policy.VM&&W===21&&ytL(this));if(W!==21)return!1;this.PD.PS=!0;W=J.getLength();K||(this.TX=J.getUint8(0),J=J.split(1).bJ);var q=this.policy.Q2,S=this.Yc.K[this.TX],p=this.Z0.G.get(S);if(q&&p&&(q*=p.info.Cy,W+K!==I&&W0){this.policy.zP&&this.YK.K.stop();W=this.PD.Lq();J=this.PD.cK();var K=U$Q(this,W);if(!(J>K.jm||K.Fy>0&&this.info.PK()>K.Fy)){this.ZZ=(0,g.L)();var I;(I=this.kf)==null||I.stop();this.policy.bb&&(I=this.MD,W={MC:Math.round(J*W/1E3),N4:W},I.policy.bb&&(I.XW=W,I.q3++));this.v1()}}}}; g.u.v1=function(){this.YK.v1()}; g.u.GT=function(W){this.MD.GT(W,this.eS())}; g.u.wN=function(W){this.i7=!0;this.info.c7.MY(this.Tz,W.redirectUrl)}; g.u.Xo=function(W){this.PD instanceof C4&&this.PD.Xo(W)}; g.u.W8=function(W){this.PD instanceof C4&&this.PD.W8(W)}; g.u.TV=function(W){var J=W.formatId,K=EX({itag:J.itag,lmt:J.lmt,xtags:J.xtags}),I,q,S=new Rt(((I=W.QC)==null?void 0:I.first)||0,((q=W.QC)==null?void 0:q.O3)||0),p,n;I=new Rt(((p=W.indexRange)==null?void 0:p.first)||0,((n=W.indexRange)==null?void 0:n.O3)||0);if(!this.Z0.G.get(K)){K=W.Fp||{};if(this.policy.CL){var A,D;W=(A=W.mimeType)!=null?A:"";A=(D=J.itag)!=null?D:0;D=vW[""+A];K.mimeType=D!=="9"&&D!=="9h"?W:'video/webm; codecs="'+["vp09",D==="9h"?"02":"00","51",D==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else K.mimeType=W.mimeType;K.itag=J.itag;K.lastModified=""+(J.lmt||0);K.xtags=J.xtags;J=this.Z0;D=gf("");A=wf(K,null);df(J,new aU(D,A,S,I))}}; g.u.DC=function(W){this.MD.DC(W)}; g.u.onSnackbarMessage=function(W){if(this.policy.El)this.MD.onSnackbarMessage(W)}; g.u.wk=function(W){this.Wv=W;this.n2=(0,g.L)();this.MD.wk(W)}; g.u.g_=function(W,J,K){this.MD.g_(W,J,K)}; g.u.ek=function(W){W.scope===2&&(this.pu=W);this.MD.ek(W)}; g.u.lh=function(){this.DK=!0;this.MD.lh()}; g.u.TT=function(W){this.policy.Xb&&this.MD.TT(W)}; g.u.Q4=function(W){this.MD.Q4(W,this.eS())}; g.u.mS=function(W){W.PZ===3&&(this.Q8=!0);this.MD.mS(W)}; g.u.ix=function(W){this.MD.ix(W)}; g.u.Ks=function(W){this.MD.Ks(W)}; g.u.canRetry=function(){this.Iu();return this.YK.canRetry(!1)}; g.u.dispose=function(){if(!this.Iu()){g.R.prototype.dispose.call(this);this.YK.dispose();var W;(W=this.kf)==null||W.dispose();this.Ap(-1);this.Ga()}}; g.u.Ap=function(W){this.state=W;o2(this.MD,this)}; g.u.ER=function(){return this.info.ER()}; g.u.D_=function(){return this.DK}; g.u.jy=function(){return this.pu}; g.u.NQ=function(W,J,K){K.clipId&&(this.clipId=K.clipId);this.policy.G&&!J&&(this.yd=K.QH);this.Ro.NQ(W,J,K,0);if(this.policy.LA&&this.Wv&&this.PD instanceof s3){var I=this.Wv.CM;this.PD.NQ(K.durationMs/1E3,J,I>0&&K.QH+1>=I)}this.Ro.Nv.get(W).QZ=!0}; g.u.hI=function(W,J){this.Ro.hI(W,J)}; g.u.hf=function(W){this.requestIdentifier=W}; g.u.H4=function(W){return this.Ro.H4(W)}; g.u.CB=function(W){return this.Ro.CB(W)}; g.u.Do=function(W){return this.Ro.Do(W)}; g.u.oO=function(){return this.Ro.oO()}; g.u.Jn=function(){return 1}; g.u.eS=function(){return this.PD.requestNumber}; g.u.aS=function(){return this.requestIdentifier}; g.u.xm=function(){return this.Tz.xm()}; g.u.Db=function(){this.Ga()}; g.u.Ga=function(){this.PD.deactivate();var W;(W=this.xhr)==null||W.abort()}; g.u.isComplete=function(){return this.state>=3}; g.u.Zk=function(){return this.state===3}; g.u.dV=function(){return this.state===5}; g.u.Bm=function(){return this.state===4}; g.u.LN=function(){return this.isComplete()}; g.u.EO=function(){return this.state>=1}; g.u.qq=function(){return this.policy.Fz?this.YK.qq():0}; g.u.tZ=function(){this.policy.Fz&&o2(this.MD,this)}; g.u.Sp=function(){return oKI(this.info)}; g.u.AS=function(){return this.YK.AS()}; g.u.qV=function(){var W=VwQ(this.YK);Object.assign(W,k4c(this.info));W.req="sabr";W.rn=this.eS();var J;if((J=this.xhr)==null?0:J.status)W.rc=this.policy.Rm?this.xhr.status:this.xhr.status.toString();var K;(J=(K=this.xhr)==null?void 0:K.gK())&&(W.msg=J);this.ZZ&&(K=U$Q(this,this.ZZ-this.PD.c5()),W.letm=K.juh,W.mrbps=K.jm,W.mram=K.Fy);return W};ZmL.prototype.tick=function(W,J){this.ticks[W]=J?window.performance.timing.navigationStart+J:(0,g.L)()};g.N(e3,g.Ao);g.u=e3.prototype; g.u.u5=function(W,J,K,I){if(this.policy.Ph&&this.policy.G){var q=W.rB||null;q?(ReL(this,W.x3,rp(this,W.startTime,W.x3),{rB:q,x3:W.x3,Iy:!!J,kC:K},this.G),I&&this.G&&this.G.rk(W.x3,W.startTime,this.K,(J==null?void 0:J.W)||[],(J==null?void 0:J.K)||[],(J==null?void 0:J.G)||[],K,(J==null?void 0:J.Qz)||0,(J==null?void 0:J.T)||void 0)):this.K===1&&b4(this,5,"noad")}else{var S=!1;this.policy.G&&(S=K?this.XW===W.x3:this.G8===W.x3);if(this.G&&I&&!S){I=[];S=[];var p=[],n=void 0,A=0;J&&(I=J.W,S=J.K,p=J.G,n= J.T,A=J.Qz,this.WS("sdai",{sq:W.x3,ssvicpns:I.join("."),ssvid:S.join(".")}));this.policy.G&&(K?this.XW=W.x3:this.G8=W.x3);this.G.rk(W.x3,W.startTime,this.K,I,S,p,K,A,n)}this.policy.G?K&&(this.K===1&&b4(this,5,"noad"),W.x3!==((q=this.W)==null?void 0:q.x3)&&(VZT(this,W,J,K),isNaN(W.startTime)||ElT(this,W.x3,rp(this,W.startTime,W.x3),!!J,this.G))):K&&VZT(this,W,J)}}; g.u.II=function(W,J,K){var I=this.videoTrack.W.index.FD()<=J;this.W={rB:W,x3:J,Iy:K};I&&Rc(this,W,J)}; g.u.HM=function(){this.G&&this.G.HM()}; g.u.WS=function(W,J,K){(W!=="sdai"||this.policy.Ss||(K===void 0?0:K))&&this.loader.WS(W,J)}; g.u.k0=function(W,J){var K=this.videoTrack.W.index.sW(W);if(K>=0){var I;var q=((I=J.pk.vV(K,2))==null?void 0:I.ZS)||"";if(this.policy.G||q)return J.KS(W,K),BI(this.loader,W,W,K),this.WS("sdai",{cmskpad:1,t:W.toFixed(3),sq:K}),!0}this.WS("sdai",{cmskpad:0,t:W.toFixed(3),sq:K});return!1};g.N(zx,g.R);zx.prototype.SS=function(W,J,K){K=K===void 0?{}:K;this.policy.Qk=mI(W,K,this.T,J===void 0?!1:J)};PI.prototype.U7=function(W){var J=this;if(this.policy.R0){var K=new Set(W);K.size===this.vS.size&&[].concat(g.w(K)).every(function(I){return J.vS.has(I)})||(this.loader.WS("lwnmow",{itagDenylist:[].concat(g.w(W)).join(",")}),this.loader.M4(!!K.size),this.C=-1,this.vS=K,Xq(this,this.W),this.Y3=!0)}}; PI.prototype.SS=function(W,J,K){K=K===void 0?{}:K;var I=this.policy.Qk;this.j.SS(W,J===void 0?!1:J,K);if(I!==this.policy.Qk){Xq(this,this.W);WG(this);var q,S;I>this.policy.Qk&&((q=this.G)==null?0:X_(q.info))&&((S=this.nextVideo)==null||!X_(S.info))&&(this.PS=!0)}};Id.prototype.T6=function(W){this.timestampOffset=W;this.flush()}; Id.prototype.flush=function(){if(this.W.pos>0){var W={a:this.track.SF(),u:this.W.PP(),pd:Math.round(this.T),ad:Math.round(this.G)},J=this.K;if(J){var K=J.W.info;W.itag=K.itag;K.W&&(W.xtags=K.W);W.sq=J.x3;W.st=J.startTime;W.sd=J.duration;this.track.policy.e8&&(W.si=J.XD());J.j&&(W.esl=J.K+J.G);J.IH()&&(W.eos=1)}isNaN(this.timestampOffset)||(W.to=this.timestampOffset);var I;if(J=(I=this.track.wl)==null?void 0:I.RZ({})){for(var q in J)this.S[q]!==J[q]&&(W["sb_"+q]=J[q]);this.S=J}this.track.WS("sbu", W);this.W.reset();this.buffered=[];this.j=this.G=this.T=0;this.timestampOffset=this.K=void 0}};St.prototype.dispose=function(){this.sI=!0}; St.prototype.Iu=function(){return this.sI}; g.N(jt,Error);te.prototype.skip=function(W){this.offset+=W}; te.prototype.cC=function(){return this.offset};g.u=wCT.prototype;g.u.Me=function(){return this.K}; g.u.Eu=function(){return this.K.length?this.K[this.K.length-1]:null}; g.u.YG=function(){this.K=[];dL(this);u_(this)}; g.u.JA=function(W){this.OI=this.K.shift().info;W.info.equals(this.OI)}; g.u.CB=function(){return g.zC(this.K,function(W){return W.info})}; g.u.SF=function(){return!!this.S.info.audio}; g.u.isDrm=function(){return!!this.S.info.aB}; g.u.getDuration=function(){return this.S.index.yE()};g.N(E3,WI);g.u=E3.prototype;g.u.onStateChange=function(){this.Iu()&&(x_(this.Ro,this.formatId),this.W.dispose())}; g.u.qV=function(){var W=jtI(this.Ro,this.formatId),J;var K=((J=this.Ro.Nv.get(this.formatId))==null?void 0:J.bytesReceived)||0;var I;J=((I=this.Ro.Nv.get(this.formatId))==null?void 0:I.xN)||0;return{expected:W,received:K,bytesShifted:J,sliceLength:OC(this.Ro,this.formatId),isAnyMediaEndReceived:this.Ro.RV(this.formatId)}}; g.u.Ue=function(){return 0}; g.u.lz=function(){return!0}; g.u.H4=function(){return this.Ro.H4(this.formatId)}; g.u.a_=function(){return[]}; g.u.Do=function(){return this.Ro.Do(this.formatId)}; g.u.AS=function(){return this.lastError}; g.u.qq=function(){return 0};g.N(Q6,g.R);g.u=Q6.prototype;g.u.SF=function(){return!!this.W.info.audio}; g.u.Eu=function(){return this.T.Eu()}; g.u.JA=function(W){this.T.JA(W);var J;(J=this.N)!=null&&(J.j.add(W.info.x3),J.W=BZL(J,J.Ek,J.hg,W,J.W),J.G=W,J.S=(0,g.L)());this.Cy=Math.max(this.Cy,W.info.W.info.Cy||0)}; g.u.getDuration=function(){return this.W.index.yE()}; g.u.YG=function(){RD(this);this.T.YG()}; g.u.Qp=function(){return this.T}; g.u.isRequestPending=function(W){return this.G.length?W===this.G[this.G.length-1].info.Ly[0].x3:!1}; g.u.T6=function(W){var J;(J=this.N)==null||J.T6(W);var K;(K=this.C)==null||K.T6(W)}; g.u.WS=function(W,J){this.loader.WS(W,J)}; g.u.MB=function(){return this.loader.MB()}; g.u.dispose=function(){var W;(W=this.C)==null||W.flush();g.R.prototype.dispose.call(this)};g.N(zZ,g.R);zZ.prototype.G=function(){this.K++>15||(this.W=!this.W,new tbH(this.loader,this.policy,this.Sn,this.c7,this.W),this.delay.start())}; g.u=tbH.prototype;g.u.AJ=function(){}; g.u.YI=function(){}; g.u.PT=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.vC()===this.size)this.loader.WS("rqs",this.getInfo());else{var W="net.connect";this.xhr.status>200?W="net.badstatus":this.xhr.Cm()&&(W="net.closed");this.onError(W)}}; g.u.onError=function(W){var J=this;this.loader.handleError(W,this.getInfo());Mh("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(K){J.loader.WS("pathprobe",K)},function(K){J.loader.handleError(K.errorCode,K.details)})}; g.u.getInfo=function(){var W=this.timing.wJ();W.shost=V_(this.location.tC);W.pb=this.size;return W};g.N(vG,g.R); vG.prototype.Z=function(W,J){if(W.Z){this.Z0.isLive?(W=this.Z0.Qw&&this.Z0.T?W.W.Km(this.Z0.Qw,!1):W.W.FK(Infinity),W.vP=this.vP):W=W.W.Km(0,!1);if(this.PS){var K=this.PS;W.vP===0&&(W.j=K.N)}else W.j=this.C;return W}K=W.K;if(!K.W.xA())return K.W.Y0()?(W=xZ(this.j,W.W.info.Cy,J.W.info.Cy,0),W=g.E(K.W.Wa(K,W))):W=g.E(K.W.Di(K)),W;var I=K.S-this.loader.getCurrentTime(),q=!K.range||K.G===0&&K.K===0?0:K.range.length-(K.K+K.G),S=K.W;this.Vc(W,I)&&q===0&&(this.Z0.isManifestless?S=W.W:(S=K.startTime+KlT, K.G&&(S+=K.duration),ms(W,S),K=W.K,S=K.W));S.Y0()?(q=this.G,J=xZ(this.j,S.info.Cy,J.W.info.Cy,I,q.T.length>0&&q.N===0&&this.loader.lx),I=b_(W),W=g.E(K.W.Wa(K,J)),(J=W.G)&&W.Ly.length>1&&(I||W.c7.G||W.Ly[0].W!==K.W?W=g.E(K.W.Wa(K,W.Ly[0].G)):(I=W.Ly[W.Ly.length-1],S=I.G/J,!I.j&&S<.4&&(W=g.E(K.W.Wa(K,J-I.G)))))):(K.x3<0&&(J=vQ(K),J.pr=""+W.G.length,this.loader.isSeeking()&&(J.sk="1"),J.snss=K.N,this.loader.WS("nosq",J)),W=g.E(S.Di(K)));if(this.policy.XW)for(K=g.d(W.Ly),J=K.next();!J.done;J=K.next())J.value.type= 6;return W}; vG.prototype.Vc=function(W,J){if(!b_(W)||!W.W.xA())return!1;var K=this.G.Y3||WYL(W)||J<=this.policy.RN||this.G.PS;this.logger.debug(function(){return"ready to adapt: "+K+", upgrade pending: "+WYL(W)+", health: "+J}); return K}; vG.prototype.lO=function(){g.R.prototype.lO.call(this)}; var KlT=2/24;g.N(Xz,g.R);Xz.prototype.zS=function(W,J,K){var I;var q=((I=this.K)==null?void 0:I.reason)==="m"?"m":this.K&&T8L(this,this.K)?this.K.reason:"a";this.loader.zS(new k_(W,q,K));cG(this.loader,J,W,!0)}; Xz.prototype.BA=function(W,J){for(var K=g.d(this.XW),I=K.next();!I.done;I=K.next())if(I=I.value,I.id===W)return this.lK.Ud||(this.G=[I]),this.j=this.Z0.W[W],yn(this.lK)&&(this.PS=!0),W=new k_(this.j,J?"t":"m"),J&&(this.N=!0),W;this.G=[];return null}; Xz.prototype.SS=function(W,J,K){K=K===void 0?{}:K;this.W.SS(W,J===void 0?!1:J,K)};iU.prototype.setData=function(W,J,K){var I=this;K=K===void 0?{}:K;if(J==null?0:J.Tx)this.s8=d$X(this,J,K),W.vM=this.c7.vM();if(this.ER())return!0;this.data=W;this.W=m8v(W,function(q,S){var p;(p=I.MD)==null||p.ub(q,S)},J==null?void 0:J.K); if(!this.W)return!1;this.K=g.XO(this.W,yNQ);return!0}; iU.prototype.ER=function(){return this.requestType===1}; iU.prototype.PK=function(){var W;return((W=this.MD)==null?void 0:W.PK())||0}; iU.prototype.isDecorated=function(){var W;return!((W=this.data)==null||!W.Ag)};J4.prototype.encrypt=function(W){this.Es.exports.AES128CTRCipher_encrypt(this.cipher,W.byteOffset,W.byteLength);return W}; J4.prototype.Iu=function(){return this.cipher===0}; J4.prototype.dispose=function(){this.Es.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};Kk.prototype.encrypt=function(W,J){return Nq(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:J},this.key,W).catch(function(K){return Promise.reject(K.name+": "+K.message)}).then(function(K){return new Uint8Array(K)}))}; Kk.prototype.Iu=function(){return this.W}; Kk.prototype.dispose=function(){this.W=!0}; I2.prototype.encrypt=function(W,J){return Nq(this.K(W,J))}; I2.prototype.K=function(W,J){yK(this.G,J);return this.G.encrypt(W)}; I2.prototype.Iu=function(){return this.W}; I2.prototype.dispose=function(){this.W=!0}; qz.prototype.encrypt=function(W,J){return Nq(this.K(W,J))}; qz.prototype.K=function(W,J){J=this.Es.k$(J);var K=this.W;K.Es.exports.AES128CTRCipher_setCounter(K.cipher,J.byteOffset);this.Es.free(J.byteOffset);J=this.Es.k$(W);this.W.encrypt(J!=null?J:W);return J?this.Es.dP(J):W}; qz.prototype.Iu=function(){return this.W.Iu()}; qz.prototype.dispose=function(){this.W.dispose()}; wt.A0(Kk,{encrypt:vKA("oan2")});wt.A0(I2,{encrypt:vKA("oap")});wt.A0(qz,{encrypt:vKA("oalw")});Sz.prototype.encrypt=function(W,J){var K=this,I=yz("");W.length<=this.zk&&this.W&&!this.j&&(I=Ca(I,function(){return K.W?K.W.encrypt(W,J):yz("wasm unavailable")})); W.length<=this.Xc&&(this.W&&this.j&&(I=Ca(I,function(){return K.W?K.W.encrypt(W,J):yz("wasm unavailable")})),I=Ca(I,function(){return crL(K,W,J)})); return Ca(Ca(I,function(){return P8H(K,W,J)}),function(){return crL(K,W,J)})}; Sz.prototype.K=function(W,J){if(this.W)return this.W.K(W,J);this.G||(this.G=new I2(this.key));return this.G.K(W,J)}; Sz.prototype.Iu=function(){return this.S}; Sz.prototype.dispose=function(){this.S=!0;var W;(W=this.T)==null||Qz(W,g.hE);g.hE(this.W);g.hE(this.G)};pk.prototype.encrypt=function(W){(0,g.L)();return(new g.w7(this.W.W)).encrypt(W,this.iv)}; pk.prototype.decrypt=function(W,J){(0,g.L)();return(new g.w7(this.W.W)).decrypt(W,J)}; pk.prototype.Iu=function(){return this.G}; pk.prototype.dispose=function(){this.G=!0;g.hE(this.K)};g.N(lU,g.R);lU.prototype.G=function(W,J){if(J){J=J instanceof g.TV?J:nk(this,J);var K;((K=this.W.get(W))==null?void 0:V_(K.location))!==V_(J)&&this.W.set(W,new l4Q(J,W))}else this.W.delete(W)}; lU.prototype.load=function(){var W=this,J,K,I,q,S,p,n,A,D,f;return g.V(function(h){switch(h.K){case 1:J=W.W.get(0);g.yQ(h,2);var t;if(t=J&&!W.K)t=V_(J.location),t=W.K===f4(t);if(t){h.VK(4);break}return g.O(h,SFy(W,W.K?2:0),5);case 5:if(K=h.W)W.G(0,K),ew(K)&&W.G(1,R_(K));case 4:g.Cv(h,3);break;case 2:I=g.g0(h);g.ET(I);if(!W.K){h.VK(3);break}W.K=!1;return g.O(h,W.load(),7);case 7:return h.return();case 3:if(!W.Ru.experiments.HS("html5_onesie_probe_ec_hosts")){h.VK(0);break}g.yQ(h,9);q=W;S=q.G;p=3;return g.O(h, SFy(W,1),11);case 11:return S.call(q,p,h.W),n=W,A=n.G,D=4,g.O(h,SFy(W,2),12);case 12:A.call(n,D,h.W);g.Cv(h,0);break;case 9:f=g.g0(h),g.ET(f),g.d0(h)}})}; lU.prototype.Z=function(){var W=this,J,K;return g.V(function(I){g.XY(W.N);J=g.FV(W.Ru.experiments,"html5_onesie_prewarm_max_lact_ms");if(gb()>=J)return I.return();(K=W.W.get(0))&&qFI(W,K);g.d0(I)})}; var KAI={JgI:0,c2Z:1,fos:2,aXu:3,FAI:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};DY0.prototype.decrypt=function(W){var J=this,K,I,q,S,p,n;return g.V(function(A){switch(A.K){case 1:if(n5Q(J))return A.return();J.K=!0;J.zJ.bU("omd_s");K=new Uint8Array(16);QK()?I=new g.Cg(W):q=new g.w7(W);case 2:if(!J.W.length||!J.W[0].isEncrypted){A.VK(4);break}S=J.W.shift();if(!I){p=q.decrypt(S.buffer.aH(),K);A.VK(5);break}return g.O(A,I.decrypt(S.buffer.aH(),K),6);case 6:p=A.W;case 5:n=p;Agy(K);var D=J.zJ,f=S.videoId,h=S.pp,t=S.formatId,F=new ye([n]),a;(a=Dx(D.Kk,f))==null||HI(a,h,t,F);A.VK(2); break;case 4:J.zJ.bU("omd_c"),jz(J),J.K=!1,J.zJ.Rl(),g.d0(A)}})}; DY0.prototype.enqueue=function(W,J,K,I,q){this.W.push({videoId:W,pp:J,formatId:K,buffer:I,isEncrypted:q});this.K||jz(this)};var ygH=!!Uint8Array.prototype.copyWithin,fk=[],j0D=[],toH=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],t4=[],h4=[],FR=[],f4c=[];uU.prototype.Kl=function(W){return g.dYQ(new g.hCD(W))}; uU.prototype.E3=function(W){function J(p){if(!p.done)return S.append(p.value),q.read().then(function(n){return J(n)})} if(!("DecompressionStream"in window))return yz("native decompression unavailable");var K=new DecompressionStream("gzip"),I=K.writable.getWriter();I.write(W).then(function(){return I.close()}); var q=K.readable.getReader(),S=new ye([]);return Ca(Qz(Qz(Nq(q.read()),J),function(){return S.aH()}),function(p){return yz(p.message)})}; uU.prototype.ll=function(W,J){var K=void 0,I=J.k$(W);I&&(K=I.byteOffset,W=I);I=J.exports.getInflatedSize(W.byteOffset,W.length);if(I===0)return yz("bad compressed input");var q=J.malloc(I);if(J.exports.inflateGzip(W.byteOffset,W.length,q))return J.free(q),yz("inflateGzip failed");K&&J.free(K);return Nq(new Uint8Array(J.exports.memory.buffer,q,I))}; wt.A0(uU,{Kl:function(W){return{profile:"gzjb",Vx:Math.ceil(W.byteLength/16)}}, E3:function(W){return{profile:"gznb",Vx:Math.ceil(W.byteLength/16)}}, ll:function(W){return{profile:"gzwb",Vx:Math.ceil(W.byteLength/16)}}});g.N(MoQ,wp);g.u=MoQ.prototype;g.u.Rl=function(){this.Kk.Rl()}; g.u.lE=function(W,J){switch(W){case 10:var K=L2(J,GXQ);W=K.chs;var I=!1;switch(W){case 0:this.G=!K.kz.QuK;this.iv=K.kz.iv;break;case 2:break;case 23:var q=this.Kk;K=K.UNW;q.bU("omp_r");K.videoId&&(q.pG=K.videoId);q.pG!==q.videoData.videoId&&(q.videoData.Jhw=q.pG,q.WS("ompp","vid."+q.pG));q.t$=!0;break;case 24:K=this.Kk;K.bU("omp_c");K.t$=!1;K.qo=!1;var S=(q=K.TY)==null?void 0:q.get(K.pG);K.notifySubscribers(K.pG);S!=null&&(S.W=!0);R2(K);break;default:I=!0}this.Kk.j1&&this.Kk.WS("ombup","id.10;pt."+ W+";len."+J.getLength()+(I?";ignored.1":""));this.T=W;break;case 11:$YQ(this,J);break;case 12:this.xE(J,!0);break;case 37:J=L2(J,$JT);(J.zI||J.Pu)&&J.videoId&&this.Kk.nC.set(J.videoId,J);break;case 60:this.cL(J);break;case 47:this.Y("html5_server_playback_start_policy")&&(J=L2(J,H9y),this.Kk.playbackStartPolicy=J);break;case 35:this.wv(J);break;case 45:this.DC(J);break;case 66:this.ix(J);break;default:this.Kk.j1&&this.Kk.WS("ombup","id."+W+";len."+J.getLength()+";ignored.1")}}; g.u.wk=function(W){this.Kk.wk(W)}; g.u.cL=function(W){W=L2(W,DT);this.Kk.cL(W)}; g.u.DC=function(W){W=L2(W,jw);this.Kk.DC(W)}; g.u.jD=function(W){var J=W.pp,K=W.J2,I=W.Kx,q=W.pU,S=W.QH,p=W.startMs,n=W.durationMs,A=W.timeRange,D=W.tA,f=EX(W),h=gp$.has(vW[""+W.itag]);K&&this.bU(h?"oais_r":"ovis_r");var t=this.W[f]!==void 0;this.Kk.j1&&this.Kk.WS("ombup","id.20;hid."+J+";fid."+f);var F=W.videoId||"";this.K[J]=f;this.j[J]=F;t||(this.W[f]={videoId:F,H5:!1,SF:h,headers:[]});this.W[f].headers.push(W);this.Kk.NQ(F,f,h,{pp:J,J2:!!K,Kx:I!=null?I:-1,QH:S!=null?S:-1,startMs:p!=null?p:-1,durationMs:n!=null?n:-1,tA:D!=null?D:0,pU:q,timeRange:A})}; g.u.xE=function(W,J){var K=W.getUint8(0);this.Kk.j1&&this.Kk.WS("ombup","id."+(J?12:21)+";len."+W.getLength()+";hid."+K);if(W.getLength()!==1){W=W.split(1).bJ;var I=this.K[K]||null,q=this.j[K]||"";I&&(this.dK(this.W[I].SF?"oafs_r":"ovfs_r"),this.queue.enqueue(q,K,I,W,J))}}; g.u.hI=function(W){var J=W.getUint8(0);this.Kk.j1&&this.Kk.WS("ombup","id.22;len."+W.getLength()+";hid."+J);W=this.K[J]||null;var K=this.j[J]||"";if(W)if(this.Y("html5_use_ump_request_slicer")){var I=this.queue;I.W.push({videoId:K,pp:J,formatId:W,isEncrypted:!1,Dr:!0});I.K||jz(I)}else this.Kk.hI(K,J,W)}; g.u.hf=function(W){this.Kk.hf(W)}; g.u.WF=function(W,J){var K=this,I,q,S,p,n,A,D,f,h,t;return g.V(function(F){switch(F.K){case 1:K.Kk.WF();I=W.aH();if(!J){S=I;F.VK(2);break}return g.O(F,mYH(K.Kk,I,K.iv),3);case 3:S=F.W;case 2:q=S;if(!K.Kk.enableCompression){F.VK(4);break}n=(p=performance)==null?void 0:p.now();return g.O(F,UYL(q),5);case 5:q=F.W,K.Kk.WS("decompression",{ds:"DecompressionStream"in window,rt:((A=performance)==null?NaN:A.now())-n});case 4:try{D=L2(q,tUL)}catch(a){return f=a instanceof Error?{name:a.name,message:a.message}: {},f.webcrypto=""+ +!!QK(),f.enc=""+ +K.G,h=new xm("onesie.response.parse",f),F.return(Promise.reject(h))}w8y(D);t=g.$4(D.body);return F.return(t)}})}; g.u.wv=function(W){this.Y("html5_consume_onesie_next_request_policy_for_sabr")&&(W=L2(W,O9Q),this.Kk.wv(W))}; g.u.ix=function(W){W={sY:m5(new HN(W),1,ezH)};this.Kk.ix(W)}; g.u.bU=function(W){this.Kk.bU(W)}; g.u.dK=function(W){return this.Kk.dK(W)}; g.u.Y=function(W){return this.Kk.Y(W)};g.N(dY,g.R);g.u=dY.prototype;g.u.oO=function(W){var J,K;return((K=(J=this.TY)==null?void 0:J.get(W))==null?void 0:K.oO())||[]}; g.u.Do=function(W,J){var K;return!((K=Dx(this,J))==null||!K.Do(W))}; g.u.H4=function(W,J){var K;return((K=Dx(this,J))==null?void 0:K.H4(W))||[]}; g.u.CB=function(W,J){var K;return((K=Dx(this,J))==null?void 0:K.CB(W))||[]}; g.u.Ap=function(W){this.state=W;this.notifySubscribers()}; g.u.ER=function(){return!1}; g.u.D_=function(){return!1}; g.u.jy=function(){}; g.u.bU=function(W){this.uO.bU(W)}; g.u.dK=function(W){return this.uO.dK(W)}; g.u.Ie=function(W,J,K,I){K||this.PD.Ie(I);return!1}; g.u.DN=function(W,J){this.zJ.DN(W,J)}; g.u.GV=function(){this.bU("orfb");this.Hy=!0;if(rgQ(this)&&this.xhr){var W={rc:this.xhr.status,lb:this.xhr.vC(),rt:(1E3*qqH(this.PD)).toFixed(),shost:g.gM(this.kE),trigger:"o1"};this.WS("pathprobe",$m(W))}}; g.u.WF=function(){this.bU("opr_r");this.JE=!0}; g.u.NQ=function(W,J,K,I){if(this.TY){if(!this.TY.has(W)){var q=new gp(this);this.TY.set(W,q);g.B(this,q)}var S;(S=this.TY.get(W))==null||S.NQ(J,K,I);R2(this);K||(this.yd=I.QH)}else R2(this)}; g.u.wk=function(W){this.zd=W;W.fR!=null&&this.uO.TR(W.fR)}; g.u.cL=function(W){this.P2=W}; g.u.wv=function(W){W.videoId&&this.BW.set(W.videoId,W)}; g.u.Rl=function(){if(this.TY)for(var W=g.d(this.TY.keys()),J=W.next();!J.done;J=W.next()){var K=void 0;(K=this.TY.get(J.value))==null||K.IU()}}; g.u.DC=function(W){this.Yz=W}; g.u.ix=function(W){if(W==null?0:W.sY)if(W=W.sY.JL){W=g.d(W);for(var J=W.next();!J.done;J=W.next())J=J.value,J.videoId&&this.Hr.set(J.videoId,J)}}; g.u.WS=function(W,J,K){this.uO.WS(W,J,K===void 0?!1:K)}; g.u.hI=function(W,J,K){var I;(I=Dx(this,W))==null||I.hI(J,K)}; g.u.hf=function(W){this.TK.set(W.videoId,W)}; g.u.fetch=function(){var W=this,J,K,I,q,S,p,n,A,D,f,h,t,F,a,y,U,Q,C,T,H,b;return g.V(function(c){switch(c.K){case 1:W.logger.debug("Onesie fetch started.");W.y9?W.A9.start():W.Mo.start();W.bU("or_i");J=W.Ru.experiments.HS("html5_onesie_verbose_timing");K={};I=(0,g.L)();q=function(v){J&&(K[v]=(0,g.L)()-I)}; q("loc_s");if(S=OpI(W.videoData,W.Zf)){c.VK(2);break}q("loc_async");p=g.FV(W.Ru.experiments,"html5_onesie_redirector_timeout_ms");return g.O(c,T9H(W.videoData,W.Zf,p),3);case 3:S=c.W;case 2:if(!S)return W.logger.info("Onesie URL creation failed."),n={url:"0"},A=new xm("onesie.unavailable.hotconfig",n),W.kG(A),c.return(W.sz);W.s8=V_(S);q("loc_e");D=g.pp(W.Ru,g.m7(W.videoData));f=!!D.W;if(!f){h=D.getValue();c.VK(4);break}return g.O(c,D.W,5);case 5:h=c.W;case 4:t=h;W.Y("html5_log_onesie_empty_oauth")&& !t&&W.WS("no_token",{async:f});q("oauth");F=VoX(W.playerRequest,W.Ru,W.videoData,t,f4(W.s8));g.yQ(c,6);if(!B9A(W,F)){q("or_s_sync");W.Q5=eCQ(F,W.NA,W.Ru,W.uO,W.GX.onesieUstreamerConfig,(a=W.videoData.y6)==null?void 0:a.IW);c.VK(8);break}q("or_s_async");return g.O(c,bpQ(F,W.NA,W.Ru,W.uO,W.GX.onesieUstreamerConfig,(y=W.videoData.y6)==null?void 0:y.IW),9);case 9:W.Q5=c.W;case 8:g.Cv(c,7);break;case 6:return U=g.g0(c),W.logger.info("Failed to create OnesieRequestProto."),W.kG(U),c.return(W.sz);case 7:return q("or_e"), J&&W.WS("oreqvt",K),W.enableCompression=W.Q5.uf.ZW,W.bU("osor"),Q=D8c(),C=g.XO(W.Q5,cAQ),T={method:"POST",body:C,headers:{"Content-Type":"text/plain",Referer:location.origin}},H=W.Y("html5_onesie_media_capabilities"),HpT(S,W.videoData,LAH(W),H),W.logger.debug("Starting Onesie network request."),W.j1&&W.WS("ombrs","1"),b=W.uO.J().schedule,W.PD=new s3(W,{Sn:b,ZR:W.j1,nG:function(v,Kv){W.uO.r_(v,Kv)}, Xa:!0}),S.set("rn",""+W.PD.requestNumber),W.kE=S.xm(),YZ(W.PD,W.kE),W.bU("or_p"),W.xhr=S3(new wA(S),Q,W.PD,IP,T),W.Ih.start(),c.return(W.sz)}})}; g.u.Jn=function(){return 2}; g.u.AJ=function(){this.bU("orh_r")}; g.u.YI=function(){!this.Hy&&this.xhr.vC()&&this.GV();if(this.yI&&!this.y9){var W;(W=this.GA)==null||W.start()}this.x0()}; g.u.PT=function(W){W=W===void 0?!1:W;this.logger.debug("onXhrDone");this.x0();if(!(this.Iu()||this.state>=4)){var J=Nz(this),K=this.xhr;J.rc=K.status;W&&(J.ab=!0);if(K.gK()){var I="onesie.net";J.msg=K.gK()}else K.status>=400?I="onesie.net.badstatus":K.gD()?this.JE||(I="onesie.response.noplayerresponse"):I=K.status===204?"onesie.net.nocontent":"onesie.net.connect";I?this.kG(new xm(I,J)):(this.bU("or_fs"),this.PD.zL((0,g.L)(),K.vC(),0),this.Ap(4),this.j1&&this.WS("rqs",J));this.j1&&this.WS("ombre", "ok."+ +!I);this.qo=!1;R2(this);g5L(this.zJ);if(!this.y9){this.Mo.stop();var q;(q=this.GA)==null||q.stop()}var S;if(W=(S=this.Zf)==null?void 0:p8H(S))for(S=0;S1E3){var W;(W=this.PD)==null||W.kL((0,g.L)());W=Nz(this);if(this.Ru.ND()&&this.xhr instanceof i4){var J=this.xhr;W.xrs=J.xhr.readyState;W.xpb=J.W.getLength();W.xdc=J.G}this.kG(new xm("net.timeout",W))}}else(0,g.L)()-this.PD.W>1E4&&((J=this.PD)==null||J.kL((0,g.L)()),this.yp());this.isComplete()||this.A9.start()}}; g.u.yp=function(){this.logger.info("Onesie request timed out");this.qo=!1;if(!R2(this)){var W=Nz(this);W.timeout="1";this.kG(new xm("onesie.request",W))}}; g.u.kG=function(W){var J=this;W=Tc(W);this.yI?this.uO.Uk(W):(this.sz.reject(W),this.yI=!0);g5L(this.zJ);this.y9||this.Mo.stop();this.bU("or_fe");var K,I;(K=this.Zf)==null||(I=p8H(K))==null||I.forEach(function(q){J.WS("pathprobe",q)}); this.Ap(5);this.dispose()}; g.u.isComplete=function(){return this.state>=3}; g.u.Bm=function(){return this.state===4}; g.u.LN=function(W){var J,K;return this.isComplete()||!!((J=this.TY)==null?0:(K=J.get(W))==null?0:K.W)}; g.u.Zk=function(){return!1}; g.u.dV=function(){return this.state===5}; g.u.notifySubscribers=function(W){for(var J=0;J102400&&!this.xb&&(this.bU("or100k"),this.xb=!0);if(W.Zc()){var J=W.Zd(),K=J.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+K}); this.j1&&this.WS("ombrss","len."+K);this.n4.feed(J)}if(this.TY)for(var I=g.d(this.TY.keys()),q=I.next();!q.done;q=I.next()){var S=q.value;W=void 0;(W=this.TY.get(S))==null||W.IU();this.notifySubscribers(S)}}catch(p){this.kG(p)}}; g.u.eS=function(){return this.PD.requestNumber}; g.u.aS=function(W){return this.TK.get(W)};g.N(zCH,g.R);g.u=zCH.prototype;g.u.r0=function(W,J){this.PS=void 0;nhQ(this);lPy(this,W,J)}; g.u.Qc=function(W){if(this.W.length===0)return!1;var J=this.W[0];return J instanceof dY?W===this.loader.getCurrentTime()*1E3:!(J instanceof Vn&&LYc(J.info))&&Math.abs(J.Sp()-W)<50}; g.u.wv=function(W){this.K=W;this.PS=(0,g.L)()+(W.backoffTimeMs||0)}; g.u.GT=function(W,J){if(W.action===void 0){var K=this.uO.yM();K!==void 0&&this.loader.S_(K)}else if(W.action!==0||!this.Y3)switch(W.action===0&&this.policy.bk&&(W.action=2),K={},K.reason=W.Tj,K.action=W.action,K.rn=J,W.action){case 1:this.policy.G&&this.Z&&this.Z.Jx(void 0,void 0,K);break;case 0:this.Y3=!0;this.videoData.rf()&&this.policy.G&&this.Z&&this.Z.Jx(void 0,void 0,K,!1);this.loader.jg(K);break;case 2:this.policy.CO?(VJI(W.Tj)!=="sabr.config"&&delete K.reason,this.loader.handleError(VJI(W.Tj), K,1)):this.loader.handleError("sabr.config",K,1);break;case 3:this.policy.Tx&&((W=this.Z0.N)!=null&&(W.N=!0),this.loader.handleError("sabr.hostfallback",K))}}; g.u.ek=function(W){W&&(this.loader.WS("sabrctxt",{onsbrctxt:W.type,scp:W.scope,dflt:W.sendByDefault}),W.type&&W.sendByDefault&&this.cj.add(W.type),W.scope!==2&&(W.type&&this.videoData.sabrContextUpdates.set(W.type,W),this.uO.ek(W)))}; g.u.lh=function(){}; g.u.DC=function(W){if(W.kB!==void 0&&W.Hf){var J=W.kB/W.Hf;this.audioTrack.Z=!1;this.videoTrack.Z=!1;if(this.policy.sI||this.policy.uD||this.policy.Pg)this.loader.Fs.K=!1;this.loader.TZ(J,1);if(this.uO.getCurrentTime()!==J){var K={cN:"sabr_seek",gk:!0,cX:!0};W.seekSource&&(K.seekSource=W.seekSource);L1(this.loader,J+.1,K)}}}; g.u.onSnackbarMessage=function(W){this.uO.publish("onSnackbarMessage",W)}; g.u.wk=function(W){W.CM&&W.i4&&VL(this.Z0,W.CM,W.i4);this.policy.hc&&(W.xd&&W.jG&&(this.Z0.Ou=W.xd/W.jG),W.lQ&&W.gG&&(this.Z0.ez=W.lQ/W.gG));this.policy.JU&&$h(this.videoData)&&!this.videoData.sI&&W.i4&&this.loader.TZ(W.i4,1E3);W.fR!=null&&this.uO.TR(W.fR);this.policy.V_&&W.EX&&(W=((0,g.L)()-W.EX)/1E3,this.loader.Dq.o7(1,W))}; g.u.mS=function(W){this.loader.mS(W)}; g.u.z_=function(W){return this.cj.has(W)}; g.u.g_=function(W,J,K){this.policy.K&&this.loader.WS("sabrctxtplc",{start:W?W.join("_"):"",stop:J?J.join("_"):"",discard:K?K.join("_"):""});if(W){W=g.d(W);for(var I=W.next();!I.done;I=W.next())this.cj.add(I.value)}if(J)for(J=g.d(J),W=J.next();!W.done;W=J.next())W=W.value,this.cj.has(W)&&this.cj.delete(W);if(K)for(K=g.d(K),J=K.next();!J.done;J=K.next())if(J=J.value,this.videoData.sabrContextUpdates.has(J)&&(this.videoData.sabrContextUpdates.delete(J),J===3&&(this.videoData.Pc="")),this.policy.C&&this.W.length)for(W= g.d(this.W),I=W.next();!I.done;I=W.next())if(I=I.value,!(I instanceof dY)){var q=void 0;((q=I.pu)==null?void 0:q.type)===J&&(I.pu=void 0)}}; g.u.TT=function(){}; g.u.HA=function(W){this.j=W}; g.u.m7=function(W){this.jZ=W}; g.u.Q4=function(W,J){kD(this.policy,W,4,J)}; g.u.ix=function(W){if(W==null?0:W.sY)if(W=W.sY.JL){W=g.d(W);for(var J=W.next();!J.done;J=W.next())if(J=J.value,J.formatId){var K=this.Z0.G.get(EX(J.formatId));K&&K.info&&(K.info.debugInfo=J.debugInfo)}}}; g.u.Ks=function(W){(W=W==null?void 0:W.reloadPlaybackParams)&&this.uO.publish("reloadplayer",W)}; g.u.Ah=function(){return this.uO.Ah()||""}; g.u.PK=function(){var W=HG(this.audioTrack,!0)*1E3,J=HG(this.videoTrack,!0)*1E3;return Math.min(W,J)}; g.u.ub=function(W,J){this.loader.WS(W,J)}; g.u.B5=function(W){$Ev(this.loader,WIQ(this.D0,W))}; g.u.lO=function(){g.R.prototype.lO.call(this);this.K=void 0;lPy(this,!0,"i");this.W=[]};jeD.prototype.vD=function(W,J){if(this.T)return aPT(this,J);if(J=kZ(W)){var K=J.K;K&&K.G&&K.W&&(W=W.G.length?W.G[0]:null)&&W.state>=2&&!W.dV()&&W.info.vP===0&&(this.T=W,this.Z=K,this.K=J.info,this.S=this.startTimeSecs=Date.now()/1E3,this.j=this.K.startTime)}return NaN}; jeD.prototype.clear=function(){this.K=this.Z=this.T=null;this.W=this.j=this.S=this.startTimeSecs=NaN;this.G=!1};g.N(g.zE,g.R);g.u=g.zE.prototype;g.u.initialize=function(W,J,K){this.logger.debug(function(){return"Initialized, t="+W}); W=W||0;this.policy.W||(J=JRy(this.W),TPQ(this.uO,new k_(J.video,J.reason)),this.uO.z9(new k_(J.audio,J.reason)));this.Z0.isManifestless&&gKv(this.j);this.Z&&h7c(this.Z,this.videoTrack.W);J=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var I=!this.Z0.isManifestless;this.policy.Jc&&(I=I||this.Z0.jP);this.policy.vS||(this.currentTime=I?W:J);this.policy.sI&&this.seek(this.getCurrentTime(),{}).b2(function(){}); if(this.policy.W){var q;((q=this.C)==null?0:kRX(q,this.Ah()||""))&&UEH(this)&&ySL(this,this.videoTrack)&&ySL(this,this.audioTrack)&&(ASD(this.T,this.C),this.policy.j&&dEc(this))}else this.sI&&(ZKH(this,this.videoTrack),ZKH(this,this.audioTrack),D$0(this.sI),delete this.sI);K?(this.policy.GG?(this.SI=K,vB(this,K)):vB(this,!1),g.XY(this.Gw)):(K=this.getCurrentTime()===0,sx(this.j,this.videoTrack,this.videoTrack.W,K),sx(this.j,this.audioTrack,this.audioTrack.W,K),this.policy.W&&s00(this.T,!0),this.policy.sI|| this.seek(this.getCurrentTime(),{}).b2(function(){}),this.timing.tick("gv")); (this.Z0.Qw||this.Z0.X4||this.Z0.vS||this.Z0.qD||this.Z0.bb)&&this.uO.No(this.Z0)}; g.u.resume=function(){if(this.isSuspended||this.lx){this.logger.debug("Resumed.");this.xM=this.lx=this.isSuspended=!1;try{this.vD()}catch(W){g.Va(W)}}}; g.u.Ps=function(){return!this.policy.kK}; g.u.bY=function(W,J){W=W===void 0?!1:W;J=J===void 0?!1:J;this.logger.debug("detaching media source");M7v(this);this.uO.RH()&&(this.S=NaN);W?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.jZ&&this.WS("loader",{setsmb:1}),this.policy.XW=!0,this.YG()):(this.policy.GG?vB(this,this.SI):vB(this,!1),J||this.YG())}; g.u.setAudioTrack=function(W,J,K){K=K===void 0?!1:K;if(!this.Iu()){var I=!isNaN(J);K&&I&&(this.audioTrack.sI=Date.now(),this.policy.lN&&(this.bO=!0));if(this.policy.W){var q=this.G.BA(W.id,I);this.logger.debug(function(){return"Logging new audio format: "+q.W.info.id}); this.uO.z9(q)}else{var S=XQD(this.W,W.id,I);this.logger.debug(function(){return"Logging new audio format: "+S.audio.info.id}); this.uO.z9(new k_(S.audio,S.reason))}if(I&&(K=this.audioTrack.W.index.sW(J),this.WS("setAudio",{id:W.id,cmt:J,sq:K}),K>=0)){this.policy.W&&this.r0(!0,"mosaic");V6(this.audioTrack,K,NaN,NaN);!this.policy.Ym&&this.Z0.isLive&&HC(this.Z0,K,!1);return}this.uO.gH()}}; g.u.setPlaybackRate=function(W){W!==this.N.getPlaybackRate()&&this.N.setPlaybackRate(W)}; g.u.MZ=function(W){var J=this.T.j;this.T.HA(W);this.WS("scfidc",{curr:EX(J),"new":EX(W)});W&&EX(W)!==EX(J)&&(this.r0(!0,"caption change"),this.vD())}; g.u.XA=function(W){this.T.m7(W)}; g.u.zS=function(W){var J=W.W.info.SF();this.logger.debug(function(){return"New "+(J?"audio":"video")+" format from SABR: "+nD(W.W.info)}); J?this.uO.z9(W):TPQ(this.uO,W)}; g.u.B5=function(W){Lm(W.Ly[W.Ly.length-1])&&$Ev(this,WIQ(this.W,W.Ly[0].W))}; g.u.rF=function(){return this.uO.rF()}; g.u.g3=function(){return this.uO.g3()}; g.u.mS=function(W){this.uO.J().ND()&&this.WS("sps",{status:W.PZ||""});if(W.PZ===1)this.uO.videoData.RN=0;else if(W.PZ===2||W.PZ===3){var J=!1;if(W.PZ===3){J=this.uO.JV();var K;this.fE=(K=W.esK)!=null?K:Infinity;this.uO.videoData.RN=J+1;(J=MbQ(this))&&this.O4(!0)}this.uO.rN(!0,J)}}; g.u.Xe=function(){return this.uO.Xe()}; g.u.P$=function(){return this.uO.P$()}; g.u.A6=function(W){this.uO.A6(W)}; g.u.DuW=function(){var W,J=(W=this.uO.gb())==null?void 0:W.getCurrentTime();J?this.uO.WS("rms",{cta:J}):g.XY(this.Fz)}; g.u.vD=function(){GgQ(this);if(this.ww&&sE(this.ww)&&!this.ww.I5()&&(!this.policy.vS||isFinite(this.getCurrentTime()))){var W=wL(this.videoTrack);W=this.policy.h1&&W&&W.IH();this.Z0.isManifestless&&this.Z0.T&&$i(this.Z0)?(this.S=$i(this.Z0),this.ww.Cg(this.S)):EJ(this.Z0)&&!W?isNaN(this.S)?(this.S=this.getCurrentTime()+3600,this.ww.Cg(this.S)):this.S<=this.getCurrentTime()+1800&&(this.S=Math.max(this.S+1800,this.getCurrentTime()+3600),this.ww.Cg(this.S)):this.ww.isView||(W=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.S)||this.S!==W)&&W>0&&(this.ww.Cg(W),this.S=W))}if(!this.Iu())if(Gs(this.Z0)&&this.Z0.dV()){var J=this.Z0;this.handleError("manifest.net.retryexhausted",J.bO?{rc:J.Dt}:{rc:J.Dt.toString()},1)}else if(this.policy.W)a:{try{qk0(this.T);this.Z0.isManifestless&&this.policy.j&&ra(this.Fs);var K;((K=this.ww)==null?0:Xr(K))&&this.pj();s00(this.T)}catch(p){g.ET(p);J=p;if(J.message.includes("changeType")){this.WS("ssap",{exp:J.name,msg:J.message,s:J.stack});break a}this.handleError("fmt.unplayable", {exp:J.name,msg:J.message,s:J.stack},1)}PEv(this);g.XY(this.D0)}else if(!this.Z0.K||!KYD(this.videoTrack)&&!KYD(this.audioTrack)||(this.videoTrack.j||this.audioTrack.j)&&this.policy.P7?K=!1:(this.YG(),this.uO.seekTo(Infinity,{cN:"checkLoaderTracksSync",TZ:!0}),K=!0),!K){GgQ(this);this.Z0.isManifestless&&(ILI(this.videoTrack),ILI(this.audioTrack),ra(this.Fs),(K=kZ(this.videoTrack))&&K.K&&(K=K.K.G&&!this.policy.GP,this.WS(K===this.policy.Z.PY?"strm":"strmbug",{strm:K,sfmp4:this.policy.Z.PY,dfs:this.policy.GP}, !0)));if(this.ww)this.pj();else if(this.policy.T){var I;K=!1;if(this.policy.lk){var q;W=g.d([this.videoTrack,this.audioTrack]);for(q=W.next();!q.done;q=W.next()){var S=q.value;for(q=kZ(S);q&&S.Eu()!==wL(S);q=kZ(S))S.JA(q);K=K||!!q}}else(J=kZ(this.videoTrack))&&this.videoTrack.JA(J),(I=kZ(this.audioTrack))&&this.audioTrack.JA(I);xD(this.videoTrack)&&xD(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(J||I||K)&&rY(this)}QeI(this);sx(this.j,this.videoTrack,this.videoTrack.W, !1);sx(this.j,this.audioTrack,this.audioTrack.W,!1);this.policy.nL||OKv(this,this.videoTrack,this.audioTrack);N8H(this.j,this.videoTrack,this.audioTrack);N8H(this.j,this.audioTrack,this.videoTrack);PEv(this);this.Z&&(J=this.Z,J.T?(I=J.S+J.policy.lI,J.G||(I=Math.min(I,J.startTimeSecs+J.policy.fA)),J=Math.max(0,I*1E3-Date.now())):J=NaN,isNaN(J)||g.XY(this.iU,J));g.XY(this.D0)}}; g.u.jg=function(W){this.uO.jg(W)}; g.u.pj=function(){var W=this;if(this.ww){var J=this.ww.W,K=this.ww.K;SYH(this,this.audioTrack);SYH(this,this.videoTrack);var I=V7X(this);if(I){if(this.policy.Mq){if(!J.NC()){var q=kZ(this.audioTrack);if(q){if(!kS(this,this.audioTrack,J,q.info))return;R7Q(this,this.audioTrack,J,q)}}if(!K.NC()&&(q=kZ(this.videoTrack))){if(!kS(this,this.videoTrack,K,q.info))return;R7Q(this,this.videoTrack,K,q)}}this.NV||(this.NV=(0,g.L)(),this.logger.debug(function(){return"Appends pause start "+W.NV+" reason "+I}), this.policy.K&&this.WS("apdps",{r:I}))}else if(this.NV&&(HKT(this,this.NV),this.NV=0),EhQ(this),q=!1,ohA(this,this.videoTrack,K)&&(q=!0,wQ0(this.timing),$$c(this.timing)),this.ww&&!this.ww.eF()&&(ohA(this,this.audioTrack,J)&&(q=!0,MZy(this.timing),x$H(this.timing)),!this.Iu()&&this.ww))!this.policy.kK&&xD(this.videoTrack)&&xD(this.audioTrack)&&sE(this.ww)&&!this.ww.I5()&&(K=!1,K=wL(this.audioTrack).W,K=K===this.Z0.W[K.info.id])&&(this.logger.debug("Setting EOS"),M$H(this.ww),z9L(this.schedule)),q&& !this.ww.isAsync()&&rY(this)}}; g.u.Rf=function(W){var J,K=W===((J=this.ww)==null?void 0:J.W)?this.audioTrack:this.videoTrack,I;if((I=kZ(K))==null?0:I.isLocked){if(this.uO.J().ND()){var q;this.WS("eosl",{ounlock:(q=kZ(K))==null?void 0:q.info.XD()})}var S;sey(this,W===((S=this.ww)==null?void 0:S.W))}var p;if(this.policy.lN&&W===((p=this.ww)==null?void 0:p.W)&&this.Js){J=this.Js-this.getCurrentTime();var n;this.uO.WS("asl",{l:J,xtag:(n=wL(this.audioTrack))==null?void 0:n.W.info.W});this.bO=!1;this.Js=0}W.iA()&&W.UA().length===0&& (W.YN(),this.ww&&!this.ww.iA()&&(this.uO.J().ND()&&this.uO.WS("rms",{ld:"seek"}),this.ww.S=performance.now(),this.uO.kH(),this.uO.J().ND()&&g.XY(this.Fz)));var A;(A=K.C)!=null&&qL(A,0);this.policy.oG?wwX(this):this.vD()}; g.u.xDS=function(W){if(this.ww){var J=wL(W===this.ww.W?this.audioTrack:this.videoTrack);if(W=W.Sy())for(var K=0;K5&&W.PS.shift();J=J.x3;var I;if((I=this.uO.getVideoData())==null?0:I.enableServerStitchedDai)I=nKI(this.audioTrack,J),K=nKI(this.videoTrack,J),I!==0&&K!==0&&I!==K&&this.handleError("ssdai.avsync",{sq:J,a:I,v:K},0)}}; g.u.II=function(W,J,K,I){W.info.video&&this.K.II(J,K,I)}; g.u.U7=function(W){this.W.U7(W)}; g.u.nM=iD(20);g.u.QW=function(){return this.videoTrack.Z||this.audioTrack.Z}; g.u.seek=function(W,J){if(this.Iu())return HS();if(this.QW())return HS("seeking to head");if(this.policy.sI&&!isFinite(W))return YlH(this.Fs),g.Tv(Infinity);GgQ(this);this.M3=(0,g.L)();this.policy.W||QeI(this,W);this.ww&&this.ww.W&&this.ww.K&&!this.uO.getVideoData().Bk&&(this.ww.W.isLocked()||this.ww.K.isLocked())&&this.uO.gH({reattachOnLockedBuffer:1,vsb:""+this.ww.K.isLocked(),asb:""+this.ww.W.isLocked()});var K=this.getCurrentTime(),I=this.Fs.seek(W,J);this.policy.vS||(this.currentTime=I);oc(this.K, W,K,this.policy.nX&&!J.gk);rY(this);return g.Tv(I)}; g.u.Qc=function(W){return this.policy.W&&this.T.Qc(W)}; g.u.z_=function(W){return this.T.z_(W)}; g.u.r0=function(W,J){this.T.r0(W,J)}; g.u.getCurrentTime=function(){if(this.policy.vS){var W=this.nE()||0;return this.uO.getCurrentTime()-W}return this.currentTime}; g.u.u9=function(){return this.audioTrack.W.info}; g.u.nB=function(){return this.videoTrack.W.info}; g.u.PV=function(){return this.audioTrack.W.info.z8}; g.u.s2=function(){return this.videoTrack.W.info.z8}; g.u.lO=function(){try{this.bY(),RD(this.audioTrack),RD(this.videoTrack),BG(this.audioTrack),BG(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.R.prototype.lO.call(this)}catch(W){g.Va(W)}}; g.u.handleError=function(W,J,K){K=K===void 0?0:K;var I=OS(K);W==="fmt.unplayable"&&this.Z0.isLive&&(this.policy.Mq=!1,Ts(this.Z0));J=new xm(W,J,K);g.Kx(this);$m(J.details);this.uO.handleError(J);W!=="html5.invalidstate"&&J.errorCode!=="fmt.unplayable"&&W!=="fmt.unparseable"&&I&&this.dispose()}; g.u.RZ=function(){var W=wL(this.audioTrack),J=wL(this.videoTrack);W={lct:this.getCurrentTime().toFixed(3),lsk:this.Fs.isSeeking(),lmf:this.W.W.isLocked(),lbw:ZL(this.schedule).toFixed(3),lhd:yx(this.schedule).toFixed(3),lst:((this.schedule.Z.Lc()||0)*1E9).toFixed(3),laa:W?W.XD():"",lva:J?J.XD():"",lar:this.audioTrack.K?this.audioTrack.K.XD():"",lvr:this.videoTrack.K?this.videoTrack.K.XD():"",laq:""+Ox(this.audioTrack),lvq:""+Ox(this.videoTrack)};this.ww&&!this.ww.eF()&&this.ww.W&&this.ww.K&&(W.lab= D0(this.ww.W.UA()),W.lvb=D0(this.ww.K.UA()));this.NV&&(W.lapt=((0,g.L)()-this.NV).toFixed(0),W.lapr=V7X(this));this.vS&&(W.lapmabht=((0,g.L)()-this.vS).toFixed(0),W.lapmabh=Bv(this,this.audioTrack).toFixed(0));this.SZ&&(W.lapmvbht=((0,g.L)()-this.SZ).toFixed(0),W.lapmvbh=Bv(this,this.videoTrack).toFixed(0));this.jZ&&(W.lapsdai=((0,g.L)()-this.jZ).toFixed(0));return W}; g.u.YG=function(){try{this.policy.W&&this.T.r0(!1,"pending"),this.audioTrack.YG(),this.videoTrack.YG()}catch(W){g.Va(W)}this.policy.T=""}; g.u.UZ=function(){return $Z(this.N)}; g.u.WS=function(W,J,K){this.uO.WS(W,J,K===void 0?!1:K)}; g.u.Ah=function(){return this.uO.Ah()}; g.u.TZ=function(W,J){W/=J;isNaN(this.timestampOffset)&&plI(this,W-Math.min(W,this.policy.gx));return(W-this.timestampOffset)*J}; g.u.nE=function(){return this.timestampOffset}; g.u.isSeeking=function(){return this.Fs.isSeeking()}; g.u.HM=function(){this.K.HM()}; g.u.SS=function(W,J,K){J=J===void 0?!1:J;K=K===void 0?{}:K;this.policy.W?this.G.SS(W,J,K):this.W.SS(W,J,K)}; g.u.k0=function(W,J){if(this.PS&&this.K.k0(W,this.PS))return plI(this,this.timestampOffset-J),rY(this),this.policy.G&&(Ts(this.Z0),BG(this.audioTrack),BG(this.videoTrack),this.YG()),!0;J=this.videoTrack.W.index.sW(W);this.handleError("ad.skipfailed",{dec:!!this.PS,t:W.toFixed(3),sq:J});return!1}; g.u.getManifest=function(){return this.Z0}; g.u.isOffline=function(){return!!this.uO.getVideoData().cotn}; g.u.r_=function(W,J){this.uO.r_(W,J)}; g.u.Nw=function(W){if(this.policy.W)this.T.r0(!0,"utc"),this.vD();else{var J=this.uO.getVideoData().j3;if(J){var K=this.j;K.hS=W;K.j3=J;PG(this)}}}; g.u.S_=function(W){this.videoTrack.Z=!1;this.audioTrack.Z=!1;this.Fs.K=!1;this.uO.S_(W)}; g.u.sF=function(W){this.Fs.sF(W-this.nE())}; g.u.hW=function(){this.uO.hW()}; g.u.O4=function(W){W!==this.policy.DL&&((this.policy.DL=W)||this.vD())}; g.u.U9=function(W,J){var K=this.audioTrack.wl,I=this.videoTrack.wl;K&&I&&(K.remove(W,J),I.remove(W,J))}; g.u.gH=function(W){this.uO.gH(W)}; g.u.M4=function(W){this.uO.M4(W)}; g.u.JV=function(){return this.uO.JV()}; g.u.wr=function(){Ts(this.Z0);this.YG()};g.u=g.sa.prototype;g.u.K1=function(W,J,K,I,q,S){return this.pk.K1(W,J,K,I,q,S)}; g.u.SU=function(W,J,K,I,q,S){return this.pk.SU(W,J,K,I,q,S)}; g.u.T7=function(W){return this.pk.T7(W)}; g.u.IP=function(W){this.pk.IP(W)}; g.u.Jx=function(W,J,K,I){return this.pk.Jx(W,J,K,I)}; g.u.HM=function(){this.pk.HM()}; g.u.KS=function(W,J){this.pk.KS(W,J)}; g.u.N6=function(){this.pk.N6()}; g.u.Yv=iD(62);g.u.MY=function(W,J,K){this.pk.MY(W,J,K)}; g.u.jc=iD(65);g.u.rk=function(W,J,K,I,q,S,p,n,A){this.pk.rk(W,J,K,I,q,S,p,n,A)}; g.u.EF=function(W){this.pk.EF(W)}; g.u.hJ=function(W){return this.pk.hJ(W)}; g.u.im=function(W){return this.pk.im(W)};g.N(cB,g.Ao);g.N(PB,cB);PB.prototype.S=function(W,J){if(W&&J){var K=Number(e4(W,"cpi"))*1+1;isNaN(K)||K<=0||Kthis.G&&(this.G=K,g.PR(this.W)||(this.W={},this.T.stop(),this.K.stop())),this.W[J]=W,g.XY(this.K))}}; PB.prototype.j=function(){for(var W=g.d(Object.keys(this.W)),J=W.next();!J.done;J=W.next()){var K=J.value;J=this.publish;for(var I=this.G,q=g.MO(this.W[K]),S=[],p=g.d(q[6].split("&")),n=p.next();!n.done;n=p.next())n=n.value,n.indexOf("cpi=")===0?S.push("cpi="+I.toString()):n.indexOf("ek=")===0?S.push("ek="+g.tz(K)):S.push(n);q[6]="?"+S.join("&");K="skd://"+q.slice(2).join("");q=K.length*2;I=new Uint8Array(q+4);I[0]=q%256;I[1]=(q-I[0])/256;for(q=0;q0)for(var K=g.d(this.W),I=K.next();!I.done;I=K.next())if(J===I.value.info.cryptoPeriodIndex){J=!0;break a}J=!1}if(!J){J=(0,g.L)();a:{K=W.cryptoPeriodIndex;if(!isNaN(K)){I=g.d(this.G.values());for(var q=I.next();!q.done;q=I.next())if(Math.abs(q.value.cryptoPeriodIndex-K)<=1){K=!0;break a}}K=!1}K?(K=W.W,K=Math.max(0,Math.random()*((isNaN(K)?120:K)-30))*1E3):K=0;this.publish("log_qoe",{wvagt:"delay."+K,cpi:W.cryptoPeriodIndex,reqlen:this.W.length, ignore:this.T});K<=0?DwQ(this,W):this.T||(this.W.push({time:J+K,info:W}),g.XY(this.K,K))}}; Wr.prototype.lO=function(){this.W=[];cB.prototype.lO.call(this)};var uJ={},FlD=(uJ.DRM_TRACK_TYPE_AUDIO="AUDIO",uJ.DRM_TRACK_TYPE_SD="SD",uJ.DRM_TRACK_TYPE_HD="HD",uJ.DRM_TRACK_TYPE_UHD1="UHD1",uJ);g.N(hEX,g.R);g.N(ufQ,g.Ao);g.u=ufQ.prototype;g.u.OJ=function(W){var J=this;if(!(this.Iu()||W.size<=0)){var K={};W.forEach(function(I,q){var S=ki(J.K)?q:I;q=new Uint8Array(ki(J.K)?I:q);ki(J.K)&&bTH(q);I=g.IB(q,4);bTH(q);q=g.IB(q,4);J.W[I]?J.W[I].status=S:J.W[q]?J.W[q].status=S:J.W[I]={type:"",status:S};J.Ru.Y("html5_authorized_drm_track_types")?(S=J.W[I].type,I=OlQ(S),Kb(J,S)&&!K[I]&&(J.Wj.push(I),K[I]=!0)):(J.T=[],Kb(J,J.W[I].type)&&J.Wj.push(OlQ(J.W[I].type)))}); $wQ(this,",");id(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.u.error=function(W,J,K,I){this.Iu()||(this.publish("licenseerror",W,J,K,I),W==="drm.provision"&&(W=(Date.now()-this.S)/1E3,this.S=NaN,this.publish("ctmp","provf",{et:W.toFixed(3)})));OS(J)&&this.dispose()}; g.u.shouldRetry=function(W,J){return!W&&this.requestNumber===J.requestNumber}; g.u.lO=function(){this.W={};g.Ao.prototype.lO.call(this)}; g.u.RZ=function(){var W={ctype:this.N.contentType||"",length:this.N.initData.length,requestedKeyIds:this.G8,cryptoPeriodIndex:this.cryptoPeriodIndex};this.G&&(W.keyStatuses=this.W);return W}; g.u.getInfo=function(){var W=this.T.join();if(J8(this)){var J=new Set,K;for(K in this.W)this.W[K].status!=="usable"&&J.add(this.W[K].type);W+="/UKS."+Array.from(J)}return W+="/"+this.cryptoPeriodIndex}; g.u.xm=function(){return this.url};g.N(IL,g.R);g.u=IL.prototype;g.u.uL=function(W){if(this.j){var J=W.messageType||"license-request";this.j(new Uint8Array(W.message),J)}}; g.u.OJ=function(){this.Z&&this.Z(this.W.keyStatuses)}; g.u.onClosed=function(){this.Iu()||g.ov("xboxone")&&this.G&&this.G("closedShouldNotRetry")}; g.u.f2=function(W){this.j&&this.j(W.message,"license-request")}; g.u.C2=function(W){if(this.G){if(this.K){var J=this.K.error.code;W=this.K.error.systemCode}else J=W.errorCode,W=W.systemCode;this.G("t.prefixedKeyError;c."+J+";sc."+W,J,W)}}; g.u.eG=function(){this.S&&this.S()}; g.u.update=function(W){var J=this;if(this.W)return this.W.update(W).then(null,Ol(function(K){mLc(J,"t.update",K)})); this.K?this.K.update(W):this.element.addKey?this.element.addKey(this.N.keySystem,W,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.keySystem,W,this.initData,this.sessionId);return T_()}; g.u.lO=function(){this.W&&(this.C?this.W.close().catch(g.ET):this.W.close());this.element=null;g.R.prototype.lO.call(this)};g.N(qA,g.R);g.u=qA.prototype;g.u.setServerCertificate=function(){return this.K.setServerCertificate?this.W.flavor==="widevine"&&this.W.Rm?this.K.setServerCertificate(this.W.Rm):Yi(this.W)&&this.W.FW?this.K.setServerCertificate(this.W.FW):null:null}; g.u.createSession=function(W,J){var K=W.initData;if(this.W.keySystemAccess){J&&J("createsession");var I=this.K.createSession();vC(this.W)?K=LtH(K,this.W.FW):Yi(this.W)&&(K=AYD(K)||new Uint8Array(0));J&&J("genreq");W=I.generateRequest(W.contentType,K);var q=new IL(null,null,null,I,null,this.Z);W.then(function(){J&&J("genreqsuccess")},Ol(function(p){mLc(q,"t.generateRequest",p)})); return q}if(Ls(this.W))return zSc(this,K);if(zs(this.W))return kZQ(this,K);if((I=this.element)==null?0:I.generateKeyRequest)this.element.generateKeyRequest(this.W.keySystem,K);else{var S;(S=this.element)==null||S.webkitGenerateKeyRequest(this.W.keySystem,K)}return this.T=new IL(this.element,this.W,K,null,null,this.Z)}; g.u.K6=function(W){var J=vDy(this,W);J&&J.f2(W)}; g.u.P0=function(W){var J=vDy(this,W);J&&J.C2(W)}; g.u.W0=function(W){var J=vDy(this,W);J&&J.eG(W)}; g.u.getMetrics=function(){if(this.K&&this.K.getMetrics)try{var W=this.K.getMetrics()}catch(J){}return W}; g.u.lO=function(){this.G=this.K=null;var W;(W=this.T)==null||W.dispose();W=g.d(Object.values(this.S));for(var J=W.next();!J.done;J=W.next())J.value.dispose();this.S={};g.R.prototype.lO.call(this);delete this.element};g.u=Sk.prototype;g.u.get=function(W){W=this.findIndex(W);return W!==-1?this.values[W]:null}; g.u.remove=function(W){W=this.findIndex(W);W!==-1&&(this.keys.splice(W,1),this.values.splice(W,1))}; g.u.removeAll=function(){this.keys=[];this.values=[]}; g.u.set=function(W,J){var K=this.findIndex(W);K!==-1?this.values[K]=J:(this.keys.push(W),this.values.push(J))}; g.u.findIndex=function(W){return g.Fe(this.keys,function(J){return g.HR(W,J)})};g.N(ceA,g.Ao);g.u=ceA.prototype;g.u.zQh=function(W){this.l2({onecpt:1});W.initData&&WzA(this,new Uint8Array(W.initData),W.initDataType)}; g.u.aHZ=function(W){this.l2({onndky:1});WzA(this,W.initData,W.contentType)}; g.u.U4=function(W){this.l2({onneedkeyinfo:1});this.Ru.Y("html5_eme_loader_sync")&&(this.Z.get(W.initData)||this.Z.set(W.initData,W));XGQ(this,W)}; g.u.BI=function(W){this.G.push(W);pb(this)}; g.u.createSession=function(W){var J=J40(this)?yRy(W):g.IB(W.initData);this.K.get(J);this.XW=!0;W=new ufQ(this.videoData,this.Ru,W,this.drmSessionId);this.K.set(J,W);W.subscribe("ctmp",this.mT,this);W.subscribe("keystatuseschange",this.OJ,this);W.subscribe("licenseerror",this.CH,this);W.subscribe("newlicense",this.L2,this);W.subscribe("newsession",this.zi,this);W.subscribe("sessionready",this.Tc,this);W.subscribe("fairplay_next_need_key_info",this.bQ,this);this.Ru.Y("html5_enable_vp9_fairplay")&&W.subscribe("qualitychange", this.CT,this);W.subscribe("sabrlicenseconstraint",this.Nb8,this);UwA(W,this.T)}; g.u.L2=function(W){this.Iu()||(this.l2({onnelcswhb:1}),W&&!this.heartbeatParams&&(this.heartbeatParams=W,this.publish("heartbeatparams",W)))}; g.u.zi=function(){this.Iu()||(this.l2({newlcssn:1}),this.G.shift(),this.XW=!1,pb(this))}; g.u.Tc=function(){if(Ls(this.W)&&(this.l2({onsnrdy:1}),this.SZ--,this.SZ===0)){var W=this.PS,J,K;(J=W.element)==null||(K=J.msSetMediaKeys)==null||K.call(J,W.G)}}; g.u.OJ=function(W){if(!this.Iu()){!this.jZ&&this.videoData.Y("html5_log_drm_metrics_on_key_statuses")&&(Kzy(this),this.jZ=!0);this.l2({onksch:1});var J=this.CT;if(!J8(W)&&g.vM&&W.K.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var K="large";else{K=[];var I=!0;if(J8(W))for(var q=g.d(Object.keys(W.W)),S=q.next();!S.done;S=q.next())S=S.value,W.W[S].status==="usable"&&K.push(W.W[S].type),W.W[S].status!=="unknown"&&(I=!1);if(!J8(W)||I)K=W.T;K=G5L(K)}J.call(this,K);this.publish("keystatuseschange", W)}}; g.u.mT=function(W,J){this.Iu()||this.publish("ctmp",W,J)}; g.u.bQ=function(W,J){this.Iu()||this.publish("fairplay_next_need_key_info",W,J)}; g.u.CH=function(W,J,K,I){this.Iu()||(this.videoData.Y("html5_log_drm_metrics_on_error")&&Kzy(this),this.publish("licenseerror",W,J,K,I))}; g.u.mW=function(){return this.N}; g.u.CT=function(W){var J=g.td("auto",W,!1,"l");if(this.videoData.zB){if(this.N.equals(J))return}else if(XjD(this.N,W))return;this.N=J;this.publish("qualitychange");this.l2({updtlq:W})}; g.u.Nb8=function(W){this.videoData.sabrLicenseConstraint=W}; g.u.lO=function(){this.W.keySystemAccess&&this.element&&(this.G8?this.element.setMediaKeys(null).catch(g.ET):this.element.setMediaKeys(null));this.element=null;this.G=[];for(var W=g.d(this.K.values()),J=W.next();!J.done;J=W.next())J=J.value,J.unsubscribe("ctmp",this.mT,this),J.unsubscribe("keystatuseschange",this.OJ,this),J.unsubscribe("licenseerror",this.CH,this),J.unsubscribe("newlicense",this.L2,this),J.unsubscribe("newsession",this.zi,this),J.unsubscribe("sessionready",this.Tc,this),J.unsubscribe("fairplay_next_need_key_info", this.bQ,this),this.Ru.Y("html5_enable_vp9_fairplay")&&J.unsubscribe("qualitychange",this.CT,this),J.dispose();this.K.clear();this.S.removeAll();this.Z.removeAll();this.heartbeatParams=null;g.Ao.prototype.lO.call(this)}; g.u.RZ=function(){for(var W={systemInfo:this.W.RZ(),sessions:[]},J=g.d(this.K.values()),K=J.next();!K.done;K=J.next())W.sessions.push(K.value.RZ());return W}; g.u.getInfo=function(){return this.K.size<=0?"no session":""+this.K.values().next().value.getInfo()+(this.j?"/KR":"")}; g.u.l2=function(W,J){J=J===void 0?!1:J;this.Iu()||($m(W),(this.Ru.ND()||J)&&this.publish("ctmp","drmlog",W))};g.N(lxQ,g.R);g.u=lxQ.prototype;g.u.dW=function(){return!!this.j6}; g.u.V8=function(){return this.K}; g.u.handleError=function(W){var J=this;hZ0(this,W);if((W.errorCode!=="html5.invalidstate"&&W.errorCode!=="fmt.unplayable"&&W.errorCode!=="fmt.unparseable"||!fxL(this,W.errorCode,W.details))&&!uR0(this,W)){if(this.QK.PS!=="yt"&&Fz0(this,W)&&this.videoData.V_&&(0,g.L)()/1E3>this.videoData.V_&&this.QK.PS==="hm"){var K=Object.assign({e:W.errorCode},W.details);K.stalesigexp="1";K.expire=this.videoData.V_;K.init=this.videoData.SQ/1E3;K.now=(0,g.L)()/1E3;K.systelapsed=((0,g.L)()-this.videoData.SQ)/1E3;W= new xm(W.errorCode,K,2);this.uO.Za(W.errorCode,2,"SIGNATURE_EXPIRED",$m(W.details))}if(OS(W.severity)){var I;K=(I=this.uO.loader)==null?void 0:I.W.W;if(this.QK.Y("html5_use_network_error_code_enums"))if(tzv(W)&&K&&K.isLocked())var q="FORMAT_UNAVAILABLE";else if(this.QK.S||W.errorCode!=="auth"||W.details.rc!==429)W.errorCode==="ump.spsrejectfailure"&&(q="HTML5_SPS_UMP_STATUS_REJECTED");else{q="TOO_MANY_REQUESTS";var S="6"}else tzv(W)&&K&&K.isLocked()?q="FORMAT_UNAVAILABLE":this.QK.S||W.errorCode!== "auth"||W.details.rc!=="429"?W.errorCode==="ump.spsrejectfailure"&&(q="HTML5_SPS_UMP_STATUS_REJECTED"):(q="TOO_MANY_REQUESTS",S="6");this.uO.Za(W.errorCode,W.severity,q,$m(W.details),S)}else this.uO.publish("nonfatalerror",W),I=/^pp/.test(this.videoData.clientPlaybackNonce),this.Uk(W.errorCode,W.details),I&&W.errorCode==="manifest.net.connect"&&(W="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.L)(),Mh(W,"manifest",function(p){J.S=!0;J.WS("pathprobe",p)}, function(p){J.Uk(p.errorCode,p.details)}))}}; g.u.WS=function(W,J){this.uO.rl().WS(W,J)}; g.u.Uk=function(W,J){J=$m(J);this.uO.rl().Uk(W,J)};ld.prototype.LJ=function(W,J){return(J===void 0?0:J)?{mG:W?A8(this,W):k5,k5:W?GEc(this,W):k5,nAO:W?MzT(this,W):k5,zIN:W?VzX(this,W.videoData):k5,K5:W?ESQ(this,W.videoData,W):k5,URS:W?CUc(this,W):k5,ftS:ZkA(this)}:{mG:W?A8(this,W):k5}}; ld.prototype.Jd=function(W){var J;g.Ee(this.Ru)&&(J=window.screen&&window.screen.width?new g.Vt(window.screen.width,window.screen.height):null);J||(J=this.Ru.uV?this.Ru.uV.clone():this.Id.lD());(c7||KT||W)&&J.scale(g.Pw());return J}; ld.prototype.Y=function(W){return this.Ru.Y(W)};g.N(Dl,g.R);Dl.prototype.onError=function(W){if(W!=="player.fatalexception"||this.provider.Y("html5_exception_to_health"))W==="sabr.fallback"&&(this.encounteredSabrFallback=!0),W.match(XoT)?this.networkErrorCount++:this.nonNetworkErrorCount++}; Dl.prototype.send=function(){if(!(this.G||this.W<0)){bkT(this);var W=g.YS(this.provider)-this.W,J="PLAYER_PLAYBACK_STATE_UNKNOWN",K=this.playerState.tS;this.playerState.isError()?J=K&&K.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.z(this.playerState,2)?J="PLAYER_PLAYBACK_STATE_ENDED":g.z(this.playerState,64)?J="PLAYER_PLAYBACK_STATE_UNSTARTED":g.z(this.playerState,16)||g.z(this.playerState,32)?J="PLAYER_PLAYBACK_STATE_SEEKING":g.z(this.playerState,1)&&g.z(this.playerState, 4)?J="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.z(this.playerState,1)?J="PLAYER_PLAYBACK_STATE_BUFFERING":g.z(this.playerState,4)?J="PLAYER_PLAYBACK_STATE_PAUSED":g.z(this.playerState,8)&&(J="PLAYER_PLAYBACK_STATE_PLAYING");K=mOx[ZP(this.provider.videoData)];a:switch(this.provider.Ru.playerCanaryState){case "canary":var I="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":I="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:I="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var q=BYI(this.provider), S=this.K<0?W:this.K-this.W;W=this.provider.Ru.wB+36E5<(0,g.L)();J={started:this.K>=0,stateAtSend:J,joinLatencySecs:S,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:I,playerCanaryStage:q,isAd:this.provider.videoData.isAd(),liveMode:K,hasDrm:!!g.yM(this.provider.videoData),isGapless:this.provider.videoData.N,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:nK(this.provider.videoData)};W||g.AF("html5PlayerHealthEvent",J);this.G=!0;this.dispose()}}; Dl.prototype.lO=function(){this.G||this.send();window.removeEventListener("error",this.ZN);window.removeEventListener("unhandledrejection",this.ZN);g.R.prototype.lO.call(this)}; var XoT=/\bnet\b/;g.N(r4c,g.R);r4c.prototype.lO=function(){LzI(this);g.R.prototype.lO.call(this)};var kET=/[?&]cpn=/;g.N(jk,g.R);jk.prototype.flush=function(){var W={};this.K&&(W.pe=this.K);this.W.length>0&&(W.pt=this.W.join("."));this.W=[];return W}; jk.prototype.stop=function(){var W=this,J,K,I;return g.V(function(q){if(q.K==1)return g.yQ(q,2),g.O(q,(J=W.T)==null?void 0:J.stop(),4);if(q.K!=2)return(K=q.W)&&W.logTrace(K),g.Cv(q,0);I=g.g0(q);W.K=XBH(I.message);g.d0(q)})}; jk.prototype.logTrace=function(W){this.encoder.reset();this.encoder.add(1);this.encoder.add(W.resources.length);for(var J=g.d(W.resources),K=J.next();!K.done;K=J.next()){K=K.value.replace("https://www.youtube.com/s/","");this.encoder.add(K.length);for(var I=0;I=0?W:g.YS(this.provider),this.XW?WhR.has(this.IB)&&(this.W.size||(this.IB==="PL"?W>=this.K+30:W<=this.G8+30||W>=this.K+1200&&W<=this.G8+86400))&&(g.t8(this,W,"vps",[this.IB]),this.K=W):["PL","B","S"].indexOf(this.IB)>-1&&(this.W.size||W>=this.K+30)&&(g.t8(this,W,"vps",[this.IB]),this.K=W),this.W.size)){this.sequenceNumber===7E3&&g.ET(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){ud(this,W);var J=this.provider.uO.zX(); J=g.d(J);for(var K=J.next();!K.done;K=J.next())K=K.value,this.WS(K.key,K.value);J=W;K=this.provider.uO.LM();var I=K.droppedVideoFrames||0,q=K.totalVideoFrames||0,S=I-this.H2,p=q&&!this.F9;I>K.totalVideoFrames||S>5E3?jLQ(this,"html5.badframedropcount","df."+I+";tf."+K.totalVideoFrames):(S>0||p)&&g.t8(this,J,"df",[S]);this.H2=I;this.F9=q;this.C>0&&(g.t8(this,W,"glf",[this.C]),this.C=0);nV.isActive()&&(W=nV.FE(),Object.keys(W).length>0&&this.WS("profile",W));this.qD&&NA(this,"lwnmow");this.provider.Ru.ND()&& this.provider.Y("html5_record_now")&&this.WS("now",{wt:(0,g.L)()});W={};this.provider.videoData.K&&(W.fmt=this.provider.videoData.K.itag,(J=this.provider.videoData.T)&&J.itag!==W.fmt&&(W.afmt=J.itag));W.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(W.adcpn=this.adCpn);this.Vz&&(W.addocid=this.Vz);this.contentCpn&&(W.ccpn=this.contentCpn);this.sI&&(W.cdocid=this.sI);this.provider.videoData.cotn&&(W.cotn=this.provider.videoData.cotn);W.el=e7(this.provider.videoData);W.content_v=bE(this.provider.videoData); W.ns=this.provider.Ru.PS;W.fexp=xe0(this.provider.Ru.experiments).toString();W.cl=(752536569).toString();(J=this.provider.videoData.adFormat||this.adFormat)&&(W.adformat=J);(J=ZP(this.provider.videoData))&&(W.live=J);this.provider.videoData.pQ()&&(W.drm=1,this.provider.videoData.j&&(W.drm_system=BMR[this.provider.videoData.j.flavor]||0),this.provider.videoData.drmProduct&&(W.drm_product=this.provider.videoData.drmProduct));nz()&&this.provider.videoData.S&&(W.ctt=this.provider.videoData.S,W.cttype= this.provider.videoData.L_,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.XC&&(W.dai_fallback="1")):this.provider.videoData.Jp?W.dai="cs":this.provider.videoData.uX&&(W.dai="disabled");W.seq=this.sequenceNumber++;if(this.provider.videoData.DG){if(J=this.provider.videoData.DG,W&&J)for(J.ns==="3pp"&&(W.ns="3pp"),this.yr.has(J.ns)&& NA(this,"hbps"),J.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=J.shbpslc),this.provider.Ru.experiments.HS("html5_use_server_qoe_el_value")&&this.eZ.delete("el"),K=g.d(Object.keys(J)),I=K.next();!I.done;I=K.next())I=I.value,this.eZ.has(I)||(W[I]=J[I])}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.Ru.W);if(J=W.seq)J={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+J,serializedWatchEndpointLoggingContext:this.provider.videoData.Rah},this.serializedHouseBrandPlayerServiceLoggingContext&&(J.serializedHouseBrandPlayerServiceLoggingContext=SB(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(J.playerResponseCpn=this.provider.videoData.playerResponseCpn),h8.length&&(J.decoderInfo=h8),this.provider.uO.La()&&(J.transitionStitchType=4,this.vS&&(J.timestampOffsetMsecs=this.vS)),this.remoteControlMode&& (J.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(J.remoteConnectedDevices=this.remoteConnectedDevices),J=g.XO(J,Q3y),J=g.IB(J,4),this.W.set("qclc",[J]);W=g.Vw("//"+this.provider.Ru.Wg+"/api/stats/qoe",W);K=J="";I=g.d(this.W.entries());for(q=I.next();!q.done;q=I.next())S=g.d(q.value),q=S.next().value,S=S.next().value,p=void 0,(p=S)!=null&&p.join&&(q="&"+q+"="+S.join(","),q.length>100?K+=q:J+=q);ll0(this,W+J,K.replace(/ /g,"%20"))}this.W.clear()}}; g.u.M4=function(W){this.qD=W}; g.u.yb=function(){if(this.provider.videoData.j){var W=this.provider.videoData.j;NA(this,"eme-"+(W.keySystemAccess?"final":Ls(W)?"ms":vC(W)?"ytfp":zs(W)?"safarifp":"nonfinal"))}}; g.u.Dc=iD(59);g.u.o5=function(W){this.isEmbargoed=W}; g.u.WP=iD(36);g.u.by=iD(42);g.u.onPlaybackRateChange=function(W){var J=g.YS(this.provider);W&&W!==this.nk&&(g.t8(this,J,"rate",[W]),this.nk=W);this.XW||this.reportStats(J)}; g.u.qn=iD(30);g.u.getPlayerState=function(W){if(g.z(W,128))return"ER";if(g.z(W,2048))return"B";if(g.z(W,512))return"SU";if(g.z(W,16)||g.z(W,32))return"S";if(W.isOrWillBePlaying()&&g.z(W,64))return"B";var J=irl[Fg(W)];g.$w(this.provider.Ru)&&J==="B"&&this.provider.uO.getVisibilityState()===3&&(J="SU");J==="B"&&g.z(W,4)&&(J="PB");return J}; g.u.lO=function(){g.R.prototype.lO.call(this);g.NU(this.S);g.NU(this.Fz)}; g.u.y5=function(W){this.isOffline=W;g.t8(this,g.YS(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.u.WS=function(W,J,K){var I=this.Lk.indexOf(W)!==-1;I||this.Lk.push(W);if(!K||!I){var q=typeof J!=="string"?$m(J):J;q=hTX(q);if(!K&&!/^t[.]/.test(q)){var S=g.YS(this.provider)*1E3;q="t."+S.toFixed()+";"+q}aL(this,"ctmp",W+":"+q);this.logger.debug(function(){return"ctmp "+W+" "+q}); nNc(this);return S}}; g.u.JJ=function(W,J,K){this.j={MFO:Number(this.WS("glrem",{nst:W.toFixed(),rem:J.toFixed(),ca:+K})),Oh:W,CNO:J,isAd:K}}; g.u.Hh=function(W,J,K){g.t8(this,g.YS(this.provider),"ad_playback",[W,J,K])}; g.u.bW=function(W,J){var K=g.YS(this.provider)*1E3;aL(this,"daism","t."+K.toFixed(0)+";smw."+(W*1E3).toFixed(0)+";smo."+(J*1E3).toFixed(0))}; g.u.resume=function(){var W=this;this.provider.Ru.ND()&&this.WS("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.S)?A8Q(this):this.S=g.av(function(){W.reportStats()},1E4)}; var NP={},irl=(NP[5]="N",NP[-1]="N",NP[3]="B",NP[0]="EN",NP[2]="PA",NP[1]="PL",NP[-1E3]="ER",NP[1E3]="N",NP),WhR=new Set(["PL","B","S"]),h8=[];Zl.prototype.KN=function(){return this.W}; Zl.prototype.update=function(){if(this.Z){var W=this.ac()||0,J=g.YS(this.provider);W>=this.provider.uO.getDuration()-.1&&(this.previouslyEnded=!0);if(W!==this.W||NwQ(this,W,J)){var K;if(!(K=WJ-this.aM+2||NwQ(this,W,J))){K=this.provider.uO.getVolume();var I=K!==this.C,q=this.provider.uO.isMuted()?1:0;q!==this.N?(this.N=q,K=!0):(!I||this.T>=0||(this.C=K,this.T=J),K=J-this.T,this.T>=0&&K>2?(this.T=-1,K=!0):K=!1)}K&&(QU(this),this.G=W);this.aM=J;this.W=W}}}; Zl.prototype.ac=function(){var W=this.provider.uO.ac();return this.provider.Ru.Y("html5_disable_live_dvr_shrink_for_cdm_vss")&&rP(this.provider.videoData)?W+this.provider.uO.nE():W};dAL.prototype.send=function(W){var J=this;if(!this.bO){var K=UAL(this),I=g.Vw(this.uri,K);this.Ru.Y("vss_through_gel_double")&&ZbL(I);this.XW&&!this.Ru.Y("html5_simplify_pings")?gN0(this,I):y8H(this,W).then(function(q){J.XW&&(q=q||{},q.method="POST",q.postParams={atr:J.attestationResponse});s2H(I,q,{token:J.sI,mI:J.sT,mdxEnvironment:J.mdxEnvironment},J.Ru,W,J.vS,J.isFinal&&J.hh||J.jZ||J.G&&J.wB)}); this.bO=!0}}; dAL.prototype.K=function(W){W===void 0&&(W=NaN);return Number(W.toFixed(3)).toString()}; var d6={},wrX=(d6.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,d6.LIVING_ROOM_APP_MODE_MAIN=1,d6.LIVING_ROOM_APP_MODE_KIDS=2,d6.LIVING_ROOM_APP_MODE_MUSIC=3,d6.LIVING_ROOM_APP_MODE_UNPLUGGED=4,d6.LIVING_ROOM_APP_MODE_GAMING=5,d6),yJ={},CdQ=(yJ.EMBEDDED_PLAYER_MODE_UNKNOWN=0,yJ.EMBEDDED_PLAYER_MODE_DEFAULT=1,yJ.EMBEDDED_PLAYER_MODE_PFP=2,yJ.EMBEDDED_PLAYER_MODE_PFL=3,yJ);g.N(ww,g.R);g.u=ww.prototype;g.u.oo=function(){this.W.update();eTL(this)&&(xAT(this),Oby(this),this.qg())}; g.u.lO=function(){g.R.prototype.lO.call(this);Gr(this);alD(this.W)}; g.u.RZ=function(){return UAL(MA(this,"playback"))}; g.u.qg=function(){this.provider.videoData.Z.eventLabel=e7(this.provider.videoData);this.provider.videoData.Z.playerStyle=this.provider.Ru.playerStyle;this.provider.videoData.zP&&(this.provider.videoData.Z.feature="pyv");this.provider.videoData.Z.vid=this.provider.videoData.videoId;var W=this.provider.videoData.Z;var J=this.provider.videoData;J=J.isAd()||!!J.zP;W.isAd=J}; g.u.Xj=function(W){var J=MA(this,"engage");J.G8=W;return QLT(J,oNI(this.provider))};r8v.prototype.isEmpty=function(){return this.endTime===this.startTime};xN.prototype.Y=function(W){return this.Ru.Y(W)}; xN.prototype.getCurrentTime=function(){if(g.c8(this.videoData)){var W=this.uO.La();if(W){var J=this.uO.getCurrentTime(),K;W=(((K=DpA(W,J*1E3))==null?void 0:K.YU)||0)/1E3;return J-W}}return this.uO.getCurrentTime()}; xN.prototype.ac=function(){if(g.c8(this.videoData)){var W=this.uO.La();if(W){var J=this.uO.ac(),K;W=(((K=DpA(W,J*1E3))==null?void 0:K.YU)||0)/1E3;return J-W}}return this.uO.ac()}; var LPH={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.N(g.Ob,g.R);g.u=g.Ob.prototype;g.u.oo=function(){if(this.provider.videoData.enableServerStitchedDai&&this.b1){var W;(W=this.G.get(this.b1))==null||W.oo()}else this.W&&this.W.oo()}; g.u.o5=function(W){this.qoe&&this.qoe.o5(W)}; g.u.WP=iD(35);g.u.by=iD(41);g.u.bW=function(W,J){this.qoe&&this.qoe.bW(W,J)}; g.u.YV=function(){if(this.provider.videoData.enableServerStitchedDai&&this.b1){var W;(W=this.G.get(this.b1))!=null&&QU(W.W)}else this.W&&QU(this.W.W)}; g.u.Uk=function(W,J){this.qoe&&jLQ(this.qoe,W,J);if(this.K)this.K.onError(W)}; g.u.onPlaybackRateChange=function(W){if(this.qoe)this.qoe.onPlaybackRateChange(W);this.W&&QU(this.W.W)}; g.u.Dc=iD(58);g.u.WS=function(W,J,K){this.qoe&&this.qoe.WS(W,J,K)}; g.u.JJ=function(W,J,K){this.qoe&&this.qoe.JJ(W,J,K)}; g.u.TR=function(W){var J;(J=this.qoe)==null||J.TR(W)}; g.u.No=function(W){var J;(J=this.qoe)==null||J.No(W)}; g.u.M4=function(W){this.qoe&&this.qoe.M4(W)}; g.u.Hh=function(W,J,K){this.qoe&&this.qoe.Hh(W,J,K)}; g.u.qn=iD(29);g.u.hB=function(){if(this.qoe)return this.qoe.hB()}; g.u.RZ=function(){if(this.provider.videoData.enableServerStitchedDai&&this.b1){var W,J;return(J=(W=this.G.get(this.b1))==null?void 0:W.RZ())!=null?J:{}}return this.W?this.W.RZ():{}}; g.u.kP=function(){var W;return(W=this.qoe)==null?void 0:W.kP()}; g.u.RD=function(W,J){var K;(K=this.qoe)==null||K.RD(W,J)}; g.u.Xj=function(W){return this.W?this.W.Xj(W):function(){}}; g.u.qg=function(){this.W&&this.W.qg()}; g.u.getVideoData=function(){return this.provider.videoData}; g.u.resume=function(){this.qoe&&this.qoe.resume()};g.N(VU,g.R); VU.prototype.sZ=function(W,J,K){if(this.W.has(W)){var I=this.W.get(W);if(J.videoId&&!krH(I))this.K.WS("ssap",{rlc:W}),J7I(this,W);else return}if(!this.W.has(W)){I=new xN(J,this.Ru,this.uO);var q=Math.round(Tr(this.K)*1E3);I=new g.Ob(I,q);krH(I)||this.K.WS("nqv",{vv:J.videoId});q=this.K.getVideoData();this.W.set(W,I);if(I.qoe){var S=I.qoe,p=q.videoId||"";S.contentCpn=q.clientPlaybackNonce;S.sI=p}zTQ(I);K===2&&(this.Ru.Y("html5_log_ad_playback_docid")?(K=this.K,K.qoe&&(K=K.qoe,I=J.oG||"",q=J.breakType|| 0,J=J.videoId||"",S=this.Ru.PS||"yt",g.t8(K,g.YS(K.provider),"ad_playback",[W,I,q,J,S]))):this.K.Hh(W,J.oG||"",J.breakType||0))}}; VU.prototype.P8=function(W,J,K,I,q,S,p,n){if(W!==J){var A=this.rl(W),D=this.rl(J),f,h=W===((f=A.getVideoData())==null?void 0:f.clientPlaybackNonce),t;f=J===((t=D.getVideoData())==null?void 0:t.clientPlaybackNonce);var F;t=h?((F=A.getVideoData())==null?void 0:F.videoId)||"":"nvd";var a;F=f?((a=D.getVideoData())==null?void 0:a.videoId)||"":"nvd";h&&(A=A.qoe)!=null&&(yU(A,4,S?4:q?2:0,J,F,K),A.reportStats());f&&(Hr(D),(J=D.qoe)!=null&&(yU(J,4,S?5:q?3:1,W,t,I),J.reportStats()),sLA(D,new g.Fb(p,D.IB)), vNv(D));n&&J7I(this,W)}}; VU.prototype.rl=function(W){W=W||this.b1;return this.W.get(W)||this.K};g.N(g.Eb,g.R);g.u=g.Eb.prototype; g.u.qk=function(W,J){this.sync();J&&this.W.array.length>=2E3&&this.FU("captions",1E4);J=this.W;if(W.length>1&&W.length>J.array.length)J.array=J.array.concat(W),J.array.sort(J.W);else for(var K=g.d(W),I=K.next();!I.done;I=K.next())I=I.value,!J.array.length||J.W(I,J.array[J.array.length-1])>0?J.array.push(I):g.E$(J.array,I,J.W);W=g.d(W);for(J=W.next();!J.done;J=W.next())J=J.value,J.namespace==="ad"&&this.j("ssap",{acrsid:J.getId(),acrsst:J.start,acrset:J.end,acrscpt:J.playerType});this.G=NaN;this.sync()}; g.u.pA=function(W){W.length>1E4&&g.ET(new g.vd("Over 10k cueRanges removal occurs with a sample: ",W[0]));if(!this.Iu()){for(var J=g.d(W),K=J.next();!K.done;K=J.next())(K=K.value)&&K.namespace==="ad"&&this.j("ssap",{rcrid:K.getId(),rcst:K.start,rcet:K.end,rcpt:K.playerType});var I=new Set(W);this.K=this.K.filter(function(q){return!I.has(q)}); nxI(this.W,I);this.sync()}}; g.u.FU=function(W,J){var K=(isNaN(this.G)?g.z(this.uO.getPlayerState(),2)?0x8000000000000:this.uO.getCurrentTime()*1E3:this.G)-J;J=this.P$().filter(function(I){return I.namespace===W&&I.endthis.W,S=g.z(K,8)&&g.z(K,16),p=this.uO.Ii().isBackground()||K.isSuspended();zr(this,this.bO,S&&!p,q,"qoe.slowseek",function(){},"timeout"); var n=isFinite(this.W);n=S&&n&&HiH(J,this.W);var A=!I||Math.abs(I-this.W)>10,D=this.Ru.Y("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),f=I===0&&this.K&&[11,10].includes(this.K);zr(this,this.Js,n&&A&&!p&&(!D||!f),q,"qoe.slowseek",function(){J.seekTo(W.W)},"set_cmt"); A=n&&fD(J.qR(),this.W);var h=this.uO.loader;n=!h||h.Ps();var t=function(){J.seekTo(W.W+.001)}; zr(this,this.SZ,A&&n&&!p,q,"qoe.slowseek",t,"jiggle_cmt");n=function(){return W.uO.GY()}; zr(this,this.OI,A&&!p,q,"qoe.slowseek",n,"new_elem");A=tO(K);D=K.isBuffering();var F=J.qR(),a=jH(F,I),y=a>=0&&F.end(a)>I+5,U=A&&D&&y;f=this.uO.getVideoData();zr(this,this.Y3,I<.002&&this.W<.002&&S&&g.$w(this.Ru)&&g.Re(f)&&!p,q,"qoe.slowseek",n,"slow_seek_shorts");zr(this,this.C,f.bD()&&S&&!p&&!f.XW,q,"qoe.slowseek",n,"slow_seek_gapless_shorts");zr(this,this.sI,U&&!p,A&&!D,"qoe.longrebuffer",t,"jiggle_cmt");zr(this,this.G8,U&&!p,A&&!D,"qoe.longrebuffer",n,"new_elem_nnr");if(h){var Q=h.getCurrentTime(); S=J.pX();S=ZiD(S,Q);S=!h.isSeeking()&&I===S;zr(this,this.Tx,A&&D&&S&&!p,A&&!D&&!S,"qoe.longrebuffer",function(){J.seekTo(Q)},"seek_to_loader")}S={}; t=jH(F,Math.max(I-3.5,0));U=t>=0&&I>F.end(t)-1.1;var C=t>=0&&t+1=0&&U&&C<11;S.close2edge=U;S.gapsize=C;S.buflen=F.length;this.K&&(S.seekSour=this.K);zr(this,this.XW,A&&D&&!p,A&&!D,"qoe.longrebuffer",function(){},"timeout",S); S=K.isSuspended();S=this.uO.bV()&&!S;zr(this,this.Z,S,!S,"qoe.start15s",function(){W.uO.sM("ad")},"ads_preroll_timeout"); S=this.Ru.experiments.HS("html5_use_playback_rate_in_skip_slow_ad")?this.uO.getPlaybackRate()*1E3:1E3;a=I-this.T5;zr(this,this.FW,g.Re(f)&&h,A&&!D,"qoe.longrebuffer",function(){W.uO.gH()},"reset_media_source"); zr(this,this.D0,g.Re(f)&&h,A&&!D,"qoe.longrebuffer",n,"reset_media_element");this.T===0&&(this.S=I);h=D&&this.W===0&&I>1&&I===this.S;zr(this,this.jZ,g.Re(f)&&h,A&&!D,"qoe.slowseek",function(){J.seekTo(0)},"reseek_after_time_jump"); p=K.isOrWillBePlaying()&&!p;y=this.uO.DX()-I<6&&!y&&this.uO.Kz();zr(this,this.N,f.bD()&&p&&D&&y,A&&!D,"qoe.longrebuffer",function(){W.uO.GY(!1,!0)},"handoff_end_long_buffer_reload"); K=S7(f)&&this.K===104&&p&&(D||g.z(K,8)&&g.z(K,16));zr(this,this.PS,K,q,"qoe.start15s",n,"gapless_slow_start");this.T=I;this.j.start()}}; kN.prototype.Uk=function(W,J,K){J=this.RZ(J);J.wn=K;J.wdup=this.G[W]?"1":"0";this.uO.Uk(new xm(W,J));this.G[W]=!0}; kN.prototype.RZ=function(W){W=Object.assign(this.uO.RZ(!0),W.RZ());this.W&&(W.stt=this.W.toFixed(3));this.uO.getVideoData().isLivePlayback&&(W.ct=this.uO.getCurrentTime().toFixed(3),W.to=this.uO.nE().toFixed(3));delete W.uga;delete W.euri;delete W.referrer;delete W.fexp;delete W.vm;return W}; oL.prototype.reset=function(){this.W=this.K=this.G=this.startTimestamp=0;this.T=!1}; oL.prototype.test=function(W){if(!this.j||this.K)return!1;if(!W)return this.reset(),!1;W=(0,g.L)();if(!this.startTimestamp)this.startTimestamp=W,this.G=0;else if(this.G>=this.j)return this.K=W,!0;this.G+=1;return!1}; oL.prototype.RZ=function(){var W={},J=(0,g.L)();this.startTimestamp&&(W.wsd=(J-this.startTimestamp).toFixed());this.K&&(W.wtd=(J-this.K).toFixed());this.W&&(W.wssd=(J-this.W).toFixed());return W};g.N(GKv,g.R);g.u=GKv.prototype;g.u.setMediaElement=function(W){(this.mediaElement=W)?(this.mediaElement&&(this.j||this.G||!this.mediaElement.Oq()||this.seekTo(.01,{cN:"seektimeline_setupMediaElement"})),vr(this)):sb(this)}; g.u.getCurrentTime=function(){if(YN(this.uO)){if(!isNaN(this.K))return this.K}else if(!isNaN(this.K)&&isFinite(this.K))return this.K;return this.mediaElement&&oxL(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.G||0}; g.u.yM=function(){return this.bO}; g.u.ac=function(){return this.getCurrentTime()-this.nE()}; g.u.vY=function(){return this.W?this.W.vY():Infinity}; g.u.isAtLiveHead=function(W){if(!this.W)return!1;W===void 0&&(W=this.getCurrentTime());return mP(this.W,W)}; g.u.TW=function(){return!!this.W&&this.W.TW()}; g.u.seekTo=function(W,J){var K=J===void 0?{}:J;J=K.He===void 0?!1:K.He;var I=K.eT===void 0?0:K.eT;var q=K.CX===void 0?!1:K.CX;var S=K.oK===void 0?0:K.oK;var p=K.cN===void 0?"":K.cN;var n=K.seekSource===void 0?void 0:K.seekSource;var A=K.TZ===void 0?!1:K.TZ;var D=K.gk===void 0?!1:K.gk;K=K.cX===void 0?!1:K.cX;A&&(W+=this.nE());nK(this.videoData)&&n===29&&(this.bO=void 0);A=W=this.Mk())||!g.Gg(this.videoData),f||(y={st:y,mst:this.Mk()},this.W&&this.Y("html5_high_res_seek_logging")&&(y.ht=this.W.vY(),y.adft=U6y(this.W)),this.uO.WS("seeknotallowed",y)),y=f));if(!y)return this.T&&(this.T=null,BCy(this)),g.Tv(this.getCurrentTime());y=.005;D&&this.Y("html5_sabr_seek_no_shift_tolerance")&&(y=0);if(Math.abs(W-this.K)<=y&&this.sI)return this.j;p&&(y=W,(this.Ru.ND()||this.Y("html5_log_seek_reasons"))&&this.uO.WS("seekreason",{reason:p, tgt:y}));n&&(this.N.K=n);this.sI&&sb(this);this.j||(this.j=new JO);W&&!isFinite(W)&&TC0(this,!1);(p=K||A)||(p=W,p=!(this.videoData.isLivePlayback&&this.videoData.G&&!this.videoData.G.W&&!(this.mediaElement&&this.mediaElement.uJ()>0&&I5(this.mediaElement)>0)||hS(this.videoData)&&this.wf()===this.Mk(!1)?0:isFinite(p)||!hS(this.videoData)));p||(W=Pr(this,W,q));W&&!isFinite(W)&&TC0(this,!1);this.G=W;this.OI=S;this.K=W;this.S=0;this.W&&(q=this.W,S=W,ZSA(q,S,!1),Q7c(q,S));q=this.uO;S=W;p={He:J,seekSource:n}; q.BN.G=S;K=q.I0;K.mediaTime=S;K.W=!0;p.He&&q.dL(p);p=S>q.videoData.endSeconds&&S>q.videoData.limitedPlaybackDurationInSeconds;q.yA&&p&&isFinite(S)&&ybH(q);SJ.start&&ybH(this.uO);return this.j}; g.u.Mk=function(W){if(!this.videoData.isLivePlayback)return this.uO.videoData.Mk();var J;return Kl(this.videoData)&&((J=this.mediaElement)==null?0:J.isPaused())&&this.videoData.W?(W=this.getCurrentTime(),NNH(this.OA(W)*1E3)+W):this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&nK(this.videoData)&&this.videoData.W?W?this.videoData.W.sI||0:this.videoData.W.ez||0:hS(this.videoData)&&this.videoData.sI&&this.videoData.W?this.videoData.W.Mk()+this.timestampOffset:this.videoData.G&&this.videoData.G.W? !W&&this.W?this.W.vY():this.uO.videoData.Mk()+this.timestampOffset:this.mediaElement?z_()?NNH(g.E(this.mediaElement.Mf()).getTime()):I5(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.u.wf=function(){if(g.c8(this.videoData))return 0;if(this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&nK(this.videoData)){var W;return((W=this.videoData.W)==null?void 0:W.Ou)||0}W=this.videoData?this.videoData.wf()+this.timestampOffset:this.timestampOffset;if(Kl(this.videoData)&&this.videoData.W){var J,K=Number((J=this.videoData.progressBarStartPosition)==null?void 0:J.utcTimeMillis)/1E3;J=this.getCurrentTime();J=this.OA(J)-J;if(!isNaN(K)&&!isNaN(J))return Math.max(W,K-J)}return W}; g.u.kH=function(){this.j||this.seekTo(this.G,{cN:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.u.QW=function(){return this.sI&&!isFinite(this.K)}; g.u.lO=function(){HSy(this,null);this.N.dispose();g.R.prototype.lO.call(this)}; g.u.RZ=function(){var W={};this.loader&&Object.assign(W,this.loader.RZ());this.mediaElement&&Object.assign(W,this.mediaElement.RZ());return W}; g.u.t6=function(W){this.timestampOffset=W}; g.u.getStreamTimeOffset=function(){return hS(this.videoData)?0:this.videoData.W?this.videoData.W.getStreamTimeOffset():0}; g.u.nE=function(){return this.timestampOffset}; g.u.OA=function(W){return this.videoData&&this.videoData.W?this.videoData.W.OA(W-this.timestampOffset):NaN}; g.u.oR=function(){if(!this.mediaElement)return 0;if($h(this.videoData)){var W=this.mediaElement,J=W.qR();W=(Fr(J)&&W.getDuration()?J.end(J.length-1):0)+this.timestampOffset-this.wf();J=this.Mk()-this.wf();return Math.max(0,Math.min(1,W/J))}return this.mediaElement.oR()}; g.u.z9=function(W){this.Z&&(this.Z.W=W)}; g.u.Nw=function(W,J){this.uO.WS("requestUtcSeek",{time:W});nK(this.videoData)&&(this.bO=W);var K;(K=this.loader)==null||K.Nw(W);J&&(this.XW=J)}; g.u.S_=function(W){nK(this.videoData)&&(this.bO=void 0);if(this.XW)this.uO.WS("utcSeekingFallback",{source:"streamTime",timeSeconds:this.XW}),this.uO.seekTo(this.XW,{cN:"utcSeekingFallback_streamTime"}),this.XW=0;else{var J=this.getCurrentTime();isNaN(J)||(W=this.OA(J)-W,J-=W,this.uO.WS("utcSeekingFallback",{source:"estimate",timeSeconds:J}),this.uO.seekTo(J,{cN:"utcSeekingFallback_estimate"}))}}; g.u.hW=function(){this.XW=0}; g.u.Y=function(W){return this.Ru&&this.Ru.Y(W)};g.N(XE,g.R);XE.prototype.start=function(){this.K.start()}; XE.prototype.stop=function(){this.K.stop()}; XE.prototype.clear=function(){for(var W=g.d(this.W.values()),J=W.next();!J.done;J=W.next())J.value.clear()}; XE.prototype.sample=function(){for(var W=g.d(this.G),J=W.next();!J.done;J=W.next()){var K=g.d(J.value);J=K.next().value;K=K.next().value;this.W.has(J)||this.W.set(J,new s70(Jno.has(J)));this.W.get(J).update(K())}this.K.start()}; var Jno=new Set(["networkactivity"]);s70.prototype.update=function(W){this.K?(this.buffer.add(W-this.W||0),this.W=W):this.buffer.add(W)}; s70.prototype.clear=function(){this.buffer.clear();this.W=0};J7.prototype.EO=function(){return this.started}; J7.prototype.start=function(){this.started=!0}; J7.prototype.reset=function(){this.finished=this.started=!1};var iGQ=!1;g.N(g.Si,g.Ao);g.u=g.Si.prototype;g.u.lO=function(){this.logger.debug("dispose");g.NU(this.Il);pBD(this.Ww);this.visibility.unsubscribe("visibilitystatechange",this.Ww);fry(this);nS(this);g.r_.Pj(this.Kb);this.c$();this.Ht=null;g.hE(this.videoData);g.hE(this.gV);g.hE(this.xT);g.hE(this.jx);g.tE(this.QGS);this.yA=null;g.Ao.prototype.lO.call(this)}; g.u.Hh=function(W,J,K,I,q){if(this.Ru.Y("html5_log_ad_playback_docid")){var S=this.rl();if(S.qoe){S=S.qoe;var p=this.Ru.PS||"yt";g.t8(S,g.YS(S.provider),"ad_playback",[W,J,K,q,p])}}else this.rl().Hh(W,J,K);this.Y("html5_log_media_perf_info")&&this.WS("adloudness",{ld:I.toFixed(3),cpn:W})}; g.u.PV=function(){var W;return(W=this.loader)==null?void 0:W.PV()}; g.u.s2=function(){var W;return(W=this.loader)==null?void 0:W.s2()}; g.u.nB=function(){var W;return(W=this.loader)==null?void 0:W.nB()}; g.u.u9=function(){var W;return(W=this.loader)==null?void 0:W.u9()}; g.u.pQ=function(){return this.videoData.pQ()}; g.u.RH=function(){return this.Y("html5_not_reset_media_source")&&!this.pQ()&&!this.videoData.isLivePlayback&&g.Re(this.videoData)&&!this.Ru.supportsGaplessShorts()}; g.u.xF=function(){this.videoData.N&&(this.videoData.x_=this.videoData.x_||this.Ok.As().PV(),this.videoData.j9=this.videoData.j9||this.Ok.As().s2());if(SfQ(this.videoData)||!sk(this.videoData)){var W=this.videoData.errorDetail;this.Za(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),W,W,this.videoData.SB||void 0)}this.Y("html5_generate_content_po_token")&&this.tb();this.Y("html5_enable_d6de4")&&this.t3()}; g.u.DU=function(){return this.gr}; g.u.sZ=function(){!this.E9||this.E9.Iu();this.E9=new g.Ob(new xN(this.videoData,this.Ru,this));this.gr=new VU(this.Ru,this,this.E9)}; g.u.getVideoData=function(){return this.videoData}; g.u.J=function(){return this.Ru}; g.u.LJ=function(W){return this.rq.LJ(this.Ht,W===void 0?!1:W)}; g.u.rl=function(W){if(W)a:{for(var J=this.gr,K=g.d(J.W.values()),I=K.next();!I.done;I=K.next())if(I=I.value,I.getVideoData().videoId===W){W=I;break a}W=J.K}else W=this.gr.rl();return W}; g.u.Ii=function(){return this.visibility}; g.u.qI=function(){return this.mediaElement&&this.mediaElement.Ac()?this.mediaElement.v7():null}; g.u.gb=function(){return this.mediaElement}; g.u.Sf=function(){if(this.Y("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.J().S&&this.J().houseBrandUserStatus&&this.WS("hbut",{status:this.J().houseBrandUserStatus});if(this.videoData.Nk())return!0;this.Za("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.u.nz=function(W){(W=W===void 0?!1:W)||g.c8(this.videoData)||Hr(this.rl());this.sO=W;!this.Sf()||this.BU.EO()?g.$w(this.Ru)&&this.videoData.isLivePlayback&&this.BU.EO()&&!this.BU.finished&&!this.sO&&this.y3():(this.BU.start(),W=this.rl(),Tr(W),W.qoe&&A8Q(W.qoe),this.y3())}; g.u.y3=function(){if(this.videoData.isLoaded()){var W=this.gV;g.FV(W.QK.experiments,"html5_player_min_build_cl")>0&&g.FV(W.QK.experiments,"html5_player_min_build_cl")>752536569&&axQ(W,"oldplayer");arD(this)}else this.videoData.NP||this.videoData.Rr?this.sO&&g.$w(this.Ru)&&this.videoData.isLivePlayback||(this.videoData.NP?otv(this.videoData):(W=this.rl(),W.qoe&&(W=W.qoe,NA(W,"protected"),W.provider.videoData.j?W.yb():W.provider.videoData.subscribe("dataloaded",W.yb,W)),RUT(this.videoData))):!this.videoData.loading&& this.Wb&&hv0(this)}; g.u.XR=function(W){this.pk=W;this.loader&&(Wlv(this.loader,new g.sa(W)),this.WS("sdai",{sdsstm:1}))}; g.u.Eb=function(){}; g.u.La=function(){return null}; g.u.h2=iD(16);g.u.isFullscreen=function(){return this.visibility.isFullscreen()}; g.u.isBackground=function(){return this.visibility.isBackground()}; g.u.T4=function(){var W=this;this.logger.debug("Updating for format change");pS(this).then(function(){return q6(W)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.u.YF=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.nz();this.Sf()&&!g.z(this.playerState,128)&&(this.OR.EO()||(this.OR.start(),this.videoData.LA?this.T$(DO(this.playerState,4)):this.T$(DO(DO(this.playerState,8),1))),tED(this))}; g.u.Ge=function(){return this.BU.finished}; g.u.sendAbandonmentPing=function(){g.z(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Ke(!0),fry(this),g.r_.Pj(this.Kb))}; g.u.CG=function(W,J){W=W===void 0?!0:W;(J===void 0||J)&&this.mediaElement&&this.mediaElement.pause();this.T$(W?new g.lp(14):new g.lp)}; g.u.Cz=function(){this.rl().YV()}; g.u.Za=function(W,J,K,I,q,S){this.logger.debug(function(){return"set player error: ec="+W+", detail="+q}); var p,n;g.s$(hdp,K)?p=K:K?n=K:p="GENERIC_WITHOUT_LINK";I=(I||"")+(";a6s."+f2());if(W==="auth"||W==="drm.auth"||W==="heartbeat.stop")K&&(I+=";r."+K.replaceAll(" ","_")),S&&(I+="sr."+S.replaceAll(" ","_"));J={errorCode:W,errorDetail:q,errorMessage:n||g.m8[p]||"",DW:p,SB:S||"",mC:I,m8:J,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=W;lt(this,"dataloaderror");this.T$(AO(this.playerState,128,J));g.r_.Pj(this.Kb);nS(this);this.AO()}; g.u.sM=function(W){this.oM=this.oM.filter(function(J){return W!==J}); this.logger.debug(function(){return"set preroll ready for "+W}); g.c8(this.videoData)&&!this.vj()&&this.jI.dK("pl_pr");this.OR.EO()&&tED(this)}; g.u.vj=function(){var W;(W=!!this.oM.length)||(W=this.R7.W.array[0],W=!!W&&W.start<=-0x8000000000000);return W}; g.u.TW=function(){return this.BN.TW()}; g.u.isPlaying=function(){return this.playerState.isPlaying()}; g.u.Pi=function(){return this.playerState.Pi()&&this.videoData.LA}; g.u.getPlayerState=function(){return this.playerState}; g.u.MZ=function(W){var J;(J=this.loader)==null||J.MZ(W)}; g.u.XA=function(W){var J;(J=this.loader)==null||J.XA(W)}; g.u.getPlayerType=function(){return this.playerType}; g.u.getPreferredQuality=function(){if(this.Ht){var W=this.Ht;W=W.videoData.nX.compose(W.videoData.Nf);W=Ng(W)}else W="auto";return W}; g.u.Uu=iD(22);g.u.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.u.setMediaElement=function(W){this.logger.debug("set media element");if(this.mediaElement&&W.v7()===this.mediaElement.v7()&&(W.isView()||this.mediaElement.isView())){if(W.isView()||!this.mediaElement.isView())this.e$(),this.mediaElement=W,this.mediaElement.uO=this,TtT(this),this.BN.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.c$();if(!this.playerState.isError()){var J=jK(this.playerState,512);g.z(J,8)&&!g.z(J,2)&&(J=DO(J,1));W.isView()&&(J=jK(J,64));this.T$(J)}this.mediaElement= W;this.mediaElement.uO=this;!g.$w(this.Ru)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);TtT(this);this.BN.setMediaElement(this.mediaElement);this.Y("html5_prewarm_media_source")&&!this.gV.dW()&&$fT(this.mediaElement)}}; g.u.c$=function(W,J,K){W=W===void 0?!1:W;J=J===void 0?!1:J;K=K===void 0?!1:K;this.logger.debug("remove media element");if(this.mediaElement){var I=this.getCurrentTime();I>0&&(this.BN.G=I);this.BN.setMediaElement(null);!W&&this.RH()?gzQ(this):this.Fb(K);this.loader&&(rY(this.loader),fS(this,J));this.Ye.stop();if(this.mediaElement&&(!this.OR.EO()&&!this.bV()||this.playerState.isError()||g.z(this.playerState,2)||this.T$(DO(this.playerState,512)),this.mediaElement)){this.e$();if(W||!this.mediaElement.isView())this.jI.XQ("mesv_s"), this.mediaElement.stopVideo(),h7(this);this.mediaElement=this.mediaElement.uO=null}}}; g.u.playVideo=function(W,J){W=W===void 0?!1:W;J=J===void 0?!1:J;var K=this,I,q,S,p,n,A;return g.V(function(D){if(D.K==1){K.logger.debug("start play video");var f=window.google_image_requests;f&&f.length>10&&(window.google_image_requests=f.slice(-10));if(g.z(K.playerState,128))return D.return();if(K.gV.V8())return K.publish("signatureexpired"),D.return();K.mediaElement&&Hr(K.rl());K.YF();(g.z(K.playerState,64)||W)&&K.T$(DO(K.playerState,8));return K.OR.finished&&K.mediaElement?K.Ht||!K.c8?D.VK(2): g.O(D,K.c8,3):D.return()}if(D.K!=2&&g.z(K.playerState,128))return D.return();if(!K.videoData.G)return K.videoData.isLivePlayback&&!g.l8(K.Ru.j,!0)?(I="html5.unsupportedlive",q=2):(I=K.videoData.pQ()?"fmt.unplayable":"fmt.noneavailable",q=1),g.ET(Error("selectableFormats")),K.Za(I,q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),D.return();if(K.UM()&&K.videoData.G.W)return K.logger.debug("rebuild playbackData for airplay"),D.return(pS(K));if(YN(K))f=K.BN,fK(f.videoData)?!f.isAtLiveHead(f.getCurrentTime())&& f.TW()&&f.uO.seekTo(Infinity,{cN:"seektimeline_peggedToLive",seekSource:34}):g.c8(f.videoData)&&f.getCurrentTime()p;if(!n||!p){S&&n&&(I=Math.max(I,S));var A;S=Q2T(J,(A=q.W)==null?void 0:A.videoInfos);A=J.uO.getPlaybackRate();A>1&&S&&(A=VK0(J.Ru.j,q.W.videoInfos,A),W.W!==0&& A=480;if(J.Y("html5_exponential_memory_for_sticky")){D=J.Ru.Bt;f=1;var h=h===void 0?!1:h;Ppy(D,"sticky-lifetime");D.values["sticky-lifetime"]&&D.e9["sticky-lifetime"]||(D.values["sticky-lifetime"]=0,D.e9["sticky-lifetime"]=0);h&&w8(D,"sticky-lifetime")>.0625&&(f=D.e9["sticky-lifetime"]*2); D.values["sticky-lifetime"]+=1*Math.pow(2,D.W/f);D.e9["sticky-lifetime"]=f;D.T.start()}if(J.Y("html5_perf_cap_override_sticky")){h=J.G;D=J.Y("html5_perserve_av1_perf_cap");D=D===void 0?!1:D;if(D===void 0?0:D){f=P1();W=g.d(Object.keys(f));for(J=W.next();!J.done;J=W.next())J=J.value,J.indexOf("1")!==0&&delete f[J];g.Hd("yt-player-performance-cap",f,2592E3)}else g.EN("yt-player-performance-cap");BJv(D);if(D){D=g.d(bz.keys());for(f=D.next();!f.done;f=D.next())f=f.value,f.startsWith("1")||bz.delete(f); D=g.d(nb.values());for(f=D.next();!f.done;f=D.next())f=f.value,f.startsWith("1")||nb.delete(f);D=g.d(h.keys());for(f=D.next();!f.done;f=D.next())f=f.value,f.startsWith("1")||h.delete(f)}else bz.clear(),nb.clear(),h.clear()}}}this.loader&&(h=this.loader,K=K||"",h.policy.W?sC(h.G.W,K):sC(h.W.j,K));this.VA()}; g.u.getUserPlaybackQualityPreference=function(){return this.videoData.G&&!this.videoData.G.W?Ng(this.videoData.nX):uS[sl()]}; g.u.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.u.setUserAudio51Preference=function(W,J){this.getUserAudio51Preference()!==W&&(this.WS("toggle51",{pref:W}),g.Hd("yt-player-audio51",W,J?31536E3:2592E3),this.T4())}; g.u.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.u.setProximaLatencyPreference=function(W){var J=this.getProximaLatencyPreference();this.WS("proxima",{pref:W});g.Hd("yt-player-proxima-pref",W,31536E3);J!==W&&(W=this.BN,W.Js=!0,W.uO.seekTo(Infinity,{cN:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.u.getProximaLatencyPreference=function(){var W;return(W=c1())!=null?W:0}; g.u.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.u.tb=function(){this.videoData.videoId?this.Ok.tb(this.videoData):this.WS("povid",{})}; g.u.t3=function(){this.videoData.videoId?this.Ok.t3(this.videoData):this.WS("piavid",{})}; g.u.VA=function(){if(!this.Iu()&&!g.z(this.playerState,128)&&this.videoData.G){if(this.videoData.G.W)I7(this);else{var W=ji(this),J=this.videoData;a:{var K=this.videoData.kK;if(W.W){for(var I=g.d(K),q=I.next();!q.done;q=I.next()){q=q.value;var S=q.getInfo(),p=g.os[S.video.quality];if((!W.G||S.video.quality!=="auto")&&p<=W.W){K=q;break a}}K=K[K.length-1]}else K=K[0]}J.Js=K;U9X(this,W.reason,EzT(this,this.videoData.Js))}if(this.Y("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.BN.G8= !1,this.playVideo()}}; g.u.F7=function(W,J){if(this.Iu()||g.z(this.playerState,128))return!1;var K,I=!((K=this.videoData.G)==null||!K.W);K=I&&J?this.getCurrentTime()-this.nE():NaN;if(this.Ru.experiments.HS("html5_record_audio_format_intent")){var q=this.rl();if(q.qoe){q=q.qoe;var S=[W.pE.id,isNaN(K)?"m":"t"];g.t8(q,g.YS(q.provider),"afi",S)}}if(I)return J&&(I=ExT(this.BN),this.WS("aswh",{id:W.id,xtags:W.xtags,bh:I.toFixed(3)})),this.loader.setAudioTrack(W,K,J),!0;if(QkA(this)){a:{J=this.mediaElement.audioTracks();for(I= 0;I=0?W:this.getCurrentTime()}; g.u.OA=function(){var W;return((W=this.videoData.W)==null?0:W.OA)?this.videoData.W.OA(this.getCurrentTime()-this.nE()):this.mediaElement&&(W=this.mediaElement.Mf())&&(W=W.getTime(),!isNaN(W))?W/1E3+this.getCurrentTime():NaN}; g.u.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.nE():this.Mk()?this.Mk():0}; g.u.HO=function(){var W=new iST;if(this.loader){var J=this.Ru.schedule,K=this.Ru.ND();K=K===void 0?!1:K;W.zq=J.G8;W.Mr=J.OI;W.bandwidthEstimate=Qx(J);if(K){K=(J.N.Lc()*1E3).toFixed();var I=(J.vS.Lc()*1E3).toFixed(),q=yx(J).toFixed(2),S=((J.Z.Lc()||0)*1E9).toFixed(2),p=J.G.Lc().toFixed(0),n=J.jZ.Lc().toFixed(0),A=J.C.percentile(.5).toFixed(2),D=J.C.percentile(.92).toFixed(2),f=J.C.percentile(.96).toFixed(2),h=J.C.percentile(.98).toFixed(2);J.W?J.W.reset():J.W=new jb;J.W.add(J.XW);J.W.add(J.interruptions.length); for(var t=0,F=J.interruptions.length-1;F>=0;F--){var a=J.interruptions[F];J.W.add(a-t);t=a}t=0;for(F=J.T.length-1;F>=0;F--){a=J.T[F];var y=a.stamp/36E5;J.W.add(y-t);t=y;J.W.add(a.net/1E3);J.W.add(a.max)}J=J.W.PP();W.W={ttr:K,ttm:I,d:q,st:S,bw:p,abw:n,v50:A,v92:D,v96:f,v98:h,"int":J}}XLX(this.loader,W)}else this.mediaElement&&(W.Xn=qe(this.mediaElement));W.zq=this.zq;W.Mr=this.Mr;W.G=this.isAtLiveHead()&&this.isPlaying()?D9H(this):NaN;return W}; g.u.r_=function(W,J){this.Mr+=W;this.zq+=J}; g.u.oR=function(){return this.mediaElement?g.Gg(this.videoData)?1:$h(this.videoData)?this.isAtLiveHead()||this.TW()?1:this.BN.oR():this.mediaElement.oR():0}; g.u.cV=function(){var W=this.Ys,J=it(W,"bandwidth"),K=it(W,"bufferhealth"),I=it(W,"livelatency"),q=it(W,"networkactivity"),S=W9(W,"bandwidth"),p=W9(W,"bufferhealth"),n=W9(W,"livelatency");W=W9(W,"networkactivity");var A=this.LM(),D=A.droppedVideoFrames;A=A.totalVideoFrames;var f=this.getCurrentTime();if(this.zz){var h="IT/"+(this.zz.W.getInfo()+"/"+Ng(this.mW()));h+="/"+this.zz.getInfo()}else h="";var t=this.isGapless(),F=this.QX(),a=this.hB(),y=g.Df(this),U=this.getPlayerState(),Q=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var C=0;var T="";if(this.pk){if(this.pk.X1){T="D,";break a}C=this.pk.LC();T=this.pk.Ik().substring(0,4)}C>0?(C="AD"+C+", ",T&&(C+=T+", "),T=C):T=""}return{JF:S,aj:p,currentTime:f,fd:h,droppedVideoFrames:D,isGapless:t,QX:F,f1:a,AG:J,yC:K,Fi:I,bl:q,Ll:n,Zb:W,Zg:y,playerState:U,HG:Q,Dj:T,totalVideoFrames:A}}; g.u.RZ=function(W){var J={};if(W===void 0?0:W){Object.assign(J,this.rl().RZ());this.mediaElement&&(Object.assign(J,this.mediaElement.RZ()),W=this.LM(),J.dvf=W.droppedVideoFrames,J.tvf=W.totalVideoFrames);this.loader&&Object.assign(J,this.loader.RZ());this.zz&&(J.drm=JSON.stringify(this.zz.RZ()));J.state=this.playerState.state.toString(16);g.z(this.playerState,128)&&(J.debug_error=JSON.stringify(this.playerState.tS));this.vj()&&(J.prerolls=this.oM.join(","));this.videoData.nk&&(J.ismb=this.videoData.nk); this.videoData.latencyClass!=="UNKNOWN"&&(J.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(J.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)J.is_mosaic=1;this.videoData.cotn&&(J.is_offline=1,J.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(J.playerResponseCpn=this.videoData.playerResponseCpn);this.Ok.isOrchestrationLeader()&&(J.leader=1);this.videoData.isLivePlayback&& (this.videoData.W&&OJ(this.videoData.W)&&(J.segduration=OJ(this.videoData.W)),W=this.BN,J.lat=W.Z?FgA(W.Z.T):0,J.liveutcstart=this.videoData.liveUtcStartSeconds);J.relative_loudness=this.videoData.mA.toFixed(3);if(W=g.Df(this))J.optimal_format=W.video.qualityLabel;J.user_qual=sl();J.release_version=l[35]}J.debug_videoId=this.videoData.videoId;return J}; g.u.addCueRange=function(W){this.DI([W])}; g.u.removeCueRange=function(W){this.R7.pA([W])}; g.u.uh=function(){this.R7.sync()}; g.u.FU=function(W,J){return this.R7.FU(W,J)}; g.u.DI=function(W,J){this.R7.qk(W,J)}; g.u.LG=function(W){this.R7.pA(W)}; g.u.YL=function(W){var J=this.R7;W.length<=0||J.Iu()||(W=J.W,W.array.sort(W.W))}; g.u.P$=function(){return this.R7.P$()||[]}; g.u.fq=function(){return this.Ko}; g.u.UM=function(){return this.visibility.UM()}; g.u.VH=function(){this.mediaElement&&this.mediaElement.VH()}; g.u.Km0=function(){lt(this)}; g.u.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.u.e$=function(){g.$d(this.FS)}; g.u.s1=function(){this.ZH();this.publish("onLoadProgress",this.oR())}; g.u.jK=function(W){var J=W.target.Kw();if(this.mediaElement&&this.mediaElement.Kw()&&this.mediaElement.Kw()===J){ozQ(this,W.type);switch(W.type){case "error":var K=pF(this.mediaElement)||"",I=this.mediaElement.gK();if(K==="capability.changed"){this.Y("html5_restart_on_capability_change")?(this.WS("capchg",{msg:I}),this.GY(!0)):pS(this);return}if(this.mediaElement.hasError()&&fxL(this.gV,K,{msg:I}))return;if(this.isBackground()&&this.mediaElement.AS()===4){this.AO();A7(this,"unplayable");return}break; case "durationchange":K=this.mediaElement.getDuration();isFinite(K)&&(!this.ww||K>0)&&K!==1&&this.Cg(K);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());A7D(this.R7);this.rl().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":kGL(this);this.publish("onLoadedMetadata");VEc(this);K=this.OA();this.videoData.Dn&&(this.videoData.Dn=K);break;case "loadstart":VEc(this);break;case "progress":case "suspend":g.FV(this.Ru.experiments, "html5_progress_event_throttle_ms")>0?this.Kr.TN():this.s1();break;case "playing":this.jI.XQ("plev");this.Fd&&!YN(this)&&(this.Fd=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{cN:"videoplayer_onPlaying"})));break;case "timeupdate":K=this.mediaElement&&!this.mediaElement.getCurrentTime();I=this.mediaElement&&this.mediaElement.uJ()===0;if(K&&(!this.oa||I))return;this.oa=this.oa||!!this.mediaElement.getCurrentTime();HGv(this);this.ZH();if(!this.mediaElement|| this.mediaElement.Kw()!==J)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.pX().length>0&&this.mediaElement.qR().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.Y("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.uJ()>2||!this.mediaElement.isSeeking()&&fD(this.mediaElement.qR(),this.mediaElement.getCurrentTime()))&&(K=this.mediaElement.RZ(), K.bh=qe(this.mediaElement).toFixed(3),this.WS("uwe",K));break;case "resize":kGL(this);this.videoData.K&&this.videoData.K.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.pn&&g.z(this.playerState,8)&&!g.z(this.playerState,1024)&&this.getCurrentTime()===0&&g.dg){A7(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Kw()===J){zqH(this.BN,W);this.publish("videoelementevent",W);J=this.playerState;I=this.I0;var q= this.mediaElement,S=this.Ru.experiments;K=this.videoData.clientPlaybackNonce;if(!g.z(J,128)){var p=J.state;q=q?q:W.target;var n=q.getCurrentTime();if(!g.z(J,64)||W.type!=="ended"&&W.type!=="pause"){var A=q.getDuration();A=q.isEnded()||n>1&&Math.abs(n-A)<1.1;var D=W.type==="pause"&&q.isEnded();n=W.type==="ended"||W.type==="waiting"||W.type==="timeupdate"&&!g.z(J,4)&&!ek(I,n);if(D||A&&n)q.KR()>0&&q.Kw()&&(p=14);else switch(W.type){case "error":pF(q)&&(p|=128);break;case "pause":g.z(J,256)?(p^=256)|| (p=64):g.z(J,32)||g.z(J,2)||g.z(J,4)||(p=4,g.z(J,1)&&g.z(J,8)&&(p|=1));break;case "playing":S=p;p=(p|8)&-1093;S&4?(p|=1,nF(I,q,!0)):ek(I,q.getCurrentTime())&&(p&=-2);g.z(J,1)&&nF(I,q)&&(p|=1);break;case "seeking":p|=16;g.z(J,8)&&(p|=1);p&=-3;break;case "seeked":p&=-17;nF(I,q,!0);break;case "waiting":g.z(J,2)||(p|=1);nF(I,q);break;case "timeupdate":S=g.z(J,16);n=g.z(J,4);(g.z(J,8)||S)&&!n&&ek(I,q.getCurrentTime())&&(p=8);nF(I,q)&&(p|=1);break;case "progress":case "suspend":S.HS("html5_track_underruns_on_progress")&& nF(I,q)}}I=p;p=null;I&128&&(p=W.target,q=pF(p),S=1,q?(q==="capability.changed"&&(S=2),n="GENERIC_WITHOUT_LINK",A=p.RZ(),A.mediaElem="1",/AUDIO_RENDERER/.test(p.gK())&&(n="HTML5_AUDIO_RENDERER_ERROR"),p={errorCode:q,errorMessage:g.m8[n]||"",DW:n,mC:$m(A),m8:S,cpn:J.tS?J.tS.cpn:""}):p=null,p&&(p.cpn=K));J=AO(J,I,p)}!g.z(this.playerState,1)&&g.z(J,1)&&rbI(this,"evt"+W.type);this.T$(J)}}}; g.u.vtu=function(W){W=W.W.availability==="available";W!==this.Ko&&(this.Ko=W,this.publish("airplayavailabilitychange"))}; g.u.ciZ=function(){var W=(0,g.L)(),J=this.mediaElement.UM();this.WS("airplay",{ia:J});!J&&!isNaN(this.z7)&&W-this.z7<2E3||(this.z7=W,J!==this.UM()&&(W=this.visibility,W.W!==J&&(W.W=J,W.Ww()),this.WS("airplay",{rbld:J}),this.T4()),this.publish("airplayactivechange"))}; g.u.Lm=function(W){if(this.loader){var J=this.loader,K=J.K,I=J.getCurrentTime(),q=Date.now()-K.C;K.C=NaN;K.WS("sdai",{adfetchdone:W,d:q});W&&!isNaN(K.Z)&&K.K!==3&&BI(K.loader,I,K.Z,K.S);K.policy.G?K.j=NaN:K.T=NaN;b4(K,4,K.K===3?"adfps":"adf");rY(J)}}; g.u.qG=function(){g.NU(this.Il);this.Ye.stop();this.videoData.XW=!0;this.Ru.Ze=!0;this.Ru.Tx=0;var W=this.gV;if(W.videoData.K){var J=W.QK.j,K=W.videoData.K.z8;J.T.has(K)&&(J.T.delete(K),J.K=!0)}W.W.stop();this.Bo();g.z(this.playerState,8)&&this.T$(jK(this.playerState,65));this.sO=!1;vNv(this.rl());g.XY(this.xT);this.publish("playbackstarted");(W=g.sH("yt.scheduler.instance.clearPriorityThreshold"))?W():KL(0)}; g.u.Bo=function(){var W=this.Ok.K7(),J={},K={};!z8("pbs",this.jI.timerName)&&OU.measure&&OU.getEntriesByName&&(OU.getEntriesByName("mark_nr")[0]?YWy("mark_nr"):YWy());W.videoId&&(J.videoId=W.videoId);W.clientPlaybackNonce&&!this.Y("web_player_early_cpn")&&(J.clientPlaybackNonce=W.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(K.isPausedOnLoad=!0);K.itag=W.K?Number(W.K.itag):-1;W.GJ&&(K.preloadType=String(this.qe?2:1));J.liveStreamMode=mOx[ZP(W)];J.playerInfo=K;this.jI.infoGel(J); if(this.loader){W=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(W.G&&(J=window.performance.getEntriesByName(W.G),J.length&&(J=J[0],W.tick("vri",J.fetchStart),W.tick("vdns",J.domainLookupEnd),W.tick("vreq",J.requestStart),W.tick("vrc",J.responseEnd))),W.K&&(J=window.performance.getEntriesByName(W.K),J.length&&(J=J[0],W.tick("ari",J.fetchStart),W.tick("adns",J.domainLookupEnd),W.tick("areq",J.requestStart),W.tick("arc",J.responseEnd))));W=W.ticks;for(var I in W)W.hasOwnProperty(I)&& this.jI.tick(I,W[I])}}; g.u.ZH=function(W){var J=this;W=W===void 0?!1:W;if(this.mediaElement&&this.videoData){eqy(this.BN,this.isPlaying());var K=this.getCurrentTime();!this.loader||g.z(this.playerState,4)&&g.Gg(this.videoData)||g.z(this.playerState,32)&&nK(this.videoData)||IJQ(this.loader,K);K>5&&(this.BN.G=K);var I=g.JF();I?g.r_.Pj(this.Kb):g.uX(this.Kb);var q=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!q||Kl(this.videoData))&&!g.z(this.playerState,128)){var S=function(){if(J.mediaElement&&!g.z(J.playerState, 128)){J.Ru.ND()&&ozQ(J,"pfx");var p=J.getCurrentTime();J.Y("html5_buffer_underrun_transition_fix")&&(p-=J.nE());var n=qe(J.mediaElement),A=g.z(J.playerState,8),D=ek(J.I0,p),f=EqL(J.I0,p,(0,g.L)(),n);A&&D?J.T$(jK(J.playerState,1)):A&&f?(A=J.getDuration(),D=fK(J.videoData),A&&Math.abs(A-p)<1.1?(J.WS("setended",{ct:p,bh:n,dur:A,live:D}),J.mediaElement.wF()?(J.logger.debug("seek to 0 because of looping"),J.seekTo(0,{cN:"videoplayer_loop",seekSource:37})):J.CG()):(J.playerState.isBuffering()||rbI(J,"progress_fix"), J.T$(DO(J.playerState,1)))):(A&&!D&&!f&&p>0&&(A=(Date.now()-J.j6)/1E3,D=J.getDuration(),p>D-1&&J.WS("misspg",{t:p.toFixed(2),d:D.toFixed(2),r:A.toFixed(2),bh:n.toFixed(2)})),J.playerState.isPaused()&&J.playerState.isBuffering()&&qe(J.mediaElement)>5&&J.T$(jK(J.playerState,1)));J.ZH()}}; this.mediaElement.pX().length===0?this.Kb=I?g.r_.mf(S,100):g.FW(S,100):this.Kb=I?g.r_.mf(S,500):g.FW(S,500)}this.videoData.OI=K;!W&&this.isPlaying()&&evv(this);Hky(this.rq,this.Ht,this.gb(),this.isBackground())&&I7(this);this.publish("progresssync",W);q&&Kl(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.u.a$=function(){this.Za("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.u.hB=function(){return this.rl().hB()}; g.u.UZ=function(){return this.loader?this.loader.UZ():Qx(this.Ru.schedule,!0)}; g.u.T$=function(W){if(!g.hO(this.playerState,W)){this.logger.debug(function(){return"Setting state "+W.toString()}); var J=new g.Fb(W,this.playerState);this.playerState=W;L8c(this);var K=!this.Zz.length;this.Zz.push(J);var I=this.mediaElement&&this.mediaElement.isSeeking();I=J.oldState.state===8&&!I;g.uT(J,1)&&I&&g.z(this.playerState,8)&&!g.z(this.playerState,64)&&this.loader&&(CEQ(this.loader),this.mediaElement&&qe(this.mediaElement)>=5&&OkQ(this.rq,this.Ht)&&I7(this));(I=g.FV(this.Ru.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.z(W,1)&&(g.z(W,8)||g.z(W,16))?this.EB.start(I):this.EB.stop();(aK(J, 8)<0||g.uT(J,1024))&&this.Ye.stop();!g.uT(J,8)||this.videoData.XW||g.z(J.state,1024)||this.Ye.start();g.z(J.state,8)&&aK(J,16)<0&&!g.z(J.state,32)&&!g.z(J.state,2)&&this.playVideo();g.z(J.state,2)&&$h(this.videoData)&&(this.Cg(this.getCurrentTime()),this.ZH(!0));g.uT(J,2)&&(this.Ke(!0),this.Ru.ND()&&this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&nK(this.videoData)&&this.videoData.W&&(I={minst:""+this.videoData.W.Ou,cminst:""+(this.videoData.W.wf()+this.nE()),maxst:""+this.videoData.W.ez, hts:""+this.videoData.W.sI,cmaxst:""+(this.videoData.W.Mk()+this.nE())},this.WS("sabrSeekableBoundaries",I)));g.uT(J,128)&&this.AO();this.videoData.W&&this.videoData.isLivePlayback&&!this.n8&&(aK(J,8)<0?fOc(this.videoData.W):g.uT(J,8)&&this.videoData.W.resume());ViA(this.BN,J);sLA(this.rl(),J);if(K&&!this.Iu())try{for(var q=g.d(this.Zz),S=q.next();!S.done;S=q.next()){var p=S.value;D6D(this.R7,p);this.publish("statechange",p)}}finally{this.Zz.length=0}}}; g.u.h6=function(){this.jI.tick("qoes")}; g.u.kH=function(){this.BN.kH()}; g.u.CH=function(W,J,K,I){a:{var q=this.gV;I=I===void 0?"LICENSE":I;K=K.substring(0,256);var S=OS(J);W==="drm.keyerror"&&this.zz&&this.zz.K.keys.length>1&&q.T<96&&(W="drm.sessionlimitexhausted",S=!1);var p=q.QK.experiments.HS("html5_retry_on_drm_unavailable"),n=q.QK.experiments.HS("html5_retry_on_drm_key_error"),A=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(p&&W==="drm.unavailable"||n&&W==="drm.keyerror"&&!K.match(A))q.Uk("qoe.restart",{retryOnDrmError:1,e:W,detail:K}),q.uO.GY(!0);else{if(S)if(q.videoData.K&& q.videoData.K.video.isHdr())NYc(q,W);else{if(q.uO.Za(W,J,I,K),A4D(q,{detail:K}))break a}else q.Uk(W,{detail:K});W==="drm.sessionlimitexhausted"&&(q.WS("retrydrm",{sessionLimitExhausted:1}),q.T++,m9D(q.uO))}}}; g.u.Kzu=function(){var W=this,J=g.FV(this.Ru.experiments,"html5_license_constraint_delay"),K=JJ();J&&K?(J=new g.P0(function(){W.VA();lt(W)},J),g.B(this,J),J.start()):(this.VA(),lt(this))}; g.u.Xu=function(W){this.publish("heartbeatparams",W)}; g.u.OJ=function(W){this.WS("keystatuses",xwc(W));var J="auto",K=!1;this.videoData.K&&(J=this.videoData.K.video.quality,K=this.videoData.K.video.isHdr());a:{switch(J){case "highres":case "hd2880":J="UHD2";break;case "hd2160":case "hd1440":J="UHD1";break;case "hd1080":case "hd720":J="HD";break;case "large":case "medium":case "small":case "light":case "tiny":J="SD";break;default:J="";break a}K&&(J+="HDR")}J=J8(W)?Kb(W,J):W.T.includes(J);this.videoData.Wj=W.Wj;if(this.Y("html5_enable_vp9_fairplay")){if(K)if(W.Z){var I; if((I=this.zz)==null?0:Yi(I.W))if((K=this.zz)==null)K=0;else{for(var q=I=void 0,S=g.d(K.K.values()),p=S.next();!p.done;p=S.next())p=p.value,I||(I=TkH(p,"SD")),q||(q=TkH(p,"AUDIO"));K.l2({sd:I,audio:q});K=I==="output-restricted"||q==="output-restricted"}else K=!J;if(K){this.WS("drm",{dshdr:1});NYc(this.gV);return}}else{this.videoData.bk||(this.videoData.bk=!0,this.WS("drm",{dphdr:1}),this.GY(!0));return}var n;if((n=this.zz)==null?0:Yi(n.W))return}else if(n=W.Z&&J,K&&!n){NYc(this.gV);return}J||Kb(W, "AUDIO")&&Kb(W,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),W=xwc(W),this.oE?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.Y("html5_report_fatal_drm_restricted_error_killswitch")||this.Za("drm.keyerror",2,void 0,"info."+W)):(this.oE=!0,this.Uk(new xm("qoe.restart",Object.assign({},{retrydrm:1},W))),I7(this),m9D(this)))}; g.u.EKu=function(){if(!this.videoData.XW&&this.mediaElement&&!this.isBackground()){var W="0";this.mediaElement.uJ()>0&&qe(this.mediaElement)>=5&&this.videoData.G&&this.videoData.G.W&&(this.T$(DO(this.playerState,1)),rbI(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),W="1");L8c(this);var J=this.videoData.G;W={restartmsg:W,mfmt:!qE(this.videoData),mdrm:!(!(J&&J.videoInfos&&J.videoInfos.length&&J.videoInfos[0].aB)||this.zz),mfmtinfo:!this.videoData.K,prerolls:this.vj()?this.oM.join(","): "0"};if(this.zz){J=this.zz;if(J.K.size<=0){var K="ns;";J.C||(K+="nr;");J=K+="ql."+J.G.length}else J=xwc(J.K.values().next().value),J=$m(J);W.drmp=J}var I;Object.assign(W,((I=this.loader)==null?void 0:I.RZ())||{});var q;Object.assign(W,((q=this.mediaElement)==null?void 0:q.RZ())||{});this.rl().Uk("qoe.start15s",$m(W));this.publish("loadsofttimeout")}}; g.u.Cg=function(W){this.videoData.lengthSeconds!==W&&(this.videoData.lengthSeconds=W,lt(this))}; g.u.Ke=function(W,J){var K=this;W=W===void 0?!1:W;if(!this.nF)if(z8("att_s","player_att")||YM("att_s",void 0,"player_att"),this.Y("use_rta_for_player"))(function(){var q,S,p,n;return g.V(function(A){switch(A.K){case 1:if(!(q=W)){A.VK(2);break}return g.O(A,g.ZIH(),3);case 3:q=!A.W;case 2:if(q)return A.return();g.yQ(A,4);S=Xry(K.rl());if(!S)throw Error();p={};return g.O(A,g.Uvc((p.cpn=K.videoData.clientPlaybackNonce,p.encryptedVideoId=K.videoData.videoId||"",p),3E4),6);case 6:n=A.W;if(K.nF)throw Error(); if(!n.challenge)throw g.ET(Error("Not sending attestation ping; no attestation challenge string")),Error();K.nF=!0;var D=[n.challenge];n.error?D.push("r1c="+n.error):n.webResponse&&D.push("r1a="+n.webResponse);var f;((f=n.adblockReporting)==null?void 0:f.reportingStatus)!==void 0&&D.push("r6a="+n.adblockReporting.reportingStatus);var h;((h=n.adblockReporting)==null?void 0:h.broadSpectrumDetectionResult)!==void 0&&D.push("r6b="+n.adblockReporting.broadSpectrumDetectionResult);S(D.join("&"));YM("att_f", void 0,"player_att");g.Cv(A,0);break;case 4:g.g0(A),YM("att_e",void 0,"player_att"),g.d0(A)}})})().then(function(){J==null||J()}); else{var I=new g.OQy(this.videoData);if("c1a"in I.GD&&!g.La.isInitialized()){YM("att_wb",void 0,"player_att");this.Sx===2&&Math.random()<.01&&g.ET(Error("Botguard not available after 2 attempts"));if(W)return;if(this.Sx<5){g.XY(this.jx);this.Sx++;return}}(I=g.TJA(I))?(YM("att_f",void 0,"player_att"),PdH(this.rl(),I),this.nF=!0):YM("att_e",void 0,"player_att")}}; g.u.DX=function(W){W=W===void 0?!1:W;return fK(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.TW()||g.Gg(this.videoData))?this.getCurrentTime():this.Mk(W)}; g.u.rd=function(){return g.c8(this.videoData)?this.videoData.wf():this.wf()}; g.u.Mk=function(W){return this.BN.Mk(W===void 0?!1:W)}; g.u.wf=function(){return this.BN.wf()}; g.u.nE=function(){return this.BN?this.BN.nE():0}; g.u.getStreamTimeOffset=function(){return this.BN?this.BN.getStreamTimeOffset():0}; g.u.XH=function(){var W=0;this.Ru.Y("web_player_ss_media_time_offset")&&(W=this.getStreamTimeOffset()===0?this.nE():this.getStreamTimeOffset());return W}; g.u.setPlaybackRate=function(W){var J;this.playbackRate!==W&&Q2T(this.rq,(J=this.videoData.G)==null?void 0:J.videoInfos)&&(this.playbackRate=W,I7(this));this.playbackRate=W;this.mediaElement&&this.mediaElement.setPlaybackRate(W)}; g.u.getPlaybackRate=function(){return this.playbackRate}; g.u.getPlaybackQuality=function(){var W="unknown";if(this.videoData.K&&(W=this.videoData.K.video.quality,W==="auto"&&this.mediaElement)){var J=this.qI();J&&J.videoHeight>0&&(W=rG(J.videoWidth,J.videoHeight))}return W}; g.u.isHdr=function(){return!!(this.videoData.K&&this.videoData.K.video&&this.videoData.K.video.isHdr())}; g.u.qg=function(){this.rl().qg()}; g.u.sendVideoStatsEngageEvent=function(W,J){var K=this.rl();K.W?(K=MA(K.W,"engage"),K.G8=W,K.send(J)):J&&J()}; g.u.Xj=function(W){return this.rl().Xj(W)}; g.u.isAtLiveHead=function(W,J){J=J===void 0?!1:J;return fK(this.videoData)&&(this.AE||J)?this.BN.isAtLiveHead(W):!1}; g.u.Xg=function(){var W=this.Mk(),J=this.getCurrentTime(),K;(K=!fK(this.videoData))||(K=this.BN,K=!(K.W&&K.W.G));return K||this.TW()||isNaN(W)||isNaN(J)?0:Math.max(0,W-J)}; g.u.K0=function(W){(this.AE=W)||this.Ye.stop();this.videoData.W&&(W?this.videoData.W.resume():fOc(this.videoData.W));if(this.loader){var J=this.videoData.Y("html5_disable_preload_for_ssdai_with_preroll")&&this.bV()&&this.videoData.isLivePlayback;W&&!J?this.loader.resume():fS(this,!0)}g.z(this.playerState,2)||W?g.z(this.playerState,512)&&W&&this.T$(jK(this.playerState,512)):this.T$(DO(this.playerState,512));J=this.rl();J.qoe&&(J=J.qoe,g.t8(J,g.YS(J.provider),"stream",[W?"A":"I"]))}; g.u.qK=function(W){W={n:W.name,m:W.message};this.rl().Uk("player.exception",$m(W))}; g.u.qn=iD(28);g.u.Dc=iD(57);g.u.o5=function(W){this.rl().o5(W)}; g.u.TR=function(W){this.rl().TR(W)}; g.u.M4=function(W){this.rl().M4(W)}; g.u.WP=iD(34);g.u.by=iD(40);g.u.No=function(W){this.rl().No(W)}; g.u.KH=function(){this.WS("hidden",{},!0)}; g.u.LM=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.u.Ps=function(){return this.loader?this.loader.Ps():!0}; g.u.setLoop=function(W){this.loop=W;this.mediaElement&&!g.$w(this.Ru)&&this.mediaElement.setLoop(W)}; g.u.wF=function(){return this.mediaElement&&!g.$w(this.Ru)?this.mediaElement.wF():this.loop}; g.u.t6=function(W){this.WS("timestamp",{o:W.toString()});this.BN.t6(W)}; g.u.bU=function(W){this.jI.tick(W)}; g.u.dK=function(W){return this.jI.dK(W)}; g.u.XQ=function(W){this.jI.XQ(W)}; g.u.WS=function(W,J,K){K=K===void 0?!1:K;this.rl().WS(W,J,K)}; g.u.Qv=function(W,J,K){K=K===void 0?!1:K;this.rl().WS(W,J,K)}; g.u.Uk=function(W){this.rl().Uk(W.errorCode,$m(W.details));W=W.errorCode;if(this.videoData.isLivePlayback&&(W==="qoe.longrebuffer"||W==="qoe.slowseek")||W==="qoe.restart"){W=this.loader?ksI(this.loader.videoTrack):{};var J,K;this.WS("lasoe",Object.assign(this.loader?ksI(this.loader.audioTrack):{},(J=this.ww)==null?void 0:(K=J.W)==null?void 0:K.uS()));var I,q;this.WS("lvsoe",Object.assign(W,(I=this.ww)==null?void 0:(q=I.K)==null?void 0:q.uS()))}}; g.u.JJ=function(W,J,K){this.rl().JJ(W,J,K)}; g.u.qQ=function(W,J,K,I,q,S,p,n){var A;if((A=this.videoData.W)!=null&&A.isLive){var D=J.playerType===2?J:W,f=W.videoData.videoId,h=J.videoData.videoId;if(f&&h){A=this.rl();if(A.qoe){var t=A.qoe,F=W.cpn,a=J.cpn,y=D.videoData.oG,U=t.provider.videoData.clientPlaybackNonce,Q=t.provider.videoData.videoId,C=a!==U&&h!==Q;U=F!==U&&f!==Q;t.reportStats();t.adCpn&&t.adCpn!==F||(t.adCpn=U?F:"",t.Vz=U?f:"",t.adFormat=U?y:void 0,yU(t,2,S?4:q?2:0,a,h,I),t.reportStats(),t.adCpn=C?a:"",t.Vz=C?h:"",t.adFormat=C?y: void 0,yU(t,2,S?5:q?3:1,F,f,K),t.reportStats())}K=W.cpn;if(A.G.has(K)){if(q=g.E(A.G.get(K)),$N(q,!0).send(),Gr(q),K!==A.provider.videoData.clientPlaybackNonce){bbH(q);var T;(T=A.W)==null||HbX(T);A.G.delete(K)}}else A.b1=A.provider.videoData.clientPlaybackNonce,A.b1&&A.W&&(A.G.set(A.b1,A.W),$N(A.W).send(),Gr(A.W));T=J.cpn;D=D.videoData;I-=this.XH();if(A.G.has(T)){I=g.E(A.G.get(T));var H=I.G&&isNaN(I.j)?gw(I):NaN;I=RTL(I,!1);isNaN(H)||(I.Z=H);I.send()}else I=Wgc(A,A.provider,D,I),A.G.set(T,I),Bwy(I, new g.Fb(DO(new g.lp,8),new g.lp)),TwI(I),(H=A.W)==null||Gr(H);A.b1=T;this.Y("html5_unify_csi_server_stitched_transition_logging")?Vsy(this.jI,W.cpn,J.cpn,this.videoData.clientPlaybackNonce,J.videoData,p,void 0,n):(A=this.jI,I=this.videoData.clientPlaybackNonce,H=J.videoData,W=(W.cpn===I?"video":"ad")+"_to_"+(J.cpn===I?"video":"ad"),I={},H.S&&(I.cttAuthInfo={token:H.S,videoId:H.videoId}),p&&(I.startTime=p),kM(W,I),g.Lc({targetVideoId:H.videoId,targetCpn:J.cpn,isSsdai:!0},W),A.Ru.Y("html5_enable_ssdai_transition_with_only_enter_cuerange")? p||fG(A,n,W):fG(A,n,W))}}else this.logger.W(360717806,"SSTEvent for nonSS")}; g.u.zX=function(){var W=this.Ok,J=W.Lu;W.Lu=[];return J}; g.u.jg=function(W){this.videoData.CR=!0;this.Uk(new xm("sabr.fallback",W));this.GY(!0)}; g.u.ji=function(W,J){this.videoData.XC=!0;if(J===void 0||J)this.Uk(new xm("qoe.restart",W)),this.GY(!0);this.videoData.rf()&&this.Y("html5_reload_caption_on_ssdai_fallback")&&this.Ok.X7()}; g.u.p$=function(W){this.WS("sdai",{aftimeout:W});this.Uk(new xm("ad.fetchtimeout",{timeout:W}))}; g.u.HF=function(W,J){this.WS("timelineerror",W);W=new xm("dai.timelineerror",W);J?this.Za("dai.timelineerror",1,"RETRYABLE_ERROR",$m(W.details)):this.Uk(W)}; g.u.MB=function(){return Tr(this.rl())}; g.u.getPlayerSize=function(){return this.Id.getPlayerSize()}; g.u.lD=function(){return this.Id.lD()}; g.u.VN=function(){return this.jI}; g.u.z4=function(){return this.Ok.z4()}; g.u.getVolume=function(){return this.Ok.getVolume()}; g.u.GW=function(){return this.Ok.GW()}; g.u.isMuted=function(){return this.Ok.isMuted()}; g.u.WV=function(){return this.Ok.WV()}; g.u.Gn=function(){this.n8=!0}; g.u.Y=function(W){return this.Ru.Y(W)}; g.u.DE=function(W,J,K,I,q){this.WS("xvt",{m:W,g:J?1:0,tt:K?1:0,np:I?1:0,c:q})}; g.u.f$=function(){var W;(W=this.loader)==null||W.resume()}; g.u.bV=function(){return g.ao(this.oM,"ad")}; g.u.k0=function(){var W=this.getCurrentTime(),J=W-this.nE();var K=this.mediaElement?tM(this.mediaElement.qR()):0;K=Math.floor(Math.max(K-J,0))+100;var I;return((I=this.loader)==null?0:I.k0(J,K))?(this.WS("sdai",{skipad:1,ct:J.toFixed(3),adj:K.toFixed(3)}),nK(this.videoData)&&this.loader.seek(J+K,{seekSource:89,cN:"videoplayer_skipServerStitchedAd"}),YRH(this.BN,W),!0):!1}; g.u.ND=function(){return this.Ru.ND()}; g.u.rF=function(){if(this.Y("html5_generate_content_po_token"))return this.videoData.mY||"";this.Ok.UF();return this.Ru.Nu||""}; g.u.g3=function(){if(this.videoData.videoId)return this.videoData.XZ}; g.u.Ah=function(){return this.videoData.videoId}; g.u.Xe=function(){return this.Ok.uI}; g.u.n1=function(){return this.sO}; g.u.Kz=function(){return this.Ok.Kz()}; g.u.Nw=function(W,J){this.BN.Nw(W,J)}; g.u.hW=function(){this.BN.hW()}; g.u.rN=function(W,J){var K=this.Y("html5_generate_content_po_token")?this.videoData:void 0;this.Ok.rN(W,J,K)}; g.u.U9=function(W,J){var K;(K=this.loader)==null||K.U9(W,J)}; g.u.j2=function(){var W=this.v4();return!!W&&W.j2()}; g.u.RD=function(W,J){this.rl().RD(W,J)}; g.u.kP=function(){return this.rl().kP()}; g.u.JV=function(){return this.videoData.RN}; g.u.QX=function(){return this.Ok.QX()}; g.u.TL=function(){return this.Ok.TL(this)}; g.u.O4=function(W){var J;(J=this.loader)==null||J.O4(W)}; g.u.wr=function(){var W;(W=this.loader)==null||W.wr()};g.N(zvc,Xf);g.N(vzD,Xf);g.u=vzD.prototype;g.u.seekToChapterWithAnimation=function(W){var J=this;if(g.u3(this.api)&&!(W<0)){var K=this.api.getVideoData(),I=K.DL;if(I&&W=0)return;J=~J;g.Mj(this.items,J,0,W);qO(this.menuItems.element,W.element,J)}W.subscribe("size-change",this.iE,this);this.menuItems.publish("size-change")}; g.u.AR=function(W){W.unsubscribe("size-change",this.iE,this);this.Iu()||(g.Nj(this.items,W),this.menuItems.element.removeChild(W.element),this.menuItems.publish("size-change"))}; g.u.iE=function(){this.menuItems.publish("size-change")}; g.u.focus=function(){for(var W=0,J=0;J1&&g.xx(this)}; g.u.Ab=function(){UGy(this);this.W7&&(dGv(this),g.s5(this.element,this.size))}; g.u.UW=function(){var W=this.W.pop();ysD(this,W,this.W[this.W.length-1],!0)}; g.u.Eg=function(W){if(!W.defaultPrevented)switch(W.keyCode){case 27:this.ZJ();W.preventDefault();break;case 37:this.W.length>1&&this.UW();W.preventDefault();break;case 39:W.preventDefault()}}; g.u.focus=function(){this.W.length&&this.W[this.W.length-1].focus()}; g.u.lO=function(){g.oV.prototype.lO.call(this);this.S&&this.S.dispose();this.Z&&this.Z.dispose()};g.N(OR,g.GK);OR.prototype.open=function(W,J){this.initialize(W.items)&&this.oZ(J,!!J)}; OR.prototype.initialize=function(W){g.gC(this.Rc);if(W===void 0||W.length===0)return!1;var J=W.length;W=g.d(W);for(var K=W.next();!K.done;K=W.next())this.df(K.value,J--);return!0}; OR.prototype.df=function(W,J){W.menuNavigationItemRenderer?CMD(this,W.menuNavigationItemRenderer,J):W.menuServiceItemRenderer&&wtA(this,W.menuServiceItemRenderer,J)};g.N(TK,CS);g.u=TK.prototype;g.u.UY=function(W){W.target!==this.dismissButton.element&&W.target!==this.overflowButton.element&&(this.wu(),this.onClickCommand&&this.X.qN("innertubeCommand",this.onClickCommand))}; g.u.OO=function(){this.enabled=!1;this.C.hide()}; g.u.P1=function(){return!!this.W&&this.enabled}; g.u.onVideoDataChange=function(W,J){this.N2(J);if(this.W){this.t_();a:if(!this.isCounterfactual){var K,I,q;this.banner.update({title:(K=this.W)==null?void 0:K.title,subtitle:(I=this.W)==null?void 0:I.subtitle,metadata:(q=this.W)==null?void 0:q.metadataText});var S;this.onClickCommand=g.m((S=this.W)==null?void 0:S.onTap,Rh);var p;if(W=g.m((p=this.W)==null?void 0:p.onOverflow,Rh))this.Z=g.m(W,K6e);var n;if((n=this.W)==null?0:n.thumbnailImage){var A,D;p=((A=this.W)==null?void 0:(D=A.thumbnailImage)== null?void 0:D.sources)||[];if(p.length===0)break a;this.thumbnailImage.update({url:p[0].url})}else{var f;if((f=this.W)==null?0:f.thumbnailIconName){var h;this.thumbnailIcon.update({icon:(h=this.W)==null?void 0:h.thumbnailIconName})}}var t;this.shouldShowOverflowButton=!((t=this.W)==null||!t.shouldShowOverflowButton);var F;this.shouldHideDismissButton=!((F=this.W)==null||!F.shouldHideDismissButton)}var a;this.banner.element.setAttribute("aria-label",((a=this.W)==null?void 0:a.a11yLabel)||"");var y; this.D0=(y=this.W)==null?void 0:y.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;gHv(this)}}; g.u.UD3=function(){this.isVisible=!0;gHv(this)}; g.u.Cby=function(){this.isVisible=!1;gHv(this)}; g.u.Q1=function(){CS.prototype.Q1.call(this);this.K&&this.X.logVisibility(this.banner.element,this.isVisible)}; g.u.wu=function(){CS.prototype.wu.call(this,!1);this.K&&this.X.logClick(this.banner.element)}; g.u.lL=function(W){this.S||(this.S=new OR(this.X),g.B(this,this.S));var J,K;if((J=this.Z)==null?0:(K=J.menu)==null?0:K.menuRenderer)this.S.open(this.Z.menu.menuRenderer,W.target),W.preventDefault()}; g.u.N2=function(){}; g.u.t_=function(){}; g.u.lO=function(){this.X.iK("suggested_action_view_model");CS.prototype.lO.call(this)};g.N(H9,TK); H9.prototype.N2=function(W){var J,K,I;this.productUpsellSuggestedActionViewModel=g.m((J=W.getWatchNextResponse())==null?void 0:(K=J.playerOverlays)==null?void 0:(I=K.playerOverlayRenderer)==null?void 0:I.suggestedActionViewModel,NnW);var q;if((q=this.productUpsellSuggestedActionViewModel)==null?0:q.content){var S;this.W=g.m((S=this.productUpsellSuggestedActionViewModel)==null?void 0:S.content,W6x)}var p,n;if(this.K=!!((p=this.productUpsellSuggestedActionViewModel)==null?0:(n=p.loggingDirectives)==null? 0:n.trackingParams)){var A,D;this.X.setTrackingParams(this.banner.element,((A=this.productUpsellSuggestedActionViewModel)==null?void 0:(D=A.loggingDirectives)==null?void 0:D.trackingParams)||null)}var f;this.isCounterfactual=!((f=this.productUpsellSuggestedActionViewModel)==null||!f.isCounterfactualServing)}; H9.prototype.t_=function(){var W=[],J,K=g.d(((J=this.productUpsellSuggestedActionViewModel)==null?void 0:J.ranges)||[]);for(J=K.next();!J.done;J=K.next()){var I=J.value;I&&(J=Number(I.startTimeMilliseconds),I=Number(I.endTimeMilliseconds),isNaN(J)||isNaN(I)||W.push(new g.p9(J,I,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.X.qk(W)};g.N(G7Q,Xf);g.N(Vr,Xf);Vr.prototype.onVideoDataChange=function(W,J){var K=this;if(!LK(J)&&(W==="newdata"&&xGQ(this),this.K&&this.G&&W==="dataloaded")){var I;Qz(lL(this.api.J(),(I=this.api.getVideoData())==null?void 0:g.m7(I)),function(q){K.G=!1;RaX(K,q)})}}; Vr.prototype.d$=function(){var W=this;if(g.$w(this.api.J())){var J,K=g.pp(this.api.J(),(J=this.api.getVideoData())==null?void 0:g.m7(J));return Qz(Nq(K),function(I){var q=Bl();ml(q,I);return W.api.d$(q)})}return Nq(this.api.d$())};g.N(g.ei,g.Y0);g.u=g.ei.prototype;g.u.open=function(){g.$x(this.VP,this.K)}; g.u.eE=function(W){be0(this);var J=this.options[W];J&&(J.element.setAttribute("aria-checked","true"),this.qv(this.W4(W)),this.G=W)}; g.u.P4=function(W){g.gC(this.K);for(var J={},K=!1,I=0;I=0?this.W.playbackRate:1}catch(W){return 1}}; g.u.setPlaybackRate=function(W){this.getPlaybackRate()!==W&&(this.W.playbackRate=W);return W}; g.u.wF=function(){return this.W.loop}; g.u.setLoop=function(W){this.W.loop=W}; g.u.canPlayType=function(W,J){return this.W.canPlayType(W,J)}; g.u.isPaused=function(){return this.W.paused}; g.u.isSeeking=function(){return this.W.seeking}; g.u.isEnded=function(){return this.W.ended}; g.u.s5=function(){return this.W.muted}; g.u.Gf=function(W){b1();this.W.muted=W}; g.u.pX=function(){return this.W.played||AM([],[])}; g.u.qR=function(){try{var W=this.W.buffered}catch(J){}return W||AM([],[])}; g.u.M9=function(){return this.W.seekable||AM([],[])}; g.u.Mf=function(){var W=this.W;return W.getStartDate?W.getStartDate():null}; g.u.getCurrentTime=function(){return this.W.currentTime}; g.u.setCurrentTime=function(W){this.W.currentTime=W}; g.u.getDuration=function(){return this.W.duration}; g.u.load=function(){var W=this.W.playbackRate;try{this.W.load()}catch(J){}this.W.playbackRate=W}; g.u.pause=function(){this.W.pause()}; g.u.play=function(){var W=this.W.play();if(!W||!W.then)return null;W.then(void 0,function(){}); return W}; g.u.uJ=function(){return this.W.readyState}; g.u.KR=function(){return this.W.networkState}; g.u.AS=function(){return this.W.error?this.W.error.code:null}; g.u.gK=function(){return this.W.error?this.W.error.message:""}; g.u.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.W instanceof window.HTMLVideoElement&&this.W.getVideoPlaybackQuality)return this.W.getVideoPlaybackQuality();if(this.W){var W=this.W,J=W.webkitDroppedFrameCount;if(W=W.webkitDecodedFrameCount)return{droppedVideoFrames:J||0,totalVideoFrames:W}}return{}}; g.u.UM=function(){return!!this.W.webkitCurrentPlaybackTargetIsWireless}; g.u.VH=function(){return!!this.W.webkitShowPlaybackTargetPicker()}; g.u.togglePictureInPicture=function(){var W=this.W,J=window.document;window.document.pictureInPictureEnabled?this.W!==J.pictureInPictureElement?W.requestPictureInPicture():J.exitPictureInPicture():Rs()&&W.webkitSetPresentationMode(W.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.u.pm=function(){var W=this.W;return new g.Tm(W.offsetLeft,W.offsetTop)}; g.u.getSize=function(){return g.cY(this.W)}; g.u.setSize=function(W){g.s5(this.W,W)}; g.u.getVolume=function(){return this.W.volume}; g.u.setVolume=function(W){b1();this.W.volume=W}; g.u.OZ=function(W){this.j[W]||(this.W.addEventListener(W,this.listener),this.j[W]=this.listener)}; g.u.setAttribute=function(W,J){this.W.setAttribute(W,J)}; g.u.removeAttribute=function(W){this.W.removeAttribute(W)}; g.u.hasAttribute=function(W){return this.W.hasAttribute(W)}; g.u.XL=iD(67);g.u.Z2=iD(69);g.u.dh=iD(71);g.u.Z9=iD(73);g.u.EE=function(){return di(this.W)}; g.u.GH=function(W){g.lK(this.W,W)}; g.u.FY=function(W){return g.mk(this.W,W)}; g.u.Ep=function(){return g.po(document.body,this.W)}; g.u.audioTracks=function(){var W=this.W;if("audioTracks"in W)return W.audioTracks}; g.u.lO=function(){for(var W=g.d(Object.keys(this.j)),J=W.next();!J.done;J=W.next())J=J.value,this.W.removeEventListener(J,this.j[J]);KF.prototype.lO.call(this)}; g.u.Cu=function(W){this.W.disableRemotePlayback=W};g.N(sR,g.k);g.N(P9,g.k);P9.prototype.show=function(){g.k.prototype.show.call(this);this.hs();this.BS.Y("html5_enable_moving_s4n_window")&&g.$w(this.BS.J())&&this.N()}; P9.prototype.hide=function(){g.k.prototype.hide.call(this);this.delay.stop();this.T.stop()}; P9.prototype.hs=function(){var W=(0,g.L)(),J=PMQ(this.BS);c9(this.W,J.bandwidth_samples);c9(this.Z,J.network_activity_samples);c9(this.G,J.live_latency_samples);c9(this.K,J.buffer_health_samples);var K={};J=g.d(Object.entries(J));for(var I=J.next();!I.done;I=J.next()){var q=g.d(I.value);I=q.next().value;q=q.next().value;this.C[I]!==q&&(K[I]=" "+String(q));this.C[I]=q}this.update(K);W=(0,g.L)()-W>25?5E3:500;this.delay.start(W)}; P9.prototype.N=function(){this.S?(this.position+=1,this.position>15&&(this.S=!1)):(--this.position,this.position<=0&&(this.S=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.T.start(2E4)};g.N(iOy,Xf);g.N(Xu,g.R);Xu.prototype.W=function(){var W=(0,g.L)()-this.startTime;W=Wthis.T[W])&&(this.W=W,iV(this))}; g.u.onCueRangeExit=function(W){var J=hlT(this,W);J&&this.W===W&&this.api.qN("innertubeCommand",J);this.clearTimeout();this.W=void 0}; g.u.onTimeout=function(W){this.W!==void 0&&(W==null?void 0:W.cueRangeId)===this.W&&(this.S=!1,(W=hlT(this,this.W))&&this.api.qN("innertubeCommand",W))}; g.u.Nz=function(W){this.K=W}; g.u.Dv=function(){iV(this);this.K=void 0}; g.u.setTimeout=function(W){var J=this,K=Number(W==null?void 0:W.maxVisibleDurationMilliseconds);K&&(this.clearTimeout(),this.Z=setTimeout(function(){J.onTimeout(W)},K))}; g.u.clearTimeout=function(){this.Z&&clearTimeout(this.Z);this.Z=void 0;this.S=!1}; g.u.lO=function(){this.timelyActions=this.K=this.W=this.videoId=void 0;this.T={};this.pA();this.clearTimeout();Xf.prototype.lO.call(this)};g.N(aUQ,Xf);g.N(KG,Sh);KG.prototype.S=function(W){this.T(W?2:1)}; KG.prototype.K=function(){var W=this.X.getPresentingPlayerType();W===2||W===3?(this.W=!1,this.VP.AR(this)):this.W||(W=this.hasVoiceBoostAudioTrack(),this.setEnabled(W),W=this.G()===2&&W,p1(this,W),this.VP.df(this),this.W=!0)}; KG.prototype.lO=function(){this.VP.AR(this);Sh.prototype.lO.call(this)};g.N(Ik,Xf);Ik.prototype.getVoiceBoostUserPreference=function(){return this.W}; Ik.prototype.setVoiceBoostUserPreference=function(W){this.api.WS("vb_set",{pref:W});g.Hd("yt-player-voice-boost",W);W!==this.W&&(this.W=W,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.T4())}; Ik.prototype.hasVoiceBoostAudioTrack=function(){var W,J,K=(W=this.api.getVideoData())==null?void 0:(J=W.G)==null?void 0:J.W;return K?ii(K,function(I){var q;return((q=I.audio)==null?void 0:q.K)===!0}):!1}; Ik.prototype.updateEnvironmentData=function(){this.api.J().Pg=this.W};var gOy=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.N(pG,Xf);pG.prototype.lO=function(){this.Z&&(g.NU(this.Z),this.Z=void 0);Xf.prototype.lO.call(this)}; pG.prototype.UF=function(){(this.K?!this.W:this.G)&&nG(this)}; pG.prototype.w$=function(W,J,K){var I=this;if(d0A(W)){var q=K||"";if(this.W)J=Ab(this,q),y30(W,J);else{var S=new g.FB;J.push(S.promise);this.j.promise.then(function(){var p=Ab(I,q);y30(W,p);S.resolve()})}}}; pG.prototype.tb=function(W){var J=this;if(this.K||this.G)W.mY=Ab(this,W.videoId),this.W||(this.T=new JO,this.j.promise.then(function(){J.jI.dK("pot_if");W.mY=Ab(J,W.videoId)}))};g.N(Dr,Xf);Dr.prototype.setFullscreenQuickActions=function(W){this.W&&this.api.getRootNode().removeChild(this.W);W?(g.lK(W,"ytp-fullscreen-quick-actions"),g.lK(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.EY(this.api,W,4)):g.A5(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.W=W;$0A(this,this.api.isFullscreen())}; Dr.prototype.setPlayerOverlayVideoDetailsRenderer=function(W){this.playerOverlayVideoDetailsRenderer&&this.api.getRootNode().removeChild(this.playerOverlayVideoDetailsRenderer);W?(g.lK(W,"ytp-fullscreen-metadata"),this.api.Y("delhi_modern_web_player_fullscreen_metadata_bottom")?g.lK(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"):g.lK(this.api.getRootNode(),"ytp-fullscreen-metadata-top"),g.EY(this.api,W,4)):(g.A5(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.A5(this.api.getRootNode(), "ytp-fullscreen-metadata-bottom"));this.playerOverlayVideoDetailsRenderer=W;$0A(this,this.api.isFullscreen())};g.N(x0y,Xf);g.N(jE,g.R);jE.prototype.W=function(){for(var W=g.d(g.EH.apply(0,arguments)),J=W.next();!J.done;J=W.next())(J=J.value)&&this.features.push(J)}; jE.prototype.lO=function(){for(var W=this.features.length-1;W>=0;W--)this.features[W].dispose();this.features.length=0;g.R.prototype.lO.call(this)};OOv.prototype.reset=function(){this.W=this.K=NaN};g.u=Tuy.prototype;g.u.reset=function(){Be(this.timerName)}; g.u.tick=function(W,J){oC(W,J,this.timerName)}; g.u.dK=function(W){return ve(W,void 0,this.timerName)}; g.u.XQ=function(W){xF(W,void 0,this.timerName)}; g.u.infoGel=function(W){g.Lc(W,this.timerName)};g.N(elQ,g.Ao);g.u=elQ.prototype;g.u.Yg=function(W){return this.loop||!!W||this.index+1=0}; g.u.setShuffle=function(W){this.shuffle=W;W=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var J=0;J0)||Vq(this,1,!0)}; g.u.hK=function(){this.S=!0;this.W.aZ(this.j);this.j=this.W.D(document,"mouseup",this.VV)}; g.u.VV=function(){this.S=!1;Vq(this,8,!1);this.W.aZ(this.j);this.j=this.W.D(this.target,"mousedown",this.hK)}; g.u.wI=function(W){if(W=(W=W.changedTouches)&&W[0])this.G8=W.identifier,this.W.aZ(this.N),this.N=this.W.D(this.target,"touchend",this.XV,void 0,!0),Vq(this,1024,!0)}; g.u.XV=function(W){if(W=W.changedTouches)for(var J=0;J1280||S>720)if(q=K.MP("maxresdefault.jpg"))break;if(I>640||S>480)if(q=K.MP("maxresdefault.jpg"))break; if(I>320||S>180)if(q=K.MP("sddefault.jpg")||K.MP("hqdefault.jpg")||K.MP("mqdefault.jpg"))break;if(q=K.MP("default.jpg"))break}g.iL(J)&&(J=new Image,J.addEventListener("load",function(){WTL()}),J.src=q?q:"",this.api.VN().tick("ftr")); this.T.style.backgroundImage=q?"url("+q+")":""};g.N(g.bV,g.k);g.bV.prototype.resize=function(){}; g.bV.prototype.K=function(W){var J=this;this.G=!1;OyH(this);var K=W.DW,I=this.api.J();K!=="GENERIC_WITHOUT_LINK"||I.S?K==="TOO_MANY_REQUESTS"?(I=g.E(this.api.getVideoData()),this.qv(rt(this,"TOO_MANY_REQUESTS_WITH_LINK",I.Sa(),void 0,void 0,void 0,!1))):K!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||I.S?this.api.J().Y("html5_enable_bandaid_error_screen")&&K==="HTML5_SPS_UMP_STATUS_REJECTED"&&!I.S?(I=I.hostLanguage,W="//support.google.com/youtube?p=videoError",I&&(W=g.Vw(W,{hl:I})),this.qv(rt(this,"HTML5_SPS_UMP_STATUS_REJECTED", W))):this.api.J().Y("enable_adb_handling_in_sabr")&&K==="BROWSER_OR_EXTENSION_ERROR"&&!I.S?(I=I.hostLanguage,W="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",I&&(W=g.Vw(W,{hl:I})),this.qv(rt(this,"BROWSER_OR_EXTENSION_ERROR",W))):this.qv(g.BP(W.errorMessage)):this.qv(rt(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(W=I.hostLanguage,K="//support.google.com/youtube/?p=player_error1",W&&(K=g.Vw(K, {hl:W})),this.qv(rt(this,"GENERIC_WITH_LINK_AND_CPN",K,!0)),I.oG&&!I.T&&xSQ(this,function(S){if(g.l$(S,J.api,!se(J.api.J()))){S={as3:!1,html5:!0,player:!0,cpn:g.E(J.api.getVideoData()).clientPlaybackNonce};var p=J.api;p.z$("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:S});p.isFullscreen()&&p.toggleFullscreen()}})); if(this.G){var q=this.T8("ytp-error-link");q&&(this.api.createClientVe(q,this,216104),this.api.logVisibility(q,!0),xSQ(this,function(){J.api.logClick(q)}))}}; var $Sy=/([^<>]+)<\/a>/;g.N(TKH,g.k);g.u=TKH.prototype;g.u.onClick=function(W){this.innertubeCommand?(this.X.qN("innertubeCommand",this.innertubeCommand),W.preventDefault()):g.l$(W,this.X,!0);this.X.logClick(this.element)}; g.u.onVideoDataChange=function(W,J){VyQ(this,J);this.IB&&E3v(this,this.IB)}; g.u.M$=function(W){var J=g.E(this.X.getVideoData());this.videoId!==J.videoId&&VyQ(this,J);this.W&&E3v(this,W.state);this.IB=W.state}; g.u.oZ=function(){this.fade.show();this.X.publish("paidcontentoverlayvisibilitychange",!0);this.X.logVisibility(this.element,!0)}; g.u.ZJ=function(){this.fade.hide();this.X.publish("paidcontentoverlayvisibilitychange",!1);this.X.logVisibility(this.element,!1)};g.N(ok,g.k);ok.prototype.hide=function(){this.W.stop();this.message.style.display="none";g.k.prototype.hide.call(this)}; ok.prototype.onStateChange=function(W){this.Ap(W.state)}; ok.prototype.Ap=function(W){if(g.z(W,128)||this.api.n1())var J=!1;else{var K;J=this.api.Y("web_watch_enable_multiview_manager")&&((K=this.api.getVideoData())==null?0:LK(K))?!1:g.z(W,16)||g.z(W,1)?!0:!1}J?this.W.start():this.hide()}; ok.prototype.K=function(){this.message.style.display="block"};g.N(LG,g.oV);LG.prototype.onMutedAutoplayChange=function(W){this.G&&(W?(ecQ(this),this.oZ()):(this.W&&this.logClick(),this.ZJ()))}; LG.prototype.Lw=function(W){this.api.isMutedByMutedAutoplay()&&g.uT(W,2)&&this.ZJ()}; LG.prototype.onClick=function(){this.api.unMute();this.logClick()}; LG.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.N(g.kz,g.BW);g.u=g.kz.prototype;g.u.init=function(){var W=this.api,J=W.getPlayerStateObject();this.oP=W.getPlayerSize();this.T$(J);this.XU();this.eI();this.api.publish("basechromeinitialized",this);this.Y2()&&this.api.publish("standardControlsInitialized")}; g.u.onVideoDataChange=function(W,J){var K=this.x8!==J.videoId;if(K||W==="newdata"){W=this.api;W.isFullscreen()||(this.oP=W.getPlayerSize());var I;((I=this.api.getVideoData(1))==null?0:g.c8(I))&&this.QA()}K&&(this.x8=J.videoId,K=this.Bw,K.XW=3E3,Vq(K,512,!0),this.XU());this.api.Y("web_render_jump_buttons")&&J.showSeekingControls&&(this.Ci=572)}; g.u.Zk8=function(){this.onVideoDataChange("newdata",g.E(this.api.getVideoData()))}; g.u.j8=function(){var W=this.api.R5()&&this.api.rH(),J=this.api.b4();return this.CZ||W||this.JZ||J}; g.u.QA=function(){var W=!this.j8();g.jN(this.api.getRootNode(),"ytp-menu-shown",!W);var J;((J=this.api.getVideoData(1))==null?0:g.c8(J))&&g.jN(this.api.getRootNode(),"ytp-hide-controls",!W)}; g.u.sU=function(W){try{if(!g.po(this.api.getRootNode(),W))return!1}catch(J){return!1}for(;W&&!mjv(W);)W=W===this.api.getRootNode()?null:W.parentElement||null;return!!W}; g.u.YO=function(W){var J=this.api.getRootNode();g.jN(J,"ytp-autohide",W);g.jN(J,"ytp-autohide-active",!0);this.AF.start(W?250:100);W&&(this.FR=!1,g.A5(J,"ytp-touch-mode"));this.fZ=!W;this.api.gU(!W)}; g.u.fK=function(){var W=this.api.getRootNode();g.jN(W,"ytp-autohide-active",!1)}; g.u.heu=function(){this.ys=!0}; g.u.O70=function(W){if(this.api.J().Y("player_doubletap_to_seek")||this.api.J().Z)this.ys=!1,this.pT&&this.aZ(this.pT),this.Lo===0&&vP(this,W)?(this.nD(),this.IL.start(),this.pT=this.D(this.api.UI(),"touchmove",this.heu,void 0,!0)):this.IL.stop();mSI(this)&&vP(this,W)&&!this.api.J().Z&&byH(this);var J=this.bF.a5();if(!g.xK(this.api.J())&&M8&&r10(this,W))J&&W.preventDefault();else if(this.FR=!0,g.lK(this.api.getRootNode(),"ytp-touch-mode"),this.Bw.UR(),this.api.J().Y("player_doubletap_to_seek")||this.api.J().Z)if(J= this.api.getPlayerStateObject(),!(!this.api.Cc()||g.z(J,2)&&g.G5(this.api)||g.z(J,64))){J=Date.now()-this.m9;this.Lo+=1;if(J<=350){this.Cd=!0;J=this.api.getPlayerSize().width/3;var K=this.api.getRootNode().getBoundingClientRect(),I=W.targetTouches[0].clientX-K.left;K=W.targetTouches[0].clientY-K.top;var q=(this.Lo-1)*10;I>0&&IJ*2&&I=650,I=W.width<528;this.Bw.resize();g.jN(J,"ytp-fullscreen",this.api.isFullscreen());g.jN(J,"ytp-large-width-mode",K);g.jN(J,"ytp-xsmall-width-mode",I);g.jN(J,"ytp-small-mode",this.RX());g.jN(J,"ytp-tiny-mode",this.bS());g.jN(J,"ytp-big-mode",this.aX());this.hR&&this.hR.resize(W)}; g.u.Lw=function(W){this.T$(W.state);this.XU()}; g.u.Tf=iD(5);g.u.gQ=function(){var W=!!this.x8&&!this.api.xC()&&!this.J6,J=this.api.getPresentingPlayerType()===2,K=this.api.J();if(J){if(YHj&&K.Y("enable_visit_advertiser_support_on_ipad_mweb"))return!1;J=$z(this.api.Xz());W&&(J&&J.player?W=(W=J.player.getVideoData(2))?W.isListed&&!g.gJ(J.player.J()):!1:(tq("showInfoBarDuringAd: this is null"),W=!1));return W}return W&&(K.e1||this.api.isFullscreen()||K.yk)}; g.u.XU=function(){var W=this.gQ();this.Hg!==W&&(this.Hg=W,g.jN(this.api.getRootNode(),"ytp-hide-info-bar",!W))}; g.u.T$=function(W){var J=W.isCued()||this.api.vj()&&this.api.getPresentingPlayerType()!==3;J!==this.isCued&&(this.isCued=J,this.HX&&this.aZ(this.HX),this.HX=this.D(this.api.UI(),"touchstart",this.O70,void 0,J));var K=this.Bw,I=W.isPlaying()&&!g.z(W,32)||this.api.ge();Vq(K,128,!I);K=this.Bw;I=this.api.getPresentingPlayerType()===3;Vq(K,256,I);K=this.api.getRootNode();g.z(W,2)?I=[Lf.ENDED]:(I=[],g.z(W,8)?I.push(Lf.PLAYING):g.z(W,4)&&I.push(Lf.PAUSED),g.z(W,1)&&!g.z(W,32)&&I.push(Lf.BUFFERING),g.z(W, 32)&&I.push(Lf.SEEKING),g.z(W,64)&&I.push(Lf.UNSTARTED));g.HR(this.KZ,I)||(g.D3(K,this.KZ),this.KZ=I,g.n3(K,I));I=this.api.J();var q=g.z(W,2);a:{var S=this.api.J();var p=S.controlsType;switch(p){case "2":case "0":S=!1;break a}S=p==="3"&&!g.z(W,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:GAo($z(this.api.Xz())))||this.api.b4()||g.xK(S)&&this.api.getPresentingPlayerType()===2?!1:!0}g.jN(K,"ytp-hide-controls",!S);g.jN(K,"ytp-native-controls",I.controlsType==="3"&&!J&&!q&&!this.JZ);g.z(W, 128)&&!g.xK(I)?(this.hR||(this.hR=new g.bV(this.api),g.B(this,this.hR),g.EY(this.api,this.hR.element,4)),this.hR.K(W.tS),this.hR.show()):this.hR&&(this.hR.dispose(),this.hR=null)}; g.u.k_=function(){return this.api.R5()&&this.api.rH()?(this.api.lH(!1,!1),!0):this.api.xC()?(g.$0(this.api,!0),!0):!1}; g.u.onMutedAutoplayChange=function(W){this.JZ=W;this.QA()}; g.u.aX=function(){return!1}; g.u.RX=function(){return!this.aX()&&(this.api.getPlayerSize().width=0&&J.left>=0&&J.bottom>J.top&&J.right>J.left?J:null;J=this.size;W=W.clone();J=J.clone();I&&(p=J,q=5,(q&65)==65&&(W.x=I.right)&&(q&=-2),(q&132)==132&&(W.y=I.bottom)&&(q&=-5),W.xI.right&&(p.width=Math.min(I.right-W.x,S+p.width-I.left),p.width=Math.max(p.width,0))),W.x+p.width>I.right&&q&1&&(W.x=Math.max(I.right-p.width,I.left)),W.yI.bottom&&(p.height=Math.min(I.bottom-W.y,S+p.height-I.top),p.height=Math.max(p.height,0))),W.y+p.height>I.bottom&&q&4&&(W.y=Math.max(I.bottom-p.height,I.top)));I=new g.E5(0,0,0,0);I.left=W.x;I.top=W.y;I.width= J.width;I.height=J.height;g.kE(this.element,new g.Tm(I.left,I.top));g.$d(this.T);this.T.D(Ll(this),"contextmenu",this.JiS);this.T.D(this.X,"fullscreentoggled",this.onFullscreenToggled);this.T.D(this.X,"pageTransition",this.If)}; g.u.JiS=function(W){if(!W.defaultPrevented){var J=wi(W);g.po(this.element,J)||this.ZJ();this.X.J().disableNativeContextMenu&&W.preventDefault()}}; g.u.onFullscreenToggled=function(){this.ZJ();jmL(this)}; g.u.If=function(){this.ZJ()};g.N(Ke,g.k);Ke.prototype.onClick=function(){var W=this,J,K,I,q;return g.V(function(S){if(S.K==1)return J=W.api.J(),K=g.E(W.api.getVideoData()),I=W.api.getPlaylistId(),q=J.getVideoUrl(K.videoId,I,void 0,!0),g.O(S,tjQ(W,q),2);S.W&&hGH(W);W.api.logClick(W.element);g.d0(S)})}; Ke.prototype.hs=function(){this.updateValue("icon",{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{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=fmD(this);g.jN(this.element,"ytp-copylink-button-visible", this.visible);this.WN(this.visible);this.tooltip.fQ();this.api.logVisibility(this.element,this.visible&&this.j)}; Ke.prototype.Ai=function(W){g.k.prototype.Ai.call(this,W);this.api.logVisibility(this.element,this.visible&&W)}; Ke.prototype.lO=function(){g.k.prototype.lO.call(this);g.A5(this.element,"ytp-copylink-button-visible")};g.N(FqQ,g.k);g.u=FqQ.prototype;g.u.show=function(){g.k.prototype.show.call(this);g.XY(this.K)}; g.u.hide=function(){this.T.stop();this.G=0;this.T8("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.A5(this.element,"ytp-chapter-seek");g.A5(this.element,"ytp-time-seeking");g.k.prototype.hide.call(this)}; g.u.Cj=function(W,J,K,I){this.G=W===this.Z?this.G+I:I;this.Z=W;var q=W===-1?this.C:this.N;q&&this.X.logClick(q);this.S?this.K.stop():g.iK(this.K);this.T.start();this.element.setAttribute("data-side",W===-1?"back":"forward");var S=3*this.X.UI().getPlayerSize().height;q=this.X.UI().getPlayerSize();q=q.width/3-3*q.height;this.W.style.width=S+"px";this.W.style.height=S+"px";W===1?(this.W.style.left="",this.W.style.right=q+"px"):W===-1&&(this.W.style.right="",this.W.style.left=q+"px");var p=S*2.5;S=p/ 2;var n=this.T8("ytp-doubletap-ripple");n.style.width=p+"px";n.style.height=p+"px";W===1?(W=this.X.UI().getPlayerSize().width-J+Math.abs(q),n.style.left="",n.style.right=W-S+"px"):W===-1&&(W=Math.abs(q)+J,n.style.right="",n.style.left=W-S+"px");n.style.top="calc((33% + "+Math.round(K)+"px) - "+S+"px)";if(K=this.T8("ytp-doubletap-ripple"))K.classList.remove("ytp-doubletap-ripple"),K.classList.add("ytp-doubletap-ripple");am0(this,this.S?this.G:I)}; g.u.JI=function(W,J,K){if(K=K===void 0?null:K){var I=W===-1?this.C.visualElement:this.N.visualElement;K={seekData:K};var q=g.M_();q&&g.X0(W3)(void 0,q,I,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",K,void 0)}this.G=W===this.Z?this.G+J:J;this.Z=W;I=this.X.UI().getPlayerSize();this.S?this.K.stop():g.iK(this.K);this.T.start();this.element.setAttribute("data-side",W===-1?"back":"forward");g.lK(this.element,"ytp-time-seeking");this.W.style.width="110px";this.W.style.height="110px";K=I.width*.1-15;W=== 1?this.PS?(this.W.style.right=K+"px",this.W.style.left=""):(this.W.style.right="",this.W.style.left=I.width*.8-30+"px"):W===-1&&(this.PS?(this.W.style.right="",this.W.style.left=K+"px"):(this.W.style.right="",this.W.style.left=I.width*.1-15+"px"));this.W.style.top=I.height*.5+15+"px";am0(this,this.S?this.G:J)}; g.u.A1=function(W,J,K){K=K===void 0?null:K;g.iK(this.K);this.T.start();switch(W){case -1:W="back";break;case 1:W="forward";break;default:W=""}this.element.setAttribute("data-side",W);this.W.style.width="0";this.W.style.height="0";g.lK(this.element,"ytp-chapter-seek");this.updateValue("seekText",J);this.updateValue("seekTime","");J=this.T8("ytp-seek-icon");if(K){a:if(K){switch(K){case "PREMIUM_STANDALONE":K=CHL();break a;case "PREMIUM_STANDALONE_CAIRO":K=wMX();break a}K=void 0}else K=null;this.updateValue("seekIcon", K);J.style.display="inline-block"}else J.style.display="none"};g.N(u4A,CS);g.u=u4A.prototype;g.u.iL=function(W){this.SZ||(this.SZ=new OR(this.X),g.B(this,this.SZ));var J,K;if((J=this.sT)==null?0:(K=J.menu)==null?0:K.menuRenderer)this.SZ.open(this.sT.menu.menuRenderer,W.target),W.preventDefault()}; g.u.P1=function(){return!!this.W}; g.u.Yk=function(){return!!this.W}; g.u.UY=function(W){W.target===this.overflowButton.element?W.preventDefault():(this.fE&&this.X.qN("innertubeCommand",this.fE),this.wu(!1))}; g.u.OO=function(){this.wu(!0);var W,J;((W=this.W)==null?0:(J=W.bannerData)==null?0:J.dismissedStatusKey)&&this.oG.push(this.W.bannerData.dismissedStatusKey);this.o_()}; g.u.ZQ=function(){this.o_();SA(this)}; g.u.hJy=function(W){var J=this,K;if(W.id!==((K=this.W)==null?void 0:K.identifier)){this.o_();K=g.d(this.XW);for(var I=K.next();!I.done;I=K.next()){var q=I.value,S=void 0,p=void 0;if((I=(S=q)==null?void 0:(p=S.bannerData)==null?void 0:p.itemData)&&q.identifier===W.id){p=S=void 0;var n=((S=q)==null?void 0:(p=S.bannerData)==null?void 0:p.dismissedStatusKey)||"";if(this.oG.includes(n))return;this.W=q;this.banner.element.setAttribute("aria-label",I.accessibilityLabel||"");I.trackingParams&&(this.T=!0, this.X.setTrackingParams(this.badge.element,I.trackingParams));this.C.show();Qr(this);this.vS.WN(!I.stayInApp);$2T(this);d2L(this);qG(this);this.fE=g.m(I.onTapCommand,Rh);if(q=g.m(I.menuOnTap,Rh))this.sT=g.m(q,K6e);q=void 0;this.banner.update({thumbnail:(q=(I.thumbnailSources||[])[0])==null?void 0:q.url,title:I.productTitle,price:I.priceReplacementText?I.priceReplacementText:I.price,salesOriginalPrice:Z7Q(this),priceDropReferencePrice:QmQ(this),promotionText:U2I(this),priceA11yText:CvD(this),affiliateDisclaimer:I.affiliateDisclaimer, vendor:wJD(this)});n=p=S=q=void 0;((q=I)==null?0:(S=q.hiddenProductOptions)==null?0:S.showDropCountdown)&&((p=I)==null?0:(n=p.hiddenProductOptions)==null?0:n.dropTimestampMs)&&(this.SI=new g.P0(function(){Gyv(J)},1E3),this.vS.hide(),this.countdownTimer.show(),Gyv(this)); this.X.Y("web_player_enable_featured_product_banner_exclusives_on_desktop")&&NSQ(this)&&(this.Fz=new g.P0(function(){yCL(J)},1E3),yCL(this))}}this.X.getRootNode()&&g.lK(this.X.getRootNode(),"ytp-featured-product-shown")}}; g.u.o_=function(){this.W&&(this.W=void 0,this.nU(),this.X.getRootNode()&&g.A5(this.X.getRootNode(),"ytp-featured-product-shown"))}; g.u.onVideoDataChange=function(W,J){var K=this;W==="dataloaded"&&SA(this);var I,q,S;W=g.m((I=J.getWatchNextResponse())==null?void 0:(q=I.playerOverlays)==null?void 0:(S=q.playerOverlayRenderer)==null?void 0:S.productsInVideoOverlayRenderer,iwo);this.overflowButton.show();this.dismissButton.hide();var p=W==null?void 0:W.featuredProductsEntityKey;this.trendingOfferEntityKey=W==null?void 0:W.trendingOfferEntityKey;this.XW.length||(gyy(this,p),qG(this));var n;(n=this.iU)==null||n.call(this);this.iU=g.Ie.subscribe(function(){gyy(K, p);qG(K)})}; g.u.lO=function(){SA(this);$2T(this);d2L(this);CS.prototype.lO.call(this)};g.N(Vjv,g.k);Vjv.prototype.onClick=function(){this.X.logClick(this.element,this.K)};g.N(Eyc,g.oV);g.u=Eyc.prototype;g.u.show=function(){g.oV.prototype.show.call(this);this.X.publish("infopaneldetailvisibilitychange",!0);this.X.logVisibility(this.element,!0);eGD(this,!0)}; g.u.hide=function(){g.oV.prototype.hide.call(this);this.X.publish("infopaneldetailvisibilitychange",!1);this.X.logVisibility(this.element,!1);eGD(this,!1)}; g.u.getId=function(){return this.T}; g.u.LB=function(){return this.itemData.length}; g.u.onVideoDataChange=function(W,J){if(J){var K,I,q,S;this.update({title:((K=J.qY)==null?void 0:(I=K.title)==null?void 0:I.content)||"",body:((q=J.qY)==null?void 0:(S=q.bodyText)==null?void 0:S.content)||""});var p;W=((p=J.qY)==null?void 0:p.trackingParams)||null;this.X.setTrackingParams(this.element,W);p=g.d(this.itemData);for(W=p.next();!W.done;W=p.next())W.value.dispose();this.itemData=[];var n;if((n=J.qY)==null?0:n.ctaButtons)for(J=g.d(J.qY.ctaButtons),n=J.next();!n.done;n=J.next())if(n=g.m(n.value, Ywj))n=new Vjv(this.X,n,this.W),n.Nk&&(this.itemData.push(n),n.MN(this.items))}}; g.u.lO=function(){this.hide();g.oV.prototype.lO.call(this)};g.N(BSy,g.k);g.u=BSy.prototype;g.u.onVideoDataChange=function(W,J){b7I(this,J);this.IB&&rCX(this,this.IB)}; g.u.dc=function(W){var J=g.E(this.X.getVideoData());this.videoId!==J.videoId&&b7I(this,J);rCX(this,W.state);this.IB=W.state}; g.u.HW=function(W){(this.G=W)?this.hide():this.W&&this.show()}; g.u.ZY=function(){this.K||this.oZ();this.showControls=!0}; g.u.Yr=function(){this.K||this.ZJ();this.showControls=!1}; g.u.oZ=function(){var W,J=(W=this.X)==null?void 0:W.getPlayerSize();W=J.width<380;var K;J=J.height<(((K=this.X)==null?0:K.isEmbedsShortsMode())?400:280);var I,q;(((I=this.X)==null?0:I.getPlayerStateObject().isCued())||((q=this.X)==null?0:g.z(q.getPlayerStateObject(),1024)))&&W&&J||!this.W||this.G||(this.fade.show(),this.X.publish("infopanelpreviewvisibilitychange",!0),this.X.logVisibility(this.element,!0))}; g.u.ZJ=function(){this.W&&!this.G&&(this.fade.hide(),this.X.publish("infopanelpreviewvisibilitychange",!1),this.X.logVisibility(this.element,!1))}; g.u.oAy=function(){this.K=!1;this.showControls||this.ZJ()};var Scx={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Scx).reduce(function(W,J){W[Scx[J]]=J;return W},{}); var pDG={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(pDG).reduce(function(W,J){W[pDG[J]]=J;return W},{}); var lQe={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(lQe).reduce(function(W,J){W[lQe[J]]=J;return W},{});var nGo,AnG;nGo=[{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"}];AnG=[{option:0,text:pe(0)},{option:.25,text:pe(.25)},{option:.5,text:pe(.5)},{option:.75,text:pe(.75)},{option:1,text:pe(1)}]; g.D2=[{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:nGo},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:pe(.5)},{option:-1,text:pe(.75)},{option:0,text:pe(1)},{option:1, text:pe(1.5)},{option:2,text:pe(2)},{option:3,text:pe(3)},{option:4,text:pe(4)}]},{option:"background",text:"Color de fondo",options:nGo},{option:"backgroundOpacity",text:"Opacidad de fondo",options:AnG},{option:"windowColor",text:"Color de la ventana",options:nGo},{option:"windowOpacity",text:"Opacidad de la ventana",options:AnG},{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:pe(.25)},{option:.5,text:pe(.5)},{option:.75,text:pe(.75)},{option:1,text:pe(1)}]}];var DQL=[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.N(YzI,g.BW);g.u=YzI.prototype; g.u.Ne=function(W){W.repeat||(this.G.fM=!1);var J=!1,K=W.keyCode,I=wi(W),q=!W.altKey&&!W.ctrlKey&&!W.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||DQL.includes(K)),S=!1,p=!1,n=this.api.J();W.defaultPrevented?(q=!1,p=!0):n.X0&&!this.api.isMutedByEmbedsMutedAutoplay()&&(q=!1);if(K===9)J=!0;else{if(I)switch(K){case 32:case 13:if(I.tagName==="BUTTON"||I.tagName==="A"||I.tagName==="INPUT")J=!0,q=!1;else if(q){var A=I.getAttribute("role");!A||A!=="option"&&A!=="button"&&A.indexOf("menuitem")!==0|| (J=!0,I.click(),S=!0)}break;case 37:case 39:case 36:case 35:J=I.getAttribute("role")==="slider";break;case 38:case 40:A=I.getAttribute("role"),I=K===38?I.previousSibling:I.nextSibling,A==="slider"?J=!0:q&&(A==="option"?(I&&I.getAttribute("role")==="option"&&I.focus(),S=J=!0):A&&A.indexOf("menuitem")===0&&(I&&I.hasAttribute("role")&&I.getAttribute("role").indexOf("menuitem")===0&&I.focus(),S=J=!0))}if(q&&!S)switch(K){case 38:S=Math.min(this.api.getVolume()+5,100);cP(this.ZV,S,!1);this.api.setVolume(S); p=S=!0;break;case 40:S=Math.max(this.api.getVolume()-5,0);cP(this.ZV,S,!0);this.api.setVolume(S);p=S=!0;break;case 36:this.api.Cc()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),p=S=!0);break;case 35:this.api.Cc()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),p=S=!0)}}J&&ne(this,!0);(J||p)&&this.Bw.UR();(S||q&&this.handleGlobalKeyDown(K,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code,W.repeat))&&W.preventDefault();n.N&&(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.YC("onKeyPress",W))}; g.u.md=function(W){var J=W.keyCode;(!this.api.Y("web_player_spacebar_control_bugfix")||this.api.Y("web_player_spacebar_control_bugfix")&&!this.G.nR)&&this.handleGlobalKeyUp(J,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code)&&W.preventDefault()}; g.u.handleGlobalKeyUp=function(W,J,K,I,q,S,p){this.api.publish("keyboardserviceglobalkeyup",{keyCode:W,shiftKey:J,ctrlKey:K,altKey:I,metaKey:q,key:S,code:p});J=!1;if(this.G.fM)return J;(S=g.Hl(this.api.Xz()))&&(S=S.lC)&&S.W7&&(S.hE(W),J=!0);switch(W){case 9:ne(this,!0);J=!0;break;case 32:if(this.api.Y("web_speedmaster_spacebar_control")&&(!this.api.Y("web_player_spacebar_control_bugfix")&&!this.G.nR||this.api.Y("web_player_spacebar_control_bugfix"))&&!this.api.J().X0){var n,A;W=(n=this.progressBar)== null?void 0:(A=n.K)==null?void 0:A.isEnabled;J=this.Lz(W)}break;case 39:(KT?I:K)&&!q&&this.api.Cc()&&this.api.Y("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),n=(n=this.api.getVideoData())?n.DL:[],A=Lqy(n,this.api.getCurrentTime()*1E3),A!==-1&&this.W!=null&&(this.W.A1(1,n[A].title),this.api.seekTo(n[A].startTime/1E3,void 0,void 0,void 0,52),J=!0))}return J}; g.u.handleGlobalKeyDown=function(W,J,K,I,q,S,p,n){n||(this.G.fM=!1);var A=!1,D=this.api.J();if(D.X0&&!this.api.isMutedByEmbedsMutedAutoplay())return A;var f=g.Hl(this.api.Xz());if(f&&(f=f.lC)&&f.W7)switch(W){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:A=f.OG(W)}D.S||A||(A=S||String.fromCharCode(W).toLowerCase(),this.K+=A,"awesome".indexOf(this.K)===0||this.api.Y("web_player_rtr_ctrls")&&"bday".indexOf(this.K)===0?(A=!0,4===this.K.length&&this.K==="bday"&&this.api.Y("web_player_rtr_ctrls")&& (kfH(this.j),this.Bw.UR()),7===this.K.length&&this.K==="awesome"&&ZqX(this.api.getRootNode(),"ytp-color-party")):(this.K=A,A="awesome".indexOf(this.K)===0||"bday".indexOf(this.K)===0));if(!A&&(!this.api.isMutedByEmbedsMutedAutoplay()||DQL.includes(W))){var h=this.api.getVideoData(),t,F;f=(t=this.progressBar)==null?void 0:(F=t.K)==null?void 0:F.isEnabled;t=h?h.DL:[];F=KT?I:K;switch(W){case 80:J&&!D.Y3&&(s0(this.ZV,MxX(),"Anterior"),this.api.previousVideo(),A=!0);break;case 78:J&&!D.Y3&&(s0(this.ZV, C$(),"Siguiente"),this.api.nextVideo(),A=!0);break;case 74:this.api.Cc()&&(this.api.startSeekCsiAction(),this.W?this.api.Y("enable_key_press_seek_logging")?(A=As(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.W.JI(-1,10,A)):this.W.JI(-1,10):s0(this.ZV,{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{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),A=!0);break;case 76:this.api.Cc()&&(this.api.startSeekCsiAction(),this.W?this.api.Y("enable_key_press_seek_logging")?(A=As(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.W.JI(1,10,A)):this.W.JI(1,10):s0(this.ZV,{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{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),A=!0);break;case 37:this.api.Cc()&&(this.api.startSeekCsiAction(),F?(F=kyQ(t,this.api.getCurrentTime()*1E3),F!==-1&&this.W!=null&&(this.W.A1(-1,t[F].title),this.api.seekTo(t[F].startTime/1E3,void 0,void 0,void 0,53),A=!0)):(this.W?this.api.Y("enable_key_press_seek_logging")?(A=As(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.W.JI(-1,5,A)):this.W.JI(-1,5):s0(this.ZV,{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{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),A=!0));break;case 39:this.api.Cc()&&(this.api.startSeekCsiAction(),F?this.api.Y("web_enable_keyboard_shortcut_for_timely_actions")||(F=Lqy(t,this.api.getCurrentTime()*1E3),F!==-1&&this.W!=null&&(this.W.A1(1,t[F].title),this.api.seekTo(t[F].startTime/1E3,void 0,void 0,void 0,52),A=!0)):(this.W!=null?this.api.Y("enable_key_press_seek_logging")?(A=As(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.W.JI(1,5,A)):this.W.JI(1, 5):s0(this.ZV,{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{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),A=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),cP(this.ZV,this.api.getVolume(),!1)):(this.api.mute(),cP(this.ZV,0,!0));A=!0;break;case 32:A=this.api.Y("web_speedmaster_spacebar_control")?!this.api.J().Y3:this.Lz(f);break;case 75:A=this.Lz(f);break;case 190:J?D.enableSpeedOptions&&cCX(this)&&(A=this.api.getPlaybackRate(),this.api.setPlaybackRate(A+.25,!0),LBQ(this.ZV,!1),A=!0):this.api.Cc()&&(this.step(1),A=!0);break;case 188:J? D.enableSpeedOptions&&cCX(this)&&(A=this.api.getPlaybackRate(),this.api.setPlaybackRate(A-.25,!0),LBQ(this.ZV,!0),A=!0):this.api.Cc()&&(this.step(-1),A=!0);break;case 70:jgL(this.api)&&(this.api.toggleFullscreen().catch(function(){}),A=!0); break;case 27:f?(this.progressBar.DS(),A=!0):this.S()&&(A=!0)}if(D.controlsType!=="3")switch(W){case 67:g.M9(this.api.Xz())&&(D=this.api.getOption("captions","track"),this.api.toggleSubtitles(),kP0(this.ZV,!D||D&&!D.displayName),A=!0);break;case 79:jA(this,"textOpacity");break;case 87:jA(this,"windowOpacity");break;case 187:case 61:jA(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:jA(this,"fontSizeIncrement",!0,!0)}var a;J||K||I||(W>=48&&W<=57?a=W-48:W>=96&&W<=105&&(a=W-96));a!=null&&this.api.Cc()&& (this.api.startSeekCsiAction(),D=this.api.getProgressState(),this.api.seekTo(a/10*(D.seekableEnd-D.seekableStart)+D.seekableStart,void 0,void 0,void 0,81),A=!0);A&&this.Bw.UR()}this.api.publish("keyboardserviceglobalkeydown",{keyCode:W,shiftKey:J,ctrlKey:K,altKey:I,metaKey:q,key:S,code:p,repeat:n},this.G);return A}; g.u.step=function(W){this.api.Cc();if(this.api.getPlayerStateObject().isPaused()){var J=g.E(this.api.getVideoData()).K;J&&(J=J.video)&&this.api.seekBy(W/(J.fps||30),void 0,void 0,W>0?77:78)}}; g.u.Lz=function(W){if(!this.api.J().Y3){var J;var K,I=(J=this.api.getVideoData())==null?void 0:(K=J.getPlayerResponse())==null?void 0:K.playabilityStatus;if(I){var q;J=((q=g.m(I.miniplayer,Azo))==null?void 0:q.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else J=!1;J&&this.api.qN("onExpandMiniplayer");W?this.progressBar.yf():(W=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.ZV.XS(W),W?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.u.lO=function(){g.iK(this.T);g.BW.prototype.lO.call(this)};g.N(g.fe,g.k);g.fe.prototype.kI=iD(11); g.fe.prototype.hs=function(){var W=this.X.J(),J=W.G||this.X.Y("web_player_hide_overflow_button_if_empty_menu")&&this.Mn.isEmpty();W=g.xK(W)&&g.OY(this.X)&&g.z(this.X.getPlayerStateObject(),128);var K=this.X.getPlayerSize();this.visible=this.X.RX()&&!W&&K.width>=240&&!g.IV(g.E(this.X.getVideoData()))&&!J&&!this.W&&!this.X.isEmbedsShortsMode();g.jN(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.X.fQ();this.X.logVisibility(this.element,this.visible&&this.j)}; g.fe.prototype.Ai=function(W){g.k.prototype.Ai.call(this,W);this.X.logVisibility(this.element,this.visible&&W)}; g.fe.prototype.lO=function(){g.k.prototype.lO.call(this);g.A5(this.element,"ytp-overflow-button-visible")};g.N(PvQ,g.oV);g.u=PvQ.prototype;g.u.B0=function(W){W=wi(W);g.po(this.element,W)&&(g.po(this.W,W)||g.po(this.closeButton,W)||k0(this))}; g.u.ZJ=function(){g.oV.prototype.ZJ.call(this);this.X.g8(this.element)}; g.u.show=function(){this.W7&&this.X.publish("OVERFLOW_PANEL_OPENED");g.oV.prototype.show.call(this);this.element.setAttribute("aria-modal","true");WCy(this,!0)}; g.u.hide=function(){g.oV.prototype.hide.call(this);this.element.removeAttribute("aria-modal");WCy(this,!1)}; g.u.onFullscreenToggled=function(W){!W&&this.a5()&&k0(this)}; g.u.isEmpty=function(){return this.actionButtons.length===0}; g.u.focus=function(){for(var W=g.d(this.actionButtons),J=W.next();!J.done;J=W.next())if(J=J.value,J.W7){J.focus();break}};g.N(ify,g.k);ify.prototype.onClick=function(W){g.l$(W,this.api)&&this.api.playVideoAt(this.index)};g.N(J2H,g.oV);g.u=J2H.prototype;g.u.show=function(){g.oV.prototype.show.call(this);this.W.D(this.api,"videodatachange",this.zU);this.W.D(this.api,"onPlaylistUpdate",this.zU);this.zU()}; g.u.hide=function(){g.oV.prototype.hide.call(this);g.$d(this.W);this.updatePlaylist(null)}; g.u.zU=function(){this.updatePlaylist(this.api.getPlaylist());this.api.J().G&&(this.T8("ytp-playlist-menu-title-name").removeAttribute("href"),this.G&&(this.aZ(this.G),this.G=null))}; g.u.eC=function(){var W=this.playlist,J=W.author,K=J?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",I={CURRENT_POSITION:String(W.index+1),PLAYLIST_LENGTH:String(W.getLength())};J&&(I.AUTHOR=J);this.update({title:W.title,subtitle:g.dF(K,I),playlisturl:this.api.getVideoUrl(!0)});J=W.K;if(J===this.T)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[W.index];else{K=g.d(this.playlistData);for(I=K.next();!I.done;I=K.next())I.value.dispose(); K=W.getLength();this.playlistData=[];for(I=0;I=this.K&&!W.G&&!J.isAd()&&!this.api.isEmbedsShortsMode()}else W=!1;this.visible=W;this.WN(this.visible);g.jN(this.element,"ytp-search-button-visible",this.visible);g.jN(this.element,"ytp-show-search-title",!this.api.RX());this.api.logVisibility(this.element,this.visible&&this.j)}; a1.prototype.Ai=function(W){g.k.prototype.Ai.call(this,W);this.api.logVisibility(this.element,this.visible&&W)};g.N(uM,g.k);uM.prototype.Cj=function(W,J,K,I){DuL(this,W,I)}; uM.prototype.JI=function(W,J,K){DuL(this,W,J);K&&(W=W===-1?this.G.visualElement:this.W.visualElement,K={seekData:K},(J=g.M_())&&g.X0(W3)(void 0,J,W,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",K,void 0))}; uM.prototype.A1=function(W,J,K){DuL(this,W);J&&fcv(this,J,K)}; uM.prototype.hide=function(){g.k.prototype.hide.call(this);this.K=0;this.Z=void 0};g.N(g.NG,g.k);g.u=g.NG.prototype;g.u.HU=iD(8); g.u.onClick=function(){var W=this,J=this.api.J(),K=g.E(this.api.getVideoData(this.api.getPresentingPlayerType())),I=this.api.getPlaylistId();J=this.api.Y("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):J.getVideoUrl(K.videoId,I,void 0,!0);if(navigator.share)try{var q=navigator.share({title:K.title,url:J});q instanceof Promise&&q.catch(function(S){tDQ(W,S)})}catch(S){S instanceof Error&&tDQ(this,S)}else this.W.k_(),k0(this.G,this.element,!1); this.api.logClick(this.element)}; g.u.hs=function(){var W=this.api.J(),J=this.api.isEmbedsShortsMode();g.jN(this.element,"ytp-show-share-title",g.xK(W)&&!J);this.W.aX()&&J?(W=(this.api.UI().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.bj(this.element,"right",W+"px")):J&&g.bj(this.element,"right","0px");this.updateValue("icon",{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{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=hYH(this);g.jN(this.element,"ytp-share-button-visible",this.visible);this.WN(this.visible);this.tooltip.fQ();this.api.logVisibility(this.element,hYH(this)&&this.j)}; g.u.Ai=function(W){g.k.prototype.Ai.call(this,W);this.api.logVisibility(this.element,this.visible&&W)}; g.u.lO=function(){g.k.prototype.lO.call(this);g.A5(this.element,"ytp-share-button-visible")};g.N(acy,g.oV);g.u=acy.prototype;g.u.DY=function(W){W=wi(W);g.po(this.S,W)||g.po(this.closeButton,W)||k0(this)}; g.u.ZJ=function(){g.oV.prototype.ZJ.call(this);this.tooltip.g8(this.element);this.api.logVisibility(this.W,!1);for(var W=g.d(this.G),J=W.next();!J.done;J=W.next())J=J.value,this.api.hasVe(J.element)&&this.api.logVisibility(J.element,!1)}; g.u.show=function(){var W=this.W7;g.oV.prototype.show.call(this);this.hs();W||this.api.qN("onSharePanelOpened")}; g.u.pSh=function(){this.W7&&this.hs()}; g.u.hs=function(){var W=this;g.lK(this.element,"ytp-share-panel-loading");g.A5(this.element,"ytp-share-panel-fail");var J=g.E(this.api.getVideoData()),K=this.api.getPlaylistId()&&this.T.checked;J.getSharePanelCommand&&ce(g.E(this.api.d$()),J.getSharePanelCommand,{includeListId:K}).then(function(I){W.Iu()||(g.A5(W.element,"ytp-share-panel-loading"),duD(W,I))}); J=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",J);this.updateValue("linkText",J);this.updateValue("shareLinkWithUrl",g.dF("Compartir v\u00ednculo $URL",{URL:J}));Do(this.W);this.api.logVisibility(this.W,!0)}; g.u.onFullscreenToggled=function(W){!W&&this.a5()&&k0(this)}; g.u.focus=function(){this.W.focus()}; g.u.lO=function(){g.oV.prototype.lO.call(this);ukL(this)};g.N(ZfH,CS);g.u=ZfH.prototype;g.u.lO=function(){gCT(this);CS.prototype.lO.call(this)}; g.u.UY=function(W){W.target!==this.dismissButton.element&&(this.wu(!1),this.X.qN("innertubeCommand",this.onClickCommand))}; g.u.OO=function(){this.FW=!0;this.wu(!0);this.nU()}; g.u.WHh=function(W){this.Z=W;this.nU()}; g.u.onVideoDataChange=function(W,J){if(W=!!J.videoId&&this.videoId!==J.videoId)this.videoId=J.videoId,this.FW=!1,this.G8=!0,this.N=this.sI=!1,gCT(this),MDQ(this,!1),this.K=this.W=!1,ys(this),QSD(this);if(W||!J.videoId)this.PS=this.T=!1;var K,I;if(J==null?0:(K=J.getPlayerResponse())==null?0:(I=K.videoDetails)==null?0:I.isLiveContent)this.Ww(!1);else{var q,S,p;J=g.m((q=J.getWatchNextResponse())==null?void 0:(S=q.playerOverlays)==null?void 0:(p=S.playerOverlayRenderer)==null?void 0:p.productsInVideoOverlayRenderer, iwo);this.Z=this.enabled=!1;if(J){if(q=J==null?void 0:J.featuredProductsEntityKey){S=g.Ie.getState().entities;var n;if((n=Kg(S,"featuredProductsEntity",q))==null?0:n.productsData){this.Ww(!1);return}}this.enabled=!0;if(!this.T){var A;n=(A=J.badgeInteractionLogging)==null?void 0:A.trackingParams;(this.T=!!n)&&this.X.setTrackingParams(this.badge.element,n||null)}if(!this.PS){var D;if(this.PS=!((D=J.dismissButton)==null||!D.trackingParams)){var f;this.X.setTrackingParams(this.dismissButton.element,((f= J.dismissButton)==null?void 0:f.trackingParams)||null)}}J.isContentForward&&(A=J.productsData,MDQ(this,!0),QSD(this),A=wEQ(this,A),D=[],A.length>0&&D.push(A[0]),A.length>1&&(f=new g.k({V:"div",B:"ytp-suggested-action-more-products-icon"}),g.B(this,f),D.push(f),D.push.apply(D,g.w(A.slice(1)))),this.S=new g.k({V:"div",L:D,B:"ytp-suggested-action-content-forward-container"}),g.B(this,this.S),this.jZ.element.append(this.S.element));this.text=g.uG(J.text);var h;if(A=(h=J.dismissButton)==null?void 0:h.a11yLabel)this.D0= g.uG(A);this.onClickCommand=J.onClickCommand;this.timing=J.timing;this.qk()}uGA(this);Qr(this);this.nU()}}; g.u.P1=function(){return!this.Z&&this.enabled&&!this.FW&&!this.X.RX()&&!this.Tx&&(this.N||this.G8)}; g.u.nH=function(W){CS.prototype.nH.call(this,W);if(this.W||this.K)this.timing&&dr(this.timing.preview)&&(this.W=!1,ys(this),this.K=!1,ys(this),this.X.iK("shopping_overlay_preview_collapsed"),this.X.iK("shopping_overlay_preview_expanded"),W=UB(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),dr(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.X.iK("shopping_overlay_expanded"),W.end=this.timing.expanded.endSec*1E3),this.X.qk([W])), this.sI=!0,Qr(this);ys(this)}; g.u.Ww=function(W){(this.N=W)?(Zf(this),Qr(this,!1)):(gCT(this),this.Y3.start());this.nU()}; g.u.qk=function(W){var J=this.timing;W=(W===void 0?0:W)+this.X.getCurrentTime();var K=[],I=J.visible,q=J.preview;J=J.expanded;dr(I)&&(y2A(I,W),K.push(UB(I.startSec,I.endSec,"shopping_overlay_visible")));dr(q)&&(y2A(q,W),I=q.startSec+1,K.push(UB(q.startSec,I,"shopping_overlay_preview_collapsed")),K.push(UB(I,q.endSec,"shopping_overlay_preview_expanded")));dr(J)&&(y2A(J,W),K.push(UB(J.startSec,J.endSec,"shopping_overlay_expanded")));this.X.qk(K)}; g.u.nU=function(){CS.prototype.nU.call(this);this.X.getRootNode()&&g.jN(this.X.getRootNode(),"ytp-shopping-pill-shown",this.P1())};g.N(xuI,g.k); xuI.prototype.hs=function(){var W=this.api.J();this.WN(g.xK(W)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.W7);var J=g.E(this.api.getVideoData()),K=!1;this.api.getPresentingPlayerType()===2?K=!!J.videoId&&!!J.isListed&&!!J.author&&!!J.sT&&!!J.profilePicture:g.xK(W)&&(K=!!J.videoId&&!!J.sT&&!!J.profilePicture&&!g.IV(J)&&!W.G&&!(W.Z&&this.api.getPlayerSize().width<200));var I=J.profilePicture;W=g.xK(W)?J.expandedTitle:J.author;I=I=== void 0?"":I;W=W===void 0?"":W;K?(this.K!==I&&(this.W.style.backgroundImage="url("+I+")",this.K=I),this.updateValue("channelLogoLabel",g.dF("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:W})),g.lK(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.A5(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.W,K&&this.j);this.api.logVisibility(this.channelName,K&&this.j);this.subscribeButton&&(this.subscribeButton.channelId=J.qB);this.updateValue("expandedTitle",J.expandedTitle)};g.N(Z2,g.oV);Z2.prototype.show=function(){g.oV.prototype.show.call(this);this.W.start()}; Z2.prototype.hide=function(){g.oV.prototype.hide.call(this);this.W.stop()}; Z2.prototype.iJ=function(W,J){W==="dataloaded"&&((this.W$=J.W$,this.Os=J.Os,isNaN(this.W$)||isNaN(this.Os))?this.G&&(this.X.iK("intro"),this.X.removeEventListener(g.n9("intro"),this.Z),this.X.removeEventListener(g.AN("intro"),this.S),this.X.removeEventListener("onShowControls",this.T),this.hide(),this.G=!1):(this.X.addEventListener(g.n9("intro"),this.Z),this.X.addEventListener(g.AN("intro"),this.S),this.X.addEventListener("onShowControls",this.T),W=new g.p9(this.W$,this.Os,{priority:9,namespace:"intro"}), this.X.qk([W]),this.G=!0))};g.N(Qs,g.k);Qs.prototype.onClick=function(){this.X.VH()}; Qs.prototype.hs=function(){var W=!0;g.xK(this.X.J())&&(W=W&&this.X.UI().getPlayerSize().width>=480);this.WN(W);this.updateValue("icon",this.X.UM()?{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,U:{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"}}]}: {V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.N(TBD,g.k);TBD.prototype.lO=function(){this.W=null;g.k.prototype.lO.call(this)};g.N(Ce,g.k);Ce.prototype.onClick=function(){this.X.qN("innertubeCommand",this.K)}; Ce.prototype.C=function(W){W!==this.S&&(this.update({title:W,ariaLabel:W}),this.S=W);W?this.show():this.hide()}; Ce.prototype.N=function(){this.W.disabled=this.K==null;g.jN(this.W,"ytp-chapter-container-disabled",this.W.disabled);this.ZH()};g.N(wr,Ce);wr.prototype.onClickCommand=function(W){g.m(W,KK)&&this.ZH()}; wr.prototype.updateVideoData=function(W,J){var K,I,q;W=g.m((K=J.getWatchNextResponse())==null?void 0:(I=K.playerOverlays)==null?void 0:(q=I.playerOverlayRenderer)==null?void 0:q.decoratedPlayerBarRenderer,g9);K=g.m(W==null?void 0:W.playerBarActionButton,g.rD);this.X.Y("web_player_updated_entrypoint")&&(this.Z=xR(K==null?void 0:K.text));this.K=K==null?void 0:K.command;Ce.prototype.N.call(this)}; wr.prototype.ZH=function(){var W=this.X.Y("web_player_updated_entrypoint")?this.Z:"",J=this.T.W,K,I=((K=this.X.getLoopRange())==null?void 0:K.type)==="clips";if(J.length>1&&!I){W=this.X.getProgressState().current*1E3;K=lM(J,W);W=J[K].title||"Cap\u00edtulos";if(K!==this.currentIndex||this.G)this.X.qN("innertubeCommand",J[K].onActiveCommand),this.currentIndex=K;this.G=!1}else this.G=!0;Ce.prototype.C.call(this,W)};g.N(MG,g.to);MG.prototype.K=function(){var W;(W=this.element.parentElement)==null||W.classList.contains("ytp-right-controls-left");(this.W=!this.W)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; MG.prototype.isExpanded=function(){return this.W};g.N(gr,g.k);gr.prototype.G=function(W){g.z(W.state,32)?VDQ(this,this.api.EW()):this.W7&&(g.z(W.state,16)||g.z(W.state,1))||this.fade.hide()}; gr.prototype.oo=function(){var W=this.api.getPlayerStateObject();(g.z(W,32)||g.z(W,16))&&ECD(this)}; gr.prototype.T=function(){this.frameIndex=NaN;ECD(this)}; gr.prototype.hide=function(){this.W&&VDQ(this,null);g.k.prototype.hide.call(this)};g.N(eYI,g.k);g.u=eYI.prototype;g.u.onClick=function(){var W=this;if(this.X.J().eZ||this.X.J().Z){this.X.logClick(this.element);try{this.X.toggleFullscreen().catch(function(J){W.zt(J)})}catch(J){this.zt(J)}}else k0(this.message,this.element,!0)}; g.u.zt=function(W){String(W).includes("fullscreen error")?g.ET(W):g.Va(W);this.V6()}; g.u.V6=function(){this.disable();this.message.oZ(this.element,!0)}; g.u.LW=function(){Nk()===this.X.getRootNode()?this.G.start():(this.G.stop(),this.message&&this.message.hide())}; g.u.Er=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var W=window.screen.width*.9,J=window.screen.height*.9,K=Math.max(window.outerWidth,window.innerWidth),I=Math.max(window.outerHeight,window.innerHeight);if(K>I!==W>J){var q=K;K=I;I=q}W>K&&J>I&&this.V6()}}; g.u.disable=function(){var W=this;if(!this.message){var J=(FJ(["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.oV(this.X,{V:"div",au:["ytp-popup","ytp-generic-popup"], U:{role:"alert",tabindex:"0"},L:[J[0],{V:"a",U:{href:"https://support.google.com/youtube/answer/6276924",target:this.X.J().C},Ky:J[2]},J[4]]},100,!0);this.message.hide();g.B(this,this.message);this.message.subscribe("show",function(K){W.K.PO(W.message,K)}); g.EY(this.X,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.W)();this.W=null}}; g.u.hs=function(){var W=jgL(this.X),J=this.X.J().Z&&this.X.getPlayerSize().width<250;this.WN(W&&!J);var K;((K=this.X.J())==null?0:K.Y("embeds_use_parent_visibility_in_ve_logging"))?this.X.logVisibility(this.element,this.W7&&this.j):this.X.logVisibility(this.element,this.W7)}; g.u.p4=function(W){if(W){var J={V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"g",B:"ytp-fullscreen-button-corner-2",L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{V:"g",B:"ytp-fullscreen-button-corner-3",L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{V:"g",B:"ytp-fullscreen-button-corner-0",L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{V:"g", B:"ytp-fullscreen-button-corner-1",L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};W=g.Mw(this.X,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.X.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(K){g.ET(K)})}else J={V:"svg", U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"g",B:"ytp-fullscreen-button-corner-0",L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{V:"g",B:"ytp-fullscreen-button-corner-1",L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{V:"g",B:"ytp-fullscreen-button-corner-2",L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{V:"g",B:"ytp-fullscreen-button-corner-3", L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},W=g.Mw(this.X,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"});W=this.message?null:W;this.update({title:W,icon:J});this.K.wb().fQ()}; g.u.lO=function(){this.message||((0,this.W)(),this.W=null);g.k.prototype.lO.call(this)}; g.u.Ai=function(W){g.k.prototype.Ai.call(this,W);var J;((J=this.X.J())==null?0:J.Y("embeds_use_parent_visibility_in_ve_logging"))&&this.X.logVisibility(this.element,this.W7&&W)};g.N(G7,g.k);G7.prototype.onClick=function(){this.X.logClick(this.element);this.X.seekBy(this.W,!0);var W=this.W>0?1:-1,J=Math.abs(this.W),K;(K=this.X.Z4().Zs)&&K.JI(W,J);this.K.isActive()?this.G=!0:(W=["ytp-jump-spin"],this.W<0&&W.push("backwards"),this.element.classList.add.apply(this.element.classList,g.w(W)),g.XY(this.K))};g.N($H,Ce);$H.prototype.onClickCommand=function(W){g.m(W,XXe)&&this.ZH()}; $H.prototype.updateVideoData=function(){var W,J;this.K=(W=bfD(this))==null?void 0:(J=W.onTap)==null?void 0:J.innertubeCommand;Ce.prototype.N.call(this)}; $H.prototype.ZH=function(){var W="",J=this.T.Z,K,I=(K=bfD(this))==null?void 0:K.headerTitle;K=I?g.uG(I):"";var q;I=((q=this.X.getLoopRange())==null?void 0:q.type)==="clips";J.length>1&&!I&&(W=this.X.getProgressState().current*1E3,q=oyL(J,W),W=q!=null?J[q].title:K,q!=null&&q!==this.currentIndex&&(this.X.qN("innertubeCommand",J[q].onActiveCommand),this.currentIndex=q));Ce.prototype.C.call(this,W)};g.N(xH,g.k);xH.prototype.onClick=function(){this.X.qN("onCollapseMiniplayer");this.X.logClick(this.element)}; xH.prototype.hs=function(){this.visible=!this.X.isFullscreen();this.WN(this.visible);this.X.logVisibility(this.element,this.visible&&this.j)}; xH.prototype.Ai=function(W){g.k.prototype.Ai.call(this,W);this.X.logVisibility(this.element,this.visible&&W)};g.N(OB,g.k);OB.prototype.init=function(){this.updateValue("minvalue",this.S);this.updateValue("maxvalue",this.Z);this.updateValue("stepvalue",this.N);this.updateValue("slidervalue",this.W);BBv(this,this.W)}; OB.prototype.T=function(){T7(this,Number(this.K.value));this.K.focus()}; OB.prototype.G=function(W){if(!W.defaultPrevented){switch(W.code){case "ArrowDown":W=-this.N;break;case "ArrowUp":W=this.N;break;default:return}T7(this,Math.min(this.Z,Math.max(Number((this.W+W).toFixed(2)),this.S)))}};g.N(Ht,OB);Ht.prototype.onVolumeChange=function(W){if(this.C)this.C=!1;else{var J=W.volume;J===0||W.muted?T7(this,0):T7(this,J)}}; Ht.prototype.T=function(){OB.prototype.T.call(this);this.PS(this.W)}; Ht.prototype.G=function(W){OB.prototype.G.call(this,W);this.PS(this.W)}; Ht.prototype.sI=function(W,J){this.C=!0;W===0||J?this.X.mute():(this.X.isMuted()&&this.X.unMute(),this.X.setVolume(W))};g.N(muy,g.k);g.N(EB,g.k);g.u=EB.prototype;g.u.rI=function(W){this.visible=W.width>=300||this.SZ;this.WN(this.visible);this.X.logVisibility(this.element,this.visible&&this.j)}; g.u.Zv=function(){this.X.J().jZ?this.X.isMuted()?this.X.unMute():this.X.mute():k0(this.message,this.element,!0);this.X.logClick(this.element)}; g.u.ECO=function(W){if(this.X.J().jZ&&this.W)if(W.target===this.G){var J;if(!this.X.jz()||((J=this.W)==null?0:J.isVisible))this.Zv();else{var K;(K=this.W)!=null&&Vs(K,!0)}}else{var I;(I=this.W)!=null&&Vs(I,!0)}else this.Zv()}; g.u.onVolumeChange=function(W){this.setVolume(W.volume,W.muted)}; g.u.setVolume=function(W,J){var K=this,I=J?0:W/100,q=this.X.J();W=I===0?1:W>50?1:0;if(this.N!==W){var S=this.XW;isNaN(S)?kkH(this,W):IUH(this.jZ,function(n){kkH(K,S+(K.N-S)*n)},250); this.N=W}I=I===0?1:0;if(this.Z!==I){var p=this.sI;isNaN(p)?zYT(this,I):IUH(this.G8,function(n){zYT(K,p+(K.Z-p)*n)},250); this.Z=I}q.jZ&&(q=g.Mw(this.X,"Silenciar","m"),I=g.Mw(this.X,"Activar sonido","m"),this.updateValue("title",J?I:q),this.update({"data-title-no-tooltip":J?"Activar sonido":"Silenciar"}),this.tooltip.fQ())}; g.u.Ai=function(W){g.k.prototype.Ai.call(this,W);this.X.logVisibility(this.element,this.visible&&W)}; var oCc=["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"],LCH=["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.N(g.eA,g.k);g.u=g.eA.prototype;g.u.onStateChange=function(W){this.Ap(W.state);var J;((J=this.X.J())==null?0:J.Y("embeds_use_parent_visibility_in_ve_logging"))&&this.X.logVisibility(this.element,this.W7&&this.j)}; g.u.Ap=function(W){var J=g.Gg(g.E(this.X.getVideoData())),K=!1;W.isOrWillBePlaying()?W=J?4:2:g.z(W,2)?(W=3,K=J):W=1;this.element.disabled=K;if(this.W!==W){J=null;switch(W){case 2:J=g.Mw(this.X,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:J="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:J=g.Mw(this.X,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:J="Detener la reproducci\u00f3n en vivo", this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}W===3?this.update({title:J,icon:vCX(W)}):(this.update({title:J}),(J=vCX(W))&&this.W&&this.W!==3?S_H(this.transition,this.element,J):this.updateValue("icon",J));this.tooltip.fQ();this.W=W}}; g.u.onVideoDataChange=function(){g.jN(this.element,"ytp-play-button-playlist",g.OY(this.X))}; g.u.Lz=function(W){this.X.logClick(this.element);if(this.X.getPlayerStateObject().isOrWillBePlaying())this.X.pauseVideo();else{if(this.X.isMinimized()&&this.X.getPlayerStateObject().isCued()){var J={},K;if((K=this.X.getVideoData())==null?0:K.S)J.cttAuthInfo={token:this.X.getVideoData().S,videoId:this.X.getVideoData().videoId};kM("direct_playback",J);this.X.VN().timerName="direct_playback"}this.X.playVideo()}this.X.isMinimized()&&(W==null?void 0:W.type)==="click"&&this.element.blur()}; g.u.Ai=function(W){g.k.prototype.Ai.call(this,W);var J;((J=this.X.J())==null?0:J.Y("embeds_use_parent_visibility_in_ve_logging"))&&this.X.logVisibility(this.element,this.W7&&W)};g.N(g.R1,g.k);g.u=g.R1.prototype;g.u.onVideoDataChange=function(){sSH(this);this.T&&(this.aZ(this.T),this.T=null);this.videoData=this.X.getVideoData(1);if(this.playlist=this.X.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.T=this.D(this.X,"progresssync",this.N$);this.G=c2Q(this);Y2X(this);this.Ut(this.X.UI().getPlayerSize())}; g.u.Ut=function(W){W=W===void 0?this.X.UI().getPlayerSize():W;var J,K=((J=this.X.getLoopRange())==null?void 0:J.type)==="clips";W=(g.OY(this.X)||this.W&&g.eM(this.X)&&!this.X.Y("web_hide_next_button")||POv(this))&&!K&&(this.W||W.width>=400);this.WN(W);this.X.logVisibility(this.element,W)}; g.u.onClick=function(W){this.X.logClick(this.element);var J=!0;this.Z?J=g.l$(W,this.X):W.preventDefault();J&&(this.W&&this.X.getPresentingPlayerType()===5?this.X.publish("ytoprerollinternstitialnext"):this.W?(tb(this.X.VN()),this.X.publish("playlistnextbuttonclicked",this.element),this.X.nextVideo(!0)):this.G?this.X.seekTo(0):(tb(this.X.VN()),this.X.publish("playlistprevbuttonclicked",this.element),this.X.previousVideo(!0)))}; g.u.N$=function(){var W=c2Q(this);W!==this.G&&(this.G=W,Y2X(this))}; g.u.lO=function(){this.K&&(this.K(),this.K=null);sSH(this);g.k.prototype.lO.call(this)};g.N(WUH,g.k);g.u=WUH.prototype;g.u.tv=function(W){this.C0(W.pageX);this.eh(W.pageX+W.deltaX);iVc(this)}; g.u.C0=function(W){this.PS=W-this.SZ}; g.u.eh=function(W){W-=this.SZ;!isNaN(this.PS)&&this.thumbnails.length>0&&(this.C=W-this.PS,this.thumbnails.length>0&&this.C!==0&&(this.G=this.N+this.C,W=S7Q(this,this.G),this.G<=this.W/2&&this.G>=q7A(this)?(this.api.seekTo(W,!1,void 0,void 0,25),g.bj(this.G8,"transform","translateX("+(this.G-this.W/2)+"px)"),XEA(this,W)):this.G=this.N))}; g.u.mF=function(){this.sI&&(this.sI.N9=!0);var W=(0,g.L)()-this.OI<300;if(Math.abs(this.C)<5&&!W){this.OI=(0,g.L)();W=this.PS+this.C;var J=this.W/2-W;this.C0(W);this.eh(W+J);iVc(this);this.api.logClick(this.S)}iVc(this)}; g.u.Av=function(){bM(this,this.api.getCurrentTime())}; g.u.play=function(W){this.api.seekTo(S7Q(this,this.G),void 0,void 0,void 0,26);this.api.playVideo();W&&this.api.logClick(this.playButton)}; g.u.onExit=function(W){this.api.seekTo(this.Y3,void 0,void 0,void 0,63);this.api.playVideo();W&&this.api.logClick(this.dismissButton)}; g.u.eI=function(W,J){this.SZ=W;this.W=J;bM(this,this.api.getCurrentTime())}; g.u.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Y3=this.api.getCurrentTime(),XEA(this,this.Y3),g.jN(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.jZ=this.D(this.element,"wheel",this.tv),this.logVisibility(this.isEnabled))}; g.u.disable=function(){this.isEnabled=!1;this.hide();g.jN(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.jZ&&this.aZ(this.jZ);this.logVisibility(this.isEnabled)}; g.u.reset=function(){this.disable();this.T=[];this.vS=!1}; g.u.logVisibility=function(W){this.api.logVisibility(this.element,W);this.api.logVisibility(this.S,W);this.api.logVisibility(this.dismissButton,W);this.api.logVisibility(this.playButton,W)}; g.u.lO=function(){for(;this.K.length;){var W=void 0;(W=this.K.pop())==null||W.dispose()}g.k.prototype.lO.call(this)}; g.N(J$Q,g.k);g.N(KUy,g.k);g.N(puQ,g.k);g.N(Bt,g.k);Bt.prototype.v7=function(W){return W==="PLAY_PROGRESS"?this.N:W==="LOAD_PROGRESS"?this.Z:W==="LIVE_BUFFER"?this.S:this.G};A$I.prototype.update=function(W,J,K,I){K=K===void 0?0:K;this.width=J;this.T=K;this.W=J-K-(I===void 0?0:I);this.position=g.Gm(W,K,K+this.W);this.G=this.position-K;this.K=this.G/this.W};g.N(DPy,g.k);g.N(g.o1,g.to);g.u=g.o1.prototype; g.u.JX=function(){var W=!1,J=this.api.getVideoData();if(!J)return W;this.api.iK("timedMarkerCueRange");h$X(this);for(var K=g.d(J.eZ),I=K.next();!I.done;I=K.next()){I=I.value;var q=void 0,S=(q=this.D0[I])==null?void 0:q.markerType;q=void 0;var p=(q=this.D0[I])==null?void 0:q.markers;if(!p)break;if(S==="MARKER_TYPE_TIMESTAMPS"){W=g.d(p);for(S=W.next();!S.done;S=W.next()){q=S.value;S=new DPy;p=void 0;S.title=((p=q.title)==null?void 0:p.simpleText)||"";S.timeRangeStartMillis=Number(q.startMillis);S.W= Number(q.durationMillis);var n=p=void 0;S.onActiveCommand=(n=(p=q.onActive)==null?void 0:p.innertubeCommand)!=null?n:void 0;dPD(this,S)}y$Q(this,this.Z);W=this.Z;S=this.Nu;q=[];p=null;for(n=0;nA&&(p.end=A);A=zGH(A,A+f);q.push(A);p=A;S[A.id]=W[n].onActiveCommand}}this.api.qk(q);this.DL=this.D0[I];W=!0}else if(S==="MARKER_TYPE_HEATMAP"){I=this.D0[I];f=D=q=A=n=p=void 0;if(I&& I.markers){S=(q=(f=I.markersMetadata)==null?void 0:(D=f.heatmapMetadata)==null?void 0:D.minHeightDp)!=null?q:0;q=(p=(A=I.markersMetadata)==null?void 0:(n=A.heatmapMetadata)==null?void 0:n.maxHeightDp)!=null?p:60;p=this.W.length;n=null;for(A=0;A=f&&a<=h&&D.push(F)}q>0&&(this.sI.style.height= q+"px");f=this.T[A];h=D;F=S;var y=q,U=A===0;U=U===void 0?!1:U;l70(f,y);t=h;a=f.K;U=U===void 0?!1:U;var Q=1E3/t.length,C=[];C.push({x:0,y:100});for(var T=0;T0&&(n=D[D.length-1])}g.Le(this)}q=void 0;S=[];if(I=(q=I.markersDecoration)==null?void 0:q.timedMarkerDecorations)for(I=g.d(I),q=I.next();!q.done;q=I.next())q=q.value,A=n=p=void 0,S.push({visibleTimeRangeStartMillis:(p=q.visibleTimeRangeStartMillis)!=null?p:-1,visibleTimeRangeEndMillis:(n=q.visibleTimeRangeEndMillis)!=null?n:-1,decorationTimeMillis:(A=q.decorationTimeMillis)!= null?A:NaN,label:q.label?g.uG(q.label):""});I=S;this.heatMarkersDecorations=I}}J.ZG=this.Z;g.jN(this.element,"ytp-timed-markers-enabled",W);return W}; g.u.eI=function(){g.Le(this);vt(this);y$Q(this,this.Z);if(this.K){var W=g.vY(this.element).x||0;this.K.eI(W,this.S)}(W=this.api.getVideoData())&&!this.api.Y("themed_progress_bar_refresh_on_resize_killswitch")&&OVD(this,W)}; g.u.onClickCommand=function(W){if(W=g.m(W,KK)){var J=W.key;W.isVisible&&J&&CJT(this,J)}}; g.u.CKZ=function(W){this.api.qN("innertubeCommand",this.Nu[W.id])}; g.u.ZH=function(){vt(this);var W=this.api.getCurrentTime();(Wthis.clipEnd)&&this.Ja()}; g.u.yV=function(W){if(!W.defaultPrevented){var J=!1;switch(W.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);J=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);J=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);J=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);J=!0;break;case 38:this.api.Y("enable_key_press_seek_logging")&&Wf(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);J=!0;break;case 40:this.api.Y("enable_key_press_seek_logging")&&Wf(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),J=!0}J&&W.preventDefault()}}; g.u.iJ=function(W,J){this.updateVideoData(J,W==="newdata")}; g.u.Bz=function(){this.iJ("newdata",g.E(this.api.getVideoData()))}; g.u.updateVideoData=function(W,J){J=J===void 0?!1:J;var K=!!W&&W.Nk();K&&(Kl(W)||$P0(this)?this.gm=!1:this.gm=W.allowLiveDvr,g.jN(this.api.getRootNode(),"ytp-enable-live-buffer",!(W==null||!Kl(W))),this.api.Y("enable_custom_playhead_parsing")&&OVD(this,W));ko0(this,this.api.Cc());if(J){if(K){J=W.clipEnd;this.clipStart=W.clipStart;this.clipEnd=J;iw(this);for(ct(this,this.PS,this.sT);this.T.length>0;)this.T.pop().dispose();this.heatMarkersDecorations=[];this.SI={};var I;(I=this.K)==null||I.reset(); Ss(this);g.jN(this.api.getRootNode(),"ytp-fine-scrubbing-exp",rr(this))}else this.Ja();this.g$()}if(W){var q;I=((q=this.xt)==null?void 0:q.type)==="clips";if(q=!W.isLivePlayback){q=g.E(this.api.getVideoData());J=g.GR(q);K=FUQ(q);var S;q=J!=null||K!=null&&K.length>0||((S=q.fS)==null?void 0:S.length)>0}if(q&&!I){S=g.E(this.api.getVideoData());I=g.GR(S);q=!1;if(I==null?0:I.markersMap){q=g.E(this.api.getVideoData());var p;q.H1=((p=I.visibleOnLoad)==null?void 0:p.key)||q.H1;p=g.d(I.markersMap);for(I=p.next();!I.done;I= p.next())I=I.value,I.key&&I.value&&(this.SI[I.key]=I.value,I.value.onChapterRepeat&&(q.TKI=I.value.onChapterRepeat));q.H1!=null&&CJT(this,q.H1);q=!0}var n;if(((n=S.fS)==null?void 0:n.length)>0){n=g.Ie.getState().entities;p=g.d(S.fS);for(I=p.next();!I.done;I=p.next()){I=I.value;K=void 0;J=(K=Kg(n,"macroMarkersListEntity",I))==null?void 0:K.markersList;var A=K=void 0;if(((K=J)==null?void 0:K.markerType)==="MARKER_TYPE_TIMESTAMPS"||((A=J)==null?void 0:A.markerType)==="MARKER_TYPE_HEATMAP")this.D0[I]= J}q=this.JX()||q}!q&&(n=FUQ(S))&&(ujD(this,n),S.DL=this.W,a7v(this));T6y(this,null);W.g2&&this.T.length===0&&(W=W.g2,n=W.key,W.isVisible&&n&&CJT(this,n))}else jTX(this),h$X(this)}vt(this)}; g.u.OV=function(W){this.N&&!g.z(W.state,32)&&this.api.getPresentingPlayerType()!==3&&this.N.cancel();var J;((J=this.K)==null?0:J.isEnabled)&&g.z(W.state,8)&&this.api.pauseVideo();W=this.api.getPresentingPlayerType()===2||!this.api.Cc()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.jN(this.wB,"ytp-hide-scrubber-button",W)}; g.u.mw=function(W){var J=!!this.xt!==!!W,K=this.xt;this.xt=W;T6y(this,K);(W==null?void 0:W.type)!=="clips"&&W||(W?(this.updateValue("clipstarticon",dVX()),this.updateValue("clipendicon",dVX()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",jxX()),this.updateValue("clipendicon",DVI()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),J&&(this.updateVideoData(this.api.getVideoData(), !0),g.Le(this)),iw(this));ct(this,this.PS,this.sT)}; g.u.KHh=function(W,J,K){var I=g.vY(this.element),q=z7(this).W,S=K?K.getAttribute("data-tooltip"):void 0,p=K?K.getAttribute("data-position"):void 0,n=K?K.getAttribute("data-offset-y"):void 0;n=n?Number(n):0;p&&(W=e$(this.G,Number(K.getAttribute("data-position")),0)*q+g.vY(this.progressBar).x);this.P7.x=W-I.x;this.P7.y=J-I.y;W=z7(this);K=XG(this,W);J=0;var A;if((A=this.api.getVideoData())==null?0:Kl(A))(A=this.api.getProgressState().seekableEnd)&&K>A&&(K=A,W.position=e$(this.G,A)*z7(this).W),J=this.G.K; $P0(this)&&(J=this.G.K);A=S||g.Mf(this.gm?K-this.G.W:K-J);J=W.position+this.GJ;K-=this.api.nE();var D;if((D=this.K)==null||!D.isEnabled)if(this.api.EW()){if(this.W.length>1){D=Pt(this,this.P7.x,!0);if(!this.xt)for(I=0;I1)for(I=0;I0)for(D=this.P7.x,I=g.d(this.Z),q=I.next();!q.done;q=I.next())q=q.value,p=kH(this,q.timeRangeStartMillis/ (this.G.W*1E3),z7(this)),g.jN(q.element,"ytp-timed-marker-hover",p<=D&&p+6>=D);I=this.tooltip.scale;D=this.api.Y("delhi_modern_web_player")?67:45;n=(isNaN(n)?0:n)-D*I;this.api.Y("web_key_moments_markers")?this.DL?(D=oyL(this.Z,K*1E3),D=D!=null?this.Z[D].title:""):(D=lM(this.W,K*1E3),D=this.W[D].title):(D=lM(this.W,K*1E3),D=this.W[D].title);D||(n+=16*I);this.tooltip.scale===.6&&(g.X2(this.api.J())?(n=this.api.UI().getPlayerSize().height-225,n=D?n+110:n+110+16):n=D?110:126);I=lM(this.W,K*1E3);this.vS= HVD(this,K,I)?I:HVD(this,K,I+1)?I+1:-1;g.jN(this.api.getRootNode(),"ytp-progress-bar-snap",this.vS!==-1&&this.W.length>1);I=!1;q=g.d(this.heatMarkersDecorations);for(p=q.next();!p.done;p=q.next()){p=p.value;var f=K*1E3;f>=p.visibleTimeRangeStartMillis&&f<=p.visibleTimeRangeEndMillis&&(D=p.label,A=g.Mf(p.decorationTimeMillis/1E3),I=!0)}this.dB!==I&&(this.dB=I,this.api.logVisibility(this.lN,this.dB));g.jN(this.api.getRootNode(),"ytp-progress-bar-decoration",I);I=160*this.tooltip.scale*2;q=D.length* (this.C?8.55:5.7);q=q<=I?q:I;p=q<160*this.tooltip.scale;I=3;!p&&q/2>W.position&&(I=1);!p&&q/2>this.S-W.position&&(I=2);this.api.J().Z&&(n-=10);this.T.length&&this.T[0].Nk&&(n-=14*(this.C?2:1),this.Y3||(this.Y3=!0,this.api.logVisibility(this.sI,this.Y3)));var h;if(rr(this)&&(((h=this.K)==null?0:h.isEnabled)||this.bO>0)){var t;n-=((t=this.K)==null?0:t.isEnabled)?KO(this):this.bO}h=void 0;rr(this)&&!this.api.Y("web_player_hide_fine_scrubbing_edu")&&(h="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa", this.SZ||(this.SZ=!0,this.api.logVisibility(this.Ym,this.SZ)));this.tooltip.Bv(J,K,A,!!S,n,D,I,h)}else this.tooltip.Bv(J,K,A,!!S,n);g.lK(this.api.getRootNode(),"ytp-progress-bar-hover");GoQ(this)}; g.u.sBO=function(){this.g$();g.A5(this.api.getRootNode(),"ytp-progress-bar-hover");this.Y3&&(this.Y3=!1,this.api.logVisibility(this.sI,this.Y3));this.SZ&&(this.SZ=!1,this.api.logVisibility(this.Ym,this.SZ))}; g.u.PK3=function(W,J){var K=g.vY(this.element);this.nk=W-K.x;rr(this)&&this.K&&(this.K.vS?bM(this.K,this.api.getCurrentTime()):I7c(this.K),this.K.show(),g.jN(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.K.isEnabled));this.hh&&(this.hh.dispose(),this.hh=null);this.TJ=J;this.Os=this.api.getCurrentTime();this.W.length>1&&this.vS!==-1?this.api.seekTo(this.W[this.vS].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(XG(this,z7(this)),!1,void 0,void 0,7);g.lK(this.element,"ytp-drag");(this.GG= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.u.EmO=function(){if(rr(this)&&this.K){var W=KO(this);this.bO>=W*.5?(this.K.enable(),bM(this.K,this.api.getCurrentTime()),LU0(this,W)):Ss(this)}if(g.z(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var J;if((J=this.K)==null?0:J.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.W.length>1&&this.vS!==-1)this.api.Y("html5_enable_progress_bar_slide_seek_logging")&&Wf(this,this.Os,this.W[this.vS].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.W[this.vS].startTime/1E3,void 0,void 0,void 0,7);else{W=XG(this,z7(this));this.api.Y("html5_enable_progress_bar_slide_seek_logging")&&Wf(this,this.Os,W,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(W,void 0,void 0,void 0,7);J=g.d(this.heatMarkersDecorations);for(var K=J.next();!K.done;K=J.next())K=K.value,W*1E3>=K.visibleTimeRangeStartMillis&&W*1E3<=K.visibleTimeRangeEndMillis&& this.api.logClick(this.lN)}g.A5(this.element,"ytp-drag");this.XW&&(this.G8.src=this.XW);this.GG&&!g.z(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.u.lVI=function(W,J){var K=this,I=z7(this),q=XG(this,I);this.api.Y("enable_custom_playhead_parsing")&&!this.api.UI().G6&&(I.position>this.nk+2?this.fE&&(this.G8.src=this.fE):I.position1);this.WN(W&&this.X.UI().getPlayerSize().width>=400);this.X.logVisibility(this.element,this.W7);var J=1;W&&this.isActive()&&(J=2);if(this.W!==J){this.W=J;switch(J){case 1:this.updateValue("icon",{V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{V:"path",gf:!0,U:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.nk0())}g.jN(this.element,"ytp-remote-button-active",this.isActive())}}; pO.prototype.K=function(){if(this.X.getOption("remote","quickCast"))this.X.setOption("remote","quickCast",!0);else{var W=this.VP,J=this.element;if(W.a5())W.ZJ();else{W.initialize();a:{var K=g.d(W.Rc.items);for(var I=K.next();!I.done;I=K.next())if(I=I.value,I.priority===1){K=I;break a}K=null}K&&(K.open(),W.oZ(J));W.oZ(J)}}this.X.logClick(this.element)};g.N(lw,g.k);lw.prototype.W=function(W){var J=this.X.J(),K=400;this.X.Y("web_player_small_hbp_settings_menu")&&J.S?K=300:J.Z&&(K=200);W=this.K&&W.width>=K;this.WN(W);this.X.Y("embeds_use_parent_visibility_in_ve_logging")?this.X.logVisibility(this.element,W&&this.j):this.X.logVisibility(this.element,W)}; lw.prototype.G=function(){if(this.VP.W7)this.VP.ZJ();else{var W=g.M9(this.X.Xz());W&&!W.loaded&&(W.CQ("tracklist",{includeAsr:!0}).length||W.load());this.X.logClick(this.element);this.VP.oZ(this.element)}}; lw.prototype.updateBadge=function(){var W=this.X.isHdr(),J=this.X.getPresentingPlayerType(),K=J!==2&&J!==3,I=g.Vf(this.X),q=K&&!!g.Hl(this.X.Xz());J=q&&I.displayMode===1;I=q&&I.displayMode===2;K=(q=J||I)||!K?null:this.X.getPlaybackQuality();g.jN(this.element,"ytp-hdr-quality-badge",W);g.jN(this.element,"ytp-hd-quality-badge",!W&&(K==="hd1080"||K==="hd1440"));g.jN(this.element,"ytp-4k-quality-badge",!W&&K==="hd2160");g.jN(this.element,"ytp-5k-quality-badge",!W&&K==="hd2880");g.jN(this.element,"ytp-8k-quality-badge", !W&&K==="highres");g.jN(this.element,"ytp-3d-badge-grey",!W&&q&&J);g.jN(this.element,"ytp-3d-badge",!W&&q&&I)};g.N(nO,Sh);nO.prototype.isLoaded=function(){var W=g.TG(this.X.Xz());return W!==void 0&&W.loaded}; nO.prototype.hs=function(){g.TG(this.X.Xz())!==void 0&&this.X.getPresentingPlayerType()!==3?this.W||(this.VP.df(this),this.W=!0):this.W&&(this.VP.AR(this),this.W=!1);p1(this,this.isLoaded())}; nO.prototype.onSelect=function(W){this.isLoaded();W?this.X.loadModule("annotations_module"):this.X.unloadModule("annotations_module");this.X.publish("annotationvisibility",W)}; nO.prototype.lO=function(){this.W&&this.VP.AR(this);Sh.prototype.lO.call(this)};g.N(A3,g.ei);A3.prototype.hs=function(){var W=this.X.getAvailableAudioTracks();W.length>1?(this.P4(g.zC(W,this.W)),this.tracks=g.Ro(W,this.W,this),this.countLabel.qv(W.length?" ("+W.length+")":""),this.publish("size-change"),this.eE(this.W(this.X.getAudioTrack())),this.enable(!0)):this.enable(!1)}; A3.prototype.ly=function(W){g.ei.prototype.ly.call(this,W);this.X.setAudioTrack(this.tracks[W]);this.VP.UW()}; A3.prototype.W=function(W){return W.toString()};g.N(DU,Sh); DU.prototype.K=function(){var W=this.X.getPresentingPlayerType();if(W!==2&&W!==3&&g.eM(this.X))this.W||(this.VP.df(this),this.W=!0,this.G.push(this.D(this.X,"videodatachange",this.K)),this.G.push(this.D(this.X,"videoplayerreset",this.K)),this.G.push(this.D(this.X,"onPlaylistUpdate",this.K)),this.G.push(this.D(this.X,"autonavchange",this.T)),W=g.E(this.X.getVideoData()),this.T(W.autonavState),this.X.logVisibility(this.element,this.W));else if(this.W){this.VP.AR(this);this.W=!1;W=g.d(this.G);for(var J= W.next();!J.done;J=W.next())this.aZ(J.value)}}; DU.prototype.T=function(W){p1(this,W!==1)}; DU.prototype.onSelect=function(W){this.X.zA(W?2:1);this.W&&(this.X.logVisibility(this.element,this.W),this.X.logClick(this.element))}; DU.prototype.lO=function(){this.W&&this.VP.AR(this);Sh.prototype.lO.call(this)};g.N(vUy,g.Y0);vUy.prototype.onClick=function(W){W.preventDefault();var J,K;(J=g.u3(this.X))==null||(K=J.xg())==null||K.ZJ();var I,q;(I=g.u3(this.X))==null||(q=I.qb())==null||q.oZ(W.target)};g.N(Y7I,g.ei);g.u=Y7I.prototype; g.u.oN=function(){var W=this.X.getPresentingPlayerType();if(W!==2&&W!==3){this.G8=this.X.iV();var J=this.X.getAvailableQualityLevels();if(this.W){this.T={};W=g.fl(this.X,"getAvailableQualityData",[]);W=g.d(W);for(var K=W.next();!K.done;K=W.next())K=K.value,this.T[K.qualityLabel]=K;W=Object.keys(this.T);J[J.length-1]==="auto"&&W.push("auto");this.XW=new Set(J)}else if(this.S){K=g.fl(this.X,"getAvailableQualityData",[]);W=[];K=g.d(K);for(var I=K.next();!I.done;I=K.next())I=I.value,this.C[I.quality]= I,I.quality&&W.push(I.quality);J[J.length-1]==="auto"&&W.push("auto")}else W=J;g.clQ(this.X)&&this.X.Fn()&&W.unshift("missing-qualities");J=this.X.app.As();K=J.getVideoData();if(!K.K||!K.K.video||K.K.video.qualityOrdinal<1080||K.t7)J=!1;else{I=/^qsa/.test(K.clientPlaybackNonce);var q="r";K.K.id.indexOf(";")>=0&&(I=/^[a-p]/.test(K.clientPlaybackNonce),q="x");I?(J.WS("iqss",{trigger:q},!0),J=!0):J=!1}J&&W.unshift("inline-survey");this.P4(W);J=g.E(this.X.getVideoData()).cotn?!0:!1;K=this.sI.SE();K=!g.X2(this.X.J())|| !(J===void 0?0:J)||!(K===void 0||K);J=this.K;K=K===void 0?!1:K;J.F6&&g.jN(J.T8("ytp-panel-footer"),"ytp-panel-hide-footer",K===void 0?!1:K);if(W.length){this.oJ();this.enable(!0);return}}this.enable(!1)}; g.u.oJ=function(){if(this.W){var W=this.X.getPreferredQuality();this.XW.has(W)&&(this.Z=this.X.getPlaybackQuality(),this.PS=this.X.getPlaybackQualityLabel(),W==="auto"?(this.eE(W),this.qv(this.W4(W))):this.eE(this.PS))}else W=this.X.getPreferredQuality(),this.options[W]&&(this.Z=this.X.getPlaybackQuality(),this.eE(W),W==="auto"&&this.qv(this.W4(W)))}; g.u.ly=function(W){if(W!=="missing-qualities"){g.ei.prototype.ly.call(this,W);var J=this.W?this.T[W]:this.C[W];var K=J==null?void 0:J.quality,I=J==null?void 0:J.formatId,q=J==null?void 0:J.paygatedQualityDetails;J=q==null?void 0:q.endpoint;if(q){var S;q=(S=this.options[W])==null?void 0:S.element;this.X.logClick(q)}if(this.W){var p,n;if((p=g.m(J,g.zsp))==null?0:(n=p.popup)==null?0:n.notificationActionRenderer)this.X.qN("innertubeCommand",J);else if(J){this.X.qN("innertubeCommand",J);return}I?this.X.setPlaybackQuality(K, I):this.X.setPlaybackQuality(K)}else{if(this.S){var A,D;if((A=g.m(J,g.zsp))==null?0:(D=A.popup)==null?0:D.notificationActionRenderer)this.X.qN("innertubeCommand",J);else if(J){this.X.qN("innertubeCommand",J);return}}this.X.setPlaybackQuality(W)}this.VP.ZJ();this.oN()}}; g.u.open=function(){for(var W=g.d(Object.values(this.options)),J=W.next();!J.done;J=W.next()){J=J.value;var K=void 0;this.X.hasVe((K=J)==null?void 0:K.element)&&(K=void 0,this.X.logVisibility((K=J)==null?void 0:K.element,!0))}g.ei.prototype.open.call(this);this.X.logClick(this.element)}; g.u.S2=function(W,J,K){var I=this;if(W==="missing-qualities")return new g.Y0({V:"a",au:["ytp-menuitem"],U:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.X.J().C,tabindex:"0",role:"menuitemradio"},L:[{V:"div",au:["ytp-menuitem-label"],Ky:"{{label}}"}]},J,this.W4(W));if(W!=="inline-survey"){var q,S=(q=this.W?this.T[W]:this.C[W])==null?void 0:q.paygatedQualityDetails;q=S==null?void 0:S.veType;S=S==null?void 0:S.trackingParams;J=g.ei.prototype.S2.call(this,W,J,K);S?(this.X.createServerVe(J.element, this,!0),this.X.setTrackingParams(J.element,S)):q&&this.X.createClientVe(J.element,this,q,!0);return J}W=[{V:"span",Ky:"\u00bfSe ve bien?"}];K=g.d([!0,!1]);S=K.next();for(q={};!S.done;q={zQ:void 0},S=K.next())q.zQ=S.value,S=new g.k({V:"span",B:"ytp-menuitem-inline-survey-response",L:[q.zQ?NgH():h3Q()],U:{tabindex:"0",role:"button"}}),S.listen("click",function(p){return function(){var n=I.X.app.As();n.WS("iqsr",{tu:p.zQ});n.getVideoData().t7=!0;I.VP.ZJ();I.oN()}}(q)),W.push(S); return new g.Y0({V:"div",B:"ytp-menuitem",U:{"aria-disabled":"true"},L:[{V:"div",au:["ytp-menuitem-label"],L:W}]},J)}; g.u.W4=function(W,J){J=J===void 0?!1:J;if(W==="missing-qualities")return{V:"div",Ky:"\u00bfFaltan opciones?"};if(W==="inline-survey")return"";var K=this.S||this.W?[PJQ(this,W,J,!1)]:[c$v(this,W)];var I=this.X.getPreferredQuality();J||I!=="auto"||W!=="auto"||(K.push(" "),this.W?K.push(PJQ(this,this.PS,J,!0,["ytp-menu-label-secondary"])):this.S?K.push(PJQ(this,this.Z,J,!0,["ytp-menu-label-secondary"])):K.push(c$v(this,this.Z,["ytp-menu-label-secondary"])));return{V:"div",L:K}};g.N(js,OB);js.prototype.T=function(){OB.prototype.T.call(this);this.C&&XuQ(this)}; js.prototype.G8=function(){this.PS()}; js.prototype.sI=function(){this.X.setPlaybackRate(this.W,!0)}; js.prototype.G=function(W){OB.prototype.G.call(this,W);this.PS();XuQ(this);W.preventDefault()};g.N(fO,g.k);g.u=fO.prototype;g.u.init=function(){this.Yi(this.W);this.updateValue("minvalue",this.K);this.updateValue("maxvalue",this.G)}; g.u.FV=function(W){if(!W.defaultPrevented){switch(W.keyCode){case 37:case 40:var J=-this.N;break;case 39:case 38:J=this.N;break;default:return}this.Yi(this.W+J);W.preventDefault()}}; g.u.p6=function(W){var J=this.W;J+=(W.deltaX||-W.deltaY)<0?-this.C:this.C;this.Yi(J);W.preventDefault()}; g.u.H0=function(W){W=(W-g.vY(this.T).x)/this.PS*this.range+this.K;this.Yi(W)}; g.u.Yi=function(W,J){J=J===void 0?"":J;W=g.Gm(W,this.K,this.G);J===""&&(J=W.toString());this.updateValue("valuenow",W);this.updateValue("valuetext",J);this.sI.style.left=(W-this.K)/this.range*(this.PS-this.vS)+"px";this.W=W}; g.u.focus=function(){this.jZ.focus()};g.N(h3,fO);h3.prototype.G8=function(){this.X.setPlaybackRate(this.W,!0)}; h3.prototype.Yi=function(W){fO.prototype.Yi.call(this,W,iMD(this,W).toString());this.S&&(WKH(this),this.XW())}; h3.prototype.updateValues=function(){var W=this.X.getPlaybackRate();iMD(this,this.W)!==W&&(this.Yi(W),WKH(this))};g.N(J_c,g.to);J_c.prototype.focus=function(){this.W.focus()};g.N(KKv,wC);g.N(IYT,g.ei);g.u=IYT.prototype;g.u.W4=function(W){return W==="1"?"Normal":W.toLocaleString()}; g.u.hs=function(){var W,J=(W=this.X.getVideoData())==null?void 0:W.rf();W=this.X.getPresentingPlayerType(J);this.enable(W!==2&&W!==3);pyv(this)}; g.u.P4=function(W){g.ei.prototype.P4.call(this,W);this.Z&&this.Z.K.focus()}; g.u.K3=function(W){g.ei.prototype.K3.call(this,W);W?(this.PS=this.D(this.X,"onPlaybackRateChange",this.onPlaybackRateChange),pyv(this),qPI(this,this.X.getPlaybackRate())):(this.aZ(this.PS),this.PS=null)}; g.u.onPlaybackRateChange=function(W){var J=this.X.getPlaybackRate();!this.T&&this.C.includes(J)||SPQ(this,J);qPI(this,W)}; g.u.S2=function(W,J,K){return W===this.W&&lYL(this.X)?g.ei.prototype.S2.call(this,W,J,K,{V:"div",B:"ytp-speed-slider-menu-footer",L:[this.Z]}):g.ei.prototype.S2.call(this,W,J,K)}; g.u.ly=function(W){g.ei.prototype.ly.call(this,W);W===this.W?this.X.setPlaybackRate(this.S,!0):this.X.setPlaybackRate(Number(W),!0);lYL(this.X)&&W===this.W||this.VP.UW()}; g.u.Jw=function(W){var J=W===this.W;this.T=!1;J&&t3(this.X)&&!lYL(this.X)?(W=new KKv(this.X),g.$x(this.VP,W)):g.ei.prototype.Jw.call(this,W)};g.N(A_0,g.ei);g.u=A_0.prototype;g.u.eE=function(W){g.ei.prototype.eE.call(this,W)}; g.u.tK=function(W){return W.option.toString()}; g.u.getOption=function(W){return this.settings[W]}; g.u.W4=function(W){return this.getOption(W).text||""}; g.u.ly=function(W){g.ei.prototype.ly.call(this,W);this.publish("settingChange",this.setting,this.settings[W].option)};g.N(aR,g.M6);aR.prototype.S3=function(W){for(var J=g.d(Object.keys(W)),K=J.next();!K.done;K=J.next()){var I=K.value;if(K=this.Is[I]){var q=W[I].toString();I=!!W[I+"Override"];K.options[q]&&(K.eE(q),K.T.element.setAttribute("aria-checked",String(!I)),K.W.element.setAttribute("aria-checked",String(I)))}}}; aR.prototype.hO=function(W,J){this.publish("settingChange",W,J)};g.N(uw,g.ei);uw.prototype.W=function(W){return W.languageCode}; uw.prototype.W4=function(W){return this.languages[W].languageName||""}; uw.prototype.ly=function(W){this.publish("select",W);this.X.logClick(this.element);g.xx(this.VP)};g.N(fYL,g.ei);g.u=fYL.prototype;g.u.tN=function(W){return g.PR(W)?"__off__":W.displayName}; g.u.W4=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.u.ly=function(W){if(W==="__translate__")this.W.open();else if(W==="__contribute__"){this.X.pauseVideo();this.X.isFullscreen()&&this.X.toggleFullscreen();var J=g.zJ(this.X.J(),g.E(this.X.getVideoData()));g.vh(J)}else if(W==="__correction__"){this.X.pauseVideo();this.X.isFullscreen()&&this.X.toggleFullscreen();var K=hK0(this);N0(this,K);g.ei.prototype.ly.call(this,this.tN(K));var I,q;K=(J=this.X.getVideoData().getPlayerResponse())==null?void 0:(I=J.captions)==null?void 0:(q=I.playerCaptionsTracklistRenderer)== null?void 0:q.openTranscriptCommand;this.X.qN("innertubeCommand",K);this.VP.UW();this.T&&this.X.logClick(this.T)}else{if(W==="__correction__"){this.X.pauseVideo();this.X.isFullscreen()&&this.X.toggleFullscreen();J=hK0(this);N0(this,J);g.ei.prototype.ly.call(this,this.tN(J));var S,p;J=(K=this.X.getVideoData().getPlayerResponse())==null?void 0:(S=K.captions)==null?void 0:(p=S.playerCaptionsTracklistRenderer)==null?void 0:p.openTranscriptCommand;this.X.qN("innertubeCommand",J)}else this.X.logClick(this.element), N0(this,W==="__off__"?{}:this.tracks[W]),g.ei.prototype.ly.call(this,W);this.VP.UW()}}; g.u.hs=function(){var W=this.X.getOptions();W=W&&W.indexOf("captions")!==-1;var J=this.X.getVideoData(),K=J&&J.hc,I,q=!((I=this.X.getVideoData())==null||!g.Yh(I));I={};if(W||K){var S;if(W){var p=g.E(this.X.getOption("captions","track"));I=yTc(this.X.getOption("captions","tracklist",{includeAsr:!0}));var n=q?[]:yTc(this.X.getOption("captions","translationLanguages"));this.tracks=g.Ro(I,this.tN,this);q=g.zC(I,this.tN);var A,D;hK0(this)&&((S=J.getPlayerResponse())==null?0:(A=S.captions)==null?0:(D=A.playerCaptionsTracklistRenderer)== null?0:D.openTranscriptCommand)&&q.push("__correction__");if(n.length&&!g.PR(p)){if((S=p.translationLanguage)&&S.languageName){var f=S.languageName;S=n.findIndex(function(h){return h.languageName===f}); OvQ(n,S)}DxX(this.W,n);q.push("__translate__")}S=this.tN(p)}else this.tracks={},q=[],S="__off__";q.unshift("__off__");this.tracks.__off__={};K&&q.unshift("__contribute__");this.tracks[S]||(this.tracks[S]=p,q.push(S));this.P4(q);this.eE(S);p&&p.translationLanguage?this.W.eE(this.W.W(p.translationLanguage)):be0(this.W);W&&this.S.S3(g.E(this.X.getSubtitlesUserSettings()));this.countLabel.qv(I&&I.length?" ("+I.length+")":"");this.publish("size-change");this.X.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.u.bL=function(W){var J=g.E(this.X.getOption("captions","track"));J=g.ih(J);J.translationLanguage=this.W.languages[W];N0(this,J)}; g.u.hO=function(W,J){if(W==="reset")this.X.resetSubtitlesUserSettings();else{var K={};K[W]=J;this.X.updateSubtitlesUserSettings(K)}jrc(this,!0);this.Z.start();this.S.S3(g.E(this.X.getSubtitlesUserSettings()))}; g.u.yDy=function(W){W||g.iK(this.Z)}; g.u.lO=function(){g.iK(this.Z);g.ei.prototype.lO.call(this)}; g.u.open=function(){g.ei.prototype.open.call(this);this.options.__correction__&&!this.T&&(this.T=this.options.__correction__.element,this.X.createClientVe(this.T,this,167341),this.X.logVisibility(this.T,!0))};g.N(tvT,g.GK);g.u=tvT.prototype; g.u.initialize=function(){if(!this.isInitialized){var W=this.X.J();this.isInitialized=!0;try{this.VL=new Y7I(this.X,this)}catch(K){g.ET(Error("QualityMenuItem creation failed"))}g.B(this,this.VL);var J=new fYL(this.X,this);g.B(this,J);W.G||(J=new nO(this.X,this),g.B(this,J));W.enableSpeedOptions&&(J=new IYT(this.X,this),g.B(this,J));(g.xK(W)||W.S)&&(W.K||W.OI)&&(J=new vUy(this.X,this),g.B(this,J));W.Ym&&!W.Y("web_player_move_autonav_toggle")&&(W=new DU(this.X,this),g.B(this,W));W=new A3(this.X,this); g.B(this,W);this.X.publish("settingsMenuInitialized");z$X(this.settingsButton,this.Rc.LB())}}; g.u.df=function(W){this.initialize();this.Rc.df(W);z$X(this.settingsButton,this.Rc.LB())}; g.u.AR=function(W){this.W7&&this.Rc.LB()<=1&&this.hide();this.Rc.AR(W);z$X(this.settingsButton,this.Rc.LB())}; g.u.oZ=function(W){this.initialize();this.Rc.LB()>0&&g.GK.prototype.oZ.call(this,W)}; g.u.ZJ=function(){this.Mj?this.Mj=!1:g.GK.prototype.ZJ.call(this)}; g.u.show=function(){g.GK.prototype.show.call(this);g.lK(this.X.getRootNode(),"ytp-settings-shown")}; g.u.hide=function(){g.GK.prototype.hide.call(this);g.A5(this.X.getRootNode(),"ytp-settings-shown")}; g.u.Ww=function(W){this.X.logVisibility(this.element,W);this.X.publish("settingsMenuVisibilityChanged",W)};g.N(aYD,g.k);g.u=aYD.prototype;g.u.onClick=function(){if(u5v(this)&&(this.X.toggleSubtitles(),this.X.logClick(this.element),!this.isEnabled())){var W=!1,J=g.ri(g.mr(),65);g.X2(this.X.J())&&J!=null&&(W=!J);W&&this.X.J().Y("web_player_nitrate_promo_tooltip")&&this.X.publish("showpromotooltip",this.element)}}; g.u.RsO=function(W){var J,K;(J=g.u3(this.X))==null||(K=J.xg())==null||K.oZ(W)}; g.u.isEnabled=function(){return!!this.X.getOption("captions","track").displayName}; g.u.hs=function(){var W=u5v(this),J=300;this.X.J().Z&&(J=480);if(this.X.J().S){this.updateValue("title",g.Mw(this.X,"Subt\u00edtulos","c"));this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var K=W}else{if(W)(K=this.T8("ytp-subtitles-button-icon"))==null||K.setAttribute("fill-opacity","1"),this.updateValue("title",g.Mw(this.X,"Subt\u00edtulos","c")),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{var I;(I=this.T8("ytp-subtitles-button-icon"))==null||I.setAttribute("fill-opacity", "0.3");this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}K=!0}this.tooltip.fQ();K=K&&this.X.UI().getPlayerSize().width>=J;this.WN(K);this.X.Y("embeds_use_parent_visibility_in_ve_logging")?this.X.logVisibility(this.element,K&&this.j):this.X.logVisibility(this.element,K);W?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.u.Ai=function(W){g.k.prototype.Ai.call(this,W);this.X.J().Y("embeds_use_parent_visibility_in_ve_logging")&&this.X.logVisibility(this.element,this.W7&&W)};g.N(g.du,g.k);g.u=g.du.prototype; g.u.ZH=function(){var W=this.api.UI().getPlayerSize().width,J=this.C;this.api.J().Z&&(J=400);J=W>=J&&(!ym(this)||!g.z(this.api.getPlayerStateObject(),64));this.WN(J);g.jN(this.element,"ytp-time-display-allow-autohide",J&&W<400);W=this.api.getProgressState();if(J){var K=this.api.getPresentingPlayerType();J=this.api.getCurrentTime(K,!1);this.K&&(J-=W.airingStart);U_(this)&&(J-=this.xt.startTimeMs/1E3);U_(this)||ym(this)||!this.G||(J-=this.api.getDuration(K,!1));var I=g.Mf(J);this.T!==I&&(this.updateValue("currenttime", I),this.T=I);K=U_(this)?(this.xt.endTimeMs-this.xt.startTimeMs)/1E3:this.api.getDuration(K,!1);I=g.Mf(K);this.S!==I&&(this.updateValue("duration",I),this.S=I,J&&(J=g.dF("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.Mf(J,!0),DURATION:g.Mf(K,!0)}),this.updateValue("timeDisplayAriaLabel",J)))}Nec(this,W.isAtLiveHead);dxI(this,this.api.getLoopRange())}; g.u.onLoopRangeChange=function(W){var J=this.xt!==W;this.xt=W;J&&(this.ZH(),y_0(this))}; g.u.gCs=function(){this.api.setLoopRange(null)}; g.u.p73=function(){this.G=!this.G;this.ZH()}; g.u.onVideoDataChange=function(W,J,K){this.updateVideoData((this.api.J().Y("enable_topsoil_wta_for_halftime")||this.api.J().Y("enable_topsoil_wta_for_halftime_live_infra"))&&K===2?this.api.getVideoData(1):J);this.ZH();y_0(this)}; g.u.updateVideoData=function(W){this.l$=W.isLivePlayback&&!W.P7;this.K=Kl(W);this.isPremiere=W.isPremiere;g.jN(this.element,"ytp-live",ym(this))}; g.u.onClick=function(W){W.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.u.lO=function(){this.W&&this.W();g.k.prototype.lO.call(this)};g.N(ZMQ,g.k);g.u=ZMQ.prototype;g.u.LW=function(){var W=this.api.aX();this.G!==W&&(this.G=W,UxQ(this,this.api.getVolume(),this.api.isMuted()))}; g.u.AK=function(W){this.WN(W.width>=350)}; g.u.q$=function(W){if(!W.defaultPrevented){var J=W.keyCode,K=null;J===37?K=this.volume-5:J===39?K=this.volume+5:J===36?K=0:J===35&&(K=100);K!==null&&(K=g.Gm(K,0,100),K===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(K)),W.preventDefault())}}; g.u.Jv=function(W){var J=W.deltaX||-W.deltaY;W.deltaMode?this.api.setVolume(this.volume+(J<0?-10:10)):this.api.setVolume(this.volume+g.Gm(J/10,-10,10));W.preventDefault()}; g.u.b7N=function(){ZU(this,this.W,!0,this.K,this.api.jz());this.C=this.volume;this.api.isMuted()&&this.api.unMute()}; g.u.n6=function(W){var J=this.G?78:52,K=this.G?18:12;W-=g.vY(this.N).x;this.api.setVolume(g.Gm((W-K/2)/(J-K),0,1)*100)}; g.u.FHI=function(){ZU(this,this.W,!1,this.K,this.api.jz());this.volume===0&&(this.api.mute(),this.api.setVolume(this.C))}; g.u.onVolumeChange=function(W){UxQ(this,W.volume,W.muted)}; g.u.KC=function(){ZU(this,this.W,this.isDragging,this.K,this.api.jz())}; g.u.lO=function(){g.k.prototype.lO.call(this);g.A5(this.Z,"ytp-volume-slider-active")};g.N(Qm,g.k); Qm.prototype.onVideoDataChange=function(){var W=this.api.J();this.eI();this.visible=!!g.E(this.api.getVideoData()).videoId&&!g.IV(g.E(this.api.getVideoData(1)));this.WN(this.visible);this.api.logVisibility(this.element,this.visible&&this.j);if(this.visible){var J=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",J)}W.G&&(this.W&&(this.aZ(this.W),this.W=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.lK(this.element,"no-link")); J=this.api.J();W=g.E(this.api.getVideoData());var K="";J.G||(J=g.vw(J),J.indexOf("www.")===0&&(J=J.substring(4)),K=g.qw(W)?"Mirar en YouTube Music":J==="youtube.com"?"Mirar en YouTube":g.dF("Mirar en $WEBSITE",{WEBSITE:J}));this.updateValue("title",K)}; Qm.prototype.onClick=function(W){this.api.Y("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var J=this.api.J(),K=this.api.getVideoUrl(!g.gc(W),!1,!0,!0);if(g.xK(J)){var I={};g.xK(J)&&g.fl(this.api,"addEmbedsConversionTrackingParams",[I]);K=g.Vw(K,I)}g.n1(K,this.api,W);this.api.Y("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Qm.prototype.eI=function(){var W={V:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},L:[{V:"path",gf:!0,B:"ytp-svg-fill",U:{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 "}}]}, J=28666,K=g.E(this.api.getVideoData());this.api.isEmbedsShortsMode()?W={V:"svg",U:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},L:[{V:"path",U:{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.qw(K)&&(W={V:"svg",U:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},L:[{V:"path",U:{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"}},{V:"path",U:{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"}},{V:"path",U:{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"}},{V:"path",U:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{V:"path",U:{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"}},{V:"path",U:{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"}},{V:"path",U:{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"}},{V:"path",U:{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"}},{V:"path",U:{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"}},{V:"path",U:{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"}},{V:"path",U:{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"}},{V:"path",U:{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"}}]},J=216163);g.qw(K)?g.lK(this.element,"ytp-youtube-music-button"):g.A5(this.element,"ytp-youtube-music-button");W.U=Object.assign({},W.U,{"aria-hidden":"true"});this.updateValue("logoSvg",W);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,J,!0)}; Qm.prototype.Ai=function(W){g.k.prototype.Ai.call(this,W);this.api.logVisibility(this.element,this.visible&&W)};g.N(wyL,g.BW);g.u=wyL.prototype;g.u.oo=function(){if(this.X.Y("web_player_max_seekable_on_ended")||!g.z(this.X.getPlayerStateObject(),2))this.progressBar.ZH(),this.jZ.ZH()}; g.u.YO=function(){this.eH();this.Bw.K?this.oo():this.progressBar.g$()}; g.u.L6=function(){this.oo();this.C.start()}; g.u.eH=function(){var W;if(W=!this.X.J().K){W=this.progressBar;var J=2*g.Pw()*W.S;W=W.G.getLength()*1E3/W.api.getPlaybackRate()/J<300}W=W&&this.X.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;J=!W;this.Bw.K||(W=J=!1);J?this.G8||(this.G8=this.D(this.X,"progresssync",this.oo)):this.G8&&(this.aZ(this.G8),this.G8=null);W?this.C.isActive()||this.C.start():this.C.stop()}; g.u.eI=function(){var W=this.X.aX(),J=this.X.UI().getPlayerSize(),K=this.X.UI().G6,I=geL(this),q=GuH(this),S=Math.max(J.width-I*2,100);if(this.sT!==J.width||this.P7!==W||this.X.Y("web_player_rtr_ctrls")&&this.Iz!==K)this.sT=J.width,this.P7=W,this.Iz=K,this.T.element.style.width=q+"px",this.T.element.style.left=I+"px",g.r$D(this.progressBar,I,q,W),this.X.wb().yG=q;K=this.G;S=Math.min(570*(W?1.5:1),S);W=Math.min(413*(W?1.5:1),Math.round((J.height-$xL(this))*.82));K.maxWidth=S;K.maxHeight=W;K.Ab();this.eH(); this.X.J().Y("html5_player_dynamic_bottom_gradient")&&Ofv(this.eZ,J.height)}; g.u.onVideoDataChange=function(){var W=g.E(this.X.getVideoData());this.D0.style.background=W.pP?W.b8:"";this.sI&&RYH(this.sI,W.showSeekingControls);this.PS&&RYH(this.PS,W.showSeekingControls)}; g.u.v7=function(){return this.T.element};g.N(xxQ,CS);g.u=xxQ.prototype;g.u.UY=function(W){W.target!==this.dismissButton.element&&(this.onClickCommand&&this.X.qN("innertubeCommand",this.onClickCommand),this.OO())}; g.u.OO=function(){this.enabled=!1;this.C.hide()}; g.u.onVideoDataChange=function(W,J){W==="dataloaded"&&OMQ(this);W=[];var K,I,q,S;if(J=(S=g.m((K=J.getWatchNextResponse())==null?void 0:(I=K.playerOverlays)==null?void 0:(q=I.playerOverlayRenderer)==null?void 0:q.suggestedActionsRenderer,yzT))==null?void 0:S.suggestedActions)for(K=g.d(J),I=K.next();!I.done;I=K.next())(I=g.m(I.value,U3x))&&g.m(I.trigger,d3G)&&W.push(I);if(W.length!==0){K=[];W=g.d(W);for(I=W.next();!I.done;I=W.next())if(I=I.value,q=g.m(I.trigger,d3G))S=(S=I.title)?g.uG(S):"View Chapters", J=q.timeRangeStartMillis,q=q.timeRangeEndMillis,J!=null&&q!=null&&I.tapCommand&&(K.push(new g.p9(J,q,{priority:9,namespace:"suggested_action_button_visible",id:S})),this.suggestedActions[S]=I.tapCommand);this.X.qk(K)}}; g.u.P1=function(){return this.enabled}; g.u.Ww=function(){this.enabled?this.Y3.start():Zf(this);this.nU()}; g.u.lO=function(){OMQ(this);CS.prototype.lO.call(this)};var CV={},M0=(CV.CHANNEL_NAME="ytp-title-channel-name",CV.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",CV.LINK="ytp-title-link",CV.SESSIONLINK="yt-uix-sessionlink",CV.SUBTEXT="ytp-title-subtext",CV.TEXT="ytp-title-text",CV.TITLE="ytp-title",CV);g.N(gu,g.k);gu.prototype.onClick=function(W){this.api.logClick(this.element);var J=this.api.J(),K=this.api.getVideoUrl(!g.gc(W),!1,!0);g.xK(J)&&(J={},g.fl(this.api,"addEmbedsConversionTrackingParams",[J]),K=g.Vw(K,J));g.n1(K,this.api,W)}; gu.prototype.hs=function(){var W=g.E(this.api.getVideoData()),J=this.api.J();this.updateValue("title",W.title);var K={V:"a",B:M0.CHANNEL_NAME,U:{href:"{{channelLink}}",target:"_blank"},Ky:"{{channelName}}"};this.api.J().G&&(K={V:"span",B:M0.CHANNEL_NAME,Ky:"{{channelName}}",U:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",K);TeA(this);this.api.getPresentingPlayerType()===2&&(K=g.E(this.api.getVideoData()),K.videoId&&K.isListed&&K.author&&K.sT&&K.profilePicture?(this.updateValue("channelLink", K.sT),this.updateValue("channelName",K.author),this.updateValue("channelTitleFocusable","0")):TeA(this));K=J.externalFullscreen||!this.api.isFullscreen()&&J.yk;g.jN(this.link,M0.FULLERSCREEN_LINK,K);J.sI||!W.videoId||K||g.IV(W)||J.G?this.W&&(this.updateValue("url",null),this.aZ(this.W),this.W=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.W||(this.W=this.D(this.link,"click",this.onClick)));J.G&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.xK(J)?W.expandedTitle: W.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.N(g.$O,g.k);g.u=g.$O.prototype;g.u.setEnabled=function(W){if(this.type!=null)if(W)switch(this.type){case 3:case 2:Vvv(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.S=W}; g.u.Bv=function(W,J,K,I,q,S,p,n){if(!this.G8||this.env.Z){this.type===3&&this.g$();this.type!==1&&(g.SN(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.S&&this.fade.show(),this.K&&this.K.dispose(),(this.K=this.api.EW())&&this.K.subscribe("l",this.Jq,this));if(n){var A=g.cY(this.bg).height||141;this.XW.style.bottom=A+2+"px"}else this.XW.style.display="none";this.env.Y("delhi_modern_web_player")?this.update({pillTimeStamp:K,pillTitle:S!=null?S:"",eduText:n!=null?n:""}):(this.update({text:K, title:S!=null?S:"",eduText:n!=null?n:""}),g.jN(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!S));this.api.isInline()&&g.lK(this.bottomText,"ytp-modern-tooltip-text");g.jN(this.element,"ytp-text-detail",!!I);K=-1;this.K&&(K=R0(this.K,243*this.scale),this.env.Y("web_l3_storyboard")&&this.K.levels.length===4&&(K=this.K.levels.length-1),K=NDX(this.K,K,J));eKQ(this,K);if(p)switch(J=g.cY(this.element).width,p){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right= J+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=J/2+"px",this.title.style.textAlign="center"}EeT(this,!!I,W,q)}}; g.u.qa=function(){this.type===1&&this.g$()}; g.u.Ms=function(W,J){if(this.type)if(this.type===3)this.g$();else return;HMv(this,W,3,J)}; g.u.fQ=function(){this.W&&!this.Z&&this.W.hasAttribute("title")&&(this.G=this.W.getAttribute("title")||"",this.W.removeAttribute("title"),this.S&&Vvv(this))}; g.u.Jq=function(W,J){W<=this.T&&this.T<=J&&(W=this.T,this.T=NaN,eKQ(this,W))}; g.u.Bwu=function(){aZD(this.K,this.T,243*this.scale)}; g.u.g$=function(){switch(this.type){case 2:var W=this.W;W.removeEventListener("mouseout",this.N);W.addEventListener("mouseover",this.vS);W.removeEventListener("blur",this.N);W.addEventListener("focus",this.vS);RKH(this);break;case 3:RKH(this);break;case 1:this.K&&(this.K.unsubscribe("l",this.Jq,this),this.K=null),this.api.removeEventListener("videoready",this.C),this.PS.stop()}this.type=null;this.S&&this.fade.hide()}; g.u.g8=function(){if(this.W)for(var W=0;W=0;J--)if(this.Z7[J]===W){this.Z7.splice(J,1);break}Vq(this.Bw,64,this.Z7.length>0)}; g.u.j8=function(){this.api.R5()&&this.api.rH();return!!this.bX||LKQ(this)||g.kz.prototype.j8.call(this)}; g.u.Qg=iD(3);g.u.HU=iD(7);g.u.kI=iD(10); g.u.QA=function(){var W=!this.j8(),J=W&&this.api.R5()&&!g.z(this.api.getPlayerStateObject(),2)&&!g.IV(g.E(this.api.getVideoData()))&&!this.api.J().G&&!this.api.isEmbedsShortsMode(),K=this.sR&&g.OY(this.api)&&g.z(this.api.getPlayerStateObject(),128);W||K?(this.yy.show(),this.Hv.show()):(this.yy.hide(),this.Hv.hide(),this.api.g8(this.xG.element));J?this.TG.oZ():this.TG.ZJ();this.yq&&MvX(this.yq,this.bE||!W);this.api.Y("web_player_hide_overflow_button_if_empty_menu")&&kuD(this);g.kz.prototype.QA.call(this)}; g.u.Pe=function(W,J,K,I,q){W.style.left="";W.style.top="";W.style.bottom="";var S=g.cY(W),p=I||this.yq&&g.po(this.yq.v7(),J),n=I=null;K!=null&&p||(I=g.cY(J),n=g.YE(J,this.api.getRootNode()),K==null&&(K=n.x+I.width/2));K-=S.width/2;p?(J=this.yq,I=geL(J),n=GuH(J),p=this.api.UI().getPlayerSize().height,K=g.Gm(K,I,I+n-S.width),S=p-$xL(J)-S.height):g.po(this.xG.element,J)?(J=this.api.UI().getPlayerSize().width,K=g.Gm(K,12,J-S.width-12),S=this.aX()?this.kT:this.pZ,this.api.J().playerStyle==="gvn"&&(S+= 20),this.sR&&(S-=this.aX()?26:18)):(J=this.api.UI().getPlayerSize(),K=g.Gm(K,12,J.width-S.width-12),S=n.y>(J.height-I.height)/2?n.y-S.height-12:n.y+I.height+12);W.style.top=S+(q||0)+"px";W.style.left=K+"px"}; g.u.YO=function(W){W&&(this.api.g8(this.xG.element),this.yq&&this.api.g8(this.yq.v7()));this.pR&&(g.jN(this.contextMenu.element,"ytp-autohide",W),g.jN(this.contextMenu.element,"ytp-autohide-active",!0));g.kz.prototype.YO.call(this,W)}; g.u.fK=function(){g.kz.prototype.fK.call(this);this.pR&&(g.jN(this.contextMenu.element,"ytp-autohide-active",!1),this.pR&&(this.contextMenu.hide(),this.Mn&&this.Mn.hide()))}; g.u.jl=function(W,J){var K=this.api.UI().getPlayerSize();K=new g.E5(0,0,K.width,K.height);if(W||this.Bw.K&&!this.j8()){if(this.api.J().e1||J)W=this.aX()?this.kT:this.pZ,K.top+=W,K.height-=W;this.yq&&(K.height-=$xL(this.yq))}return K}; g.u.LW=function(W){var J=this.api.getRootNode();W?J.parentElement?(J.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.J().externalFullscreen||(J.parentElement.insertBefore(this.M8.element,J),J.parentElement.insertBefore(this.XY.element,J.nextSibling))):g.Va(Error("Player not in DOM.")):(J.setAttribute("aria-label","Reproductor de video de YouTube"),this.M8.detach(),this.XY.detach());this.eI();this.XU()}; g.u.aX=function(){var W=this.api.J();return this.api.isFullscreen()&&!W.Z||!1}; g.u.showControls=function(W){this.CZ=!W;this.QA()}; g.u.eI=function(){var W=this.aX();this.tooltip.scale=W?1.5:1;this.contextMenu&&g.jN(this.contextMenu.element,"ytp-big-mode",W);this.QA();this.api.Y("web_player_hide_overflow_button_if_empty_menu")||kuD(this);this.XU();var J=this.api.isEmbedsShortsMode();J&&W?(W=(this.api.UI().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.bj(this.xG.element,"padding-left",W+"px"),g.bj(this.xG.element,"padding-right",W+"px")):J&&(g.bj(this.xG.element,"padding-left",""),g.bj(this.xG.element,"padding-right", ""));g.kz.prototype.eI.call(this)}; g.u.gQ=function(){if(LKQ(this)&&!g.OY(this.api))return!1;var W=g.E(this.api.getVideoData());return!g.xK(this.api.J())||this.api.getPresentingPlayerType()===2||!this.oX||((W=this.oX||W.oX)?(W=W.embedPreview)?(W=W.thumbnailPreviewRenderer,W=W.videoDetails&&g.m(W.videoDetails,K4T)||null):W=null:W=null,W&&W.collapsedRenderer&&W.expandedRenderer)?g.kz.prototype.gQ.call(this):!1}; g.u.XU=function(){g.kz.prototype.XU.call(this);this.api.logVisibility(this.title.element,!!this.Hg);this.yn&&this.yn.Ai(!!this.Hg);this.channelAvatar.Ai(!!this.Hg);this.overflowButton&&this.overflowButton.Ai(this.RX()&&!!this.Hg);this.shareButton&&this.shareButton.Ai(!this.RX()&&!!this.Hg);this.i8&&this.i8.Ai(!this.RX()&&!!this.Hg);this.searchButton&&this.searchButton.Ai(!this.RX()&&!!this.Hg);this.copyLinkButton&&this.copyLinkButton.Ai(!this.RX()&&!!this.Hg);if(!this.Hg){this.api.g8(this.xG.element); for(var W=0;W5&&J.WS("glrs",{cmt:K});J.seekTo(0,{seekSource:58});J.WS("glrre",{cmt:K})}}; Hf.prototype.lO=function(){this.W=null;g.R.prototype.lO.call(this)};g.N(g.Vm,KF);g.u=g.Vm.prototype;g.u.isView=function(){return!0}; g.u.Oq=function(){var W=this.mediaElement.getCurrentTime();if(W1;fD(W.UA(),I-.01)&&!q&&(es(this,4),K.isActive=!1,K.LO=K.LO||K.isActive,(this.j===1?this.W:this.K).WS("sbh",{}),J.isActive=!0,J.LO=J.LO||J.isActive,this.j!==0&&(this.W.getVideoData().Bk=!0));W=this.T.K;if(this.T.W.isActive&&W.isActive&&(es(this,5),this.j!==0)){W=this.K.nB();K=this.W.nB(); this.W.WS("sbs",{citag:K==null?void 0:K.itag,nitag:W==null?void 0:W.itag});this.K.WS("gitags",{pitag:K==null?void 0:K.itag,citag:W==null?void 0:W.itag});var S;(S=this.K)==null||S.Ao()}}}; g.u.qF=function(){this.Kz()&&this.sP("player-reload-after-handoff")}; g.u.sP=function(W,J){J=J===void 0?{}:J;if(!this.Iu()&&this.status.status!==6){var K=this.status.status>=4&&W!=="player-reload-after-handoff";this.status={status:Infinity,error:W};if(this.W&&this.K){var I=this.K.getVideoData().clientPlaybackNonce;this.W.Uk(new xm("dai.transitionfailure",Object.assign(J,{cpn:I,transitionTimeMs:this.Jg,msg:W})));this.W.kV(K)}this.sz.reject(W);this.dispose()}}; g.u.Kz=function(){return this.status.status>=4&&this.status.status<6}; g.u.lO=function(){qgH(this);this.W.unsubscribe("newelementrequired",this.qF,this);if(this.G){var W=this.G.K;this.G.W.fk.unsubscribe("updateend",this.En,this);W.fk.unsubscribe("updateend",this.En,this)}g.R.prototype.lO.call(this)}; g.u.H9=function(W){g.uT(W,128)&&this.sP("player-error-event")};g.N(RR,g.R);RR.prototype.clearQueue=function(W,J){W=W===void 0?!1:W;J=J===void 0?!1:J;this.T&&this.T.reject("Queue cleared");this.app.J().Y("html5_gapless_fallback_on_qoe_restart_v2")||J&&this.K&&this.K.kV(!1);bw(this,W)}; RR.prototype.QX=function(){return!this.W}; RR.prototype.Kz=function(){var W;return((W=this.G)==null?void 0:W.Kz())||!1}; RR.prototype.lO=function(){bw(this);g.R.prototype.lO.call(this)};g.N(juX,g.Ao);g.u=juX.prototype;g.u.getVisibilityState=function(W,J,K,I,q,S,p,n){return W?4:Ixc()?3:J?2:K?1:I?5:q?7:S?8:p?9:n?10:0}; g.u.p4=function(W){this.fullscreen!==W&&(this.fullscreen=W,this.Ww())}; g.u.setMinimized=function(W){this.K!==W&&(this.K=W,this.Ww())}; g.u.setInline=function(W){this.inline!==W&&(this.inline=W,this.Ww())}; g.u.fG=function(W){this.pictureInPicture!==W&&(this.pictureInPicture=W,this.Ww())}; g.u.setSqueezeback=function(W){this.G!==W&&(this.G=W,this.Ww())}; g.u.S8=function(W){this.T!==W&&(this.T=W,this.Ww())}; g.u.UM=function(){return this.W}; g.u.GW=function(){return this.fullscreen!==0}; g.u.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.u.OE=function(){return this.fullscreen}; g.u.isMinimized=function(){return this.K}; g.u.isInline=function(){return this.inline}; g.u.isBackground=function(){return Ixc()}; g.u.Yh=function(){return this.pictureInPicture}; g.u.HV=function(){return!1}; g.u.C1=function(){return this.G}; g.u.Sz=function(){return this.T}; g.u.Ww=function(){this.publish("visibilitychange");var W=this.getVisibilityState(this.UM(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Yh(),this.HV(),this.C1(),this.Sz());W!==this.S&&this.publish("visibilitystatechange");this.S=W}; g.u.lO=function(){pBD(this.j);g.Ao.prototype.lO.call(this)};g.N(g.Bf,g.R);g.u=g.Bf.prototype;g.u.lO=function(){this.videoData=this.playerState=null;g.R.prototype.lO.call(this)}; g.u.addCueRange=function(){}; g.u.DI=function(){}; g.u.Bo=function(){}; g.u.j2=function(){return!1}; g.u.Sf=function(){return!1}; g.u.XE=function(){return!1}; g.u.EZ=function(){}; g.u.YV=function(){}; g.u.ji=function(){}; g.u.FU=function(){return[]}; g.u.f3=function(){}; g.u.getAudioTrack=function(){return this.getVideoData().uD}; g.u.Ry=function(){return null}; g.u.getAvailableAudioTracks=function(){return[]}; g.u.iV=function(){return[]}; g.u.tV=function(){return[]}; g.u.ao=function(){return""}; g.u.P$=function(){return[]}; g.u.PV=function(){}; g.u.ac=function(){return 0}; g.u.zl=function(){return""}; g.u.getCurrentTime=function(){return 0}; g.u.s2=function(){}; g.u.nB=function(){}; g.u.RZ=function(){return{}}; g.u.getDuration=function(){return 0}; g.u.vY=function(){return 0}; g.u.OA=function(){return 0}; g.u.fq=function(){return!1}; g.u.Xg=function(){return 0}; g.u.z6=function(){return 0}; g.u.h2=iD(15);g.u.MB=function(){return 0}; g.u.wF=function(){return!1}; g.u.DX=function(){return 0}; g.u.gb=function(){return null}; g.u.v4=function(){return null}; g.u.wf=function(){return 0}; g.u.rd=function(){return 0}; g.u.GY=function(){return g.V(function(W){g.d0(W)})}; g.u.Uu=iD(21);g.u.getPlaybackQuality=function(){return"auto"}; g.u.getPlaybackRate=function(){return 1}; g.u.getPlayerState=function(){this.playerState||(this.playerState=new g.lp);return this.playerState}; g.u.getPlayerType=function(){return 0}; g.u.getPlaylistSequenceForTime=function(){return null}; g.u.Xj=function(){return function(){}}; g.u.rF=function(){return""}; g.u.getPreferredQuality=function(){return"unknown"}; g.u.kP=function(){}; g.u.getProximaLatencyPreference=function(){return 0}; g.u.XJ=function(){return k5}; g.u.EW=function(){return null}; g.u.getStoryboardFormat=function(){return null}; g.u.getStreamTimeOffset=function(){return 0}; g.u.XH=function(){return 0}; g.u.nE=function(){return 0}; g.u.cV=function(){return{JF:[],aj:[],currentTime:0,fd:"",droppedVideoFrames:0,isGapless:!1,QX:!0,f1:0,AG:0,yC:0,Fi:0,bl:0,Ll:[],Zb:[],Zg:null,playerState:this.getPlayerState(),HG:null,Dj:"",totalVideoFrames:0}}; g.u.getUserAudio51Preference=function(){return 0}; g.u.getUserPlaybackQualityPreference=function(){return""}; g.u.getVideoData=function(){this.videoData||(this.videoData=new g.zR(this.Ru),g.B(this,this.videoData));return this.videoData}; g.u.BK=function(){return null}; g.u.qI=function(){return null}; g.u.Ah=function(){}; g.u.getVideoLoadedFraction=function(){return 0}; g.u.Lm=function(){}; g.u.handleError=function(){}; g.u.kV=function(){}; g.u.ZF=function(){}; g.u.pN=function(){return!1}; g.u.ut=iD(46);g.u.vj=function(){return!1}; g.u.hasSupportedAudio51Tracks=function(){return!1}; g.u.bV=function(){return!1}; g.u.UM=function(){return!1}; g.u.isAtLiveHead=function(){return!1}; g.u.Ps=function(){return!0}; g.u.isGapless=function(){return!1}; g.u.isHdr=function(){return!1}; g.u.Pi=function(){return!1}; g.u.Ge=function(){return!1}; g.u.n1=function(){return!1}; g.u.isProximaLatencyEligible=function(){return!1}; g.u.QX=function(){return!0}; g.u.z_=function(){return!1}; g.u.V8=function(){return!1}; g.u.uQ=function(){}; g.u.KH=function(){}; g.u.O4=function(){}; g.u.YL=function(){}; g.u.Ao=function(){}; g.u.dk=function(){}; g.u.qG=function(){}; g.u.uh=function(){}; g.u.qK=function(){}; g.u.Dc=iD(56);g.u.qn=iD(27);g.u.wr=function(){}; g.u.Xh=function(){}; g.u.pauseVideo=function(){}; g.u.playVideo=function(){return g.V(function(W){return W.return()})}; g.u.Hh=function(){}; g.u.WP=iD(33);g.u.by=iD(39);g.u.DE=function(){}; g.u.WS=function(){}; g.u.o5=function(){}; g.u.bW=function(){}; g.u.JJ=function(){}; g.u.Uk=function(){}; g.u.p$=function(){}; g.u.HF=function(){}; g.u.qQ=function(){}; g.u.Ki=function(){}; g.u.FO=function(){}; g.u.AO=function(){}; g.u.U9=function(){}; g.u.removeCueRange=function(){}; g.u.LG=function(){}; g.u.iK=function(){return[]}; g.u.Fb=function(){}; g.u.c$=function(){}; g.u.e$=function(){}; g.u.X2=function(){}; g.u.f$=function(){}; g.u.Nw=function(){}; g.u.seekTo=function(){}; g.u.sendAbandonmentPing=function(){}; g.u.sendVideoStatsEngageEvent=function(){}; g.u.A_=function(){}; g.u.CG=function(){}; g.u.setLoop=function(){}; g.u.Gn=function(){}; g.u.setMediaElement=function(){}; g.u.gL=function(){}; g.u.setPlaybackRate=function(){}; g.u.Za=function(){}; g.u.RD=function(){}; g.u.sM=function(){}; g.u.setProximaLatencyPreference=function(){}; g.u.XA=function(){}; g.u.MZ=function(){}; g.u.Eb=function(){}; g.u.xF=function(){}; g.u.XR=function(){}; g.u.setUserAudio51Preference=function(){}; g.u.gh=function(){}; g.u.RH=function(){return!1}; g.u.VH=function(){}; g.u.k0=function(){return!1}; g.u.nz=function(){}; g.u.YF=function(){}; g.u.dL=function(){}; g.u.stopVideo=function(){}; g.u.subscribe=function(){return NaN}; g.u.bA=function(){}; g.u.togglePictureInPicture=function(){}; g.u.Ez=function(){return 0}; g.u.unsubscribe=function(){return!1}; g.u.Sc=function(){}; g.u.F7=function(){return!1}; g.u.qg=function(){}; g.u.VA=function(){}; g.u.K0=function(){}; g.u.T4=function(){};g.N(oR,g.R);g.u=oR.prototype;g.u.get=function(W){m3(this);var J=this.data.find(function(K){return K.key===W}); return J?J.value:null}; g.u.set=function(W,J,K){this.remove(W,!0);m3(this);W={key:W,value:J,expire:Infinity};K&&isFinite(K)&&(K*=1E3,W.expire=(0,g.L)()+K);for(this.data.push(W);this.data.length>this.G;)(K=this.data.shift())&&LO(this,K,!0);ru(this)}; g.u.remove=function(W,J){J=J===void 0?!1:J;var K=this.data.find(function(I){return I.key===W}); K&&(LO(this,K,J),g.dv(this.data,function(I){return I.key===W}),ru(this))}; g.u.removeAll=function(W){if(W=W===void 0?!1:W)for(var J=g.d(this.data),K=J.next();!K.done;K=J.next())LO(this,K.value,W);this.data=[];ru(this)}; g.u.lO=function(){var W=this;g.R.prototype.lO.call(this);this.data.forEach(function(J){LO(W,J,!0)}); this.data=[]};g.N(g.kO,g.R);g.u=g.kO.prototype;g.u.lO=function(){for(var W=g.d(Object.values(this.G)),J=W.next();!J.done;J=W.next())J.value.dispose();fHA(this);this.W.dispose();g.R.prototype.lO.call(this)}; g.u.SA=function(W){return W?W===1?this.N:this.K.getVideoData().enableServerStitchedDai&&W===2?this.K.getVideoData().Jc?this.G[2]||this.K:this.K:g.c8(this.K.getVideoData())&&W===2?this.G[2]||this.K:this.G[W]||null:this.K}; g.u.hD=function(W){var J=W.cpn;W=W.playerType;if(J)a:{W=g.d(Object.values(this.G));for(var K=W.next();!K.done;K=W.next())if(K=K.value,K.ao()===J){J=K;break a}J=this.j[J]||null}else J=W?this.SA(W):this.K;return J}; g.u.Gx=function(){return this.N}; g.u.lw=function(W){this.N=W}; g.u.As=function(){return this.K}; g.u.Fr=function(W){this.K=W;z2(this)}; g.u.KO=iD(52);g.u.t1=iD(54);g.N(vf,g.R);g.u=vf.prototype;g.u.enqueue=function(W,J){if(W.T!==this)return!1;if(this.segments.length===0||(J===void 0?0:J))this.W=W;this.segments.push(W);return!0}; g.u.l1=function(){return this.yP||0}; g.u.Vd=function(){return this.T||0}; g.u.removeAll=function(){for(;this.segments.length;){var W=void 0;(W=this.segments.pop())==null||W.dispose()}this.K.clear();this.G=void 0}; g.u.lO=function(){this.removeAll();g.R.prototype.lO.call(this)}; g.N(CND,g.R);g.u=CND.prototype;g.u.l1=function(){return this.yP}; g.u.Vd=function(){return this.G}; g.u.getVideoData=function(){return this.videoData}; g.u.ao=function(){return this.videoData.clientPlaybackNonce}; g.u.M0=function(W){wP(W);this.videoData=W}; g.u.lO=function(){MqQ(this);g.R.prototype.lO.call(this)};g.N(gB0,g.rk);g.u=gB0.prototype;g.u.Oe=function(){}; g.u.ao=function(){return this.videoData.clientPlaybackNonce}; g.u.getVideoData=function(){var W=this.pk;var J=g.rk.prototype.getCurrentTime.call(this);if(W.X1)W=void 0;else{var K=void 0;W.IG&&(K=W.G.get(W.IG));if(!K){K=RmQ(W,J*1E3);var I,q=(I=K)==null?void 0:I.cpn;W.IG?q&&W.IG!==q&&W.ub({cpcnm:q+"_"+W.IG,cmt:J.toFixed(3)}):W.ub({cpcna:q,cmt:J.toFixed(3)})}var S;W=(S=K)==null?void 0:S.videoData}return W||g.rk.prototype.getVideoData.call(this)}; g.u.getCurrentTime=function(W){if(W)W=this.pk.AI/1E3||g.rk.prototype.getCurrentTime.call(this);else{var J=this.pk;W=g.rk.prototype.getCurrentTime.call(this);W=(J=emX(J,W*1E3))?W-J.start/1E3:W}return W}; g.u.getDuration=function(){var W=this.pk,J=g.rk.prototype.getCurrentTime.call(this);return(W=RmQ(W,J*1E3))?W.durationMs/1E3:0};g.YO.prototype.vV=function(W,J){if(J===1)return this.W.get(W);if(J===2)return this.G.get(W);if(J===3)return this.K.get(W)}; g.YO.prototype.jc=iD(64);g.YO.prototype.rk=function(W,J,K,I){K={ZS:I,Qz:K};J?this.G.set(W,K):this.W.set(W,K)}; g.YO.prototype.clearAll=function(){this.W.clear();this.G.clear();this.K.clear()}; g.N(g.s_,g.R);g.u=g.s_.prototype;g.u.Ho=function(W,J,K){return new g.p9(W,J,{id:K,namespace:"serverstitchedcuerange",priority:9})}; g.u.So=function(W){var J=W.lV?W.lV*1E3:W.yP,K=this.K.get(W.cpn);K&&this.playback.removeCueRange(K);this.K.delete(W.cpn);this.G.delete(W.cpn);K=this.j.indexOf(W);K>=0&&this.j.splice(K,1);K=[];for(var I=g.d(this.S),q=I.next();!q.done;q=I.next())q=q.value,q.end<=J?this.playback.removeCueRange(q):K.push(q);this.S=K;zm0(this,0,J+W.durationMs)}; g.u.onCueRangeEnter=function(W){this.Y3.push(W);var J=W.getId();this.ub({oncueEnter:1,cpn:J,start:W.start,end:W.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.ac()||0).toFixed(3)});var K=J==="";this.FW.add(W.K);var I=this.G.get(J);if(K){var q;if(this.playback.getVideoData().rf()&&((q=this.W)==null?0:q.mK)&&this.T){this.XT=0;this.W=void 0;this.sI&&(this.events.aZ(this.sI),this.sI=null);this.T="";this.OI=!0;return}}else if(this.ub({enterAdCueRange:1}),this.playback.getVideoData().rf()&& (I==null?0:I.L1))return;if(this.OI&&!this.W)this.OI=!1,!K&&I&&(K=this.playback.getCurrentTime(),J1(this,{SP:W,isAd:!0,Q_:!0,wm:K,adCpn:J},{isAd:!1,Q_:!1,wm:K}),this.IG=I.cpn,this.A2(I.cpn),WV(this,I),W=Xd(this,"midab",I),this.ub(W),this.XT=1),this.N=!1;else if(this.W){if(this.W.Q_)this.ub({a_pair_of_same_transition_occurs_enter:1,acpn:this.W.adCpn,transitionTime:this.W.wm,cpn:J,currentTime:this.playback.getCurrentTime()}),I=this.playback.getCurrentTime(),W={SP:W,isAd:!K,Q_:!0,wm:I,adCpn:J},J={SP:this.W.SP, isAd:this.W.isAd,Q_:!1,wm:I,adCpn:this.W.adCpn},this.W.SP&&this.FW.delete(this.W.SP.K),J1(this,W,J);else{if(this.W.SP===W){this.ub({same_cue_range_pair_enter:1,acpn:this.W.adCpn,transitionTime:this.W.wm,cpn:J,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:W.start,cueRangeEndTime:W.end});this.W=void 0;return}if(this.W.adCpn===J){J&&this.ub({dchtsc:J});this.W=void 0;return}W={SP:W,isAd:!K,Q_:!0,wm:this.playback.getCurrentTime(),adCpn:J};J1(this,W,this.W)}this.W=void 0;this.N=!1}else this.W= {SP:W,isAd:!K,Q_:!0,wm:this.playback.getCurrentTime(),adCpn:J}}; g.u.A2=function(W){var J=this.app.ai().j[W]||null;J?(W=this.G.has(W),hmX(this.app.ai(),J,W)):this.ub({no_sscp_for_cpn:W})}; g.u.onCueRangeExit=function(W){var J=W.getId();this.ub({oncueExit:1,cpn:J,start:W.start,end:W.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.ac()||0).toFixed(3)});var K=J==="",I=this.G.get(J);if(this.playback.getVideoData().rf()&&!K&&I){if(I.L1)return;I.L1=!0;this.C.clear();if(this.Ru.Y("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.j2()){var q=I.yP;this.playback.U9(q/1E3,(q+I.durationMs)/1E3)}else this.playback.WS("lifa",{remove:0})}if(this.FW.has(W.K))if(this.FW.delete(W.K), this.Y3=this.Y3.filter(function(S){return S!==W}),this.OI&&(this.N=this.OI=!1,this.ub({cref:1})),this.W){if(this.W.Q_){if(this.W.SP===W){this.ub({same_cue_range_pair_exit:1, acpn:this.W.adCpn,transitionTime:this.W.wm,cpn:J,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:W.start,cueRangeEndTime:W.end});this.W=void 0;return}if(this.W.adCpn===J){J&&this.ub({dchtsc:J});this.W=void 0;return}J={SP:W,isAd:!K,Q_:!1,wm:this.playback.getCurrentTime(),adCpn:J};J1(this,this.W,J)}else if(this.ub({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.W.adCpn,transitionTime:this.W.wm,upcomingCpn:J,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.W.adCpn===J)return;this.W=void 0;this.N=!1}else this.W={SP:W,isAd:!K,Q_:!1,wm:this.playback.getCurrentTime(),adCpn:J};else this.ub({ignore_single_exit:1})}; g.u.YD=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,yP:0,playerType:1,WD:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.u.Fa=function(){if(this.X1)return!1;var W=void 0;this.IG&&(W=this.G.get(this.IG));return this.playback.getVideoData().rf()?!!W&&!W.L1:!!W}; g.u.seekTo=function(W,J,K,I){W=W===void 0?0:W;J=J===void 0?{}:J;K=K===void 0?!1:K;I=I===void 0?null:I;if(this.playback.getVideoData().rf()&&W<=this.AI/1E3)this.playback.pauseVideo(),this.AI=0,this.N=!0,this.playback.GY(),this.playback.seekTo(W),this.playback.playVideo();else if(this.N=!0,K)$Xy(this,W,J);else{K=this.app.As();var q=K===this.D0?this.Tx:null;Ip(this,!1);this.oG=W;this.qD=J;I!=null&&this.SI.start(I);K&&(this.Tx=q||K.getPlayerState(),K.dL(J),this.D0=K)}}; g.u.lO=function(){Ip(this,!1);bNQ(this);BWQ(this);g.R.prototype.lO.call(this)}; g.u.EF=function(W){this.fE=W;this.ub({swebm:W})}; g.u.MY=function(W,J,K){if(K&&J){var I=this.C.get(W);if(I){I.locations||(I.locations=new Map);var q=Number(J.split(";")[0]);K=new g.TV(K);this.ub({hdlredir:1,itag:J,seg:W,hostport:V_(K)});I.locations.set(q,K)}}}; g.u.SU=function(W,J,K,I,q,S){var p=I===3,n=rpv(this,W,J,I,K,S);if(!n){Sy(this,J,p);var A=g.mXA(this,J)?"undec":"ncp";this.ub({gvprp:A,mt:W,seg:J,tt:I,itag:K,ce:S});return null}p||this.C.set(J,n);S=n.gq;var D;I=((D=this.vV(J-1,I,q))==null?void 0:D.ZS)||"";I===""&&this.ub({eds:1});D=LFI(this,n.ssdaiAdsConfig);q=this.playback.getVideoData();var f;p=((f=q.K)==null?void 0:f.containerType)||0;f=q.TF[p];n=n.RY&&J>=n.RY?n.RY:void 0;f={Ta:S?YgQ(this,S):[],Of:D,ZS:I,SH:n,RF:Uh(f.split(";")[0]),uj:f.split(";")[1]|| ""};n={Ag:f};this.eZ&&(W={gvprpro:"v",sq:J,mt:W.toFixed(3),itag:K,acpns:((A=f.Ta)==null?void 0:A.join("_"))||"none",abid:S},this.ub(W));return n}; g.u.T7=function(W){a:{if(!this.X1){var J=oB0(this,W);if(!(this.playback.getVideoData().rf()&&(J==null?0:J.L1)))break a}J=void 0}var K=J;if(!K)return this.ub({gvprp:"ncp",mt:W}),null;J=K.gq;var I=LFI(this,K.ssdaiAdsConfig);K=K.RY&&K.h7&&W>=K.h7?K.RY:void 0;var q=this.playback.getVideoData(),S,p=((S=q.K)==null?void 0:S.containerType)||0;S=q.TF[p];S={Ta:J?YgQ(this,J):[],Of:I,SH:K,RF:Uh(S.split(";")[0]),uj:S.split(";")[1]||""};var n;W={gvprpro:"v",mt:W.toFixed(3),acpns:((n=S.Ta)==null?void 0:n.join("_"))|| "none",abid:J};this.ub(W);return S}; g.u.K1=function(W,J,K,I,q,S){var p=Number(K.split(";")[0]),n=I===3;W=rpv(this,W,J,I,K,S);this.ub({gdu:1,seg:J,itag:p,pb:""+!!W});if(!W)return Sy(this,J,n),null;W.locations||(W.locations=new Map);if(!W.locations.has(p)){var A,D;S=(A=W.videoData.getPlayerResponse())==null?void 0:(D=A.streamingData)==null?void 0:D.adaptiveFormats;if(!S)return this.ub({gdu:"noadpfmts",seg:J,itag:p}),Sy(this,J,n),null;A=S.find(function(t){return t.itag===p}); if(!A||!A.url){var f=W.videoData.videoId;W=[];var h=g.d(S);for(I=h.next();!I.done;I=h.next())W.push(I.value.itag);this.ub({gdu:"nofmt",seg:J,vid:f,itag:p,fullitag:K,itags:W.join(",")});Sy(this,J,n);return null}W.locations.set(p,new g.TV(A.url,!0))}S=W.locations.get(p);if(!S)return this.ub({gdu:"nourl",seg:J,itag:p}),Sy(this,J,n),null;S=new wA(S);this.fE&&(S.get("dvc")?this.ub({dvc:S.get("dvc")||""}):S.set("dvc","webm"));(I=(h=this.vV(J-1,I,q))==null?void 0:h.ZS)&&S.set("daistate",I);W.RY&&J>=W.RY&& S.set("skipsq",""+W.RY);(h=this.playback.getVideoData().clientPlaybackNonce)&&S.set("cpn",h);h=[];W.gq&&(h=YgQ(this,W.gq),h.length>0&&S.set("acpns",h.join(",")));n||this.C.set(J,W);n=null;n=S.get("aids");I=S.xm();(I==null?void 0:I.length)>2048&&this.ub({urltoolong:1,sq:J,itag:p,len:I.length});this.eZ&&(I&&(S=W.cpn,q=W.gq,PNQ(this,S,q),q&&!this.kK.has(q)&&(S=suy(this,S,q),A=cpv(this,q),this.ub({iofa:S}),this.ub({noawnzd:A-S}),this.ub({acpns:h.join("."),aids:(f=n)==null?void 0:f.replace(/,/g,".")}), this.kK.add(q))),this.ub({gdu:"v",seg:J,itag:K,ast:W.yP.toFixed(3),alen:W.durationMs.toFixed(3),acpn:W.cpn,avid:W.videoData.videoId}));return I}; g.u.KS=function(W,J,K){K=K===void 0?!1:K;var I=qS(this,W,J);if(I){var q=void 0,S=I.gq;if(S){this.ub({skipadonsq:J,sts:K,abid:S,acpn:I.cpn,avid:I.videoData.videoId});K=this.Z.get(S);if(!K)return;K=g.d(K);for(S=K.next();!S.done;S=K.next())S=S.value,S.RY=J,S.h7=W,S.yP>I.yP&&(q=S)}this.T=I.cpn;kDI(this);W=this.playback.getCurrentTime();iA(this,I,q,W,W,!1,!0)}}; g.u.N6=function(){for(var W=g.d(this.j),J=W.next();!J.done;J=W.next())J=J.value,J.RY=NaN,J.h7=NaN;kDI(this);this.ub({rsac:"resetSkipAd",sac:this.T});this.T=""}; g.u.vV=function(W,J,K){return this.jZ.vV(W,J,K)}; g.u.jc=iD(63); g.u.rk=function(W,J,K,I,q,S,p,n,A){I.length>0&&this.ub({onssinfo:1,sq:W,start:J.toFixed(3),cpns:I.join(","),ds:q.join(","),isVideo:p?1:0});A&&this.jZ.rk(W,p,n,A);if(p){if(I.length&&q.length)for(this.T&&this.T===I[0]&&this.ub({skipfail:1,sq:W,acpn:this.T}),W=J+this.XH(),p=0;p0&&(this.XT=0,this.IG="",this.api.publish("serverstitchedvideochange"));this.playback.ji(K,I);return!0}; g.u.HM=function(){this.ub({rstdaist:1});this.jZ.clearAll()}; g.u.D7=function(W){var J;if(W!==((J=this.G8)==null?void 0:J.identifier))this.ub({ignorenoad:W});else{this.sT.add(W);this.ub({noadrcv:W});var K;((K=this.G8)==null?void 0:K.identifier)===W&&Pf(this)}}; g.u.LC=function(){return this.XT}; g.u.Ik=function(){return this.IG}; g.u.hJ=function(W){if(this.X1)return this.ub({dai_disabled:W.event}),!1;if(this.playback.getVideoData().rf()&&(this.Ru.Y("html5_lifa_no_gab_on_predict_start")&&W.event==="predictStart"||W.event==="continue"||W.event==="stop"))return this.ub({cuepoint_skipped:W.event}),!1;var J=$z(this.api.Xz());if(J=J?J.hJ(W):!1)this.PS={wE:W.identifier,AP:W.startSecs};else if(this.PS&&this.PS.wE===W.identifier&&W.startSecs>this.PS.AP+1){this.ub({cueStChg:W.identifier,oldSt:this.PS.AP.toFixed(3),newSt:W.startSecs.toFixed(3), abid:this.PS.tP});if(this.PS.tP){var K=W.startSecs-this.PS.AP,I=this.Z.get(this.PS.tP);if(I){I=g.d(I);for(var q=I.next();!q.done;q=I.next())q=q.value,q.yP>=0&&(q.yP+=K*1E3,this.Ru.Y("html5_ssdai_update_timeline_on_start_time_change")&&(q.WD+=K*1E3),this.ub({newApEt:q.yP,newApPrt:q.WD,acpn:q.cpn}))}}this.PS.AP=W.startSecs}return J}; g.u.im=function(W){return this.X1?!1:!!oB0(this,W)}; g.u.O8=function(W){var J=this;if(this.Ru.Y("html5_lifa_ignore_multiple_skips")&&this.sI)return this.ub({unfinished_skip:this.IG}),!1;this.playback.pauseVideo();var K=this.playback.getCurrentTime(),I=this.Ru.Y("html5_lifa_reset_segment_index_on_skip"),q=I?K+this.playback.XH():K,S=this.G.get(this.IG),p=this.K.get(this.IG);if(S){this.T=this.IG;this.N=!1;S.L1=!0;K=this.playback.getCurrentTime();this.W={SP:p,isAd:!0,Q_:!1,wm:K,adCpn:this.IG,mK:S,Fg8:W};this.playback.qQ(S,this.YD(),K,this.playback.getCurrentTime(), !1,!0,W,(0,g.L)());I&&this.playback.wr();if(p==null?0:p.start)this.AI=K*1E3-p.start;this.C.clear();this.playback.GY();W=this.YD();this.IG=W.cpn;this.A2(W.cpn);this.api.publish("serverstitchedvideochange");this.playback.seekTo(q,{seekSource:89,cN:"lifa_skip"});this.playback.playVideo();this.sI||(this.sI=this.events.D(this.api,"progresssync",function(){J.So(S)})); return!0}this.ub({skipFail:K},!0);return!1}; g.u.ub=function(W,J){((J===void 0?0:J)||this.eZ||this.playback.getVideoData().rf())&&this.playback.WS("sdai",W)}; var HNH=0;g.N(XcQ,g.s_);g.u=XcQ.prototype;g.u.onCueRangeEnter=function(W){var J=W.getId();this.playback.WS("sdai",{oncueEnter:1,cpn:J,start:W.start,end:W.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.ac()||0).toFixed(3)});W=this.G.get(J);this.playback.WS("sdai",{enterAdCueRange:1});J=this.IG||this.YD().cpn;var K;J=(K=this.G.get(J))!=null?K:this.YD();W&&(K={r5:J,hj:W,w5:this.playback.getCurrentTime()},this.P8(K))}; g.u.onCueRangeExit=function(W){var J=this.playback.getCurrentTime()*1E3;W=W.getId();for(var K=g.d(this.K.values()),I=K.next();!I.done;I=K.next())if(I=I.value,I.getId()!==W&&J>=I.start&&J<=I.end)return;if(J=this.G.get(W))J={r5:J,hj:this.YD(),w5:this.playback.getCurrentTime()},this.P8(J)}; g.u.P8=function(W){this.T||this.N||this.Ts(this.IG);var J=W.r5,K=W.hj;if(K.cpn===this.IG)this.playback.WS("sdai",{igtranssame:1,enter:K.cpn,exit:J.cpn});else{var I=this.N,q=!!this.T;this.T="";var S=W.w5,p=J.playerType===2?J.yP/1E3+J.videoData.OI:this.YD().videoData.OI;this.api.Y("html5_ssdai_enable_media_end_cue_range")&&(q||I||J.playerType!==2?(I||q)&&this.ub({mecr:0,seek:I,skip:q}):this.api.Ez(J.cpn));if(J.playerType===2&&K.playerType===2)q?this.playback.WS("sdai",{igtransskip:1,enter:K.cpn,exit:J.cpn, seek:I,skip:this.T}):iA(this,J,K,p,S,I,q);else{this.IG=K.cpn;this.A2(K.cpn);W=W.JR0;if(J.playerType===1&&K.playerType===2){this.AI=0;WV(this,K);var n=Xd(this,"c2a",K);this.playback.WS("sdai",n);this.XT++}else if(J.playerType===2&&K.playerType===1){n=J.videoData.OI;this.api.publish("serverstitchedvideochange");var A=Xd(this,"a2c");this.playback.WS("sdai",A);this.XT=0;this.AI=n*1E3;this.yr=p;Jky(this,J.gq)}this.playback.qQ(J,K,p,S,I,q,W)}this.T="";this.N=!1}}; g.u.seekTo=function(W,J,K,I){W=W===void 0?0:W;J=J===void 0?{}:J;K=K===void 0?!1:K;I=I===void 0?null:I;this.Ts(this.IG);this.playback.getVideoData().rf()&&W<=this.yr?(this.playback.pauseVideo(),this.yr=this.AI=0,WOQ(this,W)):g.s_.prototype.seekTo.call(this,W,J,K,I)}; g.u.KS=function(W,J,K){K=K===void 0?!1:K;var I=qS(this,W,J);if(I){var q=void 0,S=I.gq;if(S){this.playback.WS("sdai",{skipadonsq:J,sts:K,abid:S,acpn:I.cpn,avid:I.videoData.videoId});K=this.Z.get(S);if(!K)return;K=g.d(K);for(S=K.next();!S.done;S=K.next())S=S.value,S.RY=J,S.h7=W,S.yP>I.yP&&(q=S)}this.Ts(this.IG);this.T=I.cpn;kDI(this);W=this.playback.getCurrentTime();iA(this,I,q,W,W,!1,!0);this.T="";this.N=!1}}; g.u.rk=function(W,J,K,I,q,S,p,n,A){I.length>0&&this.playback.WS("sdai",{onssinfo:1,sq:W,start:J.toFixed(3),cpns:I.join(","),ds:q.join(","),isVideo:p?1:0});A&&this.jZ.rk(W,p,n,A);if(p){if(I.length&&q.length)for(this.T&&this.T===I[0]&&this.playback.WS("sdai",{skipfail:1,sq:W,acpn:this.T}),W=J+this.XH(),K=0;K=0&&this.j.splice(W,1)}; g.u.Ts=function(W){var J=W||this.IG,K=this.G.get(J);if(K){W=K.videoData;var I,q;J=K.lV||((q=(I=this.K.get(J))==null?void 0:I.start)!=null?q:0)/1E3;I=this.playback.getCurrentTime()-J;W.OI=I>0?I:0}else this.YD().videoData.OI=this.playback.getCurrentTime()};g.N(SIH,g.R);g.u=SIH.prototype; g.u.dY=function(W,J){J=J===void 0?"":J;if(this.timeline.G===J)return!0;var K=this.timeline.W,I=K==null?void 0:K.getVideoData();if(!K||!I)return this.api.WS("ssap",{htsm:K?0:1}),!1;var q=this.timeline,S;(S=q.W)==null||MqQ(S);q.K.clear();S=K.ao();K=!1;var p=[],n=new Map;q=[];var A=[],D=0,f=0,h=0,t=[];W=g.d(W);for(var F=W.next();!F.done;F=W.next()){var a=void 0;F=F.value;var y=F.clipId;if(y){if(F.JH){h=F.JH.mNw||0;var U=F.JH.o38||1;var Q=Number(((F.JH.BBy||0)/(F.JH.OP3||1)*1E3).toFixed(0));h=U=Q+Number((h/ U*1E3).toFixed(0))}else U=Q=h,this.v3.has(y)||this.RW.add(y);n.get(y);var C=!1;if(this.timeline.G){var T=this.VJ.get(y);T&&(T.start=Q,T.end=U,C=!0)}t.push(y);!C&&F.JH&&(t=this.Ho(Q,U,t.join(",")),this.VJ.set(y,t),q.push(t),t=[]);((a=F.JH)==null?void 0:a.Kfg)===I.videoId?(a=y,F=U,a!==I.clientPlaybackNonce&&this.api.WS("ssap",{cnm:1,cid:a,cpn:I.clientPlaybackNonce}),I.yk=Q,U=wcy(this.timeline,1,Q,F-Q,I),p.push(U),U=ZNQ(this.timeline,Q,F,[U]),K=K||U,A.length&&(A=pkL(this,D||0,f,A),K=K||A),f=D=F,A=[]): (a=void 0,C=this.pB.get(y),T=C!=null?C:new g.zR(this.api.J(),{cpn:y}),T.El=!0,this.RW.has(y)&&this.pB.set(y,T),D=Math.min(Q,D),f=Math.max(U,f),this.api.WS("ssap",{e:Q,d:U-Q,c:y,p:C?1:0}),T.yk=Q,F=wcy(this.timeline,2,Q,U-Q,T,(a=F.Gxy)==null?void 0:a.Dh),A.push(F))}else this.api.WS("ssap",{cm:1})}A.length&&(I=pkL(this,D||0,f,A),K=K||I);S&&p.length&&(QuQ(this.timeline,S,p),I=p[p.length-1].Vd(),(S=this.timeline.W)!=null&&(S.G=I));q.length&&this.playback.DI(q);if(K){this.timeline.G=J;I=this.playback.P$(); J=[];I=g.d(I);for(K=I.next();!K.done;K=I.next())K=K.value,K.G&&K.start!==0x7ffffffffffff&&(q=l5Q(this,K.G),q!==K.YU&&(K.start=K.start-K.YU+q,K.end=K.end-K.YU+q,K.YU=q,J.push(K)));this.playback.YL(J);this.api.WS("ssap",{tu:AkQ(this)});J=$z(this.api.Xz());this.api.WS("ssap",{am:J?1:0})}else this.api.WS("ssap",{tnu:1});return!0}; g.u.addPlayerResponseForAssociation=function(W){var J=new g.zR(this.api.J(),W.playerVars);J.playerResponseCpn?J.clientPlaybackNonce=J.playerResponseCpn:this.api.WS("ssap",{eim:this.playback.getVideoData().clientPlaybackNonce});J.El=!0;if(W=W.Xk)J.Xk=W,J.clientPlaybackNonce=W.cpn;W=J.clientPlaybackNonce;this.api.WS("ssap",{aprfa:W+"_"+J.videoId});if(W){this.pB.set(W,J);var K=this.timeline.K.get(W),I=!1;if(K==null?0:K.length){K=g.d(K);for(var q=K.next();!q.done;q=K.next())q=q.value,J.yk=q.l1(),q.M0(J), q.K&&(I=!0)}else I=!J.videoId;if(!I){if(!this.playback.pN(J.videoId)){var S;this.api.WS("ssap",{nlc:W,nlcc:(S=this.timeline.W)==null?void 0:S.ao()})}this.playback.EZ(W,J,2)}}}; g.u.vL=function(){this.GL=!0}; g.u.finishSegmentByCpn=function(W,J,K,I){if(this.IG===J)return[];this.GL&&(K=5,this.GL=!1);this.api.WS("ssap",{fsbc:W+";"+J,fsbcr:K,fsbct:this.api.getCurrentTime().toFixed(),fsbce:I!=null?I:""});this.Be=J;var q=!1;if(this.RW.has(W)&&(q=KOH(this,K),!q))return[W];var S=this.timeline.K.get(J);if(S){S.sort(function(A,D){return A.l1()-D.l1()}); var p=g.d(S);for(S=p.next();!S.done;S=p.next()){S=S.value;var n=this.playback.getCurrentTime()*1E3;if(S.l1()>=n){this.mP.set(W,K);umv(this,W,J);this.J7.set(W,(0,g.L)());if(K=this.VJ.get(J))for(K=K.getId().split(","),K=g.d(K),p=K.next();!p.done;p=K.next())p=p.value,p!==J&&this.RW.has(p)&&(this.RW.delete(p),this.v3.add(p));this.Ts();this.playback.seekTo(S.l1()/1E3);this.V9?(this.api.WS("ssap",{gpfreload:this.IG}),qIH(this)||(this.V9=!1),this.playback.GY(!1,!1)):I&&this.playback.GY(!1,!1);q&&this.api.playVideo(1); return[W]}}}return[]}; g.u.KN=function(){var W=this.timeline.W;if(!W)return 0;var J=W.Vd();W=g.d(W.W.values());for(var K=W.next();!K.done;K=W.next()){K=g.d(K.value);for(var I=K.next();!I.done;I=K.next())I=I.value,I.Vd()>J&&(J=I.Vd())}return J/1E3}; g.u.wf=function(){var W=this.playback.getCurrentTime()*1E3;var J=jQA(this,W);if(!J){var K=this.timeline.K.get(this.IG);if(K){K=g.d(K);for(var I=K.next();!I.done;I=K.next())I=I.value,I.l1()>W&&(J=I)}}return J&&J.type===1?J.l1()/1E3:0}; g.u.getVideoData=function(W){if(W===2&&!this.Fa()){if(this.eU&&this.pB.has(this.eU))return this.pB.get(this.eU);this.api.WS("ssap",{lpanf:""+this.playback.getVideoData().clientPlaybackNonce});return null}W=this.playback.getVideoData();if(this.IG){var J=this.pB.get(this.IG);J&&(W=J)}return W}; g.u.Fa=function(){var W=this.timeline.K.get(this.IG);return(W==null?0:W.length)?W[0].type===2:!1}; g.u.b4=function(){var W=this.timeline.K.get(this.IG);return(W==null?0:W.length)?W[0].K:!1}; g.u.seekTo=function(W,J){J=J===void 0?{}:J;var K=f5D(this,this.playback.getCurrentTime());this.playback.seekTo(W+K/1E3,J)}; g.u.Ho=function(W,J,K){return new g.p9(W,J,{id:K,namespace:"ssap",priority:9})}; g.u.onCueRangeEnter=function(W){if(!this.i5.has(W.getId())){this.api.WS("ssap",{oce:1,cpn:W.getId(),st:W.start,et:W.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.ac()||0).toFixed(3)});for(var J=W.getId().split(","),K=0;KK+1)for(I=K+1;I0?J:0}; g.u.lO=function(){this.api.J().ND()&&this.api.WS("ssap",{di:""+this.IG,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.pB.clear();this.RW.clear();this.i5.clear();this.mP.clear();this.J7.clear();this.v3.clear();this.SX=[];I5c(this);this.Be="";g.$d(this.events);g.R.prototype.lO.call(this)};g.N(dpQ,g.R);g.u=dpQ.prototype;g.u.onCueRangeEnter=function(W){if(this.W===this.app.As()){var J=this.j.get(W);J?wkv(this,J.target,J.Jg,W):this.Uk("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:W.toString()})}else if(J=this.K.find(function(q){return q.O_.SP===W})){var K=J.O_,I=K.target; K=K.Jg;I?wkv(this,I,K,W):Cgv(this,J.WD,K,W)}}; g.u.onQueuedVideoLoaded=function(){var W=this.Z;DV(this);if(W){if(!A1(this,W)){var J=this.app.As();this.Uk("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:J==null?void 0:J.getVideoData().clientPlaybackNonce,ccpn:""+W.playerVars.cpn})}this.app.As().addCueRange(W.O_.SP)}}; g.u.seekTo=function(W,J,K,I){W=W===void 0?0:W;J=J===void 0?{}:J;I=I===void 0?null:I;if(K===void 0?0:K)NVy(this,W,J);else{K=this.app.As()||null;var q=K===this.T?this.S:null;jy(this,!1);this.PS=W;this.C=J;I!=null&&this.N.start(I);K&&(this.S=q||K.getPlayerState(),K.dL(),this.T=K)}}; g.u.Lw=function(W){g.uT(W,128)&&xpH(this)}; g.u.isManifestless=function(){return hS(this.W.getVideoData())}; g.u.lO=function(){jy(this,!1);TVL(this);g.R.prototype.lO.call(this)}; g.u.Uk=function(W,J){this.W.Uk(new xm(W,J))}; var yk0=0;var HhH="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_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.N(fy,g.R);fy.prototype.zb=function(W){if(W)return this.K.get(W)}; fy.prototype.lO=function(){this.W.removeAll();this.K.removeAll();g.R.prototype.lO.call(this)};g.jBW=ai(function(){var W=window.AudioContext||window.webkitAudioContext;try{return new W}catch(J){return J.name}});g.N(bhy,g.k);g.u=bhy.prototype;g.u.GH=function(){g.n3(this.element,g.EH.apply(0,arguments))}; g.u.c$=function(){this.PN&&(this.PN.removeEventListener("focus",this.Q6),g.S4(this.PN),this.PN=null)}; g.u.vr=function(){this.Iu();var W=this.app.J();W.Rr||this.GH("tag-pool-enabled");W.S&&this.GH(g.Jd.HOUSE_BRAND);W.playerStyle==="gvn"&&(this.GH("ytp-gvn"),this.element.style.backgroundColor="transparent");W.oG&&(this.UB=g.ST("yt-dom-content-change",this.resize,this));this.D(window,"orientationchange",this.resize,this);this.D(window,"resize",this.resize,this)}; g.u.gU=function(W){g.Ee(this.app.J());this.w3=!W;h1(this)}; g.u.resize=function(){if(this.PN){var W=this.lD();if(!W.isEmpty()){var J=!g.Eh(W,this.kO.getSize()),K=LOQ(this);J&&(this.kO.width=W.width,this.kO.height=W.height);W=this.app.J();(K||J||this.r9||W.oG)&&this.app.BS.publish("resize",this.getPlayerSize())}}}; g.u.iJ=function(W,J){this.updateVideoData(J)}; g.u.updateVideoData=function(W){if(this.PN){var J=this.app.J();zq&&(this.PN.setAttribute("x-webkit-airplay","allow"),W.title?this.PN.setAttribute("title",W.title):this.PN.removeAttribute("title"));this.PN.setAttribute("controlslist","nodownload");J.ZI&&W.videoId&&(this.PN.poster=W.MP("default.jpg"))}J=g.QM(W,"yt:bgcolor");this.Ax.style.backgroundColor=J?J:"";this.pK=lB(g.QM(W,"yt:stretch"));this.kX=lB(g.QM(W,"yt:crop"),!0);g.jN(this.element,"ytp-dni",W.pP);this.resize()}; g.u.setGlobalCrop=function(W){this.hZ=lB(W,!0);this.resize()}; g.u.setCenterCrop=function(W){this.u6=W;this.resize()}; g.u.p4=function(){}; g.u.getPlayerSize=function(){var W=this.app.J(),J=this.app.BS.isFullscreen(),K=W.externalFullscreen&&g.xK(W);if(J&&Lz()&&!K)return new g.Vt(window.outerWidth,window.outerHeight);K=!isNaN(this.Vh.width)&&!isNaN(this.Vh.height);var I=this.app.J().Y("kevlar_player_enable_squeezeback_fullscreen_sizing");if(J&&!K&&I)return new g.Vt(this.element.clientWidth,this.element.clientHeight);if(J||W.V_){if(window.matchMedia){W="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.oz&&this.oz.media=== W||(this.oz=window.matchMedia(W));var q=this.oz&&this.oz.matches}if(q)return new g.Vt(window.innerWidth,window.innerHeight)}else if(K)return this.Vh.clone();return new g.Vt(this.element.clientWidth,this.element.clientHeight)}; g.u.lD=function(){var W=this.app.J().Y("enable_desktop_player_underlay"),J=this.getPlayerSize(),K=g.FV(this.app.J().experiments,"player_underlay_min_player_width");return W&&this.Ku&&J.width>K?(W=g.FV(this.app.J().experiments,"player_underlay_video_width_fraction"),new g.Vt(Math.min(J.height*this.getVideoAspectRatio(),J.width*W),Math.min(J.height,J.width*W/this.getVideoAspectRatio()))):J}; g.u.getVideoAspectRatio=function(){return isNaN(this.pK)?mpQ(this):this.pK}; g.u.getVideoContentRect=function(W){var J=this.lD();W=rkQ(this,J,this.getVideoAspectRatio(),W);return new g.E5((J.width-W.width)/2,(J.height-W.height)/2,W.width,W.height)}; g.u.fg=function(W){this.Ku=W;this.resize()}; g.u.q9=function(){return this.d7}; g.u.onMutedAutoplayChange=function(){h1(this)}; g.u.setInternalSize=function(W){g.Eh(this.Vh,W)||(this.Vh=W,this.resize())}; g.u.lO=function(){this.UB&&g.pI(this.UB);this.c$();g.k.prototype.lO.call(this)};g.u=zII.prototype;g.u.click=function(W,J){this.elements.has(W);this.W.has(W);var K=g.M_();K&&W.visualElement&&g.p$(K,W.visualElement,J)}; g.u.createClientVe=function(W,J,K,I){var q=this;I=I===void 0?!1:I;this.elements.has(W);this.elements.add(W);K=aRX(K);W.visualElement=K;var S=g.M_(),p=g.wT();S&&p&&(g.yb("combine_ve_grafts")?b6(em(),K,p):g.X0(g.Yb)(void 0,S,p,K));J.addOnDisposeCallback(function(){q.elements.has(W)&&q.destroyVe(W)}); I&&this.K.add(W)}; g.u.createServerVe=function(W,J,K){var I=this;K=K===void 0?!1:K;this.elements.has(W);this.elements.add(W);J.addOnDisposeCallback(function(){I.destroyVe(W)}); K&&this.K.add(W)}; g.u.destroyVe=function(W){this.elements.has(W);this.elements.delete(W);this.G.delete(W);this.W.delete(W);this.K.delete(W)}; g.u.aq=function(W,J){this.clientPlaybackNonce!==J&&(this.clientPlaybackNonce=J,Rg(em(),W),vWy(this))}; g.u.setTrackingParams=function(W,J){this.elements.has(W);J&&(W.visualElement=g.Qa(J))}; g.u.WN=function(W,J,K){this.elements.has(W);J?this.W.add(W):this.W.delete(W);var I=g.M_(),q=W.visualElement;this.K.has(W)?I&&q&&(J?g.q4(I,[q]):g.SV(I,[q])):J&&!this.G.has(W)&&(I&&q&&g.IE(I,q,void 0,K),this.G.add(W))}; g.u.hasVe=function(W){return this.elements.has(W)};g.N(g.Fc,g.R);g.Fc.create=function(W,J,K,I){try{var q=typeof W==="string"?W:"player"+g.Kx(W),S=w6[q];if(S){try{S.dispose()}catch(n){g.Va(n)}w6[q]=null}var p=new g.Fc(W,J,K,I);p.addOnDisposeCallback(function(){w6[q]=null;p.yB&&p.yB()}); return w6[q]=p}catch(n){throw g.Va(n),(n&&n instanceof Error?n:Error(String(n))).stack;}}; g.u=g.Fc.prototype;g.u.Ii=function(){return this.visibility}; g.u.lw=function(W){var J=this.Gx();if(W!==J){W.getVideoData().autonavState=J.getVideoData().autonavState;J.Sc(this.aQ,this);var K=J.getPlaybackRate();J.dispose();this.IZ.lw(W);W.setPlaybackRate(K);W.bA(this.aQ,this);iEy(this)}}; g.u.d$=function(){this.WE||(this.WE=g.n2(Bl(),UTH()));return this.WE}; g.u.c$=function(W){if(this.mediaElement){this.Hl&&(this.events.aZ(this.Hl),this.Hl=null);g.$d(this.xW);this.As().c$(!0,!1,W);this.template.c$();try{this.Y("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.n$()}catch(J){g.ET(J)}this.mediaElement=null}}; g.u.Fr=function(W,J,K){K=K===void 0?!1:K;if(W!==this.As()){this.logger.debug(function(){return"start set presenting player, type "+W.getPlayerType()+", vid "+W.getVideoData().videoId}); var I=null;K||(K=this.As(),I=K.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),GG(this.eP,3),bA(this,"cuerangesremoved",K.P$()),this.LU&&!W.isGapless()&&K.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),K=W.RH()&&K.RH(),this.jI.XQ("iv_s"),DKQ(this,K));W.getPlayerType()===1&&this.lw(W);AfX(this,W);this.IZ.Fr(W);this.mediaElement&&W.setMediaElement(this.mediaElement);W.bA(this.Lr,this);W.V8()?RHT(this,"setPresenting",!1):(this.iJ("newdata",W,W.getVideoData()), I&&!g.hO(I,W.getPlayerState())&&this.WG(new g.Fb(W.getPlayerState(),I)),J=J&&this.Y("html5_player_preload_ad_fix")&&W.getPlayerType()===1,W.Ge()&&!J&&this.iJ("dataloaded",W,W.getVideoData()),(J=(J=W.getVideoData().K)&&J.video)&&this.BS.YC("onPlaybackQualityChange",J.quality),bA(this,"cuerangesadded",W.P$()),J=W.getPlayerState(),g.z(J,2)?no0(this):g.z(J,8)?W.playVideo():W.Pi()&&W.pauseVideo(),J=this.Gx(),W.getPlayerType()===2&&(W.getVideoData().Iv=J.getVideoData().clientPlaybackNonce),W.getPlayerType()!== 2||this.CP()||(I=W.getVideoData(),J.Hh(I.clientPlaybackNonce,I.oG||"",I.breakType||0,I.mA,I.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.u.zw=function(){if(this.Gx()!==this.As()){var W=this.As();this.logger.debug(function(){return"release presenting player, type "+W.getPlayerType()+", vid "+W.getVideoData().videoId}); this.Fr(this.Gx())}}; g.u.ai=function(){return this.IZ}; g.u.hD=function(W){return this.IZ.hD(W)}; g.u.SA=function(W){return this.IZ.SA(W)}; g.u.Gx=function(){return this.IZ.Gx()}; g.u.As=function(){return this.IZ.As()}; g.u.FL=iD(50);g.u.jGS=function(){Uy(this)||(this.logger.debug("application playback ready"),this.UJ(5))}; g.u.Hku=function(){if(!Uy(this)){this.logger.debug("playback ready");HEQ(this);var W=this.As(),J=W.getPlayerState();W.Pi()?this.pauseVideo():J.isOrWillBePlaying()&&this.playVideo()}}; g.u.canPlayType=function(W){return VO(W)}; g.u.J=function(){return this.Ru}; g.u.getVideoData=function(){return this.As().getVideoData()}; g.u.nM=iD(19);g.u.K7=function(){return this.Gx().getVideoData()}; g.u.getVideoLoadedFraction=function(W){return(W=this.hD({playerType:W}))?W.getVideoLoadedFraction():this.IZ.W.getVideoLoadedFraction()}; g.u.UI=function(){return this.template}; g.u.Xz=function(){return this.eP}; g.u.VN=function(){return this.jI}; g.u.Vg=function(W){var J=this.hD({playerType:1});J&&J.CG(W)}; g.u.z4=function(){var W=this.eP.z4();this.BS.publish("videoStatsPingCreated",W);return W}; g.u.getVolume=function(){return Math.round(this.BS.getVolume())}; g.u.isMuted=function(){return this.BS.isMuted()}; g.u.WV=function(){if(this.Gx()===this.As()&&this.xt)return this.xt.postId}; g.u.Lmg=function(){var W=this;this.Y("use_rta_for_player")||(g.$w(this.Ru)?g.pp(this.Ru,g.m7(this.getVideoData())).then(function(J){ml(Bl(),J);Vdv(W.getVideoData(),W.Ru,W.d$())}):Vdv(this.getVideoData(),this.Ru,this.d$()))}; g.u.tb=function(W){this.BS.publish("poTokenVideoBindingChange",W)}; g.u.t3=function(W){this.BS.publish("d6de4videobindingchange",W)}; g.u.UF=function(){this.Fh&&this.Fh.UF()}; g.u.WX=function(W){this.Fh=W}; g.u.Oc=function(W){if(W===1){this.jI.tick("vr");var J=this.As();J.Bo();HO0(this.jI,J.getVideoData(),Tz0(this));NKD(this.eP)}J=this.Ru;if(I0(J)&&J.N||g.RP(J)){var K;(((K=this.As().getVideoData())==null?0:K.enableServerStitchedDai)||!this.CP())&&this.BS.YC("onAdStateChange",W)}}; g.u.setLoopVideo=function(W){var J=this.As();J===this.Gx()&&J.wF()!==W&&(J.setLoop(W),this.BS.qN("onLoopChange",W))}; g.u.getLoopVideo=function(){return this.As().wF()}; g.u.setLoopRange=function(W){var J=!1;!!this.xt!==!!W?J=!0:this.xt&&W&&(J=this.xt.startTimeMs!==W.startTimeMs||this.xt.endTimeMs!==W.endTimeMs||this.xt.postId!==W.postId||this.xt.type!==W.type);if(J){J=this.As();S7(J.getVideoData())&&J.WS("slr",{et:(W==null?void 0:W.endTimeMs)||-1});J=this.Gx();J.iK("applooprange");if(W){var K=new g.p9(W.startTimeMs,W.endTimeMs,{id:"looprange",namespace:"applooprange"});J.addCueRange(K)}else{this.K7().clipConfig=void 0;var I;((K=this.xt)==null?void 0:K.type)!=="repeatChapter"|| isNaN(Number((I=this.xt)==null?void 0:I.loopCount))||(K={loopCount:String(this.xt.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.AF("repeatChapterLoopEvent",K))}this.xt=W;this.BS.qN("onLoopRangeChange",W||void 0);this.Gx()===this.As()&&(this.Pv(),J.YV())}}; g.u.getLoopRange=function(){return this.xt}; g.u.Pv=function(){var W="",J=this.Gx();this.xt?J!==this.As()?W="pnea":Nz0(this,J.getCurrentTime())&&(this.xt.loopCount=0,W="ilr"):W="nlr";var K=this.As();if(S7(K.getVideoData()))if(this.Y("html5_gapless_log_loop_range_info")){var I,q;K.WS("slrre",{rej:W,ct:J.getCurrentTime(),lst:(I=this.xt)==null?void 0:I.startTimeMs,let:(q=this.xt)==null?void 0:q.endTimeMs})}else K.WS("slrre",{});W||yfv(this)}; g.u.setPlaybackRate=function(W,J){if(!isNaN(W)){W=qMQ(this,W);var K=this.Gx();K.getPlaybackRate()!==W&&(K.setPlaybackRate(W),J&&!this.Ru.T&&g.Hd("yt-player-playback-rate",W),this.BS.YC("onPlaybackRateChange",W))}}; g.u.getCurrentTime=function(W,J,K){J=J===void 0?!0:J;var I=this.IZ.B$;if(I)return I.getCurrentTime();var q=W===2&&this.getVideoData().enableServerStitchedDai,S=g.c8(this.getVideoData());I=null;q||S?I=this.As():I=this.hD({playerType:W});return I?S&&this.JD?(J=this.JD,I=I.getCurrentTime(),K?K=a50(J,K):(K=f5D(J,I),K=I-K/1E3),K):q&&this.bK?(K=this.IZ.S)?K.getCurrentTime(J):I.getCurrentTime():J?(K=yu(this,I),Oy(this,K.getCurrentTime(),K)):I.getCurrentTime():this.IZ.W.getCurrentTime()}; g.u.z6=function(){var W=this.hD({playerType:void 0});if(!W)return this.IZ.W.z6();W=yu(this,W);return Oy(this,W.z6(),W)}; g.u.getDuration=function(W,J){J=J===void 0?!0:J;var K=this.getVideoData(),I=W===2&&K.enableServerStitchedDai,q=g.c8(K),S=null;I||q?S=this.As():S=this.hD({playerType:W});if(!S)return this.IZ.W.getDuration();if(K.hasProgressBarBoundaries()&&!I&&!q){var p,n=Number((p=K.progressBarStartPosition)==null?void 0:p.utcTimeMillis),A;p=Number((A=K.progressBarEndPosition)==null?void 0:A.utcTimeMillis);if(!isNaN(n)&&!isNaN(p))return(p-n)/1E3}if(this.Y("html5_gapless_duration_use_max_seekable_time")&&S7(K)&&!K.isLivePlayback)return $3(this, W);if(q&&this.JD){K=this.JD;I=K.timeline.K.get(this.JD.Ik());J=0;if(I==null?0:I.length)for(K=g.d(I),I=K.next();!I.done;I=K.next())I=I.value,J+=(I.Vd()-I.l1())/1E3;else if(K=K.timeline.W)if(J=0,K.W.size===0)J=(K.Vd()-K.l1())/1E3;else for(K=K.W.values(),K=g.d(K),I=K.next();!I.done;I=K.next())for(I=g.d(I.value),q=I.next();!q.done;q=I.next())q=q.value,J+=(q.Vd()-q.l1())/1E3;else J=0;return W===1&&J===0?S.getDuration():J}if(J)return W=dK(this,S),Oy(this,W.getDuration(),W);if(I&&this.bK){var D;return((D= this.IZ.S)==null?void 0:D.getDuration())||0}return S.getDuration()}; g.u.OA=function(W){var J=this.hD({playerType:W});return J?this.CP(J)?(J=dK(this,J),J.OA()-J.getCurrentTime()+this.getCurrentTime(W)):J.OA():this.IZ.W.OA()}; g.u.Ma=function(){return this.tI}; g.u.addPlayerResponseForAssociation=function(W){this.JD&&this.JD.addPlayerResponseForAssociation(W)}; g.u.finishSegmentByCpn=function(W,J,K){return this.JD?this.JD.finishSegmentByCpn(W,J,K):[]}; g.u.vr=function(){this.template.vr();var W=this.BS;W.state.element=this.template.element;var J=W.state.element,K;for(K in W.state.W)W.state.W.hasOwnProperty(K)&&(J[K]=W.state.W[K]);(W=H0T(this.template.element))&&this.events.D(this.template,W,this.onFullscreenChange)}; g.u.getDebugText=function(W){var J=this.Gx().RZ(W),K=this.As();if(K!==this.Gx()){K=K.RZ(W);for(var I=g.d(Object.keys(K)),q=I.next();!q.done;q=I.next())q=q.value,J["ad"+q]=K[q];if(W){K=J;I={};if(q=Lw(document,"movie_player"))I.bounds=q.getBoundingClientRect(),I["class"]=q.className;q={};var S=g.Yj("video-ads");S?(mKQ(S,q),q.html=S.outerHTML):q.missing=1;S={};var p=g.Yj("videoAdUiSkipContainer"),n=g.Yj("ytp-ad-skip-button-container"),A=g.Yj("ytp-skip-ad-button"),D=p||n||A;D?(mKQ(D,S),S.ima=p?1:0,S.bulleit= n?1:0,S.component=A?1:0):S.missing=1;I=JSON.stringify({player:I,videoAds:q,skipButton:S});K.ad_skipBtnDbgInfo=I}}W&&this.mediaElement&&(J["0sz"]=""+(+e1(this.mediaElement.getSize())===0),J.op=this.mediaElement.FY("opacity"),K=this.mediaElement.pm().y+this.mediaElement.getSize().height,J.yof=""+(+K<=0),J.dis=this.mediaElement.FY("display"));W&&((W=(0,g.dw)())&&(J.gpu=W),(W=this.Ru.playerStyle)&&(J.ps=W),this.Ru.OI&&(J.webview=1));J.debug_playbackQuality=this.BS.getPlaybackQuality(1);J.debug_date=(new Date).toString(); J.origin=window.origin;J.timestamp=Date.now();delete J.uga;delete J.q;return JSON.stringify(J,null,2)}; g.u.getFeedbackProductData=function(){var W={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.J().experiments.experimentIds.join(", "),player_release:l[35]},J;if(J=this.getPlayerStateObject().tS)W.player_error_code=J.errorCode,W.player_error_details=JSON.stringify(J.errorDetail);return W}; g.u.getPresentingPlayerType=function(W){if(this.appState===1)return 1;if(Uy(this))return 3;var J;if(W&&((J=this.bK)==null?0:J.Fa(this.getCurrentTime())))return 2;var K;return g.c8(this.getVideoData())&&((K=this.JD)==null?0:K.Fa())?2:this.As().getPlayerType()}; g.u.b4=function(){return g.c8(this.getVideoData())&&this.JD?this.JD.b4():!1}; g.u.getPlayerStateObject=function(W){var J=this.IZ.B$;return J?J.getPlayerState():this.hD({playerType:W}).getPlayerState()}; g.u.getAppState=function(){return this.appState}; g.u.fH8=function(W){switch(W.type){case "loadedmetadata":this.C$.start();W=g.d(this.Pl);for(var J=W.next();!J.done;J=W.next())J=J.value,xKy(this,J.id,J.JSw,J.bQN,void 0,!1);this.Pl=[];break;case "loadstart":this.jI.XQ("gv");break;case "progress":case "timeupdate":tM(W.target.qR())>=2&&this.jI.XQ("l2s");break;case "playing":g.Jg&&this.C$.start();if(g.$w(this.Ru))W=!1;else{J=g.Hl(this.Xz());W=this.mediaElement.FY("display")==="none"||e1(this.mediaElement.getSize())===0;var K=t1(this.template),I=this.As().getVideoData(), q=g.Bh(this.Ru);I=pK(I);J=!K||J||q||I||this.Ru.bO;W=W&&!J}W&&(W=this.As(),W.KH(),this.getVideoData().Fz||(this.getVideoData().Fz=1,this.Rh(),W.playVideo()))}}; g.u.ApK=function(W){this.BS.z$("onLoadProgress",W)}; g.u.eNy=function(){this.BS.publish("playbackstalledatstart")}; g.u.nKN=function(W,J){this.BS.publish("sabrCaptionsDataLoaded",W,J)}; g.u.DkS=function(W){this.As().MZ(W)}; g.u.wDN=function(W){this.As().XA(W)}; g.u.uvg=function(W){W=yu(this,this.As());W=Oy(this,W.getCurrentTime(),W);this.BS.YC("onVideoProgress",W);this.Ru.Rm&&MLA(this,this.visibility.Yh())&&this.pauseVideo()}; g.u.wN3=function(){this.BS.YC("onAutoplayBlocked");var W=this.As().getVideoData();W&&(W.hP=!0);this.Y("embeds_enable_autoplay_and_visibility_signals")&&g.xK(this.Ru)&&(W={autoplayBrowserPolicy:Kt(),autoplayIntended:I_(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.AF("embedsAutoplayStatusChanged",W))}; g.u.bks=function(){this.BS.publish("progresssync")}; g.u.k$8=function(){this.BS.z$("onPlaybackPauseAtStart")}; g.u.iEu=function(W){if(this.getPresentingPlayerType()===1){g.uT(W,1)&&!g.z(W.state,64)&&this.K7().isLivePlayback&&this.Gx().isAtLiveHead()&&this.BS.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.uT(W,2)){if(this.xt&&this.xt.endTimeMs>=(this.getDuration()-1)*1E3){yfv(this);return}no0(this)}if(g.z(W.state,128)){var J=W.state;this.cancelPlayback(5);J=J.tS;JSON.stringify({errorData:J,debugInfo:this.getDebugText(!0)});this.BS.YC("onError",v2y(J.errorCode));this.BS.z$("onDetailedError",{errorCode:J.errorCode, errorDetail:J.errorDetail,message:J.errorMessage,messageKey:J.DW,cpn:J.cpn});(0,g.L)()-this.Ru.wB>6048E5&&this.BS.z$("onReloadRequired")}J={};if(W.state.isPlaying()&&!W.state.isBuffering()&&!z8("pbresume","ad_to_video")&&z8("_start","ad_to_video")){var K=this.getVideoData();J.clientPlaybackNonce=K.clientPlaybackNonce;K.videoId&&(J.videoId=K.videoId);g.Lc(J,"ad_to_video");oC("pbresume",void 0,"ad_to_video");NKD(this.eP)}this.BS.publish("applicationplayerstatechange",W)}}; g.u.WG=function(W){this.IZ.B$||this.BS.publish("presentingplayerstatechange",W)}; g.u.Lw=function(W){NS(this,Fg(W.state));g.z(W.state,1024)&&this.BS.isMutedByMutedAutoplay()&&(gK(this,{muted:!1,volume:this.r$.volume},!1),GP(this,!1))}; g.u.YTZ=function(W,J){W==="newdata"&&iEy(this);this.BS.publish("applicationvideodatachange",W,J)}; g.u.hNy=function(W,J){this.BS.z$("onPlaybackAudioChange",this.BS.getAudioTrack().pE.name);this.BS.publish("internalaudioformatchange",this.BS.getAudioTrack().pE.id,J)}; g.u.ReW=function(W){var J=this.As().getVideoData();W===J&&this.BS.YC("onPlaybackQualityChange",W.K.video.quality)}; g.u.Ij=function(){var W=this.IZ.G[2]||null;W&&(W=W.getVideoData(),this.As().WS("ssdai",{cleanaply:1,acpn:W==null?void 0:W.clientPlaybackNonce,avid:W.videoId,isDai:this.K7().enableServerStitchedDai?1:0}),delete this.IZ.G[2])}; g.u.CU3=function(W,J){this.iJ(W,this.As(),J)}; g.u.iJ=function(W,J,K){this.logger.debug(function(){return"on video data change "+W+", player type "+J.getPlayerType()+", vid "+K.videoId}); this.Ru.ND()&&J.WS("vdc",{type:W,vid:K.videoId||"",cpn:K.clientPlaybackNonce||""});J===this.Gx()&&(this.Ru.GJ=K.oauthToken);if(J===this.Gx()){this.getVideoData().enableServerStitchedDai&&!this.bK?(this.Gx().WS("sdai",{initSstm:1}),this.bK=this.Y("html5_enable_ssdai_transition_with_only_enter_cuerange")?new XcQ(this.BS,this.Ru,this.Gx(),this):new g.s_(this.BS,this.Ru,this.Gx(),this)):!this.getVideoData().enableServerStitchedDai&&this.bK&&(this.bK.dispose(),this.bK=null,fHA(this.IZ));var I,q;!g.c8(this.getVideoData())|| W!=="newdata"&&W!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((I=this.tI.W)==null?void 0:(q=I.getVideoData())==null?void 0:q.clientPlaybackNonce)?!g.c8(this.getVideoData())&&this.JD&&(this.JD.dispose(),this.JD=null):(UXH(this.tI),this.Ij(),I=wcy(this.tI,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.tI.enqueue(I,!0),ZNQ(this.tI,0,this.getDuration(1)*1E3,[I]),QuQ(this.tI,this.getVideoData().clientPlaybackNonce,[I]),this.JD&&(this.JD.dispose(),this.JD=null),this.JD=new SIH(this.BS, this.tI,this.Gx()),this.IZ.Gx().Eb(this.JD))}if(W==="newdata")this.logger.debug("new video data, destroy modules"),GG(this.eP,2),this.BS.publish("videoplayerreset",J);else{if(!this.mediaElement)return;W==="dataloaded"&&(this.Gx()===this.As()?(oP(K.QK,K.xx),tLD(this)):fDH(this));J.getPlayerType()===1&&(this.Ru.jZ&&BzT(this),this.getVideoData().isLivePlayback&&!this.Ru.j9&&this.sP("html5.unsupportedlive",2,"DEVICE_FALLBACK"),K.isLoaded()&&((i8Q(K)||this.getVideoData().Y_)&&this.BS.publish("legacyadtrackingpingchange", this.getVideoData()),K.hasProgressBarBoundaries()&&ZEy(this)));this.BS.publish("videodatachange",W,K,J.getPlayerType())}this.BS.YC("onVideoDataChange",{type:W,playertype:J.getPlayerType()});this.Pv();(I=K.zT)?this.PU.aq(I,K.clientPlaybackNonce):vWy(this.PU)}; g.u.FF=function(){Qu(this,null);this.BS.z$("onPlaylistUpdate")}; g.u.gm3=function(W){delete this.Nj[W.getId()];this.Gx().removeCueRange(W);a:{W=this.getVideoData();var J,K,I,q,S,p,n,A,D,f,h=((J=W.SZ)==null?void 0:(K=J.contents)==null?void 0:(I=K.singleColumnWatchNextResults)==null?void 0:(q=I.autoplay)==null?void 0:(S=q.autoplay)==null?void 0:S.sets)||((p=W.SZ)==null?void 0:(n=p.contents)==null?void 0:(A=n.twoColumnWatchNextResults)==null?void 0:(D=A.autoplay)==null?void 0:(f=D.autoplay)==null?void 0:f.sets);if(h)for(J=g.d(h),K=J.next();!K.done;K=J.next())if(K= K.value,q=I=void 0,K=K.autoplayVideo||((I=K.autoplayVideoRenderer)==null?void 0:(q=I.autoplayEndpointRenderer)==null?void 0:q.endpoint),I=g.m(K,g.iE),S=q=void 0,K!=null&&((q=I)==null?void 0:q.videoId)===W.videoId&&((S=I)==null?0:S.continuePlayback)){W=K;break a}W=null}(J=g.m(W,g.iE))&&this.BS.qN("onPlayVideo",{sessionData:{autonav:"1",itct:W==null?void 0:W.clickTrackingParams},videoId:J.videoId,watchEndpoint:J})}; g.u.UJ=function(W){var J=this;W!==this.appState&&(this.logger.debug(function(){return"app state change "+J.appState+" -> "+W}),W===2&&this.getPresentingPlayerType()===1&&(NS(this,-1),NS(this,5)),this.appState=W,this.BS.publish("appstatechange",W))}; g.u.sP=function(W,J,K,I,q){this.Gx().Za(W,J,K,I,q)}; g.u.bx=function(W,J){this.Gx().handleError(new xm(W,J))}; g.u.isAtLiveHead=function(W,J){J=J===void 0?!1:J;var K=this.hD({playerType:W});if(!K)return this.IZ.W.isAtLiveHead();W=dK(this,K);K=yu(this,K);return W!==K?W.isAtLiveHead(Oy(this,K.getCurrentTime(),K),!0):W.isAtLiveHead(void 0,J)}; g.u.Xg=function(){var W=this.hD({playerType:void 0});return W?dK(this,W).Xg():this.IZ.W.Xg()}; g.u.seekTo=function(W,J,K,I,q){J=J!==!1;if(I=this.hD({playerType:I}))this.appState===2&&wK(this),this.CP(I)?TP(this)?this.bK.seekTo(W,{seekSource:q},J,K):this.pk.seekTo(W,{seekSource:q},J,K):g.c8(this.getVideoData())&&this.JD?this.JD.seekTo(W,{He:!J,eT:K,cN:"application",seekSource:q}):I.seekTo(W,{He:!J,eT:K,cN:"application",seekSource:q})}; g.u.seekBy=function(W,J,K,I){this.seekTo(this.getCurrentTime()+W,J,K,I)}; g.u.qkw=function(){this.BS.YC("SEEK_COMPLETE")}; g.u.dvN=function(){this.BS.qN("onAbnormalityDetected")}; g.u.Uv3=function(W){this.BS.qN("onSnackbarMessage",W)}; g.u.LzN=function(W){var J=this.As(),K=J.getVideoData();if(this.appState===1||this.appState===2)K.startSeconds=W;this.appState===2?g.z(J.getPlayerState(),512)||wK(this):this.BS.YC("SEEK_TO",W)}; g.u.Bf3=function(){this.BS.publish("airplayactivechange");this.Ru.Y("html5_external_airplay_events")&&this.BS.z$("onAirPlayActiveChange",this.BS.UM())}; g.u.OkZ=function(){this.BS.publish("airplayavailabilitychange");this.Ru.Y("html5_external_airplay_events")&&this.BS.z$("onAirPlayAvailabilityChange",this.BS.Ko())}; g.u.showAirplayPicker=function(){this.As().VH()}; g.u.Dvs=function(){this.BS.publish("beginseeking")}; g.u.rpy=function(){this.BS.publish("endseeking")}; g.u.getStoryboardFormat=function(W){return(W=this.hD({playerType:W}))?dK(this,W).getStoryboardFormat():this.IZ.W.getStoryboardFormat()}; g.u.EW=function(W){return(W=this.hD({playerType:W}))?dK(this,W).getVideoData().EW():this.IZ.W.EW()}; g.u.CP=function(W){W=(W||this.As()).getVideoData();if(TP(this))W=W===this.bK.playback.getVideoData();else a:{var J=this.pk;if(W===J.W.getVideoData()&&J.K.length)W=!0;else{J=g.d(J.K);for(var K=J.next();!K.done;K=J.next())if(W.Jp===K.value.Jp){W=!0;break a}W=!1}}return W}; g.u.VZ=function(W,J,K,I,q,S,p,n){this.logger.debug(function(){return"Adding video to timeline id="+W.video_id+"\n lengthMs="+I+" enterTimeMs="+q}); var A="",D=TP(this);this.As().WS("appattl",{sstm:this.bK?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:D});A=D?EBy(this.bK,W,J,K,I,q,S,p,n):QQT(this.pk,W,K,I,q,S);this.logger.debug(function(){return"Video added to timeline id="+W.video_id+" timelinePlaybackId="+A}); return A}; g.u.u$=function(W,J,K,I,q,S,p,n){if(TP(this)){var A=EBy(this.bK,W,J,K,I,q,S,p,n);this.logger.debug(function(){return"Remaining video added to timeline id="+W.video_id+" timelinePlaybackId="+A})}return""}; g.u.D7=function(W){var J;(J=this.bK)==null||J.D7(W)}; g.u.iY=function(W,J){W=W===void 0?-1:W;J=J===void 0?Infinity:J;TP(this)||TVL(this.pk,W,J)}; g.u.A3=function(W,J,K){if(TP(this)){var I=this.bK,q=I.Fz.get(W);q?(K===void 0&&(K=q.WD),q.durationMs=J,q.WD=K):I.Zy("Invalid_timelinePlaybackId_"+W+"_specified")}else{I=this.pk;q=null;for(var S=g.d(I.K),p=S.next();!p.done;p=S.next())if(p=p.value,p.Jp===W){q=p;break}q?(K===void 0&&(K=q.WD),Oh0(I,q,J,K)):lA(I,"InvalidTimelinePlaybackId timelinePlaybackId="+W)}}; g.u.enqueueVideoByPlayerVars=function(W,J,K,I){K=K===void 0?Infinity:K;I=I===void 0?"":I;this.CP();W=new g.zR(this.Ru,W);I&&(W.Jp=I);Qzy(this,W,J,K)}; g.u.queueNextVideo=function(W,J,K,I,q){K=K===void 0?NaN:K;W=this.preloadVideoByPlayerVars(W,J===void 0?1:J,K,I===void 0?"":I,q===void 0?"":q);J=this.As();W&&(this.Y("html5_check_queue_on_data_loaded")?this.J().supportsGaplessShorts()&&J.getVideoData().N&&(K=this.Qj,I=this.LU.Z,K.T!==W&&(K.K=J,K.T=W,K.G=1,K.W=W.getVideoData(),K.j=I,K.W.isLoaded()?K.S():K.W.subscribe("dataloaded",K.S,K))):(K=c_H(J,W,this.LU.Z),K!=null?(J.WS("sgap",K),J.getVideoData().N&&J.kV(!1)):(W=W.getVideoData(),J=this.Qj,J.W!== W&&(J.W=W,J.G=1,W.isLoaded()?J.Z():J.W.subscribe("dataloaded",J.Z,J)))))}; g.u.hd=function(W,J,K,I){var q=this;K=K===void 0?0:K;I=I===void 0?0:I;dK(this,this.As()).Gn();nBy(this.LU,W,J,K,I).then(function(){q.BS.z$("onQueuedVideoLoaded")},function(){})}; g.u.QX=function(){return this.LU.QX()}; g.u.TL=function(W){var J=this.LU.W;return J?J.XE(W):!1}; g.u.clearQueue=function(W,J){W=W===void 0?!1:W;J=J===void 0?!1:J;this.logger.debug("Clearing queue");this.LU.clearQueue(W,J)}; g.u.loadVideoByPlayerVars=function(W,J,K,I,q,S){J=J===void 0?1:J;var p=this.Gx();if(J===2&&this.K7().enableServerStitchedDai&&p&&!p.bV())return p.WS("lvonss",{vid:(W==null?void 0:W.videoId)||"",ptype:J}),!1;var n=!1;p=new g.zR(this.Ru,W);p.reloadPlaybackParams=S;g.iL(this.Ru)&&!p.D4&&tb(this.jI);var A;S=this.jI;var D=(A=p.PS)!=null?A:"";S.timerName=D;this.jI.dK("pl_i");this.Y("web_player_early_cpn")&&p.clientPlaybackNonce&&this.jI.infoGel({clientPlaybackNonce:p.clientPlaybackNonce});xnQ(p).supportsVp9Encoding=== !1&&this.As().WS("noVp9enc",{});if(this.J().supportsGaplessShorts()){A=DXc(this.LU,p,J);if(A==null){NS(this,-1);W=this.LU;W.app.J().Y("html5_gapless_new_slr")?x3(W.app,"gaplessshortslooprange"):W.app.setLoopRange(null);W.app.getVideoData().nL=!0;var f;(f=W.W)==null||f.f$();var h;(h=W.W)==null||h.Ki();K={cN:"gapless_to_next_video",seekSource:60};I=g.FV(W.app.J().experiments,"html5_gapless_seek_offset");var t;(t=W.app.As())==null||t.seekTo(ApQ(W)+I,K);if(!W.app.getPlayerStateObject(J).isPlaying()){var F; (F=W.app.As())==null||F.playVideo(!0)}if(W.app.J().Y("html5_short_gapless_unlisten_after_seek")){var a;(a=W.app.As())==null||a.e$()}W.S();return!0}t=this.Y("html5_shorts_gapless_preload_fallback");F=this.LU.W;t&&F&&!F.Iu()&&(a=F.getVideoData(),a=this.Ru.Y("html5_autonav_autoplay_in_preload_key")?Vu(this,J,a):Ey(this,J,a.videoId,a.Jp),this.IZ.T.set(a,F,3600));this.LU.clearQueue(t);this.As().WS("sgap",{f:A})}if(q){for(;p.BC.length&&p.BC[0].isExpired();)p.BC.shift();n=p.BC.length-1;n=n>0&&q.K(p.BC[n])&& q.K(p.BC[n-1]);p.BC.push(q)}K||(W&&RlT(W)?(se(this.Ru)&&!this.Md&&(W.fetch=0),Qu(this,W)):this.playlist&&Qu(this,null),W&&(this.Md=I$(!1,W.external_list)));this.BS.publish("loadvideo");J=this.Xx(p,J,I);n&&this.sP("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+p.BC.join()).replace(/[;:,]/g,"_"));return J}; g.u.preloadVideoByPlayerVars=function(W,J,K,I,q){J=J===void 0?1:J;K=K===void 0?NaN:K;I=I===void 0?"":I;q=q===void 0?"":q;var S="";if(this.Ru.Y("html5_autonav_autoplay_in_preload_key"))S=w$A(this,J,W,q);else{var p=nn(W);S=Ey(this,J,p,q)}if(this.IZ.T.get(S))return this.logger.debug(function(){return"already preloaded "+S}),null; W=new g.zR(this.Ru,W);q&&(W.Jp=q);return CkD(this,W,J,K,I)}; g.u.setMinimized=function(W){this.visibility.setMinimized(W);(W=USL(this.eP))&&(this.isMinimized()?W.load():W.unload());this.BS.publish("minimized")}; g.u.setInline=function(W){this.visibility.setInline(W)}; g.u.setInlinePreview=function(W){this.visibility.setInline(W)}; g.u.fG=function(W){goL(this,W)||this.visibility.fG(W)}; g.u.setSqueezeback=function(W){this.visibility.setSqueezeback(W)}; g.u.ev=function(){var W,J=(W=this.mediaElement)==null?void 0:W.v7();J&&(this.Ru.vZ&&Ca(Ul(function(){return document.exitFullscreen()}),function(){}),Ca(Ul(function(){return di(J)}),function(){}))}; g.u.rDS=function(){this.mediaElement.v7();this.mediaElement.v7().webkitPresentationMode==="picture-in-picture"?this.fG(!0):this.fG(!1)}; g.u.togglePictureInPicture=function(){this.As().togglePictureInPicture()}; g.u.Xx=function(W,J,K){J=J===void 0?1:J;this.logger.debug(function(){return"start load video, id "+W.videoId+", type "+J}); z8("_start",this.jI.timerName)||g.X0(EU)(void 0,this.jI.timerName);var I=!1,q=u3D(this,J,W,!1);q?(I=!0,W.dispose()):(q=ap(this,J,W,!0,K),(this.Y("html5_onesie")||this.Y("html5_load_before_stop"))&&q.Sf()&&q.nz(),this.C$.stop(),J===1&&J!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,J),this.Fr(q));q===this.Gx()&&(this.Ru.GJ=W.oauthToken);if(!q.Sf())return!1;if(q===this.Gx())return this.UJ(1),K=wK(this),I&&this.Y("html5_player_preload_ad_fix")&&q.getPlayerType()===1&& q.Ge()&&this.iJ("dataloaded",q,q.getVideoData()),K;q.YF();return!0}; g.u.cueVideoByPlayerVars=function(W,J){var K=this;J=J===void 0?1:J;var I=this.Gx();if(this.K7().enableServerStitchedDai&&I&&!I.bV()&&W&&Object.keys(W).length>0)I.WS("qvonss",{vid:(W==null?void 0:W.videoId)||"",ptype:J});else if(W&&RlT(W))if(this.G9=!0,Qu(this,W),(W=g.FX(this.playlist))&&W.Nk())Rp(this,W,J);else this.playlist.onReady(function(){Cy(K)}); else{J||(J=this.getPresentingPlayerType());J===1&&this.FF();I=new g.zR(this.Ru,W);var q=g.xK(this.Ru)&&!this.Ru.sI&&J===1&&!I.isAd()&&!I.oG;this.BS.publish("cuevideo");q?(this.As().getVideoData().loading=!0,k2H(I,W?W:{}).then(function(S){Rp(K,S,J)}),I.dispose()):Rp(this,I,J)}}; g.u.zD=function(W,J,K,I,q,S,p){if(!W&&!K)throw Error("Playback source is invalid");if(T4(this.Ru)||g.gJ(this.Ru))return J=J||{},J.lact=gb(),J.vis=this.BS.getVisibilityState(),this.BS.qN("onPlayVideo",{videoId:W,watchEndpoint:S,sessionData:J,listId:K}),!1;EOL(this.jI);this.jI.reset();W={video_id:W};I&&(W.autoplay="1");I&&(W.autonav="1");S&&(W.player_params=S.playerParams);p&&(W.oauth_token=p);K?(W.list=K,this.loadPlaylist(W)):this.loadVideoByPlayerVars(W,1);return!0}; g.u.cuePlaylist=function(W,J,K,I){this.G9=!0;GbT(this,W,J,K,I)}; g.u.loadPlaylist=function(W,J,K,I){this.G9=!1;GbT(this,W,J,K,I)}; g.u.xv=function(){return this.BS.isMutedByMutedAutoplay()?!1:this.IZ.B$?!0:!(!this.playlist||!this.playlist.Yg())}; g.u.NI=iD(13); g.u.nextVideo=function(W,J){var K=g.JS(this.Gx().getVideoData());g.eM(this.BS)&&K?this.zD(K.videoId,J?K.KM:K.sessionData,K.playlistId,J,void 0,K.ym||void 0):this.Md?this.BS.z$("onPlaylistNext"):this.getPresentingPlayerType()===3?g.E(x0(this.eP)).nextVideo():!this.playlist||se(this.Ru)&&!this.BS.isFullscreen()||(this.playlist.Yg(W)&&m0Q(this.playlist,bOy(this.playlist)),this.playlist.loaded?(W=J&&this.Ru.Y("html5_player_autonav_logging"),J&&this.BS.publish("playlistautonextvideo"),this.Xx(g.E(g.FX(this.playlist,void 0, J,W)),1)):this.G9=!1)}; g.u.previousVideo=function(W){this.Md?this.BS.z$("onPlaylistPrevious"):this.getPresentingPlayerType()===3?g.E(x0(this.eP)).OD():!this.playlist||se(this.Ru)&&!this.BS.isFullscreen()||(this.playlist.Wh(W)&&m0Q(this.playlist,BuQ(this.playlist)),this.playlist.loaded?this.Xx(g.E(g.FX(this.playlist)),1):this.G9=!1)}; g.u.playVideoAt=function(W){this.Md?this.BS.z$("onPlaylistIndex",W):this.playlist&&(this.playlist.loaded?this.Xx(g.E(g.FX(this.playlist,W)),1):this.G9=!1,m0Q(this.playlist,W))}; g.u.getPlaylist=function(){return this.playlist}; g.u.tB=iD(25);g.u.aJI=function(W){this.BS.YC("onCueRangeEnter",W.getId())}; g.u.STw=function(W){this.BS.YC("onCueRangeExit",W.getId())}; g.u.X7=function(){var W=g.M9(this.Xz());W&&W.X7()}; g.u.DI=function(W,J,K){var I=this.hD({playerType:J});if(I){if(this.Y("html5_ssdai_enable_media_end_cue_range")&&this.bK){I.getPlayerType()===2&&this.bK.Fa(this.getCurrentTime())&&(I=this.Gx());for(var q=g.d(W),S=q.next();!S.done;S=q.next())S.value.G=this.bK.Ik()}I.DI(W,K);J&&this.getPresentingPlayerType()!==J||bA(this,"cuerangesadded",W)}}; g.u.LG=function(W,J){var K=this.hD({playerType:J});K&&(K.LG(W),J&&this.getPresentingPlayerType()!==J||bA(this,"cuerangesremoved",W))}; g.u.Ez=function(W){return this.As().Ez(W)}; g.u.IJZ=function(){function W(){var I=J.screenLayer||(J.isMinimized()?3:0),q=g.M_(I);if(q&&q!=="UNDEFINED_CSN"){var S=J.Ru.Y("web_player_attach_player_response_ve"),p=J.Ru.Y("web_playback_associated_ve");I={cpn:J.getVideoData().clientPlaybackNonce,csn:q};J.getVideoData().Y3&&(S||p)&&(S=g.Qa(J.getVideoData().Y3),g.IE(q,S),p&&(I.playbackVe=S.getAsJson()));J.getVideoData().queueInfo&&(I.queueInfo=J.getVideoData().queueInfo);q={};J.Y("web_playback_associated_log_ctt")&&J.getVideoData().S&&(q.cttAuthInfo= {token:J.getVideoData().S,videoId:J.getVideoData().videoId});g.AF("playbackAssociated",I,q)}else g.ET(new g.vd("CSN Missing or undefined during playback association"))} var J=this,K=this.As();this.getPresentingPlayerType();HO0(this.jI,K.getVideoData(),Tz0(this));ZV(this)&&this.Ru.T&&e7(this.K7())==="embedded"&&this.Rg&&Math.random()<.01&&g.AF("autoplayTriggered",{intentional:this.intentionalPlayback});this.Rg=!1;NKD(this.eP);this.Y("web_player_defer_ad")&&hHX(this);this.BS.z$("onPlaybackStartExternal");(this.Ru.Y("mweb_client_log_screen_associated"),L5(this.Ru))||W();K={};this.getVideoData().S&&(K.cttAuthInfo={token:this.getVideoData().S,videoId:this.getVideoData().videoId}); K.sampleRate=20;kM("player_att",K);if(this.getVideoData().botguardData||this.Y("fetch_att_independently"))g.X2(this.Ru)||K5(this.Ru)==="MWEB"?g.XJ(g.iH(),function(){MS(J)}):MS(this); this.Pv();dKA(this);this.Y("embeds_enable_autoplay_and_visibility_signals")&&g.xK(this.Ru)&&(K={autoplayBrowserPolicy:Kt(),autoplayIntended:I_(this.getVideoData()),autoplayStatus:z5c(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.AF("embedsAutoplayStatusChanged",K))}; g.u.oKN=function(){this.BS.publish("internalAbandon");HV(this)}; g.u.onApiChange=function(){var W=this.As();this.Ru.N?this.BS.YC("onApiChange",W.getPlayerType()):this.BS.YC("onApiChange")}; g.u.XNs=function(){var W=this.mediaElement;W={volume:g.Gm(Math.floor(W.getVolume()*100),0,100),muted:W.s5()};W.muted||GP(this,!1);this.r$=g.ih(W);this.BS.YC("onVolumeChange",W)}; g.u.mutedAutoplay=function(W){var J=this.getVideoData().videoId;isNaN(this.nK)&&(this.nK=this.getVideoData().startSeconds);if((W==null?0:W.videoId)||J)this.loadVideoByPlayerVars({video_id:(W==null?0:W.videoId)?W==null?void 0:W.videoId:J,playmuted:!0,start:this.nK,muted_autoplay_duration_mode:W==null?void 0:W.durationMode}),this.BS.z$("onMutedAutoplayStarts")}; g.u.onFullscreenChange=function(){var W=VLQ(this);this.p4(W?1:0);eHL(this,!!W)}; g.u.p4=function(W){var J=!!W,K=!!this.OE()!==J;this.visibility.p4(W);this.template.p4(J);this.Y("html5_media_fullscreen")&&!J&&this.mediaElement&&VLQ(this)===this.mediaElement.v7()&&this.mediaElement.EE();this.template.resize();K&&this.jI.tick("fsc");K&&(this.BS.publish("fullscreentoggled",J),W=this.K7(),J={fullscreen:J,videoId:W.qH||W.videoId,time:this.getCurrentTime()},this.BS.getPlaylistId()&&(J.listId=this.BS.getPlaylistId()),this.BS.YC("onFullscreenChange",J))}; g.u.GW=function(){return this.visibility.GW()}; g.u.isFullscreen=function(){return this.visibility.isFullscreen()}; g.u.OE=function(){return this.visibility.OE()}; g.u.IVI=function(){var W=this.OE();W!==0&&W!==1||this.p4(VLQ(this)?1:0);W=window.screen.width*window.screen.height;var J=window.outerHeight*window.outerWidth;this.Ru.S9?(this.Nm=Math.max(this.Nm,W,J),W=J/this.Nm0&&(A=Math.floor(D/1E3))}A=J?J.vt:A;var f={AD_BLOCK:this.W++,AD_BREAK_LENGTH:A,AUTONAV_STATE:mB(this.player.J()),CA_TYPE:"image",CPN:n.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Xg()*1E3,LACT:gb(),LIVE_INDEX:J?this.G++:1,LIVE_TARGETING_CONTEXT:J&&J.context?J.context:"",MIDROLL_POS:S? Math.round(S.start/1E3):0,MIDROLL_POS_MS:S?Math.round(S.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.UI().lD().height,P_W:this.player.UI().lD().width,YT_REMOTE:q?q.join(","):""},h=jC(D_);Object.keys(h).forEach(function(F){h[F]!=null&&(f[F.toUpperCase()]=h[F].toString())}); K!==""&&(f.BISCOTTI_ID=K);K={};Aa(W)&&(K.sts="20207",(J=this.player.J().forcedExperiments)&&(K.forced_experiments=J));var t=pz(g.H0(W,f),K);return t.split("?").length!==2?HS(Error("Invalid AdBreakInfo URL")):g.pp(this.player.J(),n==null?void 0:n.oauthToken).then(function(F){if(F&&nz()){var a=Bl();ml(a,F)}F=g.E(I.player.d$(a));a=n6L(I,t,f,n.isMdxPlayback,p);return g.Pe(F,a,"/youtubei/v1/player/ad_break").then(function(y){return y})})}; rK.prototype.reset=function(){this.G=this.W=1};g.N(AGL,rK); AGL.prototype.K=function(W,J,K){J=J===void 0?{}:J;var I=J.IR;var q=J.SP;var S=J.cueProcessedMs;K=K===void 0?"":K;J=this.W;this.W++;var p=this.player.J().Y("h5_disable_macro_substitution_in_get_ad_break")?W:Dcy(this,W,{IR:I,SP:q,cueProcessedMs:S},K,J);if(p.split("?").length!==2)return Math.random()<.1&&g.ET(Error("Invalid AdBreakInfo URL")),HS(Error("Invalid AdBreakInfo URL"));var n=this.player.getVideoData(1).isMdxPlayback,A=K;K=JGD.exec(p);K=K!=null&&K.length>=2?K[1]:"";W=Kdc.test(p);var D=IAL.exec(p); D=D!=null&&D.length>=2?D[1]:"";var f=qmQ.exec(p);f=f!=null&&f.length>=2&&!Number.isNaN(Number(f[1]))?Number(f[1]):1;var h=SmQ.exec(p);h=h!=null&&h.length>=2?h[1]:"0";var t=r8(this.player.J().I7),F=g.iI(this.player.getVideoData(1).Y3,!0);szX(this,F,p,A===""?"":A,this.player.J(),this.player.getVideoData(1));A={splay:!1,lactMilliseconds:String(gb()),playerHeightPixels:Math.trunc(this.player.UI().lD().height),playerWidthPixels:Math.trunc(this.player.UI().lD().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20207,autonavState:mB(this.player.J())};if(n){n={};var a=this.player.J().TJ;X$c(n,a?a.join(","):"")&&(A.mdxContext=n)}if(n=pxI.includes(t)?void 0:g.eC("PREF")){a=n.split(RegExp("[:&]"));for(var y=0,U=a.length;y1&&Q[1].toUpperCase()==="TRUE"){F.user.lockedSafetyMode=!0;break}}A.autoCaptionsDefaultOn=i6L(n)}p=lAv.exec(p);(p=p!=null&&p.length>=2?p[1]:"")&&D&&(F.user.credentialTransferTokens= [{token:p,scope:"VIDEO"}]);p={contentPlaybackContext:A};A=this.player.getVideoData(1).getGetAdBreakContext();n=this.player.getVideoData(1).clientPlaybackNonce;a=S!==void 0?Math.round(S).toString():void 0;y=(I==null?0:I.context)?I.context:void 0;U=0;S&&q&&!I&&(q=q.end-q.start,q>0&&(U=Math.floor(q/1E3)));I=(I=Math.trunc((I?I.vt:U)*1E3))?String(I):void 0;q=this.player.Xg()*1E3;q=Number.isNaN(q)?0:Math.trunc(q);J={adBlock:J,params:K,breakIndex:f,breakPositionMs:h,clientPlaybackNonce:n,topLevelDomain:t, isProxyAdTagRequest:W,context:F,overridePlaybackContext:p,cueProcessedMs:a,videoId:D?D:void 0,liveTargetingParams:y,breakLengthMs:I,driftFromHeadMs:q?String(q):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:A?A:void 0};return jjD(this,J)};var h2o={sr3:"replaceUrlMacros",YQK:"onAboutThisAdPopupClosed",j5N:"executeCommand"};fAv.prototype.JQ=function(){return"adPingingEndpoint"}; fAv.prototype.zH=function(W,J,K){PbQ(this.iO.get(),W,J,K)};h1D.prototype.JQ=function(){return"changeEngagementPanelVisibilityAction"}; h1D.prototype.zH=function(W){this.X.qN("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:W})};tFD.prototype.JQ=function(){return"loggingUrls"}; tFD.prototype.zH=function(W,J,K){W=g.d(W);for(var I=W.next();!I.done;I=W.next())I=I.value,PbQ(this.iO.get(),I.baseUrl,J,K,I.attributionSrcMode)};g.N(aAH,g.R);g.N(Ly,g.R);g.u=Ly.prototype;g.u.addListener=function(W){this.listeners.push(W)}; g.u.removeListener=function(W){this.listeners=this.listeners.filter(function(J){return J!==W})}; g.u.Om=function(W,J,K,I,q,S,p,n){if(W==="")tq("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(W!==this.W||K){this.W=W;this.cS.get().Om(W,J,K,I,q,S,p,n);this.dw.get().Om(W,J,K,I,q,S,p,n);var A;(A=this.p7)==null||A.get().Om(W,J,K,I,q,S,p,n);this.K.Om(W,J,K,I,q,S,p,n);A=g.d(this.listeners);for(var D=A.next();!D.done;D=A.next())D.value.Om(W,J,K,I,q,S,p,n)}else tq("Duplicate content video loaded signal")}; g.u.vL=function(){this.W&&this.OQ(this.W)}; g.u.OQ=function(W){this.W=void 0;for(var J=g.d(this.listeners),K=J.next();!K.done;K=J.next())K.value.OQ(W)};k3.prototype.LF=function(W,J,K,I,q){u8A(this);this.j=!J&&K===0;var S=this.X.getVideoData(1),p=this.X.getVideoData(2);S&&(this.contentCpn=S.clientPlaybackNonce,this.videoId=S.videoId,this.W=S.S);p&&(this.adCpn=p.clientPlaybackNonce,this.adVideoId=p.videoId,this.adFormat=p.adFormat);this.T=W;I<=0?(u8A(this),this.j=!J&&K===0):(this.actionType=this.j?J?"unknown_type":"video_to_ad":J?"ad_to_video":"ad_to_ad",this.videoStreamType=q?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.G=!0,z8("_start",this.actionType)&&yGy(this)))}; k3.prototype.reset=function(){return new k3(this.X)};g.N(zP,g.R);zP.prototype.addCueRange=function(W,J,K,I,q,S,p){S=S===void 0?3:S;p=p===void 0?1:p;this.W.has(W)?tq("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:W}):(W=new UcT(W,J,K,I,S),this.W.set(W.id,{SP:W,listener:q,jS:p}),this.X.qk([W],p))}; zP.prototype.removeCueRange=function(W){var J=this.W.get(W);J?(this.X.pA([J.SP],J.jS),this.W.delete(J.SP.id)):tq("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:W})}; zP.prototype.onCueRangeEnter=function(W){if(this.W.has(W.id))g.E(this.W.get(W.id)).listener.onCueRangeEnter(W.id)}; zP.prototype.onCueRangeExit=function(W){if(this.W.has(W.id))g.E(this.W.get(W.id)).listener.onCueRangeExit(W.id)}; g.N(UcT,g.p9);vV.prototype.addPlayerResponseForAssociation=function(W){this.X.addPlayerResponseForAssociation(W)};Y3.prototype.Oc=function(W){this.X.Oc(W)}; Y3.prototype.kW=function(W){var J=g.EH.apply(1,arguments);W==="onAdStart"||W==="onAdEnd"?this.X.YC.apply(this.X,[W].concat(g.w(J))):this.X.qN.apply(this.X,[W].concat(g.w(J)))};sy.prototype.Vw=function(W){return W&&cV(this)};var VFX=null;g.N(H6v,g.Ao);H6v.prototype.E$=function(W){return this.W.hasOwnProperty(W)?this.W[W].E$():{}}; g.Yc("ytads.bulleit.getVideoMetadata",function(W){return PV().E$(W)}); g.Yc("ytads.bulleit.triggerExternalActivityEvent",function(W,J,K){var I=PV();K=T$A(K);K!==null&&I.publish(K,{queryId:W,viewabilityString:J})});g.u=Xc.prototype;g.u.nQ=function(W,J){if(!this.W.has(W))return{};if(J==="seek"){J=!1;J=J===void 0?!1:J;var K=co(JB).aP(W,{});K?cZ(K):J&&(W=co(JB).m_(null,Zw(),!1,W),W.dC=3,wic([W]));return{}}J=e1y(J);if(J===null)return{};var I=this.X.qI();if(!I)return{};var q=this.X.getPresentingPlayerType(!0);if((K=this.X.getVideoData(q))==null||!K.isAd())return{};K={opt_adElement:I,opt_fullscreen:this.cS.get().isFullscreen()};return wYH(J,W,K)}; g.u.ID=function(W,J,K,I,q){this.W.has(W)&&(I<=0||q<=0||co(JB).ID(W,J,K,I,q))}; g.u.bz=function(W){var J;(J=this.W.get(W.queryId))==null||J.bz()}; g.u.Ft=function(W){var J;(J=this.W.get(W.queryId))==null||J.Ft()}; g.u.Jt=function(W){var J;(J=this.W.get(W.queryId))==null||J.Jt()}; g.u.ke=function(W){var J;(J=this.W.get(W.queryId))==null||J.ke()}; g.u.Hs=function(W){var J;(J=this.W.get(W.queryId))==null||J.Hs()};z1v.prototype.send=function(W,J,K,I){try{v6X(this,W,J,K,I===void 0?!1:I)}catch(q){}};g.N(Ymy,z1v);sjX.prototype.send=function(W,J,K,I){var q=!1;try{if(I==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||I==="ATTRIBUTION_SRC_MODE_XHR_OPTION")q=!0,W=p7c(W);I=q;var S=g.MO(W);if(S[1]==="https")var p=W;else S[1]="https",p=Co("https",S[2],S[3],S[4],S[5],S[6],S[7]);var n=pSX(p);S=[];var A;if(A=kQH(p))A=this.gw.get().X.J().experiments.HS("add_auth_headers_to_remarketing_google_dot_com_ping");if(Aa(p)||A)S.push({headerType:"USER_AUTH"}),S.push({headerType:"PLUS_PAGE_ID"}),S.push({headerType:"VISITOR_ID"}),S.push({headerType:"EOM_VISITOR_ID"}), S.push({headerType:"AUTH_USER"}),S.push({headerType:"DATASYNC_ID"});this.W.send({baseUrl:p,scrubReferrer:n,headers:S},J,K,I)}catch(D){}};Im.prototype.Xj=function(){return this.X.Xj(1)};g.N(q2,g.R);g.u=q2.prototype;g.u.Tr=function(){return this.X.getVideoData(1).clientPlaybackNonce}; g.u.addListener=function(W){this.listeners.push(W)}; g.u.removeListener=function(W){this.listeners=this.listeners.filter(function(J){return J!==W})}; g.u.Om=function(){this.V3.clear();this.h$=null;this.Ka.get().clear()}; g.u.OQ=function(){}; g.u.scK=function(W,J,K,I,q){J.videoId==="nPpU29QrbiU"&&this.X.WS("ads_ssm_vdc_s",{pt:K,dvt:W});$2(this.gw.get())&&W!=="dataloaded"||qnT(this,J,K);if(cV(this.gw.get())&&W==="newdata"&&q!==void 0){W=this.Tr();var S=J.clientPlaybackNonce,p={};wG(this,"rte",(p.ec=S,p.xc=I==null?void 0:I.clientPlaybackNonce,p.tr=q,p.pt=K,p.ia=S!==W,p.ctp=CB(S),p));J=J.clientPlaybackNonce;I=I==null?void 0:I.clientPlaybackNonce;q=SnQ(q);if(q!==1)if(I!==void 0)for(K=g.d(this.listeners),W=K.next();!W.done;W=K.next())W.value.R_(I, J,q);else tq("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:J,transitionReason:String(q)});q=g.d(this.listeners);for(I=q.next();!I.done;I=q.next())I.value.Co(J)}}; g.u.tPZ=function(W,J){W!==void 0&&(this.h$=W,J===void 0?tq("Expected ad video start time on SS video changed"):this.V3.set(W,J));var K=this.X.getPresentingPlayerType(!0),I=this.X.getVideoData(K),q;W===void 0?q=null:q=this.Ka.get().W.get(W)||null;this.X.getVideoData(1).WS("ads_ssvc",{pt:K,cpn:I==null?void 0:I.clientPlaybackNonce,crtt:this.X.getCurrentTime(1,!1),atlh:this.X.isAtLiveHead(),adstt:J,pid:W,slid:q==null?void 0:q.layoutId});I?qnT(this,I,K):tq("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.X.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:W})}; g.u.zN=function(W,J){var K=W.author,I=W.clientPlaybackNonce,q=W.isListed,S=W.Jp,p=W.title,n=W.Cw,A=W.yT,D=W.isMdxPlayback,f=W.L_,h=W.mdxEnvironment,t=W.isAutonav,F=W.zW,a=W.D4,y=W.mZ,U=W.videoId||"",Q=W.profilePicture||"",C=W.qB||"",T=W.bD()||!1,H=W.rf()||!1;W=W.Nx||void 0;S=this.Ka.get().W.get(S)||{layoutId:null,slotId:null};var b=this.X.getVideoData(1),c=b.dl();b=b.getPlayerResponse();J=1E3*this.X.getDuration(J);var v=1E3*this.X.getDuration(1),Kv,qI,WH=(b==null?void 0:(Kv=b.playerConfig)==null? void 0:(qI=Kv.daiConfig)==null?void 0:qI.enableDai)||!1,nv,P;Kv=(b==null?void 0:(nv=b.playerConfig)==null?void 0:(P=nv.daiConfig)==null?void 0:P.enablePreroll)||!1;return Object.assign({},S,{videoId:U,author:K,clientPlaybackNonce:I,oh:J,yX:v,daiEnabled:WH,jN:Kv,isListed:q,dl:c,profilePicture:Q,title:p,qB:C,Cw:n,yT:A,Nx:W,isMdxPlayback:D,L_:f,mdxEnvironment:h,isAutonav:t,zW:F,D4:a,mZ:y,bD:T,rf:H})}; g.u.lO=function(){this.listeners.length=0;this.Vf=null;g.R.prototype.lO.call(this)};g.N(Sj,g.R);g.u=Sj.prototype;g.u.Om=function(){var W=this;cV(this.gw.get())||(this.W=u5(function(){W.X.Iu()||W.X.sM("ad",1)}))}; g.u.OQ=function(){}; g.u.addListener=function(W){this.listeners.push(W)}; g.u.removeListener=function(W){this.listeners=this.listeners.filter(function(J){return J!==W})}; g.u.WL=function(){}; g.u.playVideo=function(){this.X.playVideo()}; g.u.pauseVideo=function(){this.X.pauseVideo()}; g.u.resumeVideo=function(W){this.Lp(W)&&this.X.playVideo()}; g.u.Lp=function(W){return this.X.getPlayerState(W)===2}; g.u.getCurrentTimeSec=function(W,J,K){var I=this.dw.get().h$;if(W===2&&!J&&I!==null)return ldA(this,I);XV(this.gw.get(),"html5_ssap_use_cpn_to_get_time")||(K=void 0);return K!==void 0?this.X.getCurrentTime(W,J,K):this.X.getCurrentTime(W,J)}; g.u.getVolume=function(){return this.X.getVolume()}; g.u.isMuted=function(){return this.X.isMuted()}; g.u.getPresentingPlayerType=function(){return this.X.getPresentingPlayerType(!0)}; g.u.getPlayerState=function(W){return this.X.getPlayerState(W)}; g.u.isFullscreen=function(){return this.X.isFullscreen()}; g.u.isAtLiveHead=function(){return this.X.isAtLiveHead()}; g.u.fg=function(W){this.X.fg(W)}; g.u.GzW=function(){var W=this.X.getPresentingPlayerType(!0),J=this.getCurrentTimeSec(W,!1);if(W===2){W=g.d(this.listeners);for(var K=W.next();!K.done;K=W.next())K.value.OW(J)}else if(W===1)for(W=g.d(this.yZ),K=W.next();!K.done;K=W.next())K.value.WL(J)}; g.u.Fzw=function(W){for(var J=g.d(this.listeners),K=J.next();!K.done;K=J.next())K.value.m1(W,this.getPresentingPlayerType())}; g.u.onFullscreenToggled=function(W){for(var J=g.d(this.listeners),K=J.next();!K.done;K=J.next())K.value.onFullscreenToggled(W)}; g.u.onVolumeChange=function(){for(var W=g.d(this.listeners),J=W.next();!J.done;J=W.next())J.value.onVolumeChange()}; g.u.jE=function(){for(var W=this.X.isMinimized(),J=g.d(this.listeners),K=J.next();!K.done;K=J.next())K.value.jE(W)}; g.u.wq=function(W){for(var J=g.d(this.listeners),K=J.next();!K.done;K=J.next())K.value.wq(W)}; g.u.eI=function(){for(var W=this.X.UI().lD(),J=g.d(this.listeners),K=J.next();!K.done;K=J.next())K.value.nw(W)}; g.u.BY=function(W){for(var J=g.d(this.listeners),K=J.next();!K.done;K=J.next())K.value.BY(W)}; g.u.Nd=function(){for(var W=g.d(this.listeners),J=W.next();!J.done;J=W.next())J.value.Nd()};g.N(jn0,g.R);g.N(Dm,g.R);Dm.prototype.lO=function(){this.eB.Iu()||this.eB.get().removeListener(this);g.R.prototype.lO.call(this)};jj.prototype.fetch=function(W){var J=W.Qf;return this.W.fetch(W.fT,{IR:W.IR===void 0?void 0:W.IR,SP:J,cueProcessedMs:W.cueProcessedMs===void 0?0:W.cueProcessedMs}).then(function(K){return fdA(K,J)})};g.N(f7,g.R);g.u=f7.prototype;g.u.addListener=function(W){this.listeners.push(W)}; g.u.removeListener=function(W){this.listeners=this.listeners.filter(function(J){return J!==W})}; g.u.dU=function(W){hgX(this,W,1)}; g.u.onAdUxClicked=function(W,J){hC(this,function(K){K.Qq(W,J)})}; g.u.CK=function(W){hC(this,function(J){J.Na(W)})}; g.u.eY=function(W){hC(this,function(J){J.D3(W)})}; g.u.MIO=function(W){hC(this,function(J){J.iS(W)})};tC.prototype.reduce=function(W){switch(W.event){case "unknown":return}var J=W.identifier;var K=this.W[J];K?J=K:(K={JW:null,Hm:-Infinity},J=this.W[J]=K);K=W.startSecs+W.W/1E3;if(!(K=this.W.startSecs&&K.startSecs<=this.W.startSecs+this.W.vt;if(I){I=void 0;if(x2(this.gw.get())&&K.identifier!==((I=this.W)==null?void 0:I.identifier)){var q=I=void 0,S=void 0,p=void 0;nP(this.iO.get(),"ocud","ccpi."+K.identifier+";ccpe."+K.event+";ccps."+K.startSecs+";\n ccpd."+K.vt+";pcpi."+((I=this.W)==null?void 0: I.identifier)+";pcpe."+((q=this.W)==null?void 0:q.event)+";\n pcps."+((S=this.W)==null?void 0:S.startSecs)+";pcpd."+((p=this.W)==null?void 0:p.vt)+";")}I=void 0;K.identifier!==((I=this.W)==null?void 0:I.identifier)&&tq("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.W=K,uMH(this,K)}}}; g.u.lO=function(){this.K!=null&&(this.K.unsubscribe("cuepointupdated",this.Kv,this),this.K=null);this.listeners.length=0;this.T.length=0;g.R.prototype.lO.call(this)};g.u=uv.prototype;g.u.VZ=function(W,J,K,I,q,S,p){return this.X.VZ(W,J,K,I,q,S,p)}; g.u.iY=function(W,J){this.X.iY(W,J)}; g.u.A3=function(W,J,K){this.X.A3(W,J,K)}; g.u.D7=function(W){this.X.D7(W)}; g.u.u$=function(W,J,K,I,q,S,p){return this.X.u$(W,J,K,I,q,S,p)}; g.u.k0=function(W){return this.X.k0(W)}; g.u.finishSegmentByCpn=function(W,J,K){K=yvX(K);this.X.finishSegmentByCpn(W,J,K)};g.N(N2,g.R);g.N(ZAL,g.R);g.N(QnL,g.R);g.N(CqL,g.R);g.N(wKQ,g.R);g.N(MYQ,g.R);g.N(GYy,g.R);GYy.prototype.G=function(){return this.K};g.N($a0,kT); $a0.prototype.T=function(W){var J=W.content;if(J.componentType==="shopping-companion")switch(W.actionType){case 1:case 2:W=this.W.getVideoData(1);this.W.qN("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId,shoppingCompanionCarouselRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.W,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:this.W.qN("updateKevlarOrC3Companion",{})}else if(J.componentType==="action-companion")switch(W.actionType){case 1:case 2:W=this.W.getVideoData(1); this.W.qN("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId,actionCompanionAdRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.W,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J.renderer&&(J=this.W.getVideoData(1),this.W.qN("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId})),this.W.qN("updateKevlarOrC3Companion",{})}else if(J.componentType==="image-companion")switch(W.actionType){case 1:case 2:W=this.W.getVideoData(1);this.W.qN("updateKevlarOrC3Companion", {contentVideoId:W&&W.videoId,imageCompanionAdRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.W,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J=this.W.getVideoData(1),this.W.qN("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId}),this.W.qN("updateKevlarOrC3Companion",{})}else if(J.componentType==="top-banner-image-text-icon-buttoned")switch(W.actionType){case 1:case 2:W=this.W.getVideoData(1);this.W.qN("updateKevlarOrC3Companion", {contentVideoId:W&&W.videoId,topBannerImageTextIconButtonedLayoutViewModel:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.W,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J.renderer&&(J=this.W.getVideoData(1),this.W.qN("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId})),this.W.qN("updateKevlarOrC3Companion",{})}else if(J.componentType==="banner-image")switch(W.actionType){case 1:case 2:W=this.W.getVideoData(1);this.W.qN("updateKevlarOrC3Companion", {contentVideoId:W&&W.videoId,bannerImageLayoutViewModel:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.W,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J=this.W.getVideoData(1),this.W.qN("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId}),this.W.qN("updateKevlarOrC3Companion",{})}else if(J.componentType==="ads-engagement-panel")switch(J=J.renderer,W.actionType){case 1:case 2:this.W.qN("updateEngagementPanelAction",J.addAction);this.W.qN("changeEngagementPanelVisibility", J.expandAction);break;case 3:this.W.qN("changeEngagementPanelVisibility",J.hideAction),this.W.qN("updateEngagementPanelAction",J.removeAction)}else if(J.componentType==="ads-engagement-panel-layout"){var K=J.renderer;switch(W.actionType){case 1:case 2:this.W.qN("updateEngagementPanelAction",{action:Bm(K.addAction),layoutId:J.layoutId,onLayoutVisibleCallback:J.W,interactionLoggingClientData:J.interactionLoggingClientData});this.W.qN("changeEngagementPanelVisibility",Bm(K.expandAction));break;case 3:this.W.qN("changeEngagementPanelVisibility", Bm(K.hideAction)),this.W.qN("updateEngagementPanelAction",{action:Bm(K.removeAction)})}}};g.N(xaT,Jq);g.u=xaT.prototype;g.u.init=function(W,J,K){Jq.prototype.init.call(this,W,J,K);g.bj(this.G,"stroke-dasharray","0 "+this.K);this.G.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.S.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.T.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.u.clear=function(){this.hide()}; g.u.hide=function(){IK(this);Jq.prototype.hide.call(this)}; g.u.show=function(){Ki(this);Jq.prototype.show.call(this)}; g.u.Ng=function(){this.hide()}; g.u.oi=function(){if(this.W){var W=this.W.getProgressState();W!=null&&W.current!=null&&g.bj(this.G,"stroke-dasharray",W.current/W.seekableEnd*this.K+" "+this.K)}};g.N(OAQ,Fo);g.u=OAQ.prototype; g.u.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);if(J.image&&J.image.thumbnail)if(J.headline)if(J.description)if(J.backgroundImage&&J.backgroundImage.thumbnail)if(J.actionButton&&g.m(J.actionButton,g.rD))if(W=J.durationMilliseconds||0,typeof W!=="number"||W<=0)g.Va(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+W));else if(J.navigationEndpoint){var I=this.api.getVideoData(2);if(I!=null){var q=J.image.thumbnail.thumbnails;q!=null&& q.length>0&&g.FC(g.N3(q[0].url))&&(q[0].url=I.profilePicture,g.FC(g.N3(I.profilePicture))&&ZtH("VideoPlayer",239976093,"Expected non-empty profile picture."));q=J.backgroundImage.thumbnail.thumbnails;q!=null&&q.length>0&&g.FC(g.N3(q[0].url))&&(q[0].url=I.MP());q=J.headline;q!=null&&g.FC(g.N3(q.text))&&(q.text=I.author)}this.C.init(lG("ad-image"),J.image,K);this.S.init(lG("ad-text"),J.headline,K);this.G.init(lG("ad-text"),J.description,K);this.OI.init(lG("ad-image"),J.backgroundImage,K);I=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.S.element.classList.add("ytp-ad-action-interstitial-headline-light");this.G.element.classList.add("ytp-ad-action-interstitial-description-light");I.push("ytp-ad-action-interstitial-action-button-dark");this.api.J().K&&(I.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),I.push("ytp-ad-action-interstitial-action-button-dark"));this.api.J().Y("enable_unified_action_endcap_on_web")&& !this.api.J().K&&(I.push("ytp-ad-action-interstitial-action-button-unified"),this.bO.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Js.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.nP.classList.add("ytp-ad-action-interstitial-card-unified"),this.sI.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.G.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.vS.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.SZ.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Y3.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new H3(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,I);g.B(this,this.actionButton);this.actionButton.MN(this.bO); this.actionButton.init(lG("button"),g.m(J.actionButton,g.rD),K);L0(this.actionButton.element);I=v0(this.actionButton.element);zt(this.actionButton.element,I+" This link opens in new tab");this.navigationEndpoint=J.navigationEndpoint;this.T.D(this.SZ,"click",this.NT,this);this.T.D(this.sI,"click",this.NT,this);!this.api.J().Y("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.J().K||this.T.D(this.vS,"click",this.NT,this);this.W=this.Vs?new Ci(this.api,W):new wc(W);g.B(this,this.W);if(J.skipButton){(W= g.m(J.skipButton,$so))&&this.W&&(this.skipButton=new Nf(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.W,this.Ip),g.B(this,this.skipButton),this.skipButton.MN(this.element),this.skipButton.init(lG("skip-button"),W,K));if(K=J.adBadgeRenderer)if(K=g.m(K,Gjp))W=new Z1(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,!0,!0),W.MN(this.Y3),W.init(lG("simple-ad-badge"),K,this.macros),g.B(this,W);if(K=J.adInfoRenderer)if(K=g.m(K,BA))W=new Xo(this.api,this.layoutId,this.interactionLoggingClientData, this.yK,this.element,void 0,!0),W.MN(this.Y3),W.init(lG("ad-info-hover-text-button"),K,this.macros),g.B(this,W)}else J.nonskippableOverlayRenderer&&(W=g.m(J.nonskippableOverlayRenderer,mV))&&this.W&&(this.K=new pi(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.W,!1),g.B(this,this.K),this.K.MN(this.element),this.K.init(lG("ad-preview"),W,K));J.countdownRenderer&&(J=J.countdownRenderer,g.m(J,xse)&&this.W&&(K=new xaT(this.api,this.layoutId,this.interactionLoggingClientData,this.yK, this.W),g.B(this,K),K.MN(this.element),K.init(lG("timed-pie-countdown"),g.m(J,xse),this.macros)));this.show();this.element.focus()}else g.Va(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Va(Error("AdActionInterstitialRenderer has no button."));else g.Va(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Va(Error("AdActionInterstitialRenderer has no description AdText."));else g.Va(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Va(Error("AdActionInterstitialRenderer has no image."))}; g.u.clear=function(){g.$d(this.T);this.hide()}; g.u.show=function(){T20(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.K&&this.K.show();Fo.prototype.show.call(this)}; g.u.hide=function(){T20(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.K&&this.K.hide();Fo.prototype.hide.call(this)}; g.u.NT=function(){this.navigationEndpoint&&(this.layoutId?this.yK.executeCommand(this.navigationEndpoint,this.layoutId):g.Va(Error("Missing layoutId for ad action interstitial.")))};var RgQ={iconType:"CLOSE"},Zm=new g.Vt(320,63);g.N(egy,Fo);g.u=egy.prototype; g.u.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);this.T=J;this.C=g.U$(this.T.onClickCommands||[]);this.Y3=this.T.onErrorCommand||null;if(W=this.T.contentSupportedRenderer)W=this.T.contentSupportedRenderer,J=this.T.adInfoRenderer||null,g.m(W,wXL)?(this.S=g.Yj("ytp-ad-overlay-ad-info-button-container",this.G.element),bAy(this,J),W=maQ(this,g.m(W,wXL))):g.m(W,MSL)?(this.S=g.Yj("ytp-ad-overlay-ad-info-button-container",this.K.element),bAy(this,J),W=rvL(this,g.m(W,MSL))):g.m(W,gIr)?(this.S= g.Yj("ytp-ad-overlay-ad-info-button-container",this.W.element),bAy(this,J),W=oYQ(this,g.m(W,gIr))):(g.Va(Error("InvideoOverlayAdRenderer content could not be initialized.")),W=!1);W&&(this.show(),LpQ(this,!0))}; g.u.clear=function(){LpQ(this,!1);this.SZ.reset();this.sI=0;this.G.hide();this.logVisibility(this.G.element,!1);this.K.hide();this.logVisibility(this.K.element,!1);this.W.hide();this.logVisibility(this.W.element,!1);this.hide();this.dispose()}; g.u.Ukw=function(){this.bO&&(this.layoutId?this.yK.executeCommand(this.bO,this.layoutId):g.Va(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.u.f0=function(){a:{if(this.T&&this.T.closeButton&&this.T.closeButton.buttonRenderer){var W=this.T.closeButton.buttonRenderer;if(W.serviceEndpoint){W=[W.serviceEndpoint];break a}}W=[]}W=g.d(W);for(var J=W.next();!J.done;J=W.next())J=J.value,this.layoutId?this.yK.executeCommand(J,this.layoutId):g.Va(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.u.VIK=function(){this.OI||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.u.YE=function(){this.OI||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.YE("invideo-overlay")}; g.u.X7h=function(W){W.target===this.S&&g.Yj("ytp-ad-button",this.Js.element).click()};g.N(kYQ,Jq);g.u=kYQ.prototype;g.u.init=function(W,J,K){Jq.prototype.init.call(this,W,J,K);W=J.durationMs;this.G=W==null||W===0?0:W+this.W.getProgressState().current*1E3;if(J.text)var I=J.text.templatedAdText;else J.staticMessage&&(I=J.staticMessage);this.messageText.init(lG("ad-text"),I,K);this.messageText.MN(this.K.element);this.T.show(100);this.show()}; g.u.clear=function(){this.hide()}; g.u.hide=function(){zgc(this,!1);Jq.prototype.hide.call(this);this.K.hide();this.messageText.hide();IK(this)}; g.u.show=function(){zgc(this,!0);Jq.prototype.show.call(this);Ki(this);this.K.show();this.messageText.show()}; g.u.Ng=function(){this.hide()}; g.u.oi=function(){if(this.W!=null){var W=this.W.getProgressState();W!=null&&W.current!=null&&(W=1E3*W.current,!this.sI&&W>=this.G?(this.T.hide(),this.sI=!0):this.messageText&&this.messageText.isTemplated()&&(W=Math.max(0,Math.ceil((this.G-W)/1E3)),W!==this.S&&(iT(this.messageText,{TIME_REMAINING:String(W)}),this.S=W)))}};g.N(vYQ,Fo);g.u=vYQ.prototype; g.u.init=function(W,J,K){Fo.prototype.init.call(this,W,J,{});J.image&&J.image.thumbnail?J.headline?J.description?J.actionButton&&g.m(J.actionButton,g.rD)?(this.G.init(lG("ad-image"),J.image,K),this.K.init(lG("ad-text"),J.headline,K),this.T.init(lG("ad-text"),J.description,K),W=["ytp-ad-underlay-action-button"],this.api.J().Y("use_blue_buttons_for_desktop_player_underlay")&&W.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new H3(this.api,this.layoutId,this.interactionLoggingClientData,this.yK, W),J.backgroundColor&&g.bj(this.element,"background-color",g.rc(J.backgroundColor)),g.B(this,this.actionButton),this.actionButton.MN(this.S),this.actionButton.init(lG("button"),g.m(J.actionButton,g.rD),K),J=g.FV(this.api.J().experiments,"player_underlay_video_width_fraction"),this.api.J().Y("place_shrunken_video_on_left_of_player")?(K=this.W,g.A5(K,"ytp-ad-underlay-left-container"),g.lK(K,"ytp-ad-underlay-right-container"),g.bj(this.W,"margin-left",Math.round((J+.02)*100)+"%")):(K=this.W,g.A5(K,"ytp-ad-underlay-right-container"), g.lK(K,"ytp-ad-underlay-left-container")),g.bj(this.W,"width",Math.round((1-J-.04)*100)+"%"),this.api.q9()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.iT.bind(this)),this.api.addEventListener("resize",this.I4.bind(this))):g.Va(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Va(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Va(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Va(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.u.show=function(){YnQ(!0);this.actionButton&&this.actionButton.show();Fo.prototype.show.call(this)}; g.u.hide=function(){YnQ(!1);this.actionButton&&this.actionButton.hide();Fo.prototype.hide.call(this)}; g.u.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.iT.bind(this));this.api.removeEventListener("resize",this.I4.bind(this));this.hide()}; g.u.onClick=function(W){Fo.prototype.onClick.call(this,W);this.actionButton&&g.po(this.actionButton.element,W.target)&&this.api.pauseVideo()}; g.u.iT=function(W){W==="transitioning"?(this.W.classList.remove("ytp-ad-underlay-clickable"),this.show()):W==="visible"?this.W.classList.add("ytp-ad-underlay-clickable"):W==="hidden"&&(this.hide(),this.W.classList.remove("ytp-ad-underlay-clickable"))}; g.u.I4=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.bj(this.K.element,"font-size",W.width/40+"px")};g.N(Q2,Fo); Q2.prototype.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);J.toggledLoggingParams&&(this.toggledLoggingParams=J.toggledLoggingParams);J.answer&&g.m(J.answer,g.rD)?(W=new H3(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),W.MN(this.answer),W.init(lG("ytp-ad-survey-answer-button"),g.m(J.answer,g.rD),K),W.show()):J.answer&&g.m(J.answer,yD)&&(this.W=new oE(this.api,this.layoutId,this.interactionLoggingClientData,this.yK, ["ytp-ad-survey-answer-toggle-button"]),this.W.MN(this.answer),g.B(this,this.W),this.W.init(lG("survey-answer-button"),g.m(J.answer,yD),K));this.show()}; Q2.prototype.Uc=function(W){this.layoutId?Yw(this.yK,W,this.layoutId,this.macros):(W=new g.vd("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Va(W))}; Q2.prototype.onClick=function(W){Fo.prototype.onClick.call(this,W);if(this.api.J().Y("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Q2.prototype.clear=function(){this.hide()};g.N(sny,Fo);sny.prototype.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);J.answer&&g.m(J.answer,yD)&&(this.button=new oE(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.MN(this.W),this.button.init(lG("survey-none-of-the-above-button"),g.m(J.answer,yD),K));this.show()};g.N(C7,H3);C7.prototype.init=function(W,J,K){H3.prototype.init.call(this,W,J,K);W=!1;J.text&&(J=g.uG(J.text),W=!g.FC(J));W||g.ET(Error("No submit text was present in the renderer."))}; C7.prototype.onClick=function(W){this.publish("l");H3.prototype.onClick.call(this,W)};g.N(wS,Fo); wS.prototype.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);if(W=J.skipOrPreviewRenderer)g.m(W,fP)?(W=g.m(W,fP),K=new yS(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.T,!0),K.MN(this.skipOrPreview),K.init(lG("skip-button"),W,this.macros),g.B(this,K),this.W=K):g.m(W,mV)&&(W=g.m(W,mV),K=new pi(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.T,!1),K.MN(this.skipOrPreview),K.init(lG("ad-preview"),W,this.macros),K.sI.show(100),K.show(),g.B(this,K), this.W=K);this.W==null&&(W=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(J)),g.Va(W));J.submitButton&&(W=J.submitButton,g.m(W,g.rD)&&(W=g.m(W,g.rD),K=new C7(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),K.MN(this.submitButton),K.init(lG("survey-submit"),W,this.macros),g.B(this,K),this.K=K));if(W=J.adBadgeRenderer)W=g.m(W,Gjp),K=new Z1(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,!0,!0,!0),K.MN(this.G),K.init(lG("simple-ad-badge"), W,this.macros),this.adBadge=K.element,g.B(this,K);if(W=J.adDurationRemaining)W=g.m(W,ZUv),K=new Ge(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.T,void 0,!0),K.MN(this.G),K.init(lG("ad-duration-remaining"),W,this.macros),g.B(this,K);(J=J.adInfoRenderer)&&g.m(J,BA)&&(W=new Xo(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.element,void 0,!0),g.B(this,W),this.adBadge!==void 0?this.G.insertBefore(W.element,this.adBadge.nextSibling):W.MN(this.G),W.init(lG("ad-info-hover-text-button"), g.m(J,BA),this.macros));this.show()}; wS.prototype.clear=function(){this.hide()};g.N(M2,Fo);M2.prototype.init=function(W,J,K){Fo.prototype.init.call(this,W,J,K);ivp(this)}; M2.prototype.show=function(){this.G=Date.now();Fo.prototype.show.call(this)}; M2.prototype.l7=function(){};g.N(JT0,M2);g.u=JT0.prototype;g.u.init=function(W,J,K){var I=this;M2.prototype.init.call(this,W,J,K);J.questionText&&cvL(this,J.questionText);J.answers&&J.answers.forEach(function(q,S){g.m(q,Nu)&&PqL(I,g.m(q,Nu),K,S)}); this.S=new Set(this.K.map(function(q){return q.W.W})); (W=J.noneOfTheAbove)&&(W=g.m(W,Chp))&&KXR(this,W,K);J.surveyAdQuestionCommon&&WXe(this,J.surveyAdQuestionCommon);J.submitEndpoints&&(this.submitEndpoints=J.submitEndpoints);this.D(this.element,"change",this.onChange);this.show()}; g.u.l7=function(){Iy$(this,!1);this.T.K.subscribe("l",this.LHw,this)}; g.u.onChange=function(W){W.target===this.noneOfTheAbove.button.W?qHp(this):this.S.has(W.target)&&(this.noneOfTheAbove.button.toggleButton(!1),Iy$(this,!0))}; g.u.LHw=function(){var W=[],J=this.K.reduce(function(q,S,p){var n=S.toggledLoggingParams;S.W&&S.W.isToggled()&&n&&(q.push(n),W.push(p));return q},[]).join("&"),K=this.submitEndpoints.map(function(q){if(!q.loggingUrls)return q; q=g.JX(q);q.loggingUrls=q.loggingUrls.map(function(S){S.baseUrl&&(S.baseUrl=Et(S.baseUrl,J));return S}); return q}); if(K){K=g.d(K);for(var I=K.next();!I.done;I=K.next())I=I.value,this.layoutId?Yw(this.yK,I,this.layoutId,this.macros):g.Va(Error("Missing layoutId for multi_select_question."))}this.api.J().Y("supports_multi_step_on_desktop")&&this.sI(W)}; g.u.clear=function(){this.api.J().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.N(gS,M2);gS.prototype.init=function(W,J,K){var I=this;M2.prototype.init.call(this,W,J,K);J.questionText&&cvL(this,J.questionText);J.answers&&J.answers.forEach(function(q,S){g.m(q,Nu)&&PqL(I,g.m(q,Nu),K,S)}); J.surveyAdQuestionCommon?WXe(this,J.surveyAdQuestionCommon):nL(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(J)));this.show()}; gS.prototype.clear=function(){this.api.J().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.N(Gy,Fo);Gy.prototype.init=function(W,J,K){var I=this;Fo.prototype.init.call(this,W,J,K);if(this.api.J().Y("supports_multi_step_on_desktop")){var q;this.conditioningRules=(q=J.conditioningRules)!=null?q:[];var S;this.K=(S=J.questions)!=null?S:[];var p;((p=J.questions)==null?0:p.length)&&ncG(this,0)}else(J.questions||[]).forEach(function(n){g.m(n,R9)?pHv(I,g.m(n,R9),K):g.m(n,e5)&&lyr(I,g.m(n,e5),K)}); this.show()}; Gy.prototype.clear=function(){this.api.J().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; Gy.prototype.T=function(W){var J=this;if(this.api.J().Y("supports_multi_step_on_desktop")){var K;if((K=this.conditioningRules)==null?0:K.length){var I;if(W.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(q){return q.questionIndex===J.W})==null)g.Va(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(q){if(q.questionIndex===J.W)switch(q.condition){case "CONDITION_ALL_OF":var S;if((S=q.answerIndices)==null?0:S.every(function(n){return W.includes(n)}))I=q.nextQuestionIndex; break;case "CONDITION_ANY_OF":var p;if((p=q.answerIndices)==null?0:p.some(function(n){return W.includes(n)}))I=q.nextQuestionIndex; break;default:g.Va(Error("Expected specified condition in survey conditioning rules."))}}),I!=null)ncG(this,I); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Va(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.N($y,Fo); $y.prototype.init=function(W,J,K){var I=this;Fo.prototype.init.call(this,W,J,K);W=J.timeoutSeconds||0;if(typeof W!=="number"||W<0)g.Va(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+W));else if(J.timeoutCommands)if(J.text)if(J.ctaButton&&g.m(J.ctaButton,g.rD))if(J.brandImage)if(J.backgroundImage&&g.m(J.backgroundImage,o9)&&g.m(J.backgroundImage,o9).landscape){this.layoutId||g.Va(Error("Missing layoutId for survey interstitial."));ATR(this.interstitial,g.m(J.backgroundImage, o9).landscape);ATR(this.logoImage,J.brandImage);g.l5(this.text,g.uG(J.text));var q=["ytp-ad-survey-interstitial-action-button"];q.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new H3(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,q);g.B(this,this.actionButton);this.actionButton.MN(this.K);this.actionButton.init(lG("button"),g.m(J.ctaButton,g.rD),K);this.actionButton.show();this.W=new Ci(this.api,W*1E3);this.W.subscribe("g",function(){I.transition.hide()}); g.B(this,this.W);this.D(this.element,"click",function(S){var p=S.target===I.interstitial;S=I.actionButton.element.contains(S.target);if(p||S)if(I.transition.hide(),p)I.api.onAdUxClicked(I.componentType,I.layoutId)}); this.transition.show(100)}else g.Va(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Va(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Va(Error("SurveyTextInterstitialRenderer has no button."));else g.Va(Error("SurveyTextInterstitialRenderer has no text."));else g.Va(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; $y.prototype.clear=function(){this.hide()}; $y.prototype.show=function(){DIp(!0);Fo.prototype.show.call(this)}; $y.prototype.hide=function(){DIp(!1);Fo.prototype.hide.call(this)};g.N(Oz,Jq);g.u=Oz.prototype; g.u.init=function(W,J){Jq.prototype.init.call(this,W,J,{});if(J.durationMilliseconds){if(J.durationMilliseconds<0){g.Va(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+J.durationMilliseconds));return}this.K=J.durationMilliseconds}else this.K=this.W.qt();var K;if((K=J.previewText)==null||!K.text||g.FC(J.previewText.text))g.Va(Error("No text is returned for AdPreview."));else{this.S=J.previewText;J.previewText.isTemplated||g.l5(this.G,J.previewText.text);var I; if(((I=this.api.getVideoData(1))==null?0:I.CA)&&J.previewImage){var q,S;(W=((S=G6(((q=J.previewImage)==null?void 0:q.sources)||[],52,!1))==null?void 0:S.url)||"")&&W.length?(this.previewImage=new g.to({V:"img",B:"ytp-preview-ad__image",U:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",W),g.B(this,this.previewImage),this.previewImage.MN(this.element)):g.Va(Error("Failed to get imageUrl in AdPreview."))}else this.G.classList.add("ytp-preview-ad__text--padding--wide")}}; g.u.clear=function(){this.hide()}; g.u.hide=function(){IK(this);Jq.prototype.hide.call(this)}; g.u.show=function(){Ki(this);Jq.prototype.show.call(this)}; g.u.Ng=function(){this.hide()}; g.u.oi=function(){if(this.W){var W=this.W.getProgressState();if(W!=null&&W.current)if(W=1E3*W.current,W>=this.K)this.transition.hide();else{var J;if((J=this.S)==null?0:J.isTemplated)if(J=Math.max(0,Math.ceil((this.K-W)/1E3)),J!==this.T){var K,I;(W=(K=this.S)==null?void 0:(I=K.text)==null?void 0:I.replace("{TIME_REMAINING}",String(J)))&&g.l5(this.G,W);this.T=J}}}};g.N(Ty,Fo); Ty.prototype.init=function(W,J){Fo.prototype.init.call(this,W,J,{});var K,I;if((W=((I=G6(((K=J.image)==null?void 0:K.sources)||[],jyT(J),!0))==null?void 0:I.url)||"")&&W.length){K=this.T8("ytp-ad-avatar");K.src=W;var q,S;if(I=(q=J.interaction)==null?void 0:(S=q.accessibility)==null?void 0:S.label)K.alt=I;switch(J.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(J.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.Va(Error("Failed to get imageUrl in AdAvatar."))}; Ty.prototype.clear=function(){this.hide()}; Ty.prototype.onClick=function(W){Fo.prototype.onClick.call(this,W)};g.N(HJ,Fo); HJ.prototype.init=function(W,J){Fo.prototype.init.call(this,W,J,{});var K;W=(K=J.label)==null?void 0:K.content;if((K=W!=null&&!g.FC(W))||J.iconImage){K&&(this.buttonText=new g.to({V:"span",B:"ytp-ad-button-vm__text",Ky:W}),g.B(this,this.buttonText),this.buttonText.MN(this.element));var I,q,S=((I=J.interaction)==null?0:(q=I.accessibility)==null?0:q.label)||K?W:"";S&&zt(this.element,S+" This link opens in new tab");L0(this.element);if(J.iconImage){I=void 0;if(J.iconImage){a:{q=J.iconImage;if(q.sources)for(q= g.d(q.sources),W=q.next();!W.done;W=q.next())if(W=W.value,S=void 0,(S=W.clientResource)==null?0:S.imageName){q=W;break a}q=void 0}if(q){var p;I={iconType:(p=q.clientResource)==null?void 0:p.imageName}}}p=Tl(I,!1,this.K);p!=null&&(this.buttonIcon=new g.to({V:"span",B:"ytp-ad-button-vm__icon",L:[p]}),g.B(this,this.buttonIcon),J.iconLeading?(qO(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):K?(this.buttonIcon.MN(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.MN(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(J.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.element.classList.add(this.W?"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(J.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.ET(Error("AdButton does not have label or an icon."))}; HJ.prototype.clear=function(){this.hide()}; HJ.prototype.onClick=function(W){Fo.prototype.onClick.call(this,W)};g.N(fyl,Jq);g.u=fyl.prototype; g.u.init=function(W,J){Jq.prototype.init.call(this,W,J,{});this.api.J().Y("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.T8("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"),qO(this.T8("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(W=g.m(J.avatar,om)){var K=J.headline;if(K){var I=J.description;if(I){var q=g.m(J.button,ky);q?(this.adAvatar.init(lG("ad-avatar"),W),this.headline.init(lG("ad-simple-attributed-string"),new xq(K)),this.description.init(lG("ad-simple-attributed-string"),new xq(I)),K.content&&K.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(lG("ad-button"),q),this.startMilliseconds=J.startMs||0,this.api.q9()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Yx.bind(this)),Ki(this)):g.Va(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Va(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Va(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Va(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.u.oi=function(){if(this.W){var W=this.W.getProgressState();W&&W.current&&1E3*W.current>=this.startMilliseconds&&(IK(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.u.Ng=function(){this.clear()}; g.u.onClick=function(W){this.api.pauseVideo();Jq.prototype.onClick.call(this,W)}; g.u.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Yx.bind(this))}; g.u.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Jq.prototype.show.call(this)}; g.u.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Jq.prototype.hide.call(this)}; g.u.Yx=function(W){W==="hidden"?this.show():this.hide()};g.N(V2,Fo);g.u=V2.prototype; g.u.init=function(W,J){Fo.prototype.init.call(this,W,J,{});if(!J.label||g.FC(J.label))g.Va(Error("No label is returned for SkipAdButton."));else if(g.l5(this.T,J.label),W=Tl({iconType:"SKIP_NEXT_NEW"}),W==null)g.Va(Error("Unable to retrieve icon for SkipAdButton"));else if(this.G=new g.to({V:"span",B:"ytp-skip-ad-button__icon",L:[W]}),g.B(this,this.G),this.G.MN(this.element),this.api.J().experiments.HS("enable_skip_to_next_messaging")&&(J=g.N3(J.targetId)))this.K=!0,this.element.setAttribute("data-tooltip-target-id",J), this.element.setAttribute("data-tooltip-target-fixed","")}; g.u.onClick=function(W){W&&W.preventDefault();var J,K;sx0(W,{contentCpn:(K=(J=this.api.getVideoData(1))==null?void 0:J.clientPlaybackNonce)!=null?K:""})===0?this.api.qN("onAbnormalityDetected"):(Fo.prototype.onClick.call(this,W),this.api.qN("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.u.clear=function(){this.W.reset();this.hide()}; g.u.hide=function(){Fo.prototype.hide.call(this)}; g.u.show=function(){this.W.start();Fo.prototype.show.call(this);this.K&&this.api.J().experiments.HS("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.N(hQ0,Jq);g.u=hQ0.prototype; g.u.init=function(W,J){Jq.prototype.init.call(this,W,J,{});W=g.m(J.preskipState,Rs0);var K;if((K=this.api.getVideoData())==null?0:K.isDaiEnabled()){if(!W){g.Va(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.K=new Oz(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.W);g.B(this,this.K);this.K.MN(this.element);var I;(I=this.K)==null||I.init(lG("preview-ad"),W);(K=this.K)!=null&&(K.transition.show(100),K.show())}(K=g.m(J.skippableState,BXx))?(J.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=J.skipOffsetMilliseconds:(g.ET(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.G.init(lG("skip-button"),K),this.show()):g.Va(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.u.show=function(){Ki(this);Jq.prototype.show.call(this)}; g.u.hide=function(){!this.isSkippable&&this.K?this.K.hide():this.G&&this.G.hide();IK(this);Jq.prototype.hide.call(this)}; g.u.clear=function(){var W;(W=this.K)==null||W.clear();this.G&&this.G.clear();IK(this);Jq.prototype.hide.call(this)}; g.u.Ng=function(){this.hide()}; g.u.oi=function(){if(1E3*this.W.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var W;(W=this.K)!=null&&W.transition.hide();(W=this.G)!=null&&(W.transition.show(),W.show())}};g.N(Ez,Fo); Ez.prototype.init=function(W,J){Fo.prototype.init.call(this,W,J,{});if(J.label){var K;((K=J.label)==null?0:K.content)&&!g.FC(J.label.content)&&(this.linkText=new g.to({V:"span",B:"ytp-visit-advertiser-link__text",Ky:J.label.content}),g.B(this,this.linkText),this.linkText.MN(this.element));var I,q;if((I=J.interaction)==null?0:(q=I.accessibility)==null?0:q.label)zt(this.element,J.interaction.accessibility.label+" This link opens in new tab");else{var S;((S=J.label)==null?0:S.content)&&!g.FC(J.label.content)&&zt(this.element, J.label.content+" This link opens in new tab")}L0(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Va(Error("No label found in VisitAdvertiserLink."))}; Ez.prototype.onClick=function(W){Fo.prototype.onClick.call(this,W);this.api.onAdUxClicked(this.componentType,this.layoutId)}; Ez.prototype.clear=function(){this.hide()};g.N(ej,Fo); ej.prototype.init=function(W,J,K,I){Fo.prototype.init.call(this,W,J,{});if(J.skipOrPreview){K=J.skipOrPreview;W=g.m(K,msR);K=g.m(K,Rs0);if(W)this.KS=new hQ0(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.K),g.B(this,this.KS),this.KS.MN(this.C),this.KS.init(lG("skip-ad"),W);else{var q;K&&((q=this.api.getVideoData())==null?0:q.isDaiEnabled())&&(this.T=new Oz(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.K,1),g.B(this,this.T),this.T.MN(this.C),this.T.init(lG("ad-preview"), K),q=this.T,q.transition.show(100),q.show())}if(q=g.m(J.skipOrPreview,msR))var S=q.skipOffsetMilliseconds}J.playerAdCard&&(q=g.m(J.playerAdCard,bUl))&&(this.playerAdCard=new fyl(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.K),g.B(this,this.playerAdCard),this.playerAdCard.MN(this.vS),this.playerAdCard.init(lG("ad-avatar-lockup-card"),q));J.adBadgeRenderer&&((q=g.m(J.adBadgeRenderer,L7))?(this.G=new Te(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,!0),g.B(this, this.G),this.G.MN(this.W),this.G.init(lG("ad-badge"),q)):g.Va(Error("AdBadgeViewModel is not found in player overlay layout.")));J.adPodIndex&&(q=g.m(J.adPodIndex,HUW))&&(this.adPodIndex=new Hh(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),g.B(this,this.adPodIndex),this.adPodIndex.MN(this.W),this.adPodIndex.init(lG("ad-pod-index"),q));J.adInfoRenderer&&((q=g.m(J.adInfoRenderer,BA))?(this.adInfoButton=new Xo(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.element, void 0,!0),g.B(this,this.adInfoButton),this.G!==void 0?this.W.insertBefore(this.adInfoButton.element,this.G.element.nextSibling):this.adInfoButton.MN(this.W),this.adInfoButton.init(lG("ad-info-hover-text-button"),q,this.macros)):g.ET(Error("AdInfoRenderer is not found in player overlay layout.")));var p;q=(p=this.api.getVideoData())==null?void 0:p.isDaiEnabled();J.adDurationRemaining&&q&&(p=g.m(J.adDurationRemaining,ZUv))&&(this.adDurationRemaining=new Ge(this.api,this.layoutId,this.interactionLoggingClientData, this.yK,this.K,I.videoAdDurationSeconds,!0),g.B(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.W.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.MN(this.W),this.adDurationRemaining.init(lG("ad-duration-remaining"),p,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));J.visitAdvertiserLink&&(I=g.m(J.visitAdvertiserLink,oI0))&&(this.visitAdvertiserLink=new Ez(this.api,this.layoutId, this.interactionLoggingClientData,this.yK),g.B(this,this.visitAdvertiserLink),this.visitAdvertiserLink.MN(this.W),this.visitAdvertiserLink.init(lG("visit-advertiser-link"),I));J.adDisclosureBanner&&(J=g.m(J.adDisclosureBanner,TXL))&&(this.adDisclosureBanner=new VS(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),g.B(this,this.adDisclosureBanner),this.adDisclosureBanner.MN(this.sI),this.adDisclosureBanner.init(lG("ad-disclosure-banner"),J));this.S=new RK(this.api,this.K,S,!0);g.B(this, this.S);g.EY(this.api,this.S.element,4);this.show()}; ej.prototype.clear=function(){this.hide()};g.N(tQW,Fo);g.u=tQW.prototype; g.u.init=function(W,J){Fo.prototype.init.call(this,W,J,{});if(J!=null&&J.title)if(W=J.title)if(this.headline.init(lG("ad-simple-attributed-string"),new xq(W)),W=g.m(J.moreInfoButton,ky)){if(this.moreInfoButton.init(lG("ad-button"),W),J.descriptions)J.descriptions.length>0&&(W=J.descriptions[0])&&(this.W=new Oo(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),g.B(this,this.W),this.W.MN(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.W.init(lG("ad-simple-attributed-string"), new xq(W))),J.descriptions.length>1&&(J=J.descriptions[1])&&(this.K=new Oo(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),g.B(this,this.K),this.K.MN(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.K.init(lG("ad-simple-attributed-string"),new xq(J)))}else g.Va(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Va(Error("No headline found in AdGridCardText."));else g.Va(Error("No headline found in AdGridCardText."))}; g.u.onClick=function(W){Fo.prototype.onClick.call(this,W);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.u.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var W;(W=this.W)==null||W.clear();var J;(J=this.K)==null||J.clear()}; g.u.hide=function(){this.headline.hide();this.moreInfoButton.hide();var W;(W=this.W)==null||W.hide();var J;(J=this.K)==null||J.hide();Fo.prototype.hide.call(this)}; g.u.show=function(){Fo.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var W;(W=this.W)==null||W.show();var J;(J=this.K)==null||J.show()};g.N(Rm,Fo);Rm.prototype.init=function(W,J){Fo.prototype.init.call(this,W,J,{});if(J!=null&&J.gridCards)if(J.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Va(Error("Only single column style is currently supported in AdGridCardCollection."));else for(W=g.d(J.gridCards),J=W.next();!J.done;J=W.next()){if(J=g.m(J.value,esG)){var K=new tQW(this.api,this.layoutId,this.interactionLoggingClientData,this.yK);g.B(this,K);K.MN(this.element);K.init(lG("ad-grid-card-text"),J);this.W.push(K)}}else g.Va(Error("No grid cards found in AdGridCardCollection."))}; Rm.prototype.show=function(){for(var W=g.d(this.W),J=W.next();!J.done;J=W.next())J.value.show();Fo.prototype.show.call(this)}; Rm.prototype.clear=function(){this.hide();for(var W=g.d(this.W),J=W.next();!J.done;J=W.next())J.value.clear()}; Rm.prototype.hide=function(){for(var W=g.d(this.W),J=W.next();!J.done;J=W.next())J.value.hide();Fo.prototype.hide.call(this)};g.N(bv,Jq);g.u=bv.prototype;g.u.init=function(W,J,K,I,q){q=q===void 0?0:q;Jq.prototype.init.call(this,W,J,K,I);this.playerProgressOffsetMs=q;Ki(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.o3.bind(this));this.api.addEventListener("resize",this.ZM.bind(this));this.api.q9()?(this.K=!0,this.api.fg(!0),this.show()):this.hide()}; g.u.oi=function(){if(this.W){var W=this.W.getProgressState();W&&W.current&&!this.K&&1E3*W.current>=this.playerProgressOffsetMs&&(this.K=!0,this.api.fg(!0),this.show())}}; g.u.Ng=function(){this.K&&this.api.fg(!1);this.hide()}; g.u.clear=function(){this.api.fg(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.o3.bind(this));this.api.removeEventListener("resize",this.ZM.bind(this));IK(this);this.hide()}; g.u.hide=function(){FXr(!1);Jq.prototype.hide.call(this)}; g.u.show=function(){FXr(!0);Jq.prototype.show.call(this)};g.N(ayR,bv);g.u=ayR.prototype; g.u.init=function(W,J,K,I){if(J!=null&&J.adGridCardCollection)if(J!=null&&J.adButton){var q=Number(J.playerProgressOffsetMs||"0");isNaN(q)?bv.prototype.init.call(this,W,J,K,I):bv.prototype.init.call(this,W,J,K,I,q);W=J.headline;K=g.m(J.adAvatar,om);W&&K?(this.headline=new Oo(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),g.B(this,this.headline),this.headline.MN(this.T8("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(lG("ad-simple-attributed-string"),new xq(W)), this.adAvatar=new Ty(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),g.B(this,this.adAvatar),this.adAvatar.MN(this.T8("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(lG("ad-avatar"),K)):this.T.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");W=g.m(J.adGridCardCollection,EI$);this.adGridCardCollection.init(lG("ad-grid-card-collection"),W);J=g.m(J.adButton,ky);this.adButton.init(lG("ad-button"),J); this.hide()}else g.Va(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Va(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.u.onClick=function(W){(this.adButton&&g.po(this.adButton.element,W.target)||this.adAvatar&&g.po(this.adAvatar.element,W.target))&&this.api.pauseVideo();bv.prototype.onClick.call(this,W);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.u.ZM=function(){}; g.u.clear=function(){this.hide();var W;(W=this.headline)==null||W.clear();var J;(J=this.adAvatar)==null||J.clear();this.adGridCardCollection.clear();this.adButton.clear();bv.prototype.clear.call(this)}; g.u.show=function(){var W;(W=this.headline)==null||W.show();var J;(J=this.adAvatar)==null||J.show();this.adGridCardCollection.show();this.adButton.show();bv.prototype.show.call(this)}; g.u.hide=function(){var W;(W=this.headline)==null||W.hide();var J;(J=this.adAvatar)==null||J.hide();this.adGridCardCollection.hide();this.adButton.hide();bv.prototype.hide.call(this)}; g.u.o3=function(W){W==="transitioning"?(this.G.classList.remove("ytp-ad-underlay-clickable"),this.show()):W==="visible"?this.G.classList.add("ytp-ad-underlay-clickable"):W==="hidden"&&(this.hide(),this.G.classList.remove("ytp-ad-underlay-clickable"))};g.N(BJ,Fo); BJ.prototype.init=function(W,J){Fo.prototype.init.call(this,W,J,{});if(J.attributes===void 0)g.Va(Error("No attributes found in AdDetailsLineViewModel."));else if(J.style===void 0)g.Va(Error("No style found in AdDetailsLineViewModel."));else{W=g.d(J.attributes);for(var K=W.next();!K.done;K=W.next())if(K=K.value,K.text!==void 0){K=K.text;var I=J.style,q=new Oo(this.api,this.layoutId,this.interactionLoggingClientData,this.yK);g.B(this,q);q.MN(this.element);a:switch(I){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":I="ytp-ad-details-line__text--style-responsive"; break a;default:I="ytp-ad-details-line__text--style-standard"}q.element.classList.add(I);q.init(lG("ad-simple-attributed-string"),new xq(K));this.W.push(q)}this.show()}}; BJ.prototype.show=function(){this.W.forEach(function(W){W.show()}); Fo.prototype.show.call(this)}; BJ.prototype.clear=function(){this.hide()}; BJ.prototype.hide=function(){this.W.forEach(function(W){W.hide()}); Fo.prototype.hide.call(this)};g.N(mq,Fo);mq.prototype.init=function(W,J){Fo.prototype.init.call(this,W,J,{});var K,I;(W=((I=G6(((K=J.image)==null?void 0:K.sources)||[]))==null?void 0:I.url)||"")&&W.length?(K=this.T8("ytp-image-background-image"),g.bj(K,"backgroundImage","url("+W+")"),J.blurLevel!==void 0&&g.bj(K,"filter","blur("+J.blurLevel+"px)"),J.gradient!==void 0&&(J=new g.k({V:"div",au:["ytp-image-background--gradient-vertical"]}),g.B(this,J),J.MN(this.element)),this.show()):g.Va(Error("Failed to get imageUrl in ImageBackground."))}; mq.prototype.clear=function(){this.hide()};g.N(uLr,Jq);g.u=uLr.prototype;g.u.init=function(W,J){Jq.prototype.init.call(this,W,J,{});g.bj(this.G,"stroke-dasharray","0 "+this.K);this.show()}; g.u.clear=function(){this.hide()}; g.u.hide=function(){IK(this);Jq.prototype.hide.call(this)}; g.u.show=function(){Ki(this);Jq.prototype.show.call(this)}; g.u.Ng=function(){this.hide()}; g.u.oi=function(){if(this.W){var W=this.W.getProgressState();W!=null&&W.current!=null&&g.bj(this.G,"stroke-dasharray",W.current/W.seekableEnd*this.K+" "+this.K)}};g.N(rS,Fo); rS.prototype.init=function(W,J){Fo.prototype.init.call(this,W,J,{});if(dI0(J)){this.adAvatar=new Ty(this.api,this.layoutId,this.interactionLoggingClientData,this.yK);g.B(this,this.adAvatar);this.adAvatar.MN(this.T8("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(lG("ad-avatar"),g.m(J.adAvatar,om));this.headline=new Oo(this.api,this.layoutId,this.interactionLoggingClientData,this.yK);g.B(this,this.headline);this.headline.MN(this.T8("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(lG("ad-simple-attributed-string"),new xq(J.headline));if(W=g.m(J.adDetailsLine,OUe))this.detailsLine=new BJ(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),g.B(this,this.detailsLine),this.detailsLine.MN(this.T8("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(lG("ad-details-line"),W);this.adButton=new HJ(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,!0);g.B(this,this.adButton); this.adButton.MN(this.T8("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(lG("ad-button"),g.m(J.adButton,ky));this.adBadge=new Te(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,!0);g.B(this,this.adBadge);this.adBadge.MN(this.T);this.adBadge.init(lG("ad-badge"),g.m(J.adBadge,L7));this.adInfoButton=new Xo(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.element,void 0,!0);g.B(this,this.adInfoButton);this.adInfoButton.MN(this.T); this.adInfoButton.init(lG("ad-info-hover-text-button"),g.m(J.adInfoRenderer,BA),this.macros);if(W=g.m(J.skipAdButton,BXx))this.skipAdButton=new V2(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),g.B(this,this.skipAdButton),this.skipAdButton.MN(this.element),this.skipAdButton.init(lG("skip-button"),W);this.K=new wc(J.durationMilliseconds);g.B(this,this.K);if(W=g.m(J.countdownViewModel,rXo))this.W=new uLr(this.api,this.layoutId,this.interactionLoggingClientData,this.yK,this.K),g.B(this, this.W),this.W.MN(this.T8("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.W.init(lG("timed-pie-countdown"),W);if(J=g.m(J.imageBackground,VSe))this.imageBackground=new mq(this.api,this.layoutId,this.interactionLoggingClientData,this.yK),g.B(this,this.imageBackground),this.imageBackground.MN(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(lG("image-background"), J);this.show();this.element.focus()}}; rS.prototype.clear=function(){g.$d(this.G);this.hide()}; rS.prototype.show=function(){N0o(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Fo.prototype.show.call(this)}; rS.prototype.hide=function(){N0o(!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.W&&this.W.hide();this.imageBackground&&this.imageBackground.hide();Fo.prototype.hide.call(this)};g.N(zy,g.Ao);g.u=zy.prototype;g.u.qt=function(){return 1E3*this.api.getDuration(this.jS,!1)}; g.u.stop=function(){this.W&&this.uK.aZ(this.W)}; g.u.ZH=function(){var W=this.api.getProgressState(this.jS);this.K={seekableStart:W.seekableStart,seekableEnd:W.seekableEnd,current:this.api.getCurrentTime(this.jS,!1)};this.publish("h")}; g.u.getProgressState=function(){return this.K}; g.u.Ay=function(W){g.uT(W,2)&&this.publish("g")};var tBv="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.N(vJ,kT); vJ.prototype.T=function(W){var J=W.id,K=W.content,I=K.componentType;if(!tBv.includes(I))switch(W.actionType){case 1:W=this.api;var q=this.yK,S=K.layoutId,p=K.interactionLoggingClientData,n=K instanceof Pj?K.Vs:!1,A=K instanceof Pj||K instanceof QS?K.Ip:!1;p=p===void 0?{}:p;n=n===void 0?!1:n;A=A===void 0?!1:A;switch(I){case "invideo-overlay":W=new egy(W,S,p,q);break;case "player-overlay":W=new bT(W,S,p,q,new zy(W),A);break;case "player-overlay-layout":W=new ej(W,S,p,q,new zy(W));break;case "survey":W= new Gy(W,S,p,q);break;case "ad-action-interstitial":W=new OAQ(W,S,p,q,n,A);break;case "video-interstitial-buttoned-centered":W=new rS(W,S,p,q);break;case "survey-interstitial":W=new $y(W,S,p,q);break;case "ad-message":W=new kYQ(W,S,p,q,new zy(W,1));break;case "player-underlay":W=new vYQ(W,S,p,q);break;case "display-underlay-text-grid-cards":W=new ayR(W,S,p,q,new zy(W));break;default:W=null}if(!W){g.ET(Error("No UI component returned from ComponentFactory for type: "+I));break}g.Yr(this.K,J)?g.ET(Error("Ad UI component already registered: "+ J)):this.K[J]=W;W.bind(K);K instanceof s8?this.G?this.G.append(W.Ar):g.ET(Error("Underlay view was not created but UnderlayRenderer was created")):this.j.append(W.Ar);break;case 2:J=yTr(this,W);if(J==null)break;J.bind(K);break;case 3:K=yTr(this,W),K!=null&&(g.hE(K),g.Yr(this.K,J)?(K=this.K,J in K&&delete K[J]):g.ET(Error("Ad UI component does not exist: "+J)))}}; vJ.prototype.lO=function(){g.tE(Object.values(this.K));this.K={};kT.prototype.lO.call(this)};g.N(UIR,g.N9);g.u=UIR.prototype;g.u.create=function(){try{Zve(this),this.load(),this.created=!0,Zve(this)}catch(W){tq(W instanceof Error?W:String(W))}}; g.u.load=function(){try{wHo(this)}finally{cV(y2(this.W).Gr)&&this.player.sM("ad",1)}}; g.u.destroy=function(){var W=this.player.getVideoData(1);this.W.W.nW.OQ(W&&W.clientPlaybackNonce||"");this.unload();this.created=!1}; g.u.unload=function(){g.N9.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(J){tq(J instanceof Error?J:String(J))}if(this.K!=null){var W=this.K;this.K=null;W.dispose()}this.G.reset()}; g.u.p_=function(){return!1}; g.u.getAdState=function(){return-1}; g.u.getOptions=function(){return Object.values(h2o)}; g.u.CQ=function(W,J){J=J===void 0?{}:J;switch(W){case "replaceUrlMacros":return W=J,W.url?(J=mc0(this.player),Object.assign(J,W.Msu),W=g.H0(W.url,J)):W=null,W;case "onAboutThisAdPopupClosed":this.Bh(J);break;case "executeCommand":W=J;W.command&&W.layoutId&&this.executeCommand(W);break;default:return null}}; g.u.hJ=function(W){var J;return!((J=this.W.W.p7)==null||!J.get().hJ(W))}; g.u.Bh=function(W){W.isMuted&&hoA(y2(this.W).B4,y2(this.W).fp,W.layoutId);this.E_&&this.E_.Bh()}; g.u.executeCommand=function(W){y2(this.W).yK.executeCommand(W.command,W.layoutId)};g.Yc("yt.player.Application.create",g.Fc.create);g.Yc("yt.player.Application.createAlternate",g.Fc.create);Tic(xb(),fQe);var Fhj=g.sH("ytcsi.tick");Fhj&&Fhj("pe");g.uV("ad",UIR);g.N(g.cJ,g.R);g.cJ.prototype.start=function(W,J,K){this.config={from:W,to:J,duration:K,startTime:(0,g.L)()};this.next()}; g.cJ.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.cJ.prototype.next=function(){if(this.config){var W=this.config,J=W.from,K=W.to,I=W.duration;W=W.startTime;var q=(0,g.L)()-W;W=this.W;I=bqQ(W,q/I);if(I==0)W=W.Z;else if(I==1)W=W.N;else{q=Oh(W.Z,W.j,I);var S=Oh(W.j,W.S,I);W=Oh(W.S,W.N,I);q=Oh(q,S,I);S=Oh(S,W,I);W=Oh(q,S,I)}W=g.Gm(W,0,1);this.callback(J+(K-J)*W);W<1&&this.delay.start()}};g.N(g.PJ,g.k);g.u=g.PJ.prototype;g.u.hasSuggestions=function(){return this.suggestionData.length>0}; g.u.pY=function(){this.K&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.u.show=function(){g.k.prototype.show.call(this);OvG(this)}; g.u.kQ=function(){this.K&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.u.LW=function(){this.eI(this.api.UI().getPlayerSize())}; g.u.eI=function(W){var J=this.api.isEmbedsShortsMode()?.5625:16/9,K=this.api.aX();W=W.width-(K?112:58);K=Math.ceil(W/(K?320:192));var I=(W-K*8)/K;J=Math.floor(I/J);for(var q=g.d(this.W),S=q.next();!S.done;S=q.next())S=S.value.T8("ytp-suggestion-image"),S.style.width=I+"px",S.style.height=J+"px";this.suggestions.element.style.height=J+"px";this.T=I;this.N=J;this.containerWidth=W;this.columns=K;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.X4(this)}; g.u.onVideoDataChange=function(){var W=this.api.J(),J=g.E(this.api.getVideoData());this.S=J.pP?!1:W.T;this.suggestionData=J.suggestions?g.Ei(J.suggestions,function(K){return K&&!K.playlistId}):[]; Hvp(this);J.pP?this.title.update({title:g.dF("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:J.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.u.scrollTo=function(W){W=g.Gm(W,this.containerWidth-this.suggestionData.length*(this.T+8),0);this.Z.start(this.scrollPosition,W,1E3);this.scrollPosition=W;g.X4(this);OvG(this)};})(_yt_player);