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 ay,B_y,aHB,NY,VBb,hXA,CV,eXz,zK,W9z,m9,Iy,g_,wz_,K9_,lHc,nV,fV,kKx,N_c,dYX,CxX,DH,SB,Ry,ZH,r_,$B,zXc,Xc,TK,Fc,mYA,IHg,gB_,pzc,UYc,a2,OVx,EBy,Ks,la,kC,bVY,ygA,cgc,nBy,fHK,HVx,vBB,DY_,z$,SAH,m7,RX_,Xzc,I2,qAV,ucy,ps,QyB,jf,yk,D8,Sf,R2,Z8,L9x,T_y,rl,q9,$C,sy_,F9B,JgA,Agy,ua,YAH,Qk,Ls,T$,iVB,Px9,Fh,MBA,G$b,a5,BlH,WK,a8B,Vfg,hO,x9b,hCx,eCB,zv,W7B,K7Y,zCA,gK,CaB,k$K,m9x,gCg,U99,U7,O7,j$,yj,bk,ECx,bsV,cK,nd,fd,DC,S$,R5,ZC,rK,$V,f8y,XO,Qj,Hsc,vC9,Tv,FO,Zs_,ik,MU,Bq,rJK,GM,$9b,XWb,aU,PK,VW, xe,q3z,hD,Wq,Q2g,w3,K2,lO,Tlg,IU,s2A,F7Y,JJH,L7g,mt,C2,ke,AJg,Y3y,Pax,oCB,MfY,UE,OE,EE,GvB,BKy,bO,h_x,wKb,aCb,Wdg,e_A,xUb,V$b,KdB,lCB,yW,NKx,n2,kvX,Ckx,DJ,Hq,z_V,S_,RU,r3,ZJ,Xn,$e,sE,q2,QW,L2,mUA,JD,ICc,AD,Ye,M2,Gz,BY,iO,oU,Pq,VS,xn,hk,gVc,Vk,eo,WY,uO,TM,w4,UUK,lK,ef,kn,NW,d4,C0,zz,tk,mn,OdH,I6,EVK,g4,j5Y,Ol,p0,El,jo,bK,yS,cY,bdb,cOA,f0,nV_,fCA,HY,vY,R6,vVB,Zv,DUg,r4,R_X,$n,rOc,Xg,qW,uK,$UX,QS,XKB,L0,q7K,uOB,Q5_,Tz,Ldx,sl,Fg,Ak,Yn,s5B,o6,AOX,TKA,MW,Bb,an,idV,Vg,hE,Pky,M$z,GMV,eM,Wb,wy,KK,lR,kx,N8, aJA,V_B,x2A,eYY,Wt_,dy,wqx,Ktx,CK,zN,tE,ma,lJB,COb,zYg,m2Y,t_c,IJB,pqV,UZ,OZ,EZ,jM,bR,cb,nK,jUB,Hb,Dj,SM,Rn,ry,$x,b2g,Xd,q8,Qg,cDA,ne9,LK,sZ,Fd,AE,Yx,Pb,on,rDz,$2g,XqB,qEx,M8,GF,unB,QUz,LtA,BM,al,Vw,xj,h$,wU,N6,zF,Il,T3c,sU9,bQ,Ftc,SH,Rl,YEb,Gzc,oeV,avz,X2,q6,A$,hlg,WnA,elb,iQ,ol,wYz,PM,VX,rU,lvA,KnV,wQ,Wi,ZQ,Ka,lf,ko,kzg,N_,dWX,zT,CKB,tw,mE,IL,gQ,zl_,toz,mWb,pa,Ivc,gnz,hYz,bf,pYz,UWc,O0g,j6x,EnB,js,yX,ci,b0x,yk_,ckb,nnH,na,fvg,fa,N3y,kMX,Hi,vi,Ss,RL,DWK,Za,rQ,Xm,SlX,Rlg,q_,qlc,Aw,rkb,XYc,La,QX,M_, G5,ugX,xK,Q69,hu,eU,LnY,s6B,l8,Jky,NH,dp,AkX,YlA,tu,Iz,MoX,Byg,ajX,VMx,gp,WaA,CJ,PKB,KaB,eAz,x8b,hAY,ljc,wb9,Uh,GNc,jU,NyH,d8g,NUB,d6_,CQy,ys,z4A,nJ,tHc,gjH,pMx,fJ,Ha,va,$K,Ooy,Xt,qH,u8,Ejz,jlV,T5,boc,sh,Ft,njH,Ho9,D6x,vjA,Sux,Au,Pa,B2,Vi,xH,hL,eJ,W2,r$x,$6c,wN,XMg,KX,lc,aC,kH,Nh,dN,xC,CX,qub,tL,L3x,mc,IC,gN,TUB,slB,F3K,J$B,pX,A$Y,Ug,Og,ioX,MHz,GT9,Eg,x_y,Vsy,h29,e2x,WEY,jJ,wiB,BQA,bc,KEc,la9,yi,NQg,d_X,CfH,z2X,tsX,fX,m_g,IaB,goc,piz,EoY,U_x,H2,v2,Dz,SJ,RC,Zz,rN,Xw,ba9,uc,qh,yw9,Qi,cwz,LX,no_,fag, Hax,vob,T_,Fw,R2A,sg,Za_,JL,AL,rwy,YH,ic,P2,oC,Mh,GU,QLg,$_X,xO,umV,hf,qzc,Vo,BR,Xig,aQ,WR,TQX,Kc,wj,Cc,zU,mX,JwY,tf,pc,AwB,UW,sLK,PfB,oox,Msy,jv,bA,yo,G5c,cR,nc,fc,HR,BpV,vR,Df,Sv,a4b,VU9,RQ,xHX,WL_,PQ_,e$x,wa9,KLz,l4b,h$9,Npb,qo,uA,Qo,dHb,TU,Lc,C8K,z$9,tUc,Af,mHH,YO,iA,I49,PR,paX,oQ,gKV,UHX,OJB,EKy,Mo,Ge,B1,aY,VN,xZ,hR,jzz,el,W1,w$,bJb,cux,nKY,lr,Nt,kZ,C6,ze,tR,HJz,vKK,mr,IY,g$,ShB,R$y,$HV,ZJY,Xa9,LLB,p6,QzH,qh9,U$,O$,TpK,E$,sz9,jl,Jux,FLB,Au9,YhY,n6,f6,iJy,P8A,oKY,H1,v1,MUY,D9,G__,BNK,VJY,Wc_, Sl,w2B,Kcc,lzK,k_g,NNA,r$,dhz,Ccc,zUc,Te,L6,QN,tJ9,mhA,IzK,s$,FP,JR,p2b,oY,Mt,Gd,BO,aq,Vu,OXB,EHc,jCc,xa,e3,WO,dx,C4,ml,yLH,nHx,cLY,fzy,HXB,EK,vHK,Dhx,j3,SgB,RUg,ZXc,rLA,Dc,HO,S3,Rq,Zc,$hc,X2_,qgA,rx,$a,uwX,XT,QCY,LcV,TNy,qV,sCc,uL,Qu,FcK,JLA,ALy,Ygb,iX9,Pc_,L4,Td,sK,JI,GUH,AI,Ya,BjB,MJY,FT,afV,iL,PO,oq,GR,MV,VvV,xo9,hey,Bd,WXc,aK,KXz,lfB,kUg,NjV,doK,CAK,zex,tvg,hc,ep,Wd,IfB,moy,gOy,pRV,Kt,UoY,lG,OcK,EOc,km,N7,db,jQK,Ct,zR,bc9,tc,m8,IK,gb,pt,U9,O9,E9,yfV,cfy,nOX,ffB,jp,HcV,DoB,vOB,yc,cd,Rec,SWc,$oV, uNK,qWB,nt,QQg,LX_,Tjy,FXB,sQX,JfK,ft,Af9,YWy,vd,ic_,PAX,oOx,Mv9,Dp,GeB,Sp,B$x,RK,Zp,VlB,rb,xtX,$m,Xj,hxA,exx,q7,Qc,w19,Lt,Wrc,KrK,l9Y,kex,dtH,TR,CrK,Jc,Ac,tlH,mtx,p1Y,UtX,Ym,iG,Pd,oK,M7,G3,BG,aX,VP,x0,h8,e6,WG,b6z,jYH,yRH,nZc,cRK,H6V,EZb,f9g,O6x,wA,Ky,Dty,S$c,Rxb,dA,Cy,z3,lC,rRg,t8,vZX,X1Y,q$B,$tX,mK,IX,gA,py,uP_,Z6b,QYX,Ur,LrH,T$K,sYB,FrX,JRH,i6c,Prg,oZc,Mlc,Or,BxB,acy,haA,eaB,cG,wOz,ny,bC,lc_,Klg,dV9,HG,Dq,zag,t3y,mV9,Icg,pOY,Zq,RX,UVy,gaB,EaV,b4V,vaB,X7,DVY,$0,uC,SKy,QP,T3,sr,Ra9,Z4x,GV,rIH,aR, $VX,XOK,k$,qKA,QqX,N4,LlB,TxV,YKb,sqB,ti,mu,IR,pm,UJ,GRy,OJ,EJ,jb,apx,cC,Vpy,x7V,nm,eO_,HC,vC,DA,Sb,W8_,RR,ri,$$,Xf,q4,wdH,K8A,lpB,Q_,Lm,TV,sJ,Ff,Ji,kR9,NbK,d7x,CGK,zOA,tpK,Ai,m7y,Bu,Ipy,gmB,pdA,ab,xt,h0,eV,Kx,l4,kt,OtY,Cx,zY,t0,Emx,jKH,mp,bt9,ycB,gL,ROH,Ztz,rcB,px,$7Y,XdB,QKx,Ov,TbY,L8B,jV,F8B,JcK,Acz,y4,cu,Y99,nx,fx,Hu,vu,Dm,SV,Rb,Zm,rL,$t,Xk,Q4,Lx,TY,itx,PGx,omX,J0,Yt,Mpy,Ml,G9,Bh,ah,VZ,hM,eK,V6_,Wh,w1,KB,hm9,x1B,G3y,NI,k4,KKV,d1,Oq,g1,Eq,jK,k3_,CCX,yZ,m1B,zm_,t6y,g0c,jXy,pGH,Oyz,E0c,nB,ch,byz, Hh,vh,Dd,y8A,XG,c89,qI,um,LB,n0x,sq,FG,fqA,JM,AM,v0H,Ph,MI,Gp,BH,aP,VG,xS,ht,eL,WH,Sr9,wE,kS,lP,Zy9,qrA,$1y,XGB,u7V,QX9,TAH,sXA,LKB,J8b,CU,zp,IP,A8B,Yr_,m$,gE,PCB,o0g,aAA,Bi_,EU,jL,bP,yG,cH,fU,x4b,hRb,eRz,rE,$S,Wuz,wCg,Kub,LU,Tp,sU,lAV,kVc,d4c,zRB,YS,tbz,oP,iP,BL,at,xR,m4z,kR,N$,dP,CN,tx,mv,gP,OmB,E$X,UV,jRz,bmc,EV,yiV,ciB,jn,bT,n$X,fAV,v$c,fN,SJz,RR_,cL,Zmc,riK,XC9,$4Y,Sn,D4g,ufX,QRX,q$,$R,LuH,TiB,uT,QT,sRB,FuX,sV,Jiz,Ai_,YJK,im_,iT,Puy,o$B,MbB,GYH,BLz,am_,VVc,xlX,ot,hyg,GD,Wpx,wux,Kpg,lmB,kYb,Bn, Wn,dlz,tVX,wg,mlY,gtb,NLV,pub,Uly,OxK,C4A,zyH,aw,V2,eq,ImY,hd,xI,Etb,jbB,bx9,y0c,c0K,ntB,Svz,fmx,NM,dg,zD,r0B,qvy,Xub,Ci,Iw,ukc,y2,QbA,TLA,vn,Lpb,MVc,sb_,otV,Z1,G9A,VK_,rg,Rw,B1B,adH,xIz,XD,esb,WeH,whB,Key,ldK,k9g,N1K,hsA,CmY,zsH,tKX,IdB,mIK,phV,Li,UIz,TD,FD,Jd,OBX,E4K,i_,Pn,bBx,jhX,ow,yM9,n4V,HBA,fdK,v4x,Rsx,DIH,Kg,N5,kl,ZBb,l9,dr,Cg,zs,th,rMH,Ot,Xh9,b9,j5,cD,ng,fg,qqz,HD,DN,uGK,RZ,rr,$l,QhA,LeB,T1z,shz,X8,u9,Fex,QE,Lg,Ts,AMx,F8,Jh,Yqb,Yl,oZ,PD,i9,M5,GI,o49,xe_,eJc,VLX,a0A,hJV,V0,eG,l0c,W$b,wHy, K$b,PmB,gSA,to,I0B,OUc,meB,aA,mU,lY,CA,pH_,wz,GpK,MKb,BEK,ho,tLx,U1,nS_,O1,HUg,vSV,DeK,jG,SUy,RJy,ZU_,$eB,XHA,cx,uIc,nA,QP9,L$B,sPB,F$x,Hx,Jtb,YUb,vx,iUV,Db,SG,WL,aPg,Wv_,qT,Kvx,NPB,Q0,CTA,ztx,tn_,m$9,MT,IPB,Px,$lb,Yk,oA,iY,LA,Wr,eT,Kr,k9,pLb,Ns,Cr,zn,U$B,ONB,Ix,jtY,bNB,yxc,cxX,nRV,fPX,HNz,vRA,D$_,SVH,OX,Rtc,EX,be,ZNB,rxB,$$B,yp,XL9,qVz,Hr,vr,DG,uC9,ST,QtK,ZG,TPB,LvX,$9,Xx,qs,ue,stx,Qp,Lr,Fvx,JxK,Tn,sX,PTx,AxB,iNx,YV9,Fx,JU,AU,oRV,Mnc,GDK,Y9,a1B,h3b,xMB,ie,Pr,ox,Ms,G7,ac,Vd,xN,hn,eu,Wm,e3_,WH9,wnB, wv,KY,ly,kN,dv,z7,kDY,l1B,mJ,NgA,Ic,gv,pY,U5,O5,by,yd,cm,nY,fY,Hm,vm,D$,Su,Rc,Z$,z3V,$N,qR,tqV,uy,I1g,gIB,pnx,Oix,jwb,Jn,biB,YN,An,nIB,f19,HiA,Pm,oc,DM_,GG,B4,av,VD,R3K,xr,tl,mP,Zix,Iv,Ssz,g5,pR,$MK,rd_,U8,O8,E8,jI,yD,qsB,uDx,nR,fR,v4,DX,QwY,H4,swY,FHA,JdK,AdB,YsX,iix,P_g,Rv,SI,Tgg,GsB,ZX,aNz,V5c,u1,x5_,$r,X_,h1x,QD,Whz,KhB,LR,TG,lNx,F_,Nrc,Jl,IN9,t5Y,d5A,z1V,C9x,Yr,i1,P4,ov,MO,Gi,B7,a3,pDb,Elg,eD,WlV,W7,jZb,yhg,KH,dH,lX,Nv,ky,fNB,nlH,chg,Hgz,CH,vl_,ZgX,zi,mN,$5_,I3,gH,pH,Uj,XDY,Oj,qtK,u8K,jD,nH, fH,H7,v7,DZ,SD,R3,ZZ,rH,$y,X9,qv,uX,QZc,LhV,Qz,LH,Ti,sj,F9,Jr,TrA,sZx,Ar,wC,Ahb,Yt_,Kp,lo,tW,mi,P9B,pp,Ed,olA,GIy,M5Y,Bzg,ab9,VGc,xT_,hwA,ewV,wxz,WUz,KUy,Nz_,CYg,kIV,bo,yB,tGV,zwX,cS,np,fp,IbV,HS,vS,D7,pxY,UTA,S9,gkX,R4,jA9,Z7,rC,$v,Xu,qK,uo,QB,Lp,TH,sd,Fu,JW,AW,Yv,io,PS,o4,MK,Gy,Bl,aG,V$,x5,hV,ec,Wl,wF,Kz,lW,k5,Nb,dF,Cz,zy,tV,mS,IG,gF,pz,UQ,OQ,EQ,jc,bW,y$,cl,nz,fz,Hl,vl,DI,Sc,RG,ZI,rF,$5,Xs,qb,uW,Q$,Lz,Ty,sQ,Fs,JV,AV,Y5,iW,Pl,oG,GB,BV,yoV,af,Y,VI,Mb,xf,hs,eQ,nk_,wa,HAV,WV,vkA,lE,DTB,Nf,KF,da,CF, zB,mD,RwY,ZAc,ro_,$TK,cV,nF,Ee,fF,q1B,uib,QAB,LU_,S1X,Tz_,ts,sAH,FUb,vV,ra,Di,pF,JoH,If,HV,SQ,$f,Y1B,Ue,Oe,Zi,Rf,iAA,XQ,qf,uE,QI,PYB,LF,TB,se,FQ,Js,okB,MG9,BIb,aGH,iE,PV,of,Mf,WOX,KOz,kn_,NIb,Bj,CeB,zQ9,Wj,tTA,wJ,Kf,lh,ku,Nu,dJ,msz,g9g,prB,IGA,Us9,Orx,IE,gJ,Uf,Ef,jw,bh,E9K,y1,jx9,cj,nf,pf,vj,DR,Sw,RE,brX,Hj,cUK,ZR,n9A,fG9,rJ,Hrb,$u,X0,v9B,Dsb,qu,SXA,RQB,uh,Zr9,rUx,$sy,Xry,Q1,Lf,qX9,uxy,TL,sf,F0,QxX,Jm,Am,Yu,ih,LOB,Pj,oE,TIc,Mu,sx_,G4,FOV,JUX,AUB,YXX,irB,PeX,BX,o9b,MTx,G7B,ap,BvV,VH,a$Y,x2,VuK,hX, xR9,hzb,eW,k2,ezA,Ny,de,C1,z4,WJ9,tX,m2,Ip,wm_,KJx,p1,UB,k7_,OB,NvH,dRb,l$B,Cyz,zzg,tuH,jW,mR_,b5,yH,cX,n1,I$A,f1,HX,Dh,gN_,SW,Rp,pmc,re,qy,$2,T4,sB,URz,Fa,OYb,AX,Y2,i5,ENx,op,jcg,G2,BZ,ar,QH,VF,xb,hj,bY_,eg,WZ,wZ,yn_,Ke,lV,kb,NZ,dZ,z2,tj,mq,Ir,cnB,nNB,f$_,HYx,Jj,gZ,Aj,Yb,vNV,DRz,S5B,iV,PZ,or,RzA,ZYy,U4,rnA,$Rg,MZ,XmV,Gf,BN,VQ,x_,h5,e7,WN,Kn,l3,NN,dW,Cn,zf,k_,QcK,LJX,mI,IF,gW,Tvx,UM,FJA,OM,EM,Jn9,j7,b3,yQ,nn,Anb,cN,fn,HN,vN,Y5z,RF,Pyy,oNY,Muy,Zo,rW,GGx,B59,aXy,$_,xOg,pn,VIb,hnB,XE,eng,qN,WPy,u3,w4_, KPA,lX_,kGc,N5y,QQ,C1z,dOb,Ln,FE,znV,J5,tIV,A5,mOV,IXH,Y_,gry,p4g,UOg,ORB,i3,Erg,PN,bRA,MN,Gm,clb,ylg,nry,fXB,HR_,aV,VK,x8,vr9,DOY,S8Y,Rng,ZRx,rlB,$Oz,X4z,q8y,u_V,ee,Wv,Qvg,LPz,wS,Kq,T5b,lj,k8,dS,svB,Cq,zm,tP,FPz,mY,Jly,IV,Alz,gS,Y8B,iRz,pq,P1x,or_,MIx,Uw,Ow,Ew,je,bj,GiX,BHc,yK,cv,nq,aZx,fq,Hv,vv,Dl,Se,VDX,xvB,RV,Zl,hLz,rS,$8,XZ,qa,GnA,eLc,WNB,uj,w7_,KNV,lZg,QK,Lq,Tm,FZ,JP,AP,Y8,ij,Pv,oV,Ma,kiA,NHy,eh,Wf,dvY,wm,zE,lz,I9,gyH,j3_,p7B,bHg,crc,nyA,yrc,fZK,HHK,vyX,$E,RLV,rrz,X79,qjc,u9B,uz,Q7,LNy,THH, ArK,L_,Yjz,s3V,TE,sm,FK,J4,PXA,GHV,oyc,V9g,l7_,Kib,xKH,kH_,YE,eZV,hZ_,Cog,mKX,t9c,UKx,I7B,iz,Pf,yWX,Gb,cWb,RZc,Sd_,DKb,vvg,f7x,$KB,rW9,Hpg,LiB,Q4_,TC_,h1,JWY,s4V,Fib,nvB,AWc,YdA,Bk,VA,qdy,XSc,uuK,ip_,ak,ZpV,ovV,GyV,aIz,xbb,WSy,wlX,lIK,kyB,db9,NFB,IIK,zfg,CWg,g5c,Ozg,E5B,jGz,bzV,t1,ZHK,n5b,yVV,gY,v5Y,Uo,SQX,Rfy,Dbb,Oo,ZzY,Eo,jz,Cf,b6,SjB,yA,ck,nD,rVA,$bz,fD,XlA,qQb,us9,Hk,vk,Dr,Sz,Rk,Zr,rY,$G,Xy,QGz,LSH,qc,TF_,u6,sM,QA,LD,FSB,sGg,Tb,JVA,AVK,so,Fy,YQb,J1,iz9,PWH,$vH,Hzg,o5A,A1,zL,Yf,ez,Mcy,GBK,i6,bpX, o9,BaY,mg,Ik,wY,Wk,A4,l6,hfy,KSH,KD,OpY,plY,aiX,NCV,Wiz,Pk,fIV,q0,xf9,VQz,iHg,efg,huA,Ub9,CD,Evy,j4z,zZb,VcH,BFV,a7V,MDb,JrA,FNx,Q3H,Poc,wSB,tcg,gvA,pS9,Nc,dY,kG,mbX,M9K,WDy,euB,ok,Mc,Ga,Bp,aM,h2,w2,Kh,lD,kA,d2,Ch,wVz,VC,xA,Nz,liz,KDH,za,kBc,NaK,mT,dfB,CEX,IM,g2,ph,U0,O0,E0,jk,bD,IiK,cp,yC,gfz,tQg,mf9,pVX,nh,fh,Ufz,OFy,Hp,EfA,en,bFb,jfA,cs_,fix,HFz,nfx,vfV,RuV,r2,$A,ZFV,rsA,XX,qz,$fg,XVH,qeY,uQc,QC,Ta,s0,LDz,Tax,Jsb,Yeg,iFB,AsB,A2,iD,YA,PEV,of9,FX,MQA,GLV,BJV,aR9,J2,e8A,WbX,wjX,h8X,xuY,VwX,KbA,lRy, sfB,kLy,FDK,NJg,dux,muy,ChH,z8B,twX,pjz,IRH,guy,Uuc,OfV,oM,bfx,EuV,ymY,jEV,cmK,nuH,fRB,Hfx,vuX,Duc,Sfb,R8y,ZfA,rmX,$uc,Xjx,Mz,u0V,QEA,LbA,qf9,TJK,sEz,AmV,BU,xh,ea,Yfg,WU,wf,KT,Mwc,Be9,G49,VWx,k4B,mZ,kh,ahB,ouB,Phb,ify,tq,NF,zO,Oi,Ei,C5_,bH,yy,Ui,Ih9,zMB,tWA,g2b,cU,nT,UyK,HU,vU,D_,Sa,R1,Z_,rf,O1g,E2B,$h,X$,uH,b1K,yXX,qF,Qy,fhz,H1y,LT,v2y,F$,Dyg,Jq,Yh,SBB,Aq,iH,RMK,o1,rXy,$y9,Gc,Bs,eE,qBg,VU,Ws,KE,uaB,kp,hB,wV,QpB,NC,L2X,dV,TeK,a7,xp,XXc,lM,CE,spB,F2z,zc,JX9,tB,mf,I7,gV,AXx,UY,pE,OY,EY,YBY,i1g,jE,bM, yU,cs,nE,P5x,fE,Hs,o2b,MWA,vs,Du,SE,BZc,G2H,R7,aOH,VgY,xZb,Zu,h7B,e7K,Wqx,wZy,Kq_,rV,$p,X3,qC,lOX,k2A,QU,NZg,LE,Tc,dZH,CVz,sY,z7B,tgc,pZA,UZy,mZK,IOA,gbB,JB,AB,Yp,iM,OeY,EbB,Ps,jrB,yjb,be_,BJ,Gj,nbx,fOB,HeB,vbg,aW,DZy,xD,hA,S4y,ZeA,rjb,WJ,kD,uvX,K2B,df,Lqy,TZb,srB,FqX,JjB,lH,wX,AjX,Cw,zj,PVA,obx,MgX,tA,V79,GfB,BWb,hqc,eqH,mw,WIX,xNV,wNB,IW,gX,pw,KIH,lob,UT,OT,kfA,ET,NWc,j2,Np,nw,dNc,lh_,xyy,fw,HJ,DE,S2,RW,ZE,rX,vJ,qp,zqA,Lw,t79,mN_,IoK,g_c,pNV,Tj,OnV,sT,jFX,FB,y5V,c5z,bnB,E_B,n_b,fog,Hn_,PJ,v_H,DNH, RqB,oW,dyY,GQ,r5x,XNg,I1,qMX,uEA,a$,LIy,CT,QFA,hMY,W2A,wXX,ZnY,Vt,xF,h3,TWB,sFX,eN,FIH,wG,KI,l0,kF,Nq,J5K,dG,CI,A5x,YMx,zQ,t3,mG,I$,gG,pI,P3H,inA,Ub,o_c,Gmb,Ob,BSH,M7V,Qt,qq,LI,sb,F6,YD,alx,KYx,bE,u0,i0,daV,zDz,fI,Gk,nI,B_,xi,X6,hC,pvY,et,W_,Uac,Oqx,E8K,jVH,wt,bqB,yPb,K$,cPK,Da_,v8z,n8B,Hqc,flb,ll,Swc,ki,RDb,Zq9,$a_,XvX,qwV,sVz,tC,m5,APB,I0,gt,YwY,o8x,MeB,GEB,Bmb,p$,aUX,x0y,hg9,DD,Czz,Ky_,lU_,thX,St,m0X,gEA,IUA,pfy,ZD,qk,U0z,R0,ul,Qm,O__,j9y,c4B,FR,P_,aS,hQ,uKg,Q9K,K9,wB,NJ,dB,Lyg,Fyc,s9y,J4_,zC, C9,A4x,i_K,Pz9,Mhy,IS,oEg,Gbg,BYY,p9,UN,Vz9,sy,mB,jO,D0_,EEz,r4B,n9,kX,Ymy,Zw,V3,$X,XV,qJ,tzV,zTb,xX,Q3,L9,IrK,TC,sN,gG_,eO,iv,Tm_,MJ,wkV,lv,pkc,fUK,nEA,b_y,GA,aJ,HDc,fry,DcH,So9,eX,ww,Kb,WE,kg,Nd,RTc,dw,r1_,Cb,XkK,mo,$cx,IJ,gw,LgA,pb,FgK,J1z,Ec,A1H,iD9,Zy,$g,Xq,QM,P69,Lb,TA,AK,Yg,iq,PE,oGA,oJ,Md,ak_,Gq,BB,VkA,xz_,ag,hGA,eGx,WTc,wpH,V8,x3,KTY,kag,WB,wR,k3,NS,N29,dR,CP,zq,tY,m1,dzg,CD_,Ig,zGz,tkH,gR,IkB,mzK,gAY,pP,Uzx,pp9,UO,Oh_,OO,EO,EAy,bhH,y2K,jj,bp,y8,c2B,cB,fkA,fP,HhA,vAb,nP,HB,vB,De,ZhV,$zB, DzH,r2x,Xpc,S0A,RGB,q0K,uXK,Ze,QMB,T2_,J2A,Y0B,A2_,Tq,LP,JY,PDY,AY,Y3,ip,MkX,PB,GOK,oAV,og,Vax,MS,GS,xFx,BT,hhK,wfB,d0K,WZX,ehY,KZA,wUX,l_z,Vr,kOY,Nfg,h9,zhg,eZ,WT,w6,mF_,pUb,kY,Nj,d6,OTK,UFc,KL,EhX,j1g,bTA,cqx,CL,rqz,Io,g6,LZK,$3,s1_,FZH,Jqz,AqH,Yib,UG,iTx,OG,EG,jZ,PHb,cT,ohK,MaA,nL,fL,Gcy,BVB,auB,VEB,xCx,HT,yr,h0z,vT,Wf9,wsg,KfX,DT,luH,kcc,NVH,dCy,CMx,z0Y,tEx,mCY,Iuy,gpA,SZ,UCV,Ro,OE_,r6,j7b,qj,ps_,ZT,uw,Qr,LL,TS,sG,F1,bEH,J9,yBb,YY,vpb,R0Y,ZEH,rB_,$Cg,oo,XsY,SYA,HEb,qY9,iw,u3x,Lfx,A9,PT,npB,fuB, Mj,TVc,s7_,DCc,cBY,Ffy,B6,JBV,aj,Va,ABK,xM,PMb,YY_,iEy,hT,opB,eS,W6,w0,Ku,MEA,GjH,BXV,lU,V2x,xpA,kM,hK_,NL,d0,eKX,WwH,wJx,KwA,lEK,kjX,t2c,dpb,sMB,z6,IEX,gDx,CB9,zKK,NXc,Ij,jW9,m0,tT,mpb,yAH,EDb,Ow_,Upz,pJK,pu,cAB,rR,UC,OC,EC,nDb,jS,fE9,bU,HwK,Fo,vDH,ya,qS,Q8,LTK,fu,v6,RKA,ZwK,DK,Rj,H6,nu,r0,c6,DpK,ST_,$M,rAK,$px,X1,EpX,Xo,XW,XJg,SS,qT9,uBg,QWX,Lwz,qL,uU,Qa,sWK,FwB,JAA,AA9,YTB,iw9,Q7B,T6,sC,FW,Lu,oDK,BfB,a_b,JT,M29,GQK,BGX,aB9,AT,VNz,YM,xqg,eb_,iU,WGg,wo_,oj,KGV,P6,V6,NGA,kQA,tNb,C0x,mqB,IBY,dqV,zb_, lB_,gFH,xJ,poY,EFK,Uqg,OIb,ed,e0y,j$x,bIB,y3_,c3c,nF9,WI,fBB,wO,HI9,KS,lb,vFX,kJ,Dqy,SbH,Ng,Rbx,ZIz,r3z,$qB,dO,ghz,CS,u69,Dg,qby,Q$B,LGH,I_A,lw,TGc,s$B,RD,oFz,P0V,qg,MNY,iIV,aDB,ub,VtY,xkV,W5H,w_X,lDx,eEY,kkA,NtX,dkV,ClH,zEK,mkc,IDc,giV,ttA,LS,Sd,Uk_,hE9,O$Y,K5B,To,j0x,p__,Q6,b$y,yCc,fDA,Sy_,H$c,REg,Dkz,Z$g,cC9,sn,rC9,niV,YJ,uR_,L59,Q09,Ttg,s0_,F5g,qyb,JCc,ACB,FS,YyY,i$9,PlK,oix,MtH,aw9,BBV,GCB,PI,VO_,hi_,eiV,WBb,wFz,Gh,BQ,$Y,KBX,lwz,kCx,Cvx,dJB,NBc,ziy,mJK,Iwx,tOz,AG,ML,pFg,UJY,O9b,fwb,b9B,yQH,cQc, H9y,DJA,bwy,oD,jSz,EXc,vXb,sO,nXy,Cu,up,vi_,$Jg,rQB,XFV,qNz,uV_,QSx,xJK,aD,Go,RiB,LBB,Z99,TBx,sSA,hbb,FBB,X_9,$kK,SNx,BI,xQ,hp,AQg,ex,YNz,i9x,PvX,oXc,MOY,Bwy,ayz,ed9,VXB,hdH,Woc,wd,kA_,KoB,lyB,Cqc,zdB,tXB,Ou_,EMX,WQ,jjx,dd9,wEX,KW,bub,xdc,yTB,lS,nMA,fKY,HuK,cTB,kQ,SCB,DLK,rTb,ZuV,RjB,$Ly,X6X,NP,qC_,uW_,L0g,T0B,Qjz,sj9,iuK,JTx,ATz,YCA,PUg,oMc,MSX,BO_,GoX,agB,VdV,xgz,ecb,W6V,K6c,wIH,lgK,hcK,ko_,dgA,CbV,tdb,IgH,zcX,zh,gJH,pIB,NOB,UgB,mgc,tp,OSA,EJX,jDB,bS9,yGy,cGX,nJg,HSy,Dgy,Snb,Rcg,ZSK,rGB,Ia,$gy, gd,qng,uSV,L6X,EL,sDg,F6c,JGx,AGc,iSg,YnX,Mdb,GhY,jx,yn,PbB,oJB,BdV,nW,VxK,anY,xPB,hp9,epz,KRy,WRx,Nd9,fW,wQ_,dPx,HQ,mPB,Dn,Sx,Iny,vQ,gQA,Ra,OWV,UPz,zpg,txb,EQX,jaH,bWz,CSb,ypK,Zn,cpV,pQb,TOA,cQ,fnb,$Q,HWV,vQy,DPH,SLb,RpB,ZW9,rpV,$P_,XQx,Xp,qLA,upB,LRB,Tdb,sag,Qax,FRY,JpB,Apb,YLb,iW9,PSB,uS,uMz,oQB,Mx9,Qn,G8c,BMz,Th,xAg,h5b,sL,W4B,ww9,e5y,VRb,Fp,LW,aYx,YQ,Ap,K4g,iS,Jp,dAc,tRK,IYg,gdV,UAc,k8Y,mA9,OOV,NMB,Edg,jiB,Bw,PQ,y6z,bOy,MP,fYc,HO_,z5B,C2H,ndX,vdK,pwy,lYc,ai,V9,xd,DAH,h6,XwB,ZOH,qk_,r6A,R5b,uYx, SkV,si_,QiB,eR,F4K,A6b,iOH,P2V,odz,BoV,l2,aMB,MRV,G8,hkB,ekV,z8,Eiz,Ww,WMz,w$K,lMB,KMA,kJY,xnb,NA,Noy,dn9,Cdb,tAy,zkB,gXB,mnc,kd,IMB,p$B,gzX,Ovb,Unc,Yk9,jsz,Ezg,dM,wM,bvb,m4,caV,nzK,fMH,HvH,vzx,t6,F0X,GJY,DnX,JQH,oa,Spb,Rkz,Zvc,raB,$nK,Ii,gM,qpy,uJ_,Qs9,X$B,LMA,pO,Jag,ssy,FMA,AaB,Uk,YpA,ivH,Pdz,Ok,ozX,GxV,Bq_,aVX,Ek,MAX,jR,b2,V1B,xmB,nO,y9,cw,hH9,fO,eHc,W_y,wgX,lVA,K_B,ZY,Nqy,dmc,kxc,CiK,rM,zHg,$d,t1B,XY,mmB,IVA,OMb,Umx,bM_,g7x,E7y,qA,pgy,j_B,yeg,ceK,n79,fVX,Q9,HMV,sk,LO,v7B,FY,J6,SFH,Yd,i2,RHg,A6, ZMb,Pw,$mH,re9,MA,GJ,B$,u4K,Xgc,qFY,as,Q_H,F_B,Tqz,L_Y,s_B,VY,AeV,o7c,M1K,xz,G19,B7K,YFB,iMx,x3K,hNV,eNV,WW_,wtK,KWB,W$,d3b,wo,k1g,N79,m3A,eA,Kv,ld,ltK,CgV,ItY,kz,Nn,gLz,ptB,Cv,U3V,zJ,OkB,ELc,jHg,bkg,y__,c_z,nLg,vL9,ftz,D3H,SPX,ZkK,r_b,yY,LWB,XtB,qPY,T7K,sHc,QHc,$3x,FWz,A__,J_B,YPX,BkA,nv,xEA,Wjz,erH,hrB,Myx,GXB,ikz,Pgx,asz,fv,H$,KjY,nb,qoB,lsV,DM,Rs,Nk9,kXz,VPB,CFz,zrc,tPB,ZM,mEA,Lv,gWV,pPb,UEA,EWz,OlX,jmc,TJ,sp,blz,nWB,fsA,Aa,c7_,Hly,vWH,y7g,Yz,os,DEx,SHY,P$,Rrg,Zlg,r7c,$EV,qHH,XPg,LjB,TkA,u5V, Fjb,J7Y,QmX,Bg,a_,A7x,ilg,VO,YHY,PFc,MPA,oWB,GlV,x7,BTV,aW_,V0B,he,e1,Wg,xxb,h9B,e9V,w3Y,WQH,KQB,lWV,klK,NTV,dxY,z9c,KM,wq,li,t09,mxb,CIz,O7H,EwK,jIb,cNK,yNB,b7Y,nw_,fWX,k7,Nm,H7b,vwX,Dx9,SIz,Z7B,rNx,CM,$xc,dq,te,R9V,X39,qIA,uLB,QI9,LQB,I_,TT_,sIX,ANy,gq,YIH,JNx,pM,UF,i7y,PIy,M0H,BsV,owb,GwB,EF,a5_,xGb,hSH,WzK,wAY,j1,bi,Kzy,V4Y,NsK,kwA,l5B,yO,cg,C$A,dGV,nM,fM,zSB,Hg,t4X,mGz,I5B,vg,gTy,DV,pAV,S1,R_,ETb,jBg,bZA,cZ9,nTA,f5x,yZc,vTz,HZc,DG9,ZZ_,$7,$GH,rZc,S2K,RSy,XAX,q2y,X4,qm,ubg,QB_,LzY,TsV,sBx,Fz_, AZz,Y29,VYx,oTb,M49,iZx,hFb,F4,Ae,KVb,Pg,o_,lxb,eFB,sF,Bt,G1,Y7,NcX,aH,Csy,tYg,zFg,Vl,ii,Tx,dQz,Mm,WV_,kZb,IxB,ui,xL,gs9,p9x,Je,w9b,h_,ey,UQY,Wt,w7,Kk,Ojg,Esz,bj_,yyx,jex,lg,nsK,cyz,kL,fxc,N3,d7,Hjg,vsb,DQX,S_z,RFX,Zjc,$Qx,ryy,z1,Ck,X9B,urb,q_B,t_,mW,QeY,Tcg,seH,IH,LVc,FVB,JyY,Ayz,Y__,ijy,PsX,osg,pk,UP,GtY,MYX,Bhc,OP,EP,aL9,VCB,h6x,xBc,e6Y,bg,Wm9,weB,ct,KmH,lLc,ktB,NhH,dBc,Ctb,tCc,mBK,ILY,z6A,gqz,peB,UBK,O3X,Eqc,jT9,b3X,yH_,Dt,cHb,nqX,fLX,DBY,rHg,R6x,vqV,Zt,SRV,H3y,Z3g,r7,Xeb,$Bg,$L,qR_,uHX,QTc,dd, JH_,AH9,YRA,ug,i3z,Lk,ib,Pt9,T1,oqH,Ql,MCK,GrH,eVB,YL,ig,oH,M3,wcy,WCH,Bub,GX,KCH,l2b,Nuy,BP,dXX,CJg,zVY,Pt,mXK,tmX,am,VV,xXy,J_,I2z,g6B,pc_,UXz,a2B,VmV,A_,O5V,E6g,ju9,b5V,f2b,H5x,DXB,n6c,Z5y,Sj,Rg,JG,XcX,qxc,$XH,uUY,v69,rvc,yv9,Qub,RV9,LCA,SxY,ZK,TXX,c6z,xW,hG,cvc,suy,Yx_,eP,i5c,PJX,Jvz,wk,o6A,Mmy,TuH,GWK,Avb,BnB,Kl,WP,a6A,xiX,ViK,h7,ePY,NE,Wxc,lF,dk,kW,Cl,VA9,wyc,kWH,l6y,diB,CZc,Nng,t7,zX,ti9,miH,I6z,cSB,EPy,j8B,UiA,HCB,pyV,gk,SSc,vPb,RPg,ZCA,Im,UH,OH,qSA,XyB,$ix,jP,ySc,nl,Q8x,cP,EH,TnY,JS_,ASx, f6c,s8_,vP,YSK,bCY,uly,bF,iC_,pl,PZc,oPb,MiY,Rm,Zs,LxY,Guz,B9K,rk,$W,a3A,yV,Dix,V89,xwB,hB9,FxH,eBV,fl,WF9,HP,tK,w8y,l3B,X5,qE,kux,N9y,dwV,SP,Ds,CNx,KxB,zBV,t8c,mw_,I3_,gU_,uF,QV,OGx,bGy,czx,UwK,ZGz,rzA,$wb,X8B,q6x,uFB,QOx,T9A,LFY,Ll,TX,sH,sOX,FFY,Jzy,Tf,Az9,F5,Y6B,J7,A7,EB,YW,As,iGb,pD,cV_,PNB,M0,oUb,Do,S7,YG,M8A,GPX,iF,BDb,aSX,PP,xrV,hoK,om,Gl,B3,eoH,KAY,lSg,aI,kP_,WAK,w59,ND9,drX,C7X,zoB,tFx,Vq,ISB,yUK,Of,oF,gcV,p5A,Bv,mrb,ff,UrA,OQy,EcX,xw,t5,bQY,ybA,hN,e0,cbz,W3,ncb,ME,fSH,HQA,iYz,wT,K7,vc9, lI,kw,Drz,Nx,SaX,dT,C7,Ro9,ZQV,jvX,zl,rbY,X5c,$rX,tN,qaB,mQ,II,uAV,Qd9,LAz,TDH,sdg,FAA,Jbx,YaB,p7,Ab9,iQB,P7A,ocB,MFx,Vr9,GgX,B8Y,aFK,hv_,Ws9,w0K,KsK,evV,UI,lFb,kgK,N8z,dDK,CnY,EI,zvB,j0,bI,yq,mDc,IFA,p0K,UDB,O8X,E1b,b8K,jNb,yFz,c3,n7,fFY,cFz,n1z,f7,H8_,v19,H3,v3,DDz,DW,SD9,S0,Rvz,RI,ZW,Z8H,rT,$w,rFV,$DH,XL,qx,X0V,uI,qD9,uzx,sI,QNy,Lsc,T8c,JFz,Fsc,FL,AFz,YDz,i8B,Dvg,sNz,o1b,MrY,B_2,GKV,lx;ay=function(G){return function(){return GKV[G].apply(this,arguments)}}; g.Vb=function(G,B){return GKV[G]=B}; B_y=function(G){var B=0;return function(){return B=this.length))return this[G]}; $B=function(G){return G?G:r_}; zXc=function(G,B,a){G instanceof String&&(G=String(G));for(var V=G.length-1;V>=0;V--){var x=G[V];if(B.call(a,x,V,G))return{nP:V,KT:x}}return{nP:-1,KT:void 0}}; Xc=function(G){return G?G:function(B,a){return zXc(this,B,a).nP}}; g.Qb=function(G,B,a){G=G.split(".");a=a||g.qY;for(var V;G.length&&(V=G.shift());)G.length||B===void 0?a[V]&&a[V]!==Object.prototype[V]?a=a[V]:a=a[V]={}:a[V]=B}; TK=function(G,B){var a=g.LV("CLOSURE_FLAGS");G=a&&a[G];return G!=null?G:B}; g.LV=function(G,B){G=G.split(".");B=B||g.qY;for(var a=0;a2){var V=Array.prototype.slice.call(arguments,2);return function(){var x=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(x,V);return G.apply(B,x)}}return function(){return G.apply(B,arguments)}}; g.oy=function(G,B,a){g.oy=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?mYA:IHg;return g.oy.apply(null,arguments)}; g.MY=function(G,B){var a=Array.prototype.slice.call(arguments,1);return function(){var V=a.slice();V.push.apply(V,arguments);return G.apply(this,V)}}; g.G$=function(){return Date.now()}; gB_=function(G){return G}; g.BW=function(G,B){function a(){} a.prototype=B.prototype;G.iU=B.prototype;G.prototype=new a;G.prototype.constructor=G;G.Fi=function(V,x,h){for(var e=Array(arguments.length-2),w=2;wB&&a.push(ef(V,1))}); return a}; g.WW=function(G){G&&typeof G.dispose=="function"&&G.dispose()}; g.wl=function(G){for(var B=0,a=arguments.length;B>6|192;else{if(h>=55296&&h<=57343){if(h<=56319&&x=56320&&e<=57343){h=(h-55296)*1024+ e-56320+65536;V[a++]=h>>18|240;V[a++]=h>>12&63|128;V[a++]=h>>6&63|128;V[a++]=h&63|128;continue}else x--}if(B)throw Error("Found an unpaired surrogate");h=65533}V[a++]=h>>12|224;V[a++]=h>>6&63|128}V[a++]=h&63|128}}G=a===V.length?V:V.subarray(0,a)}return G}; I2=function(G){g.qY.setTimeout(function(){throw G;},0)}; qAV=function(G){return Array.prototype.map.call(G,function(B){B=B.toString(16);return B.length>1?B:"0"+B}).join("")}; ucy=function(G){for(var B=[],a=0;a>6|192:((x&64512)==55296&&V+1>18|240,B[a++]=x>>12&63|128):B[a++]=x>>12|224,B[a++]=x>>6&63|128),B[a++]=x&63|128)}return B}; ps=function(G,B){return G.lastIndexOf(B,0)==0}; QyB=function(G,B){var a=G.length-B.length;return a>=0&&G.indexOf(B,a)==a}; g.O3=function(G){return/^[\s\xa0]*$/.test(G)}; g.E3=function(G,B){return G.indexOf(B)!=-1}; jf=function(G,B){return g.E3(G.toLowerCase(),B.toLowerCase())}; g.cW=function(G,B){var a=0;G=ba(String(G)).split(".");B=ba(String(B)).split(".");for(var V=Math.max(G.length,B.length),x=0;a==0&&xB?1:0}; g.ns=function(){var G=g.qY.navigator;return G&&(G=G.userAgent)?G:""}; D8=function(G){return fs||HW?vW?vW.brands.some(function(B){return(B=B.brand)&&g.E3(B,G)}):!1:!1}; Sf=function(G){return g.E3(g.ns(),G)}; R2=function(){return fs||HW?!!vW&&vW.brands.length>0:!1}; Z8=function(){return R2()?!1:Sf("Opera")}; L9x=function(){return R2()?!1:Sf("Trident")||Sf("MSIE")}; T_y=function(){return R2()?D8("Microsoft Edge"):Sf("Edg/")}; rl=function(){return Sf("Firefox")||Sf("FxiOS")}; q9=function(){return Sf("Safari")&&!($C()||(R2()?0:Sf("Coast"))||Z8()||(R2()?0:Sf("Edge"))||T_y()||(R2()?D8("Opera"):Sf("OPR"))||rl()||Sf("Silk")||Sf("Android"))}; $C=function(){return R2()?D8("Chromium"):(Sf("Chrome")||Sf("CriOS"))&&!(R2()?0:Sf("Edge"))||Sf("Silk")}; sy_=function(){return Sf("Android")&&!($C()||rl()||Z8()||Sf("Silk"))}; F9B=function(G){var B={};G.forEach(function(a){B[a[0]]=a[1]}); return function(a){return B[a.find(function(V){return V in B})]||""}}; JgA=function(G){var B=g.ns();if(G==="Internet Explorer"){if(L9x())if((G=/rv: *([\d\.]*)/.exec(B))&&G[1])B=G[1];else{G="";var a=/MSIE +([\d\.]+)/.exec(B);if(a&&a[1])if(B=/Trident\/(\d.\d)/.exec(B),a[1]=="7.0")if(B&&B[1])switch(B[1]){case "4.0":G="8.0";break;case "5.0":G="9.0";break;case "6.0":G="10.0";break;case "7.0":G="11.0"}else G="7.0";else G=a[1];B=G}else B="";return B}var V=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");a=[];for(var x;x=V.exec(B);)a.push([x[1],x[2],x[3]||void 0]); B=F9B(a);switch(G){case "Opera":if(Z8())return B(["Version","Opera"]);if(R2()?D8("Opera"):Sf("OPR"))return B(["OPR"]);break;case "Microsoft Edge":if(R2()?0:Sf("Edge"))return B(["Edge"]);if(T_y())return B(["Edg"]);break;case "Chromium":if($C())return B(["Chrome","CriOS","HeadlessChrome"])}return G==="Firefox"&&rl()||G==="Safari"&&q9()||G==="Android Browser"&&sy_()||G==="Silk"&&Sf("Silk")?(B=a[2])&&B[1]||"":""}; Agy=function(G){if(R2()&&G!=="Silk"){var B=vW.brands.find(function(a){return a.brand===G}); if(!B||!B.version)return NaN;B=B.version.split(".")}else{B=JgA(G);if(B==="")return NaN;B=B.split(".")}return B.length===0?NaN:Number(B[0])}; ua=function(){return fs||HW?!!vW&&!!vW.platform:!1}; YAH=function(){return ua()?vW.platform==="Android":Sf("Android")}; Qk=function(){return Sf("iPhone")&&!Sf("iPod")&&!Sf("iPad")}; Ls=function(){return Qk()||Sf("iPad")||Sf("iPod")}; T$=function(){return ua()?vW.platform==="macOS":Sf("Macintosh")}; iVB=function(){return ua()?vW.platform==="Windows":Sf("Windows")}; g.s3=function(G){return G[G.length-1]}; Px9=function(G,B){var a=G.length,V=typeof G==="string"?G.split(""):G;for(--a;a>=0;--a)a in V&&B.call(void 0,V[a],a,G)}; g.JJ=function(G,B,a){B=Fh(G,B,a);return B<0?null:typeof G==="string"?G.charAt(B):G[B]}; Fh=function(G,B,a){for(var V=G.length,x=typeof G==="string"?G.split(""):G,h=0;h=0;V--)if(V in x&&B.call(a,x[V],V,G))return V;return-1}; g.YC=function(G,B){return oB_(G,B)>=0}; MBA=function(G){if(!Array.isArray(G))for(var B=G.length-1;B>=0;B--)delete G[B];G.length=0}; g.PW=function(G,B){B=oB_(G,B);var a;(a=B>=0)&&g.ia(G,B);return a}; g.ia=function(G,B){return Array.prototype.splice.call(G,B,1).length==1}; g.o2=function(G,B){B=Fh(G,B);B>=0&&g.ia(G,B)}; G$b=function(G,B){var a=0;Px9(G,function(V,x){B.call(void 0,V,x,G)&&g.ia(G,x)&&a++})}; g.M9=function(G){return Array.prototype.concat.apply([],arguments)}; g.Gv=function(G){var B=G.length;if(B>0){for(var a=Array(B),V=0;V>>1),K=void 0;a?K=B.call(void 0,G[w],w,G):K=B(V,G[w]);K>0?x=w+1:(h=w,e=!K)}return e?x:-x-1}; g.wK=function(G,B){G.sort(B||hO)}; Vfg=function(G,B){var a=hO;g.wK(G,function(V,x){return a(B(V),B(x))})}; g.Kd=function(G,B,a){if(!g.Jg(G)||!g.Jg(B)||G.length!=B.length)return!1;var V=G.length;a=a||x9b;for(var x=0;xB?1:G=0})}; g.md=function(G,B){B===void 0&&(B=0);k$K();B=Nlc[B];for(var a=Array(Math.floor(G.length/3)),V=B[64]||"",x=0,h=0;x>2];e=B[(e&3)<<4|w>>4];w=B[(w&15)<<2|K>>6];K=B[K&63];a[h++]=""+l+e+w+K}l=0;K=V;switch(G.length-x){case 2:l=G[x+1],K=B[(l&15)<<2]||V;case 1:G=G[x],a[h]=""+B[G>>2]+B[(G&3)<<4|l>>4]+K+V}return a.join("")}; g.I5=function(G,B){if(d9V&&!B)G=g.qY.btoa(G);else{for(var a=[],V=0,x=0;x255&&(a[V++]=h&255,h>>=8);a[V++]=h}G=g.md(a,B)}return G}; zCA=function(G){var B=[];CaB(G,function(a){B.push(a)}); return B}; gK=function(G){var B=G.length,a=B*3/4;a%3?a=Math.floor(a):g.E3("=.",G[B-1])&&(a=g.E3("=.",G[B-2])?a-2:a-1);var V=new Uint8Array(a),x=0;CaB(G,function(h){V[x++]=h}); return x!==a?V.subarray(0,x):V}; CaB=function(G,B){function a(K){for(;V>4);e!=64&&(B(h<<4&240|e>>2),w!=64&&B(e<<6&192|w))}}; k$K=function(){if(!pd){pd={};for(var G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),B=["+/=","+/","-_=","-_.","-_"],a=0;a<5;a++){var V=G.concat(B[a].split(""));Nlc[a]=V;for(var x=0;x=5||(a[G]=B+1,G=Error(),bsV(G,"incident"),I2(G))}}; fd=function(G,B,a){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(a===void 0?0:a)&&Symbol.for&&G?Symbol.for(G):G!=null?Symbol(G):Symbol():B}; DC=function(G,B){HK||vK in G||cJz(G,nCA);G[vK]|=B}; S$=function(G,B){HK||vK in G||cJz(G,nCA);G[vK]=B}; R5=function(G,B){G[vK]&=~B}; ZC=function(){return typeof BigInt==="function"}; rK=function(G){return Array.prototype.slice.call(G)}; $V=function(G){return G!==null&&typeof G==="object"&&!Array.isArray(G)&&G.constructor===Object}; f8y=function(G,B){if(G!=null)if(typeof G==="string")G=G?new O7(G,E7):j$();else if(G.constructor!==O7)if(U7(G))G=G.length?new O7(new Uint8Array(G),E7):j$();else{if(!B)throw Error();G=void 0}return G}; XO=function(G){if(G&2)throw Error();}; Qj=function(G,B){if(typeof B!=="number"||B<0||B>=G.length)throw Error();}; Hsc=function(G){var B=gB_(Ld);return B?G[B]:void 0}; vC9=function(G,B,a){var V=B&512?0:-1,x=G.length;B=B&64?B&256:!!x&&$V(G[x-1]);for(var h=x+(B?-1:0),e=0;eB.length)return!1;if(G.lengthx)return!1;if(V>>0;AO=B;YV=(G-B)/4294967296>>>0}; MU=function(G){if(G<0){ik(0-G);var B=g.m(PK(AO,YV));G=B.next().value;B=B.next().value;AO=G>>>0;YV=B>>>0}else ik(G)}; Bq=function(G,B){var a=B*4294967296+(G>>>0);return Number.isSafeInteger(a)?a:GM(G,B)}; rJK=function(G,B){var a=B&2147483648;a&&(G=~G+1>>>0,B=~B>>>0,G==0&&(B=B+1>>>0));G=Bq(G,B);return typeof G==="number"?a?-G:G:a?"-"+G:G}; GM=function(G,B){B>>>=0;G>>>=0;if(B<=2097151)var a=""+(4294967296*B+G);else ZC()?a=""+(BigInt(B)<>>24|B<<8)&16777215,B=B>>16&65535,G=(G&16777215)+a*6777216+B*6710656,a+=B*8147497,B*=2,G>=1E7&&(a+=G/1E7>>>0,G%=1E7),a>=1E7&&(B+=a/1E7>>>0,a%=1E7),a=B+$9b(a)+$9b(G));return a}; $9b=function(G){G=String(G);return"0000000".slice(G.length)+G}; XWb=function(){var G=AO,B=YV;B&2147483648?ZC()?G=""+(BigInt(B|0)<>>0)):(B=g.m(PK(G,B)),G=B.next().value,B=B.next().value,G="-"+GM(G,B)):G=GM(G,B);return G}; aU=function(G){if(G.length<16)MU(Number(G));else if(ZC())G=BigInt(G),AO=Number(G&BigInt(4294967295))>>>0,YV=Number(G>>BigInt(32)&BigInt(4294967295));else{var B=+(G[0]==="-");YV=AO=0;for(var a=G.length,V=0+B,x=(a-B)%6+B;x<=a;V=x,x+=6)V=Number(G.slice(V,x)),YV*=1E6,AO=AO*1E6+V,AO>=4294967296&&(YV+=Math.trunc(AO/4294967296),YV>>>=0,AO>>>=0);B&&(B=g.m(PK(AO,YV)),G=B.next().value,B=B.next().value,AO=G,YV=B)}}; PK=function(G,B){B=~B;G?G=~G+1:B+=1;return[G,B]}; VW=function(G,B){throw Error(B===void 0?"unexpected value "+G+"!":B);}; xe=function(G){if(G!=null&&typeof G!=="number")throw Error("Value of float/double field must be a number, found "+typeof G+": "+G);return G}; q3z=function(G){return G.displayName||G.name||"unknown type name"}; hD=function(G){if(G!=null&&typeof G!=="boolean")throw Error("Expected boolean but got "+Fc(G)+": "+G);return G}; Wq=function(G){switch(typeof G){case "bigint":return!0;case "number":return e_(G);case "string":return uhc.test(G);default:return!1}}; Q2g=function(G){if(typeof G!=="number")throw cK("int32");if(!e_(G))throw cK("int32");return G|0}; w3=function(G){return G==null?G:Q2g(G)}; K2=function(G){if(G==null)return G;if(typeof G==="string"&&G)G=+G;else if(typeof G!=="number")return;return e_(G)?G|0:void 0}; lO=function(G){if(G==null)return G;if(typeof G==="string"&&G)G=+G;else if(typeof G!=="number")return;return e_(G)?G>>>0:void 0}; Tlg=function(G){var B=0;B=B===void 0?0:B;if(!Wq(G))throw cK("int64");var a=typeof G;switch(B){case 2048:switch(a){case "string":return ke(G);case "bigint":return String(N2(64,G));default:return C2(G)}case 4096:switch(a){case "string":return B=zM(Number(G)),tD(B)?G=FO(B):(B=G.indexOf("."),B!==-1&&(G=G.substring(0,B)),G=ZC()?FO(N2(64,BigInt(G))):FO(L7g(G))),G;case "bigint":return FO(N2(64,G));default:return tD(G)?FO(mt(G)):FO(C2(G))}case 0:switch(a){case "string":return ke(G);case "bigint":return FO(N2(64, G));default:return mt(G)}default:return VW(B,"Unknown format requested type for int64")}}; IU=function(G){return G==null?G:Tlg(G)}; s2A=function(G){if(G[0]==="-")return!1;var B=G.length;return B<20?!0:B===20&&Number(G.substring(0,6))<184467}; F7Y=function(G){var B=G.length;return G[0]==="-"?B<20?!0:B===20&&Number(G.substring(0,7))>-922337:B<19?!0:B===19&&Number(G.substring(0,6))<922337}; JJH=function(G){if(G<0){MU(G);var B=GM(AO,YV);G=Number(B);return tD(G)?G:B}B=String(G);if(s2A(B))return B;MU(G);return Bq(AO,YV)}; L7g=function(G){if(F7Y(G))return G;aU(G);return XWb()}; mt=function(G){Wq(G);G=zM(G);tD(G)||(MU(G),G=rJK(AO,YV));return G}; C2=function(G){Wq(G);G=zM(G);if(tD(G))G=String(G);else{var B=String(G);F7Y(B)?G=B:(MU(G),G=XWb())}return G}; ke=function(G){Wq(G);var B=zM(Number(G));if(tD(B))return String(B);B=G.indexOf(".");B!==-1&&(G=G.substring(0,B));return L7g(G)}; AJg=function(G){if(G==null)return G;if(typeof G==="bigint")return g3(G)?G=Number(G):(G=N2(64,G),G=g3(G)?Number(G):String(G)),G;if(Wq(G))return typeof G==="number"?mt(G):ke(G)}; Y3y=function(G){if(G==null)return G;var B=typeof G;if(B==="bigint")return String(N2(64,G));if(Wq(G)){if(B==="string")return ke(G);if(B==="number")return mt(G)}}; Pax=function(G){if(G==null)return G;var B=typeof G;if(B==="bigint")return String(isz(64,G));if(Wq(G)){if(B==="string")return Wq(G),B=zM(Number(G)),tD(B)&&B>=0?G=String(B):(B=G.indexOf("."),B!==-1&&(G=G.substring(0,B)),s2A(G)||(aU(G),G=GM(AO,YV))),G;if(B==="number")return Wq(G),G=zM(G),G>=0&&tD(G)?G:JJH(G)}}; oCB=function(G){if(G==null||typeof G=="string"||G instanceof O7)return G;if(U7(G))return U7(G)&&nd(p2),G}; MfY=function(G){if(typeof G!=="string")throw Error();return G}; UE=function(G){if(G!=null&&typeof G!=="string")throw Error();return G}; OE=function(G){return G==null||typeof G==="string"?G:void 0}; EE=function(G,B){if(!(G instanceof B))throw Error("Expected instanceof "+q3z(B)+" but got "+(G&&q3z(G.constructor)));return G}; GvB=function(G,B,a){if(G!=null&&typeof G==="object"&&G.Yd===j_)return G;if(Array.isArray(G)){var V=G[vK]|0,x=V;x===0&&(x|=a&32);x|=a&2;x!==V&&S$(G,x);return new B(G)}}; BKy=function(G){return G}; bO=function(G){return G}; h_x=function(G,B,a,V){return aCb(G,B,a,V,V$b,xUb)}; wKb=function(G,B,a,V){return aCb(G,B,a,V,e_A,Wdg)}; aCb=function(G,B,a,V,x,h){if(!a.length&&!V)return 1;for(var e=0,w=0,K=0,l=0,k=0,N=a.length-1;N>=0;N--){var d=a[N];V&&N===a.length-1&&d===V||(l++,d!=null&&K++)}if(V)for(var C in V)N=+C,isNaN(N)||(k+=KdB(N),w++,N>e&&(e=N));l=x(l,K)+h(w,e,k);C=K;N=w;d=e;for(var z=k,p=a.length-1;p>=0;p--){var O=a[p];if(!(O==null||V&&p===a.length-1&&O===V)){O=p-B;var b=x(O,C)+h(N,d,z);b=1024||(N--,C++,z-=c.length,e=x(V,C)+h(N,d,z),e1?G-1:0)}; e_A=function(G,B){return(G>1?G-1:0)+(G-B)*4}; xUb=function(G,B){return G==0?0:9*Math.max(1<<32-Math.clz32(G+G/2-1),4)<=B?G==0?0:G<4?100+(G-1)*16:G<6?148+(G-4)*16:G<12?244+(G-6)*16:G<22?436+(G-12)*19:G<44?820+(G-22)*17:52+32*G:40+4*B}; V$b=function(G){return 40+4*G}; KdB=function(G){return G>=100?G>=1E4?Math.ceil(Math.log10(1+G)):G<1E3?3:4:G<10?1:2}; lCB=function(G,B,a,V){if(Array.isArray(G)){var x=G[vK]|0;if(G.length===0&&x&1)return;if(V&&x&2)return G;var h;if(h=V&&a)h=x===0||!!(x&32)&&!(x&64||!(x&16));return h?(DC(G,34),x&4&&Object.freeze(G),G):yW(G,x,B,a!==void 0,V)}return B(G)}; yW=function(G,B,a,V,x){var h=V?!!(B&32):void 0;V=[];var e=G.length,w=!1;if(B&64){if(B&256){e--;var K=G[e];var l=e}else l=4294967295,K=void 0;if(!(x||B&512)){w=!0;var k;var N=((k=cq)!=null?k:bO)(K?l- -1:B>>14&1023||536870912,-1,G,K);l=N+-1}}else l=4294967295,B&1||(K=e&&G[e-1],$V(K)?(e--,l=e,N=0):K=void 0);k=void 0;for(var d=0;d=l){var z=void 0;((z=k)!=null?z:k={})[d- -1]=C}else V[d]=C}if(K)for(var p in K)e=K[p],e!=null&&(e=lCB(e,a,h,x))!=null&& (d=+p,d>14&1023||536870912:void 0;O=34;k!=null&&(O|=256);a!==void 0&&(O=O&-16760833|(a&1023)<<14);S$(V,B&577|O);(G=Hsc(G))&&(V[Ld]=rK(G))}return V}; NKx=function(G){switch(typeof G){case "number":return Number.isFinite(G)?G:""+G;case "bigint":return g3(G)?Number(G):""+G;case "boolean":return G?1:0;case "object":if(G.Yd===j_)return kvX(G);if(G instanceof O7){var B=G.j;return B==null?"":typeof B==="string"?B:G.j=m9x(B)}if(U7(G))return U7(G)&&nd(p2),m9x(G);return}return G}; n2=function(G,B){B&&(cq=B===bO||B!==BKy&&B!==h_x&&B!==wKb?bO:B);try{return kvX(G)}finally{cq=void 0}}; kvX=function(G){G=G.X5;return yW(G,G[vK]|0,NKx,void 0,!1)}; Ckx=function(G){switch(typeof G){case "boolean":return f2||(f2=[0,void 0,!0]);case "number":return G>0?void 0:G===0?dU_||(dU_=[0,void 0]):[-G,void 0];case "string":return[0,G];case "object":return G}}; DJ=function(G,B,a){G=Hq(G,B[0],B[1],a?1:2);B!==f2&&a&&DC(G,8192);return G}; Hq=function(G,B,a,V){if(G==null){var x=96;a?(G=[a],x|=512):G=[];B&&(x=x&-16760833|(B&1023)<<14)}else{if(!Array.isArray(G))throw Error("narr");x=G[vK]|0;8192&x||!(64&x)||2&x||z_V();if(x&1024)throw Error("farr");if(x&64)return G;V===1||V===2||(x|=64);if(a&&(x|=512,a!==G[0]))throw Error("mid");a:{a=G;var h=a.length;if(h){var e=h-1;V=a[e];if($V(V)){x|=256;B=x&512?0:-1;e-=B;if(e>=1024)throw Error("pvtlmt");for(var w in V)h=+w,h1024)throw Error("spvt");x=x&-16760833|(w&1023)<<14}}}S$(G,x);return G}; z_V=function(){nd(t$K)}; S_=function(G){if(typeof G!=="object"||G===null)return G;if(G.Yd===j_){var B=G.X5,a=B[vK]|0;return a&2?G:yW(B,a,S_,!0,!0)}if(G instanceof O7)return G;if(U7(G))return U7(G)&&nd(p2),new Uint8Array(G)}; RU=function(G){var B=G.X5;if(!((B[vK]|0)&2))return G;G=new G.constructor(yW(B,B[vK]|0,S_,!0,!0));R5(G.X5,2);return G}; r3=function(G,B){G=G.X5;return ZJ(G,G[vK]|0,B)}; ZJ=function(G,B,a){if(a===-1)return null;var V=a+(B&512?0:-1),x=G.length-1;if(V>=x&&B&256)return G[x][a];if(V<=x)return G[V]}; Xn=function(G,B,a){var V=G.X5,x=V[vK]|0;XO(x);$e(V,x,B,a);return G}; $e=function(G,B,a,V){var x=B&512?0:-1,h=a+x,e=G.length-1;if(h>=e&&B&256)return G[e][a]=V,B;if(h<=e)return G[h]=V,B;V!==void 0&&(e=B>>14&1023||536870912,a>=e?V!=null&&(h={},G[e+x]=(h[a]=V,h),B|=256,S$(G,B)):G[h]=V);return B}; sE=function(G,B,a,V,x){var h=G.X5;G=h[vK]|0;var e=2&G?1:V;x=!!x;V=q2(h,G,B);var w=V[vK]|0;if(!(4&w)){4&w&&(V=rK(V),w=uO(w,G),G=$e(h,G,B,V));for(var K=0,l=0;K "+G)}; g4=function(G){if(typeof G==="string")return{buffer:U99(G),Es:!1};if(Array.isArray(G))return{buffer:new Uint8Array(G),Es:!1};if(G.constructor===Uint8Array)return{buffer:G,Es:!1};if(G.constructor===ArrayBuffer)return{buffer:new Uint8Array(G),Es:!1};if(G.constructor===O7)return{buffer:bk(G)||new Uint8Array(0),Es:!0};if(G instanceof Uint8Array)return{buffer:new Uint8Array(G.buffer,G.byteOffset,G.byteLength),Es:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; j5Y=function(G,B){this.X=null;this.B=!1;this.j=this.C=this.G=0;this.init(G,void 0,void 0,B)}; Ol=function(G){var B=0,a=0,V=0,x=G.X,h=G.j;do{var e=x[h++];B|=(e&127)<32&&(a|=(e&127)>>4);for(V=3;V<32&&e&128;V+=7)e=x[h++],a|=(e&127)<>>0,a>>>0);throw I6();}; p0=function(G,B){G.j=B;if(B>G.C)throw EVK(G.C,B);}; El=function(G){var B=G.X,a=G.j,V=B[a++],x=V&127;if(V&128&&(V=B[a++],x|=(V&127)<<7,V&128&&(V=B[a++],x|=(V&127)<<14,V&128&&(V=B[a++],x|=(V&127)<<21,V&128&&(V=B[a++],x|=V<<28,V&128&&B[a++]&128&&B[a++]&128&&B[a++]&128&&B[a++]&128&&B[a++]&128)))))throw I6();p0(G,a);return x}; jo=function(G){var B=G.X,a=G.j,V=B[a+0],x=B[a+1],h=B[a+2];B=B[a+3];p0(G,G.j+4);return(V<<0|x<<8|h<<16|B<<24)>>>0}; bK=function(G){var B=jo(G);G=jo(G);return Bq(B,G)}; yS=function(G){var B=jo(G),a=jo(G);G=(a>>31)*2+1;var V=a>>>20&2047;B=4294967296*(a&1048575)+B;return V==2047?B?NaN:G*Infinity:V==0?G*4.9E-324*B:G*Math.pow(2,V-1075)*(B+4503599627370496)}; cY=function(G){for(var B=0,a=G.j,V=a+10,x=G.X;aG.C)throw EVK(B,G.C-a);G.j=V;return a}; cOA=function(G,B){if(B==0)return j$();var a=bdb(G,B);G.vQ&&G.B?a=G.X.subarray(a,a+B):(G=G.X,B=a+B,a=a===B?new Uint8Array(0):yOz?G.slice(a,B):new Uint8Array(G.subarray(a,B)));return a.length==0?j$():new O7(a,E7)}; f0=function(G,B){if(n0.length){var a=n0.pop();a.init(G,void 0,void 0,B);G=a}else G=new j5Y(G,B);this.j=G;this.C=this.j.j;this.X=this.G=-1;nV_(this,B)}; nV_=function(G,B){B=B===void 0?{}:B;G.Cl=B.Cl===void 0?!1:B.Cl}; fCA=function(G){var B=G.j;if(B.j==B.C)return!1;G.C=G.j.j;var a=El(G.j)>>>0;B=a>>>3;a&=7;if(!(a>=0&&a<=5))throw OdH(a,G.C);if(B<1)throw Error("Invalid field number: "+B+" (at position "+G.C+")");G.G=B;G.X=a;return!0}; HY=function(G){switch(G.X){case 0:G.X!=0?HY(G):cY(G.j);break;case 1:G=G.j;p0(G,G.j+8);break;case 2:if(G.X!=2)HY(G);else{var B=El(G.j)>>>0;G=G.j;p0(G,G.j+B)}break;case 5:G=G.j;p0(G,G.j+4);break;case 3:B=G.G;do{if(!fCA(G))throw Error("Unmatched start-group tag: stream EOF");if(G.X==4){if(G.G!=B)throw Error("Unmatched end-group tag");break}HY(G)}while(1);break;default:throw OdH(G.X,G.C);}}; vY=function(G,B,a){var V=G.j.C,x=El(G.j)>>>0,h=G.j.j+x,e=h-V;e<=0&&(G.j.C=h,a(B,G,void 0,void 0,void 0),e=h-G.j.j);if(e)throw Error("Message parsing ended unexpectedly. Expected to read "+(x+" bytes, instead read "+(x-e)+" bytes, either the data ended unexpectedly or the message misreported its own length"));G.j.j=h;G.j.C=V}; R6=function(G){var B=El(G.j)>>>0;G=G.j;var a=bdb(G,B);G=G.X;if(Hdx){var V=G,x;(x=Dv)||(x=Dv=new TextDecoder("utf-8",{fatal:!0}));B=a+B;V=a===0&&B===V.length?V:V.subarray(a,B);try{var h=x.decode(V)}catch(l){if(So===void 0){try{x.decode(new Uint8Array([128]))}catch(k){}try{x.decode(new Uint8Array([97])),So=!0}catch(k){So=!1}}!So&&(Dv=void 0);throw l;}}else{h=a;B=h+B;a=[];for(var e=null,w,K;h=B?m7():(K=G[h++],w<194||(K&192)!==128?(h--,m7()):a.push((w&31)<<6|K&63)): w<240?h>=B-1?m7():(K=G[h++],(K&192)!==128||w===224&&K<160||w===237&&K>=160||((x=G[h++])&192)!==128?(h--,m7()):a.push((w&15)<<12|(K&63)<<6|x&63)):w<=244?h>=B-2?m7():(K=G[h++],(K&192)!==128||(w<<28)+(K-144)>>30!==0||((x=G[h++])&192)!==128||((V=G[h++])&192)!==128?(h--,m7()):(w=(w&7)<<18|(K&63)<<12|(x&63)<<6|V&63,w-=65536,a.push((w>>10&1023)+55296,(w&1023)+56320))):m7(),a.length>=8192&&(e=RX_(e,a),a.length=0);h=RX_(e,a)}return h}; vVB=function(G){var B=El(G.j)>>>0;return cOA(G.j,B)}; Zv=function(G,B,a){this.X5=Hq(G,B,a)}; DUg=function(G,B){if(B==null||B=="")return new G;B=JSON.parse(B);if(!Array.isArray(B))throw Error("dnarr");DC(B,32);return new G(B)}; r4=function(G,B){this.X=G>>>0;this.j=B>>>0}; R_X=function(G){if(!G)return S7b||(S7b=new r4(0,0));if(!/^\d+$/.test(G))return null;aU(G);return new r4(AO,YV)}; $n=function(G,B){this.X=G>>>0;this.j=B>>>0}; rOc=function(G){if(!G)return Zd_||(Zd_=new $n(0,0));if(!/^-?\d+$/.test(G))return null;aU(G);return new $n(AO,YV)}; Xg=function(){this.j=[]}; qW=function(G,B,a){for(;a>0||B>127;)G.j.push(B&127|128),B=(B>>>7|a<<25)>>>0,a>>>=7;G.j.push(B)}; uK=function(G,B){for(;B>127;)G.j.push(B&127|128),B>>>=7;G.j.push(B)}; $UX=function(G,B){if(B>=0)uK(G,B);else{for(var a=0;a<9;a++)G.j.push(B&127|128),B>>=7;G.j.push(1)}}; QS=function(G,B){G.j.push(B>>>0&255);G.j.push(B>>>8&255);G.j.push(B>>>16&255);G.j.push(B>>>24&255)}; XKB=function(){this.C=[];this.X=0;this.j=new Xg}; L0=function(G,B){B.length!==0&&(G.C.push(B),G.X+=B.length)}; q7K=function(G,B){Tz(G,B,2);B=G.j.end();L0(G,B);B.push(G.X);return B}; uOB=function(G,B){var a=B.pop();for(a=G.X+G.j.length()-a;a>127;)B.push(a&127|128),a>>>=7,G.X++;B.push(a);G.X++}; Q5_=function(G,B){L0(G,G.j.end());for(var a=0;a>BigInt(32)));G=G.j;B=a.j;QS(G,a.X);QS(G,B);break;default:a=R_X(a),G=G.j,B=a.j,QS(G,a.X),QS(G,B)}}}; sl=function(G,B,a){Tz(G,B,2);uK(G.j,a.length);L0(G,G.j.end());L0(G,a)}; Fg=function(){function G(){throw Error();} Object.setPrototypeOf(G,G.prototype);return G}; Ak=function(G,B,a){this.VV=G;this.nT=B;G=gB_(Jk);this.j=!!G&&a===G||!1}; Yn=function(G,B){var a=a===void 0?Jk:a;return new Ak(G,B,a)}; s5B=function(G,B,a,V,x){B=TKA(B,V);B!=null&&(a=q7K(G,a),x(B,G),uOB(G,a))}; o6=function(G,B,a,V){var x=V[G];if(x)return x;x={};x.lQJ=V;x.z5=Ckx(V[0]);var h=V[1],e=1;h&&h.constructor===Object&&(x.extensions=h,h=V[++e],typeof h==="function"&&(x.BR=!0,iK!=null||(iK=h),PY!=null||(PY=V[e+1]),h=V[e+=2]));for(var w={};h&&Array.isArray(h)&&h.length&&typeof h[0]==="number"&&h[0]>0;){for(var K=0;K>BigInt(32)));qW(G.j,a.X,a.j);break;default:a=rOc(B),qW(G.j,a.X,a.j)}}}; N8=function(G,B,a){B=K2(B);B!=null&&B!=null&&(Tz(G,a,0),$UX(G.j,B))}; aJA=function(G,B,a){B=B==null||typeof B==="boolean"?B:typeof B==="number"?!!B:void 0;B!=null&&(Tz(G,a,0),G.j.j.push(B?1:0))}; V_B=function(G,B,a){B=OE(B);B!=null&&sl(G,a,Xzc(B))}; x2A=function(G,B,a,V,x){B=TKA(B,V);B!=null&&(a=q7K(G,a),x(B,G),uOB(G,a))}; eYY=function(){this.j=hYz;this.isRepeated=0;this.X=hk;this.defaultValue=void 0}; Wt_=function(G){return function(){var B=new XKB;M$z(this.X5,B,o6(xx,Vg,hE,G));L0(B,B.j.end());for(var a=new Uint8Array(B.X),V=B.C,x=V.length,h=0,e=0;e>>31)&4294967295;N=x[0];var z=x[1],p=x[2],O=x[3],b=x[4];for(C=0;C<80;C++){if(C<40)if(C<20){var c=O^z&(p^O);var H=1518500249}else c=z^p^O,H=1859775393;else C<60?(c=z&p|O&(z|p),H=2400959708):(c=z^p^O,H=3395469782);c=((N<<5|N>>>27)&4294967295)+c+b+H+d[C]&4294967295;b=O;O=p;p=(z<<30|z>>>2)&4294967295;z=N;N=c}x[0]=x[0]+N&4294967295;x[1]=x[1]+z&4294967295;x[2]= x[2]+p&4294967295;x[3]=x[3]+O&4294967295;x[4]=x[4]+b&4294967295} function a(N,d){if(typeof N==="string"){N=unescape(encodeURIComponent(N));for(var C=[],z=0,p=N.length;z=56;C--)h[C]=d&255,d>>>=8;B(h);for(C=d=0;C<5;C++)for(var z=24;z>=0;z-=8)N[d++]=x[C]>>z&255;return N} for(var x=[],h=[],e=[],w=[128],K=1;K<64;++K)w[K]=0;var l,k;G();return{reset:G,update:a,digest:V,Vh:function(){for(var N=V(),d="",C=0;C4);x++)B[sZ(G[x])]||(a+="\nInner error "+V++ +": ",G[x].stack&&G[x].stack.indexOf(G[x].toString())==0||(a+=typeof G[x]==="string"?G[x]:G[x].message+"\n"),a+=LK(G[x],B));x")!=-1&&(G=G.replace(D2z,">")),G.indexOf('"')!=-1&&(G=G.replace(SEA,""")),G.indexOf("'")!=-1&&(G=G.replace(RYA,"'")),G.indexOf("\x00")!=-1&&(G=G.replace(Z2A,"�")));return G}; g.iR=function(G){return G==null?"":String(G)}; Pb=function(G){for(var B=0,a=0;a>>0;return B}; on=function(G){var B=Number(G);return B==0&&g.O3(G)?NaN:B}; rDz=function(G){return String(G).replace(/\-([a-z])/g,function(B,a){return a.toUpperCase()})}; $2g=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; XqB=function(G){return G.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(B,a,V){return a+V.toUpperCase()})}; qEx=function(G){var B=1;G=G.split(":");for(var a=[];B>0&&G.length;)a.push(G.shift()),B--;G.length&&a.push(G.join(":"));return a}; M8=function(G){this.j=G||{cookie:""}}; GF=function(G){G=(G.j.cookie||"").split(";");for(var B=[],a=[],V,x,h=0;h/g,">").replace(/"/g,""").replace(/'/g,"'");return SM(G)}; YEb=function(G){var B=Rl("");return SM(G.map(function(a){return Rn(Rl(a))}).join(Rn(B).toString()))}; Gzc=function(G){var B;if(!i2c.test("div"))throw Error("");if(POV.indexOf("DIV")!==-1)throw Error("");var a="":(G=YEb(B.map(function(V){return V instanceof Dj?V:Rl(String(V))})),a+=">"+G.toString()+""); return SM(a)}; oeV=function(G){for(var B="",a=Object.keys(G),V=0;V2&&wYz(x,e,V,2);return e}; wYz=function(G,B,a,V){function x(w){w&&B.appendChild(typeof w==="string"?G.createTextNode(w):w)} for(;V0)x(h);else{a:{if(h&&typeof h.length=="number"){if(g.Ag(h)){var e=typeof h.item=="function"||typeof h.item=="string";break a}if(typeof h==="function"){e=typeof h.item=="function";break a}}e=!1}g.kV(e?g.Gv(h):h,x)}}}; g.M6=function(G){return PM(document,G)}; PM=function(G,B){B=String(B);G.contentType==="application/xhtml+xml"&&(B=B.toLowerCase());return G.createElement(B)}; g.GT=function(G){return document.createTextNode(String(G))}; g.Bi=function(G,B){G.appendChild(B)}; g.aL=function(G){for(var B;B=G.firstChild;)G.removeChild(B)}; VX=function(G,B,a){G.insertBefore(B,G.childNodes[a]||null)}; g.xo=function(G){return G&&G.parentNode?G.parentNode.removeChild(G):null}; g.hw=function(G,B){if(!G||!B)return!1;if(G.contains&&B.nodeType==1)return G==B||G.contains(B);if(typeof G.compareDocumentPosition!="undefined")return G==B||!!(G.compareDocumentPosition(B)&16);for(;B&&G!=B;)B=B.parentNode;return B==G}; rU=function(G){return G.nodeType==9?G:G.ownerDocument||G.document}; g.es=function(G,B){if("textContent"in G)G.textContent=B;else if(G.nodeType==3)G.data=String(B);else if(G.firstChild&&G.firstChild.nodeType==3){for(;G.lastChild!=G.firstChild;)G.removeChild(G.lastChild);G.firstChild.data=String(B)}else g.aL(G),G.appendChild(rU(G).createTextNode(String(B)))}; lvA=function(G){return G.tagName=="A"&&G.hasAttribute("href")||G.tagName=="INPUT"||G.tagName=="TEXTAREA"||G.tagName=="SELECT"||G.tagName=="BUTTON"?!G.disabled&&(!G.hasAttribute("tabindex")||KnV(G)):G.hasAttribute("tabindex")&&KnV(G)}; KnV=function(G){G=G.tabIndex;return typeof G==="number"&&G>=0&&G<32768}; wQ=function(G,B,a){if(!B&&!a)return null;var V=B?String(B).toUpperCase():null;return Wi(G,function(x){return(!V||x.nodeName==V)&&(!a||typeof x.className==="string"&&g.YC(x.className.split(/\s+/),a))},!0)}; Wi=function(G,B,a){G&&!a&&(G=G.parentNode);for(a=0;G;){if(B(G))return G;G=G.parentNode;a++}return null}; ZQ=function(G){this.j=G||g.qY.document||document}; Ka=function(G){this.X5=Hq(G)}; lf=function(G){this.X5=Hq(G)}; ko=function(G){this.X5=Hq(G)}; kzg=function(G,B){WY(G,lf,1,B)}; N_=function(G){this.X5=Hq(G)}; dWX=function(G,B){B=B===void 0?N4c:B;if(!dQ){var a;G=(a=G.navigator)==null?void 0:a.userAgentData;if(!G||typeof G.getHighEntropyValues!=="function"||G.brands&&typeof G.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));a=(G.brands||[]).map(function(x){var h=new lf;h=zz(h,1,x.brand);return zz(h,2,x.version)}); kzg(Xn(Ca,2,hD(G.mobile)),a);dQ=G.getHighEntropyValues(B)}var V=new Set(B);return dQ.then(function(x){var h=Ca.clone();V.has("platform")&&zz(h,3,x.platform);V.has("platformVersion")&&zz(h,4,x.platformVersion);V.has("architecture")&&zz(h,5,x.architecture);V.has("model")&&zz(h,6,x.model);V.has("uaFullVersion")&&zz(h,7,x.uaFullVersion);return h}).catch(function(){return Ca.clone()})}; zT=function(G){this.X5=Hq(G)}; CKB=function(G){this.X5=Hq(G)}; tw=function(G){this.X5=Hq(G,4)}; mE=function(G){this.X5=Hq(G,36)}; IL=function(G){this.X5=Hq(G,19)}; gQ=function(G,B){this.qZ=B=B===void 0?!1:B;this.uach=this.locale=null;this.X=0;this.isFinal=!1;this.j=new IL;Number.isInteger(G)&&this.j.K$(G);B||(this.locale=document.documentElement.getAttribute("lang"));zl_(this,new zT)}; zl_=function(G,B){eo(G.j,zT,1,B);d4(B,1)||mn(B,1,1);G.qZ||(B=pa(G),NW(B,5)||zz(B,5,G.locale));G.uach&&(B=pa(G),hk(B,ko,9)||eo(B,ko,9,G.uach))}; toz=function(G,B){G.X=B}; mWb=function(G){var B=B===void 0?N4c:B;var a=G.qZ?void 0:iQ();a?dWX(a,B).then(function(V){G.uach=V;V=pa(G);eo(V,ko,9,G.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; pa=function(G){G=hk(G.j,zT,1);var B=hk(G,N_,11);B||(B=new N_,eo(G,N_,11,B));return B}; Ivc=function(G){return g.Yj?"webkit"+G:G.toLowerCase()}; g.Oz=function(G,B,a,V){this.G=G;this.B=B;this.j=this.C=G;this.L=a||0;this.W=V||2}; g.Ez=function(G){G.j=Math.min(G.B,G.j*G.W);G.C=Math.min(G.B,G.j+(G.L?Math.round(G.L*(Math.random()-.5)*2*G.j):0));G.X++}; gnz=function(G){this.X5=Hq(G,8)}; hYz=function(G){this.X5=Hq(G)}; bf=function(G){g.r.call(this);var B=this;this.componentId="";this.j=[];this.Qb="";this.pageId=null;this.SJ=this.HS=-1;this.W=this.experimentIds=null;this.zH=this.XJ=this.L=this.G=0;this.qB=1;this.timeoutMillis=0;this.GH=!1;this.logSource=G.logSource;this.oX=G.oX||function(){}; this.C=new gQ(G.logSource,G.qZ);this.network=G.network||null;this.M1=G.M1||null;this.V=G.bM1||null;this.sessionIndex=G.sessionIndex||null;this.GG=G.GG||!1;this.logger=null;this.withCredentials=!G.b1;this.qZ=G.qZ||!1;this.Y=!this.qZ&&!!iQ()&&!!iQ().navigator&&iQ().navigator.sendBeacon!==void 0;this.LN=typeof URLSearchParams!=="undefined"&&!!(new URL(js())).searchParams&&!!(new URL(js())).searchParams.set;var a=mn(new zT,1,1);zl_(this.C,a);this.B=new g.Oz(1E4,3E5,.1);G=pYz(this,G.JR);this.X=new Vw(this.B.getValue(), G);this.Zx=new Vw(6E5,G);this.GG||this.Zx.start();this.qZ||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B.Q8()}),document.addEventListener("pagehide",this.Q8.bind(this)))}; pYz=function(G,B){return G.LN?B?function(){B().then(function(){G.flush()})}:function(){G.flush()}:function(){}}; UWc=function(G){G.V||(G.V=js());try{return(new URL(G.V)).toString()}catch(B){return(new URL(G.V,iQ().location.origin)).toString()}}; O0g=function(G,B,a){a=a===void 0?G.oX():a;var V={},x=new URL(UWc(G));a&&(V.Authorization=a);G.sessionIndex&&(V["X-Goog-AuthUser"]=G.sessionIndex,x.searchParams.set("authuser",G.sessionIndex));G.pageId&&(Object.defineProperty(V,"X-Goog-PageId",{value:G.pageId}),x.searchParams.set("pageId",G.pageId));return{url:x.toString(),body:B,z0:1,requestHeaders:V,requestType:"POST",withCredentials:G.withCredentials,timeoutMillis:G.timeoutMillis}}; j6x=function(G){EnB(G,function(B,a){B=new URL(B);B.searchParams.set("format","json");var V=!1;try{V=iQ().navigator.sendBeacon(B.toString(),a.Ft())}catch(x){}V||(G.Y=!1);return V})}; EnB=function(G,B){if(G.j.length!==0){var a=new URL(UWc(G));a.searchParams.delete("format");var V=G.oX();V&&a.searchParams.set("auth",V);a.searchParams.set("authuser",G.sessionIndex||"0");for(V=0;V<10&&G.j.length;++V){var x=G.j.slice(0,32),h=G.C.build(x,G.G,G.L,G.M1,G.XJ,G.zH);if(!B(a.toString(),h)){++G.L;break}G.G=0;G.L=0;G.XJ=0;G.zH=0;G.j=G.j.slice(x.length)}G.X.enabled&&G.X.stop()}}; js=function(){return"https://play.google.com/log?format=json&hasfast=true"}; yX=function(){this.Mx=typeof AbortController!=="undefined"}; ci=function(G,B){g.r.call(this);this.logSource=G;this.sessionIndex=B;this.D5="https://play.google.com/log?format=json&hasfast=true";this.X=null;this.G=!1;this.network=null;this.componentId="";this.j=this.M1=null;this.C=!1;this.pageId=null}; b0x=function(G,B){G.X=B;return G}; yk_=function(G,B){G.network=B;return G}; ckb=function(G,B){G.j=B}; nnH=function(G){G.C=!0;return G}; na=function(G,B,a,V,x,h,e){G=G===void 0?-1:G;B=B===void 0?"":B;a=a===void 0?"":a;V=V===void 0?!1:V;x=x===void 0?"":x;g.r.call(this);this.logSource=G;this.componentId=B;h?B=h:(G=new ci(G,"0"),G.componentId=B,g.X(this,G),a!==""&&(G.D5=a),V&&(G.G=!0),x&&b0x(G,x),e&&yk_(G,e),B=G.build());this.j=B}; fvg=function(G){this.j=G}; fa=function(G,B,a){this.X=G;this.G=B;this.fields=a||[];this.j=new Map}; N3y=function(G){return G.fields.map(function(B){return B.fieldType})}; kMX=function(G){return G.fields.map(function(B){return B.fieldName})}; Hi=function(G,B){fa.call(this,G,3,B)}; vi=function(G,B){fa.call(this,G,2,B)}; g.Da=function(G,B){this.type=G;this.currentTarget=this.target=B;this.defaultPrevented=this.X=!1}; Ss=function(G,B){g.Da.call(this,G?G.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.j=null;G&&this.init(G,B)}; RL=function(G){return!(!G||!G[H0g])}; DWK=function(G,B,a,V,x){this.listener=G;this.proxy=null;this.src=B;this.type=a;this.capture=!!V;this.yv=x;this.key=++vnX;this.removed=this.WQ=!1}; Za=function(G){G.removed=!0;G.listener=null;G.proxy=null;G.src=null;G.yv=null}; rQ=function(G){this.src=G;this.listeners={};this.j=0}; g.$o=function(G,B){var a=B.type;a in G.listeners&&g.PW(G.listeners[a],B)&&(Za(B),G.listeners[a].length==0&&(delete G.listeners[a],G.j--))}; Xm=function(G,B,a,V){for(var x=0;x1)));e=e.next)x||(h=e);x&&(a.j==0&&V==1?VMx(a,B):(h?(V=h,V.next==a.G&&(a.G=V),V.next=V.next.next):x8b(a),hAY(a,x,3,B)))}G.C=null}else CJ(G,3,B)}; gp=function(G,B){G.X||G.j!=2&&G.j!=3||eAz(G);G.G?G.G.next=B:G.X=B;G.G=B}; WaA=function(G,B,a,V){var x=tu(null,null,null);x.j=new g.z5(function(h,e){x.C=B?function(w){try{var K=B.call(V,w);h(K)}catch(l){e(l)}}:h; x.X=a?function(w){try{var K=a.call(V,w);K===void 0&&w instanceof Uh?e(w):h(K)}catch(l){e(l)}}:e}); x.j.C=G;gp(G,x);return x.j}; CJ=function(G,B,a){G.j==0&&(G===a&&(B=3,a=new TypeError("Promise cannot resolve to itself")),G.j=1,PKB(a,G.olr,G.HMN,G)||(G.W=a,G.j=B,G.C=null,eAz(G),B!=3||a instanceof Uh||wb9(G,a)))}; PKB=function(G,B,a,V){if(G instanceof g.z5)return ajX(G,B,a,V),!0;if(G)try{var x=!!G.$goog_Thenable}catch(e){x=!1}else x=!1;if(x)return G.then(B,a,V),!0;if(g.Ag(G))try{var h=G.then;if(typeof h==="function")return KaB(G,h,B,a,V),!0}catch(e){return a.call(V,e),!0}return!1}; KaB=function(G,B,a,V,x){function h(K){w||(w=!0,V.call(x,K))} function e(K){w||(w=!0,a.call(x,K))} var w=!1;try{B.call(G,e,h)}catch(K){h(K)}}; eAz=function(G){G.L||(G.L=!0,g.KJ(G.LI,G))}; x8b=function(G){var B=null;G.X&&(B=G.X,G.X=B.next,B.next=null);G.X||(G.G=null);return B}; hAY=function(G,B,a,V){if(a==3&&B.X&&!B.G)for(;G&&G.B;G=G.C)G.B=!1;if(B.j)B.j.C=null,ljc(B,a,V);else try{B.G?B.C.call(B.context):ljc(B,a,V)}catch(x){kNb.call(null,x)}ugX(i0K,B)}; ljc=function(G,B,a){B==2?G.C.call(G.context,a):G.X&&G.X.call(G.context,a)}; wb9=function(G,B){G.B=!0;g.KJ(function(){G.B&&kNb.call(null,B)})}; Uh=function(G){z$.call(this,G)}; GNc=function(G,B,a){this.promise=G;this.resolve=B;this.reject=a}; g.Oh=function(G,B){g.oL.call(this);this.v0=G||1;this.C6=B||g.qY;this.EP=(0,g.oy)(this.eEB,this);this.lB=g.G$()}; g.Eh=function(G,B,a){if(typeof G==="function")a&&(G=(0,g.oy)(G,a));else if(G&&typeof G.handleEvent=="function")G=(0,g.oy)(G.handleEvent,G);else throw Error("Invalid listener argument");return Number(B)>2147483647?-1:g.qY.setTimeout(G,B||0)}; jU=function(G,B){var a=null;return(new g.z5(function(V,x){a=g.Eh(function(){V(B)},G); a==-1&&x(Error("Failed to schedule timer."))})).yC(function(V){g.qY.clearTimeout(a); throw V;})}; g.b8=function(G){g.r.call(this);this.W=G;this.G=0;this.C=100;this.B=!1;this.X=new Map;this.L=new Set;this.flushInterval=3E4;this.j=new g.Oh(this.flushInterval);this.j.listen("tick",this.Pw,!1,this);g.X(this,this.j)}; NyH=function(G){G.j.enabled||G.j.start();G.G++;G.G>=G.C&&G.Pw()}; d8g=function(G,B){return G.L.has(B)?void 0:G.X.get(B)}; NUB=function(G){for(var B=0;B=0){var h=G[a].substring(0,V);x=G[a].substring(V+1)}else h=G[a];B(h,x?AE(x):"")}}}; qH=function(G,B){if(!B)return G;var a=G.indexOf("#");a<0&&(a=G.length);var V=G.indexOf("?");if(V<0||V>a){V=a;var x=""}else x=G.substring(V+1,a);G=[G.slice(0,V),x,G.slice(a)];a=G[1];G[1]=B?a?a+"&"+B:B:a;return G[0]+(G[1]?"?"+G[1]:"")+G[2]}; u8=function(G,B,a){if(Array.isArray(B))for(var V=0;V=0&&Ba)x=a;V+=B.length+1;return AE(G.slice(V,x!==-1?x:0))}; Ft=function(G,B){for(var a=G.search(y$b),V=0,x,h=[];(x=boc(G,V,B,a))>=0;)h.push(G.substring(V,x)),V=Math.min(G.indexOf("&",x)+1||a,a);h.push(G.slice(V));return h.join("").replace(c$V,"$1")}; njH=function(G,B,a){return T5(Ft(G,B),B,a)}; g.Ju=function(G){g.oL.call(this);this.headers=new Map;this.Zx=G||null;this.C=!1;this.j=null;this.V="";this.X=0;this.G="";this.B=this.HS=this.Y=this.XJ=!1;this.zH=0;this.L=null;this.GH="";this.W=!1}; Ho9=function(G,B,a,V,x,h,e){var w=new g.Ju;fQc.push(w);B&&w.listen("complete",B);w.nm("ready",w.RB);h&&(w.zH=Math.max(0,h));e&&(w.W=e);w.send(G,a,V,x)}; D6x=function(G,B){G.C=!1;G.j&&(G.B=!0,G.j.abort(),G.B=!1);G.G=B;G.X=5;vjA(G);Au(G)}; vjA=function(G){G.XJ||(G.XJ=!0,G.dispatchEvent("complete"),G.dispatchEvent("error"))}; Sux=function(G){if(G.C&&typeof YK!="undefined")if(G.Y&&g.i8(G)==4)setTimeout(G.oQ.bind(G),0);else if(G.dispatchEvent("readystatechange"),G.isComplete()){G.getStatus();G.C=!1;try{if(Pa(G))G.dispatchEvent("complete"),G.dispatchEvent("success");else{G.X=6;try{var B=g.i8(G)>2?G.j.statusText:""}catch(a){B=""}G.G=B+" ["+G.getStatus()+"]";vjA(G)}}finally{Au(G)}}}; Au=function(G,B){if(G.j){G.L&&(clearTimeout(G.L),G.L=null);var a=G.j;G.j=null;B||G.dispatchEvent("ready");try{a.onreadystatechange=null}catch(V){}}}; Pa=function(G){var B=G.getStatus();a:switch(B){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var a=!0;break a;default:a=!1}if(!a){if(B=B===0)G=g.Z4(1,String(G.V)),!G&&g.qY.self&&g.qY.self.location&&(G=g.qY.self.location.protocol.slice(0,-1)),B=!R4Y.test(G?G.toLowerCase():"");a=B}return a}; g.i8=function(G){return G.j?G.j.readyState:0}; g.oz=function(G){try{return G.j?G.j.responseText:""}catch(B){return""}}; g.MH=function(G){try{if(!G.j)return null;if("response"in G.j)return G.j.response;switch(G.GH){case "":case "text":return G.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in G.j)return G.j.mozResponseArrayBuffer}return null}catch(B){return null}}; g.Zoc=function(G){var B={};G=(G.j&&g.i8(G)>=2?G.j.getAllResponseHeaders()||"":"").split("\r\n");for(var a=0;a>1,B),yi(G,G.length>>1)]}; d_X=function(G){var B=g.m(NQg(G,nX));G=B.next().value;B=B.next().value;return G.toString(16)+B.toString(16)}; CfH=function(G,B){var a=NQg(B);G=new Uint32Array(G.buffer);B=G[0];var V=g.m(a);a=V.next().value;V=V.next().value;for(var x=1;x>>8|e<<24,e+=h|0,e^=w+38293,h=h<<3|h>>>29,h^=e,K=K>>>8|K<<24,K+=w|0,K^=l+38293,w=w<<3|w>>>29,w^=K;h=[h,e];G[x]^=h[0];x+1=a?(globalThis.sessionStorage.removeItem(G),["e"]):["a",new Uint8Array(V.buffer,B+4)]}; fX=function(G,B,a){a=a===void 0?[]:a;this.maxItems=G;this.j=B===void 0?0:B;this.X=a}; m_g=function(G){var B=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!B)return new fX(G);var a=B.split(",");if(a.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new fX(G);B=a.slice(1);B.length===1&&B[0]===""&&(B=[]);a=Number(a[0]);return isNaN(a)||a<0||a>B.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new fX(G)):new fX(G,a,B)}; IaB=function(G,B){this.logger=B;try{var a=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(V){a=!1}a&&(this.index=m_g(G))}; goc=function(G,B,a,V,x){var h=G.index?hL(G.logger,function(){return z2X(G.index,d_X(B),a,V,x)},"W"):"u"; G.logger.le(h)}; piz=function(G,B,a){var V=g.m(G.index?hL(G.logger,function(){return tsX(d_X(B),a)},"R"):["u"]),x=V.next().value; V=V.next().value;G.logger.wS(x);return V}; EoY=function(G){function B(){a-=V;a-=x;a^=x>>>13;V-=x;V-=a;V^=a<<8;x-=a;x-=V;x^=V>>>13;a-=V;a-=x;a^=x>>>12;V-=x;V-=a;V^=a<<16;x-=a;x-=V;x^=V>>>5;a-=V;a-=x;a^=x>>>3;V-=x;V-=a;V^=a<<10;x-=a;x-=V;x^=V>>>15} G=U_x(G);for(var a=2654435769,V=2654435769,x=314159265,h=G.length,e=h,w=0;e>=12;e-=12,w+=12)a+=H2(G,w),V+=H2(G,w+4),x+=H2(G,w+8),B();x+=h;switch(e){case 11:x+=G[w+10]<<24;case 10:x+=G[w+9]<<16;case 9:x+=G[w+8]<<8;case 8:V+=G[w+7]<<24;case 7:V+=G[w+6]<<16;case 6:V+=G[w+5]<<8;case 5:V+=G[w+4];case 4:a+=G[w+3]<<24;case 3:a+=G[w+2]<<16;case 2:a+=G[w+1]<<8;case 1:a+=G[w+0]}B();return OaV.toString(x)}; U_x=function(G){for(var B=[],a=0;a>7,G.error.code]);V.set(a,4);return V}; uc=function(G,B,a){v2.call(this,G);this.G=B;this.clientState=a;this.j="S";this.C="q"}; qh=function(G){return globalThis.TextEncoder?(new TextEncoder).encode(G):g.gl(G)}; yw9=function(G,B,a){return G instanceof Og?MHz(G,a,B,1):G.du(a)}; Qi=function(G,B,a){g.r.call(this);var V=this;this.logger=G;this.onError=B;this.state=a;this.W=0;this.X=void 0;this.addOnDisposeCallback(function(){V.j&&(V.j.dispose(),V.j=void 0)})}; cwz=function(G,B){B=B instanceof a2?B:new a2(5,"TVD:error",B);return G.reportError(B)}; LX=function(G,B,a){try{if(G.TH())throw new a2(21,"BNT:disposed");if(!G.j&&G.X)throw G.X;var V,x;return(x=(V=no_(G,B,a))!=null?V:fag(G,B,a))!=null?x:Hax(G,B,a)}catch(h){if(!B.qf)throw cwz(G,h);return vob(G,a,h)}}; no_=function(G,B,a){var V;return(V=G.j)==null?void 0:SJ(V,function(){return T_(G,B)},a,function(x){var h; if(G.j instanceof RC&&((h=B.Hr)==null?0:h.mK))try{var e;(e=G.cache)==null||goc(e,T_(G,B),x,B.Hr.ag,G.V-120)}catch(w){G.reportError(new a2(24,"ELX:write",w))}})}; fag=function(G,B,a){var V;if((V=B.Hr)!=null&&V.V3)try{var x,h=(x=G.cache)==null?void 0:piz(x,T_(G,B),B.Hr.ag);return h?a?hL(G.logger,function(){return g.md(h,2)},"a"):h:void 0}catch(e){G.reportError(new a2(23,"RXO:read",e))}}; Hax=function(G,B,a){var V={stack:[],error:void 0,hasError:!1};try{if(!B.t0)throw new a2(29,"SDF:notready");return SJ(pzc(V,new uc(G.logger,G.W,G.state)),function(){return T_(G,B)},a)}catch(x){V.error=x,V.hasError=!0}finally{UYc(V)}}; vob=function(G,B,a){var V={stack:[],error:void 0,hasError:!1};try{var x=cwz(G,a);return SJ(pzc(V,new Xw(G.logger,x)),function(){return[]},B)}catch(h){V.error=h,V.hasError=!0}finally{UYc(V)}}; T_=function(G,B){return B.BZ?B.BZ:B.Xi?hL(G.logger,function(){return B.BZ=qh(B.Xi)},"c"):[]}; Fw=function(G){var B;Qi.call(this,G.jS.j3(),(B=G.onError)!=null?B:function(){},0); var a=this;this.B=0;this.G=new g.z_;this.C=!1;this.jS=G.jS;this.tW=G.tW;this.r$=Object.assign({},D_A,G.r$||{});G.oY&&(this.logger instanceof lc||this.logger instanceof W2)&&this.logger.gX(G.oY);this.bG=G.bG||!1;if(SzX(G)){var V=this.jS;this.L=function(){return x_y(V).catch(function(e){e=a.reportError(new a2(a.C?20:32,"TRG:Disposed",e));a.X=e;var w;(w=a.j)==null||w.dispose();a.j=void 0;a.G.reject(e)})}; h29(V,function(){return void sg(a)}); V.V===2&&sg(this)}else this.L=G.RiJ,sg(this);var x=this.logger.share();x.jm("o");var h=new Vi(x,"o");this.G.promise.then(function(){h.done();x.mD();x.dispose()},function(){return void x.dispose()}); this.addOnDisposeCallback(function(){a.C||(a.X?a.logger.mD():(a.X=a.reportError(new a2(32,"TNP:Disposed")),a.logger.mD(),a.G.reject(a.X)))}); g.X(this,this.logger)}; R2A=function(G,B){if(!(B instanceof a2))if(B instanceof ys){var a=Error(B.toString());a.stack=B.stack;B=new a2(11,"EBH:Error",a)}else B=new a2(12,"BSO:Unknown",B);return G.reportError(B)}; sg=function(G){var B,a,V,x,h,e,w,K,l,k,N,d,C,z,p;return g.v(function(O){switch(O.j){case 1:B=void 0;G.B++;a=new g.z_;G.jS instanceof Eg&&G.jS.G.push(a.promise);if(!G.bG){O.kf(2);break}V=new g.z_;setTimeout(function(){return void V.resolve()}); return g.f(O,V.promise,2);case 2:return x=G.logger.share(),g.UA(O,4,5),G.state=5,h={},e=[],g.f(O,bc(G.jS.snapshot({Xi:h,gj:e}),G.r$.JAr,function(){return Promise.reject(new a2(15,"MDA:Timeout"))}),7); case 7:w=O.X;if(G.TH())throw new a2(G.C?20:32,"MDA:Disposed");K=e[0];G.state=6;return g.f(O,bc(yw9(G.tW,x,w),G.r$.u8,function(){return Promise.reject(new a2(10,"BWB:Timeout"))}),8); case 8:l=O.X;if(G.TH())throw new a2(G.C?20:32,"BWB:Disposed");G.state=7;B=hL(x,function(){var c=Za_(G,l,a,K);c.X.promise.then(function(){return void G.L()}).catch(function(){}); return c},"i"); case 5:g.bx(O);x.dispose();g.yb(O,6);break;case 4:k=g.jB(O);(N=B)==null||N.dispose();if(!G.X){d=R2A(G,k);a.resolve();var b;if(b=G.jS instanceof Eg&&G.B<2)a:if(k instanceof a2)b=k.code!==32&&k.code!==20&&k.code!==10;else{if(k instanceof ys)switch(k.code){case 2:case 13:case 14:case 4:break;default:b=!1;break a}b=!0}if(b)return C=(1+Math.random()*.25)*(G.C?6E4:1E3),z=setTimeout(function(){return void G.L()},C),G.addOnDisposeCallback(function(){return void clearTimeout(z)}),O.return(); G.X=d}x.oM(G.C?13:14);G.G.reject(G.X);return O.return();case 6:G.state=8,G.B=0,(p=G.j)==null||p.dispose(),G.j=B,G.C=!0,G.G.resolve(),g.pV(O)}})}; Za_=function(G,B,a,V){var x=kn(B,2)*1E3;if(x<=0)throw new a2(31,"TTM:Invalid");if(NW(B,4))return new rN(G.logger,NW(B,4),x);if(!kn(B,3))return new Zz(G.logger,yj(JD(B,1)),x);if(!V)throw new a2(4,"PMD:Undefined");V=V(yj(JD(B,1)));if(!(V instanceof Function))throw new a2(16,"APF:Failed");G.V=Math.floor((Date.now()+x)/1E3);G=new RC(G.logger,V,kn(B,3),x);G.addOnDisposeCallback(function(){return void a.resolve()}); return G}; JL=function(){var G=0,B;return function(a){B||(B=new eJ);var V=new uc(B,G,1),x=SJ(V,function(){return qh(a)},!0); V.dispose();G++;return x}}; AL=function(G){this.X5=Hq(G)}; rwy=function(G,B,a){this.GR=G;this.Qp=B;this.metadata=a}; YH=function(G,B){B=B===void 0?{}:B;this.OnN=G;this.metadata=B;this.status=null}; ic=function(G,B,a,V,x){this.name=G;this.methodType="unary";this.requestType=B;this.responseType=a;this.j=V;this.X=x}; P2=function(G){this.X5=Hq(G)}; oC=function(G){this.X5=Hq(G)}; Mh=function(G){this.X5=Hq(G)}; GU=function(G,B){this.W=G.yyL;this.V=B;this.j=G.xhr;this.C=[];this.B=[];this.L=[];this.G=[];this.X=[];this.W&&$_X(this)}; QLg=function(G,B){var a=new Xig;g.uf(G.j,"complete",function(){if(Pa(G.j)){var V=g.oz(G.j);if(B&&G.j.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");V=atob(V)}try{var x=G.V(V)}catch(w){BR(G,aQ(new ys(13,"Error when deserializing response data; error: "+w+(", response: "+V)),a));return}V=d6_(G.j.getStatus());Vo(G,xO(G));V==0?qzc(G,x):BR(G,aQ(new ys(V,"Xhr succeeded but the status code is not 200"),a))}else{V=g.oz(G.j);x=xO(G);if(V){var h=umV(G, V);V=h.code;var e=h.details;h=h.metadata}else V=2,e="Rpc failed due to xhr error. uri: "+String(G.j.V)+", error code: "+G.j.X+", error: "+G.j.getLastError(),h=x;Vo(G,x);BR(G,aQ(new ys(V,e,h),a))}})}; $_X=function(G){G.W.UU("data",function(B){if("1"in B){var a=B["1"];try{var V=G.V(a)}catch(x){BR(G,new ys(13,"Error when deserializing response data; error: "+x+(", response: "+a)))}V&&qzc(G,V)}if("2"in B)for(B=umV(G,B["2"]),a=0;a-1&&G.splice(B,1)}; qzc=function(G,B){for(var a=0;a>4&15).toString(16)+(G&15).toString(16)}; tf=function(G,B){this.X=this.j=null;this.C=G||null;this.G=!!B}; pc=function(G){G.j||(G.j=new Map,G.X=0,G.C&&Xt(G.C,function(B,a){G.add(AE(B),a)}))}; AwB=function(G,B){pc(G);B=UW(G,B);return G.j.has(B)}; g.YzY=function(G,B,a){G.remove(B);a.length>0&&(G.C=null,G.j.set(UW(G,B),g.Gv(a)),G.X=G.X+a.length)}; UW=function(G,B){B=String(B);G.G&&(B=B.toLowerCase());return B}; sLK=function(G,B){B&&!G.G&&(pc(G),G.C=null,G.j.forEach(function(a,V){var x=V.toLowerCase();V!=x&&(this.remove(V),g.YzY(this,x,a))},G)); G.G=B}; g.ia_=function(G){var B="";g.t$(G,function(a,V){B+=V;B+=":";B+=a;B+="\r\n"}); return B}; g.OW=function(G,B,a){if(g.yw(a))return G;a=g.ia_(a);if(typeof G==="string")return T5(G,g.JE(B),a);g.IQ(G,B,a);return G}; g.EW=function(G){g.r.call(this);this.X=G;this.j={}}; PfB=function(G,B,a,V,x,h){if(Array.isArray(a))for(var e=0;e0&&(B[x]=V)},G); return B}; bJb=function(G){G=w$(G);var B=[];g.t$(G,function(a,V){V in Object.prototype||typeof a!="undefined"&&B.push([V,":",a].join(""))}); return B}; cux=function(G){hR(G,"od",yug);hR(G,"opac",K6).j=!0;hR(G,"sbeos",K6).j=!0;hR(G,"prf",K6).j=!0;hR(G,"mwt",K6).j=!0;hR(G,"iogeo",K6)}; nKY=function(){this.j=this.Om=null}; lr=function(){}; Nt=function(){if(!kZ())throw Error();}; kZ=function(){return!(!d$||!d$.performance)}; C6=function(G){return G?G.passive&&f4B()?G:G.capture||!1:!1}; ze=function(G,B,a,V){return G.addEventListener?(G.addEventListener(B,a,C6(V)),!0):!1}; tR=function(G){return G.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[G.visibilityState||G.webkitVisibilityState||G.mozVisibilityState||""]||0}; HJz=function(){}; vKK=function(){return(fs||HW)&&vW?vW.mobile:!mr()&&(Sf("iPod")||Sf("iPhone")||Sf("Android")||Sf("IEMobile"))}; mr=function(){return(fs||HW)&&vW?!vW.mobile&&(Sf("iPad")||Sf("Android")||Sf("Silk")):Sf("iPad")||Sf("Android")&&!Sf("Mobile")||Sf("Silk")}; IY=function(G){try{return!!G&&G.location.href!=null&&W7B(G,"foo")}catch(B){return!1}}; g$=function(G,B){if(G)for(var a in G)Object.prototype.hasOwnProperty.call(G,a)&&B(G[a],a,G)}; ShB=function(){var G=[];g$(DHV,function(B){G.push(B)}); return G}; R$y=function(G){var B,a;return(a=(B=/https?:\/\/[^\/]+/.exec(G))==null?void 0:B[0])!=null?a:""}; $HV=function(){var G=ZJY("IFRAME"),B={};g.kV(ruY(),function(a){G.sandbox&&G.sandbox.supports&&G.sandbox.supports(a)&&(B[a]=!0)}); return B}; ZJY=function(G,B){B=B===void 0?document:B;return B.createElement(String(G).toLowerCase())}; Xa9=function(G){for(var B=G;G&&G!=G.parent;)G=G.parent,IY(G)&&(B=G);return B}; LLB=function(G){G=G||p6();for(var B=new qh9(g.qY.location.href,!1),a=null,V=G.length-1,x=V;x>=0;--x){var h=G[x];!a&&utB.test(h.url)&&(a=h);if(h.url&&!h.Yw){B=h;break}}x=null;h=G.length&&G[V].url;B.depth!=0&&h&&(x=G[V]);return new QzH(B,x,a)}; p6=function(){var G=g.qY,B=[],a=null;do{var V=G;if(IY(V)){var x=V.location.href;a=V.document&&V.document.referrer||null}else x=a,a=null;B.push(new qh9(x||""));try{G=V.parent}catch(h){G=null}}while(G&&V!=G);V=0;for(G=B.length-1;V<=G;++V)B[V].depth=G-V;V=g.qY;if(V.location&&V.location.ancestorOrigins&&V.location.ancestorOrigins.length==B.length-1)for(G=1;GB&&(B=a.length);return 3997-B-G.C.length-1}; jl=function(G,B){this.j=G;this.depth=B}; Jux=function(){function G(w,K){return w==null?K:w} var B=p6(),a=Math.max(B.length-1,0),V=LLB(B);B=V.j;var x=V.X,h=V.C,e=[];h&&e.push(new jl([h.url,h.Yw?2:0],G(h.depth,1)));x&&x!=h&&e.push(new jl([x.url,2],0));B.url&&B!=h&&e.push(new jl([B.url,0],G(B.depth,a)));V=g.br(e,function(w,K){return e.slice(0,e.length-K)}); !B.url||(h||x)&&B!=h||(x=R$y(B.url))&&V.push([new jl([x,1],G(B.depth,a))]);V.push([]);return g.br(V,function(w){return FLB(a,w)})}; FLB=function(G,B){g.yN(B,function(x){return x.depth>=0}); var a=c1(B,function(x,h){return Math.max(x,h.depth)},-1),V=hCx(a+2); V[0]=G;g.kV(B,function(x){return V[x.depth+1]=x.j}); return V}; Au9=function(){var G=G===void 0?Jux():G;return G.map(function(B){return E$(B)})}; YhY=function(G){var B=!1;B=B===void 0?!1:B;d$.google_image_requests||(d$.google_image_requests=[]);var a=ZJY("IMG",d$.document);B&&(a.attributionSrc="");a.src=G;d$.google_image_requests.push(a)}; n6=function(G){var B="WG";if(G.WG&&G.hasOwnProperty(B))return G.WG;var a=new G;G.WG=a;G.hasOwnProperty(B);return a}; f6=function(){this.X=new HJz;this.j=kZ()?new Nt:new lr}; iJy=function(){H1();var G=d$.document;return!!(G&&G.body&&G.body.getBoundingClientRect&&typeof d$.setInterval==="function"&&typeof d$.clearInterval==="function"&&typeof d$.setTimeout==="function"&&typeof d$.clearTimeout==="function")}; P8A=function(){H1();return Au9()}; oKY=function(){}; H1=function(){var G=n6(oKY);if(!G.j){if(!d$)throw Error("Context has not been set and window is undefined.");G.j=n6(f6)}return G.j}; v1=function(G){this.X5=Hq(G)}; MUY=function(G){this.C=G;this.j=-1;this.X=this.G=0}; D9=function(G,B){return function(){var a=g.Hz.apply(0,arguments);if(G.j>-1)return B.apply(null,g.U(a));try{return G.j=G.C.j.now(),B.apply(null,g.U(a))}finally{G.G+=G.C.j.now()-G.j,G.j=-1,G.X+=1}}}; G__=function(G,B){this.X=G;this.C=B;this.j=new MUY(G)}; BNK=function(){this.j={}}; VJY=function(){var G=Sl().flags,B=azy;G=G.j[B.key];if(B.valueType==="proto"){try{var a=JSON.parse(G);if(Array.isArray(a))return a}catch(V){}return B.defaultValue}return typeof G===typeof B.defaultValue?G:B.defaultValue}; Wc_=function(){this.C=void 0;this.X=this.L=0;this.B=-1;this.QK=new xZ;hR(this.QK,"mv",xhK).j=!0;hR(this.QK,"omid",K6);hR(this.QK,"epoh",K6).j=!0;hR(this.QK,"epph",K6).j=!0;hR(this.QK,"umt",K6).j=!0;hR(this.QK,"phel",K6).j=!0;hR(this.QK,"phell",K6).j=!0;hR(this.QK,"oseid",hUY).j=!0;var G=this.QK;G.j.sloi||(G.j.sloi=new aY);G.j.sloi.j=!0;hR(this.QK,"mm",RY);hR(this.QK,"ovms",eUB).j=!0;hR(this.QK,"xdi",K6).j=!0;hR(this.QK,"amp",K6).j=!0;hR(this.QK,"prf",K6).j=!0;hR(this.QK,"gtx",K6).j=!0;hR(this.QK, "mvp_lv",K6).j=!0;hR(this.QK,"ssmol",K6).j=!0;hR(this.QK,"fmd",K6).j=!0;hR(this.QK,"gen204simple",K6);this.j=new G__(H1(),this.QK);this.G=!1;this.flags=new BNK}; Sl=function(){return n6(Wc_)}; w2B=function(G,B,a,V){if(Math.random()<(V||G.j))try{if(a instanceof U$)var x=a;else x=new U$,g$(a,function(e,w){var K=x,l=K.G++;e=O$(w,e);K.j.push(l);K.X[l]=e}); var h=x.Ex(G.X,"pagead2.googlesyndication.com","/pagead/gen_204?id="+B+"&");h&&(H1(),YhY(h))}catch(e){}}; Kcc=function(G,B,a){a=a===void 0?{}:a;this.error=G;this.context=B.context;this.msg=B.message||"";this.id=B.id||"jserror";this.meta=a}; lzK=function(){var G=G===void 0?g.qY:G;return(G=G.performance)&&G.now&&G.timing?Math.floor(G.now()+G.timing.navigationStart):g.G$()}; k_g=function(){var G=G===void 0?g.qY:G;return(G=G.performance)&&G.now?G.now():null}; NNA=function(G,B,a){this.label=G;this.type=B;this.value=a;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; r$=function(){var G=window;this.events=[];this.X=G||g.qY;var B=null;G&&(G.google_js_reporting_queue=G.google_js_reporting_queue||[],this.events=G.google_js_reporting_queue,B=G.google_measure_js_timing);this.j=Z9()||(B!=null?B:Math.random()<1)}; dhz=function(G){G&&$Z&&Z9()&&($Z.clearMarks("goog_"+G.label+"_"+G.uniqueId+"_start"),$Z.clearMarks("goog_"+G.label+"_"+G.uniqueId+"_end"))}; Ccc=function(){var G=XP;this.j=qt;this.qv="jserror";this.CU=!0;this.V4=null;this.X=this.bx;this.UZ=G===void 0?null:G}; zUc=function(G,B,a){var V=ur;return D9(Sl().j.j,function(){try{if(V.UZ&&V.UZ.j){var x=V.UZ.start(G.toString(),3);var h=B();V.UZ.end(x)}else h=B()}catch(w){var e=V.CU;try{dhz(x),e=V.X(G,new QN(L6(w)),void 0,a)}catch(K){V.bx(217,K)}if(!e)throw w;}return h})()}; Te=function(G,B,a,V){return D9(Sl().j.j,function(){var x=g.Hz.apply(0,arguments);return zUc(G,function(){return B.apply(a,x)},V)})}; L6=function(G){var B=G.toString();G.name&&B.indexOf(G.name)==-1&&(B+=": "+G.name);G.message&&B.indexOf(G.message)==-1&&(B+=": "+G.message);if(G.stack)a:{G=G.stack;var a=B;try{G.indexOf(a)==-1&&(G=a+"\n"+G);for(var V;G!=V;)V=G,G=G.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");B=G.replace(/\n */g,"\n");break a}catch(x){B=a;break a}B=void 0}return B}; QN=function(G){Kcc.call(this,Error(G),{message:G})}; tJ9=function(){d$&&typeof d$.google_measure_js_timing!="undefined"&&(d$.google_measure_js_timing||XP.disable())}; mhA=function(G){ur.V4=function(B){g.kV(G,function(a){a(B)})}}; IzK=function(G,B){return zUc(G,B)}; s$=function(G,B){return Te(G,B)}; FP=function(G,B,a,V){ur.bx(G,B,a,V)}; JR=function(){return Date.now()-gHV}; p2b=function(){var G=Sl().C,B=AR>=0?JR()-AR:-1,a=YZ?JR()-ir:-1,V=P1>=0?JR()-P1:-1;if(G==947190542)return 100;if(G==79463069)return 200;G=[2E3,4E3];var x=[250,500,1E3];FP(637,Error(),.001);var h=B;a!=-1&&a1500&&V<4E3?500:e}; oY=function(G,B,a,V){this.top=G;this.right=B;this.bottom=a;this.left=V}; Mt=function(G){return G.right-G.left}; Gd=function(G,B){return G==B?!0:G&&B?G.top==B.top&&G.right==B.right&&G.bottom==B.bottom&&G.left==B.left:!1}; BO=function(G,B,a){B instanceof g.kj?(G.left+=B.x,G.right+=B.x,G.top+=B.y,G.bottom+=B.y):(G.left+=B,G.right+=B,typeof a==="number"&&(G.top+=a,G.bottom+=a));return G}; aq=function(G,B,a){var V=new oY(0,0,0,0);this.time=G;this.volume=null;this.C=B;this.j=V;this.X=a}; Vu=function(G,B,a,V,x,h,e,w){this.G=G;this.W=B;this.C=a;this.L=V;this.j=x;this.B=h;this.X=e;this.V=w}; OXB=function(G){var B=G!==G.top,a=G.top===Xa9(G),V=-1,x=0;if(B&&a&&G.top.mraid){V=3;var h=G.top.mraid}else V=(h=G.mraid)?B?a?2:1:0:-1;h&&(h.IS_GMA_SDK||(x=2),T3c(Uhb,function(e){return typeof h[e]==="function"})||(x=1)); return{HE:h,compatibility:x,BEH:V}}; EHc=function(){var G=window.document;return G&&typeof G.elementFromPoint==="function"}; jCc=function(G,B,a){G&&B!==null&&B!=B.top&&(B=B.top);try{return(a===void 0?0:a)?(new g.dU(B.innerWidth,B.innerHeight)).round():hlg(B||window).round()}catch(V){return new g.dU(-12245933,-12245933)}}; xa=function(G,B,a){try{G&&(B=B.top);var V=jCc(G,B,a),x=V.height,h=V.width;if(h===-12245933)return new oY(h,h,h,h);var e=WnA(X2(B.document).j),w=e.x,K=e.y;return new oY(K,w+h,K+x,w)}catch(l){return new oY(-12245933,-12245933,-12245933,-12245933)}}; g.hI=function(G,B,a,V){this.left=G;this.top=B;this.width=a;this.height=V}; e3=function(G,B){return G==B?!0:G&&B?G.left==B.left&&G.width==B.width&&G.top==B.top&&G.height==B.height:!1}; g.K4=function(G,B,a){if(typeof B==="string")(B=WO(G,B))&&(G.style[B]=a);else for(var V in B){a=G;var x=B[V],h=WO(a,V);h&&(a.style[h]=x)}}; WO=function(G,B){var a=bXV[B];if(!a){var V=rDz(B);a=V;G.style[V]===void 0&&(V=(g.Yj?"Webkit":ka?"Moz":null)+XqB(V),G.style[V]!==void 0&&(a=V));bXV[B]=a}return a}; g.NV=function(G,B){var a=G.style[rDz(B)];return typeof a!=="undefined"?a:G.style[WO(G,B)]||""}; dx=function(G,B){var a=rU(G);return a.defaultView&&a.defaultView.getComputedStyle&&(G=a.defaultView.getComputedStyle(G,null))?G[B]||G.getPropertyValue(B)||"":""}; C4=function(G,B){return dx(G,B)||(G.currentStyle?G.currentStyle[B]:null)||G.style&&G.style[B]}; g.tI=function(G,B,a){if(B instanceof g.kj){var V=B.x;B=B.y}else V=B,B=a;G.style.left=g.zd(V,!1);G.style.top=g.zd(B,!1)}; ml=function(G){try{return G.getBoundingClientRect()}catch(B){return{left:0,top:0,right:0,bottom:0}}}; yLH=function(G){var B=rU(G),a=C4(G,"position"),V=a=="fixed"||a=="absolute";for(G=G.parentNode;G&&G!=B;G=G.parentNode)if(G.nodeType==11&&G.host&&(G=G.host),a=C4(G,"position"),V=V&&a=="static"&&G!=B.documentElement&&G!=B.body,!V&&(G.scrollWidth>G.clientWidth||G.scrollHeight>G.clientHeight||a=="fixed"||a=="absolute"||a=="relative"))return G;return null}; g.Iq=function(G){var B=rU(G),a=new g.kj(0,0);if(G==(B?rU(B):document).documentElement)return a;G=ml(G);B=WnA(X2(B).j);a.x=G.left+B.x;a.y=G.top+B.y;return a}; nHx=function(G,B){var a=new g.kj(0,0),V=iQ(rU(G));if(!W7B(V,"parent"))return a;do{var x=V==B?g.Iq(G):cLY(G);a.x+=x.x;a.y+=x.y}while(V&&V!=B&&V!=V.parent&&(G=V.frameElement)&&(V=V.parent));return a}; g.gx=function(G,B){G=fzy(G);B=fzy(B);return new g.kj(G.x-B.x,G.y-B.y)}; cLY=function(G){G=ml(G);return new g.kj(G.left,G.top)}; fzy=function(G){if(G.nodeType==1)return cLY(G);G=G.changedTouches?G.changedTouches[0]:G;return new g.kj(G.clientX,G.clientY)}; g.p4=function(G,B,a){if(B instanceof g.dU)a=B.height,B=B.width;else if(a==void 0)throw Error("missing height argument");G.style.width=g.zd(B,!0);G.style.height=g.zd(a,!0)}; g.zd=function(G,B){typeof G=="number"&&(G=(B?Math.round(G):G)+"px");return G}; g.UK=function(G){var B=HXB;if(C4(G,"display")!="none")return B(G);var a=G.style,V=a.display,x=a.visibility,h=a.position;a.visibility="hidden";a.position="absolute";a.display="inline";G=B(G);a.display=V;a.position=h;a.visibility=x;return G}; HXB=function(G){var B=G.offsetWidth,a=G.offsetHeight,V=g.Yj&&!B&&!a;return(B===void 0||V)&&G.getBoundingClientRect?(G=ml(G),new g.dU(G.right-G.left,G.bottom-G.top)):new g.dU(B,a)}; g.OK=function(G,B){G.style.display=B?"":"none"}; EK=function(G,B){B=Math.pow(10,B);return Math.floor(G*B)/B}; vHK=function(G){return new oY(G.top,G.right,G.bottom,G.left)}; Dhx=function(G){var B=G.top||0,a=G.left||0;return new oY(B,a+(G.width||0),B+(G.height||0),a)}; j3=function(G){return G!=null&&G>=0&&G<=1}; SgB=function(){var G=g.ns();return G?bL("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(B){return jf(G,B)})||jf(G,"OMI/")&&!jf(G,"XiaoMi/")?!0:jf(G,"Presto")&&jf(G,"Linux")&&!jf(G,"X11")&&!jf(G,"Android")&&!jf(G,"Mobi"):!1}; RUg=function(){this.C=!IY(d$.top);this.isMobileDevice=mr()||vKK();var G=p6();this.domain=G.length>0&&G[G.length-1]!=null&&G[G.length-1].url!=null?g.rp(G[G.length-1].url)||"":"";this.j=new oY(0,0,0,0);this.G=new g.dU(0,0);this.B=new g.dU(0,0);this.W=new oY(0,0,0,0);this.frameOffset=new g.kj(0,0);this.L=0;this.V=!1;this.X=!(!d$||!OXB(d$).HE);this.update(d$)}; ZXc=function(G,B){B&&B.screen&&(G.G=new g.dU(B.screen.width,B.screen.height))}; rLA=function(G,B){a:{var a=G.j?new g.dU(Mt(G.j),G.j.getHeight()):new g.dU(0,0);B=B===void 0?d$:B;B!==null&&B!=B.top&&(B=B.top);var V=0,x=0;try{var h=B.document,e=h.body,w=h.documentElement;if(h.compatMode=="CSS1Compat"&&w.scrollHeight)V=w.scrollHeight!=a.height?w.scrollHeight:w.offsetHeight,x=w.scrollWidth!=a.width?w.scrollWidth:w.offsetWidth;else{var K=w.scrollHeight,l=w.scrollWidth,k=w.offsetHeight,N=w.offsetWidth;w.clientHeight!=k&&(K=e.scrollHeight,l=e.scrollWidth,k=e.offsetHeight,N=e.offsetWidth); K>a.height?K>k?(V=K,x=l):(V=k,x=N):K0||G.V)return!0;G=H1().X.isVisible();var B=tR(vO)===0;return G||B}; HO=function(){return n6(RUg)}; S3=function(G){this.C=G;this.X=0;this.j=null}; Rq=function(G,B,a){this.C=G;this.SJ=a===void 0?"na":a;this.B=[];this.isInitialized=!1;this.G=new aq(-1,!0,this);this.j=this;this.V=B;this.zH=this.Y=!1;this.Zx="uk";this.GH=!1;this.L=!0}; Zc=function(G,B){g.YC(G.B,B)||(G.B.push(B),B.aN(G.j),B.TD(G.G),B.fu()&&(G.Y=!0))}; $hc=function(G){G=G.j;G.eR();G.Dy();var B=HO();B.W=xa(!1,G.C,B.isMobileDevice);rLA(HO(),G.C);G.G.j=G.TJ()}; X2_=function(G){G.Y=G.B.length?bL(G.B,function(B){return B.fu()}):!1}; qgA=function(G){var B=g.Gv(G.B);g.kV(B,function(a){a.TD(G.G)})}; rx=function(G){var B=g.Gv(G.B);g.kV(B,function(a){a.aN(G.j)}); G.j!=G||qgA(G)}; $a=function(G,B,a,V){this.element=G;this.j=new oY(0,0,0,0);this.C=null;this.L=new oY(0,0,0,0);this.X=B;this.QK=a;this.GH=V;this.HS=!1;this.timestamp=-1;this.Y=new Vu(B.G,this.element,this.j,new oY(0,0,0,0),0,0,JR(),0);this.B=void 0}; uwX=function(G,B){return G.B?new oY(Math.max(B.top+G.B.top,B.top),Math.min(B.left+G.B.right,B.right),Math.min(B.top+G.B.bottom,B.bottom),Math.max(B.left+G.B.left,B.left)):B.clone()}; XT=function(G){this.B=!1;this.j=G;this.G=function(){}}; QCY=function(G,B,a){this.C=a===void 0?0:a;this.X=G;this.j=B==null?"":B}; LcV=function(G){switch(Math.trunc(G.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; TNy=function(G,B){return G.CB.C?!1:G.XB.X?!1:typeof G.jtypeof B.j?!1:G.j0?V[a]-V[a-1]:V[a]})}; iL=function(){this.X=new Td;this.SJ=this.Qb=0;this.Er=new L4;this.XJ=this.W=-1;this.Vb=1E3;this.eJ=new Td([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Zx=this.HS=-1}; PO=function(G,B){return GUH(G.X,B===void 0?!0:B)}; oq=function(G,B,a,V){var x=x===void 0?!1:x;a=Te(V,a);ze(G,B,a,{capture:x})}; GR=function(G,B){B=MV(B);return B===0?0:MV(G)/B}; MV=function(G){return Math.max(G.bottom-G.top,0)*Math.max(G.right-G.left,0)}; VvV=function(G,B){if(!G||!B)return!1;for(var a=0;G!==null&&a++<100;){if(G===B)return!0;try{if(G=G.parentElement||G){var V=rU(G),x=V&&iQ(V),h=x&&x.frameElement;h&&(G=h)}}catch(e){break}}return!1}; xo9=function(G,B,a){if(!G||!B)return!1;B=BO(G.clone(),-B.left,-B.top);G=(B.left+B.right)/2;B=(B.top+B.bottom)/2;IY(window.top)&&window.top&&window.top.document&&(window=window.top);if(!EHc())return!1;G=window.document.elementFromPoint(G,B);if(!G)return!1;B=(B=(B=rU(a))&&B.defaultView&&B.defaultView.frameElement)&&VvV(B,G);var V=G===a;G=!V&&G&&Wi(G,function(x){return x===a}); return!(B||V||G)}; hey=function(G,B,a,V){return HO().C?!1:Mt(G)<=0||G.getHeight()<=0?!0:a&&V?IzK(208,function(){return xo9(G,B,a)}):!1}; Bd=function(G,B,a){g.r.call(this);this.position=eey.clone();this.Dk=this.qA();this.ix=-2;this.timeCreated=Date.now();this.LC=-1;this.N7=B;this.tM=null;this.QQ=!1;this.QB=null;this.opacity=-1;this.requestSource=a;this.Xrn=!1;this.Tl=function(){}; this.aP=function(){}; this.A$=new nKY;this.A$.Om=G;this.A$.j=G;this.hJ=!1;this.Np={KV:null,Eq:null};this.nJ=!0;this.gp=null;this.z7=this.ZhN=!1;Sl().L++;this.Br=this.YN();this.ZP=-1;this.Ux=null;this.hasCompleted=this.ddd=!1;this.QK=new xZ;cux(this.QK);WXc(this);this.requestSource==1?el(this.QK,"od",1):el(this.QK,"od",0)}; WXc=function(G){G=G.A$.Om;var B;if(B=G&&G.getAttribute)B=/-[a-z]/.test("googleAvInapp")?!1:wRX&&G.dataset?"googleAvInapp"in G.dataset:G.hasAttribute?G.hasAttribute("data-"+$2g()):!!G.getAttribute("data-"+$2g());B&&(HO().X=!0)}; aK=function(G,B){B!=G.z7&&(G.z7=B,G=HO(),B?G.L++:G.L>0&&G.L--)}; KXz=function(G,B){if(G.Ux){if(B.getName()===G.Ux.getName())return;G.Ux.dispose();G.Ux=null}B=B.create(G.A$.j,G.QK,G.fu());if(B=B!=null&&B.observe()?B:null)G.Ux=B}; lfB=function(G,B,a){if(!G.tM||G.N7==-1||B.X===-1||G.tM.X===-1)return 0;G=B.X-G.tM.X;return G>a?0:G}; kUg=function(G,B,a){if(G.Ux){G.Ux.UY();var V=G.Ux.Y,x=V.G,h=x.j;if(V.L!=null){var e=V.C;G.QB=new g.kj(e.left-h.left,e.top-h.top)}h=G.XW()?Math.max(V.j,V.B):V.j;e={};x.volume!==null&&(e.volume=x.volume);x=G.vu(V);G.tM=V;G.uL(h,B,a,!1,e,x,V.V)}}; NjV=function(G){if(G.QQ&&G.gp){var B=W1(G.QK,"od")==1,a=HO().j,V=G.gp,x=G.Ux?G.Ux.getName():"ns",h=G.QB,e=new g.dU(Mt(a),a.getHeight());a=G.XW();G={lB1:x,QB:h,hbb:e,XW:a,x_:G.Br.x_,L5d:B};if(B=V.X){B.UY();x=B.Y;h=x.G.j;var w=e=null;x.L!=null&&h&&(e=x.C,e=new g.kj(e.left-h.left,e.top-h.top),w=new g.dU(h.right-h.left,h.bottom-h.top));x=a?Math.max(x.j,x.B):x.j;a={lB1:B.getName(),QB:e,hbb:w,XW:a,L5d:!1,x_:x}}else a=null;a&&Pc_(V,G,a)}}; doK=function(G,B,a){B&&(G.Tl=B);a&&(G.aP=a)}; g.Vc=function(){}; g.xm=function(G){return{value:G,done:!1}}; CAK=function(){this.G=this.j=this.C=this.X=this.B=0}; zex=function(G){var B={};var a=g.G$()-G.B;B=(B.ptlt=a,B);(a=G.X)&&(B.pnk=a);(a=G.C)&&(B.pnc=a);(a=G.G)&&(B.pnmm=a);(G=G.j)&&(B.pns=G);return B}; tvg=function(){Mo.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; hc=function(G){return j3(G.volume)&&G.volume>0}; ep=function(G,B,a,V){a=a===void 0?!0:a;V=V===void 0?function(){return!0}:V; return function(x){var h=x[G];if(Array.isArray(h)&&V(x))return moy(h,B,a)}}; Wd=function(G,B){return function(a){return B(a)?a[G]:void 0}}; IfB=function(G){return function(B){for(var a=0;a0?h[x-1]+1:0,V+1).reduce(function(e,w){return e+w},0)})}; gOy=function(){this.X=this.j=""}; pRV=function(){}; Kt=function(G,B){var a={};if(G!==void 0)if(B!=null)for(var V in B){var x=B[V];V in Object.prototype||x!=null&&(a[V]=typeof x==="function"?x(G):G[x])}else g.vM(a,G);return Qu(uL(new qV,a))}; UoY=function(){var G={};this.X=(G.vs=[1,0],G.vw=[0,1],G.am=[2,2],G.a=[4,4],G.f=[8,8],G.bm=[16,16],G.b=[32,32],G.avw=[0,64],G.avs=[64,0],G.pv=[256,256],G.gdr=[0,512],G.p=[0,1024],G.r=[0,2048],G.m=[0,4096],G.um=[0,8192],G.ef=[0,16384],G.s=[0,32768],G.pmx=[0,16777216],G.mut=[33554432,33554432],G.umutb=[67108864,67108864],G.tvoff=[134217728,134217728],G);this.j={};for(var B in this.X)this.X[B][1]>0&&(this.j[B]=0);this.C=0}; lG=function(G,B){var a=G.X[B],V=a[1];G.C+=a[0];V>0&&G.j[B]==0&&(G.j[B]=1)}; OcK=function(G){var B=g.Ou(G.X),a=0,V;for(V in G.j)g.YC(B,V)&&G.j[V]==1&&(a+=G.X[V][1],G.j[V]=2);return a}; EOc=function(G){var B=0,a;for(a in G.j){var V=G.j[a];if(V==1||V==2)B+=G.X[a][1]}return B}; km=function(){this.j=this.X=0}; N7=function(){iL.call(this);this.C=new L4;this.qB=this.Y=this.GH=0;this.V=-1;this.Dx=new L4;this.B=new L4;this.j=new Td;this.L=this.G=-1;this.zH=new L4;this.Vb=2E3;this.LN=new km;this.MB=new km;this.Ur=new km}; db=function(G,B,a){var V=G.qB;YZ||a||G.V==-1||(V+=B-G.V);return V}; jQK=function(){this.C=!1}; Ct=function(G,B){this.C=!1;this.G=G;this.Y=B;this.B=0}; zR=function(G,B){Ct.call(this,G,B);this.W=[]}; bc9=function(){}; tc=function(){}; m8=function(G,B,a,V){$a.call(this,G,B,a,V)}; IK=function(G,B,a){$a.call(this,null,G,B,a);this.V=G.isActive();this.W=0}; gb=function(G){return[G.top,G.left,G.bottom,G.right]}; pt=function(G,B,a,V,x,h){h=h===void 0?new tc:h;Bd.call(this,B,a,V);this.VL=x;this.FV=0;this.EK={};this.jf=new UoY;this.Rp={};this.GF="";this.Ur=null;this.fh=!1;this.j=[];this.EU=h.X();this.L=h.C();this.G=null;this.C=-1;this.SJ=this.Y=void 0;this.XJ=this.zH=0;this.Zx=-1;this.Vb=this.MB=!1;this.GH=this.V=this.X=this.Rd=this.Yf=0;new Td;this.LN=this.qB=0;this.Er=-1;this.aY=0;this.W=g.kK;this.HS=[this.qA()];this.Md=2;this.s6={};this.s6.pause="p";this.s6.resume="r";this.s6.skip="s";this.s6.mute="m";this.s6.unmute= "um";this.s6.exitfullscreen="ef";this.B=null;this.eJ=this.Dx=!1;this.QW=Math.floor(Date.now()/1E3-1704067200);this.Qb=0}; U9=function(G){G.hasCompleted=!0;G.aY!=0&&(G.aY=3)}; O9=function(G){return G===void 0?G:Number(G)?EK(G,3):0}; E9=function(G,B){return G.HS[B!=null&&BMath.max(1E4,G.C/3)?0:B);var a=G.W(G)||{};a=a.currentTime!==void 0?a.currentTime:G.zH;var V=a-G.zH,x=0;V>=0?(G.XJ+=B,G.LN+=Math.max(B-V,0),x=Math.min(V,G.XJ)):G.qB+=Math.abs(V);V!=0&&(G.XJ=0);G.Er==-1&&V>0&&(G.Er=P1>=0?JR()-P1:-1);G.zH=a;return x}; nOX=function(G,B){bL(G.L,function(a){return a.G==B.G})||G.L.push(B)}; ffB=function(G){var B=JI(G.wR().j,1);return jp(G,B)}; jp=function(G,B,a){return B>=15E3?!0:G.MB?(a===void 0?0:a)?!0:G.C>0?B>=G.C/2:G.Zx>0?B>=G.Zx:!1:!1}; HcV=function(G){var B=EK(G.Br.x_,2),a=G.jf.C,V=G.Br,x=E9(G),h=O9(x.G),e=O9(x.L),w=O9(V.volume),K=EK(x.W,2),l=EK(x.XJ,2),k=EK(V.x_,2),N=EK(x.HS,2),d=EK(x.Zx,2);V=EK(V.z2,2);var C=G.HM().clone().round();G=G.Ux&&G.Ux.C?(G.Ux?G.Ux.C:null).clone().round():null;x=PO(x,!1);return{SKn:B,Lm:a,FY:h,Oj:e,p5:w,zp:K,P2:l,x_:k,CY:N,Vw:d,z2:V,position:C,Xd:G,cX:x}}; DoB=function(G,B){vOB(G.j,B,function(){return{SKn:0,Lm:void 0,FY:-1,Oj:-1,p5:-1,zp:-1,P2:-1,x_:-1,CY:-1,Vw:-1,z2:-1,position:void 0,Xd:void 0,cX:[]}}); G.j[B]=HcV(G)}; vOB=function(G,B,a){for(var V=G.length;V0?1:0;N.atos= sK(l.j);N.ssb=sK(l.eJ,!1);N.amtos=GUH(l.j,!1);N.uac=G.Yf;N.vpt=l.C.j;k=="nio"&&(N.nio=1,N.avms="nio");N.gmm="4";N.gdr=jp(G,l.C.j,!0)?1:0;N.efpf=G.Md;if(k=="gsv"||k=="nis")k=G.Ux,k.W>0&&(N.nnut=k.W);N.tcm=yfV(G);N.nmt=G.qB;N.bt=G.LN;N.pst=G.Er;N.vpaid=G.Y;N.dur=G.C;N.vmtime=G.zH;N.is=G.jf.C;G.j.length>=1&&(N.i0=G.j[0].Lm,N.a0=[G.j[0].p5],N.c0=[G.j[0].x_],N.ss0=[G.j[0].z2],k=G.j[0].position,h=G.j[0].Xd,N.p0=k?gb(k):void 0,k&&h&&!Gd(h,k)&&(N.cp0=gb(h)));G.j.length>=2&&(N.i1=G.j[1].Lm,N.a1=cd(G.j[1].FY, G.j[1].p5,G.j[1].Oj),N.c1=cd(G.j[1].zp,G.j[1].x_,G.j[1].P2),N.ss1=cd(G.j[1].CY,G.j[1].z2,G.j[1].Vw),k=G.j[1].position,h=G.j[1].Xd,N.p1=k?gb(k):void 0,k&&h&&!Gd(h,k)&&(N.cp1=gb(h)),N.mtos1=G.j[1].cX);G.j.length>=3&&(N.i2=G.j[2].Lm,N.a2=cd(G.j[2].FY,G.j[2].p5,G.j[2].Oj),N.c2=cd(G.j[2].zp,G.j[2].x_,G.j[2].P2),N.ss2=cd(G.j[2].CY,G.j[2].z2,G.j[2].Vw),k=G.j[2].position,h=G.j[2].Xd,N.p2=k?gb(k):void 0,k&&h&&!Gd(h,k)&&(N.cp2=gb(h)),N.mtos2=G.j[2].cX);G.j.length>=4&&(N.i3=G.j[3].Lm,N.a3=cd(G.j[3].FY,G.j[3].p5, G.j[3].Oj),N.c3=cd(G.j[3].zp,G.j[3].x_,G.j[3].P2),N.ss3=cd(G.j[3].CY,G.j[3].z2,G.j[3].Vw),k=G.j[3].position,h=G.j[3].Xd,N.p3=k?gb(k):void 0,k&&h&&!Gd(h,k)&&(N.cp3=gb(h)),N.mtos3=G.j[3].cX);N.cs=EOc(G.jf);B&&(N.ic=OcK(G.jf),N.dvpt=l.C.X,N.dvs=Ya(l.X,.5),N.dfvs=Ya(l.X,1),N.davs=Ya(l.j,.5),N.dafvs=Ya(l.j,1),a&&(l.C.X=0,BjB(l.X),BjB(l.j)),G.Sz()&&(N.dtos=l.GH,N.dav=l.Y,N.dtoss=G.FV+1,a&&(l.GH=0,l.Y=0,G.FV++)),N.dat=l.B.X,N.dft=l.zH.X,a&&(l.B.X=0,l.zH.X=0));N.ps=[w.B.width,w.B.height];N.bs=[Mt(w.j),w.j.getHeight()]; N.scs=[w.G.width,w.G.height];N.dom=w.domain;G.Rd&&(N.vds=G.Rd);if(G.L.length>0||G.EU)B=g.Gv(G.L),G.EU&&B.push(G.EU),N.pings=g.br(B,function(d){return d.toString()}); B=g.br(g.wb(G.L,function(d){return d.L()}),function(d){return d.getId()}); BlH(B);N.ces=B;G.X&&(N.vmer=G.X);G.V&&(N.vmmk=G.V);G.GH&&(N.vmiec=G.GH);N.avms=G.Ux?G.Ux.getName():"ns";G.Ux&&g.vM(N,G.Ux.vM());V?(N.c=EK(G.Br.x_,2),N.ss=EK(G.Br.z2,2)):N.tth=JR()-rfx;N.mc=EK(l.XJ,2);N.nc=EK(l.W,2);N.mv=O9(l.L);N.nv=O9(l.G);N.lte=EK(G.ix,2);V=E9(G,x);PO(l);N.qmtos=PO(V);N.qnc=EK(V.W,2);N.qmv=O9(V.L);N.qnv=O9(V.G);N.qas=V.G>0?1:0;N.qi=G.GF;N.avms||(N.avms="geo");N.psm=l.LN.j;N.psv=l.LN.getValue();N.psfv=l.MB.getValue();N.psa=l.Ur.getValue();K=bJb(K.QK);K.length&&(N.veid=K);G.B&&g.vM(N, zex(G.B));N.avas=G.ib();N.vs=G.Bu();N.co=$oV(G);N.tm=l.Qb;N.tu=l.SJ;return N}; SWc=function(G,B){if(g.YC(XR9,B))return!0;var a=G.EK[B];return a!==void 0?(G.EK[B]=!0,!a):!1}; $oV=function(G){var B=G.Qb.toString(10).padStart(2,"0");B=""+G.QW+B;G.Qb<99&&G.Qb++;return B}; uNK=function(){this.j={};var G=iQ();nt(this,G,document);var B=qWB();try{if("1"==B){for(var a=G.parent;a!=G.top;a=a.parent)nt(this,a,a.document);nt(this,G.top,G.top.document)}}catch(V){}}; qWB=function(){var G=document.documentElement;try{if(!IY(iQ().top))return"2";var B=[],a=iQ(G.ownerDocument);for(G=a;G!=a.top;G=G.parent)if(G.frameElement)B.push(G.frameElement);else break;return B&&B.length!=0?"1":"0"}catch(V){return"2"}}; nt=function(G,B,a){oq(a,"mousedown",function(){return QQg(G)},301); oq(B,"scroll",function(){return LX_(G)},302); oq(a,"touchmove",function(){return Tjy(G)},303); oq(a,"mousemove",function(){return sQX(G)},304); oq(a,"keydown",function(){return FXB(G)},305)}; QQg=function(G){g.t$(G.j,function(B){B.C>1E5||++B.C})}; LX_=function(G){g.t$(G.j,function(B){B.j>1E5||++B.j})}; Tjy=function(G){g.t$(G.j,function(B){B.j>1E5||++B.j})}; FXB=function(G){g.t$(G.j,function(B){B.X>1E5||++B.X})}; sQX=function(G){g.t$(G.j,function(B){B.G>1E5||++B.G})}; JfK=function(){this.j=[];this.X=[]}; ft=function(G,B){return g.JJ(G.j,function(a){return a.GF==B})}; Af9=function(G,B){return B?g.JJ(G.j,function(a){return a.A$.Om==B}):null}; YWy=function(G,B){return g.JJ(G.X,function(a){return a.uy()==2&&a.GF==B})}; vd=function(){var G=Hd;return G.j.length==0?G.X:G.X.length==0?G.j:g.M9(G.X,G.j)}; ic_=function(G,B){G=B.uy()==1?G.j:G.X;var a=Fh(G,function(V){return V==B}); return a!=-1?(G.splice(a,1),B.Ux&&B.Ux.unobserve(),B.dispose(),!0):!1}; PAX=function(G){var B=Hd;if(ic_(B,G)){switch(G.uy()){case 0:var a=function(){return null}; case 2:a=function(){return YWy(B,G.GF)}; break;case 1:a=function(){return ft(B,G.GF)}}for(var V=a();V;V=a())ic_(B,V)}}; oOx=function(G){var B=Hd;G=g.wb(G,function(a){return!Af9(B,a.A$.Om)}); B.j.push.apply(B.j,g.U(G))}; Mv9=function(G){var B=[];g.kV(G,function(a){bL(Hd.j,function(V){return V.A$.Om===a.A$.Om&&V.GF===a.GF})||(Hd.j.push(a),B.push(a))})}; Dp=function(){this.j=this.X=null}; GeB=function(G,B){function a(V,x){B(V,x)} if(G.X==null)return!1;G.j=g.JJ(G.X,function(V){return V!=null&&V.N2()}); G.j&&(G.j.init(a)?$hc(G.j.j):B(G.j.j.W_(),G.j));return G.j!=null}; Sp=function(G){G=B$x(G);XT.call(this,G.length?G[G.length-1]:new Rq(d$,0));this.C=G;this.X=null}; B$x=function(G){if(!G.length)return[];G=(0,g.wb)(G,function(a){return a!=null&&a.Id()}); for(var B=1;Ba.time?B:a},G[0])}; $m=function(G){G=G===void 0?d$:G;XT.call(this,new Rq(G,2))}; Xj=function(){var G=hxA();Rq.call(this,d$.top,G,"geo")}; hxA=function(){Sl();var G=HO();return G.C||G.X?0:2}; exx=function(){}; q7=function(){this.done=!1;this.j={Ot:0,ov:0,hi1:0,AQ:0,lN:-1,hD:0,S8:0,W5:0,xHl:0};this.B=null;this.L=!1;this.C=null;this.W=0;this.X=new S3(this)}; Qc=function(){var G=uG;G.L||(G.L=!0,Wrc(G,function(){return G.G.apply(G,g.U(g.Hz.apply(0,arguments)))}),G.G())}; w19=function(){n6(exx);var G=n6(Dp);G.j!=null&&G.j.j?$hc(G.j.j):HO().update(d$)}; Lt=function(G,B,a){if(!G.done&&(G.X.cancel(),B.length!=0)){G.C=null;try{w19();var V=JR();Sl().B=V;if(n6(Dp).j!=null)for(var x=0;x=0?JR()-AR:-1,w=JR();x.j.lN==-1&&(e=w);var K=HO(),l=Sl(),k=w$(l.QK),N=vd();try{if(N.length>0){var d=K.j;d&&(k.bs=[Mt(d),d.getHeight()]);var C=K.B;C&&(k.ps=[C.width,C.height]);d$.screen&&(k.scs=[d$.screen.width,d$.screen.height])}else k.url=encodeURIComponent(d$.location.href.substring(0,512)),h.referrer&&(k.referrer=encodeURIComponent(h.referrer.substring(0,512))); k.tt=e;k.pt=AR;k.bin=l.X;d$.google_osd_load_pub_page_exp!==void 0&&(k.olpp=d$.google_osd_load_pub_page_exp);k.deb=[1,x.j.Ot,x.j.ov,x.j.AQ,x.j.lN,0,x.X.X,x.j.hD,x.j.S8,x.j.W5,x.j.xHl,-1].join(";");k.tvt=l9Y(x,w);K.X&&(k.inapp=1);if(d$!==null&&d$!=d$.top){N.length>0&&(k.iframe_loc=encodeURIComponent(d$.location.href.substring(0,512)));var z=K.W;k.is=[Mt(z),z.getHeight()]}}catch(p){k.error=1}uG.C=k}d=g.fo(uG.C);C=Sl().j;W1(C.C,"prf")==1?(z=new v1,x=C.j,h=0,x.j>-1&&(h=x.C.j.now()-x.j),z=AD(z,1,xe(x.G+ h),0),x=C.j,z=AD(z,5,w3(x.j>-1?x.X+1:x.X),0),z=AD(z,2,IU(C.X.j.C()),"0"),z=AD(z,3,IU(C.X.j.X()),"0"),C=AD(z,4,IU(C.X.j.j()),"0"),z={},C=(z.pf=g.md(C.j()),z)):C={};g.vM(d,C);g.vM(B,V,a,d,G())}])}; dtH=function(){var G=N$A||d$;if(!G)return"";var B=[];if(!G.location||!G.location.href)return"";B.push("url="+encodeURIComponent(G.location.href.substring(0,512)));G.document&&G.document.referrer&&B.push("referrer="+encodeURIComponent(G.document.referrer.substring(0,512)));return B.join("&")}; TR=function(){var G="youtube.player.web_20250304_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250304_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250304_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250304_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),B;if(((B=G)==null?void 0:B.length)==2)return G[1];G="youtube.player.web_20250304_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var a;return((a=G)==null?void 0:a.length)==3?"20"+G[1]+G[2]:null}; CrK=function(){return"av.default_js".includes("ima_html5_sdk")?{Gg:"ima",kz:null}:"av.default_js".includes("ima_native_sdk")?{Gg:"nima",kz:null}:"av.default_js".includes("admob-native-video-javascript")?{Gg:"an",kz:null}:"youtube.player.web_20250304_00_RC00".includes("cast_js_sdk")?{Gg:"cast",kz:TR()}:"youtube.player.web_20250304_00_RC00".includes("youtube.player.web")?{Gg:"yw",kz:TR()}:"youtube.player.web_20250304_00_RC00".includes("outstream_web_client")?{Gg:"out",kz:TR()}:"youtube.player.web_20250304_00_RC00".includes("drx_rewarded_web")? {Gg:"r",kz:TR()}:"youtube.player.web_20250304_00_RC00".includes("gam_native_web_video")?{Gg:"n",kz:TR()}:"youtube.player.web_20250304_00_RC00".includes("admob_interstitial_video")?{Gg:"int",kz:TR()}:{Gg:"j",kz:null}}; Jc=function(G,B){var a={sv:"966"};s9!==null&&(a.v=s9);a.cb=zx9;a.nas=Hd.j.length;a.msg=G;B!==void 0&&(G=tlH(B))&&(a.e=Fj[G]);return a}; Ac=function(G){return ps(G,"custom_metric_viewable")}; tlH=function(G){var B=Ac(G)?"custom_metric_viewable":G.toLowerCase();return bQ(bG,function(a){return a==B})}; mtx=function(){this.j=void 0;this.X=!1;this.C=0;this.G=-1;this.B="tos"}; p1Y=function(G){try{var B=G.split(",");return B.length>g.Ou(I9B).length?null:c1(B,function(a,V){V=V.toLowerCase().split("=");if(V.length!=2||gZ_[V[0]]===void 0||!gZ_[V[0]](V[1]))throw Error("Entry ("+V[0]+", "+V[1]+") is invalid.");a[V[0]]=V[1];return a},{})}catch(a){return null}}; UtX=function(G,B){if(G.j==void 0)return 0;switch(G.B){case "mtos":return G.X?AI(B.j,G.j):AI(B.X,G.j);case "tos":return G.X?JI(B.j,G.j):JI(B.X,G.j)}return 0}; Ym=function(G,B,a,V){Ct.call(this,B,V);this.W=G;this.V=a}; iG=function(){}; Pd=function(G){Ct.call(this,"fully_viewable_audible_half_duration_impression",G)}; oK=function(G){this.j=G}; M7=function(G,B){Ct.call(this,G,B)}; G3=function(G){zR.call(this,"measurable_impression",G)}; BG=function(){oK.apply(this,arguments)}; aX=function(G,B,a){IK.call(this,G,B,a)}; VP=function(G){G=G===void 0?d$:G;XT.call(this,new Rq(G,2))}; x0=function(G,B,a){IK.call(this,G,B,a)}; h8=function(G){G=G===void 0?d$:G;XT.call(this,new Rq(G,2))}; e6=function(){Rq.call(this,d$,2,"mraid");this.LN=0;this.XJ=this.HS=!1;this.W=null;this.X=OXB(this.C);this.G.j=new oY(0,0,0,0);this.Qb=!1}; WG=function(G,B,a){G.TW("addEventListener",B,a)}; b6z=function(G){Sl().G=!!G.TW("isViewable");WG(G,"viewableChange",O6x);G.TW("getState")==="loading"?WG(G,"ready",EZb):jYH(G)}; jYH=function(G){typeof G.X.HE.AFMA_LIDAR==="string"?(G.HS=!0,yRH(G)):(G.X.compatibility=3,G.W="nc",G.yH("w"))}; yRH=function(G){G.XJ=!1;var B=W1(Sl().QK,"rmmt")==1,a=!!G.TW("isViewable");(B?!a:1)&&H1().setTimeout(s$(524,function(){G.XJ||(cRK(G),FP(540,Error()),G.W="mt",G.yH("w"))}),500); nZc(G);WG(G,G.X.HE.AFMA_LIDAR,f9g)}; nZc=function(G){var B=W1(Sl().QK,"sneio")==1,a=G.X.HE.AFMA_LIDAR_EXP_1!==void 0,V=G.X.HE.AFMA_LIDAR_EXP_2!==void 0;(B=B&&V)&&(G.X.HE.AFMA_LIDAR_EXP_2=!0);a&&(G.X.HE.AFMA_LIDAR_EXP_1=!B)}; cRK=function(G){G.TW("removeEventListener",G.X.HE.AFMA_LIDAR,f9g);G.HS=!1}; H6V=function(G,B){if(G.TW("getState")==="loading")return new g.dU(-1,-1);B=G.TW(B);if(!B)return new g.dU(-1,-1);G=parseInt(B.width,10);B=parseInt(B.height,10);return isNaN(G)||isNaN(B)?new g.dU(-1,-1):new g.dU(G,B)}; EZb=function(){try{var G=n6(e6);G.TW("removeEventListener","ready",EZb);jYH(G)}catch(B){FP(541,B)}}; f9g=function(G,B){try{var a=n6(e6);a.XJ=!0;var V=G?new oY(G.y,G.x+G.width,G.y+G.height,G.x):new oY(0,0,0,0);var x=JR(),h=Dc();var e=new aq(x,h,a);e.j=V;e.volume=B;a.TD(e)}catch(w){FP(542,w)}}; O6x=function(G){var B=Sl(),a=n6(e6);G&&!B.G&&(B.G=!0,a.Qb=!0,a.W&&a.yH("w",!0))}; wA=function(){this.isInitialized=!1;this.j=this.X=null;var G={};this.W=(G.start=this.gfS,G.firstquartile=this.axb,G.midpoint=this.PL1,G.thirdquartile=this.DBB,G.complete=this.Ixf,G.error=this.UBH,G.pause=this.PJ,G.resume=this.fJ,G.skip=this.nfL,G.viewable_impression=this.q7,G.mute=this.r9,G.unmute=this.r9,G.fullscreen=this.pSd,G.exitfullscreen=this.ONJ,G.fully_viewable_audible_half_duration_impression=this.q7,G.measurable_impression=this.q7,G.abandon=this.PJ,G.engagedview=this.q7,G.impression=this.q7, G.creativeview=this.q7,G.progress=this.r9,G.custom_metric_viewable=this.q7,G.bufferstart=this.PJ,G.bufferfinish=this.fJ,G.audio_measurable=this.q7,G.audio_audible=this.q7,G);G={};this.V=(G.overlay_resize=this.VJB,G.abandon=this.BH,G.close=this.BH,G.collapse=this.BH,G.overlay_unmeasurable_impression=function(B){return yc(B,"overlay_unmeasurable_impression",Dc())},G.overlay_viewable_immediate_impression=function(B){return yc(B,"overlay_viewable_immediate_impression",Dc())},G.overlay_unviewable_impression= function(B){return yc(B,"overlay_unviewable_impression",Dc())},G.overlay_viewable_end_of_session_impression=function(B){return yc(B,"overlay_viewable_end_of_session_impression",Dc())},G); Sl().X=3;vZX(this);this.C=null}; Ky=function(G,B,a,V){G=G.RZ(null,V,!0,B);G.G=a;oOx([G]);return G}; Dty=function(G,B,a){EKy(B);var V=G.j;g.kV(B,function(x){var h=g.br(x.criteria,function(e){var w=p1Y(e);if(w==null)e=null;else if(e=new mtx,w.visible!=null&&(e.j=w.visible/100),w.audible!=null&&(e.X=w.audible==1),w.time!=null){var K=w.timetype=="mtos"?"mtos":"tos",l=QyB(w.time,"%")?"%":"ms";w=parseInt(w.time,10);l=="%"&&(w/=100);e.setTime(w,l,K)}return e}); bL(h,function(e){return e==null})||nOX(a,new Ym(x.id,x.event,h,V))})}; S$c=function(){var G=[],B=Sl();G.push(n6(Xj));W1(B.QK,"mvp_lv")&&G.push(n6(e6));B=[new VP,new h8];B.push(new Sp(G));B.push(new $m(d$));return B}; Rxb=function(G){if(!G.isInitialized){G.isInitialized=!0;try{var B=JR(),a=Sl(),V=HO();AR=B;a.C=79463069;G.X!=="o"&&(N$A=Xa9(d$));if(iJy()){uG.j.ov=0;uG.j.lN=JR()-B;var x=S$c(),h=n6(Dp);h.X=x;GeB(h,function(){lC()})?uG.done||(KrK(),Zc(h.j.j,G),Qc()):V.C?lC():Qc()}else k0=!0}catch(e){throw Hd.reset(),e; }}}; dA=function(G){uG.X.cancel();N1=G;uG.done=!0}; Cy=function(G){if(G.X)return G.X;var B=n6(Dp).j;if(B)switch(B.getName()){case "nis":G.X="n";break;case "gsv":G.X="m"}G.X||(G.X="h");return G.X}; z3=function(G,B,a){if(G.j==null)return B.Rd|=4,!1;G=Z6b(G.j,a,B);B.Rd|=G;return G==0}; lC=function(){var G=[new $m(d$)],B=n6(Dp);B.X=G;GeB(B,function(){dA("i")})?uG.done||(KrK(),Qc()):dA("i")}; rRg=function(G,B){if(!G.fh){var a=yc(G,"start",Dc());a=G.VL.j(a).j;var V={id:"lidarv"};V.r=B;V.sv="966";s9!==null&&(V.v=s9);Xt(a,function(x,h){return V[x]=x=="mtos"||x=="tos"?h:encodeURIComponent(h)}); B=dtH();Xt(B,function(x,h){return V[x]=encodeURIComponent(h)}); B="//pagead2.googlesyndication.com/pagead/gen_204?"+Qu(uL(new qV,V));Ygb(B);G.fh=!0}}; t8=function(G,B,a){Lt(uG,[G],!Dc());DoB(G,a);a!=4&&vOB(G.HS,a,G.qA);return yc(G,B,Dc())}; vZX=function(G){kex(function(){var B=$tX();G.X!=null&&(B.sdk=G.X);var a=n6(Dp);a.j!=null&&(B.avms=a.j.getName());return B})}; X1Y=function(G,B,a,V){var x=Af9(Hd,a);x!==null&&x.GF!==B&&(G.nw(x),x=null);x||(B=G.RZ(a,JR(),!1,B),Hd.X.length==0&&(Sl().C=79463069),Mv9([B]),x=B,x.G=Cy(G),V&&(x.Ur=V));return x}; q$B=function(G,B){var a=G[B];a!==void 0&&a>0&&(G[B]=Math.floor(a*1E3))}; $tX=function(){var G=HO(),B={},a={},V={};return Object.assign({},(B.sv="966",B),s9!==null&&(a.v=s9,a),(V["if"]=G.C?"1":"0",V.nas=String(Hd.j.length),V))}; mK=function(G){Ct.call(this,"audio_audible",G)}; IX=function(G){zR.call(this,"audio_measurable",G)}; gA=function(){oK.apply(this,arguments)}; py=function(){}; uP_=function(G){this.j=G}; Z6b=function(G,B,a){G=G.X();if(typeof G==="function"){var V={};var x={};V=Object.assign({},s9!==null&&(V.v=s9,V),(x.sv="966",x.cb=zx9,x.e=QYX(B),x));x=yc(a,B,Dc());g.vM(V,x);a.Rp[B]=x;V=a.uy()==2?ALy(V).join("&"):a.VL.j(V).j;try{return G(a.GF,V,B),0}catch(h){return 2}}else return 1}; QYX=function(G){var B=Ac(G)?"custom_metric_viewable":G;G=bQ(bG,function(a){return a==B}); return Fj[G]}; Ur=function(){wA.call(this);this.L=null;this.B=!1;this.G="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; LrH=function(G,B,a){a=a.opt_configurable_tracking_events;G.j!=null&&Array.isArray(a)&&Dty(G,a,B)}; T$K=function(G,B,a){var V=ft(Hd,B);V||(V=a.opt_nativeTime||-1,V=Ky(G,B,Cy(G),V),a.opt_osdId&&(V.Ur=a.opt_osdId));return V}; sYB=function(G,B,a){var V=ft(Hd,B);V||(V=Ky(G,B,"n",a.opt_nativeTime||-1));return V}; FrX=function(G,B){var a=ft(Hd,B);a||(a=Ky(G,B,"h",-1));return a}; JRH=function(G){Sl();switch(Cy(G)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; i6c=function(G,B,a,V){a=a===void 0?{}:a;var x={};g.vM(x,{opt_adElement:void 0,opt_fullscreen:void 0},a);var h=G.PA(B,a);a=h?h.VL:G.P4();if(x.opt_bounds)return a.j(Jc("ol",V));if(V!==void 0)if(tlH(V)!==void 0)if(k0)G=Jc("ue",V);else if(Rxb(G),N1=="i")G=Jc("i",V),G["if"]=0;else if(B=G.PA(B,x)){b:{N1=="i"&&(B.hJ=!0);h=x.opt_fullscreen;h!==void 0&&aK(B,!!h);var e;if(h=!HO().X)(h=jf(g.ns(),"CrKey")&&!(jf(g.ns(),"CrKey")&&jf(g.ns(),"SmartSpeaker"))||jf(g.ns(),"PlayStation")||jf(g.ns(),"Roku")||SgB()||jf(g.ns(), "Xbox"))||(h=g.ns(),h=jf(h,"AppleTV")||jf(h,"Apple TV")||jf(h,"CFNetwork")||jf(h,"tvOS")),h||(h=g.ns(),h=jf(h,"sdk_google_atv_x86")||jf(h,"Android TV")),h=!h;h&&(H1(),h=tR(vO)===0);if(e=h){switch(B.uy()){case 1:rRg(B,"pv");break;case 2:G.Rc(B)}dA("pv")}h=V.toLowerCase();if(e=!e)e=W1(Sl().QK,"ssmol")&&h==="loaded"?!1:g.YC(ARX,h);if(e&&B.aY==0){N1!="i"&&(uG.done=!1);e=x!==void 0?x.opt_nativeTime:void 0;P1=e=typeof e==="number"?e:JR();B.QQ=!0;var w=Dc();B.aY=1;B.EK={};B.EK.start=!1;B.EK.firstquartile= !1;B.EK.midpoint=!1;B.EK.thirdquartile=!1;B.EK.complete=!1;B.EK.resume=!1;B.EK.pause=!1;B.EK.skip=!1;B.EK.mute=!1;B.EK.unmute=!1;B.EK.viewable_impression=!1;B.EK.measurable_impression=!1;B.EK.fully_viewable_audible_half_duration_impression=!1;B.EK.fullscreen=!1;B.EK.exitfullscreen=!1;B.FV=0;w||(B.wR().V=e);Lt(uG,[B],!w)}(e=B.s6[h])&&lG(B.jf,e);W1(Sl().QK,"fmd")||g.YC(Y$y,h)&&B.EU&&B.EU.X(B,null);switch(B.uy()){case 1:var K=Ac(h)?G.W.custom_metric_viewable:G.W[h];break;case 2:K=G.V[h]}if(K&&(V=K.call(G, B,x,V),W1(Sl().QK,"fmd")&&g.YC(Y$y,h)&&B.EU&&B.EU.X(B,null),V!==void 0)){x=Jc(void 0,h);g.vM(x,V);V=x;break b}V=void 0}B.aY==3&&G.nw(B);G=V}else G=Jc("nf",V);else G=void 0;else k0?G=Jc("ue"):h?(G=Jc(),g.vM(G,Rec(h,!0,!1,!1))):G=Jc("nf");return typeof G==="string"?a.j():a.j(G)}; Prg=function(G,B){B&&(G.G=B)}; oZc=function(G){var B={};return B.viewability=G.j,B.googleViewability=G.X,B}; Mlc=function(G,B,a){a=a===void 0?{}:a;G=i6c(n6(Ur),B,a,G);return oZc(G)}; Or=function(G){var B=g.Hz.apply(1,arguments).filter(function(V){return V}).join("&"); if(!B)return G;var a=G.match(/[?&]adurl=/);return a?G.slice(0,a.index+1)+B+"&"+G.slice(a.index+1):G+(G.indexOf("?")===-1?"?":"&")+B}; BxB=function(G){var B=G.url;G=G.yJd;this.j=B;this.W=G;G=/[?&]dsh=1(&|$)/.test(B);this.B=!G&&/[?&]ae=1(&|$)/.test(B);this.L=!G&&/[?&]ae=2(&|$)/.test(B);if((this.X=/[?&]adurl=([^&]*)/.exec(B))&&this.X[1]){try{var a=decodeURIComponent(this.X[1])}catch(V){a=null}this.C=a}this.G=(new Date).getTime()-Gdz}; acy=function(G){G=G.W;if(!G)return"";var B="";G.platform&&(B+="&uap="+encodeURIComponent(G.platform));G.platformVersion&&(B+="&uapv="+encodeURIComponent(G.platformVersion));G.uaFullVersion&&(B+="&uafv="+encodeURIComponent(G.uaFullVersion));G.architecture&&(B+="&uaa="+encodeURIComponent(G.architecture));G.model&&(B+="&uam="+encodeURIComponent(G.model));G.bitness&&(B+="&uab="+encodeURIComponent(G.bitness));G.fullVersionList&&(B+="&uafvl="+encodeURIComponent(G.fullVersionList.map(function(a){return encodeURIComponent(a.brand)+ ";"+encodeURIComponent(a.version)}).join("|"))); typeof G.wow64!=="undefined"&&(B+="&uaw="+Number(G.wow64));return B.substring(1)}; haA=function(G,B,a,V,x){var h=window;var e=e===void 0?!1:e;var w;a?w=(e===void 0?0:e)?"//ep1.adtrafficquality.google/bg/"+Yx(a)+".js":"//pagead2.googlesyndication.com/bg/"+Yx(a)+".js":w="";e=e===void 0?!1:e;a=h.document;var K={};B&&(K._scs_=B);K._bgu_=w;K._bgp_=V;K._li_="v_h.3.0.0.0";x&&(K._upb_=x);(B=h.GoogleTyFxhY)&&typeof B.push=="function"||(B=h.GoogleTyFxhY=[]);B.push(K);B=X2(a).createElement("SCRIPT");B.type="text/javascript";B.async=!0;G=(e===void 0?0:e)?avz(V3b,Yx(G)+".js"):avz(xVg,Yx(G)+ ".js");g.uR(B,G);(h=(h.GoogleTyFxhYEET||{})[B.src])?h():a.getElementsByTagName("head")[0].appendChild(B)}; eaB=function(){try{var G,B;return!!((G=window)==null?0:(B=G.top)==null?0:B.location.href)&&!1}catch(a){return!0}}; cG=function(){var G=WlV();G=G===void 0?"bevasrsg":G;return new Promise(function(B){var a=window===window.top?window:eaB()?window:window.top,V=a[G],x;((x=V)==null?0:x.bevasrs)?B(new bC(V.bevasrs)):(V||(V={},V=(V.nqfbel=[],V),a[G]=V),V.nqfbel.push(function(h){B(new bC(h))}))})}; wOz=function(G){var B={c:G.Xi,e:G.BZ,mc:G.t0,me:G.qf};G.Hr&&(B.co={c:G.Hr.ag,a:G.Hr.V3,s:G.Hr.mK});return B}; ny=function(G){g.r.call(this);this.wpc=G}; bC=function(G){g.r.call(this);var B=this;this.jS=G;this.C="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.j=void 0;this.IJ=this.jS.p;this.G=this.gr.bind(this);this.addOnDisposeCallback(function(){return void Klg(B)})}; lc_=function(G){var B;return g.v(function(a){if(a.j==1){if(!G.jS.wpc)throw new a2(30,"NWA");return G.X?a.return(G.X):g.f(a,G.jS.wpc(),2)}B=a.X;G.X=new ny(B);return a.return(G.X)})}; Klg=function(G){G.j!==void 0&&(G.C.forEach(function(B){var a;(a=G.j)==null||a.removeEventListener(B,G.G)}),G.j=void 0)}; dV9=function(G){if(g.O3(g.iR(G)))return!1;if(G.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var B=new g.lA(G)}catch(a){return g.JJ(kdB,function(V){return G.search(V)>0})!=null}return B.L.match(Nxx)?!0:g.JJ(kdB,function(a){return G.match(a)!=null})!=null}; g.fy=function(G,B){return G.replace(CLY,function(a,V){try{var x=g.cM(B,V);if(x==null||x.toString()==null)return a;x=x.toString();if(x==""||!g.O3(g.iR(x)))return encodeURIComponent(x).replace(/%2C/g,",")}catch(h){}return a})}; HG=function(G,B){return Object.is(G,B)}; Dq=function(G){var B=vG;vG=G;return B}; zag=function(G){if(G.Oy!==void 0){var B=S6;S6=!0;try{for(var a=g.m(G.Oy),V=a.next();!V.done;V=a.next()){var x=V.value;x.z9||(G=void 0,x.z9=!0,zag(x),(G=x.zs)==null||G.call(x,x))}}finally{S6=B}}}; t3y=function(){var G;return((G=vG)==null?void 0:G.jO)!==!1}; mV9=function(G){G&&(G.oL=0);return Dq(G)}; Icg=function(G,B){Dq(B);if(G&&G.JI!==void 0&&G.R1!==void 0&&G.Yh!==void 0){if(RX(G))for(B=G.oL;BG.oL;)G.JI.pop(),G.Yh.pop(),G.R1.pop()}}; pOY=function(G,B,a){gaB(G);if(G.Oy.length===0&&G.JI!==void 0)for(var V=0;V0}; UVy=function(G){G.JI!=null||(G.JI=[]);G.R1!=null||(G.R1=[]);G.Yh!=null||(G.Yh=[])}; gaB=function(G){G.Oy!=null||(G.Oy=[]);G.YS!=null||(G.YS=[])}; EaV=function(G){function B(){if(S6)throw Error("");if(vG!==null){var V=vG.oL++;UVy(vG);V0?" "+B:B))}}; g.eb=function(G,B){if(G.classList)Array.prototype.forEach.call(B,function(x){g.hi(G,x)}); else{var a={};Array.prototype.forEach.call(aR(G),function(x){a[x]=!0}); Array.prototype.forEach.call(B,function(x){a[x]=!0}); B="";for(var V in a)B+=B.length>0?" "+V:V;g.V_(G,B)}}; g.WC=function(G,B){G.classList?G.classList.remove(B):g.x$(G,B)&&g.V_(G,Array.prototype.filter.call(aR(G),function(a){return a!=B}).join(" "))}; g.wi=function(G,B){G.classList?Array.prototype.forEach.call(B,function(a){g.WC(G,a)}):g.V_(G,Array.prototype.filter.call(aR(G),function(a){return!g.YC(B,a)}).join(" "))}; g.Km=function(G,B,a){a?g.hi(G,B):g.WC(G,B)}; $VX=function(G,B){var a=!g.x$(G,B);g.Km(G,B,a)}; g.lu=function(){g.oL.call(this);this.j=0;this.endTime=this.startTime=null}; XOK=function(G,B){Array.isArray(B)||(B=[B]);B=B.map(function(a){return typeof a==="string"?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"}); g.K4(G,"transition",B.join(","))}; k$=function(G,B,a,V,x){g.lu.call(this);this.X=G;this.B=B;this.L=a;this.G=V;this.W=Array.isArray(x)?x:[x]}; qKA=function(G,B,a,V){return new k$(G,B,{opacity:a},{opacity:V},{property:"opacity",duration:B,timing:"ease-in",delay:0})}; QqX=function(G){G=ba(G);if(G=="")return null;var B=String(G.slice(0,4)).toLowerCase();if(("url("1||G&&G.split(")"),null;if(G.indexOf("(")>0){if(/"|'/.test(G))return null;B=/([\-\w]+)\(/g;for(var a;a=B.exec(G);)if(!(a[1].toLowerCase()in uTg))return null}return G}; N4=function(G,B){G=g.qY[G];return G&&G.prototype?(B=Object.getOwnPropertyDescriptor(G.prototype,B))&&B.get||null:null}; LlB=function(G){var B=g.qY.CSSStyleDeclaration;return B&&B.prototype&&B.prototype[G]||null}; TxV=function(G,B,a,V){if(G)return G.apply(B,V);if(g.di&&document.documentMode<10){if(!B[a].call)throw Error("IE Clobbering detected");}else if(typeof B[a]!="function")throw Error("Clobbering detected");return B[a].apply(B,V)}; YKb=function(G){if(!G)return"";var B=document.createElement("div").style;sqB(G).forEach(function(a){var V=g.Yj&&a in Flx?a:a.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");ps(V,"--")||ps(V,"var")||(a=TxV(JIK,G,G.getPropertyValue?"getPropertyValue":"getAttribute",[a])||"",a=QqX(a),a!=null&&TxV(AIX,B,B.setProperty?"setProperty":"setAttribute",[V,a]))}); return B.cssText||""}; sqB=function(G){g.Jg(G)?G=g.Gv(G):(G=g.Ou(G),g.PW(G,"cssText"));return G}; g.zV=function(G){var B,a=B=0,V=!1;G=G.split(i4B);for(var x=0;x.4?-1:1;return(B==0?null:B)==-1?"rtl":"ltr"}; g.gi=function(G){if(G instanceof ti||G instanceof mu||G instanceof IR)return G;if(typeof G.next=="function")return new ti(function(){return G}); if(typeof G[Symbol.iterator]=="function")return new ti(function(){return G[Symbol.iterator]()}); if(typeof G.fG=="function")return new ti(function(){return G.fG()}); throw Error("Not an iterator or iterable.");}; ti=function(G){this.X=G}; mu=function(G){this.X=G}; IR=function(G){ti.call(this,function(){return G}); this.C=G}; pm=function(G,B,a,V,x,h,e,w){this.j=G;this.W=B;this.C=a;this.B=V;this.G=x;this.L=h;this.X=e;this.V=w}; UJ=function(G,B){if(B==0)return G.j;if(B==1)return G.X;var a=wU(G.j,G.C,B),V=wU(G.C,G.G,B);G=wU(G.G,G.X,B);a=wU(a,V,B);V=wU(V,G,B);return wU(a,V,B)}; GRy=function(G,B){var a=(B-G.j)/(G.X-G.j);if(a<=0)return 0;if(a>=1)return 1;for(var V=0,x=1,h=0,e=0;e<8;e++){h=UJ(G,a);var w=(UJ(G,a+1E-6)-h)/1E-6;if(Math.abs(h-B)<1E-6)return a;if(Math.abs(w)<1E-6)break;else h1E-6&&e<8;e++)h=0}; g.bu=function(G){g.r.call(this);this.L=1;this.C=[];this.G=0;this.j=[];this.X={};this.W=!!G}; apx=function(G,B,a){g.KJ(function(){G.apply(B,a)})}; g.y_=function(G){this.j=G}; cC=function(G){this.j=G}; Vpy=function(G){this.data=G}; x7V=function(G){return G===void 0||G instanceof Vpy?G:new Vpy(G)}; nm=function(G){this.j=G}; g.hOV=function(G){var B=G.creation;G=G.expiration;return!!G&&Gg.G$()}; g.fm=function(G){this.j=G}; eO_=function(){}; HC=function(){}; vC=function(G){this.j=G;this.X=null}; DA=function(G){if(G.j==null)throw Error("Storage mechanism: Storage unavailable");var B;((B=G.X)!=null?B:G.isAvailable())||I2(Error("Storage mechanism: Storage unavailable"))}; Sb=function(){var G=null;try{G=g.qY.localStorage||null}catch(B){}vC.call(this,G)}; W8_=function(){var G=null;try{G=g.qY.sessionStorage||null}catch(B){}vC.call(this,G)}; RR=function(G,B){this.X=G;this.j=B+"::"}; g.ZA=function(G){var B=new Sb;return B.isAvailable()?G?new RR(B,G):B:null}; ri=function(G,B){this.j=G;this.X=B}; $$=function(G){this.j=[];if(G)a:{if(G instanceof $$){var B=G.eL();G=G.wB();if(this.j.length<=0){for(var a=this.j,V=0;V>>6:(h<65536?w[a++]=224|h>>>12:(w[a++]=240|h>>>18,w[a++]=128|h>>>12&63),w[a++]=128|h>>> 6&63),w[a++]=128|h&63);return w}; Q_=function(G){for(var B=G.length;--B>=0;)G[B]=0}; Lm=function(G,B,a,V,x){this.zB=G;this.SB=B;this.Bv=a;this.zq=V;this.afN=x;this.NV=G&&G.length}; TV=function(G,B){this.BU=G;this.E0=0;this.EJ=B}; sJ=function(G,B){G.uU[G.pending++]=B&255;G.uU[G.pending++]=B>>>8&255}; Ff=function(G,B,a){G.ML>16-a?(G.tC|=B<>16-G.ML,G.ML+=a-16):(G.tC|=B<>>=1,a<<=1;while(--B>0);return a>>>1}; NbK=function(G,B,a){var V=Array(16),x=0,h;for(h=1;h<=15;h++)V[h]=x=x+a[h-1]<<1;for(a=0;a<=B;a++)x=G[a*2+1],x!==0&&(G[a*2]=kR9(V[x]++,x))}; d7x=function(G){var B;for(B=0;B<286;B++)G.h$[B*2]=0;for(B=0;B<30;B++)G.XF[B*2]=0;for(B=0;B<19;B++)G.zF[B*2]=0;G.h$[512]=1;G.Vr=G.YG=0;G.nG=G.matches=0}; CGK=function(G){G.ML>8?sJ(G,G.tC):G.ML>0&&(G.uU[G.pending++]=G.tC);G.tC=0;G.ML=0}; zOA=function(G,B,a){CGK(G);sJ(G,a);sJ(G,~a);uu.a6(G.uU,G.window,B,a,G.pending);G.pending+=a}; tpK=function(G,B,a,V){var x=B*2,h=a*2;return G[x]>>7)];Ji(G,e,a);w=M4[e];w!==0&&(x-=GY[e],Ff(G,x,w))}}while(V>1;e>=1;e--)Ai(G,a,e);K=h;do e=G.xa[1],G.xa[1]=G.xa[G.Qr--],Ai(G,a,1),V=G.xa[1],G.xa[--G.P_]=e,G.xa[--G.P_]=V,a[K*2]=a[e*2]+a[V*2],G.depth[K]=(G.depth[e]>=G.depth[V]?G.depth[e]:G.depth[V])+1,a[e*2+1]=a[V*2+1]=K,G.xa[1]=K++,Ai(G,a,1);while(G.Qr>= 2);G.xa[--G.P_]=G.xa[1];e=B.BU;K=B.E0;V=B.EJ.zB;x=B.EJ.NV;h=B.EJ.SB;var l=B.EJ.Bv,k=B.EJ.afN,N,d=0;for(N=0;N<=15;N++)G.YX[N]=0;e[G.xa[G.P_]*2+1]=0;for(B=G.P_+1;B<573;B++){var C=G.xa[B];N=e[e[C*2+1]*2+1]+1;N>k&&(N=k,d++);e[C*2+1]=N;if(!(C>K)){G.YX[N]++;var z=0;C>=l&&(z=h[C-l]);var p=e[C*2];G.Vr+=p*(N+z);x&&(G.YG+=p*(V[C*2+1]+z))}}if(d!==0){do{for(N=k-1;G.YX[N]===0;)N--;G.YX[N]--;G.YX[N+1]+=2;G.YX[k]--;d-=2}while(d>0);for(N=k;N!==0;N--)for(C=G.YX[N];C!==0;)V=G.xa[--B],V>K||(e[V*2+1]!==N&&(G.Vr+=(N- e[V*2+1])*e[V*2],e[V*2+1]=N),C--)}NbK(a,w,G.YX)}; Ipy=function(G,B,a){var V,x=-1,h=B[1],e=0,w=7,K=4;h===0&&(w=138,K=3);B[(a+1)*2+1]=65535;for(V=0;V<=a;V++){var l=h;h=B[(V+1)*2+1];++e>>=1)if(B&1&&G.h$[a*2]!==0)return 0;if(G.h$[18]!==0||G.h$[20]!==0||G.h$[26]!==0)return 1;for(a=32;a<256;a++)if(G.h$[a*2]!==0)return 1;return 0}; ab=function(G,B,a){G.uU[G.RA+G.nG*2]=B>>>8&255;G.uU[G.RA+G.nG*2+1]=B&255;G.uU[G.vz+G.nG]=a&255;G.nG++;B===0?G.h$[a*2]++:(G.matches++,B--,G.h$[(Y$[a]+256+1)*2]++,G.XF[(B<256?oR[B]:oR[256+(B>>>7)])*2]++);return G.nG===G.gg-1}; xt=function(G,B){G.msg=V4[B];return B}; h0=function(G){for(var B=G.length;--B>=0;)G[B]=0}; eV=function(G){var B=G.state,a=B.pending;a>G.Xg&&(a=G.Xg);a!==0&&(uu.a6(G.output,B.uU,B.nO,a,G.IW),G.IW+=a,B.nO+=a,G.SY+=a,G.Xg-=a,B.pending-=a,B.pending===0&&(B.nO=0))}; Kx=function(G,B){var a=G.uh>=0?G.uh:-1,V=G.Zf-G.uh,x=0;if(G.level>0){G.pD.Yi===2&&(G.pD.Yi=pdA(G));Bu(G,G.hM);Bu(G,G.pw);Ipy(G,G.h$,G.hM.E0);Ipy(G,G.XF,G.pw.E0);Bu(G,G.qy);for(x=18;x>=3&&G.zF[U79[x]*2+1]===0;x--);G.Vr+=3*(x+1)+5+5+4;var h=G.Vr+3+7>>>3;var e=G.YG+3+7>>>3;e<=h&&(h=e)}else h=e=V+5;if(V+4<=h&&a!==-1)Ff(G,B?1:0,3),zOA(G,a,V);else if(G.strategy===4||e===h)Ff(G,2+(B?1:0),3),m7y(G,Wu,wL);else{Ff(G,4+(B?1:0),3);a=G.hM.E0+1;V=G.pw.E0+1;x+=1;Ff(G,a-257,5);Ff(G,V-1,5);Ff(G,x-4,4);for(h=0;h>>8&255;G.uU[G.pending++]=B&255}; OtY=function(G,B){var a=G.Hk,V=G.Zf,x=G.F2,h=G.t9,e=G.Zf>G.Li-262?G.Zf-(G.Li-262):0,w=G.window,K=G.nX,l=G.HB,k=G.Zf+258,N=w[V+x-1],d=w[V+x];G.F2>=G.hp&&(a>>=2);h>G.nh&&(h=G.nh);do{var C=B;if(w[C+x]===d&&w[C+x-1]===N&&w[C]===w[V]&&w[++C]===w[V+1]){V+=2;for(C++;w[++V]===w[++C]&&w[++V]===w[++C]&&w[++V]===w[++C]&&w[++V]===w[++C]&&w[++V]===w[++C]&&w[++V]===w[++C]&&w[++V]===w[++C]&&w[++V]===w[++C]&&Vx){G.uR=B;x=C;if(C>=h)break;N=w[V+x-1];d=w[V+x]}}}while((B=l[B&K])>e&&--a!== 0);return x<=G.nh?x:G.nh}; Cx=function(G){var B=G.Li,a;do{var V=G.Zl-G.nh-G.Zf;if(G.Zf>=B+(B-262)){uu.a6(G.window,G.window,B,B,0);G.uR-=B;G.Zf-=B;G.uh-=B;var x=a=G.Ca;do{var h=G.head[--x];G.head[x]=h>=B?h-B:0}while(--a);x=a=B;do h=G.HB[--x],G.HB[x]=h>=B?h-B:0;while(--a);V+=B}if(G.pD.JC===0)break;x=G.pD;a=G.window;h=G.Zf+G.nh;var e=x.JC;e>V&&(e=V);e===0?a=0:(x.JC-=e,uu.a6(a,x.input,x.s9,e,h),x.state.wrap===1?x.T_=Nl(x.T_,a,e,h):x.state.wrap===2&&(x.T_=dL(x.T_,a,e,h)),x.s9+=e,x.Gk+=e,a=e);G.nh+=a;if(G.nh+G.gE>=3)for(V=G.Zf-G.gE, G.Dc=G.window[V],G.Dc=(G.Dc<=3&&(G.Dc=(G.Dc<=3)if(a=ab(G,G.Zf-G.uR,G.kF-3),G.nh-=G.kF,G.kF<=G.QM&&G.nh>=3){G.kF--;do G.Zf++,G.Dc=(G.Dc<=3&&(G.Dc=(G.Dc<4096)&&(G.kF=2));if(G.F2>=3&&G.kF<=G.F2){V=G.Zf+G.nh-3;a=ab(G,G.Zf-1-G.N_,G.F2-3);G.nh-=G.F2-1;G.F2-=2;do++G.Zf<=V&&(G.Dc=(G.Dc<=3&&G.Zf>0&&(V=G.Zf-1,a=h[V],a===h[++V]&&a===h[++V]&&a===h[++V])){for(x=G.Zf+258;a===h[++V]&&a===h[++V]&&a===h[++V]&&a===h[++V]&&a===h[++V]&&a===h[++V]&&a===h[++V]&&a===h[++V]&&VG.nh&&(G.kF=G.nh)}G.kF>=3?(a=ab(G,1,G.kF-3),G.nh-=G.kF,G.Zf+=G.kF,G.kF=0):(a=ab(G,0,G.window[G.Zf]),G.nh--,G.Zf++);if(a&&(Kx(G,!1),G.pD.Xg===0))return 1}G.gE=0;return B=== 4?(Kx(G,!0),G.pD.Xg===0?3:4):G.nG&&(Kx(G,!1),G.pD.Xg===0)?1:2}; jKH=function(G,B){for(var a;;){if(G.nh===0&&(Cx(G),G.nh===0)){if(B===0)return 1;break}G.kF=0;a=ab(G,0,G.window[G.Zf]);G.nh--;G.Zf++;if(a&&(Kx(G,!1),G.pD.Xg===0))return 1}G.gE=0;return B===4?(Kx(G,!0),G.pD.Xg===0?3:4):G.nG&&(Kx(G,!1),G.pD.Xg===0)?1:2}; mp=function(G,B,a,V,x){this.snn=G;this.Oh1=B;this.C6J=a;this.Udn=V;this.func=x}; bt9=function(){this.pD=null;this.status=0;this.uU=null;this.wrap=this.pending=this.nO=this.jL=0;this.iJ=null;this.Fq=0;this.method=8;this.T7=-1;this.nX=this.Vn=this.Li=0;this.window=null;this.Zl=0;this.head=this.HB=null;this.t9=this.hp=this.strategy=this.level=this.QM=this.Hk=this.F2=this.nh=this.uR=this.Zf=this.cF=this.N_=this.kF=this.uh=this.sU=this.fF=this.uN=this.Ca=this.Dc=0;this.h$=new uu.OD(1146);this.XF=new uu.OD(122);this.zF=new uu.OD(78);h0(this.h$);h0(this.XF);h0(this.zF);this.qy=this.pw= this.hM=null;this.YX=new uu.OD(16);this.xa=new uu.OD(573);h0(this.xa);this.P_=this.Qr=0;this.depth=new uu.OD(573);h0(this.depth);this.ML=this.tC=this.gE=this.matches=this.YG=this.Vr=this.RA=this.nG=this.gg=this.vz=0}; ycB=function(G,B){if(!G||!G.state||B>5||B<0)return G?xt(G,-2):-2;var a=G.state;if(!G.output||!G.input&&G.JC!==0||a.status===666&&B!==4)return xt(G,G.Xg===0?-5:-2);a.pD=G;var V=a.T7;a.T7=B;if(a.status===42)if(a.wrap===2)G.T_=0,l4(a,31),l4(a,139),l4(a,8),a.iJ?(l4(a,(a.iJ.text?1:0)+(a.iJ.AJ?2:0)+(a.iJ.extra?4:0)+(a.iJ.name?8:0)+(a.iJ.comment?16:0)),l4(a,a.iJ.time&255),l4(a,a.iJ.time>>8&255),l4(a,a.iJ.time>>16&255),l4(a,a.iJ.time>>24&255),l4(a,a.level===9?2:a.strategy>=2||a.level<2?4:0),l4(a,a.iJ.os& 255),a.iJ.extra&&a.iJ.extra.length&&(l4(a,a.iJ.extra.length&255),l4(a,a.iJ.extra.length>>8&255)),a.iJ.AJ&&(G.T_=dL(G.T_,a.uU,a.pending,0)),a.Fq=0,a.status=69):(l4(a,0),l4(a,0),l4(a,0),l4(a,0),l4(a,0),l4(a,a.level===9?2:a.strategy>=2||a.level<2?4:0),l4(a,3),a.status=113);else{var x=8+(a.Vn-8<<4)<<8;x|=(a.strategy>=2||a.level<2?0:a.level<6?1:a.level===6?2:3)<<6;a.Zf!==0&&(x|=32);a.status=113;kt(a,x+(31-x%31));a.Zf!==0&&(kt(a,G.T_>>>16),kt(a,G.T_&65535));G.T_=1}if(a.status===69)if(a.iJ.extra){for(x= a.pending;a.Fq<(a.iJ.extra.length&65535)&&(a.pending!==a.jL||(a.iJ.AJ&&a.pending>x&&(G.T_=dL(G.T_,a.uU,a.pending-x,x)),eV(G),x=a.pending,a.pending!==a.jL));)l4(a,a.iJ.extra[a.Fq]&255),a.Fq++;a.iJ.AJ&&a.pending>x&&(G.T_=dL(G.T_,a.uU,a.pending-x,x));a.Fq===a.iJ.extra.length&&(a.Fq=0,a.status=73)}else a.status=73;if(a.status===73)if(a.iJ.name){x=a.pending;do{if(a.pending===a.jL&&(a.iJ.AJ&&a.pending>x&&(G.T_=dL(G.T_,a.uU,a.pending-x,x)),eV(G),x=a.pending,a.pending===a.jL)){var h=1;break}h=a.Fqx&&(G.T_=dL(G.T_,a.uU,a.pending-x,x));h===0&&(a.Fq=0,a.status=91)}else a.status=91;if(a.status===91)if(a.iJ.comment){x=a.pending;do{if(a.pending===a.jL&&(a.iJ.AJ&&a.pending>x&&(G.T_=dL(G.T_,a.uU,a.pending-x,x)),eV(G),x=a.pending,a.pending===a.jL)){h=1;break}h=a.Fqx&&(G.T_=dL(G.T_,a.uU,a.pending-x,x));h===0&&(a.status=103)}else a.status= 103;a.status===103&&(a.iJ.AJ?(a.pending+2>a.jL&&eV(G),a.pending+2<=a.jL&&(l4(a,G.T_&255),l4(a,G.T_>>8&255),G.T_=0,a.status=113)):a.status=113);if(a.pending!==0){if(eV(G),G.Xg===0)return a.T7=-1,0}else if(G.JC===0&&(B<<1)-(B>4?9:0)<=(V<<1)-(V>4?9:0)&&B!==4)return xt(G,-5);if(a.status===666&&G.JC!==0)return xt(G,-5);if(G.JC!==0||a.nh!==0||B!==0&&a.status!==666){V=a.strategy===2?jKH(a,B):a.strategy===3?Emx(a,B):Ib[a.level].func(a,B);if(V===3||V===4)a.status=666;if(V===1||V===3)return G.Xg===0&&(a.T7= -1),0;if(V===2&&(B===1?(Ff(a,2,3),Ji(a,256,Wu),a.ML===16?(sJ(a,a.tC),a.tC=0,a.ML=0):a.ML>=8&&(a.uU[a.pending++]=a.tC&255,a.tC>>=8,a.ML-=8)):B!==5&&(Ff(a,0,3),zOA(a,0,0),B===3&&(h0(a.head),a.nh===0&&(a.Zf=0,a.uh=0,a.gE=0))),eV(G),G.Xg===0))return a.T7=-1,0}if(B!==4)return 0;if(a.wrap<=0)return 1;a.wrap===2?(l4(a,G.T_&255),l4(a,G.T_>>8&255),l4(a,G.T_>>16&255),l4(a,G.T_>>24&255),l4(a,G.Gk&255),l4(a,G.Gk>>8&255),l4(a,G.Gk>>16&255),l4(a,G.Gk>>24&255)):(kt(a,G.T_>>>16),kt(a,G.T_&65535));eV(G);a.wrap>0&& (a.wrap=-a.wrap);return a.pending!==0?0:1}; gL=function(G){if(!(this instanceof gL))return new gL(G);G=this.options=uu.assign({level:-1,method:8,chunkSize:16384,gx:15,gDL:8,strategy:0,h7:""},G||{});G.raw&&G.gx>0?G.gx=-G.gx:G.QnJ&&G.gx>0&&G.gx<16&&(G.gx+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.pD=new ccz;this.pD.Xg=0;var B=this.pD;var a=G.level,V=G.method,x=G.gx,h=G.gDL,e=G.strategy;if(B){var w=1;a===-1&&(a=6);x<0?(w=0,x=-x):x>15&&(w=2,x-=16);if(h<1||h>9||V!==8||x<8||x>15||a<0||a>9||e<0||e>4)B=xt(B,-2);else{x===8&&(x=9); var K=new bt9;B.state=K;K.pD=B;K.wrap=w;K.iJ=null;K.Vn=x;K.Li=1<>=7;h<30;h++)for(GY[h]=e<<7,x=0;x<1<=l.Li&&(B===0&&(h0(l.head),l.Zf=0,l.uh=0,l.gE=0),a=new uu.Af(l.Li),uu.a6(a,h,e-l.Li,l.Li,0),h=a,e=l.Li);a=G.JC;V=G.s9;x=G.input;G.JC=e;G.s9=0;G.input=h;for(Cx(l);l.nh>=3;){h=l.Zf;e=l.nh-2;do l.Dc=(l.Dc<1&&(a[46]===-6?(((((0,a[20])(a[76],a[28],(0,a[34])()),a[25])(a[new Date("1969-12-31T13:15:00.000-10:45")/1E3],a[28],(0,a[24])()),a[25])(a[76],a[28],(0,a[39])()),(0,a[3])((0,a[52])(a[31],a[1]),a[20],a[83],a[28],(0,a[39])()),a[3])((0,a[25])(a[83],a[28],(0,a[61])()),a[25],a[0],a[28],(0,a[34])()),(0,a[25])(a[83], a[28],(0,a[34])())):(((0,a[4])(a[73],a[0]),((0,a[4])(a[8],a[76]),(0,a[52])(a[84],a[15]),a[3])((0,a[48])(a[33],a[76]),a[20],a[76],a[28],(0,a[74])()),(0,a[71])(a[46],a[36]),a[18])(a[75],a[40]),(0,a[77])(a[2],a[74]))),a[70]<=-4?(0,a[53])(a[75],a[4]):(0,a[82])(a[51],a[67]),a[51]>=2&&(a[86]!==2||(((0,a[73])(a[9],a[67]),a[82])(a[26],a[27]),0))&&(0,a[81])((0,a[18])(a[22],a[58]),a[39],a[57],a[22]),a[61]!=7&&(0,a[43])(a[68])%(0,a[54])(a[22],a[19]),a[14]>-3?(0,a[85])((0,a[75])(a[19],a[37])%(0,a[40])(a[18], a[25]),a[30],((0,a[75])(a[26],a[15]),a[Math.pow(7,new Date("1970-01-01T03:15:01.000+03:15")/1E3)%163- -43])(a[19],a[73]),a[40],(0,a[12])((0,a[20])(a[32],a[18])&(0,a[35])(a[85],a[68]),a[28],a[4]),a[56],a[36]):((((0,a[84])((0,a[-723140- -93*Math.pow(6,new Date("1970-01-01T01:15:05.000+01:15")/1E3)])(a[11]),a[60],a[3],a[42]),a[60])(a[51],a[61]),a[62])(a[85],a[59],(0,a[48])()),((0,a[5])(a[12],a[3]),a[83])(a[19],a[11]),a[83])(a[50],a[11])<(0,a[83])(a[24],a[85]),a[43]>6&&((0,a[1])(a[30],a[51]),a[8])(a[36])=== (0,a[34])(a[69],a[49])<=(0,a[77])(a[71],a[41]),(a[79]!==6||((0,a[61])(a[39],a[45]),0))&&(0,a[41])(a[21],a[0])}catch(V){(0,a[80])(a[16],a[77],(0,a[71])()),(0,a[80])(a[22],a[77],(0,a[71])()),(0,a[33])((0,a[53])(a[69],a[4]),a[80],(0,a[14])(a[new Date("1970-01-01T06:01:22.000+06:00")/1E3],a[21]),a[16],a[77],(0,a[31])()),((((0,a[14])(a[18],a[69]),a[19])(a[50],a[29]),a[14])(a[8],a[16]),a[75])(a[16])}try{a[64]!=10&&(a[51]==-6?((0,a[15])((0,a[73])(a[75],(0,a[19])(a[58],a[21]),((((0,a[85])(a[22],a[77],(0,a[71])()), a[80])(a[16],a[77],(0,a[66])()),a[75])(a[74]),a[57])(a[13],a[16]),(0,a[14])(a[47],a[16]),a[74]),a[75],a[16]),a[new Date("1969-12-31T17:45:19.000-06:15")/1E3])(a[11],a[21]):(0,a[33])(((((0,a[23])(a[55],a[74]),a[52])(a[31],a[6]),a[32])(a[70],a[78]),a[16])(a[17],a[67])>=(0,a[37])(a[33],a[58]),a[60],(0,a[61])((0,a[37])(a[33],a[80])>=(0,a[2])(a[0],a[72]),a[12],a[33],a[52]),a[11],a[68])),a[8]>6&&((0,a[60])(a[26],a[75]),"true")||(0,a[2])(a[new Date("1969-12-31T12:31:07.000-11:30")/1E3],a[48]),a[58]!==-4&& (a[13]==-10?(0,a[44])(a[68],a[36],(0,a[25])()):(0,a[2])(a[68],a[1]))}catch(V){((0,a[69])(a[66],a[33]),a[60])(a[70],a[75])!==(0,a[39])(a[75],a[36],(0,a[25])())}}catch(V){return"W1vUwpE1upcuJ0Bx-L-_w8_"+G}return B.join("")}; JcK=function(G){return G,"arguments"[6+!!G]}; g.b4=function(G){this.name=G}; Acz=function(G){this.X5=Hq(G)}; y4=function(G){this.X5=Hq(G)}; cu=function(G){this.X5=Hq(G)}; Y99=function(G){this.X5=Hq(G)}; nx=function(G){this.X5=Hq(G)}; fx=function(G){this.X5=Hq(G)}; Hu=function(G){this.X5=Hq(G)}; vu=function(G){this.X5=Hq(G)}; Dm=function(G){this.X5=Hq(G)}; SV=function(G){this.X5=Hq(G)}; Rb=function(G){this.X5=Hq(G)}; Zm=function(G){this.X5=Hq(G)}; rL=function(G){this.X5=Hq(G)}; $t=function(G){this.X5=Hq(G)}; Xk=function(G){this.X5=Hq(G)}; Q4=function(G){this.X5=Hq(G,500)}; Lx=function(G){this.X5=Hq(G)}; TY=function(G){this.X5=Hq(G)}; itx=function(G){this.X5=Hq(G)}; PGx=function(){return g.LV("yt.ads.biscotti.lastId_")||""}; omX=function(G){g.Qb("yt.ads.biscotti.lastId_",G)}; J0=function(){var G=arguments,B=Fk;G.length>1?B[G[0]]=G[1]:G.length===1&&Object.assign(B,G[0])}; g.A0=function(G,B){return G in Fk?Fk[G]:B}; Yt=function(G){var B=Fk.EXPERIMENT_FLAGS;return B?B[G]:void 0}; Mpy=function(G){i4.forEach(function(B){return B(G)})}; g.ob=function(G){return G&&window.yterr?function(){try{return G.apply(this,arguments)}catch(B){g.Pu(B)}}:G}; g.Pu=function(G){var B=g.LV("yt.logging.errors.log");B?B(G,"ERROR",void 0,void 0,void 0,void 0,void 0):(B=g.A0("ERRORS",[]),B.push([G,"ERROR",void 0,void 0,void 0,void 0,void 0]),J0("ERRORS",B));Mpy(G)}; Ml=function(G,B,a,V,x){var h=g.LV("yt.logging.errors.log");h?h(G,"WARNING",B,a,V,void 0,x):(h=g.A0("ERRORS",[]),h.push([G,"WARNING",B,a,V,void 0,x]),J0("ERRORS",h))}; G9=function(G,B){B=G.split(B);for(var a={},V=0,x=B.length;V1?G[1]:G[0])):{}}; hM=function(G,B){return V6_(G,B||{},!0)}; eK=function(G,B){return V6_(G,B||{},!1)}; V6_=function(G,B,a){var V=G.split("#",2);G=V[0];V=V.length>1?"#"+V[1]:"";var x=G.split("?",2);G=x[0];x=ah(x[1]||"");for(var h in B)if(a||!g.Eu(x,h))x[h]=B[h];return g.LJ(G,x)+V}; Wh=function(G){if(!B)var B=window.location.href;var a=g.Z4(1,G),V=g.rp(G);a&&V?(G=G.match(D4),B=B.match(D4),G=G[3]==B[3]&&G[1]==B[1]&&G[4]==B[4]):G=V?g.rp(B)===V&&(Number(g.Z4(4,B))||null)===(Number(g.Z4(4,G))||null):!0;return G}; w1=function(G){G||(G=document.location.href);G=g.Z4(1,G);return G!==null&&G==="https"}; KB=function(G){G=x1B(G);return G===null?!1:G[0]==="com"&&G[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; hm9=function(G){G=x1B(G);return G===null?!1:G[1]==="google"?!0:G[2]==="google"?G[0]==="au"&&G[1]==="com"?!0:G[0]==="uk"&&G[1]==="co"?!0:!1:!1}; x1B=function(G){G=g.rp(G);return G!==null?G.split(".").reverse():null}; G3y=function(G){return G&&G.match(em9)?G:AE(G)}; NI=function(G){var B=lm;G=G===void 0?PGx():G;var a=Object,V=a.assign,x=k4(B);var h=B.j;try{var e=h.screenX;var w=h.screenY}catch(b){}try{var K=h.outerWidth;var l=h.outerHeight}catch(b){}try{var k=h.innerWidth;var N=h.innerHeight}catch(b){}try{var d=h.screenLeft;var C=h.screenTop}catch(b){}try{k=h.innerWidth,N=h.innerHeight}catch(b){}try{var z=h.screen.availWidth;var p=h.screen.availTop}catch(b){}h=[d,C,e,w,z,p,K,l,k,N];e=jCc(!1,B.j.top);w={};var O=O===void 0?g.qY:O;K=new uC;"SVGElement"in O&&"createElementNS"in O.document&&K.set(0);l=$HV();l["allow-top-navigation-by-user-activation"]&&K.set(1);l["allow-popups-to-escape-sandbox"]&&K.set(2);O.crypto&&O.crypto.subtle&&K.set(3);"TextDecoder"in O&&"TextEncoder"in O&&K.set(4);O=SKy(K);B=(w.bc=O,w.bih=e.height,w.biw=e.width,w.brdim=h.join(),w.vis=tR(B.X),w.wgl=!!d$.WebGLRenderingContext,w);a=V.call(a,x,B);a.ca_type="image";G&&(a.bid=G);return a}; k4=function(G){var B={};B.dt=WKA;B.flash="0";a:{try{var a=G.j.top.location.href}catch(k){G=2;break a}G=a?a===G.X.location.href?0:1:2}B=(B.frm=G,B);try{B.u_tz=-(new Date).getTimezoneOffset();var V=V===void 0?d$:V;try{var x=V.history.length}catch(k){x=0}B.u_his=x;var h;B.u_h=(h=d$.screen)==null?void 0:h.height;var e;B.u_w=(e=d$.screen)==null?void 0:e.width;var w;B.u_ah=(w=d$.screen)==null?void 0:w.availHeight;var K;B.u_aw=(K=d$.screen)==null?void 0:K.availWidth;var l;B.u_cd=(l=d$.screen)==null?void 0: l.colorDepth}catch(k){}return B}; KKV=function(){if(!wGH)return null;var G=wGH();return"open"in G?G:null}; g.CB=function(G){switch(d1(G)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; d1=function(G){return G&&"status"in G?G.status:-1}; g.z9=function(G,B){typeof G==="function"&&(G=g.ob(G));return window.setTimeout(G,B)}; g.tM=function(G,B){typeof G==="function"&&(G=g.ob(G));return window.setInterval(G,B)}; g.me=function(G){window.clearTimeout(G)}; g.Ih=function(G){window.clearInterval(G)}; g.pB=function(G){G=g1(G);return typeof G==="string"&&G==="false"?!1:!!G}; g.Uq=function(G,B){G=g1(G);return G===void 0&&B!==void 0?B:Number(G||0)}; Oq=function(){return g.A0("EXPERIMENTS_TOKEN","")}; g1=function(G){return g.A0("EXPERIMENT_FLAGS",{})[G]}; Eq=function(){for(var G=[],B=g.A0("EXPERIMENTS_FORCED_FLAGS",{}),a=g.m(Object.keys(B)),V=a.next();!V.done;V=a.next())V=V.value,G.push({key:V,value:String(B[V])});a=g.A0("EXPERIMENT_FLAGS",{});V=g.m(Object.keys(a));for(var x=V.next();!x.done;x=V.next())x=x.value,x.startsWith("force_")&&B[x]===void 0&&G.push({key:x,value:String(a[x])});return G}; jK=function(G,B,a,V,x,h,e,w){function K(){(l&&"readyState"in l?l.readyState:0)===4&&B&&g.ob(B)(l)} a=a===void 0?"GET":a;V=V===void 0?"":V;w=w===void 0?!1:w;var l=KKV();if(!l)return null;"onloadend"in l?l.addEventListener("loadend",K,!1):l.onreadystatechange=K;g.pB("debug_forward_web_query_parameters")&&(G=lqV(G,window.location.search));l.open(a,G,!0);h&&(l.responseType=h);e&&(l.withCredentials=!0);a=a==="POST"&&(window.FormData===void 0||!(V instanceof FormData));if(x=k3_(G,x))for(var k in x)l.setRequestHeader(k,x[k]),"content-type"===k.toLowerCase()&&(a=!1);a&&l.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(w&&"setAttributionReporting"in XMLHttpRequest.prototype){G={eventSourceEligible:!0,triggerEligible:!1};try{l.setAttributionReporting(G)}catch(N){Ml(N)}}l.send(V);return l}; k3_=function(G,B){B=B===void 0?{}:B;var a=Wh(G),V=g.A0("INNERTUBE_CLIENT_NAME"),x=g.pB("web_ajax_ignore_global_headers_if_set"),h;for(h in NAB){var e=g.A0(NAB[h]),w=h==="X-Goog-AuthUser"||h==="X-Goog-PageId";h!=="X-Goog-Visitor-Id"||e||(e=g.A0("VISITOR_DATA"));var K;if(!(K=!e)){if(!(K=a||(g.rp(G)?!1:!0))){K=G;var l;if(l=g.pB("add_auth_headers_to_remarketing_google_dot_com_ping")&&h==="Authorization"&&(V==="TVHTML5"||V==="TVHTML5_UNPLUGGED"||V==="TVHTML5_SIMPLY")&&hm9(K))K=va(g.Z4(5,K))||"",K=K.split("/"), K="/"+(K.length>1?K[1]:""),l=K==="/pagead";K=l?!0:!1}K=!K}K||x&&B[h]!==void 0||V==="TVHTML5_UNPLUGGED"&&w||(B[h]=e)}"X-Goog-EOM-Visitor-Id"in B&&"X-Goog-Visitor-Id"in B&&delete B["X-Goog-Visitor-Id"];if(a||!g.rp(G))B["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(a||!g.rp(G)){try{var k=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(N){}k&&(B["X-YouTube-Time-Zone"]=k)}document.location.hostname.endsWith("youtubeeducation.com")||!a&&g.rp(G)||(B["X-YouTube-Ad-Signals"]= Bh(NI()));return B}; CCX=function(G,B){var a=g.rp(G);g.pB("debug_handle_relative_url_for_query_forward_killswitch")||!a&&Wh(G)&&(a=document.location.hostname);var V=va(g.Z4(5,G));V=(a=a&&(a.endsWith("youtube.com")||a.endsWith("youtube-nocookie.com")))&&V&&V.startsWith("/api/");if(!a||V)return G;var x=ah(B),h={};g.kV(d1B,function(e){x[e]&&(h[e]=x[e])}); return eK(G,h)}; yZ=function(G,B){B.method="POST";B.postParams||(B.postParams={});return g.bm(G,B)}; m1B=function(G,B){if(window.fetch&&B.format!=="XML"){var a={method:B.method||"GET",credentials:"same-origin"};B.headers&&(a.headers=B.headers);B.priority&&(a.priority=B.priority);G=zm_(G,B);var V=t6y(G,B);V&&(a.body=V);B.withCredentials&&(a.credentials="include");var x=B.context||g.qY,h=!1,e;fetch(G,a).then(function(w){if(!h){h=!0;e&&g.me(e);var K=w.ok,l=function(k){k=k||{};K?B.onSuccess&&B.onSuccess.call(x,k,w):B.onError&&B.onError.call(x,k,w);B.onFinish&&B.onFinish.call(x,k,w)}; (B.format||"JSON")==="JSON"&&(K||w.status>=400&&w.status<500)?w.json().then(l,function(){l(null)}):l(null)}}).catch(function(){B.onError&&B.onError.call(x,{},{})}); G=B.timeout||0;B.onFetchTimeout&&G>0&&(e=g.z9(function(){h||(h=!0,g.me(e),B.onFetchTimeout.call(B.context||g.qY))},G))}else g.bm(G,B)}; g.bm=function(G,B){var a=B.format||"JSON";G=zm_(G,B);var V=t6y(G,B),x=!1,h=Iqb(G,function(K){if(!x){x=!0;w&&g.me(w);var l=g.CB(K),k=null,N=400<=K.status&&K.status<500,d=500<=K.status&&K.status<600;if(l||N||d)k=g0c(G,a,K,B.convertToSafeHtml);l&&(l=pGH(a,K,k));k=k||{};N=B.context||g.qY;l?B.onSuccess&&B.onSuccess.call(N,K,k):B.onError&&B.onError.call(N,K,k);B.onFinish&&B.onFinish.call(N,K,k)}},B.method,V,B.headers,B.responseType,B.withCredentials); V=B.timeout||0;if(B.onTimeout&&V>0){var e=B.onTimeout;var w=g.z9(function(){x||(x=!0,h.abort(),g.me(w),e.call(B.context||g.qY,h))},V)}return h}; zm_=function(G,B){B.includeDomain&&(G=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+G);var a=g.A0("XSRF_FIELD_NAME");if(B=B.urlParams)B[a]&&delete B[a],G=hM(G,B);return G}; t6y=function(G,B){var a=g.A0("XSRF_FIELD_NAME"),V=g.A0("XSRF_TOKEN"),x=B.postBody||"",h=B.postParams,e=g.A0("XSRF_FIELD_NAME"),w;B.headers&&(w=B.headers["Content-Type"]);B.excludeXsrf||g.rp(G)&&!B.withCredentials&&g.rp(G)!==document.location.hostname||B.method!=="POST"||w&&w!=="application/x-www-form-urlencoded"||B.postParams&&B.postParams[e]||(h||(h={}),h[a]=V);(g.pB("ajax_parse_query_data_only_when_filled")&&h&&Object.keys(h).length>0||h)&&typeof x==="string"&&(x=ah(x),g.vM(x,h),x=B.postBodyFormat&& B.postBodyFormat==="JSON"?JSON.stringify(x):g.Qs(x));h=x||h&&!g.yw(h);!U1Y&&h&&B.method!=="POST"&&(U1Y=!0,g.Pu(Error("AJAX request with postData should use POST")));return x}; g0c=function(G,B,a,V){var x=null;switch(B){case "JSON":try{var h=a.responseText}catch(e){throw V=Error("Error reading responseText"),V.params=G,Ml(V),e;}G=a.getResponseHeader("Content-Type")||"";h&&G.indexOf("json")>=0&&(h.substring(0,5)===")]}'\n"&&(h=h.substring(5)),x=JSON.parse(h));break;case "XML":if(G=(G=a.responseXML)?Oyz(G):null)x={},g.kV(G.getElementsByTagName("*"),function(e){x[e.tagName]=E0c(e)})}V&&jXy(x); return x}; jXy=function(G){if(g.Ag(G))for(var B in G)B==="html_content"||QyB(B,"_html")?G[B]=SM(G[B]):jXy(G[B])}; pGH=function(G,B,a){if(B&&B.status===204)return!0;switch(G){case "JSON":return!!a;case "XML":return Number(a&&a.return_code)===0;case "RAW":return!0;default:return!!a}}; Oyz=function(G){return G?(G=("responseXML"in G?G.responseXML:G).getElementsByTagName("root"))&&G.length>0?G[0]:null:null}; E0c=function(G){var B="";g.kV(G.childNodes,function(a){B+=a.nodeValue}); return B}; nB=function(G,B){var a=g.fo(B),V;return(new g.z5(function(x,h){a.onSuccess=function(e){g.CB(e)?x(new byz(e)):h(new ch("Request failed, status="+d1(e),"net.badstatus",e))}; a.onError=function(e){h(new ch("Unknown request error","net.unknown",e))}; a.onTimeout=function(e){h(new ch("Request timed out","net.timeout",e))}; V=g.bm(G,a)})).yC(function(x){if(x instanceof Uh){var h; (h=V)==null||h.abort()}return Iz(x)})}; g.fB=function(G,B,a,V){function x(w,K,l){return w.yC(function(k){if(K<=0||d1(k.xhr)===403)return Iz(new ch("Request retried too many times","net.retryexhausted",k.xhr,k));k=Math.pow(2,a-K+1)*l;var N=e>0?Math.min(e,k):k;return h(l).then(function(){return x(nB(G,B),K-1,N)})})} function h(w){return new g.z5(function(K){setTimeout(K,w)})} var e=e===void 0?-1:e;return x(nB(G,B),a-1,V)}; ch=function(G,B,a){z$.call(this,G+", errorCode="+B);this.errorCode=B;this.xhr=a;this.name="PromiseAjaxError"}; byz=function(G){this.xhr=G}; Hh=function(G){this.j=G===void 0?null:G;this.C=0;this.X=null}; vh=function(G){var B=new Hh;G=G===void 0?null:G;B.C=2;B.X=G===void 0?null:G;return B}; Dd=function(G){var B=new Hh;G=G===void 0?null:G;B.C=1;B.X=G===void 0?null:G;return B}; g.Zd=function(G,B,a,V,x){SK||Rh.set(""+G,B,{YH:a,path:"/",domain:V===void 0?"youtube.com":V,secure:x===void 0?!1:x})}; g.r1=function(G,B){if(!SK)return Rh.get(""+G,B)}; g.$4=function(G,B,a){SK||Rh.remove(""+G,B===void 0?"/":B,a===void 0?"youtube.com":a)}; y8A=function(){if(g.pB("embeds_web_enable_cookie_detection_fix")){if(!g.qY.navigator.cookieEnabled)return!1}else if(!Rh.isEnabled())return!1;if(!Rh.isEmpty())return!0;g.pB("embeds_web_enable_cookie_detection_fix")?Rh.set("TESTCOOKIESENABLED","1",{YH:60,e9N:"none",secure:!0}):Rh.set("TESTCOOKIESENABLED","1",{YH:60});if(Rh.get("TESTCOOKIESENABLED")!=="1")return!1;Rh.remove("TESTCOOKIESENABLED");return!0}; g.u=function(G,B){if(G)return G[B.name]}; XG=function(G){var B=g.A0("INNERTUBE_HOST_OVERRIDE");B&&(G=String(B)+String($K(G)));return G}; c89=function(G){var B={};g.pB("json_condensed_response")&&(B.prettyPrint="false");return G=eK(G,B)}; qI=function(G,B){var a=a===void 0?{}:a;G={method:B===void 0?"POST":B,mode:Wh(G)?"same-origin":"cors",credentials:Wh(G)?"same-origin":"include"};B={};for(var V=g.m(Object.keys(a)),x=V.next();!x.done;x=V.next())x=x.value,a[x]&&(B[x]=a[x]);Object.keys(B).length>0&&(G.headers=B);return G}; um=function(){var G=/Chrome\/(\d+)/.exec(g.ns());return G?parseFloat(G[1]):NaN}; LB=function(){return g.QZ("android")&&g.QZ("chrome")&&!(g.QZ("trident/")||g.QZ("edge/"))&&!g.QZ("cobalt")}; n0x=function(){return g.QZ("armv7")||g.QZ("aarch64")||g.QZ("android")}; g.T9=function(){return g.QZ("cobalt")}; sq=function(){return g.QZ("cobalt")&&g.QZ("appletv")}; FG=function(){return g.QZ("(ps3; leanback shell)")||g.QZ("ps3")&&g.T9()}; fqA=function(){return g.QZ("(ps4; leanback shell)")||g.QZ("ps4")&&g.T9()}; g.HyB=function(){return g.T9()&&(g.QZ("ps4 vr")||g.QZ("ps4 pro vr"))}; JM=function(){var G=/WebKit\/([0-9]+)/.exec(g.ns());return!!(G&&parseInt(G[1],10)>=600)}; AM=function(){var G=/WebKit\/([0-9]+)/.exec(g.ns());return!!(G&&parseInt(G[1],10)>=602)}; v0H=function(){return g.QZ("iemobile")||g.QZ("windows phone")&&g.QZ("edge")}; Ph=function(){return(Y4||im)&&g.QZ("applewebkit")&&!g.QZ("version")&&(!g.QZ("safari")||g.QZ("gsa/"))}; MI=function(){return g.oh&&g.QZ("version/")}; Gp=function(){return g.QZ("smart-tv")&&g.QZ("samsung")}; g.QZ=function(G){var B=g.ns();return B?B.toLowerCase().indexOf(G)>=0:!1}; BH=function(){return unB()||Ph()||MI()?!0:g.A0("EOM_VISITOR_DATA")?!1:!0}; aP=function(G,B){return B===void 0||B===null?G:B==="1"||B===!0||B===1||B==="True"?!0:!1}; VG=function(G,B,a){for(var V in a)if(a[V]==B)return a[V];return G}; xS=function(G,B){return B===void 0||B===null?G:Number(B)}; ht=function(G,B){return B===void 0||B===null?G:B.toString()}; eL=function(G,B){if(B){if(G==="fullwidth")return Infinity;if(G==="fullheight")return 0}return G&&(B=G.match(D1V))&&(G=Number(B[2]),B=Number(B[1]),!isNaN(G)&&!isNaN(B)&&G>0)?B/G:NaN}; WH=function(G){var B=G.docid||G.video_id||G.videoId||G.id;if(B)return B;B=G.raw_player_response;B||(G=G.player_response)&&(B=JSON.parse(G));return B&&B.videoDetails&&B.videoDetails.videoId||null}; Sr9=function(G){return wE(G,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.KU=function(G){return G==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||G==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; wE=function(G,B){B=(B===void 0?0:B)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(B="EMBEDDED_PLAYER_MODE_PFL");var a=G.raw_embedded_player_response;if(!a&&(G=G.embedded_player_response))try{a=JSON.parse(G)}catch(V){return B}return a?VG(B,a.embeddedPlayerMode,Rmb):B}; kS=function(G){z$.call(this,G.message||G.description||G.name);this.isMissing=G instanceof lP;this.isTimeout=G instanceof ch&&G.errorCode=="net.timeout";this.isCanceled=G instanceof Uh}; lP=function(){z$.call(this,"Biscotti ID is missing from server")}; Zy9=function(){if(g.pB("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!BH())return Error("User has not consented - not fetching biscotti id.");var G=g.A0("PLAYER_VARS",{});if(g.cM(G,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Sr9(G))return Error("Biscotti id fetching has been disabled for pfl.")}; qrA=function(){var G=Zy9();if(G!==void 0)return Iz(G);Ne||(Ne=nB("//googleads.g.doubleclick.net/pagead/id",r8V).then($1y).yC(function(B){return XGB(2,B)})); return Ne}; $1y=function(G){G=G.xhr.responseText;if(!ps(G,")]}'"))throw new lP;G=JSON.parse(G.substr(4));if((G.type||1)>1)throw new lP;G=G.id;omX(G);Ne=Dd(G);u7V(18E5,2);return G}; XGB=function(G,B){B=new kS(B);omX("");Ne=vh(B);G>0&&u7V(12E4,G-1);throw B;}; u7V=function(G,B){g.z9(function(){nB("//googleads.g.doubleclick.net/pagead/id",r8V).then($1y,function(a){return XGB(B,a)}).yC(g.kK)},G)}; QX9=function(){try{var G=g.LV("yt.ads.biscotti.getId_");return G?G():qrA()}catch(B){return Iz(B)}}; TAH=function(G){G&&(G.dataset?G.dataset[LKB()]="true":cDA(G))}; sXA=function(G){return G?G.dataset?G.dataset[LKB()]:G.getAttribute("data-loaded"):null}; LKB=function(){return FKy.loaded||(FKy.loaded="loaded".replace(/\-([a-z])/g,function(G,B){return B.toUpperCase()}))}; J8b=function(){var G=document;if("visibilityState"in G)return G.visibilityState;var B=dE+"VisibilityState";if(B in G)return G[B]}; CU=function(G,B){var a;bL(G,function(V){a=B[V];return!!a}); return a}; zp=function(G){if(G.requestFullscreen)G=G.requestFullscreen(void 0);else if(G.webkitRequestFullscreen)G=G.webkitRequestFullscreen();else if(G.mozRequestFullScreen)G=G.mozRequestFullScreen();else if(G.msRequestFullscreen)G=G.msRequestFullscreen();else if(G.webkitEnterFullscreen)G=G.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return G instanceof Promise?G:Promise.resolve()}; IP=function(G){var B;g.tt()?m$()==G&&(B=document):B=G;return B&&(G=CU(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],B))?(B=G.call(B),B instanceof Promise?B:Promise.resolve()):Promise.resolve()}; A8B=function(G){return g.JJ(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(B){return"on"+B.toLowerCase()in G})}; Yr_=function(){var G=document;return g.JJ(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(B){return"on"+B.toLowerCase()in G})}; g.tt=function(){return!!CU(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; m$=function(G){G=G===void 0?!1:G;var B=CU(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(G)for(;B&&B.shadowRoot;)B=B.shadowRoot.fullscreenElement;return B?B:null}; gE=function(G){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(G=G||window.event){this.event=G;for(var B in G)B in iyY||(this[B]=G[B]);this.scale=G.scale;this.rotation=G.rotation;var a=G.target||G.srcElement;a&&a.nodeType==3&&(a=a.parentNode);this.target=a;var V=G.relatedTarget; if(V)try{V=V.nodeName?V:null}catch(x){V=null}else this.type=="mouseover"?V=G.fromElement:this.type=="mouseout"&&(V=G.toElement);this.relatedTarget=V;this.clientX=G.clientX!=void 0?G.clientX:G.pageX;this.clientY=G.clientY!=void 0?G.clientY:G.pageY;this.keyCode=G.keyCode?G.keyCode:G.which;this.charCode=G.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=G.altKey;this.ctrlKey=G.ctrlKey;this.shiftKey=G.shiftKey;this.metaKey=G.metaKey;this.j=G.pageX;this.X=G.pageY}}catch(x){}}; PCB=function(G){if(document.body&&document.documentElement){var B=document.body.scrollTop+document.documentElement.scrollTop;G.j=G.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);G.X=G.clientY+B}}; o0g=function(G,B,a,V){V=V===void 0?{}:V;G.addEventListener&&(B!="mouseenter"||"onmouseenter"in document?B!="mouseleave"||"onmouseenter"in document?B=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(B="MozMousePixelScroll"):B="mouseout":B="mouseover");return bQ(pU,function(x){var h=typeof x[4]==="boolean"&&x[4]==!!V,e=g.Ag(x[4])&&g.Ag(V)&&g.no(x[4],V);return!!x.length&&x[0]==G&&x[1]==B&&x[2]==a&&(h||e)})}; g.UU=function(G,B,a,V){V=V===void 0?{}:V;if(!G||!G.addEventListener&&!G.attachEvent)return"";var x=o0g(G,B,a,V);if(x)return x;x=++M6B.count+"";var h=!(B!="mouseenter"&&B!="mouseleave"||!G.addEventListener||"onmouseenter"in document);var e=h?function(w){w=new gE(w);if(!Wi(w.relatedTarget,function(K){return K==G},!0))return w.currentTarget=G,w.type=B,a.call(G,w)}:function(w){w=new gE(w); w.currentTarget=G;return a.call(G,w)}; e=g.ob(e);G.addEventListener?(B=="mouseenter"&&h?B="mouseover":B=="mouseleave"&&h?B="mouseout":B=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(B="MozMousePixelScroll"),GVY()||typeof V==="boolean"?G.addEventListener(B,e,V):G.addEventListener(B,e,!!V.capture)):G.attachEvent("on"+B,e);pU[x]=[G,B,a,e,V];return x}; aAA=function(G){return Bi_(G,function(B){return g.x$(B,"ytp-ad-has-logging-urls")})}; Bi_=function(G,B){var a=document.body||document;return g.UU(a,"click",function(V){var x=Wi(V.target,function(h){return h===a||B(h)},!0); x&&x!==a&&!x.disabled&&(V.currentTarget=x,G.call(x,V))})}; g.OU=function(G){G&&(typeof G=="string"&&(G=[G]),g.kV(G,function(B){if(B in pU){var a=pU[B],V=a[0],x=a[1],h=a[3];a=a[4];V.removeEventListener?GVY()||typeof a==="boolean"?V.removeEventListener(x,h,a):V.removeEventListener(x,h,!!a.capture):V.detachEvent&&V.detachEvent("on"+x,h);delete pU[B]}}))}; EU=function(G){for(var B in pU)pU[B][0]==G&&g.OU(B)}; jL=function(G){G=G||window.event;var B;G.composedPath&&typeof G.composedPath==="function"?B=G.composedPath():B=G.path;B&&B.length?G=B[0]:(G=G||window.event,G=G.target||G.srcElement,G.nodeType==3&&(G=G.parentNode));return G}; bP=function(G){this.W=G;this.j=null;this.G=0;this.L=null;this.B=0;this.X=[];for(G=0;G<4;G++)this.X.push(0);this.C=0;this.XJ=g.UU(window,"mousemove",(0,g.oy)(this.Y,this));this.V=g.tM((0,g.oy)(this.zH,this),25)}; yG=function(G){g.r.call(this);this.W=[];this.Yf=G||this}; cH=function(G,B,a,V){for(var x=0;x0?a:0;a=V?Date.now()+V*1E3:0;if((V=V?(0,g.HH)():vH())&&window.JSON){typeof B!=="string"&&(B=JSON.stringify(B,void 0));try{V.set(G,B,a)}catch(x){V.remove(G)}}}; g.SL=function(G){var B=vH(),a=(0,g.HH)();if(!B&&!a||!window.JSON)return null;try{var V=B.get(G)}catch(x){}if(typeof V!=="string")try{V=a.get(G)}catch(x){}if(typeof V!=="string")return null;try{V=JSON.parse(V,void 0)}catch(x){}return V}; hRb=function(){var G=(0,g.HH)();if(G&&(G=G.X("yt-player-quality")))return G.creation}; g.RP=function(G){try{var B=vH(),a=(0,g.HH)();B&&B.remove(G);a&&a.remove(G)}catch(V){}}; g.Z0=function(){return g.SL("yt-remote-session-screen-id")}; eRz=function(G){var B=this;this.X=void 0;this.j=!1;G.addEventListener("beforeinstallprompt",function(a){a.preventDefault();B.X=a}); G.addEventListener("appinstalled",function(){B.j=!0},{once:!0})}; rE=function(){if(!g.qY.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.qY.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.qY.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.qY.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.qY.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(G){return"WEB_DISPLAY_MODE_UNKNOWN"}}; $S=function(){this.vO=!0}; Wuz=function(){$S.instance||($S.instance=new $S);return $S.instance}; wCg=function(G){switch(G){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}}; Kub=function(){this.j=g.A0("ALT_PREF_COOKIE_NAME","PREF");this.X=g.A0("ALT_PREF_COOKIE_DOMAIN","youtube.com");var G=g.r1(this.j);G&&this.parse(G)}; g.qe=function(){XI||(XI=new Kub);return XI}; g.uP=function(G,B){return!!((lAV("f"+(Math.floor(B/31)+1))||0)&1<0;)switch(G=KN.shift(),G.type){case "ERROR":hx.oM(G.payload);break;case "EVENT":hx.logEvent(G.eventType,G.payload)}}; kR=function(G){lT||(hx?hx.oM(G):(KN.push({type:"ERROR",payload:G}),KN.length>10&&KN.shift()))}; N$=function(G,B){lT||(hx?hx.logEvent(G,B):(KN.push({type:"EVENT",eventType:G,payload:B}),KN.length>10&&KN.shift()))}; dP=function(G){if(G.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; CN=function(G){return G.substr(0,G.indexOf(":"))||G}; g.z0=function(G,B,a,V,x){B=B===void 0?{}:B;a=a===void 0?IAc[G]:a;V=V===void 0?g$9[G]:V;x=x===void 0?pCK[G]:x;g.FI.call(this,a,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:G},B));this.type=G;this.message=a;this.level=V;this.j=x;Object.setPrototypeOf(this,g.z0.prototype)}; tx=function(G,B){g.z0.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:B,foundObjectStores:G},IAc.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,tx.prototype)}; mv=function(G,B){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.index=G;this.objectStore=B;Object.setPrototypeOf(this,mv.prototype)}; gP=function(G,B,a,V){B=CN(B);var x=G instanceof Error?G:Error("Unexpected error: "+G);if(x instanceof g.z0)return x;G={objectStoreNames:a,dbName:B,dbVersion:V};if(x.name==="QuotaExceededError")return new g.z0("QUOTA_EXCEEDED",G);if(g.It&&x.name==="UnknownError")return new g.z0("QUOTA_MAYBE_EXCEEDED",G);if(x instanceof mv)return new g.z0("MISSING_INDEX",Object.assign({},G,{objectStore:x.objectStore,index:x.index}));if(x.name==="InvalidStateError"&&U4x.some(function(h){return x.message.includes(h)}))return new g.z0("EXECUTE_TRANSACTION_ON_CLOSED_DB", G); if(x.name==="AbortError")return new g.z0("UNKNOWN_ABORT",G,x.message);x.args=[Object.assign({},G,{name:"IdbError",aL:x.name})];x.level="WARNING";return x}; g.pN=function(G,B,a){var V=xR();return new g.z0("IDB_NOT_SUPPORTED",{context:{caller:G,publicName:B,version:a,hasSucceededOnce:V==null?void 0:V.hasSucceededOnce}})}; OmB=function(G){if(!G)throw Error();throw G;}; E$X=function(G){return G}; UV=function(G){this.j=G}; g.OV=function(G){function B(x){if(V.state.status==="PENDING"){V.state={status:"REJECTED",reason:x};x=g.m(V.X);for(var h=x.next();!h.done;h=x.next())h=h.value,h()}} function a(x){if(V.state.status==="PENDING"){V.state={status:"FULFILLED",value:x};x=g.m(V.j);for(var h=x.next();!h.done;h=x.next())h=h.value,h()}} var V=this;this.state={status:"PENDING"};this.j=[];this.X=[];G=G.j;try{G(a,B)}catch(x){B(x)}}; jRz=function(G,B,a,V,x){try{if(G.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var h=a(G.state.value);h instanceof g.OV?EV(G,B,h,V,x):V(h)}catch(e){x(e)}}; bmc=function(G,B,a,V,x){try{if(G.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var h=a(G.state.reason);h instanceof g.OV?EV(G,B,h,V,x):V(h)}catch(e){x(e)}}; EV=function(G,B,a,V,x){B===a?x(new TypeError("Circular promise chain detected.")):a.then(function(h){h instanceof g.OV?EV(G,B,h,V,x):V(h)},function(h){x(h)})}; yiV=function(G,B,a){function V(){a(G.error);h()} function x(){B(G.result);h()} function h(){try{G.removeEventListener("success",x),G.removeEventListener("error",V)}catch(e){}} G.addEventListener("success",x);G.addEventListener("error",V)}; ciB=function(G){return new Promise(function(B,a){yiV(G,B,a)})}; jn=function(G){return new g.OV(new UV(function(B,a){yiV(G,B,a)}))}; bT=function(G,B){return new g.OV(new UV(function(a,V){function x(){var h=G?B(G):null;h?h.then(function(e){G=e;x()},V):a()} x()}))}; n$X=function(G,B){this.request=G;this.cursor=B}; fAV=function(G){return jn(G).then(function(B){return B?new n$X(G,B):null})}; g.Hm9=function(G){G.cursor.continue(void 0);return fAV(G.request)}; v$c=function(G,B){this.j=G;this.options=B;this.transactionCount=0;this.C=Math.round((0,g.yT)());this.X=!1}; g.nN=function(G,B,a){G=G.j.createObjectStore(B,a);return new cL(G)}; fN=function(G,B){G.j.objectStoreNames.contains(B)&&G.j.deleteObjectStore(B)}; g.DP=function(G,B,a){return g.HL(G,[B],{mode:"readwrite",hs:!0},function(V){return g.vL(V.objectStore(B),a)})}; g.HL=function(G,B,a,V){var x,h,e,w,K,l,k,N,d,C,z,p;return g.v(function(O){switch(O.j){case 1:var b={mode:"readonly",hs:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof a==="string"?b.mode=a:Object.assign(b,a);x=b;G.transactionCount++;h=x.hs?3:1;e=0;case 2:if(w){O.kf(4);break}e++;K=Math.round((0,g.yT)());g.UA(O,5);l=G.j.transaction(B,x.mode);b=new Sn(l);b=D4g(b,V);return g.f(O,b,7);case 7:return k=O.X,N=Math.round((0,g.yT)()),SJz(G,K,N,e,void 0,B.join(),x),O.return(k);case 5:d=g.jB(O);C=Math.round((0,g.yT)()); z=gP(d,G.j.name,B.join(),G.j.version);if((p=z instanceof g.z0&&!z.j)||e>=h)SJz(G,K,C,e,z,B.join(),x),w=z;O.kf(2);break;case 4:return O.return(Promise.reject(w))}})}; SJz=function(G,B,a,V,x,h,e){B=a-B;x?(x instanceof g.z0&&(x.type==="QUOTA_EXCEEDED"||x.type==="QUOTA_MAYBE_EXCEEDED")&&N$("QUOTA_EXCEEDED",{dbName:CN(G.j.name),objectStoreNames:h,transactionCount:G.transactionCount,transactionMode:e.mode}),x instanceof g.z0&&x.type==="UNKNOWN_ABORT"&&(a-=G.C,a<0&&a>=2147483648&&(a=0),N$("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:h,transactionDuration:B,transactionCount:G.transactionCount,dbDuration:a}),G.X=!0),RR_(G,!1,V,h,B,e.tag),kR(x)):RR_(G,!0,V,h,B, e.tag)}; RR_=function(G,B,a,V,x,h){N$("TRANSACTION_ENDED",{objectStoreNames:V,connectionHasUnknownAbortedTransaction:G.X,duration:x,isSuccessful:B,tryCount:a,tag:h===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":h})}; cL=function(G){this.j=G}; g.Rt=function(G,B,a){G.j.createIndex(B,a,{unique:!1})}; Zmc=function(G,B){return g.ZP(G,{query:B},function(a){return a.delete().then(function(){return g.rP(a)})}).then(function(){})}; riK=function(G,B,a){var V=[];return g.ZP(G,{query:B},function(x){if(!(a!==void 0&&V.length>=a))return V.push(x.getValue()),g.rP(x)}).then(function(){return V})}; XC9=function(G){return"getAllKeys"in IDBObjectStore.prototype?jn(G.j.getAllKeys(void 0,void 0)):$4Y(G)}; $4Y=function(G){var B=[];return g.qJB(G,{query:void 0},function(a){B.push(a.cursor.primaryKey);return g.Hm9(a)}).then(function(){return B})}; g.vL=function(G,B,a){return jn(G.j.put(B,a))}; g.ZP=function(G,B,a){G=G.j.openCursor(B.query,B.direction);return $R(G).then(function(V){return bT(V,a)})}; g.qJB=function(G,B,a){var V=B.query;B=B.direction;G="openKeyCursor"in IDBObjectStore.prototype?G.j.openKeyCursor(V,B):G.j.openCursor(V,B);return fAV(G).then(function(x){return bT(x,a)})}; Sn=function(G){var B=this;this.j=G;this.C=new Map;this.X=!1;this.done=new Promise(function(a,V){B.j.addEventListener("complete",function(){a()}); B.j.addEventListener("error",function(x){x.currentTarget===x.target&&V(B.j.error)}); B.j.addEventListener("abort",function(){var x=B.j.error;if(x)V(x);else if(!B.X){x=g.z0;for(var h=B.j.objectStoreNames,e=[],w=0;w=a))return V.push(x.getValue()),g.rP(x)}).then(function(){return V})}; g.XC=function(G,B,a){G=G.j.openCursor(B.query===void 0?null:B.query,B.direction===void 0?"next":B.direction);return $R(G).then(function(V){return bT(V,a)})}; q$=function(G,B){this.request=G;this.cursor=B}; $R=function(G){return jn(G).then(function(B){return B?new q$(G,B):null})}; g.rP=function(G){G.cursor.continue(void 0);return $R(G.request)}; LuH=function(G,B,a){return new Promise(function(V,x){function h(){d||(d=new v$c(e.result,{closed:N}));return d} var e=B!==void 0?self.indexedDB.open(G,B):self.indexedDB.open(G);var w=a.blocked,K=a.blocking,l=a.n3f,k=a.upgrade,N=a.closed,d;e.addEventListener("upgradeneeded",function(C){try{if(C.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(e.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");C.dataLoss&&C.dataLoss!=="none"&&N$("IDB_DATA_CORRUPTED",{reason:C.dataLossMessage||"unknown reason",dbName:CN(G)});var z=h(),p=new Sn(e.transaction); k&&k(z,function(O){return C.oldVersion=O},p); p.done.catch(function(O){x(O)})}catch(O){x(O)}}); e.addEventListener("success",function(){var C=e.result;K&&C.addEventListener("versionchange",function(){K(h())}); C.addEventListener("close",function(){N$("IDB_UNEXPECTEDLY_CLOSED",{dbName:CN(G),dbVersion:C.version});l&&l()}); V(h())}); e.addEventListener("error",function(){x(e.error)}); w&&e.addEventListener("blocked",function(){w()})})}; TiB=function(G,B,a){a=a===void 0?{}:a;return LuH(G,B,a)}; uT=function(G,B){B=B===void 0?{}:B;var a,V,x,h;return g.v(function(e){if(e.j==1)return g.UA(e,2),a=self.indexedDB.deleteDatabase(G),V=B,(x=V.blocked)&&a.addEventListener("blocked",function(){x()}),g.f(e,ciB(a),4); if(e.j!=2)return g.EA(e,0);h=g.jB(e);throw gP(h,G,"",-1);})}; QT=function(G,B){this.name=G;this.options=B;this.C=!0;this.B=this.G=0}; sRB=function(G,B){return new g.z0("INCOMPATIBLE_DB_VERSION",{dbName:G.name,oldVersion:G.options.version,newVersion:B})}; g.LN=function(G,B){if(!B)throw g.pN("openWithToken",CN(G.name));return G.open()}; FuX=function(G,B){var a;return g.v(function(V){if(V.j==1)return g.f(V,g.LN(T0,B),2);a=V.X;return V.return(g.HL(a,["databases"],{hs:!0,mode:"readwrite"},function(x){var h=x.objectStore("databases");return h.get(G.actualName).then(function(e){if(e?G.actualName!==e.actualName||G.publicName!==e.publicName||G.userIdentifier!==e.userIdentifier:1)return g.vL(h,G).then(function(){})})}))})}; sV=function(G,B){var a;return g.v(function(V){if(V.j==1)return G?g.f(V,g.LN(T0,B),2):V.return();a=V.X;return V.return(a.delete("databases",G))})}; Jiz=function(G,B){var a,V;return g.v(function(x){return x.j==1?(a=[],g.f(x,g.LN(T0,B),2)):x.j!=3?(V=x.X,g.f(x,g.HL(V,["databases"],{hs:!0,mode:"readonly"},function(h){a.length=0;return g.ZP(h.objectStore("databases"),{},function(e){G(e.getValue())&&a.push(e.getValue());return g.rP(e)})}),3)):x.return(a)})}; Ai_=function(G,B){return Jiz(function(a){return a.publicName===G&&a.userIdentifier!==void 0},B)}; YJK=function(){var G,B,a,V;return g.v(function(x){switch(x.j){case 1:G=xR();if((B=G)==null?0:B.hasSucceededOnce)return x.return(!0);if(FC&&JM()&&!AM()||g.Jx)return x.return(!1);try{if(a=self,!(a.indexedDB&&a.IDBIndex&&a.IDBKeyRange&&a.IDBObjectStore))return x.return(!1)}catch(h){return x.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return x.return(!1);g.UA(x,2);V={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.f(x,FuX(V,Ax),4);case 4:return g.f(x,sV("yt-idb-test-do-not-use",Ax),5);case 5:return x.return(!0);case 2:return g.jB(x),x.return(!1)}})}; im_=function(){if(YR!==void 0)return YR;lT=!0;return YR=YJK().then(function(G){lT=!1;var B;if((B=VT())!=null&&B.j){var a;B={hasSucceededOnce:((a=xR())==null?void 0:a.hasSucceededOnce)||G};var V;(V=VT())==null||V.set("LAST_RESULT_ENTRY_KEY",B,2592E3,!0)}return G})}; iT=function(){return g.LV("ytglobal.idbToken_")||void 0}; g.PL=function(){var G=iT();return G?Promise.resolve(G):im_().then(function(B){(B=B?Ax:void 0)&&g.Qb("ytglobal.idbToken_",B);return B})}; Puy=function(G){if(!g.At())throw G=new g.z0("AUTH_INVALID",{dbName:G}),kR(G),G;var B=g.Jt();return{actualName:G+":"+B,publicName:G,userIdentifier:B}}; o$B=function(G,B,a,V){var x,h,e,w,K,l;return g.v(function(k){switch(k.j){case 1:return h=(x=Error().stack)!=null?x:"",g.f(k,g.PL(),2);case 2:e=k.X;if(!e)throw w=g.pN("openDbImpl",G,B),g.pB("ytidb_async_stack_killswitch")||(w.stack=w.stack+"\n"+h.substring(h.indexOf("\n")+1)),kR(w),w;dP(G);K=a?{actualName:G,publicName:G,userIdentifier:void 0}:Puy(G);g.UA(k,3);return g.f(k,FuX(K,e),5);case 5:return g.f(k,TiB(K.actualName,B,V),6);case 6:return k.return(k.X);case 3:return l=g.jB(k),g.UA(k,7),g.f(k,sV(K.actualName, e),9);case 9:g.EA(k,8);break;case 7:g.jB(k);case 8:throw l;}})}; MbB=function(G,B,a){a=a===void 0?{}:a;return o$B(G,B,!1,a)}; GYH=function(G,B,a){a=a===void 0?{}:a;return o$B(G,B,!0,a)}; BLz=function(G,B){B=B===void 0?{}:B;var a,V;return g.v(function(x){if(x.j==1)return g.f(x,g.PL(),2);if(x.j!=3){a=x.X;if(!a)return x.return();dP(G);V=Puy(G);return g.f(x,uT(V.actualName,B),3)}return g.f(x,sV(V.actualName,a),0)})}; am_=function(G,B,a){G=G.map(function(V){return g.v(function(x){return x.j==1?g.f(x,uT(V.actualName,B),2):g.f(x,sV(V.actualName,a),0)})}); return Promise.all(G).then(function(){})}; VVc=function(G){var B=B===void 0?{}:B;var a,V;return g.v(function(x){if(x.j==1)return g.f(x,g.PL(),2);if(x.j!=3){a=x.X;if(!a)return x.return();dP(G);return g.f(x,Ai_(G,a),3)}V=x.X;return g.f(x,am_(V,B,a),0)})}; xlX=function(G,B){B=B===void 0?{}:B;var a;return g.v(function(V){if(V.j==1)return g.f(V,g.PL(),2);if(V.j!=3){a=V.X;if(!a)return V.return();dP(G);return g.f(V,uT(G,B),3)}return g.f(V,sV(G,a),0)})}; ot=function(G,B){QT.call(this,G,B);this.options=B;dP(G)}; hyg=function(G,B){var a;return function(){a||(a=new ot(G,B));return a}}; g.M$=function(G,B){return hyg(G,B)}; GD=function(G){return g.LN(eyb(),G)}; Wpx=function(G,B,a,V){var x,h,e;return g.v(function(w){switch(w.j){case 1:return x={config:G,hashData:B,timestamp:V!==void 0?V:(0,g.yT)()},g.f(w,GD(a),2);case 2:return h=w.X,g.f(w,h.clear("hotConfigStore"),3);case 3:return g.f(w,g.DP(h,"hotConfigStore",x),4);case 4:return e=w.X,w.return(e)}})}; wux=function(G,B,a,V,x){var h,e,w;return g.v(function(K){switch(K.j){case 1:return h={config:G,hashData:B,configData:a,timestamp:x!==void 0?x:(0,g.yT)()},g.f(K,GD(V),2);case 2:return e=K.X,g.f(K,e.clear("coldConfigStore"),3);case 3:return g.f(K,g.DP(e,"coldConfigStore",h),4);case 4:return w=K.X,K.return(w)}})}; Kpg=function(G){var B,a;return g.v(function(V){return V.j==1?g.f(V,GD(G),2):V.j!=3?(B=V.X,a=void 0,g.f(V,g.HL(B,["coldConfigStore"],{mode:"readwrite",hs:!0},function(x){return g.XC(x.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(h){a=h.getValue()})}),3)):V.return(a)})}; lmB=function(G){var B,a;return g.v(function(V){return V.j==1?g.f(V,GD(G),2):V.j!=3?(B=V.X,a=void 0,g.f(V,g.HL(B,["hotConfigStore"],{mode:"readwrite",hs:!0},function(x){return g.XC(x.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(h){a=h.getValue()})}),3)):V.return(a)})}; kYb=function(){return g.v(function(G){return g.f(G,VVc("ytGcfConfig"),0)})}; Bn=function(){g.r.call(this);this.X=[];this.j=[];var G=g.LV("yt.gcf.config.hotUpdateCallbacks");G?(this.X=[].concat(g.U(G)),this.j=G):(this.j=[],g.Qb("yt.gcf.config.hotUpdateCallbacks",this.j))}; Wn=function(){var G=this;this.B=!1;this.C=this.G=0;this.L=new Bn;this.vC={xwf:function(){G.B=!0}, qDd:function(){return G.j}, l5J:function(B){aw(G,B)}, yS:function(B){G.yS(B)}, qYd:function(B){V2(G,B)}, Pv:function(){return G.coldHashData}, YU:function(){return G.hotHashData}, NWJ:function(){return G.X}, aqf:function(){return xI()}, PXr:function(){return hd()}, pBL:function(){return g.LV("yt.gcf.config.coldHashData")}, VmN:function(){return g.LV("yt.gcf.config.hotHashData")}, XMX:function(){NLV(G)}, BLS:function(){G.yS(void 0);eq(G);delete Wn.instance}, wm1:function(B){G.C=B}, lqN:function(){return G.C}}}; dlz=function(){if(!Wn.instance){var G=new Wn;Wn.instance=G}return Wn.instance}; tVX=function(G){var B;g.v(function(a){if(a.j==1)return g.pB("start_client_gcf")||g.pB("delete_gcf_config_db")?g.pB("start_client_gcf")?g.f(a,g.PL(),3):a.kf(2):a.return();a.j!=2&&((B=a.X)&&g.At()&&!g.pB("delete_gcf_config_db")?(G.B=!0,NLV(G)):(C4A(G),zyH(G)));return g.pB("delete_gcf_config_db")?g.f(a,kYb(),0):a.kf(0)})}; wg=function(){var G;return(G=hd())!=null?G:g.A0("RAW_HOT_CONFIG_GROUP")}; mlY=function(G){var B,a,V,x,h,e;return g.v(function(w){switch(w.j){case 1:if(G.X)return w.return(hd());if(!G.B)return B=g.pN("getHotConfig IDB not initialized"),Ml(B),w.return(Promise.reject(B));a=iT();V=g.A0("TIME_CREATED_MS");if(!a){x=g.pN("getHotConfig token error");Ml(x);w.kf(2);break}return g.f(w,lmB(a),3);case 3:if((h=w.X)&&h.timestamp>V)return aw(G,h.config),G.yS(h.hashData),w.return(hd());case 2:zyH(G);if(!(a&&G.X&&G.hotHashData)){w.kf(4);break}return g.f(w,Wpx(G.X,G.hotHashData,a,V),4);case 4:return G.X? w.return(hd()):(e=new g.FI("Config not available in ytConfig"),Ml(e),w.return(Promise.reject(e)))}})}; gtb=function(G){var B,a,V,x,h,e;return g.v(function(w){switch(w.j){case 1:if(G.j)return w.return(xI());if(!G.B)return B=g.pN("getColdConfig IDB not initialized"),Ml(B),w.return(Promise.reject(B));a=iT();V=g.A0("TIME_CREATED_MS");if(!a){x=g.pN("getColdConfig");Ml(x);w.kf(2);break}return g.f(w,Kpg(a),3);case 3:if((h=w.X)&&h.timestamp>V)return V2(G,h.config),ImY(G,h.configData),eq(G,h.hashData),w.return(xI());case 2:C4A(G);if(!(a&&G.j&&G.coldHashData&&G.configData)){w.kf(4);break}return g.f(w,wux(G.j, G.coldHashData,G.configData,a,V),4);case 4:return G.j?w.return(xI()):(e=new g.FI("Config not available in ytConfig"),Ml(e),w.return(Promise.reject(e)))}})}; NLV=function(G){if(!G.X||!G.j){if(!iT()){var B=g.pN("scheduleGetConfigs");Ml(B)}G.G||(G.G=g.q1.mw(function(){return g.v(function(a){switch(a.j){case 1:return g.UA(a,2),g.f(a,mlY(G),4);case 4:g.EA(a,3);break;case 2:g.jB(a);case 3:return g.UA(a,5),g.f(a,gtb(G),7);case 7:g.EA(a,6);break;case 5:g.jB(a);case 6:G.G&&(G.G=0),g.pV(a)}})},100))}}; pub=function(G,B,a){var V,x,h;return g.v(function(e){switch(e.j){case 1:if(!g.pB("start_client_gcf")){e.kf(0);break}a&&aw(G,a);G.yS(B);V=iT();if(!V){e.kf(3);break}if(a){e.kf(4);break}return g.f(e,lmB(V),5);case 5:x=e.X,a=(h=x)==null?void 0:h.config;case 4:return g.f(e,Wpx(a,B,V),3);case 3:if(a)for(var w=a,K=g.m(G.L.j),l=K.next();!l.done;l=K.next())l=l.value,l(w);g.pV(e)}})}; Uly=function(G,B,a){var V,x,h,e;return g.v(function(w){if(w.j==1){if(!g.pB("start_client_gcf"))return w.kf(0);eq(G,B);return(V=iT())?a?w.kf(4):g.f(w,Kpg(V),5):w.kf(0)}w.j!=4&&(x=w.X,a=(h=x)==null?void 0:h.config);if(!a)return w.kf(0);e=a.configData;return g.f(w,wux(a,B,e,V),0)})}; OxK=function(){var G=dlz(),B=(0,g.yT)()-G.C;if(!(G.C!==0&&B0&&(B.request={internalExperimentFlags:a});jbB(G,void 0,B);bx9(void 0,B);y0c(void 0,B);c0K(G,void 0,B);ntB(void 0,B);g.pB("start_client_gcf")&&fmx(void 0,B);g.A0("DELEGATED_SESSION_ID")&& !g.pB("pageid_as_header_web")&&(B.user={onBehalfOfUser:g.A0("DELEGATED_SESSION_ID")});!g.pB("fill_delegate_context_in_gel_killswitch")&&(G=g.A0("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(B.user=Object.assign({},B.user,{serializedDelegationContext:G}));G=g.A0("INNERTUBE_CONTEXT");var V;if(g.pB("enable_persistent_device_token")&&(G==null?0:(V=G.client)==null?0:V.rolloutToken)){var x;B.client.rolloutToken=G==null?void 0:(x=G.client)==null?void 0:x.rolloutToken}V=Object;x=V.assign;G=B.client; a={};for(var h=g.m(Object.entries(ah(g.A0("DEVICE","")))),e=h.next();!e.done;e=h.next()){var w=g.m(e.value);e=w.next().value;w=w.next().value;e==="cbrand"?a.deviceMake=w:e==="cmodel"?a.deviceModel=w:e==="cbr"?a.browserName=w:e==="cbrver"?a.browserVersion=w:e==="cos"?a.osName=w:e==="cosver"?a.osVersion=w:e==="cplatform"&&(a.platform=w)}B.client=x.call(V,G,a);return B}; jbB=function(G,B,a){G=G.I3;if(G==="WEB"||G==="MWEB"||G===1||G===2)if(B){a=hk(B,cu,96)||new cu;var V=rE();V=Object.keys(Hx_).indexOf(V);V=V===-1?null:V;V!==null&&mn(a,3,V);eo(B,cu,96,a)}else a&&(a.client.mainAppWebInfo=(V=a.client.mainAppWebInfo)!=null?V:{},a.client.mainAppWebInfo.webDisplayMode=rE())}; bx9=function(G,B){var a=g.LV("yt.embedded_player.embed_url");a&&(G?(B=hk(G,Dm,7)||new Dm,zz(B,4,a),eo(G,Dm,7,B)):B&&(B.thirdParty={embedUrl:a}))}; y0c=function(G,B){var a;if(g.pB("web_log_memory_total_kbytes")&&((a=g.qY.navigator)==null?0:a.deviceMemory)){var V;a=(V=g.qY.navigator)==null?void 0:V.deviceMemory;G?Xn(G,95,IU(a*1E6)):B&&(B.client.memoryTotalKbytes=""+a*1E6)}}; c0K=function(G,B,a){if(G.appInstallData)if(B){var V;a=(V=hk(B,y4,62))!=null?V:new y4;zz(a,6,G.appInstallData);eo(B,y4,62,a)}else a&&(a.client.configInfo=a.client.configInfo||{},a.client.configInfo.appInstallData=G.appInstallData)}; ntB=function(G,B){var a=d4c();a&&(G?mn(G,61,vty[a]):B&&(B.client.connectionType=a));g.pB("web_log_effective_connection_type")&&(a=zRB())&&(G?mn(G,94,DlB[a]):B&&(B.client.effectiveConnectionType=a))}; Svz=function(G,B,a){a=a===void 0?{}:a;var V={};g.A0("EOM_VISITOR_DATA")?V={"X-Goog-EOM-Visitor-Id":g.A0("EOM_VISITOR_DATA")}:V={"X-Goog-Visitor-Id":a.visitorData||g.A0("VISITOR_DATA","")};if(B&&B.includes("www.youtube-nocookie.com"))return V;B=a.L4||g.A0("AUTHORIZATION");B||(G?B="Bearer "+g.LV("gapi.auth.getToken")().access_token:(G=Wuz().Oc(kI),g.pB("pageid_as_header_web")||delete G["X-Goog-PageId"],V=Object.assign({},V,G)));B&&(V.Authorization=B);return V}; fmx=function(G,B){var a=OxK();if(a){var V=a.coldConfigData,x=a.coldHashData;a=a.hotHashData;if(G){var h;B=(h=hk(G,y4,62))!=null?h:new y4;V=zz(B,1,V);zz(V,3,x).yS(a);eo(G,y4,62,B)}else B&&(B.client.configInfo=B.client.configInfo||{},V&&(B.client.configInfo.coldConfigData=V),x&&(B.client.configInfo.coldHashData=x),a&&(B.client.configInfo.hotHashData=a))}}; NM=function(G,B){this.version=G;this.args=B}; dg=function(G,B){this.topic=G;this.j=B}; zD=function(G,B){var a=Ci();a&&a.publish.call(a,G.toString(),G,B)}; r0B=function(G){var B=Ryg,a=Ci();if(!a)return 0;var V=a.subscribe(B.toString(),function(x,h){var e=g.LV("ytPubsub2Pubsub2SkipSubKey");e&&e==V||(e=function(){if(td[V])try{if(h&&B instanceof dg&&B!=x)try{var w=B.j,K=h;if(!K.args||!K.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!w.VR){var l=new w;w.VR=l.version}var k=w.VR}catch(N){}if(!k||K.version!=k)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(w, g.Gv(K.args))}catch(N){throw N.message="yt.pubsub2.Data.deserialize(): "+N.message,N;}}catch(N){throw N.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+B.toString()+": "+N.message,N;}G.call(window,h)}catch(N){g.Pu(N)}},Zxb[B.toString()]?g.G0()?g.q1.mw(e):g.z9(e,0):e())}); td[V]=!0;mH[B.toString()]||(mH[B.toString()]=[]);mH[B.toString()].push(V);return V}; qvy=function(){var G=$lb,B=r0B(function(a){G.apply(void 0,arguments);Xub(B)}); return B}; Xub=function(G){var B=Ci();B&&(typeof G==="number"&&(G=[G]),g.kV(G,function(a){B.unsubscribeByKey(a);delete td[a]}))}; Ci=function(){return g.LV("ytPubsub2Pubsub2Instance")}; Iw=function(G,B,a){a=a===void 0?{sampleRate:.1}:a;Math.random()Fpc||e=ix_&&(Sq++,g.pB("abandon_compression_after_N_slow_zips")?D1===g.Uq("compression_disable_point")&&Sq>P4X&&(fi=!1):fi=!1);otV(B);V.headers||(V.headers={});V.headers["Content-Encoding"]="gzip";V.postBody=G;V.postParams=void 0;x(a,V)}; MVc=function(G){var B=B===void 0?!1:B;var a=a===void 0?!1:a;var V=(0,g.yT)(),x={startTime:V,ticks:{},infos:{}},h=B?g.LV("yt.logging.gzipForFetch",!1):!0;if(fi&&h){if(!G.body)return G;try{var e=a?G.body:typeof G.body==="string"?G.body:JSON.stringify(G.body);h=e;if(!a&&typeof e==="string"){var w=sb_(e);if(w!=null&&(w>Fpc||w=ix_)if(Sq++,g.pB("abandon_compression_after_N_slow_zips")||g.pB("abandon_compression_after_N_slow_zips_lr")){B=Sq/D1;var l=P4X/g.Uq("compression_disable_point");D1>0&&D1%g.Uq("compression_disable_point")===0&&B>=l&&(fi=!1)}else fi=!1;otV(x)}}G.headers=Object.assign({},{"Content-Encoding":"gzip"},G.headers||{});G.body=h;return G}catch(k){return Ml(k),G}}else return G}; sb_=function(G){try{return(new Blob(G.split(""))).size}catch(B){return Ml(B),null}}; otV=function(G){g.pB("gel_compression_csi_killswitch")||!g.pB("log_gel_compression_latency")&&!g.pB("log_gel_compression_latency_lr")||Iw("gel_compression",G,{sampleRate:.1})}; Z1=function(G){var B=this;this.Lw=this.j=!1;this.potentialEsfErrorCounter=this.X=0;this.handleError=function(){}; this.pP=function(){}; this.now=Date.now;this.k7=!1;this.vC={KDx:function(k){B.ND=k}, C9L:function(){B.XC()}, c5:function(){B.dF()}, Qx:function(k){return g.v(function(N){return g.f(N,B.Qx(k),0)})}, JO:function(k,N){return B.JO(k,N)}, KW:function(){B.KW()}}; var a;this.RP=(a=G.RP)!=null?a:100;var V;this.bO=(V=G.bO)!=null?V:1;var x;this.HV=(x=G.HV)!=null?x:2592E6;var h;this.XN=(h=G.XN)!=null?h:12E4;var e;this.QY=(e=G.QY)!=null?e:5E3;var w;this.ND=(w=G.ND)!=null?w:void 0;this.j7=!!G.j7;var K;this.Kw=(K=G.Kw)!=null?K:.1;var l;this.yD=(l=G.yD)!=null?l:10;G.handleError&&(this.handleError=G.handleError);G.pP&&(this.pP=G.pP);G.k7&&(this.k7=G.k7);G.Lw&&(this.Lw=G.Lw);this.Or=G.Or;this.ra=G.ra;this.NH=G.NH;this.uf=G.uf;this.sendFn=G.sendFn;this.xs=G.xs;this.Uq= G.Uq;Rw(this)&&(!this.Or||this.Or("networkless_logging"))&&G9A(this)}; G9A=function(G){Rw(G)&&!G.k7&&(G.j=!0,G.j7&&Math.random()<=G.Kw&&G.NH.H5(G.ND),G.KW(),G.uf.JA()&&G.XC(),G.uf.listen(G.xs,G.XC.bind(G)),G.uf.listen(G.Uq,G.dF.bind(G)))}; VK_=function(G,B){if(!Rw(G))throw Error("IndexedDB is not supported: updateRequestHandlers");var a=B.options.onError?B.options.onError:function(){}; B.options.onError=function(x,h){var e,w,K,l;return g.v(function(k){switch(k.j){case 1:e=B1B(h);(w=adH(h))&&G.Or&&G.Or("web_enable_error_204")&&G.handleError(Error("Request failed due to compression"),B.url,h);if(!(G.Or&&G.Or("nwl_consider_error_code")&&e||G.Or&&!G.Or("nwl_consider_error_code")&&G.potentialEsfErrorCounter<=G.yD)){k.kf(2);break}if(!G.uf.O7){k.kf(3);break}return g.f(k,G.uf.O7(),3);case 3:if(G.uf.JA()){k.kf(2);break}a(x,h);if(!G.Or||!G.Or("nwl_consider_error_code")||((K=B)==null?void 0: K.id)===void 0){k.kf(6);break}return g.f(k,G.NH.Qj(B.id,G.ND,!1),6);case 6:return k.return();case 2:if(G.Or&&G.Or("nwl_consider_error_code")&&!e&&G.potentialEsfErrorCounter>G.yD)return k.return();G.potentialEsfErrorCounter++;if(((l=B)==null?void 0:l.id)===void 0){k.kf(8);break}return B.sendCount=400&&G<=599?!1:!0}; adH=function(G){var B;G=G==null?void 0:(B=G.error)==null?void 0:B.code;return!(G!==400&&G!==415)}; xIz=function(){if($I)return $I();var G={};$I=g.M$("LogsDatabaseV2",{IC:(G.LogsRequestsStore={t6:2},G),shared:!1,upgrade:function(B,a,V){a(2)&&g.nN(B,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});a(3);a(5)&&(V=V.objectStore("LogsRequestsStore"),V.j.indexNames.contains("newRequest")&&V.j.deleteIndex("newRequest"),g.Rt(V,"newRequestV2",["status","interface","timestamp"]));a(7)&&fN(B,"sapisid");a(9)&&fN(B,"SWHealthLog")}, version:9});return $I()}; XD=function(G){return g.LN(xIz(),G)}; esb=function(G,B){var a,V,x,h;return g.v(function(e){if(e.j==1)return a={startTime:(0,g.yT)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.f(e,XD(B),2);if(e.j!=3)return V=e.X,x=Object.assign({},G,{options:JSON.parse(JSON.stringify(G.options)),interface:g.A0("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.f(e,g.DP(V,"LogsRequestsStore",x),3);h=e.X;a.ticks.tc=(0,g.yT)();hsA(a);return e.return(h)})}; WeH=function(G,B){var a,V,x,h,e,w,K,l;return g.v(function(k){if(k.j==1)return a={startTime:(0,g.yT)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.f(k,XD(B),2);if(k.j!=3)return V=k.X,x=g.A0("INNERTUBE_CONTEXT_CLIENT_NAME",0),h=[G,x,0],e=[G,x,(0,g.yT)()],w=IDBKeyRange.bound(h,e),K="prev",g.pB("use_fifo_for_networkless")&&(K="next"),l=void 0,g.f(k,g.HL(V,["LogsRequestsStore"],{mode:"readwrite",hs:!0},function(N){return g.XC(N.objectStore("LogsRequestsStore").index("newRequestV2"), {query:w,direction:K},function(d){d.getValue()&&(l=d.getValue(),G==="NEW"&&(l.status="QUEUED",d.update(l)))})}),3); a.ticks.tc=(0,g.yT)();hsA(a);return k.return(l)})}; whB=function(G,B){var a;return g.v(function(V){if(V.j==1)return g.f(V,XD(B),2);a=V.X;return V.return(g.HL(a,["LogsRequestsStore"],{mode:"readwrite",hs:!0},function(x){var h=x.objectStore("LogsRequestsStore");return h.get(G).then(function(e){if(e)return e.status="QUEUED",g.vL(h,e).then(function(){return e})})}))})}; Key=function(G,B,a,V){a=a===void 0?!0:a;var x;return g.v(function(h){if(h.j==1)return g.f(h,XD(B),2);x=h.X;return h.return(g.HL(x,["LogsRequestsStore"],{mode:"readwrite",hs:!0},function(e){var w=e.objectStore("LogsRequestsStore");return w.get(G).then(function(K){return K?(K.status="NEW",a&&(K.sendCount+=1),V!==void 0&&(K.options.compress=V),g.vL(w,K).then(function(){return K})):g.OV.resolve(void 0)})}))})}; ldK=function(G,B){var a;return g.v(function(V){if(V.j==1)return g.f(V,XD(B),2);a=V.X;return V.return(a.delete("LogsRequestsStore",G))})}; k9g=function(G){var B,a;return g.v(function(V){if(V.j==1)return g.f(V,XD(G),2);B=V.X;a=(0,g.yT)()-2592E6;return g.f(V,g.HL(B,["LogsRequestsStore"],{mode:"readwrite",hs:!0},function(x){return g.ZP(x.objectStore("LogsRequestsStore"),{},function(h){if(h.getValue().timestamp<=a)return h.delete().then(function(){return g.rP(h)})})}),0)})}; N1K=function(){g.v(function(G){return g.f(G,VVc("LogsDatabaseV2"),0)})}; hsA=function(G){g.pB("nwl_csi_killswitch")||Iw("networkless_performance",G,{sampleRate:1})}; CmY=function(G){return g.LN(dIx(),G)}; zsH=function(G){var B,a;g.v(function(V){if(V.j==1)return g.f(V,CmY(G),2);B=V.X;a=(0,g.yT)()-2592E6;return g.f(V,g.HL(B,["SWHealthLog"],{mode:"readwrite",hs:!0},function(x){return g.ZP(x.objectStore("SWHealthLog"),{},function(h){if(h.getValue().timestamp<=a)return h.delete().then(function(){return g.rP(h)})})}),0)})}; tKX=function(G){var B;return g.v(function(a){if(a.j==1)return g.f(a,CmY(G),2);B=a.X;return g.f(a,B.clear("SWHealthLog"),0)})}; g.qM=function(G,B,a,V,x,h,e){x=x===void 0?"":x;h=h===void 0?!1:h;e=e===void 0?!1:e;if(G)if(a&&!g.T9())Ml(new g.FI("Legacy referrer-scrubbed ping detected")),G&&mIK(G,void 0,{scrubReferrer:!0});else if(x)jK(G,B,"POST",x,V);else if(g.A0("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||V||e)jK(G,B,"GET","",V,void 0,h,e);else{b:{try{var w=new BxB({url:G});if(w.B?typeof w.C!=="string"||w.C.length===0?0:{version:3,nS:w.C,m9:Or(w.j,"act=1","ri=1",acy(w))}:w.L&&{version:4,nS:Or(w.j,"dct=1","suid="+w.G,""),m9:Or(w.j, "act=1","ri=1","suid="+w.G)}){var K=va(g.Z4(5,G));var l=!(!K||!K.endsWith("/aclk")||sh(G,"ri")!=="1");break b}}catch(k){}l=!1}l?IdB(G)?(B&&B(),a=!0):a=!1:a=!1;a||mIK(G,B)}}; IdB=function(G,B){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(G,B===void 0?"":B))return!0}catch(a){}return!1}; mIK=function(G,B,a){a=a===void 0?{}:a;var V=new Image,x=""+g4b++;u_[x]=V;V.onload=V.onerror=function(){B&&u_[x]&&B();delete u_[x]}; a.scrubReferrer&&(V.referrerPolicy="no-referrer");V.src=G}; phV=function(G){var B;return((B=document.featurePolicy)==null?0:B.allowedFeatures().includes("attribution-reporting"))?G+"&nis=6":G+"&nis=5"}; Li=function(){Q2||(Q2=new at("yt.offline"));return Q2}; UIz=function(G){if(g.pB("offline_error_handling")){var B=Li().get("errors",!0)||{};B[G.message]={name:G.name,stack:G.stack};G.level&&(B[G.message].level=G.level);Li().set("errors",B,2592E3,!0)}}; TD=function(){this.j=new Map;this.X=!1}; FD=function(){if(!TD.instance){var G=g.LV("yt.networkRequestMonitor.instance")||new TD;g.Qb("yt.networkRequestMonitor.instance",G);TD.instance=G}return TD.instance}; Jd=function(){g.oL.call(this);var G=this;this.X=!1;this.j=DVY();this.j.listen("networkstatus-online",function(){if(G.X&&g.pB("offline_error_handling")){var B=Li().get("errors",!0);if(B){for(var a in B)if(B[a]){var V=new g.FI(a,"sent via offline_errors");V.name=B[a].name;V.stack=B[a].stack;V.level=B[a].level;g.Pu(V)}Li().set("errors",{},2592E3,!0)}}})}; OBX=function(){if(!Jd.instance){var G=g.LV("yt.networkStatusManager.instance")||new Jd;g.Qb("yt.networkStatusManager.instance",G);Jd.instance=G}return Jd.instance}; g.Ad=function(G){G=G===void 0?{}:G;g.oL.call(this);var B=this;this.j=this.G=0;this.X=OBX();var a=g.LV("yt.networkStatusManager.instance.listen").bind(this.X);a&&(G.rateLimit?(this.rateLimit=G.rateLimit,a("networkstatus-online",function(){E4K(B,"publicytnetworkstatus-online")}),a("networkstatus-offline",function(){E4K(B,"publicytnetworkstatus-offline")})):(a("networkstatus-online",function(){B.dispatchEvent("publicytnetworkstatus-online")}),a("networkstatus-offline",function(){B.dispatchEvent("publicytnetworkstatus-offline")})))}; E4K=function(G,B){G.rateLimit?G.j?(g.q1.QC(G.G),G.G=g.q1.mw(function(){G.C!==B&&(G.dispatchEvent(B),G.C=B,G.j=(0,g.yT)())},G.rateLimit-((0,g.yT)()-G.j))):(G.dispatchEvent(B),G.C=B,G.j=(0,g.yT)()):G.dispatchEvent(B)}; i_=function(){var G=Z1.call;YI||(YI=new g.Ad({YUb:!0,CXJ:!0}));G.call(Z1,this,{NH:{H5:k9g,RN:ldK,oT:WeH,xdJ:whB,Qj:Key,set:esb},uf:YI,handleError:function(B,a,V){var x,h=V==null?void 0:(x=V.error)==null?void 0:x.code;if(h===400||h===415){var e;Ml(new g.FI(B.message,a,V==null?void 0:(e=V.error)==null?void 0:e.code),void 0,void 0,void 0,!0)}else g.Pu(B)}, pP:Ml,sendFn:jhX,now:g.yT,iG:UIz,ra:g.Me(),xs:"publicytnetworkstatus-online",Uq:"publicytnetworkstatus-offline",j7:!0,Kw:.1,yD:g.Uq("potential_esf_error_limit",10),Or:g.pB,k7:!(g.At()&&g.rp(document.location.toString())!=="www.youtube-nocookie.com")});this.C=new g.z_;g.pB("networkless_immediately_drop_all_requests")&&N1K();xlX("LogsDatabaseV2")}; Pn=function(){var G=g.LV("yt.networklessRequestController.instance");G||(G=new i_,g.Qb("yt.networklessRequestController.instance",G),g.pB("networkless_logging")&&g.PL().then(function(B){G.ND=B;G9A(G);G.C.resolve();G.j7&&Math.random()<=G.Kw&&G.ND&&zsH(G.ND);g.pB("networkless_immediately_drop_sw_health_store")&&bBx(G)})); return G}; bBx=function(G){var B;g.v(function(a){if(!G.ND)throw B=g.pN("clearSWHealthLogsDb"),B;return a.return(tKX(G.ND).catch(function(V){G.handleError(V)}))})}; jhX=function(G,B,a,V){V=V===void 0?!1:V;B=g.pB("web_fp_via_jspb")?Object.assign({},B):B;g.pB("use_cfr_monitor")&&yM9(G,B);if(g.pB("use_request_time_ms_header"))B.headers&&Wh(G)&&(B.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.yT)())));else{var x;if((x=B.postParams)==null?0:x.requestTimeMs)B.postParams.requestTimeMs=Math.round((0,g.yT)())}a&&Object.keys(B).length===0?g.qM(G):B.compress?B.postBody?(typeof B.postBody!=="string"&&(B.postBody=JSON.stringify(B.postBody)),vn(G,B.postBody, B,g.bm,V)):vn(G,JSON.stringify(B.postParams),B,yZ,V):g.bm(G,B)}; ow=function(G,B){g.pB("use_event_time_ms_header")&&Wh(G)&&(B.headers||(B.headers={}),B.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.yT)())));return B}; yM9=function(G,B){var a=B.onError?B.onError:function(){}; B.onError=function(x,h){FD().requestComplete(G,!1);a(x,h)}; var V=B.onSuccess?B.onSuccess:function(){}; B.onSuccess=function(x,h){FD().requestComplete(G,!0);V(x,h)}}; g.MM=function(G){this.config_=null;G?this.config_=G:Etb()&&(this.config_=g.Ki())}; g.Gs=function(G,B,a,V){function x(l){try{if((l===void 0?0:l)&&V.retry&&!V.networklessOptions.bypassNetworkless)h.method="POST",V.networklessOptions.writeThenSend?Pn().writeThenSend(K,h):Pn().sendAndWrite(K,h);else if(V.compress){var k=!V.networklessOptions.writeThenSend;if(h.postBody){var N=h.postBody;typeof N!=="string"&&(N=JSON.stringify(h.postBody));vn(K,N,h,g.bm,k)}else vn(K,JSON.stringify(h.postParams),h,yZ,k)}else g.pB("web_all_payloads_via_jspb")?g.bm(K,h):yZ(K,h)}catch(d){if(d.name==="InvalidAccessError")Ml(Error("An extension is blocking network request.")); else throw d;}} !g.A0("VISITOR_DATA")&&B!=="visitor_id"&&Math.random()<.01&&Ml(new g.FI("Missing VISITOR_DATA when sending innertube request.",B,a,V));if(!G.isReady())throw G=new g.FI("innertube xhrclient not ready",B,a,V),g.Pu(G),G;var h={headers:V.headers||{},method:"POST",postParams:a,postBody:V.postBody,postBodyFormat:V.postBodyFormat||"JSON",onTimeout:function(){V.onTimeout()}, onFetchTimeout:V.onTimeout,onSuccess:function(l,k){if(V.onSuccess)V.onSuccess(k)}, onFetchSuccess:function(l){if(V.onSuccess)V.onSuccess(l)}, onError:function(l,k){if(V.onError)V.onError(k)}, onFetchError:function(l){if(V.onError)V.onError(l)}, timeout:V.timeout,withCredentials:!0,compress:V.compress};h.headers["Content-Type"]||(h.headers["Content-Type"]="application/json");a="";var e=G.config_.ZY;e&&(a=e);e=G.config_.iB||!1;var w=Svz(e,a,V);Object.assign(h.headers,w);h.headers.Authorization&&!a&&e&&(h.headers["x-origin"]=window.location.origin);var K=hM(""+a+("/youtubei/"+G.config_.innertubeApiVersion+"/"+B),{alt:"json"});g.LV("ytNetworklessLoggingInitializationOptions")&&cMH.isNwlInitialized?im_().then(function(l){x(l)}):x(!1)}; g.hh=function(G,B,a){var V=g.BD();if(V&&B){var x=V.subscribe(G,function(){function h(){aZ[x]&&B.apply&&typeof B.apply=="function"&&B.apply(a||window,e)} var e=arguments;try{g.VE[G]?h():g.z9(h,0)}catch(w){g.Pu(w)}},a); aZ[x]=!0;xl[G]||(xl[G]=[]);xl[G].push(x);return x}return 0}; n4V=function(G){var B=g.hh("LOGGED_IN",function(a){G.apply(void 0,arguments);g.e5(B)})}; g.e5=function(G){var B=g.BD();B&&(typeof G==="number"?G=[G]:typeof G==="string"&&(G=[parseInt(G,10)]),g.kV(G,function(a){B.unsubscribeByKey(a);delete aZ[a]}))}; g.WD=function(G,B){var a=g.BD();return a?a.publish.apply(a,arguments):!1}; HBA=function(G){var B=g.BD();if(B)if(B.clear(G),G)fdK(G);else for(var a in xl)fdK(a)}; g.BD=function(){return g.qY.ytPubsubPubsubInstance}; fdK=function(G){xl[G]&&(G=xl[G],g.kV(G,function(B){aZ[B]&&delete aZ[B]}),G.length=0)}; g.wr=function(G,B,a){v4x(G,B,a===void 0?null:a)}; v4x=function(G,B,a){a=a===void 0?null:a;var V=DIH(G),x=document.getElementById(V),h=x&&sXA(x),e=x&&!h;h?B&&B():(B&&(h=g.hh(V,B),B=""+g.ix(B),SqX[B]=h),e||(x=Rsx(G,V,function(){sXA(x)||(TAH(x),g.WD(V),g.z9(function(){HBA(V)},0))},a)))}; Rsx=function(G,B,a,V){V=V===void 0?null:V;var x=g.M6("SCRIPT");x.id=B;x.onload=function(){a&&setTimeout(a,0)}; x.onreadystatechange=function(){switch(x.readyState){case "loaded":case "complete":x.onload()}}; V&&x.setAttribute("nonce",V);g.uR(x,g.Ev(G));G=document.getElementsByTagName("head")[0]||document.body;G.insertBefore(x,G.firstChild);return x}; DIH=function(G){var B=document.createElement("a");g.vb(B,G);G=B.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Pb(G)}; Kg=function(G,B){if(G===B)G=!0;else if(Array.isArray(G)&&Array.isArray(B))G=g.Kd(G,B,Kg);else if(g.Ag(G)&&g.Ag(B))a:if(g.Ou(G).length!=g.Ou(B).length)G=!1;else{for(var a in G)if(!Kg(G[a],B[a])){G=!1;break a}G=!0}else G=!1;return G}; N5=function(G){var B=g.Hz.apply(1,arguments);if(!l9(G)||B.some(function(V){return!l9(V)}))throw Error("Only objects may be merged."); B=g.m(B);for(var a=B.next();!a.done;a=B.next())kl(G,a.value)}; kl=function(G,B){for(var a in B)if(l9(B[a])){if(a in G&&!l9(G[a]))throw Error("Cannot merge an object into a non-object.");a in G||(G[a]={});kl(G[a],B[a])}else if(dr(B[a])){if(a in G&&!dr(G[a]))throw Error("Cannot merge an array into a non-array.");a in G||(G[a]=[]);ZBb(G[a],B[a])}else G[a]=B[a];return G}; ZBb=function(G,B){B=g.m(B);for(var a=B.next();!a.done;a=B.next())a=a.value,l9(a)?G.push(kl({},a)):dr(a)?G.push(ZBb([],a)):G.push(a);return G}; l9=function(G){return typeof G==="object"&&!Array.isArray(G)}; dr=function(G){return typeof G==="object"&&Array.isArray(G)}; Cg=function(G){g.r.call(this);this.X=G}; zs=function(G){Cg.call(this,!0);this.j=G}; th=function(G,B){g.r.call(this);var a=this;this.C=[];this.W=!1;this.X=0;this.B=this.L=this.G=!1;this.zH=null;var V=(0,g.oy)(G,B);this.j=new g.J8(function(){return V(a.zH)},300); g.X(this,this.j);this.Y=this.V=Infinity}; rMH=function(G,B){if(!B)return!1;for(var a=0;a-1)throw Error("Deps cycle for: "+B);if(G.X.has(B))return G.X.get(B);if(!G.j.has(B)){if(V)return;throw Error("No provider for: "+B);}V=G.j.get(B);a.push(B);if(V.a5!==void 0)var x=V.a5;else if(V.TJH)x=V[vD]?uGK(G,V[vD],a):[],x=V.TJH.apply(V,g.U(x));else if(V.jk){x=V.jk;var h=x[vD]?uGK(G,x[vD],a):[];x=new (Function.prototype.bind.apply(x,[null].concat(g.U(h))))}else throw Error("Could not resolve providers for: "+B);a.pop();V.eiN||G.X.set(B,x); return x}; uGK=function(G,B,a){return B?B.map(function(V){return V instanceof fg?DN(G,V.key,a,!0):DN(G,V,a)}):[]}; RZ=function(){S5||(S5=new qqz);return S5}; rr=function(){var G,B;return"h5vcc"in ZN&&((G=ZN.h5vcc.traceEvent)==null?0:G.traceBegin)&&((B=ZN.h5vcc.traceEvent)==null?0:B.traceEnd)?1:"performance"in ZN&&ZN.performance.mark&&ZN.performance.measure?2:0}; $l=function(G){var B=rr();switch(B){case 1:ZN.h5vcc.traceEvent.traceBegin("YTLR",G);break;case 2:ZN.performance.mark(G+"-start");break;case 0:break;default:VW(B,"unknown trace type")}}; QhA=function(G){var B=rr();switch(B){case 1:ZN.h5vcc.traceEvent.traceEnd("YTLR",G);break;case 2:B=G+"-start";var a=G+"-end";ZN.performance.mark(a);ZN.performance.measure(G,B,a);break;case 0:break;default:VW(B,"unknown trace type")}}; LeB=function(G){var B,a;(a=(B=window).onerror)==null||a.call(B,G.message,"",0,0,G)}; T1z=function(G){var B=this;var a=a===void 0?0:a;var V=V===void 0?g.Me():V;this.C=a;this.scheduler=V;this.X=new g.z_;this.j=G;for(G={AV:0};G.AV=1E3?x():V>=G?KA||(KA=lY(function(){x();KA=void 0},0)):h-w>=10&&(W$b(B,a.tier),e.G=h)}; a0A=function(G,B){if(G.endpoint==="log_event"){g.pB("more_accurate_gel_parser")&&GI().storePayload({isJspb:!1},G.payload);aA(G);var a=V0(G),V=new Map;V.set(a,[G.payload]);var x=MKb(G.payload)||"";B&&(Wx=new B);return new g.z5(function(h,e){Wx&&Wx.isReady()?wHy(V,Wx,h,e,{bypassNetworkless:!0},!0,ho(x)):h()})}}; hJV=function(G,B,a){if(B.endpoint==="log_event"){aA(void 0,B);var V=V0(B,!0),x=new Map;x.set(V,[n2(B.payload)]);a&&(Wx=new a);return new g.z5(function(h){Wx&&Wx.isReady()?K$b(x,Wx,h,{bypassNetworkless:!0},!0,ho(G)):h()})}}; V0=function(G,B){var a="";if(G.dangerousLogToVisitorSession)a="visitorOnlyApprovedKey";else if(G.cttAuthInfo){if(B===void 0?0:B){B=G.cttAuthInfo.token;a=G.cttAuthInfo;var V=new TY;a.videoId?V.setVideoId(a.videoId):a.playlistId&&M2(V,2,kk,UE(a.playlistId));NT[B]=V}else B=G.cttAuthInfo,a={},B.videoId?a.videoId=B.videoId:B.playlistId&&(a.playlistId=B.playlistId),dz[G.cttAuthInfo.token]=a;a=G.cttAuthInfo.token}return a}; eG=function(G,B,a){G=G===void 0?{}:G;B=B===void 0?!1:B;new g.z5(function(V,x){var h=wz(B,a),e=h.C;h.C=!1;CA(h.X);CA(h.j);h.j=0;Wx&&Wx.isReady()?a===void 0&&g.pB("enable_web_tiered_gel")?l0c(V,x,G,B,300,e):l0c(V,x,G,B,a,e):(W$b(B,a),V())})}; l0c=function(G,B,a,V,x,h){var e=Wx;a=a===void 0?{}:a;V=V===void 0?!1:V;x=x===void 0?200:x;h=h===void 0?!1:h;var w=new Map,K=new Map,l={isJspb:V,cttAuthInfo:void 0,tier:x},k={isJspb:V,cttAuthInfo:void 0};if(V){B=g.m(Object.keys(xk));for(x=B.next();!x.done;x=B.next())x=x.value,K=g.pB("enable_web_tiered_gel")?GI().smartExtractMatchingEntries({keys:[l,k],sizeLimit:1E3}):GI().extractMatchingEntries({isJspb:!0,cttAuthInfo:x}),K.length>0&&w.set(x,K),(g.pB("web_fp_via_jspb_and_json")&&a.writeThenSend||!g.pB("web_fp_via_jspb_and_json"))&& delete xk[x];K$b(w,e,G,a,!1,h)}else{w=g.m(Object.keys(xk));for(l=w.next();!l.done;l=w.next())l=l.value,k=g.pB("enable_web_tiered_gel")?GI().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:l,tier:x},{isJspb:!1,cttAuthInfo:l}],sizeLimit:1E3}):GI().extractMatchingEntries({isJspb:!1,cttAuthInfo:l}),k.length>0&&K.set(l,k),(g.pB("web_fp_via_jspb_and_json")&&a.writeThenSend||!g.pB("web_fp_via_jspb_and_json"))&&delete xk[l];wHy(K,e,G,B,a,!1,h)}}; W$b=function(G,B){function a(){eG({writeThenSend:!0},G,B)} G=G===void 0?!1:G;B=B===void 0?200:B;var V=wz(G,B),x=V===kpY||V===NE_?5E3:dex;g.pB("web_gel_timeout_cap")&&!V.j&&(x=lY(function(){a()},x),V.j=x); CA(V.X);x=g.A0("LOGGING_BATCH_TIMEOUT",g.Uq("web_gel_debounce_ms",1E4));g.pB("shorten_initial_gel_batch_timeout")&&zI&&(x=CPA);x=lY(function(){g.Uq("gel_min_batch_size")>0?GI().getSequenceCount({cttAuthInfo:void 0,isJspb:G,tier:B})>=zJK&&a():a()},x); V.X=x}; wHy=function(G,B,a,V,x,h,e){x=x===void 0?{}:x;var w=Math.round((0,g.yT)()),K=G.size,l=tLx(e);G=g.m(G);var k=G.next();for(e={};!k.done;e={Mf:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,WJ:void 0,FA:void 0},k=G.next()){var N=g.m(k.value);k=N.next().value;N=N.next().value;e.batchRequest=g.HM({context:g.l_(B.config_||g.Ki())});if(!g.Jg(N)&&!g.pB("throw_err_when_logevent_malformed_killswitch")){V();break}e.batchRequest.events=N;(N=dz[k])&&meB(e.batchRequest,k,N);delete dz[k];e.dangerousLogToVisitorSession= k==="visitorOnlyApprovedKey";I0B(e.batchRequest,w,e.dangerousLogToVisitorSession);gSA(x);e.WJ=function(d){g.pB("start_client_gcf")&&g.q1.mw(function(){return g.v(function(C){return g.f(C,pH_(d),0)})}); K--;K||a()}; e.Mf=0;e.FA=function(d){return function(){d.Mf++;if(x.bypassNetworkless&&d.Mf===1)try{g.Gs(B,l,d.batchRequest,to({writeThenSend:!0},d.dangerousLogToVisitorSession,d.WJ,d.FA,h)),zI=!1}catch(C){g.Pu(C),V()}K--;K||a()}}(e); try{g.Gs(B,l,e.batchRequest,to(x,e.dangerousLogToVisitorSession,e.WJ,e.FA,h)),zI=!1}catch(d){g.Pu(d),V()}}}; K$b=function(G,B,a,V,x,h){V=V===void 0?{}:V;var e=Math.round((0,g.yT)()),w={value:G.size},K=new Map([].concat(g.U(G)));K=g.m(K);for(var l=K.next();!l.done;l=K.next()){var k=g.m(l.value).next().value,N=G.get(k);l=new itx;var d=B.config_||g.Ki(),C=new Zm,z=new nx;zz(z,1,d.OF);zz(z,2,d.UF);mn(z,16,d.k5);zz(z,17,d.innertubeContextClientVersion);if(d.kd){var p=d.kd,O=new y4;p.coldConfigData&&zz(O,1,p.coldConfigData);p.appInstallData&&zz(O,6,p.appInstallData);p.coldHashData&&zz(O,3,p.coldHashData);p.hotHashData&& O.yS(p.hotHashData);eo(z,y4,62,O)}(p=g.qY.devicePixelRatio)&&p!=1&&Xn(z,65,xe(p));p=Oq();p!==""&&zz(z,54,p);p=Eq();if(p.length>0){O=new vu;for(var b=0;b65535&&(G=1);J0("BATCH_CLIENT_COUNTER",G);return G}; meB=function(G,B,a){if(a.videoId)var V="VIDEO";else if(a.playlistId)V="PLAYLIST";else return;G.credentialTransferTokenTargetId=a;G.context=G.context||{};G.context.user=G.context.user||{};G.context.user.credentialTransferTokens=[{token:B,scope:V}]}; aA=function(G,B){if(!g.LV("yt.logging.transport.enableScrapingForTest")){var a=g1("il_payload_scraping");if((a!==void 0?String(a):"")==="enable_il_payload_scraping")gz=[],g.Qb("yt.logging.transport.enableScrapingForTest",!0),g.Qb("yt.logging.transport.scrapedPayloadsForTesting",gz),g.Qb("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Qb("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Qb("yt.logging.transport.scrapeClientEvent",!0);else return}a=g.LV("yt.logging.transport.scrapedPayloadsForTesting");var V=g.LV("yt.logging.transport.payloadToScrape");B&&(B=B.payload,(B=g.LV("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(B)())&&a.push(B));B=g.LV("yt.logging.transport.scrapeClientEvent");if(V&&V.length>=1)for(var x=0;x0&&QP9(G,B,h)}else QP9(G,B)}; QP9=function(G,B,a){G=L$B(G);B=B?g.Qs(B):"";a=a||5;BH()&&g.Zd(G,B,a)}; L$B=function(G){for(var B=g.m(TEB),a=B.next();!a.done;a=B.next())G=Ft(G,a.value);return"ST-"+Pb(G).toString(36)}; sPB=function(G){if(G.name==="JavaException")return!0;G=G.stack;return G.includes("chrome://")||G.includes("chrome-extension://")||G.includes("moz-extension://")}; F$x=function(){this.mE=[];this.wK=[]}; Hx=function(){if(!fA){var G=fA=new F$x;G.wK.length=0;G.mE.length=0;Jtb(G,AtX)}return fA}; Jtb=function(G,B){B.wK&&G.wK.push.apply(G.wK,B.wK);B.mE&&G.mE.push.apply(G.mE,B.mE)}; YUb=function(G){function B(){return G.charCodeAt(V++)} var a=G.length,V=0;do{var x=vx(B);if(x===Infinity)break;var h=x>>3;switch(x&7){case 0:x=vx(B);if(h===2)return x;break;case 1:if(h===2)return;V+=8;break;case 2:x=vx(B);if(h===2)return G.substr(V,x);V+=x;break;case 5:if(h===2)return;V+=4;break;default:return}}while(V500));V++);V=x}else if(typeof G==="object")for(x in G){if(G[x]){var h=x;var e=G[x],w=B,K=a;h=typeof e!=="string"||h!=="clickTrackingParams"&&h!=="trackingParams"?0:(e=YUb(atob(e.replace(/-/g,"+").replace(/_/g,"/"))))?Db(h+".ve",e,w,K):0;V+=h;V+=Db(x,G[x],B,a);if(V>500)break}}else a[B]=SG(G),V+=a[B].length;else a[B]=SG(G),V+=a[B].length;return V}; Db=function(G,B,a,V){a+="."+G;G=SG(B);V[a]=G;return a.length+G.length}; SG=function(G){try{return(typeof G==="string"?G:String(JSON.stringify(G))).substr(0,500)}catch(B){return"unable to serialize "+typeof G+" ("+B.message+")"}}; WL=function(G){g.RA(G)}; g.Zb=function(G){g.RA(G,"WARNING")}; g.RA=function(G,B){var a=a===void 0?{}:a;a.name=g.A0("INNERTUBE_CONTEXT_CLIENT_NAME",1);a.version=g.A0("INNERTUBE_CONTEXT_CLIENT_VERSION");B=B===void 0?"ERROR":B;var V=!1;B=B===void 0?"ERROR":B;V=V===void 0?!1:V;if(G){G.hasOwnProperty("level")&&G.level&&(B=G.level);if(g.pB("console_log_js_exceptions")){var x=[];x.push("Name: "+G.name);x.push("Message: "+G.message);G.hasOwnProperty("params")&&x.push("Error Params: "+JSON.stringify(G.params));G.hasOwnProperty("args")&&x.push("Error args: "+JSON.stringify(G.args)); x.push("File name: "+G.fileName);x.push("Stacktrace: "+G.stack);window.console.log(x.join("\n"),G)}if(!(PPH>=5)){x=[];for(var h=g.m(oSc),e=h.next();!e.done;e=h.next()){e=e.value;try{e()&&x.push(e())}catch(p){}}x=[].concat(g.U(MLK),g.U(x));var w=ne9(G);h=w.message||"Unknown Error";e=w.name||"UnknownError";var K=w.stack||G.X||"Not available";if(K.startsWith(e+": "+h)){var l=K.split("\n");l.shift();K=l.join("\n")}l=w.lineNumber||"Not available";w=w.fileName||"Not available";var k=0;if(G.hasOwnProperty("args")&& G.args&&G.args.length)for(var N=0;N=500);N++);else if(G.hasOwnProperty("params")&&G.params){var d=G.params;if(typeof G.params==="object")for(N in d){if(d[N]){var C="params."+N,z=SG(d[N]);a[C]=z;k+=C.length+z.length;if(k>500)break}}else a.params=SG(d)}if(x.length)for(N=0;N=500);N++);navigator.vendor&&!a.hasOwnProperty("vendor")&&(a["device.vendor"]=navigator.vendor);a={message:h,name:e,lineNumber:l, fileName:w,stack:K,params:a,sampleWeight:1};N=Number(G.columnNumber);isNaN(N)||(a.lineNumber=a.lineNumber+":"+N);if(G.level==="IGNORED")G=0;else a:{G=Hx();N=g.m(G.wK);for(x=N.next();!x.done;x=N.next())if(x=x.value,a.message&&a.message.match(x.KF)){G=x.weight;break a}G=g.m(G.mE);for(N=G.next();!N.done;N=G.next())if(N=N.value,N.callback(a)){G=N.weight;break a}G=1}a.sampleWeight=G;G=g.m(G0b);for(N=G.next();!N.done;N=G.next())if(N=N.value,N.DK[a.name])for(h=g.m(N.DK[a.name]),x=h.next();!x.done;x=h.next())if(e= x.value,x=a.message.match(e.m$)){a.params["params.error.original"]=x[0];h=e.groups;e={};for(l=0;l1E3&&g.Zb(new g.FI("IL Attach cache exceeded limit"))}w= Yk(a,B);TI.has(w)?iY(a,B):Fi.set(w,!0)}}V=V.filter(function(k){k.csn!==B?(k.csn=B,k=!0):k=!1;return k}); a={csn:B,parentVe:a.getAsJson(),childVes:g.br(V,function(k){return k.getAsJson()})}; B==="UNDEFINED_CSN"?Px("visualElementAttached",h,a):G?U1("visualElementAttached",a,G,h):g.wP("visualElementAttached",a,h)}; ztx=function(G,B,a,V,x){oA(a,B);V=LA({cttAuthInfo:cx(B)||void 0},B);a={csn:B,ve:a.getAsJson(),eventType:1};x&&(a.clientData=x);B==="UNDEFINED_CSN"?Px("visualElementShown",V,a):G?U1("visualElementShown",a,G,V):g.wP("visualElementShown",a,V)}; tn_=function(G,B,a,V){var x=(V=V===void 0?!1:V)?16:8;V=LA({cttAuthInfo:cx(B)||void 0,endOfSequence:V},B);a={csn:B,ve:a.getAsJson(),eventType:x};B==="UNDEFINED_CSN"?Px("visualElementHidden",V,a):G?U1("visualElementHidden",a,G,V):g.wP("visualElementHidden",a,V)}; m$9=function(G,B,a,V,x){MT(G,B,a,void 0,V,x)}; MT=function(G,B,a,V,x){oA(a,B);V=V||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=LA({cttAuthInfo:cx(B)||void 0},B);a={csn:B,ve:a.getAsJson(),gestureType:V};x&&(a.clientData=x);B==="UNDEFINED_CSN"?Px("visualElementGestured",h,a):G?U1("visualElementGestured",a,G,h):g.wP("visualElementGestured",a,h)}; IPB=function(){var G=Ot(16);for(var B=[],a=0;a0&&a.push(g.M6("BR"));a.push(g.GT(h))}):a.push(g.GT(V))}return a}; Ns=function(G,B,a,V){if(a==="child"){g.aL(B);var x;V===void 0?x=void 0:x=!Array.isArray(V)||V&&typeof V.Z==="string"?[V]:V;a=pLb(G,x);a=g.m(a);for(G=a.next();!G.done;G=a.next())B.appendChild(G.value)}else a==="style"?g.K4(B,"cssText",V?V:""):V===null||V===void 0?B.removeAttribute(a):(G=V.toString(),a==="href"&&(G=g.yg(g.fK(G))),B.setAttribute(a,G))}; g.T=function(G){g.le.call(this,G);this.Rt=!0;this.B=!1;this.listeners=[]}; g.dI=function(G){g.T.call(this,G);this.qB=new g.wI;g.X(this,this.qB)}; Cr=function(G,B,a,V,x,h,e){e=e===void 0?null:e;g.dI.call(this,B);this.api=G;this.macros={};this.componentType=a;this.W=this.V=null;this.Dx=e;this.layoutId=V;this.interactionLoggingClientData=x;this.lL=h;this.Ur=null;this.Bg=new zs(this.element);g.X(this,this.Bg);this.eJ=this.K(this.element,"click",this.onClick);this.GH=[];this.HS=new th(this.onClick,this);g.X(this,this.HS);this.Yf=!1;this.LN=this.zH=null}; zn=function(G,B){G=G===void 0?null:G;B=B===void 0?null:B;if(G==null)return g.Zb(Error("Got null or undefined adText object")),"";var a=g.iR(G.text);if(!G.isTemplated)return a;if(B==null)return g.Zb(Error("Missing required parameters for a templated message")),a;G=g.m(Object.entries(B));for(B=G.next();!B.done;B=G.next()){var V=g.m(B.value);B=V.next().value;V=V.next().value;a=a.replace("{"+B+"}",V)}return a}; U$B=function(G){G=G===void 0?null:G;return G!=null&&(G=G.thumbnail,G!=null&&G.thumbnails!=null&&G.thumbnails.length!=0&&G.thumbnails[0].url!=null)?g.iR(G.thumbnails[0].url):""}; ONB=function(G){G=G===void 0?null:G;return G!=null&&(G=G.thumbnail,G!=null&&G.thumbnails!=null&&G.thumbnails.length!=0&&G.thumbnails[0].width!=null&&G.thumbnails[0].height!=null)?new g.dU(G.thumbnails[0].width||0,G.thumbnails[0].height||0):new g.dU(0,0)}; g.tU=function(G){if(G.simpleText)return G.simpleText;if(G.runs){var B=[];G=g.m(G.runs);for(var a=G.next();!a.done;a=G.next())a=a.value,a.text&&B.push(a.text);return B.join("")}return""}; g.mO=function(G){if(G.simpleText)return G=document.createTextNode(G.simpleText),G;var B=[];if(G.runs)for(var a=0;a1){for(var B=[G[0]],a=1;a0&&(this.j=new g.J8(this.AR,B,this),g.X(this,this.j));this.B=new g.J8(this.AR,a,this);g.X(this,this.B);this.V=qKA(this.X,x,1,V);g.X(this,this.V);this.W=qKA(this.X,0,V,1);g.X(this,this.W);this.G=new yG;g.X(this,this.G)}; Wm=function(G,B,a){this.X=G;this.isAsync=B;this.j=a}; e3_=function(G){switch(G){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:VW(G,"unknown result type")}}; WH9=function(G,B){var a=1;G.isTrusted===!1&&(a=0);J0("ISDSTAT",a);wv(a,"i.s_",{triggerContext:"sk",metadata:B});return a}; wnB=function(G,B){var a=[];B?B.isTrusted===!0?a.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):B.isTrusted===!1?a.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):a.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):a.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");wv(0,"a.s_",{metadata:G,states:a});J0("ASDSTAT",0)}; wv=function(G,B,a){B=KH9[B];var V,x,h={detected:G===0,source:""+B.X+((V=a.triggerContext)!=null?V:"")+((x=a.dY)!=null?x:""),detectionStates:a.states,durationMs:a.Rv};a.metadata&&(h.contentCpn=a.metadata.contentCpn,h.adCpn=a.metadata.adCpn);g.wP("biscottiBasedDetection",h);B.j!==void 0&&(a=Number(g.A0("CATSTAT",0)),B.j!==void 0?(B=B.j,G=e3_(G),G=a&~(3<0}; z7=function(G,B,a,V,x,h){ox.call(this,G,{Z:"div",J:"ytp-ad-skip-button-slot"},"skip-button",B,a,V,x);var e=this;this.XJ=null;this.Zx=!1;this.Er=h;this.L=this.api.U().experiments.Or("enable_modern_skip_button_on_web");this.MB=!1;this.C=new g.dI({Z:"span",bL:["ytp-ad-skip-button-container"]});this.L&&this.C.element.classList.add("ytp-ad-skip-button-container-detached");this.api.S("enable_ad_pod_index_autohide")&&this.C.element.classList.add("ytp-ad-skip-button-container--clean-player");g.X(this,this.C); this.C.iL(this.element);this.X=this.G=null;this.Vb=new g.Bm(this.C,500,!1,100,function(){return e.hide()}); g.X(this,this.Vb);this.Qb=new eu(this.C.element,15E3,5E3,.5,.5,this.L);g.X(this,this.Qb);this.hide()}; kDY=function(G){G=G.XJ&&G.XJ.adRendererCommands;return(G&&G.clickCommand&&g.u(G.clickCommand,g.tn)&&g.u(G.clickCommand,g.tn).commands||[]).some(function(B){return B.adLifecycleCommand?l1B(B.adLifecycleCommand):!1})}; l1B=function(G){return G.action==="END_LINEAR_AD"||G.action==="END_LINEAR_AD_PLACEMENT"}; mJ=function(G,B,a,V,x,h){ox.call(this,G,{Z:"div",J:"ytp-ad-skip-ad-slot"},"skip-ad",B,a,V,x);this.XJ=h;this.G=!1;this.L=0;this.C=this.X=null;this.hide()}; NgA=function(G,B){G.G||(G.G=!0,G.X&&(B?G.X.XJ.hide():G.X.hide()),B?(G=G.C,G.Vb.show(),G.show()):G.C.show())}; Ic=function(G,B,a,V){DG.call(this,G,B,a,V,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; gv=function(G,B,a,V,x,h,e){h=h===void 0?!1:h;e=e===void 0?!1:e;Cr.call(this,G,{Z:"span",J:"ytp-ad-simple-ad-badge"},"simple-ad-badge",B,a,V);this.C=x;this.j=this.d1("ytp-ad-simple-ad-badge");(this.X=h)&&this.j.classList.add("ytp-ad-simple-ad-badge--clean-player");e&&this.j.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; pY=function(G,B,a,V,x){x=x===void 0?!1:x;Wr.call(this,"player-overlay",G,{},B,V);this.videoAdDurationSeconds=a;this.interactionLoggingClientData=V;this.FW=x}; U5=function(G,B){g.wI.call(this);this.api=G;this.durationMs=B;this.j=null;this.yv=new yG(this);g.X(this,this.yv);this.X=dMV;this.yv.K(this.api,"presentingplayerstatechange",this.Q$);this.j=this.yv.K(this.api,"onAdPlaybackProgress",this.BC)}; O5=function(G){g.wI.call(this);this.j=!1;this.QH=0;this.yv=new yG(this);g.X(this,this.yv);this.durationMs=G;this.Pn=new g.Oh(100);g.X(this,this.Pn);this.yv.K(this.Pn,"tick",this.BC);this.X={seekableStart:0,seekableEnd:G/1E3,current:0};this.start()}; g.E5=function(G,B){var a=Math.abs(Math.floor(G)),V=Math.floor(a/86400),x=Math.floor(a%86400/3600),h=Math.floor(a%3600/60);a=Math.floor(a%60);if(B){B="";V>0&&(B+=" "+V+" d\u00edas");if(V>0||x>0)B+=" "+x+" horas";B+=" "+h+" minutos";B+=" "+a+" segundos";V=B.trim()}else{B="";V>0&&(B+=V+":",x<10&&(B+="0"));if(V>0||x>0)B+=x+":",h<10&&(B+="0");B+=h+":";a<10&&(B+="0");V=B+a}return G>=0?V:"-"+V}; g.ju=function(G){return(!("button"in G)||typeof G.button!=="number"||G.button===0)&&!("shiftKey"in G&&G.shiftKey)&&!("altKey"in G&&G.altKey)&&!("metaKey"in G&&G.metaKey)&&!("ctrlKey"in G&&G.ctrlKey)}; by=function(G,B,a,V,x,h,e){ox.call(this,G,{Z:"span",J:e?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",B,a,V,x);this.videoAdDurationSeconds=h;this.X=null;this.api.S("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");e&&this.api.U().X&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.S("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), FC&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; yd=function(G,B,a,V){ie.call(this,G,B,a,V,"ytp-video-ad-top-bar-title","ad-title");G.S("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; cm=function(G){this.content=G.content;if(G.commandRuns){G=g.m(G.commandRuns);for(var B=G.next();!B.done;B=G.next())B=B.value,this.loggingDirectives=g.u(B,C_H),B.onTap&&(this.interaction={onTap:B.onTap})}}; nY=function(G,B,a,V){Cr.call(this,G,{Z:"div",J:"ad-simple-attributed-string"},"ad-simple-attributed-string",B,a,V);this.hide()}; fY=function(G,B,a,V,x){Cr.call(this,G,{Z:"span",J:x?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",B,a,V);this.X=x;this.adBadgeText=new nY(this.api,this.layoutId,this.interactionLoggingClientData,this.lL);this.adBadgeText.iL(this.element);g.X(this,this.adBadgeText);x?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.S("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),FC&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; Hm=function(G,B,a,V,x){Cr.call(this,G,{Z:"span",J:"ytp-ad-pod-index"},"ad-pod-index",B,a,V);this.X=x;this.api.U().X&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.S("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),FC&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; vm=function(G,B,a,V){Cr.call(this,G,{Z:"div",J:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",B,a,V);this.hide()}; D$=function(G,B){this.X=G;this.j=B}; Su=function(G,B,a){if(!G.getLength())return a!=null?a:Infinity;G=(B-G.X)/G.getLength();return g.eH(G,0,1)}; Rc=function(G,B,a,V){V=V===void 0?!1:V;g.dI.call(this,{Z:"div",J:"ytp-ad-persistent-progress-bar-container",D:[{Z:"div",J:"ytp-ad-persistent-progress-bar"}]});this.api=G;this.X=B;this.C=a;V&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.X(this,this.X);this.progressBar=this.d1("ytp-ad-persistent-progress-bar");this.j=-1;this.K(G,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; Z$=function(G,B,a,V,x,h){Cr.call(this,G,{Z:"div",J:"ytp-ad-player-overlay",D:[{Z:"div",J:"ytp-ad-player-overlay-flyout-cta"},{Z:"div",J:"ytp-ad-player-overlay-instream-info"},{Z:"div",J:"ytp-ad-player-overlay-skip-or-preview"},{Z:"div",J:"ytp-ad-player-overlay-progress-bar"},{Z:"div",J:"ytp-ad-player-overlay-instream-user-sentiment"},{Z:"div",J:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",B,a,V);this.Y=h;this.L=this.d1("ytp-ad-player-overlay-flyout-cta");this.L.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.j=this.d1("ytp-ad-player-overlay-instream-info");this.G=null;z3V(this)&&(G=ol("div"),g.hi(G,"ytp-ad-player-overlay-top-bar-gradients"),this.api.S("disable_ad_preview_for_instream_ads")&&g.hi(G,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),B=this.j,B.parentNode&&B.parentNode.insertBefore(G,B),(B=this.api.getVideoData(2))&&B.isListed&&B.title&&(a=new yd(this.api,this.layoutId,this.interactionLoggingClientData,this.lL),a.iL(G),a.init(eT("ad-title"),{text:B.title},this.macros),g.X(this, a)),this.G=G);this.C=null;this.SJ=this.d1("ytp-ad-player-overlay-skip-or-preview");this.Qb=this.d1("ytp-ad-player-overlay-progress-bar");this.Zx=this.d1("ytp-ad-player-overlay-instream-user-sentiment");this.XJ=this.d1("ytp-ad-player-overlay-ad-disclosure-banner");this.X=x;g.X(this,this.X);this.hide()}; z3V=function(G){G=G.api.U();return g.rv(G)&&G.X}; $N=function(G,B,a){var V={};B&&(V.v=B);a&&(V.list=a);G={name:G,locale:void 0,feature:void 0};for(var x in V)G[x]=V[x];V=g.LJ("/sharing_services",G);g.qM(V)}; g.XM=function(G){G&=16777215;var B=[(G&16711680)>>16,(G&65280)>>8,G&255];G=B[0];var a=B[1];B=B[2];G=Number(G);a=Number(a);B=Number(B);if(G!=(G&255)||a!=(a&255)||B!=(B&255))throw Error('"('+G+","+a+","+B+'") is not a valid RGB color');a=G<<16|a<<8|B;return G<16?"#"+(16777216|a).toString(16).slice(1):"#"+a.toString(16)}; qR=function(G){this.j=new nm(G)}; tqV=function(){var G=!1;try{G=!!window.sessionStorage.getItem("session_logininfo")}catch(B){G=!0}return(g.A0("INNERTUBE_CLIENT_NAME")==="WEB"||g.A0("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&G}; uy=function(G){if(g.A0("LOGGED_IN",!0)&&tqV()){var B=g.A0("VALID_SESSION_TEMPDATA_DOMAINS",[]);var a=g.rp(window.location.href);a&&B.push(a);a=g.rp(G);g.YC(B,a)||!a&&ps(G,"/")?(B=$K(G),(B=Ooy(B))?(B=L$B(B),B=(B=g.r1(B)||null)?ah(B):{}):B=null):B=null;B==null&&(B={});a=B;var V=void 0;tqV()?(V||(V=g.A0("LOGIN_INFO")),V?(a.session_logininfo=V,a=!0):a=!1):a=!1;a&&nA(G,B)}}; g.mMg=function(G){var B=B===void 0?{}:B;var a=a===void 0?"":a;var V=V===void 0?window:V;G=g.LJ(G,B);uy(G);a=g.fK(G+a);V=V.location;a=Hb(a);a!==void 0&&(V.href=a)}; g.Qd=function(G,B,a){B=B===void 0?{}:B;a=a===void 0?!1:a;var V=g.A0("EVENT_ID");V&&(B.ei||(B.ei=V));B&&nA(G,B);a||(uy(G),g.mMg(G))}; g.LY=function(G,B,a,V,x){x=x===void 0?!1:x;a&&nA(G,a);a=g.fK(G);var h=g.yg(a);G!=h&&Ml(Error("Unsafe window.open URL: "+G));G=h;B=B||Pb(G).toString(36);try{if(x){x=G;x=phV(x);uy(x);g.Zj(window,x,B,"attributionsrc");return}}catch(e){g.Pu(e)}uy(G);g.Zj(window,a,B,V)}; I1g=function(G){T7=G}; gIB=function(G){s5=G}; pnx=function(G){FM=G}; Oix=function(){UMA=FM=s5=T7=null}; jwb=function(){var G=G===void 0?window.location.href:G;if(g.pB("kevlar_disable_theme_param"))return null;var B=va(g.Z4(5,G));if(g.pB("enable_dark_theme_only_on_shorts")&&B!=null&&B.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var a=g.x4(G).theme;return EIA.get(a)||null}catch(V){}return null}; Jn=function(){this.j={};if(this.X=y8A()){var G=g.r1("CONSISTENCY");G&&biB(this,{encryptedTokenJarContents:G})}}; biB=function(G,B){if(B.encryptedTokenJarContents&&(G.j[B.encryptedTokenJarContents]=B,typeof B.expirationSeconds==="string")){var a=Number(B.expirationSeconds);setTimeout(function(){delete G.j[B.encryptedTokenJarContents]},a*1E3); G.X&&g.Zd("CONSISTENCY",B.encryptedTokenJarContents,a,void 0,!0)}}; YN=function(){this.X=-1;var G=g.A0("LOCATION_PLAYABILITY_TOKEN");g.A0("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=An(this))&&(G=this.localStorage.get("yt-location-playability-token"));G&&(this.locationPlayabilityToken=G,this.j=void 0)}; An=function(G){return G.localStorage===void 0?new at("yt-client-location"):G.localStorage}; g.iy=function(G,B,a){B=B===void 0?!1:B;a=a===void 0?!1:a;var V=g.A0("INNERTUBE_CONTEXT");if(!V)return g.RA(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};V=g.HM(V);g.pB("web_no_tracking_params_in_shell_killswitch")||delete V.clickTracking;V.client||(V.client={});var x=V.client;x.clientName==="MWEB"&&x.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(x.clientFormFactor=g.A0("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");x.screenWidthPoints=window.innerWidth;x.screenHeightPoints= window.innerHeight;x.screenPixelDensity=Math.round(window.devicePixelRatio||1);x.screenDensityFloat=window.devicePixelRatio||1;x.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var h=h===void 0?!1:h;g.qe();var e="USER_INTERFACE_THEME_LIGHT";g.uP(0,165)?e="USER_INTERFACE_THEME_DARK":g.uP(0,174)?e="USER_INTERFACE_THEME_LIGHT":!g.pB("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (e="USER_INTERFACE_THEME_DARK");h=h?e:jwb()||e;x.userInterfaceTheme=h;if(!B){if(h=d4c())x.connectionType=h;g.pB("web_log_effective_connection_type")&&(h=zRB())&&(V.client.effectiveConnectionType=h)}var w;if(g.pB("web_log_memory_total_kbytes")&&((w=g.qY.navigator)==null?0:w.deviceMemory)){var K;w=(K=g.qY.navigator)==null?void 0:K.deviceMemory;V.client.memoryTotalKbytes=""+w*1E6}g.pB("web_gcf_hashes_innertube")&&(h=OxK())&&(K=h.coldConfigData,w=h.coldHashData,h=h.hotHashData,V.client.configInfo=V.client.configInfo|| {},K&&(V.client.configInfo.coldConfigData=K),w&&(V.client.configInfo.coldHashData=w),h&&(V.client.configInfo.hotHashData=h));K=g.x4(g.qY.location.href);!g.pB("web_populate_internal_geo_killswitch")&&K.internalcountrycode&&(x.internalGeo=K.internalcountrycode);x.clientName==="MWEB"||x.clientName==="WEB"?(x.mainAppWebInfo={graftUrl:g.qY.location.href},g.pB("kevlar_woffle")&&eRz.instance&&(K=eRz.instance,x.mainAppWebInfo.pwaInstallabilityStatus=!K.j&&K.X?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),x.mainAppWebInfo.webDisplayMode=rE(),x.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):x.clientName==="TVHTML5"&&(!g.pB("web_lr_app_quality_killswitch")&&(K=g.A0("LIVING_ROOM_APP_QUALITY"))&&(x.tvAppInfo=Object.assign(x.tvAppInfo||{},{appQuality:K})),K=g.A0("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(x.tvAppInfo=Object.assign(x.tvAppInfo||{},{certificationScope:K}));if(!g.pB("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(R){}l=void 0}l&&(x.timeZone=l)}(l=Oq())?x.experimentsToken=l:delete x.experimentsToken;l=Eq();Jn.instance||(Jn.instance=new Jn);V.request=Object.assign({},V.request,{internalExperimentFlags:l,consistencyTokenJars:g.Uu(Jn.instance.j)});!g.pB("web_prequest_context_killswitch")&&(l=g.A0("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(V.request.externalPrequestContext=l);x=g.qe();l=g.uP(0,58);x=x.get("gsml","");V.user=Object.assign({}, V.user);l&&(V.user.enableSafetyMode=l);x&&(V.user.lockedSafetyMode=!0);g.pB("warm_op_csn_cleanup")?a&&(B=g.y0())&&(V.clientScreenNonce=B):!B&&(B=g.y0())&&(V.clientScreenNonce=B);G&&(V.clickTracking={clickTrackingParams:G});if(G=g.LV("yt.mdx.remote.remoteClient_"))V.remoteClient=G;YN.getInstance().setLocationOnInnerTubeContext(V);try{var k=NI(),N=k.bid;delete k.bid;V.adSignalsInfo={params:[],bid:N};for(var d=g.m(Object.entries(k)),C=d.next();!C.done;C=d.next()){var z=g.m(C.value),p=z.next().value, O=z.next().value;k=p;N=O;G=void 0;(G=V.adSignalsInfo.params)==null||G.push({key:k,value:""+N})}var b,c;if(((b=V.client)==null?void 0:b.clientName)==="TVHTML5"||((c=V.client)==null?void 0:c.clientName)==="TVHTML5_UNPLUGGED"){var H=g.A0("INNERTUBE_CONTEXT");H.adSignalsInfo&&(V.adSignalsInfo.advertisingId=H.adSignalsInfo.advertisingId,V.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",V.adSignalsInfo.limitAdTracking=H.adSignalsInfo.limitAdTracking)}}catch(R){g.RA(R)}return V}; nIB=function(G,B){if(!G)return!1;var a,V=(a=g.u(G,ydK))==null?void 0:a.signal;if(V&&B.cP)return!!B.cP[V];var x;if((a=(x=g.u(G,cdx))==null?void 0:x.request)&&B.wF)return!!B.wF[a];for(var h in G)if(B.W4[h])return!0;return!1}; f19=function(G){var B={"Content-Type":"application/json"};g.A0("EOM_VISITOR_DATA")?B["X-Goog-EOM-Visitor-Id"]=g.A0("EOM_VISITOR_DATA"):g.A0("VISITOR_DATA")&&(B["X-Goog-Visitor-Id"]=g.A0("VISITOR_DATA"));B["X-Youtube-Bootstrap-Logged-In"]=g.A0("LOGGED_IN",!1);g.A0("DEBUG_SETTINGS_METADATA")&&(B["X-Debug-Settings-Metadata"]=g.A0("DEBUG_SETTINGS_METADATA"));G!=="cors"&&((G=g.A0("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(B["X-Youtube-Client-Name"]=G),(G=g.A0("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(B["X-Youtube-Client-Version"]= G),(G=g.A0("CHROME_CONNECTED_HEADER"))&&(B["X-Youtube-Chrome-Connected"]=G),(G=g.A0("DOMAIN_ADMIN_STATE"))&&(B["X-Youtube-Domain-Admin-State"]=G),g.A0("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(G=g.A0("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(B["X-YouTube-Lava-Device-Context"]=G));return B}; HiA=function(){this.j={}}; Pm=function(){this.mappings=new HiA}; oc=function(G){return function(){return new G}}; DM_=function(G){var B=B===void 0?"UNKNOWN_INTERFACE":B;if(G.length===1)return G[0];var a=vIK[B];if(a){a=new RegExp(a);for(var V=g.m(G),x=V.next();!x.done;x=V.next())if(x=x.value,a.exec(x))return x}var h=[];Object.entries(vIK).forEach(function(e){var w=g.m(e);e=w.next().value;w=w.next().value;B!==e&&h.push(w)}); a=new RegExp(h.join("|"));G.sort(function(e,w){return e.length-w.length}); V=g.m(G);for(x=V.next();!x.done;x=V.next())if(x=x.value,!a.exec(x))return x;return G[0]}; g.MR=function(G){return"/youtubei/v1/"+DM_(G)}; GG=function(){}; B4=function(){}; av=function(){}; VD=function(G){return g.LV("ytcsi."+(G||"")+"data_")||Ssz(G)}; R3K=function(){var G=VD();G.info||(G.info={});return G.info}; xr=function(G){G=VD(G);G.metadata||(G.metadata={});return G.metadata}; tl=function(G){G=VD(G);G.tick||(G.tick={});return G.tick}; mP=function(G){G=VD(G);if(G.gel){var B=G.gel;B.gelInfos||(B.gelInfos={});B.gelTicks||(B.gelTicks={})}else G.gel={gelTicks:{},gelInfos:{}};return G.gel}; Zix=function(G){G=mP(G);G.gelInfos||(G.gelInfos={});return G.gelInfos}; Iv=function(G){var B=VD(G).nonce;B||(B=g.Et(16),VD(G).nonce=B);return B}; Ssz=function(G){var B={tick:{},info:{}};g.Qb("ytcsi."+(G||"")+"data_",B);return B}; g5=function(){var G=g.LV("ytcsi.debug");G||(G=[],g.Qb("ytcsi.debug",G),g.Qb("ytcsi.reference",{}));return G}; pR=function(G){G=G||"";var B=rd_();if(B[G])return B[G];var a=g5(),V={timerName:G,info:{},tick:{},span:{},jspbInfo:[]};a.push(V);return B[G]=V}; $MK=function(G){G=G||"";var B=rd_();B[G]&&delete B[G];var a=g5(),V={timerName:G,info:{},tick:{},span:{},jspbInfo:[]};a.push(V);B[G]=V}; rd_=function(){var G=g.LV("ytcsi.reference");if(G)return G;g5();return g.LV("ytcsi.reference")}; U8=function(G){return Xny[G]||"LATENCY_ACTION_UNKNOWN"}; O8=function(G,B){NM.call(this,1,arguments);this.Pn=B}; E8=function(){this.j=0}; jI=function(){E8.instance||(E8.instance=new E8);return E8.instance}; yD=function(G,B){b1[B]=b1[B]||{count:0};var a=b1[B];a.count++;a.time=(0,g.yT)();G.j||(G.j=g.PH(0,function(){var V=(0,g.yT)(),x;for(x in b1)b1[x]&&V-b1[x].time>6E4&&delete b1[x];G&&(G.j=0)},5E3)); return a.count>5?(a.count===6&&Math.random()*1E5<1&&(a=new g.FI("CSI data exceeded logging limit with key",B.split("_")),B.indexOf("plev")>=0||g.Zb(a)),!0):!1}; qsB=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; uDx=function(){var G;if(g.pB("csi_use_performance_navigation_timing")||g.pB("csi_use_performance_navigation_timing_tvhtml5")){var B,a,V,x=c4==null?void 0:(G=c4.getEntriesByType)==null?void 0:(B=G.call(c4,"navigation"))==null?void 0:(a=B[0])==null?void 0:(V=a.toJSON)==null?void 0:V.call(a);x?(x.requestStart=nR(x.requestStart),x.responseEnd=nR(x.responseEnd),x.redirectStart=nR(x.redirectStart),x.redirectEnd=nR(x.redirectEnd),x.domainLookupEnd=nR(x.domainLookupEnd),x.connectStart=nR(x.connectStart), x.connectEnd=nR(x.connectEnd),x.responseStart=nR(x.responseStart),x.secureConnectionStart=nR(x.secureConnectionStart),x.domainLookupStart=nR(x.domainLookupStart),x.isPerformanceNavigationTiming=!0,G=x):G=c4.timing}else G=g.pB("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(c4.timing)):c4.timing;return G}; nR=function(G){return Math.round(fR()+G)}; fR=function(){return(g.pB("csi_use_time_origin")||g.pB("csi_use_time_origin_tvhtml5"))&&c4.timeOrigin?Math.floor(c4.timeOrigin):c4.timing.navigationStart}; v4=function(G,B){H4("_start",G,B)}; DX=function(G,B){if(!g.pB("web_csi_action_sampling_enabled")||!VD(B).actionDisabled){var a=pR(B||"");N5(a.info,G);G.loadType&&(a=G.loadType,xr(B).loadType=a);N5(Zix(B),G);a=Iv(B);B=VD(B).cttAuthInfo;jI().info(G,a,B)}}; QwY=function(){var G,B,a,V;return((V=RZ().resolve(new fg(Wn))==null?void 0:(G=wg())==null?void 0:(B=G.loggingHotConfig)==null?void 0:(a=B.csiConfig)==null?void 0:a.debugTicks)!=null?V:[]).map(function(x){return Object.values(x)[0]})}; H4=function(G,B,a){if(!g.pB("web_csi_action_sampling_enabled")||!VD(a).actionDisabled){var V=Iv(a),x;if(x=g.pB("web_csi_debug_sample_enabled")&&V){(RZ().resolve(new fg(Wn))==null?0:wg())&&!LH_&&(LH_=!0,H4("gcfl",(0,g.yT)(),a));var h,e,w;x=(RZ().resolve(new fg(Wn))==null?void 0:(h=wg())==null?void 0:(e=h.loggingHotConfig)==null?void 0:(w=e.csiConfig)==null?void 0:w.debugSampleWeight)||0;if(h=x!==0)b:{h=QwY();if(h.length>0)for(e=0;ea.duration?V:a},{duration:0}))&&B.startTime>0&&B.responseEnd>0&&(H4("wffs",nR(B.startTime)),H4("wffe",nR(B.responseEnd)))}; iix=function(G,B,a){c4&&c4.measure&&(G.startsWith("measure_")||(G="measure_"+G),a?c4.measure(G,B,a):B?c4.measure(G,B):c4.measure(G))}; P_g=function(G){var B=SI("aft",G);if(B)return B;B=g.A0((G||"")+"TIMING_AFT_KEYS",["ol"]);for(var a=B.length,V=0;V0&&DX(B);B={isNavigation:!0,actionType:U8(g.A0("TIMING_ACTION"))};var a=g.A0("PREVIOUS_ACTION");a&&(B.previousAction=U8(a));if(a=g.A0("CLIENT_PROTOCOL"))B.httpProtocol=a;if(a=g.A0("CLIENT_TRANSPORT"))B.transportProtocol=a;(a=g.y0())&&a!=="UNDEFINED_CSN"&&(B.clientScreenNonce=a);a=FHA();if(a===1||a===-1)B.isVisible= !0;a=xr().loadType==="cold";var V=R3K();a||(a=V.yt_lt==="cold");if(a){B.loadType="cold";a=R3K();V=uDx();var x=fR(),h=g.A0("CSI_START_TIMESTAMP_MILLIS",0);h>0&&!g.pB("embeds_web_enable_csi_start_override_killswitch")&&(x=h);x&&(H4("srt",V.responseStart),a.prerender!==1&&v4(x));a=GsB();a>0&&H4("fpt",a);a=uDx();a.isPerformanceNavigationTiming&&DX({performanceNavigationTiming:!0},void 0);H4("nreqs",a.requestStart,void 0);H4("nress",a.responseStart,void 0);H4("nrese",a.responseEnd,void 0);a.redirectEnd- a.redirectStart>0&&(H4("nrs",a.redirectStart,void 0),H4("nre",a.redirectEnd,void 0));a.domainLookupEnd-a.domainLookupStart>0&&(H4("ndnss",a.domainLookupStart,void 0),H4("ndnse",a.domainLookupEnd,void 0));a.connectEnd-a.connectStart>0&&(H4("ntcps",a.connectStart,void 0),H4("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=fR()&&a.connectEnd-a.secureConnectionStart>0&&(H4("nstcps",a.secureConnectionStart,void 0),H4("ntcpe",a.connectEnd,void 0));c4&&"getEntriesByType"in c4&&YsX();a=[];if(document.querySelector&& c4&&c4.getEntriesByName)for(var e in r5)r5.hasOwnProperty(e)&&(V=r5[e],AdB(e,V)&&a.push(V));if(a.length>0)for(B.resourceInfo=[],e=g.m(a),a=e.next();!a.done;a=e.next())B.resourceInfo.push({resourceCache:a.value})}DX(B);B=mP();B.preLoggedGelInfos||(B.preLoggedGelInfos=[]);e=B.preLoggedGelInfos;B=Zix();a=void 0;for(V=0;V-1&&(delete I["@type"],J=I);p&&G.X.has(p)&&G.X.delete(p);((ux=B.config)==null?0:ux.aaL)&&X_(B.config.aaL);if(J||(U3=G.C)==null||!U3.OyS(B.input,B.Uo)){cz.kf(15);break}return g.f(cz,G.C.eIN(B.input,B.Uo),16);case 16:J=cz.X;case 15:return IN9(G,J,B),((dl=B.config)==null?0:dl.faX)&&X_(B.config.faX),V(),cz.return(J|| void 0)}})}; d5A=function(G,B){a:{G=G.oa;var a,V=(a=g.u(B,ydK))==null?void 0:a.signal;if(V&&G.cP&&(a=G.cP[V])){var x=a();break a}var h;if((a=(h=g.u(B,cdx))==null?void 0:h.request)&&G.wF&&(h=G.wF[a])){x=h();break a}for(x in B)if(G.W4[x]&&(B=G.W4[x])){x=B();break a}x=void 0}if(x!==void 0)return Promise.resolve(x)}; z1V=function(G,B,a){var V,x,h,e,w,K,l;return g.v(function(k){if(k.j==1){h=((V=B)==null?void 0:(x=V.xR)==null?void 0:x.identity)||kI;K=(e=B)==null?void 0:(w=e.xR)==null?void 0:w.sessionIndex;var N=g.mL(G.j.Oc(h,{sessionIndex:K}));return g.f(k,N,2)}l=k.X;return k.return(Promise.resolve(Object.assign({},f19(a),l)))})}; C9x=function(G,B,a){var V,x=(B==null?void 0:(V=B.xR)==null?void 0:V.identity)||kI,h;B=B==null?void 0:(h=B.xR)==null?void 0:h.sessionIndex;G=G.j.Oc(x,{sessionIndex:B});return Object.assign({},f19(a),G)}; Yr=function(){}; i1=function(){}; P4=function(G){this.L=G}; ov=function(){}; MO=function(){}; Gi=function(){}; B7=function(){}; a3=function(G,B,a){this.j=G;this.X=B;this.C=a}; pDb=function(G,B,a){if(G.j){var V=va(g.Z4(5,Ft(B,"key")))||"/UNKNOWN_PATH";G.j.start(V)}G=a;g.pB("wug_networking_gzip_request")&&(G=MVc(a));return new window.Request(B,G)}; g.hr=function(G,B){if(!Vz){var a=RZ();HD(a,{zw:U5z,jk:a3});var V={W4:{feedbackEndpoint:oc(ov),modifyChannelNotificationPreferenceEndpoint:oc(MO),playlistEditEndpoint:oc(Gi),shareEntityEndpoint:oc(P4),subscribeEndpoint:oc(Yr),unsubscribeEndpoint:oc(i1),webPlayerShareEntityServiceEndpoint:oc(B7)}},x=YN.getInstance(),h={};x&&(h.client_location=x);G===void 0&&(G=Wuz());B===void 0&&(B=a.resolve(U5z));Nrc(V,B,G,h);HD(a,{zw:OgB,a5:F_.instance});Vz=a.resolve(OgB)}return Vz}; Elg=function(G){var B=new dN;if(G.interpreterJavascript){var a=QKx(G.interpreterJavascript);a=Xd(a).toString();var V=new kH;zz(V,6,a);eo(B,kH,1,V)}else G.interpreterUrl&&(a=Ov(G.interpreterUrl),a=jM(a).toString(),V=new Nh,zz(V,4,a),eo(B,Nh,2,V));G.interpreterHash&&tk(B,3,G.interpreterHash);G.program&&tk(B,4,G.program);G.globalName&&tk(B,5,G.globalName);G.clientExperimentsStateBlob&&tk(B,7,G.clientExperimentsStateBlob);return B}; eD=function(G){var B={};G=G.split("&");G=g.m(G);for(var a=G.next();!a.done;a=G.next())a=a.value.split("="),a.length===2&&(B[a[0]]=a[1]);return B}; WlV=function(){if(g.pB("bg_st_hr"))return"havuokmhhs-0";var G,B=((G=performance)==null?void 0:G.timeOrigin)||0;return"havuokmhhs-"+Math.floor(B)}; W7=function(G){this.j=G}; jZb=function(){return new Promise(function(G){var B=window.top;B.ntpevasrs!==void 0?G(new W7(B.ntpevasrs)):(B.ntpqfbel===void 0&&(B.ntpqfbel=[]),B.ntpqfbel.push(function(a){G(new W7(a))}))})}; yhg=function(){if(!g.pB("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.pB("disable_biscotti_fetch_entirely_for_all_web_clients")&&BH()){var G=g.A0("PLAYER_VARS",{});if(g.cM(G,"privembed",!1)!="1"&&!Sr9(G)){var B=function(){wH=!0;"google_ad_status"in window?J0("DCLKSTAT",1):J0("DCLKSTAT",2)}; try{g.wr("//static.doubleclick.net/instream/ad_status.js",B)}catch(a){}bgY.push(g.q1.mw(function(){if(!(wH||"google_ad_status"in window)){try{if(B){var a=""+g.ix(B),V=SqX[a];V&&g.e5(V)}}catch(x){}wH=!0;J0("DCLKSTAT",3)}},5E3))}}}; KH=function(){var G=Number(g.A0("DCLKSTAT",0));return isNaN(G)?0:G}; dH=function(G,B,a){var V=this;this.network=G;this.options=B;this.X=a;this.j=null;if(B.rJH){var x=new g.z_;this.j=x.promise;g.qY.ytAtRC&&iP(function(){var h,e;return g.v(function(w){if(w.j==1){if(!g.qY.ytAtRC)return w.return();h=lX(null);return g.f(w,ky(V,h),2)}e=w.X;g.qY.ytAtRC&&g.qY.ytAtRC(JSON.stringify(e));g.pV(w)})},2); jZb().then(function(h){var e,w,K,l;return g.v(function(k){if(k.j==1)return h.bindInnertubeChallengeFetcher(function(N){return ky(V,lX(N))}),g.f(k,cG(),2); e=k.X;w=h.getLatestChallengeResponse();K=w.challenge;if(!K)throw Error("BGE_MACIL");l={challenge:K,B3:eD(K),jS:e,bgChallenge:new dN};x.resolve(l);h.registerChallengeFetchedCallback(function(N){N=N.challenge;if(!N)throw Error("BGE_MACR");N={challenge:N,B3:eD(N),jS:e,bgChallenge:new dN};V.j=Promise.resolve(N)}); g.pV(k)})})}else B.preload&&chg(this,new Promise(function(h){g.PH(0,function(){h(Nv(V))},0)}))}; lX=function(G){var B={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};G&&(B.interpreterHash=G);return B}; Nv=function(G,B){B=B===void 0?0:B;var a,V,x,h,e,w,K,l,k,N,d,C;return g.v(function(z){switch(z.j){case 1:a=lX(IC().j);if(g.pB("att_fet_ks"))return g.UA(z,7),g.f(z,ky(G,a),9);g.UA(z,4);return g.f(z,nlH(G,a),6);case 6:e=z.X;x=e.nFd;h=e.gFx;V=e;g.EA(z,3);break;case 4:return g.jB(z),g.Zb(Error("Failed to fetch attestation challenge after "+(B+" attempts; not retrying for 24h."))),CH(G,864E5),z.return({challenge:"",B3:{},jS:void 0,bgChallenge:void 0});case 9:V=z.X;if(!V)throw Error("Fetching Attestation challenge returned falsy"); if(!V.challenge)throw Error("Missing Attestation challenge");x=V.challenge;h=eD(x);if("c1a"in h&&(!V.bgChallenge||!V.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.EA(z,3);break;case 7:w=g.jB(z);g.Zb(w);B++;if(B>=5)return g.Zb(Error("Failed to fetch attestation challenge after "+(B+" attempts; not retrying for 24h."))),CH(G,864E5),z.return({challenge:"",B3:{},jS:void 0,bgChallenge:void 0});K=1E3*Math.pow(2,B-1)+Math.random()*1E3;return z.return(new Promise(function(p){g.PH(0, function(){p(Nv(G,B))},K)})); case 3:l=Number(h.t)||7200;CH(G,l*1E3);k=void 0;if(!("c1a"in h&&V.bgChallenge)){z.kf(10);break}N=Elg(V.bgChallenge);g.UA(z,11);return g.f(z,gN(IC(),N),13);case 13:g.EA(z,12);break;case 11:return d=g.jB(z),g.Zb(d),z.return({challenge:x,B3:h,jS:k,bgChallenge:N});case 12:return g.UA(z,14),k=new tL({challenge:N,wU:{m5:"aGIf"}}),g.f(z,k.IJ,16);case 16:g.EA(z,10);break;case 14:C=g.jB(z),g.Zb(C),k=void 0;case 10:return z.return({challenge:x,B3:h,jS:k,bgChallenge:N})}})}; ky=function(G,B){var a;return g.v(function(V){a=G.X;if(!a||a.JA())return V.return(ky(G.network,B));TG("att_pna",void 0,"attestation_challenge_fetch");return V.return(new Promise(function(x){a.nm("publicytnetworkstatus-online",function(){ky(G.network,B).then(x)})}))})}; fNB=function(G){if(!G)throw Error("Fetching Attestation challenge returned falsy");if(!G.challenge)throw Error("Missing Attestation challenge");var B=G.challenge,a=eD(B);if("c1a"in a&&(!G.bgChallenge||!G.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},G,{nFd:B,gFx:a})}; nlH=function(G,B){var a,V,x,h,e;return g.v(function(w){switch(w.j){case 1:a=void 0,V=0,x={};case 2:if(!(V<5)){w.kf(4);break}if(!(V>0)){w.kf(5);break}x.tR=1E3*Math.pow(2,V-1)+Math.random()*1E3;return g.f(w,new Promise(function(K){return function(l){g.PH(0,function(){l(void 0)},K.tR)}}(x)),5); case 5:return g.UA(w,7),g.f(w,ky(G,B),9);case 9:return h=w.X,w.return(fNB(h));case 7:a=e=g.jB(w),e instanceof Error&&g.Zb(e);case 8:V++;x={tR:void 0};w.kf(2);break;case 4:throw a;}})}; chg=function(G,B){G.j=B}; Hgz=function(G){var B,a,V;return g.v(function(x){if(x.j==1)return g.f(x,Promise.race([G.j,null]),2);B=x.X;var h=Nv(G);G.j=h;(a=B)==null||(V=a.jS)==null||V.dispose();g.pV(x)})}; CH=function(G,B){function a(){var x;return g.v(function(h){x=V-Date.now();return x<1E3?g.f(h,Hgz(G),0):(iP(a,0,Math.min(x,6E4)),h.kf(0))})} var V=Date.now()+B;a()}; vl_=function(G,B){return new Promise(function(a){g.PH(0,function(){a(B())},G)})}; g.D5B=function(G,B){var a;return g.v(function(V){var x=g.LV("yt.aba.att");return(a=x?x:dH.instance!==void 0?dH.instance.C.bind(dH.instance):null)?V.return(a("ENGAGEMENT_TYPE_PLAYBACK",G,B)):V.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.StX=function(){var G;return(G=(G=g.LV("yt.aba.att2"))?G:dH.instance!==void 0?dH.instance.G.bind(dH.instance):null)?G():Promise.resolve(!1)}; ZgX=function(G,B){var a=g.LV("ytDebugData.callbacks");a||(a={},g.Qb("ytDebugData.callbacks",a));if(g.pB("web_dd_iu")||R1z.includes(G))a[G]=B}; zi=function(){var G=rhX;var B=B===void 0?[]:B;var a=a===void 0?[]:a;B=Ztz.apply(null,[rcB.apply(null,g.U(B))].concat(g.U(a)));this.store=XdB(G,void 0,B)}; g.tr=function(G,B,a){for(var V=Object.assign({},G),x=g.m(Object.keys(B)),h=x.next();!h.done;h=x.next()){h=h.value;var e=G[h],w=B[h];if(w===void 0)delete V[h];else if(e===void 0)V[h]=w;else if(Array.isArray(w)&&Array.isArray(e))V[h]=a?[].concat(g.U(e),g.U(w)):w;else if(!Array.isArray(w)&&g.Ag(w)&&!Array.isArray(e)&&g.Ag(e))V[h]=g.tr(e,w,a);else if(typeof w===typeof e)V[h]=w;else return B=new g.FI("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:h,G6f:e,updateValue:w}),g.RA(B), G}return V}; mN=function(G){var B=this;G=G===void 0?[]:G;this.fn=[];this.sy=this.hC=0;this.KH=void 0;this.totalLength=0;G.forEach(function(a){B.append(a)})}; $5_=function(G,B){return G.fn.length===0?!1:(G=G.fn[G.fn.length-1])&&G.buffer===B.buffer&&G.byteOffset+G.length===B.byteOffset}; I3=function(G,B){B=g.m(B.fn);for(var a=B.next();!a.done;a=B.next())G.append(a.value)}; gH=function(G,B,a){return G.split(B).v3.split(a).rS}; pH=function(G){G.KH=void 0;G.hC=0;G.sy=0}; Uj=function(G,B,a){G.isFocused(B);return B-G.sy+a<=G.fn[G.hC].length}; XDY=function(G){if(!G.KH){var B=G.fn[G.hC];G.KH=new DataView(B.buffer,B.byteOffset,B.length)}return G.KH}; Oj=function(G,B,a){G=G.qo(B===void 0?0:B,a===void 0?-1:a);B=new Uint8Array(G.length);try{B.set(G)}catch(V){for(a=0;a>10;h=56320|h&1023}bX[x++]=h}}h=String.fromCharCode.apply(String,bX); x<1024&&(h=h.substring(0,x));a.push(h)}return a.join("")}; nH=function(G,B){var a;if((a=c7)==null?0:a.encodeInto)return B=c7.encodeInto(G,B),B.read>6|192:((x&64512)===55296&&V+1>18|240,B[a++]=x>>12&63|128):B[a++]=x>>12|224,B[a++]=x>>6&63|128),B[a++]=x&63|128)}return a}; fH=function(G){if(c7)return c7.encode(G);var B=new Uint8Array(Math.ceil(G.length*1.2)),a=nH(G,B);B.lengtha&&(B=B.subarray(0,a));return B}; H7=function(G){this.j=G;this.pos=0;this.X=-1}; v7=function(G){var B=G.j.getUint8(G.pos);++G.pos;if(B<128)return B;for(var a=B&127,V=1;B>=128;)B=G.j.getUint8(G.pos),++G.pos,V*=128,a+=(B&127)*V;return a}; DZ=function(G,B){var a=G.X;for(G.X=-1;G.j.TK(G.pos,1);){a<0&&(a=v7(G));var V=a>>3,x=a&7;if(V===B)return!0;if(V>B){G.X=a;break}a=-1;switch(x){case 0:v7(G);break;case 1:G.pos+=8;break;case 2:V=v7(G);G.pos+=V;break;case 5:G.pos+=4}}return!1}; SD=function(G,B){if(DZ(G,B))return v7(G)}; R3=function(G,B){if(DZ(G,B))return!!v7(G)}; ZZ=function(G,B){if(DZ(G,B)){B=v7(G);var a=G.j.qo(G.pos,B);G.pos+=B;return a}}; rH=function(G,B){if(G=ZZ(G,B))return g.yz(G)}; $y=function(G,B,a){if(G=ZZ(G,B))return a(new H7(new mN([G])))}; X9=function(G,B){for(var a=[];DZ(G,B);)a.push(v7(G));return a.length?a:void 0}; qv=function(G,B,a){for(var V=[],x;x=ZZ(G,B);)V.push(a(new H7(new mN([x]))));return V.length?V:void 0}; uX=function(G,B){G=G instanceof Uint8Array?new mN([G]):G;return B(new H7(G))}; QZc=function(G,B,a){if(B&&a&&a.buffer===B.exports.memory.buffer){var V=B.realloc(a.byteOffset,G);if(V)return new Uint8Array(B.exports.memory.buffer,V,G)}G=B?new Uint8Array(B.exports.memory.buffer,B.malloc(G),G):new Uint8Array(G);a&&G.set(a);return G}; LhV=function(G,B){this.Hn=B;this.pos=0;this.X=[];this.j=QZc(G===void 0?4096:G,B);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)}; Qz=function(G,B){B=G.pos+B;if(!(G.j.length>=B)){for(var a=G.j.length*2;a268435455){Qz(G,4);for(var a=B&1073741823,V=0;V<4;V++)G.view.setUint8(G.pos,a&127|128),a>>=7,G.pos+=1;B=Math.floor(B/268435456)}for(Qz(G,4);B>127;)G.view.setUint8(G.pos,B&127|128),B>>=7,G.pos+=1;G.view.setUint8(G.pos,B);G.pos+=1}; Ti=function(G,B,a){a!==void 0&&(LH(G,B*8),LH(G,a))}; sj=function(G,B,a){a!==void 0&&Ti(G,B,a?1:0)}; F9=function(G,B,a){a!==void 0&&(LH(G,B*8+2),B=a.length,LH(G,B),Qz(G,B),G.j.set(a,G.pos),G.pos+=B)}; Jr=function(G,B,a){a!==void 0&&(TrA(G,B,Math.ceil(Math.log2(a.length*4+2)/7)),Qz(G,a.length*1.2),B=nH(a,G.j.subarray(G.pos)),G.pos+B>G.j.length&&(Qz(G,B),B=nH(a,G.j.subarray(G.pos))),G.pos+=B,sZx(G))}; TrA=function(G,B,a){a=a===void 0?2:a;LH(G,B*8+2);G.X.push(G.pos);G.X.push(a);G.pos+=a}; sZx=function(G){for(var B=G.X.pop(),a=G.X.pop(),V=G.pos-a-B;B--;){var x=B?128:0;G.view.setUint8(a++,V&127|x);V>>=7}}; Ar=function(G,B,a,V,x){a&&(TrA(G,B,x===void 0?3:x),V(G,a),sZx(G))}; g.Yy=function(G,B,a){a=new LhV(4096,a);B(a,G);return new Uint8Array(a.j.buffer,a.j.byteOffset,a.pos)}; g.e9=function(G){var B=new H7(new mN([gK(decodeURIComponent(G))]));G=rH(B,2);B=SD(B,4);var a=FhY[B];if(typeof a==="undefined")throw G=new g.FI("Failed to recognize field number",{name:"EntityKeyHelperError",fqr:B}),g.RA(G),G;return{ZJ:B,entityType:a,entityId:G}}; g.WS=function(G,B){var a=a===void 0?0:a;var V=new LhV;F9(V,2,fH(G));G=Jh_[B];if(typeof G==="undefined")throw a=new g.FI("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:B}),g.RA(a),a;Ti(V,4,G);Ti(V,5,1);B=new Uint8Array(V.j.buffer,V.j.byteOffset,V.pos);return encodeURIComponent(g.md(B,a))}; wC=function(G,B,a,V){if(V===void 0)return V=Object.assign({},G[B]||{}),a=(delete V[a],V),V={},Object.assign({},G,(V[B]=a,V));var x={},h={};return Object.assign({},G,(h[B]=Object.assign({},G[B],(x[a]=V,x)),h))}; Ahb=function(G,B,a,V,x){var h=G[B];if(h==null||!h[a])return G;V=g.tr(h[a],V,x==="REPEATED_FIELDS_MERGE_OPTION_APPEND");x={};h={};return Object.assign({},G,(h[B]=Object.assign({},G[B],(x[a]=V,x)),h))}; Yt_=function(G,B){G=G===void 0?{}:G;switch(B.type){case "ENTITY_LOADED":return B.payload.reduce(function(V,x){var h,e=(h=x.options)==null?void 0:h.persistenceOption;if(e&&e!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&e!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return V;if(!x.entityKey)return g.RA(Error("Missing entity key")),V;if(x.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!x.payload)return g.RA(new g.FI("REPLACE entity mutation is missing a payload",{entityKey:x.entityKey})),V;var w=g.po(x.payload); return wC(V,w,x.entityKey,x.payload[w])}if(x.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{x=x.entityKey;try{var K=g.e9(x).entityType;w=wC(V,K,x);break a}catch(N){if(N instanceof Error){g.RA(new g.FI("Failed to deserialize entity key",{entityKey:x,MF:N.message}));w=V;break a}throw N;}w=void 0}return w}if(x.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!x.payload)return g.RA(new g.FI("UPDATE entity mutation is missing a payload",{entityKey:x.entityKey})),V;w=g.po(x.payload);var l,k;return Ahb(V,w,x.entityKey, x.payload[w],(l=x.fieldMask)==null?void 0:(k=l.mergeOptions)==null?void 0:k.repeatedFieldsMergeOption)}return V},G); case "REPLACE_ENTITY":var a=B.payload;return wC(G,a.entityType,a.key,a.kU);case "REPLACE_ENTITIES":return Object.keys(B.payload).reduce(function(V,x){var h=B.payload[x];return Object.keys(h).reduce(function(e,w){return wC(e,x,w,h[w])},V)},G); case "UPDATE_ENTITY":return a=B.payload,Ahb(G,a.entityType,a.key,a.kU,a.FDH);default:return G}}; Kp=function(G,B,a){return G[B]?G[B][a]||null:null}; lo=function(G){return window.Int32Array?new Int32Array(G):Array(G)}; tW=function(G){g.r.call(this);this.counter=[0,0,0,0];this.X=new Uint8Array(16);this.j=16;if(!igV){var B,a=new Uint8Array(256),V=new Uint8Array(256);var x=1;for(B=0;B<256;B++)a[x]=B,V[B]=x,x^=x<<1^(x>>7&&283);kv=new Uint8Array(256);NK=lo(256);dC=lo(256);Cp=lo(256);zH=lo(256);for(var h=0;h<256;h++){x=h?V[255^a[h]]:0;x^=x<<1^x<<2^x<<3^x<<4;x=x&255^x>>>8^99;kv[h]=x;B=x<<1^(x>>7&&283);var e=B^x;NK[h]=B<<24|x<<16|x<<8|e;dC[h]=e<<24|NK[h]>>>8;Cp[h]=x<<24|dC[h]>>>8;zH[h]=x<<24|Cp[h]>>>8}igV=!0}x=lo(44);for(a= 0;a<4;a++)x[a]=G[4*a]<<24|G[4*a+1]<<16|G[4*a+2]<<8|G[4*a+3];for(V=1;a<44;a++)G=x[a-1],a%4||(G=(kv[G>>16&255]^V)<<24|kv[G>>8&255]<<16|kv[G&255]<<8|kv[G>>>24],V=V<<1^(V>>7&&283)),x[a]=x[a-4]^G;this.key=x}; mi=function(G,B){for(var a=0;a<4;a++)G.counter[a]=B[a*4]<<24|B[a*4+1]<<16|B[a*4+2]<<8|B[a*4+3];G.j=16}; P9B=function(G){for(var B=G.key,a=G.counter[0]^B[0],V=G.counter[1]^B[1],x=G.counter[2]^B[2],h=G.counter[3]^B[3],e=3;e>=0&&!(G.counter[e]=-~G.counter[e]);e--);for(var w,K,l=4;l<40;)e=NK[a>>>24]^dC[V>>16&255]^Cp[x>>8&255]^zH[h&255]^B[l++],w=NK[V>>>24]^dC[x>>16&255]^Cp[h>>8&255]^zH[a&255]^B[l++],K=NK[x>>>24]^dC[h>>16&255]^Cp[a>>8&255]^zH[V&255]^B[l++],h=NK[h>>>24]^dC[a>>16&255]^Cp[V>>8&255]^zH[x&255]^B[l++],a=e,V=w,x=K;G=G.X;e=B[40];G[0]=kv[a>>>24]^e>>>24;G[1]=kv[V>>16&255]^e>>16&255;G[2]=kv[x>>8&255]^ e>>8&255;G[3]=kv[h&255]^e&255;e=B[41];G[4]=kv[V>>>24]^e>>>24;G[5]=kv[x>>16&255]^e>>16&255;G[6]=kv[h>>8&255]^e>>8&255;G[7]=kv[a&255]^e&255;e=B[42];G[8]=kv[x>>>24]^e>>>24;G[9]=kv[h>>16&255]^e>>16&255;G[10]=kv[a>>8&255]^e>>8&255;G[11]=kv[V&255]^e&255;e=B[43];G[12]=kv[h>>>24]^e>>>24;G[13]=kv[a>>16&255]^e>>16&255;G[14]=kv[V>>8&255]^e>>8&255;G[15]=kv[x&255]^e&255}; pp=function(){if(!I4&&!g.Jx){if(gC)return gC;var G;gC=(G=window.crypto)==null?void 0:G.subtle;var B,a,V;if(((B=gC)==null?0:B.importKey)&&((a=gC)==null?0:a.sign)&&((V=gC)==null?0:V.encrypt))return gC;gC=void 0}}; g.Ud=function(G){this.G=G}; g.Od=function(G){this.X=G}; Ed=function(G){this.B=new Uint8Array(64);this.C=new Uint8Array(64);this.G=0;this.L=new Uint8Array(64);this.X=0;this.B.set(G);this.C.set(G);for(G=0;G<64;G++)this.B[G]^=92,this.C[G]^=54;this.reset()}; olA=function(G,B,a){for(var V=G.W,x=G.j[0],h=G.j[1],e=G.j[2],w=G.j[3],K=G.j[4],l=G.j[5],k=G.j[6],N=G.j[7],d,C,z,p=0;p<64;)p<16?(V[p]=z=B[a]<<24|B[a+1]<<16|B[a+2]<<8|B[a+3],a+=4):(d=V[p-2],C=V[p-15],z=V[p-7]+V[p-16]+((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+((C>>>7|C<<25)^(C>>>18|C<<14)^C>>>3),V[p]=z),d=N+j9[p]+z+((K>>>6|K<<26)^(K>>>11|K<<21)^(K>>>25|K<<7))+(K&l^~K&k),C=((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+(x&h^x&e^h&e),N=d+C,w+=d,p++,p<16?(V[p]=z=B[a]<<24|B[a+1]<<16|B[a+2]<<8|B[a+3],a+=4):(d= V[p-2],C=V[p-15],z=V[p-7]+V[p-16]+((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+((C>>>7|C<<25)^(C>>>18|C<<14)^C>>>3),V[p]=z),d=k+j9[p]+z+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&K^~w&l),C=((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+(N&x^N&h^x&h),k=d+C,e+=d,p++,p<16?(V[p]=z=B[a]<<24|B[a+1]<<16|B[a+2]<<8|B[a+3],a+=4):(d=V[p-2],C=V[p-15],z=V[p-7]+V[p-16]+((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+((C>>>7|C<<25)^(C>>>18|C<<14)^C>>>3),V[p]=z),d=l+j9[p]+z+((e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7))+(e&w^ ~e&K),C=((k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10))+(k&N^k&x^N&x),l=d+C,h+=d,p++,p<16?(V[p]=z=B[a]<<24|B[a+1]<<16|B[a+2]<<8|B[a+3],a+=4):(d=V[p-2],C=V[p-15],z=V[p-7]+V[p-16]+((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+((C>>>7|C<<25)^(C>>>18|C<<14)^C>>>3),V[p]=z),d=K+j9[p]+z+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&e^~h&w),C=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&k^l&N^k&N),z=N,N=w,w=z,z=k,k=e,e=z,z=l,l=h,h=z,K=x+d,x=d+C,p++;G.j[0]=x+G.j[0]|0;G.j[1]=h+G.j[1]|0;G.j[2]=e+G.j[2]|0;G.j[3]= w+G.j[3]|0;G.j[4]=K+G.j[4]|0;G.j[5]=l+G.j[5]|0;G.j[6]=k+G.j[6]|0;G.j[7]=N+G.j[7]|0}; GIy=function(G){var B=new Uint8Array(32),a=64-G.X;G.X>55&&(a+=64);var V=new Uint8Array(a);V[0]=128;for(var x=G.G*8,h=1;h<9;h++){var e=x%256;V[a-h]=e;x=(x-e)/256}G.update(V);for(a=0;a<8;a++)B[a*4]=G.j[a]>>>24,B[a*4+1]=G.j[a]>>>16&255,B[a*4+2]=G.j[a]>>>8&255,B[a*4+3]=G.j[a]&255;M5Y(G);return B}; M5Y=function(G){G.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];G.W=[];G.W.length=64;G.G=0;G.X=0}; Bzg=function(G){this.j=G}; ab9=function(G,B,a){G=new Ed(G.j);G.update(B);G.update(a);B=GIy(G);G.update(G.B);G.update(B);B=GIy(G);G.reset();return B}; VGc=function(G){this.X=G}; xT_=function(G,B,a,V){var x,h,e;return g.v(function(w){switch(w.j){case 1:if(G.j){w.kf(2);break}return g.f(w,V.importKey("raw",G.X,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:G.j=w.X;case 2:return x=new Uint8Array(B.length+a.length),x.set(B),x.set(a,B.length),h={name:"HMAC",hash:"SHA-256"},g.f(w,V.sign(h,G.j,x),4);case 4:return e=w.X,w.return(new Uint8Array(e))}})}; hwA=function(G,B,a){G.C||(G.C=new Bzg(G.X));return ab9(G.C,B,a)}; ewV=function(G,B,a){var V,x;return g.v(function(h){if(h.j==1){V=pp();if(!V)return h.return(hwA(G,B,a));g.UA(h,3);return g.f(h,xT_(G,B,a,V),5)}if(h.j!=3)return h.return(h.X);x=g.jB(h);g.Zb(x);I4=!0;return h.return(hwA(G,B,a))})}; wxz=function(G){for(var B="",a=0;a=1?G[G.length-1]:null;for(var V=g.m(G),x=V.next();!x.done;x=V.next())if(x=x.value,x.width&&x.height&&(a&&x.width>=B||!a&&x.height>=B))return x;for(B=G.length-1;B>=0;B--)if(a&&G[B].width||!a&&G[B].height)return G[B];return G[0]}; yB=function(){this.state=1;this.jS=null;this.TV=void 0}; tGV=function(G,B,a,V,x,h){var e=e===void 0?"trayride":e;a?(G.g7(2),g.wr(a,function(){if(window[e])zwX(G,V,e,x);else{G.g7(3);var w=DIH(a),K=document.getElementById(w);K&&(HBA(w),K.parentNode.removeChild(K));g.Zb(new g.FI("Unable to load Botguard","from "+a))}},h)):B?(h=g.M6("SCRIPT"),B instanceof $x?(h.textContent=Xd(B),q8(h)):h.textContent=B,h.nonce=ry(document),document.head.appendChild(h),document.head.removeChild(h),window[e]?zwX(G,V,e,x):(G.g7(4),g.Zb(new g.FI("Unable to load Botguard from JS")))): g.Zb(new g.FI("Unable to load VM; no url or JS provided"))}; zwX=function(G,B,a,V){G.g7(5);var x=!!G.TV&&mTy.includes(g.rp(G.TV)||"");try{var h=new tL({program:B,globalName:a,wU:{disable:!g.pB("att_web_record_metrics")||!g.pB("att_skip_metrics_for_cookieless_domains_ks")&&x,m5:"aGIf"}});h.IJ.then(function(){G.g7(6);V&&V(B)}); G.Vj(h)}catch(e){G.g7(7),e instanceof Error&&g.Zb(e)}}; cS=function(){var G=g.LV("yt.abuse.playerAttLoader");return G&&["bgvma","bgvmb","bgvmc"].every(function(B){return B in G})?G:null}; np=function(){yB.apply(this,arguments)}; fp=function(){}; IbV=function(G,B,a){for(var V=!1,x=g.m(G.sS.entries()),h=x.next();!h.done;h=x.next())h=g.m(h.value).next().value,h.slotType==="SLOT_TYPE_PLAYER_BYTES"&&h.xf==="core"&&(V=!0);if(V){a:if(!a){G=g.m(G.sS.entries());for(a=G.next();!a.done;a=G.next())if(V=g.m(a.value),a=V.next().value,V=V.next().value,a.slotType==="SLOT_TYPE_IN_PLAYER"&&a.xf==="core"){a=V.layoutId;break a}a=void 0}a?B.bN(a):kN("No triggering layout ID available when attempting to mute.")}}; HS=function(G,B){this.gQ=G;this.R9=B}; vS=function(){}; D7=function(){}; pxY=function(G){g.r.call(this);var B=this;this.PC=G;this.j=new Map;S9(this,"commandExecutorCommand",function(a,V,x){gkX(B,a.commands,V,x)}); S9(this,"clickTrackingParams",function(){})}; UTA=function(G,B){S9(G,B.Ho(),function(a,V,x){B.b9(a,V,x)})}; S9=function(G,B,a){G.TH();G.j.get(B)&&g.RA(Error("Extension name "+B+" already registered"));G.j.set(B,a)}; gkX=function(G,B,a,V){B=B===void 0?[]:B;G.TH();var x=[],h=[];B=g.m(B);for(var e=B.next();!e.done;e=B.next())e=e.value,g.u(e,OAb)||g.u(e,EkV)?x.push(e):h.push(e);x=g.m(x);for(B=x.next();!B.done;B=x.next())R4(G,B.value,a,V);h=g.m(h);for(x=h.next();!x.done;x=h.next())R4(G,x.value,a,V)}; R4=function(G,B,a,V){G.TH();B.loggingUrls&&jA9(G,"loggingUrls",B.loggingUrls,a,V);B=g.m(Object.entries(B));for(var x=B.next();!x.done;x=B.next()){var h=g.m(x.value);x=h.next().value;h=h.next().value;x==="openPopupAction"?G.PC.get().ez("innertubeCommand",{openPopupAction:h}):x==="confirmDialogEndpoint"?G.PC.get().ez("innertubeCommand",{confirmDialogEndpoint:h}):bAy.hasOwnProperty(x)||jA9(G,x,h,a,V)}}; jA9=function(G,B,a,V,x){if((G=G.j.get(B))&&typeof G==="function")try{G(a,V,x)}catch(h){g.RA(h)}else B=new g.FI("Unhandled field",B),g.Zb(B)}; Z7=function(G,B,a){this.Gz=G;this.j=B;this.BS=a}; rC=function(G){this.value=G}; $v=function(G){this.value=G}; Xu=function(G){this.value=G}; qK=function(G){this.value=G}; uo=function(G){this.value=G}; QB=function(G){this.value=G}; Lp=function(G){this.value=G}; TH=function(){rC.apply(this,arguments)}; sd=function(G){this.value=G}; Fu=function(G){this.value=G}; JW=function(G){this.value=G}; AW=function(G){this.value=G}; Yv=function(G){this.value=G}; io=function(G){this.value=G}; PS=function(G){this.value=G}; o4=function(G){this.value=G}; MK=function(G){this.value=G}; Gy=function(G){this.value=G}; Bl=function(){rC.apply(this,arguments)}; aG=function(G){this.value=G}; V$=function(G){this.value=G}; x5=function(G){this.value=G}; hV=function(G){this.value=G}; ec=function(G){this.value=G}; Wl=function(G){this.value=G}; wF=function(G){this.value=G}; Kz=function(G){this.value=G}; lW=function(G){this.value=G}; k5=function(G){this.value=G}; Nb=function(G){this.value=G}; dF=function(G){this.value=G}; Cz=function(G){this.value=G}; zy=function(G){this.value=G}; tV=function(G){this.value=G}; mS=function(G){this.value=G}; IG=function(G){this.value=G}; gF=function(G){this.value=G}; pz=function(G){this.value=G}; UQ=function(G){this.value=G}; OQ=function(G){this.value=G}; EQ=function(G){this.value=G}; jc=function(G){this.value=G}; bW=function(G){this.value=G}; y$=function(G){this.value=G}; cl=function(G){this.value=G}; nz=function(G){this.value=G}; fz=function(G){this.value=G}; Hl=function(G){this.value=G}; vl=function(G){this.value=G}; DI=function(G){this.value=G}; Sc=function(G){this.value=G}; RG=function(G){this.value=G}; ZI=function(G){this.value=G}; rF=function(G){this.value=G}; $5=function(G){this.value=G}; Xs=function(G){this.value=G}; qb=function(G){this.value=G}; uW=function(){rC.apply(this,arguments)}; Q$=function(G){this.value=G}; Lz=function(){rC.apply(this,arguments)}; Ty=function(){rC.apply(this,arguments)}; sQ=function(){rC.apply(this,arguments)}; Fs=function(){rC.apply(this,arguments)}; JV=function(){rC.apply(this,arguments)}; AV=function(G){this.value=G}; Y5=function(G){this.value=G}; iW=function(G){this.value=G}; Pl=function(G){this.value=G}; oG=function(G){this.value=G}; GB=function(G,B,a){if(a&&!a.includes(G.layoutType))return!1;B=g.m(B);for(a=B.next();!a.done;a=B.next())if(!Mb(G.clientMetadata,a.value))return!1;return!0}; BV=function(){return""}; yoV=function(G,B){switch(G){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 B(G),8}}; af=function(G,B,a,V){V=V===void 0?!1:V;z$.call(this,G);this.tY=a;this.wf=V;this.args=[];B&&this.args.push(B)}; Y=function(G,B,a,V){V=V===void 0?!1:V;z$.call(this,G);this.tY=a;this.wf=V;this.args=[];B&&this.args.push(B)}; VI=function(G){var B=new Map;G.forEach(function(a){B.set(a.getType(),a)}); this.j=B}; Mb=function(G,B){return G.j.has(B)}; xf=function(G,B){G=G.j.get(B);if(G!==void 0)return G.get()}; hs=function(G){return Array.from(G.j.keys())}; eQ=function(G,B,a){if(a&&a!==G.slotType)return!1;B=g.m(B);for(a=B.next();!a.done;a=B.next())if(!Mb(G.clientMetadata,a.value))return!1;return!0}; nk_=function(G){var B;return((B=coz.get(G))==null?void 0:B.o6)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; wa=function(G,B){var a={type:B.slotType,controlFlowManagerLayer:fbA.get(B.xf)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};B.slotEntryTrigger&&(a.entryTriggerType=B.slotEntryTrigger.triggerType);B.slotPhysicalPosition!==1&&(a.slotPhysicalPosition=B.slotPhysicalPosition);if(G){a.debugData={slotId:B.slotId};if(G=B.slotEntryTrigger)a.debugData.slotEntryTriggerData=WV(G);G=B.slotFulfillmentTriggers;a.debugData.fulfillmentTriggerData=[];G=g.m(G);for(var V=G.next();!V.done;V=G.next())a.debugData.fulfillmentTriggerData.push(WV(V.value)); B=B.slotExpirationTriggers;a.debugData.expirationTriggerData=[];B=g.m(B);for(G=B.next();!G.done;G=B.next())a.debugData.expirationTriggerData.push(WV(G.value))}return a}; HAV=function(G,B){var a={type:B.layoutType,controlFlowManagerLayer:fbA.get(B.xf)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};G&&(a.debugData={layoutId:B.layoutId});return a}; WV=function(G,B){var a={type:G.triggerType};B!=null&&(a.category=B);G.triggeringSlotId!=null&&(a.triggerSourceData||(a.triggerSourceData={}),a.triggerSourceData.associatedSlotId=G.triggeringSlotId);G.triggeringLayoutId!=null&&(a.triggerSourceData||(a.triggerSourceData={}),a.triggerSourceData.associatedLayoutId=G.triggeringLayoutId);return a}; vkA=function(G,B,a,V){B={opportunityType:B};G&&(V||a)&&(V=g.br(V||[],function(x){return wa(G,x)}),B.debugData=Object.assign({},a&&a.length>0?{associatedSlotId:a}:{},V.length>0?{slots:V}:{})); return B}; lE=function(G,B){return function(a){return DTB(KF(G),B.slotId,B.slotType,B.slotPhysicalPosition,B.xf,B.slotEntryTrigger,B.slotFulfillmentTriggers,B.slotExpirationTriggers,a.layoutId,a.layoutType,a.xf)}}; DTB=function(G,B,a,V,x,h,e,w,K,l,k){return{adClientDataEntry:{slotData:wa(G,{slotId:B,slotType:a,slotPhysicalPosition:V,xf:x,slotEntryTrigger:h,slotFulfillmentTriggers:e,slotExpirationTriggers:w,clientMetadata:new VI([])}),layoutData:HAV(G,{layoutId:K,layoutType:l,xf:k,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],zi:new Map,clientMetadata:new VI([]),Js:{}})}}}; Nf=function(G){this.vS=G;G=Math.random();var B=this.vS.get();B=g.kf(B.T.U().experiments,"html5_debug_data_log_probability");B=Number.isFinite(B)&&B>=0&&B<=1?B:0;this.j=G1){g.Zb(new g.FI("Exit already started",{current:G.currentState}));var a=!1}else a=!0;if(!a)return!1;G.currentState=2;G.j=B;return!0}; Ip=function(G){if(G.currentState!==2)return!1;G.currentState=3;return!0}; wm_=function(G,B){var a=new Map;G=g.m(G);for(var V=G.next();!V.done;V=G.next()){V=V.value;if(V.layoutType==="LAYOUT_TYPE_MEDIA")var x="v";else V.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(x=xf(V.clientMetadata,"metadata_type_linked_in_player_layout_type"),x=x==="LAYOUT_TYPE_ENDCAP"||x==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":x==="LAYOUT_TYPE_SURVEY"?"s":x==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):x="u";a.set(V.layoutId,x);if(x==="u"){var h={};x=B;V=(h.c=V.layoutId,h);x.T.FJ("uct",V)}}G= B.wQ();ge={contentCpn:G,OY:a};V={};a=(V.ct=a.size,V.c=G,V);B.T.FJ("acc",a)}; KJx=function(){ge={contentCpn:"",OY:new Map}}; p1=function(G){var B;return(B=ge.OY.get(G))!=null?B:"u"}; UB=function(G,B,a){G.T.FJ(B,a);l$B(G)}; k7_=function(G){var B=G.layoutId,a=G.Bo;if(G.yN){var V={};UB(G.Gz,"slso",(V.ec=B,V.is=a,V.ctp=p1(B),V))}}; OB=function(G){var B=G.layoutId,a=G.Bo;if(G.yN){var V={};UB(G.Gz,"slse",(V.ec=B,V.is=a,V.ctp=p1(B),V))}}; NvH=function(G){var B=G.layoutId,a=G.Bo,V=G.Gz;G.yN&&(G={},UB(V,"sleo",(G.xc=B,G.is=a,G.ctp=p1(B),G)),l$B(V))}; dRb=function(G){var B=G.cpn,a=G.Gz;G=G.Bo;var V=a.wQ(),x={};UB(a,"ce",(x.ec=B,x.ia=B!==V,x.r=ge.OY.has(B),x.is=G,x.ctp=p1(B),x))}; l$B=function(G){if(G.wQ()!==ge.contentCpn){var B={};B=(B.c=ge.contentCpn,B);G.T.FJ("ccm",B)}}; Cyz=function(G){var B=G.cpn,a=G.Gz;G=G.Bo;var V=a.wQ(),x={};UB(a,"cx",(x.xc=B,x.ia=B!==V,x.r=ge.OY.has(B),x.is=G,x.ctp=p1(B),x))}; zzg=function(G){this.params=G;this.j=new Set}; tuH=function(G,B,a){if(!G.j.has(B)){G.j.add(B);var V={};G.params.Ci.jE(B,Object.assign({},a,(V.p_ac=G.params.adCpn,V.p_isv=G.params.ihn&&G.params.rG,V)))}}; jW=function(G,B,a){if(EB(G.params.Ci.vS.get(),!0)){var V=a.flush,x={};tuH(G,B,(x.cts=a.currentTimeSec,x.f=V,x))}}; mR_=function(G,B){this.Gz=G;this.vS=B}; b5=function(G){var B=[];if(G){G=g.m(Object.entries(G));for(var a=G.next();!a.done;a=G.next()){var V=g.m(a.value);a=V.next().value;V=V.next().value;V!==void 0&&(V=typeof V==="boolean"?""+ +V:(""+V).replace(/[:,=]/g,"_"),B.push(a+"."+V))}}return B.join(";")}; yH=function(G,B,a){B=B===void 0?{}:B;this.errorCode=G;this.details=B;this.severity=a===void 0?0:a}; cX=function(G){return G===1||G===2}; n1=function(G,B){B=B===void 0?0:B;if(G instanceof yH)return G;G=G&&G instanceof Error?G:Error(""+G);cX(B)?g.RA(G):g.Zb(G);return new yH(B===1?"player.fatalexception":"player.exception",{name:""+G.name,message:""+G.message},B)}; I$A=function(G,B){function a(){var V=g.Hz.apply(0,arguments);G.removeEventListener("playing",a);B.apply(null,g.U(V))} G.addEventListener("playing",a)}; f1=function(){var G=g.LV("yt.player.utils.videoElement_");G||(G=g.M6("VIDEO"),g.Qb("yt.player.utils.videoElement_",G));return G}; HX=function(G){var B=f1();return!!(B&&B.canPlayType&&B.canPlayType(G))}; Dh=function(G){if(/opus/.test(G)&&g.vX&&!jb("38")&&!g.T9())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(G);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(G);if(/webm/.test(G)&&!fqA())return!1;G==='audio/mp4; codecs="mp4a.40.2"'&&(G='video/mp4; codecs="avc1.4d401f"');return!!HX(G)}; gN_=function(G){try{var B=Dh('video/mp4; codecs="avc1.42001E"')||Dh('video/webm; codecs="vp9"');return(Dh('audio/mp4; codecs="mp4a.40.2"')||Dh('audio/webm; codecs="opus"'))&&(B||!G)||HX('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(a){return"html5.missingapi"}}; SW=function(){var G=f1();return!(!G.webkitSupportsPresentationMode||typeof G.webkitSetPresentationMode!=="function")}; Rp=function(){var G=f1();try{var B=G.muted;G.muted=!B;return G.muted!==B}catch(a){}return!1}; pmc=function(){var G;return((G=navigator.connection)==null?void 0:G.type)||""}; g.Zh=function(){yG.apply(this,arguments)}; re=function(G,B,a,V,x,h,e){this.sampleRate=G===void 0?0:G;this.numChannels=B===void 0?0:B;this.spatialAudioType=a===void 0?"SPATIAL_AUDIO_TYPE_NONE":a;this.j=V===void 0?!1:V;this.C=x===void 0?0:x;this.X=h===void 0?0:h;this.audioQuality=e===void 0?"AUDIO_QUALITY_UNKNOWN":e}; qy=function(G,B,a,V,x,h,e,w,K){this.width=G;this.height=B;this.quality=h||$2(G,B);this.j=g.Xa[this.quality];this.fps=a||0;this.stereoLayout=!x||V!=null&&V!=="UNKNOWN"&&V!=="RECTANGULAR"?0:x;this.projectionType=V?V==="EQUIRECTANGULAR"&&x===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":V:"UNKNOWN";(G=e)||(G=g.Xa[this.quality],G===0?G="Autom\u00e1tica":(B=this.fps,a=this.projectionType,G=G.toString()+(a==="EQUIRECTANGULAR"||a==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||a==="MESH"?"s":"p")+(B>55?"60":B>49?"50":B> 39?"48":"")));this.qualityLabel=G;this.X=w||"";this.primaries=K||""}; $2=function(G,B){var a=Math.max(G,B);G=Math.min(G,B);B=u5[0];for(var V=0;V=Math.floor(h*16/9)*1.3||G>=h*1.3)return B;B=x}return"tiny"}; T4=function(G,B,a){a=a===void 0?{}:a;this.id=G;this.mimeType=B;a.NB>0||(a.NB=16E3);Object.assign(this,a);G=g.m(this.id.split(";"));this.itag=G.next().value;this.j=G.next().value;this.containerType=QH(B);this.PS=L1[this.itag]||""}; sB=function(G){return G.PS==="9"||G.PS==="("||G.PS==="9h"||G.PS==="(h"}; URz=function(G){return G.PS==="H"||G.PS==="h"}; Fa=function(G){return G.PS==="9h"||G.PS==="(h"}; OYb=function(G){return!!G.Ji&&!!G.Ji.fairplay&&(G.PS==="("||G.PS==="(h"||G.PS==="A"||G.PS==="MEAC3")||JX&&!!G.Ji&&G.PS==="1e"}; AX=function(G){return G.PS==="1"||G.PS==="1h"||JX&&G.PS==="1e"}; Y2=function(G){return G.PS==="mac3"||G.PS==="meac3"||G.PS==="m"||G.PS==="i"}; i5=function(G){return G.PS==="MAC3"||G.PS==="MEAC3"||G.PS==="M"||G.PS==="I"}; g.PX=function(G){return G.containerType===1}; ENx=function(G){return G.PS==="("||G.PS==="(h"||G.PS==="H"||JX&&G.PS==="1e"}; op=function(G){return G.mimeType==="application/x-mpegURL"}; g.My=function(G,B){return{itag:+G.itag,lmt:B?0:G.lastModified,xtags:G.j||""}}; jcg=function(G){var B=navigator.mediaCapabilities;if(B==null||!B.decodingInfo||G.PS==="f")return Promise.resolve();var a={type:G.audio&&G.video?"file":"media-source"};G.video&&(a.video={contentType:G.mimeType,width:G.video.width||640,height:G.video.height||360,bitrate:G.NB*8||1E6,framerate:G.video.fps||30});G.audio&&(a.audio={contentType:G.mimeType,channels:""+(G.audio.numChannels||2),bitrate:G.NB*8||128E3,samplerate:G.audio.sampleRate||44100});return B.decodingInfo(a).then(function(V){G.X=V})}; G2=function(G){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(G)}; BZ=function(G){return/(vp9|vp09|vp8|avc1|av01)/.test(G)}; ar=function(G){return G.includes("vtt")||G.includes("text/mp4")}; QH=function(G){return G.indexOf("/mp4")>=0?1:G.indexOf("/webm")>=0?2:G.indexOf("/x-flv")>=0?3:G.indexOf("/vtt")>=0?4:0}; VF=function(G,B,a,V,x,h){var e=new re;B in g.Xa||(B="small");B==="light"&&(B="tiny");V&&x?(x=Number(x),V=Number(V)):(x=g.Xa[B],V=Math.round(x*16/9));h=new qy(V,x,0,null,void 0,B,h);G=unescape(G.replace(/"/g,'"'));return new T4(a,G,{audio:e,video:h})}; xb=function(G){var B="id="+G.id;G.video&&(B+=", res="+G.video.qualityLabel);var a,V;return B+", byterate=("+((a=G.Mp)==null?void 0:a.toFixed(0))+", "+((V=G.NB)==null?void 0:V.toFixed(0))+")"}; hj=function(G,B){return{start:function(a){return G[a]}, end:function(a){return B[a]}, length:G.length}}; bY_=function(G,B,a){for(var V=[],x=[],h=0;h=B)return a}catch(V){}return-1}; wZ=function(G,B){return WZ(G,B)>=0}; yn_=function(G,B){if(!G)return NaN;B=WZ(G,B);return B>=0?G.start(B):NaN}; Ke=function(G,B){if(!G)return NaN;B=WZ(G,B);return B>=0?G.end(B):NaN}; lV=function(G){return G&&G.length?G.end(G.length-1):NaN}; kb=function(G,B){G=Ke(G,B);return G>=0?G-B:0}; NZ=function(G,B,a){for(var V=[],x=[],h=0;ha||(V.push(Math.max(B,G.start(h))-B),x.push(Math.min(a,G.end(h))-B));return hj(V,x)}; dZ=function(G,B,a,V){g.wI.call(this);var x=this;this.Xf=G;this.start=B;this.end=a;this.isActive=V;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.MV={error:function(){!x.TH()&&x.isActive&&x.publish("error",x)}, updateend:function(){!x.TH()&&x.isActive&&x.publish("updateend",x)}}; this.Xf.dV(this.MV);this.AS=this.isActive}; z2=function(G,B,a,V,x,h){g.wI.call(this);var e=this;this.Wf=G;this.MH=B;this.id=a;this.containerType=V;this.PS=x;this.rG=h;this.Rb=this.Iz=this.vx=null;this.wv=!1;this.appendWindowStart=this.timestampOffset=0;this.rF=hj([],[]);this.NE=!1;this.lT=[];this.Ty=Ce?[]:void 0;this.yv=function(K){return e.publish(K.type,e)}; var w;if((w=this.Wf)==null?0:w.addEventListener)this.Wf.addEventListener("updateend",this.yv),this.Wf.addEventListener("error",this.yv)}; tj=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; mq=function(G,B){this.kD=G;this.j=B===void 0?!1:B;this.X=!1}; Ir=function(G,B,a){a=a===void 0?!1:a;g.r.call(this);this.mediaElement=G;this.tX=B;this.isView=a;this.L=0;this.G=!1;this.B=!0;this.Y=0;this.callback=null;this.V=!1;this.tX||(this.MH=this.mediaElement.dO());this.events=new g.Zh(this);g.X(this,this.events);this.C=new mq(this.tX?window.URL.createObjectURL(this.tX):this.MH.webkitMediaSourceURL,!0);G=this.tX||this.MH;cH(this.events,G,["sourceopen","webkitsourceopen"],this.LyX);cH(this.events,G,["sourceclose","webkitsourceclose"],this.TcX);this.W={updateend:this.b3}}; cnB=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; nNB=function(G,B){gZ(G)?g.KJ(function(){B(G)}):G.callback=B}; f$_=function(G,B,a){if(pe){var V;U4(G.mediaElement,{l:"mswssb",sr:(V=G.mediaElement.jJ)==null?void 0:V.ZU()},!1);B.dV(G.W,G);a.dV(G.W,G)}G.j=B;G.X=a;g.X(G,B);g.X(G,a)}; HYx=function(G,B,a,V){V=B.mimeType+(V===void 0?"":V);var x=a.mimeType;B=B.PS;a=a.PS;var h;G.zH=(h=G.tX)==null?void 0:h.addSourceBuffer(x);var e;G.XJ=V.split(";")[0]==="fakesb"?void 0:(e=G.tX)==null?void 0:e.addSourceBuffer(V);G.MH&&(G.MH.webkitSourceAddId("0",x),G.MH.webkitSourceAddId("1",V));h=new z2(G.zH,G.MH,"0",QH(x),a,!1);V=new z2(G.XJ,G.MH,"1",QH(V),B,!0);f$_(G,h,V)}; Jj=function(G){return!!G.j||!!G.X}; gZ=function(G){try{return Aj(G)==="open"}catch(B){return!1}}; Aj=function(G){if(G.tX)return G.tX.readyState;switch(G.MH.webkitSourceState){case G.MH.SOURCE_OPEN:return"open";case G.MH.SOURCE_ENDED:return"ended";default:return"closed"}}; Yb=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; vNV=function(G){gZ(G)&&(G.tX?G.tX.endOfStream():G.MH.webkitSourceEndOfStream(G.MH.EOS_NO_ERROR))}; DRz=function(G,B,a,V){if(!G.j||!G.X)return null;var x=G.j.isView()?G.j.Xf:G.j,h=G.X.isView()?G.X.Xf:G.X,e=new Ir(G.mediaElement,G.tX,!0);e.C=G.C;f$_(e,new dZ(x,B,a,V),new dZ(h,B,a,V));gZ(G)||G.j.rV(G.j.F3());return e}; S5B=function(G){var B;(B=G.j)==null||B.jt();var a;(a=G.X)==null||a.jt();G.B=!1}; iV=function(){var G=this;this.rX=this.mp=SAH;this.promise=new g.z5(function(B,a){G.mp=B;G.rX=a})}; PZ=function(){g.r.call(this);this.RR=!1;this.kD=null;this.W=this.L=!1;this.G=new g.oL;this.jJ=null;g.X(this,this.G)}; or=function(G){G=G.x0();return G.length<1?NaN:G.end(G.length-1)}; RzA=function(G){!G.X&&cnB()&&(G.C?G.C.then(function(){return RzA(G)}):G.sK()||(G.X=G.Iu()))}; ZYy=function(G){G.X&&(G.X.dispose(),G.X=void 0)}; U4=function(G,B,a){var V;((V=G.jJ)==null?0:V.Ef())&&G.jJ.FJ("rms",B,a===void 0?!1:a)}; rnA=function(G,B,a){G.isPaused()||G.getCurrentTime()>B||a>10||(G.play(),g.z9(function(){rnA(G,G.getCurrentTime(),a+1)},500))}; $Rg=function(G,B){G.kD&&G.kD.Wx(B)||(G.kD&&G.kD.dispose(),G.kD=B)}; MZ=function(G){return kb(G.yk(),G.getCurrentTime())}; XmV=function(G,B){if(G.fk()===0||G.hasError())return!1;var a=G.getCurrentTime()>0;return B>=0&&(G=G.x0(),G.length||!a)?wZ(G,B):a}; Gf=function(G){G.sK()&&(G.jJ&&G.jJ.xP("rs_s"),FC&&G.getCurrentTime()>0&&G.seekTo(0),G.AO(),G.load(),$Rg(G,null));delete G.C}; BN=function(G){switch(G.Vk()){case 2:return"progressive.net.retryexhausted";case 3:return G=G.Qd(),(G==null?0:G.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||q5H&&(G==null?0:G.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.aF=function(G,B,a){this.CR=B===void 0?null:B;this.seekSource=a===void 0?null:a;this.state=G||64}; VQ=function(G,B,a){a=a===void 0?!1:a;return uMz(G,B.getCurrentTime(),(0,g.yT)(),MZ(B),a)}; x_=function(G,B,a,V){if(!(B===G.state&&a===G.CR&&V===G.seekSource||B!==void 0&&(B&128&&!a||B&2&&B&16))){var x;if(x=B)x=B||G.state,x=!!(x&16||x&32);G=new g.aF(B,a,x?V?V:G.seekSource:null)}return G}; h5=function(G,B,a){return x_(G,G.state|B,null,a===void 0?null:a)}; e7=function(G,B){return x_(G,G.state&~B,null,null)}; WN=function(G,B,a,V){return x_(G,(G.state|B)&~a,null,V===void 0?null:V)}; g.F=function(G,B){return!!(G.state&B)}; g.wW=function(G,B){return B.state===G.state&&B.CR===G.CR}; Kn=function(G){return G.isPlaying()&&!g.F(G,16)&&!g.F(G,32)}; l3=function(G){return g.F(G,128)?-1:g.F(G,2)?0:g.F(G,2048)?3:g.F(G,64)?-1:g.F(G,1)&&!g.F(G,32)?3:g.F(G,8)?1:g.F(G,4)?2:-1}; NN=function(G,B,a,V,x,h,e,w,K,l,k,N,d,C,z,p,O){g.r.call(this);var b=this;this.qk=G;this.slot=B;this.layout=a;this.BS=V;this.rO=x;this.WS=h;this.fN=e;this.sZ=w;this.Lh=K;this.Xr=l;this.position=N;this.L=d;this.vS=C;this.KK=z;this.Y3=p;this.context=O;this.rE=!0;this.B=!1;this.eE="not_rendering";this.X=!1;this.C=new tX;G=xf(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.In=new cj(a.zi,this.BS,G,a.layoutId);var c;G=((c=k_(this))==null?void 0:c.progressCommands)||[];this.G=new Xry(K, G,a.layoutId,function(){return b.qT()}); this.j=new zzg({adCpn:this.layout.layoutId,Ci:O.Ci,ihn:this.KK,rG:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; dW=function(G){return{layoutId:G.EE(),Bo:G.KK,Gz:G.WS.get(),yN:G.T1()}}; Cn=function(G,B){return B.layoutId!==G.layout.layoutId?(G.qk.Hx(G.slot,B,new af("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+G.layout.layoutId+("and LayoutType: "+G.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; zf=function(G){G.eE="rendering_start_requested";G.Xr(-1)}; k_=function(G){return xf(G.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; QcK=function(G){kN("Received layout exit signal when not in layout exit flow.",G.slot,G.layout)}; LJX=function(G){var B;return((B=t5(G.WS.get(),2))==null?void 0:B.clientPlaybackNonce)||""}; mI=function(G,B){switch(B){case "normal":G.Of("complete");break;case "skipped":G.Of("skip");break;case "abandoned":Sw(G.In,"impression")&&G.Of("abandon")}}; IF=function(G,B){G.B||(B=new g.NR(B.state,new g.aF),G.B=!0);return B}; gW=function(G,B){Ny(B)?G.Xr(1):g.CY(B,4)&&!g.CY(B,2)&&G.qt();dv(B,4)<0&&!(dv(B,2)<0)&&G.Ei()}; Tvx=function(G){G.position===0&&(G.sZ.get(),G=xf(G.layout.clientMetadata,"metadata_type_ad_placement_config").kind,G={adBreakType:pn(G)},X_("ad_bl"),g.qO(G))}; UM=function(G,B){vj(G.In,B,!G.X)}; FJA=function(G){var B;return(((B=k_(G))==null?void 0:B.progressCommands)||[]).findIndex(function(a){return!!g.u(a==null?void 0:a.command,scb)})!==-1}; OM=function(G,B){var a=xf(G.clientMetadata,"metadata_type_eligible_for_ssap");return a===void 0?(kN("Expected SSAP eligibility in PlayerBytes factory",G),!1):B.T1(a)}; EM=function(G,B){if(!As(B.get(),"html5_ssap_pass_transition_reason"))return 3;switch(G){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return kN("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return kN("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:G}),3;default:VW(G,"unknown layoutExitReason")}}; Jn9=function(G){kN("getExitReason: unexpected reason",void 0,void 0,{reason:G})}; j7=function(G,B){if(As(B.get(),"html5_ssap_pass_transition_reason"))switch(G){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return Jn9(G),"abandoned";case 3:case 1:return Jn9(G),"error";default:VW(G,"unexpected transition reason")}else switch(G){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return kN("getExitReason: unexpected reason",void 0,void 0,{reason:G}),"error";default:VW(G,"unexpected transition reason")}}; b3=function(G,B,a){QD(G,a)||TG(G,B,a);QD(G,"video_to_ad")||TG(G,B,"video_to_ad");QD(G,"ad_to_video")||TG(G,B,"ad_to_video");QD(G,"ad_to_ad")||TG(G,B,"ad_to_ad")}; yQ=function(G,B,a,V,x,h,e,w,K,l,k,N,d,C,z,p,O,b){NN.call(this,G,B,a,V,x,h,e,w,l,k,N,d,C,z,p,O,b);var c=this;this.PC=K;this.I$=N;this.La=!0;this.kL=this.QH=0;this.lc=dp(function(){k7_(dW(c));c.qk.gO(c.slot,c.layout)}); this.zG=dp(function(){NvH(dW(c));c.eE!=="rendering_stop_requested"&&c.I$(c);c.layoutExitReason?c.qk.kW(c.slot,c.layout,c.layoutExitReason):QcK(c)}); this.Pn=new g.Oh(200);this.Pn.listen("tick",function(){c.BC()}); g.X(this,this.Pn)}; nn=function(G){G.kL=Date.now();cN(G,G.QH);G.Pn.start()}; Anb=function(G){G.QH=G.qT();G.ZZ(G.QH/1E3,!0);cN(G,G.QH)}; cN=function(G,B){B={current:B/1E3,duration:G.qT()/1E3};G.PC.get().ez("onAdPlaybackProgress",B)}; fn=function(G){yQ.call(this,G.qk,G.slot,G.qq,G.BS,G.rO,G.WS,G.fN,G.sZ,G.PC,G.Lh,G.Xr,G.I$,G.Rf,G.oF,G.vS,G.KK,G.Y3,G.context)}; HN=function(G){yQ.call(this,G.qk,G.slot,G.qq,G.BS,G.rO,G.WS,G.fN,G.sZ,G.PC,G.Lh,G.Xr,G.I$,G.Rf,G.oF,G.vS,G.KK,G.Y3,G.context)}; vN=function(){HN.apply(this,arguments)}; Y5z=function(G){return OM(G.slot,G.vS.get())?new vN(G):new fn(G)}; RF=function(G){NN.call(this,G.callback,G.slot,G.qq,G.BS,G.rO,G.WS,G.fN,G.sZ,G.Lh,G.Xr,G.I$,G.Rf,G.oF,G.vS,G.KK,G.Y3,G.context);var B=this;this.adCpn="";this.Gx=0;this.aT=!1;this.uB=0;this.lc=dp(function(){k7_(dW(B));B.qk.gO(B.slot,B.layout)}); this.zG=dp(function(){NvH(dW(B));B.eE!=="rendering_stop_requested"&&B.I$(B);B.layoutExitReason?B.qk.kW(B.slot,B.layout,B.layoutExitReason):QcK(B)}); this.aG=G.aG;this.e_=G.e_;this.Jy=G.Jy;this.PC=G.PC;this.lU=G.lU;this.I$=G.I$;if(!this.T1()){As(this.vS.get(),"html5_disable_media_load_timeout")||(this.NW=new g.J8(function(){B.ZK("load_timeout",new af("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); G=Do(this.vS.get());var a=S7(this.vS.get());G&&a&&(this.K8=new g.J8(function(){var V=xf(B.layout.clientMetadata,"metadata_type_preload_player_vars");V&&B.e_.get().T.preloadVideoByPlayerVars(V,2,300)}))}}; Pyy=function(G,B){var a=xf(B.clientMetadata,"metadata_type_ad_video_id"),V=xf(B.clientMetadata,"metadata_type_legacy_info_card_vast_extension");a&&V&&G.lU.get().T.U().LN.add(a,{E4:V});(B=xf(B.clientMetadata,"metadata_type_sodar_extension_data"))&&okB(G.aG.get(),B);iYz(G.fN.get(),!1)}; oNY=function(G){iYz(G.fN.get(),!0);var B;((B=G.shrunkenPlayerBytesConfig)==null?0:B.shouldRequestShrunkenPlayerBytes)&&G.fN.get().bX(!1)}; Muy=function(G){var B=xf(G.Uf().clientMetadata,"metadata_type_player_bytes_slot_metadata");B===void 0&&kN("PlayerBytesSlotMetadata is not filled",G.Uf(),G.w1());return(B==null?void 0:B.u9)===!0}; Zo=function(){RF.apply(this,arguments)}; rW=function(){Zo.apply(this,arguments)}; GGx=function(G){return Y5z(Object.assign({},G,{qk:G.callback,Xr:function(){}}))}; B59=function(G){return new RF(Object.assign({},G,{Xr:function(B){G.PC.get().ez("onAdIntroStateChange",B)}}))}; aXy=function(G){function B(a){G.PC.get().Xy(a)} return OM(G.slot,G.vS.get())?new rW(Object.assign({},G,{Xr:B})):new RF(Object.assign({},G,{Xr:B}))}; $_=function(G){for(var B=G.qq,a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],V=g.m(nf()),x=V.next();!x.done;x=V.next())a.push(x.value);if(Pj(B,{G_:a,Ns:["LAYOUT_TYPE_MEDIA_BREAK"]}))return GGx(G);B=G.qq;a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];V=g.m(nf());for(x=V.next();!x.done;x=V.next())a.push(x.value);if(Pj(B,{G_:a,Ns:["LAYOUT_TYPE_MEDIA"]}))return Mb(G.qq.clientMetadata,"metadata_type_ad_intro")?B59(G):aXy(G)}; xOg=function(G){var B=xf(G.clientMetadata,"metadata_type_ad_placement_config").kind,a=xf(G.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:G.layoutId,adType:VIb(a),adBreakType:pn(B)}}; pn=function(G){switch(G){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"}}; VIb=function(G){switch(G){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; hnB=function(G){try{return new XE(G.QS,G.slot,G.layout,G.Wn,G.bu,G.WS,G.HC,G.e_,G.j_,G.fN,G.IBB,G)}catch(B){}}; XE=function(G,B,a,V,x,h,e,w,K,l,k,N){g.r.call(this);this.QS=G;this.slot=B;this.layout=a;this.Wn=V;this.bu=x;this.WS=h;this.HC=e;this.e_=w;this.j_=K;this.fN=l;this.params=N;this.rE=!0;G=$_(k);if(!G)throw Error("Invalid params for sublayout");this.DX=G}; eng=function(){this.j=1;this.X=new tX}; qN=function(G,B,a,V,x,h,e,w,K,l,k,N,d){g.r.call(this);this.callback=G;this.WS=B;this.HC=a;this.e_=V;this.fN=x;this.sZ=h;this.JN=e;this.slot=w;this.layout=K;this.Wn=l;this.nM=k;this.j_=N;this.vS=d;this.rE=!0;this.Wl=!1;this.Xt=[];this.l$=-1;this.nA=!1;this.Pm=new eng}; WPy=function(G){var B;return(B=G.layout.BB)!=null?B:xf(G.layout.clientMetadata,"metadata_type_sub_layouts")}; u3=function(G){return{Gz:G.WS.get(),Bo:!1,yN:G.T1()}}; w4_=function(G,B,a){if(G.Kk()===G.Xt.length-1){var V,x;kN("Unexpected skip requested during the last sublayout",(V=G.mP())==null?void 0:V.Uf(),(x=G.mP())==null?void 0:x.w1(),{requestingSlot:B,requestingLayout:a})}}; KPA=function(G,B,a){return a.layoutId!==QQ(G,B,a)?(kN("onSkipRequested for a PlayerBytes layout that is not currently active",G.Uf(),G.w1()),!1):!0}; lX_=function(G){G.Kk()===G.Xt.length-1&&kN("Unexpected skip with target requested during the last sublayout")}; kGc=function(G,B,a){return a.renderingContent===void 0&&a.layoutId!==QQ(G,B,a)?(kN("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",G.Uf(),G.w1(),{requestingSlot:B,requestingLayout:a}),!1):!0}; N5y=function(G,B,a,V){var x=xf(B.w1().clientMetadata,"metadata_type_ad_pod_skip_target");if(x&&x>0&&x0)){kN("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",G.slot,G.layout,{indexToPlay:B,layoutId:G.layout.layoutId});break a}G.l$=B;B=G.mP();if(G.Kk()>0&&!G.T1()){var a=G.sZ.get();a.X=!1;var V={};a.j&&a.videoId&&(V.cttAuthInfo={token:a.j,videoId:a.videoId});u1("ad_to_ad",V)}G.dj(B)}}; FE=function(G){qN.call(this,G.QS,G.WS,G.HC,G.e_,G.fN,G.sZ,G.JN,G.slot,G.layout,G.Wn,G.nM,G.j_,G.vS)}; znV=function(G){(G=G.mP())&&G.OE()}; J5=function(G){qN.call(this,G.QS,G.WS,G.HC,G.e_,G.fN,G.sZ,G.JN,G.slot,G.layout,G.Wn,G.nM,G.j_,G.vS);this.BD=void 0}; tIV=function(G,B){G.Wq()&&!Ip(G.Pm.X)||G.callback.kW(G.slot,G.layout,B)}; A5=function(G){return As(G.vS.get(),"html5_ssap_pass_transition_reason")}; mOV=function(G,B,a){B.gV().currentState<2&&(a=j7(a,G.vS),B.CD(B.w1(),a));a=B.gV().j;G.EL(G.slot,B.w1(),a)}; IXH=function(G,B){if(G.Pm.X.currentState<2){var a=j7(B,G.vS);a==="error"?G.callback.Hx(G.slot,G.layout,new af("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:B},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):sM(G.nM,G.layout,a)}}; Y_=function(G,B,a){B.gV().currentState>=2||(B.CD(B.w1(),a),Ip(B.gV())&&(nF(G.JN,G.slot,B.w1(),a),G.BD=void 0))}; gry=function(G,B){G.Pm.j===2&&B!==G.wQ()&&kN("onClipEntered: unknown cpn",G.slot,G.layout,{cpn:B})}; p4g=function(G,B){var a=G.mP();if(a){var V=a.w1().layoutId,x=G.Kk()+1;G.Wq()?Y_(G,a,B):a.CD(a.w1(),B);x>=0&&xx&&e.G3(k,x-V);return k}; fXB=function(G,B,a){var V=xf(B.clientMetadata,"metadata_type_sodar_extension_data");if(V)try{okB(a,V)}catch(x){kN("Unexpected error when loading Sodar",G,B,{error:x})}}; HR_=function(G,B,a,V,x,h,e){aV(G,B,new g.NR(a,new g.aF),V,x,e,!1,h)}; aV=function(G,B,a,V,x,h,e,w){e=e===void 0?!0:e;Ny(a)&&de(x,0,null)&&(!Sw(G,"impression")&&w&&w(),G.Of("impression"));Sw(G,"impression")&&(g.CY(a,4)&&!g.CY(a,2)&&G.CM("pause"),dv(a,4)<0&&!(dv(a,2)<0)&&G.CM("resume"),g.CY(a,16)&&x>=.5&&G.CM("seek"),e&&g.CY(a,2)&&VK(G,a.state,B,V,x,h))}; VK=function(G,B,a,V,x,h,e,w){Sw(G,"impression")&&(h?(h=x-V,h=h>=-1&&h<=2):h=Math.abs(V-x)<=1,x8(G,B,h?V:x,a,V,e,w&&h),h&&G.Of("complete"))}; x8=function(G,B,a,V,x,h,e){DR(G,a*1E3,e);x<=0||a<=0||(B==null?0:g.F(B,16))||(B==null?0:g.F(B,32))||(de(a,x*.25,V)&&(h&&!Sw(G,"first_quartile")&&h("first"),G.Of("first_quartile")),de(a,x*.5,V)&&(h&&!Sw(G,"midpoint")&&h("second"),G.Of("midpoint")),de(a,x*.75,V)&&(h&&!Sw(G,"third_quartile")&&h("third"),G.Of("third_quartile")))}; vr9=function(G,B){Sw(G,"impression")&&G.CM(B?"fullscreen":"end_fullscreen")}; DOY=function(G){Sw(G,"impression")&&G.CM("clickthrough")}; S8Y=function(G){G.CM("active_view_measurable")}; Rng=function(G){Sw(G,"impression")&&!Sw(G,"seek")&&G.CM("active_view_fully_viewable_audible_half_duration")}; ZRx=function(G){Sw(G,"impression")&&!Sw(G,"seek")&&G.CM("active_view_viewable")}; rlB=function(G){Sw(G,"impression")&&!Sw(G,"seek")&&G.CM("audio_audible")}; $Oz=function(G){Sw(G,"impression")&&!Sw(G,"seek")&&G.CM("audio_measurable")}; X4z=function(G,B,a,V,x,h,e,w,K,l,k,N){this.callback=G;this.slot=B;this.layout=a;this.HC=V;this.In=x;this.fN=h;this.sY=e;this.rO=w;this.aG=K;this.vS=l;this.BS=k;this.WS=N;this.La=!0;this.YW=this.eE=null;this.adCpn=void 0;this.j=!1}; q8y=function(G,B,a){var V;Bv(G.BS.get(),"ads_qua","cpn."+xf(G.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((V=t5(G.WS.get(),2))==null?void 0:V.clientPlaybackNonce)+";qt."+B+";clr."+a)}; u_V=function(G,B){var a,V;Bv(G.BS.get(),"ads_imp","cpn."+xf(G.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((a=t5(G.WS.get(),2))==null?void 0:a.clientPlaybackNonce)+";clr."+B+";skp."+!!g.u((V=xf(G.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:V.skipOrPreviewRenderer,hP))}; ee=function(G){return{enterMs:xf(G.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:xf(G.clientMetadata,"metadata_type_layout_exit_ms")}}; Wv=function(G,B,a,V,x,h,e,w,K,l,k,N,d,C){PN.call(this,G,B,a,V,x,e,w,K,l,N);this.sY=h;this.aG=k;this.rO=d;this.vS=C;this.YW=this.eE=null}; Qvg=function(G,B){var a;Bv(G.BS.get(),"ads_imp","acpn."+((a=t5(G.WS.get(),2))==null?void 0:a.clientPlaybackNonce)+";clr."+B)}; LPz=function(G,B,a){var V;Bv(G.BS.get(),"ads_qua","cpn."+xf(G.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((V=t5(G.WS.get(),2))==null?void 0:V.clientPlaybackNonce)+";qt."+B+";clr."+a)}; wS=function(G,B,a,V,x,h,e,w,K,l,k,N,d,C,z,p,O,b,c,H,R){this.j_=G;this.Wn=B;this.nM=a;this.WS=V;this.HC=x;this.fN=h;this.BS=e;this.sY=w;this.nD=K;this.rO=l;this.aG=k;this.e_=N;this.Jy=d;this.sZ=C;this.PC=z;this.Lh=p;this.lU=O;this.vS=b;this.j=c;this.context=H;this.Y3=R}; Kq=function(G,B,a,V,x,h,e,w,K,l,k,N,d,C,z,p,O,b){this.j_=G;this.Wn=B;this.nM=a;this.BS=V;this.rO=x;this.aG=h;this.e_=e;this.WS=w;this.fN=K;this.Jy=l;this.sZ=k;this.PC=N;this.Lh=d;this.lU=C;this.vS=z;this.HC=p;this.context=O;this.Y3=b}; T5b=function(G,B,a,V){Wr.call(this,"survey-interstitial",G,B,a,V)}; lj=function(G,B,a,V,x){gJ.call(this,a,G,B,V);this.BS=x;G=xf(B.clientMetadata,"metadata_type_ad_placement_config");this.In=new cj(B.zi,x,G,B.layoutId)}; k8=function(G){return Math.round(G.width)+"x"+Math.round(G.height)}; dS=function(G,B,a){a=a===void 0?Na:a;a.widthG.width*G.height*.2)return{pT:3,f6:501,errorMessage:"ad("+k8(a)+") to container("+k8(G)+") ratio exceeds limit."};if(a.height>G.height/3-B)return{pT:3,f6:501,errorMessage:"ad("+k8(a)+") covers container("+k8(G)+") center."}}; svB=function(G,B){var a=xf(G.clientMetadata,"metadata_type_ad_placement_config");return new cj(G.zi,B,a,G.layoutId)}; Cq=function(G){return xf(G.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; zm=function(G,B,a,V){Wr.call(this,"invideo-overlay",G,B,a,V);this.interactionLoggingClientData=V}; tP=function(G,B,a,V,x,h,e,w,K,l,k,N){gJ.call(this,h,G,B,x);this.BS=a;this.G=e;this.fN=w;this.Lh=K;this.vS=l;this.L=k;this.B=N;this.In=svB(B,a)}; FPz=function(){var G=["metadata_type_invideo_overlay_ad_renderer"];nf().forEach(function(B){G.push(B)}); return{G_:G,Ns:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; mY=function(G,B,a,V,x,h,e,w,K,l,k,N,d){gJ.call(this,h,G,B,x);this.BS=a;this.G=e;this.V=w;this.fN=K;this.Lh=l;this.vS=k;this.L=N;this.B=d;this.In=svB(B,a)}; Jly=function(){for(var G=["metadata_type_invideo_overlay_ad_renderer"],B=g.m(nf()),a=B.next();!a.done;a=B.next())G.push(a.value);return{G_:G,Ns:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; IV=function(G){this.fN=G;this.j=!1}; Alz=function(G,B,a){Wr.call(this,"survey",G,{},B,a)}; gS=function(G,B,a,V,x,h,e){gJ.call(this,a,G,B,V);this.G=x;this.fN=h;this.vS=e}; Y8B=function(G,B,a,V,x,h,e,w,K,l){this.yK=G;this.fN=B;this.BS=a;this.G=V;this.rO=x;this.X=h;this.C=e;this.Lh=w;this.vS=K;this.j=l}; iRz=function(G,B,a,V,x,h,e,w,K,l){this.yK=G;this.fN=B;this.BS=a;this.G=V;this.rO=x;this.X=h;this.C=e;this.Lh=w;this.vS=K;this.j=l}; pq=function(G,B,a,V,x,h,e,w,K,l){VH.call(this,G,B,a,V,x,h,e,K);this.SL=w;this.WS=l}; P1x=function(){var G=a$Y();G.G_.push("metadata_type_ad_info_ad_metadata");return G}; or_=function(G,B,a,V,x,h,e){this.yK=G;this.fN=B;this.BS=a;this.X=V;this.SL=x;this.j=h;this.WS=e}; MIx=function(G,B,a,V,x,h,e,w){this.yK=G;this.fN=B;this.BS=a;this.X=V;this.SL=x;this.j=h;this.vS=e;this.WS=w}; Uw=function(G,B){this.slotId=B;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=G(this.triggerType)}; Ow=function(G,B){this.adPodIndex=G;this.j=B.length;this.adBreakLengthSeconds=B.reduce(function(V,x){return V+x},0); var a=0;for(G+=1;G0}; eh=function(G){return!!(G.vDx&&G.slot&&G.layout)}; Wf=function(G){var B,a=(B=G.config)==null?void 0:B.adPlacementConfig;G=G.renderer;return!(!a||a.kind==null||!G)}; dvY=function(G){if(!Ma(G.adLayoutMetadata))return!1;G=G.renderingContent;return g.u(G,K1)||g.u(G,l5)||g.u(G,WX)||g.u(G,we)?!0:!1}; wm=function(G){return G.playerVars!==void 0&&G.pings!==void 0&&G.externalVideoId!==void 0}; zE=function(G){if(!Ma(G.adLayoutMetadata))return!1;G=G.renderingContent;var B=g.u(G,K_);return B?lz(B):(B=g.u(G,kE))?wm(B):(B=g.u(G,N0))?B.playerVars!==void 0:(B=g.u(G,K1))?B.durationMilliseconds!==void 0:g.u(G,dm)||g.u(G,C_)?!0:!1}; lz=function(G){G=(G.sequentialLayouts||[]).map(function(B){return g.u(B,t4)}); return G.length>0&&G.every(zE)}; I9=function(G){return Ma(G.adLayoutMetadata)?(G=g.u(G.renderingContent,my))&&G.pings?!0:!1:!1}; gyH=function(G){if(!Ma(G.adLayoutMetadata))return!1;if(g.u(G.renderingContent,CXc)||g.u(G.renderingContent,zLz))return!0;var B=g.u(G.renderingContent,gm);return g.u(G.renderingContent,p_)||g.u(B==null?void 0:B.sidePanel,tDX)||g.u(B==null?void 0:B.sidePanel,mvb)||g.u(B==null?void 0:B.sidePanel,IZK)?!0:!1}; j3_=function(G){var B;(B=!G)||(B=G.adSlotMetadata,B=!((B==null?void 0:B.slotId)!==void 0&&(B==null?void 0:B.slotType)!==void 0));if(B||!(p7B(G)||G.slotEntryTrigger&&G.slotFulfillmentTriggers&&G.slotExpirationTriggers))return!1;var a;G=(a=G.fulfillmentContent)==null?void 0:a.fulfilledLayout;return(a=g.u(G,t4))?zE(a):(a=g.u(G,n_))?gyH(a):(a=g.u(G,UvB))?dvY(a):(a=g.u(G,OHA))?kiA(a):(a=g.u(G,EyB))?Ma(a.adLayoutMetadata)?g.u(a.renderingContent,GE)?!0:!1:!1:(G=g.u(G,f_))?I9(G):!1}; p7B=function(G){var B;G=g.u((B=G.fulfillmentContent)==null?void 0:B.fulfilledLayout,n_);var a;return G&&((a=G.adLayoutMetadata)==null?void 0:a.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&G.layoutExitNormalTriggers===void 0}; bHg=function(G){var B;return(G==null?void 0:(B=G.adSlotMetadata)==null?void 0:B.slotType)==="SLOT_TYPE_IN_PLAYER"}; crc=function(G,B){var a;if((a=G.questions)==null||!a.length||!G.playbackCommands||(B===void 0||!B)&&G.questions.length!==1)return!1;G=g.m(G.questions);for(B=G.next();!B.done;B=G.next()){B=B.value;var V=a=void 0,x=((a=g.u(B,Hf))==null?void 0:a.surveyAdQuestionCommon)||((V=g.u(B,vf))==null?void 0:V.surveyAdQuestionCommon);if(!yrc(x))return!1}return!0}; nyA=function(G){G=((G==null?void 0:G.playerOverlay)||{}).instreamSurveyAdRenderer;var B;if(G)if(G.playbackCommands&&G.questions&&G.questions.length===1){var a,V=((B=g.u(G.questions[0],Hf))==null?void 0:B.surveyAdQuestionCommon)||((a=g.u(G.questions[0],vf))==null?void 0:a.surveyAdQuestionCommon);B=yrc(V)}else B=!1;else B=!1;return B}; yrc=function(G){if(!G)return!1;G=g.u(G.instreamAdPlayerOverlay,DU);var B=g.u(G==null?void 0:G.skipOrPreviewRenderer,hP),a=g.u(G==null?void 0:G.adInfoRenderer,Sh);return(g.u(G==null?void 0:G.skipOrPreviewRenderer,R9)||B)&&a?!0:!1}; fZK=function(G){return G.linearAds!=null&&Ma(G.adLayoutMetadata)}; HHK=function(G){return G.linearAd!=null&&G.adVideoStart!=null}; vyX=function(G){if(isNaN(Number(G.timeoutSeconds))||!G.text||!G.ctaButton||!g.u(G.ctaButton,g.ZU)||!G.brandImage)return!1;var B;return G.backgroundImage&&g.u(G.backgroundImage,rm)&&((B=g.u(G.backgroundImage,rm))==null?0:B.landscape)?!0:!1}; $E=function(G,B,a,V,x,h,e){g.r.call(this);this.vS=G;this.j=B;this.C=V;this.WS=x;this.G=h;this.X=e}; RLV=function(G,B,a){var V,x=((V=a.adSlots)!=null?V:[]).map(function(w){return g.u(w,XK)}); if(a.zv)if(xf(B.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))Cf(G.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},B.slotId); else{if(G.vS.get().T.U().S("h5_check_forecasting_renderer_for_throttled_midroll")){var h=a.KZ.filter(function(w){var K;return((K=w.renderer)==null?void 0:K.clientForecastingAdRenderer)!=null}); h.length!==0?Dvg(G.X,h,x,B.slotId,a.ssdaiAdsConfig):Cf(G.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},B.slotId)}else Cf(G.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},B.slotId); SjB(G.G,B)}else{var e;V={Yr:Math.round(((h=xf(B.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:h.Yr)||0),Nw:(e=xf(B.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:e.Nw};Dvg(G.X,a.KZ,x,B.slotId,a.ssdaiAdsConfig,V)}}; rrz=function(G,B,a,V,x,h,e){var w=t5(G.WS.get(),1);Cf(G.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return ZHK(G.C.get(),a,V,x,w.clientPlaybackNonce,w.u2,w.daiEnabled,w,h,e)},B)}; X79=function(G,B,a,V,x,h,e){B=$vH(B,h,Number(V.prefetchMilliseconds)||0,e);G=B instanceof Y?B:q0(G,V,x,B,a);return G instanceof Y?G:[G]}; qjc=function(G,B,a,V,x){var h=zL(G.X.get(),"SLOT_TYPE_AD_BREAK_REQUEST");V=[new ZI({getAdBreakUrl:V.getAdBreakUrl,Yr:0,Nw:0}),new iW(!0)];G=B.pauseDurationMs?B.lactThresholdMs?{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new AP(G.j,h),slotFulfillmentTriggers:[new BHc(G.j)],slotExpirationTriggers:[new qa(G.j,x),new Tm(G.j,h)],xf:"core",clientMetadata:new VI(V),adSlotLoggingData:a}:new Y("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new Y("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return G instanceof Y?G:[G]}; u9B=function(G){var B,a;return((B=G.renderer)==null?void 0:(a=B.adBreakServiceRenderer)==null?void 0:a.getAdBreakUrl)!==void 0}; uz=function(G,B,a){if(G.beforeContentVideoIdStartedTrigger)G=G.beforeContentVideoIdStartedTrigger?new Ew(BV,B,G.id):new Y("Not able to create BeforeContentVideoIdStartedTrigger");else{if(G.layoutIdExitedTrigger){var V;B=(V=G.layoutIdExitedTrigger)!=null&&V.triggeringLayoutId?new fq(BV,G.layoutIdExitedTrigger.triggeringLayoutId,G.id):new Y("Not able to create LayoutIdExitedTrigger")}else{if(G.layoutExitedForReasonTrigger){var x,h;((x=G.layoutExitedForReasonTrigger)==null?0:x.triggeringLayoutId)&&((h= G.layoutExitedForReasonTrigger)==null?0:h.layoutExitReason)?(B=aZx(G.layoutExitedForReasonTrigger.layoutExitReason),G=B instanceof Y?B:new nq(BV,G.layoutExitedForReasonTrigger.triggeringLayoutId,[B],G.id)):G=new Y("Not able to create LayoutIdExitedForReasonTrigger")}else{if(G.onLayoutSelfExitRequestedTrigger){var e;B=(e=G.onLayoutSelfExitRequestedTrigger)!=null&&e.triggeringLayoutId?new XZ(BV,G.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,G.id):new Y("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(G.onNewPlaybackAfterContentVideoIdTrigger)G= G.onNewPlaybackAfterContentVideoIdTrigger?new qa(BV,B,G.id):new Y("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(G.skipRequestedTrigger){var w;B=(w=G.skipRequestedTrigger)!=null&&w.triggeringLayoutId?new QK(BV,G.skipRequestedTrigger.triggeringLayoutId,G.id):new Y("Not able to create SkipRequestedTrigger")}else if(G.slotIdEnteredTrigger){var K;B=(K=G.slotIdEnteredTrigger)!=null&&K.triggeringSlotId?new Lq(BV,G.slotIdEnteredTrigger.triggeringSlotId,G.id):new Y("Not able to create SlotIdEnteredTrigger")}else if(G.slotIdExitedTrigger){var l; B=(l=G.slotIdExitedTrigger)!=null&&l.triggeringSlotId?new Tm(BV,G.slotIdExitedTrigger.triggeringSlotId,G.id):new Y("Not able to create SkipRequestedTrigger")}else if(G.surveySubmittedTrigger){var k;B=(k=G.surveySubmittedTrigger)!=null&&k.triggeringLayoutId?new ij(BV,G.surveySubmittedTrigger.triggeringLayoutId,G.id):new Y("Not able to create SurveySubmittedTrigger")}else{if(G.mediaResumedTrigger)G=G.mediaResumedTrigger&&G.id?new VDX(G.id):new Y("Not able to create MediaResumedTrigger");else{if(G.closeRequestedTrigger){var N; B=(N=G.closeRequestedTrigger)!=null&&N.triggeringLayoutId?new je(BV,G.closeRequestedTrigger.triggeringLayoutId,G.id):new Y("Not able to create CloseRequestedTrigger")}else if(G.slotIdScheduledTrigger){var d;B=(d=G.slotIdScheduledTrigger)!=null&&d.triggeringSlotId?new AP(BV,G.slotIdScheduledTrigger.triggeringSlotId,G.id):new Y("Not able to create SlotIdScheduledTrigger")}else{if(G.mediaTimeRangeTrigger){var C;V=Number((C=G.mediaTimeRangeTrigger)==null?void 0:C.offsetStartMilliseconds);var z;e=Number((z= G.mediaTimeRangeTrigger)==null?void 0:z.offsetEndMilliseconds);isFinite(V)&&isFinite(e)?(z=e,z===-1&&(z=a),a=V>z?new Y("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:V,offsetEndMs:z},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",z===a&&V-500<=z):new OJ(V,z),G=a instanceof Y?a:new RV(BV,B,a,!1,G.id)):G=new Y("Not able to create MediaTimeRangeTrigger")}else if(G.contentVideoIdEndedTrigger)G=G.contentVideoIdEndedTrigger?new bj(BV,B,!1,G.id):new Y("Not able to create ContentVideoIdEndedTrigger"); else{if(G.layoutIdEnteredTrigger){var p;B=(p=G.layoutIdEnteredTrigger)!=null&&p.triggeringLayoutId?new cv(BV,G.layoutIdEnteredTrigger.triggeringLayoutId,G.id):new Y("Not able to create LayoutIdEnteredTrigger")}else if(G.timeRelativeToLayoutEnterTrigger){var O;B=(O=G.timeRelativeToLayoutEnterTrigger)!=null&&O.triggeringLayoutId?new Pv(BV,Number(G.timeRelativeToLayoutEnterTrigger.durationMs),G.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,G.id):new Y("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(G.onDifferentLayoutIdEnteredTrigger){var b; B=(b=G.onDifferentLayoutIdEnteredTrigger)!=null&&b.triggeringLayoutId&&G.onDifferentLayoutIdEnteredTrigger.slotType&&G.onDifferentLayoutIdEnteredTrigger.layoutType?new rS(BV,G.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,G.onDifferentLayoutIdEnteredTrigger.slotType,G.onDifferentLayoutIdEnteredTrigger.layoutType,G.id):new Y("Not able to create CloseRequestedTrigger")}else{if(G.liveStreamBreakStartedTrigger)G=G.liveStreamBreakStartedTrigger&&G.id?new Se(BV,G.id):new Y("Not able to create LiveStreamBreakStartedTrigger"); else if(G.liveStreamBreakEndedTrigger)G=G.liveStreamBreakEndedTrigger&&G.id?new Hv(BV,G.id):new Y("Not able to create LiveStreamBreakEndedTrigger");else{if(G.liveStreamBreakScheduledDurationMatchedTrigger){var c;B=(c=G.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&c.breakDurationMs?new vv(Number(G.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,G.id):new Y("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(G.liveStreamBreakScheduledDurationNotMatchedTrigger){var H; B=(H=G.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&H.breakDurationMs?new Dl(Number(G.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,G.id):new Y("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(G.newSlotScheduledWithBreakDurationTrigger){var R;B=(R=G.newSlotScheduledWithBreakDurationTrigger)!=null&&R.breakDurationMs?new Zl(Number(G.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,G.id):new Y("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else B= G.prefetchCacheExpiredTrigger?new uj(BV,G.id):new Y("Not able to convert an AdsControlflowTrigger.");G=B}B=G}G=B}B=G}G=B}B=G}G=B}B=G}G=B}B=G}G=B}return G}; Q7=function(G,B){B.j>=2&&(G.slot_pos=B.adPodIndex);G.autoplay="1"}; LNy=function(G,B,a,V,x,h,e,w){return B===null?new Y("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:B,ActionCompanionAdRenderer:V}):[Q3H(G,B,e,h,function(K){var l=K.slotId;K=w(K);var k=V.adLayoutLoggingData,N=new VI([new $v(V),new io(x)]);l=Yf(a.X.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",l);var d={layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",xf:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",zi:new Map, layoutExitNormalTriggers:[new qa(a.j,e)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:"core",clientMetadata:N,Js:K(d),adLayoutLoggingData:k}})]}; THH=function(G,B,a,V,x,h,e,w){return B===null?new Y("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:B,TopBannerImageTextIconButtonedLayoutViewModel:V}):[Q3H(G,B,e,h,function(K){var l=K.slotId;K=w(K);var k=V.adLayoutLoggingData,N=new VI([new Xu(V),new io(x)]);l=Yf(a.X.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",l);var d={layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",xf:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", zi:new Map,layoutExitNormalTriggers:[new qa(a.j,e)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:"core",clientMetadata:N,Js:K(d),adLayoutLoggingData:k}})]}; ArK=function(G,B,a,V,x,h){if(!h)for(B=g.m(B),h=B.next();!h.done;h=B.next())h=h.value,L_(G,h.renderer,h.config.adPlacementConfig.kind);G=Array.from(G.values()).filter(function(k){return s3V(k)}); B=[];h=g.m(G);for(var e=h.next(),w={};!e.done;w={Py:void 0},e=h.next()){w.Py=e.value;e=g.m(w.Py.IV);for(var K=e.next(),l={};!K.done;l={h6:void 0},K=e.next())l.h6=K.value,K=function(k,N){return function(d){return k.h6.OL(d,N.Py.instreamVideoAdRenderer.elementId,k.h6.M6)}}(l,w),l.h6.isContentVideoCompanion?B.push(FNx(a,V,x,w.Py.instreamVideoAdRenderer.elementId,l.h6.associatedCompositePlayerBytesLayoutId,l.h6.adSlotLoggingData,K)):G.length>1?B.push(JrA(a,V,x,w.Py.instreamVideoAdRenderer.elementId,l.h6.adSlotLoggingData, function(k,N){return function(d){return k.h6.OL(d,N.Py.instreamVideoAdRenderer.elementId,k.h6.M6,k.h6.associatedCompositePlayerBytesLayoutId)}}(l,w))):B.push(JrA(a,V,x,w.Py.instreamVideoAdRenderer.elementId,l.h6.adSlotLoggingData,K))}return B}; L_=function(G,B,a){if(B=Yjz(B)){B=g.m(B);for(var V=B.next();!V.done;V=B.next())if((V=V.value)&&V.externalVideoId){var x=TE(G,V.externalVideoId);x.instreamVideoAdRenderer||(x.instreamVideoAdRenderer=V,x.Ax=a)}else kN("InstreamVideoAdRenderer without externalVideoId")}}; Yjz=function(G){var B=[],a=G.sandwichedLinearAdRenderer&&G.sandwichedLinearAdRenderer.linearAd&&g.u(G.sandwichedLinearAdRenderer.linearAd,kE);if(a)return B.push(a),B;if(G.instreamVideoAdRenderer)return B.push(G.instreamVideoAdRenderer),B;if(G.linearAdSequenceRenderer&&G.linearAdSequenceRenderer.linearAds){G=g.m(G.linearAdSequenceRenderer.linearAds);for(a=G.next();!a.done;a=G.next())a=a.value,g.u(a,kE)&&B.push(g.u(a,kE));return B}return null}; s3V=function(G){if(G.instreamVideoAdRenderer===void 0)return kN("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var B=g.m(G.IV),a=B.next();!a.done;a=B.next()){a=a.value;if(a.OL===void 0)return!1;if(a.M6===void 0)return kN("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(G.Ax===void 0||a.y5===void 0||G.Ax!==a.y5&&a.y5!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(G.instreamVideoAdRenderer.elementId===void 0)return kN("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:G.Ax,"matching APSR kind":a.y5}),!1}return!0}; TE=function(G,B){G.has(B)||G.set(B,{instreamVideoAdRenderer:void 0,Ax:void 0,adVideoId:B,IV:[]});return G.get(B)}; sm=function(G,B,a,V,x,h,e,w,K){x?TE(G,x).IV.push({qof:B,y5:a,isContentVideoCompanion:V,M6:e,associatedCompositePlayerBytesLayoutId:h,adSlotLoggingData:w,OL:K}):kN("Companion AdPlacementSupportedRenderer without adVideoId")}; FK=function(G){var B=0;G=g.m(G.questions);for(var a=G.next();!a.done;a=G.next())if(a=a.value,a=g.u(a,Hf)||g.u(a,vf)){var V=void 0;B+=((V=a.surveyAdQuestionCommon)==null?void 0:V.durationMilliseconds)||0}return B}; J4=function(G){var B,a,V,x,h=((a=g.u((B=G.questions)==null?void 0:B[0],Hf))==null?void 0:a.surveyAdQuestionCommon)||((x=g.u((V=G.questions)==null?void 0:V[0],vf))==null?void 0:x.surveyAdQuestionCommon),e;B=[].concat(g.U(((e=G.playbackCommands)==null?void 0:e.instreamAdCompleteCommands)||[]),g.U((h==null?void 0:h.timeoutCommands)||[]));var w,K,l,k,N,d,C,z,p,O,b,c,H,R,q,A,J,xB,Wz,GK;return{impressionCommands:(w=G.playbackCommands)==null?void 0:w.impressionCommands,errorCommands:(K=G.playbackCommands)== null?void 0:K.errorCommands,muteCommands:(l=G.playbackCommands)==null?void 0:l.muteCommands,unmuteCommands:(k=G.playbackCommands)==null?void 0:k.unmuteCommands,pauseCommands:(N=G.playbackCommands)==null?void 0:N.pauseCommands,rewindCommands:(d=G.playbackCommands)==null?void 0:d.rewindCommands,resumeCommands:(C=G.playbackCommands)==null?void 0:C.resumeCommands,skipCommands:(z=G.playbackCommands)==null?void 0:z.skipCommands,progressCommands:(p=G.playbackCommands)==null?void 0:p.progressCommands,VdN:(O= G.playbackCommands)==null?void 0:O.clickthroughCommands,fullscreenCommands:(b=G.playbackCommands)==null?void 0:b.fullscreenCommands,activeViewViewableCommands:(c=G.playbackCommands)==null?void 0:c.activeViewViewableCommands,activeViewMeasurableCommands:(H=G.playbackCommands)==null?void 0:H.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(R=G.playbackCommands)==null?void 0:R.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(q=G.playbackCommands)== null?void 0:(A=q.activeViewTracking)==null?void 0:A.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(J=G.playbackCommands)==null?void 0:(xB=J.activeViewTracking)==null?void 0:xB.activeViewAudioMeasurableCommands,endFullscreenCommands:(Wz=G.playbackCommands)==null?void 0:Wz.endFullscreenCommands,abandonCommands:(GK=G.playbackCommands)==null?void 0:GK.abandonCommands,completeCommands:B}}; PXA=function(G,B,a,V,x,h,e){return function(w,K){return iHg(G,K.slotId,w,h,function(l,k){var N=K.layoutId;l=e(l);return A4(B,N,k,x,l,"LAYOUT_TYPE_SURVEY",[new Nb(a),V],a.adLayoutLoggingData)})}}; GHV=function(G,B,a,V,x,h,e){if(!oyc(G))return new Y("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:G});var w=G.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[MDb(h,B,a,V,function(K){var l=K.slotId;K=e(K);l=Yf(x.X.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",l);var k={layoutId:l,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",xf:"core"},N=new fq(x.j,V);return{layoutId:l,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",zi:new Map,layoutExitNormalTriggers:[N], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:"core",clientMetadata:new VI([new dF(w)]),Js:K(k)}})]}; oyc=function(G){G=g.u(G==null?void 0:G.additionalPlayerOverlay,BCH);if(!G)return!1;var B=G.slidingMessages;return G.title&&B&&B.length!==0?!0:!1}; V9g=function(G,B,a,V,x){var h;if((h=G.playerOverlay)==null||!h.instreamSurveyAdRenderer)return function(){return[]}; if(!nyA(G))return function(){return new Y("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:G})}; var e=G.playerOverlay.instreamSurveyAdRenderer,w=FK(e);return w<=0?function(){return new Y("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e})}:function(K,l){var k=a7V(K,a,V,function(N){var d=N.slotId; N=l(N);var C=J4(e);d=Yf(x.X.get(),"LAYOUT_TYPE_SURVEY",d);var z={layoutId:d,layoutType:"LAYOUT_TYPE_SURVEY",xf:"core"},p=new fq(x.j,V),O=new QK(x.j,d),b=new ij(x.j,d),c=new WNB(x.j);return{layoutId:d,layoutType:"LAYOUT_TYPE_SURVEY",zi:new Map,layoutExitNormalTriggers:[p,c],layoutExitSkipTriggers:[O],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[b],u6:[],xf:"core",clientMetadata:new VI([new k5(e),new io(B),new Xs(w/1E3),new Lz(C)]),Js:N(z),adLayoutLoggingData:e.adLayoutLoggingData}}); K=GHV(G,a,k.slotId,V,x,K,l);return K instanceof Y?K:[k].concat(g.U(K))}}; l7_=function(G,B,a,V,x,h,e){e=e===void 0?!1:e;var w=[];try{var K=[];if(a.renderer.linearAdSequenceRenderer)var l=function(p){p=xKH(p.slotId,a,B,x(p),V,h,e);K=p.pGx;return p.Ou}; else if(a.renderer.instreamVideoAdRenderer)l=function(p){var O=p.slotId;p=x(p);var b=e,c=a.config.adPlacementConfig,H=hZ_(c),R=H.u1,q=H.wm;H=a.renderer.instreamVideoAdRenderer;var A;if(H==null?0:(A=H.playerOverlay)==null?0:A.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var J=YE(H,b);A=Math.min(R+J.videoLengthSeconds*1E3,q);b=new Ow(0,[J.videoLengthSeconds]);q=J.videoLengthSeconds;var xB=J.playerVars,Wz=J.instreamAdPlayerOverlayRenderer,GK=J.playerOverlayLayoutRenderer, Q=J.adVideoId,M=eZV(a),I=J.zi;J=J.xZ;var L=H==null?void 0:H.adLayoutLoggingData;H=H==null?void 0:H.sodarExtensionData;O=Yf(B.X.get(),"LAYOUT_TYPE_MEDIA",O);var ux={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA",xf:"core"};return{layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA",zi:I,layoutExitNormalTriggers:[new Hv(B.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:"core",clientMetadata:new VI([new aG(V),new EQ(q),new jc(xB),new cl(R),new nz(A),Wz&&new V$(Wz), GK&&new x5(GK),new io(c),new Bl(Q),new PS(b),new Sc(M),H&&new y$(H),new gF({current:null}),new Hl({}),new Fs(J)].filter(Wiz)),Js:p(ux),adLayoutLoggingData:L}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var k=wSB(G,V,a.adSlotLoggingData,l);w.push(k);for(var N=g.m(K),d=N.next();!d.done;d=N.next()){var C=d.value,z=C(G,x);if(z instanceof Y)return z;w.push.apply(w,g.U(z))}}catch(p){return new Y(p,{errorMessage:p.message,AdPlacementRenderer:a,numberOfSurveyRenderers:Kib(a)})}return w}; Kib=function(G){G=(G.renderer.linearAdSequenceRenderer||{}).linearAds;return G!=null&&G.length?G.filter(function(B){var a,V;return((a=g.u(B,kE))==null?void 0:(V=a.playerOverlay)==null?void 0:V.instreamSurveyAdRenderer)!=null}).length:0}; xKH=function(G,B,a,V,x,h,e){var w=B.config.adPlacementConfig,K=hZ_(w),l=K.u1,k=K.wm;K=(B.renderer.linearAdSequenceRenderer||{}).linearAds;if(K==null||!K.length)throw new TypeError("Expected linear ads");var N=[],d={ex:l,Rf:0,UHl:N};K=K.map(function(z){return kH_(G,z,d,a,V,w,x,k,e)}).map(function(z,p){p=new Ow(p,N); return z(p)}); var C=K.map(function(z){return z.aB}); return{Ou:NCV(a,G,l,C,w,eZV(B),V,k,h),pGx:K.map(function(z){return z.aBd})}}; kH_=function(G,B,a,V,x,h,e,w,K){var l=YE(g.u(B,kE),K),k=a.ex,N=a.Rf,d=Math.min(k+l.videoLengthSeconds*1E3,w);a.ex=d;a.Rf++;a.UHl.push(l.videoLengthSeconds);var C,z,p=(C=g.u(B,kE))==null?void 0:(z=C.playerOverlay)==null?void 0:z.instreamSurveyAdRenderer;if(l.adVideoId==="nPpU29QrbiU"&&p==null)throw new TypeError("Survey slate media has no survey overlay");return function(O){Q7(l.playerVars,O);var b,c,H=l.videoLengthSeconds,R=l.playerVars,q=l.zi,A=l.xZ,J=l.instreamAdPlayerOverlayRenderer,xB=l.playerOverlayLayoutRenderer, Wz=l.adVideoId,GK=(b=g.u(B,kE))==null?void 0:b.adLayoutLoggingData;b=(c=g.u(B,kE))==null?void 0:c.sodarExtensionData;c=Yf(V.X.get(),"LAYOUT_TYPE_MEDIA",G);var Q={layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA",xf:"adapter"};O={layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA",zi:q,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:"adapter",clientMetadata:new VI([new aG(e),new EQ(H),new jc(R),new cl(k),new nz(d),new fz(N),new gF({current:null}), J&&new V$(J),xB&&new x5(xB),new io(h),new Bl(Wz),new PS(O),b&&new y$(b),p&&new sQ(p),new Hl({}),new Fs(A)].filter(Wiz)),Js:x(Q),adLayoutLoggingData:GK};H=V9g(g.u(B,kE),h,e,O.layoutId,V);return{aB:O,aBd:H}}}; YE=function(G,B){if(!G)throw new TypeError("Expected instream video ad renderer");if(!G.playerVars)throw new TypeError("Expected player vars in url encoded string");var a=ah(G.playerVars),V=Number(a.length_seconds);if(isNaN(V))throw new TypeError("Expected valid length seconds in player vars");var x=Number(G.trimmedMaxNonSkippableAdDurationMs);V=isNaN(x)?V:Math.min(V,x/1E3);x=G.playerOverlay||{};x=x.instreamAdPlayerOverlayRenderer===void 0?null:x.instreamAdPlayerOverlayRenderer;var h=G.playerOverlay|| {};h=h.playerOverlayLayoutRenderer===void 0?null:h.playerOverlayLayoutRenderer;var e=a.video_id;e||(e=(e=G.externalVideoId)?e:void 0);if(!e)throw new TypeError("Expected valid video id in IVAR");if(B&&V===0){var w;B=(w=dKK[e])!=null?w:V}else B=V;return{playerVars:a,videoLengthSeconds:B,instreamAdPlayerOverlayRenderer:x,playerOverlayLayoutRenderer:h,adVideoId:e,zi:G.pings?y1(G.pings):new Map,xZ:bh(G.pings)}}; eZV=function(G){G=Number(G.driftRecoveryMs);return isNaN(G)||G<=0?null:G}; hZ_=function(G){var B=G.adTimeOffset||{};G=B.offsetEndMilliseconds;B=Number(B.offsetStartMilliseconds);if(isNaN(B))throw new TypeError("Expected valid start offset");G=Number(G);if(isNaN(G))throw new TypeError("Expected valid end offset");return{u1:B,wm:G}}; Cog=function(G){var B,a=(B=xf(G.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:B.current;if(!a)return null;B=xf(G.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var V=G.layoutId,x=xf(G.clientMetadata,"metadata_type_content_cpn"),h=xf(G.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),e=xf(G.clientMetadata,"metadata_type_player_underlay_renderer"),w=xf(G.clientMetadata,"metadata_type_ad_placement_config"),K=xf(G.clientMetadata,"metadata_type_video_length_seconds"); var l=Mb(G.clientMetadata,"metadata_type_layout_enter_ms")&&Mb(G.clientMetadata,"metadata_type_layout_exit_ms")?(xf(G.clientMetadata,"metadata_type_layout_exit_ms")-xf(G.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{J7:V,contentCpn:x,NF:a,UG:B,instreamAdPlayerOverlayRenderer:h,instreamAdPlayerUnderlayRenderer:e,adPlacementConfig:w,videoLengthSeconds:K,eV:l,inPlayerLayoutId:xf(G.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:xf(G.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; mKX=function(G,B,a,V,x,h,e,w,K,l,k,N,d,C,z){V=zL(V,"SLOT_TYPE_PLAYER_BYTES");G=zZb(x,G,e,a,V,K,l);if(G instanceof Y)return G;var p;l=(p=xf(G.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:p.layoutId;if(!l)return new Y("Invalid adNotify layout");B=t9c(l,x,h,a,w,B,K,k,N,d,C,z,e);return B instanceof Y?B:[G].concat(g.U(B))}; t9c=function(G,B,a,V,x,h,e,w,K,l,k,N,d){a=I7B(B,a,V,h,e,w,K,l,k,N,d);if(a instanceof Y)return a;G=gvA(B,G,e,x,a);return G instanceof Y?G:[].concat(g.U(G.uu),[G.wb])}; UKx=function(G,B,a,V,x,h,e,w,K,l,k,N,d,C){B=I7B(G,B,a,x,h,w,K,l,k,N,d,C);if(B instanceof Y)return B;G=pS9(G,a,h,e,V,w.SE,B);return G instanceof Y?G:G.uu.concat(G.wb)}; I7B=function(G,B,a,V,x,h,e,w,K,l,k,N){var d=iz(V,a,l);return d instanceof af?new Y(d):l.T.U().experiments.Or("html5_refactor_in_player_slot_generation")?function(C){var z=new Ow(0,[d.zg]);C=OpY(B,d.layoutId,d.Mk,a,Pf(d.playerVars,d.Gy,h,K,z),d.zg,x,z,e(C),w.get(d.Mk.externalVideoId),N);z=[];if(d.Mk.playerOverlay.instreamAdPlayerOverlayRenderer){var p=Cog(C);if(!p)return kN("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,C),{layout:C,uu:[]}; z=[Evy(G,p.contentCpn,p.J7,function(b){return o9(B,b.slotId,"core",p,lE(k,b))},p.inPlayerSlotId)].concat(g.U(z)); if(p.instreamAdPlayerUnderlayRenderer&&M0(l)){var O=p.instreamAdPlayerUnderlayRenderer;z=[j4z(G,p.contentCpn,p.J7,function(b){return bpX(B,b.slotId,O,p.adPlacementConfig,p.J7,lE(k,b))})].concat(g.U(z))}}return{layout:C, uu:z}}:function(C){var z=new Ow(0,[d.zg]); return{layout:OpY(B,d.layoutId,d.Mk,a,Pf(d.playerVars,d.Gy,h,K,z),d.zg,x,z,e(C),w.get(d.Mk.externalVideoId),N),uu:[]}}}; iz=function(G,B,a){if(!G.playerVars)return new af("No playerVars available in InstreamVideoAdRenderer.");var V,x;if(G.elementId==null||G.playerVars==null||G.playerOverlay==null||((V=G.playerOverlay)==null?void 0:V.instreamAdPlayerOverlayRenderer)==null&&((x=G.playerOverlay)==null?void 0:x.playerOverlayLayoutRenderer)==null||G.pings==null||G.externalVideoId==null)return new af("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:G});V=ah(G.playerVars);x=Number(V.length_seconds); isNaN(x)&&(x=0,kN("Expected valid length seconds in player vars but got NaN"));if(a.T1(B.kind==="AD_PLACEMENT_KIND_START")){if(G.layoutId===void 0)return new af("Expected server generated layout ID in instreamVideoAdRenderer");B=G.layoutId}else B=G.elementId;return{layoutId:B,Mk:G,playerVars:V,Gy:G.playerVars,zg:x}}; Pf=function(G,B,a,V,x){G.iv_load_policy=V;B=ah(B);if(B.cta_conversion_urls)try{G.cta_conversion_urls=JSON.parse(B.cta_conversion_urls)}catch(h){kN(h)}a.kT&&(G.ctrl=a.kT);a.j9&&(G.ytr=a.j9);a.D1&&(G.ytrcc=a.D1);a.isMdxPlayback&&(G.mdx="1");G.vvt&&(G.vss_credentials_token=G.vvt,a.iF&&(G.vss_credentials_token_type=a.iF),a.mdxEnvironment&&(G.mdx_environment=a.mdxEnvironment));Q7(G,x);return G}; yWX=function(G){var B=new Map;G=g.m(G);for(var a=G.next();!a.done;a=G.next())(a=a.value.renderer.remoteSlotsRenderer)&&a.hostElementId&&B.set(a.hostElementId,a);return B}; Gb=function(G){return G.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; cWb=function(G){return G!=null}; RZc=function(G,B,a,V,x,h,e,w,K,l,k,N,d,C){for(var z=[],p=g.m(G),O=p.next();!O.done;O=p.next())if(O=O.value,!p7B(O)&&!bHg(O)){var b=Gb(O)&&!!O.slotEntryTrigger.beforeContentVideoIdStartedTrigger,c=K.T1(b),H=nvB(O,l,V,a.u2,c);if(H instanceof Y)return H;var R=void 0,q={slotId:O.adSlotMetadata.slotId,slotType:O.adSlotMetadata.slotType,slotPhysicalPosition:(R=O.adSlotMetadata.slotPhysicalPosition)!=null?R:1,xf:"core",slotEntryTrigger:H.slotEntryTrigger,slotFulfillmentTriggers:H.slotFulfillmentTriggers, slotExpirationTriggers:H.slotExpirationTriggers},A=g.u(O.fulfillmentContent.fulfilledLayout,t4);if(A){if(!zE(A))return new Y("Invalid PlayerBytesAdLayoutRenderer");R=N&&!(Gb(O)&&O.slotEntryTrigger.beforeContentVideoIdStartedTrigger);H=H.slotFulfillmentTriggers.some(function(J){return J instanceof vv}); c=R?f7x(q,O.adSlotMetadata.triggerEvent,A,a,V,h,l,G,c,d,H,C):Hpg(q,O.adSlotMetadata.triggerEvent,A,B,a,V,x,h,e,w,K,l,G,k,c,O.adSlotMetadata.triggeringSourceLayoutId);if(c instanceof Y)return c;H=[];Gb(O)&&H.push(new Pl({u9:Gb(O)&&!!O.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));R&&H.push(new Hl({}));a.SE&&H.push(new Ty({}));H.push(new Y5(b));O=Object.assign({},q,{clientMetadata:new VI(H),fulfilledLayout:c.layout,adSlotLoggingData:O.adSlotMetadata.adSlotLoggingData});z.push.apply(z,g.U(c.uu)); z.push(O)}else if(b=g.u(O.fulfillmentContent.fulfilledLayout,n_)){if(!gyH(b))return new Y("Invalid PlayerUnderlayAdLayoutRenderer");b=vvg(b,V,a.u2,h,q,O.adSlotMetadata.triggerEvent,O.adSlotMetadata.triggeringSourceLayoutId);if(b instanceof Y)return b;O=Object.assign({},q,{clientMetadata:new VI([]),fulfilledLayout:b,adSlotLoggingData:O.adSlotMetadata.adSlotLoggingData});z.push(O)}else if(b=g.u(O.fulfillmentContent.fulfilledLayout,OHA)){if(!kiA(b))return new Y("Invalid AboveFeedAdLayoutRenderer");b= DKb(b,V,a.u2,h,q,O.adSlotMetadata.triggerEvent,O.adSlotMetadata.triggeringSourceLayoutId);if(b instanceof Y)return b;O=Object.assign({},q,{clientMetadata:new VI([]),fulfilledLayout:b,adSlotLoggingData:O.adSlotMetadata.adSlotLoggingData});z.push(O)}else if(b=g.u(O.fulfillmentContent.fulfilledLayout,EyB)){if(!Ma(b.adLayoutMetadata)||!g.u(b.renderingContent,GE))return new Y("Invalid BelowPlayerAdLayoutRenderer");b=DKb(b,V,a.u2,h,q,O.adSlotMetadata.triggerEvent,O.adSlotMetadata.triggeringSourceLayoutId); if(b instanceof Y)return b;O=Object.assign({},q,{clientMetadata:new VI([]),fulfilledLayout:b,adSlotLoggingData:O.adSlotMetadata.adSlotLoggingData});z.push(O)}else if(b=g.u(O.fulfillmentContent.fulfilledLayout,f_)){if(!I9(b))return new Y("Invalid PlayerBytesSequenceItemAdLayoutRenderer");b=Sd_(b,V,a.u2,h,q,O.adSlotMetadata.triggerEvent);if(b instanceof Y)return b;O=Object.assign({},q,{clientMetadata:new VI([]),fulfilledLayout:b,adSlotLoggingData:O.adSlotMetadata.adSlotLoggingData});z.push(O)}else return new Y("Unable to retrieve a client slot ["+ q.slotType+"] from a given AdSlotRenderer")}return z}; Sd_=function(G,B,a,V,x,h){var e={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,xf:"core"};B=Bk(G,B,a);return B instanceof Y?B:Object.assign({},e,{renderingContent:G.renderingContent,zi:y1(G.renderingContent.pings)},B,{Js:lE(V,x)(e),clientMetadata:new VI([new io(ak(h))]),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData})}; DKb=function(G,B,a,V,x,h,e){var w={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,xf:"core"};B=Bk(G,B,a);if(B instanceof Y)return B;a=[];a.push(new io(ak(h)));h==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&e!==void 0&&a.push(new Cz(e));return Object.assign({},w,{renderingContent:G.renderingContent,zi:new Map([["impression",ZpV(G)]])},B,{Js:lE(V,x)(w),clientMetadata:new VI(a),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData})}; vvg=function(G,B,a,V,x,h,e){if(G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(e=g.u(G.renderingContent,gm))if(e=g.u(e.sidePanel,mvb)){var w={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,xf:"core"};B=Bk(G,B,a);G=B instanceof Y?B:Object.assign({},w,{renderingContent:G.renderingContent,zi:new Map([["impression",e.impressionPings||[]],["resume",e.resumePings||[]]])},B,{Js:lE(V,x)(w),clientMetadata:new VI([new io(ak(h))]),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData})}else G= new Y("DismissablePanelTextPortraitImageRenderer is missing");else G=new Y("SqueezebackPlayerSidePanelRenderer is missing");else G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.u(G.renderingContent,CXc)?(e={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,xf:"core"},B=Bk(G,B,a),G=B instanceof Y?B:Object.assign({},e,{renderingContent:G.renderingContent,zi:new Map},B,{Js:lE(V,x)(e),clientMetadata:new VI([new io(ak(h))]),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData})): G=new Y("CounterfactualRenderer is missing"):G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?G=new Y("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?G=new Y("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.u(G.renderingContent,p_)?(h={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType, xf:"core"},B=Bk(G,B,a),G=B instanceof Y?B:e?Object.assign({},h,{renderingContent:G.renderingContent,zi:new Map},B,{Js:lE(V,x)(h),clientMetadata:new VI([new Cz(e)]),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData}):new Y("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):G=new Y("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.u(G.renderingContent,zLz)? (h={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,xf:"core"},B=Bk(G,B,a),G=B instanceof Y?B:Object.assign({},h,{renderingContent:G.renderingContent,zi:new Map([])},B,{Js:lE(V,x)(h),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new VI([])})):G=new Y("AdsEngagementPanelSectionListViewModel is missing"):G=new Y("LayoutType ["+G.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return G}; f7x=function(G,B,a,V,x,h,e,w,K,l,k,N){if((N==null?void 0:N.Yr)===void 0||(N==null?void 0:N.Nw)===void 0)return new Y("Cached ad break range from cue point is missing");var d=Bk(a,x,V.u2);if(d instanceof Y)return d;d={layoutExitMuteTriggers:[],layoutExitNormalTriggers:d.layoutExitNormalTriggers,layoutExitSkipTriggers:[],u6:[],layoutExitUserInputSubmittedTriggers:[]};if(g.u(a.renderingContent,kE))return G=rW9(G,B,a,d,x,h,w,K,V.u2,e,N.Yr,N.Nw),G instanceof Y?G:G.Ox===void 0?new Y("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:G.layout,uu:[G.Ox]};var C=g.u(a.renderingContent,K_);if(C){if(!Ma(a.adLayoutMetadata))return new Y("Invalid ad layout metadata");if(!lz(C))return new Y("Invalid sequential layout");C=C.sequentialLayouts.map(function(z){return z.playerBytesAdLayoutRenderer}); G=$KB(G,B,a,d,C,x,V,h,e,K,w,l,N.Yr,N.Nw,k);return G instanceof Y?G:{layout:G.Je,uu:G.uu}}return new Y("Not able to convert a sequential layout")}; $KB=function(G,B,a,V,x,h,e,w,K,l,k,N,d,C,z){var p=XSc(x,d,C);if(p instanceof Y)return p;var O=[],b=[];p=g.m(p);for(var c=p.next();!c.done;c=p.next()){var H=c.value;c=G;var R=x[H.Rf],q=H,A=B;H=h;var J=e,xB=w,Wz=K,GK=l,Q=k,M=VA(R);if(M instanceof Y)c=M;else{var I={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,xf:"adapter"};q=qdy(A,R,q,H);q instanceof Y?c=q:(c=Object.assign({},I,xG,{zi:M,renderingContent:R.renderingContent,clientMetadata:new VI(q),Js:lE(xB,c)(I),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData}), c=(R=h1(Q,c,H,J.u2,xB,Wz,GK,void 0,!0))?R instanceof Y?R:{layout:c,Ox:R}:new Y("Expecting associatedInPlayerSlot"))}if(c instanceof Y)return c;O.push(c.layout);b.push(c.Ox)}x={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,xf:"core"};B=[new Sc(Number(a.driftRecoveryMs)),new cl(d),new nz(C),new io(ak(B)),new AV(N),new Hl({})];z&&B.push(new oG({}));return{Je:Object.assign({},x,V,{BB:O,zi:new Map,clientMetadata:new VI(B),Js:lE(w,G)(x)}),uu:b}}; rW9=function(G,B,a,V,x,h,e,w,K,l,k,N){if(!zE(a))return new Y("Invalid PlayerBytesAdLayoutRenderer");var d=VA(a);if(d instanceof Y)return d;var C={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,xf:"core"},z=g.u(a.renderingContent,kE);if(!z)return new Y("Invalid rendering content for DAI media layout");z=YE(z,!1);k={PQ:z,Rf:0,ex:k,cO:Math.min(k+z.videoLengthSeconds*1E3,N),Fz:new Ow(0,[z.videoLengthSeconds])};var p;N=(p=Number(a.driftRecoveryMs))!=null?p:void 0;B=qdy(B, a,k,x,N);if(B instanceof Y)return B;G=Object.assign({},C,V,{zi:d,renderingContent:a.renderingContent,clientMetadata:new VI(B),Js:lE(h,G)(C),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData});return(x=h1(e,G,x,K,h,l,w,void 0,!0))?x instanceof Y?x:{layout:G,Ox:x}:new Y("Expecting associatedInPlayerSlot")}; Hpg=function(G,B,a,V,x,h,e,w,K,l,k,N,d,C,z,p){var O=Bk(a,h,x.u2);if(O instanceof Y)return O;if(g.u(a.renderingContent,kE)){K=uuK([a],x,K);if(K instanceof Y)return K;if(K.length!==1)return new Y("Only expected one media layout.");G=Q4_(G,B,a,O,K[0],void 0,"core",V,h,e,w,l,d,C,z,x.u2,N,void 0,p);return G instanceof Y?G:{layout:G.layout,uu:G.Ox?[G.Ox]:[]}}var b=g.u(a.renderingContent,K_);if(b){if(!Ma(a.adLayoutMetadata))return new Y("Invalid ad layout metadata");if(!lz(b))return new Y("Invalid sequential layout"); b=b.sequentialLayouts.map(function(c){return c.playerBytesAdLayoutRenderer}); G=LiB(G,B,a.adLayoutMetadata,O,b,V,h,x,K,e,w,l,k,N,z,d,C,p);return G instanceof Y?G:{layout:G.Je,uu:G.uu}}return new Y("Not able to convert a sequential layout")}; LiB=function(G,B,a,V,x,h,e,w,K,l,k,N,d,C,z,p,O,b){var c=new Gy({current:null}),H=uuK(x,w,K);if(H instanceof Y)return H;K=[];for(var R=[],q=void 0,A=0;A0&&(A.push(b),A.push(new MK(q.adPodSkipTarget)));(h=l.get(q.externalVideoId))&&A.push(new $5(h));h=A}else h=new Y("Invalid vod media renderer")}if(h instanceof Y)return h;G=Object.assign({},e,V,{zi:H,renderingContent:a.renderingContent,clientMetadata:new VI(h),Js:lE(k,G)(e),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData});a=g.u(a.renderingContent,kE);if(!a||!wm(a))return new Y("Invalid meida renderer");N=TE(N,a.externalVideoId);N.instreamVideoAdRenderer=a;N.Ax="AD_PLACEMENT_KIND_START";return C?(K=h1(d,G,K,p,k,O,z,b,!1),K instanceof Y?K:Fib(G.layoutId,d)&&K?{layout:Object.assign({},G,{clientMetadata:new VI(h.concat(new Wl(K)))})}:{layout:G,Ox:K}): {layout:G}}; TC_=function(G,B,a,V,x){if(!zE(B))return new Y("Invalid PlayerBytesAdLayoutRenderer");var h=g.u(B.renderingContent,K1);if(!h||h.durationMilliseconds===void 0)return new Y("Invalid endcap renderer");var e={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,xf:"adapter"};V=[new qb(h.durationMilliseconds),new Lz({impressionCommands:void 0,abandonCommands:h.abandonCommands?[{commandExecutorCommand:h.abandonCommands}]:void 0,completeCommands:h.completionCommands}),new io(V), new tV("LAYOUT_TYPE_ENDCAP")];if(x){V.push(new o4(x.Fz.adPodIndex-1));V.push(new fz(x.Fz.adPodIndex));var w;V.push(new MK((w=x.adPodSkipTarget)!=null?w:-1))}return Object.assign({},e,xG,{renderingContent:B.renderingContent,clientMetadata:new VI(V),zi:h.skipPings?new Map([["skip",h.skipPings]]):new Map,Js:lE(a,G)(e),adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData})}; h1=function(G,B,a,V,x,h,e,w,K){G=G.filter(function(k){return k.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&k.adSlotMetadata.triggeringSourceLayoutId===B.layoutId}); if(G.length!==0){if(G.length!==1)return new Y("Invalid InPlayer slot association for the given PlayerBytes layout");G=G[0];e=nvB(G,h,a,V,e);if(e instanceof Y)return e;var l;h={slotId:G.adSlotMetadata.slotId,slotType:G.adSlotMetadata.slotType,slotPhysicalPosition:(l=G.adSlotMetadata.slotPhysicalPosition)!=null?l:1,xf:"core",slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:e.slotExpirationTriggers};l=g.u(G.fulfillmentContent.fulfilledLayout, UvB);if(!l||!dvY(l))return new Y("Invalid InPlayerAdLayoutRenderer");e={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,xf:"core"};a=Bk(l,a,V);if(a instanceof Y)return a;V=[];K&&V.push(new Hl({}));if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")V.push.apply(V,g.U(JWY(G.adSlotMetadata.triggerEvent,B)));else if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")V.push(new io(ak(G.adSlotMetadata.triggerEvent))),w&&V.push(w);else return new Y("Not able to parse an SDF InPlayer layout"); x=Object.assign({},e,a,{renderingContent:l.renderingContent,zi:new Map,Js:lE(x,h)(e),clientMetadata:new VI(V),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},h,{fulfilledLayout:x,clientMetadata:new VI([])})}}; JWY=function(G,B){var a=[];a.push(new io(ak(G)));a.push(new Cz(B.layoutId));(G=xf(B.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&a.push(new gF(G));(G=xf(B.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&a.push(new Gy(G));(G=xf(B.clientMetadata,"metadata_type_remote_slots_data"))&&a.push(new $5(G));(G=xf(B.clientMetadata,"metadata_type_ad_next_params"))&&a.push(new QB(G));(G=xf(B.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&a.push(new Lp(G));(G= xf(B.clientMetadata,"metadata_type_ad_pod_info"))&&a.push(new PS(G));(B=xf(B.clientMetadata,"metadata_type_ad_video_id"))&&a.push(new Bl(B));return a}; s4V=function(G,B,a,V,x,h){function e(l){return ez(B,l)} var w=V.Xs.inPlayerSlotId,K={layoutId:V.Xs.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",xf:"core"};a={slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,xf:"core",slotEntryTrigger:new cv(e,G),slotFulfillmentTriggers:[new Lq(e,w)],slotExpirationTriggers:[new Tm(e,w),new qa(e,a)]};G=Object.assign({},K,{layoutExitNormalTriggers:[new fq(e,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],zi:new Map,clientMetadata:new VI([new Kz(V.Xs), new io(V.adPlacementConfig),x]),Js:lE(h,a)(K),adLayoutLoggingData:V.Xs.adLayoutLoggingData});return Object.assign({},a,{clientMetadata:new VI([new RG(G)])})}; Fib=function(G,B){B=g.m(B);for(var a=B.next();!a.done;a=B.next())if(a=a.value,a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var V=g.u(a.fulfillmentContent.fulfilledLayout,n_);if(V&&(V=g.u(V.renderingContent,gm))&&V.associatedPlayerBytesLayoutId===G)return a}}; nvB=function(G,B,a,V,x){var h=AWc(uz(G.slotEntryTrigger,a,V),x,G,B);if(h instanceof Y)return h;for(var e=[],w=g.m(G.slotFulfillmentTriggers),K=w.next();!K.done;K=w.next()){K=uz(K.value,a,V);if(K instanceof Y)return K;e.push(K)}e=YdA(e,x,G,B);B=[];G=g.m(G.slotExpirationTriggers);for(x=G.next();!x.done;x=G.next()){x=uz(x.value,a,V);if(x instanceof Y)return x;B.push(x)}return{slotEntryTrigger:h,slotFulfillmentTriggers:e,slotExpirationTriggers:B}}; AWc=function(G,B,a,V){return B&&a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&G instanceof Ew?new Uw(function(x){return ez(V,x)},a.adSlotMetadata.slotId):G}; YdA=function(G,B,a,V){return B&&a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?G.map(function(x){return x instanceof Lq?new AP(function(h){return ez(V,h)},a.adSlotMetadata.slotId):x}):G}; Bk=function(G,B,a){for(var V=[],x=g.m(G.layoutExitNormalTriggers||[]),h=x.next();!h.done;h=x.next()){h=uz(h.value,B,a);if(h instanceof Y)return h;V.push(h)}x=[];h=g.m(G.layoutExitSkipTriggers||[]);for(var e=h.next();!e.done;e=h.next()){e=uz(e.value,B,a);if(e instanceof Y)return e;x.push(e)}h=[];e=g.m(G.layoutExitMuteTriggers||[]);for(var w=e.next();!w.done;w=e.next()){w=uz(w.value,B,a);if(w instanceof Y)return w;h.push(w)}e=[];G=g.m(G.layoutExitUserInputSubmittedTriggers||[]);for(w=G.next();!w.done;w= G.next()){w=uz(w.value,B,a);if(w instanceof Y)return w;e.push(w)}return{layoutExitNormalTriggers:V,layoutExitSkipTriggers:x,layoutExitMuteTriggers:h,layoutExitUserInputSubmittedTriggers:e,u6:[]}}; VA=function(G){var B=g.u(G.renderingContent,kE);if(B==null?0:B.pings)return y1(B.pings);G=g.u(G.renderingContent,K1);return(G==null?0:G.skipPings)?new Map([["skip",G.skipPings]]):new Map}; qdy=function(G,B,a,V,x){B=g.u(B.renderingContent,kE);if(!B)return new Y("Invalid rendering content for DAI media layout");G=[new aG(V),new EQ(a.PQ.videoLengthSeconds),new jc(a.PQ.playerVars),new cl(a.ex),new nz(a.cO),new fz(a.Rf),new io(ak(G)),new Bl(a.PQ.adVideoId),new PS(a.Fz),B.sodarExtensionData&&new y$(B.sodarExtensionData),new gF({current:null}),new Hl({}),new Fs(bh(B.pings))].filter(cWb);x!==void 0&&G.push(new Sc(x));return G}; XSc=function(G,B,a){G=G.map(function(K){return YE(g.u(K.renderingContent,kE),!1)}); var V=G.map(function(K){return K.videoLengthSeconds}),x=V.map(function(K,l){return new Ow(l,V)}),h=B,e=a,w=[]; G.forEach(function(K,l){e=Math.min(h+K.videoLengthSeconds*1E3,a);Q7(K.playerVars,x[l]);w.push({PQ:K,ex:h,cO:e,Rf:l,Fz:x[l]});h=e}); return w}; uuK=function(G,B,a){for(var V=[],x=g.m(G),h=x.next();!h.done;h=x.next())if(h=g.u(h.value.renderingContent,kE)){if(!wm(h))return new Y("Invalid vod media renderer");V.push(ip_(h))}x=V.map(function(N){return N.zg}); h=[];for(var e=0,w=0;w0?GK:-1;else if(I=g.u(M,K1)){M=WSy(G,B,a,I,h,p,w,J,GK);if(M instanceof Y){C= M;break a}M=M(d);O.push(M.qq);b=[].concat(g.U(M.hW),g.U(b));c=[].concat(g.U(M.bY),g.U(c));M.Ox&&(Wz=[M.Ox].concat(g.U(Wz)))}else if(I=g.u(M,dm)){if(C===void 0){C=new Y("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:I});break a}M=lIK(G,B,a,h,I,A,w,C,p,As(k,"supports_multi_step_on_desktop"));if(M instanceof Y){C=M;break a}M=M(d);O.push(M.qq);M.Ox&&Wz.push(M.Ox);b=[].concat(g.U(M.hW),g.U(b));c=[].concat(g.U(M.bY),g.U(c));H=[].concat(g.U(M.yE),g.U(H)); R=[].concat(g.U(M.CP),g.U(R));q=[A].concat(g.U(q))}else if(M=g.u(M,C_)){M=kyB(G,B,a,h,M,A,w,p);if(M instanceof Y){C=M;break a}M=M(d);O.push(M.qq);M.Ox&&Wz.push(M.Ox);c=[].concat(g.U(M.bY),g.U(c))}else{C=new Y("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}C={BB:O,layoutExitSkipTriggers:b,layoutExitUserInputSubmittedTriggers:H,u6:R,layoutExitMuteTriggers:c,zM:q,uu:Wz}}}else a:if(p=g5c(V,a,k),p instanceof Y)C=p;else{O=0;b=[];c=[];H=[];R=[];q=[];A=[];J=new pz({current:null});xB=new Gy({current:null}); Wz=!1;Q=[];GK=-1;z=g.m(V);for(M=z.next();!M.done;M=z.next())if(M=M.value,g.u(M,N0)){M=wlX(B,a,g.u(M,N0),w);if(M instanceof Y){C=M;break a}M=M(d);b.push(M.qq);c=[].concat(g.U(M.hW),g.U(c));H=[].concat(g.U(M.bY),g.U(H));M.Ox&&(Q=[M.Ox].concat(g.U(Q)))}else if(g.u(M,kE)){GK=iz(g.u(M,kE),a,k);if(GK instanceof af){C=new Y(GK);break a}M=new Ow(O,p);M=plY(B,GK.layoutId,GK.Mk,a,Pf(GK.playerVars,GK.Gy,e,l,M),GK.zg,h,M,w(d),xB,K.get(GK.Mk.externalVideoId),void 0,N);O++;b.push(M.qq);c=[].concat(g.U(M.hW),g.U(c)); H=[].concat(g.U(M.bY),g.U(H));Wz||(A.push(xB),Wz=!0);GK=(GK=GK.Mk.adPodSkipTarget)&&GK>0?GK:-1}else if(g.u(M,K1)){M=WSy(G,B,a,g.u(M,K1),h,O,w,xB,GK);if(M instanceof Y){C=M;break a}M=M(d);b.push(M.qq);c=[].concat(g.U(M.hW),g.U(c));H=[].concat(g.U(M.bY),g.U(H));M.Ox&&(Q=[M.Ox].concat(g.U(Q)))}else if(g.u(M,dm)){if(C===void 0){C=new Y("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.u(M,dm)});break a}M=lIK(G,B,a,h,g.u(M,dm),J,w,C,O,As(k,"supports_multi_step_on_desktop")); if(M instanceof Y){C=M;break a}M=M(d);b.push(M.qq);M.Ox&&Q.push(M.Ox);c=[].concat(g.U(M.hW),g.U(c));H=[].concat(g.U(M.bY),g.U(H));R=[].concat(g.U(M.yE),g.U(R));q=[].concat(g.U(M.CP),g.U(q));A=[J].concat(g.U(A))}else if(g.u(M,C_)){M=kyB(G,B,a,h,g.u(M,C_),J,w,O);if(M instanceof Y){C=M;break a}M=M(d);b.push(M.qq);M.Ox&&Q.push(M.Ox);H=[].concat(g.U(M.bY),g.U(H))}else{C=new Y("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}C={BB:b,layoutExitSkipTriggers:c,layoutExitUserInputSubmittedTriggers:R, u6:q,layoutExitMuteTriggers:H,zM:A,uu:Q}}C instanceof Y?d=C:(q=d.slotId,p=C.BB,O=C.layoutExitSkipTriggers,b=C.layoutExitMuteTriggers,c=C.layoutExitUserInputSubmittedTriggers,H=C.zM,d=w(d),R=x?x.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",q=x?x.layoutId:Yf(B.X.get(),R,q),A={layoutId:q,layoutType:R,xf:"core"},d={layout:{layoutId:q,layoutType:R,zi:new Map,layoutExitNormalTriggers:[new XZ(B.j,q)],layoutExitSkipTriggers:O,layoutExitMuteTriggers:b,layoutExitUserInputSubmittedTriggers:c,u6:[],xf:"core", clientMetadata:new VI([new UQ(p)].concat(g.U(H))),Js:d(A)},uu:C.uu});return d}}; g5c=function(G,B,a){var V=[];G=g.m(G);for(var x=G.next();!x.done;x=G.next())if(x=x.value,g.u(x,kE)){x=iz(g.u(x,kE),B,a);if(x instanceof af)return new Y(x);V.push(x.zg)}return V}; Ozg=function(G,B,a,V,x,h,e,w){if(!crc(a,w===void 0?!1:w))return new Y("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:a});var K=FK(a);if(K<=0)return new Y("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:a});var l=new pz({current:null}),k=PXA(G,B,a,l,V,h,e);return Ub9(G,V,h,K,x,function(N,d){var C=N.slotId,z=J4(a);N=e(N);var p,O=(p=l6(B,V,a.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?p: Yf(B.X.get(),"LAYOUT_TYPE_MEDIA_BREAK",C);C={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",xf:"core"};p=k(O,d);var b=xf(p.clientMetadata,"metadata_type_fulfilled_layout");b||kN("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");z=[new io(V),new qb(K),new Lz(z),l];b&&z.push(new tV(b.layoutType));return{VEf:{layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",zi:new Map,layoutExitNormalTriggers:[new XZ(B.j,O)],layoutExitSkipTriggers:[new QK(B.j, d.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new ij(B.j,d.layoutId)],u6:[],xf:"core",clientMetadata:new VI(z),Js:N(C)},z6r:p}})}; E5B=function(G){if(!HHK(G))return!1;var B=g.u(G.adVideoStart,zb);return B?g.u(G.linearAd,kE)&&eh(B)?!0:(kN("Invalid Sandwich with notify"),!1):!1}; jGz=function(G){if(G.linearAds==null)return!1;G=g.u(G.adStart,zb);return G?eh(G)?!0:(kN("Invalid LASR with notify"),!1):!1}; bzV=function(G){if(!fZK(G))return!1;G=g.u(G.adStart,zb);return G?eh(G)?!0:(kN("Invalid LASR with notify"),!1):!1}; t1=function(G,B,a,V,x,h,e,w,K,l){this.G=G;this.X=B;this.j=a;this.vS=V;this.vD=x;this.C=h;this.fN=e;this.B9=w;this.Uv=K;this.loadPolicy=l===void 0?1:l}; ZHK=function(G,B,a,V,x,h,e,w,K,l){var k=[];if(B.length===0&&V.length===0&&a.length===0)return k;B=B.filter(Wf);var N=a.filter(j3_),d=V.filter(Wf),C=new Map,z=yWX(B),p=a.some(function(L){var ux;return(L==null?void 0:(ux=L.adSlotMetadata)==null?void 0:ux.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),O=a.some(function(L){var ux; return(L==null?void 0:(ux=L.adSlotMetadata)==null?void 0:ux.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),b=a.some(function(L){var ux; return(L==null?void 0:(ux=L.adSlotMetadata)==null?void 0:ux.slotType)==="SLOT_TYPE_IN_PLAYER"}),c=a.some(function(L){var ux,U3; return(L==null?void 0:(ux=L.adSlotMetadata)==null?void 0:ux.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(L==null?void 0:(U3=L.adSlotMetadata)==null?void 0:U3.slotType)==="SLOT_TYPE_ABOVE_FEED"}); a=a.some(function(L){var ux;return(L==null?void 0:(ux=L.adSlotMetadata)==null?void 0:ux.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(p||O||b||c||a)l=RZc(N,B,w,x,z,G.vD.get(),G.loadPolicy,C,G.vS.get(),G.G.get(),b,e,K,l),l instanceof Y?kN(l,void 0,void 0,{contentCpn:x}):k.push.apply(k,g.U(l));l=g.m(B);for(a=l.next();!a.done;a=l.next())a=a.value,O=yVV(G,C,a,x,h,e,p,w,z,K,N),O instanceof Y?kN(O,void 0,void 0,{renderer:a.renderer,config:a.config.adPlacementConfig,kind:a.config.adPlacementConfig.kind,contentCpn:x,daiEnabled:e}):k.push.apply(k,g.U(O));cV_(G.vS.get())||(h=n5b(G,d,x,w,z,C),k.push.apply(k,g.U(h)));if(G.C===null||e&&!w.RO){var H, R,q;G=w.SE&&B.length===1&&((H=B[0].config)==null?void 0:(R=H.adPlacementConfig)==null?void 0:R.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((q=B[0].renderer)==null?void 0:q.adBreakServiceRenderer);if(!k.length&&!G){var A,J,xB,Wz;kN("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":B.length,contentCpn:x,"first APR kind":(A=B[0])==null?void 0:(J=A.config)==null?void 0:(xB=J.adPlacementConfig)==null?void 0:xB.kind,renderer:(Wz=B[0])==null?void 0: Wz.renderer})}return k}H=V.filter(Wf);k.push.apply(k,g.U(ArK(C,H,G.X.get(),G.C,x,p)));if(!k.length){var GK,Q,M,I;kN("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":B.length,contentCpn:x,daiEnabled:e.toString(),"first APR kind":(GK=B[0])==null?void 0:(Q=GK.config)==null?void 0:(M=Q.adPlacementConfig)==null?void 0:M.kind,renderer:(I=B[0])==null?void 0:I.renderer})}return k}; n5b=function(G,B,a,V,x,h){function e(d){return lE(G.vD.get(),d)} var w=[];B=g.m(B);for(var K=B.next();!K.done;K=B.next()){K=K.value;var l=K.renderer,k=l.sandwichedLinearAdRenderer,N=l.linearAdSequenceRenderer;k&&E5B(k)?(kN("Found AdNotify with SandwichedLinearAdRenderer"),N=g.u(k.adVideoStart,zb),k=g.u(k.linearAd,kE),L_(h,l,K.config.adPlacementConfig.kind),l=void 0,N=t9c((l=N)==null?void 0:l.layout.layoutId,G.X.get(),G.j.get(),K.config.adPlacementConfig,K.adSlotLoggingData,k,a,V,e,x,G.loadPolicy,G.vS.get(),G.vD.get()),N instanceof Y?kN(N):w.push.apply(w,g.U(N))): N&&(!N.adLayoutMetadata&&jGz(N)||N.adLayoutMetadata&&bzV(N))&&(kN("Found AdNotify with LinearAdSequenceRenderer"),L_(h,l,K.config.adPlacementConfig.kind),l=void 0,k=NFB((l=g.u(N.adStart,zb))==null?void 0:l.layout.layoutId,G.X.get(),G.j.get(),K.config.adPlacementConfig,K.adSlotLoggingData,N.linearAds,Ma(N.adLayoutMetadata)?N.adLayoutMetadata:void 0,a,V,e,x,G.loadPolicy,G.vS.get()),k instanceof Y?kN(k):w.push.apply(w,g.U(k)))}return w}; yVV=function(G,B,a,V,x,h,e,w,K,l,k){function N(b){return lE(G.vD.get(),b)} var d=a.renderer,C=a.config.adPlacementConfig,z=C.kind,p=a.adSlotLoggingData,O=w.RO&&z==="AD_PLACEMENT_KIND_START";O=h&&!O;if(d.adsEngagementPanelRenderer!=null)return sm(B,a.elementId,z,d.adsEngagementPanelRenderer.isContentVideoEngagementPanel,d.adsEngagementPanelRenderer.adVideoId,d.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,C,p,function(b,c,H,R){var q=G.j.get(),A=b.slotId,J=d.adsEngagementPanelRenderer;b=lE(G.vD.get(),b);return mg(q,A,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new qK(J),c,H,J.impressionPings,b,d.adsEngagementPanelRenderer.adLayoutLoggingData,R)}),[]; if(d.adsEngagementPanelLayoutViewModel)return sm(B,a.elementId,z,d.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,d.adsEngagementPanelLayoutViewModel.adVideoId,d.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,C,p,function(b,c,H,R){var q=G.j.get(),A=b.slotId,J=d.adsEngagementPanelLayoutViewModel;b=lE(G.vD.get(),b);return Ik(q,A,"LAYOUT_TYPE_PANEL",new uo(J),c,H,b,d.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,R)}),[]; if(d.actionCompanionAdRenderer!=null){if(d.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return LNy(G.X.get(),G.C,G.j.get(),d.actionCompanionAdRenderer,C,p,V,N);sm(B,a.elementId,z,d.actionCompanionAdRenderer.isContentVideoCompanion,d.actionCompanionAdRenderer.adVideoId,d.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,C,p,function(b,c,H,R){var q=G.j.get(),A=b.slotId,J=d.actionCompanionAdRenderer;b=lE(G.vD.get(),b);return mg(q,A,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new $v(J),c,H,J.impressionPings,b,d.actionCompanionAdRenderer.adLayoutLoggingData,R)})}else if(d.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(d.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return THH(G.X.get(),G.C,G.j.get(),d.topBannerImageTextIconButtonedLayoutViewModel,C,p,V,N); sm(B,a.elementId,z,d.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,d.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,d.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,C,p,function(b,c,H,R){var q=G.j.get(),A=b.slotId,J=d.topBannerImageTextIconButtonedLayoutViewModel;b=lE(G.vD.get(),b);return Ik(q,A,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new Xu(J),c,H,b,d.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,R)})}else if(d.imageCompanionAdRenderer)sm(B, a.elementId,z,d.imageCompanionAdRenderer.isContentVideoCompanion,d.imageCompanionAdRenderer.adVideoId,d.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,C,p,function(b,c,H,R){var q=G.j.get(),A=b.slotId,J=d.imageCompanionAdRenderer; b=lE(G.vD.get(),b);return mg(q,A,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new sd(J),c,H,J.impressionPings,b,d.imageCompanionAdRenderer.adLayoutLoggingData,R)}); else if(d.bannerImageLayoutViewModel)sm(B,a.elementId,z,d.bannerImageLayoutViewModel.isContentVideoCompanion,d.bannerImageLayoutViewModel.adVideoId,d.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,C,p,function(b,c,H,R){var q=G.j.get(),A=b.slotId,J=d.bannerImageLayoutViewModel;b=lE(G.vD.get(),b);return Ik(q,A,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Fu(J),c,H,b,d.bannerImageLayoutViewModel.adLayoutLoggingData,R)}); else if(d.shoppingCompanionCarouselRenderer)sm(B,a.elementId,z,d.shoppingCompanionCarouselRenderer.isContentVideoCompanion,d.shoppingCompanionCarouselRenderer.adVideoId,d.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,C,p,function(b,c,H,R){var q=G.j.get(),A=b.slotId,J=d.shoppingCompanionCarouselRenderer;b=lE(G.vD.get(),b);return mg(q,A,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new JW(J),c,H,J.impressionPings,b,d.shoppingCompanionCarouselRenderer.adLayoutLoggingData,R)}); else if(d.adBreakServiceRenderer){if(!u9B(a))return[];if(z==="AD_PLACEMENT_KIND_PAUSE")return qjc(G.X.get(),C,p,a.renderer.adBreakServiceRenderer,V);if(z!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&z!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return X79(G.X.get(),C,p,a.renderer.adBreakServiceRenderer,V,x,h);w.SE||kN("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:z,adPlacementConfig:C,daiEnabledForContentVideo:String(h),isServedFromLiveInfra:String(w.SE),clientPlaybackNonce:w.clientPlaybackNonce}); if(z==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!G.fN)return new Y("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!G.Uv)return new Y("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");G.Uv.XA({adPlacementRenderer:a,contentCpn:V,u2:x});x=G.fN.get().getCurrentTimeSec(1,!1);return fIV(G.X.get(),a.renderer.adBreakServiceRenderer,C,x,V,p,h)}if(!G.B9)return new Y("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); G.B9.XA({adPlacementRenderer:a,contentCpn:V,u2:x})}else{if(d.clientForecastingAdRenderer)return GyV(G.X.get(),G.j.get(),C,p,d.clientForecastingAdRenderer,V,x,N);if(d.invideoOverlayAdRenderer)return xbb(G.X.get(),G.j.get(),C,p,d.invideoOverlayAdRenderer,V,x,N);if(d.instreamAdPlayerOverlayRenderer)return aIz(G.X.get(),G.j.get(),C,p,d.instreamAdPlayerOverlayRenderer,V,N);if((d.linearAdSequenceRenderer||d.instreamVideoAdRenderer)&&O)return l7_(G.X.get(),G.j.get(),a,V,N,l,!G.vS.get().T.U().S("html5_override_ad_video_length_killswitch")); if(d.linearAdSequenceRenderer&&!O){if(e)return[];L_(B,d,z);if(d.linearAdSequenceRenderer.adLayoutMetadata){if(!fZK(d.linearAdSequenceRenderer))return new Y("Received invalid LinearAdSequenceRenderer.")}else if(d.linearAdSequenceRenderer.linearAds==null)return new Y("Received invalid LinearAdSequenceRenderer.");if(g.u(d.linearAdSequenceRenderer.adStart,zb)){kN("Found AdNotify in LinearAdSequenceRenderer");a=g.u(d.linearAdSequenceRenderer.adStart,zb);if(!NHy(a))return new Y("Invalid AdMessageRenderer."); h=d.linearAdSequenceRenderer.linearAds;return db9(G.G.get(),G.X.get(),G.j.get(),G.vD.get(),C,p,a,Ma(d.linearAdSequenceRenderer.adLayoutMetadata)?d.linearAdSequenceRenderer.adLayoutMetadata:void 0,h,V,x,w,N,K,G.loadPolicy,G.vS.get())}return IIK(G.X.get(),G.j.get(),C,p,d.linearAdSequenceRenderer.linearAds,Ma(d.linearAdSequenceRenderer.adLayoutMetadata)?d.linearAdSequenceRenderer.adLayoutMetadata:void 0,V,x,w,N,K,G.loadPolicy,G.vS.get(),k)}if(!d.remoteSlotsRenderer||h){if(d.instreamVideoAdRenderer&& !O){if(e)return[];L_(B,d,z);return UKx(G.X.get(),G.j.get(),C,p,d.instreamVideoAdRenderer,V,x,w,N,K,G.loadPolicy,G.vS.get(),G.vD.get(),k)}if(d.instreamSurveyAdRenderer)return Ozg(G.X.get(),G.j.get(),d.instreamSurveyAdRenderer,C,p,V,N,As(G.vS.get(),"supports_multi_step_on_desktop"));if(d.sandwichedLinearAdRenderer!=null)return HHK(d.sandwichedLinearAdRenderer)?g.u(d.sandwichedLinearAdRenderer.adVideoStart,zb)?(kN("Found AdNotify in SandwichedLinearAdRenderer"),a=g.u(d.sandwichedLinearAdRenderer.adVideoStart, zb),NHy(a)?(h=g.u(d.sandwichedLinearAdRenderer.linearAd,kE))?mKX(a,h,C,G.G.get(),G.X.get(),G.j.get(),G.vD.get(),p,V,x,w,N,K,G.loadPolicy,G.vS.get()):new Y("Missing IVAR from Sandwich"):new Y("Invalid AdMessageRenderer.")):IIK(G.X.get(),G.j.get(),C,p,[d.sandwichedLinearAdRenderer.adVideoStart,d.sandwichedLinearAdRenderer.linearAd],void 0,V,x,w,N,K,G.loadPolicy,G.vS.get()):new Y("Received invalid SandwichedLinearAdRenderer.");if(d.videoAdTrackingRenderer!=null)return ovV(G.X.get(),G.j.get(),d.videoAdTrackingRenderer, C,p,V,x,w.IM,N)}}return[]}; gY=function(G,B,a,V,x,h,e,w){g.r.call(this);var K=this;this.X=G;this.C=B;this.nD=V;this.fN=x;this.vS=h;this.BS=e;this.HC=w;this.j=null;a.get().addListener(this);this.addOnDisposeCallback(function(){a.TH()||a.get().removeListener(K)}); V.get().addListener(this);this.addOnDisposeCallback(function(){V.TH()||V.get().removeListener(K)})}; v5Y=function(G,B,a){var V=G.fN.get().getCurrentTimeSec(1,!1);G.vS.get().T.U().Ef()&&Bv(G.BS.get(),"sdai","onopp.1;evt."+a.event+";start."+a.startSecs.toFixed(3)+";d."+a.YF.toFixed(3));Cf(G.X.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var x=G.C.get(),h=B.adPlacementRenderer.renderer.adBreakServiceRenderer,e=B.contentCpn,w=B.adPlacementRenderer.adSlotLoggingData,K=pD(G.vS.get()),l=G.BS;if(x.vS.get().T.U().experiments.Or("enable_smearing_expansion_dai")){var k=g.kf(x.vS.get().T.U().experiments, "max_prefetch_window_sec_for_livestream_optimization");var N=g.kf(x.vS.get().T.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");K={C1:Hzg(a),RJ:!1,cueProcessedMs:V*1E3};var d=a.startSecs+a.YF;if(V===0)K.by=new OJ(0,d*1E3);else{N=a.startSecs-N;var C=N-V;K.by=C<=0?new OJ(N*1E3,d*1E3):new OJ(Math.floor(V+Math.random()*Math.min(C,k))*1E3,d*1E3)}k=K}else k={C1:Hzg(a),RJ:!1},d=a.startSecs+a.YF,a.startSecs<=V?K=new OJ((a.startSecs-4)*1E3,d*1E3):(N=Math.max(0,a.startSecs-V-10),K=new OJ(Math.floor(V+ Math.random()*(K?V===0?0:Math.min(N,5):N))*1E3,d*1E3)),k.by=K;x=q0(x,h,e,k,w,[new OQ(a)]);l.get().T.GW(k.by.start/1E3-V,a.startSecs-V);return[x]})}; Uo=function(G){var B,a=(B=xf(G.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:B.current;if(!a)return null;B=xf(G.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var V=G.layoutId,x=xf(G.clientMetadata,"metadata_type_content_cpn"),h=xf(G.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),e=xf(G.clientMetadata,"metadata_type_player_overlay_layout_renderer"),w=xf(G.clientMetadata,"metadata_type_player_underlay_renderer"),K=xf(G.clientMetadata, "metadata_type_ad_placement_config"),l=xf(G.clientMetadata,"metadata_type_video_length_seconds");var k=Mb(G.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?xf(G.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Mb(G.clientMetadata,"metadata_type_layout_enter_ms")&&Mb(G.clientMetadata,"metadata_type_layout_exit_ms")?(xf(G.clientMetadata,"metadata_type_layout_exit_ms")-xf(G.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{J7:V,contentCpn:x,NF:a,UG:B,instreamAdPlayerOverlayRenderer:h, playerOverlayLayoutRenderer:e,instreamAdPlayerUnderlayRenderer:w,adPlacementConfig:K,videoLengthSeconds:l,eV:k,inPlayerLayoutId:xf(G.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:xf(G.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; SQX=function(G,B){return Dbb(G,B)}; Rfy=function(G,B){B=Dbb(G,B);if(!B)return null;var a;B.eV=(a=xf(G.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:a.adBreakRemainingLengthSeconds;return B}; Dbb=function(G,B){var a,V=(a=xf(G.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:a.current;if(!V)return null;a=MTx(G,B);return{ax:o9b(G,B),adPlacementConfig:xf(G.clientMetadata,"metadata_type_ad_placement_config"),PL:a,contentCpn:xf(G.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:xf(G.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:xf(G.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:xf(G.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,eV:void 0,NF:V,J7:G.layoutId,videoLengthSeconds:xf(G.clientMetadata,"metadata_type_video_length_seconds")}}; Oo=function(G,B,a,V,x,h,e,w,K){g.r.call(this);this.G=G;this.L=B;this.B=a;this.C=V;this.j=x;this.X=h;this.vD=e;this.vS=w;this.WS=K;this.rE=!0}; ZzY=function(G,B,a){return j4z(G.j.get(),B.contentCpn,B.J7,function(V){return bpX(G.X.get(),V.slotId,a,B.adPlacementConfig,B.J7,lE(G.vD.get(),V))})}; Eo=function(G,B,a,V,x,h,e,w){g.r.call(this);this.X=G;this.j=B;this.C=a;this.vS=V;this.G=x;this.WS=h;this.fN=e;this.sZ=w}; jz=function(G){g.r.call(this);this.j=G}; Cf=function(G,B,a,V){G.j().Iy(B,V);a=a();G=G.j();G.un.Nr("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",B,V,a);B=g.m(a);for(a=B.next();!a.done;a=B.next())a:{V=G;a=a.value;V.un.k$("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",a);V.un.k$("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",a);try{var x=V.j;if(g.O3(a.slotId))throw new Y("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(pF(x,a))throw new Y("Duplicate registration for slot.",{slotId:a.slotId,slotEntryTriggerType:a.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!x.lf.XZ.has(a.slotType))throw new Y("No fulfillment adapter factory registered for slot of type: "+a.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!x.lf.uo.has(a.slotType))throw new Y("No SlotAdapterFactory registered for slot of type: "+a.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");$f(x,"TRIGGER_CATEGORY_SLOT_ENTRY",a.slotEntryTrigger?[a.slotEntryTrigger]:[]);$f(x,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", a.slotFulfillmentTriggers);$f(x,"TRIGGER_CATEGORY_SLOT_EXPIRATION",a.slotExpirationTriggers);var h=V.j,e=a.slotType+"_"+a.slotPhysicalPosition,w=Di(h,e);if(pF(h,a))throw new Y("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");w.set(a.slotId,new FUb(a));h.j.set(e,w)}catch(xB){xB instanceof Y&&xB.tY?(V.un.iC("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",xB.tY,a),kN(xB,a,void 0,void 0,xB.wf)):(V.un.iC("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", a),kN(xB,a));break a}pF(V.j,a).L=!0;try{var K=V.j,l=pF(K,a),k=a.slotEntryTrigger,N=K.lf.k9.get(k.triggerType);N&&(N.mj("TRIGGER_CATEGORY_SLOT_ENTRY",k,a,null),l.HS.set(k.triggerId,N));for(var d=g.m(a.slotFulfillmentTriggers),C=d.next();!C.done;C=d.next()){var z=C.value,p=K.lf.k9.get(z.triggerType);p&&(p.mj("TRIGGER_CATEGORY_SLOT_FULFILLMENT",z,a,null),l.zH.set(z.triggerId,p))}for(var O=g.m(a.slotExpirationTriggers),b=O.next();!b.done;b=O.next()){var c=b.value,H=K.lf.k9.get(c.triggerType);H&&(H.mj("TRIGGER_CATEGORY_SLOT_EXPIRATION", c,a,null),l.Y.set(c.triggerId,H))}var R=K.lf.XZ.get(a.slotType).get().build(K.C,a);l.W=R;var q=K.lf.uo.get(a.slotType).get().build(K.B,a);q.init();l.X=q}catch(xB){xB instanceof Y&&xB.tY?(V.un.iC("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",xB.tY,a),kN(xB,a,void 0,void 0,xB.wf)):(V.un.iC("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",a),kN(xB,a));ts(V,a,!0);break a}V.un.k$("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",a);V.j.pn(a);for(var A=g.m(V.X),J=A.next();!J.done;J= A.next())J.value.pn(a);Ee(V,a)}}; b6=function(G,B,a,V,x){g.r.call(this);var h=this;this.X=G;this.C=B;this.Jy=a;this.context=x;this.j=new Map;V.get().addListener(this);this.addOnDisposeCallback(function(){V.TH()||V.get().removeListener(h)})}; SjB=function(G,B){var a=0x8000000000000;var V=0;for(var x=g.m(B.slotFulfillmentTriggers),h=x.next();!h.done;h=x.next())h=h.value,h instanceof RV?(a=Math.min(a,h.j.start),V=Math.max(V,h.j.end)):kN("Found unexpected fulfillment trigger for throttled slot.",B,null,{fulfillmentTrigger:h});V=new OJ(a,V);a="throttledadcuerange:"+B.slotId;G.j.set(a,B);G.Jy.get().addCueRange(a,V.start,V.end,!1,G);EB(G.context.vS.get())&&(B=V.start,V=V.end,x={},G.context.Ci.jE("tcrr",(x.cid=a,x.sm=B,x.em=V,x)))}; yA=function(){g.r.apply(this,arguments);this.rE=!0;this.sS=new Map;this.j=new Map}; ck=function(G,B){G=g.m(G.sS.values());for(var a=G.next();!a.done;a=G.next())if(a.value.layoutId===B)return!0;return!1}; nD=function(G,B){G=g.m(G.j.values());for(var a=G.next();!a.done;a=G.next()){a=g.m(a.value);for(var V=a.next();!V.done;V=a.next())if(V=V.value,V.layoutId===B)return V}kN("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.O3(B)),layoutId:B})}; rVA=function(){this.j=new Map}; $bz=function(G,B){this.callback=G;this.slot=B}; fD=function(){}; XlA=function(G,B,a){this.callback=G;this.slot=B;this.fN=a}; qQb=function(G,B,a){this.callback=G;this.slot=B;this.fN=a;this.X=!1;this.j=0}; us9=function(G,B,a){this.callback=G;this.slot=B;this.fN=a}; Hk=function(G){this.fN=G}; vk=function(G){g.r.call(this);this.kK=G;this.As=new Map}; Dr=function(G,B){for(var a=[],V=g.m(G.As.values()),x=V.next();!x.done;x=V.next()){x=x.value;var h=x.trigger;h instanceof ij&&h.triggeringLayoutId===B&&a.push(x)}a.length?fF(G.kK(),a):kN("Survey is submitted but no registered triggers can be activated.")}; Sz=function(G,B,a){vk.call(this,G);var V=this;this.vS=a;B.get().addListener(this);this.addOnDisposeCallback(function(){B.TH()||B.get().removeListener(V)})}; Rk=function(G){g.r.call(this);this.j=G;this.rE=!0;this.As=new Map;this.B=new Set;this.C=new Set;this.G=new Set;this.L=new Set;this.X=new Set}; Zr=function(G){g.r.call(this);this.j=G;this.As=new Map}; rY=function(G,B){for(var a=[],V=g.m(G.As.values()),x=V.next();!x.done;x=V.next())x=x.value,x.trigger.j===B.layoutId&&a.push(x);a.length&&fF(G.j(),a)}; $G=function(G,B,a){g.r.call(this);var V=this;this.j=G;this.context=a;this.As=new Map;B.get().addListener(this);this.addOnDisposeCallback(function(){B.TH()||B.get().removeListener(V)})}; Xy=function(G,B,a,V,x){g.r.call(this);var h=this;this.X=G;this.Jy=B;this.fN=a;this.WS=V;this.context=x;this.rE=!0;this.As=new Map;this.j=new Set;a.get().addListener(this);this.addOnDisposeCallback(function(){a.TH()||a.get().removeListener(h)})}; QGz=function(G,B,a,V,x,h,e,w,K,l){if(t5(G.WS.get(),1).clientPlaybackNonce!==K)throw new Y("Cannot register CueRange-based trigger for different content CPN",{trigger:a});G.As.set(a.triggerId,{D3:new oV(B,a,V,x),cueRangeId:h});G.Jy.get().addCueRange(h,e,w,l,G);EB(G.context.vS.get())&&(K={},G.context.Ci.jE("crr",(K.ca=B,K.tt=a.triggerType,K.st=V.slotType,K.lt=x==null?void 0:x.layoutType,K.cid=h,K.sm=e,K.em=w,K)))}; LSH=function(G,B){G=g.m(G.As.entries());for(var a=G.next();!a.done;a=G.next()){var V=g.m(a.value);a=V.next().value;V=V.next().value;if(B===V.cueRangeId)return a}return""}; qc=function(G,B){g.r.call(this);var a=this;this.G=G;this.X=new Map;this.C=new Map;this.j=null;B.get().addListener(this);this.addOnDisposeCallback(function(){B.TH()||B.get().removeListener(a)}); var V;this.j=((V=B.get().mM)==null?void 0:V.slotId)||null}; TF_=function(G,B){var a=[];G=g.m(G.values());for(var V=G.next();!V.done;V=G.next())V=V.value,V.slot.slotId===B&&a.push(V);return a}; u6=function(G){g.r.call(this);this.j=G;this.rE=!0;this.As=new Map}; sM=function(G,B,a){B=B.layoutId;for(var V=[],x=g.m(G.As.values()),h=x.next();!h.done;h=x.next())if(h=h.value,h.trigger instanceof XZ){var e;if(e=h.trigger.layoutId===B){e=a;var w=XxV.get(h.category);e=w?w===e:!1}e&&V.push(h)}V.length&&fF(G.j(),V)}; QA=function(G){g.r.call(this);this.j=G;this.rE=!0;this.As=new Map}; LD=function(G,B,a,V,x){g.r.call(this);var h=this;this.B=G;this.nD=B;this.fN=a;this.BS=V;this.j=null;this.rE=!0;this.As=new Map;this.C=new Map;B.get().addListener(this);this.addOnDisposeCallback(function(){B.TH()||B.get().removeListener(h)}); x.get().addListener(this);this.addOnDisposeCallback(function(){x.TH()||x.get().removeListener(h)})}; FSB=function(G){G.j&&(G.X&&(G.X.stop(),G.X.start()),sGg(G,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; sGg=function(G,B){for(var a=[],V=g.m(G.As.values()),x=V.next();!x.done;x=V.next())x=x.value,x.trigger.triggerType===B&&a.push(x);a.length>0&&fF(G.B(),a)}; Tb=function(G,B,a,V,x){x=x===void 0?!0:x;for(var h=[],e=g.m(G.As.values()),w=e.next();!w.done;w=e.next()){w=w.value;var K=w.trigger;if(K.triggerType===B){if(K instanceof vv||K instanceof Dl||K instanceof Zl){if(x&&K.breakDurationMs!==a)continue;if(!x&&K.breakDurationMs===a)continue;if(V.has(K.triggerId))continue}h.push(w)}}h.length>0&&fF(G.B(),h)}; JVA=function(G){G=G.adPlacementRenderer.config.adPlacementConfig;if(!G.prefetchModeConfig||!G.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;G=Number(G.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(G)||G<=0?0:Math.floor(Math.random()*G)}; AVK=function(G){G=G.adPlacementRenderer.config.adPlacementConfig;if(G.prefetchModeConfig&&G.prefetchModeConfig.cacheFetchRefreshDurationMs&&(G=Number(G.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(G)||G<=0)))return G}; so=function(G){G.j=null;G.As.clear();G.C.clear();G.X&&G.X.stop();G.G&&G.G.stop()}; Fy=function(G){g.r.call(this);this.C=G;this.rE=!0;this.As=new Map;this.j=new Map;this.X=new Map}; YQb=function(G,B){var a=[];if(B=G.j.get(B.layoutId)){B=g.m(B);for(var V=B.next();!V.done;V=B.next())(V=G.X.get(V.value.triggerId))&&a.push(V)}return a}; J1=function(G){g.r.call(this);this.j=G;this.As=new Map}; iz9=function(G,B){for(var a=[],V=g.m(G.As.values()),x=V.next();!x.done;x=V.next())x=x.value,x.trigger instanceof Uw&&x.trigger.slotId===B&&a.push(x);a.length>=1&&fF(G.j(),a)}; PWH=function(G,B){var a={slotId:zL(B,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],xf:"surface",clientMetadata:new VI([])},V=Object,x=V.assign;B=Yf(B,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",a.slotId);B={layoutId:B,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",zi:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:"surface", clientMetadata:new VI([]),Js:DTB(!1,a.slotId,a.slotType,a.slotPhysicalPosition,a.xf,a.slotEntryTrigger,a.slotFulfillmentTriggers,a.slotExpirationTriggers,B,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return x.call(V,{},G,{vDx:!0,slot:a,layout:B})}; $vH=function(G,B,a,V){var x=G.kind;V=V?!1:!G.hideCueRangeMarker;switch(x){case "AD_PLACEMENT_KIND_START":return V={C1:new OJ(-0x8000000000000,-0x8000000000000),RJ:V},a!=null&&(V.by=new OJ(-0x8000000000000,-0x8000000000000)),V;case "AD_PLACEMENT_KIND_END":return V={C1:new OJ(0x7ffffffffffff,0x8000000000000),RJ:V},a!=null&&(V.by=new OJ(Math.max(0,B-a),0x8000000000000)),V;case "AD_PLACEMENT_KIND_MILLISECONDS":x=G.adTimeOffset;x.offsetStartMilliseconds||kN("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); x.offsetEndMilliseconds||kN("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");G=Number(x.offsetStartMilliseconds);x=Number(x.offsetEndMilliseconds);x===-1&&(x=B);if(Number.isNaN(G)||Number.isNaN(x)||G>x)return new Y("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:G,offsetEndMs:x},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",x===B&&G-500<=x);V={C1:new OJ(G,x),RJ:V};if(a!=null){G=Math.max(0,G-a);if(G===x)return V;V.by=new OJ(G,x)}return V; default:return new Y("AdPlacementKind not supported in convertToRange.",{kind:x,adPlacementConfig:G})}}; Hzg=function(G){var B=G.startSecs*1E3;return new OJ(B,B+G.YF*1E3)}; o5A=function(G){if(!G||!G.adPlacements&&!G.adSlots)return!1;for(var B=g.m(G.adPlacements||[]),a=B.next();!a.done;a=B.next())if(a=a.value)if(a=a.adPlacementRenderer,a!=null&&(a.config&&a.config.adPlacementConfig&&a.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;G=g.m(G.adSlots||[]);for(B=G.next();!B.done;B=G.next()){var V=a=void 0;if(((a=g.u(B.value,XK))==null?void 0:(V=a.adSlotMetadata)==null?void 0:V.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; A1=function(G){this.vS=G;this.X=new Map;this.j=new Map;this.C=new Map}; zL=function(G,B){if(YG(G.vS.get())){var a=G.X.get(B)||0;a++;G.X.set(B,a);return B+"_"+a}return g.Et(16)}; Yf=function(G,B,a){if(YG(G.vS.get())){var V=G.j.get(B)||0;V++;G.j.set(B,V);return a+"_"+B+"_"+V}return g.Et(16)}; ez=function(G,B){if(YG(G.vS.get())){var a=G.C.get(B)||0;a++;G.C.set(B,a);return B+"_"+a}return g.Et(16)}; Mcy=function(G){var B=[new Cz(G.J7),new IG(G.NF),new io(G.adPlacementConfig),new EQ(G.videoLengthSeconds),new Xs(G.eV)];G.instreamAdPlayerOverlayRenderer&&B.push(new V$(G.instreamAdPlayerOverlayRenderer));G.playerOverlayLayoutRenderer&&B.push(new x5(G.playerOverlayLayoutRenderer));G.UG&&B.push(new Gy(G.UG));return B}; GBK=function(G,B,a,V,x,h){G=a.inPlayerLayoutId?a.inPlayerLayoutId:Yf(h,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",G);var e,w,K=a.instreamAdPlayerOverlayRenderer?(e=a.instreamAdPlayerOverlayRenderer)==null?void 0:e.adLayoutLoggingData:(w=a.playerOverlayLayoutRenderer)==null?void 0:w.adLayoutLoggingData;e={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",xf:B};return{layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",zi:new Map,layoutExitNormalTriggers:[new fq(function(l){return ez(h, l)},a.J7)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:B,clientMetadata:V,Js:x(e),adLayoutLoggingData:K}}; i6=function(G,B){var a=this;this.X=G;this.vS=B;this.j=function(V){return ez(a.X.get(),V)}}; bpX=function(G,B,a,V,x,h){a=new VI([new hV(a),new io(V)]);B=Yf(G.X.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",B);V={layoutId:B,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",xf:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",zi:new Map,layoutExitNormalTriggers:[new fq(function(e){return ez(G.X.get(),e)},x)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:"core",clientMetadata:a,Js:h(V),adLayoutLoggingData:void 0}}; o9=function(G,B,a,V,x){var h=Mcy(V);return GBK(B,a,V,new VI(h),x,G.X.get())}; BaY=function(G,B,a,V,x){var h=Mcy(V);h.push(new AW(V.ax));h.push(new Yv(V.PL));return GBK(B,a,V,new VI(h),x,G.X.get())}; mg=function(G,B,a,V,x,h,e,w,K,l){B=Yf(G.X.get(),a,B);var k={layoutId:B,layoutType:a,xf:"core"},N=new Map;e&&N.set("impression",e);e=[new rS(G.j,x,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];l&&e.push(new nq(G.j,l,["normal"]));return{layoutId:B,layoutType:a,zi:N,layoutExitNormalTriggers:e,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:"core",clientMetadata:new VI([V,new io(h),new Cz(x)]),Js:w(k),adLayoutLoggingData:K}}; Ik=function(G,B,a,V,x,h,e,w,K){B=Yf(G.X.get(),a,B);var l={layoutId:B,layoutType:a,xf:"core"},k=[new rS(G.j,x,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];K&&k.push(new nq(G.j,K,["normal"]));return{layoutId:B,layoutType:a,zi:new Map,layoutExitNormalTriggers:k,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:"core",clientMetadata:new VI([V,new io(h),new Cz(x)]),Js:e(l),adLayoutLoggingData:w}}; wY=function(G,B,a){var V=[];V.push(new $8(G.j,a));B&&V.push(B);return V}; Wk=function(G,B,a,V,x,h,e){var w={layoutId:B,layoutType:a,xf:"core"};return{layoutId:B,layoutType:a,zi:new Map,layoutExitNormalTriggers:e,layoutExitSkipTriggers:[new je(G.j,B)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:"core",clientMetadata:new VI([new TH(V),new io(x)]),Js:h(w),adLayoutLoggingData:V.adLayoutLoggingData}}; A4=function(G,B,a,V,x,h,e,w){var K={layoutId:B,layoutType:h,xf:"core"};return{layoutId:B,layoutType:h,zi:new Map,layoutExitNormalTriggers:[new fq(G.j,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:"core",clientMetadata:new VI([new io(V)].concat(g.U(e))),Js:x(K),adLayoutLoggingData:w}}; l6=function(G,B,a,V){if(G.vS.get().T1(B.kind==="AD_PLACEMENT_KIND_START"))if(a===void 0)kN("Expected SSAP layout ID in renderer",void 0,void 0,{caller:V});else return a}; hfy=function(G,B,a,V,x,h,e,w,K,l,k,N,d){G=KD(G,B,a,x,h,e,w,K,N,l6(G,a,V.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),d);B=G.zM;a=new zy(G.pY);V=G.layoutExitSkipTriggers;l>0&&(B.push(a),B.push(new MK(l)),V=[]);B.push(new o4(k));return{qq:{layoutId:G.layoutId,layoutType:G.layoutType,zi:G.zi,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:G.xf,clientMetadata:new VI(B),Js:G.Js,adLayoutLoggingData:G.adLayoutLoggingData}, hW:V,bY:G.layoutExitMuteTriggers,yE:G.layoutExitUserInputSubmittedTriggers,CP:G.u6,Ox:G.Ox}}; KSH=function(G,B,a,V,x,h,e,w,K,l){B=KD(G,B,a,V,h,new Map,e,function(k){return w(k,K)},void 0,l6(G,a,x.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); G=new ij(G.j,B.pY);a=new zy(B.pY);l=new o4(l);return{qq:{layoutId:B.layoutId,layoutType:B.layoutType,zi:B.zi,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:B.xf,clientMetadata:new VI([].concat(g.U(B.zM),[a,l])),Js:B.Js,adLayoutLoggingData:B.adLayoutLoggingData},hW:B.layoutExitSkipTriggers,bY:B.layoutExitMuteTriggers,yE:[].concat(g.U(B.layoutExitUserInputSubmittedTriggers),[G]),CP:B.u6,Ox:B.Ox}}; KD=function(G,B,a,V,x,h,e,w,K,l,k){B=l!=null?l:Yf(G.X.get(),"LAYOUT_TYPE_MEDIA_BREAK",B);l={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",xf:"adapter"};w=w(B);var N=xf(w.clientMetadata,"metadata_type_fulfilled_layout");N||kN("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var d=N?N.layoutId:"";a=[new io(a),new qb(V),new Lz(x)];N&&a.push(new tV(N.layoutType));k&&a.push(new fz(k));return{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", zi:h,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new QK(G.j,d)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:"adapter",zM:a,Js:e(l),adLayoutLoggingData:K,Ox:w,pY:d}}; OpY=function(G,B,a,V,x,h,e,w,K,l,k){G=aiX(G,B,"core",a,V,x,h,e,w,K,l,void 0,k);return{layoutId:G.layoutId,layoutType:G.layoutType,zi:G.zi,layoutExitNormalTriggers:G.layoutExitNormalTriggers,layoutExitSkipTriggers:G.layoutExitSkipTriggers,layoutExitMuteTriggers:G.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:G.layoutExitUserInputSubmittedTriggers,u6:G.u6,xf:G.xf,clientMetadata:new VI(G.gY),Js:G.Js,adLayoutLoggingData:G.adLayoutLoggingData}}; plY=function(G,B,a,V,x,h,e,w,K,l,k,N,d){B=aiX(G,B,"adapter",a,V,x,h,e,w,K,k,N,d);V=B.layoutExitSkipTriggers;x=B.gY;a.adPodSkipTarget&&a.adPodSkipTarget>0&&(x.push(l),x.push(new MK(a.adPodSkipTarget)),V=[]);x.push(new o4(w.adPodIndex));a.isCritical&&(V=[new nq(G.j,B.layoutId,["error"])].concat(g.U(V)));return{qq:{layoutId:B.layoutId,layoutType:B.layoutType,zi:B.zi,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:B.xf,clientMetadata:new VI(x), Js:B.Js,adLayoutLoggingData:B.adLayoutLoggingData},hW:V,bY:B.layoutExitMuteTriggers,yE:B.layoutExitUserInputSubmittedTriggers,CP:B.u6}}; aiX=function(G,B,a,V,x,h,e,w,K,l,k,N,d){var C={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",xf:a};x=[new io(x),new PS(K),new Bl(V.externalVideoId),new aG(w),new Lz({impressionCommands:V.impressionCommands,abandonCommands:V.onAbandonCommands,completeCommands:V.completeCommands,progressCommands:V.adVideoProgressCommands}),new jc(h),new gF({current:null}),new EQ(e)];(h=V.playerOverlay.instreamAdPlayerOverlayRenderer)&&x.push(new V$(h));(e=V.playerOverlay.playerOverlayLayoutRenderer)&&x.push(new x5(e)); N&&x.push(new bW(N));(N=V.playerUnderlay)&&x.push(new hV(N));w=zL(G.X.get(),"SLOT_TYPE_IN_PLAYER");N=(N=h?h.elementId:e==null?void 0:e.layoutId)?N:Yf(G.X.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",w);x.push(new zy(N));x.push(new mS(w));x.push(new fz(K.adPodIndex));V.adNextParams&&x.push(new QB(V.adNextParams));V.shrunkenPlayerBytesConfig&&x.push(new wF(V.shrunkenPlayerBytesConfig));V.clickthroughEndpoint&&x.push(new Lp(V.clickthroughEndpoint));V.legacyInfoCardVastExtension&&x.push(new uW(V.legacyInfoCardVastExtension)); V.sodarExtensionData&&x.push(new y$(V.sodarExtensionData));k&&x.push(new $5(k));x.push(new Fs(bh(V.pings)));K=y1(V.pings);if(d){a:{d=g.m(d);for(k=d.next();!k.done;k=d.next())if(k=k.value,k.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(h=g.u(k.fulfillmentContent.fulfilledLayout,n_))&&(h=g.u(h.renderingContent,gm))&&h.associatedPlayerBytesLayoutId===B){d=k;break a}d=void 0}d&&x.push(new ec(d))}return{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",zi:K,layoutExitNormalTriggers:[new XZ(G.j,B)],layoutExitSkipTriggers:V.skipOffsetMilliseconds? [new QK(G.j,N)]:[],layoutExitMuteTriggers:[new QK(G.j,N)],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:a,gY:x,Js:l(C),adLayoutLoggingData:V.adLayoutLoggingData}}; NCV=function(G,B,a,V,x,h,e,w,K){V.every(function(k){return GB(k,[],["LAYOUT_TYPE_MEDIA"])})||kN("Unexpect subLayout type for DAI composite layout"); B=Yf(G.X.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",B);var l={layoutId:B,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",xf:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",zi:new Map,layoutExitNormalTriggers:[new Hv(G.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u6:[],xf:"core",clientMetadata:new VI([new cl(a),new nz(w),new UQ(V),new io(x),new Sc(h),new Hl({}),new AV(K)]),Js:e(l)}}; Wiz=function(G){return G!=null}; Pk=function(G,B,a){var V=this;this.X=G;this.C=B;this.vS=a;this.j=function(x){return ez(V.X.get(),x)}}; fIV=function(G,B,a,V,x,h,e){if(!a.prefetchModeConfig)return new Y("AdPlacementConfig for Live Prefetch is missing prefetch_config");a=a.prefetchModeConfig;V*=1E3;var w=[];if(!a.breakLengthMs)return new Y("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var K=g.m(a.breakLengthMs),l=K.next();!l.done;l=K.next())if(l=l.value,Number(l)>0){var k=V+Number(a.startTimeOffsetMs),N=k+Number(a.cacheFetchSmearingDurationMs);l={C1:new OJ(N,N+Number(l)),RJ:!1,by:new OJ(Math.floor(k+Math.random()* Number(a.cacheFetchSmearingDurationMs)),N),cueProcessedMs:V?V:k};k=[];k.push(new oG({}));N=[];N.push(new uj(G.j));N.push(new GiX(G.j));e&&k.push(new Hl({}));w.push(q0(G,B,x,l,h,k,N))}return w}; q0=function(G,B,a,V,x,h,e){h=h===void 0?[]:h;e=e===void 0?[]:e;var w=zL(G.X.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),K=[];e=g.m(e);for(var l=e.next();!l.done;l=e.next())K.push(l.value);V.by&&V.by.start!==V.C1.start&&K.push(new RV(G.j,a,new OJ(V.by.start,V.C1.start),!1));K.push(new RV(G.j,a,new OJ(V.C1.start,V.C1.end),V.RJ));V={getAdBreakUrl:B.getAdBreakUrl,Yr:V.C1.start,Nw:V.C1.end,cueProcessedMs:V.cueProcessedMs};B=new JP(G.j,w);h=[new ZI(V)].concat(g.U(h));return{slotId:w,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:K,slotExpirationTriggers:[new qa(G.j,a),new Tm(G.j,w),new FZ(G.j,w)],xf:"core",clientMetadata:new VI(h),adSlotLoggingData:x}}; xf9=function(G,B,a){var V=[];a=g.m(a);for(var x=a.next();!x.done;x=a.next())V.push(VQz(G,B,x.value));return V}; VQz=function(G,B,a){return a.triggeringSlotId!=null&&a.triggeringSlotId===G?a.clone(B):a}; iHg=function(G,B,a,V,x){return huA(G,B,a,V,x)}; efg=function(G,B,a,V){var x=zL(G.X.get(),"SLOT_TYPE_IN_PLAYER");return huA(G,x,B,a,V)}; huA=function(G,B,a,V,x){var h=new cv(G.j,a),e=[new Lq(G.j,B)];G=[new Tm(G.j,B),new qa(G.j,V)];return{slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:e,slotExpirationTriggers:G,xf:"core",clientMetadata:new VI([new RG(x({slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,xf:"core",slotEntryTrigger:h,slotFulfillmentTriggers:e,slotExpirationTriggers:G},a))]),adSlotLoggingData:void 0}}; Ub9=function(G,B,a,V,x,h){var e=zL(G.X.get(),"SLOT_TYPE_PLAYER_BYTES"),w=zL(G.X.get(),"SLOT_TYPE_IN_PLAYER"),K=Yf(G.X.get(),"LAYOUT_TYPE_SURVEY",w);V=ok(G,B,a,V);var l=[new Lq(G.j,e)];a=[new Tm(G.j,e),new qa(G.j,a),new je(G.j,K)];if(V instanceof Y)return V;w=h({slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,xf:"core",slotEntryTrigger:V,slotFulfillmentTriggers:l,slotExpirationTriggers:a},{slotId:w,layoutId:K});h=w.VEf;w=w.z6r;return[{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:Nc(G,B,e,V),slotFulfillmentTriggers:dY(G,B,e,l),slotExpirationTriggers:a,xf:"core",clientMetadata:new VI([new RG(h),new Y5(CD(B)),new Pl({u9:G.u9(B)})]),adSlotLoggingData:x},w]}; CD=function(G){return G.kind==="AD_PLACEMENT_KIND_START"}; Evy=function(G,B,a,V,x){x=x?x:zL(G.X.get(),"SLOT_TYPE_IN_PLAYER");a=new cv(G.j,a);var h=[new Lq(G.j,x)];G=[new qa(G.j,B),new Tm(G.j,x)];return{slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:h,slotExpirationTriggers:G,xf:"core",clientMetadata:new VI([new RG(V({slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,xf:"core",slotEntryTrigger:a,slotFulfillmentTriggers:h,slotExpirationTriggers:G}))])}}; j4z=function(G,B,a,V){var x=zL(G.X.get(),"SLOT_TYPE_PLAYER_UNDERLAY");a=new cv(G.j,a);var h=[new Lq(G.j,x)];G=[new qa(G.j,B),new Tm(G.j,x)];return{slotId:x,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:h,slotExpirationTriggers:G,xf:"core",clientMetadata:new VI([new RG(V({slotId:x,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,xf:"core",slotEntryTrigger:a,slotFulfillmentTriggers:h,slotExpirationTriggers:G}))])}}; zZb=function(G,B,a,V,x,h,e){var w=zL(G.X.get(),"SLOT_TYPE_IN_PLAYER"),K=Yf(G.X.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",w);V=euB(G,V,h,e,K);if(V instanceof Y)return V;e=[new Lq(G.j,w)];x=[new qa(G.j,h),new Lq(G.j,x),new Y8(G.j,x)];a=lE(a,{slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,xf:"core",slotEntryTrigger:V,slotFulfillmentTriggers:e,slotExpirationTriggers:x});G=G.C.get();h={layoutId:K,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",xf:"core"};B={layoutId:K,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", zi:new Map,layoutExitNormalTriggers:[new w7_(G.j,K,B.durationMs)],layoutExitSkipTriggers:[new lZg(G.j,K,B.durationMs)],u6:[new KNV(G.j,K)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xf:"core",clientMetadata:new VI([new Q$(B)]),Js:a(h)};return{slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,xf:"core",slotEntryTrigger:V,slotFulfillmentTriggers:e,slotExpirationTriggers:x,clientMetadata:new VI([new RG(B)])}}; VcH=function(G,B,a,V,x,h){B=ok(G,B,a,V);if(B instanceof Y)return B;var e=B instanceof RV?new hLz(G.j,a,B.j):null;V=zL(G.X.get(),"SLOT_TYPE_IN_PLAYER");var w=[new Lq(G.j,V)];G=[new qa(G.j,a),new Tm(G.j,V)];h=h({slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,xf:"core",slotEntryTrigger:B,slotFulfillmentTriggers:w,slotExpirationTriggers:G},e);return h instanceof af?new Y(h):{slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:w,slotExpirationTriggers:G, xf:"core",clientMetadata:new VI([new RG(h)]),adSlotLoggingData:x}}; BFV=function(G,B,a,V){var x=zL(G.X.get(),"SLOT_TYPE_IN_PLAYER"),h=new Ew(G.j,B),e=[new AP(G.j,x)];G=[new qa(G.j,B),new Tm(G.j,x)];return{slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:e,slotExpirationTriggers:G,xf:"core",clientMetadata:new VI([new RG(V({slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,xf:"core",slotEntryTrigger:h,slotFulfillmentTriggers:e,slotExpirationTriggers:G}))]),adSlotLoggingData:a}}; a7V=function(G,B,a,V){var x=zL(G.X.get(),"SLOT_TYPE_IN_PLAYER");a=new cv(G.j,a);var h=[new Lq(G.j,x)],e=[new Tm(G.j,x),new qa(G.j,B)];h={slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,xf:"core",slotEntryTrigger:a,slotFulfillmentTriggers:h,slotExpirationTriggers:e};return{slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:[new Lq(G.j,x)],slotExpirationTriggers:[new qa(G.j,B),new Tm(G.j,x)],xf:"core",clientMetadata:new VI([new RG(V(h))])}}; MDb=function(G,B,a,V,x){var h=zL(G.X.get(),"SLOT_TYPE_IN_PLAYER");a=new yK(G.j,V,a);V=[new Lq(G.j,h)];G=[new qa(G.j,B)];return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:V,slotExpirationTriggers:G,xf:"core",clientMetadata:new VI([new RG(x({slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,xf:"core",slotEntryTrigger:a,slotFulfillmentTriggers:V,slotExpirationTriggers:G}))])}}; JrA=function(G,B,a,V,x,h){var e=zL(G.X.get(),B);return Mc(G,e,B,new cv(G.j,V),[new qa(G.j,a),new Tm(G.j,e),new nq(G.j,V,["error"])],x,h)}; FNx=function(G,B,a,V,x,h,e){var w=zL(G.X.get(),B);return Mc(G,w,B,new nq(G.j,x,["normal"]),[new qa(G.j,a),new Tm(G.j,w),new nq(G.j,V,["error"])],h,e)}; Q3H=function(G,B,a,V,x){var h=zL(G.X.get(),B);return Mc(G,h,B,new Ew(G.j,a),[new qa(G.j,a),new Tm(G.j,h)],V,x)}; Poc=function(G,B,a,V,x){a=a?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var h=zL(G.X.get(),a);B=new Ew(G.j,B);var e=[new Lq(G.j,h)];G=[new Tm(G.j,h)];return{slotId:h,slotType:a,slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:e,slotExpirationTriggers:G,xf:"core",clientMetadata:new VI([new RG(x({slotId:h,slotType:a,slotPhysicalPosition:1,xf:"core",slotEntryTrigger:B,slotFulfillmentTriggers:e,slotExpirationTriggers:G}))]),adSlotLoggingData:V}}; wSB=function(G,B,a,V){var x=zL(G.X.get(),"SLOT_TYPE_PLAYER_BYTES"),h=new Se(G.j),e=[new AP(G.j,x)];G=[new qa(G.j,B)];return{slotId:x,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:e,slotExpirationTriggers:G,xf:"core",clientMetadata:new VI([new RG(V({slotId:x,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,xf:"core",slotEntryTrigger:h,slotFulfillmentTriggers:e,slotExpirationTriggers:G})),new Hl({})]),adSlotLoggingData:a}}; tcg=function(G,B){return cV_(G.vS.get())?new nq(G.j,B,["normal","error","skipped"]):new nq(G.j,B,["normal"])}; gvA=function(G,B,a,V,x){B=tcg(G,B);G=kG(G,B,a);x=x({slotId:G.slotId,slotType:G.slotType,slotPhysicalPosition:G.slotPhysicalPosition,slotEntryTrigger:G.slotEntryTrigger,slotFulfillmentTriggers:G.slotFulfillmentTriggers,slotExpirationTriggers:G.slotExpirationTriggers,xf:G.xf});return x instanceof Y?x:{wb:Object.assign({},G,{clientMetadata:new VI([new RG(x.layout)]),adSlotLoggingData:V}),uu:x.uu}}; pS9=function(G,B,a,V,x,h,e){a=mbX(G,B,a,V);if(a instanceof Y)return a;e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,xf:a.xf});if(e instanceof Y)return e;V=[new Y5(CD(B)),new RG(e.layout),new Pl({u9:G.u9(B)})];h&&V.push(new Ty({}));return{wb:{slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:Nc(G, B,a.slotId,a.slotEntryTrigger),slotFulfillmentTriggers:dY(G,B,a.slotId,a.slotFulfillmentTriggers),slotExpirationTriggers:a.slotExpirationTriggers,xf:a.xf,clientMetadata:new VI(V),adSlotLoggingData:x},uu:e.uu}}; Nc=function(G,B,a,V){return G.vS.get().T1(CD(B))?new Uw(G.j,a):V}; dY=function(G,B,a,V){return G.vS.get().T1(CD(B))?[new AP(G.j,a)]:V}; kG=function(G,B,a){var V=zL(G.X.get(),"SLOT_TYPE_PLAYER_BYTES"),x=[new Lq(G.j,V)];G=[new Tm(G.j,V),new qa(G.j,a)];return{slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:x,slotExpirationTriggers:G,xf:"core"}}; mbX=function(G,B,a,V){B=ok(G,B,a,V);return B instanceof Y?B:kG(G,B,a)}; M9K=function(G,B,a,V,x,h){var e=zL(G.X.get(),"SLOT_TYPE_FORECASTING");B=ok(G,B,a,V);if(B instanceof Y)return B;V=[new Lq(G.j,e)];G=[new Tm(G.j,e),new qa(G.j,a)];return{slotId:e,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:V,slotExpirationTriggers:G,xf:"core",clientMetadata:new VI([new RG(h({slotId:e,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,xf:"core",slotEntryTrigger:B,slotFulfillmentTriggers:V,slotExpirationTriggers:G}))]),adSlotLoggingData:x}}; WDy=function(G,B,a,V,x){var h=!B.hideCueRangeMarker;switch(B.kind){case "AD_PLACEMENT_KIND_START":return new Ew(G.j,a);case "AD_PLACEMENT_KIND_MILLISECONDS":return G=$vH(B,V),G instanceof Y?G:x(G.C1,h);case "AD_PLACEMENT_KIND_END":return new bj(G.j,a,h);default:return new Y("Cannot construct entry trigger",{kind:B.kind})}}; euB=function(G,B,a,V,x){return WDy(G,B,a,V,function(h,e){return new xvB(G.j,a,h,e,x)})}; ok=function(G,B,a,V){return WDy(G,B,a,V,function(x,h){return new RV(G.j,a,x,h)})}; Mc=function(G,B,a,V,x,h,e){G=[new AP(G.j,B)];return{slotId:B,slotType:a,slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:G,slotExpirationTriggers:x,xf:"core",clientMetadata:new VI([new RG(e({slotId:B,slotType:a,slotPhysicalPosition:1,xf:"core",slotEntryTrigger:V,slotFulfillmentTriggers:G,slotExpirationTriggers:x}))]),adSlotLoggingData:h}}; Ga=function(G,B){g.r.call(this);this.vS=G;this.j=B;this.eventCount=0}; Bp=function(G,B,a,V){Ga.call(this,G,B);this.vS=G;this.WS=a;this.context=V}; aM=function(){this.j=new Map}; h2=function(G,B){var a=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=G;this.result=B.result;this.error=B.error;B.promise&&B.promise.then(function(V){VC(a,V)},function(V){xA(a,V)})}; w2=function(G){if(ek(G)){if(G instanceof h2)return G;if(Wp(G))return new h2("wait",{promise:G})}return new h2("done",{result:G})}; Kh=function(){return new h2("wait",{})}; lD=function(G){return new h2("fail",{error:G})}; kA=function(G){try{return w2(G())}catch(B){return lD(B)}}; d2=function(G,B){var a=Kh();G.onSuccess.push(function(V){try{var x=B(V);VC(a,x)}catch(h){xA(a,h)}}); G.onFailure.push(function(V){xA(a,V)}); Nz(G);return a}; Ch=function(G,B){var a=Kh();G.onSuccess.push(function(V){VC(a,V)}); G.onFailure.push(function(V){try{var x=B(V);VC(a,x)}catch(h){xA(a,h)}}); Nz(G);return a}; wVz=function(G,B){var a=Kh();G.onSuccess.push(function(V){try{B(),VC(a,V)}catch(x){xA(a,x)}}); G.onFailure.push(function(V){try{B(),xA(a,V)}catch(x){xA(a,x)}}); Nz(G)}; VC=function(G,B){if(ek(B)){if(Wp(B)){B.then(function(a){VC(G,a)},function(a){xA(G,a)}); return}if(B instanceof h2){d2(B,function(a){VC(G,a)}); Ch(B,function(a){xA(G,a)}); return}}G.currentState="done";G.result=B;Nz(G)}; xA=function(G,B){G.currentState="fail";G.error=B;Nz(G)}; Nz=function(G){if(G.currentState==="done"){var B=G.onSuccess;G.onSuccess=[];G.onFailure=[];B=g.m(B);for(var a=B.next();!a.done;a=B.next())a=a.value,a(G.result)}else if(G.currentState==="fail")for(B=G.onFailure,G.onSuccess=[],G.onFailure=[],B=g.m(B),a=B.next();!a.done;a=B.next())a=a.value,a(G.error)}; liz=function(G){return function(){return KDH(G.apply(this,g.Hz.apply(0,arguments)))}}; KDH=function(G){return kA(function(){return za(G,G.next())})}; za=function(G,B){return B.done?w2(B.value):Ch(d2(B.value.MU,function(a){return za(G,G.next(a))}),function(a){return za(G,G.throw(a))})}; kBc=function(G,B){if(G.length===0)return w2(NaN);var a=Kh(),V=G.length;G.forEach(function(x,h){wVz(w2(x),function(){a.currentState==="wait"&&(B!==void 0&&B(h)&&a.currentState==="wait"?a.resolve(h):(--V,V===0&&a.resolve(NaN)))})}); return a}; NaK=function(G){return G.map(function(B){return w2(B)})}; mT=function(G){var B=G.hours||0;var a=G.minutes||0,V=G.seconds||0;B=V+a*60+B*3600+(G.days||0)*86400+(G.weeks||0)*604800+(G.months||0)*2629800+(G.years||0)*31557600;B<=0?B={hours:0,minutes:0,seconds:0}:(G=B,B=Math.floor(G/3600),G%=3600,a=Math.floor(G/60),V=Math.floor(G%60),B={hours:B,minutes:a,seconds:V});var x=B.hours===void 0?0:B.hours;a=B.minutes===void 0?0:B.minutes;G=B.seconds===void 0?0:B.seconds;V=x>0;B=[];if(V){x=(new Intl.NumberFormat("en-u-nu-latn")).format(x);var h=["fr"],e="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); x="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(t2)?x.replace(",","\u00a0"):h.includes(t2)?x.replace(",","\u202f"):e.includes(t2)?x.replace(",","."):x;B.push(x)}V=V===void 0?!1:V;a=(["af","be","lt"].includes(t2)||V)&&a<10?dfB().format(a):(new Intl.NumberFormat("en-u-nu-latn")).format(a);B.push(a);a=dfB().format(G);B.push(a);a=":";"da fi id si sr sr-Latn".split(" ").includes(t2)&&(a=".");return B.join(a)}; dfB=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; CEX=function(G,B){var a,V;G=((a=G.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(V=a.videoAuthorizationToken)==null?void 0:V.credentialTransferTokens)||[];for(a=0;aB;G=a}else G=!1;return G}; vfV=function(G){G=G.split("");Sk.vF(G,26);Sk.BP(G,76);Sk.vF(G,13);Sk.o0(G,1);return G.join("")}; g.RM=function(G,B){return G.TV+"timedtext_video?ref=player&v="+B.videoId}; g.Df9=function(G){var B=this;this.videoData=G;G={};this.j=(G.c1a=function(){var a=[];if(g.vp.isInitialized()){var V="";B.videoData&&B.videoData.N4&&(V=B.videoData.N4+("&r1b="+B.videoData.clientPlaybackNonce));var x={};V=(x.atr_challenge=V,x);TG("bg_v",void 0,"player_att");(V=HFz(V))?(TG("bg_s",void 0,"player_att"),a.push("r1a="+V)):(TG("bg_e",void 0,"player_att"),a.push("r1c=2"))}else TG("bg_e",void 0,"player_att"),window.trayride||window.botguard?a.push("r1c=1"):a.push("r1c=4");a.push("r1d="+g.vp.getState()); return a.join("&")},G.c6a=function(a){return"r6a="+(Number(a.c)^KH())},G.c6b=function(a){return"r6b="+(Number(a.c)^Number(g.A0("CATSTAT",0)))},G); this.videoData&&this.videoData.N4?this.B3=ah(this.videoData.N4):this.B3={}}; g.SeH=function(G){if(G.videoData&&G.videoData.N4){for(var B=[G.videoData.N4],a=g.m(Object.keys(G.j)),V=a.next();!V.done;V=a.next())V=V.value,G.B3[V]&&G.j[V]&&(V=G.j[V](G.B3))&&B.push(V);return B.join("&")}return null}; g.Zk=function(G,B){fix(G,{BGl:g.kf(B.experiments,"bg_vm_reinit_threshold"),cspNonce:B.cspNonce,TV:B.TV||""})}; RuV=function(){var G=XMLHttpRequest.prototype.fetch;return!!G&&G.length===3}; r2=function(G){G=G===void 0?2592E3:G;if(G>0&&!(hRb()>(0,g.yT)()-G*1E3))return 0;G=g.SL("yt-player-quality");if(typeof G==="string"){if(G=g.Xa[G],G>0)return G}else if(G instanceof Object)return G.quality;return 0}; $A=function(){var G=g.SL("yt-player-proxima-pref");return G==null?null:G}; ZFV=function(){var G=g.SL("yt-player-quality");if(G instanceof Object&&G.quality&&G.previousQuality){if(G.quality>G.previousQuality)return 1;if(G.quality0&&B[0]?G.getAutoplayPolicy(B[0]):G.getAutoplayPolicy("mediaelement");if(QfH[a])return QfH[a]}}catch(V){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; s0=function(G){return G.wc||G.Ds||G.mutedAutoplay}; LDz=function(G,B){return s0(G)?B!==1&&B!==2&&B!==0?"AUTOPLAY_STATUS_UNAVAILABLE":G.jj?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; Tax=function(G,B,a){var V=B.U();G.thirdParty||(G.thirdParty={});V.ancestorOrigins&&(G.thirdParty.embeddedPlayerContext=Object.assign({},G.thirdParty.embeddedPlayerContext,{ancestorOrigins:V.ancestorOrigins}));V.S("embeds_enable_autoplay_and_visibility_signals")&&(V.Hh!=null&&(G.thirdParty.embeddedPlayerContext=Object.assign({},G.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(V.Hh)})),V.Ru&&(G.thirdParty.embeddedPlayerContext=Object.assign({},G.thirdParty.embeddedPlayerContext,{visibilityFractionSource:V.Ru})), G.thirdParty.embeddedPlayerContext=Object.assign({},G.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Ta(),autoplayIntended:s0(B),autoplayStatus:LDz(B,a)}))}; Jsb=function(G,B){Ar(G,2,B.jz,FX,3);Ar(G,3,B.pA,sfB,3);F9(G,4,B.onesieUstreamerConfig);F9(G,9,B.UC);Ar(G,10,B.jW,J2,3);Ar(G,15,B.reloadPlaybackParams,FDK,3)}; Yeg=function(G,B){Ar(G,1,B.formatId,A2,3);Ti(G,2,B.startTimeMs);Ti(G,3,B.durationMs);Ti(G,4,B.XO);Ti(G,5,B.Xh);Ar(G,9,B.wsX,AsB,3);Ar(G,11,B.f5L,YA,1);Ar(G,12,B.aK,YA,1)}; iFB=function(G,B){Jr(G,1,B.videoId);Ti(G,2,B.lmt)}; AsB=function(G,B){if(B.HW)for(var a=0;a>31));Ti(G,16,B.bhx);Ti(G,17,B.detailedNetworkType);Ti(G,18,B.im);Ti(G,19,B.ZM);Ti(G,21,B.XU);Ti(G,23,B.Fb);Ti(G,28,B.mG);Ti(G,29,B.Y$n);Ti(G,34,B.visibility);a=B.playbackRate;if(a!==void 0){var V=new ArrayBuffer(4);(new Float32Array(V))[0]=a;a=(new Uint32Array(V))[0];if(a!==void 0)for(LH(G,285),Qz(G,4),V=0;V<4;)G.view.setUint8(G.pos,a&255),a>>=8,G.pos+=1,V+=1}Ti(G,36,B.Fk); Ar(G,38,B.mediaCapabilities,MQA,3);Ti(G,39,B.NE1);Ti(G,40,B.AT);Ti(G,44,B.playerState);sj(G,46,B.N5);Ti(G,48,B.Fv);Ti(G,50,B.OI);Ti(G,51,B.R6);Ti(G,54,B.iX);sj(G,56,B.YfX);Ti(G,57,B.AD);sj(G,58,B.Lc);Ti(G,59,B.W0);Ti(G,60,B.fg);sj(G,61,B.isPrefetch);Ti(G,62,B.Dz);F9(G,63,B.sabrLicenseConstraint);Ti(G,64,B.LH1);Ti(G,66,B.TOr);Ti(G,67,B.zin);Ti(G,68,B.lff);Jr(G,69,B.audioTrackId);sj(G,71,B.pZ);Ar(G,72,B.bnf,of9,1);Ti(G,74,B.m0);Ti(G,75,B.jp)}; MQA=function(G,B){if(B.videoFormatCapabilities)for(var a=0;a>31));Jr(G,2,B.message)}; wjX=function(G,B){Ti(G,1,B.clientState);Ar(G,2,B.CqJ,e8A,1)}; h8X=function(G,B){F9(G,1,B.jyH);Ar(G,2,B.mqf,WbX,3);Ar(G,3,B.coldStartInfo,wjX,3)}; xuY=function(G,B){Ti(G,1,B.type);F9(G,2,B.value)}; VwX=function(G,B){Jr(G,1,B.hl);Jr(G,12,B.deviceMake);Jr(G,13,B.deviceModel);Ti(G,16,B.clientName);Jr(G,17,B.clientVersion);Jr(G,18,B.osName);Jr(G,19,B.osVersion)}; KbA=function(G,B){Jr(G,1,B.name);Jr(G,2,B.value)}; lRy=function(G,B){Jr(G,1,B.url);if(B.w2)for(var a=0;a1&&(this.B=G[1]==="2")}; BU=function(G,B,a,V,x){this.X=G;this.j=B;this.C=a;this.reason=V;this.NB=x===void 0?0:x}; g.a1=function(G,B,a,V){return new BU(g.Xa[G]||0,g.Xa[B]||0,a,V)}; xh=function(G){if(Vy&&G.NB)return!1;var B=g.Xa.auto;return G.X===B&&G.j===B}; ea=function(G){return hq[G.j||G.X]||"auto"}; Yfg=function(G,B){B=g.Xa[B];return G.X<=B&&(!G.j||G.j>=B)}; WU=function(G){return"["+G.X+"-"+G.j+", override: "+(G.C+", reason: "+G.reason+"]")}; wf=function(G,B,a){this.videoInfos=G;this.j=B;this.audioTracks=[];if(this.j){G=new Set;a==null||a({ainfolen:this.j.length});B=g.m(this.j);for(var V=B.next();!V.done;V=B.next())if(V=V.value,!V.VW||G.has(V.VW.id)){var x=void 0,h=void 0,e=void 0;(e=a)==null||e({atkerr:!!V.VW,itag:V.itag,xtag:V.j,lang:((x=V.VW)==null?void 0:x.name)||"",langid:((h=V.VW)==null?void 0:h.id)||""})}else x=new g.GO(V.id,V.VW),G.add(V.VW.id),this.audioTracks.push(x);a==null||a({atklen:this.audioTracks.length})}}; KT=function(){g.r.apply(this,arguments);this.j=null}; Mwc=function(G,B,a,V,x,h,e){if(G.j)return G.j;var w={},K=new Set,l={};if(lH(V)){for(var k in V.j)V.j.hasOwnProperty(k)&&(G=V.j[k],l[G.info.PS]=[G.info]);return l}k=ify(B,V,w);h&&x({aftsrt:kh(k)});for(var N={},d=g.m(Object.keys(k)),C=d.next();!C.done;C=d.next()){C=C.value;for(var z=g.m(k[C]),p=z.next();!p.done;p=z.next()){p=p.value;var O=p.itag,b=void 0,c=C+"_"+(((b=p.video)==null?void 0:b.fps)||0);N.hasOwnProperty(c)?N[c]===!0?l[C].push(p):w[O]=N[c]:(b=NF(B,p,a,V.isLive,K),b!==!0?(e.add(C),w[O]=b, b==="disablevp9hfr"&&(N[c]="disablevp9hfr")):(l[C]=l[C]||[],l[C].push(p),N[c]=!0))}}h&&x({bfflt:kh(l)});for(var H in l)l.hasOwnProperty(H)&&(V=H,l[V]&&l[V][0].rG()&&(l[V]=l[V],l[V]=Phb(B,l[V],w),l[V]=ouB(l[V],w)));h&&Object.keys(w).length>0&&x({rjr:b5(w)});B=g.m(K.values());for(V=B.next();!V.done;V=B.next())(V=a.X.get(V.value))&&--V.sH;h&&x({aftflt:kh(l)});G.j=g.m3(l,function(R){return!!R.length}); return G.j}; Be9=function(G,B,a,V,x,h,e,w){w=w===void 0?!1:w;if(B.w7&&e&&e.length>1&&!(B.W0>0||B.V)){for(var K=B.X||!!x,l=K&&B.wO?h:void 0,k=ify(B,V),N=[],d=[],C={},z=0;z0&&d&&x&&(k=[e,a],O=x.concat(d).filter(function(b){return b})); if(O.length&&!B.Lc){zO(O,k);if(K){K=[];B=g.m(O);for(V=B.next();!V.done;V=B.next())K.push(V.value.itag);h({hbdfmt:K.join(".")})}return Dd(new wf(O,G,l))}O=lh_(B);O=g.JJ(O,w);if(!O){if(N[e])return h=N[e],zO(h),Dd(new wf(h,G,l));K&&h({novideo:1});return vh()}B.fd&&(O==="1"||O==="1h")&&N[a]&&(e=tq(N[O]),k=tq(N[a]),k>e?O=a:k===e&&k4B(N[a])&&(O=a));O==="9"&&N.h&&tq(N.h)>tq(N["9"])&&(O="h");B.fh&&V.isLive&&O==="("&&N.H&&tq(N["("])<1440&&(O="H");K&&h({vfmly:mZ(O)});B=N[O];if(!B.length)return K&&h({novfmly:mZ(O)}), vh();zO(B);return Dd(new wf(B,G,l))}; VWx=function(G,B){var a=!(!G.m&&!G.M),V=!(!G.mac3&&!G.MAC3),x=!(!G.meac3&&!G.MEAC3);G=!(!G.i&&!G.I);B.R4=G;return a||V||x||G}; k4B=function(G){G=g.m(G);for(var B=G.next();!B.done;B=G.next())if(B=B.value,B.itag&&NeB.has(B.itag))return!0;return!1}; mZ=function(G){switch(G){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return G}}; kh=function(G){var B=[],a;for(a in G)if(G.hasOwnProperty(a)){var V=a;B.push(mZ(V));V=g.m(G[V]);for(var x=V.next();!x.done;x=V.next())B.push(x.value.itag)}return B.join(".")}; ahB=function(G,B,a,V,x,h){var e={},w={};g.t$(B,function(K,l){K=K.filter(function(k){var N=k.itag;if(!k.Ji)return w[N]="noenc",!1;if(h.QW&&k.PS==="(h"&&h.Yf)return w[N]="lichdr",!1;if(!G.C&&k.PS==="1e")return w[N]="noav1enc",!1;if(k.PS==="("||k.PS==="(h"){if(G.B&&a&&a.flavor==="widevine"){var d=k.mimeType+"; experimental=allowed";(d=!!k.Ji[a.flavor]&&!!a.j[d])||(w[N]=k.Ji[a.flavor]?"unspt":"noflv");return d}if(!I1(G,gf.CRYPTOBLOCKFORMAT)&&!G.Qb||G.GH)return w[N]=G.GH?"disvp":"vpsub",!1}return a&&k.Ji[a.flavor]&& a.j[k.mimeType]?!0:(w[N]=a?k.Ji[a.flavor]?"unspt":"noflv":"nosys",!1)}); K.length&&(e[l]=K)}); V&&Object.entries(w).length&&x({rjr:b5(w)});return e}; ouB=function(G,B){var a=c1(G,function(V,x){return x.video.fps>32?Math.min(V,x.video.width):V},Infinity); a32||V.video.widthG.L)return"max"+G.L;if(G.Vb&&B.PS==="h"&&B.video&&B.video.j>1080)return"blkhigh264";if(B.PS==="(h"&&!a.W)return"enchdr";if((V===void 0?0:V)&&i5(B)&&!G.SJ)return"blk51live";if((B.PS==="MAC3"||B.PS==="mac3")&&!G.G)return"blkac3";if((B.PS==="MEAC3"||B.PS==="meac3")&&!G.B)return"blkeac3";if(B.PS==="M"||B.PS==="m")return"blkaac51";if((B.PS==="so"|| B.PS==="sa")&&!G.XJ)return"blkamb";if(!G.QW&&OYb(B)&&(!a.C||B.PS!=="1e"))return"cbc";if(!a.C&&OYb(B)&&B.PS==="1e")return"cbcav1";if((B.PS==="i"||B.PS==="I")&&!G.Md)return"blkiamf";if(B.itag==="774"&&!G.GH)return"blkouh";var h,e;if(G.Ur&&(B.PS==="1"||B.PS==="1h"||a.C&&B.PS==="1e")&&((h=B.video)==null?0:h.j)&&((e=B.video)==null?void 0:e.j)>G.Ur)return"av1cap";if((V=a.X.get(B.PS))&&V.sH>0)return x.add(B.PS),"byerr";var w;if((w=B.video)==null?0:w.fps>32){if(!a.LN&&!I1(a,gf.FRAMERATE))return"capHfr";if(G.MB&& B.video.j>=4320)return"blk8khfr";if(sB(B)&&G.PD&&B.Ji&&B.video.j>=1440)return"disablevp9hfr"}if(G.NB&&B.NB>G.NB)return"ratecap";G=dyY(a,B);return G!==!0?G:!0}; zO=function(G,B){B=B===void 0?[]:B;g.wK(G,function(a,V){var x=V.NB-a.NB;if(!a.rG()||!V.rG())return x;var h=V.video.height*V.video.width-a.video.height*a.video.width;!h&&B&&B.length>0&&(a=B.indexOf(a.PS)+1,V=B.indexOf(V.PS)+1,h=a===0||V===0?V||-1:a-V);h||(h=x);return h})}; g.pT=function(G,B){this.X=G;this.G=B===void 0?!1:B;this.C=this.path=this.scheme="";this.j={};this.url=""}; Oi=function(G){Ui(G);return G.C}; Ei=function(G){return G.X?G.X.startsWith("local"):G.scheme==="local"}; C5_=function(G){Ui(G);return g.gU(G.j,function(B){return B!==null})}; bH=function(G){Ui(G);var B=decodeURIComponent(G.get("mn")||"").split(",");return G.path==="/videoplayback"&&B.length>1&&!!B[1]}; yy=function(G,B){B=B===void 0?!1:B;Ui(G);if(G.path!=="/videoplayback"){var a=G.clone();a.set("playerfallback","1");return a}var V=G.Ex();a=new g.lA(V);var x=G.get("fvip"),h=decodeURIComponent(G.get("mn")||"").split(",");if(x&&h&&h.length>1&&h[1])return V=a.j,G=V.replace(/^[^.]*/,""),g.No(a,(V.indexOf("rr")===0?"rr":"r")+x+"---"+h[1]+G),a=new g.pT(a.toString()),a.set("fallback_count","1"),a;if(B)return a=G.clone(),a.set("fallback_count","1"),a;x=a.j.match("\\.a1\\.googlevideo\\.com$");a.j.match("\\.googlevideo\\.com$")? (g.No(a,"redirector.googlevideo.com"),V=a.toString()):a.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.No(a,"www.youtube.com"),V=a.toString()):(a=NIb(V),Mf(a)&&(V=a));a=new g.pT(V);a.set("cmo=pf","1");x&&a.set("cmo=td","a1.googlevideo.com");return a}; Ui=function(G){if(G.X){if(!Mf(G.X)&&!G.X.startsWith("local"))throw new g.FI("Untrusted URL",G.X);var B=g.gj(G.X);G.scheme=B.B;G.C=B.j+(B.C!=null?":"+B.C:"");var a=B.X;if(a.startsWith("/videoplayback"))G.path="/videoplayback",a=a.slice(14);else if(a.startsWith("/initplayback"))G.path="/initplayback",a=a.slice(13);else if(a.startsWith("/api/manifest")){var V=a.indexOf("/",12),x=a.indexOf("/",V+1);V>0&&x>0?(G.path=a.slice(0,x),a=a.slice(x+1)):(G.path=a,a="")}else G.path=a,a="";V=G.j;G.j=zMB(a);Object.assign(G.j, tWA(B.G.toString()));Object.assign(G.j,V);G.j.file==="index.m3u8"&&(delete G.j.file,G.path+="/file/index.m3u8");G.X="";G.url="";G.G&&(B=JcK(),Ui(G),a=G.j[B]||null)&&(a=myX[0](a),G.set(B,a),G.G||JcK(""))}}; Ih9=function(G){Ui(G);var B=G.scheme+(G.scheme?"://":"//")+G.C+G.path;if(C5_(G)){var a=[];g.t$(G.j,function(V,x){V!==null&&a.push(x+"="+V)}); B+="?"+a.join("&")}return B}; zMB=function(G){G=G.split("/");var B=0;G[0]||B++;for(var a={};B0?g2b(B,V.slice(0,x),V.slice(x+1)):V&&(B[V]="")}return B}; g2b=function(G,B,a){if(B==="cmo"){var V;(V=a.indexOf("="))>=0?(B="cmo="+a.slice(0,V),a=a.slice(V+1)):(V=a.indexOf("%3D"))>=0&&(B="cmo="+a.slice(0,V),a=a.slice(V+3))}G[B]=a}; cU=function(G){var B=g.u(G,pX_)||G.signatureCipher;G={IT:!1,mS:"",Va:"",s:""};if(!B)return G;B=ah(B);G.IT=!0;G.mS=B.url;G.Va=B.sp;G.s=B.s;return G}; nT=function(G,B,a,V,x,h,e,w,K){this.AX=G;this.startTime=B;this.duration=a;this.ingestionTime=V;this.sourceURL=x;this.sA=K;this.endTime=B+a;this.j=e||0;this.range=h||null;this.pending=w||!1;this.sA=K||null}; g.fT=function(){this.segments=[];this.j=null;this.X=!0;this.C=""}; UyK=function(G,B){if(B>G.MQ())G.segments=[];else{var a=Fh(G.segments,function(V){return V.AX>=B},G); a>0&&G.segments.splice(0,a)}}; HU=function(G,B,a,V,x){x=x===void 0?!1:x;this.data=G;this.offset=B;this.size=a;this.type=V;this.j=(this.X=x)?0:8;this.dataOffset=this.offset+this.j}; vU=function(G){var B=G.data.getUint8(G.offset+G.j);G.j+=1;return B}; D_=function(G){var B=G.data.getUint16(G.offset+G.j);G.j+=2;return B}; Sa=function(G){var B=G.data.getInt32(G.offset+G.j);G.j+=4;return B}; R1=function(G){var B=G.data.getUint32(G.offset+G.j);G.j+=4;return B}; Z_=function(G){var B=G.data;var a=G.offset+G.j;B=B.getUint32(a)*4294967296+B.getUint32(a+4);G.j+=8;return B}; rf=function(G,B){B=B===void 0?NaN:B;if(isNaN(B))var a=G.size;else for(a=G.j;a1?Math.ceil(x*B):Math.floor(x*B))}G.skip(1);a=vU(G)<<16|D_(G);if(a&256){V=a&1;x=a&4;var h=a&512,e=a&1024,w=a&2048;a=R1(G);V&&G.skip(4);x&&G.skip(4);V=(h?4:0)+(e?4:0)+(w?4:0);for(x=0;x1?Math.ceil(e*B):Math.floor(e*B)),G.skip(V)}}}; F$=function(G){G=new DataView(G.buffer,G.byteOffset,G.byteLength);return(G=g.TO(G,0,1836476516))?g.si(G):NaN}; Dyg=function(G){var B=g.TO(G,0,1937011556);if(!B)return null;B=Jq(G,B.dataOffset+8,1635148593)||Jq(G,B.dataOffset+8,1635135537);if(!B)return null;var a=Jq(G,B.dataOffset+78,1936995172),V=Jq(G,B.dataOffset+78,1937126244);if(!V)return null;B=null;if(a)switch(a.skip(4),vU(a)){default:B=0;break;case 1:B=2;break;case 2:B=1;break;case 3:B=255}var x=a=null,h=null;if(V=Jq(G,V.dataOffset,1886547818)){var e=Jq(G,V.dataOffset,1886546020),w=Jq(G,V.dataOffset,2037673328);if(!w&&(w=Jq(G,V.dataOffset,1836279920), !w))return null;e&&(e.skip(4),a=Sa(e)/65536,h=Sa(e)/65536,x=Sa(e)/65536);G=O1g(w);G=new DataView(G.buffer,G.byteOffset+8,G.byteLength-8);return new H1y(B,a,h,x,G)}return null}; Jq=function(G,B,a){for(;Aq(G,B);){var V=Yh(G,B);if(V.type===a)return V;B+=V.size}return null}; g.TO=function(G,B,a){for(;Aq(G,B);){var V=Yh(G,B);if(V.type===a)return V;B=iH(V.type)?B+8:B+V.size}return null}; g.PU=function(G){if(G.data.getUint8(G.dataOffset)){var B=G.data;G=G.dataOffset+4;B=B.getUint32(G)*4294967296+B.getUint32(G+4)}else B=G.data.getUint32(G.dataOffset+4);return B}; Yh=function(G,B){var a=G.getUint32(B),V=G.getUint32(B+4);return new HU(G,B,a,V)}; g.si=function(G){var B=G.data.getUint8(G.dataOffset)?20:12;return G.data.getUint32(G.dataOffset+B)}; SBB=function(G){G=new HU(G.data,G.offset,G.size,G.type,G.X);var B=vU(G);G.skip(7);var a=R1(G);if(B===0){B=R1(G);var V=R1(G)}else B=Z_(G),V=Z_(G);G.skip(2);for(var x=D_(G),h=[],e=[],w=0;w122)return!1}return!0}; iH=function(G){return G===1701082227||G===1836019558||G===1836019574||G===1835297121||G===1835626086||G===1937007212||G===1953653094||G===1953653099||G===1836475768}; RMK=function(G){G.skip(4);return{NGr:rf(G,0),value:rf(G,0),timescale:R1(G),TLr:R1(G),r7J:R1(G),id:R1(G),fB:rf(G),offset:G.offset}}; g.Z1b=function(G){var B=Jq(G,0,1701671783);if(!B)return null;var a=RMK(B),V=a.NGr;a=LT(a.fB);if(G=Jq(G,B.offset+B.size,1701671783))if(G=RMK(G),G=LT(G.fB),a&&G){B=g.m(Object.keys(G));for(var x=B.next();!x.done;x=B.next())x=x.value,a[x]=G[x]}return a?new uH(a,V):null}; o1=function(G,B){for(var a=Jq(G,0,B);a;){var V=a;V.type=1936419184;V.data.setUint32(V.offset+4,1936419184);a=Jq(G,a.offset+a.size,B)}}; g.MF=function(G,B){for(var a=0,V=[];Aq(G,a);){var x=Yh(G,a);x.type===B&&V.push(x);a=iH(x.type)?a+8:a+x.size}return V}; rXy=function(G,B){var a=g.TO(G,0,1937011556),V=g.TO(G,0,1953654136);if(!a||!V||G.getUint32(a.offset+12)>=2)return null;var x=new DataView(B.buffer,B.byteOffset,B.length),h=g.TO(x,0,1937011556);if(!h)return null;B=x.getUint32(h.dataOffset+8);V=x.getUint32(h.dataOffset+12);if(V!==1701733217&&V!==1701733238)return null;V=new E2B(G.byteLength+B);$h(V,G,0,a.offset+12);V.data.setInt32(V.offset,2);V.offset+=4;$h(V,G,a.offset+16,a.size-16);$h(V,x,x.byteOffset+h.dataOffset+8,B);$h(V,G,a.offset+a.size,G.byteLength- (a.offset+a.size));a=g.m([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(x=a.next();!x.done;x=a.next())x=g.TO(G,0,x.value),V.data.setUint32(x.offset,x.size+B);G=g.TO(V.data,0,1953654136);V.data.setUint32(G.offset+16,2);return V.data}; $y9=function(G){var B=g.TO(G,0,1937011556);if(!B)return null;var a=G.getUint32(B.dataOffset+12);if(a!==1701733217&&a!==1701733238)return null;B=Jq(G,B.offset+24+(a===1701733217?28:78),1936289382);if(!B)return null;a=Jq(G,B.offset+8,1935894637);if(!a||G.getUint32(a.offset+12)!==1667392371)return null;B=Jq(G,B.offset+8,1935894633);if(!B)return null;B=Jq(G,B.offset+8,1952804451);if(!B)return null;a=new Uint8Array(16);for(var V=0;V<16;V++)a[V]=G.getInt8(B.offset+16+V);return a}; Gc=function(G,B){this.j=G;this.pos=0;this.start=B||0}; Bs=function(G){return G.pos>=G.j.byteLength}; eE=function(G,B,a){var V=new Gc(a);if(!a7(V,G))return!1;V=VU(V);if(!xp(V,B))return!1;for(G=0;B;)B>>>=8,G++;B=V.start+V.pos;var x=hB(V,!0);V=G+(V.start+V.pos-B)+x;V=V>9?XXc(V-9,8):XXc(V-2,1);G=B-G;a.setUint8(G++,236);for(B=0;Ba;x++)a=a*256+kp(G),V*=128;return B?a-V:a}; wV=function(G){var B=hB(G,!0);G.pos+=B}; QpB=function(G){if(!xp(G,440786851,!0))return null;var B=G.pos;hB(G,!1);var a=hB(G,!0)+G.pos-B;G.pos=B+a;if(!xp(G,408125543,!1))return null;hB(G,!0);if(!xp(G,357149030,!0))return null;var V=G.pos;hB(G,!1);var x=hB(G,!0)+G.pos-V;G.pos=V+x;if(!xp(G,374648427,!0))return null;var h=G.pos;hB(G,!1);var e=hB(G,!0)+G.pos-h,w=new Uint8Array(a+12+x+e),K=new DataView(w.buffer);w.set(new Uint8Array(G.j.buffer,G.j.byteOffset+B,a));K.setUint32(a,408125543);K.setUint32(a+4,33554431);K.setUint32(a+8,4294967295); w.set(new Uint8Array(G.j.buffer,G.j.byteOffset+V,x),a+12);w.set(new Uint8Array(G.j.buffer,G.j.byteOffset+h,e),a+12+x);return w}; NC=function(G){var B=G.pos;G.pos=0;var a=1E6;a7(G,[408125543,357149030,2807729])&&(a=Ws(G));G.pos=B;return a}; L2X=function(G,B){var a=G.pos;G.pos=0;if(G.j.getUint8(G.pos)!==160&&!dV(G)||!xp(G,160))return G.pos=a,NaN;hB(G,!0);var V=G.pos;if(!xp(G,161))return G.pos=a,NaN;hB(G,!0);kp(G);var x=kp(G)<<8|kp(G);G.pos=V;if(!xp(G,155))return G.pos=a,NaN;V=Ws(G);G.pos=a;return(x+V)*B/1E9}; dV=function(G){if(!TeK(G)||!xp(G,524531317))return!1;hB(G,!0);return!0}; TeK=function(G){if(G.Cc()){if(!xp(G,408125543))return!1;hB(G,!0)}return!0}; a7=function(G,B){for(var a=0;a0){var V=tWA(B.substring(a+1));g.t$(V,function(x,h){this.set(h,x)},G); B=B.substring(0,a)}B=zMB(B);g.t$(B,function(x,h){this.set(h,x)},G)}; F2z=function(G){var B=G.Fi.Ex(),a=[];g.t$(G.j,function(x,h){a.push(h+"="+x)}); if(!a.length)return B;var V=a.join("&");G=C5_(G.Fi)?"&":"?";return B+G+V}; zc=function(G,B){var a=new g.pT(B);(B=a.get("req_id"))&&G.set("req_id",B);g.t$(G.j,function(V,x){a.set(x,null)}); return a}; JX9=function(){this.G=this.C=this.j=this.timedOut=this.started=this.B=this.X=0}; tB=function(G){G.B=(0,g.yT)();G.started=0;G.timedOut=0;G.j=0}; mf=function(G,B){var a=G.started+G.j*4;B&&(a+=G.C);a=Math.max(0,a-3);return Math.pow(1.6,a)}; I7=function(G,B){G[B]||(G[B]=new JX9);return G[B]}; gV=function(G){this.Y=this.W=this.B=this.X=0;this.V=this.L=!1;this.j=G;this.C=G.clone()}; AXx=function(G,B,a){if(Ei(G.j))return!1;var V=I7(a,Oi(G.j));if(V.timedOut<1&&V.j<1)return!1;V=V.timedOut+V.j;G=pE(G,B);a=I7(a,Oi(G));return a.timedOut+a.j+01?B=B.Bh:(a=I7(a,OY(G,G.r_(B,a),B)),B=Math.max(G.B,a.timedOut)+B.jj*(G.X-G.B)+.25*G.W,B=B>3?1E3*Math.pow(1.6,B-3):0);return B===0?!0:G.Y+B<(0,g.yT)()}; YBY=function(G,B,a){G.j.set(B,a);G.C.set(B,a);G.G&&G.G.set(B,a)}; i1g=function(G,B,a,V,x){++G.X;B&&++G.B;Oi(a.Fi).startsWith("redirector.")&&(G.j=G.C.clone(),delete G.G,V.Ej&&delete x[Oi(G.j)])}; jE=function(G){return G?(G.itag||"")+";"+(G.lmt||0)+";"+(G.xtags||""):""}; bM=function(G,B,a,V){this.initRange=a;this.indexRange=V;this.j=null;this.C=!1;this.L=0;this.G=this.ip=this.X=null;this.info=B;this.kD=new gV(G)}; yU=function(G,B){this.start=G;this.end=B;this.length=B-G+1}; cs=function(G){G=G.split("-");var B=Number(G[0]),a=Number(G[1]);if(!isNaN(B)&&!isNaN(a)&&G.length===2&&(G=new yU(B,a),!isNaN(G.start)&&!isNaN(G.end)&&!isNaN(G.length)&&G.length>0))return G}; nE=function(G,B){return new yU(G,G+B-1)}; P5x=function(G){return G.end==null?{start:String(G.start)}:{start:String(G.start),end:String(G.end)}}; fE=function(G){if(!G)return new yU(0,0);var B=Number(G.start);G=Number(G.end);if(!isNaN(B)&&!isNaN(G)&&(B=new yU(B,G),B.length>0))return B}; Hs=function(G,B,a,V,x,h,e,w,K,l,k,N){V=V===void 0?"":V;this.type=G;this.j=B;this.range=a;this.source=V;this.FQ=k;this.clipId=N===void 0?"":N;this.W=[];this.B="";this.AX=-1;this.V=this.Y=0;this.B=V;this.AX=x>=0?x:-1;this.startTime=h||0;this.duration=e||0;this.X=w||0;this.C=K>=0?K:this.range?this.range.length:NaN;this.G=this.range?this.X+this.C===this.range.length:l===void 0?!!this.C:l;this.range?(this.Sn=this.startTime+this.duration*this.X/this.range.length,this.L=this.duration*this.C/this.range.length, this.K3=this.Sn+this.L):o2b(this)}; o2b=function(G){G.Sn=G.startTime;G.L=G.duration;G.K3=G.Sn+G.L}; MWA=function(G,B,a){var V=!(!B||B.j!==G.j||B.type!==G.type||B.AX!==G.AX);return a?V&&!!B&&(G.range&&B.range?B.range.end===G.range.end:B.range===G.range)&&B.X+B.C===G.X+G.C:V}; vs=function(G){return G.type===1||G.type===2}; Du=function(G){return G.type===3||G.type===6}; SE=function(G,B){return G.j===B.j?G.range&&B.range?G.range.start+G.X+G.C===B.range.start+B.X:G.AX===B.AX?G.X+G.C===B.X:G.AX+1===B.AX&&B.X===0&&G.G:!1}; BZc=function(G,B){return G.AX!==B.AX&&B.AX!==G.AX+1||G.type!==B.type?!1:SE(G,B)?!0:Math.abs(G.Sn-B.Sn)<=1E-6&&G.AX===B.AX?!1:G2H(G,B)}; G2H=function(G,B){return SE(G,B)||Math.abs(G.K3-B.Sn)<=1E-6||G.AX+1===B.AX&&B.X===0&&G.G?!0:!1}; R7=function(G){return G.AX+(G.G?1:0)}; aOH=function(G){G.length===1||g.yN(G,function(a){return!!a.range}); for(var B=1;B=B.range.start+B.X&&G.range.start+G.X+G.C<=B.range.start+B.X+B.C:G.AX===B.AX&&G.X>=B.X&&(G.X+G.C<=B.X+B.C||B.G)}; Kq_=function(G,B){return G.j!==B.j?!1:G.type===4&&B.type===3&&G.j.tv()?(G=G.j.sX(G),bL(G,function(a){return Kq_(a,B)})):G.AX===B.AX&&!!B.C&&B.X+B.C>G.X&&B.X+B.C<=G.X+G.C}; rV=function(G,B){var a=B.AX;G.B="updateWithSegmentInfo";G.AX=a;if(G.startTime!==B.startTime||G.duration!==B.duration)G.startTime=B.startTime+G.Y,G.duration=B.duration,o2b(G)}; $p=function(G,B){var a=this;this.nN=G;this.G=this.j=null;this.B=this.hA=NaN;this.r_=this.requestId=null;this.vC={G9r:function(){return a.range}}; this.kD=G[0].j.kD;this.X=B||"";this.nN[0].range&&this.nN[0].C>0&&(VgY(G)?(this.range=aOH(G),this.C=this.range.length):(this.range=this.nN[this.nN.length-1].range,this.C=xZb(G)))}; X3=function(G){return!vs(G.nN[G.nN.length-1])}; qC=function(G){return G.nN[G.nN.length-1].type===4}; g.uM=function(G,B,a){a=G.r_===null?G.kD.r_(B,a,G.nN[0].type):G.r_;if(G.j){B=a?yy(G.j,B.jd):G.j;var V=new CE(B);V.get("alr")||V.set("alr","yes");G.X&&spB(V,G.X)}else/http[s]?:\/\//.test(G.X)?V=new CE(new g.pT(G.X)):(V=UY(G.kD,a,B),G.X&&spB(V,G.X));(B=G.range)?V.set("range",B.toString()):G.nN[0].j.MM()&&G.nN.length===1&&G.nN[0].X&&V.set("range",G.nN[0].X+"-");G.requestId&&V.set("req_id",G.requestId);isNaN(G.hA)||V.set("headm",G.hA.toString());isNaN(G.B)||V.set("mffa",G.B+"ms");G.urlParams&&g.t$(G.urlParams, function(x,h){V.set(h,x)}); return V}; lOX=function(G){if(G.range)return G.C;G=G.nN[0];return Math.round(G.L*G.j.info.NB)}; k2A=function(G,B){return Math.max(0,G.nN[0].Sn-B)}; QU=function(G,B,a,V,x,h){h=h===void 0?0:h;bM.call(this,G,B,V,void 0);this.B=a;this.zm=h;this.index=x||new g.fT}; NZg=function(G,B,a,V,x){this.AX=G;this.startSecs=B;this.YF=a;this.j=V||NaN;this.X=x||NaN}; LE=function(G,B,a){for(;G;G=G.parentNode)if(G.attributes&&(!a||G.nodeName===a)){var V=G.getAttribute(B);if(V)return V}return""}; Tc=function(G,B){for(;G;G=G.parentNode){var a=G.getElementsByTagName(B);if(a.length>0)return a[0]}return null}; dZH=function(G){if(!G)return 0;var B=G.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return B?(Number(B[2])|0)*3600+(Number(B[4])|0)*60+(Number(B[6])|0):Number(G)|0}; CVz=function(G){return G.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?G+"Z":G}; sY=function(){this.j=[];this.X=null;this.L=0;this.C=[];this.B=!1;this.W="";this.G=-1}; z7B=function(G){var B=G.C;G.C=[];return B}; tgc=function(){this.G=[];this.j=null;this.X={};this.C={}}; pZA=function(G,B){var a=[];B=Array.from(B.getElementsByTagName("SegmentTimeline"));B=g.m(B);for(var V=B.next();!V.done;V=B.next()){V=V.value;var x=V.parentNode.parentNode,h=null;x.nodeName==="Period"?h=mZK(G):x.nodeName==="AdaptationSet"?(x=x.getAttribute("id")||x.getAttribute("mimetype")||"",h=IOA(G,x)):x.nodeName==="Representation"&&(x=x.getAttribute("id")||"",h=gbB(G,x));if(h==null)return;h.update(V);g.BK(a,z7B(h))}g.BK(G.G,a);Vfg(G.G,function(e){return e.startSecs*1E3+e.j})}; UZy=function(G){G.j&&(G.j.j=[]);g.t$(G.X,function(B){B.j=[]}); g.t$(G.C,function(B){B.j=[]})}; mZK=function(G){G.j||(G.j=new sY);return G.j}; IOA=function(G,B){G.X[B]||(G.X[B]=new sY);return G.X[B]}; gbB=function(G,B){G.C[B]||(G.C[B]=new sY);return G.C[B]}; JB=function(G){var B=G===void 0?{}:G;G=B.zm===void 0?0:B.zm;var a=B.uF===void 0?!1:B.uF;var V=B.XT===void 0?0:B.XT;var x=B.Qg===void 0?0:B.Qg;var h=B.SK===void 0?Infinity:B.SK;var e=B.qb===void 0?0:B.qb;var w=B.Ai===void 0?!1:B.Ai;B=B.Zp===void 0?!1:B.Zp;g.fT.call(this);this.Ua=this.M7=-1;this.EA=G;this.XT=V;this.uF=a;this.Qg=x;this.SK=h;this.qb=e;((this.Ai=w)||isFinite(h)&&this.SK>0)&&a&&F3&&(this.X=!1,this.C="postLive");this.Zp=B}; AB=function(G,B){return WK(G.segments,function(a){return B-a.AX})}; Yp=function(G,B,a){a=a===void 0?{}:a;QU.call(this,G,B,"",void 0,void 0,a.zm||0);this.index=new JB(a)}; iM=function(G,B,a){bM.call(this,G,B);this.B=a;G=this.index=new g.fT;G.X=!1;G.C="d"}; OeY=function(G,B,a){var V=G.index.MA(B),x=G.index.getStartTime(B),h=G.index.getDuration(B);a?h=a=0:a=G.info.NB*h;return new $p([new Hs(3,G,void 0,"otfCreateRequestInfoForSegment",B,x,h,0,a)],V)}; EbB=function(G,B){if(!G.index.isLoaded()){var a=[],V=B.G;B=B.B.split(",").filter(function(k){return k.length>0}); for(var x=0,h=0,e=0,w=/^(\d+)/,K=/r=(\d+)/,l=0;l0&&(B-=G.timestampOffset);var a=g.MC(G)+B;be_(G,a);G.timestampOffset=B}; be_=function(G,B){g.PX(G.info.j.info)||G.info.j.info.C3();G.C=B;if(g.PX(G.info.j.info)){var a=G.k_();G=G.info.j.j;for(var V=NaN,x=NaN,h=0;Aq(a,h);){var e=Yh(a,h);isNaN(V)&&(e.type===1936286840?V=e.data.getUint32(e.dataOffset+8):e.type===1836476516&&(V=g.si(e)));if(e.type===1952867444){!V&&G&&(V=F$(G));var w=g.PU(e);isNaN(x)&&(x=Math.round(B*V)-w);var K=e;w+=x;if(K.data.getUint8(K.dataOffset)){var l=K.data;K=K.dataOffset+4;l.setUint32(K,Math.floor(w/4294967296));l.setUint32(K+4,w&4294967295)}else K.data.setUint32(K.dataOffset+ 4,w)}h=iH(e.type)?h+8:h+e.size}return!0}a=new Gc(G.k_());G=G.B?a:new Gc(new DataView(G.info.j.j.buffer));V=NC(G);G=a.pos;a.pos=0;if(dV(a)&&xp(a,231))if(x=hB(a,!0),B=Math.floor(B*1E9/V),Math.ceil(Math.log(B)/Math.log(2)/8)>x)B=!1;else{for(V=x-1;V>=0;V--)a.j.setUint8(a.pos+V,B&255),B>>>=8;a.pos=G;B=!0}else B=!1;return B}; BJ=function(G,B){B=B===void 0?!1:B;var a=Gj(G);G=B?0:G.info.L;return a||G}; Gj=function(G){g.PX(G.info.j.info)||G.info.j.info.C3();if(G.X&&G.info.type===6)return G.X.zm;if(g.PX(G.info.j.info)){var B=G.k_();var a=0;B=g.MF(B,1936286840);B=g.m(B);for(var V=B.next();!V.done;V=B.next())V=SBB(V.value),a+=V.iD[0]/V.timescale;a=a||NaN;if(!(a>=0))a:{a=G.k_();B=G.info.j.j;for(var x=V=0,h=0;Aq(a,V);){var e=Yh(a,V);if(e.type===1836476516)x=g.si(e);else if(e.type===1836019558){!x&&B&&(x=F$(B));if(!x){a=NaN;break a}var w=Jq(e.data,e.dataOffset,1953653094),K=w;w=x;var l=Jq(K.data,K.dataOffset, 1952868452);K=Jq(K.data,K.dataOffset,1953658222);var k=Sa(l);Sa(l);k&2&&Sa(l);l=k&8?Sa(l):0;var N=Sa(K),d=N&1;k=N&4;var C=N&256,z=N&512,p=N&1024;N&=2048;var O=R1(K);d&&Sa(K);k&&Sa(K);for(var b=d=0;b2048?"":B.indexOf("https://")===0?B:""}; WJ=function(G,B,a){B.match(XZx);return G(B,a).then(function(V){var x=g.$ZX(V.xhr);return x?WJ(G,x,a):V.xhr})}; kD=function(G,B,a){G=G===void 0?"":G;B=B===void 0?null:B;a=a===void 0?!1:a;g.wI.call(this);var V=this;this.sourceUrl=G;this.isLivePlayback=a;this.Ur=this.duration=0;this.isPremiere=this.Ai=this.G=this.isLiveHeadPlayable=this.isLive=this.X=!1;this.SK=this.Qg=0;this.isOtf=this.SE=!1;this.qB=(0,g.yT)();this.zH=Infinity;this.j={};this.C=new Map;this.state=this.Mq=0;this.timeline=null;this.isManifestless=!1;this.HS=[];this.L=null;this.GH=0;this.B="";this.Zx=NaN;this.Qb=this.YD=this.timestampOffset=this.W= 0;this.G2=this.dW=NaN;this.fd=0;this.Er=this.Y=!1;this.LN=[];this.SJ={};this.XJ=NaN;this.vC={EzX:function(w){wX(V,w)}}; var x;this.MB=(x=B)==null?void 0:x.Or("html5_use_network_error_code_enums");q4_=!!B&&B.Or("html5_modern_vp9_mime_type");var h;Kw=!((h=B)==null||!h.Or("html5_enable_flush_during_seek"))&&g.T9();var e;lB=!((e=B)==null||!e.Or("html5_enable_reset_audio_decoder"))&&g.T9()}; uvX=function(G){return g.gU(G.j,function(B){return!!B.info.video&&B.info.video.j>=2160})}; K2B=function(G){return g.gU(G.j,function(B){return!!B.info.video&&B.info.video.isHdr()})}; df=function(G){return g.gU(G.j,function(B){return!!B.info.Ji})}; g.Qrc=function(G){return g.gU(G.j,function(B){return ar(B.info.mimeType)})}; Lqy=function(G){return g.gU(G.j,function(B){return B.info.video?B.info.video.projectionType==="EQUIRECTANGULAR":!1})}; TZb=function(G){return g.gU(G.j,function(B){return B.info.video?B.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; srB=function(G){return g.gU(G.j,function(B){return B.info.video?B.info.video.projectionType==="MESH":!1})}; FqX=function(G){return g.gU(G.j,function(B){return B.info.video?B.info.video.stereoLayout===1:!1})}; JjB=function(G){return T3c(G.j,function(B){return B.info.video?B.n_():!0})}; lH=function(G){return g.gU(G.j,function(B){return Ei(B.kD.j)})}; wX=function(G,B){G.j[B.info.id]=B;G.C.set(jE(g.My(B.info,G.SE)),B)}; AjX=function(G,B){return jE({itag:B.itag,lmt:G.SE?0:B.lmt||0,xtags:B.xtags})}; Cw=function(G,B,a){a=a===void 0?0:a;var V=G.mimeType||"",x=G.itag;var h=G.xtags;x=x?x.toString():"";h&&(x+=";"+h);h=x;if(BZ(V)){var e=G.width||640;x=G.height||360;var w=G.fps,K=G.qualityLabel,l=G.colorInfo,k=G.projectionType,N;G.stereoLayout&&(N=Y4y[G.stereoLayout]);var d=ZeA(G)||void 0;if(l==null?0:l.primaries)var C=ieY[l.primaries]||void 0;e=new qy(e,x,w,k,N,void 0,K,d,C);V=Np(V,e,L1[G.itag||""]);Kw&&(V+="; enableflushduringseek=true");lB&&(V+="; enableresetaudiodecoder=true")}var z;if(G2(V)){var p= G.audioSampleRate;N=G.audioTrack;p=new re(p?+p:void 0,G.audioChannels,G.spatialAudioType,G.isDrc,G.loudnessDb,G.trackAbsoluteLoudnessLkfs,G.audioQuality||"AUDIO_QUALITY_UNKNOWN");N&&(C=N.displayName,x=N.id,N=N.audioIsDefault,C&&(z=new g.e2(C,x||"",!!N)))}var O;G.captionTrack&&(K=G.captionTrack,N=K.displayName,C=K.vssId,x=K.languageCode,w=K.kind,K=K.id,N&&C&&x&&(O=new S4y(N,C,x,w,G.xtags,K)));N=Number(G.bitrate)/8;C=Number(G.contentLength);x=Number(G.lastModified);K=G.drmFamilies;w=G.type;a=a&&C?C/ a:0;G=Number(G.approxDurationMs);if(B&&K){var b={};K=g.m(K);for(l=K.next();!l.done;l=K.next())(l=dX[l.value])&&(b[l]=B[l])}return new T4(h,V,{audio:p,video:e,VW:z,Ji:b,NB:N,Mp:a,contentLength:C,lastModified:x,captionTrack:O,streamType:w,approxDurationMs:G})}; zj=function(G,B,a){a=a===void 0?0:a;var V=G.type;var x=G.itag;var h=G.xtags;h&&(x=G.itag+";"+h);if(BZ(V)){var e=(G.size||"640x360").split("x");e=new qy(+e[0],+e[1],+G.fps,G.projection_type,+G.stereo_layout,void 0,G.quality_label,G.eotf,G.primaries);V=Np(V,e,L1[G.itag]);Kw&&(V+="; enableflushduringseek=true");lB&&(V+="; enableresetaudiodecoder=true")}var w;if(G2(V)){var K=new re(+G.audio_sample_rate||void 0,+G.audio_channels||0,G.spatial_audio_type,!!G.drc);G.name&&(w=new g.e2(G.name,G.audio_track_id, G.isDefault==="1"))}var l;G.caption_display_name&&G.caption_vss_id&&G.caption_language_code&&(l=new S4y(G.caption_display_name,G.caption_vss_id,G.caption_language_code,G.caption_kind,G.xtags,G.caption_id));h=Number(G.bitrate)/8;var k=Number(G.clen),N=Number(G.lmt);a=a&&k?k/a:0;if(B&&G.drm_families){var d={};for(var C=g.m(G.drm_families.split(",")),z=C.next();!z.done;z=C.next())z=z.value,d[z]=B[z]}return new T4(x,V,{audio:K,video:e,VW:w,Ji:d,NB:h,Mp:a,contentLength:k,lastModified:N,captionTrack:l, streamType:G.stream_type,approxDurationMs:Number(G.approx_duration_ms)})}; PVA=function(G){return bL(G,function(B){return"FORMAT_STREAM_TYPE_OTF"===B.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; obx=function(G){return bL(G,function(B){return"FORMAT_STREAM_TYPE_OTF"===B.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; MgX=function(G,B){return G.timeline?a5(G.timeline.G,B):G.HS.length?a5(G.HS,B):[]}; tA=function(G,B,a){B=B===void 0?"":B;a=a===void 0?"":a;G=new g.pT(G,!0);G.set("alr","yes");a&&(a=vfV(decodeURIComponent(a)),G.set(B,encodeURIComponent(a)));return G}; V79=function(G,B){var a=LE(B,"id");a=a.replace(":",";");var V=LE(B,"mimeType"),x=LE(B,"codecs");V=x?V+'; codecs="'+x+'"':V;x=Number(LE(B,"bandwidth"))/8;var h=Number(Tc(B,"BaseURL").getAttribute(G.B+":contentLength")),e=G.duration&&h?h/G.duration:0;if(BZ(V)){var w=Number(LE(B,"width"));var K=Number(LE(B,"height")),l=Number(LE(B,"frameRate")),k=GfB(LE(B,G.B+":projectionType"));a:switch(LE(B,G.B+":stereoLayout")){case "layout_left_right":var N=1;break a;case "layout_top_bottom":N=2;break a;default:N= 0}w=new qy(w,K,l,k,N)}if(G2(V)){var d=Number(LE(B,"audioSamplingRate"));var C=Number(LE(B.getElementsByTagName("AudioChannelConfiguration")[0],"value"));K=BWb(LE(B,G.B+":spatialAudioType"));d=new re(d,C,K);a:{C=LE(B,"lang")||"und";if(K=Tc(B,"Role"))if(k=LE(K,"value")||"",g.Eu(aoB,k)){K=C+"."+aoB[k];l=k==="main";G=LE(B,G.B+":langName")||C+" - "+k;C=new g.e2(G,K,l);break a}C=void 0}}if(B=Tc(B,"ContentProtection"))if(B.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var z={};for(B= B.firstChild;B!=null;B=B.nextSibling)B instanceof Element&&/SystemURL/.test(B.nodeName)&&(G=B.getAttribute("type"),K=B.textContent,G&&K&&(z[G]=K.trim()))}else z=void 0;return new T4(a,V,{audio:d,video:w,VW:C,Ji:z,NB:x,Mp:e,contentLength:h})}; GfB=function(G){switch(G){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"}}; BWb=function(G){switch(G){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"}}; hqc=function(G,B){B=B===void 0?"":B;G.state=1;G.qB=(0,g.yT)();return rjb(B||G.sourceUrl).then(function(a){if(!G.TH()){G.Mq=a.status;a=a.responseText;var V=new DOMParser;a=Fd(V,TbY(a),"text/xml").getElementsByTagName("MPD")[0];G.zH=dZH(LE(a,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(a.attributes){V=g.m(a.attributes);for(var x=V.next();!x.done;x=V.next())if(x=x.value,x.value==="http://youtube.com/yt/2012/10/10"){V=x.name.split(":")[1];break b}}V=""}G.B=V;G.isLive=G.zH=G.zH}; WIX=function(G){G.L&&G.L.stop()}; xNV=function(G){var B=G.zH;isFinite(B)&&(mw(G)?G.refresh():(B=Math.max(0,G.qB+B-(0,g.yT)()),G.L||(G.L=new g.J8(G.refresh,B,G),g.X(G,G.L)),G.L.start(B)))}; wNB=function(G){G=G.j;for(var B in G){var a=G[B].index;if(a.isLoaded())return a.MQ()+1}return 0}; IW=function(G){return G.YD?G.YD-(G.W||G.timestampOffset):0}; gX=function(G){return G.Qb?G.Qb-(G.W||G.timestampOffset):0}; pw=function(G){if(!isNaN(G.Zx))return G.Zx;var B=G.j,a;for(a in B){var V=B[a].index;if(V.isLoaded()&&!ar(B[a].info.mimeType)){B=0;for(a=V.Dh();a<=V.MQ();a++)B+=V.getDuration(a);B/=V.KP();B=Math.round(B/.5)*.5;V.KP()>10&&(G.Zx=B);return B}if(G.isLive&&(V=B[a],V.zm))return V.zm}return NaN}; KIH=function(G,B){G=Ftc(G.j,function(V){return V.index.isLoaded()}); if(!G)return NaN;G=G.index;var a=G.nR(B);return G.getStartTime(a)===B?B:a=0&&x.segments.splice(h,1)}}}; kfA=function(G){for(var B in G.j)ar(G.j[B].info.mimeType)||UyK(G.j[B].index,Infinity)}; ET=function(G,B,a){for(var V in G.j){var x=G.j[V].index,h=B,e=a;x.uF&&(h&&(x.M7=Math.max(x.M7,h)),e&&(x.Ua=Math.max(x.Ua||0,e)))}a&&(G.XJ=a/1E3)}; NWc=function(G){G.Qb=0;G.YD=0;G.fd=0}; j2=function(G){return G.Er&&G.isManifestless?G.isLiveHeadPlayable:G.isLive}; Np=function(G,B,a){bB===null&&(bB=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(q4_&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return bB||a!=="9"&&a!=="("?bB||a!=="9h"&&a!=="(h"||(G='video/webm; codecs="vp9.2"'):G='video/webm; codecs="vp9"',G;if(!bB&&!ye||G!=='video/webm; codecs="vp9"'&&G!=='video/webm; codecs="vp9.2"')return G; a="00";var V="08",x="01",h="01",e="01";G==='video/webm; codecs="vp9.2"'&&(a="02",V="10",B.primaries==="bt2020"&&(e=x="09"),B.X==="smpte2084"&&(h="16"),B.X==="arib-std-b67"&&(h="18"));return'video/webm; codecs="'+["vp09",a,"51",V,"01",x,h,e,"00"].join(".")+'"'}; nw=function(G,B,a){G=""+G+(B>49?"p60":B>32?"p48":"");B=XX()[G];if(B!=null&&B>0)return B;B=cJ.get(G);if(B!=null&&B>0)return B;a=a==null?void 0:a.get(G);return a!=null&&a>0?a:8192}; dNc=function(G){this.Rn=G;this.Cd=this.Lc=this.Qb=this.B=this.G=this.eJ=this.Er=this.XJ=!1;this.W=this.L=0;this.Vb=!1;this.HS=!0;this.MB=!1;this.W0=0;this.o_=this.Zx=!1;this.fd=!0;this.qB=this.SJ=!1;this.j={};this.m3=this.disableAv1=this.Yf=this.R4=this.Dx=this.fh=this.X=this.V=!1;this.dC=this.Rn.S("html5_disable_aac_preference");this.YD=Infinity;this.LN=0;this.wO=this.Rn.Ef();this.QW=this.Rn.experiments.Or("html5_enable_vp9_fairplay");this.Fg=this.Rn.S("html5_force_av1_for_testing");this.Ur=g.kf(this.Rn.experiments, "html5_av1_ordinal_cap");this.PD=this.Rn.S("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.w7=this.Rn.S("html5_account_onesie_format_selection_during_format_filter");this.NB=g.kf(this.Rn.experiments,"html5_max_byterate");this.Y=this.Rn.S("html5_sunset_aac_high_codec_family");this.GH=this.Rn.S("html5_sunset_aac_high_codec_family");this.Md=this.Rn.S("html5_enable_iamf_audio");this.Qv=this.Rn.experiments.Or("html5_allow_capability_merge");this.OZ=this.Rn.S("html5_prefer_h264_encrypted_appletv"); this.S_=this.Rn.S("html5_enable_encrypted_av1")}; lh_=function(G){if(G.Er)return["f"];if(G.OZ&&g.QZ("appletv5"))return"9h 9 h 8 H (h ( *".split(" ");var B=["9h","9","h","8"];G.S_&&B.push("1e");B=B.concat(["(h","(","H","*"]);G.Zx&&(B.unshift("1"),B.unshift("1h"));G.Lc&&B.unshift("h");G.zH&&(B=(C3_[G.zH]||[G.zH]).concat(B));return B}; xyy=function(G){var B=["o","a","A"];G.LN===1&&(G.G&&(B=["mac3","MAC3"].concat(B)),G.B&&(B=["meac3","MEAC3"].concat(B)),G.Md&&(B=["i","I"].concat(B)));G.XJ&&(B=["so","sa"].concat(B));!G.Cd||G.Qb||G.C||G.dC||B.unshift("a");G.eJ&&!G.Y&&B.unshift("ah");G.C&&(B=(C3_[G.C]||[G.C]).concat(B));return B}; fw=function(G,B,a,V){B=B===void 0?{}:B;if(V===void 0?0:V)return B.disabled=1,0;if(I1(G.B,gf.AV1_CODECS)&&I1(G.B,gf.HEIGHT)&&I1(G.B,gf.BITRATE))return B.isCapabilityUsable=1,8192;try{var x=uQc();if(x)return B.localPref=x}catch(w){}V=1080;x=navigator.hardwareConcurrency;x<=2&&(V=480);B.coreCount=x;if(x=g.kf(G.experiments,"html5_default_av1_threshold"))V=B["default"]=x;!G.S("html5_disable_av1_arm_check")&&n0x()&&(B.isArm=1,V=240);if(G=G.B.HS)B.mcap=G,V=Math.max(V,G);if(a){var h,e;if(G=(h=a.videoInfos.find(function(w){return AX(w)}))== null?void 0:(e=h.X)==null?void 0:e.powerEfficient)V=8192,B.isEfficient=1; a=a.videoInfos[0].video;h=Math.min(nw("1",a.fps),nw("1",30));B.perfCap=h;V=Math.min(V,h);a.isHdr()&&!G&&(B.hdr=1,V*=.75)}else a=nw("1",30),B.perfCap30=a,V=Math.min(V,a),a=nw("1",60),B.perfCap60=a,V=Math.min(V,a);return B.av1Threshold=V}; HJ=function(G,B,a,V){this.flavor=G;this.keySystem=B;this.X=a;this.experiments=V;this.j={};this.MB=this.keySystemAccess=null;this.Ig=this.CQ=-1;this.hY=null;this.C=!!V&&V.Or("edge_nonprefixed_eme");V&&V.Or("html5_enable_vp9_fairplay")}; DE=function(G){return G.C?!1:!G.keySystemAccess&&!!vJ()&&G.keySystem==="com.microsoft.playready"}; S2=function(G){return G.keySystem==="com.microsoft.playready"}; RW=function(G){return!G.keySystemAccess&&!!vJ()&&G.keySystem==="com.apple.fps.1_0"}; ZE=function(G){return G.keySystem==="com.youtube.fairplay"}; rX=function(G){return G.keySystem==="com.youtube.fairplay.sbdl"}; g.$D=function(G){return G.flavor==="fairplay"}; vJ=function(){var G=window,B=G.MSMediaKeys;JM()&&!B&&(B=G.WebKitMediaKeys);return B&&B.isTypeSupported?B:null}; qp=function(G){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.vX&&!g.T9())return jb("45");if(g.Jx||g.di)return G.Or("edge_nonprefixed_eme");if(g.XB)return jb("47");if(g.It){if(G.Or("html5_enable_safari_fairplay"))return!1;if(G=g.kf(G,"html5_safari_desktop_eme_min_version"))return jb(G)}return!0}; zqA=function(G,B,a,V){var x=sq(),h=(a=x||a&&JM())?["com.youtube.fairplay"]:["com.widevine.alpha"];B&&h.unshift("com.youtube.widevine.l3");x&&V&&h.unshift("com.youtube.fairplay.sbdl");return a?h:G?[].concat(g.U(h),g.U(uB.playready)):[].concat(g.U(uB.playready),g.U(h))}; Lw=function(){this.X=this.EM=0;this.j=Array.from({length:Qe.length}).fill(0)}; t79=function(){}; mN_=function(){this.startTimeMs=(0,g.yT)();this.j=!1}; IoK=function(){this.j=new t79}; g_c=function(G,B,a,V){V=V===void 0?1:V;a>=0&&(B in G.j||(G.j[B]=new Lw),G.j[B].X2(a,V))}; pNV=function(G,B,a,V,x){var h=(0,g.yT)(),e=x?x(B):void 0,w;x=(w=e==null?void 0:e.EM)!=null?w:1;if(x!==0){var K;w=(K=e==null?void 0:e.profile)!=null?K:a;g_c(G,w,h-V,x)}return B}; Tj=function(G,B,a,V,x){if(B&&typeof B==="object"){var h=function(e){return pNV(G,e,a,V,x)}; if(Wp(B))return B.then(h);if(UNc(B))return d2(B,h)}return pNV(G,B,a,V,x)}; OnV=function(){}; sT=function(G,B,a,V,x){V=V===void 0?!1:V;g.r.call(this);this.Rn=B;this.useCobaltWidevine=V;this.FJ=x;this.X=[];this.C={};this.j={};this.callback=null;this.B=!1;this.G=[];this.initialize(G,!a)}; jFX=function(G,B){G.callback=B;G.G=[];qp(G.Rn.experiments)?FB(G):E_B(G)}; FB=function(G){if(!G.TH())if(G.X.length===0)G.callback(G.G);else{var B=G.X[0],a=G.C[B],V=bnB(G,a);if(JA&&JA.keySystem===B&&JA.Iaf===JSON.stringify(V))G.FJ("remksa",{re:!0}),y5V(G,a,JA.keySystemAccess);else{var x,h;G.FJ("remksa",{re:!1,ok:(h=(x=JA)==null?void 0:x.keySystem)!=null?h:""});JA=void 0;(AA.isActive()?AA.kX("emereq",function(){return navigator.requestMediaKeySystemAccess(B,V)}):navigator.requestMediaKeySystemAccess(B,V)).then(g2(function(e){y5V(G,a,e,V)}),g2(function(){G.B=!G.B&&G.C[G.X[0]].flavor=== "widevine"; G.B||G.X.shift();FB(G)}))}}}; y5V=function(G,B,a,V){if(!G.TH()){V&&(JA={keySystem:B.keySystem,keySystemAccess:a,Iaf:JSON.stringify(V)});B.keySystemAccess=a;if(S2(B)){a=f1();V=g.m(Object.keys(G.j[B.flavor]));for(var x=V.next();!x.done;x=V.next())x=x.value,B.j[x]=!!a.canPlayType(x)}else{a=B.keySystemAccess.getConfiguration();if(a.audioCapabilities)for(V=g.m(a.audioCapabilities),x=V.next();!x.done;x=V.next())c5z(G,B,x.value);if(a.videoCapabilities)for(a=g.m(a.videoCapabilities),V=a.next();!V.done;V=a.next())c5z(G,B,V.value)}G.G.push(B); G.useCobaltWidevine||G.S("html5_enable_vp9_fairplay")&&rX(B)?(G.X.shift(),FB(G)):G.callback(G.G)}}; c5z=function(G,B,a){G.S("log_robustness_for_drm")?B.j[a.contentType]=a.robustness||!0:B.j[a.contentType]=!0}; bnB=function(G,B){var a={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(G.S("html5_enable_vp9_fairplay")&&ZE(B))return a.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),a.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[a];S2(B)&&(a.initDataTypes=["keyids","cenc"]);for(var V=g.m(Object.keys(G.j[B.flavor])),x=V.next();!x.done;x=V.next()){x=x.value;var h=x.indexOf("audio/")===0,e=h?a.audioCapabilities:a.videoCapabilities;B.flavor!== "widevine"||G.B?e.push({contentType:x}):h?e.push({contentType:x,robustness:"SW_SECURE_CRYPTO"}):(g.vX&&g.QZ("windows nt")&&!G.S("html5_drm_enable_moho")||e.push({contentType:x,robustness:"HW_SECURE_ALL"}),h=x,G.S("html5_enable_cobalt_experimental_vp9_decoder")&&x.includes("vp09")&&(h=x+"; experimental=allowed"),e.push({contentType:h,robustness:"SW_SECURE_DECODE"}),YD(G.Rn)==="MWEB"&&(MI()||LB())&&(G.FJ("swcrypto",{}),e.push({contentType:x,robustness:"SW_SECURE_CRYPTO"})))}return[a]}; E_B=function(G){if(vJ()&&(g.It||Y4&&G.S("html5_drm_support_ios_mweb")))G.G.push(new HJ("fairplay","com.apple.fps.1_0","",G.Rn.experiments));else{var B=n_b(),a=g.JJ(G.X,function(V){var x=G.C[V],h=!1,e=!1,w;for(w in G.j[x.flavor])B(w,V)&&(x.j[w]=!0,h=h||w.indexOf("audio/")===0,e=e||w.indexOf("video/")===0);return h&&e}); a&&G.G.push(G.C[a]);G.X=[]}G.callback(G.G)}; n_b=function(){var G=vJ();if(G){var B=G.isTypeSupported;return function(V,x){return B(x,V)}}var a=f1(); return a&&(a.addKey||a.webkitAddKey)?function(V,x){return!!a.canPlayType(V,x)}:function(){return!1}}; fog=function(G){this.experiments=G;this.j=2048;this.G=0;this.HS=(this.W=this.S("html5_streaming_resilience"))?.5:.25;var B=B===void 0?0:B;this.C=g.kf(this.experiments,"html5_media_time_weight_prop")||B;this.XJ=g.kf(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.Y=(this.B=this.experiments.Or("html5_consider_end_stall"))&&iB;this.X=this.experiments.Or("html5_measure_max_progress_handling");this.V=this.S("html5_treat_requests_pre_elbow_as_metadata");this.L=this.S("html5_media_time_weight")|| !!this.C;this.zH=g.kf(this.experiments,"html5_streaming_fallback_byterate");this.S("html5_sabr_live_audio_early_return_fix")&&iB&&(this.j=65536)}; Hn_=function(G,B){this.j=void 0;this.experimentIds=G?G.split(","):[];this.flags=G9(B||"","&");G={};B=g.m(this.experimentIds);for(var a=B.next();!a.done;a=B.next())G[a.value]=!0;this.experiments=G}; g.kf=function(G,B){G=G.flags[B];JSON.stringify(G);return Number(G)||0}; PJ=function(G,B){return(G=G.flags[B])?G.toString():""}; v_H=function(G){if(G=G.flags.html5_web_po_experiment_ids)if(G=G.replace(/\[ *(.*?) *\]/,"$1"))return G.split(",").map(Number);return[]}; DNH=function(G){if(G.j)return G.j;if(G.experimentIds.length<=1)return G.j=G.experimentIds,G.j;var B=[].concat(g.U(G.experimentIds)).map(function(V){return Number(V)}); B.sort();for(var a=B.length-1;a>0;--a)B[a]-=B[a-1];G.j=B.map(function(V){return V.toString()}); G.j.unshift("v1");return G.j}; RqB=function(G){return SM9.then(G)}; oW=function(G,B,a){this.experiments=G;this.LN=B;this.Qb=a===void 0?!1:a;this.XJ=!!g.LV("cast.receiver.platform.canDisplayType");this.Y={};this.V=!1;this.X=new Map;this.W=!0;this.G=this.B=!1;this.j=new Map;this.HS=0;this.GH=this.experiments.Or("html5_disable_vp9_encrypted");this.C=this.experiments.Or("html5_enable_encrypted_av1");G=g.LV("cast.receiver.platform.getValue");this.Zx=g.kf(this.experiments,"html5_kaios_max_resolution");this.L=!this.XJ&&G&&G("max-video-resolution-vpx")||null;ZnY(this)}; dyY=function(G,B,a){a=a===void 0?1:a;var V=B.itag;if(V==="0")return!0;var x=B.mimeType;if(B.C3()&&sq()&&G.experiments.Or("html5_appletv_disable_vp9"))return"dwebm";if(B.PS==="1e"&&!G.C)return"dav1enc";if(AX(B)&&G.V)return"dav1";if(B.video&&(B.video.isHdr()||B.video.primaries==="bt2020")&&!(I1(G,gf.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(V=== "338"&&!(g.vX?jb(53):g.XB&&jb(64)))return"dopus";var h;if(G.Zx&&Mp&&((h=B.video)==null?void 0:h.j)>G.Zx)return"kaios";h=a;h=h===void 0?1:h;a={};B.video&&(B.video.width&&(a[gf.WIDTH.name]=B.video.width),B.video.height&&(a[gf.HEIGHT.name]=B.video.height),B.video.fps&&(a[gf.FRAMERATE.name]=B.video.fps*h),B.video.X&&(a[gf.EOTF.name]=B.video.X),B.NB&&(a[gf.BITRATE.name]=B.NB*8*h),B.PS==="("&&(a[gf.CRYPTOBLOCKFORMAT.name]="subsample"),B.video.projectionType==="EQUIRECTANGULAR"||B.video.projectionType=== "EQUIRECTANGULAR_THREED_TOP_BOTTOM"||B.video.projectionType==="MESH")&&(a[gf.DECODETOTEXTURE.name]="true");B.audio&&B.audio.numChannels&&(a[gf.CHANNELS.name]=B.audio.numChannels);G.B&&sB(B)&&(a[gf.EXPERIMENTAL.name]="allowed");h=g.m(Object.keys(gf));for(var e=h.next();!e.done;e=h.next()){e=gf[e.value];var w;if(w=a[e.name])if(w=!(e===gf.EOTF&&B.mimeType.indexOf("vp09.02")>0)){w=e;var K=B;w=!(G.experiments.Or("html5_ignore_h264_framerate_cap")&&w===gf.FRAMERATE&&URz(K))}if(w)if(I1(G,e))if(G.L){if(G.L[e.name]< a[e.name])return e.name}else x=x+"; "+e.name+"="+a[e.name];else if(Fa(B)&&e===gf.EOTF)return"dvp92"}G.XJ&&B.video&&B.video.j>1080&&B.Ji&&(x+="; hdcp=2.2");return V==="227"?"hqcenc":V!=="585"&&V!=="588"&&V!=="583"&&V!=="586"&&V!=="584"&&V!=="587"&&V!=="591"&&V!=="592"||G.experiments.Or("html5_enable_new_hvc_enc")?G.isTypeSupported(x)?!0:"tpus":"newhvc"}; GQ=function(){var G=LB()&&!jb(29),B=g.QZ("google tv")&&g.QZ("chrome")&&!jb(30);return G||B?!1:cnB()}; r5x=function(G,B,a){var V=480;B=g.m(B);for(var x=B.next();!x.done;x=B.next()){x=x.value;var h=x.video.j;h<=1080&&h>V&&dyY(G,x,a)===!0&&(V=h)}return V}; g.Bo=function(G,B){B=B===void 0?!1:B;return GQ()&&G.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!B&&G.canPlayType(f1(),"application/x-mpegURL")?!0:!1}; XNg=function(G){$Nb(function(){for(var B=g.m(Object.keys(gf)),a=B.next();!a.done;a=B.next())I1(G,gf[a.value])})}; I1=function(G,B){B.name in G.Y||(G.Y[B.name]=qMX(G,B));return G.Y[B.name]}; qMX=function(G,B){if(G.L)return!!G.L[B.name];if(B===gf.BITRATE&&G.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!G.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(B===gf.AV1_CODECS)return G.isTypeSupported("video/mp4; codecs="+B.valid)&&!G.isTypeSupported("video/mp4; codecs="+B.zn);if(B.video){var a='video/webm; codecs="vp9"';G.isTypeSupported(a)||(a='video/mp4; codecs="avc1.4d401e"')}else a='audio/webm; codecs="opus"', G.isTypeSupported(a)||(a='audio/mp4; codecs="mp4a.40.2"');return G.isTypeSupported(a+"; "+B.name+"="+B.valid)&&!G.isTypeSupported(a+"; "+B.name+"="+B.zn)}; uEA=function(G){G.B||(G.B=!0,a$(G))}; a$=function(G){G.G=!0;G.experiments.Or("html5_ssap_update_capabilities_on_change")&&QFA(G)}; LIy=function(G,B){var a=0;G.X.has(B)&&(a=G.X.get(B).hc);G.X.set(B,{hc:a+1,sH:Math.pow(2,a+1)});a$(G)}; CT=function(G){for(var B=[],a=g.m(G.j.keys()),V=a.next();!V.done;V=a.next()){V=V.value;var x=G.j.get(V);B.push(V+"_"+x.maxWidth+"_"+x.maxHeight)}return B.join(".")}; QFA=function(G){G.zH=[];for(var B=g.m(G.j.values()),a=B.next();!a.done;a=B.next()){a=a.value;var V=a.PS;G.experiments.Or("html5_ssap_force_mp4_aac")&&V!=="a"&&V!=="h"||G.X.has(V)||G.V&&(V==="1"||V==="1h"||G.C&&V==="1e")||G.zH.push(a)}}; hMY=function(G,B){for(var a=new Map,V=g.m(G.j.keys()),x=V.next();!x.done;x=V.next()){x=x.value;var h=x.split("_")[0];B.has(h)||a.set(x,G.j.get(x))}G.j=a}; W2A=function(G,B,a){var V,x=((V=a.video)==null?void 0:V.fps)||0;V=B+"_"+x;var h=!!a.audio,e={itag:a.itag,PS:B,zz:h};if(h)e.numChannels=a.audio.numChannels;else{var w=a.video;e.maxWidth=w==null?void 0:w.width;e.maxHeight=w==null?void 0:w.height;e.maxFramerate=x;I1(G,gf.BITRATE)&&(e.maxBitrateBps=a.NB*8);e.hx=w==null?void 0:w.isHdr()}w=G.j.get(V);w?h||(a=Math.max(w.maxWidth||0,w.maxHeight||0)>Math.max(e.maxWidth||0,e.maxHeight||0)?w:e,B={itag:a.itag,PS:B,zz:h,maxWidth:Math.max(w.maxWidth||0,e.maxWidth|| 0),maxHeight:Math.max(w.maxHeight||0,e.maxHeight||0),maxFramerate:x,hx:a.hx},I1(G,gf.BITRATE)&&(B.maxBitrateBps=a.maxBitrateBps),G.j.set(V,B)):G.j.set(V,e)}; wXX=function(G,B,a){var V,x=((V=a.video)==null?void 0:V.fps)||0;V=B+"_"+x;var h=!!a.audio,e=G.j.get(V);a:{var w=G.j.get(V),K=!!a.audio;if(w){if(K){var l=!1;break a}var k;if(!K&&((l=a.video)==null?0:l.height)&&w.maxHeight&&w.maxHeight>=((k=a.video)==null?void 0:k.height)){l=!1;break a}}l=!0}l&&(l=a.itag,B=e?e:{itag:l,PS:B,zz:h},h?B.numChannels=a.audio.numChannels:(h=a.video,B.maxWidth=h==null?void 0:h.width,B.maxHeight=h==null?void 0:h.height,B.maxFramerate=x,I1(G,gf.BITRATE)&&(B.maxBitrateBps=a.NB* 8),B.hx=h==null?void 0:h.isHdr()),G.j.set(V,B))}; ZnY=function(G){var B;(B=navigator.mediaCapabilities)!=null&&B.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(a){a.smooth&&a.powerEfficient&&(G.HS=2160)})}; Vt=function(){g.wI.call(this);this.items={}}; xF=function(){g.Ud.apply(this,arguments)}; h3=function(){g.Od.apply(this,arguments)}; TWB=function(G,B,a){this.encryptedClientKey=B;this.B=a;this.j=new Uint8Array(G.buffer,0,16);this.C=new Uint8Array(G.buffer,16)}; sFX=function(G){G.X||(G.X=new xF(G.j));return G.X}; eN=function(G){try{return gK(G)}catch(B){return null}}; FIH=function(G,B){if(!B&&G)try{B=JSON.parse(G)}catch(x){}if(B){G=B.clientKey?eN(B.clientKey):null;var a=B.encryptedClientKey?eN(B.encryptedClientKey):null,V=B.keyExpiresInSeconds?Number(B.keyExpiresInSeconds)*1E3+(0,g.yT)():null;G&&a&&V&&(this.j=new TWB(G,a,V));B.onesieUstreamerConfig&&(this.onesieUstreamerConfig=eN(B.onesieUstreamerConfig)||void 0);this.baseUrl=B.baseUrl}}; wG=function(){this.data=new Uint8Array(2048);this.pos=0;Wo||(Wo=fH("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; KI=function(G,B){G.add(B==null||isNaN(B)?0:B+1)}; l0=function(G){this.j=this.X=0;this.alpha=Math.exp(Math.log(.5)/G)}; kF=function(G){this.X=G===void 0?15:G;this.values=new Float64Array(176);this.j=new Float64Array(11);this.C=new Float64Array(16)}; Nq=function(G,B,a,V){a=a===void 0?.5:a;V=V===void 0?0:V;this.resolution=B;this.X=0;this.C=!1;this.z9=!0;this.j=Math.round(G*this.resolution);this.values=Array(this.j);for(G=0;G0)B=G.byterate,this.zH=!0;else{var V; a=(((V=navigator.connection)==null?void 0:V.downlink)||0)*64*1024;a>0&&(B=a,this.zH=!0)}this.C.j$(this.policy.L,B);G.delay>0&&this.V.j$(1,Math.min(G.delay,2));G.stall>0&&this.W.j$(1,G.stall);G.init>0&&(this.Qb=Math.min(G.init,this.Qb));G.interruptions&&(this.G=this.G.concat(G.interruptions),this.G.length>16&&this.G.pop());this.XJ=(0,g.yT)();this.policy.W>0&&(this.SJ=new g.J8(this.Er,this.policy.W,this),g.X(this,this.SJ),this.SJ.start())}; CI=function(G,B,a,V){G.C.j$(V===void 0?B:V,a/B);G.L=(0,g.yT)()}; A5x=function(G){G.B||(G.B=(0,g.yT)());G.policy.Y&&(G.L=(0,g.yT)())}; YMx=function(G,B){if(G.B){var a=B-G.B;if(a<6E4){if(a>1E3){var V=G.interruptions;V.push(Math.ceil(a));V.sort(function(x,h){return h-x}); V.length>16&&V.pop()}G.GH+=a}}G.B=B}; zQ=function(G,B,a,V,x,h){h=h===void 0?!1:h;G.LN.j$(B,a/B);G.L=(0,g.yT)();x||G.Y.j$(1,B-V);h||(G.B=0);G.XJ>-1&&(0,g.yT)()-G.XJ>3E4&&inA(G)}; t3=function(G,B,a){B=Math.max(B,G.X.j);G.W.j$(1,a/B)}; mG=function(G){G=G.V.cG()+G.Zx.cG()||0;G=isNaN(G)?.5:G;return G=Math.min(G,5)}; I$=function(G,B,a){isNaN(a)||(G.HS+=a);isNaN(B)||(G.qB+=B)}; gG=function(G){G=G.C.cG();return G>0?G:1}; pI=function(G,B,a){B=B===void 0?!1:B;a=a===void 0?1048576:a;var V=gG(G);V=1/((G.W.cG()||0)*G.policy.zH+1/V);var x=G.LN.cG();x=x>0?x:1;var h=Math.max(V,x);G.policy.B>0&&x=4E3}; o_c=function(G){this.experiments=G;this.j=17;this.C=13E4;this.L=.5;this.X=!1;this.XJ=this.S("html5_use_histogram_for_bandwidth");this.G=!1;this.B=g.kf(this.experiments,"html5_auxiliary_estimate_weight");this.zH=g.kf(this.experiments,"html5_stall_factor")||1;this.W=g.kf(this.experiments,"html5_check_for_idle_network_interval_ms");this.V=this.experiments.Or("html5_trigger_loader_when_idle_network");this.Y=this.experiments.Or("html5_sabr_fetch_on_idle_network_preloaded_players")}; Gmb=function(G,B){G=G===void 0?{}:G;B=B===void 0?{}:B;g.r.call(this);var a=this;this.values=G;this.iI=B;this.X={};this.C=this.j=0;this.G=new g.J8(function(){M7V(a)},1E4); g.X(this,this.G)}; Ob=function(G,B){BSH(G,B);return G.values[B]&&G.iI[B]?G.values[B]/Math.pow(2,G.j/G.iI[B]):0}; BSH=function(G,B){G.values[B]||(B=rsA(),G.values=B.values||{},G.iI=B.halfLives||{},G.X=B.values?Object.assign({},B.values):{})}; M7V=function(G){var B=rsA();if(B.values){B=B.values;for(var a={},V=g.m(Object.keys(G.values)),x=V.next();!x.done;x=V.next())x=x.value,B[x]&&G.X[x]&&(G.values[x]+=B[x]-G.X[x]),a[x]=Ob(G,x);G.X=a}B=G.iI;a={};a.values=G.X;a.halfLives=B;g.D0("yt-player-memory",a,2592E3)}; Qt=function(G,B,a,V,x){g.r.call(this);this.webPlayerContextConfig=B;this.Zr=V;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.M9=this.Md=this.Ur=this.iz=this.userDisplayName=this.userDisplayImage=this.Nq="";this.j={};this.YD={};this.controlsType="0";this.Qv=NaN;this.Dx=!1;this.MD=(0,g.yT)();this.wO=0;this.T2=this.Nk=!1;this.bF=!0;this.preferGapless=this.dQ=this.xF=this.C=this.G2=this.wc=!1;this.BE=[];this.IG=!1;G=G?g.fo(G):{};B&&B.csiPageType&&(this.csiPageType=B.csiPageType);B&&B.csiServiceName&& (this.csiServiceName=B.csiServiceName);B&&B.preferGapless&&(this.preferGapless=B.preferGapless);this.experiments=new Hn_(B?B.serializedExperimentIds:G.fexp,B?B.serializedExperimentFlags:G.fflags);this.forcedExperiments=B?B.serializedForcedExperimentIds:ht("",G.forced_experiments)||void 0;this.cspNonce=(B==null?0:B.cspNonce)?B.cspNonce:ht("",G.csp_nonce);this.S("web_player_deprecated_uvr_killswitch");try{var h=document.location.toString()}catch(J){h=""}this.Fg=h;this.ancestorOrigins=(V=window.location.ancestorOrigins)? Array.from(V):[];this.G=aP(!1,B?B.isEmbed:G.is_embed);if(B&&B.device){if(V=B.device,V.androidOsExperience&&(this.j.caoe=""+V.androidOsExperience),V.androidPlayServicesVersion&&(this.j.capsv=""+V.androidPlayServicesVersion),V.brand&&(this.j.cbrand=V.brand),V.browser&&(this.j.cbr=V.browser),V.browserVersion&&(this.j.cbrver=V.browserVersion),V.cobaltReleaseVehicle&&(this.j.ccrv=""+V.cobaltReleaseVehicle),this.j.c=V.interfaceName||"WEB",this.j.cver=V.interfaceVersion||"html5",V.interfaceTheme&&(this.j.ctheme= V.interfaceTheme),this.j.cplayer=V.interfacePlayerType||"UNIPLAYER",V.model&&(this.j.cmodel=V.model),V.network&&(this.j.cnetwork=V.network),V.os&&(this.j.cos=V.os),V.osVersion&&(this.j.cosver=V.osVersion),V.platform&&(this.j.cplatform=V.platform),h=PJ(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),h==="all"||h==="once")V.chipset&&(this.YD.cchip=V.chipset),V.cobaltAppVersion&&(this.YD.ccappver=V.cobaltAppVersion),V.firmwareVersion&&(this.YD.cfrmver=V.firmwareVersion),V.deviceYear&&(this.YD.crqyear= V.deviceYear)}else this.j.c=G.c||"web",this.j.cver=G.cver||"html5",this.j.cplayer="UNIPLAYER";this.loaderUrl=B?this.G||alx(this)&&B.loaderUrl?B.loaderUrl||"":this.Fg:this.G||alx(this)&&G.loaderUrl?ht("",G.loaderUrl):this.Fg;this.G&&g.Qb("yt.embedded_player.embed_url",this.loaderUrl);this.W=PV(this.loaderUrl,VeA);V=this.loaderUrl;var e=e===void 0?!1:e;this.dW=iE(PV(V,xag),V,e,"Trusted Ad Domain URL");this.fd=aP(!1,G.privembed);this.protocol=this.Fg.indexOf("http:")===0?"http":"https";this.TV=of((B? B.customBaseYoutubeUrl:G.BASE_YT_URL)||"")||of(this.Fg)||this.protocol+"://www.youtube.com/";e=B?B.eventLabel:G.el;V="detailpage";e==="adunit"?V=this.G?"embedded":"detailpage":e==="embedded"||this.W?V=VG(V,e,hDH):e&&(V="embedded");this.Zx=V;Xh9();e=null;V=B?B.playerStyle:G.ps;h=g.YC(eDK,V);!V||h&&!this.W||(e=V);this.playerStyle=e;this.L=g.YC(eDK,this.playerStyle);this.houseBrandUserStatus=B==null?void 0:B.houseBrandUserStatus;this.XJ=this.L&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.rW=!this.XJ;this.Qb=aP(!1,G.disableplaybackui);this.disablePaidContentOverlay=aP(!1,B==null?void 0:B.disablePaidContentOverlay);this.disableSeek=aP(!1,B==null?void 0:B.disableSeek);this.enableSpeedOptions=(B==null?void 0:B.enableSpeedOptions)||(f1().defaultPlaybackRate?Eb||g.oh||Mp?g.XB&&jb("20")||g.vX&&jb("4")||g.jN&&jb("11")||AM():!(g.jN&&!g.QZ("chrome")||Eb||g.QZ("android")||g.QZ("silk")):!1);this.mf=aP(!1,G.enable_faster_speeds);var w;this.supportsVarispeedExtendedFeatures=(w=B==null?void 0: B.supportsVarispeedExtendedFeatures)!=null?w:!1;this.X=aP(this.playerStyle==="blazer",G.is_html5_mobile_device||B&&B.isMobileDevice);this.qB=Ph()||MI();this.Yz=this.S("mweb_allow_background_playback")?!1:this.X&&!this.L;this.SJ=Rp();this.pc=g.b0;var K;this.Lk=!!(B==null?0:(K=B.embedsHostFlags)==null?0:K.optOutApiDeprecation);var l;this.ZQ=!!(B==null?0:(l=B.embedsHostFlags)==null?0:l.allowPfpImaIntegration);this.V0=this.S("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var k;B?B.hideInfo!== void 0&&(k=!B.hideInfo):k=G.showinfo;this.sM=g.co(this)&&!this.Lk||aP(!nI(this)&&!fI(this)&&!this.L,k);this.hY=B?!!B.mobileIphoneSupportsInlinePlayback:aP(!1,G.playsinline);w=this.X&&Ho&&vo!=null&&vo>0&&vo<=2.3;K=B?B.useNativeControls:G.use_native_controls;this.V=g.co(this)&&this.X;l=this.X&&!this.V;K=g.DB(this)||!w&&aP(l,K)?"3":"1";this.disableOrganicUi=!(B==null||!B.disableOrganicUi);l=B?B.controlsType:G.controls;this.controlsType=this.disableOrganicUi?"0":l!=="0"&&l!==0?K:"0";this.Gm=this.X;this.color= VG("red",B?B.progressBarColor:G.color,WYc);this.wW=this.controlsType==="3";this.Cd=!this.G;this.QA=(K=!this.Cd&&!fI(this)&&!this.XJ&&!this.L&&!nI(this))&&!this.wW&&this.controlsType==="1";this.OZ=g.SN(this)&&K&&this.controlsType==="0"&&!this.QA&&!(B==null?0:B.embedsEnableEmc3ds);this.D6=this.UD=w;this.S_=(this.controlsType==="3"||this.X||aP(!1,G.use_media_volume))&&!this.V;this.L1=Y4&&!g.tO(601)?!1:!0;this.gt=this.G||!1;this.MB=fI(this)?"":(this.loaderUrl||G.post_message_origin||"").substring(0,128); this.widgetReferrer=ht("",B?B.widgetReferrer:G.widget_referrer);var N;B?B.disableCastApi&&(N=!1):N=G.enablecastapi;N=!this.W||aP(!0,N);w=!0;B&&B.disableMdxCast&&(w=!1);this.e$=this.S("enable_cast_for_web_unplugged")&&g.R$(this)&&w||g.rv(this)&&w||N&&w&&this.controlsType==="1"&&!this.X&&(fI(this)||g.SN(this)||g.ZB(this));this.VN=!!window.document.pictureInPictureEnabled||SW();N=B?!!B.supportsAutoplayOverride:aP(!1,G.autoplayoverride);this.Da=!(this.X&&!g.co(this))&&!g.QZ("nintendo wiiu")||N;this.e6= (B?!!B.enableMutedAutoplay:aP(!1,G.mutedautoplay))&&!1;N=(fI(this)||nI(this))&&this.playerStyle==="blazer";this.N9=B?!!B.disableFullscreen:!aP(!0,G.fs);w=g.KU(g.rG(this))&&g.co(this);this.QW=!this.N9&&(N||g.tt())&&!w;this.I1=this.S("html5_picture_in_picture_logging_onresize");this.AY=this.S("html5_picture_in_picture_blocking_onresize");this.Bh=this.S("html5_picture_in_picture_blocking_ontimeupdate");this.M4=this.S("html5_picture_in_picture_blocking_document_fullscreen");this.SF=this.S("html5_picture_in_picture_blocking_standard_api"); N=LB()&&jb(58)&&!MI();w=FC||typeof MediaSource==="undefined";this.ou=this.S("uniplayer_block_pip")&&(N||w)||this.AY||this.Bh||this.SF;N=g.co(this)&&!this.Lk;var d;B?B.disableRelatedVideos!==void 0&&(d=!B.disableRelatedVideos):d=G.rel;this.w7=N||aP(!this.L,d);this.JY=aP(!1,B?B.enableContentOwnerRelatedVideos:G.co_rel);this.Y=MI()&&vo>0&&vo<=4.4?"_top":"_blank";this.n3=g.ZB(this);this.d_=aP(this.playerStyle==="blazer",B?B.enableCsiLogging:G.enablecsi);switch(this.playerStyle){case "blogger":d="bl"; break;case "gmail":d="gm";break;case "gac":d="ga";break;case "ads-preview":d="ap";break;case "books":d="gb";break;case "docs":case "flix":d="gd";break;case "duo":d="gu";break;case "google-live":d="gl";break;case "google-one":d="go";break;case "play":d="gp";break;case "chat":d="hc";break;case "hangouts-meet":d="hm";break;case "photos-edu":case "picasaweb":d="pw";break;default:d="yt"}this.zH=d;this.HS=ht("",B?B.authorizedUserIndex:G.authuser);this.m3=g.co(this)&&(this.fd||!y8A()||this.qB);var C;B?B.disableWatchLater!== void 0&&(C=!B.disableWatchLater):C=G.showwatchlater;this.PD=((d=!this.m3)||!!this.HS&&d)&&aP(!this.XJ,this.W?C:void 0);this.dC=B?B.isMobileDevice||!!B.disableKeyboardControls:aP(!1,G.disablekb);this.loop=aP(!1,G.loop);this.pageId=ht("",B?B.initialDelegatedSessionId:G.pageid);this.PE=aP(!0,G.canplaylive);this.Vb=aP(!1,G.livemonitor);this.disableSharing=aP(this.L,B?B.disableSharing:G.ss);(C=B&&this.S("fill_video_container_size_override_from_wpcc")?B.videoContainerOverride:G.video_container_override)? (d=C.split("x"),d.length!==2?C=null:(C=Number(d[0]),d=Number(d[1]),C=isNaN(C)||isNaN(d)||C*d<=0?null:new g.dU(C,d))):C=null;this.A6=C;this.mute=B?!!B.startMuted:aP(!1,G.mute);this.storeUserVolume=!this.mute&&aP(this.controlsType!=="0",B?B.storeUserVolume:G.store_user_volume);C=B?B.annotationsLoadPolicy:G.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:VG(void 0,C,$F);this.captionsLanguagePreference=B?B.captionsLanguagePreference||"":ht("",G.cc_lang_pref);C=VG(2,B?B.captionsLanguageLoadPolicy: G.cc_load_policy,$F);this.controlsType==="3"&&C===2&&(C=3);this.Yf=C;this.fh=B?B.hl||"en_US":ht("en_US",G.hl);this.region=B?B.contentRegion||"US":ht("US",G.cr);this.hostLanguage=B?B.hostLanguage||"en":ht("en",G.host_language);this.Yv=!this.fd&&Math.random()=480;this.schedule=new dG(w,new fog(this.experiments),x);g.X(this,this.schedule);var z;this.enableSafetyMode=(z=B==null?void 0:B.initialEnableSafetyMode)!=null?z:aP(!1,G.enable_safety_mode);x=this.Qb?!1:fI(this)&&this.playerStyle!=="blazer";var p;B?B.disableAutonav!=null&&(p=!B.disableAutonav): p=G.allow_autonav;this.R4=aP(x,!this.XJ&&p);this.sendVisitorIdHeader=B?!!B.sendVisitorIdHeader:aP(!1,G.send_visitor_id_header);var O;this.playerStyle==="docs"&&(B?O=B.disableNativeContextMenu:O=G.disable_native_context_menu);this.disableNativeContextMenu=aP(!1,O);this.xz=bE(this)&&this.S("enable_skip_intro_button");this.embedConfig=ht("",B?B.serializedEmbedConfig:G.embed_config);this.GH=wE(G,g.co(this));this.C=this.GH==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(B==null||!B.embedsErrorLinks); this.XQ=aP(!1,G.full_window);var b;this.eJ=!((b=this.webPlayerContextConfig)==null?0:b.chromeless);var c;this.livingRoomAppMode=VG("LIVING_ROOM_APP_MODE_UNSPECIFIED",G.living_room_app_mode||(B==null?void 0:(c=B.device)==null?void 0:c.livingRoomAppMode),ll_);var H;p=xS(NaN,B==null?void 0:(H=B.device)==null?void 0:H.deviceYear);isNaN(p)||(this.deviceYear=p);this.transparentBackground=B?!!B.transparentBackground:aP(!1,G.transparent_background);this.showMiniplayerButton=B?!!B.showMiniplayerButton:aP(!1, G.show_miniplayer_button);var R;g.co(this)&&!(B==null?0:(R=B.embedsHostFlags)==null?0:R.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=B?!!B.externalFullscreen:aP(!1,G.external_fullscreen);this.showMiniplayerUiWhenMinimized=B?!!B.showMiniplayerUiWhenMinimized:aP(!1,G.use_miniplayer_ui);var q;this.bF=(q=G.show_loop_video_toggle)!=null?q:!0;this.t7=Math.random()<1E-4;this.ym=G.onesie_hot_config||(B==null?0:B.onesieHotConfig)?new FIH(G.onesie_hot_config,B==null?void 0:B.onesieHotConfig): void 0;this.isTectonic=B?!!B.isTectonic:!!G.isTectonic;this.playerCanaryState=a;this.playerCanaryStage=B==null?void 0:B.canaryStage;this.L3=new Gmb;g.X(this,this.L3);this.G2=aP(!1,G.force_gvi);this.datasyncId=(B==null?void 0:B.datasyncId)||g.A0("DATASYNC_ID");this.H9=g.A0("LOGGED_IN",!1);this.Ki=(B==null?void 0:B.allowWoffleManagement)||!1;this.rQ=Infinity;this.RY=NaN;this.livingRoomPoTokenId=B==null?void 0:B.livingRoomPoTokenId;this.S("html5_high_res_logging_always")?this.xF=!0:this.xF=Math.random()* 100=0&&G0&&G.t7&&(V.sort(),g.Zb(new g.FI("Player client parameters changed after startup",V)));G.userAge=xS(G.userAge,B.user_age);G.Nq=ht(G.Nq,B.user_display_email);G.userDisplayImage=ht(G.userDisplayImage,B.user_display_image);g.GL(G.userDisplayImage)||(G.userDisplayImage= "");G.userDisplayName=ht(G.userDisplayName,B.user_display_name);G.iz=ht(G.iz,B.user_gender);G.csiPageType=ht(G.csiPageType,B.csi_page_type);G.csiServiceName=ht(G.csiServiceName,B.csi_service_name);G.d_=aP(G.d_,B.enablecsi);G.pageId=ht(G.pageId,B.pageid);if(a=B.enabled_engage_types)G.enabledEngageTypes=new Set(a.split(","));B.living_room_session_po_token&&(G.Vg=B.living_room_session_po_token.toString())}; LI=function(G,B){return!G.L&&LB()&&jb(55)&&G.controlsType==="3"&&!B}; g.TQ=function(G){G=X6(G.TV);return G==="www.youtube-nocookie.com"?"www.youtube.com":G}; sb=function(G,B,a){return G.protocol+"://i1.ytimg.com/vi/"+B+"/"+(a||"hqdefault.jpg")}; F6=function(G){return fI(G)&&!g.R$(G)}; g.DB=function(G){return G.S("html5_local_playsinline")?Y4&&!g.tO(602)&&!("playsInline"in f1()):Y4&&!G.hY||g.QZ("nintendo wiiu")?!0:!1}; YD=function(G){return G.j.c}; g.yI=function(G){return/^TVHTML5/.test(YD(G))}; g.J3=function(G){return YD(G)==="TVHTML5"}; alx=function(G){return YD(G)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; KYx=function(G){return G.j.cmodel==="CHROMECAST ULTRA/STEAK"||G.j.cmodel==="CHROMECAST/STEAK"}; g.A3=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; bE=function(G){return/web/i.test(YD(G))}; g.YF=function(G){return YD(G).toUpperCase()==="WEB"}; u0=function(G){return YD(G)==="WEB_KIDS"}; g.R$=function(G){return YD(G)==="WEB_UNPLUGGED"}; i0=function(G){return YD(G)==="TVHTML5_UNPLUGGED"}; g.jQ=function(G){return g.R$(G)||YD(G)==="TV_UNPLUGGED_CAST"||i0(G)}; g.rv=function(G){return YD(G)==="WEB_REMIX"}; g.Po=function(G){return YD(G)==="WEB_EMBEDDED_PLAYER"}; g.Mq=function(G){return(G.deviceIsAudioOnly||!g.vX||FC||G.controlsType==="3"?!1:g.oh?G.G&&g.tO(51):!0)||(G.deviceIsAudioOnly||!g.XB||FC||G.controlsType==="3"?!1:g.oh?G.G&&g.tO(48):g.tO(38))||(G.deviceIsAudioOnly||!g.jN||FC||G.controlsType==="3"?!1:g.oh?G.G&&g.tO(37):g.tO(27))||!G.deviceIsAudioOnly&&g.o$&&!v0H()&&g.tO(11)||!G.deviceIsAudioOnly&&g.It&&g.tO("604.4")}; daV=function(G){if(g.SN(G)&&Ho)return!1;if(g.XB){if(!g.tO(47)||!g.tO(52)&&g.tO(51))return!1}else if(g.It)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; zDz=function(G,B){return G.enabledEngageTypes.has(B.toString())||CjB.includes(B)}; fI=function(G){return G.Zx==="detailpage"}; g.SN=function(G){return G.Zx==="embedded"}; Gk=function(G){return G.Zx==="leanback"}; nI=function(G){return G.Zx==="adunit"||G.playerStyle==="gvn"}; g.ZB=function(G){return G.Zx==="profilepage"}; g.co=function(G){return G.G&&g.SN(G)&&!nI(G)&&!G.L}; B_=function(G){if(!G.userDisplayImage)return"";var B=G.userDisplayImage.split("/");if(B.length===5)return G=B[B.length-1].split("="),G[1]="s20-c",B[B.length-1]=G.join("="),B.join("/");if(B.length===8)return B.splice(7,0,"s20-c"),B.join("/");if(B.length===9)return B[7]+="-s20-c",B.join("/");g.Zb(new g.FI("Profile image not a FIFE URL.",G.userDisplayImage));return G.userDisplayImage}; g.a0=function(G){var B=g.TQ(G);tez.includes(B)&&(B="www.youtube.com");return G.protocol+"://"+B}; g.Vm=function(G,B){B=B===void 0?"":B;if(G.Zr){var a=new iV,V,x=G.Zr();x.signedOut?V="":x.token?V=x.token:x.pendingResult.then(function(h){x.signedOut?a.resolve(""):a.resolve(h.token)},function(h){g.Zb(new g.FI("b189348328_oauth_callback_failed",{error:h})); a.resolve(B)}); return V!==void 0?Dd(V):new Hh(a)}return Dd(B)}; xi=function(G,B){B=B===void 0?"":B;return G.H9?w2(!0):Ch(d2(w2(g.Vm(G,B)),function(a){return w2(!!a)}),function(){return w2(!1)})}; X6=function(G){var B=g.rp(G);return(G=Number(g.Z4(4,G))||null)?B+":"+G:B}; hC=function(G,B){B=B===void 0?!1:B;var a=L1[G],V=maB[a],x=Ilb[G];if(!x||!V)return null;B=new qy(B?x.height:x.width,B?x.width:x.height,x.fps);V=Np(V,B,a);return new T4(G,V,{video:B,NB:x.bitrate/8})}; pvY=function(G){var B=maB[L1[G]],a=g8B[G];return a&&B?new T4(G,B,{audio:new re(a.audioSampleRate,a.numChannels)}):null}; et=function(G){this.j=G}; W_=function(G,B,a,V){if(a)return vh();a={};var x=f1();B=g.m(B);for(var h=B.next();!h.done;h=B.next())if(h=h.value,G.canPlayType(x,h.getInfo().mimeType)||V){var e=h.j.video.quality;if(!a[e]||a[e].getInfo().C3())a[e]=h}G=[];a.auto&&G.push(a.auto);V=g.m(u5);for(x=V.next();!x.done;x=V.next())(x=a[x.value])&&G.push(x);return G.length?Dd(G):vh()}; Uac=function(G){this.itag=G.itag;this.url=G.url;this.codecs=G.codecs;this.width=G.width;this.height=G.height;this.fps=G.fps;this.bitrate=G.bitrate;var B;this.X=((B=G.audioItag)==null?void 0:B.split(","))||[];this.d9=G.d9;this.Ji=G.Ji||"";this.VW=G.VW;this.audioChannels=G.audioChannels;this.j=""}; Oqx=function(G,B,a,V){B=B===void 0?!1:B;a=a===void 0?!0:a;V=V===void 0?{}:V;var x={};G=g.m(G);for(var h=G.next();!h.done;h=G.next()){h=h.value;if(B&&MediaSource&&MediaSource.isTypeSupported){var e=h.type;h.audio_channels&&(e=e+"; channels="+h.audio_channels);if(!MediaSource.isTypeSupported(e)){V[h.itag]="tpus";continue}}if(a||!h.drm_families||h.eotf!=="smpte2084"&&h.eotf!=="arib-std-b67"){e=void 0;var w={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},K=h.type.match(/codecs="([^"]*)"/); K=K?K[1]:"";h.audio_track_id&&(e=new g.e2(h.name,h.audio_track_id,!!h.is_default));var l=h.eotf;h=new Uac({itag:h.itag,url:h.url,codecs:K,width:Number(h.width),height:Number(h.height),fps:Number(h.fps),bitrate:Number(h.bitrate),audioItag:h.audio_itag,d9:l?w[l]:void 0,Ji:h.drm_families,VW:e,audioChannels:Number(h.audio_channels)});x[h.itag]=x[h.itag]||[];x[h.itag].push(h)}else V[h.itag]="enchdr"}return x}; E8K=function(G,B,a,V,x){this.C=G;this.X=B;this.B=a;this.cpn=V;this.L=x;this.G=0;this.j=""}; jVH=function(G,B){G.C.some(function(a){var V;return((V=a.VW)==null?void 0:V.getId())===B}); G.j=B}; wt=function(G,B,a){G.cpn&&(B=g.LJ(B,{cpn:G.cpn}));a&&(B=g.LJ(B,{paired:a}));return B}; bqB=function(G,B){G=G.itag.toString();B!==null&&(G+=B.itag.toString());return G}; yPb=function(G){for(var B=[],a=[],V=g.m(G.X),x=V.next();!x.done;x=V.next())x=x.value,x.bitrate<=G.G?B.push(x):a.push(x);B.sort(function(h,e){return e.bitrate-h.bitrate}); a.sort(function(h,e){return h.bitrate-e.bitrate}); G.X=B.concat(a)}; K$=function(G,B,a){this.j=G;this.X=B;this.expiration=a;this.kD=null}; cPK=function(G,B){if(!(FC||JM()||sq()))return null;G=Oqx(B,G.S("html5_filter_fmp4_in_hls"));if(!G)return null;B=[];for(var a={},V=g.m(Object.keys(G)),x=V.next();!x.done;x=V.next()){x=g.m(G[x.value]);for(var h=x.next();!h.done;h=x.next()){var e=h.value;e.VW&&(h=e.VW.getId(),a[h]||(e=new g.GO(h,e.VW),a[h]=e,B.push(e)))}}return B.length>0?B:null}; Da_=function(G,B,a,V,x,h,e){if(!(FC||JM()||sq()))return vh();var w={},K=n8B(a),l=Oqx(a,G.S("html5_filter_fmp4_in_hls"),G.B.W,w);if(!l)return e({noplst:1}),vh();flb(l);a={};var k=(a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a),N;a=[];var d=[],C=[],z=null,p="";V=V&&V.match(/hls_timedtext_playlist/)?new Uac({itag:"0",url:V,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,VW:new g.e2("English","en",!1)}):null;for(var O=g.m(Object.keys(l)),b=O.next();!b.done;b=O.next())if(b=b.value,!G.S("html5_disable_drm_hfr_1080")|| b!=="383"&&b!=="373"){b=g.m(l[b]);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.width){for(var H=g.m(c.X),R=H.next();!R.done;R=H.next())if(R=R.value,l[R]){c.j=R;break}c.j||(c.j=Hqc(l,c));if(H=l[c.j])if(a.push(c),c.Ji==="fairplay"&&(N=k),R="",c.d9==="PQ"?R="smpte2084":c.d9==="HLG"&&(R="arib-std-b67"),R&&(p=R),C.push(v8z(H,[c],V,h,c.itag,c.width,c.height,c.fps,K,void 0,void 0,N,R)),!z||c.width*c.height*c.fps>z.width*z.height*z.fps)z=c}else d.push(c)}else w[b]="disdrmhfr";C.reduce(function(q, A){return A.getInfo().isEncrypted()&&q},!0)&&(N=k); x=Math.max(x,0);k=z||{};l=k.fps===void 0?0:k.fps;z=k.width===void 0?0:k.width;k=k.height===void 0?0:k.height;O=G.S("html5_native_audio_track_switching");C.push(v8z(d,a,V,h,"93",z,k,l,K,"auto",x,N,p,O));Object.entries(w).length&&e(w);return W_(G.B,C,LI(G,B),!1)}; v8z=function(G,B,a,V,x,h,e,w,K,l,k,N,d,C){for(var z=0,p="",O=g.m(G),b=O.next();!b.done;b=O.next())b=b.value,p||(p=b.itag),b.audioChannels&&b.audioChannels>z&&(z=b.audioChannels,p=b.itag);x=new T4(x,"application/x-mpegURL",{audio:new re(0,z),video:new qy(h,e,w,null,void 0,l,void 0,d),Ji:N,vX:p});G=new E8K(G,B,a?[a]:[],V,!!C);G.G=k?k:1369843;return new K$(x,G,K)}; n8B=function(G){G=g.m(G);for(var B=G.next();!B.done;B=G.next())if(B=B.value,B.url&&(B=B.url.split("expire/"),!(B.length<=1)))return+B[1].split("/")[0];return NaN}; Hqc=function(G,B){for(var a=g.m(Object.keys(G)),V=a.next();!V.done;V=a.next()){V=V.value;var x=G[V][0];if(!x.width&&x.Ji===B.Ji&&!x.audioChannels)return V}return""}; flb=function(G){for(var B=new Set,a=g.m(Object.values(G)),V=a.next();!V.done;V=a.next())V=V.value,V.length&&(V=V[0],V.height&&V.codecs.startsWith("vp09")&&B.add(V.height));a=[];if(B.size){V=g.m(Object.keys(G));for(var x=V.next();!x.done;x=V.next())if(x=x.value,G[x].length){var h=G[x][0];h.height&&B.has(h.height)&&!h.codecs.startsWith("vp09")&&a.push(x)}}B=g.m(a);for(a=B.next();!a.done;a=B.next())delete G[a.value]}; ll=function(G,B){this.j=G;this.X=B}; Swc=function(G,B,a,V){var x=[];a=g.m(a);for(var h=a.next();!h.done;h=a.next()){var e=h.value;if(e.url){h=new g.pT(e.url,!0);if(e.s){var w=h,K=e.sp,l=vfV(decodeURIComponent(e.s));w.set(K,encodeURIComponent(l))}w=g.m(Object.keys(V));for(K=w.next();!K.done;K=w.next())K=K.value,h.set(K,V[K]);e=VF(e.type,e.quality,e.itag,e.width,e.height);x.push(new ll(e,h))}}return W_(G.B,x,LI(G,B),!1)}; ki=function(G,B){this.j=G;this.X=B}; RDb=function(G,B,a){var V=[];a=g.m(a);for(var x=a.next();!x.done;x=a.next())if((x=x.value)&&x.url){var h=VF(x.type,"medium","0");V.push(new ki(h,x.url))}return W_(G.B,V,LI(G,B),!1)}; Zq9=function(G,B){var a=[],V=VF(B.type,"auto",B.itag);a.push(new ki(V,B.url));return W_(G.B,a,!1,!0)}; $a_=function(G){return G&&rPc[G]?rPc[G]:null}; XvX=function(G){if(G=G.commonConfig)this.url=G.url,this.urlQueryOverride=G.urlQueryOverride,G.ustreamerConfig&&(this.UC=eN(G.ustreamerConfig)||void 0)}; qwV=function(G,B){var a;if(B=B==null?void 0:(a=B.watchEndpointSupportedOnesieConfig)==null?void 0:a.html5PlaybackOnesieConfig)G.K_=new XvX(B)}; g.Nk=function(G){G=G===void 0?{}:G;this.languageCode=G.languageCode||"";this.languageName=G.languageName||null;this.kind=G.kind||"";this.name=G.name===void 0?null:G.name;this.displayName=G.displayName||null;this.id=G.id||null;this.j=G.is_servable||!1;this.isTranslateable=G.is_translateable||!1;this.url=G.url||null;this.vssId=G.vss_id||"";this.isDefault=G.is_default||!1;this.translationLanguage=G.translationLanguage||null;this.xtags=G.xtags||"";this.captionId=G.captionId||""}; g.C$=function(G){var B={languageCode:G.languageCode,languageName:G.languageName,displayName:g.dt(G),kind:G.kind,name:G.name,id:G.id,is_servable:G.j,is_default:G.isDefault,is_translateable:G.isTranslateable,vss_id:G.vssId};G.xtags&&(B.xtags=G.xtags);G.captionId&&(B.captionId=G.captionId);G.translationLanguage&&(B.translationLanguage=G.translationLanguage);return B}; g.zk=function(G){return G.translationLanguage?G.translationLanguage.languageCode:G.languageCode}; g.uZK=function(G){var B=G.vssId;G.translationLanguage&&B&&(B="t"+B+"."+g.zk(G));return B}; g.dt=function(G){var B=[];if(G.displayName)B.push(G.displayName);else{var a=G.languageName||"";B.push(a);G.kind==="asr"&&a.indexOf("(")===-1&&B.push(" (Subt\u00edtulos autom\u00e1ticos)");G.name&&B.push(" - "+G.name)}G.translationLanguage&&B.push(" >> "+G.translationLanguage.languageName);return B.join("")}; sVz=function(G,B,a,V){G||(G=B&&QVc.hasOwnProperty(B)&&LYB.hasOwnProperty(B)?LYB[B]+"_"+QVc[B]:void 0);B=G;if(!B)return null;G=B.match(TSA);if(!G||G.length!==5)return null;if(G=B.match(TSA)){var x=Number(G[3]),h=[7,8,10,5,6];G=!(Number(G[1])===1&&x===8)&&h.indexOf(x)>=0}else G=!1;return a||V||G?B:null}; tC=function(G,B){for(var a={},V=g.m(Object.keys(FYy)),x=V.next();!x.done;x=V.next()){x=x.value;var h=B?B+x:x;h=G[h+"_webp"]||G[h];g.GL(h)&&(a[FYy[x]]=h)}return a}; m5=function(G){var B={};if(!G||!G.thumbnails)return B;G=G.thumbnails.filter(function(w){return!!w.url}); G.sort(function(w,K){return w.width-K.width||w.height-K.height}); for(var a=g.m(Object.keys(JPX)),V=a.next();!V.done;V=a.next()){var x=Number(V.value);V=JPX[x];for(var h=g.m(G),e=h.next();!e.done;e=h.next())if(e=e.value,e.width>=x){x=APB(e.url);g.GL(x)&&(B[V]=x);break}}(G=G.pop())&&G.width>=1280&&(G=APB(G.url),g.GL(G)&&(B["maxresdefault.jpg"]=G));return B}; APB=function(G){return G.startsWith("//")?"https:"+G:G}; I0=function(G){return G&&G.baseUrl||""}; gt=function(G){G=g.x4(G);for(var B=g.m(Object.keys(G)),a=B.next();!a.done;a=B.next()){a=a.value;var V=G[a];G[a]=Array.isArray(V)?V[0]:V}return G}; YwY=function(G,B){G.botguardData=B.playerAttestationRenderer.botguardData;B=B.playerAttestationRenderer.challenge;B!=null&&(G.N4=B)}; o8x=function(G,B){B=g.m(B);for(var a=B.next();!a.done;a=B.next()){a=a.value;var V=a.interstitials.map(function(e){var w=g.u(e,iqV);if(w)return{is_yto_interstitial:!0,raw_player_response:w};if(e=g.u(e,PjB))return Object.assign({is_yto_interstitial:!0},ah(e))}); V=g.m(V);for(var x=V.next();!x.done;x=V.next())switch(x=x.value,a.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":G.interstitials=G.interstitials.concat({time:0,playerVars:x,I9:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":G.interstitials=G.interstitials.concat({time:0x7ffffffffffff,playerVars:x,I9:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var h=Number(a.podConfig.timeToInsertAtMillis);G.interstitials=G.interstitials.concat({time:h,playerVars:x, I9:h===0?5:7})}}}; MeB=function(G,B){if(B=B.find(function(a){return!(!a||!a.tooltipRenderer)}))G.tooltipRenderer=B.tooltipRenderer}; GEB=function(G,B){B.subscribeCommand&&(G.subscribeCommand=B.subscribeCommand);B.unsubscribeCommand&&(G.unsubscribeCommand=B.unsubscribeCommand);B.addToWatchLaterCommand&&(G.addToWatchLaterCommand=B.addToWatchLaterCommand);B.removeFromWatchLaterCommand&&(G.removeFromWatchLaterCommand=B.removeFromWatchLaterCommand);B.getSharePanelCommand&&(G.getSharePanelCommand=B.getSharePanelCommand)}; Bmb=function(G,B){B!=null?(G.Q0=B,G.yd=!0):(G.Q0="",G.yd=!1)}; p$=function(G,B){this.type=G||"";this.id=B||""}; g.Uy=function(G){return new p$(G.substring(0,2),G.substring(2))}; g.Oy=function(G,B){this.Rn=G;this.author="";this.S2=null;this.playlistLength=0;this.j=this.sessionData=null;this.Y={};this.title="";if(B){this.author=B.author||B.playlist_author||"";this.title=B.playlist_title||"";if(G=B.session_data)this.sessionData=G9(G,"&");var a;this.j=((a=B.thumbnail_ids)==null?void 0:a.split(",")[0])||null;this.Y=tC(B,"playlist_");this.videoId=B.video_id||void 0;if(a=B.list)switch(B.listType){case "user_uploads":this.playlistId=(new p$("UU","PLAYER_"+a)).toString();break;default:if(G= B.playlist_length)this.playlistLength=Number(G)||0;this.playlistId=g.Uy(a).toString();if(B=B.video)this.videoId=(B[0]||null).video_id||void 0}else B.playlist&&(this.playlistLength=B.playlist.toString().split(",").length)}}; g.Ey=function(G,B){this.Rn=G;this.lq=this.author="";this.S2=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Do=this.lengthText="";this.sessionData=null;this.Y={};this.title="";if(B){this.ariaLabel=B.aria_label||void 0;this.author=B.author||"";this.lq=B.lq||"";if(G=B.endscreen_autoplay_session_data)this.S2=G9(G,"&");this.hT=B.hT;this.isLivePlayback=B.live_playback==="1";this.isUpcoming=!!B.isUpcoming;if(G=B.length_seconds)this.lengthSeconds=typeof G==="string"?Number(G):G;this.lengthText= B.lengthText||"";this.Do=B.Do||"";this.publishedTimeText=B.publishedTimeText||void 0;if(G=B.session_data)this.sessionData=G9(G,"&");this.shortViewCount=B.short_view_count_text||void 0;this.Y=tC(B);this.title=B.title||"";this.videoId=B.docid||B.video_id||B.videoId||B.id||void 0;this.watchUrl=B.watchUrl||void 0}}; aUX=function(G){var B,a,V=(B=G.getWatchNextResponse())==null?void 0:(a=B.contents)==null?void 0:a.twoColumnWatchNextResults,x,h,e,w,K;G=(x=G.getWatchNextResponse())==null?void 0:(h=x.playerOverlays)==null?void 0:(e=h.playerOverlayRenderer)==null?void 0:(w=e.endScreen)==null?void 0:(K=w.watchNextEndScreenRenderer)==null?void 0:K.results;if(!G){var l,k;G=V==null?void 0:(l=V.endScreen)==null?void 0:(k=l.endScreen)==null?void 0:k.results}return G}; g.bl=function(G){var B,a,V;G=g.u((B=G.getWatchNextResponse())==null?void 0:(a=B.playerOverlays)==null?void 0:(V=a.playerOverlayRenderer)==null?void 0:V.decoratedPlayerBarRenderer,jt);return g.u(G==null?void 0:G.playerBar,VhB)}; x0y=function(G){this.j=G.playback_progress_0s_url;this.C=G.playback_progress_2s_url;this.X=G.playback_progress_10s_url}; hg9=function(){if(ym===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(B){}a:{try{var G=!!self.localStorage}catch(B){G=!1}if(G&&(G=g.ZA(g.Jt()+"::yt-player"))){ym=new qR(G);break a}ym=void 0}}return ym}; g.c_=function(){var G=hg9();if(!G)return{};try{var B=G.get("yt-player-lv");return JSON.parse(B||"{}")}catch(a){return{}}}; g.egH=function(G){var B=hg9();B&&(G=JSON.stringify(G),B.set("yt-player-lv",G))}; g.n$=function(G){return g.c_()[G]||0}; g.f$=function(G,B){var a=g.c_();B!==a[G]&&(B!==0?a[G]=B:delete a[G],g.egH(a))}; g.H_=function(G){return g.v(function(B){return B.return(g.LN(Wyb(),G))})}; DD=function(G,B,a,V,x,h,e,w){var K,l,k,N,d,C;return g.v(function(z){switch(z.j){case 1:return K=g.n$(G),K===4?z.return(4):g.f(z,g.PL(),2);case 2:l=z.X;if(!l)throw g.pN("wiac");if(!w||e===void 0){z.kf(3);break}return g.f(z,wfB(w,e),4);case 4:e=z.X;case 3:return k=a.lastModified||"0",g.f(z,g.H_(l),5);case 5:return N=z.X,g.UA(z,6),v_++,g.f(z,g.HL(N,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",hs:!0},function(p){if(h!==void 0&&e!==void 0){var O=""+G+"|"+B.id+"|"+k+"|"+String(h).padStart(10, "0");O=g.vL(p.objectStore("media"),e,O)}else O=g.OV.resolve(void 0);var b=Ky_(G,B.rG()),c=Ky_(G,!B.rG()),H={fmts:lU_(V),format:a||{}};b=g.vL(p.objectStore("index"),H,b);var R=V.downloadedEndTime===-1;H=R?p.objectStore("index").get(c):g.OV.resolve(void 0);var q={fmts:"music",format:{}};p=R&&x&&!B.rG()?g.vL(p.objectStore("index"),q,c):g.OV.resolve(void 0);return g.OV.all([p,H,O,b]).then(function(A){A=g.m(A);A.next();A=A.next().value;v_--;var J=g.n$(G);if(J!==4&&R&&x||A!==void 0&&g.kEg(A.fmts))J=1,g.f$(G, J);return J})}),8); case 8:return z.return(z.X);case 6:d=g.jB(z);v_--;C=g.n$(G);if(C===4)return z.return(C);g.f$(G,4);throw d;}})}; g.NmV=function(G){var B,a;return g.v(function(V){if(V.j==1)return g.f(V,g.PL(),2);if(V.j!=3){B=V.X;if(!B)throw g.pN("ri");return g.f(V,g.H_(B),3)}a=V.X;return V.return(g.HL(a,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(x){var h=IDBKeyRange.bound(G+"|",G+"~");return x.objectStore("index").getAll(h).then(function(e){return e.map(function(w){return w?w.format:{}})})}))})}; Czz=function(G,B,a,V,x){var h,e,w;return g.v(function(K){if(K.j==1)return g.f(K,g.PL(),2);if(K.j!=3){h=K.X;if(!h)throw g.pN("rc");return g.f(K,g.H_(h),3)}e=K.X;w=g.HL(e,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(l){var k=""+G+"|"+B+"|"+a+"|"+String(V).padStart(10,"0");return l.objectStore("media").get(k)}); return x?K.return(w.then(function(l){if(l===void 0)throw Error("No data from indexDb");return d0K(x,l)}).catch(function(l){throw new g.FI("Error while reading chunk: "+l.name+", "+l.message); })):K.return(w)})}; g.kEg=function(G){return G?G==="music"?!0:G.includes("dlt=-1")||!G.includes("dlt="):!1}; Ky_=function(G,B){return""+G+"|"+(B?"v":"a")}; lU_=function(G){var B={};return Bh((B.dlt=G.downloadedEndTime.toString(),B.mket=G.maxKnownEndTime.toString(),B.avbr=G.averageByteRate.toString(),B))}; thX=function(G){var B={},a={};G=g.m(G);for(var V=G.next();!V.done;V=G.next()){var x=V.value,h=x.split("|");x.match(g.zgB)?(V=Number(h.pop()),isNaN(V)?a[x]="?":(h=h.join("|"),(x=B[h])?(h=x[x.length-1],V===h.end+1?h.end=V:x.push({start:V,end:V})):B[h]=[{start:V,end:V}])):a[x]="?"}G=g.m(Object.keys(B));for(V=G.next();!V.done;V=G.next())V=V.value,a[V]=B[V].map(function(e){return e.start+"-"+e.end}).join(","); return a}; St=function(G){g.wI.call(this);this.j=null;this.C=new Xf;this.j=null;this.L=new Set;this.crossOrigin=G||""}; m0X=function(G,B,a){for(a=R0(G,a);a>=0;){var V=G.levels[a];if(V.isLoaded(ZD(V,B))&&(V=g.rt(V,B)))return V;a--}return g.rt(G.levels[0],B)}; gEA=function(G,B,a){a=R0(G,a);for(var V,x;a>=0;a--)if(V=G.levels[a],x=ZD(V,B),!V.isLoaded(x)){V=G;var h=a,e=h+"-"+x;V.L.has(e)||(V.L.add(e),V.C.enqueue(h,{Vc:h,A9:x}))}IUA(G)}; IUA=function(G){if(!G.j&&!G.C.isEmpty()){var B=G.C.remove();G.j=pfy(G,B)}}; pfy=function(G,B){var a=document.createElement("img");G.crossOrigin&&(a.crossOrigin=G.crossOrigin);a.src=G.levels[B.Vc].Ex(B.A9);a.onload=function(){var V=B.Vc,x=B.A9;G.j!==null&&(G.j.onload=null,G.j=null);V=G.levels[V];V.loaded.add(x);IUA(G);var h=V.columns*V.rows;x*=h;V=Math.min(x+h-1,V.AL()-1);x=[x,V];G.publish("l",x[0],x[1])}; return a}; g.$i=function(G,B,a,V){this.level=G;this.G=B;this.loaded=new Set;this.level=G;this.G=B;G=a.split("#");this.width=Math.floor(Number(G[0]));this.height=Math.floor(Number(G[1]));this.frameCount=Math.floor(Number(G[2]));this.columns=Math.floor(Number(G[3]));this.rows=Math.floor(Number(G[4]));this.j=Math.floor(Number(G[5]));this.C=G[6];this.signature=G[7];this.videoLength=V}; ZD=function(G,B){return Math.floor(B/(G.columns*G.rows))}; g.rt=function(G,B){B>=G.sG()&&G.wD();var a=ZD(G,B),V=G.columns*G.rows,x=B%V;B=x%G.columns;x=Math.floor(x/G.columns);var h=G.wD()+1-V*a;if(h1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; U0z=function(G,B,a){return(G=G.levels[B])?G.jD(a):-1}; R0=function(G,B){var a=G.G.get(B);if(a)return a;a=G.levels.length;for(var V=0;V=B)return G.G.set(B,V),V;G.G.set(B,a-1);return a-1}; ul=function(G,B,a,V){a=a.split("#");a=[a[1],a[2],0,a[3],a[4],-1,a[0],""].join("#");g.$i.call(this,G,B,a,0);this.X=null;this.B=V?2:0}; Qm=function(G,B,a,V){qk.call(this,G,0,void 0,B,!(V===void 0||!V));for(G=0;G(a!=null?a:50)&&(a=H_B.shift())&&Yi.delete(a),a=x),x!==a&&G.PF("ssei","dcpn_"+x+"_"+a+"_"+G.clientPlaybackNonce),a)}; FR=function(G,B){var a=B.raw_watch_next_response;if(!a){var V=B.watch_next_response;V&&(a=JSON.parse(V))}if(a){G.SJ=a;var x=G.SJ.playerCueRangeSet;x&&g.il(G,x);var h=G.SJ.playerOverlays;if(h){var e=h.playerOverlayRenderer;if(e){var w=e.autonavToggle;w&&(G.autoplaySwitchButtonRenderer=g.u(w,vEc),G.S("web_player_autonav_use_server_provided_state")&&P_(G)&&(G.autonavState=G.autoplaySwitchButtonRenderer.enabled?2:1));var K=e.videoDetails;if(K){var l=K.embeddedPlayerOverlayVideoDetailsRenderer;var k=K.playerOverlayVideoDetailsRenderer; k&&(k.title&&(B.title=g.tU(k.title)),k.subtitle&&(B.subtitle=g.tU(k.subtitle)))}g.SN(G.Rn)&&(G.PD=!!e.addToMenu);D0_(G,e.shareButton);e.startPosition&&e.endPosition&&(G.progressBarStartPosition=e.startPosition,G.progressBarEndPosition=e.endPosition);var N=e.gatedActionsOverlayRenderer;N&&(G.t8=g.u(N,SmX));var d,C,z,p=g.u((d=G.getWatchNextResponse())==null?void 0:(C=d.playerOverlays)==null?void 0:(z=C.playerOverlayRenderer)==null?void 0:z.infoPanel,RgB);if(p){G.HI=Number(p==null?void 0:p.durationMs)|| NaN;if(p==null?0:p.infoPanelOverviewViewModel)G.IG=p==null?void 0:p.infoPanelOverviewViewModel;if(p==null?0:p.infoPanelDetailsViewModel)G.ou=p==null?void 0:p.infoPanelDetailsViewModel}G.showSeekingControls=!!e.showSeekingControls}}var O,b,c=(O=G.getWatchNextResponse())==null?void 0:(b=O.contents)==null?void 0:b.twoColumnWatchNextResults;if(c){var H=c.desktopOverlay&&g.u(c.desktopOverlay,Z_y);H&&(H.suppressShareButton&&(G.showShareButton=!1),H.suppressWatchLaterButton&&(G.PD=!1))}l&&r4B(G,B,l);var R= xS(0,B.autoplay_count),q=G.getWatchNextResponse(),A,J=(A=q.contents)==null?void 0:A.twoColumnWatchNextResults,xB,Wz,GK,Q=(xB=q.playerOverlays)==null?void 0:(Wz=xB.playerOverlayRenderer)==null?void 0:(GK=Wz.autoplay)==null?void 0:GK.playerOverlayAutoplayRenderer,M=aUX(G),I,L=(I=q.contents)==null?void 0:I.singleColumnWatchNextResults;if(L){var ux;if(((ux=L.autoplay)==null?0:ux.autoplay)&&!L.playlist){var U3=L.autoplay.autoplay.sets,dl={},cz=new g.Ey(G.U()),Pz=null,hJ;if(U3){for(var tJ=g.m(U3),E=tJ.next();!E.done;E= tJ.next()){var y=E.value.autoplayVideoRenderer;if(y&&y.compactVideoRenderer){Pz=y.compactVideoRenderer;break}}if(hJ=U3[0].autoplayVideo){var n=hJ.clickTrackingParams;n&&(dl.itct=n);dl.autonav="1";dl.playnext=String(R)}}else dl.feature="related-auto";var D=g.u(hJ,g.o0);if(Pz){cz.videoId=Pz.videoId;var Z=Pz.shortBylineText;Z&&(cz.author=g.tU(Z));var Bz=Pz.title;Bz&&(cz.title=g.tU(Bz))}else D!=null&&D.videoId&&(cz.videoId=D.videoId);cz.S2=dl;G.suggestions=[];G.b4=cz}}if(M){for(var hg=[],eB=g.m(M),S= eB.next();!S.done;S=eB.next()){var kB=S.value,tg=void 0,KV=null;if(kB.endScreenVideoRenderer){var vz=kB.endScreenVideoRenderer,Cs=vz.title;KV=new g.Ey(G.U());KV.videoId=vz.videoId;KV.lengthSeconds=vz.lengthInSeconds||0;var Xh=vz.publishedTimeText;Xh&&(KV.publishedTimeText=g.tU(Xh));var dK=vz.shortBylineText;dK&&(KV.author=g.tU(dK));var sA=vz.shortViewCountText;sA&&(KV.shortViewCount=g.tU(sA));if(Cs){KV.title=g.tU(Cs);var qU=Cs.accessibility;if(qU){var K0=qU.accessibilityData;K0&&K0.label&&(KV.ariaLabel= K0.label)}}var vq=vz.navigationEndpoint;if(vq){tg=vq.clickTrackingParams;var F2=g.u(vq,g.o0),Ko=g.u(vq,g.rI);F2?KV.hT=F2:Ko!=null&&(KV.watchUrl=Ko.url)}var sz=vz.thumbnailOverlays;if(sz)for(var uk=g.m(sz),Fm=uk.next();!Fm.done;Fm=uk.next()){var Uz=Fm.value.thumbnailOverlayTimeStatusRenderer;if(Uz)if(Uz.style==="LIVE"){KV.isLivePlayback=!0;break}else if(Uz.style==="UPCOMING"){KV.isUpcoming=!0;break}}KV.Y=m5(vz.thumbnail)}else if(kB.endScreenPlaylistRenderer){var lQ=kB.endScreenPlaylistRenderer,SU= lQ.navigationEndpoint;if(!SU)continue;var d3=g.u(SU,g.o0);if(!d3)continue;var Rz=d3.videoId;KV=new g.Oy(G.U());KV.playlistId=lQ.playlistId;KV.playlistLength=Number(lQ.videoCount)||0;KV.j=Rz||null;KV.videoId=Rz;var Zf=lQ.title;Zf&&(KV.title=g.tU(Zf));var rj=lQ.shortBylineText;rj&&(KV.author=g.tU(rj));tg=SU.clickTrackingParams;KV.Y=m5(lQ.thumbnail)}KV&&(tg&&(KV.sessionData={itct:tg}),hg.push(KV))}G.suggestions=hg}if(Q){G.jb=!!Q.preferImmediateRedirect;G.n3=G.n3||!!Q.webShowNewAutonavCountdown;G.T2= G.T2||!!Q.webShowBigThumbnailEndscreen;if(G.n3||G.T2){var c2=J||null,o5=new g.Ey(G.U());o5.videoId=Q.videoId;var Jw=Q.videoTitle;if(Jw){o5.title=g.tU(Jw);var Vj=Jw.accessibility;if(Vj){var Er=Vj.accessibilityData;Er&&Er.label&&(o5.ariaLabel=Er.label)}}var ql=Q.byline;ql&&(o5.author=g.tU(ql));var Cd=Q.publishedTimeText;Cd&&(o5.publishedTimeText=g.tU(Cd));var O4=Q.shortViewCountText;O4&&(o5.shortViewCount=g.tU(O4));var E4=Q.thumbnailOverlays;if(E4)for(var jg=g.m(E4),hl=jg.next();!hl.done;hl=jg.next()){var wx= hl.value.thumbnailOverlayTimeStatusRenderer;if(wx)if(wx.style==="LIVE"){o5.isLivePlayback=!0;break}else if(wx.style==="UPCOMING"){o5.isUpcoming=!0;break}else if(wx.style==="DEFAULT"&&wx.text){o5.lengthText=g.tU(wx.text);var eI=wx.text.accessibility;if(eI){var W4=eI.accessibilityData;W4&&W4.label&&(o5.Do=W4.label||"")}break}}o5.Y=m5(Q.background);var bV=Q.nextButton;if(bV){var yF=bV.buttonRenderer;if(yF){var cZ=yF.navigationEndpoint;if(cZ){var ne=g.u(cZ,g.o0);ne&&(o5.hT=ne)}}}if(Q.topBadges){var fe= Q.topBadges[0];if(fe){var HZ=g.u(fe,$0K);HZ&&HZ.style==="BADGE_STYLE_TYPE_PREMIUM"&&(o5.bRr=!0)}}var FV=Q.alternativeTitle;FV&&(o5.lq=g.tU(FV));var j6={autonav:"1",playnext:String(R)};o5.playlistId&&(j6.autoplay="1");if(c2){var JQ,J$,w5,vZ,KR=(JQ=c2.autoplay)==null?void 0:(J$=JQ.autoplay)==null?void 0:(w5=J$.sets)==null?void 0:(vZ=w5[0])==null?void 0:vZ.autoplayVideo;if(KR){var DO=KR.clickTrackingParams;DO&&(j6.itct=DO);var l1=g.u(KR,g.o0);l1&&(o5.Sb=l1)}}else if(Q){var Sg,Rr,ZO,rZ=(Sg=Q.nextButton)== null?void 0:(Rr=Sg.buttonRenderer)==null?void 0:(ZO=Rr.navigationEndpoint)==null?void 0:ZO.clickTrackingParams;rZ&&(j6.itct=rZ)}j6.itct||(j6.feature="related-auto");o5.S2=j6;G.suggestions||(G.suggestions=[]);G.b4=o5}Q.countDownSecs!=null&&(G.HX=Q.countDownSecs*1E3);Q.countDownSecsForFullscreen!=null&&(G.GY=Q.countDownSecsForFullscreen>=0?Q.countDownSecsForFullscreen*1E3:-1);G.S("web_autonav_color_transition")&&Q.watchToWatchTransitionRenderer&&(G.watchToWatchTransitionRenderer=g.u(Q.watchToWatchTransitionRenderer, Xf9))}var kr=aUX(G);if(kr){var Us,$b,NO,d5=kr==null?void 0:(Us=kr[0])==null?void 0:($b=Us.endScreenVideoRenderer)==null?void 0:(NO=$b.navigationEndpoint)==null?void 0:NO.clickTrackingParams,Xv=g.Mk(G);d5&&Xv&&(Xv.sessionData={itct:d5})}G.SJ.currentVideoThumbnail&&(G.Y=m5(G.SJ.currentVideoThumbnail));var AQ,qZ,uV,YX,QF,Os=(AQ=G.SJ)==null?void 0:(qZ=AQ.contents)==null?void 0:(uV=qZ.twoColumnWatchNextResults)==null?void 0:(YX=uV.results)==null?void 0:(QF=YX.results)==null?void 0:QF.contents;if(Os&&Os[1]){var Le, T2,yP,Ul,$O=(Le=Os[1].videoSecondaryInfoRenderer)==null?void 0:(T2=Le.owner)==null?void 0:(yP=T2.videoOwnerRenderer)==null?void 0:(Ul=yP.thumbnail)==null?void 0:Ul.thumbnails;$O&&$O.length&&(G.profilePicture=$O[$O.length-1].url)}var s4=WH(B),CR,Es=(CR=G.getWatchNextResponse())==null?void 0:CR.onResponseReceivedEndpoints;if(Es)for(var jq=g.m(Es),zG=jq.next();!zG.done;zG=jq.next()){var XN=zG.value;g.u(XN,GC)&&(G.pj=g.u(XN,GC));var b_=g.u(XN,qmb),Fv=void 0;if((Fv=b_)==null?0:Fv.entityKeys)G.Pl=b_.entityKeys|| [],b_.visibleOnLoadKeys&&(G.visibleOnLoadKeys=b_.visibleOnLoadKeys)}if(G.S("web_key_moments_markers")){var PF=g.BF.getState().entities,lL=g.WS("visibility_override","markersVisibilityOverrideEntity");var u4=Kp(PF,"markersVisibilityOverrideEntity",lL);G.Yf=(u4==null?void 0:u4.videoId)===(G.videoId||s4)&&(u4==null?0:u4.visibilityOverrideMarkersKey)?u4.visibilityOverrideMarkersKey:G.visibleOnLoadKeys;G.visibleOnLoadKeys=[].concat(g.U(G.Yf))}}}; P_=function(G){var B;return((B=G.autoplaySwitchButtonRenderer)==null?void 0:B.enabled)!==void 0}; aS=function(G){return!!(G.C&&G.C.videoInfos&&G.C.videoInfos.length)}; g.WF=function(G){var B=G.V;G.S("html5_gapless_unlimit_format_selection")&&V3(G)&&(B=!1);var a=!!G.j&&G.j.SE,V=G.Rn,x=G.eA(),h=xX(G),e=G.eJ,w=B,K=G.isOtf();B=G.o_();var l=G.Vb,k=G.getUserAudio51Preference(),N=hQ(G),d=new dNc(V);if(V.Ef()||V.S("html5_logging_format_selection"))d.X=!0;d.Er=h;d.eJ=e&&V.W;d.LN=k;g.QZ("windows nt 5.1")&&!g.XB&&(d.Lc=!0);if(h=x)h=g.Mq(V)?daV(V):!1;h&&(d.XJ=!0);w&&(d.Lc=!0,d.Cd=!0);K&&!V.S("html5_otf_prefer_vp9")&&(d.Lc=!0);V.playerStyle==="picasaweb"&&(K&&(d.Lc=!1),d.HS= !1);l&&(d.Lc=!0);I1(V.B,gf.CHANNELS)&&(V.S("html5_enable_ac3")&&(d.G=!0),V.S("html5_enable_eac3")&&(d.B=!0),V.S("html5_enable_ac3_gapless")&&(d.Qb=!0));V.S("html5_block_8k_hfr")&&(d.MB=!0);d.L=g.kf(V.experiments,"html5_max_selectable_quality_ordinal");d.W=g.kf(V.experiments,"html5_min_selectable_quality_ordinal");Mp&&(d.YD=480);if(a||x)d.HS=!1;d.Vb=!1;d.disableAv1=N;a=fw(V,d.j,void 0,d.disableAv1);a>0&&a<2160&&(tj()||V.S("html5_format_hybridization"))&&(d.j.supportsChangeType=+tj(),d.W0=a);a>=2160&& (d.Zx=!0);uQc()&&(d.j.serveVp9OverAv1IfHigherRes=0,d.fd=!1);d.o_=B;d.qB=g.Jx||Gp()&&!B?!1:!0;d.V=V.S("html5_format_hybridization");d.fh=V.S("html5_disable_encrypted_vp9_live_non_2k_4k");eO(G)&&(d.m3=G.S("html5_prefer_language_over_codec"));sq()&&G.playerResponse&&G.playerResponse.playerConfig&&G.playerResponse.playerConfig.webPlayerConfig&&G.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(d.G=!0,d.B=!0);G.V&&G.isAd()&&(G.Z1&&(d.zH=G.Z1),G.kR&&(d.C=G.kR));d.SJ=G.isLivePlayback&& G.LM()&&G.Rn.S("html5_drm_live_audio_51");d.Yf=G.u$;return G.MD=d}; hQ=function(G){return G.Rn.S("html5_disable_av1")||G.S("html5_gapless_shorts_disable_av1")&&V3(G)?!0:!1}; uKg=function(G){X_("drm_pb_s",void 0,G.qB);G.MB||G.j&&df(G.j);var B={};G.j&&(B=Mwc(G.Jb,g.WF(G),G.Rn.B,G.j,function(a){return G.publish("ctmp","fmtflt",a)},!0,new Set)); B=new sT(B,G.Rn,G.TR,G.useCobaltWidevine?sq()?wB(G):!1:!1,function(a,V){G.FJ(a,V)}); g.X(G,B);G.mf=!1;G.loading=!0;jFX(B,function(a){X_("drm_pb_f",void 0,G.qB);for(var V=g.m(a),x=V.next();!x.done;x=V.next())switch(x=x.value,x.flavor){case "fairplay":x.MB=G.MB;x.CQ=G.CQ;x.Ig=G.Ig;break;case "widevine":x.hY=G.hY}G.gt=a;if(G.gt.length>0&&(G.B=G.gt[0],G.Rn.Ef())){a={};V=g.m(Object.entries(G.B.j));for(x=V.next();!x.done;x=V.next()){var h=g.m(x.value);x=h.next().value;h=h.next().value;var e="unk";(x=x.match(/(.*)codecs="(.*)"/))&&(e=x[2]);a[e]=h}G.FJ("drmProbe",a)}G.PN()})}; Q9K=function(G,B){if(B.length===0||K9(G))return null;lv(G,"html5_enable_cobalt_experimental_vp9_decoder")&&(ye=!0);var a=G.Ji;var V=G.lengthSeconds,x=G.isLivePlayback,h=G.Ai,e=G.Rn,w=obx(B);if(x||h){e=e.experiments;V=new kD("",e,!0);V.X=!h;V.SE=!0;V.isManifestless=!0;V.isLive=!h;V.Ai=h;B=g.m(B);for(x=B.next();!x.done;x=B.next()){var K=x.value;x=Cw(K,a);w=cU(K);w=tA(w.mS||K.url||"",w.Va,w.s);var l=w.get("id");l&&l.includes("%7E")&&(V.Y=!0);var k=void 0;l=(k=e)==null?void 0:k.Or("html5_max_known_end_time_rebase"); k=Number(K.targetDurationSec||5);K=Number(K.maxDvrDurationSec||14400);var N=Number(w.get("mindsq")||w.get("min_sq")||"0"),d=Number(w.get("maxdsq")||w.get("max_sq")||"0")||Infinity;V.Qg=V.Qg||N;V.SK=V.SK||d;var C=!ar(x.mimeType);w&&wX(V,new Yp(w,x,{zm:k,uF:C,XT:K,Qg:N,SK:d,qb:300,Ai:h,Zp:l}))}a=V}else if(w==="FORMAT_STREAM_TYPE_OTF"){V=V===void 0?0:V;h=new kD("",e.experiments,!1);h.duration=V||0;e=g.m(B);for(V=e.next();!V.done;V=e.next())V=V.value,B=Cw(V,a,h.duration),x=cU(V),(x=tA(x.mS||V.url||"", x.Va,x.s))&&(B.streamType==="FORMAT_STREAM_TYPE_OTF"?wX(h,new iM(x,B,"sq/0")):wX(h,new hA(x,B,fE(V.initRange),fE(V.indexRange))));h.isOtf=!0;a=h}else{V=V===void 0?0:V;h=new kD("",e.experiments,!1);h.duration=V||0;e=g.m(B);for(V=e.next();!V.done;V=e.next())w=V.value,V=Cw(w,a,h.duration),B=fE(w.initRange),x=fE(w.indexRange),l=cU(w),(w=tA(l.mS||w.url||"",l.Va,l.s))&&wX(h,new hA(w,V,B,x));a=h}h=G.isLivePlayback&&!G.Ai&&!G.LN&&!G.isPremiere;G.S("html5_live_head_playable")&&(!kX(G)&&h&&G.FJ("missingLiveHeadPlayable", {}),G.Rn.zH==="yt"&&(a.Er=!0));return a}; K9=function(G){return sq()?!wB(G):JM()?!(!G.MB||!G.S("html5_enable_safari_fairplay")&&GQ()):!1}; wB=function(G){return G.S("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.il=function(G,B){B=g.m(B);for(var a=B.next();!a.done;a=B.next())if(a=a.value,a.cueRangeSetIdentifier){var V=void 0;G.Hj.set(a.cueRangeSetIdentifier,(V=a.playerCueRanges)!=null?V:[])}}; NJ=function(G){return!(!G.j||!G.j.isManifestless)}; dB=function(G){return G.S_?G.isLowLatencyLiveStream&&G.j!=null&&pw(G.j)>=5:G.isLowLatencyLiveStream&&G.j!=void 0&&pw(G.j)>=5}; Lyg=function(G){return sq()&&wB(G)?!1:K9(G)&&(g.jQ(G.Rn)?!G.isLivePlayback:G.hlsvp)||!GQ()||G.Wj?!0:!1}; Fyc=function(G){G.loading=!0;G.Ki=!1;if(Tm_(G))g.NmV(G.videoId).then(function(V){s9y(G,V)}).then(function(){G.PN()}); else{Mf(G.w7)||g.Zb(new g.FI("DASH MPD Origin invalid: ",G.w7));var B=G.w7,a=g.kf(G.Rn.experiments,"dash_manifest_version")||4;B=g.LJ(B,{mpd_version:a});G.isLowLatencyLiveStream&&G.latencyClass!=="NORMAL"||(B=g.LJ(B,{pacing:0}));eqH(B,G.Rn.experiments,G.isLivePlayback).then(function(V){G.TH()||(C9(G,V,!0),X_("mrc",void 0,G.qB),G.PN())},function(V){G.TH()||(G.loading=!1,G.publish("dataloaderror",new yH("manifest.net.retryexhausted",{backend:"manifest", rc:V.status},1)))}); X_("mrs",void 0,G.qB)}}; s9y=function(G,B){var a=B.map(function(K){return K.itag}),V; if((V=G.playerResponse)!=null&&V.streamingData){V=[];if(G.S("html5_offline_always_use_local_formats")){a=0;for(var x=g.m(B),h=x.next();!h.done;h=x.next()){h=h.value;var e=Object.assign({},h);e.signatureCipher="";V.push(e);e=g.m(G.playerResponse.streamingData.adaptiveFormats);for(var w=e.next();!w.done;w=e.next())if(w=w.value,h.itag===w.itag&&h.xtags===w.xtags){a+=1;break}}ak&&(k=C.getInfo().audio.numChannels)}k>2&&G.FJ("hlschl",{mn:k});var O;((O=G.MD)==null?0:O.X)&&G.FJ("hlsfmtaf",{itags:N.join(".")});var b;if(G.S("html5_enable_vp9_fairplay")&&((b=G.B)==null?0:rX(b)))for(G.FJ("drm",{sbdlfbk:1}),k=g.m(G.gt),N=k.next();!N.done;N=k.next())if(N=N.value,ZE(N)){G.B=N;break}IS(G,l)})}return vh()}; Pz9=function(G){if(G.isExternallyHostedPodcast&&G.Da){var B=mB(G.Da);if(!B[0])return vh();G.X9=B[0];return Zq9(G.Rn,B[0]).then(function(a){IS(G,a)})}return G.AY&&G.lZ?RDb(G.Rn,G.isAd(),G.AY).then(function(a){IS(G,a)}):vh()}; Mhy=function(G){if(G.isExternallyHostedPodcast)return vh();var B=mB(G.Da,G.xH);if(G.hlsvp){var a=O__(G.hlsvp,G.clientPlaybackNonce,G.Qv);B.push(a)}return Swc(G.Rn,G.isAd(),B,oEg(G)).then(function(V){IS(G,V)})}; IS=function(G,B){G.R4=B;G.VD(new wf(g.br(G.R4,function(a){return a.getInfo()})))}; oEg=function(G){var B={cpn:G.clientPlaybackNonce,c:G.Rn.j.c,cver:G.Rn.j.cver};G.HF&&(B.ptk=G.HF,B.oid=G.nj,B.ptchn=G.V7,B.pltype=G.gs,G.u4&&(B.m=G.u4));return B}; g.gB=function(G){return K9(G)&&G.MB?(G={},G.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",G):G.X&&G.X.Ji||null}; Gbg=function(G){var B=p9(G);return B&&B.text?g.tU(B.text):G.paidContentOverlayText}; BYY=function(G){var B=p9(G);return B&&B.durationMs?on(B.durationMs):G.paidContentOverlayDurationMs}; p9=function(G){var B,a,V;return G.playerResponse&&G.playerResponse.paidContentOverlay&&G.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.u((B=G.SJ)==null?void 0:(a=B.playerOverlays)==null?void 0:(V=a.playerOverlayRenderer)==null?void 0:V.playerDisclosure,arx)||null}; UN=function(G){var B="";if(G.Tv)return G.Tv;G.isLivePlayback&&(B=G.allowLiveDvr?"dvr":G.isPremiere?"lp":G.LN?"window":"live");G.Ai&&(B="post");return B}; g.ON=function(G,B){return typeof G.keywords[B]!=="string"?null:G.keywords[B]}; Vz9=function(G){return!!G.e$||!!G.Jn||!!G.O9||!!G.HP||G.tS||G.W.focEnabled||G.W.rmktEnabled}; g.EN=function(G){return!!(G.w7||G.Da||G.AY||G.hlsvp||G.bA())}; sy=function(G){if(G.S("html5_onesie")&&G.errorCode)return!1;var B=g.YC(G.GH,"ypc");G.ypcPreview&&(B=!1);return G.I4()&&!G.loading&&(g.EN(G)||g.YC(G.GH,"heartbeat")||B)}; mB=function(G,B){G=VZ(G);var a={};if(B){B=g.m(B.split(","));for(var V=B.next();!V.done;V=B.next())(V=V.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(a[V[1]]={width:V[2],height:V[3]})}B=g.m(G);for(V=B.next();!V.done;V=B.next()){V=V.value;var x=a[V.itag];x&&(V.width=x.width,V.height=x.height)}return G}; jO=function(G){var B=G.getAvailableAudioTracks();B=B.concat(G.M9);for(var a=0;a0:B||G.adFormat!=="17_8"||G.isAutonav||g.Po(G.Rn)||G.hN?G.L3?!1:G.Rn.Da||G.Rn.e6||!g.co(G.Rn)?!B&&Zw(G)==="adunit"&&G.e$?!1:!0:!1:!1:(G.L3?0:G.wc)&&g.co(G.Rn)?!0:!1;G.S("html5_log_detailpage_autoplay")&&Zw(G)==="detailpage"&&G.FJ("autoplay_info",{autoplay:G.Ds,autonav:G.isAutonav,wasDompaused:G.L3,result:B});return B}; g.uv=function(G){return G.oauthToken||G.Rn.M9}; tzV=function(G){if(G.S("html5_stateful_audio_normalization")){var B=1,a=g.kf(G.Rn.experiments,"html5_default_ad_gain");a&&G.isAd()&&(B=a);var V;if(a=((V=G.G)==null?void 0:V.audio.X)||G.P7){V=(0,g.yT)();G.ZQ=2;var x=V-G.Rn.RY<=G.maxStatefulTimeThresholdSec*1E3;G.applyStatefulNormalization&&x?G.ZQ=4:x||(G.Rn.rQ=Infinity,G.Rn.RY=NaN);x=(G.ZQ===4?g.eH(G.Rn.rQ,G.minimumLoudnessTargetLkfs,G.loudnessTargetLkfs):G.loudnessTargetLkfs)-a;if(G.ZQ!==4){var h,e,w,K,l=((h=G.playerResponse)==null?void 0:(e=h.playerConfig)== null?void 0:(w=e.audioConfig)==null?void 0:(K=w.loudnessNormalizationConfig)==null?void 0:K.statelessLoudnessAdjustmentGain)||0;x+=l}x=Math.min(x,0);G.preserveStatefulLoudnessTarget&&(G.Rn.rQ=a+x,G.Rn.RY=V);G=Math.min(1,Math.pow(10,x/20))||B}else G=zTb(G)}else G=zTb(G);return G}; zTb=function(G){var B=1,a=g.kf(G.Rn.experiments,"html5_default_ad_gain");a&&G.isAd()&&(B=a);var V;if(a=((V=G.G)==null?void 0:V.audio.C)||G.XQ)G.ZQ=1;return Math.min(1,Math.pow(10,-a/20))||B}; xX=function(G){var B=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],a=YD(G.Rn)==="TVHTML5_SIMPLY"&&G.Rn.j.ctheme==="MUSIC";G.e6||!g.rv(G.Rn)&&!a||!B.includes(G.musicVideoType)&&!G.isExternallyHostedPodcast||(G.e6=!0);if(B=g.T9())B=/Starboard\/([0-9]+)/.exec(g.ns()),B=(B?parseInt(B[1],10):NaN)<10;a=G.Rn;a=(YD(a)==="TVHTML5_CAST"||YD(a)==="TVHTML5"&&(a.j.cver.startsWith("6.20130725")||a.j.cver.startsWith("6.20130726")))&&G.Rn.j.ctheme==="MUSIC";var V;if(V=!G.e6)a||(a=G.Rn,a=YD(a)=== "TVHTML5"&&a.j.cver.startsWith("7")),V=a;V&&!B&&(B=G.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",a=(G.S("cast_prefer_audio_only_for_atv_and_uploads")||G.S("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&G.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",B||a||G.isExternallyHostedPodcast)&&(G.e6=!0);return G.Rn.deviceIsAudioOnly||G.e6&&G.Rn.W}; g.mc_=function(G){var B;if(!(B=G.S("html5_enable_sabr_live_captions")&&G.SE()&&eO(G))){var a,V,x;B=((a=G.playerResponse)==null?void 0:(V=a.playerConfig)==null?void 0:(x=V.compositeVideoConfig)==null?void 0:x.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}return B}; Q3=function(G){var B,a,V;return!!((B=G.playerResponse)==null?0:(a=B.playerConfig)==null?0:(V=a.mediaCommonConfig)==null?0:V.splitScreenEligible)}; L9=function(G){var B;return!((B=G.playerResponse)==null||!B.compositePlayabilityStatus)}; IrK=function(G){return isNaN(G)?0:Math.max((Date.now()-G)/1E3-30,0)}; TC=function(G){return!(!G.L1||!G.Rn.W)&&G.bA()}; sN=function(G){return G.enablePreroll&&G.enableServerStitchedDai}; gG_=function(G){return G.Bh&&!G.c9}; eO=function(G){var B=G.S("html5_enable_sabr_on_drive")&&G.Rn.zH==="gd";if(G.JS)return G.Bh&&G.FJ("fds",{fds:!0},!0),!1;if(G.Rn.zH!=="yt"&&!B)return G.Bh&&G.FJ("dsvn",{ns:G.Rn.zH},!0),!1;if(G.cotn||!G.j||G.j.isOtf||G.X8&&!G.S("html5_enable_sabr_csdai"))return!1;if(G.S("html5_use_sabr_requests_for_debugging"))return!0;if(G.Bh&&G.c9)return G.FJ("esfw",{usbc:G.Bh,hsu:!!G.c9},!0),!0;if(G.S("html5_remove_client_sabr_determination"))return!1;var a=!G.j.SE&&!G.LM();B=a&&iB&&G.S("html5_enable_sabr_vod_streaming_xhr"); a=a&&!iB&&G.S("html5_enable_sabr_vod_non_streaming_xhr");var V=iv(G),x=G.S("html5_enable_sabr_drm_vod_streaming_xhr")&&iB&&G.LM()&&!G.j.SE&&(G.RY==="1"?!1:!0);(B=B||a||V||x)&&!G.c9&&G.FJ("sabr",{loc:"m"},!0);return B&&!!G.c9}; iv=function(G){var B;if(!(B=iB&&G.SE()&&G.LM()&&(G.RY==="1"?!1:!0)&&G.S("html5_sabr_live_drm_streaming_xhr"))){B=G.SE()&&!G.LM()&&iB;var a=G.SE()&&G.latencyClass!=="ULTRALOW"&&!G.isLowLatencyLiveStream&&G.S("html5_sabr_live_normal_latency_streaming_xhr"),V=G.isLowLatencyLiveStream&&G.S("html5_sabr_live_low_latency_streaming_xhr"),x=G.latencyClass==="ULTRALOW"&&G.S("html5_sabr_live_ultra_low_latency_streaming_xhr");B=B&&(a||V||x)}a=B;B=G.enableServerStitchedDai&&a&&G.S("html5_enable_sabr_ssdai_streaming_xhr"); a=!G.enableServerStitchedDai&&a;V=G.SE()&&!iB&&G.S("html5_enable_sabr_live_non_streaming_xhr");G=iB&&(G.cn()||Q3(G)&&G.S("html5_enable_sabr_for_lifa_eligible_streams"));return B||a||V||G}; g.AC=function(G){return G.Oh&&eO(G)}; Tm_=function(G){var B;if(B=!!G.cotn)B=G.videoId,B=!!B&&g.n$(B)===1;return B&&!G.L1}; g.oS=function(G){if(!G.j||!G.X||!G.G)return!1;var B=G.j.j,a=!!B[G.X.id]&&Ei(B[G.X.id].kD.j);B=!!B[G.G.id]&&Ei(B[G.G.id].kD.j);return(G.X.itag==="0"||a)&&B}; MJ=function(G){return G.U9?["OK","LIVE_STREAM_OFFLINE"].includes(G.U9.status):!0}; wkV=function(G){return(G=G.A6)&&G.showError?G.showError:!1}; lv=function(G,B){return G.S(B)?!0:(G.fflags||"").includes(B+"=true")}; pkc=function(G){return G.S("html5_heartbeat_iff_heartbeat_params_filled")}; fUK=function(G,B){B.inlineMetricEnabled&&(G.inlineMetricEnabled=!0);B.playback_progress_0s_url&&(G.HP=new x0y(B));if(B=B.video_masthead_ad_quartile_urls)G.Jn=B.quartile_0_url,G.zx=B.quartile_25_url,G.XP=B.quartile_50_url,G.C4=B.quartile_75_url,G.FP=B.quartile_100_url,G.O9=B.quartile_0_urls,G.zY=B.quartile_25_urls,G.C5=B.quartile_50_urls,G.cj=B.quartile_75_urls,G.m1=B.quartile_100_urls}; nEA=function(G){var B={};G=g.m(G);for(var a=G.next();!a.done;a=G.next()){a=a.value;var V=a.split("=");V.length===2?B[V[0]]=V[1]:B[a]=!0}return B}; b_y=function(G){if(G){if(kn_(G))return G;G=NIb(G);if(kn_(G,!0))return G}return""}; g.Ucg=function(G){return G.captionsLanguagePreference||G.Rn.captionsLanguagePreference||g.ON(G,"yt:cc_default_lang")||G.Rn.fh}; GA=function(G){return!(!G.isLivePlayback||!G.hasProgressBarBoundaries())}; g.Mk=function(G){var B;return G.b4||((B=G.suggestions)==null?void 0:B[0])||null}; g.BE=function(G){return G.yd&&(G.S("embeds_enable_pfp_always_unbranded")||G.Rn.ZQ)}; aJ=function(G,B){G.S("html5_log_autoplay_src")&&V3(G)&&G.FJ("apsrc",{src:B})}; g.VM=function(G){var B,a;return!!((B=G.embeddedPlayerConfig)==null?0:(a=B.embeddedPlayerFlags)==null?0:a.enableMusicUx)}; g.hK=function(G){var B=G.U(),a=g.xg(B),V=B.MB;(B.S("embeds_web_enable_iframe_api_send_full_embed_url")||B.S("embeds_web_enable_rcat_validation_in_havs")||B.S("embeds_enable_autoplay_and_visibility_signals"))&&g.SN(B)&&(V&&(a.thirdParty=Object.assign({},a.thirdParty,{embedUrl:V})),Tax(a,G));if(V=G.Zx)a.clickTracking={clickTrackingParams:V};V=a.client||{};var x="EMBED",h=Zw(G);h==="leanback"?x="WATCH":B.S("gvi_channel_client_screen")&&h==="profilepage"?x="CHANNEL":G.Vb?x="LIVE_MONITOR":h==="detailpage"? x="WATCH_FULL_SCREEN":h==="adunit"?x="ADUNIT":h==="sponsorshipsoffer"&&(x="UNKNOWN");V.clientScreen=x;if(B=G.kidsAppInfo)V.kidsAppInfo=JSON.parse(B);(x=G.jd)&&!B&&(V.kidsAppInfo={contentSettings:{ageUpMode:ODx[x]}});if(B=G.L2)V.unpluggedAppInfo={enableFilterMode:!0};(x=G.unpluggedFilterModeType)&&!B&&(V.unpluggedAppInfo={filterModeType:EGy[x]});if(B=G.zH)V.unpluggedLocationInfo=B;a.client=V;V=a.request||{};G.OZ&&(V.isPrefetch=!0);if(B=G.mdxEnvironment)V.mdxEnvironment=B;if(B=G.mdxControlMode)V.mdxControlMode= jkc[B];a.request=V;V=a.user||{};if(B=G.XJ)V.credentialTransferTokens=[{token:B,scope:"VIDEO"}];if(B=G.fh)V.delegatePurchases={oauthToken:B},V.kidsParent={oauthToken:B};a.user=V;if(V=G.contextParams)a.activePlayers=[{playerContextParams:V}];if(G=G.clientScreenNonce)a.clientScreenNonce=G;return a}; g.xg=function(G){var B=g.iy(),a=B.client||{};if(G.forcedExperiments){var V=G.forcedExperiments.split(","),x=[];V=g.m(V);for(var h=V.next();!h.done;h=V.next())x.push(Number(h.value));a.experimentIds=x}if(x=G.homeGroupInfo)a.homeGroupInfo=JSON.parse(x);if(x=G.getPlayerType())a.playerType=x;if(x=G.j.ctheme)a.theme=x;if(x=G.livingRoomAppMode)a.tvAppInfo=Object.assign({},a.tvAppInfo,{livingRoomAppMode:x});x=G.deviceYear;G.S("html5_propagate_device_year")&&x&&(a.tvAppInfo=Object.assign({},a.tvAppInfo,{deviceYear:x})); if(x=G.livingRoomPoTokenId)a.tvAppInfo=Object.assign({},a.tvAppInfo,{livingRoomPoTokenId:x});B.client=a;a=B.user||{};G.enableSafetyMode&&(a=Object.assign({},a,{enableSafetyMode:!0}));G.pageId&&(a=Object.assign({},a,{onBehalfOfUser:G.pageId}));B.user=a;a=G.MB;G.S("embeds_web_enable_iframe_api_send_full_embed_url")||G.S("embeds_web_enable_rcat_validation_in_havs")||G.S("embeds_enable_autoplay_and_visibility_signals")||!a||(B.thirdParty={embedUrl:a});return B}; HDc=function(G,B,a){var V=G.videoId,x=g.hK(G),h=G.U(),e={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(cD()),referer:document.location.toString(),signatureTimestamp:20152};g.qe();G.isAutonav&&(e.autonav=!0);g.uP(0,141)&&(e.autonavState=g.uP(0,140)?"STATE_OFF":"STATE_ON");e.autoCaptionsDefaultOn=g.uP(0,66);qJ(G)&&(e.autoplay=!0);h.W&&G.cycToken&&(e.cycToken=G.cycToken);h.enablePrivacyFilter&&(e.enablePrivacyFilter=!0);G.isFling&&(e.fling=!0);var w=G.forceAdsUrl;if(w){var K={},l=[];w=w.split(","); w=g.m(w);for(var k=w.next();!k.done;k=w.next()){k=k.value;var N=k.split("|");N.length!==3||k.includes("=")||(N[0]="breaktype="+N[0],N[1]="offset="+N[1],N[2]="url="+N[2]);k={adtype:"video_ad"};N=g.m(N);for(var d=N.next();!d.done;d=N.next()){var C=g.m(d.value.split("="));d=C.next().value;C=hXA(C);k[d]=C.join("=")}N=k.url;d=k.presetad;C=k.viralresponseurl;var z=Number(k.campaignid);if(k.adtype==="in_display_ad")N&&(K.url=N),d&&(K.presetAd=d),C&&(K.viralAdResponseUrl=C),z&&(K.viralCampaignId=String(z)); else if(k.adtype==="video_ad"){var p={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(k.offset)||0)}};if(k=bDy[k.breaktype])p.breakType=k;N&&(p.url=N);d&&(p.presetAd=d);C&&(p.viralAdResponseUrl=C);z&&(p.viralCampaignId=String(z));l.push(p)}}e.forceAdParameters={videoAds:l,inDisplayAd:K}}G.isInlinePlaybackNoAd&&(e.isInlinePlaybackNoAd=!0);G.isLivingRoomDeeplink&&(e.isLivingRoomDeeplink=!0);K=G.Ls;if(K!=null){K={startWalltime:String(K)};if(l=G.Hh)K.manifestDuration=String(l||14400);e.liveContext= K}if(G.mutedAutoplay){e.mutedAutoplay=!0;K=h.getWebPlayerContextConfig();var O,b;(K==null?0:(O=K.embedsHostFlags)==null?0:O.allowMutedAutoplayDurationMode)&&(K==null?0:(b=K.embedsHostFlags)==null?0:b.allowMutedAutoplayDurationMode.includes(y1c[G.mutedAutoplayDurationMode]))&&(e.mutedAutoplayDurationMode=y1c[G.mutedAutoplayDurationMode])}if(G.L3?0:G.wc)e.splay=!0;O=G.vnd;O===5&&(e.vnd=O);O={};if(b=G.isMdxPlayback)O.triggeredByMdx=b;if(b=G.D1)O.skippableAdsSupported=b.split(",").includes("ska");if(l= G.j9){b=G.vj;K=[];l=g.m(sEz(l));for(w=l.next();!w.done;w=l.next()){w=w.value;k=w.platform;w={applicationState:w.yc?"INACTIVE":"ACTIVE",clientFormFactor:c1y[k]||"UNKNOWN_FORM_FACTOR",clientName:Jmx[w.Nh]||"UNKNOWN_INTERFACE",clientVersion:w.deviceVersion||"",platform:nG9[k]||"UNKNOWN_PLATFORM"};k={};if(b){N=void 0;try{N=JSON.parse(b)}catch(c){g.Zb(c)}N&&(k={params:[{key:"ms",value:N.ms}]},N.advertising_id&&(k.advertisingId=N.advertising_id),N.limit_ad_tracking!==void 0&&N.limit_ad_tracking!==null&& (k.limitAdTracking=N.limit_ad_tracking),w.osName=N.os_name,w.userAgent=N.user_agent,w.windowHeightPoints=N.window_height_points,w.windowWidthPoints=N.window_width_points)}K.push({adSignalsInfo:k,remoteClient:w})}O.remoteContexts=K}b=G.sourceContainerPlaylistId;K=G.serializedMdxMetadata;if(b||K)l={},b&&(l.mdxPlaybackContainerInfo={sourceContainerPlaylistId:b}),K&&(l.serializedMdxMetadata=K),O.mdxPlaybackSourceContext=l;e.mdxContext=O;O=B.width;O>0&&(e.playerWidthPixels=Math.round(O));if(B=B.height)e.playerHeightPixels= Math.round(B);a!==0&&(e.vis=a);if(a=h.widgetReferrer)e.widgetReferrer=a.substring(0,128);g.co(h)&&e&&(e.ancestorOrigins=h.ancestorOrigins);G.defaultActiveSourceVideoId&&(e.compositeVideoContext={defaultActiveSourceVideoId:G.defaultActiveSourceVideoId});if(h=h.getWebPlayerContextConfig())e.encryptedHostFlags=h.encryptedHostFlags;V={videoId:V,context:x,playbackContext:{contentPlaybackContext:e}};G.reloadPlaybackParams&&(V.playbackContext.reloadPlaybackContext={reloadPlaybackParams:G.reloadPlaybackParams}); G.contentCheckOk&&(V.contentCheckOk=!0);if(x=G.clientPlaybackNonce)V.cpn=x;if(x=G.playerParams)V.params=x;if(x=G.playlistId)V.playlistId=x;G.racyCheckOk&&(V.racyCheckOk=!0);x=G.U();if(e=x.embedConfig)V.serializedThirdPartyEmbedConfig=e;V.captionParams={};e=g.uP(g.qe(),65);G.deviceCaptionsOn!=null?V.captionParams.deviceCaptionsOn=G.deviceCaptionsOn:g.YF(x)&&(V.captionParams.deviceCaptionsOn=e!=null?!e:!1);G.AG&&(V.captionParams.deviceCaptionsLangPref=G.AG);G.Jo.length?V.captionParams.viewerSelectedCaptionLangs= G.Jo:g.YF(x)&&(e=g.uD(),e==null?0:e.length)&&(V.captionParams.viewerSelectedCaptionLangs=e);e=G.fetchType==="onesie"&&G.S("html5_onesie_attach_po_token");h=G.fetchType!=="onesie"&&G.S("html5_non_onesie_attach_po_token");if(e||h)e=G.U(),e.Vg&&(V.serviceIntegrityDimensions={},V.serviceIntegrityDimensions.poToken=e.Vg);x.S("fetch_att_independently")&&(V.attestationRequest={omitBotguardData:!0});V.playbackContext||(V.playbackContext={});V.playbackContext.devicePlaybackCapabilities=fry(G);V.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&G.FJ("noVp9",{});return V}; fry=function(G){var B=!(G==null?0:G.o_())&&(G==null?void 0:G.SE())&&Gp(),a;if(a=G==null?0:G.S("html5_report_supports_vp9_encoding")){if(G==null)a=0;else{a=g.WF(G);G=G.U().B;var V=hC("243");a=V?NF(a,V,G,!0)===!0:!1}a=a&&!B}return{supportsVp9Encoding:!!a,supportXhr:iB}}; DcH=function(G,B){var a,V,x;return g.v(function(h){if(h.j==1)return a={context:g.xg(G.U()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:G.videoId,cpn:G.clientPlaybackNonce}}]},V=g.MR(vGB),g.f(h,g.Al(B,a,V),2);x=h.X;return h.return(x)})}; So9=function(G,B,a){var V=g.kf(B.experiments,"bg_vm_reinit_threshold");(!Dk||(0,g.yT)()-Dk>V)&&DcH(G,a).then(function(x){x&&(x=x.botguardData)&&g.Zk(x,B)},function(x){G.TH()||(x=n1(x),G.FJ("attf",x.details))})}; eX=function(G,B){g.r.call(this);this.app=G;this.state=B}; ww=function(G,B,a){G.state.j.hasOwnProperty(B)||WE(G,B,a);G.state.W[B]=function(){return a.apply(G,g.Hz.apply(0,arguments))}; G.state.L.add(B)}; Kb=function(G,B,a){G.state.j.hasOwnProperty(B)||WE(G,B,a);G.app.U().W&&(G.state.V[B]=function(){return a.apply(G,g.Hz.apply(0,arguments))},G.state.L.add(B))}; WE=function(G,B,a){G.state.j[B]=function(){return a.apply(G,g.Hz.apply(0,arguments))}}; g.lq=function(G,B,a){return G.state.j[B].apply(G.state.j,g.U(a))}; kg=function(){g.bu.call(this);this.B=new Map}; Nd=function(){g.r.apply(this,arguments);this.element=null;this.L=new Set;this.W={};this.V={};this.j={};this.Y=new Set;this.C=new kg;this.X=new kg;this.G=new kg;this.B=new kg}; RTc=function(G,B,a){typeof G==="string"&&(G={mediaContentUrl:G,startSeconds:B,suggestedQuality:a});a:{if((B=G.mediaContentUrl)&&(B=/\/([ve]|embed)\/([^#?]+)/.exec(B))&&B[2]){B=B[2];break a}B=null}G.videoId=B;return dw(G)}; dw=function(G,B,a){if(typeof G==="string")return{videoId:G,startSeconds:B,suggestedQuality:a};B={};a=g.m(ZDX);for(var V=a.next();!V.done;V=a.next())V=V.value,G[V]&&(B[V]=G[V]);return B}; r1_=function(G,B,a,V){if(g.Ag(G)&&!Array.isArray(G)){B="playlist list listType index startSeconds suggestedQuality".split(" ");a={};for(V=0;V32&&V.push("hfr");B.isHdr()&&V.push("hdr");B.primaries==="bt2020"&&V.push("wcg");a.video_quality_features=V}}if(G=G.getPlaylistId())a.list=G;return a}; IJ=function(){Cb.apply(this,arguments)}; gw=function(G,B){var a={};if(G.app.U().XJ){G=g.m(uyY);for(var V=G.next();!V.done;V=G.next())V=V.value,B.hasOwnProperty(V)&&(a[V]=B[V]);if(B=a.qoe_cat)G="",typeof B==="string"&&B.length>0&&(G=B.split(",").filter(function(x){return QkK.includes(x)}).join(",")),a.qoe_cat=G; LgA(a)}else for(G=g.m(TYg),V=G.next();!V.done;V=G.next())V=V.value,B.hasOwnProperty(V)&&(a[V]=B[V]);return a}; LgA=function(G){var B=G.raw_player_response;if(!B){var a=G.player_response;a&&(B=JSON.parse(a))}delete G.player_response;delete G.raw_player_response;if(B){G.raw_player_response={streamingData:B.streamingData};var V;if((V=B.playbackTracking)==null?0:V.qoeUrl)G.raw_player_response=Object.assign({},G.raw_player_response,{playbackTracking:{qoeUrl:B.playbackTracking.qoeUrl}});var x;if((x=B.videoDetails)==null?0:x.videoId)G.raw_player_response=Object.assign({},G.raw_player_response,{videoDetails:{videoId:B.videoDetails.videoId}})}}; pb=function(G,B,a){var V=G.app.lJ(a);if(!V)return 0;G=V-G.app.getCurrentTime(a);return B-G}; FgK=function(G){var B=B===void 0?5:B;return G?skA[G]||B:B}; g.Uc=function(){IJ.apply(this,arguments)}; J1z=function(G){WE(G,"getInternalApiInterface",G.getInternalApiInterface);WE(G,"addEventListener",G.gH);WE(G,"removeEventListener",G.JvS);WE(G,"cueVideoByPlayerVars",G.M5);WE(G,"loadVideoByPlayerVars",G.WHd);WE(G,"preloadVideoByPlayerVars",G.Hn1);WE(G,"getAdState",G.getAdState);WE(G,"sendAbandonmentPing",G.sendAbandonmentPing);WE(G,"setLoopRange",G.setLoopRange);WE(G,"getLoopRange",G.getLoopRange);WE(G,"setAutonavState",G.setAutonavState);WE(G,"seekTo",G.jmJ);WE(G,"seekBy",G.YAx);WE(G,"seekToLiveHead", G.seekToLiveHead);WE(G,"requestSeekToWallTimeSeconds",G.requestSeekToWallTimeSeconds);WE(G,"seekToStreamTime",G.seekToStreamTime);WE(G,"startSeekCsiAction",G.startSeekCsiAction);WE(G,"getStreamTimeOffset",G.getStreamTimeOffset);WE(G,"getVideoData",G.RlX);WE(G,"setInlinePreview",G.setInlinePreview);WE(G,"getAppState",G.getAppState);WE(G,"updateLastActiveTime",G.updateLastActiveTime);WE(G,"setBlackout",G.setBlackout);WE(G,"setUserEngagement",G.setUserEngagement);WE(G,"updateSubtitlesUserSettings",G.updateSubtitlesUserSettings); WE(G,"getPresentingPlayerType",G.wu);WE(G,"canPlayType",G.canPlayType);WE(G,"updatePlaylist",G.updatePlaylist);WE(G,"updateVideoData",G.updateVideoData);WE(G,"updateEnvironmentData",G.updateEnvironmentData);WE(G,"sendVideoStatsEngageEvent",G.yAx);WE(G,"productsInVideoVisibilityUpdated",G.productsInVideoVisibilityUpdated);WE(G,"setSafetyMode",G.setSafetyMode);WE(G,"isAtLiveHead",function(B){return G.isAtLiveHead(void 0,B)}); WE(G,"getVideoAspectRatio",G.getVideoAspectRatio);WE(G,"getPreferredQuality",G.getPreferredQuality);WE(G,"getPlaybackQualityLabel",G.getPlaybackQualityLabel);WE(G,"setPlaybackQualityRange",G.GVB);WE(G,"onAdUxClicked",G.onAdUxClicked);WE(G,"getFeedbackProductData",G.getFeedbackProductData);WE(G,"getStoryboardFrame",G.getStoryboardFrame);WE(G,"getStoryboardFrameIndex",G.getStoryboardFrameIndex);WE(G,"getStoryboardLevel",G.getStoryboardLevel);WE(G,"getNumberOfStoryboardLevels",G.getNumberOfStoryboardLevels); WE(G,"getCaptionWindowContainerId",G.getCaptionWindowContainerId);WE(G,"getAvailableQualityLabels",G.getAvailableQualityLabels);WE(G,"addCueRange",G.addCueRange);WE(G,"addUtcCueRange",G.addUtcCueRange);WE(G,"showAirplayPicker",G.showAirplayPicker);WE(G,"dispatchReduxAction",G.dispatchReduxAction);WE(G,"getPlayerResponse",G.zl1);WE(G,"getWatchNextResponse",G.iNL);WE(G,"getHeartbeatResponse",G.NU);WE(G,"getCurrentTime",G.VO);WE(G,"getDuration",G.Yu);WE(G,"getPlayerState",G.getPlayerState);WE(G,"getPlayerStateObject", G.XSJ);WE(G,"getVideoLoadedFraction",G.getVideoLoadedFraction);WE(G,"getProgressState",G.getProgressState);WE(G,"getVolume",G.getVolume);WE(G,"setVolume",G.Ym);WE(G,"isMuted",G.isMuted);WE(G,"mute",G.rr);WE(G,"unMute",G.S3);WE(G,"loadModule",G.loadModule);WE(G,"unloadModule",G.unloadModule);WE(G,"getOption",G.RT);WE(G,"getOptions",G.getOptions);WE(G,"setOption",G.setOption);WE(G,"loadVideoById",G.NR);WE(G,"loadVideoByUrl",G.Y5);WE(G,"playVideo",G.Dd);WE(G,"loadPlaylist",G.loadPlaylist);WE(G,"nextVideo", G.nextVideo);WE(G,"previousVideo",G.previousVideo);WE(G,"playVideoAt",G.playVideoAt);WE(G,"getDebugText",G.getDebugText);WE(G,"getWebPlayerContextConfig",G.getWebPlayerContextConfig);WE(G,"notifyShortsAdSwipeEvent",G.notifyShortsAdSwipeEvent);WE(G,"getVideoContentRect",G.getVideoContentRect);WE(G,"setSqueezeback",G.setSqueezeback);WE(G,"toggleSubtitlesOn",G.toggleSubtitlesOn);WE(G,"isSubtitlesOn",G.isSubtitlesOn);WE(G,"reportPlaybackIssue",G.reportPlaybackIssue);WE(G,"setAutonav",G.setAutonav);WE(G, "isNotServable",G.isNotServable);WE(G,"channelSubscribed",G.channelSubscribed);WE(G,"channelUnsubscribed",G.channelUnsubscribed);WE(G,"togglePictureInPicture",G.togglePictureInPicture);WE(G,"supportsGaplessAudio",G.supportsGaplessAudio);WE(G,"supportsGaplessShorts",G.supportsGaplessShorts);WE(G,"enqueueVideoByPlayerVars",function(B){return void G.enqueueVideoByPlayerVars(B)}); WE(G,"clearQueue",G.clearQueue);WE(G,"getAudioTrack",G.l8);WE(G,"setAudioTrack",G.cAJ);WE(G,"getAvailableAudioTracks",G.O2);WE(G,"getMaxPlaybackQuality",G.getMaxPlaybackQuality);WE(G,"getUserPlaybackQualityPreference",G.getUserPlaybackQualityPreference);WE(G,"getSubtitlesUserSettings",G.getSubtitlesUserSettings);WE(G,"resetSubtitlesUserSettings",G.resetSubtitlesUserSettings);WE(G,"setMinimized",G.setMinimized);WE(G,"setOverlayVisibility",G.setOverlayVisibility);WE(G,"confirmYpcRental",G.confirmYpcRental); WE(G,"queueNextVideo",G.queueNextVideo);WE(G,"handleExternalCall",G.handleExternalCall);WE(G,"logApiCall",G.logApiCall);WE(G,"isExternalMethodAvailable",G.isExternalMethodAvailable);WE(G,"setScreenLayer",G.setScreenLayer);WE(G,"getCurrentPlaylistSequence",G.getCurrentPlaylistSequence);WE(G,"getPlaylistSequenceForTime",G.getPlaylistSequenceForTime);WE(G,"shouldSendVisibilityState",G.shouldSendVisibilityState);WE(G,"syncVolume",G.syncVolume);WE(G,"highlightSettingsMenuItem",G.highlightSettingsMenuItem); WE(G,"openSettingsMenuItem",G.openSettingsMenuItem);WE(G,"getEmbeddedPlayerResponse",G.getEmbeddedPlayerResponse);WE(G,"getVisibilityState",G.getVisibilityState);WE(G,"isMutedByMutedAutoplay",G.isMutedByMutedAutoplay);WE(G,"isMutedByEmbedsMutedAutoplay",G.isMutedByEmbedsMutedAutoplay);WE(G,"setGlobalCrop",G.setGlobalCrop);WE(G,"setInternalSize",G.setInternalSize);WE(G,"setFauxFullscreen",G.setFauxFullscreen);WE(G,"setAppFullscreen",G.setAppFullscreen)}; Ec=function(G,B,a){G=g.Oc(G.G1(),B);return a?(a.addOnDisposeCallback(G),null):G}; g.jX=function(G,B,a){return G.app.U().dC?B:g.tm("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:B,SHORTCUT:a})}; A1H=function(G){G.G1().element.setAttribute("aria-live","polite")}; g.bq=function(G,B){g.Uc.call(this,G,B);J1z(this);Kb(this,"addEventListener",this.eQ);Kb(this,"removeEventListener",this.uKX);Kb(this,"cueVideoByPlayerVars",this.lm);Kb(this,"loadVideoByPlayerVars",this.Jsb);Kb(this,"preloadVideoByPlayerVars",this.R9N);Kb(this,"loadVideoById",this.NR);Kb(this,"loadVideoByUrl",this.Y5);Kb(this,"playVideo",this.Dd);Kb(this,"loadPlaylist",this.loadPlaylist);Kb(this,"nextVideo",this.nextVideo);Kb(this,"previousVideo",this.previousVideo);Kb(this,"playVideoAt",this.playVideoAt); Kb(this,"getVideoData",this.Lp);Kb(this,"seekBy",this.mHx);Kb(this,"seekTo",this.zEH);Kb(this,"showControls",this.showControls);Kb(this,"hideControls",this.hideControls);Kb(this,"cancelPlayback",this.cancelPlayback);Kb(this,"getProgressState",this.getProgressState);Kb(this,"isInline",this.isInline);Kb(this,"setInline",this.setInline);Kb(this,"setLoopVideo",this.setLoopVideo);Kb(this,"getLoopVideo",this.getLoopVideo);Kb(this,"getVideoContentRect",this.getVideoContentRect);Kb(this,"getVideoStats",this.kH1); Kb(this,"getCurrentTime",this.gq);Kb(this,"getDuration",this.Yu);Kb(this,"getPlayerState",this.yXl);Kb(this,"getVideoLoadedFraction",this.dBJ);Kb(this,"mute",this.rr);Kb(this,"unMute",this.S3);Kb(this,"setVolume",this.Ym);Kb(this,"loadModule",this.loadModule);Kb(this,"unloadModule",this.unloadModule);Kb(this,"getOption",this.RT);Kb(this,"getOptions",this.getOptions);Kb(this,"setOption",this.setOption);Kb(this,"addCueRange",this.addCueRange);Kb(this,"getDebugText",this.getDebugText);Kb(this,"getStoryboardFormat", this.getStoryboardFormat);Kb(this,"toggleFullscreen",this.toggleFullscreen);Kb(this,"isFullscreen",this.isFullscreen);Kb(this,"getPlayerSize",this.getPlayerSize);Kb(this,"toggleSubtitles",this.toggleSubtitles);this.app.U().S("embeds_enable_move_set_center_crop_to_public")||Kb(this,"setCenterCrop",this.setCenterCrop);Kb(this,"setFauxFullscreen",this.setFauxFullscreen);Kb(this,"setSizeStyle",this.setSizeStyle);Kb(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Kb(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); XkK(this)}; g.yM=function(G){G=G.Ch();var B=G.cD.get("endscreen");return B&&B.Jg()?!0:G.IZ()}; g.cE=function(G,B){G.getPresentingPlayerType()===3?G.publish("mdxautoplaycancel"):G.pN("onAutonavCancelled",B)}; g.fb=function(G){var B=nb(G.Ch());return G.app.ES&&!G.isFullscreen()||G.getPresentingPlayerType()===3&&B&&B.pk()&&B.Ky()||!!G.getPlaylist()}; g.HE=function(G,B){g.lq(G,"addEmbedsConversionTrackingParams",[B])}; g.Dy=function(G){return(G=g.vE(G.Ch()))?G.I2():{}}; g.Yoy=function(G){G=(G=G.getVideoData())&&G.X;return!!G&&!(!G.audio||!G.video)&&G.mimeType!=="application/x-mpegURL"}; g.SX=function(G,B,a){G=G.g1().element;var V=WK(G.children,function(x){x=Number(x.getAttribute("data-layer"));return a-x||1}); V<0&&(V=-(V+1));VX(G,B,V);B.setAttribute("data-layer",String(a))}; g.RJ=function(G){var B=G.U();if(!B.R4)return!1;var a=G.getVideoData();if(!a||G.getPresentingPlayerType()===3)return!1;var V=(!a.isLiveDefaultBroadcast||B.S("allow_poltergust_autoplay"))&&!GA(a);V=a.isLivePlayback&&(!B.S("allow_live_autoplay")||!V);var x=a.isLivePlayback&&B.S("allow_live_autoplay_on_mweb");G=G.getPlaylist();G=!!G&&G.pk();var h=a.SJ&&a.SJ.playerOverlays||null;h=!!(h&&h.playerOverlayRenderer&&h.playerOverlayRenderer.autoplay);h=a.yd&&h;return!a.ypcPreview&&(!V||x)&&!g.YC(a.GH,"ypc")&& !G&&(!g.co(B)||h)}; iD9=function(G){G=G.app.KN();if(!G)return!1;var B=G.getVideoData();if(!B.X||!B.X.video||B.X.video.j<1080||B.F8)return!1;var a=/^qsa/.test(B.clientPlaybackNonce),V="r";B.X.id.indexOf(";")>=0&&(a=/^[a-p]/.test(B.clientPlaybackNonce),V="x");return a?(G.FJ("iqss",{trigger:V},!0),!0):!1}; Zy=function(){$S.apply(this,arguments);this.requestHeaders={}}; $g=function(){rw||(rw=new Zy);return rw}; Xq=function(G,B){B?G.requestHeaders.Authorization="Bearer "+B:delete G.requestHeaders.Authorization}; g.qd=function(G){var B=this;this.jJ=G;this.vC={SUn:function(){return B.jJ}}}; g.uq=function(G,B,a,V){V=V===void 0?!1:V;g.dI.call(this,B);var x=this;this.T=G;this.GH=V;this.V=new g.Zh(this);this.zH=new g.Bm(this,a,!0,void 0,void 0,function(){x.p9()}); g.X(this,this.V);g.X(this,this.zH)}; QM=function(G){var B=G.T.getRootNode();return G.T.S("web_watch_pip")||G.T.S("web_shorts_pip")?rU(B):document}; P69=function(G){G.X&&(document.activeElement&&g.hw(G.element,document.activeElement)&&G.X.focus(),G.X.setAttribute("aria-expanded","false"),G.X=void 0);g.nU(G.V);G.Y=void 0}; Lb=function(G,B,a){G.Mo()?G.Bf():G.xW(B,a)}; TA=function(G,B,a,V){V=new g.T({Z:"div",bL:["ytp-linked-account-popup-button"],cS:V,N:{role:"button",tabindex:"0"}});B=new g.T({Z:"div",J:"ytp-linked-account-popup",N:{role:"dialog","aria-modal":"true",tabindex:"-1"},D:[{Z:"div",J:"ytp-linked-account-popup-title",cS:B},{Z:"div",J:"ytp-linked-account-popup-description",cS:a},{Z:"div",J:"ytp-linked-account-popup-buttons",D:[V]}]});g.uq.call(this,G,{Z:"div",J:"ytp-linked-account-popup-container",D:[B]},100);var x=this;this.dialog=B;g.X(this,this.dialog); V.listen("click",function(){x.Bf()}); g.X(this,V);g.SX(this.T,this.element,4);this.hide()}; g.Fq=function(G,B,a,V){g.dI.call(this,G);this.priority=B;a&&g.sc(this,a);V&&this.jn(V)}; g.JK=function(G,B,a,V){G=G===void 0?{}:G;B=B===void 0?[]:B;a=a===void 0?!1:a;V=V===void 0?!1:V;B.push("ytp-menuitem");var x=G;"role"in x||(x.role="menuitem");a||(x=G,"tabindex"in x||(x.tabindex="0"));G={Z:a?"a":"div",bL:B,N:G,D:[{Z:"div",J:"ytp-menuitem-icon",cS:"{{icon}}"},{Z:"div",J:"ytp-menuitem-label",cS:"{{label}}"},{Z:"div",J:"ytp-menuitem-content",cS:"{{content}}"}]};V&&G.D.push({Z:"div",J:"ytp-menuitem-secondary-icon",cS:"{{secondaryIcon}}"});return G}; g.sc=function(G,B){G.updateValue("label",B)}; AK=function(G){g.Fq.call(this,g.JK({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var B=this;this.T=G;this.X=this.j=!1;this.Gi=G.KG();G.createServerVe(this.element,this,!0);this.K(this.T,"settingsMenuVisibilityChanged",function(a){B.xD(a)}); this.K(this.T,"videodatachange",this.G);this.listen("click",this.onClick);this.G()}; Yg=function(G){return G?g.tU(G):""}; iq=function(G){g.r.call(this);this.api=G}; PE=function(G){iq.call(this,G);var B=this;WE(G,"setAccountLinkState",function(a){B.setAccountLinkState(a)}); WE(G,"updateAccountLinkingConfig",function(a){B.updateAccountLinkingConfig(a)}); G.addEventListener("videodatachange",function(a,V){B.onVideoDataChange(V)}); G.addEventListener("settingsMenuInitialized",function(){B.menuItem=new AK(B.api);g.X(B,B.menuItem)})}; oGA=function(G){this.api=G;this.j={}}; oJ=function(G,B,a,V){B in G.j||(a=new g.V1(a,V,{id:B,priority:2,namespace:"appad"}),G.api.z1([a],1),G.j[B]=a)}; Md=function(G){iq.call(this,G);var B=this;this.events=new g.Zh(this);g.X(this,this.events);this.j=new oGA(this.api);this.events.K(this.api,"legacyadtrackingpingreset",function(){B.j.j={}}); this.events.K(this.api,"legacyadtrackingpingchange",function(a){var V=B.j;oJ(V,"part2viewed",1,0x8000000000000);oJ(V,"engagedview",Math.max(1,a.Md*1E3),0x8000000000000);if(!a.isLivePlayback){var x=a.lengthSeconds*1E3;V3(a)&&V.api.S("html5_shorts_gapless_ads_duration_fix")&&(x=V.api.getProgressState().seekableEnd*1E3-a.xA);oJ(V,"videoplaytime25",x*.25,x);oJ(V,"videoplaytime50",x*.5,x);oJ(V,"videoplaytime75",x*.75,x);oJ(V,"videoplaytime100",x,0x8000000000000);oJ(V,"conversionview",x,0x8000000000000); oJ(V,"videoplaybackstart",1,x);oJ(V,"videoplayback2s",2E3,x);oJ(V,"videoplayback10s",1E4,x)}}); this.events.K(this.api,g.hm("appad"),this.X);this.events.K(this.api,g.ew("appad"),this.X)}; ak_=function(G,B,a){if(!(a in B))return!1;B=B[a];Array.isArray(B)||(B=[B]);B=g.m(B);for(a=B.next();!a.done;a=B.next()){a=a.value;var V={CPN:G.api.getVideoData().clientPlaybackNonce};a=g.fy(a,V);V=void 0;V=V===void 0?!1:V;(V=iE(PV(a,Mzg),a,V,"Active View 3rd Party Integration URL"))||(V=void 0,V=V===void 0?!1:V,V=iE(PV(a,GaB),a,V,"Google/YouTube Brand Lift URL"));V||(V=void 0,V=V===void 0?!1:V,V=iE(PV(a,B2b),a,V,"Nielsen OCR URL"));g.qM(a,void 0,V)}return!0}; Gq=function(G,B){VkA(G,B).then(function(a){g.qM(B,void 0,void 0,a)})}; BB=function(G,B){B.forEach(function(a){Gq(G,a)})}; VkA=function(G,B){return g.yI(G.api.U())&&KB(B)&&w1(B)?g.Vm(G.api.U(),g.uv(G.api.getVideoData())).then(function(a){var V;a&&(V={Authorization:"Bearer "+a});return V},void 0):Dd()}; xz_=function(G){iq.call(this,G);this.events=new g.Zh(G);g.X(this,this.events);this.events.K(G,"videoready",function(B){if(G.getPresentingPlayerType()===1){var a,V,x={playerDebugData:{pmlSignal:!!((a=B.getPlayerResponse())==null?0:(V=a.adPlacements)==null?0:V.some(function(h){var e;return h==null?void 0:(e=h.adPlacementRenderer)==null?void 0:e.renderer})), contentCpn:B.clientPlaybackNonce}};g.wP("adsClientStateChange",x)}})}; ag=function(G){g.T.call(this,{Z:"button",bL:["ytp-button"],N:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},D:[{Z:"div",J:"ytp-autonav-toggle-button-container",D:[{Z:"div",J:"ytp-autonav-toggle-button",N:{"aria-checked":"true"}}]}]});this.T=G;this.X=[];this.j=!1;this.isChecked=!0;G.createClientVe(this.element,this,113681);this.K(G,"presentingplayerstatechange",this.g9);this.listen("click",this.onClick);this.T.U().S("web_player_autonav_toggle_always_listen")&& hGA(this);Ec(G,this.element,this);this.g9()}; hGA=function(G){G.X.push(G.K(G.T,"videodatachange",G.g9));G.X.push(G.K(G.T,"videoplayerreset",G.g9));G.X.push(G.K(G.T,"onPlaylistUpdate",G.g9));G.X.push(G.K(G.T,"autonavchange",G.GP))}; eGx=function(G){G.isChecked=G.isChecked;G.d1("ytp-autonav-toggle-button").setAttribute("aria-checked",String(G.isChecked));var B=G.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";G.updateValue("title",B);G.updateValue("label",B);G.T.Gh()}; WTc=function(G){return G.T.U().S("web_player_autonav_use_server_provided_state")&&P_(G.VK())}; wpH=function(G){iq.call(this,G);var B=this;this.events=new g.Zh(G);g.X(this,this.events);this.events.K(G,"standardControlsInitialized",function(){var a=new ag(G);g.X(B,a);G.O6(a,"RIGHT_CONTROLS_LEFT")})}; V8=function(G,B){g.Fq.call(this,g.JK({role:"menuitemcheckbox","aria-checked":"false"}),B,G,{Z:"div",J:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; x3=function(G,B){G.checked=B;G.element.setAttribute("aria-checked",String(G.checked))}; KTY=function(G){var B=!G.U().N9&&G.getPresentingPlayerType()!==3;return G.isFullscreen()||B}; g.hY=function(G,B,a,V){var x=G.currentTarget;if((a===void 0||!a)&&g.ju(G))return G.preventDefault(),!0;B.pauseVideo();G=x.getAttribute("href");g.Qd(G,V,!0);return!1}; g.ej=function(G,B,a){if(F6(B.U())&&B.getPresentingPlayerType()!==2){if(g.ju(a))return B.isFullscreen()&&!B.U().externalFullscreen&&B.toggleFullscreen(),a.preventDefault(),!0}else{var V=g.ju(a);V&&B.pauseVideo();g.Qd(G,void 0,!0);V&&(g.LY(G),a.preventDefault())}return!1}; kag=function(){var G=lkB.includes("es-419")?{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,N:{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"}}]}:{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,N:{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"}}]};G.J="ytp-subtitles-button-icon";return G}; WB=function(){return{Z:"div",J:"ytp-spinner-container",D:[{Z:"div",J:"ytp-spinner-rotator",D:[{Z:"div",J:"ytp-spinner-left",D:[{Z:"div",J:"ytp-spinner-circle"}]},{Z:"div",J:"ytp-spinner-right",D:[{Z:"div",J:"ytp-spinner-circle"}]}]}]}}; wR=function(G){if(document.createRange){var B=document.createRange();B&&(B.selectNodeContents(G),G=window.getSelection())&&(G.removeAllRanges(),G.addRange(B))}}; k3=function(G){var B=G.S("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";V8.call(this,B,g.KP.xx);var a=this;this.T=G;this.j=!1;this.X=new g.J8(function(){g.WC(a.element,"ytp-menuitem-highlighted")},0); this.Gi=G.KG();this.setIcon({Z:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Z:"path",N:{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.C,this);this.listen(lp,this.G);g.X(this,this.X)}; NS=function(G){iq.call(this,G);var B=this;this.j=!1;G.addEventListener("settingsMenuInitialized",function(){N29(B)}); G.addEventListener("highlightSettingsMenu",function(a){N29(B);var V=B.menuItem;a==="menu_item_cinematic_lighting"&&(g.hi(V.element,"ytp-menuitem-highlighted"),g.hi(V.element,"ytp-menuitem-highlight-transition-enabled"),V.X.start())}); WE(G,"updateCinematicSettings",function(a){B.updateCinematicSettings(a)})}; N29=function(G){G.menuItem||(G.menuItem=new k3(G.api),g.X(G,G.menuItem),G.menuItem.uL(G.j))}; dR=function(G){iq.call(this,G);var B=this;this.events=new g.Zh(G);g.X(this,this.events);this.events.K(G,"applicationvideodatachange",function(a,V){B.VM(a,V)})}; CP=function(G){iq.call(this,G);this.events=new g.Zh(G);g.X(this,this.events);WE(G,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));WE(G,"setCreatorEndscreenHideButton",this.j.bind(this))}; zq=function(G,B,a,V){V8.call(this,"Volumen estable",g.KP.JF);g.hi(this.element,"ytp-drc-menu-item");this.Gi=G.KG();this.G=B;this.j=a;this.hasDrcAudioTrack=V;G.addEventListener("videodatachange",this.X.bind(this));G.S("mta_drc_mutual_exclusion_removal")&&this.K(G,"onPlaybackAudioChange",this.X);G=this.j()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({Z:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Z:"path",N:{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.C,this);x3(this,G);this.Gi.WC(this)}; tY=function(G){iq.call(this,G);var B=this;this.events=new g.Zh(G);g.X(this,this.events);G.S("html5_show_drc_toggle")&&G.addEventListener("settingsMenuInitialized",function(){B.menuItem||(B.menuItem=new zq(B.api,B.setDrcUserPreference.bind(B),B.getDrcUserPreference.bind(B),B.X.bind(B)),g.X(B,B.menuItem))}); WE(this.api,"setDrcUserPreference",function(V){B.setDrcUserPreference(V)}); WE(this.api,"getDrcUserPreference",function(){return B.getDrcUserPreference()}); WE(this.api,"hasDrcAudioTrack",function(){return B.X()}); var a;this.j=(a=g.SL("yt-player-drc-pref"))!=null?a:1;this.updateEnvironmentData()}; m1=function(G){iq.call(this,G);var B=this;this.j={};this.events=new g.Zh(G);g.X(this,this.events);this.events.K(G,"videodatachange",function(){B.onVideoDataChange()}); this.events.K(G,g.hm("embargo"),function(a){B.api.Y$(!0);var V,x=(V=B.j[a.id])!=null?V:[];V=g.m(x);for(x=V.next();!x.done;x=V.next()){var h=x.value;B.api.hideControls();B.api.Ev("auth",2,"This video isn't available in your current playback area",b5({embargoed:1,id:a.id,idx:a.X,start:a.start}));x=void 0;(h=(x=h.embargo)==null?void 0:x.onTrigger)&&B.api.pN("innertubeCommand",h)}})}; dzg=function(G,B){var a;return(a=B.onEnter)==null?void 0:a.some(G.X)}; CD_=function(G,B){B=g.m(B);for(var a=B.next();!a.done;a=B.next()){a=a.value;var V=void 0,x=Number((V=a.playbackPosition)==null?void 0:V.utcTimeMillis)/1E3,h=void 0;V=x+Number((h=a.duration)==null?void 0:h.seconds);h="embargo_"+x;G.api.addUtcCueRange(h,x,V,"embargo",!1);a.onEnter&&(G.j[h]=a.onEnter.filter(G.X))}}; Ig=function(G){iq.call(this,G);var B=this;this.j=[];this.events=new g.Zh(G);g.X(this,this.events);WE(G,"addEmbedsConversionTrackingParams",function(a){B.api.U().V0&&B.addEmbedsConversionTrackingParams(a)}); this.events.K(G,"veClickLogged",function(a){B.api.hasVe(a)&&(a=ef(a.visualElement.getAsJspb(),2),B.j.push(a))})}; zGz=function(G){iq.call(this,G);WE(G,"isEmbedsShortsMode",function(){return G.isEmbedsShortsMode()})}; tkH=function(G){iq.call(this,G);var B=this;this.events=new g.Zh(G);g.X(this,this.events);this.events.K(G,"initialvideodatacreated",function(a){bD(jk(),16623);B.j=g.y0();var V=G.U().Da&&!a.L3;if(XV(a)&&V){bD(jk(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(a.getWatchNextResponse()){var x,h=(x=a.getWatchNextResponse())==null?void 0:x.trackingParams;h&&cp(h)}if(a.getPlayerResponse()){var e;(a=(e=a.getPlayerResponse())==null?void 0:e.trackingParams)&&cp(a)}}else bD(jk(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),a.getEmbeddedPlayerResponse()&&(e=(h=a.getEmbeddedPlayerResponse())==null?void 0:h.trackingParams)&&cp(e)}); this.events.K(G,"loadvideo",function(){bD(jk(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:B.j})}); this.events.K(G,"cuevideo",function(){bD(jk(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:B.j})}); this.events.K(G,"largeplaybuttonclicked",function(a){bD(jk(),27240,a.visualElement)}); this.events.K(G,"playlistnextbuttonclicked",function(a){bD(jk(),27240,a.visualElement)}); this.events.K(G,"playlistprevbuttonclicked",function(a){bD(jk(),27240,a.visualElement)}); this.events.K(G,"playlistautonextvideo",function(){bD(jk(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; gR=function(G,B){g.r.call(this);var a=this;this.j=null;this.C=B;B=[];for(var V=0;V<=100;V++)B.push(V/100);B={threshold:B,trackVisibility:!0,delay:1E3};(this.X=window.IntersectionObserver?new IntersectionObserver(function(x){x=x[x.length-1];typeof x.isVisible==="undefined"?document.visibilityState==="visible"&&x.isIntersecting&&x.intersectionRatio>0?a.j=x.intersectionRatio:document.visibilityState==="hidden"?a.j=0:a.j=null:a.j=x.isVisible?x.intersectionRatio:0;typeof a.C==="function"&&a.C(a.j)},B): null)&&this.X.observe(G)}; IkB=function(G){iq.call(this,G);var B=this;this.events=new g.Zh(G);g.X(this,this.events);this.events.K(G,"applicationInitialized",function(){mzK(B)})}; mzK=function(G){var B=G.api.getRootNode(),a=B;if(!G.api.S("embeds_emc3ds_inview_ks")){var V;a=G.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((V=B.parentElement)==null?void 0:V.parentElement)||B:B}G.j=new gR(a,function(x){x!=null&&(G.api.U().Hh=x,G.api.U().Ru="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.X(G,G.j);G.events.K(G.api,"videoStatsPingCreated",function(x){var h=G.j;h=h.j==null?null:Math.round(h.j*100)/100;x.inview=h!=null?h:void 0;h=G.api.getPlayerSize();if(h.height>0&&h.width>0){h=[Math.round(h.width),Math.round(h.height)];var e=g.A3();e>1&&h.push(e);h=h.join(":")}else h=void 0;x.size=h})}; gAY=function(G){var B;return((B=((G==null?void 0:G.messageRenderers)||[]).find(function(a){return!!a.timeCounterRenderer}))==null?void 0:B.timeCounterRenderer)||null}; pP=function(G){g.T.call(this,{Z:"div",bL:["ytp-player-content","ytp-iv-player-content"],D:[{Z:"div",J:"ytp-free-preview-countdown-timer",D:[{Z:"span",cS:"{{label}}"},{Z:"span",J:"ytp-free-preview-countdown-timer-separator",cS:"\u2022"},{Z:"span",cS:"{{duration}}"}]}]});this.api=G;this.j=null;this.C=this.X=0;this.K(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; Uzx=function(G,B){G.j||(G.X=B,G.C=(0,g.yT)(),G.j=new g.F7(function(){pp9(G)},null),pp9(G))}; pp9=function(G){var B=Math,a=B.round,V=Math.min((0,g.yT)()-G.C,G.X);B=a.call(B,(G.X-V)/1E3);G.updateValue("duration",mT({seconds:B}));B<=0&&G.j?UO(G):G.j&&G.j.start()}; UO=function(G){G.j&&(G.j.dispose(),G.j=null)}; Oh_=function(G){iq.call(this,G);var B=this;this.events=new g.Zh(G);g.X(this,this.events);this.events.K(G,"basechromeinitialized",function(){B.j=new pP(G);g.X(B,B.j);g.SX(G,B.j.element,4);B.j.hide()})}; OO=function(G){g.T.call(this,{Z:"button",bL:["ytp-fullerscreen-edu-button","ytp-button"],D:[{Z:"div",bL:["ytp-fullerscreen-edu-text"],cS:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{Z:"div",bL:["ytp-fullerscreen-edu-chevron"],D:[{Z:"svg",N:{height:"100%",viewBox:"0 0 24 24",width:"100%"},D:[{Z:"path",N:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],N:{"data-priority":"1"}});this.JX=G;this.j=new g.Bm(this,250,void 0,100);this.C=this.X=!1; G.createClientVe(this.element,this,61214);g.X(this,this.j);this.K(G,"fullscreentoggled",this.uL);this.K(G,"presentingplayerstatechange",this.uL);this.listen("click",this.onClick);this.uL()}; EO=function(G){iq.call(this,G);var B=this;this.events=new g.Zh(G);g.X(this,this.events);WE(this.api,"updateFullerscreenEduButtonSubtleModeState",function(V){B.updateFullerscreenEduButtonSubtleModeState(V)}); WE(this.api,"updateFullerscreenEduButtonVisibility",function(V){B.updateFullerscreenEduButtonVisibility(V)}); var a=G.U();G.S("external_fullscreen_with_edu")&&a.externalFullscreen&&F6(a)&&a.controlsType==="1"&&this.events.K(G,"standardControlsInitialized",function(){B.j=new OO(G);g.X(B,B.j);G.O6(B.j)})}; EAy=function(G){g.T.call(this,{Z:"div",J:"ytp-gated-actions-overlay",D:[{Z:"div",J:"ytp-gated-actions-overlay-background",D:[{Z:"div",J:"ytp-gated-actions-overlay-background-overlay"}]},{Z:"button",bL:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],N:{"aria-label":"Cerrar"},D:[g.UX()]},{Z:"div",J:"ytp-gated-actions-overlay-bar",D:[{Z:"div",J:"ytp-gated-actions-overlay-text-container",D:[{Z:"div",J:"ytp-gated-actions-overlay-title",cS:"{{title}}"},{Z:"div",J:"ytp-gated-actions-overlay-subtitle", cS:"{{subtitle}}"}]},{Z:"div",J:"ytp-gated-actions-overlay-button-container"}]}]});var B=this;this.api=G;this.background=this.d1("ytp-gated-actions-overlay-background");this.X=this.d1("ytp-gated-actions-overlay-button-container");this.j=[];this.K(this.d1("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){B.api.pN("onCloseMiniplayer")}); this.hide()}; bhH=function(G,B){var a=0;a=0;for(var V={};a x&&(x=w.width,h="url("+w.url+")")}a.background.style.backgroundImage=h;bhH(a,V.actionButtons||[]);a.show()}else a.hide()}); g.SX(this.api,this.j.element,4)}; jj=function(G){iq.call(this,G);var B=this;Kb(this.api,"getSphericalProperties",function(){return B.getSphericalProperties()}); Kb(this.api,"setSphericalProperties",function(){B.setSphericalProperties.apply(B,g.U(g.Hz.apply(0,arguments)))}); ww(this.api,"getSphericalProperties",function(){return B.api.getPresentingPlayerType()===2?{}:B.getSphericalProperties()}); ww(this.api,"setSphericalProperties",function(){var a=g.Hz.apply(0,arguments);B.api.getPresentingPlayerType()!==2&&B.setSphericalProperties.apply(B,g.U(a))})}; bp=function(G){iq.call(this,G);WE(G,"createClientVe",this.createClientVe.bind(this));WE(G,"createServerVe",this.createServerVe.bind(this));WE(G,"destroyVe",this.destroyVe.bind(this));WE(G,"hasVe",this.hasVe.bind(this));WE(G,"logClick",this.logClick.bind(this));WE(G,"logVisibility",this.logVisibility.bind(this));WE(G,"setTrackingParams",this.setTrackingParams.bind(this))}; y8=function(G,B,a,V){function x(e){var w=!(e.status!==204&&e.status!==200&&!e.response),K;e={succ:""+ +w,rc:e.status,lb:((K=e.response)==null?void 0:K.byteLength)||0,rt:((0,g.yT)()-h).toFixed(),shost:g.rp(G),trigger:B};c2B(e,G);a&&a(e);V&&!w&&V(new yH("pathprobe.net",e))} var h=(0,g.yT)();g.bm(G,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:x,onTimeout:x})}; c2B=function(G,B){var a;((a=window.performance)==null?0:a.getEntriesByName)&&(B=performance.getEntriesByName(B))&&B.length&&(B=B[0],G.pedns=(B.domainLookupEnd-B.startTime).toFixed(),G.pecon=(B.connectEnd-B.domainLookupEnd).toFixed(),G.perqs=(B.requestStart-B.connectEnd).toFixed(),nAx&&(G.perqsa=B.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; cB=function(G,B){this.Gt=G;this.policy=B;this.playbackRate=1}; fkA=function(G,B){var a=Math.min(2.5,mG(G.Gt));G=nP(G);return B-a*G}; fP=function(G,B,a,V,x){x=x===void 0?!1:x;if(G.policy.PE)return Math.ceil(G.policy.PE*B);G.policy.bF&&(V=Math.abs(V));V/=G.playbackRate;var h=1/pI(G.Gt);a=Math.max(.9*(V-3),mG(G.Gt)+G.Gt.X.j*h)/h*.8/(B+a);a=Math.min(a,V);G.policy.ym>0&&x&&(a=Math.max(a,G.policy.ym));return HhA(G,a,B)}; HhA=function(G,B,a){return Math.ceil(Math.max(Math.max(G.policy.dQ,G.policy.HF*a),Math.min(Math.min(G.policy.qB,31*a),Math.ceil(B*a))))||G.policy.dQ}; vAb=function(G,B,a){a=fP(G,B.j.info.NB,a.j.info.NB,0);var V=mG(G.Gt)+a/pI(G.Gt);return Math.max(V,V+G.policy.i$-a/B.j.info.NB)}; nP=function(G){return pI(G.Gt,!G.policy.rQ,G.policy.Pl)}; HB=function(G){return nP(G)/G.playbackRate}; vB=function(G,B,a){var V=G.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],x=G.policy.playbackStartPolicy.startMinReadaheadPolicy||[];G=Infinity;B=g.m(B&&V.length>0?V:x);for(V=B.next();!V.done;V=B.next())V=V.value,x=V.minReadaheadMs||0,a<(V.minBandwidthBytesPerSec||0)||G>x&&(G=x);return G0&&(this.X=a.b4)}; ZhV=function(G,B,a,V,x){if(!V.info.G){if(a.length===0)a.push(V);else{var h;(G=(h=a.pop())==null?void 0:g.o7(h,V))?a.push(G):a.push(V)}return x}var e;(a=(e=a.pop())==null?void 0:g.o7(e,V))||(a=V);if(G.policy.w7&&a.info.X)return G.logger&&G.logger({incompleteSegment:a.info.cC()}),x;e=G.mq(a);V=e.formatId;x=e.AX;a=e.clipId;h=e.Yy;e=e.startTimeMs;if(!G.policy.M9&&G.policy.X&&G.EZ){var w=Sj(G.EZ,a);e+=w}V={clipId:a,formatId:V,startTimeMs:e,durationMs:h,XO:x,Xh:x};x=DzH(B,V.startTimeMs);(a=x>=0?B[x]:null)&& S0A(G,a,V)?V=a:(x+=1,B.splice(x,0,V));a=0;for(h=x+1;h=l+e.X?e=!0:k+e.X=0?G:-G-2}; r2x=function(G,B){if(G.Wf){var a=G.Wf.Ms();if(a.length!==0){if(G.C&&B){var V=G.C,x=V.info.Sn;!wZ(a,x)&&V.info.L>0&&(0,g.yT)()-G.L<5E3&&(G.logger&&G.logger({dend:V.info.cC()}),a=bY_(a,x,x+.01))}G.policy.Wh&&G.logger&&G.logger({cbri:""+G.j});V=[];for(var h=x=0;x=e){var k=0;if(G.EZ){var N=Rg(G.EZ,K*1E3);N&&(k=N.Y1/1E3)}N=Object.assign({},G.Pf[h]);var d=G.hX.C.get(jE(G.Pf[h].formatId)), C=Math.max(K,e);e=d.index.nR(C+G.X/1E3-k);K=d.index.getStartTime(e)+k;var z=e+ +(Math.abs(K-C)>G.X/1E3);C=z+G.G;z=(d.index.getStartTime(z)+k)*1E3;h!==G.j||B?(N.XO=C,N.startTimeMs=z):(G.logger&&G.logger({pEvict:"1",og:N.startTimeMs,adj:K*1E3}),N.XO=e+G.G,N.startTimeMs=K*1E3);e=void 0;K=((e=G.C)==null?void 0:e.info.duration)||11;h===G.j&&wG.X/1E3);e=K+G.G;k=(d.index.TC(K)+k)*1E3;N.Xh=e;N.durationMs=k-N.startTimeMs;N.XO<=N.Xh&&V.push(N)}lG.X)return!1;if(RGB(G,B.formatId,a.formatId))return B.durationMs=Math.max(V,x)-B.startTimeMs,B.Xh=Math.max(B.Xh,a.Xh),!0;if(Math.abs(B.startTimeMs-a.startTimeMs)<=G.X){if(B.durationMs>a.durationMs+G.X){G=B.formatId;var h=B.XO,e=B.Xh;B.formatId=a.formatId;B.durationMs=a.durationMs;B.XO=a.XO;B.Xh=a.Xh;a.formatId=G;a.startTimeMs=x;a.durationMs=V-x;a.XO=h;a.Xh=e;return!1}B.formatId=a.formatId;return!0}V> a.startTimeMs&&(B.durationMs=a.startTimeMs-B.startTimeMs,B.clipId===a.clipId&&(B.Xh=a.XO-1));return!1}; RGB=function(G,B,a){return B.itag!==a.itag||B.xtags!==a.xtags?!1:G.hX.SE||B.lmt===a.lmt}; q0K=function(G,B,a){if(G.logger){for(var V=[],x=0;x=0&&qS(G.audioTrack,G.j)>=0&&h?((G.videoTrack.B||G.audioTrack.B)&&G.CN.FJ("iterativeSeeking",{status:"done",count:G.seekCount}),G.videoTrack.B=!1,G.audioTrack.B=!1):V&&g.KJ(function(){if(G.X||!G.policy.QW)LP(G);else{var e=B.startTime,w=B.duration;if(!G.policy.L){var K=a?G.videoTrack.B:G.audioTrack.B,l=G.videoTrack.L!==-1&&G.audioTrack.L!==-1,k=G.j>=e&&G.j432E3&&NWc(G.hX);G.C&&(x=G.C,G.C=0);g.KJ(function(){G.policy.L||Tq(G,x,102)}); G.CN.FJ("initManifestlessSync",{st:x,ost:x+G.CN.F3(),a:G.audioTrack.L,v:G.videoTrack.L});G.G&&(G.G.resolve(x+.1),G.G=null);G.policy.L&&Tq(G,x,102)}}}; JY=function(G,B){var a=this;this.yW=G;this.requestNumber=++ihy;this.j=this.now();this.V=this.Y=NaN;this.W=this.j;this.C=this.wO=this.B=0;this.L=this.j;this.MB=this.XJ=this.LN=this.Cd=this.m3=this.GH=this.X=this.G=0;this.zH=this.isActive=!1;this.QW=this.eJ=0;this.vC={PIn:function(){return a.K1}}; this.Gt=B.Gt;this.snapshot=P3H(this.Gt);this.policy=this.Gt.X;this.iy=!!B.iy;this.ZA=B.ZA;this.N$=B.N$||0;this.EA=B.EA||0;B.Fs&&(this.Zx=new wG);var V;this.K1=(V=B.K1)!=null?V:!1;this.iy||A5x(this.Gt)}; PDY=function(G){G.LN=Math.max(G.LN,G.B-G.m3);G.XJ=Math.max(G.XJ,G.W-G.Cd);G.GH=0}; AY=function(G,B,a){YMx(G.Gt,B);G.Zx&&(G.Zx.add(Math.ceil(B)-Math.ceil(G.W)),G.Zx.add(Math.max(0,Math.ceil(a/1024)-Math.ceil(G.B/1024))));var V=B-G.W,x=a-G.B;G.wO=x;G.MB=Math.max(G.MB,x/(V+.01)*1E3);G.W=B;G.B=a;G.GH&&a>G.GH&&PDY(G)}; Y3=function(G,B){G.url=B;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; ip=function(G,B){JY.call(this,G,B);this.Yf=this.Md=!1;this.Qb=this.HS=Infinity;this.SJ=NaN;this.fh=!1;this.Vb=NaN;this.YD=this.qB=this.Er=0;this.fP=B.fP||1;this.lQ=B.lQ||this.fP;this.eF=B.eF;this.AX=B.AX;this.hA=B.hA;oAV(this);this.dX(this.j);this.Dx=(this.Vb-this.j)/1E3}; MkX=function(G){var B=G.qB||G.Er;return B?G.snapshot.delay+Math.min(G.EA,(G.V-G.Y)/1E3)+B:G.Dx}; PB=function(G,B,a){if(!G.iy){B=Math.max(B,.01);var V=G.N$?Math.max(B,a/G.N$):B,x=G.Gt.X.C;x&&(V=B,G.N$&&(V=Math.max(B,a/G.N$*x)));CI(G.Gt,B,a,V)}}; GOK=function(G){return(G.L-G.j)/1E3}; oAV=function(G){G.SJ=G.j+G.snapshot.delay*1E3;G.fh=!1}; og=function(G,B){if(G.eF&&G.AX!==void 0&&G.hA!==void 0){var a=Math,V=a.min,x=G.HS;var h=G.eF;var e=G.j;if(BfB(h,G.AX))h=B;else{var w=0;h.TF&&(w=.2);h=e+(h.EA+w)*1E3}G.HS=V.call(a,x,h);a=Math;V=a.min;x=G.Qb;h=G.eF;e=G.j;w=a_b(h,G.AX,G.hA);w!==2&&(B=w?B:e+h.EA*1E3,h.TF&&(B+=h.EA*1E3));G.Qb=V.call(a,x,B);G.HS<=G.j?oAV(G):(G.SJ=G.HS,G.fh=!0)}}; Vax=function(G,B){if(G.TK(B,1)){var a=G.getUint8(B);a=a<128?1:a<192?2:a<224?3:a<240?4:5}else a=0;if(a<1||!G.TK(B,a))return[-1,B];if(a===1)G=G.getUint8(B++);else if(a===2)a=G.getUint8(B++),G=G.getUint8(B++),G=(a&63)+64*G;else if(a===3){a=G.getUint8(B++);var V=G.getUint8(B++);G=G.getUint8(B++);G=(a&31)+32*(V+256*G)}else if(a===4){a=G.getUint8(B++);V=G.getUint8(B++);var x=G.getUint8(B++);G=G.getUint8(B++);G=(a&15)+16*(V+256*(x+256*G))}else a=B+1,G.focus(a),Uj(G,a,4)?G=XDY(G).getUint32(a-G.sy,!0):(V= G.getUint8(a+2)+256*G.getUint8(a+3),G=G.getUint8(a)+256*(G.getUint8(a+1)+256*V)),B+=5;return[G,B]}; MS=function(G){this.yW=G;this.j=new mN}; GS=function(G,B){this.info=G;this.callback=B;this.state=1;this.jT=this.Ja=!1;this.Av=null}; xFx=function(G){return g.yN(G.info.nN,function(B){return B.type===3})}; BT=function(G,B,a,V){var x=this;V=V===void 0?{}:V;this.policy=B;this.yW=a;this.status=0;this.j=new mN;this.X=0;this.TH=this.G=this.C=!1;this.xhr=new XMLHttpRequest;this.xhr.open(V.method||"GET",G);if(V.headers)for(G=V.headers,B=g.m(Object.keys(G)),a=B.next();!a.done;a=B.next())a=a.value,this.xhr.setRequestHeader(a,G[a]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return x.V6()}; this.xhr.onload=function(){return x.onDone()}; this.xhr.onerror=function(){return x.onError()}; this.xhr.fetch(function(h){x.j.append(h);x.X+=h.length;h=(0,g.yT)();x.yW.Po(h,x.X)},function(){},V.body||null)}; hhK=function(G,B){this.X=(new TextEncoder).encode(G);this.j=(new TextEncoder).encode(B)}; wfB=function(G,B){var a,V,x;return g.v(function(h){if(h.j==1){if(!B)return h.return(B);a=ao.eT();V=new g.Ud(G.X);return g.f(h,V.encrypt(B,G.j),2)}x=h.X;ao.QE("woe",a,Math.ceil(B.byteLength/16));return h.return(x)})}; d0K=function(G,B){var a,V,x;return g.v(function(h){if(h.j==1){if(!B)return h.return(B);a=ao.eT();V=new g.Ud(G.X);return g.f(h,V.decrypt(B,G.j),2)}x=h.X;ao.QE("wod",a,Math.ceil(B.byteLength/16));return h.return(x)})}; WZX=function(G,B){var a=this;this.j=G;this.yW=B;this.loaded=this.status=0;this.error="";G=cs(this.j.get("range")||"");if(!G)throw Error("bad range");this.range=G;this.X=new mN;ehY(this).then(function(){a.yW.sC()},function(V){a.error=""+V||"unknown_err"; a.yW.sC()})}; ehY=function(G){var B,a,V,x,h,e,w,K,l,k,N,d,C,z,p;return g.v(function(O){if(O.j==1){G.status=200;B=G.j.get("docid");a=AE(G.j.get("fmtid")||"");V=G.j.get("lmt")||"0";x=+(G.j.get("csz")||0);if(!B||!a||!x)throw Error("Invalid local URL");G.j.get("ck")&&G.j.get("civ")&&(h=new hhK(G.j.get("ck"),G.j.get("civ")));e=G.range;w=Math.floor(e.start/x);K=Math.floor(e.end/x);l=w}if(O.j!=5)return l<=K?g.f(O,Czz(B,a,V,l,h),5):O.kf(0);k=O.X;if(k===void 0)throw Error("invariant: data is undefined");N=l*x;d=(l+1)*x; C=Math.max(0,e.start-N);z=Math.min(e.end+1,d)-(C+N);p=new Uint8Array(k.buffer,C,z);G.X.append(p);G.loaded+=z;G.loaded0&&(x.j=Math.min(x.j+e,10),x.X=h);x.j>0?(x.j--,x=!0):x=!1;if(x)typeof V==="function"&&(V=V()),console.log("plyr."+B,V);else{var w;V=((w=tay.get(B))!=null?w:0)+1;tay.set(B,V);V%100===1&&console.warn("plyr","plyr."+B+" is chatty, dropping logs.")}}}; zhg=function(){this.j=10;this.X=Date.now()}; eZ=function(G,B){g.r.call(this);var a=this;this.policy=G;this.nN=B;this.X=0;this.j=null;this.Ov=[];this.C=null;this.vC={t2:function(){return a.nN}}; this.nN.length===1||g.yN(this.nN,function(V){return!!V.range})}; WT=function(G,B,a){G.j&&(I3(G.j,B),B=G.j,G.j=null);for(var V=0,x=0,h=g.m(G.nN),e=h.next();!e.done;e=h.next())if(e=e.value,e.range&&V+e.C<=G.X)V+=e.C;else{B.getLength();if(vs(e)&&!a&&G.X+B.getLength()-x=400?(G.lastError="net.badstatus",!0):(x===void 0?0:x)?(G.lastError="ump.spsrejectfailure",!0):a||V!==void 0&&V?!1:(G.lastError=B===204?"net.nocontent":"net.connect",!0)}; d6=function(G,B){if(G.policy.Z3)return!1;var a=B.getResponseHeader("content-type"),V=B.pH();G=!V||V<=G.policy.Z1;return(!B.KX()||!a||a.indexOf("text/plain")!==-1)&&G}; OTK=function(G,B){var a="";B=B.Ne();B.getLength()<=G.policy.Z1&&(a=UFc(G,B.qo()));return a}; UFc=function(G,B){var a=jD(B);return Mf(a)?(G.logger.debug(function(){return"Redirecting to "+a}),a):""}; KL=function(G){return I7(G.C,Oi(G.sx.Fi))}; EhX=function(G){var B=G.timing.gW();B.shost=Oi(G.sx.Fi);return B}; j1g=function(G,B){return(G==null?void 0:G.maxWidth)>(B==null?void 0:B.maxWidth)||(G==null?void 0:G.maxHeight)>(B==null?void 0:B.maxHeight)}; bTA=function(G,B){for(var a=g.m(B.keys()),V=a.next();!V.done;V=a.next())if(V=B.get(V.value),V.length!==0){g.wK(V,function(w,K){return K.maxFramerate-w.maxFramerate}); for(var x=[V[0]],h=0,e=1;eG.j||a.push(V)}return a}; CL=function(G,B,a){var V=nhB[G]||[];a.S("html5_shorts_onesie_mismatched_fix")&&(V=f_x[G]||[]);B.push.apply(B,g.U(V));a.S("html5_early_media_for_drm")&&B.push.apply(B,g.U(HTz[G]||[]))}; rqz=function(G,B){var a=g.WF(G),V=G.U(),x=V.B;V=V.S("html5_shorts_onesie_mismatched_fix");var h=G.IM();if(V){if(!x.G){if(h&&zS)return zS;if(t9)return t9}}else if(t9&&!x.G)return t9;var e=[],w=[],K={},l=mk.concat(vhK);V&&(l=mk.concat(DFx));G.S("html5_early_media_for_drm")&&(l=l.concat(Sic),G.S("allow_vp9_1080p_mq_enc")&&l.push(RhX));var k=[].concat(g.U(ZTB));if(a.Y)for(var N=0;Na.W0)){var p=g.kf(G.U().experiments,"html5_drm_byterate_soft_cap");p>0&&ENx(z)&&z.NB>p||(N?(e.push(C),CL(C,e,G)):(z=NF(a,z,x),z===!0?(N=!0,e.push(C),CL(C,e,G)):K[C]=z))}}}k=g.m(k);for(l=k.next();!l.done;l=k.next())for(l=g.m(l.value),N=l.next();!N.done;N=l.next())if(N= N.value,(d=pvY(N))&&d.audio&&(G.S("html5_onesie_51_audio")||!Y2(d)&&!i5(d)))if(d=NF(a,d,x),d===!0){w.push(N);CL(N,w,G);break}else K[N]=d;a.X&&B("orfmts",K);if(V)return x.G&&(x.G=!1,zS=t9=void 0),h?zS={video:e,audio:w}:t9={video:e,audio:w};t9={video:e,audio:w};x.G=!1;return t9}; g.qix=function(G,B,a){var V=a.B,x=[],h=[],e=a.S("html5_shorts_onesie_mismatched_fix");G=G.IM();var w=mk.concat(vhK);e&&(w=mk.concat(DFx));a.S("html5_early_media_for_drm")&&(w=w.concat(Sic),a.S("allow_vp9_1080p_mq_enc")&&w.push(RhX));var K=[].concat(g.U(ZTB));if(B.Y)for(var l=0;l0&&ENx(N)&&N.NB>d)&&NF(B,N,V)===!0){x.push({videoCodec:$FB[L1[k]],maxWidth:N.video.width,maxHeight:N.video.height,maxFramerate:N.video.fps});break}}}}e=g.m(K);for(G=e.next();!G.done;G=e.next())for(G=g.m(G.value),K=G.next();!K.done;K=G.next())if(K=K.value,(w=pvY(K))&&w.audio&&(a.S("html5_onesie_51_audio")||!Y2(w)&&!i5(w))&&NF(B,w,V)=== !0){h.push({audioCodec:XU9[L1[K]],numChannels:w.audio.numChannels});break}return{videoFormatCapabilities:x,audioFormatCapabilities:h}}; Io=function(G){var B={},a=G.jJ,V=G.Rn,x=a.getVideoData(),h=r2(0),e=a.getPlayerSize(),w=a.getVisibilityState();h&&(B.bhx=h,B.lastManualDirection=ZFV(),h=hRb()||0,h>0&&(h=(V.S("html5_use_date_now_for_local_storage")?Date.now():(0,g.yT)())-h,V.S("html5_use_date_now_for_local_storage")?h>0&&(B.timeSinceLastManualFormatSelectionMs=h):B.timeSinceLastManualFormatSelectionMs=h));h=V.S("html5_use_streamer_bandwidth_for_low_latency_live")&&x.isLowLatencyLiveStream;if(V.schedule.zH&&!h){var K;h=V.S("html5_disable_bandwidth_cofactors_for_sabr_live")? !((K=G.NQ)==null||!K.rQ):!1;B.Fb=pI(V.schedule,!h)}K=g.A3();var l=g.Xa.medium,k=Math.floor(l*16/9);h=x.IM()?l:k;l=x.IM()?k:l;B.im=Math.max(e.width*K,h);B.ZM=Math.max(e.height*K,l);B.visibility=w;B.NE1=cD();B.Fk=a.h2()*1E3;e=G.jJ.J4(!0);var N,d,C,z,p,O;B.bnf={defaultPolicy:(e==null?void 0:(N=e.pS)==null?void 0:N.j)||0,smooth:(e==null?void 0:(d=e.hEd)==null?void 0:d.j)||0,visibility:(e==null?void 0:(C=e.W5x)==null?void 0:C.j)||0,Hv:(e==null?void 0:(z=e.Rj)==null?void 0:z.j)||0,performance:(e==null? void 0:(p=e.wP)==null?void 0:p.j)||0,speed:(e==null?void 0:(O=e.uhJ)==null?void 0:O.j)||0};if(V.S("html5_sabr_report_sticky_constraints")){var b;B.XU=(e==null?void 0:(b=e.KtL)==null?void 0:b.j)||0}else B.XU=r2();V.S("html5_enable_sabr_drm_hd720p")&&G.sabrLicenseConstraint&&(B.sabrLicenseConstraint=G.sabrLicenseConstraint);if(V.S("html5_onesie_media_capabilities")||V.S("html5_enable_server_format_filter"))B.AT=3;V.S("html5_onesie_audio_only_playback")&&xX(x)&&(B.AT=1);var c;((c=G.NQ)==null?0:c.fh)&& G.Hhr&&(B.AT=B.AT===void 0?7:B.AT|4);N=x.MD?x.MD:g.WF(x);V.S("html5_onesie_media_capabilities")&&(B.mediaCapabilities=g.qix(x,N,V));var H;if((H=G.NQ)==null?0:H.j&&H.L3){C=V.B;H=[];d=[];z=new Map;V.S("html5_ssap_update_capabilities_on_change")?(C.zH||QFA(C),p=C.zH||[]):p=Array.from(C.j.values());p=g.m(p);for(O=p.next();!O.done;O=p.next())b=O.value,b.zz?d.push({audioCodec:XU9[b.PS],numChannels:b.numChannels,spatialCapabilityBitmask:u$_[b.PS]}):(c=$FB[b.PS],O={videoCodec:c,maxWidth:b.maxWidth||0,maxHeight:b.maxHeight|| 0,maxFramerate:b.maxFramerate||0,is10BitSupported:b.hx||!1},b.maxBitrateBps&&(O.maxBitrateBps=b.maxBitrateBps,e=hC(b.itag),w=void 0,((w=e)==null?0:w.video)&&NF(N,e,C)===!0&&(e=e.NB*8,e>O.maxBitrateBps&&(O.maxBitrateBps=e))),b=c+"_"+b.hx,c=z.get(b)||[],c.push(O),z.set(b,c));H=bTA(H,z);C={};V.S("html5_ssff_denylist_opus_low")&&(C={itagDenylist:[249,350]});B.mediaCapabilities={videoFormatCapabilities:H,audioFormatCapabilities:d,hdrModeBitmask:3,perPlaybackAttributes:C}}var R;if((R=G.NQ)==null?0:R.j){B.Lc= N.Lc;var q;B.W0=(q=G.NQ)==null?void 0:q.W0}V.IG&&(B.N5=V.IG);B.mG=G.HZ;B.m0=G.m0;B.jp=G.jp;B.Fv=G.Fv;if(V.S("html5_fix_time_since_last_seek_reporting")?G.DQ!==void 0:G.DQ)B.Y$n=(0,g.yT)()-G.DQ;G.isPrefetch&&V.S("html5_report_prefetch_requests")&&(B.isPrefetch=!0);iB||(B.YfX=!0);R=mG(V.schedule)*1E3;R>0&&(B.AD=R);var A;((A=G.NQ)==null?0:A.pQ)&&G.fg&&G.fg0?J:V.schedule.interruptions[0]||0);var xB;if((xB=G.NQ)==null?0:xB.wO)B.pZ=G.pZ;var Wz;((Wz=G.NQ)==null?0:Wz.HI)&&x.SF&&(B.audioTrackId=x.SF);var GK;if((GK=G.NQ)==null?0:GK.xm)if(G=pmc())B.detailedNetworkType=Q1A[G]||Q1A.other;return B}; g6=function(G,B,a,V,x,h,e){var w={};B&&(w.zy=B);if(!G)return w;w.playbackCookie=a==null?void 0:a.playbackCookie;x&&(w.Fy=x);w.cK=[];w.jr=[];if(e==null?0:e.size)for(B=g.m(e.values()),a=B.next();!a.done;a=B.next())w.jr.push(a.value);if(G.sabrContextUpdates.size>0)for(B=g.m(G.sabrContextUpdates.values()),a=B.next();!a.done;a=B.next())LZK(w,a.value,V);eO(G)&&!g.AC(G)&&G.S("html5_enable_sabr_request_pipelining")&&h&&LZK(w,h,V);G.Q3&&(w.Ltr=G.Q3);V=G.U().j;w.clientInfo={clientName:Tfy[V.c.toUpperCase()]|| 0};V.cbrand&&(w.clientInfo.deviceMake=V.cbrand);V.cmodel&&(w.clientInfo.deviceModel=V.cmodel);V.cver&&(w.clientInfo.clientVersion=V.cver);V.cos&&(w.clientInfo.osName=V.cos);V.cosver&&(w.clientInfo.osVersion=V.cosver);V=G.U();V.S("html5_sabr_enable_server_xtag_selection")&&V.fh&&(w.clientInfo.hl=V.fh);G.UC&&(w.UC=G.UC);return w}; LZK=function(G,B,a){var V=B.type||0;(a==null?0:a.has(V))?G.jr.push(B):G.cK.push(V)}; $3=function(G,B,a,V,x,h){var e=h===void 0?{}:h;var w=e.ge===void 0?[]:e.ge;var K=e.D9===void 0?!1:e.D9;var l=e.UI===void 0?0:e.UI;var k=e.poToken===void 0?"":e.poToken;var N=e.E9===void 0?void 0:e.E9;var d=e.ya===void 0?"":e.ya;var C=e.U$===void 0?0:e.U$;var z=e.xl===void 0?new Uint8Array(0):e.xl;var p=e.v7===void 0?!1:e.v7;h=e.F1===void 0?0:e.F1;e=e.zy===void 0?void 0:e.zy;GS.call(this,B,x);var O=this;this.policy=G;this.logger=new g.xY("dash/request");this.X7=this.Mq=0;this.tZ=!1;this.Ua=this.M7= null;this.D8=!1;this.xl=this.U$=null;this.B7=this.lH=!1;this.BQ=null;this.F1=this.YZ=0;this.Us=!1;this.vC={g7:function(c){O.g7(c)}, iFJ:function(){return O.Av}, OLN:function(c){O.Av=c}, U0S:function(c){O.Mq=c}, I5f:function(c){O.Ay.lastError=c}, GU:function(){return O.xhr}}; this.timing=new ip(this,a);this.D9=K;this.U$=C;this.xl=z;this.sx=g.uM(this.info,this.policy,V);this.sx.set("rn",this.Ea().toString());this.sx.set("rbuf",(l*1E3).toFixed().toString());this.D9&&this.sx.set("smb","1");this.policy.A6&&k&&this.sx.set("pot",k);d&&this.sx.set("bbs",d);this.policy.useUmp&&!Ei(this.sx.Fi)&&(this.H3=new MS(this),this.sx.set("ump","1"),this.sx.set("srfvp","1"));if(G=this.policy.Ku?this.policy.HX&&!isNaN(this.info.hA)&&this.info.hA>this.policy.C5?!1:!0:!1)B=null,this.policy.SW&& this.policy.S9?B=[1]:p&&(B=[]),B!=null&&(this.policy.B2&&B.push(2),this.sx.set("defsel",B.join(",")));this.Ay=new w6(this,this.policy,this.sx,this.info.kD,this.timing,this.logger,V,N);this.ge=w||null;this.jT=s1_(this);mF_(this.Ay);V=void 0;if(this.policy.uW||this.H3||this.policy.LN)V={method:"POST"},w=(0,g.pL)([120,0]),N={},this.policy.IA&&e&&(e=g6(void 0,e),N.jW=e),this.policy.i_&&this.xl&&(N.videoPlaybackUstreamerConfig=this.xl),this.policy.LN&&(e=this.info.G)&&Object.assign(N,e),Object.keys(N).length> 0?V.body=g.Yy(N,g.Pp):V.body=w;if(this.U$&&this.xl){this.sx.set("iwts","1");V={method:"POST"};e={Fv:this.U$*1E3};var b;w=(b=this.info.G)==null?void 0:b.yA;b=g.Yy({jz:e,yA:w||void 0,videoPlaybackUstreamerConfig:this.xl},g.Pp);V.body=b}try{this.xhr=Vr(this.sx,this.policy.V,this.timing,G,V),this.Ay.X.start(),h&&(this.nK=new g.J8(this.d5,h,this),this.nK.start(h+(this.timing.Gt.V.cG()||0)*1E3)),this.policy.u4&&Y3(this.timing,this.Ex()),this.logger.debug(function(){return"Sent, itag="+O.sx.get("itag")+ " seg="+O.info.nN[0].AX+" range="+O.sx.get("range")+" time="+Math.round(O.info.nN[0].Sn)+"-"+Math.round(g.s3(O.info.nN).K3)+" rtp="+(O.timing.xC()-Date.now()).toFixed(0)}),g.KJ(function(){})}catch(c){FZH(this,c,!0)}}; s1_=function(G){if(!(qC(G.info)&&G.info.K1()&&G.policy.n3&&G.ge)||G.info.kD.X>=2||r2()>0||!qeY())return!1;var B=G.sx.get("aitags");if(!B)return!1;B=AE(B).split(",");for(var a=[],V=g.m(G.ge),x=V.next();!x.done;x=V.next())x=x.value,g.YC(B,x)&&a.push(x);if(!a.length)return!1;G.sx.set("altitags",g.JE(a.join(",")));return!0}; FZH=function(G,B,a){a=a===void 0?!1:a;g.RA(B);G.Ay.lastError="player.exception";G.errorMessage=B.name+"_"+B.message;a?g.KJ(function(){kY(G.Ay)}):kY(G.Ay)}; Jqz=function(G,B){G.timing.zH=!0;G.xhr.KX()&&G.timing.RU();if(G.policy.OZ){var a;(a=G.nK)==null||a.stop()}WT(G.Av,B,!1)}; AqH=function(G,B){G.info=B;if(G.Av){var a=G.Av;B=B.nN;(B.length!==a.nN.length||B.length0){B=g.m(B.nN);for(var a=B.next();!a.done;a=B.next()){var V=void 0;G+=((V=a.value.range)==null?void 0:V.length)||0}return G}if(B.Fj.length>0)for(a=g.m(B.Fj),V=a.next();!V.done;V=a.next())G+=V.value.CL||0;return G+B.Ri}; nL=function(G,B){if(bw){var a=0;G=G.Kd.get(B);if(G==null||!G.OS)return 0;G=g.m(G.OS.values());for(B=G.next();!B.done;B=G.next())a+=B.value.data.getLength();return a}return((a=G.Kd.get(B))==null?void 0:a.Ov.getLength())||0}; fL=function(G,B){G=G.Kd.get(B);if(bw){if(G==null||!G.ME)return!1;B=G.OS.size>0;return G.RI.length>0||B}return!(G==null||!G.ME)&&!(G==null||!G.Ov.getLength())}; Gcy=function(G,B){var a=G.Kd.get(B),V=MaA(G,B),x=!V&&!!a.bytesReceived;if(bw){var h;if((h=G.hX)==null?0:h.SE){G=g.m(a.OS.values());for(B=G.next();!B.done;B=G.next())if(!B.value.xS)return!1;return x}}else if(h=G.tV(B),x&&G.j&&h!==void 0)return h;return(x||a.bytesReceived===V)&&a.er+nL(G,B)===a.bytesReceived}; BVB=function(G,B,a){G.Kd.set(B,{Ov:new mN,er:0,bytesReceived:0,Ri:0,XR:!1,HG:!1,tV:!1,zz:a,uw:[],nN:[],Fj:[],ME:!1,OS:new Map,p$:new Map,RI:[]});G.logger.debug(function(){return"[initStream] formatId: "+B})}; auB=function(G,B,a,V){a.nN.push.apply(a.nN,g.U(V));if(bw){a.p$.has(B)||a.p$.set(B,[]);var x;(x=a.p$.get(B)).push.apply(x,g.U(V))}else if(a.Av)for(G=g.m(V),B=G.next();!B.done;B=G.next())a.Av.nN.push(B.value);else{a.Av=new eZ(G.NQ,[].concat(g.U(a.nN)));var h;((h=G.NQ)==null?0:h.Zr)&&g.X(G,a.Av)}}; VEB=function(G,B,a){var V,x=(V=G.hX)==null?void 0:V.C.get(B);if(!x)return[];if(a.Cc){var h;return((h=x.kS(0,a.clipId))==null?void 0:h.nN)||[]}if(x.P3()){var e=a.startMs,w=a.durationMs,K=1E3,l;if(((l=G.NQ)==null?0:l.j)&&a.timeRange){var k;e=(k=a.timeRange.startTicks)!=null?k:-1;var N;w=(N=a.timeRange.fH)!=null?N:-1;var d;K=(d=a.timeRange.timescale)!=null?d:-1}if(a.Bc<0||a.Sh<0||w<0||e<0||a.CL<0||K<0)return cT(G,B),[];G=nE(a.Bc,a.CL);B=a.fY||0;return[new Hs(3,x,G,"makeSliceInfosMediaBytes",a.Sh-1,e/ K,w/K,B,G.length-B,void 0,a.FQ,a.clipId)]}if(a.Sh<0)return cT(G,B),[];var C;return((C=G.hX)==null?0:C.SE)?(B=x.zm,l=B*x.info.NB,k=((e=G.NQ)==null?0:e.w7)?a.fY:void 0,((K=G.NQ)==null?0:K.YP)&&a.timeRange&&!k&&(w=a.timeRange.startTicks/a.timeRange.timescale),[new Hs(3,x,void 0,"makeSliceInfosMediaBytes",a.Sh,w,B,k,l,!0,a.FQ,a.clipId)]):[]}; xCx=function(G,B,a){G.hX=B;G.NQ=a;B=g.m(G.Kd);for(a=B.next();!a.done;a=B.next()){var V=g.m(a.value);a=V.next().value;V=V.next().value;for(var x=g.m(V.uw),h=x.next();!h.done;h=x.next()){h=h.value;var e=VEB(G,a,h);auB(G,h.ly,V,e)}}}; HT=function(G,B,a,V){G.logger.debug(function(){return"[addStreamData] formatId: "+a+",headerId: "+B+" bytes: "+V.getLength()}); (G=G.Kd.get(a))&&!G.HG&&(bw?(G.OS.has(B)||G.OS.set(B,{data:new mN,Al:0,xS:!1}),I3(G.OS.get(B).data,V)):I3(G.Ov,V),G.bytesReceived+=V.getLength(),G.XR=!0)}; yr=function(G,B){G.logger.debug(function(){return"[closeStream] formatId: "+B}); var a=G.Kd.get(B);a&&!a.HG&&(a.HG=!0,a.OA&&a.OA(),h0z(G)&&G.G.qN())}; h0z=function(G){G=g.m(G.Kd.values());for(var B=G.next();!B.done;B=G.next())if(!B.value.HG)return!1;return!0}; vT=function(G,B,a,V,x,h,e,w){g.r.call(this);this.policy=G;this.info=B;this.hX=a;this.yW=x;this.GN=w;this.logger=new g.xY("sabr");this.H3=new MS(this);this.BV=new EG(this);this.oy=new jZ(this);this.state=1;this.AZ=!1;this.k8=0;this.clipId="";this.LX=this.qL=-1;this.RE=0;this.Ni=-1;this.Us=this.Qz=!1;this.Vp=0;this.JQ=!1;this.policy.xH?this.vn=new UG(this,h):this.vn=new ip(this,h);this.sx=this.policy.wO?B.ID:e0y(B,this.policy,V);this.sx.set("rn",""+this.Ea());this.sx.set("alr","yes");xCx(this.oy,a, G);this.Ay=new w6(this,this.policy,this.sx,B.kD,this.vn,this.logger,V,e,this.policy.enableServerDrivenRequestCancellation);mF_(this.Ay);var K;if((K=this.policy)==null?0:K.Zr)g.X(this,this.oy),g.X(this,this.Ay);G=B.X;B={method:"POST",body:G};G&&(this.RE=G.length);try{this.xhr=Vr(this.sx,this.policy.V,this.vn,iB,B),this.policy.u4&&Y3(this.vn,this.Ex()),this.Ay.X.start()}catch(l){g.Zb(l)}}; Wf9=function(G){G.policy.HP&&G.M3&&!G.JQ?G.JQ=!0:G.vn.RU()}; wsg=function(G,B){var a=-1,V=-1,x=-1,h;if((h=G.G8)==null?0:h.items)for(G=g.m(G.G8.items),h=G.next();!h.done;h=G.next())h=h.value,B=w,K=G.hX.isManifestless&&G.policy.tb, e){var l;if(((l=G.j)==null?void 0:l.sA.event)==="predictStart"&&G.j.AXG.B&&(G.B=NaN,G.W=NaN);if(G.j&&G.j.AX===B)if(V=G.j,x&&V){var e=V.sA;h=x.Y2(e);e.event==="predictStart"&&(G.XJ=B);G.FJ("sdai",{onqevt:e.event,sq:B,mt:a,gab:h,cst:e.startSecs,cueid:G.policy.Ro&&(h||e.event==="start")?e.identifier:void 0},!0);if(h)if(e.event!=="predictStart")e.event==="start"&&G.XJ===B-1&&G.FJ("sdai",{gabonstart:B}),V.Zw?ZT(G, 4,"cue"):(G.B=B,G.W=a,G.FJ("sdai",{joinad:G.X,sg:G.B,st:G.W.toFixed(3)}),G.Y=Date.now(),ZT(G,2,"join"),x.NA(V.sA));else{var w=B+Math.max(Math.ceil(-e.j/5E3),1);h=Math.floor(a-e.j/1E3);G.policy.B?G.C=h:G.G=w;G.FJ("sdai",{onpred:a,estsq:w,estmt:h.toFixed(3)});$Y(G.CN,h,h,w);G.Y=Date.now();ZT(G,3,"predict");x.NA(V.sA)}else G.X===1?((w=G.L)==null?0:w.y8(a))?($Y(G.CN,a,a,B),ZT(G,4,"sk2had")):ZT(G,5,"nogab"):e.event==="predictStart"&&(G.policy.B&&G.C>0?(a=Math.floor(a-e.j/1E3),G.C!==a&&G.FJ("sdai",{updateSt:a, old:G.C}),G.C=a):G.G>0&&(a=B+Math.max(Math.ceil(-e.j/5E3),1),G.G!==a&&(G.FJ("sdai",{updateSt:a,old:G.G}),G.G=a)));var K,l;if(G.cn&&e.event==="start"&&((K=G.j)==null?void 0:K.sA.event)!=="predictStart"&&((l=G.j)==null?void 0:l.AX)===B-1){var k;G.FJ("sdai",{ovlpst:(k=G.j)==null?void 0:k.sA.event,sq:B})}}else G.FJ("sdai",{nulldec:1,sq:B,mt:a.toFixed(3),evt:(V==null?void 0:(e=V.sA)==null?void 0:e.event)||"none"});else G.X===1&&ZT(G,5,"noad")}; j7b=function(G,B,a){if(G.X===1||G.X===2)return!1;if(G.X!==0&&B===G.audioTrack){if(G.policy.B)return EpX(G.videoTrack,a)||EpX(G.videoTrack,a+1);G=X1(G.videoTrack);if(a>(G?G.AX:-1))return!1}return!0}; qj=function(G,B,a){return(a<0||a===G.B)&&!isNaN(G.W)?G.W:B}; ps_=function(G,B){if(G.j){var a=G.j.sA.YF-(B.startTime+G.V-G.j.sA.startSecs);a<=0||(a=new X$(G.j.sA.startSecs-(isNaN(G.V)?0:G.V),a,G.j.sA.context,G.j.sA.identifier,"stop",G.j.sA.j+B.duration*1E3),G.FJ("cuepointdiscontinuity",{segNum:B.AX}),Ro(G,a,B.AX))}}; ZT=function(G,B,a){G.X!==B&&(G.FJ("sdai",{setsst:B,old:G.X,r:a}),G.X=B)}; uw=function(G,B,a,V){(V===void 0?0:V)?ZT(G,1,"seek"):B>0&&Math.abs(B-a)>=5&&G.X===4&&ZT(G,5,"sk2t."+B.toFixed(2)+";ct."+a.toFixed(2))}; Qr=function(G,B,a){this.audio=G;this.video=B;this.reason=a}; LL=function(G,B,a){this.j=G;this.reason=B;this.token=a;this.videoId=void 0}; TS=function(G,B,a){g.r.call(this);this.policy=G;this.G=B;this.FJ=a;this.C=new Map;this.B=0;this.L=!1;this.j="";this.X=!1}; sG=function(G,B,a){if(a===void 0?0:a)G.L=!0;++G.B;a=6E4*Math.pow(2,G.B);a=(0,g.yT)()+a;G.C.set(B.info.id,a)}; F1=function(G){for(var B=g.m(G.C.entries()),a=B.next();!a.done;a=B.next()){var V=g.m(a.value);a=V.next().value;V=V.next().value;V<(0,g.yT)()&&G.C.delete(a)}return G.C}; bEH=function(G){return G.L&&F1(G).size>0}; J9=function(G,B){G.j!==B&&(G.j=B,G.X=!0)}; yBb=function(G,B){var a;B&&(a=g.JJ(G.G.j,function(x){return x.id===B})); if(!a&&(a=g.JJ(G.G.j,function(x){var h;return!((h=x.VW)==null||!h.isDefault)}),B)){var V; G.FJ("iaf",{id:B,sid:(V=a)==null?void 0:V.id})}return a}; YY=function(G,B,a,V,x,h){var e=this;h=h===void 0?[]:h;this.CN=G;this.HS=B;this.policy=a;this.hX=V;this.L=x;this.Vb=h;this.logger=new g.xY("dash/abr");this.j=L$;this.C=this.W=null;this.Y=-1;this.Qb=!1;this.nextVideo=this.X=null;this.G=[];this.qB=new Set;this.LN={};this.MB=new l0(1);this.V=0;this.Er=this.XJ=this.zH=!1;this.GH=0;this.Ur=!1;this.Zx=new Set;this.SJ=!1;this.vC={hZ:function(){A9(e)}}; this.B=new TS(this.policy,x,function(w,K){e.CN.FJ(w,K)})}; vpb=function(G,B,a){iw(G,B);B=yBb(G.B,a);a||B||(B=cBY(G));B=B||G.L.j[0];G.X=G.hX.j[B.id];A9(G);G.W=G.X;npB(G);fuB(G);G.C=G.nextVideo;G.W=G.X;return HEb(G)}; R0Y=function(G,B){if(DCc(G,B))return null;if(B.reason==="m"&&B.isLocked())return G.logger.debug(function(){return"User sets constraint to: "+WU(B)}),iw(G,B),G.V=G.G.length-1,A9(G),PT(G),G.XJ=G.XJ||G.C!==G.nextVideo,G.C=G.nextVideo,new Qr(G.X,G.C,B.reason); B.reason==="r"&&(G.Y=-1);iw(G,B);PT(G);if(B.reason==="r"&&G.nextVideo===G.C)return new Qr(G.X,G.nextVideo,B.reason);SYA(G);return null}; ZEH=function(G,B,a){G.X=G.hX.j[B];G.W=G.X;return new Qr(G.W,G.C,a?"t":"m")}; rB_=function(G,B){if(B.info.video){if(G.C!==B)return G.C=B,HEb(G)}else G.Er=G.W!==B,G.W=B;return null}; $Cg=function(G,B){if(B.j.info.video&&B.G){var a=(B.X+B.C)/B.duration,V=B.j.info.NB;a&&V&&(G.MB.j$(1,a/V),G.policy.C&&a/V>1.5&&G.CN.FJ("overshoot",{sq:B.AX,br:a,max:V}))}}; oo=function(G,B,a){sG(G.B,B,a===void 0?!1:a);G.Y=-1;iw(G,G.j)}; XsY=function(G,B){return new Qr(G.W,G.C,B||G.j.reason)}; SYA=function(G){if(G.C&&G.nextVideo&&Mj(G,G.C.info)G.policy.W0,w=x<=G.policy.W0?AX(V):sB(V);if(!h||e||w)a[x]=V}return a}; iw=function(G,B){G.j=B;var a=G.L.videoInfos;if(!G.j.isLocked()){var V=(0,g.yT)();a=g.wb(a,function(w){if(w.NB>this.policy.NB)return!1;var K=this.hX.j[w.id];return F1(this.B).get(w.id)>V?!1:K.kD.X>4||K.L>4?(this.logger.debug(function(){return"Remove "+xb(w)+"; 4 load failures"}),!1):this.Zx.has(+w.itag)?!1:!0},G); bEH(G.B)&&(a=g.wb(a,function(w){return w.video.width<=854&&w.video.height<=480}))}a.length||(a=G.L.videoInfos); var x=a;G.policy.VN&&(x=u3x(G,x,B));x=g.wb(x,B.G,B);if(G.j.isLocked()&&G.B.j){var h=g.JJ(a,function(w){return w.id===G.B.j}); h?x=[h]:J9(G.B,"")}G.policy.VN||(x=u3x(G,x,B));x.length||(x=[a[0]]);x.sort(function(w,K){return Mj(G,w)-Mj(G,K)}); B={};for(a=1;aB.zd.video.width?(g.ia(x,a),a--):Mj(G,B.q6)*G.policy.Y>Mj(G,B.zd)&&(g.ia(x,a-1),a--);var e=x[x.length-1];G.Ur=!!G.C&&!!G.C.info&&G.C.info.PS!==e.PS;G.logger.debug(function(){return"Constraint: "+WU(G.j)+", "+x.length+" fmts selectable, max selectable fmt: "+xb(e)}); G.G=x;G.qB.clear();B=!1;for(a=0;a=1080&&(B=!0);Q7B(G.policy,e,G.hX.SE)}; u3x=function(G,B,a){var V=a.reason==="m"||a.reason==="s";G.policy.hS&&G6&&g.It&&(!V||a.j<1080)&&(B=B.filter(function(l){return l.video&&(!l.X||l.X.powerEfficient)})); if(B.length>0)if(tj()){var x=qY9(G,B);B=B.filter(function(l){return!!l&&!!l.video&&l.PS===x[l.video.j].PS})}else{var h,e,w=(h=B[0])==null?void 0:(e=h.video)==null?void 0:e.j; if(w){a=B.filter(function(l){return!!l&&!!l.video&&l.video.j===w}); var K=qY9(G,a)[w].PS;B=B.filter(function(l){return!!l&&!!l.video&&l.PS===K})}}return B}; Lfx=function(G,B){for(var a=0;a+1V}; A9=function(G){if(!G.X||!G.policy.G&&!G.X.info.VW){var B=G.L.j;G.X&&(B=B.filter(function(V){return V.audio.j===G.X.info.audio.j}),B.length||(B=G.L.j)); G.X=G.hX.j[B[0].id];if(B.length>1){if(G.policy.QA){if(G.policy.Sr){var a=g.br(B,function(V){return V.audio.audioQuality}); G.CN.FJ("aq",{hqa:G.policy.eJ,qs:a.join("_")})}if(G.policy.eJ)return;if(a=g.JJ(B,function(V){return V.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}))G.X=G.hX.j[a.id]}a=!1; if(a=G.policy.R4?!0:G.j.isLocked()?G.j.j<240:Lfx(G,G.X))G.X=G.hX.j[g.s3(B).id]}}}; PT=function(G){if(!G.nextVideo||!G.policy.G)if(G.j.isLocked())G.nextVideo=G.j.j<=360?G.hX.j[G.G[0].id]:G.hX.j[g.s3(G.G).id],G.logger.debug(function(){return"Select max fmt: "+xb(G.nextVideo.info)}); else{for(var B=Math.min(G.V,G.G.length-1),a=HB(G.HS),V=Mj(G,G.X.info),x=a/G.policy.zH-V;B>0&&!(Mj(G,G.G[B])<=x);B--);for(var h=a/G.policy.Y-V;B=h);B++);G.nextVideo=G.hX.j[G.G[B].id];G.V!==B&&G.logger.info(function(){return"Adapt to: "+xb(G.nextVideo.info)+", bandwidth: "+a.toFixed(0)+", bandwidth to downgrade: "+x.toFixed(0)+", bandwidth to upgrade: "+h.toFixed(0)+", constraint: "+WU(G.j)}); G.V=B}}; npB=function(G){var B=G.policy.zH,a=HB(G.HS),V=a/B-Mj(G,G.X.info);B=g.AJ(G.G,function(x){return Mj(this,x)h?x=0:V[e]>G.buffered[e]&&(e===h-1?x=2:e===h-2&&V[e+1]>G.buffered[e+1]&&(x=3))}G.j.add(B<<3|(a&&4)|x);B=Math.ceil(G.track.h2()*1E3);G.j.add(B-G.B);G.B=B;if(x===1)for(G.j.add(h),e=B=0;e=2&&G.j.add(V[h- 1]-G.buffered[h-1]);a&&G.j.add(a);G.buffered=V}; Va=function(G,B,a){var V=this;this.policy=G;this.j=B;this.GH=a;this.G=this.X=0;this.vx=null;this.zH=new Set;this.Y=[];this.indexRange=this.initRange=null;this.V=new iV;this.XJ=this.HS=!1;this.vC={HFS:function(){return V.C}, u11:function(){return V.chunkSize}, A7L:function(){return V.W}, Lux:function(){return V.L}}; (B=ABK(this))?(this.chunkSize=B.csz,this.C=Math.floor(B.clen/B.csz),this.W=B.ck,this.L=B.civ):(this.chunkSize=G.Wj,this.C=0,this.W=g.Et(16),this.L=g.Et(16));this.B=new Uint8Array(this.chunkSize);this.W&&this.L&&(this.crypto=new hhK(this.W,this.L))}; ABK=function(G){if(G.policy.iz&&G.policy.Ez)for(var B=g.m(G.policy.iz),a=B.next(),V={};!a.done;V={B4:void 0,gF:void 0},a=B.next())if(a=g.x4(a.value),V.B4=+a.clen,V.gF=+a.csz,V.B4>0&&V.gF>0&&G.policy.G===a.docid&&G.j.info.id===a.fmtid&&G.j.info.lastModified===+a.lmt)return G={},G.clen=V.B4,G.csz=V.gF,G.ck=a.ck,G.civ=a.civ,G}; xM=function(G){return!!G.vx&&G.vx.Pr()}; PMb=function(G,B){if(!xM(G)&&!G.TH()){if(!(G.HS||(G.HS=!0,G.C>0))){var a=hT(G);a=DD(G.policy.G,G.j.info,eS(G),a,G.policy.Vb);W6(G,a)}if(B.info.type===1){if(G.vx){w0(G,Error("Woffle: Expect INIT slices to always start us off"));return}G.initRange=nE(0,B.j.getLength())}else if(B.info.type===2)G.vx&&G.vx.type===1||w0(G,Error("Woffle: Index before init")),G.indexRange=nE(G.initRange.end+1,B.j.getLength());else if(B.info.type===3){if(!G.vx){w0(G,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(G.vx.type===3&&!SE(G.vx,B.info)&&(G.Y=[],B.info.AX!==R7(G.vx)||B.info.X!==0))return;if(B.info.G){a=g.m(G.Y);for(var V=a.next();!V.done;V=a.next())YY_(G,V.value);G.Y=[]}else{G.Y.push(B);G.vx=B.info;return}}else{w0(G,Error("Woffle: Unexpected slice type"));return}G.vx=B.info;YY_(G,B);iEy(G)}}; YY_=function(G,B){var a=0,V=B.j.qo();if(G.G=V.length)return;if(a<0)throw Error("Missing data");G.G=G.C;G.X=0}for(x={};a0){var e=V.getUint32(a+28);h+=e*16+4}var w=V.getUint32(a+h-4);try{var K=aEA(B.subarray(a+h,a+h+w));if(K!==null){var l=K;break a}}catch(k){}}a+=x}l=null;break a}catch(k){l=null;break a}l=void 0}if(l!=null)for(B=lO(r3(l,7)),B==null||G.C3||(G.cryptoPeriodIndex=B),B=lO(r3(l,10)),B!=null&&B>0&&!G.C3&&(G.j=B),l=sE(l, 2,mUA,void 0===pK_?2:4),l=g.m(l),B=l.next();!B.done;B=l.next())G.C.push(g.md(yj(B.value),4))}; xpA=function(G){return isNaN(G.cryptoPeriodIndex)?g.md(G.initData):""+G.cryptoPeriodIndex}; kM=function(G,B,a){var V=a===void 0?{}:a;a=V.videoDuration===void 0?0:V.videoDuration;var x=V.mm===void 0?void 0:V.mm;V=V.H2===void 0?!1:V.H2;this.videoId=G;this.status=B;this.videoDuration=a;this.mm=x;this.H2=V}; hK_=function(G,B,a,V,x){this.videoId=G;this.B1=B;this.X=a;this.bytesDownloaded=V;this.j=x}; NL=function(G){this.j=G;this.offset=0}; d0=function(G){if(G.offset>=G.j.getLength())throw Error();return G.j.getUint8(G.offset++)}; eKX=function(G,B){B=B===void 0?!1:B;var a=d0(G);if(a===1){B=-1;for(a=0;a<7;a++){var V=d0(G);B===-1&&V!==255&&(B=0);B>-1&&(B=B*256+V)}return B}V=128;for(var x=0;x<6&&V>a;x++)a=a*256+d0(G),V*=128;return B?a:a-V}; WwH=function(G){try{var B=eKX(G,!0),a=eKX(G,!1);return{id:B,size:a}}catch(V){return{id:-1,size:-1}}}; wJx=function(G){for(var B=new NL(G),a=-1,V=0,x=0;!V||!x;){var h=WwH(B),e=h.id;h=h.size;if(e<0)return;if(e===176){if(h!==2)return;V=B.qP()}else if(e===186){if(h!==2)return;x=B.qP()}e===374648427?a=B.qP()+h:e!==408125543&&e!==174&&e!==224&&B.skip(h)}B=Oj(G,0,a);a=new DataView(B.buffer);a.setUint16(V,3840);a.setUint16(x,2160);V=new mN([B]);I3(V,G);return V}; KwA=function(G,B,a){var V=this;this.CN=G;this.policy=B;this.L=a;this.logger=new g.xY("dash");this.X=[];this.j=null;this.HS=-1;this.Y=0;this.Zx=NaN;this.zH=0;this.C=NaN;this.V=this.Qb=0;this.Ur=-1;this.LN=this.B=this.G=this.GH=null;this.MB=this.Er=NaN;this.W=this.XJ=this.qB=this.Vb=null;this.eJ=!1;this.SJ=this.timestampOffset=0;this.vC={GJ:function(){return V.X}}; if(this.policy.G){var x=this.L,h=this.policy.G;this.policy.Vb&&G.FJ("atv",{ap:this.policy.Vb});this.W=new Va(this.policy,x,function(e,w,K){Cu(G,new kM(V.policy.G,2,{mm:new hK_(h,e,x.info,w,K)}))}); this.W.V.promise.then(function(e){V.W=null;e===1?Cu(G,new kM(V.policy.G,e)):V.CN.FJ("offlineerr",{status:e.toString()})},function(e){var w=(e.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); e instanceof Ku&&!e.j?(V.logger.info(function(){return"Assertion failed: "+w}),V.CN.FJ("offlinenwerr",{em:w}),z6(V),Cu(G,new kM(V.policy.G,4))):(V.logger.info(function(){return"Failed to write to disk: "+w}),V.CN.FJ("dldbwerr",{em:w}),z6(V),Cu(G,new kM(V.policy.G,4,{H2:!0})))})}}; lEK=function(G){return G.X.length?G.X[0]:null}; kjX=function(G,B){return G.X.some(function(a){return a.info.AX===B})}; t2c=function(G,B,a,V){V=V===void 0?0:V;if(G.B){var x=G.B.X+G.B.C;if(a.info.X>0)if(a.info.AX===G.B.AX&&a.info.X=0&&G.B.AX>=0&&!SE(G.B,a.info))throw new g.FI("improper_continuation",G.B.cC(),a.info.cC());BZc(G.B,a.info)||tT(G,"d")}else if(a.info.X>0)throw new g.FI("continuation_of_null",a.info.cC());G.B=a.info;G.L=a.info.j;if(a.info.X===0){if(G.j)if(!G.CN.isOffline()||G.policy.ou)G.CN.FJ("slice_not_fully_processed",{buffered:G.j.info.cC(), push:a.info.cC()});else throw new g.FI("slice_not_fully_processed",G.j.info.cC(),a.info.cC());m0(G);G.Qb=V}else{if(G.Qb&&V&&G.Qb!==V)throw G=new g.FI("lmt_mismatch",a.info.AX,G.Qb,V),G.level="WARNING",G;!a.info.j.P3()&&G.G&&(V=a.info,x=G.G.qL,V.B="updateWithEmsg",V.AX=x)}if(G.j){V=g.o7(G.j,a);if(!V)throw new g.FI("failed_to_merge",G.j.info.cC(),a.info.cC());G.j=V}else G.j=a;a:{a=g.PX(G.j.info.j.info);if(G.j.info.type!==3){if(!G.j.info.G)break a;G.j.info.type===6?NXc(G,B,G.j):dpb(G,G.j);G.j=null}for(;G.j;){V= G.j.j.getLength();if(G.HS<=0&&G.Y===0){var h=G.j.j,e=-1;x=-1;if(a){for(var w=0;w+80))break;if(N!==408125543)if(N===524531317)w=!0,k>=0&&(x=h.qP()+k,K=!0);else{if(w&&(N===160||N===163)&&(e<0&&(e=l),K))break;N===163&&(e=Math.max(0,e),x=h.qP()+k);if(N===160){e<0&&(x=e=h.qP()+k);break}h.skip(k)}}e<0&&(x=-1)}if(e< 0)break;G.HS=e;G.Y=x-e}if(G.HS>V)break;G.HS?(V=CB9(G,G.HS),V.B&&zKK(G,V),NXc(G,B,V),Ij(G,V),G.HS=0):G.Y&&(V=CB9(G,G.Y<0?Infinity:G.Y),G.Y-=V.j.getLength(),Ij(G,V))}}G.j&&G.j.info.G&&(Ij(G,G.j),G.j=null)}; dpb=function(G,B){!B.info.j.P3()&&B.info.X===0&&(g.PX(B.info.j.info)||B.info.j.info.C3())&&HeB(B);if(B.info.type===1)try{zKK(G,B),mpb(G,B)}catch(x){g.RA(x);var a=Zu(B.info);a.hms="1";G.CN.handleError("fmt.unparseable",a||{},1)}a=B.info.j;a.QG(B);G.W&&PMb(G.W,B);if(a.tv()&&G.policy.j)a:{G=G.CN.hX;B=B.info.clipId;a=g.My(a.info,G.SE);if(B){var V=AjX(G,a);if(G.SJ[V])break a;G.SJ[V]=B}G.LN.push(a)}}; sMB=function(G,B,a){if(G.X.length!==0&&(a||G.X.some(function(h){return h.info.Sn=pu(e)+w):B=G.getDuration()>=e.getDuration(),B=!B;B&&pJK(a)&&(B=G.GH,g0?(w=nbx(a),e=1/w,w=pu(G,w),B=pu(B)+e-w):B=B.getDuration()- G.getDuration(),B=1+B/a.info.duration,v2y(a.k_(),B))}else{e=!1;G.G||(HeB(a),a.X&&(G.G=a.X,e=!0,h=a.info,V=a.X.qL,h.B="updateWithEmsg",h.AX=V,h=a.X,h.Pr&&(V=G.L.index,V.X=!h.Pr,V.C="emsg"),h=a.info.j.info,V=a.k_(),g.PX(h)?o1(V,1701671783):h.C3()&&eE([408125543],307544935,V)));a:if((h=BJ(a,G.policy.m3))&&fOB(a))w=Upz(G,a),G.V+=w,h-=w,G.zH+=h,G.C=G.policy.G2?G.C+h:NaN;else{if(G.policy.b_){if(V=K=G.CN.Cy(g.MC(a),1),G.C>=0&&a.info.type!==6){if(G.policy.G2&&isNaN(G.Er)){g.Zb(new g.FI("Missing duration while processing previous chunk", a.info.cC()));G.CN.isOffline()&&!G.policy.ou||Ow_(G,a,V);tT(G,"m");break a}var l=K-G.C,k=l-G.V,N=a.info.AX,d=G.LN?G.LN.AX:-1,C=G.MB,z=G.Er,p=G.policy.CZ&&l>G.policy.CZ,O=Math.abs(k)>10,b=Math.abs(G.C-V)<1E-7;if(Math.abs(k)>1E-4){G.SJ+=1;var c=(x=G.G)==null?void 0:Qy(x);x={audio:""+ +G.zz(),sq:N.toFixed(),sliceStart:K,lastSq:d.toFixed(),lastSliceStart:C,lastSliceDuration:z,totalDrift:(l*1E3).toFixed(),segDrift:(k*1E3).toFixed(),skipRewrite:""+ +(p||O)};if(c==null?0:c.length)x.adCpn=c[0];G.CN.handleError("qoe.avsync", x);G.Ur=N}p||O||b||(V=G.C);x=Upz(G,a,K);h-=x;G.V=l+x;G.policy.C&&(k&&!b||x)&&(l=(w=G.G)==null?void 0:Qy(w),G.CN.FJ("discontinuityRewrite",{adCpn:(l==null?0:l.length)?l.join("."):"",itag:a.info.j.info.itag,sq:a.info.AX,originalStartTime:K,rewrittenStartTime:V,startTimeAdjustment:V-K,segDrift:(k*1E3).toFixed(),originalDuration:h+x,rewrittenDuration:h,durationAdjustment:x}))}}else V=isNaN(G.C)?a.info.startTime:G.C;Ow_(G,a,V)&&(G.zH+=h,G.C=V+h,G.policy.Xo&&G.SJ>=G.policy.Xo&&(G.SJ=0,G.CN.AN({resetForRewrites:"count"})))}G.LN= a.info;G.Er=Gj(a);a.C>=0&&(G.MB=a.C);if(e&&G.G){e=EDb(G,!0);rV(a.info,e);G.j&&rV(G.j.info,e);B=g.m(B);for(w=B.next();!w.done;w=B.next())w=w.value,x=void 0,G.policy.L&&w.AX!==((x=G.G)==null?void 0:x.qL)||rV(w,e);(a.info.G||G.j&&G.j.info.G)&&a.info.type!==6||(G.XJ=e,G.policy.MB?(B=jW9(G.G),G.CN.tj(G.L,e,B)):(B=G.CN,B.hX.isManifestless&&bwy(B,e,null,!!G.L.info.video)),G.policy.LR||yAH(G))}}mpb(G,a);G.timestampOffset&&yjb(a,G.timestampOffset)}; Ij=function(G,B){if(B.info.G){G.Vb=B.info;if(G.G){var a=G.G,V=EDb(G,!1);a=jW9(a);G.CN.tj(G.L,V,a);G.XJ||G.policy.LR||yAH(G);G.XJ=null}m0(G)}G.W&&PMb(G.W,B);if(V=G.Tn())if(V=g.o7(V,B,G.policy.Nk)){G.X.pop();G.X.push(V);return}G.X.push(B)}; jW9=function(G){if(G.Zw()){var B=G.data["Stitched-Video-Id"]?G.data["Stitched-Video-Id"].split(",").slice(0,-1):[],a=Qy(G),V=[];if(G.data["Stitched-Video-Duration-Us"])for(var x=g.m(G.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),h=x.next();!h.done;h=x.next())V.push((Number(h.value)||0)/1E6);x=[];if(G.data["Stitched-Video-Start-Frame-Index"]){h=g.m(G.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var e=h.next();!e.done;e=h.next())x.push(Number(e.value)||0)}x=[]; if(G.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(h=g.m(G.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),e=h.next();!e.done;e=h.next())x.push((Number(e.value)||0)/1E6);G=new BXV(B,a,V,x,g.cXy(G),g.n2A(G))}else G=null;return G}; m0=function(G){G.j=null;G.HS=-1;G.Y=0;G.G=null;G.Zx=NaN;G.zH=0;G.XJ=null}; tT=function(G,B){B={rst4disc:B,cd:G.V.toFixed(3),sq:G.LN?G.LN.AX:-1};G.C=NaN;G.V=0;G.Ur=-1;G.LN=null;G.MB=NaN;G.Er=NaN;G.qB=null;G.CN.FJ("mdstm",B)}; mpb=function(G,B){if(G.L.info.Ji){if(B.info.j.info.C3()){var a=new Gc(B.k_());if(a7(a,[408125543,374648427,174,28032,25152,20533,18402])){var V=hB(a,!0);a=V!==16?null:lM(a,V)}else a=null;V="webm"}else B.info.W=MEA(B.k_()),a=GjH(B.info.W),V="cenc";a&&a.length&&(a=new lU(a,V),G.policy.Sv&&g.PX(B.info.j.info)&&(V=$y9(B.k_()))&&(a.X=V),a.C3=B.info.j.info.C3(),B.X&&B.X.cryptoPeriodIndex&&(a.cryptoPeriodIndex=B.X.cryptoPeriodIndex),B.X&&B.X.X&&(a.j=B.X.X),G.CN.jM(a))}}; yAH=function(G){var B=G.G,a=b1K(B);a&&(a.startSecs+=G.Zx,G.CN.f_(G.L,a,B.qL,B.Zw()))}; EDb=function(G,B){var a,V=G.G;if(a=b1K(V))a.startSecs+=G.Zx;return new nT(V.qL,G.Zx,B?V.zm:G.zH,V.ingestionTime,"sq/"+V.qL,void 0,void 0,B,a)}; Ow_=function(G,B,a){if(!be_(B,a))return B=Zu(B.info),B.smst="1",G.CN.handleError("fmt.unparseable",B||{},1),!1;isNaN(G.Zx)&&(G.Zx=a);return!0}; Upz=function(G,B,a){var V=0;if(B.info.j.info.C3()&&!fOB(B))return 0;if(G.GH&&!G.zz()){var x=0;a&&g.PX(B.info.j.info)?x=a-G.C:B.info.j.info.C3()&&(x=G.V);var h=B.info.AX;a=BJ(B,G.policy.m3);var e=G.GH;var w=e.Ur;e=e.V;var K=Math.abs(e-x)>.02;if((h===w||h>w&&h>G.Ur)&&K){V=Math.max(.95,Math.min(1.05,(a-(e-x))/a));if(g.PX(B.info.j.info))v2y(B.k_(),V);else if(B.info.j.info.C3()&&(h=x-e,!g.PX(B.info.j.info)&&(B.info.j.info.C3(),V=new Gc(B.k_()),w=B.B?V:new Gc(new DataView(B.info.j.j.buffer)),BJ(B,!0)))){var l= h*1E3,k=NC(w);w=V.pos;V.pos=0;if(V.j.getUint8(V.pos)===160||dV(V))if(xp(V,160))if(hB(V,!0),xp(V,155)){if(h=V.pos,K=hB(V,!0),V.pos=h,l=l*1E9/k,k=Ws(V),l=k+Math.max(-k*.7,Math.min(k,l)),l=Math.sign(l)*Math.floor(Math.abs(l)),!(Math.ceil(Math.log(l)/Math.log(2)/8)>K)){V.pos=h+1;for(h=K-1;h>=0;h--)V.j.setUint8(V.pos+h,l&255),l>>>=8;V.pos=w}}else V.pos=w;else V.pos=w;else V.pos=w}V=BJ(B,G.policy.m3);V=a-V}V&&B.info.j.info.C3()&&G.CN.FJ("webmDurationAdjustment",{durationAdjustment:V,videoDrift:x+V,audioDrift:e})}return V}; pJK=function(G){return G.info.j.P3()&&G.info.AX===G.info.j.index.MQ()}; pu=function(G,B){B=(B=B===void 0?0:B)?Math.round(G.timestampOffset*B)/B:G.timestampOffset;G.L.G&&B&&(B+=G.L.G.j);return B+G.getDuration()}; cAB=function(G,B){B<0||(G.X.forEach(function(a){yjb(a,B)}),G.timestampOffset=B)}; rR=function(G,B,a,V,x){GS.call(this,a,x);var h=this;this.policy=G;this.formatId=B;this.oy=V;this.lastError=null;this.OA=function(){h.TH()||(h.oy.Kd.has(h.formatId)?(h.isComplete()||h.j.start(),fL(h.oy,h.formatId)&&h.U0(2),h.oy.HG(h.formatId)&&(Gcy(h.oy,h.formatId)?h.g7(4):(h.lastError="net.closed",h.g7(5)))):(h.lastError="player.exception",h.g7(5)))}; this.j=new g.J8(function(){h.isComplete()||(h.lastError="net.timeout",h.g7(5))},1E3); this.j.start();PHb(this.oy,this.formatId,this.OA);g.KJ(this.OA)}; UC=function(G,B,a,V){g.r.call(this);var x=this;this.CN=G;this.policy=B;this.j=a;this.timing=V;this.logger=new g.xY("dash");this.C=[];this.GH=[];this.X=this.Wf=null;this.SJ=!1;this.qB=this.Er=0;this.L=-1;this.HS=!1;this.LN=-1;this.Zx=this.Qb=null;this.XJ=NaN;this.zH=[];this.vC={DG:function(){return x.G}, vrd:function(){return x.C}, WuS:function(){return x.V}}; this.G=new KwA(G,B,a);this.policy.j&&(this.V=new De(this.G,this.CN.getManifest(),this.policy,function(h){x.policy.Wm&&x.FJ("buftl",h)})); this.policy.Dx&&(this.Y=new B6(this));this.NB=a.info.NB;this.W=this.policy.XJ?!1:a.vN();this.isManifestless=a.vN();this.B=this.W;g.X(this,this.Qb)}; OC=function(G,B,a){a=a===void 0?!1:a;B&&g0&&cAB(G.G,B.R3());if(!a){var V;(V=G.V)==null||uXK(V)}G.Wf=B;(B=G.V)!=null&&(B.Wf=G.Wf)}; EC=function(G){var B=G.Wf&&G.Wf.e2();if(G.policy.mT){if((G=G.V)==null)G=void 0;else{var a;G=(a=G.C)==null?void 0:a.info}return G||null}return B}; nDb=function(G){for(var B={},a=0;a4&&G.GH.shift()}; fE9=function(G,B){if(B.Fr()){var a=B.ye();a=g.m(a);for(var V=a.next();!V.done;V=a.next())V=V.value,G.policy.C&&B instanceof rR&&G.FJ("omblss",{s:V.info.cC()}),bU(G,B.info.nN,V,B.vH())}}; bU=function(G,B,a,V){V=V===void 0?0:V;isNaN(G.XJ)||(G.FJ("aswm",{sq:B[0].AX,id:B[0].j.info.itag,xtag:B[0].j.info.j,ep:Date.now()-G.XJ}),G.XJ=NaN);switch(a.info.type){case 1:case 2:HwK(G,a);break;case 4:var x=a.info.j,h=x.He(a),e;((e=G.X)==null?0:e.type===4)&&wZy(a.info,G.X)&&(G.X=x.sX(G.X).pop());a=g.m(h);for(x=a.next();!x.done;x=a.next())bU(G,B,x.value,V);break;case 3:a.info.j.info.video?(x=G.timing,x.GH||(x.GH=(0,g.yT)(),b3("fvb_r",x.GH,x.j))):(x=G.timing,x.L||(x.L=(0,g.yT)(),b3("fab_r",x.L,x.j))); t2c(G.G,B,a,V);G.policy.j&&vDH(G);break;case 6:t2c(G.G,B,a,V),G.X=a.info}}; HwK=function(G,B){if(B.info.type===1)if(B.info.j.info.video){var a=G.timing;a.LN||(a.LN=(0,g.yT)(),b3("vis_r",a.LN,a.j))}else a=G.timing,a.V||(a.V=(0,g.yT)(),b3("ais_r",a.V,a.j));dpb(G.G,B);G=G.CN;G.videoTrack.j.tv()&&G.audioTrack.j.tv()&&G.policy.j&&!G.hX.SE&&(B=G.audioTrack.getDuration(),a=G.videoTrack.getDuration(),Math.abs(B-a)>1&&G.FJ("trBug",{af:""+g.My(G.audioTrack.j.info,!1),vf:""+g.My(G.videoTrack.j.info,!1),a:""+B,v:""+a}))}; Fo=function(G){return lEK(G.G)}; vDH=function(G){G.C.length?G.X=g.s3(g.s3(G.C).info.nN):G.G.X.length?G.X=G.G.Tn().info:G.X=EC(G)}; ya=function(G,B){var a={Pf:[],jc:[]},V;if((G=G.V)==null)G=void 0;else{q0K(G,G.Pf,"og");r2x(G,B);q0K(G,G.Pf,"trim");var x=Xpc(G);B=x.Pf;x=x.YJ;for(var h=[],e=0;e0){var d=WZ(N,K);d>=0&&(k=(N.end(d)-K+.1)*1E3)}h.push({formatId:g.My(w.info.j.info,G.hX.SE), FQ:w.info.FQ,sequenceNumber:w.info.AX+G.G,GC:l,PR:w.info.C,Eg:k})}G={Pf:B,jc:h}}return(V=G)!=null?V:a}; qS=function(G,B,a){a=a===void 0?!1:a;if(G.Wf){var V=G.Wf.Ms(),x=Ke(V,B),h=NaN,e=EC(G);e&&(h=Ke(V,e.j.index.getStartTime(e.AX)));if(x===h&&G.X&&G.X.C&&DpK(c6(G),0))return B}G=ST_(G,B,a);return G>=0?G:NaN}; Q8=function(G,B,a){G.j.tv();var V=ST_(G,B);if(V>=0)return V;var x;(x=G.V)==null||$zB(x,B,a);a=Math;V=a.min;x=G.G;if(x.W)if(x=x.W,x.vx&&x.vx.type===3)x=x.vx.startTime;else if(x.C>0){var h=x.j.index;h=g.e$(h.offsets.subarray(0,h.count),x.C*x.chunkSize);x=x.j.index.getStartTime(h>=0?h:Math.max(0,-h-2))}else x=0;else x=Infinity;B=V.call(a,B,x);if(G.policy.X){var e,w;a=(e=G.CN.j6())==null?void 0:(w=Rg(e,B))==null?void 0:w.clipId;G.X=G.j.dK(B,void 0,a).nN[0]}else G.X=G.policy.XJ?null:G.j.dK(B).nN[0];nu(G)&& (G.Wf&&G.Wf.abort(),G.policy.O9&&(e=G.V)!=null&&(e.C=void 0));G.qB=0;return G.X?G.X.startTime:B}; LTK=function(G){G.W=!0;G.B=!0;G.L=-1;Q8(G,Infinity)}; fu=function(G){for(var B=0,a=g.m(G.C),V=a.next();!V.done;V=a.next())B+=lOX(V.value.info);return B+=IEX(G.G)}; v6=function(G,B){B=B===void 0?!1:B;var a=G.CN.getCurrentTime(),V=G.G.Tn(),x=(V==null?void 0:V.info.K3)||0;G.policy.RY&&(V==null?0:V.info.j.vN())&&!V.info.G&&(x=V.info.Sn);if(G.policy.X&&V&&V.info.clipId){var h,e=(((h=G.CN.j6())==null?void 0:Sj(h,V.info.clipId))||0)/1E3;x+=e}if(!G.Wf)return G.policy.j&&B&&!isNaN(a)&&V?x-a:0;if((h=EC(G))&&H6(G,h))return h.K3;e=G.Wf.Ms(!0);if(B&&V)return h=0,G.policy.j&&(h=kb(e,x+.02)),h+x-a;x=kb(e,a);G.policy.oo&&h&&(B=WZ(e,a),e=WZ(e,h.Sn-.02),B===e&&(a=h.K3-a,G.policy.C&& a>x+.02&&G.FJ("abh",{bh:x,bhtls:a}),x=Math.max(x,a)));return x}; RKA=function(G){var B=EC(G);return B?B.K3-G.CN.getCurrentTime():0}; ZwK=function(G,B){if(G.C.length){if(G.C[0].info.nN[0].startTime<=B)return;Xo(G)}for(var a=G.G,V=a.X.length-1;V>=0;V--)a.X[V].info.startTime>B&&a.X.pop();vDH(G);G.X&&B=0;e--){var w=x.X[e];w.info.AX>=B&&(x.X.pop(),x.C-=BJ(w,x.policy.m3),h=w.info)}h&&(x.B=x.X.length>0?x.X[x.X.length-1].info:x.qB,x.X.length!==0||x.B||tT(x,"r"));x.CN.FJ("mdstm",{rollbk:1,itag:h?h.j.info.itag:"",popped:h?h.AX:-1,sq:B,lastslc:x.B?x.B.AX:-1,lastfraget:x.C.toFixed(3)});if(G.policy.j)return G.X=null,!0;V>a?Q8(G,V):G.X=G.j.KL(B-1,!1).nN[0]}catch(K){return B=n1(K),B.details.reason="rollbkerr", G.CN.handleError(B.errorCode,B.details,B.severity),!1}return!0}; Rj=function(G,B){var a;for(a=0;a0?a||B.AX>=G.LN:a}; r0=function(G){var B;return nu(G)||H6(G,(B=G.G.Tn())==null?void 0:B.info)}; c6=function(G){var B=[],a=EC(G);a&&B.push(a);B=g.M9(B,G.G.t2());a=g.m(G.C);for(var V=a.next();!V.done;V=a.next()){V=V.value;for(var x=g.m(V.info.nN),h=x.next(),e={};!h.done;e={bj:void 0},h=x.next())e.bj=h.value,V.Ja&&(B=g.wb(B,function(w){return function(K){return!wZy(K,w.bj)}}(e))),(Du(e.bj)||e.bj.type===4)&&B.push(e.bj)}G.X&&!MWA(G.X,g.s3(B),G.X.j.P3())&&B.push(G.X); return B}; DpK=function(G,B){if(!G.length)return!1;for(B+=1;B=B){B=h;break a}}B=x}return B<0?NaN:DpK(G,a?B:0)?G[B].startTime:NaN}; $M=function(G){return!(!G.X||G.X.j===G.j)}; rAK=function(G){return $M(G)&&G.j.tv()&&G.X.j.info.NBB&&V.K31080&&!G.Ab&&(G.SJ=36700160,G.Yf=5242880,G.qB=Math.max(4194304,G.qB),G.Ab=!0);B.video.j>2160&&!G.By&&(G.SJ=104857600,G.NB=13107200,G.By=!0);g.kf(G.Rn.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?B.isEncrypted()&&g.T9()&&g.QZ("samsung")&&(g.QZ("kant")||g.QZ("muse"))&&(G.NB=g.kf(G.Rn.experiments,"html5_samsung_kant_limit_max_bitrate")):B.isEncrypted()&&g.T9()&&g.QZ("kant")&&(G.NB=1310720);G.rW!==0&&B.isEncrypted()&&(G.NB=G.rW);G.dW!==0&&B.isEncrypted()&& a&&(G.NB=G.dW);B.NB&&(G.Pl=Math.max(G.dQ,Math.min(G.qB,5*B.NB)))}; T6=function(G){return G.j&&G.XQ&&G.playbackStartPolicy}; sC=function(G){return G.X||G.j&&G.L3}; FW=function(G,B,a,V){G.XQ&&(G.playbackStartPolicy=B,G.FS=a,G.K5=V)}; Lu=function(G,B,a){a=a===void 0?0:a;return g.kf(G.Rn.experiments,B)||a}; oDK=function(G){var B=G===void 0?{}:G;G=B.S9;var a=B.TF;var V=B.EA;var x=B.MQ;B=B.RX;this.S9=G;this.TF=a;this.EA=V;this.MQ=x;this.RX=B}; BfB=function(G,B){if(B<0)return!0;var a=G.MQ();return B0)return 2;if(B<0)return 1;a=G.MQ();return B(0,g.yT)()?0:1}; AT=function(G,B,a,V,x,h,e,w,K,l,k,N,d,C){C=C===void 0?null:C;g.r.call(this);var z=this;this.CN=G;this.policy=B;this.videoTrack=a;this.audioTrack=V;this.G=x;this.j=h;this.timing=e;this.B=w;this.schedule=K;this.hX=l;this.C=k;this.zH=N;this.v7=d;this.xl=C;this.XJ=!1;this.ya="";this.eF=null;this.hA=NaN;this.HS=!1;this.X=null;this.U$=this.Y=NaN;this.F1=this.L=0;this.logger=new g.xY("dash");this.vC={zl:function(p,O){return z.zl(p,O)}}; this.policy.Qu>0&&(this.ya=g.Et(this.policy.Qu));this.policy.N9&&(this.V=new JT(this.CN,this.policy,this.schedule),g.X(this,this.V))}; VNz=function(G,B,a){var V=B.X?B.X.j.kD:B.j.kD;var x=G.G,h;(h=!G.policy.e7)||(h=Oi(V.j)===Oi(V.C));h?V=!1:(x=I7(x,Oi(V.C)),h=6E4*Math.pow(x.G,1.6),(0,g.yT)()=x.G?(x.FJ("sdai",{haltrq:h+1,est:x.G}),V=!1):V=x.X!==2;if(!V||!EY(B.X?B.X.j.kD:B.j.kD,G.policy,G.G,G.CN.ZD())||G.CN.isSuspended&&(!Ub(G.schedule)||G.CN.eD))return!1;if(G.policy.G&&v_>=5)return g.iC(G.CN.J3),!1;if(G.hX.isManifestless){if(B.C.length>0&&B.X&&B.X.AX===-1||B.C.length>=G.policy.Fo||!G.policy.Jo&&B.C.length>0&&!G.policy.V.TF)return!1;if(B.W)return!G.hX.isLive||!isNaN(G.hA)}if(QWX(B))return G.logger.debug("Pending request with server-selectable format found"), !1;if(!B.X){if(!B.j.tv())return!1;Q8(B,G.CN.getCurrentTime())}if(Fo(B)&&(B.Tn()!==Fo(B)||G.CN.isSuspended))return!1;x=(V=G.policy.XM)&&!B.C.length&&v6(B,!0)=G.policy.kR)return!1;V=B.X;if(!V)return!0;V.type===4&&V.j.tv()&&(B.X=g.s3(V.j.sX(V)),V=B.X);if(!V.Pr()&&!V.j.EY(V))return!1;h=G.hX.Ai||G.hX.G;if(G.hX.isManifestless&&h){h=B.j.index.MQ();var e=a.j.index.MQ(); h=Math.min(h,e);if(B.j.index.BA()>0&&h>0&&V.AX>=h)return B.LN=h,a.LN=h,!1}if(V.j.info.audio&&V.type===4||V.Pr())return!1;h=!B.B&&!a.B;if(x=!x)x=V.K3,x=!!(a.X&&!H6(a,a.X)&&a.X.K3xqg(G,B)?(xqg(G,B),!1):(G=B.Wf)&&G.isLocked()?!1:!0}; xqg=function(G,B){var a=G.j;a=a.j?a.j.sA:null;if(G.policy.GH&&a)return a.startSecs+a.YF+15;B=up(G.CN,B);G.policy.Md>0&&(a=((0,g.yT)()-G.CN.DQ)/1E3,B=Math.min(B,G.policy.Md+G.policy.BE*a));a=G.CN.getCurrentTime()+B;return G.policy.Si&&(B=hbb(G.CN)+G.policy.Si,B=0||B.kD.Eb("defrag")==="1"||B.kD.Eb("otf")==="1"){B=null;break a}x=nE(0,4096)}x=new $p([new Hs(5,V.j,x,"createProbeRequestInfo"+V.B,V.AX)],B.X);x.r_=a;x.j=B.j;B=x}B&&iU(G,B)}}; iU=function(G,B){G.CN.Jp(B);var a=lOX(B),V=G.CN.Ko();a={Gt:G.schedule,fP:a,lQ:fkA(G.B,a),K1:vs(B.nN[0]),iy:Ei(B.kD.j),Fs:G.policy.C,ZA:function(e,w){G.CN.oZ(e,w)}}; if(G.schedule.X.L){var x,h;a.N$=(((x=G.videoTrack.j)==null?void 0:x.info.NB)||0)+(((h=G.audioTrack.j)==null?void 0:h.info.NB)||0)}G.eF&&(a.AX=B.nN[0].AX,a.hA=B.hA,a.eF=G.eF);V={UI:k2A(B,G.CN.getCurrentTime()),ge:G.policy.n3&&qC(B)&&B.nN[0].j.info.video?s7_(G.C):void 0,D9:G.policy.GH,poToken:G.CN.m7(),E9:G.CN.w8(),ya:G.ya,U$:isNaN(G.U$)?null:G.U$,xl:G.xl,v7:G.v7,F1:G.F1,zy:V};return new $3(G.policy,B,a,G.G,function(e,w){try{a:{var K=e.info.nN[0].j,l=K.info.video?G.videoTrack:G.audioTrack;if(!(e.state>= 2)||e.isComplete()||e.RC()||!(!G.CN.tX||G.CN.isSuspended||v6(l)>3)){var k=BGX(e,G.policy,G.G);k===1&&(G.HS=!0);eb_(G,e,k);if(e.isComplete()||e.TH()&&w<3){if(G.policy.C){var N=e.timing.gW();N.rst=e.state;N.strm=e.xhr.KX();N.cncl=e.xhr&&e.Ay.G?1:0;G.CN.FJ("rqs",N)}e.tZ&&G.CN.FJ("sbwe3",{},!0)}if(!G.TH()&&e.state>=2){Iuy(G.timing,e,K);var d=G.CN;G.U$&&e.BQ&&d&&(G.U$=NaN,G.CN.Pg(e.BQ),G.CN.j2(),G.CN.FJ("cabrUtcSeek",{mediaTimeSeconds:e.BQ}));e.A1&&G.U$&&e.A1&&!e.A1.action&&(G.CN.aH(G.U$),G.U$=NaN,G.CN.FJ("cabrUtcSeekFallback", {targetUtcTimeSeconds:G.U$}));e.A7&&G.CN.CX(e.A7);G.policy.OZ&&(G.F1=e.F1);if(e.state===3){Rj(l,e);qC(e.info)&&P6(G,l,K,!0);if(G.X){var C=e.info.St();C&&G.X.Ey(e.info.nN[0].AX,K.info.id,C)}G.CN.Bn()}else if(e.isComplete()&&e.info.nN[0].type===5){if(e.state!==4)e.Vm()&&G.CN.handleError(e.Vk(),e.A2());else{var z=(e.info.nN[0].j.info.video?G.videoTrack:G.audioTrack).C[0]||null;z&&z instanceof $3&&z.RC()&&z.UJ()}e.dispose()}else{e.Vm()||WGg(G,e);var p;((p=e.A3)==null?0:p.itagDenylist)&&G.CN.hj(e.A3.itagDenylist); if(e.state===4)oj(G,e),G.j&&OE_(G.j,e.info,G.X);else if(G.policy.Ku&&e.Fr()&&!e.isComplete()&&!oj(G,e)&&!e.Vm())break a;e.Vm()&&(wo_(G,e),isNaN(G.U$)||(G.CN.aH(G.U$),G.U$=NaN));G.policy.Cd&&!e.isComplete()?ML(G.CN):G.CN.Bn();var O=aB9(e,G.policy,G.G);eb_(G,e,O)}}}}}catch(b){w=G.XJ?1:0,G.XJ=!0,e=cX(w),w=n1(b,w),G.CN.handleError(w.errorCode,w.details,w.severity),e||G.CN.lz()}},V)}; WGg=function(G,B){if(B.jT&&B.state>=2&&B.state!==3){var a=B.xhr.getResponseHeader("X-Response-Itag");if(a){G.logger.debug(function(){return"Applying streamer-selected format "+a}); var V=TVc(G.C,a),x=B.info.C;x&&(x-=V.NS(),V.C=!0,B.info.nN[0].j.C=!1,AqH(B,V.kS(x)),Go(G.CN,G.videoTrack,V),Lwz(G.videoTrack,V),G.CN.EQ(V.info.video.quality),(x=B.vH())&&V.info.lastModified&&V.info.lastModified!==+x&&Rj(G.videoTrack,B))}else B.jT=!1}}; wo_=function(G,B){var a=B.info.nN[0].j,V=B.Vk();if(Ei(a.kD.j)){var x=g.I5(B.Qd(),3);G.CN.FJ("dldbrerr",{em:x||"none"})}x=B.info.nN[0].AX;var h=qj(G.j,B.info.nN[0].Sn,x);V==="net.badstatus"&&(G.L+=1);if(B.canRetry()&&BI(G.CN)){if(!(B.info.kD.X>=G.policy.L2&&G.X&&B.info.isDecorated()&&V==="net.badstatus"&&G.X.GM(h,x))){x=(a.info.video&&a.kD.X>1||B.Mq===410||B.Mq===500||B.Mq===503)&&!(F1(G.C.B).size>0)&&!Ei(a.kD.j);h=B.A2();var e=a.info.video?G.videoTrack:G.audioTrack;x&&(h.stun="1");G.CN.handleError(V, h);G.TH()||(x&&(G.logger.debug(function(){return"Stunning format "+a.info.id}),oo(G.C,a)),Rj(e,B),G.CN.Bn())}}else e=1,G.X&&B.info.isDecorated()&&V==="net.badstatus"&&G.X.GM(h,x)&&(e=0),G.hX.isLive&&B.Vk()==="net.badstatus"&&G.L<=G.policy.H9*2?(kfA(G.hX),G.hX.Ai||G.hX.isPremiere?sO(G.CN,0,{Tt:"badStatusWorkaround"}):G.hX.G?sO(G.CN,G.hX.Qb,{Tt:"badStatusWorkaround", Cy:!0}):aD(G.CN)):G.CN.handleError(V,B.A2(),e)}; oj=function(G,B){if(G.policy.useUmp&&B.TH())return!1;try{var a=B.info.nN[0].j,V=a.info.video?G.videoTrack:G.audioTrack;if(G.hX.isManifestless&&V){G.L=0;V.W&&(B.TH(),B.isComplete()||B.Fr(),V.W=!1);B.E3()&&G.CN.Fd.j$(1,B.E3());var x=B.BA(),h=B.zJ();ET(G.hX,x,h)}if(B.info.K1()&&!X3(B.info))for(var e=g.m(B.ye()),w=e.next();!w.done;w=e.next())HwK(V,w.value);for(G.CN.getCurrentTime();V.C.length&&V.C[0].state===4;){var K=V.C.shift();fE9(V,K);V.Er=K.eO()}V.C.length&&fE9(V,V.C[0]);var l=!!Fo(V);l&&B instanceof rR&&(a.info.zz()?kcc(G.timing):luH(G.timing));return l}catch(k){B=B.A2();B.origin="hrhs";a:{G=G.CN;a=k;if(a instanceof Error){B.msg||(B.msg=""+a.message);B.name||(B.name=""+a.name);if(a instanceof g.FI&&a.args)for(V=g.m(Object.entries(a.args)),x=V.next();!x.done;x=V.next())h=g.m(x.value),x=h.next().value,h=h.next().value,B["arg"+x]=""+h;g.Zb(a);if(a.level==="WARNING"){G.jJ.AN(B);break a}}G.handleError("fmt.unplayable",B,1)}return!1}}; KGV=function(G){var B=G.videoTrack.j.index;G.eF=new oDK({S9:G.policy.S9,TF:G.policy.V.TF,EA:B.oz(),MQ:function(){return B.MQ()}, RX:function(){return B.RX()}})}; P6=function(G,B,a,V){var x=G.policy.C$?G.CN.ZD():0;a.tv()||a.iR()||a.C||!EY(a.kD,G.policy,G.G,x)||a.info.PS==="f"||G.policy.j||(V?(V=G.B,x=a.info,V=HhA(V,x.video?V.policy.zL:V.policy.B6,x.NB)):V=0,V=a.kS(V),G=iU(G,V),X3(V)&&jS(B,G),a.C=!0)}; V6=function(G,B,a,V,x,h,e,w){g.r.call(this);var K=this;this.CN=G;this.NQ=B;this.videoTrack=a;this.audioTrack=V;this.hX=x;this.Y=h;this.isAudioOnly=e;this.V=w;this.X=L$;this.HS=!1;this.logger=new g.xY("sabr");this.B=this.XJ=this.zH=!1;this.videoInfos=this.W=this.Y.videoInfos;this.C=this.GH=this.Y.j;this.j=new TS(B,h,function(l,k){K.CN.FJ(l,k)}); this.NQ.AY||lB_(this);this.isAudioOnly&&kQA(this,this.hX.j["0"])}; NGA=function(G,B){var a=[];B=g.m(B);for(var V=B.next();!V.done;V=B.next())a.push(g.My(V.value,G.hX.SE));return a}; kQA=function(G,B,a){B!==G.G&&(G.G&&(G.HS=!0),G.G=B,G.Sj(B,G.videoTrack,a))}; tNb=function(G,B){G.logger.debug("setConstraint: "+WU(B));sC(G.NQ)&&(G.XJ=B.reason==="m"||B.reason==="l"?!0:!1);B.reason==="m"?B.isLocked()&&dqV(G,B.j):C0x(G,B)?zb_(G,B.X,B.j):G.videoInfos=G.W;G.X=B}; C0x=function(G,B){return G.NQ.Km&&B.reason==="b"||G.NQ.v2?!1:G.NQ.FM?!0:B.reason==="l"||B.reason==="b"||B.reason==="o"}; mqB=function(G,B){return B.isLocked()&&G.j.X||G.X===void 0?!1:B.Wx(G.X)}; IBY=function(G,B){var a,V=(a=G.G)==null?void 0:a.info.video.j;return G.HS?!0:G.G?B!==V?!0:!G.j.X||G.NQ.lX&&G.j.j===G.G.info.itag?!1:!0:!1}; dqV=function(G,B){var a=G.j.j;if(a){G.videoInfos=G.W;var V=g.JJ(G.videoInfos,function(x){return x.id===a}); V&&V.video.j===B?G.videoInfos=[V]:(V=G.videoInfos.map(function(x){return x.id}),G.CN.FJ("sabrpf",{pfid:""+a, vfids:""+V.join(".")}),zb_(G,B,B),J9(G.j,""))}else zb_(G,B,B)}; zb_=function(G,B,a){G.videoInfos=G.W;G.videoInfos=g.wb(G.videoInfos,function(V){return V.video.j>=B&&V.video.j<=a})}; lB_=function(G){var B=yBb(G.j,G.V);B&&(G.C=[B])}; gFH=function(G,B,a){if(G.NQ.AY){if(G.V){var V=g.wb(G.C,function(x){return x.id===G.V}); return xJ(V,a).includes(B)}V=g.wb(G.C,function(x){var h;return!((h=x.VW)==null||!h.isDefault)}); if(V.length>0)return xJ(V,a).includes(B)}return xJ(G.C,a).includes(B)}; xJ=function(G,B){return G.map(function(a){return jE(g.My(a,B))})}; poY=function(G){var B;if((B=G.X)==null?0:B.isLocked())return G.videoInfos;var a=F1(G.j);B=g.wb(G.videoInfos,function(V){return V.NB>G.NQ.NB?!1:!a.has(V.id)}); bEH(G.j)&&(B=g.wb(B,function(V){return V.video.width<=854&&V.video.height<=480})); return B}; EFK=function(G,B,a,V){var x=G.hX,h=G.jJ.getVideoData(),e=g.AC(h),w=G.t5,K=Io({Rn:h.U(),jJ:G.jJ,HZ:G.HZ,NQ:G.NQ,DQ:G.DQ,fg:G.fg,OI:G.OI,R6:G.R6,iX:G.iX,isPrefetch:G.isPrefetch,Dz:G.Dz,sabrLicenseConstraint:h.sabrLicenseConstraint,Fv:G.Fv,pZ:G.pZ,m0:G.m0,jp:G.jp,Hhr:!!w}),l=g6(h,G.zy,G.nextRequestPolicy,G.w_,G.Fy,G.xqX,G.JD);V&&a&&(V=l.jr?l.jr.map(function(p){return p.type}):[],a("sabr",{stmctxt:V.join("_"), unsntctxt:l.cK?l.cK.join("_"):""}));V=G.J5;var k=G.uj;if(k===void 0&&V===void 0){var N;k=Uqg(x.SE,(N=G.Xb)==null?void 0:N.video);var d;V=Uqg(x.SE,(d=G.Xb)==null?void 0:d.audio)}if(h.xl)var C=h.xl;h={jz:K,jc:G.jc,J5:V,uj:k,t5:w,videoPlaybackUstreamerConfig:C,jW:l};G.yA&&(h.yA=G.yA);if(e&&B){e=new Map;var z=g.m(x.LN);for(w=z.next();!w.done;w=z.next())w=w.value,(K=x.SJ[AjX(x,w)]||"")?(e.has(K)||e.set(K,[]),e.get(K).push(w)):a&&a("ssap",{nocid4fmt:(w.itag||"")+"_"+(w.lmt||0)+"_"+(w.xtags||"")});x=new Map; z=g.m(G.Pf);for(w=z.next();!w.done;w=z.next())w=w.value,K=w.startTimeMs||0,l=void 0,N=(l=B)==null?void 0:Rg(l,K),l=N.clipId,N=N.Y1,l?(x.has(l)||(d=e.get(l)||[],x.set(l,{clipId:l,Pf:[],JV:d})),N!==0&&(w.startTimeMs=K-N),x.get(l).Pf.push(w)):a&&(l=void 0,a("ssap",{nocid4range:"1",fmt:((l=w.formatId)==null?void 0:l.itag)||"",st:K.toFixed(3),d:(w.durationMs||0).toFixed(3),timeline:hG(B)}));h.n$=[];x=g.m(x.entries());for(e=x.next();!e.done;e=x.next())e=g.m(e.value),e.next(),e=e.next().value,h.n$.push(e); if(G.Pf.length&&!h.n$.length){a&&a("ssap",{nobfrange:"1",br:OIb(G.Pf),timeline:hG(B)});return}G.qW&&(h.qW=G.qW);G.JM&&(h.JM=G.JM)}else h.Pf=G.Pf,h.JV=x.LN,e&&((z=G.Pf)==null?void 0:z.length)>0&&!B&&a&&a("ssap",{bldmistlm:"1"});return h}; Uqg=function(G,B){return B?[g.My(B.info,G)]:[]}; OIb=function(G){var B="";G=g.m(G);for(var a=G.next();!a.done;a=G.next()){a=a.value;var V=void 0,x=void 0,h=void 0;B+="fmt."+(((V=a.formatId)==null?void 0:V.itag)||"")+"_"+(((x=a.formatId)==null?void 0:x.lmt)||0)+"_"+(((h=a.formatId)==null?void 0:h.xtags)||"")+";st."+(a.startTimeMs||0).toFixed(3)+";d."+(a.durationMs||0).toFixed(3)+";"}return B}; ed=function(G,B,a){var V=this;this.requestType=G;this.kD=B;this.yW=a;this.X=null;this.vC={poB:function(){var x;return(x=V.data)==null?void 0:x.isPrefetch}, Fy:function(){var x;return(x=V.data)==null?void 0:x.Fy}}}; e0y=function(G,B,a){B=UY(G.kD,j$x(G,B,a),B);G.LF()&&B.set("probe","1");return B}; j$x=function(G,B,a){G.r_===void 0&&(G.r_=G.kD.r_(B,a));return G.r_}; bIB=function(G){var B,a;return((B=G.j)==null?void 0:(a=B.jz)==null?void 0:a.mG)||0}; y3_=function(G){var B,a;return!!((B=G.j)==null?0:(a=B.jz)==null?0:a.Fv)}; c3c=function(G){var B={},a=[],V=[];if(!G.data)return B;for(var x=0;x0;K--)a.push(w)}a.length!==e?B.error=!0:(h=a.slice(-h),a.length=x,oFz(B,a,h));break;case 1:oFz(B,Zg,FGx);break;case 0:MNY(B, B.j&7);a=qg(B,16);x=qg(B,16);(a^x)!==65535&&(B.error=!0);B.output.set(B.data.subarray(B.X,B.X+a),B.C);B.X+=a;B.C+=a;break;default:B.error=!0}G.C>G.output.length&&(G.output=new Uint8Array(G.C*2),G.C=0,G.X=0,G.G=!1,G.j=0,G.register=0)}G.output.length!==G.C&&(G.output=G.output.subarray(0,G.C));return G.error?new Uint8Array(0):G.output}; oFz=function(G,B,a){B=iIV(B);a=iIV(a);for(var V=G.data,x=G.output,h=G.C,e=G.register,w=G.j,K=G.X;;){if(w<15){if(K>V.length){G.error=!0;break}e|=(V[K+1]<<8)+V[K]<>=7;l<0;)l=B[(e&1)-l],e>>=1;else e>>=l&15;w-=l&15;l>>=4;if(l<256)x[h++]=l;else if(G.register=e,G.j=w,G.X=K,l>256){e=$J[l];e+=qg(G,rO[l]);K=P0V(G,a);w=XS[K];w+=qg(G,J3g[K]);if(BtY&&ea.length&&(G.error=!0);G.register|=(a[V+1]<<8)+a[V]<=0)return MNY(G,a&15),a>>4;for(MNY(G,7);a<0;)a=B[qg(G,1)-a];return a>>4}; qg=function(G,B){for(;G.j=G.data.length)return G.error=!0,0;G.register|=G.data[G.X++]<>=B;G.j-=B;return a}; MNY=function(G,B){G.j-=B;G.register>>=B}; iIV=function(G){for(var B=[],a=g.m(G),V=a.next();!V.done;V=a.next())V=V.value,B[V]||(B[V]=0),B[V]++;var x=B[0]=0;a=[];var h=0;V=0;for(var e=1;e7&&(h+=B[e]);for(x=1;x>K&1;w=h<<4|e;if(e<=7)for(K=1<<7-e;K--;)V[K<>=7;e--;){V[K]||(V[K]=-B,B+=2);var l=x&1;x>>=1;K=l-V[K]}V[K]=w}}return V}; aDB=function(G){var B,a,V,x,h,e,w;return g.v(function(K){switch(K.j){case 1:if(!("DecompressionStream"in window))return K.return(g.GkY(new g.A3b(G)));B=new DecompressionStream("gzip");a=B.writable.getWriter();a.write(G);a.close();V=B.readable.getReader();x=new mN([]);case 2:return g.f(K,V.read(),5);case 5:h=K.X;e=h.value;if(w=h.done){K.kf(4);break}x.append(e);K.kf(2);break;case 4:return K.return(x.qo())}})}; ub=function(G,B){this.j=G;this.Hn=B}; VtY=function(G){return Ch(Ch(kA(function(){return d2(G.Hn,function(B){return G.HR(G.j,B)})}),function(){return G.oi(G.j)}),function(){return G.vR(G.j)})}; xkV=function(G,B){return VtY(new ub(G,B))}; W5H=function(G){OG.call(this,"onesie");this.d7=G;this.j={};this.C=!0;this.G=null;this.queue=new s$B(this);this.B={};this.L=liz(function(B,a){var V=this;return function h(){var e,w,K,l,k,N,d,C,z,p,O,b,c,H,R,q,A,J,xB,Wz;return N_c(h,function(GK){switch(GK.j){case 1:g.OA(GK,2);V.d7.u5();e=function(Q){return function(M){throw{name:Q,message:M};}}; w=B.qo();g.UA(GK,4,5);if(!a){GK.kf(7);break}return wz_(GK,Ch(hE9(V.d7,w,V.iv),e("DecryptError")).wait(),8);case 8:K=GK.X;case 7:if(!V.d7.enableCompression){GK.kf(9);break}return wz_(GK,Ch(xkV((N=K)!=null?N:w,V.d7.U().LR),e("DecompressError")).wait(),10);case 10:l=GK.X;case 9:k=uX((C=(d=l)!=null?d:K)!=null?C:w,kLy);case 5:g.bx(GK,0,2);if(p=(z=V.d7.U())==null?void 0:z.Hn)((O=K)==null?void 0:O.buffer)===p.exports.memory.buffer&&p.free(K.byteOffset),((b=l)==null?void 0:b.buffer)===p.exports.memory.buffer&& p.free(l.byteOffset);g.yb(GK,6);break;case 4:throw H=c=g.jB(GK),new yH("onesie.response.parse",{name:(J=H.name)!=null?J:"unknown",message:(xB=H.message)!=null?xB:"unknown",wasm:((R=V.d7.U())==null?0:R.Hn)?((q=V.d7.U())==null?0:(A=q.Hn)==null?0:A.a$)?"1js":"1":"0",enc:V.C,gz:V.d7.enableCompression,webcrypto:!!pp()});case 6:return eEY(k),Wz=g.yz(k.body),GK.return(Wz);case 2:g.bx(GK),g.yb(GK,0)}})}()})}; w_X=function(G){var B=G.queue;B.j.length&&B.j[0].isEncrypted&&!B.X&&(B.j.length=0);B=g.m(Object.keys(G.j));for(var a=B.next();!a.done;a=B.next()){a=a.value;var V=G.j[a];if(!V.Ol){var x=G.queue;x.j.push({videoId:V.videoId,formatId:a,isEncrypted:!1});x.X||RD(x)}}}; lDx=function(G,B){var a=B.getLength(),V=!1;switch(G.G){case 0:G.d7.S("html5_future_onesie_ump_handler_on_player_response")?Ch(d2(G.L(B,G.C),function(x){K5B(G.d7,x)}),function(x){G.d7.yH(x)}):G.u5(B,G.C).then(function(x){K5B(G.d7,x)},function(x){G.d7.yH(x)}); break;case 2:G.o4("ormk");B=B.qo();G.queue.decrypt(B);break;default:V=!0}G.d7.lC&&G.d7.FJ("ombup","id.11;pt."+G.G+";len."+a+(V?";ignored.1":""));G.G=null}; eEY=function(G){if(G.h_!==1)throw new yH("onesie.response.badproxystatus",{st:G.h_,webcrypto:!!pp(),textencoder:!!g.qY.TextEncoder});if(G.zI!==200)throw new yH("onesie.response.badstatus",{st:G.zI});}; kkA=function(G){return new Promise(function(B){setTimeout(B,G)})}; NtX=function(G,B){var a=G.U();a=G.OZ&&a.S("html5_onesie_preload_use_content_owner");var V=G.K_,x=PJ(B.md.experiments,"debug_bandaid_hostname");if(x)B=CS(B,x);else if((a===void 0?0:a)&&(V==null?0:V.url)&&!B.X){var h=Oi(new g.pT(V.url));B=CS(B,h)}else B=(h=B.j.get(0))==null?void 0:h.location.clone();if(B&&G.videoId){h=eN(G.videoId);G=[];if(h)for(h=g.m(h),a=h.next();!a.done;a=h.next())G.push(a.value.toString(16).padStart(2,"0"));B.set("id",G.join(""));return B}}; dkV=function(G,B,a){a=a===void 0?0:a;var V,x;return g.v(function(h){if(h.j==1)return V=[],V.push(B.load()),a>0&&V.push(kkA(a)),g.f(h,Promise.race(V),2);x=NtX(G,B);return h.return(x)})}; ClH=function(G,B,a,V){V=V===void 0?!1:V;G.set("cpn",B.clientPlaybackNonce);G.set("opr","1");var x=B.U();G.set("por","1");pp()||G.set("onem","1");B.startSeconds>0&&G.set("osts",""+B.startSeconds);V||(x.S("html5_onesie_disable_partial_segments")&&G.set("oses","1"),B=x.S("html5_gapless_onesie_no_media_bytes")&&V3(B)&&B.OZ,a&&!B?(B=a.audio,G.set("pvi",a.video.join(",")),x.S("html5_onesie_disable_audio_bytes")||G.set("pai",B.join(",")),iB||G.set("osh","1")):(G.set("oad","0"),G.set("ovd","0"),G.set("oaad", "0"),G.set("oavd","0")))}; zEK=function(G,B,a,V,x){x=x===void 0?!1:x;var h="https://youtubei.googleapis.com/youtubei/"+B.c9.innertubeApiVersion+"/player",e=[{name:"Content-Type",value:"application/json"}];V&&e.push({name:"Authorization",value:"Bearer "+V});e.push({name:"User-Agent",value:g.ns()});g.A0("EOM_VISITOR_DATA")?e.push({name:"X-Goog-EOM-Visitor-Id",value:g.A0("EOM_VISITOR_DATA")}):(a=a.visitorData||g.A0("VISITOR_DATA"))&&e.push({name:"X-Goog-Visitor-Id",value:a});(a=g.A0("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&e.push({name:"X-YouTube-Lava-Device-Context", value:a});(B=PJ(B.experiments,"debug_sherlog_username"))&&e.push({name:"X-Youtube-Sherlog-Username",value:B});G=fH(JSON.stringify(G));return{url:h,w2:e,postBody:G,sy1:x,Pc:x}}; mkc=function(G,B,a,V,x,h){var e=g.Yy(G,lRy,G.Pc?void 0:a.Hn),w={encryptedClientKey:B.j.encryptedClientKey,JZ:!0,hQ:!0,v1:ttA(a,!!G.Pc),Fm:a.experiments.Or("html5_use_jsonformatter_to_parse_player_response")};if(G.Pc)w.RbL=e;else{G=B.encrypt(e);var K;if(((K=a.Hn)==null?void 0:K.exports.memory.buffer)===e.buffer&&G.byteOffset!==e.byteOffset){var l;(l=a.Hn)==null||l.free(e.byteOffset)}var k;G=((k=a.Hn)==null?void 0:k.w4(G))||G;e=w.tQ=G;(0,g.yT)();e=ab9(new Bzg(B.j.C),e,B.iv);w.jw=e;w.iv=B.iv}B=V.getVideoData(); a=Io({Rn:a,jJ:V,HZ:B.startSeconds*1E3});x={pA:w,jz:a,onesieUstreamerConfig:x,UC:h,jW:g6(B)};B.reloadPlaybackParams&&(x.reloadPlaybackParams=B.reloadPlaybackParams);return x}; IDc=function(G,B,a){var V,x,h;return g.v(function(e){if(e.j==1)return V=g.Yy(B,lRy),g.f(e,ZIz(a,V),2);if(e.j!=3)return x=e.X,g.f(e,r3z(a,x),3);h=e.X;return e.return({tQ:x,encryptedClientKey:a.j.encryptedClientKey,iv:a.iv,jw:h,JZ:!0,hQ:!0,v1:ttA(G,!!B.Pc),Fm:G.experiments.Or("html5_use_jsonformatter_to_parse_player_response")})})}; giV=function(G,B,a,V,x,h){var e,w,K,l;return g.v(function(k){if(k.j==1)return g.f(k,IDc(a,G,B),2);e=k.X;w=V.getVideoData();K=Io({Rn:a,jJ:V,HZ:w.startSeconds*1E3});l={pA:e,jz:K,onesieUstreamerConfig:x,UC:h,jW:g6(w)};w.reloadPlaybackParams&&(l.reloadPlaybackParams=w.reloadPlaybackParams);return k.return(l)})}; ttA=function(G,B){G=pI(G.schedule,!0);B=B||!!pp()&&G>1572864;return"DecompressionStream"in window||!B}; LS=function(G,B){g.r.call(this);var a=this;this.jJ=G;this.playerRequest=B;this.logger=new g.xY("onesie");this.xhr=null;this.state=1;this.Sm=new iV;this.gI=!1;this.playerResponse="";this.H3=new MS(this);this.NP=new W5H(this);this.oU="";this.Tb=this.bB=!1;this.wl="";this.enableCompression=this.LV=this.cN=!1;this.YY=[];this.LX=this.qL=-1;this.md=this.jJ.U();this.videoData=this.jJ.getVideoData();this.lC=this.md.Ef();this.DW=this.md.ym;this.Yb=new Ng(this.DW.j,this.md.LR,nF9(this.md));this.kc=this.md.S("html5_onesie_check_timeout"); this.sL=new g.J8(this.oB,500,this);this.Uk=new g.J8(this.Aa,1E4,this);this.Un=new g.J8(function(){if(!a.isComplete()){var V=Q6(a);a.yH(new yH("net.timeout",V))}},1E3); this.SZ=new g.J8(this.pfn,2E3,this);this.VE=this.jJ.w8();this.L$=this.S("html5_onesie_wait_for_media_availability");g.X(this.videoData,this);g.X(this,this.sL);g.X(this,this.Uk);g.X(this,this.SZ);g.X(this,this.Yb);G=GQ();iB&&G&&(this.Tz=new Map);this.Vi=new Map;this.h9=new Map;this.dN=new Map;this.A4=new Map}; Sd=function(G,B){var a;return(a=G.Tz)==null?void 0:a.get(B)}; Uk_=function(G,B,a){var V;return g.v(function(x){if(x.j==1)return G.o4("oprd_s"),p__(G)?g.f(x,$qB(G.Yb,B,a),3):(V=G.Yb.decrypt(B,a),x.kf(2));x.j!=2&&(V=x.X);G.o4("oprd_c");return x.return(V)})}; hE9=function(G,B,a){G.o4("oprd_s");B=Rbx(G.Yb).encrypt(B,a);d2(B,function(){G.o4("oprd_c")}); return B}; O$Y=function(G){return G.S("html5_onesie_host_probing")||G.lC?iB:!1}; K5B=function(G,B){G.o4("oprr");G.playerResponse=B;G.LV||(G.L$=!1);To(G)}; To=function(G){if(!G.playerResponse)return!1;if(G.cN)return!0;var B=G.videoData.S("html5_onesie_audio_only_playback")&&xX(G.videoData);if(G.Tz&&G.L$){if(!G.Tz.has(G.oU))return!1;var a=G.Tz.get(G.oU),V;if(V=a){V=!1;for(var x=g.m(a.Kd.keys()),h=x.next();!h.done;h=x.next())if(h=a.Kd.get(h.value))for(var e=g.m(h.Fj),w=e.next();!w.done;w=e.next())w.value.CL>0&&(h.zz?V=!0:B=!0);V=!(B&&V)}if(V)return!1}G.o4("ofr");G.Sm.resolve(G.playerResponse);if(!G.kc){var K;(K=G.Un)==null||K.start();G.Uk.start()}return G.cN= !0}; j0x=function(G){if(G.Tz&&!G.S("html5_onesie_media_capabilities")){G.o4("ogsf_s");var B=rqz(G.jJ.getVideoData(),function(V,x){G.FJ(V,x)}),a=Eiz(G.jJ); B.video=cqx(a,B.video);G.o4("ogsf_c");if(B.video.length)return B;G.FJ("ombspf","l."+a.X+";u."+a.j+";o."+a.C+";r."+a.reason)}}; p__=function(G,B){return G.S("html5_onesie_sync_request_encryption")||(B==null?0:B.Pc)||g.Po(G.md)&&G.S("html5_embed_onesie_use_sync_encryption")?!1:!!pp()}; Q6=function(G){if(!G.vn)return{};var B=G.vn.gW(),a;B.d=(a=G.vn.Zx)==null?void 0:a.Ft();B.shost=G.ID;B.ty="o";return B}; b$y=function(G,B){var a,V;(V=(G=(a=G.Tz)==null?void 0:a.get(B))==null)||(B=G.C?!1:G.C=!0,V=!B);return!V}; yCc=function(G,B,a,V,x,h,e,w,K,l,k){g.r.call(this);var N=this;this.jJ=G;this.CN=B;this.policy=a;this.audioTrack=V;this.videoTrack=x;this.hX=h;this.Gt=e;this.Ur=w;this.C=K;this.timing=l;this.Y=k;this.j=[];this.W={};this.qB=this.Er=!1;this.w_=new Set;this.B=this.SJ=this.zH=this.iX=0;this.G=null;this.HS={Pf:[],jc:[]};this.GH={Pf:[],jc:[]};this.L=null;this.Qb=[];this.vC={ZFN:function(){return N.j}, x4b:function(){return N.W}, Pyn:function(){N.j.length=0}, YDS:function(){return N.w_}, gXJ:function(){return N.zH}, MeJ:function(d){N.zH=d}, a51:function(d){N.B=d}, IE:function(d){N.L=d}}; this.videoData=this.jJ.getVideoData();this.policy.N9&&(this.LN=new JT(this.CN,this.policy,this.Gt),g.X(this,this.LN))}; fDA=function(G,B){B=B===void 0?!1:B;if(cC9(G,B)){G.policy.W&&G.CN.FJ("sabrcrq",{create:1});var a=new ed(0,G.hX.V,G);G.policy.e6>0&&G.B++;B=niV(G,a,B);G.j.push(B);var V;(V=G.LN)==null||M29(V,G.hX.V)}}; Sy_=function(G,B){var a=H$c(G);if(G.policy.JY){var V=G.HS;var x=G.GH}else V=sn(G,G.audioTrack),x=sn(G,G.videoTrack);var h=[].concat(g.U(V.Pf),g.U(x.Pf));G.policy.fh&&G.L&&h.push.apply(h,g.U(G.Qb));var e=[].concat(g.U(V.jc),g.U(x.jc)),w=G.CN.Ko(),K,l,k=G.jJ,N=G.hX,d=G.X,C=G.w_,z=G.policy,p=G.CN.DQ,O=hbb(G.CN)*1E3,b=(K=G.Zx)==null?void 0:K.OI;K=(l=G.Zx)==null?void 0:l.R6;var c;l=Number((c=G.C.G)==null?void 0:c.info.itag)||0;var H;c=Number((H=G.C.L)==null?void 0:H.info.itag)||0;B={jJ:k,hX:N,Pf:h,jc:e, HZ:a,nextRequestPolicy:d,w_:C,NQ:z,DQ:p,fg:O,OI:b,R6:K,iX:G.iX,isPrefetch:B||G.CN.isSuspended,qW:l,JM:c,zy:w,JD:G.jJ.wi()};a=G.CN.m7();h=eN(a);a&&(B.Fy=h);if(a=G.jJ.Zo())B.Fv=a*1E3;var R;a=G.C;h=a.zH;if((a.NQ.X&&a.NQ.SH||((R=a.NQ)==null?0:R.j&&R.L3))&&!h)for(R=g.m(a.C),e=R.next();!e.done;e=R.next())if(e.value.VW){h=!0;break}R=sC(a.NQ)&&!h?[]:NGA(a,a.C);B.J5=R;R=G.C;sC(R.NQ)&&!R.XJ?R=[]:(a=poY(R),a.length===0&&(a=R.W),R=NGA(R,a));B.uj=R;B.t5=G.policy.fh&&G.L?[G.L]:void 0;G.policy.SV&&(B.m0=vi_(G.CN, G.audioTrack),B.jp=vi_(G.CN,G.videoTrack));if(G.policy.B){V=Dkz(G,V.Pf,x.Pf);var q;if(x=(q=G.G)==null?void 0:q.o3(V))B.yA=x}G.policy.Qb&&G.j.length>0&&G.j[0].H4()&&(B.xqX=G.j[0].yG());return B}; H$c=function(G){var B,a=G.policy.L&&((B=G.CN)==null?void 0:B.qa());B=G.CN.getCurrentTime()||0;B=REg(G,B);var V=G.CN.F3()||0;B+=V;V=n9(G.videoData)||g.cF(G.videoData);var x=0;a?(V&&(x=Number.MAX_SAFE_INTEGER),G.videoData.LN&&(x=Math.ceil(G.videoData.Qb*1E3))):x=Math.ceil(B*1E3);return Math.min(Number.MAX_SAFE_INTEGER,x)}; REg=function(G,B){if(G.CN.isSeeking())return B;var a=G.jJ.Zc();if(!a)return B;a=a.yk();if(a.length===0||wZ(a,B))return B;if(!qL(G.videoTrack,B)&&!qL(G.audioTrack,B))return G.CN.FJ("sundrn",{b:0,lt:B}),B;for(var V=B,x=Infinity,h=0;hB)){var e=B-a.end(h);e=20)?(G.CN.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),B):V}; Dkz=function(G,B,a){var V=G.CN.getCurrentTime()||0;B=Z$g(G,B,V);G=Z$g(G,a,V);return Math.min(B,G)}; Z$g=function(G,B,a){G=G.CN.F3()||0;B=g.m(B);for(var V=B.next();!V.done;V=B.next()){var x=V.value;V=x.startTimeMs?x.startTimeMs/1E3-G:0;x=V+(x.durationMs?x.durationMs/1E3:0);if(V<=a&&a<=x)return x}return a}; cC9=function(G,B){if(G.policy.e6>0){var a=Math.floor((0,g.yT)()/1E4);if(a===G.SJ){if(G.B>=G.policy.e6){if(G.B===G.policy.e6){var V={reason:"toomanyrequests"};V.limit=G.B;G.CN.handleError("player.exception",V);G.B+=1}return!1}}else G.SJ=a,G.B=0}B=!B&&!Ub(G.Gt)&&!G.policy.Nq;if(G.CN.isSuspended&&(G.CN.eD||B))return!1;if(G.XJ&&(0,g.yT)()0&&(!G.policy.Qb||G.j.length!==1||!G.j[0].H4()))return!1;var x;if((x=G.hX.V)==null||!EY(x,G.policy,G.W,G.CN.ZD()))return!1; x=G.policy.qr&&G.policy.X&&G.CN.j6();if(r0(G.audioTrack)&&r0(G.videoTrack)&&!x)return!1;if(G.policy.X&&G.V&&!G.CN.j6())return G.jE("ssap",{pauseontlm:1}),!1;if(FS(G,G.audioTrack)&&FS(G,G.videoTrack))return G.policy.C&&G.CN.FJ("sabrHeap",{a:""+fu(G.audioTrack),v:""+fu(G.videoTrack)}),!1;if(x=G.policy.B)x=!1,G.Y.X===2?x=!0:G.Y.X===3&&(H$c(G),G.CN.F3(),B=Dkz(G,ya(G.audioTrack,G.CN.isSeeking()).Pf,ya(G.videoTrack,G.CN.isSeeking()).Pf),a=G.Y,B>=a.C?(a.FJ("sdai",{haltrq:B,est:a.C}),B=!0):B=!1,B&&(x=!0)), x&&G.policy.W&&G.CN.FJ("sabrcrq",{waitad:1});if(x)return!1;G.policy.JY&&(G.HS=sn(G,G.audioTrack),G.GH=sn(G,G.videoTrack));if(!G.X)return G.policy.W&&G.CN.FJ("sabrcrq",{nopolicy:1}),!0;if(G.jJ.Zo())return G.policy.W&&G.CN.FJ("sabrcrq",{utc:1}),!0;if(G.C.B)return G.policy.W&&G.CN.FJ("sabrcrq",{audio:1}),!0;if(!G.X.targetAudioReadaheadMs||!G.X.targetVideoReadaheadMs)return G.policy.W&&G.CN.FJ("sabrcrq",{noreadahead:1}),!0;if(G.policy.L&&G.CN.qa())return G.policy.W&&G.CN.FJ("sabrcrq",{seekToHead:1}), !0;x=Math.min(up(G.CN,G.audioTrack)*1E3,G.X.targetAudioReadaheadMs);B=Math.min(up(G.CN,G.videoTrack)*1E3,G.X.targetVideoReadaheadMs);var h=Math.min(x,B);a=v6(G.audioTrack,!0)*1E3;var e=v6(G.videoTrack,!0)*1E3;if(G.policy.JY){var w=G.jJ.getCurrentTime()*1E3;var K=rC9(G.HS.Pf,w);w=rC9(G.GH.Pf,w)}else K=a,w=e;var l=KB||V>=0&&x.XO>V+1)break;a=Math.max(a,x.startTimeMs+x.durationMs);V=Math.max(V,x.Xh)}return Math.max(0,a-B)}; niV=function(G,B,a){var V={Gt:G.Gt,ZA:function(K,l){G.jJ.oZ(K,l)}, K1:G.policy.Yz,Fs:G.policy.C};G.Gt.X.L&&(V.N$=(G.videoTrack.j.info.NB||0)+(G.audioTrack.j.info.NB||0));G.policy.T2&&(V.EA=G.audioTrack.j.index.oz(),V.K1=!1);var x=j$x(B,G.policy,G.W)?2:1;x!==G.zH&&(G.zH=x,qyb(G));a=Sy_(G,a);if((G.policy.X||G.policy.Qb)&&G.policy.C&&a.w_){for(var h=x="",e=g.m(a.w_),w=e.next();!w.done;w=e.next())w=w.value,G.videoData.sabrContextUpdates.has(w)?x+="_"+w:h+="_"+w;G.CN.FJ("sabrbldrqs",{ctxts:x,misctxts:h})}B.setData(a,G.CN.j6(),G.policy,G.W)||!G.policy.X&&!G.policy.Qb|| G.CN.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);V=new vT(G.policy,B,G.hX,G.W,G,V,G.CN.w8(),G.policy.M9?G.CN.j6():void 0);DT(G.timing);G.policy.W&&G.CN.FJ("sabrcrq",{rn:V.Ea(),probe:B.LF()});return V}; YJ=function(G,B){if(B.TH()||G.TH())G.policy.V0||(G.policy.L?AG(G.CN):G.CN.Bn());else{if(G.policy.C&&B.isComplete()&&B instanceof vT){var a=G.CN,V=a.FJ,x,h,e=Object.assign(B.vn.gW(),{rst:B.state,strm:B.xhr.KX(),d:(x=B.vn.Zx)==null?void 0:x.Ft(),cncl:B.xhr&&B.Ay.G?1:0,rqb:B.RE,cwt:B.Vp,swt:(h=B.M3)==null?void 0:h.nU});x=Object.assign(c3c(B.info),e);V.call(a,"rqs",x)}if(B.isComplete()&&B.LF()&&B instanceof vT)G.policy.fd?B.hq()?(B.dispose(),G.j.length===0?G.CN.Bn():(G=G.j[0],G instanceof vT&&G.RC()&& G.UJ())):B.Vm()&&G.CN.handleError(B.Vk(),B.A2()):(B.dispose(),G.CN.Bn());else{if(B.Sw())B instanceof vT&&Iuy(G.timing,B),qyb(G),uR_(G);else if(B.Vm())a=G.jJ.Zo(),B instanceof vT&&y3_(B.info)&&a&&G.CN.aH(a),B instanceof LS?G.j.pop():(a=1,B.canRetry()&&BI(G.CN)&&(Q09(G,B),a=0),G.CN.handleError(B.Vk(),B.A2(),a));else{if(G.CN.isSuspended&&!B.isComplete())return;uR_(G)}B.TH()||B instanceof LS||(B.isComplete()?a=aB9(B,G.policy,G.W):(a=BGX(B,G.policy,G.W),a===1&&(G.Er=!0)),a!==0&&(V=new ed(1,B.info.kD), V.r_=a===2,niV(G,V)));G.policy.Cd&&!B.isComplete()?ML(G.CN):G.CN.Bn()}}}; uR_=function(G){for(;G.j.length&&G.j[0].WH(G.WD());){var B=G.j.shift();L59(G,B);if(G.policy.B){var a=G;if(!a.policy.MB&&B.WH(a.WD())){var V=B.Ea();if(a.MB!==V){var x=B.bk();B=x.qL;var h=x.LX;x=x.isDecorated;!a.G||h<0||(a.MB=V,V=qj(a.Y,h/1E3,B),h=a.CN.F3()||0,r6(a.Y,B,V-h,x,a.G))}}}}G.j.length&&L59(G,G.j[0])}; L59=function(G,B){var a=new Set(B.yI(G.WD()));a=g.m(a);for(var V=a.next();!V.done;V=a.next()){var x=V.value;if(!(V=!(B instanceof LS))){V=G.C;var h=V.hX.SE,e=xJ(V.videoInfos,h);V=gFH(V,x,h)||e.includes(x)}if(V&&(V=B.t2(x,G.WD()),h=G.policy.fh&&ar(V[0].j.info.mimeType),(!(!h&&G.policy.GY&&V.length>0&&(V[0].j.info.zz()?v6(G.audioTrack):v6(G.videoTrack))>3)||B.isComplete())&&B.Fr(x,G.WD()))){x=B.ye(x,G.WD());if(G.policy.X){e=V[0].j.info;var w=G.CN.j6();if(w&&e){var K=B.n9();w.api.S("html5_ssap_set_format_info_on_video_data")&& K===ZK(w)&&(e.zz()?w.playback.getVideoData().G=e:w.playback.getVideoData().X=e);if(w=ib(w.timeline,K))if(w=w[0].getVideoData())e.zz()?w.G=e:w.X=e}}x=g.m(x);for(e=x.next();!e.done;e=x.next())if(e=e.value,G.policy.C&&B instanceof LS&&G.CN.FJ("omblss",{s:e.info.cC()}),h)w=G,w.videoData.SE()&&w.L&&jE(w.L)===jE(g.My(e.info.j.info,w.hX.SE))&&w.jJ.publish("sabrCaptionsDataLoaded",e,w.qh.bind(w));else{w=e.info.j.info.zz();var l=e.info.j;if(w){K=void 0;var k=G.C,N=(K=B.Xe(G.WD()))==null?void 0:K.token;k.NQ.MD&& k.B&&l!==k.L?K=!0:(k.B=!1,l!==k.L&&(k.L=l,k.Sj(l,k.audioTrack,N)),K=!1);if(G.policy.MD&&K)continue}else K=void 0,kQA(G.C,l,(K=B.Xe(G.WD()))==null?void 0:K.token);K=w?G.audioTrack:G.videoTrack;B instanceof LS&&(K.W=!1,B instanceof LS&&(w?kcc(G.timing):luH(G.timing)));try{bU(K,V,e)}catch(d){e=n1(d),G.CN.handleError(e.errorCode,e.details,e.severity),K.lz(),G.Fa(!1,"pushSlice"),AG(G.CN)}}}}}; Q09=function(G,B){G.policy.Qb?G.j.splice(G.j.indexOf(B)).forEach(function(a){a.dispose()}):(G.j.pop(),B==null||B.dispose())}; Ttg=function(G,B,a){for(var V=[],x=0;x0)for(var B=g.m(G.videoData.sabrContextUpdates.keys()),a=B.next();!a.done;a=B.next()){a=a.value;var V=void 0;((V=G.videoData.sabrContextUpdates.get(a))==null?0:V.sendByDefault)&&G.w_.add(a)}if(G.policy.Qb&&G.j.length)for(B=g.m(G.j),a=B.next();!a.done;a=B.next())(a=a.value.yG())&&a.type&&a.sendByDefault&&G.w_.add(a.type)}; JCc=function(G){G.policy.S_&&(G.Zx=void 0,G.iX=0)}; ACB=function(G,B){if(B.Vm()||B.TH()){var a=G.CN,V=a.FJ,x=B.state;G=G.WD();var h,e;if((B=(h=B.Tz)==null?void 0:h.get(G))==null)B=void 0;else{h=0;G=B.yI();for(var w=0;w=G.policy.eM,e=!1;if(h){var w=0;!isNaN(B)&&B>G.B&&(w=B-G.B,G.B=B);w/x=G.policy.hY&&!G.C;if(!h&&!a&&GCB(G,B))return NaN;a&&(G.C=!0);a:{V=e;a=(0,g.yT)()/1E3-(G.X7.cG()||0)-G.W.j-G.policy.Qv;h=G.X.startTime;a=h+a;if(V){if(isNaN(B)){PI(G,NaN,"n",B);h=NaN;break a}V=B-G.policy.SF;V=h.Sn&&V<=h.K3){V=!0;break a}V=!1}V=!V}if(V)return G.FJ("ostmf",{ct:G.getCurrentTime(),a:B.j.info.zz()}),!1;(G=G.XJ)!=null&&(G.Kd.get(a).ME=!0);return!0}; WBb=function(G){if(!G.hX.SE)return!0;var B=G.jJ.getVideoData();if(B.S("html5_skip_live_preroll_onesie")&&G.jJ.Oa()||B.S("html5_skip_live_preroll_onesie_post_live")&&G.jJ.Oa()&&(B.Ai||B.isPremiere))return G.FJ("ombpa",{}),!1;var a,V;if(G.policy.u$&&!!((a=G.zH)==null?0:(V=a.gh)==null?0:V.rvJ)!==G.hX.Ai)return G.FJ("ombplmm",{}),!1;a=B.wO||B.liveUtcStartSeconds||B.Fg;if(G.hX.Ai&&a)return G.FJ("ombplst",{}),!1;if(G.hX.Y)return G.FJ("ombab",{}),!1;a=Date.now();return j2(G.hX)&&!isNaN(G.HS)&&a-G.HS>G.policy.b$* 1E3?(G.FJ("ombttl",{}),!1):G.hX.Qg&&G.hX.G||!G.policy.JS&&G.hX.isPremiere||!(zC(B)===0||G.policy.j&&B.S("html5_enable_onesie_media_for_sabr_proxima_optin"))||B.S("html5_disable_onesie_media_for_mosaic")&&L9(B)||B.S("html5_disable_onesie_media_for_ssdai")&&B.isDaiEnabled()&&B.enableServerStitchedDai||B.S("html5_disable_onesie_media_for_lifa_eligible")&&Q3(B)?!1:!0}; wFz=function(G,B){var a=B.j,V=G.hX.SE;if(WBb(G))if(G.XJ&&G.XJ.Kd.has(jE(g.My(a.info,V)))){if(V=jE(g.My(a.info,V)),eiV(G,B)){var x=new $p(G.XJ.t2(V)),h=function(e){try{if(e.Vm())G.handleError(e.Vk(),e.A2()),Rj(B,e),qC(e.info)&&P6(G.B,B,a,!0),G.Bn();else if(oj(G.B,e)){var w;(w=G.G)==null||OE_(w,e.info,G.V);G.Bn()}}catch(K){e=n1(K),G.handleError(e.errorCode,e.details,e.severity),G.lz()}}; a.C=!0;X3(x)&&(jS(B,new rR(G.policy,V,x,G.XJ,h)),DT(G.timing))}}else G.FJ("ombfmt",{})}; Gh=function(G,B){B=B||G.videoTrack&&G.videoTrack.X&&G.videoTrack.X.startTime||G.getCurrentTime();var a=Go,V=G.videoTrack,x=G.j;B=x.nextVideo&&x.nextVideo.index.nR(B)||0;x.GH!==B&&(x.LN={},x.GH=B,iw(x,x.j));B=!x.j.isLocked()&&x.Y>-1&&(0,g.yT)()-x.YB.j&&B.reason==="b";V||x||a?(G.jJ.AN({reattachOnConstraint:V?"u":x?"drm":"perf",lo:B.X,up:B.j}),G.policy.lX||(G.X.j.X=!1)):(G.policy.lX&&(G.X.j.X=!1),AG(G))}}else if(!DCc(G.j,B)&&G.videoTrack){G.logger.debug(function(){return"Setting constraint: r="+B.reason+" u="+B.j}); a=G.j.j;tOz(G,R0Y(G.j,B));Gh(G);V=B.isLocked()&&B.reason==="m"&&G.j.XJ;x=G.policy.Gn&&B.reason==="l"&&$M(G.videoTrack);a=a.j>B.j&&B.reason==="b";var h=G.j.Ur&&!tj();V||x||a||h?G.jJ.AN({reattachOnConstraint:V?"u":x?"drm":h?"codec":"perf"}):AG(G)}}; Iwx=function(G,B,a){if((!G.tX||gZ(G.tX)&&!G.policy.ZQ)&&!G.Fh.isSeeking()&&(G.policy.j||$M(B)&&B.j.tv()&&G.j.zH)){var V=G.getCurrentTime()+vAb(G.Y,B,a);G.logger.debug(function(){return"Clearing back to "+V.toFixed(3)}); ZwK(B,V)}}; tOz=function(G,B){B&&(G.logger.debug(function(){return"Logging new format: "+xb(B.video.info)}),gXB(G.jJ,new LL(B.video,B.reason))); if(G.j.Er){var a=XsY(G.j,"a");G.jJ.WF(new LL(a.audio,a.reason))}}; AG=function(G){g.iC(G.fh)}; ML=function(G){G.policy.Cd&&G.policy.Ku&&Math.min(RKA(G.videoTrack),RKA(G.audioTrack))*1E3>G.policy.L5?g.iC(G.Yf):G.Bn()}; pFg=function(G,B){var a=(0,g.yT)()-B,V=v6(G.audioTrack,!0)*1E3,x=v6(G.videoTrack,!0)*1E3;G.logger.debug(function(){return"Appends paused for "+a}); if(G.policy.C&&(G.FJ("apdpe",{dur:a.toFixed(),abuf:V.toFixed(),vbuf:x.toFixed()}),T6(G.policy))){var h=HB(G.Y);G.FJ("sdps",{ct:B,ah:V.toFixed(),vh:x.toFixed(),mr:vB(G.Y,G.At,h),bw:h.toFixed(),js:G.isSeeking(),re:+G.At,ps:(G.policy.FS||"").toString(),rn:(G.policy.K5||"").toString()})}}; UJY=function(G){if(G.policy.X&&uU(G.videoTrack)&&uU(G.audioTrack))return"ssap";if(QWX(G.videoTrack))return G.logger.debug("Pausing appends for server-selectable format"),"ssf";if(G.policy.Er&&Qa(G.videoTrack)&&Qa(G.audioTrack))return"updateEnd";if(r0(G.audioTrack)||r0(G.videoTrack)&&G.videoTrack.j.info.PS!=="f")return"";if(G.Fh.isSeeking()){var B=G.Y;var a=G.videoTrack;var V=G.audioTrack;if(B.policy.j){var x=B.policy.Gm;T6(B.policy)&&(x=vB(B,!1,HB(B)));B=x;a=v6(V,!0)>=B&&v6(a,!0)>=B}else a.C.length|| V.C.length?(x=a.j.info.NB+V.j.info.NB,x=10*(1-HB(B)/x),B=Math.max(x,B.policy.Gm),a=v6(V,!0)>=B&&v6(a,!0)>=B):a=!0;if(!a)return"abr";a=G.videoTrack;if(a.C.length>0&&a.G.X.length===1&&lEK(a.G).info.L360);V=T6(G.policy)&&G.policy.gt;if(!G.At||!V&&a)return"";a=G.policy.d_;T6(G.policy)&&(a=vB(G.Y,G.At,HB(G.Y)));a=$px(G.videoTrack, G.getCurrentTime(),a)||$px(G.audioTrack,G.getCurrentTime(),a);return T6(G.policy)?a?"mbnm":"":(G.videoTrack.C.length>0||G.audioTrack.C.length>0||YM(G.B,G.videoTrack,G.audioTrack)||YM(G.B,G.audioTrack,G.videoTrack))&&a?"nord":""}; O9b=function(G){if(G.W){var B=G.W.Bn(G.audioTrack,lV(G.tX.X.Ms()));B&&G.jJ.seekTo(B,{hV:!0,Tt:"pollSubsegmentReadahead",Cy:!0})}}; fwb=function(G,B,a){if(G.policy.Er&&Qa(B))return!1;if(a.g2())return!0;if(!a.uc())return!1;var V=Fo(B);if(!V||V.info.type===6)return!1;var x=G.policy.Hj;if(x&&!V.info.G){var h=V.info.Sn-G.getCurrentTime();if(V.info.Lh)return G.policy.j&&b9B(G,B),G.policy.CQ&&sMB(B.G,h,!1),!1;yQH(G,B);var w;G.policy.IG&&a===((w=G.tX)==null?void 0:w.j)&&G.MB&&(a.DS()===0?(G.MB=!1,G.policy.IG=!1):G.Vb=a.DS());if(!cQc(G,a,V,B))return!1;G.policy.Er&&V.info.Pr()?(G.jJ.U().Ef()&&G.FJ("eosl",{ls:V.info.cC()}), V.isLocked=!0):(B.kZ(V),$Cg(G.j,V.info),G.logger.debug(function(){return"Appended "+V.info.cC()+", buffered: "+eg(a.Ms())})); x&&nXy(G,V.info.j.ip);return!0}; b9B=function(G,B){B===G.videoTrack?G.Qb=G.Qb||(0,g.yT)():G.Zx=G.Zx||(0,g.yT)()}; yQH=function(G,B){B===G.videoTrack?G.Qb=0:G.Zx=0}; cQc=function(G,B,a,V){var x=G.policy.Dx?(0,g.yT)():0,h=a.B&&a.info.j.j||void 0,e=a.j;a.B&&(e=H9y(G,a,e)||e);var w=e.qo();e=G.policy.Dx?(0,g.yT)():0;B=vXb(G,B,w,a.info,h);(V=V.Y)!=null&&(h=a.info,x=e-x,e=(0,g.yT)()-e,!V.X||BZc(V.X,h)&&V.X.AX===h.AX||V.flush(),V.G+=x,V.C+=e,x=1,!V.X&&h.X&&(x=2),aj(V,x,B),e=Math.ceil(h.X/1024),x===2&&V.j.add(e),V.j.add(Math.ceil((h.X+h.C)/1024)-e),V.X=h);G.GH=0;if(B===0)return G.SJ&&(G.logger.debug("Retry succeed, back to normal append logic."),G.SJ=!1,G.Dx=!1),G.eJ= 0,!0;if(B===2||B===5)return DJA(G,"checked",B,a.info),!1;if(B===1){if(!G.SJ)return G.logger.debug("QuotaExceeded, retrying."),G.SJ=!0,!1;if(!G.Dx)return G.Dx=!0,G.jJ.seekTo(G.getCurrentTime(),{Tt:"quotaExceeded",Cy:!0}),!1;a.info.rG()?(x=G.policy,x.SJ=Math.floor(x.SJ*.8),x.HS=Math.floor(x.HS*.8)):(x=G.policy,x.Yf=Math.floor(x.Yf*.8),x.HS=Math.floor(x.HS*.8));G.policy.j?sG(G.X.j,a.info.j,!1):oo(G.j,a.info.j)}G.jJ.AN({reattachOnAppend:B});return!1}; H9y=function(G,B,a){var V;if(V=G.policy.Tk&&G.tX&&!G.tX.V&&!G.jJ.zC())B=B.info.j.info,V=B.C3()&&sB(B)&&B.video&&B.video.width<3840&&B.video.width>B.video.height;if(V&&(G.tX.V=!0,Dh('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return a=wJx(a),G.policy.C&&G.FJ("sp4k",{s:!!a}),a}; DJA=function(G,B,a,V){var x="fmt.unplayable",h=1;a===5||a===3?(x="fmt.unparseable",G.policy.j?!V.j.info.video||F1(G.X.j).size>0||sG(G.X.j,V.j,!1):!V.j.info.video||F1(G.j.B).size>0||oo(G.j,V.j)):a===2&&(G.eJ<15?(G.eJ++,x="html5.invalidstate",h=0):x="fmt.unplayable");V=Zu(V);var e;V.mrs=(e=G.tX)==null?void 0:Aj(e);V.origin=B;V.reason=a;G.handleError(x,V,h)}; bwy=function(G,B,a,V,x){var h=G.hX;var e=G.policy.j,w=!1,K=-1,l;for(l in h.j){var k=ar(h.j[l].info.mimeType)||h.j[l].info.rG();if(V===k)if(k=h.j[l].index,k.Ie(B.AX)){w=k;var N=B,d=w.OM(N.AX);d&&d.startTime!==N.startTime?(w.segments=[],w.Yc(N),w=!0):w=!1;w?K=B.AX:!B.pending&&e&&(N=k.getDuration(B.AX),N!==B.duration&&(h.publish("clienttemp","mfldurUpdate",{itag:h.j[l].info.itag,seg:B.AX,od:N,nd:B.duration},!1),k.Yc(B),w=!0))}else k.Yc(B),w=!0}K>=0&&(e={},h.publish("clienttemp","resetMflIndex",(e[V? "v":"a"]=K,e),!1));h=w;Y0B(G.Fh,B,V,h);G.G.tj(B,a,V,x);if(G.policy.Vg&&a){var C;(C=G.m3)!=null&&C.C.set(B.AX,a)}B.AX===G.hX.Qg&&h&&gX(G.hX)&&B.startTime>gX(G.hX)&&(G.hX.Qb=B.startTime+(isNaN(G.timestampOffset)?0:G.timestampOffset),G.Fh.isSeeking()&&G.Fh.j 5)return G.GH=0,G.jJ.AN({initSegStuck:1,as:V.info.cC()}),!0}else G.GH=0,G.Md=V;G.policy.hf&&(a.abort(),(e=B.Y)!=null&&(aj(e,4),e.flush()));x=vXb(G,a,h,K,x);var l;(l=B.Y)==null||JBV(l,x,K);if(x!==0)return SNx(G,x,V),!0;V.info.rG()?CMx(G.timing):z0Y(G.timing);G.logger.debug(function(){return"Appended init for "+V.info.j.info.id}); nXy(G,V.info.j.ip);return a.IY()}; EXc=function(G,B,a){if(B.Hl()==null){G=EC(G);if(!(B=!G||G.j!==a.info.j)){a:if(G=G.W,a=a.info.W,G.length!==a.length)a=!1;else{for(B=0;B1)return 6;K.Qb=new g.J8(function(){var k=Fo(K);G.TH()||k==null||!k.isLocked?G.jJ.U().Ef()&&G.FJ("eosl",{delayA:k==null?void 0:k.info.cC()}):RiB(K)?(G.jJ.U().Ef()&&G.FJ("eosl",{dunlock:k==null?void 0:k.info.cC()}),Z99(G, K===G.audioTrack)):(G.FJ("nue",{ls:k.info.cC()}),k.info.V+=1,G.tX&&G.yU())},1E4,G); G.jJ.U().Ef()&&G.FJ("eosl",{delayS:V.cC()});K.Qb.start()}if(G.policy.Se&&(V==null?0:V.Pr())){var l;if((l=K.Zx)==null?0:l.isActive())g.PG(K.Zx),G.FJ("sbac",{as:V.cC()});K.Zx=new g.J8(function(){G.FJ("sbum5s",{as:V.cC()})},5E3,G); K.Zx.start()}G.policy.ji&&(V==null?void 0:V.j)instanceof QU&&V.Pr()&&G.FJ("poseos",{itag:V.j.info.itag,seg:V.AX,lseg:V.j.index.MQ(),es:V.j.index.C});B.appendBuffer(a,V,x)}catch(k){if(k instanceof DOMException){if(k.code===11)return 2;if(k.code===12)return 5;if(k.code===22||k.message.indexOf("Not enough storage")===0)return B=Object.assign({name:"QuotaExceededError",buffered:eg(B.Ms()).replace(/,/g,"_"),vheap:fu(G.videoTrack),aheap:fu(G.audioTrack),message:g.I5(k.message,3),track:G.tX?B===G.tX.X?"v": "a":"u"},VO_()),G.handleError("player.exception",B),1;g.RA(k)}return 4}return G.tX.HG()?3:0}; sO=function(G,B,a){G.jJ.seekTo(B,a)}; nXy=function(G,B){B&&G.jJ.jM(new lU(B.key,B.type))}; Cu=function(G,B){G.jJ.Jj(B)}; up=function(G,B){if(G.SJ&&!G.At)return 3;if(G.isSuspended)return 1;var a;if((a=G.tX)==null?0:a.tX&&a.tX.streaming===!1)return 4;a=(B.j.info.audio?G.policy.Yf:G.policy.SJ)/(B.NB*G.policy.Yv);if(G.policy.fZ>0&&G.tX&&gZ(G.tX)&&(B=B.j.info.video?G.tX.X:G.tX.j)&&!B.IY()){B=B.Ms();var V=WZ(B,G.getCurrentTime());V>=0&&(B=G.getCurrentTime()-B.start(V),a+=Math.max(0,Math.min(B-G.policy.fZ,G.policy.dZ)))}G.policy.HS>0&&(a=Math.min(a,G.policy.HS));return a}; vi_=function(G,B){return(up(G,B)+G.policy.qE)*B.NB}; $Jg=function(G){G.Ur&&!G.isSuspended&&Ub(G.schedule)&&(rQB(G,G.Ur),G.Ur="")}; rQB=function(G,B){y8(B,"cms",function(a){G.policy.C&&G.FJ("pathprobe",a)},function(a){G.jJ.handleError(a)})}; XFV=function(G,B){if(G.tX&&G.tX.G&&!G.tX.HG()&&(B.UI=v6(G.videoTrack),B.X=v6(G.audioTrack),G.policy.C)){var a=fu(G.videoTrack),V=fu(G.audioTrack),x=eg(G.tX.X.Ms(),"_",5),h=eg(G.tX.j.Ms(),"_",5);Object.assign(B.j,{lvq:a,laq:V,lvb:x,lab:h})}B.bandwidthEstimate=nP(G.Y);var e;(e=G.audioTrack.Y)==null||e.flush();var w;(w=G.videoTrack.Y)==null||w.flush();G.logger.debug(function(){return b5(B.j)})}; qNz=function(G,B){G.V=B;G.G&&(G.G.L=B);G.V.D0(G.videoTrack.j.info.C3());G.B.X=G.V;G.policy.B&&(G.C.G=G.V)}; uV_=function(G,B){if(G.tX&&G.tX.X){if(G.policy.Q9){var a=JAA(G.audioTrack);if(a&&a.zz()){var V=G.jJ;V.ao&&(V.ao.j=a,V.Kh(V.ao.videoId).O0(V.ao))}}G.policy.bK&&(a=JAA(G.videoTrack))&&a.rG()&&(V=G.jJ,V.Qt&&(V.Qt.j=a,V.Kh(V.Qt.videoId).Nb(V.Qt)));B-=isNaN(G.timestampOffset)?0:G.timestampOffset;G.getCurrentTime()!==B&&G.resume();G.Fh.isSeeking()&&G.tX&&!G.tX.HG()&&(a=G.getCurrentTime()<=B&&B=0&&h1?w.X[0]=B&&xJK(G,V.startTime,!1)}); return a&&a.startTimeG.getCurrentTime())return a.start/1E3;return Infinity}; FBB=function(G){var B=EC(G.videoTrack),a=EC(G.audioTrack);return B&&!FwB(G.videoTrack)?B.startTime:a&&!FwB(G.audioTrack)?a.startTime:NaN}; X_9=function(G){if(G.jJ.getVideoData().isLivePlayback)return!1;var B=G.jJ.Zc();if(!B)return!1;B=B.getDuration();return $kK(G,B)}; $kK=function(G,B){if(!G.tX||!G.tX.j||!G.tX.X)return!1;var a=G.getCurrentTime(),V=G.tX.j.Ms();G=G.tX.X.Ms();V=V?Ke(V,a):a;a=G?Ke(G,a):a;a=Math.min(V,a);return isNaN(a)?!1:a>=B-.01}; SNx=function(G,B,a){G.policy.Wa&&V3(G.jJ.getVideoData())?(G.jJ.FG()||DJA(G,"sepInit",B,a.info),JQH(G.jJ,"sie")):DJA(G,"sepInit",B,a.info)}; BI=function(G){return G.jJ.ZD()0){var x=V.j.shift();YNz(V,x.info)}V.j.length>0&&(x=V.j[0].time-(0,g.yT)(),V.X.start(Math.max(0,x)))}},0); g.X(this,this.X);B.subscribe("widevine_set_need_key_info",this.B,this)}; YNz=function(G,B){a:{var a=B.cryptoPeriodIndex;if(isNaN(a)&&G.C.size>0)a=!0;else{for(var V=g.m(G.C.values()),x=V.next();!x.done;x=V.next())if(x.value.cryptoPeriodIndex===a){a=!0;break a}a=!1}}G.publish("log_qoe",{wvagt:"reqnews",canskip:a});a||G.publish("rotated_need_key_info_ready",B)}; i9x=function(){var G={};var B=G.url;var a=G.interval;G=G.retries;this.url=B;this.interval=a;this.retries=G}; PvX=function(G,B){this.statusCode=G;this.message=B;this.X=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null}; oXc=function(G,B,a){a=a===void 0?"":a;g.r.call(this);this.message=G;this.requestNumber=B;this.Pn=a;this.onError=this.onSuccess=null;this.j=new g.Oz(5E3,2E4,.2)}; MOY=function(G,B,a){G.onSuccess=B;G.onError=a}; Bwy=function(G,B,a,V){var x={timeout:3E4,onSuccess:function(h){if(!G.TH()){X_("drm_net_r",void 0,G.Pn);var e=h.status==="LICENSE_STATUS_OK"?0:9999,w=null;if(h.license)try{w=gK(h.license)}catch(z){g.RA(z)}if(e!==0||w){w=new PvX(e,w);e!==0&&h.reason&&(w.errorMessage=h.reason);if(h.authorizedFormats){e={};for(var K=[],l={},k=g.m(h.authorizedFormats),N=k.next();!N.done;N=k.next())if(N=N.value,N.trackType&&N.keyId){var d=GA9[N.trackType];if(d){d==="HD"&&h.isHd720&&(d="HD720");N.isHdr&&(d+="HDR");e[d]|| (K.push(d),e[d]=!0);var C=null;try{C=gK(N.keyId)}catch(z){g.RA(z)}C&&(l[g.md(C,4)]=d)}}w.X=K;w.j=l}h.nextFairplayKeyId&&(w.nextFairplayKeyId=h.nextFairplayKeyId);h.sabrLicenseConstraint&&(w.sabrLicenseConstraint=gK(h.sabrLicenseConstraint));h=w}else h=null;if(h)G.onSuccess(h,G.requestNumber);else G.onError(G,"drm.net","t.p;p.i")}}, onError:function(h){if(!G.TH())if(h&&h.error)h=h.error,G.onError(G,"drm.net.badstatus","t.r;p.i;c."+h.code+";s."+h.status,h.code);else G.onError(G,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){G.onError(G,"drm.net","rt.req."+G.requestNumber)}}; V&&(x.L4="Bearer "+V);g.Gs(a,"player/get_drm_license",B,x)}; ayz=function(G,B,a,V){g.wI.call(this);this.videoData=G;this.md=B;this.V=a;this.sessionId=V;this.B={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.zH=this.XJ=!1;this.C=null;this.HS=[];this.G=[];this.W=!1;this.j={};this.status="";this.L=NaN;this.X=G.B;this.cryptoPeriodIndex=a.cryptoPeriodIndex;G={};Object.assign(G,this.md.j);G.cpn=this.videoData.clientPlaybackNonce;this.videoData.XJ&&(G.vvt=this.videoData.XJ,this.videoData.mdxEnvironment&&(G.mdx_environment=this.videoData.mdxEnvironment)); this.md.HS&&(G.authuser=this.md.HS);this.md.pageId&&(G.pageid=this.md.pageId);isNaN(this.cryptoPeriodIndex)||(G.cpi=this.cryptoPeriodIndex.toString());var x=(x=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.ns()))?x[1]:"";x==="ATV"&&(G.cdt=x);this.B=G;this.B.session_id=V;this.Y=!0;this.X.flavor==="widevine"&&(this.B.hdr="1");this.X.flavor==="playready"&&(B=Number(PJ(B.experiments,"playready_first_play_expiration")),!isNaN(B)&&B>=0&&(this.B.mfpe=""+B),this.Y=!1);B="";g.$D(this.X)?rX(this.X)?(V=a.X)&&(B="https://www.youtube.com/api/drm/fps?ek="+ qAV(V)):(B=a.initData.subarray(4),B=new Uint16Array(B.buffer,B.byteOffset,B.byteLength/2),B=String.fromCharCode.apply(null,B).replace("skd://","https://")):B=this.X.X;this.baseUrl=B;this.fairplayKeyId=sh(this.baseUrl,"ek")||"";if(B=sh(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(B);this.HS=a.C3?[g.md(a.initData,4)]:a.C;WQ(this,{sessioninit:a.cryptoPeriodIndex});this.status="in"}; ed9=function(G,B){WQ(G,{createkeysession:1});G.status="gr";X_("drm_gk_s",void 0,G.videoData.qB);G.url=VXB(G);try{G.C=B.createSession(G.V,function(a){WQ(G,{m:a})})}catch(a){B="t.g"; a instanceof DOMException&&(B+=";c."+a.code);G.publish("licenseerror","drm.unavailable",1,B,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}G.C&&(xdc(G.C,function(a,V){hdH(G,a,V)},function(a,V,x){if(!G.TH()){V=void 0; var h=1;g.$D(G.X)&&g.R$(G.md)&&G.md.S("html5_enable_safari_fairplay")&&x===1212433232&&(V="ERROR_HDCP",h=G.md.S("html5_safari_fairplay_ignore_hdcp")?0:h);G.error("drm.keyerror",h,a,V)}},function(){G.TH()||(WQ(G,{onkyadd:1}),G.zH||(G.publish("sessionready"),G.zH=!0))},function(a){G.X1(a)}),g.X(G,G.C))}; VXB=function(G){var B=G.baseUrl;KOz(B)||G.error("drm.net",2,"t.x");if(!sh(B,"fexp")){var a=["23898307","23914062","23916106","23883098"].filter(function(x){return G.md.experiments.experiments[x]}); a.length>0&&(G.B.fexp=a.join())}a=g.m(Object.keys(G.B));for(var V=a.next();!V.done;V=a.next())V=V.value,B=njH(B,V,G.B[V]);return B}; hdH=function(G,B,a){if(!G.TH())if(B){WQ(G,{onkmtyp:a});G.status="km";switch(a){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Woc(G,B);return;default:G.publish("ctmp","message_type",{t:a,l:B.byteLength})}G.XJ||(X_("drm_gk_f",void 0,G.videoData.qB),G.XJ=!0,G.publish("newsession",G));if(S2(G.X)&&(B=wEX(B),!B))return;B=new oXc(B,++G.requestNumber,G.videoData.qB);MOY(B,function(V){KoB(G,V)},function(V,x,h){if(!G.TH()){var e=0; V.j.X>=3&&(e=1,x="drm.net.retryexhausted");WQ(G,{onlcsrqerr:x,info:h});G.error(x,e,h);G.shouldRetry(cX(e),V)&&lyB(G,V)}}); g.X(G,B);kA_(G,B)}else G.error("drm.unavailable",1,"km.empty")}; Woc=function(G,B){WQ(G,{sdpvrq:1});G.L=Date.now();if(G.X.flavor!=="widevine")G.error("drm.provision",1,"e.flavor;f."+G.X.flavor+";l."+B.byteLength);else{var a={cpn:G.videoData.clientPlaybackNonce};Object.assign(a,G.md.j);a=g.LJ("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",a);B={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, B)}),responseType:"arraybuffer"};g.fB(a,B,3,500).then(g2(function(V){V=V.xhr;if(!G.TH()){V=new Uint8Array(V.response);var x=String.fromCharCode.apply(null,V);try{var h=JSON.parse(x)}catch(e){}h&&h.signedResponse?(G.publish("ctmp","drminfo",{provisioning:1}),h=(Date.now()-G.L)/1E3,G.L=NaN,G.publish("ctmp","provs",{et:h.toFixed(3)}),G.C&&G.C.update(V)):(h=h&&h.error&&h.error.message,V="e.parse",h&&(V+=";m."+h),G.error("drm.provision",1,V))}}),g2(function(V){G.TH()||G.error("drm.provision",1,"e."+V.errorCode+ ";c."+(V.xhr&&V.xhr.status))}))}}; wd=function(G){var B;if(B=G.Y&&G.C!=null)G=G.C,B=!(!G.j||!G.j.keyStatuses);return B}; kA_=function(G,B){G.status="km";X_("drm_net_s",void 0,G.videoData.qB);var a=new g.MM(G.md.c9),V={context:g.l_(a.config_||g.Ki())};V.drmSystem=Nwb[G.X.flavor];V.videoId=G.videoData.videoId;V.cpn=G.videoData.clientPlaybackNonce;V.sessionId=G.sessionId;V.licenseRequest=g.md(B.message);V.drmParams=G.videoData.drmParams;isNaN(G.cryptoPeriodIndex)||(V.isKeyRotated=!0,V.cryptoPeriodIndex=G.cryptoPeriodIndex);var x,h,e=!!((x=G.videoData.X)==null?0:(h=x.video)==null?0:h.isHdr());V.drmVideoFeature=e?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(V.context&&V.context.client){if(x=G.md.j)V.context.client.deviceMake=x.cbrand,V.context.client.deviceModel=x.cmodel,V.context.client.browserName=x.cbr,V.context.client.browserVersion=x.cbrver,V.context.client.osName=x.cos,V.context.client.osVersion=x.cosver;V.context.user=V.context.user||{};V.context.request=V.context.request||{};G.videoData.XJ&&(V.context.user.credentialTransferTokens=[{token:G.videoData.XJ,scope:"VIDEO"}]);V.context.request.mdxEnvironment=G.videoData.mdxEnvironment|| V.context.request.mdxEnvironment;G.videoData.fh&&(V.context.user.kidsParent={oauthToken:G.videoData.fh});g.$D(G.X)&&(V.fairplayKeyId=g.md(ucy(G.fairplayKeyId)));g.Vm(G.md,g.uv(G.videoData)).then(function(w){Bwy(B,V,a,w);G.status="rs"})}else G.error("drm.net",2,"t.r;ic.0")}; KoB=function(G,B){if(!G.TH())if(WQ(G,{onlcsrsp:1}),G.status="rr",B.statusCode!==0)G.error("drm.auth",1,"t.f;c."+B.statusCode,B.errorMessage||void 0);else{X_("drm_kr_s",void 0,G.videoData.qB);if(B.heartbeatParams&&B.heartbeatParams.url&&G.videoData.S("outertube_streaming_data_always_use_staging_license_service")){var a=G.X.X.match(/(.*)youtube.com/g);a&&(B.heartbeatParams.url=a[0]+B.heartbeatParams.url)}B.heartbeatParams&&G.publish("newlicense",B.heartbeatParams);B.X&&(G.G=B.X,G.videoData.Km||G.publish("newlicense", new i9x),G.videoData.Km=!0,G.W=bL(G.G,function(V){return V.includes("HDR")})); B.j&&(G.md.S("html5_enable_vp9_fairplay")&&rX(G.X)?(a=g.md(ucy(G.fairplayKeyId),4),G.j[a]={type:B.j[a],status:"unknown"}):G.j=Il(B.j,function(V){return{type:V,status:"unknown"}})); ZE(G.X)&&(B.message=u8K(g.md(B.message)));G.C&&(WQ(G,{updtks:1}),G.status="ku",G.C.update(B.message).then(function(){X_("drm_kr_f",void 0,G.videoData.qB);wd(G)||(WQ(G,{ksApiUnsup:1}),G.publish("keystatuseschange",G))},function(V){V="msuf.req."+G.requestNumber+";msg."+g.I5(V.message,3); G.error("drm.keyerror",1,V)})); g.$D(G.X)&&G.publish("fairplay_next_need_key_info",G.baseUrl,B.nextFairplayKeyId);G.md.S("html5_enable_vp9_fairplay")&&rX(G.X)&&G.publish("qualitychange",dd9(G.G));B.sabrLicenseConstraint&&G.publish("sabrlicenseconstraint",B.sabrLicenseConstraint)}}; lyB=function(G,B){var a=B.j.getValue();a=new g.J8(function(){kA_(G,B)},a); g.X(G,a);a.start();g.Ez(B.j);WQ(G,{rtyrq:1})}; Cqc=function(G,B){for(var a=[],V=g.m(Object.keys(G.j)),x=V.next();!x.done;x=V.next())x=x.value,a.push(x+"_"+G.j[x].type+"_"+G.j[x].status);return a.join(B)}; zdB=function(G){var B={};B[G.status]=wd(G)?Cqc(G,"."):G.G.join(".");return B}; tXB=function(G,B){switch(G){case "highres":case "hd2880":G="UHD2";break;case "hd2160":case "hd1440":G="UHD1";break;case "hd1080":case "hd720":G="HD";break;case "large":case "medium":case "small":case "light":case "tiny":G="SD";break;default:return""}B&&(G+="HDR");return G}; Ou_=function(G,B){for(var a in G.j)if(G.j[a].status==="usable"&&G.j[a].type===B)return!0;return!1}; EMX=function(G,B){for(var a in G.j)if(G.j[a].type===B)return G.j[a].status}; WQ=function(G,B){var a=a===void 0?!1:a;b5(B);(a||G.md.Ef())&&G.publish("ctmp","drmlog",B)}; jjx=function(G){var B=G[0];G[0]=G[3];G[3]=B;B=G[1];G[1]=G[2];G[2]=B;B=G[4];G[4]=G[5];G[5]=B;B=G[6];G[6]=G[7];G[7]=B}; dd9=function(G){return g.YC(G,"UHD2")||g.YC(G,"UHD2HDR")?"highres":g.YC(G,"UHD1")||g.YC(G,"UHD1HDR")?"hd2160":g.YC(G,"HD")||g.YC(G,"HDHDR")?"hd1080":g.YC(G,"HD720")||g.YC(G,"HD720HDR")?"hd720":"large"}; wEX=function(G){for(var B="",a=0;a'.charCodeAt(V);G=G.C.createSession("video/mp4",B,a);return new KW(null,null,null,null,G)}; HuK=function(G,B){var a=G.L[B.sessionId];!a&&G.G&&(a=G.G,G.G=null,a.sessionId=B.sessionId,G.L[B.sessionId]=a);return a}; cTB=function(G,B){var a=G.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);a=String.fromCharCode.apply(null,a).match(/ek=([0-9a-f]+)/)[1];for(var V="",x=0;x=0&&G.push(V);G=parseFloat(G.join("."))}else G=NaN;G>19.2999?(G=a.CQ,a=a.Ig,a>=G&&(a=G*.75),B=(G-a)*.5,a=new hp(B,G,G-B-a,this)):a=null;break a;case "widevine":a=new ex(B,this,G);break a;default:a=null}if(this.B=a)g.X(this,this.B),this.B.subscribe("rotated_need_key_info_ready",this.Zz,this),this.B.subscribe("log_qoe",this.B0,this);qp(this.md.experiments);this.B0({cks:this.j.getInfo()})}; DLK=function(G){var B=G.G.eC();B?B.then(g2(function(){RjB(G)}),g2(function(a){if(!G.TH()){g.RA(a); var V="t.a";a instanceof DOMException&&(V+=";n."+a.name+";m."+a.message);G.publish("licenseerror","drm.unavailable",1,V,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(G.B0({mdkrdy:1}),G.Y=!0); G.zH&&(B=G.zH.eC())}; rTb=function(G,B,a){G.SJ=!0;a=new lU(B,a);G.md.S("html5_eme_loader_sync")&&(G.L.get(B)||G.L.set(B,a));ZuV(G,a)}; ZuV=function(G,B){if(!G.TH()){G.B0({onInitData:1});if(G.md.S("html5_eme_loader_sync")&&G.videoData.C&&G.videoData.C.j){var a=G.W.get(B.initData);B=G.L.get(B.initData);if(!a||!B)return;B=a;a=B.initData;G.L.remove(a);G.W.remove(a)}G.B0({initd:B.initData.length,ct:B.contentType});if(G.j.flavor==="widevine")if(G.Zx&&!G.videoData.isLivePlayback)NP(G);else{if(!(G.md.S("vp9_drm_live")&&G.videoData.isLivePlayback&&B.C3)){G.Zx=!0;a=B.cryptoPeriodIndex;var V=B.j;V2x(B);B.C3||(V&&B.j!==V?G.publish("ctmp","cpsmm", {emsg:V,pssh:B.j}):a&&B.cryptoPeriodIndex!==a&&G.publish("ctmp","cpimm",{emsg:a,pssh:B.cryptoPeriodIndex}));G.publish("widevine_set_need_key_info",B)}}else G.Zz(B)}}; RjB=function(G){if(!G.TH())if(G.md.S("html5_drm_set_server_cert")||rX(G.j)){var B=G.G.setServerCertificate();B?B.then(g2(function(a){G.md.Ef()&&G.publish("ctmp","ssc",{success:a})}),g2(function(a){G.publish("ctmp","ssce",{n:a.name, m:a.message})})).then(g2(function(){$Ly(G)})):$Ly(G)}else $Ly(G)}; $Ly=function(G){G.TH()||(G.Y=!0,G.B0({onmdkrdy:1}),NP(G))}; X6X=function(G){return G.j.flavor==="widevine"&&G.videoData.S("html5_drm_cpi_license_key")}; NP=function(G){if((G.SJ||G.md.S("html5_widevine_use_fake_pssh"))&&G.Y&&!G.GH){for(;G.C.length;){var B=G.C[0],a=X6X(G)?xpA(B):g.md(B.initData);if(rX(G.j)&&!B.X)G.C.shift();else{if(G.X.get(a))if(G.j.flavor!=="fairplay"||rX(G.j)){G.C.shift();continue}else G.X.delete(a);V2x(B);break}}G.C.length&&G.createSession(G.C[0])}}; qC_=function(G){var B;if(B=g.T9()){var a;B=!((a=G.G.X)==null||!a.getMetrics)}B&&(B=G.G.getMetrics())&&(B=g.yz(B),G.publish("ctmp","drm",{metrics:B}))}; uW_=function(){var G=J8b();return!(!G||G==="visible")}; L0g=function(G){var B=Qjz();B&&document.addEventListener(B,G,!1)}; T0B=function(G){var B=Qjz();B&&document.removeEventListener(B,G,!1)}; Qjz=function(){if(document.visibilityState)var G="visibilitychange";else{if(!document[dE+"VisibilityState"])return"";G=dE+"visibilitychange"}return G}; sj9=function(G){g.r.call(this);var B=this;this.jJ=G;this.O_=0;this.L=this.X=this.B=!1;this.G=0;this.Rn=this.jJ.U();this.videoData=this.jJ.getVideoData();this.C=g.kf(this.Rn.experiments,"html5_delayed_retry_count");this.j=new g.J8(function(){B.jJ.Jv()},g.kf(this.Rn.experiments,"html5_delayed_retry_delay_ms")); g.X(this,this.j)}; iuK=function(G,B,a){var V=G.videoData.X,x=G.videoData.G;V3(G.jJ.getVideoData())&&G.Rn.S("html5_gapless_fallback_on_qoe_restart")&&JQH(G.jJ,"pe");if((B==="progressive.net.retryexhausted"||B==="fmt.unplayable"||B==="fmt.decode")&&!G.jJ.g_.B&&V&&V.itag==="22")return G.jJ.g_.B=!0,G.I0("qoe.restart",{reason:"fmt.unplayable.22"}),G.jJ.LL(),!0;var h=!1;if(G.videoData.isExternallyHostedPodcast){if(h=G.videoData.X9)a.mimeType=h.type,G.FJ("3pp",{url:h.url});a.ns="3pp";G.jJ.Ev(B,1,"VIDEO_UNAVAILABLE",b5((new yH(B, a,1)).details));return!0}var e=G.O_+3E4<(0,g.yT)()||G.j.isActive();if(G.Rn.S("html5_empty_src")&&G.videoData.isAd()&&B==="fmt.unplayable"&&/Empty src/.test(""+a.msg))return a.origin="emptysrc",G.I0("auth",a),!0;e||dd(G.jJ.xT())||(a.nonfg="paused",e=!0,G.jJ.pauseVideo());(B==="fmt.decode"||B==="fmt.unplayable")&&(x==null?0:Y2(x)||i5(x))&&(LIy(G.Rn.B,x.PS),a.acfallexp=x.PS,h=e=!0);!e&&G.C>0&&(G.j.start(),e=!0,a.delayed="1",--G.C);x=G.jJ.CN;!e&&((V==null?0:AX(V))||(V==null?0:sB(V)))&&(LIy(G.Rn.B,V.PS), h=e=!0,a.cfallexp=V.PS);if(G.Rn.S("html5_ssap_ignore_decode_error_for_next_video")&&g.AC(G.videoData)&&B==="fmt.unplayable"&&a.cid&&a.ccid&&dd(G.jJ.xT())){if(a.cid!==a.ccid)return a.ignerr="1",G.I0("ssap.transitionfailure",a),!0;G.I0("ssap.transitionfailure",a);if(F0X(G.jJ,B))return!0}if(!e)return JTx(G,a);if(G.Rn.S("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.AC(G.videoData)&&B==="fmt.unplayable"&&a.cid&&a.ccid&&a.cid!==a.ccid&&dd(G.jJ.xT())&&(G.I0("ssap.transitionfailure",a),F0X(G.jJ, B)))return!0;e=!1;G.B?G.O_=(0,g.yT)():e=G.B=!0;var w=G.videoData;if(w.Dx){w=w.Dx.mY();var K=Date.now()/1E3+1800;w=w6048E5&&GoX(G,"signature");return!1}; GoX=function(G,B){try{window.location.reload(),G.I0("qoe.restart",{detail:"pr."+B})}catch(a){}}; agB=function(G,B){B=B===void 0?"fmt.noneavailable":B;var a=G.Rn.B;a.W=!1;a$(a);G.I0("qoe.restart",{e:B,detail:"hdr"});G.jJ.Jv(!0)}; VdV=function(G,B,a,V,x,h){this.videoData=G;this.j=B;this.reason=a;this.X=V;this.token=x;this.videoId=h}; xgz=function(G,B,a){this.md=G;this.aJ=B;this.jJ=a;this.V=this.L=this.j=this.G=this.W=this.X=0;this.B=!1;this.Y=g.kf(this.md.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map}; ecb=function(G,B,a){!G.md.S("html5_tv_ignore_capable_constraint")&&g.yI(G.md)&&(a=a.compose(hcK(G,B)));return a}; W6V=function(G){if(G.jJ.xT().isInline())return L$;var B;G.S("html5_exponential_memory_for_sticky")?B=Ob(G.md.L3,"sticky-lifetime")<.5?"auto":hq[r2()]:B=hq[r2()];return g.a1("auto",B,!1,"s")}; K6c=function(G,B){var a,V=wIH(G,(a=B.j)==null?void 0:a.videoInfos);a=G.jJ.getPlaybackRate();return a>1&&V?(G=r5x(G.md.B,B.j.videoInfos,a),new BU(0,G,!0,"o")):new BU(0,0,!1,"o")}; wIH=function(G,B){return B&&g.yI(G.md)?B.some(function(a){return a.video.fps>32}):!1}; lgK=function(G,B){var a=G.jJ.Lo();G.S("html5_use_video_quality_cap_for_ustreamer_constraint")&&a&&a.pU>0&&xh(B.videoData.eM)&&(G=a.pU,B.videoData.eM=new BU(0,G,!1,"u"));return B.videoData.eM}; hcK=function(G,B){if(g.yI(G.md)&&I1(G.md.B,gf.HEIGHT))var a=B.j.videoInfos[0].video.j;else{var V=!!B.j.j;var x;g.DB(G.md)&&(x=window.screen&&window.screen.width?new g.dU(window.screen.width,window.screen.height):null);x||(x=G.md.A6?G.md.A6.clone():G.aJ.bz());(Y4||G6||V)&&x.scale(g.A3());V=x;xX(B.videoData)||TC(B.videoData);B=B.j.videoInfos;if(B.length){x=g.kf(G.md.experiments,"html5_override_oversend_fraction")||.85;var h=B[0].video;h.projectionType!=="MESH"&&h.projectionType!=="EQUIRECTANGULAR"&& h.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Ho||(x=.45);G=g.kf(G.md.experiments,"html5_viewport_undersend_maximum");for(h=0;h0&&(a=Math.min(a,V));if(V=g.kf(G.md.experiments,"html5_max_vertical_resolution")){G=4320;for(x=0;x V&&(G=Math.min(G,h.video.j));if(G<4320){for(x=V=0;x32){x=!0;break a}}x=!1}x&&(a=Math.min(a,V));(V=g.kf(G.md.experiments,"html5_live_quality_cap"))&&B.videoData.isLivePlayback&&(a=Math.min(a,V));a=NOB(G,B,a);G=g.kf(G.md.experiments,"html5_byterate_soft_cap");return new BU(0,a===4320?0:a,!1,"d",G)}; CbV=function(G){var B,a,V,x;return g.v(function(h){switch(h.j){case 1:return G.j.j&&typeof((B=navigator.mediaCapabilities)==null?void 0:B.decodingInfo)==="function"?g.f(h,Promise.resolve(),2):h.return(Promise.resolve());case 2:a=g.m(G.j.videoInfos),V=a.next();case 3:if(V.done){h.kf(0);break}x=V.value;return g.f(h,jcg(x),4);case 4:V=a.next(),h.kf(3)}})}; tdb=function(G,B){if(!B.videoData.X||G.S("html5_disable_performance_downgrade"))return!1;Date.now()-G.W>6E4&&(G.X=0);G.X++;G.W=Date.now();if(G.X!==4)return!1;zcX(G,B.videoData.X);return!0}; IgH=function(G,B,a,V){if(!B||!a||!B.videoData.X)return!1;var x=g.kf(G.md.experiments,"html5_df_downgrade_thresh"),h=G.S("html5_log_media_perf_info");if(!((0,g.yT)()-G.G<5E3?0:h||x>0))return!1;var e=((0,g.yT)()-G.G)/1E3;G.G=(0,g.yT)();a=a.getVideoPlaybackQuality();if(!a)return!1;var w=a.droppedVideoFrames-G.L,K=a.totalVideoFrames-G.V;G.L=a.droppedVideoFrames;G.V=a.totalVideoFrames;var l=a.displayCompositedVideoFrames===0?0:a.displayCompositedVideoFrames||-1;h&&G.md.Ef()&&G.jJ.FJ("ddf",{dr:a.droppedVideoFrames, de:a.totalVideoFrames,comp:l});if(V)return G.j=0,!1;if((K-w)/e>G.Y||!x||g.yI(G.md))return!1;G.j=(K>60?w/K:0)>x?G.j+1:0;if(G.j!==3)return!1;zcX(G,B.videoData.X);G.jJ.FJ("dfd",Object.assign({dr:a.droppedVideoFrames,de:a.totalVideoFrames},mgc()));return!0}; zcX=function(G,B){var a=B.PS,V=B.video.fps,x=B.video.j-1,h=G.C;B=""+a+(V>49?"p60":V>32?"p48":"");a=nw(a,V,h);x>0&&(a=Math.min(a,x));if(!CW.has(B)&&qz().includes(B)){var e=a;a=XX();+a[B]>0&&(e=Math.min(+a[B],e));a[B]!==e&&(a[B]=e,g.D0("yt-player-performance-cap",a,2592E3))}else if(CW.has(B)||h==null){a:{e=e===void 0?!0:e;V=qz().slice();if(e){if(V.includes(B))break a;V.push(B)}else{if(!V.includes(B))break a;V.splice(V.indexOf(B),1)}g.D0("yt-player-performance-cap-active-set",V,2592E3)}cJ.set(B,a)}else CW.add(B), h==null||h.set(B,a);G.jJ.xv()}; zh=function(G,B){if(!B.j.j)return G.B?new BU(0,360,!1,"b"):L$;for(var a=!1,V=!1,x=g.m(B.j.videoInfos),h=x.next();!h.done;h=x.next())AX(h.value)?a=!0:V=!0;a=a&&V;V=0;x=g.kf(G.md.experiments,"html5_performance_cap_floor");x=G.md.X?240:x;B=g.m(B.j.videoInfos);for(h=B.next();!h.done;h=B.next()){var e=h.value;if(!a||!AX(e))if(h=nw(e.PS,e.video.fps,G.C),e=e.video.j,Math.max(h,x)>=e){V=e;break}}return new BU(0,V,!1,"b")}; gJH=function(G,B){var a=G.jJ.xT();return a.isInline()&&!B.Sv?new BU(0,480,!1,"v"):a.isBackground()&&cD()/1E3>60&&!g.yI(G.md)?new BU(0,360,!1,"v"):L$}; pIB=function(G,B,a){if(G.md.experiments.Or("html5_disable_client_autonav_cap_for_onesie")&&B.fetchType==="onesie"||g.yI(G.md)&&(r2(-1)>=1080||B.osid))return L$;var V=g.kf(G.md.experiments,"html5_autonav_quality_cap"),x=g.kf(G.md.experiments,"html5_autonav_cap_idle_secs");return V&&B.isAutonav&&cD()/1E3>x?(a&&(V=NOB(G,a,V)),new BU(0,V,!1,"e")):L$}; NOB=function(G,B,a){if(G.S("html5_optimality_defaults_chooses_next_higher")&&a)for(G=B.j.videoInfos,B=1;B=0||(G.provider.jJ.getVisibilityState()===3?G.B=!0:(G.j=g.mR(G.provider),G.delay.start()))}; EJX=function(G){if(!(G.X<0)){var B=g.mR(G.provider),a=B-G.G;G.G=B;G.playerState.state===8?G.playTimeSecs+=a:G.playerState.isBuffering()&&!g.F(G.playerState,16)&&(G.rebufferTimeSecs+=a)}}; jDB=function(G){var B;switch((B=G.md.playerCanaryStage)==null?void 0:B.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"}}; bS9=function(G){return window.PressureObserver&&new window.PressureObserver(G)}; yGy=function(G){G=G===void 0?bS9:G;g.r.call(this);var B=this;try{this.C=G(function(V){B.X=V.at(-1)}); var a;this.G=(a=this.C)==null?void 0:a.observe("cpu",{sampleInterval:2E3}).catch(function(V){V instanceof DOMException&&(B.j=V)})}catch(V){V instanceof DOMException&&(this.j=V)}}; cGX=function(G){var B={},a=window.h5vcc;B.hwConcurrency=navigator.hardwareConcurrency;G.j&&(B.cpe=G.j.message);G.X&&(B.cpt=G.X.time,B.cps=G.X.state);if(a==null?0:a.cVal)B.cb2s=a.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),B.cb5s=a.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),B.cb30s=a.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return B}; nJg=function(G){var B;g.v(function(a){switch(a.j){case 1:return g.UA(a,2),g.f(a,G.G,4);case 4:g.EA(a,3);break;case 2:g.jB(a);case 3:(B=G.C)==null||B.disconnect(),g.pV(a)}})}; HSy=function(G,B){B?fgz.test(G):(G=g.x4(G),Object.keys(G).includes("cpn"))}; Dgy=function(G,B,a,V,x,h,e){var w={format:"RAW"},K={};if(Wh(G)&&w1()){if(e){var l;((l=vJy.uaChPolyfill)==null?void 0:l.state.type)!==2?e=null:(e=vJy.uaChPolyfill.state.data.values,e={"Synth-Sec-CH-UA-Arch":e.architecture,"Synth-Sec-CH-UA-Model":e.model,"Synth-Sec-CH-UA-Platform":e.platform,"Synth-Sec-CH-UA-Platform-Version":e.platformVersion,"Synth-Sec-CH-UA-Full-Version":e.uaFullVersion});K=Object.assign(K,e);w.withCredentials=!0}(e=g.A0("EOM_VISITOR_DATA"))?K["X-Goog-EOM-Visitor-Id"]=e:V?K["X-Goog-Visitor-Id"]= V:g.A0("VISITOR_DATA")&&(K["X-Goog-Visitor-Id"]=g.A0("VISITOR_DATA"));a&&(K["X-Goog-PageId"]=a);(V=B.HS)&&!i0(B)&&(K["X-Goog-AuthUser"]=V);x&&(K.Authorization="Bearer "+x);B.S("enable_datasync_id_header_in_web_vss_pings")&&B.H9&&B.datasyncId&&(K["X-YouTube-DataSync-Id"]=B.datasyncId);e||K["X-Goog-Visitor-Id"]||x||a||V?w.withCredentials=!0:B.S("html5_send_cpn_with_options")&&fgz.test(G)&&(w.withCredentials=!0)}Object.keys(K).length>0&&(w.headers=K);h&&(w.onFinish=h);return Object.keys(w).length>1? w:null}; Snb=function(G,B,a,V,x,h,e,w){w1()&&a.token&&(G=hM(G,{ctt:a.token,cttype:a.Ad,mdx_environment:a.mdxEnvironment}));V.S("net_pings_low_priority")&&(B||(B={}),B.priority="low");h||w&&V.S("nwl_skip_retry")?(B==null?B={}:HSy(G,V.S("html5_assert_cpn_with_regex")),e?Pn().sendAndWrite(G,B):Pn().sendThenWrite(G,B,w)):B?(HSy(G,V.S("html5_assert_cpn_with_regex")),V.S("net_pings_use_fetch")?m1B(G,B):g.bm(G,B)):g.qM(G,x)}; Rcg=function(G){for(var B=[],a=0;a0&&a>0&&!G.X&&G.C<1E7)try{G.G=G.B({sampleInterval:B,maxBufferSize:a});var V;(V=G.G)==null||V.addEventListener("samplebufferfull",function(){return g.v(function(x){if(x.j==1)return g.f(x,G.stop(),2);$gy(G);g.pV(x)})})}catch(x){G.X=rGB(x.message)}}; gd=function(G,B){var a,V;return!!((a=window.h5vcc)==null?0:(V=a.settings)==null?0:V.set(G,B))}; qng=function(){var G,B,a,V=(G=window.h5vcc)==null?void 0:(B=G.settings)==null?void 0:(a=B.getPersistentSettingAsString)==null?void 0:a.call(B,"cpu_usage_tracker_intervals");if(V!=null){var x;G=(x=JSON.parse(V))!=null?x:[];x=G.filter(function(l){return l.type==="total"}).map(function(l){return l.seconds}); B=g.m(XIz);for(a=B.next();!a.done;a=B.next())a=a.value,x.indexOf(a)===-1&&G.push({type:"total",seconds:a});var h,e;(h=window.h5vcc)==null||(e=h.settings)==null||e.set("cpu_usage_tracker_intervals_enabled",1);var w,K;(w=window.h5vcc)==null||(K=w.settings)==null||K.set("cpu_usage_tracker_intervals",JSON.stringify(G))}}; uSV=function(){var G=window.H5vccPlatformService,B="";if(G&&G.has("dev.cobalt.coat.clientloginfo")&&(G=G.open("dev.cobalt.coat.clientloginfo",function(){}))){var a=G.send(new ArrayBuffer(0)); a&&(B=String.fromCharCode.apply(String,g.U(new Uint8Array(a))));G.close()}return B}; g.OL=function(G,B){g.r.call(this);var a=this;this.provider=G;this.logger=new g.xY("qoe");this.j={};this.sequenceNumber=1;this.L=NaN;this.yg="N";this.Y=this.oJ=this.vc=this.Md=this.B=0;this.m3=this.Qb=this.W=this.qB="";this.fd=this.SJ=NaN;this.Cd=0;this.w7=-1;this.S_=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Yf=this.isEmbargoed=this.Zx=this.isOffline=this.isBuffering=!1;this.OZ=[];this.XJ=null;this.Dx=this.C=this.eJ=this.V=!1;this.X=-1;this.Ur=!1;this.Qv=new g.J8(this.Efr,750,this);this.zH= this.adCpn=this.HS=this.contentCpn="";this.adFormat=void 0;this.dC=0;this.Vb=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.R4=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.fh=!1;this.YD=NaN;this.LN=0;this.QW=!1;this.GH=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.wO=!1;this.vC={fW:function(x){a.fW(x)}, jCJ:function(){return a.G}, wQ:function(){return a.contentCpn}, Kub:function(){return a.HS}, reportStats:function(){a.reportStats()}, J7B:function(){return a.j.cat}, Eb:function(x){return a.j[x]}, tzN:function(){return a.GH}}; var V=g.kf(this.provider.md.experiments,"html5_qoe_proto_mock_length");V&&!pW.length&&(pW=Rcg(V));g.X(this,this.Qv);try{navigator.getBattery().then(function(x){a.XJ=x})}catch(x){}g.UL(this,0,"vps",["N"]); G.md.Ef()&&(this.LN=(0,g.yT)(),this.YD=g.tM(function(){var x=(0,g.yT)(),h=x-a.LN;h>500&&a.FJ("vmlock",{diff:h.toFixed()});a.LN=x},250)); G.jJ.j6()&&B&&(this.GH=B-Math.round(g.mR(G)*1E3));this.provider.videoData.kT&&(this.remoteControlMode=QD9[this.provider.videoData.kT]||0);this.provider.videoData.j9&&(B=AmV(this.provider.videoData.j9),B==null?0:B.length)&&(this.remoteConnectedDevices=B);if(G.md.Ef()||G.S("html5_log_cpu_info"))this.MB=new yGy,g.X(this,this.MB);B=g.kf(G.md.experiments,"html5_js_self_profiler_sample_interval_ms");G=g.kf(G.md.experiments,"html5_js_self_profiler_max_samples");B>0&&G>0&&(this.Er=new Ia(B,G),g.X(this,this.Er))}; g.UL=function(G,B,a,V){var x=G.j[a];x||(x=[],G.j[a]=x);x.push(B.toFixed(3)+":"+V.join(":"))}; L6X=function(G,B){var a=G.adCpn||G.provider.videoData.clientPlaybackNonce,V=G.provider.getCurrentTime(a);g.UL(G,B,"cmt",[V.toFixed(3)]);V=G.provider.SS(a);if(G.G&&V*1E3>G.G.J9+100&&G.G){var x=G.G;a=x.isAd;V=V*1E3-x.J9;G.Q6=B*1E3-x.V61-V-x.h9f;x=(0,g.yT)()-V;B=G.Q6;V=G.provider.videoData;var h=V.isAd();if(a||h){h=(a?"ad":"video")+"_to_"+(h?"ad":"video");var e={};V.L&&(e.cttAuthInfo={token:V.L,videoId:V.videoId});e.startTime=x-B;u1(h,e);g.qO({targetVideoId:V.videoId,targetCpn:V.clientPlaybackNonce}, h);X_("pbs",x,h)}else x=G.provider.jJ.PG(),x.L!==V.clientPlaybackNonce?(x.B=V.clientPlaybackNonce,x.X=B):V.IM()||g.Zb(new g.FI("CSI timing logged before gllat",{cpn:V.clientPlaybackNonce}));G.FJ("gllat",{l:G.Q6.toFixed(),prev_ad:+a});delete G.G}}; EL=function(G,B){B=B===void 0?NaN:B;B=B>=0?B:g.mR(G.provider);var a=G.provider.jJ.yx(),V=a.T6-(G.SJ||0);V>0&&g.UL(G,B,"bwm",[V,(a.Ml-(G.fd||0)).toFixed(3)]);isNaN(G.SJ)&&a.T6&&G.isOffline&&G.fW(!1);G.SJ=a.T6;G.fd=a.Ml;isNaN(a.bandwidthEstimate)||g.UL(G,B,"bwe",[a.bandwidthEstimate.toFixed(0)]);G.provider.md.Ef()&&Object.keys(a.j).length!==0&&G.FJ("bwinfo",a.j);if(G.provider.md.Ef()||G.provider.md.S("html5_log_meminfo"))V=VO_(),Object.values(V).some(function(h){return h!==void 0})&&G.FJ("meminfo", V); if(G.provider.md.Ef()||G.provider.md.S("html5_log_cpu_info")){var x;(V=(x=G.MB)==null?void 0:cGX(x))&&Object.values(V).some(function(h){return h!=null})&&G.FJ("cpuinfo",V)}G.Er&&G.FJ("jsprof",G.Er.flush()); G.XJ&&g.UL(G,B,"bat",[G.XJ.level,G.XJ.charging?"1":"0"]);x=G.provider.jJ.getVisibilityState();G.w7!==x&&(g.UL(G,B,"vis",[x]),G.w7=x);L6X(G,B);(x=TOA(G.provider))&&x!==G.Cd&&(g.UL(G,B,"conn",[x]),G.Cd=x);sDg(G,B,a)}; sDg=function(G,B,a){if(!isNaN(a.UI)){var V=a.UI;a.X96E3&&(new g.J8(G.reportStats,0,G)).start()}; AGc=function(G){G.provider.videoData.OZ&&jx(G,"prefetch");G.provider.videoData.Cd&&G.FJ("reload",{r:G.provider.videoData.reloadReason,ct:G.provider.videoData.Cd});G.provider.videoData.Vb&&jx(G,"monitor");G.provider.videoData.isLivePlayback&&jx(G,"live");iB&&jx(G,"streaming");G.provider.videoData.kT&&G.FJ("ctrl",{mode:G.provider.videoData.kT},!0);if(G.provider.videoData.j9){var B=G.provider.videoData.j9.replace(/,/g,"_");G.FJ("ytp",{type:B},!0)}G.provider.videoData.YV&&(B=G.provider.videoData.YV.replace(/,/g, "."),G.FJ("ytrexp",{ids:B},!0));var a=G.provider.videoData;B=G.provider.md.S("enable_white_noise")||G.provider.md.S("enable_webgl_noop");a=g.tQ(a)||g.f9(a)||g.HF(a)||g.vF(a);(B||a)&&(B=(0,g.bS)())&&(G.j.gpu=[B]);TC(G.provider.videoData)&&g.UL(G,g.mR(G.provider),"dt",["1"]);G.provider.md.Ef()&&(B=(0,g.yT)()-G.provider.md.MD,G.FJ("playerage",{secs:Math.pow(1.6,Math.round(Math.log(B/1E3)/Math.log(1.6))).toFixed()}));G.C=!0;G.L=g.tM(function(){G.reportStats()},1E4)}; iSg=function(G,B,a){var V=g.mR(G.provider);YnX(G,V,B,0,a);EL(G,V);JGx(G)}; YnX=function(G,B,a,V,x){var h=G.provider.md.j.cbrver;G.provider.md.j.cbr==="Chrome"&&/^96[.]/.test(h)&&a==="net.badstatus"&&/rc\.500/.test(x)&&PbB(G,3);G.provider.md.S("html5_use_ump")&&/b248180278/.test(x)&&PbB(G,4);h=G.provider.getCurrentTime(G.adCpn||G.provider.videoData.clientPlaybackNonce);V=V===1?"fatal":"";a=[a,V,h.toFixed(3)];V&&(x+=";a6s."+KH());x&&a.push(oJB(x));g.UL(G,B,"error",a);G.C=!0}; Mdb=function(G){G.X>=0||(G.provider.md.wc||G.provider.jJ.getVisibilityState()!==3?G.X=g.mR(G.provider):G.Ur=!0)}; GhY=function(G,B,a,V){if(a!==G.yg){B=10&&G.playTimeSecs<=180&&(G.j.qoealert=["1"],G.Yf=!0)),a!=="B"||G.yg!=="PL"&&G.yg!=="PB"||(G.isBuffering=!0),G.B=B);G.yg==="PL"&&(a==="B"||a==="S")||G.provider.md.Ef()?EL(G,B):(G.fh||a!=="PL"||(G.fh=!0,sDg(G,B,G.provider.jJ.yx())),L6X(G,B));a==="PL"&&g.iC(G.Qv);var x=[a];a==="S"&&V&&x.push("ss."+V);g.UL(G,B,"vps",x);G.yg=a; G.Md=B;G.B=B;G.C=!0}}; jx=function(G,B){var a=G.j.cat||[];a.push(B);G.j.cat=a}; yn=function(G,B,a,V,x,h){var e=g.mR(G.provider);a!==1&&a!==3&&a!==5||g.UL(G,e,"vps",[G.yg]);var w=G.j.xvt||[];w.push("t."+e.toFixed(3)+";m."+h.toFixed(3)+";g."+B+";tt."+a+";np.0;c."+V+";d."+x);G.j.xvt=w}; PbB=function(G,B){if(!G.Dx){var a=G.j.fcnz;a||(a=[],G.j.fcnz=a);a.push(String(B));G.Dx=!0}}; oJB=function(G){/[^a-zA-Z0-9;.!_-]/.test(G)&&(G=G.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return G}; BdV=function(G){this.provider=G;this.W=!1;this.j=0;this.G=-1;this.N7=NaN;this.C=0;this.segments=[];this.L=this.B=0;this.previouslyEnded=!1;this.Y=this.provider.jJ.getVolume();this.V=this.provider.jJ.isMuted()?1:0;this.X=cQ(this.provider)}; nW=function(G){G.X.startTime=G.C;G.X.endTime=G.j;var B=!1;G.segments.length&&g.s3(G.segments).isEmpty()?(G.segments[G.segments.length-1].previouslyEnded&&(G.X.previouslyEnded=!0),G.segments[G.segments.length-1]=G.X,B=!0):G.segments.length&&G.X.isEmpty()||(G.segments.push(G.X),B=!0);B?G.X.endTime===0&&(G.previouslyEnded=!1):G.X.previouslyEnded&&(G.previouslyEnded=!0);G.B+=G.j-G.C;G.X=cQ(G.provider);G.X.previouslyEnded=G.previouslyEnded;G.previouslyEnded=!1;G.C=G.j}; VxK=function(G){anY(G);G.L=g.tM(function(){G.update()},100); G.N7=g.mR(G.provider);G.X=cQ(G.provider)}; anY=function(G){g.Ih(G.L);G.L=NaN}; xPB=function(G,B,a){a-=G.N7;return B===G.j&&a>.5}; hp9=function(G,B,a,V){this.md=B;this.YD=a;this.segments=[];this.experimentIds=[];this.Er=this.QW=this.isFinal=this.delayThresholdMet=this.Yf=this.S_=this.autoplay=this.autonav=!1;this.m3="yt";this.L=[];this.W=this.Y=null;this.sendVisitorIdHeader=this.Ur=!1;this.V=this.pageId="";this.B=a==="watchtime";this.C=a==="playback";this.HS=a==="atr";this.wc=a==="engage";this.sendVisitorIdHeader=!1;this.uri=this.HS?"/api/stats/"+a:"//"+B.B6+"/api/stats/"+a;V&&(this.QW=V.fs,V.rtn&&(this.W=V.rtn),this.B?(this.playerState= V.state,V.rti>0&&(this.Y=V.rti)):(this.xF=V.mos,this.n3=V.volume,V.at&&(this.adType=V.at)),V.autonav&&(this.autonav=V.autonav),V.inview!=null&&(this.fd=V.inview),V.size&&(this.Cd=V.size),V.playerwidth&&(this.playerWidth=V.playerwidth),V.playerheight&&(this.playerHeight=V.playerheight));this.R4=g.fo(B.j);this.V=PJ(B.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.V==="all"||this.V==="once")this.fh=g.fo(B.YD);this.L3=B.MB;this.experimentIds=DNH(B.experiments);this.qB=B.fh;this.m3=B.zH;this.region= B.region;this.userAge=B.userAge;this.Vb=B.iz;this.Qv=cD();this.sendVisitorIdHeader=B.sendVisitorIdHeader;this.GH=B.S("vss_pings_using_networkless")||B.S("kevlar_woffle");this.MD=B.S("vss_final_ping_send_and_write");this.Zx=B.S("vss_use_send_and_write");this.pageId=B.pageId;this.IG=B.S("vss_playback_use_send_and_write");B.livingRoomAppMode&&(this.livingRoomAppMode=B.livingRoomAppMode);this.Fg=B.G&&B.S("embeds_append_synth_ch_headers");g.co(B)&&(this.Qb=B.GH);g.KU(g.rG(B))&&this.L.push(1);this.accessToken= g.uv(G);G.xz[this.YD]?this.G=G.xz[this.YD]:G.xz.playback&&(this.G=G.xz.playback);this.adFormat=G.adFormat;this.adQueryId=G.adQueryId;this.autoplay=qJ(G);this.C&&(this.S_=(G.S("html5_enable_log_server_autoplay")||G.S("enable_cleanup_masthead_autoplay_hack_fix"))&&G.hN&&Zw(G)==="adunit"?!0:!1);this.autonav=G.isAutonav||this.autonav;this.contentVideoId=$X(G);this.clientPlaybackNonce=G.clientPlaybackNonce;this.Yf=G.yd;G.L&&(this.zH=G.L,this.Dx=G.iF);G.mdxEnvironment&&(this.mdxEnvironment=G.mdxEnvironment); this.j=G.Er;this.Md=G.Md;G.X&&(this.OZ=G.X.itag,G.G&&G.G.itag!==this.OZ&&(this.eJ=G.G.itag));G.j&&lH(G.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=Zw(G);this.Er=G.L3?!1:G.wc;this.dC=G.sM;if(B=UN(G))this.Vg=B;this.PD=G.CZ;this.partnerId=G.partnerId;this.eventId=G.eventId;this.playlistId=G.kx||G.playlistId;this.i_=G.i_;this.kT=G.kT;this.j9=G.j9;this.wW=G.wW;this.subscribed=G.subscribed;this.videoId=G.videoId;this.videoMetadata=G.videoMetadata;this.visitorData=G.visitorData;this.osid=G.osid; this.WK=G.WK;this.referrer=G.referrer;this.rW=G.SG||G.rW;this.MB=G.XM;this.Tk=G.Tk;this.userGenderAge=G.userGenderAge;this.i4=G.i4;this.embedsRct=G.embedsRct;this.embedsRctn=G.embedsRctn;g.co(this.md)&&G.mutedAutoplay&&(G.mutedAutoplayDurationMode===2&&G.limitedPlaybackDurationInSeconds===0&&G.endSeconds===0?this.L.push(7):this.L.push(2));G.isEmbedsShortsMode(new g.dU(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.L.push(3);g.VM(G)&&this.L.push(4);this.SJ=G.kQ;G.compositeLiveIngestionOffsetToken&& (this.compositeLiveIngestionOffsetToken=G.compositeLiveIngestionOffsetToken)}; epz=function(G,B){var a=G.sendVisitorIdHeader?G.visitorData:void 0;return g.Vm(G.md,G.accessToken).then(function(V){return Dgy(G.uri,G.md,G.pageId,a,V,B,G.Fg)})}; KRy=function(G,B){return function(){G.md.S("html5_simplify_pings")?(G.j=G.LN,G.w7=B(),G.Qv=0,G.send()):epz(G).then(function(a){var V=WRx(G);V.cmt=V.len;V.lact="0";var x=B().toFixed(3);V.rt=Number(x).toString();V=g.LJ(G.uri,V);G.md.S("vss_through_gel_double")&&wQ_(V);G.GH?(a==null&&(a={}),G.Zx?Pn().sendAndWrite(V,a):Pn().sendThenWrite(V,a)):a?g.bm(V,a):g.qM(V)})}}; WRx=function(G){var B={ns:G.m3,el:G.eventLabel,cpn:G.clientPlaybackNonce,ver:2,cmt:G.X(G.j),fmt:G.OZ,fs:G.QW?"1":"0",rt:G.X(G.w7),adformat:G.adFormat,content_v:G.contentVideoId,euri:G.L3,lact:G.Qv,live:G.Vg,cl:(733552769).toString(),mos:G.xF,state:G.playerState,volume:G.n3};G.subscribed&&(B.subscribed="1");Object.assign(B,G.R4);G.V==="all"?Object.assign(B,G.fh):G.V==="once"&&G.C&&Object.assign(B,G.fh);G.autoplay&&(B.autoplay="1");G.S_&&(B.sautoplay="1");G.Yf&&(B.dni="1");!G.B&&G.Qb&&(B.epm=lnV[G.Qb]); G.isFinal&&(B["final"]="1");G.Er&&(B.splay="1");G.Md&&(B.delay=G.Md);G.qB&&(B.hl=G.qB);G.region&&(B.cr=G.region);G.userGenderAge&&(B.uga=G.userGenderAge);G.userAge!==void 0&&G.Vb&&(B.uga=G.Vb+G.userAge);G.LN!==void 0&&(B.len=G.X(G.LN));!G.B&&G.experimentIds.length>0&&(B.fexp=G.experimentIds.toString());G.W!==null&&(B.rtn=G.X(G.W));G.rW&&(B.feature=G.rW);G.kT&&(B.ctrl=G.kT);G.j9&&(B.ytr=G.j9);G.eJ&&(B.afmt=G.eJ);G.offlineDownloadUserChoice&&(B.ODUC=G.offlineDownloadUserChoice);G.wO&&(B.lio=G.X(G.wO)); G.B?(B.idpj=G.dC,B.ldpj=G.PD,G.delayThresholdMet&&(B.dtm="1"),G.Y!=null&&(B.rti=G.X(G.Y)),G.i4&&(B.ald=G.i4),G.compositeLiveIngestionOffsetToken&&(B.clio=G.compositeLiveIngestionOffsetToken)):G.adType!==void 0&&(B.at=G.adType);G.Cd&&(G.C||G.B)&&(B.size=G.Cd);G.C&&G.L.length&&(B.pbstyle=G.L.join(","));G.fd!=null&&(G.C||G.B)&&(B.inview=G.X(G.fd));G.B&&(B.volume=fW(G,g.br(G.segments,function(V){return V.volume})),B.st=fW(G,g.br(G.segments,function(V){return V.startTime})),B.et=fW(G,g.br(G.segments,function(V){return V.endTime})), bL(G.segments,function(V){return V.playbackRate!==1})&&(B.rate=fW(G,g.br(G.segments,function(V){return V.playbackRate}))),bL(G.segments,function(V){return V.j!=="-"})&&(B.als=g.br(G.segments,function(V){return V.j}).join(",")),bL(G.segments,function(V){return V.previouslyEnded})&&(B.pe=g.br(G.segments,function(V){return""+ +V.previouslyEnded}).join(","))); B.muted=fW(G,g.br(G.segments,function(V){return V.muted?1:0})); bL(G.segments,function(V){return V.visibilityState!==0})&&(B.vis=fW(G,g.br(G.segments,function(V){return V.visibilityState}))); bL(G.segments,function(V){return V.connectionType!==0})&&(B.conn=fW(G,g.br(G.segments,function(V){return V.connectionType}))); bL(G.segments,function(V){return V.X!==0})&&(B.blo=fW(G,g.br(G.segments,function(V){return V.X}))); bL(G.segments,function(V){return!!V.C})&&(B.blo=g.br(G.segments,function(V){return V.C}).join(",")); bL(G.segments,function(V){return!!V.compositeLiveStatusToken})&&(B.cbs=g.br(G.segments,function(V){return V.compositeLiveStatusToken}).join(",")); bL(G.segments,function(V){return V.G!=="-"})&&(B.cc=g.br(G.segments,function(V){return V.G}).join(",")); bL(G.segments,function(V){return V.clipId!=="-"})&&(B.clipid=g.br(G.segments,function(V){return V.clipId}).join(",")); if(bL(G.segments,function(V){return!!V.audioId})){var a="au"; G.C&&(a="au_d");B[a]=g.br(G.segments,function(V){return V.audioId}).join(",")}w1()&&G.zH&&(B.ctt=G.zH,B.cttype=G.Dx,B.mdx_environment=G.mdxEnvironment); G.wc&&(B.etype=G.XJ!==void 0?G.XJ:0);G.MB&&(B.uoo=G.MB);G.livingRoomAppMode&&G.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(B.clram=kh9[G.livingRoomAppMode]||G.livingRoomAppMode);G.G?Nd9(G,B):(B.docid=G.videoId,B.referrer=G.referrer,B.ei=G.eventId,B.of=G.WK,B.osid=G.osid,B.vm=G.videoMetadata,G.adQueryId&&(B.aqi=G.adQueryId),G.autonav&&(B.autonav="1"),G.playlistId&&(B.list=G.playlistId),G.wW&&(B.ssrt="1"),G.Tk&&(B.upt=G.Tk));G.C&&(G.embedsRct&&(B.rct=G.embedsRct),G.embedsRctn&&(B.rctn= G.embedsRctn),G.compositeLiveIngestionOffsetToken&&(B.clio=G.compositeLiveIngestionOffsetToken));G.SJ&&(B.host_cpn=G.SJ);return B}; Nd9=function(G,B){if(B&&G.G){var a=new Set(["q","feature","mos"]),V=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),x=new Set(["aqi","autonav","list","ssrt","upt"]);G.G.ns==="3pp"&&(B.ns="3pp");for(var h=g.m(Object.keys(G.G)),e=h.next();!e.done;e=h.next())e=e.value,V.has(e)||a.has(e)||x.has(e)&&!G.G[e]||(B[e]=G.G[e])}}; fW=function(G,B){return g.br(B,G.X).join(",")}; wQ_=function(G){G.indexOf("watchtime")!==-1&&g.wP("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:G}})}; dPx=function(G,B){G.attestationResponse&&epz(G).then(function(a){a=a||{};a.method="POST";a.postParams={atr:G.attestationResponse};G.GH?G.Zx?Pn().sendAndWrite(B,a):Pn().sendThenWrite(B,a):g.bm(B,a)})}; HQ=function(G){g.r.call(this);this.provider=G;this.L="paused";this.B=NaN;this.W=[10,10,10,40];this.Y=this.V=0;this.XJ=this.GH=this.HS=this.zH=this.C=!1;this.X=this.G=NaN;this.j=new BdV(G)}; mPB=function(G){if(!G.C){G.provider.videoData.Bw===16623&&g.Zb(Error("Playback for EmbedPage"));var B=vQ(G,"playback");a:{if(G.provider.md.S("web_player_use_server_vss_schedule")){var a,V=(a=G.provider.videoData.getPlayerResponse())==null?void 0:a.playbackTracking,x=V==null?void 0:V.videostatsScheduledFlushWalltimeSeconds;V=V==null?void 0:V.videostatsDefaultFlushIntervalSeconds;if(x&&x.length>0&&V){a=[];var h=G.provider.videoData.sM,e=G.provider.videoData.CZ,w=-h;x=g.m(x);for(var K=x.next();!K.done;K= x.next())K=K.value,a.push(K-w),w=K;a.push(V+e-h);a.push(V);G.W=a;break a}}G.W=[10+G.provider.videoData.sM,10,10,40+G.provider.videoData.CZ-G.provider.videoData.sM,40]}VxK(G.j);B.W=Dn(G);G.X>0&&(B.j-=G.X);B.send();G.provider.videoData.HF&&(B=G.provider.md,V=G.provider.videoData,a={html5:"1",video_id:V.videoId,cpn:V.clientPlaybackNonce,ei:V.eventId,ptk:V.HF,oid:V.nj,ptchn:V.V7,pltype:V.gs,content_v:$X(V)},V.u4&&Object.assign(a,{m:V.u4}),B=g.LJ(B.TV+"ptracking",a),CSb(G,B));G.provider.videoData.Md|| (zpg(G),txb(G),G.Zh());G.C=!0;G=G.j;G.j=G.provider.jJ.SS();G.N7=g.mR(G.provider);!(G.C===0&&G.j<5)&&G.j-G.C>2&&(G.C=G.j);G.W=!0}}; Dn=function(G,B){B=B===void 0?NaN:B;var a=g.mR(G.provider);B=isNaN(B)?a:B;B=Math.ceil(B);var V=G.W[G.V];G.V+11E3;!(h.length>1)&&h[0].isEmpty()||w||(e.W=Dn(G,x));e.send();G.Y++}},(x-a)*1E3); return G.G=x}; Sx=function(G){g.me(G.B);G.B=NaN}; Iny=function(G){G.j.update();G=G.j;G.segments.length&&G.j===G.C||nW(G);var B=G.segments;G.segments=[];return B}; vQ=function(G,B){var a=pQb(G.provider);Object.assign(a,{state:G.L});B=new hp9(G.provider.videoData,G.provider.md,B,a);B.j=G.provider.jJ.SS();a=G.provider.videoData.clientPlaybackNonce;B.j=G.provider.jJ.sb(a);G.provider.videoData.isLivePlayback||(B.LN=G.provider.jJ.getDuration(a));G.provider.videoData.j&&(a=G.provider.videoData.j.lJ(B.j))&&(B.wO=a-B.j);B.w7=g.mR(G.provider);B.segments=[cQ(G.provider)];return B}; gQA=function(G,B){var a=vQ(G,"watchtime");UPz(G)&&(a.delayThresholdMet=!0,G.HS=!0);if(G.X>0){for(var V=g.m(B),x=V.next();!x.done;x=V.next())x=x.value,x.startTime-=G.X,x.endTime-=G.X;a.j-=G.X}else a.j=G.j.gi();a.segments=B;return a}; Ra=function(G,B){var a=OWV(G,!isNaN(G.G));B&&(G.G=NaN);return a}; OWV=function(G,B){var a=gQA(G,Iny(G));!isNaN(G.G)&&B&&(a.Y=G.G);return a}; UPz=function(G){var B;if(B=G.provider.videoData.isLoaded()&&G.provider.videoData.Md&&G.C&&!G.HS)B=G.j,B=B.B+B.provider.jJ.SS()-B.C>=G.provider.videoData.Md;return!!B}; zpg=function(G){G.provider.videoData.youtubeRemarketingUrl&&!G.GH&&(CSb(G,G.provider.videoData.youtubeRemarketingUrl),G.GH=!0)}; txb=function(G){G.provider.videoData.googleRemarketingUrl&&!G.XJ&&(CSb(G,G.provider.videoData.googleRemarketingUrl),G.XJ=!0)}; EQX=function(G){if(!G.TH()&&G.C){G.L="paused";var B=Ra(G);B.isFinal=!0;B.send();G.dispose()}}; jaH=function(G,B){if(!G.TH())if(g.F(B.state,2)||g.F(B.state,512)){if(G.L="paused",g.CY(B,2)||g.CY(B,512))g.CY(B,2)&&(G.j.previouslyEnded=!0),G.C&&(Sx(G),Ra(G).send(),G.G=NaN)}else if(g.F(B.state,8)){G.L="playing";var a=G.C&&isNaN(G.B)?Dn(G):NaN;!isNaN(a)&&(dv(B,64)<0||dv(B,512)<0)&&(G=OWV(G,!1),G.W=a,G.send())}else G.L="paused"}; bWz=function(G,B,a){if(!G.zH){a||(a=vQ(G,"atr"));a.attestationResponse=B;try{a.send()}catch(V){if(V.message!=="Unknown Error")throw V;}G.zH=!0}}; CSb=function(G,B){var a=G.provider.md;g.Vm(G.provider.md,g.uv(G.provider.videoData)).then(function(V){var x=G.provider.md.pageId,h=G.provider.md.sendVisitorIdHeader?G.provider.videoData.visitorData:void 0,e=G.provider.md.S("vss_pings_using_networkless")||G.provider.md.S("kevlar_woffle"),w=G.provider.md.S("allow_skip_networkless");V=Dgy(B,a,x,h,V);Snb(B,V,{token:G.provider.videoData.L,Ad:G.provider.videoData.iF,mdxEnvironment:G.provider.videoData.mdxEnvironment},a,void 0,e&&!w,!1,!0)})}; ypK=function(){this.endTime=this.startTime=-1;this.G="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.X=0;this.compositeLiveStatusToken=this.C=void 0;this.volume=this.connectionType=0;this.muted=!1;this.j=this.clipId="-";this.previouslyEnded=!1}; Zn=function(G,B,a){this.videoData=G;this.md=B;this.jJ=a;this.j=void 0}; g.mR=function(G){return cpV(G)()}; cpV=function(G){if(!G.j){var B=g.MY(function(V){var x=(0,g.yT)();V&&x<=631152E6&&(G.jJ.FJ("ytnerror",{issue:28799967,value:""+x}),x=(new Date).getTime()+2);return x},G.md.S("html5_validate_yt_now")),a=B(); G.j=function(){return Math.round(B()-a)/1E3}; G.jJ.L_()}return G.j}; pQb=function(G){var B=G.jJ.G9()||{};B.fs=G.jJ.Oo();B.volume=G.jJ.getVolume();B.muted=G.jJ.isMuted()?1:0;B.mos=B.muted;B.clipid=G.jJ.LP();var a;B.playerheight=((a=G.jJ.getPlayerSize())==null?void 0:a.height)||0;var V;B.playerwidth=((V=G.jJ.getPlayerSize())==null?void 0:V.width)||0;G=G.videoData;a={};G.X&&(a.fmt=G.X.itag,G.G&&(G.S_?G.G.itag!==G.X.itag:G.G.itag!=G.X.itag)&&(a.afmt=G.G.itag));a.ei=G.eventId;a.list=G.playlistId;a.cpn=G.clientPlaybackNonce;G.videoId&&(a.v=G.videoId);G.rQ&&(a.infringe=1); (G.L3?0:G.wc)&&(a.splay=1);(V=UN(G))&&(a.live=V);G.hN&&(a.sautoplay=1);G.Ds&&(a.autoplay=1);G.i_&&(a.sdetail=G.i_);G.partnerId&&(a.partnerid=G.partnerId);G.osid&&(a.osid=G.osid);G.Bj&&(a.cc=g.uZK(G.Bj));return Object.assign(B,a)}; TOA=function(G){var B=pmc();if(B)return nQA[B]||nQA.other;if(g.yI(G.md)){G=navigator.userAgent;if(/[Ww]ireless[)]/.test(G))return 3;if(/[Ww]ired[)]/.test(G))return 30}return 0}; cQ=function(G){var B=new ypK,a;B.G=((a=pQb(G).cc)==null?void 0:a.toString())||"-";B.playbackRate=G.jJ.getPlaybackRate();a=G.jJ.getVisibilityState();a!==0&&(B.visibilityState=a);G.md.Dx&&(B.X=1);B.C=G.videoData.Fo;B.compositeLiveStatusToken=G.videoData.compositeLiveStatusToken;a=G.jJ.getAudioTrack();a.VW&&a.VW.id&&a.VW.id!=="und"&&(B.audioId=a.VW.id);B.connectionType=TOA(G);B.volume=G.jJ.getVolume();B.muted=G.jJ.isMuted();B.clipId=G.jJ.LP()||"-";B.j=G.videoData.FS||"-";return B}; g.rd=function(G,B){g.r.call(this);var a=this;this.provider=G;this.G=!1;this.C=new Map;this.yg=new g.aF;this.vC={RIl:function(){return a.qoe}, Jtb:function(){return a.j}, nXn:function(){return a.X}}; this.provider.videoData.I4()&&!this.provider.videoData.AY&&(this.j=new HQ(this.provider),this.j.X=this.provider.videoData.dC/1E3,g.X(this,this.j),this.qoe=new g.OL(this.provider,B),g.X(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.zV=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.zV,this.j));if(G.md.playerCanaryState==="canary"||G.md.playerCanaryState==="holdback")this.X=new tp(this.provider),g.X(this,this.X)}; fnb=function(G){return!!G.j&&!!G.qoe}; $Q=function(G){G.X&&OSA(G.X);G.qoe&&Mdb(G.qoe)}; HWV=function(G){if(G.qoe){G=G.qoe;for(var B=G.provider.videoData,a=G.provider.md,V=g.m(a.BE),x=V.next();!x.done;x=V.next())jx(G,x.value);if(G.provider.S("html5_enable_qoe_cat_list"))for(V=g.m(B.Yz),x=V.next();!x.done;x=V.next())jx(G,x.value);else B.BE&&jx(G,G.provider.videoData.BE);B.SE()&&(V=B.j,NJ(B)&&jx(G,"manifestless"),V&&pw(V)&&jx(G,"live-segment-"+pw(V).toFixed(1)));eO(B)?jx(G,"sabr"):G.V1(zC(B));if(Q3(B)||B.cn())B.cn()&&jx(G,"ssa"),jx(G,"lifa");B.gatewayExperimentGroup&&(V=B.gatewayExperimentGroup, V==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?V="spkadtrt":V==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(V="spkadctrl"),jx(G,V));a.zH!=="yt"&&(G.j.len=[B.lengthSeconds.toFixed(2)]);B.cotn&&!TC(B)&&G.fW(!0);a.Ef()&&(B=uSV())&&G.FJ("cblt",{m:B});if(a.S("html5_log_screen_diagonal")){a=G.FJ;var h;B=((h=window.H5vccScreen)==null?0:h.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;a.call(G,"cbltdiag",{v:B})}}}; vQy=function(G){if(G.provider.jJ.j6()){if(G.G)return;G.G=!0}G.j&&mPB(G.j);if(G.X){G=G.X;var B=g.mR(G.provider);G.j<0&&(G.j=B,G.delay.start());G.X=B;G.G=B}}; DPH=function(G,B){G.j&&(G=G.j,B===58?G.j.update():G.C&&(Sx(G),Ra(G).send(),G.G=NaN))}; SLb=function(G,B){if(g.CY(B,1024)||g.CY(B,512)||g.CY(B,4)){if(G.X){var a=G.X;a.X>=0||(a.j=-1,a.delay.stop())}G.qoe&&(a=G.qoe,a.V||(a.X=-1))}if(G.provider.videoData.enableServerStitchedDai&&G.zV){var V;(V=G.C.get(G.zV))==null||jaH(V,B)}else G.j&&jaH(G.j,B);if(G.qoe){V=G.qoe;a=B.state;var x=g.mR(V.provider),h=V.getPlayerState(a);GhY(V,x,h,a.seekSource||void 0);h=a.CR;g.F(a,128)&&h&&(h.GO=h.GO||"",YnX(V,x,h.errorCode,h.JT,h.GO));(g.F(a,2)||g.F(a,128))&&V.reportStats(x);a.isPlaying()&&!V.V&&(V.X>=0&& (V.j.user_intent=[V.X.toString()]),V.V=!0);JGx(V)}G.X&&(V=G.X,EJX(V),V.playerState=B.state,V.X>=0&&g.CY(B,16)&&V.seekCount++,B.state.isError()&&V.send());G.provider.jJ.j6()&&(G.yg=B.state)}; RpB=function(G){G.X&&G.X.send();if(G.qoe){var B=G.qoe;if(B.C){B.yg==="PL"&&(B.yg="N");var a=g.mR(B.provider);g.UL(B,a,"vps",[B.yg]);B.V||(B.X>=0&&(B.j.user_intent=[B.X.toString()]),B.V=!0);B.provider.md.Ef()&&B.FJ("finalized",{});B.Zx=!0;B.reportStats(a)}}if(G.provider.videoData.enableServerStitchedDai)for(B=g.m(G.C.values()),a=B.next();!a.done;a=B.next())EQX(a.value);else G.j&&EQX(G.j);G.dispose()}; ZW9=function(G,B){G.j&&bWz(G.j,B)}; rpV=function(G){if(!G.j)return null;var B=vQ(G.j,"atr");return function(a){G.j&&bWz(G.j,a,B)}}; $P_=function(G,B,a,V){a.adFormat=a.m3;var x=B.jJ;B=new HQ(new Zn(a,B.md,{getDuration:function(){return a.lengthSeconds}, getCurrentTime:function(){return x.getCurrentTime()}, SS:function(){return x.SS()}, sb:function(){return x.sb()}, j6:function(){return x.j6()}, yx:function(){return x.yx()}, getPlayerSize:function(){return x.getPlayerSize()}, getAudioTrack:function(){return a.getAudioTrack()}, getPlaybackRate:function(){return x.getPlaybackRate()}, dg:function(){return x.dg()}, getVisibilityState:function(){return x.getVisibilityState()}, PG:function(){return x.PG()}, G9:function(){return x.G9()}, getVolume:function(){return x.getVolume()}, isMuted:function(){return x.isMuted()}, Oo:function(){return x.Oo()}, LP:function(){return x.LP()}, getProximaLatencyPreference:function(){return x.getProximaLatencyPreference()}, L_:function(){x.L_()}, FJ:function(h,e){x.FJ(h,e)}, t4:function(){return x.t4()}})); B.X=V;g.X(G,B);return B}; XQx=function(){this.UI=0;this.C=this.Ml=this.T6=this.X=NaN;this.j={};this.bandwidthEstimate=NaN}; Xp=function(G,B,a){g.r.call(this);var V=this;this.md=G;this.jJ=B;this.X=a;this.j=new Map;this.zV="";this.vC={eL:function(){return Array.from(V.j.keys())}}}; qLA=function(G,B){G.j.has(B)&&(RpB(G.j.get(B)),G.j.delete(B))}; upB=function(){this.j=g.xu;this.array=[]}; LRB=function(G,B,a){var V=[];for(B=Qax(G,B);Ba)break}return V}; Tdb=function(G,B){var a=[];G=g.m(G.array);for(var V=G.next();!V.done&&!(V=V.value,V.contains(B)&&a.push(V),V.start>B);V=G.next());return a}; sag=function(G){return G.array.slice(Qax(G,0x7ffffffffffff),G.array.length)}; Qax=function(G,B){G=WK(G.array,function(a){return B-a.start||1}); return G<0?-(G+1):G}; FRY=function(G,B){var a=NaN;G=g.m(G.array);for(var V=G.next();!V.done;V=G.next())if(V=V.value,V.contains(B)&&(isNaN(a)||V.endB&&(isNaN(a)||V.startG.mediaTime+G.B&&B1)G.G=!0;if((x===void 0?0:x)||isNaN(G.X))G.X=B;if(G.j)B!==G.mediaTime&&(G.j=!1);else if(B>0&&G.mediaTime===B){x=1500;if(G.md.S("html5_buffer_underrun_transition_fix")){x=g.kf(G.md.experiments,"html5_min_playback_advance_for_steady_state_secs");var h=g.kf(G.md.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");x=x>0&&h>0&&Math.abs(B-G.X)(V||!G.G?x:400)}G.mediaTime=B;G.C=a;return!1}; oQB=function(G,B){this.videoData=G;this.j=B}; Mx9=function(G,B,a){return B.Q5(a).then(function(){return Dd(new oQB(B,B.C))},function(V){V instanceof Error&&g.Zb(V); var x=HX('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),h=Dh('audio/mp4; codecs="mp4a.40.2"'),e=x||h,w=B.isLivePlayback&&!g.Bo(G.B,!0);V="fmt.noneavailable";w?V="html5.unsupportedlive":e||(V="html5.missingapi");e=w||!e?2:1;x={buildRej:"1",a:B.bA(),d:!!B.w7,drm:B.LM(),f18:B.Da.indexOf("itag=18")>=0,c18:x};B.j&&(B.LM()?(x.f142=!!B.j.j["142"],x.f149=!!B.j.j["149"],x.f279=!!B.j.j["279"]):(x.f133=!!B.j.j["133"],x.f140=!!B.j.j["140"],x.f242=!!B.j.j["242"]),x.cAAC=h,x.cAVC=Dh('video/mp4; codecs="avc1.42001E"'), x.cVP9=Dh('video/webm; codecs="vp9"'));B.B&&(x.drmsys=B.B.keySystem,h=0,B.B.j&&(h=Object.keys(B.B.j).length),x.drmst=h);return new yH(V,x,e)})}; Qn=function(G){this.data=window.Float32Array?new Float32Array(G):Array(G);this.X=this.j=G-1}; G8c=function(G){return G.data[G.j]||0}; BMz=function(G){this.B=G;this.C=this.X=0;this.G=new Qn(50)}; Th=function(G,B,a){g.wI.call(this);this.videoData=G;this.experiments=B;this.B=a;this.X=[];this.gD=0;this.C=!0;this.G=!1;this.L=0;a=new aYx;G.latencyClass==="ULTRALOW"&&(a.G=!1);G.Vb?a.X=3:g.cF(G)&&(a.X=2);G.latencyClass==="NORMAL"&&(a.L=!0);var V=g.kf(B,"html5_liveness_drift_proxima_override");if(zC(G)!==0&&V){a.j=V;var x;((x=G.j)==null?0:uvX(x))&&a.j--}eO(G)&&B.Or("html5_sabr_parse_live_metadata_playback_boundaries")&&(a.Y=!0);if(g.QZ("trident/")||g.QZ("edge/"))x=g.kf(B,"html5_platform_minimum_readahead_seconds")|| 3,a.C=Math.max(a.C,x);g.kf(B,"html5_minimum_readahead_seconds")&&(a.C=g.kf(B,"html5_minimum_readahead_seconds"));g.kf(B,"html5_maximum_readahead_seconds")&&(a.V=g.kf(B,"html5_maximum_readahead_seconds"));B.Or("html5_force_adaptive_readahead")&&(a.G=!0);if(x=g.kf(B,"html5_liveness_drift_chunk_override"))a.j=x;dB(G)&&(a.j=(a.j+1)/5,G.latencyClass==="LOW"&&(a.j*=2));if(G.latencyClass==="ULTRALOW"||G.latencyClass==="LOW")a.B=g.kf(B,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,a.W=g.kf(B, "html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=a;this.W=this.policy.X!==1;this.j=LW(this,VRb(this,isNaN(G.liveChunkReadahead)?3:G.liveChunkReadahead,G))}; xAg=function(G,B){if(B)return B=G.videoData,B=VRb(G,isNaN(B.liveChunkReadahead)?3:B.liveChunkReadahead,B),LW(G,B);if(G.X.length){if(Math.min.apply(null,G.X)>1)return LW(G,G.j-1);if(G.policy.G)return LW(G,G.j+1)}return G.j}; h5b=function(G,B){if(!G.X.length)return!1;var a=G.j;G.j=xAg(G,B===void 0?!1:B);if(B=a!==G.j)G.X=[],G.gD=0;return B}; sL=function(G,B){return B>=G.t$()-e5y(G)}; W4B=function(G,B,a){B=sL(G,B);a||B?B&&(G.C=!0):G.C=!1;G.W=G.policy.X===2||G.policy.X===3&&G.C}; ww9=function(G,B){B=sL(G,B);G.G!==B&&G.publish("livestatusshift",B);G.G=B}; e5y=function(G){var B=G.policy.j;G.G||(B=Math.max(B-1,0));return B*Fp(G)}; VRb=function(G,B,a){a.Vb&&B--;dB(a)&&(B=1);if(zC(a)!==0&&(G=g.kf(G.experiments,"html5_live_chunk_readahead_proxima_override"))){B=G;var V;((V=a.j)==null?0:uvX(V))&&B++}return B}; Fp=function(G){return G.videoData.j?pw(G.videoData.j)||5:5}; LW=function(G,B){B=Math.max(Math.max(1,Math.ceil(G.policy.C/Fp(G))),B);return Math.min(Math.min(8,Math.floor(G.policy.V/Fp(G))),B)}; aYx=function(){this.C=0;this.V=Infinity;this.G=!0;this.j=2;this.X=1;this.L=!1;this.W=10;this.Y=!1;this.B=1}; YQ=function(G){g.r.call(this);this.jJ=G;this.j=0;this.X=null;this.L=this.G=0;this.C={};this.md=this.jJ.U();this.B=new g.J8(this.Bn,1E3,this);this.eJ=new Jp({delayMs:g.kf(this.md.experiments,"html5_seek_timeout_delay_ms")});this.Zx=new Jp({delayMs:g.kf(this.md.experiments,"html5_long_rebuffer_threshold_ms")});this.Dx=Ap(this,"html5_seek_set_cmt");this.qB=Ap(this,"html5_seek_jiggle_cmt");this.Ur=Ap(this,"html5_seek_new_elem");this.wO=Ap(this,"html5_unreported_seek_reseek");this.HS=Ap(this,"html5_long_rebuffer_jiggle_cmt"); this.LN=Ap(this,"html5_long_rebuffer_ssap_clip_not_match");this.GH=new Jp({delayMs:2E4});this.Er=Ap(this,"html5_seek_new_elem_shorts");this.Vb=Ap(this,"html5_seek_new_media_source_shorts_reuse");this.MB=Ap(this,"html5_seek_new_media_element_shorts_reuse");this.SJ=Ap(this,"html5_reseek_after_time_jump");this.V=Ap(this,"html5_gapless_handoff_close_end_long_rebuffer");this.zH=Ap(this,"html5_gapless_slow_seek");this.Y=Ap(this,"html5_gapless_slice_append_stuck");this.XJ=Ap(this,"html5_gapless_slow_start"); this.W=Ap(this,"html5_ads_preroll_lock_timeout");this.Md=Ap(this,"html5_ssap_ad_longrebuffer_new_element");this.Yf=new Jp({delayMs:g.kf(this.md.experiments,"html5_skip_slow_ad_delay_ms")||5E3,oN:!this.md.S("html5_report_slow_ads_as_error")});this.fh=new Jp({delayMs:g.kf(this.md.experiments,"html5_skip_slow_ad_delay_ms")||5E3,oN:!this.md.S("html5_skip_slow_buffering_ad")});this.QW=new Jp({delayMs:g.kf(this.md.experiments,"html5_slow_start_timeout_delay_ms")});this.Qb=Ap(this,"html5_slow_start_no_media_source"); g.X(this,this.B)}; Ap=function(G,B){var a=g.kf(G.md.experiments,B+"_delay_ms");G=G.md.S(B+"_cfl");return new Jp({delayMs:a,oN:G})}; K4g=function(G,B){G.j=B}; iS=function(G,B,a,V,x,h,e,w){B.test(a)?(G.I0(x,B,e),B.oN||h()):(B.SP&&B.X&&!B.G?(a=(0,g.yT)(),V?B.j||(B.j=a):B.j=0,h=!V&&a-B.X>B.SP,a=B.j&&a-B.j>B.Hg||h?B.G=!0:!1):a=!1,a&&(w=Object.assign({},G.Nd(B),w),w.wn=e,w.we=x,w.wsuc=V,G.jJ.FJ("workaroundReport",w),V&&(B.reset(),G.C[x]=!1)))}; Jp=function(G){var B=G===void 0?{}:G;G=B.delayMs===void 0?0:B.delayMs;var a=B.Hg===void 0?1E3:B.Hg;var V=B.SP===void 0?3E4:B.SP;B=B.oN===void 0?!1:B.oN;this.j=this.X=this.C=this.startTimestamp=0;this.G=!1;this.B=Math.ceil(G/1E3);this.Hg=a;this.SP=V;this.oN=B}; dAc=function(G){g.r.call(this);var B=this;this.jJ=G;this.W=this.j=this.CN=this.mediaElement=this.playbackData=null;this.G=0;this.B=this.zH=this.C=null;this.XJ=!1;this.Yf=0;this.Y=!1;this.timestampOffset=0;this.V=!0;this.qB=0;this.Ur=this.QW=!1;this.L=0;this.Vb=!1;this.HS=0;this.md=this.jJ.U();this.videoData=this.jJ.getVideoData();this.policy=new lYc;this.GH=new YQ(this.jJ);this.eJ=this.SJ=this.Qb=this.X=NaN;this.LN=new g.J8(function(){k8Y(B,!1)},2E3); this.fh=new g.J8(function(){PQ(B)}); this.Er=new g.J8(function(){B.XJ=!0;NMB(B,{})}); this.Dx=NaN;this.Zx=new g.J8(function(){var a=B.md.L3;a.j+=1E4/36E5;a.j-a.C>1/6&&(M7V(a),a.C=a.j);B.Zx.start()},1E4); g.X(this,this.GH);g.X(this,this.LN);g.X(this,this.Er);g.X(this,this.fh);g.X(this,this.Zx)}; tRK=function(G,B){G.playbackData=B;G.videoData.isLivePlayback&&(G.W=new BMz(function(){a:{if(G.playbackData&&G.playbackData.j.j){if(NJ(G.videoData)&&G.CN){var a=G.CN.Fd.cG()||0;break a}if(G.videoData.j){a=G.videoData.j.GH;break a}}a=0}return a}),G.j=new Th(G.videoData,G.md.experiments,function(){return G.LD(!0)})); oa(G.jJ)?(B=C2H(G),B.Eh?(G.S("html5_sabr_enable_utc_seek_requests")&&eO(G.videoData)&&G.je(B.Eh,B.startSeconds),G.G=B.startSeconds):B.startSeconds>0&&G.seekTo(B.startSeconds,{Tt:"seektimeline_startPlayback",seekSource:15}),G.V=!1):z5B(G)||(G.G=G.G||(g.AC(G.videoData)?0:G.videoData.startSeconds)||0)}; IYg=function(G,B){(G.CN=B)?mA9(G,!0):MP(G)}; gdV=function(G,B){g.iC(G.GH.B);G.S("html5_exponential_memory_for_sticky")&&(B.state.isPlaying()?g.iC(G.Zx):G.Zx.stop());if(G.mediaElement)if(B.oldState.state===8&&Kn(B.state)&&B.state.isBuffering()){B=G.mediaElement.getCurrentTime();var a=G.mediaElement.yk();var V=G.S("manifestless_post_live_ufph")||G.S("manifestless_post_live")?WZ(a,Math.max(B-3.5,0)):WZ(a,B-3.5);V>=0&&B>a.end(V)-1.1&&V+10?(G8(G.jJ,G.getCurrentTime()+G.videoData.limitedPlaybackDurationInSeconds),G.Ur=!0):G.videoData.isLivePlayback&&G.videoData.endSeconds>0&&(G8(G.jJ,G.getCurrentTime()+G.videoData.endSeconds),G.Ur=!0))}; UAc=function(G,B){var a=G.getCurrentTime(),V=G.isAtLiveHead(a);if(G.W&&V){var x=G.W;if(x.j&&!(a>=x.X&&a50&&x.X.shift())),x=G.j,W4B(x,a,B===void 0?!0:B),ww9(x,a),B&&k8Y(G,!0));V!==G.QW&&(B=G.getCurrentTime()-G.eJ<=500,a=G.Yf>=1E3,B||a||(B=G.jJ.Kh(),B.qoe&&(B=B.qoe,a=g.mR(B.provider), g.UL(B,a,"lh",[V?"1":"0"])),G.QW=V,G.Yf++,G.eJ=G.getCurrentTime()))}; k8Y=function(G,B){if(G.j){var a=G.j;var V=G.getCurrentTime();!sL(a,V)&&a.Ps()?(a.policy.L&&(a.policy.j=Math.max(a.policy.j+a.policy.B,a.policy.W)),a=Infinity):a=V0&&or(G.mediaElement)>0&&(G.X=Bw(G,G.X,!1)),!G.mediaElement||!y6z(G))G.fh.start(750);else if(!isNaN(G.X)&&isFinite(G.X)){var B=G.SJ-(G.X-G.timestampOffset);if(!(B===0||G.S("html5_enable_new_seek_timeline_logic")&&Math.abs(B)<.005))if(B=G.mediaElement.getCurrentTime()-G.X,Math.abs(B)<=G.qB||G.S("html5_enable_new_seek_timeline_logic")&&Math.abs(B)<.005)G.C&&G.C.resolve(G.mediaElement.getCurrentTime()); else{if(G.videoData.Ez)G.videoData.Ez=!1;else if(!kX(G.videoData)&&G.X>=G.LD()-.1){G.X=G.LD();G.C.resolve(G.LD());G.jJ.Ag();return}try{var a=G.X-G.timestampOffset;G.mediaElement.seekTo(a);G.GH.j=a;G.SJ=a;G.G=G.X;G.S("html5_enable_new_seek_timeline_logic")&&(G.Y=!1)}catch(V){}}}}; y6z=function(G){if(!G.mediaElement||G.mediaElement.fk()===0||G.mediaElement.hasError())return!1;var B=G.mediaElement.getCurrentTime()>0;if(!(G.videoData.C&&G.videoData.C.j||G.videoData.isLivePlayback)&&G.videoData.LM())return B;if(G.X>=0){var a=G.mediaElement.x0();if(a.length||!B)return wZ(a,G.X-G.timestampOffset)}return B}; bOy=function(G,B){G.B&&(G.B.resolve(B),G.jJ.BJ(),G.md.Ef()&&(B=G.Nd(),B["native"]=""+ +G.Y,B.otgt=""+(G.X+G.timestampOffset),G.jJ.FJ("seekEnd",B)));MP(G)}; MP=function(G){G.X=NaN;G.SJ=NaN;G.C=null;G.zH=null;G.B=null;G.XJ=!1;G.Y=!1;G.qB=0;G.LN.stop();G.Er.stop()}; fYc=function(G,B,a){var V=G.mediaElement,x=B.type;switch(x){case "seeking":var h=V.getCurrentTime()+G.timestampOffset;if(!G.C||G.Y&&h!==G.X){var e=!!G.C;G.C=new iV;G.S("html5_enable_new_seek_timeline_logic")&&G.C.then(function(K){bOy(G,K)},function(){MP(G)}); if(G.videoData.isAd()){var w;wnB({adCpn:G.videoData.clientPlaybackNonce,contentCpn:(w=G.videoData.kQ)!=null?w:""},B.j)}G.SJ=h;K4g(G.GH,V.getCurrentTime());G.seekTo(h,{seekSource:104,Tt:"seektimeline_mediaElementEvent"});a&&c6z(a,h*1E3,!!e);G.Y=!0}break;case "seeked":G.C&&G.C.resolve(G.mediaElement.getCurrentTime());break;case "loadedmetadata":oa(G.jJ)||ndX(G);PQ(G);break;case "progress":PQ(G);break;case "pause":G.L=G.getCurrentTime()}G.L&&((x==="play"||x==="playing"||x==="timeupdate"||x==="progress")&& G.getCurrentTime()-G.L>10&&(G.S("html5_enable_new_media_element_puase_jump")?(G.jJ.I0(new yH("qoe.restart",{reason:"pauseJump"})),G.jJ.Jv(),G.seekTo(G.L,{Tt:"pauseJumpNewElement"})):G.seekTo(G.L,{Tt:"pauseJump"})),x!=="pause"&&x!=="play"&&x!=="playing"&&x!=="progress"&&(G.L=0))}; HO_=function(G){return(n9(G.videoData)||!!G.videoData.liveUtcStartSeconds)&&(!!G.videoData.liveUtcStartSeconds||z5B(G))&&!!G.videoData.j}; z5B=function(G){return!!G.videoData.startSeconds&&isFinite(G.videoData.startSeconds)&&G.videoData.startSeconds>1E9}; C2H=function(G){var B=0,a=NaN,V="";if(!G.V)return{startSeconds:B,Eh:a,source:V};G.videoData.LN?B=G.videoData.Qb:kX(G.videoData)&&(B=Infinity);if(g.cF(G.videoData))return{startSeconds:B,Eh:a,source:V};G.videoData.startSeconds?(V="ss",B=G.videoData.startSeconds):G.videoData.Fg&&(V="stss",B=G.videoData.Fg);G.videoData.liveUtcStartSeconds&&(a=G.videoData.liveUtcStartSeconds);if(isFinite(B)&&(B>G.LD()||BG.LD()||a0?(V.onesie="0",G.handleError(new yH("html5.missingapi",V)),!1):!0}; qk_=function(G){var B=$g();Xq(B,G);return g.hr(B,Ufz())}; r6A=function(G,B){var a,V,x,h,e,w,K,l,k,N,d,C,z,p,O,b,c,H,R,q,A,J,xB,Wz,GK,Q;return g.v(function(M){if(M.j==1)return B.fetchType="onesie",a=HDc(B,G.getPlayerSize(),G.getVisibilityState()),V=new LS(G,a),g.f(M,V.fetch(),2);x=M.X;h={player_response:x};B.loading=!1;e=G.qQ.PM;if(V.Tz){w=g.m(V.Tz.entries());for(K=w.next();!K.done;K=w.next())l=K.value,k=g.m(l),N=k.next().value,d=k.next().value,C=N,z=d,e.j.set(C,z,180),C===B.videoId&&(p=z.yI(),B.SW=p);e.tW=V}O=g.m(V.Vi.entries());for(b=O.next();!b.done;b= O.next())c=b.value,H=g.m(c),R=H.next().value,q=H.next().value,A=R,J=q,e.X.set(A,J,180);g.JC(B,h,!0);if(B.loading||sy(B))return M.return(Promise.resolve());e.j.removeAll();e.X.removeAll();B.SW=[];xB={};Wz="onesie.response";GK=0;B.errorCode?(Wz="auth",xB.ec=B.errorCode,xB.ed=B.errorDetail,xB.es=B.If||"",GK=2):(xB.successButUnplayable="1",xB.disposed=""+ +B.TH(),xB.afmts=""+ +/adaptiveFormats/.test(x),xB.cpn=B.clientPlaybackNonce);Q=new yH(Wz,xB,GK);return M.return(Promise.reject(Q))})}; R5b=function(G,B){var a,V,x,h,e,w,K,l,k,N,d;return g.v(function(C){switch(C.j){case 1:a=B.isAd(),V=!a,x=a?1:3,h=0;case 2:if(!(h0)){C.kf(5);break}return g.f(C,jU(5E3),6);case 6:e=new g.FI("Retrying OnePlatform request",{attempt:h}),g.Zb(e);case 5:return g.UA(C,7),g.f(C,uYx(G,B),9);case 9:return C.return();case 7:w=g.jB(C);K=n1(w);l=K.errorCode;k=G.U();N=k.S("html5_use_network_error_code_enums")?401:"401";V&&l==="manifest.net.badstatus"&&K.details.rc===N&&(V=!1,h===x-1&&(x+= 1));if(h===x-1)return d=QiB(a,K.details),d.details.backend="op",d.details.originec=l,C.return(Promise.reject(d));if(l==="auth"||l==="manifest.net.retryexhausted")return C.return(Promise.reject(K));G.handleError(K);if(cX(K.severity)){C.kf(4);break}case 3:h++;C.kf(2);break;case 4:return C.return(Promise.reject(QiB(a,{backend:"op"})))}})}; uYx=function(G,B){function a(Wz){Wz.readyState===2&&G.o4("ps_c")} var V,x,h,e,w,K,l,k,N,d,C,z,p,O,b,c,H,R,q,A,J,xB;return g.v(function(Wz){switch(Wz.j){case 1:B.fetchType="gp";V=G.U();x=g.Vm(V,g.uv(B));if(!x.j){h=x.getValue();Wz.kf(2);break}return g.f(Wz,x.j,3);case 3:h=Wz.X;case 2:return e=h,w=qk_(e),K=HDc(B,G.getPlayerSize(),G.getVisibilityState()),l=g.MR(L4z),k=g.uv(B),N=(0,g.yT)(),d=!1,C="empty",z=0,G.o4("psns"),p={V6:a},g.f(Wz,g.Al(w,K,l,void 0,p),4);case 4:O=Wz.X;G.o4("psnr");if(B.TH())return Wz.return();O?"error"in O&&O.error?(d=!0,C="esf:"+O.error.message, z=O.error.code):O.errorMetadata&&(d=!0,C="its",z=O.errorMetadata.status):d=!0;if(d)return b=0,c=((0,g.yT)()-N).toFixed(),H={},H=V.S("html5_use_network_error_code_enums")?{backend:"op",rc:z,rt:c,reason:C,has_kpt:B.fh?"1":"0",has_mdx_env:B.mdxEnvironment?"1":"0",has_omit_key_flag:g.A0("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:V.pageId?"1":"0",has_token:k?"1":"0",has_vvt:B.XJ?"1":"0",is_mdx:B.isMdxPlayback?"1":"0",mdx_ctrl:B.kT||"",token_eq:k===g.uv(B)?"1":"0"}:{backend:"op", rc:""+z,rt:c,reason:C,has_kpt:B.fh?"1":"0",has_mdx_env:B.mdxEnvironment?"1":"0",has_omit_key_flag:g.A0("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:V.pageId?"1":"0",has_token:k?"1":"0",has_vvt:B.XJ?"1":"0",is_mdx:B.isMdxPlayback?"1":"0",mdx_ctrl:B.kT||"",token_eq:k===g.uv(B)?"1":"0"},R="manifest.net.connect",z===429?(R="auth",b=2):z>200&&(R="manifest.net.badstatus",z===400&&(b=2)),Wz.return(Promise.reject(new yH(R,H,b)));B.loading=!1;g.JC(B,{raw_player_response:O},!0); q=O;g.SN(B.U())&&q&&q.trackingParams&&cp(q.trackingParams);if(B.errorCode)return A={ec:B.errorCode,ed:B.errorDetail,es:B.If||""},Wz.return(Promise.reject(new yH("auth",A,2)));if(!B.loading&&!sy(B))return J=B.isAd()?"auth":"manifest.net.retryexhausted",xB=B.isAd()?2:1,Wz.return(Promise.reject(new yH(J,{successButUnplayable:"1",hasMedia:g.EN(B)?"1":"0"},xB)));g.pV(Wz)}})}; SkV=function(G,B,a){function V(z){z=n1(z);if(cX(z.severity))return Promise.reject(z);G.handleError(z);return!1} function x(){return!0} var h,e,w,K,l,k,N,d,C;return g.v(function(z){switch(z.j){case 1:var p=G.U(),O=G.getPlayerSize(),b=G.getVisibilityState();G.isFullscreen();var c=window.location.search;if(B.partnerId===38&&p.playerStyle==="books")c=B.videoId.indexOf(":"),c=g.LJ("//play.google.com/books/volumes/"+B.videoId.slice(0,c)+"/content/media",{aid:B.videoId.slice(c+1),sig:B.ON});else if(B.partnerId===30&&p.playerStyle==="docs")c=g.LJ("https://docs.google.com/get_video_info",{docid:B.videoId,authuser:B.K5J,authkey:B.Ip,eurl:p.MB}); else if(B.partnerId===33&&p.playerStyle==="google-live")c=g.LJ("//google-liveplayer.appspot.com/get_video_info",{key:B.videoId});else{p.zH!=="yt"&&g.RA(Error("getVideoInfoUrl for invalid namespace: "+p.zH));var H={html5:"1",video_id:B.videoId,cpn:B.clientPlaybackNonce,eurl:p.MB,ps:p.playerStyle,el:Zw(B),hl:p.fh,list:B.playlistId,agcid:B.v2,aqi:B.adQueryId,sts:20152,lact:cD()};Object.assign(H,p.j);p.forcedExperiments&&(H.forced_experiments=p.forcedExperiments);B.XJ?(H.vvt=B.XJ,B.mdxEnvironment&&(H.mdx_environment= B.mdxEnvironment)):g.uv(B)&&(H.access_token=g.uv(B));B.adFormat&&(H.adformat=B.adFormat);B.slotPosition>=0&&(H.slot_pos=B.slotPosition);B.breakType&&(H.break_type=B.breakType);B.ys!==null&&(H.ad_id=B.ys);B.oo!==null&&(H.ad_sys=B.oo);B.IA!==null&&(H.encoded_ad_playback_context=B.IA);p.captionsLanguagePreference&&(H.cc_lang_pref=p.captionsLanguagePreference);p.Yf&&p.Yf!==2&&(H.cc_load_policy=p.Yf);var R=g.uP(g.qe(),65);g.YF(p)&&R!=null&&!R&&(H.device_captions_on="1");p.mute&&(H.mute=p.mute);B.annotationsLoadPolicy&& p.annotationsLoadPolicy!==2&&(H.iv_load_policy=B.annotationsLoadPolicy);B.qp&&(H.endscreen_ad_tracking=B.qp);(R=p.LN.get(B.videoId))&&R.QV&&(H.ic_track=R.QV);B.Zx&&(H.itct=B.Zx);qJ(B)&&(H.autoplay="1");B.mutedAutoplay&&(H.mutedautoplay=B.mutedAutoplay);B.isAutonav&&(H.autonav="1");B.Ha&&(H.noiba="1");B.isMdxPlayback&&(H.mdx="1",H.ytr=B.j9);B.mdxControlMode&&(H.mdx_control_mode=B.mdxControlMode);B.D1&&(H.ytrcc=B.D1);B.Q9&&(H.utpsa="1");B.isFling&&(H.is_fling="1");B.isInlinePlaybackNoAd&&(H.mute="1"); B.vnd&&(H.vnd=B.vnd);B.forceAdsUrl&&(R=B.forceAdsUrl.split("|").length===3,H.force_ad_params=R?B.forceAdsUrl:"||"+B.forceAdsUrl);B.OZ&&(H.preload=B.OZ);O.width&&(H.width=O.width);O.height&&(H.height=O.height);(B.L3?0:B.wc)&&(H.splay="1");B.ypcPreview&&(H.ypc_preview="1");$X(B)&&(H.content_v=$X(B));B.Vb&&(H.livemonitor=1);p.HS&&(H.authuser=p.HS);p.pageId&&(H.pageid=p.pageId);p.Ur&&(H.ei=p.Ur);p.G&&(H.iframe="1");B.contentCheckOk&&(H.cco="1");B.racyCheckOk&&(H.rco="1");p.W&&B.Ls&&(H.live_start_walltime= B.Ls);p.W&&B.Hh&&(H.live_manifest_duration=B.Hh);p.W&&B.playerParams&&(H.player_params=B.playerParams);p.W&&B.cycToken&&(H.cyc=B.cycToken);p.W&&B.sz&&(H.tkn=B.sz);b!==0&&(H.vis=b);p.enableSafetyMode&&(H.enable_safety_mode="1");B.fh&&(H.kpt=B.fh);B.jd&&(H.kids_age_up_mode=B.jd);B.kidsAppInfo&&(H.kids_app_info=B.kidsAppInfo);B.L2&&(H.upg_content_filter_mode="1");p.widgetReferrer&&(H.widget_referrer=p.widgetReferrer.substring(0,128));B.zH?(O=B.zH.latitudeE7!=null&&B.zH.longitudeE7!=null?B.zH.latitudeE7+ ","+B.zH.longitudeE7:",",O+=","+(B.zH.clientPermissionState||0)+","+(B.zH.locationRadiusMeters||"")+","+(B.zH.locationOverrideToken||"")):O=null;O&&(H.uloc=O);B.Nk&&(H.internalipoverride=B.Nk);p.embedConfig&&(H.embed_config=p.embedConfig);p.JY&&(H.co_rel="1");p.ancestorOrigins.length>0&&(H.ancestor_origins=Array.from(p.ancestorOrigins).join(","));p.homeGroupInfo!==void 0&&(H.home_group_info=p.homeGroupInfo);p.livingRoomAppMode!==void 0&&(H.living_room_app_mode=p.livingRoomAppMode);p.enablePrivacyFilter&& (H.enable_privacy_filter="1");B.isLivingRoomDeeplink&&(H.is_living_room_deeplink="1");B.By&&B.Si&&(H.clip=B.By,H.clipt=B.Si);B.tb&&(H.disable_watch_next="1");B.B6&&(H.forced_by_var="1");for(var q in H)!TMy.has(q)&&H[q]&&String(H[q]).length>512&&(g.Zb(Error("GVI param too long: "+q)),H[q]="");q=p.TV;g.R$(p)&&(q=of(q.replace(/\b(?:www|web)([.-])/,"tv$1"))||p.TV);p=g.LJ(q+"get_video_info",H);c&&(p=CCX(p,c));c=p}h=c;w=(e=B.isAd())?1:3;K=0;case 2:if(!(K0)){z.kf(5);break}return g.f(z, jU(5E3),6);case 6:k={playerretry:K,playerretrysrc:a},e||(k.recover="embedded"),l=eK(h,k);case 5:return g.f(z,si_(B,l).then(x,V),7);case 7:if(N=z.X)return z.return();K++;z.kf(2);break;case 4:d=e?"auth":"manifest.net.retryexhausted";C=e?2:1;if(!e&&Math.random()<1E-4)try{g.Zb(new g.FI("b/152131571",btoa(h)))}catch(A){}return z.return(Promise.reject(new yH(d,{backend:"gvi"},C)))}})}; si_=function(G,B){function a(O){return V(O.xhr)} function V(O){if(!G.TH()){O=O?O.status:-1;var b=0,c=((0,g.yT)()-k).toFixed();c=x.S("html5_use_network_error_code_enums")?{backend:"gvi",rc:O,rt:c}:{backend:"gvi",rc:""+O,rt:c};var H="manifest.net.connect";O===429?(H="auth",b=2):O>200&&(H="manifest.net.badstatus",O===400&&(b=2));return Promise.reject(new yH(H,c,b))}} var x,h,e,w,K,l,k,N,d,C,z,p;return g.v(function(O){if(O.j==1){G.fetchType="gvi";x=G.U();var b={};G.vj&&(b.ytrext=G.vj);(w=g.yw(b)?void 0:b)?(h={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:w},e=eK(B,{action_display_post:1})):(h={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e=B);K={};x.sendVisitorIdHeader&&G.visitorData&&(K["X-Goog-Visitor-Id"]=G.visitorData);(l=PJ(x.experiments,"debug_sherlog_username"))&&(K["X-Youtube-Sherlog-Username"]=l);Object.keys(K).length> 0&&(h.headers=K);k=(0,g.yT)();return g.f(O,WJ(nB,e,h).then(void 0,a),2)}N=O.X;if(!N||!N.responseText)return O.return(V(N));G.loading=!1;d=ah(N.responseText);g.JC(G,d,!0);if(G.errorCode)return C={ec:G.errorCode,ed:G.errorDetail,es:G.If||""},O.return(Promise.reject(new yH("auth",C,2)));if(!G.loading&&!sy(G))return z=G.isAd()?"auth":"manifest.net.retryexhausted",p=G.isAd()?2:1,O.return(Promise.reject(new yH(z,{successButUnplayable:"1"},p)));g.pV(O)})}; QiB=function(G,B){return new yH(G?"auth":"manifest.net.retryexhausted",B,G?2:1)}; eR=function(G,B,a){a=a===void 0?!1:a;var V,x,h,e;g.v(function(w){if(w.j==1){V=G.U();if(a&&(!g.Po(V)||Zw(B)!=="embedded")||B.tb||Zw(B)!=="adunit"&&(g.yI(V)||u0(V)||g.rv(V)||g.R$(V)||YD(V)==="WEB_CREATOR"))return w.return();x=g.Vm(V,g.uv(B));return x.j?g.f(w,x.j,3):(h=x.getValue(),w.kf(2))}w.j!=2&&(h=w.X);e=h;return w.return(F4K(G,B,e))})}; F4K=function(G,B,a){var V,x,h,e,w;return g.v(function(K){if(K.j==1){g.UA(K,2);V=qk_(a);var l=B.U();g.qe();var k={context:g.hK(B),videoId:B.videoId,racyCheckOk:B.racyCheckOk,contentCheckOk:B.contentCheckOk,autonavState:"STATE_NONE"};Zw(B)==="adunit"&&(k.isAdPlayback=!0);l.embedConfig&&(k.serializedThirdPartyEmbedConfig=l.embedConfig);l.JY&&(k.showContentOwnerOnly=!0);B.FN&&(k.showShortsOnly=!0);g.uP(0,141)&&(k.autonavState=g.uP(0,140)?"STATE_OFF":"STATE_ON");if(g.YF(l)){var N=g.uP(0,65);N=N!=null? !N:!1;var d=!!g.SL("yt-player-sticky-caption");k.captionsRequested=N&&d}var C;if(l=(C=l.getWebPlayerContextConfig())==null?void 0:C.encryptedHostFlags)k.playbackContext={encryptedHostFlags:l};x=k;h=g.MR(J6_);G.o4("wn_s");return g.f(K,g.Al(V,x,h),4)}if(K.j!=2)return e=K.X,G.o4("wn_r"),!e||"error"in e&&e.error||(w=e,g.SN(B.U())&&w.trackingParams&&cp(w.trackingParams),g.JC(B,{raw_watch_next_response:e},!1)),g.EA(K,0);g.jB(K);g.pV(K)})}; A6b=function(G){G.o4("vir");G.o4("ps_s");TG("vir",void 0,"video_to_ad");var B=XwB(G);B.then(function(){G.o4("virc");TG("virc",void 0,"video_to_ad");G.o4("ps_r");TG("ps_r",void 0,"video_to_ad")},function(){G.o4("virc"); TG("virc",void 0,"video_to_ad")}); return B}; g.KO=function(G,B,a,V,x,h,e,w,K,l){K=K===void 0?new g.Tk(G):K;l=l===void 0?!0:l;g.wI.call(this);var k=this;this.md=G;this.playerType=B;this.Ti=a;this.aJ=V;this.getVisibilityState=h;this.visibility=e;this.qQ=w;this.videoData=K;this.yh=l;this.logger=new g.xY("VideoPlayer");this.gC=null;this.FH=new kQ;this.CF=null;this.lk=!0;this.tX=this.CN=null;this.vB=[];this.gK=new h6;this.dG=this.a7=null;this.DI=new h6;this.YM=null;this.eG=this.tJ=!1;this.mR=NaN;this.lP=!1;this.playerState=new g.aF;this.zO=[];this.sB= new g.Zh;this.q$=new sj9(this);this.mediaElement=null;this.jX=new g.J8(this.z7J,15E3,this);this.Jw=this.Gp=!1;this.II=NaN;this.Go=!1;this.N6=0;this.SN=!1;this.W2=NaN;this.kE=new ai(new Map([["bufferhealth",function(){return pwy(k.Ld)}], ["bandwidth",function(){return k.ul()}], ["networkactivity",function(){return k.md.schedule.HS}], ["livelatency",function(){return k.isAtLiveHead()&&k.isPlaying()?Yk9(k):NaN}], ["rawlivelatency",function(){return Yk9(k)}]])); this.O_=0;this.loop=!1;this.playbackRate=1;this.Ee=0;this.Ld=new dAc(this);this.hR=!1;this.Fn=[];this.Hz=this.IQ=0;this.Aw=this.nC=!1;this.Ml=this.T6=0;this.a_=-1;this.bV="";this.w0=new g.J8(this.bNJ,0,this);this.FU=!1;this.F5=this.EZ=null;this.cyS=[this.sB,this.w0,this.jX,this.kE];this.Qt=this.ao=null;this.Ry=function(){var N=k.Kh();N.provider.md.wc||N.provider.jJ.getVisibilityState()===3||(N.provider.md.wc=!0);N.jy();if(N.X){var d=N.X;d.B&&d.j<0&&d.provider.jJ.getVisibilityState()!==3&&OSA(d)}N.qoe&& (N=N.qoe,N.Ur&&N.X<0&&N.provider.md.wc&&Mdb(N),N.C&&EL(N));k.CN&&Ww(k);k.md.Yz&&!k.videoData.backgroundable&&k.mediaElement&&!k.vG()&&(k.isBackground()&&k.mediaElement.Dp()?(k.FJ("bgmobile",{suspend:1}),k.jF(!0,!0)):k.isBackground()||wM(k)&&k.FJ("bgmobile",{resume:1}))}; this.vC={X1:function(N){k.X1(N)}, x0n:function(N){k.gC=N}, zIB:function(){return k.h3}, Y7:function(){return k.WN}, Iu:function(){return k.tX}, BWb:function(){return k.YK}, SDd:function(){return k.j0}, oZJ:function(){}, U:function(){return k.md}, Zc:function(){return k.mediaElement}, HLr:function(N){k.l5(N)}, LE1:function(){return k.aJ}}; this.logger.debug(function(){return"creating, type "+B}); this.gZ=new PSB(this.md);this.g_=new xgz(this.md,this.aJ,this);this.Zs=new g.qP(function(){return k.getCurrentTime()},function(){return k.getPlaybackRate()},function(){return k.getPlayerState()},function(N,d){N!==g.hm("endcr")||g.F(k.playerState,32)||k.Ag(); x(N,d,k.playerType)},function(N,d){g.AC(k.videoData)&&k.FJ(N,d)}); g.X(this,this.Zs);g.X(this,this.Ld);iOH(this,K);this.videoData.subscribe("dataupdated",this.lHJ,this);this.videoData.subscribe("dataloaded",this.Qy,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.FJ,this);this.videoData.subscribe("ctmpstr",this.PF,this);this.aq();L0g(this.Ry);this.visibility.subscribe("visibilitystatechange",this.Ry);this.YK=new g.J8(this.U7,g.kf(this.md.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.j0= new g.J8(this.U7,g.kf(this.md.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.rP=new g.M1(this.Cf,g.kf(this.md.experiments,"html5_progress_event_throttle_ms")||350,this);g.X(this,this.rP)}; iOH=function(G,B){if(G.playerType===2||G.md.dW)B.lZ=!0;var a=sVz(B.m3,B.Nl,G.md.G,G.md.W);a&&(B.adFormat=a);G.playerType===2&&(B.Ds=!0);if(G.isFullscreen()||G.md.G)a=g.SL("yt-player-autonavstate"),B.autonavState=a||(G.md.G?2:G.videoData.autonavState);B.endSeconds&&B.endSeconds>B.startSeconds&&G8(G,B.endSeconds)}; P2V=function(G){RpB(G.h3);g.WW(G.h3);for(var B=G.WN,a=g.m(B.j.values()),V=a.next();!V.done;V=a.next())RpB(V.value);B.j.clear();g.WW(G.WN)}; odz=function(G){var B=G.videoData;A6b(G).then(void 0,function(a){G.videoData!==B||B.TH()||(a=n1(a),a.errorCode==="auth"&&G.videoData.errorDetail?G.Ev(a.errorCode,2,unescape(G.videoData.errorReason),b5(a.details),G.videoData.errorDetail,G.videoData.If||void 0):G.handleError(a))})}; BoV=function(G){if(!g.F(G.playerState,128))if(G.videoData.isLoaded(),G.logger.debug("finished loading playback data"),G.vB=g.Gv(G.videoData.GH),g.EN(G.videoData)){G.Ti.tick("bpd_s");l2(G).then(function(){G.Ti.tick("bpd_c");if(!G.TH()){G.tJ&&(G.R0(h5(h5(G.playerState,512),1)),wM(G));var V=G.videoData;V.endSeconds&&V.endSeconds>V.startSeconds&&G8(G,V.endSeconds);G.gK.finished=!0;kd(G,"dataloaded");G.DI.Em()&&MRV(G);UgB(G.g_,G.dG)}}); G.S("html5_log_media_perf_info")&&G.FJ("loudness",{v:G.videoData.XQ.toFixed(3)},!0);var B,a=(B=G.mediaElement)==null?void 0:B.dO();if(a&&"disablePictureInPicture"in a&&G.md.SF)try{a.disablePictureInPicture=G.md.ou&&!G.videoData.backgroundable}catch(V){g.Zb(V)}GJY(G)}else kd(G,"dataloaded")}; l2=function(G){NA(G);G.dG=null;var B=Mx9(G.md,G.videoData,G.vG());G.a7=B;G.a7.then(function(a){aMB(G,a)},function(a){G.TH()||(a=n1(a),G.visibility.isBackground()?(dM(G,"vp_none_avail"),G.a7=null,G.gK.reset()):(G.gK.finished=!0,G.Ev(a.errorCode,a.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",b5(a.details))))}); return B}; aMB=function(G,B){if(!G.TH()&&!B.videoData.TH()){G.logger.debug("finished building playback data");G.dG=B;tRK(G.Ld,G.dG);if(G.videoData.isLivePlayback){var a=VA9(G.qQ.PM,G.videoData.videoId)||G.CN&&!isNaN(G.CN.HS);a=G.S("html5_onesie_live")&&a;oa(G)||G.videoData.wO>0&&!NJ(G.videoData)||a||G.seekTo(G.LD(),{Tt:"videoplayer_playbackData",seekSource:18})}if(G.videoData.C.j){if(G.S("html5_sabr_report_missing_url_as_error")&&gG_(G.videoData)){G.handleError(new yH("fmt.missing",{missabrurl:"1"},2));return}G.CN? g.Zb(Error("Duplicated Loader")):(a=g.kf(G.md.experiments,"html5_onesie_defer_content_loader_ms"))&&G.Oa()&&VA9(G.qQ.PM,G.videoData.gM)?g.z9(function(){G.TH()||G.CN||xnb(G)},a):xnb(G)}else!G.videoData.C.j&&TC(G.videoData)&&G.Jj(new kM(G.videoData.videoId||"",4)); G.q4();CbV(B).then(function(){var V={};G.xv(V);G.md.Ef()&&G.S("html5_log_media_perf_info")&&G.FJ("av1Info",V);Ww(G)})}}; MRV=function(G){G.TH();G.logger.debug("try finish readying playback");if(G.DI.finished)G.logger.debug("already finished readying");else if(G.gK.finished)if(g.F(G.playerState,128))G.logger.debug("cannot finish readying because of error");else if(G.vB.length)G.logger.debug(function(){return"cannot finish readying because of pending preroll: "+G.vB}); else if(G.Zs.started||Apb(G.Zs),G.KE())G.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{G.CN&&(G.eG=gpA(G.CN.timing));G.DI.finished||(G.DI.finished=!0);var B=G.S("html5_onesie_live")&&G.CN&&!isNaN(G.CN.HS);!G.videoData.isLivePlayback||G.videoData.wO>0&&!NJ(G.videoData)||B||oa(G)||(G.logger.debug("seek to head for live"),G.seekTo(Infinity,{Tt:"videoplayer_readying",seekSource:18}),G.isBackground()&&(G.Jw=!0));HWV(G.Kh());G.logger.debug("finished readying playback"); G.publish("playbackready",G);QD("pl_c",G.Ti.timerName)||(G.Ti.tick("pl_c"),TG("pl_c",void 0,"video_to_ad"));QD("pbr",G.Ti.timerName)||(G.Ti.tick("pbr"),TG("pbr",void 0,"video_to_ad"))}else G.logger.debug("playback data not loaded")}; G8=function(G,B){G.CF&&hkB(G);G.CF=new g.V1(B*1E3,0x7ffffffffffff);G.CF.namespace="endcr";G.addCueRange(G.CF)}; hkB=function(G){G.removeCueRange(G.CF);G.CF=null}; ekV=function(G,B,a,V,x){var h=G.Kh(x),e=g.AC(G.videoData)?h.getVideoData():G.videoData;e.X=a;var w=g.CO(G);a=new VdV(e,a,B,w?w.itag:"",V);G.md.experiments.Or("html5_refactor_sabr_video_format_selection_logging")?(a.videoId=x,G.Qt=a):h.Nb(a);x=G.g_;x.X=0;x.j=0;G.publish("internalvideoformatchange",e,B==="m")}; g.CO=function(G){var B=z8(G);return xh(B)||!G.dG?null:g.JJ(G.dG.j.videoInfos,function(a){return B.G(a)})}; z8=function(G){if(G.dG){var B=G.g_;var a=G.dG;G=G.dn();var V=W6V(B);if(xh(V)){if(V=hcK(B,a).compose(ko_(B,a)).compose(dgA(B,a)).compose(gJH(B,a.videoData)).compose(pIB(B,a.videoData,a)).compose(zh(B,a)).compose(K6c(B,a)),xh(G)||B.S("html5_apply_pbr_cap_for_drm"))V=V.compose(lgK(B,a))}else B.S("html5_perf_cap_override_sticky")&&(V=V.compose(zh(B,a))),B.S("html5_ustreamer_cap_override_sticky")&&(V=V.compose(lgK(B,a)));V=V.compose(K6c(B,a));B=a.videoData.DA.compose(V).compose(a.videoData.xm).compose(G)}else B= L$;return B}; Eiz=function(G){var B=G.g_;G=G.videoData;var a=gJH(B,G);B.S("html5_disable_client_autonav_cap_for_onesie")||a.compose(pIB(B,G));return a}; Ww=function(G){if(G.videoData.C&&G.videoData.C.j){var B=z8(G);G.CN&&mJK(G.CN,B)}}; WMz=function(G){var B;return!!(G.S("html5_native_audio_track_switching")&&g.It&&((B=G.videoData.X)==null?0:op(B)))}; w$K=function(G){if(!WMz(G))return!1;var B;G=(B=G.mediaElement)==null?void 0:B.audioTracks();return!!(G&&G.length>1)}; lMB=function(G){var B=KMA(G);if(B)return G.videoData.getAvailableAudioTracks().find(function(a){return a.VW.getName()===B})}; KMA=function(G){var B;if(G=(B=G.mediaElement)==null?void 0:B.audioTracks())for(B=0;B0&&(B.iz=V.Xo)); B.Gn=V.d_;B.W0=fw(a,{},V.C||void 0,hQ(V));B.Vb=xX(V)&&g.rv(a);eO(V)&&(B.PD=!0,a.S("html5_sabr_report_partial_segment_estimated_duration")&&(B.LQ=!0),B.j=!0,B.I1=a.S("html5_sabr_enable_utc_seek_requests"),B.M4=a.S("html5_sabr_enable_live_clock_offset"),B.gt=a.S("html5_disable_client_resume_policy_for_sabr"),B.DA=a.S("html5_trigger_loader_when_idle_network"),B.TL=a.S("html5_sabr_parse_live_metadata_playback_boundaries"),B.LZ=a.S("html5_enable_platform_backpressure_with_sabr"),B.xz=a.S("html5_consume_onesie_next_request_policy_for_sabr"), B.pQ=a.S("html5_sabr_report_next_ad_break_time"),B.Wm=a.S("html5_log_high_res_buffer_timeline")&&a.Ef(),B.CQ=a.S("html5_remove_stuck_slices_beyond_max_buffer_limits"),B.mT=a.S("html5_gapless_sabr_btl_last_slice")&&V3(V),B.O9=a.S("html5_reset_last_appended_slice_on_seek")&&V3(V),NJ(V)?(B.Ig=!0,B.Yz=a.S("html5_disable_variability_tracker_for_live"),B.Ur=a.S("html5_sabr_use_accurate_slice_info_params"),a.S("html5_simplified_backup_timeout_sabr_live")&&(B.Lk=!0,B.Da=B.D6)):B.fd=a.S("html5_probe_request_on_sabr_request_progress"), B.Wy=a.S("html5_serve_start_seconds_seek_for_post_live_sabr"),B.xF=a.S("html5_flush_index_on_updated_timestamp_offset"),B.Qb=a.S("html5_enable_sabr_request_pipelining")&&!g.AC(V),B.RY=a.S("html5_ignore_partial_segment_from_live_readahead"),B.ji=a.S("html5_use_non_active_broadcast_for_post_live"),B.Zx=a.S("html5_use_centralized_player_time"),B.e$=a.S("html5_consume_onesie_sabr_seek"),B.XJ=a.S("html5_enable_sabr_seek_loader_refactor"),B.YP=a.S("html5_update_segment_start_time_from_media_header"),V.enableServerStitchedDai&& (B.B=!0,B.Q3=a.S("html5_reset_server_stitch_state_for_non_sabr_seek"),B.qp=a.S("html5_remove_ssdai_append_pause"),B.MB=a.S("html5_consume_ssdai_info_with_streaming"),B.Ru=a.S("html5_process_all_cuepoints"),B.Vg=a.S("html5_ssdai_log_ssevt_in_loader")),B.UD=a.Ef()||V.cn());B.L=B.j&&a.S("html5_sabr_live");B.fh=g.mc_(V);I1(a.B,gf.BITRATE)&&(B.NB=NaN);if(w=g.kf(a.experiments,"html5_request_size_max_kb"))B.qB=w*1024;a.B.B?B.wc="; "+gf.EXPERIMENTAL.name+"=allowed":a.S("html5_enable_cobalt_tunnel_mode")&& (B.wc="; tunnelmode=true");w=V.serverPlaybackStartConfig;(w==null?0:w.enable)&&(w==null?0:w.playbackStartPolicy)&&(B.XQ=!0,FW(B,w.playbackStartPolicy,2));w=kJY(G);G.FH.removeAll();a:{a=G.qQ.PM;if(V=G.videoData.videoId)if(x=a.j.get(V)){a.j.remove(V);a=x;break a}a=void 0}G.CN=new g.Mg(G,G.md.schedule,B,G.videoData.j,G.videoData.C,z8(G),w,G.videoData.enableServerStitchedDai,a,G.videoData.qB);B=G.videoData.S("html5_disable_preload_for_ssdai_with_preroll")&&G.videoData.isLivePlayback&&G.Oa()?!0:G.tJ&& g.yI(G.md)&&G.videoData.isLivePlayback;G.CN.initialize(G.getCurrentTime(),z8(G),B);G.videoData.probeUrl&&(G.CN.Ur=G.videoData.probeUrl);if(G.vB.length||G.tJ)G.videoData.cotn||t6(G,!1);IYg(G.Ld,G.CN);G.EZ&&(qNz(G.CN,new g.Vn(G.EZ)),G.FJ("sdai",{sdl:1}));G.F5&&(G.CN.hg(G.F5),G.Ld.V=!1);g.oS(G.videoData)&&(G=G.CN,G.policy.H9=G.policy.sz)}; NA=function(G){G.CN&&(G.CN.dispose(),G.CN=null,IYg(G.Ld,null));G.ZU()?Noy(G):G.Zq()}; Noy=function(G){if(G.tX)if(G.logger.debug("release media source"),G.d8(),G.tX.B)try{G.md.Ef()&&G.FJ("rms",{l:"vprms",sr:G.ZU(),rs:Aj(G.tX)});G.tX.clear();var B;(B=G.mediaElement)!=null&&(B.X=G.tX);G.tX=null}catch(a){B=new g.FI("Error while clearing Media Source in VideoPlayer: "+a.name+", "+a.message),B=n1(B),G.handleError(B),G.Zq()}else G.Zq()}; dn9=function(G,B){B=B===void 0?!1:B;if(G.tX)return G.tX.C;G.logger.debug("update media source");a:{B=B===void 0?!1:B;try{g.T9()&&G.videoData.eA()&&ZYy(G.mediaElement);var a=G.mediaElement.Iu(G.Ly(),G.MS())}catch(x){if(iuK(G.q$,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",x);G.Ev("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}G.Wc(a,!1,!1,B)}var V;return((V=G.Iu())==null?void 0:V.C)||null}; Cdb=function(G,B){B=B===void 0?!1:B;if(G.CN){G.S("html5_keep_ssdai_avsync_in_loader_track")&&sSA(G.CN);var a=G.getCurrentTime()-G.F3();G.CN.seek(a,{Wo:B}).yC(function(){})}else xnb(G)}; tAy=function(G,B,a,V){a=a===void 0?!1:a;V=V===void 0?!1:V;if(G.tX&&(!B||G.tX===B)){G.logger.debug("media source opened");var x=G.getDuration();!x&&NJ(G.videoData)&&(x=25200);if(G.tX.isView){var h=x;G.logger.debug(function(){return"Set media source duration to "+h+", video duration "+x}); h>G.tX.getDuration()&&zkB(G,h)}else zkB(G,x);Cvx(G.CN,G.tX,a,V);G.publish("mediasourceattached")}}; zkB=function(G,B){if(G.tX){G.tX.Qf(B);var a;(a=G.CN)!=null&&a.policy.Zx&&(a.L=B)}}; gXB=function(G,B){ekV(G,B.reason,B.j.info,B.token,B.videoId)}; mnc=function(G,B){G.md.experiments.Or("enable_adb_handling_in_sabr")&&(G.pauseVideo(!0),G.Oq(),B&&G.Ev("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; kd=function(G,B){G.publish("internalvideodatachange",B===void 0?"dataupdated":B,G,G.videoData)}; IMB=function(G){var B="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");G.S("html5_remove_progress_event_listener")||(B.push("progress"),B.push("suspend"));B=g.m(B);for(var a=B.next();!a.done;a=B.next())G.sB.K(G.mediaElement,a.value,G.l5,G);G.md.Wh&&G.mediaElement.df()&&(G.sB.K(G.mediaElement,"webkitplaybacktargetavailabilitychanged",G.RPX,G),G.sB.K(G.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",G.dQS, G))}; p$B=function(G){g.Ih(G.mR);gzX(G)||(G.mR=g.tM(function(){return gzX(G)},100))}; gzX=function(G){var B=G.mediaElement;B&&G.Gp&&!G.videoData.HS&&!QD("vfp",G.Ti.timerName)&&B.fk()>=2&&!B.isEnded()&&lV(B.yk())>0&&G.Ti.tick("vfp");return(B=G.mediaElement)&&!G.videoData.HS&&B.getDuration()>0&&(B.isPaused()&&B.fk()>=2&&lV(B.yk())>0&&(QD("pbp",G.Ti.timerName)||G.Ti.tick("pbp"),!G.videoData.Ru||G.lP||B.isSeeking()||(G.lP=!0,G.publish("onPlaybackPauseAtStart"))),B=B.getCurrentTime(),uS(G.gZ,B))?(G.vI(),!0):!1}; Ovb=function(G){G.Kh().OA();if(kX(G.videoData)&&Date.now()>G.Ee+6283){if(!(!G.isAtLiveHead()||G.videoData.j&&mw(G.videoData.j))){var B=G.Kh();if(B.qoe){B=B.qoe;var a=B.provider.jJ.yx(),V=g.mR(B.provider);sDg(B,V,a);a=a.C;isNaN(a)||g.UL(B,V,"e2el",[a.toFixed(3)])}}G.S("html5_alc_live_log_rawlat")?(B=G.videoData,B=g.jQ(B.U())?!0:g.J3(B.U())?B.RY==="6":!1):B=g.jQ(G.md);B&&G.FJ("rawlat",{l:xd(G.kE,"rawlivelatency").toFixed(3)});G.Ee=Date.now()}G.videoData.X&&op(G.videoData.X)&&(B=G.fK())&&B.videoHeight!== G.Hz&&(G.Hz=B.videoHeight,ekV(G,"a",Unc(G,G.videoData.Dx)))}; Unc=function(G,B){if(B.j.video.quality==="auto"&&op(B.getInfo())&&G.videoData.R4)for(var a=g.m(G.videoData.R4),V=a.next();!V.done;V=a.next())if(V=V.value,V.getHeight()===G.Hz&&V.j.video.quality!=="auto")return V.getInfo();return B.getInfo()}; Yk9=function(G){if(!kX(G.videoData))return NaN;var B=0;G.CN&&G.videoData.j&&(B=NJ(G.videoData)?G.CN.Fd.cG()||0:G.videoData.j.GH);return(0,g.yT)()/1E3-G.lJ()-B}; jsz=function(G){G.mediaElement&&G.mediaElement.vG()&&(G.W2=(0,g.yT)());G.md.pc?g.z9(function(){Ezg(G)},0):Ezg(G)}; Ezg=function(G){var B;if((B=G.tX)==null||!B.pG()){if(G.mediaElement)try{G.YM=G.mediaElement.playVideo()}catch(V){dM(G,"err."+V)}if(G.YM){var a=G.YM;a.then(void 0,function(V){G.logger.debug(function(){return"playMediaElement failed: "+V}); if(!g.F(G.playerState,4)&&!g.F(G.playerState,256)&&G.YM===a)if(V&&V.name==="AbortError"&&V.message&&V.message.includes("load"))G.logger.debug(function(){return"ignore play media element failure: "+V.message}); else{var x="promise";V&&V.name&&(x+=";m."+V.name);dM(G,x);G.hR=!0;G.videoData.L3=!0}})}}}; dM=function(G,B){g.F(G.playerState,128)||(G.R0(WN(G.playerState,1028,9)),G.FJ("dompaused",{r:B}),G.publish("onAutoplayBlocked"))}; wM=function(G,B){B=B===void 0?!1:B;if(!G.mediaElement||!G.videoData.C)return!1;var a=B;a=a===void 0?!1:a;var V=null;var x;if((x=G.videoData.C)==null?0:x.j){V=dn9(G,a);var h;(h=G.CN)==null||h.resume()}else NA(G),G.videoData.Dx&&(V=G.videoData.Dx.V9());x=G.mediaElement.Dp();a=!1;x&&x.Wx(V)||(bvb(G,V),a=!0);g.F(G.playerState,2)||(V=G.Ld,B=B===void 0?!1:B,V.B||!(V.G>0)||V.mediaElement&&V.mediaElement.getCurrentTime()>0||(B={Tt:"seektimeline_resumeTime",Wo:B},V.videoData.HS||(B.seekSource=15),V.seekTo(V.G, B)));a:{B=a;if(eO(G.videoData)){if(!G.videoData.LM())break a}else if(!g.gB(G.videoData))break a;if(G.mediaElement)if((V=G.videoData.B)&&G.mediaElement.df()){x=G.mediaElement.dO();if(G.gC)if(x!==G.gC.element)m4(G);else if(B&&V.flavor==="fairplay"&&!sq())m4(G);else break a;if(G.S("html5_report_error_for_unsupported_tvos_widevine")&&sq()&&V.flavor==="widevine")G.Ev("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{G.gC=new SCB(x,G.videoData,G.md);G.gC.subscribe("licenseerror", G.WX,G);G.gC.subscribe("qualitychange",G.j4S,G);G.gC.subscribe("heartbeatparams",G.T5,G);G.gC.subscribe("keystatuseschange",G.X1,G);G.gC.subscribe("ctmp",G.FJ,G);G.S("html5_widevine_use_fake_pssh")&&!G.videoData.isLivePlayback&&V.flavor==="widevine"&&G.gC.jM(new lU(yab,"cenc",!1));B=g.m(G.FH.keys);for(V=B.next();!V.done;V=B.next())V=G.FH.get(V.value),G.gC.jM(V);G.S("html5_eme_loader_sync")||G.FH.removeAll()}}else G.Ev("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return a}; bvb=function(G,B){G.Ti.tick("vta");TG("vta",void 0,"video_to_ad");G.getCurrentTime()>0&&OOV(G.Ld,G.getCurrentTime());G.mediaElement.activate(B);G.tX&&BL(0,4);!G.videoData.HS&&G.playerState.isOrWillBePlaying()&&G.jX.start();if(WMz(G)){var a;if(B=(a=G.mediaElement)==null?void 0:a.audioTracks())B.onchange=function(){G.publish("internalaudioformatchange",G.videoData,!0)}}}; m4=function(G){G.gC&&(G.gC.dispose(),G.gC=null)}; caV=function(G){var B=B===void 0?!1:B;G.logger.debug("reattachVideoSource");G.mediaElement&&(G.tX?(m4(G),G.Zq(),dn9(G,B)):(G.videoData.Dx&&G.videoData.Dx.ET(),G.mediaElement.stopVideo()),G.playVideo())}; nzK=function(G,B){G.md.S("html5_log_rebuffer_reason")&&(B={r:B,lact:cD()},G.mediaElement&&(B.bh=MZ(G.mediaElement)),G.FJ("bufreason",B))}; fMH=function(G,B){if(G.md.Ef()&&G.mediaElement){var a=G.mediaElement.Nd();a.omt=(G.mediaElement.getCurrentTime()+G.F3()).toFixed(3);a.ps=G.playerState.state.toString(16);a.rt=(g.mR(G.Kh().provider)*1E3).toFixed();a.e=B;G.Fn[G.IQ++%5]=a}try{if(B==="timeupdate"||B==="progress")return}catch(V){}G.logger.debug(function(){return"video element event "+B})}; HvH=function(G){if(G.md.Ef()){G.Fn.sort(function(V,x){return+V.rt-+x.rt}); for(var B=g.m(G.Fn),a=B.next();!a.done;a=B.next())a=a.value,G.FJ("vpe",Object.assign({t:a.rt},a));G.Fn=[];G.IQ=0}}; vzx=function(G){if(g.QZ("cobalt")&&g.QZ("nintendo switch")){var B=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;G.FJ("nxdock",{d:B})}}; t6=function(G,B){var a;(a=G.CN)==null||BQ(a,B)}; F0X=function(G,B){return g.AC(G.videoData)&&G.F5?G.F5.handleError(B,void 0):!1}; GJY=function(G){lv(G.videoData,"html5_set_debugging_opt_in")&&(G=g.qe(),g.uP(0,183)||(LU(183,!0),G.save()))}; DnX=function(G){return g.AC(G.videoData)&&G.F5?JG(G.F5):G.videoData.LD()}; JQH=function(G,B){G.qQ.AI()||(G.FJ("sgap",{f:B}),G.qQ.clearQueue(!1,B==="pe"))}; oa=function(G){return G.S("html5_disable_video_player_initiated_seeks")&&eO(G.videoData)}; Spb=function(G){iq.call(this,G);var B=this;this.events=new g.Zh(G);g.X(this,this.events);WE(this.api,"isLifaAdPlaying",function(){return B.api.isLifaAdPlaying()}); this.events.K(G,"serverstitchedvideochange",function(){var a;(a=B.api.getVideoData())!=null&&a.cn()&&(B.api.isLifaAdPlaying()?(B.playbackRate=B.api.getPlaybackRate(),B.api.setPlaybackRate(1)):B.api.setPlaybackRate(B.playbackRate))}); this.playbackRate=1}; Rkz=function(G){iq.call(this,G);var B=this;this.events=new g.Zh(G);g.X(this,this.events);WE(this.api,"seekToChapterWithAnimation",function(a){B.seekToChapterWithAnimation(a)}); WE(this.api,"seekToTimeWithAnimation",function(a,V){B.seekToTimeWithAnimation(a,V)}); WE(this.api,"renderChapterSeekingAnimation",function(a,V,x){B.api.renderChapterSeekingAnimation(a,V,x)}); WE(this.api,"setMacroMarkers",function(a){B.setMacroMarkers(G,a)}); WE(this.api,"changeMarkerVisibility",function(a,V,x){B.changeMarkerVisibility(a,V,x)}); WE(this.api,"isSameMarkerTypeVisible",function(a){return B.isSameMarkerTypeVisible(a)})}; Zvc=function(G,B,a){var V=G.api.getCurrentTime()*1E30&&x>0&&(a.width+=x,g.K4(B.element,"width",a.width+"px")));G.size=a}}; g.SR=function(G,B){var a=G.j[G.j.length-1];a!==B&&(G.j.push(B),wgX(G,a,B))}; g.Ri=function(G){if(!(G.j.length<=1)){var B=G.j.pop(),a=G.j[0];G.j=[a];wgX(G,B,a,!0)}}; wgX=function(G,B,a,V){K_B(G);B&&(B.unsubscribe("size-change",G.HK,G),B.unsubscribe("back",G.dR,G));a.subscribe("size-change",G.HK,G);a.subscribe("back",G.dR,G);if(G.Rt){g.hi(a.element,V?"ytp-panel-animate-back":"ytp-panel-animate-forward");a.iL(G.element);a.focus();G.element.scrollLeft=0;G.element.scrollTop=0;var x=G.size;W_y(G);g.p4(G.element,x);G.L=new g.J8(function(){lVA(G,B,a,V)},20,G); G.L.start()}else a.iL(G.element),B&&B.detach()}; lVA=function(G,B,a,V){G.L.dispose();G.L=null;g.hi(G.element,"ytp-popup-animating");V?(g.hi(B.element,"ytp-panel-animate-forward"),g.WC(a.element,"ytp-panel-animate-back")):(g.hi(B.element,"ytp-panel-animate-back"),g.WC(a.element,"ytp-panel-animate-forward"));g.p4(G.element,G.size);G.W=new g.J8(function(){g.WC(G.element,"ytp-popup-animating");B.detach();g.wi(B.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);G.W.dispose();G.W=null},250,G); G.W.start()}; K_B=function(G){G.L&&g.PG(G.L);G.W&&g.PG(G.W)}; ZY=function(G){g.DY.call(this,G,"ytp-shopping-product-menu");this.oG=new g.Hw(this.T);g.X(this,this.oG);this.hide();g.SR(this,this.oG);g.SX(this.T,this.element,4)}; Nqy=function(G,B,a){var V,x=B==null?void 0:(V=B.text)==null?void 0:V.simpleText;x&&(a=kxc(G,a,x,B==null?void 0:B.icon,B==null?void 0:B.secondaryIcon),B.navigationEndpoint&&a.listen("click",function(){G.T.pN("innertubeCommand",B.navigationEndpoint);G.hide()},G))}; dmc=function(G,B,a){var V,x=B==null?void 0:(V=B.text)==null?void 0:V.simpleText;x&&kxc(G,a,x,B==null?void 0:B.icon).listen("click",function(){var h;(B==null?void 0:(h=B.icon)==null?void 0:h.iconType)==="HIDE"?G.T.publish("featuredproductdismissed"):B.serviceEndpoint&&G.T.pN("innertubeCommand",B.serviceEndpoint);G.hide()},G)}; kxc=function(G,B,a,V,x){B=new g.Fq(g.JK({},[],!1,!!x),B,a);x&&B.updateValue("secondaryIcon",CiK(x));B.setIcon(CiK(V));g.X(G,B);G.oG.WC(B,!0);return B}; CiK=function(G){if(!G)return null;switch(G.iconType){case "ACCOUNT_CIRCLE":return{Z:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Z:"path",N:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{Z:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Z:"path",N:{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 HNz();case "HIDE":return{Z:"svg",N:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Z:"g",D:[{Z:"path",N:{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 be()}}; rM=function(G){nO.call(this,G,!1,!0);this.isCounterfactual=this.X=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.V=!0;this.overflowButton=new g.T({Z:"button",bL:["ytp-featured-product-overflow-icon","ytp-button"],N:{"aria-haspopup":"true"}});this.overflowButton.hide();g.X(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.T({Z:"img",J:"ytp-suggested-action-badge-img",N:{src:"{{url}}"}}); this.thumbnailImage.hide();g.X(this,this.thumbnailImage);this.thumbnailIcon=new g.T({Z:"div",J:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.X(this,this.thumbnailIcon);this.banner=new g.T({Z:"a",J:"ytp-suggested-action-container",D:[this.thumbnailImage,this.thumbnailIcon,{Z:"div",J:"ytp-suggested-action-details",D:[{Z:"text",J:"ytp-suggested-action-title",cS:"{{title}}"},{Z:"text",J:"ytp-suggested-action-subtitle",cS:"{{subtitle}}"},{Z:"text",J:"ytp-suggested-action-metadata-text", cS:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.X(this,this.banner);this.banner.iL(this.C.element);this.K(this.T,"videodatachange",this.onVideoDataChange);this.K(this.T,g.hm("suggested_action_view_model"),this.P6d);this.K(this.T,g.ew("suggested_action_view_model"),this.nWf);this.K(this.overflowButton.element,"click",this.JB);this.K(G,"featuredproductdismissed",this.NZ);this.T.createServerVe(this.banner.element,this.banner,!0)}; zHg=function(G){G.isInitialized&&(G.enabled=G.isVisible,G.XJ=G.isVisible,cw(G),G.Re(),G.thumbnailImage.zt(G.isVisible),G.shouldHideDismissButton||G.dismissButton.zt(G.isVisible),G.shouldShowOverflowButton&&G.overflowButton.zt(G.isVisible))}; $d=function(){rM.apply(this,arguments)}; t1B=function(G){iq.call(this,G);this.j=new $d(this.api);g.X(this,this.j);g.SX(this.api,this.j.element,4)}; XY=function(G){iq.call(this,G);var B=this;this.j="";this.C=!0;this.X=this.api.S("html5_enable_audio_track_stickiness_phase_two");var a=new g.Zh(G);g.X(this,a);a.K(G,"internalaudioformatchange",function(V,x){mmB(B,V,x)}); a.K(G,"videoplayerreset",function(){IVA(B)}); a.K(G,"videodatachange",function(V,x){B.onVideoDataChange(V,x)})}; mmB=function(G,B,a){if(a){var V="";g7x(G,B)&&(V=B,G.X||(G.j=B),G.api.S("html5_sabr_enable_server_xtag_selection")&&(a=G.api.getVideoData(void 0,!0)))&&(a.SF=B);if(G.X&&V&&pgy(G,V)){var x;d2(xi(G.api.U(),(x=G.api.getVideoData())==null?void 0:g.uv(x)),function(h){Umx(G,V,h)})}}}; IVA=function(G){if(G.j)OMb(G);else{var B;if(G.X&&((B=QC())==null?0:B.size)){var a;d2(xi(G.api.U(),(a=G.api.getVideoData())==null?void 0:g.uv(a)),function(V){if((V=E7y(V))&&pgy(G,V)){var x=G.api.getVideoData(void 0,!0);x&&(x.SF=V)}})}}}; OMb=function(G){var B=G.api.getVideoData(void 0,!0);B&&(B.SF=G.j)}; Umx=function(G,B,a){E7y(a)!==B&&(j_B([{settingItemId:qA(a),settingOptionValue:{stringValue:B}}]),d2(G.pM(),function(V){CYg(V,qA(a),{stringValue:B})}))}; bM_=function(G,B){Ch(d2(d2(G.pM(),function(a){return Nz_(a,[qA(B)])}),function(a){if(a){a=g.m(a); for(var V=a.next();!V.done;V=a.next()){var x=V.value;V=x.key;x=x.value;V&&x&&j_B([{settingItemId:V,settingOptionValue:x}])}}}),function(){G.C=!0})}; g7x=function(G,B){G=G.api.getAvailableAudioTracks();G=g.m(G);for(var a=G.next();!a.done;a=G.next())if(a=a.value,a.getLanguageInfo().getId()===B)return a;return null}; E7y=function(G){G=qA(G);var B=QC();G=B?B.get(G):void 0;return G&&G.stringValue?G.stringValue:""}; qA=function(G){var B=(484).toString();G&&(B=(483).toString());return B}; pgy=function(G,B){var a;return B.split(".")[0]!==""&&((a=G.api.getVideoData())==null?void 0:!L9(a))}; j_B=function(G){var B=QC();B||(B=new Map);G=g.m(G);for(var a=G.next();!a.done;a=G.next())a=a.value,B.set(a.settingItemId,a.settingOptionValue);B=JSON.stringify(Object.fromEntries(B));g.D0("yt-player-user-settings",B,2592E3)}; g.u2=function(G,B,a,V,x,h,e){g.Fq.call(this,g.JK({"aria-haspopup":"true"}),B,G);this.Gi=V;this.V=!1;this.C=null;this.options={};this.X=new g.Hw(a,void 0,G,x,h,e);g.X(this,this.X);this.listen("keydown",this.tB);this.listen("click",this.open)}; yeg=function(G){if(G.C){var B=G.options[G.C];B.element.getAttribute("aria-checked");B.element.setAttribute("aria-checked","false");G.C=null}}; ceK=function(G,B){g.u2.call(this,"Temporizador de apagado",g.KP.SLEEP_TIMER,G,B);this.T=G;this.Y={};this.L=this.JU("Off");this.W=this.j="";G.S("web_settings_menu_icons")&&this.setIcon({Z:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Z:"path",N:{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.G=new g.T({Z:"div",bL:["ytp-menuitem-label-wrapper"],D:[{Z:"div",cS:"Fin del video"},{Z:"div",bL:["ytp-menuitem-sublabel"],cS:"{{content}}"}]});g.X(this,this.G);this.listen("click",this.onClick);this.K(G,"videodatachange",this.onVideoDataChange);this.K(G,"presentingplayerstatechange",this.uL);this.K(G,"settingsMenuVisibilityChanged",this.Z3X);G.createClientVe(this.element,this,218889);this.uL();this.T.pN("onSleepTimerFeatureAvailable")}; n79=function(G){var B="Off 10 15 20 30 45 60".split(" "),a;((a=G.T.getVideoData())==null?0:a.isLivePlayback)||B.push("End of video");a=G.T.getPlaylist();var V;a&&((V=a.listId)==null?void 0:V.type)!=="RD"&&B.push("End of playlist");G.Qm(g.br(B,G.JU));G.Y=g.NU(B,G.JU,G);B=G.JU("End of video");G.options[B]&&g.sc(G.options[B],G.G)}; fVX=function(G,B){var a=G.Y[B],V=a==="End of video"||a==="End of playlist";a==="Off"&&(G.j="");G.T.getPlayerState()!==0&&G.T.getPlayerState()!==5||!V?(G.L=B,g.u2.prototype.Qk.call(G,B),G.o8(B),G.T.pN("onSleepTimerSettingsChanged",a)):G.T.pN("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; Q9=function(G){iq.call(this,G);var B=this;G.addEventListener("settingsMenuInitialized",function(){B.menuItem||(B.menuItem=new ceK(B.api,B.api.KG()),g.X(B,B.menuItem))}); G.addEventListener("openSettingsMenuItem",function(a){if(a==="menu_item_sleep_timer"){if(!B.menuItem){var V;(V=B.api.KG())==null||V.xW()}B.menuItem.open()}}); WE(G,"resetSleepTimerMenuSettings",function(){B.resetSleepTimerMenuSettings()}); WE(G,"setSleepTimerTimeLeft",function(a){B.setSleepTimerTimeLeft(a)}); WE(G,"setVideoTimeLeft",function(a){B.setVideoTimeLeft(a)})}; HMV=function(G){iq.call(this,G);var B=this;this.events=new g.Zh(G);g.X(this,this.events);this.events.K(G,"onSnackbarMessage",function(a){switch(a){case 1:a=B.api.getPlayerStateObject(),a.isBuffering()&&g.F(a,8)&&g.F(a,16)&&B.api.pN("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.T8=function(G,B,a,V,x){B=B===void 0?!1:B;V=V===void 0?!1:V;x=x===void 0?!1:x;g.wI.call(this);this.Y=x;this.W=!1;this.G=new yG(this);this.B=this.L=null;this.C=this.X=!1;g.X(this,this.G);this.target=G;this.j=B;this.V=a||G;this.W=V;B&&(g.Yj&&this.target.setAttribute("draggable","true"),x||(this.target.style.touchAction="none"));LO(this)}; sk=function(G){g.nU(G.G,!G.j)}; LO=function(G){G.B=null;G.L=null;G.K(FY("over"),G.kp);G.K("touchstart",G.TT);G.j&&G.K(FY("down"),G.j0L)}; v7B=function(G,B){for(var a=0;ax.start&&a>=5;p+=b}d=p.substr(0,4)+" "+p.substr(4,4)+" "+p.substr(8,4)+" "+(p.substr(12,4)+" "+p.substr(16,4))}else d="";e={video_id_and_cpn:String(B.videoId)+" / "+d,codecs:"", dims_and_frames:"",bandwidth_kbps:e.toFixed(0)+" Kbps",buffer_health_seconds:K.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:l?"":"display:none",drm:l,debug_info:a,extra_debug_info:"",bandwidth_style:N,network_activity_style:N,network_activity_bytes:w.toFixed(0)+" KB",shader_info:k,shader_info_style:k?"":"display:none",playback_categories:""};w=V.clientWidth+"x"+V.clientHeight+(x>1?"*"+x.toFixed(2):"");K="-";h.totalVideoFrames&&(K=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames); e.dims_and_frames=w+" / "+K;G=G.getVolume();w=tzV(B);var H;K=((H=B.G)==null?0:H.audio.j)?"DRC":Math.round(G*w)+"%";H=Math.round(G)+"% / "+K;G=B.XQ.toFixed(1);isFinite(Number(G))&&(H+=" (content loudness "+G+"dB)");e.volume=H;e.resolution=V.videoWidth+"x"+V.videoHeight;if(V=B.X){if(H=V.video)G=H.fps,G>1&&(e.resolution+="@"+G),(G=h.J_)&&G.video&&(e.resolution+=" / "+G.video.width+"x"+G.video.height,G.video.fps>1&&(e.resolution+="@"+G.video.fps)),e.codecs=re9(V),!B.G||V.audio&&V.video?V.vX&&(e.codecs+= " / "+V.vX+"A"):e.codecs+=" / "+re9(B.G),H.X||H.primaries?(G=H.X||"unknown",G==="smpte2084"?G+=" (PQ)":G==="arib-std-b67"&&(G+=" (HLG)"),e.color=G+" / "+(H.primaries||"unknown"),e.color_style=""):e.color_style="display:none";if(V.debugInfo)for(e.fmt_debug_info="",V=g.m(V.debugInfo),H=V.next();!H.done;H=V.next())H=H.value,e.fmt_debug_info+=H.label+":"+H.text+" ";e.fmt_debug_info_style=e.fmt_debug_info&&e.fmt_debug_info.length>0?"":"display:none"}V=B.isLivePlayback;H=B.Ai;e.live_mode_style=V||H?"": "display:none";e.live_latency_style=V?"":"display:none";if(H)e.live_mode="Post-Live"+(NJ(B)?" Manifestless":"");else if(V){H=h.ai;e.live_latency_secs=H.toFixed(2)+"s";V=NJ(B)?"Manifestless, ":"";B.LN&&(V+="Windowed, ");G="Uncertain";if(H>=0&&H<120)if(B.latencyClass&&B.latencyClass!=="UNKNOWN")switch(B.latencyClass){case "NORMAL":G="Optimized for Normal Latency";break;case "LOW":G="Optimized for Low Latency";break;case "ULTRALOW":G="Optimized for Ultra Low Latency";break;default:G="Unknown Latency Setting"}else G= B.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";V+=G;(H=h.Pi)&&(V+=", seq "+H.sequence);e.live_mode=V}!h.isGapless||V3(B)&&h.AI||(e.playback_categories+="Gapless ");e.playback_categories_style=e.playback_categories?"":"display:none";e.bandwidth_samples=h.uV;e.network_activity_samples=h.Bk;e.live_latency_samples=h.nz;e.buffer_health_samples=h.gD;h=g.oS(B);if(B.cotn||h)e.cotn_and_local_media=(B.cotn?B.cotn:"null")+" / "+h;e.cotn_and_local_media_style=e.cotn_and_local_media? "":"display:none";lv(B,"web_player_release_debug")?(e.release_name="youtube.player.web_20250304_00_RC00",e.release_style=""):e.release_style="display:none";e.debug_info&&C.length>0&&e.debug_info.length+C.length<=60?e.debug_info+=" "+C:e.extra_debug_info=C;e.extra_debug_info_style=e.extra_debug_info&&e.extra_debug_info.length>0?"":"display:none";return e}; re9=function(G){var B=/codecs="([^"]*)"/.exec(G.mimeType);return B&&B[1]?B[1]+" ("+G.itag+")":G.itag}; MA=function(G,B,a,V,x){g.T.call(this,{Z:"div",J:"ytp-horizonchart"});this.W=B;this.sampleCount=a;this.G=V;this.L=x;this.index=0;this.heightPx=-1;this.C=this.X=null;this.j=Math.round(G/a);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.W+"em"}; GJ=function(G,B){if(G.heightPx===-1){var a=null;try{a=g.M6("CANVAS"),G.X=a.getContext("2d")}catch(w){}if(G.X){var V=G.j*G.sampleCount;G.C=a;G.C.width=V;G.C.style.width=V+"px";G.element.appendChild(G.C)}else for(G.sampleCount=Math.floor(G.sampleCount/4),G.j*=4,a=0;a1?2:1,G.C.height=G.heightPx*a,G.C.style.height= G.heightPx+"px",G.X.scale(1,a)));B=g.m(B);for(V=B.next();!V.done;V=B.next()){a=G;var x=G.index,h=V.value;for(V=0;V+20&&g.aL(B.C.element);V.classList.add("ytp-timely-actions-overlay");B.C.element.appendChild(V)}); g.X(this,this.C);g.SX(this.api,this.C.element,4)}; M1K=function(G){G.timelyActions&&(G.G=G.timelyActions.reduce(function(B,a){if(a.cueRangeId===void 0)return B;B[a.cueRangeId]=0;return B},{}))}; xz=function(G,B){if(G.timelyActions){G=g.m(G.timelyActions);for(var a=G.next();!a.done;a=G.next())if(a=a.value,a.cueRangeId===B)return a}}; G19=function(G,B){if((G=xz(G,B))&&G.onCueRangeExit)return qT(G.onCueRangeExit)}; B7K=function(G){if(G.j!==void 0){var B=(B=xz(G,G.j))&&B.onCueRangeEnter?qT(B.onCueRangeEnter):void 0;var a=xz(G,G.j);if(a&&a.additionalTrigger){var V=!1;for(var x=g.m(a.additionalTrigger),h=x.next();!h.done;h=x.next())h=h.value,h.type&&h.args&&G.L[h.type]!==void 0&&(V=V||G.L[h.type](h.args))}else V=!0;B&&V&&(G.api.pN("innertubeCommand",B),G.setTimeout(a),G.G[G.j]!==void 0&&G.G[G.j]++,G.W=!0)}}; YFB=function(G,B){return G.X===void 0?!1:B.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(B.seekLengthMilliseconds)===5E3?G.X===72:B.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(B.seekLengthMilliseconds)===1E4?G.X===74:B.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(B.seekLengthMilliseconds)===5E3?G.X===71:B.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(B.seekLengthMilliseconds)===1E4?G.X===73:!1}; iMx=function(G){if(G=G.getWatchNextResponse()){var B,a;G=(B=G.playerOverlays)==null?void 0:(a=B.playerOverlayRenderer)==null?void 0:a.timelyActionsOverlayViewModel;B=g.u(G,atV);if(B!=null&&B.timelyActions)return B==null?void 0:B.timelyActions.map(function(V){return g.u(V,VyB)}).filter(function(V){return!!V})}}; x3K=function(G){iq.call(this,G);var B=this;ww(this.api,"getPlaybackRate",function(){return B.api.getPlaybackRate()}); ww(this.api,"setPlaybackRate",function(a){typeof a==="number"&&B.api.setPlaybackRate(a)})}; hNV=function(G){G=G.Ex();if(!G)return!1;G=g.x4(G).exp||"";return G.includes("xpv")||G.includes("xpe")}; eNV=function(G){G=g.m(g.ha(G,!0));for(var B=G.next();!B.done;B=G.next())if(hNV(B.value))return!0;return!1}; WW_=function(G,B){G=g.m(g.ha(G,!0));for(var a=G.next();!a.done;a=G.next())if(a=a.value,hNV(a)){var V={potc:"1",pot:B};a.url&&(a.url=hM(a.url,V))}}; wtK=function(G){var B=new Npb,a={},V=(a["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",a);return new Og(B,G,function(){return V})}; KWB=function(G){return g.v(function(B){if(B.j==1)return g.UA(B,2),g.f(B,G,4);if(B.j!=2)return g.EA(B,0);g.jB(B);g.pV(B)})}; W$=function(G){iq.call(this,G);var B=this;this.useLivingRoomPoToken=!1;this.G=new g.z_;this.Ti=null;this.W=!1;this.C=null;this.B=!1;var a=G.U().getWebPlayerContextConfig();this.events=new g.Zh(G);g.X(this,this.events);this.events.K(G,"spsumpreject",function(V,x,h){B.B=x;V&&B.W&&!B.C&&(B.S("html5_generate_content_po_token")&&h?B.vK(h):B.S("html5_generate_session_po_token")&<K(B));B.C||B.api.FJ("stp",{s:+B.W,b:+B.B})}); this.events.K(G,"poTokenVideoBindingChange",function(V){B.vK(V)}); this.useLivingRoomPoToken=!(a==null||!a.useLivingRoomPoToken);G.addEventListener("csiinitialized",function(){B.Ti=G.PG();var V=(B.S("html5_generate_session_po_token")||B.S("html5_generate_content_po_token"))&&!B.useLivingRoomPoToken;try{if(B.S("html5_use_shared_owl_instance"))k1g(B);else if(V){B.Ti.S6("pot_isc");B.S("html5_new_wpo_client")||N79(B);var x=g.kf(B.api.U().experiments,"html5_webpo_kaios_defer_timeout_ms");x?(B.S("html5_new_wpo_client")&&(B.X=JL()),g.z9(function(){eA(B)},x)):B.S("html5_webpo_idle_priority_job")? (B.S("html5_new_wpo_client")&&(B.X=JL()),g.PH(g.Me(),function(){eA(B)})):eA(B)}}catch(h){h instanceof Error&&g.Zb(h)}}); G.addEventListener("trackListLoaded",this.gJ.bind(this));G.OT(this)}; d3b=function(G){var B=PJ(G.experiments,"html5_web_po_request_key");return B?B:g.yI(G)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; wo=function(G,B){if(G.S("html5_webpo_bge_ctmp")){var a,V={hwpo:!!G.j,hwpor:!((a=G.j)==null||!a.isReady())};G.api.FJ(B,V)}}; k1g=function(G){var B,a;g.v(function(V){if(V.j==1)return wo(G,"swpo_i"),G.X=JL(),Kv(G),g.f(V,cG(),2);if(V.j!=3)return B=V.X,wo(G,"swpo_co"),g.f(V,lc_(B),3);a=V.X;G.j=CgV(G,a);wo(G,"swpo_cc");G.j.ready().then(function(){G.G.resolve();wo(G,"swpo_re")}); g.z9(function(){eA(G);wo(G,"swpo_si")},0); g.pV(V)})}; N79=function(G){var B=G.api.U(),a=d3b(B),V=wtK(a);B=new PR({m5:"CLEn",Qa:a,tW:V,onEvent:function(x){(x=zNK[x])&&G.Ti.S6(x)}, onError:g.Zb,jg:v_H(B.experiments),oK:function(){return void G.api.FJ("itr",{})}, WPn:B.experiments.Or("html5_web_po_disable_remote_logging")||tyB.includes(g.rp(B.TV)||"")});B.ready().then(function(){return void G.G.resolve()}); g.X(G,B);G.j=B}; m3A=function(G){var B=G.api.U(),a=wtK(d3b(B)),V=a.du.bind(a);a.du=function(w){var K;return g.v(function(l){if(l.j==1)return g.f(l,V(w),2);K=l.X;G.api.FJ("itr",{});return l.return(K)})}; try{var x=new Eg({tW:a,r$:{maxAttempts:5},wU:{m5:"CLEn",disable:B.experiments.Or("html5_web_po_disable_remote_logging")||tyB.includes(g.rp(B.TV)||""),Ac:v_H(B.experiments),NOf:G.S("wpo_dis_lfdms")?0:1E3},V_f:g.Zb});var h=new Fw({jS:x,tW:a,onError:g.Zb});KWB(h.TA()).then(function(){return void G.G.resolve()}); g.X(G,x);g.X(G,h);G.j=CgV(G,h)}catch(w){g.Zb(w);var e;(e=x)==null||e.dispose()}}; eA=function(G){var B=G.api.U();G.Ti.S6("pot_ist");G.j?G.j.start():G.S("html5_new_wpo_client")&&m3A(G);G.S("html5_bandaid_attach_content_po_token")||(G.S("html5_generate_session_po_token")&&(Kv(G),ltK(G)),B=g.kf(B.experiments,"html5_session_po_token_interval_time_ms")||0,B>0&&(G.L=g.tM(function(){Kv(G)},B)),G.W=!0)}; Kv=function(G){var B,a,V,x;g.v(function(h){if(!G.S("html5_generate_session_po_token")||G.useLivingRoomPoToken)return h.return();B=G.api.U();a=g.A0("EOM_VISITOR_DATA")||g.A0("VISITOR_DATA");V=B.H9?B.datasyncId:a;x=PJ(B.experiments,"html5_mock_content_binding_for_session_token")||B.livingRoomPoTokenId||V;B.Vg=ld(G,x);g.pV(h)})}; ld=function(G,B){if(!G.j)return G.X?G.X(B):"";try{var a=G.j.isReady();G.Ti.S6(a?"pot_cms":"pot_csms");var V="";V=G.S("html5_web_po_token_disable_caching")?G.j.Mw({Xi:B}):G.j.Mw({Xi:B,Hr:{ag:B,MEr:150,V3:!0,mK:!0}});G.Ti.S6(a?"pot_cmf":"pot_csmf");if(a){var x;(x=G.C)==null||x.resolve();G.C=null;if(G.B){G.B=!1;var h;(h=G.api.app.KN())==null||h.rb(!1)}}return V}catch(e){return g.Zb(e),""}}; ltK=function(G){G.j&&(G.C=new iV,G.j.ready().then(function(){G.Ti.S6("pot_if");Kv(G)}))}; CgV=function(G,B){G.S("html5_web_po_token_disable_caching")||B.UL(150);var a=!1,V=KWB(B.TA()).then(function(){a=!0}); return{isReady:function(){return a}, ready:function(){return V}, Mw:function(x){return B.Mw({Xi:x.Xi,t0:!0,qf:!0,Hr:x.Hr?{ag:x.Hr.ag,V3:x.Hr.V3,mK:x.Hr.mK}:void 0})}, start:function(){}}}; ItY=function(G){iq.call(this,G);var B=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Zh(G);g.X(this,this.events);this.events.K(G,"heartbeatRequest",function(a){if(B.freePreviewUsageDetails.length||B.freePreviewWatchedDuration!==null)a.heartbeatRequestParams||(a.heartbeatRequestParams={}),a.heartbeatRequestParams.unpluggedParams||(a.heartbeatRequestParams.unpluggedParams={}),B.freePreviewUsageDetails.length>0?a.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= B.freePreviewUsageDetails:a.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+B.freePreviewWatchedDuration}}); WE(G,"setFreePreviewWatchedDuration",function(a){B.freePreviewWatchedDuration=a}); WE(G,"setFreePreviewUsageDetails",function(a){B.freePreviewUsageDetails=a})}; kz=function(G){g.r.call(this);this.features=[];var B=this.j,a=new bp(G),V=new PE(G),x=new Uk(G),h=new W$(G);var e=g.jQ(G.U())?void 0:new m1(G);var w=new pO(G),K=new u4K(G),l=new x3K(G),k=new jj(G);var N=g.jQ(G.U())?new ItY(G):void 0;var d=G.S("html5_enable_ssap")?new ZMb(G):void 0;var C=G.S("web_cinematic_watch_settings")&&(C=G.U().getWebPlayerContextConfig())!=null&&C.cinematicSettingsAvailable?new NS(G):void 0;var z=new EO(G);var p=G.S("enable_courses_player_overlay_purchase")?new y2K(G):void 0; var O=g.YF(G.U())?new Oh_(G):void 0;var b=new Ig(G);var c=G.U().G?new tkH(G):void 0;var H=g.co(G.U())?new zGz(G):void 0;var R=G.S("web_player_move_autonav_toggle")&&G.U().R4?new wpH(G):void 0;var q=g.YF(G.U())?new Rkz(G):void 0;var A=G.S("web_enable_speedmaster")&&g.YF(G.U())?new Yd(G):void 0;var J=G.U().XQ?void 0:new AeV(G);var xB=G.S("report_pml_debug_signal")?new xz_(G):void 0;var Wz=new AaB(G),GK=new b2(G);var Q=g.rv(G.U())?new xmB(G):void 0;var M=navigator.mediaSession&&window.MediaMetadata&& G.U().jd?new Ii(G):void 0;var I=G.S("html5_enable_drc")&&!G.U().L?new tY(G):void 0;var L=new Md(G);var ux=g.YF(G.U())?new t1B(G):void 0;var U3=G.S("html5_enable_d6de4")?new Ok(G):void 0;var dl=g.YF(G.U())&&G.S("web_sleep_timer")?new Q9(G):void 0;var cz=g.co(G.U())?new IkB(G):void 0;var Pz=new XY(G),hJ=new dR(G),tJ=new Spb(G);var E=G.S("enable_sabr_snackbar_message")?new HMV(G):void 0;var y=G.S("web_enable_timely_actions")?new o7c(G):void 0;B.call(this,a,V,x,h,e,w,K,l,k,N,d,C,z,p,O,b,c,H,R,q,A,J,xB, Wz,GK,Q,void 0,M,I,L,void 0,ux,U3,dl,cz,void 0,Pz,hJ,tJ,void 0,E,y,new CP(G))}; Nn=function(){this.X=this.j=NaN}; gLz=function(G,B){this.md=G;this.timerName="";this.C=!1;this.X=NaN;this.G=new Nn;this.j=B||null;this.C=!1}; ptB=function(G,B,a){var V=g.SN(B.Rn)&&!B.Rn.L;if(B.Rn.d_&&(fI(B.Rn)||B.Rn.Zx==="shortspage"||Gk(B.Rn)||V)&&!G.C){G.C=!0;G.L=B.clientPlaybackNonce;g.A0("TIMING_ACTION")||J0("TIMING_ACTION",G.md.csiPageType);G.md.csiServiceName&&J0("CSI_SERVICE_NAME",G.md.csiServiceName);if(G.j){V=G.j.PG();for(var x=g.m(Object.keys(V)),h=x.next();!h.done;h=x.next())h=h.value,X_(h,V[h],G.timerName);V=g.ob(JdK)(G.j.U4);g.qO(V,G.timerName);V=G.j;V.X={};V.U4={}}g.qO({playerInfo:{visibilityState:g.ob(FHA)()},playerType:"LATENCY_PLAYER_HTML5"}, G.timerName);G.B!==B.clientPlaybackNonce||Number.isNaN(G.X)||(QD("_start",G.timerName)?a=g.ob(SI)("_start",G.timerName)+G.X:g.Zb(new g.FI("attempted to log gapless pbs before CSI timeline started",{cpn:B.clientPlaybackNonce})));a&&!QD("pbs",G.timerName)&&Cv(a)}}; Cv=function(G,B){X_("pbs",G!=null?G:(0,g.yT)(),B)}; U3V=function(G,B,a,V,x,h,e){G=(G===a?"video":"ad")+"_to_"+(B===a?"video":"ad");if(G!=="video_to_ad"||h!=null&&h.HS){h=G==="ad_to_video"?h:V;a=h==null?void 0:h.O4;var w={};if(V==null?0:V.L)w.cttAuthInfo={token:V.L,videoId:V.videoId};x&&(w.startTime=x);u1(G,w);var K,l,k;V={targetVideoId:(K=V==null?void 0:V.videoId)!=null?K:"empty_video",targetCpn:B,adVideoId:(l=h==null?void 0:h.videoId)!=null?l:"empty_video",adClientPlaybackNonce:(k=a==null?void 0:a.cpn)!=null?k:h==null?void 0:h.clientPlaybackNonce}; a&&(V.adBreakType=a.adBreakType,V.adType=a.adType);g.qO(V,G);Cv(e,G)}}; zJ=function(G){V5c();aNz();G.timerName=""}; OkB=function(G){if(G.j){var B=G.j;B.X={};B.U4={}}G.C=!1;G.B=void 0;G.X=NaN}; ELc=function(G,B){g.wI.call(this);this.Rn=G;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Y={};this.X=0;if(G=B.session_data)this.sessionData=G9(G,"&");this.index=Math.max(0,Number(B.index)||0);this.loop=!!B.loop;this.startSeconds=Number(B.startSeconds)||0;this.title=B.playlist_title||"";this.description=B.playlist_description||"";this.author= B.author||B.playlist_author||"";B.video_id&&(this.items[this.index]=B);if(G=B.api)typeof G==="string"&&G.length===16?B.list="PL"+G:B.playlist=G;if(G=B.list)switch(B.listType){case "user_uploads":this.listId=new p$("UU","PLAYER_"+G);break;default:var a=B.playlist_length;a&&(this.length=Number(a)||0);this.listId=g.Uy(G);if(G=B.video)this.items=G.slice(0),this.loaded=!0}else if(B.playlist){G=B.playlist.toString().split(",");this.index>0&&(this.items=[]);G=g.m(G);for(a=G.next();!a.done;a=G.next())(a= a.value)&&this.items.push({video_id:a});this.length=this.items.length;if(G=B.video)this.items=G.slice(0),this.loaded=!0}this.setShuffle(!!B.shuffle);if(G=B.suggestedQuality)this.quality=G;this.Y=tC(B,"playlist_");this.C=(B=B.thumbnail_ids)?B.split(","):[]}; jHg=function(G){return!!(G.playlist||G.list||G.api)}; bkg=function(G){var B=G.index+1;return B>=G.length?0:B}; y__=function(G){var B=G.index-1;return B<0?G.length-1:B}; g.ta=function(G,B,a,V){B=B!==void 0?B:G.index;B=G.items&&B in G.items?G.items[G.order[B]]:null;var x=null;B&&(a&&(B.autoplay="1"),V&&(B.autonav="1"),x=new g.Tk(G.Rn,B),g.X(G,x),x.QA=!0,x.startSeconds=G.startSeconds||x.clipStart||0,G.listId&&(x.playlistId=G.listId.toString()));return x}; c_z=function(G,B){G.index=g.eH(B,0,G.length-1);G.startSeconds=0}; nLg=function(G,B){if(B.video&&B.video.length){G.title=B.title||"";G.description=B.description;G.views=B.views;G.likes=B.likes;G.dislikes=B.dislikes;G.author=B.author||"";var a=B.loop;a&&(G.loop=a);a=g.ta(G);G.items=[];for(var V=g.m(B.video),x=V.next();!x.done;x=V.next())if(x=x.value)x.video_id=x.encrypted_id,G.items.push(x);G.length=G.items.length;(B=B.index)?G.index=B:G.findIndex(a);G.setShuffle(!1);G.loaded=!0;G.X++;G.j&&G.j()}}; vL9=function(G,B){var a,V,x,h,e,w,K;return g.v(function(l){if(l.j==1){a=g.hr();var k=G.U(),N={context:g.hK(G),playbackContext:{contentPlaybackContext:{ancestorOrigins:k.ancestorOrigins}}},d=k.getWebPlayerContextConfig();if(d==null?0:d.encryptedHostFlags)N.playbackContext.contentPlaybackContext.encryptedHostFlags=d.encryptedHostFlags;if(d==null?0:d.hideInfo)N.playerParams={showinfo:!1};k=k.embedConfig;d=B.docid||B.video_id||B.videoId||B.id;if(!d){d=B.raw_embedded_player_response;if(!d){var C=B.embedded_player_response; C&&(d=JSON.parse(C))}if(d){var z,p,O,b,c,H;d=((H=g.u((z=d)==null?void 0:(p=z.embedPreview)==null?void 0:(O=p.thumbnailPreviewRenderer)==null?void 0:(b=O.playButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.navigationEndpoint,g.o0))==null?void 0:H.videoId)||null}else d=null}z=(z=d)?z:void 0;p=G.playlistId?G.playlistId:B.list;O=B.listType;if(p){var R;O==="user_uploads"?R={username:p}:R={playlistId:p};ftz(k,z,B,R);N.playlistRequest=R}else B.playlist?(R={templistVideoIds:B.playlist.toString().split(",")}, ftz(k,z,B,R),N.playlistRequest=R):z&&(R={videoId:z},k&&(R.serializedThirdPartyEmbedConfig=k),N.singleVideoRequest=R);V=N;x=g.MR(Hky);g.UA(l,2);return g.f(l,g.Al(a,V,x),4)}if(l.j!=2)return h=l.X,e=G.U(),B.raw_embedded_player_response=h,e.GH=wE(B,g.co(e)),e.C=e.GH==="EMBEDDED_PLAYER_MODE_PFL",h&&(w=h,w.trackingParams&&cp(w.trackingParams)),l.return(new g.Tk(e,B));K=g.jB(l);K instanceof Error||(K=Error("b259802748"));g.RA(K);return l.return(G)})}; ftz=function(G,B,a,V){a.index&&(V.playlistIndex=String(Number(a.index)+1));V.videoId=B?B:"";G&&(V.serializedThirdPartyEmbedConfig=G)}; g.Is=function(G,B){mM.get(G);mM.set(G,B)}; g.go=function(G){g.wI.call(this);this.loaded=!1;this.player=G}; D3H=function(){this.X=[];this.j=[]}; g.ha=function(G,B){return B?G.j.concat(G.X):G.j}; g.pv=function(G,B){switch(B.kind){case "asr":SPX(B,G.X);break;default:SPX(B,G.j)}}; SPX=function(G,B){g.JJ(B,function(a){return G.Wx(a)})||B.push(G)}; g.Up=function(G){g.r.call(this);this.JX=G;this.X=new D3H;this.G=null;this.B=[];this.V=[]}; g.Op=function(G,B,a){g.Up.call(this,G);this.videoData=B;this.audioTrack=a;this.j=null;this.C=!1;this.B=B.Ab;this.V=B.f5;this.C=g.rB(B)}; g.Ep=function(G,B){return ar(G.info.mimeType)?B?G.info.itag===B:!0:!1}; g.RNK=function(G,B){if(G.j!=null&&g.jQ(B.U())&&!G.j.isManifestless&&G.j.j.rawcc!=null)return!0;if(!G.SE())return!1;B=!!G.j&&G.j.isManifestless&&Object.values(G.j.j).some(function(a){return g.Ep(a,"386")}); G=!!G.j&&!G.j.isManifestless&&g.Qrc(G.j);return B||G}; g.jA=function(G,B,a,V,x,h){g.Up.call(this,G);this.videoId=a;this.cR=x;this.eventId=h;this.L={};this.j=null;G=V||g.x4(B).hl||"";G=G.split("_").join("-");this.C=hM(B,{hl:G})}; ZkK=function(G,B){this.X=G;this.j=B;this.onFailure=void 0}; r_b=function(G,B){return{PP:G.PP&&B.PP,Hn:G.Hn&&B.Hn,sync:G.sync&&B.sync,streaming:G.streaming&&B.streaming}}; yY=function(G,B){var a=$3x,V=this;this.path=G;this.C=B;this.G=a;this.capabilities={PP:!!this.C,Hn:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.B=new ZkK([{name:"compileStreaming",condition:function(x){return!!V.X&&x.streaming}, vl:bd.Z7("wmcx",function(){return WebAssembly.compileStreaming(fetch(V.path))}), onFailure:function(){return V.capabilities.streaming=!1}}, {name:"sync",condition:function(x){return x.sync}, vl:function(){return d2(XtB(V),bd.Z7("wmcs",function(x){return new WebAssembly.Module(x)}))}, onFailure:function(){return V.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, vl:function(){return d2(XtB(V),bd.Z7("wmca",function(x){return WebAssembly.compile(x)}))}, onFailure:function(){return V.capabilities.Hn=!1}}]); this.L=new ZkK([{name:"instantiateStreaming",condition:function(x){return x.Hn&&x.streaming&&!V.X&&!V.j}, vl:function(x,h){return bd.kX("wmix",function(){return WebAssembly.instantiateStreaming(fetch(V.path),h)}).then(function(e){V.j=w2(e.module); return{instance:e.instance,a$:!1}})}, onFailure:function(){return V.capabilities.streaming=!1}}, {name:"sync",condition:function(x){return x.Hn&&x.sync}, vl:function(x,h){return d2(qPY(V,x),bd.Z7("wmis",function(e){return{instance:new WebAssembly.Instance(e,h),a$:!1}}))}, onFailure:function(){return V.capabilities.sync=!1}}, {name:"async",condition:function(x){return x.Hn}, vl:function(x,h){return d2(d2(qPY(V,x),bd.Z7("wmia",function(e){return WebAssembly.instantiate(e,h)})),function(e){return{instance:e, a$:!1}})}, onFailure:function(){return V.capabilities.Hn=!1}}, {name:"asmjs",condition:function(x){return x.PP}, vl:function(x,h){return w2(bd.kX("wmij",function(){return V.C(h)}).then(function(e){return{instance:{exports:e}, a$:!0}}))}, onFailure:function(){return V.capabilities.PP=!1}}],function(x,h,e){return V.G(e,x.instance.exports)})}; LWB=function(G){var B=uey;return B.instantiate(G?r_b(B.capabilities,G):B.capabilities,new QHc)}; XtB=function(G){if(G.X)return G.X;var B=fetch(G.path).then(function(a){return a.arrayBuffer()}).then(function(a){G.X=w2(a); return a}).then(void 0,function(a){g.Zb(Error("wasm module fetch failure: "+a.message,{cause:a})); G.X=void 0;throw a;}); G.X=w2(B);return G.X}; qPY=function(G,B){if(!B.Hn)return lD(Error("wasm unavailable"));if(G.j)return G.j;G.j=Ch(d2(G.compile(B),function(a){G.j=w2(a);return a}),function(a){g.Zb(Error("wasm module compile failure: "+a.message,{cause:a})); G.j=void 0;throw a;}); return G.j}; T7K=function(){}; sHc=function(){var G=this;this.proc_exit=function(){}; this.fd_write=function(B,a,V){if(!G.exports)return 1;B=new Uint32Array(G.exports.memory.buffer,a,V*2);a=[];for(var x=0;x=11;G=G.api.U().V&&ro;return!(!B&&!G)}; Aa=function(G,B){return!G.api.isInline()&&!nWB(G,jL(B))&&g.ju(B)}; c7_=function(G){G.Ya.IU();if(G.fT&&G.Mi)G.Mi=!1;else if(!G.api.U().Qb&&!G.yr()){var B=G.api.getPlayerStateObject();g.F(B,2)&&g.yM(G.api)||G.Up(B);!G.api.U().QW||B.isCued()||g.F(B,1024)?G.bq():G.dT.isActive()?(G.EF(),G.dT.stop()):G.dT.start()}}; Hly=function(G,B){var a;if((a=G.api.getVideoData())==null?0:a.mutedAutoplay){var V,x;if((V=B.target)==null?0:(x=V.className)==null?0:x.includes("ytp-info-panel"))return!1}return g.ju(B)&&G.api.isMutedByMutedAutoplay()?(G.api.unMute(),G.api.getPresentingPlayerType()===2&&G.api.playVideo(),B=G.api.getPlayerStateObject(),!g.F(B,4)||g.F(B,8)||g.F(B,2)||G.bq(),!0):!1}; vWH=function(G,B,a){G.api.isFullscreen()?a<1-B&&G.api.toggleFullscreen():a>1+B&&G.api.toggleFullscreen()}; y7g=function(G){var B=LB()&&um()>=67&&!G.api.U().V;G=G.api.U().disableOrganicUi;return!g.QZ("tizen")&&!Mp&&!B&&!G}; Yz=function(G,B){B=B===void 0?2:B;g.wI.call(this);this.api=G;this.j=null;this.yv=new yG(this);g.X(this,this.yv);this.X=dMV;this.yv.K(this.api,"presentingplayerstatechange",this.xt);this.j=this.yv.K(this.api,"progresssync",this.BC);this.I9=B;this.I9===1&&this.BC()}; g.id=function(G){g.T.call(this,{Z:"div",D:[{Z:"div",J:"ytp-bezel-text-wrapper",D:[{Z:"div",J:"ytp-bezel-text",cS:"{{title}}"}]},{Z:"div",J:"ytp-bezel",N:{role:"status","aria-label":"{{label}}"},D:[{Z:"div",J:"ytp-bezel-icon",cS:"{{icon}}"}]}]});this.T=G;this.X=new g.J8(this.show,10,this);G=this.T.S("delhi_modern_web_player")?1E3:500;this.j=new g.J8(this.hide,G,this);g.X(this,this.X);g.X(this,this.j);this.hide()}; os=function(G,B,a){if(B<=0){a=Hr();B="silenciado";var V=0}else a=a?{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,N:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,N:{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"}}]},V=Math.floor(B),B=V+"volumen";P$(G,a,B,V+"%")}; DEx=function(G,B){B=B?{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{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"}}]}:fPX();var a=G.T.getPlaybackRate(),V=g.tm("La velocidad es de $RATE",{RATE:String(a)});P$(G,B,V,a+"x")}; SHY=function(G,B){B=B?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";P$(G,kag(),B)}; P$=function(G,B,a,V){V=V===void 0?"":V;G.updateValue("label",a===void 0?"":a);G.updateValue("icon",B);g.oX(G.j);G.X.start();G.updateValue("title",V);g.Km(G.element,"ytp-bezel-text-hide",!V)}; Rrg=function(G,B){g.T.call(this,{Z:"button",bL:["ytp-button","ytp-cards-button"],N:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.co(G.U()))},D:[{Z:"span",J:"ytp-cards-button-icon-default",D:[{Z:"div",J:"ytp-cards-button-icon",D:[G.U().S("player_new_info_card_format")?D$_():{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {Z:"div",J:"ytp-cards-button-title",cS:"Informaci\u00f3n"}]},{Z:"span",J:"ytp-cards-button-icon-shopping",D:[{Z:"div",J:"ytp-cards-button-icon",D:[{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",J:"ytp-svg-shadow",N:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{Z:"path",J:"ytp-svg-fill",N:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{Z:"path",J:"ytp-svg-shadow-fill",N:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{Z:"div", J:"ytp-cards-button-title",cS:"Shopping"}]}]});this.T=G;this.C=B;this.j=null;this.X=new g.Bm(this,250,!0,100);g.X(this,this.X);g.Km(this.C,"ytp-show-cards-title",g.co(G.U()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.xY(!0)}; Zlg=function(G,B){g.T.call(this,{Z:"div",J:"ytp-cards-teaser",D:[{Z:"div",J:"ytp-cards-teaser-box"},{Z:"div",J:"ytp-cards-teaser-text",D:G.U().S("player_new_info_card_format")?[{Z:"button",J:"ytp-cards-teaser-info-icon",N:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},D:[D$_()]},{Z:"span",J:"ytp-cards-teaser-label",cS:"{{text}}"},{Z:"button",J:"ytp-cards-teaser-close-button",N:{"aria-label":"Cerrar"},D:[g.UX()]}]:[{Z:"span",J:"ytp-cards-teaser-label",cS:"{{text}}"}]}]});var a=this;this.T= G;this.AA=B;this.G=new g.Bm(this,250,!1,250);this.j=null;this.V=new g.J8(this.R7J,300,this);this.W=new g.J8(this.HDJ,2E3,this);this.L=[];this.X=null;this.Y=new g.J8(function(){a.element.style.margin="0"},250); this.onClickCommand=this.C=null;g.X(this,this.G);g.X(this,this.V);g.X(this,this.W);g.X(this,this.Y);G.U().S("player_new_info_card_format")?(g.hi(G.getRootNode(),"ytp-cards-teaser-dismissible"),this.K(this.d1("ytp-cards-teaser-close-button"),"click",this.MO),this.K(this.d1("ytp-cards-teaser-info-icon"),"click",this.fU),this.K(this.d1("ytp-cards-teaser-label"),"click",this.fU)):this.listen("click",this.fU);this.K(B.element,"mouseover",this.TP);this.K(B.element,"mouseout",this.bZ);this.K(G,"cardsteasershow", this.hVn);this.K(G,"cardsteaserhide",this.Bf);this.K(G,"cardstatechange",this.pC);this.K(G,"presentingplayerstatechange",this.pC);this.K(G,"appresize",this.Lt);this.K(G,"onShowControls",this.Lt);this.K(G,"onHideControls",this.d3);this.listen("mouseenter",this.l3)}; r7c=function(G){g.T.call(this,{Z:"button",bL:[Mn.BUTTON,Mn.TITLE_NOTIFICATIONS],N:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},D:[{Z:"div",J:Mn.TITLE_NOTIFICATIONS_ON,N:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},D:[g.jT()]},{Z:"div",J:Mn.TITLE_NOTIFICATIONS_OFF,N:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},D:[{Z:"svg",N:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},D:[{Z:"path",N:{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=G;this.j=!1;G.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")}; $EV=function(G,B){G.j=B;G.element.classList.toggle(Mn.NOTIFICATIONS_ENABLED,G.j);var a=G.api.getVideoData();a?(B=B?a.L5:a.b$)?(G=G.api.pM())?Jl(G,B):g.RA(Error("No innertube service available when updating notification preferences.")):g.RA(Error("No update preferences command available.")):g.RA(Error("No video data when updating notification preferences."))}; qHH=function(G,B,a){var V=V===void 0?800:V;var x=x===void 0?600:x;var h=document.location.protocol;G=jlV(h+"//"+G+"/signin?context=popup","feature",B,"next",h+"//"+location.hostname+"/post_login");XPg(G,a,V,x)}; XPg=function(G,B,a,V){a=a===void 0?800:a;V=V===void 0?600:V;if(G=g.Zj(window,G,"loginPopup","width="+a+",height="+V+",resizable=yes,scrollbars=yes"))n4V(function(){B()}),G.moveTo((screen.width-a)/2,(screen.height-V)/2)}; g.Gx=function(G,B,a,V,x,h,e,w,K,l,k,N){G=G.charAt(0)+G.substring(1).toLowerCase();a=a.charAt(0)+a.substring(1).toLowerCase();if(B==="0"||B==="-1")B=null;if(V==="0"||V==="-1")V=null;var d=k.U(),C=d.userDisplayName&&g.SN(d);g.T.call(this,{Z:"div",bL:["ytp-button","ytp-sb"],D:[{Z:"div",J:"ytp-sb-subscribe",N:C?{title:g.tm("Suscribirse como $USER_NAME",{USER_NAME:d.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":B_(d),"data-tooltip-opaque":String(g.co(d)),tabindex:"0",role:"button"}: {"aria-label":"Suscribirse al canal"},D:[{Z:"div",J:"ytp-sb-text",D:[{Z:"div",J:"ytp-sb-icon"},G]},B?{Z:"div",J:"ytp-sb-count",cS:B}:""]},{Z:"div",J:"ytp-sb-unsubscribe",N:C?{title:g.tm("Suscrito como $USER_NAME",{USER_NAME:d.userDisplayName}),"aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":B_(d),"data-tooltip-opaque":String(g.co(d)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},D:[{Z:"div",J:"ytp-sb-text",D:[{Z:"div",J:"ytp-sb-icon"},a]}, V?{Z:"div",J:"ytp-sb-count",cS:V}:""]}],N:{"aria-live":"polite"}});var z=this;this.channelId=e;this.T=k;this.C=N;var p=this.d1("ytp-sb-subscribe"),O=this.d1("ytp-sb-unsubscribe");h&&g.hi(this.element,"ytp-sb-classic");if(x){w?this.j():this.X();var b=function(){if(d.HS){var H=z.channelId;if(K||l){var R={c:H};var q;g.vp.isInitialized()&&(q=HFz(R));R=q||"";if(q=k.getVideoData())if(q=q.subscribeCommand){var A=k.pM();A?(Jl(A,q,{botguardResponse:R,feature:K}),k.pN("SUBSCRIBE",H)):g.RA(Error("No innertube service available when updating subscriptions."))}else g.RA(Error("No subscribe command in videoData.")); else g.RA(Error("No video data available when updating subscription."))}O.focus();O.removeAttribute("aria-hidden");p.setAttribute("aria-hidden","true")}else qHH(g.TQ(z.T.U()),"sb_button",z.G)},c=function(){var H=z.channelId; if(K||l){var R=k.getVideoData();Jl(k.pM(),R.unsubscribeCommand,{feature:K});k.pN("UNSUBSCRIBE",H)}p.focus();p.removeAttribute("aria-hidden");O.setAttribute("aria-hidden","true")}; this.K(p,"click",b);this.K(O,"click",c);this.K(p,"keypress",function(H){H.keyCode===13&&b(H)}); this.K(O,"keypress",function(H){H.keyCode===13&&c(H)}); this.K(k,"SUBSCRIBE",this.j);this.K(k,"UNSUBSCRIBE",this.X);this.C&&C&&(A1H(k),Ec(k,p,this),Ec(k,O,this))}else g.hi(p,"ytp-sb-disabled"),g.hi(O,"ytp-sb-disabled")}; LjB=function(G){g.T.call(this,{Z:"div",J:"ytp-title-channel",D:[{Z:"div",J:"ytp-title-beacon"},{Z:"a",J:"ytp-title-channel-logo",N:{href:"{{channelLink}}",target:G.U().Y,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{Z:"div",J:"ytp-title-expanded-overlay",N:{"aria-hidden":"{{flyoutUnfocusable}}"},D:[{Z:"div",J:"ytp-title-expanded-heading",D:[{Z:"div",J:"ytp-title-expanded-title",D:[{Z:"a",cS:"{{expandedTitle}}",N:{href:"{{channelTitleLink}}",target:G.U().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{Z:"div",J:"ytp-title-expanded-subtitle",cS:"{{expandedSubtitle}}",N:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var B=this;this.api=G;this.channel=this.d1("ytp-title-channel");this.X=this.d1("ytp-title-channel-logo");this.channelName=this.d1("ytp-title-expanded-title");this.L=this.d1("ytp-title-expanded-overlay");this.C=this.j=this.subscribeButton=null;this.G=!1;G.createClientVe(this.X,this,36925);G.createClientVe(this.channelName,this, 37220);g.co(this.api.U())&&u5V(this);this.K(G,"videodatachange",this.uL);this.K(G,"videoplayerreset",this.uL);this.K(this.channelName,"click",function(a){B.api.logClick(B.channelName);g.Zj(window,QmX(B));a.preventDefault()}); this.K(this.X,"click",this.W3S);this.uL()}; TkA=function(G){if(!G.api.U().m3){var B=G.api.getVideoData(),a=new g.Gx("Suscribirse",null,"Suscrito/a",null,!0,!1,B.dB,B.subscribed,"channel_avatar",null,G.api,!0);G.api.createServerVe(a.element,G);var V;G.api.setTrackingParams(a.element,((V=B.subscribeButtonRenderer)==null?void 0:V.trackingParams)||null);G.K(a.element,"click",function(){G.api.logClick(a.element)}); G.subscribeButton=a;g.X(G,G.subscribeButton);G.subscribeButton.iL(G.L);G.subscribeButton.hide();var x=new r7c(G.api);G.j=x;g.X(G,x);x.iL(G.L);x.hide();G.K(G.api,"SUBSCRIBE",function(){B.Lk&&(x.show(),G.api.logVisibility(x.element,!0))}); G.K(G.api,"UNSUBSCRIBE",function(){B.Lk&&(x.hide(),G.api.logVisibility(x.element,!1),$EV(x,!1))})}}; u5V=function(G){var B=G.api.U();TkA(G);G.updateValue("flyoutUnfocusable","true");G.updateValue("channelTitleFocusable","-1");G.updateValue("shouldHideExpandedTitleForA11y","true");G.updateValue("shouldHideExpandedSubtitleForA11y","true");B.X||B.qB||(G.K(G.channel,"mouseenter",G.fl),G.K(G.channel,"mouseleave",G.S0),G.K(G.channel,"focusin",G.fl),G.K(G.channel,"focusout",function(a){G.channel.contains(a.relatedTarget)||G.S0()})); G.C=new g.J8(function(){G.isExpanded()&&(G.api.logVisibility(G.channelName,!1),G.subscribeButton&&(G.subscribeButton.hide(),G.api.logVisibility(G.subscribeButton.element,!1)),G.j&&(G.j.hide(),G.api.logVisibility(G.j.element,!1)),G.channel.classList.remove("ytp-title-expanded"),G.channel.classList.add("ytp-title-show-collapsed"))},500); g.X(G,G.C);G.K(G.channel,smx,function(){Fjb(G)}); G.K(G.api,"onHideControls",G.sT);G.K(G.api,"appresize",G.sT);G.K(G.api,"fullscreentoggled",G.sT)}; Fjb=function(G){G.channel.classList.remove("ytp-title-show-collapsed");G.channel.classList.remove("ytp-title-show-expanded")}; J7Y=function(G){var B=G.api.getPlayerSize();return g.co(G.api.U())&&B.width>=524}; QmX=function(G){var B=G.api.U(),a=G.api.getVideoData(),V=g.a0(B)+a.QW;g.VM(a)&&(V="https://music.youtube.com"+a.QW);if(!g.co(B))return V;B={};g.lq(G.api,"addEmbedsConversionTrackingParams",[B]);return g.LJ(V,B)}; Bg=function(G){var B=g.JK({"aria-haspopup":"true"});g.Fq.call(this,B,G);this.listen("keydown",this.j)}; a_=function(G,B){G.element.setAttribute("aria-haspopup",String(B))}; A7x=function(G,B){g.T.call(this,{Z:"div",J:"ytp-user-info-panel",N:{"aria-label":"Informaci\u00f3n del usuario"},D:G.U().HS&&!G.S("embeds_web_always_enable_signed_out_state")?[{Z:"div",J:"ytp-user-info-panel-icon",cS:"{{icon}}"},{Z:"div",J:"ytp-user-info-panel-content",D:[{Z:"div",J:"ytp-user-info-panel-info",N:{tabIndex:"{{userInfoFocusable}}",role:"text"},cS:"{{watchingAsUsername}}"},{Z:"div",J:"ytp-user-info-panel-info",N:{tabIndex:"{{userInfoFocusable2}}",role:"text"},cS:"{{watchingAsEmail}}"}]}]: [{Z:"div",J:"ytp-user-info-panel-icon",cS:"{{icon}}"},{Z:"div",J:"ytp-user-info-panel-content",D:[{Z:"div",D:[{Z:"text",N:{tabIndex:"{{userInfoFocusable}}"},cS:"Saliste de la cuenta"}]},{Z:"div",J:"ytp-user-info-panel-login",D:[{Z:"a",N:{tabIndex:"{{userInfoFocusable2}}",role:"button"},cS:G.U().m3?"":"Acceder a YouTube"}]}]}]});this.JX=G;this.j=B;G.U().HS||G.U().m3||this.K(this.d1("ytp-user-info-panel-login"),"click",this.Uw);this.closeButton=new g.T({Z:"button",bL:["ytp-collapse","ytp-button"],N:{title:"Cerrar"}, D:[g.fr()]});this.closeButton.iL(this.element);g.X(this,this.closeButton);this.K(window,"blur",this.hide);this.K(document,"click",this.Is);this.uL()}; ilg=function(G,B,a){g.Hw.call(this,G);this.Gi=B;this.wC=a;this.getVideoUrl=new Bg(6);this.jh=new Bg(5);this.n1=new Bg(4);this.Nd=new Bg(3);this.ij=new g.Fq(g.JK({href:"{{href}}",target:this.T.U().Y},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.Fq(g.JK(),1,"Estad\u00edsticas");this.v_=new g.dI({Z:"div",bL:["ytp-copytext","ytp-no-contextmenu"],N:{draggable:"false",tabindex:"1"},cS:"{{text}}"});this.X6=new fO(this.T,this.v_);this.iW=this.BM=null;g.co(this.T.U())&& (this.closeButton=new g.T({Z:"button",bL:["ytp-collapse","ytp-button"],N:{title:"Cerrar"},D:[g.fr()]}),g.X(this,this.closeButton),this.closeButton.iL(this.element),this.closeButton.listen("click",this.fS,this));g.co(this.T.U())&&(this.rB=new g.Fq(g.JK(),8,"Cuenta"),g.X(this,this.rB),this.WC(this.rB,!0),this.rB.listen("click",this.i3S,this),G.createClientVe(this.rB.element,this.rB,137682));this.T.U().bF&&(this.Dr=new V8("En bucle",7),g.X(this,this.Dr),this.WC(this.Dr,!0),this.Dr.listen("click",this.CJX, this),G.createClientVe(this.Dr.element,this.Dr,28661));g.X(this,this.getVideoUrl);this.WC(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.N7d,this);G.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.X(this,this.jh);this.WC(this.jh,!0);this.jh.listen("click",this.YZx,this);G.createClientVe(this.jh.element,this.jh,28660);g.X(this,this.n1);this.WC(this.n1,!0);this.n1.listen("click",this.ePB,this);G.createClientVe(this.n1.element,this.n1,28658);g.X(this,this.Nd);this.WC(this.Nd, !0);this.Nd.listen("click",this.DQl,this);g.X(this,this.ij);this.WC(this.ij,!0);this.ij.listen("click",this.g_J,this);g.X(this,this.showVideoInfo);this.WC(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.fHH,this);g.X(this,this.v_);this.v_.listen("click",this.EWS,this);g.X(this,this.X6);B=document.queryCommandSupported&&document.queryCommandSupported("copy");Agy("Chromium")>=43&&(B=!0);Agy("Firefox")<=40&&(B=!1);B&&(this.BM=new g.T({Z:"textarea",J:"ytp-html5-clipboard",N:{readonly:"", tabindex:"-1"}}),g.X(this,this.BM),this.BM.iL(this.element));var V;(V=this.rB)==null||V.setIcon(rxB());var x;(x=this.Dr)==null||x.setIcon({Z:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Z:"path",N:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.Nd.setIcon({Z:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Z:"path",N:{"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.ij.setIcon(HNz());this.showVideoInfo.setIcon(vRA());this.K(G,"onLoopChange",this.onLoopChange);this.K(G,"videodatachange",this.onVideoDataChange);YHY(this);this.N3(this.T.getVideoData())}; VO=function(G,B){var a=!1;if(G.BM){var V=G.BM.element;V.value=B;V.select();try{a=document.execCommand("copy")}catch(x){}}a?G.Gi.Bf():(G.v_.jn(B,"text"),g.SR(G.Gi,G.X6),wR(G.v_.element),G.BM&&(G.BM=null,YHY(G)));return a}; YHY=function(G){var B=!!G.BM;g.sc(G.Nd,B?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");a_(G.Nd,!B);g.sc(G.n1,B?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");a_(G.n1,!B);g.sc(G.getVideoUrl,B?"Copiar URL del video":"Obtener la URL del video");a_(G.getVideoUrl,!B);g.sc(G.jh,B?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");a_(G.jh,!B);G.n1.setIcon(B?cxX():null);G.getVideoUrl.setIcon(B? OX():null);G.jh.setIcon(B?OX():null)}; PFc=function(G){return g.co(G.T.U())?G.rB:G.Dr}; MPA=function(G,B){g.DY.call(this,G);this.wC=B;this.G=new g.Zh(this);this.XJ=new g.J8(this.EFH,1E3,this);this.HS=this.C=null;g.X(this,this.G);g.X(this,this.XJ);B=this.T.U();G.createClientVe(this.element,this,28656);g.hi(this.element,"ytp-contextmenu");this.T.U().experiments.Or("delhi_modern_web_player")&&g.YF(B)&&g.hi(this.element,"ytp-delhi-modern-contextmenu");oWB(this);this.hide()}; oWB=function(G){g.nU(G.G);var B=G.T.U();B.playerStyle==="gvn"||B.X||B.qB||(B=G.T.g1(),G.G.K(B,"contextmenu",G.u3L),G.G.K(B,"touchstart",G.onTouchStart,null,!0),G.G.K(B,"touchmove",G.Lf,null,!0),G.G.K(B,"touchend",G.Lf,null,!0))}; GlV=function(G){G.T.isFullscreen()?g.SX(G.T,G.element,10):G.iL(QM(G).body)}; x7=function(G,B,a){a=a===void 0?240:a;g.T.call(this,{Z:"button",bL:["ytp-button","ytp-copylink-button"],N:{title:"{{title-attr}}","data-tooltip-opaque":String(g.co(G.U()))},D:[{Z:"div",J:"ytp-copylink-icon",cS:"{{icon}}"},{Z:"div",J:"ytp-copylink-title",cS:"Copiar v\u00ednculo",N:{"aria-hidden":"true"}}]});this.api=G;this.j=B;this.X=a;this.visible=!1;this.tooltip=this.j.G1();B=G.U();this.tooltip.element.setAttribute("aria-live","polite");g.Km(this.element,"ytp-show-copylink-title",g.co(B));G.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.K(G,"videodatachange",this.uL);this.K(G,"videoplayerreset",this.uL);this.K(G,"appresize",this.uL);this.uL();this.addOnDisposeCallback(g.Oc(this.tooltip,this.element))}; BTV=function(G){var B=G.api.U(),a=G.api.getVideoData(),V=G.api.g1().getPlayerSize().width;B=B.C;return!!a.videoId&&V>=G.X&&a.M4&&!g.BE(a)&&!G.api.isEmbedsShortsMode()&&!B}; aW_=function(G){G.updateValue("icon",Ix());if(G.api.U().X)G.tooltip.Op(G.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{G.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");G.tooltip.Gh();G.tooltip.Op(G.element);var B=G.listen("mouseleave",function(){G.i6(B);G.uL();G.tooltip.LG()})}}; V0B=function(G,B){return g.v(function(a){if(a.j==1)return g.UA(a,2),g.f(a,navigator.clipboard.writeText(B),4);if(a.j!=2)return a.return(!0);g.jB(a);var V=a.return,x=!1,h=g.M6("TEXTAREA");h.value=B;h.setAttribute("readonly","");var e=G.api.getRootNode();e.appendChild(h);if(FC){var w=window.getSelection();w.removeAllRanges();var K=document.createRange();K.selectNodeContents(h);w.addRange(K);h.setSelectionRange(0,B.length)}else h.select();try{x=document.execCommand("copy")}catch(l){}e.removeChild(h); return V.call(a,x)})}; he=function(G){g.T.call(this,{Z:"div",J:"ytp-doubletap-ui-legacy",D:[{Z:"div",J:"ytp-doubletap-fast-forward-ve"},{Z:"div",J:"ytp-doubletap-rewind-ve"},{Z:"div",J:"ytp-doubletap-static-circle",D:[{Z:"div",J:"ytp-doubletap-ripple"}]},{Z:"div",J:"ytp-doubletap-overlay-a11y"},{Z:"div",J:"ytp-doubletap-seek-info-container",D:[{Z:"div",J:"ytp-doubletap-arrows-container",D:[{Z:"span",J:"ytp-doubletap-base-arrow"},{Z:"span",J:"ytp-doubletap-base-arrow"},{Z:"span",J:"ytp-doubletap-base-arrow"}]},{Z:"div", J:"ytp-doubletap-tooltip",D:[{Z:"div",J:"ytp-seek-icon-text-container",D:[{Z:"div",J:"ytp-seek-icon",cS:"{{seekIcon}}"},{Z:"div",J:"ytp-chapter-seek-text-legacy",cS:"{{seekText}}"}]},{Z:"div",J:"ytp-doubletap-tooltip-label",cS:"{{seekTime}}"}]}]}]});this.T=G;this.G=new g.J8(this.show,10,this);this.X=new g.J8(this.hide,700,this);this.W=this.C=0;this.zH=this.L=!1;this.j=this.d1("ytp-doubletap-static-circle");g.X(this,this.G);g.X(this,this.X);this.hide();this.V=this.d1("ytp-doubletap-fast-forward-ve"); this.Y=this.d1("ytp-doubletap-rewind-ve");this.T.createClientVe(this.V,this,28240);this.T.createClientVe(this.Y,this,28239);this.T.logVisibility(this.V,!0);this.T.logVisibility(this.Y,!0);this.L=G.S("web_show_cumulative_seek_time");this.zH=G.S("web_center_static_circles")}; e1=function(G,B,a,V){if(V=V===void 0?null:V){var x=B===-1?G.Y.visualElement:G.V.visualElement;V={seekData:V};var h=g.y0();h&&g.ob(MT)(void 0,h,x,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",V,void 0)}G.C=B===G.W?G.C+a:a;G.W=B;x=G.T.g1().getPlayerSize();G.L?G.X.stop():g.oX(G.X);G.G.start();G.element.setAttribute("data-side",B===-1?"back":"forward");g.hi(G.element,"ytp-time-seeking");G.j.style.width="110px";G.j.style.height="110px";V=x.width*.1-15;B===1?G.zH?(G.j.style.right=V+"px",G.j.style.left=""): (G.j.style.right="",G.j.style.left=x.width*.8-30+"px"):B===-1&&(G.zH?(G.j.style.right="",G.j.style.left=V+"px"):(G.j.style.right="",G.j.style.left=x.width*.1-15+"px"));G.j.style.top=x.height*.5+15+"px";xxb(G,G.L?G.C:a)}; Wg=function(G,B,a,V){V=V===void 0?null:V;g.oX(G.X);G.G.start();switch(B){case -1:B="back";break;case 1:B="forward";break;default:B=""}G.element.setAttribute("data-side",B);G.j.style.width="0";G.j.style.height="0";g.hi(G.element,"ytp-chapter-seek");G.updateValue("seekText",a);G.updateValue("seekTime","");a=G.d1("ytp-seek-icon");if(V){a:if(V){switch(V){case "PREMIUM_STANDALONE":V={Z:"svg",N:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},D:[{Z:"path",N:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ", fill:"#c00"}},{Z:"path",N:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; break a;case "PREMIUM_STANDALONE_CAIRO":V={Z:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Z:"rect",N:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{Z:"rect",N:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{Z:"path",N:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", fill:"white"}},{Z:"defs",D:[{Z:"linearGradient",N:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},D:[{Z:"stop",N:{offset:"0.3","stop-color":"#E1002D"}},{Z:"stop",N:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}V=void 0}else V=null;G.updateValue("seekIcon",V);a.style.display="inline-block"}else a.style.display="none"}; xxb=function(G,B){B=g.tm("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:B.toString()});G.updateValue("seekTime",B)}; h9B=function(G){nO.call(this,G,!1,!0);this.GH=[];this.wO=[];this.V=!0;this.badge.element.classList.add("ytp-featured-product");this.Zx=new g.T({Z:"div",J:"ytp-featured-product-open-in-new"});g.X(this,this.Zx);this.countdownTimer=new g.T({Z:"text",J:"ytp-featured-product-countdown",cS:"{{content}}"});this.countdownTimer.hide();g.X(this,this.countdownTimer);this.X=new g.T({Z:"div",J:"ytp-featured-product-trending",D:[{Z:"div",J:"ytp-featured-product-trending-icon"},{Z:"text",J:"ytp-featured-product-trending-text", cS:"{{trendingOffer}}"}]});this.X.hide();g.X(this,this.X);this.overflowButton=new g.T({Z:"button",bL:["ytp-featured-product-overflow-icon","ytp-button"],N:{"aria-haspopup":"true"}});this.overflowButton.hide();g.X(this,this.overflowButton);this.W=new g.T({Z:"text",J:"ytp-featured-product-exclusive-countdown",cS:"{{content}}",N:{id:"exclusiveCountdown","aria-hidden":"true"}});this.W.hide();g.X(this,this.W);this.L=new g.T({Z:"div",J:"ytp-featured-product-exclusive-container",N:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, D:[{Z:"div",J:"ytp-featured-product-exclusive-badge-container",D:[{Z:"div",J:"ytp-featured-product-exclusive-badge",D:[{Z:"text",J:"ytp-featured-product-exclusive-badge-text",cS:"{{exclusive}}",N:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.W]});this.L.hide();g.X(this,this.L);this.banner=new g.T({Z:"a",J:"ytp-featured-product-container",D:[{Z:"div",J:"ytp-featured-product-thumbnail",D:[{Z:"img",N:{src:"{{thumbnail}}"}},this.Zx]},{Z:"div",J:"ytp-featured-product-details",D:[{Z:"text",J:"ytp-featured-product-title", cS:"{{title}}"},this.T.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Z:"div",J:"ytp-featured-product-price-container",N:{"aria-label":"{{priceA11yText}}"},D:[{Z:"text",J:"ytp-featured-product-price-when-promotion-text-enabled",cS:"{{price}}",N:{"aria-hidden":"true"}},{Z:"text",J:"ytp-featured-product-promotion-text",cS:"{{promotionText}}",N:{"aria-hidden":"true"}}]}:{Z:"div",N:{"aria-label":"{{priceA11yText}}"},D:[{Z:"text",J:"ytp-featured-product-price",cS:"{{price}}", N:{"aria-hidden":"true"}},{Z:"text",J:"ytp-featured-product-sales-original-price",cS:"{{salesOriginalPrice}}",N:{"aria-hidden":"true"}},{Z:"text",J:"ytp-featured-product-price-drop-reference-price",cS:"{{priceDropReferencePrice}}",N:{"aria-hidden":"true"}}]},this.T.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Z:"div",J:"ytp-featured-product-when-promotion-text-enabled",D:[{Z:"text",J:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",cS:"{{affiliateDisclaimer}}"}, this.X,{Z:"text",J:"ytp-featured-product-vendor-when-promotion-text-enabled",cS:"{{vendor}}"}]}:{Z:"div",D:[{Z:"text",J:"ytp-featured-product-affiliate-disclaimer",cS:"{{affiliateDisclaimer}}"},this.T.S("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.L:null,this.X,{Z:"text",J:"ytp-featured-product-vendor",cS:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.X(this,this.banner);this.banner.iL(this.C.element);this.K(this.T,g.hm("featured_product"),this.o3H);this.K(this.T, g.ew("featured_product"),this.Gw);this.K(this.T,"videodatachange",this.onVideoDataChange);this.K(this.overflowButton.element,"click",this.P8);this.K(G,"featuredproductdismissed",this.NZ)}; e9V=function(G){var B,a;G=(B=G.j)==null?void 0:(a=B.bannerData)==null?void 0:a.itemData;var V,x,h;return(G==null||!G.affiliateDisclaimer)&&(G==null?0:(V=G.exclusivesData)==null?0:V.exclusiveOfferLabelText)&&(G==null?0:(x=G.exclusivesData)==null?0:x.expirationTimestampMs)&&(G==null?0:(h=G.exclusivesData)==null?0:h.exclusiveOfferCountdownText)?!0:!1}; w3Y=function(G){var B,a,V,x,h=(B=G.j)==null?void 0:(a=B.bannerData)==null?void 0:(V=a.itemData)==null?void 0:(x=V.exclusivesData)==null?void 0:x.expirationTimestampMs;B=(Number(h)-Date.now())/1E3;if(B>0){if(B<604800){var e,w,K,l;a=(e=G.j)==null?void 0:(w=e.bannerData)==null?void 0:(K=w.itemData)==null?void 0:(l=K.exclusivesData)==null?void 0:l.exclusiveOfferCountdownText;if(a!==void 0)for(e=Date.now(),w=g.m(a),K=w.next();!K.done;K=w.next())if(K=K.value,K!==void 0&&K.text!==void 0&&(l=Number(K.textDisplayStartTimestampMs), !isNaN(l)&&e>=l)){K.insertCountdown?(B=K.text.replace(/\$0/,String(mT({seconds:B}))),G.W.jn(B)):G.W.jn(K.text);G.W.show();break}}var k,N,d,C;G.L.update({exclusive:(k=G.j)==null?void 0:(N=k.bannerData)==null?void 0:(d=N.itemData)==null?void 0:(C=d.exclusivesData)==null?void 0:C.exclusiveOfferLabelText});G.L.show();wq(G);var z;(z=G.YD)==null||z.start()}else WQH(G)}; WQH=function(G){var B;(B=G.YD)==null||B.stop();G.W.hide();G.L.hide();KM(G)}; KQB=function(G){var B,a,V=(B=G.j)==null?void 0:(a=B.bannerData)==null?void 0:a.itemData;return G.T.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(V==null||!V.priceReplacementText)&&(V==null?0:V.promotionText)?V==null?void 0:V.promotionText.content:null}; lWV=function(G){var B,a,V=(B=G.j)==null?void 0:(a=B.bannerData)==null?void 0:a.itemData,x,h;if(!(V!=null&&V.priceReplacementText||G.T.S("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(V==null?0:(x=V.dealsData)==null?0:(h=x.sales)==null?0:h.originalPrice)){var e,w;return V==null?void 0:(e=V.dealsData)==null?void 0:(w=e.sales)==null?void 0:w.originalPrice}return null}; klK=function(G){var B,a,V=(B=G.j)==null?void 0:(a=B.bannerData)==null?void 0:a.itemData,x,h,e,w;if(!((V==null?0:V.priceReplacementText)||G.T.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(V==null?0:(x=V.dealsData)==null?0:(h=x.sales)==null?0:h.originalPrice))&&(V==null?0:(e=V.dealsData)==null?0:(w=e.priceDrop)==null?0:w.referencePrice)){var K,l;return V==null?void 0:(K=V.dealsData)==null?void 0:(l=K.priceDrop)==null?void 0:l.referencePrice}return null}; NTV=function(G){var B,a,V=(B=G.j)==null?void 0:(a=B.bannerData)==null?void 0:a.itemData;if(V==null?0:V.priceReplacementText)return V==null?void 0:V.priceReplacementText;if((V==null?0:V.promotionText)&&G.T.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var x;return(V==null?void 0:V.price)+" "+(V==null?void 0:(x=V.promotionText)==null?void 0:x.content)}var h,e;if(V==null?0:(h=V.dealsData)==null?0:(e=h.sales)==null?0:e.originalPrice){var w,K;return V==null?void 0:(w=V.dealsData)== null?void 0:(K=w.sales)==null?void 0:K.salesPriceAccessibilityLabel}var l,k;if(V==null?0:(l=V.dealsData)==null?0:(k=l.priceDrop)==null?0:k.referencePrice){var N,d;return(V==null?void 0:V.price)+" "+(V==null?void 0:(N=V.dealsData)==null?void 0:(d=N.priceDrop)==null?void 0:d.referencePrice)}return V==null?void 0:V.price}; dxY=function(G){if(G.T.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var B,a,V;return G.X.Rt?null:(B=G.j)==null?void 0:(a=B.bannerData)==null?void 0:(V=a.itemData)==null?void 0:V.vendorName}var x,h,e,w,K,l;return G.X.Rt||G.L.Rt||((x=G.j)==null?0:(h=x.bannerData)==null?0:(e=h.itemData)==null?0:e.affiliateDisclaimer)?null:(w=G.j)==null?void 0:(K=w.bannerData)==null?void 0:(l=K.itemData)==null?void 0:l.vendorName}; z9c=function(G,B){li(G);if(B){var a=g.BF.getState().entities;a=Kp(a,"featuredProductsEntity",B);if(a!=null&&a.productsData){B=[];a=g.m(a.productsData);for(var V=a.next();!V.done;V=a.next()){V=V.value;var x=void 0;if((x=V)!=null&&x.identifier&&V.featuredSegments){G.GH.push(V);var h=void 0;x=g.m((h=V)==null?void 0:h.featuredSegments);for(h=x.next();!h.done;h=x.next()){var e=h.value;h=CIz(e.startTimeSec);h!==void 0&&(e=CIz(e.endTimeSec),B.push(new g.V1(h*1E3,e===void 0?0x7ffffffffffff:e*1E3,{id:V.identifier, namespace:"featured_product"})))}}}G.T.z1(B)}}}; KM=function(G){if(G.trendingOfferEntityKey){var B=g.BF.getState().entities;if(B=Kp(B,"trendingOfferEntity",G.trendingOfferEntityKey)){var a,V,x;B.encodedSkuId!==((a=G.j)==null?void 0:(V=a.bannerData)==null?void 0:(x=V.itemData)==null?void 0:x.encodedOfferSkuId)?wq(G):(G.X.update({trendingOffer:B.shortLabel+" \u2022 "+B.countLabel}),G.X.show(),G.banner.update({vendor:dxY(G)}))}else wq(G)}else wq(G)}; wq=function(G){G.X.hide();G.banner.update({vendor:dxY(G)})}; li=function(G){G.GH=[];G.Gw();G.T.KD("featured_product")}; t09=function(G){var B,a,V,x,h=(B=G.j)==null?void 0:(a=B.bannerData)==null?void 0:(V=a.itemData)==null?void 0:(x=V.hiddenProductOptions)==null?void 0:x.dropTimestampMs;B=(Number(h)-Date.now())/1E3;G.countdownTimer.jn(mT({seconds:B}));if(B>0){var e;(e=G.Md)==null||e.start()}}; mxb=function(G){var B;(B=G.Md)==null||B.stop();G.countdownTimer.hide()}; CIz=function(G){if(G!==void 0&&G.trim()!==""&&(G=Math.trunc(Number(G.trim())),!(isNaN(G)||G<0)))return G}; O7H=function(G,B,a){g.T.call(this,{Z:"div",bL:["ytp-info-panel-action-item"],D:[{Z:"div",J:"ytp-info-panel-action-item-disclaimer",cS:"{{disclaimer}}"},{Z:"a",bL:["ytp-info-panel-action-item-button","ytp-button"],N:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},D:[{Z:"div",J:"ytp-info-panel-action-item-icon",cS:"{{icon}}"},{Z:"div",J:"ytp-info-panel-action-item-label",cS:"{{label}}"}]}]});this.T=G;this.j=a;this.disclaimer=this.d1("ytp-info-panel-action-item-disclaimer");this.button= this.d1("ytp-info-panel-action-item-button");this.I4=!1;this.T.createServerVe(this.element,this,!0);this.listen("click",this.onClick);G="";a=g.u(B==null?void 0:B.onTap,$k);var V=g.u(a,g.rI);this.I4=!1;V?(G=V.url||"",G.startsWith("//")&&(G="https:"+G),this.I4=!0,g.vb(this.button,g.fK(G))):(V=g.u(a,IWH))&&!this.j?((G=V.phoneNumbers)&&G.length>0?(G="sms:"+G[0],V.messageText&&(G+="?&body="+encodeURI(V.messageText))):G="",this.I4=!0,g.vb(this.button,g.fK(G,[gwB]))):(a=g.u(a,p3X))&&!this.j&&(G=a.phoneNumber? "tel:"+a.phoneNumber:"",this.I4=!0,g.vb(this.button,g.fK(G,[Uxb])));var x;if(a=(x=B.disclaimerText)==null?void 0:x.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var h;this.update({label:(h=B.bodyText)==null?void 0:h.content,icon:be(),disclaimer:a})}else{this.disclaimer.style.display="none";var e;this.update({label:(e=B.bodyText)==null?void 0:e.content,icon:be()})}this.T.setTrackingParams(this.element,B.trackingParams||null);this.I4&&(this.X={externalLinkData:{url:G}})}; EwK=function(G,B){var a=Kr();g.uq.call(this,G,{Z:"div",J:"ytp-info-panel-detail-skrim",D:[{Z:"div",J:"ytp-info-panel-detail",N:{role:"dialog",id:a},D:[{Z:"div",J:"ytp-info-panel-detail-header",D:[{Z:"div",J:"ytp-info-panel-detail-title",cS:"{{title}}"},{Z:"button",bL:["ytp-info-panel-detail-close","ytp-button"],N:{"aria-label":"Cerrar"},D:[g.UX()]}]},{Z:"div",J:"ytp-info-panel-detail-body",cS:"{{body}}"},{Z:"div",J:"ytp-info-panel-detail-items"}]}]},250);this.j=B;this.items=this.d1("ytp-info-panel-detail-items"); this.C=new g.Zh(this);this.itemData=[];this.G=a;this.K(this.d1("ytp-info-panel-detail-close"),"click",this.Bf);this.K(this.d1("ytp-info-panel-detail-skrim"),"click",this.Bf);this.K(this.d1("ytp-info-panel-detail"),"click",function(V){V.stopPropagation()}); g.X(this,this.C);this.T.createServerVe(this.element,this,!0);this.K(G,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",G.getVideoData());this.hide()}; jIb=function(G,B){G=g.m(G.itemData);for(var a=G.next();!a.done;a=G.next())a=a.value,a.T.logVisibility(a.element,B)}; cNK=function(G,B){g.T.call(this,{Z:"div",J:"ytp-info-panel-preview",N:{"aria-live":"assertive","aria-atomic":"true","aria-owns":B.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.co(G.U()))},D:[{Z:"div",J:"ytp-info-panel-preview-text",cS:"{{text}}"},{Z:"div",J:"ytp-info-panel-preview-chevron",cS:"{{chevron}}"}]});var a=this;this.T=G;this.yg=this.j=this.videoId=null;this.G=this.showControls=this.X=!1;this.K(this.element,"click",function(){G.logClick(a.element);G.yr();Lb(B)}); this.C=new g.Bm(this,250,!1,100);g.X(this,this.C);this.T.createServerVe(this.element,this,!0);this.K(G,"videodatachange",this.onVideoDataChange);this.K(G,"presentingplayerstatechange",this.Du);this.K(this.T,"paidcontentoverlayvisibilitychange",this.UR);this.K(this.T,"infopaneldetailvisibilitychange",this.UR);var V=G.getVideoData()||{};b7Y(V)&&yNB(this,V);this.K(G,"onShowControls",this.g6);this.K(G,"onHideControls",this.V$)}; yNB=function(G,B){if(!B.Nq||!G.T.KE()){var a=B.HI||1E4,V=b7Y(B);G.j?B.videoId&&B.videoId!==G.videoId&&(g.oX(G.j),G.videoId=B.videoId,V?(nw_(G,a,B),G.xW()):(G.Bf(),G.j.dispose(),G.j=null)):V&&(B.videoId&&(G.videoId=B.videoId),nw_(G,a,B),G.xW())}}; b7Y=function(G){var B,a,V,x;return!!((B=G.IG)==null?0:(a=B.title)==null?0:a.content)||!!((V=G.IG)==null?0:(x=V.bodyText)==null?0:x.content)}; nw_=function(G,B,a){G.j&&G.j.dispose();G.j=new g.J8(G.ZRL,B,G);g.X(G,G.j);var V;B=((V=a.IG)==null?void 0:V.trackingParams)||null;G.T.setTrackingParams(G.element,B);var x;var h,e;if(a==null?0:(h=a.IG)==null?0:(e=h.title)==null?0:e.content){var w;V=(x=a.IG)==null?void 0:(w=x.title)==null?void 0:w.content;var K,l;if((K=a.IG)==null?0:(l=K.bodyText)==null?0:l.content)V+=" \u2022 ";x=V}else x="";var k,N;a=((k=a.IG)==null?void 0:(N=k.bodyText)==null?void 0:N.content)||"";G.update({text:x+a,chevron:g.pr()})}; fWX=function(G,B){G.j&&(g.F(B,8)?(G.X=!0,G.xW(),G.j.start()):(g.F(B,2)||g.F(B,64))&&G.videoId&&(G.videoId=null))}; k7=function(G){var B=null;try{B=G.toLocaleString("es-419",{style:"percent"})}catch(a){B=G.toLocaleString(void 0,{style:"percent"})}return B}; Nm=function(G,B){var a=0;G=g.m(G);for(var V=G.next();!(V.done||V.value.startTime>B);V=G.next())a++;return a===0?a:a-1}; H7b=function(G,B){for(var a=0,V=g.m(G),x=V.next();!x.done;x=V.next()){x=x.value;if(B=x.timeRangeStartMillis&&B0?B[0]:null;var a=g.TF("ytp-chrome-bottom"),V=g.TF("ytp-ad-module");G.G=!(a==null||!a.contains(B));G.V=!(V==null||!V.contains(B));G.Y=!(B==null||!B.hasAttribute("data-tooltip-target-fixed"));return B}; ANy=function(G,B,a){if(!G.L){if(B){G.tooltipRenderer=B;B=G.tooltipRenderer.text;var V=!1,x;(B==null?0:(x=B.runs)==null?0:x.length)&&B.runs[0].text&&(G.update({title:B.runs[0].text.toString()}),V=!0);g.OK(G.title,V);B=G.tooltipRenderer.detailsText;x=!1;var h;if((B==null?0:(h=B.runs)==null?0:h.length)&&B.runs[0].text){V=B.runs[0].text.toString();h=V.indexOf("$TARGET_ICON");if(h>-1)if(G.tooltipRenderer.targetId){B=[];V=V.split("$TARGET_ICON");var e=new g.le({Z:"span",J:"ytp-promotooltip-details-icon", D:[FQK[G.tooltipRenderer.targetId]]});g.X(G,e);for(var w=[],K=g.m(V),l=K.next();!l.done;l=K.next())l=new g.le({Z:"span",J:"ytp-promotooltip-details-component",cS:l.value}),g.X(G,l),w.push(l);V.length===2?(B.push(w[0].element),B.push(e.element),B.push(w[1].element)):V.length===1&&(h===0?(B.push(e.element),B.push(w[0].element)):(B.push(w[0].element),B.push(e.element)));h=B.length?B:null}else h=null;else h=V;if(h){if(typeof h!=="string")for(g.aL(G.details),x=g.m(h),h=x.next();!h.done;h=x.next())G.details.appendChild(h.value); else G.update({details:h});x=!0}}g.OK(G.details,x);x=G.tooltipRenderer.acceptButton;h=!1;var k,N,d;((k=g.u(x,g.ZU))==null?0:(N=k.text)==null?0:(d=N.runs)==null?0:d.length)&&g.u(x,g.ZU).text.runs[0].text&&(G.update({acceptButtonText:g.u(x,g.ZU).text.runs[0].text.toString()}),h=!0);g.OK(G.acceptButton,h);k=G.tooltipRenderer.dismissButton;N=!1;var C,z,p;((C=g.u(k,g.ZU))==null?0:(z=C.text)==null?0:(p=z.runs)==null?0:p.length)&&g.u(k,g.ZU).text.runs[0].text&&(G.update({dismissButtonText:g.u(k,g.ZU).text.runs[0].text.toString()}), N=!0);g.OK(G.dismissButton,N)}a&&(G.C=a);G.j=sIX(G);G.W=!1;G.T.U().S("web_player_hide_nitrate_promo_tooltip")||G.zt(!0);JNx(G);G.Rt&&!G.zH&&(G.zH=!0,G.vC.qY(0));G.X&&G.T.logVisibility(G.element,G.Rt)}}; gq=function(G){G.zt(!1);G.X&&G.T.logVisibility(G.element,G.Rt)}; YIH=function(G){var B,a,V,x=((B=g.u(G.acceptButton,g.ZU))==null?void 0:(a=B.text)==null?void 0:(V=a.runs)==null?void 0:V.length)&&!!g.u(G.acceptButton,g.ZU).text.runs[0].text,h,e,w;B=((h=g.u(G.dismissButton,g.ZU))==null?void 0:(e=h.text)==null?void 0:(w=e.runs)==null?void 0:w.length)&&!!g.u(G.dismissButton,g.ZU).text.runs[0].text;return x||B}; JNx=function(G){var B;if(!(B=!G.j)){B=G.j;var a=window.getComputedStyle(B);B=a.display==="none"||a.visibility==="hidden"||B.getAttribute("aria-hidden")==="true"}if(B||G.T.isMinimized())G.zt(!1);else if(B=g.UK(G.j),B.width&&B.height){G.T.xp(G.element,G.j);var V=G.T.g1().getPlayerSize().height;a=g.UK(G.d1("ytp-promotooltip-container")).height;G.G?G.element.style.top=V-a-B.height-12+"px":G.Y||(V=G.T.xJ().height-a-B.height-12,G.element.style.top=V+"px");V=G.d1("ytp-promotooltip-pointer");var x=g.gx(G.j, G.T.getRootNode()),h=Number(G.element.style.left.replace(/[^\d\.]/g,""));G=G.T.isFullscreen()?18:12;V.style.left=x.x-h+B.width/2-G+"px";V.style.top=a+"px"}else G.zt(!1)}; pM=function(G){g.T.call(this,{Z:"button",bL:["ytp-replay-button","ytp-button"],N:{title:"Volver a reproducir"},D:[g.cr()]});this.T=G;this.K(G,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.g7(G.getPlayerStateObject());Ec(this.T,this.element,this)}; UF=function(G,B){B=B===void 0?240:B;g.T.call(this,{Z:"button",bL:["ytp-button","ytp-search-button"],N:{title:"Buscar","data-tooltip-opaque":String(g.co(G.U()))},D:[{Z:"div",J:"ytp-search-icon",cS:"{{icon}}"},{Z:"div",J:"ytp-search-title",cS:"Buscar"}]});this.api=G;this.X=B;this.visible=!1;this.updateValue("icon",{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},D:[{Z:"path",J:"ytp-svg-fill",N:{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"}}]}); G.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.j();this.K(G,"appresize",this.j);this.K(G,"videodatachange",this.j);Ec(G,this.element,this)}; g.OF=function(G,B,a,V){V=V===void 0?240:V;g.T.call(this,{Z:"button",bL:["ytp-button","ytp-share-button"],N:{title:"Compartir","aria-haspopup":"true","aria-owns":a.element.id,"data-tooltip-opaque":String(g.co(G.U()))},D:[{Z:"div",J:"ytp-share-icon",cS:"{{icon}}"},{Z:"div",J:"ytp-share-title",cS:"Compartir"}]});this.api=G;this.j=B;this.C=a;this.G=V;this.X=this.visible=!1;this.tooltip=this.j.G1();G.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.K(G,"videodatachange",this.uL); this.K(G,"videoplayerreset",this.uL);this.K(G,"appresize",this.uL);this.K(G,"presentingplayerstatechange",this.uL);this.uL();this.addOnDisposeCallback(g.Oc(this.tooltip,this.element))}; i7y=function(G){var B=G.api.U(),a=G.api.getVideoData(),V=g.co(B)&&g.fb(G.api)&&g.F(G.api.getPlayerStateObject(),128);B=B.C||B.disableSharing&&G.api.getPresentingPlayerType()!==2||!a.showShareButton||a.M4||V||g.BE(a)||G.X;V=G.api.g1().getPlayerSize().width;return!!a.videoId&&V>=G.G&&!B}; PIy=function(G,B){B.name!=="InvalidStateError"&&B.name!=="AbortError"&&(B.name==="NotAllowedError"?(G.j.yr(),Lb(G.C,G.element,!1)):g.RA(B))}; M0H=function(G,B){var a=Kr(),V=G.U();a={Z:"div",J:"ytp-share-panel",N:{id:Kr(),role:"dialog","aria-labelledby":a},D:[{Z:"div",J:"ytp-share-panel-inner-content",D:[{Z:"div",J:"ytp-share-panel-title",N:{id:a},cS:"Compartir"},{Z:"a",bL:["ytp-share-panel-link","ytp-no-contextmenu"],N:{href:"{{link}}",target:V.Y,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},cS:"{{linkText}}"},{Z:"label",J:"ytp-share-panel-include-playlist",D:[{Z:"input",J:"ytp-share-panel-include-playlist-checkbox", N:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{Z:"div",J:"ytp-share-panel-loading-spinner",D:[WB()]},{Z:"div",J:"ytp-share-panel-service-buttons",cS:"{{buttons}}"},{Z:"div",J:"ytp-share-panel-error",cS:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{Z:"button",bL:["ytp-share-panel-close","ytp-button"],N:{title:"Cerrar"},D:[g.UX()]}]};g.uq.call(this,G,a,250);var x=this;this.moreButton=null;this.api=G;this.tooltip=B.G1();this.C=[];this.L= this.d1("ytp-share-panel-inner-content");this.closeButton=this.d1("ytp-share-panel-close");this.K(this.closeButton,"click",this.Bf);this.addOnDisposeCallback(g.Oc(this.tooltip,this.closeButton));this.G=this.d1("ytp-share-panel-include-playlist-checkbox");this.K(this.G,"click",this.uL);this.j=this.d1("ytp-share-panel-link");this.addOnDisposeCallback(g.Oc(this.tooltip,this.j));this.api.createClientVe(this.j,this,164503);this.K(this.j,"click",function(h){h.preventDefault();x.api.logClick(x.j);var e= x.api.getVideoUrl(!0,!0,!1,!1);e=owb(x,e);g.ej(e,x.api,h)&&x.api.pN("SHARE_CLICKED")}); this.listen("click",this.jQ);this.K(G,"videoplayerreset",this.hide);this.K(G,"fullscreentoggled",this.onFullscreenToggled);this.K(G,"onLoopRangeChange",this.wff);this.hide()}; BsV=function(G,B){GwB(G);for(var a=B.links||B.shareTargets,V=0,x={},h=0;h'),(p=C.document)&&p.write&&(p.write(Rn(z)),p.close()))):((C=g.Zj(C,p,d,H))&&z.noopener&&(C.opener=null),C&&z.noreferrer&&(C.opener=null));C&&(C.opener||(C.opener=window),C.focus());N.preventDefault()}}}(x)); x.c6.addOnDisposeCallback(g.Oc(G.tooltip,x.c6.element));w==="Facebook"?G.api.createClientVe(x.c6.element,x.c6,164504):w==="Twitter"&&G.api.createClientVe(x.c6.element,x.c6,164505);G.K(x.c6.element,"click",function(k){return function(){G.api.logClick(k.c6.element)}}(x)); G.api.logVisibility(x.c6.element,!0);G.C.push(x.c6);V++}}var K=B.more||B.moreLink,l=new g.T({Z:"a",bL:["ytp-share-panel-service-button","ytp-button"],D:[{Z:"span",J:"ytp-share-panel-service-button-more",D:[{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},D:[{Z:"rect",N:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Z:"path",N:{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"}}]}]}],N:{href:K,target:"_blank",title:"M\u00e1s"}});l.listen("click",function(k){var N=K;G.api.logClick(G.moreButton.element);N=owb(G,N);g.ej(N,G.api,k)&&G.api.pN("SHARE_CLICKED")}); l.addOnDisposeCallback(g.Oc(G.tooltip,l.element));G.api.createClientVe(l.element,l,164506);G.K(l.element,"click",function(){G.api.logClick(l.element)}); G.api.logVisibility(l.element,!0);G.C.push(l);G.moreButton=l;G.updateValue("buttons",G.C)}; owb=function(G,B){var a={};g.co(G.api.U())&&(g.lq(G.api,"addEmbedsConversionTrackingParams",[a]),B=g.LJ(B,a));return B}; GwB=function(G){for(var B=g.m(G.C),a=B.next();!a.done;a=B.next())a=a.value,a.detach(),g.WW(a);G.C=[]}; EF=function(G){return G===void 0||G.startSec===void 0||G.endSec===void 0?!1:!0}; a5_=function(G,B){G.startSec+=B;G.endSec+=B}; xGb=function(G){nO.call(this,G);this.X=this.j=this.isContentForward=this.W=!1;V4Y(this);this.K(this.T,"changeProductsInVideoVisibility",this.Wex);this.K(this.T,"videodatachange",this.onVideoDataChange)}; hSH=function(G){G.L&&G.LN.element.removeChild(G.L.element);G.L=void 0}; WzK=function(G,B){return B.map(function(a){var V,x;if((a=(V=g.u(a,eSb))==null?void 0:(x=V.thumbnail)==null?void 0:x.thumbnails)&&a.length!==0)return a[0].url}).filter(function(a){return a!==void 0}).map(function(a){a=new g.T({Z:"img", J:"ytp-suggested-action-product-thumbnail",N:{alt:"",src:a}});g.X(G,a);return a})}; wAY=function(G,B){G.isContentForward=B;g.Km(G.badge.element,"ytp-suggested-action-badge-content-forward",B)}; j1=function(G){var B=G.isContentForward&&!G.ze();g.Km(G.badge.element,"ytp-suggested-action-badge-preview-collapsed",B&&G.j);g.Km(G.badge.element,"ytp-suggested-action-badge-preview-expanded",B&&G.X)}; bi=function(G,B,a){return new g.V1(G*1E3,B*1E3,{priority:9,namespace:a})}; Kzy=function(G){G.T.KD("shopping_overlay_visible");G.T.KD("shopping_overlay_preview_collapsed");G.T.KD("shopping_overlay_preview_expanded");G.T.KD("shopping_overlay_expanded")}; V4Y=function(G){G.K(G.T,g.hm("shopping_overlay_visible"),function(){G.Ry(!0)}); G.K(G.T,g.ew("shopping_overlay_visible"),function(){G.Ry(!1)}); G.K(G.T,g.hm("shopping_overlay_expanded"),function(){G.XJ=!0;cw(G)}); G.K(G.T,g.ew("shopping_overlay_expanded"),function(){G.XJ=!1;cw(G)}); G.K(G.T,g.hm("shopping_overlay_preview_collapsed"),function(){G.j=!0;j1(G)}); G.K(G.T,g.ew("shopping_overlay_preview_collapsed"),function(){G.j=!1;j1(G)}); G.K(G.T,g.hm("shopping_overlay_preview_expanded"),function(){G.X=!0;j1(G)}); G.K(G.T,g.ew("shopping_overlay_preview_expanded"),function(){G.X=!1;j1(G)})}; NsK=function(G){g.T.call(this,{Z:"div",J:"ytp-shorts-title-channel",D:[{Z:"a",J:"ytp-shorts-title-channel-logo",N:{href:"{{channelLink}}",target:G.U().Y,"aria-label":"{{channelLogoLabel}}"}},{Z:"div",J:"ytp-shorts-title-expanded-heading",D:[{Z:"div",J:"ytp-shorts-title-expanded-title",D:[{Z:"a",cS:"{{expandedTitle}}",N:{href:"{{channelTitleLink}}",target:G.U().Y,tabIndex:"0"}}]}]}]});var B=this;this.api=G;this.j=this.d1("ytp-shorts-title-channel-logo");this.channelName=this.d1("ytp-shorts-title-expanded-title"); this.subscribeButton=null;G.createClientVe(this.j,this,36925);this.K(this.j,"click",function(a){B.api.logClick(B.j);g.Zj(window,l5B(B));a.preventDefault()}); G.createClientVe(this.channelName,this,37220);this.K(this.channelName,"click",function(a){B.api.logClick(B.channelName);g.Zj(window,l5B(B));a.preventDefault()}); kwA(this);this.K(G,"videodatachange",this.uL);this.K(G,"videoplayerreset",this.uL);this.uL()}; kwA=function(G){if(!G.api.U().m3){var B=G.api.getVideoData(),a=new g.Gx("Suscribirse",null,"Suscrito/a",null,!0,!1,B.dB,B.subscribed,"channel_avatar",null,G.api,!0);G.api.createServerVe(a.element,G);var V;G.api.setTrackingParams(a.element,((V=B.subscribeButtonRenderer)==null?void 0:V.trackingParams)||null);G.K(a.element,"click",function(){G.api.logClick(a.element)}); G.subscribeButton=a;g.X(G,G.subscribeButton);G.subscribeButton.iL(G.element)}}; l5B=function(G){var B=G.api.U(),a=G.api.getVideoData();a=g.a0(B)+a.QW;if(!g.co(B))return a;B={};g.lq(G.api,"addEmbedsConversionTrackingParams",[B]);return g.LJ(a,B)}; yO=function(G){g.uq.call(this,G,{Z:"button",bL:["ytp-skip-intro-button","ytp-popup","ytp-button"],D:[{Z:"div",J:"ytp-skip-intro-button-text",cS:"Omitir introducci\u00f3n"}]},100);var B=this;this.C=!1;this.j=new g.J8(function(){B.hide()},5E3); this.Vg=this.US=NaN;g.X(this,this.j);this.W=function(){B.show()}; this.L=function(){B.hide()}; this.G=function(){var a=B.T.getCurrentTime();a>B.US/1E3&&a0?{Z:"svg",N:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},D:[{Z:"path",bL:["ytp-circle-arrow","ytp-svg-fill"],N:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {Z:"text",bL:["ytp-jump-button-text","ytp-svg-fill"],N:{x:"7.05",y:"15.05"}}]}:{Z:"svg",N:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},D:[{Z:"path",bL:["ytp-circle-arrow","ytp-svg-fill"],N:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {Z:"text",bL:["ytp-jump-button-text","ytp-svg-fill"],N:{x:"6.5",y:"15"}}]}]});var a=this;this.T=G;this.j=B;this.X=new g.J8(function(){a.C?(a.C=!1,a.X.start()):a.element.classList.remove("ytp-jump-spin","backwards")},250); this.C=!1;(B=B>0)?this.T.createClientVe(this.element,this,36843):this.T.createClientVe(this.element,this,36844);var V=g.tm(B?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.j).toString()});this.update({title:V,"data-title-no-tooltip":V,"aria-keyshortcuts":B?"\u2192":"\u2190"});this.G=this.element.querySelector(".ytp-jump-button-text");this.G.textContent=Math.abs(this.j).toString();this.listen("click",this.onClick,this);Ec(G,this.element,this)}; gTy=function(G,B){B?G.element.classList.add("ytp-jump-button-enabled"):G.element.classList.remove("ytp-jump-button-enabled");G.T.logVisibility(G.element,B);G.T.Gh()}; DV=function(G,B){nM.call(this,G,B,"timedMarkerCueRange","Ver momentos clave");this.K(G,g.ew("timedMarkerCueRange"),this.BC);this.K(G,"updatemarkervisibility",this.updateVideoData)}; pAV=function(G){var B,a=(B=G.T.getVideoData())==null?void 0:B.Yf;if(a)for(G=G.G.SJ,a=g.m(a),B=a.next();!B.done;B=a.next())if(B=G[B.value]){var V=void 0,x=void 0,h=void 0;if(((V=B.onTap)==null?void 0:(x=V.innertubeCommand)==null?void 0:(h=x.changeEngagementPanelVisibilityAction)==null?void 0:h.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return B}}; S1=function(G){var B=G.S("web_enable_pip_on_miniplayer");g.T.call(this,{Z:"button",bL:["ytp-miniplayer-button","ytp-button"],N:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},D:[B?{Z:"svg",N:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},D:[{Z:"g",N:{transform:"translate(96, -96) scale(0.8)"},D:[{Z:"path",r7:!0,N:{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"}}]}]}: $$B()]});this.T=G;this.visible=!1;this.listen("click",this.onClick);this.K(G,"fullscreentoggled",this.uL);this.updateValue("title",g.jX(G,"Reproductor en miniatura","i"));this.update({"data-title-no-tooltip":"Reproductor en miniatura"});Ec(G,this.element,this);G.createClientVe(this.element,this,62946);this.uL()}; R_=function(G,B,a){a=a===void 0?!1:a;g.T.call(this,{Z:"button",bL:["ytp-mute-button","ytp-button"],N:G.U().SJ?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},cS:"{{icon}}"});this.T=G;this.Zx=a;this.j=null;this.G=this.Y=this.L=this.XJ=NaN;this.HS=this.W=null;this.C=[];this.X=[];this.visible=!1;this.V=null;G.S("delhi_modern_web_player")&&this.update({"data-priority":3}); a=this.T.U();this.updateValue("icon",Hr());this.tooltip=B.G1();this.j=new g.le({Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"defs",D:[{Z:"clipPath",N:{id:"ytp-svg-volume-animation-mask"},D:[{Z:"path",N:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{Z:"path",N:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{Z:"path",J:"ytp-svg-volume-animation-mover",N:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{Z:"clipPath",N:{id:"ytp-svg-volume-animation-slash-mask"}, D:[{Z:"path",J:"ytp-svg-volume-animation-mover",N:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{Z:"path",r7:!0,bL:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],N:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{Z:"path",r7:!0,bL:["ytp-svg-fill","ytp-svg-volume-animation-hider"],N:{"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.X(this,this.j);this.W=this.j.d1("ytp-svg-volume-animation-speaker");this.HS=this.W.getAttribute("d");this.C=g.Qw("ytp-svg-volume-animation-mover",this.j.element);this.X=g.Qw("ytp-svg-volume-animation-hider",this.j.element);this.GH=new as;g.X(this,this.GH);this.zH=new as;g.X(this,this.zH);this.listen("click",this.G_1);this.K(G,"appresize",this.Lj);this.K(G,"onVolumeChange",this.onVolumeChange);var V=null;a.SJ?this.addOnDisposeCallback(g.Oc(B.G1(), this.element)):(B="Tu navegador no permite cambiar el volumen. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK".split(/\$(BEGIN|END)_LINK/),V=new g.uq(G,{Z:"span",bL:["ytp-popup","ytp-generic-popup"],N:{tabindex:"0"},D:[B[0],{Z:"a",N:{href:"https://support.google.com/youtube/?p=noaudio",target:a.Y},cS:B[2]},B[4]]},100,!0),g.X(this,V),V.hide(),V.subscribe("show",function(x){G.LH(V,x)}),g.SX(G,V.element,4)); this.message=V;G.createClientVe(this.element,this,28662);this.Lj(G.g1().getPlayerSize());this.setVolume(G.getVolume(),G.isMuted())}; ETb=function(G,B){G.XJ=B;var a=G.HS;B&&(a+=s_B(UGy,OZb,B));G.W.setAttribute("d",a)}; jBg=function(G,B){G.Y=B;for(var a=20*B,V=0;V=3&&G.T.getPresentingPlayerType()!==2}; f5x=function(G){var B=nb(G.T.Ch());return B?G.j?B.pk():B.Ky():!1}; yZc=function(G){var B={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},a=G.playlist!=null&&G.playlist.pk();a=g.fb(G.T)&&(!G.j||a);var V=G.j&&g.RJ(G.T),x=f5x(G),h=G.j&&G.T.getPresentingPlayerType()===5,e=g.jX(G.T,"Siguiente","SHIFT+n"),w=g.jX(G.T,"Anterior","SHIFT+p");if(h)B.title="Iniciar video";else if(G.C)B.title="Volver a reproducir";else if(a){var K=null;G.playlist&&(K=g.ta(G.playlist,G.j?bkg(G.playlist):y__(G.playlist)));if(K){if(K.videoId){var l= G.playlist.listId;B.url=G.T.U().getVideoUrl(K.videoId,l?l.toString():void 0)}B.text=K.title;B.duration=K.lengthText?K.lengthText:K.lengthSeconds?g.E5(K.lengthSeconds):null;B.preview=K.Sf("mqdefault.jpg")}G.j?(B.title=e,B["data-title-no-tooltip"]="Siguiente",B["aria-keyshortcuts"]="SHIFT+n"):(B.title=w,B["data-title-no-tooltip"]="Anterior",B["aria-keyshortcuts"]="SHIFT+p")}else if(V){if(w=(K=G.videoData)==null?void 0:g.Mk(K))B.url=w.O1(),B.text=w.title,B.duration=w.lengthText?w.lengthText:w.lengthSeconds? g.E5(w.lengthSeconds):null,B.preview=w.Sf("mqdefault.jpg");B.title=e;B["data-title-no-tooltip"]="Siguiente";B["aria-keyshortcuts"]="SHIFT+n"}B.disabled=!V&&!a&&!x&&!h;G.update(B);G.W=!!B.url;V||a||G.C||x||h?G.X||(G.X=g.Oc(G.tooltip,G.element),G.L=G.listen("click",G.onClick,G)):G.X&&(G.X(),G.X=null,G.i6(G.L),G.L=null);G.tooltip.Gh();g.Km(G.element,"ytp-playlist-ui",G.j&&a)}; vTz=function(G,B){g.T.call(this,{Z:"div",J:"ytp-fine-scrubbing",D:[{Z:"div",J:"ytp-fine-scrubbing-draggable",D:[{Z:"div",J:"ytp-fine-scrubbing-thumbnails",N:{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}}"}}]},{Z:"div",N:{"aria-hidden":"true"},J:"ytp-fine-scrubbing-cursor"},{Z:"div", J:"ytp-fine-scrubbing-seek-time",N:{"aria-hidden":"true"},cS:"{{seekTime}}"},{Z:"div",J:"ytp-fine-scrubbing-play",D:[yp()],N:{title:"Reproducir desde este momento",role:"button"}},{Z:"div",J:"ytp-fine-scrubbing-dismiss",D:[g.UX()],N:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var a=this;this.api=G;this.L=this.d1("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.d1("ytp-fine-scrubbing-dismiss");this.HS=this.d1("ytp-fine-scrubbing-draggable");this.playButton=this.d1("ytp-fine-scrubbing-play"); this.thumbnails=[];this.X=[];this.Qb=this.j=0;this.LN=void 0;this.zH=NaN;this.SJ=this.Y=this.C=this.V=0;this.G=[];this.interval=this.frameCount=0;this.W=160;this.scale=1;this.qB=0;this.isEnabled=this.Zx=!1;HZc(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.Oc(B,this.dismissButton));this.addOnDisposeCallback(g.Oc(B,this.playButton));this.GH=new g.T8(this.HS,!0);this.GH.subscribe("dragstart",this.hK,this);this.GH.subscribe("dragmove",this.SC,this);this.GH.subscribe("dragend",this.zf,this); this.K(G,"SEEK_COMPLETE",this.gU);G.S("web_fix_fine_scrubbing_false_play")&&this.K(G,"rootnodemousedown",function(V){a.XJ=V}); this.L.addEventListener("keydown",function(){}); g.X(this,this.GH);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.L,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; HZc=function(G,B){var a=g.E5(B),V=g.tm("Saltar a: $PROGRESS",{PROGRESS:g.E5(B,!0)});G.update({ariamin:0,ariamax:Math.floor(G.api.getDuration()),arianow:Math.floor(B),arianowtext:V,seekTime:a})}; DG9=function(G){G.zH=NaN;G.Y=0;G.V=G.C}; ZZ_=function(G){var B=G.api.Q_();if(B){var a=90*G.scale,V=R0(B,160*G.scale);if(B=B.levels[V]){G.W=B.width;if(!G.G.length){V=[];for(var x=ZD(B,B.wD()),h=B.columns*B.rows,e=B.frameCount,w=0;w<=x;w++)for(var K=eG.G.length;)V= void 0,(V=G.thumbnails.pop())==null||V.dispose();for(;G.thumbnails.lengtha.length;)V=void 0,(V=G.X.pop())==null||V.dispose(); for(;G.X.length-a?-B/a*G.interval*.5:-(B+a/2)/a*G.interval}; rZc=function(G){return-((G.L.offsetWidth||(G.frameCount-1)*G.W*G.scale)-G.j/2)}; S2K=function(){g.T.call(this,{Z:"div",J:"ytp-fine-scrubbing-thumbnail"})}; RSy=function(){g.T.call(this,{Z:"div",J:"ytp-fine-scrubbing-chapter-title",D:[{Z:"div",J:"ytp-fine-scrubbing-chapter-title-content",cS:"{{chapterTitle}}"}]})}; XAX=function(G){g.T.call(this,{Z:"div",J:"ytp-heat-map-chapter",D:[{Z:"svg",J:"ytp-heat-map-svg",N:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},D:[{Z:"defs",D:[{Z:"clipPath",N:{id:"{{id}}"},D:[{Z:"path",J:"ytp-heat-map-path",N:{d:"",fill:"white"}}]},{Z:"linearGradient",N:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},D:[{Z:"stop",N:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{Z:"stop",N:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{Z:"rect",J:"ytp-heat-map-graph",N:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{Z:"rect",J:"ytp-heat-map-hover",N:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{Z:"rect",J:"ytp-heat-map-play",N:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{Z:"path",J:"ytp-modern-heat-map",N:{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=G;this.V=this.d1("ytp-heat-map-svg");this.L=this.d1("ytp-heat-map-path");this.G=this.d1("ytp-heat-map-graph");this.W=this.d1("ytp-heat-map-play");this.j=this.d1("ytp-heat-map-hover");this.C=this.d1("ytp-modern-heat-map");this.I4=!1;this.X=60;G=""+g.ix(this);this.update({id:G});G="url(#"+G+")";this.G.setAttribute("clip-path",G);this.W.setAttribute("clip-path",G);this.j.setAttribute("clip-path", G)}; q2y=function(G,B){B>0&&(G.X=B,G.V.style.height=G.X+"px")}; X4=function(){g.T.call(this,{Z:"div",J:"ytp-chapter-hover-container",D:[{Z:"div",J:"ytp-progress-bar-padding"},{Z:"div",J:"ytp-progress-list",D:[{Z:"div",bL:["ytp-play-progress","ytp-swatch-background-color"]},{Z:"div",J:"ytp-progress-linear-live-buffer"},{Z:"div",J:"ytp-load-progress"},{Z:"div",J:"ytp-hover-progress"},{Z:"div",J:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.X=this.d1("ytp-progress-list");this.L=this.d1("ytp-progress-linear-live-buffer"); this.G=this.d1("ytp-ad-progress-list");this.W=this.d1("ytp-load-progress");this.V=this.d1("ytp-play-progress");this.C=this.d1("ytp-hover-progress");this.j=this.d1("ytp-chapter-hover-container")}; qm=function(G,B){g.K4(G.j,"width",B)}; ubg=function(G,B){g.K4(G.j,"margin-right",B+"px")}; QB_=function(){this.X=this.position=this.C=this.j=this.G=this.width=NaN}; LzY=function(){g.T.call(this,{Z:"div",J:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.QO=function(G,B){g.dI.call(this,{Z:"div",J:"ytp-progress-bar-container",N:{"aria-disabled":"true"},D:[{Z:"div",bL:["ytp-heat-map-container"],D:[{Z:"div",J:"ytp-heat-map-edu"}]},{Z:"div",bL:["ytp-progress-bar"],N:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},D:[{Z:"div",J:"ytp-chapters-container"},{Z:"div",J:"ytp-timed-markers-container"}, {Z:"div",J:"ytp-clip-start-exclude"},{Z:"div",J:"ytp-clip-end-exclude"},{Z:"div",J:"ytp-scrubber-container",D:[{Z:"div",bL:["ytp-scrubber-button","ytp-swatch-background-color"],D:[{Z:"div",J:"ytp-scrubber-pull-indicator"},{Z:"img",bL:["ytp-decorated-scrubber-button"]}]}]}]},{Z:"div",bL:["ytp-fine-scrubbing-container"],D:[{Z:"div",J:"ytp-fine-scrubbing-edu"}]},{Z:"div",J:"ytp-bound-time-left",cS:"{{boundTimeLeft}}"},{Z:"div",J:"ytp-bound-time-right",cS:"{{boundTimeRight}}"},{Z:"div",J:"ytp-clip-start", N:{title:"{{clipstarttitle}}"},cS:"{{clipstarticon}}"},{Z:"div",J:"ytp-clip-end",N:{title:"{{clipendtitle}}"},cS:"{{clipendicon}}"}]});this.api=G;this.IG=!1;this.PD=this.LR=this.Er=this.L=this.Nq=0;this.Fg=null;this.dC=!1;this.Qb={};this.wO={};this.clipEnd=Infinity;this.QW=this.d1("ytp-clip-end");this.m3=new g.T8(this.QW,!0);this.YD=this.d1("ytp-clip-end-exclude");this.Cd=this.d1("ytp-clip-start-exclude");this.clipStart=0;this.Md=this.d1("ytp-clip-start");this.fd=new g.T8(this.Md,!0);this.Y=this.eJ= 0;this.progressBar=this.d1("ytp-progress-bar");this.Yf={};this.SJ={};this.Ur=this.d1("ytp-chapters-container");this.e6=this.d1("ytp-timed-markers-container");this.j=[];this.W=[];this.xF={};this.Vg=null;this.HS=-1;this.Dx=this.GH=0;this.OZ=this.V=null;this.L3=this.d1("ytp-scrubber-button");this.S_=this.d1("ytp-decorated-scrubber-button");this.iz=this.d1("ytp-scrubber-container");this.Vb=new g.kj;this.n3=new QB_;this.C=new D$(0,0);this.sf=null;this.zH=this.MD=!1;this.Da=null;this.XJ=this.d1("ytp-heat-map-container"); this.Qv=this.d1("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=[];this.MB=this.d1("ytp-fine-scrubbing-container");this.w7=this.d1("ytp-fine-scrubbing-edu");this.X=void 0;this.Zx=this.R4=this.LN=!1;this.tooltip=B.G1();this.addOnDisposeCallback(g.Oc(this.tooltip,this.QW));g.X(this,this.m3);this.m3.subscribe("hoverstart",this.MN,this);this.m3.subscribe("hoverend",this.x6,this);this.K(this.QW,"click",this.LW);this.addOnDisposeCallback(g.Oc(this.tooltip,this.Md));g.X(this,this.fd);this.fd.subscribe("hoverstart", this.MN,this);this.fd.subscribe("hoverend",this.x6,this);this.K(this.Md,"click",this.LW);TsV(this);this.K(G,"resize",this.Df);this.K(G,"presentingplayerstatechange",this.uJ1);this.K(G,"videodatachange",this.au);this.K(G,"videoplayerreset",this.tJd);this.K(G,"cuerangesadded",this.fsr);this.K(G,"cuerangesremoved",this.qAN);this.K(G,"onLoopRangeChange",this.Ak);this.K(G,"innertubeCommand",this.onClickCommand);this.K(G,g.hm("timedMarkerCueRange"),this.tSf);this.K(G,"updatemarkervisibility",this.Vl);this.K(G, "serverstitchedvideochange",this.s81);this.updateVideoData(G.getVideoData(),!0);this.Ak(G.getLoopRange());ui(this)&&!this.X&&(this.X=new vTz(this.api,this.tooltip),G=g.Iq(this.element).x||0,this.X.Df(G,this.L),this.X.iL(this.MB),g.X(this,this.X),this.K(this.X.dismissButton,"click",this.yT),this.K(this.X.playButton,"click",this.bl),this.K(this.X.element,"dblclick",this.bl));this.api.createClientVe(this.XJ,this,139609,!0);this.api.createClientVe(this.Qv,this,140127,!0);this.api.createClientVe(this.w7, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; TsV=function(G){if(G.j.length===0){var B=new X4;G.j.push(B);g.X(G,B);B.iL(G.Ur,0)}for(;G.j.length>1;)G.j.pop().dispose();qm(G.j[0],"100%");G.j[0].startTime=0;G.j[0].title=""}; sBx=function(G){var B=B===void 0?NaN:B;var a=new XAX(G.api);G.G.push(a);g.X(G,a);a.iL(G.XJ);B>=0&&(a.element.style.width=B+"px")}; Fz_=function(G){for(;G.W.length;)G.W.pop().dispose()}; AZz=function(G){var B,a,V,x,h;return(h=g.u((x=g.u((B=G.getWatchNextResponse())==null?void 0:(a=B.playerOverlays)==null?void 0:(V=a.playerOverlayRenderer)==null?void 0:V.decoratedPlayerBarRenderer,jt))==null?void 0:x.playerBar,JZ_))==null?void 0:h.chapters}; Y29=function(G){for(var B=G.j,a=[],V=0;V=e&&p<=k&&h.push(d)}K>0&&(G.XJ.style.height=K+"px");e=G.G[V];k=h;d=x;z=K;p=V===0;p=p===void 0?!1:p;q2y(e,z);N=k;C=e.X;p=p===void 0?!1:p;var O=1E3/N.length,b=[];b.push({x:0,y:100});for(var c=0;c0&&(a=h[h.length-1])}g.LM(G);w=[];B=g.m(B.heatMarkersDecorations||[]);for(x=B.next();!x.done;x=B.next())if(x=g.u(x.value,axb))K=x.label,V=a=l=void 0,w.push({visibleTimeRangeStartMillis:(l=x.visibleTimeRangeStartMillis)!=null?l:-1,visibleTimeRangeEndMillis:(a=x.visibleTimeRangeEndMillis)!=null?a:-1,decorationTimeMillis:(V=x.decorationTimeMillis)!=null?V:NaN,label:K?g.tU(K):""});G.heatMarkersDecorations=w}}; oTb=function(G,B){G.W.push(B);g.X(G,B);B.iL(G.e6,G.e6.children.length)}; M49=function(G,B){B=g.m(B);for(var a=B.next();!a.done;a=B.next()){a=a.value;var V=Tx(G,a.timeRangeStartMillis/(G.C.j*1E3),sF(G));g.K4(a.element,"transform","translateX("+V+"px) scaleX(0.6)")}}; iZx=function(G,B){var a=0,V=!1;B=g.m(B);for(var x=B.next();!x.done;x=B.next()){x=x.value;if(g.u(x,xQA)){x=g.u(x,xQA);var h={startTime:NaN,title:null,onActiveCommand:void 0},e=x.title;h.title=e?g.tU(e):"";e=x.timeRangeStartMillis;e!=null&&(h.startTime=e);h.onActiveCommand=x.onActiveCommand;x=h;a===0&&x.startTime!==0&&(G.j[a].startTime=0,G.j[a].title="",G.j[a].onActiveCommand=x.onActiveCommand,a++,V=!0);G.j.length<=a&&(h=new X4,G.j.push(h),g.X(G,h),h.iL(G.Ur,G.Ur.children.length));G.j[a].startTime= x.startTime;G.j[a].title=x.title?x.title:"";G.j[a].onActiveCommand=x.onActiveCommand;G.j[a].index=V?a-1:a}a++}for(;a=0;V--)if(G.j[V].width>0){ubg(G.j[V],0);var x=Math.floor(G.j[V].width);G.j[V].width=x;qm(G.j[V],x+"px");break}G.j[a].width=0;qm(G.j[a],"0")}else a===G.j.length-1?(V=Math.floor(G.j[a].width+B),G.j[a].width=V,qm(G.j[a],V+"px")):(B=G.j[a].width+B,V=Math.round(B),B-=V,G.j[a].width=V,qm(G.j[a],V+"px"));a=0;if(G.G.length===G.j.length)for(B=0;B< G.G.length;B++)V=G.j[B].width,G.G[B].element.style.width=V+"px",G.G[B].element.style.left=a+"px",a+=V+Je(G);G.api.S("delhi_modern_web_player")&&(G.j.length===1?G.j[0].X.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(G.j[0].X.classList.remove("ytp-progress-bar-end"),G.j[0].X.classList.add("ytp-progress-bar-start"),G.j[G.j.length-1].X.classList.add("ytp-progress-bar-end")))}; hFb=function(G,B){var a=0,V=!1,x=G.j.length,h=G.C.j*1E3;h===0&&(h=G.api.getProgressState().seekableEnd*1E3);if(h>0&&G.L>0){for(var e=G.L-Je(G)*G.GH,w=G.Dx===0?3:e*G.Dx,K=g.m(G.j),l=K.next();!l.done;l=K.next())l.value.width=0;for(;a1);l=(h===0?0:K/h*e)+G.j[a].width;if(l>w)G.j[a].width=l;else{G.j[a].width=0;var k=G,N=a,d=k.j[N-1];d!==void 0&&d.width>0? d.width+=l:NG.Dx&&(G.Dx=K/h),V=!0)}a++}}return V}; F4=function(G){if(G.L){var B=G.api.getProgressState(),a=G.api.getVideoData();if(!(a&&a.enableServerStitchedDai&&a.enablePreroll)||isFinite(B.current)){var V;if(((V=G.api.getVideoData())==null?0:GA(V))&&B.airingStart&&B.airingEnd)var x=Ae(G,B.airingStart,B.airingEnd);else if(G.api.getPresentingPlayerType()===2&&G.api.U().S("show_preskip_progress_bar_for_skippable_ads")){var h,e,w;x=(a=(x=G.api.getVideoData())==null?void 0:(h=x.getPlayerResponse())==null?void 0:(e=h.playerConfig)==null?void 0:(w=e.webPlayerConfig)== null?void 0:w.skippableAdProgressBarDuration)?Ae(G,B.seekableStart,a/1E3):Ae(G,B.seekableStart,B.seekableEnd)}else x=Ae(G,B.seekableStart,B.seekableEnd);h=Su(x,B.loaded,0);B=Su(x,B.current,0);e=G.C.X!==x.X||G.C.j!==x.j;G.C=x;Y7(G,B,h);e&&eFB(G);WV_(G)}}}; Ae=function(G,B,a){return w9b(G)?new D$(Math.max(B,G.sf.startTimeMs/1E3),Math.min(a,G.sf.endTimeMs/1E3)):new D$(B,a)}; KVb=function(G,B){var a;if(((a=G.sf)==null?void 0:a.type)==="repeatChapter"||(B==null?void 0:B.type)==="repeatChapter")B&&(B=G.j[Nm(G.j,B.startTimeMs)],g.Km(B.j,"ytp-repeating-chapter",!1)),G.sf&&(B=G.j[Nm(G.j,G.sf.startTimeMs)],g.Km(B.j,"ytp-repeating-chapter",!0)),G.j.forEach(function(V){g.Km(V.j,"ytp-exp-chapter-hover-container",!G.sf)})}; Pg=function(G,B){var a=G.C;a=a.X+B.X*a.getLength();if(G.j.length>1){a=ii(G,B.C,!0);for(var V=0,x=0;x0&&(V+=G.j[x].width,V+=Je(G));a=(G.j[a].startTime+(B.C-V)/G.j[a].width*((a===G.j.length-1?G.C.j*1E3:G.j[a+1].startTime)-G.j[a].startTime))/1E3||0}return a}; o_=function(G,B,a,V,x){B=B<0?0:Math.floor(Math.min(B,G.api.getDuration())*1E3);a=a<0?0:Math.floor(Math.min(a,G.api.getDuration())*1E3);G=G.progressBar.visualElement;V={seekData:{startMediaTimeMs:B,endMediaTimeMs:a,seekSource:V}};(B=g.y0())&&g.ob(MT)(void 0,B,G,x,V,void 0)}; lxb=function(G,B,a){if(a>=G.j.length)return!1;var V=G.L-Je(G)*G.GH;return Math.abs(B-G.j[a].startTime/1E3)/G.C.j*V<4}; eFB=function(G){G.L3.style.removeProperty("height");for(var B=g.m(Object.keys(G.Qb)),a=B.next();!a.done;a=B.next())kZb(G,a.value);Mm(G);Y7(G,G.Y,G.eJ)}; sF=function(G){var B=G.Vb.x;B=g.eH(B,0,G.L);G.n3.update(B,G.L);return G.n3}; Bt=function(G){return(G.zH?135:90)-G1(G)}; G1=function(G){var B=48,a=G.api.U();G.zH?B=54:g.co(a)&&!a.X?B=40:G.api.S("delhi_modern_web_player")&&(B=68);return B}; Y7=function(G,B,a){G.Y=B;G.eJ=a;var V=sF(G),x=G.C.j;var h=G.C;h=h.X+G.Y*h.getLength();var e=g.tm("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.E5(h,!0),DURATION:g.E5(x,!0)}),w=Nm(G.j,h*1E3);w=G.j[w].title;G.update({ariamin:Math.floor(G.C.X),ariamax:Math.floor(x),arianow:Math.floor(h),arianowtext:w?w+" "+e:e});x=G.clipStart;h=G.clipEnd;G.sf&&G.api.getPresentingPlayerType()!==2&&(x=G.sf.startTimeMs/1E3,h=G.sf.endTimeMs/1E3);x=Su(G.C,x,0);w=Su(G.C,h,1);e=G.api.getVideoData();h=g.eH(B,x,w);a=(e==null? 0:g.oS(e))?1:g.eH(a,x,w);B=Tx(G,B,V);g.K4(G.iz,"transform","translateX("+B+"px)");G.api.S("delhi_modern_web_player")&&NcX(G,B);aH(G,V,x,h,"PLAY_PROGRESS");(e==null?0:GA(e))?(B=G.api.getProgressState().seekableEnd)&&aH(G,V,h,Su(G.C,B),"LIVE_BUFFER"):aH(G,V,x,a,"LOAD_PROGRESS");if(G.api.S("web_player_heat_map_played_bar")){var K;(K=G.G[0])!=null&&K.W.setAttribute("width",(h*100).toFixed(2)+"%")}}; NcX=function(G,B){if(G.api.getPresentingPlayerType()!==1)G.Ur.style.removeProperty("clip-path");else{B||(B=Tx(G,G.Y,sF(G)));var a=G.dC?36:28,V=B-a/2;B+=a/2;G.Ur.style.clipPath='path("M 0 0 L 0 8 L '+(V+" 8 C "+(V+6+" 8 "+(V+6)+" 0 "+V+" 0 L 0 0 M ")+(B+" 0 L ")+(G.L+" 0 L ")+(G.L+" 8 L ")+(B+" 8 C ")+(B-6+" 8 "+(B-6)+" 0 "+B+' 0")'))}}; aH=function(G,B,a,V,x){var h=G.j.length,e=B.j-G.GH*Je(G),w=a*e;a=ii(G,w);var K=V*e;e=ii(G,K);x==="HOVER_PROGRESS"&&(e=ii(G,B.j*V,!0),K=B.j*V-dQz(G,B.j*V)*Je(G));V=Math.max(w-Csy(G,a),0);for(w=a;w=G.j.length)return G.L;for(var a=0,V=0;V0||G.YD.clientWidth>0?(h=B.clientWidth/a,G=-1*G.Cd.clientWidth/a):(h/=a,G=-1*G.j[x].element.offsetLeft/a),g.K4(B,"background-size",h+"px"),g.K4(B,"background-position-x",G+"px"))}; Vl=function(G,B,a,V,x){x||G.api.U().X?B.style.width=a+"px":g.K4(B,"transform","scalex("+(V?a/V:0)+")")}; ii=function(G,B,a){var V=0;(a===void 0?0:a)&&(B-=dQz(G,B)*Je(G));a=g.m(G.j);for(var x=a.next();!x.done;x=a.next()){x=x.value;if(B>x.width)B-=x.width;else break;V++}return V===G.j.length?V-1:V}; Tx=function(G,B,a){var V=B*G.C.j*1E3;for(var x=-1,h=g.m(G.j),e=h.next();!e.done;e=h.next())e=e.value,V>e.startTime&&e.width>0&&x++;V=x<0?0:x;x=a.j-Je(G)*G.GH;return B*x+Je(G)*V+a.G}; dQz=function(G,B){for(var a=G.j.length,V=0,x=g.m(G.j),h=x.next();!h.done;h=x.next())if(h=h.value,h.width!==0)if(B>h.width)B-=h.width,B-=Je(G),V++;else break;return V===a?a-1:V}; g.mQ9=function(G,B,a,V){var x=G.L!==a,h=G.zH!==V;G.Nq=B;G.L=a;G.zH=V;ui(G)&&(B=G.X)!=null&&(B.scale=V?1.5:1);eFB(G);G.j.length===1&&(G.j[0].width=a||0);x&&g.LM(G);G.X&&h&&ui(G)&&(G.X.isEnabled&&(a=G.zH?135:90,V=a-G1(G),G.MB.style.height=a+"px",g.K4(G.XJ,"transform","translateY("+-V+"px)"),g.K4(G.progressBar,"transform","translateY("+-V+"px)")),ZZ_(G.X))}; Mm=function(G){var B=!!G.sf&&G.api.getPresentingPlayerType()!==2,a=G.clipStart,V=G.clipEnd,x=!0,h=!0;B&&G.sf?(a=G.sf.startTimeMs/1E3,V=G.sf.endTimeMs/1E3):(x=a>G.C.X,h=G.C.j>0&&VG.Y);g.Km(G.L3,"ytp-scrubber-button-hover",a===V&&G.j.length>1);if(G.api.S("web_player_heat_map_played_bar")){var h;(h=G.G[0])!=null&&h.j.setAttribute("width",(B.X*100).toFixed(2)+"%")}}}; kZb=function(G,B){var a=G.Qb[B];B=G.wO[B];var V=sF(G),x=Su(G.C,a.start/1E3,0),h=zQ9(a,G.zH)/V.width;var e=Su(G.C,a.end/1E3,1);h!==Number.POSITIVE_INFINITY&&(x=g.eH(x,0,e-h));e=Math.min(e,x+h);a.color&&(B.style.background=a.color);a=x;B.style.left=Math.max(a*V.j+V.G,0)+"px";Vl(G,B,g.eH((e-a)*V.j+V.G,0,V.width),V.width,!0)}; IxB=function(G,B){var a=B.getId();G.Qb[a]===B&&(g.xo(G.wO[a]),delete G.Qb[a],delete G.wO[a])}; ui=function(G){var B=g.YF(G.api.U())&&(G.api.S("web_shorts_pip")||G.api.S("web_watch_pip")),a;return!((a=G.api.getVideoData())==null?0:a.isLivePlayback)&&!G.api.isMinimized()&&!G.api.isInline()&&(!G.api.l2()||!B)}; xL=function(G){G.X&&(G.X.disable(),G.Er=0,G.XJ.style.removeProperty("transform"),G.progressBar.style.removeProperty("transform"),G.MB.style.removeProperty("height"),G.element.parentElement&&G.element.parentElement.style.removeProperty("height"))}; gs9=function(G,B){var a=B/Bt(G)*G1(G);g.K4(G.progressBar,"transform","translateY("+-B+"px)");g.K4(G.XJ,"transform","translateY("+-B+"px)");g.K4(G.MB,"transform","translateY("+a+"px)");G.MB.style.height=B+a+"px";G.element.parentElement&&(G.element.parentElement.style.height=G1(G)-a+"px")}; p9x=function(G,B){B?G.V||(G.element.removeAttribute("aria-disabled"),G.V=new g.T8(G.progressBar,!0),G.V.subscribe("hovermove",G.ufl,G),G.V.subscribe("hoverend",G.tn1,G),G.V.subscribe("dragstart",G.JiS,G),G.V.subscribe("dragmove",G.E_J,G),G.V.subscribe("dragend",G.qxJ,G),G.api&&G.api.S("delhi_modern_web_player")&&(G.OZ=new g.T8(G.progressBar,!0),G.OZ.subscribe("hoverstart",function(){G.dC=!0;NcX(G)},G),G.OZ.subscribe("hoverend",function(){G.dC=!1; NcX(G)},G)),G.Da=G.listen("keydown",G.C7)):G.V&&(G.element.setAttribute("aria-disabled","true"),G.i6(G.Da),G.V.cancel(),G.V.dispose(),G.V=null)}; Je=function(G){return G.api.S("delhi_modern_web_player")?4:G.zH?3:2}; w9b=function(G){var B;return!((B=G.sf)==null||!B.postId)&&G.api.getPresentingPlayerType()!==2}; h_=function(G,B){g.T.call(this,{Z:"button",bL:["ytp-remote-button","ytp-button"],N:{title:"Reproducir en el televisor","aria-haspopup":"true","data-priority":"9"},cS:"{{icon}}"});this.T=G;this.Gi=B;this.j=null;this.K(G,"onMdxReceiversChange",this.uL);this.K(G,"presentingplayerstatechange",this.uL);this.K(G,"appresize",this.uL);G.createClientVe(this.element,this,139118);this.uL();this.listen("click",this.X,this);Ec(G,this.element,this)}; ey=function(G,B){g.T.call(this,{Z:"button",bL:["ytp-button","ytp-settings-button"],N:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":Kr(),title:"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},D:[g.nr()]});this.T=G;this.Gi=B;this.X=!0;this.listen("click",this.C);this.K(G,"onPlaybackQualityChange",this.updateBadge);this.K(G,"videodatachange",this.updateBadge);this.K(G,"webglsettingschanged",this.updateBadge);this.K(G,"appresize",this.j);Ec(G,this.element,this);this.T.createClientVe(this.element, this,28663);this.updateBadge();this.j(G.g1().getPlayerSize())}; UQY=function(G,B){G.X=!!B;G.j(G.T.g1().getPlayerSize())}; Wt=function(G,B){V8.call(this,"Anotaciones",g.KP.A8);this.T=G;this.Gi=B;this.j=!1;G.S("web_settings_menu_icons")&&this.setIcon({Z:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Z:"path",N:{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.K(G,"videodatachange",this.uL);this.K(G,"onApiChange",this.uL);this.subscribe("select",this.onSelect,this);this.uL()}; w7=function(G,B){g.u2.call(this,"Pista de audio",g.KP.AUDIO,G,B);this.T=G;this.tracks={};g.hi(this.element,"ytp-audio-menu-item");this.countLabel=new g.T({Z:"div",D:[{Z:"span",cS:"Pista de audio"},{Z:"span",J:"ytp-menuitem-label-count",cS:"{{content}}"}]});G.S("web_settings_menu_icons")&&this.setIcon({Z:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Z:"path",N:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]});g.X(this,this.countLabel);g.sc(this,this.countLabel);this.K(G,"videodatachange",this.uL);this.K(G,"onPlaybackAudioChange",this.uL);this.uL()}; Kk=function(G,B){V8.call(this,"Reproducci\u00f3n autom\u00e1tica",g.KP.J8);this.T=G;this.Gi=B;this.j=!1;this.C=[];this.K(G,"presentingplayerstatechange",this.X);this.subscribe("select",this.onSelect,this);G.createClientVe(this.element,this,113682);this.X()}; Ojg=function(G,B){g.Fq.call(this,g.JK({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.T=G;this.Gi=B;this.K(this.element,"click",this.onClick);this.Gi.WC(this)}; Esz=function(G,B){var a;g.YF(G.U())&&(a={Z:"div",J:"ytp-panel-footer-content",D:[{Z:"span",cS:"Ajusta la calidad de descarga en la "},{Z:"a",J:"ytp-panel-footer-content-link",cS:"Configuraci\u00f3n",N:{href:"/account_downloads"}}]});g.u2.call(this,"Calidad",g.KP.BL,G,B,void 0,void 0,a);this.T=G;this.HS={};this.Y={};this.G={};this.GH=new Set;this.j=this.L=!1;this.W="unknown";this.zH="";this.XJ=new g.Ad;g.X(this,this.XJ);this.L=this.T.S("web_player_use_new_api_for_quality_pullback");this.j=this.T.S("web_player_enable_premium_hbr_playback_cap"); G.S("web_settings_menu_icons")&&this.setIcon({Z:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Z:"path",N:{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.hi(this.X.element,"ytp-quality-menu");this.K(G,"videodatachange",this.D7);this.K(G,"videoplayerreset",this.D7);this.K(G,"onPlaybackQualityChange",this.Be);this.D7();G.createClientVe(this.element,this,137721)}; bj_=function(G,B,a){var V=G.HS[B],x=g.Xa[B];return jex(G,V?V.qualityLabel:x?x+"p":"Autom\u00e1tica",B,a)}; yyx=function(G,B,a,V,x){var h=(B=G.j?G.G[B]:G.Y[B])&&B.quality,e=B&&B.qualityLabel;e=e?e:"Autom\u00e1tica";V&&(e="("+e);G=jex(G,e,h||"",x);V&&G.D.push(")");(V=(V=B&&B.paygatedQualityDetails)&&V.paygatedIndicatorText)&&a&&G.D.push({Z:"div",J:"ytp-premium-label",cS:V});return G}; jex=function(G,B,a,V){B={Z:"span",bL:V,D:[B]};var x;V="ytp-swatch-color";if(G.L||G.j)V="ytp-swatch-color-white";a==="highres"?x="8K":a==="hd2880"?x="5K":a==="hd2160"?x="4K":a.indexOf("hd")===0&&a!=="hd720"&&(x="HD");x&&(B.D.push(" "),B.D.push({Z:"sup",J:V,cS:x}));return B}; lg=function(G,B,a,V,x,h){h=h===void 0?!1:h;var e={Z:"div",bL:["ytp-input-slider-section"],D:[{Z:"input",J:"ytp-input-slider",N:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};x&&e.D.unshift(x);h&&e.bL.push("ytp-vertical-slider");g.T.call(this,e);this.C=G;this.G=B;this.W=a;this.initialValue=V;this.header=x;this.j=this.d1("ytp-input-slider");this.X=V?V:G;this.init();this.K(this.j,"input",this.V);this.K(this.j,"keydown", this.L)}; nsK=function(G,B){G.X=B;G.updateValue("slidervalue",G.X);G.j.valueAsNumber=G.X;cyz(G,B)}; cyz=function(G,B){G.j.style.setProperty("--yt-slider-shape-gradient-percent",(B-G.C)/(G.G-G.C)*100+"%")}; kL=function(G){lg.call(this,G.getAvailablePlaybackRates()[0],G.getAvailablePlaybackRates()[G.getAvailablePlaybackRates().length-1],.05,G.getPlaybackRate(),{Z:"div",J:"ytp-speedslider-indicator-container",D:[{Z:"div",J:"ytp-speedslider-badge"},{Z:"p",J:"ytp-speedslider-text"}]});this.T=G;this.zH=AkX(this.XJ,this);g.hi(this.j,"ytp-speedslider");this.Y=this.d1("ytp-speedslider-text");this.GH=this.d1("ytp-speedslider-badge");fxc(this);this.K(this.j,"change",this.HS)}; fxc=function(G){G.Y.textContent=G.X+"x";G.GH.classList.toggle("ytp-speedslider-premium-badge",G.X>2&&G.T.S("enable_web_premium_varispeed"))}; N3=function(G,B,a,V,x,h,e){g.T.call(this,{Z:"div",J:"ytp-slider-section",N:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},D:[{Z:"div",J:"ytp-slider",D:[{Z:"div",J:"ytp-slider-handle"}]}]});this.V=G;this.Y=B;this.X=a;this.C=V;this.zH=x;this.Zx=h;this.range=this.C-this.X;this.LN=this.d1("ytp-slider-section");this.G=this.d1("ytp-slider");this.XJ=this.d1("ytp-slider-handle");this.W=new g.T8(this.G, !0);this.j=e?e:a;g.X(this,this.W);this.W.subscribe("dragmove",this.cL,this);this.K(this.element,"keydown",this.rH);this.K(this.element,"wheel",this.yX);this.init()}; d7=function(G){N3.call(this,.05,.05,G.getAvailablePlaybackRates()[0],G.getAvailablePlaybackRates()[G.getAvailablePlaybackRates().length-1],150,20,G.getPlaybackRate());this.T=G;this.L=g.M6("P");this.GH=AkX(this.HS,this);g.hi(this.G,"ytp-speedslider");g.hi(this.L,"ytp-speedslider-text");G=this.L;var B=this.G;B.parentNode&&B.parentNode.insertBefore(G,B.nextSibling);Hjg(this);this.K(this.T,"onPlaybackRateChange",this.updateValues)}; Hjg=function(G){G.L.textContent=vsb(G,G.j)+"x"}; vsb=function(G,B){G=Number(g.eH(B,G.X,G.C).toFixed(2));B=Math.floor((G+.001)*100%5+2E-15);var a=G;B!==0&&(a=G-B*.01);return Number(a.toFixed(2))}; DQX=function(G){g.dI.call(this,{Z:"div",J:"ytp-speedslider-component"});G.S("web_settings_use_input_slider")?this.j=new kL(G):this.j=new d7(G);g.X(this,this.j);this.element.appendChild(this.j.element)}; S_z=function(G){var B=new DQX(G);fO.call(this,G,B,"Personalizada");g.X(this,B)}; RFX=function(G,B){var a=new S_z(G);g.u2.call(this,"Velocidad de reproducci\u00f3n",g.KP.WL,G,B,Ck(G)?void 0:"Personalizada",Ck(G)?void 0:function(){g.SR(B,a)}); var V=this;this.G=!1;g.X(this,a);this.W=new kL(G);g.X(this,this.W);G.S("web_settings_menu_icons")&&this.setIcon({Z:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Z:"path",N:{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.T=G;this.G=!1;this.zH=null;Ck(G)?(this.j=g.tm("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.T.getPlaybackRate().toString()}),this.L=this.T.getPlaybackRate()):this.L=this.j=null;this.Y=this.T.getAvailablePlaybackRates();this.K(G,"presentingplayerstatechange",this.uL);var x;((x=this.T.getVideoData())==null?0:x.cn())&&this.K(G,"serverstitchedvideochange",this.uL);this.K(this.W.j,"change",function(){V.G=!0;V.uL()}); this.uL()}; Zjc=function(G,B){var a=z1(B);G.j&&(G.G||B===G.L)?(G.o8(G.j),G.jn(B.toString())):G.o8(a)}; $Qx=function(G){G.Qm(G.Y.map(z1));G.j=null;G.L=null;var B=G.T.getPlaybackRate();Ck(G.T)&&ryy(G,B);!G.Y.includes(B)||G.G?G.o8(G.j):G.o8(z1(B))}; ryy=function(G,B){G.L=B;G.j=g.tm("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:B.toString()});B=G.Y.map(z1);B.unshift(G.j);G.Qm(B)}; z1=function(G){return G.toString()}; Ck=function(G){return G.S("web_settings_menu_surface_custom_playback")}; X9B=function(G){return G.S("web_settings_menu_surface_custom_playback")&&G.S("web_settings_use_input_slider")}; urb=function(G,B,a,V){var x=new g.Hw(B,void 0,"Anulaci\u00f3n de video");g.u2.call(this,V.text||"",G,B,a,"Anulaci\u00f3n de video",function(){g.SR(a,x)}); var h=this;g.hi(this.element,"ytp-subtitles-options-menu-item");this.setting=V.option.toString();G=V.options;this.settings=g.NU(G,this.Sa,this);this.L=x;g.X(this,this.L);B=new g.Fq({Z:"div",J:"ytp-menuitemtitle",cS:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.X(this,B);this.L.WC(B,!0);this.G=new g.Fq({Z:"div",J:"ytp-menuitem",N:{role:"menuitemradio",tabindex:"0"},D:[{Z:"div",J:"ytp-menuitem-label",cS:"S\u00ed"}]},-1);g.X(this,this.G);this.L.WC(this.G, !0);this.K(this.G.element,"click",function(){q_B(h,!0)}); this.j=new g.Fq({Z:"div",J:"ytp-menuitem",N:{role:"menuitemradio",tabindex:"0"},D:[{Z:"div",J:"ytp-menuitem-label",cS:"No"}]},-2);g.X(this,this.j);this.L.WC(this.j,!0);this.K(this.j.element,"click",function(){q_B(h,!1)}); this.Qm(g.br(G,this.Sa))}; q_B=function(G,B){G.publish("settingChange",G.setting+"Override",!B);G.Gi.dR()}; t_=function(G,B){g.Hw.call(this,G,void 0,"Opciones");var a=this;this.VI={};for(var V=0;V=0);if(!(B<0||B===G.G)){G.G=B;B=243*G.scale;var a=141*G.scale,V=m0X(G.X,G.G,B);zSB(G.bg,V,B,a,!0);G.HS.start()}}; Ctb=function(G){var B=G.j;G.type===3&&G.GH.stop();G.api.removeEventListener("appresize",G.XJ);G.Y||B.setAttribute("title",G.C);G.C="";G.j=null;G.updateValue("keyBoardShortcut","");G.wrapper.style.width=""}; tCc=function(G){g.T.call(this,{Z:"button",bL:["ytp-watch-later-button","ytp-button"],N:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.co(G.U()))},D:[{Z:"div",J:"ytp-watch-later-icon",cS:"{{icon}}"},{Z:"div",J:"ytp-watch-later-title",cS:"Ver m\u00e1s tarde"}]});this.T=G;this.icon=null;this.visible=this.isRequestPending=this.j=!1;A1H(G);G.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.K(G,"videoplayerreset",this.onReset);this.K(G, "appresize",this.NC);this.K(G,"videodatachange",this.NC);this.K(G,"presentingplayerstatechange",this.NC);this.NC();G=this.T.U();var B=g.SL("yt-player-watch-later-pending");G.G&&B?(XVH(),z6A(this)):this.uL(2);g.Km(this.element,"ytp-show-watch-later-title",g.co(G));Ec(this.T,this.element,this)}; mBK=function(G){var B=G.T.getPlayerSize(),a=G.T.U(),V=G.T.getVideoData(),x=g.co(a)&&g.fb(G.T)&&g.F(G.T.getPlayerStateObject(),128),h=a.C;return a.PD&&B.width>=240&&!V.isAd()&&V.PD&&!x&&!g.BE(V)&&!G.T.isEmbedsShortsMode()&&!h}; ILY=function(G,B){qHH(g.TQ(G.T.U()),"wl_button",function(){XVH({videoId:B});window.location.reload()})}; z6A=function(G){if(!G.isRequestPending){G.isRequestPending=!0;G.uL(3);var B=G.T.getVideoData();B=G.j?B.removeFromWatchLaterCommand:B.addToWatchLaterCommand;var a=G.T.pM(),V=G.j?function(){G.j=!1;G.isRequestPending=!1;G.uL(2);G.T.U().W&&G.T.pN("WATCH_LATER_VIDEO_REMOVED")}:function(){G.j=!0; G.isRequestPending=!1;G.uL(1);G.T.U().X&&G.T.Op(G.element);G.T.U().W&&G.T.pN("WATCH_LATER_VIDEO_ADDED")}; Jl(a,B).then(V,function(){G.isRequestPending=!1;G.uL(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");G.T.U().W&&G.T.pN("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; gqz=function(G,B){if(B!==G.icon){switch(B){case 3:var a=WB();break;case 1:a=Ix();break;case 2:a={Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{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:a={Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path", r7:!0,N:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}G.updateValue("icon",a);G.icon=B}}; g.fk=function(){g.FJ.apply(this,arguments);this.Qw=(this.T9=g.co(this.api.U()))&&(this.api.U().X||MI()||Ph());this.bv=48;this.Td=69;this.vZ=this.I8=null;this.gy=[];this.Ge=this.wJ=this.Zn=this.zK=this.wC=null;this.va=[];this.contextMenu=this.Px=this.overflowButton=this.Wr=this.AA=this.searchButton=this.copyLinkButton=this.shareButton=this.OC=this.fR=this.title=this.channelAvatar=this.Cv=this.tooltip=null;this.Fl=!1;this.jx=this.VT=this.x7=this.M8=null;this.IK=this.A0=this.xi=!1}; peB=function(G){var B=G.api.U(),a=g.F(G.api.getPlayerStateObject(),128);return B.G&&a&&!G.api.isFullscreen()}; UBK=function(G){if(G.Rm()&&!G.api.isEmbedsShortsMode()&&G.Wr){var B=G.api.S("web_player_hide_overflow_button_if_empty_menu");!G.OC||B&&!mBK(G.OC)||qIA(G.Wr,G.OC);!G.shareButton||B&&!i7y(G.shareButton)||qIA(G.Wr,G.shareButton);!G.copyLinkButton||B&&!BTV(G.copyLinkButton)||qIA(G.Wr,G.copyLinkButton)}else{if(G.Wr){B=G.Wr;for(var a=g.m(B.actionButtons),V=a.next();!V.done;V=a.next())V.value.detach();B.actionButtons=[]}G.searchButton&&!g.hw(G.fR.element,G.searchButton.element)&&G.searchButton.iL(G.fR.element); G.OC&&!g.hw(G.fR.element,G.OC.element)&&G.OC.iL(G.fR.element);G.shareButton&&!g.hw(G.fR.element,G.shareButton.element)&&G.shareButton.iL(G.fR.element);G.copyLinkButton&&!g.hw(G.fR.element,G.copyLinkButton.element)&&G.copyLinkButton.iL(G.fR.element)}}; O3X=function(G,B,a){B=a?B.lastElementChild:B.firstElementChild;for(var V=null;B;){if(dx(B,"display")!=="none"&&B.getAttribute("aria-hidden")!=="true"){var x=void 0;B.tabIndex>=0?x=B:x=O3X(G,B,a);x&&(V?a?x.tabIndex>V.tabIndex&&(V=x):x.tabIndexV/1E3+1)return{msg:"in-the-past"};if(h.isLivePlayback&&!isFinite(V))return{msg:"live-infinite"};(V=B.Zc())&&V.isView()&&(V=V.mediaElement);if(V&&V.iA().length>12&&g.gB(x))return{msg:"played-ranges"};if(!x.C)return null;if(!e)return{msg:"no-pvd-formats"};if(!x.C.j||!e.j)return{msg:"non-dash"};V=e.videoInfos[0];var w=x.C.videoInfos[0];G.W&&V3(h)&&(V=B.Ly(),w= a.Ly());if(!V||!w)return{msg:"no-video-info"};if(G.C&&(AX(V)||AX(w)))return{msg:"av1"};B=G.j&&h.IM()&&tj();if(w.containerType!==V.containerType)if(B)h.FJ("sgap",{ierr:"container"});else return{msg:"container"};if(G.X&&!B&&(w.PS!==V.PS||w.PS===""||V.PS===""))return{msg:"codec"};if(G.G&&w.video&&V.video&&Math.abs(w.video.width/w.video.height-V.video.width/V.video.height)>.01)return{msg:"ratio"};if(g.gB(h)&&g.gB(x))return{msg:"content-protection"};e=e.j[0];x=x.C.j[0];a=e.audio;var K=x.audio;if(a.sampleRate!== K.sampleRate&&!g.vX)if(B)h.FJ("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:e.itag,cr:a.sampleRate,ni:x.itag,nr:K.sampleRate};return(a.numChannels||2)!==(K.numChannels||2)?{msg:"channel-count"}:G.B&&h.IM()&&V.video.fps!==w.video.fps?{msg:"fps"}:null}; yH_=function(G,B,a){var V=G.getVideoData(),x=B.getVideoData();if(!V.U().supportsGaplessShorts())return{nq:"env"};if(a.L){if(V.Ds&&!V.isAd()||x.Ds&&!x.isAd())return{nq:"autoplay"}}else if(V.Ds||x.Ds)return{nq:"autoplay"};if(!V.V)return{nq:"client"};if(!G.AI())return{nq:"no-empty"};G=b3X(a,G,B,Infinity);return G!=null?{nq:G.msg}:null}; Dt=function(G){g.r.call(this);this.app=G;this.B=this.G=this.X=this.j=null;this.C=1;this.events=new g.Zh(this);this.events.K(this.app.JX,g.ew("gaplessshortslooprange"),this.V);g.X(this,this.events)}; cHb=function(){this.G=this.L=this.C=this.W=this.B=this.X=this.j=!1}; nqX=function(G){var B=new cHb;B.j=G.S("h5_gapless_support_types_diff");B.B=G.S("h5_gapless_error_on_fps_diff");B.W=G.S("html5_gapless_use_format_info_fix");B.C=G.S("html5_gapless_disable_on_av1")&&!G.S("html5_gapless_enable_on_av1");B.X=G.S("html5_gapless_check_codec_diff_strictly");B.L=G.S("html5_gapless_on_ad_autoplay");B.G=G.S("html5_gapless_disable_diff_aspect_radio");return B}; g.Sy=function(G,B,a,V){V=V===void 0?!1:V;PZ.call(this);this.mediaElement=G;this.start=B;this.end=a;this.j=V}; fLX=function(G,B,a,V,x,h){h=h===void 0?0:h;g.r.call(this);var e=this;this.policy=G;this.j=B;this.X=a;this.qQ=x;this.B=h;this.G=this.C=null;this.currentVideoDuration=this.L=-1;this.W=!1;this.Sm=new iV;this.GS=V-B.F3()*1E3;this.Sm.then(void 0,function(){}); this.timeout=new g.J8(function(){e.ZB("timeout")},1E4); g.X(this,this.timeout);this.V=isFinite(V);this.status={status:0,error:null}}; DBY=function(G){var B,a,V,x,h,e,w,K,l,k;return g.v(function(N){if(N.j==1){if(G.TH())return N.return(Promise.reject(Error(G.status.error||"disposed")));G.timeout.start();B=g.RH.eT();return g.f(N,G.Sm,2)}g.RH.QE("gtfta",B);a=G.j.Zc();if(a.isEnded())return G.ZB("ended_in_finishTransition"),N.return(Promise.reject(Error(G.status.error||"")));if(!G.G||!gZ(G.G))return G.ZB("next_mse_closed"),N.return(Promise.reject(Error(G.status.error||"")));if(G.X.Iu()!==G.G)return G.ZB("next_mse_mismatch"),N.return(Promise.reject(Error(G.status.error|| "")));V=H3y(G);x=V.Wk;h=V.HU;e=V.Su;G.j.tI(!1,!0);w=vqV(a,x,e,!G.X.getVideoData().isAd());G.X.setMediaElement(w);(K=G.j.RH())&&G.X.SM(K.vc,K.oJ);G.V&&(G.X.seekTo(G.X.getCurrentTime()+.001,{hV:!0,Bp:3,Tt:"gapless_pseudo"}),w.play(),Dd());l=a.Nd();l.cpn=G.j.getVideoData().clientPlaybackNonce;l.st=""+x;l.et=""+e;G.X.FJ("gapless",l);G.j.FJ("gaplessTo",{cpn:G.X.getVideoData().clientPlaybackNonce});k=G.j.getPlayerType()===G.X.getPlayerType();G.j.cw(h,!0,!1,k,G.X.getVideoData().clientPlaybackNonce);G.X.cw(G.X.getCurrentTime(), !0,!0,k,G.j.getVideoData().clientPlaybackNonce);G.X.xM();g.KJ(function(){!G.X.getVideoData().HS&&G.X.getPlayerState().isOrWillBePlaying()&&G.X.vI()}); Zt(G,6);G.dispose();return N.return(Promise.resolve())})}; rHg=function(G){if(G.X.getVideoData().C){var B=G.qQ.U().S("html5_gapless_suspend_next_loader")&&G.B===1;G.X.Wc(G.G,B,SRV(G));Zt(G,3);R6x(G);var a=Z3g(G);B=a.e5;a=a.aE;B.subscribe("updateend",G.MG,G);a.subscribe("updateend",G.MG,G);G.MG(B);G.MG(a)}}; R6x=function(G){G.j.unsubscribe("internalvideodatachange",G.qn,G);G.X.unsubscribe("internalvideodatachange",G.qn,G);G.qQ.U().S("html5_gapless_use_format_info_fix")&&(G.j.unsubscribe("internalvideoformatchange",G.qn,G),G.X.unsubscribe("internalvideoformatchange",G.qn,G));G.j.unsubscribe("mediasourceattached",G.qn,G);G.X.unsubscribe("statechange",G.Jk,G)}; vqV=function(G,B,a,V){G=G.isView()?G.mediaElement:G;return new g.Sy(G,B,a,V)}; Zt=function(G,B){B<=G.status.status||(G.status={status:B,error:null},B===5&&G.Sm.resolve())}; SRV=function(G){return G.qQ.U().S("html5_gapless_no_clear_buffer_timeline")&&G.B===1&&eO(G.j.getVideoData())}; H3y=function(G){var B=G.j.Zc();B=B.isView()?B.start:0;var a=G.j.getVideoData().isLivePlayback?Infinity:G.j.Ws(!0);a=Math.min(G.GS/1E3,a)+B;var V=G.V?100:0;G=a-G.X.SS()+V;return{Uu:B,Wk:G,HU:a,Su:Infinity}}; Z3g=function(G){return{e5:G.C.j.Xf,aE:G.C.X.Xf}}; r7=function(G){g.r.call(this);var B=this;this.app=G;this.B=this.X=this.j=null;this.V=!1;this.C=this.G=null;this.W=nqX(this.app.U());this.L=function(){g.KJ(function(){$Bg(B)})}}; Xeb=function(G,B,a,V,x){V=V===void 0?0:V;x=x===void 0?0:x;G.AI()||$L(G);G.G=new iV;G.j=B;var h=a,e=x===0;e=e===void 0?!0:e;var w=G.app.KN(),K=w.getVideoData().isLivePlayback?Infinity:w.Ws(!0)*1E3;h>K&&(h=K-200,G.V=!0);e&&w.getCurrentTime()>=h/1E3?G.L():(G.X=w,e&&(e=h,h=G.X,G.app.JX.addEventListener(g.hm("vqueued"),G.L),e=isFinite(e)||e/1E3>h.getDuration()?e:0x8000000000000,G.B=new g.V1(e,0x8000000000000,{namespace:"vqueued"}),h.addCueRange(G.B)));e=V/=1E3;h=B.getVideoData().j;V&&h&&G.X&&(w=V,K=0, B.getVideoData().isLivePlayback&&(e=Math.min(a/1E3,G.X.Ws(!0)),K=Math.max(0,e-G.X.getCurrentTime()),w=Math.min(V,B.Ws()+K)),e=KIH(h,w)||V,e!==V&&G.j.FJ("qvaln",{st:V,at:e,rm:K,ct:w}));B=e;V=G.j;V.getVideoData().OZ=!0;V.getVideoData().V=!0;V.iq(!0);h={};G.X&&(h=G.X.h2(),e=G.X.getVideoData().clientPlaybackNonce,h={crt:(h*1E3).toFixed(),cpn:e});V.FJ("queued",h);B!==0&&V.seekTo(B+.01,{hV:!0,Bp:3,Tt:"videoqueuer_queued"});G.C=new fLX(G.W,G.app.KN(),G.j,a,G.app,x);a=G.C;a.status.status!==Infinity&&(Zt(a, 1),a.j.subscribe("internalvideodatachange",a.qn,a),a.X.subscribe("internalvideodatachange",a.qn,a),a.qQ.U().S("html5_gapless_use_format_info_fix")&&(a.j.subscribe("internalvideoformatchange",a.qn,a),a.X.subscribe("internalvideoformatchange",a.qn,a)),a.j.subscribe("mediasourceattached",a.qn,a),a.X.subscribe("statechange",a.Jk,a),a.j.subscribe("newelementrequired",a.nB,a),a.qn());return G.G}; $Bg=function(G){var B,a,V,x,h,e,w,K,l;g.v(function(k){switch(k.j){case 1:if(G.TH()||!G.G||!G.j)return k.return();G.V&&G.app.KN().Ag(!0,!1);a=G.app.U().S("html5_force_csdai_gapful_transition")&&((B=G.app.KN())==null?void 0:B.getVideoData().isDaiEnabled());V=null;if(!G.C||a){k.kf(2);break}g.UA(k,3);return g.f(k,DBY(G.C),5);case 5:g.EA(k,2);break;case 3:V=x=g.jB(k);case 2:if(!G.j)return k.return();g.RH.kX("vqsp",function(){G.app.dL(G.j)}); if(!G.j)return k.return();h=G.j.Zc();G.app.U().S("html5_gapless_seek_on_negative_time")&&h&&h.getCurrentTime()<-.01&&G.j.seekTo(0);g.RH.kX("vqpv",function(){G.app.playVideo()}); if(V||a)G.j?(e=V?V.message:"forced",(w=G.X)==null||w.FJ("gapfulfbk",{r:e}),G.j.FD(e)):(K=G.X)==null||K.FJ("gapsp",{});l=G.G;$L(G);l&&l.resolve();return k.return(Promise.resolve())}})}; $L=function(G,B){B=B===void 0?!1:B;if(G.X){if(G.B){var a=G.X;G.app.JX.removeEventListener(g.hm("vqueued"),G.L);a.removeCueRange(G.B)}G.X=null;G.B=null}G.C&&(G.C.status.status!==6&&(a=G.C,a.status.status!==Infinity&&a.B!==1&&a.ZB("Canceled")),G.C=null);G.G=null;G.j&&!B&&G.j!==G.app.mH()&&G.j!==G.app.KN()&&G.j.lF();G.j&&B&&G.j.Zq();G.j=null;G.V=!1}; qR_=function(G){var B;return((B=G.C)==null?void 0:B.currentVideoDuration)||-1}; uHX=function(G,B,a){if(G.AI())return"qie";if(G.j==null||G.j.s0()||G.j.getVideoData()==null)return"qpd";if(B.videoId!==G.j.WD())return"vinm";if(qR_(G)<=0)return"ivd";if(a!==1)return"upt";if((a=G.C)==null)G=void 0;else if(a.getStatus().status!==5)G="niss";else if(b3X(a.policy,a.j,a.X,a.GS)!=null)G="pge";else{B=Z3g(a);G=B.e5;var V=B.aE;B=g.kf(a.qQ.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds");a=a.L+B;V=wZ(V.Ms(),a);G=wZ(G.Ms(),a);G=!(B>0)||V&&G?null:"neb"}return G!=null?G:null}; QTc=function(){g.wI.call(this);var G=this;this.fullscreen=0;this.G=this.C=this.pictureInPicture=this.j=this.X=this.inline=!1;this.B=function(){G.Ry()}; L0g(this.B);this.L=this.getVisibilityState(this.vG(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.l2(),this.rU(),this.f8(),this.lY())}; dd=function(G){return!(G.isMinimized()||G.isInline()||G.isBackground()||G.l2()||G.rU()||G.f8()||G.lY())}; g.Xe=function(G){this.md=G;this.videoData=this.playerState=null}; g.q3=function(G,B){g.r.call(this);this.md=G;this.C={};this.qw=this.G=this.B=null;this.j=new g.Xe(G);this.X=B}; JH_=function(G){var B=G.experiments,a=B.Or.bind(B);LmX=a("html5_use_async_stopVideo");Thg=a("html5_pause_for_async_stopVideo");sTK=a("html5_not_reset_media_source");a("html5_listen_for_audio_output_changed")&&(q5H=!0);pe=a("html5_not_reset_media_source");Fm9=a("html5_not_reset_media_source");Ce=a("html5_retain_source_buffer_appends_for_debugging");Dmy=a("web_watch_pip");a("html5_mediastream_applies_timestamp_offset")&&(g0=!0);var V=g.kf(B,"html5_cobalt_override_quic");V&&gd("QUIC",+(V>0));(V=g.kf(B, "html5_cobalt_audio_write_ahead_ms"))&&gd("Media.AudioWriteDurationLocal",V);(V=a("html5_cobalt_enable_decode_to_texture"))&&gd("Media.PlayerConfiguration.DecodeToTexturePreferred",V?1:0);(G.Ef()||a("html5_log_cpu_info"))&&qng();Error.stackTraceLimit=50;var x=g.kf(B,"html5_idle_rate_limit_ms");x&&Object.defineProperty(window,"requestIdleCallback",{value:function(h){return window.setTimeout(h,x)}}); XNg(G.B);bw=a("html5_use_ump_request_slicer");nAx=a("html5_record_now");a("html5_disable_streaming_xhr")&&(iB=!1);a("html5_byterate_constraints")&&(Vy=!0);a("html5_use_non_active_broadcast_for_post_live")&&(F3=!0);a("html5_sunset_aac_high_codec_family")&&(L1["141"]="a");a("html5_enable_encrypted_av1")&&(JX=!0)}; AH9=function(G){return G.slice(12).replace(/_[a-z]/g,function(B){return B.toUpperCase().replace("_","")}).replace("Dot",".")}; YRA=function(G){var B={},a;for(a in G.experiments.flags)if(a.startsWith("cobalt_h5vcc")){var V=AH9(a),x=g.kf(G.experiments,a);V&&x&&(B[V]=gd(V,x))}return B}; ug=function(G,B,a,V,x){x=x===void 0?[]:x;g.r.call(this);this.md=G;this.qd=B;this.G=a;this.segments=x;this.j=void 0;this.X=new Map;x.length&&(this.j=x[0])}; i3z=function(G){if(!(G.segments.length<2)){var B=G.segments.shift();if(B){var a=B.j,V=[];if(a.size){a=g.m(a.values());for(var x=a.next();!x.done;x=a.next()){x=g.m(x.value);for(var h=x.next();!h.done;h=x.next()){h=h.value;for(var e=g.m(h.segments),w=e.next();!w.done;w=e.next())(w=Ql(w.value))&&V.push(w);h.removeAll()}}}(a=Ql(B))&&V.push(a);V=g.m(V);for(a=V.next();!a.done;a=V.next())G.X.delete(a.value);B.dispose()}}}; Lk=function(G,B,a,V){if(!G.j||B>a)return!1;B=new ug(G.md,B,a,G.j,V);V=g.m(V);for(a=V.next();!a.done;a=V.next()){a=a.value;var x=Ql(a);x&&x!==Ql(G.j)&&G.X.set(x,[a])}G=G.j;G.j.has(B.hH())?G.j.get(B.hH()).push(B):G.j.set(B.hH(),[B]);return!0}; ib=function(G,B){return G.X.get(B)}; Pt9=function(G,B,a){G.X.set(B,a)}; T1=function(G,B,a,V,x,h){return new oqH(a,a+(V||0),!V,B,G,x,h)}; oqH=function(G,B,a,V,x,h,e){g.r.call(this);this.qd=G;this.C=B;this.X=a;this.type=V;this.G=x;this.videoData=h;this.aR=e;this.j=new Map;jO(h)}; Ql=function(G){return G.videoData.clientPlaybackNonce}; MCK=function(G){if(G.j.size)for(var B=g.m(G.j.values()),a=B.next();!a.done;a=B.next()){a=g.m(a.value);for(var V=a.next();!V.done;V=a.next())V.value.dispose()}G.j.clear()}; GrH=function(G){this.end=this.start=G}; g.sP=function(){this.j=new Map;this.C=new Map;this.X=new Map}; g.Fe=function(G,B,a,V){g.r.call(this);var x=this;this.api=G;this.md=B;this.playback=a;this.app=V;this.Qb=new g.sP;this.X=new Map;this.L=[];this.B=[];this.C=new Map;this.YD=new Map;this.W=new Map;this.Ur=null;this.wO=NaN;this.fh=this.Md=null;this.QW=new g.J8(function(){Bub(x,x.wO,x.Md||void 0)}); this.events=new g.Zh(this);this.Yf=15E3;this.Zx=new g.J8(function(){x.LN=!0;x.playback.s7(x.Yf);a2B(x);x.QI(!1)},this.Yf); this.LN=!1;this.V=new Map;this.eJ=[];this.HS=null;this.dC=new Set;this.SJ=[];this.m3=[];this.w7=[];this.S_=[];this.j=void 0;this.GH=0;this.Er=!0;this.Y=!1;this.qB=[];this.Vb=new Set;this.OZ=new Set;this.Qv=new Set;this.q9=0;this.MB=new Set;this.fd=0;this.W3=this.Cd=!1;this.Hf=this.G="";this.XJ=null;this.logger=new g.xY("dai");this.vC={Q1r:function(){return x.X}, EXJ:function(){return x.L}, TWf:function(){return x.C}, Gq:function(h){x.onCueRangeEnter(x.X.get(h))}, G$b:function(h){x.onCueRangeExit(x.X.get(h))}, uaJ:function(h,e){x.X.set(h,e)}, EZb:function(h){x.Hf=h}, VA:function(){return x.VA()}, bub:function(h){return x.W.get(h)}, Atl:function(){return x.XJ}}; this.playback.getPlayerType();this.playback.eP(this);this.Dx=this.md.Ef();g.X(this,this.QW);g.X(this,this.events);g.X(this,this.Zx);this.events.K(this.api,g.hm("serverstitchedcuerange"),this.onCueRangeEnter);this.events.K(this.api,g.ew("serverstitchedcuerange"),this.onCueRangeExit)}; eVB=function(G,B,a,V,x,h,e,w){var K=VmV(G,h,h+x);G.LN&&G.jE({adaftto:1});a||G.jE({missadcon:1,enter:h,len:x,aid:w});G.zH&&!G.zH.XS&&(G.zH.XS=w);G.W3&&G.jE({adfbk:1,enter:h,len:x,aid:w});var l=G.playback;e=e===void 0?h+x:e;h===e&&!x&&G.md.S("html5_allow_zero_duration_ads_on_timeline")&&G.jE({attl0d:1});h>e&&J_(G,{reason:"enterTime_greater_than_return",qd:h,rC:e});var k=l.b6()*1E3;hl&&J_(G,{reason:"parent_return_greater_than_content_duration",rC:e,k6r:l});l=null;k=g.e$(G.B,{rC:h},function(N,d){return N.rC-d.rC}); k>=0&&(l=G.B[k],l.rC>h&&xXy(G,B.video_id||"",h,e,l));if(K&&l)for(k=0;k.5&&G.jE({ttdtb:1,delta:e,cpn:x.cpn,enter:B.adCpn,exit:a.adCpn,seek:V,skip:h});G.api.S("html5_ssdai_enable_media_end_cue_range")&&G.api.WB();if(B.isAd&&a.isAd){x=!!h;if(B.adCpn&&a.adCpn){var w=G.C.get(B.adCpn);var K=G.C.get(a.adCpn)}x?G.jE({igtransskip:1,enter:B.adCpn,exit:a.adCpn,seek:V,skip:h}):Pt(G,K,w,a.O$,B.O$,V,x)}else if(!B.isAd&&a.isAd){G.Hf=x.cpn;G.api.publish("serverstitchedvideochange");w=YL(G,"a2c");G.jE(w); G.q9=0;if(w=a.uJ)G.GH=w.end;var l;a.adCpn&&(l=G.C.get(a.adCpn));l&&G.playback.fX(l,x,a.O$,B.O$,V,!!h)}else if(B.isAd&&!a.isAd){var k;B.adCpn&&(k=G.C.get(B.adCpn));k&&(G.GH=0,G.Hf=k.cpn,ig(G,k),l=YL(G,"c2a",k),G.jE(l),G.q9=1,G.playback.fX(x,k,a.O$,B.O$,V,!!h))}}; M3=function(G,B,a){a=a===void 0?0:a;var V=g.e$(G.B,{qd:(B+a)*1E3},function(w,K){return w.qd-K.qd}); V=V<0?(V+2)*-1:V;if(V>=0)for(var x=B*1E3,h=V;h<=V+1&&h=e.qd-a*1E3&&x<=e.rC+a*1E3)return{Sc:e,eg:B}}return{Sc:void 0,eg:B}}; wcy=function(G,B){var a="";(B=WCH(G,B))&&(a=B.getId());return a?G.C.get(a):void 0}; WCH=function(G,B){if(G.Hf){var a=G.X.get(G.Hf);if(a&&a.start-200<=B&&a.end+200>=B)return a}G=g.m(G.X.values());for(a=G.next();!a.done;a=G.next())if(a=a.value,a.start<=B&&a.end>=B)return a}; Bub=function(G,B,a){var V=G.fh||G.app.KN().getPlayerState();GX(G,!0);G.playback.seekTo(B,a);G=G.app.KN();B=G.getPlayerState();V.isOrWillBePlaying()&&!B.isOrWillBePlaying()?G.playVideo():V.isPaused()&&!B.isPaused()&&G.pauseVideo()}; GX=function(G,B){G.wO=NaN;G.Md=null;G.QW.stop();G.Ur&&B&&G.Ur.TM();G.fh=null;G.Ur=null}; KCH=function(G){var B=B===void 0?-1:B;var a=a===void 0?Infinity:a;for(var V=[],x=g.m(G.B),h=x.next();!h.done;h=x.next())h=h.value,(h.qda)&&V.push(h);G.B=V;V=g.m(G.X.values());for(x=V.next();!x.done;x=V.next())x=x.value,x.start>=B&&x.end<=a&&(G.playback.removeCueRange(x),G.X.delete(x.getId()),G.jE({rmAdCR:1}));V=M3(G,B/1E3);B=V.Sc;V=V.eg;if(B&&(V=V*1E3-B.qd,x=B.qd+V,B.durationMs=V,B.rC=x,V=G.X.get(B.cpn))){x=g.m(G.L);for(h=x.next();!h.done;h=x.next())h=h.value,h.start===V.end?h.start=B.qd+ B.durationMs:h.end===V.start&&(h.end=B.qd);V.start=B.qd;V.end=B.qd+B.durationMs}if(B=M3(G,a/1E3).Sc){var e;V="playback_timelinePlaybackId_"+B.YW+"_video_id_"+((e=B.videoData)==null?void 0:e.videoId)+"_durationMs_"+B.durationMs+"_enterTimeMs_"+B.qd+"_parentReturnTimeMs_"+B.rC;G.oM("Invalid_clearEndTimeMs_"+a+"_that_falls_during_"+V+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; l2b=function(G){G.Qb.clearAll();G.X.clear();G.L=[];G.B=[];G.C.clear();G.YD.clear();G.W.clear();G.V.clear();G.eJ=[];G.HS=null;G.dC.clear();G.SJ=[];G.m3=[];G.w7=[];G.S_=[];G.qB=[];G.Vb.clear();G.OZ.clear();G.Qv.clear();G.MB.clear();G.LN=!1;G.j=void 0;G.GH=0;G.Er=!0;G.Y=!1;G.q9=0;G.fd=0;G.Cd=!1;G.W3=!1;G.G="";G.Zx.isActive()&&A_(G)}; Nuy=function(G,B,a,V,x,h){if(!G.W3)if(g.krz(G,a))G.jE({gdu:"undec",seg:a,itag:x});else if(B=BP(G,B,a,V,h),!(G.playback.getVideoData().cn()&&(B==null?0:B.G7)))return B}; BP=function(G,B,a,V,x){var h=G.V.get(a);if(!h){if(h=dXX(G,B))return h;B=G.IN(a-1,V!=null?V:2);if(x)return G.jE({misscue:x,sq:a,type:V,prevsstate:B==null?void 0:B.Io,prevrecord:G.V.has(a-1)}),G.V.get(a-1);if((B==null?void 0:B.Io)===2)return G.jE({adnf:1,sq:a,type:V,prevrecord:G.V.has(a-1)}),G.V.get(a-1)}return h}; dXX=function(G,B){B+=G.uY();if(G.playback.getVideoData().cn())a:{var a=1;a=a===void 0?0:a;var V=B*1E3;G=g.m(G.B);for(var x=G.next();!x.done;x=G.next()){x=x.value;var h=x.W6?x.W6*1E3:x.qd;if(V>=x.qd-a*1E3&&V<=h+x.durationMs+a*1E3){V={Sc:x,eg:B};break a}}V={Sc:void 0,eg:B}}else V=M3(G,B),((a=V)==null?0:a.Sc)||(V=M3(G,B,1));var e;return(e=V)==null?void 0:e.Sc}; CJg=function(G,B){B=B===void 0?"":B;var a=eN(B)||void 0;if(!B||!a){var V;G.jE({adcfg:(V=B)==null?void 0:V.length,dcfg:a==null?void 0:a.length})}return a}; zVY=function(G){if(G.qB.length)for(var B=g.m(G.qB),a=B.next();!a.done;a=B.next())G.onCueRangeExit(a.value);B=g.m(G.X.values());for(a=B.next();!a.done;a=B.next())G.playback.removeCueRange(a.value);B=g.m(G.L);for(a=B.next();!a.done;a=B.next())G.playback.removeCueRange(a.value);G.X.clear();G.L=[];G.Qb.clearAll();G.j||(G.Er=!0)}; Pt=function(G,B,a,V,x,h,e){if(B&&a){G.Hf=a.cpn;ig(G,a);var w=YL(G,"a2a",a);G.jE(w);G.q9++;G.playback.fX(B,a,V||0,x||0,!!h,!!e)}else G.jE({misspbkonadtrans:1,enter:(a==null?void 0:a.cpn)||"",exit:(B==null?void 0:B.cpn)||"",seek:h,skip:e})}; mXK=function(G,B,a,V){if(V)for(V=0;Va){var h=x.end;x.end=B;tmX(G,a,h)}else if(x.start>=B&&x.starta)x.start=a;else if(x.end>B&&x.end<=a&&x.start=B&&x.end<=a){G.playback.removeCueRange(x);if(G.qB.includes(x))G.onCueRangeExit(x);G.L.splice(V,1);continue}V++}else tmX(G,B,a)}; tmX=function(G,B,a){B=G.cZ(B,a);a=!0;g.lk(G.L,B,function(e,w){return e.start-w.start}); for(var V=0;V0){var x=G.L[V],h=G.L[V-1];if(Math.round(h.end/1E3)>=Math.round(x.start/1E3)){h.end=x.end;x!==B?G.playback.removeCueRange(x):a=!1;G.L.splice(V,1);continue}}V++}if(a)for(G.playback.addCueRange(B),B=G.playback.oC("serverstitchedcuerange",36E5),B=g.m(B),a=B.next();!a.done;a=B.next())G.X.delete(a.value.getId())}; am=function(G,B,a){if(a===void 0||!a){a=g.m(G.eJ);for(var V=a.next();!V.done;V=a.next()){V=V.value;if(B>=V.start&&B<=V.end)return;if(B===V.end+1){V.end+=1;return}}G.eJ.push(new GrH(B))}}; g.krz=function(G,B){G=g.m(G.eJ);for(var a=G.next();!a.done;a=G.next())if(a=a.value,B>=a.start&&B<=a.end)return!0;return!1}; VV=function(G,B,a){var V;if(V=G.playback.getVideoData().cn()&&G.md.S("html5_lifa_extent_last_unfinished_ad_cue_range")||G.md.S("html5_ssdai_extent_last_unfinished_ad_cue_range"))V=(V=G.C.get(B))&&V.S$?(G=G.W.get(V==null?void 0:V.S$))&&G.slice(-1)[0].cpn===B:!1;return V&&a===2?1E3:0}; xXy=function(G,B,a,V,x){var h;B={reason:"overlapping_playbacks",vZl:B,qd:a,rC:V,R0B:x.YW,d4J:((h=x.videoData)==null?void 0:h.videoId)||"",vXb:x.durationMs,oXJ:x.qd,HuH:x.rC};J_(G,B)}; J_=function(G,B,a){G.playback.QD(B,a)}; I2z=function(G,B){var a=[];G=G.W.get(B);if(!G)return[];G=g.m(G);for(B=G.next();!B.done;B=G.next())B=B.value,B.cpn&&a.push(B.cpn);return a}; g6B=function(G,B,a){var V=0;G=G.W.get(a);if(!G)return-1;G=g.m(G);for(a=G.next();!a.done;a=G.next()){if(a.value.cpn===B)return V;V++}return-1}; pc_=function(G,B){var a=0;G=G.W.get(B);if(!G)return 0;G=g.m(G);for(B=G.next();!B.done;B=G.next())B=B.value,B.durationMs!==0&&B.rC!==B.qd&&a++;return a}; UXz=function(G,B,a){var V=!1;if(a&&(a=G.W.get(a))){a=g.m(a);for(var x=a.next();!x.done;x=a.next())x=x.value,x.durationMs!==0&&x.rC!==x.qd&&(x=x.cpn,B===x&&(V=!0),V&&!G.OZ.has(x)&&(G.jE({decoratedAd:x}),G.OZ.add(x)))}}; a2B=function(G){G.Dx&&G.jE({adf:"0_"+((new Date).getTime()/1E3-G.fd)+"_isTimeout_"+G.LN})}; VmV=function(G,B,a){if(G.SJ.length)for(var V=g.m(G.SJ),x=V.next(),h={};!x.done;h={H_:void 0},x=V.next()){h.H_=x.value;x=h.H_.startSecs*1E3;var e=h.H_.YF*1E3+x;if(B>x&&Bx&&a0&&V>B*1E3+G.XGJ)&&(V=v69(G,a))){B=!1;a=void 0;V=g.m(V.segments);for(x=V.next();!x.done;x=V.next()){x=x.value;if(B){a=x;break}Ql(x)===G.Hf&&(B=!0)}V=void 0;if(a)V=Ql(a);else if(B){var h;V=(h=G.timeline.j)==null?void 0:Ql(h)}if(V)G.finishSegmentByCpn(G.Hf,V,2,void 0);else{var e;G.api.FJ("ssap",{mfnc:1,mfncc:(e=G.timeline.j)== null?void 0:Ql(e)})}}}}; n6c=function(G){return G.api.S("html5_force_ssap_gapful_switch")||G.api.S("html5_ssap_enable_legacy_browser_logic")&&!tj()}; Z5y=function(G,B,a,V){G.Cs.set(B,V);SxY(G,B,a);RV9(G,a)}; Sj=function(G,B){G=ib(G.timeline,B);return(G==null?0:G.length)?G[0].hH():0}; Rg=function(G,B){var a=a===void 0?!1:a;var V=G.timeline.j;if(!V)return{clipId:"",Y1:0};var x=rvc(G,B,a);if(x)return{clipId:Ql(x)||"",Y1:x.hH()};G.api.FJ("mci",{cs:Ql(V),mt:B,tl:hG(G),invt:!!a});return{clipId:"",Y1:0}}; JG=function(G){var B=G.timeline.j;if(!B)return 0;G=0;if(B.j.size===0)return(B.a8()-B.hH())/1E3;B=B.j.values();B=g.m(B);for(var a=B.next();!a.done;a=B.next()){a=g.m(a.value);for(var V=a.next();!V.done;V=a.next())V=V.value,G+=(V.a8()-V.hH())/1E3}return G}; XcX=function(G,B){return(G=$XH(G,B*1E3))?G.hH():0}; qxc=function(G,B){var a=ib(G.timeline,B);B=0;if(a==null?0:a.length)for(G=g.m(a),a=G.next();!a.done;a=G.next())a=a.value,B+=(a.a8()-a.hH())/1E3;else return JG(G);return B}; $XH=function(G,B){if(G=ib(G.timeline,G.Hf)){G=g.m(G);for(var a=G.next();!a.done;a=G.next())if(a=a.value,a.hH()<=B&&a.a8()>=B)return a}}; uUY=function(G){var B=G.playback.getVideoData();G.Hf&&(G=G.wV.get(G.Hf))&&(B=G);return B}; v69=function(G,B,a){a=a===void 0?!1:a;var V=G.timeline.j;if(V){V=V.j;var x=Array.from(V.keys());g.wK(x);B=g.e$(x,B);B=V.get(x[B<0?(B+2)*-1:B]);if(!a&&B){a=g.m(B);for(B=a.next();!B.done;B=a.next())if(B=B.value,B.hH()!==B.a8())return B;return G.timeline}return B&&B.length>0?B[B.length-1]:void 0}}; rvc=function(G,B,a){a=a===void 0?!1:a;var V=v69(G,B,a);if(V){if(G=V.segments,G.length){for(var x=g.m(G),h=x.next();!h.done;h=x.next())if(h=h.value,h.hH()<=B&&h.a8()>B)return h;if(a&&V.hH()===V.a8())return G[0]}}else G.api.FJ("ssap",{ctnf:1})}; yv9=function(G,B){var a;if(G.rD)for(a=G.Vq.shift();a&&a!==G.rD;)a=G.Vq.shift();else a=G.Vq.shift();if(a){if(G.P9.has(a))Qub(G,a);else if(B===3||B===4)G.RL.stop(),G.api.playVideo(1,G.api.S("html5_ssap_keep_media_on_finish_segment"));G.Cs.set(G.Hf,B);G.api.FJ("ssap",{onvftn:1});RV9(G,a);return!1}G.api.FJ("ssap",{onvftv:1});G.RL.stop();return!0}; Qub=function(G,B){B=ib(G.timeline,B);if(B==null?0:B.length)G.api.pauseVideo(),G.RL.start(B[0].aR)}; RV9=function(G,B){var a=G.playback.getVideoData(),V=a.clientPlaybackNonce;G.x4&&(G.events.i6(G.x4),G.x4=null,G.playback.uE());var x=G.Hf,h=!1;if(x==="")x=V,h=!0;else if(x===void 0){var e=G.playback.Di();e&&G.timeline.X.has(e)&&(x=e);G.api.FJ("ssap",{mcc:x+";"+B});G.playback.I0(new yH("ssap.timelineerror",{e:"missing_current_cpn",pcpn:x,ccpn:B}))}if(x===B)h&&a&&LCA(G,a,h);else{e=G.Cs.get(x);if(!h&&(!e||e!==3&&e!==5&&e!==6&&e!==7)){var w=G.api.WB(G.Hf);G.api.FJ("ssap",{nmec:w,cpc:G.Hf,ec:B})}e&&e!== 2||G.fL();G.Hf=B;G.fL();B=ib(G.timeline,G.Hf);if(B==null?0:B.length){B=B[0];w=B.getType();x!==V&&(G.ue=x,a=G.wV.get(x));e?G.Cs.delete(x):e=h?1:2;G.api.S("html5_ssap_pacf_qoe_ctmp")&&w===2&&!B.X&&(G.x4=G.events.K(G.api,"onVideoProgress",G.IHX));G.api.FJ("ssapt",{ostro:e,pcpn:x,ccpn:G.Hf});a:{var K=G.Hf;if(!G.Tm.has(K))for(var l=g.m(G.Tm),k=l.next();!k.done;k=l.next()){var N=g.m(k.value);k=N.next().value;N=N.next().value;if(N.getId().includes(K)){K=k;break a}}}l=G.api.U().S("html5_ssap_insert_su_before_nonvideo")&& K!==G.Hf;G.playback.wN(K,l);K=Math.max(0,xW(G,x));l=G.playback.getCurrentTime();l=Math.max(0,l-Sj(G,G.Hf)/1E3);k=B.getVideoData();N=e===3||e===5||e===6||e===7;if(G.api.S("html5_ssap_skip_illegal_seeking")){var d=G.playback.getPlayerState();d=!g.F(d,8)&&g.F(d,16);N=N||d;d&&G.api.FJ("ssap",{iis:1})}G.playback.iP(x,G.Hf,K,l,!1,N,G.playback.getPlayerState(),!0);G.api.FJ("ssapt",{ostri:e,pcpn:x,ccpn:G.Hf});var C;G.playback.zN(x,G.Hf,V,k,(C=G.b0.get(x))!=null?C:(0,g.yT)(),a);G.b0.delete(x);h?a=void 0:a|| G.api.FJ("ssap",{pvdm:x+";"+G.Hf,pvdmc:G.Hf===V?"1":"0"});G.api.FJ("ssap",{tpac:x+";"+G.Hf,tpcc:V,tpv:(k==null?0:k.I4())?"1":"0"},!1,1);G.api.U().S("html5_ssap_cleanup_player_switch_ad_player")&&G.api.Yg();G.api.publish("videodatachange","newdata",k,w,a,e);B.X||G.playback.getVideoData().publish("dataupdated");G.P9.delete(x);G.rD="";k&&w===1?LCA(G,k):G.playback.FJ("ssap",{nis:G.Hf});w===2?G.q9++:G.q9=0}}}; LCA=function(G,B,a){a=a===void 0?!1:a;if(B.startSeconds&&G.VY){var V=B.startSeconds;B=ib(G.timeline,B.clientPlaybackNonce);if(B==null?0:B.length)V+=B[0].hH()/1E3,G.api.S("htm5_ssap_ignore_initial_seek_if_too_big")&&V>=G.gi()||(G.playback.seekTo(V,{yn:!0}),G.VY=!1,G.playback.FJ("ssap",{is:G.Hf,co:a?"1":"0",tse:V.toFixed()}))}}; SxY=function(G,B,a){B=ib(G.timeline,B);if(B!=null&&B.length&&(B=v69(G,B[0].hH()))){B=g.m(B.segments);for(var V=B.next();!V.done;V=B.next()){V=V.value;if(Ql(V)===a)break;if(V=Ql(V)){var x=G.Tm.get(V);x&&G.playback.removeCueRange(x);G.Tm.delete(V)}}}}; ZK=function(G){return G.playback.getVideoData().clientPlaybackNonce}; TXX=function(G,B){if(G.UX&&G.Hf!==B)return!1;if(G.g3)return!0;if(B=G.Tm.get(B))if(B=B.getId().split(","),B.length>1)for(var a=0;ah)return h7(G,"enterAfterReturn enterTimeMs="+x+" is greater than parentReturnTimeMs="+h.toFixed(3),e,w),"";var l=K.b6()*1E3;if(xl)return K="returnAfterDuration parentReturnTimeMs="+h.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+ K.F3(),h7(G,K,e,w),"";l=null;for(var k=g.m(G.X),N=k.next();!N.done;N=k.next()){N=N.value;if(x>=N.qd&&xN.qd)return h7(G,"overlappingReturn",e,w),"";if(h===N.qd)return h7(G,"outOfOrder",e,w),"";x===N.rC&&(l=N)}e="cs_childplayback_"+FCY++;w={uJ:eP(V,!0),GS:Infinity,target:null};var d={YW:e,playerVars:B,playerType:a,durationMs:V,qd:x,rC:h,mF:w};G.X=G.X.concat(d).sort(function(p,O){return p.qd-O.qd}); l?Jvz(G,l,{uJ:eP(l.durationMs,!0),GS:l.mF.GS,target:d}):(B={uJ:eP(x,!1),GS:x,target:d},G.B.set(B.uJ,B),K.addCueRange(B.uJ));B=!0;if(G.j===G.app.KN()&&(K=K.getCurrentTime()*1E3,K>=d.qd&&KB)break;if(h>B)return{Sc:V,eg:B-x};a=h-V.rC/1E3}return{Sc:null,eg:B-a}}; TuH=function(G,B,a){a=a===void 0?{}:a;var V=G.L||G.app.KN().getPlayerState();Kl(G,!0);B=isFinite(B)?B:G.j.t$();var x=Mmy(G,B);B=x.eg;var h=(x=x.Sc)&&!WP(G,x)||!x&&G.j!==G.app.KN(),e=B*1E3;e=G.C&&G.C.start<=e&&e<=G.C.end;!h&&e||wk(G);x?Avb(G,x,B,a,V):GWK(G,B,a,V)}; GWK=function(G,B,a,V){var x=G.j,h=G.app.KN();x!==h&&G.app.DF();x.seekTo(B,Object.assign({},{Tt:"application_timelinemanager"},a));BnB(G,V)}; Avb=function(G,B,a,V,x){var h=WP(G,B);if(!h){B.playerVars.prefer_gapless=!0;G.md.S("html5_enable_ssap_entity_id")&&(B.playerVars.cached_load=!0);var e=new g.Tk(G.md,B.playerVars);e.YW=B.YW;G.api.Um(e,B.playerType)}e=G.app.KN();h||e.addCueRange(B.mF.uJ);e.seekTo(a,Object.assign({},{Tt:"application_timelinemanager"},V));BnB(G,x)}; BnB=function(G,B){G=G.app.KN();var a=G.getPlayerState();B.isOrWillBePlaying()&&!a.isOrWillBePlaying()?G.playVideo():B.isPaused()&&!a.isPaused()&&G.pauseVideo()}; Kl=function(G,B){G.zH=NaN;G.Y=null;G.V.stop();G.G&&B&&G.G.TM();G.L=null;G.G=null}; WP=function(G,B){G=G.app.KN();return!!G&&G.getVideoData().YW===B.YW}; a6A=function(G){var B=G.X.find(function(x){return WP(G,x)}); if(B){var a=G.app.KN();wk(G);var V=new g.aF(8);B=o6A(G,B)/1E3;GWK(G,B,{},V);a.FJ("forceParentTransition",{childPlayback:1});G.j.FJ("forceParentTransition",{parentPlayback:1})}}; xiX=function(G,B,a){B=B===void 0?-1:B;a=a===void 0?Infinity:a;for(var V=B,x=a,h=g.m(G.B),e=h.next();!e.done;e=h.next()){var w=g.m(e.value);e=w.next().value;w=w.next().value;w.GS>=V&&w.target&&w.target.rC<=x&&(G.j.removeCueRange(e),G.B.delete(e))}V=B;x=a;h=[];e=g.m(G.X);for(w=e.next();!w.done;w=e.next())if(w=w.value,w.qd>=V&&w.rC<=x){var K=G;K.W===w&&wk(K);WP(K,w)&&K.app.DF()}else h.push(w);G.X=h;V=Mmy(G,B/1E3);B=V.Sc;V=V.eg;B&&(V*=1E3,ViK(G,B,V,B.rC===B.qd+B.durationMs?B.qd+V:B.rC));(B=Mmy(G,a/1E3).Sc)&& h7(G,"Invalid clearEndTimeMs="+a+" that falls during playback={timelinePlaybackId="+(B.YW+" video_id="+B.playerVars.video_id+" durationMs="+B.durationMs+" enterTimeMs="+B.qd+" parentReturnTimeMs="+B.rC+"}.Child playbacks can only have duration updated not their start."))}; ViK=function(G,B,a,V){B.durationMs=a;B.rC=V;V={uJ:eP(a,!0),GS:a,target:null};Jvz(G,B,V);WP(G,B)&&G.app.KN().getCurrentTime()*1E3>a&&(B=o6A(G,B)/1E3,a=G.app.KN().getPlayerState(),GWK(G,B,{},a))}; h7=function(G,B,a,V){G.j.FJ("timelineerror",{e:B,cpn:a?a:void 0,videoId:V?V:void 0})}; ePY=function(G){G&&G!=="web"&&hPb.includes(G)}; NE=function(G,B){g.r.call(this);var a=this;this.data=[];this.C=G||NaN;this.X=B||null;this.j=new g.J8(function(){lF(a);kW(a)}); g.X(this,this.j)}; Wxc=function(G){lF(G);return G.data.map(function(B){return B.value})}; lF=function(G){var B=(0,g.yT)();G.data.forEach(function(a){a.expireh?{width:B.width,height:B.width/x,aspectRatio:x}:xx?G.width=G.height*a:aK;if(t7(G)){var l=diB(G);var k=isNaN(l)||g.Jx||G6&&g.It||K;FC&&!g.tO(601)?l=x.aspectRatio:k=k||h.controlsType==="3";k?K?(k=h.S("place_shrunken_video_on_left_of_player")?16:G.getPlayerSize().width-B.width-16,l=Math.max((G.getPlayerSize().height-B.height)/2,0),k=new g.hI(k,l,B.width, B.height),G.X3.style.setProperty("border-radius","12px")):k=new g.hI(0,0,B.width,B.height):(a=x.aspectRatio/l,k=new g.hI((B.width-x.width/a)/2,(B.height-x.height)/2,x.width/a,x.height),a===1&&g.It&&(l=k.width-B.height*l,l>0&&(k.width+=l,k.height+=l)));g.Km(G.element,"ytp-fit-cover-video",Math.max(k.width-x.width,k.height-x.height)<1);if(w||G.PV)G.X3.style.display="";G.cz=!0}else{k=-B.height;FC?k*=window.devicePixelRatio:g.o$&&(k-=window.screen.height);k=new g.hI(0,k,B.width,B.height);if(w||G.PV)G.X3.style.display= "none";G.cz=!1}e3(G.vT,k)||(G.vT=k,g.R$(h)?(G.X3.style.setProperty("width",k.width+"px","important"),G.X3.style.setProperty("height",k.height+"px","important")):g.p4(G.X3,k.getSize()),V=new g.kj(k.left,k.top),g.tI(G.X3,Math.round(V.x),Math.round(V.y)),V=!0);B=new g.hI((B.width-x.width)/2,(B.height-x.height)/2,x.width,x.height);e3(G.rd,B)||(G.rd=B,V=!0);g.K4(G.X3,"transform",a===1?"":"scaleX("+a+")");e&&K!==G.Xn&&(K&&(G.X3.addEventListener(lp,G.Me),G.X3.addEventListener("transitioncancel",G.Me),G.X3.classList.add(g.Lh.VIDEO_CONTAINER_TRANSITIONING)), G.Xn=K,G.app.JX.publish("playerUnderlayVisibilityChange",G.Xn?"transitioning":"hidden"));return V}; miH=function(){this.csn=g.y0();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.X=new Set}; I6z=function(G){if(G.csn!==g.y0())if(G.csn==="UNDEFINED_CSN")G.csn=g.y0();else{var B=g.y0(),a=g.bY();if(B&&a){G.csn=B;for(var V=g.m(G.elements),x=V.next();!x.done;x=V.next())(x=x.value.visualElement)&&x.isClientVe()&&B&&a&&(g.pB("combine_ve_grafts")?yC(jk(),x,a):g.ob(g.Ao)(void 0,B,a,x))}if(B)for(G=g.m(G.j),a=G.next();!a.done;a=G.next())(a=a.value.visualElement)&&a.isClientVe()&&g.ax(B,a)}}; g.mj=function(G,B,a,V){g.r.call(this);var x=this;this.logger=new g.xY("App");this.lR=this.ES=!1;this.HT={};this.Lv=[];this.GI=!1;this.PH=null;this.intentionalPlayback=!1;this.IX=!0;this.mA=!1;this.MR=this.d4=null;this.FB=!0;this.mediaElement=this.sf=null;this.xL=NaN;this.Ok=!1;this.Vv=this.Gv=this.F5=this.a4=this.screenLayer=this.playlist=null;this.Kq=[];this.fV=0;this.vC={jA:function(){return x.l6}, j6:function(){return x.F5}, hg:function(e){x.F5=e}, aV:function(e,w){x.F5&&x.F5.aV(e,w)}}; this.logger.debug("constructor begin");this.config=x4b(B||{});this.webPlayerContextConfig=a;m4z();B=this.config.args||{};this.md=new Qt(B,a,a?a.canaryState:this.config.assets.player_canary_state,V,this);g.X(this,this.md);JH_(this.md);V=YRA(this.md);this.md.Ef()&&this.Kq.push({key:"h5vcc",value:V});this.md.experiments.Or("jspb_serialize_with_worker")&&o49();this.md.experiments.Or("gzip_gel_with_worker")&&TLA();this.md.X&&!gPx&&(window.addEventListener(Eb?"touchstart":"click",jT9,{capture:!0,passive:!0}), gPx=!0);this.S("html5_onesie")&&(this.E9=new dO(this.md),g.X(this,this.E9));this.gN=aP(fI(this.md)&&!0,B.enablesizebutton);this.yM=aP(!1,B.player_wide);this.visibility=new QTc;g.X(this,this.visibility);this.S("web_log_theater_mode_visibility")&&this.xG(aP(!1,B.player_wide));this.ES=aP(!1,B.external_list);this.events=new g.Zh(this);g.X(this,this.events);this.S("start_client_gcf")&&(HD(RZ(),{zw:Wn,a5:dlz()}),this.LS=RZ().resolve(Wn),tVX(this.LS));this.inr=new kg;g.X(this,this.inr);this.bI=new miH;V= new Nd;this.JX=new g.bq(this,V);g.X(this,this.JX);this.template=new kWH(this);g.X(this,this.template);this.appState=1;this.NL=pyV(this);g.X(this,V);V={};this.Dv=(V.internalvideodatachange=this.VM,V.playbackready=this.idN,V.playbackstarted=this.fXf,V.statechange=this.s01,V);this.Wv=new kz(this.JX);this.Y_=UiA(this);V=this.S("html5_load_wasm");B=this.S("html5_allow_asmjs");if(V&&OCX||B)this.md.LR=Nk9(this.Y_,B),Ch(d2(this.md.LR,function(e){x.md.Hn=e;var w;(w=x.KN())==null||w.FJ("wasm",{a:e.a$})}),function(e){g.Zb(e); e="message"in e&&e.message||e.toString()||"";var w;(w=x.KN())==null||w.FJ("wasm",{e:e})}); else if(V&&!OCX){var h;(h=this.KN())==null||h.FJ("wasm",{e:"wasm unavailable"})}this.Ti=new gLz(this.md,this.Y_);this.JX.publish("csiinitialized");h=10;g.yI(this.md)&&(h=3);i0(this.md)&&(h=g.kf(this.md.experiments,"tvhtml5_unplugged_preload_cache_size"));h=new NE(h,function(e){e!==x.It(e.getPlayerType())&&e.lF()}); g.X(this,h);this.l6=new g.q3(this.md,h);h=EPy(this);this.l6.aD(h);j8B(this);h={};this.Dj=(h.airplayactivechange=this.onAirPlayActiveChange,h.airplayavailabilitychange=this.onAirPlayAvailabilityChange,h.beginseeking=this.g4,h.sabrCaptionsDataLoaded=this.zW,h.endseeking=this.j1,h.internalAbandon=this.LO,h.internalaudioformatchange=this.O0,h.internalvideodatachange=this.onVideoDataChange,h.internalvideoformatchange=this.Nb,h.liveviewshift=this.FeL,h.playbackstalledatstart=this.AHd,h.progresssync=this.wnf, h.onAbnormalityDetected=this.Oq,h.onSnackbarMessage=this.onSnackbarMessage,h.onLoadProgress=this.onLoadProgress,h.SEEK_COMPLETE=this.gU,h.SEEK_TO=this.RVd,h.onVideoProgress=this.onVideoProgress,h.onLoadedMetadata=this.onLoadedMetadata,h.onAutoplayBlocked=this.onAutoplayBlocked,h.onPlaybackPauseAtStart=this.Ai1,h.playbackready=this.BCx,h.statechange=this.Bi,h.newelementrequired=this.g5,h.heartbeatparams=this.T5,h.videoelementevent=this.l5,h.drmoutputrestricted=this.onDrmOutputRestricted,h.signatureexpired= this.sGX,h.nonfatalerror=this.iDd,h.reloadplayer=this.PJl,h);this.pK=new g.Zh(this);g.X(this,this.pK);this.PM=new Cl;g.X(this,this.PM);this.s3=this.R2=-1;this.q3=new g.J8(this.template.resize,16,this.template);g.X(this,this.q3);this.EZ=new suy(this.JX,this.md,this.mH(),this);this.o1=new ug(this.md);this.v9=new r7(this);g.X(this,this.v9);this.Mc=new Dt(this);g.X(this,this.Mc);ePY(this.md.j.c);this.events.K(this.JX,g.hm("appapi"),this.GtB);this.events.K(this.JX,g.ew("appapi"),this.ktJ);this.events.K(this.JX, g.hm("appprogressboundary"),this.Ken);this.events.K(this.JX,g.ew("applooprange"),this.lE);this.events.K(this.JX,"presentingplayerstatechange",this.hI);this.events.K(this.JX,"resize",this.Dsb);this.template.iL(q6(document,G));this.events.K(this.JX,"offlineslatestatechange",this.s4N);this.events.K(this.JX,"sabrCaptionsTrackChanged",this.cHb);this.events.K(this.JX,"sabrCaptionsBufferedRangesUpdated",this.yH1);this.Y_.T.U().Ki&&nv(this.Y_,"offline");this.md.eJ&&g.Is("ux",g.Ht);G=g.kf(this.md.experiments, "html5_defer_fetch_att_ms");this.Tx=new g.J8(this.LPS,G,this);g.X(this,this.Tx);this.VK().I4()&&(g.Z0()&&this.VK().GH.push("remote"),bCY(this));this.Ti.tick("fs");ySc(this);this.md.eJ&&nv(this.Y_,"ux",!0);g.co(this.Y_.T.U())&&nv(this.Y_,"embed");this.S("web_player_sentinel_is_uniplayer")||g.Zb(new g.FI("Player experiment flags missing","web_player_sentinel_is_uniplayer"));G=this.S("web_player_sentinel_yt_experiments_sync");h=g.pB("web_player_sentinel_yt_experiments_sync");G!==h&&g.Zb(new g.FI("b/195699950", {yt:G,player:h}));a||g.Zb(new g.FI("b/179532961"));this.IP=cSB(this);if(a=g.kf(this.md.experiments,"html5_block_pip_safari_delay"))this.h4=new g.J8(this.My,a,this),g.X(this,this.h4);SK=this.md.fd;a=g.kf(this.md.experiments,"html5_performance_impact_profiling_timer_ms");a>0&&(this.Ed=new g.Oh(a),g.X(this,this.Ed),this.events.K(this.Ed,"tick",function(){x.Kf&&nPB.QE("apit",x.Kf);x.Kf=nPB.eT()})); this.JX.publish("applicationInitialized");this.logger.debug("constructor end")}; cSB=function(G){function B(a){a.stack&&a.stack.indexOf("player")!==-1&&(G.KN()||G.mH()).Aj(a)} rz.subscribe("handleError",B);i4.push(B);return function(){rz.unsubscribe("handleError",B);var a=i4.indexOf(B);a!==-1&&i4.splice(a,1)}}; EPy=function(G){var B=new g.Tk(G.md,G.config.args);G.JX.publish("initialvideodatacreated",B);return Im(G,1,B,!1)}; j8B=function(G){var B=G.mH();B.setPlaybackRate(G.md.G?1:f6c(G,Number(g.SL("yt-player-playback-rate"))||1));B.dV(G.Dv,G);B.Mg()}; UiA=function(G){var B="",a=KxB(G);a.indexOf("//")===0&&(a=G.md.protocol+":"+a);var V=a.lastIndexOf("/base.js");V!==-1&&(B=a.substring(0,V+1));if(a=Error().stack)if(a=a.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))a=a[1],a.includes(B)||g.Zb(Error("Player module URL mismatch: "+(a+" vs "+B+".")));B=new YPX(G.JX,B);HCB(G,B);return B}; HCB=function(G,B){var a={};a=(a.destroyed=function(){G.onApiChange()},a); B.C=a}; pyV=function(G){if(G.md.storeUserVolume){G=g.SL("yt-player-volume")||{};var B=G.volume;G={volume:isNaN(B)?100:g.eH(Math.floor(B),0,100),muted:!!G.muted}}else G={volume:100,muted:G.md.mute};return G}; gk=function(G){G.mediaElement=G.md.deviceIsAudioOnly?new g.oi(g.M6("AUDIO")):vt.pop()||new g.oi(g.M6("VIDEO"));g.X(G,G.mediaElement);var B=G.KN();B&&B.setMediaElement(G.mediaElement);try{G.md.S_?(G.Gv&&G.events.i6(G.Gv),G.Gv=G.events.K(G.mediaElement,"volumechange",G.o_J)):(G.mediaElement.J1(G.NL.muted),G.mediaElement.setVolume(G.NL.volume/100))}catch(x){G.ZB("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(x&&typeof x==="object"&&"message"in x&&typeof x.message==="string"&&x.message.replace(/[;:,]/g, "_")));return}g.nU(G.pK);vPb(G);B=G.template;var a=G.mediaElement.dO();B.X3=a;B.oR=!1;B.X3.parentNode||VX(B.r8,B.X3,0);B.vT=new g.hI(0,0,0,0);ti9(B);zX(B);a=B.X3;g.hi(a,"video-stream");g.hi(a,g.Lh.MAIN_VIDEO);var V=B.app.U();V.N9&&a.setAttribute("data-no-fullscreen","true");V.S("html5_local_playsinline")?"playsInline"in f1()&&(a.playsInline=!0):V.hY&&(a.setAttribute("webkit-playsinline",""),a.setAttribute("playsinline",""));V.UD&&B.X3&&B.K(a,"click",a.play,a);try{G.mediaElement.activate()}catch(x){G.ZB("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(x&&typeof x==="object"&&"message"in x&&typeof x.message==="string"&&x.message.replace(/[;:,]/g,"_")))}}; SSc=function(G){if(!Dix(G)){var B=G.mH().Zc();B&&(B=B.tT(),B instanceof Promise&&B.catch(function(){})); pl(G,l3(G.getPlayerStateObject()))}}; vPb=function(G){var B=G.mediaElement;SW()?G.pK.K(B,"webkitpresentationmodechanged",G.vFl):window.document.pictureInPictureEnabled&&(G.pK.K(B,"enterpictureinpicture",function(){G.Bq(!0)}),G.pK.K(B,"leavepictureinpicture",function(){G.Bq(!1)})); Y4&&(G.pK.K(B,"webkitbeginfullscreen",function(){G.CG(3)}),G.pK.K(B,"webkitendfullscreen",function(){G.CG(0)}))}; RPg=function(G,B){var a=B.getPlayerType(),V=G.l6.It(a);B!==G.mH()&&B!==V&&(V==null||V.lF(),G.l6.C[a]=B)}; ZCA=function(G,B){B=B===void 0?!0:B;G.logger.debug("start clear presenting player");var a;if(a=G.Vv){a=G.Vv;var V=G.mediaElement;a=!!V&&V===a.mediaElement}a&&(G.tI(),gk(G));if(a=G.KN())a.tI(!B),a.aU(G.Dj,G),a.getPlayerType()!==1&&a.lF();G.l6.G=null;G.logger.debug("finish clear presenting player")}; g.rSc=function(G,B,a,V){var x=G.Ti;B===2&&(x=new gLz(G.md));return new g.KO(G.md,B,x,G.template,function(h,e,w){G.JX.publish(h,e,w)},function(){return G.JX.getVisibilityState()},G.visibility,G,a,V)}; Im=function(G,B,a,V,x){G=g.rSc(G,B,a,x);B=new g.qd(G);G.V5=B;V&&G.Mg();return B}; UH=function(G,B){return G.Cn(B)?G.mH():B}; OH=function(G,B){var a=G.KN(),V=G.mH();return a&&B===V&&G.Cn(B)&&G.Cn(a)?a:B}; qSA=function(G){G.logger.debug("start application playback");if(G.mH().getPlayerState().isError())G.logger.debug("start application playback done, player in error state");else{var B=EH(G);G.VK().isLoaded();B&&G.sD(6);$ix(G);hrB(G.Y_)||XyB(G)}}; XyB=function(G){if(!EH(G)){var B=H$(G.Y_);B&&!B.created&&ikz(G.Y_)&&(G.logger.debug("reload ad module"),B.create())}}; $ix=function(G){G.logger.debug("start presenter playback");var B=G.getVideoData(),a=G.Y_;hrB(a)||a.Iq();!OCX&&a.T.S("html5_allow_asmjs")&&kXz(a);nv(a,"embed");nv(a,"kids");nv(a,"remote");nv(a,"miniplayer");nv(a,"offline");nv(a,"unplugged");nv(a,"ypc",!1,!0);nv(a,"ypc_clickwrap",!1,!0);nv(a,"yto",!1,!0);nv(a,"webgl",!1,!0);erH(a)||(nv(a,"captions",!0),nv(a,"endscreen"),a.Y8()||a.I_(),nv(a,"creatorendscreen",!0));a.C9();G.JX.publish("videoready",B)}; jP=function(G){G=G.VK();G.I4();return XV(G)}; ySc=function(G){G.logger.debug("start prepare initial playback");G.mB();var B=G.config.args;gk(G);var a=G.VK();G.JX.qD("onVolumeChange",G.NL);if(B&&jHg(B)){var V=F6(G.md);V&&!G.ES&&(B.fetch=0);var x=g.co(G.md);x&&!G.ES&&(B.fetch=0);bF(G,B);g.co(G.md)&&G.Ti.tick("ep_pr_s");if(!V||G.ES)if(x&&!G.ES)uly(G);else if(!a.I4())G.playlist.onReady(function(){yV(G)})}G.dL(G.mH()); g.F(G.mH().getPlayerState(),128)||(B=gN_(!G.md.deviceIsAudioOnly),B==="fmt.noneavailable"?G.ZB("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):B==="html5.missingapi"?G.ZB(B,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):a&&a.I4()&&jP(G)&&(G.md.Da||G.md.e6)?cP(G):a.kI?G.JX.mutedAutoplay({durationMode:a.mutedAutoplayDurationMode}):g.SL("yt-player-playback-on-reload")?(g.wP("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!G.md.HS}),g.D0("yt-player-playback-on-reload",!1), cP(G)):Gk(G.md)||Q8x(G),g.YF(G.md)||YD(G.md)==="MWEB"?(g.PH(g.Me(),function(){nl(G)}),g.PH(g.Me(),function(){yhg()})):(nl(G),yhg()),G.logger.debug("finish prepare initial playback"))}; nl=function(G){if(!G.S("use_rta_for_player"))if(G.S("fetch_att_independently"))g.iC(G.Tx);else{var B=G.getVideoData().botguardData;B&&g.Zk(B,G.md,G.getVideoData().N4||"")}}; Q8x=function(G){G.logger.debug("start initialize to CUED mode");G.JX.publish("initializingmode");G.sD(2);G.S("embeds_web_enable_defer_loading_remote_js")&&g.Po(G.md)?g.PH(g.Me(),function(){nv(G.Y_,"remote")}):nv(G.Y_,"remote"); nv(G.Y_,"miniplayer");G.logger.debug("initialized to CUED mode")}; cP=function(G){G.logger.debug("start initialize application playback");var B=G.mH();if(g.F(B.getPlayerState(),128))return!1;var a=B.getVideoData();jP(G)&&G.md.e6&&(vt.length&&G.lR?(fl(G,{muted:!1,volume:G.NL.volume},!1),HP(G,!1)):vt.length||G.NL.muted||(fl(G,{muted:!0,volume:G.NL.volume},!1),HP(G,!0)));jP(G)&&g.co(G.md)&&a.mutedAutoplay&&(fl(G,{muted:!0,volume:G.NL.volume},!1),HP(G,!0));a.Ej&&fl(G,{muted:!0,volume:G.NL.volume},!1);LxY(G,1,a,!1);G.JX.publish("initializingmode");G.dL(G.mH());G.sD(3); var V;if(!(V=!G.md.L1)){if(V=G.Vv){V=G.Vv;var x=G.mediaElement;V=!!x&&x===V.mediaElement}V=V&&G.GI}V&&(G.tI(),gk(G),B.setMediaElement(G.mediaElement));B.D4();if(g.F(B.getPlayerState(),128))return!1;a.Ru||pl(G,3);return G.GI=!0}; EH=function(G){G=nb(G.Y_);return!!G&&G.loaded}; TnY=function(G,B){if(!G.sf)return!1;var a=G.sf.startTimeMs*.001-1,V=G.sf.endTimeMs*.001;G.sf.type==="repeatChapter"&&V--;return Math.abs(B-a)<=1E-6||Math.abs(B-V)<=1E-6||B>=a&&B<=V}; JS_=function(G){var B=G.KN();B&&V3(B.getVideoData())&&!B.qM()&&(B=s8_(G)*1E3-G.getVideoData().xA,G.S("html5_gapless_new_slr")?(G=G.Mc,FxH(G.app,"gaplessshortslooprange"),B=new g.V1(0,B,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(G=G.app.KN())&&G.addCueRange(B)):G.setLoopRange({startTimeMs:0,endTimeMs:B,type:"shortsLoop"}))}; ASx=function(G){var B=G.mH();if(!(g.F(B.getPlayerState(),64)&&G.VK().isLivePlayback&&G.sf.startTimeMs<5E3)){if(G.sf.type==="repeatChapter"){var a,V=(a=qoB(G.Ch()))==null?void 0:a.UK(),x;a=(x=G.getVideoData())==null?void 0:x.iz;V instanceof g.FJ&&a&&(x=a[Nm(a,G.sf.startTimeMs)],V.renderChapterSeekingAnimation(0,x.title));isNaN(Number(G.sf.loopCount))?G.sf.loopCount=0:G.sf.loopCount++;G.sf.loopCount===1&&G.JX.pN("innertubeCommand",G.getVideoData().Yx)}V={Tt:"application_loopRangeStart"};if(G.sf.type=== "clips"||G.sf.type==="shortsLoop")V.seekSource=58;B.seekTo(G.sf.startTimeMs*.001,V)}}; f6c=function(G,B){var a=G.JX.getAvailablePlaybackRates();B=Number(B.toFixed(2));G=a[0];a=a[a.length-1];B<=G?B=G:B>=a?B=a:(G=Math.floor(B*100+.001)%5,B=G===0?B:Math.floor((B-G*.01)*100+.001)/100);return B}; s8_=function(G,B){B=G.It(B);if(!B)return G.l6.j.Ws();B=UH(G,B);return vP(G,B.Ws(),B)}; vP=function(G,B,a){if(G.Cn(a)){a=a.getVideoData();if(Ds(G))a=B;else{G=G.EZ;for(var V=g.m(G.X),x=V.next();!x.done;x=V.next())if(x=x.value,a.YW===x.YW){B+=x.qd/1E3;break}V=B;G=g.m(G.X);for(x=G.next();!x.done;x=G.next()){x=x.value;if(a.YW===x.YW)break;var h=x.qd/1E3;if(h1&&(x=!1);if(!G.Ok||x!==B){a=a.lock(x?"portrait":"landscape");if(a!=null)a["catch"](function(){}); G.Ok=!0}}else G.Ok&&(G.Ok=!1,a.unlock())}; X5=function(G,B,a){G.JX.publish(B,a);var V=g.yI(G.md)||g.R$(G.md)||g.rv(G.md);if(a&&V){switch(B){case "cuerangemarkersupdated":var x="onCueRangeMarkersUpdated";break;case "cuerangesadded":x="onCueRangesAdded";break;case "cuerangesremoved":x="onCueRangesRemoved"}x&&G.JX.pN(x,a.map(function(h){return{getId:function(){return this.id}, end:h.end,id:h.getId(),namespace:h.namespace==="ad"?"ad":"",start:h.start,style:h.style,visible:h.visible}}))}}; qE=function(G,B,a,V,x,h){a=a===void 0?!0:a;var e=G.It(x);e&&(e.getPlayerType()===2&&!G.Cn(e)||g.cF(e.getVideoData()))||(G.getPresentingPlayerType()===3?nb(G.Y_).fO("control_seek",B,a):(e&&e===G.mH()&&G.sf&&!TnY(G,B)&&G.setLoopRange(null),G.seekTo(B,a,V,x,h)))}; kux=function(G,B,a,V){a&&(G.tI(),gk(G));a=G.KN();a.bE(B);var x=G.getVideoData(),h={};h.video_id=x.videoId;h.adformat=x.adFormat;x.isLivePlayback||(h.start=a.getCurrentTime(),h.resume="1");x.isLivePlayback&&NJ(x)&&g.jQ(G.md)&&(h.live_utc_start=a.lJ(),h.resume="1");x.XJ&&(h.vvt=x.XJ);x.L&&(h.vss_credentials_token=x.L,h.vss_credentials_token_type=x.iF);x.oauthToken&&(h.oauth_token=x.oauthToken);x.B6&&(h.force_gvi=x.B6);h.autoplay=1;h.reload_count=x.Cd+1;h.reload_reason=B;x.XM&&(h.unplugged_partner_opt_out= x.XM);x.LR&&(h.ypc_is_premiere_trailer=x.LR);x.playerParams&&(h.player_params=x.playerParams);G.loadVideoByPlayerVars(h,void 0,!0,void 0,void 0,V);B==="signature"&&G.a4&&XyB(G)}; N9y=function(G,B){G.VK().autonavState=B;g.D0("yt-player-autonavstate",B);G.JX.publish("autonavchange",B)}; dwV=function(G){var B=G.getVideoData().rQ,a=G.md.Dx,V=G.isInline()&&!G.getVideoData().Uh,x=G.mediaElement;B||a||V?x.zA():(x.ri(),fl(G,G.NL))}; SP=function(G){var B=H$(G.Ch());B&&B.created&&(G.logger.debug("reset ad module"),B.destroy())}; Ds=function(G){return G.getVideoData().enableServerStitchedDai&&!!G.a4}; CNx=function(G,B){B.bounds=G.getBoundingClientRect();for(var a=g.m(["display","opacity","visibility","zIndex"]),V=a.next();!V.done;V=a.next())V=V.value,B[V]=dx(G,V);B.hidden=!!G.hidden}; KxB=function(G){if(G.webPlayerContextConfig){var B=G.webPlayerContextConfig.trustedJsUrl;return B?Ov(B).toString():G.webPlayerContextConfig.jsUrl}return G.config.assets&&G.config.assets.js?G.config.assets.js:""}; zBV=function(G,B){var a=G.It(1);if(a){if(a.getVideoData().clientPlaybackNonce===B)return a;if((G=G.v9.j)&&G.getVideoData().clientPlaybackNonce===B)return G}return null}; t8c=function(G){return G.name==="TypeError"&&G.stack.includes("/s/player/")&&um()<=105}; mw_=function(G){return G.isTimeout?"NO_BID":"ERR_BID"}; I3_=function(){var G=null;QX9().then(function(B){return G=B},function(B){return G=mw_(B)}); return G}; gU_=function(){var G=jU(1E3,"NO_BID");return g.pJ(MoX([QX9(),G]).yC(mw_),function(){G.cancel()})}; uF=function(G){return G.R4?g.uP(g.qe(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; QV=function(G){this.player=G;this.C=this.j=1}; OGx=function(G,B,a,V,x,h){B.client||(B.client={});G.player.U().S("h5_remove_url_for_get_ad_break")||(B.client.originalUrl=a);var e=Wh(a),w=g.rp(a)?!1:!0;(e||w)&&typeof Intl!=="undefined"&&(B.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);w=g.rp(a)?!1:!0;if(e||w||V!==""){var K={};a=Bh(NI(V)).split("&");var l=new Map;a.forEach(function(k){k=k.split("=");k.length>1&&l.set(k[0].toString(),decodeURIComponent(k[1].toString()))}); l.has("bid")&&(K.bid=l.get("bid"));K.params=[];p8A.forEach(function(k){l.has(k)&&(k={key:k,value:l.get(k)},K.params.push(k))}); UwK(G,K);B.adSignalsInfo=K}B.client.unpluggedAppInfo||(B.client.unpluggedAppInfo={});B.client.unpluggedAppInfo.enableFilterMode=!1;a=x.j.cosver;a!=null&&a!=="cosver"&&(B.client.osVersion=a);a=x.j.cplatform;a!=null&&a!=="cplatform"&&a!==""&&(B.client.platform=a);a=x.j.cmodel;a!=null&&a!=="cmodel"&&(B.client.deviceModel=a);a=x.j.cplayer;a!=null&&a!=="cplayer"&&(B.client.playerType=a);a=x.j.cbrand;a!=null&&a!=="cbrand"&&(B.client.deviceMake=a);B.user||(B.user={});B.user.lockedSafetyMode=!1;(x.S("embeds_web_enable_iframe_api_send_full_embed_url")|| x.S("embeds_enable_autoplay_and_visibility_signals"))&&g.SN(x)&&Tax(B,h,G.player.getPlayerState(1))}; bGy=function(G,B){var a=!1;if(B==="")return a;B.split(",").forEach(function(V){var x={},h={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},e="ACTIVE";V[0]==="!"&&(V=V.substring(1),e="INACTIVE");V=V.split("-");V.length<3||(V[0]in EU9&&(h.clientName=EU9[V[0]]),V[1]in jOg&&(h.platform=jOg[V[1]]),h.applicationState=e,h.clientVersion=V.length>2?V[2]:"",x.remoteClient=h,G.remoteContexts?G.remoteContexts.push(x):G.remoteContexts=[x],a=!0)}); return a}; czx=function(G){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in yzK))return!1;G=G.split(RegExp("[:&]"));var B=yzK.FLAG_AUTO_CAPTIONS_DEFAULT_ON,a="f"+(1+Math.floor(B/31)).toString();B=1<=2?e[1]:"";var w=f3A.test(B),K=HGV.exec(B);K=K!=null&&K.length>=2?K[1]:"";var l=vUH.exec(B);l=l!=null&&l.length>=2&&!Number.isNaN(Number(l[1]))?Number(l[1]):1;var k=DwB.exec(B);k=k!=null&&k.length>=2?k[1]:"0";var N=X6(G.player.U().TV),d=G.player.getVideoData(1),C=g.iy(d.Zx,!0),z="BISCOTTI_ID"in a?a.BISCOTTI_ID:"";OGx(G,C,B,z.toString(),G.player.U(), d);d={splay:!1,lactMilliseconds:a.LACT.toString(),playerHeightPixels:Math.trunc(a.P_H),playerWidthPixels:Math.trunc(a.P_W),vis:Math.trunc(a.VIS),signatureTimestamp:20152,autonavState:uF(G.player.U())};V&&(V={},bGy(V,a.YT_REMOTE)&&(d.mdxContext=V));if(V=S6B.includes(N)?void 0:g.r1("PREF")){for(var p=V.split(RegExp("[:&]")),O=0,b=p.length;O1&&c[1].toUpperCase()==="TRUE"){C.user.lockedSafetyMode=!0;break}}d.autoCaptionsDefaultOn= czx(V)}B=RBK.exec(B);(B=B!=null&&B.length>=2?B[1]:"")&&K&&(C.user.credentialTransferTokens=[{token:B,scope:"VIDEO"}]);B={contentPlaybackContext:d};e={adBlock:Math.trunc(a.AD_BLOCK),params:e,breakIndex:l,breakPositionMs:k,clientPlaybackNonce:a.CPN,topLevelDomain:N,isProxyAdTagRequest:w,context:C,adSignalsInfoString:Bh(NI(z.toString())),overridePlaybackContext:B};x!==void 0&&(e.cueProcessedMs=Math.round(x).toString());K&&(e.videoId=K);a.LIVE_TARGETING_CONTEXT&&(e.liveTargetingParams=a.LIVE_TARGETING_CONTEXT); a.AD_BREAK_LENGTH&&(e.breakLengthMs=Math.trunc(a.AD_BREAK_LENGTH*1E3).toString());h&&(e.driftFromHeadMs=h.toString());e.currentMediaTimeMs=Math.round(G.player.getCurrentTime(1)*1E3);(G=G.player.getGetAdBreakContext())&&(e.getAdBreakContext=G);return e}; rzA=function(){QV.apply(this,arguments)}; $wb=function(G,B,a,V,x){var h=a.YR;var e=a.uJ;var w=G.player.U().US,K=0;a.cueProcessedMs&&e&&!h&&(a=e.end-e.start,a>0&&(K=Math.floor(a/1E3)));var l={AD_BLOCK:x,AD_BREAK_LENGTH:h?h.YF:K,AUTONAV_STATE:uF(G.player.U()),CA_TYPE:"image",CPN:G.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:G.player.lh()*1E3,LACT:cD(),LIVE_INDEX:h?G.C++:1,LIVE_TARGETING_CONTEXT:h&&h.context?h.context:"",MIDROLL_POS:e?Math.round(e.start/1E3):0,MIDROLL_POS_MS:e?Math.round(e.start):0,VIS:G.player.getVisibilityState(), P_H:G.player.g1().bz().height,P_W:G.player.g1().bz().width,YT_REMOTE:w?w.join(","):""},k=k4(lm);Object.keys(k).forEach(function(N){k[N]!=null&&(l[N.toUpperCase()]=k[N].toString())}); V!==""&&(l.BISCOTTI_ID=V);V={};KB(B)&&(V.sts="20152",(G=G.player.U().forcedExperiments)&&(V.forced_experiments=G));return eK(g.fy(B,l),V)}; X8B=function(G,B){var a=G.player.U(),V,x=(V=G.player.getVideoData(1))==null?void 0:V.oauthToken;return g.Vm(a,x).then(function(h){if(h&&w1()){var e=$g();Xq(e,h)}return g.Al(G.player.pM(e),B,"/youtubei/v1/player/ad_break").then(function(w){return w})})}; q6x=function(G){this.BS=G}; uFB=function(G){this.T=G}; QOx=function(G){this.BS=G}; T9A=function(G){g.r.call(this);this.j=G;this.Gf=LFY(this)}; LFY=function(G){var B=new pxY(G.j.PC);g.X(G,B);G=g.m([new q6x(G.j.BS),new uFB(G.j.T),new QOx(G.j.BS),new HS(G.j.gQ,G.j.R9),new D7,new Z7(G.j.Gz,G.j.E1,G.j.BS),new vS,new fp]);for(var a=G.next();!a.done;a=G.next())UTA(B,a.value);G=g.m(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(a=G.next();!a.done;a=G.next())S9(B,a.value,function(){}); return B}; Ll=function(G){var B=G.WS,a=G.vS;G=G.vD;var V=new rVA,x={Ci:new mR_(B.get(),a),vS:a};return{un:new Bp(a,G,B,x),context:x,Y3:V}}; TX=function(G,B,a,V,x){g.r.call(this);this.X=B;this.fN=a;this.WS=V;this.nD=x;this.listeners=[];var h=new yG(this);g.X(this,h);h.K(G,"internalAbandon",this.LO);this.addOnDisposeCallback(function(){g.nU(h)})}; sH=function(G){this.T=G;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.B=!0;this.X=this.C=!1;this.adFormat=null;this.G="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; sOX=function(G){G.contentCpn=null;G.adCpn=null;G.videoId=null;G.adVideoId=null;G.adFormat=null;G.G="AD_PLACEMENT_KIND_UNKNOWN";G.actionType="unknown_type";G.C=!1;G.X=!1}; FFY=function(G,B){G=g.m(B);for(B=G.next();!B.done;B=G.next())if((B=B.value.renderer)&&(B.instreamVideoAdRenderer||B.linearAdSequenceRenderer||B.sandwichedLinearAdRenderer||B.instreamSurveyAdRenderer)){X_("ad_i");g.qO({isMonetized:!0});break}}; Jzy=function(G){var B;(B=G.T.getVideoData(1))!=null&&B.HS&&(G.X=!1,B={},G.j&&G.videoId&&(B.cttAuthInfo={token:G.j,videoId:G.videoId}),u1("video_to_ad",B))}; Tf=function(G){G.X=!1;var B={};G.j&&G.videoId&&(B.cttAuthInfo={token:G.j,videoId:G.videoId});u1("ad_to_video",B);Az9(G)}; Az9=function(G){if(G.C)if(G.G==="AD_PLACEMENT_KIND_START"&&G.actionType==="video_to_ad")ZX("video_to_ad");else{var B={adBreakType:pn(G.G),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:G.videoStreamType};G.actionType==="ad_to_video"?(G.contentCpn&&(B.targetCpn=G.contentCpn),G.videoId&&(B.targetVideoId=G.videoId)):(G.adCpn&&(B.targetCpn=G.adCpn),G.adVideoId&&(B.targetVideoId=G.adVideoId));G.adFormat&&(B.adType=G.adFormat);G.contentCpn&& (B.clientPlaybackNonce=G.contentCpn);G.videoId&&(B.videoId=G.videoId);G.adCpn&&(B.adClientPlaybackNonce=G.adCpn);G.adVideoId&&(B.adVideoId=G.adVideoId);g.qO(B,G.actionType)}}; F5=function(G){g.r.call(this);this.T=G;this.j=new Map;this.X=new yG(this);g.X(this,this.X);this.X.K(this.T,g.hm("ad"),this.onCueRangeEnter,this);this.X.K(this.T,g.ew("ad"),this.onCueRangeExit,this)}; Y6B=function(G,B,a,V,x){g.V1.call(this,B,a,{id:G,namespace:"ad",priority:x,visible:V})}; J7=function(G){this.T=G}; A7=function(G){this.T=G;g.kf(this.T.U().experiments,"tv_pacf_logging_sample_rate")}; EB=function(G,B){B=B===void 0?!1:B;return G.T.U().S("html5_ssap_force_ads_ctmp")?!0:(B||G.T.U().Ef())&&G.T.U().S("html5_ssap_pacf_qoe_ctmp")}; YW=function(G){var B,a;return(a=(B=G.T.getVideoData(1))==null?void 0:g.AC(B))!=null?a:!1}; As=function(G,B){return G.T.U().S(B)}; iGb=function(G){return G.T.U().S("substitute_ad_cpn_macro_in_ssdai")}; pD=function(G){var B,a,V;return((B=G.T.getVideoData(1).getPlayerResponse())==null?void 0:(a=B.playerConfig)==null?void 0:(V=a.daiConfig)==null?void 0:V.enableServerStitchedDai)||!1}; cV_=function(G){return G.T.U().S("html5_enable_vod_slar_with_notify_pacf")}; PNB=function(G){return G.T.U().S("html5_recognize_predict_start_cue_point")}; M0=function(G){return G.T.U().experiments.Or("enable_desktop_player_underlay")}; oUb=function(G){return G.T.U().experiments.Or("html5_load_empty_player_in_media_break_sub_lra")}; Do=function(G){return G.T.U().experiments.Or("html5_load_ads_instead_of_cue")}; S7=function(G){return G.T.U().experiments.Or("html5_preload_ads")}; YG=function(G){return G.T.U().experiments.Or("enable_ads_control_flow_deterministic_id_generation")}; M8A=function(G){return G.T.U().experiments.Or("enable_desktop_discovery_video_abandon_pings")||g.J3(G.T.U())}; GPX=function(G){return G.T.U().experiments.Or("enable_progres_commands_lr_feeds")}; iF=function(G){return G.T.U().experiments.Or("html5_cuepoint_identifier_logging")}; BDb=function(G){switch(G){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}}; aSX=function(){g.wI.call(this);var G=this;this.j={};this.addOnDisposeCallback(function(){for(var B=g.m(Object.keys(G.j)),a=B.next();!a.done;a=B.next())delete G.j[a.value]})}; PP=function(){if(VF9===null){VF9=new aSX;n6(Ur).X="b";var G=n6(Ur),B=Cy(G)=="h"||Cy(G)=="b",a=!(Sl(),!1);B&&a&&(G.B=!0,G.L=new uNK)}return VF9}; xrV=function(G,B,a){G.j[B]=a}; hoK=function(G){switch(G){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}}; om=function(G,B,a){this.fN=G;this.T=B;this.vS=a;this.X=new Set;this.j=new Map;PP().subscribe("adactiveviewmeasurable",this.AE,this);PP().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Lg,this);PP().subscribe("adviewableimpression",this.BF,this);PP().subscribe("adaudioaudible",this.Q1,this);PP().subscribe("adaudiomeasurable",this.Ta,this)}; Gl=function(G,B,a){var V=a.xZ,x=a.bW,h=a.listener,e=a.Ix;a=a.yN===void 0?!1:a.yN;if(G.j.has(B))kN("Unexpected registration of layout in LidarApi");else{if(e){if(G.X.has(e))return;G.X.add(e)}G.j.set(B,h);el(Sl().QK,"fmd",1);Prg(n6(Ur),V);var w=a?B:void 0;xrV(PP(),B,{U3:function(){if(!x)return{};var K=G.T.getPresentingPlayerType(!0),l;return(l=G.T.getVideoData(K))!=null&&l.isAd()?{currentTime:G.fN.get().getCurrentTimeSec(K,!1,w),duration:x,isPlaying:ME(G.fN.get(),K).isPlaying(),isVpaid:!1,isYouTube:!0, volume:G.fN.get().isMuted()?0:G.fN.get().getVolume()/100}:{}}})}}; B3=function(G,B){G.j.has(B)?(G.j.delete(B),delete PP().j[B]):kN("Unexpected unregistration of layout in LidarApi")}; eoH=function(G,B){if(G.T.isLifaAdPlaying()){var a=G.T.xJ(!0,!0);G.Pq(B,a.width*.5*1.1,a.height*.25*1.1,a.width*.5*.9,a.height*.5*.9)}}; KAY=function(G,B,a){var V={};WAK(G,V,B,a);w59(V);V.LACT=aI(function(){return cD().toString()}); V.VIS=aI(function(){return G.getVisibilityState().toString()}); V.SDKV="h.3.0";V.VOL=aI(function(){return G.isMuted()?"0":Math.round(G.getVolume()).toString()}); V.VED="";return V}; lSg=function(G,B){var a={};if(B)return a;if(!G.kind)return g.RA(Error("AdPlacementConfig without kind")),a;if(G.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||G.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!G.adTimeOffset||!G.adTimeOffset.offsetStartMilliseconds)return g.RA(Error("malformed AdPlacementConfig")),a;a.MIDROLL_POS=aI(l8(Math.round(on(G.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else a.MIDROLL_POS=aI(l8("0"));return a}; aI=function(G){return{toString:function(){return G()}}}; kP_=function(G,B,a){function V(w,K){(K=a[K])&&(h[w]=K)} function x(w,K){(K=a[K])&&(h[w]=e(K))} if(!a||g.yw(a))return G;var h=Object.assign({},G),e=B?encodeURIComponent:function(w){return w}; x("DV_VIEWABILITY","doubleVerifyViewability");x("IAS_VIEWABILITY","integralAdsViewability");x("MOAT_INIT","moatInit");x("MOAT_VIEWABILITY","moatViewability");V("GOOGLE_VIEWABILITY","googleViewability");V("VIEWABILITY","viewability");return h}; WAK=function(G,B,a,V){B.CPN=aI(function(){var x;(x=G.getVideoData(1))?x=x.clientPlaybackNonce:(g.Zb(Error("Video data is null.")),x=null);return x}); B.AD_MT=aI(function(){if(V!=null)var x=V;else{var h=a;G.U().S("html5_ssap_use_cpn_to_get_time")||(h=void 0);if(G.U().S("enable_h5_shorts_ad_fill_ad_mt_macro")||G.U().S("enable_desktop_discovery_pings_ad_mt_macro")||g.J3(G.U())){var e=G.getPresentingPlayerType(!0),w;x=((w=G.getVideoData(e))==null?0:w.isAd())?ND9(G,e,h):0}else x=ND9(G,2,h)}return Math.round(Math.max(0,x*1E3)).toString()}); B.MT=aI(function(){return Math.round(Math.max(0,G.getCurrentTime(1,!1)*1E3)).toString()}); B.P_H=aI(function(){return G.g1().bz().height.toString()}); B.P_W=aI(function(){return G.g1().bz().width.toString()}); B.PV_H=aI(function(){return G.g1().getVideoContentRect().height.toString()}); B.PV_W=aI(function(){return G.g1().getVideoContentRect().width.toString()})}; w59=function(G){G.CONN=aI(l8("0"));G.WT=aI(function(){return Date.now().toString()})}; ND9=function(G,B,a){return a!==void 0?G.getCurrentTime(B,!1,a):G.getCurrentTime(B,!1)}; drX=function(){}; C7X=function(G,B,a,V,x){var h,e,w,K,l,k,N,d,C,z,p,O,b;g.v(function(c){switch(c.j){case 1:h=!!B.scrubReferrer;e=g.fy(B.baseUrl,kP_(a,h,V));w={};if(!B.headers){c.kf(2);break}K=G.G();if(!K.j){l=K.getValue();c.kf(3);break}return g.f(c,K.j,4);case 4:l=c.X;case 3:k=l;N=g.m(B.headers);for(d=N.next();!d.done;d=N.next())switch(C=d.value,C.headerType){case "VISITOR_ID":g.A0("VISITOR_DATA")&&(w["X-Goog-Visitor-Id"]=g.A0("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.A0("EOM_VISITOR_DATA")&&(w["X-Goog-EOM-Visitor-Id"]= g.A0("EOM_VISITOR_DATA"));break;case "USER_AUTH":k&&(w.Authorization="Bearer "+k);break;case "PLUS_PAGE_ID":(z=G.B())&&(w["X-Goog-PageId"]=z);break;case "AUTH_USER":p=G.j();!k&&p&&(w["X-Goog-AuthUser"]=p);break;case "DATASYNC_ID":if(O=void 0,(O=G.C())==null?0:O.Or("enable_datasync_id_header_in_web_vss_pings"))b=G.X(),Wh(e)&&g.A0("LOGGED_IN")&&b&&(w["X-YouTube-DataSync-Id"]=b)}"X-Goog-EOM-Visitor-Id"in w&&"X-Goog-Visitor-Id"in w&&delete w["X-Goog-Visitor-Id"];case 2:g.qM(e,void 0,h,Object.keys(w).length!== 0?w:void 0,"",!0,x),g.pV(c)}})}; zoB=function(G,B,a,V,x){this.G=G;this.B=B;this.j=a;this.X=V;this.C=x}; tFx=function(G,B){this.j=G;this.vS=B}; Vq=function(G,B,a,V,x,h,e){var w=w===void 0?new zoB(function(){var K=G.U(),l=G.getVideoData(1);return g.Vm(K,l?g.uv(l):"")},function(){return G.U().pageId},function(){return G.U().HS},function(){var K; return(K=G.U().datasyncId)!=null?K:""},function(){return G.U().experiments}):w; this.T=G;this.X=B;this.rO=a;this.WS=V;this.un=x;this.vS=h;this.Y3=e;this.G=w;this.Fc=null;this.j=new Map;this.C=new tFx(w,this.vS)}; ISB=function(G,B,a,V,x){var h=nD(G.X.get(),a);h?(a=ff(G,mrb(h),h,void 0,void 0,V),B.hasOwnProperty("baseUrl")?G.G.send(B,a):G.C.send(B,a,{},x)):kN("Trying to ping from an unknown layout",void 0,void 0,{layoutId:a})}; yUK=function(G,B,a,V,x,h){V=V===void 0?[]:V;var e=nD(G.X.get(),B);if(e){var w=G.rO.get().CM(B,a),K=ff(G,mrb(e),e,x,h);V.forEach(function(l,k){l.baseUrl&&(G.C.send(l.baseUrl,K,w,l.attributionSrcMode),l.serializedAdPingMetadata&&G.un.uI("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,e,new eLc(l,k),void 0,void 0,e.adLayoutLoggingData))})}else kN("Trying to track from an unknown layout.",void 0,void 0,{layoutId:B, trackingType:a})}; Of=function(G,B){G.T.sendVideoStatsEngageEvent(B,void 0,2)}; oF=function(G,B){g.wP("adsClientStateChange",B)}; gcV=function(G,B){G.j.has(B.EE())?kN("Trying to register an existing AdErrorInfoSupplier."):G.j.set(B.EE(),B)}; p5A=function(G,B){G.j.delete(B.EE())||kN("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Bv=function(G,B,a){typeof a==="string"?G.T.getVideoData(1).PF(B,a):G.T.getVideoData(1).FJ(B,a)}; mrb=function(G){var B=xf(G.clientMetadata,"metadata_type_ad_placement_config");G=xf(G.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:B,k6:G}}; ff=function(G,B,a,V,x,h){var e=a?UrA(G):{},w=a?OQy(G,a.layoutId):{},K=EcX(G),l,k=x!=null?x:(l=t5(G.WS.get(),2))==null?void 0:l.clientPlaybackNonce;x=void 0;if(a){var N;if((N=G.Y3.j.get(a.layoutId))==null?0:N.yN)x=a.layoutId}N={};G=Object.assign({},KAY(G.T,x,V),lSg(B.adPlacementConfig,(a==null?void 0:a.renderingContent)!==void 0),w,e,K,(N.FINAL=aI(function(){return"1"}),N.AD_CPN=aI(function(){return k||""}),N)); (a==null?void 0:a.renderingContent)!==void 0||(G.SLOT_POS=aI(function(){return(B.k6||0).toString()})); a={};h=Object.assign({},G,h);G=g.m(Object.values(jdx));for(V=G.next();!V.done;V=G.next())V=V.value,e=h[V],e!=null&&e.toString()!=null&&(a[V]=e.toString());return a}; UrA=function(G){var B={},a,V=(a=G.Fc)==null?void 0:a.QH/1E3;V!=null&&(B.SURVEY_ELAPSED_MS=aI(function(){return Math.round(V*1E3).toString()})); B.SURVEY_LOCAL_TIME_EPOCH_S=aI(function(){return Math.round(Date.now()/1E3).toString()}); return B}; OQy=function(G,B){G=G.j.get(B);if(!G)return{};G=G.W1();if(!G)return{};B={};return B.YT_ERROR_CODE=G.pT.toString(),B.ERRORCODE=G.f6.toString(),B.ERROR_MSG=G.errorMessage,B}; EcX=function(G){var B={},a=G.T.getVideoData(1);B.ASR=aI(function(){var V;return(V=a==null?void 0:a.sI)!=null?V:null}); B.EI=aI(function(){var V;return(V=a==null?void 0:a.eventId)!=null?V:null}); return B}; xw=function(G,B,a){g.r.call(this);this.T=G;this.sY=B;this.vS=a;this.listeners=[];this.ZE=null;this.OG=new Map;B=new g.Zh(this);g.X(this,B);B.K(G,"videodatachange",this.MSl);B.K(G,"serverstitchedvideochange",this.dDH);this.mM=t5(this)}; t5=function(G,B){var a=G.T.getVideoData(B);return a?G.Q5(a,B||G.T.getPresentingPlayerType(!0)):null}; bQY=function(G,B,a){var V=G.Q5(B,a);G.mM=V;G.listeners.forEach(function(x){x.qe(V)})}; ybA=function(G){switch(G){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}}; hN=function(G,B,a){g.r.call(this);this.T=G;this.WS=B;this.vS=a;this.listeners=[];this.CH=[];this.j=function(){kN("Called 'doUnlockPreroll' before it's initialized.")}; B=new yG(this);a=new g.Zh(this);g.X(this,a);g.X(this,B);B.K(G,"progresssync",this.xsJ);B.K(G,"presentingplayerstatechange",this.h7f);B.K(G,"fullscreentoggled",this.onFullscreenToggled);B.K(G,"onVolumeChange",this.onVolumeChange);B.K(G,"minimized",this.qH);B.K(G,"overlayvisibilitychange",this.VH);B.K(G,"shortsadswipe",this.DU);B.K(G,"resize",this.Df);a.K(G,g.hm("appad"),this.aM)}; e0=function(G){YW(G.vS.get())||G.j()}; cbz=function(G,B){G.CH=G.CH.filter(function(a){return a!==B})}; W3=function(G,B,a){return G.getCurrentTimeSec(B,a)}; ncb=function(G,B){var a;B=(a=G.WS.get().OG.get(B))!=null?a:null;if(B===null)return kN("Expected ad video start time on playback timeline"),0;G=G.T.getCurrentTime(2,!0);return G0){var h=B.end.toString();x.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&e.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&e.adTimeOffset&&e.adTimeOffset.offsetEndMilliseconds==="-1"&&e.adTimeOffset.offsetEndMilliseconds!==h&&(e.adTimeOffset.offsetEndMilliseconds=h)}); V.map(function(e){return g.u(e,XK)}).forEach(function(e){var w; (e=e==null?void 0:(w=e.slotEntryTrigger)==null?void 0:w.mediaTimeRangeTrigger)&&e.offsetEndMilliseconds==="-1"&&(e.offsetEndMilliseconds=h)})}return{KZ:x, adSlots:V,zv:!1,ssdaiAdsConfig:G.ssdaiAdsConfig}}; Nx=function(G){g.r.call(this);this.T=G;this.listeners=[];this.j=new yG(this);g.X(this,this.j);this.j.K(this.T,"aduxclicked",this.onAdUxClicked);this.j.K(this.T,"aduxmouseover",this.Pz);this.j.K(this.T,"aduxmouseout",this.pV);this.j.K(this.T,"muteadaccepted",this.HdL)}; SaX=function(G,B,a){B=g.br(B,function(V){return new JxK(V,a,V.id)}); G.T.pN("onAdUxUpdate",B)}; dT=function(G,B){G=g.m(G.listeners);for(var a=G.next();!a.done;a=G.next())B(a.value)}; C7=function(G,B){this.X=G;this.C=B===void 0?!1:B;this.j={}}; Ro9=function(G,B){var a=G.startSecs+G.YF;a=a<=0?null:a;if(a===null)return null;switch(G.event){case "start":case "continue":case "stop":break;case "predictStart":if(B)break;return null;default:return null}B=Math.max(G.startSecs,0);return{Eu:new OJ(B,a),rsr:new X$(B,a-B,G.context,G.identifier,G.event,G.j)}}; ZQV=function(){this.j=[]}; jvX=function(G,B,a){var V=g.e$(G.j,B);if(V>=0)return B;B=-V-1;return B>=G.j.length||G.j[B]>a?null:G.j[B]}; zl=function(G,B,a){g.r.call(this);this.T=G;this.vS=B;this.BS=a;this.listeners=[];this.G=!1;this.y9=[];this.j=null;this.B=new C7(this,PNB(B.get()));this.C=new ZQV;this.X=null}; rbY=function(G,B){G.y9.push(B);for(var a=!1,V=g.m(G.listeners),x=V.next();!x.done;x=V.next())a=x.value.bQ(B)||a;G.G=a;iF(G.vS.get())&&Bv(G.BS.get(),"onci","cpi."+B.identifier+";cpe."+B.event+";cps."+B.startSecs+";cbi."+a)}; X5c=function(G,B){oF(G.BS.get(),{cuepointTrigger:{event:$rX(B.event),cuepointId:B.identifier,totalCueDurationMs:B.YF*1E3,playheadTimeMs:B.j,cueStartTimeMs:B.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:G.T.getVideoData(1).clientPlaybackNonce}})}; $rX=function(G){switch(G){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 VW(G,"Unexpected cuepoint event")}}; tN=function(G){this.T=G}; qaB=function(G,B){G.T.cueVideoByPlayerVars(B,2)}; mQ=function(G){this.T=G}; II=function(G){this.T=G}; uAV=function(G){switch(G){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:VW(G,"unknown transitionReason")}}; Qd9=function(G){this.T=G}; LAz=function(G,B,a,V,x){g.r.call(this);var h=this,e=uE(function(){return new A1(h.vS)}); g.X(this,e);var w=uE(function(){return new i6(e,h.vS)}); g.X(this,w);var K=uE(function(){return new yA}); g.X(this,K);var l=uE(function(){return new jz(G)}); g.X(this,l);var k=uE(function(){return new Pk(e,w,h.vS)}); g.X(this,k);var N=uE(function(){return new aM}); g.X(this,N);this.yK=uE(function(){return new Nx(B)}); g.X(this,this.yK);this.Lh=uE(function(){return new LF(x)}); g.X(this,this.Lh);this.sZ=uE(function(){return new sH(B)}); g.X(this,this.sZ);this.Jy=uE(function(){return new F5(B)}); g.X(this,this.Jy);this.e_=uE(function(){return new tN(B)}); g.X(this,this.e_);this.PC=uE(function(){return new J7(B)}); g.X(this,this.PC);this.vS=uE(function(){return new A7(B)}); g.X(this,this.vS);var d=uE(function(){return new kw(V)}); g.X(this,d);var C=uE(function(){return new Nf(h.vS)}); g.X(this,C);this.lU=uE(function(){return new mQ(B)}); g.X(this,this.lU);this.o9=uE(function(){return new FQ}); g.X(this,this.o9);this.WS=uE(function(){return new xw(B,N,h.vS)}); g.X(this,this.WS);var z=Ll({WS:this.WS,vS:this.vS,vD:C}),p=z.context,O=z.Y3;this.un=z.un;this.nD=uE(function(){return new zl(B,h.vS,h.BS)}); g.X(this,this.nD);this.HC=uE(function(){return new II(B)}); g.X(this,this.HC);this.fN=uE(function(){return new hN(B,h.WS,h.vS)}); g.X(this,this.fN);z=uE(function(){return new t1(e,k,w,h.vS,C,"SLOT_TYPE_ABOVE_FEED",h.fN,h.B9,h.Uv)}); g.X(this,z);this.aG=uE(function(){return new Js(h.vS)}); this.rO=uE(function(){return new om(h.fN,B,h.vS)}); g.X(this,this.rO);this.BS=uE(function(){return new Vq(B,K,h.rO,h.WS,h.un,h.vS,O)}); g.X(this,this.BS);this.e9=new Oo(Uo,gT,function(c,H,R,q){return o9(w.get(),c,H,R,q)},l,k,w,C,this.vS,this.WS); g.X(this,this.e9);this.fD=new Eo(l,z,a,this.vS,G,this.WS,this.fN,this.sZ);g.X(this,this.fD);var b=new TX(B,this.fD,this.fN,this.WS,this.nD);this.Kn=uE(function(){return b}); this.SX=b;this.B9=new gY(l,k,this.Kn,this.nD,this.fN,this.vS,this.BS,this.HC);g.X(this,this.B9);this.Vd=new b6(l,k,this.Jy,this.Kn,p);g.X(this,this.Vd);this.bJ=new $E(this.vS,l,k,z,this.WS,this.Vd,a);g.X(this,this.bJ);this.iY=uE(function(){return new Nu(d,w,C,h.vS,h.BS,h.fN,h.HC)}); g.X(this,this.iY);this.ZH=uE(function(){return new dJ}); g.X(this,this.ZH);this.bf=new Sz(G,this.yK,this.vS);g.X(this,this.bf);this.ph=new Rk(G);g.X(this,this.ph);this.gf=new Zr(G);g.X(this,this.gf);this.pR=new $G(G,this.Kn,p);g.X(this,this.pR);this.eS=new Xy(G,this.Jy,this.fN,this.WS,p);g.X(this,this.eS);this.mz=new qc(G,this.WS);g.X(this,this.mz);this.Uv=new LD(G,this.nD,this.fN,this.BS,this.Kn);g.X(this,this.Uv);this.bu=new u6(G);g.X(this,this.bu);this.Wn=new J1(G);g.X(this,this.Wn);this.nE=new QA(G);g.X(this,this.nE);this.dD=new Fy(G);g.X(this,this.dD); this.Wn=new J1(G);g.X(this,this.Wn);this.dc=uE(function(){return new fD}); g.X(this,this.dc);this.No=uE(function(){return new Hk(h.fN)}); g.X(this,this.No);this.vW=uE(function(){return new JUX(h.yK,h.BS,G,K,h.rO)}); g.X(this,this.vW);this.Zm=uE(function(){return new oE(h.bJ,l,e)}); g.X(this,this.Zm);this.W9=uE(function(){return new BX(h.vS,h.BS,h.bu,h.rO)}); g.X(this,this.W9);this.Dm=uE(function(){return new wS(G,h.Wn,h.bu,h.WS,h.HC,h.fN,h.BS,N,h.nD,h.rO,h.aG,h.e_,h.Jy,h.sZ,h.PC,h.Lh,h.lU,h.vS,K,p,O)}); g.X(this,this.Dm);this.e1=uE(function(){return new WJ9(h.fN,h.BS,h.Lh,h.vS,h.rO,h.WS)}); g.X(this,this.e1);this.Sg=uE(function(){return new Y8B(h.yK,h.fN,h.BS,K,h.rO,h.gf,h.dD,h.Lh,h.vS,a)}); g.X(this,this.Sg);this.Ui=uE(function(){return new AUB(h.yK,h.BS,K)}); g.X(this,this.Ui);this.xK=new lI(G,this.o9,e);g.X(this,this.xK);this.lf={mI:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bJ],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.B9],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.e9],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Vd]]),XZ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.iY],["SLOT_TYPE_ABOVE_FEED",this.ZH],["SLOT_TYPE_FORECASTING",this.ZH], ["SLOT_TYPE_IN_PLAYER",this.ZH],["SLOT_TYPE_PLAYER_BYTES",this.ZH],["SLOT_TYPE_PLAYER_UNDERLAY",this.ZH],["SLOT_TYPE_PLAYBACK_TRACKING",this.ZH],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.ZH]]),k9:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bf],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.bf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ph],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ph],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ph],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ph],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.ph],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ph],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ph],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ph],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ph],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.ph],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.ph],["TRIGGER_TYPE_CLOSE_REQUESTED",this.gf],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pR],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.eS],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.eS],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.eS],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.eS],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.eS],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.eS],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.eS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.mz],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.mz],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.bu],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.pR],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.nE],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.dD],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Wn],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Uv],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Uv],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Uv],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Uv],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Uv]]),uo:new Map([["SLOT_TYPE_ABOVE_FEED",this.dc], ["SLOT_TYPE_AD_BREAK_REQUEST",this.dc],["SLOT_TYPE_FORECASTING",this.dc],["SLOT_TYPE_IN_PLAYER",this.dc],["SLOT_TYPE_PLAYER_BYTES",this.No],["SLOT_TYPE_PLAYER_UNDERLAY",this.dc],["SLOT_TYPE_PLAYBACK_TRACKING",this.dc],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.dc]]),l9:new Map([["SLOT_TYPE_ABOVE_FEED",this.vW],["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_FORECASTING",this.W9],["SLOT_TYPE_PLAYER_BYTES",this.Dm],["SLOT_TYPE_PLAYBACK_TRACKING",this.e1],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.e1],["SLOT_TYPE_IN_PLAYER",this.Sg],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ui]])};this.listeners=[K.get()];this.BN={bJ:this.bJ,E1:this.vS.get(),lL:this.Lh.get(),XH:this.fN.get(),fD:this.fD,Sy:e.get(),Pd:this.o9.get(),R9:this.bf,gQ:K.get(),Gz:this.WS.get()}}; TDH=function(G,B,a,V,x){g.r.call(this);var h=this,e=uE(function(){return new A1(h.vS)}); g.X(this,e);var w=uE(function(){return new i6(e,h.vS)}); g.X(this,w);var K=uE(function(){return new yA}); g.X(this,K);var l=uE(function(){return new jz(G)}); g.X(this,l);var k=uE(function(){return new Pk(e,w,h.vS)}); g.X(this,k);var N=uE(function(){return new aM}); g.X(this,N);this.yK=uE(function(){return new Nx(B)}); g.X(this,this.yK);this.Lh=uE(function(){return new LF(x)}); g.X(this,this.Lh);this.sZ=uE(function(){return new sH(B)}); g.X(this,this.sZ);this.Jy=uE(function(){return new F5(B)}); g.X(this,this.Jy);this.e_=uE(function(){return new tN(B)}); g.X(this,this.e_);this.PC=uE(function(){return new J7(B)}); g.X(this,this.PC);this.vS=uE(function(){return new A7(B)}); g.X(this,this.vS);var d=uE(function(){return new kw(V)}); g.X(this,d);var C=uE(function(){return new Nf(h.vS)}); g.X(this,C);var z=uE(function(){return new t1(e,k,w,h.vS,C,null,null,h.B9,h.Uv)}); g.X(this,z);this.lU=uE(function(){return new mQ(B)}); g.X(this,this.lU);this.o9=uE(function(){return new FQ}); g.X(this,this.o9);this.WS=uE(function(){return new xw(B,N,h.vS)}); g.X(this,this.WS);var p=Ll({WS:this.WS,vS:this.vS,vD:C}),O=p.context,b=p.Y3;this.un=p.un;this.nD=uE(function(){return new zl(B,h.vS,h.BS)}); this.fN=uE(function(){return new hN(B,h.WS,h.vS)}); g.X(this,this.fN);this.rO=uE(function(){return new om(h.fN,B,h.vS)}); g.X(this,this.rO);this.BS=uE(function(){return new Vq(B,K,h.rO,h.WS,h.un,h.vS,b)}); g.X(this,this.BS);this.aG=uE(function(){return new Js(h.vS)}); g.X(this,this.aG);this.e9=new Oo(Uo,gT,function(H,R,q,A){return o9(w.get(),H,R,q,A)},l,k,w,C,this.vS,this.WS); g.X(this,this.e9);this.fD=new Eo(l,z,a,this.vS,G,this.WS,this.fN,this.sZ);g.X(this,this.fD);var c=new TX(B,this.fD,this.fN,this.WS,this.nD);this.Kn=uE(function(){return c}); this.SX=c;this.B9=new gY(l,k,this.Kn,this.nD,this.fN,this.vS,this.BS);g.X(this,this.B9);this.Vd=new b6(l,k,this.Jy,this.Kn,O);g.X(this,this.Vd);this.bJ=new $E(this.vS,l,k,z,this.WS,this.Vd,a);g.X(this,this.bJ);this.iY=uE(function(){return new Nu(d,w,C,h.vS,h.BS,h.fN)}); g.X(this,this.iY);this.ZH=uE(function(){return new dJ}); g.X(this,this.ZH);this.bf=new Sz(G,this.yK,this.vS);g.X(this,this.bf);this.ph=new Rk(G);g.X(this,this.ph);this.gf=new Zr(G);g.X(this,this.gf);this.pR=new $G(G,this.Kn,O);g.X(this,this.pR);this.eS=new Xy(G,this.Jy,this.fN,this.WS,O);g.X(this,this.eS);this.bu=new u6(G);g.X(this,this.bu);this.nE=new QA(G);g.X(this,this.nE);this.dD=new Fy(G);g.X(this,this.dD);this.HC=uE(function(){return new II(B)}); g.X(this,this.HC);this.Wn=new J1(G);g.X(this,this.Wn);this.Uv=new LD(G,this.nD,this.fN,this.BS,this.Kn);g.X(this,this.Uv);this.dc=uE(function(){return new fD}); g.X(this,this.dc);this.No=uE(function(){return new Hk(h.fN)}); g.X(this,this.No);this.Zm=uE(function(){return new oE(h.bJ,l,e)}); g.X(this,this.Zm);this.W9=uE(function(){return new BX(h.vS,h.BS,h.bu,h.rO)}); g.X(this,this.W9);this.Sg=uE(function(){return new iRz(h.yK,h.fN,h.BS,K,h.rO,h.gf,h.dD,h.Lh,h.vS,a)}); g.X(this,this.Sg);this.Dm=uE(function(){return new Kq(G,h.Wn,h.bu,h.BS,h.rO,h.aG,h.e_,h.WS,h.fN,h.Jy,h.sZ,h.PC,h.Lh,h.lU,h.vS,h.HC,O,b)}); g.X(this,this.Dm);this.xK=new lI(G,this.o9,e);g.X(this,this.xK);this.lf={mI:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bJ],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.B9],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.e9],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Vd]]),XZ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.iY],["SLOT_TYPE_FORECASTING",this.ZH],["SLOT_TYPE_IN_PLAYER",this.ZH], ["SLOT_TYPE_PLAYER_BYTES",this.ZH]]),k9:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ph],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ph],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ph],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ph],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ph],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ph],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ph],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ph],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ph], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.ph],["TRIGGER_TYPE_CLOSE_REQUESTED",this.gf],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pR],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.eS],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.eS],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.eS],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.bu],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.pR],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.nE],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.dD],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Wn],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Uv],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Uv],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Uv],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Uv],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Uv]]),uo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dc],["SLOT_TYPE_FORECASTING",this.dc],["SLOT_TYPE_IN_PLAYER",this.dc],["SLOT_TYPE_PLAYER_BYTES",this.No]]), l9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_FORECASTING",this.W9],["SLOT_TYPE_IN_PLAYER",this.Sg],["SLOT_TYPE_PLAYER_BYTES",this.Dm]])};this.listeners=[K.get()];this.BN={bJ:this.bJ,E1:this.vS.get(),lL:this.Lh.get(),XH:this.fN.get(),fD:this.fD,Sy:e.get(),Pd:this.o9.get(),R9:this.bf,gQ:K.get(),Gz:this.WS.get()}}; sdg=function(G,B,a,V,x){g.r.call(this);var h=this,e=uE(function(){return new A1(h.vS)}); g.X(this,e);var w=uE(function(){return new i6(e,h.vS)}); g.X(this,w);var K=uE(function(){return new yA}); g.X(this,K);var l=uE(function(){return new jz(G)}); g.X(this,l);var k=uE(function(){return new Pk(e,w,h.vS)}); g.X(this,k);var N=uE(function(){return new aM}); g.X(this,N);this.yK=uE(function(){return new Nx(B)}); g.X(this,this.yK);this.Lh=uE(function(){return new LF(x)}); g.X(this,this.Lh);this.sZ=uE(function(){return new sH(B)}); g.X(this,this.sZ);this.Jy=uE(function(){return new F5(B)}); g.X(this,this.Jy);this.e_=uE(function(){return new tN(B)}); g.X(this,this.e_);this.PC=uE(function(){return new J7(B)}); g.X(this,this.PC);this.vS=uE(function(){return new A7(B)}); g.X(this,this.vS);var d=uE(function(){return new kw(V)}); g.X(this,d);var C=uE(function(){return new Nf(h.vS)}); g.X(this,C);var z=uE(function(){return new t1(e,k,w,h.vS,C,null,null,null,null)}); g.X(this,z);this.lU=uE(function(){return new mQ(B)}); g.X(this,this.lU);this.WS=uE(function(){return new xw(B,N,h.vS)}); g.X(this,this.WS);var p=Ll({WS:this.WS,vS:this.vS,vD:C}),O=p.context,b=p.Y3;this.un=p.un;this.fN=uE(function(){return new hN(B,h.WS,h.vS)}); g.X(this,this.fN);this.rO=uE(function(){return new om(h.fN,B,h.vS)}); g.X(this,this.rO);this.BS=uE(function(){return new Vq(B,K,h.rO,h.WS,h.un,h.vS,b)}); g.X(this,this.BS);this.aG=uE(function(){return new Js(h.vS)}); g.X(this,this.aG);this.e9=new Oo(Uo,gT,function(H,R,q,A){return o9(w.get(),H,R,q,A)},l,k,w,C,this.vS,this.WS); g.X(this,this.e9);this.fD=new Eo(l,z,a,this.vS,G,this.WS,this.fN,this.sZ);g.X(this,this.fD);var c=new TX(B,this.fD,this.fN,this.WS);this.Kn=uE(function(){return c}); this.SX=c;this.Vd=new b6(l,k,this.Jy,this.Kn,O);g.X(this,this.Vd);this.bJ=new $E(this.vS,l,k,z,this.WS,this.Vd,a);g.X(this,this.bJ);this.iY=uE(function(){return new Nu(d,w,C,h.vS,h.BS,h.fN)}); g.X(this,this.iY);this.ZH=uE(function(){return new dJ}); g.X(this,this.ZH);this.bf=new Sz(G,this.yK,this.vS);g.X(this,this.bf);this.ph=new Rk(G);g.X(this,this.ph);this.pR=new $G(G,this.Kn,O);g.X(this,this.pR);this.eS=new Xy(G,this.Jy,this.fN,this.WS,O);g.X(this,this.eS);this.bu=new u6(G);g.X(this,this.bu);this.nE=new QA(G);g.X(this,this.nE);this.HC=uE(function(){return new II(B)}); g.X(this,this.HC);this.Wn=new J1(G);g.X(this,this.Wn);this.dc=uE(function(){return new fD}); g.X(this,this.dc);this.No=uE(function(){return new Hk(h.fN)}); g.X(this,this.No);this.Zm=uE(function(){return new oE(h.bJ,l,e)}); g.X(this,this.Zm);this.W9=uE(function(){return new BX(h.vS,h.BS,h.bu,h.rO)}); g.X(this,this.W9);this.q_=uE(function(){return new ezA(h.yK,h.fN,h.BS,K,a,h.vS)}); g.X(this,this.q_);this.Dm=uE(function(){return new Kq(G,h.Wn,h.bu,h.BS,h.rO,h.aG,h.e_,h.WS,h.fN,h.Jy,h.sZ,h.PC,h.Lh,h.lU,h.vS,h.HC,O,b)}); g.X(this,this.Dm);this.lf={mI:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bJ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.e9],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Vd]]),XZ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.iY],["SLOT_TYPE_FORECASTING",this.ZH],["SLOT_TYPE_IN_PLAYER",this.ZH],["SLOT_TYPE_PLAYER_BYTES",this.ZH]]),k9:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.ph],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ph],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ph],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ph],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ph],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ph],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ph],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ph],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ph],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pR],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.eS],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.eS],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.bu],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.pR],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.nE],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Wn]]),uo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dc],["SLOT_TYPE_ABOVE_FEED",this.dc],["SLOT_TYPE_FORECASTING",this.dc],["SLOT_TYPE_IN_PLAYER",this.dc],["SLOT_TYPE_PLAYER_BYTES",this.No]]),l9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_FORECASTING",this.W9],["SLOT_TYPE_IN_PLAYER", this.q_],["SLOT_TYPE_PLAYER_BYTES",this.Dm]])};this.listeners=[K.get()];this.BN={bJ:this.bJ,E1:this.vS.get(),lL:this.Lh.get(),XH:this.fN.get(),fD:this.fD,Sy:e.get(),Pd:null,R9:this.bf,gQ:K.get(),Gz:this.WS.get()}}; FAA=function(G,B,a,V,x){g.r.call(this);var h=this,e=uE(function(){return new A1(h.vS)}); g.X(this,e);var w=uE(function(){return new i6(e,h.vS)}); g.X(this,w);var K=uE(function(){return new yA}); g.X(this,K);var l=uE(function(){return new jz(G)}); g.X(this,l);var k=uE(function(){return new Pk(e,w,h.vS)}); g.X(this,k);var N=uE(function(){return new aM}); g.X(this,N);this.SL=uE(function(){return new Qd9(B)}); g.X(this,this.SL);this.yK=uE(function(){return new Nx(B)}); g.X(this,this.yK);this.Lh=uE(function(){return new LF(x)}); g.X(this,this.Lh);this.sZ=uE(function(){return new sH(B)}); g.X(this,this.sZ);this.Jy=uE(function(){return new F5(B)}); g.X(this,this.Jy);this.e_=uE(function(){return new tN(B)}); g.X(this,this.e_);this.PC=uE(function(){return new J7(B)}); g.X(this,this.PC);this.vS=uE(function(){return new A7(B)}); g.X(this,this.vS);var d=uE(function(){return new kw(V)}); g.X(this,d);var C=uE(function(){return new Nf(h.vS)}); g.X(this,C);var z=uE(function(){return new t1(e,k,w,h.vS,C,null,null,null,null)}); g.X(this,z);this.lU=uE(function(){return new mQ(B)}); g.X(this,this.lU);this.WS=uE(function(){return new xw(B,N,h.vS)}); g.X(this,this.WS);var p=Ll({WS:this.WS,vS:this.vS,vD:C}),O=p.context,b=p.Y3;this.un=p.un;this.fN=uE(function(){return new hN(B,h.WS,h.vS)}); g.X(this,this.fN);this.rO=uE(function(){return new om(h.fN,B,h.vS)}); g.X(this,this.rO);this.BS=uE(function(){return new Vq(B,K,h.rO,h.WS,h.un,h.vS,b)}); g.X(this,this.BS);this.aG=uE(function(){return new Js(h.vS)}); g.X(this,this.aG);this.e9=new Oo(SQX,gT,function(H,R,q,A){return BaY(w.get(),H,R,q,A)},l,k,w,C,this.vS,this.WS); g.X(this,this.e9);this.fD=new Eo(l,z,a,this.vS,G,this.WS,this.fN,this.sZ);g.X(this,this.fD);var c=new TX(B,this.fD,this.fN,this.WS);this.Kn=uE(function(){return c}); this.SX=c;this.Vd=new b6(l,k,this.Jy,this.Kn,O);g.X(this,this.Vd);this.bJ=new $E(this.vS,l,k,z,this.WS,this.Vd,a);g.X(this,this.bJ);this.iY=uE(function(){return new Nu(d,w,C,h.vS,h.BS,h.fN)}); g.X(this,this.iY);this.ZH=uE(function(){return new dJ}); g.X(this,this.ZH);this.bf=new Sz(G,this.yK,this.vS);g.X(this,this.bf);this.ph=new Rk(G);g.X(this,this.ph);this.pR=new $G(G,this.Kn,O);g.X(this,this.pR);this.eS=new Xy(G,this.Jy,this.fN,this.WS,O);g.X(this,this.eS);this.bu=new u6(G);g.X(this,this.bu);this.nE=new QA(G);g.X(this,this.nE);this.HC=uE(function(){return new II(B)}); g.X(this,this.HC);this.Wn=new J1(G);g.X(this,this.Wn);this.dc=uE(function(){return new fD}); g.X(this,this.dc);this.No=uE(function(){return new Hk(h.fN)}); g.X(this,this.No);this.Zm=uE(function(){return new oE(h.bJ,l,e)}); g.X(this,this.Zm);this.W9=uE(function(){return new BX(h.vS,h.BS,h.bu,h.rO)}); g.X(this,this.W9);this.Dm=uE(function(){return new Kq(G,h.Wn,h.bu,h.BS,h.rO,h.aG,h.e_,h.WS,h.fN,h.Jy,h.sZ,h.PC,h.Lh,h.lU,h.vS,h.HC,O,b)}); g.X(this,this.Dm);this.Gu=uE(function(){return new or_(h.yK,h.fN,h.BS,K,h.SL,a,h.WS)}); g.X(this,this.Gu);this.lf={mI:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bJ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.e9],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Vd]]),XZ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.iY],["SLOT_TYPE_FORECASTING",this.ZH],["SLOT_TYPE_IN_PLAYER",this.ZH],["SLOT_TYPE_PLAYER_BYTES",this.ZH]]),k9:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.ph],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ph],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ph],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ph],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ph],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ph],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ph],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ph],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ph],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pR],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.eS],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.eS],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.bu],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.pR],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.nE],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Wn]]),uo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dc],["SLOT_TYPE_FORECASTING",this.dc],["SLOT_TYPE_IN_PLAYER",this.dc],["SLOT_TYPE_PLAYER_BYTES",this.No]]),l9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_FORECASTING",this.W9],["SLOT_TYPE_IN_PLAYER",this.Gu],["SLOT_TYPE_PLAYER_BYTES", this.Dm]])};this.listeners=[K.get()];this.BN={bJ:this.bJ,E1:this.vS.get(),lL:this.Lh.get(),XH:this.fN.get(),fD:this.fD,Sy:e.get(),Pd:null,R9:this.bf,gQ:K.get(),Gz:this.WS.get()}}; Jbx=function(G,B,a,V,x){g.r.call(this);var h=this,e=uE(function(){return new A1(h.vS)}); g.X(this,e);var w=uE(function(){return new i6(e,h.vS)}); g.X(this,w);var K=uE(function(){return new yA}); g.X(this,K);var l=uE(function(){return new jz(G)}); g.X(this,l);var k=uE(function(){return new Pk(e,w,h.vS)}); g.X(this,k);var N=uE(function(){return new aM}); g.X(this,N);this.SL=uE(function(){return new Qd9(B)}); g.X(this,this.SL);this.yK=uE(function(){return new Nx(B)}); g.X(this,this.yK);this.Lh=uE(function(){return new LF(x)}); g.X(this,this.Lh);this.sZ=uE(function(){return new sH(B)}); g.X(this,this.sZ);this.Jy=uE(function(){return new F5(B)}); g.X(this,this.Jy);this.e_=uE(function(){return new tN(B)}); g.X(this,this.e_);this.PC=uE(function(){return new J7(B)}); g.X(this,this.PC);this.vS=uE(function(){return new A7(B)}); g.X(this,this.vS);var d=uE(function(){return new kw(V)}); g.X(this,d);var C=uE(function(){return new Nf(h.vS)}); g.X(this,C);this.lU=uE(function(){return new mQ(B)}); g.X(this,this.lU);this.WS=uE(function(){return new xw(B,N,h.vS)}); g.X(this,this.WS);var z=Ll({WS:this.WS,vS:this.vS,vD:C}),p=z.context,O=z.Y3;this.un=z.un;this.nD=uE(function(){return new zl(B,h.vS,h.BS)}); g.X(this,this.nD);this.HC=uE(function(){return new II(B)}); g.X(this,this.HC);this.fN=uE(function(){return new hN(B,h.WS,h.vS)}); g.X(this,this.fN);z=uE(function(){return new t1(e,k,w,h.vS,C,null,h.fN,h.B9,h.Uv,3)}); g.X(this,z);this.aG=uE(function(){return new Js(h.vS)}); this.rO=uE(function(){return new om(h.fN,B,h.vS)}); g.X(this,this.rO);this.BS=uE(function(){return new Vq(B,K,h.rO,h.WS,h.un,h.vS,O)}); g.X(this,this.BS);this.fD=new Eo(l,z,a,this.vS,G,this.WS,this.fN,this.sZ);g.X(this,this.fD);var b=new TX(B,this.fD,this.fN,this.WS,this.nD);this.Kn=uE(function(){return b}); this.SX=b;this.e9=new Oo(Rfy,gT,function(c,H,R,q){return BaY(w.get(),c,H,R,q)},l,k,w,C,this.vS,this.WS); g.X(this,this.e9);this.B9=new gY(l,k,this.Kn,this.nD,this.fN,this.vS,this.BS,this.HC);g.X(this,this.B9);this.Vd=new b6(l,k,this.Jy,this.Kn,p);g.X(this,this.Vd);this.bJ=new $E(this.vS,l,k,z,this.WS,this.Vd,a);g.X(this,this.bJ);this.iY=uE(function(){return new Nu(d,w,C,h.vS,h.BS,h.fN,h.HC)}); g.X(this,this.iY);this.ZH=uE(function(){return new dJ}); g.X(this,this.ZH);this.bf=new Sz(G,this.yK,this.vS);g.X(this,this.bf);this.ph=new Rk(G);g.X(this,this.ph);this.pR=new $G(G,this.Kn,p);g.X(this,this.pR);this.eS=new Xy(G,this.Jy,this.fN,this.WS,p);g.X(this,this.eS);this.mz=new qc(G,this.WS);g.X(this,this.mz);this.Uv=new LD(G,this.nD,this.fN,this.BS,this.Kn);g.X(this,this.Uv);this.bu=new u6(G);g.X(this,this.bu);this.nE=new QA(G);g.X(this,this.nE);this.Wn=new J1(G);g.X(this,this.Wn);this.dc=uE(function(){return new fD}); g.X(this,this.dc);this.No=uE(function(){return new Hk(h.fN)}); g.X(this,this.No);this.Zm=uE(function(){return new oE(h.bJ,l,e)}); g.X(this,this.Zm);this.W9=uE(function(){return new BX(h.vS,h.BS,h.bu,h.rO)}); g.X(this,this.W9);this.Dm=uE(function(){return new wS(G,h.Wn,h.bu,h.WS,h.HC,h.fN,h.BS,N,h.nD,h.rO,h.aG,h.e_,h.Jy,h.sZ,h.PC,h.Lh,h.lU,h.vS,K,p,O)}); g.X(this,this.Dm);this.Sg=uE(function(){return new MIx(h.yK,h.fN,h.BS,K,h.SL,a,h.vS,h.WS)}); g.X(this,this.Sg);this.lf={mI:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bJ],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.B9],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.e9],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Vd]]),XZ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.iY],["SLOT_TYPE_FORECASTING",this.ZH],["SLOT_TYPE_IN_PLAYER",this.ZH],["SLOT_TYPE_PLAYER_BYTES",this.ZH]]),k9:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.bf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ph],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ph],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ph],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ph],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ph],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ph],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ph],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ph],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ph],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pR],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.eS],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.eS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.mz],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.mz],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.bu],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.pR],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.nE],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Wn],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Uv],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.Uv],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Uv],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Uv],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Uv]]),uo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dc],["SLOT_TYPE_FORECASTING",this.dc],["SLOT_TYPE_IN_PLAYER",this.dc],["SLOT_TYPE_PLAYER_BYTES",this.No]]),l9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_FORECASTING",this.W9],["SLOT_TYPE_PLAYER_BYTES",this.Dm],["SLOT_TYPE_IN_PLAYER",this.Sg]])};this.listeners=[K.get()]; this.BN={bJ:this.bJ,E1:this.vS.get(),lL:this.Lh.get(),XH:this.fN.get(),fD:this.fD,Sy:e.get(),Pd:null,R9:this.bf,gQ:K.get(),Gz:this.WS.get()}}; YaB=function(G,B,a,V){function x(){return h.X} g.r.call(this);var h=this;G.U().experiments.Or("html5_dispose_of_manager_before_dependency")?(this.j=Ab9(x,G,B,a,V),this.X=(new QI(this.j)).C(),g.X(this,this.X),g.X(this,this.j)):(this.j=Ab9(x,G,B,a,V),g.X(this,this.j),this.X=(new QI(this.j)).C(),g.X(this,this.X))}; p7=function(G){return G.j.BN}; Ab9=function(G,B,a,V,x){try{var h=B.U();if(g.YF(h))var e=new LAz(G,B,a,V,x);else if(g.Po(h))e=new TDH(G,B,a,V,x);else if(u0(h))e=new sdg(G,B,a,V,x);else if(g.rv(h))e=new FAA(G,B,a,V,x);else if(g.R$(h))e=new Jbx(G,B,a,V,x);else throw new TypeError("Unknown web interface");return e}catch(w){return e=B.U(),kN("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.j.cplatform,interface:e.j.c,IIH:e.j.cver,lIH:e.j.ctheme,MzX:e.j.cplayer,srf:e.playerStyle}),new vc9(G,B,a,V,x)}}; iQB=function(G){Tn.call(this,G)}; P7A=function(G,B,a,V,x){ox.call(this,G,{Z:"div",J:"ytp-ad-timed-pie-countdown-container",D:[{Z:"svg",J:"ytp-ad-timed-pie-countdown",N:{viewBox:"0 0 20 20"},D:[{Z:"circle",J:"ytp-ad-timed-pie-countdown-background",N:{r:"10",cx:"10",cy:"10"}},{Z:"circle",J:"ytp-ad-timed-pie-countdown-inner",N:{r:"5",cx:"10",cy:"10"}},{Z:"circle",J:"ytp-ad-timed-pie-countdown-outer",N:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",B,a,V,x);this.G=this.d1("ytp-ad-timed-pie-countdown-container");this.C=this.d1("ytp-ad-timed-pie-countdown-inner"); this.L=this.d1("ytp-ad-timed-pie-countdown-outer");this.X=Math.ceil(2*Math.PI*5);this.hide()}; ocB=function(G,B,a,V,x,h){Cr.call(this,G,{Z:"div",J:"ytp-ad-action-interstitial",N:{tabindex:"0"},D:[{Z:"div",J:"ytp-ad-action-interstitial-background-container"},{Z:"div",J:"ytp-ad-action-interstitial-slot",D:[{Z:"div",J:"ytp-ad-action-interstitial-instream-info"},{Z:"div",J:"ytp-ad-action-interstitial-card",D:[{Z:"div",J:"ytp-ad-action-interstitial-image-container"},{Z:"div",J:"ytp-ad-action-interstitial-headline-container"},{Z:"div",J:"ytp-ad-action-interstitial-description-container"},{Z:"div", J:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",B,a,V);this.F0=x;this.FW=h;this.navigationEndpoint=this.j=this.skipButton=this.X=this.actionButton=null;this.SJ=this.d1("ytp-ad-action-interstitial-instream-info");this.Qb=this.d1("ytp-ad-action-interstitial-image-container");this.Y=new qs(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,"ytp-ad-action-interstitial-image");g.X(this,this.Y);this.Y.iL(this.Qb);this.Zx=this.d1("ytp-ad-action-interstitial-headline-container"); this.L=new ie(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,"ytp-ad-action-interstitial-headline");g.X(this,this.L);this.L.iL(this.Zx);this.XJ=this.d1("ytp-ad-action-interstitial-description-container");this.C=new ie(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,"ytp-ad-action-interstitial-description");g.X(this,this.C);this.C.iL(this.XJ);this.Vb=this.d1("ytp-ad-action-interstitial-background-container");this.Er=new qs(this.api,this.layoutId,this.interactionLoggingClientData, this.lL,"ytp-ad-action-interstitial-background",!0);g.X(this,this.Er);this.Er.iL(this.Vb);this.MB=this.d1("ytp-ad-action-interstitial-action-button-container");this.slot=this.d1("ytp-ad-action-interstitial-slot");this.DH=this.d1("ytp-ad-action-interstitial-card");this.G=new yG;g.X(this,this.G);this.hide()}; MFx=function(G){var B=g.TF("html5-video-player");B&&g.Km(B,"ytp-ad-display-override",G)}; Vr9=function(G,B,a,V){Cr.call(this,G,{Z:"div",J:"ytp-ad-overlay-slot",D:[{Z:"div",J:"ytp-ad-overlay-container"}]},"invideo-overlay",B,a,V);this.Y=[];this.Vb=this.Zx=this.G=this.MB=this.SJ=null;this.Er=!1;this.L=null;this.XJ=0;G=this.d1("ytp-ad-overlay-container");this.Qb=new eu(G,45E3,6E3,.3,.4);g.X(this,this.Qb);this.C=GgX(this);g.X(this,this.C);this.C.iL(G);this.X=B8Y(this);g.X(this,this.X);this.X.iL(G);this.j=aFK(this);g.X(this,this.j);this.j.iL(G);this.hide()}; GgX=function(G){var B=new g.dI({Z:"div",J:"ytp-ad-text-overlay",D:[{Z:"div",J:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",J:"ytp-ad-overlay-close-container",D:[{Z:"button",J:"ytp-ad-overlay-close-button",D:[vr(xDz)]}]},{Z:"div",J:"ytp-ad-overlay-title",cS:"{{title}}"},{Z:"div",J:"ytp-ad-overlay-desc",cS:"{{description}}"},{Z:"div",bL:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],cS:"{{displayUrl}}"}]});G.K(B.d1("ytp-ad-overlay-title"),"click",function(a){UI(G,B.element,a)}); G.K(B.d1("ytp-ad-overlay-link"),"click",function(a){UI(G,B.element,a)}); G.K(B.d1("ytp-ad-overlay-close-container"),"click",G.WY);B.hide();return B}; B8Y=function(G){var B=new g.dI({Z:"div",bL:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],D:[{Z:"div",J:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",J:"ytp-ad-overlay-close-container",D:[{Z:"button",J:"ytp-ad-overlay-close-button",D:[vr(xDz)]}]},{Z:"div",J:"ytp-ad-overlay-text-image",D:[{Z:"img",N:{src:"{{imageUrl}}"}}]},{Z:"div",J:"ytp-ad-overlay-title",cS:"{{title}}"},{Z:"div",J:"ytp-ad-overlay-desc",cS:"{{description}}"},{Z:"div",bL:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], cS:"{{displayUrl}}"}]});G.K(B.d1("ytp-ad-overlay-title"),"click",function(a){UI(G,B.element,a)}); G.K(B.d1("ytp-ad-overlay-link"),"click",function(a){UI(G,B.element,a)}); G.K(B.d1("ytp-ad-overlay-close-container"),"click",G.WY);G.K(B.d1("ytp-ad-overlay-text-image"),"click",G.Wyb);B.hide();return B}; aFK=function(G){var B=new g.dI({Z:"div",J:"ytp-ad-image-overlay",D:[{Z:"div",J:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",J:"ytp-ad-overlay-close-container",D:[{Z:"button",J:"ytp-ad-overlay-close-button",D:[vr(xDz)]}]},{Z:"div",J:"ytp-ad-overlay-image",D:[{Z:"img",N:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});G.K(B.d1("ytp-ad-overlay-image"),"click",function(a){UI(G,B.element,a)}); G.K(B.d1("ytp-ad-overlay-close-container"),"click",G.WY);B.hide();return B}; hv_=function(G,B){if(B){var a=g.u(B,Sh)||null;a==null?g.RA(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(B=g.TF("video-ads ytp-ad-module")||null,B==null?g.RA(Error("Could not locate the root ads container element to attach the ad info dialog.")):(G.Zx=new g.dI({Z:"div",J:"ytp-ad-overlay-ad-info-dialog-container"}),g.X(G,G.Zx),G.Zx.iL(B),B=new Y9(G.api,G.layoutId,G.interactionLoggingClientData,G.lL,G.Zx.element,!1),g.X(G,B),B.init(eT("ad-info-hover-text-button"),a,G.macros), G.L?(B.iL(G.L,0),B.subscribe("f",G.vWx,G),B.subscribe("e",G.QL,G),G.K(G.L,"click",G.oWf),G.K(g.TF("ytp-ad-button",B.element),"click",function(){var V;if(g.u((V=g.u(a.button,g.ZU))==null?void 0:V.serviceEndpoint,VqX))G.Er=G.api.getPlayerState(1)===2,G.api.pauseVideo();else G.api.onAdUxClicked("ad-info-hover-text-button",G.layoutId)}),G.Vb=B):g.RA(Error("Ad info button container within overlay ad was not present."))))}else g.Zb(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; Ws9=function(G,B){if(evV(G,OI)||G.api.isMinimized())return!1;var a=zn(B.title),V=zn(B.description);if(g.O3(a)||g.O3(V))return!1;G.createServerVe(G.C.element,B.trackingParams||null);G.C.updateValue("title",zn(B.title));G.C.updateValue("description",zn(B.description));G.C.updateValue("displayUrl",zn(B.displayUrl));B.navigationEndpoint&&g.BK(G.Y,B.navigationEndpoint);G.C.show();G.Qb.start();G.logVisibility(G.C.element,!0);G.K(G.C.element,"mouseover",function(){G.XJ++}); return!0}; w0K=function(G,B){if(evV(G,OI)||G.api.isMinimized())return!1;var a=zn(B.title),V=zn(B.description);if(g.O3(a)||g.O3(V))return!1;G.createServerVe(G.X.element,B.trackingParams||null);G.X.updateValue("title",zn(B.title));G.X.updateValue("description",zn(B.description));G.X.updateValue("displayUrl",zn(B.displayUrl));G.X.updateValue("imageUrl",U$B(B.image));B.navigationEndpoint&&g.BK(G.Y,B.navigationEndpoint);G.MB=B.imageNavigationEndpoint||null;G.X.show();G.Qb.start();G.logVisibility(G.X.element,!0); G.K(G.X.element,"mouseover",function(){G.XJ++}); return!0}; KsK=function(G,B){if(G.api.isMinimized())return!1;var a=ONB(B.image),V=a;a.width0?(B=new Rc(G.api,G.j),B.iL(G.playerOverlay), g.X(G,B)):g.RA(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(B)))}}else g.RA(Error("addCommonComponents() needs to be called before starting countdown."))}; UDB=function(G){function B(a){return{toString:function(){return a()}}} G.macros.SURVEY_LOCAL_TIME_EPOCH_S=B(function(){var a=new Date;return(Math.round(a.valueOf()/1E3)+-1*a.getTimezoneOffset()*60).toString()}); G.macros.SURVEY_ELAPSED_MS=B(function(){return(Date.now()-G.C).toString()})}; O8X=function(G,B,a,V,x){yq.call(this,G,B,a,V,"survey-question-multi-select");this.XJ=x;this.noneOfTheAbove=null;this.submitEndpoints=[];this.L=null;this.hide()}; E1b=function(G,B,a){G.noneOfTheAbove=new zvB(G.api,G.layoutId,G.interactionLoggingClientData,G.lL);G.noneOfTheAbove.iL(G.answers);G.noneOfTheAbove.init(eT("survey-none-of-the-above"),B,a)}; b8K=function(G){G.X.forEach(function(B){B.j.toggleButton(!1)}); jNb(G,!0)}; jNb=function(G,B){var a=G.G;G=yFz(G);B=B===void 0?!1:B;a.j&&(G?a.j.hide():a.j.show(),B&&a.j instanceof mJ&&!a.j.G&&NgA(a.j,!1));a.X&&(G?a.X.show():a.X.hide())}; yFz=function(G){return G.X.some(function(B){return B.j.isToggled()})||G.noneOfTheAbove.button.isToggled()}; c3=function(G,B,a,V,x){yq.call(this,G,B,a,V,"survey-question-single-select",function(e){h.api.U().S("supports_multi_step_on_desktop")&&x([e])}); var h=this;this.hide()}; n7=function(G,B,a,V){Cr.call(this,G,{Z:"div",J:"ytp-ad-survey",D:[{Z:"div",J:"ytp-ad-survey-questions"}]},"survey",B,a,V);this.questions=[];this.X=[];this.conditioningRules=[];this.j=0;this.L=this.d1("ytp-ad-survey-questions");this.api.U().S("fix_survey_color_contrast_on_destop")&&this.d1("ytp-ad-survey").classList.add("color-contrast-fix");this.api.U().S("web_enable_speedmaster")&&this.d1("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; fFY=function(G,B){var a=G.X[B],V;(V=G.C)==null||V.dispose();g.u(a,vf)?cFz(G,g.u(a,vf),G.macros):g.u(a,Hf)&&n1z(G,g.u(a,Hf),G.macros);G.j=B}; cFz=function(G,B,a){var V=new c3(G.api,G.layoutId,G.interactionLoggingClientData,G.lL,G.G.bind(G));V.iL(G.L);V.init(eT("survey-question-single-select"),B,a);G.api.U().S("supports_multi_step_on_desktop")?G.C=V:G.questions.push(V);g.X(G,V)}; n1z=function(G,B,a){var V=new O8X(G.api,G.layoutId,G.interactionLoggingClientData,G.lL,G.G.bind(G));V.iL(G.L);V.init(eT("survey-question-multi-select"),B,a);G.api.U().S("supports_multi_step_on_desktop")?G.C=V:G.questions.push(V);g.X(G,V)}; f7=function(G,B,a,V){Cr.call(this,G,{Z:"div",J:"ytp-ad-survey-interstitial",D:[{Z:"div",J:"ytp-ad-survey-interstitial-contents",D:[{Z:"div",J:"ytp-ad-survey-interstitial-logo",D:[{Z:"div",J:"ytp-ad-survey-interstitial-logo-image"}]},{Z:"div",J:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",B,a,V);this.j=this.actionButton=null;this.interstitial=this.d1("ytp-ad-survey-interstitial");this.X=this.d1("ytp-ad-survey-interstitial-contents");this.text=this.d1("ytp-ad-survey-interstitial-text"); this.logoImage=this.d1("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Bm(this,500,!1,300);g.X(this,this.transition)}; H8_=function(G,B){B=B&&Xx(B)||"";if(g.O3(B))g.Zb(Error("Found ThumbnailDetails without valid image URL"));else{var a=G.style;G=G.style.cssText;var V=document.implementation.createHTMLDocument("").createElement("DIV");V.style.cssText=G;G=YKb(V.style);a.cssText=[G,'background-image:url("'+B+'");'].join("")}}; v19=function(G){var B=g.TF("html5-video-player");B&&g.Km(B,"ytp-ad-display-override",G)}; H3=function(G,B,a,V,x,h){h=h===void 0?0:h;ox.call(this,G,{Z:"div",J:"ytp-preview-ad",D:[{Z:"div",J:"ytp-preview-ad__text"}]},"preview-ad",B,a,V,x);var e=this;this.XJ=h;this.X=0;this.G=-1;this.C=this.d1("ytp-preview-ad__text");switch(this.XJ){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Bm(this,400,!1,100,function(){e.hide()}); g.X(this,this.transition);this.hide()}; v3=function(G,B,a,V){Cr.call(this,G,{Z:"img",J:"ytp-ad-avatar"},"ad-avatar",B,a,V);this.hide()}; DDz=function(G){switch(G.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}}; DW=function(G,B,a,V,x,h){x=x===void 0?!1:x;h=h===void 0?!1:h;Cr.call(this,G,{Z:"button",J:"ytp-ad-button-vm"},"ad-button",B,a,V);this.buttonText=this.buttonIcon=null;this.hide();this.j=x;this.X=h}; SD9=function(G,B,a,V,x){ox.call(this,G,{Z:"div",bL:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],D:[{Z:"div",J:"ytp-ad-avatar-lockup-card__avatar_and_text_container",D:[{Z:"div",J:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",B,a,V,x);this.startMilliseconds=0;this.adAvatar=new v3(this.api,this.layoutId,this.interactionLoggingClientData,this.lL);g.X(this,this.adAvatar);VX(this.element,this.adAvatar.element,0);this.headline=new nY(this.api,this.layoutId, this.interactionLoggingClientData,this.lL);g.X(this,this.headline);this.headline.iL(this.d1("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new nY(this.api,this.layoutId,this.interactionLoggingClientData,this.lL);g.X(this,this.description);this.description.iL(this.d1("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new DW(this.api, this.layoutId,this.interactionLoggingClientData,this.lL);g.X(this,this.adButton);this.adButton.iL(this.element);this.hide()}; S0=function(G,B,a,V){Cr.call(this,G,{Z:"button",J:"ytp-skip-ad-button",D:[{Z:"div",J:"ytp-skip-ad-button__text"}]},"skip-button",B,a,V);var x=this;this.X=!1;this.G=this.d1("ytp-skip-ad-button__text");this.transition=new g.Bm(this,500,!1,100,function(){x.hide()}); g.X(this,this.transition);this.j=new eu(this.element,15E3,5E3,.5,.5,!0);g.X(this,this.j);this.hide()}; Rvz=function(G,B,a,V,x){ox.call(this,G,{Z:"div",J:"ytp-skip-ad"},"skip-ad",B,a,V,x);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.C=new S0(this.api,this.layoutId,this.interactionLoggingClientData,this.lL);g.X(this,this.C);this.C.iL(this.element);this.hide()}; RI=function(G,B,a,V){Cr.call(this,G,{Z:"div",J:"ytp-visit-advertiser-link"},"visit-advertiser-link",B,a,V);this.hide();this.api.S("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.S("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; ZW=function(G,B,a,V,x){Cr.call(this,G,{Z:"div",J:"ytp-ad-player-overlay-layout",D:[{Z:"div",J:"ytp-ad-player-overlay-layout__player-card-container"},{Z:"div",J:"ytp-ad-player-overlay-layout__ad-info-container",D:[G.U().S("delhi_modern_web_player")?{Z:"div",J:"ytp-ad-player-overlay-layout__ad-info-container-left"}:null]},{Z:"div",J:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{Z:"div",J:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",B,a,V);this.C= x;this.Qb=this.d1("ytp-ad-player-overlay-layout__player-card-container");this.j=this.d1("ytp-ad-player-overlay-layout__ad-info-container");this.XJ=this.d1("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Zx=this.d1("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");G.U().S("delhi_modern_web_player")&&(this.G=this.d1("ytp-ad-player-overlay-layout__ad-info-container-left"));this.hide()}; Z8H=function(G,B,a,V){Cr.call(this,G,{Z:"div",J:"ytp-ad-grid-card-text",D:[{Z:"div",J:"ytp-ad-grid-card-text__metadata",D:[{Z:"div",J:"ytp-ad-grid-card-text__metadata__headline"},{Z:"div",J:"ytp-ad-grid-card-text__metadata__description",D:[{Z:"div",J:"ytp-ad-grid-card-text__metadata__description__line"},{Z:"div",J:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{Z:"div",J:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",B,a,V);this.headline=new nY(this.api,this.layoutId,this.interactionLoggingClientData, this.lL);g.X(this,this.headline);this.headline.iL(this.d1("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new DW(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,!0);g.X(this,this.moreInfoButton);this.moreInfoButton.iL(this.d1("ytp-ad-grid-card-text__button"))}; rT=function(G,B,a,V){Cr.call(this,G,{Z:"div",J:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",B,a,V);this.j=[]}; $w=function(G,B,a,V,x,h,e){ox.call(this,G,h,e,B,a,V,x);this.playerProgressOffsetMs=0;this.X=!1}; rFV=function(G){var B=g.TF("html5-video-player");B&&g.Km(B,"ytp-ad-display-override",G)}; $DH=function(G,B,a,V,x){$w.call(this,G,B,a,V,x,{Z:"div",J:"ytp-display-underlay-text-grid-cards",D:[{Z:"div",J:"ytp-display-underlay-text-grid-cards__content_container",D:[{Z:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header",D:[{Z:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{Z:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{Z:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {Z:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new rT(this.api,this.layoutId,this.interactionLoggingClientData,this.lL);g.X(this,this.adGridCardCollection);this.adGridCardCollection.iL(this.d1("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new DW(this.api,this.layoutId,this.interactionLoggingClientData,this.lL);g.X(this,this.adButton);this.adButton.iL(this.d1("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.C=this.d1("ytp-display-underlay-text-grid-cards__content_container");this.G=this.d1("ytp-display-underlay-text-grid-cards__content_container__header")}; XL=function(G,B,a,V){Cr.call(this,G,{Z:"div",J:"ytp-ad-details-line"},"ad-details-line",B,a,V);this.j=[];this.hide()}; qx=function(G,B,a,V){Cr.call(this,G,{Z:"div",J:"ytp-image-background",D:[{Z:"img",J:"ytp-image-background-image"}]},"image-background",B,a,V);this.hide()}; X0V=function(G,B,a,V,x){ox.call(this,G,{Z:"svg",J:"ytp-timed-pie-countdown",N:{viewBox:"0 0 20 20"},D:[{Z:"circle",J:"ytp-timed-pie-countdown__background",N:{r:"10",cx:"10",cy:"10"}},{Z:"circle",J:"ytp-timed-pie-countdown__inner",N:{r:"5",cx:"10",cy:"10"}},{Z:"circle",J:"ytp-timed-pie-countdown__outer",N:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",B,a,V,x);this.C=this.d1("ytp-timed-pie-countdown__inner");this.X=Math.ceil(2*Math.PI*5);this.hide()}; uI=function(G,B,a,V){Cr.call(this,G,{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout",N:{tabindex:"0"},D:[{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content",D:[{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",D:[{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",B,a,V);this.X=null;this.G=this.d1("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.C=new yG;g.X(this,this.C);this.hide()}; qD9=function(G){var B=g.TF("html5-video-player");B&&g.Km(B,"ytp-ad-display-override",G)}; uzx=function(G){if(!G.adAvatar||!g.u(G.adAvatar,Qq))return g.RA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!G.headline)return g.RA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!G.adBadge||!g.u(G.adBadge,L7))return g.RA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!G.adButton||!g.u(G.adButton,Tl))return g.RA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!G.adInfoRenderer|| !g.u(G.adInfoRenderer,Sh))return g.RA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;G=G.durationMilliseconds||0;return typeof G!=="number"||G<=0?(g.RA(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+G)),!1):!0}; sI=function(G,B,a){Tn.call(this,G);this.api=G;this.lL=B;this.X={};G=new g.T({Z:"div",bL:["video-ads","ytp-ad-module"]});g.X(this,G);Mp&&g.hi(G.element,"ytp-ads-tiny-mode");this.B=new zs(G.element);g.X(this,this.B);g.SX(this.api,G.element,4);M0(a)&&(a=new g.T({Z:"div",bL:["ytp-ad-underlay"]}),g.X(this,a),this.C=new zs(a.element),g.X(this,this.C),g.SX(this.api,a.element,0));g.X(this,QtK())}; QNy=function(G,B){G=g.cM(G.X,B.id,null);G==null&&g.Zb(Error("Component not found for element id: "+B.id));return G||null}; Lsc=function(G){g.go.call(this,G);var B=this;this.X=null;this.created=!1;this.C=G.U().S("h5_use_refactored_get_ad_break")?new rzA(this.player):new QV(this.player);this.G=function(){if(B.X!=null)return B.X;var V=new T9A({R9:p7(B.j).R9,Gz:p7(B.j).Gz,T:B.player,E1:p7(B.j).E1,BS:B.j.j.BS,gQ:p7(B.j).gQ,PC:B.j.j.PC});B.X=V.Gf;return B.X}; this.j=new YaB(this.player,this,this.C,this.G);g.X(this,this.j);var a=G.U();!bE(a)||g.R$(a)||u0(a)||(g.X(this,new sI(G,p7(this.j).lL,p7(this.j).E1)),g.X(this,new iQB(G)))}; T8c=function(G){G.created!==G.loaded&&kN("Created and loaded are out of sync")}; JFz=function(G){g.go.prototype.load.call(G);var B=p7(G.j).E1;try{G.player.getRootNode().classList.add("ad-created")}catch(K){kN(K instanceof Error?K:String(K))}var a=G.player.getVideoData(1),V=a&&a.videoId||"",x=a&&a.getPlayerResponse()||{},h=(!G.player.U().experiments.Or("debug_ignore_ad_placements")&&x&&x.adPlacements||[]).map(function(K){return K.adPlacementRenderer}),e=((x==null?void 0:x.adSlots)||[]).map(function(K){return g.u(K,XK)}); x=x.playerConfig&&x.playerConfig.daiConfig&&x.playerConfig.daiConfig.enableDai||!1;a&&a.SE();h=sNz(h,e,B,p7(G.j).Sy);e=a&&a.clientPlaybackNonce||"";a=a&&a.o$||!1;if(EB(B,!0)&&a){var w;B={};(w=G.player.getVideoData())==null||w.FJ("p_cpb",(B.cc=e,B))}w=1E3*G.player.getDuration(1);Fsc(G);G.j.j.SX.P0(e,w,a,h.nY,h.kB,h.nY,x,V)}; Fsc=function(G){var B,a;if(a=(B=G.player.getVideoData(1))==null||!B.o$)B=G.player.U(),a=bE(B)&&!g.jQ(B)&&B.playerStyle==="desktop-polymer";a&&(G=G.player.getInternalApi(),G.addEventListener("updateKevlarOrC3Companion",I1g),G.addEventListener("updateEngagementPanelAction",gIB),G.addEventListener("changeEngagementPanelVisibility",pnx),window.addEventListener("yt-navigate-start",Oix))}; FL=function(G,B){B===G.wL&&(G.wL=void 0)}; AFz=function(G){var B=p7(G.j).fD,a=B.G().cH("SLOT_TYPE_PLAYER_BYTES",1);B=t5(B.WS.get(),1).clientPlaybackNonce;var V=!1;a=g.m(a);for(var x=a.next();!x.done;x=a.next()){x=x.value;var h=x.slotType==="SLOT_TYPE_PLAYER_BYTES"&&x.slotEntryTrigger instanceof Ew?x.slotEntryTrigger.OJ:void 0;h&&h===B&&(V&&kN("More than 1 preroll playerBytes slot detected",x),V=!0)}V||e0(p7(G.j).XH)}; YDz=function(G){if(YW(p7(G.j).E1))return!0;var B="";G=g.m(p7(G.j).gQ.sS.keys());for(var a=G.next();!a.done;a=G.next()){a=a.value;if(a.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a.xf==="core")return!0;B+=a.slotType+" "}Math.random()<.01&&kN("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:B});return!1}; i8B=function(G){G=g.m(p7(G.j).gQ.sS.values());for(var B=G.next();!B.done;B=G.next())if(B.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; Dvg=function(G,B,a,V,x,h){a=a===void 0?[]:a;V=V===void 0?"":V;x=x===void 0?"":x;var e=p7(G.j).E1,w=G.player.getVideoData(1);w&&w.getPlayerResponse();w&&w.SE();a=sNz(B,a,e,p7(G.j).Sy);rrz(p7(G.j).bJ,V,a.nY,a.kB,B,x,h)}; sNz=function(G,B,a,V){B={nY:[],kB:B};G=g.m(G);for(var x=G.next();!x.done;x=G.next())if((x=x.value)&&x.renderer!=null){var h=x.renderer;if(!a.T.U().S("html5_enable_vod_lasr_with_notify_pacf")){var e=void 0,w=void 0,K=void 0,l=void 0,k=V;g.u((l=h.sandwichedLinearAdRenderer)==null?void 0:l.adVideoStart,zb)?(e=g.u((K=h.sandwichedLinearAdRenderer)==null?void 0:K.adVideoStart,zb),e=PWH(e,k),g.uY(h.sandwichedLinearAdRenderer.adVideoStart,zb,e)):g.u((w=h.linearAdSequenceRenderer)==null?void 0:w.adStart,zb)&& (K=g.u((e=h.linearAdSequenceRenderer)==null?void 0:e.adStart,zb),e=PWH(K,k),g.uY(h.linearAdSequenceRenderer.adStart,zb,e))}B.nY.push(x)}return B}; g.JN=function(G){if(typeof DOMParser!="undefined")return Fd(new DOMParser,TbY(G),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.AN=function(G){g.r.call(this);this.callback=G;this.j=new pm(0,0,.4,0,.2,1,1,1);this.delay=new g.F7(this.next,window,this);g.X(this,this.delay)}; g.PnH=function(G){var B=G.U();return B.w7&&!B.C&&g.co(B)?G.isEmbedsShortsMode()?(G=G.xJ(),Math.min(G.width,G.height)>=315):!G.Rm():!1}; g.Yw=function(G){g.T.call(this,{Z:"div",J:"ytp-more-videos-view",N:{tabIndex:"-1"}});var B=this;this.api=G;this.X=!0;this.C=new g.Zh(this);this.j=[];this.suggestionData=[];this.columns=this.containerWidth=this.V=this.G=this.scrollPosition=0;this.title=new g.T({Z:"h2",J:"ytp-related-title",cS:"{{title}}"});this.previous=new g.T({Z:"button",bL:["ytp-button","ytp-previous"],N:{"aria-label":"Mostrar videos sugeridos anteriores"},D:[g.gI()]});this.W=new g.AN(function(a){B.suggestions.element.scrollLeft= -a}); this.next=new g.T({Z:"button",bL:["ytp-button","ytp-next"],N:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},D:[g.pr()]});g.X(this,this.C);this.L=G.U().G;g.X(this,this.title);this.title.iL(this.element);this.suggestions=new g.T({Z:"div",J:"ytp-suggestions"});g.X(this,this.suggestions);this.suggestions.iL(this.element);g.X(this,this.previous);this.previous.iL(this.element);this.previous.listen("click",this.yZ,this);g.X(this,this.W);o1b(this);g.X(this,this.next);this.next.iL(this.element);this.next.listen("click", this.Cb,this);this.C.K(this.api,"appresize",this.Df);this.C.K(this.api,"fullscreentoggled",this.hE);this.C.K(this.api,"videodatachange",this.onVideoDataChange);this.Df(this.api.g1().getPlayerSize());this.onVideoDataChange()}; o1b=function(G){for(var B={NT:0};B.NT<16;B={NT:B.NT},++B.NT){var a=new g.T({Z:"a",J:"ytp-suggestion-link",N:{href:"{{link}}",target:G.api.U().Y,"aria-label":"{{aria_label}}"},D:[{Z:"div",J:"ytp-suggestion-image"},{Z:"div",J:"ytp-suggestion-overlay",N:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},D:[{Z:"div",J:"ytp-suggestion-title",cS:"{{title}}"},{Z:"div",J:"ytp-suggestion-author",cS:"{{author_and_views}}"},{Z:"div",N:{"data-is-live":"{{is_live}}"},J:"ytp-suggestion-duration", cS:"{{duration}}"}]}]});g.X(G,a);var V=a.d1("ytp-suggestion-link");g.K4(V,"transitionDelay",B.NT/20+"s");G.C.K(V,"click",function(x){return function(h){var e=x.NT;if(G.X){var w=G.suggestionData[e],K=w.sessionData;G.L&&G.api.S("web_player_log_click_before_generating_ve_conversion_params")?(G.api.logClick(G.j[e].element),e=w.O1(),w={},g.HE(G.api,w),e=g.LJ(e,w),g.ej(e,G.api,h)):g.hY(h,G.api,G.L,K||void 0)&&G.api.a9(w.videoId,K,w.playlistId)}else h.preventDefault(),document.activeElement.blur()}}(B)); a.iL(G.suggestions.element);G.j.push(a);G.api.createServerVe(a.element,a)}}; MrY=function(G){if(G.api.U().S("web_player_log_click_before_generating_ve_conversion_params"))for(var B=Math.floor(-G.scrollPosition/(G.G+8)),a=Math.min(B+G.columns,G.suggestionData.length)-1;B<=a;B++)G.api.logVisibility(G.j[B].element,!0)}; g.iI=function(G){var B=G.api.DB()?32:16;B=G.V/2+B;G.next.element.style.bottom=B+"px";G.previous.element.style.bottom=B+"px";B=G.scrollPosition;var a=G.containerWidth-G.suggestionData.length*(G.G+8);g.Km(G.element,"ytp-scroll-min",B>=0);g.Km(G.element,"ytp-scroll-max",B<=a)}; B_2=function(G){for(var B=G.suggestionData.length,a=0;a>>0)+"_",x=0;return B}); NY("Symbol.iterator",function(G){if(G)return G;G=Symbol("Symbol.iterator");for(var B="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),a=0;a=h}}); NY("String.prototype.endsWith",function(G){return G?G:function(B,a){var V=DH(this,B,"endsWith");B+="";a===void 0&&(a=V.length);a=Math.max(0,Math.min(a|0,V.length));for(var x=B.length;x>0&&a>0;)if(V[--a]!=B[--x])return!1;return x<=0}}); NY("Array.prototype.entries",function(G){return G?G:function(){return SB(this,function(B,a){return[B,a]})}}); NY("Math.imul",function(G){return G?G:function(B,a){B=Number(B);a=Number(a);var V=B&65535,x=a&65535;return V*x+((B>>>16&65535)*x+V*(a>>>16&65535)<<16>>>0)|0}}); NY("Math.trunc",function(G){return G?G:function(B){B=Number(B);if(isNaN(B)||B===Infinity||B===-Infinity||B===0)return B;var a=Math.floor(Math.abs(B));return B<0?-a:a}}); NY("Math.clz32",function(G){return G?G:function(B){B=Number(B)>>>0;if(B===0)return 32;var a=0;(B&4294901760)===0&&(B<<=16,a+=16);(B&4278190080)===0&&(B<<=8,a+=8);(B&4026531840)===0&&(B<<=4,a+=4);(B&3221225472)===0&&(B<<=2,a+=2);(B&2147483648)===0&&a++;return a}}); NY("Math.log10",function(G){return G?G:function(B){return Math.log(B)/Math.LN10}}); NY("Number.isNaN",function(G){return G?G:function(B){return typeof B==="number"&&isNaN(B)}}); NY("Array.prototype.keys",function(G){return G?G:function(){return SB(this,function(B){return B})}}); NY("Array.prototype.values",function(G){return G?G:function(){return SB(this,function(B,a){return a})}}); NY("Array.prototype.fill",function(G){return G?G:function(B,a,V){var x=this.length||0;a<0&&(a=Math.max(0,x+a));if(V==null||V>x)V=x;V=Number(V);V<0&&(V=Math.max(0,x+V));for(a=Number(a||0);a1342177279)throw new RangeError("Invalid count value");B|=0;for(var V="";B;)if(B&1&&(V+=a),B>>>=1)a+=a;return V}}); NY("Promise.prototype.finally",function(G){return G?G:function(B){return this.then(function(a){return Promise.resolve(B()).then(function(){return a})},function(a){return Promise.resolve(B()).then(function(){throw a; })})}}); NY("String.prototype.padStart",function(G){return G?G:function(B,a){var V=DH(this,null,"padStart");B-=V.length;a=a!==void 0?String(a):" ";return(B>0&&a?a.repeat(Math.ceil(B/a.length)).substring(0,B):"")+V}}); NY("Array.prototype.findIndex",function(G){return G?G:function(B,a){return CxX(this,B,a).nP}}); NY("Math.sign",function(G){return G?G:function(B){B=Number(B);return B===0||isNaN(B)?B:B>0?1:-1}}); NY("WeakSet",function(G){function B(a){this.j=new WeakMap;if(a){a=g.m(a);for(var V;!(V=a.next()).done;)this.add(V.value)}} if(function(){if(!G||!Object.seal)return!1;try{var a=Object.seal({}),V=Object.seal({}),x=new G([a]);if(!x.has(a)||x.has(V))return!1;x.delete(a);x.add(V);return!x.has(a)&&x.has(V)}catch(h){return!1}}())return G; B.prototype.add=function(a){this.j.set(a,!0);return this}; B.prototype.has=function(a){return this.j.has(a)}; B.prototype.delete=function(a){return this.j.delete(a)}; return B}); NY("Array.prototype.copyWithin",function(G){function B(a){a=Number(a);return a===Infinity||a===-Infinity?a:a|0} return G?G:function(a,V,x){var h=this.length;a=B(a);V=B(V);x=x===void 0?h:B(x);a=a<0?Math.max(h+a,0):Math.min(a,h);V=V<0?Math.max(h+V,0):Math.min(V,h);x=x<0?Math.max(h+x,0):Math.min(x,h);if(aV;)--x in this?this[--a]=this[x]:delete this[--a];return this}}); NY("Int8Array.prototype.copyWithin",ZH);NY("Uint8Array.prototype.copyWithin",ZH);NY("Uint8ClampedArray.prototype.copyWithin",ZH);NY("Int16Array.prototype.copyWithin",ZH);NY("Uint16Array.prototype.copyWithin",ZH);NY("Int32Array.prototype.copyWithin",ZH);NY("Uint32Array.prototype.copyWithin",ZH);NY("Float32Array.prototype.copyWithin",ZH);NY("Float64Array.prototype.copyWithin",ZH);NY("Array.prototype.at",function(G){return G?G:r_}); NY("Int8Array.prototype.at",$B);NY("Uint8Array.prototype.at",$B);NY("Uint8ClampedArray.prototype.at",$B);NY("Int16Array.prototype.at",$B);NY("Uint16Array.prototype.at",$B);NY("Int32Array.prototype.at",$B);NY("Uint32Array.prototype.at",$B);NY("Float32Array.prototype.at",$B);NY("Float64Array.prototype.at",$B);NY("String.prototype.at",function(G){return G?G:r_}); NY("Array.prototype.findLastIndex",function(G){return G?G:function(B,a){return zXc(this,B,a).nP}}); NY("Int8Array.prototype.findLastIndex",Xc);NY("Uint8Array.prototype.findLastIndex",Xc);NY("Uint8ClampedArray.prototype.findLastIndex",Xc);NY("Int16Array.prototype.findLastIndex",Xc);NY("Uint16Array.prototype.findLastIndex",Xc);NY("Int32Array.prototype.findLastIndex",Xc);NY("Uint32Array.prototype.findLastIndex",Xc);NY("Float32Array.prototype.findLastIndex",Xc);NY("Float64Array.prototype.findLastIndex",Xc);NY("Number.parseInt",function(G){return G||parseInt});var YK,YB,tB_;YK=YK||{};g.qY=this||self;YB="closure_uid_"+(Math.random()*1E9>>>0);tB_=0;g.t(a2,Error);g.r.prototype.lX=!1;g.r.prototype.TH=function(){return this.lX}; g.r.prototype.dispose=function(){this.lX||(this.lX=!0,this.yb())}; g.r.prototype[Symbol.dispose]=function(){this.dispose()}; g.r.prototype.addOnDisposeCallback=function(G,B){this.lX?B!==void 0?G.call(B):G():(this.Gn||(this.Gn=[]),B&&(G=G.bind(B)),this.Gn.push(G))}; g.r.prototype.yb=function(){if(this.Gn)for(;this.Gn.length;)this.Gn.shift()()};var jyK;g.t(la,g.r);la.prototype.share=function(){if(this.TH())throw Error("E:AD");this.G++;return this}; la.prototype.dispose=function(){--this.G||g.r.prototype.dispose.call(this)}; jyK=Symbol.dispose;bVY.prototype.X2=function(G,B){this.j.X2("/client_streamz/bg/frs",G,B)}; ygA.prototype.X2=function(G,B,a,V,x,h){this.j.X2("/client_streamz/bg/wrl",G,B,a,V,x,h)}; cgc.prototype.j=function(G,B){this.X.f1("/client_streamz/bg/ec",G,B)}; nBy.prototype.X2=function(G,B,a,V){this.j.X2("/client_streamz/bg/el",G,B,a,V)}; fHK.prototype.j=function(G,B,a){this.X.f1("/client_streamz/bg/cec",G,B,a)}; HVx.prototype.j=function(G,B,a){this.X.f1("/client_streamz/bg/po/csc",G,B,a)}; vBB.prototype.j=function(G,B,a){this.X.f1("/client_streamz/bg/po/ctav",G,B,a)}; DY_.prototype.j=function(G,B,a){this.X.f1("/client_streamz/bg/po/cwsc",G,B,a)};g.BW(z$,Error);z$.prototype.name="CustomError";var Vo9;var So=void 0,Dv,Hdx=typeof TextDecoder!=="undefined",$Yb,rgB=typeof String.prototype.isWellFormed==="function",ZVg=typeof TextEncoder!=="undefined";var ba=String.prototype.trim?function(G){return G.trim()}:function(G){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(G)[1]},H2_=/&/g,veY=//g,SEA=/"/g,RYA=/'/g,Z2A=/\x00/g,fJB=/[\x00&<>"']/;var wzl=TK(1,!0),fs=TK(610401301,!1);TK(899588437,!1);var K9l=TK(725719775,!1),lHh=TK(513659523,!1);TK(651175828,!1);TK(722764542,!1);TK(2147483644,!1);TK(2147483645,!1);TK(2147483646,wzl);TK(2147483647,!0);var HW=!!g.LV("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var vW,kKa=g.qY.navigator;vW=kKa?kKa.userAgentData||null:null;var oB_,c1,bL;oB_=Array.prototype.indexOf?function(G,B){return Array.prototype.indexOf.call(G,B,void 0)}:function(G,B){if(typeof G==="string")return typeof B!=="string"||B.length!=1?-1:G.indexOf(B,0); for(var a=0;a=0;a--)if(a in G&&G[a]===B)return a;return-1}; g.kV=Array.prototype.forEach?function(G,B,a){Array.prototype.forEach.call(G,B,a)}:function(G,B,a){for(var V=G.length,x=typeof G==="string"?G.split(""):G,h=0;hparseFloat(mY3)){tBl=String(P3);break a}}tBl=mY3}var l8V=tBl,wWb={};var Y4,im;g.XB=rl();Y4=Qk()||Sf("iPod");im=Sf("iPad");g.b0=sy_();g.vX=$C();g.It=q9()&&!Ls();var Nlc={},pd=null,d9V=ka||g.Yj||typeof g.qY.btoa=="function";var Osg=typeof Uint8Array!=="undefined",tfY=!g.di&&typeof btoa==="function",pWX=/[-_.]/g,I8b={"-":"+",_:"/",".":"="},E7={};O7.prototype.isEmpty=function(){return this.j==null}; O7.prototype.sizeBytes=function(){var G=bk(this);return G?G.length:0}; var j2z;var yJ9=void 0;var HK=typeof Symbol==="function"&&typeof Symbol()==="symbol",pzh=fd("jas",void 0,!0),a6=fd(void 0,"1oa"),Ld=fd(void 0,Symbol()),t$K=fd(void 0,"0actk"),p2=fd(void 0,"8utk");Math.max.apply(Math,g.U(Object.values({F8J:1,jeL:2,mPf:4,Vcx:8,PCf:16,ltH:32,X9J:64,s9n:128,G2x:256,d$d:512,N_J:1024,vvX:2048,m$d:4096,ZEx:8192})));var vK=HK?pzh:"ysL",nCA={ysL:{value:0,configurable:!0,writable:!0,enumerable:!1}},cJz=Object.defineProperties;var j_={},Fn,UYh=[];S$(UYh,55);Fn=Object.freeze(UYh);var pK_=Object.freeze({});var S3H=Tv(function(G){return typeof G==="number"}),D9A=Tv(function(G){return typeof G==="string"}),RCB=Tv(function(G){return typeof G==="boolean"}),Wp=Tv(function(G){return G!=null&&typeof G==="object"&&typeof G.then==="function"}),ek=Tv(function(G){return!!G&&(typeof G==="object"||typeof G==="function")});var s7=typeof g.qY.BigInt==="function"&&typeof g.qY.BigInt(0)==="bigint";var g3=Tv(function(G){return s7?G>=OVa&&G<=EB2:G[0]==="-"?Zs_(G,jy$):Zs_(G,bV9)}),jy$=Number.MIN_SAFE_INTEGER.toString(),OVa=s7?BigInt(Number.MIN_SAFE_INTEGER):void 0,bV9=Number.MAX_SAFE_INTEGER.toString(),EB2=s7?BigInt(Number.MAX_SAFE_INTEGER):void 0;var yOz=typeof Uint8Array.prototype.slice==="function",AO=0,YV=0,B3x;var N2=typeof BigInt==="function"?BigInt.asIntN:void 0,isz=typeof BigInt==="function"?BigInt.asUintN:void 0,tD=Number.isSafeInteger,e_=Number.isFinite,zM=Math.trunc,uhc=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var cq;var f2,dU_;g.W=j5Y.prototype;g.W.init=function(G,B,a,V){V=V===void 0?{}:V;this.vQ=V.vQ===void 0?!1:V.vQ;G&&(G=g4(G),this.X=G.buffer,this.B=G.Es,this.G=B||0,this.C=a!==void 0?this.G+a:this.X.length,this.j=this.G)}; g.W.free=function(){this.clear();n0.length<100&&n0.push(this)}; g.W.clear=function(){this.X=null;this.B=!1;this.j=this.C=this.G=0;this.vQ=!1}; g.W.reset=function(){this.j=this.G}; g.W.k_=function(){var G=this.L;G||(G=this.X,G=this.L=new DataView(G.buffer,G.byteOffset,G.byteLength));return G}; var n0=[];f0.prototype.free=function(){this.j.clear();this.X=this.G=-1;oI.length<100&&oI.push(this)}; f0.prototype.reset=function(){this.j.reset();this.C=this.j.j;this.X=this.G=-1}; var oI=[];g.W=Zv.prototype;g.W.toJSON=function(){return n2(this)}; g.W.Ft=function(G){return JSON.stringify(n2(this,G))}; g.W.clone=function(){var G=this,B=G.X5;G=new G.constructor(yW(B,B[vK]|0,S_,!0,!0));R5(G.X5,2);return G}; g.W.Es=function(){return!!((this.X5[vK]|0)&2)}; g.W.Yd=j_;g.W.toString=function(){return this.X5.toString()};var S7b,Zd_;Xg.prototype.length=function(){return this.j.length}; Xg.prototype.end=function(){var G=this.j;this.j=[];return G};var Jk=Fg(),yg3=Fg(),cgh=Fg(),nB2=Fg(),fH$=Fg(),HVa=Fg(),vBC=Fg(),DYl=Fg();var Fdz=Yn(function(G,B,a,V,x){if(G.X!==2)return!1;vY(G,VS(B,V,a),x);return!0},s5B),JOA=Yn(function(G,B,a,V,x){if(G.X!==2)return!1; vY(G,VS(B,V,a),x);return!0},s5B),xx=Symbol(),GN=Symbol(),Y7Y=Symbol(),oVB=Symbol(),iK,PY;var SA8=Wb(function(G,B,a){if(G.X!==1)return!1;KK(B,a,yS(G.j));return!0},lR,vBC),RXl=Wb(function(G,B,a){if(G.X!==1)return!1; G=yS(G.j);KK(B,a,G===0?void 0:G);return!0},lR,vBC),ZVJ=Wb(function(G,B,a,V){if(G.X!==1)return!1; Gz(B,a,V,yS(G.j));return!0},lR,vBC),rgf=Wb(function(G,B,a){if(G.X!==0)return!1; KK(B,a,Ol(G.j));return!0},kx,fH$),$Yk=Wb(function(G,B,a){if(G.X!==0)return!1; G=Ol(G.j);KK(B,a,G===0?void 0:G);return!0},kx,fH$),Xzh=Wb(function(G,B,a,V){if(G.X!==0)return!1; Gz(B,a,V,Ol(G.j));return!0},kx,fH$),qAs=Wb(function(G,B,a){if(G.X!==0)return!1; KK(B,a,El(G.j));return!0},N8,nB2),uc2=Wb(function(G,B,a){if(G.X!==0)return!1; G=El(G.j);KK(B,a,G===0?void 0:G);return!0},N8,nB2),Qyf=Wb(function(G,B,a,V){if(G.X!==0)return!1; Gz(B,a,V,El(G.j));return!0},N8,nB2),L9a=Wb(function(G,B,a){if(G.X!==1)return!1; KK(B,a,bK(G.j));return!0},function(G,B,a){Ldx(G,a,Pax(B))},HVa),T_2=wy(function(G,B,a){if(G.X!==1&&G.X!==2)return!1; B=Ye(B,B[vK]|0,a,!1);if(G.X==2)for(a=El(G.j)>>>0,a=G.j.j+a;G.j.j>>0);return!0},function(G,B,a){B=lO(B); B!=null&&B!=null&&(Tz(G,a,0),uK(G.j,B))},Fg()),Px7=Wb(function(G,B,a){if(G.X!==0)return!1; KK(B,a,El(G.j));return!0},function(G,B,a){B=K2(B); B!=null&&(B=parseInt(B,10),Tz(G,a,0),$UX(G.j,B))},Fg());eYY.prototype.register=function(){zv(this)};g.t(wqx,Zv);g.t(CK,Zv);var gy=[1,2,3];var oBl=[0,gy,Ag2,Qyf,F9f];var MB3=[0,Gw,[0,SA8,rgf]];g.t(zN,Zv);var In=[1,2,3];var G$k=[0,In,Xzh,ZVJ,aB,MB3];g.t(tE,Zv);var Bl8=[0,Gw,oBl,G$k];var a8C=[0,[1,2,3],aB,[0,Mx,-1,syl],aB,[0,Mx,-1,qAs,syl],aB,[0,Mx]];g.t(ma,Zv);ma.prototype.Ho=function(){var G=sE(this,3,OE,3,!0);Qj(G);return G[void 0]};ma.prototype.j=Wt_([0,Mx,a8C,Jg3,Gw,Bl8,L9a,T_2]);g.t(lJB,Zv);var gec=globalThis.trustedTypes,pK;OZ.prototype.toString=function(){return this.j+""};bR.prototype.toString=function(){return this.j}; var O2V=new bR("about:invalid#zClosurez");var Uxb=nK("tel"),gwB=nK("sms"),U2Y=[nK("data"),nK("http"),nK("https"),nK("mailto"),nK("ftp"),new cb(function(G){return/^[^:]*([/?#]|$)/.test(G)})],Eeg=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Dj.prototype.toString=function(){return this.j+""};$x.prototype.toString=function(){return this.j+""};Qg.prototype.toString=function(){return this.j};var TN={};g.VfJ=String.prototype.repeat?function(G,B){return G.repeat(B)}:function(G,B){return Array(B+1).join(G)};g.W=M8.prototype;g.W.isEnabled=function(){if(!g.qY.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{YH:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.W.set=function(G,B,a){var V=!1;if(typeof a==="object"){var x=a.e9N;V=a.secure||!1;var h=a.domain||void 0;var e=a.path||void 0;var w=a.YH}if(/[;=\s]/.test(G))throw Error('Invalid cookie name "'+G+'"');if(/[;\r\n]/.test(B))throw Error('Invalid cookie value "'+B+'"');w===void 0&&(w=-1);a=h?";domain="+h:"";e=e?";path="+e:"";V=V?";secure":"";w=w<0?"":w==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+w*1E3)).toUTCString();this.j.cookie=G+"="+B+a+e+w+V+(x!=null?";samesite="+ x:"")}; g.W.get=function(G,B){for(var a=G+"=",V=(this.j.cookie||"").split(";"),x=0,h;x=0;B--)this.remove(G[B])}; var Rh=new M8(typeof document=="undefined"?null:document);BM.prototype.compress=function(G){var B,a,V,x;return g.v(function(h){switch(h.j){case 1:return B=new CompressionStream("gzip"),a=(new Response(B.readable)).arrayBuffer(),V=B.writable.getWriter(),g.f(h,V.write((new TextEncoder).encode(G)),2);case 2:return g.f(h,V.close(),3);case 3:return x=Uint8Array,g.f(h,a,4);case 4:return h.return(new x(h.X))}})}; BM.prototype.isSupported=function(G){return G<1024?!1:typeof CompressionStream!=="undefined"};g.t(al,Zv);Vw.prototype.setInterval=function(G){this.intervalMs=G;this.Pn&&this.enabled?(this.stop(),this.start()):this.Pn&&this.stop()}; Vw.prototype.start=function(){var G=this;this.enabled=!0;this.Pn||(this.Pn=setTimeout(function(){G.tick()},this.intervalMs),this.X=this.j())}; Vw.prototype.stop=function(){this.enabled=!1;this.Pn&&(clearTimeout(this.Pn),this.Pn=void 0)}; Vw.prototype.tick=function(){var G=this;if(this.enabled){var B=Math.max(this.j()-this.X,0);B0?a:void 0));a=Xn(a,4,w3(x>0?x:void 0));a=Xn(a,5,w3(h>0?h:void 0));x=a.X5;h=x[vK]|0;a=h&2?a:new a.constructor(yW(x,h,S_,!0,!0));eo(e,Ka,10,a)}e=this.j.clone();a=Date.now().toString();e=Xn(e,4,IU(a));G=WY(e,mE,3,G.slice());V&&(e=new xj,V=Xn(e,13, w3(V)),e=new h$,V=eo(e,xj,2,V),e=new tw,V=eo(e,h$,1,V),V=mn(V,2,9),eo(G,tw,18,V));B&&C0(G,14,B);return G};var Z0A=function(){if(!g.qY.addEventListener||!Object.defineProperty)return!1;var G=!1,B=Object.defineProperty({},"passive",{get:function(){G=!0}}); try{var a=function(){}; g.qY.addEventListener("test",a,B);g.qY.removeEventListener("test",a,B)}catch(V){}return G}();var smx=Ivc("AnimationEnd"),lp=Ivc("TransitionEnd");g.Oz.prototype.X=0;g.Oz.prototype.reset=function(){this.j=this.C=this.G;this.X=0}; g.Oz.prototype.getValue=function(){return this.C};g.t(gnz,Zv);var x9k=dy(gnz);g.t(hYz,Zv);var xT=new eYY;g.t(bf,g.r);g.W=bf.prototype;g.W.yb=function(){this.Q8();this.X.stop();this.Zx.stop();g.r.prototype.yb.call(this)}; g.W.dispatch=function(G){if(G instanceof mE)this.log(G);else try{var B=new mE,a=G.Ft();var V=zz(B,8,a);this.log(V)}catch(x){}}; g.W.log=function(G){if(this.LN){G=G.clone();var B=this.qB++;G=C0(G,21,B);this.componentId&&zz(G,26,this.componentId);B=G;if(UUK(B)==null){var a=Date.now();a=Number.isFinite(a)?a.toString():"0";Xn(B,1,IU(a))}AJg(r3(B,15))!=null||C0(B,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(a=this.experimentIds.clone(),eo(B,al,16,a));B=this.j.length-1E3+1;B>0&&(this.j.splice(0,B),this.G+=B);this.j.push(G);this.GG||this.X.enabled||this.X.start()}}; g.W.flush=function(G,B){var a=this;if(this.j.length===0)G&&G();else if(this.GH&&this.Y)this.C.X=3,j6x(this);else{var V=Date.now();if(this.SJ>V&&this.HS0&&(a.HS=Date.now(),a.SJ=a.HS+p);d=xT.j?xT.X(d,xT.j,175237375):xT.X(d,175237375,null);if(d=d===null?void 0:d)d=ef(d,1,-1),d!==-1&&(a.B=new g.Oz(d<1?1:d,3E5,.1),a.X.setInterval(a.B.getValue()))}}G&&G();a.L=0},l=function(N,d){var C=Vk(x,mE,3); var z;var p=(z=AJg(r3(x,14)))!=null?z:void 0;g.Ez(a.B);a.X.setInterval(a.B.getValue());N===401&&h&&(a.Qb=h);p&&(a.G+=p);d===void 0&&(d=a.isRetryable(N));d&&(a.j=C.concat(a.j),a.GG||a.X.enabled||a.X.start());B&&B("net-send-failed",N);++a.L},k=function(){a.network&&a.network.send(w,K,l)}; e?e.then(function(N){w.requestHeaders["Content-Encoding"]="gzip";w.requestHeaders["Content-Type"]="application/binary";w.body=N;w.z0=2;k()},function(){k()}):k()}}}}; g.W.Q8=function(){this.C.isFinal=!0;this.flush();this.C.isFinal=!1}; g.W.isRetryable=function(G){return 500<=G&&G<600||G===401||G===0};yX.prototype.send=function(G,B,a){var V=this,x,h,e,w,K,l,k,N,d,C;return g.v(function(z){switch(z.j){case 1:return h=(x=V.Mx?new AbortController:void 0)?setTimeout(function(){x.abort()},G.timeoutMillis):void 0,g.UA(z,2,3),e=Object.assign({},{method:G.requestType, headers:Object.assign({},G.requestHeaders)},G.body&&{body:G.body},G.withCredentials&&{credentials:"include"},{signal:G.timeoutMillis&&x?x.signal:null}),g.f(z,fetch(G.url,e),5);case 5:w=z.X;if(w.status!==200){(K=a)==null||K(w.status);z.kf(3);break}if((l=B)==null){z.kf(7);break}return g.f(z,w.text(),8);case 8:l(z.X);case 7:case 3:g.bx(z);clearTimeout(h);g.yb(z,0);break;case 2:k=g.jB(z);switch((N=k)==null?void 0:N.name){case "AbortError":(d=a)==null||d(408);break;default:(C=a)==null||C(400)}z.kf(3)}})}; yX.prototype.po=function(){return 4};g.t(ci,g.r);ci.prototype.b1=function(){this.B=!0;return this}; ci.prototype.build=function(){this.network||(this.network=new yX);var G=new bf({logSource:this.logSource,oX:this.oX?this.oX:LtA,sessionIndex:this.sessionIndex,bM1:this.D5,qZ:this.G,GG:!1,b1:this.B,JR:this.JR,network:this.network});g.X(this,G);if(this.X){var B=this.X,a=pa(G.C);zz(a,7,B)}G.W=new BM;this.componentId&&(G.componentId=this.componentId);this.M1&&(G.M1=this.M1);this.pageId&&(G.pageId=this.pageId);this.j&&((a=this.j)?(G.experimentIds||(G.experimentIds=new al),B=G.experimentIds,a=a.Ft(),zz(B, 4,a)):G.experimentIds&&Xn(G.experimentIds,4));this.C&&(G.GH=G.Y);mWb(G.C);this.network.K$&&this.network.K$(this.logSource);this.network.iRS&&this.network.iRS(G);return G};g.t(na,g.r);na.prototype.flush=function(G){G=G||[];if(G.length){for(var B=new lJB,a=[],V=0;V-1?(B=G[e],a||(B.WQ=!1)):(B=new DWK(B,this.src,h,!!V,x),B.WQ=a,G.push(B));return B}; g.W.remove=function(G,B,a,V){G=G.toString();if(!(G in this.listeners))return!1;var x=this.listeners[G];B=Xm(x,B,a,V);return B>-1?(Za(x[B]),g.ia(x,B),x.length==0&&(delete this.listeners[G],this.j--),!0):!1}; g.W.removeAll=function(G){G=G&&G.toString();var B=0,a;for(a in this.listeners)if(!G||a==G){for(var V=this.listeners[a],x=0;x-1?G[x]:null}; g.W.hasListener=function(G,B){var a=G!==void 0,V=a?G.toString():"",x=B!==void 0;return g.gU(this.listeners,function(h){for(var e=0;e>>0);g.BW(g.oL,g.r);g.oL.prototype[H0g]=!0;g.W=g.oL.prototype;g.W.addEventListener=function(G,B,a,V){g.uf(this,G,B,a,V)}; g.W.removeEventListener=function(G,B,a,V){qlc(this,G,B,a,V)}; g.W.dispatchEvent=function(G){var B=this.OQ;if(B){var a=[];for(var V=1;B;B=B.OQ)a.push(B),++V}B=this.Ut;V=G.type||G;if(typeof G==="string")G=new g.Da(G,B);else if(G instanceof g.Da)G.target=G.target||B;else{var x=G;G=new g.Da(V,B);g.vM(G,x)}x=!0;var h;if(a)for(h=a.length-1;!G.X&&h>=0;h--){var e=G.currentTarget=a[h];x=M_(e,V,!0,G)&&x}G.X||(e=G.currentTarget=B,x=M_(e,V,!0,G)&&x,G.X||(x=M_(e,V,!1,G)&&x));if(a)for(h=0;!G.X&&h0){this.X--;var G=this.j;this.j=G.next;G.next=null}else G=this.C();return G};var az;hu.prototype.add=function(G,B){var a=Fnz.get();a.set(G,B);this.X?this.X.next=a:this.j=a;this.X=a}; hu.prototype.remove=function(){var G=null;this.j&&(G=this.j,this.j=this.j.next,this.j||(this.X=null),G.next=null);return G}; var Fnz=new G5(function(){return new eU},function(G){return G.reset()}); eU.prototype.set=function(G,B){this.j=G;this.scope=B;this.next=null}; eU.prototype.reset=function(){this.next=this.scope=this.j=null};var Wa,wp=!1,T4B=new hu;YlA.prototype.reset=function(){this.context=this.X=this.C=this.j=null;this.G=!1}; var i0K=new G5(function(){return new YlA},function(G){G.reset()}); g.z5.prototype.then=function(G,B,a){return WaA(this,Ba(typeof G==="function"?G:null),Ba(typeof B==="function"?B:null),a)}; g.z5.prototype.$goog_Thenable=!0;g.W=g.z5.prototype;g.W.finally=function(G){var B=this;G=Ba(G);return new Promise(function(a,V){ajX(B,function(x){G();a(x)},function(x){G(); V(x)})})}; g.W.yC=function(G,B){return WaA(this,null,Ba(G),B)}; g.W.catch=g.z5.prototype.yC;g.W.cancel=function(G){if(this.j==0){var B=new Uh(G);g.KJ(function(){VMx(this,B)},this)}}; g.W.olr=function(G){this.j=0;CJ(this,2,G)}; g.W.HMN=function(G){this.j=0;CJ(this,3,G)}; g.W.LI=function(){for(var G;G=x8b(this);)hAY(this,G,this.j,this.W);this.L=!1}; var kNb=I2;g.BW(Uh,z$);Uh.prototype.name="cancel";g.BW(g.Oh,g.oL);g.W=g.Oh.prototype;g.W.enabled=!1;g.W.UZ=null;g.W.setInterval=function(G){this.v0=G;this.UZ&&this.enabled?(this.stop(),this.start()):this.UZ&&this.stop()}; g.W.eEB=function(){if(this.enabled){var G=g.G$()-this.lB;G>0&&G0&&(this.getStatus(),this.L=setTimeout(this.kt.bind(this), this.zH)),this.getStatus(),this.Y=!0,this.j.send(G),this.Y=!1}catch(e){this.getStatus(),D6x(this,e)}}; g.W.kt=function(){typeof YK!="undefined"&&this.j&&(this.G="Timed out after "+this.zH+"ms, aborting",this.X=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.W.abort=function(G){this.j&&this.C&&(this.getStatus(),this.C=!1,this.B=!0,this.j.abort(),this.B=!1,this.X=G||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Au(this))}; g.W.yb=function(){this.j&&(this.C&&(this.C=!1,this.B=!0,this.j.abort(),this.B=!1),Au(this,!0));g.Ju.iU.yb.call(this)}; g.W.oQ=function(){this.TH()||(this.HS||this.Y||this.B?Sux(this):this.IcX())}; g.W.IcX=function(){Sux(this)}; g.W.isActive=function(){return!!this.j}; g.W.isComplete=function(){return g.i8(this)==4}; g.W.getStatus=function(){try{return g.i8(this)>2?this.j.status:-1}catch(G){return-1}}; g.W.getResponseHeader=function(G){if(this.j&&this.isComplete())return G=this.j.getResponseHeader(G),G===null?void 0:G}; g.W.getLastError=function(){return typeof this.G==="string"?this.G:String(this.G)};B2.prototype.send=function(G,B,a){B=B===void 0?function(){}:B; a=a===void 0?function(){}:a; Ho9(G.url,function(V){V=V.target;Pa(V)?B(g.oz(V)):a(V.getStatus())},G.requestType,G.body,G.requestHeaders,G.timeoutMillis,G.withCredentials)}; B2.prototype.po=function(){return 1};Vi.prototype.done=function(){this.logger.Xp(this.event,aC()-this.startTime)}; g.t(xH,la);g.t(eJ,xH);g.W=eJ.prototype;g.W.Dw=function(){}; g.W.jm=function(){}; g.W.Xp=function(){}; g.W.oM=function(){}; g.W.mD=function(){}; g.W.Cg=function(G,B,a){return a}; g.W.IR=function(){}; g.W.wS=function(){}; g.W.le=function(){}; g.W.JG=function(){}; g.t(W2,xH);g.W=W2.prototype;g.W.update=function(G){this.logger.dispose();this.logger=G}; g.W.jm=function(G){this.logger.jm(G)}; g.W.Xp=function(G,B){this.logger.Xp(G,B)}; g.W.oM=function(G){this.logger.oM(G)}; g.W.mD=function(){this.logger.mD()}; g.W.Cg=function(G,B,a){return this.logger.Cg(G,B,a)}; g.W.IR=function(G){this.logger.IR(G)}; g.W.wS=function(G){this.logger.wS(G)}; g.W.le=function(G){this.logger.le(G)}; g.W.JG=function(G){this.logger.JG(G)}; g.W.gX=function(G){this.logger instanceof lc&&this.logger.gX(G)}; g.W.Dw=function(G){this.logger.Dw(G)}; g.t(wN,g.r);g.t(KX,xH);g.W=KX.prototype;g.W.gX=function(G){this.oY=G}; g.W.Dw=function(G){this.metrics.Wt1.X2(G,this.m5)}; g.W.jm=function(G){this.metrics.eventCount.j(G,this.m5)}; g.W.Xp=function(G,B){this.metrics.Tq.X2(B,G,this.oY,this.m5)}; g.W.oM=function(G){this.metrics.errorCount.j(G,this.oY,this.m5)}; g.W.Cg=function(G,B,a){function V(e){if(!x.TH()){var w=aC()-h;x.metrics.JIH.X2(w,G,B,e,x.oY,x.m5)}} var x=this,h=aC();a.then(function(){return void V(0)},function(e){return void V(e instanceof ys?e.code:-1)}); return a}; g.W.IR=function(G){this.metrics.utf.j(G,this.oY,this.m5)}; g.W.wS=function(G){this.metrics.CS.j(G,this.oY,this.m5)}; g.W.le=function(G){this.metrics.tKl.j(G,this.oY,this.m5)}; g.t(lc,KX);lc.prototype.JG=function(G){var B=this;this.j.dispose();this.X&&this.service.dispose();this.service=this.options.FC("47",this.options.jg.concat(G));this.j=new wN(function(){return void B.service.Pw()},this.options.xd); this.metrics=r$x(this.service);this.C=G}; lc.prototype.mD=function(){XMg(this.j)};g.t(kH,Zv);g.t(Nh,Zv);g.t(dN,Zv);var Yuc=dy(dN),u2z=function(G){return Tv(function(B){return B instanceof G&&!((B.X5[vK]|0)&2)})}(dN); dN.messageId="bfkj";g.t(xC,Zv);g.t(CX,Zv);var QlA=dy(CX);g.t(tL,g.r);tL.prototype.snapshot=function(G){if(this.TH())throw Error("Already disposed");this.logger.jm("n");var B=this.logger.share();return this.C.then(function(a){var V=a.Yn;return new Promise(function(x){var h=new Vi(B,"n");V(function(e){h.done();B.Dw(e.length);B.mD();B.dispose();x(e)},[G.Xi, G.X0,G.gj,G.rj])})})}; tL.prototype.o5=function(G){var B=this;if(this.TH())throw Error("Already disposed");this.logger.jm("n");var a=hL(this.logger,function(){return B.G([G.Xi,G.X0,G.gj,G.rj])},"n"); this.logger.Dw(a.length);this.logger.mD();return a}; tL.prototype.gr=function(G){this.C.then(function(B){var a;(a=B.eVJ)==null||a(G)})}; tL.prototype.j3=function(){return this.logger.share()};g.t(pX,Zv);g.t(Ug,Zv);Og.prototype.q8=function(G,B){return ioX(this,G,B,new eJ,0)}; Og.prototype.du=function(G){return MHz(this,G,new eJ,0)};g.t(Eg,g.r);Eg.prototype.snapshot=function(G){var B=this;return g.v(function(a){switch(a.j){case 1:if(B.TH())throw Error("Already disposed");if(B.X||B.W){a.kf(2);break}return g.f(a,B.B.promise,2);case 2:if(!B.X){a.kf(4);break}return g.f(a,B.X.snapshot(G),5);case 5:return a.return(a.X);case 4:throw B.W;}})}; Eg.prototype.gr=function(G){var B,a;(B=this.X)==null||(a=B.gr)==null||a.call(B,G)}; Eg.prototype.handleError=function(G){if(!this.TH()){this.W=G;this.B.resolve();var B,a;(a=(B=this.options).V_f)==null||a.call(B,G)}}; Eg.prototype.j3=function(){return this.logger.share()}; var aax={Avb:432E5,GB:3E5,TB:10,B5:1E4,Jc:3E4,Sfb:3E4,Qml:6E4,s2:1E3,fI:6E4,QO:6E5,b8:.25,i8:2,maxAttempts:10};var W7f,kTK=(W7f=Math.imul)!=null?W7f:function(G,B){return G*B|0},nX=[196, 200,224,18];fX.prototype.Ft=function(){return String(this.j)+","+this.X.join()}; fX.prototype.gE=function(G,B){var a=void 0;if(this.X[this.j]!==G){var V=this.X.indexOf(G);V!==-1?(this.X.splice(V,1),V0;)B[a++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(G%62),G=Math.floor(G/62);return B.join("")}};var jLb;g.t(v2,g.r);v2.prototype.Mw=function(G,B){var a=this.xr(G);B==null||B(a);return hL(this.logger,function(){return g.md(a,2)},this.C)}; jLb=Symbol.dispose;g.t(RC,v2);RC.prototype.xr=function(G,B){var a=this;this.logger.jm(this.j);++this.B>=this.L&&this.X.resolve();var V=G();G=hL(this.logger,function(){return a.G(V)},"C"); if(G===void 0)throw new a2(17,"YNJ:Undefined");if(!(G instanceof Uint8Array))throw new a2(18,"ODM:Invalid");B==null||B(G);return G}; g.t(Zz,v2);Zz.prototype.xr=function(){return this.G}; g.t(rN,v2);rN.prototype.xr=function(){var G=this;return hL(this.logger,function(){return gK(G.G)},"d")}; rN.prototype.Mw=function(){return this.G}; g.t(Xw,v2);Xw.prototype.xr=function(){if(this.G)return this.G;this.G=ba9(this,function(G){return"_"+EoY(G)}); return ba9(this,function(G){return G})}; g.t(uc,v2);uc.prototype.xr=function(G){var B=G();if(B.length>118)throw new a2(19,"DFO:Invalid");G=Math.floor(Date.now()/1E3);var a=[Math.random()*255,Math.random()*255],V=a.concat([this.G&255,this.clientState],[G>>24&255,G>>16&255,G>>8&255,G&255]);G=new Uint8Array(2+V.length+B.length);G[0]=34;G[1]=V.length+B.length;G.set(V,2);G.set(B,2+V.length);B=G.subarray(2);for(V=a=a.length;V150))try{this.cache=new IaB(G,this.logger)}catch(B){this.reportError(new a2(22,"GBJ:init",B))}}; Qi.prototype.reportError=function(G){this.logger.oM(G.code);this.onError(G);return G}; g.t(Fw,Qi);Fw.prototype.TA=function(){return this.G.promise}; Fw.prototype.xr=function(G){return LX(this,Object.assign({},G),!1)}; Fw.prototype.Mw=function(G){return LX(this,Object.assign({},G),!0)}; var SzX=function(G){return Tv(function(B){if(!ek(B))return!1;for(var a=g.m(Object.entries(G)),V=a.next();!V.done;V=a.next()){var x=g.m(V.value);V=x.next().value;x=x.next().value;if(!(V in B)){if(x.aIS===!0)continue;return!1}if(!x(B[V]))return!1}return!0})}({jS:function(G){return Tv(function(B){return B instanceof G})}(Eg)},"");g.t(AL,Zv);var wWk=dy(AL);rwy.prototype.getMetadata=function(){return this.metadata};YH.prototype.getMetadata=function(){return this.metadata}; YH.prototype.getStatus=function(){return this.status};ic.prototype.W=function(G,B){B=B===void 0?{}:B;return new rwy(G,this,B)}; ic.prototype.getName=function(){return this.name};var K79=new ic("/google.internal.waa.v1.Waa/Create",pX,AL,function(G){return G.Ft()},wWk);g.t(P2,Zv);var ojA=new ic("/google.internal.waa.v1.Waa/GenerateIT",Ug,P2,function(G){return G.Ft()},dy(P2));var k5z=new Set(["SAPISIDHASH","APISIDHASH"]);g.t(oC,Zv);oC.prototype.getValue=function(){var G=r3(this,2);if(Array.isArray(G)||G instanceof Zv)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return JD(this,2)};g.t(Mh,Zv);Mh.prototype.getMessage=function(){return NW(this,2)}; var LE_=dy(Mh);GU.prototype.UU=function(G,B){G=="data"?this.C.push(B):G=="metadata"?this.B.push(B):G=="status"?this.L.push(B):G=="end"?this.G.push(B):G=="error"&&this.X.push(B);return this}; GU.prototype.removeListener=function(G,B){G=="data"?hf(this.C,B):G=="metadata"?hf(this.B,B):G=="status"?hf(this.L,B):G=="end"?hf(this.G,B):G=="error"&&hf(this.X,B);return this}; GU.prototype.cancel=function(){this.j.abort()}; GU.prototype.cancel=GU.prototype.cancel;GU.prototype.removeListener=GU.prototype.removeListener;GU.prototype.on=GU.prototype.UU;g.t(Xig,Error);g.BW(g.ev,pMx);g.ev.prototype.j=function(){var G=new WR(this.G,this.C);this.X&&G.setCredentialsMode(this.X);return G}; g.ev.prototype.setCredentialsMode=function(G){this.X=G}; g.BW(WR,g.oL);g.W=WR.prototype;g.W.open=function(G,B){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.zH=G;this.Y=B;this.readyState=1;wj(this)}; g.W.send=function(G){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.j=!0;var B={headers:this.V,method:this.zH,credentials:this.B,cache:void 0};G&&(B.body=G);(this.XJ||g.qY).fetch(new Request(this.Y,B)).then(this.xBJ.bind(this),this.XD.bind(this))}; g.W.abort=function(){this.response=this.responseText="";this.V=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.j&&this.readyState!=4&&(this.j=!1,Kc(this));this.readyState=0}; g.W.xBJ=function(G){if(this.j&&(this.G=G,this.X||(this.status=this.G.status,this.statusText=this.G.statusText,this.X=G.headers,this.readyState=2,wj(this)),this.j&&(this.readyState=3,wj(this),this.j)))if(this.responseType==="arraybuffer")G.arrayBuffer().then(this.Kdf.bind(this),this.XD.bind(this));else if(typeof g.qY.ReadableStream!=="undefined"&&"body"in G){this.C=G.body.getReader();if(this.L){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.W=new TextDecoder;TQX(this)}else G.text().then(this.wSJ.bind(this),this.XD.bind(this))}; g.W.B1f=function(G){if(this.j){if(this.L&&G.value)this.response.push(G.value);else if(!this.L){var B=G.value?G.value:new Uint8Array(0);if(B=this.W.decode(B,{stream:!G.done}))this.response=this.responseText+=B}G.done?Kc(this):wj(this);this.readyState==3&&TQX(this)}}; g.W.wSJ=function(G){this.j&&(this.response=this.responseText=G,Kc(this))}; g.W.Kdf=function(G){this.j&&(this.response=G,Kc(this))}; g.W.XD=function(){this.j&&Kc(this)}; g.W.setRequestHeader=function(G,B){this.V.append(G,B)}; g.W.getResponseHeader=function(G){return this.X?this.X.get(G.toLowerCase())||"":""}; g.W.getAllResponseHeaders=function(){if(!this.X)return"";for(var G=[],B=this.X.entries(),a=B.next();!a.done;)a=a.value,G.push(a[0]+": "+a[1]),a=B.next();return G.join("\r\n")}; g.W.setCredentialsMode=function(G){this.B=G}; Object.defineProperty(WR.prototype,"withCredentials",{get:function(){return this.B==="include"}, set:function(G){this.setCredentialsMode(G?"include":"same-origin")}});g.lA.prototype.toString=function(){var G=[],B=this.B;B&&G.push(mX(B,l8s,!0),":");var a=this.j;if(a||B=="file")G.push("//"),(B=this.V)&&G.push(mX(B,l8s,!0),"@"),G.push(g.JE(a).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a=this.C,a!=null&&G.push(":",String(a));if(a=this.X)this.j&&a.charAt(0)!="/"&&G.push("/"),G.push(mX(a,a.charAt(0)=="/"?k$$:Nlh,!0));(a=this.G.toString())&&G.push("?",a);(a=this.L)&&G.push("#",mX(a,d9s));return G.join("")}; g.lA.prototype.resolve=function(G){var B=this.clone(),a=!!G.B;a?g.kO(B,G.B):a=!!G.V;a?B.V=G.V:a=!!G.j;a?g.No(B,G.j):a=G.C!=null;var V=G.X;if(a)g.dj(B,G.C);else if(a=!!G.X){if(V.charAt(0)!="/")if(this.j&&!this.X)V="/"+V;else{var x=B.X.lastIndexOf("/");x!=-1&&(V=B.X.slice(0,x+1)+V)}x=V;if(x==".."||x==".")V="";else if(g.E3(x,"./")||g.E3(x,"/.")){V=ps(x,"/");x=x.split("/");for(var h=[],e=0;e1||h.length==1&&h[0]!="")&&h.pop(), V&&e==x.length&&h.push("")):(h.push(w),V=!0)}V=h.join("/")}else V=x}a?B.X=V:a=G.G.toString()!=="";a?Cc(B,G.G.clone()):a=!!G.L;a&&(B.L=G.L);return B}; g.lA.prototype.clone=function(){return new g.lA(this)}; var l8s=/[#\/\?@]/g,Nlh=/[#\?:]/g,k$$=/[#\?]/g,FEz=/[#\?@]/g,d9s=/#/g;g.W=tf.prototype;g.W.add=function(G,B){pc(this);this.C=null;G=UW(this,G);var a=this.j.get(G);a||this.j.set(G,a=[]);a.push(B);this.X=this.X+1;return this}; g.W.remove=function(G){pc(this);G=UW(this,G);return this.j.has(G)?(this.C=null,this.X=this.X-this.j.get(G).length,this.j.delete(G)):!1}; g.W.clear=function(){this.j=this.C=null;this.X=0}; g.W.isEmpty=function(){pc(this);return this.X==0}; g.W.forEach=function(G,B){pc(this);this.j.forEach(function(a,V){a.forEach(function(x){G.call(B,x,V,this)},this)},this)}; g.W.eL=function(){pc(this);for(var G=Array.from(this.j.values()),B=Array.from(this.j.keys()),a=[],V=0;V0?String(G[0]):B}; g.W.toString=function(){if(this.C)return this.C;if(!this.j)return"";for(var G=[],B=Array.from(this.j.keys()),a=0;a>>3;h.C!=1&&h.C!=2&&h.C!=15&&bA(h,e,w,"unexpected tag");h.j=1;h.X=0;h.G=0} function a(K){h.G++;h.G==5&&K&240&&bA(h,e,w,"message length too long");h.X|=(K&127)<<(h.G-1)*7;K&128||(h.j=2,h.V=0,typeof Uint8Array!=="undefined"?h.B=new Uint8Array(h.X):h.B=Array(h.X),h.X==0&&x())} function V(K){h.B[h.V++]=K;h.V==h.X&&x()} function x(){if(h.C<15){var K={};K[h.C]=h.B;h.W.push(K)}h.j=0} for(var h=this,e=G instanceof Array?G:new Uint8Array(G),w=0;w0?G:null};yo.prototype.isInputValid=function(){return this.j===null}; yo.prototype.Qd=function(){return this.j}; yo.prototype.zo=function(){return!1}; yo.prototype.parse=function(G){this.j!==null&&G5c(this,G,"stream already broken");var B=null;try{var a=this.C;a.C||Msy(a,G,"stream already broken");a.j+=G;var V=Math.floor(a.j.length/4);if(V==0)var x=null;else{try{var h=zCA(a.j.slice(0,V*4))}catch(e){Msy(a,a.j,e.message)}a.X+=V*4;a.j=a.j.slice(V*4);x=h}B=x===null?null:this.G.parse(x)}catch(e){G5c(this,G,e.message)}this.X+=G.length;return B};var zC3={INIT:0,Ao:1,ud:2,l_:3,s8:4,iK:5,STRING:6,JK:7,xO:8,ea:9,Nj:10,YO:11,DN:12,eY:13,YE:14,mQ:15,U5:16,O5:17,al:18,AF:19,tK:20};g.W=nc.prototype;g.W.isInputValid=function(){return this.B!=3}; g.W.Qd=function(){return this.Y}; g.W.done=function(){return this.B===2}; g.W.zo=function(){return!1}; g.W.parse=function(G){function B(){for(;d0;)if(z=G[d++], h.V===4?h.V=0:h.V++,!z)break a;if(z==='"'&&!h.W){h.j=V();break}if(z==="\\"&&!h.W&&(h.W=!0,z=G[d++],!z))break;if(h.W)if(h.W=!1,z==="u"&&(h.V=1),z=G[d++])continue;else break;w.lastIndex=d;z=w.exec(G);if(!z){d=G.length+1;break}d=z.index+1;z=G[z.index];if(!z)break}h.C+=d-p;continue;case K.ea:if(!z)continue;z==="r"?h.j=K.Nj:fc(h,G,d);continue;case K.Nj:if(!z)continue;z==="u"?h.j=K.YO:fc(h,G,d);continue;case K.YO:if(!z)continue;z==="e"?h.j=V():fc(h,G,d);continue;case K.DN:if(!z)continue;z==="a"?h.j=K.eY: fc(h,G,d);continue;case K.eY:if(!z)continue;z==="l"?h.j=K.YE:fc(h,G,d);continue;case K.YE:if(!z)continue;z==="s"?h.j=K.mQ:fc(h,G,d);continue;case K.mQ:if(!z)continue;z==="e"?h.j=V():fc(h,G,d);continue;case K.U5:if(!z)continue;z==="u"?h.j=K.O5:fc(h,G,d);continue;case K.O5:if(!z)continue;z==="l"?h.j=K.al:fc(h,G,d);continue;case K.al:if(!z)continue;z==="l"?h.j=V():fc(h,G,d);continue;case K.AF:z==="."?h.j=K.tK:fc(h,G,d);continue;case K.tK:if("0123456789.eE+-".indexOf(z)!==-1)continue;else d--,h.C--,h.j= V();continue;default:fc(h,G,d)}}} function V(){var z=e.pop();return z!=null?z:K.Ao} function x(z){h.X>1||(z||(z=N===-1?h.G+G.substring(k,d):G.substring(N,d)),h.zH?h.L.push(z):h.L.push(JSON.parse(z)),N=d)} for(var h=this,e=h.XJ,w=h.HS,K=zC3,l=G.length,k=0,N=-1,d=0;d0?(C=h.L,h.L=[],C):null}return null};HR.prototype.isInputValid=function(){return this.B===null}; HR.prototype.Qd=function(){return this.B}; HR.prototype.zo=function(){return!1}; HR.prototype.parse=function(G){function B(K){h.X=6;h.B="The stream is broken @"+h.j+"/"+e+". Error: "+K+". With input:\n";throw Error(h.B);} function a(){h.C=new nc({x7N:!0,P5:!0})} function V(K){if(K)for(var l=0;l1)&&B("extra status: "+K);h.L=!0;var l={};l[2]=K[0];h.G.push(l)}} for(var h=this,e=0;e0?(G=h.G,h.G=[],G):null};vR.prototype.GU=function(){return this.j}; vR.prototype.getStatus=function(){return this.B}; vR.prototype.zH=function(G){G=G.target;try{if(G==this.j)a:{var B=g.i8(this.j),a=this.j.X,V=this.j.getStatus(),x=g.oz(this.j);G=[];if(g.MH(this.j)instanceof Array){var h=g.MH(this.j);h.length>0&&h[0]instanceof Uint8Array&&(this.Y=!0,G=h)}if(!(B<3||B==3&&!x&&G.length==0))if(V=V==200||V==206,B==4&&(a==8?Df(this,7):a==7?Df(this,8):V||Df(this,3)),this.X||(this.X=BpV(this.j),this.X==null&&Df(this,5)),this.B>2)Sv(this);else{if(G.length>this.C){var e=G.length;a=[];try{if(this.X.zo())for(var w=0;wthis.C){w=x.slice(this.C);this.C=x.length;try{var l=this.X.parse(w);l!=null&&this.G&&this.G(l)}catch(k){Df(this,5);Sv(this);break a}}B==4?(x.length!= 0||this.Y?Df(this,2):Df(this,4),Sv(this)):Df(this,1)}}}catch(k){Df(this,6),Sv(this)}};g.W=a4b.prototype;g.W.UU=function(G,B){var a=this.X[G];a||(a=[],this.X[G]=a);a.push(B);return this}; g.W.addListener=function(G,B){this.UU(G,B);return this}; g.W.removeListener=function(G,B){var a=this.X[G];a&&g.PW(a,B);(G=this.j[G])&&g.PW(G,B);return this}; g.W.once=function(G,B){var a=this.j[G];a||(a=[],this.j[G]=a);a.push(B);return this}; g.W.wCX=function(G){var B=this.X.data;B&&VU9(G,B);(B=this.j.data)&&VU9(G,B);this.j.data=[]}; g.W.Bcx=function(){switch(this.C.getStatus()){case 1:RQ(this,"readable");break;case 5:case 6:case 4:case 7:case 3:RQ(this,"error");break;case 8:RQ(this,"close");break;case 2:RQ(this,"end")}};xHX.prototype.serverStreaming=function(G,B,a,V){var x=this,h=G.substring(0,G.length-V.name.length);return h$9(function(e){var w=e.Qp,K=e.getMetadata(),l=wa9(x,!1);K=KLz(x,K,l,h+w.getName());var k=l4b(l,w.X,!0);e=w.j(e.GR);l.send(K,"POST",e);return k},this.G).call(this,V.W(B,a))};Npb.prototype.create=function(G,B){return PQ_(this.j,this.X+"/$rpc/google.internal.waa.v1.Waa/Create",G,B||{},K79)};var tf9=1,Jf=new WeakMap;g.t(qo,g.r);qo.prototype.signal=function(){var G=new Qo(!1);this.signals.add(G);g.X(this,G);return G}; qo.prototype.bR=function(G){return uA(this,G).bR()}; g.t(Qo,g.r);g.W=Qo.prototype;g.W.eC=function(){var G=this,B=tf9++;Lc(function(){dHb(G,B)}); return B}; g.W.detach=function(G){var B=this;Lc(function(){var a=B.slots.get(G);a&&a.f9()})}; g.W.value=function(G){return this.promise(!0,G)}; g.W.bR=function(){return this.x5}; g.W.next=function(G){return this.promise(!1,G)}; g.W.promise=function(G,B){var a=this,V=Byg();Lc(function(){if(a.TH())V.reject(new Uh("Signal initially disposed"));else if(B&&B.TH())V.reject(new Uh("Owner initially disposed"));else if(G&&a.K4&&a.pp)V.resolve(a.x5);else if(a.QU.add(V),g.pJ(V.promise,function(){a.QU.delete(V)}),B){var x=function(){V.reject(new Uh("Owner asynchronously disposed"))}; g.pJ(V.promise,function(){var h=Jf.get(B);h&&g.PW(h,x)}); tUc(B,x)}}); return V.promise}; g.W.yb=function(){var G=this;g.r.prototype.yb.call(this);Lc(function(){for(var B=g.m(G.slots.values()),a=B.next();!a.done;a=B.next())a=a.value.f9,a();G.slots.clear();B=g.m(G.QU);for(a=B.next();!a.done;a=B.next())a.value.reject(new Uh("Signal asynchronously disposed"));G.QU.clear()})}; var sW=[],FN=!1;g.t(Af,g.r);Af.prototype.start=function(){var G=this;if(this.TH())throw new iA("Cannot start a disposed timer.");if(!this.L){this.G=0;if(this.W){var B=Date.now();this.handle=setInterval(function(){G.G=G.milliseconds>0?Math.trunc((Date.now()-B)/G.milliseconds):G.G+1;var a;(a=G.X)==null||a.resolve();G.X=void 0;if(G.C){var V;(V=G.j)!=null&&TU(uA(V,G.C),G)}G.yW.Jh(G)},this.milliseconds)}else this.handle=setTimeout(function(){G.state=3; G.handle=void 0;G.G=1;var a;(a=G.X)==null||a.resolve();G.X=void 0;if(G.C){var V;(V=G.j)!=null&&TU(uA(V,G.C),G)}G.yW.Jh(G)},this.milliseconds); this.state=1}}; Af.prototype.cancel=function(){if(this.L){this.clear();this.state=2;var G;(G=this.X)==null||G.reject(new YO);var B;(B=this.yW.w5)==null||B.call(this);if(this.B){var a;(a=this.j)!=null&&TU(uA(a,this.B))}}}; Af.prototype.yb=function(){this.clear();var G;(G=this.X)==null||G.reject(new iA);this.state=4;g.r.prototype.yb.call(this)}; Af.prototype.clear=function(){this.W?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.w_.Object.defineProperties(Af.prototype,{L:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, tick:{configurable:!0,enumerable:!0,get:function(){return this.G}}, V:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.X!=null||(this.X=new g.z_),this.X.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new YO("Timer has been cancelled."));case 4:return Promise.reject(new iA("Timer has been disposed."));default:VW(this.state)}}}, Jh:{configurable:!0,enumerable:!0,get:function(){if(this.TH())throw new iA("Cannot attach a signal to a disposed timer.");this.C||(this.j!=null||(this.j=new qo(this)),this.C=this.j.signal());return this.C}}, w5:{configurable:!0,enumerable:!0,get:function(){if(this.TH())throw new iA("Cannot attach a signal to a disposed timer.");this.B||(this.j!=null||(this.j=new qo(this)),this.B=this.j.signal());return this.B}}}); g.t(YO,z$);g.t(iA,z$);g.t(PR,Qi);g.W=PR.prototype;g.W.isReady=function(){return!!this.j}; g.W.ready=function(){var G=this;return g.v(function(B){return g.f(B,G.C.promise,0)})}; g.W.q8=function(G){return gKV(this,this.logger.Cg("c",G===void 0?1:G,this.tW.q8(IC().j,null)),new a2(10,"JVZ:Timeout"))}; g.W.prefetch=function(){this.state===1&&(this.bT=this.q8())}; g.W.start=function(){if(this.state===1){this.state=2;var G=new Vi(this.logger,"r");this.ready().finally(function(){return void G.done()}); UHX(this)}}; g.W.xr=function(G){OJB(this,G);return LX(this,I49(G),!1)}; g.W.Mw=function(G){OJB(this,G);return LX(this,I49(G),!0)};var yug={NONE:0,J$J:1},eUB={UN:0,urb:1,tLL:2,qMl:3},RY={Bt:"a",A$B:"d",VIDEO:"v"};Mo.prototype.isVisible=function(){return this.KQ?this.x_>=.3:this.x_>=.5};var K6={c$N:0,n$l:1},xhK={NONE:0,KjB:1,jud:2};Ge.prototype.getValue=function(){return this.X}; g.t(B1,Ge);B1.prototype.C=function(G){this.X===null&&g.jH(this.G,G)&&(this.X=G)}; g.t(aY,Ge);aY.prototype.C=function(G){this.X===null&&typeof G==="number"&&(this.X=G)}; g.t(VN,Ge);VN.prototype.C=function(G){this.X===null&&typeof G==="string"&&(this.X=G)};xZ.prototype.disable=function(){this.X=!1}; xZ.prototype.enable=function(){this.X=!0}; xZ.prototype.isEnabled=function(){return this.X}; xZ.prototype.reset=function(){this.j={};this.X=!0;this.C={}};var vO=document,d$=window;var wRX=!g.di&&!q9();lr.prototype.now=function(){return 0}; lr.prototype.X=function(){return 0}; lr.prototype.C=function(){return 0}; lr.prototype.j=function(){return 0};g.t(Nt,lr);Nt.prototype.now=function(){return kZ()&&d$.performance.now?d$.performance.now():lr.prototype.now.call(this)}; Nt.prototype.X=function(){return kZ()&&d$.performance.memory?d$.performance.memory.totalJSHeapSize||0:lr.prototype.X.call(this)}; Nt.prototype.C=function(){return kZ()&&d$.performance.memory?d$.performance.memory.usedJSHeapSize||0:lr.prototype.C.call(this)}; Nt.prototype.j=function(){return kZ()&&d$.performance.memory?d$.performance.memory.jsHeapSizeLimit||0:lr.prototype.j.call(this)};var f4B=NH(function(){var G=!1;try{var B=Object.defineProperty({},"passive",{get:function(){G=!0}}); g.qY.addEventListener("test",null,B)}catch(a){}return G});HJz.prototype.isVisible=function(){return tR(vO)===1};var DHV={nlx:"allow-forms",glJ:"allow-modals",DLH:"allow-orientation-lock",eb1:"allow-pointer-lock",NJX:"allow-popups",YKb:"allow-popups-to-escape-sandbox",m9L:"allow-presentation",jMJ:"allow-same-origin",FwJ:"allow-scripts",z4r:"allow-top-navigation",X0N:"allow-top-navigation-by-user-activation"},ruY=NH(function(){return ShB()});var utB=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");U$.prototype.Ex=function(G,B,a){G=G+"//"+B+a;var V=sz9(this)-a.length;if(V<0)return"";this.j.sort(function(l,k){return l-k}); a=null;B="";for(var x=0;x=K.length){V-=K.length;G+=K;B=this.C;break}a=a==null?h:a}}V="";a!=null&&(V=""+B+"trn="+a);return G+V};f6.prototype.setInterval=function(G,B){return d$.setInterval(G,B)}; f6.prototype.clearInterval=function(G){d$.clearInterval(G)}; f6.prototype.setTimeout=function(G,B){return d$.setTimeout(G,B)}; f6.prototype.clearTimeout=function(G){d$.clearTimeout(G)};g.t(v1,Zv);v1.prototype.j=Wt_([0,RXl,$Yk,-2,uc2]);var hUY={dnd:1,xn:2,u2S:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};Wc_.prototype.z8=function(G){if(typeof G==="string"&&G.length!=0){var B=this.QK;if(B.X){G=G.split("&");for(var a=G.length-1;a>=0;a--){var V=G[a].split("="),x=decodeURIComponent(V[0]);V.length>1?(V=decodeURIComponent(V[1]),V=/^[0-9]+$/g.exec(V)?parseInt(V,10):V):V=1;(x=B.j[x])&&x.C(V)}}}};var hZ=null;var $Z=g.qY.performance,m9a=!!($Z&&$Z.mark&&$Z.measure&&$Z.clearMarks),Z9=NH(function(){var G;if(G=m9a){var B=B===void 0?window:B;if(hZ===null){hZ="";try{G="";try{G=B.top.location.hash}catch(V){G=B.location.hash}if(G){var a=G.match(/\bdeid=([\d,]+)/);hZ=a?a[1]:""}}catch(V){}}B=hZ;G=!!B.indexOf&&B.indexOf("1337")>=0}return G}); r$.prototype.disable=function(){this.j=!1;this.events!==this.X.google_js_reporting_queue&&(Z9()&&g.kV(this.events,dhz),this.events.length=0)}; r$.prototype.start=function(G,B){if(!this.j)return null;var a=k_g()||lzK();G=new NNA(G,B,a);B="goog_"+G.label+"_"+G.uniqueId+"_start";$Z&&Z9()&&$Z.mark(B);return G}; r$.prototype.end=function(G){if(this.j&&typeof G.value==="number"){var B=k_g()||lzK();G.duration=B-G.value;B="goog_"+G.label+"_"+G.uniqueId+"_end";$Z&&Z9()&&$Z.mark(B);!this.j||this.events.length>2048||this.events.push(G)}};Ccc.prototype.bx=function(G,B,a,V,x){x=x||this.qv;try{var h=new U$;h.j.push(1);h.X[1]=O$("context",G);B.error&&B.meta&&B.id||(B=new QN(L6(B)));if(B.msg){var e=B.msg.substring(0,512);h.j.push(2);h.X[2]=O$("msg",e)}var w=B.meta||{};if(this.V4)try{this.V4(w)}catch(C){}if(V)try{V(w)}catch(C){}V=[w];h.j.push(3);h.X[3]=V;var K=LLB();if(K.X){var l=K.X.url||"";h.j.push(4);h.X[4]=O$("top",l)}var k={url:K.j.url||""};if(K.j.url){var N=K.j.url.match(D4);var d=Ha(N[1],null,N[3],N[4])}else d="";l=[k,{url:d}];h.j.push(5); h.X[5]=l;w2B(this.j,x,h,a)}catch(C){try{w2B(this.j,x,{context:"ecmserr",rctx:G,msg:L6(C),url:K&&K.j.url},a)}catch(z){}}return this.CU}; g.t(QN,Kcc);var qt,ur,XP=new r$;qt=new function(){var G="https:";d$&&d$.location&&d$.location.protocol==="http:"&&(G="http:");this.X=G;this.j=.01}; ur=new Ccc;d$&&d$.document&&(d$.document.readyState=="complete"?tJ9():XP.j&&ze(d$,"load",function(){tJ9()}));var gHV=Date.now(),ir=-1,AR=-1,rfx,P1=-1,YZ=!1;g.W=oY.prototype;g.W.getHeight=function(){return this.bottom-this.top}; g.W.clone=function(){return new oY(this.top,this.right,this.bottom,this.left)}; g.W.contains=function(G){return this&&G?G instanceof oY?G.left>=this.left&&G.right<=this.right&&G.top>=this.top&&G.bottom<=this.bottom:G.x>=this.left&&G.x<=this.right&&G.y>=this.top&&G.y<=this.bottom:!1}; g.W.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.W.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.W.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.W.scale=function(G,B){B=typeof B==="number"?B:G;this.left*=G;this.right*=G;this.top*=B;this.bottom*=B;return this};aq.prototype.Wx=function(G,B){return!!G&&(!(B===void 0?0:B)||this.volume==G.volume)&&this.C==G.C&&Gd(this.j,G.j)&&!0};Vu.prototype.dO=function(){return this.W}; Vu.prototype.Wx=function(G,B){return this.G.Wx(G.G,B===void 0?!1:B)&&this.W==G.W&&Gd(this.C,G.C)&&Gd(this.L,G.L)&&this.j==G.j&&this.B==G.B&&this.X==G.X&&this.V==G.V};var I8k={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},bG={tF:"start",Dl:"firstquartile",b7:"midpoint",u7:"thirdquartile",COMPLETE:"complete",ERROR:"error",QX:"metric",PAUSE:"pause",SQ:"resume",hF:"skip",wH:"viewable_impression",L7:"mute",Et:"unmute",ek:"fullscreen",Vo:"exitfullscreen",EN:"bufferstart",qI:"bufferfinish",NI:"fully_viewable_audible_half_duration_impression",f7:"measurable_impression",Lr:"abandon",Pt:"engagedview",zr:"impression",MI:"creativeview",i7:"loaded", i1X:"progress",CLOSE:"close",F$L:"collapse",YaJ:"overlay_resize",mnJ:"overlay_unmeasurable_impression",jfr:"overlay_unviewable_impression",zUJ:"overlay_viewable_immediate_impression",FbH:"overlay_viewable_end_of_session_impression",lG:"custom_metric_viewable",Sk:"audio_audible",Wt:"audio_measurable",h8:"audio_impression"},ARX="start firstquartile midpoint thirdquartile resume loaded".split(" "),Y$y=["start","firstquartile","midpoint","thirdquartile"],XR9=["abandon"],Fj={UNKNOWN:-1,tF:0,Dl:1,b7:2, u7:3,COMPLETE:4,QX:5,PAUSE:6,SQ:7,hF:8,wH:9,L7:10,Et:11,ek:12,Vo:13,NI:14,f7:15,Lr:16,Pt:17,zr:18,MI:19,i7:20,lG:21,EN:22,qI:23,h8:27,Wt:28,Sk:29};var Uhb={MKb:"addEventListener",zxd:"getMaxSize",Xhd:"getScreenSize",Chx:"getState",yYx:"getVersion",SMd:"removeEventListener",z3N:"isViewable"};g.W=g.hI.prototype;g.W.clone=function(){return new g.hI(this.left,this.top,this.width,this.height)}; g.W.contains=function(G){return G instanceof g.kj?G.x>=this.left&&G.x<=this.left+this.width&&G.y>=this.top&&G.y<=this.top+this.height:this.left<=G.left&&this.left+this.width>=G.left+G.width&&this.top<=G.top&&this.top+this.height>=G.top+G.height}; g.W.getSize=function(){return new g.dU(this.width,this.height)}; g.W.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.W.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.W.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.W.scale=function(G,B){B=typeof B==="number"?B:G;this.left*=G;this.width*=G;this.top*=B;this.height*=B;return this};var bXV={};RUg.prototype.update=function(G){G&&G.document&&(this.W=xa(!1,G,this.isMobileDevice),this.j=xa(!0,G,this.isMobileDevice),rLA(this,G),ZXc(this,G))};S3.prototype.cancel=function(){H1().clearTimeout(this.j);this.j=null}; S3.prototype.schedule=function(){var G=this,B=H1(),a=Sl().j.j;this.j=B.setTimeout(D9(a,s$(143,function(){G.X++;G.C.sample()})),p2b())};g.W=Rq.prototype;g.W.Id=function(){return!1}; g.W.initialize=function(){return this.isInitialized=!0}; g.W.W_=function(){return this.j.Zx}; g.W.kH=function(){return this.j.zH}; g.W.yH=function(G,B){if(!this.zH||(B===void 0?0:B))this.zH=!0,this.Zx=G,this.V=0,this.j!=this||rx(this)}; g.W.getName=function(){return this.j.SJ}; g.W.vM=function(){return this.j.XX()}; g.W.XX=function(){return{}}; g.W.ZI=function(){return this.j.V}; g.W.Dy=function(){var G=HO();G.j=xa(!0,this.C,G.isMobileDevice)}; g.W.eR=function(){ZXc(HO(),this.C)}; g.W.TJ=function(){return this.G.j}; g.W.sample=function(){}; g.W.isActive=function(){return this.j.L}; g.W.aN=function(G){var B=this.j;this.j=G.ZI()>=this.V?G:this;B!==this.j?(this.L=this.j.L,rx(this)):this.L!==this.j.L&&(this.L=this.j.L,rx(this))}; g.W.TD=function(G){if(G.X===this.j){var B=!this.G.Wx(G,this.Y);this.G=G;B&&qgA(this)}}; g.W.fu=function(){return this.Y}; g.W.dispose=function(){this.GH=!0}; g.W.TH=function(){return this.GH};g.W=$a.prototype;g.W.observe=function(){return!0}; g.W.unobserve=function(){}; g.W.Pq=function(G){this.B=G}; g.W.dispose=function(){if(!this.TH()){var G=this.X;g.PW(G.B,this);G.Y&&this.fu()&&X2_(G);this.unobserve();this.HS=!0}}; g.W.TH=function(){return this.HS}; g.W.vM=function(){return this.X.vM()}; g.W.ZI=function(){return this.X.ZI()}; g.W.W_=function(){return this.X.W_()}; g.W.kH=function(){return this.X.kH()}; g.W.aN=function(){}; g.W.TD=function(){this.UY()}; g.W.fu=function(){return this.GH};g.W=XT.prototype;g.W.ZI=function(){return this.j.ZI()}; g.W.W_=function(){return this.j.W_()}; g.W.kH=function(){return this.j.kH()}; g.W.create=function(G,B,a){var V=null;this.j&&(V=this.Vt(G,B,a),Zc(this.j,V));return V}; g.W.N2=function(){return this.U8()}; g.W.U8=function(){return!1}; g.W.init=function(G){return this.j.initialize()?(Zc(this.j,this),this.G=G,!0):!1}; g.W.aN=function(G){G.ZI()==0&&this.G(G.W_(),this)}; g.W.TD=function(){}; g.W.fu=function(){return!1}; g.W.dispose=function(){this.B=!0}; g.W.TH=function(){return this.B}; g.W.vM=function(){return{}};qV.prototype.add=function(G,B,a){++this.C;G=new QCY(G,B,a);this.j.push(new QCY(G.X,G.j,G.C+this.C/4096));this.X=!0;return this};JLA.prototype.toString=function(){var G="//pagead2.googlesyndication.com//pagead/gen_204",B=Qu(this.j);B.length>0&&(G+="?"+B);return G};L4.prototype.update=function(G,B,a){G&&(this.j+=B,this.X+=B,this.G+=B,this.C=Math.max(this.C,this.G));if(a===void 0?!G:a)this.G=0};var oHz=[1,.75,.5,.3,0];Td.prototype.update=function(G,B,a,V,x,h){h=h===void 0?!0:h;B=x?Math.min(G,B):B;for(x=0;x0&&B>=e;e=!(G>0&&G>=e)||a;this.j[x].update(h&&w,V,!h||e)}};iL.prototype.update=function(G,B,a,V){this.W=this.W!=-1?Math.min(this.W,B.x_):B.x_;this.XJ=Math.max(this.XJ,B.x_);this.HS=this.HS!=-1?Math.min(this.HS,B.z2):B.z2;this.Zx=Math.max(this.Zx,B.z2);this.eJ.update(B.z2,a.z2,B.j,G,V);this.Qb+=G;B.x_===0&&(this.SJ+=G);this.X.update(B.x_,a.x_,B.j,G,V);a=V||a.KQ!=B.KQ?a.isVisible()&&B.isVisible():a.isVisible();B=!B.isVisible()||B.j;this.Er.update(a,G,B)}; iL.prototype.Sz=function(){return this.Er.C>=this.Vb};if(vO&&vO.URL){var gCJ=vO.URL,pWC;if(pWC=!!gCJ){var U97;a:{if(gCJ){var OsJ=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var e4=OsJ.exec(decodeURIComponent(gCJ));if(e4){U97=e4[1]&&e4[1].length>1?e4[1].substring(1):"true";break a}}catch(G){}}U97=""}pWC=U97.length>0}ur.CU=!pWC};var ECa=new oY(0,0,0,0);var eey=new oY(0,0,0,0);g.t(Bd,g.r);g.W=Bd.prototype; g.W.yb=function(){if(this.A$.j){if(this.Np.KV){var G=this.A$.j;G.removeEventListener&&G.removeEventListener("mouseover",this.Np.KV,C6());this.Np.KV=null}this.Np.Eq&&(G=this.A$.j,G.removeEventListener&&G.removeEventListener("mouseout",this.Np.Eq,C6()),this.Np.Eq=null)}this.gp&&this.gp.dispose();this.Ux&&this.Ux.dispose();delete this.Dk;delete this.Tl;delete this.aP;delete this.A$.Om;delete this.A$.j;delete this.Np;delete this.gp;delete this.Ux;delete this.QK;g.r.prototype.yb.call(this)}; g.W.HM=function(){return this.Ux?this.Ux.j:this.position}; g.W.z8=function(G){Sl().z8(G)}; g.W.fu=function(){return!1}; g.W.qA=function(){return new iL}; g.W.wR=function(){return this.Dk}; g.W.vu=function(G){return lfB(this,G,1E4)}; g.W.uL=function(G,B,a,V,x,h,e){this.hJ||(this.QQ&&(G=this.yy(G,a,x,e),V=V&&this.Br.x_>=(this.KQ()?.3:.5),this.MX(h,G,V),this.N7=B,G.x_>0&&-1===this.ZP&&(this.ZP=B),this.LC==-1&&this.Sz()&&(this.LC=B),this.ix==-2&&(this.ix=MV(this.HM())?G.x_:-1),this.Br=G),this.Tl(this))}; g.W.MX=function(G,B,a){this.wR().update(G,B,this.Br,a)}; g.W.YN=function(){return new Mo}; g.W.yy=function(G,B,a,V){a=this.YN();a.j=B;B=H1().X;B=tR(vO)===0?-1:B.isVisible()?0:1;a.X=B;a.x_=this.uv(G);a.KQ=this.KQ();a.z2=V;return a}; g.W.uv=function(G){return this.opacity===0&&W1(this.QK,"opac")===1?0:G}; g.W.KQ=function(){return!1}; g.W.XW=function(){return this.ddd||this.ZhN}; g.W.kp=function(){JR()}; g.W.Mb=function(){JR()}; g.W.uy=function(){return 0}; g.W.Sz=function(){return this.Dk.Sz()}; g.W.Bu=function(){var G=this.QQ;G=(this.hasCompleted||this.TH())&&!G;var B=Sl().X!==2||this.Xrn;return this.hJ||B&&G?2:this.Sz()?4:3}; g.W.ib=function(){return 0};g.Vc.prototype.next=function(){return g.WA}; g.WA={done:!0,value:void 0};g.Vc.prototype.fG=function(){return this};g.t(tvg,Mo);var ws=IfB([void 0,1,2,3,4,8,16]),KZ=IfB([void 0,4,8,16]),j2W={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Wd("p0",KZ),p1:Wd("p1",KZ),p2:Wd("p2",KZ),p3:Wd("p3",KZ),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:ep("mtos1",[0,2,4],!1,KZ),mtos2:ep("mtos2",[0,2,4],!1,KZ),mtos3:ep("mtos3",[0,2,4],!1,KZ),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Wd("a0",KZ),a1:Wd("a1",KZ),a2:Wd("a2",KZ),a3:Wd("a3",KZ),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:Wd("c0",KZ),c1:Wd("c1",KZ),c2:Wd("c2",KZ),c3:Wd("c3",KZ),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Wd("qmtos",ws),qnc:Wd("qnc",ws),qmv:Wd("qmv",ws),qnv:Wd("qnv",ws), 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:Wd("ss0",KZ),ss1:Wd("ss1",KZ),ss2:Wd("ss2",KZ),ss3:Wd("ss3",KZ),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"},bss=Object.assign({},j2W,{avid:l8("audio"),avas:"avas",vs:"vs"}),yJ7={atos:"atos",avt:ep("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(G,B){return function(a){return a[G]===void 0&&B!==void 0?B:a[G]}}("ss",0), t:"t"};km.prototype.getValue=function(){return this.X}; km.prototype.update=function(G,B){G>=32||(this.j&1<=.5;j3(B.volume)&&(this.G=this.G!=-1?Math.min(this.G,B.volume):B.volume,this.L=Math.max(this.L,B.volume));h&&(this.GH+=G,this.Y+=x?G:0);this.j.update(B.x_,a.x_,B.j,G,V,x);this.C.update(!0,G);this.B.update(x,G);this.zH.update(a.fullscreen,G);this.Dx.update(x&&!h,G);G=Math.floor(B.mediaTime/1E3);this.LN.update(G,B.isVisible());this.MB.update(G,B.x_>=1);this.Ur.update(G, hc(B))}};jQK.prototype.X=function(G){this.C||(this.j(G)?(G=Z6b(this.Y,this.G,G),this.B|=G,G=G==0):G=!1,this.C=G)};g.t(Ct,jQK);Ct.prototype.j=function(){return!0}; Ct.prototype.L=function(){return!1}; Ct.prototype.getId=function(){var G=this,B=bQ(bG,function(a){return a==G.G}); return Fj[B].toString()}; Ct.prototype.toString=function(){var G="";this.L()&&(G+="c");this.C&&(G+="s");this.B>0&&(G+=":"+this.B);return this.getId()+G};g.t(zR,Ct);zR.prototype.X=function(G,B){B=B===void 0?null:B;B!=null&&this.W.push(B);Ct.prototype.X.call(this,G)};g.t(tc,bc9);tc.prototype.X=function(){return null}; tc.prototype.C=function(){return[]};g.t(m8,$a);g.W=m8.prototype;g.W.v4=function(){if(this.element){var G=this.element,B=this.X.j.C;try{try{var a=vHK(G.getBoundingClientRect())}catch(l){a=new oY(0,0,0,0)}var V=a.right-a.left,x=a.bottom-a.top,h=nHx(G,B),e=h.x,w=h.y;var K=new oY(Math.round(w),Math.round(e+V),Math.round(w+x),Math.round(e))}catch(l){K=ECa.clone()}this.C=K;this.j=uwX(this,this.C)}}; g.W.wY=function(){this.L=this.X.G.j}; g.W.Lz=function(G){var B=W1(this.QK,"od")==1;return hey(G,this.L,this.element,B)}; g.W.xB=function(){this.timestamp=JR()}; g.W.UY=function(){this.xB();this.v4();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var G=this.element;var B=new g.dU(G.videoWidth,G.videoHeight);G=this.j;var a=Mt(G),V=G.getHeight(),x=B.width;B=B.height;x<=0||B<=0||a<=0||V<=0||(x/=B,B=a/V,G=G.clone(),x>B?(a/=x,V=(V-a)/2,V>0&&(V=G.top+V,G.top=Math.round(V),G.bottom=Math.round(V+a))):(V*=x,a=Math.round((a-V)/2),a>0&&(a=G.left+a,G.left=Math.round(a),G.right=Math.round(a+V))));this.j=G}this.wY(); G=this.j;a=this.L;G=G.left<=a.right&&a.left<=G.right&&G.top<=a.bottom&&a.top<=G.bottom?new oY(Math.max(G.top,a.top),Math.min(G.right,a.right),Math.min(G.bottom,a.bottom),Math.max(G.left,a.left)):new oY(0,0,0,0);a=G.top>=G.bottom||G.left>=G.right?new oY(0,0,0,0):G;G=this.X.G;B=x=V=0;if((this.j.bottom-this.j.top)*(this.j.right-this.j.left)>0)if(this.Lz(a))a=new oY(0,0,0,0);else{V=HO().G;B=new oY(0,V.height,V.width,0);var h;V=GR(a,(h=this.B)!=null?h:this.j);x=GR(a,HO().j);B=GR(a,B)}h=a.top>=a.bottom|| a.left>=a.right?new oY(0,0,0,0):BO(a,-this.j.left,-this.j.top);Dc()||(x=V=0);this.Y=new Vu(G,this.element,this.j,h,V,x,this.timestamp,B)}; g.W.getName=function(){return this.X.getName()};var cJW=new oY(0,0,0,0);g.t(IK,m8);g.W=IK.prototype;g.W.observe=function(){this.G();return!0}; g.W.TD=function(){m8.prototype.UY.call(this)}; g.W.xB=function(){}; g.W.v4=function(){}; g.W.UY=function(){this.G();m8.prototype.UY.call(this)}; g.W.aN=function(G){G=G.isActive();G!==this.V&&(G?this.G():(HO().j=new oY(0,0,0,0),this.j=new oY(0,0,0,0),this.L=new oY(0,0,0,0),this.timestamp=-1));this.V=G};var l$={},Zc_=(l$.firstquartile=0,l$.midpoint=1,l$.thirdquartile=2,l$.complete=3,l$);g.t(pt,Bd);g.W=pt.prototype;g.W.fu=function(){return!0}; g.W.cE=function(){return this.aY==2}; g.W.vu=function(G){return lfB(this,G,Math.max(1E4,this.C/3))}; g.W.uL=function(G,B,a,V,x,h,e){var w=this,K=this.W(this)||{};g.vM(K,x);this.C=K.duration||this.C;this.Y=K.isVpaid||this.Y;this.SJ=K.isYouTube||this.SJ;H1();this.eJ=!1;x=cfy(this,B);yfV(this)===1&&(h=x);Bd.prototype.uL.call(this,G,B,a,V,K,h,e);this.EU&&this.EU.C&&g.kV(this.L,function(l){l.X(w)})}; g.W.MX=function(G,B,a){Bd.prototype.MX.call(this,G,B,a);E9(this).update(G,B,this.Br,a);this.Vb=hc(this.Br)&&hc(B);this.Zx==-1&&this.MB&&(this.Zx=this.wR().C.j);this.jf.C=0;G=this.Sz();B.isVisible()&&lG(this.jf,"vs");G&&lG(this.jf,"vw");j3(B.volume)&&lG(this.jf,"am");hc(B)?lG(this.jf,"a"):lG(this.jf,"mut");this.z7&&lG(this.jf,"f");B.X!=-1&&(lG(this.jf,"bm"),B.X==1&&(lG(this.jf,"b"),hc(B)&&lG(this.jf,"umutb")));hc(B)&&B.isVisible()&&lG(this.jf,"avs");this.Vb&&G&&lG(this.jf,"avw");B.x_>0&&lG(this.jf, "pv");jp(this,this.wR().C.j,!0)&&lG(this.jf,"gdr");AI(this.wR().X,1)>=2E3&&lG(this.jf,"pmx");this.eJ&&lG(this.jf,"tvoff")}; g.W.qA=function(){return new N7}; g.W.wR=function(){return this.Dk}; g.W.YN=function(){return new tvg}; g.W.yy=function(G,B,a,V){G=Bd.prototype.yy.call(this,G,B,a,V===void 0?-1:V);G.fullscreen=this.z7;G.paused=this.cE();G.volume=a.volume;j3(G.volume)||(this.Yf++,B=this.Br,j3(B.volume)&&(G.volume=B.volume));a=a.currentTime;G.mediaTime=a!==void 0&&a>=0?a:-1;return G}; g.W.uv=function(G){return HO(),this.z7?1:Bd.prototype.uv.call(this,G)}; g.W.uy=function(){return 1}; g.W.getDuration=function(){return this.C}; g.W.Bu=function(){return this.hJ?2:ffB(this)?5:this.Sz()?4:3}; g.W.ib=function(){return this.Dx?this.wR().B.C>=2E3?4:3:2}; g.W.Pq=function(G){this.Ux&&this.Ux.Pq(G)};var nC3=g.G$();JfK.prototype.reset=function(){this.j=[];this.X=[]}; var Hd=n6(JfK);g.t(Sp,XT);g.W=Sp.prototype;g.W.getName=function(){return(this.X?this.X:this.j).getName()}; g.W.vM=function(){return(this.X?this.X:this.j).vM()}; g.W.ZI=function(){return(this.X?this.X:this.j).ZI()}; g.W.init=function(G){var B=!1;(0,g.kV)(this.C,function(a){a.initialize()&&(B=!0)}); B&&(this.G=G,Zc(this.j,this));return B}; g.W.dispose=function(){(0,g.kV)(this.C,function(G){G.dispose()}); XT.prototype.dispose.call(this)}; g.W.N2=function(){return bL(this.C,function(G){return G.Id()})}; g.W.U8=function(){return bL(this.C,function(G){return G.Id()})}; g.W.Vt=function(G,B,a){return new m8(G,this.j,B,a)}; g.W.TD=function(G){this.X=G.X};var a9_={threshold:[0,.3,.5,.75,1]};g.t(RK,m8);g.W=RK.prototype;g.W.observe=function(){var G=this;this.XJ||(this.XJ=JR());if(IzK(298,function(){return VlB(G)}))return!0; this.X.yH("msf");return!1}; g.W.unobserve=function(){if(this.G&&this.element)try{this.G.unobserve(this.element),this.V?(this.V.unobserve(this.element),this.V=null):this.W&&(this.W.disconnect(),this.W=null)}catch(G){}}; g.W.UY=function(){var G=Zp(this);G.length>0&&rb(this,G);m8.prototype.UY.call(this)}; g.W.v4=function(){}; g.W.Lz=function(){return!1}; g.W.wY=function(){}; g.W.vM=function(){var G={};return Object.assign(this.X.vM(),(G.niot_obs=this.XJ,G.niot_cbk=this.zH,G))}; g.W.getName=function(){return"nio"};g.t($m,XT);$m.prototype.getName=function(){return"nio"}; $m.prototype.U8=function(){return!HO().X&&this.j.j.C.IntersectionObserver!=null}; $m.prototype.Vt=function(G,B,a){return new RK(G,this.j,B,a)};g.t(Xj,Rq);Xj.prototype.TJ=function(){return HO().j}; Xj.prototype.Id=function(){var G=hxA();this.V!==G&&(this.j!=this&&G>this.j.V&&(this.j=this,rx(this)),this.V=G);return G==2};q7.prototype.sample=function(){Lt(this,vd(),!1)}; q7.prototype.G=function(){var G=Dc(),B=JR();G?(YZ||(ir=B,g.kV(Hd.j,function(a){var V=a.wR();V.qB=db(V,B,a.aY!=1)})),YZ=!0):(this.W=l9Y(this,B),YZ=!1,rfx=B,g.kV(Hd.j,function(a){a.QQ&&(a.wR().V=B)})); Lt(this,vd(),!G)}; var uG=n6(q7);var N$A=null,N1="",k0=!1;var zx9=CrK().Gg,s9=CrK().kz;var I9B={g$d:"visible",SSJ:"audible",RBH:"time",dkN:"timetype"},gZ_={visible:function(G){return/^(100|[0-9]{1,2})$/.test(G)}, audible:function(G){return G=="0"||G=="1"}, timetype:function(G){return G=="mtos"||G=="tos"}, time:function(G){return/^(100|[0-9]{1,2})%$/.test(G)||/^([0-9])+ms$/.test(G)}}; mtx.prototype.setTime=function(G,B,a){B=="ms"?(this.C=G,this.G=-1):(this.C=-1,this.G=G);this.B=a===void 0?"tos":a;return this};g.t(Ym,Ct);Ym.prototype.getId=function(){return this.W}; Ym.prototype.L=function(){return!0}; Ym.prototype.j=function(G){var B=G.wR(),a=G.getDuration();return bL(this.V,function(V){if(V.j!=void 0)var x=UtX(V,B);else b:{switch(V.B){case "mtos":x=V.X?B.B.C:B.C.j;break b;case "tos":x=V.X?B.B.j:B.C.j;break b}x=0}x==0?V=!1:(V=V.C!=-1?V.C:a!==void 0&&a>0?V.G*a:-1,V=V!=-1&&x>=V);return V})};g.t(iG,pRV);iG.prototype.j=function(G){var B=new gOy;B.j=Kt(G,j2W);B.X=Kt(G,yJ7);return B};g.t(Pd,Ct);Pd.prototype.j=function(G){return ffB(G)};g.t(oK,bc9);g.t(M7,Ct);M7.prototype.j=function(G){return G.wR().Sz()};g.t(G3,zR);G3.prototype.j=function(G){var B=g.YC(this.W,W1(Sl().QK,"ovms"));return!G.hJ&&(G.aY!=0||B)};g.t(BG,oK);BG.prototype.X=function(){return new G3(this.j)}; BG.prototype.C=function(){return[new M7("viewable_impression",this.j),new Pd(this.j)]};g.t(aX,IK);aX.prototype.G=function(){var G=g.LV("ima.admob.getViewability"),B=W1(this.QK,"queryid");typeof G==="function"&&B&&G(B)}; aX.prototype.getName=function(){return"gsv"};g.t(VP,XT);VP.prototype.getName=function(){return"gsv"}; VP.prototype.U8=function(){var G=HO();Sl();return G.X&&!1}; VP.prototype.Vt=function(G,B,a){return new aX(this.j,B,a)};g.t(x0,IK);x0.prototype.G=function(){var G=this,B=g.LV("ima.bridge.getNativeViewability"),a=W1(this.QK,"queryid");typeof B==="function"&&a&&B(a,function(V){g.yw(V)&&G.W++;var x=V.opt_nativeViewVisibleBounds||{},h=V.opt_nativeViewHidden;G.j=Dhx(V.opt_nativeViewBounds||{});var e=G.X.G;e.j=h?cJW.clone():Dhx(x);G.timestamp=V.opt_nativeTime||-1;HO().j=e.j;V=V.opt_nativeVolume;V!==void 0&&(e.volume=V)})}; x0.prototype.getName=function(){return"nis"};g.t(h8,XT);h8.prototype.getName=function(){return"nis"}; h8.prototype.U8=function(){var G=HO();Sl();return G.X&&!1}; h8.prototype.Vt=function(G,B,a){return new x0(this.j,B,a)};g.t(e6,Rq);g.W=e6.prototype;g.W.Id=function(){return this.X.HE!=null}; g.W.XX=function(){var G={};this.LN&&(G.mraid=this.LN);this.HS&&(G.mlc=1);G.mtop=this.X.BEH;this.W&&(G.mse=this.W);this.Qb&&(G.msc=1);G.mcp=this.X.compatibility;return G}; g.W.TW=function(G){var B=g.Hz.apply(1,arguments);try{return this.X.HE[G].apply(this.X.HE,B)}catch(a){FP(538,a,.01,function(V){V.method=G})}}; g.W.initialize=function(){var G=this;if(this.isInitialized)return!this.kH();this.isInitialized=!0;if(this.X.compatibility===2)return this.W="ng",this.yH("w"),!1;if(this.X.compatibility===1)return this.W="mm",this.yH("w"),!1;HO().V=!0;this.C.document.readyState&&this.C.document.readyState=="complete"?b6z(this):oq(this.C,"load",function(){H1().setTimeout(s$(292,function(){return b6z(G)}),100)},292); return!0}; g.W.Dy=function(){var G=HO(),B=H6V(this,"getMaxSize");G.j=new oY(0,B.width,B.height,0)}; g.W.eR=function(){HO().G=H6V(this,"getScreenSize")}; g.W.dispose=function(){cRK(this);Rq.prototype.dispose.call(this)};var azy=new function(G,B){this.key=G;this.defaultValue=B===void 0?!1:B;this.valueType="boolean"}("45378663");g.W=wA.prototype;g.W.nw=function(G){aK(G,!1);PAX(G)}; g.W.PA=function(){}; g.W.RZ=function(G,B,a,V){var x=this;G=new pt(d$,G,a?B:-1,7,this.P4(),this.cU());G.GF=V;jzz(G.QK);el(G.QK,"queryid",G.GF);G.z8("");doK(G,function(){return x.El.apply(x,g.U(g.Hz.apply(0,arguments)))},function(){return x.lxb.apply(x,g.U(g.Hz.apply(0,arguments)))}); (V=n6(Dp).j)&&KXz(G,V);this.C&&(G.Pq(this.C),this.C=null);G.A$.Om&&n6(exx);return G}; g.W.aN=function(G){switch(G.ZI()){case 0:if(G=n6(Dp).j)G=G.j,g.PW(G.B,this),G.Y&&this.fu()&&X2_(G);lC();break;case 2:Qc()}}; g.W.TD=function(){}; g.W.fu=function(){return!1}; g.W.lxb=function(G,B){G.hJ=!0;switch(G.uy()){case 1:rRg(G,B);break;case 2:this.Rc(G)}}; g.W.gfS=function(G){var B=G.W(G);B&&(B=B.volume,G.Dx=j3(B)&&B>0);DoB(G,0);return yc(G,"start",Dc())}; g.W.r9=function(G,B,a){Lt(uG,[G],!Dc());return this.q7(G,B,a)}; g.W.q7=function(G,B,a){return yc(G,a,Dc())}; g.W.axb=function(G){return t8(G,"firstquartile",1)}; g.W.PL1=function(G){G.MB=!0;return t8(G,"midpoint",2)}; g.W.DBB=function(G){return t8(G,"thirdquartile",3)}; g.W.Ixf=function(G){var B=t8(G,"complete",4);U9(G);return B}; g.W.UBH=function(G){G.aY=3;return yc(G,"error",Dc())}; g.W.fJ=function(G,B,a){B=Dc();if(G.cE()&&!B){var V=G.wR(),x=JR();V.V=x}Lt(uG,[G],!B);G.cE()&&(G.aY=1);return yc(G,a,B)}; g.W.nfL=function(G,B){B=this.r9(G,B||{},"skip");U9(G);return B}; g.W.pSd=function(G,B){aK(G,!0);return this.r9(G,B||{},"fullscreen")}; g.W.ONJ=function(G,B){aK(G,!1);return this.r9(G,B||{},"exitfullscreen")}; g.W.PJ=function(G,B,a){B=G.wR();var V=JR();B.qB=db(B,V,G.aY!=1);Lt(uG,[G],!Dc());G.aY==1&&(G.aY=2);return yc(G,a,Dc())}; g.W.VJB=function(G){Lt(uG,[G],!Dc());return G.X()}; g.W.BH=function(G){Lt(uG,[G],!Dc());this.oE(G);U9(G);return G.X()}; g.W.El=function(){}; g.W.Rc=function(){}; g.W.oE=function(){}; g.W.Ye=function(){}; g.W.n0=function(){}; g.W.cU=function(){this.j||(this.j=this.n0());return this.j==null?new tc:new BG(this.j)}; g.W.P4=function(){return new iG};g.t(mK,Ct);mK.prototype.j=function(G){return G.ib()==4};g.t(IX,zR);IX.prototype.j=function(G){G=G.ib();return G==3||G==4};g.t(gA,oK);gA.prototype.X=function(){return new IX(this.j)}; gA.prototype.C=function(){return[new mK(this.j)]};g.t(py,pRV);py.prototype.j=function(G){G&&(G.e===28&&(G=Object.assign({},G,{avas:3})),G.vs===4||G.vs===5)&&(G=Object.assign({},G,{vs:3}));var B=new gOy;B.j=Kt(G,bss);B.X=Kt(G,yJ7);return B};uP_.prototype.X=function(){return g.LV(this.j)};g.t(Ur,wA);g.W=Ur.prototype;g.W.PA=function(G,B){var a=this,V=n6(Dp);if(V.j!=null)switch(V.j.getName()){case "nis":var x=sYB(this,G,B);break;case "gsv":x=T$K(this,G,B);break;case "exc":x=FrX(this,G)}x||(B.opt_overlayAdElement?x=void 0:B.opt_adElement&&(x=X1Y(this,G,B.opt_adElement,B.opt_osdId)));x&&x.uy()==1&&(x.W==g.kK&&(x.W=function(h){return a.Ye(h)}),LrH(this,x,B)); return x}; g.W.Ye=function(G){G.X=0;G.GH=0;if(G.G=="h"||G.G=="n"){Sl();G.Ur&&(Sl(),Cy(this)!="h"&&Cy(this));var B=g.LV("ima.common.getVideoMetadata");if(typeof B==="function")try{var a=B(G.GF)}catch(x){G.X|=4}else G.X|=2}else if(G.G=="b")if(B=g.LV("ytads.bulleit.getVideoMetadata"),typeof B==="function")try{a=B(G.GF)}catch(x){G.X|=4}else G.X|=2;else if(G.G=="ml")if(B=g.LV("ima.common.getVideoMetadata"),typeof B==="function")try{a=B(G.GF)}catch(x){G.X|=4}else G.X|=2;else G.X|=1;G.X||(a===void 0?G.X|=8:a===null? G.X|=16:g.yw(a)?G.X|=32:a.errorCode!=null&&(G.GH=a.errorCode,G.X|=64));a==null&&(a={});B=a;G.V=0;for(var V in I8k)B[V]==null&&(G.V|=I8k[V]);q$B(B,"currentTime");q$B(B,"duration");j3(a.volume)&&j3()&&(a.volume*=NaN);return a}; g.W.n0=function(){Sl();Cy(this)!="h"&&Cy(this);var G=JRH(this);return G!=null?new uP_(G):null}; g.W.Rc=function(G){!G.j&&G.hJ&&z3(this,G,"overlay_unmeasurable_impression")&&(G.j=!0)}; g.W.oE=function(G){G.nJ&&(G.Sz()?z3(this,G,"overlay_viewable_end_of_session_impression"):z3(this,G,"overlay_unviewable_impression"),G.nJ=!1)}; g.W.El=function(){}; g.W.RZ=function(G,B,a,V){if(VJY()){var x=W1(Sl().QK,"mm"),h={};(x=(h[RY.Bt]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",h[RY.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",h)[x])&&Prg(this,x);this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&FP(1044,Error())}G=wA.prototype.RZ.call(this,G,B,a,V);this.B&&(B=this.L,G.B==null&&(G.B=new CAK),B.j[G.GF]=G.B,G.B.B=nC3);return G}; g.W.nw=function(G){G&&G.uy()==1&&this.B&&delete this.L.j[G.GF];return wA.prototype.nw.call(this,G)}; g.W.cU=function(){this.j||(this.j=this.n0());return this.j==null?new tc:this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new gA(this.j):new BG(this.j)}; g.W.P4=function(){return this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new py:new iG}; g.W.Pq=function(G,B,a,V,x){B=new oY(a,B+V,a+x,B);(G=ft(Hd,G))?G.Pq(B):this.C=B}; var f82=Te(193,Mlc,void 0,$tX);g.Qb("Goog_AdSense_Lidar_sendVastEvent",f82);var Hsh=s$(194,function(G,B){B=B===void 0?{}:B;G=i6c(n6(Ur),G,B);return oZc(G)}); g.Qb("Goog_AdSense_Lidar_getViewability",Hsh);var vC7=Te(195,function(){return P8A()}); g.Qb("Goog_AdSense_Lidar_getUrlSignalsArray",vC7);var D93=s$(196,function(){return JSON.stringify(P8A())}); g.Qb("Goog_AdSense_Lidar_getUrlSignalsList",D93);var Gdz=(new Date("2024-01-01T00:00:00Z")).getTime();var V3b=CV(["//ep2.adtrafficquality.google/sodar/",""]),xVg=CV(["//tpc.googlesyndication.com/sodar/",""]);g.t(ny,g.r);ny.prototype.TA=function(){return this.wpc.f()}; ny.prototype.UL=function(G){this.wpc.c(G)}; ny.prototype.xr=function(G){return this.wpc.m(wOz(G))}; ny.prototype.Mw=function(G){return this.wpc.mws(wOz(G))}; g.t(bC,g.r);bC.prototype.snapshot=function(G){return this.jS.s(Object.assign({},G.Xi&&{c:G.Xi},G.X0&&{s:G.X0},G.rj!==void 0&&{p:G.rj}))}; bC.prototype.gr=function(G){this.jS.e(G)}; bC.prototype.j3=function(){return this.jS.l()};var WKA=(new Date).getTime();var kdB="://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(" "),Nxx=/\bocr\b/;var CLY=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var cIb=0,yI_=0,fcV=0;var nab=Object.assign({},{attributes:{},handleError:function(G){throw G;}},{j1X:!0, z0B:!0,XBr:lHh,WU:!1,nrn:!1,Mdb:!1,eFJ:!1,Ful:K9l});var vG=null,S6=!1,jqz=1,rA=Symbol("SIGNAL"),kT={version:0,grn:0,z9:!1,JI:void 0,Yh:void 0,R1:void 0,oL:0,Oy:void 0,YS:void 0,jO:!1,F6:!1,kind:"unknown",YA:function(){return!1}, mx:function(){}, zs:function(){}, D7B:function(){}};var NG=Symbol("UNSET"),ds=Symbol("COMPUTING"),CZ=Symbol("ERRORED");Object.assign({},kT,{value:NG,z9:!0,error:null,WZ:HG,kind:"computed",YA:function(G){return G.value===NG||G.value===ds}, mx:function(G){if(G.value===ds)throw Error("Detected cycle in computations.");var B=G.value;G.value=ds;var a=mV9(G),V=!1;try{var x=G.T0();Dq(null);V=B!==NG&&B!==CZ&&x!==CZ&&G.WZ(B,x)}catch(h){x=CZ,G.error=h}finally{Icg(G,a)}V?G.value=B:(G.value=x,G.version++)}});var O4y=Object.assign({},kT,{WZ:HG,value:void 0,kind:"signal"});Object.assign({},kT,{value:NG,z9:!0,error:null,WZ:HG,YA:function(G){return G.value===NG||G.value===ds}, mx:function(G){if(G.value===ds)throw Error("Detected cycle in computations.");var B=G.value;G.value=ds;var a=mV9(G);try{var V=G.source();var x=G.T0(V,B===NG||B===CZ?void 0:{source:G.tfB,value:B});G.tfB=V}catch(h){x=CZ,G.error=h}finally{Icg(G,a)}B!==NG&&x!==CZ&&G.WZ(B,x)?G.value=B:(G.value=x,G.version++)}});Object.assign({},kT,{F6:!0,jO:!1,zs:function(G){G.schedule!==null&&G.schedule(G.Aud)}, qUL:!1,ps1:function(){}});var H4V=Symbol("updater");g.t(X7,g.oL);X7.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.ra.QC(this.B);delete X7.instance}; X7.prototype.JA=function(){return this.j}; X7.prototype.Bn=function(){var G=this;this.B=this.ra.mw(function(){var B;return g.v(function(a){if(a.j==1)return G.j?((B=window.navigator)==null?0:B.onLine)?a.kf(3):g.f(a,$0(G),3):g.f(a,$0(G),3);G.Bn();g.pV(a)})},3E4)};uC.prototype.set=function(G,B){B=B===void 0?!0:B;0<=G&&G<52&&Number.isInteger(G)&&this.data[G]!==B&&(this.data[G]=B,this.j=-1)}; uC.prototype.get=function(G){return!!this.data[G]};var Ly;g.BW(g.F7,g.r);g.W=g.F7.prototype;g.W.start=function(){this.stop();this.G=!1;var G=Ra9(this),B=Z4x(this);G&&!B&&this.X.mozRequestAnimationFrame?(this.j=g.uf(this.X,"MozBeforePaint",this.C),this.X.mozRequestAnimationFrame(null),this.G=!0):this.j=G&&B?G.call(this.X,this.C):this.X.setTimeout(Jky(this.C),20)}; g.W.stop=function(){if(this.isActive()){var G=Ra9(this),B=Z4x(this);G&&!B&&this.X.mozRequestAnimationFrame?Aw(this.j):G&&B?B.call(this.X,this.j):this.X.clearTimeout(this.j)}this.j=null}; g.W.isActive=function(){return this.j!=null}; g.W.Zu=function(){this.G&&this.j&&Aw(this.j);this.j=null;this.L.call(this.B,g.G$())}; g.W.yb=function(){this.stop();g.F7.iU.yb.call(this)};g.BW(g.J8,g.r);g.W=g.J8.prototype;g.W.O8=0;g.W.yb=function(){g.J8.iU.yb.call(this);this.stop();delete this.j;delete this.X}; g.W.start=function(G){this.stop();this.O8=g.Eh(this.C,G!==void 0?G:this.v0)}; g.W.stop=function(){this.isActive()&&g.qY.clearTimeout(this.O8);this.O8=0}; g.W.isActive=function(){return this.O8!=0}; g.W.m6=function(){this.O8=0;this.j&&this.j.call(this.X)};g.t(g.M1,g.r);g.W=g.M1.prototype;g.W.n6=function(G){this.C=arguments;this.UZ||this.X?this.j=!0:GV(this)}; g.W.stop=function(){this.UZ&&(g.qY.clearTimeout(this.UZ),this.UZ=null,this.j=!1,this.C=null)}; g.W.pause=function(){this.X++}; g.W.resume=function(){this.X--;this.X||!this.j||this.UZ||(this.j=!1,GV(this))}; g.W.yb=function(){g.r.prototype.yb.call(this);this.stop()};g.BC.prototype[Symbol.iterator]=function(){return this}; g.BC.prototype.next=function(){var G=this.j.next();return{value:G.done?void 0:this.X.call(void 0,G.value),done:G.done}};g.BW(g.lu,g.oL);g.W=g.lu.prototype;g.W.isPlaying=function(){return this.j==1}; g.W.isPaused=function(){return this.j==-1}; g.W.b5=function(){this.Mn("begin")}; g.W.OU=function(){this.Mn("end")}; g.W.onFinish=function(){this.Mn("finish")}; g.W.onStop=function(){this.Mn("stop")}; g.W.Mn=function(G){this.dispatchEvent(G)};var S38=NH(function(){var G=g.M6("DIV"),B=g.Yj?"-webkit":ka?"-moz":null,a="transition:opacity 1s linear;";B&&(a+=B+"-transition:opacity 1s linear;");B=Gzc({style:a});if(G.nodeType===1&&/^(script|style)$/i.test(G.tagName))throw Error("");G.innerHTML=Rn(B);return g.NV(G.firstChild,"transition")!=""});g.BW(k$,g.lu);g.W=k$.prototype;g.W.play=function(){if(this.isPlaying())return!1;this.b5();this.Mn("play");this.startTime=g.G$();this.j=1;if(S38())return g.K4(this.X,this.L),this.C=g.Eh(this.XxN,void 0,this),!0;this.d0(!1);return!1}; g.W.XxN=function(){g.UK(this.X);XOK(this.X,this.W);g.K4(this.X,this.G);this.C=g.Eh((0,g.oy)(this.d0,this,!1),this.B*1E3)}; g.W.stop=function(){this.isPlaying()&&this.d0(!0)}; g.W.d0=function(G){g.K4(this.X,"transition","");g.qY.clearTimeout(this.C);g.K4(this.X,this.G);this.endTime=g.G$();this.j=0;if(G)this.onStop();else this.onFinish();this.OU()}; g.W.yb=function(){this.stop();k$.iU.yb.call(this)}; g.W.pause=function(){};var uTg={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};N4("Element","attributes")||N4("Node","attributes");N4("Element","innerHTML")||N4("HTMLElement","innerHTML");N4("Node","nodeName");N4("Node","nodeType");N4("Node","parentNode");N4("Node","childNodes");N4("HTMLElement","style")||N4("Element","style");N4("HTMLStyleElement","sheet");var JIK=LlB("getPropertyValue"),AIX=LlB("setProperty");N4("Element","namespaceURI")||N4("Node","namespaceURI");var Flx={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var oaV,GKs,PL_,i4B,M3x;oaV=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]");GKs=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.RCf=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.Cm=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]");PL_=/^http:\/\/.*/;g.Zsl=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");i4B=/\s+/;M3x=/[\d\u06f0-\u06f9]/;ti.prototype.fG=function(){return new mu(this.X())}; ti.prototype[Symbol.iterator]=function(){return new IR(this.X())}; ti.prototype.j=function(){return new IR(this.X())}; g.t(mu,g.Vc);mu.prototype.next=function(){return this.X.next()}; mu.prototype[Symbol.iterator]=function(){return new IR(this.X)}; mu.prototype.j=function(){return new IR(this.X)}; g.t(IR,ti);IR.prototype.next=function(){return this.C.next()};pm.prototype.clone=function(){return new pm(this.j,this.W,this.C,this.B,this.G,this.L,this.X,this.V)}; pm.prototype.Wx=function(G){return this.j==G.j&&this.W==G.W&&this.C==G.C&&this.B==G.B&&this.G==G.G&&this.L==G.L&&this.X==G.X&&this.V==G.V};OJ.prototype.clone=function(){return new OJ(this.start,this.end)}; OJ.prototype.getLength=function(){return this.end-this.start};(function(){if(KF_){var G=/Windows NT ([0-9.]+)/;return(G=G.exec(g.ns()))?G[1]:"0"}return G6?(G=/1[0|1][_.][0-9_.]+/,(G=G.exec(g.ns()))?G[0].replace(/_/g,"."):"10"):g.oh?(G=/Android\s+([^\);]+)(\)|;)/,(G=G.exec(g.ns()))?G[1]:""):dYC||CxC||zXh?(G=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(G=G.exec(g.ns()))?G[1].replace(/_/g,"."):""):""})();var Bbc=function(){if(g.XB)return EJ(/Firefox\/([0-9.]+)/);if(g.di||g.Jx||g.jN)return l8V;if(g.vX){if(Ls()||T$()){var G=EJ(/CriOS\/([0-9.]+)/);if(G)return G}return EJ(/Chrome\/([0-9.]+)/)}if(g.It&&!Ls())return EJ(/Version\/([0-9.]+)/);if(Y4||im){if(G=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.ns()))return G[1]+"."+G[2]}else if(g.b0)return(G=EJ(/Android\s+([0-9.]+)/))?G:EJ(/Version\/([0-9.]+)/);return""}();g.BW(g.bu,g.r);g.W=g.bu.prototype;g.W.subscribe=function(G,B,a){var V=this.X[G];V||(V=this.X[G]=[]);var x=this.L;this.j[x]=G;this.j[x+1]=B;this.j[x+2]=a;this.L=x+3;V.push(x);return x}; g.W.unsubscribe=function(G,B,a){if(G=this.X[G]){var V=this.j;if(G=G.find(function(x){return V[x+1]==B&&V[x+2]==a}))return this.y_(G)}return!1}; g.W.y_=function(G){var B=this.j[G];if(B){var a=this.X[B];this.G!=0?(this.C.push(G),this.j[G+1]=function(){}):(a&&g.PW(a,G),delete this.j[G],delete this.j[G+1],delete this.j[G+2])}return!!B}; g.W.publish=function(G,B){var a=this.X[G];if(a){var V=Array(arguments.length-1),x=arguments.length,h;for(h=1;h0&&this.G==0)for(;a=this.C.pop();)this.y_(a)}}return h!=0}return!1}; g.W.clear=function(G){if(G){var B=this.X[G];B&&(B.forEach(this.y_,this),delete this.X[G])}else this.j.length=0,this.X={}}; g.W.yb=function(){g.bu.iU.yb.call(this);this.clear();this.C.length=0};g.y_.prototype.set=function(G,B){B===void 0?this.j.remove(G):this.j.set(G,g.ca(B))}; g.y_.prototype.get=function(G){try{var B=this.j.get(G)}catch(a){return}if(B!==null)try{return JSON.parse(B)}catch(a){throw"Storage: Invalid value was encountered";}}; g.y_.prototype.remove=function(G){this.j.remove(G)};g.BW(cC,g.y_);cC.prototype.set=function(G,B){cC.iU.set.call(this,G,x7V(B))}; cC.prototype.X=function(G){G=cC.iU.get.call(this,G);if(G===void 0||G instanceof Object)return G;throw"Storage: Invalid value was encountered";}; cC.prototype.get=function(G){if(G=this.X(G)){if(G=G.data,G===void 0)throw"Storage: Invalid value was encountered";}else G=void 0;return G};g.BW(nm,cC);nm.prototype.set=function(G,B,a){if(B=x7V(B)){if(a){if(a=a.length)return g.WA;var x=a.key(B++);if(G)return g.xm(x);x=a.getItem(x);if(typeof x!=="string")throw"Storage mechanism: Invalid value was encountered";return g.xm(x)}; return V}; g.W.clear=function(){DA(this);this.j.clear()}; g.W.key=function(G){DA(this);return this.j.key(G)};g.BW(Sb,vC);g.BW(W8_,vC);g.BW(RR,HC);RR.prototype.set=function(G,B){this.X.set(this.j+G,B)}; RR.prototype.get=function(G){return this.X.get(this.j+G)}; RR.prototype.remove=function(G){this.X.remove(this.j+G)}; RR.prototype.fG=function(G){var B=this.X[Symbol.iterator](),a=this,V=new g.Vc;V.next=function(){var x=B.next();if(x.done)return x;for(x=x.value;x.slice(0,a.j.length)!=a.j;){x=B.next();if(x.done)return x;x=x.value}return g.xm(G?x.slice(a.j.length):a.X.get(x))}; return V};ri.prototype.getValue=function(){return this.X}; ri.prototype.clone=function(){return new ri(this.j,this.X)};g.W=$$.prototype;g.W.gE=function(G,B){var a=this.j;a.push(new ri(G,B));G=a.length-1;B=this.j;for(a=B[G];G>0;){var V=G-1>>1;if(B[V].j>a.j)B[G]=B[V],G=V;else break}B[G]=a}; g.W.remove=function(){var G=this.j,B=G.length,a=G[0];if(!(B<=0)){if(B==1)G.length=0;else{G[0]=G.pop();G=0;B=this.j;for(var V=B.length,x=B[G];G>1;){var h=G*2+1,e=G*2+2;h=ex.j)break;B[G]=B[h];G=h}B[G]=x}return a.getValue()}}; g.W.wB=function(){for(var G=this.j,B=[],a=G.length,V=0;V>>16&65535|0;for(var h;a!==0;){h=a>2E3?2E3:a;a-=h;do x=x+B[V++]|0,G=G+x|0;while(--h);x%=65521;G%=65521}return x|G<<16|0};for(var dL={},zw,uhh=[],tZ=0;tZ<256;tZ++){zw=tZ;for(var Q2J=0;Q2J<8;Q2J++)zw=zw&1?3988292384^zw>>>1:zw>>>1;uhh[tZ]=zw}dL=function(G,B,a,V){a=V+a;for(G^=-1;V>>8^uhh[(G^B[V])&255];return G^-1};var V4={};V4={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 iu=[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],M4=[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],D7Y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],U79=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Wu=Array(576);Q_(Wu);var wL=Array(60);Q_(wL);var oR=Array(512);Q_(oR);var Y$=Array(256);Q_(Y$);var PC=Array(29);Q_(PC);var GY=Array(30);Q_(GY);var fpg,HtB,vmg,nmc=!1;var Ib;Ib=[new mp(0,0,0,0,function(G,B){var a=65535;for(a>G.jL-5&&(a=G.jL-5);;){if(G.nh<=1){Cx(G);if(G.nh===0&&B===0)return 1;if(G.nh===0)break}G.Zf+=G.nh;G.nh=0;var V=G.uh+a;if(G.Zf===0||G.Zf>=V)if(G.nh=G.Zf-V,G.Zf=V,Kx(G,!1),G.pD.Xg===0)return 1;if(G.Zf-G.uh>=G.Li-262&&(Kx(G,!1),G.pD.Xg===0))return 1}G.gE=0;if(B===4)return Kx(G,!0),G.pD.Xg===0?3:4;G.Zf>G.uh&&Kx(G,!1);return 1}), new mp(4,4,8,4,zY),new mp(4,5,16,8,zY),new mp(4,6,32,32,zY),new mp(4,4,16,16,t0),new mp(8,16,32,32,t0),new mp(8,16,128,128,t0),new mp(8,32,128,256,t0),new mp(32,128,258,1024,t0),new mp(32,258,258,4096,t0)];var ccz={};ccz=function(){this.input=null;this.Gk=this.JC=this.s9=0;this.output=null;this.SY=this.Xg=this.IW=0;this.msg="";this.state=null;this.Yi=2;this.T_=0};var S9K=Object.prototype.toString; gL.prototype.push=function(G,B){var a=this.pD,V=this.options.chunkSize;if(this.ended)return!1;var x=B===~~B?B:B===!0?4:0;typeof G==="string"?a.input=lpB(G):S9K.call(G)==="[object ArrayBuffer]"?a.input=new Uint8Array(G):a.input=G;a.s9=0;a.JC=a.input.length;do{a.Xg===0&&(a.output=new uu.Af(V),a.IW=0,a.Xg=V);G=ycB(a,x);if(G!==1&&G!==0)return this.OU(G),this.ended=!0,!1;if(a.Xg===0||a.JC===0&&(x===4||x===2))if(this.options.h7==="string"){var h=uu.zX(a.output,a.IW);B=h;h=h.length;if(h<65537&&(B.subarray&& q3W||!B.subarray))B=String.fromCharCode.apply(null,uu.zX(B,h));else{for(var e="",w=0;w0||a.Xg===0)&&G!==1);if(x===4)return(a=this.pD)&&a.state?(V=a.state.status,V!==42&&V!==69&&V!==73&&V!==91&&V!==103&&V!==113&&V!==666?G=xt(a,-2):(a.state=null,G=V===113?xt(a,-3):0)):G=-2,this.OU(G),this.ended=!0,G===0;x===2&&(this.OU(0),a.Xg=0);return!0}; gL.prototype.OU=function(G){G===0&&(this.result=this.options.h7==="string"?this.chunks.join(""):uu.Og(this.chunks));this.chunks=[];this.err=G;this.msg=this.pD.msg};var Uv="@@redux/INIT"+px(),q9H="@@redux/REPLACE"+px();var ujx=typeof Symbol==="function"&&Symbol.observable||"@@observable";var L7J=[0,YA8,-3,VL];g.t(jV,Zv);jV.prototype.getType=function(){return d4(this,11)};var aEA=function(){var G=[0,Px7,iVC,Mx,YA8,Mx,-1,VL,YA8,VL,-1,Px7,VL,iVC,Gw,L7J,Mx,-1,VL];return function(B,a){if(oI.length){var V=oI.pop();nV_(V,a);V.j.init(B,void 0,void 0,a);B=V}else B=new f0(B,a);try{var x=new jV,h=x.X5;an(G)(h,B);var e=x}finally{B.free()}return e}}();var sKg=810237094;var VqX=new g.b4("adInfoDialogEndpoint");var EkV=new g.b4("adPingingEndpoint");var scb=new g.b4("crossDeviceProgressCommand");var GE=new g.b4("actionCompanionAdRenderer");var K1=new g.b4("adActionInterstitialRenderer");var TlJ=new g.b4("adDurationRemainingRenderer");var Sh=new g.b4("adHoverTextButtonRenderer");var Bg_=new g.b4("adInfoDialogRenderer");var zb=new g.b4("adMessageRenderer");var R9=new g.b4("adPreviewRenderer");var a9=new g.b4("adsEngagementPanelRenderer");var mvb=new g.b4("dismissablePanelTextPortraitImageRenderer");var zLz=new g.b4("adsEngagementPanelSectionListViewModel");var s23=new g.b4("flyoutCtaRenderer");var Bf=new g.b4("imageCompanionAdRenderer");var WX=new g.b4("instreamAdPlayerOverlayRenderer");var g1H=new g.b4("instreamSurveyAdBackgroundImageRenderer");var DU=new g.b4("instreamSurveyAdPlayerOverlayRenderer");var dm=new g.b4("instreamSurveyAdRenderer"),vf=new g.b4("instreamSurveyAdSingleSelectQuestionRenderer"),Hf=new g.b4("instreamSurveyAdMultiSelectQuestionRenderer"),mz=new g.b4("instreamSurveyAdAnswerRenderer"),F79=new g.b4("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var kE=new g.b4("instreamVideoAdRenderer");var JJ8=new g.b4("textOverlayAdContentRenderer"),AJJ=new g.b4("enhancedTextOverlayAdContentRenderer"),Y32=new g.b4("imageOverlayAdContentRenderer");var we=new g.b4("playerOverlayLayoutRenderer");var l5=new g.b4("videoInterstitialButtonedCenteredLayoutRenderer");var OHA=new g.b4("aboveFeedAdLayoutRenderer");var EyB=new g.b4("belowPlayerAdLayoutRenderer");var UvB=new g.b4("inPlayerAdLayoutRenderer");var t4=new g.b4("playerBytesAdLayoutRenderer");var f_=new g.b4("playerBytesSequenceItemAdLayoutRenderer");var n_=new g.b4("playerUnderlayAdLayoutRenderer");var N0=new g.b4("adIntroRenderer");var K_=new g.b4("playerBytesSequentialLayoutRenderer");var BCH=new g.b4("slidingTextPlayerOverlayRenderer");var C_=new g.b4("surveyTextInterstitialRenderer");var my=new g.b4("videoAdTrackingRenderer");var isW=new g.b4("simpleAdBadgeRenderer");var hP=new g.b4("skipAdRenderer"),Paa=new g.b4("skipButtonRenderer");var XK=new g.b4("adSlotRenderer");var gm=new g.b4("squeezebackPlayerSidePanelRenderer");var oCC=new g.b4("timedPieCountdownRenderer");var Qq=new g.b4("adAvatarViewModel");var L7=new g.b4("adBadgeViewModel");var Tl=new g.b4("adButtonViewModel");var Mf9=new g.b4("adDetailsLineViewModel");var Gvf=new g.b4("adDisclosureBannerViewModel");var BK2=new g.b4("adPodIndexViewModel");var aCk=new g.b4("imageBackgroundViewModel");var V$k=new g.b4("adGridCardCollectionViewModel");var xUk=new g.b4("adGridCardTextViewModel");var h_a=new g.b4("adPreviewViewModel");var e_3=new g.b4("playerAdAvatarLockupCardButtonedViewModel");var WdJ=new g.b4("skipAdButtonViewModel");var wKk=new g.b4("skipAdViewModel");var KdC=new g.b4("timedPieCountdownViewModel");var lCf=new g.b4("visitAdvertiserLinkViewModel");var V7=new g.b4("bannerImageLayoutViewModel");var xE=new g.b4("topBannerImageTextIconButtonedLayoutViewModel");var h4=new g.b4("adsEngagementPanelLayoutViewModel");var p_=new g.b4("displayUnderlayTextGridCardsLayoutViewModel");g.bv=new g.b4("browseEndpoint");var kvC=new g.b4("confirmDialogEndpoint");var PiH=new g.b4("commandContext");var jPy=new g.b4("rawColdConfigGroup");var ESb=new g.b4("rawHotConfigGroup");g.tn=new g.b4("commandExecutorCommand");g.t(Acz,Zv);var wvc={wEl:0,gvr:1,y2H:32,RFl:61,s$f:67,kgH:103,Ggl:86,CyS:42,c2J:60,eBN:62,HyJ:73,vzL:76,Zyd:88,iyB:90,Q$f:99,zFX:98,fQJ:100,ozl:102,byS:41,TtX:69,LfL:70,A21:71,ItB:2,UPS:27,ANDROID:3,cCd:54,rCd:14,fUH:91,vTS:55,oTb:24,Hir:20,R4B:18,GFn:21,kFr:104,QMJ:30,LwS:29,ACJ:28,a6r:101,BRB:34,sMf:36,d9N:38,IOS:5,x$S:15,n1S:92,MFL:40,IrH:25,U$J:17,OkJ:19,arL:64,phN:66,Phb:26,D$1:22,exL:33,NQX:68,Y1J:35,VFd:53,g1x:37,lrf:39,TaL:7,L7X:57,ANn:43,SCJ:59,BaB:93,TRN:74,hBd:75,W7J:85,JNL:65,uqN:80,qC1:8,Q9H:10, K7B:58,Evn:63,thl:72,biJ:23,hFb:11,Wfd:13,YSH:12,bcd:16,XsB:56,d7L:31,xPf:77,cYB:84,r2L:87,v1d:89,rY1:94,L8f:95};g.t(y4,Zv);y4.prototype.Pv=function(){return NW(this,3)}; y4.prototype.YU=function(){return NW(this,5)}; y4.prototype.yS=function(G){return zz(this,5,G)};g.t(cu,Zv);g.t(Y99,Zv);g.t(nx,Zv);g.W=nx.prototype;g.W.getDeviceId=function(){return NW(this,6)}; g.W.hU=function(G){var B=sE(this,9,K2,3,!0);Qj(B,G);return B[G]}; g.W.getPlayerType=function(){return d4(this,36)}; g.W.setHomeGroupInfo=function(G){return eo(this,Y99,81,G)}; g.W.clearLocationPlayabilityToken=function(){return Xn(this,89)};g.t(fx,Zv);fx.prototype.getValue=function(){return NW(this,BY(this,Ueb)===2?2:-1)}; var Ueb=[2,3,4,5,6];g.t(Hu,Zv);Hu.prototype.setTrackingParams=function(G){return Xn(this,1,f8y(G,!1))};g.t(vu,Zv);g.t(Dm,Zv);Dm.prototype.hU=function(G){var B=sE(this,5,lO,3,!0);Qj(B,G);return B[G]};g.t(SV,Zv);SV.prototype.getToken=function(){return lK(this,2)}; SV.prototype.setToken=function(G){return zz(this,2,G)};g.t(Rb,Zv);Rb.prototype.setSafetyMode=function(G){return mn(this,5,G)};g.t(Zm,Zv);Zm.prototype.Ep=function(G){return eo(this,nx,1,G)};var rm=new g.b4("thumbnailLandscapePortraitRenderer");g.NKa=new g.b4("changeEngagementPanelVisibilityAction");var cdx=new g.b4("continuationCommand");g.dUl=new g.b4("openPopupAction");g.IB=new g.b4("webCommandMetadata");var $0K=new g.b4("metadataBadgeRenderer");var ydK=new g.b4("signalServiceEndpoint");var $k=new g.b4("innertubeCommand");var C_H=new g.b4("loggingDirectives");var Rmb={K$b:"EMBEDDED_PLAYER_MODE_UNKNOWN",uQJ:"EMBEDDED_PLAYER_MODE_DEFAULT",E$l:"EMBEDDED_PLAYER_MODE_PFP",qyb:"EMBEDDED_PLAYER_MODE_PFL"};var lrB=new g.b4("channelThumbnailEndpoint");var Kgx=new g.b4("embeddedPlayerErrorMessageRenderer");var hT9=new g.b4("embeddedPlayerOverlayVideoDetailsRenderer"),kbV=new g.b4("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),NYB=new g.b4("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var RgB=new g.b4("embedsInfoPanelRenderer");var Cka=new g.b4("feedbackEndpoint");var z_s=new g.b4("callToActionButtonViewModel");var t$$=new g.b4("interactionLoggingCommandMetadata");var Hx_={Ffn:"WEB_DISPLAY_MODE_UNKNOWN",NaH:"WEB_DISPLAY_MODE_BROWSER",m7n:"WEB_DISPLAY_MODE_MINIMAL_UI",j$L:"WEB_DISPLAY_MODE_STANDALONE",YCr:"WEB_DISPLAY_MODE_FULLSCREEN"};g.t(rL,Zv);rL.prototype.getPlayerType=function(){return d4(this,7)}; rL.prototype.WD=function(){return NW(this,19)}; rL.prototype.setVideoId=function(G){return zz(this,19,G)};g.t($t,Zv);g.t(Xk,Zv);g.t(Q4,Zv); var mU3=[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 ICh=new g.b4("loggingContext");g.t(Lx,Zv);g.t(TY,Zv);TY.prototype.WD=function(){return lK(this,BY(this,kk)===1?1:-1)}; TY.prototype.setVideoId=function(G){return M2(this,1,kk,UE(G))}; TY.prototype.getPlaylistId=function(){return lK(this,BY(this,kk)===2?2:-1)}; var kk=[1,2];g.t(itx,Zv);var GC=new g.b4("changeKeyedMarkersVisibilityCommand");var gVh=new g.b4("changeMarkersVisibilityCommand");var qmb=new g.b4("loadMarkersCommand");var pKl=new g.b4("suggestedActionDataViewModel");var VyB=new g.b4("timelyActionViewModel");var atV=new g.b4("timelyActionsOverlayViewModel");var eSb=new g.b4("productListItemRenderer");var UU$=new g.b4("shoppingOverlayRenderer");var eTc=new g.b4("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Od8=new g.b4("adFeedbackEndpoint");var EV$=new g.b4("menuEndpoint");var p3X=new g.b4("phoneDialerEndpoint");var IWH=new g.b4("sendSmsEndpoint");var xcK=new g.b4("copyTextEndpoint");var j59=new g.b4("shareEndpoint"),bdk=new g.b4("shareEntityEndpoint"),yOW=new g.b4("shareEntityServiceEndpoint"),cO3=new g.b4("webPlayerShareEntityServiceEndpoint");g.rI=new g.b4("urlEndpoint");g.o0=new g.b4("watchEndpoint");var nVl=new g.b4("watchPlaylistEndpoint");g.fC3=new g.b4("offlineOrchestrationActionCommand");var Tog=new g.b4("compositeVideoOverlayRenderer");var Hda=new g.b4("miniplayerRenderer");var arx=new g.b4("paidContentOverlayRenderer");var vVC=new g.b4("playerMutedAutoplayOverlayRenderer"),DUJ=new g.b4("playerMutedAutoplayEndScreenRenderer");var iqV=new g.b4("unserializedPlayerResponse"),S7k=new g.b4("unserializedPlayerResponse");var R_C=new g.b4("playlistEditEndpoint");var gs;g.ZU=new g.b4("buttonRenderer");gs=new g.b4("toggleButtonRenderer");var CXc=new g.b4("counterfactualRenderer");var Zdl=new g.b4("resolveUrlCommandMetadata");var rOh=new g.b4("modifyChannelNotificationPreferenceEndpoint");var OAb=new g.b4("pingingEndpoint");var $UC=new g.b4("unsubscribeEndpoint");g.y3=new g.b4("subscribeButtonRenderer");var XKC=new g.b4("subscribeEndpoint");var jMc=new g.b4("buttonViewModel");var tDX=new g.b4("qrCodeRenderer");var ll_={k4f:"LIVING_ROOM_APP_MODE_UNSPECIFIED",R3H:"LIVING_ROOM_APP_MODE_MAIN",HGN:"LIVING_ROOM_APP_MODE_KIDS",dPL:"LIVING_ROOM_APP_MODE_MUSIC",G4d:"LIVING_ROOM_APP_MODE_UNPLUGGED",oJJ:"LIVING_ROOM_APP_MODE_GAMING"};var vEc=new g.b4("autoplaySwitchButtonRenderer");var jt,JZ_,VhB,xQA;jt=new g.b4("decoratedPlayerBarRenderer");JZ_=new g.b4("chapteredPlayerBarRenderer");VhB=new g.b4("multiMarkersPlayerBarRenderer");xQA=new g.b4("chapterRenderer");g.P$y=new g.b4("markerRenderer");var q7$=new g.b4("decoratedPlayheadRenderer");var Z_y=new g.b4("desktopOverlayConfigRenderer");var IZK=new g.b4("engagementPanelSectionListRenderer");var SmX=new g.b4("gatedActionsOverlayViewModel");var BcH=new g.b4("heatMarkerRenderer");var GZx=new g.b4("heatmapRenderer");var Xf9=new g.b4("watchToWatchTransitionRenderer");var WgB=new g.b4("playlistPanelRenderer");var uOC=new g.b4("productUpsellSuggestedActionViewModel");var Q5l=new g.b4("suggestedActionTimeRangeTrigger"),Lda=new g.b4("suggestedActionsRenderer"),TK3=new g.b4("suggestedActionRenderer");var axb=new g.b4("timedMarkerDecorationRenderer");var pX_=new g.b4("cipher");var PjB=new g.b4("playerVars");var s5f=new g.b4("playerVars");var pZ=g.qY.window,FdW,JO3,Fk=(pZ==null?void 0:(FdW=pZ.yt)==null?void 0:FdW.config_)||(pZ==null?void 0:(JO3=pZ.ytcfg)==null?void 0:JO3.data_)||{};g.Qb("yt.config_",Fk);var i4=[];var em9=/^[\w.]*$/,aqB={q:!0,search_query:!0},BAB=String(G9);var lm=new function(){var G=window.document;this.j=window;this.X=G}; g.Qb("yt.ads_.signals_.getAdSignalsString",function(G){return Bh(NI(G))});g.G$();var wGH="XMLHttpRequest"in g.qY?function(){return new XMLHttpRequest}:null;var AOC="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.U(AOC);var NAB={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"},d1B="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.U(AOC)),U1Y=!1,lqV=CCX,Iqb=jK;g.t(ch,z$);Hh.prototype.then=function(G,B,a){return this.j?this.j.then(G,B,a):this.C===1&&G?(G=G.call(a,this.X))&&typeof G.then==="function"?G:Dd(G):this.C===2&&B?(G=B.call(a,this.X))&&typeof G.then==="function"?G:vh(G):this}; Hh.prototype.getValue=function(){return this.X}; Hh.prototype.$goog_Thenable=!0;var SK=!1;var FC=Y4||im;var D1V=/^([0-9\.]+):([0-9\.]+)$/;g.t(kS,z$);kS.prototype.name="BiscottiError";g.t(lP,z$);lP.prototype.name="BiscottiMissingError";var r8V={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Ne=null;var yDV=CV(["data-"]),FKy={};var Y79=0,dE=g.Yj?"webkit":ka?"moz":g.di?"ms":g.jN?"o":"",ids=g.LV("ytDomDomGetNextId")||function(){return++Y79}; g.Qb("ytDomDomGetNextId",ids);var iyY={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};gE.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; gE.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; gE.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var pU=g.qY.ytEventsEventsListeners||{};g.Qb("ytEventsEventsListeners",pU);var M6B=g.qY.ytEventsEventsCounter||{count:0};g.Qb("ytEventsEventsCounter",M6B);var Vbc=NH(function(){var G=!1;try{var B=Object.defineProperty({},"passive",{get:function(){G=!0}}); window.addEventListener("test",null,B)}catch(a){}return G}),GVY=NH(function(){var G=!1; try{var B=Object.defineProperty({},"capture",{get:function(){G=!0}}); window.addEventListener("test",null,B)}catch(a){}return G});var U2;U2=window;g.yT=U2.ytcsi&&U2.ytcsi.now?U2.ytcsi.now:U2.performance&&U2.performance.timing&&U2.performance.now&&U2.performance.timing.navigationStart?function(){return U2.performance.timing.navigationStart+U2.performance.now()}:function(){return(new Date).getTime()};g.BW(bP,g.r);bP.prototype.Y=function(G){G.j===void 0&&PCB(G);var B=G.j;G.X===void 0&&PCB(G);this.j=new g.kj(B,G.X)}; bP.prototype.HM=function(){return this.j||new g.kj}; bP.prototype.zH=function(){if(this.j){var G=(0,g.yT)();if(this.G!=0){var B=this.L,a=this.j,V=B.x-a.x;B=B.y-a.y;V=Math.sqrt(V*V+B*B)/(G-this.G);this.X[this.C]=Math.abs((V-this.B)/this.B)>.5?1:0;for(a=B=0;a<4;a++)B+=this.X[a]||0;B>=3&&this.W();this.B=V}this.G=G;this.L=this.j;this.C=(this.C+1)%4}}; bP.prototype.yb=function(){g.Ih(this.V);g.OU(this.XJ)};g.t(yG,g.r);yG.prototype.K=function(G,B,a,V,x){a=g.ob((0,g.oy)(a,V||this.Yf));a={target:G,name:B,callback:a};var h;x&&Vbc()&&(h={passive:!0});G.addEventListener(B,a.callback,h);this.W.push(a);return a}; yG.prototype.i6=function(G){for(var B=0;B=q.t6)||O.j.version>=A||O.j.objectStoreNames.contains(R)||c.push(R)}K=c;if(K.length===0){p.kf(5);break}l=Object.keys(a.options.IC); k=w.objectStoreNames();if(a.Ba.options.version+1)throw d.close(),a.C=!1,sRB(a,C);return p.return(d);case 8:throw B(), N instanceof Error&&!g.pB("ytidb_async_stack_killswitch")&&(N.stack=N.stack+"\n"+e.substring(e.indexOf("\n")+1)),gP(N,a.name,"",(z=a.options.version)!=null?z:-1);}})} function B(){a.j===V&&(a.j=void 0)} var a=this;if(!this.C)throw sRB(this);if(this.j)return this.j;var V,x={blocking:function(h){h.close()}, closed:B,n3f:B,upgrade:this.options.upgrade};return this.j=V=G()};var T0=new QT("YtIdbMeta",{IC:{databases:{t6:1}},upgrade:function(G,B){B(1)&&g.nN(G,"databases",{keyPath:"actualName"})}});var YR,Ax=new function(){}(new function(){});new g.z_;g.t(ot,QT);ot.prototype.X=function(G,B,a){a=a===void 0?{}:a;return(this.options.shared?GYH:MbB)(G,B,Object.assign({},a))}; ot.prototype.delete=function(G){G=G===void 0?{}:G;return(this.options.shared?xlX:BLz)(this.name,G)};var hYW={},eyb=g.M$("ytGcfConfig",{IC:(hYW.coldConfigStore={t6:1},hYW.hotConfigStore={t6:1},hYW),shared:!1,upgrade:function(G,B){B(1)&&(g.Rt(g.nN(G,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Rt(g.nN(G,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.t(Bn,g.r);Bn.prototype.yb=function(){for(var G=g.m(this.X),B=G.next();!B.done;B=G.next()){var a=this.j;B=a.indexOf(B.value);B>=0&&a.splice(B,1)}this.X.length=0;g.r.prototype.yb.call(this)};Wn.prototype.yS=function(G){this.hotHashData=G;g.Qb("yt.gcf.config.hotHashData",this.hotHashData||null)};var eY9=typeof TextEncoder!=="undefined"?new TextEncoder:null,YvV=eY9?function(G){return eY9.encode(G)}:function(G){G=g.gl(G); for(var B=new Uint8Array(G.length),a=0;a=B?!1:!0}; g.W.KW=function(){var G=this;if(!Rw(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.NH.oT("QUEUED",this.ND).then(function(B){B&&!G.JO(B,G.XN)?G.ra.mw(function(){return g.v(function(a){if(a.j==1)return B.id===void 0?a.kf(2):g.f(a,G.NH.Qj(B.id,G.ND),2);G.KW();g.pV(a)})}):G.uf.JA()&&G.XC()})};var $I;var ctz={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 wqa={},dIx=g.M$("ServiceWorkerLogsDatabase",{IC:(wqa.SWHealthLog={t6:1},wqa),shared:!0,upgrade:function(G,B){B(1)&&g.Rt(g.nN(G,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var u_={},g4b=0;var Q2;TD.prototype.requestComplete=function(G,B){B&&(this.X=!0);G=this.removeParams(G);this.j.get(G)||this.j.set(G,B)}; TD.prototype.isEndpointCFR=function(G){G=this.removeParams(G);return(G=this.j.get(G))?!1:G===!1&&this.X?!0:null}; TD.prototype.removeParams=function(G){return G.split("?")[0]}; TD.prototype.removeParams=TD.prototype.removeParams;TD.prototype.isEndpointCFR=TD.prototype.isEndpointCFR;TD.prototype.requestComplete=TD.prototype.requestComplete;TD.getInstance=FD;g.t(Jd,g.oL);g.W=Jd.prototype;g.W.JA=function(){return this.j.JA()}; g.W.ZF=function(G){this.j.j=G}; g.W.fxJ=function(){var G=window.navigator.onLine;return G===void 0?!0:G}; g.W.Xk=function(){this.X=!0}; g.W.listen=function(G,B){return this.j.listen(G,B)}; g.W.O7=function(G){G=$0(this.j,G);G.then(function(B){g.pB("use_cfr_monitor")&&FD().requestComplete("generate_204",B)}); return G}; Jd.prototype.sendNetworkCheckRequest=Jd.prototype.O7;Jd.prototype.listen=Jd.prototype.listen;Jd.prototype.enableErrorFlushing=Jd.prototype.Xk;Jd.prototype.getWindowStatus=Jd.prototype.fxJ;Jd.prototype.networkStatusHint=Jd.prototype.ZF;Jd.prototype.isNetworkAvailable=Jd.prototype.JA;Jd.getInstance=OBX;g.t(g.Ad,g.oL);g.Ad.prototype.JA=function(){var G=g.LV("yt.networkStatusManager.instance.isNetworkAvailable");return G?G.bind(this.X)():!0}; g.Ad.prototype.ZF=function(G){var B=g.LV("yt.networkStatusManager.instance.networkStatusHint").bind(this.X);B&&B(G)}; g.Ad.prototype.O7=function(G){var B=this,a;return g.v(function(V){a=g.LV("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(B.X);return g.pB("skip_network_check_if_cfr")&&FD().isEndpointCFR("generate_204")?V.return(new Promise(function(x){var h;B.ZF(((h=window.navigator)==null?void 0:h.onLine)||!0);x(B.JA())})):a?V.return(a(G)):V.return(!0)})};var YI;g.t(i_,Z1);i_.prototype.writeThenSend=function(G,B){B||(B={});B=ow(G,B);g.At()||(this.j=!1);Z1.prototype.writeThenSend.call(this,G,B)}; i_.prototype.sendThenWrite=function(G,B,a){B||(B={});B=ow(G,B);g.At()||(this.j=!1);Z1.prototype.sendThenWrite.call(this,G,B,a)}; i_.prototype.sendAndWrite=function(G,B){B||(B={});B=ow(G,B);g.At()||(this.j=!1);Z1.prototype.sendAndWrite.call(this,G,B)}; i_.prototype.awaitInitialization=function(){return this.C.promise};var cMH=g.qY.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Qb("ytNetworklessLoggingInitializationOptions",cMH);g.MM.prototype.isReady=function(){!this.config_&&Etb()&&(this.config_=g.Ki());return!!this.config_};var Kta,aZ,xl;Kta=g.qY.ytPubsubPubsubInstance||new g.bu;aZ=g.qY.ytPubsubPubsubSubscribedKeys||{};xl=g.qY.ytPubsubPubsubTopicToKeys||{};g.VE=g.qY.ytPubsubPubsubIsSynchronous||{};g.bu.prototype.subscribe=g.bu.prototype.subscribe;g.bu.prototype.unsubscribeByKey=g.bu.prototype.y_;g.bu.prototype.publish=g.bu.prototype.publish;g.bu.prototype.clear=g.bu.prototype.clear;g.Qb("ytPubsubPubsubInstance",Kta);g.Qb("ytPubsubPubsubTopicToKeys",xl);g.Qb("ytPubsubPubsubIsSynchronous",g.VE); g.Qb("ytPubsubPubsubSubscribedKeys",aZ);var SqX={};g.t(Cg,g.r);Cg.prototype.append=function(G){if(!this.X)throw Error("This does not support the append operation");G=G.dO();this.dO().appendChild(G)}; g.t(zs,Cg);zs.prototype.dO=function(){return this.j};g.t(th,g.r);th.prototype.onTouchStart=function(G){this.W=!0;this.X=G.touches.length;this.j.isActive()&&(this.j.stop(),this.B=!0);G=G.touches;this.L=rMH(this,G)||G.length!=1;var B=G.item(0);this.L||!B?this.Y=this.V=Infinity:(this.V=B.clientX,this.Y=B.clientY);for(B=this.C.length=0;B=0)}if(B||G&&Math.pow(G.clientX-this.V,2)+Math.pow(G.clientY-this.Y,2)>25)this.G=!0}; th.prototype.onTouchEnd=function(G){var B=G.changedTouches;B&&this.W&&this.X==1&&!this.G&&!this.B&&!this.L&&rMH(this,B)&&(this.zH=G,this.j.start());this.X=G.touches.length;this.X===0&&(this.G=this.W=!1,this.C.length=0);this.B=!1};var mh=Date.now().toString();var yE={};var vD=Symbol("injectionDeps");ng.prototype.toString=function(){return"InjectionToken("+this.name+")"}; qqz.prototype.resolve=function(G){return G instanceof fg?DN(this,G.key,[],!0):DN(this,G,[])};var S5;var ZN=window;var q5=g.pB("web_enable_lifecycle_monitoring")&&rr()!==0,JMB=g.pB("web_enable_lifecycle_monitoring");T1z.prototype.cancel=function(){for(var G=g.m(this.j),B=G.next();!B.done;B=G.next())B=B.value,B.jobId===void 0||B.oD||this.scheduler.QC(B.jobId),B.oD=!0;this.X.resolve()};g.W=u9.prototype;g.W.install=function(G){this.plugins.push(G);return this}; g.W.uninstall=function(){var G=this;g.Hz.apply(0,arguments).forEach(function(B){B=G.plugins.indexOf(B);B>-1&&G.plugins.splice(B,1)})}; g.W.transition=function(G,B){var a=this;q5&&QhA(this.state);var V=this.transitions.find(function(h){return Array.isArray(h.from)?h.from.find(function(e){return e===a.state&&h.h7===G}):h.from===a.state&&h.h7===G}); if(V){this.X&&(shz(this.X),this.X=void 0);AMx(this,G,B);this.state=G;q5&&$l(this.state);V=V.action.bind(this);var x=this.plugins.filter(function(h){return h[G]}).map(function(h){return h[G]}); V(Fex(this,x),B)}else throw Error("no transition specified from "+this.state+" to "+G);}; g.W.PUX=function(G){var B=g.Hz.apply(1,arguments);g.Me();for(var a=g.m(G),V=a.next(),x={};!V.done;x={Vx:void 0},V=a.next())x.Vx=V.value,tbz(function(h){return function(){Lg(h.Vx.name);F8(function(){return h.Vx.callback.apply(h.Vx,g.U(B))}); Ts(h.Vx.name)}}(x))}; g.W.pxB=function(G){var B=g.Hz.apply(1,arguments),a,V,x,h;return g.v(function(e){e.j==1&&(g.Me(),a=g.m(G),V=a.next(),x={});if(e.j!=3){if(V.done)return e.kf(0);x.IH=V.value;x.R_=void 0;h=function(w){return function(){Lg(w.IH.name);var K=F8(function(){return w.IH.callback.apply(w.IH,g.U(B))}); Wp(K)?w.R_=g.pB("web_lifecycle_error_handling_killswitch")?K.then(function(){Ts(w.IH.name)}):K.then(function(){Ts(w.IH.name)},function(l){LeB(l); Ts(w.IH.name)}):Ts(w.IH.name)}}(x); tbz(h);return x.R_?g.f(e,x.R_,3):e.kf(3)}x={IH:void 0,R_:void 0};V=a.next();return e.kf(2)})}; g.W.lO=function(G){var B=g.Hz.apply(1,arguments),a=this,V=G.map(function(x){return{r4:function(){Lg(x.name);F8(function(){return x.callback.apply(x,g.U(B))}); Ts(x.name)}, priority:QE(a,x)}}); V.length&&(this.X=new T1z(V))}; g.w_.Object.defineProperties(u9.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Ah;g.t(Jh,u9);Jh.prototype.B=function(G,B){var a=this;this.j=g.PH(0,function(){a.currentState==="application_navigating"&&a.transition("none")},5E3); G(B==null?void 0:B.event)}; Jh.prototype.L=function(G,B){this.j&&(g.q1.QC(this.j),this.j=null);G(B==null?void 0:B.event)};var gz=[];g.Qb("yt.logging.transport.getScrapedGelPayloads",function(){return gz});Yl.prototype.storePayload=function(G,B){G=i9(G);this.store[G]?this.store[G].push(B):(this.X={},this.store[G]=[B]);this.j++;g.pB("more_accurate_gel_parser")&&(B=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(B));return G}; Yl.prototype.smartExtractMatchingEntries=function(G){if(!G.keys.length)return[];for(var B=oZ(this,G.keys.splice(0,1)[0]),a=[],V=0;V=0){V=!1;break a}}V=!0}V&&(B=qT(B))&&this.Sx(B)}}; g.W.jl=function(G){return G}; g.W.onTouchStart=function(G){this.HS.onTouchStart(G)}; g.W.onTouchMove=function(G){this.HS.onTouchMove(G)}; g.W.onTouchEnd=function(G){if(this.HS)this.HS.onTouchEnd(G)}; g.W.Sx=function(G){this.layoutId?this.lL.executeCommand(G,this.layoutId):g.RA(new g.FI("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.W.createServerVe=function(G,B){this.api.createServerVe(G,this);this.api.setTrackingParams(G,B)}; g.W.logVisibility=function(G,B){this.api.hasVe(G)&&this.api.logVisibility(G,B,this.interactionLoggingClientData)}; g.W.yb=function(){this.clear(null);this.i6(this.eJ);for(var G=g.m(this.GH),B=G.next();!B.done;B=G.next())this.i6(B.value);g.dI.prototype.yb.call(this)};g.t(DG,Cr); DG.prototype.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);this.j=B;if(B.text==null&&B.icon==null)g.Zb(Error("ButtonRenderer did not have text or an icon set."));else{switch(B.style||null){case "STYLE_UNKNOWN":G="ytp-ad-button-link";break;default:G=null}G!=null&&g.hi(this.element,G);B.text!=null&&(G=g.tU(B.text),g.O3(G)||(this.element.setAttribute("aria-label",G),this.C=new g.dI({Z:"span",J:"ytp-ad-button-text",cS:G}),g.X(this,this.C),this.C.iL(this.element)));B.accessibilityData&&B.accessibilityData.accessibilityData&& B.accessibilityData.accessibilityData.label&&!g.O3(B.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",B.accessibilityData.accessibilityData.label);B.icon!=null&&(B=vr(B.icon,this.G),B!=null&&(this.X=new g.dI({Z:"span",J:"ytp-ad-button-icon",D:[B]}),g.X(this,this.X)),this.L?VX(this.element,this.X.element,0):this.X.iL(this.element))}}; DG.prototype.clear=function(){this.hide()}; DG.prototype.onClick=function(G){Cr.prototype.onClick.call(this,G);G=g.m(uC9(this));for(var B=G.next();!B.done;B=G.next())B=B.value,this.layoutId?this.lL.executeCommand(B,this.layoutId):g.RA(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.t(ST,g.r);ST.prototype.yb=function(){this.X&&g.OU(this.X);this.j.clear();Rx=null;g.r.prototype.yb.call(this)}; ST.prototype.register=function(G,B){B&&this.j.set(G,B)}; var Rx=null;g.t($9,Cr); $9.prototype.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);G=B.hoverText||null;B=B.button&&g.u(B.button,g.ZU)||null;B==null?g.RA(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new DG(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,void 0,void 0,void 0,void 0,this.C),g.X(this,this.button),this.button.init(eT("button"),B,this.macros),G&&this.button.element.setAttribute("aria-label",g.tU(G)),this.button.iL(this.element),this.Y&&!g.x$(this.button.element, "ytp-ad-clickable")&&g.hi(this.button.element,"ytp-ad-clickable"),this.C&&(g.hi(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.S("clean_player_style_fix_on_web")&&g.hi(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),G&&(this.X=new g.dI({Z:"div",J:"ytp-ad-hover-text-container"}),this.L&&(B=new g.dI({Z:"div",J:"ytp-ad-hover-text-callout"}),B.iL(this.X.element),g.X(this,B)),g.X(this,this.X),this.X.iL(this.element),B=ZG(G),VX(this.X.element,B,0)), this.show())}; $9.prototype.hide=function(){this.button&&this.button.hide();this.X&&this.X.hide();Cr.prototype.hide.call(this)}; $9.prototype.show=function(){this.button&&this.button.show();Cr.prototype.show.call(this)};g.t(qs,Cr); qs.prototype.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);a=(G=B.thumbnail)&&Xx(G)||"";g.O3(a)?Math.random()<.01&&g.Zb(Error("Found AdImage without valid image URL")):(this.j?g.K4(this.element,"backgroundImage","url("+a+")"):A$(this.element,{src:a}),A$(this.element,{alt:G&&G.accessibility&&G.accessibility.label||""}),B&&B.adRendererCommands&&B.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; qs.prototype.clear=function(){this.hide()};g.t(ue,Cr);g.W=ue.prototype;g.W.hide=function(){Cr.prototype.hide.call(this);this.C&&this.C.focus()}; g.W.show=function(){this.C=document.activeElement;Cr.prototype.show.call(this);this.G.focus()}; g.W.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);this.X=B;B.dialogMessages||B.title!=null?B.confirmLabel==null?g.RA(Error("ConfirmDialogRenderer.confirmLabel was not set.")):B.cancelLabel==null?g.RA(Error("ConfirmDialogRenderer.cancelLabel was not set.")):stx(this,B):g.RA(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.W.clear=function(){g.nU(this.j);this.hide()}; g.W.DE=function(){this.hide()}; g.W.GT=function(){var G=this.X.cancelEndpoint;G&&(this.layoutId?this.lL.executeCommand(G,this.layoutId):g.RA(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.W.e4=function(){var G=this.X.confirmNavigationEndpoint||this.X.confirmEndpoint;G&&(this.layoutId?this.lL.executeCommand(G,this.layoutId):g.RA(Error("Missing layoutId for confirm dialog.")));this.hide()};g.t(Qp,Cr);g.W=Qp.prototype; g.W.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);this.C=B;if(B.defaultText==null&&B.defaultIcon==null)g.RA(Error("ToggleButtonRenderer must have either text or icon set."));else if(B.defaultIcon==null&&B.toggledIcon!=null)g.RA(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(B.style){switch(B.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":G="ytp-ad-toggle-button-default-style";break;default:G=null}G!=null&&g.hi(this.G,G)}G={};B.defaultText? (a=g.tU(B.defaultText),g.O3(a)||(G.buttonText=a,this.api.U().experiments.Or("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",a),this.api.U().experiments.Or("fix_h5_toggle_button_a11y")&&this.X.setAttribute("aria-label",a))):g.OK(this.Zx,!1);B.defaultTooltip&&(G.tooltipText=B.defaultTooltip,this.j.hasAttribute("aria-label")||this.X.setAttribute("aria-label",B.defaultTooltip));B.defaultIcon?(a=vr(B.defaultIcon),this.updateValue("untoggledIconTemplateSpec",a),B.toggledIcon?(this.XJ= !0,a=vr(B.toggledIcon),this.updateValue("toggledIconTemplateSpec",a)):(g.OK(this.Y,!0),g.OK(this.L,!1)),g.OK(this.j,!1)):g.OK(this.X,!1);g.yw(G)||this.update(G);B.isToggled&&(g.hi(this.G,"ytp-ad-toggle-button-toggled"),this.toggleButton(B.isToggled));Lr(this);this.K(this.element,"change",this.Fw);this.show()}}; g.W.onClick=function(G){this.GH.length>0&&(this.toggleButton(!this.isToggled()),this.Fw());Cr.prototype.onClick.call(this,G)}; g.W.Fw=function(){g.Km(this.G,"ytp-ad-toggle-button-toggled",this.isToggled());for(var G=g.m(Fvx(this,this.isToggled())),B=G.next();!B.done;B=G.next())B=B.value,this.layoutId?this.lL.executeCommand(B,this.layoutId):g.RA(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Lr(this)}; g.W.clear=function(){this.hide()}; g.W.toggleButton=function(G){g.Km(this.G,"ytp-ad-toggle-button-toggled",G);this.j.checked=G;Lr(this)}; g.W.isToggled=function(){return this.j.checked};g.t(Tn,yG);Tn.prototype.L=function(G){if(Array.isArray(G)){G=g.m(G);for(var B=G.next();!B.done;B=G.next())B=B.value,B instanceof JxK&&this.G(B)}};g.t(sX,Cr);g.W=sX.prototype;g.W.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);B.reasons?B.confirmLabel==null?g.RA(Error("AdFeedbackRenderer.confirmLabel was not set.")):(B.cancelLabel==null&&g.Zb(Error("AdFeedbackRenderer.cancelLabel was not set.")),B.title==null&&g.Zb(Error("AdFeedbackRenderer.title was not set.")),PTx(this,B)):g.RA(Error("AdFeedbackRenderer.reasons were not set."))}; g.W.clear=function(){EU(this.L);EU(this.Y);this.G.length=0;this.hide()}; g.W.hide=function(){this.j&&this.j.hide();this.X&&this.X.hide();Cr.prototype.hide.call(this);this.C&&this.C.focus()}; g.W.show=function(){this.j&&this.j.show();this.X&&this.X.show();this.C=document.activeElement;Cr.prototype.show.call(this);this.L.focus()}; g.W.lS=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.W.xDS=function(){this.hide()}; Fx.prototype.dO=function(){return this.j.element}; Fx.prototype.getCommand=function(){return this.X}; Fx.prototype.isChecked=function(){return this.C.checked};g.t(JU,ue);JU.prototype.DE=function(G){ue.prototype.DE.call(this,G);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; JU.prototype.GT=function(G){ue.prototype.GT.call(this,G);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; JU.prototype.e4=function(G){ue.prototype.e4.call(this,G);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.t(AU,Cr);g.W=AU.prototype; g.W.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);this.L=B;if(B.dialogMessage==null&&B.title==null)g.RA(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{B.confirmLabel==null&&g.Zb(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(G=B.closeOverlayRenderer&&g.u(B.closeOverlayRenderer,g.ZU)||null)this.j=new DG(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.X(this,this.j),this.j.init(eT("button"),G,this.macros),this.j.iL(this.element);B.title&&(G=g.tU(B.title),this.updateValue("title",G));if(B.adReasons)for(G=B.adReasons,a=0;a=this.Qb?(this.XJ.hide(),this.Er=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(G=Math.max(0,Math.ceil((this.Qb-G)/1E3)),G!=this.MB&&(Pr(this.C,{TIME_REMAINING:String(G)}),this.MB=G)))}};g.t(xN,ox);g.W=xN.prototype; g.W.init=function(G,B,a){ox.prototype.init.call(this,G,B,a);if(B.image&&B.image.thumbnail)if(B.headline)if(B.description)if((G=B.actionButton&&g.u(B.actionButton,g.ZU))&&G.navigationEndpoint){var V=this.api.getVideoData(2);if(V!=null)if(B.image&&B.image.thumbnail){var x=B.image.thumbnail.thumbnails;x!=null&&x.length>0&&g.O3(g.iR(x[0].url))&&(x[0].url=V.profilePicture)}else g.Zb(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(eT("ad-image"),B.image,a);this.L.init(eT("ad-text"), B.headline,a);this.G.init(eT("ad-text"),B.description,a);this.X.init(eT("button"),G,a);a=sr(this.X.element);T3(this.X.element,a+" This link opens in new tab");this.XJ=G.navigationEndpoint;this.api.dU()||this.show();this.api.U().S("enable_larger_flyout_cta_on_desktop")&&(this.d1("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.d1("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.d1("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.d1("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.d1("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.d1("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.X.element.classList.add("ytp-flyout-cta-action-button-large"),this.X.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.d1("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.Xw.bind(this));this.Zx=B.startMs||0;Ms(this)}else g.RA(Error("FlyoutCtaRenderer has no valid action button."));else g.RA(Error("FlyoutCtaRenderer has no description AdText."));else g.RA(Error("FlyoutCtaRenderer has no headline AdText."));else g.Zb(Error("FlyoutCtaRenderer has no image."))}; g.W.onClick=function(G){ox.prototype.onClick.call(this,G);this.api.pauseVideo();!g.hw(this.X.element,G.target)&&this.XJ&&(this.layoutId?this.lL.executeCommand(this.XJ,this.layoutId):g.RA(Error("Missing layoutId for flyout cta.")))}; g.W.z4=function(){if(this.j){var G=this.j.getProgressState();(G&&G.current||this.Qb)&&1E3*G.current>=this.Zx&&(G7(this),g.WC(this.element,"ytp-flyout-cta-inactive"),this.X.element.removeAttribute("tabIndex"))}}; g.W.zS=function(){this.clear()}; g.W.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Xw.bind(this))}; g.W.show=function(){this.X&&this.X.show();ox.prototype.show.call(this)}; g.W.hide=function(){this.X&&this.X.hide();ox.prototype.hide.call(this)}; g.W.Xw=function(G){G=="hidden"?this.show():this.hide()};g.t(hn,Cr);g.W=hn.prototype; g.W.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);this.j=B;if(this.j.rectangle)for(G=this.j.likeButton&&g.u(this.j.likeButton,gs),B=this.j.dislikeButton&&g.u(this.j.dislikeButton,gs),this.C.init(eT("toggle-button"),G,a),this.X.init(eT("toggle-button"),B,a),this.K(this.element,"change",this.Cj),this.G.show(100),this.show(),a=g.m(this.j&&this.j.impressionCommands||[]),G=a.next();!G.done;G=a.next())G=G.value,this.layoutId?this.lL.executeCommand(G,this.layoutId):g.RA(Error("Missing layoutId for instream user sentiment."))}; g.W.clear=function(){this.hide()}; g.W.hide=function(){this.C.hide();this.X.hide();Cr.prototype.hide.call(this)}; g.W.show=function(){this.C.show();this.X.show();Cr.prototype.show.call(this)}; g.W.Cj=function(){$VX(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.pN("onYtShowToast",this.j.postMessageAction);this.G.hide()}; g.W.onClick=function(G){this.GH.length>0&&this.Cj();Cr.prototype.onClick.call(this,G)};g.t(eu,g.r);g.W=eu.prototype;g.W.yb=function(){this.reset();g.r.prototype.yb.call(this)}; g.W.reset=function(){g.nU(this.G);this.L=!1;this.j&&this.j.stop();this.B.stop();this.C&&(this.C=!1,this.W.play())}; g.W.start=function(){this.reset();this.G.K(this.X,"mouseover",this.ol,this);this.G.K(this.X,"mouseout",this.y7,this);this.zH&&(this.G.K(this.X,"focusin",this.ol,this),this.G.K(this.X,"focusout",this.y7,this));this.j?this.j.start():(this.L=this.C=!0,g.K4(this.X,{opacity:this.Y}))}; g.W.ol=function(){this.C&&(this.C=!1,this.W.play());this.B.stop();this.j&&this.j.stop()}; g.W.y7=function(){this.L?this.B.start():this.j&&this.j.start()}; g.W.AR=function(){this.C||(this.C=!0,this.V.play(),this.L=!0)};var KH9=[new Wm("b.f_",!1,0),new Wm("j.s_",!1,2),new Wm("r.s_",!1,4),new Wm("e.h_",!1,6),new Wm("i.s_",!0,8),new Wm("s.t_",!1,10),new Wm("p.h_",!1,12),new Wm("s.i_",!1,14),new Wm("f.i_",!1,16),new Wm("a.b_",!1,18),new Wm("a.o_",!1),new Wm("g.o_",!1,22),new Wm("p.i_",!1,24),new Wm("p.m_",!1),new Wm("i.k_",!0,28),new Wm("n.k_",!0,20),new Wm("i.f_",!1),new Wm("a.s_",!0),new Wm("m.c_",!1),new Wm("n.h_",!1,26),new Wm("o.p_",!1)].reduce(function(G,B){G[B.X]=B;return G},{});g.t(z7,ox);g.W=z7.prototype; g.W.init=function(G,B,a){ox.prototype.init.call(this,G,B,a);this.XJ=B;(this.Zx=kDY(this))&&g.Zb(Error("hasAdControlInClickCommands_ is true."));if(!B||g.yw(B))g.RA(Error("SkipButtonRenderer was not specified or empty."));else if(!B.message||g.yw(B.message))g.RA(Error("SkipButtonRenderer.message was not specified or empty."));else{G=this.L?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};B=vr(G);B==null?g.RA(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+G.iconType+".")): (this.G=new g.dI({Z:"button",bL:[this.L?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],D:[{Z:"span",J:this.L?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",D:[B]}]}),g.X(this,this.G),this.G.iL(this.C.element),this.X=new ie(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,"ytp-ad-skip-button-text"),this.L&&this.X.element.classList.add("ytp-ad-skip-button-text-centered"),this.X.init(eT("ad-text"),this.XJ.message,a),g.X(this,this.X),VX(this.G.element,this.X.element, 0));var V=V===void 0?null:V;a=this.api.U();!(this.GH.length>0)&&a.X&&(Mp?0:"ontouchstart"in document.documentElement&&(vKK()||mr()))&&(this.i6(this.eJ),V&&this.i6(V),this.GH=[this.K(this.element,"touchstart",this.onTouchStart,this),this.K(this.element,"touchmove",this.onTouchMove,this),this.K(this.element,"touchend",this.onTouchEnd,this)])}}; g.W.clear=function(){this.Qb.reset();this.hide()}; g.W.hide=function(){this.C.hide();this.X&&this.X.hide();G7(this);ox.prototype.hide.call(this)}; g.W.onClick=function(G){if(this.G!=null){if(G){var B=G||window.event;B.returnValue=!1;B.preventDefault&&B.preventDefault()}var a;if(WH9(G,{contentCpn:((a=this.api.getVideoData(1))==null?void 0:a.clientPlaybackNonce)||""})===0)this.api.pN("onAbnormalityDetected");else if(ox.prototype.onClick.call(this,G),this.publish("j"),this.api.pN("onAdSkip"),this.Er||!this.Zx)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.W.jl=function(G){if(!this.Er)return this.Zx&&kN("SkipButton click commands not pruned while ALC exist"),G;var B,a=(B=g.u(G,g.tn))==null?void 0:B.commands;if(!a)return G;G=[];for(B=0;B=this.L&&NgA(this,!0)};g.t(Ic,DG);Ic.prototype.init=function(G,B,a){DG.prototype.init.call(this,G,B,a);G=!1;B.text!=null&&(G=g.tU(B.text),G=!g.O3(G));G?B.navigationEndpoint==null?g.Zb(Error("No visit advertiser clickthrough provided in renderer,")):B.style!=="STYLE_UNKNOWN"?g.Zb(Error("Button style was not a link-style type in renderer,")):this.show():g.Zb(Error("No visit advertiser text was present in the renderer."))};g.t(gv,Cr); gv.prototype.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);G=B.text;g.O3(zn(G))?g.Zb(Error("SimpleAdBadgeRenderer has invalid or empty text")):(G&&G.text&&(B=G.text,this.C&&!this.X&&(B=this.api.U(),B=G.text+" "+(B&&B.X?"\u2022":"\u00b7")),B={text:B,isTemplated:G.isTemplated},G.style&&(B.style=G.style),G.targetId&&(B.targetId=G.targetId),G=new ie(this.api,this.layoutId,this.interactionLoggingClientData,this.lL),G.init(eT("simple-ad-badge"),B,a),G.iL(this.element),g.X(this,G)),this.show())}; gv.prototype.clear=function(){this.hide()};g.t(pY,Wr);g.t(U5,g.wI);g.W=U5.prototype;g.W.QP=function(){return this.durationMs}; g.W.stop=function(){this.j&&this.yv.i6(this.j)}; g.W.BC=function(G){this.X={seekableStart:0,seekableEnd:this.durationMs/1E3,current:G.current};this.publish("h")}; g.W.getProgressState=function(){return this.X}; g.W.Q$=function(G){g.CY(G,2)&&this.publish("g")};g.t(O5,g.wI);g.W=O5.prototype;g.W.QP=function(){return this.durationMs}; g.W.start=function(){this.j||(this.j=!0,this.Pn.start())}; g.W.stop=function(){this.j&&(this.j=!1,this.Pn.stop())}; g.W.BC=function(){this.QH+=100;var G=!1;this.QH>this.durationMs&&(this.QH=this.durationMs,this.Pn.stop(),G=!0);this.X={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.QH/1E3};this.publish("h");G&&this.publish("g")}; g.W.getProgressState=function(){return this.X};g.t(by,ox);g.W=by.prototype;g.W.init=function(G,B,a){ox.prototype.init.call(this,G,B,a);var V;if(B==null?0:(V=B.templatedCountdown)==null?0:V.templatedAdText){G=B.templatedCountdown.templatedAdText;if(!G.isTemplated){g.Zb(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.X=new ie(this.api,this.layoutId,this.interactionLoggingClientData,this.lL);this.X.init(eT("ad-text"),G,{});this.X.iL(this.element);g.X(this,this.X)}this.show()}; g.W.clear=function(){this.hide()}; g.W.hide=function(){G7(this);ox.prototype.hide.call(this)}; g.W.zS=function(){this.hide()}; g.W.z4=function(){if(this.j!=null){var G=this.j.getProgressState();if(G!=null&&G.current!=null&&this.X){var B=this.j instanceof U5?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:G.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.j instanceof O5?G.seekableEnd:this.api.getDuration(2,!1);G=G.current;var a,V,x=((a=this.api.getVideoData())==null?0:(V=a.cn)==null?0:V.call(a))?Math.max(B-G,0):B-G;Pr(this.X,{FORMATTED_AD_DURATION_REMAINING:String(g.E5(x)), TIME_REMAINING:String(Math.ceil(x))})}}}; g.W.show=function(){Ms(this);ox.prototype.show.call(this)};g.t(yd,ie);yd.prototype.onClick=function(G){ie.prototype.onClick.call(this,G);this.api.onAdUxClicked(this.componentType)};g.t(nY,Cr);nY.prototype.init=function(G,B){Cr.prototype.init.call(this,G,B,{});if(G=B.content){g.es(this.element,G);var a,V;B=((a=B.interaction)==null?void 0:(V=a.accessibility)==null?void 0:V.label)||G;this.element.setAttribute("aria-label",B)}else g.RA(Error("AdSimpleAttributedString does not have text content"))}; nY.prototype.clear=function(){this.hide()}; nY.prototype.onClick=function(G){Cr.prototype.onClick.call(this,G)};g.t(fY,Cr); fY.prototype.init=function(G,B){Cr.prototype.init.call(this,G,B,{});(G=B.label)&&G.content&&!g.O3(G.content)?(this.adBadgeText.init(eT("ad-simple-attributed-string"),new cm(G)),(B=B.adPodIndex)&&B.content&&!g.O3(B.content)&&(this.j=new nY(this.api,this.layoutId,this.interactionLoggingClientData,this.lL),this.j.iL(this.element),g.X(this,this.j),this.j.element.classList.add("ytp-ad-badge__pod-index"),this.j.init(eT("ad-simple-attributed-string"),new cm(B))),this.element.classList.add(this.X?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.RA(Error("No label is returned in AdBadgeViewModel."))}; fY.prototype.show=function(){this.adBadgeText.show();var G;(G=this.j)==null||G.show();Cr.prototype.show.call(this)}; fY.prototype.hide=function(){this.adBadgeText.hide();var G;(G=this.j)==null||G.hide();Cr.prototype.hide.call(this)};g.t(Hm,Cr); Hm.prototype.init=function(G,B){Cr.prototype.init.call(this,G,B,{});(G=B.adPodIndex)&&G.content&&!g.O3(G.content)&&(this.j=new nY(this.api,this.layoutId,this.interactionLoggingClientData,this.lL),this.j.iL(this.element),g.X(this,this.j),this.j.init(eT("ad-simple-attributed-string"),new cm(G)),(this.api.U().S("clean_player_style_fix_on_web")?B.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.X||B.visibilityCondition!=="AD_POD_INDEX_VISIBILITY_CONDITION_ALWAYS_SHOW_IF_NONSKIPPABLE")&&this.element.classList.add("ytp-ad-pod-index--autohide")); this.element.classList.add("ytp-ad-pod-index--stark");this.api.S("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()}; Hm.prototype.show=function(){var G;(G=this.j)==null||G.show();Cr.prototype.show.call(this)}; Hm.prototype.hide=function(){var G;(G=this.j)==null||G.hide();Cr.prototype.hide.call(this)};g.t(vm,Cr); vm.prototype.init=function(G,B){Cr.prototype.init.call(this,G,B,{});if(B!=null&&B.text){var a;if(((a=B.text)==null?0:a.content)&&!g.O3(B.text.content)){this.j=new g.dI({Z:"div",J:"ytp-ad-disclosure-banner__text",cS:B.text.content});g.X(this,this.j);this.j.iL(this.element);var V,x;G=((V=B.interaction)==null?void 0:(x=V.accessibility)==null?void 0:x.label)||B.text.content;this.element.setAttribute("aria-label",G);var h;if((h=B.interaction)==null?0:h.onTap)this.X=new g.dI({Z:"div",J:"ytp-ad-disclosure-banner__chevron",D:[g.pr()]}), g.X(this,this.X),this.X.iL(this.element);this.show()}}else g.RA(Error("No banner text found in AdDisclosureBanner."))}; vm.prototype.clear=function(){this.hide()};D$.prototype.getLength=function(){return this.j-this.X};g.t(Rc,g.dI);Rc.prototype.BC=function(){var G=this.X.getProgressState(),B=G.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.U().S("show_preskip_progress_bar_for_skippable_ads")&&(B=this.C?this.C/1E3:G.seekableEnd);G=Su(new D$(G.seekableStart,B),G.current,0);this.progressBar.style.width=G*100+"%"}; Rc.prototype.onStateChange=function(){g.R$(this.api.U())||(this.api.getPresentingPlayerType()===2?this.j===-1&&(this.show(),this.j=this.X.subscribe("h",this.BC,this),this.BC()):this.j!==-1&&(this.hide(),this.X.y_(this.j),this.j=-1))};g.t(Z$,Cr); Z$.prototype.init=function(G,B,a,V){Cr.prototype.init.call(this,G,B,a);a=!0;if(B.skipOrPreviewRenderer){if(G=g.u(B.skipOrPreviewRenderer,hP)){var x=new mJ(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.X,this.Y);x.iL(this.SJ);x.init(eT("skip-button"),G,this.macros);g.X(this,x)}if(G=g.u(B.skipOrPreviewRenderer,hP)){a=!1;var h=G.skipOffsetMilliseconds}}B.brandInteractionRenderer&&(G=B.brandInteractionRenderer.brandInteractionRenderer,x=new hn(this.api,this.layoutId,this.interactionLoggingClientData, this.lL),x.iL(this.Zx),x.init(eT("instream-user-sentiment"),G,this.macros),g.X(this,x));if(G=g.u(B,s23))if(G=g.u(G,s23))x=new xN(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.X,!!B.showWithoutLinkedMediaLayout),g.X(this,x),x.iL(this.L),x.init(eT("flyout-cta"),G,this.macros);G=(this.api.U().S("disable_ad_duration_remaining_for_instream_video_ads")||B.adPodIndex!==void 0)&&!1;V=V&&V.videoAdDurationSeconds;if(B.adBadgeRenderer){var e=B.adBadgeRenderer;x=g.u(e,L7);x!=null?(e=new fY(this.api, this.layoutId,this.interactionLoggingClientData,this.lL,G),g.X(this,e),e.iL(this.j),e.init(eT("ad-badge"),x,this.macros),this.C=e.element):(x=e.simpleAdBadgeRenderer,x==null&&(x={text:{text:"Anuncio",isTemplated:!1}}),e=new gv(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,!0),g.X(this,e),e.iL(this.j),e.init(eT("simple-ad-badge"),x,this.macros))}B.adPodIndex&&(x=g.u(B.adPodIndex,BK2),x!=null&&(a=new Hm(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,a),g.X(this, a),a.iL(this.j),a.init(eT("ad-pod-index"),x)));B.adDurationRemaining&&!B.showWithoutLinkedMediaLayout&&(a=B.adDurationRemaining.adDurationRemainingRenderer,a==null&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),V=new by(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.X,V,G),g.X(this,V),V.iL(this.j),V.init(eT("ad-duration-remaining"),a,this.macros),G&&V.element.classList.add("ytp-ad-duration-remaining-autohide"));B.adInfoRenderer&& (V=g.u(B.adInfoRenderer,Sh))&&(a=new Y9(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.element,void 0,G),g.X(this,a),this.api.U().S("enable_ad_pod_index_autohide")&&this.C!==null?this.j.insertBefore(a.element,this.C.nextSibling):a.iL(this.j),a.init(eT("ad-info-hover-text-button"),V,this.macros));B.visitAdvertiserRenderer&&(a=g.u(B.visitAdvertiserRenderer,g.ZU))&&(x=z3V(this)&&this.G?this.G:this.j)&&(V=new Ic(this.api,this.layoutId,this.interactionLoggingClientData,this.lL), g.X(this,V),V.iL(x),V.init(eT("visit-advertiser"),a,this.macros),QP(V.element),a=sr(V.element),T3(V.element,a+" This link opens in new tab"));!(V=this.api.U())||g.DB(V)||V.controlsType!="3"&&!V.disableOrganicUi||(h=new Rc(this.api,this.X,h,G),h.iL(this.Qb),g.X(this,h));B.adDisclosureBannerRenderer&&(B=g.u(B.adDisclosureBannerRenderer,Gvf))&&(h=new vm(this.api,this.layoutId,this.interactionLoggingClientData,this.lL),h.iL(this.XJ),h.init(eT("ad-disclosure-banner"),B),g.X(this,h));this.api.U().S("enable_updated_html5_player_focus_style")&& g.hi(this.element,"ytp-ad-player-overlay-updated-focus-style");G&&this.api.U().X&&this.j.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()}; Z$.prototype.clear=function(){this.hide()};qR.prototype.set=function(G,B,a){a=a!==void 0?Date.now()+a:void 0;this.j.set(G,B,a)}; qR.prototype.get=function(G){return this.j.get(G)}; qR.prototype.remove=function(G){this.j.remove(G)};var T7=null,s5=null,FM=null,UMA=null;g.Qb("yt.www.ads.eventcache.getLastCompanionData",function(){return T7}); g.Qb("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Qb("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return s5}); g.Qb("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return FM}); g.Qb("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return UMA});var EIA=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);Jn.prototype.handleResponse=function(G,B){if(!B)throw Error("request needs to be passed into ConsistencyService");var a,V;B=((a=B.Uo.context)==null?void 0:(V=a.request)==null?void 0:V.consistencyTokenJars)||[];var x;(G=(x=G.responseContext)==null?void 0:x.consistencyTokenJar)&&this.replace(B,G)}; Jn.prototype.replace=function(G,B){G=g.m(G);for(var a=G.next();!a.done;a=G.next())delete this.j[a.value.encryptedTokenJarContents];biB(this,B)};var t_h=window.location.hostname.split(".").slice(-2).join("."),cA;YN.getInstance=function(){cA=g.LV("yt.clientLocationService.instance");cA||(cA=new YN,g.Qb("yt.clientLocationService.instance",cA));return cA}; g.W=YN.prototype; g.W.setLocationOnInnerTubeContext=function(G){G.client||(G.client={});if(this.j)G.client.locationInfo||(G.client.locationInfo={}),G.client.locationInfo.latitudeE7=Math.floor(this.j.coords.latitude*1E7),G.client.locationInfo.longitudeE7=Math.floor(this.j.coords.longitude*1E7),G.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),G.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.C||this.locationPlayabilityToken)G.client.locationPlayabilityToken=this.C|| this.locationPlayabilityToken}; g.W.handleResponse=function(G){var B;G=(B=G.responseContext)==null?void 0:B.locationPlayabilityToken;G!==void 0&&(this.locationPlayabilityToken=G,this.j=void 0,g.A0("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=An(this))&&this.localStorage.set("yt-location-playability-token",G,15552E3):g.Zd("YT_CL",JSON.stringify({loctok:G}),15552E3,t_h,!0))}; g.W.clearLocationPlayabilityToken=function(G){G==="TVHTML5"?(this.localStorage=An(this))&&this.localStorage.remove("yt-location-playability-token"):g.$4("YT_CL");this.C=void 0;this.X!==-1&&(clearTimeout(this.X),this.X=-1)}; g.W.getCurrentPositionFromGeolocation=function(){var G=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var B=!1,a=1E4;g.A0("INNERTUBE_CLIENT_NAME")==="MWEB"&&(B=!0,a=15E3);return new Promise(function(V,x){navigator.geolocation.getCurrentPosition(function(h){G.j=h;V(h)},function(h){x(h)},{enableHighAccuracy:B, maximumAge:0,timeout:a})})}; g.W.createUnpluggedLocationInfo=function(G){var B={};G=G.coords;if(G==null?0:G.latitude)B.latitudeE7=Math.floor(G.latitude*1E7);if(G==null?0:G.longitude)B.longitudeE7=Math.floor(G.longitude*1E7);if(G==null?0:G.accuracy)B.locationRadiusMeters=Math.round(G.accuracy);return B}; g.W.createLocationInfo=function(G){var B={};G=G.coords;if(G==null?0:G.latitude)B.latitudeE7=Math.floor(G.latitude*1E7);if(G==null?0:G.longitude)B.longitudeE7=Math.floor(G.longitude*1E7);return B};g.W=HiA.prototype;g.W.contains=function(G){return Object.prototype.hasOwnProperty.call(this.j,G)}; g.W.get=function(G){if(this.contains(G))return this.j[G]}; g.W.set=function(G,B){this.j[G]=B}; g.W.eL=function(){return Object.keys(this.j)}; g.W.remove=function(G){delete this.j[G]};Pm.prototype.getModuleId=function(G){return G.serviceId.getModuleId()}; Pm.prototype.get=function(G){a:{var B=this.mappings.get(G.toString());switch(B.type){case "mapping":G=B.value;break a;case "factory":B=B.value();this.mappings.set(G.toString(),{type:"mapping",value:B});G=B;break a;default:G=VW(B)}}return G}; Pm.prototype.registerService=function(G,B){this.mappings.set(G.toString(),{type:"mapping",value:B});return G}; new Pm;var nZ={},vIK=(nZ.WEB_UNPLUGGED="^unplugged/",nZ.WEB_UNPLUGGED_ONBOARDING="^unplugged/",nZ.WEB_UNPLUGGED_OPS="^unplugged/",nZ.WEB_UNPLUGGED_PUBLIC="^unplugged/",nZ.WEB_CREATOR="^creator/",nZ.WEB_KIDS="^kids/",nZ.WEB_EXPERIMENTS="^experiments/",nZ.WEB_MUSIC="^music/",nZ.WEB_REMIX="^music/",nZ.WEB_MUSIC_EMBEDDED_PLAYER="^music/",nZ.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",nZ);GG.prototype.B=function(G,B,a){B=B===void 0?{}:B;a=a===void 0?kI:a;var V={context:g.iy(G.clickTrackingParams,!1,this.G)};var x=this.X(G);if(x){this.j(V,x,B);var h;B=g.MR(this.C());(x=(h=g.u(G.commandMetadata,g.IB))==null?void 0:h.apiUrl)&&(B=x);h=c89(XG(B));G=Object.assign({},{command:G},void 0);V={input:h,QR:qI(h),Uo:V,config:G};V.config.xR?V.config.xR.identity=a:V.config.xR={identity:a};return V}g.RA(new g.FI("Error: Failed to create Request from Command.",G))}; g.w_.Object.defineProperties(GG.prototype,{G:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.t(B4,GG);g.t(av,B4);av.prototype.B=function(){return{input:"/getDatasyncIdsEndpoint",QR:qI("/getDatasyncIdsEndpoint","GET"),Uo:{}}}; av.prototype.C=function(){return[]}; av.prototype.X=function(){}; av.prototype.j=function(){};var m29={},ksY=(m29.GET_DATASYNC_IDS=oc(av),m29);var fZ={},IJf=(fZ["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",fZ["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",fZ["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",fZ["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",fZ["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",fZ["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",fZ["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", fZ["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",fZ["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",fZ["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",fZ["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",fZ["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",fZ["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",fZ["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",fZ["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", fZ["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",fZ["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",fZ["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",fZ["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",fZ["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",fZ["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",fZ["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", fZ["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",fZ.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",fZ["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",fZ["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",fZ["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",fZ["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",fZ["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",fZ["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", fZ["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",fZ["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",fZ["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",fZ["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",fZ["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",fZ["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",fZ["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",fZ["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",fZ["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",fZ["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",fZ.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",fZ["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",fZ["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",fZ["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",fZ["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",fZ["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",fZ["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",fZ["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",fZ["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",fZ["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",fZ["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",fZ["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",fZ["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",fZ["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",fZ["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",fZ["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",fZ["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",fZ["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",fZ["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",fZ["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",fZ["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",fZ["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", fZ["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",fZ["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",fZ["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",fZ["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",fZ["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",fZ["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",fZ["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",fZ["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",fZ["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", fZ["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",fZ["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",fZ["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",fZ["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",fZ["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",fZ["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",fZ["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",fZ["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", fZ),HA={},Xny=(HA.auto_search="LATENCY_ACTION_AUTO_SEARCH",HA.ad_to_ad="LATENCY_ACTION_AD_TO_AD",HA.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",HA.app_startup="LATENCY_ACTION_APP_STARTUP",HA.browse="LATENCY_ACTION_BROWSE",HA.cast_splash="LATENCY_ACTION_CAST_SPLASH",HA.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",HA.channels="LATENCY_ACTION_CHANNELS",HA.chips="LATENCY_ACTION_CHIPS",HA.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",HA.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", HA.editor="LATENCY_ACTION_EDITOR",HA.embed="LATENCY_ACTION_EMBED",HA.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",HA.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",HA.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",HA.explore="LATENCY_ACTION_EXPLORE",HA.favorites="LATENCY_ACTION_FAVORITES",HA.home="LATENCY_ACTION_HOME",HA.inboarding="LATENCY_ACTION_INBOARDING",HA.library="LATENCY_ACTION_LIBRARY",HA.live="LATENCY_ACTION_LIVE",HA.live_pagination= "LATENCY_ACTION_LIVE_PAGINATION",HA.management="LATENCY_ACTION_MANAGEMENT",HA.mini_app="LATENCY_ACTION_MINI_APP_PLAY",HA.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",HA.onboarding="LATENCY_ACTION_ONBOARDING",HA.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",HA.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",HA.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",HA.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",HA.prebuffer="LATENCY_ACTION_PREBUFFER", HA.prefetch="LATENCY_ACTION_PREFETCH",HA.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",HA.profile_switcher="LATENCY_ACTION_LOGIN",HA.projects="LATENCY_ACTION_PROJECTS",HA.reel_watch="LATENCY_ACTION_REEL_WATCH",HA.results="LATENCY_ACTION_RESULTS",HA.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",HA.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",HA.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",HA.review="LATENCY_ACTION_REVIEW",HA.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER", HA.search_ui="LATENCY_ACTION_SEARCH_UI",HA.search_suggest="LATENCY_ACTION_SUGGEST",HA.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",HA.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",HA.seek="LATENCY_ACTION_PLAYER_SEEK",HA.settings="LATENCY_ACTION_SETTINGS",HA.store="LATENCY_ACTION_STORE",HA.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",HA.tenx="LATENCY_ACTION_TENX",HA.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",HA.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",HA.watch="LATENCY_ACTION_WATCH", HA.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",HA["watch,watch7"]="LATENCY_ACTION_WATCH",HA["watch,watch7_html5"]="LATENCY_ACTION_WATCH",HA["watch,watch7ad"]="LATENCY_ACTION_WATCH",HA["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",HA.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",HA.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",HA.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",HA.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",HA.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE", HA.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",HA.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",HA.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",HA);Object.assign(Xny,IJf);g.t(O8,NM);var MqX=new dg("aft-recorded",O8);var geh=g.qY.ytLoggingGelSequenceIdObj_||{};g.Qb("ytLoggingGelSequenceIdObj_",geh);var b1=g.qY.ytLoggingLatencyUsageStats_||{};g.Qb("ytLoggingLatencyUsageStats_",b1);E8.prototype.tick=function(G,B,a,V){yD(this,"tick_"+G+"_"+B)||g.wP("latencyActionTicked",{tickName:G,clientActionNonce:B},{timestamp:a,cttAuthInfo:V})}; E8.prototype.info=function(G,B,a){var V=Object.keys(G).join("");yD(this,"info_"+V+"_"+B)||(G=Object.assign({},G),G.clientActionNonce=B,g.wP("latencyActionInfo",G,{cttAuthInfo:a}))}; E8.prototype.jspbInfo=function(G,B,a){for(var V="",x=0;x=x.length?(B.append(x),G-=x.length):G?(B.append(new Uint8Array(x.buffer,x.byteOffset,G)),a.append(new Uint8Array(x.buffer,x.byteOffset+G,x.length-G)),G=0):a.append(x);return{rS:B,v3:a}}; g.W.isFocused=function(G){return G>=this.sy&&G=64&&(this.L.set(G.subarray(0,64-this.X),this.X),B=64-this.X,this.X=0,olA(this,this.L,0));for(;B+64<=a;B+=64)olA(this,G,B);B=this.start&&(G=2&&a.ssdaiAdsConfig&&kN("Unexpected ad placement renderers length",G.slot,null,{length:V.length});V.some(function(x){var h,e,w,K;return!!((h=x.renderer)==null?0:(e=h.linearAdSequenceRenderer)==null?0:(w=e.linearAds)==null?0:w.length)||!((K=x.renderer)==null||!K.instreamVideoAdRenderer)})||tTA(G)})}; Wj.prototype.Rq=function(){aGH(this.j)};wJ.prototype.Ec=function(){var G=this;BIb(this.X,function(){var B=xf(G.slot.clientMetadata,"metadata_type_ad_break_request_data");return B.cueProcessedMs?G.j.get().fetch({OO:B.getAdBreakUrl,e0:new g.V1(B.Yr,B.Nw),cueProcessedMs:B.cueProcessedMs}):G.j.get().fetch({OO:B.getAdBreakUrl,e0:new g.V1(B.Yr,B.Nw)})})}; wJ.prototype.Rq=function(){aGH(this.X)};Kf.prototype.Ec=function(){var G=this.slot.clientMetadata,B,a=(B=this.slot.fulfilledLayout)!=null?B:xf(G,"metadata_type_fulfilled_layout");RwY(this.callback,this.slot,a)}; Kf.prototype.Rq=function(){mD(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")};ku.prototype.build=function(G,B){return B.fulfilledLayout||lh(B,{G_:["metadata_type_fulfilled_layout"]})?new Kf(G,B):this.C(G,B)};g.t(Nu,ku); Nu.prototype.C=function(G,B){if(lh(B,{G_:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Wj(G,B,this.j,this.X,this.vD,this.vS,this.BS,this.fN,this.HC);if(lh(B,{G_:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new wJ(G,B,this.j,this.X,this.vD,this.vS);throw new Y("Unsupported slot with type: "+B.slotType+" and client metadata: "+hs(B.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.t(dJ,ku);dJ.prototype.C=function(G,B){throw new Y("Unsupported slot with type: "+B.slotType+" and client metadata: "+hs(B.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.W=msz.prototype;g.W.Uf=function(){return this.slot}; g.W.w1=function(){return this.layout}; g.W.init=function(){}; g.W.release=function(){}; g.W.startRendering=function(G){if(G.layoutId!==this.layout.layoutId)this.callback.Hx(this.slot,G,new af("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 B=xf(G.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.gO(this.slot,G),RLV(this.C, this.slot,B)):kN("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,G)}}; g.W.CD=function(G,B){G.layoutId!==this.layout.layoutId?this.callback.Hx(this.slot,G,new af("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.kW(this.slot,G,B),g9g(this),prB(this))};g.t(gJ,g.wI);g.W=gJ.prototype;g.W.Uf=function(){return this.X.slot}; g.W.w1=function(){return this.X.layout}; g.W.init=function(){this.C.get().addListener(this)}; g.W.release=function(){this.C.get().removeListener(this);this.dispose()}; g.W.bN=function(){}; g.W.sF=function(){}; g.W.fA=function(){}; g.W.YC=function(){}; g.W.startRendering=function(G){var B=this;IE(this.X,G,function(){return void B.CT()})}; g.W.CT=function(){this.C.get().CT(this.j)}; g.W.CD=function(G,B){var a=this;IE(this.X,G,function(){var V=a.C.get();SaX(V,a.j,3);a.j=[];a.callback.kW(a.slot,G,B)})}; g.W.yb=function(){this.C.TH()||this.C.get().removeListener(this);g.wI.prototype.yb.call(this)}; g.w_.Object.defineProperties(gJ.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.X.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.X.layout}}});cj.prototype.CM=function(G,B){B=B===void 0?!1:B;var a=(this.C.get(G)||[]).concat();if(B=B&&jx9(G)){var V=this.C.get(B);V&&a.push.apply(a,g.U(V))}Hj(this,G,a);this.j.add(G);B&&this.j.add(B)}; cj.prototype.Of=function(G,B){B=B===void 0?!1:B;if(!this.j.has(G)){var a=B&&jx9(G);a&&(B=!this.j.has(a));this.CM(G,B)}};g.t(cUK,Wr);g.t(ZR,gJ);g.W=ZR.prototype;g.W.bU=function(G,B){Ef("ads-engagement-panel-layout",G,this.L.get().sS,this.BS.get(),this.G,this.B,this.Uf(),this.w1(),B)}; g.W.startRendering=function(G){Uf(this.In,this.Uf(),this.w1(),g.u(this.w1().renderingContent,h4),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(B,a,V,x,h){return new cUK(B,a,V,x,h)},this.j); gJ.prototype.startRendering.call(this,G)}; g.W.gO=function(G,B){this.B===B.layoutId&&(this.G===null?this.G=this.BS.get().BG():kN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.kW=function(){}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.Iy=function(){}; g.W.yb=function(){zB(this.j_(),this);gJ.prototype.yb.call(this)};g.t(fG9,Wr);g.t(rJ,gJ);g.W=rJ.prototype;g.W.bU=function(G,B){Ef("banner-image",G,this.L.get().sS,this.BS.get(),this.G,this.B,this.Uf(),this.w1(),B)}; g.W.startRendering=function(G){Uf(this.In,this.Uf(),this.w1(),g.u(this.w1().renderingContent,V7),this.callback,"metadata_type_banner_image_layout_view_model",function(B,a,V,x,h){return new fG9(B,a,V,x,h)},this.j); gJ.prototype.startRendering.call(this,G)}; g.W.gO=function(G,B){this.B===B.layoutId&&(this.G===null?this.G=this.BS.get().BG():kN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.kW=function(){}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.Iy=function(){}; g.W.yb=function(){zB(this.j_(),this);gJ.prototype.yb.call(this)};g.t($u,Wr);g.t(X0,gJ);g.W=X0.prototype;g.W.bU=function(G,B){Ef("action-companion",G,this.L.get().sS,this.BS.get(),this.G,this.B,this.Uf(),this.w1(),B)}; g.W.startRendering=function(G){Uf(this.In,this.Uf(),this.w1(),g.u(this.w1().renderingContent,GE),this.callback,"metadata_type_action_companion_ad_renderer",function(B,a,V,x,h){return new $u(B,a,V,x,h)},this.j); gJ.prototype.startRendering.call(this,G)}; g.W.gO=function(G,B){B.layoutId===this.layout.layoutId?this.In.Of("impression"):this.B===B.layoutId&&(this.G===null?this.G=this.BS.get().BG():kN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.kW=function(){}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.Iy=function(){}; g.W.yb=function(){zB(this.j_(),this);gJ.prototype.yb.call(this)};g.t(Dsb,Wr);g.t(qu,gJ);g.W=qu.prototype;g.W.bU=function(G,B){Ef("image-companion",G,this.L.get().sS,this.BS.get(),this.G,this.B,this.Uf(),this.w1(),B)}; g.W.startRendering=function(G){Uf(this.In,this.Uf(),this.w1(),g.u(this.w1().renderingContent,Bf),this.callback,"metadata_type_image_companion_ad_renderer",function(B,a,V,x,h){return new Dsb(B,a,V,x,h)},this.j); gJ.prototype.startRendering.call(this,G)}; g.W.gO=function(G,B){B.layoutId===this.layout.layoutId?this.In.Of("impression"):this.B===B.layoutId&&(this.G===null?this.G=this.BS.get().BG():kN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.kW=function(){}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.Iy=function(){}; g.W.yb=function(){zB(this.j_(),this);gJ.prototype.yb.call(this)};g.t(RQB,Wr);g.t(uh,gJ);g.W=uh.prototype;g.W.bU=function(G,B){Ef("shopping-companion",G,this.L.get().sS,this.BS.get(),this.G,this.B,this.Uf(),this.w1(),B)}; g.W.startRendering=function(G){Uf(this.In,this.Uf(),this.w1(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(B,a,V,x,h){return new RQB(B,a,V,x,h)},this.j); gJ.prototype.startRendering.call(this,G)}; g.W.gO=function(G,B){B.layoutId===this.layout.layoutId?this.In.Of("impression"):this.B===B.layoutId&&(this.G===null?this.G=this.BS.get().BG():kN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.kW=function(){}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.Iy=function(){}; g.W.yb=function(){zB(this.j_(),this);gJ.prototype.yb.call(this)};g.t(Lf,gJ);g.W=Lf.prototype;g.W.startRendering=function(G){Uf(this.In,this.Uf(),this.w1(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(B,a,V,x,h){return new $u(B,a,V,x,h)},this.j); gJ.prototype.startRendering.call(this,G)}; g.W.gO=function(){}; g.W.kW=function(){}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.Iy=function(){}; g.W.yb=function(){zB(this.j_(),this);gJ.prototype.yb.call(this)}; g.W.bU=function(){};g.W=uxy.prototype;g.W.Uf=function(){return this.slot}; g.W.w1=function(){return this.layout}; g.W.init=function(){this.fN.get().addListener(this);this.fN.get().CH.push(this);var G=xf(this.layout.clientMetadata,"metadata_type_video_length_seconds"),B=xf(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");jw(this.layout.zi)&&Gl(this.rO.get(),this.layout.layoutId,{xZ:B,bW:G,listener:this})}; g.W.release=function(){this.fN.get().removeListener(this);cbz(this.fN.get(),this);jw(this.layout.zi)&&B3(this.rO.get(),this.layout.layoutId)}; g.W.startRendering=function(G){this.callback.gO(this.slot,G)}; g.W.CD=function(G,B){M8A(this.vS.get())&&!this.j&&(this.In.Of("abandon"),this.j=!0);this.callback.kW(this.slot,G,B)}; g.W.aM=function(G){switch(G.id){case "part2viewed":this.In.Of("start");this.In.Of("impression");break;case "videoplaytime25":this.In.Of("first_quartile");break;case "videoplaytime50":this.In.Of("midpoint");break;case "videoplaytime75":this.In.Of("third_quartile");break;case "videoplaytime100":M8A(this.vS.get())?this.j||(this.In.Of("complete"),this.j=!0):this.In.Of("complete");RE(this.In)&&DR(this.In,Infinity,!0);GPX(this.vS.get())&&Q1(this.X,Infinity,!0);break;case "engagedview":RE(this.In)||this.In.Of("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:kN("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.W.onVolumeChange=function(){}; g.W.H0=function(){}; g.W.qH=function(){}; g.W.VH=function(){}; g.W.onFullscreenToggled=function(){}; g.W.UA=function(){}; g.W.V_=function(){}; g.W.Nf=function(G){GPX(this.vS.get())&&Q1(this.X,G*1E3,!1);RE(this.In)&&DR(this.In,G*1E3,!1)}; g.W.DU=function(){}; g.W.AE=function(){this.In.Of("active_view_measurable")}; g.W.BF=function(){this.In.Of("active_view_viewable")}; g.W.Lg=function(){this.In.Of("active_view_fully_viewable_audible_half_duration")}; g.W.Ta=function(){this.In.Of("audio_measurable")}; g.W.Q1=function(){this.In.Of("audio_audible")};g.t(TL,gJ);g.W=TL.prototype;g.W.init=function(){gJ.prototype.init.call(this);var G=xf(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),B={adsClientData:this.layout.Js};this.j.push(new pY(G,this.layout.layoutId,xf(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),B,!0))}; g.W.z$=function(){this.G||this.fN.get().resumeVideo(1)}; g.W.startRendering=function(G){gJ.prototype.startRendering.call(this,G);wT(this.fN.get(),"ad-showing");this.callback.gO(this.slot,G);this.B.wL=this}; g.W.CD=function(G,B){gJ.prototype.CD.call(this,G,B);K7(this.fN.get(),"ad-showing");FL(this.B,this)}; g.W.bU=function(G){switch(G){case "ad-info-icon-button":(this.G=this.fN.get().cE(1))||this.fN.get().pauseVideo();break;case "visit-advertiser":this.fN.get().pauseVideo()}}; g.W.yb=function(){gJ.prototype.yb.call(this)};g.t(sf,Wr);g.t(F0,gJ);g.W=F0.prototype;g.W.startRendering=function(G){Uf(this.In,this.Uf(),this.w1(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(B,a,V,x,h){return new sf(B,a,V,x,h)},this.j); gJ.prototype.startRendering.call(this,G)}; g.W.gO=function(){}; g.W.kW=function(){}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.Iy=function(){}; g.W.yb=function(){zB(this.j_(),this);gJ.prototype.yb.call(this)}; g.W.bU=function(){};g.t(Jm,Wr);g.t(Am,gJ);Am.prototype.init=function(){gJ.prototype.init.call(this);this.j.push(new Jm(g.u(this.layout.renderingContent,p_),this.layout.layoutId,{adsClientData:this.layout.Js}))}; Am.prototype.bU=function(){ck(this.G.get(),this.B)&&Of(this.BS.get(),3)}; Am.prototype.startRendering=function(G){gJ.prototype.startRendering.call(this,G);this.callback.gO(this.slot,G)}; Am.prototype.yb=function(){gJ.prototype.yb.call(this)};g.t(Yu,Wr);g.t(ih,gJ);ih.prototype.init=function(){gJ.prototype.init.call(this);var G=g.u(this.layout.renderingContent,K1)||xf(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),B=pf(this.In);this.j.push(new Yu(G,B,this.layout.layoutId,{adsClientData:this.layout.Js},!0,!0))}; ih.prototype.startRendering=function(G){gJ.prototype.startRendering.call(this,G);this.callback.gO(this.slot,G)}; ih.prototype.bU=function(G,B){if(B===this.layout.layoutId)switch(G){case "skip-button":var a;(G=(a=xf(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:a.current)&&G.Mu(this.Uf(),this.layout)}}; ih.prototype.yb=function(){gJ.prototype.yb.call(this)};oE.prototype.build=function(G,B,a,V){if(Pj(V,{G_:["metadata_type_ad_break_response_data"],Ns:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new msz(G,a,V,this.X,this.C,this.j);throw new af("Unsupported layout with type: "+V.layoutType+" and client metadata: "+hs(V.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.t(TIc,Wr);g.t(Mu,gJ);g.W=Mu.prototype;g.W.bU=function(G,B){Ef("ads-engagement-panel",G,this.L.get().sS,this.BS.get(),this.G,this.B,this.Uf(),this.w1(),B)}; g.W.startRendering=function(G){Uf(this.In,this.Uf(),this.w1(),g.u(this.w1().renderingContent,a9),this.callback,"metadata_type_ads_engagement_panel_renderer",function(B,a,V,x,h){return new TIc(B,a,V,x,h)},this.j); gJ.prototype.startRendering.call(this,G)}; g.W.gO=function(G,B){B.layoutId===this.layout.layoutId?this.In.Of("impression"):this.B===B.layoutId&&(this.G===null?this.G=this.BS.get().BG():kN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.kW=function(){}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.Iy=function(){}; g.W.yb=function(){zB(this.j_(),this);gJ.prototype.yb.call(this)};g.t(G4,gJ);g.W=G4.prototype;g.W.bU=function(G,B){Ef("top-banner-image-text-icon-buttoned",G,this.L.get().sS,this.BS.get(),this.G,this.B,this.Uf(),this.w1(),B)}; g.W.startRendering=function(G){Uf(this.In,this.Uf(),this.w1(),g.u(this.w1().renderingContent,xE),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(B,a,V,x,h){return new sf(B,a,V,x,h)},this.j); gJ.prototype.startRendering.call(this,G)}; g.W.gO=function(G,B){this.B===B.layoutId&&(this.G===null?this.G=this.BS.get().BG():kN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.kW=function(){}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.Iy=function(){}; g.W.yb=function(){zB(this.j_(),this);gJ.prototype.yb.call(this)};JUX.prototype.build=function(G,B,a,V){if(Pj(V,sx_())||g.u(V.renderingContent,a9)!==void 0)return new Mu(G,a,V,this.yK,this.BS,this.j_,this.rO,this.j);if(Pj(V,v9B())||g.u(V.renderingContent,GE)!==void 0)return new X0(G,a,V,this.yK,this.BS,this.j_,this.rO,this.j);if(Pj(V,SXA())||g.u(V.renderingContent,Bf)!==void 0)return new qu(G,a,V,this.yK,this.BS,this.j_,this.rO,this.j);if(Pj(V,Zr9()))return new uh(G,a,V,this.yK,this.BS,this.j_,this.rO,this.j);if(Pj(V,qX9()))return new Lf(G,a,V,this.yK,this.BS,this.j_, this.rO,this.j);if(Pj(V,Hrb())||g.u(V.renderingContent,V7)!==void 0)return new rJ(G,a,V,this.yK,this.BS,this.j_,this.rO,this.j);if(Pj(V,FOV())||g.u(V.renderingContent,xE)!==void 0)return new G4(G,a,V,this.yK,this.BS,this.j_,this.rO,this.j);if(Pj(V,QxX()))return new F0(G,a,V,this.yK,this.BS,this.j_,this.rO,this.j);if(Pj(V,n9A())||g.u(V.renderingContent,h4)!==void 0)return new ZR(G,a,V,this.yK,this.BS,this.j_,this.rO,this.j);throw new af("Unsupported layout with type: "+V.layoutType+" and client metadata: "+ hs(V.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};AUB.prototype.build=function(G,B,a,V){if(Pj(V,{G_:["metadata_type_linked_player_bytes_layout_id"],Ns:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new Am(G,a,V,this.yK,this.BS,this.j);throw new af("Unsupported layout with type: "+V.layoutType+" and client metadata: "+hs(V.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.W=YXX.prototype;g.W.Uf=function(){return this.slot}; g.W.w1=function(){return this.layout}; g.W.init=function(){}; g.W.release=function(){}; g.W.startRendering=function(G){G.layoutId!==this.layout.layoutId?this.callback.Hx(this.slot,G,new af("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.gO(this.slot,G),this.In.Of("impression"),sM(this.nM,G,"normal"))}; g.W.CD=function(G,B){G.layoutId!==this.layout.layoutId?this.callback.Hx(this.slot,G,new af("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.kW(this.slot,G,B)};g.W=PeX.prototype;g.W.Uf=function(){return this.slot}; g.W.w1=function(){return this.layout}; g.W.init=function(){}; g.W.release=function(){}; g.W.startRendering=function(G){G.layoutId!==this.layout.layoutId?this.callback.Hx(this.slot,G,new af("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.gO(this.slot,G),this.In.Of("impression"),sM(this.nM,G,"normal"))}; g.W.CD=function(G,B){G.layoutId!==this.layout.layoutId?this.callback.Hx(this.slot,G,new af("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.kW(this.slot,G,B)};BX.prototype.build=function(G,B,a,V){if(!this.vS.get().T.U().S("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Pj(V,irB()))return new YXX(G,a,V,this.BS,this.nM)}else if(Pj(V,{G_:[],Ns:["LAYOUT_TYPE_FORECASTING"]}))return new PeX(G,a,V,this.BS,this.nM);throw new af("Unsupported layout with type: "+V.layoutType+" and client metadata: "+hs(V.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.t(G7B,Wr);g.t(ap,gJ);g.W=ap.prototype;g.W.init=function(){gJ.prototype.init.call(this);var G=g.u(this.layout.renderingContent,we)||xf(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),B={adsClientData:this.layout.Js};this.j.push(new G7B(G,xf(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,B))}; g.W.z$=function(){this.G||this.fN.get().resumeVideo(2)}; g.W.startRendering=function(G){gJ.prototype.startRendering.call(this,G);this.callback.gO(this.slot,G);this.B.wL=this}; g.W.CD=function(G,B){gJ.prototype.CD.call(this,G,B);FL(this.B,this)}; g.W.bU=function(G){if(ck(this.L.get(),this.W))switch(G){case "visit-advertiser-link":Of(this.BS.get(),3)}switch(G){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.G||this.fN.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.G=this.fN.get().cE(2))||this.fN.get().pauseVideo();break;case "visit-advertiser-link":this.fN.get().pauseVideo();BvV(this).BT();break;case "skip-button":if(G=BvV(this), this.layout.renderingContent&&!Mb(this.layout.clientMetadata,"metadata_type_dai")||!G.La){var B;(G=(B=xf(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:B.current)&&G.Mu(this.Uf(),this.layout)}else kN("Requesting to skip by LegacyPlayerBytes when components enabled"),G.us(this.Uf(),this.layout)}}; g.W.yb=function(){gJ.prototype.yb.call(this)};g.t(VH,gJ);g.W=VH.prototype;g.W.init=function(){gJ.prototype.init.call(this);var G=g.u(this.layout.renderingContent,WX)||xf(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),B={adsClientData:this.layout.Js},a;(a=!!this.layout.renderingContent)||(a=!x2(this).La);this.j.push(new pY(G,this.layout.layoutId,xf(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),B,a))}; g.W.z$=function(){this.G||this.fN.get().resumeVideo(2)}; g.W.startRendering=function(G){gJ.prototype.startRendering.call(this,G);this.callback.gO(this.slot,G);this.B.wL=this}; g.W.CD=function(G,B){gJ.prototype.CD.call(this,G,B);FL(this.B,this)}; g.W.bU=function(G){if(ck(this.L.get(),this.W))switch(G){case "visit-advertiser":Of(this.BS.get(),3)}switch(G){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.G||this.fN.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.G=this.fN.get().cE(2))||this.fN.get().pauseVideo();break;case "visit-advertiser":this.fN.get().pauseVideo();x2(this).BT();break;case "skip-button":if(G=x2(this),this.layout.renderingContent&& !Mb(this.layout.clientMetadata,"metadata_type_dai")||!G.La){var B;(G=(B=xf(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:B.current)&&G.Mu(this.Uf(),this.layout)}else kN("Requesting to skip by LegacyPlayerBytes"),G.us(this.Uf(),this.layout)}}; g.W.yb=function(){gJ.prototype.yb.call(this)};g.t(VuK,Wr);g.t(hX,gJ);g.W=hX.prototype;g.W.startRendering=function(G){var B=this;IE(this.X,G,function(){B.j.push(new VuK(xf(B.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),G.layoutId,G.Js));B.CT();B.callback.gO(B.slot,G);g.F(ME(B.fN.get(),1),512)&&B.callback.Hx(B.Uf(),B.w1(),new af("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.W.V_=function(){}; g.W.UA=function(G){if(G.state.isError()){var B;this.callback.Hx(this.Uf(),this.w1(),new af("A player error happened during adNotify",{playerErrorCode:(B=G.state.CR)==null?void 0:B.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.W.onFullscreenToggled=function(){}; g.W.qH=function(){}; g.W.VH=function(){}; g.W.H0=function(){}; g.W.onVolumeChange=function(){}; g.W.aM=function(){}; g.W.DU=function(){}; g.W.bU=function(){};g.t(hzb,Wr);g.t(eW,gJ);eW.prototype.init=function(){gJ.prototype.init.call(this);var G=g.u(this.layout.renderingContent,l5),B=pf(this.In);this.j.push(new hzb(G,B,this.layout.layoutId,{adsClientData:this.layout.Js}))}; eW.prototype.startRendering=function(G){gJ.prototype.startRendering.call(this,G);this.callback.gO(this.slot,G)}; eW.prototype.bU=function(G,B){if(B===this.layout.layoutId)switch(G){case "skip-button":var a;(G=(a=xf(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:a.current)&&G.Mu(this.Uf(),this.layout)}}; eW.prototype.yb=function(){gJ.prototype.yb.call(this)};ezA.prototype.build=function(G,B,a,V){if(G=k2(G,a,V,this.yK,this.fN,this.BS,this.X,this.j,this.vS))return G;throw new af("Unsupported layout with type: "+V.layoutType+" and client metadata: "+hs(V.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.W=C1.prototype;g.W.Uf=function(){return this.slot}; g.W.w1=function(){return this.layout}; g.W.init=function(){this.fN.get().addListener(this);this.fN.get().CH.push(this);var G=this.layout.renderingContent?t5(this.WS.get(),1).M_/1E3:xf(this.layout.clientMetadata,"metadata_type_video_length_seconds"),B=g.u(this.layout.renderingContent,my),a=B?bh(B.pings):xf(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");B=B?E9K(B.pings):xf(this.layout.clientMetadata,"metadata_type_active_view_identifier");jw(this.layout.zi)&&Gl(this.rO.get(),this.layout.layoutId,{xZ:a,bW:G,listener:this, Ix:B})}; g.W.release=function(){this.fN.get().removeListener(this);cbz(this.fN.get(),this);jw(this.layout.zi)&&B3(this.rO.get(),this.layout.layoutId)}; g.W.startRendering=function(G){this.callback.gO(this.slot,G)}; g.W.CD=function(G,B){z4(this,"abandon");this.callback.kW(this.slot,G,B)}; g.W.aM=function(G){switch(G.id){case "part2viewed":this.In.Of("start");this.In.Of("impression");break;case "videoplaytime25":this.In.Of("first_quartile");break;case "videoplaytime50":this.In.Of("midpoint");break;case "videoplaytime75":this.In.Of("third_quartile");break;case "videoplaytime100":z4(this,"complete");RE(this.In)&&DR(this.In,Infinity,!0);break;case "engagedview":RE(this.In)||this.In.Of("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:kN("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.W.onVolumeChange=function(){}; g.W.H0=function(){}; g.W.qH=function(){}; g.W.VH=function(){}; g.W.onFullscreenToggled=function(){}; g.W.UA=function(G){this.j||(g.CY(G,4)&&!g.CY(G,2)?vj(this.In,"pause"):dv(G,4)<0&&!(dv(G,2)<0)&&vj(this.In,"resume"))}; g.W.V_=function(){}; g.W.Nf=function(G){RE(this.In)&&DR(this.In,G*1E3,!1)}; g.W.DU=function(){z4(this,"swipe")}; g.W.AE=function(){this.In.Of("active_view_measurable")}; g.W.BF=function(){this.In.Of("active_view_viewable")}; g.W.Lg=function(){this.In.Of("active_view_fully_viewable_audible_half_duration")}; g.W.Ta=function(){this.In.Of("audio_measurable")}; g.W.Q1=function(){this.In.Of("audio_audible")};WJ9.prototype.build=function(G,B,a,V){if(a.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.u(V.renderingContent,my)!==void 0)return new C1(G,a,V,this.fN,this.BS,this.vS,this.rO,this.WS);B=["metadata_type_ad_placement_config"];for(var x=g.m(nf()),h=x.next();!h.done;h=x.next())B.push(h.value);if(Pj(V,{G_:B,Ns:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return a.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new C1(G,a,V,this.fN,this.BS,this.vS,this.rO,this.WS):new uxy(G,a,V,this.fN,this.BS, this.Lh,this.vS,this.rO);throw new af("Unsupported layout with type: "+V.layoutType+" and client metadata: "+hs(V.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var ge={contentCpn:"",OY:new Map};mR_.prototype.jE=function(G,B){var a={};B=Object.assign({},B,(a.cc=this.Gz.wQ(),a));this.Gz.T.FJ(G,B)};var rDW,Z5; rDW={C2x:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",h4b:"AUTHENTICATION_MALFORMED",Wwx:"AUTHENTICATION_MISSING",t$H:"BAD_REQUEST",M$S:"CAST_SESSION_DEVICE_MISMATCHED",lU1:"CAST_SESSION_VIDEO_MISMATCHED",IUr:"CAST_TOKEN_EXPIRED",U9d:"CAST_TOKEN_FAILED",OiL:"CAST_TOKEN_MALFORMED",aUl:"CGI_PARAMS_MALFORMED",p0H:"CGI_PARAMS_MISSING",fmL:"DEVICE_FALLBACK",ImB:"GENERIC_WITH_LINK_AND_CPN",UoB:"ERROR_HDCP",OE1:"LICENSE",p9L:"VIDEO_UNAVAILABLE",eRS:"FORMAT_UNAVAILABLE",Fjb:"GEO_FAILURE", sun:"HTML5_AUDIO_RENDERER_ERROR",Qub:"GENERIC_WITHOUT_LINK",bkX:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",TQl:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",LjJ:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",AYL:"HTML5_SPS_UMP_STATUS_REJECTED",whJ:"INVALID_DRM_MESSAGE",sff:"PURCHASE_NOT_FOUND",Qfx:"PURCHASE_REFUNDED",hUB:"RENTAL_EXPIRED",E9H:"RETRYABLE_ERROR",O1X:"SERVER_ERROR",NVx:"SIGNATURE_EXPIRED",CgN:"STOPPED_BY_ANOTHER_PLAYBACK",yNJ:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",cNH:"STREAMING_NOT_ALLOWED", rNL:"STREAM_LICENSE_NOT_FOUND",kn1:"TOO_MANY_REQUESTS",Zc1:"TOO_MANY_REQUESTS_WITH_LINK",ic1:"TOO_MANY_STREAMS_PER_ENTITLEMENT",f6J:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",I6S:"VIDEO_FORBIDDEN",Uk1:"VIDEO_NOT_FOUND",ETb:"BROWSER_OR_EXTENSION_ERROR"};Z5={}; g.QY=(Z5.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.",Z5.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",Z5.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", Z5.LICENSE="Se produjo un error de licencia con este video.",Z5.VIDEO_UNAVAILABLE="Video no disponible",Z5.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",Z5.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",Z5.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",Z5.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",Z5.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",Z5.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",Z5.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",Z5.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", Z5.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",Z5.PURCHASE_NOT_FOUND="Este es un video pagado.",Z5.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",Z5.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",Z5.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",Z5.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", Z5.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",Z5.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",Z5.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",Z5.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",Z5.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",Z5.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",Z5.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",Z5.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",Z5.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", Z5.TOO_MANY_REQUESTS="Accede para mirar el video.",Z5.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",Z5.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",Z5.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",Z5.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", Z5.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",Z5.VIDEO_NOT_FOUND="No se puede encontrar este video.",Z5.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",Z5);var $2J;var XqC=g.ns(),qEa=XqC.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!qEa||qEa.length<2)$2J=void 0;else{var unf=XqC.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);$2J=unf&&unf.length===6?Number(unf[5].replace("_",".")):0}var Ja=$2J,ro=Ja>=0;g.t(g.Zh,yG);g.Zh.prototype.K=function(G,B,a,V,x){return yG.prototype.K.call(this,G,B,a,V,x)};var rs={},dX=(rs.FAIRPLAY="fairplay",rs.PLAYREADY="playready",rs.WIDEVINE="widevine",rs.CLEARKEY=null,rs.FLASHACCESS=null,rs.UNKNOWN=null,rs.WIDEVINE_CLASSIC=null,rs);re.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var $T={},gf=($T.WIDTH={name:"width",video:!0,valid:640,zn:99999},$T.HEIGHT={name:"height",video:!0,valid:360,zn:99999},$T.FRAMERATE={name:"framerate",video:!0,valid:30,zn:9999},$T.BITRATE={name:"bitrate",video:!0,valid:3E5,zn:2E9},$T.EOTF={name:"eotf",video:!0,valid:"bt709",zn:"catavision"},$T.CHANNELS={name:"channels",video:!1,valid:2,zn:99},$T.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",zn:"invalidformat"},$T.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", zn:"nope"},$T.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",zn:"av99.0.05M.08"},$T.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",zn:"invalid"},$T);var QUW=["h","H"],Lt3=["9","("],T3h=["9h","(h"],sU7=["8","*"],Fth=["a","A"],JDf=["o","O"],AD2=["m","M"],YEk=["mac3","MAC3"],i2h=["meac3","MEAC3"],Xb={},C3_=(Xb.h=QUW,Xb.H=QUW,Xb["9"]=Lt3,Xb["("]=Lt3,Xb["9h"]=T3h,Xb["(h"]=T3h,Xb["8"]=sU7,Xb["*"]=sU7,Xb.a=Fth,Xb.A=Fth,Xb.o=JDf,Xb.O=JDf,Xb.m=AD2,Xb.M=AD2,Xb.mac3=YEk,Xb.MAC3=YEk,Xb.meac3=i2h,Xb.MEAC3=i2h,Xb),POs=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),eM_=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var P={},L1=(P["0"]="f",P["160"]="h",P["133"]="h",P["134"]="h",P["135"]="h",P["136"]="h",P["137"]="h",P["264"]="h",P["266"]="h",P["138"]="h",P["298"]="h",P["299"]="h",P["304"]="h",P["305"]="h",P["214"]="h",P["216"]="h",P["374"]="h",P["375"]="h",P["140"]="a",P["141"]="ah",P["327"]="sa",P["258"]="m",P["380"]="mac3",P["328"]="meac3",P["161"]="H",P["142"]="H",P["143"]="H",P["144"]="H",P["222"]="H",P["223"]="H",P["145"]="H",P["224"]="H",P["225"]="H",P["146"]="H",P["226"]="H",P["227"]="H",P["147"]="H", P["384"]="H",P["376"]="H",P["385"]="H",P["377"]="H",P["149"]="A",P["261"]="M",P["381"]="MAC3",P["329"]="MEAC3",P["598"]="9",P["278"]="9",P["242"]="9",P["243"]="9",P["244"]="9",P["775"]="9",P["776"]="9",P["777"]="9",P["778"]="9",P["779"]="9",P["780"]="9",P["781"]="9",P["782"]="9",P["783"]="9",P["247"]="9",P["248"]="9",P["353"]="9",P["355"]="9",P["356"]="9",P["271"]="9",P["577"]="9",P["313"]="9",P["579"]="9",P["272"]="9",P["302"]="9",P["303"]="9",P["407"]="9",P["408"]="9",P["308"]="9",P["315"]="9", P["330"]="9h",P["331"]="9h",P["332"]="9h",P["333"]="9h",P["334"]="9h",P["335"]="9h",P["336"]="9h",P["337"]="9h",P["338"]="so",P["600"]="o",P["250"]="o",P["251"]="o",P["774"]="o",P["194"]="*",P["195"]="*",P["220"]="*",P["221"]="*",P["196"]="*",P["197"]="*",P["279"]="(",P["280"]="(",P["317"]="(",P["318"]="(",P["273"]="(",P["274"]="(",P["357"]="(",P["358"]="(",P["275"]="(",P["359"]="(",P["360"]="(",P["276"]="(",P["583"]="(",P["584"]="(",P["314"]="(",P["585"]="(",P["561"]="(",P["277"]="(",P["361"]="(h", P["362"]="(h",P["363"]="(h",P["364"]="(h",P["365"]="(h",P["366"]="(h",P["591"]="(h",P["592"]="(h",P["367"]="(h",P["586"]="(h",P["587"]="(h",P["368"]="(h",P["588"]="(h",P["562"]="(h",P["409"]="(",P["410"]="(",P["411"]="(",P["412"]="(",P["557"]="(",P["558"]="(",P["394"]="1",P["395"]="1",P["396"]="1",P["397"]="1",P["398"]="1",P["399"]="1",P["720"]="1",P["721"]="1",P["400"]="1",P["401"]="1",P["571"]="1",P["402"]="1",P["694"]="1h",P["695"]="1h",P["696"]="1h",P["697"]="1h",P["698"]="1h",P["699"]="1h",P["700"]= "1h",P["701"]="1h",P["702"]="1h",P["703"]="1h",P["386"]="3",P["387"]="w",P["406"]="6",P["787"]="1",P["788"]="1",P["548"]="1e",P["549"]="1e",P["550"]="1e",P["551"]="1e",P["809"]="1e",P["810"]="1e",P["552"]="1e",P["811"]="1e",P["812"]="1e",P["553"]="1e",P["813"]="1e",P["814"]="1e",P["554"]="1e",P["815"]="1e",P["816"]="1e",P["555"]="1e",P["817"]="1e",P["818"]="1e",P["572"]="1e",P["556"]="1e",P["645"]="(",P["646"]="(",P["647"]="(",P["648"]="(",P["649"]="(",P["650"]="(",P["651"]="(",P["652"]="(",P["653"]= "(",P["654"]="(",P["655"]="(",P["656"]="(",P["657"]="(",P["658"]="(",P["659"]="(",P["660"]="(",P["661"]="(",P["662"]="(",P["663"]="(",P["664"]="(",P["665"]="(",P["666"]="(",P["667"]="(",P["668"]="(",P["669"]="(",P["670"]="(",P["671"]="(",P["672"]="(",P["673"]="(",P["674"]="(h",P["675"]="(h",P["676"]="(h",P["677"]="(h",P["678"]="(h",P["679"]="(h",P["680"]="(h",P["681"]="(h",P["682"]="(h",P["683"]="(h",P["684"]="(h",P["685"]="(h",P["686"]="(h",P["687"]="(h",P["688"]="A",P["689"]="A",P["690"]="A",P["691"]= "MEAC3",P["773"]="i",P["806"]="I",P["805"]="I",P["829"]="9",P["830"]="9",P["831"]="9",P["832"]="9",P["833"]="9",P["834"]="9",P["835"]="9",P["836"]="9",P["837"]="9",P["838"]="9",P["839"]="9",P["840"]="9",P["841"]="(",P["842"]="(",P["843"]="(",P["844"]="(",P["845"]="(",P["846"]="(",P["847"]="(",P["848"]="(",P["849"]="(",P["850"]="(",P["851"]="(",P["852"]="(",P["865"]="9",P["866"]="9",P["867"]="9",P["868"]="9",P["869"]="9",P["870"]="9",P["871"]="9",P["872"]="9",P["873"]="9",P["874"]="9",P["875"]="9", P["876"]="9",P["877"]="(",P["878"]="(",P["879"]="(",P["880"]="(",P["881"]="(",P["882"]="(",P["883"]="(",P["884"]="(",P["885"]="(",P["886"]="(",P["887"]="(",P["888"]="(",P);var qG={},Y4y=(qG.STEREO_LAYOUT_UNKNOWN=0,qG.STEREO_LAYOUT_LEFT_RIGHT=1,qG.STEREO_LAYOUT_TOP_BOTTOM=2,qG);var u$,hq;u$={};g.Xa=(u$.auto=0,u$.tiny=144,u$.light=144,u$.small=240,u$.medium=360,u$.large=480,u$.hd720=720,u$.hd1080=1080,u$.hd1440=1440,u$.hd2160=2160,u$.hd2880=2880,u$.highres=4320,u$);hq={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var u5="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");qy.prototype.isHdr=function(){return this.X==="smpte2084"||this.X==="arib-std-b67"};T4.prototype.C3=function(){return this.containerType===2}; T4.prototype.isEncrypted=function(){return!!this.Ji}; T4.prototype.zz=function(){return!!this.audio}; T4.prototype.rG=function(){return!!this.video}; var JX=!1;g.t(dZ,g.wI);g.W=dZ.prototype;g.W.appendBuffer=function(G,B,a){if(this.Xf.Uc()!==this.appendWindowStart+this.start||this.Xf.kC()!==this.appendWindowEnd+this.start||this.Xf.F3()!==this.timestampOffset+this.start)this.Xf.supports(1),this.Xf.wX(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Xf.rV(this.timestampOffset+this.start);this.Xf.appendBuffer(G,B,a)}; g.W.abort=function(){this.Xf.abort()}; g.W.remove=function(G,B){this.Xf.remove(G+this.start,B+this.start)}; g.W.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.W.clear=function(){this.Xf.clear()}; g.W.wX=function(G,B){this.appendWindowStart=G;this.appendWindowEnd=B}; g.W.R3=function(){return this.timestampOffset+this.start}; g.W.Uc=function(){return this.appendWindowStart}; g.W.kC=function(){return this.appendWindowEnd}; g.W.rV=function(G){this.timestampOffset=G}; g.W.F3=function(){return this.timestampOffset}; g.W.Ms=function(G){G=this.Xf.Ms(G===void 0?!1:G);return NZ(G,this.start,this.end)}; g.W.IY=function(){return this.Xf.IY()}; g.W.DS=function(){return this.Xf.DS()}; g.W.pG=function(){return this.Xf.pG()}; g.W.g2=function(){return this.Xf.g2()}; g.W.jt=function(){this.Xf.jt()}; g.W.Os=function(G){return this.Xf.Os(G)}; g.W.Hl=function(){return this.Xf.Hl()}; g.W.hL=function(){return this.Xf.hL()}; g.W.Kl=function(){return this.Xf.Kl()}; g.W.KU=function(G,B,a){this.Xf.KU(G,B,a)}; g.W.wj=function(G,B,a){this.Xf.wj(G,B,a)}; g.W.Tw=function(G,B){return this.Xf.Tw(G,B)}; g.W.supports=function(G){return this.Xf.supports(G)}; g.W.e2=function(){return this.Xf.e2()}; g.W.isView=function(){return!0}; g.W.uc=function(){return this.Xf.uc()?this.isActive:!1}; g.W.isLocked=function(){return this.AS&&!this.isActive}; g.W.Nd=function(G){G=this.Xf.Nd(G);G.vw=this.start+"-"+this.end;return G}; g.W.WA=function(){return this.Xf.WA()}; g.W.tU=function(){return this.Xf.tU()}; g.W.CA=function(){return this.Xf.CA()}; g.W.yb=function(){this.Xf.aU(this.MV);g.wI.prototype.yb.call(this)};var g0=!1;g.t(z2,g.wI);g.W=z2.prototype;g.W.appendBuffer=function(G,B,a){this.NE=!1;a&&(this.Iz=a);if(G.length){var V;((V=this.Wf)==null?0:V.appendBuffer)?this.Wf.appendBuffer(G):this.Wf?this.Wf.append(G):this.MH&&this.MH.webkitSourceAppend(this.id,G)}B&&(B.isEncrypted()&&(this.Rb=this.Iz),B.type===3&&(this.vx=B),this.lT.push(B.cC()),this.lT.length>4&&this.lT.shift());this.Ty&&(this.Ty.length>=2||G.length>1048576?delete this.Ty:this.Ty.push(G))}; g.W.abort=function(){try{this.Wf?this.Wf.abort():this.MH&&this.MH.webkitSourceAbort(this.id)}catch(G){Fm9&&g.RA(new g.FI("Error while abort the source buffer: "+G.name+", "+G.message))}this.Iz=this.vx=null}; g.W.remove=function(G,B,a){this.NE=!1;var V;if((V=this.Wf)==null?0:V.remove)a&&a({b:eg(this.Ms()),s:G,e:B}),this.Wf.remove(G,B)}; g.W.removeAll=function(){this.remove(this.Uc(),this.kC())}; g.W.clear=function(){this.pG()||(this.abort(),this.removeAll(),this.Rb=this.Iz=this.vx=null,this.appendWindowStart=this.timestampOffset=0,this.rF=hj([],[]),this.NE=!1,this.Ty=Ce?[]:void 0,this.wv=!0)}; g.W.Uc=function(){if(g0&&this.rG)return this.appendWindowStart;var G;return((G=this.Wf)==null?void 0:G.appendWindowStart)||0}; g.W.kC=function(){var G;return((G=this.Wf)==null?void 0:G.appendWindowEnd)||0}; g.W.wX=function(G,B){this.Wf&&(g0&&this.rG?(this.appendWindowStart=G,this.Wf.appendWindowEnd=B):G>this.Uc()?(this.Wf.appendWindowEnd=B,this.Wf.appendWindowStart=G):(this.Wf.appendWindowStart=G,this.Wf.appendWindowEnd=B))}; g.W.R3=function(){return this.timestampOffset}; g.W.rV=function(G){g0?this.timestampOffset=G:this.supports(1)&&(this.Wf.timestampOffset=G)}; g.W.F3=function(){return g0?this.timestampOffset:this.supports(1)?this.Wf.timestampOffset:0}; g.W.Ms=function(G){if(G===void 0?0:G)return this.NE||this.IY()||(this.rF=this.Ms(!1),this.NE=!0),this.rF;try{return this.Wf?this.Wf.buffered:this.MH?this.MH.webkitSourceBuffered(this.id):hj([0],[Infinity])}catch(B){return hj([],[])}}; g.W.IY=function(){var G;return((G=this.Wf)==null?void 0:G.updating)||!1}; g.W.pG=function(){return this.wv}; g.W.g2=function(){return!this.wv&&this.IY()}; g.W.jt=function(){this.wv=!1}; g.W.Os=function(G){var B=G==null?void 0:G.PS;G=G==null?void 0:G.containerType;return!B&&!G||B===this.PS&&G===this.containerType}; g.W.Hl=function(){return this.Iz}; g.W.hL=function(){return this.Rb}; g.W.Tw=function(G,B){return this.containerType!==G||this.PS!==B}; g.W.KU=function(G,B,a){if(this.containerType!==G||a&&this.Tw(G,a))this.supports(4),tj()&&this.Wf.changeType(B),a&&(this.PS=a);this.containerType=G}; g.W.wj=function(G,B,a){this.containerType&&this.Tw(G,B)&&tj()&&this.Wf.changeType(a);this.containerType=G;this.PS=B}; g.W.e2=function(){return this.vx}; g.W.isView=function(){return!1}; g.W.supports=function(G){switch(G){case 1:var B;return((B=this.Wf)==null?void 0:B.timestampOffset)!==void 0;case 0:var a;return!((a=this.Wf)==null||!a.appendBuffer);case 2:var V;return!((V=this.Wf)==null||!V.remove);case 3:var x,h;return!!(((x=this.Wf)==null?0:x.addEventListener)&&((h=this.Wf)==null?0:h.removeEventListener));case 4:return!(!this.Wf||!this.Wf.changeType);default:return!1}}; g.W.uc=function(){return!this.IY()}; g.W.isLocked=function(){return!1}; g.W.Nd=function(G){G.to=this.F3();G.up=this.IY();var B,a=((B=this.Wf)==null?void 0:B.appendWindowStart)||0,V;B=((V=this.Wf)==null?void 0:V.appendWindowEnd)||Infinity;G.aw=a.toFixed(3)+"-"+B.toFixed(3);return G}; g.W.DS=function(){var G;return((G=this.Wf)==null?void 0:G.writeHead)||0}; g.W.WA=function(){for(var G={},B=0;B=7&&I$A(this,function(){g.z9(function(){rnA(G,G.getCurrentTime(),0)},500)}); return B}; g.W.seekTo=function(G){this.fk()>0&&(ro&&Ja<4&&(G=Math.max(.1,G)),this.setCurrentTime(G))}; g.W.jF=function(){if(!this.X&&this.tX)if(this.tX.B)try{var G;U4(this,{l:"mer",sr:(G=this.jJ)==null?void 0:G.ZU(),rs:Aj(this.tX)});this.tX.clear();this.X=this.tX;this.tX=void 0}catch(B){G=new g.FI("Error while clearing Media Source in MediaElement: "+B.name+", "+B.message),g.RA(G),this.stopVideo()}else this.stopVideo()}; g.W.stopVideo=function(){var G=this;if(!this.X){var B;(B=this.tX)==null||S5B(B);if(LmX){if(!this.C){var a=new iV;a.then(void 0,function(){}); this.C=a;Thg&&this.pause();g.z9(function(){G.C===a&&(Gf(G),a.resolve())},200)}}else Gf(this)}}; g.W.Sd=function(){var G=this.yk();return lV(G)>0&&this.getDuration()?Ke(G,this.getCurrentTime()):0}; g.W.GK=function(){var G=this.getDuration();return G===Infinity?1:G?this.Sd()/G:0}; g.W.Nd=function(){try{var G=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:eg(this.iA(),",",3),vbu:eg(this.yk()),vbs:eg(this.x0()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.fk(),vns:""+this.ub(),vec:""+this.Vk(),vemsg:this.Qd(),vvol:""+this.getVolume(),vdom:""+ +this.DR(),vsrc:""+ +!!this.sK(),vw:""+G.width,vh:""+G.height}}catch(B){return{}}}; g.W.hasError=function(){return this.Vk()>0}; g.W.addEventListener=function(G,B){this.G.listen(G,B,!1,this);this.H1(G)}; g.W.removeEventListener=function(G,B){this.G.i6(G,B,!1,this)}; g.W.dispatchEvent=function(G){if(this.C&&G.type==="pause")return!1;if(sTK){var B,a=((B=G.j)==null?void 0:B.timeStamp)||Infinity;B=a>performance.now()?a-Date.now()+performance.now():a;a=this.X||this.tX;if((a==null?0:a.pG())||B<=((a==null?void 0:a.L)||0)){var V;U4(this,{l:"mede",sr:(V=this.jJ)==null?void 0:V.ZU(),et:G.type});return!1}if(this.RR)return U4(this,{l:"medes",et:G.type}),a&&G.type==="seeking"&&(a.L=performance.now(),this.RR=!1),!1}return this.G.dispatchEvent(G)}; g.W.ri=function(){this.L=!1}; g.W.zA=function(){this.L=!0;this.J1(!0)}; g.W.n4=function(){this.L&&!this.tL()&&this.J1(!0)}; g.W.Wx=function(G){return!!G&&G.dO()===this.dO()}; g.W.yb=function(){this.W&&this.removeEventListener("volumechange",this.n4);LmX&&Gf(this);g.r.prototype.yb.call(this)}; var LmX=!1,Thg=!1,sTK=!1,q5H=!1;g.W=g.aF.prototype;g.W.isPaused=function(){return g.F(this,4)}; g.W.isPlaying=function(){return g.F(this,8)&&!g.F(this,512)&&!g.F(this,64)&&!g.F(this,2)}; g.W.isOrWillBePlaying=function(){return g.F(this,8)&&!g.F(this,2)&&!g.F(this,1024)}; g.W.isCued=function(){return g.F(this,64)&&!g.F(this,8)&&!g.F(this,4)}; g.W.isBuffering=function(){return g.F(this,1)&&!g.F(this,2)}; g.W.isError=function(){return g.F(this,128)}; g.W.isSuspended=function(){return g.F(this,512)}; g.W.WM=function(){return g.F(this,64)&&g.F(this,4)}; g.W.toString=function(){return"PSt."+this.state.toString(16)}; var QL={},LZ=(QL.BUFFERING="buffering-mode",QL.CUED="cued-mode",QL.ENDED="ended-mode",QL.PAUSED="paused-mode",QL.PLAYING="playing-mode",QL.SEEKING="seeking-mode",QL.UNSTARTED="unstarted-mode",QL);g.t(NN,g.r);g.W=NN.prototype;g.W.gV=function(){return this.C}; g.W.Uf=function(){return this.slot}; g.W.w1=function(){return this.layout}; g.W.init=function(){var G=xf(this.layout.clientMetadata,"metadata_type_video_length_seconds"),B=xf(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");jw(this.layout.zi)&&Gl(this.rO.get(),this.layout.layoutId,{xZ:B,bW:G,listener:this,yN:this.T1()});gcV(this.BS.get(),this);G=this.Y3;B=this.layout.layoutId;var a={yN:this.T1()};G.j.set(B,a);this.dS()}; g.W.C8=function(){}; g.W.release=function(){jw(this.layout.zi)&&B3(this.rO.get(),this.layout.layoutId);p5A(this.BS.get(),this);this.Y3.j.delete(this.layout.layoutId);this.gb()}; g.W.nF=function(){}; g.W.z6=function(){}; g.W.startRendering=function(G){OB(dW(this));if(Cn(this,G)){var B=this.j;EB(B.params.Ci.vS.get(),!0)&&tuH(B,"p_sr",{});zf(this);this.vP(G);this.T1()||this.s4(!1)}}; g.W.gO=function(G,B){if(B.layoutId===this.layout.layoutId){this.eE="rendering";this.X=this.fN.get().isMuted()||this.fN.get().getVolume()===0;this.Of("impression");this.Of("start");if(this.fN.get().isMuted()){UM(this,"mute");var a;G=((a=k_(this))==null?void 0:a.muteCommands)||[];TB(this.Lh.get(),G,this.layout.layoutId)}if(this.fN.get().isFullscreen()){this.CM("fullscreen");var V;a=((V=k_(this))==null?void 0:V.fullscreenCommands)||[];TB(this.Lh.get(),a,this.layout.layoutId)}this.T1()||(V=this.sZ.get(), V.C&&!V.X&&(V.B=!1,V.X=!0,V.actionType!=="ad_to_video"&&(TG("pbs",void 0,V.actionType),g.pB("finalize_all_timelines")&&x5_(V.actionType))));this.Xr(1);this.RK(B);var x;B=((x=k_(this))==null?void 0:x.impressionCommands)||[];TB(this.Lh.get(),B,this.layout.layoutId)}}; g.W.ZK=function(G,B,a){this.W={pT:3,f6:G==="load_timeout"?402:400,errorMessage:B.message};this.Of("error");var V;G=((V=k_(this))==null?void 0:V.errorCommands)||[];TB(this.Lh.get(),G,this.layout.layoutId);this.T1()||this.qk.Hx(this.slot,this.layout,B,a)}; g.W.qt=function(){if(this.eE==="rendering"){UM(this,"pause");var G,B=((G=k_(this))==null?void 0:G.pauseCommands)||[];TB(this.Lh.get(),B,this.layout.layoutId);this.Xr(2)}}; g.W.Ei=function(){if(this.eE==="rendering"){UM(this,"resume");var G,B=((G=k_(this))==null?void 0:G.resumeCommands)||[];TB(this.Lh.get(),B,this.layout.layoutId)}}; g.W.ZZ=function(G,B){B=B===void 0?!1:B;if(this.eE==="rendering"){var a={currentTimeSec:G,flush:B};jW(this.j,"p_ip",a);DR(this.In,G*1E3,B);this.X||DR(this.In,G*1E3,B===void 0?!1:B);var V=this.qT();if(V){V/=1E3;if(G>=V*.25||B)this.Of("first_quartile"),jW(this.j,"p_fq",a);if(G>=V*.5||B)this.Of("midpoint"),jW(this.j,"p_sq",a);if(G>=V*.75||B)this.Of("third_quartile"),jW(this.j,"p_tq",a);this.vS.get().T.U().experiments.Or("enable_progress_command_flush_on_kabuki")?Q1(this.G,G*1E3,B):Q1(this.G,G*1E3,FJA(this)? B:!1)}}}; g.W.wQ=function(){var G;return((G=t5(this.WS.get(),1))==null?void 0:G.clientPlaybackNonce)||""}; g.W.f2=function(G,B){G.layoutId!==this.layout.layoutId?this.qk.Hx(this.slot,G,new af("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"):B()}; g.W.kW=function(G,B,a){if(B.layoutId===this.layout.layoutId)switch(this.eE="not_rendering",this.layoutExitReason=void 0,this.T1()||(G=a!=="normal"||this.position+1===this.L)&&this.s4(G),this.uH(a),this.Xr(0),a){case "abandoned":if(Sw(this.In,"impression")){var V,x=((V=k_(this))==null?void 0:V.abandonCommands)||[];TB(this.Lh.get(),x,this.layout.layoutId)}break;case "normal":V=((x=k_(this))==null?void 0:x.completeCommands)||[];TB(this.Lh.get(),V,this.layout.layoutId);break;case "skipped":var h;V=((h= k_(this))==null?void 0:h.skipCommands)||[];TB(this.Lh.get(),V,this.layout.layoutId)}}; g.W.EE=function(){return this.layout.layoutId}; g.W.W1=function(){return this.W}; g.W.AE=function(){if(this.eE==="rendering"){this.In.Of("active_view_measurable");var G,B=((G=k_(this))==null?void 0:G.activeViewMeasurableCommands)||[];TB(this.Lh.get(),B,this.layout.layoutId)}}; g.W.Lg=function(){if(this.eE==="rendering"){this.In.Of("active_view_fully_viewable_audible_half_duration");var G,B=((G=k_(this))==null?void 0:G.activeViewFullyViewableAudibleHalfDurationCommands)||[];TB(this.Lh.get(),B,this.layout.layoutId)}}; g.W.BF=function(){if(this.eE==="rendering"){this.In.Of("active_view_viewable");var G,B=((G=k_(this))==null?void 0:G.activeViewViewableCommands)||[];TB(this.Lh.get(),B,this.layout.layoutId)}}; g.W.Q1=function(){if(this.eE==="rendering"){this.In.Of("audio_audible");var G,B=((G=k_(this))==null?void 0:G.activeViewAudioAudibleCommands)||[];TB(this.Lh.get(),B,this.layout.layoutId)}}; g.W.Ta=function(){if(this.eE==="rendering"){this.In.Of("audio_measurable");var G,B=((G=k_(this))==null?void 0:G.activeViewAudioMeasurableCommands)||[];TB(this.Lh.get(),B,this.layout.layoutId)}}; g.W.s4=function(G){this.sZ.get().s4(xf(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,G,this.position,this.L,!1)}; g.W.onFullscreenToggled=function(G){if(this.eE==="rendering")if(G){this.CM("fullscreen");var B,a=((B=k_(this))==null?void 0:B.fullscreenCommands)||[];TB(this.Lh.get(),a,this.layout.layoutId)}else this.CM("end_fullscreen"),B=((a=k_(this))==null?void 0:a.endFullscreenCommands)||[],TB(this.Lh.get(),B,this.layout.layoutId)}; g.W.onVolumeChange=function(){if(this.eE==="rendering")if(this.fN.get().isMuted()){UM(this,"mute");var G,B=((G=k_(this))==null?void 0:G.muteCommands)||[];TB(this.Lh.get(),B,this.layout.layoutId)}else UM(this,"unmute"),G=((B=k_(this))==null?void 0:B.unmuteCommands)||[],TB(this.Lh.get(),G,this.layout.layoutId)}; g.W.qH=function(){}; g.W.VH=function(){}; g.W.H0=function(){}; g.W.aM=function(){}; g.W.DU=function(){}; g.W.CM=function(G){this.In.CM(G,!this.X)}; g.W.Of=function(G){this.In.Of(G,!this.X)}; g.W.T1=function(){var G=xf(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return G===void 0?(kN("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.vS.get().T1(G)};g.t(yQ,NN);g.W=yQ.prototype;g.W.dS=function(){}; g.W.gb=function(){var G=this.BS.get();G.Fc===this&&(G.Fc=null);this.Pn.stop()}; g.W.nF=function(){this.Pn.stop();NN.prototype.qt.call(this)}; g.W.z6=function(){nn(this);NN.prototype.Ei.call(this)}; g.W.qT=function(){return xf(this.w1().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.W.CD=function(G,B){var a=this;this.f2(G,function(){a.eE!=="rendering_stop_requested"&&(a.eE="rendering_stop_requested",a.layoutExitReason=B,mI(a,B),a.Pn.stop())})}; g.W.BC=function(){var G=Date.now(),B=G-this.kL;this.kL=G;this.QH+=B;this.QH>=this.qT()?this.Wu():(this.ZZ(this.QH/1E3),cN(this,this.QH))}; g.W.uH=function(){}; g.W.V_=function(){}; g.t(fn,yQ);g.W=fn.prototype;g.W.UA=function(G){if(this.eE!=="not_rendering"){G=IF(this,G);var B=this.fN.get().getPresentingPlayerType()===2;this.eE==="rendering_start_requested"?B&&Ny(G)&&this.lc():B?g.CY(G,2)?kN("Receive player ended event during MediaBreak",this.Uf(),this.w1()):gW(this,G):this.OE()}}; g.W.vP=function(){Tvx(this);HQA(this.fN.get());this.BS.get().Fc=this;QD("pbp")||QD("pbs")||TG("pbp");QD("pbp","watch")||QD("pbs","watch")||TG("pbp",void 0,"watch");this.lc()}; g.W.RK=function(G){this.sZ.get();var B=xf(G.clientMetadata,"metadata_type_ad_placement_config").kind,a=this.position===0;G=xf(G.clientMetadata,"metadata_type_linked_in_player_layout_type");G={adBreakType:pn(B),adType:VIb(G)};var V=void 0;a?B!=="AD_PLACEMENT_KIND_START"&&(V="video_to_ad"):V="ad_to_ad";X_("ad_mbs",void 0,V);g.qO(G,V);nn(this)}; g.W.OE=function(){this.zG()}; g.W.Wu=function(){Anb(this);this.zG()}; g.t(HN,yQ);g.W=HN.prototype;g.W.UA=function(G){this.eE!=="not_rendering"&&(G=IF(this,G),gW(this,G))}; g.W.vP=function(){kN("Not used in SSAP")}; g.W.RK=function(){nn(this)}; g.W.OE=function(){kN("Not used in SSAP")}; g.W.Wu=function(){Anb(this);this.qk.fv(this.Uf(),this.w1(),"normal")}; g.t(vN,HN);vN.prototype.CD=function(G,B){var a=this;this.f2(G,function(){m2(a.C,B)&&(a.eE="rendering_stop_requested",a.layoutExitReason=B,mI(a,B),a.Pn.stop())})}; vN.prototype.startRendering=function(G){OB(dW(this));Cn(this,G)&&(zf(this),this.BS.get().Fc=this)};g.t(RF,NN);g.W=RF.prototype;g.W.OE=function(){this.zG()}; g.W.UA=function(G){if(this.eE!=="not_rendering"){G=IF(this,G);var B=this.fN.get().getPresentingPlayerType()===2;this.eE==="rendering_start_requested"?B&&Ny(G)&&this.lc():!B||g.CY(G,2)?this.zG():gW(this,G)}}; g.W.dS=function(){xf(this.w1().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=xf(this.w1().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.W.gb=function(){xf(this.w1().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.FT){var G=this.context.Ci,B=this.FT,a=this.w1().layoutId;if(EB(G.vS.get(),!0)){var V={};G.jE("mccru",(V.cid=B,V.p_ac=a,V))}this.Jy.get().removeCueRange(this.FT)}this.FT=void 0;var x;(x=this.NW)==null||x.dispose();this.K8&&this.K8.dispose()}; g.W.vP=function(G){var B=Do(this.vS.get()),a=S7(this.vS.get());if(B&&a&&!this.T1()){a=xf(G.clientMetadata,"metadata_type_preload_player_vars");var V=g.kf(this.vS.get().T.U().experiments,"html5_preload_wait_time_secs");a&&this.K8&&this.K8.start(V*1E3)}Pyy(this,G);Tvx(this);B?(a=this.e_.get(),G=xf(G.clientMetadata,"metadata_type_player_vars"),a.T.loadVideoByPlayerVars(G,!1,2)):qaB(this.e_.get(),xf(G.clientMetadata,"metadata_type_player_vars"));var x;(x=this.NW)==null||x.start();B||this.e_.get().T.playVideo(2)}; g.W.RK=function(){var G;(G=this.NW)==null||G.stop();this.FT="adcompletioncuerange:"+this.w1().layoutId;this.Jy.get().addCueRange(this.FT,0x7ffffffffffff,0x8000000000000,!1,this,2,2);G=this.context.Ci;var B=this.FT,a=this.w1().layoutId;if(EB(G.vS.get(),!0)){var V={};G.jE("mccr",(V.cid=B,V.p_ac=a,V))}(this.adCpn=LJX(this))||kN("Media layout confirmed started, but ad CPN not set.");this.PC.get().ez("onAdStart",this.adCpn);this.Gx=Date.now()}; g.W.qT=function(){var G;return(G=t5(this.WS.get(),2))==null?void 0:G.M_}; g.W.BT=function(){this.In.CM("clickthrough")}; g.W.CD=function(G,B){var a=this;this.f2(G,function(){if(a.eE!=="rendering_stop_requested"){a.eE="rendering_stop_requested";a.layoutExitReason=B;mI(a,B);var V;(V=a.NW)==null||V.stop();a.K8&&a.K8.stop();oNY(a)}})}; g.W.onCueRangeEnter=function(G){if(G!==this.FT)kN("Received CueRangeEnter signal for unknown layout.",this.Uf(),this.w1(),{cueRangeId:G});else{var B=this.context.Ci,a=this.w1().layoutId;if(EB(B.vS.get(),!0)){var V={};B.jE("mccre",(V.cid=G,V.p_ac=a,V))}this.Jy.get().removeCueRange(this.FT);this.FT=void 0;As(this.context.vS.get(),"html5_ssap_flush_at_stop_rendering")&&this.T1()||(G=xf(this.w1().clientMetadata,"metadata_type_video_length_seconds"),this.ZZ(G,!0),this.Of("complete"))}}; g.W.uH=function(G){G!=="abandoned"&&this.PC.get().ez("onAdComplete");this.PC.get().ez("onAdEnd",this.adCpn)}; g.W.onCueRangeExit=function(){}; g.W.V_=function(G){this.eE==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&G>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.fN.get().bX(!0),this.ZZ(G))}; g.W.ZZ=function(G,B){NN.prototype.ZZ.call(this,G,B===void 0?!1:B);B=Date.now()-this.Gx;var a=G*1E3,V={contentCpn:this.wQ(),adCpn:LJX(this)};if(G>=5&&!this.aT){var x=B<1E3?0:1;wv(x,"i.k_",{metadata:V,Rv:B,dY:Math.floor(a/1E3)});J0("IKDSTAT",x);x===0&&Muy(this)&&this.PC.get().ez("onAbnormalityDetected");this.aT=!0}G-this.uB>=5&&(x=B=2||(this.DX.CD(this.layout,B),G=As(this.params.context.vS.get(),"html5_ssap_pass_transition_reason")&&B==="abandoned",this.sj()&&!G&&(As(this.params.context.vS.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(B)||kN("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:B})),this.HC.get().finishSegmentByCpn(this.layout.layoutId, t5(this.WS.get(),1).clientPlaybackNonce,EM(B,this.params.context.vS))),this.fN.get().removeListener(this),this.Wq()&&Ip(this.DX.gV())&&this.QS.kW(this.slot,this.layout,this.DX.gV().j))}; g.W.Z2=function(G,B,a){Cyz({cpn:G,Gz:this.WS.get(),Bo:!0});this.w1().layoutId!==G||As(this.params.context.vS.get(),"html5_ssap_pass_transition_reason")&&a===5||(this.DX.gV().currentState<2&&(G=j7(a,this.params.context.vS),G==="error"?this.QS.Hx(this.slot,this.layout,new af("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:a},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):sM(this.bu, this.layout,G)),As(this.params.context.vS.get(),"html5_ssap_exit_without_waiting_for_transition")||this.QS.kW(this.slot,this.layout,this.DX.gV().j))};g.t(qN,g.r);g.W=qN.prototype;g.W.Uf=function(){return this.slot}; g.W.w1=function(){return this.layout}; g.W.qe=function(){}; g.W.mP=function(){return this.Xt[this.l$]}; g.W.Kk=function(){return this.l$}; g.W.nF=function(G,B){var a=this.mP();B.layoutId!==QQ(a,G,B)?kN("pauseLayout for a PlayerBytes layout that is not currently active",G,B):a.nF()}; g.W.z6=function(G,B){var a=this.mP();B.layoutId!==QQ(a,G,B)?kN("resumeLayout for a PlayerBytes layout that is not currently active",G,B):a.z6()}; g.W.us=function(G,B){var a=this.mP();w4_(this,G,B);KPA(a,G,B)&&this.HA(a.Uf(),a.w1(),"skipped")}; g.W.Mu=function(G,B){var a=this.mP();lX_(this);kGc(a,G,B)&&(G=N5y(this,a,G,B),G!==void 0&&(this.T1()?kN("Should not happen. Should delete"):C1z(this,a.Uf(),a.w1(),G)))}; g.W.Q2=function(G,B){var a=Object.assign({},u3(this),{layoutId:B.layoutId}),V=a.layoutId,x=a.Bo;if(a.yN){var h={};UB(a.Gz,"wrse",(h.ec=V,h.is=x,h.ctp=p1(V),h))}cV(this.JN,G,B)}; g.W.gO=function(G,B){var a;(a=this.mP())==null||a.gO(G,B)}; g.W.kW=function(G,B,a){B.layoutId===this.w1().layoutId&&(this.Wl=!1,zB(this.j_(),this));var V;(V=this.mP())==null||V.kW(G,B,a)}; g.W.V_=function(G){var B;(B=this.mP())==null||B.V_(G)}; g.W.jV=function(G,B,a){this.Kk()===-1&&(this.callback.gO(this.slot,this.layout),this.l$++);var V=this.mP();V?(V.ZK(G,B,a),this.T1()&&this.callback.Hx(this.slot,this.layout,B,a)):kN("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Kk()),layoutId:this.w1().layoutId})}; g.W.onFullscreenToggled=function(G){var B;(B=this.mP())==null||B.onFullscreenToggled(G)}; g.W.qH=function(G){var B;(B=this.mP())==null||B.qH(G)}; g.W.H0=function(G){var B;(B=this.mP())==null||B.H0(G)}; g.W.onVolumeChange=function(){var G;(G=this.mP())==null||G.onVolumeChange()}; g.W.EL=function(G,B,a){nF(this.JN,G,B,a)}; g.W.dj=function(G){G.startRendering(G.w1())}; g.W.init=function(){var G=xf(this.w1().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");G&&(G.current=this);if(this.Xt.length<1)throw new Y("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Xt.length)});if(G=xf(this.w1().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))G.current=this;G=g.m(this.Xt);for(var B=G.next();!B.done;B=G.next())B=B.value,B.init(),ZAc(this.JN,this.slot,B.w1()),ro_(this.JN,this.slot,B.w1()); if(this.T1())for(this.WS.get().addListener(this),wm_(WPy(this),this.WS.get()),G=WPy(this),G=g.m(G),B=G.next();!B.done;B=G.next())this.nt(B.value)}; g.W.nt=function(G){var B=xf(G.clientMetadata,"metadata_type_player_vars");B?(G.layoutType!=="LAYOUT_TYPE_MEDIA"&&kN("Non-video ad contains playerVars",this.slot,G),this.e_.get().addPlayerResponseForAssociation({playerVars:B})):(G=xOg(G),this.e_.get().addPlayerResponseForAssociation({O4:G}))}; g.W.release=function(){var G=xf(this.w1().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");G&&(G.current=null);if(G=xf(this.w1().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))G.current=null;G=g.m(this.Xt);for(var B=G.next();!B.done;B=G.next())B=B.value,$TK(this.JN,this.slot,B.w1()),B.release();this.T1()&&(this.WS.get().removeListener(this),KJx())}; g.W.f2=function(G){return G.layoutId!==this.w1().layoutId?(this.callback.Hx(this.Uf(),G,new af("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.w1().layoutId+("and LayoutType: "+this.w1().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.W.cQ=function(){this.fN.get().addListener(this);CF(this.j_(),this)}; g.W.UA=function(G){if(G.state.isError()){var B,a;this.jV((B=G.state.CR)==null?void 0:B.errorCode,new af("There was a player error during this media layout.",{playerErrorCode:(a=G.state.CR)==null?void 0:a.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(B=this.mP())&&B.UA(G)}; g.W.T1=function(){var G=xf(this.Uf().clientMetadata,"metadata_type_eligible_for_ssap");return G===void 0?(kN("Expected SSAP eligibility in PlayerBytes slots",this.Uf(),this.w1()),!1):this.vS.get().T1(G)}; g.W.VH=function(){}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.Iy=function(){}; g.W.aM=function(){}; g.W.DU=function(){}; g.t(FE,qN);g.W=FE.prototype;g.W.TZ=function(G,B,a){this.HA(G,B,a)}; g.W.bP=function(G,B){this.HA(G,B,"error")}; g.W.HA=function(G,B,a){var V=this;dOb(this,G,B,a,function(){Ln(V,V.Kk()+1)})}; g.W.startRendering=function(G){this.f2(G)&&(this.cQ(),Jzy(this.sZ.get()),oUb(this.vS.get())||HQA(this.fN.get()),this.Kk()===-1&&Ln(this,this.Kk()+1))}; g.W.CD=function(G,B){var a=this;this.Wl=!0;this.Kk()===this.Xt.length?this.callback.kW(this.slot,this.layout,B):(G=this.mP(),G.CD(G.w1(),B),this.Cz=function(){a.callback.kW(a.slot,a.layout,B)}); this.fN.get().T.DF();qaB(this.e_.get(),{});G=ME(this.fN.get(),1);G.isPaused()&&!g.F(G,2)&&this.fN.get().playVideo();this.fN.get().removeListener(this);this.Wl&&znV(this)}; g.W.Z2=function(){}; g.W.kh=function(){}; g.W.fv=function(){}; g.t(J5,qN);g.W=J5.prototype;g.W.TZ=function(G,B,a){G=Object.assign({},u3(this),{layoutId:B.layoutId,layoutExitReason:a});B=G.layoutId;a=G.layoutExitReason;var V={};UB(G.Gz,"prse",(V.xc=B,V.ler=a,V.ctp=p1(B),V))}; g.W.bP=function(){kN("onSubLayoutError in SSAP")}; g.W.HA=function(){kN("exitSubLayoutAndPlayNext in SSAP")}; g.W.mP=function(){return this.BD}; g.W.Kk=function(){var G=this;return this.Xt.findIndex(function(B){var a;return B.w1().layoutId===((a=G.BD)==null?void 0:a.w1().layoutId)})}; g.W.dj=function(G){ly(this.BD===void 0,"replacing another adapter");this.BD=G;G.startRendering(G.w1())}; g.W.EL=function(G,B,a){nF(this.JN,G,B,a);var V;ly(B.layoutId===((V=this.BD)==null?void 0:V.w1().layoutId),"currentAdapter does not match exiting layout",{slot:G?"slot: "+G.slotType:"",subLayout:KY(B)})&&(this.BD=void 0)}; g.W.release=function(){qN.prototype.release.call(this);ly(this.BD===void 0,"currentAdapter is still active during release");this.BD=void 0}; g.W.sj=function(){return this.fN.get().getPresentingPlayerType()===2}; g.W.CD=function(G,B){function a(){A5(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(B)||kN("Composite stopRendering: Unexpected layout exit reason",this.slot,G,{layoutExitReason:B}))} function V(){this.BD&&Y_(this,this.BD,B);if(this.sj()&&(!A5(this)||B!=="abandoned")){a.call(this);var h;var e=((h=this.WS.get().T.getVideoData())==null?void 0:h.clientPlaybackNonce)||"";h=t5(this.WS.get(),1).clientPlaybackNonce;this.HC.get().finishSegmentByCpn(e,h,EM(B,this.vS))}tIV(this,B)} function x(){if(this.BD){var h=this.BD;h.gV().currentState<2&&h.CD(h.w1(),B);h=A5(this)&&B==="abandoned";this.sj()&&!h&&(a.call(this),this.HC.get().finishSegmentByCpn(this.BD.w1().layoutId,t5(this.WS.get(),1).clientPlaybackNonce,EM(B,this.vS)))}} ly(G.layoutId===this.w1().layoutId,"StopRendering for wrong layout")&&m2(this.Pm.X,B)&&(this.Wq()?V.call(this):x.call(this))}; g.W.kW=function(G,B,a){qN.prototype.kW.call(this,G,B,a);B.layoutId===this.w1().layoutId&&this.fN.get().removeListener(this)}; g.W.wQ=function(){return t5(this.WS.get(),1).clientPlaybackNonce}; g.W.Z2=function(G,B,a){Cyz(Object.assign({},u3(this),{cpn:G}));if(!A5(this)||a!==5)if(this.Wq()){if(this.BD&&this.BD.w1().layoutId!==B){var V=this.BD.w1().layoutId;V!==G&&kN("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:V,exitingCpn:G,enteringCpn:B});G=j7(a,this.vS);Y_(this,this.BD,G)}else this.BD&&kN("onClipExited: active layout is entering again");B===this.wQ()&&IXH(this,a)}else{if(this.BD&&this.BD.w1().layoutId===G)mOV(this,this.BD,a);else{var x;kN("Exiting cpn does not match active cpn", this.slot,(V=this.BD)==null?void 0:V.w1(),{exitingCpn:G,transitionReason:a,activeCpn:(x=this.BD)==null?void 0:x.w1().layoutId})}B===this.wQ()&&(this.BD!==void 0&&(kN("active adapter is not properly exited",this.slot,this.layout,{activeLayout:KY(this.BD.w1())}),mOV(this,this.BD,a)),IXH(this,a),tIV(this,this.Pm.X.j))}}; g.W.Wq=function(){return As(this.vS.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.W.startRendering=function(G){this.f2(G)&&(G=this.Pm,ly(G.j===1,"tickStartRendering: state is not initial"),G.j=2,this.cQ())}; g.W.kh=function(G){dRb(Object.assign({},u3(this),{cpn:G}));var B=this.Xt.find(function(a){return a.w1().layoutId===G}); B?(this.Pm.j!==2&&(iz9(this.Wn,this.slot.slotId),ly(this.Pm.j===2,"Expect started"),this.callback.gO(this.slot,this.layout)),this.dj(B),cV(this.JN,this.slot,B.w1())):gry(this,G)}; g.W.us=function(G,B){w4_(this,G,B);var a=this.mP();a?KPA(a,G,B)&&p4g(this,"skipped"):UOg(this,"onSkipRequested")}; g.W.Mu=function(G,B){var a;a:{if(a=this.mP()){if(lX_(this),kGc(a,G,B)&&(G=N5y(this,a,G,B),G!==void 0)){a={l7:a,Pff:this.Xt[G]};break a}}else UOg(this,"SkipWithAdPodSkip");a=void 0}if(G=a)a=G.l7,B=G.Pff,G=a.w1().layoutId,this.Wq()?Y_(this,a,"skipped"):a.CD(a.w1(),"skipped"),a=B.w1().layoutId,this.HC.get().finishSegmentByCpn(G,a,EM("skipped",this.vS))}; g.W.Q2=function(){kN("Not used in html5_ssap_fix_layout_exit")}; g.W.UA=function(G){var B;(B=this.mP())==null||B.UA(G)}; g.W.jV=function(){kN("Not used in html5_ssap_fix_layout_exit")}; g.W.fv=function(G,B,a){var V;if(((V=this.mP())==null?void 0:V.w1().layoutId)!==B.layoutId)return void kN("requestToExitSubLayout: wrong layout");p4g(this,a)};g.t(i3,g.r);g.W=i3.prototype;g.W.Uf=function(){return this.DX.Uf()}; g.W.w1=function(){return this.DX.w1()}; g.W.init=function(){var G=xf(this.w1().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");G&&(G.current=this);this.dS()}; g.W.dS=function(){this.DX.init()}; g.W.release=function(){var G=xf(this.w1().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");G&&(G.current=null);this.gb()}; g.W.gb=function(){this.DX.release()}; g.W.nF=function(){this.DX.nF()}; g.W.z6=function(){this.DX.z6()}; g.W.us=function(G,B){kN("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Uf(),this.w1(),{requestingSlot:G,requestingLayout:B})}; g.W.startRendering=function(G){G.layoutId!==this.w1().layoutId?this.callback.Hx(this.Uf(),G,new af("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.w1().layoutId+("and LayoutType: "+this.w1().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.fN.get().addListener(this),CF(this.j_(),this),Jzy(this.sZ.get()),oUb(this.vS.get())||HQA(this.fN.get()),this.DX.startRendering(G))}; g.W.CD=function(G,B){this.Wl=!0;this.DX.CD(G,B);this.fN.get().T.DF();qaB(this.e_.get(),{});G=ME(this.fN.get(),1);G.isPaused()&&!g.F(G,2)&&this.fN.get().playVideo();this.fN.get().removeListener(this);this.Wl&&this.DX.OE()}; g.W.gO=function(G,B){this.DX.gO(G,B)}; g.W.kW=function(G,B,a){B.layoutId===this.w1().layoutId&&(this.Wl=!1,zB(this.j_(),this));this.DX.kW(G,B,a);B.layoutId===this.w1().layoutId&&Tf(this.sZ.get())}; g.W.V_=function(G){this.DX.V_(G)}; g.W.UA=function(G){if(G.state.isError()){var B,a;this.jV((B=G.state.CR)==null?void 0:B.errorCode,new af("There was a player error during this media layout.",{playerErrorCode:(a=G.state.CR)==null?void 0:a.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.DX.UA(G)}; g.W.jV=function(G,B,a){this.DX.ZK(G,B,a)}; g.W.onFullscreenToggled=function(G){this.DX.onFullscreenToggled(G)}; g.W.qH=function(G){this.DX.qH(G)}; g.W.H0=function(G){this.DX.H0(G)}; g.W.onVolumeChange=function(){this.DX.onVolumeChange()}; g.W.VH=function(){}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.Iy=function(){}; g.W.aM=function(){}; g.W.DU=function(){};g.W=PN.prototype;g.W.Uf=function(){return this.slot}; g.W.w1=function(){return this.layout}; g.W.init=function(){this.nD.get().addListener(this);this.fN.get().addListener(this);var G=xf(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var B=xf(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.G){var a=this.nD.get().y9.slice(-1)[0];a!==void 0&&(G=a.startSecs*1E3,B=(a.startSecs+a.YF)*1E3)}this.C8(G,B);var V;a=(V=this.WS.get().mM)==null?void 0:V.clientPlaybackNonce;V=this.layout.Js.adClientDataEntry;oF(this.BS.get(),{daiStateTrigger:{filledAdsDurationMs:B-G,contentCpn:a, adClientData:V}});var x=this.nD.get();x=jvX(x.C,G,B);x!==null&&(oF(this.BS.get(),{daiStateTrigger:{filledAdsDurationMs:x-G,contentCpn:a,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:V}}),this.HC.get().mO(x,B))}; g.W.release=function(){this.gb();this.nD.get().removeListener(this);this.fN.get().removeListener(this)}; g.W.startRendering=function(){this.vP();this.callback.gO(this.slot,this.layout)}; g.W.CD=function(G,B){this.CC(B);this.driftRecoveryMs!==null&&(MN(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(bRA(this)-xf(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.fN.get().T.lh()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.kW(this.slot,this.layout,B)}; g.W.bQ=function(){return!1}; g.W.YL=function(G){var B=xf(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),a=xf(this.layout.clientMetadata,"metadata_type_layout_exit_ms");G*=1E3;if(B<=G&&G0&&fF(this.j(),B)}; g.W.x3=function(G){this.B.delete(G.slotId);for(var B=[],a=g.m(this.As.values()),V=a.next();!V.done;V=a.next()){V=V.value;var x=V.trigger;x instanceof Y8&&x.triggeringSlotId===G.slotId&&B.push(V)}B.length>0&&fF(this.j(),B)}; g.W.E$=function(G){for(var B=[],a=g.m(this.As.values()),V=a.next();!V.done;V=a.next()){V=V.value;var x=V.trigger;x instanceof $8&&x.slotType===G.slotType&&x.j!==G.slotId&&B.push(V)}B.length>0&&fF(this.j(),B)}; g.W.JH=function(G){this.C.add(G.slotId);for(var B=[],a=g.m(this.As.values()),V=a.next();!V.done;V=a.next())V=V.value,V.trigger instanceof Lq&&G.slotId===V.trigger.triggeringSlotId&&B.push(V);B.length>0&&fF(this.j(),B)}; g.W.tH=function(G){this.C.delete(G.slotId);this.G.add(G.slotId);for(var B=[],a=g.m(this.As.values()),V=a.next();!V.done;V=a.next())if(V=V.value,V.trigger instanceof Tm)G.slotId===V.trigger.triggeringSlotId&&B.push(V);else if(V.trigger instanceof yK){var x=V.trigger;G.slotId===x.slotId&&this.X.has(x.triggeringLayoutId)&&B.push(V)}B.length>0&&fF(this.j(),B)}; g.W.KR=function(G){for(var B=[],a=g.m(this.As.values()),V=a.next();!V.done;V=a.next())V=V.value,V.trigger instanceof FZ&&G.slotId===V.trigger.triggeringSlotId&&B.push(V);B.length>0&&fF(this.j(),B)}; g.W.wE=function(G){for(var B=[],a=g.m(this.As.values()),V=a.next();!V.done;V=a.next())V=V.value,V.trigger instanceof JP&&G.slotId===V.trigger.triggeringSlotId&&B.push(V);B.length>0&&fF(this.j(),B)}; g.W.dE=function(G,B){this.L.add(B.layoutId)}; g.W.Ln=function(G,B){this.L.delete(B.layoutId)}; g.W.gO=function(G,B){this.X.add(B.layoutId);for(var a=[],V=g.m(this.As.values()),x=V.next();!x.done;x=V.next())if(x=x.value,x.trigger instanceof cv)B.layoutId===x.trigger.triggeringLayoutId&&a.push(x);else if(x.trigger instanceof rS){var h=x.trigger;G.slotType===h.slotType&&B.layoutType===h.layoutType&&B.layoutId!==h.j&&a.push(x)}else x.trigger instanceof yK&&(h=x.trigger,B.layoutId===h.triggeringLayoutId&&this.G.has(h.slotId)&&a.push(x));a.length>0&&fF(this.j(),a)}; g.W.kW=function(G,B,a){this.X.delete(B.layoutId);G=[];for(var V=g.m(this.As.values()),x=V.next();!x.done;x=V.next())if(x=x.value,x.trigger instanceof fq&&B.layoutId===x.trigger.triggeringLayoutId&&G.push(x),x.trigger instanceof nq){var h=x.trigger;B.layoutId===h.triggeringLayoutId&&h.j.includes(a)&&G.push(x)}G.length>0&&fF(this.j(),G)}; g.W.Iy=function(){}; g.W.P0=function(){this.G.clear()}; g.W.Dt=function(){};g.t(Zr,g.r);Zr.prototype.mj=function(G,B,a,V){if(this.As.has(B.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(B instanceof je))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+B.triggerType+" in CloseRequestedTriggerAdapter");this.As.set(B.triggerId,new oV(G,B,a,V))}; Zr.prototype.Ck=function(G){this.As.delete(G.triggerId)};g.t($G,g.r);$G.prototype.mj=function(G,B,a,V){if(this.As.has(B.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(B instanceof Ew||B instanceof qa))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+B.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.As.set(B.triggerId,new oV(G,B,a,V))}; $G.prototype.Ck=function(G){this.As.delete(G.triggerId)}; $G.prototype.P0=function(G){for(var B=[],a=B.push,V=a.apply,x=[],h=g.m(this.As.values()),e=h.next();!e.done;e=h.next())e=e.value,e.trigger instanceof Ew&&e.trigger.OJ===G&&x.push(e);V.call(a,B,g.U(x));a=B.push;V=a.apply;x=[];h=g.m(this.As.values());for(e=h.next();!e.done;e=h.next())e=e.value,e.trigger instanceof qa&&e.trigger.j!==G&&x.push(e);V.call(a,B,g.U(x));B.length&&fF(this.j(),B)}; $G.prototype.Dt=function(G){for(var B=[],a=B.push,V=a.apply,x=[],h=g.m(this.As.values()),e=h.next();!e.done;e=h.next()){e=e.value;var w=e.trigger;w instanceof qa&&w.j===G&&x.push(e)}V.call(a,B,g.U(x));B.length&&fF(this.j(),B)};g.t(Xy,g.r);g.W=Xy.prototype;g.W.mj=function(G,B,a,V){if(this.As.has(B.triggerId))throw new Y("Tried to register duplicate trigger for slot.");var x="adtriggercuerange:"+B.triggerId;if(B instanceof RV)QGz(this,G,B,a,V,x,B.j.start,B.j.end,B.OJ,B.visible);else if(B instanceof bj)QGz(this,G,B,a,V,x,0x7ffffffffffff,0x8000000000000,B.OJ,B.visible);else throw new Y("Incorrect TriggerType: Tried to register trigger of type "+B.triggerType+" in CueRangeTriggerAdapter");}; g.W.Ck=function(G){var B=this.As.get(G.triggerId);B&&this.Jy.get().removeCueRange(B.cueRangeId);this.As.delete(G.triggerId)}; g.W.onCueRangeEnter=function(G){var B=LSH(this,G);if(B&&(B=this.As.get(B)))if(g.F(ME(this.fN.get()),32))this.j.add(B.cueRangeId);else{var a=B==null?void 0:B.D3.trigger;if(a instanceof RV||a instanceof bj){if(EB(this.context.vS.get())){var V=B.D3.slot,x=B.D3.layout,h={};this.context.Ci.jE("cre",(h.ca=B.D3.category,h.tt=a.triggerType,h.st=V.slotType,h.lt=x==null?void 0:x.layoutType,h.cid=G,h))}fF(this.X(),[B.D3])}}}; g.W.onCueRangeExit=function(G){(G=LSH(this,G))&&(G=this.As.get(G))&&this.j.delete(G.cueRangeId)}; g.W.UA=function(G){if(dv(G,16)<0){G=g.m(this.j);for(var B=G.next();!B.done;B=G.next())this.onCueRangeEnter(B.value,!0);this.j.clear()}}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.gO=function(){}; g.W.kW=function(){}; g.W.Iy=function(){}; g.W.V_=function(){}; g.W.onFullscreenToggled=function(){}; g.W.qH=function(){}; g.W.VH=function(){}; g.W.H0=function(){}; g.W.onVolumeChange=function(){}; g.W.aM=function(){}; g.W.DU=function(){};g.t(qc,g.r);g.W=qc.prototype; g.W.mj=function(G,B,a,V){if(this.X.has(B.triggerId)||this.C.has(B.triggerId))throw new Y("Tried to re-register the trigger.");G=new oV(G,B,a,V);if(G.trigger instanceof Se)this.X.set(G.trigger.triggerId,G);else if(G.trigger instanceof Hv)this.C.set(G.trigger.triggerId,G);else throw new Y("Incorrect TriggerType: Tried to register trigger of type "+G.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.X.has(G.trigger.triggerId)&&G.slot.slotId===this.j&&fF(this.G(),[G])}; g.W.Ck=function(G){this.X.delete(G.triggerId);this.C.delete(G.triggerId)}; g.W.qe=function(G){G=G.slotId;if(this.j!==G){var B=[];this.j!=null&&B.push.apply(B,g.U(TF_(this.C,this.j)));G!=null&&B.push.apply(B,g.U(TF_(this.X,G)));this.j=G;B.length&&fF(this.G(),B)}}; g.W.Z2=function(){}; g.W.kh=function(){};g.t(u6,g.r);g.W=u6.prototype;g.W.mj=function(G,B,a,V){if(this.As.has(B.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(B instanceof XZ))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+B.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.As.set(B.triggerId,new oV(G,B,a,V))}; g.W.Ck=function(G){this.As.delete(G.triggerId)}; g.W.gO=function(){}; g.W.kW=function(){}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.Iy=function(){};g.t(QA,g.r);g.W=QA.prototype;g.W.Iy=function(G,B){for(var a=[],V=g.m(this.As.values()),x=V.next();!x.done;x=V.next()){x=x.value;var h=x.trigger;h.opportunityType===G&&(h.associatedSlotId&&h.associatedSlotId!==B||a.push(x))}a.length&&fF(this.j(),a)}; g.W.mj=function(G,B,a,V){if(this.As.has(B.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(B instanceof GnA))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+B.triggerType+" in OpportunityEventTriggerAdapter");this.As.set(B.triggerId,new oV(G,B,a,V))}; g.W.Ck=function(G){this.As.delete(G.triggerId)}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.gO=function(){}; g.W.kW=function(){};g.t(LD,g.r);g.W=LD.prototype;g.W.mj=function(G,B,a,V){G=new oV(G,B,a,V);if(B instanceof vv||B instanceof Zl||B instanceof Dl||B instanceof uj||B instanceof GiX){if(this.As.has(B.triggerId))throw new Y("Tried to register duplicate trigger for slot.");this.As.set(B.triggerId,G);a=a.slotId;G=this.C.has(a)?this.C.get(a):new Set;G.add(B);this.C.set(a,G)}else throw new Y("Incorrect TriggerType: Tried to register trigger of type "+B.triggerType+" in PrefetchTriggerAdapter");}; g.W.Ck=function(G){this.As.delete(G.triggerId)}; g.W.pn=function(G){var B=G.slotId;if(this.C.has(B)){G=0;var a=new Set;B=g.m(this.C.get(B));for(var V=B.next();!V.done;V=B.next())if(V=V.value,a.add(V.triggerId),V instanceof Zl&&V.breakDurationMs){G=V.breakDurationMs;break}Tb(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",G,a)}}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.gO=function(){}; g.W.kW=function(){}; g.W.Iy=function(){}; g.W.bQ=function(G){if(this.j){this.X&&this.X.stop();this.G&&g.iC(this.G);G=G.YF*1E3+1E3;for(var B=0,a=g.m(this.As.values()),V=a.next();!V.done;V=a.next())V=V.value.trigger,V instanceof vv&&V.breakDurationMs<=G&&V.breakDurationMs>B&&(B=V.breakDurationMs);G=B;if(G>0)return Tb(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",G,new Set,!0),Tb(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",G,new Set,!1),!0}return!1}; g.W.YL=function(){}; g.W.P0=function(G){this.j&&this.j.contentCpn!==G?(kN("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:G,fetchInstructionsCpn:this.j.contentCpn}),so(this)):FSB(this)}; g.W.Dt=function(G){this.j&&this.j.contentCpn!==G&&kN("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:G,fetchInstructionsCpn:this.j.contentCpn},!0);so(this)}; g.W.XA=function(G){var B=this;if(this.j)kN("Unexpected multiple fetch instructions for the current content");else{this.j=G;G=AVK(G);this.X=new g.J8(function(){FSB(B)},G?G:6E5); this.X.start();this.G=new g.J8(function(){B.j&&(B.X&&(B.X.stop(),B.X.start()),sGg(B,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},JVA(this.j)); G=this.fN.get().getCurrentTimeSec(1,!1);for(var a=g.m(this.nD.get().y9),V=a.next();!V.done;V=a.next())V=V.value,Bv(this.BS.get(),"nocache","ct."+Date.now()+";cmt."+G+";d."+V.YF.toFixed(3)+";tw."+(V.startSecs-G)+";cid."+V.identifier+";")}}; g.W.yb=function(){g.r.prototype.yb.call(this);so(this)};g.t(Fy,g.r);g.W=Fy.prototype;g.W.mj=function(G,B,a,V){if(this.As.has(B.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(B instanceof Pv))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+B.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.As.set(B.triggerId,new oV(G,B,a,V));G=this.j.has(B.triggeringLayoutId)?this.j.get(B.triggeringLayoutId):new Set;G.add(B);this.j.set(B.triggeringLayoutId,G)}; g.W.Ck=function(G){this.As.delete(G.triggerId);if(!(G instanceof Pv))throw new Y("Incorrect TriggerType: Tried to unregister trigger of type "+G.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var B=this.X.get(G.triggerId);B&&(B.dispose(),this.X.delete(G.triggerId));if(B=this.j.get(G.triggeringLayoutId))B.delete(G),B.size===0&&this.j.delete(G.triggeringLayoutId)}; g.W.pn=function(){}; g.W.x3=function(){}; g.W.E$=function(){}; g.W.JH=function(){}; g.W.tH=function(){}; g.W.KR=function(){}; g.W.wE=function(){}; g.W.dE=function(){}; g.W.Ln=function(){}; g.W.Iy=function(){}; g.W.gO=function(G,B){var a=this;if(this.j.has(B.layoutId)){G=this.j.get(B.layoutId);G=g.m(G);var V=G.next();for(B={};!V.done;B={Te:void 0},V=G.next())B.Te=V.value,V=new g.J8(function(x){return function(){var h=a.As.get(x.Te.triggerId);fF(a.C(),[h])}}(B),B.Te.durationMs),V.start(),this.X.set(B.Te.triggerId,V)}}; g.W.kW=function(){};g.t(J1,g.r);J1.prototype.mj=function(G,B,a,V){if(this.As.has(B.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(B instanceof Uw))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+B.triggerType+" in VideoTransitionTriggerAdapter.");this.As.set(B.triggerId,new oV(G,B,a,V))}; J1.prototype.Ck=function(G){this.As.delete(G.triggerId)};Pk.prototype.u9=function(G){return G.kind==="AD_PLACEMENT_KIND_START"};g.t(Ga,g.r);g.W=Ga.prototype;g.W.logEvent=function(G){this.uI(G)}; g.W.k$=function(G,B,a){this.uI(G,void 0,void 0,void 0,B,void 0,void 0,void 0,B.adSlotLoggingData,void 0,void 0,a)}; g.W.vr=function(G,B,a,V){this.uI(G,void 0,void 0,void 0,B,a?a:void 0,void 0,void 0,B.adSlotLoggingData,a?a.adLayoutLoggingData:void 0,void 0,V)}; g.W.Zv=function(G,B,a,V){As(this.vS.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+G,"trigger:",a,"slot:",B,"layout:",V);KF(this.j.get())&&this.uI(G,void 0,void 0,void 0,B,V?V:void 0,void 0,a,B.adSlotLoggingData,V?V.adLayoutLoggingData:void 0)}; g.W.Nr=function(G,B,a,V,x){this.uI(G,B,a,V,void 0,void 0,void 0,void 0,void 0,void 0,void 0,x)}; g.W.iC=function(G,B,a,V){this.uI("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,a,V,void 0,void 0,a.adSlotLoggingData,V?V.adLayoutLoggingData:void 0,{errorType:G,errorMessage:B})}; g.W.uI=function(G,B,a,V,x,h,e,w,K,l,k,N){var d=this;N=N===void 0?0:N;As(this.vS.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+G,"slot:",x,"layout:",h,"ping:",e,"Opportunity:",{opportunityType:B,associatedSlotId:a,YY1:V,zfX:w,adSlotLoggingData:K,adLayoutLoggingData:l});try{var C=function(){if(!d.vS.get().T.U().S("html5_disable_client_tmp_logs")&&G!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){G||kN("Empty PACF event type",x,h);var z=KF(d.j.get()),p={eventType:G,eventOrder:++d.eventCount},O={}; x&&(O.slotData=wa(z,x));h&&(O.layoutData=HAV(z,h));e&&(O.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:e.j.serializedAdPingMetadata,pingIndex:e.index});w&&(O.triggerData=WV(w.trigger,w.category));B&&(O.opportunityData=vkA(z,B,a,V));z={organicPlaybackContext:{contentCpn:t5(d.WS.get(),1).clientPlaybackNonce}};z.organicPlaybackContext.isLivePlayback=t5(d.WS.get(),1).SE;var b;z.organicPlaybackContext.isMdxPlayback=(b=t5(d.WS.get(),1))==null?void 0:b.isMdxPlayback; var c;if((c=t5(d.WS.get(),1))==null?0:c.daiEnabled)z.organicPlaybackContext.isDaiContent=!0;var H;if(b=(H=t5(d.WS.get(),2))==null?void 0:H.clientPlaybackNonce)z.adVideoPlaybackContext={adVideoCpn:b};z&&(O.externalContext=z);p.adClientData=O;K&&(p.serializedSlotAdServingData=K.serializedSlotAdServingDataEntry);l&&(p.serializedAdServingData=l.serializedAdServingDataEntry);k&&(p.errorInfo=k);g.wP("adsClientStateChange",{adsClientEvent:p})}}; N&&N>0?g.PH(g.Me(),function(){return C()},N):C()}catch(z){As(this.vS.get(),"html5_log_pacf_logging_errors")&&g.PH(g.Me(),function(){kN(z instanceof Error?z:String(z),x,h,{pacf_message:"exception during pacf logging"})})}};var M_3=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.t(Bp,Ga);g.W=Bp.prototype; g.W.k$=function(G,B,a){Ga.prototype.k$.call(this,G,B,a);EB(this.vS.get())&&(a={},this.context.Ci.jE("pacf",(a.et=G,a.st=B.slotType,a.si=B.slotId,a)))}; g.W.vr=function(G,B,a,V){var x=M_3.has(G);Ga.prototype.vr.call(this,G,B,a,V);EB(this.vS.get(),x)&&(V={},this.context.Ci.jE("pacf",(V.et=G,V.st=B.slotType,V.si=B.slotId,V.lt=a==null?void 0:a.layoutType,V.li=a==null?void 0:a.layoutId,V.p_ac=a==null?void 0:a.layoutId,V)))}; g.W.Nr=function(G,B,a,V,x){Ga.prototype.Nr.call(this,G,B,a,V,x);EB(this.vS.get())&&(a={},this.context.Ci.jE("pacf",(a.et=G,a.ot=B,a.ss=V==null?void 0:V.length,a)))}; g.W.Zv=function(G,B,a,V){Ga.prototype.Zv.call(this,G,B,a,V);if(EB(this.vS.get())){var x={};this.context.Ci.jE("pacf",(x.et=G,x.tt=a.trigger.triggerType,x.tc=a.category,x.st=B.slotType,x.si=B.slotId,x.lt=V==null?void 0:V.layoutType,x.li=V==null?void 0:V.layoutId,x.p_ac=V==null?void 0:V.layoutId,x))}}; g.W.iC=function(G,B,a,V){Ga.prototype.iC.call(this,G,B,a,V);if(EB(this.vS.get(),!0)){var x={};this.context.Ci.jE("perror",(x.ert=G,x.erm=B,x.st=a.slotType,x.si=a.slotId,x.lt=V==null?void 0:V.layoutType,x.li=V==null?void 0:V.layoutId,x.p_ac=V==null?void 0:V.layoutId,x))}}; g.W.uI=function(G,B,a,V,x,h,e,w,K,l,k){if(g.yI(this.vS.get().T.U())){var N=this.vS.get();N=g.kf(N.T.U().experiments,"H5_async_logging_delay_ms")}else N=void 0;Ga.prototype.uI.call(this,G,B,a,V,x,h,e,w,K,l,k,N)};aM.prototype.clear=function(){this.j.clear()};h2.prototype.resolve=function(G){VC(this,G)}; h2.prototype.reject=function(G){xA(this,G)}; h2.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; h2.prototype.wait=function(){var G=this;return function a(){return N_c(a,function(V){if(V.j==1)return g.OA(V,2),g.f(V,{MU:G},4);if(V.j!=2)return V.return(V.X);g.bx(V);return g.yb(V,0)})}()}; var UNc=Tv(function(G){return ek(G)?G instanceof h2:!1});Object.freeze({HKX:function(G){var B=NaK(G);return d2(kBc(B,function(a){return B[a].currentState==="fail"}),function(a){return Number.isNaN(a)?B.map(function(V){return V.state().result}):B[a]})}, Rfn:function(G){var B=NaK(G);return d2(kBc(B),function(){return B.map(function(a){return a.state()})})}});var t2=window.tdb||"es-419";ph.prototype.Ep=function(G){this.client=G}; ph.prototype.j=function(){this.clear();this.csn=g.y0()}; ph.prototype.clear=function(){this.C.clear();this.X.clear();this.G.clear();this.csn=null};O0.prototype.Ep=function(G){g.ob(U0().Ep).bind(U0())(G)}; O0.prototype.clear=function(){g.ob(U0().clear).bind(U0())()};g.W=E0.prototype;g.W.Ep=function(G){this.client=G}; g.W.vU=function(G,B){var a=this;B=B===void 0?{}:B;g.ob(function(){var V,x,h,e=((V=g.u(G==null?void 0:G.commandMetadata,g.IB))==null?void 0:V.rootVe)||((x=g.u(G==null?void 0:G.commandMetadata,t$$))==null?void 0:(h=x.screenVisualElement)==null?void 0:h.uiType);if(e){V=g.u(G==null?void 0:G.commandMetadata,Zdl);if(V==null?0:V.parentTrackingParams){var w=g.E1(V.parentTrackingParams);if(V.parentCsn)var K=V.parentCsn}else B.clickedVisualElement?w=B.clickedVisualElement:G.clickTrackingParams&&(w=g.E1(G.clickTrackingParams)); a:{V=g.u(G,g.o0);x=g.u(G,nVl);if(V){if(x=CEX(V,"VIDEO")){V={token:x,videoId:V.videoId};break a}}else if(x&&(V=CEX(x,"PLAYLIST"))){V={token:V,playlistId:x.playlistId};break a}V=void 0}B=Object.assign({},{cttAuthInfo:V,parentCsn:K},B);if(g.pB("expectation_logging")){var l;B.loggingExpectations=((l=g.u(G==null?void 0:G.commandMetadata,t$$))==null?void 0:l.loggingExpectations)||void 0}bD(a,e,w,B)}else g.Zb(new g.FI("Error: Trying to create a new screen without a rootVeType",G))})()}; g.W.clickCommand=function(G,B,a){G=G.clickTrackingParams;a=a===void 0?0:a;G?(a=g.y0(a===void 0?0:a))?(m$9(this.client,a,g.E1(G),B),B=!0):B=!1:B=!1;return B}; g.W.stateChanged=function(G,B,a){this.visualElementStateChanged(g.E1(G),B,a===void 0?0:a)}; g.W.visualElementStateChanged=function(G,B,a){a=a===void 0?0:a;a===0&&this.X.has(a)?this.V.push([G,B]):gfz(this,G,B,a)};fh.prototype.fetch=function(G,B,a){var V=this,x=OFy(G,B,a);return new Promise(function(h,e){function w(){if(a==null?0:a.rK)try{var l=V.handleResponse(G,x.status,x.response,a);h(l)}catch(k){e(k)}else h(V.handleResponse(G,x.status,x.response,a))} x.onerror=w;x.onload=w;var K;x.send((K=B.body)!=null?K:null)})}; fh.prototype.handleResponse=function(G,B,a,V){a=a.replace(")]}'","");try{var x=JSON.parse(a)}catch(h){g.Zb(new g.FI("JSON parsing failed after XHR fetch",G,B,a));if((V==null?0:V.rK)&&a)throw new g.s8(1,"JSON parsing failed after XHR fetch");x={}}B!==200&&(g.Zb(new g.FI("XHR API fetch failed",G,B,a)),x=Object.assign({},x,{errorMetadata:{status:B}}));return x};Hp.getInstance=function(){var G=g.LV("ytglobal.storage_");G||(G=new Hp,g.Qb("ytglobal.storage_",G));return G}; Hp.prototype.estimate=function(){var G,B,a;return g.v(function(V){G=navigator;return((B=G.storage)==null?0:B.estimate)?V.return(G.storage.estimate()):((a=G.webkitTemporaryStorage)==null?0:a.queryUsageAndQuota)?V.return(EfA()):V.return()})}; g.Qb("ytglobal.storageClass_",Hp);en.prototype.oM=function(G){this.handleError(G)}; en.prototype.logEvent=function(G,B){switch(G){case "IDB_DATA_CORRUPTED":g.pB("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",B);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",B);break;case "IS_SUPPORTED_COMPLETED":g.pB("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",B);break;case "QUOTA_EXCEEDED":bFb(this,B);break;case "TRANSACTION_ENDED":this.C&&Math.random()<=.1&&this.j("idbTransactionEnded",B);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":G= Object.assign({},B,{hasWindowUnloaded:this.X}),this.j("idbTransactionAborted",G)}};var Tw={},Wyb=g.M$("yt-player-local-media",{IC:(Tw.index={t6:2},Tw.media={t6:2},Tw.captions={t6:5},Tw),shared:!1,upgrade:function(G,B){B(2)&&(g.nN(G,"index"),g.nN(G,"media"));B(5)&&g.nN(G,"captions");B(6)&&(fN(G,"metadata"),fN(G,"playerdata"))}, version:5});var Gzh={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},s2;a:{var Fb=g.ns();Fb=Fb.toLowerCase();if(g.E3(Fb,"android")){var B4f=Fb.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(B4f){var avW=parseFloat(B4f[1]);if(avW<100){s2=avW;break a}}var Vo7=Fb.match("("+Object.keys(Gzh).join("|")+")");s2=Vo7?Gzh[Vo7[0]]:0}else s2=void 0}var vo=s2,Ho=vo>=0;var vJy=window;var ysx=NH(function(){var G,B;return(B=(G=window).matchMedia)==null?void 0:B.call(G,"(prefers-reduced-motion: reduce)").matches});var Dk;g.vp=new np;Dk=0;var Sk={BP:function(G){G.reverse()}, vF:function(G,B){var a=G[0];G[0]=G[B%G.length];G[B%G.length]=a}, o0:function(G,B){G.splice(0,B)}};var TMy=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var iB=RuV()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Jx?!0:!1;var hDH={Pzd:"adunit",iEn:"detailpage",W$b:"editpage",t9J:"embedded",cWb:"leanback",GSr:"previewpage",Z1b:"profilepage",K7:"unplugged",H1n:"playlistoverview",XEH:"sponsorshipsoffer",n9r:"shortspage",Hkn:"handlesclaiming",S1l:"immersivelivepage",HEb:"creatormusic",hxr:"immersivelivepreviewpage",lsN:"admintoolyurt",VLl:"shortsaudiopivot",CYX:"consumption"};var JZ,xW9,jy;JZ={};g.Lh=(JZ.STOP_EVENT_PROPAGATION="html5-stop-propagation",JZ.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",JZ.IV_DRAWER_OPEN="ytp-iv-drawer-open",JZ.MAIN_VIDEO="html5-main-video",JZ.VIDEO_CONTAINER="html5-video-container",JZ.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",JZ.HOUSE_BRAND="house-brand",JZ);xW9={};jy=(xW9.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",xW9.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",xW9);var QfH={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var FbK={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},Jmx={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"},QD9={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var y4B={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.GO.prototype.getLanguageInfo=function(){return this.VW}; g.GO.prototype.getXtags=function(){if(!this.xtags){var G=this.id.split(";");G.length>1&&(this.xtags=G[1])}return this.xtags}; g.GO.prototype.toString=function(){return this.VW.name}; g.GO.prototype.getLanguageInfo=g.GO.prototype.getLanguageInfo;BU.prototype.Wx=function(G){return this.X===G.X&&this.j===G.j&&this.C===G.C&&this.reason===G.reason&&(!Vy||this.NB===G.NB)}; BU.prototype.isLocked=function(){return this.C&&!!this.X&&this.X===this.j}; BU.prototype.compose=function(G){if(G.C&&xh(G))return L$;if(G.C||xh(this))return G;if(this.C||xh(G))return this;var B=this.X&&G.X?Math.max(this.X,G.X):this.X||G.X,a=this.j&&G.j?Math.min(this.j,G.j):this.j||G.j;B=Math.min(B,a);var V=0;Vy&&(V=this.NB!==0&&G.NB!==0?Math.min(this.NB,G.NB):this.NB===0?G.NB:this.NB);return Vy&&B===this.X&&a===this.j&&V===this.NB||!Vy&&B===this.X&&a===this.j?this:Vy?new BU(B,a,!1,a===this.j&&V===this.NB?this.reason:G.reason,V):new BU(B,a,!1,a===this.j?this.reason:G.reason)}; BU.prototype.G=function(G){return!G.video||Vy&&this.NB!==0&&this.NB=0}; g.W.oH=function(){var G=this.segments[this.segments.length-1];return G?G.endTime:NaN}; g.W.b6=function(){return this.segments[0].startTime}; g.W.KP=function(){return this.segments.length}; g.W.qP=function(){return 0}; g.W.nR=function(G){return(G=this.sE(G))?G.AX:-1}; g.W.MA=function(G){return(G=this.OM(G))?G.sourceURL:""}; g.W.getStartTime=function(G){return(G=this.OM(G))?G.startTime:0}; g.W.TC=function(G){return this.getStartTime(G)+this.getDuration(G)}; g.W.Ob=ay(1);g.W.isLoaded=function(){return this.segments.length>0}; g.W.OM=function(G){if(this.j&&this.j.AX===G)return this.j;G=g.e$(this.segments,new nT(G,0,0,0,""),function(B,a){return B.AX-a.AX}); return this.j=G>=0?this.segments[G]:null}; g.W.sE=function(G){if(this.j&&this.j.startTime<=G&&G=0?this.segments[G]:this.segments[Math.max(0,-G-2)]}; g.W.append=function(G){if(G.length)if(G=g.Gv(G),this.segments.length){var B=this.segments.length?g.s3(this.segments).endTime:0,a=G[0].AX-this.MQ();a>1&&MBA(this.segments);for(a=a>0?0:-a+1;aG.AX&&this.index.Dh()<=G.AX+1}; g.W.update=function(G,B,a){this.index.append(G);UyK(this.index,a);G=this.index;G.X=B;G.C="update"}; g.W.tv=function(){return this.iR()?!0:bM.prototype.tv.call(this)}; g.W.KL=function(G,B){var a=this.index.MA(G),V=this.index.getStartTime(G),x=this.index.getDuration(G),h;B?x=h=0:h=this.info.NB>0?this.info.NB*x:1E3;return new $p([new Hs(3,this,void 0,"liveCreateRequestInfoForSegment",G,V,x,0,h,!B)],a)}; g.W.NS=function(){return this.iR()?0:this.initRange.length}; g.W.n_=function(){return!1};sY.prototype.update=function(G){var B=void 0;this.X&&(B=this.X);var a=new sY,V=Array.from(G.getElementsByTagName("S"));if(V.length){var x=+LE(G,"timescale")||1,h=(+V[0].getAttribute("t")||0)/x,e=+LE(G,"startNumber")||0;a.G=h;var w=B?B.startSecs+B.YF:0,K=Date.parse(CVz(LE(G,"yt:segmentIngestTime")))/1E3;a.B=G.parentElement.tagName==="SegmentTemplate";a.B&&(a.W=LE(G,"media"));G=B?e-B.AX:1;a.L=G>0?0:-G+1;G=g.m(V);for(V=G.next();!V.done;V=G.next()){V=V.value;for(var l=+V.getAttribute("d")/x,k=(+V.getAttribute("yt:sid")|| 0)/x,N=+V.getAttribute("r")||0,d=0;d<=N;d++)if(B&&e<=B.AX)e++;else{var C=new NZg(e,w,l,K+k,h);a.j.push(C);var z=V;var p=x,O=C.startSecs;C=z.getAttribute("yt:cuepointTimeOffset");var b=z.getAttribute("yt:cuepointDuration");if(C&&b){C=Number(C);O=-C/p+O;p=Number(b)/p;b=z.getAttribute("yt:cuepointContext")||null;var c=z.getAttribute("yt:cuepointIdentifier")||"";z=z.getAttribute("yt:cuepointEvent")||"";z=new X$(O,p,b,c,elk[z]||"unknown",C)}else z=null;z&&a.C.push(z);e++;w+=l;h+=l;K+=l+k}}a.j.length&& (a.X=g.s3(a.j))}this.L=a.L;this.X=a.X||this.X;g.BK(this.j,a.j);g.BK(this.C,a.C);this.B=a.B;this.W=a.W;this.G===-1&&(this.G=a.getStreamTimeOffset())}; sY.prototype.getStreamTimeOffset=function(){return this.G===-1?0:this.G};g.t(JB,g.fT);g.W=JB.prototype;g.W.oz=function(){return this.EA}; g.W.Ie=function(G,B){G=AB(this,G);return G>=0&&(B||!this.segments[G].pending)}; g.W.Dh=function(){return this.uF?this.segments.length?this.sE(this.b6()).AX:-1:g.fT.prototype.Dh.call(this)}; g.W.b6=function(){if(this.Ai)return 0;if(!this.uF)return g.fT.prototype.b6.call(this);if(!this.segments.length)return 0;var G=Math.max(g.s3(this.segments).endTime-this.XT,0);return this.Qg>0&&this.sE(G).AX0)return this.Ua/1E3;if(!this.segments.length)return g.fT.prototype.oH.call(this);var G=this.MQ();if(!this.uF||G<=this.segments[this.segments.length-1].AX)G=this.segments[this.segments.length-1];else{var B=this.segments[this.segments.length-1];G=new nT(G,Math.max(0,B.startTime-(B.AX-G)*this.EA),this.EA,0,"sq/"+G,void 0,void 0,!0)}return this.Ai?Math.min(this.XT,G.endTime):G.endTime}; g.W.KP=function(){return this.uF?this.segments.length?this.MQ()-this.Dh()+1:0:g.fT.prototype.KP.call(this)}; g.W.MQ=function(){var G=Math.min(this.SK,Math.max(g.fT.prototype.MQ.call(this),this.M7)),B=this.XT*1E3;B=this.Ua>0&&this.Ua0&&this.M7>0&&!B&&(B=this.sE(this.XT))&&(G=Math.min(B.AX-1,G));return G}; g.W.RX=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.W.Yc=function(G){var B=AB(this,G.AX);if(B>=0)this.segments[B]=G;else if(this.segments.splice(-(B+1),0,G),this.qb&&G.AX%(300/this.EA)===0){var a=this.segments[0].AX,V=Math.floor(this.qb/this.EA);G=G.AX-V;B=-(B+1)-V;B>0&&G>a&&(this.segments=this.segments.slice(B))}}; g.W.BA=function(){return this.M7}; g.W.E_=function(G){return F3?!this.X&&G>=0&&this.MQ()<=G:g.fT.prototype.E_.call(this,G)}; g.W.sE=function(G){if(!this.uF)return g.fT.prototype.sE.call(this,G);if(!this.segments.length)return null;var B=this.segments[this.segments.length-1];if(G=B.endTime)B=B.AX+Math.floor((G-B.endTime)/this.EA+1);else{B=WK(this.segments,function(V){return G=V.endTime?1:0}); if(B>=0)return this.segments[B];var a=-(B+1);B=this.segments[a-1];a=this.segments[a];B=Math.floor((G-B.endTime)/((a.startTime-B.endTime)/(a.AX-B.AX-1))+1)+B.AX}return this.OM(B)}; g.W.OM=function(G){if(!this.uF)return g.fT.prototype.OM.call(this,G);if(!this.segments.length)return null;var B=AB(this,G);if(B>=0)return this.segments[B];var a=-(B+1);B=this.EA;if(a===0)var V=Math.max(0,this.segments[0].startTime-(this.segments[0].AX-G)*B);else a===this.segments.length?(V=this.segments[this.segments.length-1],V=V.endTime+(G-V.AX-1)*B):(V=this.segments[a-1],B=this.segments[a],B=(B.startTime-V.endTime)/(B.AX-V.AX-1),V=V.endTime+(G-V.AX-1)*B);return new nT(G,V,B,0,"sq/"+G,void 0,void 0, !0)}; var F3=!1;g.t(Yp,QU);g.W=Yp.prototype;g.W.vN=function(){return!0}; g.W.tv=function(){return!0}; g.W.EY=function(G){return this.MM()&&G.C&&!G.G||!G.j.index.E_(G.AX)}; g.W.kS=function(){}; g.W.dK=function(G,B){return typeof G!=="number"||isFinite(G)?QU.prototype.dK.call(this,G,B===void 0?!1:B):new $p([new Hs(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.zm,void 0,this.zm*this.info.NB)],"")}; g.W.KL=function(G,B){var a=a===void 0?!1:a;if(this.index.Ie(G))return QU.prototype.KL.call(this,G,B);var V=this.index.getStartTime(G),x=Math.round(this.zm*this.info.NB),h=this.zm;B&&(h=x=0);return new $p([new Hs(a?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",G,V,h,void 0,x,!B)],G>=0?"sq/"+G:"")};g.t(iM,bM);g.W=iM.prototype;g.W.P3=function(){return!1}; g.W.MM=function(){return!1}; g.W.vN=function(){return!1}; g.W.kS=function(){return new $p([new Hs(1,this,void 0,"otfInit")],this.B)}; g.W.K2=function(){return null}; g.W.PK=function(G){this.EY(G);return OeY(this,R7(G),!1)}; g.W.dK=function(G,B){B=B===void 0?!1:B;G=this.index.nR(G);B&&(G=Math.min(this.index.MQ(),G+1));return OeY(this,G,!0)}; g.W.QG=function(G){G.info.type===1&&(this.j||(this.j=Oj(G.j)),G.X&&G.X.uri==="http://youtube.com/streaming/otf/durations/112015"&&EbB(this,G.X))}; g.W.EY=function(G){return G.C===0?!0:this.index.MQ()>G.AX&&this.index.Dh()<=G.AX+1}; g.W.NS=function(){return 0}; g.W.n_=function(){return!1};Ps.prototype.k_=function(){return this.j.k_()};g.W=g.Ve.prototype;g.W.Ie=function(G){return G<=this.MQ()}; g.W.qP=function(G){return this.offsets[G]}; g.W.getStartTime=function(G){return this.startTicks[G]/this.j}; g.W.TC=function(G){return this.getStartTime(G)+this.getDuration(G)}; g.W.Ob=ay(0);g.W.lJ=function(){return NaN}; g.W.getDuration=function(G){G=this.Nv(G);return G>=0?G/this.j:-1}; g.W.Nv=function(G){return G+1=0}; g.W.oH=function(){return this.X?this.startTicks[this.count]/this.j:NaN}; g.W.b6=function(){return 0}; g.W.KP=function(){return this.count}; g.W.MA=function(){return""}; g.W.nR=function(G){G=g.e$(this.startTicks.subarray(0,this.count),G*this.j);return G>=0?G:Math.max(0,-G-2)}; g.W.isLoaded=function(){return this.MQ()>=0}; g.W.yF=function(G,B){if(G>=this.MQ())return 0;var a=0;for(B=this.getStartTime(G)+B;Gthis.getStartTime(G);G++)a=Math.max(a,DZy(this,G)/this.getDuration(G));return a}; g.W.resize=function(G){G+=2;var B=this.offsets;this.offsets=new Float64Array(G+1);var a=this.startTicks;this.startTicks=new Float64Array(G+1);for(G=0;G0&&G&&(a=a.range.end+1,G=Math.min(G,this.info.contentLength-a),G>0&&V.push(new Hs(4,this,nE(a,G),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,B)));return new $p(V)}; g.W.QG=function(G){if(G.info.type===1){if(this.j)return;this.j=Oj(G.j)}else if(G.info.type===2){if(this.B||this.index.MQ()>=0)return;if(g.PX(this.info)){var B=this.index,a=G.k_();G=G.info.range.start;var V=g.TO(a,0,1936286840);a=SBB(V);B.j=a.timescale;var x=a.jB;B.offsets[0]=a.qU+G+V.size;B.startTicks[0]=x;B.X=!0;G=a.iD.length;for(V=0;V0&&G===h[0].MJ)for(G=0;G=B+a)break}x.length||g.RA(new g.FI("b189619593",""+G,""+B,""+a));return new $p(x)}; g.W.He=function(G){for(var B=this.sX(G.info),a=G.info.range.start+G.info.X,V=[],x=0;x=this.index.qP(a+1);)a++;return this.Cm(a,B,G.C).nN}; g.W.EY=function(G){G.Pr();return this.tv()?!0:G.range.end+1this.info.contentLength&&(B=new yU(B.start,this.info.contentLength-1)),new $p([new Hs(4,G.j,B,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,G.clipId)]);G.type===4&&(G=this.sX(G),G=G[G.length-1]);var a=0,V=G.range.start+G.X+G.C;G.type===3&&(G.Pr(),a=G.AX,V===G.range.end+1&&(a+=1));return this.Cm(a,V,B)}; g.W.PK=function(){return null}; g.W.dK=function(G,B,a){B=B===void 0?!1:B;G=this.index.nR(G);B&&(G=Math.min(this.index.MQ(),G+1));return this.Cm(G,this.index.qP(G),0,a)}; g.W.P3=function(){return!0}; g.W.MM=function(){return!0}; g.W.vN=function(){return!1}; g.W.NS=function(){return this.indexRange.length+this.initRange.length}; g.W.n_=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var i$={},ieY=(i$.COLOR_PRIMARIES_BT709="bt709",i$.COLOR_PRIMARIES_BT2020="bt2020",i$.COLOR_PRIMARIES_UNKNOWN=null,i$.COLOR_PRIMARIES_UNSPECIFIED=null,i$),PA={},R7B=(PA.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",PA.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",PA.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",PA.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",PA.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,PA.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,PA);g.e2.prototype.getName=function(){return this.name}; g.e2.prototype.getId=function(){return this.id}; g.e2.prototype.getIsDefault=function(){return this.isDefault}; g.e2.prototype.toString=function(){return this.name}; g.e2.prototype.getName=g.e2.prototype.getName;g.e2.prototype.getId=g.e2.prototype.getId;g.e2.prototype.getIsDefault=g.e2.prototype.getIsDefault;var XZx=/action_display_post/;var q4_,Kw,lB;g.t(kD,g.wI);g.W=kD.prototype;g.W.isLoading=function(){return this.state===1}; g.W.Vm=function(){return this.state===3}; g.W.VSJ=function(G){var B=G.getElementsByTagName("Representation");if(G.getElementsByTagName("SegmentList").length>0||G.getElementsByTagName("SegmentTemplate").length>0){this.SE=this.X=!0;this.timeline||(this.timeline=new tgc);pZA(this.timeline,G);this.publish("refresh");for(G=0;G=0?k=cs(d):N=N+"?range="+d}K.call(w,new nT(l.AX,l.startSecs,l.YF,l.j,N,k,l.X))}V=x}a.update(V,this.isLive,this.Ur)}UZy(this.timeline);return!0}this.duration=dZH(LE(G,"mediaPresentationDuration")); a:{for(G=0;G0))return this.LD()-G}}G=this.j;for(var B in G){var a=G[B].index;if(a.isLoaded()&&!ar(G[B].info.mimeType))return a.b6()}return 0}; g.W.getStreamTimeOffset=function(){return this.W}; g.W.lJ=function(G){for(var B in this.j){var a=this.j[B].index;if(a.isLoaded()){var V=a.nR(G),x=a.lJ(V);if(x)return x+G-a.getStartTime(V)}}return NaN}; var bB=null,Wn3,ye=!((Wn3=navigator.mediaCapabilities)==null||!Wn3.decodingInfo),aoB={commentary:1,alternate:2,dub:3,main:4};var CW=new Set,cJ=new Map;HJ.prototype.clone=function(G){return new HJ(this.flavor,G,this.X,this.experiments)}; HJ.prototype.Nd=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; HJ.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 wYW={},uB=(wYW.playready=["com.youtube.playready","com.microsoft.playready"],wYW.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],wYW),oB={},Nwb=(oB.widevine="DRM_SYSTEM_WIDEVINE",oB.fairplay="DRM_SYSTEM_FAIRPLAY",oB.playready="DRM_SYSTEM_PLAYREADY",oB),MG={},Kns=(MG.widevine=1,MG.fairplay=2,MG.playready=3,MG);Lw.prototype.X2=function(G,B){B=B===void 0?1:B;this.EM+=B;this.X+=G;G/=B;for(var a=0;a0)V+="."+Qe[x].toFixed(0)+"_"+a.j[x].toFixed(0);else break;a=V}a&&(G[B]=a)}this.j=new t79;return G}; g.W.toString=function(){return""};g.W=OnV.prototype;g.W.isActive=function(){return!1}; g.W.Zk=function(){}; g.W.y6=function(){}; g.W.Z7=function(G,B){return B}; g.W.eT=function(){}; g.W.QE=function(){}; g.W.kX=function(G,B){return B()}; g.W.aO=function(){return{}}; g.W.toString=function(){return""};var GZ,lv3,kzJ,N4h,dWC,CKf,B9,bd,ao,nPB,AA;GZ=new OnV;lv3=!!+Yt("html5_enable_profiler");kzJ=!!+Yt("html5_onesie_enable_profiler");N4h=!!+Yt("html5_offline_encryption_enable_profiler");dWC=!!+Yt("html5_performance_impact_profiling_timer_ms");CKf=!!+Yt("html5_drm_enable_profiler");B9=lv3||kzJ||N4h||dWC||CKf?new IoK:GZ;g.RH=lv3?B9:GZ;bd=kzJ?B9:GZ;ao=N4h?B9:GZ;nPB=dWC?B9:GZ;AA=CKf?B9:GZ;var JA;g.t(sT,g.r); sT.prototype.initialize=function(G,B){for(var a=this,V=g.m(Object.keys(G)),x=V.next();!x.done;x=V.next()){x=g.m(G[x.value]);for(var h=x.next();!h.done;h=x.next())if(h=h.value,h.Ji)for(var e=g.m(Object.keys(h.Ji)),w=e.next();!w.done;w=e.next()){var K=w.value;w=K;K=uB[K];!K&&this.S("html5_enable_vp9_fairplay")&&w==="fairplay"&&(K=["com.youtube.fairplay.sbdl"]);if(K){K=g.m(K);for(var l=K.next();!l.done;l=K.next())l=l.value,this.C[l]=this.C[l]||new HJ(w,l,h.Ji[w],this.Rn.experiments),this.j[w]=this.j[w]|| {},this.j[w][h.mimeType]=!0}}}sq()&&(this.C["com.youtube.fairplay"]=new HJ("fairplay","com.youtube.fairplay","",this.Rn.experiments),this.S("html5_enable_vp9_fairplay")||(this.j.fairplay=this.j.fairplay||{},this.j.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.j.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.X=zqA(B,this.useCobaltWidevine,this.S("html5_enable_safari_fairplay"),this.S("html5_enable_vp9_fairplay")).filter(function(k){return!!a.C[k]})}; sT.prototype.S=function(G){return this.Rn.experiments.Or(G)};var zll={"":"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"};fog.prototype.S=function(G){return this.experiments.Or(G)};var WYc={RED:"red",BtB:"white"};Hn_.prototype.Or=function(G){G=this.flags[G];JSON.stringify(G);return G==="true"};var SM9=Promise.resolve(),$Nb=window.queueMicrotask?window.queueMicrotask.bind(window):RqB;oW.prototype.canPlayType=function(G,B){G=G.canPlayType?G.canPlayType(B):!1;FC?G=G||toW[B]:vo===2.2?G=G||mWk[B]:LB()&&(G=G||Ivh[B]);return!!G}; oW.prototype.isTypeSupported=function(G){return this.XJ?window.cast.receiver.platform.canDisplayType(G):Dh(G)}; var mWk={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Ivh={"application/x-mpegURL":"maybe"},toW={"application/x-mpegURL":"maybe"};g.t(Vt,g.wI);Vt.prototype.add=function(G,B){if(!this.items[G]&&(B.E4||B.ZW||B.QV)){var a=this.items,V=B;Object.isFrozen&&!Object.isFrozen(B)&&(V=Object.create(B),Object.freeze(V));a[G]=V;this.publish("vast_info_card_add",G)}}; Vt.prototype.remove=function(G){var B=this.get(G);delete this.items[G];return B}; Vt.prototype.get=function(G){return this.items[G]||null}; Vt.prototype.isEmpty=function(){return g.yw(this.items)};g.t(xF,g.Ud);xF.prototype.j=function(G,B){return g.Ud.prototype.j.call(this,G,B)}; xF.prototype.X=function(G,B,a){var V=this;return g.v(function(x){return x.j==1?g.f(x,g.Ud.prototype.X.call(V,G,B,a),2):x.return(x.X)})}; g.t(h3,g.Od);h3.prototype.encrypt=function(G,B){return g.Od.prototype.encrypt.call(this,G,B)};var Wo;wG.prototype.add=function(G){if(this.pos+20>this.data.length){var B=new Uint8Array(this.data.length*2);B.set(this.data);this.data=B}for(;G>31;)this.data[this.pos++]=Wo[(G&31)+32],G>>=5;this.data[this.pos++]=Wo[G|0]}; wG.prototype.Ft=function(){return g.yz(this.data.subarray(0,this.pos))}; wG.prototype.reset=function(){this.pos=0};l0.prototype.j$=function(G,B){var a=Math.pow(this.alpha,G);this.j=B*(1-a)+a*this.j;this.X+=G}; l0.prototype.cG=function(){return this.j/(1-Math.pow(this.alpha,this.X))};kF.prototype.j$=function(G,B){for(var a=0;a<10;a++){var V=this.j[a],x=V+(a===0?G:0),h=1*Math.pow(2,a);if(x<=h)break;V=Math.min(1,(x-h*.5)/V);for(x=0;x<16;x++)h=this.values[a*16+x]*V,this.values[(a+1)*16+x]+=h,this.j[a+1]+=h,this.values[a*16+x]-=h,this.j[a]-=h}V=a=0;x=8192;B>8192&&(a=Math.ceil(Math.log(B/8192)/Math.log(2)),V=8192*Math.pow(2,a-1),x=V*2);a+2>16?this.values[15]+=G:(B=(B-V)/(x-V),this.values[a]+=G*(1-B),this.values[a+1]+=G*B);this.j[0]+=G}; kF.prototype.cG=function(){var G=G===void 0?this.X:G;var B=B===void 0?.02:B;var a=a===void 0?.98:a;for(var V=this.C,x=0;x<16;x++)V[x]=this.values[x];x=this.j[0];for(var h=1;h<11;h++){var e=this.j[h];if(e===0)break;for(var w=Math.min(1,(G-x)/e),K=0;K<16;K++)V[K]+=this.values[h*16+K]*w;x+=e*w;if(w<1)break}for(h=G=e=0;h<16;h++){w=e+V[h]/x;G+=Math.max(0,Math.min(w,a)-Math.max(e,B))*(h>0?8192*Math.pow(2,h-1):0);if(w>a)break;e=w}return G/(a-B)};Nq.prototype.j$=function(G,B){G=Math.min(this.j,Math.max(1,Math.round(G*this.resolution)));G+this.X>=this.j&&(this.C=!0);for(;G--;)this.values[this.X]=B,this.X=(this.X+1)%this.j;this.z9=!0}; Nq.prototype.percentile=function(G){var B=this;if(!this.C&&this.X===0)return 0;this.z9&&(g.wK(this.B,function(a,V){return B.values[a]-B.values[V]}),this.z9=!1); return this.values[this.B[Math.round(G*((this.C?this.j:this.X)-1))]]||0}; Nq.prototype.cG=function(){return this.L?(this.percentile(this.G-this.L)+this.percentile(this.G)+this.percentile(this.G+this.L))/3:this.percentile(this.G)};g.t(dG,g.r);dG.prototype.Er=function(){var G;(G=this.SJ)==null||G.start();if(Ub(this)&&this.policy.V){var B;(B=this.qQ)==null||B.DD()}};o_c.prototype.S=function(G){return this.experiments.Or(G)};g.t(Gmb,g.r);var eDK="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),NSX={ZiL:"caoe",iiL:"capsv",uib:"cbrand",qSr:"cbr",Kwr:"cbrver",V$b:"cchip",mon:"ccappver",jYx:"ccrv",Dof:"cfrmver",tFL:"c",E1b:"cver",q1J:"ctheme",uOf:"cplayer",tcX:"cmodel",atN:"cnetwork",e31:"cos",NBJ:"cosver",y6S:"cplatform",J61:"crqyear"};g.t(Qt,g.r);g.W=Qt.prototype;g.W.S=function(G){return this.experiments.Or(G)}; g.W.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.W.getVideoUrl=function(G,B,a,V,x,h,e){B={list:B};a&&(x?B.time_continue=a:B.t=a);a=e?"music.youtube.com":g.TQ(this);x=a==="www.youtube.com";!h&&V&&x?h="https://youtu.be/"+G:g.R$(this)?(h="https://"+a+"/fire",B.v=G):(h&&x?(h=this.protocol+"://"+a+"/shorts/"+G,V&&(B.feature="share")):(h=this.protocol+"://"+a+"/watch",B.v=G),FC&&(G=PGx())&&(B.ebc=G));return g.LJ(h,B)}; g.W.getVideoEmbedCode=function(G,B,a,V){B="https://"+g.TQ(this)+"/embed/"+B;V&&(B=g.LJ(B,{list:V}));V=a.width;a=a.height;B=Yx(B);G=Yx(G!=null?G:"YouTube video player");return'')}; g.W.supportsGaplessAudio=function(){return g.vX&&!FC&&um()>=74||g.XB&&g.tO(68)?!0:!1}; g.W.supportsGaplessShorts=function(){return!this.S("html5_enable_short_gapless")||this.qB||g.It?!1:!0}; g.W.getPlayerType=function(){return this.j.cplayer}; g.W.Ef=function(){return this.xF}; var tez=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],kmb=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],CjB=[19];var ae={},g8B=(ae["140"]={numChannels:2},ae["141"]={numChannels:2},ae["251"]={audioSampleRate:48E3,numChannels:2},ae["774"]={audioSampleRate:48E3,numChannels:2},ae["380"]={numChannels:6},ae["328"]={numChannels:6},ae["773"]={},ae),VR={},maB=(VR["1"]='video/mp4; codecs="av01.0.08M.08"',VR["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',VR["1e"]='video/mp4; codecs="av01.0.08M.08"',VR["9"]='video/webm; codecs="vp9"',VR["("]='video/webm; codecs="vp9"',VR["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', VR.h='video/mp4; codecs="avc1.64001e"',VR.H='video/mp4; codecs="avc1.64001e"',VR.o='audio/webm; codecs="opus"',VR.a='audio/mp4; codecs="mp4a.40.2"',VR.ah='audio/mp4; codecs="mp4a.40.2"',VR.mac3='audio/mp4; codecs="ac-3"; channels=6',VR.meac3='audio/mp4; codecs="ec-3"; channels=6',VR.i='audio/mp4; codecs="iamf.001.001.Opus"',VR),xs={},Ilb=(xs["337"]={width:3840,height:2160,bitrate:3E7,fps:30},xs["336"]={width:2560,height:1440,bitrate:15E6,fps:30},xs["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, xs["702"]={width:7680,height:4320,bitrate:4E7,fps:60},xs["701"]={width:3840,height:2160,bitrate:2E7,fps:60},xs["700"]={width:2560,height:1440,bitrate:1E7,fps:60},xs["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},xs["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},xs["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},xs["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, xs["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},xs["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},xs["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},xs["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},xs["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},xs["315"]={width:3840,height:2160,bitrate:2E7,fps:60},xs["308"]={width:2560, height:1440,bitrate:1E7,fps:60},xs["303"]={width:1920,height:1080,bitrate:5E6,fps:60},xs["302"]={width:1280,height:720,bitrate:25E5,fps:60},xs["299"]={width:1920,height:1080,bitrate:75E5,fps:60},xs["298"]={width:1280,height:720,bitrate:35E5,fps:60},xs["571"]={width:7680,height:4320,bitrate:3E7,fps:60},xs["401"]={width:3840,height:2160,bitrate:15E6,fps:60},xs["400"]={width:2560,height:1440,bitrate:75E5,fps:60},xs["399"]={width:1920,height:1080,bitrate:2E6,fps:60},xs["398"]={width:1280,height:720,bitrate:1E6, fps:60},xs["397"]={width:854,height:480,bitrate:4E5,fps:30},xs["396"]={width:640,height:360,bitrate:25E4,fps:30},xs["787"]={width:1080,height:608,bitrate:2E5,fps:30},xs["788"]={width:1080,height:608,bitrate:4E5,fps:30},xs["572"]={width:7680,height:4320,bitrate:3E7,fps:60},xs["555"]={width:3840,height:2160,bitrate:15E6,fps:60},xs["554"]={width:2560,height:1440,bitrate:75E5,fps:60},xs["553"]={width:1920,height:1080,bitrate:2E6,fps:60},xs["552"]={width:1280,height:720,bitrate:1E6,fps:60},xs["551"]={width:854, height:480,bitrate:4E5,fps:30},xs["550"]={width:640,height:360,bitrate:25E4,fps:30},xs["313"]={width:3840,height:2160,bitrate:8E6,fps:30},xs["271"]={width:2560,height:1440,bitrate:4E6,fps:30},xs["248"]={width:1920,height:1080,bitrate:2E6,fps:30},xs["247"]={width:1280,height:720,bitrate:15E5,fps:30},xs["244"]={width:854,height:480,bitrate:52E4,fps:30},xs["243"]={width:640,height:360,bitrate:28E4,fps:30},xs["137"]={width:1920,height:1080,bitrate:4E6,fps:30},xs["136"]={width:1280,height:720,bitrate:3E6, fps:30},xs["135"]={width:854,height:480,bitrate:1E6,fps:30},xs["385"]={width:1920,height:1080,bitrate:6503313,fps:60},xs["376"]={width:1280,height:720,bitrate:5706960,fps:60},xs["384"]={width:1280,height:720,bitrate:3660979,fps:60},xs["225"]={width:1280,height:720,bitrate:5805E3,fps:30},xs["224"]={width:1280,height:720,bitrate:453E4,fps:30},xs["145"]={width:1280,height:720,bitrate:2682052,fps:30},xs);g.W=et.prototype;g.W.getInfo=function(){return this.j}; g.W.V9=function(){return null}; g.W.mY=function(){var G=this.V9();return G?(G=g.x4(G.kD),Number(G.expire)):NaN}; g.W.ET=function(){}; g.W.getHeight=function(){return this.j.video.height};E8K.prototype.build=function(){yPb(this);var G=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],B={};a:if(this.j)var a=this.j;else{a="";for(var V=g.m(this.C),x=V.next();!x.done;x=V.next())if(x=x.value,x.VW){if(x.VW.getIsDefault()){a=x.VW.getId();break a}a||(a=x.VW.getId())}}V=g.m(this.C);for(x=V.next();!x.done;x=V.next())if(x=x.value,this.L||!x.VW||x.VW.getId()===a)B[x.itag]||(B[x.itag]=[]),B[x.itag].push(x);a=g.m(this.X);for(V=a.next();!V.done;V=a.next())if(V=V.value,x=B[V.j]){x=g.m(x);for(var h=x.next();!h.done;h= x.next()){var e=G,w=e.push;h=h.value;var K="#EXT-X-MEDIA:TYPE=AUDIO,",l="YES",k="audio";if(h.VW){k=h.VW;var N=k.getId().split(".")[0];N&&(K+='LANGUAGE="'+N+'",');(this.j?this.j===k.getId():k.getIsDefault())||(l="NO");k=k.getName()}N="";V!==null&&(N=V.itag.toString());N=wt(this,h.url,N);K=K+('NAME="'+k+'",DEFAULT='+(l+',AUTOSELECT=YES,GROUP-ID="'))+(bqB(h,V)+'",URI="'+(N+'"'));w.call(e,K)}}a=g.m(this.B);for(V=a.next();!V.done;V=a.next())V=V.value,x=gnW,V=(e=V.VW)?'#EXT-X-MEDIA:URI="'+wt(this,V.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+x+'",LANGUAGE="'+e.getId()+'",NAME="'+e.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,V&&G.push(V);a=this.B.length>0?gnW:void 0;V=g.m(this.X);for(x=V.next();!x.done;x=V.next())x=x.value,w=B[x.j],e=void 0,((e=w)==null?void 0:e.length)>0&&(e=x,w=w[0],w="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+w.bitrate)+',CODECS="'+(e.codecs+","+w.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(bqB(w,e)+'",')+(a?'SUBTITLES="'+a+'",':"")+"CLOSED-CAPTIONS=NONE",e.fps>1&&(w+= ",FRAME-RATE="+e.fps),e.d9&&(w+=",VIDEO-RANGE="+e.d9),G.push(w),G.push(wt(this,x.url,"")));return G.join("\n")}; var gnW="text";g.t(K$,et);K$.prototype.mY=function(){return this.expiration}; K$.prototype.V9=function(){if(!this.kD||this.kD.TH()){var G=this.X.build();G="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(G);this.kD=new mq(G)}return this.kD};g.t(ll,et);ll.prototype.V9=function(){return new mq(this.X.Ex())}; ll.prototype.ET=function(){this.X=yy(this.X)};g.t(ki,et);ki.prototype.V9=function(){return new mq(this.X)};var hy={},rPc=(hy.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",hy.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",hy.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",hy);g.W=g.Nk.prototype;g.W.getId=function(){return this.id}; g.W.getName=function(){return this.name}; g.W.isServable=function(){return this.j}; g.W.Ex=function(){return this.url}; g.W.getXtags=function(){return this.xtags}; g.W.toString=function(){return this.languageCode+": "+g.dt(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.W.Wx=function(G){return G?this.toString()===G.toString():!1}; g.W.I4=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var QVc={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},LYB={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},TSA=/^(\d*)_((\d*)_?(\d*))$/;var FYy={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},JPX={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var eY={},pYW=(eY.ALWAYS=1,eY.BY_REQUEST=3,eY.UNKNOWN=void 0,eY),W9={},UWh=(W9.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",W9.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",W9.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",W9.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",W9);var rhX; rhX=function(G){for(var B=Object.keys(G),a={},V=0;VV-B?-1:G}; g.W.wD=function(){return this.X.MQ()}; g.W.sG=function(){return this.X.Dh()}; g.W.Rl=function(G){this.X=G};g.t(Qm,qk);Qm.prototype.X=function(G,B){return qk.prototype.X.call(this,"$N|"+G,B)}; Qm.prototype.B=function(G,B,a){return new ul(G,B,a,this.isLive)};var H_B=[],Yi=new Set;g.t(g.Tk,g.wI);g.W=g.Tk.prototype; g.W.setData=function(G){G=G||{};var B=G.errordetail;B!=null&&(this.errorDetail=B);var a=G.errorcode;a!=null?this.errorCode=a:G.status==="fail"&&(this.errorCode="auth");var V=G.reason;V!=null&&(this.errorReason=V);var x=G.subreason;x!=null&&(this.If=x);this.S("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=G.cpn||(this.Rn.Ef()?"r"+g.Et(15):g.Et(16)));this.Vb=aP(this.Rn.Vb,G.livemonitor);EEz(this,G);var h=G.raw_player_response;if(h)this.BK=h;else{var e=G.player_response; e&&(h=JSON.parse(e))}if(this.S("html5_enable_ssap_entity_id")){var w=G.cached_load;w&&(this.o$=aP(this.o$,w));if(!this.clientPlaybackNonce){var K=G.cpn;K?(this.PF("ssei","shdc"),this.clientPlaybackNonce=K):this.clientPlaybackNonce=this.Rn.Ef()?"r"+g.Et(15):g.Et(16)}}h&&(this.playerResponse=h);if(this.playerResponse){var l=this.playerResponse.annotations;if(l)for(var k=g.m(l),N=k.next();!N.done;N=k.next()){var d=N.value.playerAnnotationsUrlsRenderer;if(d){d.adsOnly&&(this.Qu=!0);var C=d.loadPolicy; C&&(this.annotationsLoadPolicy=pYW[C]);var z=d.invideoUrl;z&&(this.Ur=Bj(z));break}}var p=this.playerResponse.attestation;p&&YwY(this,p);var O=this.playerResponse.cotn;O&&(this.cotn=O);var b=this.playerResponse.heartbeatParams;if(b){pkc(this)&&(this.uW=!0);var c=b.heartbeatToken;c&&(this.drmSessionId=b.drmSessionId||"",this.heartbeatToken=c,this.qr=Number(b.intervalMilliseconds),this.EB=Number(b.maxRetries),this.jR=!!b.softFailOnError,this.zE=!!b.useInnertubeHeartbeatsForDrm,this.VN=!0);this.heartbeatServerData= b.heartbeatServerData;var H;this.dQ=!((H=b.heartbeatAttestationConfig)==null||!H.requiresAttestation)}var R=this.playerResponse.messages;R&&MeB(this,R);var q=this.playerResponse.overlay;if(q){var A=q.playerControlsOverlayRenderer;if(A)if(Bmb(this,A.controlBgHtml),A.mutedAutoplay){var J=g.u(A.mutedAutoplay,vVC);if(J&&J.endScreen){var xB=g.u(J.endScreen,DUJ);xB&&xB.text&&(this.Pe=g.tU(xB.text))}}else this.mutedAutoplay=!1}var Wz=this.playerResponse.playabilityStatus;if(Wz){var GK=Wz.backgroundability; GK&&GK.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var Q,M;if((Q=Wz.offlineability)==null?0:(M=Q.offlineabilityRenderer)==null?0:M.offlineable)this.offlineable=!0;var I=Wz.contextParams;I&&(this.contextParams=I);var L=Wz.pictureInPicture;L&&L.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);Wz.playableInEmbed&&(this.allowEmbed=!0);var ux=Wz.ypcClickwrap;if(ux){var U3=ux.playerLegacyDesktopYpcClickwrapRenderer,dl=ux.ypcRentalActivationRenderer;if(U3)this.UD=U3.durationMessage|| "",this.Nq=!0;else if(dl){var cz=dl.durationMessage;this.UD=cz?g.tU(cz):"";this.Nq=!0}}var Pz=Wz.errorScreen;if(Pz){if(Pz.playerLegacyDesktopYpcTrailerRenderer){var hJ=Pz.playerLegacyDesktopYpcTrailerRenderer;this.Wm=hJ.trailerVideoId||"";var tJ=Pz.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var E=tJ&&tJ.ypcTrailerRenderer}else if(Pz.playerLegacyDesktopYpcOfferRenderer)hJ=Pz.playerLegacyDesktopYpcOfferRenderer;else if(Pz.ypcTrailerRenderer){E=Pz.ypcTrailerRenderer;var y=E.fullVideoMessage;this.pc= y?g.tU(y):"";var n,D;this.Wm=((n=g.u(E,S7k))==null?void 0:(D=n.videoDetails)==null?void 0:D.videoId)||""}hJ&&(this.PE=hJ.itemTitle||"",hJ.itemUrl&&(this.zL=hJ.itemUrl),hJ.itemBuyUrl&&(this.mT=hJ.itemBuyUrl),this.ji=hJ.itemThumbnail||"",this.hf=hJ.offerHeadline||"",this.D6=hJ.offerDescription||"",this.Wh=hJ.offerId||"",this.Sr=hJ.offerButtonText||"",this.qE=hJ.offerButtonFormattedText||null,this.Se=hJ.overlayDurationMsec||NaN,this.pc=hJ.fullVideoMessage||"",this.H9=!0);if(E){var Z=g.u(E,S7k);if(Z)this.JY= {raw_player_response:Z};else{var Bz=g.u(E,s5f);this.JY=Bz?ah(Bz):null}this.H9=!0}}}var hg=this.playerResponse.playbackTracking;if(hg){var eB=G,S=I0(hg.googleRemarketingUrl);S&&(this.googleRemarketingUrl=S);var kB=I0(hg.youtubeRemarketingUrl);kB&&(this.youtubeRemarketingUrl=kB);var tg={},KV=I0(hg.ptrackingUrl);if(KV){var vz=gt(KV),Cs=vz.oid;Cs&&(this.nj=Cs);var Xh=vz.pltype;Xh&&(this.gs=Xh);var dK=vz.ptchn;dK&&(this.V7=dK);var sA=vz.ptk;sA&&(this.HF=encodeURIComponent(sA));var qU=vz.m;qU&&(this.u4= qU)}var K0=I0(hg.qoeUrl);if(K0){for(var vq=g.x4(K0),F2=g.m(Object.keys(vq)),Ko=F2.next();!Ko.done;Ko=F2.next()){var sz=Ko.value,uk=vq[sz];vq[sz]=Array.isArray(uk)?uk.join(","):uk}this.RD=vq;var Fm=vq.cat;Fm&&(this.S("html5_enable_qoe_cat_list")?this.Yz=this.Yz.concat(Fm.split(",")):this.BE=Fm);var Uz=vq.live;Uz&&(this.Tv=Uz);var lQ=vq.drm_product;lQ&&(this.RY=lQ)}var SU=I0(hg.videostatsPlaybackUrl);if(SU){var d3=gt(SU),Rz=d3.adformat;if(Rz){eB.adformat=Rz;var Zf=this.U(),rj=sVz(Rz,this.Nl,Zf.G,Zf.W); rj&&(this.adFormat=rj)}var c2=d3.aqi;c2&&(eB.ad_query_id=c2);var o5=d3.autoplay;o5&&(this.Ds=o5=="1",this.hN=o5=="1",aJ(this,"vss"));var Jw=d3.autonav;Jw&&(this.isAutonav=Jw=="1");var Vj=d3.delay;Vj&&(this.Md=on(Vj));var Er=d3.ei;Er&&(this.eventId=Er);if(d3.adcontext||Rz)this.Ds=!0,aJ(this,"ad");var ql=d3.feature;ql&&(this.rW=ql);var Cd=d3.list;Cd&&(this.playlistId=Cd);var O4=d3.of;O4&&(this.WK=O4);var E4=d3.osid;E4&&(this.osid=E4);var jg=d3.referrer;jg&&(this.referrer=jg);var hl=d3.sdetail;hl&&(this.i_= hl);var wx=d3.ssrt;wx&&(this.wW=wx=="1");var eI=d3.subscribed;eI&&(this.subscribed=eI=="1",this.W.subscribed=eI);var W4=d3.uga;W4&&(this.userGenderAge=W4);var bV=d3.upt;bV&&(this.Tk=bV);var yF=d3.vm;yF&&(this.videoMetadata=yF);tg.playback=d3}var cZ=I0(hg.videostatsWatchtimeUrl);if(cZ){var ne=gt(cZ),fe=ne.ald;fe&&(this.i4=fe);tg.watchtime=ne}var HZ=I0(hg.atrUrl);if(HZ){var FV=gt(HZ);tg.atr=FV}var j6=I0(hg.engageUrl);if(j6){var JQ=gt(j6);tg.engage=JQ}this.xz=tg;if(hg.promotedPlaybackTracking){var J$= hg.promotedPlaybackTracking;J$.startUrls&&(this.O9=J$.startUrls);J$.firstQuartileUrls&&(this.zY=J$.firstQuartileUrls);J$.secondQuartileUrls&&(this.C5=J$.secondQuartileUrls);J$.thirdQuartileUrls&&(this.cj=J$.thirdQuartileUrls);J$.completeUrls&&(this.m1=J$.completeUrls);J$.engagedViewUrls&&(J$.engagedViewUrls.length>1&&g.Zb(new g.FI("There are more than one engaged_view_urls.")),this.e$=J$.engagedViewUrls[0])}}var w5=this.playerResponse.playerCueRanges;w5&&w5.length>0&&(this.cueRanges=w5);var vZ=this.playerResponse.playerCueRangeSet; vZ&&g.il(this,vZ);a:{var KR=this.playerResponse.adPlacements;if(KR)for(var DO=g.m(KR),l1=DO.next();!l1.done;l1=DO.next()){var Sg=void 0,Rr=void 0,ZO=(Sg=l1.value.adPlacementRenderer)==null?void 0:(Rr=Sg.renderer)==null?void 0:Rr.videoAdTrackingRenderer;if(ZO){var rZ=ZO;break a}}rZ=null}var kr=rZ;hg&&hg.promotedPlaybackTracking&&kr&&g.Zb(new g.FI("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var Us;if(!(Us=kr))a:{for(var $b=g.m(this.playerResponse.adSlots||[]), NO=$b.next();!NO.done;NO=$b.next()){var d5=g.u(NO.value,XK);if(d5===void 0||!j3_(d5))break;var Xv=void 0,AQ=(Xv=d5.fulfillmentContent)==null?void 0:Xv.fulfilledLayout,qZ=g.u(AQ,f_);if(qZ&&I9(qZ)){Us=!0;break a}}Us=!1}Us&&(this.tS=!0);var uV=this.playerResponse.playerAds;if(uV)for(var YX=G,QF=g.m(uV),Os=QF.next();!Os.done;Os=QF.next()){var Le=Os.value;if(Le){var T2=Le.playerLegacyDesktopWatchAdsRenderer;if(T2){var yP=T2.playerAdParams;if(yP){yP.autoplay=="1"&&(this.hN=this.Ds=!0);this.sI=yP.encodedAdSafetyReason|| null;yP.showContentThumbnail!==void 0&&(this.Zr=!!yP.showContentThumbnail);YX.enabled_engage_types=yP.enabledEngageTypes;break}}}}var Ul=this.playerResponse.playerConfig;if(Ul){var $O=Ul.manifestlessWindowedLiveConfig;if($O){var s4=Number($O.minDvrSequence),CR=Number($O.maxDvrSequence),Es=Number($O.minDvrMediaTimeMs),jq=Number($O.maxDvrMediaTimeMs),zG=Number($O.startWalltimeMs);s4&&(this.Qg=s4);Es&&(this.Qb=Es/1E3,this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&eO(this)&&(this.dW=Es/ 1E3));CR&&(this.SK=CR);jq&&(this.YD=jq/1E3,this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&eO(this)&&(this.G2=jq/1E3));zG&&(this.fd=zG/1E3);(s4||Es)&&(CR||jq)&&(this.allowLiveDvr=this.isLivePlayback=this.LN=!0,this.Ai=!1)}var XN=Ul.daiConfig;if(XN){if(XN.enableDai){this.Cn=!0;var b_=XN.enableServerStitchedDai;b_&&(this.enableServerStitchedDai=b_);var Fv=XN.enablePreroll;Fv&&(this.enablePreroll=Fv)}var PF;if(XN.daiType==="DAI_TYPE_SS_DISABLED"||((PF=XN.debugInfo)==null?0:PF.isDisabledUnpluggedChannel))this.C$= !0;XN.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.X8=!0)}var lL=Ul.audioConfig;if(lL){var u4=lL.loudnessDb;u4!=null&&(this.XQ=u4);var mdA=lL.trackAbsoluteLoudnessLkfs;mdA!=null&&(this.P7=mdA);var IyA=lL.loudnessTargetLkfs;IyA!=null&&(this.loudnessTargetLkfs=IyA);lL.audioMuted&&(this.rQ=!0);lL.muteOnStart&&(this.Ej=!0);var Um=lL.loudnessNormalizationConfig;if(Um){Um.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Um.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var ggH=Um.minimumLoudnessTargetLkfs;ggH!=null&&(this.minimumLoudnessTargetLkfs=ggH);var pEy=Um.maxStatefulTimeThresholdSec;pEy!=null&&(this.maxStatefulTimeThresholdSec=pEy)}this.S("web_player_audio_playback_from_audio_config")&&lL.playAudioOnly&&(this.e6=!0)}var CRg=Ul.playbackEndConfig;if(CRg){var Udy=CRg.endSeconds,ObH=CRg.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(Udy&&(this.endSeconds=Udy),ObH&&(this.limitedPlaybackDurationInSeconds=ObH))}var zo=Ul.fairPlayConfig;if(zo){var EgK= zo.certificate;EgK&&(this.MB=eN(EgK));var jJz=Number(zo.keyRotationPeriodMs);jJz>0&&(this.CQ=jJz);var bbz=Number(zo.keyPrefetchMarginMs);bbz>0&&(this.Ig=bbz)}var iX=Ul.playbackStartConfig;if(iX){this.V0=Number(iX.startSeconds);var yKy=iX.liveUtcStartSeconds,cKX=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;yKy&&!cKX&&(this.liveUtcStartSeconds=Number(yKy));var zAB=iX.startPosition;if(zAB){var ngc=zAB.utcTimeMillis;ngc&&!cKX&&(this.liveUtcStartSeconds=Number(ngc)*.001);var fyB=zAB.streamTimeMillis; fyB&&(this.Fg=Number(fyB)*.001)}this.progressBarStartPosition=iX.progressBarStartPosition;this.progressBarEndPosition=iX.progressBarEndPosition}else{var tMc=Ul.skippableSegmentsConfig;if(tMc){var Hb9=tMc.introSkipDurationMs;Hb9&&(this.Yv=Number(Hb9)/1E3);var vgA=tMc.outroSkipDurationMs;vgA&&(this.hn=Number(vgA)/1E3)}}var m8V=Ul.skippableIntroConfig;if(m8V){var Dd9=Number(m8V.startMs),ScV=Number(m8V.endMs);isNaN(Dd9)||isNaN(ScV)||(this.US=Dd9,this.Vg=ScV)}var RdK=Ul.streamSelectionConfig;RdK&&(this.Qv= Number(RdK.maxBitrate));var Zbc=Ul.vrConfig;Zbc&&(this.HN=Zbc.partialSpherical=="1");var Om=Ul.webDrmConfig;if(Om){Om.skipWidevine&&(this.TR=!0);var rK_=Om.widevineServiceCert;rK_&&(this.hY=eN(rK_));Om.useCobaltWidevine&&(this.useCobaltWidevine=!0);Om.startWithNoQualityConstraint&&(this.d_=!0)}var A8=Ul.mediaCommonConfig;if(A8){var tG=A8.dynamicReadaheadConfig;if(tG){this.maxReadAheadMediaTimeMs=tG.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=tG.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs= tG.readAheadGrowthRateMs||NaN;var $dB,XEK=A8==null?void 0:($dB=A8.mediaUstreamerRequestConfig)==null?void 0:$dB.videoPlaybackUstreamerConfig;XEK&&(this.xl=eN(XEK));var Ijg=A8==null?void 0:A8.sabrContextUpdates;if(Ijg&&Ijg.length>0)for(var qcB=g.m(Ijg),gxV=qcB.next();!gxV.done;gxV=qcB.next()){var IZ=gxV.value;if(IZ.type&&IZ.value){var Hxl={type:IZ.type,scope:IZ.scope,value:eN(IZ.value)||void 0,sendByDefault:IZ.sendByDefault};this.sabrContextUpdates.set(IZ.type,Hxl)}}}var uqV=A8.serverPlaybackStartConfig; uqV&&(this.serverPlaybackStartConfig=uqV);A8.useServerDrivenAbr&&(this.Bh=!0);var QJA=A8.requestPipeliningConfig;QJA&&(this.requestPipeliningConfig=QJA)}var Lo9=Ul.inlinePlaybackConfig;Lo9&&(this.Uh=!!Lo9.showAudioControls);var m6=Ul.embeddedPlayerConfig;if(m6){this.embeddedPlayerConfig=m6;var pbX=m6.embeddedPlayerMode;if(pbX){var TwY=this.U();TwY.GH=pbX;TwY.C=pbX==="EMBEDDED_PLAYER_MODE_PFL"}var sJc=m6.permissions;sJc&&(this.allowImaMonetization=!!sJc.allowImaMonetization)}var Fox=Ul.ssapConfig; Fox&&(this.Oh=Fox.ssapPrerollEnabled||!1);var ID=Ul.webPlayerConfig;ID&&(ID.gatewayExperimentGroup&&(this.gatewayExperimentGroup=ID.gatewayExperimentGroup),ID.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var Y0=this.playerResponse.streamingData;if(Y0){var U8z=Y0.formats;if(U8z){for(var Em=[],JKb=g.m(U8z),OKV=JKb.next();!OKV.done;OKV=JKb.next()){var Exg=OKV.value;Em.push(Exg.itag+"/"+Exg.width+"x"+Exg.height)}this.xH=Em.join(",");Em=[];for(var AK_=g.m(U8z),jn_=AK_.next();!jn_.done;jn_=AK_.next()){var jh= jn_.value,bz={itag:jh.itag,type:jh.mimeType,quality:jh.quality},YcH=jh.url;YcH&&(bz.url=YcH);var gO=cU(jh),vt2=gO.mS,Dlf=gO.Va,SvW=gO.s;gO.IT&&(bz.url=vt2,bz.sp=Dlf,bz.s=SvW);Em.push(g.Qs(bz))}this.Da=Em.join(",")}var bKz=Y0.hlsFormats;if(bKz){var ibB=Ul||null,pS={};if(ibB){var yEB=ibB.audioPairingConfig;if(yEB&&yEB.pairs)for(var Pqc=g.m(yEB.pairs),cE_=Pqc.next();!cE_.done;cE_=Pqc.next()){var ogB=cE_.value,nxY=ogB.videoItag;pS[nxY]||(pS[nxY]=[]);pS[nxY].push(ogB.audioItag)}}for(var MX9={},GqX=g.m(bKz), fjc=GqX.next();!fjc.done;fjc=GqX.next()){var BRY=fjc.value;MX9[BRY.itag]=BRY.bitrate}for(var aec=[],VjV=g.m(bKz),HKg=VjV.next();!HKg.done;HKg=VjV.next()){var Vs=HKg.value,yu={itag:Vs.itag,type:Vs.mimeType,url:Vs.url,bitrate:Vs.bitrate,width:Vs.width,height:Vs.height,fps:Vs.fps},Un=Vs.audioTrack;if(Un){var xSB=Un.displayName;xSB&&(yu.name=xSB,yu.audio_track_id=Un.id,Un.audioIsDefault&&(yu.is_default="1"))}if(Vs.drmFamilies){for(var hIx=[],eIV=g.m(Vs.drmFamilies),vxx=eIV.next();!vxx.done;vxx=eIV.next())hIx.push(dX[vxx.value]); yu.drm_families=hIx.join(",")}var On=pS[Vs.itag];if(On&&On.length){yu.audio_itag=On.join(",");var W1g=MX9[On[0]];W1g&&(yu.bitrate+=W1g)}var wBx=ZeA(Vs);wBx&&(yu.eotf=wBx);Vs.audioChannels&&(yu.audio_channels=Vs.audioChannels);aec.push(g.Qs(yu))}this.hlsFormats=aec.join(",")}var D8B=Y0.licenseInfos;if(D8B&&D8B.length>0){for(var K1B={},le9=g.m(D8B),SZA=le9.next();!SZA.done;SZA=le9.next()){var kqX=SZA.value,NRH=kqX.drmFamily,dSV=kqX.url;NRH&&dSV&&(K1B[dX[NRH]]=dSV)}this.Ji=K1B}var CpX=Y0.drmParams;CpX&& (this.drmParams=CpX);var zIY=Y0.dashManifestUrl;zIY&&(this.w7=g.LJ(zIY,{cpn:this.clientPlaybackNonce}));var tjB=Y0.hlsManifestUrl;tjB&&(this.hlsvp=tjB);var mSY=Y0.probeUrl;mSY&&(this.probeUrl=Bj(g.LJ(mSY,{cpn:this.clientPlaybackNonce})));var IeA=Y0.serverAbrStreamingUrl;IeA&&(this.c9=new g.pT(IeA,!0))}var g3B=this.playerResponse.trackingParams;g3B&&(this.Zx=g3B);var JO=this.playerResponse.videoDetails;if(JO){var cO=G,RA9=JO.videoId;RA9&&(this.videoId=RA9,cO.video_id||(cO.video_id=RA9));var pBx=JO.channelId; pBx&&(this.W.uid=pBx.substring(2));var ZKz=JO.title;ZKz&&(this.title=ZKz,cO.title||(cO.title=ZKz));var rE9=JO.lengthSeconds;rE9&&(this.lengthSeconds=Number(rE9),cO.length_seconds||(cO.length_seconds=rE9));var USc=JO.keywords;USc&&(this.keywords=nEA(USc));var $8x=JO.channelId;$8x&&(this.dB=$8x,cO.ucid||(cO.ucid=$8x));var OPB=JO.viewCount;OPB&&(this.rawViewCount=Number(OPB));var Xbc=JO.author;Xbc&&(this.author=Xbc,cO.author||(cO.author=Xbc));var E3V=JO.shortDescription;E3V&&(this.shortDescription=E3V); var jgc=JO.isCrawlable;jgc&&(this.isListed=jgc);var bP9=JO.musicVideoType;bP9&&(this.musicVideoType=bP9);var qZV=JO.isLive;qZV!=null&&(this.isLivePlayback=qZV);if(qZV||JO.isUpcoming)this.isPremiere=!JO.isLiveContent;var yYH=JO.thumbnail;yYH&&(this.Y=m5(yYH));var cYY=JO.isExternallyHostedPodcast;cYY&&(this.isExternallyHostedPodcast=cYY);var udz=JO.viewerLivestreamJoinPosition;if(udz==null?0:udz.utcTimeMillis)this.YP=on(udz.utcTimeMillis);var n3B=Ul||null,Qnc=G;JO.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast= !0);JO.isUpcoming&&(this.isUpcoming=!0);if(JO.isPostLiveDvr){this.Ai=!0;var feK=JO.latencyClass;feK&&(this.latencyClass=UWh[feK]||"UNKNOWN");JO.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var Lax=!1;this.Vb?(this.allowLiveDvr=GQ()?!0:im&&Ja<5?!1:!0,this.isLivePlayback=!0):JO.isLive?(Qnc.livestream="1",this.allowLiveDvr=JO.isLiveDvrEnabled?GQ()?!0:im&&Ja<5?!1:!0:!1,this.partnerId=27,Lax=!0):JO.isUpcoming&&(Lax=!0);if(JO.isLive||this.Vb&&this.S("html5_parse_live_monitor_flags")){JO.isLowLatencyLiveStream&& (this.isLowLatencyLiveStream=!0);var HPK=JO.latencyClass;HPK&&(this.latencyClass=UWh[HPK]||"UNKNOWN");var v3g=JO.liveChunkReadahead;v3g&&(this.liveChunkReadahead=v3g);var P7=n3B&&n3B.livePlayerConfig;if(P7){P7.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);P7.hasSubfragmentedWebm&&(this.iT=!0);P7.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var DSY=P7.liveExperimentalContentId;DSY&&(this.liveExperimentalContentId=Number(DSY));var SOB=P7.isLiveHeadPlayable;this.S("html5_live_head_playable")&& SOB!=null&&(this.isLiveHeadPlayable=SOB)}}Lax&&(this.isLivePlayback=!0,Qnc.adformat&&Qnc.adformat.split("_")[1]!=="8"||this.GH.push("heartbeat"),this.VN=!0)}var RIX=JO.isPrivate;RIX!==void 0&&(this.isPrivate=aP(this.isPrivate,RIX))}if(Wz){var ZPb=JO||null,rY_=!1,o3=Wz.errorScreen;rY_=o3&&(o3.playerLegacyDesktopYpcOfferRenderer||o3.playerLegacyDesktopYpcTrailerRenderer||o3.ypcTrailerRenderer)?!0:ZPb&&ZPb.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Wz.status);if(!rY_){this.errorCode= $a_(Wz.errorCode)||"auth";var En=o3&&o3.playerErrorMessageRenderer;if(En){this.playerErrorMessageRenderer=En;var $Sy=En.reason;$Sy&&(this.errorReason=g.tU($Sy));var TyA=En.subreason;TyA&&(this.If=g.tU(TyA),this.LQ=TyA)}else this.errorReason=Wz.reason||null;var sny=Wz.status;if(sny==="LOGIN_REQUIRED")this.errorDetail="1";else if(sny==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(sny==="AGE_CHECK_REQUIRED"){var XBA=Wz.errorScreen,qOY=XBA&&XBA.playerKavRenderer;this.errorDetail=qOY&&qOY.kavUrl? "4":"3"}else this.errorDetail=Wz.isBlockedInRestrictedMode?"5":"0"}}var uoz=this.playerResponse.interstitialPods;uoz&&o8x(this,uoz);this.Ur&&this.eventId&&(this.Ur=eK(this.Ur,{ei:this.eventId}));var FaX=this.playerResponse.captions;if(FaX&&FaX.playerCaptionsTracklistRenderer)a:{var n4=FaX.playerCaptionsTracklistRenderer;this.captionTracks=[];if(n4.captionTracks)for(var QgY=g.m(n4.captionTracks),JEK=QgY.next();!JEK.done;JEK=QgY.next()){var f4=JEK.value,L1K=b_y(f4.baseUrl);if(!L1K)break a;var AEY={is_translateable:!!f4.isTranslatable, languageCode:f4.languageCode,languageName:f4.name&&g.tU(f4.name),url:L1K,vss_id:f4.vssId,kind:f4.kind};AEY.name=f4.trackName;AEY.displayName=f4.name&&g.tU(f4.name);this.captionTracks.push(new g.Nk(AEY))}this.Z3=n4.audioTracks||[];this.mN=n4.defaultAudioTrackIndex||0;this.Ab=[];if(n4.translationLanguages)for(var TRV=g.m(n4.translationLanguages),YZH=TRV.next();!YZH.done;YZH=TRV.next()){var Mv=YZH.value,gr={};gr.languageCode=Mv.languageCode;gr.languageName=g.tU(Mv.languageName);if(Mv.translationSourceTrackIndices){gr.translationSourceTrackIndices= [];for(var sgA=g.m(Mv.translationSourceTrackIndices),iKB=sgA.next();!iKB.done;iKB=sgA.next())gr.translationSourceTrackIndices.push(iKB.value)}if(Mv.excludeAudioTrackIndices){gr.excludeAudioTrackIndices=[];for(var F1A=g.m(Mv.excludeAudioTrackIndices),PRK=F1A.next();!PRK.done;PRK=F1A.next())gr.excludeAudioTrackIndices.push(PRK.value)}this.Ab.push(gr)}this.f5=[];if(n4.defaultTranslationSourceTrackIndices)for(var JYK=g.m(n4.defaultTranslationSourceTrackIndices),oxc=JYK.next();!oxc.done;oxc=JYK.next())this.f5.push(oxc.value); this.LZ=!!n4.contribute&&!!n4.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.V0=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&GEB(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var AYx;this.compositeLiveIngestionOffsetToken= (AYx=this.playerResponse.playbackTracking)==null?void 0:AYx.compositeLiveIngestionOffsetToken;var YOx;this.compositeLiveStatusToken=(YOx=this.playerResponse.playbackTracking)==null?void 0:YOx.compositeLiveStatusToken}FR(this,G);G.queue_info&&(this.queueInfo=G.queue_info);var iP9=G.hlsdvr;iP9!=null&&(this.allowLiveDvr=Number(iP9)===1?GQ()?!0:im&&Ja<5?!1:!0:!1);this.adQueryId=G.ad_query_id||null;this.sI||(this.sI=G.encoded_ad_safety_reason||null);this.v2=G.agcid||null;this.ys=G.ad_id||null;this.oo= G.ad_sys||null;this.IA=G.encoded_ad_playback_context||null;this.rQ=aP(this.rQ,G.infringe||G.muted);this.Ip=G.authkey;this.K5J=G.authuser;this.mutedAutoplay=aP(this.mutedAutoplay,G&&G.playmuted);this.mutedAutoplayDurationMode=xS(this.mutedAutoplayDurationMode,G&&G.muted_autoplay_duration_mode);this.kI=aP(this.kI,G&&G.mutedautoplay);var jd=G.length_seconds;jd&&(this.lengthSeconds=typeof jd==="string"?on(jd):jd);if(this.isAd()||this.QA||!g.KU(g.rG(this.Rn)))this.endSeconds=xS(this.endSeconds,this.hn|| G.end||G.endSeconds);else{var RyJ=g.rG(this.Rn),bb=this.lengthSeconds;switch(RyJ){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":bb>30?this.limitedPlaybackDurationInSeconds=30:bb<30&&bb>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=bb*.2}}this.Zx=ht(this.Zx,G.itct);this.Ha=aP(this.Ha,G.noiba);this.hS=aP(this.hS,G.is_live_destination);this.isLivePlayback=aP(this.isLivePlayback,G.live_playback); this.enableServerStitchedDai=this.enableServerStitchedDai&&this.SE();G.isUpcoming&&(this.isUpcoming=aP(this.isUpcoming,G.isUpcoming));this.Ai=aP(this.Ai,G.post_live_playback);this.LN&&(this.Ai=!1);this.isMdxPlayback=aP(this.isMdxPlayback,G.mdx);var y6=G.mdx_control_mode;y6&&(this.mdxControlMode=typeof y6==="number"?y6:on(y6));this.isInlinePlaybackNoAd=aP(this.isInlinePlaybackNoAd,G.is_inline_playback_no_ad);this.Cd=xS(this.Cd,G.reload_count);this.reloadReason=ht(this.reloadReason,G.reload_reason); this.Zr=aP(this.Zr,G.show_content_thumbnail);this.Q9=aP(this.Q9,G.utpsa);this.cycToken=G.cyc||null;this.sz=G.tkn||null;var PpH=tC(G);Object.keys(PpH).length>0&&(this.Y=PpH);this.XJ=ht(this.XJ,G.vvt);this.mdxEnvironment=ht(this.mdxEnvironment,G.mdx_environment);G.source_container_playlist_id&&(this.sourceContainerPlaylistId=G.source_container_playlist_id);G.serialized_mdx_metadata&&(this.serializedMdxMetadata=G.serialized_mdx_metadata);this.ON=G.osig;this.eventId||(this.eventId=G.eventid);this.osid|| (this.osid=G.osid);this.playlistId=ht(this.playlistId,G.list);G.index&&(this.playlistIndex=this.playlistIndex===void 0?xS(0,G.index):xS(this.playlistIndex,G.index));this.yz=G.pyv_view_beacon_url;this.Qi=G.pyv_quartile25_beacon_url;this.SO=G.pyv_quartile50_beacon_url;this.Mv=G.pyv_quartile75_beacon_url;this.p4=G.pyv_quartile100_beacon_url;var o3K=G.session_data;!this.SG&&o3K&&(this.SG=G9(o3K,"&").feature);this.isFling=xS(this.isFling?1:0,G.is_fling)===1;this.vnd=xS(this.vnd,G.vnd);this.forceAdsUrl= ht(this.forceAdsUrl,G.force_ads_url);this.kT=ht(this.kT,G.ctrl);this.j9=ht(this.j9,G.ytr);this.D1=G.ytrcc;this.YV=G.ytrexp;this.vj=G.ytrext;this.m3=ht(this.m3,G.adformat);this.Nl=ht(this.Nl,G.attrib);this.slotPosition=xS(this.slotPosition,G.slot_pos);this.breakType=G.break_type;this.wW=aP(this.wW,G.ssrt);this.videoId=WH(G)||this.videoId;this.L=ht(this.L,G.vss_credentials_token);this.iF=ht(this.iF,G.vss_credentials_token_type);this.e6=aP(this.e6,G.audio_only);this.eJ=aP(this.eJ,G.aac_high);this.FM= aP(this.FM,G.prefer_low_quality_audio);this.Sv=aP(this.Sv,G.uncap_inline_quality);this.S("html5_enable_qoe_cat_list")?G.qoe_cat&&(this.Yz=this.Yz.concat(G.qoe_cat.split(","))):this.BE=ht(this.BE,G.qoe_cat);this.L1=aP(this.L1,G.download_media);var Mjz=G.prefer_gapless;this.V=Mjz!=null?aP(this.V,Mjz):this.V?this.V:this.Rn.preferGapless&&this.Rn.supportsGaplessShorts();o5A(this.playerResponse)&&this.GH.push("ad");var GSA=G.adaptive_fmts;GSA&&(this.adaptiveFormats=GSA,this.FJ("adpfmts",{},!0));var B6c= G.allow_embed;B6c&&(this.allowEmbed=Number(B6c)===1);var aTB=G.backgroundable;aTB&&(this.backgroundable=Number(aTB)===1);var VZg=G.autonav;VZg&&(this.isAutonav=Number(VZg)===1);var xjb=G.autoplay;xjb&&(this.Ds=this.hN=Number(xjb)===1,aJ(this,"c"));var hWK=G.iv_load_policy;hWK&&(this.annotationsLoadPolicy=VG(this.annotationsLoadPolicy,hWK,$F));var eWA=G.cc_lang_pref;eWA&&(this.captionsLanguagePreference=ht(eWA,this.captionsLanguagePreference));var WkV=G.cc_load_policy;WkV&&(this.Yj=VG(this.Yj,WkV, $F));var wTx;this.deviceCaptionsOn=(wTx=G.device_captions_on)!=null?wTx:void 0;var Kkg;this.AG=(Kkg=G.device_captions_lang_pref)!=null?Kkg:"";var lTb;this.Jo=(lTb=G.viewer_selected_caption_langs)!=null?lTb:[];if(!this.S("html5_enable_ssap_entity_id")){var kSb=G.cached_load;kSb&&(this.o$=aP(this.o$,kSb))}if(G.dash==="0"||G.dash===0||G.dash===!1)this.Wj=!0;var N6A=G.dashmpd;N6A&&(this.w7=g.LJ(N6A,{cpn:this.clientPlaybackNonce}));var dj_=G.delay;dj_&&(this.Md=on(dj_));var MM_=this.hn||G.end;if(this.S_? MM_!=null:MM_!=void 0)this.clipEnd=xS(this.clipEnd,MM_);var CwB=G.fmt_list;CwB&&(this.xH=CwB);G.heartbeat_preroll&&this.GH.push("heartbeat");this.sM=-Math.floor(Math.random()*10);this.CZ=-Math.floor(Math.random()*40);var zWH=G.is_listed;zWH&&(this.isListed=aP(this.isListed,zWH));var tZX=G.is_private;tZX&&(this.isPrivate=aP(this.isPrivate,tZX));var mjV=G.is_dni;mjV&&(this.yd=aP(this.yd,mjV));var ITV=G.dni_color;ITV&&(this.Q0=ht(this.Q0,ITV));var gYz=G.pipable;gYz&&(this.pipable=aP(this.pipable,gYz)); this.rM=(this.B2=this.pipable&&this.Rn.VN)&&!this.Rn.showMiniplayerButton;var pTc=G.paid_content_overlay_duration_ms;pTc&&(this.paidContentOverlayDurationMs=on(pTc));var UjA=G.paid_content_overlay_text;UjA&&(this.paidContentOverlayText=UjA);var OLV=G.url_encoded_fmt_stream_map;OLV&&(this.Da=OLV);var EYH=G.hls_formats;EYH&&(this.hlsFormats=EYH);var jog=G.hlsvp;jog&&(this.hlsvp=jog);var cI=G.live_start_walltime;cI&&(this.Ls=typeof cI==="number"?cI:on(cI));var nS=G.live_manifest_duration;nS&&(this.Hh= typeof nS==="number"?nS:on(nS));var bL9=G.player_params;bL9&&(this.playerParams=bL9);var y9V=G.partnerid;y9V&&(this.partnerId=xS(this.partnerId,y9V));var c9X=G.probe_url;c9X&&(this.probeUrl=Bj(g.LJ(c9X,{cpn:this.clientPlaybackNonce})));var GFy=G.pyv_billable_url;GFy&&WOX(GFy)&&(this.e$=GFy);var BU_=G.pyv_conv_url;BU_&&WOX(BU_)&&(this.f4=BU_);fUK(this,G);this.startSeconds>0?this.S("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.V0||this.Yv||G.start||G.startSeconds)&&this.FJ("lss", {css:this.startSeconds,pcss:this.V0,iss:this.Yv,ps:G.start||void 0,pss:G.startSeconds||void 0}):this.wO=this.startSeconds=xS(this.startSeconds,this.V0||this.Yv||G.start||G.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var nYy=G.live_utc_start;if(nYy!=null)this.liveUtcStartSeconds=Number(nYy);else{var aQ9=this.startSeconds;aQ9&&isFinite(aQ9)&&aQ9>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var fTV=G.utc_start_millis; fTV&&(this.liveUtcStartSeconds=Number(fTV)*.001)}var HLA=G.stream_time_start_millis;HLA&&(this.Fg=Number(HLA)*.001);var VHx=this.Yv||G.start;(this.S_?VHx==null||Number(G.resume)===1:VHx==void 0||G.resume=="1")||this.isLivePlayback||(this.clipStart=xS(this.clipStart,VHx));var vYb=G.url_encoded_third_party_media;vYb&&(this.AY=VZ(vYb));var x6A=G.ypc_offer_button_formatted_text;if(x6A){var DjB=JSON.parse(x6A);this.qE=DjB!=null?DjB:null;this.Qo=x6A}var SGH=G.ypc_offer_button_text;SGH&&(this.Sr=SGH);var RW_= G.ypc_offer_description;RW_&&(this.D6=RW_);var ZL_=G.ypc_offer_headline;ZL_&&(this.hf=ZL_);var r99=G.ypc_full_video_message;r99&&(this.pc=r99);var $jz=G.ypc_offer_id;$jz&&(this.Wh=$jz);var XTB=G.ypc_buy_url;XTB&&(this.mT=XTB);var qGB=G.ypc_item_thumbnail;qGB&&(this.ji=qGB);var u1_=G.ypc_item_title;u1_&&(this.PE=u1_);var QoX=G.ypc_item_url;QoX&&(this.zL=QoX);var Lky=G.ypc_vid;Lky&&(this.Wm=Lky);G.ypc_overlay_timeout&&(this.Se=Number(G.ypc_overlay_timeout));var T6H=G.ypc_trailer_player_vars;T6H&&(this.JY= ah(T6H));var soK=G.ypc_original_itct;soK&&(this.Z_=soK);this.dB=ht(this.dB,G.ucid);G.baseUrl&&(this.W.baseUrl=G.baseUrl);G.uid&&(this.W.uid=G.uid);G.oeid&&(this.W.oeid=G.oeid);G.ieid&&(this.W.ieid=G.ieid);G.ppe&&(this.W.ppe=G.ppe);G.engaged&&(this.W.engaged=G.engaged);G.subscribed&&(this.W.subscribed=G.subscribed);this.W.focEnabled=aP(this.W.focEnabled,G.focEnabled);this.W.rmktEnabled=aP(this.W.rmktEnabled,G.rmktEnabled);this.b_=G.storyboard_spec||null;this.pQ=G.live_storyboard_spec||null;this.Il= G.iv_endscreen_url||null;this.VN=aP(this.VN,G.ypc_license_checker_module);this.H9=aP(this.H9,G.ypc_module);this.Nq=aP(this.Nq,G.ypc_clickwrap_module);this.H9&&this.GH.push("ypc");this.Nq&&this.GH.push("ypc_clickwrap");this.ma={video_id:G.video_id,eventid:G.eventid,cbrand:G.cbrand,cbr:G.cbr,cbrver:G.cbrver,c:G.c,cver:G.cver,ctheme:G.ctheme,cplayer:G.cplayer,cmodel:G.cmodel,cnetwork:G.cnetwork,cos:G.cos,cosver:G.cosver,cplatform:G.cplatform,user_age:G.user_age,user_display_image:G.user_display_image, user_display_name:G.user_display_name,user_gender:G.user_gender,csi_page_type:G.csi_page_type,csi_service_name:G.csi_service_name,enablecsi:G.enablecsi,enabled_engage_types:G.enabled_engage_types};j9y(this,G);var Fkb=G.cotn;Fkb&&(this.cotn=Fkb);if(Lyg(this))K9(this)&&(this.isLivePlayback&&this.w7&&(this.Ki=!0),this.MB&&(this.mf=!0));else if(Tm_(this))this.Ki=!0;else{var J9K,A99,YGB=((J9K=this.playerResponse)==null?void 0:(A99=J9K.streamingData)==null?void 0:A99.adaptiveFormats)||[];if(YGB.length> 0)var y7=Q9K(this,YGB);else{var iLx=this.adaptiveFormats;if(iLx&&!K9(this)){lv(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(ye=!0);var GH=mB(iLx),h4b=this.Ji,Pwx=this.lengthSeconds,Zxk=this.isLivePlayback,cf=this.Ai,BS=this.Rn,r0C=PVA(GH);if(Zxk||cf){var oYX=BS==null?void 0:BS.experiments,$H=new kD("",oYX,!0);$H.SE=!0;$H.isManifestless=!0;$H.X=!cf;$H.isLive=!cf;$H.Ai=cf;for(var MZH=g.m(GH),e4A=MZH.next();!e4A.done;e4A=MZH.next()){var a4=e4A.value,G6B=zj(a4,h4b),pg=tA(a4.url,a4.sp,a4.s), B0b=pg.get("id");B0b&&B0b.includes("%7E")&&($H.Y=!0);var aKB=void 0,$lk=(aKB=oYX)==null?void 0:aKB.Or("html5_max_known_end_time_rebase"),Xuk=Number(a4.target_duration_sec)||5,qv2=Number(a4.max_dvr_duration_sec)||14400,VSc=Number(pg.get("mindsq")||pg.get("min_sq")||"0"),xLV=Number(pg.get("maxdsq")||pg.get("max_sq")||"0")||Infinity;$H.Qg=$H.Qg||VSc;$H.SK=$H.SK||xLV;var ukh=!ar(G6B.mimeType);pg&&wX($H,new Yp(pg,G6B,{zm:Xuk,uF:ukh,XT:qv2,Qg:VSc,SK:xLV,qb:300,Ai:cf,Zp:$lk}))}var hjV=$H}else{if(r0C==="FORMAT_STREAM_TYPE_OTF"){var fS= Pwx;fS=fS===void 0?0:fS;var VB=new kD("",BS==null?void 0:BS.experiments,!1);VB.duration=fS||0;for(var ejA=g.m(GH),W3z=ejA.next();!W3z.done;W3z=ejA.next()){var xv=W3z.value,wM9=zj(xv,h4b,VB.duration),K3B=tA(xv.url,xv.sp,xv.s);if(K3B)if(wM9.streamType==="FORMAT_STREAM_TYPE_OTF")wX(VB,new iM(K3B,wM9,"sq/0"));else{var Qb3=cs(xv.init),Lpk=cs(xv.index);wX(VB,new hA(K3B,wM9,Qb3,Lpk))}}VB.isOtf=!0;var W0H=VB}else{var HI=Pwx;HI=HI===void 0?0:HI;var vI=new kD("",BS==null?void 0:BS.experiments,!1);vI.duration= HI||0;for(var w6V=g.m(GH),lQc=w6V.next();!lQc.done;lQc=w6V.next()){var hW=lQc.value,TL3=zj(hW,h4b,vI.duration),sbl=cs(hW.init),Fph=cs(hW.index),K0_=tA(hW.url,hW.sp,hW.s);K0_&&wX(vI,new hA(K0_,TL3,sbl,Fph))}W0H=vI}hjV=W0H}var lK_=hjV;if(GH.length>0){var k6A=GH[0];if(this.U().playerStyle==="hangouts-meet"&&k6A.url){var J02=g.x4(k6A.url);this.I1=this.I1||Number(J02.expire)}}var A0k=this.isLivePlayback&&!this.Ai&&!this.LN&&!this.isPremiere;this.S("html5_live_head_playable")&&(!kX(this)&&A0k&&this.FJ("missingLiveHeadPlayable", {}),this.Rn.zH==="yt"&&(lK_.Er=!0));y7=lK_}else y7=null;this.FJ("pafmts",{isManifestFilled:!!y7})}if(y7){C9(this,y7);var N09=!0}else N09=!1;N09?this.enableServerStitchedDai=this.enableServerStitchedDai&&NJ(this):this.w7&&(this.Rn.zH==="yt"&&this.SE()&&this.S("drm_manifestless_unplugged")&&this.S("html5_deprecate_manifestful_fallback")?this.FJ("deprecateMflFallback",{}):this.Ki=!0)}var kFA=G.adpings;kFA&&(this.fZ=kFA?ah(kFA):null);var dLg=G.feature;dLg&&(this.rW=dLg);var CUB=G.referrer;CUB&&(this.referrer= CUB);this.clientScreenNonce=ht(this.clientScreenNonce,G.csn);this.Bw=xS(this.Bw,G.root_ve_type);this.jd=xS(this.jd,G.kids_age_up_mode);this.S_||G.kids_app_info==void 0||(this.kidsAppInfo=G.kids_app_info);this.S_&&G.kids_app_info!=null&&(this.kidsAppInfo=G.kids_app_info);this.L2=aP(this.L2,G.upg_content_filter_mode);this.unpluggedFilterModeType=xS(this.unpluggedFilterModeType,G.unplugged_filter_mode_type);var zjH=G.unplugged_location_info;zjH&&(this.zH=zjH);var tSB=G.unplugged_partner_opt_out;tSB&& (this.XM=ht("",tSB));this.tb=aP(this.tb,G.disable_watch_next);this.Nk=ht(this.Nk,G.internal_ip_override);this.SH=!!G.is_yto_interstitial;(this.interstitials.length||this.SH)&&this.GH.push("yto");var mLB=G.gB;mLB&&(this.gB=mLB);var IKB;this.qB=(IKB=G.csi_timer)!=null?IKB:"";this.B6=!!G.force_gvi;G.watchUrl&&(this.watchUrl=G.watchUrl);var Ut=G.watch_endpoint;this.S("html5_attach_watch_endpoint_ustreamer_config")&&Ut&&qwV(this,Ut);if(Ut==null?0:Ut.ustreamerConfig)this.UC=eN(Ut.ustreamerConfig);var gMx, p6X,ULB=Ut==null?void 0:(gMx=Ut.loggingContext)==null?void 0:(p6X=gMx.qoeLoggingContext)==null?void 0:p6X.serializedContextData;ULB&&(this.F9=ULB);g.co(this.Rn)&&this.Rn.dQ&&(this.embedsRct=ht(this.embedsRct,G.rct),this.embedsRctn=ht(this.embedsRctn,G.rctn));this.Ru=this.Ru||!!G.pause_at_start;G.default_active_source_video_id&&(this.defaultActiveSourceVideoId=G.default_active_source_video_id)}; g.W.U=function(){return this.Rn}; g.W.S=function(G){return this.Rn.S(G)}; g.W.tA=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.W.hasSupportedAudio51Tracks=function(){var G;return!((G=this.MD)==null||!G.Dx)}; g.W.getUserAudio51Preference=function(){var G=1;i0(this.Rn)&&this.S("html5_ytv_surround_toggle_default_off")?G=0:g.J3(this.Rn)&&this.isLivePlayback&&this.LM()&&(G=0);var B;return(B=g.SL("yt-player-audio51"))!=null?B:G}; g.W.OR=function(){this.TH()||(this.j.X||this.j.unsubscribe("refresh",this.OR,this),this.PW(-1))}; g.W.PW=function(G){if(!this.isLivePlayback||!this.B||this.B.flavor!=="fairplay"){var B=MgX(this.j,this.bK);if(B.length>0){for(var a=g.m(B),V=a.next();!V.done;V=a.next())V=V.value,V.startSecs=Math.max(V.startSecs,this.b6()),this.S("html5_cuepoint_identifier_logging")&&V.event==="start"&&this.FJ("cuepoint",{pubCue:V.identifier,segNum:G});this.publish("cuepointupdated",B,G);this.bK+=B.length;if(NJ(this)&&this.Rn.Ef())for(B=g.m(B),a=B.next();!a.done;a=B.next())a=a.value,this.FJ("cuepoint",{segNum:G,event:a.event, startSecs:a.startSecs,id:a.identifier.slice(-16)}),a.event==="start"&&(a=a.startSecs,this.rZ.start=this.Er,this.rZ.end=a+3)}}}; g.W.PN=function(){this.TH()||(this.loading=!1,this.publish("dataloaded"))}; g.W.LM=function(){return this.TL!==void 0?this.TL:this.TL=!!this.Ji||!!this.j&&df(this.j)}; g.W.Q5=function(G){var B=this;if(this.TH())return vh();this.R4=this.Dx=this.C=null;lv(this,"html5_high_res_logging_always")&&(this.Rn.xF=!0);return A4x(this,G).then(void 0,function(){return i_K(B,G)}).then(void 0,function(){return Pz9(B)}).then(void 0,function(){return Mhy(B)})}; g.W.VD=function(G){this.C=G;Ymy(this,this.C.getAvailableAudioTracks());if(this.C){G=g.m(this.C.videoInfos);for(var B=G.next();!B.done;B=G.next()){B=B.value;var a=B.containerType;a!==0&&(this.Qs[a]=B.id)}}jO(this);if(this.B&&this.C&&this.C.videoInfos&&!(this.C.videoInfos.length<=0)&&(G=op(this.C.videoInfos[0]),this.B.flavor==="fairplay"!==G))for(B=g.m(this.gt),a=B.next();!a.done;a=B.next())if(a=a.value,G===(a.flavor==="fairplay")){this.B=a;break}}; g.W.Q_=function(){if(this.cotn)return null;var G=g.jQ(this.Rn)||this.S("web_l3_storyboard");if(!this.ym)if(this.playerResponse&&this.playerResponse.storyboards){var B=this.playerResponse.storyboards,a=B.playerStoryboardSpecRenderer;a&&a.spec?this.ym=new qk(a.spec,this.lengthSeconds,void 0,!1,G):(B=B.playerLiveStoryboardSpecRenderer)&&B.spec&&this.j&&(a=sU9(this.j.j).index)&&(this.ym=new Qm(B.spec,this.j.isLive,a,G))}else this.b_?this.ym=new qk(this.b_,this.lengthSeconds,void 0,!1,G):this.pQ&&this.j&& (B=sU9(this.j.j).index)&&(this.ym=new Qm(this.pQ,this.j.isLive,B,G));return this.ym}; g.W.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var G=this.playerResponse.storyboards;return(G=G.playerStoryboardSpecRenderer||G.playerLiveStoryboardSpecRenderer)&&G.spec||null}return this.b_||this.pQ}; g.W.LD=function(){return this.j&&!isNaN(this.j.LD())?this.j.LD():NJ(this)?0:this.lengthSeconds}; g.W.b6=function(){return this.j&&!isNaN(this.j.b6())?this.j.b6():0}; g.W.getPlaylistSequenceForTime=function(G){if(this.j&&this.X){var B=this.j.j[this.X.id];if(!B)return null;var a=B.index.nR(G);B=B.index.getStartTime(a);return{sequence:a,elapsed:Math.floor((G-B)*1E3)}}return null}; g.W.I4=function(){return!this.TH()&&!(!this.videoId&&!this.AY)}; g.W.bA=function(){var G,B,a;return!!this.adaptiveFormats||!!((G=this.playerResponse)==null?0:(B=G.streamingData)==null?0:(a=B.adaptiveFormats)==null?0:a.length)}; g.W.isLoaded=function(){return sy(this)&&!this.Ki&&!this.mf}; g.W.Sf=function(G){G||(G="hqdefault.jpg");var B=this.Y[G];return B||this.Rn.XJ||G==="pop1.jpg"||G==="pop2.jpg"||G==="sddefault.jpg"||G==="hq720.jpg"||G==="maxresdefault.jpg"?B:sb(this.Rn,this.videoId,G)}; g.W.SE=function(){return this.isLivePlayback||this.Ai||this.LN||!(!this.liveUtcStartSeconds||!this.Hh)}; g.W.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Ai&&!this.isLivePlayback&&this.j.X)}; g.W.getAvailableAudioTracks=function(){return this.C?this.C.getAvailableAudioTracks().length>0?this.C.getAvailableAudioTracks():this.Gm||[]:[]}; g.W.getAudioTrack=function(){var G=this;if(this.G&&!op(this.G))return g.JJ(this.getAvailableAudioTracks(),function(V){return V.id===G.G.id})||this.M9; if(this.Gm){if(!this.t7)for(var B=g.m(this.Gm),a=B.next();!a.done;a=B.next())if(a=a.value,a.VW.getIsDefault()){this.t7=a;break}return this.t7||this.M9}return this.M9}; g.W.getPlayerResponse=function(){return this.playerResponse}; g.W.getWatchNextResponse=function(){return this.SJ}; g.W.getHeartbeatResponse=function(){return this.pm}; g.W.O1=function(){return this.watchUrl?this.watchUrl:this.Rn.getVideoUrl(this.videoId)}; g.W.eA=function(){return!!this.j&&(Lqy(this.j)||TZb(this.j)||srB(this.j))}; g.W.getEmbeddedPlayerResponse=function(){return this.I8}; g.W.IM=function(){return(this.eventLabel||this.Rn.Zx)==="shortspage"}; g.W.isAd=function(){return this.Wa||!!this.adFormat}; g.W.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.W.cn=function(){var G,B,a;return this.isDaiEnabled()&&!!((G=this.playerResponse)==null?0:(B=G.playerConfig)==null?0:(a=B.daiConfig)==null?0:a.ssaEnabledPlayback)}; g.W.Nm=function(){return pkc(this)?this.uW:this.VN||this.LR}; g.W.IZ=function(){return this.H9||this.LR}; g.W.o_=function(){return lv(this,"html5_samsung_vp9_live")}; g.W.FJ=function(G,B,a){this.publish("ctmp",G,B,a)}; g.W.PF=function(G,B,a){this.publish("ctmpstr",G,B,a)}; g.W.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.W.getGetAdBreakContext=function(G,B){G=G===void 0?NaN:G;B=B===void 0?NaN:B;var a={isSabr:eO(this)},V,x=(V=this.getHeartbeatResponse())==null?void 0:V.adBreakHeartbeatParams;x&&(a.adBreakHeartbeatParams=x);if(this.S("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.j&&!isNaN(G)&&!isNaN(B)){B=G-B;for(var h in this.j.j)if(V=this.j.j[h],V.info.rG()||V.info.zz())if(V=V.index,V.isLoaded()){h=V.nR(B);V=V.lJ(h)+B-V.getStartTime(h);this.FJ("gabc",{t:G.toFixed(3),mt:B.toFixed(3),sg:h,igt:V.toFixed(3)}); a.livePlaybackPosition={utcTimeMillis:""+(V*1E3).toFixed(0)};break}}return a}; g.W.isEmbedsShortsMode=function(G,B){if(!g.co(this.Rn))return!1;var a;if(!this.S("embeds_enable_emc3ds_shorts")&&((a=this.Rn.getWebPlayerContextConfig())==null?0:a.embedsEnableEmc3ds)||(this.Rn.GH||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||B)return!1;var V,x;return!!(((V=this.embeddedPlayerConfig)==null?0:(x=V.embeddedPlayerFlags)==null?0:x.isShortsExperienceEligible)&&G.width<=G.height)}; g.W.yb=function(){g.wI.prototype.yb.call(this);this.fZ=null;delete this.Kr;delete this.accountLinkingConfig;delete this.j;this.C=this.pm=this.playerResponse=this.SJ=null;this.Da=this.adaptiveFormats="";delete this.botguardData;this.Yf=this.suggestions=this.b4=null;this.sabrContextUpdates.clear()};var c1y={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},nG9={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},bDy={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},ODx={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"},jkc={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},EGy={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"},y1c={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.t(eX,g.r);g.W=eX.prototype;g.W.handleExternalCall=function(G,B,a){var V=this.state.W[G],x=this.state.V[G],h=V;if(x)if(a&&PV(a,Z23))h=x;else if(!V)throw Error('API call from an untrusted origin: "'+a+'"');this.logApiCall(G,a);if(h){a=!1;V=g.m(B);for(x=V.next();!x.done;x=V.next())if(String(x.value).includes("javascript:")){a=!0;break}a&&g.Zb(Error('Dangerous call to "'+G+'" with ['+B+"]."));return h.apply(this,B)}throw Error('Unknown API method: "'+G+'".');}; g.W.logApiCall=function(G,B,a){var V=this.app.U();V.Yv&&!this.state.Y.has(G)&&(this.state.Y.add(G),g.wP("webPlayerApiCalled",{callerUrl:V.loaderUrl,methodName:G,origin:B||void 0,playerStyle:V.playerStyle||void 0,embeddedPlayerMode:V.GH,errorCode:a}))}; g.W.publish=function(G){var B=g.Hz.apply(1,arguments);this.state.C.publish.apply(this.state.C,[G].concat(g.U(B)));if(G==="videodatachange"||G==="resize"||G==="cardstatechange")this.state.X.publish.apply(this.state.X,[G].concat(g.U(B))),this.state.G.publish.apply(this.state.G,[G].concat(g.U(B)))}; g.W.pN=function(G){var B=g.Hz.apply(1,arguments);this.state.C.publish.apply(this.state.C,[G].concat(g.U(B)));this.state.X.publish.apply(this.state.X,[G].concat(g.U(B)))}; g.W.Ff=function(G){var B=g.Hz.apply(1,arguments);this.state.C.publish.apply(this.state.C,[G].concat(g.U(B)));this.state.X.publish.apply(this.state.X,[G].concat(g.U(B)));this.state.G.publish.apply(this.state.G,[G].concat(g.U(B)))}; g.W.qD=function(G){var B=g.Hz.apply(1,arguments);this.state.C.publish.apply(this.state.C,[G].concat(g.U(B)));this.state.X.publish.apply(this.state.X,[G].concat(g.U(B)));this.state.G.publish.apply(this.state.G,[G].concat(g.U(B)));this.state.B.publish.apply(this.state.B,[G].concat(g.U(B)))}; g.W.S=function(G){return this.app.U().S(G)}; g.W.yb=function(){if(this.state.element){var G=this.state.element,B;for(B in this.state.j)this.state.j.hasOwnProperty(B)&&(G[B]=null);this.state.element=null}g.r.prototype.yb.call(this)};g.t(kg,g.bu);kg.prototype.publish=function(G){var B=g.Hz.apply(1,arguments);if(this.B.has(G))return this.B.get(G).push(B),!0;var a=!1;try{for(B=[B],this.B.set(G,B);B.length;)a=g.bu.prototype.publish.call.apply(g.bu.prototype.publish,[this,G].concat(g.U(B.shift())))}finally{this.B.delete(G)}return a};g.t(Nd,g.r);Nd.prototype.yb=function(){this.B.dispose();this.G.dispose();this.X.dispose();this.C.dispose();this.Y=this.j=this.V=this.W=this.L=void 0};var ZDX=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.t(Cb,eX);g.W=Cb.prototype;g.W.getApiInterface=function(){return Array.from(this.state.L)}; g.W.D_=function(G,B){this.state.B.subscribe(G,B)}; g.W.t6n=function(G,B){this.state.B.unsubscribe(G,B)}; g.W.getPlayerState=function(G){return YSK(this.app,G)}; g.W.CLB=function(){return YSK(this.app)}; g.W.FtJ=function(G,B,a){mo(this)&&(rk(this.app,!0,1),qE(this.app,G,B,a,1))}; g.W.getCurrentTime=function(G,B,a){var V=this.getPlayerState(G);if(this.app.getAppState()===2&&V===5){var x;return((x=this.app.getVideoData())==null?void 0:x.startSeconds)||0}return this.S("web_player_max_seekable_on_ended")&&V===0?s8_(this.app,G):G?this.app.getCurrentTime(G,B,a):this.app.getCurrentTime(G)}; g.W.nI=function(){return this.app.getCurrentTime(1)}; g.W.mBH=function(){var G=this.app.lJ(1);return isNaN(G)?this.getCurrentTime(1):G}; g.W.eB=function(){return this.app.getDuration(1)}; g.W.Ym=function(G,B){G=g.eH(Math.floor(G),0,100);isFinite(G)&&fl(this.app,{volume:G,muted:this.isMuted()},B)}; g.W.smL=function(G){this.Ym(G,!1)}; g.W.rr=function(G){fl(this.app,{muted:!0,volume:this.getVolume()},G)}; g.W.zPJ=function(){this.rr(!1)}; g.W.S3=function(G){tK(this.app)&&!this.S("embeds_enable_emc3ds_muted_autoplay")||fl(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},G)}; g.W.vl1=function(){tK(this.app)&&this.S("embeds_enable_emc3ds_muted_autoplay")||this.S3(!1)}; g.W.getPlayerMode=function(){var G={};this.app.getVideoData().yd&&(G.pfp={enableIma:g.BE(this.app.getVideoData())&&this.app.VK().allowImaMonetization,autoplay:XV(this.app.VK()),mutedAutoplay:this.app.VK().mutedAutoplay});return G}; g.W.Dd=function(){var G=this.app.getPresentingPlayerType();if(G===2&&!this.app.Cn()){var B=H$(this.app.Ch());if(!YDz(B)||i8B(B))return}G===3?nb(this.app.Ch()).fO("control_play"):this.app.U().S("html5_ssap_ignore_play_for_ad")&&g.AC(this.app.VK())&&G===2||this.app.playVideo(G)}; g.W.z9J=function(){rk(this.app,!0,1);this.Dd()}; g.W.pauseVideo=function(G){var B=this.app.getPresentingPlayerType();if(B!==2||this.app.Cn()||YDz(H$(this.app.Ch())))B===3?nb(this.app.Ch()).fO("control_pause"):this.app.pauseVideo(B,G)}; g.W.MfB=function(){var G=this.app,B=!1;G.md.Cd&&(G.JX.publish("pageTransition"),B=!0);G.stopVideo(B)}; g.W.clearVideo=function(){}; g.W.getAvailablePlaybackRates=function(){var G=this.app.U();return G.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(G.G?G.ancestorOrigins[0]:window.location.origin)||G.mf?N32:G.supportsVarispeedExtendedFeatures?d2h:G.S("web_remix_allow_up_to_3x_playback_rate")&&g.rv(G)?COk:yL:[1]}; g.W.getPlaybackQuality=function(G){return(G=this.app.It(G))?G.getPlaybackQuality():"unknown"}; g.W.dHb=function(){}; g.W.getAvailableQualityLevels=function(G){return(G=this.app.It(G))?(G=g.br(G.P6(),function(B){return B.quality}),G.length&&(G[0]==="auto"&&G.shift(),G=G.concat(["auto"])),G):[]}; g.W.aj=function(){return this.getAvailableQualityLevels(1)}; g.W.ofd=function(){return this.Ap()}; g.W.HNS=function(){return 1}; g.W.getVideoLoadedFraction=function(G){return this.app.getVideoLoadedFraction(G)}; g.W.Ap=function(){return this.getVideoLoadedFraction()}; g.W.GHN=function(){return 0}; g.W.getSize=function(){var G=this.app.g1().getPlayerSize();return{width:G.width,height:G.height}}; g.W.setSize=function(){this.app.g1().resize()}; g.W.loadVideoById=function(G,B,a,V){if(!G)return!1;G=dw(G,B,a);return this.app.loadVideoByPlayerVars(G,V)}; g.W.h6L=function(G,B,a){G=this.loadVideoById(G,B,a,1);rk(this.app,G,1)}; g.W.cueVideoById=function(G,B,a,V){G=dw(G,B,a);this.app.cueVideoByPlayerVars(G,V)}; g.W.w3=function(G,B,a){this.cueVideoById(G,B,a,1)}; g.W.loadVideoByUrl=function(G,B,a,V){G=RTc(G,B,a);return this.app.loadVideoByPlayerVars(G,V)}; g.W.tEL=function(G,B,a){G=this.loadVideoByUrl(G,B,a,1);rk(this.app,G,1)}; g.W.cueVideoByUrl=function(G,B,a,V){G=RTc(G,B,a);this.app.cueVideoByPlayerVars(G,V)}; g.W.IB=function(G,B,a){this.cueVideoByUrl(G,B,a,1)}; g.W.ZNJ=function(){var G=this.app.U();if(G.XJ)return"";var B=this.app.VK(),a=void 0;B.isLivePlayback||(a=Math.floor(this.app.getCurrentTime(1)));return G.getVideoUrl(B.videoId,this.getPlaylistId()||void 0,a)}; g.W.DJ=function(){return this.app.getDebugText()}; g.W.getVideoEmbedCode=function(){var G=this.app.U();if(G.XJ)return"";var B=this.app.VK();return G.getVideoEmbedCode(B.isPrivate?"":B.title,this.app.VK().videoId,this.app.g1().getPlayerSize(),this.getPlaylistId()||void 0)}; g.W.n7=function(G,B,a){return V89(this.app,G,B,a)}; g.W.removeCueRange=function(G){return hB9(this.app,G)}; g.W.loadPlaylist=function(G,B,a,V){this.app.loadPlaylist(G,B,a,V)}; g.W.BO1=function(G,B,a,V){this.loadPlaylist(G,B,a,V);rk(this.app,!0,1)}; g.W.cuePlaylist=function(G,B,a,V){this.app.cuePlaylist(G,B,a,V)}; g.W.nextVideo=function(G,B){this.app.nextVideo(G,B)}; g.W.XCd=function(){this.nextVideo();rk(this.app,!0,1)}; g.W.previousVideo=function(G){this.app.previousVideo(G)}; g.W.GzJ=function(){this.previousVideo();rk(this.app,!0,1)}; g.W.playVideoAt=function(G){this.app.playVideoAt(G)}; g.W.FPS=function(G){this.playVideoAt(G);rk(this.app,!0,1)}; g.W.setShuffle=function(G){var B=this.app.getPlaylist();B&&B.setShuffle(G)}; g.W.setLoop=function(G){var B=this.app.getPlaylist();B&&(B.loop=G)}; g.W.cXn=function(){var G=this.app.getPlaylist();if(!G)return null;for(var B=[],a=0;a=400)if(G=this.VK(),this.T.U().S("client_respect_autoplay_switch_button_renderer"))G=!!G.autoplaySwitchButtonRenderer;else{var B,a,V,x;G=!!((B=G.getWatchNextResponse())==null?0:(a=B.contents)==null?0:(V=a.twoColumnWatchNextResults)==null?0:(x=V.autoplay)==null?0:x.autoplay)!==!1}if(G)this.j||(this.j=!0,this.zt(this.j),this.T.U().S("web_player_autonav_toggle_always_listen")||hGA(this), B=this.VK(),this.GP(B.autonavState),this.T.logVisibility(this.element,this.j));else if(this.j=!1,this.zt(this.j),!this.T.U().S("web_player_autonav_toggle_always_listen"))for(this.T.U().S("web_player_autonav_toggle_always_listen"),B=g.m(this.X),a=B.next();!a.done;a=B.next())this.i6(a.value)}; g.W.GP=function(G){WTc(this)?this.isChecked=G!==1:((G=G!==1)||(g.qe(),G=g.pB("web_autonav_allow_off_by_default")&&!g.uP(0,141)&&g.A0("AUTONAV_OFF_BY_DEFAULT")?!1:!g.uP(0,140)),this.isChecked=G);eGx(this)}; g.W.onClick=function(){this.isChecked=!this.isChecked;this.T.hO(this.isChecked?2:1);eGx(this);if(WTc(this)){var G=this.VK().autoplaySwitchButtonRenderer;this.isChecked&&(G==null?0:G.onEnabledCommand)?this.T.pN("innertubeCommand",G.onEnabledCommand):!this.isChecked&&(G==null?0:G.onDisabledCommand)&&this.T.pN("innertubeCommand",G.onDisabledCommand)}this.T.logClick(this.element)}; g.W.getValue=function(){return this.isChecked}; g.W.VK=function(){return this.T.getVideoData(1)};g.t(wpH,iq);g.t(V8,g.Fq);V8.prototype.onClick=function(){this.enabled&&(x3(this,!this.checked),this.publish("select",this.checked))}; V8.prototype.getValue=function(){return this.checked}; V8.prototype.setEnabled=function(G){(this.enabled=G)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var lkB=["en-CA","en","es-MX","fr-CA"];g.t(k3,V8);k3.prototype.uL=function(G){G?this.j||(this.Gi.WC(this),this.j=!0):this.j&&(this.Gi.Im(this),this.j=!1);this.j&&x3(this,cs_())}; k3.prototype.G=function(){g.WC(this.element,"ytp-menuitem-highlight-transition-enabled")}; k3.prototype.C=function(G){var B=cs_();G!==B&&(B=g.qe(),LU(190,G),LU(192,!0),B.save(),this.T.pN("cinematicSettingsToggleChange",G))}; k3.prototype.yb=function(){this.j&&this.Gi.Im(this);V8.prototype.yb.call(this)};g.t(NS,iq);NS.prototype.updateCinematicSettings=function(G){this.j=G;var B;(B=this.menuItem)==null||B.uL(G);this.api.publish("onCinematicSettingsVisibilityChange",G)};g.t(dR,iq);dR.prototype.VM=function(G,B){B=B.clipConfig;G==="dataloaded"&&B&&B.startTimeMs!=null&&B.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(B.startTimeMs)),endTimeMs:Math.floor(Number(B.endTimeMs)),postId:B.postId,type:"clips"})};g.t(CP,iq);CP.prototype.setCreatorEndscreenVisibility=function(G){var B;(B=Rs(this.api.Ch()))==null||B.zt(G)}; CP.prototype.j=function(G){function B(V){V==="creatorendscreen"&&(V=Rs(a.api.Ch()))&&V.HR1(a.hideButton)} var a=this;this.hideButton=G;this.events.K(this.api,"modulecreated",B);B("creatorendscreen")};g.t(zq,V8);zq.prototype.C=function(G){this.G(G?1:0)}; zq.prototype.X=function(){var G=this.hasDrcAudioTrack(),B=this.j()===1&&G;x3(this,B);this.setEnabled(G)}; zq.prototype.yb=function(){this.Gi.Im(this);V8.prototype.yb.call(this)};g.t(tY,iq);tY.prototype.getDrcUserPreference=function(){return this.j}; tY.prototype.setDrcUserPreference=function(G){g.D0("yt-player-drc-pref",G,31536E3);G!==this.j&&(this.j=G,this.updateEnvironmentData(),this.X()&&this.api.LL())}; tY.prototype.updateEnvironmentData=function(){this.api.U().IG=this.j===1}; tY.prototype.X=function(){var G,B,a=(G=this.api.getVideoData())==null?void 0:(B=G.C)==null?void 0:B.j;if(!a)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.S("mta_drc_mutual_exclusion_removal")){var V=this.api.getAudioTrack().VW.id;return bL(a,function(x){var h;return x.audio.j&&((h=x.VW)==null?void 0:h.id)===V})}return bL(a,function(x){var h; return((h=x.audio)==null?void 0:h.j)===!0})};g.t(m1,iq);m1.prototype.onVideoDataChange=function(){var G=this,B=this.api.getVideoData();this.api.KD("embargo",1);var a=B==null?void 0:B.Hj.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(a==null?0:a.length)?CD_(this,a.filter(function(V){return dzg(G,V)})):(B==null?0:B.cueRanges)&&CD_(this,B.cueRanges.filter(function(V){return dzg(G,V)}))}; m1.prototype.X=function(G){return G.embargo!==void 0}; m1.prototype.yb=function(){iq.prototype.yb.call(this);this.j={}};g.t(Ig,iq); Ig.prototype.addEmbedsConversionTrackingParams=function(G){var B=this.api.U(),a=B.widgetReferrer,V=B.MB,x=this.j,h="",e=B.getWebPlayerContextConfig();e&&(h=e.embedsIframeOriginParam||"");a.length>0&&(G.embeds_widget_referrer=a);V.length>0&&(G.embeds_referring_euri=V);B.G&&h.length>0&&(G.embeds_referring_origin=h);e&&e.embedsFeature&&(G.feature=e.embedsFeature);x.length>0&&(B.S("embeds_web_enable_lite_experiment_control_arm_logging")?x.unshift(28572):g.KU(g.rG(B))&&x.unshift(159628),B=x.join(","),B= g.T9()?B:g.I5(B,4),G.source_ve_path=B);this.j.length=0};g.t(zGz,iq);g.t(tkH,iq);g.t(gR,g.r);gR.prototype.yb=function(){g.r.prototype.yb.call(this);this.j=null;this.X&&this.X.disconnect()};g.t(IkB,iq);g.t(pP,g.T);pP.prototype.show=function(){g.T.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; pP.prototype.onVideoDataChange=function(G){var B,a,V=(B=this.api.getVideoData())==null?void 0:(a=B.getPlayerResponse())==null?void 0:a.playabilityStatus;V&&(B=gAY(V),g.F(this.api.getPlayerStateObject(),128)||G==="dataloaderror"||!B?(this.X=0,UO(this),this.hide()):(G=(B.remainingTimeSecs||0)*1E3,G>0&&(this.show(),this.updateValue("label",IM(B.label)),Uzx(this,G))))}; pP.prototype.yb=function(){UO(this);g.T.prototype.yb.call(this)};g.t(Oh_,iq);g.t(OO,g.T);OO.prototype.onClick=function(){this.JX.logClick(this.element);this.JX.pN("onFullerscreenEduClicked")}; OO.prototype.uL=function(){this.JX.isFullscreen()?this.X?this.j.hide():this.j.show():this.hide();this.JX.logVisibility(this.element,this.JX.isFullscreen()&&!this.X)};g.t(EO,iq);EO.prototype.updateFullerscreenEduButtonSubtleModeState=function(G){var B;(B=this.j)!=null&&(g.Km(B.element,"ytp-fullerscreen-edu-button-subtle",G),G&&!B.C&&(B.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),Ec(B.JX,B.element,B),B.C=!0))}; EO.prototype.updateFullerscreenEduButtonVisibility=function(G){var B;(B=this.j)!=null&&(B.X=G,B.uL())};g.t(EAy,g.T);g.t(y2K,iq);g.t(jj,iq);jj.prototype.getSphericalProperties=function(){var G=g.vE(this.api.Ch());return G?G.getSphericalProperties():{}}; jj.prototype.setSphericalProperties=function(G){if(G){var B=g.vE(this.api.Ch());B&&B.setSphericalProperties(G,!0)}};g.t(bp,iq);g.W=bp.prototype;g.W.createClientVe=function(G,B,a,V){this.api.createClientVe(G,B,a,V===void 0?!1:V)}; g.W.createServerVe=function(G,B,a){this.api.createServerVe(G,B,a===void 0?!1:a)}; g.W.setTrackingParams=function(G,B){this.api.setTrackingParams(G,B)}; g.W.logClick=function(G,B){this.api.logClick(G,B)}; g.W.logVisibility=function(G,B,a){this.api.logVisibility(G,B,a)}; g.W.hasVe=function(G){return this.api.hasVe(G)}; g.W.destroyVe=function(G){this.api.destroyVe(G)};var nAx=!1;cB.prototype.setPlaybackRate=function(G){this.playbackRate=Math.max(1,G)}; cB.prototype.getPlaybackRate=function(){return this.playbackRate};De.prototype.mq=function(G){var B=g.My(G.info.j.info,this.hX.SE),a=G.info.AX+this.G,V=G.info.startTime*1E3;if(this.policy.Ur)try{V=this.policy.Ur?g.MC(G)*1E3:G.info.startTime*1E3}catch(e){Math.random()>.99&&this.logger&&(V=Oj(G.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:G.info.cC(),encodedDataView:g.md(V,4)})),V=G.info.startTime*1E3}var x=G.info.clipId,h=this.policy.Ur?g.cjx(G)*1E3:G.info.duration*1E3;this.policy.Ur&&(V<0||h<0)&&(this.logger&&(this.logger({missingSegInfo:G.info.cC(), startTimeMs:V,durationMs:h}),this.policy.L1||(V<0&&(V=G.info.startTime*1E3),h<0&&(h=G.info.duration*1E3))),this.policy.L1&&(V<0&&(V=G.info.startTime*1E3),h<0&&(h=G.info.duration*1E3)));return{formatId:B,AX:a,startTimeMs:V,clipId:x,Yy:h}}; De.prototype.rV=function(G){this.timestampOffset=G};Ze.prototype.seek=function(G,B){G!==this.j&&(this.seekCount=0);this.j=G;var a=this.videoTrack.X,V=this.audioTrack.X,x=this.audioTrack.Wf,h=J2A(this,this.videoTrack,G,this.videoTrack.Wf,B);B=J2A(this,this.audioTrack,this.policy.PD?G:h,x,B);G=Math.max(G,h,B);this.B=!0;this.hX.isManifestless&&(QMB(this,this.videoTrack,a),QMB(this,this.audioTrack,V));return G}; Ze.prototype.isSeeking=function(){return this.B}; Ze.prototype.Pg=function(G){this.C=G}; var FTV=2/24;var ihy=0;g.W=JY.prototype;g.W.cq=function(){this.Y=this.now();YMx(this.Gt,this.Y);this.yW.cq()}; g.W.Po=function(G,B){var a=this.policy.X?(0,g.yT)():0;AY(this,G,B);G-this.L<10&&this.X>0||this.GL(G,B);this.yW.Po(G,B);this.policy.X&&(G=(0,g.yT)()-a,this.QW+=G,this.eJ=Math.max(G,this.eJ))}; g.W.GL=function(G,B){var a=(G-this.L)/1E3,V=B-this.C;this.iy||(I$(this.Gt,a,V),this.ZA(a,V));this.L=G;this.C=B}; g.W.sC=function(){this.GH&&PDY(this);this.yW.sC()}; g.W.aC=function(G){this.GH||(this.GH=this.B-this.wO+G,this.m3=this.B,this.Cd=this.W)}; g.W.RU=function(G,B){G=G===void 0?this.W:G;B=B===void 0?this.B:B;this.X>0||(this.V=G,this.X=B,this.zH=this.isActive=!0)}; g.W.JL=function(){return this.EA||2}; g.W.yY=function(){}; g.W.gW=function(){var G,B={rn:this.requestNumber,rt:(this.W-this.j).toFixed(),lb:this.B,stall:(1E3*this.G).toFixed(),ht:(this.Y-this.j).toFixed(),elt:(this.V-this.j).toFixed(),elb:this.X,d:(G=this.Zx)==null?void 0:G.Ft()};this.url&&c2B(B,this.url);this.policy.X&&(B.mph=this.eJ.toFixed(),B.tph=this.QW.toFixed());B.ulb=this.LN;B.ult=this.XJ;B.abw=this.MB;return B}; g.W.now=function(){return(0,g.yT)()}; g.W.deactivate=function(){this.isActive&&(this.isActive=!1)};g.t(ip,JY);g.W=ip.prototype;g.W.gW=function(){var G=JY.prototype.gW.call(this);G.pb=this.fP;G.pt=(1E3*this.Dx).toFixed();G.se=this.YD;return G}; g.W.Tg=function(){var G=this.yW;this.Ur||(this.Ur=G.Tg?G.Tg():1);return this.Ur}; g.W.CV=function(){return this.eF?this.Tg()!==1:!1}; g.W.Ib=function(G,B,a){if(!this.Md){this.Md=!0;if(!this.iy){AY(this,G,B);this.GL(G,B);var V=this.Tg();this.YD=a;if(!this.iy)if(V===2){V=G-this.V0)||PB(this,V,B),this.X>0&&t3(this.Gt, B,this.G));G=(G-this.j)/1E3||.01;this.policy.V&&!(this.X>0)||zQ(this.Gt,G,this.C,MkX(this),this.K1)}this.deactivate()}}; g.W.X4=function(G,B,a){a&&(this.Ur=2);G<0&&this.EA&&(G=this.EA);B?this.Er+=G:this.qB+=G}; g.W.JL=function(){return this.qB||this.Er||JY.prototype.JL.call(this)}; g.W.GL=function(G,B){var a=(G-this.L)/1E3,V=B-this.C,x=this.Tg();this.isActive?x===1&&((V>0||this.policy.B)&&(a>.2||V<1024)?(this.G+=a,V>0&&a>.2&&PB(this,this.N$?a:.05,V),this.Yf=!0):V>0&&(PB(this,a,V),this.Yf=!0)):B&&B>=this.policy.j&&this.RU(G,B);JY.prototype.GL.call(this,G,B)}; g.W.i5=function(G){if(!this.iy){AY(this,G,this.B);var B=(G-this.j)/1E3;this.Tg()!==2&&this.X>0&&(this.G+=(G-this.L)/1E3,t3(this.Gt,this.C,this.G));zQ(this.Gt,B,this.C,MkX(this),this.K1,!0);G=(G-this.L)/1E3;I$(this.Gt,G,0);this.ZA(G,0)}}; g.W.RU=function(G,B){G=G===void 0?this.W:G;B=B===void 0?this.B:B;if(!(this.X>0)&&(JY.prototype.RU.call(this,G,B),this.Tg()===1)){B=(this.Y-this.j)/1E3;var a=(G-this.Y)/1E3;this.eF&&og(this,this.now());this.fh||this.iy||(this.EA&&(a=Math.max(0,a-this.EA)),G=this.Gt,G.V.j$(1,B),G.Zx.j$(1,a))}}; g.W.kV=function(){this.eF&&og(this,this.now());return this.SJ}; g.W.lA=function(){var G;if(G=this.C>this.lQ)G=(G=this.C)?G>=this.policy.j:!1;return G}; g.W.xC=function(){return this.Vb}; g.W.dX=function(G){G=G===void 0?this.now():G;if(this.eF){og(this,G);if(this.Ur?this.CV():this.HS!==this.Qb){var B=this.Qb;if(G0?a+G:a+Math.max(G,B)}; g.W.bb=function(){return this.now()-this.V}; g.W.zU=function(){return(this.C-this.X)*1E3/this.bb()||0}; g.W.Z8=function(){return this.V};MS.prototype.feed=function(G){I3(this.j,G);this.Bn()}; MS.prototype.Bn=function(){if(this.G){if(!this.j.getLength())return;var G=this.j.split(this.C-this.X),B=G.rS;G=G.v3;if(!this.yW.aC(this.G,B,this.X,this.C))return;this.X+=B.getLength();this.j=G;this.X===this.C&&(this.G=this.C=this.X=void 0)}for(;;){var a=0;G=g.m(Vax(this.j,a));B=G.next().value;a=G.next().value;a=g.m(Vax(this.j,a));G=a.next().value;a=a.next().value;if(B<0||G<0)break;if(!this.j.TK(a,G)){if(!this.yW.aC||!this.j.TK(a,1))break;a=this.j.split(a).v3;this.yW.aC(B,a,0,G)&&(this.G=B,this.X= a.getLength(),this.C=G,this.j=new mN([]));break}G=this.j.split(a).v3.split(G);a=G.v3;this.yW.eI(B,G.rS);this.j=a}}; MS.prototype.dispose=function(){this.j=new mN};g.W=GS.prototype;g.W.E3=function(){return 0}; g.W.BA=function(){return null}; g.W.zJ=function(){return null}; g.W.Em=function(){return this.state>=1}; g.W.isComplete=function(){return this.state>=3}; g.W.Vm=function(){return this.state===5}; g.W.onStateChange=function(){}; g.W.g7=function(G){var B=this.state;this.state=G;this.onStateChange(B);this.callback&&this.callback(this,B)}; g.W.U0=function(G){G&&this.state=this.xhr.HEADERS_RECEIVED}; g.W.getResponseHeader=function(G){try{return this.xhr.getResponseHeader(G)}catch(B){return""}}; g.W.pH=function(){return+this.getResponseHeader("content-length")}; g.W.uC=function(){return this.X}; g.W.aI=function(){return this.status>=200&&this.status<300&&!!this.X}; g.W.Ph=function(){return this.j.getLength()>0}; g.W.C2=function(){var G=this.j;this.j=new mN;return G}; g.W.Ne=function(){return this.j}; g.W.abort=function(){this.TH=!0;this.xhr.abort()}; g.W.KX=function(){return!0}; g.W.Ze=function(){return this.C}; g.W.Qd=function(){return""};g.W=WZX.prototype;g.W.getResponseHeader=function(G){return G==="content-type"?this.j.get("type"):""}; g.W.abort=function(){}; g.W.LK=function(){return!0}; g.W.pH=function(){return this.range.length}; g.W.uC=function(){return this.loaded}; g.W.aI=function(){return!!this.loaded}; g.W.Ph=function(){return!!this.X.getLength()}; g.W.C2=function(){var G=this.X;this.X=new mN;return G}; g.W.Ne=function(){return this.X}; g.W.KX=function(){return!0}; g.W.Ze=function(){return!!this.error}; g.W.Qd=function(){return this.error};g.W=KZA.prototype;g.W.start=function(G){var B={credentials:"include",cache:"no-store"};Object.assign(B,this.W);this.G&&(B.signal=this.G.signal);G=new Request(G,B);fetch(G).then(this.Y,this.onError).then(void 0,WL)}; g.W.onDone=function(){this.TH()||this.yW.sC()}; g.W.getResponseHeader=function(G){return this.responseHeaders?this.responseHeaders.get(G):null}; g.W.LK=function(){return!!this.responseHeaders}; g.W.uC=function(){return this.X}; g.W.pH=function(){return+this.getResponseHeader("content-length")}; g.W.aI=function(){return this.status>=200&&this.status<300&&!!this.X}; g.W.Ph=function(){return!!this.j.getLength()}; g.W.C2=function(){this.Ph();var G=this.j;this.j=new mN;return G}; g.W.Ne=function(){this.Ph();return this.j}; g.W.TH=function(){return this.B}; g.W.abort=function(){this.C&&this.C.cancel().catch(function(){}); this.G&&this.G.abort();this.B=!0}; g.W.KX=function(){return!0}; g.W.Ze=function(){return this.L}; g.W.Qd=function(){return this.errorMessage};g.W=l_z.prototype;g.W.onDone=function(){if(!this.TH){this.status=this.xhr.status;try{this.response=this.xhr.response,this.X=this.response.byteLength}catch(G){}this.j=!0;this.yW.sC()}}; g.W.V6=function(){this.xhr.readyState===2&&this.yW.cq()}; g.W.OA=function(G){this.TH||(this.status=this.xhr.status,this.j||(this.X=G.loaded),this.yW.Po((0,g.yT)(),G.loaded))}; g.W.LK=function(){return this.xhr.readyState>=2}; g.W.getResponseHeader=function(G){try{return this.xhr.getResponseHeader(G)}catch(B){return g.Zb(Error("Could not read XHR header "+G)),""}}; g.W.pH=function(){return+this.getResponseHeader("content-length")}; g.W.uC=function(){return this.X}; g.W.aI=function(){return this.status>=200&&this.status<300&&this.j&&!!this.X}; g.W.Ph=function(){return this.j&&!!this.response&&!!this.response.byteLength}; g.W.C2=function(){this.Ph();var G=this.response;this.response=void 0;return new mN([new Uint8Array(G)])}; g.W.Ne=function(){this.Ph();return new mN([new Uint8Array(this.response)])}; g.W.abort=function(){this.TH=!0;this.xhr.abort()}; g.W.KX=function(){return!1}; g.W.Ze=function(){return!1}; g.W.Qd=function(){return""};g.xY.prototype.info=function(){}; g.xY.prototype.debug=function(){}; g.xY.prototype.j=function(G){h9.apply(null,[5,this.tag,G].concat(g.U(g.Hz.apply(1,arguments))))}; var dFb=new Map,tay=new Map,CHc=new function(){var G=this;this.j=new Map;this.vC={h0S:function(){return G.j}}};g.t(eZ,g.r);eZ.prototype.ye=function(){if(!this.Ov.length)return[];var G=this.Ov;this.Ov=[];this.C=g.s3(G).info;return G}; eZ.prototype.pO=function(){return this.Ov}; eZ.prototype.yb=function(){g.r.prototype.yb.call(this);this.j=null;this.Ov.length=0;this.nN.length=0;this.C=null};g.t(w6,g.r);g.W=w6.prototype; g.W.wxS=function(){if(!this.TH()){var G=(0,g.yT)(),B=!1;if(this.policy.Lk){G=G-(this.timing.X>0?this.timing.V:this.timing.j)-this.timing.JL()*1E3;var a=mf(KL(this),!1);G>=2E3*a?B=!0:G>=this.policy.D6*a&&(this.j=this.policy.Hh)}else if(this.timing.X>0){if(this.B){this.policy.fd&&(this.j=0);return}var V=this.timing.xC();this.timing.dX();var x=this.timing.xC();x-V>=this.policy.Da*.8?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(x-V).toFixed(0)}),B=this.j>=5):this.j=0}else{var h=G- this.timing.kV(); this.policy.Hh&&h>0&&(this.j+=1);B=mf(KL(this),!1)*this.policy.zY;(B=h>B*1E3)&&this.logger.debug(function(){return"Elbow late by "+h.toFixed(3)})}this.j>0&&this.yW.TU(); B?this.UJ():this.X.start()}}; g.W.UJ=function(){this.G=!0;this.yW.I6();this.lastError="net.timeout";kY(this)}; g.W.canRetry=function(G){var B=KL(this);G=G?this.policy.L2:this.policy.H9;return B.timedOut0&&(B=B.j.getUint8(0),G.ubyte=B,a===1&&B===0&&(G.b248180278=!0))}this.Mq&&(G.rc=this.policy.sM?this.Mq:this.Mq.toString());this.policy.OZ&&this.bH&&(G.tr=this.bH);G.itag=this.info.nN[0].j.info.itag;G.ml=""+ +this.info.nN[0].j.tv();G.sq=""+this.info.nN[0].AX;this.sx&&(G.ifi=""+ +bH(this.info.kD.C));this.Mq!==410&&this.Mq!==500&&this.Mq!==503||(G.fmt_unav="true");var V;(a=this.errorMessage||((V=this.xhr)==null? void 0:V.Qd()))&&(G.msg=a);this.D9&&(G.smb="1");this.info.isDecorated()&&(G.sdai="1");return G}; g.W.eO=function(){return GOK(this.timing)}; g.W.Qd=function(){return this.xhr.Qd()||""}; g.W.lA=function(){return this.isComplete()||this.timing.lA()}; g.W.Po=function(){!this.TH()&&this.xhr&&(this.Mq=this.xhr.status,this.policy.i4&&this.Av&&this.MP(!1),this.Fr()?this.U0(2):!this.D8&&this.lA()&&(this.U0(),this.D8=!0))}; g.W.cq=function(){if(!this.TH()&&this.xhr){if(!this.X7&&this.xhr.LK()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var G=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.X7=((0,g.yT)()-G)/1E3}this.xhr.LK()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.AG&&!qeY()&&g.D0("yt-player-headers-readable",!0,2592E3);G=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var B=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),a;(a=this.nK)==null||a.stop();this.M7=G||this.M7; this.Ua=B||this.Ua}}; g.W.sC=function(){var G=this.xhr;if(!this.TH()&&G){this.Mq=G.status;G=this.SA(G);if(this.policy.OZ){var B;(B=this.nK)==null||B.stop()}G===5?kY(this.Ay):this.g7(G);this.Ay.X.stop()}}; g.W.SA=function(G){var B=this;Yib(this);if(Nj(this.Ay,this.xhr.status,this.YZ?this.timing.zH||this.B7:this.xhr.aI(),!1,this.Us))return 5;var a="";d6(this.Ay,this.xhr)&&(a=OTK(this.Ay,this.xhr));if(a)return tB(KL(this.Ay)),this.info.Ey(this.sx,a),3;a=G.uC();if(this.H3){this.MP(!0);Yib(this);if(Nj(this.Ay,this.xhr.status,this.timing.zH||this.B7,!1,this.Us))return 5;if(!this.lH){if(this.B7)return tB(KL(this.Ay)),3;this.Ay.lastError="net.closed";return 5}}else{if(Nj(this.Ay,this.xhr.status,this.xhr.aI(), !1,this.Us))return 5;var V=this.info.C;if(V&&V!==a||G.Ze())return this.Ay.lastError="net.closed",5;this.MP(!0)}V=xFx(this)?G.getResponseHeader("X-Bandwidth-Est"):0;if(G=xFx(this)?G.getResponseHeader("X-Bandwidth-Est3"):0)this.tZ=!0,this.policy.DC&&(V=G);pUb(this.Ay,a,V?Number(V):0,this.info.nN[0].type===5);this.logger.debug(function(){var x=B.timing;return"Succeeded, rtpd="+(x.Dx*1E3+x.j-Date.now()).toFixed(0)}); return 4}; g.W.canRetry=function(){this.TH();var G=this.info.isDecorated();return this.Ay.canRetry(G)}; g.W.onStateChange=function(){this.isComplete()&&(this.policy.pc?this.I6():this.timing.deactivate())}; g.W.UJ=function(){this.Ay.UJ()}; g.W.TU=function(){this.callback&&this.callback(this,this.state)}; g.W.RC=function(){return this.Ay.RC()}; g.W.dispose=function(){GS.prototype.dispose.call(this);this.Ay.dispose();var G;(G=this.nK)==null||G.dispose();this.policy.pc||this.I6()}; g.W.I6=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.W.ye=function(){if(!this.pO().length)return[];this.Ja=!0;return this.Av.ye()}; g.W.Fr=function(){if(this.state<1)return!1;if(this.Av&&this.Av.Ov.length)return!0;var G;return((G=this.xhr)==null?0:G.Ph())?!0:!1}; g.W.pO=function(){this.MP(!1);return this.Av?this.Av.pO():[]}; g.W.MP=function(G){try{if(G||this.xhr.LK()&&this.xhr.Ph()&&!d6(this.Ay,this.xhr)&&!this.jT)this.Av||(this.Av=new eZ(this.policy,this.info.nN)),this.xhr.Ph()&&(this.H3?this.H3.feed(this.xhr.C2()):WT(this.Av,this.xhr.C2(),G&&!this.xhr.Ph()))}catch(B){this.H3?FZH(this,B):g.Zb(B)}}; g.W.eI=function(G,B){switch(G){case 21:G=B.split(1).v3;Jqz(this,G);break;case 22:this.lH=!0;WT(this.Av,new mN([]),!0);break;case 43:if(G=rH(new H7(B),1))this.info.Ey(this.sx,G),this.B7=!0;break;case 45:B=Mz(new H7(B));G=B.hw;B=B.Wg;G&&B&&(this.BQ=G/B);break;case 44:this.A1=Xjx(new H7(B));var a,V,x;!this.timing.zH&&((a=this.A1)==null?void 0:a.action)===4&&((V=this.A1)==null?0:(x=V.LJ)==null?0:x.YZ)&&(this.YZ=this.A1.LJ.YZ);break;case 53:this.policy.OZ&&(G=ZfA(new H7(B)).F1)&&(this.nK||(this.F1=G,this.nK= new g.J8(this.d5,G,this)),this.nK.start());break;case 60:this.A3=oM(new H7(B));break;case 58:if(G=dux(new H7(B)))this.A7=G,G.A7===3&&(this.Us=!0)}}; g.W.aC=function(G,B,a,V){a||this.timing.aC(V);if(G!==21)return!1;if(G=this.policy.i4)if(V=B.getLength()+a===V,G*=this.info.nN[0].j.info.NB,!V&&B.getLength()0)return!1;if(!this.xhr.LK())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.H3)var G=!this.info.C;else this.xhr.pH()?G=!1:(G=this.xhr.getResponseHeader("content-type"),G=G==="audio/mp4"||G==="video/mp4"||G==="video/webm");if(!G)return!1;if(isNaN(this.info.hA)){G=this.xhr.getResponseHeader("x-head-seqnum");var B=this.timing.policy.W?1:0;if(!G)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(G)>this.info.nN[0].AX+B)return!1}return!0}; g.W.vH=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.W.BA=function(){this.xhr&&(this.M7=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.M7}; g.W.zJ=function(){this.xhr&&(this.Ua=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Ua}; g.W.Vk=function(){return this.Ay.Vk()}; g.W.d5=function(){if(!this.TH()&&this.xhr){this.bH="heartbeat";var G=this.Ay;G.j+=2;this.TU()}};g.t(UG,JY);g.W=UG.prototype;g.W.GL=function(G,B){var a=(G-this.L)/1E3,V=B-this.C;this.X>0?V>0&&(this.HS&&(a>.2||V<1024?(this.G+=a,a>.2&&iTx(this,.05,V)):iTx(this,a,V)),this.Qb&&(this.SJ+=V,this.qB+=a)):B>this.policy.j&&this.RU(G,B);JY.prototype.GL.call(this,G,B)}; g.W.Ib=function(G,B){AY(this,G,B);this.GL(G,B);this.HS&&(B=this.C*this.snapshot.stall+this.C/this.snapshot.byterate,this.X>0&&t3(this.Gt,this.SJ,this.G),G=(G-this.j)/1E3||.01,this.policy.V&&!(this.X>0)||zQ(this.Gt,G,this.C,B,!1))}; g.W.i5=function(G){AY(this,G,this.B);var B=(G-this.L)/1E3;I$(this.Gt,B,0);this.ZA(B,0);!this.HS&&this.X>0||(B=this.C*this.snapshot.stall+this.C/this.snapshot.byterate,this.X>0&&(this.G+=(G-this.L)/1E3,t3(this.Gt,this.SJ,this.G)),zQ(this.Gt,((G-this.j)/1E3||.01)*this.policy.XJ,this.C,B,!1,!0))}; g.W.I7=function(G){G=G.Xl||2147483647;(G&2)!==2&&(this.Qb=!1);(G&1)===1&&(this.HS=!0)}; g.W.AP=function(G){G=G.Xl||2147483647;(G&2)===2&&(this.Qb=!1);(G&1)===1&&(this.HS=!1)}; g.W.Z8=function(){return this.V}; g.W.bb=function(){var G=this.Qb?this.now()-this.L:0;return Math.max(this.qB*1E3+G,1)}; g.W.zU=function(){return this.SJ*1E3/this.bb()}; g.W.RU=function(G,B){G=G===void 0?this.W:G;B=B===void 0?this.B:B;this.X>0||(JY.prototype.RU.call(this,G,B),B=this.Gt,G=(G-this.Y)/1E3,B.V.j$(1,(this.Y-this.j)/1E3),B.Zx.j$(1,G))}; g.W.yY=function(G){this.Er=G}; g.W.gW=function(){var G=JY.prototype.gW.call(this);G.rbw=this.zU();G.rbe=+this.Qb;G.gbe=+this.HS;G.ackt=(this.Er-this.j).toFixed();return G}; g.W.dX=function(){}; g.W.xC=function(){return NaN}; g.W.kV=function(){return this.j+this.snapshot.delay*1E3};OG.prototype.eI=function(G,B){B.getLength();switch(G){case 20:G=new H7(B);G={ly:SD(G,1),videoId:rH(G,2),itag:SD(G,3),lmt:SD(G,4),xtags:rH(G,5),Bc:SD(G,6),Cc:R3(G,8),Sh:SD(G,9),Yon:SD(G,10),startMs:SD(G,11),durationMs:SD(G,12),CL:SD(G,14),timeRange:$y(G,15,PEV),FQ:SD(G,16),fY:SD(G,17),clipId:rH(G,1E3)};this.iQ(G);break;case 21:this.Gc(B,!1);break;case 22:this.Cu(B);break;case 31:G=uX(B,cmK);this.mC(G);break;case 52:G=uX(B,rmX);this.n8(G);break;default:this.zc(G,B)}}; OG.prototype.iQ=function(){}; OG.prototype.zc=function(){};g.t(EG,OG);g.W=EG.prototype; g.W.zc=function(G,B){B.getLength();switch(G){case 35:this.yf(B);break;case 44:this.tP(B);break;case 43:this.Ah(B);break;case 53:this.Tc(B);break;case 55:G=new H7(B);(G={timeline:$y(G,1,u0V),nab:$y(G,2,TJK)},G.timeline)&&G.timeline.Ql&&this.yW.uQ(G.timeline.Ql,G.timeline.AAd,G.nab);break;case 56:this.WI();break;case 57:this.JE(B);break;case 42:this.cJ(B);break;case 45:this.cB(B);break;case 59:this.JP(B);break;case 51:this.KO(B);break;case 49:this.I7(B);break;case 50:this.AP(B);break;case 47:this.Ek(B); break;case 58:this.CX(B);break;case 61:this.yW.vn.yY((0,g.yT)());break;case 66:this.pF(B);break;case 46:this.Sp(B);break;case 67:this.onSnackbarMessage(B)}}; g.W.KO=function(G){G=new H7(G);G={JuL:qv(G,1,iD),WDn:qv(G,2,iD)};this.yW.KO(G)}; g.W.JP=function(G){var B=new H7(G);G=X9(B,1);var a=X9(B,2);B=X9(B,3);this.yW.JP(G,a,B)}; g.W.cB=function(G){G=Mz(new H7(G));this.yW.cB(G)}; g.W.Ek=function(G){G=uX(G,Hfx);this.yW.Ek(G)}; g.W.cJ=function(G){G=new H7(G);G={videoId:rH(G,1),formatId:$y(G,2,iD),endTimeMs:SD(G,3),c71:SD(G,4),mimeType:rH(G,5),dh:$y(G,6,Uuc),indexRange:$y(G,7,Uuc),B1:$y(G,8,OfV)};this.yW.cJ(G)}; g.W.JE=function(G){G=TJK(new H7(G));this.yW.JE(G)}; g.W.WI=function(){this.yW.WI()}; g.W.yf=function(G){G=nuH(new H7(G));this.yW.yf(G)}; g.W.Tc=function(G){G=ZfA(new H7(G));this.yW.Tc(G)}; g.W.tP=function(G){G=Xjx(new H7(G));this.yW.tP(G)}; g.W.Ah=function(G){G={redirectUrl:rH(new H7(G),1)};this.yW.Ah(G)}; g.W.Gc=function(G){var B=G.getUint8(0);if(G.getLength()!==1){G=G.split(1).v3;var a=this.X[B]||null;a&&HT(this.yW.oy,B,a,G)}}; g.W.Cu=function(G){G=G.getUint8(0);var B=this.X[G]||null;B&&this.yW.Cu(G,B)}; g.W.n8=function(G){this.yW.n8(G)}; g.W.iQ=function(G){var B=G.ly,a=G.Cc,V=G.Bc,x=G.fY,h=G.FQ,e=G.Sh,w=G.startMs,K=G.durationMs,l=G.timeRange,k=G.CL,N=G.clipId,d=jE(G);G=POs.has(L1[""+G.itag]);this.X[B]=d;this.yW.X4(d,G,{ly:B,Cc:!!a,Bc:V!=null?V:-1,Sh:e!=null?e:-1,startMs:w!=null?w:-1,durationMs:K!=null?K:-1,CL:k,fY:x,FQ:h,clipId:N,timeRange:l})}; g.W.I7=function(G){G={Xl:SD(new H7(G),1)};this.yW.I7(G)}; g.W.AP=function(G){G={Xl:SD(new H7(G),1)};this.yW.AP(G)}; g.W.mC=function(G){this.yW.mC(G)}; g.W.CX=function(G){G=dux(new H7(G));this.yW.CX(G)}; g.W.pF=function(G){G={Bd:$y(new H7(G),1,Sfb)};this.yW.pF(G)}; g.W.onSnackbarMessage=function(G){G=SD(new H7(G),1);this.yW.onSnackbarMessage(G)}; g.W.Sp=function(G){G={reloadPlaybackParams:$y(new H7(G),1,NJg)};this.yW.Sp(G)};g.t(jZ,g.r);g.W=jZ.prototype;g.W.yI=function(){return Array.from(this.Kd.keys())}; g.W.kZ=function(G){G=this.Kd.get(G);var B=G.Ov;G.er+=B.getLength();G.Ov=new mN;return B}; g.W.HG=function(G){return this.Kd.get(G).HG}; g.W.tV=function(G){return this.Kd.get(G).tV}; g.W.X4=function(G,B,a,V){this.Kd.get(G)||BVB(this,G,B);B=this.Kd.get(G);if(this.hX){G=VEB(this,G,a);if(V)for(var x=g.m(G),h=x.next();!h.done;h=x.next()){h=h.value;var e=V;h.Y=e;h.startTime+=e;h.Sn+=e;h.K3+=e}auB(this,a.ly,B,G)}else a.Cc?B.Ri=a.CL:B.Fj.push(a),B.uw.push(a)}; g.W.t2=function(G){var B;return((B=this.Kd.get(G))==null?void 0:B.nN)||[]}; g.W.U0=function(){for(var G=g.m(this.Kd.values()),B=G.next();!B.done;B=G.next())B=B.value,B.XR&&(B.OA&&B.OA(),B.XR=!1)}; g.W.Cu=function(G,B){this.logger.debug(function(){return"[onMediaEnd] formatId: "+B}); var a=this.Kd.get(B);if(bw){if(a&&!a.HG){if(a.OS.get(G))a.OS.get(G).xS=!0;else{var V;((V=this.NQ)==null?0:V.w7)&&a.OS.set(G,{data:new mN,Al:0,xS:!0})}a.tV=!0}}else a&&!a.tV&&(a.tV=!0)}; g.W.ye=function(G){if(bw){var B=this.Kd.get(G);if(B)for(var a=g.m(B.OS),V=a.next();!V.done;V=a.next()){var x=g.m(V.value);V=x.next().value;x=x.next().value;var h=B.p$.get(V);if(vs(h[0])){if(!x.xS)continue;var e=h,w=x.data;w.getLength();h=0;var K=[];e=g.m(e);for(var l=e.next();!l.done;l=e.next()){l=l.value;var k=l.C,N=gH(w,h,k);h+=k;K.push(new Ps(l,N))}B.RI.push.apply(B.RI,g.U(K))}else if(x.data.getLength()>0||!h[0].range&&x.xS)w=void 0,h=h[0],K=x.Al,e=x.data,h.range||(w=x.xS),l=e.getLength(),w=new Ps(Wqx(h, h.X+K,l,w),e),x.Al+=w.info.C,B.RI.push(w);B.OS.get(V).data=new mN;x.xS&&B.OS.delete(V)}G=this.Kd.get(G);if(!G)return[];B=G.RI;G.RI=[];a=g.m(B);for(V=a.next();!V.done;V=a.next())G.er+=V.value.info.C;return B||[]}a=(B=this.Kd.get(G))==null?void 0:B.Av;if(!a)return[];this.MP(G,a);return a.ye()}; g.W.Fr=function(G){if(bw)return fL(this,G);var B,a,V;return!!((a=(B=this.Kd.get(G))==null?void 0:B.Av)==null?0:(V=a.pO())==null?0:V.length)||fL(this,G)}; g.W.MP=function(G,B){for(;fL(this,G);){var a=this.kZ(G);var V=G;V=this.Kd.get(V).HG&&!nL(this,V);WT(B,a,V&&Gcy(this,G))}}; g.W.yb=function(){g.r.prototype.yb.call(this);for(var G=g.m(this.Kd.keys()),B=G.next();!B.done;B=G.next())yr(this,B.value);var a;if((a=this.NQ)==null?0:a.Zr)for(G=g.m(this.Kd.values()),B=G.next();!B.done;B=G.next())B=B.value,B.OS.clear(),B.p$.clear(),B.RI.length=0,B.nN.length=0,B.uw.length=0,B.Fj.length=0;this.Kd.clear()}; var bw=!1;g.t(vT,g.r);g.W=vT.prototype;g.W.Po=function(){!this.TH()&&this.xhr&&(this.MP(!1),YJ(this.yW,this))}; g.W.cq=function(){}; g.W.sC=function(){if(!this.TH()&&this.xhr){var G=this.SA();G===5?kY(this.Ay):this.g7(G);this.Ay.X.stop();var B;(B=this.f$)==null||B.stop()}}; g.W.SA=function(){var G="";d6(this.Ay,this.xhr)&&(G=OTK(this.Ay,this.xhr));if(G)return this.info.kD.Ey(this.sx,G),3;this.MP(!0);if(Nj(this.Ay,this.xhr.status,this.xhr.aI(),this.info.LF(),this.Us))return 5;if(this.AZ)return 3;pUb(this.Ay,this.xhr.uC(),0,this.LF());this.policy.S_&&JCc(this.yW);return 4}; g.W.MP=function(G){var B=this.xhr;if((G||!d6(this.Ay,this.xhr))&&B.Ph()){G=B.C2();var a=G.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+a}); this.H3.feed(G)}}; g.W.eI=function(G,B){this.xhr.KX()&&G===21&&Wf9(this);this.BV.eI(G,B)}; g.W.aC=function(G,B,a,V){a||(this.vn.aC(V),this.policy.HP&&G===21&&Wf9(this));if(G!==21)return!1;this.vn.zH=!0;G=B.getLength();a||(this.Ni=B.getUint8(0),B=B.split(1).v3);var x=this.policy.vj,h=this.BV.X[this.Ni],e=this.hX.C.get(h);if(x&&e&&(x*=e.info.NB,G+a!==V&&G0){this.policy.Lk&&this.Ay.X.stop();G=this.vn.bb();B=this.vn.zU();var a=wsg(this,G);if(!(B>a.XY||a.J0>0&&this.info.ll()>a.J0)){this.k8=(0,g.yT)();var V;(V=this.f$)==null||V.stop();this.policy.S_&&(V=this.yW,G={OI:Math.round(B*G/1E3),R6:G},V.policy.S_&&(V.Zx=G,V.iX++));this.UJ()}}}}; g.W.UJ=function(){this.Ay.UJ()}; g.W.tP=function(G){this.yW.tP(G,this.Ea())}; g.W.Ah=function(G){this.AZ=!0;this.info.kD.Ey(this.sx,G.redirectUrl)}; g.W.I7=function(G){this.vn instanceof UG&&this.vn.I7(G)}; g.W.AP=function(G){this.vn instanceof UG&&this.vn.AP(G)}; g.W.uQ=function(G,B,a){this.yW.uQ(G,B,a,this.Ea())}; g.W.cJ=function(G){var B=G.formatId,a=jE({itag:B.itag,lmt:B.lmt,xtags:B.xtags}),V,x,h=new yU(((V=G.dh)==null?void 0:V.first)||0,((x=G.dh)==null?void 0:x.tq)||0),e,w;V=new yU(((e=G.indexRange)==null?void 0:e.first)||0,((w=G.indexRange)==null?void 0:w.tq)||0);if(!this.hX.C.get(a)){a=G.B1||{};if(this.policy.t7){var K,l;G=(K=G.mimeType)!=null?K:"";K=(l=B.itag)!=null?l:0;l=L1[""+K];a.mimeType=l!=="9"&&l!=="9h"?G:'video/webm; codecs="'+["vp09",l==="9h"?"02":"00","51",l==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else a.mimeType=G.mimeType;a.itag=B.itag;a.lastModified=""+(B.lmt||0);a.xtags=B.xtags;B=this.hX;l=tA("");K=Cw(a,null);wX(B,new hA(l,K,h,V))}}; g.W.cB=function(G){this.yW.cB(G)}; g.W.onSnackbarMessage=function(G){if(this.policy.pm)this.yW.onSnackbarMessage(G)}; g.W.mC=function(G){this.M3=G;this.Vp=(0,g.yT)();this.yW.mC(G)}; g.W.JP=function(G,B,a){this.yW.JP(G,B,a)}; g.W.JE=function(G){G.scope===2&&(this.gaf=G);this.yW.JE(G)}; g.W.WI=function(){this.Qz=!0;this.yW.WI()}; g.W.KO=function(G){this.policy.L3&&this.yW.KO(G)}; g.W.Ek=function(G){this.yW.Ek(G,this.Ea())}; g.W.CX=function(G){G.A7===3&&(this.Us=!0);this.yW.CX(G)}; g.W.pF=function(G){this.yW.pF(G)}; g.W.Sp=function(G){this.yW.Sp(G)}; g.W.canRetry=function(){this.TH();return this.Ay.canRetry(!1)}; g.W.dispose=function(){if(!this.TH()){g.r.prototype.dispose.call(this);this.Ay.dispose();var G;(G=this.f$)==null||G.dispose();this.g7(-1);this.I6()}}; g.W.g7=function(G){this.state=G;YJ(this.yW,this)}; g.W.LF=function(){return this.info.LF()}; g.W.H4=function(){return this.Qz}; g.W.yG=function(){return this.gaf}; g.W.X4=function(G,B,a){a.clipId&&(this.clipId=a.clipId);this.policy.B&&!B&&(this.qL=a.Sh,this.LX=a.startMs);var V=0;this.policy.M9&&this.GN&&this.clipId&&(V=Sj(this.GN,this.clipId)/1E3);this.oy.X4(G,B,a,V);this.policy.T2&&this.M3&&this.vn instanceof ip&&(V=this.M3.fm,this.vn.X4(a.durationMs/1E3,B,V>0&&a.Sh+1>=V));this.oy.Kd.get(G).ME=!0}; g.W.Cu=function(G,B){this.oy.Cu(G,B)}; g.W.n8=function(G){this.requestIdentifier=G}; g.W.ye=function(G){return this.oy.ye(G)}; g.W.t2=function(G){return this.oy.t2(G)}; g.W.Fr=function(G){return this.oy.Fr(G)}; g.W.yI=function(){return this.oy.yI()}; g.W.Tg=function(){return 1}; g.W.Ea=function(){return this.vn.requestNumber}; g.W.Xe=function(){return this.requestIdentifier}; g.W.n9=function(){return this.clipId}; g.W.Ex=function(){return this.sx.Ex()}; g.W.qN=function(){this.I6()}; g.W.I6=function(){this.vn.deactivate();var G;(G=this.xhr)==null||G.abort()}; g.W.isComplete=function(){return this.state>=3}; g.W.Sw=function(){return this.state===3}; g.W.Vm=function(){return this.state===5}; g.W.hq=function(){return this.state===4}; g.W.WH=function(){return this.isComplete()}; g.W.Em=function(){return this.state>=1}; g.W.RC=function(){return this.policy.fd?this.Ay.RC():0}; g.W.TU=function(){this.policy.fd&&YJ(this.yW,this)}; g.W.fp=function(){return bIB(this.info)}; g.W.Vk=function(){return this.Ay.Vk()}; g.W.A2=function(){var G=EhX(this.Ay);Object.assign(G,c3c(this.info));G.req="sabr";G.rn=this.Ea();var B;if((B=this.xhr)==null?0:B.status)G.rc=this.policy.sM?this.xhr.status:this.xhr.status.toString();var a;(B=(a=this.xhr)==null?void 0:a.Qd())&&(G.msg=B);this.k8&&(a=wsg(this,this.k8-this.vn.Z8()),G.letm=a.QtH,G.mrbps=a.XY,G.mram=a.J0);return G}; g.W.bk=function(){return{qL:this.qL,LX:this.LX,isDecorated:this.info.isDecorated()}};KfX.prototype.tick=function(G,B){this.ticks[G]=B?window.performance.timing.navigationStart+B:(0,g.yT)()};g.t(SZ,g.wI);g.W=SZ.prototype; g.W.tj=function(G,B,a,V){var x=!1;this.policy.MB&&(x=a?this.GH===G.AX:this.HS===G.AX);if(this.L&&V&&!x){V=[];x=[];var h=[],e=void 0,w=0;B&&(V=B.j,x=B.X,h=B.C,e=B.G,w=B.Io,this.FJ("sdai",{sq:G.AX,ssvicpns:V.join("."),ssvid:x.join(".")}));this.policy.MB&&(a?this.GH=G.AX:this.HS=G.AX);this.L.tE(G.AX,G.startTime,this.X,V,x,h,a,w,e)}if(this.policy.MB){if(a||this.policy.Ru){this.X===1&&ZT(this,5,"noad");var K;G.AX!==((K=this.j)==null?void 0:K.AX)&&(UCV(this,G,B,a),isNaN(G.startTime)||r6(this,G.AX,qj(this, G.startTime,G.AX),!!B,this.L))}}else a&&UCV(this,G,B)}; g.W.f_=function(G,B,a){var V=this.videoTrack.j.index.MQ()<=B;this.j={sA:G,AX:B,Zw:a};V&&Ro(this,G,B)}; g.W.QT=function(){this.L&&this.L.QT()}; g.W.FJ=function(G,B,a){(G!=="sdai"||this.policy.UD||(a===void 0?0:a))&&this.CN.FJ(G,B)}; g.W.H6=function(G,B){var a=this.videoTrack.j.index.nR(G);if(a>=0){var V;var x=((V=B.EZ.IN(a,2))==null?void 0:V.FF)||"";if(this.policy.B||x)return B.Z5(G,a),$Y(this.CN,G,G,a),this.FJ("sdai",{cmskpad:1,t:G.toFixed(3),sq:a}),!0}this.FJ("sdai",{cmskpad:0,t:G.toFixed(3),sq:a});return!1};g.t(TS,g.r);TS.prototype.xv=function(G,B,a){a=a===void 0?{}:a;this.policy.W0=fw(G,a,this.G,B===void 0?!1:B)};YY.prototype.hj=function(G){var B=this;if(this.policy.wZ){var a=new Set(G);a.size===this.Zx.size&&[].concat(g.U(a)).every(function(V){return B.Zx.has(V)})||(this.CN.FJ("lwnmow",{itagDenylist:[].concat(g.U(G)).join(",")}),this.CN.N1(!!a.size),this.Y=-1,this.Zx=a,iw(this,this.j),this.SJ=!0)}}; YY.prototype.xv=function(G,B,a){a=a===void 0?{}:a;var V=this.policy.W0;this.B.xv(G,B===void 0?!1:B,a);if(V!==this.policy.W0){iw(this,this.j);PT(this);var x,h;V>this.policy.W0&&((x=this.C)==null?0:AX(x.info))&&((h=this.nextVideo)==null||!AX(h.info))&&(this.zH=!0)}};B6.prototype.rV=function(G){this.timestampOffset=G;this.flush()}; B6.prototype.flush=function(){if(this.j.pos>0){var G={a:this.track.zz(),u:this.j.Ft(),pd:Math.round(this.G),ad:Math.round(this.C)},B=this.X;if(B){var a=B.j.info;G.itag=a.itag;a.j&&(G.xtags=a.j);G.sq=B.AX;G.st=B.startTime;G.sd=B.duration;this.track.policy.Jn&&(G.si=B.cC());B.G&&(G.esl=B.X+B.C);B.Pr()&&(G.eos=1)}isNaN(this.timestampOffset)||(G.to=this.timestampOffset);var V;if(B=(V=this.track.Wf)==null?void 0:V.Nd({})){for(var x in B)this.L[x]!==B[x]&&(G["sb_"+x]=B[x]);this.L=B}this.track.FJ("sbu", G);this.j.reset();this.buffered=[];this.B=this.C=this.G=0;this.timestampOffset=this.X=void 0}};Va.prototype.dispose=function(){this.XJ=!0}; Va.prototype.TH=function(){return this.XJ}; g.t(Ku,Error);var yab=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);NL.prototype.skip=function(G){this.offset+=G}; NL.prototype.qP=function(){return this.offset};g.W=KwA.prototype;g.W.GJ=function(){return this.X}; g.W.Tn=function(){return this.X.length?this.X[this.X.length-1]:null}; g.W.lz=function(){this.X=[];m0(this);z6(this)}; g.W.kZ=function(G){this.qB=this.X.shift().info;G.info.Wx(this.qB)}; g.W.t2=function(){return g.br(this.X,function(G){return G.info})}; g.W.zz=function(){return!!this.L.info.audio}; g.W.getDuration=function(){return this.L.index.oH()};g.t(rR,GS);g.W=rR.prototype;g.W.onStateChange=function(){this.TH()&&(cT(this.oy,this.formatId),this.j.dispose())}; g.W.A2=function(){var G=MaA(this.oy,this.formatId),B;var a=((B=this.oy.Kd.get(this.formatId))==null?void 0:B.bytesReceived)||0;var V;B=((V=this.oy.Kd.get(this.formatId))==null?void 0:V.er)||0;return{expected:G,received:a,bytesShifted:B,sliceLength:nL(this.oy,this.formatId),isAnyMediaEndReceived:this.oy.tV(this.formatId)}}; g.W.eO=function(){return 0}; g.W.lA=function(){return!0}; g.W.ye=function(){return this.oy.ye(this.formatId)}; g.W.pO=function(){return[]}; g.W.Fr=function(){return this.oy.Fr(this.formatId)}; g.W.Vk=function(){return this.lastError}; g.W.RC=function(){return 0};g.t(UC,g.r);g.W=UC.prototype;g.W.zz=function(){return!!this.j.info.audio}; g.W.Tn=function(){return this.G.Tn()}; g.W.kZ=function(G){this.G.kZ(G);var B;(B=this.V)!=null&&(B.B.add(G.info.AX),B.j=ZhV(B,B.Pf,B.YJ,G,B.j),B.C=G,B.L=(0,g.yT)());this.NB=Math.max(this.NB,G.info.j.info.NB||0)}; g.W.getDuration=function(){if(this.policy.X){var G=this.CN.j6();if(G)return JG(G)}return this.j.index.oH()}; g.W.lz=function(){Xo(this);this.G.lz()}; g.W.DG=function(){return this.G}; g.W.isRequestPending=function(G){return this.C.length?G===this.C[this.C.length-1].info.nN[0].AX:!1}; g.W.rV=function(G){var B;(B=this.V)==null||B.rV(G);var a;(a=this.Y)==null||a.rV(G)}; g.W.FJ=function(G,B){this.CN.FJ(G,B)}; g.W.h2=function(){return this.CN.h2()}; g.W.dispose=function(){var G;(G=this.Y)==null||G.flush();g.r.prototype.dispose.call(this)};g.t(JT,g.r);JT.prototype.C=function(){this.X++>15||(this.j=!this.j,new GQK(this.CN,this.policy,this.Gt,this.kD,this.j),this.delay.start())}; g.W=GQK.prototype;g.W.cq=function(){}; g.W.Po=function(){}; g.W.sC=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.uC()===this.size)this.CN.FJ("rqs",this.getInfo());else{var G="net.connect";this.xhr.status>200?G="net.badstatus":this.xhr.LK()&&(G="net.closed");this.onError(G)}}; g.W.onError=function(G){var B=this;this.CN.handleError(G,this.getInfo());y8("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(a){B.CN.FJ("pathprobe",a)},function(a){B.CN.handleError(a.errorCode,a.details)})}; g.W.getInfo=function(){var G=this.timing.gW();G.shost=Oi(this.location.Fi);G.pb=this.size;return G};g.t(AT,g.r); AT.prototype.W=function(G,B){if(G.W){this.hX.isLive?(G=this.hX.Qg&&this.hX.G?G.j.KL(this.hX.Qg,!1):G.j.dK(Infinity),G.hA=this.hA):G=G.j.KL(0,!1);if(this.zH){var a=this.zH;G.hA===0&&(G.B=a.V)}else G.B=this.Y;return G}a=G.X;if(!a.j.tv())return a.j.P3()?(G=fP(this.B,G.j.info.NB,B.j.info.NB,0),G=a.j.K2(a,G)):G=a.j.PK(a),G;var V=a.K3-this.CN.getCurrentTime(),x=!a.range||a.C===0&&a.X===0?0:a.range.length-(a.X+a.C),h=a.j;this.zl(G,V)&&x===0&&(this.hX.isManifestless?h=G.j:(h=a.startTime+aa,a.C&&(h+=a.duration), Q8(G,h),a=G.X,h=a.j));h.P3()?(x=this.C,B=fP(this.B,h.info.NB,B.j.info.NB,V,x.G.length>0&&x.V===0&&this.CN.At),V=$M(G),G=a.j.K2(a,B),(B=G.C)&&G.nN.length>1&&(V||G.kD.X||G.nN[0].j!==a.j?G=a.j.K2(a,G.nN[0].C):(V=G.nN[G.nN.length-1],h=V.C/B,!V.G&&h<.4&&(G=a.j.K2(a,B-V.C))))):(a.AX<0&&(B=Zu(a),B.pr=""+G.C.length,this.CN.isSeeking()&&(B.sk="1"),B.snss=a.B,this.CN.FJ("nosq",B)),G=h.PK(a));if(this.policy.GH)for(a=g.m(G.nN),B=a.next();!B.done;B=a.next())B.value.type=6;return G}; AT.prototype.zl=function(G,B){if(!$M(G)||!G.j.tv())return!1;var a=this.C.SJ||rAK(G)||B<=this.policy.m1||this.C.zH;this.logger.debug(function(){return"ready to adapt: "+a+", upgrade pending: "+rAK(G)+", health: "+B}); return a}; AT.prototype.yb=function(){g.r.prototype.yb.call(this)}; var aa=2/24;g.t(V6,g.r);V6.prototype.Sj=function(G,B,a){var V;var x=((V=this.X)==null?void 0:V.reason)==="m"?"m":this.X&&C0x(this,this.X)?this.X.reason:"a";this.CN.Sj(new LL(G,x,a));Go(this.CN,B,G,!0)}; V6.prototype.hZ=function(G,B){for(var a=g.m(this.GH),V=a.next();!V.done;V=a.next())if(V=V.value,V.id===G)return this.NQ.AY||(this.C=[V]),this.L=this.hX.j[G],sC(this.NQ)&&(this.zH=!0),G=new LL(this.L,B?"t":"m"),this.NQ.MD&&B&&(this.B=!0),G;this.C=[];return null}; V6.prototype.xv=function(G,B,a){a=a===void 0?{}:a;this.j.xv(G,B===void 0?!1:B,a)};ed.prototype.setData=function(G,B,a,V){var x=this;V=V===void 0?{}:V;if(a==null?0:a.wO)this.ID=e0y(this,a,V),G.pZ=this.kD.pZ();if(this.LF())return!0;this.data=G;this.j=EFK(G,B,function(h,e){var w;(w=x.yW)==null||w.jE(h,e)},a==null?void 0:a.C); if(!this.j)return!1;this.X=g.Yy(this.j,muy);return!0}; ed.prototype.LF=function(){return this.requestType===1}; ed.prototype.ll=function(){var G;return((G=this.yW)==null?void 0:G.ll())||0}; ed.prototype.isDecorated=function(){var G;return!((G=this.data)==null||!G.yA)};WI.prototype.encrypt=function(G){this.Hn.exports.AES128CTRCipher_encrypt(this.cipher,G.byteOffset,G.byteLength);return G}; WI.prototype.TH=function(){return this.cipher===0}; WI.prototype.dispose=function(){this.Hn.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};wO.prototype.encrypt=function(G,B){return w2(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:B},this.key,G).catch(function(a){return Promise.reject(a.name+": "+a.message)}).then(function(a){return new Uint8Array(a)}))}; wO.prototype.TH=function(){return this.j}; wO.prototype.dispose=function(){this.j=!0}; bd.y6(wO,{encrypt:fBB("oan2")});KS.prototype.encrypt=function(G,B){mi(this.X,B);return w2(this.X.encrypt(G))}; KS.prototype.TH=function(){return this.j}; KS.prototype.dispose=function(){this.j=!0}; bd.y6(KS,{encrypt:fBB("oap")});lb.prototype.encrypt=function(G,B){var a=this.Hn.yQ(B),V=this.j;V.Hn.exports.AES128CTRCipher_setCounter(V.cipher,(a!=null?a:B).byteOffset);B=this.Hn.yQ(G);this.j.encrypt(B!=null?B:G);a&&this.Hn.free(a.byteOffset);return B?w2(this.Hn.w4(B)):w2(G)}; lb.prototype.TH=function(){return this.j.TH()}; lb.prototype.dispose=function(){this.j.dispose()}; bd.y6(lb,{encrypt:fBB("oalw")});kJ.prototype.encrypt=function(G,B){var a=this,V=lD("");G.length<=this.Ba&&this.j&&!this.G&&(V=Ch(V,function(){return a.j?a.j.encrypt(G,B):lD("wasm unavailable")})); G.length<=this.wg&&(this.j&&this.G&&(V=Ch(V,function(){return a.j?a.j.encrypt(G,B):lD("wasm unavailable")})),V=Ch(V,function(){return Dqy(a,G,B)})); return Ch(Ch(V,function(){return SbH(a,G,B)}),function(){return Dqy(a,G,B)})}; kJ.prototype.TH=function(){return this.B}; kJ.prototype.dispose=function(){this.B=!0;var G;(G=this.C)==null||d2(G,g.WW);g.WW(this.j);g.WW(this.X)};Ng.prototype.encrypt=function(G){(0,g.yT)();return(new h3(this.j.j)).encrypt(G,this.iv)}; Ng.prototype.decrypt=function(G,B){(0,g.yT)();return(new h3(this.j.j)).decrypt(G,B)}; Ng.prototype.TH=function(){return this.C}; Ng.prototype.dispose=function(){this.C=!0;g.WW(this.X)};g.t(dO,g.r);dO.prototype.C=function(G,B){if(B){B=B instanceof g.pT?B:CS(this,B);var a;((a=this.j.get(G))==null?void 0:Oi(a.location))!==Oi(B)&&this.j.set(G,new TGc(B,G))}else this.j.delete(G)}; dO.prototype.load=function(){var G=this,B,a,V,x,h,e,w,K,l,k;return g.v(function(N){switch(N.j){case 1:B=G.j.get(0);g.UA(N,2);var d;if(d=B&&!G.X)d=Oi(B.location),d=G.X===lw(d);if(d){N.kf(4);break}return g.f(N,Q$B(G,G.X?2:0),5);case 5:if(a=N.X)G.C(0,a),bH(a)&&G.C(1,yy(a));case 4:g.EA(N,3);break;case 2:V=g.jB(N);g.Zb(V);if(!G.X){N.kf(3);break}G.X=!1;return g.f(N,G.load(),7);case 7:return N.return();case 3:if(!G.md.experiments.Or("html5_onesie_probe_ec_hosts")){N.kf(0);break}g.UA(N,9);x=G;h=x.C;e=3;return g.f(N, Q$B(G,1),11);case 11:return h.call(x,e,N.X),w=G,K=w.C,l=4,g.f(N,Q$B(G,2),12);case 12:K.call(w,l,N.X);g.EA(N,0);break;case 9:k=g.jB(N),g.Zb(k),g.pV(N)}})}; dO.prototype.W=function(){var G=this,B,a;return g.v(function(V){g.iC(G.V);B=g.kf(G.md.experiments,"html5_onesie_prewarm_max_lact_ms");if(cD()>=B)return V.return();(a=G.j.get(0))&&u69(G,a);g.pV(V)})}; var XoK={kSb:0,Ihd:1,Lbr:2,UnJ:3,Gmb:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};s$B.prototype.decrypt=function(G){var B=this,a,V,x,h,e,w;return g.v(function(K){switch(K.j){case 1:if(B.j.length&&!B.j[0].isEncrypted)return K.return();B.X=!0;B.NP.o4("omd_s");a=new Uint8Array(16);pp()?V=new xF(G):x=new h3(G);case 2:if(!B.j.length||!B.j[0].isEncrypted){K.kf(4);break}h=B.j.shift();if(!V){e=x.decrypt(h.buffer.qo(),a);K.kf(5);break}return g.f(K,V.decrypt(h.buffer.qo(),a),6);case 6:e=K.X;case 5:w=e;for(var l=0;l=4)){var B=Q6(this),a=this.xhr;B.rc=a.status;G&&(B.ab=!0);if(a.Qd()){var V="onesie.net";B.msg=a.Qd()}else a.status>=400?V="onesie.net.badstatus":a.aI()?this.gI||(V="onesie.response.noplayerresponse"):V=a.status===204?"onesie.net.nocontent":"onesie.net.connect";V?this.yH(new yH(V,B)):(this.o4("or_fs"),this.vn.Ib((0,g.yT)(),a.uC(),0),this.g7(4),this.lC&&this.FJ("rqs",B));this.lC&&this.FJ("ombre", "ok."+ +!V);this.L$=!1;To(this);w_X(this.NP);if(!this.kc){this.Uk.stop();var x;(x=this.Un)==null||x.stop()}var h;if(G=(h=this.VE)==null?void 0:LGH(h))for(h=0;h1E3){var G;(G=this.vn)==null||G.i5((0,g.yT)());G=Q6(this);if(this.md.Ef()&&this.xhr instanceof BT){var B=this.xhr;G.xrs=B.xhr.readyState;G.xpb=B.j.getLength();G.xdc=B.G}this.yH(new yH("net.timeout",G))}}else(0,g.yT)()-this.vn.j>1E4&&((B=this.vn)==null||B.i5((0,g.yT)()),this.Aa());this.isComplete()||this.sL.start()}}; g.W.Aa=function(){this.logger.info("Onesie request timed out");this.L$=!1;if(!To(this)){var G=Q6(this);G.timeout="1";this.yH(new yH("onesie.request",G))}}; g.W.yH=function(G){var B=this;G=n1(G);this.cN?this.jJ.I0(G):(this.Sm.reject(G),this.cN=!0);w_X(this.NP);this.kc||this.Uk.stop();this.o4("or_fe");var a,V;(a=this.VE)==null||(V=LGH(a))==null||V.forEach(function(x){B.FJ("pathprobe",x)}); this.g7(5);this.dispose()}; g.W.isComplete=function(){return this.state>=3}; g.W.hq=function(){return this.state===4}; g.W.WH=function(G){var B,a;return this.isComplete()||!!((B=this.Tz)==null?0:(a=B.get(G))==null?0:a.j)}; g.W.Sw=function(){return!1}; g.W.Vm=function(){return this.state===5}; g.W.notifySubscribers=function(G){for(var B=0;B102400&&!this.bB&&(this.o4("or100k"),this.bB=!0);if(G.Ph()){var B=G.C2(),a=B.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+a}); this.lC&&this.FJ("ombrss","len."+a);this.H3.feed(B)}if(this.Tz)for(var V=g.m(this.Tz.keys()),x=V.next();!x.done;x=V.next()){var h=x.value;G=void 0;(G=this.Tz.get(h))==null||G.U0();this.notifySubscribers(h)}}catch(e){this.yH(e)}}; g.W.Ea=function(){return this.vn.requestNumber}; g.W.Xe=function(G){return this.dN.get(G)}; g.W.bk=function(){return{qL:this.qL,LX:this.LX,isDecorated:!1}};g.t(yCc,g.r);g.W=yCc.prototype;g.W.Fa=function(G,B){this.XJ=void 0;JCc(this);Ttg(this,G,B)}; g.W.j4=function(G){if(this.j.length===0)return!1;var B=this.j[0];return B instanceof LS?G===this.CN.getCurrentTime()*1E3:!(B instanceof vT&&y3_(B.info))&&Math.abs(B.fp()-G)<50}; g.W.yf=function(G){this.X=G;this.XJ=(0,g.yT)()+(G.backoffTimeMs||0)}; g.W.tP=function(G,B){if(G.action===void 0){var a=this.jJ.Zo();a!==void 0&&this.CN.aH(a)}else if(G.action!==0||!this.qB)switch(G.action===0&&this.policy.Qs&&(G.action=2),a={},a.reason=G.QyJ,a.action=G.action,a.rn=B,G.action){case 1:this.policy.B&&this.G&&this.G.GM(void 0,void 0,a);break;case 0:this.qB=!0;this.videoData.cn()&&this.policy.B&&this.G&&this.G.GM(void 0,void 0,a,!1);this.CN.XV(a);break;case 2:this.CN.handleError("sabr.config",a,1);break;case 5:mnc(this.jJ,!0);break;case 6:mnc(this.jJ,!1); break;case 3:this.policy.wO&&((G=this.hX.V)!=null&&(G.V=!0),this.CN.handleError("sabr.hostfallback",a))}}; g.W.uQ=function(G,B,a,V){if(this.policy.X){this.CN.FJ("ssap",{rn:V,v:B,tl:YyY(G)});var x=this.CN.j6();G={OY:G,context:a,version:B};s0_(this,a);x?F5g(this,x,G):(this.CN.FJ("ssap",{cacheclips:1,rn:V,v:B}),this.V=G)}}; g.W.JE=function(G){this.CN.FJ("ssap",{onsbrctxt:G.type,dflt:G.sendByDefault});s0_(this,G);this.jJ.JE(G)}; g.W.WI=function(){}; g.W.cB=function(G){if(G.hw!==void 0&&G.Wg){var B=G.hw/G.Wg;this.audioTrack.W=!1;this.videoTrack.W=!1;if(this.policy.XJ||this.policy.e$||this.policy.V0)this.CN.Fh.X=!1;this.CN.Cy(B,1);if(this.jJ.getCurrentTime()!==B){var a={Tt:"sabr_seek",Wo:!0,yn:!0};G.seekSource&&(a.seekSource=G.seekSource);sO(this.CN,B+.1,a)}}}; g.W.onSnackbarMessage=function(G){this.jJ.publish("onSnackbarMessage",G)}; g.W.mC=function(G){G.fm&&G.yw&&ET(this.hX,G.fm,G.yw);this.policy.TL&&(G.TN&&G.LB&&(this.hX.dW=G.TN/G.LB),G.vk&&G.ow&&(this.hX.G2=G.vk/G.ow));G.Ka!=null&&this.jJ.V1(G.Ka);this.policy.M4&&G.nU&&(G=((0,g.yT)()-G.nU)/1E3,this.CN.Fd.j$(1,G))}; g.W.CX=function(G){this.CN.CX(G)}; g.W.ZT=function(G){return this.w_.has(G)}; g.W.JP=function(G,B,a){this.policy.C&&this.CN.FJ("sabrctxtplc",{start:G?G.join("_"):"",stop:B?B.join("_"):"",discard:a?a.join("_"):""});if(G){G=g.m(G);for(var V=G.next();!V.done;V=G.next())this.w_.add(V.value)}if(B)for(B=g.m(B),G=B.next();!G.done;G=B.next())G=G.value,this.w_.has(G)&&this.w_.delete(G);if(a)for(a=g.m(a),B=a.next();!B.done;B=a.next())B=B.value,this.videoData.sabrContextUpdates.has(B)&&(this.videoData.sabrContextUpdates.delete(B),B===3&&(this.videoData.Q3=""))}; g.W.KO=function(){}; g.W.IE=function(G){this.L=G}; g.W.qh=function(G){this.Qb=G}; g.W.Ek=function(G,B){FW(this.policy,G,4,B)}; g.W.pF=function(G){if(G==null?0:G.Bd)if(G=G.Bd.PU){G=g.m(G);for(var B=G.next();!B.done;B=G.next())if(B=B.value,B.formatId){var a=this.hX.C.get(jE(B.formatId));a&&a.info&&(a.info.debugInfo=B.debugInfo)}}}; g.W.Sp=function(G){(G=G==null?void 0:G.reloadPlaybackParams)&&this.jJ.publish("reloadplayer",G)}; g.W.WD=function(){return this.jJ.WD()||""}; g.W.ll=function(){var G=v6(this.audioTrack,!0)*1E3,B=v6(this.videoTrack,!0)*1E3;return Math.min(G,B)}; g.W.jE=function(G,B){this.CN.FJ(G,B)}; g.W.Jp=function(G){tOz(this.CN,rB_(this.Ur,G))}; g.W.yb=function(){g.r.prototype.yb.call(this);this.X=void 0;Ttg(this,!0,"i");this.j=[]};PlK.prototype.Bn=function(G,B){if(this.G)return aw9(this,B);if(B=Fo(G)){var a=B.X;a&&a.C&&a.j&&(G=G.C.length?G.C[0]:null)&&G.state>=2&&!G.Vm()&&G.info.hA===0&&(this.G=G,this.W=a,this.X=B.info,this.L=this.startTimeSecs=Date.now()/1E3,this.B=this.X.startTime)}return NaN}; PlK.prototype.clear=function(){this.X=this.W=this.G=null;this.j=this.B=this.L=this.startTimeSecs=NaN;this.C=!1};g.t(g.Mg,g.r);g.W=g.Mg.prototype;g.W.initialize=function(G,B,a){this.logger.debug(function(){return"Initialized, t="+G}); G=G||0;this.policy.j||(B=XsY(this.j),gXB(this.jJ,new LL(B.video,B.reason)),this.jJ.WF(new LL(B.audio,B.reason)));this.hX.isManifestless&&KGV(this.B);this.W&&MtH(this.W,this.videoTrack.j);B=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var V=!this.hX.isManifestless;this.policy.Wy&&(V=V||this.hX.Ai);this.policy.Zx||(this.currentTime=V?G:B);this.policy.XJ&&this.seek(this.getCurrentTime(),{}).yC(function(){}); if(this.policy.j){var x;((x=this.zH)==null?0:b$y(x,this.WD()||""))&&WBb(this)&&eiV(this,this.videoTrack)&&eiV(this,this.audioTrack)&&(ACB(this.C,this.zH),this.policy.L&&hi_(this))}else this.XJ&&(wFz(this,this.videoTrack),wFz(this,this.audioTrack),ohK(this.XJ),delete this.XJ);a?(this.policy.Ki?(this.QW=a,BQ(this,a)):BQ(this,!1),g.iC(this.J3)):(a=this.getCurrentTime()===0,P6(this.B,this.videoTrack,this.videoTrack.j,a),P6(this.B,this.audioTrack,this.audioTrack.j,a),this.policy.j&&fDA(this.C,!0),this.policy.XJ|| this.seek(this.getCurrentTime(),{}).yC(function(){}),this.timing.tick("gv")); (this.hX.Qg||this.hX.SK||this.hX.Qb||this.hX.YD||this.hX.fd)&&this.jJ.rp(this.hX)}; g.W.resume=function(){if(this.isSuspended||this.At){this.logger.debug("Resumed.");this.eD=this.At=this.isSuspended=!1;try{this.Bn()}catch(G){g.RA(G)}}}; g.W.qM=function(){return!this.policy.dC}; g.W.d8=function(G,B){G=G===void 0?!1:G;B=B===void 0?!1:B;this.logger.debug("detaching media source");NBc(this);this.jJ.ZU()&&(this.L=NaN);G?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.LN&&this.FJ("loader",{setsmb:1}),this.policy.GH=!0,this.lz()):(this.policy.Ki?BQ(this,this.QW):BQ(this,!1),B||this.lz())}; g.W.setAudioTrack=function(G,B,a){a=a===void 0?!1:a;if(!this.TH()){var V=!isNaN(B);a&&V&&(this.audioTrack.XJ=Date.now(),this.policy.IG&&(this.MB=!0));if(this.policy.j){var x=this.X.hZ(G.id,V);this.logger.debug(function(){return"Logging new audio format: "+x.j.info.id}); this.jJ.WF(x)}else{var h=ZEH(this.j,G.id,V);this.logger.debug(function(){return"Logging new audio format: "+h.audio.info.id}); this.jJ.WF(new LL(h.audio,h.reason))}if(V&&(a=this.audioTrack.j.index.nR(B),this.FJ("setAudio",{id:G.id,cmt:B,sq:a}),a>=0)){this.policy.j&&(this.policy.MD||(this.X.B=!0),this.Fa(!0,"mosaic"));DK(this.audioTrack,a,NaN,NaN);!this.policy.xF&&this.hX.isLive&&OT(this.hX,a,!1);return}this.jJ.AN()}}; g.W.setPlaybackRate=function(G){G!==this.Y.getPlaybackRate()&&this.Y.setPlaybackRate(G)}; g.W.Kv=function(G){var B=this.C.L;this.C.IE(G);this.FJ("scfidc",{curr:jE(B),"new":jE(G)});G&&jE(G)!==jE(B)&&(this.Fa(!1,"caption change"),this.Bn())}; g.W.EX=function(G){this.C.qh(G)}; g.W.Sj=function(G){var B=G.j.info.zz();this.logger.debug(function(){return"New "+(B?"audio":"video")+" format from SABR: "+xb(G.j.info)}); B?this.jJ.WF(G):gXB(this.jJ,G)}; g.W.Jp=function(G){Du(G.nN[G.nN.length-1])&&tOz(this,rB_(this.j,G.nN[0].j))}; g.W.m7=function(){return this.jJ.m7()}; g.W.Ko=function(){return this.jJ.Ko()}; g.W.CX=function(G){this.jJ.U().Ef()&&this.FJ("sps",{status:G.A7||""});if(G.A7===1)this.jJ.videoData.dZ=0;else if(G.A7===2||G.A7===3){var B=!1;if(G.A7===3){B=this.jJ.ZD();var a;this.Cd=(a=G.SAx)!=null?a:Infinity;this.jJ.videoData.dZ=B+1;(B=BI(this))&&this.rb(!0)}this.jJ.hh(!0,B)}}; g.W.w8=function(){return this.jJ.w8()}; g.W.fM=function(){return this.jJ.fM()}; g.W.EQ=function(G){this.jJ.EQ(G)}; g.W.cvJ=function(){var G,B=(G=this.jJ.Zc())==null?void 0:G.getCurrentTime();B?this.jJ.FJ("rms",{cta:B}):g.iC(this.YD)}; g.W.Bn=function(){ziy(this);if(this.tX&&gZ(this.tX)&&!this.tX.IY()&&(!this.policy.Zx||isFinite(this.getCurrentTime()))){var G=EC(this.videoTrack);G=this.policy.BK&&G&&G.Pr();this.hX.isManifestless&&this.hX.G&&IW(this.hX)?(this.L=IW(this.hX),this.tX.Qf(this.L)):j2(this.hX)&&!G?isNaN(this.L)?(this.L=this.getCurrentTime()+3600,this.tX.Qf(this.L)):this.L<=this.getCurrentTime()+1800&&(this.L=Math.max(this.L+1800,this.getCurrentTime()+3600),this.tX.Qf(this.L)):this.tX.isView||(G=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.L)||this.L!==G)&&G>0&&(this.tX.Qf(G),this.L=G))}if(!this.TH())if(mw(this.hX)&&this.hX.Vm()){var B=this.hX;this.handleError("manifest.net.retryexhausted",B.MB?{rc:B.Mq}:{rc:B.Mq.toString()},1)}else if(this.policy.j)a:{try{uR_(this.C);this.hX.isManifestless&&this.policy.L&&LP(this.Fh);if(kCx(this)&&this.tX&&!Jj(this.tX)&&this.videoTrack.SJ&&this.audioTrack.SJ){this.FJ("ssap",{delaysb:1,v:this.videoTrack.j.info.id,vf:this.videoTrack.j.info.PS,a:this.audioTrack.j.info.id, af:this.audioTrack.j.info.PS});var a=this.tX,V=this.videoTrack.j,x=this.audioTrack.j;!Jj(a)&&x&&V&&(HYx(a,V.info,x.info,this.policy.wc),dJB(this,a))}var h;((h=this.tX)==null?0:Jj(h))&&this.yU();this.policy.j||Gh(this);fDA(this.C)}catch(w){g.Zb(w);B=w;if(B.message.includes("changeType")){this.FJ("ssap",{exp:B.name,msg:B.message,s:B.stack});break a}this.handleError("fmt.unplayable",{exp:B.name,msg:B.message,s:B.stack},1)}$Jg(this);g.iC(this.Er)}else if(!this.hX.X||!qT9(this.videoTrack)&&!qT9(this.audioTrack)|| (this.videoTrack.B||this.audioTrack.B)&&this.policy.QW?a=!1:(this.lz(),this.jJ.seekTo(Infinity,{Tt:"checkLoaderTracksSync",Cy:!0}),a=!0),!a){ziy(this);this.hX.isManifestless&&(uBg(this.videoTrack),uBg(this.audioTrack),LP(this.Fh),(a=Fo(this.videoTrack))&&a.X&&(a=a.X.C&&!this.policy.S9,this.FJ(a===this.policy.V.TF?"strm":"strmbug",{strm:a,sfmp4:this.policy.V.TF,dfs:this.policy.S9},!0)));if(this.tX)this.yU();else if(this.policy.G){var e;a=!1;if(this.policy.rZ)for(V=g.m([this.videoTrack,this.audioTrack]), x=V.next();!x.done;x=V.next()){h=x.value;for(x=Fo(h);x&&h.Tn()!==EC(h);x=Fo(h))h.kZ(x);a=a||!!x}else(B=Fo(this.videoTrack))&&this.videoTrack.kZ(B),(e=Fo(this.audioTrack))&&this.audioTrack.kZ(e);nu(this.videoTrack)&&nu(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(B||e||a)&&AG(this)}Gh(this);P6(this.B,this.videoTrack,this.videoTrack.j,!1);P6(this.B,this.audioTrack,this.audioTrack.j,!1);this.policy.TY||Iwx(this,this.videoTrack,this.audioTrack);VNz(this.B,this.videoTrack, this.audioTrack);VNz(this.B,this.audioTrack,this.videoTrack);$Jg(this);this.W&&(B=this.W,B.G?(e=B.L+B.policy.eM,B.C||(e=Math.min(e,B.startTimeSecs+B.policy.hY)),B=Math.max(0,e*1E3-Date.now())):B=NaN,isNaN(B)||g.iC(this.fd,B));g.iC(this.Er)}}; g.W.XV=function(G){this.jJ.XV(G)}; g.W.yU=function(){var G=this;if(this.tX){var B=this.tX.j,a=this.tX.X;LBB(this,this.audioTrack);LBB(this,this.videoTrack);var V=UJY(this);if(V){if(this.policy.Ku){if(!B.Hl()){var x=Fo(this.audioTrack);if(x){if(!oD(this,this.audioTrack,B,x.info))return;jSz(this,this.audioTrack,B,x)}}if(!a.Hl()&&(x=Fo(this.videoTrack))){if(!oD(this,this.videoTrack,a,x.info))return;jSz(this,this.videoTrack,a,x)}}this.Xz||(this.Xz=(0,g.yT)(),this.logger.debug(function(){return"Appends pause start "+G.Xz+" reason "+V}), this.policy.C&&this.FJ("apdps",{r:V}))}else if(this.Xz&&(pFg(this,this.Xz),this.Xz=0),O9b(this),x=!1,this.policy.X&&uU(this.videoTrack)||!fwb(this,this.videoTrack,a)||(x=!0,NVH(this.timing),tEx(this.timing)),this.tX&&!this.tX.HG()&&(this.policy.X&&uU(this.audioTrack)||!fwb(this,this.audioTrack,B)||(x=!0,dCy(this.timing),mCY(this.timing)),!this.TH()&&this.tX)){if(!this.policy.dC&&nu(this.videoTrack)&&nu(this.audioTrack)&&gZ(this.tX)&&!this.tX.IY()){a=!1; a=EC(this.audioTrack);if(this.policy.X){var h;B=(h=this.F5)==null?void 0:Rg(h,a.Sn*1E3);a=!(!B||B.clipId!==a.clipId);this.FJ("ssap",{eos:a})}else h=a.j,a=h===this.hX.j[h.info.id];a&&(this.logger.debug("Setting EOS"),vNV(this.tX),inA(this.schedule))}x&&!this.tX.isAsync()&&AG(this)}}}; g.W.Le=function(G){var B,a=G===((B=this.tX)==null?void 0:B.j)?this.audioTrack:this.videoTrack,V;(V=a.Zx)==null||V.stop();var x;if((x=Fo(a))==null?0:x.isLocked){if(this.jJ.U().Ef()){var h;this.FJ("eosl",{ounlock:(h=Fo(a))==null?void 0:h.info.cC()})}var e;Z99(this,G===((e=this.tX)==null?void 0:e.j))}var w;if(this.policy.IG&&G===((w=this.tX)==null?void 0:w.j)&&this.Vb){B=this.Vb-this.getCurrentTime();var K;this.jJ.FJ("asl",{l:B,xtag:(K=EC(this.audioTrack))==null?void 0:K.j.info.j});this.MB=!1;this.Vb= 0}G.pG()&&G.Ms().length===0&&(G.jt(),this.tX&&!this.tX.pG()&&(this.jJ.U().Ef()&&this.jJ.FJ("rms",{ld:"seek"}),this.tX.L=performance.now(),this.jJ.Ll(),this.jJ.U().Ef()&&g.iC(this.YD)));var l;(l=a.Y)!=null&&aj(l,0);this.policy.Dx&&this.policy.Se&&this.tX&&(a=G.e2())&&a.Pr()&&!wZ(G.Ms(),Math.min(a.Sn+aa,a.K3))&&this.FJ("sbunb",{st:a.Sn,et:a.K3});this.policy.Cd?ML(this):this.Bn()}; g.W.Zd1=function(G){if(this.tX){var B=EC(G===this.tX.j?this.audioTrack:this.videoTrack);if(G=G.CA())for(var a=0;a5&&G.zH.shift();B=B.AX;var V;this.policy.YD&&((V=this.jJ.getVideoData())==null?0:V.enableServerStitchedDai)&&(V=AA9(this.audioTrack,B),a=AA9(this.videoTrack,B),V!==0&&a!==0&&V!==a&&this.handleError("ssdai.avsync",{sq:B,a:V,v:a},0))}}; g.W.f_=function(G,B,a,V){G.info.video&&this.G.f_(B,a,V)}; g.W.hj=function(G){this.j.hj(G)}; g.W.Hd=ay(20);g.W.hg=function(G){this.F5=G;var B;(B=this.audioTrack.V)!=null&&(B.EZ=G);(B=this.videoTrack.V)!=null&&(B.EZ=G);B=this.C;B.V&&(B.CN.FJ("ssap",{addcacheclips:1,v:B.V.version,tl:YyY(B.V.OY)}),F5g(B,G,B.V),B.V=void 0)}; g.W.j6=function(){return this.F5}; g.W.qa=function(){return this.videoTrack.W||this.audioTrack.W}; g.W.seek=function(G,B){if(this.TH())return Iz();if(this.qa())return Iz("seeking to head");if(this.policy.XJ&&!isFinite(G))return T2_(this.Fh),g.mL(Infinity);ziy(this);this.DQ=(0,g.yT)();this.policy.j||Gh(this,G);this.tX&&this.tX.j&&this.tX.X&&!this.jJ.getVideoData().SV&&(this.tX.j.isLocked()||this.tX.X.isLocked())&&this.jJ.AN({reattachOnLockedBuffer:1,vsb:""+this.tX.X.isLocked(),asb:""+this.tX.j.isLocked()});var a=this.getCurrentTime(),V=this.Fh.seek(G,B);this.policy.Zx||(this.currentTime=V);uw(this.G, G,a,this.policy.Q3&&!B.Wo);AG(this);return g.mL(V)}; g.W.j4=function(G){return this.policy.j&&this.C.j4(G)}; g.W.ZT=function(G){return this.C.ZT(G)}; g.W.Fa=function(G,B){this.C.Fa(G,B)}; g.W.getCurrentTime=function(){if(this.policy.Zx){var G=this.F3()||0;return this.jJ.getCurrentTime()-G}return this.currentTime}; g.W.MS=function(){return this.audioTrack.j.info}; g.W.Ly=function(){return this.videoTrack.j.info}; g.W.AU=function(){return this.audioTrack.j.info.PS}; g.W.B_=function(){return this.videoTrack.j.info.PS}; g.W.yb=function(){try{this.d8(),Xo(this.audioTrack),Xo(this.videoTrack),XW(this.audioTrack),XW(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.r.prototype.yb.call(this)}catch(G){g.RA(G)}}; g.W.handleError=function(G,B,a){a=a===void 0?0:a;var V=cX(a);G==="fmt.unplayable"&&this.hX.isLive&&(this.policy.Ku=!1,UT(this.hX));B=new yH(G,B,a);g.ix(this);b5(B.details);this.jJ.handleError(B);G!=="html5.invalidstate"&&B.errorCode!=="fmt.unplayable"&&G!=="fmt.unparseable"&&V&&this.dispose()}; g.W.Nd=function(){var G=EC(this.audioTrack),B=EC(this.videoTrack);G={lct:this.getCurrentTime().toFixed(3),lsk:this.Fh.isSeeking(),lmf:this.j.j.isLocked(),lbw:gG(this.schedule).toFixed(3),lhd:mG(this.schedule).toFixed(3),lst:((this.schedule.W.cG()||0)*1E9).toFixed(3),laa:G?G.cC():"",lva:B?B.cC():"",lar:this.audioTrack.X?this.audioTrack.X.cC():"",lvr:this.videoTrack.X?this.videoTrack.X.cC():"",laq:""+fu(this.audioTrack),lvq:""+fu(this.videoTrack)};this.tX&&!this.tX.HG()&&this.tX.j&&this.tX.X&&(G.lab= eg(this.tX.j.Ms()),G.lvb=eg(this.tX.X.Ms()));this.Xz&&(G.lapt=((0,g.yT)()-this.Xz).toFixed(0),G.lapr=UJY(this));this.Zx&&(G.lapmabht=((0,g.yT)()-this.Zx).toFixed(0),G.lapmabh=up(this,this.audioTrack).toFixed(0));this.Qb&&(G.lapmvbht=((0,g.yT)()-this.Qb).toFixed(0),G.lapmvbh=up(this,this.videoTrack).toFixed(0));this.LN&&(G.lapsdai=((0,g.yT)()-this.LN).toFixed(0));return G}; g.W.lz=function(){try{this.policy.j&&this.C.Fa(!1,"pending"),this.audioTrack.lz(),this.videoTrack.lz()}catch(G){g.RA(G)}this.policy.G=""}; g.W.ul=function(){return nP(this.Y)}; g.W.FJ=function(G,B,a){this.jJ.FJ(G,B,a===void 0?!1:a)}; g.W.WD=function(){return this.jJ.WD()}; g.W.Cy=function(G,B){G/=B;isNaN(this.timestampOffset)&&TBx(this,G-Math.min(G,this.policy.cj));return(G-this.timestampOffset)*B}; g.W.F3=function(){return this.timestampOffset}; g.W.isSeeking=function(){return this.Fh.isSeeking()}; g.W.QT=function(){this.G.QT()}; g.W.xv=function(G,B,a){B=B===void 0?!1:B;a=a===void 0?{}:a;this.policy.j?this.X.xv(G,B,a):this.j.xv(G,B,a)}; g.W.h5=function(G,B){if(!this.V)return!1;var a=this.videoTrack.j.index.nR(G);return this.V.h5(G,B,a)}; g.W.H6=function(G,B){if(this.V&&this.G.H6(G,this.V))return TBx(this,this.timestampOffset-B),AG(this),this.policy.B&&(UT(this.hX),XW(this.audioTrack),XW(this.videoTrack),this.lz()),!0;B=this.videoTrack.j.index.nR(G);this.handleError("ad.skipfailed",{dec:!!this.V,t:G.toFixed(3),sq:B});return!1}; g.W.getManifest=function(){return this.hX}; g.W.isOffline=function(){return!!this.jJ.getVideoData().cotn}; g.W.oZ=function(G,B){this.jJ.oZ(G,B)}; g.W.je=function(G){if(this.policy.I1)this.policy.j&&this.C.Fa(!0,"utc"),this.Bn();else{var B=this.jJ.getVideoData().xl;if(B){var a=this.B;a.U$=G;a.xl=B;aD(this)}}}; g.W.aH=function(G){this.videoTrack.W=!1;this.audioTrack.W=!1;this.Fh.X=!1;this.jJ.aH(G)}; g.W.Pg=function(G){this.Fh.Pg(G-this.F3())}; g.W.j2=function(){this.jJ.j2()}; g.W.rb=function(G){G!==this.policy.US&&((this.policy.US=G)||this.Bn())}; g.W.kG=function(G,B){var a=this.audioTrack.Wf,V=this.videoTrack.Wf;a&&V&&(a.remove(G,B),V.remove(G,B))}; g.W.AN=function(G){this.jJ.AN(G)}; g.W.N1=function(G){this.jJ.N1(G)}; g.W.ZD=function(){return this.jJ.ZD()}; g.W.DT=function(){UT(this.hX);this.lz()};g.W=g.Vn.prototype;g.W.St=function(G,B,a,V,x,h){return this.EZ.St(G,B,a,V,x,h)}; g.W.VP=function(G,B,a,V,x,h){return this.EZ.VP(G,B,a,V,x,h)}; g.W.o3=function(G){return this.EZ.o3(G)}; g.W.NA=function(G){this.EZ.NA(G)}; g.W.GM=function(G,B,a,V){return this.EZ.GM(G,B,a,V)}; g.W.QT=function(){this.EZ.QT()}; g.W.h5=function(G,B,a){return this.EZ.h5(G,B,a)}; g.W.Z5=function(G,B){this.EZ.Z5(G,B)}; g.W.T8=function(){this.EZ.T8()}; g.W.PZ=ay(62);g.W.Ey=function(G,B,a){this.EZ.Ey(G,B,a)}; g.W.pX=ay(65);g.W.tE=function(G,B,a,V,x,h,e,w,K){this.EZ.tE(G,B,a,V,x,h,e,w,K)}; g.W.D0=function(G){this.EZ.D0(G)}; g.W.Y2=function(G){return this.EZ.Y2(G)}; g.W.y8=function(G){return this.EZ.y8(G)};g.t(xQ,g.wI);g.t(hp,xQ);hp.prototype.L=function(G,B){if(G&&B){var a=Number(sh(G,"cpi"))*1+1;isNaN(a)||a<=0||athis.C&&(this.C=a,g.yw(this.j)||(this.j={},this.G.stop(),this.X.stop())),this.j[B]=G,g.iC(this.X))}}; hp.prototype.B=function(){for(var G=g.m(Object.keys(this.j)),B=G.next();!B.done;B=G.next()){var a=B.value;B=this.publish;for(var V=this.C,x=this.j[a].match(D4),h=[],e=g.m(x[6].split("&")),w=e.next();!w.done;w=e.next())w=w.value,w.indexOf("cpi=")===0?h.push("cpi="+V.toString()):w.indexOf("ek=")===0?h.push("ek="+g.JE(a)):h.push(w);x[6]="?"+h.join("&");a="skd://"+x.slice(2).join("");x=a.length*2;V=new Uint8Array(x+4);V[0]=x%256;V[1]=(x-V[0])/256;for(x=0;x0)for(var a=g.m(this.j),V=a.next();!V.done;V=a.next())if(B===V.value.info.cryptoPeriodIndex){B=!0;break a}B=!1}if(!B){B=(0,g.yT)();a:{a=G.cryptoPeriodIndex;if(!isNaN(a)){V=g.m(this.C.values());for(var x=V.next();!x.done;x=V.next())if(Math.abs(x.value.cryptoPeriodIndex-a)<=1){a=!0;break a}}a=!1}a?(a=G.j,a=Math.max(0,Math.random()*((isNaN(a)?120:a)-30))*1E3):a=0;this.publish("log_qoe",{wvagt:"delay."+a,cpi:G.cryptoPeriodIndex,reqlen:this.j.length, ignore:this.G});a<=0?YNz(this,G):this.G||(this.j.push({time:B+a,info:G}),g.iC(this.X,a))}}; ex.prototype.yb=function(){this.j=[];xQ.prototype.yb.call(this)};var ty={},GA9=(ty.DRM_TRACK_TYPE_AUDIO="AUDIO",ty.DRM_TRACK_TYPE_SD="SD",ty.DRM_TRACK_TYPE_HD="HD",ty.DRM_TRACK_TYPE_UHD1="UHD1",ty);g.t(oXc,g.r);g.t(ayz,g.wI);g.W=ayz.prototype;g.W.X1=function(G){var B=this;this.TH()||G.size<=0||(G.forEach(function(a,V){var x=S2(B.X)?V:a;V=new Uint8Array(S2(B.X)?a:V);S2(B.X)&&jjx(V);a=g.md(V,4);jjx(V);V=g.md(V,4);B.j[a]?B.j[a].status=x:B.j[V]?B.j[V].status=x:B.j[a]={type:"",status:x}}),Cqc(this,","),WQ(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.W.error=function(G,B,a,V){this.TH()||(this.publish("licenseerror",G,B,a,V),G==="drm.provision"&&(G=(Date.now()-this.L)/1E3,this.L=NaN,this.publish("ctmp","provf",{et:G.toFixed(3)})));cX(B)&&this.dispose()}; g.W.shouldRetry=function(G,B){return!G&&this.requestNumber===B.requestNumber}; g.W.yb=function(){this.j={};g.wI.prototype.yb.call(this)}; g.W.Nd=function(){var G={ctype:this.V.contentType||"",length:this.V.initData.length,requestedKeyIds:this.HS,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(G.keyStatuses=this.j);return G}; g.W.getInfo=function(){var G=this.G.join();if(wd(this)){var B=new Set,a;for(a in this.j)this.j[a].status!=="usable"&&B.add(this.j[a].type);G+="/UKS."+Array.from(B)}return G+="/"+this.cryptoPeriodIndex}; g.W.Ex=function(){return this.url};g.t(KW,g.r);g.W=KW.prototype;g.W.AB=function(G){if(this.B){var B=G.messageType||"license-request";this.B(new Uint8Array(G.message),B)}}; g.W.X1=function(){this.W&&this.W(this.j.keyStatuses)}; g.W.onClosed=function(){this.TH()||g.QZ("xboxone")&&this.C&&this.C("closed")}; g.W.zZ=function(G){this.B&&this.B(G.message,"license-request")}; g.W.FE=function(G){if(this.C){if(this.X){var B=this.X.error.code;G=this.X.error.systemCode}else B=G.errorCode,G=G.systemCode;this.C("t.prefixedKeyError;c."+B+";sc."+G,B,G)}}; g.W.jZ=function(){this.L&&this.L()}; g.W.update=function(G){var B=this;if(this.j)return(AA.isActive()?AA.kX("emeupd",function(){return B.j.update(G)}):this.j.update(G)).then(null,g2(function(a){yTB(B,"t.update",a)})); this.X?this.X.update(G):this.element.addKey?this.element.addKey(this.V.keySystem,G,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.V.keySystem,G,this.initData,this.sessionId);return Dd()}; g.W.yb=function(){this.j&&(this.Y?this.j.close().catch(g.Zb):this.j.close());this.element=null;g.r.prototype.yb.call(this)};g.t(lS,g.r);g.W=lS.prototype;g.W.eC=function(){var G=this;if(this.j.keySystemAccess)return(AA.isActive()?AA.kX("emenew",function(){return G.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(a){if(!G.TH())if(G.X=a,AA.isActive())AA.kX("emeset",function(){return G.element.setMediaKeys(a)}); else{var V;(V=G.element)==null||V.setMediaKeys(a)}}); if(DE(this.j))this.C=new (vJ())(this.j.keySystem);else if(RW(this.j)){this.C=new (vJ())(this.j.keySystem);var B;(B=this.element)==null||B.webkitSetMediaKeys(this.C)}else AA.isActive()&&this.FJ("emev",{v:"01b"}),cH(this.B,this.element,["keymessage","webkitkeymessage"],this.hB),cH(this.B,this.element,["keyerror","webkitkeyerror"],this.Sq),cH(this.B,this.element,["keyadded","webkitkeyadded"],this.B8);return null}; g.W.setServerCertificate=function(){return this.X.setServerCertificate?this.j.flavor==="widevine"&&this.j.hY?this.X.setServerCertificate(this.j.hY):rX(this.j)&&this.j.MB?this.X.setServerCertificate(this.j.MB):null:null}; g.W.createSession=function(G,B){var a=G.initData;if(this.j.keySystemAccess){B&&B("createsession");var V=this.X.createSession();ZE(this.j)?a=cTB(a,this.j.MB):rX(this.j)&&(a=AQg(a)||new Uint8Array(0));B&&B("genreq");var x=AA.isActive()?AA.kX("emegen",function(){return V.generateRequest(G.contentType,a)}):V.generateRequest(G.contentType,a); var h=new KW(null,null,null,V,null,this.W);x.then(function(){B&&B("genreqsuccess")},g2(function(w){yTB(h,"t.generateRequest",w)})); return h}if(DE(this.j))return fKY(this,a);if(RW(this.j))return nMA(this,a);if((x=this.element)==null?0:x.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,a);else{var e;(e=this.element)==null||e.webkitGenerateKeyRequest(this.j.keySystem,a)}return this.G=new KW(this.element,this.j,a,null,null,this.W)}; g.W.hB=function(G){var B=HuK(this,G);B&&B.zZ(G)}; g.W.Sq=function(G){var B=HuK(this,G);B&&B.FE(G)}; g.W.B8=function(G){var B=HuK(this,G);B&&B.jZ(G)}; g.W.getMetrics=function(){if(this.X&&this.X.getMetrics)try{var G=this.X.getMetrics()}catch(B){}return G}; g.W.yb=function(){this.C=this.X=null;var G;(G=this.G)==null||G.dispose();G=g.m(Object.values(this.L));for(var B=G.next();!B.done;B=G.next())B.value.dispose();this.L={};g.r.prototype.yb.call(this);delete this.element};g.W=kQ.prototype;g.W.get=function(G){G=this.findIndex(G);return G!==-1?this.values[G]:null}; g.W.remove=function(G){G=this.findIndex(G);G!==-1&&(this.keys.splice(G,1),this.values.splice(G,1))}; g.W.removeAll=function(){this.keys=[];this.values=[]}; g.W.set=function(G,B){var a=this.findIndex(G);a!==-1?this.values[a]=B:(this.keys.push(G),this.values.push(B))}; g.W.findIndex=function(G){return g.AJ(this.keys,function(B){return g.Kd(G,B)})};g.t(SCB,g.wI);g.W=SCB.prototype;g.W.pCH=function(G){this.B0({onecpt:1});G.initData&&rTb(this,new Uint8Array(G.initData),G.initDataType)}; g.W.ZDl=function(G){this.B0({onndky:1});rTb(this,G.initData,G.contentType)}; g.W.jM=function(G){this.B0({onneedkeyinfo:1});this.md.S("html5_eme_loader_sync")&&(this.W.get(G.initData)||this.W.set(G.initData,G));ZuV(this,G)}; g.W.Zz=function(G){this.C.push(G);NP(this)}; g.W.createSession=function(G){var B=X6X(this)?xpA(G):g.md(G.initData);this.X.get(B);this.GH=!0;G=new ayz(this.videoData,this.md,G,this.drmSessionId);this.X.set(B,G);G.subscribe("ctmp",this.Tp,this);G.subscribe("keystatuseschange",this.X1,this);G.subscribe("licenseerror",this.WX,this);G.subscribe("newlicense",this.DO,this);G.subscribe("newsession",this.NN,this);G.subscribe("sessionready",this.kA,this);G.subscribe("fairplay_next_need_key_info",this.pB,this);this.md.S("html5_enable_vp9_fairplay")&&G.subscribe("qualitychange", this.UO,this);this.md.S("html5_enable_sabr_drm_hd720p")&&G.subscribe("sabrlicenseconstraint",this.rHX,this);ed9(G,this.G)}; g.W.DO=function(G){this.TH()||(this.B0({onnelcswhb:1}),G&&!this.heartbeatParams&&(this.heartbeatParams=G,this.publish("heartbeatparams",G)))}; g.W.NN=function(){this.TH()||(this.B0({newlcssn:1}),this.C.shift(),this.GH=!1,NP(this))}; g.W.kA=function(){if(DE(this.j)&&(this.B0({onsnrdy:1}),this.Qb--,this.Qb===0)){var G=this.zH,B,a;(B=G.element)==null||(a=B.msSetMediaKeys)==null||a.call(B,G.C)}}; g.W.X1=function(G){if(!this.TH()){!this.LN&&this.videoData.S("html5_log_drm_metrics_on_key_statuses")&&(qC_(this),this.LN=!0);this.B0({onksch:1});var B=this.UO;if(!wd(G)&&g.Jx&&G.X.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var a="large";else{a=[];var V=!0;if(wd(G))for(var x=g.m(Object.keys(G.j)),h=x.next();!h.done;h=x.next())h=h.value,G.j[h].status==="usable"&&a.push(G.j[h].type),G.j[h].status!=="unknown"&&(V=!1);if(!wd(G)||V)a=G.G;a=dd9(a)}B.call(this,a);this.publish("keystatuseschange", G)}}; g.W.Tp=function(G,B){this.TH()||this.publish("ctmp",G,B)}; g.W.pB=function(G,B){this.TH()||this.publish("fairplay_next_need_key_info",G,B)}; g.W.WX=function(G,B,a,V){this.TH()||(this.videoData.S("html5_log_drm_metrics_on_error")&&qC_(this),this.publish("licenseerror",G,B,a,V))}; g.W.dn=function(){return this.V}; g.W.UO=function(G){var B=g.a1("auto",G,!1,"l");if(this.videoData.d_){if(this.V.Wx(B))return}else if(Yfg(this.V,G))return;this.V=B;this.publish("qualitychange");this.B0({updtlq:G})}; g.W.rHX=function(G){this.videoData.sabrLicenseConstraint=G}; g.W.yb=function(){this.j.keySystemAccess&&this.element&&(this.HS?this.element.setMediaKeys(null).catch(g.Zb):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var G=g.m(this.X.values()),B=G.next();!B.done;B=G.next())B=B.value,B.unsubscribe("ctmp",this.Tp,this),B.unsubscribe("keystatuseschange",this.X1,this),B.unsubscribe("licenseerror",this.WX,this),B.unsubscribe("newlicense",this.DO,this),B.unsubscribe("newsession",this.NN,this),B.unsubscribe("sessionready",this.kA,this),B.unsubscribe("fairplay_next_need_key_info", this.pB,this),this.md.S("html5_enable_vp9_fairplay")&&B.unsubscribe("qualitychange",this.UO,this),B.dispose();this.X.clear();this.L.removeAll();this.W.removeAll();this.heartbeatParams=null;g.wI.prototype.yb.call(this)}; g.W.Nd=function(){for(var G={systemInfo:this.j.Nd(),sessions:[]},B=g.m(this.X.values()),a=B.next();!a.done;a=B.next())G.sessions.push(a.value.Nd());return G}; g.W.getInfo=function(){return this.X.size<=0?"no session":""+this.X.values().next().value.getInfo()+(this.B?"/KR":"")}; g.W.B0=function(G,B){B=B===void 0?!1:B;this.TH()||(b5(G),(this.md.Ef()||B)&&this.publish("ctmp","drmlog",G))};g.t(sj9,g.r);g.W=sj9.prototype;g.W.zC=function(){return!!this.O_}; g.W.aX=function(){return this.X}; g.W.handleError=function(G){var B=this;PUg(this,G);if((G.errorCode!=="html5.invalidstate"&&G.errorCode!=="fmt.unplayable"&&G.errorCode!=="fmt.unparseable"||!iuK(this,G.errorCode,G.details))&&!BO_(this,G)){if(this.Rn.zH!=="yt"&&MSX(this,G)&&this.videoData.I1&&(0,g.yT)()/1E3>this.videoData.I1&&this.Rn.zH==="hm"){var a=Object.assign({e:G.errorCode},G.details);a.stalesigexp="1";a.expire=this.videoData.I1;a.init=this.videoData.D$/1E3;a.now=(0,g.yT)()/1E3;a.systelapsed=((0,g.yT)()-this.videoData.D$)/1E3; G=new yH(G.errorCode,a,2);this.jJ.Ev(G.errorCode,2,"SIGNATURE_EXPIRED",b5(G.details))}if(cX(G.severity)){var V;a=(V=this.jJ.CN)==null?void 0:V.j.j;if(this.Rn.S("html5_use_network_error_code_enums"))if(oMc(G)&&a&&a.isLocked())var x="FORMAT_UNAVAILABLE";else if(this.Rn.L||G.errorCode!=="auth"||G.details.rc!==429)G.errorCode==="ump.spsrejectfailure"&&(x="HTML5_SPS_UMP_STATUS_REJECTED");else{x="TOO_MANY_REQUESTS";var h="6"}else oMc(G)&&a&&a.isLocked()?x="FORMAT_UNAVAILABLE":this.Rn.L||G.errorCode!=="auth"|| G.details.rc!=="429"?G.errorCode==="ump.spsrejectfailure"&&(x="HTML5_SPS_UMP_STATUS_REJECTED"):(x="TOO_MANY_REQUESTS",h="6");this.jJ.Ev(G.errorCode,G.severity,x,b5(G.details),h)}else this.jJ.publish("nonfatalerror",G),V=/^pp/.test(this.videoData.clientPlaybackNonce),this.I0(G.errorCode,G.details),V&&G.errorCode==="manifest.net.connect"&&(G="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.yT)(),y8(G,"manifest",function(e){B.L=!0;B.FJ("pathprobe",e)},function(e){B.I0(e.errorCode, e.details)}))}}; g.W.FJ=function(G,B){this.jJ.Kh().FJ(G,B)}; g.W.I0=function(G,B){B=b5(B);this.jJ.Kh().I0(G,B)};xgz.prototype.J4=function(G,B){return(B===void 0?0:B)?{wP:G?zh(this,G):L$,pS:G?dgA(this,G):L$,hEd:G?ko_(this,G):L$,W5x:G?gJH(this,G.videoData):L$,Rj:G?pIB(this,G.videoData,G):L$,uhJ:G?K6c(this,G):L$,KtL:W6V(this)}:{wP:G?zh(this,G):L$}}; xgz.prototype.S=function(G){return this.md.S(G)};g.t(tp,g.r);tp.prototype.onError=function(G){if(G!=="player.fatalexception"||this.provider.S("html5_exception_to_health"))G==="sabr.fallback"&&(this.encounteredSabrFallback=!0),G.match(O0J)?this.networkErrorCount++:this.nonNetworkErrorCount++}; tp.prototype.send=function(){if(!(this.C||this.j<0)){EJX(this);var G=g.mR(this.provider)-this.j,B="PLAYER_PLAYBACK_STATE_UNKNOWN",a=this.playerState.CR;this.playerState.isError()?B=a&&a.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.F(this.playerState,2)?B="PLAYER_PLAYBACK_STATE_ENDED":g.F(this.playerState,64)?B="PLAYER_PLAYBACK_STATE_UNSTARTED":g.F(this.playerState,16)||g.F(this.playerState,32)?B="PLAYER_PLAYBACK_STATE_SEEKING":g.F(this.playerState,1)&&g.F(this.playerState, 4)?B="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.F(this.playerState,1)?B="PLAYER_PLAYBACK_STATE_BUFFERING":g.F(this.playerState,4)?B="PLAYER_PLAYBACK_STATE_PAUSED":g.F(this.playerState,8)&&(B="PLAYER_PLAYBACK_STATE_PLAYING");a=zll[UN(this.provider.videoData)];a:switch(this.provider.md.playerCanaryState){case "canary":var V="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":V="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:V="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var x=jDB(this.provider), h=this.X<0?G:this.X-this.j;G=this.provider.md.MD+36E5<(0,g.yT)();B={started:this.X>=0,stateAtSend:B,joinLatencySecs:h,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:V,playerCanaryStage:x,isAd:this.provider.videoData.isAd(),liveMode:a,hasDrm:!!g.gB(this.provider.videoData),isGapless:this.provider.videoData.V,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:eO(this.provider.videoData)};G||g.wP("html5PlayerHealthEvent",B);this.C=!0;this.dispose()}}; tp.prototype.yb=function(){this.C||this.send();window.removeEventListener("error",this.p8);window.removeEventListener("unhandledrejection",this.p8);g.r.prototype.yb.call(this)}; var O0J=/\bnet\b/;g.t(yGy,g.r);yGy.prototype.yb=function(){nJg(this);g.r.prototype.yb.call(this)};var fgz=/[?&]cpn=/;g.t(Ia,g.r);Ia.prototype.flush=function(){var G={};this.X&&(G.pe=this.X);this.j.length>0&&(G.pt=this.j.join("."));this.j=[];return G}; Ia.prototype.stop=function(){var G=this,B,a,V;return g.v(function(x){if(x.j==1)return g.UA(x,2),g.f(x,(B=G.G)==null?void 0:B.stop(),4);if(x.j!=2)return(a=x.X)&&G.logTrace(a),g.EA(x,0);V=g.jB(x);G.X=rGB(V.message);g.pV(x)})}; Ia.prototype.logTrace=function(G){this.encoder.reset();this.encoder.add(1);this.encoder.add(G.resources.length);for(var B=g.m(G.resources),a=B.next();!a.done;a=B.next()){a=a.value.replace("https://www.youtube.com/s/","");this.encoder.add(a.length);for(var V=0;V=0?G:g.mR(this.provider),["PL","B","S"].indexOf(this.yg)>-1&&(!g.yw(this.j)||G>=this.B+30)&&(g.UL(this,G,"vps",[this.yg]),this.B=G),!g.yw(this.j))){this.sequenceNumber===7E3&&g.Zb(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){EL(this,G);var B=this.provider.jJ.t4();B=g.m(B);for(var a=B.next();!a.done;a=B.next())a=a.value,this.FJ(a.key,a.value);B=G;a=this.provider.jJ.dg();var V=a.droppedVideoFrames||0,x=a.totalVideoFrames|| 0,h=V-this.vc,e=x&&!this.oJ;V>a.totalVideoFrames||h>5E3?iSg(this,"html5.badframedropcount","df."+V+";tf."+a.totalVideoFrames):(h>0||e)&&g.UL(this,B,"df",[h]);this.vc=V;this.oJ=x;this.Y>0&&(g.UL(this,G,"glf",[this.Y]),this.Y=0);B9.isActive()&&(G=B9.aO(),Object.keys(G).length>0&&this.FJ("profile",G));this.QW&&jx(this,"lwnmow");this.provider.md.Ef()&&this.provider.S("html5_record_now")&&this.FJ("now",{wt:(0,g.yT)()});G={};this.provider.videoData.X&&(G.fmt=this.provider.videoData.X.itag,(B=this.provider.videoData.G)&& B.itag!==G.fmt&&(G.afmt=B.itag));G.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(G.adcpn=this.adCpn);this.zH&&(G.addocid=this.zH);this.contentCpn&&(G.ccpn=this.contentCpn);this.HS&&(G.cdocid=this.HS);this.provider.videoData.cotn&&(G.cotn=this.provider.videoData.cotn);G.el=Zw(this.provider.videoData);G.content_v=$X(this.provider.videoData);G.ns=this.provider.md.zH;G.fexp=DNH(this.provider.md.experiments).toString();G.cl=(733552769).toString();(B=this.provider.videoData.adFormat||this.adFormat)&& (G.adformat=B);(B=UN(this.provider.videoData))&&(G.live=B);this.provider.videoData.LM()&&(G.drm=1,this.provider.videoData.B&&(G.drm_system=Kns[this.provider.videoData.B.flavor]||0),this.provider.videoData.RY&&(G.drm_product=this.provider.videoData.RY));w1()&&this.provider.videoData.L&&(G.ctt=this.provider.videoData.L,G.cttype=this.provider.videoData.iF,this.provider.videoData.mdxEnvironment&&(G.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(G.dai= this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.ws&&(G.dai_fallback="1")):this.provider.videoData.YW?G.dai="cs":this.provider.videoData.C$&&(G.dai="disabled");G.seq=this.sequenceNumber++;if(this.provider.videoData.RD){if(B=this.provider.videoData.RD,G&&B)for(B.ns==="3pp"&&(G.ns="3pp"),this.R4.has(B.ns)&&jx(this,"hbps"),B.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=B.shbpslc),this.provider.md.experiments.Or("html5_use_server_qoe_el_value")&&this.Vb.delete("el"), a=g.m(Object.keys(B)),V=a.next();!V.done;V=a.next())V=V.value,this.Vb.has(V)||(G[V]=B[V])}else G.event="streamingstats",G.docid=this.provider.videoData.videoId,G.ei=this.provider.videoData.eventId;this.isEmbargoed&&(G.embargoed="1");Object.assign(G,this.provider.md.j);if(B=G.seq)B={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+B,serializedWatchEndpointLoggingContext:this.provider.videoData.F9},this.serializedHouseBrandPlayerServiceLoggingContext&&(B.serializedHouseBrandPlayerServiceLoggingContext= gK(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(B.playerResponseCpn=this.provider.videoData.playerResponseCpn),pW.length&&(B.decoderInfo=pW),this.provider.jJ.j6()&&(B.transitionStitchType=4,this.GH&&(B.timestampOffsetMsecs=this.GH)),this.remoteControlMode&&(B.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(B.remoteConnectedDevices=this.remoteConnectedDevices),B=g.Yy(B,pjz),B=g.md(B,4),this.j.qclc=[B];G=g.LJ("//"+ this.provider.md.B6+"/api/stats/qoe",G);a=B="";V=g.m(Object.keys(this.j));for(x=V.next();!x.done;x=V.next())x=x.value,this.j[x]===null?g.Zb(new g.FI("Stats report key has invalid value",x)):(x="&"+x+"="+this.j[x].join(","),x.length>100?a+=x:B+=x);F6c(this,G+B,a.replace(/ /g,"%20"))}this.j={}}}; g.W.N1=function(G){this.QW=G}; g.W.xq=function(){if(this.provider.videoData.B){var G=this.provider.videoData.B;jx(this,"eme-"+(G.keySystemAccess?"final":DE(G)?"ms":ZE(G)?"ytfp":RW(G)?"safarifp":"nonfinal"))}}; g.W.Nb=function(G){var B=g.mR(this.provider);if(!this.provider.md.experiments.Or("html5_refactor_sabr_video_format_selection_logging")||G.j.id!==this.qB){var a=[G.j.id,G.X,this.qB,G.reason];G.token&&a.push(G.token);g.UL(this,B,"vfs",a);this.qB=G.j.id;a=this.provider.jJ.getPlayerSize();if(a.width>0&&a.height>0){a=[Math.round(a.width),Math.round(a.height)];var V=g.A3();V>1&&a.push(V);g.UL(this,B,"view",a)}this.eJ||(this.provider.md.Ef()&&jx(this,"rqs2"),this.provider.videoData.j&&lH(this.provider.videoData.j)&& (this.j.preload=["1"]));this.C=this.eJ=!0}G.reason==="m"&&++this.dC===100&&PbB(this,2);g.UL(this,B,"vps",[this.yg]);this.reportStats(B)}; g.W.O0=function(G){var B=g.mR(this.provider);if(this.provider.md.experiments.Or("html5_refactor_sabr_audio_format_selection_logging")){B=G.j;var a=[B.audio&&B.video?B.vX?B.vX:"":B.id];B.VW&&B.VW.id&&a.push(B.VW.id);B=a.join(";");B!==this.W&&(a=[B,this.W,G.reason],G.token&&a.push(G.token),g.UL(this,g.mR(this.provider),"afs",a),this.W=B)}else G.j.id!==this.W&&(a=[G.j.id,this.W,G.reason],G.token&&a.push(G.token),g.UL(this,B,"afs",a),this.W=G.j.id)}; g.W.m8=ay(59);g.W.Y$=function(G){this.isEmbargoed=G}; g.W.GV=ay(36);g.W.jK=ay(42);g.W.onPlaybackRateChange=function(G){var B=g.mR(this.provider);G&&G!==this.S_&&(g.UL(this,B,"rate",[G]),this.S_=G);this.reportStats(B)}; g.W.RM=ay(30);g.W.getPlayerState=function(G){if(g.F(G,128))return"ER";if(g.F(G,2048))return"B";if(g.F(G,512))return"SU";if(g.F(G,16)||g.F(G,32))return"S";if(G.isOrWillBePlaying()&&g.F(G,64))return"B";var B=EnC[l3(G)];g.yI(this.provider.md)&&B==="B"&&this.provider.jJ.getVisibilityState()===3&&(B="SU");B==="B"&&g.F(G,4)&&(B="PB");return B}; g.W.yb=function(){g.r.prototype.yb.call(this);g.Ih(this.L);g.Ih(this.YD)}; g.W.fW=function(G){this.isOffline=G;g.UL(this,g.mR(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.W.FJ=function(G,B,a){var V=this.j.ctmp||[],x=this.OZ.indexOf(G)!==-1;x||this.OZ.push(G);if(!a||!x){var h=typeof B!=="string"?b5(B):B;h=oJB(h);if(!a&&!/^t[.]/.test(h)){var e=g.mR(this.provider)*1E3;h="t."+e.toFixed()+";"+h}V.push(G+":"+h);this.logger.debug(function(){return"ctmp "+G+" "+h}); this.j.ctmp=V;JGx(this);return e}}; g.W.kP=function(G,B,a){this.G={V61:Number(this.FJ("glrem",{nst:G.toFixed(),rem:B.toFixed(),ca:+a})),J9:G,h9f:B,isAd:a}}; g.W.G$=function(G,B,a){g.UL(this,g.mR(this.provider),"ad_playback",[G,B,a])}; g.W.GW=function(G,B){var a=g.mR(this.provider)*1E3,V=this.j.daism||[];V.push("t."+a.toFixed(0)+";smw."+(G*1E3).toFixed(0)+";smo."+(B*1E3).toFixed(0));this.j.daism=V}; g.W.resume=function(){var G=this;this.provider.md.Ef()&&this.FJ("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.L)?AGc(this):this.L=g.tM(function(){G.reportStats()},1E4)}; var mV={},EnC=(mV[5]="N",mV[-1]="N",mV[3]="B",mV[0]="EN",mV[2]="PA",mV[1]="PL",mV[-1E3]="ER",mV[1E3]="N",mV),pW=[];BdV.prototype.gi=function(){return this.j}; BdV.prototype.update=function(){if(this.W){var G=this.provider.jJ.sb(this.provider.videoData.clientPlaybackNonce)||0,B=g.mR(this.provider);G>=this.provider.jJ.getDuration()-.1&&(this.previouslyEnded=!0);if(G!==this.j||xPB(this,G,B)){var a;if(!(a=GB-this.N7+2||xPB(this,G,B))){a=this.provider.jJ.getVolume();var V=a!==this.Y,x=this.provider.jJ.isMuted()?1:0;x!==this.V?(this.V=x,a=!0):(!V||this.G>=0||(this.Y=a,this.G=B),a=B-this.G,this.G>=0&&a>2?(this.G=-1,a=!0):a=!1)}a&&(nW(this),this.C= G);this.N7=B;this.j=G}}};hp9.prototype.send=function(G){var B=this;if(!this.Ur){var a=WRx(this),V=g.LJ(this.uri,a);this.md.S("vss_through_gel_double")&&wQ_(V);this.HS&&!this.md.S("html5_simplify_pings")?dPx(this,V):epz(this,G).then(function(x){B.HS&&(x=x||{},x.method="POST",x.postParams={atr:B.attestationResponse});Snb(V,x,{token:B.zH,Ad:B.Dx,mdxEnvironment:B.mdxEnvironment},B.md,G,B.GH,B.isFinal&&B.MD||B.Zx||B.C&&B.IG)}); this.Ur=!0}}; hp9.prototype.X=function(G){G===void 0&&(G=NaN);return Number(G.toFixed(3)).toString()}; var Ie={},kh9=(Ie.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Ie.LIVING_ROOM_APP_MODE_MAIN=1,Ie.LIVING_ROOM_APP_MODE_KIDS=2,Ie.LIVING_ROOM_APP_MODE_MUSIC=3,Ie.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Ie.LIVING_ROOM_APP_MODE_GAMING=5,Ie),gc={},lnV=(gc.EMBEDDED_PLAYER_MODE_UNKNOWN=0,gc.EMBEDDED_PLAYER_MODE_DEFAULT=1,gc.EMBEDDED_PLAYER_MODE_PFP=2,gc.EMBEDDED_PLAYER_MODE_PFL=3,gc);g.t(HQ,g.r);g.W=HQ.prototype;g.W.OA=function(){this.j.update();UPz(this)&&(zpg(this),txb(this),this.Zh())}; g.W.yb=function(){g.r.prototype.yb.call(this);Sx(this);anY(this.j)}; g.W.Nd=function(){return WRx(vQ(this,"playback"))}; g.W.Zh=function(){this.provider.videoData.W.eventLabel=Zw(this.provider.videoData);this.provider.videoData.W.playerStyle=this.provider.md.playerStyle;this.provider.videoData.e$&&(this.provider.videoData.W.feature="pyv");this.provider.videoData.W.vid=this.provider.videoData.videoId;var G=this.provider.videoData.W;var B=this.provider.videoData;B=B.isAd()||!!B.e$;G.isAd=B}; g.W.BG=function(G){var B=vQ(this,"engage");B.XJ=G;return KRy(B,cpV(this.provider))};ypK.prototype.isEmpty=function(){return this.endTime===this.startTime};Zn.prototype.S=function(G){return this.md.S(G)}; Zn.prototype.getCurrentTime=function(G){if(this.S("html5_ssap_current_time_for_logging_refactor")){var B=this.jJ.j6();if(B&&(G=G||B.M$()))return xW(B,G)}else if(g.AC(this.videoData)){var a=this.jJ.j6();if(a)return G=this.jJ.getCurrentTime(),a=(((B=Rg(a,G*1E3))==null?void 0:B.Y1)||0)/1E3,G-a}return this.jJ.getCurrentTime()}; Zn.prototype.SS=function(G){if(this.S("html5_ssap_current_time_for_logging_refactor")){var B=this.jJ.j6();if(B&&(G=G||B.M$()))return xW(B,G)}else if(g.AC(this.videoData)){var a=this.jJ.j6();if(a)return G=this.jJ.SS(),a=(((B=Rg(a,G*1E3))==null?void 0:B.Y1)||0)/1E3,G-a}return this.jJ.SS()}; var nQA={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.t(g.rd,g.r);g.W=g.rd.prototype;g.W.OA=function(){if(this.provider.videoData.enableServerStitchedDai&&this.zV){var G;(G=this.C.get(this.zV))==null||G.OA()}else this.j&&this.j.OA()}; g.W.Y$=function(G){this.qoe&&this.qoe.Y$(G)}; g.W.GV=ay(35);g.W.jK=ay(41);g.W.GW=function(G,B){this.qoe&&this.qoe.GW(G,B)}; g.W.jy=function(){if(this.provider.videoData.enableServerStitchedDai&&this.zV){var G;(G=this.C.get(this.zV))!=null&&nW(G.j)}else this.j&&nW(this.j.j)}; g.W.I0=function(G,B){this.qoe&&iSg(this.qoe,G,B);if(this.X)this.X.onError(G)}; g.W.Nb=function(G){this.qoe&&this.qoe.Nb(G)}; g.W.O0=function(G){this.qoe&&this.qoe.O0(G)}; g.W.onPlaybackRateChange=function(G){if(this.qoe)this.qoe.onPlaybackRateChange(G);this.j&&nW(this.j.j)}; g.W.m8=ay(58);g.W.FJ=function(G,B,a){this.qoe&&this.qoe.FJ(G,B,a)}; g.W.kP=function(G,B,a){this.qoe&&this.qoe.kP(G,B,a)}; g.W.V1=function(G){var B;(B=this.qoe)==null||B.V1(G)}; g.W.rp=function(G){var B;(B=this.qoe)==null||B.rp(G)}; g.W.N1=function(G){this.qoe&&this.qoe.N1(G)}; g.W.G$=function(G,B,a){this.qoe&&this.qoe.G$(G,B,a)}; g.W.RM=ay(29);g.W.Db=function(){if(this.qoe)return this.qoe.Db()}; g.W.Nd=function(){if(this.provider.videoData.enableServerStitchedDai&&this.zV){var G,B;return(B=(G=this.C.get(this.zV))==null?void 0:G.Nd())!=null?B:{}}return this.j?this.j.Nd():{}}; g.W.RH=function(){var G;return(G=this.qoe)==null?void 0:G.RH()}; g.W.SM=function(G,B){var a;(a=this.qoe)==null||a.SM(G,B)}; g.W.BG=function(G){return this.j?this.j.BG(G):function(){}}; g.W.Zh=function(){this.j&&this.j.Zh()}; g.W.getVideoData=function(){return this.provider.videoData}; g.W.resume=function(){this.qoe&&this.qoe.resume()};g.t(Xp,g.r); Xp.prototype.aq=function(G,B,a){if(this.j.has(G)){var V=this.j.get(G);if(B.videoId&&!fnb(V))this.X.FJ("ssap",{rlc:G}),qLA(this,G);else return}if(!this.j.has(G)){V=new Zn(B,this.md,this.jJ);var x=Math.round(g.mR(this.X.provider)*1E3);V=new g.rd(V,x);fnb(V)||this.X.FJ("nqv",{vv:B.videoId});x=this.X.getVideoData();this.j.set(G,V);if(V.qoe){var h=V.qoe,e=x.videoId||"";h.contentCpn=x.clientPlaybackNonce;h.HS=e}HWV(V);a===2&&(this.md.S("html5_log_ad_playback_docid")?(a=this.X,a.qoe&&(a=a.qoe,V=B.m3||"", x=B.breakType||0,B=B.videoId||"",h=this.md.zH||"yt",g.UL(a,g.mR(a.provider),"ad_playback",[G,V,x,B,h]))):this.X.G$(G,B.m3||"",B.breakType||0))}}; Xp.prototype.BI=function(G,B,a,V,x,h,e,w){if(G!==B){var K=this.Kh(G),l=this.Kh(B),k,N=G===((k=K.getVideoData())==null?void 0:k.clientPlaybackNonce),d;k=B===((d=l.getVideoData())==null?void 0:d.clientPlaybackNonce);var C;d=N?((C=K.getVideoData())==null?void 0:C.videoId)||"":"nvd";var z;C=k?((z=l.getVideoData())==null?void 0:z.videoId)||"":"nvd";N&&(K=K.qoe)!=null&&(yn(K,4,h?4:x?2:0,B,C,a),K.reportStats());k&&($Q(l),(B=l.qoe)!=null&&(yn(B,4,h?5:x?3:1,G,d,V),B.reportStats()),SLb(l,new g.NR(e,l.yg)), vQy(l));w&&qLA(this,G)}}; Xp.prototype.Kh=function(G){G=G||this.zV;return this.j.get(G)||this.X};g.t(g.qP,g.r);g.W=g.qP.prototype; g.W.z1=function(G,B){this.sync();B&&this.j.array.length>=2E3&&this.oC("captions",1E4);B=this.j;if(G.length>1&&G.length>B.array.length)B.array=B.array.concat(G),B.array.sort(B.j);else for(var a=g.m(G),V=a.next();!V.done;V=a.next())V=V.value,!B.array.length||B.j(V,B.array[B.array.length-1])>0?B.array.push(V):g.lk(B.array,V,B.j);G=g.m(G);for(B=G.next();!B.done;B=G.next())B=B.value,B.namespace==="ad"&&this.G("ssap",{acrsid:B.getId(),acrsst:B.start,acrset:B.end,acrscpt:B.playerType});this.C=NaN;this.sync()}; g.W.FO=function(G){G.length>1E4&&g.Zb(new g.FI("Over 10k cueRanges removal occurs with a sample: ",G[0]));if(!this.TH()){for(var B=g.m(G),a=B.next();!a.done;a=B.next())(a=a.value)&&a.namespace==="ad"&&this.G("ssap",{rcrid:a.getId(),rcst:a.start,rcet:a.end,rcpt:a.playerType});var V=new Set(G);this.X=this.X.filter(function(x){return!V.has(x)}); JpB(this.j,V);this.sync()}}; g.W.oC=function(G,B){var a=(isNaN(this.C)?g.F(this.L(),2)?0x8000000000000:this.Y()*1E3:this.C)-B;B=this.fM().filter(function(V){return V.namespace===G&&V.endthis.j,h=g.F(a,8)&&g.F(a,16),e=this.jJ.xT().isBackground()||a.isSuspended();iS(this,this.eJ,h&&!e,x,"qoe.slowseek",function(){},"timeout"); var w=isFinite(this.j);w=h&&w&&XmV(B,this.j);var K=!V||Math.abs(V-this.j)>10,l=this.md.S("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),k=V===0&&this.X&&[11,10].includes(this.X);iS(this,this.Dx,w&&K&&!e&&(!l||!k),x,"qoe.slowseek",function(){B.seekTo(G.j)},"set_cmt"); K=w&&wZ(B.yk(),this.j);var N=this.jJ.CN;w=!N||N.qM();var d=function(){B.seekTo(G.j+.001)}; iS(this,this.qB,K&&w&&!e,x,"qoe.slowseek",d,"jiggle_cmt");w=function(){return G.jJ.Jv()}; iS(this,this.Ur,K&&!e,x,"qoe.slowseek",w,"new_elem");K=Kn(a);l=a.isBuffering();var C=B.yk(),z=WZ(C,V),p=z>=0&&C.end(z)>V+5,O=K&&l&&p;k=this.jJ.getVideoData();iS(this,this.Er,V<.002&&this.j<.002&&h&&g.yI(this.md)&&g.rB(k)&&!e,x,"qoe.slowseek",w,"slow_seek_shorts");iS(this,this.zH,k.IM()&&h&&!e&&!k.HS,x,"qoe.slowseek",w,"slow_seek_gapless_shorts");iS(this,this.HS,O&&!e,K&&!l,"qoe.longrebuffer",d,"jiggle_cmt");iS(this,this.GH,O&&!e,K&&!l,"qoe.longrebuffer",w,"new_elem_nnr");if(N){var b=N.getCurrentTime(); h=B.iA();h=yn_(h,b);h=!N.isSeeking()&&V===h;iS(this,this.wO,K&&l&&h&&!e,K&&!l&&!h,"qoe.longrebuffer",function(){B.seekTo(b)},"seek_to_loader")}h={}; d=WZ(C,Math.max(V-3.5,0));O=d>=0&&V>C.end(d)-1.1;var c=d>=0&&d+1=0&&O&&c<11;h.close2edge=O;h.gapsize=c;h.buflen=C.length;this.X&&(h.seekSour=this.X);if(d=this.jJ.j6()){O=d.M$();c=O!==Rg(d,V*1E3).clipId;var H=g.kf(this.md.experiments,"html5_ssap_skip_seeking_offset_ms"),R=(Sj(d,O)+H)/1E3;iS(this,this.LN,c&&K&&l&&!e,K&&!l,"qoe.longrebuffer",function(){B.seekTo(R)},"ssap_clip_not_match")}iS(this,this.Zx,K&&l&&!e,K&&!l,"qoe.longrebuffer", function(){},"timeout",h); h=a.isSuspended();h=this.jJ.Oa()&&!h;iS(this,this.W,h,!h,"qoe.start15s",function(){G.jJ.Za("ad")},"ads_preroll_timeout"); d=V-this.G<.5;var q;h=!((q=this.jJ.j6())==null||!q.x$());c=(O=k.isAd()||h&&this.md.experiments.Or("html5_ssap_skip_slow_ad"))&&K&&!l&&d;q=function(){var A=G.jJ,J=g.AC(A.videoData)&&A.F5,xB=A.qQ.getVideoData();(xB&&A.videoData.isAd()&&xB.YW===A.getVideoData().YW||!A.videoData.Cn)&&!J?A.Ev("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+A.videoData.videoId):lv(A.videoData,"html5_ssap_skip_slow_ad")&&J&&A.F5.x$()&&(A.I0(new yH("ssap.transitionfailure",{cpn:Rg(A.F5,A.SS()).clipId,pcpn:A.F5.M$(), cmt:A.SS()})),A=A.F5,J=A.playback.SS(),(J=$XH(A,J))&&DXB(A,J.a8()/1E3))}; iS(this,this.Yf,c,!c,"ad.rebuftimeout",q,"skip_slow_ad");d=O&&l&&wZ(B.yk(),V+5)&&d;iS(this,this.fh,d&&!e,!d,"ad.rebuftimeout",q,"skip_slow_ad_buf");q=a.isOrWillBePlaying()&&g.F(a,64)&&!e;iS(this,this.QW,q,x,"qoe.start15s",function(){},"timeout"); q=!!N&&!N.tX&&a.isOrWillBePlaying();iS(this,this.Qb,q,x,"qoe.start15s",w,"newElemMse");q=kb(C,0);d=g.F(a,16)||g.F(a,32);d=!e&&a.isOrWillBePlaying()&&l&&!d&&(g.F(a,64)||V===0)&&q>5;iS(this,this.Vb,g.rB(k)&&d,K&&!l,"qoe.longrebuffer",function(){G.jJ.AN()},"reset_media_source"); iS(this,this.MB,g.rB(k)&&d,K&&!l,"qoe.longrebuffer",w,"reset_media_element");this.G===0&&(this.L=V);d=l&&this.j===0&&V>1&&V===this.L;iS(this,this.SJ,g.rB(k)&&d,K&&!l,"qoe.slowseek",function(){B.seekTo(0)},"reseek_after_time_jump"); e=a.isOrWillBePlaying()&&!e;p=this.jJ.Ws()-V<6&&!p&&this.jJ.JJ();iS(this,this.V,k.IM()&&e&&l&&p,K&&!l,"qoe.longrebuffer",function(){G.jJ.Jv(!1,!0)},"handoff_end_long_buffer_reload"); N=(N==null?void 0:FBB(N))||NaN;N=C.length>1||!isNaN(N)&&N-.1<=V;iS(this,this.Y,V3(k)&&e&&l&&N,K&&!l,"qoe.longrebuffer",w,"gapless_slice_append_stuck");N=z>=0&&C.end(z)>=2;e=V3(k)&&this.jJ.FU&&N&&!k.HS&&e&&(l||g.F(a,8)&&g.F(a,16));iS(this,this.XJ,e,x,"qoe.start15s",w,"gapless_slow_start");a=!!(h&&q>5&&a.isPlaying()&&V<.1);iS(this,this.Md,a,V>.5&&K,"qoe.longrebuffer",w,"ssap_stuck_in_ad_beginning");this.G=V;this.B.start()}}; YQ.prototype.I0=function(G,B,a){B=this.Nd(B);B.wn=a;B.wdup=this.C[G]?"1":"0";this.jJ.I0(new yH(G,B));this.C[G]=!0}; YQ.prototype.Nd=function(G){G=Object.assign(this.jJ.Nd(!0),G.Nd());this.j&&(G.stt=this.j.toFixed(3));this.jJ.getVideoData().isLivePlayback&&(G.ct=this.jJ.getCurrentTime().toFixed(3),G.to=this.jJ.F3().toFixed(3));delete G.uga;delete G.euri;delete G.referrer;delete G.fexp;delete G.vm;return G}; Jp.prototype.reset=function(){this.j=this.X=this.C=this.startTimestamp=0;this.G=!1}; Jp.prototype.test=function(G){if(!this.B||this.X)return!1;if(!G)return this.reset(),!1;G=(0,g.yT)();if(!this.startTimestamp)this.startTimestamp=G,this.C=0;else if(this.C>=this.B)return this.X=G,!0;this.C+=1;return!1}; Jp.prototype.Nd=function(){var G={},B=(0,g.yT)();this.startTimestamp&&(G.wsd=(B-this.startTimestamp).toFixed());this.X&&(G.wtd=(B-this.X).toFixed());this.j&&(G.wssd=(B-this.j).toFixed());return G};g.t(dAc,g.r);g.W=dAc.prototype;g.W.setMediaElement=function(G){(this.mediaElement=G)?(this.mediaElement&&(this.B||this.G||!this.mediaElement.fq()||this.seekTo(.01,{Tt:"seektimeline_setupMediaElement"})),PQ(this)):MP(this)}; g.W.getCurrentTime=function(){if(oa(this.jJ)){if(!isNaN(this.X))return this.X}else if(!isNaN(this.X)&&isFinite(this.X))return this.X;return this.mediaElement&&y6z(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.G||0}; g.W.Zo=function(){return this.MB}; g.W.SS=function(){return this.getCurrentTime()-this.F3()}; g.W.t$=function(){return this.j?this.j.t$():Infinity}; g.W.isAtLiveHead=function(G){if(!this.j)return!1;G===void 0&&(G=this.getCurrentTime());return sL(this.j,G)}; g.W.Ps=function(){return!!this.j&&this.j.Ps()}; g.W.seekTo=function(G,B){var a=B===void 0?{}:B;B=a.RF===void 0?!1:a.RF;var V=a.uD===void 0?0:a.uD;var x=a.hV===void 0?!1:a.hV;var h=a.Bp===void 0?0:a.Bp;var e=a.Tt===void 0?"":a.Tt;var w=a.seekSource===void 0?void 0:a.seekSource;var K=a.Cy===void 0?!1:a.Cy;var l=a.Wo===void 0?!1:a.Wo;a=a.yn===void 0?!1:a.yn;K&&(G+=this.F3());eO(this.videoData)&&this.S("html5_sabr_enable_utc_seek_requests")&&w===29&&(this.MB=void 0);K=G=this.LD())||!g.cF(this.videoData),k||(p={st:p,mst:this.LD()},this.j&&this.S("html5_high_res_seek_logging")&&(p.ht=this.j.t$(),p.adft=e5y(this.j)),this.jJ.FJ("seeknotallowed",p)),p=k));if(!p)return this.C&&(this.C=null,jiB(this)),g.mL(this.getCurrentTime());p=.005;l&&this.S("html5_sabr_seek_no_shift_tolerance")&&(p=0);if(Math.abs(G-this.X)<=p&&this.XJ)return this.B;e&&(p=G,(this.md.Ef()||this.S("html5_log_seek_reasons"))&& this.jJ.FJ("seekreason",{reason:e,tgt:p}));w&&(this.GH.X=w);this.XJ&&MP(this);this.B||(this.B=new iV);G&&!isFinite(G)&&mA9(this,!1);(e=a||K)||(e=G,e=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&this.mediaElement.fk()>0&&or(this.mediaElement)>0)||NJ(this.videoData)&&this.b6()===this.LD(!1)?0:isFinite(e)||!NJ(this.videoData)));e||(G=Bw(this,G,x));G&&!isFinite(G)&&mA9(this,!1);this.G=G;this.qB=h;this.X=G;this.L=0;this.j&&(x=this.j,h=G,W4B(x,h,!1),ww9(x, h));x=this.jJ;h=G;e={RF:B,seekSource:w};x.Ld.G=h;a=x.gZ;a.mediaTime=h;a.j=!0;e.RF&&x.Ng(e);e=h>x.videoData.endSeconds&&h>x.videoData.limitedPlaybackDurationInSeconds;x.CF&&e&&isFinite(h)&&hkB(x);hB.start&&hkB(this.jJ);return this.B}; g.W.LD=function(G){if(!this.videoData.isLivePlayback)return DnX(this.jJ);var B;return GA(this.videoData)&&((B=this.mediaElement)==null?0:B.isPaused())&&this.videoData.j?(G=this.getCurrentTime(),IrK(this.lJ(G)*1E3)+G):this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&eO(this.videoData)&&this.videoData.j?G?this.videoData.j.XJ||0:this.videoData.j.G2||0:NJ(this.videoData)&&this.videoData.LN&&this.videoData.j?this.videoData.j.LD()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!G&& this.j?this.j.t$():DnX(this.jJ)+this.timestampOffset:this.mediaElement?sq()?IrK(this.mediaElement.eH().getTime()):or(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.W.b6=function(){if(g.AC(this.videoData)){var G=this.jJ;g.AC(G.videoData);var B,a;return(a=(B=G.F5)==null?void 0:B.b6())!=null?a:G.videoData.b6()}if(this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&eO(this.videoData)){var V;return((V=this.videoData.j)==null?void 0:V.dW)||0}B=this.videoData?this.videoData.b6()+this.timestampOffset:this.timestampOffset;return GA(this.videoData)&&this.videoData.j&&(a=Number((G=this.videoData.progressBarStartPosition)==null?void 0:G.utcTimeMillis)/1E3,G= this.getCurrentTime(),G=this.lJ(G)-G,!isNaN(a)&&!isNaN(G))?Math.max(B,a-G):B}; g.W.Ll=function(){this.B||this.seekTo(this.G,{Tt:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.W.qa=function(){return this.XJ&&!isFinite(this.X)}; g.W.yb=function(){IYg(this,null);this.GH.dispose();g.r.prototype.yb.call(this)}; g.W.Nd=function(){var G={};this.CN&&Object.assign(G,this.CN.Nd());this.mediaElement&&Object.assign(G,this.mediaElement.Nd());return G}; g.W.qF=function(G){this.timestampOffset=G}; g.W.getStreamTimeOffset=function(){return NJ(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0}; g.W.F3=function(){return this.timestampOffset}; g.W.lJ=function(G){return this.videoData&&this.videoData.j?this.videoData.j.lJ(G-this.timestampOffset):NaN}; g.W.GK=function(){if(!this.mediaElement)return 0;if(n9(this.videoData)){var G=this.mediaElement,B=G.yk();G=(lV(B)>0&&G.getDuration()?B.end(B.length-1):0)+this.timestampOffset-this.b6();B=this.LD()-this.b6();return Math.max(0,Math.min(1,G/B))}return this.mediaElement.GK()}; g.W.WF=function(G){this.W&&(this.W.j=G)}; g.W.je=function(G,B){this.jJ.FJ("requestUtcSeek",{time:G});eO(this.videoData)&&this.S("html5_sabr_enable_utc_seek_requests")&&(this.MB=G);var a;(a=this.CN)==null||a.je(G);B&&(this.HS=B)}; g.W.aH=function(G){eO(this.videoData)&&this.S("html5_sabr_enable_utc_seek_requests")&&(this.MB=void 0);if(this.HS)this.jJ.FJ("utcSeekingFallback",{source:"streamTime",timeSeconds:this.HS}),this.jJ.seekTo(this.HS,{Tt:"utcSeekingFallback_streamTime"}),this.HS=0;else{var B=this.getCurrentTime();isNaN(B)||(G=this.lJ(B)-G,B-=G,this.jJ.FJ("utcSeekingFallback",{source:"estimate",timeSeconds:B}),this.jJ.seekTo(B,{Tt:"utcSeekingFallback_estimate"}))}}; g.W.j2=function(){this.HS=0}; g.W.S=function(G){return this.md&&this.md.S(G)};g.t(ai,g.r);ai.prototype.start=function(){this.X.start()}; ai.prototype.stop=function(){this.X.stop()}; ai.prototype.clear=function(){for(var G=g.m(this.j.values()),B=G.next();!B.done;B=G.next())B.value.clear()}; ai.prototype.sample=function(){for(var G=g.m(this.C),B=G.next();!B.done;B=G.next()){var a=g.m(B.value);B=a.next().value;a=a.next().value;this.j.has(B)||this.j.set(B,new DAH(j6a.has(B)));this.j.get(B).update(a())}this.X.start()}; var j6a=new Set(["networkactivity"]);DAH.prototype.update=function(G){this.j?(this.buffer.add(G-this.bR||0),this.bR=G):this.buffer.add(G)}; DAH.prototype.clear=function(){this.buffer.clear();this.bR=0};h6.prototype.Em=function(){return this.started}; h6.prototype.start=function(){this.started=!0}; h6.prototype.reset=function(){this.finished=this.started=!1};var $AV=!1;g.t(g.KO,g.wI);g.W=g.KO.prototype;g.W.yb=function(){this.logger.debug("dispose");g.Ih(this.mR);T0B(this.Ry);this.visibility.unsubscribe("visibilitystatechange",this.Ry);P2V(this);NA(this);g.q1.QC(this.II);this.tI();this.dG=null;g.WW(this.videoData);g.WW(this.q$);g.WW(this.YK);g.WW(this.j0);g.wl(this.cyS);this.CF=null;g.wI.prototype.yb.call(this)}; g.W.G$=function(G,B,a,V,x){if(this.md.S("html5_log_ad_playback_docid")){var h=this.Kh();if(h.qoe){h=h.qoe;var e=this.md.zH||"yt";g.UL(h,g.mR(h.provider),"ad_playback",[G,B,a,x,e])}}else this.Kh().G$(G,B,a);this.S("html5_log_media_perf_info")&&this.FJ("adloudness",{ld:V.toFixed(3),cpn:G})}; g.W.AU=function(){var G;return(G=this.CN)==null?void 0:G.AU()}; g.W.B_=function(){var G;return(G=this.CN)==null?void 0:G.B_()}; g.W.Ly=function(){var G;return(G=this.CN)==null?void 0:G.Ly()}; g.W.MS=function(){var G;return(G=this.CN)==null?void 0:G.MS()}; g.W.LM=function(){return this.videoData.LM()}; g.W.ZU=function(){return this.S("html5_not_reset_media_source")&&!this.LM()&&!this.videoData.isLivePlayback&&g.rB(this.videoData)&&!this.md.supportsGaplessShorts()}; g.W.Mg=function(){if(this.videoData.V){var G=this.videoData,B;if(!(B=this.videoData.kR)){var a;B=(a=this.qQ.KN())==null?void 0:a.AU()}G.kR=B;G=this.videoData;if(!(B=this.videoData.Z1)){var V;B=(V=this.qQ.KN())==null?void 0:V.B_()}G.Z1=B}if(wkV(this.videoData)||!MJ(this.videoData))V=this.videoData.errorDetail,this.Ev(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),V,V,this.videoData.If||void 0);this.S("html5_generate_content_po_token")&&this.vK();this.S("html5_enable_d6de4")&& this.d$();if(this.S("html5_ssap_cleanup_player_switch_ad_player")||this.S("html5_ssap_cleanup_ad_player_on_new_data"))if(V=this.qQ.VK())this.bV=V.clientPlaybackNonce}; g.W.Y7=function(){return this.WN}; g.W.aq=function(){!this.h3||this.h3.TH();this.h3=new g.rd(new Zn(this.videoData,this.md,this));this.WN=new Xp(this.md,this,this.h3)}; g.W.getVideoData=function(){return this.videoData}; g.W.U=function(){return this.md}; g.W.J4=function(G){return this.g_.J4(this.dG,G===void 0?!1:G)}; g.W.Kh=function(G){if(G)a:{for(var B=this.WN,a=g.m(B.j.values()),V=a.next();!V.done;V=a.next())if(V=V.value,V.getVideoData().videoId===G){G=V;break a}G=B.X}else G=this.WN.Kh();return G}; g.W.xT=function(){return this.visibility}; g.W.fK=function(){return this.mediaElement&&this.mediaElement.df()?this.mediaElement.dO():null}; g.W.Zc=function(){return this.mediaElement}; g.W.nZ=function(){if(this.S("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.U().L&&this.U().houseBrandUserStatus&&this.FJ("hbut",{status:this.U().houseBrandUserStatus});if(this.videoData.I4())return!0;this.Ev("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.W.iq=function(G){(G=G===void 0?!1:G)||g.AC(this.videoData)||$Q(this.Kh());this.tJ=G;!this.nZ()||this.gK.Em()?g.yI(this.md)&&this.videoData.isLivePlayback&&this.gK.Em()&&!this.gK.finished&&!this.tJ&&this.Qy():(this.gK.start(),G=this.Kh(),g.mR(G.provider),G.qoe&&AGc(G.qoe),this.Qy())}; g.W.Qy=function(){if(this.videoData.isLoaded()){var G=this.q$;g.kf(G.Rn.experiments,"html5_player_min_build_cl")>0&&g.kf(G.Rn.experiments,"html5_player_min_build_cl")>733552769&&GoX(G,"oldplayer");BoV(this)}else this.videoData.Ki||this.videoData.mf?this.tJ&&g.yI(this.md)&&this.videoData.isLivePlayback||(this.videoData.Ki?Fyc(this.videoData):(G=this.Kh(),G.qoe&&(G=G.qoe,jx(G,"protected"),G.provider.videoData.B?G.xq():G.provider.videoData.subscribe("dataloaded",G.xq,G)),uKg(this.videoData))):!this.videoData.loading&& this.yh&&odz(this)}; g.W.eP=function(G){this.EZ=G;this.CN&&(qNz(this.CN,new g.Vn(G)),this.FJ("sdai",{sdsstm:1}))}; g.W.hg=function(G){this.F5=G;this.CN&&this.CN.hg(G)}; g.W.Nn=ay(16);g.W.isFullscreen=function(){return this.visibility.isFullscreen()}; g.W.isBackground=function(){return this.visibility.isBackground()}; g.W.LL=function(){var G=this;this.logger.debug("Updating for format change");l2(this).then(function(){return wM(G)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.W.D4=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.iq();this.nZ()&&!g.F(this.playerState,128)&&(this.DI.Em()||(this.DI.start(),this.videoData.Ru?this.R0(h5(this.playerState,4)):this.R0(h5(h5(this.playerState,8),1))),MRV(this))}; g.W.uT=function(){return this.gK.finished}; g.W.sendAbandonmentPing=function(){g.F(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.U7(!0),P2V(this),g.q1.QC(this.II))}; g.W.Ag=function(G,B){G=G===void 0?!0:G;(B===void 0||B)&&this.mediaElement&&this.mediaElement.pause();this.R0(G?new g.aF(14):new g.aF)}; g.W.Bm=function(){this.Kh().jy()}; g.W.Ev=function(G,B,a,V,x,h){this.logger.debug(function(){return"set player error: ec="+G+", detail="+x}); var e,w;g.jH(rDW,a)?e=a:a?w=a:e="GENERIC_WITHOUT_LINK";V=(V||"")+(";a6s."+KH());if(G==="auth"||G==="drm.auth"||G==="heartbeat.stop")a&&(V+=";r."+a.replaceAll(" ","_")),h&&(V+="sr."+h.replaceAll(" ","_"));B={errorCode:G,errorDetail:x,errorMessage:w||g.QY[e]||"",kN:e,If:h||"",GO:V,JT:B,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=G;kd(this,"dataloaderror");this.R0(x_(this.playerState,128,B));g.q1.QC(this.II);NA(this);this.jF()}; g.W.Za=function(G){this.vB=this.vB.filter(function(B){return G!==B}); this.logger.debug(function(){return"set preroll ready for "+G}); g.AC(this.videoData)&&!this.KE()&&this.Ti.S6("pl_pr");this.DI.Em()&&MRV(this)}; g.W.KE=function(){var G;(G=!!this.vB.length)||(G=this.Zs.j.array[0],G=!!G&&G.start<=-0x8000000000000);return G}; g.W.Ps=function(){return this.Ld.Ps()}; g.W.isPlaying=function(){return this.playerState.isPlaying()}; g.W.WM=function(){return this.playerState.WM()&&this.videoData.Ru}; g.W.getPlayerState=function(){return this.playerState}; g.W.Kv=function(G){var B;(B=this.CN)==null||B.Kv(G)}; g.W.EX=function(G){var B;(B=this.CN)==null||B.EX(G)}; g.W.getPlayerType=function(){return this.playerType}; g.W.getPreferredQuality=function(){if(this.dG){var G=this.dG;G=G.videoData.DA.compose(G.videoData.xm);G=ea(G)}else G="auto";return G}; g.W.J2=ay(22);g.W.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.W.setMediaElement=function(G){this.logger.debug("set media element");if(this.mediaElement&&G.dO()===this.mediaElement.dO()&&(G.isView()||this.mediaElement.isView())){if(G.isView()||!this.mediaElement.isView())this.Z4(),this.mediaElement=G,this.mediaElement.jJ=this,IMB(this),this.Ld.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.tI();if(!this.playerState.isError()){var B=e7(this.playerState,512);g.F(B,8)&&!g.F(B,2)&&(B=h5(B,1));G.isView()&&(B=e7(B,64));this.R0(B)}this.mediaElement= G;this.mediaElement.jJ=this;!g.yI(this.md)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);IMB(this);this.Ld.setMediaElement(this.mediaElement);this.S("html5_prewarm_media_source")&&!this.q$.zC()&&RzA(this.mediaElement)}}; g.W.tI=function(G,B,a){G=G===void 0?!1:G;B=B===void 0?!1:B;a=a===void 0?!1:a;this.logger.debug("remove media element");if(this.mediaElement){var V=this.getCurrentTime();V>0&&(this.Ld.G=V);this.Ld.setMediaElement(null);!G&&this.ZU()?Noy(this):this.Zq(a);this.CN&&(AG(this.CN),t6(this,B));this.jX.stop();if(this.mediaElement&&(!this.DI.Em()&&!this.Oa()||this.playerState.isError()||g.F(this.playerState,2)||this.R0(h5(this.playerState,512)),this.mediaElement)){this.Z4();if(G||!this.mediaElement.isView())this.Ti.xP("mesv_s"), this.mediaElement.stopVideo(),m4(this);this.mediaElement=this.mediaElement.jJ=null}}}; g.W.playVideo=function(G,B){G=G===void 0?!1:G;B=B===void 0?!1:B;var a=this,V,x,h,e,w,K;return g.v(function(l){if(l.j==1){a.logger.debug("start play video");var k=window.google_image_requests;k&&k.length>10&&(window.google_image_requests=k.slice(-10));if(g.F(a.playerState,128))return l.return();if(a.q$.aX())return a.publish("signatureexpired"),l.return();a.mediaElement&&$Q(a.Kh());a.D4();(g.F(a.playerState,64)||G)&&a.R0(h5(a.playerState,8));return a.DI.finished&&a.mediaElement?a.dG||!a.a7?l.kf(2): g.f(l,a.a7,3):l.return()}if(l.j!=2&&g.F(a.playerState,128))return l.return();if(!a.videoData.C)return a.videoData.isLivePlayback&&!g.Bo(a.md.B,!0)?(V="html5.unsupportedlive",x=2):(V=a.videoData.LM()?"fmt.unplayable":"fmt.noneavailable",x=1),g.Zb(Error("selectableFormats")),a.Ev(V,x,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l.return();if(a.vG()&&a.videoData.C.j)return a.logger.debug("rebuild playbackData for airplay"),l.return(l2(a));if(oa(a))k=a.Ld,kX(k.videoData)?!k.isAtLiveHead(k.getCurrentTime())&& k.Ps()&&k.jJ.seekTo(Infinity,{Tt:"seektimeline_peggedToLive",seekSource:34}):g.AC(k.videoData)&&k.getCurrentTime()e;e=B.S("html5_dont_save_under_1080")&&e<1080;if(!x||!h&&!e){var w;x=wIH(B,(w=V.j)==null?void 0:w.videoInfos);w=B.jJ.getPlaybackRate();w>1&&x&&(w=r5x(B.md.B,V.j.videoInfos,w),G.j!==0&&w=480;if(B.S("html5_exponential_memory_for_sticky")){K=B.md.L3;l=1;var k=k===void 0?!1:k;BSH(K,"sticky-lifetime");K.values["sticky-lifetime"]&&K.iI["sticky-lifetime"]||(K.values["sticky-lifetime"]=0,K.iI["sticky-lifetime"]=0);k&&Ob(K,"sticky-lifetime")>.0625&&(l=K.iI["sticky-lifetime"]*2);K.values["sticky-lifetime"]+=1*Math.pow(2,K.j/l);K.iI["sticky-lifetime"]=l; K.G.start()}if(B.S("html5_perf_cap_override_sticky")){k=B.C;K=B.S("html5_perserve_av1_perf_cap");K=K===void 0?!1:K;if(K===void 0?0:K){l=XX();B=g.m(Object.keys(l));for(G=B.next();!G.done;G=B.next())G=G.value,G.indexOf("1")!==0&&delete l[G];g.D0("yt-player-performance-cap",l,2592E3)}else g.RP("yt-player-performance-cap");$fg(K);if(K){K=g.m(cJ.keys());for(l=K.next();!l.done;l=K.next())l=l.value,l.startsWith("1")||cJ.delete(l);K=g.m(CW.values());for(l=K.next();!l.done;l=K.next())l=l.value,l.startsWith("1")|| CW.delete(l);K=g.m(k.keys());for(l=K.next();!l.done;l=K.next())l=l.value,l.startsWith("1")||k.delete(l)}else cJ.clear(),CW.clear(),k.clear()}}}this.CN&&(k=this.CN,a=a||"",k.policy.j?J9(k.X.j,a):J9(k.j.B,a));this.q4()}; g.W.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?ea(this.videoData.DA):hq[r2()]}; g.W.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.W.setUserAudio51Preference=function(G,B){this.getUserAudio51Preference()!==G&&(this.FJ("toggle51",{pref:G}),g.D0("yt-player-audio51",G,B?31536E3:2592E3),this.LL())}; g.W.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.W.setProximaLatencyPreference=function(G){var B=this.getProximaLatencyPreference();this.FJ("proxima",{pref:G});g.D0("yt-player-proxima-pref",G,31536E3);B!==G&&(G=this.Ld,G.Vb=!0,G.jJ.seekTo(Infinity,{Tt:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.W.getProximaLatencyPreference=function(){var G;return(G=$A())!=null?G:0}; g.W.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.W.vK=function(){this.videoData.videoId?this.qQ.vK(this.videoData):this.FJ("povid",{})}; g.W.d$=function(){this.videoData.videoId?this.qQ.d$(this.videoData):this.FJ("piavid",{})}; g.W.q4=function(){if(!this.TH()&&!g.F(this.playerState,128)&&this.videoData.C){if(this.videoData.C.j)Ww(this);else{var G=z8(this),B=this.videoData;a:{var a=this.videoData.R4;if(G.j){for(var V=g.m(a),x=V.next();!x.done;x=V.next()){x=x.value;var h=x.getInfo(),e=g.Xa[h.video.quality];if((!G.C||h.video.quality!=="auto")&&e<=G.j){a=x;break a}}a=a[a.length-1]}else a=a[0]}B.Dx=a;ekV(this,G.reason,Unc(this,this.videoData.Dx))}if(this.S("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.Ld.V= !1,this.playVideo()}}; g.W.hG=function(G,B){if(this.TH()||g.F(this.playerState,128))return!1;var a,V=!((a=this.videoData.C)==null||!a.j);a=V&&B?this.getCurrentTime()-this.F3():NaN;if(this.md.experiments.Or("html5_record_audio_format_intent")){var x=this.Kh();if(x.qoe){x=x.qoe;var h=[G.VW.id,isNaN(a)?"m":"t"];g.UL(x,g.mR(x.provider),"afi",h)}}if(V)return B&&(V=pwy(this.Ld),this.FJ("aswh",{id:G.id,xtags:G.xtags,bh:V.toFixed(3)})),this.CN.setAudioTrack(G,a,B),!0;if(w$K(this)){a:{B=this.mediaElement.audioTracks();for(V=0;V< B.length;++V)if(a=B[V],a.label===G.VW.getName()){if(a.enabled){B=!1;break a}B=a.enabled=!0;break a}B=void 0}B&&this.FJ("hlsaudio",{id:G.id})}else{a:if(B=this.videoData,B.G&&!op(B.G)||G===B.t7||!B.R4||B.R4.length<=0)B=!1;else{V=g.m(B.R4);for(a=V.next();!a.done;a=V.next()){a=a.value;if(!(a instanceof K$)){B=!1;break a}x=G.VW.getId();a.X&&(jVH(a.X,x),a.kD=null)}B.t7=G;B=!0}B&&wM(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.FJ("hlsaudio",{id:G.id}))}return!0}; g.W.getAvailableAudioTracks=function(){return g.AC(this.videoData)&&this.F5?uUY(this.F5).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; g.W.getAudioTrack=function(){if(w$K(this)){var G=lMB(this);if(G)return G}return this.videoData.getAudioTrack()}; g.W.DD=function(){if(this.videoData.S("html5_trigger_loader_when_idle_network")&&!this.videoData.SE()&&eO(this.videoData)){var G;(G=this.CN)!=null&&G.Bn()}}; g.W.kM=function(){if(V3(this.videoData)&&this.videoData.S("html5_gapless_append_early")){var G;(G=this.CN)!=null&&G.Bn()}}; g.W.d8=function(G){G=G===void 0?!1:G;if(this.CN){var B=this.CN,a=B.d8;var V=this.videoData;V=V.S("html5_ssdai_use_post_for_media")&&V.enableServerStitchedDai?!1:NJ(V)&&V.Cn&&!V.isAd();a.call(B,V,G)}}; g.W.Zq=function(G){G=G===void 0?!1:G;this.tX&&(this.logger.debug("remove media source"),S5B(this.tX),this.d8(G),this.tX.dispose(),this.tX=null)}; g.W.Iu=function(){return this.tX}; g.W.Wc=function(G,B,a,V){function x(e){try{tAy(h,e,B,a)}catch(w){g.Zb(w),h.handleError(new yH("fmt.unplayable",{msi:"1",ename:w&&typeof w==="object"&&"name"in w?String(w.name):void 0},1))}} var h=this;B=B===void 0?!1:B;a=a===void 0?!1:a;Cdb(this,V===void 0?!1:V);this.tX=G;this.ZU()&&Aj(this.tX)==="open"?x(this.tX):nNB(this.tX,x)}; g.W.jM=function(G){this.logger.debug("onNeedKeyInfo");this.FH.set(G.initData,G);this.gC&&(this.gC.jM(G),this.S("html5_eme_loader_sync")||this.FH.remove(G.initData))}; g.W.EQ=function(G){this.videoData.eM=g.a1("auto",G,!1,"u");Ww(this)}; g.W.WF=function(G){var B=G.reason,a=G.j.info,V=G.token,x=G.videoId,h=this.Kh(x),e=g.AC(this.videoData)?h.getVideoData():this.videoData;if(a!==e.G){var w=!e.G;e.G=a;B!=="m"&&B!=="t"&&(B=w?"i":"a");var K=B==="m"||B==="t";this.md.experiments.Or("html5_refactor_sabr_audio_format_selection_logging")?this.ao=new VdV(e,a,B,"",V,x):h.O0(new VdV(e,a,B,"",V));this.publish("internalaudioformatchange",e,!w&&K)}this.Ld.WF(G.j.index)}; g.W.Jj=function(G){this.publish("localmediachange",G)}; g.W.xv=function(G){G=G===void 0?{}:G;var B;(B=this.CN)==null||B.xv(this.md,hQ(this.videoData),G)}; g.W.aX=function(){return this.q$.aX()}; g.W.bE=function(G){this.I0(new yH("staleconfig",{reason:G}))}; g.W.handleError=function(G){this.q$.handleError(G)}; g.W.zC=function(){return this.q$.zC()}; g.W.aH=function(G){this.Ld.aH(G)}; g.W.Jv=function(G,B,a){G=G===void 0?!1:G;B=B===void 0?!1:B;a=a===void 0?!1:a;var V=this,x,h,e;return g.v(function(w){if(w.j==1){V.CN&&V.CN.QT();V.CN&&V.CN.TH()&&NA(V);if(V.S("html5_enable_vp9_fairplay")&&V.LM()&&(x=V.videoData.j)!=null)for(var K in x.j)x.j.hasOwnProperty(K)&&(x.j[K].j=null,x.j[K].C=!1);V.R0(h5(V.playerState,2048));V.S("html5_ssap_keep_media_on_finish_segment")&&g.AC(V.videoData)?V.publish("newelementrequired",a):V.publish("newelementrequired");return G?g.f(w,l2(V),2):w.kf(2)}V.videoData.SE()&& ((h=V.CN)==null?0:h.HS)&&!oa(V)&&((e=V.isAtLiveHead())&&kX(V.videoData)?V.seekTo(Infinity,{Tt:"videoPlayer_getNewElement"}):V.videoData.Ai&&V.CN&&(K=V.CN,K.hX.SE&&(K.hX.Ai||K.hX.G||K.hX.isPremiere?(K.seek(0,{Tt:"loader_resetSqless"}),K.videoTrack.W=!0,K.audioTrack.W=!0,K.videoTrack.B=!0,K.audioTrack.B=!0):j2(K.hX)&&aD(K))));B&&V.seekTo(0,{seekSource:105});g.F(V.playerState,8)&&(V.S("html5_ssap_keep_media_on_finish_segment")&&g.AC(V.videoData)?V.playVideo(!1,a):V.playVideo());g.pV(w)})}; g.W.fQ=function(G){this.FJ("hgte",{ne:+G});this.videoData.V=!1;G&&this.Jv();this.CN&&lwz(this.CN)}; g.W.FD=function(G){this.FJ("newelem",{r:G});this.Jv()}; g.W.pauseVideo=function(G){G=G===void 0?!1:G;if((g.F(this.playerState,64)||g.F(this.playerState,2))&&!G)if(g.F(this.playerState,8))this.R0(WN(this.playerState,4,8));else if(this.WM())wM(this);else return;g.F(this.playerState,128)||(G?this.R0(h5(this.playerState,256)):this.R0(WN(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.cF(this.videoData)&&this.CN&&t6(this,!1)}; g.W.stopVideo=function(){this.pauseVideo();this.CN&&(t6(this,!1),this.CN.lz())}; g.W.jF=function(G,B){G=G===void 0?!1:G;B=B===void 0?!1:B;if(this.ZU()&&B){var a;(a=this.mediaElement)==null||a.jF()}else{var V;(V=this.mediaElement)==null||V.stopVideo()}m4(this);NA(this);g.F(this.playerState,128)||(G?this.R0(e7(e7(h5(this.playerState,4),8),16)):this.R0(x_(this.playerState)));this.videoData.videoId&&this.md.LN.remove(this.videoData.videoId)}; g.W.seekTo=function(G,B){B=B===void 0?{}:B;this.logger.debug(function(){return"SeekTo "+G+", "+JSON.stringify(B)}); g.F(this.playerState,2)&&wM(this);B.jrf&&this.R0(h5(this.playerState,2048));B.seekSource!==58&&B.seekSource!==60||!this.S("html5_update_vss_during_gapless_seeking")||DPH(this.Kh(),B.seekSource);this.Ld.seekTo(G,B);this.Zs.sync()}; g.W.Ng=function(G){this.Ti.G.g4();g.F(this.playerState,32)||(this.R0(h5(this.playerState,32,G==null?void 0:G.seekSource)),g.F(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.BC()}; g.W.TM=function(G){G=G==null?void 0:G.seekSource;g.F(this.playerState,32)?(this.R0(WN(this.playerState,16,32,G)),this.publish("endseeking",this)):g.F(this.playerState,2)||this.R0(h5(this.playerState,16,G));this.Ti.G.j1(this.videoData,this.playerState.isPaused())}; g.W.S1=function(G){this.TM(G)}; g.W.BJ=function(){this.publish("SEEK_COMPLETE")}; g.W.Oq=function(){this.publish("onAbnormalityDetected")}; g.W.JE=function(G){var B=this.qQ,a=this.videoData.clientPlaybackNonce,V=this.playerType;if(G.scope===4){var x=G.type;if(x){var h=B.mH(),e=h.getVideoData().clientPlaybackNonce;V===1&&(e=a);(B=zBV(B,e))?(a=B.getVideoData())&&(G.writePolicy===2&&a.sabrContextUpdates.has(x)||a.sabrContextUpdates.set(x,G)):h.FJ("scuset",{ncpf:"1",ccpn:e,crcpn:a})}else g.Zb(Error("b/380308491: contextUpdateType is undefined"))}}; g.W.wi=function(){if(this.playerType===2)return this.qQ.wi("")}; g.W.getCurrentTime=function(){return this.Ld.getCurrentTime()}; g.W.Zo=function(){return this.Ld.Zo()}; g.W.SS=function(){return this.Ld.SS()}; g.W.sb=function(G){return this.F5&&(G=G||this.F5.M$())?xW(this.F5,G):this.SS()}; g.W.t$=function(){return this.Ld.t$()}; g.W.getPlaylistSequenceForTime=function(G){return this.videoData.getPlaylistSequenceForTime(G-this.F3())}; g.W.Sd=function(){var G=NaN;this.mediaElement&&(G=this.mediaElement.Sd());return G>=0?G:this.getCurrentTime()}; g.W.lJ=function(){var G;return((G=this.videoData.j)==null?0:G.lJ)?this.videoData.j.lJ(this.getCurrentTime()-this.F3()):this.mediaElement&&(G=this.mediaElement.eH())&&(G=G.getTime(),!isNaN(G))?G/1E3+this.getCurrentTime():NaN}; g.W.getDuration=function(G){return g.AC(this.videoData)&&this.F5?G?qxc(this.F5,G):JG(this.F5):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.F3():this.LD()?this.LD():0}; g.W.yx=function(){var G=new XQx;if(this.CN){var B=this.md.schedule,a=this.md.Ef();a=a===void 0?!1:a;G.T6=B.HS;G.Ml=B.qB;G.bandwidthEstimate=pI(B);if(a){a=(B.V.cG()*1E3).toFixed();var V=(B.Zx.cG()*1E3).toFixed(),x=mG(B).toFixed(2),h=((B.W.cG()||0)*1E9).toFixed(2),e=B.C.cG().toFixed(0),w=B.LN.cG().toFixed(0),K=B.Y.percentile(.5).toFixed(2),l=B.Y.percentile(.92).toFixed(2),k=B.Y.percentile(.96).toFixed(2),N=B.Y.percentile(.98).toFixed(2);B.j?B.j.reset():B.j=new wG;B.j.add(B.GH);B.j.add(B.interruptions.length); for(var d=0,C=B.interruptions.length-1;C>=0;C--){var z=B.interruptions[C];B.j.add(z-d);d=z}d=0;for(C=B.G.length-1;C>=0;C--){z=B.G[C];var p=z.stamp/36E5;B.j.add(p-d);d=p;B.j.add(z.net/1E3);B.j.add(z.max)}B=B.j.Ft();G.j={ttr:a,ttm:V,d:x,st:h,bw:e,abw:w,v50:K,v92:l,v96:k,v98:N,"int":B}}XFV(this.CN,G)}else this.mediaElement&&(G.UI=MZ(this.mediaElement));G.T6=this.T6;G.Ml=this.Ml;G.C=this.isAtLiveHead()&&this.isPlaying()?Yk9(this):NaN;return G}; g.W.oZ=function(G,B){this.Ml+=G;this.T6+=B}; g.W.GK=function(){return this.mediaElement?g.cF(this.videoData)?1:n9(this.videoData)?this.isAtLiveHead()||this.Ps()?1:this.Ld.GK():this.mediaElement.GK():0}; g.W.UE=function(){var G=this.kE,B=xd(G,"bandwidth"),a=xd(G,"bufferhealth"),V=xd(G,"livelatency"),x=xd(G,"networkactivity"),h=V9(G,"bandwidth"),e=V9(G,"bufferhealth"),w=V9(G,"livelatency");G=V9(G,"networkactivity");var K=this.dg(),l=K.droppedVideoFrames;K=K.totalVideoFrames;var k=this.getCurrentTime();if(this.gC){var N="IT/"+(this.gC.j.getInfo()+"/"+ea(this.dn()));N+="/"+this.gC.getInfo()}else N="";var d=this.isGapless(),C=this.AI(),z=this.Db(),p=g.CO(this),O=this.getPlayerState(),b=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var c=0;var H="";if(this.EZ){if(this.EZ.W3){H="D,";break a}c=this.EZ.xN();H=this.EZ.M$().substring(0,4)}else this.F5&&(c=this.F5.xN(),H=this.F5.M$().substring(0,4));c>0?(c="AD"+c+", ",H&&(c+=H+", "),H=c):H=""}return{uV:h,gD:e,currentTime:k,ip:N,droppedVideoFrames:l,isGapless:d,AI:C,Q6:z,Ii:B,Ue:a,ai:V,pz:x,nz:w,Bk:G,J_:p,playerState:O,Pi:b,bD:H,totalVideoFrames:K}}; g.W.Nd=function(G){var B={};if(G===void 0?0:G){Object.assign(B,this.Kh().Nd());this.mediaElement&&(Object.assign(B,this.mediaElement.Nd()),Object.assign(B,this.dg()));this.CN&&Object.assign(B,this.CN.Nd());this.gC&&(B.drm=JSON.stringify(this.gC.Nd()));B.state=this.playerState.state.toString(16);g.F(this.playerState,128)&&(B.debug_error=JSON.stringify(this.playerState.CR));this.KE()&&(B.prerolls=this.vB.join(","));this.videoData.Qv&&(B.ismb=this.videoData.Qv);this.videoData.latencyClass!=="UNKNOWN"&& (B.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(B.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)B.is_mosaic=1;this.videoData.cotn&&(B.is_offline=1,B.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(B.playerResponseCpn=this.videoData.playerResponseCpn);this.qQ.isOrchestrationLeader()&&(B.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&& pw(this.videoData.j)&&(B.segduration=pw(this.videoData.j)),G=this.Ld,B.lat=G.W?G8c(G.W.G):0,B.liveutcstart=this.videoData.liveUtcStartSeconds);B.relative_loudness=this.videoData.XQ.toFixed(3);if(G=g.CO(this))B.optimal_format=G.video.qualityLabel;B.user_qual=r2();B.release_version="youtube.player.web_20250304_00_RC00";g.AC(this.videoData)&&this.F5&&(B.ssap=hG(this.F5))}B.debug_videoId=this.videoData.videoId;return B}; g.W.addCueRange=function(G){this.Dq([G])}; g.W.removeCueRange=function(G){this.Zs.FO([G])}; g.W.Qq=function(){this.Zs.sync()}; g.W.oC=function(G,B){return this.Zs.oC(G,B)}; g.W.Dq=function(G,B){this.Zs.z1(G,B)}; g.W.sJ=function(G){this.Zs.FO(G)}; g.W.Xj=function(G){var B=this.Zs;G.length<=0||B.TH()||(G=B.j,G.array.sort(G.j))}; g.W.fM=function(){return this.Zs.fM()||[]}; g.W.S7=function(){return this.SN}; g.W.vG=function(){return this.visibility.vG()}; g.W.WE=function(){this.mediaElement&&this.mediaElement.WE()}; g.W.lHJ=function(){kd(this)}; g.W.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.W.Z4=function(){g.nU(this.sB)}; g.W.Cf=function(){this.BC();this.publish("onLoadProgress",this,this.GK())}; g.W.l5=function(G){var B=G.target.sK();if(this.mediaElement&&this.mediaElement.sK()&&this.mediaElement.sK()===B){fMH(this,G.type);switch(G.type){case "error":var a=BN(this.mediaElement)||"",V=this.mediaElement.Qd();if(a==="capability.changed"){this.S("html5_restart_on_capability_change")?(this.FJ("capchg",{msg:V}),this.Jv(!0)):l2(this);return}if(this.mediaElement.hasError()&&(iuK(this.q$,a,{msg:V})||g.AC(this.videoData)&&this.F5&&(V=this.playerState.CR,this.F5.handleError(a,V==null?void 0:V.JT))))return; if(this.isBackground()&&this.mediaElement.Vk()===4){this.jF();dM(this,"unplayable");return}break;case "durationchange":a=this.mediaElement.getDuration();isFinite(a)&&(!this.tX||a>0)&&a!==1&&this.Qf(a);break;case "ratechange":this.CN&&this.CN.setPlaybackRate(this.mediaElement.getPlaybackRate());Apb(this.Zs);this.Kh().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":vzx(this);this.publish("onLoadedMetadata");p$B(this);a=this.lJ();this.videoData.YP&&(this.videoData.YP=a);break; case "loadstart":p$B(this);break;case "progress":case "suspend":g.kf(this.md.experiments,"html5_progress_event_throttle_ms")>0?this.rP.n6():this.Cf();break;case "playing":this.Ti.xP("plev");this.Jw&&!oa(this)&&(this.Jw=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Tt:"videoplayer_onPlaying"})));break;case "timeupdate":a=this.mediaElement&&!this.mediaElement.getCurrentTime();V=this.mediaElement&&this.mediaElement.fk()===0;if(a&&(!this.Gp||V))return; this.Gp=this.Gp||!!this.mediaElement.getCurrentTime();gzX(this);this.BC();if(!this.mediaElement||this.mediaElement.sK()!==B)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.iA().length>0&&this.mediaElement.yk().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.CN)return;this.S("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.fk()>2||!this.mediaElement.isSeeking()&& wZ(this.mediaElement.yk(),this.mediaElement.getCurrentTime()))&&(a=this.mediaElement.Nd(),a.bh=MZ(this.mediaElement).toFixed(3),this.FJ("uwe",a));g.AC(this.videoData)&&this.F5&&DXB(this.F5,this.mediaElement.getCurrentTime());break;case "resize":vzx(this);this.videoData.X&&this.videoData.X.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.hR&&g.F(this.playerState,8)&&!g.F(this.playerState,1024)&&this.getCurrentTime()===0&&g.It){dM(this,"safari_autoplay_disabled"); return}}if(this.mediaElement&&this.mediaElement.sK()===B){fYc(this.Ld,G,this.F5||void 0);this.publish("videoelementevent",G);B=this.playerState;V=this.gZ;var x=this.mediaElement;a=this.videoData.clientPlaybackNonce;var h=g.AC(this.videoData)&&this.F5?JG(this.F5):void 0;if(!g.F(B,128)){var e=B.state;x=x?x:G.target;var w=x.getCurrentTime();if(!g.F(B,64)||G.type!=="ended"&&G.type!=="pause"){h=h||x.getDuration();h=x.isEnded()||w>1&&Math.abs(w-h)<1.1;var K=G.type==="pause"&&x.isEnded();w=G.type==="ended"|| G.type==="waiting"||G.type==="timeupdate"&&!g.F(B,4)&&!uS(V,w);if(K||h&&w)x.ub()>0&&x.sK()&&(e=14);else switch(G.type){case "error":BN(x)&&(e|=128);break;case "pause":g.F(B,256)?(e^=256)||(e=64):g.F(B,32)||g.F(B,2)||g.F(B,4)||(e=4,g.F(B,1)&&g.F(B,8)&&(e|=1));break;case "playing":w=e;e=(e|8)&-1093;w&4?(e|=1,VQ(V,x,!0)):uS(V,x.getCurrentTime())&&(e&=-2);g.F(B,1)&&VQ(V,x)&&(e|=1);break;case "seeking":e|=16;g.F(B,8)&&(e|=1);e&=-3;break;case "seeked":e&=-17;VQ(V,x,!0);break;case "waiting":g.F(B,2)||(e|= 1);VQ(V,x);break;case "timeupdate":w=g.F(B,16),h=g.F(B,4),(g.F(B,8)||w)&&!h&&uS(V,x.getCurrentTime())&&(e=8),VQ(V,x)&&(e|=1)}}V=e;e=null;V&128&&(e=G.target,x=BN(e),w=1,x?(x==="capability.changed"&&(w=2),h="GENERIC_WITHOUT_LINK",K=e.Nd(),K.mediaElem="1",/AUDIO_RENDERER/.test(e.Qd())&&(h="HTML5_AUDIO_RENDERER_ERROR"),e={errorCode:x,errorMessage:g.QY[h]||"",kN:h,GO:b5(K),JT:w,cpn:B.CR?B.CR.cpn:""}):e=null,e&&(e.cpn=a));B=x_(B,V,e)}!g.F(this.playerState,1)&&g.F(B,1)&&nzK(this,"evt"+G.type);this.R0(B)}}}; g.W.RPX=function(G){G=G.j.availability==="available";G!==this.SN&&(this.SN=G,this.publish("airplayavailabilitychange"))}; g.W.dQS=function(){var G=(0,g.yT)(),B=this.mediaElement.vG();this.FJ("airplay",{ia:B});!B&&!isNaN(this.W2)&&G-this.W2<2E3||(this.W2=G,B!==this.vG()&&(G=this.visibility,G.j!==B&&(G.j=B,G.Ry()),this.FJ("airplay",{rbld:B}),this.LL()),this.publish("airplayactivechange"))}; g.W.QI=function(G){if(this.CN){var B=this.CN,a=B.G,V=B.getCurrentTime(),x=Date.now()-a.Y;a.Y=NaN;a.FJ("sdai",{adfetchdone:G,d:x});G&&!isNaN(a.W)&&a.X!==3&&$Y(a.CN,V,a.W,a.B);a.policy.B?a.C=NaN:a.G=NaN;ZT(a,4,a.X===3?"adfps":"adf");AG(B)}}; g.W.vI=function(){g.Ih(this.mR);this.jX.stop();this.videoData.HS=!0;this.md.Nk=!0;this.md.wO=0;var G=this.q$;if(G.videoData.X){var B=G.Rn.B,a=G.videoData.X.PS;B.X.has(a)&&(B.X.delete(a),a$(B))}G.j.stop();this.YI();g.F(this.playerState,8)&&this.R0(e7(this.playerState,65));this.tJ=!1;vQy(this.Kh());g.iC(this.YK);this.publish("playbackstarted");(G=g.LV("yt.scheduler.instance.clearPriorityThreshold"))?G():BL(0,0)}; g.W.YI=function(){var G=this.qQ.VK(),B={},a={};!QD("pbs",this.Ti.timerName)&&c4.measure&&c4.getEntriesByName&&(c4.getEntriesByName("mark_nr")[0]?h1x("mark_nr"):h1x());G.videoId&&(B.videoId=G.videoId);G.clientPlaybackNonce&&!this.S("web_player_early_cpn")&&(B.clientPlaybackNonce=G.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(a.isPausedOnLoad=!0);a.itag=G.X?Number(G.X.itag):-1;G.OZ&&(a.preloadType=String(this.eG?2:1));B.liveStreamMode=zll[UN(G)];B.playerInfo=a;this.Ti.infoGel(B); if(this.CN){G=this.CN.timing;window&&window.performance&&window.performance.getEntriesByName&&(G.C&&(B=window.performance.getEntriesByName(G.C),B.length&&(B=B[0],G.tick("vri",B.fetchStart),G.tick("vdns",B.domainLookupEnd),G.tick("vreq",B.requestStart),G.tick("vrc",B.responseEnd))),G.X&&(B=window.performance.getEntriesByName(G.X),B.length&&(B=B[0],G.tick("ari",B.fetchStart),G.tick("adns",B.domainLookupEnd),G.tick("areq",B.requestStart),G.tick("arc",B.responseEnd))));G=G.ticks;for(var V in G)G.hasOwnProperty(V)&& this.Ti.tick(V,G[V])}}; g.W.Hw=function(G,B,a){G=(G+(this.a_===3?.3:0))/B;B=Math.floor(G*4);B>this.a_&&(this.FJ("vpq",{q:B,cpn:a||this.videoData.clientPlaybackNonce,ratio:G.toFixed(3)}),this.a_=B)}; g.W.uE=function(){this.a_=-1}; g.W.BC=function(G){var B=this;G=G===void 0?!1:G;if(this.mediaElement&&this.videoData){UAc(this.Ld,this.isPlaying());var a=this.getCurrentTime();!this.CN||g.F(this.playerState,4)&&g.cF(this.videoData)||g.F(this.playerState,32)&&eO(this.videoData)||uV_(this.CN,a);this.S("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.Hw(a,this.videoData.lengthSeconds);a>5&&(this.Ld.G=a);var V=g.G0();V?g.q1.QC(this.II):g.me(this.II);var x=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!x||GA(this.videoData))&& !g.F(this.playerState,128)){var h=function(){if(B.mediaElement&&!g.F(B.playerState,128)){B.md.Ef()&&fMH(B,"pfx");var e=B.getCurrentTime();B.S("html5_buffer_underrun_transition_fix")&&(e-=B.F3());var w=MZ(B.mediaElement),K=g.F(B.playerState,8),l=uS(B.gZ,e),k=uMz(B.gZ,e,(0,g.yT)(),w);K&&l?B.R0(e7(B.playerState,1)):K&&k?(K=B.getDuration(),l=kX(B.videoData),K&&Math.abs(K-e)<1.1?(B.FJ("setended",{ct:e,bh:w,dur:K,live:l}),B.mediaElement.Y9()?(B.logger.debug("seek to 0 because of looping"),B.seekTo(0,{Tt:"videoplayer_loop", seekSource:37})):B.Ag()):(B.playerState.isBuffering()||nzK(B,"progress_fix"),B.R0(h5(B.playerState,1)))):(K&&!l&&!k&&e>0&&(K=(Date.now()-B.O_)/1E3,l=B.getDuration(),e>l-1&&B.FJ("misspg",{t:e.toFixed(2),d:l.toFixed(2),r:K.toFixed(2),bh:w.toFixed(2)})),B.playerState.isPaused()&&B.playerState.isBuffering()&&MZ(B.mediaElement)>5&&B.R0(e7(B.playerState,1)));B.BC()}}; this.mediaElement.iA().length===0?this.II=V?g.q1.mw(h,100):g.z9(h,100):this.II=V?g.q1.mw(h,500):g.z9(h,500)}this.videoData.Er=a;this.F5&&this.F5.fL();!G&&this.isPlaying()&&Ovb(this);IgH(this.g_,this.dG,this.Zc(),this.isBackground())&&Ww(this);this.publish("progresssync",this,G);x&&GA(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.W.bNJ=function(){this.Ev("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.W.Db=function(){return this.Kh().Db()}; g.W.ul=function(){return this.CN?this.CN.ul():pI(this.md.schedule,!0)}; g.W.R0=function(G){if(!g.wW(this.playerState,G)){this.logger.debug(function(){return"Setting state "+G.toString()}); var B=new g.NR(G,this.playerState);this.playerState=G;HvH(this);var a=!this.zO.length;this.zO.push(B);var V=this.mediaElement&&this.mediaElement.isSeeking();V=B.oldState.state===8&&!V;g.CY(B,1)&&V&&g.F(this.playerState,8)&&!g.F(this.playerState,64)&&this.CN&&(KBX(this.CN),this.mediaElement&&MZ(this.mediaElement)>=5&&tdb(this.g_,this.dG)&&Ww(this));(V=g.kf(this.md.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.F(G,1)&&(g.F(G,8)||g.F(G,16))?this.w0.start(V):this.w0.stop();(dv(B,8)<0|| g.CY(B,1024))&&this.jX.stop();!g.CY(B,8)||this.videoData.HS||g.F(B.state,1024)||this.jX.start();g.F(B.state,8)&&dv(B,16)<0&&!g.F(B.state,32)&&!g.F(B.state,2)&&this.playVideo();g.F(B.state,2)&&n9(this.videoData)&&(this.Qf(this.getCurrentTime()),this.BC(!0));g.CY(B,2)&&(this.U7(!0),this.md.Ef()&&this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&eO(this.videoData)&&this.videoData.j&&(V={minst:""+this.videoData.j.dW,cminst:""+(this.videoData.j.b6()+this.F3()),maxst:""+this.videoData.j.G2, hts:""+this.videoData.j.XJ,cmaxst:""+(this.videoData.j.LD()+this.F3())},this.FJ("sabrSeekableBoundaries",V)));g.CY(B,128)&&this.jF();this.videoData.j&&this.videoData.isLivePlayback&&!this.nC&&(dv(B,8)<0?WIX(this.videoData.j):g.CY(B,8)&&this.videoData.j.resume());gdV(this.Ld,B);SLb(this.Kh(),B);if(a&&!this.TH())try{for(var x=g.m(this.zO),h=x.next();!h.done;h=x.next()){var e=h.value;YLb(this.Zs,e);this.publish("statechange",e)}}finally{this.zO.length=0}}}; g.W.L_=function(){this.Ti.tick("qoes")}; g.W.Ll=function(){this.Ld.Ll()}; g.W.WX=function(G,B,a,V){a:{var x=this.q$;V=V===void 0?"LICENSE":V;a=a.substring(0,256);var h=cX(B);G==="drm.keyerror"&&this.gC&&this.gC.X.keys.length>1&&x.G<96&&(G="drm.sessionlimitexhausted",h=!1);if(h)if(x.videoData.X&&x.videoData.X.video.isHdr())agB(x,G);else{if(x.jJ.Ev(G,B,V,a),JTx(x,{detail:a}))break a}else x.I0(G,{detail:a});G==="drm.sessionlimitexhausted"&&(x.FJ("retrydrm",{sessionLimitExhausted:1}),x.G++,caV(x.jJ))}}; g.W.j4S=function(){var G=this,B=g.kf(this.md.experiments,"html5_license_constraint_delay"),a=Gp();B&&a?(B=new g.J8(function(){G.q4();kd(G)},B),g.X(this,B),B.start()):(this.q4(),kd(this))}; g.W.T5=function(G){this.publish("heartbeatparams",G)}; g.W.X1=function(G){this.FJ("keystatuses",zdB(G));var B="auto",a=!1;this.videoData.X&&(B=this.videoData.X.video.quality,a=this.videoData.X.video.isHdr());if(this.S("html5_drm_check_all_key_error_states")){var V=tXB(B,a);V=wd(G)?Ou_(G,V):G.G.includes(V)}else{a:{B=tXB(B,a);for(V in G.j)if(G.j[V].status==="output-restricted"){var x=G.j[V].type;if(B===""||x==="AUDIO"||B===x){V=!0;break a}}V=!1}V=!V}if(this.S("html5_enable_vp9_fairplay")){if(a)if(G.W){var h;if((h=this.gC)==null?0:rX(h.j))if((a=this.gC)== null)a=0;else{B=h=void 0;x=g.m(a.X.values());for(var e=x.next();!e.done;e=x.next())e=e.value,h||(h=EMX(e,"SD")),B||(B=EMX(e,"AUDIO"));a.B0({sd:h,audio:B});a=h==="output-restricted"||B==="output-restricted"}else a=!V;if(a){this.FJ("drm",{dshdr:1});agB(this.q$);return}}else{this.videoData.u$||(this.videoData.u$=!0,this.FJ("drm",{dphdr:1}),this.Jv(!0));return}var w;if((w=this.gC)==null?0:rX(w.j))return}else if(w=G.W&&V,a&&!w){agB(this.q$);return}V||Ou_(G,"AUDIO")&&Ou_(G,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), G=zdB(G),this.Aw?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.S("html5_report_fatal_drm_restricted_error_killswitch")||this.Ev("drm.keyerror",2,void 0,"info."+G)):(this.Aw=!0,this.I0(new yH("qoe.restart",Object.assign({},{retrydrm:1},G))),Ww(this),caV(this)))}; g.W.z7J=function(){if(!this.videoData.HS&&this.mediaElement&&!this.isBackground()){var G="0";this.mediaElement.fk()>0&&MZ(this.mediaElement)>=5&&this.videoData.C&&this.videoData.C.j&&(this.R0(h5(this.playerState,1)),nzK(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),G="1");HvH(this);var B=this.videoData.C;G={restartmsg:G,mfmt:!aS(this.videoData),mdrm:!(!(B&&B.videoInfos&&B.videoInfos.length&&B.videoInfos[0].Ji)||this.gC),mfmtinfo:!this.videoData.X,prerolls:this.KE()?this.vB.join(","): "0"};if(this.gC){B=this.gC;if(B.X.size<=0){var a="ns;";B.Y||(a+="nr;");B=a+="ql."+B.C.length}else B=zdB(B.X.values().next().value),B=b5(B);G.drmp=B}var V;Object.assign(G,((V=this.CN)==null?void 0:V.Nd())||{});var x;Object.assign(G,((x=this.mediaElement)==null?void 0:x.Nd())||{});this.Kh().I0("qoe.start15s",b5(G));this.publish("loadsofttimeout")}}; g.W.Qf=function(G){this.videoData.lengthSeconds!==G&&(this.videoData.lengthSeconds=G,kd(this))}; g.W.U7=function(G,B){var a=this;G=G===void 0?!1:G;if(!this.Go)if(QD("att_s","player_att")||TG("att_s",void 0,"player_att"),this.S("use_rta_for_player"))(function(){var x,h,e,w;return g.v(function(K){switch(K.j){case 1:if(!(x=G)){K.kf(2);break}return g.f(K,g.StX(),3);case 3:x=!K.X;case 2:if(x)return K.return();g.UA(K,4);h=rpV(a.Kh());if(!h)throw Error();e={};return g.f(K,g.D5B((e.cpn=a.videoData.clientPlaybackNonce,e.encryptedVideoId=a.videoData.videoId||"",e),3E4),6);case 6:w=K.X;if(a.Go)throw Error(); if(!w.challenge)throw g.Zb(Error("Not sending attestation ping; no attestation challenge string")),Error();a.Go=!0;var l=[w.challenge];w.error?l.push("r1c="+w.error):w.webResponse&&l.push("r1a="+w.webResponse);var k;((k=w.adblockReporting)==null?void 0:k.reportingStatus)!==void 0&&l.push("r6a="+w.adblockReporting.reportingStatus);var N;((N=w.adblockReporting)==null?void 0:N.broadSpectrumDetectionResult)!==void 0&&l.push("r6b="+w.adblockReporting.broadSpectrumDetectionResult);h(l.join("&"));TG("att_f", void 0,"player_att");g.EA(K,0);break;case 4:g.jB(K),TG("att_e",void 0,"player_att"),g.pV(K)}})})().then(function(){B==null||B()}); else{var V=new g.Df9(this.videoData);if("c1a"in V.B3&&!g.vp.isInitialized()){TG("att_wb",void 0,"player_att");this.N6===2&&Math.random()<.01&&g.Zb(Error("Botguard not available after 2 attempts"));if(G)return;if(this.N6<5){g.iC(this.j0);this.N6++;return}}(V=g.SeH(V))?(TG("att_f",void 0,"player_att"),ZW9(this.Kh(),V),this.Go=!0):TG("att_e",void 0,"player_att")}}; g.W.Ws=function(G){G=G===void 0?!1:G;if(kX(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Ps()||g.cF(this.videoData)))G=this.getCurrentTime();else if(g.AC(this.videoData)&&this.F5){G=this.F5;var B=this.getCurrentTime();G=(G=rvc(G,B*1E3))?(G.a8()-G.hH())/1E3:0}else G=this.LD(G);return G}; g.W.jN=function(){return g.AC(this.videoData)?this.videoData.b6():this.b6()}; g.W.LD=function(G){return this.Ld.LD(G===void 0?!1:G)}; g.W.b6=function(){return this.Ld.b6()}; g.W.F3=function(){return this.Ld?this.Ld.F3():0}; g.W.getStreamTimeOffset=function(){return this.Ld?this.Ld.getStreamTimeOffset():0}; g.W.uY=function(){var G=0;this.md.S("web_player_ss_media_time_offset")&&(G=this.getStreamTimeOffset()===0?this.F3():this.getStreamTimeOffset());return G}; g.W.setPlaybackRate=function(G){var B;this.playbackRate!==G&&wIH(this.g_,(B=this.videoData.C)==null?void 0:B.videoInfos)&&(this.playbackRate=G,Ww(this));this.playbackRate=G;this.mediaElement&&this.mediaElement.setPlaybackRate(G)}; g.W.getPlaybackRate=function(){return this.playbackRate}; g.W.getPlaybackQuality=function(){var G="unknown";if(this.videoData.X&&(G=this.videoData.X.video.quality,G==="auto"&&this.mediaElement)){var B=this.fK();B&&B.videoHeight>0&&(G=$2(B.videoWidth,B.videoHeight))}return G}; g.W.isHdr=function(){return!!(this.videoData.X&&this.videoData.X.video&&this.videoData.X.video.isHdr())}; g.W.Zh=function(){this.Kh().Zh()}; g.W.sendVideoStatsEngageEvent=function(G,B){var a=this.Kh();a.j?(a=vQ(a.j,"engage"),a.XJ=G,a.send(B)):B&&B()}; g.W.BG=function(G){return this.Kh().BG(G)}; g.W.isAtLiveHead=function(G,B){B=B===void 0?!1:B;return kX(this.videoData)&&(this.lk||B)?this.Ld.isAtLiveHead(G):!1}; g.W.lh=function(){var G=this.LD(),B=this.getCurrentTime(),a;(a=!kX(this.videoData))||(a=this.Ld,a=!(a.j&&a.j.C));return a||this.Ps()||isNaN(G)||isNaN(B)?0:Math.max(0,G-B)}; g.W.u0=function(G){(this.lk=G)||this.jX.stop();this.videoData.j&&(G?this.videoData.j.resume():WIX(this.videoData.j));if(this.CN){var B=this.videoData.S("html5_disable_preload_for_ssdai_with_preroll")&&this.Oa()&&this.videoData.isLivePlayback;G&&!B?this.CN.resume():t6(this,!0)}g.F(this.playerState,2)||G?g.F(this.playerState,512)&&G&&this.R0(e7(this.playerState,512)):this.R0(h5(this.playerState,512));B=this.Kh();B.qoe&&(B=B.qoe,g.UL(B,g.mR(B.provider),"stream",[G?"A":"I"]))}; g.W.Aj=function(G){G={n:G.name,m:G.message};this.Kh().I0("player.exception",b5(G))}; g.W.RM=ay(28);g.W.m8=ay(57);g.W.Y$=function(G){this.Kh().Y$(G)}; g.W.V1=function(G){this.Kh().V1(G)}; g.W.N1=function(G){this.Kh().N1(G)}; g.W.GV=ay(34);g.W.jK=ay(40);g.W.rp=function(G){this.Kh().rp(G)}; g.W.Uj=function(){this.FJ("hidden",{},!0)}; g.W.dg=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.W.qM=function(){return this.CN?this.CN.qM():!0}; g.W.setLoop=function(G){this.loop=G;this.mediaElement&&!g.yI(this.md)&&this.mediaElement.setLoop(G)}; g.W.Y9=function(){return this.mediaElement&&!g.yI(this.md)?this.mediaElement.Y9():this.loop}; g.W.qF=function(G){this.FJ("timestamp",{o:G.toString()});this.Ld.qF(G)}; g.W.o4=function(G){this.Ti.tick(G)}; g.W.S6=function(G){return this.Ti.S6(G)}; g.W.xP=function(G){this.Ti.xP(G)}; g.W.FJ=function(G,B,a){a=a===void 0?!1:a;this.Kh().FJ(G,B,a)}; g.W.PF=function(G,B,a){a=a===void 0?!1:a;this.Kh().FJ(G,B,a)}; g.W.I0=function(G){this.Kh().I0(G.errorCode,b5(G.details));G=G.errorCode;if(this.videoData.isLivePlayback&&(G==="qoe.longrebuffer"||G==="qoe.slowseek")||G==="qoe.restart"){G=this.CN?nDb(this.CN.videoTrack):{};var B,a;this.FJ("lasoe",Object.assign(this.CN?nDb(this.CN.audioTrack):{},(B=this.tX)==null?void 0:(a=B.j)==null?void 0:a.WA()));var V,x;this.FJ("lvsoe",Object.assign(G,(V=this.tX)==null?void 0:(x=V.X)==null?void 0:x.WA()))}}; g.W.kP=function(G,B,a){this.Kh().kP(G,B,a)}; g.W.fX=function(G,B,a,V,x,h,e,w){var K;if((K=this.videoData.j)!=null&&K.isLive){var l=B.playerType===2?B:G,k=G.videoData.videoId,N=B.videoData.videoId;if(k&&N){K=this.Kh();if(K.qoe){var d=K.qoe,C=G.cpn,z=B.cpn,p=l.videoData.m3,O=d.provider.videoData.clientPlaybackNonce,b=d.provider.videoData.videoId,c=z!==O&&N!==b;O=C!==O&&k!==b;d.reportStats();d.adCpn&&d.adCpn!==C||(d.adCpn=O?C:"",d.zH=O?k:"",d.adFormat=O?p:void 0,yn(d,2,h?4:x?2:0,z,N,V),d.reportStats(),d.adCpn=c?z:"",d.zH=c?N:"",d.adFormat=c?p: void 0,yn(d,2,h?5:x?3:1,C,k,a),d.reportStats())}a=G.cpn;if(K.C.has(a)){if(x=K.C.get(a),Ra(x,!0).send(),Sx(x),a!==K.provider.videoData.clientPlaybackNonce){EQX(x);var H;(H=K.j)==null||Iny(H);K.C.delete(a)}}else K.zV=K.provider.videoData.clientPlaybackNonce,K.zV&&K.j&&(K.C.set(K.zV,K.j),Ra(K.j).send(),Sx(K.j));H=B.cpn;l=l.videoData;V-=this.uY();if(K.C.has(H)){V=K.C.get(H);var R=V.C&&isNaN(V.B)?Dn(V):NaN;V=OWV(V,!1);isNaN(R)||(V.W=R);V.send()}else V=$P_(K,K.provider,l,V),K.C.set(H,V),jaH(V,new g.NR(h5(new g.aF, 8),new g.aF)),mPB(V),(R=K.j)==null||Sx(R);K.zV=H;this.S("html5_unify_csi_server_stitched_transition_logging")?U3V(G.cpn,B.cpn,this.videoData.clientPlaybackNonce,B.videoData,e,void 0,w):(K=this.Ti,V=this.videoData.clientPlaybackNonce,R=B.videoData,G=(G.cpn===V?"video":"ad")+"_to_"+(B.cpn===V?"video":"ad"),V={},R.L&&(V.cttAuthInfo={token:R.L,videoId:R.videoId}),e&&(V.startTime=e),u1(G,V),g.qO({targetVideoId:R.videoId,targetCpn:B.cpn,isSsdai:!0},G),K.md.S("html5_enable_ssdai_transition_with_only_enter_cuerange")? e||Cv(w,G):Cv(w,G))}}else this.logger.j(360717806,"SSTEvent for nonSS")}; g.W.t4=function(){var G=this.qQ,B=G.Kq;G.Kq=[];return B}; g.W.XV=function(G){this.videoData.JS=!0;this.I0(new yH("sabr.fallback",G));this.Jv(!0)}; g.W.NJ=function(G,B){this.videoData.ws=!0;if(B===void 0||B)this.I0(new yH("qoe.restart",G)),this.Jv(!0);this.videoData.cn()&&this.S("html5_reload_caption_on_ssdai_fallback")&&this.qQ.eX()}; g.W.s7=function(G){this.FJ("sdai",{aftimeout:G});this.I0(new yH("ad.fetchtimeout",{timeout:G}))}; g.W.QD=function(G,B){this.FJ("timelineerror",G);G=new yH("dai.timelineerror",G);B?this.Ev("dai.timelineerror",1,"RETRYABLE_ERROR",b5(G.details)):this.I0(G)}; g.W.h2=function(){return g.mR(this.Kh().provider)}; g.W.getPlayerSize=function(){return this.aJ.getPlayerSize()}; g.W.bz=function(){return this.aJ.bz()}; g.W.PG=function(){return this.Ti}; g.W.G9=function(){return this.qQ.G9()}; g.W.getVolume=function(){return this.qQ.getVolume()}; g.W.Oo=function(){return this.qQ.Oo()}; g.W.isMuted=function(){return this.qQ.isMuted()}; g.W.LP=function(){return this.qQ.LP()}; g.W.PT=function(){this.nC=!0}; g.W.S=function(G){return this.md.S(G)}; g.W.cw=function(G,B,a,V,x){this.FJ("xvt",{m:G,g:B?1:0,tt:a?1:0,np:V?1:0,c:x})}; g.W.E7=function(){var G;(G=this.CN)==null||G.resume()}; g.W.Oa=function(){return g.YC(this.vB,"ad")}; g.W.H6=function(){var G=this.getCurrentTime(),B=G-this.F3();var a=this.mediaElement?lV(this.mediaElement.yk()):0;a=Math.floor(Math.max(a-B,0))+100;var V;if(!this.S("html5_ssdai_disable_seek_to_skip")&&((V=this.CN)==null?0:V.h5(B,this.LD())))return this.FJ("sdai",{skipad:1,ct:B.toFixed(3),adj:0}),!0;var x;return((x=this.CN)==null?0:x.H6(B,a))?(this.FJ("sdai",{skipad:1,ct:B.toFixed(3),adj:a.toFixed(3)}),eO(this.videoData)&&this.CN.seek(B+a,{seekSource:89,Tt:"videoplayer_skipServerStitchedAd"}),vdK(this.Ld, G),!0):!1}; g.W.Ef=function(){return this.md.Ef()}; g.W.m7=function(){if(this.S("html5_generate_content_po_token"))return this.videoData.Rh||"";this.qQ.lD();return this.md.Vg||""}; g.W.Ko=function(){if(this.videoData.videoId)return this.videoData.TY}; g.W.WD=function(){return this.videoData.videoId}; g.W.w8=function(){return this.qQ.E9}; g.W.RW=function(){return this.tJ}; g.W.JJ=function(){return this.qQ.JJ()}; g.W.je=function(G,B){this.Ld.je(G,B)}; g.W.j2=function(){this.Ld.j2()}; g.W.hh=function(G,B){var a=this.S("html5_generate_content_po_token")?this.videoData:void 0;this.qQ.hh(G,B,a)}; g.W.kG=function(G,B){var a;(a=this.CN)==null||a.kG(G,B)}; g.W.NG=function(){var G=this.Iu();return!!G&&G.NG()}; g.W.j6=function(){return this.F5}; g.W.SM=function(G,B){this.Kh().SM(G,B)}; g.W.RH=function(){return this.Kh().RH()}; g.W.ZD=function(){return this.videoData.dZ}; g.W.AI=function(){return this.qQ.AI()}; g.W.FG=function(){return this.qQ.FG(this)}; g.W.xM=function(){this.FU=!0}; g.W.ZS=function(){return this.bV}; g.W.rb=function(G){var B;(B=this.CN)==null||B.rb(G)}; g.W.DT=function(){var G;(G=this.CN)==null||G.DT()};g.t(Spb,iq);g.t(Rkz,iq);g.W=Rkz.prototype;g.W.seekToChapterWithAnimation=function(G){var B=this;if(g.zA(this.api)&&!(G<0)){var a=this.api.getVideoData(),V=a.iz;if(V&&G=0)return;B=~B;g.xV(this.items,B,0,G);VX(this.menuItems.element,G.element,B)}G.subscribe("size-change",this.sQ,this);this.menuItems.publish("size-change")}; g.W.Im=function(G){G.unsubscribe("size-change",this.sQ,this);this.TH()||(g.PW(this.items,G),this.menuItems.element.removeChild(G.element),this.menuItems.publish("size-change"))}; g.W.sQ=function(){this.menuItems.publish("size-change")}; g.W.focus=function(){for(var G=0,B=0;B1&&g.Ri(this)}; g.W.HK=function(){K_B(this);this.Rt&&(W_y(this),g.p4(this.element,this.size))}; g.W.dR=function(){var G=this.j.pop();wgX(this,G,this.j[this.j.length-1],!0)}; g.W.W8=function(G){if(!G.defaultPrevented)switch(G.keyCode){case 27:this.Bf();G.preventDefault();break;case 37:this.j.length>1&&this.dR();G.preventDefault();break;case 39:G.preventDefault()}}; g.W.focus=function(){this.j.length&&this.j[this.j.length-1].focus()}; g.W.yb=function(){g.uq.prototype.yb.call(this);this.L&&this.L.dispose();this.W&&this.W.dispose()};g.t(ZY,g.DY);ZY.prototype.open=function(G,B){this.initialize(G.items)&&this.xW(B,!!B)}; ZY.prototype.initialize=function(G){g.vw(this.oG);if(G===void 0||G.length===0)return!1;var B=G.length;G=g.m(G);for(var a=G.next();!a.done;a=G.next())this.WC(a.value,B--);return!0}; ZY.prototype.WC=function(G,B){G.menuNavigationItemRenderer?Nqy(this,G.menuNavigationItemRenderer,B):G.menuServiceItemRenderer&&dmc(this,G.menuServiceItemRenderer,B)};g.t(rM,nO);g.W=rM.prototype;g.W.R7=function(G){G.target!==this.dismissButton.element&&G.target!==this.overflowButton.element&&(this.oI(),this.onClickCommand&&this.T.pN("innertubeCommand",this.onClickCommand))}; g.W.NZ=function(){this.enabled=!1;this.Y.hide()}; g.W.y3=function(){return!!this.j&&this.enabled}; g.W.onVideoDataChange=function(G,B){this.uO(B);if(this.j){this.KJ();a:if(!this.isCounterfactual){var a,V,x;this.banner.update({title:(a=this.j)==null?void 0:a.title,subtitle:(V=this.j)==null?void 0:V.subtitle,metadata:(x=this.j)==null?void 0:x.metadataText});var h;this.onClickCommand=g.u((h=this.j)==null?void 0:h.onTap,$k);var e;if(G=g.u((e=this.j)==null?void 0:e.onOverflow,$k))this.W=g.u(G,EV$);var w;if((w=this.j)==null?0:w.thumbnailImage){var K,l;e=((K=this.j)==null?void 0:(l=K.thumbnailImage)== null?void 0:l.sources)||[];if(e.length===0)break a;this.thumbnailImage.update({url:e[0].url})}else{var k;if((k=this.j)==null?0:k.thumbnailIconName){var N;this.thumbnailIcon.update({icon:(N=this.j)==null?void 0:N.thumbnailIconName})}}var d;this.shouldShowOverflowButton=!((d=this.j)==null||!d.shouldShowOverflowButton);var C;this.shouldHideDismissButton=!((C=this.j)==null||!C.shouldHideDismissButton)}var z;this.banner.element.setAttribute("aria-label",((z=this.j)==null?void 0:z.a11yLabel)||"");var p; this.Er=(p=this.j)==null?void 0:p.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;zHg(this)}}; g.W.P6d=function(){this.isVisible=!0;zHg(this)}; g.W.nWf=function(){this.isVisible=!1;zHg(this)}; g.W.gS=function(){nO.prototype.gS.call(this);this.X&&this.T.logVisibility(this.banner.element,this.isVisible)}; g.W.oI=function(){nO.prototype.oI.call(this,!1);this.X&&this.T.logClick(this.banner.element)}; g.W.JB=function(G){this.L||(this.L=new ZY(this.T),g.X(this,this.L));var B,a;if((B=this.W)==null?0:(a=B.menu)==null?0:a.menuRenderer)this.L.open(this.W.menu.menuRenderer,G.target),G.preventDefault()}; g.W.uO=function(){}; g.W.KJ=function(){}; g.W.yb=function(){this.T.KD("suggested_action_view_model");nO.prototype.yb.call(this)};g.t($d,rM); $d.prototype.uO=function(G){var B,a,V;this.productUpsellSuggestedActionViewModel=g.u((B=G.getWatchNextResponse())==null?void 0:(a=B.playerOverlays)==null?void 0:(V=a.playerOverlayRenderer)==null?void 0:V.suggestedActionViewModel,uOC);var x;if((x=this.productUpsellSuggestedActionViewModel)==null?0:x.content){var h;this.j=g.u((h=this.productUpsellSuggestedActionViewModel)==null?void 0:h.content,pKl)}var e,w;if(this.X=!!((e=this.productUpsellSuggestedActionViewModel)==null?0:(w=e.loggingDirectives)==null? 0:w.trackingParams)){var K,l;this.T.setTrackingParams(this.banner.element,((K=this.productUpsellSuggestedActionViewModel)==null?void 0:(l=K.loggingDirectives)==null?void 0:l.trackingParams)||null)}var k;this.isCounterfactual=!((k=this.productUpsellSuggestedActionViewModel)==null||!k.isCounterfactualServing)}; $d.prototype.KJ=function(){var G=[],B,a=g.m(((B=this.productUpsellSuggestedActionViewModel)==null?void 0:B.ranges)||[]);for(B=a.next();!B.done;B=a.next()){var V=B.value;V&&(B=Number(V.startTimeMilliseconds),V=Number(V.endTimeMilliseconds),isNaN(B)||isNaN(V)||G.push(new g.V1(B,V,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.T.z1(G)};g.t(t1B,iq);g.t(XY,iq);XY.prototype.onVideoDataChange=function(G,B){var a=this;if(!L9(B)&&(G==="newdata"&&IVA(this),this.X&&G==="dataloaded")){var V;d2(xi(this.api.U(),(V=this.api.getVideoData())==null?void 0:g.uv(V)),function(x){var h=E7y(x);h&&(h=g7x(a,a.j||h))&&a.api.setAudioTrack(h,!0);a.C&&(a.C=!1,bM_(a,x))})}}; XY.prototype.pM=function(){var G=this;if(g.yI(this.api.U())){var B,a=g.Vm(this.api.U(),(B=this.api.getVideoData())==null?void 0:g.uv(B));return d2(w2(a),function(V){var x=$g();Xq(x,V);return G.api.pM(x)})}return w2(this.api.pM())};g.t(g.u2,g.Fq);g.W=g.u2.prototype;g.W.open=function(){g.SR(this.Gi,this.X)}; g.W.o8=function(G){yeg(this);var B=this.options[G];B&&(B.element.setAttribute("aria-checked","true"),this.jn(this.s1(G)),this.C=G)}; g.W.Qm=function(G){g.vw(this.X);for(var B={},a=!1,V=0;V=0?this.j.playbackRate:1}catch(G){return 1}}; g.W.setPlaybackRate=function(G){this.getPlaybackRate()!==G&&(this.j.playbackRate=G);return G}; g.W.Y9=function(){return this.j.loop}; g.W.setLoop=function(G){this.j.loop=G}; g.W.canPlayType=function(G,B){return this.j.canPlayType(G,B)}; g.W.isPaused=function(){return this.j.paused}; g.W.isSeeking=function(){return this.j.seeking}; g.W.isEnded=function(){return this.j.ended}; g.W.tL=function(){return this.j.muted}; g.W.J1=function(G){Rp();this.j.muted=G}; g.W.iA=function(){return this.j.played||hj([],[])}; g.W.yk=function(){try{var G=this.j.buffered}catch(B){}return G||hj([],[])}; g.W.x0=function(){return this.j.seekable||hj([],[])}; g.W.eH=function(){var G=this.j;return G.getStartDate?G.getStartDate():null}; g.W.getCurrentTime=function(){return this.j.currentTime}; g.W.setCurrentTime=function(G){this.j.currentTime=G}; g.W.getDuration=function(){return this.j.duration}; g.W.load=function(){var G=this.j.playbackRate;try{this.j.load()}catch(B){}this.j.playbackRate=G}; g.W.pause=function(){this.j.pause()}; g.W.play=function(){var G=this.j.play();if(!G||!G.then)return null;G.then(void 0,function(){}); return G}; g.W.fk=function(){return this.j.readyState}; g.W.ub=function(){return this.j.networkState}; g.W.Vk=function(){return this.j.error?this.j.error.code:null}; g.W.Qd=function(){return this.j.error?this.j.error.message:""}; g.W.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var G=this.j,B=G.webkitDroppedFrameCount;if(G=G.webkitDecodedFrameCount)return{droppedVideoFrames:B||0,totalVideoFrames:G}}return{}}; g.W.vG=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless}; g.W.WE=function(){return!!this.j.webkitShowPlaybackTargetPicker()}; g.W.togglePictureInPicture=function(){var G=this.j,B=window.document;window.document.pictureInPictureEnabled?this.j!==B.pictureInPictureElement?G.requestPictureInPicture():B.exitPictureInPicture():SW()&&G.webkitSetPresentationMode(G.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.W.HM=function(){var G=this.j;return new g.kj(G.offsetLeft,G.offsetTop)}; g.W.getSize=function(){return g.UK(this.j)}; g.W.setSize=function(G){g.p4(this.j,G)}; g.W.getVolume=function(){return this.j.volume}; g.W.setVolume=function(G){Rp();this.j.volume=G}; g.W.H1=function(G){this.B[G]||(this.j.addEventListener(G,this.listener),this.B[G]=this.listener)}; g.W.setAttribute=function(G,B){this.j.setAttribute(G,B)}; g.W.removeAttribute=function(G){this.j.removeAttribute(G)}; g.W.hasAttribute=function(G){return this.j.hasAttribute(G)}; g.W.Oz=ay(67);g.W.mJ=ay(69);g.W.jH=ay(71);g.W.F7=ay(73);g.W.tT=function(){return IP(this.j)}; g.W.M0=function(G){g.hi(this.j,G)}; g.W.rg=function(G){return g.NV(this.j,G)}; g.W.DR=function(){return g.hw(document.body,this.j)}; g.W.audioTracks=function(){var G=this.j;if("audioTracks"in G)return G.audioTracks}; g.W.yb=function(){for(var G=g.m(Object.keys(this.B)),B=G.next();!B.done;B=G.next())B=B.value,this.j.removeEventListener(B,this.B[B]);PZ.prototype.yb.call(this)}; g.W.Mm=function(G){this.j.disableRemotePlayback=G};g.t(MA,g.T);g.t(B$,g.T);B$.prototype.show=function(){g.T.prototype.show.call(this);this.uL();this.JX.S("html5_enable_moving_s4n_window")&&g.yI(this.JX.U())&&this.V()}; B$.prototype.hide=function(){g.T.prototype.hide.call(this);this.delay.stop();this.G.stop()}; B$.prototype.uL=function(){var G=(0,g.yT)(),B=$mH(this.JX);GJ(this.j,B.bandwidth_samples);GJ(this.W,B.network_activity_samples);GJ(this.C,B.live_latency_samples);GJ(this.X,B.buffer_health_samples);var a={};B=g.m(Object.entries(B));for(var V=B.next();!V.done;V=B.next()){var x=g.m(V.value);V=x.next().value;x=x.next().value;this.Y[V]!==x&&(a[V]=" "+String(x));this.Y[V]=x}this.update(a);G=(0,g.yT)()-G>25?5E3:500;this.delay.start(G)}; B$.prototype.V=function(){this.L?(this.position+=1,this.position>15&&(this.L=!1)):(--this.position,this.position<=0&&(this.L=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.G.start(2E4)};g.t(u4K,iq);g.t(as,g.r);as.prototype.j=function(){var G=(0,g.yT)()-this.startTime;G=Gthis.G[G])&&(this.j=G,B7K(this))}; g.W.onCueRangeExit=function(G){var B=G19(this,G);B&&this.j===G&&this.api.pN("innertubeCommand",B);this.clearTimeout();this.j=void 0}; g.W.onTimeout=function(G){this.j!==void 0&&(G==null?void 0:G.cueRangeId)===this.j&&(G=G19(this,this.j))&&this.api.pN("innertubeCommand",G)}; g.W.S1=function(G){this.X=G}; g.W.BJ=function(){B7K(this);this.X=void 0}; g.W.setTimeout=function(G){var B=this,a=Number(G==null?void 0:G.maxVisibleDurationMilliseconds);a&&(this.clearTimeout(),this.B=setTimeout(function(){B.onTimeout(G)},a))}; g.W.clearTimeout=function(){this.B&&clearTimeout(this.B);this.B=void 0;this.W=!1}; g.W.yb=function(){this.timelyActions=this.X=this.j=this.videoId=void 0;this.G={};this.FO();this.clearTimeout();iq.prototype.yb.call(this)};g.t(x3K,iq);var U_={},zNK=(U_[1]="pot_ss",U_[2]="pot_sf",U_[3]="pot_se",U_[4]="pot_xs",U_[5]="pot_xf",U_[6]="pot_xe",U_),tyB=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.t(W$,iq);W$.prototype.yb=function(){this.L&&(g.Ih(this.L),this.L=void 0);iq.prototype.yb.call(this)}; W$.prototype.lD=function(){(this.j?!this.j.isReady():this.X)&&Kv(this)}; W$.prototype.gJ=function(G,B,a){var V=this;if(eNV(G)){var x=a||"",h;if((h=this.j)==null?0:h.isReady())B=ld(this,x),WW_(G,B);else{var e=new g.z_;B.push(e.promise);this.G.promise.then(function(){var w=ld(V,x);WW_(G,w);e.resolve()})}}}; W$.prototype.vK=function(G){var B=this;if(this.j||this.X)G.Rh=ld(this,G.videoId),this.j&&!this.j.isReady()&&(this.C=new iV,this.G.promise.then(function(){B.Ti.S6("pot_if");G.Rh=ld(B,G.videoId)}))};g.t(ItY,iq);g.t(kz,g.r);kz.prototype.j=function(){for(var G=g.m(g.Hz.apply(0,arguments)),B=G.next();!B.done;B=G.next())(B=B.value)&&this.features.push(B)}; kz.prototype.yb=function(){for(var G=this.features.length-1;G>=0;G--)this.features[G].dispose();this.features.length=0;g.r.prototype.yb.call(this)};Nn.prototype.g4=function(){this.X=(0,g.yT)()}; Nn.prototype.reset=function(){this.j=this.X=NaN}; Nn.prototype.j1=function(G,B){if(G.clientPlaybackNonce&&!isNaN(this.j)){if(Math.random()<.01){B=B?"pbp":"pbs";var a={startTime:this.j};G.L&&(a.cttAuthInfo={token:G.L,videoId:G.videoId});u1("seek",a);g.qO({clientPlaybackNonce:G.clientPlaybackNonce},"seek");isNaN(this.X)||X_("pl_ss",this.X,"seek");X_(B,(0,g.yT)(),"seek")}this.reset()}};g.W=gLz.prototype;g.W.reset=function(){ZX(this.timerName)}; g.W.tick=function(G,B){X_(G,B,this.timerName)}; g.W.S6=function(G){return LR(G,this.timerName)}; g.W.xP=function(G){b3(G,void 0,this.timerName)}; g.W.infoGel=function(G){g.qO(G,this.timerName)};g.t(ELc,g.wI);g.W=ELc.prototype;g.W.pk=function(G){return this.loop||!!G||this.index+1=0}; g.W.setShuffle=function(G){this.shuffle=G;G=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var B=0;B0)||ZM(this,1,!0)}; g.W.s5=function(){this.L=!0;this.j.i6(this.B);this.B=this.j.K(document,"mouseup",this.Ew)}; g.W.Ew=function(){this.L=!1;ZM(this,8,!1);this.j.i6(this.B);this.B=this.j.K(this.target,"mousedown",this.s5)}; g.W.Q7=function(G){if(G=(G=G.changedTouches)&&G[0])this.HS=G.identifier,this.j.i6(this.V),this.V=this.j.K(this.target,"touchend",this.Ke,void 0,!0),ZM(this,1024,!0)}; g.W.Ke=function(G){if(G=G.changedTouches)for(var B=0;B1280||h>720)if(x=a.Sf("maxresdefault.jpg"))break;if(V>640||h>480)if(x=a.Sf("maxresdefault.jpg"))break; if(V>320||h>180)if(x=a.Sf("sddefault.jpg")||a.Sf("hqdefault.jpg")||a.Sf("mqdefault.jpg"))break;if(x=a.Sf("default.jpg"))break}g.Po(B)&&(B=new Image,B.addEventListener("load",function(){lNx()}),B.src=x?x:"",this.api.PG().tick("ftr")); this.L.style.backgroundImage=x?"url("+x+")":""};g.t(g.qn,g.T);g.qn.prototype.resize=function(){}; g.qn.prototype.X=function(G){var B=this;this.C=!1;pPb(this);var a=G.kN,V=this.api.U();a!=="GENERIC_WITHOUT_LINK"||V.L?a==="TOO_MANY_REQUESTS"?(V=this.api.getVideoData(),this.jn(Lv(this,"TOO_MANY_REQUESTS_WITH_LINK",V.O1(),void 0,void 0,void 0,!1))):a!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||V.L?this.api.U().S("html5_enable_bandaid_error_screen")&&a==="HTML5_SPS_UMP_STATUS_REJECTED"&&!V.L?(V=V.hostLanguage,G="//support.google.com/youtube?p=videoError",V&&(G=g.LJ(G,{hl:V})),this.jn(Lv(this,"HTML5_SPS_UMP_STATUS_REJECTED", G))):this.api.U().S("enable_adb_handling_in_sabr")&&a==="BROWSER_OR_EXTENSION_ERROR"&&!V.L?(V=V.hostLanguage,G="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",V&&(G=g.LJ(G,{hl:V})),this.jn(Lv(this,"BROWSER_OR_EXTENSION_ERROR",G))):this.jn(g.ud(G.errorMessage)):this.jn(Lv(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(G=V.hostLanguage,a="//support.google.com/youtube/?p=player_error1",G&&(a=g.LJ(a, {hl:G})),this.jn(Lv(this,"GENERIC_WITH_LINK_AND_CPN",a,!0)),V.Cd&&!V.G&&gWV(this,function(h){if(g.hY(h,B.api,!F6(B.api.U()))){h={as3:!1,html5:!0,player:!0,cpn:B.api.getVideoData().clientPlaybackNonce};var e=B.api;e.Ff("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:h});e.isFullscreen()&&e.toggleFullscreen()}})); if(this.C){var x=this.d1("ytp-error-link");x&&(this.api.createClientVe(x,this,216104),this.api.logVisibility(x,!0),gWV(this,function(){B.api.logClick(x)}))}}; var Is_=/([^<>]+)<\/a>/;g.t(UEA,g.T);g.W=UEA.prototype;g.W.onClick=function(G){this.innertubeCommand?(this.T.pN("innertubeCommand",this.innertubeCommand),G.preventDefault()):g.hY(G,this.T,!0);this.T.logClick(this.element)}; g.W.onVideoDataChange=function(G,B){EWz(this,B);this.yg&&jmc(this,this.yg)}; g.W.w6=function(G){var B=this.T.getVideoData();this.videoId!==B.videoId&&EWz(this,B);this.j&&jmc(this,G.state);this.yg=G.state}; g.W.xW=function(){this.G.show();this.T.publish("paidcontentoverlayvisibilitychange",!0);this.T.logVisibility(this.element,!0)}; g.W.Bf=function(){this.G.hide();this.T.publish("paidcontentoverlayvisibilitychange",!1);this.T.logVisibility(this.element,!1)};g.t(TJ,g.T);TJ.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.T.prototype.hide.call(this)}; TJ.prototype.onStateChange=function(G){this.g7(G.state)}; TJ.prototype.g7=function(G){(g.F(G,128)||this.api.RW()?0:g.F(G,16)||g.F(G,1))?this.j.start():this.hide()}; TJ.prototype.X=function(){this.message.style.display="block"};g.t(sp,g.uq);sp.prototype.onMutedAutoplayChange=function(G){this.C&&(G?(blz(this),this.xW()):(this.j&&this.logClick(),this.Bf()))}; sp.prototype.hI=function(G){this.api.isMutedByMutedAutoplay()&&g.CY(G,2)&&this.Bf()}; sp.prototype.onClick=function(){this.api.unMute();this.logClick()}; sp.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.t(g.FJ,g.Zh);g.W=g.FJ.prototype;g.W.init=function(){var G=this.api,B=G.getPlayerStateObject();this.Gb=G.getPlayerSize();this.R0(B);this.ED();this.Df();this.api.publish("basechromeinitialized",this);this.HH()&&this.api.publish("standardControlsInitialized")}; g.W.onVideoDataChange=function(G,B){var a=this.U_!==B.videoId;if(a||G==="newdata"){G=this.api;G.isFullscreen()||(this.Gb=G.getPlayerSize());var V;((V=this.api.getVideoData(1))==null?0:g.AC(V))&&this.uX()}a&&(this.U_=B.videoId,a=this.Ya,a.GH=3E3,ZM(a,512,!0),this.ED());this.api.S("web_render_jump_buttons")&&B.showSeekingControls&&(this.DL=572)}; g.W.SxB=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.W.OX=function(){var G=this.api.fE()&&this.api.y0(),B=this.api.oW();return this.xi||G||this.qz||B}; g.W.uX=function(){var G=!this.OX();g.Km(this.api.getRootNode(),"ytp-menu-shown",!G);var B;((B=this.api.getVideoData(1))==null?0:g.AC(B))&&g.Km(this.api.getRootNode(),"ytp-hide-controls",!G)}; g.W.qJ=function(G){try{if(!g.hw(this.api.getRootNode(),G))return!1}catch(B){return!1}for(;G&&!lvA(G);)G=G===this.api.getRootNode()?null:G.parentElement||null;return!!G}; g.W.aW=function(G){var B=this.api.getRootNode();g.Km(B,"ytp-autohide",G);g.Km(B,"ytp-autohide-active",!0);this.BW.start(G?250:100);G&&(this.fT=!1,g.WC(B,"ytp-touch-mode"));this.Mi=!G;this.api.pW(!G)}; g.W.nV=function(){var G=this.api.getRootNode();g.Km(G,"ytp-autohide-active",!1)}; g.W.Cur=function(){this.hd=!0}; g.W.XDB=function(G){if(this.api.U().S("player_doubletap_to_seek")||this.api.U().V)this.hd=!1,this.Wp&&this.i6(this.Wp),this.o7===0&&Aa(this,G)?(this.EF(),this.YQ.start(),this.Wp=this.K(this.api.g1(),"touchmove",this.Cur,void 0,!0)):this.YQ.stop();fsA(this)&&Aa(this,G)&&!this.api.U().V&&c7_(this);var B=this.qX.Mo();if(!g.co(this.api.U())&&Eb&&Hly(this,G))B&&G.preventDefault();else if(this.fT=!0,g.hi(this.api.getRootNode(),"ytp-touch-mode"),this.Ya.IU(),this.api.U().S("player_doubletap_to_seek")||this.api.U().V)if(B= this.api.getPlayerStateObject(),!(!this.api.tA()||g.F(B,2)&&g.yM(this.api)||g.F(B,64))){B=Date.now()-this.wh;this.o7+=1;if(B<=350){this.Zb=!0;B=this.api.getPlayerSize().width/3;var a=this.api.getRootNode().getBoundingClientRect(),V=G.targetTouches[0].clientX-a.left;a=G.targetTouches[0].clientY-a.top;var x=(this.o7-1)*10;V>0&&VB*2&&V=650;this.Ya.resize();g.Km(B,"ytp-fullscreen",this.api.isFullscreen());g.Km(B,"ytp-large-width-mode",a);g.Km(B,"ytp-small-mode",this.Rm());g.Km(B,"ytp-tiny-mode",this.AM());g.Km(B,"ytp-big-mode",this.DB());this.wG&&this.wG.resize(G)}; g.W.hI=function(G){this.R0(G.state);this.ED()}; g.W.ut=ay(5);g.W.P1=function(){var G=!!this.U_&&!this.api.XK()&&!this.UQ,B=this.api.getPresentingPlayerType()===2,a=this.api.U();if(B){if(CxC&&a.S("enable_visit_advertiser_support_on_ipad_mweb"))return!1;B=H$(this.api.Ch());G&&(B&&B.player?G=(G=B.player.getVideoData(2))?G.isListed&&!g.jQ(B.player.U()):!1:(kN("showInfoBarDuringAd: this is null"),G=!1));return G}return G&&(a.sM||this.api.isFullscreen()||a.XQ)}; g.W.ED=function(){var G=this.P1();this.Xq!==G&&(this.Xq=G,g.Km(this.api.getRootNode(),"ytp-hide-info-bar",!G))}; g.W.R0=function(G){var B=G.isCued()||this.api.KE()&&this.api.getPresentingPlayerType()!==3;B!==this.isCued&&(this.isCued=B,this.Jd&&this.i6(this.Jd),this.Jd=this.K(this.api.g1(),"touchstart",this.XDB,void 0,B));var a=this.Ya,V=G.isPlaying()&&!g.F(G,32)||this.api.Jx();ZM(a,128,!V);a=this.Ya;V=this.api.getPresentingPlayerType()===3;ZM(a,256,V);a=this.api.getRootNode();g.F(G,2)?V=[LZ.ENDED]:(V=[],g.F(G,8)?V.push(LZ.PLAYING):g.F(G,4)&&V.push(LZ.PAUSED),g.F(G,1)&&!g.F(G,32)&&V.push(LZ.BUFFERING),g.F(G, 32)&&V.push(LZ.SEEKING),g.F(G,64)&&V.push(LZ.UNSTARTED));g.Kd(this.Kt,V)||(g.wi(a,this.Kt),this.Kt=V,g.eb(a,V));V=this.api.U();var x=g.F(G,2);a:{var h=this.api.U();var e=h.controlsType;switch(e){case "2":case "0":h=!1;break a}h=e==="3"&&!g.F(G,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:i8B(H$(this.api.Ch())))||this.api.oW()||g.co(h)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Km(a,"ytp-hide-controls",!h);g.Km(a,"ytp-native-controls",V.controlsType==="3"&&!B&&!x&&!this.qz);g.F(G, 128)&&!g.co(V)?(this.wG||(this.wG=new g.qn(this.api),g.X(this,this.wG),g.SX(this.api,this.wG.element,4)),this.wG.X(G.CR),this.wG.show()):this.wG&&(this.wG.dispose(),this.wG=null)}; g.W.yr=function(){return this.api.fE()&&this.api.y0()?(this.api.h1(!1,!1),!0):this.api.XK()?(g.cE(this.api,!0),!0):!1}; g.W.onMutedAutoplayChange=function(G){this.qz=G;this.uX()}; g.W.DB=function(){return!1}; g.W.Rm=function(){return!this.DB()&&(this.api.getPlayerSize().width=0&&B.left>=0&&B.bottom>B.top&&B.right>B.left?B:null;B=this.size;G=G.clone();B=B.clone();V&&(e=B,x=5,(x&65)==65&&(G.x=V.right)&&(x&=-2),(x&132)==132&&(G.y=V.bottom)&&(x&=-5),G.xV.right&&(e.width=Math.min(V.right-G.x,h+e.width-V.left),e.width=Math.max(e.width,0))),G.x+e.width>V.right&&x&1&&(G.x=Math.max(V.right-e.width,V.left)),G.yV.bottom&&(e.height=Math.min(V.bottom-G.y,h+e.height-V.top),e.height=Math.max(e.height,0))),G.y+e.height>V.bottom&&x&4&&(G.y=Math.max(V.bottom-e.height,V.top)));V=new g.hI(0,0,0,0);V.left=G.x;V.top=G.y;V.width= B.width;V.height=B.height;g.tI(this.element,new g.kj(V.left,V.top));g.nU(this.G);this.G.K(QM(this),"contextmenu",this.IXx);this.G.K(this.T,"fullscreentoggled",this.onFullscreenToggled);this.G.K(this.T,"pageTransition",this.Ow)}; g.W.IXx=function(G){if(!G.defaultPrevented){var B=jL(G);g.hw(this.element,B)||this.Bf();this.T.U().disableNativeContextMenu&&G.preventDefault()}}; g.W.onFullscreenToggled=function(){this.Bf();GlV(this)}; g.W.Ow=function(){this.Bf()};g.t(x7,g.T);x7.prototype.onClick=function(){var G=this,B,a,V,x;return g.v(function(h){if(h.j==1)return B=G.api.U(),a=G.api.getVideoData(),V=G.api.getPlaylistId(),x=B.getVideoUrl(a.videoId,V,void 0,!0),g.f(h,V0B(G,x),2);h.X&&aW_(G);G.api.logClick(G.element);g.pV(h)})}; x7.prototype.uL=function(){this.updateValue("icon",{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{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=BTV(this);g.Km(this.element,"ytp-copylink-button-visible", this.visible);this.zt(this.visible);this.tooltip.Gh();this.api.logVisibility(this.element,this.visible&&this.B)}; x7.prototype.xD=function(G){g.T.prototype.xD.call(this,G);this.api.logVisibility(this.element,this.visible&&G)}; x7.prototype.yb=function(){g.T.prototype.yb.call(this);g.WC(this.element,"ytp-copylink-button-visible")};g.t(he,g.T);he.prototype.show=function(){g.T.prototype.show.call(this);g.iC(this.X)}; he.prototype.hide=function(){this.G.stop();this.C=0;this.d1("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.WC(this.element,"ytp-chapter-seek");g.WC(this.element,"ytp-time-seeking");g.T.prototype.hide.call(this)}; he.prototype.Z9=function(G,B,a,V){this.C=G===this.W?this.C+V:V;this.W=G;var x=G===-1?this.Y:this.V;x&&this.T.logClick(x);this.L?this.X.stop():g.oX(this.X);this.G.start();this.element.setAttribute("data-side",G===-1?"back":"forward");var h=3*this.T.g1().getPlayerSize().height;x=this.T.g1().getPlayerSize();x=x.width/3-3*x.height;this.j.style.width=h+"px";this.j.style.height=h+"px";G===1?(this.j.style.left="",this.j.style.right=x+"px"):G===-1&&(this.j.style.right="",this.j.style.left=x+"px");var e=h* 2.5;h=e/2;var w=this.d1("ytp-doubletap-ripple");w.style.width=e+"px";w.style.height=e+"px";G===1?(G=this.T.g1().getPlayerSize().width-B+Math.abs(x),w.style.left="",w.style.right=G-h+"px"):G===-1&&(G=Math.abs(x)+B,w.style.right="",w.style.left=G-h+"px");w.style.top="calc((33% + "+Math.round(a)+"px) - "+h+"px)";if(a=this.d1("ytp-doubletap-ripple"))a.classList.remove("ytp-doubletap-ripple"),a.classList.add("ytp-doubletap-ripple");xxb(this,this.L?this.C:V)};g.t(h9B,nO);g.W=h9B.prototype;g.W.P8=function(G){this.Qb||(this.Qb=new ZY(this.T),g.X(this,this.Qb));var B,a;if((B=this.Yf)==null?0:(a=B.menu)==null?0:a.menuRenderer)this.Qb.open(this.Yf.menu.menuRenderer,G.target),G.preventDefault()}; g.W.y3=function(){return!!this.j}; g.W.ze=function(){return!!this.j}; g.W.R7=function(G){G.target===this.overflowButton.element?G.preventDefault():(this.Cd&&this.T.pN("innertubeCommand",this.Cd),this.oI(!1))}; g.W.NZ=function(){this.oI(!0);var G,B;((G=this.j)==null?0:(B=G.bannerData)==null?0:B.dismissedStatusKey)&&this.wO.push(this.j.bannerData.dismissedStatusKey);this.Gw()}; g.W.kO=function(){this.Gw();li(this)}; g.W.o3H=function(G){var B=this,a;if(G.id!==((a=this.j)==null?void 0:a.identifier)){this.Gw();a=g.m(this.GH);for(var V=a.next();!V.done;V=a.next()){var x=V.value,h=void 0,e=void 0;if((V=(h=x)==null?void 0:(e=h.bannerData)==null?void 0:e.itemData)&&x.identifier===G.id){e=h=void 0;var w=((h=x)==null?void 0:(e=h.bannerData)==null?void 0:e.dismissedStatusKey)||"";if(this.wO.includes(w))break;this.j=x;this.banner.element.setAttribute("aria-label",V.accessibilityLabel||"");V.trackingParams&&(this.G=!0,this.T.setTrackingParams(this.badge.element, V.trackingParams));this.Y.show();cw(this);this.Zx.zt(!V.stayInApp);mxb(this);WQH(this);KM(this);this.Cd=g.u(V.onTapCommand,$k);if(x=g.u(V.menuOnTap,$k))this.Yf=g.u(x,EV$);x=void 0;this.banner.update({thumbnail:(x=(V.thumbnailSources||[])[0])==null?void 0:x.url,title:V.productTitle,price:V.priceReplacementText?V.priceReplacementText:V.price,salesOriginalPrice:lWV(this),priceDropReferencePrice:klK(this),promotionText:KQB(this),priceA11yText:NTV(this),affiliateDisclaimer:V.affiliateDisclaimer,vendor:dxY(this)}); w=e=h=x=void 0;((x=V)==null?0:(h=x.hiddenProductOptions)==null?0:h.showDropCountdown)&&((e=V)==null?0:(w=e.hiddenProductOptions)==null?0:w.dropTimestampMs)&&(this.Md=new g.J8(function(){t09(B)},1E3),this.Zx.hide(),this.countdownTimer.show(),t09(this)); this.T.S("web_player_enable_featured_product_banner_exclusives_on_desktop")&&e9V(this)&&(this.YD=new g.J8(function(){w3Y(B)},1E3),w3Y(this))}}}}; g.W.Gw=function(){this.j&&(this.j=void 0,this.Re())}; g.W.onVideoDataChange=function(G,B){var a=this;G==="dataloaded"&&li(this);var V,x,h;G=g.u((V=B.getWatchNextResponse())==null?void 0:(x=V.playerOverlays)==null?void 0:(h=x.playerOverlayRenderer)==null?void 0:h.productsInVideoOverlayRenderer,UU$);this.overflowButton.show();this.dismissButton.hide();var e=G==null?void 0:G.featuredProductsEntityKey;this.trendingOfferEntityKey=G==null?void 0:G.trendingOfferEntityKey;this.GH.length||(z9c(this,e),KM(this));var w;(w=this.fd)==null||w.call(this);this.fd=g.BF.subscribe(function(){z9c(a, e);KM(a)})}; g.W.yb=function(){li(this);mxb(this);WQH(this);nO.prototype.yb.call(this)};g.t(O7H,g.T);O7H.prototype.onClick=function(){this.T.logClick(this.element,this.X)};g.t(EwK,g.uq);g.W=EwK.prototype;g.W.show=function(){g.uq.prototype.show.call(this);this.T.publish("infopaneldetailvisibilitychange",!0);this.T.logVisibility(this.element,!0);jIb(this,!0)}; g.W.hide=function(){g.uq.prototype.hide.call(this);this.T.publish("infopaneldetailvisibilitychange",!1);this.T.logVisibility(this.element,!1);jIb(this,!1)}; g.W.getId=function(){return this.G}; g.W.Bs=function(){return this.itemData.length}; g.W.onVideoDataChange=function(G,B){if(B){var a,V,x,h;this.update({title:((a=B.ou)==null?void 0:(V=a.title)==null?void 0:V.content)||"",body:((x=B.ou)==null?void 0:(h=x.bodyText)==null?void 0:h.content)||""});var e;G=((e=B.ou)==null?void 0:e.trackingParams)||null;this.T.setTrackingParams(this.element,G);e=g.m(this.itemData);for(G=e.next();!G.done;G=e.next())G.value.dispose();this.itemData=[];var w;if((w=B.ou)==null?0:w.ctaButtons)for(B=g.m(B.ou.ctaButtons),w=B.next();!w.done;w=B.next())if(w=g.u(w.value, z_s))w=new O7H(this.T,w,this.j),w.I4&&(this.itemData.push(w),w.iL(this.items))}}; g.W.yb=function(){this.hide();g.uq.prototype.yb.call(this)};g.t(cNK,g.T);g.W=cNK.prototype;g.W.onVideoDataChange=function(G,B){yNB(this,B);this.yg&&fWX(this,this.yg)}; g.W.Du=function(G){var B=this.T.getVideoData();this.videoId!==B.videoId&&yNB(this,B);fWX(this,G.state);this.yg=G.state}; g.W.UR=function(G){(this.G=G)?this.hide():this.j&&this.show()}; g.W.g6=function(){this.X||this.xW();this.showControls=!0}; g.W.V$=function(){this.X||this.Bf();this.showControls=!1}; g.W.xW=function(){var G;if((G=this.T)==null?0:G.S("embeds_web_enable_info_panel_sizing_fix")){var B;G=(B=this.T)==null?void 0:B.getPlayerSize();B=G.width<380;var a;G=G.height<(((a=this.T)==null?0:a.isEmbedsShortsMode())?400:280);var V,x;if((((V=this.T)==null?0:V.getPlayerStateObject().isCued())||((x=this.T)==null?0:g.F(x.getPlayerStateObject(),1024)))&&B&&G)return}this.j&&!this.G&&(this.C.show(),this.T.publish("infopanelpreviewvisibilitychange",!0),this.T.logVisibility(this.element,!0))}; g.W.Bf=function(){this.j&&!this.G&&(this.C.hide(),this.T.publish("infopanelpreviewvisibilitychange",!1),this.T.logVisibility(this.element,!1))}; g.W.ZRL=function(){this.X=!1;this.showControls||this.Bf()};var nn8={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(nn8).reduce(function(G,B){G[nn8[B]]=B;return G},{}); var fvJ={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(fvJ).reduce(function(G,B){G[fvJ[B]]=B;return G},{}); var H0J={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(H0J).reduce(function(G,B){G[H0J[B]]=B;return G},{});var vnC,DW$;vnC=[{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"}];DW$=[{option:0,text:k7(0)},{option:.25,text:k7(.25)},{option:.5,text:k7(.5)},{option:.75,text:k7(.75)},{option:1,text:k7(1)}]; g.zx=[{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:vnC},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:k7(.5)},{option:-1,text:k7(.75)},{option:0,text:k7(1)},{option:1, text:k7(1.5)},{option:2,text:k7(2)},{option:3,text:k7(3)},{option:4,text:k7(4)}]},{option:"background",text:"Color de fondo",options:vnC},{option:"backgroundOpacity",text:"Opacidad de fondo",options:DW$},{option:"windowColor",text:"Color de la ventana",options:vnC},{option:"windowOpacity",text:"Opacidad de la ventana",options:DW$},{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:k7(.25)},{option:.5,text:k7(.5)},{option:.75,text:k7(.75)},{option:1,text:k7(1)}]}];var SlC=[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.t(Z7B,g.Zh);g.W=Z7B.prototype; g.W.Kp=function(G){G.repeat||(this.C.s_=!1);var B=!1,a=G.keyCode,V=jL(G),x=!G.altKey&&!G.ctrlKey&&!G.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||SlC.includes(a)),h=!1,e=!1,w=this.api.U();G.defaultPrevented?(x=!1,e=!0):w.dC&&!this.api.isMutedByEmbedsMutedAutoplay()&&(x=!1);if(a===9)B=!0;else{if(V)switch(a){case 32:case 13:if(V.tagName==="BUTTON"||V.tagName==="A"||V.tagName==="INPUT")B=!0,x=!1;else if(x){var K=V.getAttribute("role");!K||K!=="option"&&K!=="button"&&K.indexOf("menuitem")!==0|| (B=!0,V.click(),h=!0)}break;case 37:case 39:case 36:case 35:B=V.getAttribute("role")==="slider";break;case 38:case 40:K=V.getAttribute("role"),V=a===38?V.previousSibling:V.nextSibling,K==="slider"?B=!0:x&&(K==="option"?(V&&V.getAttribute("role")==="option"&&V.focus(),h=B=!0):K&&K.indexOf("menuitem")===0&&(V&&V.hasAttribute("role")&&V.getAttribute("role").indexOf("menuitem")===0&&V.focus(),h=B=!0))}if(x&&!h)switch(a){case 38:h=Math.min(this.api.getVolume()+5,100);os(this.wC,h,!1);this.api.setVolume(h); e=h=!0;break;case 40:h=Math.max(this.api.getVolume()-5,0);os(this.wC,h,!0);this.api.setVolume(h);e=h=!0;break;case 36:this.api.tA()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),e=h=!0);break;case 35:this.api.tA()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),e=h=!0)}}B&&dq(this,!0);(B||e)&&this.Ya.IU();(h||x&&this.handleGlobalKeyDown(a,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,G.key,G.code,G.repeat))&&G.preventDefault();w.W&&(G={keyCode:G.keyCode, altKey:G.altKey,ctrlKey:G.ctrlKey,metaKey:G.metaKey,shiftKey:G.shiftKey,handled:G.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.qD("onKeyPress",G))}; g.W.wI=function(G){var B=G.keyCode;(!this.api.S("web_player_spacebar_control_bugfix")||this.api.S("web_player_spacebar_control_bugfix")&&!this.G)&&this.handleGlobalKeyUp(B,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,G.key,G.code)&&G.preventDefault()}; g.W.handleGlobalKeyUp=function(G,B,a,V,x,h,e){this.api.publish("keyboardserviceglobalkeyup",{keyCode:G,shiftKey:B,ctrlKey:a,altKey:V,metaKey:x,key:h,code:e});B=!1;if(this.C.s_)return B;(x=g.vE(this.api.Ch()))&&(x=x.ql)&&x.Rt&&(x.qV(G),B=!0);switch(G){case 9:dq(this,!0);B=!0;break;case 32:if(this.api.S("web_speedmaster_spacebar_control")&&(!this.api.S("web_player_spacebar_control_bugfix")&&!this.G||this.api.S("web_player_spacebar_control_bugfix"))&&!this.api.U().dC){var w,K;G=(w=this.progressBar)== null?void 0:(K=w.X)==null?void 0:K.isEnabled;B=this.bq(G)}break;case 39:(G6?V:a)&&this.api.S("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),w=(w=this.api.getVideoData())?w.iz:[],K=vwX(w,this.api.getCurrentTime()*1E3),K!==-1&&this.j!=null&&(Wg(this.j,1,w[K].title),this.api.seekTo(w[K].startTime/1E3,void 0,void 0,void 0,52),B=!0))}return B}; g.W.handleGlobalKeyDown=function(G,B,a,V,x,h,e,w){w||(this.C.s_=!1);var K=!1,l=this.api.U();if(l.dC&&!this.api.isMutedByEmbedsMutedAutoplay())return K;var k=g.vE(this.api.Ch());if(k&&(k=k.ql)&&k.Rt)switch(G){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:K=k.tp(G)}l.L||K||(K=h||String.fromCharCode(G).toLowerCase(),this.X+=K,"awesome".indexOf(this.X)===0?(K=!0,7===this.X.length&&$VX(this.api.getRootNode(),"ytp-color-party")):(this.X=K,K="awesome".indexOf(this.X)===0));if(!K&&(!this.api.isMutedByEmbedsMutedAutoplay()|| SlC.includes(G))){var N=this.api.getVideoData(),d,C;k=(d=this.progressBar)==null?void 0:(C=d.X)==null?void 0:C.isEnabled;d=N?N.iz:[];C=G6?V:a;switch(G){case 80:B&&!l.Qb&&(P$(this.wC,XL9(),"Anterior"),this.api.previousVideo(),K=!0);break;case 78:B&&!l.Qb&&(P$(this.wC,EX(),"Siguiente"),this.api.nextVideo(),K=!0);break;case 74:this.api.tA()&&(this.api.startSeekCsiAction(),this.j?this.api.S("enable_key_press_seek_logging")?(K=CM(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),e1(this.j, -1,10,K)):e1(this.j,-1,10):P$(this.wC,{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{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),K=!0);break;case 76:this.api.tA()&&(this.api.startSeekCsiAction(),this.j?this.api.S("enable_key_press_seek_logging")?(K=CM(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),e1(this.j,1,10,K)):e1(this.j,1,10):P$(this.wC,{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{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),K=!0);break;case 37:this.api.tA()&&(this.api.startSeekCsiAction(),C?(C=Dx9(d,this.api.getCurrentTime()*1E3),C!==-1&&this.j!=null&&(Wg(this.j,-1,d[C].title),this.api.seekTo(d[C].startTime/1E3,void 0,void 0,void 0,53),K=!0)):(this.j?this.api.S("enable_key_press_seek_logging")?(K=CM(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),e1(this.j,-1,5,K)):e1(this.j,-1,5):P$(this.wC,{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{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),K=!0));break;case 39:this.api.tA()&&(this.api.startSeekCsiAction(),C?this.api.S("web_enable_keyboard_shortcut_for_timely_actions")||(C=vwX(d,this.api.getCurrentTime()*1E3),C!==-1&&this.j!=null&&(Wg(this.j,1,d[C].title),this.api.seekTo(d[C].startTime/1E3,void 0,void 0,void 0,52),K=!0)):(this.j!=null?this.api.S("enable_key_press_seek_logging")?(K=CM(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),e1(this.j,1,5,K)):e1(this.j, 1,5):P$(this.wC,{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{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),K=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),os(this.wC,this.api.getVolume(),!1)):(this.api.mute(),os(this.wC,0,!0));K=!0;break;case 32:K=this.api.S("web_speedmaster_spacebar_control")?!this.api.U().Qb:this.bq(k);break;case 75:K=this.bq(k);break;case 190:B?l.enableSpeedOptions&&$xc(this)&&(K=this.api.getPlaybackRate(),this.api.setPlaybackRate(K+.25,!0),DEx(this.wC,!1),K=!0):this.api.tA()&&(this.step(1),K=!0);break;case 188:B? l.enableSpeedOptions&&$xc(this)&&(K=this.api.getPlaybackRate(),this.api.setPlaybackRate(K-.25,!0),DEx(this.wC,!0),K=!0):this.api.tA()&&(this.step(-1),K=!0);break;case 70:KTY(this.api)&&(this.api.toggleFullscreen().catch(function(){}),K=!0); break;case 27:k?(this.progressBar.yT(),K=!0):this.L()&&(K=!0)}if(l.controlsType!=="3")switch(G){case 67:g.c$(this.api.Ch())&&(l=this.api.getOption("captions","track"),this.api.toggleSubtitles(),SHY(this.wC,!l||l&&!l.displayName),K=!0);break;case 79:te(this,"textOpacity");break;case 87:te(this,"windowOpacity");break;case 187:case 61:te(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:te(this,"fontSizeIncrement",!0,!0)}var z;B||a||V||(G>=48&&G<=57?z=G-48:G>=96&&G<=105&&(z=G-96));z!=null&&this.api.tA()&& (this.api.startSeekCsiAction(),l=this.api.getProgressState(),this.api.seekTo(z/10*(l.seekableEnd-l.seekableStart)+l.seekableStart,void 0,void 0,void 0,81),K=!0);K&&this.Ya.IU()}this.G||this.api.publish("keyboardserviceglobalkeydown",{keyCode:G,shiftKey:B,ctrlKey:a,altKey:V,metaKey:x,key:h,code:e,repeat:w},this.C);return K}; g.W.step=function(G){this.api.tA();if(this.api.getPlayerStateObject().isPaused()){var B=this.api.getVideoData().X;B&&(B=B.video)&&this.api.seekBy(G/(B.fps||30),void 0,void 0,G>0?77:78)}}; g.W.bq=function(G){if(!this.api.U().Qb){var B;var a,V=(B=this.api.getVideoData())==null?void 0:(a=B.getPlayerResponse())==null?void 0:a.playabilityStatus;if(V){var x;B=((x=g.u(V.miniplayer,Hda))==null?void 0:x.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else B=!1;B&&this.api.pN("onExpandMiniplayer");G?this.progressBar.bl():(G=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.wC.Up(G),G?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.W.yb=function(){g.oX(this.B);g.Zh.prototype.yb.call(this)};g.t(g.m_,g.T);g.m_.prototype.Hm=ay(11); g.m_.prototype.uL=function(){var G=this.T.U(),B=G.C||this.T.S("web_player_hide_overflow_button_if_empty_menu")&&this.Wr.isEmpty();G=g.co(G)&&g.fb(this.T)&&g.F(this.T.getPlayerStateObject(),128);var a=this.T.getPlayerSize();this.visible=this.T.Rm()&&!G&&a.width>=240&&!g.BE(this.T.getVideoData())&&!B&&!this.j&&!this.T.isEmbedsShortsMode();g.Km(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.T.Gh();this.T.logVisibility(this.element,this.visible&&this.B)}; g.m_.prototype.xD=function(G){g.T.prototype.xD.call(this,G);this.T.logVisibility(this.element,this.visible&&G)}; g.m_.prototype.yb=function(){g.T.prototype.yb.call(this);g.WC(this.element,"ytp-overflow-button-visible")};g.t(X39,g.uq);g.W=X39.prototype;g.W.eq=function(G){G=jL(G);g.hw(this.element,G)&&(g.hw(this.j,G)||g.hw(this.closeButton,G)||Lb(this))}; g.W.Bf=function(){g.uq.prototype.Bf.call(this);this.T.LG(this.element)}; g.W.show=function(){this.Rt&&this.T.publish("OVERFLOW_PANEL_OPENED");g.uq.prototype.show.call(this);this.element.setAttribute("aria-modal","true");uLB(this,!0)}; g.W.hide=function(){g.uq.prototype.hide.call(this);this.element.removeAttribute("aria-modal");uLB(this,!1)}; g.W.onFullscreenToggled=function(G){!G&&this.Mo()&&Lb(this)}; g.W.isEmpty=function(){return this.actionButtons.length===0}; g.W.focus=function(){for(var G=g.m(this.actionButtons),B=G.next();!B.done;B=G.next())if(B=B.value,B.Rt){B.focus();break}};g.t(QI9,g.T);QI9.prototype.onClick=function(G){g.hY(G,this.api)&&this.api.playVideoAt(this.index)};g.t(LQB,g.uq);g.W=LQB.prototype;g.W.show=function(){g.uq.prototype.show.call(this);this.j.K(this.api,"videodatachange",this.AK);this.j.K(this.api,"onPlaylistUpdate",this.AK);this.AK()}; g.W.hide=function(){g.uq.prototype.hide.call(this);g.nU(this.j);this.updatePlaylist(null)}; g.W.AK=function(){this.updatePlaylist(this.api.getPlaylist());this.api.U().C&&(this.d1("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.i6(this.C),this.C=null))}; g.W.tO=function(){var G=this.playlist,B=G.author,a=B?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",V={CURRENT_POSITION:String(G.index+1),PLAYLIST_LENGTH:String(G.getLength())};B&&(V.AUTHOR=B);this.update({title:G.title,subtitle:g.tm(a,V),playlisturl:this.api.getVideoUrl(!0)});B=G.X;if(B===this.G)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[G.index];else{a=g.m(this.playlistData);for(V=a.next();!V.done;V=a.next())V.value.dispose(); a=G.getLength();this.playlistData=[];for(V=0;V=this.X&&!G.C&&!B.isAd()&&!this.api.isEmbedsShortsMode()}else G=!1;this.visible=G;this.zt(this.visible);g.Km(this.element,"ytp-search-button-visible",this.visible);g.Km(this.element,"ytp-show-search-title",!this.api.Rm());this.api.logVisibility(this.element,this.visible&&this.B)}; UF.prototype.xD=function(G){g.T.prototype.xD.call(this,G);this.api.logVisibility(this.element,this.visible&&G)};g.t(g.OF,g.T);g.W=g.OF.prototype;g.W.Rr=ay(8);g.W.onClick=function(){var G=this,B=this.api.U(),a=this.api.getVideoData(this.api.getPresentingPlayerType()),V=this.api.getPlaylistId();B=this.api.S("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):B.getVideoUrl(a.videoId,V,void 0,!0);if(navigator.share)try{var x=navigator.share({title:a.title,url:B});x instanceof Promise&&x.catch(function(h){PIy(G,h)})}catch(h){h instanceof Error&&PIy(this,h)}else this.j.yr(),Lb(this.C,this.element,!1); this.api.logClick(this.element)}; g.W.uL=function(){var G=this.api.U(),B=this.api.isEmbedsShortsMode();g.Km(this.element,"ytp-show-share-title",g.co(G)&&!B);this.j.DB()&&B?(G=(this.api.g1().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.K4(this.element,"right",G+"px")):B&&g.K4(this.element,"right","0px");this.updateValue("icon",{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{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=i7y(this);g.Km(this.element,"ytp-share-button-visible",this.visible);this.zt(this.visible);this.tooltip.Gh();this.api.logVisibility(this.element,i7y(this)&&this.B)}; g.W.xD=function(G){g.T.prototype.xD.call(this,G);this.api.logVisibility(this.element,this.visible&&G)}; g.W.yb=function(){g.T.prototype.yb.call(this);g.WC(this.element,"ytp-share-button-visible")};g.t(M0H,g.uq);g.W=M0H.prototype;g.W.jQ=function(G){G=jL(G);g.hw(this.L,G)||g.hw(this.closeButton,G)||Lb(this)}; g.W.Bf=function(){g.uq.prototype.Bf.call(this);this.tooltip.LG(this.element);this.api.logVisibility(this.j,!1);for(var G=g.m(this.C),B=G.next();!B.done;B=G.next())B=B.value,this.api.hasVe(B.element)&&this.api.logVisibility(B.element,!1)}; g.W.show=function(){var G=this.Rt;g.uq.prototype.show.call(this);this.uL();G||this.api.pN("onSharePanelOpened")}; g.W.wff=function(){this.Rt&&this.uL()}; g.W.uL=function(){var G=this;g.hi(this.element,"ytp-share-panel-loading");g.WC(this.element,"ytp-share-panel-fail");var B=this.api.getVideoData(),a=this.api.getPlaylistId()&&this.G.checked;B.getSharePanelCommand&&Jl(this.api.pM(),B.getSharePanelCommand,{includeListId:a}).then(function(V){G.TH()||(g.WC(G.element,"ytp-share-panel-loading"),BsV(G,V))}); B=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",B);this.updateValue("linkText",B);this.updateValue("shareLinkWithUrl",g.tm("Compartir v\u00ednculo $URL",{URL:B}));wR(this.j);this.api.logVisibility(this.j,!0)}; g.W.onFullscreenToggled=function(G){!G&&this.Mo()&&Lb(this)}; g.W.focus=function(){this.j.focus()}; g.W.yb=function(){g.uq.prototype.yb.call(this);GwB(this)};g.t(xGb,nO);g.W=xGb.prototype;g.W.yb=function(){Kzy(this);nO.prototype.yb.call(this)}; g.W.R7=function(G){G.target!==this.dismissButton.element&&(this.oI(!1),this.T.pN("innertubeCommand",this.onClickCommand))}; g.W.NZ=function(){this.Ur=!0;this.oI(!0);this.Re()}; g.W.Wex=function(G){this.W=G;this.Re()}; g.W.onVideoDataChange=function(G,B){if(G=!!B.videoId&&this.videoId!==B.videoId)this.videoId=B.videoId,this.Ur=!1,this.HS=!0,this.V=this.XJ=!1,Kzy(this),wAY(this,!1),this.X=this.j=!1,j1(this),hSH(this);if(G||!B.videoId)this.zH=this.G=!1;var a,V;if(B==null?0:(a=B.getPlayerResponse())==null?0:(V=a.videoDetails)==null?0:V.isLiveContent)this.Ry(!1);else{var x,h,e;B=g.u((x=B.getWatchNextResponse())==null?void 0:(h=x.playerOverlays)==null?void 0:(e=h.playerOverlayRenderer)==null?void 0:e.productsInVideoOverlayRenderer, UU$);this.W=this.enabled=!1;if(B){if(x=B==null?void 0:B.featuredProductsEntityKey){h=g.BF.getState().entities;var w;if((w=Kp(h,"featuredProductsEntity",x))==null?0:w.productsData){this.Ry(!1);return}}this.enabled=!0;if(!this.G){var K;w=(K=B.badgeInteractionLogging)==null?void 0:K.trackingParams;(this.G=!!w)&&this.T.setTrackingParams(this.badge.element,w||null)}if(!this.zH){var l;if(this.zH=!((l=B.dismissButton)==null||!l.trackingParams)){var k;this.T.setTrackingParams(this.dismissButton.element,((k= B.dismissButton)==null?void 0:k.trackingParams)||null)}}B.isContentForward&&(K=B.productsData,wAY(this,!0),hSH(this),K=WzK(this,K),l=[],K.length>0&&l.push(K[0]),K.length>1&&(k=new g.T({Z:"div",J:"ytp-suggested-action-more-products-icon"}),g.X(this,k),l.push(k),l.push.apply(l,g.U(K.slice(1)))),this.L=new g.T({Z:"div",D:l,J:"ytp-suggested-action-content-forward-container"}),g.X(this,this.L),this.LN.element.append(this.L.element));this.text=g.tU(B.text);var N;if(K=(N=B.dismissButton)==null?void 0:N.a11yLabel)this.Er= g.tU(K);this.onClickCommand=B.onClickCommand;this.timing=B.timing;this.z1()}hH9(this);cw(this);this.Re()}}; g.W.y3=function(){return!this.W&&this.enabled&&!this.Ur&&!this.T.Rm()&&!this.QW&&(this.V||this.HS)}; g.W.LY=function(G){nO.prototype.LY.call(this,G);if(this.j||this.X)this.timing&&EF(this.timing.preview)&&(this.j=!1,j1(this),this.X=!1,j1(this),this.T.KD("shopping_overlay_preview_collapsed"),this.T.KD("shopping_overlay_preview_expanded"),G=bi(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),EF(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.T.KD("shopping_overlay_expanded"),G.end=this.timing.expanded.endSec*1E3),this.T.z1([G])), this.XJ=!0,cw(this);j1(this)}; g.W.Ry=function(G){(this.V=G)?(y9(this),cw(this,!1)):(Kzy(this),this.SJ.start());this.Re()}; g.W.z1=function(G){var B=this.timing;G=(G===void 0?0:G)+this.T.getCurrentTime();var a=[],V=B.visible,x=B.preview;B=B.expanded;EF(V)&&(a5_(V,G),a.push(bi(V.startSec,V.endSec,"shopping_overlay_visible")));EF(x)&&(a5_(x,G),V=x.startSec+1,a.push(bi(x.startSec,V,"shopping_overlay_preview_collapsed")),a.push(bi(V,x.endSec,"shopping_overlay_preview_expanded")));EF(B)&&(a5_(B,G),a.push(bi(B.startSec,B.endSec,"shopping_overlay_expanded")));this.T.z1(a)};g.t(NsK,g.T); NsK.prototype.uL=function(){var G=this.api.U();this.zt(g.co(G)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Rt);var B=this.api.getVideoData(),a=!1;this.api.getPresentingPlayerType()===2?a=!!B.videoId&&!!B.isListed&&!!B.author&&!!B.QW&&!!B.profilePicture:g.co(G)&&(a=!!B.videoId&&!!B.QW&&!!B.profilePicture&&!g.BE(B)&&!G.C&&!(G.V&&this.api.getPlayerSize().width<200));var V=B.profilePicture;G=g.co(G)?B.expandedTitle:B.author;V=V===void 0? "":V;G=G===void 0?"":G;a?(this.X!==V&&(this.j.style.backgroundImage="url("+V+")",this.X=V),this.updateValue("channelLogoLabel",g.tm("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:G})),g.hi(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.WC(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,a&&this.B);this.api.logVisibility(this.channelName,a&&this.B);this.subscribeButton&&(this.subscribeButton.channelId=B.dB);this.updateValue("expandedTitle",B.expandedTitle)};g.t(yO,g.uq);yO.prototype.show=function(){g.uq.prototype.show.call(this);this.j.start()}; yO.prototype.hide=function(){g.uq.prototype.hide.call(this);this.j.stop()}; yO.prototype.au=function(G,B){G==="dataloaded"&&((this.US=B.US,this.Vg=B.Vg,isNaN(this.US)||isNaN(this.Vg))?this.C&&(this.T.KD("intro"),this.T.removeEventListener(g.hm("intro"),this.W),this.T.removeEventListener(g.ew("intro"),this.L),this.T.removeEventListener("onShowControls",this.G),this.hide(),this.C=!1):(this.T.addEventListener(g.hm("intro"),this.W),this.T.addEventListener(g.ew("intro"),this.L),this.T.addEventListener("onShowControls",this.G),G=new g.V1(this.US,this.Vg,{priority:9,namespace:"intro"}), this.T.z1([G]),this.C=!0))};g.t(cg,g.T);cg.prototype.onClick=function(){this.T.WE()}; cg.prototype.uL=function(){var G=!0;g.co(this.T.U())&&(G=G&&this.T.g1().getPlayerSize().width>=480);this.zt(G);this.updateValue("icon",this.T.vG()?{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,N:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: {Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{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.t(C$A,g.T);C$A.prototype.yb=function(){this.j=null;g.T.prototype.yb.call(this)};g.t(nM,g.T);nM.prototype.onClick=function(){this.T.pN("innertubeCommand",this.X)}; nM.prototype.Y=function(G){G!==this.L&&(this.update({title:G,ariaLabel:G}),this.L=G);G?this.show():this.hide()}; nM.prototype.V=function(){this.j.disabled=this.X==null;g.Km(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.BC()};g.t(fM,nM);fM.prototype.onClickCommand=function(G){g.u(G,GC)&&this.BC()}; fM.prototype.updateVideoData=function(G,B){var a,V,x;G=g.u((a=B.getWatchNextResponse())==null?void 0:(V=a.playerOverlays)==null?void 0:(x=V.playerOverlayRenderer)==null?void 0:x.decoratedPlayerBarRenderer,jt);a=g.u(G==null?void 0:G.playerBarActionButton,g.ZU);this.T.S("web_player_updated_entrypoint")&&(this.W=IM(a==null?void 0:a.text));this.X=a==null?void 0:a.command;nM.prototype.V.call(this)}; fM.prototype.BC=function(){var G=this.T.S("web_player_updated_entrypoint")?this.W:"",B=this.G.j,a,V=((a=this.T.getLoopRange())==null?void 0:a.type)==="clips";if(B.length>1&&!V){G=this.T.getProgressState().current*1E3;a=Nm(B,G);G=B[a].title||"Cap\u00edtulos";if(a!==this.currentIndex||this.C)this.T.pN("innertubeCommand",B[a].onActiveCommand),this.currentIndex=a;this.C=!1}else this.C=!0;nM.prototype.Y.call(this,G)};g.t(Hg,g.T);Hg.prototype.L=function(G){g.F(G.state,32)?t4X(this,this.api.Q_()):this.Rt&&(g.F(G.state,16)||g.F(G.state,1))||this.j.hide()}; Hg.prototype.OA=function(){var G=this.api.getPlayerStateObject();(g.F(G,32)||g.F(G,16))&&mGz(this)}; Hg.prototype.W=function(){this.C=NaN;mGz(this)}; Hg.prototype.hide=function(){this.X&&t4X(this,null);g.T.prototype.hide.call(this)};g.t(I5B,g.T);g.W=I5B.prototype;g.W.onClick=function(){var G=this;if(this.T.U().QW||this.T.U().V){this.T.logClick(this.element);try{this.T.toggleFullscreen().catch(function(B){G.GQ(B)})}catch(B){this.GQ(B)}}else Lb(this.message,this.element,!0)}; g.W.GQ=function(G){String(G).includes("fullscreen error")?g.Zb(G):g.RA(G);this.rl()}; g.W.rl=function(){this.disable();this.message.xW(this.element,!0)}; g.W.hE=function(){m$()===this.T.getRootNode()?this.C.start():(this.C.stop(),this.message&&this.message.hide())}; g.W.v5=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var G=window.screen.width*.9,B=window.screen.height*.9,a=Math.max(window.outerWidth,window.innerWidth),V=Math.max(window.outerHeight,window.innerHeight);if(a>V!==G>B){var x=a;a=V;V=x}G>a&&B>V&&this.rl()}}; g.W.disable=function(){var G=this;if(!this.message){var B=(CU(["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.uq(this.T,{Z:"div",bL:["ytp-popup","ytp-generic-popup"], N:{role:"alert",tabindex:"0"},D:[B[0],{Z:"a",N:{href:"https://support.google.com/youtube/answer/6276924",target:this.T.U().Y},cS:B[2]},B[4]]},100,!0);this.message.hide();g.X(this,this.message);this.message.subscribe("show",function(a){G.X.LH(G.message,a)}); g.SX(this.T,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}}; g.W.uL=function(){var G=KTY(this.T),B=this.T.U().V&&this.T.getPlayerSize().width<250;this.zt(G&&!B);var a;((a=this.T.U())==null?0:a.S("embeds_use_parent_visibility_in_ve_logging"))?this.T.logVisibility(this.element,this.Rt&&this.B):this.T.logVisibility(this.element,this.Rt)}; g.W.CG=function(G){if(G){var B={Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"g",J:"ytp-fullscreen-button-corner-2",D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{Z:"g",J:"ytp-fullscreen-button-corner-3",D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{Z:"g",J:"ytp-fullscreen-button-corner-0",D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{Z:"g", J:"ytp-fullscreen-button-corner-1",D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};G=g.jX(this.T,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.T.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(a){g.Zb(a)})}else B={Z:"svg", N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"g",J:"ytp-fullscreen-button-corner-0",D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{Z:"g",J:"ytp-fullscreen-button-corner-1",D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{Z:"g",J:"ytp-fullscreen-button-corner-2",D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{Z:"g",J:"ytp-fullscreen-button-corner-3", D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},G=g.jX(this.T,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"});G=this.message?null:G;this.update({title:G,icon:B});this.X.G1().Gh()}; g.W.yb=function(){this.message||((0,this.j)(),this.j=null);g.T.prototype.yb.call(this)}; g.W.xD=function(G){g.T.prototype.xD.call(this,G);var B;((B=this.T.U())==null?0:B.S("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.Rt&&G)};g.t(vg,g.T);vg.prototype.onClick=function(){this.T.logClick(this.element);this.T.seekBy(this.j,!0);var G=this.j>0?1:-1,B=Math.abs(this.j),a=this.T.UK().zK;a&&e1(a,G,B);this.X.isActive()?this.C=!0:(G=["ytp-jump-spin"],this.j<0&&G.push("backwards"),this.element.classList.add.apply(this.element.classList,g.U(G)),g.iC(this.X))};g.t(DV,nM);DV.prototype.onClickCommand=function(G){g.u(G,gVh)&&this.BC()}; DV.prototype.updateVideoData=function(){var G,B;this.X=(G=pAV(this))==null?void 0:(B=G.onTap)==null?void 0:B.innertubeCommand;nM.prototype.V.call(this)}; DV.prototype.BC=function(){var G="",B=this.G.W,a,V=(a=pAV(this))==null?void 0:a.headerTitle;a=V?g.tU(V):"";var x;V=((x=this.T.getLoopRange())==null?void 0:x.type)==="clips";B.length>1&&!V&&(G=this.T.getProgressState().current*1E3,x=H7b(B,G),G=x!=null?B[x].title:a,x!=null&&x!==this.currentIndex&&(this.T.pN("innertubeCommand",B[x].onActiveCommand),this.currentIndex=x));nM.prototype.Y.call(this,G)};g.t(S1,g.T);S1.prototype.onClick=function(){this.T.pN("onCollapseMiniplayer");this.T.logClick(this.element)}; S1.prototype.uL=function(){this.visible=!this.T.isFullscreen();this.zt(this.visible);this.T.logVisibility(this.element,this.visible&&this.B)}; S1.prototype.xD=function(G){g.T.prototype.xD.call(this,G);this.T.logVisibility(this.element,this.visible&&G)};g.t(R_,g.T);g.W=R_.prototype;g.W.Lj=function(G){this.visible=G.width>=300||this.Zx;this.zt(this.visible);this.T.logVisibility(this.element,this.visible&&this.B)}; g.W.G_1=function(){this.T.U().SJ?this.T.isMuted()?this.T.unMute():this.T.mute():Lb(this.message,this.element,!0);this.T.logClick(this.element)}; g.W.onVolumeChange=function(G){this.setVolume(G.volume,G.muted)}; g.W.setVolume=function(G,B){var a=this,V=B?0:G/100,x=this.T.U();G=V===0?1:G>50?1:0;if(this.L!==G){var h=this.XJ;isNaN(h)?ETb(this,G):Tqz(this.GH,function(w){ETb(a,h+(a.L-h)*w)},250); this.L=G}V=V===0?1:0;if(this.G!==V){var e=this.Y;isNaN(e)?jBg(this,V):Tqz(this.zH,function(w){jBg(a,e+(a.G-e)*w)},250); this.G=V}x.SJ&&(x=g.jX(this.T,"Silenciar","m"),V=g.jX(this.T,"Activar sonido","m"),this.updateValue("title",B?V:x),this.update({"data-title-no-tooltip":B?"Activar sonido":"Silenciar"}),this.tooltip.Gh())}; g.W.xD=function(G){g.T.prototype.xD.call(this,G);this.T.logVisibility(this.element,this.visible&&G)}; var UGy=["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"],OZb=["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.t(g.ZV,g.T);g.W=g.ZV.prototype;g.W.onStateChange=function(G){this.g7(G.state);var B;((B=this.T.U())==null?0:B.S("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.Rt&&this.B)}; g.W.g7=function(G){var B=g.cF(this.T.getVideoData()),a=!1;G.isOrWillBePlaying()?G=B?4:2:g.F(G,2)?(G=3,a=B):G=1;this.element.disabled=a;if(this.j!==G){B=null;switch(G){case 2:B=g.jX(this.T,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:B="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:B=g.jX(this.T,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:B="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}G=== 3?this.update({title:B,icon:bZA(G)}):(this.update({title:B}),(B=bZA(G))&&this.j&&this.j!==3?F_B(this.transition,this.element,B):this.updateValue("icon",B));this.tooltip.Gh();this.j=G}}; g.W.onVideoDataChange=function(){g.Km(this.element,"ytp-play-button-playlist",g.fb(this.T))}; g.W.bq=function(G){this.T.logClick(this.element);if(this.T.getPlayerStateObject().isOrWillBePlaying())this.T.pauseVideo();else{if(this.T.isMinimized()&&this.T.getPlayerStateObject().isCued()){var B={},a;if((a=this.T.getVideoData())==null?0:a.L)B.cttAuthInfo={token:this.T.getVideoData().L,videoId:this.T.getVideoData().videoId};u1("direct_playback",B);this.T.PG().timerName="direct_playback"}else this.j!==3||this.T.U().S("html5_no_csi_on_replay")||zJ(this.T.PG());this.T.playVideo()}this.T.isMinimized()&& (G==null?void 0:G.type)==="click"&&this.element.blur()}; g.W.xD=function(G){g.T.prototype.xD.call(this,G);var B;((B=this.T.U())==null?0:B.S("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.Rt&&G)};g.t(g.rq,g.T);g.W=g.rq.prototype;g.W.onVideoDataChange=function(){cZ9(this);this.G&&(this.i6(this.G),this.G=null);this.videoData=this.T.getVideoData(1);if(this.playlist=this.T.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.G=this.K(this.T,"progresssync",this.Fx);this.C=nTA(this);yZc(this);this.BY(this.T.g1().getPlayerSize())}; g.W.BY=function(G){G=G===void 0?this.T.g1().getPlayerSize():G;var B,a=((B=this.T.getLoopRange())==null?void 0:B.type)==="clips";G=(g.fb(this.T)||this.j&&g.RJ(this.T)&&!this.T.S("web_hide_next_button")||f5x(this))&&!a&&(this.j||G.width>=400);this.zt(G);this.T.logVisibility(this.element,G)}; g.W.onClick=function(G){this.T.logClick(this.element);var B=!0;this.W?B=g.hY(G,this.T):G.preventDefault();B&&(this.j&&this.T.getPresentingPlayerType()===5?this.T.publish("ytoprerollinternstitialnext"):this.j?(zJ(this.T.PG()),this.T.publish("playlistnextbuttonclicked",this.element),this.T.nextVideo(!0)):this.C?this.T.seekTo(0):(zJ(this.T.PG()),this.T.publish("playlistprevbuttonclicked",this.element),this.T.previousVideo(!0)))}; g.W.Fx=function(){var G=nTA(this);G!==this.C&&(this.C=G,yZc(this))}; g.W.yb=function(){this.X&&(this.X(),this.X=null);cZ9(this);g.T.prototype.yb.call(this)};g.t(vTz,g.T);g.W=vTz.prototype;g.W.Xx=function(G){this.hK(G.pageX);this.SC(G.pageX+G.deltaX);DG9(this)}; g.W.hK=function(G){this.zH=G-this.Qb}; g.W.SC=function(G){G-=this.Qb;!isNaN(this.zH)&&this.thumbnails.length>0&&(this.Y=G-this.zH,this.thumbnails.length>0&&this.Y!==0&&(this.C=this.V+this.Y,G=$GH(this,this.C),this.C<=this.j/2&&this.C>=rZc(this)?(this.api.seekTo(G,!1,void 0,void 0,25),g.K4(this.HS,"transform","translateX("+(this.C-this.j/2)+"px)"),HZc(this,G)):this.C=this.V))}; g.W.zf=function(){this.XJ&&(this.XJ.FI=!0);var G=(0,g.yT)()-this.qB<300;if(Math.abs(this.Y)<5&&!G){this.qB=(0,g.yT)();G=this.zH+this.Y;var B=this.j/2-G;this.hK(G);this.SC(G+B);DG9(this);this.api.logClick(this.L)}DG9(this)}; g.W.gU=function(){$7(this,this.api.getCurrentTime())}; g.W.play=function(G){this.api.seekTo($GH(this,this.C),void 0,void 0,void 0,26);this.api.playVideo();G&&this.api.logClick(this.playButton)}; g.W.onExit=function(G){this.api.seekTo(this.SJ,void 0,void 0,void 0,63);this.api.playVideo();G&&this.api.logClick(this.dismissButton)}; g.W.Df=function(G,B){this.Qb=G;this.j=B;$7(this,this.api.getCurrentTime())}; g.W.enable=function(){this.isEnabled||(this.isEnabled=!0,this.SJ=this.api.getCurrentTime(),HZc(this,this.SJ),g.Km(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.LN=this.K(this.element,"wheel",this.Xx),this.logVisibility(this.isEnabled))}; g.W.disable=function(){this.isEnabled=!1;this.hide();g.Km(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.LN&&this.i6(this.LN);this.logVisibility(this.isEnabled)}; g.W.reset=function(){this.disable();this.G=[];this.Zx=!1}; g.W.logVisibility=function(G){this.api.logVisibility(this.element,G);this.api.logVisibility(this.L,G);this.api.logVisibility(this.dismissButton,G);this.api.logVisibility(this.playButton,G)}; g.W.yb=function(){for(;this.X.length;){var G=void 0;(G=this.X.pop())==null||G.dispose()}g.T.prototype.yb.call(this)}; g.t(S2K,g.T);g.t(RSy,g.T);g.t(XAX,g.T);g.t(X4,g.T);X4.prototype.dO=function(G){return G==="PLAY_PROGRESS"?this.V:G==="LOAD_PROGRESS"?this.W:G==="LIVE_BUFFER"?this.L:this.C};QB_.prototype.update=function(G,B,a,V){a=a===void 0?0:a;this.width=B;this.G=a;this.j=B-a-(V===void 0?0:V);this.position=g.eH(G,a,a+this.j);this.C=this.position-a;this.X=this.C/this.j};g.t(LzY,g.T);g.t(g.QO,g.dI);g.W=g.QO.prototype; g.W.Vl=function(){var G=!1,B=this.api.getVideoData();if(!B)return G;this.api.KD("timedMarkerCueRange");Fz_(this);for(var a=g.m(B.Yf),V=a.next();!V.done;V=a.next()){V=V.value;var x=void 0,h=(x=this.SJ[V])==null?void 0:x.markerType;x=void 0;var e=(x=this.SJ[V])==null?void 0:x.markers;if(!e)break;if(h==="MARKER_TYPE_TIMESTAMPS"){G=g.m(e);for(h=G.next();!h.done;h=G.next()){x=h.value;h=new LzY;e=void 0;h.title=((e=x.title)==null?void 0:e.simpleText)||"";h.timeRangeStartMillis=Number(x.startMillis);h.j= Number(x.durationMillis);var w=e=void 0;h.onActiveCommand=(w=(e=x.onActive)==null?void 0:e.innertubeCommand)!=null?w:void 0;oTb(this,h)}M49(this,this.W);G=this.W;h=this.xF;x=[];e=null;for(w=0;wK&&(e.end=K);K=SIz(K,K+k);x.push(K);e=K;h[K.id]=G[w].onActiveCommand}}this.api.z1(x);this.Vg=this.SJ[V];G=!0}else if(h==="MARKER_TYPE_HEATMAP"){V=this.SJ[V];k=l=x=K=w=e=void 0;if(V&& V.markers){h=(x=(k=V.markersMetadata)==null?void 0:(l=k.heatmapMetadata)==null?void 0:l.minHeightDp)!=null?x:0;x=(e=(K=V.markersMetadata)==null?void 0:(w=K.heatmapMetadata)==null?void 0:w.maxHeightDp)!=null?e:60;e=this.j.length;w=null;for(K=0;K=k&&z<=N&&l.push(C)}x>0&&(this.XJ.style.height= x+"px");k=this.G[K];N=l;C=h;var p=x,O=K===0;O=O===void 0?!1:O;q2y(k,p);d=N;z=k.X;O=O===void 0?!1:O;var b=1E3/d.length,c=[];c.push({x:0,y:100});for(var H=0;H0&&(w=l[l.length-1])}g.LM(this)}x=void 0;h=[];if(V=(x=V.markersDecoration)==null?void 0:x.timedMarkerDecorations)for(V=g.m(V),x=V.next();!x.done;x=V.next())x=x.value,K=w=e=void 0,h.push({visibleTimeRangeStartMillis:(e=x.visibleTimeRangeStartMillis)!=null?e:-1,visibleTimeRangeEndMillis:(w=x.visibleTimeRangeEndMillis)!=null?w:-1,decorationTimeMillis:(K=x.decorationTimeMillis)!= null?K:NaN,label:x.label?g.tU(x.label):""});V=h;this.heatMarkersDecorations=V}}B.e7=this.W;g.Km(this.element,"ytp-timed-markers-enabled",G);return G}; g.W.Df=function(){g.LM(this);F4(this);M49(this,this.W);if(this.X){var G=g.Iq(this.element).x||0;this.X.Df(G,this.L)}}; g.W.onClickCommand=function(G){if(G=g.u(G,GC)){var B=G.key;G.isVisible&&B&&VYx(this,B)}}; g.W.tSf=function(G){this.api.pN("innertubeCommand",this.xF[G.id])}; g.W.BC=function(){F4(this);var G=this.api.getCurrentTime();(Gthis.clipEnd)&&this.LW()}; g.W.C7=function(G){if(!G.defaultPrevented){var B=!1;switch(G.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);B=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);B=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);B=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);B=!0;break;case 38:this.api.S("enable_key_press_seek_logging")&&o_(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);B=!0;break;case 40:this.api.S("enable_key_press_seek_logging")&&o_(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),B=!0}B&&G.preventDefault()}}; g.W.au=function(G,B){this.updateVideoData(B,G==="newdata")}; g.W.tJd=function(){this.au("newdata",this.api.getVideoData())}; g.W.updateVideoData=function(G,B){B=B===void 0?!1:B;var a=!!G&&G.I4();if(a&&(GA(G)||w9b(this)?this.MD=!1:this.MD=G.allowLiveDvr,g.Km(this.api.getRootNode(),"ytp-enable-live-buffer",!(G==null||!GA(G))),this.api.S("enable_custom_playhead_parsing"))){var V,x,h,e=g.u((V=G.getWatchNextResponse())==null?void 0:(x=V.playerOverlays)==null?void 0:(h=x.playerOverlayRenderer)==null?void 0:h.decoratedPlayerBarRenderer,jt);if(e==null?0:e.progressColor)for(V=0;V0;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.Yf={};var N;(N=this.X)==null||N.reset();xL(this);g.Km(this.api.getRootNode(),"ytp-fine-scrubbing-exp",ui(this))}else this.LW();this.Th()}if(G){var d;N=((d=this.sf)==null?void 0:d.type)==="clips";if(d=!G.isLivePlayback){d=this.api.getVideoData();B=g.bl(d);a=AZz(d);var C;d=B!=null||a!=null&&a.length>0||((C=d.Pl)== null?void 0:C.length)>0}if(d&&!N){C=this.api.getVideoData();N=g.bl(C);d=!1;if(N==null?0:N.markersMap){d=this.api.getVideoData();var z;d.Wy=((z=N.visibleOnLoad)==null?void 0:z.key)||d.Wy;z=g.m(N.markersMap);for(N=z.next();!N.done;N=z.next())N=N.value,N.key&&N.value&&(this.Yf[N.key]=N.value,N.value.onChapterRepeat&&(d.Yx=N.value.onChapterRepeat));d.Wy!=null&&VYx(this,d.Wy);d=!0}var p;if(((p=C.Pl)==null?void 0:p.length)>0){p=g.BF.getState().entities;z=g.m(C.Pl);for(N=z.next();!N.done;N=z.next())if(N= N.value,a=void 0,B=(a=Kp(p,"macroMarkersListEntity",N))==null?void 0:a.markersList,w=a=void 0,((a=B)==null?void 0:a.markerType)==="MARKER_TYPE_TIMESTAMPS"||((w=B)==null?void 0:w.markerType)==="MARKER_TYPE_HEATMAP")this.SJ[N]=B;d=this.Vl()||d}!d&&(p=AZz(C))&&(iZx(this,p),C.iz=this.j,Y29(this));KVb(this,null);G.pj&&this.G.length===0&&(G=G.pj,p=G.key,G.isVisible&&p&&VYx(this,p))}else TsV(this),Fz_(this)}F4(this)}; g.W.uJ1=function(G){this.V&&!g.F(G.state,32)&&this.api.getPresentingPlayerType()!==3&&this.V.cancel();var B;((B=this.X)==null?0:B.isEnabled)&&g.F(G.state,8)&&this.api.pauseVideo();G=this.api.getPresentingPlayerType()===2||!this.api.tA()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.Km(this.L3,"ytp-hide-scrubber-button",G)}; g.W.Ak=function(G){var B=!!this.sf!==!!G,a=this.sf;this.sf=G;KVb(this,a);(G==null?void 0:G.type)!=="clips"&&G||(G?(this.updateValue("clipstarticon",Rtc()),this.updateValue("clipendicon",Rtc()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",yxc()),this.updateValue("clipendicon",bNB()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),B&&(this.updateVideoData(this.api.getVideoData(), !0),g.LM(this)),Mm(this));Y7(this,this.Y,this.eJ)}; g.W.ufl=function(G,B,a){var V=g.Iq(this.element),x=sF(this).j,h=a?a.getAttribute("data-tooltip"):void 0,e=a?a.getAttribute("data-position"):void 0,w=a?a.getAttribute("data-offset-y"):void 0;w=w?Number(w):0;e&&(G=Su(this.C,Number(a.getAttribute("data-position")),0)*x+g.Iq(this.progressBar).x);this.Vb.x=G-V.x;this.Vb.y=B-V.y;G=sF(this);a=Pg(this,G);B=0;var K;if((K=this.api.getVideoData())==null?0:GA(K))(K=this.api.getProgressState().seekableEnd)&&a>K&&(a=K,G.position=Su(this.C,K)*sF(this).j),B=this.C.X; w9b(this)&&(B=this.C.X);K=h||g.E5(this.MD?a-this.C.j:a-B);B=G.position+this.Nq;a-=this.api.F3();var l;if((l=this.X)==null||!l.isEnabled)if(this.api.Q_()){if(this.j.length>1){l=ii(this,this.Vb.x,!0);if(!this.sf)for(V=0;V1)for(V=0;V0)for(l=this.Vb.x,V=g.m(this.W),x=V.next();!x.done;x=V.next())x=x.value,e=Tx(this,x.timeRangeStartMillis/ (this.C.j*1E3),sF(this)),g.Km(x.element,"ytp-timed-marker-hover",e<=l&&e+6>=l);V=this.tooltip.scale;w=(isNaN(w)?0:w)-45*V;this.api.S("web_key_moments_markers")?this.Vg?(l=H7b(this.W,a*1E3),l=l!=null?this.W[l].title:""):(l=Nm(this.j,a*1E3),l=this.j[l].title):(l=Nm(this.j,a*1E3),l=this.j[l].title);l||(w+=16*V);this.tooltip.scale===.6&&(g.YF(this.api.U())?(w=this.api.g1().getPlayerSize().height-225,w=l?w+110:w+110+16):w=l?110:126);V=Nm(this.j,a*1E3);this.HS=lxb(this,a,V)?V:lxb(this,a,V+1)?V+1:-1;g.Km(this.api.getRootNode(), "ytp-progress-bar-snap",this.HS!==-1&&this.j.length>1);V=!1;x=g.m(this.heatMarkersDecorations);for(e=x.next();!e.done;e=x.next()){e=e.value;var k=a*1E3;k>=e.visibleTimeRangeStartMillis&&k<=e.visibleTimeRangeEndMillis&&(l=e.label,K=g.E5(e.decorationTimeMillis/1E3),V=!0)}this.R4!==V&&(this.R4=V,this.api.logVisibility(this.Qv,this.R4));g.Km(this.api.getRootNode(),"ytp-progress-bar-decoration",V);V=160*this.tooltip.scale*2;x=l.length*(this.zH?8.55:5.7);x=x<=V?x:V;e=x<160*this.tooltip.scale;V=3;!e&&x/ 2>G.position&&(V=1);!e&&x/2>this.L-G.position&&(V=2);this.api.U().V&&(w-=10);this.G.length&&this.G[0].I4&&(w-=14*(this.zH?2:1),this.LN||(this.LN=!0,this.api.logVisibility(this.XJ,this.LN)));var N;if(ui(this)&&(((N=this.X)==null?0:N.isEnabled)||this.Er>0)){var d;w-=((d=this.X)==null?0:d.isEnabled)?Bt(this):this.Er}N=void 0;ui(this)&&!this.api.S("web_player_hide_fine_scrubbing_edu")&&(N="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa",this.Zx||(this.Zx=!0,this.api.logVisibility(this.w7, this.Zx)));this.tooltip.yV(B,a,K,!!h,w,l,V,N)}else this.tooltip.yV(B,a,K,!!h,w);g.hi(this.api.getRootNode(),"ytp-progress-bar-hover");WV_(this)}; g.W.tn1=function(){this.Th();g.WC(this.api.getRootNode(),"ytp-progress-bar-hover");this.LN&&(this.LN=!1,this.api.logVisibility(this.XJ,this.LN));this.Zx&&(this.Zx=!1,this.api.logVisibility(this.w7,this.Zx))}; g.W.JiS=function(G,B){ui(this)&&this.X&&(this.X.Zx?$7(this.X,this.api.getCurrentTime()):ZZ_(this.X),this.X.show(),g.Km(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.X.isEnabled));this.Fg&&(this.Fg.dispose(),this.Fg=null);this.LR=B;this.PD=this.api.getCurrentTime();this.j.length>1&&this.HS!==-1?this.api.seekTo(this.j[this.HS].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(Pg(this,sF(this)),!1,void 0,void 0,7);g.hi(this.element,"ytp-drag");(this.IG=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.W.qxJ=function(){if(ui(this)&&this.X){var G=Bt(this);this.Er>=G*.5?(this.X.enable(),$7(this.X,this.api.getCurrentTime()),gs9(this,G)):xL(this)}if(g.F(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var B;if((B=this.X)==null?0:B.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.j.length>1&&this.HS!==-1)this.api.S("html5_enable_progress_bar_slide_seek_logging")&&o_(this,this.PD,this.j[this.HS].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.j[this.HS].startTime/1E3,void 0,void 0,void 0,7);else{G=Pg(this,sF(this));this.api.S("html5_enable_progress_bar_slide_seek_logging")&&o_(this,this.PD,G,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(G,void 0,void 0,void 0,7);B=g.m(this.heatMarkersDecorations);for(var a=B.next();!a.done;a=B.next())a=a.value,G*1E3>=a.visibleTimeRangeStartMillis&&G*1E3<=a.visibleTimeRangeEndMillis&& this.api.logClick(this.Qv)}g.WC(this.element,"ytp-drag");this.IG&&!g.F(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.W.E_J=function(G,B){G=sF(this);G=Pg(this,G);this.api.seekTo(G,!1,void 0,void 0,7);var a;ui(this)&&((a=this.X)==null?0:a.Zx)&&($7(this.X,G),this.X.isEnabled||(a=Bt(this),this.Er=g.eH(this.LR-B-10,0,a),gs9(this,this.Er)))}; g.W.Th=function(){this.tooltip.KA()}; g.W.MN=function(){this.sf||(this.updateValue("clipstarticon",jtY()),this.updateValue("clipendicon",jtY()),g.hi(this.element,"ytp-clip-hover"))}; g.W.x6=function(){this.sf||(this.updateValue("clipstarticon",yxc()),this.updateValue("clipendicon",bNB()),g.WC(this.element,"ytp-clip-hover"))}; g.W.LW=function(){this.clipStart=0;this.clipEnd=Infinity;Mm(this);Y7(this,this.Y,this.eJ)}; g.W.fsr=function(G){G=g.m(G);for(var B=G.next();!B.done;B=G.next())if(B=B.value,B.visible){var a=B.getId();if(!this.Qb[a]){var V=g.M6("DIV");B.tooltip&&V.setAttribute("data-tooltip",B.tooltip);this.Qb[a]=B;this.wO[a]=V;g.V_(V,B.style);kZb(this,a);this.api.U().S("disable_ad_markers_on_content_progress_bar")||this.j[0].G.appendChild(V)}}else IxB(this,B)}; g.W.qAN=function(G){G=g.m(G);for(var B=G.next();!B.done;B=G.next())IxB(this,B.value)}; g.W.yT=function(G){this.X&&(this.X.onExit(G!=null),xL(this))}; g.W.bl=function(G){this.X&&(this.X.play(G!=null),xL(this))}; g.W.s81=function(){p9x(this,this.api.tA())}; g.W.yb=function(){p9x(this,!1);g.dI.prototype.yb.call(this)};g.t(h_,g.T);h_.prototype.isActive=function(){return!!this.T.getOption("remote","casting")}; h_.prototype.uL=function(){var G=!1;this.T.getOptions().includes("remote")&&(G=this.T.getOption("remote","receivers").length>1);this.zt(G&&this.T.g1().getPlayerSize().width>=400);this.T.logVisibility(this.element,this.Rt);var B=1;G&&this.isActive()&&(B=2);if(this.j!==B){this.j=B;switch(B){case 1:this.updateValue("icon",{Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Z:"path",r7:!0,N:{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.ER9())}g.Km(this.element,"ytp-remote-button-active",this.isActive())}}; h_.prototype.X=function(){if(this.T.getOption("remote","quickCast"))this.T.setOption("remote","quickCast",!0);else{var G=this.Gi,B=this.element;if(G.Mo())G.Bf();else{G.initialize();a:{var a=g.m(G.oG.items);for(var V=a.next();!V.done;V=a.next())if(V=V.value,V.priority===1){a=V;break a}a=null}a&&(a.open(),G.xW(B));G.xW(B)}}this.T.logClick(this.element)};g.t(ey,g.T);ey.prototype.j=function(G){var B=this.T.U(),a=400;this.T.S("web_player_small_hbp_settings_menu")&&B.L?a=300:B.V&&(a=200);G=this.X&&G.width>=a;this.zt(G);this.T.S("embeds_use_parent_visibility_in_ve_logging")?this.T.logVisibility(this.element,G&&this.B):this.T.logVisibility(this.element,G)}; ey.prototype.C=function(){if(this.Gi.Rt)this.Gi.Bf();else{var G=g.c$(this.T.Ch());G&&!G.loaded&&(G.dJ("tracklist",{includeAsr:!0}).length||G.load());this.T.logClick(this.element);this.Gi.xW(this.element)}}; ey.prototype.updateBadge=function(){var G=this.T.isHdr(),B=this.T.getPresentingPlayerType(),a=B!==2&&B!==3,V=g.Dy(this.T),x=a&&!!g.vE(this.T.Ch());B=x&&V.displayMode===1;V=x&&V.displayMode===2;a=(x=B||V)||!a?null:this.T.getPlaybackQuality();g.Km(this.element,"ytp-hdr-quality-badge",G);g.Km(this.element,"ytp-hd-quality-badge",!G&&(a==="hd1080"||a==="hd1440"));g.Km(this.element,"ytp-4k-quality-badge",!G&&a==="hd2160");g.Km(this.element,"ytp-5k-quality-badge",!G&&a==="hd2880");g.Km(this.element,"ytp-8k-quality-badge", !G&&a==="highres");g.Km(this.element,"ytp-3d-badge-grey",!G&&x&&B);g.Km(this.element,"ytp-3d-badge",!G&&x&&V)};g.t(Wt,V8);Wt.prototype.isLoaded=function(){var G=g.SA(this.T.Ch());return G!==void 0&&G.loaded}; Wt.prototype.uL=function(){g.SA(this.T.Ch())!==void 0&&this.T.getPresentingPlayerType()!==3?this.j||(this.Gi.WC(this),this.j=!0):this.j&&(this.Gi.Im(this),this.j=!1);x3(this,this.isLoaded())}; Wt.prototype.onSelect=function(G){this.isLoaded();G?this.T.loadModule("annotations_module"):this.T.unloadModule("annotations_module");this.T.publish("annotationvisibility",G)}; Wt.prototype.yb=function(){this.j&&this.Gi.Im(this);V8.prototype.yb.call(this)};g.t(w7,g.u2);w7.prototype.uL=function(){var G=this.T.getAvailableAudioTracks();G.length>1?(this.Qm(g.br(G,this.j)),this.tracks=g.NU(G,this.j,this),this.countLabel.jn(G.length?" ("+G.length+")":""),this.publish("size-change"),this.o8(this.j(this.T.getAudioTrack())),this.enable(!0)):this.enable(!1)}; w7.prototype.Qk=function(G){g.u2.prototype.Qk.call(this,G);this.T.setAudioTrack(this.tracks[G]);this.Gi.dR()}; w7.prototype.j=function(G){return G.toString()};g.t(Kk,V8); Kk.prototype.X=function(){var G=this.T.getPresentingPlayerType();if(G!==2&&G!==3&&g.RJ(this.T))this.j||(this.Gi.WC(this),this.j=!0,this.C.push(this.K(this.T,"videodatachange",this.X)),this.C.push(this.K(this.T,"videoplayerreset",this.X)),this.C.push(this.K(this.T,"onPlaylistUpdate",this.X)),this.C.push(this.K(this.T,"autonavchange",this.G)),G=this.T.getVideoData(),this.G(G.autonavState),this.T.logVisibility(this.element,this.j));else if(this.j){this.Gi.Im(this);this.j=!1;G=g.m(this.C);for(var B=G.next();!B.done;B= G.next())this.i6(B.value)}}; Kk.prototype.G=function(G){x3(this,G!==1)}; Kk.prototype.onSelect=function(G){this.T.hO(G?2:1);this.j&&(this.T.logVisibility(this.element,this.j),this.T.logClick(this.element))}; Kk.prototype.yb=function(){this.j&&this.Gi.Im(this);V8.prototype.yb.call(this)};g.t(Ojg,g.Fq);Ojg.prototype.onClick=function(G){G.preventDefault();var B,a;(B=g.zA(this.T))==null||(a=B.KG())==null||a.Bf();var V,x;(V=g.zA(this.T))==null||(x=V.gm())==null||x.xW(G.target)};g.t(Esz,g.u2);g.W=Esz.prototype; g.W.D7=function(){var G=this.T.getPresentingPlayerType();if(G!==2&&G!==3){this.HS=this.T.P6();G=this.T.getAvailableQualityLevels();if(this.j){this.G={};var B=g.lq(this.T,"getAvailableQualityData",[]);B=g.m(B);for(var a=B.next();!a.done;a=B.next())a=a.value,this.G[a.qualityLabel]=a;B=Object.keys(this.G);G[G.length-1]==="auto"&&B.push("auto");this.GH=new Set(G)}else if(this.L){a=g.lq(this.T,"getAvailableQualityData",[]);B=[];a=g.m(a);for(var V=a.next();!V.done;V=a.next())V=V.value,this.Y[V.quality]= V,V.quality&&B.push(V.quality);G[G.length-1]==="auto"&&B.push("auto")}else B=G;g.Yoy(this.T)&&this.T.bA()&&B.unshift("missing-qualities");iD9(this.T)&&B.unshift("inline-survey");this.Qm(B);G=this.T.getVideoData().cotn?!0:!1;a=this.XJ.JA();a=!g.YF(this.T.U())||!(G===void 0?0:G)||!(a===void 0||a);G=this.X;a=a===void 0?!1:a;G.Pu&&g.Km(G.d1("ytp-panel-footer"),"ytp-panel-hide-footer",a===void 0?!1:a);if(B.length){this.Be();this.enable(!0);return}}this.enable(!1)}; g.W.Be=function(){if(this.j){var G=this.T.getPreferredQuality();this.GH.has(G)&&(this.W=this.T.getPlaybackQuality(),this.zH=this.T.getPlaybackQualityLabel(),G==="auto"?(this.o8(G),this.jn(this.s1(G))):this.o8(this.zH))}else G=this.T.getPreferredQuality(),this.options[G]&&(this.W=this.T.getPlaybackQuality(),this.o8(G),G==="auto"&&this.jn(this.s1(G)))}; g.W.Qk=function(G){if(G!=="missing-qualities"){g.u2.prototype.Qk.call(this,G);var B=this.j?this.G[G]:this.Y[G];var a=B==null?void 0:B.quality,V=B==null?void 0:B.formatId,x=B==null?void 0:B.paygatedQualityDetails;B=x==null?void 0:x.endpoint;if(x){var h;x=(h=this.options[G])==null?void 0:h.element;this.T.logClick(x)}if(this.j){var e,w;if((e=g.u(B,g.dUl))==null?0:(w=e.popup)==null?0:w.notificationActionRenderer)this.T.pN("innertubeCommand",B);else if(B){this.T.pN("innertubeCommand",B);return}V?this.T.setPlaybackQuality(a, V):this.T.setPlaybackQuality(a)}else{if(this.L){var K,l;if((K=g.u(B,g.dUl))==null?0:(l=K.popup)==null?0:l.notificationActionRenderer)this.T.pN("innertubeCommand",B);else if(B){this.T.pN("innertubeCommand",B);return}}this.T.setPlaybackQuality(G)}this.Gi.Bf();this.D7()}}; g.W.open=function(){for(var G=g.m(Object.values(this.options)),B=G.next();!B.done;B=G.next()){B=B.value;var a=void 0;this.T.hasVe((a=B)==null?void 0:a.element)&&(a=void 0,this.T.logVisibility((a=B)==null?void 0:a.element,!0))}g.u2.prototype.open.call(this);this.T.logClick(this.element)}; g.W.DZ=function(G,B,a){var V=this;if(G==="missing-qualities")return new g.Fq({Z:"a",bL:["ytp-menuitem"],N:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.T.U().Y,tabindex:"0",role:"menuitemradio"},D:[{Z:"div",bL:["ytp-menuitem-label"],cS:"{{label}}"}]},B,this.s1(G));if(G!=="inline-survey"){var x,h=(x=this.j?this.G[G]:this.Y[G])==null?void 0:x.paygatedQualityDetails;x=h==null?void 0:h.veType;h=h==null?void 0:h.trackingParams;B=g.u2.prototype.DZ.call(this,G,B,a);h?(this.T.createServerVe(B.element, this,!0),this.T.setTrackingParams(B.element,h)):x&&this.T.createClientVe(B.element,this,x,!0);return B}G=[{Z:"span",cS:"\u00bfSe ve bien?"}];a=g.m([!0,!1]);h=a.next();for(x={};!h.done;x={xw:void 0},h=a.next())x.xw=h.value,h=new g.T({Z:"span",J:"ytp-menuitem-inline-survey-response",D:[x.xw?SVH():nRV()],N:{tabindex:"0",role:"button"}}),h.listen("click",function(e){return function(){var w=e.xw,K=V.T.app.KN();K&&(K.FJ("iqsr",{tu:w}),K.getVideoData().F8=!0);V.Gi.Bf();V.D7()}}(x)),G.push(h); return new g.Fq({Z:"div",J:"ytp-menuitem",N:{"aria-disabled":"true"},D:[{Z:"div",bL:["ytp-menuitem-label"],D:G}]},B)}; g.W.s1=function(G,B){B=B===void 0?!1:B;if(G==="missing-qualities")return{Z:"div",cS:"\u00bfFaltan opciones?"};if(G==="inline-survey")return"";var a=this.L||this.j?[yyx(this,G,B,!1)]:[bj_(this,G)];var V=this.T.getPreferredQuality();B||V!=="auto"||G!=="auto"||(a.push(" "),this.j?a.push(yyx(this,this.zH,B,!0,["ytp-menu-label-secondary"])):this.L?a.push(yyx(this,this.W,B,!0,["ytp-menu-label-secondary"])):a.push(bj_(this,this.W,["ytp-menu-label-secondary"])));return{Z:"div",D:a}};g.t(lg,g.T);lg.prototype.init=function(){this.updateValue("minvalue",this.C);this.updateValue("maxvalue",this.G);this.updateValue("stepvalue",this.W);this.updateValue("slidervalue",this.X);cyz(this,this.X)}; lg.prototype.V=function(){nsK(this,Number(this.j.value));this.j.focus()}; lg.prototype.L=function(G){if(!G.defaultPrevented){switch(G.code){case "ArrowDown":G=-this.W;break;case "ArrowUp":G=this.W;break;default:return}nsK(this,Math.min(this.G,Math.max(Number((this.X+G).toFixed(2)),this.C)))}};g.t(kL,lg);kL.prototype.V=function(){lg.prototype.V.call(this);this.Y&&fxc(this)}; kL.prototype.HS=function(){this.zH()}; kL.prototype.XJ=function(){this.T.setPlaybackRate(this.X,!0)}; kL.prototype.L=function(G){lg.prototype.L.call(this,G);this.zH();fxc(this);G.preventDefault()};g.t(N3,g.T);g.W=N3.prototype;g.W.init=function(){this.Xv(this.j);this.updateValue("minvalue",this.X);this.updateValue("maxvalue",this.C)}; g.W.rH=function(G){if(!G.defaultPrevented){switch(G.keyCode){case 37:case 40:var B=-this.V;break;case 39:case 38:B=this.V;break;default:return}this.Xv(this.j+B);G.preventDefault()}}; g.W.yX=function(G){var B=this.j;B+=(G.deltaX||-G.deltaY)<0?-this.Y:this.Y;this.Xv(B);G.preventDefault()}; g.W.cL=function(G){G=(G-g.Iq(this.G).x)/this.zH*this.range+this.X;this.Xv(G)}; g.W.Xv=function(G,B){B=B===void 0?"":B;G=g.eH(G,this.X,this.C);B===""&&(B=G.toString());this.updateValue("valuenow",G);this.updateValue("valuetext",B);this.XJ.style.left=(G-this.X)/this.range*(this.zH-this.Zx)+"px";this.j=G}; g.W.focus=function(){this.LN.focus()};g.t(d7,N3);d7.prototype.HS=function(){this.T.setPlaybackRate(this.j,!0)}; d7.prototype.Xv=function(G){N3.prototype.Xv.call(this,G,vsb(this,G).toString());this.L&&(Hjg(this),this.GH())}; d7.prototype.updateValues=function(){var G=this.T.getPlaybackRate();vsb(this,this.j)!==G&&(this.Xv(G),Hjg(this))};g.t(DQX,g.dI);DQX.prototype.focus=function(){this.j.focus()};g.t(S_z,fO);g.t(RFX,g.u2);g.W=RFX.prototype;g.W.s1=function(G){return G==="1"?"Normal":G.toLocaleString()}; g.W.uL=function(){var G,B=(G=this.T.getVideoData())==null?void 0:G.cn();G=this.T.getPresentingPlayerType(B);this.enable(G!==2&&G!==3);$Qx(this)}; g.W.Qm=function(G){g.u2.prototype.Qm.call(this,G);this.W&&this.W.j.focus()}; g.W.xg=function(G){g.u2.prototype.xg.call(this,G);G?(this.zH=this.K(this.T,"onPlaybackRateChange",this.onPlaybackRateChange),$Qx(this),Zjc(this,this.T.getPlaybackRate())):(this.i6(this.zH),this.zH=null)}; g.W.onPlaybackRateChange=function(G){var B=this.T.getPlaybackRate();!this.G&&this.Y.includes(B)||ryy(this,B);Zjc(this,G)}; g.W.DZ=function(G,B,a){return G===this.j&&X9B(this.T)?g.u2.prototype.DZ.call(this,G,B,a,{Z:"div",J:"ytp-speed-slider-menu-footer",D:[this.W]}):g.u2.prototype.DZ.call(this,G,B,a)}; g.W.Qk=function(G){g.u2.prototype.Qk.call(this,G);G===this.j?this.T.setPlaybackRate(this.L,!0):this.T.setPlaybackRate(Number(G),!0);X9B(this.T)&&G===this.j||this.Gi.dR()}; g.W.Q4=function(G){var B=G===this.j;this.G=!1;B&&Ck(this.T)&&!X9B(this.T)?(G=new S_z(this.T),g.SR(this.Gi,G)):g.u2.prototype.Q4.call(this,G)};g.t(urb,g.u2);g.W=urb.prototype;g.W.o8=function(G){g.u2.prototype.o8.call(this,G)}; g.W.Sa=function(G){return G.option.toString()}; g.W.getOption=function(G){return this.settings[G]}; g.W.s1=function(G){return this.getOption(G).text||""}; g.W.Qk=function(G){g.u2.prototype.Qk.call(this,G);this.publish("settingChange",this.setting,this.settings[G].option)};g.t(t_,g.Hw);t_.prototype.KM=function(G){for(var B=g.m(Object.keys(G)),a=B.next();!a.done;a=B.next()){var V=a.value;if(a=this.VI[V]){var x=G[V].toString();V=!!G[V+"Override"];a.options[x]&&(a.o8(x),a.G.element.setAttribute("aria-checked",String(!V)),a.j.element.setAttribute("aria-checked",String(V)))}}}; t_.prototype.VC=function(G,B){this.publish("settingChange",G,B)};g.t(mW,g.u2);mW.prototype.j=function(G){return G.languageCode}; mW.prototype.s1=function(G){return this.languages[G].languageName||""}; mW.prototype.Qk=function(G){this.publish("select",G);this.T.logClick(this.element);g.Ri(this.Gi)};g.t(Tcg,g.u2);g.W=Tcg.prototype;g.W.eW=function(G){return g.yw(G)?"__off__":G.displayName}; g.W.s1=function(G){return G==="__off__"?"Desactivados":G==="__translate__"?"Traducci\u00f3n autom\u00e1tica":G==="__contribute__"?"Agregar subt\u00edtulos":G==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(G==="__off__"?{}:this.tracks[G]).displayName}; g.W.Qk=function(G){if(G==="__translate__")this.j.open();else if(G==="__contribute__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();var B=g.RM(this.T.U(),this.T.getVideoData());g.LY(B)}else if(G==="__correction__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();var a=seH(this);IH(this,a);g.u2.prototype.Qk.call(this,this.eW(a));var V,x;a=(B=this.T.getVideoData().getPlayerResponse())==null?void 0:(V=B.captions)==null?void 0:(x=V.playerCaptionsTracklistRenderer)== null?void 0:x.openTranscriptCommand;this.T.pN("innertubeCommand",a);this.Gi.dR();this.G&&this.T.logClick(this.G)}else{if(G==="__correction__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();B=seH(this);IH(this,B);g.u2.prototype.Qk.call(this,this.eW(B));var h,e;B=(a=this.T.getVideoData().getPlayerResponse())==null?void 0:(h=a.captions)==null?void 0:(e=h.playerCaptionsTracklistRenderer)==null?void 0:e.openTranscriptCommand;this.T.pN("innertubeCommand",B)}else this.T.logClick(this.element), IH(this,G==="__off__"?{}:this.tracks[G]),g.u2.prototype.Qk.call(this,G);this.Gi.dR()}}; g.W.uL=function(){var G=this.T.getOptions();G=G&&G.indexOf("captions")!==-1;var B=this.T.getVideoData(),a=B&&B.LZ,V,x=!((V=this.T.getVideoData())==null||!g.oS(V));V={};if(G||a){var h;if(G){var e=this.T.getOption("captions","track");V=this.T.getOption("captions","tracklist",{includeAsr:!0});var w=x?[]:this.T.getOption("captions","translationLanguages");this.tracks=g.NU(V,this.eW,this);x=g.br(V,this.eW);var K,l;seH(this)&&((h=B.getPlayerResponse())==null?0:(K=h.captions)==null?0:(l=K.playerCaptionsTracklistRenderer)== null?0:l.openTranscriptCommand)&&x.push("__correction__");if(w.length&&!g.yw(e)){if((h=e.translationLanguage)&&h.languageName){var k=h.languageName;h=w.findIndex(function(N){return N.languageName===k}); eCB(w,h)}QeY(this.j,w);x.push("__translate__")}h=this.eW(e)}else this.tracks={},x=[],h="__off__";x.unshift("__off__");this.tracks.__off__={};a&&x.unshift("__contribute__");this.tracks[h]||(this.tracks[h]=e,x.push(h));this.Qm(x);this.o8(h);e&&e.translationLanguage?this.j.o8(this.j.j(e.translationLanguage)):yeg(this.j);G&&this.L.KM(this.T.getSubtitlesUserSettings());this.countLabel.jn(V&&V.length?" ("+V.length+")":"");this.publish("size-change");this.T.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.W.vL=function(G){var B=this.T.getOption("captions","track");B=g.fo(B);B.translationLanguage=this.j.languages[G];IH(this,B)}; g.W.VC=function(G,B){if(G==="reset")this.T.resetSubtitlesUserSettings();else{var a={};a[G]=B;this.T.updateSubtitlesUserSettings(a)}LVc(this,!0);this.W.start();this.L.KM(this.T.getSubtitlesUserSettings())}; g.W.k1X=function(G){G||g.oX(this.W)}; g.W.yb=function(){g.oX(this.W);g.u2.prototype.yb.call(this)}; g.W.open=function(){g.u2.prototype.open.call(this);this.options.__correction__&&!this.G&&(this.G=this.options.__correction__.element,this.T.createClientVe(this.G,this,167341),this.T.logVisibility(this.G,!0))};g.t(FVB,g.DY);g.W=FVB.prototype; g.W.initialize=function(){if(!this.isInitialized){var G=this.T.U();this.isInitialized=!0;try{this.yj=new Esz(this.T,this)}catch(a){g.Zb(Error("QualityMenuItem creation failed"))}g.X(this,this.yj);var B=new Tcg(this.T,this);g.X(this,B);G.C||(B=new Wt(this.T,this),g.X(this,B));G.enableSpeedOptions&&(B=new RFX(this.T,this),g.X(this,B));(g.co(G)||G.L)&&(G.X||G.qB)&&(B=new Ojg(this.T,this),g.X(this,B));G.R4&&!G.S("web_player_move_autonav_toggle")&&(G=new Kk(this.T,this),g.X(this,G));G=new w7(this.T,this); g.X(this,G);this.T.publish("settingsMenuInitialized");UQY(this.settingsButton,this.oG.Bs())}}; g.W.WC=function(G){this.initialize();this.oG.WC(G);UQY(this.settingsButton,this.oG.Bs())}; g.W.Im=function(G){this.Rt&&this.oG.Bs()<=1&&this.hide();this.oG.Im(G);UQY(this.settingsButton,this.oG.Bs())}; g.W.xW=function(G){this.initialize();this.oG.Bs()>0&&g.DY.prototype.xW.call(this,G)}; g.W.Bf=function(){this.VB?this.VB=!1:g.DY.prototype.Bf.call(this)}; g.W.show=function(){g.DY.prototype.show.call(this);g.hi(this.T.getRootNode(),"ytp-settings-shown")}; g.W.hide=function(){g.DY.prototype.hide.call(this);g.WC(this.T.getRootNode(),"ytp-settings-shown")}; g.W.Ry=function(G){this.T.logVisibility(this.element,G);this.T.publish("settingsMenuVisibilityChanged",G)};g.t(Ayz,g.T);g.W=Ayz.prototype;g.W.onClick=function(){if(Y__(this)&&(this.T.toggleSubtitles(),this.T.logClick(this.element),!this.isEnabled())){var G=!1,B=g.uP(g.qe(),65);g.YF(this.T.U())&&B!=null&&(G=!B);G&&this.T.U().S("web_player_nitrate_promo_tooltip")&&this.T.publish("showpromotooltip",this.element)}}; g.W.qvn=function(G){var B,a;(B=g.zA(this.T))==null||(a=B.KG())==null||a.xW(G)}; g.W.isEnabled=function(){return!!this.T.getOption("captions","track").displayName}; g.W.uL=function(){var G=Y__(this),B=300;this.T.U().V&&(B=480);if(this.T.U().L){this.updateValue("title",g.jX(this.T,"Subt\u00edtulos","c"));this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var a=G}else{if(G)(a=this.d1("ytp-subtitles-button-icon"))==null||a.setAttribute("fill-opacity","1"),this.updateValue("title",g.jX(this.T,"Subt\u00edtulos","c")),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{var V;(V=this.d1("ytp-subtitles-button-icon"))==null||V.setAttribute("fill-opacity", "0.3");this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}a=!0}this.tooltip.Gh();a=a&&this.T.g1().getPlayerSize().width>=B;this.zt(a);this.T.S("embeds_use_parent_visibility_in_ve_logging")?this.T.logVisibility(this.element,a&&this.B):this.T.logVisibility(this.element,a);G?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.W.xD=function(G){g.T.prototype.xD.call(this,G);this.T.U().S("embeds_use_parent_visibility_in_ve_logging")&&this.T.logVisibility(this.element,this.Rt&&G)};g.t(g.g7,g.T);g.W=g.g7.prototype; g.W.BC=function(){var G=this.api.g1().getPlayerSize().width,B=this.Y;this.api.U().V&&(B=400);B=G>=B&&(!pk(this)||!g.F(this.api.getPlayerStateObject(),64));this.zt(B);g.Km(this.element,"ytp-time-display-allow-autohide",B&&G<400);G=this.api.getProgressState();if(B){B=this.api.getPresentingPlayerType();var a=this.api.getCurrentTime(B,!1);this.X&&(a-=G.airingStart);UP(this)&&(a-=this.sf.startTimeMs/1E3);UP(this)||pk(this)||!this.C||(a=this.api.getDuration(B,!1)-a);a=g.E5(a);this.G!==a&&(this.updateValue("currenttime", a),this.G=a);B=UP(this)?g.E5((this.sf.endTimeMs-this.sf.startTimeMs)/1E3):g.E5(this.api.getDuration(B,!1));this.L!==B&&(this.updateValue("duration",B),this.L=B)}ijy(this,G.isAtLiveHead);PsX(this,this.api.getLoopRange())}; g.W.onLoopRangeChange=function(G){var B=this.sf!==G;this.sf=G;B&&(this.BC(),osg(this))}; g.W.UDf=function(){this.api.setLoopRange(null)}; g.W.K3J=function(){this.C=!this.C;this.BC()}; g.W.onVideoDataChange=function(G,B,a){this.updateVideoData((this.api.U().S("enable_topsoil_wta_for_halftime")||this.api.U().S("enable_topsoil_wta_for_halftime_live_infra"))&&a===2?this.api.getVideoData(1):B);this.BC();osg(this)}; g.W.updateVideoData=function(G){this.Wd=G.isLivePlayback&&!G.Vb;this.X=GA(G);this.isPremiere=G.isPremiere;g.Km(this.element,"ytp-live",pk(this))}; g.W.onClick=function(G){G.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.W.yb=function(){this.j&&this.j();g.T.prototype.yb.call(this)};g.t(GtY,g.T);g.W=GtY.prototype;g.W.hE=function(){var G=this.api.DB();this.C!==G&&(this.C=G,MYX(this,this.api.getVolume(),this.api.isMuted()))}; g.W.hk=function(G){this.zt(G.width>=350)}; g.W.Rx=function(G){if(!G.defaultPrevented){var B=G.keyCode,a=null;B===37?a=this.volume-5:B===39?a=this.volume+5:B===36?a=0:B===35&&(a=100);a!==null&&(a=g.eH(a,0,100),a===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(a)),G.preventDefault())}}; g.W.ox=function(G){var B=G.deltaX||-G.deltaY;G.deltaMode?this.api.setVolume(this.volume+(B<0?-10:10)):this.api.setVolume(this.volume+g.eH(B/10,-10,10));G.preventDefault()}; g.W.b3l=function(){OP(this,this.j,!0,this.X,this.api.Ve());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()}; g.W.HL=function(G){var B=this.C?78:52,a=this.C?18:12;G-=g.Iq(this.V).x;this.api.setVolume(g.eH((G-a/2)/(B-a),0,1)*100)}; g.W.QGS=function(){OP(this,this.j,!1,this.X,this.api.Ve());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Y))}; g.W.onVolumeChange=function(G){MYX(this,G.volume,G.muted)}; g.W.Vz=function(){OP(this,this.j,this.isDragging,this.X,this.api.Ve())}; g.W.yb=function(){g.T.prototype.yb.call(this);g.WC(this.W,"ytp-volume-slider-active")};g.t(EP,g.T); EP.prototype.onVideoDataChange=function(){var G=this.api.U();this.Df();this.visible=!!this.api.getVideoData().videoId&&!g.BE(this.api.getVideoData(1));this.zt(this.visible);this.api.logVisibility(this.element,this.visible&&this.B);if(this.visible){var B=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",B)}G.C&&(this.j&&(this.i6(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.hi(this.element,"no-link")); B=this.api.U();G=this.api.getVideoData();var a="";B.C||(B=g.TQ(B),B.indexOf("www.")===0&&(B=B.substring(4)),a=g.VM(G)?"Mirar en YouTube Music":B==="youtube.com"?"Mirar en YouTube":g.tm("Mirar en $WEBSITE",{WEBSITE:B}));this.updateValue("title",a)}; EP.prototype.onClick=function(G){this.api.S("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var B=this.api.U(),a=this.api.getVideoUrl(!g.ju(G),!1,!0,!0);if(g.co(B)){var V={};g.co(B)&&g.lq(this.api,"addEmbedsConversionTrackingParams",[V]);a=g.LJ(a,V)}g.ej(a,this.api,G);this.api.S("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; EP.prototype.Df=function(){var G={Z:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},D:[{Z:"path",r7:!0,J:"ytp-svg-fill",N:{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 "}}]}, B=28666,a=this.api.getVideoData();this.api.isEmbedsShortsMode()?G={Z:"svg",N:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},D:[{Z:"path",N:{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.VM(a)&&(G={Z:"svg",N:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},D:[{Z:"path",N:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{Z:"path",N:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{Z:"path",N:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{Z:"path",N:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{Z:"path",N:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{Z:"path",N:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{Z:"path",N:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{Z:"path",N:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{Z:"path",N:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{Z:"path",N:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{Z:"path",N:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{Z:"path",N:{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"}}]},B=216163);g.VM(a)?g.hi(this.element,"ytp-youtube-music-button"):g.WC(this.element,"ytp-youtube-music-button");G.N=Object.assign({},G.N,{"aria-hidden":"true"});this.updateValue("logoSvg",G);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,B,!0)}; EP.prototype.xD=function(G){g.T.prototype.xD.call(this,G);this.api.logVisibility(this.element,this.visible&&G)};g.t(aL9,g.Zh);g.W=aL9.prototype;g.W.OA=function(){if(this.T.S("web_player_max_seekable_on_ended")||!g.F(this.T.getPlayerStateObject(),2))this.progressBar.BC(),this.Zx.BC()}; g.W.aW=function(){this.I5();this.Ya.X?this.OA():this.progressBar.Th()}; g.W.dH=function(){this.OA();this.V.start()}; g.W.I5=function(){var G;if(G=!this.T.U().X){G=this.progressBar;var B=2*g.A3()*G.L;G=G.C.getLength()*1E3/G.api.getPlaybackRate()/B<300}G=G&&this.T.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;B=!G;this.Ya.X||(G=B=!1);B?this.XJ||(this.XJ=this.K(this.T,"progresssync",this.OA)):this.XJ&&(this.i6(this.XJ),this.XJ=null);G?this.V.isActive()||this.V.start():this.V.stop()}; g.W.Df=function(){var G=this.T.DB(),B=this.T.g1().getPlayerSize(),a=xBc(this),V=Math.max(B.width-a*2,100);if(this.Dx!==B.width||this.eJ!==G){this.Dx=B.width;this.eJ=G;var x=h6x(this);this.G.element.style.width=x+"px";this.G.element.style.left=a+"px";g.mQ9(this.progressBar,a,x,G);this.T.G1().We=x}a=this.C;V=Math.min(570*(G?1.5:1),V);G=Math.min(413*(G?1.5:1),Math.round((B.height-e6Y(this))*.82));a.maxWidth=V;a.maxHeight=G;a.HK();this.I5();this.T.U().S("html5_player_dynamic_bottom_gradient")&&dGV(this.Vb, B.height)}; g.W.onVideoDataChange=function(){var G=this.T.getVideoData();this.qB.style.background=G.yd?G.Q0:"";this.zH&&gTy(this.zH,G.showSeekingControls);this.Y&&gTy(this.Y,G.showSeekingControls)}; g.W.dO=function(){return this.G.element};g.t(Wm9,nO);g.W=Wm9.prototype;g.W.R7=function(G){G.target!==this.dismissButton.element&&(this.onClickCommand&&this.T.pN("innertubeCommand",this.onClickCommand),this.NZ())}; g.W.NZ=function(){this.enabled=!1;this.Y.hide()}; g.W.onVideoDataChange=function(G,B){G==="dataloaded"&&weB(this);G=[];var a,V,x,h;if(B=(h=g.u((a=B.getWatchNextResponse())==null?void 0:(V=a.playerOverlays)==null?void 0:(x=V.playerOverlayRenderer)==null?void 0:x.suggestedActionsRenderer,Lda))==null?void 0:h.suggestedActions)for(a=g.m(B),V=a.next();!V.done;V=a.next())(V=g.u(V.value,TK3))&&g.u(V.trigger,Q5l)&&G.push(V);if(G.length!==0){a=[];G=g.m(G);for(V=G.next();!V.done;V=G.next())if(V=V.value,x=g.u(V.trigger,Q5l))h=(h=V.title)?g.tU(h):"View Chapters", B=x.timeRangeStartMillis,x=x.timeRangeEndMillis,B!=null&&x!=null&&V.tapCommand&&(a.push(new g.V1(B,x,{priority:9,namespace:"suggested_action_button_visible",id:h})),this.suggestedActions[h]=V.tapCommand);this.T.z1(a)}}; g.W.y3=function(){return this.enabled}; g.W.Ry=function(){this.enabled?this.SJ.start():y9(this);this.Re()}; g.W.yb=function(){weB(this);nO.prototype.yb.call(this)};var jY={},yl=(jY.CHANNEL_NAME="ytp-title-channel-name",jY.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",jY.LINK="ytp-title-link",jY.SESSIONLINK="yt-uix-sessionlink",jY.SUBTEXT="ytp-title-subtext",jY.TEXT="ytp-title-text",jY.TITLE="ytp-title",jY);g.t(ct,g.T);ct.prototype.onClick=function(G){this.api.logClick(this.element);var B=this.api.U(),a=this.api.getVideoUrl(!g.ju(G),!1,!0);g.co(B)&&(B={},g.lq(this.api,"addEmbedsConversionTrackingParams",[B]),a=g.LJ(a,B));g.ej(a,this.api,G)}; ct.prototype.uL=function(){var G=this.api.getVideoData(),B=this.api.U();this.updateValue("title",G.title);var a={Z:"a",J:yl.CHANNEL_NAME,N:{href:"{{channelLink}}",target:"_blank"},cS:"{{channelName}}"};this.api.U().C&&(a={Z:"span",J:yl.CHANNEL_NAME,cS:"{{channelName}}",N:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",a);KmH(this);this.api.getPresentingPlayerType()===2&&(a=this.api.getVideoData(),a.videoId&&a.isListed&&a.author&&a.QW&&a.profilePicture?(this.updateValue("channelLink", a.QW),this.updateValue("channelName",a.author),this.updateValue("channelTitleFocusable","0")):KmH(this));a=B.externalFullscreen||!this.api.isFullscreen()&&B.XQ;g.Km(this.link,yl.FULLERSCREEN_LINK,a);B.XJ||!G.videoId||a||g.BE(G)||B.C?this.j&&(this.updateValue("url",null),this.i6(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.K(this.link,"click",this.onClick)));B.C&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.co(B)?G.expandedTitle: G.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.t(g.nk,g.T);g.W=g.nk.prototype;g.W.setEnabled=function(G){if(this.type!=null)if(G)switch(this.type){case 3:case 2:ktB(this);this.W.show();break;default:this.W.show()}else this.W.hide();this.V=G}; g.W.yV=function(G,B,a,V,x,h,e,w){if(!this.Zx||this.env.V){this.type===3&&this.Th();this.type!==1&&(g.V_(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.V&&this.W.show(),this.X&&this.X.dispose(),(this.X=this.api.Q_())&&this.X.subscribe("l",this.Pk,this));if(w){var K=g.UK(this.bg).height||141;this.LN.style.bottom=K+2+"px"}else this.LN.style.display="none";this.update({text:a,title:h!=null?h:"",eduText:w!=null?w:""});g.Km(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!h);this.api.isInline()&& g.hi(this.bottomText,"ytp-modern-tooltip-text");g.Km(this.element,"ytp-text-detail",!!V);a=-1;this.X&&(a=R0(this.X,243*this.scale),this.env.S("web_l3_storyboard")&&this.X.levels.length===4&&(a=this.X.levels.length-1),a=U0z(this.X,a,B));dBc(this,a);if(e)switch(B=g.UK(this.element).width,e){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=B+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=B/2+"px",this.title.style.textAlign= "center"}NhH(this,!!V,G,x)}}; g.W.KA=function(){this.type===1&&this.Th()}; g.W.Op=function(G,B){if(this.type)if(this.type===3)this.Th();else return;lLc(this,G,3,B)}; g.W.Gh=function(){this.j&&!this.Y&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.V&&ktB(this))}; g.W.Pk=function(G,B){G<=this.G&&this.G<=B&&(G=this.G,this.G=NaN,dBc(this,G))}; g.W.AsJ=function(){gEA(this.X,this.G,243*this.scale)}; g.W.Th=function(){switch(this.type){case 2:var G=this.j;G.removeEventListener("mouseout",this.zH);G.addEventListener("mouseover",this.L);G.removeEventListener("blur",this.zH);G.addEventListener("focus",this.L);Ctb(this);break;case 3:Ctb(this);break;case 1:this.X&&(this.X.unsubscribe("l",this.Pk,this),this.X=null),this.api.removeEventListener("videoready",this.XJ),this.HS.stop()}this.type=null;this.V&&this.W.hide()}; g.W.LG=function(){if(this.j)for(var G=0;G=0;B--)if(this.gy[B]===G){this.gy.splice(B,1);break}ZM(this.Ya,64,this.gy.length>0)}; g.W.OX=function(){this.api.fE()&&this.api.y0();return!!this.vZ||peB(this)||g.FJ.prototype.OX.call(this)}; g.W.t1=ay(3);g.W.Rr=ay(7);g.W.Hm=ay(10); g.W.uX=function(){var G=!this.OX(),B=G&&this.api.fE()&&!g.F(this.api.getPlayerStateObject(),2)&&!g.BE(this.api.getVideoData())&&!this.api.U().C&&!this.api.isEmbedsShortsMode(),a=this.T9&&g.fb(this.api)&&g.F(this.api.getPlayerStateObject(),128);G||a?(this.Ge.show(),this.Zn.show()):(this.Ge.hide(),this.Zn.hide(),this.api.LG(this.wJ.element));B?this.AA.xW():this.AA.Bf();this.Px&&VCB(this.Px,this.IK||!G);this.api.S("web_player_hide_overflow_button_if_empty_menu")&&UBK(this);g.FJ.prototype.uX.call(this)}; g.W.xp=function(G,B,a,V,x){G.style.left="";G.style.top="";G.style.bottom="";var h=g.UK(G),e=V||this.Px&&g.hw(this.Px.dO(),B),w=V=null;a!=null&&e||(V=g.UK(B),w=g.gx(B,this.api.getRootNode()),a==null&&(a=w.x+V.width/2));a-=h.width/2;e?(B=this.Px,V=xBc(B),w=h6x(B),e=this.api.g1().getPlayerSize().height,a=g.eH(a,V,V+w-h.width),h=e-e6Y(B)-h.height):g.hw(this.wJ.element,B)?(B=this.api.g1().getPlayerSize().width,a=g.eH(a,12,B-h.width-12),h=this.DB()?this.Td:this.bv,this.api.U().playerStyle==="gvn"&&(h+= 20),this.T9&&(h-=this.DB()?26:18)):(B=this.api.g1().getPlayerSize(),a=g.eH(a,12,B.width-h.width-12),h=w.y>(B.height-V.height)/2?w.y-h.height-12:w.y+V.height+12);G.style.top=h+(x||0)+"px";G.style.left=a+"px"}; g.W.aW=function(G){G&&(this.api.LG(this.wJ.element),this.Px&&this.api.LG(this.Px.dO()));this.Qw&&(g.Km(this.contextMenu.element,"ytp-autohide",G),g.Km(this.contextMenu.element,"ytp-autohide-active",!0));g.FJ.prototype.aW.call(this,G)}; g.W.nV=function(){g.FJ.prototype.nV.call(this);this.Qw&&(g.Km(this.contextMenu.element,"ytp-autohide-active",!1),this.Qw&&(this.contextMenu.hide(),this.Wr&&this.Wr.hide()))}; g.W.xJ=function(G,B){var a=this.api.g1().getPlayerSize();a=new g.hI(0,0,a.width,a.height);if(G||this.Ya.X&&!this.OX()){if(this.api.U().sM||B)G=this.DB()?this.Td:this.bv,a.top+=G,a.height-=G;this.Px&&(a.height-=e6Y(this.Px))}return a}; g.W.hE=function(G){var B=this.api.getRootNode();G?B.parentElement?(B.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.U().externalFullscreen||(B.parentElement.insertBefore(this.M8.element,B),B.parentElement.insertBefore(this.x7.element,B.nextSibling))):g.RA(Error("Player not in DOM.")):(B.setAttribute("aria-label","Reproductor de video de YouTube"),this.M8.detach(),this.x7.detach());this.Df();this.ED()}; g.W.DB=function(){var G=this.api.U();return this.api.isFullscreen()&&!G.V||!1}; g.W.showControls=function(G){this.xi=!G;this.uX()}; g.W.Df=function(){var G=this.DB();this.tooltip.scale=G?1.5:1;this.contextMenu&&g.Km(this.contextMenu.element,"ytp-big-mode",G);this.uX();this.api.S("web_player_hide_overflow_button_if_empty_menu")||UBK(this);this.ED();var B=this.api.isEmbedsShortsMode();B&&G?(G=(this.api.g1().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.K4(this.wJ.element,"padding-left",G+"px"),g.K4(this.wJ.element,"padding-right",G+"px")):B&&(g.K4(this.wJ.element,"padding-left",""),g.K4(this.wJ.element,"padding-right", ""));g.FJ.prototype.Df.call(this)}; g.W.P1=function(){if(peB(this)&&!g.fb(this.api))return!1;var G=this.api.getVideoData();return!g.co(this.api.U())||this.api.getPresentingPlayerType()===2||!this.I8||((G=this.I8||G.I8)?(G=G.embedPreview)?(G=G.thumbnailPreviewRenderer,G=G.videoDetails&&g.u(G.videoDetails,hT9)||null):G=null:G=null,G&&G.collapsedRenderer&&G.expandedRenderer)?g.FJ.prototype.P1.call(this):!1}; g.W.ED=function(){g.FJ.prototype.ED.call(this);this.api.logVisibility(this.title.element,!!this.Xq);this.Cv&&this.Cv.xD(!!this.Xq);this.channelAvatar.xD(!!this.Xq);this.overflowButton&&this.overflowButton.xD(this.Rm()&&!!this.Xq);this.shareButton&&this.shareButton.xD(!this.Rm()&&!!this.Xq);this.OC&&this.OC.xD(!this.Rm()&&!!this.Xq);this.searchButton&&this.searchButton.xD(!this.Rm()&&!!this.Xq);this.copyLinkButton&&this.copyLinkButton.xD(!this.Rm()&&!!this.Xq);if(!this.Xq){this.api.LG(this.wJ.element); for(var G=0;G5&&B.FJ("glrs",{cmt:a});B.seekTo(0,{seekSource:58});B.FJ("glrre",{cmt:a})}}; Dt.prototype.yb=function(){this.j=null;g.r.prototype.yb.call(this)};g.t(g.Sy,PZ);g.W=g.Sy.prototype;g.W.isView=function(){return!0}; g.W.fq=function(){var G=this.mediaElement.getCurrentTime();if(G1;wZ(G.Ms(),V-.01)&&!x&&(Zt(this,4),a.isActive=!1,a.AS=a.AS||a.isActive,(this.B===1?this.j:this.X).FJ("sbh",{}),B.isActive=!0,B.AS=B.AS||B.isActive,this.B!==0&&(this.j.getVideoData().SV=!0));G=this.G.X;if(this.G.j.isActive&&G.isActive&&(Zt(this,5),this.B!==0)){G=this.X.Ly();a=this.j.Ly(); this.j.FJ("sbs",{citag:a==null?void 0:a.itag,nitag:G==null?void 0:G.itag});this.X.FJ("gitags",{pitag:a==null?void 0:a.itag,citag:G==null?void 0:G.itag});var h;(h=this.X)==null||h.kM()}}}; g.W.nB=function(){this.JJ()&&this.ZB("player-reload-after-handoff")}; g.W.ZB=function(G,B){B=B===void 0?{}:B;if(!this.TH()&&this.status.status!==6){var a=this.status.status>=4&&G!=="player-reload-after-handoff";this.status={status:Infinity,error:G};if(this.j&&this.X){var V=this.X.getVideoData().clientPlaybackNonce;this.j.I0(new yH("dai.transitionfailure",Object.assign(B,{cpn:V,transitionTimeMs:this.GS,msg:G})));this.j.fQ(a)}this.Sm.reject(G);this.dispose()}}; g.W.JJ=function(){return this.status.status>=4&&this.status.status<6}; g.W.yb=function(){R6x(this);this.j.unsubscribe("newelementrequired",this.nB,this);if(this.C){var G=this.C.X;this.C.j.Xf.unsubscribe("updateend",this.MG,this);G.Xf.unsubscribe("updateend",this.MG,this)}g.r.prototype.yb.call(this)}; g.W.Jk=function(G){g.CY(G,128)&&this.ZB("player-error-event")};g.t(r7,g.r);r7.prototype.clearQueue=function(G,B){G=G===void 0?!1:G;B=B===void 0?!1:B;this.G&&this.G.reject("Queue cleared");this.app.U().S("html5_gapless_fallback_on_qoe_restart_v2")||B&&this.X&&this.X.fQ(!1);$L(this,G)}; r7.prototype.AI=function(){return!this.j}; r7.prototype.JJ=function(){var G;return((G=this.C)==null?void 0:G.JJ())||!1}; r7.prototype.yb=function(){$L(this);g.r.prototype.yb.call(this)};g.t(QTc,g.wI);g.W=QTc.prototype;g.W.getVisibilityState=function(G,B,a,V,x,h,e,w){return G?4:uW_()?3:B?2:a?1:V?5:x?7:h?8:e?9:w?10:0}; g.W.CG=function(G){this.fullscreen!==G&&(this.fullscreen=G,this.Ry())}; g.W.setMinimized=function(G){this.X!==G&&(this.X=G,this.Ry())}; g.W.setInline=function(G){this.inline!==G&&(this.inline=G,this.Ry())}; g.W.Bq=function(G){this.pictureInPicture!==G&&(this.pictureInPicture=G,this.Ry())}; g.W.setSqueezeback=function(G){this.C!==G&&(this.C=G,this.Ry())}; g.W.xG=function(G){this.G!==G&&(this.G=G,this.Ry())}; g.W.vG=function(){return this.j}; g.W.Oo=function(){return this.fullscreen!==0}; g.W.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.W.gA=function(){return this.fullscreen}; g.W.isMinimized=function(){return this.X}; g.W.isInline=function(){return this.inline}; g.W.isBackground=function(){return uW_()}; g.W.l2=function(){return this.pictureInPicture}; g.W.rU=function(){return!1}; g.W.f8=function(){return this.C}; g.W.lY=function(){return this.G}; g.W.Ry=function(){this.publish("visibilitychange");var G=this.getVisibilityState(this.vG(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.l2(),this.rU(),this.f8(),this.lY());G!==this.L&&this.publish("visibilitystatechange");this.L=G}; g.W.yb=function(){T0B(this.B);g.wI.prototype.yb.call(this)};g.W=g.Xe.prototype;g.W.addCueRange=function(){}; g.W.Dq=function(){}; g.W.YI=function(){}; g.W.NG=function(){return!1}; g.W.nZ=function(){return!1}; g.W.Vy=function(){}; g.W.jy=function(){}; g.W.NJ=function(){}; g.W.lF=function(){}; g.W.oC=function(){return[]}; g.W.TM=function(){}; g.W.ZS=function(){return""}; g.W.getAudioTrack=function(){return this.getVideoData().M9}; g.W.getAvailableAudioTracks=function(){return[]}; g.W.P6=function(){return[]}; g.W.cM=function(){return[]}; g.W.fM=function(){return[]}; g.W.AU=function(){}; g.W.SS=function(){return 0}; g.W.Di=function(){return""}; g.W.getCurrentTime=function(){return 0}; g.W.B_=function(){}; g.W.Ly=function(){}; g.W.Nd=function(){return{}}; g.W.getDuration=function(){return 0}; g.W.t$=function(){return 0}; g.W.lJ=function(){return 0}; g.W.S7=function(){return!1}; g.W.lh=function(){return 0}; g.W.Sd=function(){return 0}; g.W.Nn=ay(15);g.W.h2=function(){return 0}; g.W.Y9=function(){return!1}; g.W.Ws=function(){return 0}; g.W.Zc=function(){return null}; g.W.Iu=function(){return null}; g.W.b6=function(){return 0}; g.W.jN=function(){return 0}; g.W.Jv=function(){return g.v(function(G){g.pV(G)})}; g.W.J2=ay(21);g.W.getPlaybackQuality=function(){return"auto"}; g.W.getPlaybackRate=function(){return 1}; g.W.getPlayerState=function(){this.playerState||(this.playerState=new g.aF);return this.playerState}; g.W.getPlayerType=function(){return 0}; g.W.getPlaylistSequenceForTime=function(){return null}; g.W.BG=function(){return function(){}}; g.W.m7=function(){return""}; g.W.getPreferredQuality=function(){return"unknown"}; g.W.RH=function(){}; g.W.getProximaLatencyPreference=function(){return 0}; g.W.Ub=function(){return L$}; g.W.Q_=function(){return null}; g.W.getStoryboardFormat=function(){return null}; g.W.getStreamTimeOffset=function(){return 0}; g.W.uY=function(){return 0}; g.W.F3=function(){return 0}; g.W.UE=function(){return{uV:[],gD:[],currentTime:0,ip:"",droppedVideoFrames:0,isGapless:!1,AI:!0,Q6:0,Ii:0,Ue:0,ai:0,pz:0,nz:[],Bk:[],J_:null,playerState:this.getPlayerState(),Pi:null,bD:"",totalVideoFrames:0}}; g.W.getUserAudio51Preference=function(){return 0}; g.W.getUserPlaybackQualityPreference=function(){return""}; g.W.getVideoData=function(){this.videoData||(this.videoData=new g.Tk(this.md));return this.videoData}; g.W.fK=function(){return null}; g.W.WD=function(){}; g.W.getVideoLoadedFraction=function(){return 0}; g.W.QI=function(){}; g.W.handleError=function(){}; g.W.fQ=function(){}; g.W.FD=function(){}; g.W.Ul=function(){return!1}; g.W.Eo=ay(46);g.W.KE=function(){return!1}; g.W.hasSupportedAudio51Tracks=function(){return!1}; g.W.Oa=function(){return!1}; g.W.vG=function(){return!1}; g.W.isAtLiveHead=function(){return!1}; g.W.qM=function(){return!0}; g.W.isGapless=function(){return!1}; g.W.isHdr=function(){return!1}; g.W.WM=function(){return!1}; g.W.uT=function(){return!1}; g.W.RW=function(){return!1}; g.W.isProximaLatencyEligible=function(){return!1}; g.W.AI=function(){return!0}; g.W.ZT=function(){return!1}; g.W.aX=function(){return!1}; g.W.s0=function(){return!1}; g.W.zN=function(){}; g.W.Uj=function(){}; g.W.rb=function(){}; g.W.Xj=function(){}; g.W.kM=function(){}; g.W.DD=function(){}; g.W.vI=function(){}; g.W.Qq=function(){}; g.W.Aj=function(){}; g.W.m8=ay(56);g.W.RM=ay(27);g.W.DT=function(){}; g.W.iP=function(){}; g.W.xM=function(){}; g.W.pauseVideo=function(){}; g.W.playVideo=function(){return g.v(function(G){return G.return()})}; g.W.G$=function(){}; g.W.GV=ay(33);g.W.jK=ay(39);g.W.cw=function(){}; g.W.FJ=function(){}; g.W.Y$=function(){}; g.W.GW=function(){}; g.W.kP=function(){}; g.W.I0=function(){}; g.W.Hw=function(){}; g.W.s7=function(){}; g.W.QD=function(){}; g.W.fX=function(){}; g.W.cV=function(){}; g.W.bE=function(){}; g.W.jF=function(){}; g.W.kG=function(){}; g.W.removeCueRange=function(){}; g.W.sJ=function(){}; g.W.KD=function(){return[]}; g.W.Zq=function(){}; g.W.tI=function(){}; g.W.Z4=function(){}; g.W.kq=function(){}; g.W.E7=function(){}; g.W.je=function(){}; g.W.uE=function(){}; g.W.seekTo=function(){}; g.W.sendAbandonmentPing=function(){}; g.W.sendVideoStatsEngageEvent=function(){}; g.W.wN=function(){}; g.W.Ag=function(){}; g.W.setLoop=function(){}; g.W.PT=function(){}; g.W.setMediaElement=function(){}; g.W.Wc=function(){}; g.W.setPlaybackRate=function(){}; g.W.Ev=function(){}; g.W.SM=function(){}; g.W.Za=function(){}; g.W.setProximaLatencyPreference=function(){}; g.W.EX=function(){}; g.W.Kv=function(){}; g.W.hg=function(){}; g.W.Mg=function(){}; g.W.eP=function(){}; g.W.setUserAudio51Preference=function(){}; g.W.MY=function(){}; g.W.ZU=function(){return!1}; g.W.WE=function(){}; g.W.H6=function(){return!1}; g.W.iq=function(){}; g.W.D4=function(){}; g.W.Ng=function(){}; g.W.stopVideo=function(){}; g.W.subscribe=function(){return NaN}; g.W.dV=function(){}; g.W.togglePictureInPicture=function(){}; g.W.WB=function(){return 0}; g.W.unsubscribe=function(){return!1}; g.W.aU=function(){}; g.W.hG=function(){return!1}; g.W.Zh=function(){}; g.W.q4=function(){}; g.W.u0=function(){}; g.W.LL=function(){};g.t(g.q3,g.r);g.W=g.q3.prototype;g.W.mH=function(){return this.B}; g.W.aD=function(G){this.B=G}; g.W.KN=function(){return this.md.S("web_player_present_empty")?this.G||this.j:this.G}; g.W.dL=function(G){this.G=G}; g.W.wp=ay(52);g.W.kY=ay(54);g.W.It=function(G){return this.C[G]||null}; g.W.yb=function(){for(var G=g.m(Object.values(this.C)),B=G.next();!B.done;B=G.next())B.value.lF();g.r.prototype.yb.call(this)};g.t(ug,g.r);g.W=ug.prototype;g.W.enqueue=function(G,B){if(G.G!==this)return!1;if(this.segments.length===0||(B===void 0?0:B))this.j=G;this.segments.push(G);return!0}; g.W.hH=function(){return this.qd||0}; g.W.a8=function(){return this.G||0}; g.W.removeAll=function(){for(;this.segments.length;){var G=void 0;(G=this.segments.pop())==null||G.dispose()}this.X.clear();this.C=void 0}; g.W.yb=function(){this.removeAll();g.r.prototype.yb.call(this)}; g.t(oqH,g.r);g.W=oqH.prototype;g.W.hH=function(){return this.qd}; g.W.a8=function(){return this.C}; g.W.getType=function(){return this.type}; g.W.getVideoData=function(){return this.videoData}; g.W.N3=function(G){jO(G);this.videoData=G}; g.W.yb=function(){MCK(this);g.r.prototype.yb.call(this)};g.sP.prototype.IN=function(G,B){if(B===1)return this.j.get(G);if(B===2)return this.C.get(G);if(B===3)return this.X.get(G)}; g.sP.prototype.pX=ay(64);g.sP.prototype.tE=function(G,B,a,V){a={FF:V,Io:a};B?this.C.set(G,a):this.j.set(G,a)}; g.sP.prototype.clearAll=function(){this.j.clear();this.C.clear();this.X.clear()}; g.t(g.Fe,g.r);g.W=g.Fe.prototype;g.W.cZ=function(G,B,a){return new g.V1(G,B,{id:a,namespace:"serverstitchedcuerange",priority:9})}; g.W.vg=function(G){var B=G.W6?G.W6*1E3:G.qd,a=this.X.get(G.cpn);a&&this.playback.removeCueRange(a);this.X.delete(G.cpn);this.C.delete(G.cpn);a=this.B.indexOf(G);a>=0&&this.B.splice(a,1);a=[];for(var V=g.m(this.L),x=V.next();!x.done;x=V.next())x=x.value,x.end<=B?this.playback.removeCueRange(x):a.push(x);this.L=a;tmX(this,0,B+G.durationMs)}; g.W.onCueRangeEnter=function(G){this.qB.push(G);var B=G.getId();this.jE({oncueEnter:1,cpn:B,start:G.start,end:G.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.SS()||0).toFixed(3)});var a=B==="";this.MB.add(G.X);var V=this.C.get(B);if(a){var x;if(this.playback.getVideoData().cn()&&((x=this.j)==null?0:x.p7)&&this.G){this.q9=0;this.j=void 0;this.XJ&&(this.events.i6(this.XJ),this.XJ=null);this.G="";this.Er=!0;return}}else if(this.jE({enterAdCueRange:1}),this.playback.getVideoData().cn()&& (V==null?0:V.G7))return;if(this.Er&&!this.j)this.Er=!1,!a&&V&&(a=this.playback.getCurrentTime(),oH(this,{uJ:G,isAd:!0,py:!0,O$:a,adCpn:B},{isAd:!1,py:!1,O$:a}),this.Hf=V.cpn,ig(this,V),G=YL(this,"midab",V),this.jE(G),this.q9=1),this.Y=!1;else if(this.j){if(this.j.py)this.jE({a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.O$,cpn:B,currentTime:this.playback.getCurrentTime()}),V=this.playback.getCurrentTime(),G={uJ:G,isAd:!a,py:!0,O$:V,adCpn:B},B={uJ:this.j.uJ,isAd:this.j.isAd, py:!1,O$:V,adCpn:this.j.adCpn},this.j.uJ&&this.MB.delete(this.j.uJ.X),oH(this,G,B);else{if(this.j.uJ===G){this.jE({same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.O$,cpn:B,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:G.start,cueRangeEndTime:G.end});this.j=void 0;return}if(this.j.adCpn===B){B&&this.jE({dchtsc:B});this.j=void 0;return}G={uJ:G,isAd:!a,py:!0,O$:this.playback.getCurrentTime(),adCpn:B};oH(this,G,this.j)}this.j=void 0;this.Y=!1}else this.j={uJ:G,isAd:!a, py:!0,O$:this.playback.getCurrentTime(),adCpn:B}}; g.W.onCueRangeExit=function(G){var B=G.getId();this.jE({oncueExit:1,cpn:B,start:G.start,end:G.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.SS()||0).toFixed(3)});var a=B==="",V=this.C.get(B);if(this.playback.getVideoData().cn()&&!a&&V){if(V.G7)return;V.G7=!0;this.V.clear();if(this.md.S("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.NG()){var x=V.qd;this.playback.kG(x/1E3,(x+V.durationMs)/1E3)}else this.playback.FJ("lifa",{remove:0})}if(this.MB.has(G.X))if(this.MB.delete(G.X), this.qB=this.qB.filter(function(h){return h!==G}),this.Er&&(this.Y=this.Er=!1,this.jE({cref:1})),this.j){if(this.j.py){if(this.j.uJ===G){this.jE({same_cue_range_pair_exit:1, acpn:this.j.adCpn,transitionTime:this.j.O$,cpn:B,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:G.start,cueRangeEndTime:G.end});this.j=void 0;return}if(this.j.adCpn===B){B&&this.jE({dchtsc:B});this.j=void 0;return}B={uJ:G,isAd:!a,py:!1,O$:this.playback.getCurrentTime(),adCpn:B};oH(this,this.j,B)}else if(this.jE({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.O$,upcomingCpn:B,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.j.adCpn===B)return;this.j=void 0;this.Y=!1}else this.j={uJ:G,isAd:!a,py:!1,O$:this.playback.getCurrentTime(),adCpn:B};else this.jE({ignore_single_exit:1})}; g.W.VA=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,qd:0,playerType:1,rC:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.W.x$=function(){if(this.W3)return!1;var G=void 0;this.Hf&&(G=this.C.get(this.Hf));return this.playback.getVideoData().cn()?!!G&&!G.G7:!!G}; g.W.seekTo=function(G,B,a,V){G=G===void 0?0:G;B=B===void 0?{}:B;a=a===void 0?!1:a;V=V===void 0?null:V;if(this.playback.getVideoData().cn()&&G<=this.GH/1E3)this.playback.pauseVideo(),this.GH=0,this.Y=!0,this.playback.Jv(),this.playback.seekTo(G),this.playback.playVideo();else if(this.Y=!0,a)Bub(this,G,B);else{a=this.app.KN();var x=a===this.Ur?this.fh:null;GX(this,!1);this.wO=G;this.Md=B;V!=null&&this.QW.start(V);a&&(this.fh=x||a.getPlayerState(),a.Ng(),this.Ur=a)}}; g.W.yb=function(){GX(this,!1);KCH(this);l2b(this);g.r.prototype.yb.call(this)}; g.W.D0=function(G){this.Cd=G;this.jE({swebm:G})}; g.W.Ey=function(G,B,a){if(a&&B){var V=this.V.get(G);if(V){V.locations||(V.locations=new Map);var x=Number(B.split(";")[0]);a=new g.pT(a);this.jE({hdlredir:1,itag:B,seg:G,hostport:Oi(a)});V.locations.set(x,a)}}}; g.W.VP=function(G,B,a,V,x,h){var e=V===3,w=Nuy(this,G,B,V,a,h);if(!w){am(this,B,e);var K=g.krz(this,B)?"undec":"ncp";this.jE({gvprp:K,mt:G,seg:B,tt:V,itag:a,ce:h});return null}e||this.V.set(B,w);h=w.S$;var l;V=((l=this.IN(B-1,V,x))==null?void 0:l.FF)||"";V===""&&this.jE({eds:1});l=CJg(this,w.ssdaiAdsConfig);x=this.playback.getVideoData();var k;e=((k=x.X)==null?void 0:k.containerType)||0;k=x.Qs[e];w=w.T$&&B>=w.T$?w.T$:void 0;k={U6:h?I2z(this,h):[],iV:l,FF:V,vp:w,vt:on(k.split(";")[0]),Ht:k.split(";")[1]|| ""};w={yA:k};this.Dx&&(G={gvprpro:"v",sq:B,mt:G.toFixed(3),itag:a,acpns:((K=k.U6)==null?void 0:K.join("_"))||"none",abid:h},this.jE(G));return w}; g.W.o3=function(G){a:{if(!this.W3){var B=dXX(this,G);if(!(this.playback.getVideoData().cn()&&(B==null?0:B.G7)))break a}B=void 0}var a=B;if(!a)return this.jE({gvprp:"ncp",mt:G}),null;B=a.S$;var V=CJg(this,a.ssdaiAdsConfig);a=a.T$&&a.rT&&G>=a.rT?a.T$:void 0;var x=this.playback.getVideoData(),h,e=((h=x.X)==null?void 0:h.containerType)||0;h=x.Qs[e];h={U6:B?I2z(this,B):[],iV:V,vp:a,vt:on(h.split(";")[0]),Ht:h.split(";")[1]||""};var w;G={gvprpro:"v",mt:G.toFixed(3),acpns:((w=h.U6)==null?void 0:w.join("_"))|| "none",abid:B};this.jE(G);return h}; g.W.St=function(G,B,a,V,x,h){var e=Number(a.split(";")[0]),w=V===3;G=Nuy(this,G,B,V,a,h);this.jE({gdu:1,seg:B,itag:e,pb:""+!!G});if(!G)return am(this,B,w),null;G.locations||(G.locations=new Map);if(!G.locations.has(e)){var K,l;h=(K=G.videoData.getPlayerResponse())==null?void 0:(l=K.streamingData)==null?void 0:l.adaptiveFormats;if(!h)return this.jE({gdu:"noadpfmts",seg:B,itag:e}),am(this,B,w),null;K=h.find(function(d){return d.itag===e}); if(!K||!K.url){var k=G.videoData.videoId;G=[];var N=g.m(h);for(V=N.next();!V.done;V=N.next())G.push(V.value.itag);this.jE({gdu:"nofmt",seg:B,vid:k,itag:e,fullitag:a,itags:G.join(",")});am(this,B,w);return null}G.locations.set(e,new g.pT(K.url,!0))}h=G.locations.get(e);if(!h)return this.jE({gdu:"nourl",seg:B,itag:e}),am(this,B,w),null;h=new CE(h);this.Cd&&(h.get("dvc")?this.jE({dvc:h.get("dvc")||""}):h.set("dvc","webm"));(V=(N=this.IN(B-1,V,x))==null?void 0:N.FF)&&h.set("daistate",V);G.T$&&B>=G.T$&& h.set("skipsq",""+G.T$);(N=this.playback.getVideoData().clientPlaybackNonce)&&h.set("cpn",N);N=[];G.S$&&(N=I2z(this,G.S$),N.length>0&&h.set("acpns",N.join(",")));w||this.V.set(B,G);w=null;w=h.get("aids");V=h.Ex();(V==null?void 0:V.length)>2048&&this.jE({urltoolong:1,sq:B,itag:e,len:V.length});this.Dx&&(V&&(h=G.cpn,x=G.S$,UXz(this,h,x),x&&!this.Qv.has(x)&&(h=g6B(this,h,x),K=pc_(this,x),this.jE({iofa:h}),this.jE({noawnzd:K-h}),this.jE({acpns:N.join("."),aids:(k=w)==null?void 0:k.replace(/,/g,".")}), this.Qv.add(x))),this.jE({gdu:"v",seg:B,itag:a,ast:G.qd.toFixed(3),alen:G.durationMs.toFixed(3),acpn:G.cpn,avid:G.videoData.videoId}));return V}; g.W.h5=function(G,B,a){var V=BP(this,G,a);return(V=V?(V.qd+V.durationMs)/1E3:0)&&B>V?(this.Z5(G,a,!0),this.playback.seekTo(V),!0):!1}; g.W.Z5=function(G,B,a){a=a===void 0?!1:a;var V=BP(this,G,B);if(V){var x=void 0,h=V.S$;if(h){this.jE({skipadonsq:B,sts:a,abid:h,acpn:V.cpn,avid:V.videoData.videoId});a=this.W.get(h);if(!a)return;a=g.m(a);for(h=a.next();!h.done;h=a.next())h=h.value,h.T$=B,h.rT=G,h.qd>V.qd&&(x=h)}this.G=V.cpn;zVY(this);G=this.playback.getCurrentTime();Pt(this,V,x,G,G,!1,!0)}}; g.W.T8=function(){for(var G=g.m(this.B),B=G.next();!B.done;B=G.next())B=B.value,B.T$=NaN,B.rT=NaN;zVY(this);this.jE({rsac:"resetSkipAd",sac:this.G});this.G=""}; g.W.IN=function(G,B,a){return this.Qb.IN(G,B,a)}; g.W.pX=ay(63); g.W.tE=function(G,B,a,V,x,h,e,w,K){V.length>0&&this.jE({onssinfo:1,sq:G,start:B.toFixed(3),cpns:V.join(","),ds:x.join(","),isVideo:e?1:0});K&&this.Qb.tE(G,e,w,K);K=eO(this.playback.getVideoData())&&this.md.S("html5_process_all_cuepoints");if(e||K){if(V.length&&x.length)for(this.G&&this.G===V[0]&&this.jE({skipfail:1,sq:G,acpn:this.G}),G=B+this.uY(),e=0;e0&&(this.q9=0,this.Hf="",this.api.publish("serverstitchedvideochange"));this.playback.NJ(a,V);return!0}; g.W.QT=function(){this.jE({rstdaist:1});this.Qb.clearAll()}; g.W.F4=function(G){var B;if(G!==((B=this.HS)==null?void 0:B.identifier))this.jE({ignorenoad:G});else{this.dC.add(G);var a;((a=this.HS)==null?void 0:a.identifier)===G&&A_(this)}}; g.W.xN=function(){return this.q9}; g.W.M$=function(){return this.Hf}; g.W.Y2=function(G){if(this.W3)return this.jE({dai_disabled:G.event}),!1;if(this.playback.getVideoData().cn()&&(this.md.S("html5_lifa_no_gab_on_predict_start")&&G.event==="predictStart"||G.event==="continue"||G.event==="stop"))return this.jE({cuepoint_skipped:G.event}),!1;var B=H$(this.api.Ch());if(B=B?B.Y2(G):!1)this.zH={q5:G.identifier,Cw:G.startSecs};else if(this.zH&&this.zH.q5===G.identifier&&G.startSecs>this.zH.Cw+1){this.jE({cueStChg:G.identifier,oldSt:this.zH.Cw.toFixed(3),newSt:G.startSecs.toFixed(3), abid:this.zH.XS});if(this.zH.XS){var a=G.startSecs-this.zH.Cw,V=this.W.get(this.zH.XS);if(V){V=g.m(V);for(var x=V.next();!x.done;x=V.next())x=x.value,x.qd>=0&&(x.qd+=a*1E3,this.md.S("html5_ssdai_update_timeline_on_start_time_change")&&(x.rC+=a*1E3),this.jE({newApEt:x.qd,newApPrt:x.rC,acpn:x.cpn}))}}this.zH.Cw=G.startSecs}return B}; g.W.y8=function(G){return this.W3?!1:!!dXX(this,G)}; g.W.c7=function(G){var B=this;this.playback.pauseVideo();var a=this.playback.getCurrentTime(),V=this.md.S("html5_lifa_reset_segment_index_on_skip"),x=V?a+this.playback.uY():a,h=this.C.get(this.Hf),e=this.X.get(this.Hf);if(h){this.G=this.Hf;this.Y=!1;h.G7=!0;a=this.playback.getCurrentTime();this.j={uJ:e,isAd:!0,py:!1,O$:a,adCpn:this.Hf,p7:h,NLN:G};this.playback.fX(h,this.VA(),a,this.playback.getCurrentTime(),!1,!0,G,(0,g.yT)());V&&this.playback.DT();if(e==null?0:e.start)this.GH=a*1E3-e.start;this.V.clear(); this.playback.Jv();this.Hf=this.VA().cpn;this.api.publish("serverstitchedvideochange");this.playback.seekTo(x,{seekSource:89,Tt:"lifa_skip"});this.playback.playVideo();this.XJ||(this.XJ=this.events.K(this.api,"progresssync",function(){B.vg(h)})); return!0}this.jE({skipFail:a},!0);return!1}; g.W.jE=function(G,B){((B===void 0?0:B)||this.Dx||this.playback.getVideoData().cn())&&this.playback.FJ("sdai",G)}; var hVy=0;g.t(O5V,g.Fe);g.W=O5V.prototype;g.W.onCueRangeEnter=function(G){var B=G.getId();this.playback.FJ("sdai",{oncueEnter:1,cpn:B,start:G.start,end:G.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.SS()||0).toFixed(3)});G=this.C.get(B);this.playback.FJ("sdai",{enterAdCueRange:1});B=this.Hf||this.VA().cpn;var a;B=(a=this.C.get(B))!=null?a:this.VA();G&&(a={il:B,Ra:G,GA:this.playback.getCurrentTime()},this.BI(a))}; g.W.onCueRangeExit=function(G){var B=this.playback.getCurrentTime()*1E3;G=G.getId();for(var a=g.m(this.X.values()),V=a.next();!V.done;V=a.next())if(V=V.value,V.getId()!==G&&B>=V.start&&B<=V.end)return;if(B=this.C.get(G))B={il:B,Ra:this.VA(),GA:this.playback.getCurrentTime()},this.BI(B)}; g.W.BI=function(G){this.G||this.Y||this.fL(this.Hf);var B=G.il,a=G.Ra;if(a.cpn===this.Hf)this.playback.FJ("sdai",{igtranssame:1,enter:a.cpn,exit:B.cpn});else{var V=this.Y,x=!!this.G;this.G="";var h=G.GA,e=B.playerType===2?B.qd/1E3+B.videoData.Er:this.VA().videoData.Er;if(B.playerType===2&&a.playerType===2)x?this.playback.FJ("sdai",{igtransskip:1,enter:a.cpn,exit:B.cpn,seek:V,skip:this.G}):Pt(this,B,a,e,h,V,x);else{this.Hf=a.cpn;G=G.S$J;if(B.playerType===1&&a.playerType===2){this.GH=0;ig(this,a);var w= YL(this,"c2a",a);this.playback.FJ("sdai",w);this.q9++}else if(B.playerType===2&&a.playerType===1){w=B.videoData.Er;this.api.publish("serverstitchedvideochange");var K=YL(this,"a2c");this.playback.FJ("sdai",K);this.q9=0;this.GH=w*1E3;this.R4=e;b5V(this,B.S$)}this.playback.fX(B,a,e,h,V,x,G)}this.G="";this.Y=!1}}; g.W.seekTo=function(G,B,a,V){G=G===void 0?0:G;B=B===void 0?{}:B;a=a===void 0?!1:a;V=V===void 0?null:V;this.fL(this.Hf);this.playback.getVideoData().cn()&&G<=this.R4?(this.playback.pauseVideo(),this.R4=this.GH=0,E6g(this,G)):g.Fe.prototype.seekTo.call(this,G,B,a,V)}; g.W.Z5=function(G,B,a){a=a===void 0?!1:a;var V=BP(this,G,B);if(V){var x=void 0,h=V.S$;if(h){this.playback.FJ("sdai",{skipadonsq:B,sts:a,abid:h,acpn:V.cpn,avid:V.videoData.videoId});a=this.W.get(h);if(!a)return;a=g.m(a);for(h=a.next();!h.done;h=a.next())h=h.value,h.T$=B,h.rT=G,h.qd>V.qd&&(x=h)}this.fL(this.Hf);this.G=V.cpn;zVY(this);G=this.playback.getCurrentTime();Pt(this,V,x,G,G,!1,!0)}}; g.W.tE=function(G,B,a,V,x,h,e,w,K){V.length>0&&this.playback.FJ("sdai",{onssinfo:1,sq:G,start:B.toFixed(3),cpns:V.join(","),ds:x.join(","),isVideo:e?1:0});K&&this.Qb.tE(G,e,w,K);a=eO(this.playback.getVideoData())&&this.md.S("html5_process_all_cuepoints");if(e||a){if(V.length&&x.length)for(this.G&&this.G===V[0]&&this.playback.FJ("sdai",{skipfail:1,sq:G,acpn:this.G}),G=B+this.uY(),e=0;e=0&&this.B.splice(G,1)}; g.W.fL=function(G){var B=G||this.Hf,a=this.C.get(B);if(a){G=a.videoData;var V,x;B=a.W6||((x=(V=this.X.get(B))==null?void 0:V.start)!=null?x:0)/1E3;V=this.playback.getCurrentTime()-B;G.Er=V>0?V:0}else this.VA().videoData.Er=this.playback.getCurrentTime()};g.t(f2b,g.r);g.W=f2b.prototype; g.W.aV=function(G,B){B=B===void 0?"":B;if(this.timeline.C===B)return!0;var a=this.timeline.j,V=a==null?void 0:a.getVideoData();if(!a||!V)return this.api.FJ("ssap",{htsm:a?0:1}),!1;if(this.api.S("html5_ssap_clear_timeline_before_update")){var x=this.timeline,h;(h=x.j)==null||MCK(h);x.X.clear()}x=Ql(a);var e=!1;h=[];var w=new Map;a=[];var K=[],l=0,k=0,N=0,d=[];G=g.m(G);for(var C=G.next();!C.done;C=G.next())a:{var z=void 0,p=void 0,O=C.value,b=O.clipId;if(b){if(O.Au){N=O.Au.mL||0;C=O.Au.ju||1;var c= Number(((O.Au.Od||0)/(O.Au.aQ||1)*1E3).toFixed(0));N=C=c+Number((N/C*1E3).toFixed(0))}else C=c=N,this.aZ.has(b)||this.P9.add(b);var H=(p=w.get(b))!=null?p:0,R=this.timeline.C;p=!1;if(R&&this.api.S("html5_ssap_clear_timeline_before_update")){if(R=this.Tm.get(b))R.start=c,R.end=C,p=!0}else{if(R){var q=b;R=c;var A=C,J=H,xB=ib(this.timeline,q);if(xB!=null&&xB.length){J=w){this.Cs.set(G,a);SxY(this,G,B);this.b0.set(G,(0,g.yT)());if(a=this.Tm.get(B))for(a=a.getId().split(","),a=g.m(a),e=a.next();!e.done;e=a.next())e=e.value,e!==B&&this.P9.has(e)&&(this.P9.delete(e),this.aZ.add(e));this.fL();B=h.hH()/1E3;h=void 0;a=(h=g.kf(this.api.U().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?h:0;this.api.S("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(B+ a/1E3,{Wo:!0}):this.playback.seekTo(B+a/1E3);this.UX?(this.api.FJ("ssap",{gpfreload:this.Hf}),n6c(this)||(this.UX=!1),this.playback.Jv(!1,!1,this.api.S("html5_ssap_keep_media_on_finish_segment"))):V&&this.playback.Jv(!1,!1,this.api.S("html5_ssap_keep_media_on_finish_segment"));x&&this.api.playVideo(1,this.api.S("html5_ssap_keep_media_on_finish_segment"));return[G]}}}return[]}; g.W.gi=function(){var G=this.timeline.j;if(!G)return 0;var B=G.a8();G=g.m(G.j.values());for(var a=G.next();!a.done;a=G.next()){a=g.m(a.value);for(var V=a.next();!V.done;V=a.next())V=V.value,V.a8()>B&&(B=V.a8())}return B/1E3}; g.W.b6=function(){var G=this.playback.getCurrentTime()*1E3;var B=$XH(this,G);if(!B){var a=ib(this.timeline,this.Hf);if(a){a=g.m(a);for(var V=a.next();!V.done;V=a.next())V=V.value,V.hH()>G&&(B=V)}}return B&&B.getType()===1?B.hH()/1E3:0}; g.W.getVideoData=function(G){if(G===2&&!this.x$()){if(this.ue&&this.wV.has(this.ue))return this.wV.get(this.ue);this.api.FJ("ssap",{lpanf:""+ZK(this)});return null}return uUY(this)}; g.W.x$=function(){var G=ib(this.timeline,this.Hf);return(G==null?0:G.length)?G[0].getType()===2:!1}; g.W.oW=function(){var G=ib(this.timeline,this.Hf);return(G==null?0:G.length)?G[0].X:!1}; g.W.seekTo=function(G,B){B=B===void 0?{}:B;var a=XcX(this,this.playback.getCurrentTime());this.playback.seekTo(G+a/1E3,B)}; g.W.cZ=function(G,B,a){return new g.V1(G,B,{id:a,namespace:"ssap",priority:9})}; g.W.onCueRangeEnter=function(G){if(!this.jP.has(G.getId())){this.api.FJ("ssap",{oce:1,cpn:G.getId(),st:G.start,et:G.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.SS()||0).toFixed(3)});for(var B=G.getId().split(","),a=0;aa+1)for(V=a+1;V0?B:0}; g.W.IHX=function(G){var B=this.wV.get(this.Hf);B&&this.playback.Hw(G-B.dC/1E3,B.lengthSeconds,this.Hf)}; g.W.yb=function(){this.api.U().Ef()&&this.api.FJ("ssap",{di:""+this.Hf,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.wV.clear();this.P9.clear();this.jP.clear();this.Cs.clear();this.b0.clear();this.aZ.clear();this.Vq=[];cvc(this);this.rD="";g.nU(this.events);g.r.prototype.yb.call(this)};g.t(suy,g.r);g.W=suy.prototype;g.W.onCueRangeEnter=function(G){if(this.j===this.app.KN()){var B=this.B.get(G);B?PJX(this,B.target,B.GS,G):this.I0("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:G.toString()})}else if(B=this.X.find(function(x){return x.mF.uJ===G})){var a=B.mF,V=a.target; a=a.GS;V?PJX(this,V,a,G):i5c(this,B.rC,a,G)}}; g.W.onQueuedVideoLoaded=function(){var G=this.W;wk(this);if(G){if(!WP(this,G)){var B=this.app.KN();this.I0("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:B==null?void 0:B.getVideoData().clientPlaybackNonce,ccpn:""+G.playerVars.cpn})}this.app.KN().addCueRange(G.mF.uJ)}}; g.W.seekTo=function(G,B,a,V){G=G===void 0?0:G;B=B===void 0?{}:B;V=V===void 0?null:V;if(a===void 0?0:a)TuH(this,G,B);else{a=this.app.KN()||null;var x=a===this.G?this.L:null;Kl(this,!1);this.zH=G;this.Y=B;V!=null&&this.V.start(V);a&&(this.L=x||a.getPlayerState(),a.Ng(),this.G=a)}}; g.W.hI=function(G){g.CY(G,128)&&a6A(this)}; g.W.isManifestless=function(){return NJ(this.j.getVideoData())}; g.W.yb=function(){Kl(this,!1);xiX(this);g.r.prototype.yb.call(this)}; g.W.I0=function(G,B){this.j.I0(new yH(G,B))}; var FCY=0;var hPb="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.t(NE,g.r);g.W=NE.prototype;g.W.get=function(G){lF(this);var B=this.data.find(function(a){return a.key===G}); return B?B.value:null}; g.W.set=function(G,B,a){this.remove(G,!0);lF(this);G={key:G,value:B,expire:Infinity};a&&isFinite(a)&&(a*=1E3,G.expire=(0,g.yT)()+a);for(this.data.push(G);this.data.length>this.C;)(a=this.data.shift())&&dk(this,a,!0);kW(this)}; g.W.remove=function(G,B){B=B===void 0?!1:B;var a=this.data.find(function(V){return V.key===G}); a&&(dk(this,a,B),g.o2(this.data,function(V){return V.key===G}),kW(this))}; g.W.removeAll=function(G){if(G=G===void 0?!1:G)for(var B=g.m(this.data),a=B.next();!a.done;a=B.next())dk(this,a.value,G);this.data=[];kW(this)}; g.W.yb=function(){var G=this;g.r.prototype.yb.call(this);this.data.forEach(function(B){dk(G,B,!0)}); this.data=[]};g.t(Cl,g.r);Cl.prototype.Lo=function(G){if(G)return this.X.get(G)}; Cl.prototype.yb=function(){this.j.removeAll();this.X.removeAll();g.r.prototype.yb.call(this)};g.RlJ=NH(function(){var G=window.AudioContext||window.webkitAudioContext;try{return new G}catch(B){return B.name}});g.t(kWH,g.T);g.W=kWH.prototype;g.W.M0=function(){g.eb(this.element,g.Hz.apply(0,arguments))}; g.W.tI=function(){this.X3&&(this.X3.removeEventListener("focus",this.yL),g.xo(this.X3),this.X3=null)}; g.W.mB=function(){this.TH();var G=this.app.U();G.L1||this.M0("tag-pool-enabled");G.L&&this.M0(g.Lh.HOUSE_BRAND);G.playerStyle==="gvn"&&(this.M0("ytp-gvn"),this.element.style.backgroundColor="transparent");G.Cd&&(this.K0=g.hh("yt-dom-content-change",this.resize,this));this.K(window,"orientationchange",this.resize,this);this.K(window,"resize",this.resize,this)}; g.W.pW=function(G){g.DB(this.app.U());this.oR=!G;zX(this)}; g.W.resize=function(){if(this.X3){var G=this.bz();if(!G.isEmpty()){var B=!g.Co(G,this.rd.getSize()),a=ti9(this);B&&(this.rd.width=G.width,this.rd.height=G.height);G=this.app.U();(a||B||G.Cd)&&this.app.JX.publish("resize",this.getPlayerSize())}}}; g.W.au=function(G,B){this.updateVideoData(B)}; g.W.updateVideoData=function(G){if(this.X3){var B=this.app.U();FC&&(this.X3.setAttribute("x-webkit-airplay","allow"),G.title?this.X3.setAttribute("title",G.title):this.X3.removeAttribute("title"));this.X3.setAttribute("controlslist","nodownload");B.D6&&G.videoId&&(this.X3.poster=G.Sf("default.jpg"))}B=g.ON(G,"yt:bgcolor");this.r8.style.backgroundColor=B?B:"";this.S4=eL(g.ON(G,"yt:stretch"));this.h0=eL(g.ON(G,"yt:crop"),!0);g.Km(this.element,"ytp-dni",G.yd);this.resize()}; g.W.setGlobalCrop=function(G){this.ZR=eL(G,!0);this.resize()}; g.W.setCenterCrop=function(G){this.OP=G;this.resize()}; g.W.CG=function(){}; g.W.getPlayerSize=function(){var G=this.app.U(),B=this.app.JX.isFullscreen(),a=G.externalFullscreen&&g.co(G);if(B&&LB()&&!a)return new g.dU(window.outerWidth,window.outerHeight);a=!isNaN(this.wA.width)&&!isNaN(this.wA.height);var V=this.app.U().S("kevlar_player_enable_squeezeback_fullscreen_sizing");if(B&&!a&&V)return new g.dU(this.element.clientWidth,this.element.clientHeight);if(B||G.gt){if(window.matchMedia){G="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Na&&this.Na.media=== G||(this.Na=window.matchMedia(G));var x=this.Na&&this.Na.matches}if(x)return new g.dU(window.innerWidth,window.innerHeight)}else if(a)return this.wA.clone();return new g.dU(this.element.clientWidth,this.element.clientHeight)}; g.W.bz=function(){var G=this.app.U().S("enable_desktop_player_underlay"),B=this.getPlayerSize(),a=g.kf(this.app.U().experiments,"player_underlay_min_player_width");return G&&this.j5&&B.width>a?(G=g.kf(this.app.U().experiments,"player_underlay_video_width_fraction"),new g.dU(Math.min(B.height*this.getVideoAspectRatio(),B.width*G),Math.min(B.height,B.width*G/this.getVideoAspectRatio()))):B}; g.W.getVideoAspectRatio=function(){return isNaN(this.S4)?diB(this):this.S4}; g.W.getVideoContentRect=function(G){var B=this.bz();G=CZc(this,B,this.getVideoAspectRatio(),G);return new g.hI((B.width-G.width)/2,(B.height-G.height)/2,G.width,G.height)}; g.W.bX=function(G){this.j5=G;this.resize()}; g.W.dU=function(){return this.Xn}; g.W.onMutedAutoplayChange=function(){zX(this)}; g.W.setInternalSize=function(G){g.Co(this.wA,G)||(this.wA=G,this.resize())}; g.W.yb=function(){this.K0&&g.e5(this.K0);this.tI();g.T.prototype.yb.call(this)};g.W=miH.prototype;g.W.click=function(G,B){this.elements.has(G);this.j.has(G);var a=g.y0();a&&G.visualElement&&g.hU(a,G.visualElement,B)}; g.W.createClientVe=function(G,B,a,V){var x=this;V=V===void 0?!1:V;this.elements.has(G);this.elements.add(G);a=HUg(a);G.visualElement=a;var h=g.y0(),e=g.bY();h&&e&&(g.pB("combine_ve_grafts")?yC(jk(),a,e):g.ob(g.Ao)(void 0,h,e,a));B.addOnDisposeCallback(function(){x.elements.has(G)&&x.destroyVe(G)}); V&&this.X.add(G)}; g.W.createServerVe=function(G,B,a){var V=this;a=a===void 0?!1:a;this.elements.has(G);this.elements.add(G);B.addOnDisposeCallback(function(){V.destroyVe(G)}); a&&this.X.add(G)}; g.W.destroyVe=function(G){this.elements.has(G);this.elements.delete(G);this.C.delete(G);this.j.delete(G);this.X.delete(G)}; g.W.vU=function(G,B){this.clientPlaybackNonce!==B&&(this.clientPlaybackNonce=B,bD(jk(),G),I6z(this))}; g.W.setTrackingParams=function(G,B){this.elements.has(G);B&&(G.visualElement=g.E1(B))}; g.W.zt=function(G,B,a){this.elements.has(G);B?this.j.add(G):this.j.delete(G);var V=g.y0(),x=G.visualElement;this.X.has(G)?V&&x&&(B?g.Vp(V,[x]):g.x9(V,[x])):B&&!this.C.has(G)&&(V&&x&&g.ax(V,x,void 0,a),this.C.add(G))}; g.W.hasVe=function(G){return this.elements.has(G)};g.t(g.mj,g.r);g.mj.create=function(G,B,a,V){try{var x=typeof G==="string"?G:"player"+g.ix(G),h=bs[x];if(h){try{h.dispose()}catch(w){g.RA(w)}bs[x]=null}var e=new g.mj(G,B,a,V);e.addOnDisposeCallback(function(){bs[x]=null;e.IP&&e.IP()}); return bs[x]=e}catch(w){throw g.RA(w),(w&&w instanceof Error?w:Error(String(w))).stack;}}; g.W=g.mj.prototype;g.W.xT=function(){return this.visibility}; g.W.aD=function(G){var B=this.mH();if(G!==B){G.getVideoData().autonavState=B.getVideoData().autonavState;B.aU(this.Dv,this);var a=B.getPlaybackRate();B.lF();this.l6.aD(G);G.setPlaybackRate(a);G.dV(this.Dv,this);bCY(this)}}; g.W.pM=function(){this.PH||(this.PH=g.hr($g(),Ufz()));return this.PH}; g.W.tI=function(G){if(this.mediaElement){this.Gv&&(this.events.i6(this.Gv),this.Gv=null);g.nU(this.pK);var B=this.KN();B&&B.tI(!0,!1,G);this.template.tI();try{this.S("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.AO()}catch(a){g.Zb(a)}this.mediaElement=null}}; g.W.dL=function(G,B){if(G!==this.KN()){this.logger.debug(function(){return"start set presenting player, type "+G.getPlayerType()+", vid "+G.getVideoData().videoId}); var a=null,V=this.KN();V&&(a=V.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),fv(this.Y_,3),X5(this,"cuerangesremoved",V.fM()),this.v9&&!G.isGapless()&&V.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),V=G.ZU()&&V.ZU(),this.Ti.xP("iv_s"),ZCA(this,V));G.getPlayerType()===1&&this.aD(G);RPg(this,G);this.l6.dL(G);this.mediaElement&&G.setMediaElement(this.mediaElement);G.dV(this.Dj,this);G.aX()?kux(this,"setPresenting",!1):(this.au("newdata",G,G.getVideoData()), a&&!g.wW(a,G.getPlayerState())&&this.Bi(new g.NR(G.getPlayerState(),a)),B=B&&this.S("html5_player_preload_ad_fix")&&G.getPlayerType()===1,G.uT()&&!B&&this.au("dataloaded",G,G.getVideoData()),(B=(B=G.getVideoData().X)&&B.video)&&this.JX.qD("onPlaybackQualityChange",B.quality),this.KN(),X5(this,"cuerangesadded",G.fM()),B=G.getPlayerState(),g.F(B,2)?SSc(this):g.F(B,8)?G.playVideo():G.WM()&&G.pauseVideo(),B=this.mH(),G.getPlayerType()===2&&(G.getVideoData().kQ=B.getVideoData().clientPlaybackNonce),G.getPlayerType()!== 2||this.Cn()||(a=G.getVideoData(),B.G$(a.clientPlaybackNonce,a.m3||"",a.breakType||0,a.XQ,a.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.W.DF=function(){if(this.mH()!==this.KN()){var G=this.KN();this.logger.debug(function(){return"release presenting player, type "+(G==null?void 0:G.getPlayerType())+", vid "+(G==null?void 0:G.getVideoData().videoId)}); this.dL(this.mH())}}; g.W.jA=function(){return this.l6}; g.W.It=function(G){if(G)if(G===1)G=this.mH();else if(this.getVideoData().enableServerStitchedDai&&G===2)G=this.getVideoData().enablePreroll?this.l6.It(2)||this.KN():this.KN();else if(g.AC(this.getVideoData())&&G===2){if(G=this.S("html5_ssap_return_content_player_during_preroll"))if(G=this.F5)G=this.F5,G=G.Hf===""?!0:G.x$();G=G?this.KN():this.l6.It(2)||this.KN()}else G=this.l6.It(G)||null;else G=this.KN();return G}; g.W.mH=function(){return this.l6.mH()}; g.W.KN=function(){return this.l6.KN()}; g.W.rA=ay(50);g.W.idN=function(){EH(this)||(this.logger.debug("application playback ready"),this.sD(5))}; g.W.BCx=function(G){if(!EH(this)){this.logger.debug("playback ready");WF9(this);var B=G.getPlayerState();G.WM()?this.pauseVideo():B.isOrWillBePlaying()&&this.playVideo()}}; g.W.canPlayType=function(G){return HX(G)}; g.W.U=function(){return this.md}; g.W.getVideoData=function(){return this.KN().getVideoData()}; g.W.Hd=ay(19);g.W.VK=function(){return this.mH().getVideoData()}; g.W.getVideoLoadedFraction=function(G){return(G=this.It(G))?G.getVideoLoadedFraction():this.l6.j.getVideoLoadedFraction()}; g.W.g1=function(){return this.template}; g.W.Ch=function(){return this.Y_}; g.W.PG=function(){return this.Ti}; g.W.qg=function(G){var B=this.It(1);B&&B.Ag(G)}; g.W.G9=function(){var G=this.Y_.G9();this.JX.publish("videoStatsPingCreated",G);return G}; g.W.getVolume=function(){return Math.round(this.JX.getVolume())}; g.W.isMuted=function(){return this.JX.isMuted()}; g.W.LP=function(){if(this.mH()===this.KN()&&this.sf)return this.sf.postId}; g.W.LPS=function(){var G=this;this.S("use_rta_for_player")||(g.yI(this.md)?g.Vm(this.md,g.uv(this.getVideoData())).then(function(B){Xq($g(),B);So9(G.getVideoData(),G.md,G.pM())}):So9(this.getVideoData(),this.md,this.pM()))}; g.W.vK=function(G){this.JX.publish("poTokenVideoBindingChange",G)}; g.W.d$=function(G){this.JX.publish("d6de4videobindingchange",G)}; g.W.lD=function(){this.V2&&this.V2.lD()}; g.W.OT=function(G){this.V2=G}; g.W.Xy=function(G){if(G===1){this.Ti.tick("vr");var B=this.KN();B.YI();ptB(this.Ti,B.getVideoData(),eBV(this));Wjz(this.Y_)}B=this.md;(Gk(B)&&B.W||g.R$(B))&&(this.Cn()||this.JX.qD("onAdStateChange",G))}; g.W.setLoopVideo=function(G){var B=this.KN();B===this.mH()&&B.Y9()!==G&&(B.setLoop(G),this.JX.pN("onLoopChange",G))}; g.W.getLoopVideo=function(){return this.KN().Y9()}; g.W.setLoopRange=function(G){var B=!1;!!this.sf!==!!G?B=!0:this.sf&&G&&(B=this.sf.startTimeMs!==G.startTimeMs||this.sf.endTimeMs!==G.endTimeMs||this.sf.postId!==G.postId||this.sf.type!==G.type);if(B){(B=this.KN())&&V3(B.getVideoData())&&B.FJ("slr",{et:(G==null?void 0:G.endTimeMs)||-1});B=this.mH();B.KD("applooprange");if(G){var a=new g.V1(G.startTimeMs,G.endTimeMs,{id:"looprange",namespace:"applooprange"});B.addCueRange(a)}else{this.VK().clipConfig=void 0;var V;((a=this.sf)==null?void 0:a.type)!== "repeatChapter"||isNaN(Number((V=this.sf)==null?void 0:V.loopCount))||(a={loopCount:String(this.sf.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.wP("repeatChapterLoopEvent",a))}this.sf=G;this.JX.pN("onLoopRangeChange",G||void 0);this.mH()===this.KN()&&(this.lE(),B.jy())}}; g.W.getLoopRange=function(){return this.sf}; g.W.lE=function(){var G="",B=this.mH();this.sf?B!==this.KN()?G="pnea":TnY(this,B.getCurrentTime())&&(this.sf.loopCount=0,G="ilr"):G="nlr";var a=this.KN();if(a&&V3(a.getVideoData()))if(this.S("html5_gapless_log_loop_range_info")){var V,x;a.FJ("slrre",{rej:G,ct:B.getCurrentTime(),lst:(V=this.sf)==null?void 0:V.startTimeMs,let:(x=this.sf)==null?void 0:x.endTimeMs})}else a.FJ("slrre",{});G||ASx(this)}; g.W.setPlaybackRate=function(G,B){if(!isNaN(G)){G=f6c(this,G);var a=this.mH();a.getPlaybackRate()!==G&&(a.setPlaybackRate(G),B&&!this.md.G&&g.D0("yt-player-playback-rate",G),this.JX.qD("onPlaybackRateChange",G))}}; g.W.getCurrentTime=function(G,B,a){B=B===void 0?!0:B;if(this.getPresentingPlayerType()===3)return this.l6.qw.getCurrentTime();var V=G===2&&this.getVideoData().enableServerStitchedDai,x=g.AC(this.getVideoData());G=V||x?this.KN():this.It(G);if(!G)return this.l6.j.getCurrentTime();if(x&&this.F5)return B=this.F5,G=G.getCurrentTime(),a?a=xW(B,a):(a=XcX(B,G),a=G-a/1E3),a;if(B){if(V&&this.a4&&(a=this.a4.GH/1E3,a!==0))return a;a=OH(this,G);return vP(this,a.getCurrentTime(),a)}V&&this.a4?(a=this.a4,G=G.getCurrentTime(), a=(a=WCH(a,G*1E3))?G-a.start/1E3:G):a=G.getCurrentTime();return a}; g.W.Sd=function(){var G=this.It();if(!G)return this.l6.j.Sd();G=OH(this,G);return vP(this,G.Sd(),G)}; g.W.getDuration=function(G,B){B=B===void 0?!0:B;var a=this.getVideoData(),V=G===2&&a.enableServerStitchedDai,x=g.AC(a);var h=V||x?this.KN():this.It(G);if(!h)return this.l6.j.getDuration();if(a.hasProgressBarBoundaries()&&!V&&!x){var e,w=Number((e=a.progressBarStartPosition)==null?void 0:e.utcTimeMillis),K;a=Number((K=a.progressBarEndPosition)==null?void 0:K.utcTimeMillis);if(!isNaN(w)&&!isNaN(a))return(a-w)/1E3}if(x&&this.F5)return B=qxc(this.F5,this.F5.M$()),G===1&&B===0?h.getDuration():B;if(B)return h= UH(this,h),vP(this,h.getDuration(),h);V&&this.a4?(G=this.a4,h=h.getCurrentTime(),h=(h=wcy(G,h*1E3))?h.durationMs/1E3:0):h=h.getDuration();return h}; g.W.lJ=function(G){var B=this.It(G);return B?this.Cn(B)?(B=UH(this,B),B.lJ()-B.getCurrentTime()+this.getCurrentTime(G)):B.lJ():this.l6.j.lJ()}; g.W.Fe=function(){return this.o1}; g.W.addPlayerResponseForAssociation=function(G){this.F5&&this.F5.addPlayerResponseForAssociation(G)}; g.W.finishSegmentByCpn=function(G,B,a){return this.F5?this.F5.finishSegmentByCpn(G,B,a):[]}; g.W.mB=function(){this.template.mB();var G=this.JX;G.state.element=this.template.element;var B=G.state.element,a;for(a in G.state.j)G.state.j.hasOwnProperty(a)&&(B[a]=G.state.j[a]);(G=A8B(this.template.element))&&this.events.K(this.template,G,this.onFullscreenChange);this.events.K(window,"resize",this.e7H)}; g.W.getDebugText=function(G){var B=this.mH().Nd(G),a=this.KN(),V=this.mH();if(a&&a!==V){a=a.Nd(G);V=g.m(Object.keys(a));for(var x=V.next();!x.done;x=V.next())x=x.value,B["ad"+x]=a[x];if(G){a=B;V={};if(x=q6(document,"movie_player"))V.bounds=x.getBoundingClientRect(),V["class"]=x.className;x={};var h=g.TF("video-ads");h?(CNx(h,x),x.html=h.outerHTML):x.missing=1;h={};var e=g.TF("videoAdUiSkipContainer"),w=g.TF("ytp-ad-skip-button-container"),K=g.TF("ytp-skip-ad-button"),l=e||w||K;l?(CNx(l,h),h.ima=e? 1:0,h.bulleit=w?1:0,h.component=K?1:0):h.missing=1;V=JSON.stringify({player:V,videoAds:x,skipButton:h});a.ad_skipBtnDbgInfo=V}}G&&this.mediaElement&&(B["0sz"]=""+(+zF(this.mediaElement.getSize())===0),B.op=this.mediaElement.rg("opacity"),a=this.mediaElement.HM().y+this.mediaElement.getSize().height,B.yof=""+(+a<=0),B.dis=this.mediaElement.rg("display"));G&&((G=(0,g.bS)())&&(B.gpu=G),(G=this.md.playerStyle)&&(B.ps=G),this.md.qB&&(B.webview=1));B.debug_playbackQuality=this.JX.getPlaybackQuality(1); B.debug_date=(new Date).toString();B.origin=window.origin;B.timestamp=Date.now();delete B.uga;delete B.q;return JSON.stringify(B,null,2)}; g.W.getFeedbackProductData=function(){var G={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.U().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20250304_00_RC00"},B=this.getPlayerStateObject().CR;B&&(G.player_error_code=B.errorCode,G.player_error_details=JSON.stringify(B.errorDetail));return G}; g.W.getPresentingPlayerType=function(G){if(this.appState===1)return 1;if(EH(this))return 3;var B;if(G&&((B=this.a4)==null?0:B.x$(this.getCurrentTime())))return 2;var a;return g.AC(this.getVideoData())&&((a=this.F5)==null?0:a.x$())?2:this.KN().getPlayerType()}; g.W.oW=function(){return g.AC(this.getVideoData())&&this.F5?this.F5.oW():!1}; g.W.getPlayerStateObject=function(G){return this.getPresentingPlayerType()===3?this.l6.qw.getPlayerState():this.It(G).getPlayerState()}; g.W.getAppState=function(){return this.appState}; g.W.l5=function(G){switch(G.type){case "loadedmetadata":this.q3.start();G=g.m(this.Lv);for(var B=G.next();!B.done;B=G.next())B=B.value,xwB(this,B.id,B.BJN,B.AIl,void 0,!1);this.Lv=[];break;case "loadstart":this.Ti.xP("gv");break;case "progress":case "timeupdate":lV(G.target.yk())>=2&&this.Ti.xP("l2s");break;case "playing":g.o$&&this.q3.start();if(g.yI(this.md))G=!1;else{var a=this.KN();B=g.vE(this.Ch());G=this.mediaElement.rg("display")==="none"||zF(this.mediaElement.getSize())===0;var V=t7(this.template), x=a.getVideoData();a=g.rv(this.md);x=xX(x);B=!V||B||a||x||this.md.Dx;G=G&&!B}G&&(G=this.KN(),G.Uj(),this.getVideoData().Cd||(this.getVideoData().Cd=1,this.g5(),G.playVideo()))}}; g.W.onLoadProgress=function(G,B){this.JX.Ff("onLoadProgress",B)}; g.W.AHd=function(){this.JX.publish("playbackstalledatstart")}; g.W.zW=function(G,B){this.JX.publish("sabrCaptionsDataLoaded",G,B)}; g.W.cHb=function(G){var B;(B=this.KN())==null||B.Kv(G)}; g.W.yH1=function(G){var B;(B=this.KN())==null||B.EX(G)}; g.W.onVideoProgress=function(G,B){G=OH(this,G.V5);B=vP(this,G.getCurrentTime(),G);this.JX.qD("onVideoProgress",B);this.md.Bh&&Guz(this,this.visibility.l2())&&this.pauseVideo()}; g.W.onAutoplayBlocked=function(){this.JX.qD("onAutoplayBlocked");var G,B=(G=this.KN())==null?void 0:G.getVideoData();B&&(B.jj=!0);this.S("embeds_enable_autoplay_and_visibility_signals")&&g.co(this.md)&&(G={autoplayBrowserPolicy:Ta(),autoplayIntended:s0(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.wP("embedsAutoplayStatusChanged",G))}; g.W.wnf=function(){this.JX.publish("progresssync")}; g.W.Ai1=function(){this.JX.Ff("onPlaybackPauseAtStart")}; g.W.s01=function(G){if(this.getPresentingPlayerType()===1){g.CY(G,1)&&!g.F(G.state,64)&&this.VK().isLivePlayback&&this.mH().isAtLiveHead()&&this.JX.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.CY(G,2)){if(this.sf&&this.sf.endTimeMs>=(this.getDuration()-1)*1E3){ASx(this);return}SSc(this)}if(g.F(G.state,128)){var B=G.state;this.cancelPlayback(5);B=B.CR;JSON.stringify({errorData:B,debugInfo:this.getDebugText(!0)});this.JX.qD("onError",FgK(B.errorCode));this.JX.Ff("onDetailedError",{errorCode:B.errorCode, errorDetail:B.errorDetail,message:B.errorMessage,messageKey:B.kN,cpn:B.cpn});(0,g.yT)()-this.md.MD>6048E5&&this.JX.Ff("onReloadRequired")}B={};if(G.state.isPlaying()&&!G.state.isBuffering()&&!QD("pbresume","ad_to_video")&&QD("_start","ad_to_video")){var a=this.getVideoData();B.clientPlaybackNonce=a.clientPlaybackNonce;a.videoId&&(B.videoId=a.videoId);g.qO(B,"ad_to_video");X_("pbresume",void 0,"ad_to_video");Wjz(this.Y_)}this.JX.publish("applicationplayerstatechange",G)}}; g.W.Bi=function(G){this.getPresentingPlayerType()!==3&&this.JX.publish("presentingplayerstatechange",G)}; g.W.hI=function(G){pl(this,l3(G.state));g.F(G.state,1024)&&this.JX.isMutedByMutedAutoplay()&&(fl(this,{muted:!1,volume:this.NL.volume},!1),HP(this,!1))}; g.W.VM=function(G,B,a){G==="newdata"&&bCY(this);this.JX.publish("applicationvideodatachange",G,a)}; g.W.O0=function(G,B){this.JX.Ff("onPlaybackAudioChange",this.JX.getAudioTrack().VW.name);this.JX.publish("internalaudioformatchange",this.JX.getAudioTrack().VW.id,B)}; g.W.Nb=function(G){var B=this.KN().getVideoData();G===B&&this.JX.qD("onPlaybackQualityChange",G.X.video.quality)}; g.W.Yg=function(){var G=this.l6.It(2);if(G){var B=G.getVideoData();G=G.ZS();var a;(a=this.KN())==null||a.FJ("ssdai",{cleanaply:1,acpn:B==null?void 0:B.clientPlaybackNonce,avid:B.videoId,ccpn:G,sccpn:this.VK().clientPlaybackNonce===G?1:0,isDai:this.VK().enableServerStitchedDai?1:0});delete this.l6.C[2]}}; g.W.onVideoDataChange=function(G,B,a){this.au(G,B.V5,a)}; g.W.au=function(G,B,a){this.KN();this.logger.debug(function(){return"on video data change "+G+", player type "+B.getPlayerType()+", vid "+a.videoId}); this.md.Ef()&&B.FJ("vdc",{type:G,vid:a.videoId||"",cpn:a.clientPlaybackNonce||""});B===this.mH()&&(this.md.M9=a.oauthToken);if(B===this.mH()){this.getVideoData().enableServerStitchedDai&&!this.a4?(this.mH().FJ("sdai",{initSstm:1}),this.a4=this.S("html5_enable_ssdai_transition_with_only_enter_cuerange")?new O5V(this.JX,this.md,this.mH(),this):new g.Fe(this.JX,this.md,this.mH(),this)):!this.getVideoData().enableServerStitchedDai&&this.a4&&(this.a4.dispose(),this.a4=null);var V,x;!g.AC(this.getVideoData())|| G!=="newdata"&&G!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((V=this.o1.j)==null?void 0:(x=V.getVideoData())==null?void 0:x.clientPlaybackNonce)?!g.AC(this.getVideoData())&&this.F5&&(this.F5.dispose(),this.F5=null):(i3z(this.o1),this.S("html5_ssap_cleanup_ad_player_on_new_data")&&this.Yg(),V=T1(this.o1,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.o1.enqueue(V,!0),Lk(this.o1,0,this.getDuration(1)*1E3,[V]),Pt9(this.o1,this.getVideoData().clientPlaybackNonce,[V]),this.F5&&(this.F5.dispose(), this.F5=null),this.F5=new f2b(this.JX,this.o1,this.mH()),this.l6.mH().hg(this.F5))}if(G==="newdata")this.logger.debug("new video data, destroy modules"),fv(this.Y_,2),this.JX.publish("videoplayerreset",B);else{if(!this.mediaElement)return;G==="dataloaded"&&(this.mH()===this.KN()?(qq(a.Rn,a.ma),qSA(this)):$ix(this));B.getPlayerType()===1&&(this.md.SJ&&dwV(this),this.getVideoData().isLivePlayback&&!this.md.PE&&this.ZB("html5.unsupportedlive",2,"DEVICE_FALLBACK"),a.isLoaded()&&((Vz9(a)||this.getVideoData().fZ)&& this.JX.publish("legacyadtrackingpingchange",this.getVideoData()),a.hasProgressBarBoundaries()&&iC_(this)));this.JX.publish("videodatachange",G,a,B.getPlayerType())}this.JX.qD("onVideoDataChange",{type:G,playertype:B.getPlayerType()});this.lE();(V=a.Bw)?this.bI.vU(V,a.clientPlaybackNonce):I6z(this.bI)}; g.W.Ae=function(){bF(this,null);this.JX.Ff("onPlaylistUpdate")}; g.W.Ken=function(G){delete this.HT[G.getId()];this.mH().removeCueRange(G);a:{G=this.getVideoData();var B,a,V,x,h,e,w,K,l,k,N=((B=G.SJ)==null?void 0:(a=B.contents)==null?void 0:(V=a.singleColumnWatchNextResults)==null?void 0:(x=V.autoplay)==null?void 0:(h=x.autoplay)==null?void 0:h.sets)||((e=G.SJ)==null?void 0:(w=e.contents)==null?void 0:(K=w.twoColumnWatchNextResults)==null?void 0:(l=K.autoplay)==null?void 0:(k=l.autoplay)==null?void 0:k.sets);if(N)for(B=g.m(N),a=B.next();!a.done;a=B.next())if(a= a.value,x=V=void 0,a=a.autoplayVideo||((V=a.autoplayVideoRenderer)==null?void 0:(x=V.autoplayEndpointRenderer)==null?void 0:x.endpoint),V=g.u(a,g.o0),h=x=void 0,a!=null&&((x=V)==null?void 0:x.videoId)===G.videoId&&((h=V)==null?0:h.continuePlayback)){G=a;break a}G=null}(B=g.u(G,g.o0))&&this.JX.pN("onPlayVideo",{sessionData:{autonav:"1",itct:G==null?void 0:G.clickTrackingParams},videoId:B.videoId,watchEndpoint:B})}; g.W.sD=function(G){var B=this;G!==this.appState&&(this.logger.debug(function(){return"app state change "+B.appState+" -> "+G}),G===2&&this.getPresentingPlayerType()===1&&(pl(this,-1),pl(this,5)),this.appState=G,this.JX.publish("appstatechange",G))}; g.W.ZB=function(G,B,a,V,x){this.mH().Ev(G,B,a,V,x)}; g.W.G6=function(G,B){this.mH().handleError(new yH(G,B))}; g.W.isAtLiveHead=function(G,B){B=B===void 0?!1:B;var a=this.It(G);if(!a)return this.l6.j.isAtLiveHead();G=UH(this,a);a=OH(this,a);return G!==a?G.isAtLiveHead(vP(this,a.getCurrentTime(),a),!0):G.isAtLiveHead(void 0,B)}; g.W.lh=function(){var G=this.It();return G?UH(this,G).lh():this.l6.j.lh()}; g.W.seekTo=function(G,B,a,V,x){B=B!==!1;if(V=this.It(V))this.appState===2&&cP(this),this.Cn(V)?Ds(this)?this.a4.seekTo(G,{seekSource:x},B,a):this.EZ.seekTo(G,{seekSource:x},B,a):g.AC(this.getVideoData())&&this.F5?this.F5.seekTo(G,{RF:!B,uD:a,Tt:"application",seekSource:x}):V.seekTo(G,{RF:!B,uD:a,Tt:"application",seekSource:x})}; g.W.seekBy=function(G,B,a,V){this.seekTo(this.getCurrentTime()+G,B,a,V)}; g.W.gU=function(){this.JX.qD("SEEK_COMPLETE")}; g.W.Oq=function(){this.JX.pN("onAbnormalityDetected")}; g.W.onSnackbarMessage=function(G){this.JX.pN("onSnackbarMessage",G)}; g.W.RVd=function(G,B){G=G.V5;var a=G.getVideoData();if(this.appState===1||this.appState===2)a.startSeconds=B;this.appState===2?g.F(G.getPlayerState(),512)||cP(this):this.JX.qD("SEEK_TO",B)}; g.W.onAirPlayActiveChange=function(){this.JX.publish("airplayactivechange");this.md.S("html5_external_airplay_events")&&this.JX.Ff("onAirPlayActiveChange",this.JX.vG())}; g.W.onAirPlayAvailabilityChange=function(){this.JX.publish("airplayavailabilitychange");this.md.S("html5_external_airplay_events")&&this.JX.Ff("onAirPlayAvailabilityChange",this.JX.SN())}; g.W.showAirplayPicker=function(){var G;(G=this.KN())==null||G.WE()}; g.W.g4=function(){this.JX.publish("beginseeking")}; g.W.j1=function(){this.JX.publish("endseeking")}; g.W.getStoryboardFormat=function(G){return(G=this.It(G))?UH(this,G).getStoryboardFormat():this.l6.j.getStoryboardFormat()}; g.W.Q_=function(G){return(G=this.It(G))?UH(this,G).getVideoData().Q_():this.l6.j.Q_()}; g.W.Cn=function(G){G=G||this.KN();var B=!1;if(G){G=G.getVideoData();if(Ds(this))G=G===this.a4.playback.getVideoData();else a:if(B=this.EZ,G===B.j.getVideoData()&&B.X.length)G=!0;else{B=g.m(B.X);for(var a=B.next();!a.done;a=B.next())if(G.YW===a.value.YW){G=!0;break a}G=!1}B=G}return B}; g.W.Uz=function(G,B,a,V,x,h,e){this.logger.debug(function(){return"Adding video to timeline id="+G.video_id+"\n lengthMs="+V+" enterTimeMs="+x}); var w="",K=Ds(this),l;(l=this.KN())==null||l.FJ("appattl",{sstm:this.a4?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:K});w=K?eVB(this.a4,G,B,a,V,x,h,e):Yx_(this.EZ,G,a,V,x,h);this.logger.debug(function(){return"Video added to timeline id="+G.video_id+" timelinePlaybackId="+w}); return w}; g.W.TQ=function(G,B,a,V,x,h,e){if(Ds(this)){var w=eVB(this.a4,G,B,a,V,x,h,e);this.logger.debug(function(){return"Remaining video added to timeline id="+G.video_id+" timelinePlaybackId="+w})}return""}; g.W.F4=function(G){var B;(B=this.a4)==null||B.F4(G)}; g.W.mO=function(G,B){G=G===void 0?-1:G;B=B===void 0?Infinity:B;Ds(this)||xiX(this.EZ,G,B)}; g.W.G3=function(G,B,a){if(Ds(this)){var V=this.a4,x=V.YD.get(G);x?(a===void 0&&(a=x.rC),x.durationMs=B,x.rC=a):V.oM("Invalid_timelinePlaybackId_"+G+"_specified")}else{V=this.EZ;x=null;for(var h=g.m(V.X),e=h.next();!e.done;e=h.next())if(e=e.value,e.YW===G){x=e;break}x?(a===void 0&&(a=x.rC),ViK(V,x,B,a)):h7(V,"InvalidTimelinePlaybackId timelinePlaybackId="+G)}}; g.W.enqueueVideoByPlayerVars=function(G,B,a,V){a=a===void 0?Infinity:a;V=V===void 0?"":V;this.Cn();G=new g.Tk(this.md,G);V&&(G.YW=V);PZc(this,G,B,a)}; g.W.queueNextVideo=function(G,B,a,V,x){a=a===void 0?NaN:a;G=this.preloadVideoByPlayerVars(G,B===void 0?1:B,a,V===void 0?"":V,x===void 0?"":x);B=this.KN();G&&B&&(this.S("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&B.getVideoData().V&&(a=this.Mc,V=this.v9.W,a.G!==G&&(a.X=B,a.G=G,a.C=1,a.j=G.getVideoData(),a.B=V,a.j.isLoaded()?a.L():a.j.subscribe("dataloaded",a.L,a))):(a=yH_(B,G,this.v9.W),a!=null?(B.FJ("sgap",a),B.getVideoData().V&&B.fQ(!1)):(G=G.getVideoData(),B=this.Mc,B.j!== G&&(B.j=G,B.C=1,G.isLoaded()?B.W():B.j.subscribe("dataloaded",B.W,B)))))}; g.W.Co=function(G,B,a,V){var x=this;a=a===void 0?0:a;V=V===void 0?0:V;var h=this.KN();h&&UH(this,h).PT();Xeb(this.v9,G,B,a,V).then(function(){x.JX.Ff("onQueuedVideoLoaded")},function(){})}; g.W.AI=function(){return this.v9.AI()}; g.W.FG=function(G){return this.v9.j===G.V5}; g.W.clearQueue=function(G,B){G=G===void 0?!1:G;B=B===void 0?!1:B;this.logger.debug("Clearing queue");this.v9.clearQueue(G,B)}; g.W.loadVideoByPlayerVars=function(G,B,a,V,x,h){B=B===void 0?1:B;var e=this.mH();if(B===2&&this.VK().enableServerStitchedDai&&e&&!e.Oa())return e.FJ("lvonss",{vid:(G==null?void 0:G.videoId)||"",ptype:B}),!1;var w=!1;e=new g.Tk(this.md,G);e.reloadPlaybackParams=h;g.Po(this.md)&&!e.Ds&&zJ(this.Ti);var K;h=this.Ti;var l=(K=e.qB)!=null?K:"";h.timerName=l;this.Ti.S6("pl_i");this.S("web_player_early_cpn")&&e.clientPlaybackNonce&&this.Ti.infoGel({clientPlaybackNonce:e.clientPlaybackNonce});if(fry(e).supportsVp9Encoding=== !1){var k;(k=this.KN())==null||k.FJ("noVp9",{})}if(this.U().supportsGaplessShorts()){K=uHX(this.v9,e,B);if(K==null){pl(this,-1);G=this.v9;G.app.U().S("html5_gapless_new_slr")?FxH(G.app,"gaplessshortslooprange"):G.app.setLoopRange(null);G.app.getVideoData().Ez=!0;var N;(N=G.j)==null||N.E7();var d;(d=G.j)==null||d.cV();a={Tt:"gapless_to_next_video",seekSource:60};V=g.kf(G.app.U().experiments,"html5_gapless_seek_offset");var C;(C=G.app.KN())==null||C.seekTo(qR_(G)+V,a);if(!G.app.getPlayerStateObject(B).isPlaying()){var z; (z=G.app.KN())==null||z.playVideo(!0)}if(G.app.U().S("html5_short_gapless_unlisten_after_seek")){var p;(p=G.app.KN())==null||p.Z4()}G.L();return!0}C=this.S("html5_shorts_gapless_preload_fallback");z=this.v9.j;C&&z&&!z.s0()&&(p=z.getVideoData(),p=this.md.S("html5_autonav_autoplay_in_preload_key")?Rm(this,B,p):Zs(this,B,p.videoId,p.YW),this.l6.X.set(p,z,3600));this.v9.clearQueue(C);var O;(O=this.KN())==null||O.FJ("sgap",{f:K})}if(x){for(;e.gB.length&&e.gB[0].isExpired();)e.gB.shift();w=e.gB.length- 1;w=w>0&&x.X(e.gB[w])&&x.X(e.gB[w-1]);e.gB.push(x)}a||(G&&jHg(G)?(F6(this.md)&&!this.ES&&(G.fetch=0),bF(this,G)):this.playlist&&bF(this,null),G&&(this.ES=aP(!1,G.external_list)));this.JX.publish("loadvideo");B=this.Um(e,B,V);w&&this.ZB("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+e.gB.join()).replace(/[;:,]/g,"_"));return B}; g.W.preloadVideoByPlayerVars=function(G,B,a,V,x){B=B===void 0?1:B;a=a===void 0?NaN:a;V=V===void 0?"":V;x=x===void 0?"":x;var h="";if(this.md.S("html5_autonav_autoplay_in_preload_key"))h=MiY(this,B,G,x);else{var e=WH(G);h=Zs(this,B,e,x)}if(this.l6.X.get(h))return this.logger.debug(function(){return"already preloaded "+h}),null; G=new g.Tk(this.md,G);x&&(G.YW=x);return oPb(this,G,B,a,V)}; g.W.setMinimized=function(G){this.visibility.setMinimized(G);(G=lsV(this.Y_))&&(this.isMinimized()?G.load():G.unload());this.JX.publish("minimized")}; g.W.setInline=function(G){this.visibility.setInline(G)}; g.W.setInlinePreview=function(G){this.visibility.setInline(G)}; g.W.Bq=function(G){B9K(this,G)||this.visibility.Bq(G)}; g.W.setSqueezeback=function(G){this.visibility.setSqueezeback(G)}; g.W.My=function(){var G,B=(G=this.mediaElement)==null?void 0:G.dO();B&&(this.md.M4&&document.exitFullscreen().catch(function(){}),IP(B).catch(function(a){g.Zb(a)}))}; g.W.vFl=function(){this.mediaElement.dO();this.mediaElement.dO().webkitPresentationMode==="picture-in-picture"?this.Bq(!0):this.Bq(!1)}; g.W.togglePictureInPicture=function(){var G=this.KN();G&&G.togglePictureInPicture()}; g.W.Um=function(G,B,a){B=B===void 0?1:B;this.logger.debug(function(){return"start load video, id "+G.videoId+", type "+B}); QD("_start",this.Ti.timerName)||g.ob(v4)(void 0,this.Ti.timerName);var V=!1,x=LxY(this,B,G,!1);x?(V=!0,G.dispose()):(x=Im(this,B,G,!0,a),(this.S("html5_onesie")||this.S("html5_load_before_stop"))&&x.nZ()&&x.iq(),this.q3.stop(),B===1&&B!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,B),this.dL(x));x===this.mH()&&(this.md.M9=G.oauthToken);if(!x.nZ())return!1;if(x===this.mH())return this.sD(1),a=cP(this),V&&this.S("html5_player_preload_ad_fix")&&x.getPlayerType()===1&& x.uT()&&this.au("dataloaded",x,x.getVideoData()),a;x.D4();return!0}; g.W.cueVideoByPlayerVars=function(G,B){var a=this;B=B===void 0?1:B;var V=this.mH();if(this.VK().enableServerStitchedDai&&V&&!V.Oa()&&G&&Object.keys(G).length>0)V.FJ("qvonss",{vid:(G==null?void 0:G.videoId)||"",ptype:B});else if(G&&jHg(G))if(this.IX=!0,bF(this,G),(G=g.ta(this.playlist))&&G.I4())$W(this,G,B);else this.playlist.onReady(function(){yV(a)}); else{B||(B=this.getPresentingPlayerType());B===1&&this.Ae();V=new g.Tk(this.md,G);var x=g.co(this.md)&&!this.md.XJ&&B===1&&!V.isAd()&&!V.m3;this.JX.publish("cuevideo");x?(this.KN().getVideoData().loading=!0,vL9(V,G?G:{}).then(function(h){$W(a,h,B)}),V.dispose()):$W(this,V,B)}}; g.W.a9=function(G,B,a,V,x,h,e){if(!G&&!a)throw Error("Playback source is invalid");if(fI(this.md)||g.jQ(this.md))return B=B||{},B.lact=cD(),B.vis=this.JX.getVisibilityState(),this.JX.pN("onPlayVideo",{videoId:G,watchEndpoint:h,sessionData:B,listId:a}),!1;OkB(this.Ti);this.Ti.reset();G={video_id:G};V&&(G.autoplay="1");V&&(G.autonav="1");h&&(G.player_params=h.playerParams);e&&(G.oauth_token=e);a?(G.list=a,this.loadPlaylist(G)):this.loadVideoByPlayerVars(G,1);return!0}; g.W.cuePlaylist=function(G,B,a,V){this.IX=!0;a3A(this,G,B,a,V)}; g.W.loadPlaylist=function(G,B,a,V){this.IX=!1;a3A(this,G,B,a,V)}; g.W.aA=function(){return this.JX.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.pk())}; g.W.CK=ay(13); g.W.nextVideo=function(G,B){var a=g.Mk(this.mH().getVideoData());g.RJ(this.JX)&&a?this.a9(a.videoId,B?a.S2:a.sessionData,a.playlistId,B,void 0,a.Sb||void 0):this.ES?this.JX.Ff("onPlaylistNext"):this.getPresentingPlayerType()===3?nb(this.Y_).nextVideo():!this.playlist||F6(this.md)&&!this.JX.isFullscreen()||(this.playlist.pk(G)&&c_z(this.playlist,bkg(this.playlist)),this.playlist.loaded?(G=B&&this.md.S("html5_player_autonav_logging"),B&&this.JX.publish("playlistautonextvideo"),this.Um(g.ta(this.playlist,void 0, B,G),1)):this.IX=!1)}; g.W.previousVideo=function(G){this.ES?this.JX.Ff("onPlaylistPrevious"):this.getPresentingPlayerType()===3?nb(this.Y_).cT():!this.playlist||F6(this.md)&&!this.JX.isFullscreen()||(this.playlist.Ky(G)&&c_z(this.playlist,y__(this.playlist)),this.playlist.loaded?this.Um(g.ta(this.playlist),1):this.IX=!1)}; g.W.playVideoAt=function(G){this.ES?this.JX.Ff("onPlaylistIndex",G):this.playlist&&(this.playlist.loaded?this.Um(g.ta(this.playlist,G),1):this.IX=!1,c_z(this.playlist,G))}; g.W.getPlaylist=function(){return this.playlist}; g.W.F$=ay(25);g.W.GtB=function(G){this.JX.qD("onCueRangeEnter",G.getId())}; g.W.ktJ=function(G){this.JX.qD("onCueRangeExit",G.getId())}; g.W.eX=function(){var G=g.c$(this.Ch());G&&G.eX()}; g.W.Dq=function(G,B,a){var V=this.It(B);if(V){var x=this.VK();if(g.AC(x)){if(this.F5)if(this.S("html5_ssap_enable_cpn_triggered_media_end")&&V.getPlayerType()===2&&this.F5.x$()&&(V=this.mH()),B===1)for(var h=Sj(this.F5,x.clientPlaybackNonce),e=g.m(G),w=e.next();!w.done;w=e.next())w=w.value,w.start+=h,w.end+=h,w.Y1=h,w.C=x.clientPlaybackNonce;else if(this.S("html5_ssap_enable_cpn_triggered_media_end")&&B===2)for(this.getPresentingPlayerType(),x=g.m(G),h=x.next();!h.done;h=x.next())h.value.C=this.F5.M$(); x=g.m(G);for(h=x.next();!h.done;h=x.next())e=void 0,h.value.playerType=(e=B)!=null?e:1}V.Dq(G,a);B&&this.getPresentingPlayerType()!==B||X5(this,"cuerangesadded",G)}}; g.W.sJ=function(G,B){var a=this.It(B);a&&(a.sJ(G),B&&this.getPresentingPlayerType()!==B||X5(this,"cuerangesremoved",G))}; g.W.WB=function(G){var B=this.KN()||this.mH(),a=this.getPresentingPlayerType();return this.S("html5_ssap_enable_cpn_triggered_media_end")?B.WB(a,G):B.WB(a)}; g.W.fXf=function(){function G(){var V=B.screenLayer||(B.isMinimized()?3:0),x=g.y0(V);if(x&&x!=="UNDEFINED_CSN"){var h=B.md.S("web_player_attach_player_response_ve"),e=B.md.S("web_playback_associated_ve");V={cpn:B.getVideoData().clientPlaybackNonce,csn:x};B.getVideoData().Zx&&(h||e)&&(h=g.E1(B.getVideoData().Zx),g.ax(x,h),e&&(V.playbackVe=h.getAsJson()));B.getVideoData().queueInfo&&(V.queueInfo=B.getVideoData().queueInfo);x={};B.S("web_playback_associated_log_ctt")&&B.getVideoData().L&&(x.cttAuthInfo= {token:B.getVideoData().L,videoId:B.getVideoData().videoId});g.wP("playbackAssociated",V,x)}else g.Zb(new g.FI("CSN Missing or undefined during playback association"))} var B=this,a=this.KN();this.getPresentingPlayerType();ptB(this.Ti,a.getVideoData(),eBV(this));jP(this)&&this.md.G&&Zw(this.VK())==="embedded"&&this.FB&&Math.random()<.01&&g.wP("autoplayTriggered",{intentional:this.intentionalPlayback});this.FB=!1;Wjz(this.Y_);this.S("web_player_defer_ad")&&XyB(this);this.JX.Ff("onPlaybackStartExternal");(this.md.S("mweb_client_log_screen_associated"),u0(this.md))||G();a={};this.getVideoData().L&&(a.cttAuthInfo={token:this.getVideoData().L,videoId:this.getVideoData().videoId}); a.sampleRate=20;u1("player_att",a);if(this.getVideoData().botguardData||this.S("fetch_att_independently"))g.YF(this.md)||YD(this.md)==="MWEB"?g.PH(g.Me(),function(){nl(B)}):nl(this); this.lE();JS_(this);this.S("embeds_enable_autoplay_and_visibility_signals")&&g.co(this.md)&&(a={autoplayBrowserPolicy:Ta(),autoplayIntended:s0(this.getVideoData()),autoplayStatus:LDz(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.wP("embedsAutoplayStatusChanged",a))}; g.W.LO=function(){this.JX.publish("internalAbandon");SP(this)}; g.W.onApiChange=function(){var G=this.KN();this.md.W&&G?this.JX.qD("onApiChange",G.getPlayerType()):this.JX.qD("onApiChange")}; g.W.o_J=function(){var G=this.mediaElement;G={volume:g.eH(Math.floor(G.getVolume()*100),0,100),muted:G.tL()};G.muted||HP(this,!1);this.NL=g.fo(G);this.JX.qD("onVolumeChange",G)}; g.W.mutedAutoplay=function(G){var B=this.getVideoData().videoId;isNaN(this.xL)&&(this.xL=this.getVideoData().startSeconds);if((G==null?0:G.videoId)||B)this.loadVideoByPlayerVars({video_id:(G==null?0:G.videoId)?G==null?void 0:G.videoId:B,playmuted:!0,start:this.xL,muted_autoplay_duration_mode:G==null?void 0:G.durationMode}),this.JX.Ff("onMutedAutoplayStarts")}; g.W.onFullscreenChange=function(){var G=w8y(this);this.CG(G?1:0);l3B(this,!!G)}; g.W.CG=function(G){var B=!!G,a=!!this.gA()!==B;this.visibility.CG(G);this.template.CG(B);this.S("html5_media_fullscreen")&&!B&&this.mediaElement&&w8y(this)===this.mediaElement.dO()&&this.mediaElement.tT();this.template.resize();a&&this.Ti.tick("fsc");a&&(this.JX.publish("fullscreentoggled",B),G=this.VK(),B={fullscreen:B,videoId:G.K5||G.videoId,time:this.getCurrentTime()},this.JX.getPlaylistId()&&(B.listId=this.JX.getPlaylistId()),this.JX.qD("onFullscreenChange",B))}; g.W.Oo=function(){return this.visibility.Oo()}; g.W.isFullscreen=function(){return this.visibility.isFullscreen()}; g.W.gA=function(){return this.visibility.gA()}; g.W.e7H=function(){if(this.KN()){var G=this.gA();G!==0&&G!==1||this.CG(w8y(this)?1:0);G=window.screen.width*window.screen.height;var B=window.outerHeight*window.outerWidth;this.md.I1?(this.fV=Math.max(this.fV,G,B),G=B/this.fV<.33,this.visibility.Bq(G),this.md.AY&&B9K(this,G)):this.mediaElement&&Guz(this,B/G<.33)&&this.mediaElement.tT()}}; g.W.FeL=function(G){this.getPresentingPlayerType()!==3&&this.JX.publish("liveviewshift",G)}; g.W.playVideo=function(G,B){this.logger.debug(function(){return"play video, player type "+G}); var a=this.It(G);a?this.appState===2?(g.Po(this.md)&&zJ(this.Ti),cP(this)):g.F(a.getPlayerState(),2)?(B=36,this.getVideoData().IM()&&(B=37),this.seekTo(0,void 0,void 0,void 0,B)):a.playVideo(!1,B):this.l6.j.playVideo(!1,B)}; g.W.pauseVideo=function(G,B){(G=this.It(G))?G.pauseVideo(B):this.l6.j.pauseVideo(B)}; g.W.stopVideo=function(G){G=G===void 0?!1:G;this.logger.debug(function(){return"stop video"}); var B=this.mH().getVideoData(),a=new g.Tk(this.md,{video_id:B.K5||B.videoId,oauth_token:B.oauthToken});a.Y=g.fo(B.Y);var V;!G||(V=this.webPlayerContextConfig)!=null&&V.disableStaleness||(a.DC=!0);this.cancelPlayback(6);$W(this,a,1)}; g.W.cancelPlayback=function(G,B){var a=this;this.logger.debug(function(){return"start cancel playback, type "+B}); var V=this.It(B);V?B===2&&V.getPlayerType()===1&&(sN(this.VK())||g.AC(this.getVideoData()))?V.FJ("canclpb",{r:"no_adpb_ssdai"}):(this.md.Ef()&&V.FJ("canclpb",{r:G}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+a.appState}):(V===this.KN()&&(this.logger.debug("cancel playback, destroy modules"),fv(this.Y_,G)),B===1&&(V.stopVideo(),SP(this)),V.jF(void 0,G!==6),X5(this,"cuerangesremoved",V.fM()),V.kq(),this.v9&&V.isGapless()&&(V.tI(!0), V.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.W.sendVideoStatsEngageEvent=function(G,B,a){(B=this.It(B))&&zDz(this.md,G)?B.sendVideoStatsEngageEvent(G,a):a&&a()}; g.W.BG=function(G){var B=this.It();return B&&zDz(this.md,G)?B.BG(G):null}; g.W.updatePlaylist=function(){!F6(this.md)&&g.co(this.md)&&uly(this);this.JX.Ff("onPlaylistUpdate")}; g.W.setSizeStyle=function(G,B){this.gN=G;this.S("web_log_theater_mode_visibility")?this.xG(B):this.yM=B;this.JX.publish("sizestylechange",G,B);this.template.resize()}; g.W.xG=function(G){this.visibility.xG(G)}; g.W.lY=function(){return this.S("web_log_theater_mode_visibility")?this.visibility.lY():this.yM}; g.W.isMinimized=function(){return this.visibility.isMinimized()}; g.W.isInline=function(){return this.visibility.isInline()}; g.W.l2=function(){return this.visibility.l2()}; g.W.rU=function(){return this.visibility.rU()}; g.W.f8=function(){return this.visibility.f8()}; g.W.XG=function(){return this.gN}; g.W.getAdState=function(){if(this.getPresentingPlayerType()===3)return nb(this.Y_).getAdState();if(!this.Cn()){var G=H$(this.Ch());if(G)return G.getAdState()}return-1}; g.W.Dsb=function(G){var B=this.template.getVideoContentRect();e3(this.MR,B)||(this.MR=B,(B=this.KN())&&B.q4(),(B=this.mH())&&B===this.KN()&&B.q4(),this.gA()===1&&this.Ok&&l3B(this,!0));this.d4&&g.Co(this.d4,G)||(this.JX.publish("appresize",G),this.d4=G)}; g.W.tA=function(){return this.JX.tA()}; g.W.sGX=function(){this.getPresentingPlayerType()===2&&this.EZ.isManifestless()?a6A(this.EZ):(this.a4&&(KCH(this.a4),SP(this)),kux(this,"signature"))}; g.W.PJl=function(G){G&&kux(this,"reloadPlayerEvent",void 0,G)}; g.W.g5=function(G){this.tI(G);gk(this)}; g.W.iDd=function(G){if(G.errorCode==="manifest.net.badstatus"){var B=this.md.experiments.Or("html5_use_network_error_code_enums")?401:"401";G.details.rc===B&&this.JX.pN("onPlayerRequestAuthFailed")}}; g.W.T5=function(G){this.JX.publish("heartbeatparams",G)}; g.W.hO=function(G){this.JX.pN("onAutonavChangeRequest",G!==1)}; g.W.Zc=function(){return this.mediaElement}; g.W.setBlackout=function(G){if(this.md.Dx!==G){this.md.Dx=G;var B=this.KN();B&&(B.jy(),this.md.SJ&&dwV(this),B.Y$(G))}}; g.W.s4N=function(){var G=this.KN();if(G){var B=!this.JX.Jx();G.u0(B)}}; g.W.onLoadedMetadata=function(){this.JX.Ff("onLoadedMetadata")}; g.W.onDrmOutputRestricted=function(){this.JX.Ff("onDrmOutputRestricted")}; g.W.t3=function(){this.intentionalPlayback=!0}; g.W.yb=function(){this.Y_.dispose();this.Wv.dispose();this.EZ.dispose();this.a4&&this.a4.dispose();this.o1.removeAll();this.o1.dispose();this.F5&&this.F5.dispose();this.mH().lF();this.tI();this.l6.dispose();g.wl(this.playlist);g.r.prototype.yb.call(this)}; g.W.S=function(G){return this.md.S(G)}; g.W.setScreenLayer=function(G){this.screenLayer=G}; g.W.getInternalApi=function(){return this.JX.getInternalApi()}; g.W.createSubtitlesModuleIfNeeded=function(){return this.Y_.createSubtitlesModuleIfNeeded()}; g.W.isOrchestrationLeader=function(){var G=DM(this.Y_);return G?G.isOrchestrationLeader():!1}; g.W.getVideoUrl=function(G,B,a,V,x){if(this.sf&&this.sf.postId)return G=this.md.getVideoUrl(G),G=Ft(G,"v"),G.replace("/watch","/clip/"+this.sf.postId);var h=this.JX.isEmbedsShortsMode()||this.md.Zx==="shortspage",e=g.VM(this.getVideoData());return this.md.getVideoUrl(G,B,a,V,x,h,e)}; g.W.JJ=function(){return this.v9.JJ()}; g.W.hh=function(G,B,a){this.JX.publish("spsumpreject",G,B,a)}; g.W.DD=function(){try{for(var G=g.m(Object.values(this.l6.C)),B=G.next();!B.done;B=G.next()){var a=B.value;a.s0()||a.DD()}if(this.S("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var V=g.m(Wxc(this.l6.X)),x=V.next();!x.done;x=V.next()){var h=x.value;h.s0()||h.DD()}this.mH().DD()}catch(e){g.Zb(e)}}; g.W.c7=function(){if(this.a4){var G=(0,g.yT)();return this.a4.c7(G)}return!1}; g.W.wi=function(G){var B=this.mH();G&&(B=zBV(this,G));if(B){var a=B.getVideoData();G=new Map;a=g.m(a.sabrContextUpdates);for(var V=a.next();!V.done;V=a.next()){var x=g.m(V.value);V=x.next().value;x=x.next().value;var h=void 0;x.scope===4&&((h=B)==null?0:h.ZT(V))&&G.set(V,x)}return G}this.mH().FJ("scuget",{ncpf:"1",ccpn:G})}; var bs={};var Z03={wK:[{KF:/Unable to load player module/,weight:20},{KF:/Failed to fetch/,weight:500},{KF:/XHR API fetch failed/,weight:10},{KF:/JSON parsing failed after XHR fetch/,weight:10},{KF:/Retrying OnePlatform request/,weight:10},{KF:/CSN Missing or undefined during playback association/,weight:100},{KF:/Non-recoverable error. Do not retry./,weight:0},{KF:/Internal Error. Retry with an exponential backoff./,weight:0},{KF:/API disabled by application./,weight:0}],mE:[{callback:t8c,weight:500}]};var f3A=/[&\?]action_proxy=1/,nUA=/[&\?]token=([\w-]*)/,HGV=/[&\?]video_id=([\w-]*)/,vUH=/[&\?]index=([\d-]*)/,DwB=/[&\?]m_pos_ms=([\d-]*)/,RBK=/[&\?]vvt=([\w-]*)/,p8A="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),S6B="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),EU9={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"},jOg={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},yzK={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};QV.prototype.SI=function(G){this.player.PG().tick(G)}; QV.prototype.fetch=function(G,B){var a=this;if(!G.match(/\[BISCOTTI_ID\]/g))return this.X(G,B);var V=this.j===1;V&&this.SI("a_bid_s");var x=I3_();if(x!==null)return V&&this.SI("a_bid_f"),this.X(G,B,x);x=gU_();V&&g.pJ(x,function(){a.SI("a_bid_f")}); return x.then(function(h){return a.X(G,B,h)})}; QV.prototype.X=function(G,B,a){var V=this,x=B===void 0?{}:B;B=x.YR;var h=x.uJ;var e=x.cueProcessedMs;a=a===void 0?"":a;var w=this.player.getVideoData(1);x=this.player.U().US;var K=0;if(e&&h&&!B){var l=h.end-h.start;l>0&&(K=Math.floor(l/1E3))}K=B?B.YF:K;var k={AD_BLOCK:this.j++,AD_BREAK_LENGTH:K,AUTONAV_STATE:uF(this.player.U()),CA_TYPE:"image",CPN:w.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.lh()*1E3,LACT:cD(),LIVE_INDEX:B?this.C++:1,LIVE_TARGETING_CONTEXT:B&&B.context?B.context:"",MIDROLL_POS:h? Math.round(h.start/1E3):0,MIDROLL_POS_MS:h?Math.round(h.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.g1().bz().height,P_W:this.player.g1().bz().width,YT_REMOTE:x?x.join(","):""},N=k4(lm);Object.keys(N).forEach(function(C){N[C]!=null&&(k[C.toUpperCase()]=N[C].toString())}); a!==""&&(k.BISCOTTI_ID=a);a={};KB(G)&&(a.sts="20152",(B=this.player.U().forcedExperiments)&&(a.forced_experiments=B));var d=eK(g.fy(G,k),a);return d.split("?").length!==2?Iz(Error("Invalid AdBreakInfo URL")):g.Vm(this.player.U(),w==null?void 0:w.oauthToken).then(function(C){if(C&&w1()){var z=$g();Xq(z,C)}C=V.player.pM(z);z=ZGz(V,d,k,w.isMdxPlayback,e);return g.Al(C,z,"/youtubei/v1/player/ad_break").then(function(p){return p})})}; QV.prototype.reset=function(){this.C=this.j=1};g.t(rzA,QV); rzA.prototype.X=function(G,B,a){B=B===void 0?{}:B;var V=B.YR;var x=B.uJ;var h=B.cueProcessedMs;a=a===void 0?"":a;B=this.j;this.j++;var e=this.player.U().S("h5_disable_macro_substitution_in_get_ad_break")?G:$wb(this,G,{YR:V,uJ:x,cueProcessedMs:h},a,B);if(e.split("?").length!==2)return Math.random()<.1&&g.Zb(Error("Invalid AdBreakInfo URL")),Iz(Error("Invalid AdBreakInfo URL"));var w=this.player.getVideoData(1).isMdxPlayback,K=a;a=nUA.exec(e);a=a!=null&&a.length>=2?a[1]:"";G=f3A.test(e);var l=HGV.exec(e); l=l!=null&&l.length>=2?l[1]:"";var k=vUH.exec(e);k=k!=null&&k.length>=2&&!Number.isNaN(Number(k[1]))?Number(k[1]):1;var N=DwB.exec(e);N=N!=null&&N.length>=2?N[1]:"0";var d=X6(this.player.U().TV),C=g.iy(this.player.getVideoData(1).Zx,!0);OGx(this,C,e,K===""?"":K,this.player.U(),this.player.getVideoData(1));K={splay:!1,lactMilliseconds:String(cD()),playerHeightPixels:Math.trunc(this.player.g1().bz().height),playerWidthPixels:Math.trunc(this.player.g1().bz().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20152,autonavState:uF(this.player.U())};if(w){w={};var z=this.player.U().US;bGy(w,z?z.join(","):"")&&(K.mdxContext=w)}if(w=S6B.includes(d)?void 0:g.r1("PREF")){z=w.split(RegExp("[:&]"));for(var p=0,O=z.length;p1&&b[1].toUpperCase()==="TRUE"){C.user.lockedSafetyMode=!0;break}}K.autoCaptionsDefaultOn=czx(w)}e=RBK.exec(e);(e=e!=null&&e.length>=2?e[1]:"")&&l&&(C.user.credentialTransferTokens= [{token:e,scope:"VIDEO"}]);e={contentPlaybackContext:K};K=this.player.getVideoData(1).getGetAdBreakContext();w=this.player.getVideoData(1).clientPlaybackNonce;z=h!==void 0?Math.round(h).toString():void 0;p=(V==null?0:V.context)?V.context:void 0;O=0;h&&x&&!V&&(x=x.end-x.start,x>0&&(O=Math.floor(x/1E3)));V=(V=Math.trunc((V?V.YF:O)*1E3))?String(V):void 0;x=this.player.lh()*1E3;x=Number.isNaN(x)?0:Math.trunc(x);B={adBlock:B,params:a,breakIndex:k,breakPositionMs:N,clientPlaybackNonce:w,topLevelDomain:d, isProxyAdTagRequest:G,context:C,overridePlaybackContext:e,cueProcessedMs:z,videoId:l?l:void 0,liveTargetingParams:p,breakLengthMs:V,driftFromHeadMs:x?String(x):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:K?K:void 0};return X8B(this,B)};var rkk={Wbl:"replaceUrlMacros",gJx:"onAboutThisAdPopupClosed",V9X:"executeCommand"};q6x.prototype.Ho=function(){return"adPingingEndpoint"}; q6x.prototype.b9=function(G,B,a){ISB(this.BS.get(),G,B,a)};uFB.prototype.Ho=function(){return"changeEngagementPanelVisibilityAction"}; uFB.prototype.b9=function(G){this.T.pN("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:G})};QOx.prototype.Ho=function(){return"loggingUrls"}; QOx.prototype.b9=function(G,B,a){G=g.m(G);for(var V=G.next();!V.done;V=G.next())V=V.value,ISB(this.BS.get(),V.baseUrl,B,a,V.attributionSrcMode)};g.t(T9A,g.r);g.t(TX,g.r);g.W=TX.prototype;g.W.addListener=function(G){this.listeners.push(G)}; g.W.removeListener=function(G){this.listeners=this.listeners.filter(function(B){return B!==G})}; g.W.P0=function(G,B,a,V,x,h,e,w){if(G==="")kN("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(G!==this.j||a){this.j=G;this.fN.get().P0(G,B,a,V,x,h,e,w);this.WS.get().P0(G,B,a,V,x,h,e,w);var K;(K=this.nD)==null||K.get().P0(G,B,a,V,x,h,e,w);this.X.P0(G,B,a,V,x,h,e,w);K=g.m(this.listeners);for(var l=K.next();!l.done;l=K.next())l.value.P0(G,B,a,V,x,h,e,w)}else kN("Duplicate content video loaded signal")}; g.W.LO=function(){this.j&&this.Dt(this.j)}; g.W.Dt=function(G){this.j=void 0;for(var B=g.m(this.listeners),a=B.next();!a.done;a=B.next())a.value.Dt(G)};sH.prototype.s4=function(G,B,a,V,x){sOX(this);this.B=!B&&a===0;var h=this.T.getVideoData(1),e=this.T.getVideoData(2);h&&(this.contentCpn=h.clientPlaybackNonce,this.videoId=h.videoId,this.j=h.L);e&&(this.adCpn=e.clientPlaybackNonce,this.adVideoId=e.videoId,this.adFormat=e.adFormat);this.G=G;V<=0?(sOX(this),this.B=!B&&a===0):(this.actionType=this.B?B?"unknown_type":"video_to_ad":B?"ad_to_video":"ad_to_ad",this.videoStreamType=x?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.C=!0,QD("_start",this.actionType)&&Az9(this)))}; sH.prototype.reset=function(){return new sH(this.T)};g.t(F5,g.r);F5.prototype.addCueRange=function(G,B,a,V,x,h,e){h=h===void 0?3:h;e=e===void 0?1:e;this.j.has(G)?kN("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:G}):(G=new Y6B(G,B,a,V,h),this.j.set(G.id,{uJ:G,listener:x,I9:e}),this.T.z1([G],e))}; F5.prototype.removeCueRange=function(G){var B=this.j.get(G);B?(this.T.FO([B.uJ],B.I9),this.j.delete(B.uJ.id)):kN("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:G})}; F5.prototype.onCueRangeEnter=function(G){if(this.j.has(G.id))this.j.get(G.id).listener.onCueRangeEnter(G.id)}; F5.prototype.onCueRangeExit=function(G){if(this.j.has(G.id))this.j.get(G.id).listener.onCueRangeExit(G.id)}; g.t(Y6B,g.V1);J7.prototype.Xy=function(G){this.T.Xy(G)}; J7.prototype.ez=function(G){var B=g.Hz.apply(1,arguments);G==="onAdStart"||G==="onAdEnd"?this.T.qD.apply(this.T,[G].concat(g.U(B))):this.T.pN.apply(this.T,[G].concat(g.U(B)))};A7.prototype.T1=function(G){return G&&YW(this)};var VF9=null;g.t(aSX,g.wI);aSX.prototype.U3=function(G){return this.j.hasOwnProperty(G)?this.j[G].U3():{}}; g.Qb("ytads.bulleit.getVideoMetadata",function(G){return PP().U3(G)}); g.Qb("ytads.bulleit.triggerExternalActivityEvent",function(G,B,a){var V=PP();a=BDb(a);a!==null&&V.publish(a,{queryId:G,viewabilityString:B})});g.W=om.prototype;g.W.CM=function(G,B){if(!this.j.has(G))return{};if(B==="seek"){B=!1;B=B===void 0?!1:B;var a=n6(Ur).PA(G,{});a?U9(a):B&&(G=n6(Ur).RZ(null,JR(),!1,G),G.aY=3,Mv9([G]));return{}}B=hoK(B);if(B===null)return{};var V=this.T.fK();if(!V)return{};var x=this.T.getPresentingPlayerType(!0);if((a=this.T.getVideoData(x))==null||!a.isAd())return{};a={opt_adElement:V,opt_fullscreen:this.fN.get().isFullscreen()};return Mlc(B,G,a)}; g.W.Pq=function(G,B,a,V,x){this.j.has(G)&&(V<=0||x<=0||n6(Ur).Pq(G,B,a,V,x))}; g.W.AE=function(G){var B;(B=this.j.get(G.queryId))==null||B.AE()}; g.W.Lg=function(G){var B;(B=this.j.get(G.queryId))==null||B.Lg()}; g.W.BF=function(G){var B;(B=this.j.get(G.queryId))==null||B.BF()}; g.W.Q1=function(G){var B;(B=this.j.get(G.queryId))==null||B.Q1()}; g.W.Ta=function(G){var B;(B=this.j.get(G.queryId))==null||B.Ta()};drX.prototype.send=function(G,B,a,V){try{C7X(this,G,B,a,V===void 0?!1:V)}catch(x){}};g.t(zoB,drX);tFx.prototype.send=function(G,B,a,V){var x=!1;try{if(V==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||V==="ATTRIBUTION_SRC_MODE_XHR_OPTION")x=!0,G=phV(G);V=x;var h=G.match(D4);if(h[1]==="https")var e=G;else h[1]="https",e=Ha("https",h[2],h[3],h[4],h[5],h[6],h[7]);var w=dV9(e);h=[];var K=hm9(e)&&this.vS.get().T.U().experiments.Or("add_auth_headers_to_remarketing_google_dot_com_ping");if(KB(e)||K)h.push({headerType:"USER_AUTH"}),h.push({headerType:"PLUS_PAGE_ID"}),h.push({headerType:"VISITOR_ID"}),h.push({headerType:"EOM_VISITOR_ID"}), h.push({headerType:"AUTH_USER"}),h.push({headerType:"DATASYNC_ID"});this.j.send({baseUrl:e,scrubReferrer:w,headers:h},B,a,V)}catch(l){}};Vq.prototype.BG=function(){return this.T.BG(1)};g.t(xw,g.r);g.W=xw.prototype;g.W.wQ=function(){return this.T.getVideoData(1).clientPlaybackNonce}; g.W.addListener=function(G){this.listeners.push(G)}; g.W.removeListener=function(G){this.listeners=this.listeners.filter(function(B){return B!==G})}; g.W.P0=function(){this.OG.clear();this.ZE=null;this.sY.get().clear()}; g.W.Dt=function(){}; g.W.MSl=function(G,B,a,V,x){B.videoId==="nPpU29QrbiU"&&this.T.FJ("ads_ssm_vdc_s",{pt:a,dvt:G});pD(this.vS.get())&&G!=="dataloaded"||bQY(this,B,a);if(YW(this.vS.get())&&G==="newdata"&&x!==void 0){G=this.wQ();var h=B.clientPlaybackNonce,e={};UB(this,"rte",(e.ec=h,e.xc=V==null?void 0:V.clientPlaybackNonce,e.tr=x,e.pt=a,e.ia=h!==G,e.ctp=p1(h),e));B=B.clientPlaybackNonce;V=V==null?void 0:V.clientPlaybackNonce;x=ybA(x);if(x!==1)if(V!==void 0)for(a=g.m(this.listeners),G=a.next();!G.done;G=a.next())G.value.Z2(V, B,x);else kN("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:B,transitionReason:String(x)});x=g.m(this.listeners);for(V=x.next();!V.done;V=x.next())V.value.kh(B)}}; g.W.dDH=function(G,B){G!==void 0&&(this.ZE=G,B===void 0?kN("Expected ad video start time on SS video changed"):this.OG.set(G,B));var a=this.T.getPresentingPlayerType(!0),V=this.T.getVideoData(a);this.T.getVideoData(1).FJ("ads_ssvc",{pt:a,cpn:V==null?void 0:V.clientPlaybackNonce,crtt:this.T.getCurrentTime(1,!1),atlh:this.T.isAtLiveHead(),adstt:B});V?bQY(this,V,a):kN("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.T.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:G})}; g.W.Q5=function(G,B){var a=G.author,V=G.clientPlaybackNonce,x=G.isListed,h=G.YW,e=G.title,w=G.kT,K=G.j9,l=G.isMdxPlayback,k=G.iF,N=G.mdxEnvironment,d=G.isAutonav,C=G.hN,z=G.Ds,p=G.o$,O=G.videoId||"",b=G.profilePicture||"",c=G.dB||"",H=G.IM()||!1,R=G.cn()||!1;G=G.D1||void 0;h=this.sY.get().j.get(h)||{layoutId:null,slotId:null};var q=this.T.getVideoData(1),A=q.SE();q=q.getPlayerResponse();B=1E3*this.T.getDuration(B);var J=1E3*this.T.getDuration(1),xB,Wz,GK=(q==null?void 0:(xB=q.playerConfig)==null? void 0:(Wz=xB.daiConfig)==null?void 0:Wz.enableDai)||!1,Q,M;xB=(q==null?void 0:(Q=q.playerConfig)==null?void 0:(M=Q.daiConfig)==null?void 0:M.enablePreroll)||!1;return Object.assign({},h,{videoId:O,author:a,clientPlaybackNonce:V,M_:B,u2:J,daiEnabled:GK,RO:xB,isListed:x,SE:A,profilePicture:b,title:e,dB:c,kT:w,j9:K,D1:G,isMdxPlayback:l,iF:k,mdxEnvironment:N,isAutonav:d,hN:C,Ds:z,o$:p,IM:H,cn:R})}; g.W.yb=function(){this.listeners.length=0;this.mM=null;g.r.prototype.yb.call(this)};g.t(hN,g.r);g.W=hN.prototype;g.W.P0=function(){var G=this;YW(this.vS.get())||(this.j=dp(function(){G.T.TH()||G.T.Za("ad",1)}))}; g.W.Dt=function(){}; g.W.addListener=function(G){this.listeners.push(G)}; g.W.removeListener=function(G){this.listeners=this.listeners.filter(function(B){return B!==G})}; g.W.Nf=function(){}; g.W.playVideo=function(){this.T.playVideo()}; g.W.pauseVideo=function(){this.T.pauseVideo()}; g.W.resumeVideo=function(G){this.cE(G)&&this.T.playVideo()}; g.W.cE=function(G){return this.T.getPlayerState(G)===2}; g.W.getCurrentTimeSec=function(G,B,a){var V=this.WS.get().ZE;if(G===2&&!B&&V!==null)return ncb(this,V);As(this.vS.get(),"html5_ssap_use_cpn_to_get_time")||(a=void 0);return a!==void 0?this.T.getCurrentTime(G,B,a):this.T.getCurrentTime(G,B)}; g.W.getVolume=function(){return this.T.getVolume()}; g.W.isMuted=function(){return this.T.isMuted()}; g.W.getPresentingPlayerType=function(){return this.T.getPresentingPlayerType(!0)}; g.W.getPlayerState=function(G){return this.T.getPlayerState(G)}; g.W.isFullscreen=function(){return this.T.isFullscreen()}; g.W.isAtLiveHead=function(){return this.T.isAtLiveHead()}; g.W.bX=function(G){this.T.bX(G)}; g.W.xsJ=function(){var G=this.T.getPresentingPlayerType(!0),B=this.getCurrentTimeSec(G,!1);if(G===2){G=g.m(this.listeners);for(var a=G.next();!a.done;a=G.next())a.value.V_(B)}else if(G===1)for(G=g.m(this.CH),a=G.next();!a.done;a=G.next())a.value.Nf(B)}; g.W.h7f=function(G){for(var B=g.m(this.listeners),a=B.next();!a.done;a=B.next())a.value.UA(G,this.getPresentingPlayerType())}; g.W.onFullscreenToggled=function(G){for(var B=g.m(this.listeners),a=B.next();!a.done;a=B.next())a.value.onFullscreenToggled(G)}; g.W.onVolumeChange=function(){for(var G=g.m(this.listeners),B=G.next();!B.done;B=G.next())B.value.onVolumeChange()}; g.W.qH=function(){for(var G=this.T.isMinimized(),B=g.m(this.listeners),a=B.next();!a.done;a=B.next())a.value.qH(G)}; g.W.VH=function(G){for(var B=g.m(this.listeners),a=B.next();!a.done;a=B.next())a.value.VH(G)}; g.W.Df=function(){for(var G=this.T.g1().bz(),B=g.m(this.listeners),a=B.next();!a.done;a=B.next())a.value.H0(G)}; g.W.aM=function(G){for(var B=g.m(this.listeners),a=B.next();!a.done;a=B.next())a.value.aM(G)}; g.W.DU=function(){for(var G=g.m(this.listeners),B=G.next();!B.done;B=G.next())B.value.DU()};g.t(vc9,g.r);g.t(lI,g.r);lI.prototype.yb=function(){this.o9.TH()||this.o9.get().removeListener(this);g.r.prototype.yb.call(this)};kw.prototype.fetch=function(G){var B=G.e0;return this.j.fetch(G.OO,{YR:G.YR===void 0?void 0:G.YR,uJ:B,cueProcessedMs:G.cueProcessedMs===void 0?0:G.cueProcessedMs}).then(function(a){return Drz(a,B)})};g.t(Nx,g.r);g.W=Nx.prototype;g.W.addListener=function(G){this.listeners.push(G)}; g.W.removeListener=function(G){this.listeners=this.listeners.filter(function(B){return B!==G})}; g.W.CT=function(G){SaX(this,G,1)}; g.W.onAdUxClicked=function(G,B){dT(this,function(a){a.bU(G,B)})}; g.W.Pz=function(G){dT(this,function(B){B.sF(G)})}; g.W.pV=function(G){dT(this,function(B){B.fA(G)})}; g.W.HdL=function(G){dT(this,function(B){B.YC(G)})};C7.prototype.reduce=function(G){switch(G.event){case "unknown":return}var B=G.identifier;var a=this.j[B];a?B=a:(a={oA:null,Oe:-Infinity},B=this.j[B]=a);a=G.startSecs+G.j/1E3;if(!(a=this.j.startSecs&&a.startSecs<=this.j.startSecs+this.j.YF)){var V=void 0;if(iF(this.vS.get())&&a.identifier!==((V=this.j)==null?void 0:V.identifier)){var x=V=void 0,h=void 0,e=void 0;Bv(this.BS.get(),"ocud","ccpi."+a.identifier+";ccpe."+a.event+";ccps."+a.startSecs+";\n ccpd."+a.YF+";pcpi."+((V=this.j)==null?void 0:V.identifier)+";pcpe."+ ((x=this.j)==null?void 0:x.event)+";\n pcps."+((h=this.j)==null?void 0:h.startSecs)+";pcpd."+((e=this.j)==null?void 0:e.YF)+";")}V=void 0;a.identifier!==((V=this.j)==null?void 0:V.identifier)&&kN("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.j=a,rbY(this,a)}}; g.W.yb=function(){this.X!=null&&(this.X.unsubscribe("cuepointupdated",this.mU,this),this.X=null);this.listeners.length=0;this.y9.length=0;g.r.prototype.yb.call(this)};tN.prototype.addPlayerResponseForAssociation=function(G){this.T.addPlayerResponseForAssociation(G)};g.W=II.prototype;g.W.Uz=function(G,B,a,V,x,h,e){return this.T.Uz(G,B,a,V,x,h,e)}; g.W.mO=function(G,B){this.T.mO(G,B)}; g.W.G3=function(G,B,a){this.T.G3(G,B,a)}; g.W.F4=function(G){this.T.F4(G)}; g.W.TQ=function(G,B,a,V,x,h,e){this.T.TQ(G,B,a,V,x,h,e)}; g.W.H6=function(G){return this.T.H6(G)}; g.W.finishSegmentByCpn=function(G,B,a){a=uAV(a);this.T.finishSegmentByCpn(G,B,a)};g.t(LAz,g.r);g.t(TDH,g.r);g.t(sdg,g.r);g.t(FAA,g.r);g.t(Jbx,g.r);g.t(YaB,g.r);YaB.prototype.C=function(){return this.X};g.t(iQB,Tn); iQB.prototype.G=function(G){var B=G.content;if(B.componentType==="shopping-companion")switch(G.actionType){case 1:case 2:G=this.j.getVideoData(1);this.j.pN("updateKevlarOrC3Companion",{contentVideoId:G&&G.videoId,shoppingCompanionCarouselRenderer:B.renderer,layoutId:B.layoutId,macros:B.macros,onLayoutVisibleCallback:B.j,interactionLoggingClientData:B.interactionLoggingClientData});break;case 3:this.j.pN("updateKevlarOrC3Companion",{})}else if(B.componentType==="action-companion")switch(G.actionType){case 1:case 2:G=this.j.getVideoData(1); this.j.pN("updateKevlarOrC3Companion",{contentVideoId:G&&G.videoId,actionCompanionAdRenderer:B.renderer,layoutId:B.layoutId,macros:B.macros,onLayoutVisibleCallback:B.j,interactionLoggingClientData:B.interactionLoggingClientData});break;case 3:B.renderer&&(B=this.j.getVideoData(1),this.j.pN("updateKevlarOrC3Companion",{contentVideoId:B&&B.videoId})),this.j.pN("updateKevlarOrC3Companion",{})}else if(B.componentType==="image-companion")switch(G.actionType){case 1:case 2:G=this.j.getVideoData(1);this.j.pN("updateKevlarOrC3Companion", {contentVideoId:G&&G.videoId,imageCompanionAdRenderer:B.renderer,layoutId:B.layoutId,macros:B.macros,onLayoutVisibleCallback:B.j,interactionLoggingClientData:B.interactionLoggingClientData});break;case 3:B=this.j.getVideoData(1),this.j.pN("updateKevlarOrC3Companion",{contentVideoId:B&&B.videoId}),this.j.pN("updateKevlarOrC3Companion",{})}else if(B.componentType==="top-banner-image-text-icon-buttoned")switch(G.actionType){case 1:case 2:G=this.j.getVideoData(1);this.j.pN("updateKevlarOrC3Companion", {contentVideoId:G&&G.videoId,topBannerImageTextIconButtonedLayoutViewModel:B.renderer,layoutId:B.layoutId,macros:B.macros,onLayoutVisibleCallback:B.j,interactionLoggingClientData:B.interactionLoggingClientData});break;case 3:B.renderer&&(B=this.j.getVideoData(1),this.j.pN("updateKevlarOrC3Companion",{contentVideoId:B&&B.videoId})),this.j.pN("updateKevlarOrC3Companion",{})}else if(B.componentType==="banner-image")switch(G.actionType){case 1:case 2:G=this.j.getVideoData(1);this.j.pN("updateKevlarOrC3Companion", {contentVideoId:G&&G.videoId,bannerImageLayoutViewModel:B.renderer,layoutId:B.layoutId,macros:B.macros,onLayoutVisibleCallback:B.j,interactionLoggingClientData:B.interactionLoggingClientData});break;case 3:B=this.j.getVideoData(1),this.j.pN("updateKevlarOrC3Companion",{contentVideoId:B&&B.videoId}),this.j.pN("updateKevlarOrC3Companion",{})}else if(B.componentType==="ads-engagement-panel")switch(B=B.renderer,G.actionType){case 1:case 2:this.j.pN("updateEngagementPanelAction",B.addAction);this.j.pN("changeEngagementPanelVisibility", B.expandAction);break;case 3:this.j.pN("changeEngagementPanelVisibility",B.hideAction),this.j.pN("updateEngagementPanelAction",B.removeAction)}else if(B.componentType==="ads-engagement-panel-layout"){var a=B.renderer;switch(G.actionType){case 1:case 2:this.j.pN("updateEngagementPanelAction",{action:qT(a.addAction),layoutId:B.layoutId,onLayoutVisibleCallback:B.j,interactionLoggingClientData:B.interactionLoggingClientData});this.j.pN("changeEngagementPanelVisibility",qT(a.expandAction));break;case 3:this.j.pN("changeEngagementPanelVisibility", qT(a.hideAction)),this.j.pN("updateEngagementPanelAction",{action:qT(a.removeAction)})}}};g.t(P7A,ox);g.W=P7A.prototype;g.W.init=function(G,B,a){ox.prototype.init.call(this,G,B,a);g.K4(this.C,"stroke-dasharray","0 "+this.X);this.C.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.L.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.G.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.W.clear=function(){this.hide()}; g.W.hide=function(){G7(this);ox.prototype.hide.call(this)}; g.W.show=function(){Ms(this);ox.prototype.show.call(this)}; g.W.zS=function(){this.hide()}; g.W.z4=function(){if(this.j){var G=this.j.getProgressState();G!=null&&G.current!=null&&g.K4(this.C,"stroke-dasharray",G.current/G.seekableEnd*this.X+" "+this.X)}};g.t(ocB,Cr);g.W=ocB.prototype; g.W.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);if(B.image&&B.image.thumbnail)if(B.headline)if(B.description)if(B.backgroundImage&&B.backgroundImage.thumbnail)if(B.actionButton&&g.u(B.actionButton,g.ZU))if(G=B.durationMilliseconds||0,typeof G!=="number"||G<=0)g.RA(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+G));else if(B.navigationEndpoint){var V=this.api.getVideoData(2);if(V!=null){var x=B.image.thumbnail.thumbnails;x!=null&& x.length>0&&g.O3(g.iR(x[0].url))&&(x[0].url=V.profilePicture,g.O3(g.iR(V.profilePicture))&&kOY("VideoPlayer",239976093,"Expected non-empty profile picture."));x=B.backgroundImage.thumbnail.thumbnails;x!=null&&x.length>0&&g.O3(g.iR(x[0].url))&&(x[0].url=V.Sf());x=B.headline;x!=null&&g.O3(g.iR(x.text))&&(x.text=V.author)}this.Y.init(eT("ad-image"),B.image,a);this.L.init(eT("ad-text"),B.headline,a);this.C.init(eT("ad-text"),B.description,a);this.Er.init(eT("ad-image"),B.backgroundImage,a);V=["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.L.element.classList.add("ytp-ad-action-interstitial-headline-light");this.C.element.classList.add("ytp-ad-action-interstitial-description-light");V.push("ytp-ad-action-interstitial-action-button-dark");this.api.U().X&&(V.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),V.push("ytp-ad-action-interstitial-action-button-dark"));this.api.U().S("enable_unified_action_endcap_on_web")&& !this.api.U().X&&(V.push("ytp-ad-action-interstitial-action-button-unified"),this.MB.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.Y.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Vb.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.DH.classList.add("ytp-ad-action-interstitial-card-unified"),this.XJ.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.Zx.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.L.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Qb.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.SJ.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new DG(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,V);g.X(this,this.actionButton);this.actionButton.iL(this.MB); this.actionButton.init(eT("button"),g.u(B.actionButton,g.ZU),a);QP(this.actionButton.element);V=sr(this.actionButton.element);T3(this.actionButton.element,V+" This link opens in new tab");this.navigationEndpoint=B.navigationEndpoint;this.G.K(this.Qb,"click",this.ZG,this);this.G.K(this.XJ,"click",this.ZG,this);!this.api.U().S("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.U().X||this.G.K(this.Zx,"click",this.ZG,this);this.j=this.F0?new U5(this.api,G):new O5(G);g.X(this,this.j);if(B.skipButton){(G= g.u(B.skipButton,Paa))&&this.j&&(this.skipButton=new z7(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.j,this.FW),g.X(this,this.skipButton),this.skipButton.iL(this.element),this.skipButton.init(eT("skip-button"),G,a));if(a=B.adBadgeRenderer)if(a=g.u(a,isW))G=new gv(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,!0,!0),G.iL(this.SJ),G.init(eT("simple-ad-badge"),a,this.macros),g.X(this,G);if(a=B.adInfoRenderer)if(a=g.u(a,Sh))G=new Y9(this.api,this.layoutId,this.interactionLoggingClientData, this.lL,this.element,void 0,!0),G.iL(this.SJ),G.init(eT("ad-info-hover-text-button"),a,this.macros),g.X(this,G)}else B.nonskippableOverlayRenderer&&(G=g.u(B.nonskippableOverlayRenderer,R9))&&this.j&&(this.X=new Vd(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.j,!1),g.X(this,this.X),this.X.iL(this.element),this.X.init(eT("ad-preview"),G,a));B.countdownRenderer&&(B=B.countdownRenderer,g.u(B,oCC)&&this.j&&(a=new P7A(this.api,this.layoutId,this.interactionLoggingClientData,this.lL, this.j),g.X(this,a),a.iL(this.element),a.init(eT("timed-pie-countdown"),g.u(B,oCC),this.macros)));this.show();this.element.focus()}else g.RA(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.RA(Error("AdActionInterstitialRenderer has no button."));else g.RA(Error("AdActionInterstitialRenderer has no background AdImage."));else g.RA(Error("AdActionInterstitialRenderer has no description AdText."));else g.RA(Error("AdActionInterstitialRenderer has no headline AdText."));else g.RA(Error("AdActionInterstitialRenderer has no image."))}; g.W.clear=function(){g.nU(this.G);this.hide()}; g.W.show=function(){MFx(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.X&&this.X.show();Cr.prototype.show.call(this)}; g.W.hide=function(){MFx(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.X&&this.X.hide();Cr.prototype.hide.call(this)}; g.W.ZG=function(){this.navigationEndpoint&&(this.layoutId?this.lL.executeCommand(this.navigationEndpoint,this.layoutId):g.RA(Error("Missing layoutId for ad action interstitial.")))};var xDz={iconType:"CLOSE"},OI=new g.dU(320,63);g.t(Vr9,Cr);g.W=Vr9.prototype; g.W.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);this.G=B;this.Y=g.Gv(this.G.onClickCommands||[]);this.SJ=this.G.onErrorCommand||null;if(G=this.G.contentSupportedRenderer)G=this.G.contentSupportedRenderer,B=this.G.adInfoRenderer||null,g.u(G,JJ8)?(this.L=g.TF("ytp-ad-overlay-ad-info-button-container",this.C.element),hv_(this,B),G=Ws9(this,g.u(G,JJ8))):g.u(G,AJJ)?(this.L=g.TF("ytp-ad-overlay-ad-info-button-container",this.X.element),hv_(this,B),G=w0K(this,g.u(G,AJJ))):g.u(G,Y32)?(this.L= g.TF("ytp-ad-overlay-ad-info-button-container",this.j.element),hv_(this,B),G=KsK(this,g.u(G,Y32))):(g.RA(Error("InvideoOverlayAdRenderer content could not be initialized.")),G=!1);G&&(this.show(),lFb(this,!0))}; g.W.clear=function(){lFb(this,!1);this.Qb.reset();this.XJ=0;this.C.hide();this.logVisibility(this.C.element,!1);this.X.hide();this.logVisibility(this.X.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.hide();this.dispose()}; g.W.Wyb=function(){this.MB&&(this.layoutId?this.lL.executeCommand(this.MB,this.layoutId):g.RA(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.W.WY=function(){a:{if(this.G&&this.G.closeButton&&this.G.closeButton.buttonRenderer){var G=this.G.closeButton.buttonRenderer;if(G.serviceEndpoint){G=[G.serviceEndpoint];break a}}G=[]}G=g.m(G);for(var B=G.next();!B.done;B=G.next())B=B.value,this.layoutId?this.lL.executeCommand(B,this.layoutId):g.RA(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.W.vWx=function(){this.Er||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.W.QL=function(){this.Er||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.QL("invideo-overlay")}; g.W.oWf=function(G){G.target===this.L&&g.TF("ytp-ad-button",this.Vb.element).click()};g.t(kgK,ox);g.W=kgK.prototype;g.W.init=function(G,B,a){ox.prototype.init.call(this,G,B,a);G=B.durationMs;this.C=G==null||G===0?0:G+this.j.getProgressState().current*1E3;if(B.text)var V=B.text.templatedAdText;else B.staticMessage&&(V=B.staticMessage);this.messageText.init(eT("ad-text"),V,a);this.messageText.iL(this.X.element);this.G.show(100);this.show()}; g.W.clear=function(){this.hide()}; g.W.hide=function(){N8z(this,!1);ox.prototype.hide.call(this);this.X.hide();this.messageText.hide();G7(this)}; g.W.show=function(){N8z(this,!0);ox.prototype.show.call(this);Ms(this);this.X.show();this.messageText.show()}; g.W.zS=function(){this.hide()}; g.W.z4=function(){if(this.j!=null){var G=this.j.getProgressState();G!=null&&G.current!=null&&(G=1E3*G.current,!this.XJ&&G>=this.C?(this.G.hide(),this.XJ=!0):this.messageText&&this.messageText.isTemplated()&&(G=Math.max(0,Math.ceil((this.C-G)/1E3)),G!==this.L&&(Pr(this.messageText,{TIME_REMAINING:String(G)}),this.L=G)))}};g.t(dDK,Cr);g.W=dDK.prototype; g.W.init=function(G,B,a){Cr.prototype.init.call(this,G,B,{});B.image&&B.image.thumbnail?B.headline?B.description?B.actionButton&&g.u(B.actionButton,g.ZU)?(this.C.init(eT("ad-image"),B.image,a),this.X.init(eT("ad-text"),B.headline,a),this.G.init(eT("ad-text"),B.description,a),G=["ytp-ad-underlay-action-button"],this.api.U().S("use_blue_buttons_for_desktop_player_underlay")&&G.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new DG(this.api,this.layoutId,this.interactionLoggingClientData,this.lL, G),B.backgroundColor&&g.K4(this.element,"background-color",g.XM(B.backgroundColor)),g.X(this,this.actionButton),this.actionButton.iL(this.L),this.actionButton.init(eT("button"),g.u(B.actionButton,g.ZU),a),B=g.kf(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().S("place_shrunken_video_on_left_of_player")?(a=this.j,g.WC(a,"ytp-ad-underlay-left-container"),g.hi(a,"ytp-ad-underlay-right-container"),g.K4(this.j,"margin-left",Math.round((B+.02)*100)+"%")):(a=this.j,g.WC(a,"ytp-ad-underlay-right-container"), g.hi(a,"ytp-ad-underlay-left-container")),g.K4(this.j,"width",Math.round((1-B-.04)*100)+"%"),this.api.dU()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.qj.bind(this)),this.api.addEventListener("resize",this.uZ.bind(this))):g.RA(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.RA(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.RA(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.RA(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.W.show=function(){CnY(!0);this.actionButton&&this.actionButton.show();Cr.prototype.show.call(this)}; g.W.hide=function(){CnY(!1);this.actionButton&&this.actionButton.hide();Cr.prototype.hide.call(this)}; g.W.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.qj.bind(this));this.api.removeEventListener("resize",this.uZ.bind(this));this.hide()}; g.W.onClick=function(G){Cr.prototype.onClick.call(this,G);this.actionButton&&g.hw(this.actionButton.element,G.target)&&this.api.pauseVideo()}; g.W.qj=function(G){G==="transitioning"?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):G==="visible"?this.j.classList.add("ytp-ad-underlay-clickable"):G==="hidden"&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))}; g.W.uZ=function(G){G.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):G.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.K4(this.X.element,"font-size",G.width/40+"px")};g.t(EI,Cr); EI.prototype.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);B.toggledLoggingParams&&(this.toggledLoggingParams=B.toggledLoggingParams);B.answer&&g.u(B.answer,g.ZU)?(G=new DG(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),G.iL(this.answer),G.init(eT("ytp-ad-survey-answer-button"),g.u(B.answer,g.ZU),a),G.show()):B.answer&&g.u(B.answer,gs)&&(this.j=new Qp(this.api,this.layoutId,this.interactionLoggingClientData,this.lL, ["ytp-ad-survey-answer-toggle-button"]),this.j.iL(this.answer),g.X(this,this.j),this.j.init(eT("survey-answer-button"),g.u(B.answer,gs),a));this.show()}; EI.prototype.Sx=function(G){this.layoutId?se(this.lL,G,this.layoutId,this.macros):g.RA(new g.FI("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; EI.prototype.onClick=function(G){Cr.prototype.onClick.call(this,G);if(this.api.U().S("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; EI.prototype.clear=function(){this.hide()};g.t(zvB,Cr);zvB.prototype.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);B.answer&&g.u(B.answer,gs)&&(this.button=new Qp(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.iL(this.j),this.button.init(eT("survey-none-of-the-above-button"),g.u(B.answer,gs),a));this.show()};g.t(j0,DG);j0.prototype.init=function(G,B,a){DG.prototype.init.call(this,G,B,a);G=!1;B.text&&(B=g.tU(B.text),G=!g.O3(B));G||g.Zb(Error("No submit text was present in the renderer."))}; j0.prototype.onClick=function(G){this.publish("l");DG.prototype.onClick.call(this,G)};g.t(bI,Cr); bI.prototype.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);if(G=B.skipOrPreviewRenderer)g.u(G,hP)?(G=g.u(G,hP),a=new mJ(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.G,!0),a.iL(this.skipOrPreview),a.init(eT("skip-button"),G,this.macros),g.X(this,a),this.j=a):g.u(G,R9)&&(G=g.u(G,R9),a=new Vd(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.G,!1),a.iL(this.skipOrPreview),a.init(eT("ad-preview"),G,this.macros),a.XJ.show(100),a.show(),g.X(this,a), this.j=a);this.j==null&&g.RA(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(B)));B.submitButton&&(G=B.submitButton,g.u(G,g.ZU)&&(G=g.u(G,g.ZU),a=new j0(this.api,this.layoutId,this.interactionLoggingClientData,this.lL),a.iL(this.submitButton),a.init(eT("survey-submit"),G,this.macros),g.X(this,a),this.X=a));if(G=B.adBadgeRenderer)G=g.u(G,isW),a=new gv(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,!0,!0,!0),a.iL(this.C),a.init(eT("simple-ad-badge"), G,this.macros),this.adBadge=a.element,g.X(this,a);if(G=B.adDurationRemaining)G=g.u(G,TlJ),a=new by(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.G,void 0,!0),a.iL(this.C),a.init(eT("ad-duration-remaining"),G,this.macros),g.X(this,a);(B=B.adInfoRenderer)&&g.u(B,Sh)&&(G=new Y9(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.element,void 0,!0),g.X(this,G),this.adBadge!==void 0?this.C.insertBefore(G.element,this.adBadge.nextSibling):G.iL(this.C),G.init(eT("ad-info-hover-text-button"), g.u(B,Sh),this.macros));this.show()}; bI.prototype.clear=function(){this.hide()};g.t(yq,Cr);yq.prototype.init=function(G,B,a){Cr.prototype.init.call(this,G,B,a);UDB(this)}; yq.prototype.show=function(){this.C=Date.now();Cr.prototype.show.call(this)}; yq.prototype.vV=function(){};g.t(O8X,yq);g.W=O8X.prototype;g.W.init=function(G,B,a){var V=this;yq.prototype.init.call(this,G,B,a);B.questionText&&mDc(this,B.questionText);B.answers&&B.answers.forEach(function(x,h){g.u(x,mz)&&IFA(V,g.u(x,mz),a,h)}); this.L=new Set(this.X.map(function(x){return x.j.j})); (G=B.noneOfTheAbove)&&(G=g.u(G,F79))&&E1b(this,G,a);B.surveyAdQuestionCommon&&p0K(this,B.surveyAdQuestionCommon);B.submitEndpoints&&(this.submitEndpoints=B.submitEndpoints);this.K(this.element,"change",this.onChange);this.show()}; g.W.vV=function(){jNb(this,!1);this.G.X.subscribe("l",this.SvS,this)}; g.W.onChange=function(G){G.target===this.noneOfTheAbove.button.j?b8K(this):this.L.has(G.target)&&(this.noneOfTheAbove.button.toggleButton(!1),jNb(this,!0))}; g.W.SvS=function(){var G=[],B=this.X.reduce(function(x,h,e){var w=h.toggledLoggingParams;h.j&&h.j.isToggled()&&w&&(x.push(w),G.push(e));return x},[]).join("&"),a=this.submitEndpoints.map(function(x){if(!x.loggingUrls)return x; x=g.HM(x);x.loggingUrls=x.loggingUrls.map(function(h){h.baseUrl&&(h.baseUrl=T5(h.baseUrl,B));return h}); return x}); if(a){a=g.m(a);for(var V=a.next();!V.done;V=a.next())V=V.value,this.layoutId?se(this.lL,V,this.layoutId,this.macros):g.RA(Error("Missing layoutId for multi_select_question."))}this.api.U().S("supports_multi_step_on_desktop")&&this.XJ(G)}; g.W.clear=function(){this.api.U().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.t(c3,yq);c3.prototype.init=function(G,B,a){var V=this;yq.prototype.init.call(this,G,B,a);B.questionText&&mDc(this,B.questionText);B.answers&&B.answers.forEach(function(x,h){g.u(x,mz)&&IFA(V,g.u(x,mz),a,h)}); B.surveyAdQuestionCommon?p0K(this,B.surveyAdQuestionCommon):g.RA(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(B)));this.show()}; c3.prototype.clear=function(){this.api.U().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.t(n7,Cr);n7.prototype.init=function(G,B,a){var V=this;Cr.prototype.init.call(this,G,B,a);if(this.api.U().S("supports_multi_step_on_desktop")){var x;this.conditioningRules=(x=B.conditioningRules)!=null?x:[];var h;this.X=(h=B.questions)!=null?h:[];var e;((e=B.questions)==null?0:e.length)&&fFY(this,0)}else(B.questions||[]).forEach(function(w){g.u(w,vf)?cFz(V,g.u(w,vf),a):g.u(w,Hf)&&n1z(V,g.u(w,Hf),a)}); this.show()}; n7.prototype.clear=function(){this.api.U().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; n7.prototype.G=function(G){var B=this;if(this.api.U().S("supports_multi_step_on_desktop")){var a;if((a=this.conditioningRules)==null?0:a.length){var V;if(G.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(x){return x.questionIndex===B.j})==null)g.RA(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(x){if(x.questionIndex===B.j)switch(x.condition){case "CONDITION_ALL_OF":var h;if((h=x.answerIndices)==null?0:h.every(function(w){return G.includes(w)}))V=x.nextQuestionIndex; break;case "CONDITION_ANY_OF":var e;if((e=x.answerIndices)==null?0:e.some(function(w){return G.includes(w)}))V=x.nextQuestionIndex; break;default:g.RA(Error("Expected specified condition in survey conditioning rules."))}}),V!=null)fFY(this,V); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.RA(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.t(f7,Cr); f7.prototype.init=function(G,B,a){var V=this;Cr.prototype.init.call(this,G,B,a);G=B.timeoutSeconds||0;if(typeof G!=="number"||G<0)g.RA(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+G));else if(B.timeoutCommands)if(B.text)if(B.ctaButton&&g.u(B.ctaButton,g.ZU))if(B.brandImage)if(B.backgroundImage&&g.u(B.backgroundImage,rm)&&g.u(B.backgroundImage,rm).landscape){this.layoutId||g.RA(Error("Missing layoutId for survey interstitial."));H8_(this.interstitial,g.u(B.backgroundImage, rm).landscape);H8_(this.logoImage,B.brandImage);g.es(this.text,g.tU(B.text));var x=["ytp-ad-survey-interstitial-action-button"];x.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new DG(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,x);g.X(this,this.actionButton);this.actionButton.iL(this.X);this.actionButton.init(eT("button"),g.u(B.ctaButton,g.ZU),a);this.actionButton.show();this.j=new U5(this.api,G*1E3);this.j.subscribe("g",function(){V.transition.hide()}); g.X(this,this.j);this.K(this.element,"click",function(h){var e=h.target===V.interstitial;h=V.actionButton.element.contains(h.target);if(e||h)if(V.transition.hide(),e)V.api.onAdUxClicked(V.componentType,V.layoutId)}); this.transition.show(100)}else g.RA(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.RA(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.RA(Error("SurveyTextInterstitialRenderer has no button."));else g.RA(Error("SurveyTextInterstitialRenderer has no text."));else g.RA(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; f7.prototype.clear=function(){this.hide()}; f7.prototype.show=function(){v19(!0);Cr.prototype.show.call(this)}; f7.prototype.hide=function(){v19(!1);Cr.prototype.hide.call(this)};g.t(H3,ox);g.W=H3.prototype; g.W.init=function(G,B){ox.prototype.init.call(this,G,B,{});if(B.durationMilliseconds){if(B.durationMilliseconds<0){g.RA(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+B.durationMilliseconds));return}this.X=B.durationMilliseconds}else this.X=this.j.QP();var a;if((a=B.previewText)==null||!a.text||g.O3(B.previewText.text))g.RA(Error("No text is returned for AdPreview."));else{this.L=B.previewText;B.previewText.isTemplated||g.es(this.C,B.previewText.text);var V; if(((V=this.api.getVideoData(1))==null?0:V.Zr)&&B.previewImage){var x,h;(G=((h=bo(((x=B.previewImage)==null?void 0:x.sources)||[],52,!1))==null?void 0:h.url)||"")&&G.length?(this.previewImage=new g.dI({Z:"img",J:"ytp-preview-ad__image",N:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",G),g.X(this,this.previewImage),this.previewImage.iL(this.element)):g.RA(Error("Failed to get imageUrl in AdPreview."))}else this.C.classList.add("ytp-preview-ad__text--padding--wide")}}; g.W.clear=function(){this.hide()}; g.W.hide=function(){G7(this);ox.prototype.hide.call(this)}; g.W.show=function(){Ms(this);ox.prototype.show.call(this)}; g.W.zS=function(){this.hide()}; g.W.z4=function(){if(this.j){var G=this.j.getProgressState();if(G!=null&&G.current)if(G=1E3*G.current,G>=this.X)this.transition.hide();else{var B;if((B=this.L)==null?0:B.isTemplated)if(B=Math.max(0,Math.ceil((this.X-G)/1E3)),B!==this.G){var a,V;(G=(a=this.L)==null?void 0:(V=a.text)==null?void 0:V.replace("{TIME_REMAINING}",String(B)))&&g.es(this.C,G);this.G=B}}}};g.t(v3,Cr); v3.prototype.init=function(G,B){Cr.prototype.init.call(this,G,B,{});var a,V;if((G=((V=bo(((a=B.image)==null?void 0:a.sources)||[],DDz(B),!0))==null?void 0:V.url)||"")&&G.length){a=this.d1("ytp-ad-avatar");a.src=G;var x,h;if(V=(x=B.interaction)==null?void 0:(h=x.accessibility)==null?void 0:h.label)a.alt=V;switch(B.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(B.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.RA(Error("Failed to get imageUrl in AdAvatar."))}; v3.prototype.clear=function(){this.hide()}; v3.prototype.onClick=function(G){Cr.prototype.onClick.call(this,G)};g.t(DW,Cr); DW.prototype.init=function(G,B){Cr.prototype.init.call(this,G,B,{});var a;G=(a=B.label)==null?void 0:a.content;if((a=G!=null&&!g.O3(G))||B.iconImage){a&&(this.buttonText=new g.dI({Z:"span",J:"ytp-ad-button-vm__text",cS:G}),g.X(this,this.buttonText),this.buttonText.iL(this.element));var V,x,h=((V=B.interaction)==null?0:(x=V.accessibility)==null?0:x.label)||a?G:"";h&&T3(this.element,h+" This link opens in new tab");QP(this.element);if(B.iconImage){V=void 0;if(B.iconImage){a:{x=B.iconImage;if(x.sources)for(x= g.m(x.sources),G=x.next();!G.done;G=x.next())if(G=G.value,h=void 0,(h=G.clientResource)==null?0:h.imageName){x=G;break a}x=void 0}if(x){var e;V={iconType:(e=x.clientResource)==null?void 0:e.imageName}}}e=vr(V,!1,this.X);e!=null&&(this.buttonIcon=new g.dI({Z:"span",J:"ytp-ad-button-vm__icon",D:[e]}),g.X(this,this.buttonIcon),B.iconLeading?(VX(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):a?(this.buttonIcon.iL(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.iL(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(B.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.j?"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(B.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.Zb(Error("AdButton does not have label or an icon."))}; DW.prototype.clear=function(){this.hide()}; DW.prototype.onClick=function(G){Cr.prototype.onClick.call(this,G)};g.t(SD9,ox);g.W=SD9.prototype; g.W.init=function(G,B){ox.prototype.init.call(this,G,B,{});this.api.U().S("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.d1("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"),VX(this.d1("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(G=g.u(B.avatar,Qq)){var a=B.headline;if(a){var V=B.description;if(V){var x=g.u(B.button,Tl);x?(this.adAvatar.init(eT("ad-avatar"),G),this.headline.init(eT("ad-simple-attributed-string"),new cm(a)),this.description.init(eT("ad-simple-attributed-string"),new cm(V)),a.content&&a.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(eT("ad-button"),x),this.startMilliseconds=B.startMs||0,this.api.dU()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.E5.bind(this)),Ms(this)):g.RA(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.RA(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.RA(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.RA(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.W.z4=function(){if(this.j){var G=this.j.getProgressState();G&&G.current&&1E3*G.current>=this.startMilliseconds&&(G7(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.W.zS=function(){this.clear()}; g.W.onClick=function(G){this.api.pauseVideo();ox.prototype.onClick.call(this,G)}; g.W.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.E5.bind(this))}; g.W.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();ox.prototype.show.call(this)}; g.W.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();ox.prototype.hide.call(this)}; g.W.E5=function(G){G==="hidden"?this.show():this.hide()};g.t(S0,Cr);g.W=S0.prototype; g.W.init=function(G,B){Cr.prototype.init.call(this,G,B,{});if(!B.label||g.O3(B.label))g.RA(Error("No label is returned for SkipAdButton."));else if(g.es(this.G,B.label),G=vr({iconType:"SKIP_NEXT_NEW"}),G==null)g.RA(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.dI({Z:"span",J:"ytp-skip-ad-button__icon",D:[G]}),g.X(this,this.C),this.C.iL(this.element),this.api.U().experiments.Or("enable_skip_to_next_messaging")&&(B=g.iR(B.targetId)))this.X=!0,this.element.setAttribute("data-tooltip-target-id",B), this.element.setAttribute("data-tooltip-target-fixed","")}; g.W.onClick=function(G){G&&G.preventDefault();var B,a;WH9(G,{contentCpn:(a=(B=this.api.getVideoData(1))==null?void 0:B.clientPlaybackNonce)!=null?a:""})===0?this.api.pN("onAbnormalityDetected"):(Cr.prototype.onClick.call(this,G),this.api.pN("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.W.clear=function(){this.j.reset();this.hide()}; g.W.hide=function(){Cr.prototype.hide.call(this)}; g.W.show=function(){this.j.start();Cr.prototype.show.call(this);this.X&&this.api.U().experiments.Or("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.t(Rvz,ox);g.W=Rvz.prototype; g.W.init=function(G,B){ox.prototype.init.call(this,G,B,{});G=g.u(B.preskipState,h_a);var a;if((a=this.api.getVideoData())==null?0:a.isDaiEnabled()){if(!G){g.RA(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.X=new H3(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.j);g.X(this,this.X);this.X.iL(this.element);var V;(V=this.X)==null||V.init(eT("preview-ad"),G);(a=this.X)!=null&&(a.transition.show(100),a.show())}(a=g.u(B.skippableState,WdJ))?(B.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=B.skipOffsetMilliseconds:(g.Zb(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.C.init(eT("skip-button"),a),this.show()):g.RA(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.W.show=function(){Ms(this);ox.prototype.show.call(this)}; g.W.hide=function(){!this.isSkippable&&this.X?this.X.hide():this.C&&this.C.hide();G7(this);ox.prototype.hide.call(this)}; g.W.clear=function(){var G;(G=this.X)==null||G.clear();this.C&&this.C.clear();G7(this);ox.prototype.hide.call(this)}; g.W.zS=function(){this.hide()}; g.W.z4=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var G;(G=this.X)!=null&&G.transition.hide();(G=this.C)!=null&&(G.transition.show(),G.show())}};g.t(RI,Cr); RI.prototype.init=function(G,B){Cr.prototype.init.call(this,G,B,{});if(B.label){var a;((a=B.label)==null?0:a.content)&&!g.O3(B.label.content)&&(this.linkText=new g.dI({Z:"span",J:"ytp-visit-advertiser-link__text",cS:B.label.content}),g.X(this,this.linkText),this.linkText.iL(this.element));var V,x;if((V=B.interaction)==null?0:(x=V.accessibility)==null?0:x.label)T3(this.element,B.interaction.accessibility.label+" This link opens in new tab");else{var h;((h=B.label)==null?0:h.content)&&!g.O3(B.label.content)&&T3(this.element, B.label.content+" This link opens in new tab")}QP(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.RA(Error("No label found in VisitAdvertiserLink."))}; RI.prototype.onClick=function(G){Cr.prototype.onClick.call(this,G);this.api.onAdUxClicked(this.componentType,this.layoutId)}; RI.prototype.clear=function(){this.hide()};g.t(ZW,Cr); ZW.prototype.init=function(G,B,a,V){Cr.prototype.init.call(this,G,B,{});if(B.skipOrPreview){a=B.skipOrPreview;G=g.u(a,wKk);a=g.u(a,h_a);if(G)this.Z5=new Rvz(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.C),g.X(this,this.Z5),this.Z5.iL(this.XJ),this.Z5.init(eT("skip-ad"),G);else{var x;a&&((x=this.api.getVideoData())==null?0:x.isDaiEnabled())&&(this.L=new H3(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.C,1),g.X(this,this.L),this.L.iL(this.XJ),this.L.init(eT("ad-preview"), a),x=this.L,x.transition.show(100),x.show())}if(x=g.u(B.skipOrPreview,wKk))var h=x.skipOffsetMilliseconds}B.playerAdCard&&(x=g.u(B.playerAdCard,e_3))&&(this.playerAdCard=new SD9(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.C),g.X(this,this.playerAdCard),this.playerAdCard.iL(this.Qb),this.playerAdCard.init(eT("ad-avatar-lockup-card"),x));x=this.api.U().S("disable_ad_duration_remaining_for_instream_video_ads")||B.adPodIndex!==void 0;B.adBadgeRenderer&&((G=g.u(B.adBadgeRenderer, L7))?(this.X=new fY(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,x),g.X(this,this.X),this.api.U().S("delhi_modern_web_player")?this.X.iL(this.G):this.X.iL(this.j),this.X.init(eT("ad-badge"),G)):g.RA(Error("AdBadgeViewModel is not found in player overlay layout.")));B.adPodIndex&&(G=g.u(B.adPodIndex,BK2))&&(this.adPodIndex=new Hm(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,g.u(B.skipOrPreview,wKk)===void 0),g.X(this,this.adPodIndex),this.api.U().S("delhi_modern_web_player")? this.adPodIndex.iL(this.G):this.adPodIndex.iL(this.j),this.adPodIndex.init(eT("ad-pod-index"),G));if(B.adInfoRenderer&&(G=g.u(B.adInfoRenderer,Sh))){this.adInfoButton=new Y9(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.element,void 0,x);g.X(this,this.adInfoButton);a=(this.api.U().S("delhi_modern_web_player")||this.api.U().S("enable_ad_pod_index_autohide"))&&this.X!==void 0;var e=this.api.U().S("delhi_modern_web_player")?this.G:this.j;a?e.insertBefore(this.adInfoButton.element, this.X.element.nextSibling):this.adInfoButton.iL(e);this.adInfoButton.init(eT("ad-info-hover-text-button"),G,this.macros)}var w;G=this.api.U().S("clean_player_style_fix_on_web")&&((w=this.api.getVideoData())==null?void 0:w.isDaiEnabled());B.adDurationRemaining&&(!x||G)&&(w=g.u(B.adDurationRemaining,TlJ))&&(this.adDurationRemaining=new by(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.C,V.videoAdDurationSeconds,x),g.X(this,this.adDurationRemaining),V=this.api.U().S("delhi_modern_web_player")? this.G:this.j,(x||this.api.U().S("delhi_modern_web_player"))&&this.adPodIndex!==void 0?V.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?x||this.api.U().S("delhi_modern_web_player")?V.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling):this.j.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.iL(this.j),this.adDurationRemaining.init(eT("ad-duration-remaining"), w,this.macros),x&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));B.visitAdvertiserLink&&(V=g.u(B.visitAdvertiserLink,lCf))&&(this.visitAdvertiserLink=new RI(this.api,this.layoutId,this.interactionLoggingClientData,this.lL),g.X(this,this.visitAdvertiserLink),this.visitAdvertiserLink.iL(this.j),this.visitAdvertiserLink.init(eT("visit-advertiser-link"),V));B.adDisclosureBanner&&(B=g.u(B.adDisclosureBanner,Gvf))&&(this.adDisclosureBanner=new vm(this.api,this.layoutId, this.interactionLoggingClientData,this.lL),g.X(this,this.adDisclosureBanner),this.adDisclosureBanner.iL(this.Zx),this.adDisclosureBanner.init(eT("ad-disclosure-banner"),B));this.api.U().S("show_preskip_progress_bar_for_skippable_ads")&&(this.Y=new Rc(this.api,this.C,h,x),g.X(this,this.Y),g.SX(this.api,this.Y.element,4));this.show()}; ZW.prototype.clear=function(){this.hide()};g.t(Z8H,Cr);g.W=Z8H.prototype; g.W.init=function(G,B){Cr.prototype.init.call(this,G,B,{});if(B!=null&&B.title)if(G=B.title)if(this.headline.init(eT("ad-simple-attributed-string"),new cm(G)),G=g.u(B.moreInfoButton,Tl)){if(this.moreInfoButton.init(eT("ad-button"),G),B.descriptions)B.descriptions.length>0&&(G=B.descriptions[0])&&(this.j=new nY(this.api,this.layoutId,this.interactionLoggingClientData,this.lL),g.X(this,this.j),this.j.iL(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.j.init(eT("ad-simple-attributed-string"), new cm(G))),B.descriptions.length>1&&(B=B.descriptions[1])&&(this.X=new nY(this.api,this.layoutId,this.interactionLoggingClientData,this.lL),g.X(this,this.X),this.X.iL(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.X.init(eT("ad-simple-attributed-string"),new cm(B)))}else g.RA(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.RA(Error("No headline found in AdGridCardText."));else g.RA(Error("No headline found in AdGridCardText."))}; g.W.onClick=function(G){Cr.prototype.onClick.call(this,G);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.W.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var G;(G=this.j)==null||G.clear();var B;(B=this.X)==null||B.clear()}; g.W.hide=function(){this.headline.hide();this.moreInfoButton.hide();var G;(G=this.j)==null||G.hide();var B;(B=this.X)==null||B.hide();Cr.prototype.hide.call(this)}; g.W.show=function(){Cr.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var G;(G=this.j)==null||G.show();var B;(B=this.X)==null||B.show()};g.t(rT,Cr);rT.prototype.init=function(G,B){Cr.prototype.init.call(this,G,B,{});if(B!=null&&B.gridCards)if(B.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.RA(Error("Only single column style is currently supported in AdGridCardCollection."));else for(G=g.m(B.gridCards),B=G.next();!B.done;B=G.next()){if(B=g.u(B.value,xUk)){var a=new Z8H(this.api,this.layoutId,this.interactionLoggingClientData,this.lL);g.X(this,a);a.iL(this.element);a.init(eT("ad-grid-card-text"),B);this.j.push(a)}}else g.RA(Error("No grid cards found in AdGridCardCollection."))}; rT.prototype.show=function(){for(var G=g.m(this.j),B=G.next();!B.done;B=G.next())B.value.show();Cr.prototype.show.call(this)}; rT.prototype.clear=function(){this.hide();for(var G=g.m(this.j),B=G.next();!B.done;B=G.next())B.value.clear()}; rT.prototype.hide=function(){for(var G=g.m(this.j),B=G.next();!B.done;B=G.next())B.value.hide();Cr.prototype.hide.call(this)};g.t($w,ox);g.W=$w.prototype;g.W.init=function(G,B,a,V,x){x=x===void 0?0:x;ox.prototype.init.call(this,G,B,a,V);this.playerProgressOffsetMs=x;Ms(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.xV.bind(this));this.api.addEventListener("resize",this.Kj.bind(this));this.api.dU()?(this.X=!0,this.api.bX(!0),this.show()):this.hide()}; g.W.z4=function(){if(this.j){var G=this.j.getProgressState();G&&G.current&&!this.X&&1E3*G.current>=this.playerProgressOffsetMs&&(this.X=!0,this.api.bX(!0),this.show())}}; g.W.zS=function(){this.X&&this.api.bX(!1);this.hide()}; g.W.clear=function(){this.api.bX(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.xV.bind(this));this.api.removeEventListener("resize",this.Kj.bind(this));G7(this);this.hide()}; g.W.hide=function(){rFV(!1);ox.prototype.hide.call(this)}; g.W.show=function(){rFV(!0);ox.prototype.show.call(this)};g.t($DH,$w);g.W=$DH.prototype; g.W.init=function(G,B,a,V){if(B!=null&&B.adGridCardCollection)if(B!=null&&B.adButton){var x=Number(B.playerProgressOffsetMs||"0");isNaN(x)?$w.prototype.init.call(this,G,B,a,V):$w.prototype.init.call(this,G,B,a,V,x);G=B.headline;a=g.u(B.adAvatar,Qq);G&&a?(this.headline=new nY(this.api,this.layoutId,this.interactionLoggingClientData,this.lL),g.X(this,this.headline),this.headline.iL(this.d1("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(eT("ad-simple-attributed-string"),new cm(G)), this.adAvatar=new v3(this.api,this.layoutId,this.interactionLoggingClientData,this.lL),g.X(this,this.adAvatar),this.adAvatar.iL(this.d1("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(eT("ad-avatar"),a)):this.G.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");G=g.u(B.adGridCardCollection,V$k);this.adGridCardCollection.init(eT("ad-grid-card-collection"),G);B=g.u(B.adButton,Tl);this.adButton.init(eT("ad-button"),B); this.hide()}else g.RA(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.RA(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.W.onClick=function(G){(this.adButton&&g.hw(this.adButton.element,G.target)||this.adAvatar&&g.hw(this.adAvatar.element,G.target))&&this.api.pauseVideo();$w.prototype.onClick.call(this,G);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.W.Kj=function(){}; g.W.clear=function(){this.hide();var G;(G=this.headline)==null||G.clear();var B;(B=this.adAvatar)==null||B.clear();this.adGridCardCollection.clear();this.adButton.clear();$w.prototype.clear.call(this)}; g.W.show=function(){var G;(G=this.headline)==null||G.show();var B;(B=this.adAvatar)==null||B.show();this.adGridCardCollection.show();this.adButton.show();$w.prototype.show.call(this)}; g.W.hide=function(){var G;(G=this.headline)==null||G.hide();var B;(B=this.adAvatar)==null||B.hide();this.adGridCardCollection.hide();this.adButton.hide();$w.prototype.hide.call(this)}; g.W.xV=function(G){G==="transitioning"?(this.C.classList.remove("ytp-ad-underlay-clickable"),this.show()):G==="visible"?this.C.classList.add("ytp-ad-underlay-clickable"):G==="hidden"&&(this.hide(),this.C.classList.remove("ytp-ad-underlay-clickable"))};g.t(XL,Cr); XL.prototype.init=function(G,B){Cr.prototype.init.call(this,G,B,{});if(B.attributes===void 0)g.RA(Error("No attributes found in AdDetailsLineViewModel."));else if(B.style===void 0)g.RA(Error("No style found in AdDetailsLineViewModel."));else{G=g.m(B.attributes);for(var a=G.next();!a.done;a=G.next())if(a=a.value,a.text!==void 0){a=a.text;var V=B.style,x=new nY(this.api,this.layoutId,this.interactionLoggingClientData,this.lL);g.X(this,x);x.iL(this.element);a:switch(V){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":V="ytp-ad-details-line__text--style-responsive"; break a;default:V="ytp-ad-details-line__text--style-standard"}x.element.classList.add(V);x.init(eT("ad-simple-attributed-string"),new cm(a));this.j.push(x)}this.show()}}; XL.prototype.show=function(){this.j.forEach(function(G){G.show()}); Cr.prototype.show.call(this)}; XL.prototype.clear=function(){this.hide()}; XL.prototype.hide=function(){this.j.forEach(function(G){G.hide()}); Cr.prototype.hide.call(this)};g.t(qx,Cr);qx.prototype.init=function(G,B){Cr.prototype.init.call(this,G,B,{});var a,V;(G=((V=bo(((a=B.image)==null?void 0:a.sources)||[]))==null?void 0:V.url)||"")&&G.length?(a=this.d1("ytp-image-background-image"),g.K4(a,"backgroundImage","url("+G+")"),B.blurLevel!==void 0&&g.K4(a,"filter","blur("+B.blurLevel+"px)"),B.gradient!==void 0&&(B=new g.T({Z:"div",bL:["ytp-image-background--gradient-vertical"]}),g.X(this,B),B.iL(this.element)),this.show()):g.RA(Error("Failed to get imageUrl in ImageBackground."))}; qx.prototype.clear=function(){this.hide()};g.t(X0V,ox);g.W=X0V.prototype;g.W.init=function(G,B){ox.prototype.init.call(this,G,B,{});g.K4(this.C,"stroke-dasharray","0 "+this.X);this.show()}; g.W.clear=function(){this.hide()}; g.W.hide=function(){G7(this);ox.prototype.hide.call(this)}; g.W.show=function(){Ms(this);ox.prototype.show.call(this)}; g.W.zS=function(){this.hide()}; g.W.z4=function(){if(this.j){var G=this.j.getProgressState();G!=null&&G.current!=null&&g.K4(this.C,"stroke-dasharray",G.current/G.seekableEnd*this.X+" "+this.X)}};g.t(uI,Cr); uI.prototype.init=function(G,B){Cr.prototype.init.call(this,G,B,{});if(uzx(B)){this.adAvatar=new v3(this.api,this.layoutId,this.interactionLoggingClientData,this.lL);g.X(this,this.adAvatar);this.adAvatar.iL(this.d1("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(eT("ad-avatar"),g.u(B.adAvatar,Qq));this.headline=new nY(this.api,this.layoutId,this.interactionLoggingClientData,this.lL);g.X(this,this.headline);this.headline.iL(this.d1("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(eT("ad-simple-attributed-string"),new cm(B.headline));if(G=g.u(B.adDetailsLine,Mf9))this.detailsLine=new XL(this.api,this.layoutId,this.interactionLoggingClientData,this.lL),g.X(this,this.detailsLine),this.detailsLine.iL(this.d1("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(eT("ad-details-line"),G);this.adButton=new DW(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,!0);g.X(this,this.adButton); this.adButton.iL(this.d1("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(eT("ad-button"),g.u(B.adButton,Tl));this.adBadge=new fY(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,!0);g.X(this,this.adBadge);this.adBadge.iL(this.G);this.adBadge.init(eT("ad-badge"),g.u(B.adBadge,L7));this.adInfoButton=new Y9(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.element,void 0,!0);g.X(this,this.adInfoButton);this.adInfoButton.iL(this.G); this.adInfoButton.init(eT("ad-info-hover-text-button"),g.u(B.adInfoRenderer,Sh),this.macros);if(G=g.u(B.skipAdButton,WdJ))this.skipAdButton=new S0(this.api,this.layoutId,this.interactionLoggingClientData,this.lL),g.X(this,this.skipAdButton),this.skipAdButton.iL(this.element),this.skipAdButton.init(eT("skip-button"),G);this.X=new O5(B.durationMilliseconds);g.X(this,this.X);if(G=g.u(B.countdownViewModel,KdC))this.j=new X0V(this.api,this.layoutId,this.interactionLoggingClientData,this.lL,this.X),g.X(this, this.j),this.j.iL(this.d1("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.j.init(eT("timed-pie-countdown"),G);if(B=g.u(B.imageBackground,aCk))this.imageBackground=new qx(this.api,this.layoutId,this.interactionLoggingClientData,this.lL),g.X(this,this.imageBackground),this.imageBackground.iL(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(eT("image-background"), B);this.show();this.element.focus()}}; uI.prototype.clear=function(){g.nU(this.C);this.hide()}; uI.prototype.show=function(){qD9(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Cr.prototype.show.call(this)}; uI.prototype.hide=function(){qD9(!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.j&&this.j.hide();this.imageBackground&&this.imageBackground.hide();Cr.prototype.hide.call(this)};var $W8="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.t(sI,Tn); sI.prototype.G=function(G){var B=G.id,a=G.content,V=a.componentType;if(!$W8.includes(V))switch(G.actionType){case 1:G=this.api;var x=this.lL,h=a.layoutId,e=a.interactionLoggingClientData,w=a instanceof Yu?a.F0:!1,K=a instanceof Yu||a instanceof pY?a.FW:!1;e=e===void 0?{}:e;w=w===void 0?!1:w;K=K===void 0?!1:K;switch(V){case "invideo-overlay":G=new Vr9(G,h,e,x);break;case "player-overlay":G=new Z$(G,h,e,x,new Yz(G),K);break;case "player-overlay-layout":G=new ZW(G,h,e,x,new Yz(G));break;case "survey":G= new n7(G,h,e,x);break;case "ad-action-interstitial":G=new ocB(G,h,e,x,w,K);break;case "video-interstitial-buttoned-centered":G=new uI(G,h,e,x);break;case "survey-interstitial":G=new f7(G,h,e,x);break;case "ad-message":G=new kgK(G,h,e,x,new Yz(G,1));break;case "player-underlay":G=new dDK(G,h,e,x);break;case "display-underlay-text-grid-cards":G=new $DH(G,h,e,x,new Yz(G));break;default:G=null}if(!G){g.Zb(Error("No UI component returned from ComponentFactory for type: "+V));break}g.Eu(this.X,B)?g.Zb(Error("Ad UI component already registered: "+ B)):this.X[B]=G;G.bind(a);a instanceof Jm?this.C?this.C.append(G.Bg):g.Zb(Error("Underlay view was not created but UnderlayRenderer was created")):this.B.append(G.Bg);break;case 2:B=QNy(this,G);if(B==null)break;B.bind(a);break;case 3:a=QNy(this,G),a!=null&&(g.WW(a),g.Eu(this.X,B)?(a=this.X,B in a&&delete a[B]):g.Zb(Error("Ad UI component does not exist: "+B)))}}; sI.prototype.yb=function(){g.wl(Object.values(this.X));this.X={};Tn.prototype.yb.call(this)};g.t(Lsc,g.go);g.W=Lsc.prototype;g.W.create=function(){try{T8c(this),this.load(),this.created=!0,T8c(this)}catch(G){kN(G instanceof Error?G:String(G))}}; g.W.load=function(){try{JFz(this)}finally{YW(p7(this.j).E1)&&this.player.Za("ad",1)}}; g.W.destroy=function(){var G=this.player.getVideoData(1);this.j.j.SX.Dt(G&&G.clientPlaybackNonce||"");this.unload();this.created=!1}; g.W.unload=function(){g.go.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(B){kN(B instanceof Error?B:String(B))}if(this.X!=null){var G=this.X;this.X=null;G.dispose()}this.C.reset()}; g.W.v6=function(){return!1}; g.W.getAdState=function(){return-1}; g.W.getOptions=function(){return Object.values(rkk)}; g.W.dJ=function(G,B){B=B===void 0?{}:B;switch(G){case "replaceUrlMacros":return G=B,G.url?(B=KAY(this.player),Object.assign(B,G.Kfl),G=g.fy(G.url,B)):G=null,G;case "onAboutThisAdPopupClosed":this.z$(B);break;case "executeCommand":G=B;G.command&&G.layoutId&&this.executeCommand(G);break;default:return null}}; g.W.Y2=function(G){var B;return!((B=this.j.j.nD)==null||!B.get().Y2(G))}; g.W.z$=function(G){G.isMuted&&IbV(p7(this.j).gQ,p7(this.j).R9,G.layoutId);this.wL&&this.wL.z$()}; g.W.executeCommand=function(G){p7(this.j).lL.executeCommand(G.command,G.layoutId)};g.Qb("yt.player.Application.create",g.mj.create);g.Qb("yt.player.Application.createAlternate",g.mj.create);Jtb(Hx(),Z03);var XYh=g.LV("ytcsi.tick");XYh&&XYh("pe");g.Is("ad",Lsc);g.t(g.AN,g.r);g.AN.prototype.start=function(G,B,a){this.config={from:G,h7:B,duration:a,startTime:(0,g.yT)()};this.next()}; g.AN.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.AN.prototype.next=function(){if(this.config){var G=this.config,B=G.from,a=G.h7,V=G.duration;G=G.startTime;var x=(0,g.yT)()-G;G=this.j;V=GRy(G,x/V);if(V==0)G=G.W;else if(V==1)G=G.V;else{x=wU(G.W,G.B,V);var h=wU(G.B,G.L,V);G=wU(G.L,G.V,V);x=wU(x,h,V);h=wU(h,G,V);G=wU(x,h,V)}G=g.eH(G,0,1);this.callback(B+(a-B)*G);G<1&&this.delay.start()}};g.t(g.Yw,g.T);g.W=g.Yw.prototype;g.W.hasSuggestions=function(){return this.suggestionData.length>0}; g.W.Cb=function(){this.X&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.W.show=function(){g.T.prototype.show.call(this);MrY(this)}; g.W.yZ=function(){this.X&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.W.hE=function(){this.Df(this.api.g1().getPlayerSize())}; g.W.Df=function(G){var B=this.api.isEmbedsShortsMode()?.5625:16/9,a=this.api.DB();G=G.width-(a?112:58);a=Math.ceil(G/(a?320:192));var V=(G-a*8)/a;B=Math.floor(V/B);for(var x=g.m(this.j),h=x.next();!h.done;h=x.next())h=h.value.d1("ytp-suggestion-image"),h.style.width=V+"px",h.style.height=B+"px";this.suggestions.element.style.height=B+"px";this.G=V;this.V=B;this.containerWidth=G;this.columns=a;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.iI(this)}; g.W.onVideoDataChange=function(){var G=this.api.U(),B=this.api.getVideoData();this.L=B.yd?!1:G.G;this.suggestionData=B.suggestions?g.wb(B.suggestions,function(a){return a&&!a.playlistId}):[]; B_2(this);B.yd?this.title.update({title:g.tm("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:B.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.W.scrollTo=function(G){G=g.eH(G,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.W.start(this.scrollPosition,G,1E3);this.scrollPosition=G;g.iI(this);MrY(this)};})(_yt_player);